text
stringlengths
1
1.05M
; A223134: Number of distinct sums i+j+k with i,j,k >= 0, i*j*k <= n. ; 1,4,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99,101,103,105,107,109,111,113,115,117,119,121,123,125,127,129,131,133,135,137,139,141,143,145,147,149,151...
; void sp1_ClearRectInv(struct sp1_Rect *r, uchar tile, uchar rflag) ; CALLER linkage for function pointers PUBLIC sp1_ClearRectInv EXTERN sp1_ClearRectInv_callee EXTERN ASMDISP_SP1_CLEARRECTINV_CALLEE .sp1_ClearRectInv ld hl,2 add hl,sp ld a,(hl) inc hl inc hl ld e,(hl) inc hl inc hl ld ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %rdi push %rdx lea addresses_normal_ht+0x10d97, %r10 nop nop nop nop nop sub $7726, %rdx mov $0x6162636465666768, %r14 movq %r14, %xmm5 movups %xmm5, (%r10) nop nop nop nop cmp %rdi, %rdi pop %rdx pop %rdi pop %r14 pop %r10 ret .global s_faulty_...
; A315259: Coordination sequence Gal.4.54.3 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,6,10,15,20,25,30,34,40,46,50,55,60,65,70,74,80,86,90,95,100,105,110,114,120,126,130,135,140,145,150,154,160,166,170,175,180,185,190,194,200...
#Alex Drizos #CS 0447 Assembly and Computer Architecture # .data section pre-written and not to be modiified according to project spec # Implement your five functions located at the end of this program. .data buffer1: .asciiz "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" buffer2: .asciiz "012345678...
; A153976: a(n) = n^3 + (n+2)^3. ; 8,28,72,152,280,468,728,1072,1512,2060,2728,3528,4472,5572,6840,8288,9928,11772,13832,16120,18648,21428,24472,27792,31400,35308,39528,44072,48952,54180,59768,65728,72072,78812,85960,93528,101528,109972,118872,128240,138088,148428,159272,170632,182520,194948,207928,221472,235592,250300...
#include "DS18B20.h" DS18B20::DS18B20(uint8_t ID1, uint8_t ID2, uint8_t ID3, uint8_t ID4, uint8_t ID5, uint8_t ID6, uint8_t ID7) : OneWireItem(ID1, ID2, ID3, ID4, ID5, ID6, ID7) { scratchpad[0] = 0xA0; // TLSB --> 10 degC as std scratchpad[1] = 0x00; // TMSB scratchpad[2] = 0x4B; // THRE --> Trigger regis...
; A247426: Complement of A247425. ; 2,5,8,10,13,15,18,21,23,26,29,31,34,36,39,42,44,47,50,52,55,57,60,63,65,68,70,73,76,78,81,84,86,89,91,94,97,99,102,104,107,110,112,115,118,120,123,125,128,131,133,136,139,141,144,146,149,152,154,157 mov $7,$0 add $7,1 mov $9,$0 lpb $7,1 mov $0,$9 sub $7,1 sub $0,$7 mov $11,2...
; A017199: a(n) = (9*n + 3)^3. ; 27,1728,9261,27000,59319,110592,185193,287496,421875,592704,804357,1061208,1367631,1728000,2146689,2628072,3176523,3796416,4492125,5268024,6128487,7077888,8120601,9261000,10503459,11852352,13312053,14886936,16581375,18399744,20346417,22425768,24642171,27000000,29503629,32157432,34965783...
; [fail] mov ax, 5, 4, 3, 2, 1, 0
; A087887: a(n) = 18n^3 + 6n^2. ; 0,24,168,540,1248,2400,4104,6468,9600,13608,18600,24684,31968,40560,50568,62100,75264,90168,106920,125628,146400,169344,194568,222180,252288,285000,320424,358668,399840,444048,491400,542004,595968,653400 mov $2,$0 mul $0,4 sub $2,$0 bin $2,2 mul $0,$2
;#listing2.asm ;------------ timerport .equ $0C00 timer_cnt .equ timerport timer_ctrl .equ timerport+1 .zp saw_counter: .ds 1 .org $010 fine_tune: .ds 1 .bss .org $2680 vsync_cnt: .ds 1 ; counter for 'wait_vsync' routine .code .bank $00 .org $e000 start_up: ...
; void in_MouseSimSetPos(struct in_UDM *u, uint xcoord, uint ycoord) ; CALLER linkage for function pointers PUBLIC in_MouseSimSetPos EXTERN in_MouseSimSetPos_callee EXTERN ASMDISP_IN_MOUSESIMSETPOS_CALLEE .in_MouseSimSetPos pop af pop bc pop de pop hl push hl push de push bc push af ...
; A215761: Numbers m with property that 36m+11 is prime. ; Submitted by Jon Maiga ; 0,1,2,5,6,7,12,13,16,18,23,25,26,27,28,30,32,36,40,41,42,43,46,50,51,56,57,58,61,62,65,67,68,70,75,78,81,82,83,90,92,93,96,98,103,107,111,113,118,126,127,130,133,135,137,140,141,145,147,152,153,155,161,162,163,166,170,172,175,180,182,18...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR> ; Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR> ; ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ;------------------------------------------------...
; A190482: Convex, obtuse, hexagonal lattice numbers ; 7,10,12,13,14,16,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61 mov $2,$0 mov $3,$0 mul $0,2 add $0,1 mov $4,$2 sub $4,3 lpb $0 mov $0,$4 trn $0,1 add $0,4 mov $4,3 lpe lp...
.386 .model flat PBYTE TYPEDEF PTR BYTE PWORD TYPEDEF PTR WORD PDWORD TYPEDEF PTR DWORD .data arrayB BYTE 10h, 20h, 30h arrayW WORD 1,2,3 arrayD DWORD 4,5,6 pt_1 PBYTE arrayB pt_2 PWORD arrayW pt_3 PDWORD arrayD .code start proc mov esi,pt_1 mov al,[esi] mov esi,pt_2 mov ax,[esi] mov esi,pt_3 ...
[BITS 64] SECTION .text ; I/O port related functions global kInPortByte, kOutPortByte ; GDT, IDT, and TSS related functions global kLoadGDTR, kLoadTR, kLoadIDTR ; interrupt related functions global kEnableInterrupt, kDisableInterrupt, kReadRFLAGS ;Time Stamp Counter related functions global kReadTSC ; context swi...
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 46 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %41 OpExecutionMode %4 OriginUp...
// Copyright (c) 2007-2017 Hartmut Kaiser // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <hpx/config.hpp> #include <hpx/local/execution.hpp> #include <hpx/local/...
#include "hdf5/serial/H5Cpp.h" #include "hdf5/serial/hdf5.h" #include "Helpers.hpp" #include "SMWB.hpp" #include "SM_Maponi.hpp" #include "SM_Standard.hpp" #include "Woodbury.hpp" #include <fstream> #include <vector> #define PERF #define STATUS // #define RESIDUAL #ifdef PERF unsigned int repetition_number; #endif ...
Name: z00_enmy5.asm Type: file Size: 31007 Last-Modified: '2016-05-13T04:36:32Z' SHA-1: 3A59DE365CEDBAF0A54584A02E84E1C30B54C280 Description: null
; ; jcsample.asm - downsampling (64-bit SSE2) ; ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB ; Copyright (C) 2009, D. R. Commander. ; ; Based on the x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright notice in js...
// ----------------------------------------------------------------------------------------------------- // Copyright (c) 2006-2021, Knut Reinert & Freie Universität Berlin // Copyright (c) 2016-2021, Knut Reinert & MPI für molekulare Genetik // This file may be used, modified and/or redistributed under the terms of th...
; PIRATA 2-3 bugs fixed, code optimized and smaller ; Rui Ribeiro - Jan/2021 ; ; border cyan/red - introduce tape to copy ; SPACE to force end ; ; border yellow - introduce blank tape and press 1 (any key??) ; ; border green - 1 another copy ; 2 start over ; ; FORMAT of tape blo...
mov r1, 2 mov r2, 6 cge r1, 1 cpw r1, r2 cad r1, 1 out r1
global test_case extern Array.splitq extern Array.eachq extern std.outq extern std.outln extern sys.error %include "Array.inc" section .text test_case: mov rax, test_array ; Array to split mov rbx, 3 ; delimit with value 3 call Array.splitq ; split into two ...
/* The MIT License (MIT) Copyright (c) 2017-2022 Tim Warburton, Noel Chalmers, Jesse Chan, Ali Karakus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limi...
<% from pwnlib.shellcraft.mips.linux import syscall %> <%page args="ruid, euid, suid"/> <%docstring> Invokes the syscall setresuid. See 'man 2 setresuid' for more information. Arguments: ruid(uid_t): ruid euid(uid_t): euid suid(uid_t): suid </%docstring> ${syscall('SYS_setresuid', ruid, euid, su...
; ; ANSI Video handling for the Sharp X1 ; ; ANSI Video handling for the Commodore 128 (Z80 mode) ; By Stefano Bodrato - 22/08/2001 ; ; Text Attributes ; m - Set Graphic Rendition ; ; $Id: f_ansi_attr.asm,v 1.6 2016-07-14 17:44:18 pauloscustodio Exp $ ; SECTION code_clib PUBLIC ansi_attr ;EXTERN INVRS EXTERN ...
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
// Copyright (c) 2016 The Stardust Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "blockencodings.h" #include "consensus/consensus.h" #include "consensus/validation.h" #include "chainparams.h" #include ...
// MediaPlayerTestDlg.cpp : implementation file // #include "stdafx.h" #include "MediaPlayerTest.h" #include "MediaPlayerTestDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CAboutDl...
; A271324: a(n) = n + floor(n/4) + (n mod 4). ; 0,2,4,6,5,7,9,11,10,12,14,16,15,17,19,21,20,22,24,26,25,27,29,31,30,32,34,36,35,37,39,41,40,42,44,46,45,47,49,51,50,52,54,56,55,57,59,61,60,62,64,66,65,67,69,71,70,72,74,76,75,77,79,81,80,82,84,86,85,87,89,91,90,92,94,96,95,97,99,101,100,102,104,106,105,107,109,111,110,11...
; Various sub-routines that will be useful to the boot loader code ; Output Carriage-Return/Line-Feed (CRLF) sequence to screen using BIOS Console_Write_CRLF: mov ah, 0Eh ; Output CR mov al, 0Dh int 10h mov al, 0Ah ; Output LF int 10h ret ; Write to the console using BIOS. ; ; I...
.fs/rm: file format elf64-x86-64 Disassembly of section .text: 0000000000000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 0: 55 push %rbp int i; if(argc < 2){ 1: 83 ff 01 cmp $0x1,%edi #include "stat.h" #include "user.h" int ...
<% import collections import pwnlib.abi import pwnlib.constants import pwnlib.shellcraft import six %> <%docstring>set_robust_list(head, length) -> str Invokes the syscall set_robust_list. See 'man 2 set_robust_list' for more information. Arguments: head(robust_list_head*): head len(size_t): len Returns: ...
; overworld_sprite struct members (see data/sprites.asm) const_def const SPRITEDATA_ADDR ; 0 const SPRITEDATA_ADDR_HI ; 1 const SPRITEDATA_SIZE ; 2 const SPRITEDATA_BANK ; 3 const SPRITEDATA_TYPE ; 4 const SPRITEDATA_PALETTE ; 5 NUM_SPRITEDATA_FIELDS EQU const_value ; sprite types const_def 1 cons...
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ // [LYN-2376] Remove the entire file once legacy slice support is removed #include "CrySystem_pr...
// // Created by Tobias on 1/4/2021. // #ifndef NPP_WIN32CONTEXT_HPP #define NPP_WIN32CONTEXT_HPP #include "../util/win_headers.hpp" #include <concepts> #include <iostream> template<typename derived_t> class Win32Context { public: Win32Context() : m_window{nullptr}, m_wndClass{0} {} virtual ~Win32Context() { De...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2020 The worldwideweb Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <netaddress.h> #include <crypto/common.h> #include <crypto/sha3.h>...
//======================================================================= // Copyright (c) 2017 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //=======================================================================...
#include "less/lessstylesheet/LessMediaQuery.h" #include "less/stylesheet/MediaQuery.h" LessMediaQuery::LessMediaQuery(const TokenList &selector, const LessStylesheet &parent) : selector(selector), parent(&parent) { } LessMediaQuery::~LessMediaQuery() { } TokenList &LessMediaQuery::g...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2013 The paccoin developer // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "main.h" #include "db.h" #include "init.h" #include "paccoinrpc.h" using...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0xf23, %rsi lea addresses_A_ht+0x1c023, %rdi nop nop nop add $52289, %r13 mov $88, %rcx rep movsw nop cmp %r13, %r13 lea addresses_D_ht+0x19f23, %rbp clflush (%rbp) nop nop add %rbx, %rb...
// Copyright 2018 InnoVisioNate Inc. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "PlotTypes.h" #include <math.h> #include "utils.h" void PlotTypes::balls(commonProperties *pProperties,long segmentID) { DataPoint v[5]; ...
; A081567: Second binomial transform of F(n+1). ; 1,3,10,35,125,450,1625,5875,21250,76875,278125,1006250,3640625,13171875,47656250,172421875,623828125,2257031250,8166015625,29544921875,106894531250,386748046875,1399267578125,5062597656250,18316650390625,66270263671875,239768066406250,867489013671875,3138604736328125,11...
org 0000h ; MOV P1,#00h ; principal: setb p1.0 ; lcall tempo ; clr p1.0 ; lcall tempo ; setb p1.1 ; lcall tempo ; clr p1.1 ; lcall tempo ; setb p1.2 ; lcall tempo ; clr p1.2 ; lcall tempo ; setb p1.3 ; lcall tempo ; clr p1.3 ; lcall tempo ; ...
; IO Utilities Allocate Channel Block V2.00  1989 Tony Tebby QJUMP section iou xdef iou_achb include 'dev8_keys_qlv' ;+++ ; IO Utilities Allocate Channel Block ; ; d0 cr required length / status ; a0 r base of block ; all other registers preserved ;--- iou_achb...
<% from pwnlib import constants from pwnlib.shellcraft import thumb from pwnlib.shellcraft import common %> <%page args="filename, fd=1"/> <%docstring> Opens a file and writes its contents to the specified file descriptor. Example: >>> f = tempfile.mktemp() >>> write(f, 'FLAG\n') >>> run_assembly(sh...
; A277392: a(n) = n!*LaguerreL(n, -3*n). ; Submitted by Christian Krause ; 1,4,62,1626,59928,2844120,165100752,11331597942,897635712384,80602042275756,8090067511468800,897561658361441106,109072492644378442752,14407931244544181001216,2055559499598438969956352,314997663481165477898736750,51601245736595962597616222208,899...
#include <cstdio> #include <iostream> using namespace std; int n,x,y,v; int a[20][20]; int f[20][20][20][20]; int main(){ scanf("%d",&n); while(scanf("%d%d%d",&x,&y,&v)!=EOF){ a[x][y]=v; } for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ for(int k=1;k<=n;k++){ ...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0xaab, %rsi lea addresses_WT_ht+0x19cab, %rdi clflush (%rsi) nop nop nop inc %r15 mov $104, %rcx rep movsb nop add $37320, %rbp lea addresses_UC_ht+0x15db5, %r12 nop nop nop no...
.include "defaults_mod.asm" table_file_jp equ "exe6-utf8.tbl" table_file_en equ "bn6-utf8.tbl" game_code_len equ 3 game_code equ 0x4252354A // BR5J game_code_2 equ 0x42523545 // BR5E game_code_3 equ 0x42523550 // BR5P card_type equ 1 card_id equ 111 card_no equ "111" card_sub equ "Special Mod Card" card_s...
/************************************************************************** * Copyright(c) 1998-2015, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...
_missionary: file format elf32-i386 Disassembly of section .text: 00001000 <main>: struct{ lock_t lock; }mutex; int numBoat = 0; int main() { 1000: 55 push %ebp 1001: 89 e5 mov %esp,%ebp 1003: 83 e4 f0 and $0xfffffff0,%esp 1006: 83 ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %r9 push %rax push %rbp lea addresses_WT_ht+0x12a52, %r14 add $51546, %rax movb (%r14), %r9b nop nop nop nop inc %r11 lea addresses_D_ht+0x1d92, %r9 nop nop nop nop cmp $46459, %rbp mov $0x6162636465666768, %r12 movq %r12, %xmm6 movups %xmm...
// Copyright (c) 2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <logging.h> #include <util/system.h> #include <walletinitinterface.h> class CChainParams; class CWallet; namespace inte...
; A195986: Exponent of the largest power of 2 that divides 5^n - 3^n. ; 1,4,1,5,1,4,1,6,1,4,1,5,1,4,1,7,1,4,1,5,1,4,1,6,1,4,1,5,1,4,1,8,1,4,1,5,1,4,1,6,1,4,1,5,1,4,1,7,1,4,1,5,1,4,1,6,1,4,1,5,1,4,1,9,1,4,1,5,1,4,1,6,1,4,1,5,1,4,1,7,1,4,1,5,1,4,1,6,1,4,1,5,1,4,1,8,1,4,1,5,1,4,1,6,1,4,1,5,1,4,1,7,1,4,1,5,1,4,1,6,1,4,1,5,...
; A076178: a(n) = 2*n^2 - A077071(n). ; 0,0,0,2,2,4,6,10,10,12,14,18,20,24,28,34,34,36,38,42,44,48,52,58,60,64,68,74,78,84,90,98,98,100,102,106,108,112,116,122,124,128,132,138,142,148,154,162,164,168,172,178,182,188,194,202,206,212,218,226,232 mov $4,$0 mov $7,$0 lpb $4,1 mov $0,$7 sub $4,1 sub $0,$4 mov $2,$0...
; A184550: Super-birthdays (falling on the same weekday), version 2 (birth within 1 and 2 years after a February 29). ; 0,6,11,17,28,34,39,45,56,62,67,73,84,90,95,101,112,118,123,129,140,146,151,157,168,174,179,185,196,202,207,213,224,230,235,241,252,258,263,269,280,286,291,297,308,314,319,325,336,342,347,353,364,370,3...
export CG_InitMarkPolys code proc CG_InitMarkPolys 12 12 ADDRGP4 cg_markPolys ARGP4 CNSTI4 0 ARGI4 CNSTU4 73728 ARGU4 ADDRGP4 qk_memset CALLP4 pop ADDRGP4 cg_activeMarkPolys+4 ADDRGP4 cg_activeMarkPolys ASGNP4 ADDRLP4 4 ADDRGP4 cg_activeMarkPolys ASGNP4 ADDRLP4 4 INDIRP4 ADDRLP4 4 INDIRP4 ASGNP4 ADDRGP4 cg_freeMarkPoly...
/***************************************************************************** Name : slave_eventhandler.pds.asm Title : PDS Assembly Code Author : Imagination Technologies Created : 08/11/2010 Copyright : 2010 by Imagination Technologies Limited. All rights reserved. No part of this software, either ...
; A322250: Take binary expansion of 2n-1 and delete the trailing block of 1's, except if the number is 11...1, leave a single 1. ; 1,1,2,1,4,2,6,1,8,4,10,2,12,6,14,1,16,8,18,4,20,10,22,2,24,12,26,6,28,14,30,1,32,16,34,8,36,18,38,4,40,20,42,10,44,22,46,2,48,24,50,12,52,26,54,6,56,28,58,14,60,30,62,1,64 mov $1,2 lpb $0,...
assume ds:data,cs:code data segment scode db ? row db ? col db ? pa equ 20a0h pb equ 20a1h pc equ 20a2h cr equ 20a3h table db 0, 0 ,8, 10h data ends code segment start: mov ax, data mov ds,ax mov dx,cr mov al,90...
// (C) 2015 #include "AAPA2.h" #include "TargettedWeapon.h"
db "SEA SLUG@" ; species name db "Beware of pushing" next "strongly on its" next "squishy body, as" page "it may make a" next "mysterious purple" next "fluid ooze out.@"
; [wd0b5] = pokemon ID ; hl = dest addr PrintMonType: call GetPredefRegisters push hl call GetMonHeader pop hl push hl ld a, [wMonHType1] call PrintType ld a, [wMonHType1] ld b, a ld a, [wMonHType2] cp b pop hl jr z, EraseType2Text ld bc, SCREEN_WIDTH * 2 add hl, bc ; a = type ; hl = dest addr PrintType...
start: ldi r24, 2 sts 0x04, r24 ; DDRB = 1 sts 0x05, r24 ; PORTB = 1 loop: rjmp loop
; int getc(FILE *stream) INCLUDE "clib_cfg.asm" SECTION code_clib SECTION code_stdio ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $02 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _getc EXTERN _fgetc defc getc = _fgetc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ELSE ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _getc E...
#include <catch.hpp> #include "GameboyCPU.h" #include "util.h" #include "memory/MemoryManageUnit.h" #include "memory/GPU.h" SCENARIO("Memory Manage Unit", "[MMUNIT]") { GIVEN("A Single Memory Manage Unit, with single cartridge.") { std::shared_ptr<MockMemory> ptr_mock_memory = std::make_shared<MockMemory>(); std...
/**************************************************************************** Copyright (c) 2014 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the S...
; A144196: Square array (6 X 6) read by rows. ; 0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,1,0,0,0 mul $0,2 add $0,4 lpb $0 mul $0,2 sub $0,1 mov $3,$0 cal $3,132749 ; Triangle T(n,k) = binomial(n, k) with T(n, 0) = 2, read by rows. add $2,$3 mov $0,$2 mul $0,2 sub $0,1 pow $0,3 ...
; name: VARIABLES - integer and combination variables. Also UTF-8 ; code: "998874c3b66d6d699900880074c3b66d6d699900000000000000880000000000000074c3b66d6d690000338889337700" tommi db 0x99, 0x88, 'tömmi' dw 0x99, 0x88, 'tömmi' dq 0x99, 0x88, 'tömmi' db 0x33, 0x88 dw 0x3389, 0x77
#include <SDKDDKVer.h> #include <ppl.h> #include <stdio.h> #include <tchar.h> #include <iostream> #include <time.h> #include <vector> #include <tuple> #include <winsock2.h> #include <ws2tcpip.h> #include "LuaState.h" #include "AdvancedMathLuaExtensions.h" using namespace Novah::Lua; static unsigned int g_randomVal...
default rel %define XMMWORD section .text code align=64 EXTERN _gnutls_x86_cpuid_s global sha1_block_data_order ALIGN 16 sha1_block_data_order: mov QWORD[8+rsp],rdi ;WIN64 prologue mov QWORD[16+rsp],rsi mov rax,rsp $L$SEH_begin_sha1_block_data_order: mov rdi,rcx mov rsi,rdx mov rdx,r8 mov r9d,DWORD[((_gnutl...
.386p page 58,132 ;****************************************************************************** title PRINT.ASM - Protected Mode Print Routines ;****************************************************************************** ; ; (C) Copyright MICROSOFT Corp. 1986-1991 ; (C) Copyright COMPAQ Computer Corp. 1986-19...
#include "Scene.h" /* Scene シーンだよ */ Scene::Scene() : index(0), manager(nullptr) {} Scene::~Scene() {} void Scene::Initialize() {} void Scene::Tick(double delta) {} void Scene::OnEvent(const std::string & message) {} void Scene::Draw() {} bool Scene::IsDead() { return false; } void Scene::Disappear() {} ...
/*// RUN: %testasm %s /Fo %t.dxbc*/ // RUN: %dxbc2dxil %t.dxbc /emit-llvm37 /o %t.ll.converted // RUN: fc %b.ref %t.ll.converted cs_5_0 dcl_globalFlags refactoringAllowed dcl_constantbuffer cb0[1], immediateIndexed dcl_input vThreadIDInGroup.xyz dcl_temps 3 dcl_tgsm_raw g0, 1024 dcl_thread_group 4, 2, 3 ishl r0.x, v...
;******************************************************************************************************** ; uC/LIB ; CUSTOM LIBRARY MODULES ; ; (c) Copyright 2004-2015; Micrium, Inc.; Weston, FL ; ; ...
MEM 1 # mem_2 = [1] LOAD 0 # accu_2 = [0]
[bits 64] ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Win x86-64 shellcode to recreate the Jurassic Park hacking scene on the victim's machine. This ;;; payload is position independent and can be used with most memory corruption exploits or for ;;; code injec...
; A277782: Number of n X 2 0..2 arrays with every element equal to some element at offset (-1,-1) (-1,0) (-1,1) (0,-1) (0,1) (1,-1) or (1,0) both plus 1 mod 3 and minus 1 mod 3, with new values introduced in order 0..2. ; Submitted by Christian Krause ; 0,3,12,84,498,3090,18930,116382,714810,4391526,26977818,165732438,...
#include "alloy/core/string/string_tokenizer.hpp" auto alloy::core::get_message(tokenizer_error error) noexcept -> zstring_view { switch (error) { case tokenizer_error::none: { return "no error"; } case tokenizer_error::out_of_tokens: { return "out of tokens"; } } ALLOY_ASSERT(false...
//===-- AMDGPUSubtarget.cpp - AMDGPU Subtarget Information ----------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
; A348314: a(n) = n! * Sum_{k=0..n-1} 4^k / k!. ; Submitted by Christian Krause ; 0,1,10,78,568,4120,30864,244720,2088832,19389312,196514560,2173194496,26128665600,339890756608,4759410116608,71395178280960,1142340032364544,19419853564641280,349557673401188352,6641597100292636672,132831947503410872320,278947092066137250...
; A261540: a(n) = n^7 + 7*n^5 + 14*n^3 + 7*n. ; Submitted by Jon Maiga ; 0,29,478,4287,24476,101785,337434,946043,2333752,5206581,10714070,20633239,37597908,65378417,109216786,176222355,275832944,420346573,625528782,911300591,1302512140,1829807049,2530582538,3450050347,4642403496,6172093925,8115226054,10561071303,13613...
; A186381: Adjusted joint rank sequence of (f(i)) and (g(j)) with f(i) after g(j) when f(i)=g(j), where f(i)=4i and g(j)=j(j+1)/2 (triangular number). Complement of A186382. ; 3,5,7,9,10,12,14,15,17,18,19,21,22,24,25,26,28,29,30,32,33,34,36,37,38,39,41,42,43,45,46,47,48,50,51,52,53,54,56,57,58,59,61,62,63,64,65,67,68,...
; A003757: Number of perfect matchings (or domino tilings) in D_4 X P_(n-1). ; Submitted by Christian Krause ; 0,1,1,6,13,49,132,433,1261,3942,11809,36289,109824,335425,1018849,3104934,9443629,28756657,87504516,266383153,810723277,2467770054,7510988353,22861948801,69584925696,211799836801,644660351425,1962182349126,597...
;int __FASTCALL__ readbyte(int handle) ;returns read byte ; ;ZXVGS buffers bytes, when drives a disk interface. ;In case of cable (TMX, UPB), the byte is transmitted each time... ; ; $Id: readbyte.asm,v 1.4 2016/06/23 20:31:34 dom Exp $ ; SECTION code_clib PUBLIC readbyte PUBLIC _readbyte .readbyte ._readbyte LD ...
SECTION code_clib SECTION code_stdlib PUBLIC __strtod_hex EXTERN asm_isxdigit, asm_tolower, l_char2num, l_eat_hdigits, asm_dhexpop EXTERN derror_znc, __strtod_exponent, __strtod_suffix, asm_dmulpow2 ; supplied by math library: asm_dhexpop, asm_dmulpow2, derror_znc hex_fraction_only: ;; leading decimal point s...
#pragma once #include <functional> #include "../error.hpp" #include "../input_pin/pin_resistors.hpp" namespace embed { /** * @brief Digital interrupt pin hardware abstraction. * * Use this to trigger an interrupt service routine (ISR) when a pin detects a * falling edge (when the pin's voltage transitions from H...
include w2.inc include noxport.inc include consts.inc include structs.inc createSeg clsplc_PCODE,clsplcn,byte,public,CODE ; DEBUGGING DECLARATIONS ifdef DEBUG midClsplcn equ 26 ; module ID, for native asserts endif ; EXTERNAL FUNCTIONS externFP <FChngSizePhqLcb> ext...
/* Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
; A061788: a(n) = Sum_{k=1..n} (2k)^(2k). ; Submitted by Christian Krause ; 4,260,46916,16824132,10016824132,8926117272388,11120932942830404,18457865006652382020,39364865940303189957444,104896964865940303189957444,341532774329085497699836681028,1334077309624613209946781309524804,6157453657516781924006621069709728580,33...
; A102446: a(n) = a(n-1) + 4*a(n-2) for n>1, a(0) = a(1) = 2. ; 2,2,10,18,58,130,362,882,2330,5858,15178,38610,99322,253762,651050,1666098,4270298,10934690,28015882,71754642,183818170,470836738,1206109418,3089456370,7913894042,20271719522,51927295690,133014173778,340723356538,872780051650,2235673477802,5726793684402,14...
; A032509: a(n) = round(tan(Pi*(1-1/n)/2)). ; 0,1,2,2,3,4,4,5,6,6,7,8,8,9,10,10,11,11,12,13,13,14,15,15,16,17,17,18,18,19,20,20,21,22,22,23,24,24,25,25,26,27,27,28,29,29,30,31,31,32,32,33,34,34,35,36,36,37,38,38,39,39,40,41,41,42,43,43,44 add $0,3 mov $3,2 lpb $0,1 add $3,$0 mov $5,8 mul $5,$3 trn $3,10 add ...
; A183156: The number T(n) of isometries of all subspaces of the finite metric space {1,2,...,n} (as a subspace of the reals with the Euclidean metric). ; 1,2,7,22,59,142,319,686,1435,2950,5999,12118,24379,48926,98047,196318,392891,786070,1572463,3145286,6290971,12582382,25165247,50331022,100662619,201325862,402652399,...
_lab1: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(void) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 push ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %r15 push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x1c0c8, %rsi nop nop nop nop sub %r11, %r11 mov $0x6162636465666768, %r13 movq %r13, %xmm1 movups %xmm1, (%rsi) sub %rbx, %rbx lea addresses_UC_ht+0x14258, %rsi lea addre...