text
stringlengths
1
1.05M
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2018-2021 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
; A101342: Fibonacci-Mersenne numbers. ; Submitted by Jon Maiga ; 0,1,2,13,610,1346269,6557470319842,155576970220531065681649693,87571595343018854458033386304178158174356588264390370,27745922289305716855338470916082815029348872029647830861914852073402148308000613611082094085891168867554589 seq $0,79 ; Powers of 2: a(n...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
; A255821: Numbers of words on {0,1,...,36} having no isolated zeros. ; Submitted by Christian Krause ; 1,36,1297,46729,1683577,60656797,2185374961,78735837637,2836736138665,102203420474269,3682238546710945,132665625592223221,4779746882367738841,172207232713967895181,6204372685172893559377,223534399861459456068709,8053...
; A171834: Partial sums of numbers congruent to {0, 1, 2, 7} mod 8 (A047527). ; 1,3,10,18,27,37,52,68,85,103,126,150,175,201,232,264,297,331,370,410,451,493,540,588,637,687,742,798,855,913,976,1040,1105,1171,1242,1314,1387,1461,1540,1620,1701,1783,1870,1958,2047,2137,2232,2328,2425,2523,2626,2730,2835,2941,3052,3164,32...
; void *balloc_firstfit(unsigned int queue, unsigned char num) SECTION code_alloc_balloc PUBLIC _balloc_firstfit EXTERN l0_balloc_firstfit_callee _balloc_firstfit: pop af pop hl pop bc push bc push hl push af jp l0_balloc_firstfit_callee
include "./src/Includes.inc" section "LYCHandler", rom0 LYC:: ld a, LYC_INTERRUPT_CODE ld [wLastInterrupt], a ; Save last interrupt code reti
;------------------------------------------------------------------- ; Praktikum SMD 2015 ; M.Wahyudin (140310120031) ; ; Name : LATIH21.ASM (PROG1A) ; Desc : Menampilkan digit hexa 0..F ke P1 ; Menggerakkan motor stepper untuk interupsi ext 1 ; Input : Pushbutton, INT1, di P3 ; Output: 7Seg(P1) dan Motor Ste...
*************** * RAW.ASM * simple body of a Lynx-program * * created : 24.04.96 * changed : 13.07.97 **************** Baudrate set 62500 ; define baudrate for serial.inc _1000HZ_TIMER set 7 ; timer# BRKuser set 1 ; if defined BRK #x support is enabled DEBUG set 1 incl...
_testing: file format elf32-i386 Disassembly of section .text: 00000000 <main>: //#include "h2o.c" //#include "thread.c" int main(int argc, char *argv[]) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 e4 f0 and $0xfffffff0,%esp 6: 83 ec 10 ...
; sp1_UpdateNow ; 01.2006 aralbrec, Sprite Pack v3.0 ; sinclair spectrum version INCLUDE "clib_target_cfg.asm" SECTION code_clib SECTION code_temp_sp1 PUBLIC asm_sp1_UpdateNow EXTERN SP1DrawUpdateStruct ; Iterates through the invalidated tiles list, drawing all invalidated tiles on screen. ; Validates them and re...
cpu 32015 abs apac cala dint eint nop pac pop push ret rovm sovm spac zac ...
; Copyright Oliver Kowalke 2009. ; 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) ; -------------------------------------------------------------- ; | 0 | 1 | 2 |...
#if defined(_WIN32) __declspec(dllimport) #endif void func_cxx(); int main() { func_cxx(); return 0; }
############################################################################### # Copyright 2019 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") containe...
;nasm -f elf hello5.asm ;ld -m elf_i386 hello5.o -o hello5 %include "stud_io.inc" global _start section .text _start: mov eax, 0 again: PRINT "HELLO" PUTCHAR 10 inc eax cmp eax, 5 jl again FINISH
; A226275: Number of new rationals produced at the n-th iteration by applying the map t -> {t+1, -1/t} to nonzero terms, starting with S[0] = {1}. ; 1,2,3,3,5,7,10,15,22,32,47,69,101,148,217,318,466,683,1001,1467,2150,3151,4618,6768,9919,14537,21305,31224,45761,67066,98290,144051,211117,309407,453458,664575,973982,1427...
; A049069: Array T read by antidiagonals: T(k,n) = k*n*2^(n-1) + 1, n >= 0, k >= 1. ; Submitted by Jon Maiga ; 1,1,2,1,3,5,1,4,9,13,1,5,13,25,33,1,6,17,37,65,81,1,7,21,49,97,161,193,1,8,25,61,129,241,385,449,1,9,29,73,161,321,577,897,1025,1,10,33,85,193,401,769,1345,2049,2305,1,11,37,97,225,481,961,1793,3073,4609,5121 ...
/* Copyright (c) <2003-2016> <Julio Jerez, Newton Game Dynamics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpo...
db DEX_MAGNEMITE ; pokedex id db 25 ; base hp db 35 ; base attack db 70 ; base defense db 45 ; base speed db 95 ; base special db ELECTRIC ; species type 1 db STEEL ; species type 2 db 190 ; catch rate db 89 ; base exp yield INCBIN "pic/ymon/magnemite.pic",0,1 ; 55, sprite dimensions dw MagnemitePicFront dw MagnemitePi...
; A100286: Expansion of (1+2x^2-2x^3+2x^4)/(1-x+x^2-x^3+x^4-x^5). ; 1,1,2,0,0,2,1,1,2,0,0,2,1,1,2,0,0,2,1,1,2,0,0,2,1,1,2,0,0,2,1,1,2,0,0,2,1,1,2,0,0,2,1,1,2,0,0,2,1,1,2,0,0,2,1,1,2,0,0,2,1,1,2,0,0,2,1,1,2,0,0,2,1,1,2,0,0,2,1,1,2,0,0,2,1,1,2,0,0,2 add $0,2 lpb $0,1 add $1,$0 sub $0,1 mul $1,101 mod $1,3 lpe
.globl Tela12 Tela12: addi $10, $0, 0xcff8cf sw $10, 268500992($0) addi $10, $0, 0x00d800 sw $10, 268500996($0) addi $10, $0, 0x00d800 sw $10, 268501000($0) addi $10, $0...
; Does tile modification for... the pyramid of power hole ; after Ganon slams into it in bat form? Overworld_CreatePyramidHoleModified: LDA.l InvertedMode : BNE + JMP .originalBehaviour + .invertedBehavior REP #$30 LDX.w #$0440 LDA.w #$0E39 JSL Overworld_DrawPersistentMap16 LDX.w #$04BC LDA.w #$0E3A JSL...
PUBLIC padreadyparallel ; fastcall .padreadyparallel call 0xb866 ld hl, 0 ret nc inc hl ret
; 1 2 3 4 5 6 7 ;234567890123456789012345678901234567890123456789012345678901234567890 ;===================================================================== ; ; FUNCTION: cvt_dec2hex ; FUNCTION PURPOSE: <See doc/description file> ; ; AUT...
; A016943: a(n) = (6*n + 2)^11. ; 2048,8589934592,4049565169664,204800000000000,3670344486987776,36028797018963968,238572050223552512,1196683881290399744,4882812500000000000,16985107389382393856,52036560683837093888,143746751770690322432,364375289404334925824,858993459200000000000,1903193578437064103936,399637377885741...
_wc: file format elf64-x86-64 Disassembly of section .text: 0000000000001000 <wc>: char buf[512]; void wc(int fd, char *name) { 1000: f3 0f 1e fa endbr64 1004: 55 push %rbp 1005: 48 89 e5 mov %rsp,%rbp 1008: 48 83 ec 30 sub $0x30,%rs...
; (Super)Gold card boot ROM. Deciphered in large parts by Marcel Kilgus ; ; The (S)GC ROM is 64kb in size and consists of three parts: ; ; $0000-$7FFF FLP, RAM + TK2. Copied to $10000 ; $8000-$BFFF Patches + Basic commands + PAR + N + DEV. Copied to $1c200 ; $C000-$FFFF Boot/patch engine (this file plus qlvers_asm)....
W507_LowerL: .include "PRG/levels/Plains/5-7Lower" ; 5-7 Lower W705_UnderL: .include "PRG/levels/Plains/7-5Under" ; 7-5 Underground UnusedEnd1L: .include "PRG/levels/Plains/UnusedE1" ; Unused exit area 1 Unused1L: .include "PRG/levels/Plains/Unused1" ; "Unused Level 1" W46BL: .include "PRG/levels/Plains/4-6B" ; 4-6 B...
TITLE HELP - Loader for DOS Online Help ;*** ;HELP - Load QBASIC.EXE with /QHELP switch to start DOS Help Viewer ; ; Copyright (C) 1990, Microsoft Corporation ; ;Purpose: ; This file implements HELP.COM. The purpose of this com file ; is to invoke QBASIC.EXE with the /QHELP switch, passing on all ; other command line ...
/* C program for Merge Sort */ #include<stdlib.h> #include<stdio.h> // Merges two subarrays of arr[]. // First subarray is arr[l..m] // Second subarray is arr[m+1..r] void merge(int arr[], int l, int m, int r) { int i, j, k; int n1 = m - l + 1; int n2 = r - m; /* create temp arrays */ int L[n1], R[n2];...
; A337390: Expansion of sqrt((1-2*x+sqrt(1-12*x+4*x^2)) / (2 * (1-12*x+4*x^2))). ; Submitted by Jamie Morken(w2) ; 1,4,34,328,3334,34904,372436,4027216,43976774,483860632,5355697084,59569288816,665238165916,7454247891952,83769667651816,943744775565728,10655369806377542,120535523282756632,1365840013196530348,15500428304...
; Z88 Small C+ Run time Library ; Moved functions over to proper libdefs ; To make startup code smaller and neater! ; ; 6/9/98 djm SECTION code_l_sccz80 PUBLIC l_ge l_ge: ; DE >= HL [signed] ; set carry if true ld a,h add a,$80 ld b,a ld a,d add a,$80 cp b ...
0x802ff7c0: nop ; Get rid of ClearArena 0x80006458: bl game_loop bl 0x80022e74 ; fapGm_Execute__Fv 0x8003e790: b set_next_stage_hook ; Skip Intro 0x80230530: ; dScnOpen_Execute__FP10dScnOpen_c b 0x8023047c ; changeGameScene__10dScnOpen_cFv ; Hook Stage Loading 0x800411e4: bl stage_load_hook ; On Boomerang 0x800c0c...
; A206156: a(n) = Sum_{k=0..n} binomial(n,k)^(2*k). ; Submitted by Christian Krause ; 1,2,6,92,5410,1400652,2687407464,18947436116184,536104663173431874,130559883231879141946580,136031455187223511721647272376,483565526783420050082035900177878504,14487924180895151383693101563813954330590756 lpb $0 sub $0,1 add $2,1...
;================================================= ; Name: Adrian Harminto ; Email: aharm002@ucr.edu ; ; Lab: lab 2 ; Lab section: 24 ; TA: Bryan Marsh ; ;================================================= .orig x3000 ;------------ ;Instruction ;------------ LD R1, DEC_0 ;R1 <-- #0 LD R2, DEC_12 ;R2 <-...
; A248619: a(n) = (n*(n+1))^4. ; 0,16,1296,20736,160000,810000,3111696,9834496,26873856,65610000,146410000,303595776,592240896,1097199376,1944810000,3317760000,5473632256,8767700496,13680577296,20851360000,31116960000,45558341136,65554433296,92844527616,129600000000,178506250000,242855782416,326653399296,434734510336,5...
// Copyright 2012 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #if V8_TARGET_ARCH_X64 #include "src/base/bits.h" #include "src/base/division-by-constant.h" #include "src/bootstrapper.h" #include "src/codegen.h" #in...
SECTION "Gloval Vars", WRAM0 ;debug _breakpoint:: DB ;system info sys_info:: DB ;game state game_state:: DB ;gun hockey moving_objects:: puck:: .vy::DB .Y:: DB .y:: DB .vx::DB .X:: DB .x:: DB bullets:: DS MAX_BULLETS*6;vy,Y,y,vx,X,x left_gun_angle:: DW right_gun_angle:: DW ;UI list_selection:: DB ;main save data u...
#pragma once #include <mbgl/storage/file_source.hpp> namespace mbgl { class OnlineFileSource : public FileSource { public: OnlineFileSource(); ~OnlineFileSource() override; void setAccessToken(const std::string& t) { accessToken = t; } std::string getAccessToken() const { return accessToken; } ...
; A333616: Expansion of x*(1 + 2*x + x^2 - 4*x^3 - x^4 + 2*x^5)/((1 - x)^3*(1 + x)^2). ; 0,1,3,6,6,10,10,15,15,21,21,28,28,36,36,45,45,55,55,66,66,78,78,91,91,105,105,120,120,136,136,153,153,171,171,190,190,210,210,231,231,253,253,276,276,300,300,325,325,351,351,378,378,406,406,435,435,465,465 mov $1,$0 sub $1,1 trn $...
_rm: file format elf32-i386 Disassembly of section .text: 00001000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 1000: 55 push %ebp 1001: 89 e5 mov %esp,%ebp 1003: 57 push %edi 1004: 56 ...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r14 push %r15 push %rcx push %rdi push %rdx push %rsi // REPMOV lea addresses_WC+0x11154, %rsi lea addresses_WT+0x13d4a, %rdi nop nop nop nop and $24236, %r13 mov $7, %rcx rep movsl nop nop nop nop and ...
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 000558 tst.w ($69b4,A5) 00055C beq $564 0049BA clr.w ($69b4,A5) 0049BE rts 013FBA tst.w ($69b4,A5) 013FBE bne $13fc8 014098 not.w ($69b4,A5) 01409C rts 0AAACA move.l (A0), D2 0...
; 7zAsm.asm -- ASM macros ; 2009-12-12 : Igor Pavlov : Public domain ; 2011-10-12 : P7ZIP : Public domain %define NOT ~ %macro MY_ASM_START 0 SECTION .text %endmacro %macro MY_PROC 2 ; macro name:req, numParams:req align 16 %define proc_numParams %2 ; numParams global %1 global _%1 ...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; Module Name: ; ; WriteLdtr.Asm ; ; Abstract: ; ; AsmWriteLdtr function ; ; Notes: ; ;--------------------------------...
%ifndef __STRING_ASM %define __STRING_ASM %include "common.asm" %include "datastack.asm" ;memcpy, memmove, strcpy, strncpy %include "string/copy.asm" ;%include "string/concat.asm" ;%include "string/compare.asm" ;%include "string/search.asm" %include "string/other.asm" %endif
#include<ctype.h> #include<stdio.h> char map[ main() { char c; int i,j,num[256]; while(scanf("%c",&c)!=EOF) { for(i=0,j=1;i<256;i++) num[i]=-1; while(1) { if(isalpha(c)) { if(num[c]==-1) num[c]=j++; ...
/* Given an m x n matrix, return true if the matrix is Toeplitz. Otherwise, return false. A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same elements. Example 1: Input: matrix = [[1,2,3,4],[5,1,2,3],[9,5,1,2]] Output: true Explanation: In the above grid, the diagonals are: "[9]", "...
%ifdef CONFIG { "RegData": { "MM0": "0x2424242424242424", "MM1": "0x2424242424242424", "MM2": "0x1818181818181818" }, "MemoryRegions": { "0x100000000": "4096" } } %endif mov rdx, 0xe0000000 mov rax, 0x3C3C3C3C3C3C3C3C mov [rdx + 8 * 0], rax mov rax, 0x3C3C3C3C3C3C3C3C mov [rdx + 8 * 1], rax m...
; A224141: Number of n X 3 0..1 arrays with rows and antidiagonals unimodal and columns nondecreasing. ; 7,22,49,92,155,242,357,504,687,910,1177,1492,1859,2282,2765,3312,3927,4614,5377,6220,7147,8162,9269,10472,11775,13182,14697,16324,18067,19930,21917,24032,26279,28662,31185,33852,36667,39634,42757,46040,49487,53102,5...
; A124400: a(n) = a(n-1) + 3*a(n-2) - a(n-4), with a(0)=1, a(1)=1, a(2)=4, a(3)=7. ; 1,1,4,7,18,38,88,195,441,988,2223,4992,11220,25208,56645,127277,285992,642615,1443946,3244514,7290360,16381287,36808421,82707768,185842671,417584688,938304280,2108350576,4737420745,10644887785,23918845740,53745158519,120764274994,27135...
; A010007: a(0) = 1, a(n) = 17*n^2 + 2 for n>0. ; 1,19,70,155,274,427,614,835,1090,1379,1702,2059,2450,2875,3334,3827,4354,4915,5510,6139,6802,7499,8230,8995,9794,10627,11494,12395,13330,14299,15302,16339,17410,18515,19654,20827,22034,23275,24550,25859,27202,28579,29990,31435,32914,34427,35974,37555,39170,40819,42502,4...
; A008062: a(n) = maximal value of m such that an n X m radar array exists. (A (0,1) matrix A such that any horizontal shift of A overlaps A in at most a single 1.) ; Submitted by Jon Maiga ; 2,4,7,10,12,15,18,21,24,26,29,32,35,37,40,43 mul $0,100 sub $0,5 div $0,36 add $0,2
LoadOverworldMonIcon: ld a, e call ReadMonMenuIcon ld [wCurIcon], a ld l, a ld h, 0 add hl, hl ld de, IconPointers add hl, de ld a, [hli] ld e, a ld d, [hl] jp GetIconBank LoadMenuMonIcon: push hl push de push bc call .LoadIcon pop bc pop de pop hl ret .LoadIcon: ld d, 0 ld hl, .Jumptable add h...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/azart-config.h" #endif #incl...
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 004D3A move.l D0, (A4)+ 004D3C move.l D0, (A4)+ 08BEF2 move.b ($a2,A6), ($b4,A6) 08BEF8 moveq #$0, D0 [etc+B4] 0AAACA move.l (A0), D2 0AAACC move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+1...
// Copyright 2019 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1988 - 1991 ; * All Rights Reserved. ; */ ;************************************************************ ;** ;** NAME: Support for HP PCL printers added to GRAPHICS. ;** ;*...
//===- Argument.cpp - Argument definitions --------------------------------===// // // Part of the MLIR 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 // //===---------------------------...
; A004523: Two even followed by one odd; or floor(2n/3). ; 0,0,1,2,2,3,4,4,5,6,6,7,8,8,9,10,10,11,12,12,13,14,14,15,16,16,17,18,18,19,20,20,21,22,22,23,24,24,25,26,26,27,28,28,29,30,30,31,32,32,33,34,34,35,36,36,37,38,38,39,40,40,41,42,42,43,44,44,45,46,46,47,48,48,49,50,50,51,52,52,53,54,54,55,56,56,57,58,58,59,60,60,...
; A139731: a(n) = 9^n mod 6^n. ; 0,3,9,81,81,4617,18225,24057,1056321,4468041,40212369,180512793,1624615137,8091189225,72820703025,420293834937,2372089560705,4422146601609,90579297748689,510533809732953,938645847533601,19416287947991337,108935739610788465,585556544970294777,531627566411036097,4784648097699324873,128352...
; A309125: a(n) = n + 2^2 * floor(n/2^2) + 3^2 * floor(n/3^2) + 4^2 * floor(n/4^2) + ... ; 1,2,3,8,9,10,11,16,26,27,28,33,34,35,36,57,58,68,69,74,75,76,77,82,108,109,119,124,125,126,127,148,149,150,151,201,202,203,204,209,210,211,212,217,227,228,229,250,300,326,327,332,333,343,344,349,350,351,352,357,358,359,369,454,45...
; A075317: Pair the odd numbers such that the k-th pair is (r, r+2k) where r is the smallest odd number not included earlier: (1,3),(5,9),(7,13),(11,19),(15,25),(17,29),(21,35),(23,39),(27,45),... This is the sequence of the first member of pairs. ; 1,5,7,11,15,17,21,23,27,31,33,37,41,43,47,49,53,57,59,63,65,69,73,75,7...
//////////////////////////////////////////////////////////////////////////////// /// Copyright 2018-present Xinyan DAI<xinyan.dai@outlook.com> /// /// 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...
; A184052: The number of order-decreasing partial isometries (of an n-chain) ; 1,2,5,13,30,66,137,279,556,1104,2179,4309,8518,16886,33509,66643,132672,264492,527639,1053441,2104042,4204242,8402617,16797343,33582724,67149416,134274635,268516909,536985102,1073905134,2147712461,4295294379,8590392712,17180523876,3436065516...
Name: ys_w70.asm Type: file Size: 5909 Last-Modified: '2016-05-13T04:50:37Z' SHA-1: 7446B05B2F35C9BD5497856CB18F60F64D2088A3 Description: null
; A274616: Maximal number of non-attacking queens on a right triangular board with n cells on each side. ; 0,1,1,2,2,3,4,5,5,6,7,7,8,9,9,10,11,11,12,13,13,14,15,15,16,17,17,18,19,19,20,21,21,22,23,23,24,25,25,26,27,27,28,29,29,30,31,31,32,33,33,34,35,35,36,37,37,38,39,39,40,41,41,42,43,43,44,45,45,46,47,47,48,49,49,50,...
INCLUDE "src/utils/hardware.inc" INCLUDE "src/physics.asm" SNAKE_MOVING_RIGHT EQU 1 SNAKE_MOVING_LEFT EQU 2 SNAKE_MOVING_UP EQU 3 SNAKE_MOVING_DOWN EQU 4 SNAKE_MOVING_DEFAULT EQU SNAKE_MOVING_DOWN SECTION "VBlank Interrupt", ROM0[$40] VBLankInterrupt: JP UpdateSnake SECTION "Keypad Interrupt", ROM0[$60] Keypad...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r15 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0x85c6, %rsi lea addresses_WT_ht+0xf916, %rdi clflush (%rsi) nop nop nop add $46031, %rbp mov $26, %rcx rep movsq xor %rax, %rax lea addresses_D_ht+0x17e96, %rbp clflush (%rbp)...
.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 82 card_no equ "082" card_sub equ "Mod Card 082" card_sub_x ...
; A168625: Triangle T(n,k) = 8*binomial(n,k) - 7 with columns 0 <= k <= n. ; 1,1,1,1,9,1,1,17,17,1,1,25,41,25,1,1,33,73,73,33,1,1,41,113,153,113,41,1,1,49,161,273,273,161,49,1,1,57,217,441,553,441,217,57,1,1,65,281,665,1001,1001,665,281,65,1,1,73,353,953,1673,2009,1673,953,353,73,1,1,81,433,1313,2633,3689,3689,2633,131...
SECTION code_driver PUBLIC _sd_read_block_fastcall EXTERN asm_sd_read_block ;Read a block of 512 bytes (one sector) from the drive ;and store it in memory at (HL++) ; ;input HL = pointer to block ;uses AF, BC, DE, HL defc _sd_read_block_fastcall = asm_sd_read_block
; A257170: Expansion of (1 + x) * (1 + x^3) / (1 + x^4) in powers of x. ; 1,1,0,1,0,-1,0,-1,0,1,0,1,0,-1,0,-1,0,1,0,1,0,-1,0,-1,0,1,0,1,0,-1,0,-1,0,1,0,1,0,-1,0,-1,0,1,0,1,0,-1,0,-1,0,1,0,1,0,-1,0,-1,0,1,0,1,0,-1,0,-1,0,1,0,1,0,-1,0,-1,0,1,0,1,0,-1,0,-1,0,1,0,1,0,-1,0,-1,0,1,0,1,0,-1,0,-1,0,1,0,1 mov $2,$0 div $0,2 ad...
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the documentation of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** Commercial License Usage ** Licensees holding valid commerci...
; uint16_t in_pause(uint16_t dur_ms) SECTION code_clib SECTION code_input PUBLIC in_pause EXTERN asm_in_pause defc in_pause = asm_in_pause
//===--- Deserialization.cpp - Loading a serialized AST -------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
; A191307: Sum of the heights of the first peaks in all dispersed Dyck paths of length n (i.e., in Motzkin paths of length n with no (1,0)-steps at positive heights). ; 0,0,1,2,6,11,26,47,103,187,397,727,1519,2806,5809,10814,22254,41702,85460,161042,329002,622932,1269578,2413644,4909788,9367188,19024888,36408748,738509...
.macro readInteger(%val) li $v0,5 syscall add %val,$v0,$zero .end_macro .macro getChar() li $v0,12 syscall .end_macro .macro exit() li $v0,10 syscall .end_macro .text readInteger($s0) srl $s1,$s0,1 andi $s0,$s0,1 beqz $s1,success move $t0,$s1 frontHalfLoop: getChar() addi $sp,$sp,-1 sb $v0,1($sp) a...
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chromeos/services/ime/input_engine.h" #include "base/notreached.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conv...
; ------------------------------------------------------------------- ; Query the er status ; Copyright 2021 by Gaston Williams ; ------------------------------------------------------------------- ; Based on software written by Michael H Riley ; Thanks to the author for making this code available. ; Original author co...
/**************************************************************************** Copyright (c) 2013 cocos2d-x.org 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 Software with...
; void w_array_destroy(w_array_t *a) SECTION code_adt_w_array PUBLIC w_array_destroy defc w_array_destroy = asm_w_array_destroy INCLUDE "adt/w_array/z80/asm_w_array_destroy.asm"
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/04/Mult.asm // Multiplies R0 and R1 and stores the result in R2. // (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.) // Put your code here....
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r14 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x19956, %rsi lea addresses_WC_ht+0x12c56, %rdi nop nop nop nop nop and %r13, %r13 mov $71, %rcx rep movsq dec %r13 lea addresses_WC_ht+0xbd96, %rsi lea addresses_WT_ht+0x1704e...
// Initialize stack pointer to start at 256 (i.e. RAM[0] contains 256) @256 D=A @SP M=D // push constant 69 @69 D=A @SP A=M M=D @SP M=M+1 // push constant 20 @20 D=A @SP A=M M=D @SP M=M+1 // VM C...
copyright zengfr site:http://github.com/zengfr/romhack 00330E tst.l ($78,A6) [1p+74, boss+74, container+74, enemy+74, weapon+74] 003334 tst.l ($78,A6) [1p+74, boss+74, enemy+74, weapon+74] copyright zengfr site:http://github.com/zengfr/romhack
; A306695: a(n) = gcd(n, psi(n)). ; Submitted by Christian Krause ; 1,1,1,2,1,6,1,4,3,2,1,12,1,2,3,8,1,18,1,4,1,2,1,24,5,2,9,4,1,6,1,16,3,2,1,36,1,2,1,8,1,6,1,4,9,2,1,48,7,10,3,4,1,54,1,8,1,2,1,12,1,2,3,32,1,6,1,4,3,2,1,72,1,2,15,4,1,6,1,16,27,2,1,12,1,2,3,8,1,18,7,4,1,2,5,96,1,14,9,20 add $0,1 mov $1,1 mov $8,$0 lpb ...
;interchange 1st and nth words, 2nd and n-1th words and so on section .data msg1 : db 'Enter string : ' l1 : equ $-msg1 msg2 : db 'Modified string is : ' l2 : equ $-msg2 newline : db 10 section .bss string1 : resb 100 string2 : resb 100 strlen : resb 1 strlen1 : resb 1 temp : resb 1 temp_addr : resd 1 section .text ...
_rm: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 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 ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r8 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0xfb67, %rax nop nop nop nop nop add %r11, %r11 movb (%rax), %r10b nop nop add $32104, %rbx lea addresses_UC_ht+0x56b7, %r11 clflush (%r11) nop nop nop nop nop add $54...
; A200535: G.f. satisfies: A(x) = exp( Sum_{n>=1} [Sum_{k=0..2*n} C(2*n,k)^2 * x^k] / A(x)^n * x^n/n ). ; 1,1,4,5,9,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,23...
; A305071: a(n) = 972*n^2 - 270*n (n>=1). ; 702,3348,7938,14472,22950,33372,45738,60048,76302,94500,114642,136728,160758,186732,214650,244512,276318,310068,345762,383400,422982,464508,507978,553392,600750,650052,701298,754488,809622,866700,925722,986688,1049598,1114452,1181250,1249992,1320678,1393308,1467882,1544400,16...
global long_mode_start section .text bits 64 long_mode_start: mov ax, 0 mov ss, ax mov ds, ax mov es, ax mov fs, ax mov gs, ax extern _kernel_entry call _kernel_entry ; print `OKAY` to screen mov rax, 0x2f592f412f4b2f4f mov qword [0xb8000], rax hlt
; ; NASCOM Graphics Functions ; ; swapgfxbk () -- foo routine for fake swapping ; ; Stefano Bodrato - June 2003 ; ; ; $Id: swapgfxbk.asm,v 1.4 2017/01/02 22:57:58 aralbrec Exp $ ; SECTION code_clib PUBLIC swapgfxbk PUBLIC _swapgfxbk PUBLIC swapgfxbk1 ...
// Copyright (c) 2009-2017 The Bitcoin Core developers // Copyright (c) 2018-2018 The SHIELD Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <interfaces/wallet.h> #include <amount.h> #include <chain.h> ...
; A160595: Numerator of resilience R(n) = phi(n)/(n-1), with a(1) = 1 by convention. ; 1,1,1,2,1,2,1,4,3,4,1,4,1,6,4,8,1,6,1,8,3,10,1,8,5,12,9,4,1,8,1,16,5,16,12,12,1,18,12,16,1,12,1,20,6,22,1,16,7,20,16,8,1,18,20,24,9,28,1,16,1,30,18,32,3,4,1,32,11,8,1,24,1,36,20,12,15,24,1,32,27,40,1,24,16,42,28,40,1,24,4,44,15,46,36...
.386 .model flat, stdcall option casemap: none ;**************************************** include windows.inc include shell32.inc include user32.inc include comctl32.inc include masm32.inc include kernel32.inc include msvcrt.inc includelib user32.lib includelib comctl32.lib includelib masm32.lib includelib kernel32.l...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r13 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_WC_ht+0xad12, %r8 nop sub $61228, %r10 movw $0x6162, (%r8) nop nop nop nop nop add %r12, %r12 lea addresses_UC_ht+0x5e2, %r10 nop add $42419, %r13 mov (%r10), %r9w nop nop n...
; A129254: Numbers n such that both n and n+1 have at least one divisor of the form p^e with p<=e, p prime. ; 27,80,135,188,243,296,351,404,459,512,567,620,675,728,783,836,891,944,999,1052,1107,1160,1215,1268,1323,1376,1431,1484,1539,1592,1647,1700,1755,1808,1863,1916,1971,2024,2079,2132,2187,2240,2295,2348,2403,2456 ...