hexsha
stringlengths
40
40
size
int64
6
1.05M
ext
stringclasses
3 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
232
max_stars_repo_name
stringlengths
7
106
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
7
max_stars_count
int64
1
33.5k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
232
max_issues_repo_name
stringlengths
7
106
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
7
max_issues_count
int64
1
37.5k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
232
max_forks_repo_name
stringlengths
7
106
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
7
max_forks_count
int64
1
12.6k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
6
1.05M
avg_line_length
float64
1.16
19.7k
max_line_length
int64
2
938k
alphanum_fraction
float64
0
1
c8dddf719c7d000521927082d0fb71dcbcae1011
401
asm
Assembly
scripts/GameCornerPrizeRoom.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
scripts/GameCornerPrizeRoom.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
scripts/GameCornerPrizeRoom.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
GameCornerPrizeRoom_Script: jp EnableAutoTextBoxDrawing GameCornerPrizeRoom_TextPointers: dw CeladonPrizeRoomText1 dw CeladonPrizeRoomText2 dw CeladonPrizeRoomText3 dw CeladonPrizeRoomText3 dw CeladonPrizeRoomText3 CeladonPrizeRoomText1: text_far _CeladonPrizeRoomText1 text_end CeladonPrizeRoomText2: text_far _CeladonPrizeRoomText2 text_end CeladonPrizeRoomText3: script_prize_vendor
19.095238
33
0.890274
f542849b90addda7bdbef7e7024dcc934a1d1f9b
381
asm
Assembly
programs/oeis/085/A085741.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/085/A085741.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/085/A085741.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A085741: a(n) = T(n)^n, where T() are the triangular numbers (A000217). ; 1,1,9,216,10000,759375,85766121,13492928512,2821109907456,756680642578125,253295162119140625,103510234140112521216,50714860157241037295616,29345269354638035222576971,19799315994393973883056640625,15407021574586368000000000000000,13696907849916094763278545543233536 sub $1,$0 bin $1,2 pow $1,$0 mov $0,$1
47.625
266
0.829396
dc184573f15a2f26b27003973dc2a7cd0fb8ae70
232
asm
Assembly
programs/oeis/079/A079001.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/079/A079001.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/079/A079001.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A079001: Digital equivalents of letters A, B, C, ..., Z on touch-tone telephone keypad. ; 2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,9 add $0,4 lpb $0 trn $0,3 mov $2,$1 trn $2,6 add $0,$2 add $1,1 lpe mov $0,$1
17.846154
89
0.568966
dcd1dee41470fd27e6747533ec9337256660b339
40
asm
Assembly
src/test/resources/data/searchtests/test12-expected.asm
cpcitor/mdlz80optimizer
75070d984e1f08474e6d397c7e0eb66d8be0c432
[ "Apache-2.0" ]
null
null
null
src/test/resources/data/searchtests/test12-expected.asm
cpcitor/mdlz80optimizer
75070d984e1f08474e6d397c7e0eb66d8be0c432
[ "Apache-2.0" ]
null
null
null
src/test/resources/data/searchtests/test12-expected.asm
cpcitor/mdlz80optimizer
75070d984e1f08474e6d397c7e0eb66d8be0c432
[ "Apache-2.0" ]
null
null
null
ld a, (hl) inc l ld (hl), a
10
14
0.35
98c9a838ac890e00247acffc23e0db5870c9d272
226
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccix_erfc.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccix_erfc.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccix_erfc.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; float erfc(float x) SECTION code_fp_math48 PUBLIC cm48_sdccix_erfc EXTERN cm48_sdccix_erfc_fastcall cm48_sdccix_erfc: pop af pop hl pop de push de push hl push af jp cm48_sdccix_erfc_fastcall
10.761905
32
0.730088
f1387f7c2b8488b35387fa189fd3a4b9d94ca3bd
2,440
asm
Assembly
grammar/tiny/recursion/modle/main.asm
bishop986/CompileConstruction
d35d57dec97a398fe999b8756fd5c229d98324c1
[ "MIT" ]
2
2018-04-22T09:35:36.000Z
2018-05-01T05:56:21.000Z
grammar/tiny/recursion/modle/main.asm
bishop986/CompileConstruction
d35d57dec97a398fe999b8756fd5c229d98324c1
[ "MIT" ]
null
null
null
grammar/tiny/recursion/modle/main.asm
bishop986/CompileConstruction
d35d57dec97a398fe999b8756fd5c229d98324c1
[ "MIT" ]
null
null
null
; Author: bishop986 @copyright ; Introduction: ; code modle section .data errorMsg1: db "[ERROR] Data Format Error, Exit process", 0ah, 0 msgLen1: equ $-errorMsg1 section .text global _start _start: nop nop call _exit .errorread: xor rax, rax xor rbx, rbx xor rcx, rcx xor rdx, rdx mov eax, 4 mov ebx, 1 mov ecx, eax mov edx, msgLen1 int 80h call _exit _exit: mov eax, 1 mov ebx, 0 int 80h _putc: xor rax, rax xor rbx, rbx xor rcx, rcx xor rdx, rdx mov eax, 4 mov ebx, 1 mov ecx, char mov edx, 1 int 80h ret _read: push rax ; read from stdin mov eax, 3 mov ebx, 0 mov ecx, buffer mov edx, bufferlen int 80h mov byte [buffer + 12], 0 ;compute the length of str, save it to edx xor edx, edx mov edx, 0 .begin1: mov al, [buffer+edx] cmp al, 0ah je .end1 cmp al, 0 je .end1 mov bl, '-' cmp al, bl je .right cmp al, '0' jb _start.errorread cmp al, '9' ja _start.errorread .right: inc dl jmp .begin1 .end1: ; finish get the size of str xor rax, rax xor ebx, ebx xor ecx, ecx mov qword [num], rax mov ecx, 1 .atoi: ; convert str to number, save to memory num mov rax, 1 xor ebx, ebx cmp edx, 0 je .end2 mov bl, [buffer+edx-1] cmp bl, "-" je .end2neg xor rax, rax sub bl, 48 ; transform ascii to number mov eax, ebx ; send data of ebx to eax wait for multi push rdx mul ecx ; a*100+b*10+c = abc add qword [num], rax pop rdx xor rax, rax ; iteration multi 10 mov eax, ecx mov ebx, 10 push rdx mul ebx pop rdx mov ecx, eax sub edx, 1 jmp .atoi .end2neg: cmp edx, 1 ; judge if it's the first symbol jne _start.errorread mov rax, -1 .end2: mul qword [num] pop rcx mov qword [rcx], rax ret _write: xor rcx, rcx mov rcx, 1 cmp rax, 0 jg .otia mov rbx, -1 mul rbx push rax push rcx mov byte [char], '-' call _putc pop rcx pop rax .otia: xor rbx, rbx xor rdx, rdx mov rbx, 10 div rbx add rdx, 48 mov byte [char], dl push rdx cmp rax, 0 je .end3 inc rcx jmp .otia .end3: .output: pop rax mov byte [char], al push rcx call _putc pop rcx dec rcx cmp rcx, 0 jne .output mov byte [char], 0ah call _putc ret _eqfunc: sub rax, rbx cmp rax, 0 je .isequ mov rax, 0 ret .isequ: mov rax, 1 ret _lefunc: sub rbx, rax cmp rbx, 0 jg .isle mov rax, 0 ret .isle: mov rax, 1 ret section .bss char: resb 1 delim: resb 1 num: resb 8 bufferlen: equ 1024 buffer: resb bufferlen
13.26087
64
0.643443
5c4a0cf93558501d9017051bd68ad28a965140fc
174
asm
Assembly
libsrc/_DEVELOPMENT/adt/w_array/c/sdcc_iy/w_array_destroy.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/adt/w_array/c/sdcc_iy/w_array_destroy.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/adt/w_array/c/sdcc_iy/w_array_destroy.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void w_array_destroy(w_array_t *a) SECTION code_clib SECTION code_adt_w_array PUBLIC _w_array_destroy EXTERN _b_array_destroy defc _w_array_destroy = _b_array_destroy
14.5
40
0.850575
6d6797b54bc871a12346915a44e9b15728d7d585
3,504
asm
Assembly
programs/oeis/140/A140147.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/140/A140147.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/140/A140147.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A140147: a(1)=1, a(n)=a(n-1)+n^1 if n odd, a(n)=a(n-1)+ n^5 if n is even. ; 1,33,36,1060,1065,8841,8848,41616,41625,141625,141636,390468,390481,928305,928320,1976896,1976913,3866481,3866500,7066500,7066521,12220153,12220176,20182800,20182825,32064201,32064228,49274596,49274625,73574625,73574656,107129088,107129121,152564545,152564580,213030756,213030793,292265961,292266000,394666000,394666041,525357273,525357316,690273540,690273585,896236561,896236608,1151040576,1151040625,1463540625,1463540676,1843744708,1843744761,2302909785,2302909840,2853641616,2853641673,3509998441,3509998500,4287598500,4287598561,5203731393,5203731456,6277473280,6277473345,7529805921,7529805988,8983739556,8983739625,10664439625,10664439696,12599357328,12599357401,14818364025,14818364100,17353889476,17353889553,20241063921,20241064000,23517864000,23517864081,27225262513,27225262596,31407382020,31407382105,36111652281,36111652368,41388971536,41388971625,47293871625,47293871716,53884686948,53884687041,61223727265,61223727360,69377454336,69377454433,78416662401,78416662500,88416662500,88416662601,99457470633,99457470736,111623999760,111623999865,125006255641,125006255748,139699536516,139699536625,155804636625,155804636736,173428053568,173428053681,192682199505,192682199620,213685616196,213685616313,236563193881,236563194000,261446394000,261446394121,288473475753,288473475876,317789726500,317789726625,349547696001,349547696128,383907434496,383907434625,421036734625,421036734756,461111377188,461111377321,504315380745,504315380880,550841255056,550841255193,600890258361,600890258500,654672658500,654672658641,712407997873,712407998016,774325362240,774325362385,840663653361,840663653508,911671865476,911671865625,987609365625,987609365776,1068746177808,1068746177961,1155363270985,1155363271140,1247752850916,1247752851073,1346218655841,1346218656000,1451076256000,1451076256161,1562653356993,1562653357156,1681290106980,1681290107145,1807339407721,1807339407888,1941167229456,1941167229625,2083152929625,2083152929796,2233689575428,2233689575601,2393184270225,2393184270400,2562058483776,2562058483953,2740748386321,2740748386500,2929705186500,2929705186681,3129395473113,3129395473296,3340301560720,3340301560905,3562921839081,3562921839268,3797771126436,3797771126625,4045381026625,4045381026816,4306300290048,4306300290241,4581095178465,4581095178660,4870349833636,4870349833833,5174666649801,5174666650000,5494666650000,5494666650201,5830989866233,5830989866436,6184295723460,6184295723665,6555263427441,6555263427648,6944592356416,6944592356625,7353002456625,7353002456836,7781234641668,7781234641881,8230051195705,8230051195920,8700236180496,8700236180713,9192595846281,9192595846500,9707959046500,9707959046721,10247177656353,10247177656576,10811126995200,10811126995425,11400706252801,11400706253028,12016838919396,12016838919625,12660473219625,12660473219856,13332582550288,13332582550521,14034165921945,14034165922180,14766248404356,14766248404593,15529881575761,15529881576000,16326143976000,16326143976241,17156141563473,17156141563716,18021008175940,18021008176185,18921905995161,18921905995408,19860026015376,19860026015625,20836588515625 mov $2,$0 add $2,1 mov $7,$0 lpb $2,1 mov $0,$7 sub $2,1 sub $0,$2 mov $3,1 add $3,$0 mov $0,1 mov $5,$3 add $5,$4 sub $5,$4 mov $4,$5 lpb $0,1 sub $3,$0 mov $0,4 sub $3,$6 add $0,$3 mod $0,2 sub $0,1 mov $3,1 sub $4,1 mov $5,$4 add $5,1 lpe pow $3,4 mul $3,$5 add $1,$3 mov $6,1 lpe
100.114286
3,070
0.858733
c71e905cc2a318e07773662fdc364dbfc9a5c0a1
1,494
asm
Assembly
in-str.asm
new2500/Assembly-Programming
19f6fe238fbecc993c61e6facfb3f52b73a27b78
[ "MIT" ]
null
null
null
in-str.asm
new2500/Assembly-Programming
19f6fe238fbecc993c61e6facfb3f52b73a27b78
[ "MIT" ]
null
null
null
in-str.asm
new2500/Assembly-Programming
19f6fe238fbecc993c61e6facfb3f52b73a27b78
[ "MIT" ]
null
null
null
ST1_SEG SEGMENT STACK STACK_BUF DW 120 DUP (?) TOP DW 0 ST1_SEG ENDS ;------------------------------ DATA1_SEG SEGMENT M_Num DB 20 IN_Ch_Num DB ? Str1 DB 20 DUP (?) CR DB 0AH,0DH,'the num of input chars is $' DATA1_SEG ENDS CODE1_SEG SEGMENT ;------------------------------------------------------ MAIN PROC FAR ASSUME CS:CODE1_SEG,DS:DATA1_SEG ASSUME SS:ST1_SEG START: MOV AX,ST1_SEG MOV SS,AX MOV SP,OFFSET TOP MOV AX,DATA1_SEG MOV DS,AX MOV DX,OFFSET M_Num MOV AH,0AH INT 21H MOV DX,OFFSET CR MOV AH,09 INT 21H MOV BL,IN_Ch_Num MOV BH,0 MOV DX,OFFSET Str1 MOV SI,DX MOV [SI+BX],BYTE PTR'$' OR BL,30H MOV IN_Ch_Num,BL MOV DX,OFFSET IN_Ch_Num MOV AH,09h INT 21h MOV AH,01 INT 21H MOV AH,4CH INT 21H MAIN ENDP CODE1_SEG ENDS END START ;end
32.478261
74
0.333333
a69f7b185722d8ee416da04ac07b3fff339d3a8b
417
asm
Assembly
programs/oeis/327/A327329.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/327/A327329.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/327/A327329.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A327329: Twice the sum of all divisors of all positive integers <= n. ; 2,8,16,30,42,66,82,112,138,174,198,254,282,330,378,440,476,554,594,678,742,814,862,982,1044,1128,1208,1320,1380,1524,1588,1714,1810,1918,2014,2196,2272,2392,2504,2684,2768,2960,3048,3216,3372,3516,3612,3860,3974,4160,4304,4500,4608,4848,4992 add $0,1 mul $0,2 cal $0,271342 ; Sum of all even divisors of all positive integers <= n. mov $1,$0
52.125
243
0.736211
141fbf1a43947e8da1bf902a8732249940097095
2,759
asm
Assembly
x86/Gen_QuietChecks.asm
lantonov/asm
b9ddd4ed9a8c73cbd3600608847769f4690c293c
[ "BSD-3-Clause" ]
150
2016-11-26T05:41:31.000Z
2022-02-09T20:54:53.000Z
x86/Gen_QuietChecks.asm
lantonov/asm
b9ddd4ed9a8c73cbd3600608847769f4690c293c
[ "BSD-3-Clause" ]
199
2016-12-07T22:13:00.000Z
2022-03-22T15:42:18.000Z
x86/Gen_QuietChecks.asm
lantonov/asm
b9ddd4ed9a8c73cbd3600608847769f4690c293c
[ "BSD-3-Clause" ]
95
2016-11-24T22:57:13.000Z
2022-01-24T19:42:10.000Z
; generate<QUIET_CHECKS> generates all pseudo-legal non-captures and knight ; underpromotions that give check. Returns a pointer to the end of the move list. calign 16 Gen_QuietChecks: ; in: rbp address of position ; rbx address of state ; io: rdi address to write moves push rsi r12 r13 r14 r15 mov r15, qword[rbp+Pos.typeBB+8*White] or r15, qword[rbp+Pos.typeBB+8*Black] mov r14, qword[rbx+State.dcCandidates] test r14, r14 jz .PopLoopDone .PopLoop: _tzcnt r13, r14 _blsr r14, r14, rax movzx r12d, byte[rbp+Pos.board+r13] and r12d, 7 jmp qword[.JmpTable+8*r12] calign 8 .JmpTable: dq 0;Gen_QuietChecks_Jmp.PopSkip dq 0;Gen_QuietChecks_Jmp.PopSkip dq Gen_QuietChecks.PopSkip dq Gen_QuietChecks_Jmp.AttacksFromKnight dq Gen_QuietChecks_Jmp.AttacksFromBishop dq Gen_QuietChecks_Jmp.AttacksFromRook dq Gen_QuietChecks_Jmp.AttacksFromQueen dq Gen_QuietChecks_Jmp.AttacksFromKing .AttacksFromRet: shl r13d, 6 test rsi, rsi jz .MoveLoopDone .MoveLoop: _tzcnt rax, rsi or eax, r13d mov dword[rdi], eax lea rdi, [rdi+sizeof.ExtMove] _blsr rsi, rsi, rdx jnz .MoveLoop .MoveLoopDone: .PopSkip: test r14, r14 jnz .PopLoop .PopLoopDone: not r15 mov r14, qword[rbp+Pos.typeBB+8*White] or r14, qword[rbp+Pos.typeBB+8*Black] cmp byte[rbp+Pos.sideToMove], 0 jne Gen_QuietChecks_Black calign 8 Gen_QuietChecks_White: generate_all White, QUIET_CHECKS pop r15 r14 r13 r12 rsi ret generate_jmp White, QUIET_CHECKS calign 8 Gen_QuietChecks_Black: generate_all Black, QUIET_CHECKS pop r15 r14 r13 r12 rsi ret generate_jmp Black, QUIET_CHECKS Gen_QuietChecks_Jmp: calign 8 .AttacksFromKnight: mov rsi, qword[KnightAttacks+8*r13] _andn rsi, r15, rsi jmp Gen_QuietChecks.AttacksFromRet calign 8 .AttacksFromKing: mov rsi, qword[KingAttacks+8*r13] _andn rsi, r15, rsi movzx ecx, byte [rbx+State.ksq] mov rax, qword[RookAttacksPDEP+8*rcx] or rax, qword[BishopAttacksPDEP+8*rcx] _andn rsi, rax, rsi jmp Gen_QuietChecks.AttacksFromRet calign 8 .AttacksFromBishop: BishopAttacks rsi, r13, r15, rax _andn rsi, r15, rsi jmp Gen_QuietChecks.AttacksFromRet calign 8 .AttacksFromRook: RookAttacks rsi, r13, r15, rax _andn rsi, r15, rsi jmp Gen_QuietChecks.AttacksFromRet calign 8 .AttacksFromQueen: BishopAttacks rsi, r13, r15, rax RookAttacks rdx, r13, r15, rax or rsi, rdx _andn rsi, r15, rsi jmp Gen_QuietChecks.AttacksFromRet
23.784483
81
0.668358
3a8915d4359e16ad6073d12c9ca363ede97b340e
6,272
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_/i3-7100_9_0xca_notsx.log_21829_1893.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_/i3-7100_9_0xca_notsx.log_21829_1893.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_/i3-7100_9_0xca_notsx.log_21829_1893.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r14 push %r15 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x8a9c, %rcx nop dec %rdx mov $0x6162636465666768, %rbp movq %rbp, (%rcx) nop nop nop nop nop add $7220, %r13 lea addresses_WC_ht+0xb15c, %r12 nop nop xor $55642, %r15 mov (%r12), %r14w and $46823, %r12 lea addresses_UC_ht+0x1535c, %rbp nop sub %rcx, %rcx mov (%rbp), %dx nop nop nop nop nop xor $50089, %rdx lea addresses_D_ht+0xe55c, %r12 nop nop nop nop nop sub %r15, %r15 vmovups (%r12), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $1, %xmm3, %r14 nop nop inc %r14 lea addresses_UC_ht+0x1661c, %rsi lea addresses_D_ht+0x1755c, %rdi nop nop nop sub %r13, %r13 mov $38, %rcx rep movsw nop nop nop nop inc %r14 lea addresses_D_ht+0x8f9c, %r12 and %rsi, %rsi movw $0x6162, (%r12) nop nop add %rsi, %rsi lea addresses_A_ht+0x12854, %rsi lea addresses_D_ht+0x1d57c, %rdi nop nop nop and $43517, %r15 mov $58, %rcx rep movsl nop cmp $58035, %rdx lea addresses_normal_ht+0x1badc, %r14 and $61848, %rbp mov (%r14), %rcx nop nop nop nop nop sub $35604, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r15 pop %r14 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r8 push %rbp push %rcx push %rdi push %rdx push %rsi // REPMOV lea addresses_RW+0x19adc, %rsi lea addresses_WC+0x19354, %rdi and %rdx, %rdx mov $49, %rcx rep movsb nop nop nop nop nop cmp $45777, %rsi // Faulty Load lea addresses_A+0x6d5c, %rdi nop add $51820, %rdx movntdqa (%rdi), %xmm0 vpextrq $1, %xmm0, %rcx lea oracles, %rdx and $0xff, %rcx shlq $12, %rcx mov (%rdx,%rcx,1), %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r8 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_RW', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC', 'congruent': 3, 'same': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_A', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}} {'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 9, 'NT': True, 'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}} {'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'8a': 3, '45': 12, '00': 405, '01': 1, '46': 1, '32': 21399, '47': 8} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 00 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 00 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 00 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 00 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 00 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
38.716049
2,999
0.655134
f2e19467af10b3c380bf363181224c44abd76fa0
6,732
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_21829_229.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_21829_229.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_21829_229.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r8 push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x11096, %rsi lea addresses_WT_ht+0x16572, %rdi nop nop nop dec %rbx mov $102, %rcx rep movsb nop nop nop nop cmp %r13, %r13 lea addresses_normal_ht+0x1b716, %rsi nop nop nop nop nop and %r10, %r10 mov (%rsi), %r13w nop nop cmp $49216, %rbx lea addresses_WT_ht+0x5496, %rsi nop nop nop nop nop sub %r8, %r8 mov (%rsi), %rbx nop nop xor %r8, %r8 lea addresses_UC_ht+0x14916, %rcx nop nop nop and $26166, %rsi movups (%rcx), %xmm4 vpextrq $0, %xmm4, %rbx nop nop nop xor $36034, %rcx lea addresses_D_ht+0x1e16, %rsi lea addresses_normal_ht+0x1eb96, %rdi nop nop nop add %rbx, %rbx mov $67, %rcx rep movsw nop nop nop nop nop cmp %rdi, %rdi lea addresses_D_ht+0x4696, %rsi lea addresses_UC_ht+0xe7c6, %rdi add %r11, %r11 mov $21, %rcx rep movsq nop nop nop nop inc %r13 lea addresses_D_ht+0xba56, %rsi lea addresses_D_ht+0x1ebc7, %rdi nop nop nop nop nop cmp %r8, %r8 mov $121, %rcx rep movsw nop nop add %rsi, %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %r8 pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r15 push %r9 push %rbp push %rdi push %rsi // Store lea addresses_normal+0x1d996, %rdi nop nop nop nop nop sub %r15, %r15 movw $0x5152, (%rdi) nop nop nop nop nop cmp $29976, %r14 // Store lea addresses_UC+0x1284a, %rsi nop xor %r9, %r9 movb $0x51, (%rsi) nop nop nop xor %r9, %r9 // Store lea addresses_WT+0x12d76, %rsi nop nop nop dec %r15 movl $0x51525354, (%rsi) nop nop nop nop and $57504, %r11 // Store lea addresses_A+0x11596, %rsi nop nop add %r14, %r14 movw $0x5152, (%rsi) nop nop and $19085, %rbp // Faulty Load lea addresses_normal+0x1d996, %rbp nop xor %r9, %r9 mov (%rbp), %r14w lea oracles, %rsi and $0xff, %r14 shlq $12, %r14 mov (%rsi,%r14,1), %r14 pop %rsi pop %rdi pop %rbp pop %r9 pop %r15 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_normal', 'congruent': 0}} {'dst': {'same': True, 'NT': False, 'AVXalign': True, 'size': 2, 'type': 'addresses_normal', 'congruent': 0}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC', 'congruent': 2}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WT', 'congruent': 5}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_A', 'congruent': 9}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_normal', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_UC_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_normal_ht', 'congruent': 5}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 8, 'type': 'addresses_WT_ht', 'congruent': 8}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_UC_ht', 'congruent': 6}} {'dst': {'same': False, 'congruent': 8, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_D_ht'}} {'dst': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}} {'dst': {'same': False, 'congruent': 0, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}} {'52': 21829} 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 */
33.326733
2,999
0.656714
15ee435cb897572818e502e3ad1d0b2f2a8d6947
408
asm
Assembly
asm/dr_lobby.asm
KrisDavie/ALttPDoorRandomizer
e0ff23158a38cd0ce34a4f7520a30271a09e24fd
[ "MIT" ]
42
2019-08-22T16:19:51.000Z
2022-03-30T17:39:39.000Z
asm/dr_lobby.asm
KrisDavie/ALttPDoorRandomizer
e0ff23158a38cd0ce34a4f7520a30271a09e24fd
[ "MIT" ]
48
2019-09-04T22:47:03.000Z
2022-01-13T22:16:13.000Z
asm/dr_lobby.asm
KrisDavie/ALttPDoorRandomizer
e0ff23158a38cd0ce34a4f7520a30271a09e24fd
[ "MIT" ]
35
2020-01-10T09:12:53.000Z
2022-03-23T08:22:25.000Z
CheckDarkWorldSpawn: STA $A0 : STA $048E ; what we wrote over LDA.l DRFlags : AND #$0200 : BEQ + ; skip if the flag isn't set LDA.l $7EF357 : AND #$00FF : BNE + ; moon pearl? LDA.l LinksHouseDarkWorld : CMP $A0 : BEQ ++ LDA.l SanctuaryDarkWorld : CMP $A0 : BEQ ++ LDA.l OldManDarkWorld : CMP $A0 : BNE + ++ SEP #$30 : LDA #$17 : STA $5D INC $02E0 : LDA.b #$40 : STA !DARK_WORLD : REP #$30 + RTL
37.090909
64
0.620098
fbef13149fb3adb0a7cae7c6fcb037729007cd8a
376
asm
Assembly
TIS100/Programs/Multiplier.asm
embix/TIS100
dcbdb431962bc082a6c52e5c33e3f9c157c4cfd1
[ "MIT" ]
11
2015-06-19T09:25:47.000Z
2021-05-04T19:59:22.000Z
TIS100/Programs/Multiplier.asm
embix/TIS100
dcbdb431962bc082a6c52e5c33e3f9c157c4cfd1
[ "MIT" ]
3
2015-06-27T17:48:19.000Z
2015-07-10T15:46:12.000Z
TIS100/Programs/Multiplier.asm
embix/TIS100
dcbdb431962bc082a6c52e5c33e3f9c157c4cfd1
[ "MIT" ]
2
2015-07-09T17:09:03.000Z
2016-12-07T08:15:14.000Z
@1 MOV UP ACC MOV ACC RIGHT MOV ACC RIGHT @2 MOV UP ACC MOV ACC RIGHT SUB LEFT JGZ ELSE MOV LEFT DOWN MOV RIGHT DOWN JRO -99 ELSE: MOV RIGHT DOWN MOV LEFT DOWN @3 MOV UP ACC SAV MOV UP ACC LOOP: JEZ DONE SWP MOV ACC DOWN MOV ACC DOWN SWP SUB 1 JMP LOOP DONE: MOV -1 DOWN @4 MOV UP ACC JLZ DONE SWP ADD UP SWP JRO -99 DONE: SWP MOV ACC DOWN MOV 0 ACC SAV @5 MOV LEFT LEFT
7.673469
14
0.720745
3ef08b6e3b15d4bd92dcbea10e09154115cf6c02
378
asm
Assembly
programs/oeis/156/A156157.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/156/A156157.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/156/A156157.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A156157: a(n) = 6*a(n-1)-a(n-2) for n > 2; a(1) = 17, a(2) = 85. ; 17,85,493,2873,16745,97597,568837,3315425,19323713,112626853,656437405,3825997577,22299548057,129971290765,757528196533,4415197888433,25733659134065,149986756915957,874186882361677,5095134537254105 mul $0,2 add $0,1 mov $2,8 lpb $0,1 sub $0,1 add $1,$2 mov $3,$2 mov $2,$1 add $3,1 add $1,$3 lpe
25.2
199
0.687831
17c7329db9ca67e75f6a871f8c507cf1998e273d
1,948
asm
Assembly
Library/BorlandRTL/h_psbp.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/BorlandRTL/h_psbp.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/BorlandRTL/h_psbp.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
; $Id: h_psbp.asm,v 1.1 97/04/07 12:04:07 newdeal Exp $ ;[]-----------------------------------------------------------------[] ;| H_PSBP.ASM -- long pointer routines | ;[]-----------------------------------------------------------------[] ; ; C/C++ Run Time Library - Version 5.0 ; ; Copyright (c) 1987, 1992 by Borland International ; All Rights Reserved. ; INCLUDE rules.asi ; calls to these routines are generated by the compiler to perform ; arithmetic operations on long pointers. _TEXT SEGMENT BYTE PUBLIC 'CODE' ASSUME CS:_TEXT ; ; ax:dx left hand pointer ; bx:cx right hand pointer ; ; To subtract, first convert both pointers to longs. ; then do a simple signed long subtraction. Actually ; we only store 24 bit ints until the subtraction is ; done. ; public PSBP@ public F_PSBP@ public N_PSBP@ N_PSBP@ proc near call F_PSBP@ ret N_PSBP@ endp PSBP@ proc far .fall_thru PSBP@ endp F_PSBP@ proc far push di mov di,cx mov ch,dh mov cl,4 shl dx,cl shr ch,cl ; dx:ch has the left hand long add dx,ax adc ch,0 mov ax,di shl di,cl shr ah,cl add bx,di adc ah,0 ; bx:ah has the right hand long sub dx,bx sbb ch,ah mov al,ch cbw ; sign extend the upper part xchg ax,dx pop di ret F_PSBP@ endp _TEXT ENDS
29.074627
72
0.400411
e0b6d4c4698afc7c3eb0f5e8569d8f18ba48b071
1,051
asm
Assembly
Library/Breadbox/CDADOS/manager.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Breadbox/CDADOS/manager.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Breadbox/CDADOS/manager.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Dirk Lausecker 1997 -- All Rights Reserved PROJECT: MM-Projekt MODULE: Driver Template FILE: Manager.asm AUTHOR: Dirk Lausecker REVISION HISTORY: Name Date Description ---- ---- ----------- DL 17.07.97 Initial revision DESCRIPTION: This is the manager file for the driver-template. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ;----------------------------------------------------------------------------- ; Include Files ;----------------------------------------------------------------------------- ; include geos.def include resource.def include ec.def include driver.def include system.def ;include Internal/interrup.def ;include CDAError.def ;----------------------------------------------------------------------------- ; Source files for driver ;----------------------------------------------------------------------------- .ioenable include CDAMain.asm include CDAStrat.asm
23.355556
78
0.402474
fd7fe0cbb813e525f950fcdc25d1b4fbc262a561
2,668
asm
Assembly
COMP 3350 - Assembly & Comp Org/HW/homework3/HW3project/homework3.asm
Skyfox64/auburn-csse
7343c7cc4567c751f3c7d298c78b8cc85d25d6dd
[ "MIT" ]
1
2020-12-10T00:50:08.000Z
2020-12-10T00:50:08.000Z
COMP 3350 - Assembly & Comp Org/HW/homework4/HW4project/homework3.asm
Skyfox64/auburn-csse
7343c7cc4567c751f3c7d298c78b8cc85d25d6dd
[ "MIT" ]
null
null
null
COMP 3350 - Assembly & Comp Org/HW/homework4/HW4project/homework3.asm
Skyfox64/auburn-csse
7343c7cc4567c751f3c7d298c78b8cc85d25d6dd
[ "MIT" ]
null
null
null
TITLE COMP 3350 Homework 3 (Fa14) - John Carroll INCLUDE Irvine32.inc .data values SWORD 10 DUP(?) ;The array of signed integer Values promptMsg BYTE "Enter a value: ", 0 ;The message prompt given to the user errorMsg BYTE "Out of range", 0 ;The error message if the user input is bad spaceChar BYTE 20h, 0 ;The ASCII char for a space .code main PROC ;Initialize program counter for use, starting at 0 mov ecx, 0 ;(1) Repeat the following 10 times: ;(a)Display Enter a value: promptValue: mov edx, offset promptMsg ;Move the prompting message into EDX call WriteString ;Display the prompt from EDX ;(b)Read a signed value from the keyboard into EAX call ReadInt ;(c)If the integer is less than -32768 or greater than 32767, display "Out of range" and exit ;Use compare CMP to see if the value in EAX is within range cmp eax, -32768 jl errorExit cmp eax, 32767 jg errorExit ;(d) Store the values of AX ; Add new values until an array of size 10 is achieved. mov [values + ecx*SIZEOF WORD], ax inc ecx cmp ecx, 10 je displayValue jmp promptValue ;After Step 1 has completed, values should contain the 10 integer values entered by the user. ;(2) Display the 10 values in reverse order, on one line, separated by spaces. ; Do not reverse the array in memory; just display it in reverse order. displayValue: ;Decrement ecx, then move the next value into EAX dec ecx movsx eax, [values + ecx*SIZEOF WORD] ; Display value ;Display the value call WriteInt ;Follow it with a space mov edx, offset spaceChar call WriteString ;See if it is time to move on to prefixSum jecxz displayPrefixSum ; Done displaying when ECX = 0 ;If not, keep displaying the values jmp displayValue ;(3) Display the prefix sum of the values array, on one line, with values separated by spaces. ; Use 32-bit values when computing the prefix sum, so it will not overflow. prefixSumBeginning: ; Drop a line call crlf ; Load first value into EAX movsx eax, [values] displayPrefixSum: ;Displays the prefix sum call WriteInt ;Add a space mov edx, OFFSET spaceChar call WriteString ;Increment ecx, which is 0 from part 2, then cmp if it is 10, if so then the program is done. inc ecx cmp ecx, 10 je done; THIS IS THE EXIT ;Move the next value into EBX, add EBX to EAX, then repeat the displayPrefixSum loop movsx ebx, [values + 2 * ecx] add eax, ebx jmp displayPrefixSum errorExit: ;Displays the error message and then continues to exit the program mov edx, offset errorMsg call WriteString done: ;Exit the program call crlf exit main ENDP END main
29
94
0.723763
c9368938ce82bf975640441bdecc5bb7f76807fa
1,229
asm
Assembly
programs/oeis/017/A017742.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/017/A017742.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/017/A017742.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A017742: Binomial coefficients C(n,78). ; 1,79,3160,85320,1749060,29034396,406481544,4935847320,53060358690,512916800670,4513667845896,36519676207704,273897571557780,1917283000904460,12599288291657880,78115587408278856,458929076023638279,2564603660132096265,13677886187371180080,69829208430263393040,342163121308290625896,1613054714739084379224,7332066885177656269200,32197337191432316660400,136838683063587345806700,563775374221979864723604,2255101496887919458894416,8769839154564131229033840,33200105370849925367056680,122496940506239379802588440,440988985822461767289318384,1550574175956397826920506576,5330098729850117530039241355,17928513909495849873768357285,59058634054809858407707529880,190675018519814685716312882184,603804225312746504768324126916,1876688808404482379685331745820,5728839520392630422197328487240,17186518561177891266591985461720,50700229755474779236446357112074,147154325387841432417978451130166,420440929679546949765652717514760,1183101220726166998177766949285720,3280417021104372131311081086655860,8966473191018617158916954970192684,24170492949702359297950052528345496,64283225930059466217952267362621000,168743468066406098822124701826880125,437355519274154582661425247592117875 add $0,78 bin $0,78
204.833333
1,165
0.941416
0ebd44de6fdf8e31512a7e320fbaaf85e3fd7096
476
asm
Assembly
src/intel/tools/tests/gen7.5/if.asm
PWN-Hunter/mesa3d
be12e189989e3476d7c9d40e1c0c3a35143ee51a
[ "MIT" ]
null
null
null
src/intel/tools/tests/gen7.5/if.asm
PWN-Hunter/mesa3d
be12e189989e3476d7c9d40e1c0c3a35143ee51a
[ "MIT" ]
null
null
null
src/intel/tools/tests/gen7.5/if.asm
PWN-Hunter/mesa3d
be12e189989e3476d7c9d40e1c0c3a35143ee51a
[ "MIT" ]
null
null
null
(-f0.0) if(8) JIP: 8 UIP: 8 { align1 1Q }; (-f0.0) if(16) JIP: 8 UIP: 8 { align1 1H }; (+f0.0.x) if(8) JIP: 18 UIP: 18 { align16 1Q }; (+f0.0) if(8) JIP: 14 UIP: 14 { align16 1Q }; (+f0.0) if(8) JIP: 12 UIP: 82 { align1 1Q }; (+f0.0) if(16) JIP: 12 UIP: 82 { align1 1H };
68
79
0.304622
3bf2239ae2e3cdac0fdfcbbeda7db3ef9d4443ae
7,849
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1177.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1177.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1177.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0xe995, %rcx nop dec %r11 mov $0x6162636465666768, %rax movq %rax, %xmm5 and $0xffffffffffffffc0, %rcx vmovaps %ymm5, (%rcx) nop nop nop nop nop add %rsi, %rsi lea addresses_WC_ht+0x1a24d, %r8 nop nop nop nop sub $16871, %rax mov $0x6162636465666768, %rbx movq %rbx, %xmm3 and $0xffffffffffffffc0, %r8 movntdq %xmm3, (%r8) cmp $59426, %rcx lea addresses_A_ht+0xb0cd, %r8 nop nop nop cmp $3153, %r13 vmovups (%r8), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $1, %xmm3, %rax nop nop nop nop lfence lea addresses_A_ht+0x16ccd, %rsi nop nop and $37801, %rbx movw $0x6162, (%rsi) nop nop nop nop add %rsi, %rsi lea addresses_UC_ht+0x1958d, %rcx nop nop nop nop xor %r8, %r8 movb (%rcx), %al dec %r8 lea addresses_UC_ht+0x1eaad, %rsi lea addresses_WC_ht+0x45cd, %rdi clflush (%rsi) inc %r8 mov $24, %rcx rep movsb nop cmp $44402, %rsi lea addresses_WT_ht+0x4dcd, %rsi lea addresses_UC_ht+0x50cd, %rdi nop nop nop nop dec %rax mov $16, %rcx rep movsw nop nop nop nop nop xor %r8, %r8 lea addresses_WT_ht+0x9ccd, %rsi nop sub %rax, %rax mov $0x6162636465666768, %rdi movq %rdi, (%rsi) nop nop nop nop sub $48060, %rax lea addresses_normal_ht+0x120cd, %r11 and $43847, %r8 movb $0x61, (%r11) nop nop nop nop add %r11, %r11 lea addresses_A_ht+0x7a71, %rbx add $13358, %rdi mov (%rbx), %r11d add %rdi, %rdi lea addresses_A_ht+0x192cd, %r11 nop nop nop nop nop sub $22973, %rdi movb (%r11), %r8b nop cmp %r8, %r8 lea addresses_A_ht+0x12ed5, %rbx nop nop nop nop nop xor %rax, %rax mov $0x6162636465666768, %r11 movq %r11, (%rbx) xor $43147, %rbx lea addresses_D_ht+0x1a8cd, %rax cmp $10571, %rdi and $0xffffffffffffffc0, %rax vmovaps (%rax), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $0, %xmm2, %r11 dec %rbx lea addresses_WT_ht+0x1eeff, %rsi lea addresses_A_ht+0xb47d, %rdi nop nop cmp %r13, %r13 mov $24, %rcx rep movsq nop nop nop xor %r13, %r13 lea addresses_normal_ht+0x9e4d, %r13 nop nop nop nop nop cmp %rdi, %rdi movups (%r13), %xmm5 vpextrq $0, %xmm5, %rbx nop nop nop nop sub $54517, %r8 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r8 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r15 push %r9 push %rbx // Faulty Load lea addresses_RW+0x150cd, %r9 clflush (%r9) sub $18877, %r12 vmovups (%r9), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $0, %xmm6, %r14 lea oracles, %r9 and $0xff, %r14 shlq $12, %r14 mov (%r9,%r14,1), %r14 pop %rbx pop %r9 pop %r15 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 3, 'same': True, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'dst': {'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'src': {'NT': True, 'AVXalign': True, 'size': 1, 'congruent': 6, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 5, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 7, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'src': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 1, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'src': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 9, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
35.040179
2,999
0.657663
387e56853821dce59977f4d851196885bd164bac
751
asm
Assembly
oeis/031/A031378.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/031/A031378.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/031/A031378.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A031378: a(n) = prime(4*n - 2). ; Submitted by Jon Maiga ; 3,13,29,43,61,79,101,113,139,163,181,199,229,251,271,293,317,349,373,397,421,443,463,491,521,557,577,601,619,647,673,701,733,757,787,821,839,863,887,929,953,983,1013,1033,1061,1091,1109,1151,1181,1213,1231,1277,1291,1307,1361,1399,1429,1451,1481,1493,1531,1559,1583,1609,1627,1667,1699,1733,1759,1789,1831,1871,1889,1931,1973,1997,2017,2053,2083,2111,2137,2161,2213,2243,2273,2297,2339,2357,2383,2411,2441,2473,2531,2551,2593,2633,2663,2687,2707,2729 mov $2,36 mul $2,$0 mul $0,4 mov $4,2 lpb $2 mov $3,$4 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 mov $1,$0 max $1,0 cmp $1,$0 mul $2,$1 sub $2,1 add $4,2 lpe mov $0,$4 add $0,1
34.136364
452
0.69241
f4c1c42699064367b1a25abe7bbf6cc4daa4600c
19,380
asm
Assembly
source/phase_edge_push_pr.asm
stanford-mast/Grazelle-PPoPP18
5c95c1d498a3935a6e40202c34d5f32653132c1c
[ "BSD-3-Clause" ]
19
2018-02-27T14:00:28.000Z
2022-01-14T02:53:50.000Z
source/phase_edge_push_pr.asm
stanford-mast/Grazelle-PPoPP18
5c95c1d498a3935a6e40202c34d5f32653132c1c
[ "BSD-3-Clause" ]
4
2018-03-02T13:59:05.000Z
2022-01-19T12:20:50.000Z
source/phase_edge_push_pr.asm
stanford-mast/Grazelle-PPoPP18
5c95c1d498a3935a6e40202c34d5f32653132c1c
[ "BSD-3-Clause" ]
1
2019-04-10T18:20:47.000Z
2019-04-10T18:20:47.000Z
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Grazelle ; High performance, hardware-optimized graph processing engine. ; Targets a single machine with one or more x86-based sockets. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Authored by Samuel Grossman ; Department of Electrical Engineering, Stanford University ; (c) 2015-2018 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; phase_edge_push_pr.asm ; Implementation of the Edge-Push phase for PageRank. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; INCLUDE constants.inc INCLUDE phasehelpers.inc INCLUDE registers.inc INCLUDE scheduler_push.inc INCLUDE threadhelpers.inc _TEXT SEGMENT ; --------- MACROS ------------------------------------------------------------ ; Initializes required state for the Edge-Push phase. edge_push_op_initialize MACRO ; initialize the work scheduler scheduler_phase_init ; perform common initialization tasks phase_helper_set_base_addrs phase_helper_set_graph_info ; initialize the bitwise-AND masks used throughout this phase vmovapd ymm_vid_and_mask, YMMWORD PTR [const_vid_and_mask] vmovapd ymm_elist_and_mask, YMMWORD PTR [const_edge_list_and_mask] vmovapd ymm_emask_and_mask, YMMWORD PTR [const_edge_mask_and_mask] ENDM ; Performs an iteration of the Edge-Push phase at the specified index. edge_push_op_iteration_at_index MACRO ; load the edge list element at the specified index shl rcx, 5 add rcx, r_edgelist IFDEF EXPERIMENT_WITHOUT_VECTORS ; non-vectorized load of 4 scalar elements mov rax, QWORD PTR [rcx] vpinsrq xmm0, xmm0, rax, 0 mov rax, QWORD PTR [rcx+8] vpinsrq xmm0, xmm0, rax, 1 vinserti128 ymm_edgevec, ymm_edgevec, xmm0, 0 mov rax, QWORD PTR [rcx+16] vpinsrq xmm0, xmm0, rax, 0 mov rax, QWORD PTR [rcx+24] vpinsrq xmm0, xmm0, rax, 1 vinserti128 ymm_edgevec, ymm_edgevec, xmm0, 1 ELSE ; vectorized load vmovapd ymm_edgevec, YMMWORD PTR [rcx] ENDIF IFNDEF EXPERIMENT_WITHOUT_PREFETCH ; prefetch the next several edge list elements whenever the processor has some free time ; this will produce a stream of far-ahead prefetches every iteration of the Edge-Push phase ; the "sweet spot" number of cache lines ahead to prefetch was determined experimentally prefetchnta BYTE PTR [rcx+256] ENDIF ; perform the bitwise AND operations with the required masks vandpd ymm_elist, ymm_edgevec, ymm_elist_and_mask vandpd ymm_emask, ymm_edgevec, ymm_emask_and_mask vandpd ymm_edgevec, ymm_edgevec, ymm_vid_and_mask ; extract the source vertex ID by extracting individual 16-bit words as needed, shifting, and bitwise-ORing vextracti128 xmm1, ymm_edgevec, 1 vpextrw r8, xmm1, 7 shl r8, 45 vpextrw rcx, xmm1, 3 shl rcx, 30 or r8, rcx vpextrw rdx, xmm_edgevec, 7 shl rdx, 15 vpextrw rcx, xmm_edgevec, 3 or rcx, rdx or r8, rcx ; r8 has the current source vertex ID ; prepare the message the source vertex will send to its neighbors ; from above, r8 currently holds the source vertex ID ; this is a scalar but floating-point quantity vmovq xmm_smsgout, QWORD PTR [r_vprop+8*r8] ; there are currently no scatter instructions capable of performing updates ; it is also possible that there are multiple edges in the present vector going to the same place ; so it would not be correct to perform a vector gather, vector update, and vector write-back ; in the absence of instructions that can aggregate updates and perform them atomically, this needs to be done in scalar form edge_push_iteration_update_1_start: IFNDEF EXPERIMENT_EDGE_PUSH_WITHOUT_SYNC IFDEF EXPERIMENT_EDGE_PUSH_WITH_HTM IFDEF EXPERIMENT_EDGE_PUSH_HTM_SINGLE ; if using HTM and only doing a single transaction, begin that transaction here IFDEF EXPERIMENT_EDGE_PUSH_HTM_ATOMIC_FALLBACK xbegin edge_push_fallback_iteration_update_1_start ELSE xbegin edge_push_iteration_update_1_start ENDIF ENDIF ENDIF ENDIF ; extract the destination vertex identifier and mask bit for the first vertex ; verify that the top bit is set and, if not, skip the vertex entirely vpextrq r8, xmm_elist, 0 vpextrq r9, xmm_emask, 0 bt r9, 63 jnc edge_push_iteration_update_2_start edge_push_iteration_update_1_loop: IFNDEF EXPERIMENT_EDGE_PUSH_WITHOUT_SYNC IFDEF EXPERIMENT_EDGE_PUSH_WITH_HTM IFNDEF EXPERIMENT_EDGE_PUSH_HTM_SINGLE ; begin an update transaction xbegin edge_push_iteration_update_1_loop ENDIF ENDIF ENDIF ; read the destination vertex's current accumulator value vmovq xmm0, QWORD PTR [r_vaccum+8*r8] ; set aside the current value for "cmpxchg" below, which implicitly uses rax vmovq rax, xmm0 ; aggregate with the outgoing message in an application-specific way ; PageRank: sum vaddpd xmm1, xmm0, xmm_smsgout edge_push_iteration_update_1_write: IFDEF EXPERIMENT_EDGE_PUSH_WITHOUT_SYNC ; write back the aggregated accumulator vmovq QWORD PTR [r_vaccum+8*r8], xmm1 ELSE IFDEF EXPERIMENT_EDGE_PUSH_WITH_HTM ; write back the aggregated accumulator, then attempt to commit the transaction vmovq QWORD PTR [r_vaccum+8*r8], xmm1 IFNDEF EXPERIMENT_EDGE_PUSH_HTM_SINGLE xend ENDIF ELSE ; atomically update the aggregated accumulator vmovq rcx, xmm1 lock cmpxchg QWORD PTR [r_vaccum+8*r8], rcx jne edge_push_iteration_update_1_loop ENDIF ENDIF ; for PageRank, add to the total ranks passed this iteration (for handling sink vertices properly) vaddpd xmm_globaccum, xmm_globaccum, xmm_smsgout edge_push_iteration_update_2_start: ; same as above vpextrq r8, xmm_elist, 1 vpextrq r9, xmm_emask, 1 bt r9, 63 jnc edge_push_iteration_update_3_start edge_push_iteration_update_2_loop: IFNDEF EXPERIMENT_EDGE_PUSH_WITHOUT_SYNC IFDEF EXPERIMENT_EDGE_PUSH_WITH_HTM IFNDEF EXPERIMENT_EDGE_PUSH_HTM_SINGLE xbegin edge_push_iteration_update_2_loop ENDIF ENDIF ENDIF vmovq xmm0, QWORD PTR [r_vaccum+8*r8] vmovq rax, xmm0 vaddpd xmm1, xmm0, xmm_smsgout edge_push_iteration_update_2_write: IFDEF EXPERIMENT_EDGE_PUSH_WITHOUT_SYNC vmovq QWORD PTR [r_vaccum+8*r8], xmm1 ELSE IFDEF EXPERIMENT_EDGE_PUSH_WITH_HTM vmovq QWORD PTR [r_vaccum+8*r8], xmm1 IFNDEF EXPERIMENT_EDGE_PUSH_HTM_SINGLE xend ENDIF ELSE vmovq rcx, xmm1 lock cmpxchg QWORD PTR [r_vaccum+8*r8], rcx jne edge_push_iteration_update_2_loop ENDIF ENDIF vaddpd xmm_globaccum, xmm_globaccum, xmm_smsgout edge_push_iteration_update_3_start: ; same as above, except move to the upper 128 bits of the edge list and mask registers vextracti128 xmm_elist, ymm_elist, 1 vextracti128 xmm_emask, ymm_emask, 1 vpextrq r8, xmm_elist, 0 vpextrq r9, xmm_emask, 0 bt r9, 63 jnc edge_push_iteration_update_4_start edge_push_iteration_update_3_loop: IFNDEF EXPERIMENT_EDGE_PUSH_WITHOUT_SYNC IFDEF EXPERIMENT_EDGE_PUSH_WITH_HTM IFNDEF EXPERIMENT_EDGE_PUSH_HTM_SINGLE xbegin edge_push_iteration_update_3_loop ENDIF ENDIF ENDIF vmovq xmm0, QWORD PTR [r_vaccum+8*r8] vmovq rax, xmm0 vaddpd xmm1, xmm0, xmm_smsgout edge_push_iteration_update_3_write: IFDEF EXPERIMENT_EDGE_PUSH_WITHOUT_SYNC vmovq QWORD PTR [r_vaccum+8*r8], xmm1 ELSE IFDEF EXPERIMENT_EDGE_PUSH_WITH_HTM vmovq QWORD PTR [r_vaccum+8*r8], xmm1 IFNDEF EXPERIMENT_EDGE_PUSH_HTM_SINGLE xend ENDIF ELSE vmovq rcx, xmm1 lock cmpxchg QWORD PTR [r_vaccum+8*r8], rcx jne edge_push_iteration_update_3_loop ENDIF ENDIF vaddpd xmm_globaccum, xmm_globaccum, xmm_smsgout edge_push_iteration_update_4_start: ; same as above vpextrq r8, xmm_elist, 1 vpextrq r9, xmm_emask, 1 bt r9 , 63 jnc edge_push_iteration_done edge_push_iteration_update_4_loop: IFNDEF EXPERIMENT_EDGE_PUSH_WITHOUT_SYNC IFDEF EXPERIMENT_EDGE_PUSH_WITH_HTM IFNDEF EXPERIMENT_EDGE_PUSH_HTM_SINGLE xbegin edge_push_iteration_update_4_loop ENDIF ENDIF ENDIF vmovq xmm0, QWORD PTR [r_vaccum+8*r8] vmovq rax, xmm0 vaddpd xmm1, xmm0, xmm_smsgout edge_push_iteration_update_4_write: IFDEF EXPERIMENT_EDGE_PUSH_WITHOUT_SYNC vmovq QWORD PTR [r_vaccum+8*r8], xmm1 ELSE IFDEF EXPERIMENT_EDGE_PUSH_WITH_HTM vmovq QWORD PTR [r_vaccum+8*r8], xmm1 IFNDEF EXPERIMENT_EDGE_PUSH_HTM_SINGLE xend ENDIF ELSE vmovq rcx, xmm1 lock cmpxchg QWORD PTR [r_vaccum+8*r8], rcx jne edge_push_iteration_update_4_loop ENDIF ENDIF vaddpd xmm_globaccum, xmm_globaccum, xmm_smsgout ; iteration complete edge_push_iteration_done: IFNDEF EXPERIMENT_EDGE_PUSH_WITHOUT_SYNC IFDEF EXPERIMENT_EDGE_PUSH_WITH_HTM IFDEF EXPERIMENT_EDGE_PUSH_HTM_SINGLE ; if using HTM and only doing a single transaction, commit it here xend ENDIF IFDEF EXPERIMENT_EDGE_PUSH_HTM_ATOMIC_FALLBACK ; if using HTM and with atomic fallback, jump over that code jmp edge_push_fallback_iteration_done ; this is just the atomic code from above, condensed for space, and placed here to enable an atomic fallback path edge_push_fallback_iteration_update_1_start: vpextrq r8, xmm_elist, 0 vpextrq r9, xmm_emask, 0 bt r9, 63 jnc edge_push_fallback_iteration_update_2_start edge_push_fallback_iteration_update_1_loop: vmovq xmm0, QWORD PTR [r_vaccum+8*r8] vmovq rax, xmm0 vaddpd xmm1, xmm0, xmm_smsgout vmovq rcx, xmm1 lock cmpxchg QWORD PTR [r_vaccum+8*r8], rcx jne edge_push_fallback_iteration_update_1_loop vaddpd xmm_globaccum, xmm_globaccum, xmm_smsgout edge_push_fallback_iteration_update_2_start: vpextrq r8, xmm_elist, 1 vpextrq r9, xmm_emask, 1 bt r9, 63 jnc edge_push_fallback_iteration_update_3_start edge_push_fallback_iteration_update_2_loop: vmovq xmm0, QWORD PTR [r_vaccum+8*r8] vmovq rax, xmm0 vaddpd xmm1, xmm0, xmm_smsgout vmovq rcx, xmm1 lock cmpxchg QWORD PTR [r_vaccum+8*r8], rcx jne edge_push_fallback_iteration_update_2_loop vaddpd xmm_globaccum, xmm_globaccum, xmm_smsgout edge_push_fallback_iteration_update_3_start: vextracti128 xmm_elist, ymm_elist, 1 vextracti128 xmm_emask, ymm_emask, 1 vpextrq r8, xmm_elist, 0 vpextrq r9, xmm_emask, 0 bt r9, 63 jnc edge_push_fallback_iteration_update_4_start edge_push_fallback_iteration_update_3_loop: vmovq xmm0, QWORD PTR [r_vaccum+8*r8] vmovq rax, xmm0 vaddpd xmm1, xmm0, xmm_smsgout vmovq rcx, xmm1 lock cmpxchg QWORD PTR [r_vaccum+8*r8], rcx jne edge_push_fallback_iteration_update_3_loop vaddpd xmm_globaccum, xmm_globaccum, xmm_smsgout edge_push_fallback_iteration_update_4_start: vpextrq r8, xmm_elist, 1 vpextrq r9, xmm_emask, 1 bt r9 , 63 jnc edge_push_fallback_iteration_done edge_push_fallback_iteration_update_4_loop: vmovq xmm0, QWORD PTR [r_vaccum+8*r8] vmovq rax, xmm0 vaddpd xmm1, xmm0, xmm_smsgout vmovq rcx, xmm1 lock cmpxchg QWORD PTR [r_vaccum+8*r8], rcx jne edge_push_fallback_iteration_update_4_loop vaddpd xmm_globaccum, xmm_globaccum, xmm_smsgout edge_push_fallback_iteration_done: ENDIF ENDIF ENDIF ENDM ; --------- PHASE CONTROL FUNCTION -------------------------------------------- ; See "phases.h" for documentation. perform_edge_push_phase_pr PROC PUBLIC ; save non-volatile registers used throughout this phase push rbx push rsi push rdi push r12 push r13 push r14 push r15 ; set the base address for the current edge list block mov r_edgelist, rcx ; set aside the number of vectors (parameter, rdx) vextracti128 xmm0, ymm_addrstash, 1 vpinsrq xmm0, xmm0, rdx, 1 vinserti128 ymm_addrstash, ymm_addrstash, xmm0, 1 ; initialize edge_push_op_initialize ; get this thread's first work assignment scheduler_get_first_assigned_unit edge_push_phase_work_start: ; check if there is a work assignment for this thread and, if not, the Edge-Push phase is done cmp rax, 0 jl done_edge_push_phase ; retrieve the number of vectors into rdx vextracti128 xmm0, ymm_addrstash, 1 vpextrq rdx, xmm0, 1 ; get the work assignment for this thread mov rcx, rax scheduler_assign_work_for_unit cmp rsi, rdi jge done_edge_push_loop ; main Edge-Push phase loop edge_push_phase_loop: cmp rsi, rdi jae done_edge_push_loop mov rcx, rsi edge_push_op_iteration_at_index inc rsi jmp edge_push_phase_loop done_edge_push_loop: ; get this thread's next work assignment scheduler_get_next_assigned_unit jmp edge_push_phase_work_start done_edge_push_phase: ; restore non-volatile registers and return pop r15 pop r14 pop r13 pop r12 pop rdi pop rsi pop rbx ret perform_edge_push_phase_pr ENDP _TEXT ENDS END
44.861111
133
0.496801
713d77c3bbd1b3eac2e141d6fd31717266dce6fd
239
asm
Assembly
programs/oeis/033/A033348.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/033/A033348.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/033/A033348.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A033348: [ 28/n ]. ; 28,14,9,7,5,4,4,3,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 add $0,1 mov $1,28 div $1,$0
34.142857
187
0.502092
a8479d1f7c9583419321741db26d2c0e76a947cf
557
asm
Assembly
oeis/017/A017331.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/017/A017331.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/017/A017331.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A017331: a(n) = (10*n + 5)^3. ; 125,3375,15625,42875,91125,166375,274625,421875,614125,857375,1157625,1520875,1953125,2460375,3048625,3723875,4492125,5359375,6331625,7414875,8615125,9938375,11390625,12977875,14706125,16581375,18609625,20796875,23149125,25672375,28372625,31255875,34328125,37595375,41063625,44738875,48627125,52734375,57066625,61629875,66430125,71473375,76765625,82312875,88121125,94196375,100544625,107171875,114084125,121287375,128787625,136590875,144703125,153130375,161878625,170953875,180362125,190109375 mul $0,10 add $0,5 pow $0,3
79.571429
495
0.836625
50f7940841704fa45441c96a5c7544ea73ba2e44
1,282
asm
Assembly
programs/oeis/000/A000984.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/000/A000984.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/000/A000984.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A000984: Central binomial coefficients: binomial(2*n,n) = (2*n)!/(n!)^2. ; 1,2,6,20,70,252,924,3432,12870,48620,184756,705432,2704156,10400600,40116600,155117520,601080390,2333606220,9075135300,35345263800,137846528820,538257874440,2104098963720,8233430727600,32247603683100,126410606437752,495918532948104,1946939425648112,7648690600760440,30067266499541040,118264581564861424,465428353255261088,1832624140942590534,7219428434016265740,28453041475240576740,112186277816662845432,442512540276836779204,1746130564335626209832,6892620648693261354600,27217014869199032015600,107507208733336176461620,424784580848791721628840,1678910486211891090247320,6637553085023755473070800,26248505381684851188961800,103827421287553411369671120,410795449442059149332177040,1625701140345170250548615520,6435067013866298908421603100,25477612258980856902730428600,100891344545564193334812497256,399608854866744452032002440112,1583065848125949175357548128136,6272525058612251449529907677520,24857784491537440929618523018320,98527218530093856775578873054432,390590044887157789360330532465784,1548655265692941410446222812934512,6141219157058215937976400809912720,24356699707654619143838606602026720,96614908840363322603893139521372656,383291933432261050330199012527412832 mov $1,$0 mul $0,2 bin $0,$1
183.142857
1,176
0.918097
99d73617800fc084ab9f397ed81da4f690bbca2a
9,526
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48.log_21829_2744.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48.log_21829_2744.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48.log_21829_2744.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r15 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x168c6, %rsi lea addresses_WT_ht+0xf04e, %rdi nop nop nop cmp %r15, %r15 mov $51, %rcx rep movsq cmp %r11, %r11 lea addresses_D_ht+0x1900e, %r13 xor %rbp, %rbp movb (%r13), %r15b nop nop sub $30030, %r15 lea addresses_UC_ht+0xe44e, %r11 nop nop nop nop xor %rbp, %rbp mov $0x6162636465666768, %r13 movq %r13, (%r11) nop nop nop nop dec %rsi lea addresses_WT_ht+0xe34e, %rsi inc %rbp mov (%rsi), %edi nop nop nop and %rcx, %rcx lea addresses_A_ht+0xd50e, %rcx nop nop inc %r11 movb $0x61, (%rcx) xor $41424, %rsi lea addresses_D_ht+0x1004e, %rbp nop nop add %rcx, %rcx movb $0x61, (%rbp) nop nop nop sub %r13, %r13 lea addresses_WC_ht+0x1ba26, %r15 xor %rbp, %rbp movw $0x6162, (%r15) nop nop inc %r11 lea addresses_normal_ht+0xf92e, %rsi lea addresses_WC_ht+0x338e, %rdi clflush (%rsi) nop cmp %r9, %r9 mov $27, %rcx rep movsq nop nop nop nop nop and %rbp, %rbp lea addresses_D_ht+0x8dfe, %rbp nop nop nop nop and %rdi, %rdi mov $0x6162636465666768, %r9 movq %r9, (%rbp) nop nop nop nop nop add %rcx, %rcx lea addresses_WT_ht+0x3cce, %rsi lea addresses_A_ht+0x1604e, %rdi sub $21217, %r13 mov $4, %rcx rep movsw nop dec %rsi lea addresses_D_ht+0x14c4e, %rbp nop nop nop nop sub $30312, %rsi movl $0x61626364, (%rbp) nop nop and $14757, %rbp lea addresses_A_ht+0xa4e, %rdi nop nop nop nop nop xor %r9, %r9 movups (%rdi), %xmm7 vpextrq $1, %xmm7, %r15 nop nop xor %rsi, %rsi lea addresses_A_ht+0xe34e, %rcx nop nop nop nop nop cmp %r15, %r15 mov $0x6162636465666768, %rbp movq %rbp, %xmm0 and $0xffffffffffffffc0, %rcx vmovntdq %ymm0, (%rcx) nop xor $37459, %rcx lea addresses_D_ht+0x244e, %r11 nop cmp %r9, %r9 mov (%r11), %rcx nop nop nop cmp $311, %rbp lea addresses_WC_ht+0x14fa8, %rsi lea addresses_WC_ht+0x544e, %rdi nop nop nop nop and $48575, %r11 mov $85, %rcx rep movsq and %r9, %r9 pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r15 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r14 push %rax push %rbp push %rcx push %rdx // Store lea addresses_US+0x15b2f, %rdx nop add %r12, %r12 mov $0x5152535455565758, %rcx movq %rcx, %xmm6 vmovups %ymm6, (%rdx) nop nop nop sub %r14, %r14 // Load lea addresses_US+0x1297a, %r13 nop nop cmp $19827, %rax mov (%r13), %r14 inc %rax // Store lea addresses_A+0xa50e, %rax nop nop nop add $13321, %r13 movb $0x51, (%rax) cmp $61056, %rax // Store lea addresses_WT+0x284e, %r12 xor %rbp, %rbp movb $0x51, (%r12) nop add $6989, %r13 // Load lea addresses_WC+0xf48e, %rdx nop sub %rcx, %rcx mov (%rdx), %r13w nop nop dec %rbp // Load lea addresses_WC+0xb00e, %rcx nop and $45410, %rax mov (%rcx), %r12 nop nop nop inc %rbp // Store mov $0x3bb5bf00000004ae, %rbp clflush (%rbp) nop nop nop nop nop dec %r13 movw $0x5152, (%rbp) nop nop nop nop dec %r14 // Store mov $0x9153b0000000c4e, %r12 nop nop nop nop xor $36280, %rax movl $0x51525354, (%r12) nop nop nop nop cmp $20928, %r13 // Faulty Load lea addresses_normal+0x1204e, %r13 nop nop nop add %rax, %rax mov (%r13), %r14d lea oracles, %rdx and $0xff, %r14 shlq $12, %r14 mov (%rdx,%r14,1), %r14 pop %rdx pop %rcx pop %rbp pop %rax pop %r14 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 6, 'size': 1, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 11, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 6, 'size': 2, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 6, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 3, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': True, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 3, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 9, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 5, 'size': 1, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 9, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': True}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 4, 'size': 8, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 8, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 9, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': True, 'NT': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': True, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
30.532051
2,999
0.649066
82a5f05e6c886dbeb2976fe4235404d18262958a
738
asm
Assembly
oeis/164/A164265.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/164/A164265.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/164/A164265.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A164265: Partial sums of A162766. ; Submitted by Jon Maiga ; 4,7,19,28,64,91,199,280,604,847,1819,2548,5464,7651,16399,22960,49204,68887,147619,206668,442864,620011,1328599,1860040,3985804,5580127,11957419,16740388,35872264,50221171,107616799,150663520,322850404,451990567,968551219,1355971708,2905653664,4067915131,8716960999,12203745400,26150883004,36611236207,78452649019,109833708628,235357947064,329501125891,706073841199,988503377680,2118221523604,2965510133047,6354664570819,8896530399148,19063993712464,26689591197451,57191981137399,80068773592360 add $0,1 mov $2,1 mov $3,1 lpb $0 sub $0,1 sub $2,1 add $2,$1 mov $1,1 add $1,$3 sub $1,$2 add $3,1 add $3,$2 add $2,$1 lpe mov $0,$2 sub $0,2 mul $0,3 add $0,4
32.086957
496
0.775068
2df9e25c3cd04cce2a2d7a5be6da8b6e9aaba585
489
asm
Assembly
oeis/176/A176221.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/176/A176221.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/176/A176221.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A176221: Decimal expansion of sqrt(110). ; Submitted by Christian Krause ; 1,0,4,8,8,0,8,8,4,8,1,7,0,1,5,1,5,4,6,9,9,1,4,5,3,5,1,3,6,7,9,9,3,7,5,9,8,4,7,5,2,7,1,8,5,7,6,8,1,5,0,3,9,8,4,8,7,5,7,5,5,7,6,3,5,8,0,0,0,5,9,2,5,5,0,1,1,0,0,6,9,1,4,1,9,3,8,5,2,8,8,9,3,3,1,9,4,4,1,7 mov $3,$0 mul $3,4 lpb $3 add $1,$2 add $5,$2 add $1,$5 mul $1,10 add $2,$1 mov $1,$0 sub $3,2 lpe mov $1,1 add $1,$5 mov $4,10 pow $4,$0 div $2,$4 cmp $6,0 add $2,$6 div $1,$2 mov $0,$1 mod $0,10
18.807692
201
0.537832
8309320d683a627657e8c398dcae22898ab9f7bf
1,223
asm
Assembly
programs/oeis/095/A095671.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/095/A095671.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/095/A095671.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A095671: Ninth column (m=8) of (1,4)-Pascal triangle A095666. ; 4,33,153,525,1485,3663,8151,16731,32175,58630,102102,171054,277134,436050,668610,1001946,1470942,2119887,3004375,4193475,5772195,7844265,10535265,13996125,18407025,23981724,30972348,39674668,50433900,63651060,79789908,99384516,123047496,151478925,185476005,225943497,273904969,330514899,397071675,475031535,566023491,671865282,794580402,936416250,1099863450,1287676390,1502895030,1748868030,2029277250,2348163675,2709954819,3119493663,3582069183,4103448525,4689910885,5348283153,6085977381,6911030136,7832143800,8858729880,10000954392,11269785384,12677042664,14235449800,15958688460,17861455161,19959520497,22269790917,24810373125,27600641175,30661306335,34014489795,37683798295,41694402750,46073119950,50848497414,56050901478,61712608698,67867900650,74553162210,81806983398,89670264871,98186327151,107401023675,117362857755,128123103537,139735931049,152258535429,165751270425,180277786260,195905171956,212704102212,230748988932,250118137500,270893907900,293162880780,317016028560,342548891685,369861760125,399059860225 lpb $0 mov $2,$0 sub $0,1 seq $2,95670 ; Eighth column (m=7) of (1,4)-Pascal triangle A095666. add $1,$2 lpe add $1,4 mov $0,$1
101.916667
1,021
0.854456
e3f97f0f59f9339de999c41e7aee1b36cf9a3780
4,381
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_9845_89.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_9845_89.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_9845_89.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r15 push %rcx push %rdi push %rsi lea addresses_WT_ht+0x1d201, %rsi lea addresses_UC_ht+0x13401, %rdi nop sub $36619, %r14 mov $116, %rcx rep movsl xor $5959, %r12 lea addresses_UC_ht+0x9191, %rsi lea addresses_normal_ht+0xcdc1, %rdi nop add $32189, %r15 mov $82, %rcx rep movsw nop nop nop nop nop add %r15, %r15 pop %rsi pop %rdi pop %rcx pop %r15 pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %rax push %rbx push %rsi // Faulty Load lea addresses_UC+0x1ec01, %rbx nop nop nop nop nop cmp %r15, %r15 mov (%rbx), %r10 lea oracles, %rsi and $0xff, %r10 shlq $12, %r10 mov (%rsi,%r10,1), %r10 pop %rsi pop %rbx pop %rax pop %r15 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}} {'37': 9845} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
57.644737
2,999
0.664917
f7b729d95d92638099a308956fca2ee16e8f39f6
269
asm
Assembly
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sccz80/sp1_ChangeSprType.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sccz80/sp1_ChangeSprType.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sccz80/sp1_ChangeSprType.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void sp1_ChangeSprType(struct sp1_cs *c, void *drawf) SECTION code_clib SECTION code_temp_sp1 PUBLIC sp1_ChangeSprType EXTERN asm_sp1_ChangeSprType sp1_ChangeSprType: pop bc pop de pop hl push hl push de push bc jp asm_sp1_ChangeSprType
13.45
55
0.750929
3870697b3c73cb8e8226b50a15f2d2c62e0f1628
6,930
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_1954_1223.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_1954_1223.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_1954_1223.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r14 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0x7d23, %rax nop nop nop nop and %rcx, %rcx mov $0x6162636465666768, %r10 movq %r10, %xmm3 movups %xmm3, (%rax) nop and $21150, %r11 lea addresses_WT_ht+0x161eb, %r14 dec %rbp vmovups (%r14), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $0, %xmm5, %r11 nop nop nop nop nop sub $40338, %rax lea addresses_UC_ht+0x680b, %rsi lea addresses_WT_ht+0x1ec3b, %rdi clflush (%rsi) nop nop nop nop nop and %r10, %r10 mov $120, %rcx rep movsq nop sub %rsi, %rsi lea addresses_WT_ht+0x18fd3, %rsi lea addresses_WC_ht+0x38c8, %rdi nop nop nop nop cmp $38858, %r11 mov $108, %rcx rep movsb nop nop and $48401, %rsi lea addresses_A_ht+0x1eb, %rsi lea addresses_WC_ht+0x53eb, %rdi nop nop dec %r10 mov $9, %rcx rep movsq nop and $61360, %rdi lea addresses_normal_ht+0xcaeb, %r11 clflush (%r11) nop nop nop add %rax, %rax mov (%r11), %esi nop nop cmp $55030, %rsi lea addresses_normal_ht+0x17cd8, %r11 nop sub $32666, %r10 movups (%r11), %xmm7 vpextrq $1, %xmm7, %rcx nop nop nop nop add $47155, %r11 lea addresses_A_ht+0x55eb, %rdi clflush (%rdi) nop add %rax, %rax mov $0x6162636465666768, %r11 movq %r11, %xmm4 vmovups %ymm4, (%rdi) nop nop xor $51007, %rsi pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r14 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r15 push %rbp push %rbx push %rcx push %rdi push %rsi // Store mov $0x4af, %rsi nop nop nop nop nop cmp %r15, %r15 mov $0x5152535455565758, %r11 movq %r11, (%rsi) nop nop nop inc %rsi // Store mov $0x3f03fe00000002eb, %rbp nop nop nop nop nop add %rcx, %rcx mov $0x5152535455565758, %rbx movq %rbx, %xmm2 movups %xmm2, (%rbp) nop nop nop nop add $7258, %rdi // Store lea addresses_D+0x5783, %rdi nop nop nop nop and $28080, %r15 mov $0x5152535455565758, %rbp movq %rbp, (%rdi) nop nop nop cmp %rcx, %rcx // Faulty Load lea addresses_PSE+0x19eb, %r15 xor $51515, %rbx mov (%r15), %si lea oracles, %rbp and $0xff, %rsi shlq $12, %rsi mov (%rbp,%rsi,1), %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r15 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'33': 1954} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
34.477612
2,999
0.659019
2bf06e46b123837e99a2ae59af0138bb35484df0
536
asm
Assembly
programs/oeis/213/A213393.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/213/A213393.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/213/A213393.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A213393: Number of (w,x,y) with all terms in {0,...,n} and 2*max(w,x,y) > 3*min(w,x,y). ; 0,6,24,54,108,192,300,450,648,882,1176,1536,1944,2430,3000,3630,4356,5184,6084,7098,8232,9450,10800,12288,13872,15606,17496,19494,21660,24000,26460,29106,31944,34914,38088,41472,45000,48750,52728 mov $2,$0 mov $7,$0 lpb $2 mov $0,$7 sub $2,1 sub $0,$2 mov $4,$0 mov $5,0 mov $6,$0 lpb $6 mov $0,$4 sub $6,1 sub $0,$6 mov $3,$0 dif $0,3 add $3,$0 mul $3,3 add $5,$3 lpe add $1,$5 lpe mov $0,$1
20.615385
197
0.58209
7ee4707eb795283c6e18daf211b2d5f4f4b9f333
1,841
asm
Assembly
programs/oeis/005/A005248.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/005/A005248.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/005/A005248.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A005248: Bisection of Lucas numbers: a(n) = L(2*n) = A000032(2*n). ; 2,3,7,18,47,123,322,843,2207,5778,15127,39603,103682,271443,710647,1860498,4870847,12752043,33385282,87403803,228826127,599074578,1568397607,4106118243,10749957122,28143753123,73681302247,192900153618,505019158607,1322157322203,3461452808002,9062201101803,23725150497407,62113250390418,162614600673847,425730551631123,1114577054219522,2918000611027443,7639424778862807,20000273725560978,52361396397820127,137083915467899403,358890350005878082,939587134549734843,2459871053643326447,6440026026380244498,16860207025497407047,44140595050111976643,115561578124838522882,302544139324403592003,792070839848372253127,2073668380220713167378,5428934300813767249007,14213134522220588579643,37210469265847998489922,97418273275323406890123,255044350560122222180447,667714778405043259651218,1748099984655007556773207,4576585175559979410668403,11981655542024930675232002,31368381450514812615027603,82123488809519507169850807,215002084978043708894524818,562882766124611619513723647,1473646213395791149646646123,3858055874062761829426214722,10100521408792494338631998043,26443508352314721186469779407,69230003648151669220777340178,181246502592140286475862241127,474509504128269190206809383203,1242282009792667284144565908482,3252336525249732662226888342243,8514727565956530702536099118247,22291846172619859445381409012498,58360810951903047633608127919247,152790586683089283455442974745243,400010949097364802732720796316482,1047242260609005124742719414204203,2741715832729650571495437446296127,7177905237579946589743592924684178,18791999880010189197735341327756407,49198094402450621003462431058585043,128802283327341673812651951847998722,337208755579574400434493424485411123,882823983411381527490828321608234647 mov $1,2 mov $2,1 lpb $0 sub $0,1 add $1,$2 add $2,$1 lpe mov $0,$1
153.416667
1,696
0.917436
130e53b41bc123f727ca537919f44077df9db511
146
asm
Assembly
Tejas-Simulator/PIN/pin-2.14/source/tools/ToolUnitTests/analysis_flag_overwrite_tool3_win.asm
markoshorro/tejas_knl
5e772aef46362d8bec8ad6d5427b9bcff9be5cfe
[ "Apache-2.0" ]
17
2021-07-10T13:22:26.000Z
2022-02-09T20:11:39.000Z
pin_kit/source/tools/ToolUnitTests/analysis_flag_overwrite_tool3_win.asm
sawansib/SNIPER
45ec1eeb09b81a7250bc1a1aaa452f16b2b7f497
[ "MIT" ]
4
2021-08-18T14:07:24.000Z
2022-01-24T16:38:06.000Z
pin_kit/source/tools/ToolUnitTests/analysis_flag_overwrite_tool3_win.asm
sawansib/SNIPER
45ec1eeb09b81a7250bc1a1aaa452f16b2b7f497
[ "MIT" ]
11
2016-07-01T02:21:06.000Z
2020-11-23T08:29:22.000Z
PUBLIC WriteFlags_asm .686 .model flat, c .code WriteFlags_asm PROC mov eax, 0 add eax, eax ret WriteFlags_asm ENDP end
11.230769
22
0.650685
e5888ab217a65db14f8e60aecffc1b8113b98768
7,959
asm
Assembly
tp_01_13/include/PagingInit.asm
mjFer/TDIII-UTN-FRBA-TPS-2014
1b57b52fa8233c78297b0e5471d1c82e4c85451b
[ "MIT" ]
2
2020-04-01T14:45:17.000Z
2020-04-01T14:45:23.000Z
tp_01_13/include/PagingInit.asm
mjFer/TDIII-UTN-FRBA-TPS-2014
1b57b52fa8233c78297b0e5471d1c82e4c85451b
[ "MIT" ]
null
null
null
tp_01_13/include/PagingInit.asm
mjFer/TDIII-UTN-FRBA-TPS-2014
1b57b52fa8233c78297b0e5471d1c82e4c85451b
[ "MIT" ]
null
null
null
%include "include/PagingInit.mac" [BITS 16] ;******************************************************************************************************** ;Generacion de paginas para el mappeo de los 4 primeros megas de memoria en identity mapping ; ; ;******************************************************************************************************** RealModePageInit: ;INICIO Creacion de paginas ;notar que estoy en modo real por lo que las direcciones salen de la suma de DUP:_PML4_BASE xor eax,eax mov eax, DUP mov ds, eax mov dword [DS:_PML4_BASE],PDPT_BASE + 0x17;0x11 mov dword [DS:_PML4_BASE + 4], 0 mov dword [DS:_PDPT_BASE],PDT_BASE + 0x17;0x11 mov dword [DS:_PDPT_BASE + 4], 0 mov dword [DS:_PDT_BASE],PT_BASE + 0x17;0x11 mov dword [DS:_PDT_BASE + 4], 0 mov dword [DS:_PDT_BASE + 8],PT_BASE + 0x1000 + 0x17;0x11 mov dword [DS:_PDT_BASE + 12], 0 ;Aca arrancamos a crear las paginas con un loop mov ecx, 1024 ;creo 1024 entradas, (2 pt) 512 por pt mov eax, 01000h + 0x07;0x01 ;0x07 para W mov edi, _PT_BASE + 8 pageloop: mov dword [DS:edi],eax mov dword [DS:edi + 4],0 add edi, 8 add eax, 1000h loop pageloop mov dword [DS:_PT_BASE + 0x40 ],0x8000 + 1 mov dword [DS:_PT_BASE + 4], 0 mov dword [DS:_PT_BASE + 0x48 ],0x9000 + 1 mov dword [DS:_PT_BASE + 4], 0 ;pagina de usuario para las tareas en 0xA000 ;mov dword [DS:_PT_BASE + 0x50 ],USER_PAGE + 7;0x07 ;x50 es la 0xa000 ;mov dword [DS:_PT_BASE + 4], 0 ;pagina de usuario para las tareas en 0xA000 ;mov dword [DS:_PT_BASE + 0x58 ],0xb000 + 5;0x07 ;x50 es la 0xa000 ;mov dword [DS:_PT_BASE + 4], 0 ;en la 0x0000 pagino la b8000 de video mov dword [DS:_PT_BASE],0b8000h + 0x01 mov dword [DS:_PT_BASE + 4], 0 ;FIN CREACION PAGINAS xor eax,eax mov ds, eax mov eax, DUP shl eax,4 add eax,_PML4_BASE mov cr3,eax xor eax,eax ret [bits 64] ;******************************************************************************************************** ;Inicializacion de tablas para la Tarea A ;******************************************************************************************************** Task_A_PagingInit: xor eax,eax mov dword [PML4_BASE_TA],PDPT_BASE_TA + 0x17 mov dword [PML4_BASE_TA + 4], 0 mov dword [PDPT_BASE_TA],PDT_BASE_TA + 0x17 mov dword [PDPT_BASE_TA + 4], 0 mov dword [PDT_BASE_TA],PT_BASE_TA + 0x17 mov dword [PDT_BASE_TA + 4], 0 mov dword [PDT_BASE_TA + 8],PT_BASE_TA + 0x1000 + 0x17 mov dword [PDT_BASE_TA + 12], 0 ;*********************Paginas visibles para la task en prioridad kernel*********************/ ;en la 0x0000 pagino la b8000 de video mov dword [PT_BASE_TA],0b8000h + 0x01 mov dword [PT_BASE_TA + 4], 0 mov dword [PT_BASE_TA + 0x40 ],0x8000 + 1 mov dword [PT_BASE_TA + 0x44], 0 mov dword [PT_BASE_TA + 0x48 ],0x9000 + 1 mov dword [PT_BASE_TA + 0x4C], 0 mov dword [PT_BASE_TA + 0x50 ],0xA000 + 1 mov dword [PT_BASE_TA + 0x54], 0 mov dword [PT_BASE_TA + 0x58 ],0xB000 + 1 mov dword [PT_BASE_TA + 0x5C], 0 ;**********************Paginas de usuario de la task***************************************/ ;pagina de usuario para la tarea mov dword [PT_BASE_TA + 0x60 ],0xC000 + 0x17;0x07 ;a la zona de memoria de la tarea le doy RPL user mov dword [PT_BASE_TA + 0x64], 0 ret ;******************************************************************************************************** ;Inicializacion de tablas para la Tarea B ;******************************************************************************************************** Task_B_PagingInit: xor eax,eax mov dword [PML4_BASE_TB],PDPT_BASE_TB + 0x17 mov dword [PML4_BASE_TB + 4], 0 mov dword [PDPT_BASE_TB],PDT_BASE_TB + 0x17 mov dword [PDPT_BASE_TB + 4], 0 mov dword [PDT_BASE_TB],PT_BASE_TB + 0x17 mov dword [PDT_BASE_TB + 4], 0 mov dword [PDT_BASE_TB + 8],PT_BASE_TB + 0x1000 + 0x17 mov dword [PDT_BASE_TB + 12], 0 ;*********************Paginas visibles para la task en prioridad kernel*********************/ ;en la 0x0000 pagino la b8000 de video mov dword [PT_BASE_TB],0b8000h + 0x01 mov dword [PT_BASE_TB + 4], 0 mov dword [PT_BASE_TB + 0x40 ],0x8000 + 1 mov dword [PT_BASE_TB + 0x44], 0 mov dword [PT_BASE_TB + 0x48 ],0x9000 + 1 mov dword [PT_BASE_TB + 0x4C], 0 mov dword [PT_BASE_TB + 0x50 ],0xA000 + 1 mov dword [PT_BASE_TB + 0x54], 0 mov dword [PT_BASE_TB + 0x58 ],0xB000 + 1 mov dword [PT_BASE_TB + 0x5C], 0 ;**********************Paginas de usuario de la task***************************************/ ;pagina de usuario para la tarea mov dword [PT_BASE_TB + 0x68 ],0xD000 + 0x17;0x07 ;a la zona de memoria de la tarea le doy RPL user mov dword [PT_BASE_TB + 0x6C], 0 ret ;******************************************************************************************************** ;Inicializacion de tablas para la Tarea C ;******************************************************************************************************** Task_C_PagingInit: xor eax,eax mov dword [PML4_BASE_TC],PDPT_BASE_TC + 0x17 mov dword [PML4_BASE_TC + 4], 0 mov dword [PDPT_BASE_TC],PDT_BASE_TC + 0x17 mov dword [PDPT_BASE_TC + 4], 0 mov dword [PDT_BASE_TC],PT_BASE_TC + 0x17 mov dword [PDT_BASE_TC + 4], 0 mov dword [PDT_BASE_TC + 8],PT_BASE_TC + 0x1000 + 0x17 mov dword [PDT_BASE_TC + 12], 0 ;*********************Paginas visibles para la task en prioridad kernel*********************/ ;en la 0x0000 pagino la b8000 de video mov dword [PT_BASE_TC],0b8000h + 0x01 mov dword [PT_BASE_TC + 4], 0 mov dword [PT_BASE_TC + 0x40 ],0x8000 + 1 mov dword [PT_BASE_TC + 0x44], 0 mov dword [PT_BASE_TC + 0x48 ],0x9000 + 1 mov dword [PT_BASE_TC + 0x4C], 0 mov dword [PT_BASE_TC + 0x50 ],0xA000 + 1 mov dword [PT_BASE_TC + 0x54], 0 mov dword [PT_BASE_TC + 0x58 ],0xB000 + 1 mov dword [PT_BASE_TC + 0x5C], 0 ;**********************Paginas de usuario de la task***************************************/ ;pagina de usuario para la tarea mov dword [PT_BASE_TC + 0x70 ],0xE000 + 0x17;0x07 ;a la zona de memoria de la tarea le doy RPL user mov dword [PT_BASE_TC + 0x74], 0 ret ;******************************************************************************************************** ;Inicializacion de tablas para la Tarea C ;******************************************************************************************************** Task_D_PagingInit: xor eax,eax mov dword [PML4_BASE_TD],PDPT_BASE_TD + 0x17 mov dword [PML4_BASE_TD + 4], 0 mov dword [PDPT_BASE_TC],PDT_BASE_TD + 0x17 mov dword [PDPT_BASE_TD + 4], 0 mov dword [PDT_BASE_TD],PT_BASE_TC + 0x17 mov dword [PDT_BASE_TD + 4], 0 mov dword [PDT_BASE_TD + 8],PT_BASE_TD + 0x1000 + 0x17 mov dword [PDT_BASE_TD + 12], 0 ;*********************Paginas visibles para la task en prioridad kernel*********************/ ;en la 0x0000 pagino la b8000 de video mov dword [PT_BASE_TD],0b8000h + 0x01 mov dword [PT_BASE_TD + 4], 0 mov dword [PT_BASE_TD + 0x40 ],0x8000 + 1 mov dword [PT_BASE_TD + 0x44], 0 mov dword [PT_BASE_TD + 0x48 ],0x9000 + 1 mov dword [PT_BASE_TD + 0x4C], 0 mov dword [PT_BASE_TD + 0x50 ],0xA000 + 1 mov dword [PT_BASE_TD + 0x54], 0 mov dword [PT_BASE_TD + 0x58 ],0xB000 + 1 mov dword [PT_BASE_TD + 0x5C], 0 ;**********************Paginas de usuario de la task***************************************/ ;pagina de usuario para la tarea mov dword [PT_BASE_TD + 0x78 ],0xF000 + 0x17;0x07 ;a la zona de memoria de la tarea le doy RPL user mov dword [PT_BASE_TD + 0x7C], 0 ret
31.583333
105
0.53072
78e989899ae468098a8e29ea34c1ba9a4e0cacdd
8,265
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_4k_sm_/i7-8650U_0xd2_notsx.log_496_1494.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_4k_sm_/i7-8650U_0xd2_notsx.log_496_1494.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_4k_sm_/i7-8650U_0xd2_notsx.log_496_1494.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r8 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x10ba5, %rsi lea addresses_D_ht+0x1232d, %rdi clflush (%rsi) cmp $48755, %rbp mov $70, %rcx rep movsl nop cmp %r8, %r8 lea addresses_D_ht+0x5135, %r13 nop inc %rcx movw $0x6162, (%r13) nop and $56066, %rdi lea addresses_WT_ht+0x5bcd, %rsi lea addresses_normal_ht+0x1ded, %rdi nop nop nop dec %r10 mov $75, %rcx rep movsb nop nop nop nop nop add %rcx, %rcx lea addresses_A_ht+0x19339, %rsi clflush (%rsi) nop nop nop nop xor $56490, %rbp mov $0x6162636465666768, %rcx movq %rcx, %xmm0 vmovups %ymm0, (%rsi) nop nop nop cmp %r10, %r10 lea addresses_normal_ht+0x11252, %rsi lea addresses_WC_ht+0x160ad, %rdi nop nop nop sub %rbx, %rbx mov $123, %rcx rep movsb nop and $59490, %rcx lea addresses_D_ht+0xb2ad, %r8 nop and $30583, %r10 movb (%r8), %cl nop nop nop and $37251, %rcx lea addresses_A_ht+0x1012d, %rsi lea addresses_WC_ht+0x12dd2, %rdi nop nop nop sub $42114, %rbx mov $8, %rcx rep movsb nop inc %r8 lea addresses_A_ht+0xe7ad, %r13 xor $7255, %rdi movb (%r13), %r10b nop nop cmp %r13, %r13 lea addresses_A_ht+0x802d, %rsi lea addresses_normal_ht+0x1aa4d, %rdi nop nop nop nop nop cmp $29608, %r8 mov $127, %rcx rep movsw nop nop sub %rbp, %rbp lea addresses_UC_ht+0x18bad, %rcx nop nop nop cmp %rbx, %rbx movl $0x61626364, (%rcx) xor %rsi, %rsi lea addresses_A_ht+0xeb2d, %rdi nop nop nop cmp %rsi, %rsi movups (%rdi), %xmm2 vpextrq $0, %xmm2, %rbp nop nop nop nop cmp %rbx, %rbx pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %rax push %rbx push %rcx push %rdi push %rsi // Store lea addresses_normal+0x1eb2d, %rdi nop nop nop nop nop and $59472, %r12 movl $0x51525354, (%rdi) nop add %r13, %r13 // Load mov $0xb2d, %rax nop nop nop nop nop sub $48562, %r12 mov (%rax), %edi nop and %r12, %r12 // Store lea addresses_normal+0x1eb2d, %rsi nop nop nop add %rdi, %rdi movb $0x51, (%rsi) nop nop nop nop nop inc %rax // Store lea addresses_WC+0x1a5ed, %rdi nop nop nop nop nop xor %rbx, %rbx mov $0x5152535455565758, %rsi movq %rsi, %xmm5 vmovntdq %ymm5, (%rdi) nop nop nop nop add $33371, %rdi // Store lea addresses_UC+0xbb2d, %rcx xor $3410, %r13 movw $0x5152, (%rcx) nop nop and $56975, %rdi // Store mov $0x4575f70000000b2d, %rax add $34694, %rbx mov $0x5152535455565758, %rdi movq %rdi, %xmm1 movups %xmm1, (%rax) sub %rbx, %rbx // Store lea addresses_normal+0x1eb2d, %r12 clflush (%r12) nop sub %rbx, %rbx mov $0x5152535455565758, %rsi movq %rsi, %xmm3 movups %xmm3, (%r12) nop nop nop cmp $18098, %rax // Store mov $0xde3, %r12 nop nop nop nop nop and $9727, %rax movl $0x51525354, (%r12) nop and %rbx, %rbx // Store lea addresses_WC+0x1a821, %r13 xor %rax, %rax movl $0x51525354, (%r13) nop and $34167, %r13 // Store lea addresses_PSE+0x1992d, %rbx nop inc %rcx mov $0x5152535455565758, %r13 movq %r13, %xmm1 movups %xmm1, (%rbx) nop nop nop add %rcx, %rcx // Load lea addresses_D+0x8385, %rsi nop nop nop add $35562, %rax movb (%rsi), %cl nop and $64342, %rbx // Load lea addresses_RW+0xf12d, %rsi nop and $57031, %rbx mov (%rsi), %r12w nop nop nop nop nop cmp %rdi, %rdi // Faulty Load lea addresses_normal+0x1eb2d, %rsi nop nop nop xor $7419, %rax movb (%rsi), %cl lea oracles, %rsi and $0xff, %rcx shlq $12, %rcx mov (%rsi,%rcx,1), %rcx pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_P', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False, 'NT': True, 'congruent': 7, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'58': 496} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
25.121581
1,487
0.647429
ae36a86dbacd1f70260a06cb1f922b17dba9822a
1,027
asm
Assembly
uti/res_arith.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
uti/res_arith.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
uti/res_arith.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; Reserve space on arithmetic stack section utility include dev8_keys_bv include dev8_keys_qlv xdef ri_resrv ;+++ ; Reserve space on arithmetic stack and point to bottom of free space, ; so that the parameter may be filled in directly. ; The space needed is evened up, so that word access is possible. ; ; Entry Exit ; d1.l space needed smashed ; a1 pointer to arithmetic-stack updated ; a6 SuperBASIC master pointer preserved ; ; Error return: out of memory ; Condition codes set ;--- ri_resrv addq.l #1,d1 ; even up space bclr #0,d1 movem.l d1-d3/a2,-(sp) ; preserve registers move.w qa.resri,a2 jsr (a2) ; try to get space move.l bv_rip(a6),a1 movem.l (sp)+,d1-d3/a2 ; get registers sub.l d1,a1 ; to start of free space tst.l d0 rts end
28.527778
70
0.536514
d225c4852117c3e1348015e2ee4e86f217f867b6
323
asm
Assembly
01_as_vs_nasm/02_nasm_var_memory.asm
ericens/assembly_language
71cb70c6712990b409779bd3e57a3cc2cf143a9d
[ "Apache-2.0" ]
3
2021-04-19T16:31:05.000Z
2021-11-14T01:56:39.000Z
01_as_vs_nasm/02_nasm_var_memory.asm
ericens/assembly_language
71cb70c6712990b409779bd3e57a3cc2cf143a9d
[ "Apache-2.0" ]
null
null
null
01_as_vs_nasm/02_nasm_var_memory.asm
ericens/assembly_language
71cb70c6712990b409779bd3e57a3cc2cf143a9d
[ "Apache-2.0" ]
5
2021-04-19T16:31:56.000Z
2022-03-09T09:50:18.000Z
; Data section begins section .data var1 dd 40 var2 dd 20 var3 dd 30 section .text global _start _start: ; Move the contents of variables mov ecx, [var1] cmp ecx, [var2] jg check_third_var mov ecx, [var2] check_third_var: cmp ecx, [var3] jg _exit mov ecx, [var3] _exit: mov eax, 1 mov ebx, ecx int 80h
14.043478
33
0.690402
d26faccf363c2327ab7522999c35b75687f5849d
274
asm
Assembly
data/mapHeaders/celadonmansion5.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
16
2018-08-28T21:47:01.000Z
2022-02-20T20:29:59.000Z
data/mapHeaders/celadonmansion5.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
5
2019-04-03T19:53:11.000Z
2022-03-11T22:49:34.000Z
data/mapHeaders/celadonmansion5.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
2
2019-12-09T19:46:02.000Z
2020-12-05T21:36:30.000Z
CeladonMansion5_h: db HOUSE ; tileset db CELADON_MANSION_5_HEIGHT, CELADON_MANSION_5_WIDTH ; dimensions (y, x) dw CeladonMansion5Blocks, CeladonMansion5TextPointers, CeladonMansion5Script ; blocks, texts, scripts db $00 ; connections dw CeladonMansion5Object ; objects
39.142857
102
0.824818
e18b72fa0d03ccd7f9318638d6ea31903c5a3f7b
1,179
asm
Assembly
programs/oeis/228/A228137.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/228/A228137.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/228/A228137.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A228137: Numbers that are congruent to {1, 4} mod 12. ; 1,4,13,16,25,28,37,40,49,52,61,64,73,76,85,88,97,100,109,112,121,124,133,136,145,148,157,160,169,172,181,184,193,196,205,208,217,220,229,232,241,244,253,256,265,268,277,280,289,292,301,304,313,316,325,328,337,340,349,352,361,364,373,376,385,388,397,400,409,412,421,424,433,436,445,448,457,460,469,472,481,484,493,496,505,508,517,520,529,532,541,544,553,556,565,568,577,580,589,592,601,604,613,616,625,628,637,640,649,652,661,664,673,676,685,688,697,700,709,712,721,724,733,736,745,748,757,760,769,772,781,784,793,796,805,808,817,820,829,832,841,844,853,856,865,868,877,880,889,892,901,904,913,916,925,928,937,940,949,952,961,964,973,976,985,988,997,1000,1009,1012,1021,1024,1033,1036,1045,1048,1057,1060,1069,1072,1081,1084,1093,1096,1105,1108,1117,1120,1129,1132,1141,1144,1153,1156,1165,1168,1177,1180,1189,1192,1201,1204,1213,1216,1225,1228,1237,1240,1249,1252,1261,1264,1273,1276,1285,1288,1297,1300,1309,1312,1321,1324,1333,1336,1345,1348,1357,1360,1369,1372,1381,1384,1393,1396,1405,1408,1417,1420,1429,1432,1441,1444,1453,1456,1465,1468,1477,1480,1489,1492 mov $1,$0 mod $0,2 mul $1,2 sub $1,$0 mul $1,3 add $1,1
117.9
1,065
0.74894
11c5b8a4310149522d2d1901eb7da22ac8cf8e0a
271
asm
Assembly
oeis/229/A229850.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/229/A229850.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/229/A229850.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A229850: Number of prime factors congruent to 1 mod 3 that divide the Fermat number 2^(2^n) + 1. ; Submitted by Jamie Morken(m3) ; 0,0,0,0,0,1,1,1,1,0,3,2 mov $2,$0 lpb $0 lpb $0 mul $2,$0 dif $0,9 lpe mod $0,5 lpe add $0,3 div $2,$0 mov $0,$2 mod $0,10
15.941176
98
0.601476
00053ebbbe0093a981b6ad690454c9ee425a4d7b
495
asm
Assembly
oeis/133/A133486.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/133/A133486.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/133/A133486.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A133486: a(n) = Sum_{ k = 0 to n-1} ( subtract k modulo 9 from 9, multiply this by k-th power of 10 ). ; Submitted by Jamie Morken(s4) ; 9,89,789,6789,56789,456789,3456789,23456789,123456789,9123456789,89123456789,789123456789,6789123456789,56789123456789,456789123456789,3456789123456789,23456789123456789,123456789123456789,9123456789123456789,89123456789123456789 lpb $0 mov $2,$0 sub $0,1 mul $1,10 seq $2,180598 ; Digital root of 8n. add $1,$2 lpe mov $0,$1 mul $0,10 add $0,9
33
231
0.745455
d1b69bf56da96c89b2f509d6b320207bb3eec173
2,605
asm
Assembly
programs/oeis/017/A017163.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/017/A017163.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/017/A017163.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A017163: a(n) = (9*n)^3. ; 0,729,5832,19683,46656,91125,157464,250047,373248,531441,729000,970299,1259712,1601613,2000376,2460375,2985984,3581577,4251528,5000211,5832000,6751269,7762392,8869743,10077696,11390625,12812904,14348907,16003008,17779581,19683000,21717639,23887872,26198073,28652616,31255875,34012224,36926037,40001688,43243551,46656000,50243409,54010152,57960603,62099136,66430125,70957944,75686967,80621568,85766121,91125000,96702579,102503232,108531333,114791256,121287375,128024064,135005697,142236648,149721291,157464000,165469149,173741112,182284263,191102976,200201625,209584584,219256227,229220928,239483061,250047000,260917119,272097792,283593393,295408296,307546875,320013504,332812557,345948408,359425431,373248000,387420489,401947272,416832723,432081216,447697125,463684824,480048687,496793088,513922401,531441000,549353259,567663552,586376253,605495736,625026375,644972544,665338617,686128968,707347971,729000000,751089429,773620632,796597983,820025856,843908625,868250664,893056347,918330048,944076141,970299000,997002999,1024192512,1051871913,1080045576,1108717875,1137893184,1167575877,1197770328,1228480911,1259712000,1291467969,1323753192,1356572043,1389928896,1423828125,1458274104,1493271207,1528823808,1564936281,1601613000,1638858339,1676676672,1715072373,1754049816,1793613375,1833767424,1874516337,1915864488,1957816251,2000376000,2043548109,2087336952,2131746903,2176782336,2222447625,2268747144,2315685267,2363266368,2411494821,2460375000,2509911279,2560108032,2610969633,2662500456,2714704875,2767587264,2821151997,2875403448,2930345991,2985984000,3042321849,3099363912,3157114563,3215578176,3274759125,3334661784,3395290527,3456649728,3518743761,3581577000,3645153819,3709478592,3774555693,3840389496,3906984375,3974344704,4042474857,4111379208,4181062131,4251528000,4322781189,4394826072,4467667023,4541308416,4615754625,4691010024,4767078987,4843965888,4921675101,5000211000,5079577959,5159780352,5240822553,5322708936,5405443875,5489031744,5573476917,5658783768,5744956671,5832000000,5919918129,6008715432,6098396283,6188965056,6280426125,6372783864,6466042647,6560206848,6655280841,6751269000,6848175699,6946005312,7044762213,7144450776,7245075375,7346640384,7449150177,7552609128,7657021611,7762392000,7868724669,7976023992,8084294343,8193540096,8303765625,8414975304,8527173507,8640364608,8754552981,8869743000,8985939039,9103145472,9221366673,9340607016,9460870875,9582162624,9704486637,9827847288,9952248951,10077696000,10204192809,10331743752,10460353203,10590025536,10720765125,10852576344,10985463567,11119431168,11254483521 mov $1,9 mul $1,$0 pow $1,3
372.142857
2,548
0.892131
7df10354c0469367a0948227d627dc6183380c16
1,756
asm
Assembly
programs/oeis/081/A081631.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/081/A081631.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/081/A081631.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A081631: 2*2^n-(-2)^n. ; 1,6,4,24,16,96,64,384,256,1536,1024,6144,4096,24576,16384,98304,65536,393216,262144,1572864,1048576,6291456,4194304,25165824,16777216,100663296,67108864,402653184,268435456,1610612736,1073741824,6442450944,4294967296,25769803776,17179869184,103079215104,68719476736,412316860416,274877906944,1649267441664,1099511627776,6597069766656,4398046511104,26388279066624,17592186044416,105553116266496,70368744177664,422212465065984,281474976710656,1688849860263936,1125899906842624,6755399441055744,4503599627370496,27021597764222976,18014398509481984,108086391056891904,72057594037927936,432345564227567616,288230376151711744,1729382256910270464,1152921504606846976,6917529027641081856,4611686018427387904,27670116110564327424,18446744073709551616,110680464442257309696,73786976294838206464,442721857769029238784,295147905179352825856,1770887431076116955136,1180591620717411303424,7083549724304467820544,4722366482869645213696,28334198897217871282176,18889465931478580854784,113336795588871485128704,75557863725914323419136,453347182355485940514816,302231454903657293676544,1813388729421943762059264,1208925819614629174706176,7253554917687775048237056,4835703278458516698824704,29014219670751100192948224,19342813113834066795298816,116056878683004400771792896,77371252455336267181195264,464227514732017603087171584,309485009821345068724781056,1856910058928070412348686336,1237940039285380274899124224,7427640235712281649394745344,4951760157141521099596496896,29710560942849126597578981376,19807040628566084398385987584,118842243771396506390315925504,79228162514264337593543950336,475368975085586025561263702016,316912650057057350374175801344,1901475900342344102245054808064 mov $2,-2 pow $2,$0 gcd $1,$2 sub $2,$1 sub $1,$2 mov $0,$1
175.6
1,669
0.916856
8b919130a4d36e97f46754306029d97ec06567be
16,869
asm
Assembly
obj/card.asm
wojciech-graj/GB-Solitaire
f9e83c08ea5ae72b75c88335c67df420ce728fa0
[ "MIT" ]
4
2021-07-14T06:59:05.000Z
2022-03-23T18:18:26.000Z
obj/card.asm
wojciech-graj/GB-Solitaire
f9e83c08ea5ae72b75c88335c67df420ce728fa0
[ "MIT" ]
null
null
null
obj/card.asm
wojciech-graj/GB-Solitaire
f9e83c08ea5ae72b75c88335c67df420ce728fa0
[ "MIT" ]
null
null
null
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 4.1.0 #12072 (Linux) ;-------------------------------------------------------- .module card .optsdcc -mgbz80 ;-------------------------------------------------------- ; Public variables in this module ;-------------------------------------------------------- .globl _card_textures ;-------------------------------------------------------- ; special function registers ;-------------------------------------------------------- ;-------------------------------------------------------- ; ram data ;-------------------------------------------------------- .area _DATA ;-------------------------------------------------------- ; absolute external ram data ;-------------------------------------------------------- .area _DABS (ABS) ;-------------------------------------------------------- ; global & static initialisations ;-------------------------------------------------------- .area _HOME .area _GSINIT .area _GSFINAL .area _GSINIT ;-------------------------------------------------------- ; Home ;-------------------------------------------------------- .area _HOME .area _HOME ;-------------------------------------------------------- ; code ;-------------------------------------------------------- .area _CODE .area _CODE _card_textures: .db #0x7f ; 127 .db #0x7f ; 127 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x98 ; 152 .db #0xff ; 255 .db #0xa4 ; 164 .db #0xff ; 255 .db #0xbc ; 188 .db #0xff ; 255 .db #0xa4 ; 164 .db #0xff ; 255 .db #0xa4 ; 164 .db #0xff ; 255 .db #0x80 ; 128 .db #0x7f ; 127 .db #0x7f ; 127 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x98 ; 152 .db #0xff ; 255 .db #0xa4 ; 164 .db #0xff ; 255 .db #0x88 ; 136 .db #0xff ; 255 .db #0x90 ; 144 .db #0xff ; 255 .db #0xbc ; 188 .db #0xff ; 255 .db #0x80 ; 128 .db #0x7f ; 127 .db #0x7f ; 127 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0xb8 ; 184 .db #0xff ; 255 .db #0x84 ; 132 .db #0xff ; 255 .db #0x98 ; 152 .db #0xff ; 255 .db #0x84 ; 132 .db #0xff ; 255 .db #0xb8 ; 184 .db #0xff ; 255 .db #0x80 ; 128 .db #0x7f ; 127 .db #0x7f ; 127 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x88 ; 136 .db #0xff ; 255 .db #0x98 ; 152 .db #0xff ; 255 .db #0xa8 ; 168 .db #0xff ; 255 .db #0xbc ; 188 .db #0xff ; 255 .db #0x88 ; 136 .db #0xff ; 255 .db #0x80 ; 128 .db #0x7f ; 127 .db #0x7f ; 127 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0xbc ; 188 .db #0xff ; 255 .db #0xa0 ; 160 .db #0xff ; 255 .db #0xb8 ; 184 .db #0xff ; 255 .db #0x84 ; 132 .db #0xff ; 255 .db #0xb8 ; 184 .db #0xff ; 255 .db #0x80 ; 128 .db #0x7f ; 127 .db #0x7f ; 127 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x98 ; 152 .db #0xff ; 255 .db #0xa0 ; 160 .db #0xff ; 255 .db #0xb8 ; 184 .db #0xff ; 255 .db #0xa4 ; 164 .db #0xff ; 255 .db #0x98 ; 152 .db #0xff ; 255 .db #0x80 ; 128 .db #0x7f ; 127 .db #0x7f ; 127 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0xb8 ; 184 .db #0xff ; 255 .db #0x88 ; 136 .db #0xff ; 255 .db #0x90 ; 144 .db #0xff ; 255 .db #0x90 ; 144 .db #0xff ; 255 .db #0x90 ; 144 .db #0xff ; 255 .db #0x80 ; 128 .db #0x7f ; 127 .db #0x7f ; 127 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0xb8 ; 184 .db #0xff ; 255 .db #0xa8 ; 168 .db #0xff ; 255 .db #0xb8 ; 184 .db #0xff ; 255 .db #0xa8 ; 168 .db #0xff ; 255 .db #0xb8 ; 184 .db #0xff ; 255 .db #0x80 ; 128 .db #0x7f ; 127 .db #0x7f ; 127 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0xb8 ; 184 .db #0xff ; 255 .db #0xa8 ; 168 .db #0xff ; 255 .db #0xb8 ; 184 .db #0xff ; 255 .db #0x88 ; 136 .db #0xff ; 255 .db #0x88 ; 136 .db #0xff ; 255 .db #0x80 ; 128 .db #0x7f ; 127 .db #0x7f ; 127 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0xae ; 174 .db #0xff ; 255 .db #0xaa ; 170 .db #0xff ; 255 .db #0xaa ; 170 .db #0xff ; 255 .db #0xaa ; 170 .db #0xff ; 255 .db #0xae ; 174 .db #0xff ; 255 .db #0x80 ; 128 .db #0x7f ; 127 .db #0x7f ; 127 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0xbc ; 188 .db #0xff ; 255 .db #0x88 ; 136 .db #0xff ; 255 .db #0x88 ; 136 .db #0xff ; 255 .db #0xa8 ; 168 .db #0xff ; 255 .db #0xb8 ; 184 .db #0xff ; 255 .db #0x80 ; 128 .db #0x7f ; 127 .db #0x7f ; 127 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0xbc ; 188 .db #0xff ; 255 .db #0xa4 ; 164 .db #0xff ; 255 .db #0xa4 ; 164 .db #0xff ; 255 .db #0xac ; 172 .db #0xff ; 255 .db #0xbc ; 188 .db #0xff ; 255 .db #0x80 ; 128 .db #0x7f ; 127 .db #0x7f ; 127 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0xa8 ; 168 .db #0xff ; 255 .db #0xa8 ; 168 .db #0xff ; 255 .db #0xb0 ; 176 .db #0xff ; 255 .db #0xa8 ; 168 .db #0xff ; 255 .db #0xa8 ; 168 .db #0xff ; 255 .db #0x80 ; 128 .db #0xfe ; 254 .db #0xfe ; 254 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x11 ; 17 .db #0xff ; 255 .db #0x39 ; 57 '9' .db #0xff ; 255 .db #0x7d ; 125 .db #0xff ; 255 .db #0x7d ; 125 .db #0xff ; 255 .db #0x11 ; 17 .db #0xff ; 255 .db #0x39 ; 57 '9' .db #0xfe ; 254 .db #0xfe ; 254 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x39 ; 57 '9' .db #0xff ; 255 .db #0x55 ; 85 'U' .db #0xff ; 255 .db #0x7d ; 125 .db #0xff ; 255 .db #0x55 ; 85 'U' .db #0xff ; 255 .db #0x11 ; 17 .db #0xff ; 255 .db #0x01 ; 1 .db #0xfe ; 254 .db #0xfe ; 254 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x11 ; 17 .db #0xef ; 239 .db #0x39 ; 57 '9' .db #0xc7 ; 199 .db #0x7d ; 125 .db #0xef ; 239 .db #0x39 ; 57 '9' .db #0xff ; 255 .db #0x11 ; 17 .db #0xff ; 255 .db #0x01 ; 1 .db #0xfe ; 254 .db #0xfe ; 254 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x29 ; 41 .db #0xd7 ; 215 .db #0x7d ; 125 .db #0xc7 ; 199 .db #0x7d ; 125 .db #0xef ; 239 .db #0x39 ; 57 '9' .db #0xff ; 255 .db #0x11 ; 17 .db #0xff ; 255 .db #0x01 ; 1 .db #0x7f ; 127 .db #0x7f ; 127 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x80 ; 128 .db #0xfe ; 254 .db #0xfe ; 254 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x80 ; 128 .db #0x7f ; 127 .db #0x7f ; 127 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xfe ; 254 .db #0xfe ; 254 .db #0x7f ; 127 .db #0x7f ; 127 .db #0xff ; 255 .db #0x80 ; 128 .db #0xd5 ; 213 .db #0xaa ; 170 .db #0xea ; 234 .db #0x95 ; 149 .db #0xd5 ; 213 .db #0xaa ; 170 .db #0xea ; 234 .db #0x95 ; 149 .db #0xd5 ; 213 .db #0xaa ; 170 .db #0xea ; 234 .db #0x95 ; 149 .db #0xfe ; 254 .db #0xfe ; 254 .db #0xff ; 255 .db #0x01 ; 1 .db #0x57 ; 87 'W' .db #0xa9 ; 169 .db #0xab ; 171 .db #0x55 ; 85 'U' .db #0x57 ; 87 'W' .db #0xa9 ; 169 .db #0xab ; 171 .db #0x55 ; 85 'U' .db #0x57 ; 87 'W' .db #0xa9 ; 169 .db #0xab ; 171 .db #0x55 ; 85 'U' .db #0xd5 ; 213 .db #0xaa ; 170 .db #0xea ; 234 .db #0x95 ; 149 .db #0xd5 ; 213 .db #0xaa ; 170 .db #0xea ; 234 .db #0x95 ; 149 .db #0xd5 ; 213 .db #0xaa ; 170 .db #0xea ; 234 .db #0x95 ; 149 .db #0xd5 ; 213 .db #0xaa ; 170 .db #0xea ; 234 .db #0x95 ; 149 .db #0x57 ; 87 'W' .db #0xa9 ; 169 .db #0xab ; 171 .db #0x55 ; 85 'U' .db #0x57 ; 87 'W' .db #0xa9 ; 169 .db #0xab ; 171 .db #0x55 ; 85 'U' .db #0x57 ; 87 'W' .db #0xa9 ; 169 .db #0xab ; 171 .db #0x55 ; 85 'U' .db #0x57 ; 87 'W' .db #0xa9 ; 169 .db #0xab ; 171 .db #0x55 ; 85 'U' .db #0xd5 ; 213 .db #0xaa ; 170 .db #0xea ; 234 .db #0x95 ; 149 .db #0xd5 ; 213 .db #0xaa ; 170 .db #0xea ; 234 .db #0x95 ; 149 .db #0xd5 ; 213 .db #0xaa ; 170 .db #0xea ; 234 .db #0x95 ; 149 .db #0xff ; 255 .db #0x80 ; 128 .db #0x7f ; 127 .db #0x7f ; 127 .db #0x57 ; 87 'W' .db #0xa9 ; 169 .db #0xab ; 171 .db #0x55 ; 85 'U' .db #0x57 ; 87 'W' .db #0xa9 ; 169 .db #0xab ; 171 .db #0x55 ; 85 'U' .db #0x57 ; 87 'W' .db #0xa9 ; 169 .db #0xab ; 171 .db #0x55 ; 85 'U' .db #0xff ; 255 .db #0x01 ; 1 .db #0xfe ; 254 .db #0xfe ; 254 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x25 ; 37 .db #0xff ; 255 .db #0x25 ; 37 .db #0xff ; 255 .db #0x3d ; 61 .db #0xff ; 255 .db #0x25 ; 37 .db #0xff ; 255 .db #0x19 ; 25 .db #0xff ; 255 .db #0x01 ; 1 .db #0xfe ; 254 .db #0xfe ; 254 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x3d ; 61 .db #0xff ; 255 .db #0x09 ; 9 .db #0xff ; 255 .db #0x11 ; 17 .db #0xff ; 255 .db #0x25 ; 37 .db #0xff ; 255 .db #0x19 ; 25 .db #0xff ; 255 .db #0x01 ; 1 .db #0xfe ; 254 .db #0xfe ; 254 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x1d ; 29 .db #0xff ; 255 .db #0x21 ; 33 .db #0xff ; 255 .db #0x19 ; 25 .db #0xff ; 255 .db #0x21 ; 33 .db #0xff ; 255 .db #0x1d ; 29 .db #0xff ; 255 .db #0x01 ; 1 .db #0xfe ; 254 .db #0xfe ; 254 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x11 ; 17 .db #0xff ; 255 .db #0x3d ; 61 .db #0xff ; 255 .db #0x15 ; 21 .db #0xff ; 255 .db #0x19 ; 25 .db #0xff ; 255 .db #0x11 ; 17 .db #0xff ; 255 .db #0x01 ; 1 .db #0xfe ; 254 .db #0xfe ; 254 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x1d ; 29 .db #0xff ; 255 .db #0x21 ; 33 .db #0xff ; 255 .db #0x1d ; 29 .db #0xff ; 255 .db #0x05 ; 5 .db #0xff ; 255 .db #0x3d ; 61 .db #0xff ; 255 .db #0x01 ; 1 .db #0xfe ; 254 .db #0xfe ; 254 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x19 ; 25 .db #0xff ; 255 .db #0x25 ; 37 .db #0xff ; 255 .db #0x1d ; 29 .db #0xff ; 255 .db #0x05 ; 5 .db #0xff ; 255 .db #0x19 ; 25 .db #0xff ; 255 .db #0x01 ; 1 .db #0xfe ; 254 .db #0xfe ; 254 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x09 ; 9 .db #0xff ; 255 .db #0x09 ; 9 .db #0xff ; 255 .db #0x09 ; 9 .db #0xff ; 255 .db #0x11 ; 17 .db #0xff ; 255 .db #0x1d ; 29 .db #0xff ; 255 .db #0x01 ; 1 .db #0xfe ; 254 .db #0xfe ; 254 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x1d ; 29 .db #0xff ; 255 .db #0x15 ; 21 .db #0xff ; 255 .db #0x1d ; 29 .db #0xff ; 255 .db #0x15 ; 21 .db #0xff ; 255 .db #0x1d ; 29 .db #0xff ; 255 .db #0x01 ; 1 .db #0xfe ; 254 .db #0xfe ; 254 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x11 ; 17 .db #0xff ; 255 .db #0x11 ; 17 .db #0xff ; 255 .db #0x1d ; 29 .db #0xff ; 255 .db #0x15 ; 21 .db #0xff ; 255 .db #0x1d ; 29 .db #0xff ; 255 .db #0x01 ; 1 .db #0xfe ; 254 .db #0xfe ; 254 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x75 ; 117 'u' .db #0xff ; 255 .db #0x55 ; 85 'U' .db #0xff ; 255 .db #0x55 ; 85 'U' .db #0xff ; 255 .db #0x55 ; 85 'U' .db #0xff ; 255 .db #0x75 ; 117 'u' .db #0xff ; 255 .db #0x01 ; 1 .db #0xfe ; 254 .db #0xfe ; 254 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x1d ; 29 .db #0xff ; 255 .db #0x15 ; 21 .db #0xff ; 255 .db #0x11 ; 17 .db #0xff ; 255 .db #0x11 ; 17 .db #0xff ; 255 .db #0x3d ; 61 .db #0xff ; 255 .db #0x01 ; 1 .db #0xfe ; 254 .db #0xfe ; 254 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x3d ; 61 .db #0xff ; 255 .db #0x35 ; 53 '5' .db #0xff ; 255 .db #0x25 ; 37 .db #0xff ; 255 .db #0x25 ; 37 .db #0xff ; 255 .db #0x3d ; 61 .db #0xff ; 255 .db #0x01 ; 1 .db #0xfe ; 254 .db #0xfe ; 254 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x15 ; 21 .db #0xff ; 255 .db #0x15 ; 21 .db #0xff ; 255 .db #0x0d ; 13 .db #0xff ; 255 .db #0x15 ; 21 .db #0xff ; 255 .db #0x15 ; 21 .db #0xff ; 255 .db #0x01 ; 1 .db #0xfe ; 254 .db #0xfe ; 254 .db #0xff ; 255 .db #0x9c ; 156 .db #0xff ; 255 .db #0x88 ; 136 .db #0xff ; 255 .db #0xbe ; 190 .db #0xff ; 255 .db #0xbe ; 190 .db #0xff ; 255 .db #0x9c ; 156 .db #0xff ; 255 .db #0x88 ; 136 .db #0xff ; 255 .db #0x80 ; 128 .db #0x7f ; 127 .db #0x7f ; 127 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x88 ; 136 .db #0xff ; 255 .db #0xaa ; 170 .db #0xff ; 255 .db #0xbe ; 190 .db #0xff ; 255 .db #0xaa ; 170 .db #0xff ; 255 .db #0x9c ; 156 .db #0xff ; 255 .db #0x80 ; 128 .db #0x7f ; 127 .db #0x7f ; 127 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x88 ; 136 .db #0xf7 ; 247 .db #0x9c ; 156 .db #0xe3 ; 227 .db #0xbe ; 190 .db #0xf7 ; 247 .db #0x9c ; 156 .db #0xff ; 255 .db #0x88 ; 136 .db #0xff ; 255 .db #0x80 ; 128 .db #0x7f ; 127 .db #0x7f ; 127 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x88 ; 136 .db #0xf7 ; 247 .db #0x9c ; 156 .db #0xe3 ; 227 .db #0xbe ; 190 .db #0xeb ; 235 .db #0xbe ; 190 .db #0xff ; 255 .db #0x94 ; 148 .db #0xff ; 255 .db #0x80 ; 128 .db #0x7f ; 127 .db #0x7f ; 127 .db #0x7f ; 127 .db #0x7f ; 127 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0xfe ; 254 .db #0xfe ; 254 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x7f ; 127 .db #0x7f ; 127 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0xfe ; 254 .db #0xfe ; 254 .db #0x00 ; 0 .db #0x7f ; 127 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0xfe ; 254 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x7f ; 127 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x00 ; 0 .db #0xfe ; 254 .area _CABS (ABS)
17.390722
57
0.491315
eee45b754ec71727fe9ff430b7b4a149ad7c5371
6,263
asm
Assembly
src/kernel/cpu/interrupt.asm
cashlisa/mos
75165d1a63a6aa172001bbd9a1df441ff9c15038
[ "MIT" ]
302
2019-05-20T12:45:37.000Z
2022-03-29T07:27:43.000Z
src/kernel/cpu/interrupt.asm
huytd/mos
a9d8f925b87fcc56b94ff5933403f46a3146e1bf
[ "MIT" ]
12
2020-03-27T13:04:53.000Z
2021-12-07T12:26:29.000Z
src/kernel/cpu/interrupt.asm
huytd/mos
a9d8f925b87fcc56b94ff5933403f46a3146e1bf
[ "MIT" ]
33
2020-04-08T15:40:44.000Z
2022-03-12T03:26:07.000Z
[extern isr_handler] [extern irq_handler] [extern signal_handler] ; Common ISR code isr_common_stub: ; 1. Save CPU state pusha ; Pushes edi,esi,ebp,esp,ebx,edx,ecx,eax push ds push es push fs push gs mov ax, 0x10 ; kernel data segment descriptor mov ds, ax mov es, ax mov fs, ax mov gs, ax ; 2. Call C handler cld ; C code following the sysV ABI requires DF to be clear on function entry push esp ; interrupt_registers *r call isr_handler call signal_handler add esp, 4 ; 3. Restore state pop gs pop fs pop es pop ds popa add esp, 8 ; Cleans up the pushed error code and pushed ISR number iret ; pops 5 things at once: CS, EIP, EFLAGS, SS, and ESP ; Common IRQ code. Identical to ISR code except for the 'call' ; and the 'pop ebx' irq_common_stub: pusha push ds push es push fs push gs mov ax, 0x10 mov ds, ax mov es, ax mov fs, ax mov gs, ax cld push esp call irq_handler ; Different than the ISR code call signal_handler add esp, 4 pop gs pop fs pop es pop ds popa add esp, 8 iret ; We don't get information about which interrupt was caller ; when the handler is run, so we will need to have a different handler ; for every interrupt. ; Furthermore, some interrupts push an error code onto the stack but others ; don't, so we will push a dummy error code for those which don't, so that ; we have a consistent stack for all of them. ; First make the ISRs global [global isr0] [global isr1] [global isr2] [global isr3] [global isr4] [global isr5] [global isr6] [global isr7] [global isr8] [global isr9] [global isr10] [global isr11] [global isr12] [global isr13] [global isr14] [global isr15] [global isr16] [global isr17] [global isr18] [global isr19] [global isr20] [global isr21] [global isr22] [global isr23] [global isr24] [global isr25] [global isr26] [global isr27] [global isr28] [global isr29] [global isr30] [global isr31] [global isr127] ; IRQs [global irq0] [global irq1] [global irq2] [global irq3] [global irq4] [global irq5] [global irq6] [global irq7] [global irq8] [global irq9] [global irq10] [global irq11] [global irq12] [global irq13] [global irq14] [global irq15] ; 0: Divide By Zero Exception isr0: push byte 0 push byte 0 jmp isr_common_stub ; 1: Debug Exception isr1: push byte 0 push byte 1 jmp isr_common_stub ; 2: Non Maskable Interrupt Exception isr2: push byte 0 push byte 2 jmp isr_common_stub ; 3: Int 3 Exception isr3: push byte 0 push byte 3 jmp isr_common_stub ; 4: INTO Exception isr4: push byte 0 push byte 4 jmp isr_common_stub ; 5: Out of Bounds Exception isr5: push byte 0 push byte 5 jmp isr_common_stub ; 6: Invalid Opcode Exception isr6: push byte 0 push byte 6 jmp isr_common_stub ; 7: Coprocessor Not Available Exception isr7: push byte 0 push byte 7 jmp isr_common_stub ; 8: Double Fault Exception (With Error Code!) isr8: push byte 8 jmp isr_common_stub ; 9: Coprocessor Segment Overrun Exception isr9: push byte 0 push byte 9 jmp isr_common_stub ; 10: Bad TSS Exception (With Error Code!) isr10: push byte 10 jmp isr_common_stub ; 11: Segment Not Present Exception (With Error Code!) isr11: push byte 11 jmp isr_common_stub ; 12: Stack Fault Exception (With Error Code!) isr12: push byte 12 jmp isr_common_stub ; 13: General Protection Fault Exception (With Error Code!) isr13: push byte 13 jmp isr_common_stub ; 14: Page Fault Exception (With Error Code!) isr14: push byte 14 jmp isr_common_stub ; 15: Reserved Exception isr15: push byte 0 push byte 15 jmp isr_common_stub ; 16: Floating Point Exception isr16: push byte 0 push byte 16 jmp isr_common_stub ; 17: Alignment Check Exception isr17: push byte 0 push byte 17 jmp isr_common_stub ; 18: Machine Check Exception isr18: push byte 0 push byte 18 jmp isr_common_stub ; 19: Reserved isr19: push byte 0 push byte 19 jmp isr_common_stub ; 20: Reserved isr20: push byte 0 push byte 20 jmp isr_common_stub ; 21: Reserved isr21: push byte 0 push byte 21 jmp isr_common_stub ; 22: Reserved isr22: push byte 0 push byte 22 jmp isr_common_stub ; 23: Reserved isr23: push byte 0 push byte 23 jmp isr_common_stub ; 24: Reserved isr24: push byte 0 push byte 24 jmp isr_common_stub ; 25: Reserved isr25: push byte 0 push byte 25 jmp isr_common_stub ; 26: Reserved isr26: push byte 0 push byte 26 jmp isr_common_stub ; 27: Reserved isr27: push byte 0 push byte 27 jmp isr_common_stub ; 28: Reserved isr28: push byte 0 push byte 28 jmp isr_common_stub ; 29: Reserved isr29: push byte 0 push byte 29 jmp isr_common_stub ; 30: Reserved isr30: push byte 0 push byte 30 jmp isr_common_stub ; 31: Reserved isr31: push byte 0 push byte 31 jmp isr_common_stub isr127: push byte 0 push 0x7F jmp isr_common_stub ; IRQ handlers irq0: push byte 0 push byte 32 jmp irq_common_stub irq1: push byte 1 push byte 33 jmp irq_common_stub irq2: push byte 2 push byte 34 jmp irq_common_stub irq3: push byte 3 push byte 35 jmp irq_common_stub irq4: push byte 4 push byte 36 jmp irq_common_stub irq5: push byte 5 push byte 37 jmp irq_common_stub irq6: push byte 6 push byte 38 jmp irq_common_stub irq7: push byte 7 push byte 39 jmp irq_common_stub irq8: push byte 8 push byte 40 jmp irq_common_stub irq9: push byte 9 push byte 41 jmp irq_common_stub irq10: push byte 10 push byte 42 jmp irq_common_stub irq11: push byte 11 push byte 43 jmp irq_common_stub irq12: push byte 12 push byte 44 jmp irq_common_stub irq13: push byte 13 push byte 45 jmp irq_common_stub irq14: push byte 14 push byte 46 jmp irq_common_stub irq15: push byte 15 push byte 47 jmp irq_common_stub
15.815657
81
0.66821
6b0216b1aa91c7b1612ca36966b02011230422c7
323
asm
Assembly
programs/oeis/033/A033067.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/033/A033067.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/033/A033067.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A033067: Numbers whose base-16 representation Sum_{i=0..m} d(i)*16^i has odd d(i) for all odd i. ; 1,2,3,4,5,6,7,8,9,10,11,12,13,14,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 mov $1,$0 trn $0,14 add $1,$0 add $1,1
40.375
183
0.650155
d4fc49087dbbc8e166ace29089be815c673a587f
116
asm
Assembly
programs/test_JSR.asm
tofu13/pyc64
1ffb1d864de1b4df64f6eceb724ff653ce68aa2a
[ "MIT" ]
null
null
null
programs/test_JSR.asm
tofu13/pyc64
1ffb1d864de1b4df64f6eceb724ff653ce68aa2a
[ "MIT" ]
null
null
null
programs/test_JSR.asm
tofu13/pyc64
1ffb1d864de1b4df64f6eceb724ff653ce68aa2a
[ "MIT" ]
null
null
null
*=0x801 JSR .label1 JSR .label2 BRK .label1 RTS .label2 INX INY RTS
12.888889
19
0.431034
6ebbb6e831dea85642e1691159867f9d6846d601
1,038
asm
Assembly
sk/sfx/91.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
9
2017-10-09T20:28:45.000Z
2021-06-29T21:19:20.000Z
sk/sfx/91.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
12
2018-08-01T13:52:20.000Z
2022-02-21T02:19:37.000Z
sk/sfx/91.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
2
2018-02-17T19:50:36.000Z
2019-10-30T19:28:06.000Z
Sound_91_Header: smpsHeaderStartSong 3 smpsHeaderVoice Sound_91_Voices smpsHeaderTempoSFX $01 smpsHeaderChanSFX $01 smpsHeaderSFXChannel cFM5, Sound_91_FM5, $00, $00 ; FM5 Data Sound_91_FM5: smpsSetvoice $00 smpsModSet $01, $01, $0C, $01 dc.b nG0, $06 Sound_91_Loop00: dc.b nC0, $0E smpsFMAlterVol $0D smpsLoop $00, $06, Sound_91_Loop00 smpsStop Sound_91_Voices: ; Voice $00 ; $FA ; $1F, $30, $00, $32, $13, $1F, $1F, $1F, $12, $0E, $11, $04 ; $1B, $13, $09, $13, $1F, $1F, $4F, $2F, $0E, $80, $05, $80 smpsVcAlgorithm $02 smpsVcFeedback $07 smpsVcUnusedBits $03 smpsVcDetune $03, $00, $03, $01 smpsVcCoarseFreq $02, $00, $00, $0F smpsVcRateScale $00, $00, $00, $00 smpsVcAttackRate $1F, $1F, $1F, $13 smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $04, $11, $0E, $12 smpsVcDecayRate2 $13, $09, $13, $1B smpsVcDecayLevel $02, $04, $01, $01 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $00, $05, $80, $0E
25.95
62
0.608863
cf4fd3f5bf236c1cdd27928fadb8014ce1d1a779
3,233
asm
Assembly
programs/oeis/055/A055658.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/055/A055658.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/055/A055658.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A055658: Number of (3,n)-partitions of a chain of length n^2. ; 0,0,1,35,286,1330,4495,12341,29260,62196,121485,221815,383306,632710,1004731,1543465,2303960,3353896,4775385,6666891,9145270,12347930,16435111,21592285,28032676,35999900,45770725,57657951,72013410,89231086,109750355,134059345,162698416,196263760,235411121,280859635,333395790,393877506,463238335,542491781,632735740,735157060,851036221,981752135,1128787066,1293731670,1478290155,1684285561,1913665160,2168505976,2451020425,2763562075,3108631526,3488882410,3907127511,4366345005,4869684820,5420475116,6022228885,6678650671,7393643410,8171315390,9015987331,9932199585,10924719456,11998548640,13158930785,14411359171,15761584510,17215622866,18779763695,20460578005,22264926636,24199968660,26273169901,28492311575,30865499050,33401170726,36108107035,38995439561,42072660280,45349630920,48836592441,52544174635,56483405846,60665722810,65102980615,69807462781,74791891460,80069437756,85653732165,91558875135,97799447746,104390522510,111347674291,118686991345,126425086480,134579108336,143166752785,152206274451,161716498350,171716831650,182227275551,193268437285,204861542236,217028446180,229791647645,243174300391,257200226010,271893926646,287280597835,303386141465,320237178856,337861063960,356285896681,375540536315,395654615110,416658551946,438583566135,461461691341,485325789620,510209565580,536147580661,563175267535,591328944626,620645830750,651164059875,682922696001,715961748160,750322185536,786045952705,823175984995,861756223966,901831633010,943448213071,986653018485,1031494172940,1078020885556,1126283467085,1176333346231,1228223086090,1282006400710,1337738171771,1395474465385,1455272549016,1517190908520,1581289265305,1647628593611,1716271137910,1787280430426,1860721308775,1936659933725,2015163807076,2096301789660,2180144119461,2266762429855,2356229767970,2448620613166,2544010895635,2642478015121,2744100859760,2848959825040,2957136832881,3068715350835,3183780411406,3302418631490,3424718231935,3550769057221,3680662595260,3814491997316,3952352098045,4094339435655,4240552272186,4391090613910,4546056231851,4705552682425,4869685328200,5038561358776,5212289811785,5390981594011,5574749502630,5763708246570,5957974467991,6157666763885,6362905707796,6573813871660,6790515847765,7013138270831,7241809840210,7476661342206,7717825672515,7965437858785,8219635083296,8480556705760,8748344286241,9023141608195,9305094701630,9594351866386,9891063695535,10195383098901,10507465326700,10827467993300,11155551101101,11491877064535,11836610734186,12189919421030,12551972920795,12922943538441,13303006112760,13692338041096,14091119304185,14499532491115,14917762824406,15345998185210,15784429138631,16233248959165,16692653656260,17162841999996,17644015546885,18136378665791,18640138563970,19155505313230,19682691876211,20221914132785,20773390906576,21337343991600,21913998179025,22503581284051,23106324172910,23722460789986,24352228185055,24995866540645,25653619199516,26325732692260,27012456765021,27714044407335,28430751880090,29162838743606,29910567885835,30674205550681,31454021366440,32250288374360,33063283057321,33893285368635,34740578760966,35605450215370,36488190270455,37389093051661,38308456300660,39246581404876 bin $0,2 mul $0,2 add $0,1 bin $0,3 mov $1,$0
359.222222
3,121
0.909372
6b2a99f18d71f75ec78f5a4cf3d4ef596ea368ea
412
asm
Assembly
oeis/061/A061369.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/061/A061369.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/061/A061369.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A061369: a(n) = smallest square in the arithmetic progression {nk+1 : k >= 0}. ; Submitted by Christian Krause ; 4,9,4,9,16,25,36,9,64,81,100,25,144,169,16,49,256,289,324,81,64,441,484,25,576,625,676,169,784,121,900,225,100,1089,36,289,1296,1369,196,81,1600,169,1764,441,361,2025,2116,49,2304,2401,256,625,2704,2809,441 seq $0,215653 ; a(n) = smallest positive m such that m^2=1+k*n with positive k. pow $0,2
58.857143
208
0.708738
45a0fb32cc571914e1b9daa2d2f03c16fe2c1d7a
405
asm
Assembly
programs/oeis/078/A078113.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/078/A078113.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/078/A078113.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A078113: Let u(1)=u(2)=1, u(3)=n, u(k) = (1/2)*abs(2*u(k-1) -u(k-2)-u(k-3)); sequence gives values of n such that sum(k>=1, u(k)) is an integer. ; 2,6,7,15,17,33,37,69,77,141,157,285,317,573,637,1149,1277,2301,2557,4605,5117,9213,10237,18429,20477,36861,40957,73725,81917,147453,163837,294909,327677 mov $1,$0 gcd $0,2 mov $2,1 lpb $1 add $0,4 mul $0,2 sub $1,$2 trn $1,1 lpe div $0,2 add $0,1
27
154
0.62963
50fe807127190da42774282de88dc420c2425268
585
asm
Assembly
oeis/248/A248181.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/248/A248181.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/248/A248181.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A248181: Decimal expansion of Sum_{h >= 0} 1/binomial(h, floor(h/2)). ; Submitted by Christian Krause ; 3,2,0,9,1,9,9,5,7,6,1,5,6,1,4,5,2,3,3,7,2,9,3,8,5,5,0,5,0,9,4,7,7,0,4,8,8,1,8,9,3,7,7,4,9,8,7,2,8,4,9,3,7,1,7,0,4,6,5,8,9,9,5,6,9,2,5,4,1,5,4,5,4,0,8,4,2,3,5,9,2,2,4,5,6,0,8,3,3,2,5,4,7,4,7,0,6,7,7,9 mov $1,1 mov $2,1 mov $3,$0 mul $3,5 lpb $3 mul $1,$3 mov $5,$3 mul $5,2 add $5,1 mul $2,$5 add $1,$2 div $1,2 cmp $4,0 mov $5,$0 add $5,$4 div $1,$5 div $2,$5 sub $3,1 lpe mul $1,2 mov $6,10 pow $6,$0 div $2,$6 div $1,$2 add $1,$6 mov $0,$1 mod $0,10
18.28125
201
0.526496
02e0fb909ec9787e10d72d7351a7f49f9e7db20a
1,615
asm
Assembly
colib/colib_masm_win_x64.asm
bit-hack/colib
3151b3041f0c4356efcc0300fb71536a71678254
[ "MIT" ]
1
2020-04-16T15:40:11.000Z
2020-04-16T15:40:11.000Z
colib/colib_masm_win_x64.asm
bit-hack/colib
3151b3041f0c4356efcc0300fb71536a71678254
[ "MIT" ]
null
null
null
colib/colib_masm_win_x64.asm
bit-hack/colib
3151b3041f0c4356efcc0300fb71536a71678254
[ "MIT" ]
null
null
null
; colib yield for windows x64 ABI ; MASM assembly .CODE ; unused co_entry_asm PROC ret co_entry_asm ENDP ; void yield_( co_thread_t * thread ) ; thread -> rcx ; ; note: we dont touch the RCX register where 'thread' was passed ; so that it becomes a parameter to the thread function. ; co_yield_asm PROC ; int 3 ; push callee save registers push RBX push RBP push RDI push RSI push R12 push R13 push R14 push R15 ; thread->callee_->sp_ = RSP mov QWORD PTR rax, [rcx+8] mov QWORD PTR [rax], rsp ; RSP = thread->sp_ mov QWORD PTR rsp, [rcx] ; pop callee save registers pop R15 pop R14 pop R13 pop R12 pop RSI pop RDI pop RBP pop RBX ; return to new thread ret co_yield_asm ENDP ; when a coroutine function returns, it will execute this function ; since it was pushed as the return address on the stack. below this ; address the coroutine thread object has been pushed. we pop that ; from the stack and switch contexts, back to the previous thread. co_ret_asm PROC ; int 3 ; we move our thread object into rcx ; we add 32 here to step over the 'shadow space' mov rcx, [rsp+32] ; RSP = thread->callee_->sp_ mov QWORD PTR rax, [rcx+8] mov QWORD PTR rsp, [rax] ; thread->sp_ = nullptr mov QWORD PTR [rcx], 0 ; pop callee save registers pop R15 pop R14 pop R13 pop R12 pop RSI pop RDI pop RBP pop RBX ; return to main thread ret co_ret_asm ENDP END
21.824324
70
0.617337
369a134be17b31b240e4bfbdd8da8ceba5f54cd2
1,315
asm
Assembly
Transynther/x86/_processed/NC/_un_/i9-9900K_12_0xa0_notsx.log_1_1728.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_un_/i9-9900K_12_0xa0_notsx.log_1_1728.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_un_/i9-9900K_12_0xa0_notsx.log_1_1728.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r8 push %rbp push %rcx lea addresses_UC_ht+0x163f7, %rbp nop nop nop cmp %rcx, %rcx mov (%rbp), %r8d nop nop cmp $24098, %r13 pop %rcx pop %rbp pop %r8 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %r9 push %rbp push %rcx // Store mov $0x36f19b00000006df, %r10 nop nop nop nop nop and $64576, %r15 movb $0x51, (%r10) nop nop nop nop cmp %r14, %r14 // Faulty Load mov $0x3ee399000000043f, %rcx clflush (%rcx) nop nop nop sub $56430, %r15 vmovups (%rcx), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $0, %xmm6, %r9 lea oracles, %rcx and $0xff, %r9 shlq $12, %r9 mov (%rcx,%r9,1), %r9 pop %rcx pop %rbp pop %r9 pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 3}} [Faulty Load] {'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 3}, 'OP': 'LOAD'} {'60': 1} 60 */
16.4375
124
0.644106
24ae6d693e4196fafa7274cdeab38510650eacdd
653
asm
Assembly
cards/bn6/ModCards/137-A040 BeastMan.asm
RockmanEXEZone/MMBN-Mod-Card-Kit
d591ddca5566dbb323dc19c11e69410fa4073d1b
[ "Unlicense" ]
10
2017-12-05T14:25:38.000Z
2022-02-21T04:28:00.000Z
cards/bn6/ModCards/137-A040 BeastMan.asm
RockmanEXEZone/MMBN-Mod-Card-Kit
d591ddca5566dbb323dc19c11e69410fa4073d1b
[ "Unlicense" ]
null
null
null
cards/bn6/ModCards/137-A040 BeastMan.asm
RockmanEXEZone/MMBN-Mod-Card-Kit
d591ddca5566dbb323dc19c11e69410fa4073d1b
[ "Unlicense" ]
null
null
null
.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 40 card_no equ "040" card_sub equ "Mod Card 040" card_sub_x equ 64 card_desc_len equ 2 card_desc_1 equ "BeastMan" card_desc_2 equ "33MB" card_desc_3 equ "" card_name_jp_full equ "ビーストマン" card_name_jp_game equ "ビーストマン" card_name_en_full equ "BeastMan" card_name_en_game equ "BeastMan" card_address equ "" card_address_id equ 0 card_bug equ 0 card_wrote_en equ "" card_wrote_jp equ ""
24.185185
35
0.773354
1338c30ce764b6672eac4bd333ddf634581f156c
244
asm
Assembly
libsrc/_DEVELOPMENT/adt/p_forward_list_alt/c/sccz80/p_forward_list_alt_back.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
8
2017-01-18T12:02:17.000Z
2021-06-12T09:40:28.000Z
libsrc/_DEVELOPMENT/adt/p_forward_list_alt/c/sccz80/p_forward_list_alt_back.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
1
2017-03-06T07:41:56.000Z
2017-03-06T07:41:56.000Z
libsrc/_DEVELOPMENT/adt/p_forward_list_alt/c/sccz80/p_forward_list_alt_back.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
3
2017-03-07T03:19:40.000Z
2021-09-15T17:59:19.000Z
; void *p_forward_list_alt_back(p_forward_list_alt_t *list) SECTION code_clib SECTION code_adt_p_forward_list_alt PUBLIC p_forward_list_alt_back EXTERN asm_p_forward_list_alt_back defc p_forward_list_alt_back = asm_p_forward_list_alt_back
20.333333
59
0.889344
edd2e74313bc05af447c1483c52cd459a34cf164
678
asm
Assembly
oeis/314/A314090.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/314/A314090.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/314/A314090.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A314090: Coordination sequence Gal.4.54.4 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. ; Submitted by Christian Krause ; 1,5,11,16,20,24,29,35,40,45,51,56,60,64,69,75,80,85,91,96,100,104,109,115,120,125,131,136,140,144,149,155,160,165,171,176,180,184,189,195,200,205,211,216,220,224,229,235,240,245 sub $2,$0 seq $0,315745 ; Coordination sequence Gal.4.137.4 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. mul $0,2 add $0,$2 mov $1,2 add $1,$0 mul $1,2 div $1,3 sub $1,1 add $1,$2 add $1,$2 mov $0,$1
39.882353
182
0.724189
8697317964ab3d0b8537e550801f4107eafcd98a
646
asm
Assembly
oeis/097/A097067.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/097/A097067.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/097/A097067.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A097067: Expansion of (1-4*x+5*x^2)/(1-2*x)^2. ; 1,0,1,4,12,32,80,192,448,1024,2304,5120,11264,24576,53248,114688,245760,524288,1114112,2359296,4980736,10485760,22020096,46137344,96468992,201326592,419430400,872415232,1811939328,3758096384,7784628224,16106127360,33285996544,68719476736,141733920768,292057776128,601295421440,1236950581248,2542620639232,5222680231936,10720238370816,21990232555520,45079976738816,92358976733184,189115999977472,387028092977152,791648371998720,1618481116086272,3307330976350208,6755399441055744,13792273858822144 mov $1,2 lpb $0 trn $0,1 pow $1,$0 mul $1,$0 sub $2,$0 add $0,$2 lpe div $1,2 mov $0,$1
46.142857
497
0.804954
ad1f149e7693ccea98c3cc7b3bd7d3b805361a94
46,094
asm
Assembly
wc.asm
bilalsaad/realos
892614a47482ccbb6bdf1d071b74b85bf12fcd4e
[ "MIT-0" ]
null
null
null
wc.asm
bilalsaad/realos
892614a47482ccbb6bdf1d071b74b85bf12fcd4e
[ "MIT-0" ]
null
null
null
wc.asm
bilalsaad/realos
892614a47482ccbb6bdf1d071b74b85bf12fcd4e
[ "MIT-0" ]
null
null
null
_wc: file format elf32-i386 Disassembly of section .text: 00000000 <wc>: char buf[512]; void wc(int fd, char *name) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 48 sub $0x48,%esp int i, n; int l, w, c, inword; l = w = c = 0; 6: c7 45 e8 00 00 00 00 movl $0x0,-0x18(%ebp) d: 8b 45 e8 mov -0x18(%ebp),%eax 10: 89 45 ec mov %eax,-0x14(%ebp) 13: 8b 45 ec mov -0x14(%ebp),%eax 16: 89 45 f0 mov %eax,-0x10(%ebp) inword = 0; 19: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) while((n = read(fd, buf, sizeof(buf))) > 0){ 20: eb 68 jmp 8a <wc+0x8a> for(i=0; i<n; i++){ 22: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 29: eb 57 jmp 82 <wc+0x82> c++; 2b: 83 45 e8 01 addl $0x1,-0x18(%ebp) if(buf[i] == '\n') 2f: 8b 45 f4 mov -0xc(%ebp),%eax 32: 05 80 0c 00 00 add $0xc80,%eax 37: 0f b6 00 movzbl (%eax),%eax 3a: 3c 0a cmp $0xa,%al 3c: 75 04 jne 42 <wc+0x42> l++; 3e: 83 45 f0 01 addl $0x1,-0x10(%ebp) if(strchr(" \r\t\n\v", buf[i])) 42: 8b 45 f4 mov -0xc(%ebp),%eax 45: 05 80 0c 00 00 add $0xc80,%eax 4a: 0f b6 00 movzbl (%eax),%eax 4d: 0f be c0 movsbl %al,%eax 50: 89 44 24 04 mov %eax,0x4(%esp) 54: c7 04 24 a5 09 00 00 movl $0x9a5,(%esp) 5b: e8 58 02 00 00 call 2b8 <strchr> 60: 85 c0 test %eax,%eax 62: 74 09 je 6d <wc+0x6d> inword = 0; 64: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 6b: eb 11 jmp 7e <wc+0x7e> else if(!inword){ 6d: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) 71: 75 0b jne 7e <wc+0x7e> w++; 73: 83 45 ec 01 addl $0x1,-0x14(%ebp) inword = 1; 77: c7 45 e4 01 00 00 00 movl $0x1,-0x1c(%ebp) int l, w, c, inword; l = w = c = 0; inword = 0; while((n = read(fd, buf, sizeof(buf))) > 0){ for(i=0; i<n; i++){ 7e: 83 45 f4 01 addl $0x1,-0xc(%ebp) 82: 8b 45 f4 mov -0xc(%ebp),%eax 85: 3b 45 e0 cmp -0x20(%ebp),%eax 88: 7c a1 jl 2b <wc+0x2b> int i, n; int l, w, c, inword; l = w = c = 0; inword = 0; while((n = read(fd, buf, sizeof(buf))) > 0){ 8a: c7 44 24 08 00 02 00 movl $0x200,0x8(%esp) 91: 00 92: c7 44 24 04 80 0c 00 movl $0xc80,0x4(%esp) 99: 00 9a: 8b 45 08 mov 0x8(%ebp),%eax 9d: 89 04 24 mov %eax,(%esp) a0: e8 b4 03 00 00 call 459 <read> a5: 89 45 e0 mov %eax,-0x20(%ebp) a8: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) ac: 0f 8f 70 ff ff ff jg 22 <wc+0x22> w++; inword = 1; } } } if(n < 0){ b2: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) b6: 79 19 jns d1 <wc+0xd1> printf(1, "wc: read error\n"); b8: c7 44 24 04 ab 09 00 movl $0x9ab,0x4(%esp) bf: 00 c0: c7 04 24 01 00 00 00 movl $0x1,(%esp) c7: e8 0d 05 00 00 call 5d9 <printf> exit(); cc: e8 70 03 00 00 call 441 <exit> } printf(1, "%d %d %d %s\n", l, w, c, name); d1: 8b 45 0c mov 0xc(%ebp),%eax d4: 89 44 24 14 mov %eax,0x14(%esp) d8: 8b 45 e8 mov -0x18(%ebp),%eax db: 89 44 24 10 mov %eax,0x10(%esp) df: 8b 45 ec mov -0x14(%ebp),%eax e2: 89 44 24 0c mov %eax,0xc(%esp) e6: 8b 45 f0 mov -0x10(%ebp),%eax e9: 89 44 24 08 mov %eax,0x8(%esp) ed: c7 44 24 04 bb 09 00 movl $0x9bb,0x4(%esp) f4: 00 f5: c7 04 24 01 00 00 00 movl $0x1,(%esp) fc: e8 d8 04 00 00 call 5d9 <printf> } 101: c9 leave 102: c3 ret 00000103 <main>: int main(int argc, char *argv[]) { 103: 55 push %ebp 104: 89 e5 mov %esp,%ebp 106: 83 e4 f0 and $0xfffffff0,%esp 109: 83 ec 20 sub $0x20,%esp int fd, i; if(argc <= 1){ 10c: 83 7d 08 01 cmpl $0x1,0x8(%ebp) 110: 7f 19 jg 12b <main+0x28> wc(0, ""); 112: c7 44 24 04 c8 09 00 movl $0x9c8,0x4(%esp) 119: 00 11a: c7 04 24 00 00 00 00 movl $0x0,(%esp) 121: e8 da fe ff ff call 0 <wc> exit(); 126: e8 16 03 00 00 call 441 <exit> } for(i = 1; i < argc; i++){ 12b: c7 44 24 1c 01 00 00 movl $0x1,0x1c(%esp) 132: 00 133: e9 8f 00 00 00 jmp 1c7 <main+0xc4> if((fd = open(argv[i], 0)) < 0){ 138: 8b 44 24 1c mov 0x1c(%esp),%eax 13c: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 143: 8b 45 0c mov 0xc(%ebp),%eax 146: 01 d0 add %edx,%eax 148: 8b 00 mov (%eax),%eax 14a: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 151: 00 152: 89 04 24 mov %eax,(%esp) 155: e8 27 03 00 00 call 481 <open> 15a: 89 44 24 18 mov %eax,0x18(%esp) 15e: 83 7c 24 18 00 cmpl $0x0,0x18(%esp) 163: 79 2f jns 194 <main+0x91> printf(1, "wc: cannot open %s\n", argv[i]); 165: 8b 44 24 1c mov 0x1c(%esp),%eax 169: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 170: 8b 45 0c mov 0xc(%ebp),%eax 173: 01 d0 add %edx,%eax 175: 8b 00 mov (%eax),%eax 177: 89 44 24 08 mov %eax,0x8(%esp) 17b: c7 44 24 04 c9 09 00 movl $0x9c9,0x4(%esp) 182: 00 183: c7 04 24 01 00 00 00 movl $0x1,(%esp) 18a: e8 4a 04 00 00 call 5d9 <printf> exit(); 18f: e8 ad 02 00 00 call 441 <exit> } wc(fd, argv[i]); 194: 8b 44 24 1c mov 0x1c(%esp),%eax 198: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 19f: 8b 45 0c mov 0xc(%ebp),%eax 1a2: 01 d0 add %edx,%eax 1a4: 8b 00 mov (%eax),%eax 1a6: 89 44 24 04 mov %eax,0x4(%esp) 1aa: 8b 44 24 18 mov 0x18(%esp),%eax 1ae: 89 04 24 mov %eax,(%esp) 1b1: e8 4a fe ff ff call 0 <wc> close(fd); 1b6: 8b 44 24 18 mov 0x18(%esp),%eax 1ba: 89 04 24 mov %eax,(%esp) 1bd: e8 a7 02 00 00 call 469 <close> if(argc <= 1){ wc(0, ""); exit(); } for(i = 1; i < argc; i++){ 1c2: 83 44 24 1c 01 addl $0x1,0x1c(%esp) 1c7: 8b 44 24 1c mov 0x1c(%esp),%eax 1cb: 3b 45 08 cmp 0x8(%ebp),%eax 1ce: 0f 8c 64 ff ff ff jl 138 <main+0x35> exit(); } wc(fd, argv[i]); close(fd); } exit(); 1d4: e8 68 02 00 00 call 441 <exit> 000001d9 <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 1d9: 55 push %ebp 1da: 89 e5 mov %esp,%ebp 1dc: 57 push %edi 1dd: 53 push %ebx asm volatile("cld; rep stosb" : 1de: 8b 4d 08 mov 0x8(%ebp),%ecx 1e1: 8b 55 10 mov 0x10(%ebp),%edx 1e4: 8b 45 0c mov 0xc(%ebp),%eax 1e7: 89 cb mov %ecx,%ebx 1e9: 89 df mov %ebx,%edi 1eb: 89 d1 mov %edx,%ecx 1ed: fc cld 1ee: f3 aa rep stos %al,%es:(%edi) 1f0: 89 ca mov %ecx,%edx 1f2: 89 fb mov %edi,%ebx 1f4: 89 5d 08 mov %ebx,0x8(%ebp) 1f7: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 1fa: 5b pop %ebx 1fb: 5f pop %edi 1fc: 5d pop %ebp 1fd: c3 ret 000001fe <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 1fe: 55 push %ebp 1ff: 89 e5 mov %esp,%ebp 201: 83 ec 10 sub $0x10,%esp char *os; os = s; 204: 8b 45 08 mov 0x8(%ebp),%eax 207: 89 45 fc mov %eax,-0x4(%ebp) while((*s++ = *t++) != 0) 20a: 90 nop 20b: 8b 45 08 mov 0x8(%ebp),%eax 20e: 8d 50 01 lea 0x1(%eax),%edx 211: 89 55 08 mov %edx,0x8(%ebp) 214: 8b 55 0c mov 0xc(%ebp),%edx 217: 8d 4a 01 lea 0x1(%edx),%ecx 21a: 89 4d 0c mov %ecx,0xc(%ebp) 21d: 0f b6 12 movzbl (%edx),%edx 220: 88 10 mov %dl,(%eax) 222: 0f b6 00 movzbl (%eax),%eax 225: 84 c0 test %al,%al 227: 75 e2 jne 20b <strcpy+0xd> ; return os; 229: 8b 45 fc mov -0x4(%ebp),%eax } 22c: c9 leave 22d: c3 ret 0000022e <strcmp>: int strcmp(const char *p, const char *q) { 22e: 55 push %ebp 22f: 89 e5 mov %esp,%ebp while(*p && *p == *q) 231: eb 08 jmp 23b <strcmp+0xd> p++, q++; 233: 83 45 08 01 addl $0x1,0x8(%ebp) 237: 83 45 0c 01 addl $0x1,0xc(%ebp) } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 23b: 8b 45 08 mov 0x8(%ebp),%eax 23e: 0f b6 00 movzbl (%eax),%eax 241: 84 c0 test %al,%al 243: 74 10 je 255 <strcmp+0x27> 245: 8b 45 08 mov 0x8(%ebp),%eax 248: 0f b6 10 movzbl (%eax),%edx 24b: 8b 45 0c mov 0xc(%ebp),%eax 24e: 0f b6 00 movzbl (%eax),%eax 251: 38 c2 cmp %al,%dl 253: 74 de je 233 <strcmp+0x5> p++, q++; return (uchar)*p - (uchar)*q; 255: 8b 45 08 mov 0x8(%ebp),%eax 258: 0f b6 00 movzbl (%eax),%eax 25b: 0f b6 d0 movzbl %al,%edx 25e: 8b 45 0c mov 0xc(%ebp),%eax 261: 0f b6 00 movzbl (%eax),%eax 264: 0f b6 c0 movzbl %al,%eax 267: 29 c2 sub %eax,%edx 269: 89 d0 mov %edx,%eax } 26b: 5d pop %ebp 26c: c3 ret 0000026d <strlen>: uint strlen(char *s) { 26d: 55 push %ebp 26e: 89 e5 mov %esp,%ebp 270: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 273: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 27a: eb 04 jmp 280 <strlen+0x13> 27c: 83 45 fc 01 addl $0x1,-0x4(%ebp) 280: 8b 55 fc mov -0x4(%ebp),%edx 283: 8b 45 08 mov 0x8(%ebp),%eax 286: 01 d0 add %edx,%eax 288: 0f b6 00 movzbl (%eax),%eax 28b: 84 c0 test %al,%al 28d: 75 ed jne 27c <strlen+0xf> ; return n; 28f: 8b 45 fc mov -0x4(%ebp),%eax } 292: c9 leave 293: c3 ret 00000294 <memset>: void* memset(void *dst, int c, uint n) { 294: 55 push %ebp 295: 89 e5 mov %esp,%ebp 297: 83 ec 0c sub $0xc,%esp stosb(dst, c, n); 29a: 8b 45 10 mov 0x10(%ebp),%eax 29d: 89 44 24 08 mov %eax,0x8(%esp) 2a1: 8b 45 0c mov 0xc(%ebp),%eax 2a4: 89 44 24 04 mov %eax,0x4(%esp) 2a8: 8b 45 08 mov 0x8(%ebp),%eax 2ab: 89 04 24 mov %eax,(%esp) 2ae: e8 26 ff ff ff call 1d9 <stosb> return dst; 2b3: 8b 45 08 mov 0x8(%ebp),%eax } 2b6: c9 leave 2b7: c3 ret 000002b8 <strchr>: char* strchr(const char *s, char c) { 2b8: 55 push %ebp 2b9: 89 e5 mov %esp,%ebp 2bb: 83 ec 04 sub $0x4,%esp 2be: 8b 45 0c mov 0xc(%ebp),%eax 2c1: 88 45 fc mov %al,-0x4(%ebp) for(; *s; s++) 2c4: eb 14 jmp 2da <strchr+0x22> if(*s == c) 2c6: 8b 45 08 mov 0x8(%ebp),%eax 2c9: 0f b6 00 movzbl (%eax),%eax 2cc: 3a 45 fc cmp -0x4(%ebp),%al 2cf: 75 05 jne 2d6 <strchr+0x1e> return (char*)s; 2d1: 8b 45 08 mov 0x8(%ebp),%eax 2d4: eb 13 jmp 2e9 <strchr+0x31> } char* strchr(const char *s, char c) { for(; *s; s++) 2d6: 83 45 08 01 addl $0x1,0x8(%ebp) 2da: 8b 45 08 mov 0x8(%ebp),%eax 2dd: 0f b6 00 movzbl (%eax),%eax 2e0: 84 c0 test %al,%al 2e2: 75 e2 jne 2c6 <strchr+0xe> if(*s == c) return (char*)s; return 0; 2e4: b8 00 00 00 00 mov $0x0,%eax } 2e9: c9 leave 2ea: c3 ret 000002eb <gets>: char* gets(char *buf, int max) { 2eb: 55 push %ebp 2ec: 89 e5 mov %esp,%ebp 2ee: 83 ec 28 sub $0x28,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 2f1: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 2f8: eb 4c jmp 346 <gets+0x5b> cc = read(0, &c, 1); 2fa: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 301: 00 302: 8d 45 ef lea -0x11(%ebp),%eax 305: 89 44 24 04 mov %eax,0x4(%esp) 309: c7 04 24 00 00 00 00 movl $0x0,(%esp) 310: e8 44 01 00 00 call 459 <read> 315: 89 45 f0 mov %eax,-0x10(%ebp) if(cc < 1) 318: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 31c: 7f 02 jg 320 <gets+0x35> break; 31e: eb 31 jmp 351 <gets+0x66> buf[i++] = c; 320: 8b 45 f4 mov -0xc(%ebp),%eax 323: 8d 50 01 lea 0x1(%eax),%edx 326: 89 55 f4 mov %edx,-0xc(%ebp) 329: 89 c2 mov %eax,%edx 32b: 8b 45 08 mov 0x8(%ebp),%eax 32e: 01 c2 add %eax,%edx 330: 0f b6 45 ef movzbl -0x11(%ebp),%eax 334: 88 02 mov %al,(%edx) if(c == '\n' || c == '\r') 336: 0f b6 45 ef movzbl -0x11(%ebp),%eax 33a: 3c 0a cmp $0xa,%al 33c: 74 13 je 351 <gets+0x66> 33e: 0f b6 45 ef movzbl -0x11(%ebp),%eax 342: 3c 0d cmp $0xd,%al 344: 74 0b je 351 <gets+0x66> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 346: 8b 45 f4 mov -0xc(%ebp),%eax 349: 83 c0 01 add $0x1,%eax 34c: 3b 45 0c cmp 0xc(%ebp),%eax 34f: 7c a9 jl 2fa <gets+0xf> break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 351: 8b 55 f4 mov -0xc(%ebp),%edx 354: 8b 45 08 mov 0x8(%ebp),%eax 357: 01 d0 add %edx,%eax 359: c6 00 00 movb $0x0,(%eax) return buf; 35c: 8b 45 08 mov 0x8(%ebp),%eax } 35f: c9 leave 360: c3 ret 00000361 <stat>: int stat(char *n, struct stat *st) { 361: 55 push %ebp 362: 89 e5 mov %esp,%ebp 364: 83 ec 28 sub $0x28,%esp int fd; int r; fd = open(n, O_RDONLY); 367: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 36e: 00 36f: 8b 45 08 mov 0x8(%ebp),%eax 372: 89 04 24 mov %eax,(%esp) 375: e8 07 01 00 00 call 481 <open> 37a: 89 45 f4 mov %eax,-0xc(%ebp) if(fd < 0) 37d: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 381: 79 07 jns 38a <stat+0x29> return -1; 383: b8 ff ff ff ff mov $0xffffffff,%eax 388: eb 23 jmp 3ad <stat+0x4c> r = fstat(fd, st); 38a: 8b 45 0c mov 0xc(%ebp),%eax 38d: 89 44 24 04 mov %eax,0x4(%esp) 391: 8b 45 f4 mov -0xc(%ebp),%eax 394: 89 04 24 mov %eax,(%esp) 397: e8 fd 00 00 00 call 499 <fstat> 39c: 89 45 f0 mov %eax,-0x10(%ebp) close(fd); 39f: 8b 45 f4 mov -0xc(%ebp),%eax 3a2: 89 04 24 mov %eax,(%esp) 3a5: e8 bf 00 00 00 call 469 <close> return r; 3aa: 8b 45 f0 mov -0x10(%ebp),%eax } 3ad: c9 leave 3ae: c3 ret 000003af <atoi>: int atoi(const char *s) { 3af: 55 push %ebp 3b0: 89 e5 mov %esp,%ebp 3b2: 83 ec 10 sub $0x10,%esp int n; n = 0; 3b5: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while('0' <= *s && *s <= '9') 3bc: eb 25 jmp 3e3 <atoi+0x34> n = n*10 + *s++ - '0'; 3be: 8b 55 fc mov -0x4(%ebp),%edx 3c1: 89 d0 mov %edx,%eax 3c3: c1 e0 02 shl $0x2,%eax 3c6: 01 d0 add %edx,%eax 3c8: 01 c0 add %eax,%eax 3ca: 89 c1 mov %eax,%ecx 3cc: 8b 45 08 mov 0x8(%ebp),%eax 3cf: 8d 50 01 lea 0x1(%eax),%edx 3d2: 89 55 08 mov %edx,0x8(%ebp) 3d5: 0f b6 00 movzbl (%eax),%eax 3d8: 0f be c0 movsbl %al,%eax 3db: 01 c8 add %ecx,%eax 3dd: 83 e8 30 sub $0x30,%eax 3e0: 89 45 fc mov %eax,-0x4(%ebp) atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 3e3: 8b 45 08 mov 0x8(%ebp),%eax 3e6: 0f b6 00 movzbl (%eax),%eax 3e9: 3c 2f cmp $0x2f,%al 3eb: 7e 0a jle 3f7 <atoi+0x48> 3ed: 8b 45 08 mov 0x8(%ebp),%eax 3f0: 0f b6 00 movzbl (%eax),%eax 3f3: 3c 39 cmp $0x39,%al 3f5: 7e c7 jle 3be <atoi+0xf> n = n*10 + *s++ - '0'; return n; 3f7: 8b 45 fc mov -0x4(%ebp),%eax } 3fa: c9 leave 3fb: c3 ret 000003fc <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 3fc: 55 push %ebp 3fd: 89 e5 mov %esp,%ebp 3ff: 83 ec 10 sub $0x10,%esp char *dst, *src; dst = vdst; 402: 8b 45 08 mov 0x8(%ebp),%eax 405: 89 45 fc mov %eax,-0x4(%ebp) src = vsrc; 408: 8b 45 0c mov 0xc(%ebp),%eax 40b: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0) 40e: eb 17 jmp 427 <memmove+0x2b> *dst++ = *src++; 410: 8b 45 fc mov -0x4(%ebp),%eax 413: 8d 50 01 lea 0x1(%eax),%edx 416: 89 55 fc mov %edx,-0x4(%ebp) 419: 8b 55 f8 mov -0x8(%ebp),%edx 41c: 8d 4a 01 lea 0x1(%edx),%ecx 41f: 89 4d f8 mov %ecx,-0x8(%ebp) 422: 0f b6 12 movzbl (%edx),%edx 425: 88 10 mov %dl,(%eax) { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 427: 8b 45 10 mov 0x10(%ebp),%eax 42a: 8d 50 ff lea -0x1(%eax),%edx 42d: 89 55 10 mov %edx,0x10(%ebp) 430: 85 c0 test %eax,%eax 432: 7f dc jg 410 <memmove+0x14> *dst++ = *src++; return vdst; 434: 8b 45 08 mov 0x8(%ebp),%eax } 437: c9 leave 438: c3 ret 00000439 <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 439: b8 01 00 00 00 mov $0x1,%eax 43e: cd 40 int $0x40 440: c3 ret 00000441 <exit>: SYSCALL(exit) 441: b8 02 00 00 00 mov $0x2,%eax 446: cd 40 int $0x40 448: c3 ret 00000449 <wait>: SYSCALL(wait) 449: b8 03 00 00 00 mov $0x3,%eax 44e: cd 40 int $0x40 450: c3 ret 00000451 <pipe>: SYSCALL(pipe) 451: b8 04 00 00 00 mov $0x4,%eax 456: cd 40 int $0x40 458: c3 ret 00000459 <read>: SYSCALL(read) 459: b8 05 00 00 00 mov $0x5,%eax 45e: cd 40 int $0x40 460: c3 ret 00000461 <write>: SYSCALL(write) 461: b8 10 00 00 00 mov $0x10,%eax 466: cd 40 int $0x40 468: c3 ret 00000469 <close>: SYSCALL(close) 469: b8 15 00 00 00 mov $0x15,%eax 46e: cd 40 int $0x40 470: c3 ret 00000471 <kill>: SYSCALL(kill) 471: b8 06 00 00 00 mov $0x6,%eax 476: cd 40 int $0x40 478: c3 ret 00000479 <exec>: SYSCALL(exec) 479: b8 07 00 00 00 mov $0x7,%eax 47e: cd 40 int $0x40 480: c3 ret 00000481 <open>: SYSCALL(open) 481: b8 0f 00 00 00 mov $0xf,%eax 486: cd 40 int $0x40 488: c3 ret 00000489 <mknod>: SYSCALL(mknod) 489: b8 11 00 00 00 mov $0x11,%eax 48e: cd 40 int $0x40 490: c3 ret 00000491 <unlink>: SYSCALL(unlink) 491: b8 12 00 00 00 mov $0x12,%eax 496: cd 40 int $0x40 498: c3 ret 00000499 <fstat>: SYSCALL(fstat) 499: b8 08 00 00 00 mov $0x8,%eax 49e: cd 40 int $0x40 4a0: c3 ret 000004a1 <link>: SYSCALL(link) 4a1: b8 13 00 00 00 mov $0x13,%eax 4a6: cd 40 int $0x40 4a8: c3 ret 000004a9 <mkdir>: SYSCALL(mkdir) 4a9: b8 14 00 00 00 mov $0x14,%eax 4ae: cd 40 int $0x40 4b0: c3 ret 000004b1 <chdir>: SYSCALL(chdir) 4b1: b8 09 00 00 00 mov $0x9,%eax 4b6: cd 40 int $0x40 4b8: c3 ret 000004b9 <dup>: SYSCALL(dup) 4b9: b8 0a 00 00 00 mov $0xa,%eax 4be: cd 40 int $0x40 4c0: c3 ret 000004c1 <getpid>: SYSCALL(getpid) 4c1: b8 0b 00 00 00 mov $0xb,%eax 4c6: cd 40 int $0x40 4c8: c3 ret 000004c9 <sbrk>: SYSCALL(sbrk) 4c9: b8 0c 00 00 00 mov $0xc,%eax 4ce: cd 40 int $0x40 4d0: c3 ret 000004d1 <sleep>: SYSCALL(sleep) 4d1: b8 0d 00 00 00 mov $0xd,%eax 4d6: cd 40 int $0x40 4d8: c3 ret 000004d9 <uptime>: SYSCALL(uptime) 4d9: b8 0e 00 00 00 mov $0xe,%eax 4de: cd 40 int $0x40 4e0: c3 ret 000004e1 <history>: SYSCALL(history) 4e1: b8 16 00 00 00 mov $0x16,%eax 4e6: cd 40 int $0x40 4e8: c3 ret 000004e9 <wait2>: SYSCALL(wait2) 4e9: b8 17 00 00 00 mov $0x17,%eax 4ee: cd 40 int $0x40 4f0: c3 ret 000004f1 <set_prio>: SYSCALL(set_prio) 4f1: b8 18 00 00 00 mov $0x18,%eax 4f6: cd 40 int $0x40 4f8: c3 ret 000004f9 <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 4f9: 55 push %ebp 4fa: 89 e5 mov %esp,%ebp 4fc: 83 ec 18 sub $0x18,%esp 4ff: 8b 45 0c mov 0xc(%ebp),%eax 502: 88 45 f4 mov %al,-0xc(%ebp) write(fd, &c, 1); 505: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 50c: 00 50d: 8d 45 f4 lea -0xc(%ebp),%eax 510: 89 44 24 04 mov %eax,0x4(%esp) 514: 8b 45 08 mov 0x8(%ebp),%eax 517: 89 04 24 mov %eax,(%esp) 51a: e8 42 ff ff ff call 461 <write> } 51f: c9 leave 520: c3 ret 00000521 <printint>: static void printint(int fd, int xx, int base, int sgn) { 521: 55 push %ebp 522: 89 e5 mov %esp,%ebp 524: 56 push %esi 525: 53 push %ebx 526: 83 ec 30 sub $0x30,%esp static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 529: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) if(sgn && xx < 0){ 530: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 534: 74 17 je 54d <printint+0x2c> 536: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 53a: 79 11 jns 54d <printint+0x2c> neg = 1; 53c: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) x = -xx; 543: 8b 45 0c mov 0xc(%ebp),%eax 546: f7 d8 neg %eax 548: 89 45 ec mov %eax,-0x14(%ebp) 54b: eb 06 jmp 553 <printint+0x32> } else { x = xx; 54d: 8b 45 0c mov 0xc(%ebp),%eax 550: 89 45 ec mov %eax,-0x14(%ebp) } i = 0; 553: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; 55a: 8b 4d f4 mov -0xc(%ebp),%ecx 55d: 8d 41 01 lea 0x1(%ecx),%eax 560: 89 45 f4 mov %eax,-0xc(%ebp) 563: 8b 5d 10 mov 0x10(%ebp),%ebx 566: 8b 45 ec mov -0x14(%ebp),%eax 569: ba 00 00 00 00 mov $0x0,%edx 56e: f7 f3 div %ebx 570: 89 d0 mov %edx,%eax 572: 0f b6 80 48 0c 00 00 movzbl 0xc48(%eax),%eax 579: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1) }while((x /= base) != 0); 57d: 8b 75 10 mov 0x10(%ebp),%esi 580: 8b 45 ec mov -0x14(%ebp),%eax 583: ba 00 00 00 00 mov $0x0,%edx 588: f7 f6 div %esi 58a: 89 45 ec mov %eax,-0x14(%ebp) 58d: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 591: 75 c7 jne 55a <printint+0x39> if(neg) 593: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 597: 74 10 je 5a9 <printint+0x88> buf[i++] = '-'; 599: 8b 45 f4 mov -0xc(%ebp),%eax 59c: 8d 50 01 lea 0x1(%eax),%edx 59f: 89 55 f4 mov %edx,-0xc(%ebp) 5a2: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1) while(--i >= 0) 5a7: eb 1f jmp 5c8 <printint+0xa7> 5a9: eb 1d jmp 5c8 <printint+0xa7> putc(fd, buf[i]); 5ab: 8d 55 dc lea -0x24(%ebp),%edx 5ae: 8b 45 f4 mov -0xc(%ebp),%eax 5b1: 01 d0 add %edx,%eax 5b3: 0f b6 00 movzbl (%eax),%eax 5b6: 0f be c0 movsbl %al,%eax 5b9: 89 44 24 04 mov %eax,0x4(%esp) 5bd: 8b 45 08 mov 0x8(%ebp),%eax 5c0: 89 04 24 mov %eax,(%esp) 5c3: e8 31 ff ff ff call 4f9 <putc> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 5c8: 83 6d f4 01 subl $0x1,-0xc(%ebp) 5cc: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 5d0: 79 d9 jns 5ab <printint+0x8a> putc(fd, buf[i]); } 5d2: 83 c4 30 add $0x30,%esp 5d5: 5b pop %ebx 5d6: 5e pop %esi 5d7: 5d pop %ebp 5d8: c3 ret 000005d9 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 5d9: 55 push %ebp 5da: 89 e5 mov %esp,%ebp 5dc: 83 ec 38 sub $0x38,%esp char *s; int c, i, state; uint *ap; state = 0; 5df: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) ap = (uint*)(void*)&fmt + 1; 5e6: 8d 45 0c lea 0xc(%ebp),%eax 5e9: 83 c0 04 add $0x4,%eax 5ec: 89 45 e8 mov %eax,-0x18(%ebp) for(i = 0; fmt[i]; i++){ 5ef: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 5f6: e9 7c 01 00 00 jmp 777 <printf+0x19e> c = fmt[i] & 0xff; 5fb: 8b 55 0c mov 0xc(%ebp),%edx 5fe: 8b 45 f0 mov -0x10(%ebp),%eax 601: 01 d0 add %edx,%eax 603: 0f b6 00 movzbl (%eax),%eax 606: 0f be c0 movsbl %al,%eax 609: 25 ff 00 00 00 and $0xff,%eax 60e: 89 45 e4 mov %eax,-0x1c(%ebp) if(state == 0){ 611: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 615: 75 2c jne 643 <printf+0x6a> if(c == '%'){ 617: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 61b: 75 0c jne 629 <printf+0x50> state = '%'; 61d: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp) 624: e9 4a 01 00 00 jmp 773 <printf+0x19a> } else { putc(fd, c); 629: 8b 45 e4 mov -0x1c(%ebp),%eax 62c: 0f be c0 movsbl %al,%eax 62f: 89 44 24 04 mov %eax,0x4(%esp) 633: 8b 45 08 mov 0x8(%ebp),%eax 636: 89 04 24 mov %eax,(%esp) 639: e8 bb fe ff ff call 4f9 <putc> 63e: e9 30 01 00 00 jmp 773 <printf+0x19a> } } else if(state == '%'){ 643: 83 7d ec 25 cmpl $0x25,-0x14(%ebp) 647: 0f 85 26 01 00 00 jne 773 <printf+0x19a> if(c == 'd'){ 64d: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp) 651: 75 2d jne 680 <printf+0xa7> printint(fd, *ap, 10, 1); 653: 8b 45 e8 mov -0x18(%ebp),%eax 656: 8b 00 mov (%eax),%eax 658: c7 44 24 0c 01 00 00 movl $0x1,0xc(%esp) 65f: 00 660: c7 44 24 08 0a 00 00 movl $0xa,0x8(%esp) 667: 00 668: 89 44 24 04 mov %eax,0x4(%esp) 66c: 8b 45 08 mov 0x8(%ebp),%eax 66f: 89 04 24 mov %eax,(%esp) 672: e8 aa fe ff ff call 521 <printint> ap++; 677: 83 45 e8 04 addl $0x4,-0x18(%ebp) 67b: e9 ec 00 00 00 jmp 76c <printf+0x193> } else if(c == 'x' || c == 'p'){ 680: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp) 684: 74 06 je 68c <printf+0xb3> 686: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp) 68a: 75 2d jne 6b9 <printf+0xe0> printint(fd, *ap, 16, 0); 68c: 8b 45 e8 mov -0x18(%ebp),%eax 68f: 8b 00 mov (%eax),%eax 691: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp) 698: 00 699: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp) 6a0: 00 6a1: 89 44 24 04 mov %eax,0x4(%esp) 6a5: 8b 45 08 mov 0x8(%ebp),%eax 6a8: 89 04 24 mov %eax,(%esp) 6ab: e8 71 fe ff ff call 521 <printint> ap++; 6b0: 83 45 e8 04 addl $0x4,-0x18(%ebp) 6b4: e9 b3 00 00 00 jmp 76c <printf+0x193> } else if(c == 's'){ 6b9: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp) 6bd: 75 45 jne 704 <printf+0x12b> s = (char*)*ap; 6bf: 8b 45 e8 mov -0x18(%ebp),%eax 6c2: 8b 00 mov (%eax),%eax 6c4: 89 45 f4 mov %eax,-0xc(%ebp) ap++; 6c7: 83 45 e8 04 addl $0x4,-0x18(%ebp) if(s == 0) 6cb: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 6cf: 75 09 jne 6da <printf+0x101> s = "(null)"; 6d1: c7 45 f4 dd 09 00 00 movl $0x9dd,-0xc(%ebp) while(*s != 0){ 6d8: eb 1e jmp 6f8 <printf+0x11f> 6da: eb 1c jmp 6f8 <printf+0x11f> putc(fd, *s); 6dc: 8b 45 f4 mov -0xc(%ebp),%eax 6df: 0f b6 00 movzbl (%eax),%eax 6e2: 0f be c0 movsbl %al,%eax 6e5: 89 44 24 04 mov %eax,0x4(%esp) 6e9: 8b 45 08 mov 0x8(%ebp),%eax 6ec: 89 04 24 mov %eax,(%esp) 6ef: e8 05 fe ff ff call 4f9 <putc> s++; 6f4: 83 45 f4 01 addl $0x1,-0xc(%ebp) } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 6f8: 8b 45 f4 mov -0xc(%ebp),%eax 6fb: 0f b6 00 movzbl (%eax),%eax 6fe: 84 c0 test %al,%al 700: 75 da jne 6dc <printf+0x103> 702: eb 68 jmp 76c <printf+0x193> putc(fd, *s); s++; } } else if(c == 'c'){ 704: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp) 708: 75 1d jne 727 <printf+0x14e> putc(fd, *ap); 70a: 8b 45 e8 mov -0x18(%ebp),%eax 70d: 8b 00 mov (%eax),%eax 70f: 0f be c0 movsbl %al,%eax 712: 89 44 24 04 mov %eax,0x4(%esp) 716: 8b 45 08 mov 0x8(%ebp),%eax 719: 89 04 24 mov %eax,(%esp) 71c: e8 d8 fd ff ff call 4f9 <putc> ap++; 721: 83 45 e8 04 addl $0x4,-0x18(%ebp) 725: eb 45 jmp 76c <printf+0x193> } else if(c == '%'){ 727: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 72b: 75 17 jne 744 <printf+0x16b> putc(fd, c); 72d: 8b 45 e4 mov -0x1c(%ebp),%eax 730: 0f be c0 movsbl %al,%eax 733: 89 44 24 04 mov %eax,0x4(%esp) 737: 8b 45 08 mov 0x8(%ebp),%eax 73a: 89 04 24 mov %eax,(%esp) 73d: e8 b7 fd ff ff call 4f9 <putc> 742: eb 28 jmp 76c <printf+0x193> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 744: c7 44 24 04 25 00 00 movl $0x25,0x4(%esp) 74b: 00 74c: 8b 45 08 mov 0x8(%ebp),%eax 74f: 89 04 24 mov %eax,(%esp) 752: e8 a2 fd ff ff call 4f9 <putc> putc(fd, c); 757: 8b 45 e4 mov -0x1c(%ebp),%eax 75a: 0f be c0 movsbl %al,%eax 75d: 89 44 24 04 mov %eax,0x4(%esp) 761: 8b 45 08 mov 0x8(%ebp),%eax 764: 89 04 24 mov %eax,(%esp) 767: e8 8d fd ff ff call 4f9 <putc> } state = 0; 76c: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 773: 83 45 f0 01 addl $0x1,-0x10(%ebp) 777: 8b 55 0c mov 0xc(%ebp),%edx 77a: 8b 45 f0 mov -0x10(%ebp),%eax 77d: 01 d0 add %edx,%eax 77f: 0f b6 00 movzbl (%eax),%eax 782: 84 c0 test %al,%al 784: 0f 85 71 fe ff ff jne 5fb <printf+0x22> putc(fd, c); } state = 0; } } } 78a: c9 leave 78b: c3 ret 0000078c <free>: static Header base; static Header *freep; void free(void *ap) { 78c: 55 push %ebp 78d: 89 e5 mov %esp,%ebp 78f: 83 ec 10 sub $0x10,%esp Header *bp, *p; bp = (Header*)ap - 1; 792: 8b 45 08 mov 0x8(%ebp),%eax 795: 83 e8 08 sub $0x8,%eax 798: 89 45 f8 mov %eax,-0x8(%ebp) for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 79b: a1 68 0c 00 00 mov 0xc68,%eax 7a0: 89 45 fc mov %eax,-0x4(%ebp) 7a3: eb 24 jmp 7c9 <free+0x3d> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 7a5: 8b 45 fc mov -0x4(%ebp),%eax 7a8: 8b 00 mov (%eax),%eax 7aa: 3b 45 fc cmp -0x4(%ebp),%eax 7ad: 77 12 ja 7c1 <free+0x35> 7af: 8b 45 f8 mov -0x8(%ebp),%eax 7b2: 3b 45 fc cmp -0x4(%ebp),%eax 7b5: 77 24 ja 7db <free+0x4f> 7b7: 8b 45 fc mov -0x4(%ebp),%eax 7ba: 8b 00 mov (%eax),%eax 7bc: 3b 45 f8 cmp -0x8(%ebp),%eax 7bf: 77 1a ja 7db <free+0x4f> free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 7c1: 8b 45 fc mov -0x4(%ebp),%eax 7c4: 8b 00 mov (%eax),%eax 7c6: 89 45 fc mov %eax,-0x4(%ebp) 7c9: 8b 45 f8 mov -0x8(%ebp),%eax 7cc: 3b 45 fc cmp -0x4(%ebp),%eax 7cf: 76 d4 jbe 7a5 <free+0x19> 7d1: 8b 45 fc mov -0x4(%ebp),%eax 7d4: 8b 00 mov (%eax),%eax 7d6: 3b 45 f8 cmp -0x8(%ebp),%eax 7d9: 76 ca jbe 7a5 <free+0x19> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ 7db: 8b 45 f8 mov -0x8(%ebp),%eax 7de: 8b 40 04 mov 0x4(%eax),%eax 7e1: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 7e8: 8b 45 f8 mov -0x8(%ebp),%eax 7eb: 01 c2 add %eax,%edx 7ed: 8b 45 fc mov -0x4(%ebp),%eax 7f0: 8b 00 mov (%eax),%eax 7f2: 39 c2 cmp %eax,%edx 7f4: 75 24 jne 81a <free+0x8e> bp->s.size += p->s.ptr->s.size; 7f6: 8b 45 f8 mov -0x8(%ebp),%eax 7f9: 8b 50 04 mov 0x4(%eax),%edx 7fc: 8b 45 fc mov -0x4(%ebp),%eax 7ff: 8b 00 mov (%eax),%eax 801: 8b 40 04 mov 0x4(%eax),%eax 804: 01 c2 add %eax,%edx 806: 8b 45 f8 mov -0x8(%ebp),%eax 809: 89 50 04 mov %edx,0x4(%eax) bp->s.ptr = p->s.ptr->s.ptr; 80c: 8b 45 fc mov -0x4(%ebp),%eax 80f: 8b 00 mov (%eax),%eax 811: 8b 10 mov (%eax),%edx 813: 8b 45 f8 mov -0x8(%ebp),%eax 816: 89 10 mov %edx,(%eax) 818: eb 0a jmp 824 <free+0x98> } else bp->s.ptr = p->s.ptr; 81a: 8b 45 fc mov -0x4(%ebp),%eax 81d: 8b 10 mov (%eax),%edx 81f: 8b 45 f8 mov -0x8(%ebp),%eax 822: 89 10 mov %edx,(%eax) if(p + p->s.size == bp){ 824: 8b 45 fc mov -0x4(%ebp),%eax 827: 8b 40 04 mov 0x4(%eax),%eax 82a: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 831: 8b 45 fc mov -0x4(%ebp),%eax 834: 01 d0 add %edx,%eax 836: 3b 45 f8 cmp -0x8(%ebp),%eax 839: 75 20 jne 85b <free+0xcf> p->s.size += bp->s.size; 83b: 8b 45 fc mov -0x4(%ebp),%eax 83e: 8b 50 04 mov 0x4(%eax),%edx 841: 8b 45 f8 mov -0x8(%ebp),%eax 844: 8b 40 04 mov 0x4(%eax),%eax 847: 01 c2 add %eax,%edx 849: 8b 45 fc mov -0x4(%ebp),%eax 84c: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 84f: 8b 45 f8 mov -0x8(%ebp),%eax 852: 8b 10 mov (%eax),%edx 854: 8b 45 fc mov -0x4(%ebp),%eax 857: 89 10 mov %edx,(%eax) 859: eb 08 jmp 863 <free+0xd7> } else p->s.ptr = bp; 85b: 8b 45 fc mov -0x4(%ebp),%eax 85e: 8b 55 f8 mov -0x8(%ebp),%edx 861: 89 10 mov %edx,(%eax) freep = p; 863: 8b 45 fc mov -0x4(%ebp),%eax 866: a3 68 0c 00 00 mov %eax,0xc68 } 86b: c9 leave 86c: c3 ret 0000086d <morecore>: static Header* morecore(uint nu) { 86d: 55 push %ebp 86e: 89 e5 mov %esp,%ebp 870: 83 ec 28 sub $0x28,%esp char *p; Header *hp; if(nu < 4096) 873: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp) 87a: 77 07 ja 883 <morecore+0x16> nu = 4096; 87c: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp) p = sbrk(nu * sizeof(Header)); 883: 8b 45 08 mov 0x8(%ebp),%eax 886: c1 e0 03 shl $0x3,%eax 889: 89 04 24 mov %eax,(%esp) 88c: e8 38 fc ff ff call 4c9 <sbrk> 891: 89 45 f4 mov %eax,-0xc(%ebp) if(p == (char*)-1) 894: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp) 898: 75 07 jne 8a1 <morecore+0x34> return 0; 89a: b8 00 00 00 00 mov $0x0,%eax 89f: eb 22 jmp 8c3 <morecore+0x56> hp = (Header*)p; 8a1: 8b 45 f4 mov -0xc(%ebp),%eax 8a4: 89 45 f0 mov %eax,-0x10(%ebp) hp->s.size = nu; 8a7: 8b 45 f0 mov -0x10(%ebp),%eax 8aa: 8b 55 08 mov 0x8(%ebp),%edx 8ad: 89 50 04 mov %edx,0x4(%eax) free((void*)(hp + 1)); 8b0: 8b 45 f0 mov -0x10(%ebp),%eax 8b3: 83 c0 08 add $0x8,%eax 8b6: 89 04 24 mov %eax,(%esp) 8b9: e8 ce fe ff ff call 78c <free> return freep; 8be: a1 68 0c 00 00 mov 0xc68,%eax } 8c3: c9 leave 8c4: c3 ret 000008c5 <malloc>: void* malloc(uint nbytes) { 8c5: 55 push %ebp 8c6: 89 e5 mov %esp,%ebp 8c8: 83 ec 28 sub $0x28,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 8cb: 8b 45 08 mov 0x8(%ebp),%eax 8ce: 83 c0 07 add $0x7,%eax 8d1: c1 e8 03 shr $0x3,%eax 8d4: 83 c0 01 add $0x1,%eax 8d7: 89 45 ec mov %eax,-0x14(%ebp) if((prevp = freep) == 0){ 8da: a1 68 0c 00 00 mov 0xc68,%eax 8df: 89 45 f0 mov %eax,-0x10(%ebp) 8e2: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 8e6: 75 23 jne 90b <malloc+0x46> base.s.ptr = freep = prevp = &base; 8e8: c7 45 f0 60 0c 00 00 movl $0xc60,-0x10(%ebp) 8ef: 8b 45 f0 mov -0x10(%ebp),%eax 8f2: a3 68 0c 00 00 mov %eax,0xc68 8f7: a1 68 0c 00 00 mov 0xc68,%eax 8fc: a3 60 0c 00 00 mov %eax,0xc60 base.s.size = 0; 901: c7 05 64 0c 00 00 00 movl $0x0,0xc64 908: 00 00 00 } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 90b: 8b 45 f0 mov -0x10(%ebp),%eax 90e: 8b 00 mov (%eax),%eax 910: 89 45 f4 mov %eax,-0xc(%ebp) if(p->s.size >= nunits){ 913: 8b 45 f4 mov -0xc(%ebp),%eax 916: 8b 40 04 mov 0x4(%eax),%eax 919: 3b 45 ec cmp -0x14(%ebp),%eax 91c: 72 4d jb 96b <malloc+0xa6> if(p->s.size == nunits) 91e: 8b 45 f4 mov -0xc(%ebp),%eax 921: 8b 40 04 mov 0x4(%eax),%eax 924: 3b 45 ec cmp -0x14(%ebp),%eax 927: 75 0c jne 935 <malloc+0x70> prevp->s.ptr = p->s.ptr; 929: 8b 45 f4 mov -0xc(%ebp),%eax 92c: 8b 10 mov (%eax),%edx 92e: 8b 45 f0 mov -0x10(%ebp),%eax 931: 89 10 mov %edx,(%eax) 933: eb 26 jmp 95b <malloc+0x96> else { p->s.size -= nunits; 935: 8b 45 f4 mov -0xc(%ebp),%eax 938: 8b 40 04 mov 0x4(%eax),%eax 93b: 2b 45 ec sub -0x14(%ebp),%eax 93e: 89 c2 mov %eax,%edx 940: 8b 45 f4 mov -0xc(%ebp),%eax 943: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; 946: 8b 45 f4 mov -0xc(%ebp),%eax 949: 8b 40 04 mov 0x4(%eax),%eax 94c: c1 e0 03 shl $0x3,%eax 94f: 01 45 f4 add %eax,-0xc(%ebp) p->s.size = nunits; 952: 8b 45 f4 mov -0xc(%ebp),%eax 955: 8b 55 ec mov -0x14(%ebp),%edx 958: 89 50 04 mov %edx,0x4(%eax) } freep = prevp; 95b: 8b 45 f0 mov -0x10(%ebp),%eax 95e: a3 68 0c 00 00 mov %eax,0xc68 return (void*)(p + 1); 963: 8b 45 f4 mov -0xc(%ebp),%eax 966: 83 c0 08 add $0x8,%eax 969: eb 38 jmp 9a3 <malloc+0xde> } if(p == freep) 96b: a1 68 0c 00 00 mov 0xc68,%eax 970: 39 45 f4 cmp %eax,-0xc(%ebp) 973: 75 1b jne 990 <malloc+0xcb> if((p = morecore(nunits)) == 0) 975: 8b 45 ec mov -0x14(%ebp),%eax 978: 89 04 24 mov %eax,(%esp) 97b: e8 ed fe ff ff call 86d <morecore> 980: 89 45 f4 mov %eax,-0xc(%ebp) 983: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 987: 75 07 jne 990 <malloc+0xcb> return 0; 989: b8 00 00 00 00 mov $0x0,%eax 98e: eb 13 jmp 9a3 <malloc+0xde> nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 990: 8b 45 f4 mov -0xc(%ebp),%eax 993: 89 45 f0 mov %eax,-0x10(%ebp) 996: 8b 45 f4 mov -0xc(%ebp),%eax 999: 8b 00 mov (%eax),%eax 99b: 89 45 f4 mov %eax,-0xc(%ebp) return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } 99e: e9 70 ff ff ff jmp 913 <malloc+0x4e> } 9a3: c9 leave 9a4: c3 ret
34.169014
60
0.430295
4f22df3e9d132bfbdd919470ca348f84d84da9dc
7,388
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1346.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1346.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1346.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x2341, %r8 nop nop nop nop sub %rdi, %rdi vmovups (%r8), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $0, %xmm4, %r10 nop nop nop nop nop add %rbx, %rbx lea addresses_WC_ht+0x9ec1, %rsi lea addresses_WT_ht+0xbcdd, %rdi clflush (%rsi) nop nop nop dec %r9 mov $103, %rcx rep movsq nop nop add %r10, %r10 lea addresses_WT_ht+0x1ea61, %rsi nop nop nop nop nop sub $4808, %rbx mov $0x6162636465666768, %rcx movq %rcx, (%rsi) nop add $18820, %r10 lea addresses_WT_ht+0xcc1, %rsi lea addresses_WT_ht+0x1b301, %rdi clflush (%rsi) nop nop nop sub $14967, %r12 mov $89, %rcx rep movsq nop and %r12, %r12 lea addresses_normal_ht+0x58c1, %r8 nop nop nop nop nop add %rbx, %rbx vmovups (%r8), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $1, %xmm0, %r9 nop nop nop cmp %rcx, %rcx lea addresses_WT_ht+0x4645, %rcx nop nop nop nop xor $49264, %rsi mov (%rcx), %rbx nop nop xor %r10, %r10 lea addresses_normal_ht+0x7c69, %rsi lea addresses_UC_ht+0x4a41, %rdi nop nop xor %rbx, %rbx mov $17, %rcx rep movsw lfence lea addresses_A_ht+0x76c1, %rsi lea addresses_UC_ht+0x2cc1, %rdi nop inc %r10 mov $65, %rcx rep movsq nop nop nop add %r12, %r12 pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r8 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r14 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi // REPMOV lea addresses_PSE+0x2e81, %rsi lea addresses_D+0x1f741, %rdi clflush (%rdi) nop xor %r14, %r14 mov $54, %rcx rep movsq add $43312, %rcx // Store lea addresses_RW+0x21e1, %r14 nop nop nop nop nop cmp $44734, %rbx movw $0x5152, (%r14) nop nop nop nop add %rsi, %rsi // Store lea addresses_US+0x1f319, %rdi nop dec %rcx mov $0x5152535455565758, %r14 movq %r14, %xmm4 vmovups %ymm4, (%rdi) nop nop inc %rdi // Load mov $0x4c1, %r8 inc %r14 mov (%r8), %esi nop and $45191, %rcx // Store lea addresses_WT+0xca41, %r14 cmp $20789, %rdi movl $0x51525354, (%r14) // Exception!!! nop nop mov (0), %rbx nop nop nop nop nop inc %rsi // Faulty Load lea addresses_normal+0x1c4c1, %rcx nop nop nop and %rax, %rax mov (%rcx), %r8w lea oracles, %rbx and $0xff, %r8 shlq $12, %r8 mov (%rbx,%r8,1), %r8 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r8 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_normal', 'congruent': 0}} {'dst': {'same': False, 'congruent': 7, 'type': 'addresses_D'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_PSE'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_RW', 'congruent': 5}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_US', 'congruent': 2}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_P', 'congruent': 10}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WT', 'congruent': 5}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_normal', 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_D_ht', 'congruent': 1}} {'dst': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_WC_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WT_ht', 'congruent': 5}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 4, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_normal_ht', 'congruent': 9}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WT_ht', 'congruent': 0}} {'dst': {'same': False, 'congruent': 5, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_normal_ht'}} {'dst': {'same': False, 'congruent': 10, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_A_ht'}} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
32.982143
2,999
0.655522
73a2d92d15ed2782e18b8ca1ade9d1c94e415559
42,993
asm
Assembly
cat.asm
johnhhyang/os2
4a6108a836f08fb8e87b183683497ab299d235ba
[ "MIT-0" ]
null
null
null
cat.asm
johnhhyang/os2
4a6108a836f08fb8e87b183683497ab299d235ba
[ "MIT-0" ]
null
null
null
cat.asm
johnhhyang/os2
4a6108a836f08fb8e87b183683497ab299d235ba
[ "MIT-0" ]
null
null
null
_cat: file format elf32-i386 Disassembly of section .text: 00000000 <cat>: char buf[512]; void cat(int fd) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 28 sub $0x28,%esp int n; while((n = read(fd, buf, sizeof(buf))) > 0) 6: eb 1b jmp 23 <cat+0x23> write(1, buf, n); 8: 8b 45 f4 mov -0xc(%ebp),%eax b: 89 44 24 08 mov %eax,0x8(%esp) f: c7 44 24 04 a0 0b 00 movl $0xba0,0x4(%esp) 16: 00 17: c7 04 24 01 00 00 00 movl $0x1,(%esp) 1e: e8 71 03 00 00 call 394 <write> void cat(int fd) { int n; while((n = read(fd, buf, sizeof(buf))) > 0) 23: c7 44 24 08 00 02 00 movl $0x200,0x8(%esp) 2a: 00 2b: c7 44 24 04 a0 0b 00 movl $0xba0,0x4(%esp) 32: 00 33: 8b 45 08 mov 0x8(%ebp),%eax 36: 89 04 24 mov %eax,(%esp) 39: e8 4e 03 00 00 call 38c <read> 3e: 89 45 f4 mov %eax,-0xc(%ebp) 41: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 45: 7f c1 jg 8 <cat+0x8> write(1, buf, n); if(n < 0){ 47: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 4b: 79 19 jns 66 <cat+0x66> printf(1, "cat: read error\n"); 4d: c7 44 24 04 d0 08 00 movl $0x8d0,0x4(%esp) 54: 00 55: c7 04 24 01 00 00 00 movl $0x1,(%esp) 5c: e8 aa 04 00 00 call 50b <printf> exit(); 61: e8 0e 03 00 00 call 374 <exit> } } 66: c9 leave 67: c3 ret 00000068 <main>: int main(int argc, char *argv[]) { 68: 55 push %ebp 69: 89 e5 mov %esp,%ebp 6b: 83 e4 f0 and $0xfffffff0,%esp 6e: 83 ec 20 sub $0x20,%esp int fd, i; if(argc <= 1){ 71: 83 7d 08 01 cmpl $0x1,0x8(%ebp) 75: 7f 11 jg 88 <main+0x20> cat(0); 77: c7 04 24 00 00 00 00 movl $0x0,(%esp) 7e: e8 7d ff ff ff call 0 <cat> exit(); 83: e8 ec 02 00 00 call 374 <exit> } for(i = 1; i < argc; i++){ 88: c7 44 24 1c 01 00 00 movl $0x1,0x1c(%esp) 8f: 00 90: eb 6d jmp ff <main+0x97> if((fd = open(argv[i], 0)) < 0){ 92: 8b 44 24 1c mov 0x1c(%esp),%eax 96: c1 e0 02 shl $0x2,%eax 99: 03 45 0c add 0xc(%ebp),%eax 9c: 8b 00 mov (%eax),%eax 9e: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) a5: 00 a6: 89 04 24 mov %eax,(%esp) a9: e8 06 03 00 00 call 3b4 <open> ae: 89 44 24 18 mov %eax,0x18(%esp) b2: 83 7c 24 18 00 cmpl $0x0,0x18(%esp) b7: 79 29 jns e2 <main+0x7a> printf(1, "cat: cannot open %s\n", argv[i]); b9: 8b 44 24 1c mov 0x1c(%esp),%eax bd: c1 e0 02 shl $0x2,%eax c0: 03 45 0c add 0xc(%ebp),%eax c3: 8b 00 mov (%eax),%eax c5: 89 44 24 08 mov %eax,0x8(%esp) c9: c7 44 24 04 e1 08 00 movl $0x8e1,0x4(%esp) d0: 00 d1: c7 04 24 01 00 00 00 movl $0x1,(%esp) d8: e8 2e 04 00 00 call 50b <printf> exit(); dd: e8 92 02 00 00 call 374 <exit> } cat(fd); e2: 8b 44 24 18 mov 0x18(%esp),%eax e6: 89 04 24 mov %eax,(%esp) e9: e8 12 ff ff ff call 0 <cat> close(fd); ee: 8b 44 24 18 mov 0x18(%esp),%eax f2: 89 04 24 mov %eax,(%esp) f5: e8 a2 02 00 00 call 39c <close> if(argc <= 1){ cat(0); exit(); } for(i = 1; i < argc; i++){ fa: 83 44 24 1c 01 addl $0x1,0x1c(%esp) ff: 8b 44 24 1c mov 0x1c(%esp),%eax 103: 3b 45 08 cmp 0x8(%ebp),%eax 106: 7c 8a jl 92 <main+0x2a> exit(); } cat(fd); close(fd); } exit(); 108: e8 67 02 00 00 call 374 <exit> 10d: 90 nop 10e: 90 nop 10f: 90 nop 00000110 <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 110: 55 push %ebp 111: 89 e5 mov %esp,%ebp 113: 57 push %edi 114: 53 push %ebx asm volatile("cld; rep stosb" : 115: 8b 4d 08 mov 0x8(%ebp),%ecx 118: 8b 55 10 mov 0x10(%ebp),%edx 11b: 8b 45 0c mov 0xc(%ebp),%eax 11e: 89 cb mov %ecx,%ebx 120: 89 df mov %ebx,%edi 122: 89 d1 mov %edx,%ecx 124: fc cld 125: f3 aa rep stos %al,%es:(%edi) 127: 89 ca mov %ecx,%edx 129: 89 fb mov %edi,%ebx 12b: 89 5d 08 mov %ebx,0x8(%ebp) 12e: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 131: 5b pop %ebx 132: 5f pop %edi 133: 5d pop %ebp 134: c3 ret 00000135 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 135: 55 push %ebp 136: 89 e5 mov %esp,%ebp 138: 83 ec 10 sub $0x10,%esp char *os; os = s; 13b: 8b 45 08 mov 0x8(%ebp),%eax 13e: 89 45 fc mov %eax,-0x4(%ebp) while((*s++ = *t++) != 0) 141: 90 nop 142: 8b 45 0c mov 0xc(%ebp),%eax 145: 0f b6 10 movzbl (%eax),%edx 148: 8b 45 08 mov 0x8(%ebp),%eax 14b: 88 10 mov %dl,(%eax) 14d: 8b 45 08 mov 0x8(%ebp),%eax 150: 0f b6 00 movzbl (%eax),%eax 153: 84 c0 test %al,%al 155: 0f 95 c0 setne %al 158: 83 45 08 01 addl $0x1,0x8(%ebp) 15c: 83 45 0c 01 addl $0x1,0xc(%ebp) 160: 84 c0 test %al,%al 162: 75 de jne 142 <strcpy+0xd> ; return os; 164: 8b 45 fc mov -0x4(%ebp),%eax } 167: c9 leave 168: c3 ret 00000169 <strcmp>: int strcmp(const char *p, const char *q) { 169: 55 push %ebp 16a: 89 e5 mov %esp,%ebp while(*p && *p == *q) 16c: eb 08 jmp 176 <strcmp+0xd> p++, q++; 16e: 83 45 08 01 addl $0x1,0x8(%ebp) 172: 83 45 0c 01 addl $0x1,0xc(%ebp) } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 176: 8b 45 08 mov 0x8(%ebp),%eax 179: 0f b6 00 movzbl (%eax),%eax 17c: 84 c0 test %al,%al 17e: 74 10 je 190 <strcmp+0x27> 180: 8b 45 08 mov 0x8(%ebp),%eax 183: 0f b6 10 movzbl (%eax),%edx 186: 8b 45 0c mov 0xc(%ebp),%eax 189: 0f b6 00 movzbl (%eax),%eax 18c: 38 c2 cmp %al,%dl 18e: 74 de je 16e <strcmp+0x5> p++, q++; return (uchar)*p - (uchar)*q; 190: 8b 45 08 mov 0x8(%ebp),%eax 193: 0f b6 00 movzbl (%eax),%eax 196: 0f b6 d0 movzbl %al,%edx 199: 8b 45 0c mov 0xc(%ebp),%eax 19c: 0f b6 00 movzbl (%eax),%eax 19f: 0f b6 c0 movzbl %al,%eax 1a2: 89 d1 mov %edx,%ecx 1a4: 29 c1 sub %eax,%ecx 1a6: 89 c8 mov %ecx,%eax } 1a8: 5d pop %ebp 1a9: c3 ret 000001aa <strlen>: uint strlen(char *s) { 1aa: 55 push %ebp 1ab: 89 e5 mov %esp,%ebp 1ad: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 1b0: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 1b7: eb 04 jmp 1bd <strlen+0x13> 1b9: 83 45 fc 01 addl $0x1,-0x4(%ebp) 1bd: 8b 45 fc mov -0x4(%ebp),%eax 1c0: 03 45 08 add 0x8(%ebp),%eax 1c3: 0f b6 00 movzbl (%eax),%eax 1c6: 84 c0 test %al,%al 1c8: 75 ef jne 1b9 <strlen+0xf> ; return n; 1ca: 8b 45 fc mov -0x4(%ebp),%eax } 1cd: c9 leave 1ce: c3 ret 000001cf <memset>: void* memset(void *dst, int c, uint n) { 1cf: 55 push %ebp 1d0: 89 e5 mov %esp,%ebp 1d2: 83 ec 0c sub $0xc,%esp stosb(dst, c, n); 1d5: 8b 45 10 mov 0x10(%ebp),%eax 1d8: 89 44 24 08 mov %eax,0x8(%esp) 1dc: 8b 45 0c mov 0xc(%ebp),%eax 1df: 89 44 24 04 mov %eax,0x4(%esp) 1e3: 8b 45 08 mov 0x8(%ebp),%eax 1e6: 89 04 24 mov %eax,(%esp) 1e9: e8 22 ff ff ff call 110 <stosb> return dst; 1ee: 8b 45 08 mov 0x8(%ebp),%eax } 1f1: c9 leave 1f2: c3 ret 000001f3 <strchr>: char* strchr(const char *s, char c) { 1f3: 55 push %ebp 1f4: 89 e5 mov %esp,%ebp 1f6: 83 ec 04 sub $0x4,%esp 1f9: 8b 45 0c mov 0xc(%ebp),%eax 1fc: 88 45 fc mov %al,-0x4(%ebp) for(; *s; s++) 1ff: eb 14 jmp 215 <strchr+0x22> if(*s == c) 201: 8b 45 08 mov 0x8(%ebp),%eax 204: 0f b6 00 movzbl (%eax),%eax 207: 3a 45 fc cmp -0x4(%ebp),%al 20a: 75 05 jne 211 <strchr+0x1e> return (char*)s; 20c: 8b 45 08 mov 0x8(%ebp),%eax 20f: eb 13 jmp 224 <strchr+0x31> } char* strchr(const char *s, char c) { for(; *s; s++) 211: 83 45 08 01 addl $0x1,0x8(%ebp) 215: 8b 45 08 mov 0x8(%ebp),%eax 218: 0f b6 00 movzbl (%eax),%eax 21b: 84 c0 test %al,%al 21d: 75 e2 jne 201 <strchr+0xe> if(*s == c) return (char*)s; return 0; 21f: b8 00 00 00 00 mov $0x0,%eax } 224: c9 leave 225: c3 ret 00000226 <gets>: char* gets(char *buf, int max) { 226: 55 push %ebp 227: 89 e5 mov %esp,%ebp 229: 83 ec 28 sub $0x28,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 22c: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 233: eb 44 jmp 279 <gets+0x53> cc = read(0, &c, 1); 235: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 23c: 00 23d: 8d 45 ef lea -0x11(%ebp),%eax 240: 89 44 24 04 mov %eax,0x4(%esp) 244: c7 04 24 00 00 00 00 movl $0x0,(%esp) 24b: e8 3c 01 00 00 call 38c <read> 250: 89 45 f0 mov %eax,-0x10(%ebp) if(cc < 1) 253: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 257: 7e 2d jle 286 <gets+0x60> break; buf[i++] = c; 259: 8b 45 f4 mov -0xc(%ebp),%eax 25c: 03 45 08 add 0x8(%ebp),%eax 25f: 0f b6 55 ef movzbl -0x11(%ebp),%edx 263: 88 10 mov %dl,(%eax) 265: 83 45 f4 01 addl $0x1,-0xc(%ebp) if(c == '\n' || c == '\r') 269: 0f b6 45 ef movzbl -0x11(%ebp),%eax 26d: 3c 0a cmp $0xa,%al 26f: 74 16 je 287 <gets+0x61> 271: 0f b6 45 ef movzbl -0x11(%ebp),%eax 275: 3c 0d cmp $0xd,%al 277: 74 0e je 287 <gets+0x61> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 279: 8b 45 f4 mov -0xc(%ebp),%eax 27c: 83 c0 01 add $0x1,%eax 27f: 3b 45 0c cmp 0xc(%ebp),%eax 282: 7c b1 jl 235 <gets+0xf> 284: eb 01 jmp 287 <gets+0x61> cc = read(0, &c, 1); if(cc < 1) break; 286: 90 nop buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 287: 8b 45 f4 mov -0xc(%ebp),%eax 28a: 03 45 08 add 0x8(%ebp),%eax 28d: c6 00 00 movb $0x0,(%eax) return buf; 290: 8b 45 08 mov 0x8(%ebp),%eax } 293: c9 leave 294: c3 ret 00000295 <stat>: int stat(char *n, struct stat *st) { 295: 55 push %ebp 296: 89 e5 mov %esp,%ebp 298: 83 ec 28 sub $0x28,%esp int fd; int r; fd = open(n, O_RDONLY); 29b: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 2a2: 00 2a3: 8b 45 08 mov 0x8(%ebp),%eax 2a6: 89 04 24 mov %eax,(%esp) 2a9: e8 06 01 00 00 call 3b4 <open> 2ae: 89 45 f4 mov %eax,-0xc(%ebp) if(fd < 0) 2b1: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 2b5: 79 07 jns 2be <stat+0x29> return -1; 2b7: b8 ff ff ff ff mov $0xffffffff,%eax 2bc: eb 23 jmp 2e1 <stat+0x4c> r = fstat(fd, st); 2be: 8b 45 0c mov 0xc(%ebp),%eax 2c1: 89 44 24 04 mov %eax,0x4(%esp) 2c5: 8b 45 f4 mov -0xc(%ebp),%eax 2c8: 89 04 24 mov %eax,(%esp) 2cb: e8 fc 00 00 00 call 3cc <fstat> 2d0: 89 45 f0 mov %eax,-0x10(%ebp) close(fd); 2d3: 8b 45 f4 mov -0xc(%ebp),%eax 2d6: 89 04 24 mov %eax,(%esp) 2d9: e8 be 00 00 00 call 39c <close> return r; 2de: 8b 45 f0 mov -0x10(%ebp),%eax } 2e1: c9 leave 2e2: c3 ret 000002e3 <atoi>: int atoi(const char *s) { 2e3: 55 push %ebp 2e4: 89 e5 mov %esp,%ebp 2e6: 83 ec 10 sub $0x10,%esp int n; n = 0; 2e9: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while('0' <= *s && *s <= '9') 2f0: eb 23 jmp 315 <atoi+0x32> n = n*10 + *s++ - '0'; 2f2: 8b 55 fc mov -0x4(%ebp),%edx 2f5: 89 d0 mov %edx,%eax 2f7: c1 e0 02 shl $0x2,%eax 2fa: 01 d0 add %edx,%eax 2fc: 01 c0 add %eax,%eax 2fe: 89 c2 mov %eax,%edx 300: 8b 45 08 mov 0x8(%ebp),%eax 303: 0f b6 00 movzbl (%eax),%eax 306: 0f be c0 movsbl %al,%eax 309: 01 d0 add %edx,%eax 30b: 83 e8 30 sub $0x30,%eax 30e: 89 45 fc mov %eax,-0x4(%ebp) 311: 83 45 08 01 addl $0x1,0x8(%ebp) atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 315: 8b 45 08 mov 0x8(%ebp),%eax 318: 0f b6 00 movzbl (%eax),%eax 31b: 3c 2f cmp $0x2f,%al 31d: 7e 0a jle 329 <atoi+0x46> 31f: 8b 45 08 mov 0x8(%ebp),%eax 322: 0f b6 00 movzbl (%eax),%eax 325: 3c 39 cmp $0x39,%al 327: 7e c9 jle 2f2 <atoi+0xf> n = n*10 + *s++ - '0'; return n; 329: 8b 45 fc mov -0x4(%ebp),%eax } 32c: c9 leave 32d: c3 ret 0000032e <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 32e: 55 push %ebp 32f: 89 e5 mov %esp,%ebp 331: 83 ec 10 sub $0x10,%esp char *dst, *src; dst = vdst; 334: 8b 45 08 mov 0x8(%ebp),%eax 337: 89 45 fc mov %eax,-0x4(%ebp) src = vsrc; 33a: 8b 45 0c mov 0xc(%ebp),%eax 33d: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0) 340: eb 13 jmp 355 <memmove+0x27> *dst++ = *src++; 342: 8b 45 f8 mov -0x8(%ebp),%eax 345: 0f b6 10 movzbl (%eax),%edx 348: 8b 45 fc mov -0x4(%ebp),%eax 34b: 88 10 mov %dl,(%eax) 34d: 83 45 fc 01 addl $0x1,-0x4(%ebp) 351: 83 45 f8 01 addl $0x1,-0x8(%ebp) { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 355: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 359: 0f 9f c0 setg %al 35c: 83 6d 10 01 subl $0x1,0x10(%ebp) 360: 84 c0 test %al,%al 362: 75 de jne 342 <memmove+0x14> *dst++ = *src++; return vdst; 364: 8b 45 08 mov 0x8(%ebp),%eax } 367: c9 leave 368: c3 ret 369: 90 nop 36a: 90 nop 36b: 90 nop 0000036c <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 36c: b8 01 00 00 00 mov $0x1,%eax 371: cd 40 int $0x40 373: c3 ret 00000374 <exit>: SYSCALL(exit) 374: b8 02 00 00 00 mov $0x2,%eax 379: cd 40 int $0x40 37b: c3 ret 0000037c <wait>: SYSCALL(wait) 37c: b8 03 00 00 00 mov $0x3,%eax 381: cd 40 int $0x40 383: c3 ret 00000384 <pipe>: SYSCALL(pipe) 384: b8 04 00 00 00 mov $0x4,%eax 389: cd 40 int $0x40 38b: c3 ret 0000038c <read>: SYSCALL(read) 38c: b8 05 00 00 00 mov $0x5,%eax 391: cd 40 int $0x40 393: c3 ret 00000394 <write>: SYSCALL(write) 394: b8 10 00 00 00 mov $0x10,%eax 399: cd 40 int $0x40 39b: c3 ret 0000039c <close>: SYSCALL(close) 39c: b8 15 00 00 00 mov $0x15,%eax 3a1: cd 40 int $0x40 3a3: c3 ret 000003a4 <kill>: SYSCALL(kill) 3a4: b8 06 00 00 00 mov $0x6,%eax 3a9: cd 40 int $0x40 3ab: c3 ret 000003ac <exec>: SYSCALL(exec) 3ac: b8 07 00 00 00 mov $0x7,%eax 3b1: cd 40 int $0x40 3b3: c3 ret 000003b4 <open>: SYSCALL(open) 3b4: b8 0f 00 00 00 mov $0xf,%eax 3b9: cd 40 int $0x40 3bb: c3 ret 000003bc <mknod>: SYSCALL(mknod) 3bc: b8 11 00 00 00 mov $0x11,%eax 3c1: cd 40 int $0x40 3c3: c3 ret 000003c4 <unlink>: SYSCALL(unlink) 3c4: b8 12 00 00 00 mov $0x12,%eax 3c9: cd 40 int $0x40 3cb: c3 ret 000003cc <fstat>: SYSCALL(fstat) 3cc: b8 08 00 00 00 mov $0x8,%eax 3d1: cd 40 int $0x40 3d3: c3 ret 000003d4 <link>: SYSCALL(link) 3d4: b8 13 00 00 00 mov $0x13,%eax 3d9: cd 40 int $0x40 3db: c3 ret 000003dc <mkdir>: SYSCALL(mkdir) 3dc: b8 14 00 00 00 mov $0x14,%eax 3e1: cd 40 int $0x40 3e3: c3 ret 000003e4 <chdir>: SYSCALL(chdir) 3e4: b8 09 00 00 00 mov $0x9,%eax 3e9: cd 40 int $0x40 3eb: c3 ret 000003ec <dup>: SYSCALL(dup) 3ec: b8 0a 00 00 00 mov $0xa,%eax 3f1: cd 40 int $0x40 3f3: c3 ret 000003f4 <getpid>: SYSCALL(getpid) 3f4: b8 0b 00 00 00 mov $0xb,%eax 3f9: cd 40 int $0x40 3fb: c3 ret 000003fc <sbrk>: SYSCALL(sbrk) 3fc: b8 0c 00 00 00 mov $0xc,%eax 401: cd 40 int $0x40 403: c3 ret 00000404 <sleep>: SYSCALL(sleep) 404: b8 0d 00 00 00 mov $0xd,%eax 409: cd 40 int $0x40 40b: c3 ret 0000040c <uptime>: SYSCALL(uptime) 40c: b8 0e 00 00 00 mov $0xe,%eax 411: cd 40 int $0x40 413: c3 ret 00000414 <halt>: SYSCALL(halt) 414: b8 16 00 00 00 mov $0x16,%eax 419: cd 40 int $0x40 41b: c3 ret 0000041c <clone>: SYSCALL(clone) 41c: b8 19 00 00 00 mov $0x19,%eax 421: cd 40 int $0x40 423: c3 ret 00000424 <join>: SYSCALL(join) 424: b8 1a 00 00 00 mov $0x1a,%eax 429: cd 40 int $0x40 42b: c3 ret 0000042c <texit>: SYSCALL(texit) 42c: b8 1b 00 00 00 mov $0x1b,%eax 431: cd 40 int $0x40 433: c3 ret 00000434 <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 434: 55 push %ebp 435: 89 e5 mov %esp,%ebp 437: 83 ec 28 sub $0x28,%esp 43a: 8b 45 0c mov 0xc(%ebp),%eax 43d: 88 45 f4 mov %al,-0xc(%ebp) write(fd, &c, 1); 440: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 447: 00 448: 8d 45 f4 lea -0xc(%ebp),%eax 44b: 89 44 24 04 mov %eax,0x4(%esp) 44f: 8b 45 08 mov 0x8(%ebp),%eax 452: 89 04 24 mov %eax,(%esp) 455: e8 3a ff ff ff call 394 <write> } 45a: c9 leave 45b: c3 ret 0000045c <printint>: static void printint(int fd, int xx, int base, int sgn) { 45c: 55 push %ebp 45d: 89 e5 mov %esp,%ebp 45f: 83 ec 48 sub $0x48,%esp static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 462: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) if(sgn && xx < 0){ 469: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 46d: 74 17 je 486 <printint+0x2a> 46f: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 473: 79 11 jns 486 <printint+0x2a> neg = 1; 475: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) x = -xx; 47c: 8b 45 0c mov 0xc(%ebp),%eax 47f: f7 d8 neg %eax 481: 89 45 ec mov %eax,-0x14(%ebp) 484: eb 06 jmp 48c <printint+0x30> } else { x = xx; 486: 8b 45 0c mov 0xc(%ebp),%eax 489: 89 45 ec mov %eax,-0x14(%ebp) } i = 0; 48c: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; 493: 8b 4d 10 mov 0x10(%ebp),%ecx 496: 8b 45 ec mov -0x14(%ebp),%eax 499: ba 00 00 00 00 mov $0x0,%edx 49e: f7 f1 div %ecx 4a0: 89 d0 mov %edx,%eax 4a2: 0f b6 90 5c 0b 00 00 movzbl 0xb5c(%eax),%edx 4a9: 8d 45 dc lea -0x24(%ebp),%eax 4ac: 03 45 f4 add -0xc(%ebp),%eax 4af: 88 10 mov %dl,(%eax) 4b1: 83 45 f4 01 addl $0x1,-0xc(%ebp) }while((x /= base) != 0); 4b5: 8b 55 10 mov 0x10(%ebp),%edx 4b8: 89 55 d4 mov %edx,-0x2c(%ebp) 4bb: 8b 45 ec mov -0x14(%ebp),%eax 4be: ba 00 00 00 00 mov $0x0,%edx 4c3: f7 75 d4 divl -0x2c(%ebp) 4c6: 89 45 ec mov %eax,-0x14(%ebp) 4c9: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 4cd: 75 c4 jne 493 <printint+0x37> if(neg) 4cf: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 4d3: 74 2a je 4ff <printint+0xa3> buf[i++] = '-'; 4d5: 8d 45 dc lea -0x24(%ebp),%eax 4d8: 03 45 f4 add -0xc(%ebp),%eax 4db: c6 00 2d movb $0x2d,(%eax) 4de: 83 45 f4 01 addl $0x1,-0xc(%ebp) while(--i >= 0) 4e2: eb 1b jmp 4ff <printint+0xa3> putc(fd, buf[i]); 4e4: 8d 45 dc lea -0x24(%ebp),%eax 4e7: 03 45 f4 add -0xc(%ebp),%eax 4ea: 0f b6 00 movzbl (%eax),%eax 4ed: 0f be c0 movsbl %al,%eax 4f0: 89 44 24 04 mov %eax,0x4(%esp) 4f4: 8b 45 08 mov 0x8(%ebp),%eax 4f7: 89 04 24 mov %eax,(%esp) 4fa: e8 35 ff ff ff call 434 <putc> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 4ff: 83 6d f4 01 subl $0x1,-0xc(%ebp) 503: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 507: 79 db jns 4e4 <printint+0x88> putc(fd, buf[i]); } 509: c9 leave 50a: c3 ret 0000050b <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 50b: 55 push %ebp 50c: 89 e5 mov %esp,%ebp 50e: 83 ec 38 sub $0x38,%esp char *s; int c, i, state; uint *ap; state = 0; 511: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) ap = (uint*)(void*)&fmt + 1; 518: 8d 45 0c lea 0xc(%ebp),%eax 51b: 83 c0 04 add $0x4,%eax 51e: 89 45 e8 mov %eax,-0x18(%ebp) for(i = 0; fmt[i]; i++){ 521: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 528: e9 7d 01 00 00 jmp 6aa <printf+0x19f> c = fmt[i] & 0xff; 52d: 8b 55 0c mov 0xc(%ebp),%edx 530: 8b 45 f0 mov -0x10(%ebp),%eax 533: 01 d0 add %edx,%eax 535: 0f b6 00 movzbl (%eax),%eax 538: 0f be c0 movsbl %al,%eax 53b: 25 ff 00 00 00 and $0xff,%eax 540: 89 45 e4 mov %eax,-0x1c(%ebp) if(state == 0){ 543: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 547: 75 2c jne 575 <printf+0x6a> if(c == '%'){ 549: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 54d: 75 0c jne 55b <printf+0x50> state = '%'; 54f: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp) 556: e9 4b 01 00 00 jmp 6a6 <printf+0x19b> } else { putc(fd, c); 55b: 8b 45 e4 mov -0x1c(%ebp),%eax 55e: 0f be c0 movsbl %al,%eax 561: 89 44 24 04 mov %eax,0x4(%esp) 565: 8b 45 08 mov 0x8(%ebp),%eax 568: 89 04 24 mov %eax,(%esp) 56b: e8 c4 fe ff ff call 434 <putc> 570: e9 31 01 00 00 jmp 6a6 <printf+0x19b> } } else if(state == '%'){ 575: 83 7d ec 25 cmpl $0x25,-0x14(%ebp) 579: 0f 85 27 01 00 00 jne 6a6 <printf+0x19b> if(c == 'd'){ 57f: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp) 583: 75 2d jne 5b2 <printf+0xa7> printint(fd, *ap, 10, 1); 585: 8b 45 e8 mov -0x18(%ebp),%eax 588: 8b 00 mov (%eax),%eax 58a: c7 44 24 0c 01 00 00 movl $0x1,0xc(%esp) 591: 00 592: c7 44 24 08 0a 00 00 movl $0xa,0x8(%esp) 599: 00 59a: 89 44 24 04 mov %eax,0x4(%esp) 59e: 8b 45 08 mov 0x8(%ebp),%eax 5a1: 89 04 24 mov %eax,(%esp) 5a4: e8 b3 fe ff ff call 45c <printint> ap++; 5a9: 83 45 e8 04 addl $0x4,-0x18(%ebp) 5ad: e9 ed 00 00 00 jmp 69f <printf+0x194> } else if(c == 'x' || c == 'p'){ 5b2: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp) 5b6: 74 06 je 5be <printf+0xb3> 5b8: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp) 5bc: 75 2d jne 5eb <printf+0xe0> printint(fd, *ap, 16, 0); 5be: 8b 45 e8 mov -0x18(%ebp),%eax 5c1: 8b 00 mov (%eax),%eax 5c3: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp) 5ca: 00 5cb: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp) 5d2: 00 5d3: 89 44 24 04 mov %eax,0x4(%esp) 5d7: 8b 45 08 mov 0x8(%ebp),%eax 5da: 89 04 24 mov %eax,(%esp) 5dd: e8 7a fe ff ff call 45c <printint> ap++; 5e2: 83 45 e8 04 addl $0x4,-0x18(%ebp) 5e6: e9 b4 00 00 00 jmp 69f <printf+0x194> } else if(c == 's'){ 5eb: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp) 5ef: 75 46 jne 637 <printf+0x12c> s = (char*)*ap; 5f1: 8b 45 e8 mov -0x18(%ebp),%eax 5f4: 8b 00 mov (%eax),%eax 5f6: 89 45 f4 mov %eax,-0xc(%ebp) ap++; 5f9: 83 45 e8 04 addl $0x4,-0x18(%ebp) if(s == 0) 5fd: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 601: 75 27 jne 62a <printf+0x11f> s = "(null)"; 603: c7 45 f4 f6 08 00 00 movl $0x8f6,-0xc(%ebp) while(*s != 0){ 60a: eb 1e jmp 62a <printf+0x11f> putc(fd, *s); 60c: 8b 45 f4 mov -0xc(%ebp),%eax 60f: 0f b6 00 movzbl (%eax),%eax 612: 0f be c0 movsbl %al,%eax 615: 89 44 24 04 mov %eax,0x4(%esp) 619: 8b 45 08 mov 0x8(%ebp),%eax 61c: 89 04 24 mov %eax,(%esp) 61f: e8 10 fe ff ff call 434 <putc> s++; 624: 83 45 f4 01 addl $0x1,-0xc(%ebp) 628: eb 01 jmp 62b <printf+0x120> } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 62a: 90 nop 62b: 8b 45 f4 mov -0xc(%ebp),%eax 62e: 0f b6 00 movzbl (%eax),%eax 631: 84 c0 test %al,%al 633: 75 d7 jne 60c <printf+0x101> 635: eb 68 jmp 69f <printf+0x194> putc(fd, *s); s++; } } else if(c == 'c'){ 637: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp) 63b: 75 1d jne 65a <printf+0x14f> putc(fd, *ap); 63d: 8b 45 e8 mov -0x18(%ebp),%eax 640: 8b 00 mov (%eax),%eax 642: 0f be c0 movsbl %al,%eax 645: 89 44 24 04 mov %eax,0x4(%esp) 649: 8b 45 08 mov 0x8(%ebp),%eax 64c: 89 04 24 mov %eax,(%esp) 64f: e8 e0 fd ff ff call 434 <putc> ap++; 654: 83 45 e8 04 addl $0x4,-0x18(%ebp) 658: eb 45 jmp 69f <printf+0x194> } else if(c == '%'){ 65a: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 65e: 75 17 jne 677 <printf+0x16c> putc(fd, c); 660: 8b 45 e4 mov -0x1c(%ebp),%eax 663: 0f be c0 movsbl %al,%eax 666: 89 44 24 04 mov %eax,0x4(%esp) 66a: 8b 45 08 mov 0x8(%ebp),%eax 66d: 89 04 24 mov %eax,(%esp) 670: e8 bf fd ff ff call 434 <putc> 675: eb 28 jmp 69f <printf+0x194> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 677: c7 44 24 04 25 00 00 movl $0x25,0x4(%esp) 67e: 00 67f: 8b 45 08 mov 0x8(%ebp),%eax 682: 89 04 24 mov %eax,(%esp) 685: e8 aa fd ff ff call 434 <putc> putc(fd, c); 68a: 8b 45 e4 mov -0x1c(%ebp),%eax 68d: 0f be c0 movsbl %al,%eax 690: 89 44 24 04 mov %eax,0x4(%esp) 694: 8b 45 08 mov 0x8(%ebp),%eax 697: 89 04 24 mov %eax,(%esp) 69a: e8 95 fd ff ff call 434 <putc> } state = 0; 69f: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 6a6: 83 45 f0 01 addl $0x1,-0x10(%ebp) 6aa: 8b 55 0c mov 0xc(%ebp),%edx 6ad: 8b 45 f0 mov -0x10(%ebp),%eax 6b0: 01 d0 add %edx,%eax 6b2: 0f b6 00 movzbl (%eax),%eax 6b5: 84 c0 test %al,%al 6b7: 0f 85 70 fe ff ff jne 52d <printf+0x22> putc(fd, c); } state = 0; } } } 6bd: c9 leave 6be: c3 ret 6bf: 90 nop 000006c0 <free>: static Header base; static Header *freep; void free(void *ap) { 6c0: 55 push %ebp 6c1: 89 e5 mov %esp,%ebp 6c3: 83 ec 10 sub $0x10,%esp Header *bp, *p; bp = (Header*)ap - 1; 6c6: 8b 45 08 mov 0x8(%ebp),%eax 6c9: 83 e8 08 sub $0x8,%eax 6cc: 89 45 f8 mov %eax,-0x8(%ebp) for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 6cf: a1 88 0b 00 00 mov 0xb88,%eax 6d4: 89 45 fc mov %eax,-0x4(%ebp) 6d7: eb 24 jmp 6fd <free+0x3d> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 6d9: 8b 45 fc mov -0x4(%ebp),%eax 6dc: 8b 00 mov (%eax),%eax 6de: 3b 45 fc cmp -0x4(%ebp),%eax 6e1: 77 12 ja 6f5 <free+0x35> 6e3: 8b 45 f8 mov -0x8(%ebp),%eax 6e6: 3b 45 fc cmp -0x4(%ebp),%eax 6e9: 77 24 ja 70f <free+0x4f> 6eb: 8b 45 fc mov -0x4(%ebp),%eax 6ee: 8b 00 mov (%eax),%eax 6f0: 3b 45 f8 cmp -0x8(%ebp),%eax 6f3: 77 1a ja 70f <free+0x4f> free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 6f5: 8b 45 fc mov -0x4(%ebp),%eax 6f8: 8b 00 mov (%eax),%eax 6fa: 89 45 fc mov %eax,-0x4(%ebp) 6fd: 8b 45 f8 mov -0x8(%ebp),%eax 700: 3b 45 fc cmp -0x4(%ebp),%eax 703: 76 d4 jbe 6d9 <free+0x19> 705: 8b 45 fc mov -0x4(%ebp),%eax 708: 8b 00 mov (%eax),%eax 70a: 3b 45 f8 cmp -0x8(%ebp),%eax 70d: 76 ca jbe 6d9 <free+0x19> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ 70f: 8b 45 f8 mov -0x8(%ebp),%eax 712: 8b 40 04 mov 0x4(%eax),%eax 715: c1 e0 03 shl $0x3,%eax 718: 89 c2 mov %eax,%edx 71a: 03 55 f8 add -0x8(%ebp),%edx 71d: 8b 45 fc mov -0x4(%ebp),%eax 720: 8b 00 mov (%eax),%eax 722: 39 c2 cmp %eax,%edx 724: 75 24 jne 74a <free+0x8a> bp->s.size += p->s.ptr->s.size; 726: 8b 45 f8 mov -0x8(%ebp),%eax 729: 8b 50 04 mov 0x4(%eax),%edx 72c: 8b 45 fc mov -0x4(%ebp),%eax 72f: 8b 00 mov (%eax),%eax 731: 8b 40 04 mov 0x4(%eax),%eax 734: 01 c2 add %eax,%edx 736: 8b 45 f8 mov -0x8(%ebp),%eax 739: 89 50 04 mov %edx,0x4(%eax) bp->s.ptr = p->s.ptr->s.ptr; 73c: 8b 45 fc mov -0x4(%ebp),%eax 73f: 8b 00 mov (%eax),%eax 741: 8b 10 mov (%eax),%edx 743: 8b 45 f8 mov -0x8(%ebp),%eax 746: 89 10 mov %edx,(%eax) 748: eb 0a jmp 754 <free+0x94> } else bp->s.ptr = p->s.ptr; 74a: 8b 45 fc mov -0x4(%ebp),%eax 74d: 8b 10 mov (%eax),%edx 74f: 8b 45 f8 mov -0x8(%ebp),%eax 752: 89 10 mov %edx,(%eax) if(p + p->s.size == bp){ 754: 8b 45 fc mov -0x4(%ebp),%eax 757: 8b 40 04 mov 0x4(%eax),%eax 75a: c1 e0 03 shl $0x3,%eax 75d: 03 45 fc add -0x4(%ebp),%eax 760: 3b 45 f8 cmp -0x8(%ebp),%eax 763: 75 20 jne 785 <free+0xc5> p->s.size += bp->s.size; 765: 8b 45 fc mov -0x4(%ebp),%eax 768: 8b 50 04 mov 0x4(%eax),%edx 76b: 8b 45 f8 mov -0x8(%ebp),%eax 76e: 8b 40 04 mov 0x4(%eax),%eax 771: 01 c2 add %eax,%edx 773: 8b 45 fc mov -0x4(%ebp),%eax 776: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 779: 8b 45 f8 mov -0x8(%ebp),%eax 77c: 8b 10 mov (%eax),%edx 77e: 8b 45 fc mov -0x4(%ebp),%eax 781: 89 10 mov %edx,(%eax) 783: eb 08 jmp 78d <free+0xcd> } else p->s.ptr = bp; 785: 8b 45 fc mov -0x4(%ebp),%eax 788: 8b 55 f8 mov -0x8(%ebp),%edx 78b: 89 10 mov %edx,(%eax) freep = p; 78d: 8b 45 fc mov -0x4(%ebp),%eax 790: a3 88 0b 00 00 mov %eax,0xb88 } 795: c9 leave 796: c3 ret 00000797 <morecore>: static Header* morecore(uint nu) { 797: 55 push %ebp 798: 89 e5 mov %esp,%ebp 79a: 83 ec 28 sub $0x28,%esp char *p; Header *hp; if(nu < 4096) 79d: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp) 7a4: 77 07 ja 7ad <morecore+0x16> nu = 4096; 7a6: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp) p = sbrk(nu * sizeof(Header)); 7ad: 8b 45 08 mov 0x8(%ebp),%eax 7b0: c1 e0 03 shl $0x3,%eax 7b3: 89 04 24 mov %eax,(%esp) 7b6: e8 41 fc ff ff call 3fc <sbrk> 7bb: 89 45 f4 mov %eax,-0xc(%ebp) if(p == (char*)-1) 7be: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp) 7c2: 75 07 jne 7cb <morecore+0x34> return 0; 7c4: b8 00 00 00 00 mov $0x0,%eax 7c9: eb 22 jmp 7ed <morecore+0x56> hp = (Header*)p; 7cb: 8b 45 f4 mov -0xc(%ebp),%eax 7ce: 89 45 f0 mov %eax,-0x10(%ebp) hp->s.size = nu; 7d1: 8b 45 f0 mov -0x10(%ebp),%eax 7d4: 8b 55 08 mov 0x8(%ebp),%edx 7d7: 89 50 04 mov %edx,0x4(%eax) free((void*)(hp + 1)); 7da: 8b 45 f0 mov -0x10(%ebp),%eax 7dd: 83 c0 08 add $0x8,%eax 7e0: 89 04 24 mov %eax,(%esp) 7e3: e8 d8 fe ff ff call 6c0 <free> return freep; 7e8: a1 88 0b 00 00 mov 0xb88,%eax } 7ed: c9 leave 7ee: c3 ret 000007ef <malloc>: void* malloc(uint nbytes) { 7ef: 55 push %ebp 7f0: 89 e5 mov %esp,%ebp 7f2: 83 ec 28 sub $0x28,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 7f5: 8b 45 08 mov 0x8(%ebp),%eax 7f8: 83 c0 07 add $0x7,%eax 7fb: c1 e8 03 shr $0x3,%eax 7fe: 83 c0 01 add $0x1,%eax 801: 89 45 ec mov %eax,-0x14(%ebp) if((prevp = freep) == 0){ 804: a1 88 0b 00 00 mov 0xb88,%eax 809: 89 45 f0 mov %eax,-0x10(%ebp) 80c: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 810: 75 23 jne 835 <malloc+0x46> base.s.ptr = freep = prevp = &base; 812: c7 45 f0 80 0b 00 00 movl $0xb80,-0x10(%ebp) 819: 8b 45 f0 mov -0x10(%ebp),%eax 81c: a3 88 0b 00 00 mov %eax,0xb88 821: a1 88 0b 00 00 mov 0xb88,%eax 826: a3 80 0b 00 00 mov %eax,0xb80 base.s.size = 0; 82b: c7 05 84 0b 00 00 00 movl $0x0,0xb84 832: 00 00 00 } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 835: 8b 45 f0 mov -0x10(%ebp),%eax 838: 8b 00 mov (%eax),%eax 83a: 89 45 f4 mov %eax,-0xc(%ebp) if(p->s.size >= nunits){ 83d: 8b 45 f4 mov -0xc(%ebp),%eax 840: 8b 40 04 mov 0x4(%eax),%eax 843: 3b 45 ec cmp -0x14(%ebp),%eax 846: 72 4d jb 895 <malloc+0xa6> if(p->s.size == nunits) 848: 8b 45 f4 mov -0xc(%ebp),%eax 84b: 8b 40 04 mov 0x4(%eax),%eax 84e: 3b 45 ec cmp -0x14(%ebp),%eax 851: 75 0c jne 85f <malloc+0x70> prevp->s.ptr = p->s.ptr; 853: 8b 45 f4 mov -0xc(%ebp),%eax 856: 8b 10 mov (%eax),%edx 858: 8b 45 f0 mov -0x10(%ebp),%eax 85b: 89 10 mov %edx,(%eax) 85d: eb 26 jmp 885 <malloc+0x96> else { p->s.size -= nunits; 85f: 8b 45 f4 mov -0xc(%ebp),%eax 862: 8b 40 04 mov 0x4(%eax),%eax 865: 89 c2 mov %eax,%edx 867: 2b 55 ec sub -0x14(%ebp),%edx 86a: 8b 45 f4 mov -0xc(%ebp),%eax 86d: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; 870: 8b 45 f4 mov -0xc(%ebp),%eax 873: 8b 40 04 mov 0x4(%eax),%eax 876: c1 e0 03 shl $0x3,%eax 879: 01 45 f4 add %eax,-0xc(%ebp) p->s.size = nunits; 87c: 8b 45 f4 mov -0xc(%ebp),%eax 87f: 8b 55 ec mov -0x14(%ebp),%edx 882: 89 50 04 mov %edx,0x4(%eax) } freep = prevp; 885: 8b 45 f0 mov -0x10(%ebp),%eax 888: a3 88 0b 00 00 mov %eax,0xb88 return (void*)(p + 1); 88d: 8b 45 f4 mov -0xc(%ebp),%eax 890: 83 c0 08 add $0x8,%eax 893: eb 38 jmp 8cd <malloc+0xde> } if(p == freep) 895: a1 88 0b 00 00 mov 0xb88,%eax 89a: 39 45 f4 cmp %eax,-0xc(%ebp) 89d: 75 1b jne 8ba <malloc+0xcb> if((p = morecore(nunits)) == 0) 89f: 8b 45 ec mov -0x14(%ebp),%eax 8a2: 89 04 24 mov %eax,(%esp) 8a5: e8 ed fe ff ff call 797 <morecore> 8aa: 89 45 f4 mov %eax,-0xc(%ebp) 8ad: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8b1: 75 07 jne 8ba <malloc+0xcb> return 0; 8b3: b8 00 00 00 00 mov $0x0,%eax 8b8: eb 13 jmp 8cd <malloc+0xde> nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 8ba: 8b 45 f4 mov -0xc(%ebp),%eax 8bd: 89 45 f0 mov %eax,-0x10(%ebp) 8c0: 8b 45 f4 mov -0xc(%ebp),%eax 8c3: 8b 00 mov (%eax),%eax 8c5: 89 45 f4 mov %eax,-0xc(%ebp) return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } 8c8: e9 70 ff ff ff jmp 83d <malloc+0x4e> } 8cd: c9 leave 8ce: c3 ret 8cf: 90 nop
33.535881
60
0.428186
a1329e22291a28b99e3c5e7b61e415749ed6c898
430
asm
Assembly
programs/oeis/341/A341356.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/341/A341356.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/341/A341356.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A341356: The most significant digit in A097801-base. ; Coded manually 2021-03-29 by Antti Karttunen, https://github.com/karttu ; 0,1,1,1,2,2,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3 mov $2,2 mov $3,3 lpb $0 mov $1,$0 div $0,$2 mov $2,$3 add $3,2 lpe mov $0,$1
30.714286
213
0.576744
426ccc8b0df5c6859ada124fe40294d4c3b7e6e7
1,419
asm
Assembly
04/mult/Mult.asm
JurajX/Nand2Tetris
56c4b68c6bd0f713223fb1a944b6e0e633f14a4f
[ "Unlicense" ]
null
null
null
04/mult/Mult.asm
JurajX/Nand2Tetris
56c4b68c6bd0f713223fb1a944b6e0e633f14a4f
[ "Unlicense" ]
null
null
null
04/mult/Mult.asm
JurajX/Nand2Tetris
56c4b68c6bd0f713223fb1a944b6e0e633f14a4f
[ "Unlicense" ]
null
null
null
// 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. @i M=0 @R2 // this will be used as sum variable M=0 @R0 D=M // D=R0 @R1 D=D-M // D=R0-R1 @R0_GE_R1 D;JGE // If R0 >= R1, go to R0_GE_R1 @R0_LT_R1 D;JLT // If R0 < R1, go to R0_LT_R1 // use the smaller number (R1) for number of loops // and the bigger (R0) for number of loops (R0_GE_R1) @R0 D=M @summand M=D // add = R0 @R1 D=M @n M=D // n = R1 @LOOP 0;JMP // use the smaller number (R0) for number of loops // and the bigger (R1) for number of loops (R0_LT_R1) @R1 D=M @summand M=D // add = R1 @R0 D=M @n M=D // n = R0 @LOOP 0;JMP (LOOP) // check if to terminate the loop @i D=M // D=i @n D=D-M // D=i-n @END D;JEQ // If (i-n)>0 goto END // R2 = R2 + summand @summand D=M @R2 M=D+M // increment i @i M=M+1 // i=i+1 // repeat the loop @LOOP 0;JMP // Goto LOOP (END) @END 0;JMP
17.096386
66
0.486963
80359fc809a3a6852afb1f420d0733eba78f4171
25,784
asm
Assembly
iod/qsound/main.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
iod/qsound/main.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
iod/qsound/main.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; AY-sound chip API and BASIC commands 3.00  2020 Jochen Merz and Marcel Kilgus ; ; Mostly QSOUND compatible where possible, but supports multiple chips. ; Actual hardware access is implemented in separate file. section qsound include 'dev8_keys_qdos_sms' include 'dev8_keys_sys' include 'dev8_keys_err' include 'dev8_keys_qlv' include 'dev8_keys_sbasic' include 'dev8_mac_proc' include 'dev8_iod_qsound_keys' xdef qsound_base xdef qsound.vers xref qsound_drv_init xref ay_hw_setup xref ay_hw_wrreg xref ay_hw_wrall xref ay_hw_type xref ay_hw_freq xref ay_hw_stereo xref ay_hw_volume cmd.count equ 15 qsound.vers equ '3.00' qsound_base lea proc_def,a1 move.w sb.inipr,a2 jsr (a2) bsr.s start jsr qsound_drv_init moveq #0,d0 rts start movem.l a0/a3,-(sp) moveq #sms.info,d0 trap #1 move.l a0,a4 ; Allocate data block move.l #qs_size,d1 moveq #-1,d2 moveq #sms.achp,d0 trap #1 tst.l d0 bne.s start_end move.l a0,sys_qsound(a4) move.l a0,a3 ; QSound data block ; Originally there were sv_aybas and sv_ayjmp, with aybas being the data ; block and ayjmp the code entry. sv_ayjmp has been reserved as sys_qsound ; for a long time, but sv_aybas is apparently also used by Turbo! So the ; new way is to have the data block under sv_ayjmp/sys_qsound and have it start ; with a JMP to the real entry lea mc_entry,a1 ; Construct JMP to real mc_entry move.w #$4ef9,(a3) move.l a1,2(a3) bsr ay_hw_setup bsr ay_reset move.l sys_qsound(a4),a0 ; Link in poll lea int_serve,a1 move.l a1,qs_plad(a0) lea qs_pllk(a0),a0 moveq #sms.lpol,d0 trap #1 ;;; lea gong_tab,a1 ;;; bsr ay_wrall start_end movem.l (sp)+,a0/a3 rts error_ok moveq #0,d0 rts error_bp moveq #err.ipar,d0 rts error_nc moveq #err.nc,d0 rts error_or moveq #err.orng,d0 rts error_om moveq #err.imem,d0 rts error_nimp moveq #err.nimp,d0 rts error_no moveq #err.ichn,d0 rts ; Write d1.b into register d2.b (MC entry) ay_wrreg lea qs_regs_0(a3),a5 ; Chip 0 move.b d2,d0 andi.b #$f,d2 lsr.b #4,d0 beq.s ay_wrreg0 cmp.b qs_chip_count(a3),d0 bcc.s error_or lea qs_regs_1(a3),a5 ; Chip 1 bra.s ay_wrregx ay_wrreg0 cmpi.b #7,d2 bne.s ay_wrregx ; For QSound we need to make sure the I/O ori.b #$c0,d1 ; port of chip 0 is always output (for PAR port) ay_wrregx cmpi.w #13,d2 bhi.s error_or ; Write d1.b into register d2.b, a5 = ptr to chip registers write_reg move.b d1,(a5,d2.w) ; Save in register cache bra ay_hw_wrreg ; Write to h/w ay_rdreg lea qs_regs_0(a3),a5 ; Chip 0 move.b d2,d0 andi.b #$f,d2 lsr.b #4,d0 beq.s ay_rdreg0 cmp.b qs_chip_count(a3),d0 bcc.s error_or lea qs_regs_1(a3),a5 ; Chip 1 ay_rdreg0 cmpi.w #13,d2 bhi.s error_or ; Read the value from register d2.b to d1.b (actually just read cache) ; a5 = ptr to chip registers read_reg moveq #0,d1 move.b (a5,d2.w),d1 moveq #0,d0 rts ; MC entry point mc_entry cmpi.l #cmd.count,d0 bhi error_nc movem.l a3-a4,-(sp) lsl.w #1,d0 lea mc_table,a5 adda.w d0,a5 move.w (a5),a5 lea qsound_base,a4 adda.l a4,a5 bsr.s get_aybas ; Get data block in a3 jsr (a5) movem.l (sp)+,a3-a4 rts ; Get QSound data block in a3 get_aybas movem.l d0-d2/a0,-(sp) moveq #sms.info,d0 trap #1 move.l sys_qsound(a0),a3 movem.l (sp)+,d0-d2/a0 rts ; Free all sound queues free_sound_queues movem.l d5-d7,-(sp) moveq #0,d5 moveq #0,d6 move.b qs_chan_count(a3),d7 free_queue_loop move.l qs_mem(a3,d6.w),d0 beq.s free_next_queue move.l d0,a0 sf qs_act(a3,d5.w) clr.l qs_mem(a3,d6.w) move.l a3,-(sp) moveq #sms.rchp,d0 trap #1 move.l (sp)+,a3 free_next_queue addq.w #4,d6 addq.b #1,d5 cmp.b d5,d7 bne.s free_queue_loop movem.l (sp)+,d5-d7 rts ; Reset AY chip ay_reset move.l d1,-(sp) bsr.s get_aybas bsr.s free_sound_queues lea quiet_tab,a1 moveq #0,d2 ; Chip 0 bsr.s ay_wrall cmp.b #1,qs_chip_count(a3) bne.s ay_reset_end lea quiet_tab,a1 moveq #1,d2 ; Chip 1 bsr.s ay_wrall ay_reset_end move.l (sp)+,d1 moveq #0,d0 rts ; Write 14 bytes block pointed to by a1 into registers 0..13 of AY ; Chip number in d2 ay_wrall cmp.b qs_chip_count(a3),d2 bcc error_bp lea qs_regs_0(a3),a5 tst.b d2 beq.s write_it_all lea qs_regs_1(a3),a5 ; d2 = chip (0/1), a5 = ptr to chip registers write_it_all move.l (a1)+,(a5) move.l (a1)+,4(a5) move.l (a1)+,8(a5) move.w (a1)+,12(a5) tst.b d2 bne.s write_all_1 or.b #$c0,7(a5) ; Keep I/O ports as output (chip 0 only) write_all_1 bra ay_hw_wrall ; Read all 14 registers (in reality gets them from cache) ay_rdall cmp.b qs_chip_count(a3),d2 bcc error_bp lea qs_regs_0(a3),a5 tst.b d2 beq.s read_it_all lea qs_regs_1(a3),a5 read_it_all move.l (a5)+,(a1)+ move.l (a5)+,(a1)+ move.l (a5)+,(a1)+ move.w (a5)+,(a1)+ moveq #0,d0 rts ; Make some noise ay_noise lea explode_tab,a1 andi.w #$ff,d1 cmpi.w #2,d1 bhi error_bp mulu #14,d1 adda.w d1,a1 bra ay_wrall ****************** * Poll interrupt * ****************** int_serve movem.l d0-d7/a0-a6,-(sp) bsr out_sound_queue movem.l (sp)+,d0-d7/a0-a6 rts ********************** * Basic - extensions * ********************** ; POKE_AY (chip),r,v ; ; Set register r (0..13) to v (0..255) of chip (0..1) poke_ay move.w sb.gtint,a2 jsr (a2) bsr get_aybas moveq #0,d2 ; Default to chip 0 subq.w #2,d3 beq.s poke_it subq.w #1,d3 bne error_bp move.w 0(a6,a1.l),d2 ; Chip number addq.l #2,a1 lsl.b #4,d2 poke_it or.w 0(a6,a1.l),d2 ; Add register number move.w 2(a6,a1.l),d1 bra ay_wrreg ; LIST_AY (chip),r0,r1,r2,r3..,r13 ; ; Set all registers at once list_ay move.w sb.gtint,a2 jsr (a2) bsr get_aybas moveq #0,d2 ; Default to chip 0 sub.w #14,d3 beq.s list_it subq.w #1,d3 bne error_bp move.w 0(a6,a1.l),d2 ; Chip number list_it move.l sp,a2 suba.w #14,sp move.l sp,a0 list_ay_loop move.w (a6,a1.l),d0 ; Word array to byte array move.b d0,(a0)+ addq.w #2,a1 cmpa.l a0,a2 bne.s list_ay_loop move.l sp,a1 bsr ay_wrall ; Now write all registers adda.w #14,sp rts ; v = PEEK_AY((chip), r) ; ; Return contents of register r (0..13) peek_ay move.w sb.gtint,a2 jsr (a2) bsr get_aybas moveq #0,d2 ; Default to chip 0 subq.w #1,d3 beq.s peek_it subq.w #1,d3 bne error_bp move.w 0(a6,a1.l),d2 ; Chip number lsl.b #4,d2 addq.l #2,a1 peek_it or.w (a6,a1.l),d2 bsr ay_rdreg tst.l d0 bne.s peek_rts move.w d1,(a6,a1.l) moveq #3,d4 moveq #0,d0 peek_rts rts ; BELL bell lea bell_tab,a1 bsr get_aybas bra ay_wrall ; EXPLODE explode lea explode_tab,a1 bsr get_aybas bra ay_wrall ; SHOOT shoot lea shoot_tab,a1 bsr get_aybas bra ay_wrall *********************************** * Indexes into int_tab jump table * *********************************** set_period equ 0 set_volume equ 1 set_noise equ 2 set_len equ 3 set_susp equ 4 set_rel equ 5 set_n_per equ 6 set_wave equ 7 set_w_len equ 8 ; mc_play ; ; d1.b = channel number 1..6 ; a0 = pointer to string ay_play move.l a0,a1 suba.l a6,a1 move.w d1,d7 bra.s play_all ; PLAY channel, string play suba.l a3,a5 cmpa.l #16,a5 ; Must be two parametrs bne error_bp lea 8(a3),a5 movem.l a3/a5,-(sp) move.w sb.gtint,a2 ; Get channel number jsr (a2) movem.l (sp)+,a3/a5 tst.l d0 bne error_bp moveq #0,d7 move.w 0(a6,a1.l),d7 lea 8(a3),a3 lea 8(a3),a5 move.w sb.gtstr,a2 ; Play string jsr (a2) tst.w d0 bne error_bp ; d7 = channel 1..3 play_all bsr get_aybas tst.w d7 beq error_bp andi.w #$ff,d7 cmp.b qs_chan_count(a3),d7 bhi error_bp subq.w #1,d7 ; d7 = channel 0..5 moveq #0,d6 move.w (a6,a1.l),d6 ; String length tst.w d6 beq error_bp lea qs_act(a3),a2 sf (a2,d7.w) ; Disable channel move.l a1,a4 ; Pointer to string ; a4 = pointer to string lea qs_mem(a3),a2 moveq #0,d1 move.b d7,d1 lsl.w #2,d1 move.l (a2,d1.w),a0 move.l a0,d0 bne play_start_loop ; already a queue? -> append ; Setup a new queue move.l a3,-(sp) move.l #4096,d1 moveq #-1,d2 moveq #sms.achp,d0 trap #1 move.l (sp)+,a3 tst.l d0 bne error_om move.l a0,a1 move.w #1023,d1 play_new_loop clr.l (a1)+ dbra d1,play_new_loop ; clear move.l a3,-(sp) move.l a0,a2 move.l #4096,d1 move.w ioq.setq,a1 ; setup queue jsr (a1) ; Put in commands to set default values move.w ioq.pbyt,a1 moveq #set_volume,d1 jsr (a1) moveq #0,d1 ; volume = 0 jsr (a1) moveq #set_noise,d1 jsr (a1) moveq #0,d1 ; noise = 0 jsr (a1) moveq #set_n_per,d1 jsr (a1) moveq #0,d1 ; noise period = 0 jsr (a1) moveq #set_wave,d1 jsr (a1) moveq #0,d1 ; wave = 0 jsr (a1) moveq #set_w_len,d1 jsr (a1) moveq #0,d1 ; wave_length = 0 jsr (a1) moveq #0,d1 jsr (a1) move.l (sp)+,a3 move.b #4,qs_okt(a3,d7.w) ; octave = 4 move.b #5,qs_len(a3,d7.w) ; len = 5 lea qs_mem(a3),a2 moveq #0,d1 move.b d7,d1 lsl.w #2,d1 move.l a0,(a2,d1.w) ; play queue for this channel ; d6 = string size ; a0 = play queue ; a4 = pointer to string (rel a6) play_start_loop lea play_end,a2 ; Jump to here on exit move.l a2,-(sp) move.l a0,qs_work_queue(a3) addq.w #1,d6 ; just so we can subtract it again adda.l #2,a4 ; skip size play_loop moveq #0,d0 subq.w #1,d6 beq play_rts moveq #0,d1 move.b (a6,a4.l),d1 ; get next char addq.l #1,a4 move.w d1,d2 sub.w #32,d1 ; table is based on ' ' char bcs error_bp cmp.w #96,d1 ; 96 table entries bhi error_bp lea cmd_table,a0 move.b (a0,d1.w),d1 andi.w #$0f,d1 lsl.w #1,d1 lea jump_table,a0 adda.w d1,a0 adda.w (a0),a0 jsr (a0) ; jump to handler tst.w d0 bne.s play_rts bra.s play_loop ; Error in handler, skip returning to play_loop play_error adda.l #4,sp bra error_bp ; Lower case note play_note_kl sub.b #32,d2 ; 'a' -> 'A' ; Upper case note play_note sub.b #'A',d2 lea note_tab,a1 andi.w #$f,d2 lsl.w #1,d2 ; note offsets move.w (a1,d2.w),d1 lea oktave_0,a1 moveq #0,d2 lea qs_okt(a3),a2 move.b (a2,d7.w),d2 mulu #24,d2 ; multiply adda.w d2,a1 moveq #0,d2 lea qs_dif(a3),a2 move.b (a2,d7.w),d2 ; get sharp/flat offset ext.w d2 clr.b (a2,d7.w) ; ... and clear it for next note add.w d2,d1 ; add to note and.l #$fff,d1 move.w (a1,d1.w),d1 play_p_1 moveq #set_period,d2 ; load bra play_word ; Play command finished, enable playing play_end lea qs_act(a3),a2 ; Enable playing st (a2,d7.w) play_rts rts ; 'b': Next note is flat play_lower lea qs_dif(a3),a2 move.b #-2,(a2,d7.w) ; flats rts ; '#': Next note is sharp play_higher lea qs_dif(a3),a2 move.b #2,(a2,d7.w) ; sharps rts ; 'p': Pause playing (one note) play_pause moveq #0,d1 ; set bra.s play_p_1 ; 'v': Set volume play_volume bsr get_num cmpi.w #16,d1 bhi error_or moveq #set_volume,d2 bra play_sub ; 'S': Synchronised wait play_wait moveq #set_susp,d1 ; load bra write_byte ; 'r': Activate channel play_start bsr get_num tst.w d1 beq error_or andi.w #$ff,d1 cmp.b qs_chan_count(a3),d1 bhi error_or subq.w #1,d1 moveq #set_rel,d2 ; load bra.s play_sub ; 'o': Set octave play_oktave bsr get_num cmpi.w #9,d1 bhi error_or lea qs_okt(a3),a2 move.b d1,0(a2,d7.w) rts ; 'n': Noise frequency play_noise bsr.s get_num tst.w d1 beq.s play_n_off andi.w #$ff,d1 moveq #set_n_per,d2 bsr.s play_sub st d1 play_n_off moveq #set_noise,d2 bra.s play_sub ; 'l': Set note length play_length bsr.s get_num moveq #set_len,d2 bra.s play_sub ; 'w': Set wrap curve play_wave bsr.s get_num cmpi.w #15,d1 bhi error_bp moveq #set_wave,d2 bra.s play_sub ; 'x': Set wrap length play_w_length bsr.s get_num moveq #set_w_len,d2 ; Write command and data word play_word move.l d1,-(sp) move.w d2,d1 bsr.s write_byte move.l (sp)+,d1 tst.w d0 bne.s play_rts2 move.l d1,-(sp) and.w #$ff,d1 bsr.s write_byte move.l (sp)+,d1 tst.w d0 bne.s play_rts2 lsr.w #8,d1 and.w #$ff,d1 bsr.s write_byte play_rts2 rts ; Write command and data byte play_sub move.l d1,-(sp) move.w d2,d1 bsr.s write_byte move.l (sp)+,d1 tst.w d0 bne.s play_rts2 ;;; bra.s write_byte ; Put byte d1 into queue write_byte move.l qs_work_queue(a3),a2 write_byte_1 move.l a3,-(sp) move.w ioq.pbyt,a1 jsr (a1) move.l (sp)+,a3 rts ; Translate ASCII number to integer get_num lea qs_work_num(a3),a5 moveq #0,d1 get_loop move.b (a6,a4.l),d2 cmpi.b #47,d2 bls.s get_end cmpi.b #'9',d2 bhi.s get_end adda.l #1,a4 addq.w #1,d1 subq.w #1,d6 move.b d2,(a5)+ cmpi.b #4,d1 bne.s get_loop get_end tst.b d1 beq.s get_end_all moveq #0,d2 moveq #1,d3 get_e_1 tst.b d1 beq.s get_e_2 moveq #0,d4 move.b -(a5),d4 sub.b #'0',d4 mulu d3,d4 add.w d4,d2 mulu #10,d3 subq.w #1,d1 bra.s get_e_1 get_e_2 move.l d2,d1 get_end_all rts ; RELEASE <ch> ; ; Release all (no parameter) or a specific channel release move.w sb.gtint,a2 jsr (a2) tst.w d3 beq.s ay_relse_all subq.w #1,d3 bne error_bp move.w (a6,a1.l),d1 ay_relse tst.b d1 beq.s ay_relse_all bsr get_aybas subq.w #1,d1 cmp.w qs_chan_count(a3),d1 bcc error_or lea qs_mem(a3),a1 move.w d1,d2 lsl.w #2,d2 tst.l (a1,d2.w) beq error_no lea qs_act(a3),a1 st (a1,d1.w) ; Enable playing moveq #0,d0 rts ay_relse_all bsr get_aybas lea qs_act(a3),a1 move.b qs_chan_count(a3),d0 ay_relse_all_loop st (a1)+ ; Enable all channels subq.b #1,d0 bne.s ay_relse_all_loop moveq #0,d0 rts ; val = PLAYING(ch) ; ; Check if queue of channel is currently playing playing move.w sb.gtint,a2 jsr (a2) tst.w d0 bne.s playing_rts cmpi.w #1,d3 bne error_bp move.w (a6,a1.l),d1 bsr.s ay_tstpl tst.w d0 bne.s playing_rts move.w d1,0(a6,a1.l) move.l a1,sb_arthp(a6) moveq #0,d0 moveq #3,d4 playing_rts rts ay_tstpl bsr get_aybas andi.w #$ff,d1 subq.w #1,d1 cmp.b qs_chan_count(a3),d1 bcc error_or move.w d1,d2 lea qs_mem(a3),a2 lsl.w #2,d2 tst.l (a2,d2.w) beq error_no lea qs_act(a3),a2 move.b (a2,d1.w),d1 andi.w #1,d1 moveq #0,d0 rts ; HOLD n ; ; Stop all (no parameter) or a specific interrupt list hold move.w sb.gtint,a2 jsr (a2) tst.w d3 beq.s ay_hold_all ; No param -> hold all cmpi.w #1,d3 bne error_bp move.w (a6,a1.l),d1 ; List to hold ay_hold tst.b d1 beq.s ay_hold_all ; List 0 -> hold all bsr get_aybas andi.w #$ff,d1 subq.w #1,d1 cmp.b qs_chan_count(a3),d1 bcc error_bp move.w d1,d2 lsl.w #2,d2 lea qs_mem(a3),a1 tst.l (a1,d2.w) beq error_no lea qs_act(a3),a1 sf (a1,d1.w) moveq #0,d0 rts ay_hold_all bsr get_aybas lea qs_act(a3),a1 moveq #0,d0 move.l d0,(a1)+ ; Stop all 6 (possible) channels move.w d0,(a1)+ rts ; ENVELOPE shape, period envelope move.w sb.gtint,a2 jsr (a2) tst.w d0 bne.s env_rts cmpi.w #2,d3 bne error_bp move.w 0(a6,a1.l),d6 ; Envelope shape cmpi.w #$f,d6 bhi error_or move.w 2(a6,a1.l),d7 ; Envelope period cmpi.w #4095,d7 bhi error_or bsr get_aybas move.w d6,d1 moveq #ay_env_shape,d2 bsr ay_wrreg move.w d7,d1 andi.w #$FF,d1 moveq #ay_env_period_l,d2 bsr ay_wrreg move.w d7,d1 lsr.w #8,d1 moveq #ay_env_period_h,d2 bsr ay_wrreg moveq #0,d0 env_rts rts ; Polled interrupt sound handler out_sound_queue bsr get_aybas moveq #0,d6 ; Channel within chip moveq #0,d7 ; Total channel lea qs_regs_0(a3),a5 out_sound_loop cmp.b #3,d7 bne.s out_no_chip_change lea qs_regs_1(a3),a5 moveq #0,d6 ; Start from channel 0 again out_no_chip_change bsr.s out_queue addq.w #1,d6 addq.w #1,d7 cmp.b qs_chan_count(a3),d7 bne.s out_sound_loop rts out_queue lea qs_mem(a3),a2 move.l d7,d3 lsl.w #2,d3 tst.l (a2,d3.w) ; Any output queue? beq.s out_rts ; ... no, next channel lea qs_act(a3),a2 tst.b (a2,d7.w) ; Queue enabled? beq.s out_rts ; ... no, next channel moveq #0,d1 lea qs_count(a3),a2 ; Remaining note length move.b (a2,d7.w),d1 tst.b d1 beq.s out_q_1 ; Get next queue command subq.w #1,d1 ; Note remains a bit longer move.b d1,(a2,d7.w) out_rts rts out_q_1 bsr get_byte ; Next byte out of queue tst.w d0 bne.s out_susp ; ... done, suspend output cmpi.b #set_w_len,d1 ; Command valdi? bhi.s out_susp ; ... no, suspend output andi.l #$0f,d1 lea int_tab,a0 lsl.w #1,d1 adda.w d1,a0 adda.w (a0),a0 jmp (a0) ; Jump to next command out_q_end lea qs_len(a3),a2 lea qs_count(a3),a4 move.b (a2,d7.w),(a4,d7.w) ; count = len rts out_q_e_0 lea qs_count(a3),a2 clr.b (a2,d7.w) ; count = 0 rts out_period bsr get_byte tst.w d0 bne.s out_susp move.w d1,d4 bsr get_byte tst.w d0 bne.s out_susp move.w d1,d5 moveq #0,d3 move.b d6,d3 lsl.w #1,d3 ; Tune register low for ch <d6> move.w d3,d2 move.w d4,d1 bsr write_reg addq.w #1,d3 ; Tune register high move.w d3,d2 move.w d5,d1 bsr write_reg bra out_q_end out_len bsr get_byte tst.w d0 bne.s out_susp lea qs_len(a3),a2 move.b d1,(a2,d7.w) bra out_q_1 out_susp lea qs_act(a3),a2 sf (a2,d7.w) ; Not playing anymore bra out_q_end out_rel bsr get_byte tst.w d0 bne.s out_susp andi.w #$ff,d1 lea qs_act(a3),a2 st (a2,d1.w) ; Now playing bra out_q_e_0 out_n_per bsr get_byte tst.w d0 bne.s out_susp moveq #ay_noise_period,d2 bsr write_reg bra out_q_e_0 out_volume bsr get_byte tst.w d0 bne.s out_susp tst.b d1 beq.s out_vol_0 moveq #ay_amplitude_a,d2 add.b d6,d2 ; ay_amplitude_<d6> bsr write_reg moveq #ay_enable,d2 bsr read_reg bclr d6,d1 ; Enable tone <d6> bsr write_reg bra out_q_1 out_vol_0 moveq #ay_amplitude_a,d2 add.b d6,d2 ; ay_amplitude_<d6> bsr write_reg moveq #ay_enable,d2 bsr read_reg bset d6,d1 ; Disable tone <d6> bsr write_reg bra out_q_1 out_noise bsr.s get_byte tst.w d0 bne.s out_susp tst.b d1 beq.s out_n_reset move.w d6,d3 ; 0..2 addq.w #3,d3 ; 3..5 moveq #ay_enable,d2 bsr read_reg bclr d3,d1 ; Enable noise <d6> bsr write_reg bra out_q_1 out_n_reset move.w d6,d3 addq.w #3,d3 moveq #ay_enable,d2 bsr read_reg bset d3,d1 ; Disable noise <d6> bsr write_reg bra out_q_1 out_wave bsr.s get_byte tst.w d0 bne out_susp moveq #ay_env_shape,d2 bsr write_reg bra out_q_1 out_w_len bsr.s get_byte tst.w d0 bne out_susp move.w d1,d4 bsr.s get_byte tst.w d0 bne out_susp move.w d1,d5 move.w d4,d1 moveq #ay_env_period_l,d2 bsr write_reg move.w d5,d1 moveq #ay_env_period_h,d2 bsr write_reg bra out_q_1 get_byte move.l a3,-(sp) lea qs_mem(a3),a2 moveq #0,d5 move.b d7,d5 lsl.w #2,d5 move.l (a2,d5.w),a2 move.w ioq.gbyt,a1 jsr (a1) move.l (sp)+,a3 andi.l #$ff,d1 rts ; Machine code entry point for SOUND ; ; d1 = Channel number ; d2 = Frequency ; d3 = Volume sound_mc tst.w d1 beq ay_reset ; Stop all sounds bsr get_aybas move.w d2,d0 or.w d3,d0 beq sound_v0_mc ; Stop sound for this channel movem.l a0-a2/a4/d4-d7,-(sp) andi.l #$fff,d2 move.l #93750,d4 divu d2,d4 move.l d1,d5 move.l d1,d2 add.w d2,d2 ; ay_tune_a_<d5>_l move.b d4,d1 bsr ay_wrreg move.w d4,d1 lsr.w #8,d1 addq.w #1,d2 ; ay_tune_a_<d5>_h bsr ay_wrreg moveq #ay_amplitude_a,d2 add.w d5,d2 ; ay_amplitude_<d5> move.b d3,d1 bsr ay_wrreg moveq #ay_enable,d2 bsr ay_rdreg bclr d5,d1 ; Enable tone <d5> addq.w #3,d5 bset d5,d1 ; Disable noise <d5> bsr ay_wrreg movem.l (sp)+,a0-a2/a4/d4-d7 rts ; SOUND n, f, v ; ; Set sound output of channel n to frequency f with volume v sound move.w sb.gtfp,a2 jsr (a2) bsr get_aybas tst.w d3 beq ay_reset ; No parameter -> stop all sounds cmpi.w #1,d3 beq sound_v0 ; One parameter -> stop channel cmpi.w #3,d3 bne error_bp sound_all move.w qa.op,a2 moveq #qa.int,d0 jsr (a2) tst.w d0 bne sound_rts move.w 0(a6,a1.l),d4 tst.w d4 beq error_or cmpi.w #3,d4 bhi error_or lea qs_data(a3),a0 subq.w #1,d4 move.w d4,(a0) ; Channel number subq.l #4,a1 move.l #$8115B8D,0(a6,a1.l) ; 93750 move.w #$8000,4(a6,a1.l) tst.l 6(a6,a1.l) bne.s sound_1 tst.w 10(a6,a1.l) bne.s sound_1 adda.l #12,a1 lea qs_data(a3),a0 clr.w 2(a0) ; 2(a0) Frequency bra.s sound_2 sound_1 lea qs_data(a3),a0 ; Only temporary memory in this case move.l 0(a6,a1.l),2(a0) ; Swap TOS and NOS move.w 4(a6,a1.l),6(a0) move.l 6(a6,a1.l),0(a6,a1.l) move.w 10(a6,a1.l),4(a6,a1.l) move.l 2(a0),6(a6,a1.l) move.w 6(a0),10(a6,a1.l) move.l (a3),-(sp) move.w qa.mop,a2 lea operation1,a3 jsr (a2) move.l (sp)+,a3 tst.l d0 bne sound_rts lea qs_data(a3),a0 move.w 0(a6,a1.l),2(a0) ; 2 (a0) frequency adda.l #2,a1 sound_2 move.w qa.op,a2 moveq #qa.int,d0 jsr (a2) tst.l d0 bne.s sound_rts lea qs_data(a3),a0 move.w 0(a6,a1.l),4(a0) ; 4(a0) volume cmpi.w #4095,2(a0) bhi error_or cmpi.w #16,4(a0) bhi error_or moveq #0,d2 move.w (a0),d2 ; channel add.w d2,d2 ; ay_tune_<ch>_l moveq #0,d1 move.w 2(a0),d1 ; frequency andi.w #$ff,d1 bsr ay_wrreg move.w 2(a0),d1 ; frequency lsr.w #8,d1 andi.w #$F,d1 addq.w #1,d2 ; ay_tune_<ch>_h bsr ay_wrreg moveq #ay_amplitude_a,d2 add.w (a0),d2 ; ay_amplitude_<ch> move.w 4(a0),d1 ; volume bsr ay_wrreg moveq #ay_enable,d2 bsr ay_rdreg move.w (a0),d3 ; channel bclr d3,d1 ; enable addq.w #3,d3 bset d3,d1 ; disable noise bsr ay_wrreg moveq #0,d0 sound_rts rts ; Stop sound for channel d1 sound_v0_mc move.w d1,d4 bra.s sound_v0_all sound_v0 moveq #qa.int,d0 move.w qa.op,a2 jsr (a2) tst.w d0 bne.s sound_rts move.w 0(a6,a1.l),d4 sound_v0_all tst.w d4 beq error_or cmpi.w #3,d4 bhi error_or subq.w #1,d4 move.w d4,d2 moveq #0,d3 move.b d4,d3 add.w d2,d2 ; ay_tune_<ch>_l moveq #0,d1 bsr ay_wrreg addq.w #1,d2 ; ay_tune_<ch>_h bsr ay_wrreg move.w d4,d2 addq.w #ay_amplitude_a,d2 ; ay_amplitude_<ch> bsr ay_wrreg moveq #ay_enable,d2 bsr ay_rdreg bset d3,d1 ; silence tone bsr ay_wrreg andi.l #$f,d4 sf qs_act(a3,d4.w) move.w #$4000,d1 swait dbra d1,swait lea qs_mem(a3),a1 lsl.w #2,d4 tst.l (a1,d4.w) beq sound_rts move.l (a1,d4.w),a0 clr.l (a1,d4.w) moveq #sms.rchp,d0 trap #1 moveq #0,d0 rts qa_resri moveq #6,d1 move.w qa.resri,a1 jmp (a1) ; version = AY_VER$ ay_ver$ bsr.s qa_resri move.l sb_arthp(a6),a1 subq.l #6,a1 move.w #4,(a6,a1.l) move.l #qsound.vers,2(a6,a1.l) move.l a1,sb_arthp(a6) moveq #1,d4 moveq #0,d0 rts ; count = AY_CHIPS ay_chips moveq #qs_chip_count,d5 bra.s ay_ret_byte ; type = AY_TYPE ay_type move.w #qs_chip_type,d5 ; Fall-through ; Byte index in d5 ay_ret_byte bsr.s qa_resri bsr get_aybas moveq #0,d1 move.w (a3,d5.w),d1 move.l sb_arthp(a6),a1 subq.l #2,a1 move.w d1,(a6,a1.l) move.l a1,sb_arthp(a6) moveq #3,d4 moveq #0,d0 rts ; Get version in d1, chip count in d2 ay_info_mc move.l #qsound.vers,d1 moveq #0,d2 move.b qs_chip_count(a3),d2 rts ; Get/set chip type ay_type_mc tst.l d1 bmi.s ay_type_get bsr ay_hw_type bmi.s ay_type_rts move.b d1,qs_chip_type(a3) ay_type_get moveq #0,d1 move.b qs_chip_type(a3),d1 moveq #0,d0 ay_type_rts rts ; Get/set chip frequency ay_freq_mc tst.l d1 bmi.s ay_freq_get bsr ay_hw_freq bmi.s ay_freq_rts move.l d1,qs_chip_freq(a3) ay_freq_get move.l qs_chip_freq(a3),d1 moveq #0,d0 ay_freq_rts rts ; Get/set stereo mode ay_stereo_mc tst.l d1 bmi.s ay_stereo_get bsr ay_hw_stereo bmi.s ay_stereo_rts move.b d1,qs_stereo(a3) ay_stereo_get moveq #0,d1 move.b qs_stereo(a3),d1 moveq #0,d0 ay_stereo_rts rts ; Get/set volume ay_volume_mc tst.l d1 bmi.s ay_volume_get bsr ay_hw_volume bmi.s ay_volume_rts move.b d1,qs_volume(a3) ay_volume_get moveq #0,d1 move.b qs_volume(a3),d1 moveq #0,d0 ay_volume_rts rts ; Basic definitions proc_def proc_stt proc_ref BELL proc_ref EXPLODE proc_ref SHOOT proc_ref POKE_AY proc_ref LIST_AY proc_ref PLAY proc_ref HOLD proc_ref RELEASE proc_ref ENVELOPE proc_ref SOUND proc_end proc_stt proc_ref PEEK_AY proc_ref PLAYING proc_ref AY_CHIPS proc_ref AY_TYPE proc_end quiet_tab dc.b 0,0,0,0,0,0,0,$ff,0,0,0,0,0,0 explode_tab dc.b 0,0,0,0,0,0,$1f,7,16,16,16,0,16,0 shoot_tab dc.b 0,0,0,0,0,0,$10,7,16,16,16,0,3,0 bell_tab dc.b 100,0,101,0,0,0,0,248,16,16,0,0,4,0 gong_tab dc.b 60,0,61,0,63,0,0,248,16,16,16,0,9,0 ; Update cmd.count when extending the table mc_table dc.w ay_reset-qsound_base ; 0 dc.w ay_wrreg-qsound_base ; 1 dc.w ay_rdreg-qsound_base ; 2 dc.w ay_wrall-qsound_base ; 3 dc.w ay_rdall-qsound_base ; 4 dc.w ay_play-qsound_base ; 5 dc.w ay_tstpl-qsound_base ; 6 dc.w ay_hold-qsound_base ; 7 dc.w ay_relse-qsound_base ; 8 dc.w ay_noise-qsound_base ; 9 dc.w sound_mc-qsound_base ; 10 dc.w ay_info_mc-qsound_base ; 11 dc.w ay_type_mc-qsound_base ; 12 dc.w ay_freq_mc-qsound_base ; 13 dc.w ay_stereo_mc-qsound_base ; 14 dc.w ay_volume_mc-qsound_base ; 15 operation1 dc.b qa.div,qa.int,0,0 int_tab dc.w out_period-* dc.w out_volume-* dc.w out_noise-* dc.w out_len-* dc.w out_susp-* dc.w out_rel-* dc.w out_n_per-* dc.w out_wave-* dc.w out_w_len-* cmd_table dc.b 0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0 dc.b 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 dc.b 0,12,2,12,12,12,12,12,12,0,0,0,3,0,7,8 dc.b 9,0,6,5,0,0,4,10,11,0,0,0,0,0,0,0 dc.b 0,13,2,13,13,13,13,13,13,0,0,0,3,0,7,8 dc.b 9,0,6,5,0,0,4,10,11,0,0,0,0,0,0,0 jump_table dc.w play_error-* dc.w play_higher-* dc.w play_lower-* dc.w play_length-* dc.w play_volume-* dc.w play_wait-* dc.w play_start-* dc.w play_noise-* dc.w play_oktave-* dc.w play_pause-* dc.w play_wave-* dc.w play_w_length-* dc.w play_note-* dc.w play_note_kl-* note_tab dc.w 18,255,0,4,8,10,14,22 okt_tab dc.w 4000 oktave_0 dc.w 3822,3608,3405,3214,3034,2863,2703,2551,2408,2273,2145,2025 oktave_1 dc.w 1911,1804,1703,1607,1517,1432,1351,1276,1204,1136,1073,1012 oktave_2 dc.w 956,902,851,804,758,716,676,638,602,568,536,506 oktave_3 dc.w 478,451,426,402,379,358,338,319,301,284,268,253 oktave_4 dc.w 239,225,213,201,190,179,169,159,150,142,134,127 oktave_5 dc.w 119,113,106,100,95,89,84,80,75,71,67,63 oktave_6 dc.w 60,56,53,50,47,45,42,40,38,36,34,32 oktave_7 dc.w 30,28,27,25,24,22,21,20,19,18,17,16 oktave_8 dc.w 15,14,13,12,12,11,10,10,9,9,8,8 oktave_9 dc.w 7,7,6,6,6,5,5,5,4,4,4,4 dc.w 3 end
16.710305
80
0.680112
36a20dbca5152afb01185c0cee4c97aab0beb2de
3,233
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2_notsx.log_14_1203.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2_notsx.log_14_1203.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2_notsx.log_14_1203.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r15 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x12d94, %rdx nop nop nop nop nop and %r15, %r15 mov (%rdx), %rsi nop nop nop sub %rcx, %rcx lea addresses_D_ht+0x8214, %rbx nop nop nop nop nop cmp $65116, %rdi movb (%rbx), %r15b nop nop nop xor %rsi, %rsi lea addresses_D_ht+0x190cc, %rbx and %r10, %r10 mov (%rbx), %ecx nop nop nop nop inc %rcx lea addresses_UC_ht+0x19414, %r10 xor $2564, %rsi movb (%r10), %dl nop nop nop nop nop cmp $18463, %rdx lea addresses_normal_ht+0x5b48, %rcx clflush (%rcx) nop nop nop nop add %rdi, %rdi movw $0x6162, (%rcx) cmp $55805, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r15 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi // Store lea addresses_WC+0x19f74, %rax nop nop nop nop nop inc %rbx movl $0x51525354, (%rax) nop nop nop nop and $35079, %r13 // REPMOV lea addresses_RW+0x16614, %rsi lea addresses_WC+0xac14, %rdi clflush (%rsi) nop nop nop nop add %r13, %r13 mov $23, %rcx rep movsq nop nop sub %rax, %rax // Store mov $0x167fef0000000c14, %r8 nop nop nop nop nop add $52646, %r10 mov $0x5152535455565758, %rax movq %rax, (%r8) nop nop nop nop add $5121, %rdi // Store lea addresses_WT+0x16f14, %r13 nop nop nop nop nop add %rcx, %rcx movb $0x51, (%r13) nop nop nop nop nop xor $48863, %rcx // Faulty Load mov $0x167fef0000000c14, %r13 nop nop nop nop cmp %rsi, %rsi vmovups (%r13), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $1, %xmm0, %rbx lea oracles, %rdi and $0xff, %rbx shlq $12, %rbx mov (%rdi,%rbx,1), %rbx pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r8 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_RW', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WC', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'00': 14} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
17.475676
143
0.644912
8166f16910481179c4480a07b1e6311522e12ff0
38,853
asm
Assembly
sound/musicasm/Competition Menu.asm
NatsumiFox/Sonic-3-93-Nov-03
032e4fc25f243636d458639c4a4311caca898f96
[ "MIT" ]
7
2019-12-05T00:35:57.000Z
2022-02-27T20:00:33.000Z
sound/musicasm/Competition Menu.asm
NatsumiFox/Sonic-3-93-Nov-03
032e4fc25f243636d458639c4a4311caca898f96
[ "MIT" ]
null
null
null
sound/musicasm/Competition Menu.asm
NatsumiFox/Sonic-3-93-Nov-03
032e4fc25f243636d458639c4a4311caca898f96
[ "MIT" ]
null
null
null
CompetitionMenu_Header: sHeaderInit ; Z80 offset is $CCB8 sHeaderPatch CompetitionMenu_Patches sHeaderCh $06, $03 sHeaderTempo $01, $25 sHeaderDAC CompetitionMenu_DAC sHeaderFM CompetitionMenu_FM1, $18, $12 sHeaderFM CompetitionMenu_FM2, $0C, $19 sHeaderFM CompetitionMenu_FM3, $0C, $19 sHeaderFM CompetitionMenu_FM4, $0C, $19 sHeaderFM CompetitionMenu_FM5, $0C, $19 sHeaderPSG CompetitionMenu_PSG1, $F4, $04, $00, v0C sHeaderPSG CompetitionMenu_PSG2, $F4, $04, $00, v0C sHeaderPSG CompetitionMenu_PSG3, $00, $04, $00, v0C dc.b $F2, $F2 ; Unused CompetitionMenu_DAC: dc.b nRst, $30, dSnare, $02, dSnare, dSnare, dSnare, $06 dc.b dSnare, dSnare, dSnare, dSnare, dSnare, dSnare CompetitionMenu_Jump7: dc.b dKick, $18, dSnare, $06, dSnare, $0C, dSnare, $12 dc.b dKick, $0C, dSnare, $06, dKick, $12, dKick, $18 dc.b dSnare, $06, dSnare, $0C, dSnare, $12, dKick, $0C dc.b dSnare, $06, dKick, $12, dKick, $18, dSnare, $06 dc.b dSnare, $0C, dSnare, $12, dKick, $0C, dSnare, $06 dc.b dKick, $12, dKick, $18, dSnare, $06, dSnare, $0C dc.b dSnare, $12, dKick, $0C, dSnare, $06, dKick, dSnare dc.b dSnare, dKick, $18, dSnare, $24, dKick, $0C, dSnare dc.b $06, dKick, $12, dKick, $18, dSnare, $24, dKick dc.b $0C, dSnare, $06, dKick, $12, dKick, $18, dSnare dc.b $24, dKick, $0C, dSnare, $06, dKick, $12, dKick dc.b $18, dSnare, $24, dKick, $0C, dSnare, $06, dKick dc.b dSnare, $0C, dKick, $18, dSnare, $24, dKick, $0C dc.b dSnare, $06, dKick, $12, dKick, $18, dSnare, $24 dc.b dKick, $0C, dSnare, $06, dKick, $12, dKick, $18 dc.b dSnare, $24, dKick, $0C, dSnare, $06, dKick, $12 dc.b dKick, $18, dSnare, $1E, dSnare, $06, dKick, dSnare dc.b dSnare, dKick, dSnare, dSnare, dKick, $18, dSnare, $24 dc.b dKick, $0C, dSnare, $06, dKick, $12, dKick, $18 dc.b dSnare, $24, dKick, $0C, dSnare, $06, dKick, $12 dc.b dKick, $18, dSnare, $24, dKick, $0C, dSnare, $06 dc.b dKick, $12, dKick, $18, dSnare, $24, dKick, $06 dc.b dSnare, dSnare, dSnare, dSnare, dSnare, dKick, dKick, dKick dc.b dKick, dSnare, $24, dKick, $06, dKick, dSnare, dKick dc.b $12, dKick, $06, dKick, dKick, dKick, dSnare, $24 dc.b dKick, $06, dKick, dSnare, dKick, dSnare, $0C, dKick dc.b $06, dKick, dKick, dKick, dSnare, $24, dKick, $06 dc.b dKick, dSnare, dKick, $12, dKick, $06, dKick, dKick dc.b dKick, dSnare, $24, dKick, $06, dKick, dSnare, dKick dc.b dSnare, $0C, dKick, $06, dKick, dKick, dKick, dSnare dc.b $24, dKick, $06, dKick, dSnare, dKick, $12, dKick dc.b $06, dKick, dKick, dKick, dSnare, $24, dKick, $06 dc.b dKick, dSnare, dKick, dSnare, $0C, dKick, $06, dKick dc.b dKick, dKick, dSnare, $24, dKick, $06, dKick, dSnare dc.b dKick, $12, dSnare, $06, dSnare, dSnare, dSnare, $26 dc.b dSnare, $02, dSnare, dSnare, $06, dSnare, dSnare, dSnare dc.b dSnare, dSnare sJump CompetitionMenu_Jump7 dc.b $F2 ; Unused CompetitionMenu_FM1: sPatFM $15 ssDetune $00 ssModZ80 $0F, $01, $06, $06 dc.b nRst, $60 CompetitionMenu_Jump1: dc.b nC1, $06, nRst, $12, nC2, nG1, $06, nRst dc.b nBb1, $04, nRst, $02, nC2, $04, nRst, $08 dc.b nBb1, $06, nG1, $12, nF1, $06, nFs1, nG1 dc.b nF1, nEb1, nC1, $0C, nEb1, $04, nRst, $08 dc.b nFs1, $04, nRst, $02, nF1, $0C, nEb1, $06 dc.b nBb0, $0E, nRst, $04, nC1, $06, nRst, $12 dc.b nC2, nG1, $06, nRst, nBb1, $04, nRst, $02 dc.b nC2, $04, nRst, $08, nBb1, $06, nG1, $12 dc.b nF1, $06, nFs1, nG1, nF1, nEb1, nC1, $0C dc.b nEb1, $04, nRst, $08, nFs1, $04, nRst, $02 dc.b nF1, $0C, nEb1, $06, nBb0, $0E, nRst, $04 dc.b nC1, $06, nRst, $12, nC2, nG1, $06, nBb1 dc.b $04, nRst, $08, nC2, $04, nRst, $08, nBb1 dc.b $06, nG1, $12, nF1, $06, nFs1, nG1, nF1 dc.b nEb1, nC1, $0C, nEb1, $06, nRst, $0C, nF1 dc.b $04, nRst, $08, nEb1, $06, nBb0, $0E, nRst dc.b $04, nC1, $06, nRst, $12, nC2, nG1, $06 dc.b nBb1, $04, nRst, $08, nC2, $04, nRst, $08 dc.b nBb1, $06, nG1, $12, nF1, $06, nFs1, nG1 dc.b nF1, nEb1, nC1, $0C, nEb1, $06, nRst, $0C dc.b nF1, $04, nRst, $08, nEb1, $06, nBb0, $0E dc.b nRst, $04, nF1, $06, nRst, $12, nF2, nC2 dc.b $06, nEb2, $04, nRst, $08, nF2, $04, nRst dc.b $08, nEb2, $06, nC2, $12, nBb1, $06, nB1 dc.b nC2, nBb1, nAb1, nF1, $0C, nAb1, $06, nRst dc.b $0C, nBb1, $04, nRst, $08, nAb1, $06, nF1 dc.b $0E, nRst, $04, nC1, $06, nRst, $12, nC2 dc.b nG1, $06, nBb1, $04, nRst, $08, nC2, $04 dc.b nRst, $08, nBb1, $06, nG1, $12, nF1, $06 dc.b nFs1, nG1, nF1, nEb1, nC1, $0C, nEb1, $06 dc.b nRst, $0C, nF1, $04, nRst, $08, nEb1, $06 dc.b nBb0, $0E, nRst, $04, nAb0, $06, nRst, $12 dc.b nAb1, $0E, nRst, $04, nAb1, $06, nG1, $04 dc.b nRst, $08, nF1, $04, nRst, $08, nEb1, $06 dc.b nF1, $10, nRst, $02, nC1, $06, nRst, $12 dc.b nC2, $10, nRst, $02, nC2, $04, nRst, $02 dc.b nBb1, $04, nRst, $08, nG1, $04, nRst, $08 dc.b nF1, $04, nRst, $02, nG1, $0E, nRst, $04 dc.b nAb0, $06, nRst, $12, nAb1, $0E, nRst, $04 dc.b nAb1, $06, nG1, $04, nRst, $08, nF1, $04 dc.b nRst, $08, nEb1, $06, nF1, $10, nRst, $02 dc.b nC1, $06, nRst, $12, nC2, $10, nRst, $02 dc.b nC2, $04, nRst, $02, nBb1, $04, nRst, $08 dc.b nG1, $04, nRst, $08, nF1, $04, nRst, $02 dc.b nG1, $0E, nRst, $04, nAb0, $06, nRst, $12 dc.b nAb1, $0E, nRst, $04, nAb1, $06, nG1, $04 dc.b nRst, $08, nF1, $04, nRst, $08, nEb1, $06 dc.b nF1, $10, nRst, $02, nC1, $06, nRst, $12 dc.b nC2, $10, nRst, $02, nC2, $04, nRst, $02 dc.b nBb1, $04, nRst, $08, nG1, $04, nRst, $08 dc.b nF1, $04, nRst, $02, nG1, $0E, nRst, $04 dc.b nAb0, $06, nRst, $12, nAb1, $0E, nRst, $04 dc.b nAb1, $06, nG1, $04, nRst, $08, nF1, $04 dc.b nRst, $08, nEb1, $06, nF1, $10, nRst, $02 dc.b nC1, $06, nRst, $12, nC2, $10, nRst, $02 dc.b nC2, $04, nRst, $02, nBb1, $04, nRst, $08 dc.b nG1, $04, nRst, $08, nF1, $04, nRst, $02 dc.b nG1, $0E, nRst, $04, nAb0, $06, nRst, $12 dc.b nAb1, $0E, nRst, $04, nAb1, $06, nG1, $04 dc.b nRst, $08, nF1, $04, nRst, $08, nEb1, $06 dc.b nF1, $10, nRst, $02, nC1, $06, nRst, $12 dc.b nC2, $10, nRst, $02, nC2, $04, nRst, $02 dc.b nBb1, $04, nRst, $08, nG1, $04, nRst, $08 dc.b nF1, $04, nRst, $02, nG1, $0E, nRst, $04 dc.b nCs1, $06, nRst, $12, nCs2, $0E, nRst, $04 dc.b nCs2, $06, nB1, $04, nRst, $08, nAb1, $04 dc.b nRst, $08, nFs1, $06, nAb1, $10, nRst, $02 dc.b nG1, $06, nRst, $12, nG2, $10, nRst, $02 dc.b nG2, $04, nRst, $02, nF2, $04, nRst, $08 dc.b nD2, $04, nRst, $08, nC2, $04, nRst, $02 dc.b nD2, $0E, nRst, $04 sJump CompetitionMenu_Jump1 dc.b $F2 ; Unused CompetitionMenu_FM5: dc.b nRst, $03 sJump CompetitionMenu_FM2 dc.b $F2 ; Unused CompetitionMenu_FM2: sPatFM $0D ssDetune $03 ssModZ80 $0F, $01, $06, $06 dc.b nRst, $60 CompetitionMenu_Jump2: dc.b nRst, $1E, nBb4, $0A, nRst, $02, nA4, $04 dc.b nRst, $50, nA4, $0A, nRst, $02, nBb4, $04 dc.b nRst, $50, nBb4, $0A, nRst, $02, nA4, $04 dc.b nRst, $50, nA4, $0A, nRst, $02, nBb4, $04 dc.b nRst, $32 sPatFM $17 ssDetune $03 ssModZ80 $0F, $01, $06, $06 dc.b nEb4, $04, nRst, $08, nD4, $04, nRst, $08 dc.b nC4, $0C, nBb3, $06, nC4, $1C, nRst, $08 dc.b nF3, $02, nFs3, nRst, nG3, $06, nBb3, nEb4 dc.b $04, nRst, $08, nD4, $04, nRst, $08, nC4 dc.b $06, nBb3, $12, nC4, $0C, nBb3, $06, nFs3 dc.b $02, nG3, $06, nRst, $04, nF3, nRst, $02 dc.b nG3, $06, nBb3, nEb4, $04, nRst, $08, nD4 dc.b $04, nRst, $08, nC4, $0C, nBb3, $04, nRst dc.b $02, nC4, $20, nRst, $04, nF3, nRst, $02 dc.b nG3, $06, nBb3, nEb4, $04, nRst, $08, nD4 dc.b $04, nRst, $08, nC4, $06, nBb3, $12, nC4 dc.b $0C, nBb3, $06, nG3, $08, nRst, $16, nF2 dc.b $06, nF3, nEb3, $04, nRst, $02, nC3, $06 dc.b nEb3, nF3, $04, nRst, $08, nFs3, $12, nF3 dc.b $06, nC3, nEb3, nF3, nRst, nBb3, $12, nG3 dc.b $06, nF3, $04, nRst, $02, nG3, $06, nF3 dc.b nEb3, nC3, nEb3, $04, nRst, $08, nF3, $06 dc.b nEb3, $08, nRst, $04, nF3, nRst, $02, nG3 dc.b $06, nBb3, nEb4, $04, nRst, $08, nD4, $04 dc.b nRst, $08, nC4, $0C, nBb3, $06, nC4, $0C dc.b nD4, $06, nC4, $20, nRst, $04, nF4, $0E dc.b nRst, $04, nF4, $12, nEb4, $2E, nRst, $0E dc.b nD4, nRst, $04, nD4, $12, nC4, $3C, nBb3 dc.b $0C, nRst, $06, nBb3, $12, nG3, $38, nRst dc.b $04, nF3, $0E, nRst, $04, nF3, $12, nEb3 dc.b $18, nF3, $0C, nG3, $08, nRst, $04, nBb3 dc.b $0A, nRst, $02, nEb3, $12, nD3, $04, nRst dc.b $0E, nEb3, $18 sPatFM $0E ssDetune $00 ssModZ80 $0F, $01, $06, $06 dc.b nC3, $06, nEb3, nF3, nFs3, nG3, nBb3, nC4 dc.b $0C, nBb3, $04, nRst, $02, nC4, $06, nEb4 dc.b nF4, nRst, nF4, $02, nF4, nFs4, nF4, $0C dc.b nEb4, $06, nC4, nEb4, nF4, $10, nRst, $02 dc.b nFs4, nG4, $0A, nBb4, $06, nG4, nBb4, nC5 dc.b nRst, nD5, $02, nEb5, $0A, nD5, $04, nRst dc.b $02, nC5, $06, nBb4, nC5, $0C, nBb4, $02 dc.b nG4, nF4, nEb4, nC4, nBb3 sPatFM $0E ssDetune $00 ssModZ80 $0F, $01, $06, $06 dc.b nEb5, $06, nF5, $0A, nRst, $02, nEb5, $06 dc.b nFs5, $0C, nEb5, $06, nA5, $02, nBb5, $0A dc.b nF5, $06, nEb5, nC5, nEb5, nC5, nBb4, nC5 dc.b nBb4, nG4, nBb4, nG4, nF4, nG4, nF4, nEb4 dc.b nF4, nEb4, nC4, nEb4, $12, nC4, $02, nBb3 dc.b nG3, nF3, nEb3, nC3 sPatFM $0E ssDetune $00 ssModZ80 $0F, $01, $06, $06 dc.b nEb4, $12, nFs4, nF4, $28, nRst, $14, nFs4 dc.b $02, nG4, $10, nBb4, $12, nG4, $06, nBb4 dc.b nA4, $12, nFs4, $02, nG4, $14, nRst, $08 sPatFM $0E ssDetune $00 ssModZ80 $0F, $01, $06, $06 dc.b nBb4, $12, nEb5, $1E, nB4, $12, nE5, $1E dc.b nF5, $08, nRst, $10, nF5, $30, nRst, $06 dc.b nF3, nG3, nBb3 sJump CompetitionMenu_Jump2 dc.b $F2 ; Unused CompetitionMenu_FM3: sPatFM $18 dc.b nRst, $60 CompetitionMenu_Jump3: dc.b nF3, $04, nRst, $08, nEb3, $06, nF3, $04 dc.b nRst, $26, nG3, $04, nRst, $08, nF3, $04 dc.b nRst, $02, nG3, $12, nF3, $04, nRst, $08 dc.b nEb3, $06, nF3, $04, nRst, $26, nBb3, $04 dc.b nRst, $0E, nBb3, $0A, nRst, $08, nF3, $04 dc.b nRst, $08, nEb3, $06, nF3, $04, nRst, $26 dc.b nG3, $04, nRst, $08, nF3, $04, nRst, $02 dc.b nG3, $12, nF3, $04, nRst, $08, nEb3, $06 dc.b nF3, $04, nRst, $26, nBb3, $04, nRst, $0E dc.b nBb3, $0A, nRst, $08, nG3, $04, nRst, $14 dc.b nA3, $10, nRst, $02, nG3, $04, nRst, $3E dc.b nBb4, $04, nRst, $0E, nBb4, $04, nRst, $0E dc.b nA4, $02, nBb4, $10, nA4, $04, nRst, $1A dc.b nG3, $04, nRst, $14, nA3, $10, nRst, $02 dc.b nG3, $04, nRst, $3E, nBb4, $04, nRst, $0E dc.b nBb4, $04, nRst, $0E, nA4, $02, nBb4, $10 dc.b nA4, $04, nRst, $1A, nEb3, $04, nRst, $14 dc.b nFs3, $02, nG3, $0E, nRst, $02, nEb3, $04 dc.b nRst, $3E, nEb4, $04, nRst, $0E, nEb4, $04 dc.b nRst, $0E, nF4, $02, nFs4, $0E, nRst, $02 dc.b nEb4, $04, nRst, $1A, nG3, $04, nRst, $14 dc.b nA3, $10, nRst, $02, nG3, $04, nRst, $32 dc.b nD4, $10, nRst, $02, nD4, $04, nRst, $0E dc.b nBb3, $10, nRst, $2C, nBb3, $10, nRst, $02 dc.b nBb3, $04, nRst, $0E, nG3, $10, nRst, $02 dc.b nEb4, $04, nRst, $02, nG4, $04, nRst, $08 dc.b nF4, $04, nRst, $02, nEb4, $0E, nRst, $04 dc.b nG3, $10, nRst, $02, nG3, $04, nRst, $0E dc.b nEb3, $10, nRst, $02, nC4, $04, nRst, $02 dc.b nEb4, $04, nRst, $08, nD4, $06, nC4, $12 dc.b nD3, $10, nRst, $02, nD3, $04, nRst, $0E dc.b nC3, $10, nRst, $02, nF4, $04, nRst, $02 dc.b nBb4, $04, nRst, $08, nAb4, $04, nRst, $02 dc.b nG4, $10, nRst, $02, nBb2, $10, nRst, $02 dc.b nBb2, $04, nRst, $0E, nBb2, $10, nRst, $02 dc.b nBb3, $04, nRst, $02, nF4, $04, nRst, $08 dc.b nEb4, $04, nRst, $02, nC4, $0C, nRst, $06 dc.b nAb3, $04, nRst, $02, nAb3, $04, nRst, $02 dc.b nEb3, $04, nRst, $02, nAb3, $04, nRst, $1A dc.b nBb4, $02, nC5, $0A, nAb3, $04, nRst, $02 dc.b nAb3, $04, nRst, $02, nEb3, $04, nRst, $02 dc.b nAb3, $0A, nRst, $08, nC4, $04, nRst, $02 dc.b nC4, $04, nRst, $02, nBb3, $04, nRst, $02 dc.b nC4, $04, nRst, $1A, nEb5, $0C, nC4, $04 dc.b nRst, $02, nC4, $04, nRst, $02, nBb3, $04 dc.b nRst, $02, nC4, $0A, nRst, $08, nAb3, $04 dc.b nRst, $02, nAb3, $04, nRst, $02, nEb3, $04 dc.b nRst, $02, nAb3, $04, nRst, $1A, nF5, $02 dc.b nFs5, $0A, nAb3, $04, nRst, $02, nAb3, $04 dc.b nRst, $02, nEb3, $04, nRst, $02, nAb3, $0A dc.b nRst, $08, nC4, $04, nRst, $02, nC4, $04 dc.b nRst, $02, nBb3, $04, nRst, $02, nC4, $04 dc.b nRst, $1A, nEb5, $0C, nC4, $04, nRst, $02 dc.b nC4, $04, nRst, $02, nBb3, $04, nRst, $02 dc.b nC4, $0A, nRst, $08, nAb3, $04, nRst, $02 dc.b nAb3, $04, nRst, $02, nEb3, $04, nRst, $02 dc.b nAb3, $04, nRst, $1A, nBb4, $02, nC5, $0A dc.b nAb3, $04, nRst, $02, nAb3, $04, nRst, $02 dc.b nEb3, $04, nRst, $02, nAb3, $0A, nRst, $08 dc.b nC4, $04, nRst, $02, nC4, $04, nRst, $02 dc.b nBb3, $04, nRst, $02, nC4, $04, nRst, $1A dc.b nF5, $0C, nC4, $04, nRst, $02, nC4, $04 dc.b nRst, $02, nBb3, $04, nRst, $02, nC4, $0A dc.b nRst, $08, nAb3, $04, nRst, $02, nAb3, $04 dc.b nRst, $02, nEb3, $04, nRst, $02, nAb3, $04 dc.b nRst, $1A, nEb5, $02, nF5, $0A, nAb3, $04 dc.b nRst, $02, nAb3, $04, nRst, $02, nEb3, $04 dc.b nRst, $02, nAb3, $0A, nRst, $08, nD4, $04 dc.b nRst, $02, nD4, $04, nRst, $02, nD4, $04 dc.b nRst, $02, nD4, $04, nRst, $26, nD4, $04 dc.b nRst, $02, nD4, $04, nRst, $02, nD4, $04 dc.b nRst, $02, nD4, $04, nRst, $0E sJump CompetitionMenu_Jump3 dc.b $F2 ; Unused CompetitionMenu_FM4: sPatFM $19 dc.b nRst, $60 CompetitionMenu_Jump4: dc.b nD3, $04, nRst, $08, nC3, $06, nD3, $04 dc.b nRst, $08 sPatFM $0D ssDetune $FD ssModZ80 $0F, $01, $06, $06 dc.b nEb4, $0A, nRst, $02, nEb4, $04, nRst, $0E sPatFM $19 dc.b nEb3, $02, nRst, $0A, nD3, $04, nRst, $02 dc.b nEb3, $12, nD3, $04, nRst, $08, nC3, $06 dc.b nD3, $04, nRst, $08 sPatFM $0D ssDetune $FD ssModZ80 $0F, $01, $06, $06 dc.b nEb4, $0A, nRst, $02, nEb4, $04, nRst, $0E sPatFM $19 dc.b nG3, $02, nRst, $10, nG3, $0A, nRst, $08 dc.b nD3, $04, nRst, $08, nC3, $06, nD3, $04 dc.b nRst, $08 sPatFM $0D ssDetune $FD ssModZ80 $0F, $01, $06, $06 dc.b nEb4, $0A, nRst, $02, nEb4, $04, nRst, $0E sPatFM $19 dc.b nEb3, $02, nRst, $0A, nD3, $04, nRst, $02 dc.b nEb3, $12, nD3, $04, nRst, $08, nC3, $06 dc.b nD3, $04, nRst, $08 sPatFM $0D ssDetune $FD ssModZ80 $0F, $01, $06, $06 dc.b nEb4, $0A, nRst, $02, nEb4, $04, nRst, $0E sPatFM $19 dc.b nG3, $02, nRst, $10, nG3, $0A, nRst, $08 dc.b nEb3, $04, nRst, $14, nF3, $10, nRst, $02 dc.b nEb3, $04, nRst, $3E, nG4, $04, nRst, $0E dc.b nG4, $04, nRst, $0E, nG4, $10, nRst, $02 dc.b nF4, $04, nRst, $1A, nEb3, $04, nRst, $14 dc.b nF3, $10, nRst, $02, nEb3, $04, nRst, $3E dc.b nG4, $04, nRst, $0E, nG4, $04, nRst, $0E dc.b nG4, $10, nRst, $02, nF4, $04, nRst, $1A dc.b nC3, $04, nRst, $14, nEb3, $10, nRst, $02 dc.b nC3, $04, nRst, $3E, nC4, $04, nRst, $0E dc.b nC4, $04, nRst, $0E, nEb4, $10, nRst, $02 dc.b nC4, $04, nRst, $1A, nEb3, $04, nRst, $14 dc.b nF3, $10, nRst, $02, nEb3, $04, nRst, $32 dc.b nBb3, $10, nRst, $02, nBb3, $04, nRst, $0E dc.b nG3, $10, nRst, $02, nG4, $06, nBb4, nD5 dc.b nBb4, nG4, nEb4, nBb3, nF3, $10, nRst, $02 dc.b nF3, $04, nRst, $0E, nEb3, $10, nRst, $02 dc.b nBb3, $04, nRst, $02, nEb4, $04, nRst, $08 dc.b nD4, $04, nRst, $02, nC4, $0E, nRst, $04 dc.b nEb3, $10, nRst, $02, nEb3, $04, nRst, $0E dc.b nBb2, $10, nRst, $02, nG3, $04, nRst, $02 dc.b nC4, $04, nRst, $08, nBb3, $06, nEb3, $12 dc.b nBb2, $10, nRst, $02, nBb2, $04, nRst, $0E dc.b nG2, $10, nRst, $02, nBb3, $04, nRst, $02 dc.b nD4, $04, nRst, $08, nC4, $04, nRst, $02 dc.b nEb4, $10, nRst, $02, nG2, $10, nRst, $02 dc.b nF2, $04, nRst, $0E, nG2, $10, nRst, $02 dc.b nG3, $04, nRst, $02, nD4, $04, nRst, $08 dc.b nC4, $04, nRst, $02, nEb3, $0C, nRst, $06 dc.b nEb3, $04, nRst, $02, nEb3, $04, nRst, $02 dc.b nBb2, $04, nRst, $02, nEb3, $04, nRst, $1A dc.b nFs4, $0C, nEb3, $04, nRst, $02, nEb3, $04 dc.b nRst, $02, nBb2, $04, nRst, $02, nEb3, $0A dc.b nFs3, $02, nF3, nEb3, nC3, nG3, $04, nRst dc.b $02, nG3, $04, nRst, $02, nF3, $04, nRst dc.b $02, nG3, $04, nRst, $1A, nBb4, $0C, nG3 dc.b $04, nRst, $02, nG3, $04, nRst, $02, nF3 dc.b $04, nRst, $02, nG3, $0A, nBb3, $02, nG3 dc.b nF3, nEb3, nEb3, $04, nRst, $02, nEb3, $04 dc.b nRst, $02, nBb2, $04, nRst, $02, nEb3, $04 dc.b nRst, $1A, nC5, $0C, nEb3, $04, nRst, $02 dc.b nEb3, $04, nRst, $02, nBb2, $04, nRst, $02 dc.b nEb3, $0A, nFs3, $02, nF3, nEb3, nC3, nG3 dc.b $04, nRst, $02, nG3, $04, nRst, $02, nF3 dc.b $04, nRst, $02, nG3, $04, nRst, $1A, nBb4 dc.b $0C, nG3, $04, nRst, $02, nG3, $04, nRst dc.b $02, nF3, $04, nRst, $02, nG3, $0A, nBb3 dc.b $02, nG3, nF3, nEb3, nEb3, $04, nRst, $02 dc.b nEb3, $04, nRst, $02, nBb2, $04, nRst, $02 dc.b nEb3, $04, nRst, $1A, nFs4, $0C, nEb3, $04 dc.b nRst, $02, nEb3, $04, nRst, $02, nBb2, $04 dc.b nRst, $02, nEb3, $0A, nFs3, $02, nF3, nEb3 dc.b nC3, nG3, $04, nRst, $02, nG3, $04, nRst dc.b $02, nF3, $04, nRst, $02, nG3, $04, nRst dc.b $1A, nC5, $0C, nG3, $04, nRst, $02, nG3 dc.b $04, nRst, $02, nF3, $04, nRst, $02, nG3 dc.b $0A, nBb3, $02, nG3, nF3, nEb3, nCs3, $04 dc.b nRst, $02, nCs3, $04, nRst, $02, nBb2, $04 dc.b nRst, $02, nCs3, $04, nRst, $1A, nB4, $0C dc.b nCs3, $04, nRst, $02, nCs3, $04, nRst, $02 dc.b nBb2, $04, nRst, $02, nCs3, $0A, nFs3, $02 dc.b nF3, nEb3, nC3, nG3, $04, nRst, $02, nG3 dc.b $04, nRst, $02, nG3, $04, nRst, $02, nG3 dc.b $04, nRst, $02, nB3, $24, nG3, $04, nRst dc.b $02, nG3, $04, nRst, $02, nG3, $04, nRst dc.b $02, nG3, $04, nRst, $0E sJump CompetitionMenu_Jump4 dc.b $F2 ; Unused CompetitionMenu_PSG1: dc.b nRst, $60 CompetitionMenu_Jump5: dc.b nC4, $06, nRst, nC5, nC4, nRst, $1E, nC4 dc.b $06, nRst, nC5, nC4, $0C, nC5, nC4, $06 dc.b nRst, nC5, nC4, nRst, $1E, nC4, $06, nRst dc.b nC5, nC4, $0C, nC5, nC4, $06, nRst, nC5 dc.b nC4, nRst, $1E, nC4, $06, nRst, nC5, nC4 dc.b $0C, nC5, nC4, $06, nRst, nC5, nC4, nRst dc.b $1E, nC4, $06, nRst, nC5, nC4, $0C, nC5 dc.b nC5, $04, nRst, $08, nD5, $04, nRst, $08 dc.b nEb5, $04, nRst, $08, nD5, $04, nRst, $02 dc.b nEb5, $04, nRst, $08, nC5, $04, nRst, $02 dc.b nD5, $04, nRst, $08, nEb5, $04, nRst, $08 dc.b nD5, $04, nRst, $08, nC5, $04, nRst, $08 dc.b nEb5, $04, nRst, $0E, nEb5, $04, nRst, $02 dc.b nD5, $04, nRst, $02, nEb5, $04, nRst, $08 dc.b nC5, $04, nRst, $02, nD5, $04, nRst, $08 dc.b nEb5, $04, nRst, $08, nD5, $04, nRst, $08 dc.b nC5, $04, nRst, $08, nD5, $04, nRst, $08 dc.b nEb5, $04, nRst, $08, nD5, $04, nRst, $02 dc.b nEb5, $04, nRst, $08, nC5, $04, nRst, $02 dc.b nD5, $04, nRst, $08, nEb5, $04, nRst, $08 dc.b nD5, $04, nRst, $08, nC5, $04, nRst, $08 dc.b nEb5, $04, nRst, $0E, nEb5, $04, nRst, $02 dc.b nD5, $04, nRst, $02, nEb5, $04, nRst, $08 dc.b nC5, $04, nRst, $02, nD5, $04, nRst, $08 dc.b nEb5, $04, nRst, $08, nD5, $04, nRst, $08 dc.b nC5, $04, nRst, $08, nD5, $04, nRst, $08 dc.b nEb5, $04, nRst, $08, nD5, $04, nRst, $02 dc.b nEb5, $04, nRst, $08, nC5, $04, nRst, $02 dc.b nD5, $04, nRst, $08, nEb5, $04, nRst, $08 dc.b nD5, $04, nRst, $08, nC5, $04, nRst, $08 dc.b nEb5, $04, nRst, $0E, nEb5, $04, nRst, $02 dc.b nD5, $04, nRst, $02, nEb5, $04, nRst, $08 dc.b nC5, $04, nRst, $02, nD5, $04, nRst, $08 dc.b nEb5, $04, nRst, $08, nD5, $04, nRst, $08 dc.b nC5, $04, nRst, $08, nD5, $04, nRst, $08 dc.b nEb5, $04, nRst, $08, nD5, $04, nRst, $02 dc.b nEb5, $04, nRst, $08, nC5, $04, nRst, $02 dc.b nD5, $04, nRst, $08, nEb5, $04, nRst, $08 dc.b nD5, $04, nRst, $3E, nG4, $06, nBb4, nD5 dc.b nBb4, nG4, nEb4, nBb3, nBb4, $10, nRst, $02 dc.b nBb4, $04, nRst, $0E, nG4, $10, nRst, $02 dc.b nEb5, $04, nRst, $02, nG5, $04, nRst, $08 dc.b nF5, $04, nRst, $02, nEb5, $0E, nRst, $04 dc.b nG4, $10, nRst, $02, nG4, $04, nRst, $0E dc.b nEb4, $10, nRst, $02, nC5, $04, nRst, $02 dc.b nEb5, $04, nRst, $08, nD5, $06, nC5, $12 dc.b nD4, $10, nRst, $02, nD4, $04, nRst, $0E dc.b nC4, $10, nRst, $02, nF5, $04, nRst, $02 dc.b nBb5, $04, nRst, $08, nAb5, $04, nRst, $02 dc.b nG5, $10, nRst, $02, nBb3, $10, nRst, $02 dc.b nBb3, $04, nRst, $0E, nBb3, $10, nRst, $02 dc.b nBb4, $04, nRst, $02, nF5, $04, nRst, $08 dc.b nEb5, $04, nRst, $02, nC5, $0C, nRst, $06 dc.b nEb4, $04, nRst, $08, nEb4, $04, nRst, $08 dc.b nEb4, $04, nRst, $02, nEb5, $04, nRst, $08 dc.b nEb4, $04, nRst, $02, nEb5, $04, nRst, $08 dc.b nEb4, $04, nRst, $02, nEb5, $04, nRst, $08 dc.b nEb4, $04, nRst, $02, nEb4, $04, nRst, $02 dc.b nEb5, $04, nRst, $02, nG4, $04, nRst, $08 dc.b nG4, $04, nRst, $08, nG4, $04, nRst, $02 dc.b nG5, $04, nRst, $08, nG4, $04, nRst, $02 dc.b nG5, $04, nRst, $08, nG4, $04, nRst, $02 dc.b nG5, $04, nRst, $08, nG4, $04, nRst, $02 dc.b nG4, $04, nRst, $02, nG5, $04, nRst, $02 dc.b nEb4, $04, nRst, $08, nEb4, $04, nRst, $08 dc.b nEb4, $04, nRst, $02, nEb5, $04, nRst, $08 dc.b nEb4, $04, nRst, $02, nEb5, $04, nRst, $08 dc.b nEb4, $04, nRst, $02, nEb5, $04, nRst, $08 dc.b nEb4, $04, nRst, $02, nEb4, $04, nRst, $02 dc.b nEb5, $04, nRst, $02, nG4, $04, nRst, $08 dc.b nG4, $04, nRst, $08, nG4, $04, nRst, $02 dc.b nG5, $04, nRst, $08, nG4, $04, nRst, $02 dc.b nG5, $04, nRst, $08, nG4, $04, nRst, $02 dc.b nG5, $04, nRst, $08, nG4, $04, nRst, $02 dc.b nG4, $04, nRst, $02, nG5, $04, nRst, $02 dc.b nEb4, $04, nRst, $08, nEb4, $04, nRst, $08 dc.b nEb4, $04, nRst, $02, nEb5, $04, nRst, $08 dc.b nEb4, $04, nRst, $02, nEb5, $04, nRst, $08 dc.b nEb4, $04, nRst, $02, nEb5, $04, nRst, $08 dc.b nEb4, $04, nRst, $02, nEb4, $04, nRst, $02 dc.b nEb5, $04, nRst, $02, nG4, $04, nRst, $08 dc.b nG4, $04, nRst, $08, nG4, $04, nRst, $02 dc.b nG5, $04, nRst, $08, nG4, $04, nRst, $02 dc.b nG5, $04, nRst, $08, nG4, $04, nRst, $02 dc.b nG5, $04, nRst, $08, nG4, $04, nRst, $02 dc.b nG4, $04, nRst, $02, nG5, $04, nRst, $02 dc.b nF4, $04, nRst, $08, nF4, $04, nRst, $08 dc.b nF4, $04, nRst, $02, nF5, $04, nRst, $08 dc.b nF4, $04, nRst, $02, nF5, $04, nRst, $08 dc.b nF4, $04, nRst, $02, nF5, $04, nRst, $08 dc.b nF4, $04, nRst, $02, nF4, $04, nRst, $02 dc.b nF5, $04, nRst, $02, nG4, $04, nRst, $08 dc.b nG4, $04, nRst, $08, nG4, $04, nRst, $02 dc.b nG5, $04, nRst, $08, nG4, $04, nRst, $02 dc.b nG5, $04, nRst, $08, nG4, $04, nRst, $02 dc.b nG5, $04, nRst, $08, nG4, $04, nRst, $02 dc.b nG4, $04, nRst, $02, nG5, $04, nRst, $02 sJump CompetitionMenu_Jump5 dc.b $F2 ; Unused CompetitionMenu_PSG2: dc.b nRst, $7F, nRst, nRst, nRst, nRst, nRst, nRst dc.b nRst, nRst, nRst, nRst, nRst, nRst, nRst, nRst dc.b nRst, nRst, nRst, nRst, $72 sJump CompetitionMenu_Jump5 dc.b $F2 ; Unused CompetitionMenu_PSG3: sVolEnvPSG v02 sNoisePSG $E7 dc.b nRst, $60 CompetitionMenu_Jump6: dc.b nBb6, $06, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, $04, nBb6, nBb6, nBb6, $06, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, $04, nBb6, nBb6 dc.b nBb6, $06, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b $04, nBb6, nBb6, nBb6, $06, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, $04, nBb6, nBb6, nBb6, $06 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, $04, nBb6 dc.b nBb6, nBb6, $06, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, $04, nBb6, nBb6, nBb6, $06, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6, nBb6 dc.b nBb6, nBb6, nBb6, nRst, $60 sJump CompetitionMenu_Jump6 dc.b $F2 ; Unused CompetitionMenu_Patches: ; Patch $00 ; $3C ; $01, $00, $00, $00, $1F, $1F, $15, $1F ; $11, $0D, $12, $05, $07, $04, $09, $02 ; $55, $3A, $25, $1A, $1A, $80, $07, $80 spAlgorithm $04 spFeedback $07 spDetune $00, $00, $00, $00 spMultiple $01, $00, $00, $00 spRateScale $00, $00, $00, $00 spAttackRt $1F, $15, $1F, $1F spAmpMod $00, $00, $00, $00 spSustainRt $11, $12, $0D, $05 spSustainLv $05, $02, $03, $01 spDecayRt $07, $09, $04, $02 spReleaseRt $05, $05, $0A, $0A spTotalLv $1A, $07, $00, $00 ; Patch $01 ; $3D ; $01, $01, $01, $01, $94, $19, $19, $19 ; $0F, $0D, $0D, $0D, $07, $04, $04, $04 ; $25, $1A, $1A, $1A, $15, $80, $80, $80 spAlgorithm $05 spFeedback $07 spDetune $00, $00, $00, $00 spMultiple $01, $01, $01, $01 spRateScale $02, $00, $00, $00 spAttackRt $14, $19, $19, $19 spAmpMod $00, $00, $00, $00 spSustainRt $0F, $0D, $0D, $0D spSustainLv $02, $01, $01, $01 spDecayRt $07, $04, $04, $04 spReleaseRt $05, $0A, $0A, $0A spTotalLv $15, $00, $00, $00 ; Patch $02 ; $03 ; $00, $D7, $33, $02, $5F, $9F, $5F, $1F ; $13, $0F, $0A, $0A, $10, $0F, $02, $09 ; $35, $15, $25, $1A, $13, $16, $15, $80 spAlgorithm $03 spFeedback $00 spDetune $00, $03, $0D, $00 spMultiple $00, $03, $07, $02 spRateScale $01, $01, $02, $00 spAttackRt $1F, $1F, $1F, $1F spAmpMod $00, $00, $00, $00 spSustainRt $13, $0A, $0F, $0A spSustainLv $03, $02, $01, $01 spDecayRt $10, $02, $0F, $09 spReleaseRt $05, $05, $05, $0A spTotalLv $13, $15, $16, $00 ; Patch $03 ; $34 ; $70, $72, $31, $31, $1F, $1F, $1F, $1F ; $10, $06, $06, $06, $01, $06, $06, $06 ; $35, $1A, $15, $1A, $10, $80, $18, $80 spAlgorithm $04 spFeedback $06 spDetune $07, $03, $07, $03 spMultiple $00, $01, $02, $01 spRateScale $00, $00, $00, $00 spAttackRt $1F, $1F, $1F, $1F spAmpMod $00, $00, $00, $00 spSustainRt $10, $06, $06, $06 spSustainLv $03, $01, $01, $01 spDecayRt $01, $06, $06, $06 spReleaseRt $05, $05, $0A, $0A spTotalLv $10, $18, $00, $00 ; Patch $04 ; $3E ; $77, $71, $32, $31, $1F, $1F, $1F, $1F ; $0D, $06, $00, $00, $08, $06, $00, $00 ; $15, $0A, $0A, $0A, $1B, $80, $80, $80 spAlgorithm $06 spFeedback $07 spDetune $07, $03, $07, $03 spMultiple $07, $02, $01, $01 spRateScale $00, $00, $00, $00 spAttackRt $1F, $1F, $1F, $1F spAmpMod $00, $00, $00, $00 spSustainRt $0D, $00, $06, $00 spSustainLv $01, $00, $00, $00 spDecayRt $08, $00, $06, $00 spReleaseRt $05, $0A, $0A, $0A spTotalLv $1B, $00, $00, $00 ; Patch $05 ; $20 ; $36, $35, $30, $31, $DF, $DF, $9F, $9F ; $07, $06, $09, $06, $07, $06, $06, $08 ; $20, $10, $10, $F8, $19, $37, $13, $80 spAlgorithm $00 spFeedback $04 spDetune $03, $03, $03, $03 spMultiple $06, $00, $05, $01 spRateScale $03, $02, $03, $02 spAttackRt $1F, $1F, $1F, $1F spAmpMod $00, $00, $00, $00 spSustainRt $07, $09, $06, $06 spSustainLv $02, $01, $01, $0F spDecayRt $07, $06, $06, $08 spReleaseRt $00, $00, $00, $08 spTotalLv $19, $13, $37, $00 ; Patch $06 ; $3A ; $01, $07, $01, $01, $8E, $8E, $8D, $53 ; $0E, $0E, $0E, $03, $00, $00, $00, $07 ; $1F, $FF, $1F, $0F, $18, $28, $27, $80 spAlgorithm $02 spFeedback $07 spDetune $00, $00, $00, $00 spMultiple $01, $01, $07, $01 spRateScale $02, $02, $02, $01 spAttackRt $0E, $0D, $0E, $13 spAmpMod $00, $00, $00, $00 spSustainRt $0E, $0E, $0E, $03 spSustainLv $01, $01, $0F, $00 spDecayRt $00, $00, $00, $07 spReleaseRt $0F, $0F, $0F, $0F spTotalLv $18, $27, $28, $00 ; Patch $07 ; $03 ; $00, $D7, $33, $02, $5F, $9F, $5F, $1F ; $13, $0F, $0A, $0A, $10, $0F, $02, $09 ; $35, $15, $25, $1A, $13, $16, $15, $80 spAlgorithm $03 spFeedback $00 spDetune $00, $03, $0D, $00 spMultiple $00, $03, $07, $02 spRateScale $01, $01, $02, $00 spAttackRt $1F, $1F, $1F, $1F spAmpMod $00, $00, $00, $00 spSustainRt $13, $0A, $0F, $0A spSustainLv $03, $02, $01, $01 spDecayRt $10, $02, $0F, $09 spReleaseRt $05, $05, $05, $0A spTotalLv $13, $15, $16, $00 ; Patch $08 ; $3C ; $71, $72, $3F, $34, $8D, $52, $9F, $1F ; $09, $00, $00, $0D, $00, $00, $00, $00 ; $23, $08, $02, $F7, $15, $80, $1D, $87 spAlgorithm $04 spFeedback $07 spDetune $07, $03, $07, $03 spMultiple $01, $0F, $02, $04 spRateScale $02, $02, $01, $00 spAttackRt $0D, $1F, $12, $1F spAmpMod $00, $00, $00, $00 spSustainRt $09, $00, $00, $0D spSustainLv $02, $00, $00, $0F spDecayRt $00, $00, $00, $00 spReleaseRt $03, $02, $08, $07 spTotalLv $15, $1D, $00, $07 ; Patch $09 ; $3D ; $01, $01, $00, $00, $8E, $52, $14, $4C ; $08, $08, $0E, $03, $00, $00, $00, $00 ; $1F, $1F, $1F, $1F, $1B, $80, $80, $9B spAlgorithm $05 spFeedback $07 spDetune $00, $00, $00, $00 spMultiple $01, $00, $01, $00 spRateScale $02, $00, $01, $01 spAttackRt $0E, $14, $12, $0C spAmpMod $00, $00, $00, $00 spSustainRt $08, $0E, $08, $03 spSustainLv $01, $01, $01, $01 spDecayRt $00, $00, $00, $00 spReleaseRt $0F, $0F, $0F, $0F spTotalLv $1B, $00, $00, $1B ; Patch $0A ; $3A ; $01, $01, $01, $02, $8D, $07, $07, $52 ; $09, $00, $00, $03, $01, $02, $02, $00 ; $52, $02, $02, $28, $18, $22, $18, $80 spAlgorithm $02 spFeedback $07 spDetune $00, $00, $00, $00 spMultiple $01, $01, $01, $02 spRateScale $02, $00, $00, $01 spAttackRt $0D, $07, $07, $12 spAmpMod $00, $00, $00, $00 spSustainRt $09, $00, $00, $03 spSustainLv $05, $00, $00, $02 spDecayRt $01, $02, $02, $00 spReleaseRt $02, $02, $02, $08 spTotalLv $18, $18, $22, $00 ; Patch $0B ; $3C ; $36, $31, $76, $71, $94, $9F, $96, $9F ; $12, $00, $14, $0F, $04, $0A, $04, $0D ; $2F, $0F, $4F, $2F, $33, $80, $1A, $80 spAlgorithm $04 spFeedback $07 spDetune $03, $07, $03, $07 spMultiple $06, $06, $01, $01 spRateScale $02, $02, $02, $02 spAttackRt $14, $16, $1F, $1F spAmpMod $00, $00, $00, $00 spSustainRt $12, $14, $00, $0F spSustainLv $02, $04, $00, $02 spDecayRt $04, $04, $0A, $0D spReleaseRt $0F, $0F, $0F, $0F spTotalLv $33, $1A, $00, $00 ; Patch $0C ; $1C ; $7C, $37, $3E, $37, $94, $99, $94, $99 ; $08, $0A, $08, $0A, $00, $05, $00, $05 ; $3F, $4F, $3F, $4F, $2B, $80, $1B, $80 spAlgorithm $04 spFeedback $03 spDetune $07, $03, $03, $03 spMultiple $0C, $0E, $07, $07 spRateScale $02, $02, $02, $02 spAttackRt $14, $14, $19, $19 spAmpMod $00, $00, $00, $00 spSustainRt $08, $08, $0A, $0A spSustainLv $03, $03, $04, $04 spDecayRt $00, $00, $05, $05 spReleaseRt $0F, $0F, $0F, $0F spTotalLv $2B, $1B, $00, $00 ; Patch $0D ; $3A ; $01, $07, $01, $01, $8E, $8E, $8D, $53 ; $0E, $0E, $0E, $03, $00, $00, $00, $07 ; $1F, $FF, $1F, $0F, $18, $28, $27, $80 spAlgorithm $02 spFeedback $07 spDetune $00, $00, $00, $00 spMultiple $01, $01, $07, $01 spRateScale $02, $02, $02, $01 spAttackRt $0E, $0D, $0E, $13 spAmpMod $00, $00, $00, $00 spSustainRt $0E, $0E, $0E, $03 spSustainLv $01, $01, $0F, $00 spDecayRt $00, $00, $00, $07 spReleaseRt $0F, $0F, $0F, $0F spTotalLv $18, $27, $28, $00 ; Patch $0E ; $3A ; $31, $25, $73, $41, $5F, $1F, $1F, $9C ; $08, $05, $04, $1E, $03, $04, $02, $06 ; $2F, $2F, $1F, $0F, $29, $27, $1F, $80 spAlgorithm $02 spFeedback $07 spDetune $03, $07, $02, $04 spMultiple $01, $03, $05, $01 spRateScale $01, $00, $00, $02 spAttackRt $1F, $1F, $1F, $1C spAmpMod $00, $00, $00, $00 spSustainRt $08, $04, $05, $1E spSustainLv $02, $01, $02, $00 spDecayRt $03, $02, $04, $06 spReleaseRt $0F, $0F, $0F, $0F spTotalLv $29, $1F, $27, $00 ; Patch $0F ; $14 ; $71, $72, $31, $31, $0F, $0F, $0F, $0F ; $00, $0F, $00, $00, $00, $00, $00, $00 ; $0F, $AF, $0F, $0F, $32, $80, $28, $80 spAlgorithm $04 spFeedback $02 spDetune $07, $03, $07, $03 spMultiple $01, $01, $02, $01 spRateScale $00, $00, $00, $00 spAttackRt $0F, $0F, $0F, $0F spAmpMod $00, $00, $00, $00 spSustainRt $00, $00, $0F, $00 spSustainLv $00, $00, $0A, $00 spDecayRt $00, $00, $00, $00 spReleaseRt $0F, $0F, $0F, $0F spTotalLv $32, $28, $00, $00 ; Patch $10 ; $14 ; $75, $72, $35, $32, $9F, $9F, $9F, $9F ; $05, $05, $00, $0A, $05, $05, $07, $05 ; $2F, $FF, $0F, $2F, $1E, $80, $14, $80 spAlgorithm $04 spFeedback $02 spDetune $07, $03, $07, $03 spMultiple $05, $05, $02, $02 spRateScale $02, $02, $02, $02 spAttackRt $1F, $1F, $1F, $1F spAmpMod $00, $00, $00, $00 spSustainRt $05, $00, $05, $0A spSustainLv $02, $00, $0F, $02 spDecayRt $05, $07, $05, $05 spReleaseRt $0F, $0F, $0F, $0F spTotalLv $1E, $14, $00, $00 ; Patch $11 ; $3D ; $01, $00, $01, $02, $12, $1F, $1F, $14 ; $07, $02, $02, $0A, $05, $05, $05, $05 ; $2F, $2F, $2F, $AF, $1C, $80, $82, $80 spAlgorithm $05 spFeedback $07 spDetune $00, $00, $00, $00 spMultiple $01, $01, $00, $02 spRateScale $00, $00, $00, $00 spAttackRt $12, $1F, $1F, $14 spAmpMod $00, $00, $00, $00 spSustainRt $07, $02, $02, $0A spSustainLv $02, $02, $02, $0A spDecayRt $05, $05, $05, $05 spReleaseRt $0F, $0F, $0F, $0F spTotalLv $1C, $02, $00, $00 ; Patch $12 ; $1C ; $73, $72, $33, $32, $94, $99, $94, $99 ; $08, $0A, $08, $0A, $00, $05, $00, $05 ; $3F, $4F, $3F, $4F, $1E, $80, $19, $80 spAlgorithm $04 spFeedback $03 spDetune $07, $03, $07, $03 spMultiple $03, $03, $02, $02 spRateScale $02, $02, $02, $02 spAttackRt $14, $14, $19, $19 spAmpMod $00, $00, $00, $00 spSustainRt $08, $08, $0A, $0A spSustainLv $03, $03, $04, $04 spDecayRt $00, $00, $05, $05 spReleaseRt $0F, $0F, $0F, $0F spTotalLv $1E, $19, $00, $00 ; Patch $13 ; $31 ; $33, $01, $00, $00, $9F, $1F, $1F, $1F ; $0D, $0A, $0A, $0A, $0A, $07, $07, $07 ; $FF, $AF, $AF, $AF, $1E, $1E, $1E, $80 spAlgorithm $01 spFeedback $06 spDetune $03, $00, $00, $00 spMultiple $03, $00, $01, $00 spRateScale $02, $00, $00, $00 spAttackRt $1F, $1F, $1F, $1F spAmpMod $00, $00, $00, $00 spSustainRt $0D, $0A, $0A, $0A spSustainLv $0F, $0A, $0A, $0A spDecayRt $0A, $07, $07, $07 spReleaseRt $0F, $0F, $0F, $0F spTotalLv $1E, $1E, $1E, $00 ; Patch $14 ; $3A ; $70, $76, $30, $71, $1F, $95, $1F, $1F ; $0E, $0F, $05, $0C, $07, $06, $06, $07 ; $2F, $4F, $1F, $5F, $21, $12, $28, $80 spAlgorithm $02 spFeedback $07 spDetune $07, $03, $07, $07 spMultiple $00, $00, $06, $01 spRateScale $00, $00, $02, $00 spAttackRt $1F, $1F, $15, $1F spAmpMod $00, $00, $00, $00 spSustainRt $0E, $05, $0F, $0C spSustainLv $02, $01, $04, $05 spDecayRt $07, $06, $06, $07 spReleaseRt $0F, $0F, $0F, $0F spTotalLv $21, $28, $12, $00 ; Patch $15 ; $28 ; $71, $00, $30, $01, $1F, $1F, $1D, $1F ; $06, $06, $06, $05, $05, $05, $02, $05 ; $4F, $4F, $2F, $3F, $1E, $28, $1E, $80 spAlgorithm $00 spFeedback $05 spDetune $07, $03, $00, $00 spMultiple $01, $00, $00, $01 spRateScale $00, $00, $00, $00 spAttackRt $1F, $1D, $1F, $1F spAmpMod $00, $00, $00, $00 spSustainRt $06, $06, $06, $05 spSustainLv $04, $02, $04, $03 spDecayRt $05, $02, $05, $05 spReleaseRt $0F, $0F, $0F, $0F spTotalLv $1E, $1E, $28, $00 ; Patch $16 ; $3E ; $38, $01, $7A, $34, $59, $D9, $5F, $9C ; $0F, $04, $0F, $0A, $02, $02, $05, $05 ; $AF, $AF, $66, $66, $28, $80, $A3, $80 spAlgorithm $06 spFeedback $07 spDetune $03, $07, $00, $03 spMultiple $08, $0A, $01, $04 spRateScale $01, $01, $03, $02 spAttackRt $19, $1F, $19, $1C spAmpMod $00, $00, $00, $00 spSustainRt $0F, $0F, $04, $0A spSustainLv $0A, $06, $0A, $06 spDecayRt $02, $05, $02, $05 spReleaseRt $0F, $06, $0F, $06 spTotalLv $28, $23, $00, $00 ; Patch $17 ; $39 ; $32, $31, $72, $71, $1F, $1F, $1F, $1F ; $00, $00, $00, $00, $00, $00, $00, $00 ; $0F, $0F, $0F, $0F, $1B, $32, $28, $80 spAlgorithm $01 spFeedback $07 spDetune $03, $07, $03, $07 spMultiple $02, $02, $01, $01 spRateScale $00, $00, $00, $00 spAttackRt $1F, $1F, $1F, $1F spAmpMod $00, $00, $00, $00 spSustainRt $00, $00, $00, $00 spSustainLv $00, $00, $00, $00 spDecayRt $00, $00, $00, $00 spReleaseRt $0F, $0F, $0F, $0F spTotalLv $1B, $28, $32, $00 ; Patch $18 ; $07 ; $34, $74, $32, $71, $1F, $1F, $1F, $1F ; $0A, $0A, $05, $03, $00, $00, $00, $00 ; $3F, $3F, $2F, $2F, $8A, $8A, $80, $80 spAlgorithm $07 spFeedback $00 spDetune $03, $03, $07, $07 spMultiple $04, $02, $04, $01 spRateScale $00, $00, $00, $00 spAttackRt $1F, $1F, $1F, $1F spAmpMod $00, $00, $00, $00 spSustainRt $0A, $05, $0A, $03 spSustainLv $03, $02, $03, $02 spDecayRt $00, $00, $00, $00 spReleaseRt $0F, $0F, $0F, $0F spTotalLv $0A, $00, $0A, $00 ; Patch $19 ; $3A ; $31, $37, $31, $31, $8D, $8D, $8E, $53 ; $0E, $0E, $0E, $03, $00, $00, $00, $00 ; $1F, $FF, $1F, $0F, $17, $28, $26, $80 spAlgorithm $02 spFeedback $07 spDetune $03, $03, $03, $03 spMultiple $01, $01, $07, $01 spRateScale $02, $02, $02, $01 spAttackRt $0D, $0E, $0D, $13 spAmpMod $00, $00, $00, $00 spSustainRt $0E, $0E, $0E, $03 spSustainLv $01, $01, $0F, $00 spDecayRt $00, $00, $00, $00 spReleaseRt $0F, $0F, $0F, $0F spTotalLv $17, $26, $28, $00 ; Patch $1A ; $3B ; $3A, $31, $71, $74, $DF, $1F, $1F, $DF ; $00, $0A, $0A, $05, $00, $05, $05, $03 ; $0F, $5F, $1F, $5F, $32, $1E, $0F, $80 spAlgorithm $03 spFeedback $07 spDetune $03, $07, $03, $07 spMultiple $0A, $01, $01, $04 spRateScale $03, $00, $00, $03 spAttackRt $1F, $1F, $1F, $1F spAmpMod $00, $00, $00, $00 spSustainRt $00, $0A, $0A, $05 spSustainLv $00, $01, $05, $05 spDecayRt $00, $05, $05, $03 spReleaseRt $0F, $0F, $0F, $0F spTotalLv $32, $0F, $1E, $00 ; Patch $1B ; $3A ; $32, $56, $32, $42, $8D, $4F, $15, $52 ; $06, $08, $07, $04, $02, $00, $00, $00 ; $1F, $1F, $2F, $2F, $19, $20, $2A, $80 spAlgorithm $02 spFeedback $07 spDetune $03, $03, $05, $04 spMultiple $02, $02, $06, $02 spRateScale $02, $00, $01, $01 spAttackRt $0D, $15, $0F, $12 spAmpMod $00, $00, $00, $00 spSustainRt $06, $07, $08, $04 spSustainLv $01, $02, $01, $02 spDecayRt $02, $00, $00, $00 spReleaseRt $0F, $0F, $0F, $0F spTotalLv $19, $2A, $20, $00 ; Patch $1C ; $2C ; $71, $74, $32, $32, $1F, $12, $1F, $12 ; $00, $0A, $00, $0A, $00, $00, $00, $00 ; $0F, $1F, $0F, $1F, $16, $80, $17, $80 spAlgorithm $04 spFeedback $05 spDetune $07, $03, $07, $03 spMultiple $01, $02, $04, $02 spRateScale $00, $00, $00, $00 spAttackRt $1F, $1F, $12, $12 spAmpMod $00, $00, $00, $00 spSustainRt $00, $00, $0A, $0A spSustainLv $00, $00, $01, $01 spDecayRt $00, $00, $00, $00 spReleaseRt $0F, $0F, $0F, $0F spTotalLv $16, $17, $00, $00
35.224841
65
0.562582
e7ac284255b82f5278043c3583319ec6df9f82c4
346
asm
Assembly
programs/oeis/321/A321018.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/321/A321018.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/321/A321018.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A321018: a(n) = round(pi(n)/2). ; 0,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13 seq $0,36234 ; Number of primes <= n, if 1 is counted as a prime. div $0,2
57.666667
235
0.580925
585270c3dcf4148652122a3be8ca3c5ca1ed74c9
6,465
asm
Assembly
src/bootSect.asm
queso-fuego/amateuros
e728d9eb4ceeb0f80f9fc93fe5a6fd30e17867ac
[ "0BSD" ]
10
2021-07-06T18:57:58.000Z
2022-02-25T22:52:57.000Z
src/bootSect.asm
queso-fuego/amateuros
e728d9eb4ceeb0f80f9fc93fe5a6fd30e17867ac
[ "0BSD" ]
null
null
null
src/bootSect.asm
queso-fuego/amateuros
e728d9eb4ceeb0f80f9fc93fe5a6fd30e17867ac
[ "0BSD" ]
4
2021-09-19T05:04:53.000Z
2022-03-09T22:13:48.000Z
;;; ;;; "Simple" boot sector using ATA PIO ports to read sectors from disk into memory ;;; use16 FILETABLE_ADDRESS equ 1000h org 7C00h ; 'origin' of Boot code; helps make sure addresses don't change xor ax, ax ; Ensure data & extra segments are 0 to start, can help mov es, ax ; with booting on hardware mov ds, ax mov byte [drive_num], dl ; DL contains initial drive # on boot ;; READ FILE TABLE INTO MEMORY FIRST xor bl, bl ; Will be reading 1 sector mov di, 1000h ; Memory address to read sector into (0000h:1000h) mov dx, 1F2h ; Sector count port mov al, 1 ; # of sectors to read out dx, al mov dx, 1F3h ; Sector # port mov al, 02h ; Sector # to start reading at (1-based) out dx, al mov dx, 1F6h ; Head & drive # port mov al, [drive_num] ; Drive # - hard disk 1 and al, 0Fh ; Head # (low nibble) or al, 0A0h ; default high nibble to 'primary' drive (drive 1), 'secondary' drive (drive 2) would be hex B or 1011b out dx, al ; Send head/drive # mov dx, 1F4h ; Cylinder low port xor al, al ; Cylinder low # out dx, al mov dx, 1F5h ; Cylinder high port out dx, al mov dx, 1F7h ; Command port (writing port 1F7h) mov al, 20h ; Read with retry out dx, al call load_sector_loop ;; READ 2ND STAGE BOOTLOADER INTO MEMORY SECOND mov si, bootloader_string call get_filetable_entry mov di, 7E00h ; Memory address to read sectors into call load_sectors ;; READ KERNEL INTO MEMORY THIRD mov si, kernel_string call get_filetable_entry push es mov ax, 5000h mov es, ax ; set ES to 5000h, will point to 50000h xor di, di ; Memory address to read sectors into (5000h:0000h) = (50000h) call load_sectors pop es ;; LOAD FONT INTO MEMORY FOURTH mov si, font_string call get_filetable_entry mov di, 0A000h ; Memory address to read sectors into call load_sectors ;; Jump to 2nd stage bootloader here, does not return mov dl, [drive_num] mov [1500h], dl ; Store drive # in global address jmp 0000h:7E00h ;; Subroutine to load disk sectors ;; Inputs: ;; DI points to address to load sectors to ;; SI points to file table entry ;; NOTE: "Typical" disk limits are: Cylinder = 0-1023, Head = 0-15, Sector = 1-63 (1-based!!!) load_sectors: ;; First get correct CHS values from given starting sector in filetable entry ;; Formula: ;; Sector = sector % 63, if 0 then sector is at 63 which is last sector on a head number ;; Head = sector / 63, if sector % 63 then decrement by 1 ;; Cylinder = head / 16 ;; Head = head % 16 ;; ------------------------ mov word [cylinder], 0 ; Reset CHS values mov byte [head], 0 mov byte [start_sector], 0 mov al, [si+14] ; Get starting sector mov [start_sector], al cmp al, 63 ; Sector limit (1-63) jle .go_on ; Sector is <= 63, good to go xor ah, ah mov bl, 63 div bl ; starting_sector / 63, AH = remainder (sector % 63), AL = quotient (sector / 63) cmp ah, 0 ; sector % 63 = 0? jne .cylinder mov ah, 63 ; Yes, reset sector to 63 dec al ; decrement head # (sector / 63) .cylinder: mov [start_sector], ah ; AH = sector #, AL = head # xor ah, ah mov bl, 16 div bl ; Head / 16, AH = remainder (head % 16), AL = quotient (head / 16) mov [cylinder], al ; Cylinder = head / 16 mov [head], ah ;; TODO: Check for over disk limit (cylinder > 1023) .go_on: mov al, [si+15] ; File size in sectors mov bl, al dec bl ; BL = sectors-1, for disk reading logic later mov dx, 1F2h ; Sector count port out dx, al mov dx, 1F3h ; Sector # port mov al, [start_sector] out dx, al mov dx, 1F6h ; Head & drive # port mov al, 0A0h ; default high nibble to 'primary' drive (drive 1), 'secondary' drive (drive 2) would be hex B or 1011b or al, [head] ; Set low nibble to head # (0-15) out dx, al ; Send head/drive # mov dx, 1F4h ; Cylinder low port mov ax, [cylinder] ; Cylinder low byte is in AL, high byte is in AH out dx, al mov dx, 1F5h ; Cylinder high port mov al, ah ; Cylinder high byte out dx, al mov dx, 1F7h ; Command port (writing port 1F7h) mov al, 20h ; Read with retry out dx, al ;; Poll status port after reading 1 sector load_sector_loop: in al, dx ; Status register (reading port 1F7h) test al, 8 ; Sector buffer requires servicing je load_sector_loop ; Keep trying until sector buffer is ready mov cx, 256 ; # of words to read for 1 sector mov dx, 1F0h ; Data port, reading rep insw ; Read bytes from DX port # into DI, CX # of times ;; 400ns delay - Read alternate status register mov dx, 3F6h in al, dx in al, dx in al, dx in al, dx cmp bl, 0 ; Sector # to still read je .return dec bl mov dx, 1F7h jmp load_sector_loop .return: ret ;; Subroutine to get a file table entry from the file table ;; Inputs: ;; SI points to file name to search for ;; Outputs: ;; SI points to start of the file table entry for given file name get_filetable_entry: mov di, FILETABLE_ADDRESS .loop: mov cl, 10 push di push si repe cmpsb je .return pop si pop di add di, 16 ; Point to next filetable entry jmp .loop .return: pop si pop di mov si, di ; Set si to the entry ret ;; VARIABLES drive_num: db 0 bootloader_string: db '2ndstage ' kernel_string: db 'kernel ' font_string: db 'termu18n ' cylinder: dw 0 head: db 0 start_sector: db 0 ;; Boot sector magic times 510-($-$$) db 0 ; pads out 0s until we reach 510th byte dw 0AA55h ; BIOS magic number; BOOT magic #
31.536585
127
0.564424
d25ff1eaeb9f4c1ab3fe0af13e7a657757066173
380
asm
Assembly
programs/oeis/113/A113909.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/113/A113909.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/113/A113909.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A113909: Square table of odd numbers which are neither squares nor one less than squares, read by antidiagonals. ; 5,7,11,13,17,19,21,23,27,29,31,33,37,39,41,43,45,47,51,53,55,57,59,61,65,67,69,71,73,75,77,79,83,85,87,89,91,93,95,97,101,103,105,107,109,111,113,115,117,119,123,125,127,129,131 mov $1,$0 lpb $0 add $1,1 add $2,1 sub $0,$2 sub $0,1 lpe mul $1,2 add $1,5
29.230769
179
0.676316
233bc9577f5baa10f617f82c5554ec35e4da978d
2,626
asm
Assembly
dino/lcs/base/6718.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
dino/lcs/base/6718.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
dino/lcs/base/6718.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
1
2020-12-17T08:59:10.000Z
2020-12-17T08:59:10.000Z
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 0049E8 clr.w ($6718,A5) 0049EC lea ($672e,A5), A0 [base+6718] 004BC0 cmpi.w #$3, ($6718,A5) 004BC6 bcc $4bd8 [base+6718] 004BD4 addq.w #1, ($6718,A5) [base+6720] 004BD8 rts [base+6718] 0105EA move.w D0, ($6718,A5) 0105EE lea ($672e,A5), A0 01066C move.w ($6718,A5), D7 010670 beq $106e0 [base+6718] 01068C move.w ($6718,A5), D7 010690 subq.w #1, D7 [base+6718] 0107F8 move.w ($6718,A5), D7 0107FC beq $1081e [base+6718] 010CD0 move.w ($6718,A5), D7 010CD4 beq $10d14 [base+6718] 010DE8 move.w ($6718,A5), D7 010DEC beq $10e32 [base+6718] 0115CA move.w ($6718,A5), D7 0115CE beq $115f2 [base+6718] 011962 move.w ($6718,A5), D7 011966 beq $119a6 [base+6718] 011A9E move.w ($6718,A5), D7 011AA2 beq $11ac4 [base+6718] 011D08 move.w ($6718,A5), D7 011D0C beq $11d30 [base+6718] 0AAACA move.l (A0), D2 0AAACC move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAACE move.w D0, ($2,A0) 0AAAD2 cmp.l (A0), D0 0AAAD4 bne $aaafc 0AAAD8 move.l D2, (A0)+ 0AAADA cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAAE6 move.l (A0), D2 0AAAE8 move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAAF4 move.l D2, (A0)+ 0AAAF6 cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] copyright zengfr site:http://github.com/zengfr/romhack
59.681818
351
0.651942
45f80525d16ff0e1c04c0cc4f5b05126e01a96b0
278
asm
Assembly
programs/oeis/133/A133109.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/133/A133109.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/133/A133109.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A133109: A042965 as a diagonalized matrix. ; 1,0,3,0,0,4,0,0,0,5,0,0,0,0,7,0,0,0,0,0,8,0,0,0,0,0,0,9,0,0,0,0,0,0,0,11 seq $0,127648 ; Triangle read by rows: row n consists of n zeros followed by n+1. seq $0,188070 ; Positions of 1 in A188068; complement of A188069. sub $0,2
39.714286
81
0.672662
39613439c55368e7d4fc1350cfe9883c58c23762
860
asm
Assembly
libsrc/_DEVELOPMENT/math/integer/l_muls_32_32x32.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
4
2021-12-23T15:34:05.000Z
2021-12-23T15:36:16.000Z
libsrc/_DEVELOPMENT/math/integer/l_muls_32_32x32.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/integer/l_muls_32_32x32.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
null
null
null
INCLUDE "config_private.inc" SECTION code_clib SECTION code_math PUBLIC l_muls_32_32x32 ; compute: dehl = dehl * dehl' ; alters : af, bc, de, hl, bc', de', hl', ix IF __CPU_Z180__ && ((__CLIB_OPT_IMATH = 0) || (__CLIB_OPT_IMATH = 100)) EXTERN l_z180_muls_32_32x32 defc l_muls_32_32x32 = l_z180_muls_32_32x32 ELSE IF __CPU_Z80N__ && ((__CLIB_OPT_IMATH = 0) || (__CLIB_OPT_IMATH = 100)) EXTERN l_z80n_muls_32_32x32 defc l_muls_32_32x32 = l_z80n_muls_32_32x32 ELSE ;IF __IO_LUT_MODULE_AVAILABLE ; ; EXTERN l_lut_mulu_32_32x32 ; defc l_muls_32_32x32 = l_lut_mulu_32_32x32 ; ;ELSE IF __CLIB_OPT_IMATH <= 50 EXTERN l_small_muls_32_32x32 defc l_muls_32_32x32 = l_small_muls_32_32x32 ENDIF IF __CLIB_OPT_IMATH > 50 EXTERN l_fast_muls_32_32x32 defc l_muls_32_32x32 = l_fast_muls_32_32x32 ENDIF ;ENDIF ENDIF ENDIF
16.538462
71
0.752326
06e14b286004fcbce7fecb7d98d855a5b56a955c
1,451
asm
Assembly
src/print.asm
vzwGrey/meiji-os
d1e0d9df4effde8948394bdf1ed4bc92c6e89b21
[ "MIT" ]
2
2021-06-30T02:24:41.000Z
2021-12-28T12:08:39.000Z
src/print.asm
vzwGrey/meiji-os
d1e0d9df4effde8948394bdf1ed4bc92c6e89b21
[ "MIT" ]
null
null
null
src/print.asm
vzwGrey/meiji-os
d1e0d9df4effde8948394bdf1ed4bc92c6e89b21
[ "MIT" ]
1
2021-07-31T16:25:21.000Z
2021-07-31T16:25:21.000Z
; --- ; ; This file contains various subroutines for printing text to the ; screen. ; ; The print subroutines are in this separate file so they can be loaded ; by the first stage of the bootloader without having to load everything else with it. ; ; --- ; Print a single character given by AL ; at the current position of the cursor printc: pusha ; 0x0E is the function to print a character ; from AL mov ah, 0x0E ; Page 0 mov bh, 0x00 int 0x10 popa ret ; Prints a NUL-terminated string given by the ; SI register to the screen. print: lodsb ; Check if given byte is the terminating ; NUL character cmp al, 0x00 jz .end call printc jmp print .end: ret ; Like print but will add a linebreak after ; the given string. println: call print ; Move to the next line mov al, `\n` call printc ; Move the cursor to the start of the line mov al, `\r` call printc ret ; Print an unsigned number from the BX register ; in base-16. printhex: mov cx, 4 ; A 16-bit number has 4 hexadecimal digits ror bx, 12 .loop: cmp cx, 0 je .end ; Isolate lowest 4 bits mov ax, bx and ax, 0x000F add ax, `0` ; Lift the numerical digits into the ASCII range for digits ; If the ASCII character is beyond '9' the value is >10 and has to be brought into the ; ASCII range for the character 'A'-'F' cmp ax, `9` jle .skip add ax, 7 .skip: call printc ror bx, 4 dec cx jmp .loop .end: ret
18.1375
88
0.678842
55168f7b34c5bcb4f4fbbdb887bccfdacc59a313
143
asm
Assembly
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver1/sfc/ys_w39.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver1/sfc/ys_w39.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver1/sfc/ys_w39.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: ys_w39.asm Type: file Size: 6251 Last-Modified: '2016-05-13T04:51:16Z' SHA-1: 219DF82467E096AAC7D9A265B1FBCB1537B30E1A Description: null
20.428571
47
0.811189
065aa9d66d9ffb9d6de3993c9000a21e5b3271e1
1,069
asm
Assembly
non_regression/other_sparc_1.s.asm
LRGH/plasmasm
4cd50546c3dc895763d72dd60b7c46179c1916bc
[ "Apache-2.0" ]
1
2021-02-28T21:31:18.000Z
2021-02-28T21:31:18.000Z
non_regression/other_sparc_1.s.asm
LRGH/plasmasm
4cd50546c3dc895763d72dd60b7c46179c1916bc
[ "Apache-2.0" ]
null
null
null
non_regression/other_sparc_1.s.asm
LRGH/plasmasm
4cd50546c3dc895763d72dd60b7c46179c1916bc
[ "Apache-2.0" ]
null
null
null
.file "a02ter.c" .section ".text" .align 4 .align 4 .globl toto .type toto, #function .proc 020 toto: save %sp, -96, %sp st %i0, [%fp+68] ld [%fp+68], %g1 ld [%g1], %g1 add %g1, 1, %g2 ld [%fp+68], %g1 st %g2, [%g1] restore retl nop .size toto, .-toto # ---------------------- .align 4 .align 4 .globl tata .type tata, #function .proc 020 tata: save %sp, -96, %sp st %i0, [%fp+68] ld [%fp+68], %g1 ld [%g1], %g1 add %g1, -1, %g2 ld [%fp+68], %g1 st %g2, [%g1] restore retl nop .size tata, .-tata # ---------------------- .section ".data" .align 4 .globl t .type t, #object t: .long toto .long tata .size t, 8 # ---------------------- .section ".text" .align 4 .align 4 .globl main .type main, #function .proc 04 main: save %sp, -104, %sp clr [%fp+-4] sethi %hi(t), %g1 bset %lo(t), %g1 ld [%g1], %g1 add %fp, -4, %g2 mov %g2, %o0 call %g1, 0 nop ld [%fp+-4], %g1 mov %g1, %i0 restore retl nop .size main, .-main # ---------------------- .ident "GCC: (GNU) 4.4.2"
14.847222
26
0.480823
f549750c96723e81bb2dbe86b5b53c3b8ed13e88
8,066
asm
Assembly
Projects/PJZ2/Framework/Depack/RNC_Depack_1.asm
jonathanbennett73/amiga-pjz-planet-disco-balls
1890f797ec7e8061ce4bfb9a8e6844f2ce9f6e1b
[ "MIT" ]
21
2021-04-04T06:00:44.000Z
2022-01-19T19:12:24.000Z
Projects/PJZ2/Framework/Depack/RNC_Depack_1.asm
jonathanbennett73/amiga-pjz-planet-disco-balls
1890f797ec7e8061ce4bfb9a8e6844f2ce9f6e1b
[ "MIT" ]
null
null
null
Projects/PJZ2/Framework/Depack/RNC_Depack_1.asm
jonathanbennett73/amiga-pjz-planet-disco-balls
1890f797ec7e8061ce4bfb9a8e6844f2ce9f6e1b
[ "MIT" ]
null
null
null
*------------------------------------------------------------------------------ * PRO-PACK Unpack Source Code - MC68000, Method 1 * * Copyright (c) 1991,92 Rob Northen Computing, U.K. All Rights Reserved. * * File: RNC_1.S * * Date: 24.3.92 *------------------------------------------------------------------------------ *------------------------------------------------------------------------------ * Conditional Assembly Flags *------------------------------------------------------------------------------ CHECKSUMS EQU 0 ; set this flag to 1 if you require ; the data to be validated PROTECTED EQU 0 ; set this flag to 1 if you are unpacking ; a file packed with option "-K" *------------------------------------------------------------------------------ * Return Codes *------------------------------------------------------------------------------ NOT_PACKED EQU 0 PACKED_CRC EQU -1 UNPACKED_CRC EQU -2 *------------------------------------------------------------------------------ * Other Equates *------------------------------------------------------------------------------ PACK_TYPE EQU 1 PACK_ID EQU "R"<<24+"N"<<16+"C"<<8+PACK_TYPE HEADER_LEN EQU 18 MIN_LENGTH EQU 2 CRC_POLY EQU $A001 RAW_TABLE EQU 0 POS_TABLE EQU RAW_TABLE+16*8 LEN_TABLE EQU POS_TABLE+16*8 IFEQ CHECKSUMS BUFSIZE EQU 16*8*3 ELSEIF BUFSIZE EQU 512 ENDC counts EQUR d4 key EQUR d5 bit_buffer EQUR d6 bit_count EQUR d7 input EQUR a3 input_hi EQUR a4 output EQUR a5 output_hi EQUR a6 *------------------------------------------------------------------------------ * Macros *------------------------------------------------------------------------------ getrawREP MACRO getrawREP2\@ move.b (input)+,(output)+ IFNE PROTECTED eor.b key,-1(output) ENDC dbra d0,getrawREP2\@ IFNE PROTECTED ror.w #1,key ENDC ENDM *------------------------------------------------------------------------------ * PRO-PACK Unpack Routine - MC68000, Method 1 * * on entry, * d0.l = packed data key, or 0 if file was not packed with a key * a0.l = start address of packed file * a1.l = start address to write unpacked file * on exit, * d0.l = length of unpacked file in bytes OR error code * 0 = not a packed file * -1 = packed data CRC error * -2 = unpacked data CRC error * * all other registers are preserved *------------------------------------------------------------------------------ RNC_Unpack movem.l d0-d7/a0-a6,-(sp) lea -BUFSIZE(sp),sp move.l sp,a2 IFNE PROTECTED move.w d0,key ENDC bsr read_long moveq.l #NOT_PACKED,d1 cmp.l #PACK_ID,d0 bne unpack16 bsr read_long move.l d0,BUFSIZE(sp) lea HEADER_LEN-8(a0),input move.l a1,output lea (output,d0.l),output_hi bsr read_long lea (input,d0.l),input_hi IFNE CHECKSUMS move.l input,a1 bsr crc_block lea -6(input),a0 bsr read_long moveq.l #PACKED_CRC,d1 cmp.w d2,d0 bne unpack16 swap d0 move.w d0,-(sp) ENDC clr.w -(sp) cmp.l input_hi,output bcc.s unpack7 moveq.l #0,d0 move.b -2(input),d0 lea (output_hi,d0.l),a0 cmp.l input_hi,a0 bls.s unpack7 addq.w #2,sp move.l input_hi,d0 btst #0,d0 beq.s unpack2 addq.w #1,input_hi addq.w #1,a0 unpack2 move.l a0,d0 btst #0,d0 beq.s unpack3 addq.w #1,a0 unpack3 moveq.l #0,d0 unpack4 cmp.l a0,output_hi beq.s unpack5 move.b -(a0),d1 move.w d1,-(sp) addq.b #1,d0 bra.s unpack4 unpack5 move.w d0,-(sp) add.l d0,a0 IFNE PROTECTED move.w key,-(sp) ENDC unpack6 lea -8*4(input_hi),input_hi movem.l (input_hi),d0-d7 movem.l d0-d7,-(a0) cmp.l input,input_hi bhi.s unpack6 sub.l input_hi,input add.l a0,input IFNE PROTECTED move.w (sp)+,key ENDC unpack7 moveq.l #0,bit_count move.b 1(input),bit_buffer rol.w #8,bit_buffer move.b (input),bit_buffer moveq.l #2,d0 moveq.l #2,d1 bsr input_bits unpack8 move.l a2,a0 bsr make_huftable lea POS_TABLE(a2),a0 bsr make_huftable lea LEN_TABLE(a2),a0 bsr make_huftable unpack9 moveq.l #-1,d0 moveq.l #16,d1 bsr input_bits move.w d0,counts subq.w #1,counts bra.s unpack12 unpack10 lea POS_TABLE(a2),a0 moveq.l #0,d0 bsr.s input_value neg.l d0 lea -1(output,d0.l),a1 lea LEN_TABLE(a2),a0 bsr.s input_value move.b (a1)+,(output)+ unpack11 move.b (a1)+,(output)+ dbra d0,unpack11 unpack12 move.l a2,a0 bsr.s input_value subq.w #1,d0 bmi.s unpack13 getrawREP move.b 1(input),d0 rol.w #8,d0 move.b (input),d0 lsl.l bit_count,d0 moveq.l #1,d1 lsl.w bit_count,d1 subq.w #1,d1 and.l d1,bit_buffer or.l d0,bit_buffer unpack13 dbra counts,unpack10 cmp.l output_hi,output bcs.s unpack8 move.w (sp)+,d0 beq.s unpack15 IFNE CHECKSUMS move.l output,a0 ENDC unpack14 move.w (sp)+,d1 IFNE CHECKSUMS move.b d1,(a0)+ ELSEIF move.b d1,(output)+ ENDC subq.b #1,d0 bne.s unpack14 unpack15 IFNE CHECKSUMS move.l BUFSIZE+2(sp),d0 sub.l d0,output move.l output,a1 bsr crc_block moveq.l #UNPACKED_CRC,d1 cmp.w (sp)+,d2 beq.s unpack17 ELSEIF bra.s unpack17 ENDC unpack16 move.l d1,BUFSIZE(sp) unpack17 lea BUFSIZE(sp),sp movem.l (sp)+,d0-d7/a0-a6 rts input_value move.w (a0)+,d0 and.w bit_buffer,d0 sub.w (a0)+,d0 bne.s input_value move.b 16*4-4(a0),d1 sub.b d1,bit_count bge.s input_value2 bsr.s input_bits3 input_value2 lsr.l d1,bit_buffer move.b 16*4-3(a0),d0 cmp.b #2,d0 blt.s input_value4 subq.b #1,d0 move.b d0,d1 move.b d0,d2 move.w 16*4-2(a0),d0 and.w bit_buffer,d0 sub.b d1,bit_count bge.s input_value3 bsr.s input_bits3 input_value3 lsr.l d1,bit_buffer bset d2,d0 input_value4 rts input_bits and.w bit_buffer,d0 sub.b d1,bit_count bge.s input_bits2 bsr.s input_bits3 input_bits2 lsr.l d1,bit_buffer rts input_bits3 add.b d1,bit_count lsr.l bit_count,bit_buffer swap bit_buffer addq.w #4,input move.b -(input),bit_buffer rol.w #8,bit_buffer move.b -(input),bit_buffer swap bit_buffer sub.b bit_count,d1 moveq.l #16,bit_count sub.b d1,bit_count rts read_long moveq.l #3,d1 read_long2 lsl.l #8,d0 move.b (a0)+,d0 dbra d1,read_long2 rts make_huftable moveq.l #$1f,d0 moveq.l #5,d1 bsr.s input_bits subq.w #1,d0 bmi.s make_huftable8 move.w d0,d2 move.w d0,d3 lea -16(sp),sp move.l sp,a1 make_huftable3 moveq.l #$f,d0 moveq.l #4,d1 bsr.s input_bits move.b d0,(a1)+ dbra d2,make_huftable3 moveq.l #1,d0 ror.l #1,d0 moveq.l #1,d1 moveq.l #0,d2 movem.l d5-d7,-(sp) make_huftable4 move.w d3,d4 lea 12(sp),a1 make_huftable5 cmp.b (a1)+,d1 bne.s make_huftable7 moveq.l #1,d5 lsl.w d1,d5 subq.w #1,d5 move.w d5,(a0)+ move.l d2,d5 swap d5 move.w d1,d7 subq.w #1,d7 make_huftable6 roxl.w #1,d5 roxr.w #1,d6 dbra d7,make_huftable6 moveq.l #16,d5 sub.b d1,d5 lsr.w d5,d6 move.w d6,(a0)+ move.b d1,16*4-4(a0) move.b d3,d5 sub.b d4,d5 move.b d5,16*4-3(a0) moveq.l #1,d6 subq.b #1,d5 lsl.w d5,d6 subq.w #1,d6 move.w d6,16*4-2(a0) add.l d0,d2 make_huftable7 dbra d4,make_huftable5 lsr.l #1,d0 addq.b #1,d1 cmp.b #17,d1 bne.s make_huftable4 movem.l (sp)+,d5-d7 lea 16(sp),sp make_huftable8 rts IFNE CHECKSUMS crc_block move.l a2,a0 moveq.l #0,d3 crc_block2 move.l d3,d1 moveq.l #7,d2 crc_block3 lsr.w #1,d1 bcc.s crc_block4 eor.w #CRC_POLY,d1 crc_block4 dbra d2,crc_block3 move.w d1,(a0)+ addq.b #1,d3 bne.s crc_block2 moveq.l #0,d2 crc_block5 move.b (a1)+,d1 eor.b d1,d2 move.w d2,d1 and.w #$ff,d2 add.w d2,d2 move.w (a2,d2.w),d2 lsr.w #8,d1 eor.b d1,d2 subq.l #1,d0 bne.s crc_block5 rts ENDC
19.625304
80
0.557773
705366f5fdae13ba739c73efd2e24e7ea074a4f1
1,007
asm
Assembly
libsrc/target/mikro80/input/in_Inkey.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/target/mikro80/input/in_Inkey.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/target/mikro80/input/in_Inkey.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; uint in_Inkey(void) ; Read current state of keyboard SECTION code_clib PUBLIC in_Inkey PUBLIC _in_Inkey EXTERN in_keytranstbl ; exit : carry set and HL = 0 for no keys registered ; else HL = ASCII character code ; uses : AF,BC,DE,HL ; ; TRS80/EACA2000 uses memory mapped keyboard ports .in_Inkey ._in_Inkey ld de,0 ld b,@11111110 loop: ld a,b out ($07),a in a,($06) cpl ;active low keyboard and @01111111 jr nz,gotkey ld a,e add 8 ld e,a ld a,b rlca ;carry is cleared by the add 8 ld b,a jr c,loop nokey: ld hl,0 scf ret gotkey: ; a = key pressed mask ; e = offset ld l,7 hitkey_loop: rrca jr c,doneinc inc e dec l jr nz,hitkey_loop jr nokey doneinc: ; e = offset in a,($05) ;shift/ctrl row cpl ld c,a ld hl,64 and @00000100 ;Shift jr nz,got_modifier ld hl,128 ld a,c and @00000010 ;Ctrl jr nz,got_modifier ld hl,0 got_modifier: add hl,de ld de,in_keytranstbl add hl,de ld a,(hl) cp 255 jr z,nokey ld l,a ld h,0 and a ret
12.746835
52
0.667329
b88b804877be2cee199de1e2e91cb60e01231ce9
805
asm
Assembly
programs/oeis/130/A130255.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/130/A130255.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/130/A130255.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A130255: Maximal index k of an odd Fibonacci number (A001519) such that A001519(k) = Fibonacci(2k-1) <= n (the 'lower' odd Fibonacci Inverse). ; 1,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7 add $0,4 mov $2,$0 mov $5,$0 lpb $2 mov $4,$0 sub $4,3 sub $5,2 lpb $4 add $1,1 mov $2,1 add $3,$5 sub $3,$4 trn $4,$3 lpe lpe
42.368421
501
0.526708
12d63ce44b3b2fd35ab19905910de10332958f78
541
asm
Assembly
oeis/319/A319448.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/319/A319448.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/319/A319448.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A319448: Moebius function mu(n) defined for the Eisenstein integers. ; Submitted by Christian Krause ; 1,-1,0,0,-1,0,1,0,0,1,-1,0,1,-1,0,0,-1,0,1,0,0,1,-1,0,0,-1,0,0,-1,0,1,0,0,1,-1,0,1,-1,0,0,-1,0,1,0,0,1,-1,0,0,0,0,0,-1,0,1,0,0,1,-1,0,1,-1,0,0,-1,0,1,0,0,1,-1,0,1,-1,0,0,-1,0,1,0,0,1,-1,0,1,-1,0,0,-1,0,1,0,0,1,-1,0,1,0,0,0 mov $1,$0 add $0,1 seq $0,106510 ; Expansion of (1+x)^2/(1+x+x^2). seq $1,3557 ; n divided by largest squarefree divisor of n; if n = Product p(k)^e(k) then a(n) = Product p(k)^(e(k)-1), with a(1) = 1. div $0,$1
54.1
224
0.571165
8c57172157a5413136834e9404683f9e9b534e0e
144
asm
Assembly
program-template.asm
meowgle/FSystem
bb2fd27a47431b8961683151fd305bf26ebca879
[ "Apache-2.0" ]
null
null
null
program-template.asm
meowgle/FSystem
bb2fd27a47431b8961683151fd305bf26ebca879
[ "Apache-2.0" ]
null
null
null
program-template.asm
meowgle/FSystem
bb2fd27a47431b8961683151fd305bf26ebca879
[ "Apache-2.0" ]
null
null
null
bits 16 ; We're dealing with 16 bit code org 0x7e00 ; Inform the assembler of the starting location for this code prog_start:
28.8
76
0.6875
54ba324bcddd8135da0cd157096fba9fa6e8f236
716
asm
Assembly
tests/basic_int.asm
hutch31/tv80
09d1ca24c0401164f09f3737c5cfe2f4102f5a9e
[ "MIT" ]
11
2018-04-08T23:04:12.000Z
2022-01-24T09:26:36.000Z
tests/basic_int.asm
hutch31/tv80
09d1ca24c0401164f09f3737c5cfe2f4102f5a9e
[ "MIT" ]
1
2019-03-15T14:57:19.000Z
2019-03-15T22:38:42.000Z
tests/basic_int.asm
hutch31/tv80
09d1ca24c0401164f09f3737c5cfe2f4102f5a9e
[ "MIT" ]
2
2016-02-29T23:20:45.000Z
2021-05-28T09:02:21.000Z
.module basic_int test_ctl_port = 0x80 print_port = 0x81 int_timeout_port = 0x90 .area BOOT_VEC jp main .area INT_VEC int_entry: exx ld b, a ld hl, #int_seen_str print_str: ld a, (hl) cp #0 jp z, print_str_exit out (print_port), a inc hl jp print_str print_str_exit: ld a, b exx ld h, #1 reti .area _CODE main: ld h, #0 ld bc, #100 ld a, #50 out (int_timeout_port), a test_timeout_loop: ld a, #1 cp h jp z, test_pass dec bc jp nz, test_timeout_loop test_fail: ld a, #2 out (test_ctl_port), a .db 0x76 ; hlt test_pass: ld a, #1 out (test_ctl_port), a .db 0x76 ; hlt .area _DATA int_seen_str: .ascii "Interrupt asserted" .db 0x0a .db 0x00
10.848485
28
0.648045
eb7613133155969849ce28979e660a685fe66773
2,975
asm
Assembly
Python/C5 - MIPS/T2 - binary.asm
mrbinx/mrbinx_python
abc14762f6afd4e23ccd95cecd59a637ced20d89
[ "MIT" ]
null
null
null
Python/C5 - MIPS/T2 - binary.asm
mrbinx/mrbinx_python
abc14762f6afd4e23ccd95cecd59a637ced20d89
[ "MIT" ]
null
null
null
Python/C5 - MIPS/T2 - binary.asm
mrbinx/mrbinx_python
abc14762f6afd4e23ccd95cecd59a637ced20d89
[ "MIT" ]
null
null
null
#FIT1008 Prac 5 Task 2 - Loh Hao Bin 25461257, Derwinn Ee 25216384 .data prompt_input: .asciiz "Please input a positive integer: " prompt_error: .asciiz "Please enter a valid positive integer greater than zero." .text main: #copy $sp into $fp add $fp, $0, $sp j binary binary: #print input prompt la $a0, prompt_input addi $v0, $0, 4 syscall addi $v0, $0, 5 syscall #allocate stack for binary() addi $sp, $sp, -16 #initialise sw $v0, -4($fp) #n sw $0, -8($fp) #rev_binary sw $0, -12($fp) #length sw $0, -16($fp) lw $t9, -4($fp) #load from n # if n > 0 sgt $t0, $t9, $0 beq $t0, $0, error lw $t0, -4($fp) #t0 = n addi $t1, $0, 4 # t1 = 4 mult $t0, $t1 # 4*n mflo $t1 # t1 = 4*n addi $a0, $t1, 4 # a0 = 4*n + 4 addi $v0, $0, 9 #allocate memory syscall sw $v0, -8($fp) # store rev_binary address lw $t0, -8($fp) # load rev_binary lw $t1, -4($fp) # load n sw $t1, ($t0) # store n into rev_binary lw $t2, -16($fp) # t2 = i = 0 j loop_append loop_append: # append 0s into list bge $t2, $t1, next addi $t4, $0, 4 # t4 = 4 mult $t4, $t2 # 4 * i mflo $t3 add $t3, $t3, $t4 # t3 = 4*i + 4 add $t3, $t3, $t0 # address + 4 + 4*i sw $0, ($t3) # store 0 into t3 address #lw $a0, ($t3) #addi $v0, $0, 1 #syscall lw $t2, -16($fp) addi $t2, $t2, 1 # increment i sw $t2,-16($fp) j loop_append next: sw $0, -12($fp) # length = 0 j loop_mod loop_mod: lw $t0, -4($fp) # t0 = n sgt $t1, $t0, $0 # if n > 0 beq $t1, $0, next_2 addi $t2, $0, 2 # t2 = 2 lw $t0, -4($fp) # t0 = n div $t0, $t2 # n / 2 mfhi $t3 # take n mod 2 lw $t5, -8($fp) # load address lw $t1, -12($fp) # load length addi $t4, $0, 4 # t4 = 4 mult $t1, $t4 # length * 4 mflo $t6 # t6 = length * 4 add $t6, $t4, $t6 # t6 = 4 + length * 4 add $t5, $t5, $t6 # t5 = address + 4 + length * 4 sw $t3, ($t5) # store n mod 2 into ($t5) lw $t0, -4($fp) # t0 = n div $t0, $t2 mfhi $t3 # n % 2 sub $t0, $t0, $t3 # n = n - n%2 div $t0, $t2 # n / 2 mflo $t0 sw $t0, -4($fp) # store n lw $t1, -12($fp) # load length addi $t1, $t1, 1 # length = length - 1 sw $t1, -12($fp) # store length #lw $a0, ($t5) #addi $v0, $0, 1 #syscall j loop_mod next_2: lw $t0, -12($fp) # load length addi $t0, $t0, -1 # length -1 sw $t0, -12($fp) # store length j loop_print loop_print: lw $t0, -12($fp) sge $t1, $t0, $0 beq $t1, $0, quit lw $t2, -8($fp) # load address lw $t1, -12($fp) # load length addi $t4, $0, 4 # t4 = 4 mult $t1, $t4 # length * 4 mflo $t3 # t3 = length * 4 add $t3, $t4, $t3 # t3 = 4 + length * 4 add $t2, $t2, $t3 # t2 = address + 4 + length * 4 lw $a0, ($t2) # print (address) addi $v0, $0, 1 syscall lw $t0, -12($fp) # load length addi $t0, $t0, -1 # decrement length sw $t0, -12($fp) # store length j loop_print error: #prints error la $a0, prompt_error addi $v0, $0, 4 syscall j quit quit: #stopping program addi $v0, $0, 10 syscall
19.070513
80
0.541849
40cafaae417d6c157e6b390998d05294dc600869
5,673
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1235.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1235.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1235.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %r15 push %rcx push %rdi push %rsi lea addresses_normal_ht+0x95fc, %rsi lea addresses_D_ht+0xa9fc, %rdi nop nop nop nop cmp $39041, %r10 mov $93, %rcx rep movsl nop cmp $58053, %rdi lea addresses_UC_ht+0x5234, %r14 nop nop nop nop nop inc %r15 movups (%r14), %xmm0 vpextrq $1, %xmm0, %r10 nop nop nop nop nop and $54481, %r10 lea addresses_A_ht+0xddfc, %r15 nop sub $15959, %r13 mov (%r15), %ecx nop nop nop nop nop cmp %r13, %r13 lea addresses_WC_ht+0x39fc, %r10 clflush (%r10) nop nop nop nop sub $59616, %rdi mov (%r10), %r15d nop nop nop cmp $33826, %rcx lea addresses_UC_ht+0x1dc4e, %rcx nop nop nop sub %r14, %r14 and $0xffffffffffffffc0, %rcx vmovaps (%rcx), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %rsi add $50671, %rcx lea addresses_A_ht+0x9acc, %rcx nop nop nop cmp $54338, %r14 mov (%rcx), %r15w nop nop nop nop nop cmp %r14, %r14 lea addresses_D_ht+0x1c94, %rcx xor $19008, %rsi mov (%rcx), %r13d nop nop nop sub $41038, %r14 pop %rsi pop %rdi pop %rcx pop %r15 pop %r14 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %rax push %rbp push %rdi push %rdx // Faulty Load lea addresses_UC+0xa9fc, %rax nop nop add %rdx, %rdx movups (%rax), %xmm6 vpextrq $0, %xmm6, %rbp lea oracles, %rax and $0xff, %rbp shlq $12, %rbp mov (%rax,%rbp,1), %rbp pop %rdx pop %rdi pop %rbp pop %rax pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_UC', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_UC', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}} {'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': True}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_D_ht', 'size': 4, 'AVXalign': True}, 'OP': 'LOAD'} {'37': 21829} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
40.234043
2,999
0.658558
e01431161e4a8872174e1957deb81d0a0b3272ae
305
asm
Assembly
Exercicios/Teste04.asm
LZattera/MIPS-MARS
7927f4749806bc1b37ff6928fd503503b459d539
[ "MIT" ]
null
null
null
Exercicios/Teste04.asm
LZattera/MIPS-MARS
7927f4749806bc1b37ff6928fd503503b459d539
[ "MIT" ]
null
null
null
Exercicios/Teste04.asm
LZattera/MIPS-MARS
7927f4749806bc1b37ff6928fd503503b459d539
[ "MIT" ]
null
null
null
#SOMA .data#random access memory n1: .word 5 n2: .word 10 .text lw $t0, n1($zero) #carregou o valor das variaveis para os registradores lw $t1, n2($zero) add $t2, $t0, $t1 # n1+n2 (t2 = t0 + t1) #print o resultado li $v0, 1 add $a0, $zero, $t2 #coloca no reg a0 o resultado da conta syscall
21.785714
73
0.645902
9bb8b9306df5118ff1e46be6739f890ec3d9f584
949
asm
Assembly
lib/src/xr/x86/xrnmflr.asm
zanud/xds-2.60
b4a32b9c9c91fe513fa5ff78ec87bb44102a3b72
[ "Apache-2.0" ]
53
2019-06-10T18:19:44.000Z
2021-12-28T18:56:00.000Z
Sources/Lib/src/xr/x86/xrnmflr.asm
undecidedzogvisvitalispotent8stars360/xds
cfd20e209193c9cfcee94ad2ca30d8c32ead48c9
[ "Apache-2.0" ]
5
2020-07-10T16:06:48.000Z
2021-07-30T07:17:50.000Z
Sources/Lib/src/xr/x86/xrnmflr.asm
undecidedzogvisvitalispotent8stars360/xds
cfd20e209193c9cfcee94ad2ca30d8c32ead48c9
[ "Apache-2.0" ]
20
2019-06-10T18:09:16.000Z
2021-10-02T19:46:42.000Z
; COPYRIGHT (c) 1995,99,2002 XDS. All Rights Reserved. ; Implementation for floor & floorl functions cpu 386 bits 32 %ifdef OS2 group DGROUP _DATA section _DATA use32 align=4 FLAT public 'DATA' %else group DGROUP _DATA section _DATA use32 align=4 public 'DATA' %endif %ifdef OS2 section .text use32 align=4 FLAT public 'CODE' %else section .text use32 align=16 public 'CODE' %endif ; assume cs: .text, ds: DGROUP, gs: nothing, fs: nothing ;PROCEDURE ["StdCall"] X2C_floor(x: REAL): REAL global X2C_floor X2C_floor: fld dword [esp+4] frndint ret 4h ;X2C_floor endp ;PROCEDURE ["StdCall"] X2C_floorl(x: LONGREAL): LONGREAL global X2C_floorl X2C_floorl: fld qword [esp+4] frndint ret 8h ;X2C_floorl endp
23.146341
73
0.562698
dd5434e2ea524802caeb19c8e0ca762681fc369a
1,266
asm
Assembly
programs/oeis/276/A276383.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/276/A276383.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/276/A276383.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A276383: Complement of A158919: complementary Beatty sequence to the Beatty sequence defined by the tribonacci constant tau = A058265. ; 2,4,6,8,10,13,15,17,19,21,24,26,28,30,32,35,37,39,41,43,46,48,50,52,54,56,59,61,63,65,67,70,72,74,76,78,81,83,85,87,89,92,94,96,98,100,102,105,107,109,111,113,116,118,120,122,124,127,129,131,133,135,138,140,142,144,146,149,151,153,155,157,159,162,164,166,168,170,173,175,177,179,181,184,186,188,190,192,195,197,199,201,203,205,208,210,212,214,216,219,221,223,225,227,230,232,234,236,238,241,243,245,247,249,252,254,256,258,260,262,265,267,269,271,273,276,278,280,282,284,287,289,291,293,295,298,300,302,304,306,308,311,313,315,317,319,322,324,326,328,330,333,335,337,339,341,344,346,348,350,352,355,357,359,361,363,365,368,370,372,374,376,379,381,383,385,387,390,392,394,396,398,401,403,405,407,409,411,414,416,418,420,422,425,427,429,431,433,436,438,440,442,444,447,449,451,453,455,458,460,462,464,466,468,471,473,475,477,479,482,484,486,488,490,493,495,497,499,501,504,506,508,510,512,514,517,519,521,523,525,528,530,532,534,536,539,541,543,545,547 mov $2,$0 mov $0,1 add $2,1 mov $3,$2 add $3,1 lpb $0,1 sub $0,1 mov $1,47 add $3,264 lpe mul $2,56 sub $2,1 div $2,$1 add $3,$2 add $0,$3 add $0,4 mov $1,$0 sub $1,269
57.545455
952
0.71643
cd845c899571fc88ca4400cde8bccc6590f765e6
16,255
asm
Assembly
unused/develop/obj/spritesheet_10_tiles.asm
pau-tomas/gbvm
c2c7a93a42f6e3168b013c93c4a3bd1c9e8b989b
[ "MIT" ]
33
2020-12-27T11:53:23.000Z
2022-02-19T23:05:12.000Z
unused/develop/obj/spritesheet_10_tiles.asm
pau-tomas/gbvm
c2c7a93a42f6e3168b013c93c4a3bd1c9e8b989b
[ "MIT" ]
2
2020-12-10T16:53:53.000Z
2022-01-31T21:42:01.000Z
unused/develop/obj/spritesheet_10_tiles.asm
pau-tomas/gbvm
c2c7a93a42f6e3168b013c93c4a3bd1c9e8b989b
[ "MIT" ]
6
2021-04-18T08:09:16.000Z
2022-01-31T21:52:24.000Z
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 4.1.4 #12246 (Mac OS X x86_64) ;-------------------------------------------------------- .module spritesheet_10_tiles .optsdcc -mgbz80 ;-------------------------------------------------------- ; Public variables in this module ;-------------------------------------------------------- .globl _spritesheet_10_tiles .globl ___bank_spritesheet_10_tiles ;-------------------------------------------------------- ; special function registers ;-------------------------------------------------------- ;-------------------------------------------------------- ; ram data ;-------------------------------------------------------- .area _DATA ;-------------------------------------------------------- ; ram data ;-------------------------------------------------------- .area _INITIALIZED ;-------------------------------------------------------- ; absolute external ram data ;-------------------------------------------------------- .area _DABS (ABS) ;-------------------------------------------------------- ; global & static initialisations ;-------------------------------------------------------- .area _HOME .area _GSINIT .area _GSFINAL .area _GSINIT ;-------------------------------------------------------- ; Home ;-------------------------------------------------------- .area _HOME .area _HOME ;-------------------------------------------------------- ; code ;-------------------------------------------------------- .area _CODE_255 .area _CODE_255 ___bank_spritesheet_10_tiles = 0x00ff _spritesheet_10_tiles: .dw #0x0038 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x03 ; 3 .db #0x03 ; 3 .db #0x0d ; 13 .db #0x0e ; 14 .db #0x1f ; 31 .db #0x10 ; 16 .db #0x3f ; 63 .db #0x20 ; 32 .db #0x3f ; 63 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x03 ; 3 .db #0x03 ; 3 .db #0xfd ; 253 .db #0xfe ; 254 .db #0x3f ; 63 .db #0xc0 ; 192 .db #0xff ; 255 .db #0x0c ; 12 .db #0xff ; 255 .db #0x13 ; 19 .db #0xf7 ; 247 .db #0x08 ; 8 .db #0xc1 ; 193 .db #0x3e ; 62 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x7f ; 127 .db #0x7f ; 127 .db #0x9f ; 159 .db #0xe0 ; 224 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x40 ; 64 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0xf0 ; 240 .db #0xf0 ; 240 .db #0xcf ; 207 .db #0x3f ; 63 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0xc0 ; 192 .db #0xc0 ; 192 .db #0x3c ; 60 .db #0xfc ; 252 .db #0xf3 ; 243 .db #0x0f ; 15 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0x3f ; 63 .db #0x20 ; 32 .db #0x3f ; 63 .db #0x20 ; 32 .db #0x3f ; 63 .db #0x20 ; 32 .db #0x3f ; 63 .db #0x20 ; 32 .db #0x3f ; 63 .db #0x20 ; 32 .db #0x3f ; 63 .db #0x23 ; 35 .db #0x3d ; 61 .db #0x23 ; 35 .db #0x5e ; 94 .db #0x61 ; 97 'a' .db #0x5e ; 94 .db #0x61 ; 97 'a' .db #0x7c ; 124 .db #0x43 ; 67 'C' .db #0x78 ; 120 'x' .db #0x47 ; 71 'G' .db #0x79 ; 121 'y' .db #0x47 ; 71 'G' .db #0xbb ; 187 .db #0xc7 ; 199 .db #0xb3 ; 179 .db #0xcf ; 207 .db #0xf2 ; 242 .db #0x8e ; 142 .db #0xf4 ; 244 .db #0x8c ; 140 .db #0xc0 ; 192 .db #0x3f ; 63 .db #0xc0 ; 192 .db #0x3f ; 63 .db #0xc0 ; 192 .db #0x3f ; 63 .db #0xcf ; 207 .db #0x30 ; 48 '0' .db #0xff ; 255 .db #0x08 ; 8 .db #0xbf ; 191 .db #0xc4 ; 196 .db #0xe7 ; 231 .db #0xdc ; 220 .db #0x07 ; 7 .db #0xfc ; 252 .db #0x02 ; 2 .db #0xff ; 255 .db #0x03 ; 3 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x87 ; 135 .db #0xff ; 255 .db #0xff ; 255 .db #0xff ; 255 .db #0xc1 ; 193 .db #0xc1 ; 193 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x00 ; 0 .db #0xff ; 255 .db #0x20 ; 32 .db #0x7f ; 127 .db #0xa0 ; 160 .db #0x7f ; 127 .db #0x90 ; 144 .db #0xff ; 255 .db #0x10 ; 16 .db #0xff ; 255 .db #0x10 ; 16 .db #0xdf ; 223 .db #0x30 ; 48 '0' .db #0xff ; 255 .db #0x60 ; 96 .db #0xbf ; 191 .db #0xc0 ; 192 .db #0xbd ; 189 .db #0xc2 ; 194 .db #0x3c ; 60 .db #0xc3 ; 195 .db #0x7e ; 126 .db #0x81 ; 129 .db #0xff ; 255 .db #0x80 ; 128 .db #0xff ; 255 .db #0x80 ; 128 .db #0xbf ; 191 .db #0xc0 ; 192 .db #0xff ; 255 .db #0xc0 ; 192 .db #0xff ; 255 .db #0xc0 ; 192 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0x3f ; 63 .db #0xc0 ; 192 .db #0x07 ; 7 .db #0xf8 ; 248 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x00 ; 0 .db #0xff ; 255 .db #0x40 ; 64 .db #0xff ; 255 .db #0x40 ; 64 .db #0xff ; 255 .db #0xfe ; 254 .db #0x02 ; 2 .db #0xfe ; 254 .db #0x02 ; 2 .db #0xfd ; 253 .db #0x03 ; 3 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x00 ; 0 .db #0x7f ; 127 .db #0x80 ; 128 .db #0x7f ; 127 .db #0x80 ; 128 .db #0xff ; 255 .db #0x00 ; 0 .db #0xfe ; 254 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xfd ; 253 .db #0x03 ; 3 .db #0xfd ; 253 .db #0x03 ; 3 .db #0x79 ; 121 'y' .db #0x87 ; 135 .db #0x71 ; 113 'q' .db #0x8f ; 143 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x40 ; 64 .db #0xc0 ; 192 .db #0xc0 ; 192 .db #0x40 ; 64 .db #0xc0 ; 192 .db #0x40 ; 64 .db #0xc0 ; 192 .db #0x40 ; 64 .db #0xe0 ; 224 .db #0x20 ; 32 .db #0x60 ; 96 .db #0xa0 ; 160 .db #0x60 ; 96 .db #0xa0 ; 160 .db #0xa0 ; 160 .db #0xe0 ; 224 .db #0xf4 ; 244 .db #0x8c ; 140 .db #0xf4 ; 244 .db #0x8c ; 140 .db #0xb4 ; 180 .db #0xcc ; 204 .db #0xb8 ; 184 .db #0xc8 ; 200 .db #0xb8 ; 184 .db #0xc8 ; 200 .db #0x78 ; 120 'x' .db #0x48 ; 72 'H' .db #0x78 ; 120 'x' .db #0x48 ; 72 'H' .db #0x78 ; 120 'x' .db #0x48 ; 72 'H' .db #0x74 ; 116 't' .db #0x4c ; 76 'L' .db #0x5c ; 92 .db #0x64 ; 100 'd' .db #0x3c ; 60 .db #0x24 ; 36 .db #0x3e ; 62 .db #0x22 ; 34 .db #0x19 ; 25 .db #0x17 ; 23 .db #0x0b ; 11 .db #0x0f ; 15 .db #0x06 ; 6 .db #0x06 ; 6 .db #0x00 ; 0 .db #0x00 ; 0 .db #0xdf ; 223 .db #0xe0 ; 224 .db #0x7f ; 127 .db #0x60 ; 96 .db #0x7e ; 126 .db #0x61 ; 97 'a' .db #0x6e ; 110 'n' .db #0x71 ; 113 'q' .db #0x7e ; 126 .db #0x71 ; 113 'q' .db #0x7c ; 124 .db #0x73 ; 115 's' .db #0x70 ; 112 'p' .db #0x7f ; 127 .db #0x78 ; 120 'x' .db #0x7f ; 127 .db #0x78 ; 120 'x' .db #0x7f ; 127 .db #0x78 ; 120 'x' .db #0x7f ; 127 .db #0x7c ; 124 .db #0x7f ; 127 .db #0x7c ; 124 .db #0x7f ; 127 .db #0x7c ; 124 .db #0x7f ; 127 .db #0xfb ; 251 .db #0xfc ; 252 .db #0xfb ; 251 .db #0xfc ; 252 .db #0x0f ; 15 .db #0x0f ; 15 .db #0x70 ; 112 'p' .db #0xff ; 255 .db #0x4f ; 79 'O' .db #0xcf ; 207 .db #0x41 ; 65 'A' .db #0xc1 ; 193 .db #0x40 ; 64 .db #0xc0 ; 192 .db #0x40 ; 64 .db #0xc0 ; 192 .db #0x40 ; 64 .db #0xc0 ; 192 .db #0x20 ; 32 .db #0xe0 ; 224 .db #0x20 ; 32 .db #0xe0 ; 224 .db #0x20 ; 32 .db #0xe0 ; 224 .db #0x20 ; 32 .db #0xe0 ; 224 .db #0x20 ; 32 .db #0xe0 ; 224 .db #0x10 ; 16 .db #0xf0 ; 240 .db #0x10 ; 16 .db #0xf0 ; 240 .db #0x90 ; 144 .db #0x70 ; 112 'p' .db #0xd0 ; 208 .db #0x30 ; 48 '0' .db #0xe0 ; 224 .db #0xe0 ; 224 .db #0x02 ; 2 .db #0xff ; 255 .db #0xfe ; 254 .db #0xff ; 255 .db #0xfe ; 254 .db #0xff ; 255 .db #0x3f ; 63 .db #0x3f ; 63 .db #0x3f ; 63 .db #0x3f ; 63 .db #0x3f ; 63 .db #0x3f ; 63 .db #0x3f ; 63 .db #0x3f ; 63 .db #0x1f ; 31 .db #0x1f ; 31 .db #0x1f ; 31 .db #0x1f ; 31 .db #0x1f ; 31 .db #0x1f ; 31 .db #0x1f ; 31 .db #0x1f ; 31 .db #0x1f ; 31 .db #0x1f ; 31 .db #0x3f ; 63 .db #0x3f ; 63 .db #0x3f ; 63 .db #0x3f ; 63 .db #0x3f ; 63 .db #0x3f ; 63 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x01 ; 1 .db #0xff ; 255 .db #0x82 ; 130 .db #0xfe ; 254 .db #0x82 ; 130 .db #0xfe ; 254 .db #0xc2 ; 194 .db #0xfe ; 254 .db #0xc2 ; 194 .db #0xfe ; 254 .db #0x42 ; 66 'B' .db #0x7e ; 126 .db #0x42 ; 66 'B' .db #0x7e ; 126 .db #0x42 ; 66 'B' .db #0x7e ; 126 .db #0x81 ; 129 .db #0xff ; 255 .db #0xb9 ; 185 .db #0xc7 ; 199 .db #0xfd ; 253 .db #0x83 ; 131 .db #0xfe ; 254 .db #0xfe ; 254 .db #0x50 ; 80 'P' .db #0x70 ; 112 'p' .db #0x50 ; 80 'P' .db #0x70 ; 112 'p' .db #0x50 ; 80 'P' .db #0x70 ; 112 'p' .db #0x50 ; 80 'P' .db #0x70 ; 112 'p' .db #0x30 ; 48 '0' .db #0x30 ; 48 '0' .db #0x20 ; 32 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x40 ; 64 .db #0xc0 ; 192 .db #0xc0 ; 192 .db #0x40 ; 64 .db #0xc0 ; 192 .db #0x40 ; 64 .db #0xe0 ; 224 .db #0x20 ; 32 .db #0x60 ; 96 .db #0xa0 ; 160 .db #0xb0 ; 176 .db #0xd0 ; 208 .db #0x70 ; 112 'p' .db #0x50 ; 80 'P' .db #0x50 ; 80 'P' .db #0x70 ; 112 'p' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0xf4 ; 244 .db #0x8c ; 140 .db #0xf4 ; 244 .db #0x8c ; 140 .db #0xf4 ; 244 .db #0x8c ; 140 .db #0x78 ; 120 'x' .db #0x88 ; 136 .db #0xe8 ; 232 .db #0x18 ; 24 .db #0xf0 ; 240 .db #0x10 ; 16 .db #0xf0 ; 240 .db #0x10 ; 16 .db #0xf0 ; 240 .db #0x10 ; 16 .db #0x70 ; 112 'p' .db #0x90 ; 144 .db #0xf0 ; 240 .db #0x90 ; 144 .db #0xe8 ; 232 .db #0x98 ; 152 .db #0x78 ; 120 'x' .db #0x48 ; 72 'H' .db #0x64 ; 100 'd' .db #0x5c ; 92 .db #0x2c ; 44 .db #0x3c ; 60 .db #0x18 ; 24 .db #0x18 ; 24 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x38 ; 56 '8' .db #0x28 ; 40 .db #0x38 ; 56 '8' .db #0x28 ; 40 .db #0x28 ; 40 .db #0x38 ; 56 '8' .db #0x18 ; 24 .db #0x18 ; 24 .db #0x18 ; 24 .db #0x18 ; 24 .db #0x08 ; 8 .db #0x08 ; 8 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x40 ; 64 .db #0xc0 ; 192 .db #0xc0 ; 192 .db #0x40 ; 64 .db #0xe0 ; 224 .db #0x20 ; 32 .db #0xe0 ; 224 .db #0x20 ; 32 .db #0xf0 ; 240 .db #0x90 ; 144 .db #0xb0 ; 176 .db #0xd0 ; 208 .db #0x78 ; 120 'x' .db #0x48 ; 72 'H' .db #0x34 ; 52 '4' .db #0x2c ; 44 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x02 ; 2 .db #0x03 ; 3 .db #0x03 ; 3 .db #0x02 ; 2 .db #0x03 ; 3 .db #0x02 ; 2 .db #0x05 ; 5 .db #0x06 ; 6 .db #0x07 ; 7 .db #0x04 ; 4 .db #0x07 ; 7 .db #0x04 ; 4 .db #0x07 ; 7 .db #0x04 ; 4 .db #0x07 ; 7 .db #0x04 ; 4 .db #0x05 ; 5 .db #0x06 ; 6 .db #0x03 ; 3 .db #0x02 ; 2 .db #0x02 ; 2 .db #0x03 ; 3 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x74 ; 116 't' .db #0x8c ; 140 .db #0xf4 ; 244 .db #0x0c ; 12 .db #0xe8 ; 232 .db #0x18 ; 24 .db #0xf8 ; 248 .db #0x18 ; 24 .db #0xd0 ; 208 .db #0x30 ; 48 '0' .db #0xe0 ; 224 .db #0x20 ; 32 .db #0xc0 ; 192 .db #0x40 ; 64 .db #0x40 ; 64 .db #0xc0 ; 192 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x40 ; 64 .db #0xc0 ; 192 .db #0x40 ; 64 .db #0xc0 ; 192 .db #0x40 ; 64 .db #0xc0 ; 192 .db #0xc0 ; 192 .db #0xc0 ; 192 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x1c ; 28 .db #0x14 ; 20 .db #0x0e ; 14 .db #0x0a ; 10 .db #0x07 ; 7 .db #0x05 ; 5 .db #0x03 ; 3 .db #0x03 ; 3 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x02 ; 2 .db #0x03 ; 3 .db #0x03 ; 3 .db #0x02 ; 2 .db #0x07 ; 7 .db #0x04 ; 4 .db #0x07 ; 7 .db #0x04 ; 4 .db #0x0f ; 15 .db #0x08 ; 8 .db #0x0f ; 15 .db #0x09 ; 9 .db #0x15 ; 21 .db #0x1b ; 27 .db #0x1e ; 30 .db #0x12 ; 18 .db #0x1e ; 30 .db #0x12 ; 18 .db #0x1a ; 26 .db #0x16 ; 22 .db #0x12 ; 18 .db #0x1e ; 30 .db #0x1e ; 30 .db #0x1e ; 30 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x74 ; 116 't' .db #0x8c ; 140 .db #0xf4 ; 244 .db #0x0c ; 12 .db #0xe8 ; 232 .db #0x18 ; 24 .db #0xf8 ; 248 .db #0x18 ; 24 .db #0xd0 ; 208 .db #0x30 ; 48 '0' .db #0xe0 ; 224 .db #0x20 ; 32 .db #0xc0 ; 192 .db #0x40 ; 64 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x01 ; 1 .db #0x02 ; 2 .db #0x03 ; 3 .db #0x03 ; 3 .db #0x02 ; 2 .db #0x07 ; 7 .db #0x04 ; 4 .db #0x0b ; 11 .db #0x0c ; 12 .db #0x0f ; 15 .db #0x08 ; 8 .db #0x1f ; 31 .db #0x11 ; 17 .db #0x1e ; 30 .db #0x12 ; 18 .db #0x2a ; 42 .db #0x36 ; 54 '6' .db #0x3c ; 60 .db #0x24 ; 36 .db #0x24 ; 36 .db #0x3c ; 60 .db #0x28 ; 40 .db #0x38 ; 56 '8' .db #0x38 ; 56 '8' .db #0x38 ; 56 '8' .db #0x00 ; 0 .db #0x00 ; 0 .area _INITIALIZER .area _CABS (ABS)
17.182875
57
0.472347
66166676a9a127f8f10fe483accd2653ee657a90
350
asm
Assembly
programs/oeis/131/A131714.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/131/A131714.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/131/A131714.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A131714: Period 6: repeat [1, -2, 2, -1, 2, -2]. ; 1,-2,2,-1,2,-2,1,-2,2,-1,2,-2,1,-2,2,-1,2,-2,1,-2,2,-1,2,-2,1,-2,2,-1,2,-2,1,-2,2,-1,2,-2,1,-2,2,-1,2,-2,1,-2,2,-1,2,-2,1,-2,2,-1,2,-2,1,-2,2,-1,2,-2,1,-2,2,-1,2,-2,1,-2,2,-1,2,-2,1,-2 pow $0,2 mov $1,2 mov $2,5 lpb $0 sub $0,1 sub $2,$1 sub $1,9 add $1,$2 lpe sub $1,2 div $1,2 add $1,1
21.875
186
0.448571
0d1bfc0e2faf89cb100b6ba318e822d64d5cdcc3
334
asm
Assembly
P5/P5_TestCode/P5_L1_testcase22/P5_L1_testcase22/mips22.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
1
2022-01-23T09:24:47.000Z
2022-01-23T09:24:47.000Z
P5/P5_TestCode/P5_L1_testcase23/mips23.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
P5/P5_TestCode/P5_L1_testcase23/mips23.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
ori $2, 10 ori $3, 10 addu $1, $2, $3 subu $4, $1, $2 addu $1, $2, $3 ori $4, 1 addu $1, $2, $3 lui $1, 10 addu $1, $2, $3 ori $2, 10 sw $1, 0($0) addu $1, $2, $3 sw $1, 4($0) addu $1, $2, $3 addu $4, $2, $3 beq $1, $4 QAQ ori $t0, 10 ori $t1, 10 QAQ: ori $t2, 10 addu $1, $2, $3 ori $2, 10 ori $0, 10 addu $1, $0, $2 addu $0, $2, $1
12.846154
15
0.479042
eacaae613b8e7320da8ccfeaf64984a7712d34ce
821
asm
Assembly
oeis/137/A137591.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/137/A137591.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/137/A137591.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A137591: Number of parenthesizings of products formed by n factors assuming nonassociativity and partial commutativity: individual factors commute, but bracketed expressions don't commute with anything. ; Submitted by Jamie Morken(s4) ; 1,1,6,54,660,10260,194040,4326840,111177360,3234848400,105135861600,3775206204000,148426878600000,6341634955656000,292576856395824000,14496220038251952000,767691210706291872000,43274547687106768032000,2587028200730649643968000,163484729048197101504960000,10889148561233306173729920000,762449368240669819244895360000,55988194934812295022178671360000,4302411454412619506605511504640000,345303142863624450077497404480000000,28891934828060683674998407408704000000 mov $1,1 mov $2,1 lpb $0 sub $0,1 mul $1,$0 add $2,$1 mul $1,2 add $1,$2 mul $2,$0 add $2,$1 lpe mov $0,$1
48.294118
461
0.838002
0c7607b85e8266ea1234b6d49b55bf0bad7583d8
5,247
asm
Assembly
Appl/GeoCalc/Document/documentMessages.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Appl/GeoCalc/Document/documentMessages.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Appl/GeoCalc/Document/documentMessages.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: documentMessages.asm AUTHOR: John Wedgwood, May 28, 1991 METHODS: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- John 5/28/91 Initial revision witt 11/15/93 DBCS-ized error dialog DESCRIPTION: Code for putting up error/message dialog boxes. $Id: documentMessages.asm,v 1.1 97/04/04 15:48:04 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DocumentMessageCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DocumentMessage %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Put up a dialog box informing the user about something... CALLED BY: PASS: bx = File handle si = Chunk handle of the string to display. String should be in the StringsUI resource. cx:dx = String to substitute for each C_CTRL_A character RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: Put up a dialog box with an OK in it. The form of the dialog box is: GeoCalc: "Document Name Here" Text of error message here This is accomplished by calling UserStandardDialog() and passing: di:bp = Pointer to the string with the extra stuff prepended to the start of the error message. bx:si = Pointer to the file name The error message should be in the StringsUI resource: chunk errorString = "Text of error message here" KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 5/28/91 Initial version witt 12/ 1/93 DBCS-ized. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SBCS<MESSAGE_BUFFER_SIZE = 256*(size char) > DBCS<MESSAGE_BUFFER_SIZE = 256*(size wchar) > DocumentMessage proc far uses ax, bx, cx, dx, bp, di, si, ds, es messageBuf local MESSAGE_BUFFER_SIZE dup (byte) fileNameBuf local PathName .enter ; ; First copy our initialization string into the buffer ; segmov es, ss, di ; es:di <- ptr to messageBuf lea di, ss:messageBuf push bx, cx ; Save file, seg of string ; ; Lock the resource containing the init-string and the error message. ; push si ; Save chunk of message GetResourceHandleNS MessageInitString, bx call MemLock ; Load the string resource mov ds, ax ; ; Copy the initialization string. ; mov si, offset MessageInitString mov si, ds:[si] ; ds:si <- ptr to the string ChunkSizePtr ds, si, cx ; cx <- string size LocalPrevChar dscx ; Don't count the NULL rep movsb ; Copy the initializer string pop si ; Restore chunk of message ; ; Copy the error message into the buffer. ; mov si, ds:[si] ; ds:si <- ptr to message ChunkSizePtr ds, si, cx ; cx <- size of the message rep movsb ; Copy data and NULL if DBCS_PCGEOS ; Ensure we haven't overflowed our buffer. ; EC< lea ax, ss:messageBuf > EC< mov cx, di > EC< sub cx, ax > EC< cmp cx, (size messageBuf) > EC< ERROR_A -1 ; error msg too long > endif ; ; Release the resource block and restore the file handle. ; call MemUnlock ; Release the resource pop bx, cx ; Restore file, seg of string ; ; ss:bp = Frame ptr with messageBuf filled in ; cx:dx = String to substitute for each C_CTRL_A character ; bx = File handle of the current file ; ; Get the name of the file into the file name buffer. To do this we need ; to get the document object from the DocumentGroup. Then we call ; the document to get the file name. ; push cx, dx ; Save substitution string push bp ; Save frame ptr mov cx, bx ; cx <- file handle GetResourceHandleNS GCDocumentGroup, bx mov si, offset GCDocumentGroup mov ax, MSG_GEN_DOCUMENT_GROUP_GET_DOC_BY_FILE mov di, mask MF_CALL call ObjMessage ; ^lcx:dx <- Document object mov bx, cx ; ^lbx:si <- Document object mov si, dx pop bp ; Restore frame ptr push bp ; Save it again... mov cx, ss ; cx:dx <- buffer lea dx, ss:fileNameBuf mov ax, MSG_GEN_DOCUMENT_GET_FILE_NAME mov di, mask MF_CALL call ObjMessage pop bp ; Restore frame ptr pop cx, dx ; Restore subsitution string ; ; cx:dx = String to subsitute for each C_CTRL_A ; ss:bp = Frame ptr with messageBuf and fileNameBuf filled in ; ; ; Now call UserStandardDialog() to put up the message. ; clr cx push cx, cx ; help context push ax ; custom trigger optr (not used) push ax ; ptr to file name mov cx, ss push cx lea ax, ss:fileNameBuf push ax ; ptr to substitute string push cx push dx ; ptr to the string push cx lea ax, ss:messageBuf push ax mov ax, mask CDBF_SYSTEM_MODAL or \ (CDT_ERROR shl offset CDBF_DIALOG_TYPE) or \ (GIT_NOTIFICATION shl offset CDBF_INTERACTION_TYPE) push ax ; flags call UserStandardDialog ; Put up the message .leave ret DocumentMessage endp DocumentMessageCode ends
26.366834
79
0.622642
bb51196e6f129ecd122c39ba871726345abe8494
1,108
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_15_1836.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_15_1836.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_15_1836.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %rbp push %rdx lea addresses_normal_ht+0x1727d, %r11 nop nop and $44337, %rbp movl $0x61626364, (%r11) nop nop nop nop nop inc %r15 pop %rdx pop %rbp pop %r15 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r14 push %r9 push %rcx // Faulty Load lea addresses_A+0x1166, %r13 nop nop nop dec %r14 vmovups (%r13), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $0, %xmm1, %rcx lea oracles, %r11 and $0xff, %rcx shlq $12, %rcx mov (%r11,%rcx,1), %rcx pop %rcx pop %r9 pop %r14 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_normal_ht'}} {'00': 15} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
17.046154
128
0.65704
847773b17fa937343a7788b691c71d3563273902
1,548
asm
Assembly
third_party/virtualbox/src/VBox/Runtime/os2/sys0.asm
Fimbure/icebox-1
0b81992a53e1b410955ca89bdb6f8169d6f2da86
[ "MIT" ]
521
2019-03-29T15:44:08.000Z
2022-03-22T09:46:19.000Z
third_party/virtualbox/src/VBox/Runtime/os2/sys0.asm
Fimbure/icebox-1
0b81992a53e1b410955ca89bdb6f8169d6f2da86
[ "MIT" ]
30
2019-06-04T17:00:49.000Z
2021-09-08T20:44:19.000Z
third_party/virtualbox/src/VBox/Runtime/os2/sys0.asm
Fimbure/icebox-1
0b81992a53e1b410955ca89bdb6f8169d6f2da86
[ "MIT" ]
99
2019-03-29T16:04:13.000Z
2022-03-28T16:59:34.000Z
;; @file ; IPRT - crt0/dll0 replacement stub for OS/2 R0/GC modules. ; ; ; Copyright (C) 2006-2017 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; ; you can redistribute it and/or modify it under the terms of the GNU ; General Public License (GPL) as published by the Free Software ; Foundation, in version 2 as it comes in the "COPYING" file of the ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. ; ; The contents of this file may alternatively be used under the terms ; of the Common Development and Distribution License Version 1.0 ; (CDDL) only, as it comes in the "COPYING.CDDL" file of the ; VirtualBox OSE distribution, in which case the provisions of the ; CDDL are applicable instead of those of the GPL. ; ; You may elect to license modified versions of this file under the ; terms and conditions of either the GPL or the CDDL or both. ; ;******************************************************************************* ;* Header Files * ;******************************************************************************* %include "iprt/asmdefs.mac" BEGINCODE global __text __text: global ___ehInit ___ehInit: db 0cch ..start: int3 xor eax,eax ret BEGINDATA global __data __data: global __data_start __data_start: BEGINBSS global __bss_start __bss_start:
27.642857
80
0.644057
a2d471cc6c80caace12cce4b428c2697620f4f5a
193
asm
Assembly
data/wildPokemon/route3.asm
longlostsoul/EvoYellow
fe5d0d372c4e90d384c4005a93f19d7968f2ff13
[ "Unlicense" ]
16
2018-08-28T21:47:01.000Z
2022-02-20T20:29:59.000Z
data/wildPokemon/route3.asm
longlostsoul/EvoYellow
fe5d0d372c4e90d384c4005a93f19d7968f2ff13
[ "Unlicense" ]
5
2019-04-03T19:53:11.000Z
2022-03-11T22:49:34.000Z
data/wildPokemon/route3.asm
longlostsoul/EvoYellow
fe5d0d372c4e90d384c4005a93f19d7968f2ff13
[ "Unlicense" ]
2
2019-12-09T19:46:02.000Z
2020-12-05T21:36:30.000Z
Route3Mons: db $14 db 8,SPEAROW;day db 9,RATTATA db 9,MANKEY db 10,SPEAROW ;day db 8,SANDSHREW db 10,RATTATA db 10,SPEAROW;day db 12,SANDSHREW db 11,JIGGLYPUFF db 12,MANKEY db $00
12.866667
19
0.715026
480c0fed46123e80886f9aa087c79648f04c7ae9
104
asm
Assembly
Src/Ant8/Tests/aa8/basic/e_byte_1.asm
geoffthorpe/ant-architecture
d85952e3050c352d5d715d9749171a335e6768f7
[ "BSD-3-Clause" ]
null
null
null
Src/Ant8/Tests/aa8/basic/e_byte_1.asm
geoffthorpe/ant-architecture
d85952e3050c352d5d715d9749171a335e6768f7
[ "BSD-3-Clause" ]
null
null
null
Src/Ant8/Tests/aa8/basic/e_byte_1.asm
geoffthorpe/ant-architecture
d85952e3050c352d5d715d9749171a335e6768f7
[ "BSD-3-Clause" ]
1
2020-07-15T04:09:05.000Z
2020-07-15T04:09:05.000Z
# $Id: e_byte_1.asm,v 1.1 2001/03/14 04:02:09 ellard Exp $ #@ tests for too few args. _data_: .byte
13
58
0.644231
f4c9f5b7d380ebcf5fe75e41e9133ed7959559c6
837
asm
Assembly
oeis/142/A142820.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142820.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142820.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142820: Primes congruent to 22 mod 61. ; Submitted by Jon Maiga ; 83,449,571,937,1181,1303,1669,1913,2767,3011,3499,4231,4597,5573,5939,6427,6793,7159,8501,8623,8867,9721,10331,10453,11551,12161,12527,12893,13259,13381,14479,14723,16187,16553,17041,18749,19237,19603,21067,21433,21799,22409,22531,23629,23873,24239,24971,25703,26557,26801,28387,28631,28753,29363,29851,30949,31193,32413,32779,33023,34487,35951,36073,36683,37049,37171,37537,37781,39367,39733,40099,40343,40709,43271,43759,44491,45589,45833,46199,46687,47297,47419,48029,48761,48883,50591,50957 mov $1,19 mov $2,$0 add $2,2 pow $2,2 lpb $2 add $1,22 sub $2,2 mov $3,$1 mul $3,2 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,39 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 mul $0,2 sub $0,77
33.48
496
0.727599