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
e6d3f496389082fa958f309ffbbcc2a74af2f91f
451
asm
Assembly
programs/oeis/060/A060197.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/060/A060197.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/060/A060197.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A060197: Start at n, repeatedly apply pi(x) until reach 0; a(n) = number of steps to reach 0. ; 2,3,4,4,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,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7 pow $0,8 add $0,2 div $0,3 mov $1,4 mov $2,3 lpb $0,1 div $0,$2 div $0,20 add $1,3 mul $2,5 lpe mul $1,6 sub $1,24 div $1,18 add $1,2
23.736842
211
0.549889
3fd72b6d2d71d32968f38ac73d58a989064fd5ad
5,188
asm
Assembly
packages/external/libmpg123-1.22.x/src/asm_nasm/synth_sse_accurate.asm
sezero/SDL2-OS2
795968f1bae0ecf4a3bfa9ea376a184a1ee7f220
[ "Zlib" ]
2
2020-10-14T21:07:10.000Z
2021-03-06T12:40:08.000Z
packages/external/libmpg123-1.22.x/src/asm_nasm/synth_sse_accurate.asm
sezero/SDL2-OS2
795968f1bae0ecf4a3bfa9ea376a184a1ee7f220
[ "Zlib" ]
null
null
null
packages/external/libmpg123-1.22.x/src/asm_nasm/synth_sse_accurate.asm
sezero/SDL2-OS2
795968f1bae0ecf4a3bfa9ea376a184a1ee7f220
[ "Zlib" ]
null
null
null
; 1 "synth_sse_accurate.S" ; 1 "<built-in>" ; 1 "<command line>" ; 1 "synth_sse_accurate.S" ; 9 "synth_sse_accurate.S" ; 1 "mangle.h" 1 ; 13 "mangle.h" ; 1 "config.h" 1 ; 14 "mangle.h" 2 ; 1 "intsym.h" 1 ; 15 "mangle.h" 2 ; 10 "synth_sse_accurate.S" 2 ; 28 "synth_sse_accurate.S" %include "asm_nasm.inc" _sym_mangle synth_1to1_sse_accurate_asm SECTION .data align 32 maxmin_s16: dd 1191181824 dd 1191181824 dd 1191181824 dd 1191181824 dd -956301312 dd -956301312 dd -956301312 dd -956301312 SECTION .text align 16 GLOBAL synth_1to1_sse_accurate_asm synth_1to1_sse_accurate_asm: push dword ebp mov dword ebp, esp push dword ebx push dword esi pxor mm7, mm7 mov dword ebx, [ebp+8] mov dword edx, [ebp+12] mov dword esi, [ebp+16] mov dword eax, [ebp+20] shl dword eax, 2 lea dword ebx, [ebx+64] sub dword ebx, eax mov dword ecx, 4 align 16 Loop_start_1: movups xmm0, [ebx] movups xmm1, [ebx+16] movups xmm2, [ebx+32] movups xmm3, [ebx+48] movups xmm4, [ebx+128] movups xmm5, [ebx+144] movups xmm6, [ebx+160] movups xmm7, [ebx+176] mulps xmm0, [edx+0] mulps xmm1, [edx+16] mulps xmm2, [edx+32] mulps xmm3, [edx+48] mulps xmm4, [edx+64] mulps xmm5, [edx+80] mulps xmm6, [edx+96] mulps xmm7, [edx+112] addps xmm0, xmm1 addps xmm2, xmm3 addps xmm4, xmm5 addps xmm6, xmm7 addps xmm0, xmm2 addps xmm4, xmm6 movaps xmm5, xmm4 movaps xmm4, xmm0 lea dword ebx, [ebx+256] lea dword edx, [edx+128] movups xmm0, [ebx] movups xmm1, [ebx+16] movups xmm2, [ebx+32] movups xmm3, [ebx+48] movups xmm6, [ebx+128] movups xmm7, [ebx+144] mulps xmm0, [edx] mulps xmm1, [edx+16] mulps xmm2, [edx+32] mulps xmm3, [edx+48] mulps xmm6, [edx+64] mulps xmm7, [edx+80] addps xmm0, xmm1 addps xmm2, xmm3 addps xmm6, xmm7 movups xmm1, [ebx+160] movups xmm3, [ebx+176] mulps xmm1, [edx+96] mulps xmm3, [edx+112] addps xmm0, xmm2 addps xmm1, xmm3 addps xmm6, xmm1 movaps xmm7, xmm6 movaps xmm6, xmm0 lea dword ebx, [ebx+256] lea dword edx, [edx+128] movaps xmm0, xmm4 movaps xmm1, xmm6 unpcklps xmm4, xmm5 unpcklps xmm6, xmm7 unpckhps xmm0, xmm5 unpckhps xmm1, xmm7 movaps xmm2, xmm4 movaps xmm3, xmm0 movlhps xmm4, xmm6 movhlps xmm6, xmm2 movlhps xmm0, xmm1 movhlps xmm1, xmm3 subps xmm4, xmm6 subps xmm0, xmm1 addps xmm0, xmm4 movaps xmm1, xmm0 movaps xmm2, xmm0 pshufw mm2, [esi], 0xdd pshufw mm3, [esi+8], 0xdd cmpnleps xmm1, [maxmin_s16] cmpltps xmm2, [maxmin_s16+16] cvtps2pi mm0, xmm0 movhlps xmm0, xmm0 cvtps2pi mm1, xmm0 packssdw mm0, mm1 movq mm1, mm0 punpcklwd mm0, mm2 punpckhwd mm1, mm3 movq [esi], mm0 movq [esi+8], mm1 cvtps2pi mm0, xmm1 cvtps2pi mm1, xmm2 movhlps xmm1, xmm1 movhlps xmm2, xmm2 cvtps2pi mm2, xmm1 cvtps2pi mm3, xmm2 packssdw mm0, mm2 packssdw mm1, mm3 psrlw mm0, 15 psrlw mm1, 15 paddw mm0, mm1 paddw mm7, mm0 lea dword esi, [esi+16] dec dword ecx jnz Loop_start_1 mov dword ecx, 4 align 16 Loop_start_2: movups xmm0, [ebx] movups xmm1, [ebx+16] movups xmm2, [ebx+32] movups xmm3, [ebx+48] movups xmm4, [ebx+128] movups xmm5, [ebx+144] movups xmm6, [ebx+160] movups xmm7, [ebx+176] mulps xmm0, [edx+0] mulps xmm1, [edx+16] mulps xmm2, [edx+32] mulps xmm3, [edx+48] mulps xmm4, [edx+-64] mulps xmm5, [edx+-48] mulps xmm6, [edx+-32] mulps xmm7, [edx+-16] addps xmm0, xmm1 addps xmm2, xmm3 addps xmm4, xmm5 addps xmm6, xmm7 addps xmm0, xmm2 addps xmm4, xmm6 movaps xmm5, xmm4 movaps xmm4, xmm0 lea dword ebx, [ebx+256] lea dword edx, [edx+-128] movups xmm0, [ebx] movups xmm1, [ebx+16] movups xmm2, [ebx+32] movups xmm3, [ebx+48] movups xmm6, [ebx+128] movups xmm7, [ebx+144] mulps xmm0, [edx] mulps xmm1, [edx+16] mulps xmm2, [edx+32] mulps xmm3, [edx+48] mulps xmm6, [edx+-64] mulps xmm7, [edx+-48] addps xmm0, xmm1 addps xmm2, xmm3 addps xmm6, xmm7 movups xmm1, [ebx+160] movups xmm3, [ebx+176] mulps xmm1, [edx+-32] mulps xmm3, [edx+-16] addps xmm0, xmm2 addps xmm1, xmm3 addps xmm6, xmm1 movaps xmm7, xmm6 movaps xmm6, xmm0 lea dword ebx, [ebx+256] lea dword edx, [edx+-128] movaps xmm0, xmm4 movaps xmm1, xmm6 unpcklps xmm4, xmm5 unpcklps xmm6, xmm7 unpckhps xmm0, xmm5 unpckhps xmm1, xmm7 movaps xmm2, xmm4 movaps xmm3, xmm0 movlhps xmm4, xmm6 movhlps xmm6, xmm2 movlhps xmm0, xmm1 movhlps xmm1, xmm3 addps xmm4, xmm6 addps xmm0, xmm1 addps xmm0, xmm4 movaps xmm1, xmm0 movaps xmm2, xmm0 pshufw mm2, [esi], 0xdd pshufw mm3, [esi+8], 0xdd cmpnleps xmm1, [maxmin_s16] cmpltps xmm2, [maxmin_s16+16] cvtps2pi mm0, xmm0 movhlps xmm0, xmm0 cvtps2pi mm1, xmm0 packssdw mm0, mm1 movq mm1, mm0 punpcklwd mm0, mm2 punpckhwd mm1, mm3 movq [esi], mm0 movq [esi+8], mm1 cvtps2pi mm0, xmm1 cvtps2pi mm1, xmm2 movhlps xmm1, xmm1 movhlps xmm2, xmm2 cvtps2pi mm2, xmm1 cvtps2pi mm3, xmm2 packssdw mm0, mm2 packssdw mm1, mm3 psrlw mm0, 15 psrlw mm1, 15 paddw mm0, mm1 paddw mm7, mm0 lea dword esi, [esi+16] dec dword ecx jnz Loop_start_2 pshufw mm0, mm7, 0xee paddw mm0, mm7 pshufw mm1, mm0, 0x55 paddw mm0, mm1 movd eax, mm0 and dword eax, 0xffff pop dword esi pop dword ebx mov dword esp, ebp pop dword ebp emms ret
18.076655
39
0.690247
c1cc2f3a9fbcfd803f4d360aa48cf78f7bd56a63
656
asm
Assembly
programs/oeis/264/A264447.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/264/A264447.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/264/A264447.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A264447: a(n) = n*(n + 7)*(n + 14)*(n + 21)/24. ; 0,110,276,510,825,1235,1755,2401,3190,4140,5270,6600,8151,9945,12005,14355,17020,20026,23400,27170,31365,36015,41151,46805,53010,59800,67210,75276,84035,93525,103785,114855,126776,139590,153340,168070,183825,200651,218595,237705,258030 mov $2,$0 mov $5,$0 mov $8,$0 mov $9,$0 bin $0,4 add $0,$8 add $0,$8 mov $7,8 add $7,$0 add $7,2 add $8,$5 add $8,$5 mov $6,$8 lpb $0 mov $0,0 add $2,7 pow $6,2 sub $7,$2 mov $3,$7 lpe add $3,$6 add $3,1 mov $1,$3 trn $1,4 mov $4,$9 mul $4,85 add $1,$4 mov $10,$9 mul $10,$9 mov $4,$10 mul $4,13 add $1,$4 mul $10,$9 mov $4,$10 mul $4,2 add $1,$4 mov $0,$1
16
237
0.615854
bfbb1d0d564d0f565e5c892c12be47dab9616b75
2,722
asm
Assembly
dino/lcs/enemy/A1.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/enemy/A1.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
dino/lcs/enemy/A1.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 035C86 tst.b ($a1,A6) 035C8A beq $35cc2 [enemy+A1] 035CA6 move.b #$0, ($a1,A6) [enemy+A2] 035CAC move.b #$1, ($ad,A6) 035FF0 move.b #$1, ($a1,A6) 035FF6 move.b #$0, ($a2,A6) [enemy+A1] 03DED6 move.b D0, ($a1,A6) [enemy+A8] 03DEDA move.b D0, ($a0,A6) 03DF40 move.b #$0, ($a1,A6) 03DF46 moveq #$0, D0 03E124 tst.b ($a1,A6) 03E128 bne $3e148 [enemy+A1] 03E174 tst.b ($a1,A6) 03E178 bne $3e198 [enemy+A1] 03E21E tst.b ($a1,A6) 03E222 bne $3e254 [enemy+A1] 03E2F8 tst.b ($a1,A6) 03E2FC bne $3e30a 03E42E tst.b ($a1,A6) [enemy+AA] 03E432 bne $3e472 [enemy+A1] 03E4C8 tst.b ($a1,A6) 03E4CC bne $3e4d6 [enemy+A1] 03E538 move.b #$0, ($a1,A6) [enemy+AC] 03E53E jsr $32b68.l 03E78A move.b #$0, ($a1,A6) 03E790 subq.w #1, ($ac,A6) 03E828 move.b #$0, ($a1,A6) 03E82E subq.w #1, ($ac,A6) 03E9A0 move.b #$0, ($a1,A6) 03E9A6 subq.b #1, ($a8,A6) 03EB94 move.b #$0, ($a1,A6) 03EB9A bra $4005c 03ECC2 move.b #$1, ($a1,A6) [enemy+AC] 03ECC8 move.b #$18, ($6,A6) [enemy+A1] 03EEA2 move.b #$1, ($a1,A6) 03EEA8 move.b #$24, ($6,A6) [enemy+A1] 03F0F6 move.b #$1, ($a1,A6) 03F0FC movea.w ($76,A6), A0 [enemy+A1] 03F1E6 move.b #$0, ($a1,A6) 03F1EC move.b #$6, ($a8,A6) 03F222 move.b #$1, ($a1,A6) 03F228 move.b #$6, ($a8,A6) [enemy+A1] 03F374 move.b #$0, ($a1,A6) 03F37A move.w #$3c, ($ac,A6) 03F4D2 move.b #$0, ($a1,A6) 03F4D8 move.w #$78, ($ac,A6) 03F570 move.b #$0, ($a1,A6) 03F576 move.w #$78, ($ac,A6) 03F5AE move.b #$1, ($a1,A6) 03F5B4 move.w #$1e, ($ac,A6) [enemy+A1] 03F61A move.b #$1, ($a1,A6) [enemy+AC] 03F620 move.b #$16, ($6,A6) [enemy+A1] 03F670 move.b #$1, ($a1,A6) 03F676 move.w #$1e, ($ac,A6) [enemy+A1] 03F6C2 move.b #$1, ($a1,A6) [enemy+C4] 03F6C8 move.w #$3c, ($ac,A6) [enemy+A1] 03F86E move.b #$1, ($a1,A6) 03F874 move.b #$1, ($af,A6) [enemy+A1] 03F8A6 move.b #$1, ($a1,A6) 03F8AC move.b #$1, ($af,A6) [enemy+A1] 03F9B4 move.b #$1, ($a1,A6) 03F9BA move.b #$1, ($af,A6) [enemy+A1] 03FC3E move.b #$1, ($a1,A6) 03FC44 move.w #$4b0, ($ac,A6) [enemy+A1] 03FC60 move.b #$1, ($a1,A6) 03FC66 jsr $119c.l [enemy+A1] 03FE60 move.b #$1, ($a1,A6) 03FE66 move.b #$1, ($af,A6) [enemy+A1] 04006A move.b D0, ($a1,A6) 04006E move.b D0, ($bc,A6) 040164 move.b #$0, ($a1,A6) 04016A move.b #$0, ($bc,A6) 05854C move.b #$1e, ($a1,A6) 058552 move.b #$1e, ($aa,A6) [enemy+A1] 058AB8 subq.b #1, ($a1,A6) 058ABC bne $58b0a [enemy+A1] 058AC0 move.b #$1e, ($a1,A6) 058AC6 tst.b ($a0,A6) [enemy+A1] copyright zengfr site:http://github.com/zengfr/romhack
32.795181
54
0.563189
67169df1df25c3f41ed1316844f2711929e516b6
724
asm
Assembly
oeis/001/A001794.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/001/A001794.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/001/A001794.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A001794: Negated coefficients of Chebyshev T polynomials: [x^n](-T(n+6, x)), n >= 0. ; Submitted by Jon Maiga ; 1,7,32,120,400,1232,3584,9984,26880,70400,180224,452608,1118208,2723840,6553600,15597568,36765696,85917696,199229440,458752000,1049624576,2387607552,5402263552,12163481600,27262976000,60850962432,135291469824,299708186624,661693399040,1456262348800,3195455668224,6992206757888,15260018802688,33221572034560,72155450572800,156371169312768,338168545017856,729869562413056,1572301627719680,3380998255411200,7257876254949376,15554790998147072,33284415996035072,71116412084551680,151732604633088000 mov $1,2 mov $2,$0 add $0,1 pow $1,$2 mul $1,$0 add $0,5 mul $1,$0 mul $2,2 add $2,4 mul $1,$2 mov $0,$1 div $0,24
42.588235
495
0.809392
03c2dd84cb67b157b1afb7e8b93830fdcc66f3ee
203,366
asm
Assembly
oslab6/obj/user/ls.asm
jasha64/OperatingSystems-lab
25a473adb754171d5c10c6bde391e0e07a2a43de
[ "MIT" ]
null
null
null
oslab6/obj/user/ls.asm
jasha64/OperatingSystems-lab
25a473adb754171d5c10c6bde391e0e07a2a43de
[ "MIT" ]
null
null
null
oslab6/obj/user/ls.asm
jasha64/OperatingSystems-lab
25a473adb754171d5c10c6bde391e0e07a2a43de
[ "MIT" ]
null
null
null
obj/user/ls.debug: 文件格式 elf32-i386 Disassembly of section .text: 00800020 <_start>: // starts us running when we are initially loaded into a new environment. .text .globl _start _start: // See if we were started with arguments on the stack cmpl $USTACKTOP, %esp 800020: 81 fc 00 e0 bf ee cmp $0xeebfe000,%esp jne args_exist 800026: 75 04 jne 80002c <args_exist> // If not, push dummy argc/argv arguments. // This happens when we are loaded by the kernel, // because the kernel does not know about passing arguments. pushl $0 800028: 6a 00 push $0x0 pushl $0 80002a: 6a 00 push $0x0 0080002c <args_exist>: args_exist: call libmain 80002c: e8 97 02 00 00 call 8002c8 <libmain> 1: jmp 1b 800031: eb fe jmp 800031 <args_exist+0x5> 00800033 <ls1>: panic("error reading directory %s: %e", path, n); } void ls1(const char *prefix, bool isdir, off_t size, const char *name) { 800033: 55 push %ebp 800034: 89 e5 mov %esp,%ebp 800036: 56 push %esi 800037: 53 push %ebx 800038: 8b 5d 08 mov 0x8(%ebp),%ebx 80003b: 8b 75 0c mov 0xc(%ebp),%esi const char *sep; if(flag['l']) 80003e: 83 3d d0 41 80 00 00 cmpl $0x0,0x8041d0 800045: 74 20 je 800067 <ls1+0x34> printf("%11d %c ", size, isdir ? 'd' : '-'); 800047: 89 f0 mov %esi,%eax 800049: 3c 01 cmp $0x1,%al 80004b: 19 c0 sbb %eax,%eax 80004d: 83 e0 c9 and $0xffffffc9,%eax 800050: 83 c0 64 add $0x64,%eax 800053: 83 ec 04 sub $0x4,%esp 800056: 50 push %eax 800057: ff 75 10 pushl 0x10(%ebp) 80005a: 68 02 23 80 00 push $0x802302 80005f: e8 2d 1a 00 00 call 801a91 <printf> 800064: 83 c4 10 add $0x10,%esp if(prefix) { 800067: 85 db test %ebx,%ebx 800069: 74 1c je 800087 <ls1+0x54> if (prefix[0] && prefix[strlen(prefix)-1] != '/') sep = "/"; else sep = ""; 80006b: b8 68 23 80 00 mov $0x802368,%eax if (prefix[0] && prefix[strlen(prefix)-1] != '/') 800070: 80 3b 00 cmpb $0x0,(%ebx) 800073: 75 4b jne 8000c0 <ls1+0x8d> printf("%s%s", prefix, sep); 800075: 83 ec 04 sub $0x4,%esp 800078: 50 push %eax 800079: 53 push %ebx 80007a: 68 0b 23 80 00 push $0x80230b 80007f: e8 0d 1a 00 00 call 801a91 <printf> 800084: 83 c4 10 add $0x10,%esp } printf("%s", name); 800087: 83 ec 08 sub $0x8,%esp 80008a: ff 75 14 pushl 0x14(%ebp) 80008d: 68 95 27 80 00 push $0x802795 800092: e8 fa 19 00 00 call 801a91 <printf> if(flag['F'] && isdir) 800097: 83 c4 10 add $0x10,%esp 80009a: 83 3d 38 41 80 00 00 cmpl $0x0,0x804138 8000a1: 74 06 je 8000a9 <ls1+0x76> 8000a3: 89 f0 mov %esi,%eax 8000a5: 84 c0 test %al,%al 8000a7: 75 37 jne 8000e0 <ls1+0xad> printf("/"); printf("\n"); 8000a9: 83 ec 0c sub $0xc,%esp 8000ac: 68 67 23 80 00 push $0x802367 8000b1: e8 db 19 00 00 call 801a91 <printf> } 8000b6: 83 c4 10 add $0x10,%esp 8000b9: 8d 65 f8 lea -0x8(%ebp),%esp 8000bc: 5b pop %ebx 8000bd: 5e pop %esi 8000be: 5d pop %ebp 8000bf: c3 ret if (prefix[0] && prefix[strlen(prefix)-1] != '/') 8000c0: 83 ec 0c sub $0xc,%esp 8000c3: 53 push %ebx 8000c4: e8 1a 09 00 00 call 8009e3 <strlen> 8000c9: 83 c4 10 add $0x10,%esp sep = ""; 8000cc: 80 7c 03 ff 2f cmpb $0x2f,-0x1(%ebx,%eax,1) 8000d1: b8 00 23 80 00 mov $0x802300,%eax 8000d6: ba 68 23 80 00 mov $0x802368,%edx 8000db: 0f 44 c2 cmove %edx,%eax 8000de: eb 95 jmp 800075 <ls1+0x42> printf("/"); 8000e0: 83 ec 0c sub $0xc,%esp 8000e3: 68 00 23 80 00 push $0x802300 8000e8: e8 a4 19 00 00 call 801a91 <printf> 8000ed: 83 c4 10 add $0x10,%esp 8000f0: eb b7 jmp 8000a9 <ls1+0x76> 008000f2 <lsdir>: { 8000f2: 55 push %ebp 8000f3: 89 e5 mov %esp,%ebp 8000f5: 57 push %edi 8000f6: 56 push %esi 8000f7: 53 push %ebx 8000f8: 81 ec 14 01 00 00 sub $0x114,%esp 8000fe: 8b 7d 08 mov 0x8(%ebp),%edi if ((fd = open(path, O_RDONLY)) < 0) 800101: 6a 00 push $0x0 800103: 57 push %edi 800104: e8 e4 17 00 00 call 8018ed <open> 800109: 89 c3 mov %eax,%ebx 80010b: 83 c4 10 add $0x10,%esp 80010e: 85 c0 test %eax,%eax 800110: 78 4a js 80015c <lsdir+0x6a> while ((n = readn(fd, &f, sizeof f)) == sizeof f) 800112: 8d b5 e8 fe ff ff lea -0x118(%ebp),%esi 800118: 83 ec 04 sub $0x4,%esp 80011b: 68 00 01 00 00 push $0x100 800120: 56 push %esi 800121: 53 push %ebx 800122: e8 9f 13 00 00 call 8014c6 <readn> 800127: 83 c4 10 add $0x10,%esp 80012a: 3d 00 01 00 00 cmp $0x100,%eax 80012f: 75 41 jne 800172 <lsdir+0x80> if (f.f_name[0]) 800131: 80 bd e8 fe ff ff 00 cmpb $0x0,-0x118(%ebp) 800138: 74 de je 800118 <lsdir+0x26> ls1(prefix, f.f_type==FTYPE_DIR, f.f_size, f.f_name); 80013a: 56 push %esi 80013b: ff b5 68 ff ff ff pushl -0x98(%ebp) 800141: 83 bd 6c ff ff ff 01 cmpl $0x1,-0x94(%ebp) 800148: 0f 94 c0 sete %al 80014b: 0f b6 c0 movzbl %al,%eax 80014e: 50 push %eax 80014f: ff 75 0c pushl 0xc(%ebp) 800152: e8 dc fe ff ff call 800033 <ls1> 800157: 83 c4 10 add $0x10,%esp 80015a: eb bc jmp 800118 <lsdir+0x26> panic("open %s: %e", path, fd); 80015c: 83 ec 0c sub $0xc,%esp 80015f: 50 push %eax 800160: 57 push %edi 800161: 68 10 23 80 00 push $0x802310 800166: 6a 1d push $0x1d 800168: 68 1c 23 80 00 push $0x80231c 80016d: e8 ae 01 00 00 call 800320 <_panic> if (n > 0) 800172: 85 c0 test %eax,%eax 800174: 7f 0c jg 800182 <lsdir+0x90> if (n < 0) 800176: 85 c0 test %eax,%eax 800178: 78 1a js 800194 <lsdir+0xa2> } 80017a: 8d 65 f4 lea -0xc(%ebp),%esp 80017d: 5b pop %ebx 80017e: 5e pop %esi 80017f: 5f pop %edi 800180: 5d pop %ebp 800181: c3 ret panic("short read in directory %s", path); 800182: 57 push %edi 800183: 68 26 23 80 00 push $0x802326 800188: 6a 22 push $0x22 80018a: 68 1c 23 80 00 push $0x80231c 80018f: e8 8c 01 00 00 call 800320 <_panic> panic("error reading directory %s: %e", path, n); 800194: 83 ec 0c sub $0xc,%esp 800197: 50 push %eax 800198: 57 push %edi 800199: 68 6c 23 80 00 push $0x80236c 80019e: 6a 24 push $0x24 8001a0: 68 1c 23 80 00 push $0x80231c 8001a5: e8 76 01 00 00 call 800320 <_panic> 008001aa <ls>: { 8001aa: 55 push %ebp 8001ab: 89 e5 mov %esp,%ebp 8001ad: 53 push %ebx 8001ae: 81 ec 9c 00 00 00 sub $0x9c,%esp 8001b4: 8b 5d 08 mov 0x8(%ebp),%ebx if ((r = stat(path, &st)) < 0) 8001b7: 8d 85 6c ff ff ff lea -0x94(%ebp),%eax 8001bd: 50 push %eax 8001be: 53 push %ebx 8001bf: e8 e7 14 00 00 call 8016ab <stat> 8001c4: 83 c4 10 add $0x10,%esp 8001c7: 85 c0 test %eax,%eax 8001c9: 78 2c js 8001f7 <ls+0x4d> if (st.st_isdir && !flag['d']) 8001cb: 8b 45 f0 mov -0x10(%ebp),%eax 8001ce: 85 c0 test %eax,%eax 8001d0: 74 09 je 8001db <ls+0x31> 8001d2: 83 3d b0 41 80 00 00 cmpl $0x0,0x8041b0 8001d9: 74 32 je 80020d <ls+0x63> ls1(0, st.st_isdir, st.st_size, path); 8001db: 53 push %ebx 8001dc: ff 75 ec pushl -0x14(%ebp) 8001df: 85 c0 test %eax,%eax 8001e1: 0f 95 c0 setne %al 8001e4: 0f b6 c0 movzbl %al,%eax 8001e7: 50 push %eax 8001e8: 6a 00 push $0x0 8001ea: e8 44 fe ff ff call 800033 <ls1> 8001ef: 83 c4 10 add $0x10,%esp } 8001f2: 8b 5d fc mov -0x4(%ebp),%ebx 8001f5: c9 leave 8001f6: c3 ret panic("stat %s: %e", path, r); 8001f7: 83 ec 0c sub $0xc,%esp 8001fa: 50 push %eax 8001fb: 53 push %ebx 8001fc: 68 41 23 80 00 push $0x802341 800201: 6a 0f push $0xf 800203: 68 1c 23 80 00 push $0x80231c 800208: e8 13 01 00 00 call 800320 <_panic> lsdir(path, prefix); 80020d: 83 ec 08 sub $0x8,%esp 800210: ff 75 0c pushl 0xc(%ebp) 800213: 53 push %ebx 800214: e8 d9 fe ff ff call 8000f2 <lsdir> 800219: 83 c4 10 add $0x10,%esp 80021c: eb d4 jmp 8001f2 <ls+0x48> 0080021e <usage>: void usage(void) { 80021e: 55 push %ebp 80021f: 89 e5 mov %esp,%ebp 800221: 83 ec 14 sub $0x14,%esp printf("usage: ls [-dFl] [file...]\n"); 800224: 68 4d 23 80 00 push $0x80234d 800229: e8 63 18 00 00 call 801a91 <printf> exit(); 80022e: e8 db 00 00 00 call 80030e <exit> } 800233: 83 c4 10 add $0x10,%esp 800236: c9 leave 800237: c3 ret 00800238 <umain>: void umain(int argc, char **argv) { 800238: 55 push %ebp 800239: 89 e5 mov %esp,%ebp 80023b: 56 push %esi 80023c: 53 push %ebx 80023d: 83 ec 14 sub $0x14,%esp 800240: 8b 75 0c mov 0xc(%ebp),%esi int i; struct Argstate args; argstart(&argc, argv, &args); 800243: 8d 45 e8 lea -0x18(%ebp),%eax 800246: 50 push %eax 800247: 56 push %esi 800248: 8d 45 08 lea 0x8(%ebp),%eax 80024b: 50 push %eax 80024c: e8 b3 0d 00 00 call 801004 <argstart> while ((i = argnext(&args)) >= 0) 800251: 83 c4 10 add $0x10,%esp 800254: 8d 5d e8 lea -0x18(%ebp),%ebx 800257: eb 08 jmp 800261 <umain+0x29> switch (i) { case 'd': case 'F': case 'l': flag[i]++; 800259: 83 04 85 20 40 80 00 addl $0x1,0x804020(,%eax,4) 800260: 01 while ((i = argnext(&args)) >= 0) 800261: 83 ec 0c sub $0xc,%esp 800264: 53 push %ebx 800265: e8 ca 0d 00 00 call 801034 <argnext> 80026a: 83 c4 10 add $0x10,%esp 80026d: 85 c0 test %eax,%eax 80026f: 78 16 js 800287 <umain+0x4f> switch (i) { 800271: 83 f8 64 cmp $0x64,%eax 800274: 74 e3 je 800259 <umain+0x21> 800276: 83 f8 6c cmp $0x6c,%eax 800279: 74 de je 800259 <umain+0x21> 80027b: 83 f8 46 cmp $0x46,%eax 80027e: 74 d9 je 800259 <umain+0x21> break; default: usage(); 800280: e8 99 ff ff ff call 80021e <usage> 800285: eb da jmp 800261 <umain+0x29> } if (argc == 1) ls("/", ""); else { for (i = 1; i < argc; i++) 800287: bb 01 00 00 00 mov $0x1,%ebx if (argc == 1) 80028c: 83 7d 08 01 cmpl $0x1,0x8(%ebp) 800290: 75 2a jne 8002bc <umain+0x84> ls("/", ""); 800292: 83 ec 08 sub $0x8,%esp 800295: 68 68 23 80 00 push $0x802368 80029a: 68 00 23 80 00 push $0x802300 80029f: e8 06 ff ff ff call 8001aa <ls> 8002a4: 83 c4 10 add $0x10,%esp 8002a7: eb 18 jmp 8002c1 <umain+0x89> ls(argv[i], argv[i]); 8002a9: 8b 04 9e mov (%esi,%ebx,4),%eax 8002ac: 83 ec 08 sub $0x8,%esp 8002af: 50 push %eax 8002b0: 50 push %eax 8002b1: e8 f4 fe ff ff call 8001aa <ls> for (i = 1; i < argc; i++) 8002b6: 83 c3 01 add $0x1,%ebx 8002b9: 83 c4 10 add $0x10,%esp 8002bc: 39 5d 08 cmp %ebx,0x8(%ebp) 8002bf: 7f e8 jg 8002a9 <umain+0x71> } } 8002c1: 8d 65 f8 lea -0x8(%ebp),%esp 8002c4: 5b pop %ebx 8002c5: 5e pop %esi 8002c6: 5d pop %ebp 8002c7: c3 ret 008002c8 <libmain>: const volatile struct Env *thisenv; const char *binaryname = "<unknown>"; void libmain(int argc, char **argv) { 8002c8: 55 push %ebp 8002c9: 89 e5 mov %esp,%ebp 8002cb: 56 push %esi 8002cc: 53 push %ebx 8002cd: 8b 5d 08 mov 0x8(%ebp),%ebx 8002d0: 8b 75 0c mov 0xc(%ebp),%esi // set thisenv to point at our Env structure in envs[]. // LAB 3: Your code here. envid_t envid = sys_getenvid(); 8002d3: e8 fd 0a 00 00 call 800dd5 <sys_getenvid> thisenv = envs + ENVX(envid); 8002d8: 25 ff 03 00 00 and $0x3ff,%eax 8002dd: 6b c0 7c imul $0x7c,%eax,%eax 8002e0: 05 00 00 c0 ee add $0xeec00000,%eax 8002e5: a3 20 44 80 00 mov %eax,0x804420 // save the name of the program so that panic() can use it if (argc > 0) 8002ea: 85 db test %ebx,%ebx 8002ec: 7e 07 jle 8002f5 <libmain+0x2d> binaryname = argv[0]; 8002ee: 8b 06 mov (%esi),%eax 8002f0: a3 00 30 80 00 mov %eax,0x803000 // call user main routine umain(argc, argv); 8002f5: 83 ec 08 sub $0x8,%esp 8002f8: 56 push %esi 8002f9: 53 push %ebx 8002fa: e8 39 ff ff ff call 800238 <umain> // exit gracefully exit(); 8002ff: e8 0a 00 00 00 call 80030e <exit> } 800304: 83 c4 10 add $0x10,%esp 800307: 8d 65 f8 lea -0x8(%ebp),%esp 80030a: 5b pop %ebx 80030b: 5e pop %esi 80030c: 5d pop %ebp 80030d: c3 ret 0080030e <exit>: #include <inc/lib.h> void exit(void) { 80030e: 55 push %ebp 80030f: 89 e5 mov %esp,%ebp 800311: 83 ec 14 sub $0x14,%esp // close_all(); sys_env_destroy(0); 800314: 6a 00 push $0x0 800316: e8 79 0a 00 00 call 800d94 <sys_env_destroy> } 80031b: 83 c4 10 add $0x10,%esp 80031e: c9 leave 80031f: c3 ret 00800320 <_panic>: * It prints "panic: <message>", then causes a breakpoint exception, * which causes JOS to enter the JOS kernel monitor. */ void _panic(const char *file, int line, const char *fmt, ...) { 800320: 55 push %ebp 800321: 89 e5 mov %esp,%ebp 800323: 56 push %esi 800324: 53 push %ebx va_list ap; va_start(ap, fmt); 800325: 8d 5d 14 lea 0x14(%ebp),%ebx // Print the panic message cprintf("[%08x] user panic in %s at %s:%d: ", 800328: 8b 35 00 30 80 00 mov 0x803000,%esi 80032e: e8 a2 0a 00 00 call 800dd5 <sys_getenvid> 800333: 83 ec 0c sub $0xc,%esp 800336: ff 75 0c pushl 0xc(%ebp) 800339: ff 75 08 pushl 0x8(%ebp) 80033c: 56 push %esi 80033d: 50 push %eax 80033e: 68 98 23 80 00 push $0x802398 800343: e8 b3 00 00 00 call 8003fb <cprintf> sys_getenvid(), binaryname, file, line); vcprintf(fmt, ap); 800348: 83 c4 18 add $0x18,%esp 80034b: 53 push %ebx 80034c: ff 75 10 pushl 0x10(%ebp) 80034f: e8 56 00 00 00 call 8003aa <vcprintf> cprintf("\n"); 800354: c7 04 24 67 23 80 00 movl $0x802367,(%esp) 80035b: e8 9b 00 00 00 call 8003fb <cprintf> 800360: 83 c4 10 add $0x10,%esp // Cause a breakpoint exception while (1) asm volatile("int3"); 800363: cc int3 800364: eb fd jmp 800363 <_panic+0x43> 00800366 <putch>: }; static void putch(int ch, struct printbuf *b) { 800366: 55 push %ebp 800367: 89 e5 mov %esp,%ebp 800369: 53 push %ebx 80036a: 83 ec 04 sub $0x4,%esp 80036d: 8b 5d 0c mov 0xc(%ebp),%ebx b->buf[b->idx++] = ch; 800370: 8b 13 mov (%ebx),%edx 800372: 8d 42 01 lea 0x1(%edx),%eax 800375: 89 03 mov %eax,(%ebx) 800377: 8b 4d 08 mov 0x8(%ebp),%ecx 80037a: 88 4c 13 08 mov %cl,0x8(%ebx,%edx,1) if (b->idx == 256-1) { 80037e: 3d ff 00 00 00 cmp $0xff,%eax 800383: 74 09 je 80038e <putch+0x28> sys_cputs(b->buf, b->idx); b->idx = 0; } b->cnt++; 800385: 83 43 04 01 addl $0x1,0x4(%ebx) } 800389: 8b 5d fc mov -0x4(%ebp),%ebx 80038c: c9 leave 80038d: c3 ret sys_cputs(b->buf, b->idx); 80038e: 83 ec 08 sub $0x8,%esp 800391: 68 ff 00 00 00 push $0xff 800396: 8d 43 08 lea 0x8(%ebx),%eax 800399: 50 push %eax 80039a: e8 b8 09 00 00 call 800d57 <sys_cputs> b->idx = 0; 80039f: c7 03 00 00 00 00 movl $0x0,(%ebx) 8003a5: 83 c4 10 add $0x10,%esp 8003a8: eb db jmp 800385 <putch+0x1f> 008003aa <vcprintf>: int vcprintf(const char *fmt, va_list ap) { 8003aa: 55 push %ebp 8003ab: 89 e5 mov %esp,%ebp 8003ad: 81 ec 18 01 00 00 sub $0x118,%esp struct printbuf b; b.idx = 0; 8003b3: c7 85 f0 fe ff ff 00 movl $0x0,-0x110(%ebp) 8003ba: 00 00 00 b.cnt = 0; 8003bd: c7 85 f4 fe ff ff 00 movl $0x0,-0x10c(%ebp) 8003c4: 00 00 00 vprintfmt((void*)putch, &b, fmt, ap); 8003c7: ff 75 0c pushl 0xc(%ebp) 8003ca: ff 75 08 pushl 0x8(%ebp) 8003cd: 8d 85 f0 fe ff ff lea -0x110(%ebp),%eax 8003d3: 50 push %eax 8003d4: 68 66 03 80 00 push $0x800366 8003d9: e8 1a 01 00 00 call 8004f8 <vprintfmt> sys_cputs(b.buf, b.idx); 8003de: 83 c4 08 add $0x8,%esp 8003e1: ff b5 f0 fe ff ff pushl -0x110(%ebp) 8003e7: 8d 85 f8 fe ff ff lea -0x108(%ebp),%eax 8003ed: 50 push %eax 8003ee: e8 64 09 00 00 call 800d57 <sys_cputs> return b.cnt; } 8003f3: 8b 85 f4 fe ff ff mov -0x10c(%ebp),%eax 8003f9: c9 leave 8003fa: c3 ret 008003fb <cprintf>: int cprintf(const char *fmt, ...) { 8003fb: 55 push %ebp 8003fc: 89 e5 mov %esp,%ebp 8003fe: 83 ec 10 sub $0x10,%esp va_list ap; int cnt; va_start(ap, fmt); 800401: 8d 45 0c lea 0xc(%ebp),%eax cnt = vcprintf(fmt, ap); 800404: 50 push %eax 800405: ff 75 08 pushl 0x8(%ebp) 800408: e8 9d ff ff ff call 8003aa <vcprintf> va_end(ap); return cnt; } 80040d: c9 leave 80040e: c3 ret 0080040f <printnum>: * using specified putch function and associated pointer putdat. */ static void printnum(void (*putch)(int, void*), void *putdat, unsigned long long num, unsigned base, int width, int padc) { 80040f: 55 push %ebp 800410: 89 e5 mov %esp,%ebp 800412: 57 push %edi 800413: 56 push %esi 800414: 53 push %ebx 800415: 83 ec 1c sub $0x1c,%esp 800418: 89 c7 mov %eax,%edi 80041a: 89 d6 mov %edx,%esi 80041c: 8b 45 08 mov 0x8(%ebp),%eax 80041f: 8b 55 0c mov 0xc(%ebp),%edx 800422: 89 45 d8 mov %eax,-0x28(%ebp) 800425: 89 55 dc mov %edx,-0x24(%ebp) // first recursively print all preceding (more significant) digits if (num >= base) { 800428: 8b 4d 10 mov 0x10(%ebp),%ecx 80042b: bb 00 00 00 00 mov $0x0,%ebx 800430: 89 4d e0 mov %ecx,-0x20(%ebp) 800433: 89 5d e4 mov %ebx,-0x1c(%ebp) 800436: 39 d3 cmp %edx,%ebx 800438: 72 05 jb 80043f <printnum+0x30> 80043a: 39 45 10 cmp %eax,0x10(%ebp) 80043d: 77 7a ja 8004b9 <printnum+0xaa> printnum(putch, putdat, num / base, base, width - 1, padc); 80043f: 83 ec 0c sub $0xc,%esp 800442: ff 75 18 pushl 0x18(%ebp) 800445: 8b 45 14 mov 0x14(%ebp),%eax 800448: 8d 58 ff lea -0x1(%eax),%ebx 80044b: 53 push %ebx 80044c: ff 75 10 pushl 0x10(%ebp) 80044f: 83 ec 08 sub $0x8,%esp 800452: ff 75 e4 pushl -0x1c(%ebp) 800455: ff 75 e0 pushl -0x20(%ebp) 800458: ff 75 dc pushl -0x24(%ebp) 80045b: ff 75 d8 pushl -0x28(%ebp) 80045e: e8 4d 1c 00 00 call 8020b0 <__udivdi3> 800463: 83 c4 18 add $0x18,%esp 800466: 52 push %edx 800467: 50 push %eax 800468: 89 f2 mov %esi,%edx 80046a: 89 f8 mov %edi,%eax 80046c: e8 9e ff ff ff call 80040f <printnum> 800471: 83 c4 20 add $0x20,%esp 800474: eb 13 jmp 800489 <printnum+0x7a> } else { // print any needed pad characters before first digit while (--width > 0) putch(padc, putdat); 800476: 83 ec 08 sub $0x8,%esp 800479: 56 push %esi 80047a: ff 75 18 pushl 0x18(%ebp) 80047d: ff d7 call *%edi 80047f: 83 c4 10 add $0x10,%esp while (--width > 0) 800482: 83 eb 01 sub $0x1,%ebx 800485: 85 db test %ebx,%ebx 800487: 7f ed jg 800476 <printnum+0x67> } // then print this (the least significant) digit putch("0123456789abcdef"[num % base], putdat); 800489: 83 ec 08 sub $0x8,%esp 80048c: 56 push %esi 80048d: 83 ec 04 sub $0x4,%esp 800490: ff 75 e4 pushl -0x1c(%ebp) 800493: ff 75 e0 pushl -0x20(%ebp) 800496: ff 75 dc pushl -0x24(%ebp) 800499: ff 75 d8 pushl -0x28(%ebp) 80049c: e8 2f 1d 00 00 call 8021d0 <__umoddi3> 8004a1: 83 c4 14 add $0x14,%esp 8004a4: 0f be 80 bb 23 80 00 movsbl 0x8023bb(%eax),%eax 8004ab: 50 push %eax 8004ac: ff d7 call *%edi } 8004ae: 83 c4 10 add $0x10,%esp 8004b1: 8d 65 f4 lea -0xc(%ebp),%esp 8004b4: 5b pop %ebx 8004b5: 5e pop %esi 8004b6: 5f pop %edi 8004b7: 5d pop %ebp 8004b8: c3 ret 8004b9: 8b 5d 14 mov 0x14(%ebp),%ebx 8004bc: eb c4 jmp 800482 <printnum+0x73> 008004be <sprintputch>: int cnt; }; static void sprintputch(int ch, struct sprintbuf *b) { 8004be: 55 push %ebp 8004bf: 89 e5 mov %esp,%ebp 8004c1: 8b 45 0c mov 0xc(%ebp),%eax b->cnt++; 8004c4: 83 40 08 01 addl $0x1,0x8(%eax) if (b->buf < b->ebuf) 8004c8: 8b 10 mov (%eax),%edx 8004ca: 3b 50 04 cmp 0x4(%eax),%edx 8004cd: 73 0a jae 8004d9 <sprintputch+0x1b> *b->buf++ = ch; 8004cf: 8d 4a 01 lea 0x1(%edx),%ecx 8004d2: 89 08 mov %ecx,(%eax) 8004d4: 8b 45 08 mov 0x8(%ebp),%eax 8004d7: 88 02 mov %al,(%edx) } 8004d9: 5d pop %ebp 8004da: c3 ret 008004db <printfmt>: { 8004db: 55 push %ebp 8004dc: 89 e5 mov %esp,%ebp 8004de: 83 ec 08 sub $0x8,%esp va_start(ap, fmt); 8004e1: 8d 45 14 lea 0x14(%ebp),%eax vprintfmt(putch, putdat, fmt, ap); 8004e4: 50 push %eax 8004e5: ff 75 10 pushl 0x10(%ebp) 8004e8: ff 75 0c pushl 0xc(%ebp) 8004eb: ff 75 08 pushl 0x8(%ebp) 8004ee: e8 05 00 00 00 call 8004f8 <vprintfmt> } 8004f3: 83 c4 10 add $0x10,%esp 8004f6: c9 leave 8004f7: c3 ret 008004f8 <vprintfmt>: { 8004f8: 55 push %ebp 8004f9: 89 e5 mov %esp,%ebp 8004fb: 57 push %edi 8004fc: 56 push %esi 8004fd: 53 push %ebx 8004fe: 83 ec 2c sub $0x2c,%esp 800501: 8b 75 08 mov 0x8(%ebp),%esi 800504: 8b 5d 0c mov 0xc(%ebp),%ebx 800507: 8b 7d 10 mov 0x10(%ebp),%edi 80050a: e9 c1 03 00 00 jmp 8008d0 <vprintfmt+0x3d8> padc = ' '; 80050f: c6 45 d4 20 movb $0x20,-0x2c(%ebp) altflag = 0; 800513: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) precision = -1; 80051a: c7 45 d0 ff ff ff ff movl $0xffffffff,-0x30(%ebp) width = -1; 800521: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp) lflag = 0; 800528: b9 00 00 00 00 mov $0x0,%ecx switch (ch = *(unsigned char *) fmt++) { 80052d: 8d 47 01 lea 0x1(%edi),%eax 800530: 89 45 e4 mov %eax,-0x1c(%ebp) 800533: 0f b6 17 movzbl (%edi),%edx 800536: 8d 42 dd lea -0x23(%edx),%eax 800539: 3c 55 cmp $0x55,%al 80053b: 0f 87 12 04 00 00 ja 800953 <vprintfmt+0x45b> 800541: 0f b6 c0 movzbl %al,%eax 800544: ff 24 85 00 25 80 00 jmp *0x802500(,%eax,4) 80054b: 8b 7d e4 mov -0x1c(%ebp),%edi padc = '-'; 80054e: c6 45 d4 2d movb $0x2d,-0x2c(%ebp) 800552: eb d9 jmp 80052d <vprintfmt+0x35> switch (ch = *(unsigned char *) fmt++) { 800554: 8b 7d e4 mov -0x1c(%ebp),%edi padc = '0'; 800557: c6 45 d4 30 movb $0x30,-0x2c(%ebp) 80055b: eb d0 jmp 80052d <vprintfmt+0x35> switch (ch = *(unsigned char *) fmt++) { 80055d: 0f b6 d2 movzbl %dl,%edx 800560: 8b 7d e4 mov -0x1c(%ebp),%edi for (precision = 0; ; ++fmt) { 800563: b8 00 00 00 00 mov $0x0,%eax 800568: 89 4d e4 mov %ecx,-0x1c(%ebp) precision = precision * 10 + ch - '0'; 80056b: 8d 04 80 lea (%eax,%eax,4),%eax 80056e: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax ch = *fmt; 800572: 0f be 17 movsbl (%edi),%edx if (ch < '0' || ch > '9') 800575: 8d 4a d0 lea -0x30(%edx),%ecx 800578: 83 f9 09 cmp $0x9,%ecx 80057b: 77 55 ja 8005d2 <vprintfmt+0xda> for (precision = 0; ; ++fmt) { 80057d: 83 c7 01 add $0x1,%edi precision = precision * 10 + ch - '0'; 800580: eb e9 jmp 80056b <vprintfmt+0x73> precision = va_arg(ap, int); 800582: 8b 45 14 mov 0x14(%ebp),%eax 800585: 8b 00 mov (%eax),%eax 800587: 89 45 d0 mov %eax,-0x30(%ebp) 80058a: 8b 45 14 mov 0x14(%ebp),%eax 80058d: 8d 40 04 lea 0x4(%eax),%eax 800590: 89 45 14 mov %eax,0x14(%ebp) switch (ch = *(unsigned char *) fmt++) { 800593: 8b 7d e4 mov -0x1c(%ebp),%edi if (width < 0) 800596: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 80059a: 79 91 jns 80052d <vprintfmt+0x35> width = precision, precision = -1; 80059c: 8b 45 d0 mov -0x30(%ebp),%eax 80059f: 89 45 e0 mov %eax,-0x20(%ebp) 8005a2: c7 45 d0 ff ff ff ff movl $0xffffffff,-0x30(%ebp) 8005a9: eb 82 jmp 80052d <vprintfmt+0x35> 8005ab: 8b 45 e0 mov -0x20(%ebp),%eax 8005ae: 85 c0 test %eax,%eax 8005b0: ba 00 00 00 00 mov $0x0,%edx 8005b5: 0f 49 d0 cmovns %eax,%edx 8005b8: 89 55 e0 mov %edx,-0x20(%ebp) switch (ch = *(unsigned char *) fmt++) { 8005bb: 8b 7d e4 mov -0x1c(%ebp),%edi 8005be: e9 6a ff ff ff jmp 80052d <vprintfmt+0x35> 8005c3: 8b 7d e4 mov -0x1c(%ebp),%edi altflag = 1; 8005c6: c7 45 d8 01 00 00 00 movl $0x1,-0x28(%ebp) goto reswitch; 8005cd: e9 5b ff ff ff jmp 80052d <vprintfmt+0x35> 8005d2: 8b 4d e4 mov -0x1c(%ebp),%ecx 8005d5: 89 45 d0 mov %eax,-0x30(%ebp) 8005d8: eb bc jmp 800596 <vprintfmt+0x9e> lflag++; 8005da: 83 c1 01 add $0x1,%ecx switch (ch = *(unsigned char *) fmt++) { 8005dd: 8b 7d e4 mov -0x1c(%ebp),%edi goto reswitch; 8005e0: e9 48 ff ff ff jmp 80052d <vprintfmt+0x35> putch(va_arg(ap, int), putdat); 8005e5: 8b 45 14 mov 0x14(%ebp),%eax 8005e8: 8d 78 04 lea 0x4(%eax),%edi 8005eb: 83 ec 08 sub $0x8,%esp 8005ee: 53 push %ebx 8005ef: ff 30 pushl (%eax) 8005f1: ff d6 call *%esi break; 8005f3: 83 c4 10 add $0x10,%esp putch(va_arg(ap, int), putdat); 8005f6: 89 7d 14 mov %edi,0x14(%ebp) break; 8005f9: e9 cf 02 00 00 jmp 8008cd <vprintfmt+0x3d5> err = va_arg(ap, int); 8005fe: 8b 45 14 mov 0x14(%ebp),%eax 800601: 8d 78 04 lea 0x4(%eax),%edi 800604: 8b 00 mov (%eax),%eax 800606: 99 cltd 800607: 31 d0 xor %edx,%eax 800609: 29 d0 sub %edx,%eax if (err >= MAXERROR || (p = error_string[err]) == NULL) 80060b: 83 f8 0f cmp $0xf,%eax 80060e: 7f 23 jg 800633 <vprintfmt+0x13b> 800610: 8b 14 85 60 26 80 00 mov 0x802660(,%eax,4),%edx 800617: 85 d2 test %edx,%edx 800619: 74 18 je 800633 <vprintfmt+0x13b> printfmt(putch, putdat, "%s", p); 80061b: 52 push %edx 80061c: 68 95 27 80 00 push $0x802795 800621: 53 push %ebx 800622: 56 push %esi 800623: e8 b3 fe ff ff call 8004db <printfmt> 800628: 83 c4 10 add $0x10,%esp err = va_arg(ap, int); 80062b: 89 7d 14 mov %edi,0x14(%ebp) 80062e: e9 9a 02 00 00 jmp 8008cd <vprintfmt+0x3d5> printfmt(putch, putdat, "error %d", err); 800633: 50 push %eax 800634: 68 d3 23 80 00 push $0x8023d3 800639: 53 push %ebx 80063a: 56 push %esi 80063b: e8 9b fe ff ff call 8004db <printfmt> 800640: 83 c4 10 add $0x10,%esp err = va_arg(ap, int); 800643: 89 7d 14 mov %edi,0x14(%ebp) printfmt(putch, putdat, "error %d", err); 800646: e9 82 02 00 00 jmp 8008cd <vprintfmt+0x3d5> if ((p = va_arg(ap, char *)) == NULL) 80064b: 8b 45 14 mov 0x14(%ebp),%eax 80064e: 83 c0 04 add $0x4,%eax 800651: 89 45 cc mov %eax,-0x34(%ebp) 800654: 8b 45 14 mov 0x14(%ebp),%eax 800657: 8b 38 mov (%eax),%edi p = "(null)"; 800659: 85 ff test %edi,%edi 80065b: b8 cc 23 80 00 mov $0x8023cc,%eax 800660: 0f 44 f8 cmove %eax,%edi if (width > 0 && padc != '-') 800663: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 800667: 0f 8e bd 00 00 00 jle 80072a <vprintfmt+0x232> 80066d: 80 7d d4 2d cmpb $0x2d,-0x2c(%ebp) 800671: 75 0e jne 800681 <vprintfmt+0x189> 800673: 89 75 08 mov %esi,0x8(%ebp) 800676: 8b 75 d0 mov -0x30(%ebp),%esi 800679: 89 5d 0c mov %ebx,0xc(%ebp) 80067c: 8b 5d e0 mov -0x20(%ebp),%ebx 80067f: eb 6d jmp 8006ee <vprintfmt+0x1f6> for (width -= strnlen(p, precision); width > 0; width--) 800681: 83 ec 08 sub $0x8,%esp 800684: ff 75 d0 pushl -0x30(%ebp) 800687: 57 push %edi 800688: e8 6e 03 00 00 call 8009fb <strnlen> 80068d: 8b 4d e0 mov -0x20(%ebp),%ecx 800690: 29 c1 sub %eax,%ecx 800692: 89 4d c8 mov %ecx,-0x38(%ebp) 800695: 83 c4 10 add $0x10,%esp putch(padc, putdat); 800698: 0f be 45 d4 movsbl -0x2c(%ebp),%eax 80069c: 89 45 e0 mov %eax,-0x20(%ebp) 80069f: 89 7d d4 mov %edi,-0x2c(%ebp) 8006a2: 89 cf mov %ecx,%edi for (width -= strnlen(p, precision); width > 0; width--) 8006a4: eb 0f jmp 8006b5 <vprintfmt+0x1bd> putch(padc, putdat); 8006a6: 83 ec 08 sub $0x8,%esp 8006a9: 53 push %ebx 8006aa: ff 75 e0 pushl -0x20(%ebp) 8006ad: ff d6 call *%esi for (width -= strnlen(p, precision); width > 0; width--) 8006af: 83 ef 01 sub $0x1,%edi 8006b2: 83 c4 10 add $0x10,%esp 8006b5: 85 ff test %edi,%edi 8006b7: 7f ed jg 8006a6 <vprintfmt+0x1ae> 8006b9: 8b 7d d4 mov -0x2c(%ebp),%edi 8006bc: 8b 4d c8 mov -0x38(%ebp),%ecx 8006bf: 85 c9 test %ecx,%ecx 8006c1: b8 00 00 00 00 mov $0x0,%eax 8006c6: 0f 49 c1 cmovns %ecx,%eax 8006c9: 29 c1 sub %eax,%ecx 8006cb: 89 75 08 mov %esi,0x8(%ebp) 8006ce: 8b 75 d0 mov -0x30(%ebp),%esi 8006d1: 89 5d 0c mov %ebx,0xc(%ebp) 8006d4: 89 cb mov %ecx,%ebx 8006d6: eb 16 jmp 8006ee <vprintfmt+0x1f6> if (altflag && (ch < ' ' || ch > '~')) 8006d8: 83 7d d8 00 cmpl $0x0,-0x28(%ebp) 8006dc: 75 31 jne 80070f <vprintfmt+0x217> putch(ch, putdat); 8006de: 83 ec 08 sub $0x8,%esp 8006e1: ff 75 0c pushl 0xc(%ebp) 8006e4: 50 push %eax 8006e5: ff 55 08 call *0x8(%ebp) 8006e8: 83 c4 10 add $0x10,%esp for (; (ch = *p++) != '\0' && (precision < 0 || --precision >= 0); width--) 8006eb: 83 eb 01 sub $0x1,%ebx 8006ee: 83 c7 01 add $0x1,%edi 8006f1: 0f b6 57 ff movzbl -0x1(%edi),%edx 8006f5: 0f be c2 movsbl %dl,%eax 8006f8: 85 c0 test %eax,%eax 8006fa: 74 59 je 800755 <vprintfmt+0x25d> 8006fc: 85 f6 test %esi,%esi 8006fe: 78 d8 js 8006d8 <vprintfmt+0x1e0> 800700: 83 ee 01 sub $0x1,%esi 800703: 79 d3 jns 8006d8 <vprintfmt+0x1e0> 800705: 89 df mov %ebx,%edi 800707: 8b 75 08 mov 0x8(%ebp),%esi 80070a: 8b 5d 0c mov 0xc(%ebp),%ebx 80070d: eb 37 jmp 800746 <vprintfmt+0x24e> if (altflag && (ch < ' ' || ch > '~')) 80070f: 0f be d2 movsbl %dl,%edx 800712: 83 ea 20 sub $0x20,%edx 800715: 83 fa 5e cmp $0x5e,%edx 800718: 76 c4 jbe 8006de <vprintfmt+0x1e6> putch('?', putdat); 80071a: 83 ec 08 sub $0x8,%esp 80071d: ff 75 0c pushl 0xc(%ebp) 800720: 6a 3f push $0x3f 800722: ff 55 08 call *0x8(%ebp) 800725: 83 c4 10 add $0x10,%esp 800728: eb c1 jmp 8006eb <vprintfmt+0x1f3> 80072a: 89 75 08 mov %esi,0x8(%ebp) 80072d: 8b 75 d0 mov -0x30(%ebp),%esi 800730: 89 5d 0c mov %ebx,0xc(%ebp) 800733: 8b 5d e0 mov -0x20(%ebp),%ebx 800736: eb b6 jmp 8006ee <vprintfmt+0x1f6> putch(' ', putdat); 800738: 83 ec 08 sub $0x8,%esp 80073b: 53 push %ebx 80073c: 6a 20 push $0x20 80073e: ff d6 call *%esi for (; width > 0; width--) 800740: 83 ef 01 sub $0x1,%edi 800743: 83 c4 10 add $0x10,%esp 800746: 85 ff test %edi,%edi 800748: 7f ee jg 800738 <vprintfmt+0x240> if ((p = va_arg(ap, char *)) == NULL) 80074a: 8b 45 cc mov -0x34(%ebp),%eax 80074d: 89 45 14 mov %eax,0x14(%ebp) 800750: e9 78 01 00 00 jmp 8008cd <vprintfmt+0x3d5> 800755: 89 df mov %ebx,%edi 800757: 8b 75 08 mov 0x8(%ebp),%esi 80075a: 8b 5d 0c mov 0xc(%ebp),%ebx 80075d: eb e7 jmp 800746 <vprintfmt+0x24e> if (lflag >= 2) 80075f: 83 f9 01 cmp $0x1,%ecx 800762: 7e 3f jle 8007a3 <vprintfmt+0x2ab> return va_arg(*ap, long long); 800764: 8b 45 14 mov 0x14(%ebp),%eax 800767: 8b 50 04 mov 0x4(%eax),%edx 80076a: 8b 00 mov (%eax),%eax 80076c: 89 45 d8 mov %eax,-0x28(%ebp) 80076f: 89 55 dc mov %edx,-0x24(%ebp) 800772: 8b 45 14 mov 0x14(%ebp),%eax 800775: 8d 40 08 lea 0x8(%eax),%eax 800778: 89 45 14 mov %eax,0x14(%ebp) if ((long long) num < 0) { 80077b: 83 7d dc 00 cmpl $0x0,-0x24(%ebp) 80077f: 79 5c jns 8007dd <vprintfmt+0x2e5> putch('-', putdat); 800781: 83 ec 08 sub $0x8,%esp 800784: 53 push %ebx 800785: 6a 2d push $0x2d 800787: ff d6 call *%esi num = -(long long) num; 800789: 8b 55 d8 mov -0x28(%ebp),%edx 80078c: 8b 4d dc mov -0x24(%ebp),%ecx 80078f: f7 da neg %edx 800791: 83 d1 00 adc $0x0,%ecx 800794: f7 d9 neg %ecx 800796: 83 c4 10 add $0x10,%esp base = 10; 800799: b8 0a 00 00 00 mov $0xa,%eax 80079e: e9 10 01 00 00 jmp 8008b3 <vprintfmt+0x3bb> else if (lflag) 8007a3: 85 c9 test %ecx,%ecx 8007a5: 75 1b jne 8007c2 <vprintfmt+0x2ca> return va_arg(*ap, int); 8007a7: 8b 45 14 mov 0x14(%ebp),%eax 8007aa: 8b 00 mov (%eax),%eax 8007ac: 89 45 d8 mov %eax,-0x28(%ebp) 8007af: 89 c1 mov %eax,%ecx 8007b1: c1 f9 1f sar $0x1f,%ecx 8007b4: 89 4d dc mov %ecx,-0x24(%ebp) 8007b7: 8b 45 14 mov 0x14(%ebp),%eax 8007ba: 8d 40 04 lea 0x4(%eax),%eax 8007bd: 89 45 14 mov %eax,0x14(%ebp) 8007c0: eb b9 jmp 80077b <vprintfmt+0x283> return va_arg(*ap, long); 8007c2: 8b 45 14 mov 0x14(%ebp),%eax 8007c5: 8b 00 mov (%eax),%eax 8007c7: 89 45 d8 mov %eax,-0x28(%ebp) 8007ca: 89 c1 mov %eax,%ecx 8007cc: c1 f9 1f sar $0x1f,%ecx 8007cf: 89 4d dc mov %ecx,-0x24(%ebp) 8007d2: 8b 45 14 mov 0x14(%ebp),%eax 8007d5: 8d 40 04 lea 0x4(%eax),%eax 8007d8: 89 45 14 mov %eax,0x14(%ebp) 8007db: eb 9e jmp 80077b <vprintfmt+0x283> num = getint(&ap, lflag); 8007dd: 8b 55 d8 mov -0x28(%ebp),%edx 8007e0: 8b 4d dc mov -0x24(%ebp),%ecx base = 10; 8007e3: b8 0a 00 00 00 mov $0xa,%eax 8007e8: e9 c6 00 00 00 jmp 8008b3 <vprintfmt+0x3bb> if (lflag >= 2) 8007ed: 83 f9 01 cmp $0x1,%ecx 8007f0: 7e 18 jle 80080a <vprintfmt+0x312> return va_arg(*ap, unsigned long long); 8007f2: 8b 45 14 mov 0x14(%ebp),%eax 8007f5: 8b 10 mov (%eax),%edx 8007f7: 8b 48 04 mov 0x4(%eax),%ecx 8007fa: 8d 40 08 lea 0x8(%eax),%eax 8007fd: 89 45 14 mov %eax,0x14(%ebp) base = 10; 800800: b8 0a 00 00 00 mov $0xa,%eax 800805: e9 a9 00 00 00 jmp 8008b3 <vprintfmt+0x3bb> else if (lflag) 80080a: 85 c9 test %ecx,%ecx 80080c: 75 1a jne 800828 <vprintfmt+0x330> return va_arg(*ap, unsigned int); 80080e: 8b 45 14 mov 0x14(%ebp),%eax 800811: 8b 10 mov (%eax),%edx 800813: b9 00 00 00 00 mov $0x0,%ecx 800818: 8d 40 04 lea 0x4(%eax),%eax 80081b: 89 45 14 mov %eax,0x14(%ebp) base = 10; 80081e: b8 0a 00 00 00 mov $0xa,%eax 800823: e9 8b 00 00 00 jmp 8008b3 <vprintfmt+0x3bb> return va_arg(*ap, unsigned long); 800828: 8b 45 14 mov 0x14(%ebp),%eax 80082b: 8b 10 mov (%eax),%edx 80082d: b9 00 00 00 00 mov $0x0,%ecx 800832: 8d 40 04 lea 0x4(%eax),%eax 800835: 89 45 14 mov %eax,0x14(%ebp) base = 10; 800838: b8 0a 00 00 00 mov $0xa,%eax 80083d: eb 74 jmp 8008b3 <vprintfmt+0x3bb> if (lflag >= 2) 80083f: 83 f9 01 cmp $0x1,%ecx 800842: 7e 15 jle 800859 <vprintfmt+0x361> return va_arg(*ap, unsigned long long); 800844: 8b 45 14 mov 0x14(%ebp),%eax 800847: 8b 10 mov (%eax),%edx 800849: 8b 48 04 mov 0x4(%eax),%ecx 80084c: 8d 40 08 lea 0x8(%eax),%eax 80084f: 89 45 14 mov %eax,0x14(%ebp) base = 8; 800852: b8 08 00 00 00 mov $0x8,%eax 800857: eb 5a jmp 8008b3 <vprintfmt+0x3bb> else if (lflag) 800859: 85 c9 test %ecx,%ecx 80085b: 75 17 jne 800874 <vprintfmt+0x37c> return va_arg(*ap, unsigned int); 80085d: 8b 45 14 mov 0x14(%ebp),%eax 800860: 8b 10 mov (%eax),%edx 800862: b9 00 00 00 00 mov $0x0,%ecx 800867: 8d 40 04 lea 0x4(%eax),%eax 80086a: 89 45 14 mov %eax,0x14(%ebp) base = 8; 80086d: b8 08 00 00 00 mov $0x8,%eax 800872: eb 3f jmp 8008b3 <vprintfmt+0x3bb> return va_arg(*ap, unsigned long); 800874: 8b 45 14 mov 0x14(%ebp),%eax 800877: 8b 10 mov (%eax),%edx 800879: b9 00 00 00 00 mov $0x0,%ecx 80087e: 8d 40 04 lea 0x4(%eax),%eax 800881: 89 45 14 mov %eax,0x14(%ebp) base = 8; 800884: b8 08 00 00 00 mov $0x8,%eax 800889: eb 28 jmp 8008b3 <vprintfmt+0x3bb> putch('0', putdat); 80088b: 83 ec 08 sub $0x8,%esp 80088e: 53 push %ebx 80088f: 6a 30 push $0x30 800891: ff d6 call *%esi putch('x', putdat); 800893: 83 c4 08 add $0x8,%esp 800896: 53 push %ebx 800897: 6a 78 push $0x78 800899: ff d6 call *%esi num = (unsigned long long) 80089b: 8b 45 14 mov 0x14(%ebp),%eax 80089e: 8b 10 mov (%eax),%edx 8008a0: b9 00 00 00 00 mov $0x0,%ecx goto number; 8008a5: 83 c4 10 add $0x10,%esp (uintptr_t) va_arg(ap, void *); 8008a8: 8d 40 04 lea 0x4(%eax),%eax 8008ab: 89 45 14 mov %eax,0x14(%ebp) base = 16; 8008ae: b8 10 00 00 00 mov $0x10,%eax printnum(putch, putdat, num, base, width, padc); 8008b3: 83 ec 0c sub $0xc,%esp 8008b6: 0f be 7d d4 movsbl -0x2c(%ebp),%edi 8008ba: 57 push %edi 8008bb: ff 75 e0 pushl -0x20(%ebp) 8008be: 50 push %eax 8008bf: 51 push %ecx 8008c0: 52 push %edx 8008c1: 89 da mov %ebx,%edx 8008c3: 89 f0 mov %esi,%eax 8008c5: e8 45 fb ff ff call 80040f <printnum> break; 8008ca: 83 c4 20 add $0x20,%esp err = va_arg(ap, int); 8008cd: 8b 7d e4 mov -0x1c(%ebp),%edi while ((ch = *(unsigned char *) fmt++) != '%') { //先将非格式化字符输出到控制台。 8008d0: 83 c7 01 add $0x1,%edi 8008d3: 0f b6 47 ff movzbl -0x1(%edi),%eax 8008d7: 83 f8 25 cmp $0x25,%eax 8008da: 0f 84 2f fc ff ff je 80050f <vprintfmt+0x17> if (ch == '\0') //如果没有格式化字符直接返回 8008e0: 85 c0 test %eax,%eax 8008e2: 0f 84 8b 00 00 00 je 800973 <vprintfmt+0x47b> putch(ch, putdat); 8008e8: 83 ec 08 sub $0x8,%esp 8008eb: 53 push %ebx 8008ec: 50 push %eax 8008ed: ff d6 call *%esi 8008ef: 83 c4 10 add $0x10,%esp 8008f2: eb dc jmp 8008d0 <vprintfmt+0x3d8> if (lflag >= 2) 8008f4: 83 f9 01 cmp $0x1,%ecx 8008f7: 7e 15 jle 80090e <vprintfmt+0x416> return va_arg(*ap, unsigned long long); 8008f9: 8b 45 14 mov 0x14(%ebp),%eax 8008fc: 8b 10 mov (%eax),%edx 8008fe: 8b 48 04 mov 0x4(%eax),%ecx 800901: 8d 40 08 lea 0x8(%eax),%eax 800904: 89 45 14 mov %eax,0x14(%ebp) base = 16; 800907: b8 10 00 00 00 mov $0x10,%eax 80090c: eb a5 jmp 8008b3 <vprintfmt+0x3bb> else if (lflag) 80090e: 85 c9 test %ecx,%ecx 800910: 75 17 jne 800929 <vprintfmt+0x431> return va_arg(*ap, unsigned int); 800912: 8b 45 14 mov 0x14(%ebp),%eax 800915: 8b 10 mov (%eax),%edx 800917: b9 00 00 00 00 mov $0x0,%ecx 80091c: 8d 40 04 lea 0x4(%eax),%eax 80091f: 89 45 14 mov %eax,0x14(%ebp) base = 16; 800922: b8 10 00 00 00 mov $0x10,%eax 800927: eb 8a jmp 8008b3 <vprintfmt+0x3bb> return va_arg(*ap, unsigned long); 800929: 8b 45 14 mov 0x14(%ebp),%eax 80092c: 8b 10 mov (%eax),%edx 80092e: b9 00 00 00 00 mov $0x0,%ecx 800933: 8d 40 04 lea 0x4(%eax),%eax 800936: 89 45 14 mov %eax,0x14(%ebp) base = 16; 800939: b8 10 00 00 00 mov $0x10,%eax 80093e: e9 70 ff ff ff jmp 8008b3 <vprintfmt+0x3bb> putch(ch, putdat); 800943: 83 ec 08 sub $0x8,%esp 800946: 53 push %ebx 800947: 6a 25 push $0x25 800949: ff d6 call *%esi break; 80094b: 83 c4 10 add $0x10,%esp 80094e: e9 7a ff ff ff jmp 8008cd <vprintfmt+0x3d5> putch('%', putdat); 800953: 83 ec 08 sub $0x8,%esp 800956: 53 push %ebx 800957: 6a 25 push $0x25 800959: ff d6 call *%esi for (fmt--; fmt[-1] != '%'; fmt--) 80095b: 83 c4 10 add $0x10,%esp 80095e: 89 f8 mov %edi,%eax 800960: eb 03 jmp 800965 <vprintfmt+0x46d> 800962: 83 e8 01 sub $0x1,%eax 800965: 80 78 ff 25 cmpb $0x25,-0x1(%eax) 800969: 75 f7 jne 800962 <vprintfmt+0x46a> 80096b: 89 45 e4 mov %eax,-0x1c(%ebp) 80096e: e9 5a ff ff ff jmp 8008cd <vprintfmt+0x3d5> } 800973: 8d 65 f4 lea -0xc(%ebp),%esp 800976: 5b pop %ebx 800977: 5e pop %esi 800978: 5f pop %edi 800979: 5d pop %ebp 80097a: c3 ret 0080097b <vsnprintf>: int vsnprintf(char *buf, int n, const char *fmt, va_list ap) { 80097b: 55 push %ebp 80097c: 89 e5 mov %esp,%ebp 80097e: 83 ec 18 sub $0x18,%esp 800981: 8b 45 08 mov 0x8(%ebp),%eax 800984: 8b 55 0c mov 0xc(%ebp),%edx struct sprintbuf b = {buf, buf+n-1, 0}; 800987: 89 45 ec mov %eax,-0x14(%ebp) 80098a: 8d 4c 10 ff lea -0x1(%eax,%edx,1),%ecx 80098e: 89 4d f0 mov %ecx,-0x10(%ebp) 800991: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) if (buf == NULL || n < 1) 800998: 85 c0 test %eax,%eax 80099a: 74 26 je 8009c2 <vsnprintf+0x47> 80099c: 85 d2 test %edx,%edx 80099e: 7e 22 jle 8009c2 <vsnprintf+0x47> return -E_INVAL; // print the string to the buffer vprintfmt((void*)sprintputch, &b, fmt, ap); 8009a0: ff 75 14 pushl 0x14(%ebp) 8009a3: ff 75 10 pushl 0x10(%ebp) 8009a6: 8d 45 ec lea -0x14(%ebp),%eax 8009a9: 50 push %eax 8009aa: 68 be 04 80 00 push $0x8004be 8009af: e8 44 fb ff ff call 8004f8 <vprintfmt> // null terminate the buffer *b.buf = '\0'; 8009b4: 8b 45 ec mov -0x14(%ebp),%eax 8009b7: c6 00 00 movb $0x0,(%eax) return b.cnt; 8009ba: 8b 45 f4 mov -0xc(%ebp),%eax 8009bd: 83 c4 10 add $0x10,%esp } 8009c0: c9 leave 8009c1: c3 ret return -E_INVAL; 8009c2: b8 fd ff ff ff mov $0xfffffffd,%eax 8009c7: eb f7 jmp 8009c0 <vsnprintf+0x45> 008009c9 <snprintf>: int snprintf(char *buf, int n, const char *fmt, ...) { 8009c9: 55 push %ebp 8009ca: 89 e5 mov %esp,%ebp 8009cc: 83 ec 08 sub $0x8,%esp va_list ap; int rc; va_start(ap, fmt); 8009cf: 8d 45 14 lea 0x14(%ebp),%eax rc = vsnprintf(buf, n, fmt, ap); 8009d2: 50 push %eax 8009d3: ff 75 10 pushl 0x10(%ebp) 8009d6: ff 75 0c pushl 0xc(%ebp) 8009d9: ff 75 08 pushl 0x8(%ebp) 8009dc: e8 9a ff ff ff call 80097b <vsnprintf> va_end(ap); return rc; } 8009e1: c9 leave 8009e2: c3 ret 008009e3 <strlen>: // Primespipe runs 3x faster this way. #define ASM 1 int strlen(const char *s) { 8009e3: 55 push %ebp 8009e4: 89 e5 mov %esp,%ebp 8009e6: 8b 55 08 mov 0x8(%ebp),%edx int n; for (n = 0; *s != '\0'; s++) 8009e9: b8 00 00 00 00 mov $0x0,%eax 8009ee: eb 03 jmp 8009f3 <strlen+0x10> n++; 8009f0: 83 c0 01 add $0x1,%eax for (n = 0; *s != '\0'; s++) 8009f3: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1) 8009f7: 75 f7 jne 8009f0 <strlen+0xd> return n; } 8009f9: 5d pop %ebp 8009fa: c3 ret 008009fb <strnlen>: int strnlen(const char *s, size_t size) { 8009fb: 55 push %ebp 8009fc: 89 e5 mov %esp,%ebp 8009fe: 8b 4d 08 mov 0x8(%ebp),%ecx 800a01: 8b 55 0c mov 0xc(%ebp),%edx int n; for (n = 0; size > 0 && *s != '\0'; s++, size--) 800a04: b8 00 00 00 00 mov $0x0,%eax 800a09: eb 03 jmp 800a0e <strnlen+0x13> n++; 800a0b: 83 c0 01 add $0x1,%eax for (n = 0; size > 0 && *s != '\0'; s++, size--) 800a0e: 39 d0 cmp %edx,%eax 800a10: 74 06 je 800a18 <strnlen+0x1d> 800a12: 80 3c 01 00 cmpb $0x0,(%ecx,%eax,1) 800a16: 75 f3 jne 800a0b <strnlen+0x10> return n; } 800a18: 5d pop %ebp 800a19: c3 ret 00800a1a <strcpy>: char * strcpy(char *dst, const char *src) { 800a1a: 55 push %ebp 800a1b: 89 e5 mov %esp,%ebp 800a1d: 53 push %ebx 800a1e: 8b 45 08 mov 0x8(%ebp),%eax 800a21: 8b 4d 0c mov 0xc(%ebp),%ecx char *ret; ret = dst; while ((*dst++ = *src++) != '\0') 800a24: 89 c2 mov %eax,%edx 800a26: 83 c1 01 add $0x1,%ecx 800a29: 83 c2 01 add $0x1,%edx 800a2c: 0f b6 59 ff movzbl -0x1(%ecx),%ebx 800a30: 88 5a ff mov %bl,-0x1(%edx) 800a33: 84 db test %bl,%bl 800a35: 75 ef jne 800a26 <strcpy+0xc> /* do nothing */; return ret; } 800a37: 5b pop %ebx 800a38: 5d pop %ebp 800a39: c3 ret 00800a3a <strcat>: char * strcat(char *dst, const char *src) { 800a3a: 55 push %ebp 800a3b: 89 e5 mov %esp,%ebp 800a3d: 53 push %ebx 800a3e: 8b 5d 08 mov 0x8(%ebp),%ebx int len = strlen(dst); 800a41: 53 push %ebx 800a42: e8 9c ff ff ff call 8009e3 <strlen> 800a47: 83 c4 04 add $0x4,%esp strcpy(dst + len, src); 800a4a: ff 75 0c pushl 0xc(%ebp) 800a4d: 01 d8 add %ebx,%eax 800a4f: 50 push %eax 800a50: e8 c5 ff ff ff call 800a1a <strcpy> return dst; } 800a55: 89 d8 mov %ebx,%eax 800a57: 8b 5d fc mov -0x4(%ebp),%ebx 800a5a: c9 leave 800a5b: c3 ret 00800a5c <strncpy>: char * strncpy(char *dst, const char *src, size_t size) { 800a5c: 55 push %ebp 800a5d: 89 e5 mov %esp,%ebp 800a5f: 56 push %esi 800a60: 53 push %ebx 800a61: 8b 75 08 mov 0x8(%ebp),%esi 800a64: 8b 4d 0c mov 0xc(%ebp),%ecx 800a67: 89 f3 mov %esi,%ebx 800a69: 03 5d 10 add 0x10(%ebp),%ebx size_t i; char *ret; ret = dst; for (i = 0; i < size; i++) { 800a6c: 89 f2 mov %esi,%edx 800a6e: eb 0f jmp 800a7f <strncpy+0x23> *dst++ = *src; 800a70: 83 c2 01 add $0x1,%edx 800a73: 0f b6 01 movzbl (%ecx),%eax 800a76: 88 42 ff mov %al,-0x1(%edx) // If strlen(src) < size, null-pad 'dst' out to 'size' chars if (*src != '\0') src++; 800a79: 80 39 01 cmpb $0x1,(%ecx) 800a7c: 83 d9 ff sbb $0xffffffff,%ecx for (i = 0; i < size; i++) { 800a7f: 39 da cmp %ebx,%edx 800a81: 75 ed jne 800a70 <strncpy+0x14> } return ret; } 800a83: 89 f0 mov %esi,%eax 800a85: 5b pop %ebx 800a86: 5e pop %esi 800a87: 5d pop %ebp 800a88: c3 ret 00800a89 <strlcpy>: size_t strlcpy(char *dst, const char *src, size_t size) { 800a89: 55 push %ebp 800a8a: 89 e5 mov %esp,%ebp 800a8c: 56 push %esi 800a8d: 53 push %ebx 800a8e: 8b 75 08 mov 0x8(%ebp),%esi 800a91: 8b 55 0c mov 0xc(%ebp),%edx 800a94: 8b 4d 10 mov 0x10(%ebp),%ecx 800a97: 89 f0 mov %esi,%eax 800a99: 8d 5c 0e ff lea -0x1(%esi,%ecx,1),%ebx char *dst_in; dst_in = dst; if (size > 0) { 800a9d: 85 c9 test %ecx,%ecx 800a9f: 75 0b jne 800aac <strlcpy+0x23> 800aa1: eb 17 jmp 800aba <strlcpy+0x31> while (--size > 0 && *src != '\0') *dst++ = *src++; 800aa3: 83 c2 01 add $0x1,%edx 800aa6: 83 c0 01 add $0x1,%eax 800aa9: 88 48 ff mov %cl,-0x1(%eax) while (--size > 0 && *src != '\0') 800aac: 39 d8 cmp %ebx,%eax 800aae: 74 07 je 800ab7 <strlcpy+0x2e> 800ab0: 0f b6 0a movzbl (%edx),%ecx 800ab3: 84 c9 test %cl,%cl 800ab5: 75 ec jne 800aa3 <strlcpy+0x1a> *dst = '\0'; 800ab7: c6 00 00 movb $0x0,(%eax) } return dst - dst_in; 800aba: 29 f0 sub %esi,%eax } 800abc: 5b pop %ebx 800abd: 5e pop %esi 800abe: 5d pop %ebp 800abf: c3 ret 00800ac0 <strcmp>: int strcmp(const char *p, const char *q) { 800ac0: 55 push %ebp 800ac1: 89 e5 mov %esp,%ebp 800ac3: 8b 4d 08 mov 0x8(%ebp),%ecx 800ac6: 8b 55 0c mov 0xc(%ebp),%edx while (*p && *p == *q) 800ac9: eb 06 jmp 800ad1 <strcmp+0x11> p++, q++; 800acb: 83 c1 01 add $0x1,%ecx 800ace: 83 c2 01 add $0x1,%edx while (*p && *p == *q) 800ad1: 0f b6 01 movzbl (%ecx),%eax 800ad4: 84 c0 test %al,%al 800ad6: 74 04 je 800adc <strcmp+0x1c> 800ad8: 3a 02 cmp (%edx),%al 800ada: 74 ef je 800acb <strcmp+0xb> return (int) ((unsigned char) *p - (unsigned char) *q); 800adc: 0f b6 c0 movzbl %al,%eax 800adf: 0f b6 12 movzbl (%edx),%edx 800ae2: 29 d0 sub %edx,%eax } 800ae4: 5d pop %ebp 800ae5: c3 ret 00800ae6 <strncmp>: int strncmp(const char *p, const char *q, size_t n) { 800ae6: 55 push %ebp 800ae7: 89 e5 mov %esp,%ebp 800ae9: 53 push %ebx 800aea: 8b 45 08 mov 0x8(%ebp),%eax 800aed: 8b 55 0c mov 0xc(%ebp),%edx 800af0: 89 c3 mov %eax,%ebx 800af2: 03 5d 10 add 0x10(%ebp),%ebx while (n > 0 && *p && *p == *q) 800af5: eb 06 jmp 800afd <strncmp+0x17> n--, p++, q++; 800af7: 83 c0 01 add $0x1,%eax 800afa: 83 c2 01 add $0x1,%edx while (n > 0 && *p && *p == *q) 800afd: 39 d8 cmp %ebx,%eax 800aff: 74 16 je 800b17 <strncmp+0x31> 800b01: 0f b6 08 movzbl (%eax),%ecx 800b04: 84 c9 test %cl,%cl 800b06: 74 04 je 800b0c <strncmp+0x26> 800b08: 3a 0a cmp (%edx),%cl 800b0a: 74 eb je 800af7 <strncmp+0x11> if (n == 0) return 0; else return (int) ((unsigned char) *p - (unsigned char) *q); 800b0c: 0f b6 00 movzbl (%eax),%eax 800b0f: 0f b6 12 movzbl (%edx),%edx 800b12: 29 d0 sub %edx,%eax } 800b14: 5b pop %ebx 800b15: 5d pop %ebp 800b16: c3 ret return 0; 800b17: b8 00 00 00 00 mov $0x0,%eax 800b1c: eb f6 jmp 800b14 <strncmp+0x2e> 00800b1e <strchr>: // Return a pointer to the first occurrence of 'c' in 's', // or a null pointer if the string has no 'c'. char * strchr(const char *s, char c) { 800b1e: 55 push %ebp 800b1f: 89 e5 mov %esp,%ebp 800b21: 8b 45 08 mov 0x8(%ebp),%eax 800b24: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for (; *s; s++) 800b28: 0f b6 10 movzbl (%eax),%edx 800b2b: 84 d2 test %dl,%dl 800b2d: 74 09 je 800b38 <strchr+0x1a> if (*s == c) 800b2f: 38 ca cmp %cl,%dl 800b31: 74 0a je 800b3d <strchr+0x1f> for (; *s; s++) 800b33: 83 c0 01 add $0x1,%eax 800b36: eb f0 jmp 800b28 <strchr+0xa> return (char *) s; return 0; 800b38: b8 00 00 00 00 mov $0x0,%eax } 800b3d: 5d pop %ebp 800b3e: c3 ret 00800b3f <strfind>: // Return a pointer to the first occurrence of 'c' in 's', // or a pointer to the string-ending null character if the string has no 'c'. char * strfind(const char *s, char c) { 800b3f: 55 push %ebp 800b40: 89 e5 mov %esp,%ebp 800b42: 8b 45 08 mov 0x8(%ebp),%eax 800b45: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for (; *s; s++) 800b49: eb 03 jmp 800b4e <strfind+0xf> 800b4b: 83 c0 01 add $0x1,%eax 800b4e: 0f b6 10 movzbl (%eax),%edx if (*s == c) 800b51: 38 ca cmp %cl,%dl 800b53: 74 04 je 800b59 <strfind+0x1a> 800b55: 84 d2 test %dl,%dl 800b57: 75 f2 jne 800b4b <strfind+0xc> break; return (char *) s; } 800b59: 5d pop %ebp 800b5a: c3 ret 00800b5b <memset>: #if ASM void * memset(void *v, int c, size_t n) { 800b5b: 55 push %ebp 800b5c: 89 e5 mov %esp,%ebp 800b5e: 57 push %edi 800b5f: 56 push %esi 800b60: 53 push %ebx 800b61: 8b 7d 08 mov 0x8(%ebp),%edi 800b64: 8b 4d 10 mov 0x10(%ebp),%ecx char *p; if (n == 0) 800b67: 85 c9 test %ecx,%ecx 800b69: 74 13 je 800b7e <memset+0x23> return v; if ((int)v%4 == 0 && n%4 == 0) { 800b6b: f7 c7 03 00 00 00 test $0x3,%edi 800b71: 75 05 jne 800b78 <memset+0x1d> 800b73: f6 c1 03 test $0x3,%cl 800b76: 74 0d je 800b85 <memset+0x2a> c = (c<<24)|(c<<16)|(c<<8)|c; asm volatile("cld; rep stosl\n" :: "D" (v), "a" (c), "c" (n/4) : "cc", "memory"); } else asm volatile("cld; rep stosb\n" 800b78: 8b 45 0c mov 0xc(%ebp),%eax 800b7b: fc cld 800b7c: f3 aa rep stos %al,%es:(%edi) :: "D" (v), "a" (c), "c" (n) : "cc", "memory"); return v; } 800b7e: 89 f8 mov %edi,%eax 800b80: 5b pop %ebx 800b81: 5e pop %esi 800b82: 5f pop %edi 800b83: 5d pop %ebp 800b84: c3 ret c &= 0xFF; 800b85: 0f b6 55 0c movzbl 0xc(%ebp),%edx c = (c<<24)|(c<<16)|(c<<8)|c; 800b89: 89 d3 mov %edx,%ebx 800b8b: c1 e3 08 shl $0x8,%ebx 800b8e: 89 d0 mov %edx,%eax 800b90: c1 e0 18 shl $0x18,%eax 800b93: 89 d6 mov %edx,%esi 800b95: c1 e6 10 shl $0x10,%esi 800b98: 09 f0 or %esi,%eax 800b9a: 09 c2 or %eax,%edx 800b9c: 09 da or %ebx,%edx :: "D" (v), "a" (c), "c" (n/4) 800b9e: c1 e9 02 shr $0x2,%ecx asm volatile("cld; rep stosl\n" 800ba1: 89 d0 mov %edx,%eax 800ba3: fc cld 800ba4: f3 ab rep stos %eax,%es:(%edi) 800ba6: eb d6 jmp 800b7e <memset+0x23> 00800ba8 <memmove>: void * memmove(void *dst, const void *src, size_t n) { 800ba8: 55 push %ebp 800ba9: 89 e5 mov %esp,%ebp 800bab: 57 push %edi 800bac: 56 push %esi 800bad: 8b 45 08 mov 0x8(%ebp),%eax 800bb0: 8b 75 0c mov 0xc(%ebp),%esi 800bb3: 8b 4d 10 mov 0x10(%ebp),%ecx const char *s; char *d; s = src; d = dst; if (s < d && s + n > d) { 800bb6: 39 c6 cmp %eax,%esi 800bb8: 73 35 jae 800bef <memmove+0x47> 800bba: 8d 14 0e lea (%esi,%ecx,1),%edx 800bbd: 39 c2 cmp %eax,%edx 800bbf: 76 2e jbe 800bef <memmove+0x47> s += n; d += n; 800bc1: 8d 3c 08 lea (%eax,%ecx,1),%edi if ((int)s%4 == 0 && (int)d%4 == 0 && n%4 == 0) 800bc4: 89 d6 mov %edx,%esi 800bc6: 09 fe or %edi,%esi 800bc8: f7 c6 03 00 00 00 test $0x3,%esi 800bce: 74 0c je 800bdc <memmove+0x34> asm volatile("std; rep movsl\n" :: "D" (d-4), "S" (s-4), "c" (n/4) : "cc", "memory"); else asm volatile("std; rep movsb\n" :: "D" (d-1), "S" (s-1), "c" (n) : "cc", "memory"); 800bd0: 83 ef 01 sub $0x1,%edi 800bd3: 8d 72 ff lea -0x1(%edx),%esi asm volatile("std; rep movsb\n" 800bd6: fd std 800bd7: f3 a4 rep movsb %ds:(%esi),%es:(%edi) // Some versions of GCC rely on DF being clear asm volatile("cld" ::: "cc"); 800bd9: fc cld 800bda: eb 21 jmp 800bfd <memmove+0x55> if ((int)s%4 == 0 && (int)d%4 == 0 && n%4 == 0) 800bdc: f6 c1 03 test $0x3,%cl 800bdf: 75 ef jne 800bd0 <memmove+0x28> :: "D" (d-4), "S" (s-4), "c" (n/4) : "cc", "memory"); 800be1: 83 ef 04 sub $0x4,%edi 800be4: 8d 72 fc lea -0x4(%edx),%esi 800be7: c1 e9 02 shr $0x2,%ecx asm volatile("std; rep movsl\n" 800bea: fd std 800beb: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 800bed: eb ea jmp 800bd9 <memmove+0x31> } else { if ((int)s%4 == 0 && (int)d%4 == 0 && n%4 == 0) 800bef: 89 f2 mov %esi,%edx 800bf1: 09 c2 or %eax,%edx 800bf3: f6 c2 03 test $0x3,%dl 800bf6: 74 09 je 800c01 <memmove+0x59> asm volatile("cld; rep movsl\n" :: "D" (d), "S" (s), "c" (n/4) : "cc", "memory"); else asm volatile("cld; rep movsb\n" 800bf8: 89 c7 mov %eax,%edi 800bfa: fc cld 800bfb: f3 a4 rep movsb %ds:(%esi),%es:(%edi) :: "D" (d), "S" (s), "c" (n) : "cc", "memory"); } return dst; } 800bfd: 5e pop %esi 800bfe: 5f pop %edi 800bff: 5d pop %ebp 800c00: c3 ret if ((int)s%4 == 0 && (int)d%4 == 0 && n%4 == 0) 800c01: f6 c1 03 test $0x3,%cl 800c04: 75 f2 jne 800bf8 <memmove+0x50> :: "D" (d), "S" (s), "c" (n/4) : "cc", "memory"); 800c06: c1 e9 02 shr $0x2,%ecx asm volatile("cld; rep movsl\n" 800c09: 89 c7 mov %eax,%edi 800c0b: fc cld 800c0c: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 800c0e: eb ed jmp 800bfd <memmove+0x55> 00800c10 <memcpy>: } #endif void * memcpy(void *dst, const void *src, size_t n) { 800c10: 55 push %ebp 800c11: 89 e5 mov %esp,%ebp return memmove(dst, src, n); 800c13: ff 75 10 pushl 0x10(%ebp) 800c16: ff 75 0c pushl 0xc(%ebp) 800c19: ff 75 08 pushl 0x8(%ebp) 800c1c: e8 87 ff ff ff call 800ba8 <memmove> } 800c21: c9 leave 800c22: c3 ret 00800c23 <memcmp>: int memcmp(const void *v1, const void *v2, size_t n) { 800c23: 55 push %ebp 800c24: 89 e5 mov %esp,%ebp 800c26: 56 push %esi 800c27: 53 push %ebx 800c28: 8b 45 08 mov 0x8(%ebp),%eax 800c2b: 8b 55 0c mov 0xc(%ebp),%edx 800c2e: 89 c6 mov %eax,%esi 800c30: 03 75 10 add 0x10(%ebp),%esi const uint8_t *s1 = (const uint8_t *) v1; const uint8_t *s2 = (const uint8_t *) v2; while (n-- > 0) { 800c33: 39 f0 cmp %esi,%eax 800c35: 74 1c je 800c53 <memcmp+0x30> if (*s1 != *s2) 800c37: 0f b6 08 movzbl (%eax),%ecx 800c3a: 0f b6 1a movzbl (%edx),%ebx 800c3d: 38 d9 cmp %bl,%cl 800c3f: 75 08 jne 800c49 <memcmp+0x26> return (int) *s1 - (int) *s2; s1++, s2++; 800c41: 83 c0 01 add $0x1,%eax 800c44: 83 c2 01 add $0x1,%edx 800c47: eb ea jmp 800c33 <memcmp+0x10> return (int) *s1 - (int) *s2; 800c49: 0f b6 c1 movzbl %cl,%eax 800c4c: 0f b6 db movzbl %bl,%ebx 800c4f: 29 d8 sub %ebx,%eax 800c51: eb 05 jmp 800c58 <memcmp+0x35> } return 0; 800c53: b8 00 00 00 00 mov $0x0,%eax } 800c58: 5b pop %ebx 800c59: 5e pop %esi 800c5a: 5d pop %ebp 800c5b: c3 ret 00800c5c <memfind>: void * memfind(const void *s, int c, size_t n) { 800c5c: 55 push %ebp 800c5d: 89 e5 mov %esp,%ebp 800c5f: 8b 45 08 mov 0x8(%ebp),%eax 800c62: 8b 4d 0c mov 0xc(%ebp),%ecx const void *ends = (const char *) s + n; 800c65: 89 c2 mov %eax,%edx 800c67: 03 55 10 add 0x10(%ebp),%edx for (; s < ends; s++) 800c6a: 39 d0 cmp %edx,%eax 800c6c: 73 09 jae 800c77 <memfind+0x1b> if (*(const unsigned char *) s == (unsigned char) c) 800c6e: 38 08 cmp %cl,(%eax) 800c70: 74 05 je 800c77 <memfind+0x1b> for (; s < ends; s++) 800c72: 83 c0 01 add $0x1,%eax 800c75: eb f3 jmp 800c6a <memfind+0xe> break; return (void *) s; } 800c77: 5d pop %ebp 800c78: c3 ret 00800c79 <strtol>: long strtol(const char *s, char **endptr, int base) { 800c79: 55 push %ebp 800c7a: 89 e5 mov %esp,%ebp 800c7c: 57 push %edi 800c7d: 56 push %esi 800c7e: 53 push %ebx 800c7f: 8b 4d 08 mov 0x8(%ebp),%ecx 800c82: 8b 5d 10 mov 0x10(%ebp),%ebx int neg = 0; long val = 0; // gobble initial whitespace while (*s == ' ' || *s == '\t') 800c85: eb 03 jmp 800c8a <strtol+0x11> s++; 800c87: 83 c1 01 add $0x1,%ecx while (*s == ' ' || *s == '\t') 800c8a: 0f b6 01 movzbl (%ecx),%eax 800c8d: 3c 20 cmp $0x20,%al 800c8f: 74 f6 je 800c87 <strtol+0xe> 800c91: 3c 09 cmp $0x9,%al 800c93: 74 f2 je 800c87 <strtol+0xe> // plus/minus sign if (*s == '+') 800c95: 3c 2b cmp $0x2b,%al 800c97: 74 2e je 800cc7 <strtol+0x4e> int neg = 0; 800c99: bf 00 00 00 00 mov $0x0,%edi s++; else if (*s == '-') 800c9e: 3c 2d cmp $0x2d,%al 800ca0: 74 2f je 800cd1 <strtol+0x58> s++, neg = 1; // hex or octal base prefix if ((base == 0 || base == 16) && (s[0] == '0' && s[1] == 'x')) 800ca2: f7 c3 ef ff ff ff test $0xffffffef,%ebx 800ca8: 75 05 jne 800caf <strtol+0x36> 800caa: 80 39 30 cmpb $0x30,(%ecx) 800cad: 74 2c je 800cdb <strtol+0x62> s += 2, base = 16; else if (base == 0 && s[0] == '0') 800caf: 85 db test %ebx,%ebx 800cb1: 75 0a jne 800cbd <strtol+0x44> s++, base = 8; else if (base == 0) base = 10; 800cb3: bb 0a 00 00 00 mov $0xa,%ebx else if (base == 0 && s[0] == '0') 800cb8: 80 39 30 cmpb $0x30,(%ecx) 800cbb: 74 28 je 800ce5 <strtol+0x6c> base = 10; 800cbd: b8 00 00 00 00 mov $0x0,%eax 800cc2: 89 5d 10 mov %ebx,0x10(%ebp) 800cc5: eb 50 jmp 800d17 <strtol+0x9e> s++; 800cc7: 83 c1 01 add $0x1,%ecx int neg = 0; 800cca: bf 00 00 00 00 mov $0x0,%edi 800ccf: eb d1 jmp 800ca2 <strtol+0x29> s++, neg = 1; 800cd1: 83 c1 01 add $0x1,%ecx 800cd4: bf 01 00 00 00 mov $0x1,%edi 800cd9: eb c7 jmp 800ca2 <strtol+0x29> if ((base == 0 || base == 16) && (s[0] == '0' && s[1] == 'x')) 800cdb: 80 79 01 78 cmpb $0x78,0x1(%ecx) 800cdf: 74 0e je 800cef <strtol+0x76> else if (base == 0 && s[0] == '0') 800ce1: 85 db test %ebx,%ebx 800ce3: 75 d8 jne 800cbd <strtol+0x44> s++, base = 8; 800ce5: 83 c1 01 add $0x1,%ecx 800ce8: bb 08 00 00 00 mov $0x8,%ebx 800ced: eb ce jmp 800cbd <strtol+0x44> s += 2, base = 16; 800cef: 83 c1 02 add $0x2,%ecx 800cf2: bb 10 00 00 00 mov $0x10,%ebx 800cf7: eb c4 jmp 800cbd <strtol+0x44> while (1) { int dig; if (*s >= '0' && *s <= '9') dig = *s - '0'; else if (*s >= 'a' && *s <= 'z') 800cf9: 8d 72 9f lea -0x61(%edx),%esi 800cfc: 89 f3 mov %esi,%ebx 800cfe: 80 fb 19 cmp $0x19,%bl 800d01: 77 29 ja 800d2c <strtol+0xb3> dig = *s - 'a' + 10; 800d03: 0f be d2 movsbl %dl,%edx 800d06: 83 ea 57 sub $0x57,%edx else if (*s >= 'A' && *s <= 'Z') dig = *s - 'A' + 10; else break; if (dig >= base) 800d09: 3b 55 10 cmp 0x10(%ebp),%edx 800d0c: 7d 30 jge 800d3e <strtol+0xc5> break; s++, val = (val * base) + dig; 800d0e: 83 c1 01 add $0x1,%ecx 800d11: 0f af 45 10 imul 0x10(%ebp),%eax 800d15: 01 d0 add %edx,%eax if (*s >= '0' && *s <= '9') 800d17: 0f b6 11 movzbl (%ecx),%edx 800d1a: 8d 72 d0 lea -0x30(%edx),%esi 800d1d: 89 f3 mov %esi,%ebx 800d1f: 80 fb 09 cmp $0x9,%bl 800d22: 77 d5 ja 800cf9 <strtol+0x80> dig = *s - '0'; 800d24: 0f be d2 movsbl %dl,%edx 800d27: 83 ea 30 sub $0x30,%edx 800d2a: eb dd jmp 800d09 <strtol+0x90> else if (*s >= 'A' && *s <= 'Z') 800d2c: 8d 72 bf lea -0x41(%edx),%esi 800d2f: 89 f3 mov %esi,%ebx 800d31: 80 fb 19 cmp $0x19,%bl 800d34: 77 08 ja 800d3e <strtol+0xc5> dig = *s - 'A' + 10; 800d36: 0f be d2 movsbl %dl,%edx 800d39: 83 ea 37 sub $0x37,%edx 800d3c: eb cb jmp 800d09 <strtol+0x90> // we don't properly detect overflow! } if (endptr) 800d3e: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 800d42: 74 05 je 800d49 <strtol+0xd0> *endptr = (char *) s; 800d44: 8b 75 0c mov 0xc(%ebp),%esi 800d47: 89 0e mov %ecx,(%esi) return (neg ? -val : val); 800d49: 89 c2 mov %eax,%edx 800d4b: f7 da neg %edx 800d4d: 85 ff test %edi,%edi 800d4f: 0f 45 c2 cmovne %edx,%eax } 800d52: 5b pop %ebx 800d53: 5e pop %esi 800d54: 5f pop %edi 800d55: 5d pop %ebp 800d56: c3 ret 00800d57 <sys_cputs>: return ret; } void sys_cputs(const char *s, size_t len) { 800d57: 55 push %ebp 800d58: 89 e5 mov %esp,%ebp 800d5a: 57 push %edi 800d5b: 56 push %esi 800d5c: 53 push %ebx asm volatile("int %1\n" //执行int T_SYSCALL指令 800d5d: b8 00 00 00 00 mov $0x0,%eax 800d62: 8b 55 08 mov 0x8(%ebp),%edx 800d65: 8b 4d 0c mov 0xc(%ebp),%ecx 800d68: 89 c3 mov %eax,%ebx 800d6a: 89 c7 mov %eax,%edi 800d6c: 89 c6 mov %eax,%esi 800d6e: cd 30 int $0x30 syscall(SYS_cputs, 0, (uint32_t)s, len, 0, 0, 0); } 800d70: 5b pop %ebx 800d71: 5e pop %esi 800d72: 5f pop %edi 800d73: 5d pop %ebp 800d74: c3 ret 00800d75 <sys_cgetc>: int sys_cgetc(void) { 800d75: 55 push %ebp 800d76: 89 e5 mov %esp,%ebp 800d78: 57 push %edi 800d79: 56 push %esi 800d7a: 53 push %ebx asm volatile("int %1\n" //执行int T_SYSCALL指令 800d7b: ba 00 00 00 00 mov $0x0,%edx 800d80: b8 01 00 00 00 mov $0x1,%eax 800d85: 89 d1 mov %edx,%ecx 800d87: 89 d3 mov %edx,%ebx 800d89: 89 d7 mov %edx,%edi 800d8b: 89 d6 mov %edx,%esi 800d8d: cd 30 int $0x30 return syscall(SYS_cgetc, 0, 0, 0, 0, 0, 0); } 800d8f: 5b pop %ebx 800d90: 5e pop %esi 800d91: 5f pop %edi 800d92: 5d pop %ebp 800d93: c3 ret 00800d94 <sys_env_destroy>: int sys_env_destroy(envid_t envid) { 800d94: 55 push %ebp 800d95: 89 e5 mov %esp,%ebp 800d97: 57 push %edi 800d98: 56 push %esi 800d99: 53 push %ebx 800d9a: 83 ec 0c sub $0xc,%esp asm volatile("int %1\n" //执行int T_SYSCALL指令 800d9d: b9 00 00 00 00 mov $0x0,%ecx 800da2: 8b 55 08 mov 0x8(%ebp),%edx 800da5: b8 03 00 00 00 mov $0x3,%eax 800daa: 89 cb mov %ecx,%ebx 800dac: 89 cf mov %ecx,%edi 800dae: 89 ce mov %ecx,%esi 800db0: cd 30 int $0x30 if(check && ret > 0) 800db2: 85 c0 test %eax,%eax 800db4: 7f 08 jg 800dbe <sys_env_destroy+0x2a> return syscall(SYS_env_destroy, 1, envid, 0, 0, 0, 0); } 800db6: 8d 65 f4 lea -0xc(%ebp),%esp 800db9: 5b pop %ebx 800dba: 5e pop %esi 800dbb: 5f pop %edi 800dbc: 5d pop %ebp 800dbd: c3 ret panic("syscall %d returned %d (> 0)", num, ret); 800dbe: 83 ec 0c sub $0xc,%esp 800dc1: 50 push %eax 800dc2: 6a 03 push $0x3 800dc4: 68 bf 26 80 00 push $0x8026bf 800dc9: 6a 23 push $0x23 800dcb: 68 dc 26 80 00 push $0x8026dc 800dd0: e8 4b f5 ff ff call 800320 <_panic> 00800dd5 <sys_getenvid>: envid_t sys_getenvid(void) { 800dd5: 55 push %ebp 800dd6: 89 e5 mov %esp,%ebp 800dd8: 57 push %edi 800dd9: 56 push %esi 800dda: 53 push %ebx asm volatile("int %1\n" //执行int T_SYSCALL指令 800ddb: ba 00 00 00 00 mov $0x0,%edx 800de0: b8 02 00 00 00 mov $0x2,%eax 800de5: 89 d1 mov %edx,%ecx 800de7: 89 d3 mov %edx,%ebx 800de9: 89 d7 mov %edx,%edi 800deb: 89 d6 mov %edx,%esi 800ded: cd 30 int $0x30 return syscall(SYS_getenvid, 0, 0, 0, 0, 0, 0); } 800def: 5b pop %ebx 800df0: 5e pop %esi 800df1: 5f pop %edi 800df2: 5d pop %ebp 800df3: c3 ret 00800df4 <sys_yield>: void sys_yield(void) { 800df4: 55 push %ebp 800df5: 89 e5 mov %esp,%ebp 800df7: 57 push %edi 800df8: 56 push %esi 800df9: 53 push %ebx asm volatile("int %1\n" //执行int T_SYSCALL指令 800dfa: ba 00 00 00 00 mov $0x0,%edx 800dff: b8 0b 00 00 00 mov $0xb,%eax 800e04: 89 d1 mov %edx,%ecx 800e06: 89 d3 mov %edx,%ebx 800e08: 89 d7 mov %edx,%edi 800e0a: 89 d6 mov %edx,%esi 800e0c: cd 30 int $0x30 syscall(SYS_yield, 0, 0, 0, 0, 0, 0); } 800e0e: 5b pop %ebx 800e0f: 5e pop %esi 800e10: 5f pop %edi 800e11: 5d pop %ebp 800e12: c3 ret 00800e13 <sys_page_alloc>: int sys_page_alloc(envid_t envid, void *va, int perm) { 800e13: 55 push %ebp 800e14: 89 e5 mov %esp,%ebp 800e16: 57 push %edi 800e17: 56 push %esi 800e18: 53 push %ebx 800e19: 83 ec 0c sub $0xc,%esp asm volatile("int %1\n" //执行int T_SYSCALL指令 800e1c: be 00 00 00 00 mov $0x0,%esi 800e21: 8b 55 08 mov 0x8(%ebp),%edx 800e24: 8b 4d 0c mov 0xc(%ebp),%ecx 800e27: b8 04 00 00 00 mov $0x4,%eax 800e2c: 8b 5d 10 mov 0x10(%ebp),%ebx 800e2f: 89 f7 mov %esi,%edi 800e31: cd 30 int $0x30 if(check && ret > 0) 800e33: 85 c0 test %eax,%eax 800e35: 7f 08 jg 800e3f <sys_page_alloc+0x2c> return syscall(SYS_page_alloc, 1, envid, (uint32_t) va, perm, 0, 0); } 800e37: 8d 65 f4 lea -0xc(%ebp),%esp 800e3a: 5b pop %ebx 800e3b: 5e pop %esi 800e3c: 5f pop %edi 800e3d: 5d pop %ebp 800e3e: c3 ret panic("syscall %d returned %d (> 0)", num, ret); 800e3f: 83 ec 0c sub $0xc,%esp 800e42: 50 push %eax 800e43: 6a 04 push $0x4 800e45: 68 bf 26 80 00 push $0x8026bf 800e4a: 6a 23 push $0x23 800e4c: 68 dc 26 80 00 push $0x8026dc 800e51: e8 ca f4 ff ff call 800320 <_panic> 00800e56 <sys_page_map>: int sys_page_map(envid_t srcenv, void *srcva, envid_t dstenv, void *dstva, int perm) { 800e56: 55 push %ebp 800e57: 89 e5 mov %esp,%ebp 800e59: 57 push %edi 800e5a: 56 push %esi 800e5b: 53 push %ebx 800e5c: 83 ec 0c sub $0xc,%esp asm volatile("int %1\n" //执行int T_SYSCALL指令 800e5f: 8b 55 08 mov 0x8(%ebp),%edx 800e62: 8b 4d 0c mov 0xc(%ebp),%ecx 800e65: b8 05 00 00 00 mov $0x5,%eax 800e6a: 8b 5d 10 mov 0x10(%ebp),%ebx 800e6d: 8b 7d 14 mov 0x14(%ebp),%edi 800e70: 8b 75 18 mov 0x18(%ebp),%esi 800e73: cd 30 int $0x30 if(check && ret > 0) 800e75: 85 c0 test %eax,%eax 800e77: 7f 08 jg 800e81 <sys_page_map+0x2b> return syscall(SYS_page_map, 1, srcenv, (uint32_t) srcva, dstenv, (uint32_t) dstva, perm); } 800e79: 8d 65 f4 lea -0xc(%ebp),%esp 800e7c: 5b pop %ebx 800e7d: 5e pop %esi 800e7e: 5f pop %edi 800e7f: 5d pop %ebp 800e80: c3 ret panic("syscall %d returned %d (> 0)", num, ret); 800e81: 83 ec 0c sub $0xc,%esp 800e84: 50 push %eax 800e85: 6a 05 push $0x5 800e87: 68 bf 26 80 00 push $0x8026bf 800e8c: 6a 23 push $0x23 800e8e: 68 dc 26 80 00 push $0x8026dc 800e93: e8 88 f4 ff ff call 800320 <_panic> 00800e98 <sys_page_unmap>: int sys_page_unmap(envid_t envid, void *va) { 800e98: 55 push %ebp 800e99: 89 e5 mov %esp,%ebp 800e9b: 57 push %edi 800e9c: 56 push %esi 800e9d: 53 push %ebx 800e9e: 83 ec 0c sub $0xc,%esp asm volatile("int %1\n" //执行int T_SYSCALL指令 800ea1: bb 00 00 00 00 mov $0x0,%ebx 800ea6: 8b 55 08 mov 0x8(%ebp),%edx 800ea9: 8b 4d 0c mov 0xc(%ebp),%ecx 800eac: b8 06 00 00 00 mov $0x6,%eax 800eb1: 89 df mov %ebx,%edi 800eb3: 89 de mov %ebx,%esi 800eb5: cd 30 int $0x30 if(check && ret > 0) 800eb7: 85 c0 test %eax,%eax 800eb9: 7f 08 jg 800ec3 <sys_page_unmap+0x2b> return syscall(SYS_page_unmap, 1, envid, (uint32_t) va, 0, 0, 0); } 800ebb: 8d 65 f4 lea -0xc(%ebp),%esp 800ebe: 5b pop %ebx 800ebf: 5e pop %esi 800ec0: 5f pop %edi 800ec1: 5d pop %ebp 800ec2: c3 ret panic("syscall %d returned %d (> 0)", num, ret); 800ec3: 83 ec 0c sub $0xc,%esp 800ec6: 50 push %eax 800ec7: 6a 06 push $0x6 800ec9: 68 bf 26 80 00 push $0x8026bf 800ece: 6a 23 push $0x23 800ed0: 68 dc 26 80 00 push $0x8026dc 800ed5: e8 46 f4 ff ff call 800320 <_panic> 00800eda <sys_env_set_status>: // sys_exofork is inlined in lib.h int sys_env_set_status(envid_t envid, int status) { 800eda: 55 push %ebp 800edb: 89 e5 mov %esp,%ebp 800edd: 57 push %edi 800ede: 56 push %esi 800edf: 53 push %ebx 800ee0: 83 ec 0c sub $0xc,%esp asm volatile("int %1\n" //执行int T_SYSCALL指令 800ee3: bb 00 00 00 00 mov $0x0,%ebx 800ee8: 8b 55 08 mov 0x8(%ebp),%edx 800eeb: 8b 4d 0c mov 0xc(%ebp),%ecx 800eee: b8 08 00 00 00 mov $0x8,%eax 800ef3: 89 df mov %ebx,%edi 800ef5: 89 de mov %ebx,%esi 800ef7: cd 30 int $0x30 if(check && ret > 0) 800ef9: 85 c0 test %eax,%eax 800efb: 7f 08 jg 800f05 <sys_env_set_status+0x2b> return syscall(SYS_env_set_status, 1, envid, status, 0, 0, 0); } 800efd: 8d 65 f4 lea -0xc(%ebp),%esp 800f00: 5b pop %ebx 800f01: 5e pop %esi 800f02: 5f pop %edi 800f03: 5d pop %ebp 800f04: c3 ret panic("syscall %d returned %d (> 0)", num, ret); 800f05: 83 ec 0c sub $0xc,%esp 800f08: 50 push %eax 800f09: 6a 08 push $0x8 800f0b: 68 bf 26 80 00 push $0x8026bf 800f10: 6a 23 push $0x23 800f12: 68 dc 26 80 00 push $0x8026dc 800f17: e8 04 f4 ff ff call 800320 <_panic> 00800f1c <sys_env_set_trapframe>: int sys_env_set_trapframe(envid_t envid, struct Trapframe *tf) { 800f1c: 55 push %ebp 800f1d: 89 e5 mov %esp,%ebp 800f1f: 57 push %edi 800f20: 56 push %esi 800f21: 53 push %ebx 800f22: 83 ec 0c sub $0xc,%esp asm volatile("int %1\n" //执行int T_SYSCALL指令 800f25: bb 00 00 00 00 mov $0x0,%ebx 800f2a: 8b 55 08 mov 0x8(%ebp),%edx 800f2d: 8b 4d 0c mov 0xc(%ebp),%ecx 800f30: b8 09 00 00 00 mov $0x9,%eax 800f35: 89 df mov %ebx,%edi 800f37: 89 de mov %ebx,%esi 800f39: cd 30 int $0x30 if(check && ret > 0) 800f3b: 85 c0 test %eax,%eax 800f3d: 7f 08 jg 800f47 <sys_env_set_trapframe+0x2b> return syscall(SYS_env_set_trapframe, 1, envid, (uint32_t) tf, 0, 0, 0); } 800f3f: 8d 65 f4 lea -0xc(%ebp),%esp 800f42: 5b pop %ebx 800f43: 5e pop %esi 800f44: 5f pop %edi 800f45: 5d pop %ebp 800f46: c3 ret panic("syscall %d returned %d (> 0)", num, ret); 800f47: 83 ec 0c sub $0xc,%esp 800f4a: 50 push %eax 800f4b: 6a 09 push $0x9 800f4d: 68 bf 26 80 00 push $0x8026bf 800f52: 6a 23 push $0x23 800f54: 68 dc 26 80 00 push $0x8026dc 800f59: e8 c2 f3 ff ff call 800320 <_panic> 00800f5e <sys_env_set_pgfault_upcall>: int sys_env_set_pgfault_upcall(envid_t envid, void *upcall) { 800f5e: 55 push %ebp 800f5f: 89 e5 mov %esp,%ebp 800f61: 57 push %edi 800f62: 56 push %esi 800f63: 53 push %ebx 800f64: 83 ec 0c sub $0xc,%esp asm volatile("int %1\n" //执行int T_SYSCALL指令 800f67: bb 00 00 00 00 mov $0x0,%ebx 800f6c: 8b 55 08 mov 0x8(%ebp),%edx 800f6f: 8b 4d 0c mov 0xc(%ebp),%ecx 800f72: b8 0a 00 00 00 mov $0xa,%eax 800f77: 89 df mov %ebx,%edi 800f79: 89 de mov %ebx,%esi 800f7b: cd 30 int $0x30 if(check && ret > 0) 800f7d: 85 c0 test %eax,%eax 800f7f: 7f 08 jg 800f89 <sys_env_set_pgfault_upcall+0x2b> return syscall(SYS_env_set_pgfault_upcall, 1, envid, (uint32_t) upcall, 0, 0, 0); } 800f81: 8d 65 f4 lea -0xc(%ebp),%esp 800f84: 5b pop %ebx 800f85: 5e pop %esi 800f86: 5f pop %edi 800f87: 5d pop %ebp 800f88: c3 ret panic("syscall %d returned %d (> 0)", num, ret); 800f89: 83 ec 0c sub $0xc,%esp 800f8c: 50 push %eax 800f8d: 6a 0a push $0xa 800f8f: 68 bf 26 80 00 push $0x8026bf 800f94: 6a 23 push $0x23 800f96: 68 dc 26 80 00 push $0x8026dc 800f9b: e8 80 f3 ff ff call 800320 <_panic> 00800fa0 <sys_ipc_try_send>: int sys_ipc_try_send(envid_t envid, uint32_t value, void *srcva, int perm) { 800fa0: 55 push %ebp 800fa1: 89 e5 mov %esp,%ebp 800fa3: 57 push %edi 800fa4: 56 push %esi 800fa5: 53 push %ebx asm volatile("int %1\n" //执行int T_SYSCALL指令 800fa6: 8b 55 08 mov 0x8(%ebp),%edx 800fa9: 8b 4d 0c mov 0xc(%ebp),%ecx 800fac: b8 0c 00 00 00 mov $0xc,%eax 800fb1: be 00 00 00 00 mov $0x0,%esi 800fb6: 8b 5d 10 mov 0x10(%ebp),%ebx 800fb9: 8b 7d 14 mov 0x14(%ebp),%edi 800fbc: cd 30 int $0x30 return syscall(SYS_ipc_try_send, 0, envid, value, (uint32_t) srcva, perm, 0); } 800fbe: 5b pop %ebx 800fbf: 5e pop %esi 800fc0: 5f pop %edi 800fc1: 5d pop %ebp 800fc2: c3 ret 00800fc3 <sys_ipc_recv>: int sys_ipc_recv(void *dstva) { 800fc3: 55 push %ebp 800fc4: 89 e5 mov %esp,%ebp 800fc6: 57 push %edi 800fc7: 56 push %esi 800fc8: 53 push %ebx 800fc9: 83 ec 0c sub $0xc,%esp asm volatile("int %1\n" //执行int T_SYSCALL指令 800fcc: b9 00 00 00 00 mov $0x0,%ecx 800fd1: 8b 55 08 mov 0x8(%ebp),%edx 800fd4: b8 0d 00 00 00 mov $0xd,%eax 800fd9: 89 cb mov %ecx,%ebx 800fdb: 89 cf mov %ecx,%edi 800fdd: 89 ce mov %ecx,%esi 800fdf: cd 30 int $0x30 if(check && ret > 0) 800fe1: 85 c0 test %eax,%eax 800fe3: 7f 08 jg 800fed <sys_ipc_recv+0x2a> return syscall(SYS_ipc_recv, 1, (uint32_t)dstva, 0, 0, 0, 0); } 800fe5: 8d 65 f4 lea -0xc(%ebp),%esp 800fe8: 5b pop %ebx 800fe9: 5e pop %esi 800fea: 5f pop %edi 800feb: 5d pop %ebp 800fec: c3 ret panic("syscall %d returned %d (> 0)", num, ret); 800fed: 83 ec 0c sub $0xc,%esp 800ff0: 50 push %eax 800ff1: 6a 0d push $0xd 800ff3: 68 bf 26 80 00 push $0x8026bf 800ff8: 6a 23 push $0x23 800ffa: 68 dc 26 80 00 push $0x8026dc 800fff: e8 1c f3 ff ff call 800320 <_panic> 00801004 <argstart>: #include <inc/args.h> #include <inc/string.h> void argstart(int *argc, char **argv, struct Argstate *args) { 801004: 55 push %ebp 801005: 89 e5 mov %esp,%ebp 801007: 8b 55 08 mov 0x8(%ebp),%edx 80100a: 8b 4d 0c mov 0xc(%ebp),%ecx 80100d: 8b 45 10 mov 0x10(%ebp),%eax args->argc = argc; 801010: 89 10 mov %edx,(%eax) args->argv = (const char **) argv; 801012: 89 48 04 mov %ecx,0x4(%eax) args->curarg = (*argc > 1 && argv ? "" : 0); 801015: 83 3a 01 cmpl $0x1,(%edx) 801018: 7e 09 jle 801023 <argstart+0x1f> 80101a: ba 68 23 80 00 mov $0x802368,%edx 80101f: 85 c9 test %ecx,%ecx 801021: 75 05 jne 801028 <argstart+0x24> 801023: ba 00 00 00 00 mov $0x0,%edx 801028: 89 50 08 mov %edx,0x8(%eax) args->argvalue = 0; 80102b: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) } 801032: 5d pop %ebp 801033: c3 ret 00801034 <argnext>: int argnext(struct Argstate *args) { 801034: 55 push %ebp 801035: 89 e5 mov %esp,%ebp 801037: 53 push %ebx 801038: 83 ec 04 sub $0x4,%esp 80103b: 8b 5d 08 mov 0x8(%ebp),%ebx int arg; args->argvalue = 0; 80103e: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) // Done processing arguments if args->curarg == 0 if (args->curarg == 0) 801045: 8b 43 08 mov 0x8(%ebx),%eax 801048: 85 c0 test %eax,%eax 80104a: 74 72 je 8010be <argnext+0x8a> return -1; if (!*args->curarg) { 80104c: 80 38 00 cmpb $0x0,(%eax) 80104f: 75 48 jne 801099 <argnext+0x65> // Need to process the next argument // Check for end of argument list if (*args->argc == 1 801051: 8b 0b mov (%ebx),%ecx 801053: 83 39 01 cmpl $0x1,(%ecx) 801056: 74 58 je 8010b0 <argnext+0x7c> || args->argv[1][0] != '-' 801058: 8b 53 04 mov 0x4(%ebx),%edx 80105b: 8b 42 04 mov 0x4(%edx),%eax 80105e: 80 38 2d cmpb $0x2d,(%eax) 801061: 75 4d jne 8010b0 <argnext+0x7c> || args->argv[1][1] == '\0') 801063: 80 78 01 00 cmpb $0x0,0x1(%eax) 801067: 74 47 je 8010b0 <argnext+0x7c> goto endofargs; // Shift arguments down one args->curarg = args->argv[1] + 1; 801069: 83 c0 01 add $0x1,%eax 80106c: 89 43 08 mov %eax,0x8(%ebx) memmove(args->argv + 1, args->argv + 2, sizeof(const char *) * (*args->argc - 1)); 80106f: 83 ec 04 sub $0x4,%esp 801072: 8b 01 mov (%ecx),%eax 801074: 8d 04 85 fc ff ff ff lea -0x4(,%eax,4),%eax 80107b: 50 push %eax 80107c: 8d 42 08 lea 0x8(%edx),%eax 80107f: 50 push %eax 801080: 83 c2 04 add $0x4,%edx 801083: 52 push %edx 801084: e8 1f fb ff ff call 800ba8 <memmove> (*args->argc)--; 801089: 8b 03 mov (%ebx),%eax 80108b: 83 28 01 subl $0x1,(%eax) // Check for "--": end of argument list if (args->curarg[0] == '-' && args->curarg[1] == '\0') 80108e: 8b 43 08 mov 0x8(%ebx),%eax 801091: 83 c4 10 add $0x10,%esp 801094: 80 38 2d cmpb $0x2d,(%eax) 801097: 74 11 je 8010aa <argnext+0x76> goto endofargs; } arg = (unsigned char) *args->curarg; 801099: 8b 53 08 mov 0x8(%ebx),%edx 80109c: 0f b6 02 movzbl (%edx),%eax args->curarg++; 80109f: 83 c2 01 add $0x1,%edx 8010a2: 89 53 08 mov %edx,0x8(%ebx) return arg; endofargs: args->curarg = 0; return -1; } 8010a5: 8b 5d fc mov -0x4(%ebp),%ebx 8010a8: c9 leave 8010a9: c3 ret if (args->curarg[0] == '-' && args->curarg[1] == '\0') 8010aa: 80 78 01 00 cmpb $0x0,0x1(%eax) 8010ae: 75 e9 jne 801099 <argnext+0x65> args->curarg = 0; 8010b0: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) return -1; 8010b7: b8 ff ff ff ff mov $0xffffffff,%eax 8010bc: eb e7 jmp 8010a5 <argnext+0x71> return -1; 8010be: b8 ff ff ff ff mov $0xffffffff,%eax 8010c3: eb e0 jmp 8010a5 <argnext+0x71> 008010c5 <argnextvalue>: return (char*) (args->argvalue ? args->argvalue : argnextvalue(args)); } char * argnextvalue(struct Argstate *args) { 8010c5: 55 push %ebp 8010c6: 89 e5 mov %esp,%ebp 8010c8: 53 push %ebx 8010c9: 83 ec 04 sub $0x4,%esp 8010cc: 8b 5d 08 mov 0x8(%ebp),%ebx if (!args->curarg) 8010cf: 8b 43 08 mov 0x8(%ebx),%eax 8010d2: 85 c0 test %eax,%eax 8010d4: 74 5b je 801131 <argnextvalue+0x6c> return 0; if (*args->curarg) { 8010d6: 80 38 00 cmpb $0x0,(%eax) 8010d9: 74 12 je 8010ed <argnextvalue+0x28> args->argvalue = args->curarg; 8010db: 89 43 0c mov %eax,0xc(%ebx) args->curarg = ""; 8010de: c7 43 08 68 23 80 00 movl $0x802368,0x8(%ebx) (*args->argc)--; } else { args->argvalue = 0; args->curarg = 0; } return (char*) args->argvalue; 8010e5: 8b 43 0c mov 0xc(%ebx),%eax } 8010e8: 8b 5d fc mov -0x4(%ebp),%ebx 8010eb: c9 leave 8010ec: c3 ret } else if (*args->argc > 1) { 8010ed: 8b 13 mov (%ebx),%edx 8010ef: 83 3a 01 cmpl $0x1,(%edx) 8010f2: 7f 10 jg 801104 <argnextvalue+0x3f> args->argvalue = 0; 8010f4: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) args->curarg = 0; 8010fb: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) 801102: eb e1 jmp 8010e5 <argnextvalue+0x20> args->argvalue = args->argv[1]; 801104: 8b 43 04 mov 0x4(%ebx),%eax 801107: 8b 48 04 mov 0x4(%eax),%ecx 80110a: 89 4b 0c mov %ecx,0xc(%ebx) memmove(args->argv + 1, args->argv + 2, sizeof(const char *) * (*args->argc - 1)); 80110d: 83 ec 04 sub $0x4,%esp 801110: 8b 12 mov (%edx),%edx 801112: 8d 14 95 fc ff ff ff lea -0x4(,%edx,4),%edx 801119: 52 push %edx 80111a: 8d 50 08 lea 0x8(%eax),%edx 80111d: 52 push %edx 80111e: 83 c0 04 add $0x4,%eax 801121: 50 push %eax 801122: e8 81 fa ff ff call 800ba8 <memmove> (*args->argc)--; 801127: 8b 03 mov (%ebx),%eax 801129: 83 28 01 subl $0x1,(%eax) 80112c: 83 c4 10 add $0x10,%esp 80112f: eb b4 jmp 8010e5 <argnextvalue+0x20> return 0; 801131: b8 00 00 00 00 mov $0x0,%eax 801136: eb b0 jmp 8010e8 <argnextvalue+0x23> 00801138 <argvalue>: { 801138: 55 push %ebp 801139: 89 e5 mov %esp,%ebp 80113b: 83 ec 08 sub $0x8,%esp 80113e: 8b 55 08 mov 0x8(%ebp),%edx return (char*) (args->argvalue ? args->argvalue : argnextvalue(args)); 801141: 8b 42 0c mov 0xc(%edx),%eax 801144: 85 c0 test %eax,%eax 801146: 74 02 je 80114a <argvalue+0x12> } 801148: c9 leave 801149: c3 ret return (char*) (args->argvalue ? args->argvalue : argnextvalue(args)); 80114a: 83 ec 0c sub $0xc,%esp 80114d: 52 push %edx 80114e: e8 72 ff ff ff call 8010c5 <argnextvalue> 801153: 83 c4 10 add $0x10,%esp 801156: eb f0 jmp 801148 <argvalue+0x10> 00801158 <fd2num>: // File descriptor manipulators // -------------------------------------------------------------- int fd2num(struct Fd *fd) { 801158: 55 push %ebp 801159: 89 e5 mov %esp,%ebp return ((uintptr_t) fd - FDTABLE) / PGSIZE; 80115b: 8b 45 08 mov 0x8(%ebp),%eax 80115e: 05 00 00 00 30 add $0x30000000,%eax 801163: c1 e8 0c shr $0xc,%eax } 801166: 5d pop %ebp 801167: c3 ret 00801168 <fd2data>: char* fd2data(struct Fd *fd) { 801168: 55 push %ebp 801169: 89 e5 mov %esp,%ebp return ((uintptr_t) fd - FDTABLE) / PGSIZE; 80116b: 8b 45 08 mov 0x8(%ebp),%eax 80116e: 05 00 00 00 30 add $0x30000000,%eax return INDEX2DATA(fd2num(fd)); 801173: 25 00 f0 ff ff and $0xfffff000,%eax 801178: 2d 00 00 fe 2f sub $0x2ffe0000,%eax } 80117d: 5d pop %ebp 80117e: c3 ret 0080117f <fd_alloc>: // Returns 0 on success, < 0 on error. Errors are: // -E_MAX_FD: no more file descriptors // On error, *fd_store is set to 0. int fd_alloc(struct Fd **fd_store) { 80117f: 55 push %ebp 801180: 89 e5 mov %esp,%ebp 801182: 8b 4d 08 mov 0x8(%ebp),%ecx 801185: b8 00 00 00 d0 mov $0xd0000000,%eax int i; struct Fd *fd; for (i = 0; i < MAXFD; i++) { fd = INDEX2FD(i); if ((uvpd[PDX(fd)] & PTE_P) == 0 || (uvpt[PGNUM(fd)] & PTE_P) == 0) { 80118a: 89 c2 mov %eax,%edx 80118c: c1 ea 16 shr $0x16,%edx 80118f: 8b 14 95 00 d0 7b ef mov -0x10843000(,%edx,4),%edx 801196: f6 c2 01 test $0x1,%dl 801199: 74 2a je 8011c5 <fd_alloc+0x46> 80119b: 89 c2 mov %eax,%edx 80119d: c1 ea 0c shr $0xc,%edx 8011a0: 8b 14 95 00 00 40 ef mov -0x10c00000(,%edx,4),%edx 8011a7: f6 c2 01 test $0x1,%dl 8011aa: 74 19 je 8011c5 <fd_alloc+0x46> 8011ac: 05 00 10 00 00 add $0x1000,%eax for (i = 0; i < MAXFD; i++) { 8011b1: 3d 00 00 02 d0 cmp $0xd0020000,%eax 8011b6: 75 d2 jne 80118a <fd_alloc+0xb> *fd_store = fd; return 0; } } *fd_store = 0; 8011b8: c7 01 00 00 00 00 movl $0x0,(%ecx) return -E_MAX_OPEN; 8011be: b8 f6 ff ff ff mov $0xfffffff6,%eax 8011c3: eb 07 jmp 8011cc <fd_alloc+0x4d> *fd_store = fd; 8011c5: 89 01 mov %eax,(%ecx) return 0; 8011c7: b8 00 00 00 00 mov $0x0,%eax } 8011cc: 5d pop %ebp 8011cd: c3 ret 008011ce <fd_lookup>: // Returns 0 on success (the page is in range and mapped), < 0 on error. // Errors are: // -E_INVAL: fdnum was either not in range or not mapped. int fd_lookup(int fdnum, struct Fd **fd_store) { 8011ce: 55 push %ebp 8011cf: 89 e5 mov %esp,%ebp 8011d1: 8b 45 08 mov 0x8(%ebp),%eax struct Fd *fd; if (fdnum < 0 || fdnum >= MAXFD) { 8011d4: 83 f8 1f cmp $0x1f,%eax 8011d7: 77 36 ja 80120f <fd_lookup+0x41> if (debug) cprintf("[%08x] bad fd %d\n", thisenv->env_id, fdnum); return -E_INVAL; } fd = INDEX2FD(fdnum); 8011d9: c1 e0 0c shl $0xc,%eax 8011dc: 2d 00 00 00 30 sub $0x30000000,%eax if (!(uvpd[PDX(fd)] & PTE_P) || !(uvpt[PGNUM(fd)] & PTE_P)) { 8011e1: 89 c2 mov %eax,%edx 8011e3: c1 ea 16 shr $0x16,%edx 8011e6: 8b 14 95 00 d0 7b ef mov -0x10843000(,%edx,4),%edx 8011ed: f6 c2 01 test $0x1,%dl 8011f0: 74 24 je 801216 <fd_lookup+0x48> 8011f2: 89 c2 mov %eax,%edx 8011f4: c1 ea 0c shr $0xc,%edx 8011f7: 8b 14 95 00 00 40 ef mov -0x10c00000(,%edx,4),%edx 8011fe: f6 c2 01 test $0x1,%dl 801201: 74 1a je 80121d <fd_lookup+0x4f> if (debug) cprintf("[%08x] closed fd %d\n", thisenv->env_id, fdnum); return -E_INVAL; } *fd_store = fd; 801203: 8b 55 0c mov 0xc(%ebp),%edx 801206: 89 02 mov %eax,(%edx) return 0; 801208: b8 00 00 00 00 mov $0x0,%eax } 80120d: 5d pop %ebp 80120e: c3 ret return -E_INVAL; 80120f: b8 fd ff ff ff mov $0xfffffffd,%eax 801214: eb f7 jmp 80120d <fd_lookup+0x3f> return -E_INVAL; 801216: b8 fd ff ff ff mov $0xfffffffd,%eax 80121b: eb f0 jmp 80120d <fd_lookup+0x3f> 80121d: b8 fd ff ff ff mov $0xfffffffd,%eax 801222: eb e9 jmp 80120d <fd_lookup+0x3f> 00801224 <dev_lookup>: 0 }; int dev_lookup(int dev_id, struct Dev **dev) { 801224: 55 push %ebp 801225: 89 e5 mov %esp,%ebp 801227: 83 ec 08 sub $0x8,%esp 80122a: 8b 4d 08 mov 0x8(%ebp),%ecx 80122d: ba 6c 27 80 00 mov $0x80276c,%edx int i; for (i = 0; devtab[i]; i++) 801232: b8 04 30 80 00 mov $0x803004,%eax if (devtab[i]->dev_id == dev_id) { 801237: 39 08 cmp %ecx,(%eax) 801239: 74 33 je 80126e <dev_lookup+0x4a> 80123b: 83 c2 04 add $0x4,%edx for (i = 0; devtab[i]; i++) 80123e: 8b 02 mov (%edx),%eax 801240: 85 c0 test %eax,%eax 801242: 75 f3 jne 801237 <dev_lookup+0x13> *dev = devtab[i]; return 0; } cprintf("[%08x] unknown device type %d\n", thisenv->env_id, dev_id); 801244: a1 20 44 80 00 mov 0x804420,%eax 801249: 8b 40 48 mov 0x48(%eax),%eax 80124c: 83 ec 04 sub $0x4,%esp 80124f: 51 push %ecx 801250: 50 push %eax 801251: 68 ec 26 80 00 push $0x8026ec 801256: e8 a0 f1 ff ff call 8003fb <cprintf> *dev = 0; 80125b: 8b 45 0c mov 0xc(%ebp),%eax 80125e: c7 00 00 00 00 00 movl $0x0,(%eax) return -E_INVAL; 801264: 83 c4 10 add $0x10,%esp 801267: b8 fd ff ff ff mov $0xfffffffd,%eax } 80126c: c9 leave 80126d: c3 ret *dev = devtab[i]; 80126e: 8b 4d 0c mov 0xc(%ebp),%ecx 801271: 89 01 mov %eax,(%ecx) return 0; 801273: b8 00 00 00 00 mov $0x0,%eax 801278: eb f2 jmp 80126c <dev_lookup+0x48> 0080127a <fd_close>: { 80127a: 55 push %ebp 80127b: 89 e5 mov %esp,%ebp 80127d: 57 push %edi 80127e: 56 push %esi 80127f: 53 push %ebx 801280: 83 ec 1c sub $0x1c,%esp 801283: 8b 75 08 mov 0x8(%ebp),%esi 801286: 8b 7d 0c mov 0xc(%ebp),%edi if ((r = fd_lookup(fd2num(fd), &fd2)) < 0 801289: 8d 45 e4 lea -0x1c(%ebp),%eax 80128c: 50 push %eax return ((uintptr_t) fd - FDTABLE) / PGSIZE; 80128d: 8d 86 00 00 00 30 lea 0x30000000(%esi),%eax 801293: c1 e8 0c shr $0xc,%eax if ((r = fd_lookup(fd2num(fd), &fd2)) < 0 801296: 50 push %eax 801297: e8 32 ff ff ff call 8011ce <fd_lookup> 80129c: 89 c3 mov %eax,%ebx 80129e: 83 c4 08 add $0x8,%esp 8012a1: 85 c0 test %eax,%eax 8012a3: 78 05 js 8012aa <fd_close+0x30> || fd != fd2) 8012a5: 39 75 e4 cmp %esi,-0x1c(%ebp) 8012a8: 74 16 je 8012c0 <fd_close+0x46> return (must_exist ? r : 0); 8012aa: 89 f8 mov %edi,%eax 8012ac: 84 c0 test %al,%al 8012ae: b8 00 00 00 00 mov $0x0,%eax 8012b3: 0f 44 d8 cmove %eax,%ebx } 8012b6: 89 d8 mov %ebx,%eax 8012b8: 8d 65 f4 lea -0xc(%ebp),%esp 8012bb: 5b pop %ebx 8012bc: 5e pop %esi 8012bd: 5f pop %edi 8012be: 5d pop %ebp 8012bf: c3 ret if ((r = dev_lookup(fd->fd_dev_id, &dev)) >= 0) { 8012c0: 83 ec 08 sub $0x8,%esp 8012c3: 8d 45 e0 lea -0x20(%ebp),%eax 8012c6: 50 push %eax 8012c7: ff 36 pushl (%esi) 8012c9: e8 56 ff ff ff call 801224 <dev_lookup> 8012ce: 89 c3 mov %eax,%ebx 8012d0: 83 c4 10 add $0x10,%esp 8012d3: 85 c0 test %eax,%eax 8012d5: 78 15 js 8012ec <fd_close+0x72> if (dev->dev_close) 8012d7: 8b 45 e0 mov -0x20(%ebp),%eax 8012da: 8b 40 10 mov 0x10(%eax),%eax 8012dd: 85 c0 test %eax,%eax 8012df: 74 1b je 8012fc <fd_close+0x82> r = (*dev->dev_close)(fd); 8012e1: 83 ec 0c sub $0xc,%esp 8012e4: 56 push %esi 8012e5: ff d0 call *%eax 8012e7: 89 c3 mov %eax,%ebx 8012e9: 83 c4 10 add $0x10,%esp (void) sys_page_unmap(0, fd); 8012ec: 83 ec 08 sub $0x8,%esp 8012ef: 56 push %esi 8012f0: 6a 00 push $0x0 8012f2: e8 a1 fb ff ff call 800e98 <sys_page_unmap> return r; 8012f7: 83 c4 10 add $0x10,%esp 8012fa: eb ba jmp 8012b6 <fd_close+0x3c> r = 0; 8012fc: bb 00 00 00 00 mov $0x0,%ebx 801301: eb e9 jmp 8012ec <fd_close+0x72> 00801303 <close>: int close(int fdnum) { 801303: 55 push %ebp 801304: 89 e5 mov %esp,%ebp 801306: 83 ec 18 sub $0x18,%esp struct Fd *fd; int r; if ((r = fd_lookup(fdnum, &fd)) < 0) 801309: 8d 45 f4 lea -0xc(%ebp),%eax 80130c: 50 push %eax 80130d: ff 75 08 pushl 0x8(%ebp) 801310: e8 b9 fe ff ff call 8011ce <fd_lookup> 801315: 83 c4 08 add $0x8,%esp 801318: 85 c0 test %eax,%eax 80131a: 78 10 js 80132c <close+0x29> return r; else return fd_close(fd, 1); 80131c: 83 ec 08 sub $0x8,%esp 80131f: 6a 01 push $0x1 801321: ff 75 f4 pushl -0xc(%ebp) 801324: e8 51 ff ff ff call 80127a <fd_close> 801329: 83 c4 10 add $0x10,%esp } 80132c: c9 leave 80132d: c3 ret 0080132e <close_all>: void close_all(void) { 80132e: 55 push %ebp 80132f: 89 e5 mov %esp,%ebp 801331: 53 push %ebx 801332: 83 ec 04 sub $0x4,%esp int i; for (i = 0; i < MAXFD; i++) 801335: bb 00 00 00 00 mov $0x0,%ebx close(i); 80133a: 83 ec 0c sub $0xc,%esp 80133d: 53 push %ebx 80133e: e8 c0 ff ff ff call 801303 <close> for (i = 0; i < MAXFD; i++) 801343: 83 c3 01 add $0x1,%ebx 801346: 83 c4 10 add $0x10,%esp 801349: 83 fb 20 cmp $0x20,%ebx 80134c: 75 ec jne 80133a <close_all+0xc> } 80134e: 8b 5d fc mov -0x4(%ebp),%ebx 801351: c9 leave 801352: c3 ret 00801353 <dup>: // file and the file offset of the other. // Closes any previously open file descriptor at 'newfdnum'. // This is implemented using virtual memory tricks (of course!). int dup(int oldfdnum, int newfdnum) { 801353: 55 push %ebp 801354: 89 e5 mov %esp,%ebp 801356: 57 push %edi 801357: 56 push %esi 801358: 53 push %ebx 801359: 83 ec 1c sub $0x1c,%esp int r; char *ova, *nva; pte_t pte; struct Fd *oldfd, *newfd; if ((r = fd_lookup(oldfdnum, &oldfd)) < 0) 80135c: 8d 45 e4 lea -0x1c(%ebp),%eax 80135f: 50 push %eax 801360: ff 75 08 pushl 0x8(%ebp) 801363: e8 66 fe ff ff call 8011ce <fd_lookup> 801368: 89 c3 mov %eax,%ebx 80136a: 83 c4 08 add $0x8,%esp 80136d: 85 c0 test %eax,%eax 80136f: 0f 88 81 00 00 00 js 8013f6 <dup+0xa3> return r; close(newfdnum); 801375: 83 ec 0c sub $0xc,%esp 801378: ff 75 0c pushl 0xc(%ebp) 80137b: e8 83 ff ff ff call 801303 <close> newfd = INDEX2FD(newfdnum); 801380: 8b 75 0c mov 0xc(%ebp),%esi 801383: c1 e6 0c shl $0xc,%esi 801386: 81 ee 00 00 00 30 sub $0x30000000,%esi ova = fd2data(oldfd); 80138c: 83 c4 04 add $0x4,%esp 80138f: ff 75 e4 pushl -0x1c(%ebp) 801392: e8 d1 fd ff ff call 801168 <fd2data> 801397: 89 c3 mov %eax,%ebx nva = fd2data(newfd); 801399: 89 34 24 mov %esi,(%esp) 80139c: e8 c7 fd ff ff call 801168 <fd2data> 8013a1: 83 c4 10 add $0x10,%esp 8013a4: 89 c7 mov %eax,%edi if ((uvpd[PDX(ova)] & PTE_P) && (uvpt[PGNUM(ova)] & PTE_P)) 8013a6: 89 d8 mov %ebx,%eax 8013a8: c1 e8 16 shr $0x16,%eax 8013ab: 8b 04 85 00 d0 7b ef mov -0x10843000(,%eax,4),%eax 8013b2: a8 01 test $0x1,%al 8013b4: 74 11 je 8013c7 <dup+0x74> 8013b6: 89 d8 mov %ebx,%eax 8013b8: c1 e8 0c shr $0xc,%eax 8013bb: 8b 14 85 00 00 40 ef mov -0x10c00000(,%eax,4),%edx 8013c2: f6 c2 01 test $0x1,%dl 8013c5: 75 39 jne 801400 <dup+0xad> if ((r = sys_page_map(0, ova, 0, nva, uvpt[PGNUM(ova)] & PTE_SYSCALL)) < 0) goto err; if ((r = sys_page_map(0, oldfd, 0, newfd, uvpt[PGNUM(oldfd)] & PTE_SYSCALL)) < 0) 8013c7: 8b 55 e4 mov -0x1c(%ebp),%edx 8013ca: 89 d0 mov %edx,%eax 8013cc: c1 e8 0c shr $0xc,%eax 8013cf: 8b 04 85 00 00 40 ef mov -0x10c00000(,%eax,4),%eax 8013d6: 83 ec 0c sub $0xc,%esp 8013d9: 25 07 0e 00 00 and $0xe07,%eax 8013de: 50 push %eax 8013df: 56 push %esi 8013e0: 6a 00 push $0x0 8013e2: 52 push %edx 8013e3: 6a 00 push $0x0 8013e5: e8 6c fa ff ff call 800e56 <sys_page_map> 8013ea: 89 c3 mov %eax,%ebx 8013ec: 83 c4 20 add $0x20,%esp 8013ef: 85 c0 test %eax,%eax 8013f1: 78 31 js 801424 <dup+0xd1> goto err; return newfdnum; 8013f3: 8b 5d 0c mov 0xc(%ebp),%ebx err: sys_page_unmap(0, newfd); sys_page_unmap(0, nva); return r; } 8013f6: 89 d8 mov %ebx,%eax 8013f8: 8d 65 f4 lea -0xc(%ebp),%esp 8013fb: 5b pop %ebx 8013fc: 5e pop %esi 8013fd: 5f pop %edi 8013fe: 5d pop %ebp 8013ff: c3 ret if ((r = sys_page_map(0, ova, 0, nva, uvpt[PGNUM(ova)] & PTE_SYSCALL)) < 0) 801400: 8b 04 85 00 00 40 ef mov -0x10c00000(,%eax,4),%eax 801407: 83 ec 0c sub $0xc,%esp 80140a: 25 07 0e 00 00 and $0xe07,%eax 80140f: 50 push %eax 801410: 57 push %edi 801411: 6a 00 push $0x0 801413: 53 push %ebx 801414: 6a 00 push $0x0 801416: e8 3b fa ff ff call 800e56 <sys_page_map> 80141b: 89 c3 mov %eax,%ebx 80141d: 83 c4 20 add $0x20,%esp 801420: 85 c0 test %eax,%eax 801422: 79 a3 jns 8013c7 <dup+0x74> sys_page_unmap(0, newfd); 801424: 83 ec 08 sub $0x8,%esp 801427: 56 push %esi 801428: 6a 00 push $0x0 80142a: e8 69 fa ff ff call 800e98 <sys_page_unmap> sys_page_unmap(0, nva); 80142f: 83 c4 08 add $0x8,%esp 801432: 57 push %edi 801433: 6a 00 push $0x0 801435: e8 5e fa ff ff call 800e98 <sys_page_unmap> return r; 80143a: 83 c4 10 add $0x10,%esp 80143d: eb b7 jmp 8013f6 <dup+0xa3> 0080143f <read>: ssize_t read(int fdnum, void *buf, size_t n) { 80143f: 55 push %ebp 801440: 89 e5 mov %esp,%ebp 801442: 53 push %ebx 801443: 83 ec 14 sub $0x14,%esp 801446: 8b 5d 08 mov 0x8(%ebp),%ebx int r; struct Dev *dev; struct Fd *fd; if ((r = fd_lookup(fdnum, &fd)) < 0 801449: 8d 45 f0 lea -0x10(%ebp),%eax 80144c: 50 push %eax 80144d: 53 push %ebx 80144e: e8 7b fd ff ff call 8011ce <fd_lookup> 801453: 83 c4 08 add $0x8,%esp 801456: 85 c0 test %eax,%eax 801458: 78 3f js 801499 <read+0x5a> || (r = dev_lookup(fd->fd_dev_id, &dev)) < 0) 80145a: 83 ec 08 sub $0x8,%esp 80145d: 8d 45 f4 lea -0xc(%ebp),%eax 801460: 50 push %eax 801461: 8b 45 f0 mov -0x10(%ebp),%eax 801464: ff 30 pushl (%eax) 801466: e8 b9 fd ff ff call 801224 <dev_lookup> 80146b: 83 c4 10 add $0x10,%esp 80146e: 85 c0 test %eax,%eax 801470: 78 27 js 801499 <read+0x5a> return r; if ((fd->fd_omode & O_ACCMODE) == O_WRONLY) { 801472: 8b 55 f0 mov -0x10(%ebp),%edx 801475: 8b 42 08 mov 0x8(%edx),%eax 801478: 83 e0 03 and $0x3,%eax 80147b: 83 f8 01 cmp $0x1,%eax 80147e: 74 1e je 80149e <read+0x5f> cprintf("[%08x] read %d -- bad mode\n", thisenv->env_id, fdnum); return -E_INVAL; } if (!dev->dev_read) 801480: 8b 45 f4 mov -0xc(%ebp),%eax 801483: 8b 40 08 mov 0x8(%eax),%eax 801486: 85 c0 test %eax,%eax 801488: 74 35 je 8014bf <read+0x80> return -E_NOT_SUPP; return (*dev->dev_read)(fd, buf, n); 80148a: 83 ec 04 sub $0x4,%esp 80148d: ff 75 10 pushl 0x10(%ebp) 801490: ff 75 0c pushl 0xc(%ebp) 801493: 52 push %edx 801494: ff d0 call *%eax 801496: 83 c4 10 add $0x10,%esp } 801499: 8b 5d fc mov -0x4(%ebp),%ebx 80149c: c9 leave 80149d: c3 ret cprintf("[%08x] read %d -- bad mode\n", thisenv->env_id, fdnum); 80149e: a1 20 44 80 00 mov 0x804420,%eax 8014a3: 8b 40 48 mov 0x48(%eax),%eax 8014a6: 83 ec 04 sub $0x4,%esp 8014a9: 53 push %ebx 8014aa: 50 push %eax 8014ab: 68 30 27 80 00 push $0x802730 8014b0: e8 46 ef ff ff call 8003fb <cprintf> return -E_INVAL; 8014b5: 83 c4 10 add $0x10,%esp 8014b8: b8 fd ff ff ff mov $0xfffffffd,%eax 8014bd: eb da jmp 801499 <read+0x5a> return -E_NOT_SUPP; 8014bf: b8 f1 ff ff ff mov $0xfffffff1,%eax 8014c4: eb d3 jmp 801499 <read+0x5a> 008014c6 <readn>: ssize_t readn(int fdnum, void *buf, size_t n) { 8014c6: 55 push %ebp 8014c7: 89 e5 mov %esp,%ebp 8014c9: 57 push %edi 8014ca: 56 push %esi 8014cb: 53 push %ebx 8014cc: 83 ec 0c sub $0xc,%esp 8014cf: 8b 7d 08 mov 0x8(%ebp),%edi 8014d2: 8b 75 10 mov 0x10(%ebp),%esi int m, tot; for (tot = 0; tot < n; tot += m) { 8014d5: bb 00 00 00 00 mov $0x0,%ebx 8014da: 39 f3 cmp %esi,%ebx 8014dc: 73 25 jae 801503 <readn+0x3d> m = read(fdnum, (char*)buf + tot, n - tot); 8014de: 83 ec 04 sub $0x4,%esp 8014e1: 89 f0 mov %esi,%eax 8014e3: 29 d8 sub %ebx,%eax 8014e5: 50 push %eax 8014e6: 89 d8 mov %ebx,%eax 8014e8: 03 45 0c add 0xc(%ebp),%eax 8014eb: 50 push %eax 8014ec: 57 push %edi 8014ed: e8 4d ff ff ff call 80143f <read> if (m < 0) 8014f2: 83 c4 10 add $0x10,%esp 8014f5: 85 c0 test %eax,%eax 8014f7: 78 08 js 801501 <readn+0x3b> return m; if (m == 0) 8014f9: 85 c0 test %eax,%eax 8014fb: 74 06 je 801503 <readn+0x3d> for (tot = 0; tot < n; tot += m) { 8014fd: 01 c3 add %eax,%ebx 8014ff: eb d9 jmp 8014da <readn+0x14> m = read(fdnum, (char*)buf + tot, n - tot); 801501: 89 c3 mov %eax,%ebx break; } return tot; } 801503: 89 d8 mov %ebx,%eax 801505: 8d 65 f4 lea -0xc(%ebp),%esp 801508: 5b pop %ebx 801509: 5e pop %esi 80150a: 5f pop %edi 80150b: 5d pop %ebp 80150c: c3 ret 0080150d <write>: ssize_t write(int fdnum, const void *buf, size_t n) { 80150d: 55 push %ebp 80150e: 89 e5 mov %esp,%ebp 801510: 53 push %ebx 801511: 83 ec 14 sub $0x14,%esp 801514: 8b 5d 08 mov 0x8(%ebp),%ebx int r; struct Dev *dev; struct Fd *fd; if ((r = fd_lookup(fdnum, &fd)) < 0 801517: 8d 45 f0 lea -0x10(%ebp),%eax 80151a: 50 push %eax 80151b: 53 push %ebx 80151c: e8 ad fc ff ff call 8011ce <fd_lookup> 801521: 83 c4 08 add $0x8,%esp 801524: 85 c0 test %eax,%eax 801526: 78 3a js 801562 <write+0x55> || (r = dev_lookup(fd->fd_dev_id, &dev)) < 0) 801528: 83 ec 08 sub $0x8,%esp 80152b: 8d 45 f4 lea -0xc(%ebp),%eax 80152e: 50 push %eax 80152f: 8b 45 f0 mov -0x10(%ebp),%eax 801532: ff 30 pushl (%eax) 801534: e8 eb fc ff ff call 801224 <dev_lookup> 801539: 83 c4 10 add $0x10,%esp 80153c: 85 c0 test %eax,%eax 80153e: 78 22 js 801562 <write+0x55> return r; if ((fd->fd_omode & O_ACCMODE) == O_RDONLY) { 801540: 8b 45 f0 mov -0x10(%ebp),%eax 801543: f6 40 08 03 testb $0x3,0x8(%eax) 801547: 74 1e je 801567 <write+0x5a> return -E_INVAL; } if (debug) cprintf("write %d %p %d via dev %s\n", fdnum, buf, n, dev->dev_name); if (!dev->dev_write) 801549: 8b 55 f4 mov -0xc(%ebp),%edx 80154c: 8b 52 0c mov 0xc(%edx),%edx 80154f: 85 d2 test %edx,%edx 801551: 74 35 je 801588 <write+0x7b> return -E_NOT_SUPP; return (*dev->dev_write)(fd, buf, n); 801553: 83 ec 04 sub $0x4,%esp 801556: ff 75 10 pushl 0x10(%ebp) 801559: ff 75 0c pushl 0xc(%ebp) 80155c: 50 push %eax 80155d: ff d2 call *%edx 80155f: 83 c4 10 add $0x10,%esp } 801562: 8b 5d fc mov -0x4(%ebp),%ebx 801565: c9 leave 801566: c3 ret cprintf("[%08x] write %d -- bad mode\n", thisenv->env_id, fdnum); 801567: a1 20 44 80 00 mov 0x804420,%eax 80156c: 8b 40 48 mov 0x48(%eax),%eax 80156f: 83 ec 04 sub $0x4,%esp 801572: 53 push %ebx 801573: 50 push %eax 801574: 68 4c 27 80 00 push $0x80274c 801579: e8 7d ee ff ff call 8003fb <cprintf> return -E_INVAL; 80157e: 83 c4 10 add $0x10,%esp 801581: b8 fd ff ff ff mov $0xfffffffd,%eax 801586: eb da jmp 801562 <write+0x55> return -E_NOT_SUPP; 801588: b8 f1 ff ff ff mov $0xfffffff1,%eax 80158d: eb d3 jmp 801562 <write+0x55> 0080158f <seek>: int seek(int fdnum, off_t offset) { 80158f: 55 push %ebp 801590: 89 e5 mov %esp,%ebp 801592: 83 ec 10 sub $0x10,%esp int r; struct Fd *fd; if ((r = fd_lookup(fdnum, &fd)) < 0) 801595: 8d 45 fc lea -0x4(%ebp),%eax 801598: 50 push %eax 801599: ff 75 08 pushl 0x8(%ebp) 80159c: e8 2d fc ff ff call 8011ce <fd_lookup> 8015a1: 83 c4 08 add $0x8,%esp 8015a4: 85 c0 test %eax,%eax 8015a6: 78 0e js 8015b6 <seek+0x27> return r; fd->fd_offset = offset; 8015a8: 8b 55 0c mov 0xc(%ebp),%edx 8015ab: 8b 45 fc mov -0x4(%ebp),%eax 8015ae: 89 50 04 mov %edx,0x4(%eax) return 0; 8015b1: b8 00 00 00 00 mov $0x0,%eax } 8015b6: c9 leave 8015b7: c3 ret 008015b8 <ftruncate>: int ftruncate(int fdnum, off_t newsize) { 8015b8: 55 push %ebp 8015b9: 89 e5 mov %esp,%ebp 8015bb: 53 push %ebx 8015bc: 83 ec 14 sub $0x14,%esp 8015bf: 8b 5d 08 mov 0x8(%ebp),%ebx int r; struct Dev *dev; struct Fd *fd; if ((r = fd_lookup(fdnum, &fd)) < 0 8015c2: 8d 45 f0 lea -0x10(%ebp),%eax 8015c5: 50 push %eax 8015c6: 53 push %ebx 8015c7: e8 02 fc ff ff call 8011ce <fd_lookup> 8015cc: 83 c4 08 add $0x8,%esp 8015cf: 85 c0 test %eax,%eax 8015d1: 78 37 js 80160a <ftruncate+0x52> || (r = dev_lookup(fd->fd_dev_id, &dev)) < 0) 8015d3: 83 ec 08 sub $0x8,%esp 8015d6: 8d 45 f4 lea -0xc(%ebp),%eax 8015d9: 50 push %eax 8015da: 8b 45 f0 mov -0x10(%ebp),%eax 8015dd: ff 30 pushl (%eax) 8015df: e8 40 fc ff ff call 801224 <dev_lookup> 8015e4: 83 c4 10 add $0x10,%esp 8015e7: 85 c0 test %eax,%eax 8015e9: 78 1f js 80160a <ftruncate+0x52> return r; if ((fd->fd_omode & O_ACCMODE) == O_RDONLY) { 8015eb: 8b 45 f0 mov -0x10(%ebp),%eax 8015ee: f6 40 08 03 testb $0x3,0x8(%eax) 8015f2: 74 1b je 80160f <ftruncate+0x57> cprintf("[%08x] ftruncate %d -- bad mode\n", thisenv->env_id, fdnum); return -E_INVAL; } if (!dev->dev_trunc) 8015f4: 8b 55 f4 mov -0xc(%ebp),%edx 8015f7: 8b 52 18 mov 0x18(%edx),%edx 8015fa: 85 d2 test %edx,%edx 8015fc: 74 32 je 801630 <ftruncate+0x78> return -E_NOT_SUPP; return (*dev->dev_trunc)(fd, newsize); 8015fe: 83 ec 08 sub $0x8,%esp 801601: ff 75 0c pushl 0xc(%ebp) 801604: 50 push %eax 801605: ff d2 call *%edx 801607: 83 c4 10 add $0x10,%esp } 80160a: 8b 5d fc mov -0x4(%ebp),%ebx 80160d: c9 leave 80160e: c3 ret thisenv->env_id, fdnum); 80160f: a1 20 44 80 00 mov 0x804420,%eax cprintf("[%08x] ftruncate %d -- bad mode\n", 801614: 8b 40 48 mov 0x48(%eax),%eax 801617: 83 ec 04 sub $0x4,%esp 80161a: 53 push %ebx 80161b: 50 push %eax 80161c: 68 0c 27 80 00 push $0x80270c 801621: e8 d5 ed ff ff call 8003fb <cprintf> return -E_INVAL; 801626: 83 c4 10 add $0x10,%esp 801629: b8 fd ff ff ff mov $0xfffffffd,%eax 80162e: eb da jmp 80160a <ftruncate+0x52> return -E_NOT_SUPP; 801630: b8 f1 ff ff ff mov $0xfffffff1,%eax 801635: eb d3 jmp 80160a <ftruncate+0x52> 00801637 <fstat>: int fstat(int fdnum, struct Stat *stat) { 801637: 55 push %ebp 801638: 89 e5 mov %esp,%ebp 80163a: 53 push %ebx 80163b: 83 ec 14 sub $0x14,%esp 80163e: 8b 5d 0c mov 0xc(%ebp),%ebx int r; struct Dev *dev; struct Fd *fd; if ((r = fd_lookup(fdnum, &fd)) < 0 801641: 8d 45 f0 lea -0x10(%ebp),%eax 801644: 50 push %eax 801645: ff 75 08 pushl 0x8(%ebp) 801648: e8 81 fb ff ff call 8011ce <fd_lookup> 80164d: 83 c4 08 add $0x8,%esp 801650: 85 c0 test %eax,%eax 801652: 78 4b js 80169f <fstat+0x68> || (r = dev_lookup(fd->fd_dev_id, &dev)) < 0) 801654: 83 ec 08 sub $0x8,%esp 801657: 8d 45 f4 lea -0xc(%ebp),%eax 80165a: 50 push %eax 80165b: 8b 45 f0 mov -0x10(%ebp),%eax 80165e: ff 30 pushl (%eax) 801660: e8 bf fb ff ff call 801224 <dev_lookup> 801665: 83 c4 10 add $0x10,%esp 801668: 85 c0 test %eax,%eax 80166a: 78 33 js 80169f <fstat+0x68> return r; if (!dev->dev_stat) 80166c: 8b 45 f4 mov -0xc(%ebp),%eax 80166f: 83 78 14 00 cmpl $0x0,0x14(%eax) 801673: 74 2f je 8016a4 <fstat+0x6d> return -E_NOT_SUPP; stat->st_name[0] = 0; 801675: c6 03 00 movb $0x0,(%ebx) stat->st_size = 0; 801678: c7 83 80 00 00 00 00 movl $0x0,0x80(%ebx) 80167f: 00 00 00 stat->st_isdir = 0; 801682: c7 83 84 00 00 00 00 movl $0x0,0x84(%ebx) 801689: 00 00 00 stat->st_dev = dev; 80168c: 89 83 88 00 00 00 mov %eax,0x88(%ebx) return (*dev->dev_stat)(fd, stat); 801692: 83 ec 08 sub $0x8,%esp 801695: 53 push %ebx 801696: ff 75 f0 pushl -0x10(%ebp) 801699: ff 50 14 call *0x14(%eax) 80169c: 83 c4 10 add $0x10,%esp } 80169f: 8b 5d fc mov -0x4(%ebp),%ebx 8016a2: c9 leave 8016a3: c3 ret return -E_NOT_SUPP; 8016a4: b8 f1 ff ff ff mov $0xfffffff1,%eax 8016a9: eb f4 jmp 80169f <fstat+0x68> 008016ab <stat>: int stat(const char *path, struct Stat *stat) { 8016ab: 55 push %ebp 8016ac: 89 e5 mov %esp,%ebp 8016ae: 56 push %esi 8016af: 53 push %ebx int fd, r; if ((fd = open(path, O_RDONLY)) < 0) 8016b0: 83 ec 08 sub $0x8,%esp 8016b3: 6a 00 push $0x0 8016b5: ff 75 08 pushl 0x8(%ebp) 8016b8: e8 30 02 00 00 call 8018ed <open> 8016bd: 89 c3 mov %eax,%ebx 8016bf: 83 c4 10 add $0x10,%esp 8016c2: 85 c0 test %eax,%eax 8016c4: 78 1b js 8016e1 <stat+0x36> return fd; r = fstat(fd, stat); 8016c6: 83 ec 08 sub $0x8,%esp 8016c9: ff 75 0c pushl 0xc(%ebp) 8016cc: 50 push %eax 8016cd: e8 65 ff ff ff call 801637 <fstat> 8016d2: 89 c6 mov %eax,%esi close(fd); 8016d4: 89 1c 24 mov %ebx,(%esp) 8016d7: e8 27 fc ff ff call 801303 <close> return r; 8016dc: 83 c4 10 add $0x10,%esp 8016df: 89 f3 mov %esi,%ebx } 8016e1: 89 d8 mov %ebx,%eax 8016e3: 8d 65 f8 lea -0x8(%ebp),%esp 8016e6: 5b pop %ebx 8016e7: 5e pop %esi 8016e8: 5d pop %ebp 8016e9: c3 ret 008016ea <fsipc>: // type: request code, passed as the simple integer IPC value. // dstva: virtual address at which to receive reply page, 0 if none. // Returns result from the file server. static int fsipc(unsigned type, void *dstva) { 8016ea: 55 push %ebp 8016eb: 89 e5 mov %esp,%ebp 8016ed: 56 push %esi 8016ee: 53 push %ebx 8016ef: 89 c6 mov %eax,%esi 8016f1: 89 d3 mov %edx,%ebx static envid_t fsenv; if (fsenv == 0) 8016f3: 83 3d 00 40 80 00 00 cmpl $0x0,0x804000 8016fa: 74 27 je 801723 <fsipc+0x39> static_assert(sizeof(fsipcbuf) == PGSIZE); if (debug) cprintf("[%08x] fsipc %d %08x\n", thisenv->env_id, type, *(uint32_t *)&fsipcbuf); ipc_send(fsenv, type, &fsipcbuf, PTE_P | PTE_W | PTE_U); 8016fc: 6a 07 push $0x7 8016fe: 68 00 50 80 00 push $0x805000 801703: 56 push %esi 801704: ff 35 00 40 80 00 pushl 0x804000 80170a: e8 cb 08 00 00 call 801fda <ipc_send> return ipc_recv(NULL, dstva, NULL); 80170f: 83 c4 0c add $0xc,%esp 801712: 6a 00 push $0x0 801714: 53 push %ebx 801715: 6a 00 push $0x0 801717: e8 55 08 00 00 call 801f71 <ipc_recv> } 80171c: 8d 65 f8 lea -0x8(%ebp),%esp 80171f: 5b pop %ebx 801720: 5e pop %esi 801721: 5d pop %ebp 801722: c3 ret fsenv = ipc_find_env(ENV_TYPE_FS); 801723: 83 ec 0c sub $0xc,%esp 801726: 6a 01 push $0x1 801728: e8 01 09 00 00 call 80202e <ipc_find_env> 80172d: a3 00 40 80 00 mov %eax,0x804000 801732: 83 c4 10 add $0x10,%esp 801735: eb c5 jmp 8016fc <fsipc+0x12> 00801737 <devfile_trunc>: } // Truncate or extend an open file to 'size' bytes static int devfile_trunc(struct Fd *fd, off_t newsize) { 801737: 55 push %ebp 801738: 89 e5 mov %esp,%ebp 80173a: 83 ec 08 sub $0x8,%esp fsipcbuf.set_size.req_fileid = fd->fd_file.id; 80173d: 8b 45 08 mov 0x8(%ebp),%eax 801740: 8b 40 0c mov 0xc(%eax),%eax 801743: a3 00 50 80 00 mov %eax,0x805000 fsipcbuf.set_size.req_size = newsize; 801748: 8b 45 0c mov 0xc(%ebp),%eax 80174b: a3 04 50 80 00 mov %eax,0x805004 return fsipc(FSREQ_SET_SIZE, NULL); 801750: ba 00 00 00 00 mov $0x0,%edx 801755: b8 02 00 00 00 mov $0x2,%eax 80175a: e8 8b ff ff ff call 8016ea <fsipc> } 80175f: c9 leave 801760: c3 ret 00801761 <devfile_flush>: { 801761: 55 push %ebp 801762: 89 e5 mov %esp,%ebp 801764: 83 ec 08 sub $0x8,%esp fsipcbuf.flush.req_fileid = fd->fd_file.id; 801767: 8b 45 08 mov 0x8(%ebp),%eax 80176a: 8b 40 0c mov 0xc(%eax),%eax 80176d: a3 00 50 80 00 mov %eax,0x805000 return fsipc(FSREQ_FLUSH, NULL); 801772: ba 00 00 00 00 mov $0x0,%edx 801777: b8 06 00 00 00 mov $0x6,%eax 80177c: e8 69 ff ff ff call 8016ea <fsipc> } 801781: c9 leave 801782: c3 ret 00801783 <devfile_stat>: { 801783: 55 push %ebp 801784: 89 e5 mov %esp,%ebp 801786: 53 push %ebx 801787: 83 ec 04 sub $0x4,%esp 80178a: 8b 5d 0c mov 0xc(%ebp),%ebx fsipcbuf.stat.req_fileid = fd->fd_file.id; 80178d: 8b 45 08 mov 0x8(%ebp),%eax 801790: 8b 40 0c mov 0xc(%eax),%eax 801793: a3 00 50 80 00 mov %eax,0x805000 if ((r = fsipc(FSREQ_STAT, NULL)) < 0) 801798: ba 00 00 00 00 mov $0x0,%edx 80179d: b8 05 00 00 00 mov $0x5,%eax 8017a2: e8 43 ff ff ff call 8016ea <fsipc> 8017a7: 85 c0 test %eax,%eax 8017a9: 78 2c js 8017d7 <devfile_stat+0x54> strcpy(st->st_name, fsipcbuf.statRet.ret_name); 8017ab: 83 ec 08 sub $0x8,%esp 8017ae: 68 00 50 80 00 push $0x805000 8017b3: 53 push %ebx 8017b4: e8 61 f2 ff ff call 800a1a <strcpy> st->st_size = fsipcbuf.statRet.ret_size; 8017b9: a1 80 50 80 00 mov 0x805080,%eax 8017be: 89 83 80 00 00 00 mov %eax,0x80(%ebx) st->st_isdir = fsipcbuf.statRet.ret_isdir; 8017c4: a1 84 50 80 00 mov 0x805084,%eax 8017c9: 89 83 84 00 00 00 mov %eax,0x84(%ebx) return 0; 8017cf: 83 c4 10 add $0x10,%esp 8017d2: b8 00 00 00 00 mov $0x0,%eax } 8017d7: 8b 5d fc mov -0x4(%ebp),%ebx 8017da: c9 leave 8017db: c3 ret 008017dc <devfile_write>: { 8017dc: 55 push %ebp 8017dd: 89 e5 mov %esp,%ebp 8017df: 53 push %ebx 8017e0: 83 ec 08 sub $0x8,%esp 8017e3: 8b 5d 10 mov 0x10(%ebp),%ebx n = sizeof(fsipcbuf.write.req_buf) > n ? n : sizeof(fsipcbuf.write.req_buf); 8017e6: 81 fb f8 0f 00 00 cmp $0xff8,%ebx 8017ec: b8 f8 0f 00 00 mov $0xff8,%eax 8017f1: 0f 47 d8 cmova %eax,%ebx fsipcbuf.write.req_fileid = fd->fd_file.id; 8017f4: 8b 45 08 mov 0x8(%ebp),%eax 8017f7: 8b 40 0c mov 0xc(%eax),%eax 8017fa: a3 00 50 80 00 mov %eax,0x805000 fsipcbuf.write.req_n = n; 8017ff: 89 1d 04 50 80 00 mov %ebx,0x805004 memmove(fsipcbuf.write.req_buf, buf, n); 801805: 53 push %ebx 801806: ff 75 0c pushl 0xc(%ebp) 801809: 68 08 50 80 00 push $0x805008 80180e: e8 95 f3 ff ff call 800ba8 <memmove> if ((r = fsipc(FSREQ_WRITE, NULL)) < 0) 801813: ba 00 00 00 00 mov $0x0,%edx 801818: b8 04 00 00 00 mov $0x4,%eax 80181d: e8 c8 fe ff ff call 8016ea <fsipc> 801822: 83 c4 10 add $0x10,%esp 801825: 85 c0 test %eax,%eax 801827: 78 0b js 801834 <devfile_write+0x58> assert(r <= n); 801829: 39 d8 cmp %ebx,%eax 80182b: 77 0c ja 801839 <devfile_write+0x5d> assert(r <= PGSIZE); 80182d: 3d 00 10 00 00 cmp $0x1000,%eax 801832: 7f 1e jg 801852 <devfile_write+0x76> } 801834: 8b 5d fc mov -0x4(%ebp),%ebx 801837: c9 leave 801838: c3 ret assert(r <= n); 801839: 68 7c 27 80 00 push $0x80277c 80183e: 68 83 27 80 00 push $0x802783 801843: 68 98 00 00 00 push $0x98 801848: 68 98 27 80 00 push $0x802798 80184d: e8 ce ea ff ff call 800320 <_panic> assert(r <= PGSIZE); 801852: 68 a3 27 80 00 push $0x8027a3 801857: 68 83 27 80 00 push $0x802783 80185c: 68 99 00 00 00 push $0x99 801861: 68 98 27 80 00 push $0x802798 801866: e8 b5 ea ff ff call 800320 <_panic> 0080186b <devfile_read>: { 80186b: 55 push %ebp 80186c: 89 e5 mov %esp,%ebp 80186e: 56 push %esi 80186f: 53 push %ebx 801870: 8b 75 10 mov 0x10(%ebp),%esi fsipcbuf.read.req_fileid = fd->fd_file.id; 801873: 8b 45 08 mov 0x8(%ebp),%eax 801876: 8b 40 0c mov 0xc(%eax),%eax 801879: a3 00 50 80 00 mov %eax,0x805000 fsipcbuf.read.req_n = n; 80187e: 89 35 04 50 80 00 mov %esi,0x805004 if ((r = fsipc(FSREQ_READ, NULL)) < 0) 801884: ba 00 00 00 00 mov $0x0,%edx 801889: b8 03 00 00 00 mov $0x3,%eax 80188e: e8 57 fe ff ff call 8016ea <fsipc> 801893: 89 c3 mov %eax,%ebx 801895: 85 c0 test %eax,%eax 801897: 78 1f js 8018b8 <devfile_read+0x4d> assert(r <= n); 801899: 39 f0 cmp %esi,%eax 80189b: 77 24 ja 8018c1 <devfile_read+0x56> assert(r <= PGSIZE); 80189d: 3d 00 10 00 00 cmp $0x1000,%eax 8018a2: 7f 33 jg 8018d7 <devfile_read+0x6c> memmove(buf, fsipcbuf.readRet.ret_buf, r); 8018a4: 83 ec 04 sub $0x4,%esp 8018a7: 50 push %eax 8018a8: 68 00 50 80 00 push $0x805000 8018ad: ff 75 0c pushl 0xc(%ebp) 8018b0: e8 f3 f2 ff ff call 800ba8 <memmove> return r; 8018b5: 83 c4 10 add $0x10,%esp } 8018b8: 89 d8 mov %ebx,%eax 8018ba: 8d 65 f8 lea -0x8(%ebp),%esp 8018bd: 5b pop %ebx 8018be: 5e pop %esi 8018bf: 5d pop %ebp 8018c0: c3 ret assert(r <= n); 8018c1: 68 7c 27 80 00 push $0x80277c 8018c6: 68 83 27 80 00 push $0x802783 8018cb: 6a 7c push $0x7c 8018cd: 68 98 27 80 00 push $0x802798 8018d2: e8 49 ea ff ff call 800320 <_panic> assert(r <= PGSIZE); 8018d7: 68 a3 27 80 00 push $0x8027a3 8018dc: 68 83 27 80 00 push $0x802783 8018e1: 6a 7d push $0x7d 8018e3: 68 98 27 80 00 push $0x802798 8018e8: e8 33 ea ff ff call 800320 <_panic> 008018ed <open>: { 8018ed: 55 push %ebp 8018ee: 89 e5 mov %esp,%ebp 8018f0: 56 push %esi 8018f1: 53 push %ebx 8018f2: 83 ec 1c sub $0x1c,%esp 8018f5: 8b 75 08 mov 0x8(%ebp),%esi if (strlen(path) >= MAXPATHLEN) 8018f8: 56 push %esi 8018f9: e8 e5 f0 ff ff call 8009e3 <strlen> 8018fe: 83 c4 10 add $0x10,%esp 801901: 3d ff 03 00 00 cmp $0x3ff,%eax 801906: 7f 6c jg 801974 <open+0x87> if ((r = fd_alloc(&fd)) < 0) 801908: 83 ec 0c sub $0xc,%esp 80190b: 8d 45 f4 lea -0xc(%ebp),%eax 80190e: 50 push %eax 80190f: e8 6b f8 ff ff call 80117f <fd_alloc> 801914: 89 c3 mov %eax,%ebx 801916: 83 c4 10 add $0x10,%esp 801919: 85 c0 test %eax,%eax 80191b: 78 3c js 801959 <open+0x6c> strcpy(fsipcbuf.open.req_path, path); 80191d: 83 ec 08 sub $0x8,%esp 801920: 56 push %esi 801921: 68 00 50 80 00 push $0x805000 801926: e8 ef f0 ff ff call 800a1a <strcpy> fsipcbuf.open.req_omode = mode; 80192b: 8b 45 0c mov 0xc(%ebp),%eax 80192e: a3 00 54 80 00 mov %eax,0x805400 if ((r = fsipc(FSREQ_OPEN, fd)) < 0) { 801933: 8b 55 f4 mov -0xc(%ebp),%edx 801936: b8 01 00 00 00 mov $0x1,%eax 80193b: e8 aa fd ff ff call 8016ea <fsipc> 801940: 89 c3 mov %eax,%ebx 801942: 83 c4 10 add $0x10,%esp 801945: 85 c0 test %eax,%eax 801947: 78 19 js 801962 <open+0x75> return fd2num(fd); 801949: 83 ec 0c sub $0xc,%esp 80194c: ff 75 f4 pushl -0xc(%ebp) 80194f: e8 04 f8 ff ff call 801158 <fd2num> 801954: 89 c3 mov %eax,%ebx 801956: 83 c4 10 add $0x10,%esp } 801959: 89 d8 mov %ebx,%eax 80195b: 8d 65 f8 lea -0x8(%ebp),%esp 80195e: 5b pop %ebx 80195f: 5e pop %esi 801960: 5d pop %ebp 801961: c3 ret fd_close(fd, 0); 801962: 83 ec 08 sub $0x8,%esp 801965: 6a 00 push $0x0 801967: ff 75 f4 pushl -0xc(%ebp) 80196a: e8 0b f9 ff ff call 80127a <fd_close> return r; 80196f: 83 c4 10 add $0x10,%esp 801972: eb e5 jmp 801959 <open+0x6c> return -E_BAD_PATH; 801974: bb f4 ff ff ff mov $0xfffffff4,%ebx 801979: eb de jmp 801959 <open+0x6c> 0080197b <sync>: // Synchronize disk with buffer cache int sync(void) { 80197b: 55 push %ebp 80197c: 89 e5 mov %esp,%ebp 80197e: 83 ec 08 sub $0x8,%esp // Ask the file server to update the disk // by writing any dirty blocks in the buffer cache. return fsipc(FSREQ_SYNC, NULL); 801981: ba 00 00 00 00 mov $0x0,%edx 801986: b8 08 00 00 00 mov $0x8,%eax 80198b: e8 5a fd ff ff call 8016ea <fsipc> } 801990: c9 leave 801991: c3 ret 00801992 <writebuf>: static void writebuf(struct printbuf *b) { if (b->error > 0) { 801992: 83 78 0c 00 cmpl $0x0,0xc(%eax) 801996: 7e 38 jle 8019d0 <writebuf+0x3e> { 801998: 55 push %ebp 801999: 89 e5 mov %esp,%ebp 80199b: 53 push %ebx 80199c: 83 ec 08 sub $0x8,%esp 80199f: 89 c3 mov %eax,%ebx ssize_t result = write(b->fd, b->buf, b->idx); 8019a1: ff 70 04 pushl 0x4(%eax) 8019a4: 8d 40 10 lea 0x10(%eax),%eax 8019a7: 50 push %eax 8019a8: ff 33 pushl (%ebx) 8019aa: e8 5e fb ff ff call 80150d <write> if (result > 0) 8019af: 83 c4 10 add $0x10,%esp 8019b2: 85 c0 test %eax,%eax 8019b4: 7e 03 jle 8019b9 <writebuf+0x27> b->result += result; 8019b6: 01 43 08 add %eax,0x8(%ebx) if (result != b->idx) // error, or wrote less than supplied 8019b9: 39 43 04 cmp %eax,0x4(%ebx) 8019bc: 74 0d je 8019cb <writebuf+0x39> b->error = (result < 0 ? result : 0); 8019be: 85 c0 test %eax,%eax 8019c0: ba 00 00 00 00 mov $0x0,%edx 8019c5: 0f 4f c2 cmovg %edx,%eax 8019c8: 89 43 0c mov %eax,0xc(%ebx) } } 8019cb: 8b 5d fc mov -0x4(%ebp),%ebx 8019ce: c9 leave 8019cf: c3 ret 8019d0: f3 c3 repz ret 008019d2 <putch>: static void putch(int ch, void *thunk) { 8019d2: 55 push %ebp 8019d3: 89 e5 mov %esp,%ebp 8019d5: 53 push %ebx 8019d6: 83 ec 04 sub $0x4,%esp 8019d9: 8b 5d 0c mov 0xc(%ebp),%ebx struct printbuf *b = (struct printbuf *) thunk; b->buf[b->idx++] = ch; 8019dc: 8b 53 04 mov 0x4(%ebx),%edx 8019df: 8d 42 01 lea 0x1(%edx),%eax 8019e2: 89 43 04 mov %eax,0x4(%ebx) 8019e5: 8b 4d 08 mov 0x8(%ebp),%ecx 8019e8: 88 4c 13 10 mov %cl,0x10(%ebx,%edx,1) if (b->idx == 256) { 8019ec: 3d 00 01 00 00 cmp $0x100,%eax 8019f1: 74 06 je 8019f9 <putch+0x27> writebuf(b); b->idx = 0; } } 8019f3: 83 c4 04 add $0x4,%esp 8019f6: 5b pop %ebx 8019f7: 5d pop %ebp 8019f8: c3 ret writebuf(b); 8019f9: 89 d8 mov %ebx,%eax 8019fb: e8 92 ff ff ff call 801992 <writebuf> b->idx = 0; 801a00: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx) } 801a07: eb ea jmp 8019f3 <putch+0x21> 00801a09 <vfprintf>: int vfprintf(int fd, const char *fmt, va_list ap) { 801a09: 55 push %ebp 801a0a: 89 e5 mov %esp,%ebp 801a0c: 81 ec 18 01 00 00 sub $0x118,%esp struct printbuf b; b.fd = fd; 801a12: 8b 45 08 mov 0x8(%ebp),%eax 801a15: 89 85 e8 fe ff ff mov %eax,-0x118(%ebp) b.idx = 0; 801a1b: c7 85 ec fe ff ff 00 movl $0x0,-0x114(%ebp) 801a22: 00 00 00 b.result = 0; 801a25: c7 85 f0 fe ff ff 00 movl $0x0,-0x110(%ebp) 801a2c: 00 00 00 b.error = 1; 801a2f: c7 85 f4 fe ff ff 01 movl $0x1,-0x10c(%ebp) 801a36: 00 00 00 vprintfmt(putch, &b, fmt, ap); 801a39: ff 75 10 pushl 0x10(%ebp) 801a3c: ff 75 0c pushl 0xc(%ebp) 801a3f: 8d 85 e8 fe ff ff lea -0x118(%ebp),%eax 801a45: 50 push %eax 801a46: 68 d2 19 80 00 push $0x8019d2 801a4b: e8 a8 ea ff ff call 8004f8 <vprintfmt> if (b.idx > 0) 801a50: 83 c4 10 add $0x10,%esp 801a53: 83 bd ec fe ff ff 00 cmpl $0x0,-0x114(%ebp) 801a5a: 7f 11 jg 801a6d <vfprintf+0x64> writebuf(&b); return (b.result ? b.result : b.error); 801a5c: 8b 85 f0 fe ff ff mov -0x110(%ebp),%eax 801a62: 85 c0 test %eax,%eax 801a64: 0f 44 85 f4 fe ff ff cmove -0x10c(%ebp),%eax } 801a6b: c9 leave 801a6c: c3 ret writebuf(&b); 801a6d: 8d 85 e8 fe ff ff lea -0x118(%ebp),%eax 801a73: e8 1a ff ff ff call 801992 <writebuf> 801a78: eb e2 jmp 801a5c <vfprintf+0x53> 00801a7a <fprintf>: int fprintf(int fd, const char *fmt, ...) { 801a7a: 55 push %ebp 801a7b: 89 e5 mov %esp,%ebp 801a7d: 83 ec 0c sub $0xc,%esp va_list ap; int cnt; va_start(ap, fmt); 801a80: 8d 45 10 lea 0x10(%ebp),%eax cnt = vfprintf(fd, fmt, ap); 801a83: 50 push %eax 801a84: ff 75 0c pushl 0xc(%ebp) 801a87: ff 75 08 pushl 0x8(%ebp) 801a8a: e8 7a ff ff ff call 801a09 <vfprintf> va_end(ap); return cnt; } 801a8f: c9 leave 801a90: c3 ret 00801a91 <printf>: int printf(const char *fmt, ...) { 801a91: 55 push %ebp 801a92: 89 e5 mov %esp,%ebp 801a94: 83 ec 0c sub $0xc,%esp va_list ap; int cnt; va_start(ap, fmt); 801a97: 8d 45 0c lea 0xc(%ebp),%eax cnt = vfprintf(1, fmt, ap); 801a9a: 50 push %eax 801a9b: ff 75 08 pushl 0x8(%ebp) 801a9e: 6a 01 push $0x1 801aa0: e8 64 ff ff ff call 801a09 <vfprintf> va_end(ap); return cnt; } 801aa5: c9 leave 801aa6: c3 ret 00801aa7 <devpipe_stat>: return i; } static int devpipe_stat(struct Fd *fd, struct Stat *stat) { 801aa7: 55 push %ebp 801aa8: 89 e5 mov %esp,%ebp 801aaa: 56 push %esi 801aab: 53 push %ebx 801aac: 8b 5d 0c mov 0xc(%ebp),%ebx struct Pipe *p = (struct Pipe*) fd2data(fd); 801aaf: 83 ec 0c sub $0xc,%esp 801ab2: ff 75 08 pushl 0x8(%ebp) 801ab5: e8 ae f6 ff ff call 801168 <fd2data> 801aba: 89 c6 mov %eax,%esi strcpy(stat->st_name, "<pipe>"); 801abc: 83 c4 08 add $0x8,%esp 801abf: 68 af 27 80 00 push $0x8027af 801ac4: 53 push %ebx 801ac5: e8 50 ef ff ff call 800a1a <strcpy> stat->st_size = p->p_wpos - p->p_rpos; 801aca: 8b 46 04 mov 0x4(%esi),%eax 801acd: 2b 06 sub (%esi),%eax 801acf: 89 83 80 00 00 00 mov %eax,0x80(%ebx) stat->st_isdir = 0; 801ad5: c7 83 84 00 00 00 00 movl $0x0,0x84(%ebx) 801adc: 00 00 00 stat->st_dev = &devpipe; 801adf: c7 83 88 00 00 00 20 movl $0x803020,0x88(%ebx) 801ae6: 30 80 00 return 0; } 801ae9: b8 00 00 00 00 mov $0x0,%eax 801aee: 8d 65 f8 lea -0x8(%ebp),%esp 801af1: 5b pop %ebx 801af2: 5e pop %esi 801af3: 5d pop %ebp 801af4: c3 ret 00801af5 <devpipe_close>: static int devpipe_close(struct Fd *fd) { 801af5: 55 push %ebp 801af6: 89 e5 mov %esp,%ebp 801af8: 53 push %ebx 801af9: 83 ec 0c sub $0xc,%esp 801afc: 8b 5d 08 mov 0x8(%ebp),%ebx (void) sys_page_unmap(0, fd); 801aff: 53 push %ebx 801b00: 6a 00 push $0x0 801b02: e8 91 f3 ff ff call 800e98 <sys_page_unmap> return sys_page_unmap(0, fd2data(fd)); 801b07: 89 1c 24 mov %ebx,(%esp) 801b0a: e8 59 f6 ff ff call 801168 <fd2data> 801b0f: 83 c4 08 add $0x8,%esp 801b12: 50 push %eax 801b13: 6a 00 push $0x0 801b15: e8 7e f3 ff ff call 800e98 <sys_page_unmap> } 801b1a: 8b 5d fc mov -0x4(%ebp),%ebx 801b1d: c9 leave 801b1e: c3 ret 00801b1f <_pipeisclosed>: { 801b1f: 55 push %ebp 801b20: 89 e5 mov %esp,%ebp 801b22: 57 push %edi 801b23: 56 push %esi 801b24: 53 push %ebx 801b25: 83 ec 1c sub $0x1c,%esp 801b28: 89 c7 mov %eax,%edi 801b2a: 89 d6 mov %edx,%esi n = thisenv->env_runs; 801b2c: a1 20 44 80 00 mov 0x804420,%eax 801b31: 8b 58 58 mov 0x58(%eax),%ebx ret = pageref(fd) == pageref(p); 801b34: 83 ec 0c sub $0xc,%esp 801b37: 57 push %edi 801b38: e8 2a 05 00 00 call 802067 <pageref> 801b3d: 89 45 e4 mov %eax,-0x1c(%ebp) 801b40: 89 34 24 mov %esi,(%esp) 801b43: e8 1f 05 00 00 call 802067 <pageref> nn = thisenv->env_runs; 801b48: 8b 15 20 44 80 00 mov 0x804420,%edx 801b4e: 8b 4a 58 mov 0x58(%edx),%ecx if (n == nn) 801b51: 83 c4 10 add $0x10,%esp 801b54: 39 cb cmp %ecx,%ebx 801b56: 74 1b je 801b73 <_pipeisclosed+0x54> if (n != nn && ret == 1) 801b58: 39 45 e4 cmp %eax,-0x1c(%ebp) 801b5b: 75 cf jne 801b2c <_pipeisclosed+0xd> cprintf("pipe race avoided\n", n, thisenv->env_runs, ret); 801b5d: 8b 42 58 mov 0x58(%edx),%eax 801b60: 6a 01 push $0x1 801b62: 50 push %eax 801b63: 53 push %ebx 801b64: 68 b6 27 80 00 push $0x8027b6 801b69: e8 8d e8 ff ff call 8003fb <cprintf> 801b6e: 83 c4 10 add $0x10,%esp 801b71: eb b9 jmp 801b2c <_pipeisclosed+0xd> ret = pageref(fd) == pageref(p); 801b73: 39 45 e4 cmp %eax,-0x1c(%ebp) 801b76: 0f 94 c0 sete %al 801b79: 0f b6 c0 movzbl %al,%eax } 801b7c: 8d 65 f4 lea -0xc(%ebp),%esp 801b7f: 5b pop %ebx 801b80: 5e pop %esi 801b81: 5f pop %edi 801b82: 5d pop %ebp 801b83: c3 ret 00801b84 <devpipe_write>: { 801b84: 55 push %ebp 801b85: 89 e5 mov %esp,%ebp 801b87: 57 push %edi 801b88: 56 push %esi 801b89: 53 push %ebx 801b8a: 83 ec 28 sub $0x28,%esp 801b8d: 8b 75 08 mov 0x8(%ebp),%esi p = (struct Pipe*) fd2data(fd); 801b90: 56 push %esi 801b91: e8 d2 f5 ff ff call 801168 <fd2data> 801b96: 89 c3 mov %eax,%ebx for (i = 0; i < n; i++) { 801b98: 83 c4 10 add $0x10,%esp 801b9b: bf 00 00 00 00 mov $0x0,%edi 801ba0: 3b 7d 10 cmp 0x10(%ebp),%edi 801ba3: 74 4f je 801bf4 <devpipe_write+0x70> while (p->p_wpos >= p->p_rpos + sizeof(p->p_buf)) { 801ba5: 8b 43 04 mov 0x4(%ebx),%eax 801ba8: 8b 0b mov (%ebx),%ecx 801baa: 8d 51 20 lea 0x20(%ecx),%edx 801bad: 39 d0 cmp %edx,%eax 801baf: 72 14 jb 801bc5 <devpipe_write+0x41> if (_pipeisclosed(fd, p)) 801bb1: 89 da mov %ebx,%edx 801bb3: 89 f0 mov %esi,%eax 801bb5: e8 65 ff ff ff call 801b1f <_pipeisclosed> 801bba: 85 c0 test %eax,%eax 801bbc: 75 3a jne 801bf8 <devpipe_write+0x74> sys_yield(); 801bbe: e8 31 f2 ff ff call 800df4 <sys_yield> 801bc3: eb e0 jmp 801ba5 <devpipe_write+0x21> p->p_buf[p->p_wpos % PIPEBUFSIZ] = buf[i]; 801bc5: 8b 4d 0c mov 0xc(%ebp),%ecx 801bc8: 0f b6 0c 39 movzbl (%ecx,%edi,1),%ecx 801bcc: 88 4d e7 mov %cl,-0x19(%ebp) 801bcf: 89 c2 mov %eax,%edx 801bd1: c1 fa 1f sar $0x1f,%edx 801bd4: 89 d1 mov %edx,%ecx 801bd6: c1 e9 1b shr $0x1b,%ecx 801bd9: 8d 14 08 lea (%eax,%ecx,1),%edx 801bdc: 83 e2 1f and $0x1f,%edx 801bdf: 29 ca sub %ecx,%edx 801be1: 0f b6 4d e7 movzbl -0x19(%ebp),%ecx 801be5: 88 4c 13 08 mov %cl,0x8(%ebx,%edx,1) p->p_wpos++; 801be9: 83 c0 01 add $0x1,%eax 801bec: 89 43 04 mov %eax,0x4(%ebx) for (i = 0; i < n; i++) { 801bef: 83 c7 01 add $0x1,%edi 801bf2: eb ac jmp 801ba0 <devpipe_write+0x1c> return i; 801bf4: 89 f8 mov %edi,%eax 801bf6: eb 05 jmp 801bfd <devpipe_write+0x79> return 0; 801bf8: b8 00 00 00 00 mov $0x0,%eax } 801bfd: 8d 65 f4 lea -0xc(%ebp),%esp 801c00: 5b pop %ebx 801c01: 5e pop %esi 801c02: 5f pop %edi 801c03: 5d pop %ebp 801c04: c3 ret 00801c05 <devpipe_read>: { 801c05: 55 push %ebp 801c06: 89 e5 mov %esp,%ebp 801c08: 57 push %edi 801c09: 56 push %esi 801c0a: 53 push %ebx 801c0b: 83 ec 18 sub $0x18,%esp 801c0e: 8b 7d 08 mov 0x8(%ebp),%edi p = (struct Pipe*)fd2data(fd); 801c11: 57 push %edi 801c12: e8 51 f5 ff ff call 801168 <fd2data> 801c17: 89 c3 mov %eax,%ebx for (i = 0; i < n; i++) { 801c19: 83 c4 10 add $0x10,%esp 801c1c: be 00 00 00 00 mov $0x0,%esi 801c21: 3b 75 10 cmp 0x10(%ebp),%esi 801c24: 74 47 je 801c6d <devpipe_read+0x68> while (p->p_rpos == p->p_wpos) { 801c26: 8b 03 mov (%ebx),%eax 801c28: 3b 43 04 cmp 0x4(%ebx),%eax 801c2b: 75 22 jne 801c4f <devpipe_read+0x4a> if (i > 0) 801c2d: 85 f6 test %esi,%esi 801c2f: 75 14 jne 801c45 <devpipe_read+0x40> if (_pipeisclosed(fd, p)) 801c31: 89 da mov %ebx,%edx 801c33: 89 f8 mov %edi,%eax 801c35: e8 e5 fe ff ff call 801b1f <_pipeisclosed> 801c3a: 85 c0 test %eax,%eax 801c3c: 75 33 jne 801c71 <devpipe_read+0x6c> sys_yield(); 801c3e: e8 b1 f1 ff ff call 800df4 <sys_yield> 801c43: eb e1 jmp 801c26 <devpipe_read+0x21> return i; 801c45: 89 f0 mov %esi,%eax } 801c47: 8d 65 f4 lea -0xc(%ebp),%esp 801c4a: 5b pop %ebx 801c4b: 5e pop %esi 801c4c: 5f pop %edi 801c4d: 5d pop %ebp 801c4e: c3 ret buf[i] = p->p_buf[p->p_rpos % PIPEBUFSIZ]; 801c4f: 99 cltd 801c50: c1 ea 1b shr $0x1b,%edx 801c53: 01 d0 add %edx,%eax 801c55: 83 e0 1f and $0x1f,%eax 801c58: 29 d0 sub %edx,%eax 801c5a: 0f b6 44 03 08 movzbl 0x8(%ebx,%eax,1),%eax 801c5f: 8b 4d 0c mov 0xc(%ebp),%ecx 801c62: 88 04 31 mov %al,(%ecx,%esi,1) p->p_rpos++; 801c65: 83 03 01 addl $0x1,(%ebx) for (i = 0; i < n; i++) { 801c68: 83 c6 01 add $0x1,%esi 801c6b: eb b4 jmp 801c21 <devpipe_read+0x1c> return i; 801c6d: 89 f0 mov %esi,%eax 801c6f: eb d6 jmp 801c47 <devpipe_read+0x42> return 0; 801c71: b8 00 00 00 00 mov $0x0,%eax 801c76: eb cf jmp 801c47 <devpipe_read+0x42> 00801c78 <pipe>: { 801c78: 55 push %ebp 801c79: 89 e5 mov %esp,%ebp 801c7b: 56 push %esi 801c7c: 53 push %ebx 801c7d: 83 ec 1c sub $0x1c,%esp if ((r = fd_alloc(&fd0)) < 0 801c80: 8d 45 f4 lea -0xc(%ebp),%eax 801c83: 50 push %eax 801c84: e8 f6 f4 ff ff call 80117f <fd_alloc> 801c89: 89 c3 mov %eax,%ebx 801c8b: 83 c4 10 add $0x10,%esp 801c8e: 85 c0 test %eax,%eax 801c90: 78 5b js 801ced <pipe+0x75> || (r = sys_page_alloc(0, fd0, PTE_P|PTE_W|PTE_U|PTE_SHARE)) < 0) 801c92: 83 ec 04 sub $0x4,%esp 801c95: 68 07 04 00 00 push $0x407 801c9a: ff 75 f4 pushl -0xc(%ebp) 801c9d: 6a 00 push $0x0 801c9f: e8 6f f1 ff ff call 800e13 <sys_page_alloc> 801ca4: 89 c3 mov %eax,%ebx 801ca6: 83 c4 10 add $0x10,%esp 801ca9: 85 c0 test %eax,%eax 801cab: 78 40 js 801ced <pipe+0x75> if ((r = fd_alloc(&fd1)) < 0 801cad: 83 ec 0c sub $0xc,%esp 801cb0: 8d 45 f0 lea -0x10(%ebp),%eax 801cb3: 50 push %eax 801cb4: e8 c6 f4 ff ff call 80117f <fd_alloc> 801cb9: 89 c3 mov %eax,%ebx 801cbb: 83 c4 10 add $0x10,%esp 801cbe: 85 c0 test %eax,%eax 801cc0: 78 1b js 801cdd <pipe+0x65> || (r = sys_page_alloc(0, fd1, PTE_P|PTE_W|PTE_U|PTE_SHARE)) < 0) 801cc2: 83 ec 04 sub $0x4,%esp 801cc5: 68 07 04 00 00 push $0x407 801cca: ff 75 f0 pushl -0x10(%ebp) 801ccd: 6a 00 push $0x0 801ccf: e8 3f f1 ff ff call 800e13 <sys_page_alloc> 801cd4: 89 c3 mov %eax,%ebx 801cd6: 83 c4 10 add $0x10,%esp 801cd9: 85 c0 test %eax,%eax 801cdb: 79 19 jns 801cf6 <pipe+0x7e> sys_page_unmap(0, fd0); 801cdd: 83 ec 08 sub $0x8,%esp 801ce0: ff 75 f4 pushl -0xc(%ebp) 801ce3: 6a 00 push $0x0 801ce5: e8 ae f1 ff ff call 800e98 <sys_page_unmap> 801cea: 83 c4 10 add $0x10,%esp } 801ced: 89 d8 mov %ebx,%eax 801cef: 8d 65 f8 lea -0x8(%ebp),%esp 801cf2: 5b pop %ebx 801cf3: 5e pop %esi 801cf4: 5d pop %ebp 801cf5: c3 ret va = fd2data(fd0); 801cf6: 83 ec 0c sub $0xc,%esp 801cf9: ff 75 f4 pushl -0xc(%ebp) 801cfc: e8 67 f4 ff ff call 801168 <fd2data> 801d01: 89 c6 mov %eax,%esi if ((r = sys_page_alloc(0, va, PTE_P|PTE_W|PTE_U|PTE_SHARE)) < 0) 801d03: 83 c4 0c add $0xc,%esp 801d06: 68 07 04 00 00 push $0x407 801d0b: 50 push %eax 801d0c: 6a 00 push $0x0 801d0e: e8 00 f1 ff ff call 800e13 <sys_page_alloc> 801d13: 89 c3 mov %eax,%ebx 801d15: 83 c4 10 add $0x10,%esp 801d18: 85 c0 test %eax,%eax 801d1a: 0f 88 8c 00 00 00 js 801dac <pipe+0x134> if ((r = sys_page_map(0, va, 0, fd2data(fd1), PTE_P|PTE_W|PTE_U|PTE_SHARE)) < 0) 801d20: 83 ec 0c sub $0xc,%esp 801d23: ff 75 f0 pushl -0x10(%ebp) 801d26: e8 3d f4 ff ff call 801168 <fd2data> 801d2b: c7 04 24 07 04 00 00 movl $0x407,(%esp) 801d32: 50 push %eax 801d33: 6a 00 push $0x0 801d35: 56 push %esi 801d36: 6a 00 push $0x0 801d38: e8 19 f1 ff ff call 800e56 <sys_page_map> 801d3d: 89 c3 mov %eax,%ebx 801d3f: 83 c4 20 add $0x20,%esp 801d42: 85 c0 test %eax,%eax 801d44: 78 58 js 801d9e <pipe+0x126> fd0->fd_dev_id = devpipe.dev_id; 801d46: 8b 45 f4 mov -0xc(%ebp),%eax 801d49: 8b 15 20 30 80 00 mov 0x803020,%edx 801d4f: 89 10 mov %edx,(%eax) fd0->fd_omode = O_RDONLY; 801d51: 8b 45 f4 mov -0xc(%ebp),%eax 801d54: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) fd1->fd_dev_id = devpipe.dev_id; 801d5b: 8b 45 f0 mov -0x10(%ebp),%eax 801d5e: 8b 15 20 30 80 00 mov 0x803020,%edx 801d64: 89 10 mov %edx,(%eax) fd1->fd_omode = O_WRONLY; 801d66: 8b 45 f0 mov -0x10(%ebp),%eax 801d69: c7 40 08 01 00 00 00 movl $0x1,0x8(%eax) pfd[0] = fd2num(fd0); 801d70: 83 ec 0c sub $0xc,%esp 801d73: ff 75 f4 pushl -0xc(%ebp) 801d76: e8 dd f3 ff ff call 801158 <fd2num> 801d7b: 8b 4d 08 mov 0x8(%ebp),%ecx 801d7e: 89 01 mov %eax,(%ecx) pfd[1] = fd2num(fd1); 801d80: 83 c4 04 add $0x4,%esp 801d83: ff 75 f0 pushl -0x10(%ebp) 801d86: e8 cd f3 ff ff call 801158 <fd2num> 801d8b: 8b 4d 08 mov 0x8(%ebp),%ecx 801d8e: 89 41 04 mov %eax,0x4(%ecx) return 0; 801d91: 83 c4 10 add $0x10,%esp 801d94: bb 00 00 00 00 mov $0x0,%ebx 801d99: e9 4f ff ff ff jmp 801ced <pipe+0x75> sys_page_unmap(0, va); 801d9e: 83 ec 08 sub $0x8,%esp 801da1: 56 push %esi 801da2: 6a 00 push $0x0 801da4: e8 ef f0 ff ff call 800e98 <sys_page_unmap> 801da9: 83 c4 10 add $0x10,%esp sys_page_unmap(0, fd1); 801dac: 83 ec 08 sub $0x8,%esp 801daf: ff 75 f0 pushl -0x10(%ebp) 801db2: 6a 00 push $0x0 801db4: e8 df f0 ff ff call 800e98 <sys_page_unmap> 801db9: 83 c4 10 add $0x10,%esp 801dbc: e9 1c ff ff ff jmp 801cdd <pipe+0x65> 00801dc1 <pipeisclosed>: { 801dc1: 55 push %ebp 801dc2: 89 e5 mov %esp,%ebp 801dc4: 83 ec 20 sub $0x20,%esp if ((r = fd_lookup(fdnum, &fd)) < 0) 801dc7: 8d 45 f4 lea -0xc(%ebp),%eax 801dca: 50 push %eax 801dcb: ff 75 08 pushl 0x8(%ebp) 801dce: e8 fb f3 ff ff call 8011ce <fd_lookup> 801dd3: 83 c4 10 add $0x10,%esp 801dd6: 85 c0 test %eax,%eax 801dd8: 78 18 js 801df2 <pipeisclosed+0x31> p = (struct Pipe*) fd2data(fd); 801dda: 83 ec 0c sub $0xc,%esp 801ddd: ff 75 f4 pushl -0xc(%ebp) 801de0: e8 83 f3 ff ff call 801168 <fd2data> return _pipeisclosed(fd, p); 801de5: 89 c2 mov %eax,%edx 801de7: 8b 45 f4 mov -0xc(%ebp),%eax 801dea: e8 30 fd ff ff call 801b1f <_pipeisclosed> 801def: 83 c4 10 add $0x10,%esp } 801df2: c9 leave 801df3: c3 ret 00801df4 <devcons_close>: return tot; } static int devcons_close(struct Fd *fd) { 801df4: 55 push %ebp 801df5: 89 e5 mov %esp,%ebp USED(fd); return 0; } 801df7: b8 00 00 00 00 mov $0x0,%eax 801dfc: 5d pop %ebp 801dfd: c3 ret 00801dfe <devcons_stat>: static int devcons_stat(struct Fd *fd, struct Stat *stat) { 801dfe: 55 push %ebp 801dff: 89 e5 mov %esp,%ebp 801e01: 83 ec 10 sub $0x10,%esp strcpy(stat->st_name, "<cons>"); 801e04: 68 ce 27 80 00 push $0x8027ce 801e09: ff 75 0c pushl 0xc(%ebp) 801e0c: e8 09 ec ff ff call 800a1a <strcpy> return 0; } 801e11: b8 00 00 00 00 mov $0x0,%eax 801e16: c9 leave 801e17: c3 ret 00801e18 <devcons_write>: { 801e18: 55 push %ebp 801e19: 89 e5 mov %esp,%ebp 801e1b: 57 push %edi 801e1c: 56 push %esi 801e1d: 53 push %ebx 801e1e: 81 ec 8c 00 00 00 sub $0x8c,%esp for (tot = 0; tot < n; tot += m) { 801e24: be 00 00 00 00 mov $0x0,%esi memmove(buf, (char*)vbuf + tot, m); 801e29: 8d bd 68 ff ff ff lea -0x98(%ebp),%edi for (tot = 0; tot < n; tot += m) { 801e2f: eb 2f jmp 801e60 <devcons_write+0x48> m = n - tot; 801e31: 8b 5d 10 mov 0x10(%ebp),%ebx 801e34: 29 f3 sub %esi,%ebx 801e36: 83 fb 7f cmp $0x7f,%ebx 801e39: b8 7f 00 00 00 mov $0x7f,%eax 801e3e: 0f 47 d8 cmova %eax,%ebx memmove(buf, (char*)vbuf + tot, m); 801e41: 83 ec 04 sub $0x4,%esp 801e44: 53 push %ebx 801e45: 89 f0 mov %esi,%eax 801e47: 03 45 0c add 0xc(%ebp),%eax 801e4a: 50 push %eax 801e4b: 57 push %edi 801e4c: e8 57 ed ff ff call 800ba8 <memmove> sys_cputs(buf, m); 801e51: 83 c4 08 add $0x8,%esp 801e54: 53 push %ebx 801e55: 57 push %edi 801e56: e8 fc ee ff ff call 800d57 <sys_cputs> for (tot = 0; tot < n; tot += m) { 801e5b: 01 de add %ebx,%esi 801e5d: 83 c4 10 add $0x10,%esp 801e60: 3b 75 10 cmp 0x10(%ebp),%esi 801e63: 72 cc jb 801e31 <devcons_write+0x19> } 801e65: 89 f0 mov %esi,%eax 801e67: 8d 65 f4 lea -0xc(%ebp),%esp 801e6a: 5b pop %ebx 801e6b: 5e pop %esi 801e6c: 5f pop %edi 801e6d: 5d pop %ebp 801e6e: c3 ret 00801e6f <devcons_read>: { 801e6f: 55 push %ebp 801e70: 89 e5 mov %esp,%ebp 801e72: 83 ec 08 sub $0x8,%esp 801e75: b8 00 00 00 00 mov $0x0,%eax if (n == 0) 801e7a: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 801e7e: 75 07 jne 801e87 <devcons_read+0x18> } 801e80: c9 leave 801e81: c3 ret sys_yield(); 801e82: e8 6d ef ff ff call 800df4 <sys_yield> while ((c = sys_cgetc()) == 0) 801e87: e8 e9 ee ff ff call 800d75 <sys_cgetc> 801e8c: 85 c0 test %eax,%eax 801e8e: 74 f2 je 801e82 <devcons_read+0x13> if (c < 0) 801e90: 85 c0 test %eax,%eax 801e92: 78 ec js 801e80 <devcons_read+0x11> if (c == 0x04) // ctl-d is eof 801e94: 83 f8 04 cmp $0x4,%eax 801e97: 74 0c je 801ea5 <devcons_read+0x36> *(char*)vbuf = c; 801e99: 8b 55 0c mov 0xc(%ebp),%edx 801e9c: 88 02 mov %al,(%edx) return 1; 801e9e: b8 01 00 00 00 mov $0x1,%eax 801ea3: eb db jmp 801e80 <devcons_read+0x11> return 0; 801ea5: b8 00 00 00 00 mov $0x0,%eax 801eaa: eb d4 jmp 801e80 <devcons_read+0x11> 00801eac <cputchar>: { 801eac: 55 push %ebp 801ead: 89 e5 mov %esp,%ebp 801eaf: 83 ec 20 sub $0x20,%esp char c = ch; 801eb2: 8b 45 08 mov 0x8(%ebp),%eax 801eb5: 88 45 f7 mov %al,-0x9(%ebp) sys_cputs(&c, 1); 801eb8: 6a 01 push $0x1 801eba: 8d 45 f7 lea -0x9(%ebp),%eax 801ebd: 50 push %eax 801ebe: e8 94 ee ff ff call 800d57 <sys_cputs> } 801ec3: 83 c4 10 add $0x10,%esp 801ec6: c9 leave 801ec7: c3 ret 00801ec8 <getchar>: { 801ec8: 55 push %ebp 801ec9: 89 e5 mov %esp,%ebp 801ecb: 83 ec 1c sub $0x1c,%esp r = read(0, &c, 1); 801ece: 6a 01 push $0x1 801ed0: 8d 45 f7 lea -0x9(%ebp),%eax 801ed3: 50 push %eax 801ed4: 6a 00 push $0x0 801ed6: e8 64 f5 ff ff call 80143f <read> if (r < 0) 801edb: 83 c4 10 add $0x10,%esp 801ede: 85 c0 test %eax,%eax 801ee0: 78 08 js 801eea <getchar+0x22> if (r < 1) 801ee2: 85 c0 test %eax,%eax 801ee4: 7e 06 jle 801eec <getchar+0x24> return c; 801ee6: 0f b6 45 f7 movzbl -0x9(%ebp),%eax } 801eea: c9 leave 801eeb: c3 ret return -E_EOF; 801eec: b8 f8 ff ff ff mov $0xfffffff8,%eax 801ef1: eb f7 jmp 801eea <getchar+0x22> 00801ef3 <iscons>: { 801ef3: 55 push %ebp 801ef4: 89 e5 mov %esp,%ebp 801ef6: 83 ec 20 sub $0x20,%esp if ((r = fd_lookup(fdnum, &fd)) < 0) 801ef9: 8d 45 f4 lea -0xc(%ebp),%eax 801efc: 50 push %eax 801efd: ff 75 08 pushl 0x8(%ebp) 801f00: e8 c9 f2 ff ff call 8011ce <fd_lookup> 801f05: 83 c4 10 add $0x10,%esp 801f08: 85 c0 test %eax,%eax 801f0a: 78 11 js 801f1d <iscons+0x2a> return fd->fd_dev_id == devcons.dev_id; 801f0c: 8b 45 f4 mov -0xc(%ebp),%eax 801f0f: 8b 15 3c 30 80 00 mov 0x80303c,%edx 801f15: 39 10 cmp %edx,(%eax) 801f17: 0f 94 c0 sete %al 801f1a: 0f b6 c0 movzbl %al,%eax } 801f1d: c9 leave 801f1e: c3 ret 00801f1f <opencons>: { 801f1f: 55 push %ebp 801f20: 89 e5 mov %esp,%ebp 801f22: 83 ec 24 sub $0x24,%esp if ((r = fd_alloc(&fd)) < 0) 801f25: 8d 45 f4 lea -0xc(%ebp),%eax 801f28: 50 push %eax 801f29: e8 51 f2 ff ff call 80117f <fd_alloc> 801f2e: 83 c4 10 add $0x10,%esp 801f31: 85 c0 test %eax,%eax 801f33: 78 3a js 801f6f <opencons+0x50> if ((r = sys_page_alloc(0, fd, PTE_P|PTE_U|PTE_W|PTE_SHARE)) < 0) 801f35: 83 ec 04 sub $0x4,%esp 801f38: 68 07 04 00 00 push $0x407 801f3d: ff 75 f4 pushl -0xc(%ebp) 801f40: 6a 00 push $0x0 801f42: e8 cc ee ff ff call 800e13 <sys_page_alloc> 801f47: 83 c4 10 add $0x10,%esp 801f4a: 85 c0 test %eax,%eax 801f4c: 78 21 js 801f6f <opencons+0x50> fd->fd_dev_id = devcons.dev_id; 801f4e: 8b 45 f4 mov -0xc(%ebp),%eax 801f51: 8b 15 3c 30 80 00 mov 0x80303c,%edx 801f57: 89 10 mov %edx,(%eax) fd->fd_omode = O_RDWR; 801f59: 8b 45 f4 mov -0xc(%ebp),%eax 801f5c: c7 40 08 02 00 00 00 movl $0x2,0x8(%eax) return fd2num(fd); 801f63: 83 ec 0c sub $0xc,%esp 801f66: 50 push %eax 801f67: e8 ec f1 ff ff call 801158 <fd2num> 801f6c: 83 c4 10 add $0x10,%esp } 801f6f: c9 leave 801f70: c3 ret 00801f71 <ipc_recv>: // If 'pg' is null, pass sys_ipc_recv a value that it will understand // as meaning "no page". (Zero is not the right value, since that's // a perfectly valid place to map a page.) int32_t ipc_recv(envid_t *from_env_store, void *pg, int *perm_store) { 801f71: 55 push %ebp 801f72: 89 e5 mov %esp,%ebp 801f74: 56 push %esi 801f75: 53 push %ebx 801f76: 8b 75 08 mov 0x8(%ebp),%esi 801f79: 8b 45 0c mov 0xc(%ebp),%eax 801f7c: 8b 5d 10 mov 0x10(%ebp),%ebx // LAB 4: Your code here. if (pg == NULL) { 801f7f: 85 c0 test %eax,%eax pg = (void *)-1; 801f81: ba ff ff ff ff mov $0xffffffff,%edx 801f86: 0f 44 c2 cmove %edx,%eax } int r = sys_ipc_recv(pg); 801f89: 83 ec 0c sub $0xc,%esp 801f8c: 50 push %eax 801f8d: e8 31 f0 ff ff call 800fc3 <sys_ipc_recv> if (r < 0) { //系统调用失败 801f92: 83 c4 10 add $0x10,%esp 801f95: 85 c0 test %eax,%eax 801f97: 78 2b js 801fc4 <ipc_recv+0x53> if (from_env_store) *from_env_store = 0; if (perm_store) *perm_store = 0; return r; } if (from_env_store) 801f99: 85 f6 test %esi,%esi 801f9b: 74 0a je 801fa7 <ipc_recv+0x36> *from_env_store = thisenv->env_ipc_from; 801f9d: a1 20 44 80 00 mov 0x804420,%eax 801fa2: 8b 40 74 mov 0x74(%eax),%eax 801fa5: 89 06 mov %eax,(%esi) if (perm_store) 801fa7: 85 db test %ebx,%ebx 801fa9: 74 0a je 801fb5 <ipc_recv+0x44> *perm_store = thisenv->env_ipc_perm; 801fab: a1 20 44 80 00 mov 0x804420,%eax 801fb0: 8b 40 78 mov 0x78(%eax),%eax 801fb3: 89 03 mov %eax,(%ebx) return thisenv->env_ipc_value; 801fb5: a1 20 44 80 00 mov 0x804420,%eax 801fba: 8b 40 70 mov 0x70(%eax),%eax } 801fbd: 8d 65 f8 lea -0x8(%ebp),%esp 801fc0: 5b pop %ebx 801fc1: 5e pop %esi 801fc2: 5d pop %ebp 801fc3: c3 ret if (from_env_store) *from_env_store = 0; 801fc4: 85 f6 test %esi,%esi 801fc6: 74 06 je 801fce <ipc_recv+0x5d> 801fc8: c7 06 00 00 00 00 movl $0x0,(%esi) if (perm_store) *perm_store = 0; 801fce: 85 db test %ebx,%ebx 801fd0: 74 eb je 801fbd <ipc_recv+0x4c> 801fd2: c7 03 00 00 00 00 movl $0x0,(%ebx) 801fd8: eb e3 jmp 801fbd <ipc_recv+0x4c> 00801fda <ipc_send>: // Use sys_yield() to be CPU-friendly. // If 'pg' is null, pass sys_ipc_try_send a value that it will understand // as meaning "no page". (Zero is not the right value.) void ipc_send(envid_t to_env, uint32_t val, void *pg, int perm) { 801fda: 55 push %ebp 801fdb: 89 e5 mov %esp,%ebp 801fdd: 57 push %edi 801fde: 56 push %esi 801fdf: 53 push %ebx 801fe0: 83 ec 0c sub $0xc,%esp 801fe3: 8b 7d 08 mov 0x8(%ebp),%edi 801fe6: 8b 75 0c mov 0xc(%ebp),%esi 801fe9: 8b 5d 10 mov 0x10(%ebp),%ebx // LAB 4: Your code here. if (pg == NULL) { 801fec: 85 db test %ebx,%ebx pg = (void *)-1; 801fee: b8 ff ff ff ff mov $0xffffffff,%eax 801ff3: 0f 44 d8 cmove %eax,%ebx } int r; while(1) { r = sys_ipc_try_send(to_env, val, pg, perm); 801ff6: ff 75 14 pushl 0x14(%ebp) 801ff9: 53 push %ebx 801ffa: 56 push %esi 801ffb: 57 push %edi 801ffc: e8 9f ef ff ff call 800fa0 <sys_ipc_try_send> if (r == 0) { //发送成功 802001: 83 c4 10 add $0x10,%esp 802004: 85 c0 test %eax,%eax 802006: 74 1e je 802026 <ipc_send+0x4c> return; } else if (r == -E_IPC_NOT_RECV) { //接收进程没有准备好 802008: 83 f8 f9 cmp $0xfffffff9,%eax 80200b: 75 07 jne 802014 <ipc_send+0x3a> sys_yield(); 80200d: e8 e2 ed ff ff call 800df4 <sys_yield> r = sys_ipc_try_send(to_env, val, pg, perm); 802012: eb e2 jmp 801ff6 <ipc_send+0x1c> } else { //其它错误 panic("ipc_send():%e", r); 802014: 50 push %eax 802015: 68 da 27 80 00 push $0x8027da 80201a: 6a 41 push $0x41 80201c: 68 e8 27 80 00 push $0x8027e8 802021: e8 fa e2 ff ff call 800320 <_panic> } } } 802026: 8d 65 f4 lea -0xc(%ebp),%esp 802029: 5b pop %ebx 80202a: 5e pop %esi 80202b: 5f pop %edi 80202c: 5d pop %ebp 80202d: c3 ret 0080202e <ipc_find_env>: // Find the first environment of the given type. We'll use this to // find special environments. // Returns 0 if no such environment exists. envid_t ipc_find_env(enum EnvType type) { 80202e: 55 push %ebp 80202f: 89 e5 mov %esp,%ebp 802031: 8b 4d 08 mov 0x8(%ebp),%ecx int i; for (i = 0; i < NENV; i++) 802034: b8 00 00 00 00 mov $0x0,%eax if (envs[i].env_type == type) 802039: 6b d0 7c imul $0x7c,%eax,%edx 80203c: 81 c2 00 00 c0 ee add $0xeec00000,%edx 802042: 8b 52 50 mov 0x50(%edx),%edx 802045: 39 ca cmp %ecx,%edx 802047: 74 11 je 80205a <ipc_find_env+0x2c> for (i = 0; i < NENV; i++) 802049: 83 c0 01 add $0x1,%eax 80204c: 3d 00 04 00 00 cmp $0x400,%eax 802051: 75 e6 jne 802039 <ipc_find_env+0xb> return envs[i].env_id; return 0; 802053: b8 00 00 00 00 mov $0x0,%eax 802058: eb 0b jmp 802065 <ipc_find_env+0x37> return envs[i].env_id; 80205a: 6b c0 7c imul $0x7c,%eax,%eax 80205d: 05 00 00 c0 ee add $0xeec00000,%eax 802062: 8b 40 48 mov 0x48(%eax),%eax } 802065: 5d pop %ebp 802066: c3 ret 00802067 <pageref>: #include <inc/lib.h> int pageref(void *v) { 802067: 55 push %ebp 802068: 89 e5 mov %esp,%ebp 80206a: 8b 55 08 mov 0x8(%ebp),%edx pte_t pte; if (!(uvpd[PDX(v)] & PTE_P)) 80206d: 89 d0 mov %edx,%eax 80206f: c1 e8 16 shr $0x16,%eax 802072: 8b 0c 85 00 d0 7b ef mov -0x10843000(,%eax,4),%ecx return 0; 802079: b8 00 00 00 00 mov $0x0,%eax if (!(uvpd[PDX(v)] & PTE_P)) 80207e: f6 c1 01 test $0x1,%cl 802081: 74 1d je 8020a0 <pageref+0x39> pte = uvpt[PGNUM(v)]; 802083: c1 ea 0c shr $0xc,%edx 802086: 8b 14 95 00 00 40 ef mov -0x10c00000(,%edx,4),%edx if (!(pte & PTE_P)) 80208d: f6 c2 01 test $0x1,%dl 802090: 74 0e je 8020a0 <pageref+0x39> return 0; return pages[PGNUM(pte)].pp_ref; 802092: c1 ea 0c shr $0xc,%edx 802095: 0f b7 04 d5 04 00 00 movzwl -0x10fffffc(,%edx,8),%eax 80209c: ef 80209d: 0f b7 c0 movzwl %ax,%eax } 8020a0: 5d pop %ebp 8020a1: c3 ret 8020a2: 66 90 xchg %ax,%ax 8020a4: 66 90 xchg %ax,%ax 8020a6: 66 90 xchg %ax,%ax 8020a8: 66 90 xchg %ax,%ax 8020aa: 66 90 xchg %ax,%ax 8020ac: 66 90 xchg %ax,%ax 8020ae: 66 90 xchg %ax,%ax 008020b0 <__udivdi3>: 8020b0: 55 push %ebp 8020b1: 57 push %edi 8020b2: 56 push %esi 8020b3: 53 push %ebx 8020b4: 83 ec 1c sub $0x1c,%esp 8020b7: 8b 54 24 3c mov 0x3c(%esp),%edx 8020bb: 8b 6c 24 30 mov 0x30(%esp),%ebp 8020bf: 8b 74 24 34 mov 0x34(%esp),%esi 8020c3: 8b 5c 24 38 mov 0x38(%esp),%ebx 8020c7: 85 d2 test %edx,%edx 8020c9: 75 35 jne 802100 <__udivdi3+0x50> 8020cb: 39 f3 cmp %esi,%ebx 8020cd: 0f 87 bd 00 00 00 ja 802190 <__udivdi3+0xe0> 8020d3: 85 db test %ebx,%ebx 8020d5: 89 d9 mov %ebx,%ecx 8020d7: 75 0b jne 8020e4 <__udivdi3+0x34> 8020d9: b8 01 00 00 00 mov $0x1,%eax 8020de: 31 d2 xor %edx,%edx 8020e0: f7 f3 div %ebx 8020e2: 89 c1 mov %eax,%ecx 8020e4: 31 d2 xor %edx,%edx 8020e6: 89 f0 mov %esi,%eax 8020e8: f7 f1 div %ecx 8020ea: 89 c6 mov %eax,%esi 8020ec: 89 e8 mov %ebp,%eax 8020ee: 89 f7 mov %esi,%edi 8020f0: f7 f1 div %ecx 8020f2: 89 fa mov %edi,%edx 8020f4: 83 c4 1c add $0x1c,%esp 8020f7: 5b pop %ebx 8020f8: 5e pop %esi 8020f9: 5f pop %edi 8020fa: 5d pop %ebp 8020fb: c3 ret 8020fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 802100: 39 f2 cmp %esi,%edx 802102: 77 7c ja 802180 <__udivdi3+0xd0> 802104: 0f bd fa bsr %edx,%edi 802107: 83 f7 1f xor $0x1f,%edi 80210a: 0f 84 98 00 00 00 je 8021a8 <__udivdi3+0xf8> 802110: 89 f9 mov %edi,%ecx 802112: b8 20 00 00 00 mov $0x20,%eax 802117: 29 f8 sub %edi,%eax 802119: d3 e2 shl %cl,%edx 80211b: 89 54 24 08 mov %edx,0x8(%esp) 80211f: 89 c1 mov %eax,%ecx 802121: 89 da mov %ebx,%edx 802123: d3 ea shr %cl,%edx 802125: 8b 4c 24 08 mov 0x8(%esp),%ecx 802129: 09 d1 or %edx,%ecx 80212b: 89 f2 mov %esi,%edx 80212d: 89 4c 24 08 mov %ecx,0x8(%esp) 802131: 89 f9 mov %edi,%ecx 802133: d3 e3 shl %cl,%ebx 802135: 89 c1 mov %eax,%ecx 802137: d3 ea shr %cl,%edx 802139: 89 f9 mov %edi,%ecx 80213b: 89 5c 24 0c mov %ebx,0xc(%esp) 80213f: d3 e6 shl %cl,%esi 802141: 89 eb mov %ebp,%ebx 802143: 89 c1 mov %eax,%ecx 802145: d3 eb shr %cl,%ebx 802147: 09 de or %ebx,%esi 802149: 89 f0 mov %esi,%eax 80214b: f7 74 24 08 divl 0x8(%esp) 80214f: 89 d6 mov %edx,%esi 802151: 89 c3 mov %eax,%ebx 802153: f7 64 24 0c mull 0xc(%esp) 802157: 39 d6 cmp %edx,%esi 802159: 72 0c jb 802167 <__udivdi3+0xb7> 80215b: 89 f9 mov %edi,%ecx 80215d: d3 e5 shl %cl,%ebp 80215f: 39 c5 cmp %eax,%ebp 802161: 73 5d jae 8021c0 <__udivdi3+0x110> 802163: 39 d6 cmp %edx,%esi 802165: 75 59 jne 8021c0 <__udivdi3+0x110> 802167: 8d 43 ff lea -0x1(%ebx),%eax 80216a: 31 ff xor %edi,%edi 80216c: 89 fa mov %edi,%edx 80216e: 83 c4 1c add $0x1c,%esp 802171: 5b pop %ebx 802172: 5e pop %esi 802173: 5f pop %edi 802174: 5d pop %ebp 802175: c3 ret 802176: 8d 76 00 lea 0x0(%esi),%esi 802179: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 802180: 31 ff xor %edi,%edi 802182: 31 c0 xor %eax,%eax 802184: 89 fa mov %edi,%edx 802186: 83 c4 1c add $0x1c,%esp 802189: 5b pop %ebx 80218a: 5e pop %esi 80218b: 5f pop %edi 80218c: 5d pop %ebp 80218d: c3 ret 80218e: 66 90 xchg %ax,%ax 802190: 31 ff xor %edi,%edi 802192: 89 e8 mov %ebp,%eax 802194: 89 f2 mov %esi,%edx 802196: f7 f3 div %ebx 802198: 89 fa mov %edi,%edx 80219a: 83 c4 1c add $0x1c,%esp 80219d: 5b pop %ebx 80219e: 5e pop %esi 80219f: 5f pop %edi 8021a0: 5d pop %ebp 8021a1: c3 ret 8021a2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 8021a8: 39 f2 cmp %esi,%edx 8021aa: 72 06 jb 8021b2 <__udivdi3+0x102> 8021ac: 31 c0 xor %eax,%eax 8021ae: 39 eb cmp %ebp,%ebx 8021b0: 77 d2 ja 802184 <__udivdi3+0xd4> 8021b2: b8 01 00 00 00 mov $0x1,%eax 8021b7: eb cb jmp 802184 <__udivdi3+0xd4> 8021b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8021c0: 89 d8 mov %ebx,%eax 8021c2: 31 ff xor %edi,%edi 8021c4: eb be jmp 802184 <__udivdi3+0xd4> 8021c6: 66 90 xchg %ax,%ax 8021c8: 66 90 xchg %ax,%ax 8021ca: 66 90 xchg %ax,%ax 8021cc: 66 90 xchg %ax,%ax 8021ce: 66 90 xchg %ax,%ax 008021d0 <__umoddi3>: 8021d0: 55 push %ebp 8021d1: 57 push %edi 8021d2: 56 push %esi 8021d3: 53 push %ebx 8021d4: 83 ec 1c sub $0x1c,%esp 8021d7: 8b 6c 24 3c mov 0x3c(%esp),%ebp 8021db: 8b 74 24 30 mov 0x30(%esp),%esi 8021df: 8b 5c 24 34 mov 0x34(%esp),%ebx 8021e3: 8b 7c 24 38 mov 0x38(%esp),%edi 8021e7: 85 ed test %ebp,%ebp 8021e9: 89 f0 mov %esi,%eax 8021eb: 89 da mov %ebx,%edx 8021ed: 75 19 jne 802208 <__umoddi3+0x38> 8021ef: 39 df cmp %ebx,%edi 8021f1: 0f 86 b1 00 00 00 jbe 8022a8 <__umoddi3+0xd8> 8021f7: f7 f7 div %edi 8021f9: 89 d0 mov %edx,%eax 8021fb: 31 d2 xor %edx,%edx 8021fd: 83 c4 1c add $0x1c,%esp 802200: 5b pop %ebx 802201: 5e pop %esi 802202: 5f pop %edi 802203: 5d pop %ebp 802204: c3 ret 802205: 8d 76 00 lea 0x0(%esi),%esi 802208: 39 dd cmp %ebx,%ebp 80220a: 77 f1 ja 8021fd <__umoddi3+0x2d> 80220c: 0f bd cd bsr %ebp,%ecx 80220f: 83 f1 1f xor $0x1f,%ecx 802212: 89 4c 24 04 mov %ecx,0x4(%esp) 802216: 0f 84 b4 00 00 00 je 8022d0 <__umoddi3+0x100> 80221c: b8 20 00 00 00 mov $0x20,%eax 802221: 89 c2 mov %eax,%edx 802223: 8b 44 24 04 mov 0x4(%esp),%eax 802227: 29 c2 sub %eax,%edx 802229: 89 c1 mov %eax,%ecx 80222b: 89 f8 mov %edi,%eax 80222d: d3 e5 shl %cl,%ebp 80222f: 89 d1 mov %edx,%ecx 802231: 89 54 24 0c mov %edx,0xc(%esp) 802235: d3 e8 shr %cl,%eax 802237: 09 c5 or %eax,%ebp 802239: 8b 44 24 04 mov 0x4(%esp),%eax 80223d: 89 c1 mov %eax,%ecx 80223f: d3 e7 shl %cl,%edi 802241: 89 d1 mov %edx,%ecx 802243: 89 7c 24 08 mov %edi,0x8(%esp) 802247: 89 df mov %ebx,%edi 802249: d3 ef shr %cl,%edi 80224b: 89 c1 mov %eax,%ecx 80224d: 89 f0 mov %esi,%eax 80224f: d3 e3 shl %cl,%ebx 802251: 89 d1 mov %edx,%ecx 802253: 89 fa mov %edi,%edx 802255: d3 e8 shr %cl,%eax 802257: 0f b6 4c 24 04 movzbl 0x4(%esp),%ecx 80225c: 09 d8 or %ebx,%eax 80225e: f7 f5 div %ebp 802260: d3 e6 shl %cl,%esi 802262: 89 d1 mov %edx,%ecx 802264: f7 64 24 08 mull 0x8(%esp) 802268: 39 d1 cmp %edx,%ecx 80226a: 89 c3 mov %eax,%ebx 80226c: 89 d7 mov %edx,%edi 80226e: 72 06 jb 802276 <__umoddi3+0xa6> 802270: 75 0e jne 802280 <__umoddi3+0xb0> 802272: 39 c6 cmp %eax,%esi 802274: 73 0a jae 802280 <__umoddi3+0xb0> 802276: 2b 44 24 08 sub 0x8(%esp),%eax 80227a: 19 ea sbb %ebp,%edx 80227c: 89 d7 mov %edx,%edi 80227e: 89 c3 mov %eax,%ebx 802280: 89 ca mov %ecx,%edx 802282: 0f b6 4c 24 0c movzbl 0xc(%esp),%ecx 802287: 29 de sub %ebx,%esi 802289: 19 fa sbb %edi,%edx 80228b: 8b 5c 24 04 mov 0x4(%esp),%ebx 80228f: 89 d0 mov %edx,%eax 802291: d3 e0 shl %cl,%eax 802293: 89 d9 mov %ebx,%ecx 802295: d3 ee shr %cl,%esi 802297: d3 ea shr %cl,%edx 802299: 09 f0 or %esi,%eax 80229b: 83 c4 1c add $0x1c,%esp 80229e: 5b pop %ebx 80229f: 5e pop %esi 8022a0: 5f pop %edi 8022a1: 5d pop %ebp 8022a2: c3 ret 8022a3: 90 nop 8022a4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8022a8: 85 ff test %edi,%edi 8022aa: 89 f9 mov %edi,%ecx 8022ac: 75 0b jne 8022b9 <__umoddi3+0xe9> 8022ae: b8 01 00 00 00 mov $0x1,%eax 8022b3: 31 d2 xor %edx,%edx 8022b5: f7 f7 div %edi 8022b7: 89 c1 mov %eax,%ecx 8022b9: 89 d8 mov %ebx,%eax 8022bb: 31 d2 xor %edx,%edx 8022bd: f7 f1 div %ecx 8022bf: 89 f0 mov %esi,%eax 8022c1: f7 f1 div %ecx 8022c3: e9 31 ff ff ff jmp 8021f9 <__umoddi3+0x29> 8022c8: 90 nop 8022c9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8022d0: 39 dd cmp %ebx,%ebp 8022d2: 72 08 jb 8022dc <__umoddi3+0x10c> 8022d4: 39 f7 cmp %esi,%edi 8022d6: 0f 87 21 ff ff ff ja 8021fd <__umoddi3+0x2d> 8022dc: 89 da mov %ebx,%edx 8022de: 89 f0 mov %esi,%eax 8022e0: 29 f8 sub %edi,%eax 8022e2: 19 ea sbb %ebp,%edx 8022e4: e9 14 ff ff ff jmp 8021fd <__umoddi3+0x2d>
40.326393
91
0.465658
3a80418cf77cec5c4797a6e8a9e0905906c9a9af
605
asm
Assembly
oeis/037/A037462.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/037/A037462.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/037/A037462.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A037462: a(n) = Sum_{i = 0..m} d(i)*8^i, where Sum_{i = 0..m} d(i)*4^i is the base 4 representation of n. ; Submitted by Simon Strandgaard ; 0,1,2,3,8,9,10,11,16,17,18,19,24,25,26,27,64,65,66,67,72,73,74,75,80,81,82,83,88,89,90,91,128,129,130,131,136,137,138,139,144,145,146,147,152,153,154,155,192,193,194,195,200,201,202,203,208,209,210,211,216,217,218,219,512,513,514,515,520,521,522,523,528,529,530,531,536,537,538,539,576,577,578,579,584,585,586,587,592,593,594,595,600,601,602,603,640,641,642,643 mov $3,1 lpb $0 mov $2,$0 div $0,4 mod $2,4 mul $2,$3 add $1,$2 mul $3,8 lpe mov $0,$1
40.333333
363
0.659504
356e064f3766447e145e2887c969dacdb23b9829
303
asm
Assembly
programs/oeis/102/A102572.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/102/A102572.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/102/A102572.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A102572: a(n) = floor(log_4(n)). ; 0,0,0,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,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,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3 add $0,1 lpb $0,$0 div $0,4 add $2,1 lpe mov $1,$2
30.3
211
0.50495
ce817b02be1b701f4a6b7f064cd650d938d93951
402
asm
Assembly
colors.asm
b3lial/c64-demo1
c2ac82c3dddc4a1f07f61c3a532fb7d1bd0b4bd8
[ "BSD-2-Clause" ]
null
null
null
colors.asm
b3lial/c64-demo1
c2ac82c3dddc4a1f07f61c3a532fb7d1bd0b4bd8
[ "BSD-2-Clause" ]
null
null
null
colors.asm
b3lial/c64-demo1
c2ac82c3dddc4a1f07f61c3a532fb7d1bd0b4bd8
[ "BSD-2-Clause" ]
null
null
null
.const BLACK = $0 .const WHITE = $1 .const RED = $2 .const CYAN = $3 .const PURPLE = $4 .const GREEN = $5 .const BLUE = $6 .const YELLOW = $7 .const ORANGE = $8 .const BROWN = $9 .const LIGHT_RED = $A .const DARK_GREY = $B .const GREY = $C .const LIGHT_GREEN = $D .const LIGHT_BLUE = $E .const LIGHT_GREY = $F
22.333333
24
0.492537
7215b68e23a48b10afc431add51885a9b1584fd6
611
asm
Assembly
programs/oeis/138/A138383.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/138/A138383.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/138/A138383.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A138383: If prime(i) = i-th prime, a(n) = prime(n)+1 + prime(n)+2 + ... + prime(n+1). a(0) = 3 by convention. ; 3,3,9,13,38,25,62,37,86,159,61,207,158,85,182,303,339,121,387,278,145,459,326,519,748,398,205,422,217,446,1687,518,807,277,1445,301,927,963,662,1023,1059,361,1865,385,782,397,2466,2610,902,457,926,1419,481,2465,1527 mov $3,2 mov $6,$0 lpb $3 mov $0,$6 sub $3,1 add $0,$3 cal $0,299763 ; a(n) = 1 + A182986(n). mov $5,$0 sub $5,2 mul $5,$0 add $0,$5 mov $2,$3 mov $4,$0 lpb $2 mov $1,$4 sub $2,1 lpe lpe lpb $6 sub $1,$4 mov $6,0 lpe sub $1,6 div $1,2 add $1,3
21.068966
217
0.579378
84a51ed1b9d476812b14dcc0dff80aaa3433d605
1,013
asm
Assembly
programs/oeis/091/A091194.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/091/A091194.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/091/A091194.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A091194: Number of abundant numbers <= n. ; 0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,2,2,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,7,7,8,8,8,8,8,8,9,9,9,9,9,9,10,10,11,11,11,11,12,12,12,12,12,12,13,13,13,13,14,14,15,15,15,15,15,15,16,16,17,17,17,17,18,18,18,18,19,19,20,20,20,20,20,20,21,21,21,21,22,22,23,23,24,24,24,24,25,25,25,25,26,26,27,27,27,27,27,27,28,28,28,28,28,28,29,29,29,29,29,29,30,30,30,30,30,30,31,31,32,32,32,32,33,33,33,33,33,33,34,34,34,34,34,34,35,35,35,35,36,36,37,37,37,37,37,37,38,38,38,38,38,38,39,39,40,40,40,40,41,41,41,41,41,41,42,42,42,42,42,42,43,43,43,43,44,44,45,45,46,46,46,46,47,47,47,47,48,48,49,49,49,49,49,49,50,50,50,50,51,51,52,52,53,53,53,53,54,54,54,54,54,54,55,55,55,55,55,55,56,56,56,56,56,56,57,57,57,57,57 mov $2,$0 mov $4,$0 lpb $2,1 mov $0,$4 sub $2,1 sub $0,$2 cal $0,294935 ; Characteristic function for nonabundant numbers (A263837): a(n) = 1 if A001065(n) <= n, 0 otherwise. sub $0,6 pow $0,16 mul $0,4 mov $3,$0 div $3,10674088067324 add $1,$3 lpe
56.277778
698
0.6308
d7f47036b0371f67346092acb6169f34129acbb1
62,288
asm
Assembly
src/sound/song057restored.asm
MusicTheorist/Mother2GbaTranslation
70de3975a3284c4002a33e8ef8c20e4c2b039037
[ "MIT" ]
1
2021-04-18T04:26:52.000Z
2021-04-18T04:26:52.000Z
src/sound/song057restored.asm
MusicTheorist/Mother2GbaTranslation
70de3975a3284c4002a33e8ef8c20e4c2b039037
[ "MIT" ]
null
null
null
src/sound/song057restored.asm
MusicTheorist/Mother2GbaTranslation
70de3975a3284c4002a33e8ef8c20e4c2b039037
[ "MIT" ]
null
null
null
song057restored_pri equ 0 song057restored_rev equ 0 song057restored_mvl equ 127 song057restored_key equ 0 song057restored_tbs equ 2 song057restored_exg equ 0 song057restored_cmp equ 1 .align 4 ;**************** Track 1 (Midi-Chn.1) ****************; @song057restored_1: .byte KEYSH , song057restored_key+1 ; 000 ---------------------------------------- .byte TEMPO , 48*song057restored_tbs/2 .byte VOICE , 33 .byte VOL , 55*song057restored_mvl/mxv .byte PAN , c_v+34 .byte TUNE , c_v-22 .byte BENDR , 6 .byte W24 .byte N68 , Cn1 , v116 .byte W72 .byte PAN , c_v-61 .byte N68 , Gn0 .byte W72 .byte PAN , c_v+49 .byte N22 , Ds1 .byte W24 @song057restored_1_B1: ; 001 ---------------------------------------- .byte W01 .byte BEND , c_v+0 .byte W12 .byte VOL , 54*song057restored_mvl/mxv .byte W12 ; 24 .byte N68 , Cn1 , v116 .byte W01 ; 25 .byte VOL , 53*song057restored_mvl/mxv .byte W12 .byte 52*song057restored_mvl/mxv .byte W13 ; 50 .byte 51*song057restored_mvl/mxv .byte W12 .byte 50*song057restored_mvl/mxv .byte W13 ; 75 .byte 49*song057restored_mvl/mxv .byte W12 ; 87 .byte 48*song057restored_mvl/mxv .byte W09 ; 96 .byte N68 , Gn0 .byte W04 ; 100 .byte VOL , 47*song057restored_mvl/mxv .byte W12 .byte 46*song057restored_mvl/mxv .byte W13 ; 125 .byte 45*song057restored_mvl/mxv .byte W12 .byte 44*song057restored_mvl/mxv .byte W13 ; 150 .byte 43*song057restored_mvl/mxv .byte W12 ; 162 .byte 42*song057restored_mvl/mxv .byte W06 ; 168 .byte N22 , Ds1 .byte W07 ; 175 .byte VOL , 41*song057restored_mvl/mxv .byte W12 ; 187 .byte 40*song057restored_mvl/mxv .byte W04 ; 191 ; 002 ---------------------------------------- .byte W09 ; 200 .byte 39*song057restored_mvl/mxv .byte W12 ; 212 .byte 38*song057restored_mvl/mxv .byte W04 ; 216 .byte N68 , Cn1 .byte W09 ; 225 .byte VOL , 37*song057restored_mvl/mxv .byte W12 .byte 36*song057restored_mvl/mxv .byte W13 ; 250 .byte 35*song057restored_mvl/mxv .byte W36 .byte W02 .byte N68 , Gn0 .byte W72 ;360 .byte N22 , Ds1 .byte W23 ;383 ; 003 ---------------------------------------- @song057restored_1_003: .byte W24 .byte W01 .byte N68 , Cn1 , v116 .byte W72 .byte Gn0 .byte W72 .byte N22 , Ds1 .byte W23 .byte PEND ; 004 ---------------------------------------- .byte PATT .word @song057restored_1_003 ; 005 ---------------------------------------- .byte W02 .byte VOL , 25*song057restored_mvl/mxv .byte W24 .byte N68 , Cn1 , v116 .byte W72 .byte VOL , 15*song057restored_mvl/mxv .byte N68 , Gn0 .byte W72 .byte N22 , Ds1 .byte W22 ; 006 ---------------------------------------- .byte W02 .byte VOL , 15*song057restored_mvl/mxv .byte W02 .byte 16*song057restored_mvl/mxv .byte W06 .byte 17*song057restored_mvl/mxv .byte W06 .byte 18*song057restored_mvl/mxv .byte W06 .byte 19*song057restored_mvl/mxv .byte W04 .byte N68 , Cn1 .byte W02 .byte VOL , 20*song057restored_mvl/mxv .byte W06 .byte 21*song057restored_mvl/mxv .byte W06 .byte 22*song057restored_mvl/mxv .byte W06 .byte 23*song057restored_mvl/mxv .byte W06 .byte 24*song057restored_mvl/mxv .byte W06 .byte 25*song057restored_mvl/mxv .byte W06 .byte 26*song057restored_mvl/mxv .byte W06 .byte 27*song057restored_mvl/mxv .byte W06 .byte 28*song057restored_mvl/mxv .byte W06 .byte 29*song057restored_mvl/mxv .byte W06 .byte 30*song057restored_mvl/mxv .byte W06 .byte 31*song057restored_mvl/mxv .byte W04 .byte N68 , Gn0 .byte W02 .byte VOL , 32*song057restored_mvl/mxv .byte W06 .byte 33*song057restored_mvl/mxv .byte W06 .byte 34*song057restored_mvl/mxv .byte W06 .byte 35*song057restored_mvl/mxv .byte W52 .byte N22 , Fs1 .byte W22 ; 007 ---------------------------------------- .byte W02 .byte VOL , 60*song057restored_mvl/mxv .byte BEND , c_v+0 .byte TIE , En1 .byte W04 .byte BEND , c_v-1 .byte W04 .byte c_v-2 .byte W04 .byte c_v-3 .byte W03 ; 15 elapsed .byte c_v-4 .byte W04 .byte c_v-5 .byte W04 .byte c_v-6 .byte W04 .byte c_v-7 .byte W03 ; 30 .byte c_v-8 .byte W04 .byte c_v-9 .byte W04 .byte c_v-10 .byte W04 .byte c_v-11 .byte W03 ; 45 .byte c_v-12 .byte W04 .byte c_v-13 .byte W04 .byte c_v-14 .byte W04 .byte c_v-15 .byte W03 ; 60 .byte c_v-16 .byte W04 .byte c_v-17 .byte W04 .byte c_v-18 .byte W04 .byte c_v-19 .byte W03 ; 75 .byte c_v-20 .byte W04 .byte c_v-21 .byte W04 .byte c_v-22 .byte W04 .byte c_v-23 .byte W03 ; 90 .byte c_v-24 .byte W04 .byte c_v-25 .byte W04 .byte c_v-26 .byte W04 .byte c_v-27 .byte W03 ; 105 .byte c_v-28 .byte W04 .byte c_v-29 .byte W04 .byte c_v-30 .byte W04 .byte c_v-31 .byte W03 ; 120 .byte c_v-32 .byte W04 .byte c_v-33 .byte W04 .byte c_v-34 .byte W04 .byte c_v-35 .byte W03 ; 135 .byte c_v-36 .byte W04 .byte c_v-37 .byte W04 .byte c_v-38 .byte W04 .byte c_v-39 .byte W03 ; 150 .byte c_v-40 .byte W04 .byte c_v-41 .byte W04 .byte c_v-42 .byte W04 .byte c_v-43 .byte W03 ; 165 .byte c_v-44 .byte W04 .byte c_v-45 .byte W04 .byte c_v-46 .byte W04 .byte c_v-47 .byte W03 ; 180 .byte c_v-48 .byte W04 ; 184 .byte c_v-49 .byte W04 ; 188 .byte c_v-50 .byte W02 ; 190 ; 008 ---------------------------------------- .byte W02 ; 192 .byte c_v-51 .byte W03 ; 195 .byte c_v-52 .byte W04 .byte c_v-53 .byte W04 .byte c_v-54 .byte W04 .byte c_v-55 .byte W03 ; 210 .byte c_v-56 .byte W04 .byte c_v-57 .byte W04 .byte c_v-58 .byte W04 .byte c_v-59 .byte W03 ; 225 .byte c_v-60 .byte W04 .byte c_v-61 .byte W04 .byte c_v-62 .byte W04 .byte c_v-63 .byte W03 ; 240 .byte c_v-64 .byte W44 .byte W02 .byte EOT .byte W03 .byte VOICE , 33 .byte VOL , 55*song057restored_mvl/mxv .byte PAN , c_v+34 .byte W24 .byte BEND , c_v+0 .byte N68 , Cn1 .byte W04 .byte BEND , c_v-1 .byte W04 .byte c_v-2 .byte W04 .byte c_v-3 .byte W03 ; 15 elapsed .byte c_v-4 .byte W04 .byte c_v-5 .byte W04 .byte c_v-6 .byte W04 .byte c_v-7 .byte W03 ; 30 .byte c_v-8 .byte W04 .byte c_v-9 .byte W04 .byte c_v-10 .byte W04 .byte c_v-11 .byte W03 ; 45 .byte c_v-12 .byte W04 .byte c_v-13 .byte W04 .byte c_v-14 .byte W04 .byte c_v-15 .byte W03 ; 60 .byte c_v-16 .byte W04 ; 64 .byte c_v-17 .byte W04 ; 68 .byte W01 ; 009 ---------------------------------------- .byte W03 .byte PAN , c_v-58 .byte BEND , c_v+0 .byte N68 , Gn0 .byte W04 .byte BEND , c_v-1 .byte W04 .byte c_v-2 .byte W04 .byte c_v-3 .byte W03 ; 15 elapsed .byte c_v-4 .byte W04 .byte c_v-5 .byte W04 .byte c_v-6 .byte W04 .byte c_v-7 .byte W03 ; 30 .byte c_v-8 .byte W04 .byte c_v-9 .byte W04 .byte c_v-10 .byte W04 .byte c_v-11 .byte W03 ; 45 .byte c_v-12 .byte W04 .byte c_v-13 .byte W04 .byte c_v-14 .byte W04 .byte c_v-15 .byte W03 ; 60 .byte c_v-16 .byte W04 ; 64 .byte c_v-17 .byte W08 ; 72 .byte PAN , c_v+58 .byte BEND , c_v+0 .byte N22 , Ds1 .byte W04 .byte BEND , c_v-1 .byte W04 .byte c_v-2 .byte W04 .byte c_v-3 .byte W03 ; 15 elapsed .byte c_v-4 .byte W04 ; 19 .byte c_v-5 .byte W03 .byte GOTO .word @song057restored_1_B1 @song057restored_1_B2: .byte FINE ;**************** Track 2 (Midi-Chn.2) ****************; @song057restored_2: .byte KEYSH , song057restored_key-8 ; 000 ---------------------------------------- .byte VOICE , 35 .byte VOL , 10*song057restored_mvl/mxv .byte PAN , c_v+0 .byte LFOS , 18 .byte MOD , 14 ; Compromise. Vibrato doesn't work quite like pitch mod and I'm lazy .byte W96 .byte W96 ; 001 ---------------------------------------- .byte W01 .byte N68 , Bn0 , v116 .byte W03 .byte VOL , 11*song057restored_mvl/mxv .byte W02 ; 5 .byte 12*song057restored_mvl/mxv .byte W03 .byte 13*song057restored_mvl/mxv .byte W02 ; 10 .byte 14*song057restored_mvl/mxv .byte W03 .byte 15*song057restored_mvl/mxv .byte W02 ; 15 .byte 16*song057restored_mvl/mxv .byte W03 .byte 17*song057restored_mvl/mxv .byte W02 ; 20 .byte 18*song057restored_mvl/mxv .byte W03 .byte 19*song057restored_mvl/mxv .byte W02 ; 25 .byte 20*song057restored_mvl/mxv .byte W03 .byte 21*song057restored_mvl/mxv .byte W02 ; 30 .byte 22*song057restored_mvl/mxv .byte W03 .byte 23*song057restored_mvl/mxv .byte W02 ; 35 .byte 24*song057restored_mvl/mxv .byte W03 .byte 25*song057restored_mvl/mxv .byte W02 ; 40 .byte 26*song057restored_mvl/mxv .byte W03 .byte 27*song057restored_mvl/mxv .byte W02 ; 45 .byte 28*song057restored_mvl/mxv .byte W03 .byte 29*song057restored_mvl/mxv .byte W02 ; 50 .byte 30*song057restored_mvl/mxv .byte W03 .byte 31*song057restored_mvl/mxv .byte W02 ; 55 .byte 32*song057restored_mvl/mxv .byte W03 .byte 33*song057restored_mvl/mxv .byte W02 ; 60 .byte 34*song057restored_mvl/mxv .byte W03 .byte 35*song057restored_mvl/mxv .byte W02 ; 65 .byte 36*song057restored_mvl/mxv .byte W03 .byte 37*song057restored_mvl/mxv .byte W02 ; 70 .byte 38*song057restored_mvl/mxv .byte W02 ; 72 .byte N72 , Ds1 .byte W01 ; 73 .byte VOL , 39*song057restored_mvl/mxv .byte W02 ; 75 .byte 40*song057restored_mvl/mxv .byte W03 .byte 41*song057restored_mvl/mxv .byte W02 ; 80 .byte 42*song057restored_mvl/mxv .byte W03 .byte 43*song057restored_mvl/mxv .byte W02 ; 85 .byte 44*song057restored_mvl/mxv .byte W03 .byte 45*song057restored_mvl/mxv .byte W02 ; 90 .byte 46*song057restored_mvl/mxv .byte W03 .byte 47*song057restored_mvl/mxv .byte W02 ; 95 .byte 48*song057restored_mvl/mxv .byte W01 ; 96 .byte PAN , c_v+58 .byte W01 ; 97 .byte c_v+56 .byte W01 ; 98 .byte c_v+54 .byte VOL , 49*song057restored_mvl/mxv .byte W01 ; 99 .byte PAN , c_v+53 .byte W01 ; 100 .byte VOL , 50*song057restored_mvl/mxv @song057restored_2_B1: .byte PAN , c_v+52 .byte W01 .byte c_v+51 .byte W01 .byte c_v+50 .byte W01 .byte c_v+48 .byte W01 .byte c_v+47 .byte W01 .byte c_v+46 .byte W01 .byte c_v+45 .byte W01 .byte c_v+44 .byte W01 .byte c_v+42 .byte W01 .byte c_v+41 .byte W01 .byte c_v+40 .byte W01 .byte c_v+39 .byte W01 .byte c_v+37 .byte W01 .byte c_v+36 .byte W01 .byte c_v+35 .byte W01 .byte c_v+34 .byte W01 .byte c_v+33 .byte W01 .byte c_v+31 .byte W01 .byte c_v+30 .byte W01 .byte c_v+29 .byte W01 .byte c_v+28 .byte W01 .byte c_v+27 .byte W01 .byte c_v+25 .byte W01 .byte c_v+24 .byte W01 .byte c_v+23 .byte W01 .byte c_v+22 .byte W01 .byte c_v+21 .byte W01 .byte c_v+19 .byte W01 .byte c_v+18 .byte W01 .byte c_v+17 .byte W01 .byte c_v+16 .byte W01 .byte c_v+15 .byte W01 .byte c_v+13 .byte W01 .byte c_v+12 .byte W01 .byte c_v+11 .byte W01 .byte c_v+10 .byte W01 .byte c_v+8 .byte W01 .byte c_v+7 .byte W01 .byte c_v+6 .byte W01 .byte c_v+5 .byte W01 .byte c_v+4 .byte W01 .byte c_v+2 .byte W01 .byte c_v+1 .byte W01 .byte c_v+0 .byte W01 .byte c_v-1 .byte W01 .byte c_v-2 .byte W01 .byte c_v-4 .byte W01 .byte c_v-5 .byte W01 .byte c_v-6 .byte N14 , Dn1 .byte W01 .byte PAN , c_v-7 .byte W01 .byte c_v-8 .byte W01 .byte c_v-10 .byte W01 .byte c_v-11 .byte W01 .byte c_v-12 .byte W01 .byte c_v-13 .byte W01 .byte c_v-14 .byte W01 .byte c_v-16 .byte W01 .byte c_v-17 .byte W01 .byte c_v-18 .byte W01 .byte c_v-19 .byte W01 .byte c_v-21 .byte W01 .byte c_v-22 .byte W01 .byte c_v-23 .byte W01 .byte c_v-24 .byte W01 .byte c_v-25 .byte N06 , Bn0 .byte W01 .byte PAN , c_v-27 .byte W01 .byte c_v-28 .byte W01 .byte c_v-29 .byte W01 .byte c_v-30 .byte W01 .byte c_v-31 .byte W01 .byte c_v-33 .byte W01 .byte c_v-34 .byte W01 .byte c_v-35 .byte N22 , Gn0 .byte W01 .byte PAN , c_v-36 .byte W01 .byte c_v-37 .byte W01 .byte c_v-39 .byte W01 .byte c_v-40 .byte W01 .byte c_v-41 .byte W01 .byte c_v-42 .byte W01 .byte c_v-43 .byte W01 .byte c_v-45 .byte W01 .byte c_v-46 .byte W01 .byte c_v-47 .byte W01 .byte c_v-48 .byte W01 .byte c_v-50 .byte W01 .byte c_v-51 .byte W01 .byte c_v-52 .byte W01 .byte c_v-53 .byte W01 .byte c_v-54 .byte W01 .byte c_v-56 .byte W01 .byte c_v-57 .byte W01 ; 002 ---------------------------------------- .byte c_v-58 .byte W05 .byte N22 , Bn0 .byte W24 .byte Dn1 .byte W24 .byte PAN , c_v-57 .byte N44 , Gn1 .byte W01 .byte PAN , c_v-56 .byte W01 .byte c_v-54 .byte W01 .byte c_v-53 .byte W01 .byte c_v-52 .byte W01 .byte c_v-51 .byte W01 .byte c_v-50 .byte W01 .byte c_v-48 .byte W01 .byte c_v-47 .byte W01 .byte c_v-46 .byte W01 .byte c_v-45 .byte W01 .byte c_v-43 .byte W01 .byte c_v-42 .byte W01 .byte c_v-41 .byte W01 .byte c_v-40 .byte W01 .byte c_v-39 .byte W01 .byte c_v-37 .byte W01 .byte c_v-36 .byte W01 .byte c_v-35 .byte W01 .byte c_v-34 .byte W01 .byte c_v-33 .byte W01 .byte c_v-31 .byte W01 .byte c_v-30 .byte W01 .byte c_v-29 .byte W01 .byte c_v-28 .byte W01 .byte c_v-27 .byte W01 .byte c_v-25 .byte W01 .byte c_v-24 .byte W01 .byte c_v-23 .byte W01 .byte c_v-22 .byte W01 .byte c_v-21 .byte W01 .byte c_v-19 .byte W01 .byte c_v-18 .byte W01 .byte c_v-17 .byte W01 .byte c_v-16 .byte W01 .byte c_v-14 .byte W01 .byte c_v-13 .byte W01 .byte c_v-12 .byte W01 .byte c_v-11 .byte W01 .byte c_v-10 .byte W01 .byte c_v-8 .byte W01 .byte c_v-7 .byte W01 .byte c_v-6 .byte W01 .byte c_v-5 .byte W01 .byte c_v-4 .byte W01 .byte c_v-2 .byte W01 .byte c_v-1 .byte W01 .byte c_v+0 .byte W01 .byte c_v+1 .byte N14 , Bn1 .byte W01 .byte PAN , c_v+2 .byte W01 .byte c_v+4 .byte W01 .byte c_v+5 .byte W01 .byte c_v+6 .byte W01 .byte c_v+7 .byte W01 .byte c_v+8 .byte W01 .byte c_v+10 .byte W01 .byte c_v+11 .byte W01 .byte c_v+12 .byte W01 .byte c_v+13 .byte W01 .byte c_v+15 .byte W01 .byte c_v+16 .byte W01 .byte c_v+17 .byte W01 .byte c_v+18 .byte W01 .byte c_v+19 .byte W01 .byte c_v+21 .byte N06 , An1 .byte W01 .byte PAN , c_v+22 .byte W01 .byte c_v+23 .byte W01 .byte c_v+24 .byte W01 .byte c_v+25 .byte W01 .byte c_v+27 .byte W01 .byte c_v+28 .byte W01 .byte c_v+29 .byte W01 .byte c_v+30 .byte N22 , Gn1 .byte W01 .byte PAN , c_v+31 .byte W01 .byte c_v+33 .byte W01 .byte c_v+34 .byte W01 .byte c_v+35 .byte W01 .byte c_v+36 .byte W01 .byte c_v+37 .byte W01 .byte c_v+39 .byte W01 .byte c_v+40 .byte W01 .byte c_v+41 .byte W01 .byte c_v+42 .byte W01 .byte c_v+44 .byte W01 .byte c_v+45 .byte W01 .byte c_v+46 .byte W01 .byte c_v+47 .byte W01 .byte c_v+48 .byte W01 .byte c_v+50 .byte W01 .byte c_v+51 .byte W01 .byte c_v+52 .byte W01 .byte c_v+53 .byte W01 .byte c_v+54 .byte W01 .byte c_v+56 .byte W01 .byte c_v+57 .byte W01 .byte c_v+58 .byte W01 .byte c_v+57 .byte N22 , Bn0 .byte W01 .byte PAN , c_v+56 .byte W01 .byte c_v+54 .byte W01 .byte c_v+53 .byte W01 .byte c_v+52 .byte W01 .byte c_v+51 .byte W01 .byte c_v+50 .byte W01 .byte c_v+48 .byte W01 .byte c_v+47 .byte W01 .byte c_v+46 .byte W01 .byte c_v+45 .byte W01 .byte c_v+44 .byte W01 .byte c_v+42 .byte W01 .byte c_v+41 .byte W01 .byte c_v+40 .byte W01 .byte c_v+39 .byte W01 .byte c_v+37 .byte W01 .byte c_v+36 .byte W01 .byte c_v+35 .byte W01 .byte c_v+34 .byte W01 .byte c_v+33 .byte W01 .byte c_v+31 .byte W01 .byte c_v+30 .byte W01 .byte c_v+29 .byte W01 .byte c_v+28 .byte N22 , Cs1 .byte W01 .byte PAN , c_v+27 .byte W01 .byte c_v+25 .byte W01 .byte c_v+24 .byte W01 .byte c_v+23 .byte W01 .byte c_v+22 .byte W01 .byte c_v+21 .byte W01 .byte c_v+19 .byte W01 .byte c_v+18 .byte W01 .byte c_v+17 .byte W01 .byte c_v+16 .byte W01 .byte c_v+15 .byte W01 .byte c_v+13 .byte W01 .byte c_v+12 .byte W01 .byte c_v+11 .byte W01 .byte c_v+10 .byte W01 .byte c_v+8 .byte W01 .byte c_v+7 .byte W01 .byte c_v+6 .byte W01 ; 003 ---------------------------------------- .byte c_v+5 .byte W01 .byte c_v+4 .byte W01 .byte c_v+2 .byte W01 .byte c_v+1 .byte W01 .byte c_v+0 .byte W01 .byte c_v-1 .byte N44 , Dn1 .byte W01 .byte PAN , c_v-2 .byte W01 .byte c_v-4 .byte W01 .byte c_v-5 .byte W01 .byte c_v-6 .byte W01 .byte c_v-7 .byte W01 .byte c_v-8 .byte W01 .byte c_v-10 .byte W01 .byte c_v-11 .byte W01 .byte c_v-12 .byte W01 .byte c_v-13 .byte W01 .byte c_v-14 .byte W01 .byte c_v-16 .byte W01 .byte c_v-17 .byte W01 .byte c_v-18 .byte W01 .byte c_v-19 .byte W01 .byte c_v-21 .byte W01 .byte c_v-22 .byte W01 .byte c_v-23 .byte W01 .byte c_v-24 .byte W01 .byte c_v-25 .byte W01 .byte c_v-27 .byte W01 .byte c_v-28 .byte W01 .byte c_v-29 .byte W01 .byte c_v-30 .byte W01 .byte c_v-31 .byte W01 .byte c_v-33 .byte W01 .byte c_v-34 .byte W01 .byte c_v-35 .byte W01 .byte c_v-36 .byte W01 .byte c_v-37 .byte W01 .byte c_v-39 .byte W01 .byte c_v-40 .byte W01 .byte c_v-41 .byte W01 .byte c_v-42 .byte W01 .byte c_v-43 .byte W01 .byte c_v-45 .byte W01 .byte c_v-46 .byte W01 .byte c_v-47 .byte W01 .byte c_v-48 .byte W01 .byte c_v-50 .byte W01 .byte c_v-51 .byte W01 .byte c_v-52 .byte W01 .byte c_v-53 .byte W01 .byte c_v-54 .byte W01 .byte c_v-56 .byte W01 .byte c_v-57 .byte W01 .byte c_v-58 .byte W01 .byte c_v-57 .byte N22 .byte W01 .byte PAN , c_v-56 .byte W01 .byte c_v-54 .byte W01 .byte c_v-53 .byte W01 .byte c_v-52 .byte W01 .byte c_v-51 .byte W01 .byte c_v-50 .byte W01 .byte c_v-48 .byte W01 .byte c_v-47 .byte W01 .byte c_v-46 .byte W01 .byte c_v-45 .byte W01 .byte c_v-43 .byte W01 .byte c_v-42 .byte W01 .byte c_v-41 .byte W01 .byte c_v-40 .byte W01 .byte c_v-39 .byte W01 .byte c_v-37 .byte W01 .byte c_v-36 .byte W01 .byte c_v-35 .byte W01 .byte c_v-34 .byte W01 .byte c_v-33 .byte W01 .byte c_v-31 .byte W01 .byte c_v-30 .byte W01 .byte c_v-29 .byte W01 .byte c_v-28 .byte N36 , Bn1 .byte W01 .byte PAN , c_v-27 .byte W01 .byte c_v-25 .byte W01 .byte c_v-24 .byte W01 .byte c_v-23 .byte W01 .byte c_v-22 .byte W01 .byte c_v-21 .byte W01 .byte c_v-19 .byte W01 .byte c_v-18 .byte W01 .byte c_v-17 .byte W01 .byte c_v-16 .byte W01 .byte c_v-14 .byte W01 .byte c_v-13 .byte W01 .byte c_v-12 .byte W01 .byte c_v-11 .byte W01 .byte c_v-10 .byte W01 .byte c_v-8 .byte W01 .byte c_v-7 .byte W01 .byte c_v-6 .byte W01 .byte c_v-5 .byte W01 .byte c_v-4 .byte W01 .byte c_v-2 .byte W01 .byte c_v-1 .byte W01 .byte c_v+0 .byte W01 .byte c_v+1 .byte W01 .byte c_v+2 .byte W01 .byte c_v+4 .byte W01 .byte c_v+5 .byte W01 .byte c_v+6 .byte W01 .byte c_v+7 .byte W01 .byte c_v+8 .byte W01 .byte c_v+10 .byte W01 .byte c_v+11 .byte W01 .byte c_v+12 .byte W01 .byte c_v+13 .byte W01 .byte c_v+15 .byte W01 .byte c_v+16 .byte W01 .byte c_v+17 .byte W01 .byte c_v+18 .byte W01 .byte c_v+19 .byte W01 .byte c_v+21 .byte N06 , An1 .byte W01 .byte PAN , c_v+22 .byte W01 .byte c_v+23 .byte W01 .byte c_v+24 .byte W01 .byte c_v+25 .byte W01 .byte c_v+27 .byte W01 .byte c_v+28 .byte W01 .byte c_v+29 .byte W01 .byte c_v+30 .byte N22 , Gn1 .byte W01 .byte PAN , c_v+31 .byte W01 .byte c_v+33 .byte W01 .byte c_v+34 .byte W01 .byte c_v+35 .byte W01 .byte c_v+36 .byte W01 .byte c_v+37 .byte W01 .byte c_v+39 .byte W01 .byte c_v+40 .byte W01 .byte c_v+41 .byte W01 .byte c_v+42 .byte W01 .byte c_v+44 .byte W01 .byte c_v+45 .byte W01 .byte c_v+46 .byte W01 .byte c_v+47 .byte W01 .byte c_v+48 .byte W01 .byte c_v+50 .byte W01 .byte c_v+51 .byte W01 .byte c_v+52 .byte W01 .byte c_v+53 .byte W01 .byte c_v+54 .byte W01 .byte c_v+56 .byte W01 .byte c_v+57 .byte W01 .byte c_v+58 .byte W01 .byte c_v+57 .byte N44 , Fs1 .byte W01 .byte PAN , c_v+56 .byte W01 .byte c_v+54 .byte W01 .byte c_v+53 .byte W01 .byte c_v+52 .byte W01 .byte c_v+51 .byte W01 .byte c_v+50 .byte W01 .byte c_v+48 .byte W01 .byte c_v+47 .byte W01 .byte c_v+46 .byte W01 .byte c_v+45 .byte W01 .byte c_v+44 .byte W01 .byte c_v+42 .byte W01 .byte c_v+41 .byte W01 .byte c_v+40 .byte W01 .byte c_v+39 .byte W01 .byte c_v+37 .byte W01 .byte c_v+36 .byte W01 .byte c_v+35 .byte W01 .byte c_v+34 .byte W01 .byte c_v+33 .byte W01 .byte c_v+31 .byte W01 .byte c_v+30 .byte W01 .byte c_v+29 .byte W01 .byte c_v+28 .byte W01 .byte c_v+27 .byte W01 .byte c_v+25 .byte W01 .byte c_v+24 .byte W01 .byte c_v+23 .byte W01 .byte c_v+22 .byte W01 .byte c_v+21 .byte W01 .byte c_v+19 .byte W01 .byte c_v+18 .byte W01 .byte c_v+17 .byte W01 .byte c_v+16 .byte W01 .byte c_v+15 .byte W01 .byte c_v+13 .byte W01 .byte c_v+12 .byte W01 .byte c_v+11 .byte W01 .byte c_v+10 .byte W01 .byte c_v+8 .byte W01 .byte c_v+7 .byte W01 .byte c_v+6 .byte W01 ; 004 ---------------------------------------- .byte c_v+5 .byte W01 .byte c_v+4 .byte W01 .byte c_v+2 .byte W01 .byte c_v+1 .byte W01 .byte c_v+0 .byte W01 .byte c_v-1 .byte N14 , En1 .byte W01 .byte PAN , c_v-2 .byte W01 .byte c_v-4 .byte W01 .byte c_v-5 .byte W01 .byte c_v-6 .byte W01 .byte c_v-7 .byte W01 .byte c_v-8 .byte W01 .byte c_v-10 .byte W01 .byte c_v-11 .byte W01 .byte c_v-12 .byte W01 .byte c_v-13 .byte W01 .byte c_v-14 .byte W01 .byte c_v-16 .byte W01 .byte c_v-17 .byte W01 .byte c_v-18 .byte W01 .byte c_v-19 .byte W01 .byte c_v-21 .byte N06 , Fs1 .byte W01 .byte PAN , c_v-22 .byte W01 .byte c_v-23 .byte W01 .byte c_v-24 .byte W01 .byte c_v-25 .byte W01 .byte c_v-27 .byte W01 .byte c_v-28 .byte W01 .byte c_v-29 .byte W01 .byte c_v-30 .byte N22 , Gn1 .byte W01 .byte PAN , c_v-31 .byte W01 .byte c_v-33 .byte W01 .byte c_v-34 .byte W01 .byte c_v-35 .byte W01 .byte c_v-36 .byte W01 .byte c_v-37 .byte W01 .byte c_v-39 .byte W01 .byte c_v-40 .byte W01 .byte c_v-41 .byte W01 .byte c_v-42 .byte W01 .byte c_v-43 .byte W01 .byte c_v-45 .byte W01 .byte c_v-46 .byte W01 .byte c_v-47 .byte W01 .byte c_v-48 .byte W01 .byte c_v-50 .byte W01 .byte c_v-51 .byte W01 .byte c_v-52 .byte W01 .byte c_v-53 .byte W01 .byte c_v-54 .byte W01 .byte c_v-56 .byte W01 .byte c_v-57 .byte W01 .byte c_v-58 .byte W01 .byte c_v-57 .byte VOL , 50*song057restored_mvl/mxv .byte N22 .byte W01 .byte PAN , c_v-56 .byte VOL , 49*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-54 .byte W01 .byte c_v-53 .byte VOL , 48*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-52 .byte W01 .byte c_v-51 .byte VOL , 47*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-50 .byte W01 .byte c_v-48 .byte VOL , 46*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-47 .byte W01 .byte c_v-46 .byte VOL , 45*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-45 .byte W01 .byte c_v-43 .byte VOL , 44*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-42 .byte W01 .byte c_v-41 .byte VOL , 43*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-40 .byte W01 .byte c_v-39 .byte VOL , 42*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-37 .byte W01 .byte c_v-36 .byte VOL , 41*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-35 .byte W01 .byte c_v-34 .byte VOL , 40*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-33 .byte W01 .byte c_v-31 .byte VOL , 39*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-30 .byte W01 .byte c_v-29 .byte VOL , 38*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-28 .byte N22 , Dn1 .byte W01 .byte PAN , c_v-27 .byte VOL , 37*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-25 .byte W01 .byte c_v-24 .byte VOL , 36*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-23 .byte W01 .byte c_v-22 .byte VOL , 35*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-21 .byte W01 .byte c_v-19 .byte VOL , 34*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-18 .byte W01 .byte c_v-17 .byte VOL , 33*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-16 .byte W01 .byte c_v-14 .byte VOL , 32*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-13 .byte W01 .byte c_v-12 .byte VOL , 31*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-11 .byte W01 .byte c_v-10 .byte VOL , 30*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-8 .byte W01 .byte c_v-7 .byte VOL , 29*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-6 .byte W01 .byte c_v-5 .byte VOL , 28*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-4 .byte W01 .byte c_v-2 .byte VOL , 27*song057restored_mvl/mxv .byte W01 .byte PAN , c_v-1 .byte W01 .byte c_v+0 .byte VOL , 26*song057restored_mvl/mxv .byte W01 .byte PAN , c_v+1 .byte N22 , Bn0 .byte W01 .byte PAN , c_v+2 .byte VOL , 25*song057restored_mvl/mxv .byte W01 .byte PAN , c_v+4 .byte W01 .byte c_v+5 .byte VOL , 24*song057restored_mvl/mxv .byte W01 .byte PAN , c_v+6 .byte W01 .byte c_v+7 .byte VOL , 23*song057restored_mvl/mxv .byte W01 .byte PAN , c_v+8 .byte W01 .byte c_v+10 .byte VOL , 22*song057restored_mvl/mxv .byte W01 .byte PAN , c_v+11 .byte W01 .byte c_v+12 .byte VOL , 21*song057restored_mvl/mxv .byte W01 .byte PAN , c_v+13 .byte W01 .byte c_v+15 .byte VOL , 20*song057restored_mvl/mxv .byte W01 .byte PAN , c_v+16 .byte W01 .byte c_v+17 .byte W01 .byte c_v+18 .byte W01 .byte c_v+19 .byte W01 .byte c_v+21 .byte W01 .byte c_v+22 .byte W01 .byte c_v+23 .byte W01 .byte c_v+24 .byte W01 .byte c_v+25 .byte W01 .byte c_v+27 .byte W01 .byte c_v+28 .byte W01 .byte c_v+29 .byte W01 .byte c_v+30 .byte N22 , Gn0 .byte W01 .byte PAN , c_v+31 .byte W01 .byte c_v+33 .byte W01 .byte c_v+34 .byte W01 .byte c_v+35 .byte W01 .byte c_v+36 .byte W01 .byte c_v+37 .byte W01 .byte c_v+39 .byte W01 .byte c_v+40 .byte W01 .byte c_v+41 .byte W01 .byte c_v+42 .byte W01 .byte c_v+44 .byte W01 .byte c_v+45 .byte W01 .byte c_v+46 .byte W01 .byte c_v+47 .byte W01 .byte c_v+48 .byte W01 .byte c_v+50 .byte W01 .byte c_v+51 .byte W01 .byte c_v+52 .byte W01 .byte c_v+53 .byte W01 .byte c_v+54 .byte W01 .byte c_v+56 .byte W01 .byte c_v+57 .byte W01 .byte c_v+58 .byte W01 .byte c_v+0 .byte N42 , Ds1 .byte W42 .byte W01 ; 005 ---------------------------------------- .byte W02 .byte VOL , 50*song057restored_mvl/mxv .byte W06 .byte N21 , Gn0 , v127 .byte W36 .byte N04 , Dn1 , v116 .byte W12 .byte N09 , Gn1 , v104 .byte W24 .byte W01 .byte N15 , Dn1 , v092 .byte W23 .byte N10 , Gn0 , v127 .byte W12 .byte Gn0 , v116 .byte W24 .byte N04 , Dn1 .byte W12 .byte N09 , Gn1 , v104 .byte W24 .byte W01 .byte N13 , Dn1 , v092 .byte W15 ; 006 ---------------------------------------- .byte W08 .byte N21 , Gn0 , v127 .byte W36 .byte N04 , Dn1 , v116 .byte W12 .byte N09 , Gn1 , v104 .byte W24 .byte W01 .byte N13 , Dn1 , v092 .byte W23 .byte N10 , Gn0 , v127 .byte W12 .byte Gn0 , v116 .byte W24 .byte N04 , Dn1 .byte W12 .byte N09 , Gn1 , v104 .byte W24 .byte W01 .byte N10 , Dn1 , v092 .byte W15 ; 007 ---------------------------------------- .byte W96 .byte W96 ; 008 ---------------------------------------- .byte W96 .byte W03 .byte N92 , Cn1 , v116 .byte W92 .byte W01 ; 009 ---------------------------------------- .byte W03 .byte Fn1 .byte W92 .byte W02 ; 001' ---------------------------------------- .byte W01 .byte N68 , Bn0 , v116 .byte W72 ; 72 .byte N72 , Ds1 .byte W24 ; 96 .byte PAN , c_v+58 .byte W01 ; 97 .byte c_v+56 .byte W01 ; 98 .byte c_v+54 .byte W01 ; 99 .byte c_v+53 .byte W01 ; 100 .byte GOTO .word @song057restored_2_B1 @song057restored_2_B2: .byte FINE ;**************** Track 3 (Midi-Chn.3) ****************; @song057restored_3: .byte KEYSH , song057restored_key+12 ; 000 ---------------------------------------- .byte VOICE , 30 .byte VOL , 80*song057restored_mvl/mxv .byte PAN , c_v+0 .byte TUNE , c_v-21 .byte LFOS , 27 .byte LFODL , 6 .byte MOD , 4 .byte W96 .byte W96 @song057restored_3_B1: ; 001 ---------------------------------------- .byte W01 .byte N21 , En1 , v127 .byte W36 .byte N04 , Bn1 , v116 .byte W12 .byte N09 , En2 , v104 .byte W24 .byte W01 .byte N15 , Bn1 , v092 .byte W23 .byte N10 , En1 , v127 .byte W12 .byte En1 , v116 .byte W24 .byte N04 , Bn1 .byte W12 .byte N09 , En2 , v104 .byte W24 .byte W01 .byte N13 , Bn1 , v092 .byte W22 ; 002 ---------------------------------------- @song057restored_3_002: .byte W01 .byte N21 , En1 , v127 .byte W36 .byte N04 , Bn1 , v116 .byte W12 .byte N09 , En2 , v104 .byte W24 .byte W01 .byte N13 , Bn1 , v092 .byte W23 .byte N10 , En1 , v127 .byte W12 .byte En1 , v116 .byte W24 .byte N04 , Bn1 .byte W12 .byte N09 , En2 , v104 .byte W24 .byte W01 .byte N13 , Bn1 , v092 .byte W22 .byte PEND ; 003 ---------------------------------------- .byte W01 .byte N21 , Dn1 , v127 .byte W36 .byte N04 , An1 , v116 .byte W12 .byte N09 , Dn2 , v104 .byte W24 .byte W01 .byte N13 , An1 , v092 .byte W23 .byte N10 , Dn1 , v127 .byte W12 .byte Dn1 , v116 .byte W24 .byte N04 , An1 .byte W12 .byte N09 , Dn2 , v104 .byte W24 .byte W01 .byte N13 , An1 , v092 .byte W22 ; 004 ---------------------------------------- .byte PATT .word @song057restored_3_002 ; 005 ---------------------------------------- .byte W02 .byte N21 , En1 , v127 .byte W36 .byte N04 , Bn1 , v116 .byte W12 .byte N09 , En2 , v104 .byte W24 .byte W01 .byte N15 , Bn1 , v092 .byte W23 .byte N10 , En1 , v127 .byte W12 .byte En1 , v116 .byte W24 .byte N04 , Bn1 .byte W12 .byte N09 , En2 , v104 .byte W24 .byte W01 .byte N13 , Bn1 , v092 .byte W21 ; 006 ---------------------------------------- .byte W02 .byte N21 , En1 , v127 .byte W36 .byte N04 , Bn1 , v116 .byte W12 .byte N09 , En2 , v104 .byte W24 .byte W01 .byte N13 , Bn1 , v092 .byte W23 .byte N10 , En1 , v127 .byte W12 .byte En1 , v116 .byte W24 .byte N04 , Bn1 .byte W12 .byte N09 , En2 , v104 .byte W24 .byte W01 .byte N13 , Bn1 , v092 .byte W21 ; 007 ---------------------------------------- .byte W96 .byte W96 ; 008 ---------------------------------------- .byte W96 .byte W96 ; 009 ---------------------------------------- .byte W96 .byte W01 .byte GOTO .word @song057restored_3_B1 @song057restored_3_B2: .byte FINE ;**************** Track 4 (Midi-Chn.4) ****************; @song057restored_4: .byte KEYSH , song057restored_key-4 ; 000 ---------------------------------------- .byte VOICE , 38 .byte VOL , 45*song057restored_mvl/mxv .byte PAN , c_v-61 .byte TUNE , c_v-14 .byte LFOS , 31 .byte LFODL , 8 .byte MOD , 8 .byte W96 .byte W96 @song057restored_4_B1: ; 001 ---------------------------------------- .byte W04 .byte N92 , Gs1 , v116 .byte W96 .byte W01 .byte An1 .byte W90 .byte W01 ; 002 ---------------------------------------- .byte W05 .byte Bn1 .byte W96 .byte An1 , v104 .byte W90 .byte W01 ; 003 ---------------------------------------- .byte W05 .byte TIE , Fs1 , v092 .byte W96 .byte W44 .byte W02 .byte EOT .byte W02 .byte N10 , An1 .byte W12 .byte N11 , Gs1 , v104 .byte W13 .byte N20 , Fs1 , v092 .byte W18 ; 004 ---------------------------------------- .byte W05 .byte N32 , Gs1 , v104 .byte W36 .byte N56 , En1 , v116 .byte W96 .byte W54 .byte W01 ; 005 ---------------------------------------- .byte W13 .byte N04 , Gs2 , v040 .byte W06 .byte Gs2 , v028 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v028 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v076 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v076 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v076 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v092 .byte W06 .byte Gs2 , v076 .byte W06 .byte Gs2 , v064 .byte W06 .byte An2 , v052 .byte W06 .byte N04 .byte W06 .byte An2 , v064 .byte W06 .byte An2 , v052 .byte W06 .byte An2 , v064 .byte W06 .byte An2 , v076 .byte W05 ; 006 ---------------------------------------- .byte W01 .byte An2 , v052 .byte W06 .byte An2 , v040 .byte W06 .byte Gs2 .byte W06 .byte Gs2 , v028 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v028 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v076 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v076 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v076 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v028 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v028 .byte W06 .byte Gs2 , v040 .byte W06 .byte N05 , Gs2 , v028 .byte W05 ; 007 ---------------------------------------- .byte W96 .byte W96 ; 008 ---------------------------------------- .byte W96 .byte W96 ; 009 ---------------------------------------- .byte W96 .byte W01 .byte GOTO .word @song057restored_4_B1 @song057restored_4_B2: .byte FINE ;**************** Track 5 (Midi-Chn.5) ****************; @song057restored_5: .byte KEYSH , song057restored_key-4 ; 000 ---------------------------------------- .byte VOICE , 38 .byte VOL , 75*song057restored_mvl/mxv .byte PAN , c_v-14 .byte TUNE , c_v-14 .byte LFOS , 31 .byte LFODL , 8 .byte MOD , 2 .byte W96 .byte W96 @song057restored_5_B1: ; 001 ---------------------------------------- .byte W01 .byte N92 , En1 , v116 .byte W96 .byte Fs1 .byte W92 .byte W03 ; 002 ---------------------------------------- .byte W01 .byte Gs1 .byte W96 .byte Fs1 , v104 .byte W92 .byte W03 ; 003 ---------------------------------------- .byte W01 .byte TIE , Dn1 , v092 .byte W96 .byte W44 .byte W02 .byte EOT .byte W02 .byte N10 , Fs1 .byte W12 .byte N11 , En1 , v104 .byte W13 .byte N21 , Dn1 , v092 .byte W22 ; 004 ---------------------------------------- .byte W01 .byte N32 , En1 , v104 .byte W36 .byte N56 , Bn0 , v116 .byte W96 .byte W56 .byte W03 ; 005 ---------------------------------------- .byte W02 .byte N04 , En2 , v028 .byte W06 .byte N04 .byte W06 .byte En2 , v040 .byte W06 .byte En2 , v028 .byte W06 .byte En2 , v040 .byte W06 .byte En2 , v052 .byte W06 .byte En2 , v040 .byte W06 .byte En2 , v052 .byte W06 .byte En2 , v064 .byte W06 .byte En2 , v076 .byte W06 .byte En2 , v064 .byte W06 .byte En2 , v076 .byte W06 .byte En2 , v064 .byte W06 .byte En2 , v052 .byte W06 .byte En2 , v064 .byte W06 .byte En2 , v076 .byte W06 .byte En2 , v092 .byte W06 .byte En2 , v076 .byte W06 .byte En2 , v064 .byte W06 .byte En2 , v052 .byte W06 .byte En2 , v040 .byte W06 .byte En2 , v052 .byte W06 .byte En2 , v064 .byte W06 .byte En2 , v052 .byte W06 .byte Fs2 , v064 .byte W06 .byte Fs2 , v076 .byte W06 .byte Fs2 , v064 .byte W06 .byte Fs2 , v076 .byte W06 .byte Fs2 , v064 .byte W06 .byte Fs2 , v052 .byte W06 .byte Fs2 , v040 .byte W06 .byte Fs2 , v028 .byte W04 ; 006 ---------------------------------------- .byte W02 .byte En2 .byte W06 .byte N04 .byte W06 .byte En2 , v040 .byte W06 .byte En2 , v028 .byte W06 .byte En2 , v040 .byte W06 .byte En2 , v052 .byte W06 .byte En2 , v040 .byte W06 .byte En2 , v052 .byte W06 .byte En2 , v064 .byte W06 .byte En2 , v076 .byte W06 .byte En2 , v064 .byte W06 .byte En2 , v076 .byte W06 .byte En2 , v064 .byte W06 .byte En2 , v076 .byte W06 .byte En2 , v064 .byte W06 .byte En2 , v076 .byte W06 .byte En2 , v064 .byte W06 .byte En2 , v052 .byte W06 .byte En2 , v064 .byte W06 .byte En2 , v028 .byte W06 .byte En2 , v040 .byte W06 .byte En2 , v052 .byte W06 .byte En2 , v040 .byte W06 .byte En2 , v052 .byte W06 .byte En2 , v064 .byte W06 .byte En2 , v076 .byte W06 .byte En2 , v052 .byte W06 .byte En2 , v040 .byte W06 .byte En2 , v052 .byte W06 .byte En2 , v028 .byte W06 .byte En2 , v040 .byte W06 .byte En2 , v028 .byte W04 ; 007 ---------------------------------------- .byte W96 .byte W96 ; 008 ---------------------------------------- .byte W96 .byte W96 ; 009 ---------------------------------------- .byte W96 .byte W01 .byte GOTO .word @song057restored_5_B1 @song057restored_5_B2: .byte FINE ;**************** Track 6 (Midi-Chn.6) ****************; @song057restored_6: .byte KEYSH , song057restored_key-4 ; 000 ---------------------------------------- .byte VOICE , 38 .byte VOL , 70*song057restored_mvl/mxv .byte PAN , c_v-25 .byte TUNE , c_v-14 .byte LFOS , 29 .byte LFODL , 12 .byte MOD , 2 .byte W96 .byte W96 @song057restored_6_B1: ; 001 ---------------------------------------- .byte W02 .byte N92 , Gs1 , v116 .byte W96 .byte An1 .byte W92 .byte W02 ; 002 ---------------------------------------- .byte W02 .byte Bn1 .byte W96 .byte An1 , v104 .byte W92 .byte W02 ; 003 ---------------------------------------- .byte W02 .byte TIE , Fs1 , v092 .byte W96 .byte W44 .byte W02 .byte EOT .byte W02 .byte N10 , An1 .byte W12 .byte N11 , Gs1 , v104 .byte W13 .byte N20 , Fs1 , v092 .byte W21 ; 004 ---------------------------------------- .byte W02 .byte N32 , Gs1 , v104 .byte W36 .byte N56 , En1 , v116 .byte W96 .byte W56 .byte W02 ; 005 ---------------------------------------- .byte W05 .byte N04 , Gs2 , v040 .byte W06 .byte Gs2 , v028 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v028 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v076 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v076 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v076 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v092 .byte W06 .byte Gs2 , v076 .byte W06 .byte Gs2 , v064 .byte W06 .byte An2 , v052 .byte W06 .byte N04 .byte W06 .byte An2 , v064 .byte W06 .byte An2 , v052 .byte W06 .byte An2 , v064 .byte W06 .byte An2 , v076 .byte W06 .byte An2 , v052 .byte W06 .byte An2 , v040 .byte W01 ; 006 ---------------------------------------- .byte W05 .byte Gs2 .byte W06 .byte Gs2 , v028 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v028 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v076 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v076 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v076 .byte W06 .byte Gs2 , v064 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v028 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v052 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v028 .byte W06 .byte Gs2 , v040 .byte W06 .byte Gs2 , v028 .byte W06 .byte Gs2 , v040 .byte W06 .byte N01 , Gs2 , v028 .byte W01 ; 007 ---------------------------------------- .byte W96 .byte W96 ; 008 ---------------------------------------- .byte W96 .byte W96 ; 009 ---------------------------------------- .byte W96 .byte W01 .byte GOTO .word @song057restored_6_B1 @song057restored_6_B2: .byte FINE ;**************** Track 7 (Midi-Chn.7) ****************; @song057restored_7: .byte KEYSH , song057restored_key+1 ; 000 ---------------------------------------- .byte VOICE , 33 .byte VOL , 60*song057restored_mvl/mxv .byte PAN , c_v-25 .byte TUNE , c_v-22 .byte BENDR , 6 .byte N92 , Gn0 , v116 .byte W96 .byte N92 .byte W96 @song057restored_7_B1: ; 001 ---------------------------------------- .byte BEND , c_v+0 .byte W01 .byte N36 , Gn0 , v116 .byte W10 ; 10 .byte VOL , 59*song057restored_mvl/mxv .byte W10 ; 20 .byte 58*song057restored_mvl/mxv .byte W10 ; 30 .byte 57*song057restored_mvl/mxv .byte W10 ; 40 .byte 56*song057restored_mvl/mxv .byte TIE .byte W10 ; 50 .byte VOL , 55*song057restored_mvl/mxv .byte W10 ; 60 .byte 54*song057restored_mvl/mxv .byte W10 ; 70 .byte 53*song057restored_mvl/mxv .byte W10 ; 80 .byte 52*song057restored_mvl/mxv .byte W10 ; 90 .byte 51*song057restored_mvl/mxv .byte W10 ; 100 .byte 50*song057restored_mvl/mxv .byte W10 ; 110 .byte 49*song057restored_mvl/mxv .byte W10 ; 120 .byte 48*song057restored_mvl/mxv .byte W10 ; 130 .byte 47*song057restored_mvl/mxv .byte W10 ; 140 .byte 46*song057restored_mvl/mxv .byte W10 ; 150 .byte 45*song057restored_mvl/mxv .byte W10 ; 160 .byte 44*song057restored_mvl/mxv .byte W10 ; 170 .byte 43*song057restored_mvl/mxv .byte W10 ; 180 .byte 42*song057restored_mvl/mxv .byte W02 ; 182 .byte EOT .byte W02 ; 184 .byte N22 , Fn1 .byte W06 ; 190 .byte VOL , 41*song057restored_mvl/mxv .byte W01 ; 191 ; 002 ---------------------------------------- .byte W09 ; 200 .byte 40*song057restored_mvl/mxv .byte W08 .byte TIE , An0 .byte W02 ; 210 .byte VOL , 39*song057restored_mvl/mxv .byte W10 ; 220 .byte 38*song057restored_mvl/mxv .byte W10 ; 230 .byte 37*song057restored_mvl/mxv .byte W10 ; 240 .byte 36*song057restored_mvl/mxv .byte W10 ; 250 .byte 35*song057restored_mvl/mxv .byte W96 .byte W04 .byte EOT .byte W02 .byte N68 , Bn0 .byte W30 .byte W01 ; 003 ---------------------------------------- .byte W40 .byte W01 .byte TIE , Gn0 .byte W96 .byte W54 .byte W01 ; 004 ---------------------------------------- .byte W15 .byte EOT .byte W02 .byte TIE , Cn1 .byte W96 .byte W78 .byte EOT .byte W01 ; 005 ---------------------------------------- .byte W02 .byte VOL , 35*song057restored_mvl/mxv .byte N92 , Gn0 .byte W96 .byte VOL , 20*song057restored_mvl/mxv .byte N92 .byte W92 .byte W02 ; 006 ---------------------------------------- .byte W02 .byte VOL , 20*song057restored_mvl/mxv .byte N92 , An0 .byte W02 .byte VOL , 21*song057restored_mvl/mxv .byte W05 .byte 22*song057restored_mvl/mxv .byte W05 .byte 23*song057restored_mvl/mxv .byte W05 .byte 24*song057restored_mvl/mxv .byte W05 .byte 25*song057restored_mvl/mxv .byte W05 .byte 26*song057restored_mvl/mxv .byte W05 .byte 27*song057restored_mvl/mxv .byte W05 .byte 28*song057restored_mvl/mxv .byte W05 .byte 29*song057restored_mvl/mxv .byte W05 .byte 30*song057restored_mvl/mxv .byte W05 .byte 31*song057restored_mvl/mxv .byte W05 .byte 32*song057restored_mvl/mxv .byte W05 .byte 33*song057restored_mvl/mxv .byte W05 .byte 34*song057restored_mvl/mxv .byte W05 .byte 35*song057restored_mvl/mxv .byte W05 .byte 36*song057restored_mvl/mxv .byte W05 .byte 37*song057restored_mvl/mxv .byte W05 .byte 38*song057restored_mvl/mxv .byte W05 .byte 39*song057restored_mvl/mxv .byte W04 .byte N92 , Gn0 .byte W01 .byte VOL , 40*song057restored_mvl/mxv .byte W92 .byte W01 ; 007 ---------------------------------------- .byte W02 .byte 60*song057restored_mvl/mxv .byte BEND , c_v+0 .byte TIE .byte W04 .byte BEND , c_v-1 .byte W04 .byte c_v-2 .byte W04 .byte c_v-3 .byte W03 ; 15 elapsed .byte c_v-4 .byte W04 .byte c_v-5 .byte W04 .byte c_v-6 .byte W04 .byte c_v-7 .byte W03 ; 30 .byte c_v-8 .byte W04 .byte c_v-9 .byte W04 .byte c_v-10 .byte W04 .byte c_v-11 .byte W03 ; 45 .byte c_v-12 .byte W04 .byte c_v-13 .byte W04 .byte c_v-14 .byte W04 .byte c_v-15 .byte W03 ; 60 .byte c_v-16 .byte W04 .byte c_v-17 .byte W04 .byte c_v-18 .byte W04 .byte c_v-19 .byte W03 ; 75 .byte c_v-20 .byte W04 .byte c_v-21 .byte W04 .byte c_v-22 .byte W04 .byte c_v-23 .byte W03 ; 90 .byte c_v-24 .byte W04 .byte c_v-25 .byte W04 .byte c_v-26 .byte W04 .byte c_v-27 .byte W03 ; 105 .byte c_v-28 .byte W04 .byte c_v-29 .byte W04 .byte c_v-30 .byte W04 .byte c_v-31 .byte W03 ; 120 .byte c_v-32 .byte W04 .byte c_v-33 .byte W04 .byte c_v-34 .byte W04 .byte c_v-35 .byte W03 ; 135 .byte c_v-36 .byte W04 .byte c_v-37 .byte W04 .byte c_v-38 .byte W04 .byte c_v-39 .byte W03 ; 150 .byte c_v-40 .byte W04 .byte c_v-41 .byte W04 .byte c_v-42 .byte W04 .byte c_v-43 .byte W03 ; 165 .byte c_v-44 .byte W04 .byte c_v-45 .byte W04 .byte c_v-46 .byte W04 .byte c_v-47 .byte W03 ; 180 .byte c_v-48 .byte W04 ; 184 .byte c_v-49 .byte W04 ; 188 .byte c_v-50 .byte W02 ; 190 ; 008 ---------------------------------------- .byte W02 ; 192 .byte c_v-51 .byte W03 ; 195 .byte c_v-52 .byte W04 .byte c_v-53 .byte W04 .byte c_v-54 .byte W04 .byte c_v-55 .byte W03 ; 210 .byte c_v-56 .byte W04 .byte c_v-57 .byte W04 .byte c_v-58 .byte W04 .byte c_v-59 .byte W03 ; 225 .byte c_v-60 .byte W04 .byte c_v-61 .byte W04 .byte c_v-62 .byte W04 .byte c_v-63 .byte W03 ; 240 .byte c_v-64 .byte W44 .byte W02 .byte EOT .byte W03 .byte VOICE , 33 .byte VOL , 60*song057restored_mvl/mxv .byte PAN , c_v-25 .byte BEND , c_v+0 .byte N92 .byte W04 .byte BEND , c_v-1 .byte W04 .byte c_v-2 .byte W04 .byte c_v-3 .byte W03 ; 15 elapsed .byte c_v-4 .byte W04 .byte c_v-5 .byte W04 .byte c_v-6 .byte W04 .byte c_v-7 .byte W03 ; 30 .byte c_v-8 .byte W04 .byte c_v-9 .byte W04 .byte c_v-10 .byte W04 .byte c_v-11 .byte W03 ; 45 .byte c_v-12 .byte W04 .byte c_v-13 .byte W04 .byte c_v-14 .byte W04 .byte c_v-15 .byte W03 ; 60 .byte c_v-16 .byte W04 .byte c_v-17 .byte W04 .byte c_v-18 .byte W04 .byte c_v-19 .byte W03 ; 75 .byte c_v-20 .byte W04 .byte c_v-21 .byte W04 .byte c_v-22 .byte W04 .byte c_v-23 .byte W03 ; 90 .byte c_v-24 .byte W03 ; 009 ---------------------------------------- .byte W03 .byte BEND , c_v+0 .byte N92 .byte W04 .byte BEND , c_v-1 .byte W04 .byte c_v-2 .byte W04 .byte c_v-3 .byte W03 ; 15 elapsed .byte c_v-4 .byte W04 .byte c_v-5 .byte W04 .byte c_v-6 .byte W04 .byte c_v-7 .byte W03 ; 30 .byte c_v-8 .byte W04 .byte c_v-9 .byte W04 .byte c_v-10 .byte W04 .byte c_v-11 .byte W03 ; 45 .byte c_v-12 .byte W04 .byte c_v-13 .byte W04 .byte c_v-14 .byte W04 .byte c_v-15 .byte W03 ; 60 .byte c_v-16 .byte W04 .byte c_v-17 .byte W04 .byte c_v-18 .byte W04 .byte c_v-19 .byte W03 ; 75 .byte c_v-20 .byte W04 .byte c_v-21 .byte W04 .byte c_v-22 .byte W04 .byte c_v-23 .byte W03 ; 90 .byte c_v-24 .byte W04 .byte GOTO .word @song057restored_7_B1 @song057restored_7_B2: .byte FINE ;**************** Track 8 (Midi-Chn.8) ****************; @song057restored_8: .byte KEYSH , song057restored_key+0 ; 000 ---------------------------------------- .byte VOICE , 39 .byte PAN , c_v+34 .byte VOL , 95*song057restored_mvl/mxv .byte W96 .byte W60 .byte N01 , En3 , v052 .byte W02 .byte En3 , v064 .byte W02 .byte N02 , En3 , v076 .byte W03 .byte N01 , En3 , v092 .byte W02 .byte N02 , En3 , v104 .byte W03 .byte N21 , En3 , v116 .byte W24 @song057restored_8_B1: ; 001 ---------------------------------------- .byte W96 .byte W96 ; 002 ---------------------------------------- @song057restored_8_002: .byte W96 .byte W60 .byte W01 .byte N01 , En3 , v052 .byte W02 .byte En3 , v064 .byte W02 .byte N02 , En3 , v076 .byte W03 .byte N01 , En3 , v092 .byte W02 .byte N02 , En3 , v104 .byte W03 .byte N21 , En3 , v116 .byte W23 .byte PEND ; 003 ---------------------------------------- .byte W96 .byte W96 ; 004 ---------------------------------------- .byte PATT .word @song057restored_8_002 ; 005 ---------------------------------------- .byte W96 .byte W96 ; 006 ---------------------------------------- .byte W96 .byte W60 .byte W02 .byte N01 , En3 , v052 .byte W02 .byte En3 , v064 .byte W02 .byte N02 , En3 , v076 .byte W03 .byte N01 , En3 , v092 .byte W02 .byte N02 , En3 , v104 .byte W03 .byte N21 , En3 , v116 .byte W22 ; 007 ---------------------------------------- .byte W96 .byte W96 ; 008 ---------------------------------------- .byte W96 .byte W03 .byte VOICE , 39 .byte PAN , c_v+34 .byte VOL , 95*song057restored_mvl/mxv .byte W92 .byte W01 ; 009 ---------------------------------------- .byte W60 .byte W03 .byte N01 , En3 , v052 .byte W02 .byte En3 , v064 .byte W02 .byte N02 , En3 , v076 .byte W03 .byte N01 , En3 , v092 .byte W02 .byte N02 , En3 , v104 .byte W03 .byte N21 , En3 , v116 .byte W22 .byte GOTO .word @song057restored_8_B1 @song057restored_8_B2: .byte FINE ;******************************************************; .align 4 song057restored: .byte 8 ; NumTrks .byte 0 ; NumBlks .byte song057restored_pri ; Priority .byte song057restored_rev ; Reverb. //emit_clean_voicegroup_offset_for_song 57 .word 0x810AC4C //Voice Table .word @song057restored_1 .word @song057restored_2 .word @song057restored_3 .word @song057restored_4 .word @song057restored_5 .word @song057restored_6 .word @song057restored_7 .word @song057restored_8
20.335619
88
0.480831
f98eb5bfec2b1616d9b60952a2a5681ae279be04
583
asm
Assembly
oeis/273/A273375.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/273/A273375.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/273/A273375.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A273375: Squares ending in digit 4. ; 4,64,144,324,484,784,1024,1444,1764,2304,2704,3364,3844,4624,5184,6084,6724,7744,8464,9604,10404,11664,12544,13924,14884,16384,17424,19044,20164,21904,23104,24964,26244,28224,29584,31684,33124,35344,36864,39204,40804,43264,44944,47524,49284,51984,53824,56644,58564,61504,63504,66564,68644,71824,73984,77284,79524,82944,85264,88804,91204,94864,97344,101124,103684,107584,110224,114244,116964,121104,123904,128164,131044,135424,138384,142884,145924,150544,153664,158404,161604,166464,169744,174724 mul $0,5 add $0,3 div $0,-2 pow $0,2 mul $0,4
64.777778
497
0.797599
626c971b2b45727294b1ff6149bc8ec361a06bb3
513
asm
Assembly
programs/oeis/246/A246105.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/246/A246105.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/246/A246105.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A246105: Least m > 0 for which (s(m),...,s(n+m-1) = (s(n),...,s(0)), the reverse of the first n+1 terms of the infinite Fibonacci word A003849. ; 2,1,3,2,1,5,4,3,2,1,8,7,6,5,4,3,2,1,13,12,11,10,9,8,7,6,5,4,3,2,1,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,34,33,32,31,30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13 add $0,2 mov $1,$0 seq $0,246104 ; Least m > 0 for which (s(m), ..., s(n+m-1) = (s(0), ..., s(n)), the first n+1 terms of the infinite Fibonacci word A003849. sub $0,$1 sub $0,1
57
187
0.598441
17b9304ee3d12e2188e5a9ad6c0e9ccb4559cc6d
565
asm
Assembly
oeis/249/A249606.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/249/A249606.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/249/A249606.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A249606: Primes of the form 2k^2 + k + 2. ; Submitted by Christian Krause ; 2,5,23,107,173,353,467,743,1277,1487,2213,2777,3083,10733,14537,15227,17393,18917,21323,22157,23873,33413,36587,38783,42197,50723,54617,71633,94397,101477,112577,118343,122267,128273,130307,140717,149333,174347,203843 mov $2,332202 mov $5,1 mov $6,2 lpb $2 mov $3,$6 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,4 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 sub $2,18 sub $5,1 add $5,$1 mov $6,$5 lpe mov $0,$5 add $0,1
23.541667
219
0.672566
912e4030fea81bc261c3500e5807817b6d5e7f75
6,076
asm
Assembly
chocolate_vending.asm
pranavgo/Chocolate_Vending_MPI
3ad1cb5fa9e640569891b2cc3439c4474d1caedd
[ "MIT" ]
null
null
null
chocolate_vending.asm
pranavgo/Chocolate_Vending_MPI
3ad1cb5fa9e640569891b2cc3439c4474d1caedd
[ "MIT" ]
null
null
null
chocolate_vending.asm
pranavgo/Chocolate_Vending_MPI
3ad1cb5fa9e640569891b2cc3439c4474d1caedd
[ "MIT" ]
2
2021-07-08T05:25:36.000Z
2021-07-08T14:29:16.000Z
#make_bin# ; BIN is plain binary format similar to .com format, but not limited to 1 segment; ; All values between # are directives, these values are saved into a separate .binf file. ; Before loading .bin file emulator reads .binf file with the same file name. ; All directives are optional, if you don't need them, delete them. ; set loading address, .bin file will be loaded to this address: #LOAD_SEGMENT=FFFFh# #LOAD_OFFSET=0000h# ; set entry point: #CS=0000h# ; same as loading segment #IP=0000h# ; same as loading offset ; set segment registers #DS=0000h# ; same as loading segment #ES=0000h# ; same as loading segment ; set stack #SS=0000h# ; same as loading segment #SP=FFFEh# ; set to top of loading segment ; set general registers (optional) #AX=0000h# #BX=0000h# #CX=0000h# #DX=0000h# #SI=0000h# #DI=0000h# #BP=0000h# jmp st1 nop db 1024 dup(0) ; Main program st1: cli ; intialize ds,es,ss to start of RAM mov ax,0200h mov ds,ax mov es,ax mov ss,ax mov sp,0FFFEH mov si,0000 ; DATA JMP START PORTA1 EQU 00h PORTB1 EQU 02h PORTC1 EQU 04h CREG1 EQU 06h PORTA2 EQU 08h PORTB2 EQU 0ah PORTC2 EQU 0ch CREG2 EQU 0eh CNT0 EQU 10H CREG3 EQU 16H STEPPER_MOTOR EQU 88H PERKC DB 100 FIVEC DB 100 DMC DB 100 PERKID EQU 36 FIVEID EQU 61 DMID EQU 86 PRICE DB ? START: ; Initialize 8255A ; portA1 as input, portB1 is NC, portC1 lower as output and portc1 upper as input. MOV AL, 9AH ;10011010b OUT CREG1, AL ; portA2 as output, portB2 as output, portC2 lower as output and portc2 upper as input MOV AL, 88H ;10001000b OUT CREG2, AL ; initialise all ouput as 0 MOV AL,00 OUT PORTC1,AL MOV AL,00H OUT PORTA2,AL MOV AL,00H OUT PORTB2,AL Main: ;first making sure that all keys are released x1 : IN AL,PORTC2 CMP AL,70H JNZ X1 ;checking for a key press x2: IN AL,PORTC2 AND AL,70H CMP AL,60H JZ PERK CMP AL,50H JZ FIVESTAR CMP AL,30H JZ DM JMP X2 ; loop back if no button pressed PERK: ; checking count of available Perk chocolates CMP PERKC,0 JZ LED_GLOW_PERK ; if available then process starts CALL ACCEPT_COIN MOV PRICE,PERKID CALL PRICE_INITIATE CALL DELAY_20MS CALL DISPENSE_PERK CALL DELAY_20MS DEC PERKC CALL CLOSE_COIN JMP START FIVESTAR: ; checking count of available Five Star chocolates CMP FIVEC,0 JZ LED_GLOW_FIVE ; if available then process starts CALL ACCEPT_COIN MOV PRICE,FIVEID CALL PRICE_INITIATE CALL DISPENSE_FIVE DEC FIVEC CALL CLOSE_COIN JMP START DM: ; checking count of available Dairy Milk chocolates CMP DMC,0 JZ LED_GLOW_DM ; if available then process starts CALL ACCEPT_COIN MOV PRICE,DMID CALL PRICE_INITIATE CALL DISPENSE_DM DEC DMC CALL CLOSE_COIN JMP START LED_GLOW_PERK: ; to glow LED red indicating no Perk chocolate available ;PC0 IS HIGH FOR PERK MOV AL,01H OUT PORTC2,AL LED_GLOW_FIVE: ; to glow LED red indicating no Five Star chocolate available ;PC1 IS HIGH FOR FIVESTAR MOV AL,02H ;00000010B OUT PORTC2,AL LED_GLOW_DM: ; to glow LED red indicating no Dairy Milk chocolate available ;PC2 IS HIGH FOR DAIRYMILK MOV AL,04H ;00000100B OUT PORTC2,AL hlt ACCEPT_COIN PROC NEAR ; moves the stepper motor-4 to open the coin aceptance flap PUSHF PUSH AX PUSH BX PUSH CX MOV AL,STEPPER_MOTOR MOV CX,50 ; 50 is equivalent to 180 Deg rotation ROT_MOTOR_4_CLKWISE: ; rotates the motor clockwise MOV BL,AL AND AL,0F0H OUT PORTB2,AL CALL DELAY_20MS MOV AL,BL ROR AL,01 DEC CX JNZ ROT_MOTOR_4_CLKWISE ; shut off motor MOV AL,00H OUT PORTB2,AL POP CX POP BX POP AX POPF RET ACCEPT_COIN ENDP PRICE_INITIATE PROC NEAR ; takes ADC input and waits until it becomes equal to required coin weight PUSHF PUSH AX PUSH BX PUSH CX mov cl,PRICE ;ale activated X8: mov AL,01H ;00000001B OUT PORTC1,AL ;soc high mov AL,03H ;00000011B OUT PORTC1,AL ; waiting nop nop nop nop ;ale low and AL,11111110b OUT PORTC1,AL ;soc low and AL,11111101b OUT PORTC1,AL X7: ; checking for EOC high IN AL,PORTC1 AND AL,10H JZ X7 ; OE high MOV AL,04H OUT PORTC1,AL ; taking ADC input IN AL,PORTA1 CMP AL,CL ; comparing to pre-defined coin weight required for the selected chocolate JNZ X8 ; looping back to take another input from ADC if weight not matched POP CX POP BX POP AX POPF RET PRICE_INITIATE ENDP DISPENSE_PERK PROC NEAR ; rotates the motor-1 to dispense Perk Chocolate PUSHF PUSH AX PUSH BX PUSH CX MOV AL,STEPPER_MOTOR MOV CX,100 ;100 IS EQUIVALENT TO 360 DEG ROTATION ROT_MOTOR_1: MOV BL,AL AND AL,0FH OUT PORTA2,AL CALL DELAY_20MS MOV AL,BL ROL AL,01 DEC CX JNZ ROT_MOTOR_1 MOV AL,00 OUT PORTA2,AL POP CX POP BX POP AX POPF RET DISPENSE_PERK ENDP DISPENSE_FIVE PROC NEAR ; rotates the motor-2 to dispense Five Star Chocolate PUSHF PUSH AX PUSH BX PUSH CX MOV AL,STEPPER_MOTOR MOV CX,100 ;100 IS EQUIVALENT TO 360 DEG ROTATION ROT_MOTOR_2: MOV BL,AL AND AL,0F0H OUT PORTA2,AL CALL DELAY_20MS MOV AL,BL ROL AL,01 DEC CX JNZ ROT_MOTOR_2 MOV AL,00 OUT PORTA2,AL POP CX POP BX POP AX POPF RET DISPENSE_FIVE ENDP DISPENSE_DM PROC NEAR ; rotates the motor-3 to dispense Dairy Milk Chocolate PUSHF PUSH AX PUSH BX PUSH CX MOV AL,STEPPER_MOTOR MOV CX,100 ;100 IS EQUIVALENT TO 360 DEG ROTATION ROT_MOTOR_3: MOV BL,AL AND AL,0FH OUT PORTB2,AL CALL DELAY_20MS MOV AL,BL ROL AL,01 DEC CX JNZ ROT_MOTOR_3 MOV AL,00 OUT PORTB2,AL POP CX POP BX POP AX POPF RET DISPENSE_DM ENDP CLOSE_COIN PROC NEAR ; moves the stepper motor-4 to close the coin aceptance flap PUSHF PUSH AX PUSH BX PUSH CX MOV AL,STEPPER_MOTOR MOV CX,50 ;50 IS EQUIVALENT TO 180 DEG ROTATION ROT_MOTOR_4_ANTICLKWISE: MOV BL,AL AND AL,0F0H OUT PORTB2,AL CALL DELAY_20MS MOV AL,BL ROL AL,01 DEC CX JNZ ROT_MOTOR_4_ANTICLKWISE MOV AL,00 OUT PORTB2,AL POP CX POP BX POP AX POPF RET CLOSE_COIN ENDP DELAY_20MS PROC NEAR ; general delay function PUSHF PUSH AX PUSH BX PUSH CX PUSH DX NOP NOP NOP NOP NOP NOP POP DX POP CX POP BX POP AX POPF RET DELAY_20MS ENDP
14.676329
89
0.734858
f22671645ada8ccb9d31343625b813f9209831c7
242
asm
Assembly
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sdcc_iy/esx_ide_mode_get.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sdcc_iy/esx_ide_mode_get.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sdcc_iy/esx_ide_mode_get.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; unsigned char esx_ide_mode_get(struct esx_mode *mode) SECTION code_esxdos PUBLIC _esx_ide_mode_get EXTERN _esx_ide_mode_get_fastcall _esx_ide_mode_get: pop af pop hl push hl push af jp _esx_ide_mode_get_fastcall
13.444444
55
0.768595
897a1cbc57bad903f444c2a45b6827e6211ea960
333
asm
Assembly
programs/oeis/051/A051903.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/051/A051903.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/051/A051903.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A051903: Maximal exponent in prime factorization of n. ; 0,1,1,2,1,1,1,3,2,1,1,2,1,1,1,4,1,2,1,2,1,1,1,3,2,1,3,2,1,1,1,5,1,1,1,2,1,1,1,3,1,1,1,2,2,1,1,4,2,2,1,2,1,3,1,3,1,1,1,2,1,1,2,6,1,1,1,2,1,1,1,3,1,1,2,2,1,1,1,4,4,1,1,2,1,1,1,3,1,2,1,2,1,1,1,5,1,2,2,2 lpb $0 seq $0,336551 ; a(n) = A003557(n) - 1. add $1,1 lpe mov $0,$1
37
201
0.54955
7a8e0152ed32cec665fa2f2e88797f82f5ff5342
472
asm
Assembly
util/gut/myjb.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
util/gut/myjb.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
util/gut/myjb.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; Find My JOB ID V2.00  1988 Tony Tebby section gen_util xdef gu_myjb include 'dev8_keys_qdos_sms' ;+++ ; Finds my JOB ID, preserving registers ; ; d0 c r error code ; d1 r job ID ; status returned according to D0 ;--- gu_myjb movem.l d0/d2/a0,-(sp) moveq #sms.info,d0 ; information trap #do.sms2 movem.l (sp)+,d0/d2/a0 tst.l d0 rts end
20.521739
54
0.508475
7315a12030c453f2c674c588bb5442f1ab8db0be
2,890
asm
Assembly
Asteroids/AsteroidsASM/constants.asm
ragibson/FPGA-Asteroids
316fc6063791c43060809be4b802104f2f9ab13d
[ "MIT" ]
5
2018-12-04T15:17:01.000Z
2021-04-02T16:13:18.000Z
Asteroids/AsteroidsASM/constants.asm
ragibson/FPGA-Asteroids
316fc6063791c43060809be4b802104f2f9ab13d
[ "MIT" ]
null
null
null
Asteroids/AsteroidsASM/constants.asm
ragibson/FPGA-Asteroids
316fc6063791c43060809be4b802104f2f9ab13d
[ "MIT" ]
null
null
null
# Palette colors .eqv BLACK 0 .eqv WHITE 1 .eqv GRAY 2 .eqv ORANGE 3 # reset signal sets PC to TEXT_START .eqv TEXT_START 0x00400000 .eqv DATA_START 0x10010000 .eqv DATA_END 0x100107fc # fpcos lookup table starts immediately after data .eqv TABLE_START 0x10010800 # Memory-mapped IO addresses .eqv keyboard_addr 0x10030000 .eqv accel_addr 0x10030004 .eqv sound_addr 0x10030008 .eqv lights_addr 0x1003000c .eqv vsync_addr 0x10020000 .eqv counter_addr 0x10020004 .eqv screen_base 0x20000000 # Scancodes .eqv W_PRESSED 0x1d .eqv A_PRESSED 0x1c .eqv S_PRESSED 0x1b .eqv D_PRESSED 0x23 # 800000 * 10 ns -> 125 Hz for 1 frame .eqv W_SOUND 800000 .eqv W_SOUNDLEN 1 # 227273 * 10 ns -> 440 Hz for 6 frames .eqv S_SOUND 227273 .eqv S_SOUNDLEN 6 # 454545 * 10 ns -> 220 Hz for 6 frames .eqv DEST_SOUND 454545 .eqv DEST_SOUNDLEN 6 # Ship speed and deceleration .eqv W_SPEED 16 .eqv SLOWDOWN 65 # Shot speed (added to ship speed) .eqv SHOT_SPEED 192 # Shots disappear after 120 frames .eqv TWO_SECONDS 120 .eqv MAX_SHOTS 5 .eqv MAX_ASTEROIDS 4 .eqv ASTEROID_WIDTH 10 .eqv FP_AST_WIDTH 640 .eqv FP_NAST_WIDTH -640 # Size of point struct .eqv POINT_BYTES 20 # point struct offsets .eqv POINT_X 0 .eqv POINT_Y 4 .eqv POINT_VX 8 .eqv POINT_VY 12 .eqv POINT_TIMEOUT 16 # Each shot struct uses 5 words -> 100 bytes .eqv SHOT_BYTES 100 # Size of object struct .eqv OBJECT_BYTES 28 # object struct offsets .eqv OBJECT_X 0 .eqv OBJECT_Y 4 .eqv OBJECT_DEGREES 8 .eqv OBJECT_VX 12 .eqv OBJECT_VY 16 .eqv OBJECT_VD 20 .eqv OBJECT_SIZE 24 # Each object struct uses 7 words -> 224 bytes .eqv ASTEROID_BYTES 224 # 640x480 words -> 1228800 bytes .eqv SCREEN_BYTES 1228800 # Screen resolution .eqv XRES 640 .eqv YRES 480 .eqv FP_XRES 40960 .eqv FP_YRES 30720 .eqv FP_HALF_XRES 20480 .eqv FP_HALF_YRES 15360 # Fixed-point representation constants .eqv FP_SHIFT_AMOUNT 6 # 6 bits of decimal .eqv FP_ROUND_MASK 0x20 # 0x20 = 0b100000 = 0.5 .eqv FP_FRAC_MASK 0x3f # 0x3f = 0b111111 # Fixed-point arithmetic constants .eqv FP_N12 -768 .eqv FP_N10 -640 .eqv FP_N7 -448 .eqv FP_N6 -384 .eqv FP_N5 -320 .eqv FP_N4 -256 .eqv FP_N1 -64 .eqv FP_0 0 .eqv FP_1 64 .eqv FP_2 128 .eqv FP_3 192 .eqv FP_4 256 .eqv FP_5 320 .eqv FP_6 384 .eqv FP_7 448 .eqv FP_10 640 .eqv FP_12 768 .eqv FP_50 3200 .eqv FP_90_DEG 5760 .eqv FP_100 6400 .eqv FP_200 12800 .eqv FP_300 19200 .eqv FP_360 23040 .eqv FP_400 25600 .eqv FP_600 38400
22.230769
50
0.635986
fc6b71aabe79250cb0e262ebc65ec4a604c5c286
466
asm
Assembly
Ficheiros assembly (TP's e Testes)/ex2a.asm
pemesteves/mpcp-1718
a0255feb961fc6cb33f1dae60bf0bfa19ade081d
[ "MIT" ]
null
null
null
Ficheiros assembly (TP's e Testes)/ex2a.asm
pemesteves/mpcp-1718
a0255feb961fc6cb33f1dae60bf0bfa19ade081d
[ "MIT" ]
null
null
null
Ficheiros assembly (TP's e Testes)/ex2a.asm
pemesteves/mpcp-1718
a0255feb961fc6cb33f1dae60bf0bfa19ade081d
[ "MIT" ]
null
null
null
include mpcp.inc ;; declaracoes de dados (variaveis globais) .data bytearray SBYTE 10 DUP(1) wordarray SWORD 10 DUP(0) ;; seccao de codigo principal .code main PROC C mov ecx, LENGTHOF bytearray mov edi, offset bytearray mov esi, offset wordarray ciclo: mov al, [edi] cbw mov [esi], ax add edi, type bytearray add esi, type wordarray LOOP ciclo invoke ExitProcess, 0 main ENDP ;; ----------------------------- ;; codigo de outras rotinas end
17.259259
43
0.67382
c14e4bb6a3e02678c91c69d915b9927e66cb0611
7,767
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_/i9-9900K_12_0xca.log_21829_1623.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_/i9-9900K_12_0xca.log_21829_1623.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_/i9-9900K_12_0xca.log_21829_1623.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 %r12 push %r14 push %r8 push %rax push %rcx push %rdi push %rsi lea addresses_WC_ht+0x6702, %r10 nop nop inc %r14 mov (%r10), %r8d nop nop sub $22352, %rax lea addresses_A_ht+0x17cf2, %r11 cmp $42409, %rax mov $0x6162636465666768, %r12 movq %r12, %xmm4 movups %xmm4, (%r11) nop nop nop xor %r12, %r12 lea addresses_UC_ht+0xf2, %rsi lea addresses_normal_ht+0x175f2, %rdi nop nop nop nop nop inc %rax mov $111, %rcx rep movsb cmp $37241, %rsi lea addresses_normal_ht+0x15572, %rsi nop nop nop cmp %r10, %r10 mov $0x6162636465666768, %r11 movq %r11, (%rsi) nop nop nop xor $38747, %r14 lea addresses_A_ht+0x1efb2, %rsi lea addresses_WT_ht+0x150a, %rdi nop nop nop nop add $33520, %rax mov $26, %rcx rep movsq and %rcx, %rcx lea addresses_WC_ht+0x612, %rsi clflush (%rsi) nop nop nop nop nop dec %r12 movw $0x6162, (%rsi) nop dec %r8 lea addresses_A_ht+0x9272, %rsi lea addresses_WC_ht+0x60f2, %rdi clflush (%rsi) nop cmp %rax, %rax mov $31, %rcx rep movsw nop nop nop nop add %r14, %r14 lea addresses_WT_ht+0xe262, %rsi lea addresses_WT_ht+0x6872, %rdi clflush (%rsi) nop nop nop nop dec %r14 mov $114, %rcx rep movsw nop nop nop xor %r14, %r14 lea addresses_UC_ht+0x1ca72, %r11 nop nop nop nop sub $45711, %rdi movl $0x61626364, (%r11) nop nop nop nop cmp $7067, %r12 lea addresses_WC_ht+0x40f2, %rsi lea addresses_normal_ht+0x2372, %rdi clflush (%rsi) nop nop nop nop nop add $12959, %r14 mov $105, %rcx rep movsb nop and $36510, %r10 lea addresses_D_ht+0x146f2, %r12 clflush (%r12) nop nop nop nop nop add %rdi, %rdi mov $0x6162636465666768, %rsi movq %rsi, %xmm1 vmovups %ymm1, (%r12) nop nop nop nop add %rax, %rax lea addresses_WT_ht+0x2af2, %rcx nop nop nop nop nop dec %rsi mov (%rcx), %r10 nop nop xor %rdi, %rdi lea addresses_WT_ht+0x1caf2, %rdi nop nop nop nop nop dec %r12 and $0xffffffffffffffc0, %rdi vmovaps (%rdi), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $1, %xmm0, %rcx nop nop nop sub %r11, %r11 pop %rsi pop %rdi pop %rcx pop %rax pop %r8 pop %r14 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r8 push %r9 push %rdx push %rsi // Store lea addresses_WC+0x1a8f2, %r8 clflush (%r8) nop nop nop nop sub %rdx, %rdx movb $0x51, (%r8) nop nop nop nop cmp $48368, %rsi // Faulty Load lea addresses_WC+0x1a8f2, %rsi nop inc %r8 movntdqa (%rsi), %xmm1 vpextrq $1, %xmm1, %rdx lea oracles, %r9 and $0xff, %rdx shlq $12, %rdx mov (%r9,%rdx,1), %rdx pop %rsi pop %rdx pop %r9 pop %r8 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WC', 'same': True, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_WC', 'same': True, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 16, 'NT': True, 'type': 'addresses_WC', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': True, 'AVXalign': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_UC_ht', 'congruent': 11}, 'dst': {'same': True, 'type': 'addresses_normal_ht', 'congruent': 6}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 7}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 3}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 3}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': True, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': True, 'congruent': 5}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 4}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 11}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 7}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 7}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': True, 'congruent': 9}} {'49': 4, '3f': 48, '6c': 21, '45': 3872, '00': 17456, '48': 428} 00 00 6c 6c 6c 6c 6c 00 00 6c 00 6c 00 00 00 6c 6c 6c 00 6c 00 00 6c 00 6c 6c 6c 6c 6c 00 00 6c 00 00 6c 00 00 00 6c 00 6c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 45 00 00 00 45 00 00 00 00 00 45 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 45 00 45 45 00 00 45 45 00 45 45 00 45 45 00 45 00 00 45 45 45 00 00 00 00 45 00 00 45 45 00 45 45 00 45 45 00 00 45 45 45 00 45 00 00 45 00 45 00 45 00 00 00 00 00 45 45 45 00 00 45 45 45 45 00 45 00 00 45 45 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 45 45 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 45 45 45 00 00 45 45 00 45 45 00 45 00 00 45 00 00 45 45 45 45 45 45 45 45 45 00 00 45 45 45 00 45 45 45 00 00 00 45 00 00 00 00 45 45 00 45 45 45 45 00 45 00 45 45 00 45 45 00 45 00 45 45 00 45 00 45 45 00 00 45 45 45 00 00 45 00 45 00 00 45 45 00 45 00 48 48 00 48 48 48 00 48 48 48 48 48 45 48 45 00 48 00 48 00 00 48 48 00 00 00 48 48 45 00 48 00 48 48 48 48 00 48 00 00 45 00 00 00 00 00 00 00 00 00 48 48 00 48 00 48 00 00 48 45 45 00 48 48 45 00 48 48 48 48 00 48 00 48 00 48 00 00 48 48 00 00 48 48 48 48 48 00 48 00 48 48 00 00 00 00 00 00 00 45 00 48 00 48 48 48 48 48 00 48 48 48 00 48 00 00 48 00 00 48 48 00 48 48 00 00 48 00 00 48 00 48 00 48 48 00 00 00 00 00 00 48 00 48 48 48 48 00 48 48 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 45 00 00 45 00 45 45 45 45 00 45 00 00 45 00 00 45 45 00 45 00 45 00 45 45 45 00 45 00 45 45 45 00 00 00 45 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 45 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 45 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
32.3625
2,999
0.658169
bbf2d29523586df05a22ac8070faab0b1460e36b
1,092
asm
Assembly
programs/oeis/188/A188301.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/188/A188301.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/188/A188301.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A188301: Positions of 0 in A188300; complement of A188302. ; 1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,45,46,47,48,49,50,52,53,54,55,56,57,59,60,61,62,63,64,65,66,67,69,70,71,72,73,74,76,77,78,79,80,81,82,83,84,86,87,88,89,90,91,93,94,95,96,97,98,100,101,102,103,104,105,106,107,108,110,111,112,113,114,115,117,118,119,120,121,122,123,124,125,127,128,129,130,131,132,134,135,136,137,138,139,140,141,142,144,145,146,147,148,149,151,152,153,154,155,156,158,159,160,161,162,163,164,165,166,168,169,170,171,172,173,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,192,193,194,195,196,197,199,200,201,202,203,204,205,206,207,209,210,211,212,213,214,216,217,218,219,220,221,222,223,224,226,227,228,229,230,231,233,234,235,236,237,238,239,240,241,243,244,245,246,247,248,250,251,252,253,254,255,257,258,259,260,261,262,263,264,265,267,268,269,270,271,272,274,275,276,277,278,279,280,281,282,284 mov $2,$0 mov $3,$0 mov $0,4 div $2,3 mul $2,12 div $2,29 lpb $0,1 mov $0,1 add $2,4 mov $1,$2 lpe sub $1,3 add $1,$3
64.235294
905
0.701465
29b9112ec9227a66be295998267ce741a3792ec9
605
asm
Assembly
oeis/008/A008503.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/008/A008503.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/008/A008503.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A008503: 9-dimensional centered tetrahedral numbers. ; 1,11,66,286,1001,3003,8008,19448,43758,92378,184755,352705,646580,1143780,1960255,3265757,5303727,8416837,13079352,19937632,29860259,43999449,63865594,91416974,129166884,180310636,248875121,339893851,459610646,615715386,817615513,1076747243,1406930733,1824773743,2350128638,3006607890,3822163565,4829736615,6067982140,7582077140,9424617642,11656612462,14348581247,17581764837,21449456392,26058462144,31530701059,38004953129,45638766459,54610533769,65121749396,77399458356,91698909511,108306425381 mov $2,$0 add $0,10 bin $0,10 bin $2,10 sub $0,$2
67.222222
498
0.852893
469d4e5ae3d77f88f383d8b3f995cfe35702b291
3,052
asm
Assembly
36_SEQVALASS.asm
aleattene/lc2-exams
516ca7ea7979898238267af0bf095fc4538dac1a
[ "MIT" ]
null
null
null
36_SEQVALASS.asm
aleattene/lc2-exams
516ca7ea7979898238267af0bf095fc4538dac1a
[ "MIT" ]
null
null
null
36_SEQVALASS.asm
aleattene/lc2-exams
516ca7ea7979898238267af0bf095fc4538dac1a
[ "MIT" ]
null
null
null
; ************ DESCRIZIONE SOTTOPROGRAMMA ************ Il seguente sottoprogramma denominato SEQVALASS riceve nel registri R0 il numero intero N e restituisce sempre in R0 l’ennesimo termine S(N) della sequenza definita nel seguente modo: S(N) = S(N-1) – 2 x | S(N-2) | con S1 = 1 e S2 = 1, dove la notazione | S(N-2) | significa valore assoluto di S(N-2). Si ipotizza inoltre che S(N = 0) per N ≤ 0 Nonostante l'utilizzo di altri registri della CPU, il sottoprogramma restituisce il controllo al programma chiamante senza che tali registri risultino alterati. ; ************ ESEMPI FUNZIONAMENTO SOTTOPROGRAMMA ************ INPUT 1 OUTPUT 1 R0 9 R0 -85 INPUT 2 OUTPUT 2 R0 2 R0 1 INPUT 3 OUTPUT 3 R0 -4 R0 0 ; ********* PROGRAMMA TEST ******** .orig x3000 LD R0, numN ; in R0 <- numero intero N (positivo/negativo) ; ********* SOTTOPROGRAMMA *********** ; SEQVALASS ; nome sottoprogramma ST R1, store1 ; contenuto R1 -> in cella indirizzo store1 ST R2, store2 ; contenuto R2 -> in cella indirizzo store2 ST R3, store3 ; contenuto R3 -> in cella indirizzo store3 AND R1,R1,#0 ; azzero R1 -> contenitore Sn-1 AND R2,R2,#0 ; azzero R2 -> contenitore Sn-2 ; AND R0,R0,R0 ; verifico valore in R0 BRNZ output_0 ; se N minore/uguale 0 -> Sn = 0 (output) ; qui positivo ADD R0,R0,-2 ; se risultato è negativo N = 1 mentre BRNZ output_1 ; se nullo N = 2 -> Sn = 1 (output) ; altrimento N maggiore di 2 ; qui N > 2 ADD R1,R1,#1 ; in R1 <- S2 -> futuro Sn-1 ADD R2,R2,#1 ; in R2 <- S1 -> futuro Sn-2 ciclo AND R2,R2,R2 ; verifico se Sn-2 è negativo o meno BRN val_ass ; se negativo -> valore assoluto ; altrimenti calcolo la sequenza Sn ADD R3,R2,R2 ; in R3 <- valore 2 x |Sn-2| NOT R3,R3 ADD R3,R3,#1 ; in R3 <- valore - 2 x |Sn-2| ADD R3,R1,R3 ; in R3 <- calcolo la sequenza Sn ADD R0,R0,#-1 ; decremento il valore di N BRZ output_Sn ; se zero sequenza terminata -> output Sn ; altrimenti si prosegue calcoli new Sn ADD R2,R1,#0 ; Sn-1 diventa Sn-2 ADD R1,R3,#0 ; Sn -> diventa Sn-1 BRNZP ciclo ; si ripete il calcolo della new Sn val_ass NOT R2,R2 ADD R2,R2,#1 ; in R2 <- valore assoluto |Sn-2| BRNZP ciclo output_0 AND R0,R0,#0 ; output -> R0 = 0 (come da specifica) BRNZP fine output_1 AND R0,R0,#0 ; azzero R0 ADD R0,R0,#1 ; output -> R0 = 1 (come da specifica) BRNZP fine output_Sn ADD R0,R3,#0 ; in R0 <- contenuto R3 (Output Sn) ; come da specifica fine LD R1, store1 ; contenuto cella indirizzo store1 -> in R1 LD R2, store2 ; contenuto cella indirizzo store2 -> in R2 LD R3, store3 ; contenuto cella indirizzo store3 -> in R3 ; RET ; ritorno da sottoprogramma ; ********** VAR/COST ************ store1 .blkw 1 ; riservo una cella memoria per contenuto R1 store2 .blkw 1 ; riservo una cella memoria per contenuto R2 store3 .blkw 1 ; riservo una cella memoria per contenuto R3 ;numN .fill #-4 ;numN .fill #2 numN .fill #9 .end ; fine programma test
31.142857
93
0.640564
563434a5730eae887069684e109e23166d82f91c
211
asm
Assembly
asm-step-by-step/listings/chapter7/sandbox/sandbox.asm
jsanders/work-throughs
7d3bdac8254534b72a1afcd84ca0fb2f6aef999f
[ "Unlicense" ]
5
2015-12-10T15:03:12.000Z
2019-02-20T21:39:53.000Z
asm-step-by-step/listings/chapter7/sandbox/sandbox.asm
jsanders/work-throughs
7d3bdac8254534b72a1afcd84ca0fb2f6aef999f
[ "Unlicense" ]
null
null
null
asm-step-by-step/listings/chapter7/sandbox/sandbox.asm
jsanders/work-throughs
7d3bdac8254534b72a1afcd84ca0fb2f6aef999f
[ "Unlicense" ]
9
2015-11-25T08:56:56.000Z
2020-11-30T18:08:44.000Z
section .data TestValue db 17h section .text global _start _start: nop ; Put your experiments between the two nops... mov eax,42h add eax,[TestValue] ; Put your experiments between the two nops... nop
14.066667
46
0.729858
e2c440773d3c7ab3f2faac4a909082cf5375924a
95
asm
Assembly
asm/hello2.asm
yoshitsugu/hariboteos_in_rust
22421a11b3b3812cf49e38fec2dcf968a3a3cee2
[ "MIT" ]
29
2019-06-07T06:37:33.000Z
2021-08-17T12:15:50.000Z
asm/hello2.asm
yoshitsugu/hariboteos_in_rust
22421a11b3b3812cf49e38fec2dcf968a3a3cee2
[ "MIT" ]
1
2021-01-12T05:04:55.000Z
2021-01-12T05:04:55.000Z
asm/hello2.asm
yoshitsugu/hariboteos_in_rust
22421a11b3b3812cf49e38fec2dcf968a3a3cee2
[ "MIT" ]
null
null
null
[BITS 32] MOV EDX,2 MOV EBX,msg INT 0x40 MOV EDX,4 INT 0x40 msg: DB "hello",0
10.555556
14
0.568421
9324ea742375110a3a3396affd1069b923aea882
1,115
asm
Assembly
ee/hk/threm.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
ee/hk/threm.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
ee/hk/threm.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; HOTKEY remove routine V2.00  1988 Tony Tebby QJUMP section hotkey xdef hk_threm xref hk_kjob xref hk_remv xref gu_rchp include 'dev8_keys_qdos_sms' include 'dev8_ee_hk_data' ;+++ ; Remove routine for Hotkey Thing ;--- hk_threm move.l a1,a4 ; save thing linkage lea hkd.thg(a1),a3 ; real linkage lea hkd_pllk(a3),a0 ; unlink polling routine moveq #sms.rpol,d0 trap #1 move.l hkd_bbas(a3),d0 ; stuffer buffer beq.s hkc_rkey ; ... none move.l d0,a0 jsr gu_rchp hkc_rkey move.w #$00ff,d1 ; key sub.l a1,a1 ; ... not string hkc_rklp jsr hk_remv ; remove subq.w #1,d1 ; ... next one bge.s hkc_rklp jsr hk_kjob ; kill hotkey Job move.l a4,a0 ; and remove heap item jmp gu_rchp end
27.195122
65
0.449327
a610d590a9c8c890f3ce92bdfb7c7694537c37cb
136
asm
Assembly
programs/oeis/074/A074280.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/074/A074280.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/074/A074280.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A074280: Duplicate of A000523. ; 0,1,1,2,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,5,5,5,5,5 add $0,1 log $0,2 mov $1,$0
19.428571
73
0.558824
e665570623a39e90fe3722996c582772a6596e28
668
asm
Assembly
oeis/222/A222548.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/222/A222548.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/222/A222548.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A222548: a(n) = Sum_{k=1..n} floor(n/k)^2. ; Submitted by Jon Maiga ; 1,5,11,22,32,52,66,92,115,147,169,219,245,289,333,390,424,496,534,612,672,740,786,898,957,1037,1113,1219,1277,1413,1475,1595,1687,1791,1883,2056,2130,2246,2354,2526,2608,2792,2878,3040,3190,3330,3424,3662,3773,3953,4093,4283,4389,4621,4761,4993,5149,5325,5443,5767,5889,6077,6279,6526,6690,6970,7104,7350,7538,7818,7960,8338,8484,8708,8950,9224,9412,9740,9898,10260,10497,10745,10911,11347,11559,11819,12055,12407,12585,13041,13261,13591,13843,14127,14363,14855,15049,15385,15691,16116 add $0,1 mov $2,$0 lpb $0 max $0,1 mov $3,$2 div $3,$0 sub $0,1 pow $3,2 add $1,$3 lpe mov $0,$1
41.75
487
0.72006
1e982a3002ef35e635928faf20f6c43a7875b34e
615
asm
Assembly
programs/oeis/130/A130723.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/130/A130723.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/130/A130723.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A130723: Least common multiple of 3 and n^2+n+1. ; 3,3,21,39,21,93,129,57,219,273,111,399,471,183,633,723,273,921,1029,381,1263,1389,507,1659,1803,651,2109,2271,813,2613,2793,993,3171,3369,1191,3783,3999,1407,4449,4683,1641,5169,5421,1893,5943,6213,2163,6771,7059,2451,7653,7959,2757,8589,8913,3081,9579,9921,3423,10623,10983,3783,11721,12099,4161,12873,13269,4557,14079,14493,4971,15339,15771,5403,16653,17103,5853,18021,18489,6321,19443,19929,6807,20919,21423,7311,22449,22971,7833,24033,24573,8373,25671,26229,8931,27363,27939,9507,29109,29703 mul $0,2 add $0,1 pow $0,2 dif $0,3 div $0,24 mul $0,18 add $0,3
55.909091
497
0.762602
ecc791d204d546050a373c076e421058c50e2670
154
asm
Assembly
libsrc/_DEVELOPMENT/arch/ts2068/display/c/sccz80/tshr_px2bitmask.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
libsrc/_DEVELOPMENT/arch/ts2068/display/c/sccz80/tshr_px2bitmask.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
libsrc/_DEVELOPMENT/arch/ts2068/display/c/sccz80/tshr_px2bitmask.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
; uchar tshr_px2bitmask(uchar x) SECTION code_clib SECTION code_arch PUBLIC tshr_px2bitmask EXTERN zx_px2bitmask defc tshr_px2bitmask = zx_px2bitmask
14
36
0.844156
306376f6912e5c0650825b291c3c8bb0dc45a868
3,933
asm
Assembly
hooks/disasm.asm
kun1z/ksmod
4375b3f13bb48d2d1f619bd297f631b1b70329ba
[ "Unlicense" ]
1
2021-02-26T22:06:27.000Z
2021-02-26T22:06:27.000Z
hooks/disasm.asm
kun1z/ksmod
4375b3f13bb48d2d1f619bd297f631b1b70329ba
[ "Unlicense" ]
null
null
null
hooks/disasm.asm
kun1z/ksmod
4375b3f13bb48d2d1f619bd297f631b1b70329ba
[ "Unlicense" ]
null
null
null
; Copyright © 2005 - 2021 by Brett Kuntz. All rights reserved. DisAsm proto :dword, :dword RubTheStub proto :dword, :dword, :dword InvalidInst proto :dword ExistingHook proto Hook proto :dword, :dword, :dword, :dword, :dword .code ; ########################################################################## Hook proc szModule:dword, szProcedure:dword, pHook:dword, pStub:dword, pRet:dword local Stub[STUBSIZE]:byte local StubSize:dword local LocalOrig:dword invoke GetModuleHandle, szModule invoke GetProcAddress, eax, szProcedure mov LocalOrig, eax invoke DisAsm, LocalOrig, addr Stub mov StubSize, eax invoke RubTheStub, pStub, addr Stub, StubSize invoke SetJMP, LocalOrig, pHook mov eax, StubSize add eax, LocalOrig mov ecx, pRet mov dword ptr [ecx], eax ret Hook endp ; ########################################################################## RubTheStub proc pOffset:dword, pStub:dword, pStubSize:dword local meminfo:MEMORY_BASIC_INFORMATION invoke VirtualProtect, pOffset, STUBSIZE, PAGE_EXECUTE_READWRITE, addr meminfo mov eax, pOffset mov ecx, pStubSize mov edx, pStub push ebx .while ecx != 0 dec ecx mov bl, byte ptr [edx+ecx] mov byte ptr [eax+ecx], bl .endw pop ebx ret RubTheStub endp ; ########################################################################## DisAsm proc pOffset:dword, pStub:dword push ebx mov edx, pOffset mov ecx, edx @@: mov al, byte ptr [edx] mov ebx, edx ; Later we check to see if we didn't disasm anything... .if al == 0E8h || al == 0E9h invoke ExistingHook .endif .if al == 8Bh mov ah, byte ptr [edx+1] and ah, 11000000b .if ah == 11000000b ; MOV REG, REG add edx, 2 .endif .endif mov ah, al and ah, 11111000b .if ah == 01010000b ; PUSH REG inc edx .elseif ah == 10111000b ; MOV REG, DWORD add edx, 5 .elseif ah == 10110000b ; MOV REG, BYTE add edx, 2 .endif .if al == 01101000b ; PUSH DWORD add edx, 5 .elseif al == 01101010b ; PUSH BYTE add edx, 2 .endif .if ebx == edx ; We didn't find any instructions in our mini-disasm invoke InvalidInst, ebx .endif mov eax, ecx sub eax, edx cmp eax, -5 ; We need at least 5 bytes of room for a patch jg @B neg eax push eax ; Self-modifying code (copies stub into our dll procedures) mov ecx, pStub mov edx, pOffset @@: mov ah, byte ptr [edx] mov byte ptr [ecx], ah inc edx inc ecx dec al jnz @B pop eax pop ebx ret DisAsm endp ; ########################################################################## InvalidInst proc pOffset:dword local buffer[64]:byte mov edx, pOffset mov eax, dword ptr [edx] bswap eax mov ebx, dword ptr [edx+4] bswap ebx mov ecx, dword ptr [edx+8] bswap ecx invoke wsprintfA, addr buffer, text("Invalid Instruction: %08X-%08X-%08X"), eax, ebx, ecx invoke MessageBoxA, 0, addr buffer, text("KSMod"), 1000h invoke ExitProcess, 0 InvalidInst endp ; ########################################################################## ExistingHook proc invoke MessageBoxA, 0, text("A security program or a piece of malware (for example, a rootkit) is blocking KSMod's ability to function properly. Please switch security applications off and/or scan your system for malware."), text("KSMod"), 1000h invoke ExitProcess, 0 ExistingHook endp ; ##########################################################################
23.692771
250
0.524536
8fc9f8ac91ff14fc25a945736de9d32b81022f43
259
asm
Assembly
programs/oeis/070/A070726.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/070/A070726.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/070/A070726.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A070726: a(n) = n^7 mod 46. ; 0,1,36,25,8,17,26,5,12,27,14,7,16,9,42,11,18,43,6,15,44,33,22,23,24,13,2,31,40,3,28,35,4,37,30,39,32,19,34,41,20,29,38,21,10,45,0,1,36,25,8,17,26,5,12,27,14,7,16,9,42,11,18,43,6,15,44,33,22,23,24,13,2,31,40 pow $0,7 mod $0,46
43.166667
208
0.6139
b30309f1fff08b2dbfa49813c1acbd2413d88cb2
1,706
asm
Assembly
programs/oeis/017/A017166.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/017/A017166.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/017/A017166.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A017166: a(n) = (9*n)^6. ; 0,531441,34012224,387420489,2176782336,8303765625,24794911296,62523502209,139314069504,282429536481,531441000000,941480149401,1586874322944,2565164201769,4001504141376,6053445140625,8916100448256,12827693806929,18075490334784,25002110044521,34012224000000,45579633110361,60254729561664,78672340886049,101559956668416,129746337890625,164170508913216,205891132094649,256096265048064,316113500535561,387420489000000,471655843734321,570630428688384,686339028913329,820972403643456,976929722015625,1156831381426176,1363532208525369,1600135042849344,1870004703089601,2176782336000000,2524400147941281,2917096519063104,3359431500123609,3856302691946496,4412961507515625,5035029816707136,5728516973659089,6499837226778624,7355827511386641,8303765625000000,9351388785251241,10506912570445824,11779050242756889,13177032454057536,14710627334390625,16390160963076096,18226538222455809,20231264034275904,22416464978706681,24794911296000000,27380039270784201,30185973998996544,33227552537453169,36520347436056576,40080690652640625,43925697850453056,48073293078275529,52542233833181184,57352136505929721,62523502209000000,68077742987260161,74037208411275264,80425212553252449,87266061345623616,94585080322265625,102408642742358016,110764198096878249,119680300997734464,129186640449535761,139314069504000000,150094635296999121,161561609468241984,173749518963594729,186694177220038656,200432715733265625,215003616007910976,230446741890423969,246803372284575744,264116234249604801,282429536481000000,301789003173921081,322241908269256704,343837110082320009,366625086314181696,390657969445640625,415989582513831936,442675475271472689,470772960728745024,500341152077816841 pow $0,6 mul $0,531441
284.333333
1,654
0.926143
fc3d030769110cbb1e01ba7179edcbd2d930f338
243
asm
Assembly
Application2.2.asm
abdalmoez/applications-on-gnusim-8085
a8f28efb15a7cd0301db5af21ed027e1c23885c3
[ "MIT" ]
null
null
null
Application2.2.asm
abdalmoez/applications-on-gnusim-8085
a8f28efb15a7cd0301db5af21ed027e1c23885c3
[ "MIT" ]
null
null
null
Application2.2.asm
abdalmoez/applications-on-gnusim-8085
a8f28efb15a7cd0301db5af21ed027e1c23885c3
[ "MIT" ]
null
null
null
;<Add 2 numbers 16bits> LHLD number1 XCHG LHLD number2 MVI C,00 DAD D JNC AHEAD INR C AHEAD: SHLD result MOV A,C STA carry HLT number1: db 255,70 number2: db 255,200 result: db 0,0 carry: db 0
12.789474
23
0.588477
64db42c1da924178a9c20aa2dbb0ea9828dd8bdc
173
asm
Assembly
data/pokemon/dex_entries/empoleon.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
data/pokemon/dex_entries/empoleon.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
data/pokemon/dex_entries/empoleon.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
db "EMPEROR@" ; species name db "It will avoid " next "unnecessary" next "disputes, but it" page "decimates anything" next "that would damage" next "its pride.@"
17.3
29
0.676301
f8b31bf72fda7fa23c555fbe89e71920fa5af19c
3,417
asm
Assembly
programs/oeis/157/A157378.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/157/A157378.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/157/A157378.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A157378: a(n) = 43046721*n^2 - 50729652*n + 14945957. ; 7263026,85673537,250177490,500774885,837465722,1260250001,1769127722,2364098885,3045163490,3812321537,4665573026,5604917957,6630356330,7741888145,8939513402,10223232101,11593044242,13048949825,14590948850,16219041317,17933227226,19733506577,21619879370,23592345605,25650905282,27795558401,30026304962,32343144965,34746078410,37235105297,39810225626,42471439397,45218746610,48052147265,50971641362,53977228901,57068909882,60246684305,63510552170,66860513477,70296568226,73818716417,77426958050,81121293125,84901721642,88768243601,92720859002,96759567845,100884370130,105095265857,109392255026,113775337637,118244513690,122799783185,127441146122,132168602501,136982152322,141881795585,146867532290,151939362437,157097286026,162341303057,167671413530,173087617445,178589914802,184178305601,189852789842,195613367525,201460038650,207392803217,213411661226,219516612677,225707657570,231984795905,238348027682,244797352901,251332771562,257954283665,264661889210,271455588197,278335380626,285301266497,292353245810,299491318565,306715484762,314025744401,321422097482,328904544005,336473083970,344127717377,351868444226,359695264517,367608178250,375607185425,383692286042,391863480101,400120767602,408464148545,416893622930,425409190757,434010852026,442698606737,451472454890,460332396485,469278431522,478310560001,487428781922,496633097285,505923506090,515300008337,524762604026,534311293157,543946075730,553666951745,563473921202,573366984101,583346140442,593411390225,603562733450,613800170117,624123700226,634533323777,645029040770,655610851205,666278755082,677032752401,687872843162,698799027365,709811305010,720909676097,732094140626,743364698597,754721350010,766164094865,777692933162,789307864901,801008890082,812796008705,824669220770,836628526277,848673925226,860805417617,873023003450,885326682725,897716455442,910192321601,922754281202,935402334245,948136480730,960956720657,973863054026,986855480837,999934001090,1013098614785,1026349321922,1039686122501,1053109016522,1066618003985,1080213084890,1093894259237,1107661527026,1121514888257,1135454342930,1149479891045,1163591532602,1177789267601,1192073096042,1206443017925,1220899033250,1235441142017,1250069344226,1264783639877,1279584028970,1294470511505,1309443087482,1324501756901,1339646519762,1354877376065,1370194325810,1385597368997,1401086505626,1416661735697,1432323059210,1448070476165,1463903986562,1479823590401,1495829287682,1511921078405,1528098962570,1544362940177,1560713011226,1577149175717,1593671433650,1610279785025,1626974229842,1643754768101,1660621399802,1677574124945,1694612943530,1711737855557,1728948861026,1746245959937,1763629152290,1781098438085,1798653817322,1816295290001,1834022856122,1851836515685,1869736268690,1887722115137,1905794055026,1923952088357,1942196215130,1960526435345,1978942749002,1997445156101,2016033656642,2034708250625,2053468938050,2072315718917,2091248593226,2110267560977,2129372622170,2148563776805,2167841024882,2187204366401,2206653801362,2226189329765,2245810951610,2265518666897,2285312475626,2305192377797,2325158373410,2345210462465,2365348644962,2385572920901,2405883290282,2426279753105,2446762309370,2467330959077,2487985702226,2508726538817,2529553468850,2550466492325,2571465609242,2592550819601,2613722123402,2634979520645,2656323011330,2677752595457 cal $0,157377 ; a(n) = 531441*n - 313146. pow $0,2 mov $1,$0 div $1,6561 add $1,1
379.666667
3,277
0.910155
6742877415101fdc22ef55eff4134f4c4b5d323a
46,364
nasm
Assembly
example-output/SyscallsStubs.x86.nasm
iNoSec2/SysWhispers2
d224e27a631941f6cb71f730f262e7bd09005da0
[ "Apache-2.0" ]
1
2022-03-27T13:44:02.000Z
2022-03-27T13:44:02.000Z
example-output/SyscallsStubs.x86.nasm
FDlucifer/SysWhispers2
d224e27a631941f6cb71f730f262e7bd09005da0
[ "Apache-2.0" ]
null
null
null
example-output/SyscallsStubs.x86.nasm
FDlucifer/SysWhispers2
d224e27a631941f6cb71f730f262e7bd09005da0
[ "Apache-2.0" ]
1
2022-03-28T18:59:46.000Z
2022-03-28T18:59:46.000Z
[SECTION .data] global _NtAccessCheck global _NtWorkerFactoryWorkerReady global _NtAcceptConnectPort global _NtMapUserPhysicalPagesScatter global _NtWaitForSingleObject global _NtCallbackReturn global _NtReadFile global _NtDeviceIoControlFile global _NtWriteFile global _NtRemoveIoCompletion global _NtReleaseSemaphore global _NtReplyWaitReceivePort global _NtReplyPort global _NtSetInformationThread global _NtSetEvent global _NtClose global _NtQueryObject global _NtQueryInformationFile global _NtOpenKey global _NtEnumerateValueKey global _NtFindAtom global _NtQueryDefaultLocale global _NtQueryKey global _NtQueryValueKey global _NtAllocateVirtualMemory global _NtQueryInformationProcess global _NtWaitForMultipleObjects32 global _NtWriteFileGather global _NtCreateKey global _NtFreeVirtualMemory global _NtImpersonateClientOfPort global _NtReleaseMutant global _NtQueryInformationToken global _NtRequestWaitReplyPort global _NtQueryVirtualMemory global _NtOpenThreadToken global _NtQueryInformationThread global _NtOpenProcess global _NtSetInformationFile global _NtMapViewOfSection global _NtAccessCheckAndAuditAlarm global _NtUnmapViewOfSection global _NtReplyWaitReceivePortEx global _NtTerminateProcess global _NtSetEventBoostPriority global _NtReadFileScatter global _NtOpenThreadTokenEx global _NtOpenProcessTokenEx global _NtQueryPerformanceCounter global _NtEnumerateKey global _NtOpenFile global _NtDelayExecution global _NtQueryDirectoryFile global _NtQuerySystemInformation global _NtOpenSection global _NtQueryTimer global _NtFsControlFile global _NtWriteVirtualMemory global _NtCloseObjectAuditAlarm global _NtDuplicateObject global _NtQueryAttributesFile global _NtClearEvent global _NtReadVirtualMemory global _NtOpenEvent global _NtAdjustPrivilegesToken global _NtDuplicateToken global _NtContinue global _NtQueryDefaultUILanguage global _NtQueueApcThread global _NtYieldExecution global _NtAddAtom global _NtCreateEvent global _NtQueryVolumeInformationFile global _NtCreateSection global _NtFlushBuffersFile global _NtApphelpCacheControl global _NtCreateProcessEx global _NtCreateThread global _NtIsProcessInJob global _NtProtectVirtualMemory global _NtQuerySection global _NtResumeThread global _NtTerminateThread global _NtReadRequestData global _NtCreateFile global _NtQueryEvent global _NtWriteRequestData global _NtOpenDirectoryObject global _NtAccessCheckByTypeAndAuditAlarm global _NtWaitForMultipleObjects global _NtSetInformationObject global _NtCancelIoFile global _NtTraceEvent global _NtPowerInformation global _NtSetValueKey global _NtCancelTimer global _NtSetTimer global _NtAccessCheckByType global _NtAccessCheckByTypeResultList global _NtAccessCheckByTypeResultListAndAuditAlarm global _NtAccessCheckByTypeResultListAndAuditAlarmByHandle global _NtAcquireProcessActivityReference global _NtAddAtomEx global _NtAddBootEntry global _NtAddDriverEntry global _NtAdjustGroupsToken global _NtAdjustTokenClaimsAndDeviceGroups global _NtAlertResumeThread global _NtAlertThread global _NtAlertThreadByThreadId global _NtAllocateLocallyUniqueId global _NtAllocateReserveObject global _NtAllocateUserPhysicalPages global _NtAllocateUuids global _NtAllocateVirtualMemoryEx global _NtAlpcAcceptConnectPort global _NtAlpcCancelMessage global _NtAlpcConnectPort global _NtAlpcConnectPortEx global _NtAlpcCreatePort global _NtAlpcCreatePortSection global _NtAlpcCreateResourceReserve global _NtAlpcCreateSectionView global _NtAlpcCreateSecurityContext global _NtAlpcDeletePortSection global _NtAlpcDeleteResourceReserve global _NtAlpcDeleteSectionView global _NtAlpcDeleteSecurityContext global _NtAlpcDisconnectPort global _NtAlpcImpersonateClientContainerOfPort global _NtAlpcImpersonateClientOfPort global _NtAlpcOpenSenderProcess global _NtAlpcOpenSenderThread global _NtAlpcQueryInformation global _NtAlpcQueryInformationMessage global _NtAlpcRevokeSecurityContext global _NtAlpcSendWaitReceivePort global _NtAlpcSetInformation global _NtAreMappedFilesTheSame global _NtAssignProcessToJobObject global _NtAssociateWaitCompletionPacket global _NtCallEnclave global _NtCancelIoFileEx global _NtCancelSynchronousIoFile global _NtCancelTimer2 global _NtCancelWaitCompletionPacket global _NtCommitComplete global _NtCommitEnlistment global _NtCommitRegistryTransaction global _NtCommitTransaction global _NtCompactKeys global _NtCompareObjects global _NtCompareSigningLevels global _NtCompareTokens global _NtCompleteConnectPort global _NtCompressKey global _NtConnectPort global _NtConvertBetweenAuxiliaryCounterAndPerformanceCounter global _NtCreateDebugObject global _NtCreateDirectoryObject global _NtCreateDirectoryObjectEx global _NtCreateEnclave global _NtCreateEnlistment global _NtCreateEventPair global _NtCreateIRTimer global _NtCreateIoCompletion global _NtCreateJobObject global _NtCreateJobSet global _NtCreateKeyTransacted global _NtCreateKeyedEvent global _NtCreateLowBoxToken global _NtCreateMailslotFile global _NtCreateMutant global _NtCreateNamedPipeFile global _NtCreatePagingFile global _NtCreatePartition global _NtCreatePort global _NtCreatePrivateNamespace global _NtCreateProcess global _NtCreateProfile global _NtCreateProfileEx global _NtCreateRegistryTransaction global _NtCreateResourceManager global _NtCreateSemaphore global _NtCreateSymbolicLinkObject global _NtCreateThreadEx global _NtCreateTimer global _NtCreateTimer2 global _NtCreateToken global _NtCreateTokenEx global _NtCreateTransaction global _NtCreateTransactionManager global _NtCreateUserProcess global _NtCreateWaitCompletionPacket global _NtCreateWaitablePort global _NtCreateWnfStateName global _NtCreateWorkerFactory global _NtDebugActiveProcess global _NtDebugContinue global _NtDeleteAtom global _NtDeleteBootEntry global _NtDeleteDriverEntry global _NtDeleteFile global _NtDeleteKey global _NtDeleteObjectAuditAlarm global _NtDeletePrivateNamespace global _NtDeleteValueKey global _NtDeleteWnfStateData global _NtDeleteWnfStateName global _NtDisableLastKnownGood global _NtDisplayString global _NtDrawText global _NtEnableLastKnownGood global _NtEnumerateBootEntries global _NtEnumerateDriverEntries global _NtEnumerateSystemEnvironmentValuesEx global _NtEnumerateTransactionObject global _NtExtendSection global _NtFilterBootOption global _NtFilterToken global _NtFilterTokenEx global _NtFlushBuffersFileEx global _NtFlushInstallUILanguage global _NtFlushInstructionCache global _NtFlushKey global _NtFlushProcessWriteBuffers global _NtFlushVirtualMemory global _NtFlushWriteBuffer global _NtFreeUserPhysicalPages global _NtFreezeRegistry global _NtFreezeTransactions global _NtGetCachedSigningLevel global _NtGetCompleteWnfStateSubscription global _NtGetContextThread global _NtGetCurrentProcessorNumber global _NtGetCurrentProcessorNumberEx global _NtGetDevicePowerState global _NtGetMUIRegistryInfo global _NtGetNextProcess global _NtGetNextThread global _NtGetNlsSectionPtr global _NtGetNotificationResourceManager global _NtGetWriteWatch global _NtImpersonateAnonymousToken global _NtImpersonateThread global _NtInitializeEnclave global _NtInitializeNlsFiles global _NtInitializeRegistry global _NtInitiatePowerAction global _NtIsSystemResumeAutomatic global _NtIsUILanguageComitted global _NtListenPort global _NtLoadDriver global _NtLoadEnclaveData global _NtLoadHotPatch global _NtLoadKey global _NtLoadKey2 global _NtLoadKeyEx global _NtLockFile global _NtLockProductActivationKeys global _NtLockRegistryKey global _NtLockVirtualMemory global _NtMakePermanentObject global _NtMakeTemporaryObject global _NtManagePartition global _NtMapCMFModule global _NtMapUserPhysicalPages global _NtMapViewOfSectionEx global _NtModifyBootEntry global _NtModifyDriverEntry global _NtNotifyChangeDirectoryFile global _NtNotifyChangeDirectoryFileEx global _NtNotifyChangeKey global _NtNotifyChangeMultipleKeys global _NtNotifyChangeSession global _NtOpenEnlistment global _NtOpenEventPair global _NtOpenIoCompletion global _NtOpenJobObject global _NtOpenKeyEx global _NtOpenKeyTransacted global _NtOpenKeyTransactedEx global _NtOpenKeyedEvent global _NtOpenMutant global _NtOpenObjectAuditAlarm global _NtOpenPartition global _NtOpenPrivateNamespace global _NtOpenProcessToken global _NtOpenRegistryTransaction global _NtOpenResourceManager global _NtOpenSemaphore global _NtOpenSession global _NtOpenSymbolicLinkObject global _NtOpenThread global _NtOpenTimer global _NtOpenTransaction global _NtOpenTransactionManager global _NtPlugPlayControl global _NtPrePrepareComplete global _NtPrePrepareEnlistment global _NtPrepareComplete global _NtPrepareEnlistment global _NtPrivilegeCheck global _NtPrivilegeObjectAuditAlarm global _NtPrivilegedServiceAuditAlarm global _NtPropagationComplete global _NtPropagationFailed global _NtPulseEvent global _NtQueryAuxiliaryCounterFrequency global _NtQueryBootEntryOrder global _NtQueryBootOptions global _NtQueryDebugFilterState global _NtQueryDirectoryFileEx global _NtQueryDirectoryObject global _NtQueryDriverEntryOrder global _NtQueryEaFile global _NtQueryFullAttributesFile global _NtQueryInformationAtom global _NtQueryInformationByName global _NtQueryInformationEnlistment global _NtQueryInformationJobObject global _NtQueryInformationPort global _NtQueryInformationResourceManager global _NtQueryInformationTransaction global _NtQueryInformationTransactionManager global _NtQueryInformationWorkerFactory global _NtQueryInstallUILanguage global _NtQueryIntervalProfile global _NtQueryIoCompletion global _NtQueryLicenseValue global _NtQueryMultipleValueKey global _NtQueryMutant global _NtQueryOpenSubKeys global _NtQueryOpenSubKeysEx global _NtQueryPortInformationProcess global _NtQueryQuotaInformationFile global _NtQuerySecurityAttributesToken global _NtQuerySecurityObject global _NtQuerySecurityPolicy global _NtQuerySemaphore global _NtQuerySymbolicLinkObject global _NtQuerySystemEnvironmentValue global _NtQuerySystemEnvironmentValueEx global _NtQuerySystemInformationEx global _NtQueryTimerResolution global _NtQueryWnfStateData global _NtQueryWnfStateNameInformation global _NtQueueApcThreadEx global _NtRaiseException global _NtRaiseHardError global _NtReadOnlyEnlistment global _NtRecoverEnlistment global _NtRecoverResourceManager global _NtRecoverTransactionManager global _NtRegisterProtocolAddressInformation global _NtRegisterThreadTerminatePort global _NtReleaseKeyedEvent global _NtReleaseWorkerFactoryWorker global _NtRemoveIoCompletionEx global _NtRemoveProcessDebug global _NtRenameKey global _NtRenameTransactionManager global _NtReplaceKey global _NtReplacePartitionUnit global _NtReplyWaitReplyPort global _NtRequestPort global _NtResetEvent global _NtResetWriteWatch global _NtRestoreKey global _NtResumeProcess global _NtRevertContainerImpersonation global _NtRollbackComplete global _NtRollbackEnlistment global _NtRollbackRegistryTransaction global _NtRollbackTransaction global _NtRollforwardTransactionManager global _NtSaveKey global _NtSaveKeyEx global _NtSaveMergedKeys global _NtSecureConnectPort global _NtSerializeBoot global _NtSetBootEntryOrder global _NtSetBootOptions global _NtSetCachedSigningLevel global _NtSetCachedSigningLevel2 global _NtSetContextThread global _NtSetDebugFilterState global _NtSetDefaultHardErrorPort global _NtSetDefaultLocale global _NtSetDefaultUILanguage global _NtSetDriverEntryOrder global _NtSetEaFile global _NtSetHighEventPair global _NtSetHighWaitLowEventPair global _NtSetIRTimer global _NtSetInformationDebugObject global _NtSetInformationEnlistment global _NtSetInformationJobObject global _NtSetInformationKey global _NtSetInformationResourceManager global _NtSetInformationSymbolicLink global _NtSetInformationToken global _NtSetInformationTransaction global _NtSetInformationTransactionManager global _NtSetInformationVirtualMemory global _NtSetInformationWorkerFactory global _NtSetIntervalProfile global _NtSetIoCompletion global _NtSetIoCompletionEx global _NtSetLdtEntries global _NtSetLowEventPair global _NtSetLowWaitHighEventPair global _NtSetQuotaInformationFile global _NtSetSecurityObject global _NtSetSystemEnvironmentValue global _NtSetSystemEnvironmentValueEx global _NtSetSystemInformation global _NtSetSystemPowerState global _NtSetSystemTime global _NtSetThreadExecutionState global _NtSetTimer2 global _NtSetTimerEx global _NtSetTimerResolution global _NtSetUuidSeed global _NtSetVolumeInformationFile global _NtSetWnfProcessNotificationEvent global _NtShutdownSystem global _NtShutdownWorkerFactory global _NtSignalAndWaitForSingleObject global _NtSinglePhaseReject global _NtStartProfile global _NtStopProfile global _NtSubscribeWnfStateChange global _NtSuspendProcess global _NtSuspendThread global _NtSystemDebugControl global _NtTerminateEnclave global _NtTerminateJobObject global _NtTestAlert global _NtThawRegistry global _NtThawTransactions global _NtTraceControl global _NtTranslateFilePath global _NtUmsThreadYield global _NtUnloadDriver global _NtUnloadKey global _NtUnloadKey2 global _NtUnloadKeyEx global _NtUnlockFile global _NtUnlockVirtualMemory global _NtUnmapViewOfSectionEx global _NtUnsubscribeWnfStateChange global _NtUpdateWnfStateData global _NtVdmControl global _NtWaitForAlertByThreadId global _NtWaitForDebugEvent global _NtWaitForKeyedEvent global _NtWaitForWorkViaWorkerFactory global _NtWaitHighEventPair global _NtWaitLowEventPair global _NtAcquireCMFViewOwnership global _NtCancelDeviceWakeupRequest global _NtClearAllSavepointsTransaction global _NtClearSavepointTransaction global _NtRollbackSavepointTransaction global _NtSavepointTransaction global _NtSavepointComplete global _NtCreateSectionEx global _NtCreateCrossVmEvent global _NtGetPlugPlayEvent global _NtListTransactions global _NtMarshallTransaction global _NtPullTransaction global _NtReleaseCMFViewOwnership global _NtWaitForWnfNotifications global _NtStartTm global _NtSetInformationProcess global _NtRequestDeviceWakeup global _NtRequestWakeupLatency global _NtQuerySystemTime global _NtManageHotPatch global _NtContinueEx global _RtlCreateUserThread global _WhisperMain extern _SW2_GetSyscallNumber [SECTION .text] BITS 32 _WhisperMain: pop eax ; Remove return address from CALL instruction call _SW2_GetSyscallNumber ; Resolve function hash into syscall number add esp, 4 ; Restore ESP mov ecx, [fs:0c0h] test ecx, ecx jne _wow64 lea edx, [esp+4h] INT 02eh ret _wow64: xor ecx, ecx lea edx, [esp+4h] call dword [fs:0c0h] ret _NtAccessCheck: push 0FA40F4F9h call _WhisperMain _NtWorkerFactoryWorkerReady: push 011A63B35h call _WhisperMain _NtAcceptConnectPort: push 064F17B62h call _WhisperMain _NtMapUserPhysicalPagesScatter: push 0238A0D17h call _WhisperMain _NtWaitForSingleObject: push 0009E3E33h call _WhisperMain _NtCallbackReturn: push 0168C371Ah call _WhisperMain _NtReadFile: push 0C544CDF1h call _WhisperMain _NtDeviceIoControlFile: push 022342AD2h call _WhisperMain _NtWriteFile: push 0E97AEB1Fh call _WhisperMain _NtRemoveIoCompletion: push 0088E0821h call _WhisperMain _NtReleaseSemaphore: push 034A10CFCh call _WhisperMain _NtReplyWaitReceivePort: push 0ACFE8EA0h call _WhisperMain _NtReplyPort: push 062B0692Eh call _WhisperMain _NtSetInformationThread: push 00A2E4E86h call _WhisperMain _NtSetEvent: push 058924AF4h call _WhisperMain _NtClose: push 00352369Dh call _WhisperMain _NtQueryObject: push 08CA077CCh call _WhisperMain _NtQueryInformationFile: push 0A635B086h call _WhisperMain _NtOpenKey: push 00F1A54C7h call _WhisperMain _NtEnumerateValueKey: push 016AB2319h call _WhisperMain _NtFindAtom: push 03565D433h call _WhisperMain _NtQueryDefaultLocale: push 0025D728Bh call _WhisperMain _NtQueryKey: push 008172BACh call _WhisperMain _NtQueryValueKey: push 0E15C142Eh call _WhisperMain _NtAllocateVirtualMemory: push 01F88E9E7h call _WhisperMain _NtQueryInformationProcess: push 0D99B2213h call _WhisperMain _NtWaitForMultipleObjects32: push 08E9DAF4Ah call _WhisperMain _NtWriteFileGather: push 02B907B53h call _WhisperMain _NtCreateKey: push 07EC9073Bh call _WhisperMain _NtFreeVirtualMemory: push 0099E0519h call _WhisperMain _NtImpersonateClientOfPort: push 060F36F68h call _WhisperMain _NtReleaseMutant: push 02D4A0AD0h call _WhisperMain _NtQueryInformationToken: push 035AA1F32h call _WhisperMain _NtRequestWaitReplyPort: push 0E273D9DCh call _WhisperMain _NtQueryVirtualMemory: push 09514A39Bh call _WhisperMain _NtOpenThreadToken: push 0F8512DEAh call _WhisperMain _NtQueryInformationThread: push 024881E11h call _WhisperMain _NtOpenProcess: push 006AC0521h call _WhisperMain _NtSetInformationFile: push 0CA7AC2ECh call _WhisperMain _NtMapViewOfSection: push 004960E0Bh call _WhisperMain _NtAccessCheckAndAuditAlarm: push 00F2EC371h call _WhisperMain _NtUnmapViewOfSection: push 0568C3591h call _WhisperMain _NtReplyWaitReceivePortEx: push 0A25FEA98h call _WhisperMain _NtTerminateProcess: push 0FE26D5BBh call _WhisperMain _NtSetEventBoostPriority: push 030863C0Ch call _WhisperMain _NtReadFileScatter: push 0159C1D07h call _WhisperMain _NtOpenThreadTokenEx: push 02FBAF2EFh call _WhisperMain _NtOpenProcessTokenEx: push 0791FB957h call _WhisperMain _NtQueryPerformanceCounter: push 037D24B39h call _WhisperMain _NtEnumerateKey: push 0B6AE97F4h call _WhisperMain _NtOpenFile: push 0AD1C2B01h call _WhisperMain _NtDelayExecution: push 0520D529Fh call _WhisperMain _NtQueryDirectoryFile: push 058BBAAE2h call _WhisperMain _NtQuerySystemInformation: push 054CD765Dh call _WhisperMain _NtOpenSection: push 00A9E284Fh call _WhisperMain _NtQueryTimer: push 0179F7F46h call _WhisperMain _NtFsControlFile: push 06AF45662h call _WhisperMain _NtWriteVirtualMemory: push 005953B23h call _WhisperMain _NtCloseObjectAuditAlarm: push 05CDA584Ch call _WhisperMain _NtDuplicateObject: push 03EA1F6FDh call _WhisperMain _NtQueryAttributesFile: push 0DD5DD9FDh call _WhisperMain _NtClearEvent: push 0200B65DAh call _WhisperMain _NtReadVirtualMemory: push 0071473E9h call _WhisperMain _NtOpenEvent: push 030D52978h call _WhisperMain _NtAdjustPrivilegesToken: push 001940B2Dh call _WhisperMain _NtDuplicateToken: push 06DD92558h call _WhisperMain _NtContinue: push 0009CD3D0h call _WhisperMain _NtQueryDefaultUILanguage: push 013C5D178h call _WhisperMain _NtQueueApcThread: push 02E8A0C2Bh call _WhisperMain _NtYieldExecution: push 014B63E33h call _WhisperMain _NtAddAtom: push 022BF272Eh call _WhisperMain _NtCreateEvent: push 0B0B4AF3Fh call _WhisperMain _NtQueryVolumeInformationFile: push 0E5B3BD76h call _WhisperMain _NtCreateSection: push 04EC54C51h call _WhisperMain _NtFlushBuffersFile: push 06CFB5E2Eh call _WhisperMain _NtApphelpCacheControl: push 0FD6DDFBBh call _WhisperMain _NtCreateProcessEx: push 0B998FB42h call _WhisperMain _NtCreateThread: push 0AF8CB334h call _WhisperMain _NtIsProcessInJob: push 05CE54854h call _WhisperMain _NtProtectVirtualMemory: push 00F940311h call _WhisperMain _NtQuerySection: push 002EC25B9h call _WhisperMain _NtResumeThread: push 07D5445CFh call _WhisperMain _NtTerminateThread: push 0228E3037h call _WhisperMain _NtReadRequestData: push 0A23EB14Ch call _WhisperMain _NtCreateFile: push 02A9AE32Eh call _WhisperMain _NtQueryEvent: push 02AB1F0E6h call _WhisperMain _NtWriteRequestData: push 09DC08975h call _WhisperMain _NtOpenDirectoryObject: push 03C802E0Dh call _WhisperMain _NtAccessCheckByTypeAndAuditAlarm: push 0DD42B9D5h call _WhisperMain _NtWaitForMultipleObjects: push 061AD6331h call _WhisperMain _NtSetInformationObject: push 0271915A7h call _WhisperMain _NtCancelIoFile: push 0821B7543h call _WhisperMain _NtTraceEvent: push 0CAED7BD0h call _WhisperMain _NtPowerInformation: push 054C25A5Fh call _WhisperMain _NtSetValueKey: push 01DC11E58h call _WhisperMain _NtCancelTimer: push 001A23302h call _WhisperMain _NtSetTimer: push 005977F7Ch call _WhisperMain _NtAccessCheckByType: push 0D442E30Ah call _WhisperMain _NtAccessCheckByTypeResultList: push 07EA17221h call _WhisperMain _NtAccessCheckByTypeResultListAndAuditAlarm: push 0552A6982h call _WhisperMain _NtAccessCheckByTypeResultListAndAuditAlarmByHandle: push 099B41796h call _WhisperMain _NtAcquireProcessActivityReference: push 01A8958A0h call _WhisperMain _NtAddAtomEx: push 09390C74Ch call _WhisperMain _NtAddBootEntry: push 005951912h call _WhisperMain _NtAddDriverEntry: push 03B67B174h call _WhisperMain _NtAdjustGroupsToken: push 025971314h call _WhisperMain _NtAdjustTokenClaimsAndDeviceGroups: push 007900309h call _WhisperMain _NtAlertResumeThread: push 0A48BA81Ah call _WhisperMain _NtAlertThread: push 01CA4540Bh call _WhisperMain _NtAlertThreadByThreadId: push 0B8A26896h call _WhisperMain _NtAllocateLocallyUniqueId: push 0FFE51B65h call _WhisperMain _NtAllocateReserveObject: push 018B4E6C9h call _WhisperMain _NtAllocateUserPhysicalPages: push 019BF3A24h call _WhisperMain _NtAllocateUuids: push 0338FFDD3h call _WhisperMain _NtAllocateVirtualMemoryEx: push 0C8503B3Ah call _WhisperMain _NtAlpcAcceptConnectPort: push 030B2213Ch call _WhisperMain _NtAlpcCancelMessage: push 073D77E7Ch call _WhisperMain _NtAlpcConnectPort: push 03EB1DDDEh call _WhisperMain _NtAlpcConnectPortEx: push 0636DBF29h call _WhisperMain _NtAlpcCreatePort: push 0194B9F58h call _WhisperMain _NtAlpcCreatePortSection: push 0C4F5DE41h call _WhisperMain _NtAlpcCreateResourceReserve: push 0389F4A77h call _WhisperMain _NtAlpcCreateSectionView: push 02CA81D13h call _WhisperMain _NtAlpcCreateSecurityContext: push 0FA1DE794h call _WhisperMain _NtAlpcDeletePortSection: push 00C982C0Bh call _WhisperMain _NtAlpcDeleteResourceReserve: push 01888F4C3h call _WhisperMain _NtAlpcDeleteSectionView: push 056EC6753h call _WhisperMain _NtAlpcDeleteSecurityContext: push 008B3EDDAh call _WhisperMain _NtAlpcDisconnectPort: push 022B5D93Ah call _WhisperMain _NtAlpcImpersonateClientContainerOfPort: push 02233A722h call _WhisperMain _NtAlpcImpersonateClientOfPort: push 0D836C9DAh call _WhisperMain _NtAlpcOpenSenderProcess: push 0C654C5C9h call _WhisperMain _NtAlpcOpenSenderThread: push 0F85F36EDh call _WhisperMain _NtAlpcQueryInformation: push 0024618CEh call _WhisperMain _NtAlpcQueryInformationMessage: push 0A40091ADh call _WhisperMain _NtAlpcRevokeSecurityContext: push 040998DC8h call _WhisperMain _NtAlpcSendWaitReceivePort: push 022B2A5B8h call _WhisperMain _NtAlpcSetInformation: push 0C897E64Bh call _WhisperMain _NtAreMappedFilesTheSame: push 0D65AEDFDh call _WhisperMain _NtAssignProcessToJobObject: push 0FF2A6100h call _WhisperMain _NtAssociateWaitCompletionPacket: push 007B22910h call _WhisperMain _NtCallEnclave: push 08736BB65h call _WhisperMain _NtCancelIoFileEx: push 0F758392Dh call _WhisperMain _NtCancelSynchronousIoFile: push 0256033EAh call _WhisperMain _NtCancelTimer2: push 003A35E2Dh call _WhisperMain _NtCancelWaitCompletionPacket: push 0BC9C9AC6h call _WhisperMain _NtCommitComplete: push 00C9007FEh call _WhisperMain _NtCommitEnlistment: push 0164B0FC6h call _WhisperMain _NtCommitRegistryTransaction: push 004B43E31h call _WhisperMain _NtCommitTransaction: push 018813A51h call _WhisperMain _NtCompactKeys: push 057BA6A14h call _WhisperMain _NtCompareObjects: push 084648AF6h call _WhisperMain _NtCompareSigningLevels: push 0AEF09E73h call _WhisperMain _NtCompareTokens: push 0F494EC01h call _WhisperMain _NtCompleteConnectPort: push 03A7637F8h call _WhisperMain _NtCompressKey: push 0782E5F8Eh call _WhisperMain _NtConnectPort: push 0A23C9072h call _WhisperMain _NtConvertBetweenAuxiliaryCounterAndPerformanceCounter: push 079468945h call _WhisperMain _NtCreateDebugObject: push 0009E21C3h call _WhisperMain _NtCreateDirectoryObject: push 0FAD436BBh call _WhisperMain _NtCreateDirectoryObjectEx: push 0426E10B4h call _WhisperMain _NtCreateEnclave: push 0CA2FDE86h call _WhisperMain _NtCreateEnlistment: push 00F90ECC7h call _WhisperMain _NtCreateEventPair: push 012B1CCFCh call _WhisperMain _NtCreateIRTimer: push 0178C3F36h call _WhisperMain _NtCreateIoCompletion: push 00E1750D7h call _WhisperMain _NtCreateJobObject: push 0F65B6E57h call _WhisperMain _NtCreateJobSet: push 08740AF1Ch call _WhisperMain _NtCreateKeyTransacted: push 0A69A66C6h call _WhisperMain _NtCreateKeyedEvent: push 068CF755Eh call _WhisperMain _NtCreateLowBoxToken: push 017C73D1Ch call _WhisperMain _NtCreateMailslotFile: push 0E47DC2FEh call _WhisperMain _NtCreateMutant: push 0FDDC08A5h call _WhisperMain _NtCreateNamedPipeFile: push 0ED7AA75Bh call _WhisperMain _NtCreatePagingFile: push 054C36C00h call _WhisperMain _NtCreatePartition: push 0444E255Dh call _WhisperMain _NtCreatePort: push 02EB4CCDAh call _WhisperMain _NtCreatePrivateNamespace: push 009B1CFEBh call _WhisperMain _NtCreateProcess: push 081288EB0h call _WhisperMain _NtCreateProfile: push 06E3E6AA4h call _WhisperMain _NtCreateProfileEx: push 0029AC0C1h call _WhisperMain _NtCreateRegistryTransaction: push 0970FD3DEh call _WhisperMain _NtCreateResourceManager: push 06E52FA4Fh call _WhisperMain _NtCreateSemaphore: push 0FCB62D1Ah call _WhisperMain _NtCreateSymbolicLinkObject: push 083189384h call _WhisperMain _NtCreateThreadEx: push 096A7CC64h call _WhisperMain _NtCreateTimer: push 0E58D8F55h call _WhisperMain _NtCreateTimer2: push 0B0684CA6h call _WhisperMain _NtCreateToken: push 0099F9FBFh call _WhisperMain _NtCreateTokenEx: push 06022A67Ch call _WhisperMain _NtCreateTransaction: push 03CEE2243h call _WhisperMain _NtCreateTransactionManager: push 01BA730FAh call _WhisperMain _NtCreateUserProcess: push 0EC26CFBBh call _WhisperMain _NtCreateWaitCompletionPacket: push 001813F0Ah call _WhisperMain _NtCreateWaitablePort: push 0A97288DFh call _WhisperMain _NtCreateWnfStateName: push 0CED0FB42h call _WhisperMain _NtCreateWorkerFactory: push 0089C140Ah call _WhisperMain _NtDebugActiveProcess: push 0923099ADh call _WhisperMain _NtDebugContinue: push 05D24BC68h call _WhisperMain _NtDeleteAtom: push 0BED35C8Bh call _WhisperMain _NtDeleteBootEntry: push 0336B3BE4h call _WhisperMain _NtDeleteDriverEntry: push 033930B14h call _WhisperMain _NtDeleteFile: push 06EF46592h call _WhisperMain _NtDeleteKey: push 03AEE1D71h call _WhisperMain _NtDeleteObjectAuditAlarm: push 016B57464h call _WhisperMain _NtDeletePrivateNamespace: push 02A88393Fh call _WhisperMain _NtDeleteValueKey: push 036820931h call _WhisperMain _NtDeleteWnfStateData: push 032CE441Ah call _WhisperMain _NtDeleteWnfStateName: push 0A8B02387h call _WhisperMain _NtDisableLastKnownGood: push 0386B35C2h call _WhisperMain _NtDisplayString: push 076E83238h call _WhisperMain _NtDrawText: push 04918735Eh call _WhisperMain _NtEnableLastKnownGood: push 02DBE03F4h call _WhisperMain _NtEnumerateBootEntries: push 02C97BD9Bh call _WhisperMain _NtEnumerateDriverEntries: push 07CDC2D7Fh call _WhisperMain _NtEnumerateSystemEnvironmentValuesEx: push 053AF8FFBh call _WhisperMain _NtEnumerateTransactionObject: push 096B4A608h call _WhisperMain _NtExtendSection: push 00E8A340Fh call _WhisperMain _NtFilterBootOption: push 008A20BCFh call _WhisperMain _NtFilterToken: push 07FD56972h call _WhisperMain _NtFilterTokenEx: push 08E59B5DBh call _WhisperMain _NtFlushBuffersFileEx: push 026D4E08Ah call _WhisperMain _NtFlushInstallUILanguage: push 0A5BAD1A1h call _WhisperMain _NtFlushInstructionCache: push 00DAE4997h call _WhisperMain _NtFlushKey: push 09ED4BF6Eh call _WhisperMain _NtFlushProcessWriteBuffers: push 0D83A3DA2h call _WhisperMain _NtFlushVirtualMemory: push 08713938Fh call _WhisperMain _NtFlushWriteBuffer: push 0A538B5A7h call _WhisperMain _NtFreeUserPhysicalPages: push 0E5BEEE26h call _WhisperMain _NtFreezeRegistry: push 0069B203Bh call _WhisperMain _NtFreezeTransactions: push 04FAA257Dh call _WhisperMain _NtGetCachedSigningLevel: push 076BCA01Eh call _WhisperMain _NtGetCompleteWnfStateSubscription: push 0148F1A13h call _WhisperMain _NtGetContextThread: push 00C9C1E2Dh call _WhisperMain _NtGetCurrentProcessorNumber: push 08E33C8E6h call _WhisperMain _NtGetCurrentProcessorNumberEx: push 05AD599AEh call _WhisperMain _NtGetDevicePowerState: push 0A43BB4B4h call _WhisperMain _NtGetMUIRegistryInfo: push 07ACEA663h call _WhisperMain _NtGetNextProcess: push 00DA3362Ch call _WhisperMain _NtGetNextThread: push 09A3DD48Fh call _WhisperMain _NtGetNlsSectionPtr: push 0FF5DD282h call _WhisperMain _NtGetNotificationResourceManager: push 0EFB2719Eh call _WhisperMain _NtGetWriteWatch: push 08AA31383h call _WhisperMain _NtImpersonateAnonymousToken: push 03F8F0F22h call _WhisperMain _NtImpersonateThread: push 0FA202799h call _WhisperMain _NtInitializeEnclave: push 02C9310D2h call _WhisperMain _NtInitializeNlsFiles: push 0744F05ACh call _WhisperMain _NtInitializeRegistry: push 034901C3Fh call _WhisperMain _NtInitiatePowerAction: push 0C690DF3Bh call _WhisperMain _NtIsSystemResumeAutomatic: push 0A4A02186h call _WhisperMain _NtIsUILanguageComitted: push 0D5EB91C3h call _WhisperMain _NtListenPort: push 0DCB0DF3Fh call _WhisperMain _NtLoadDriver: push 01C9F4E5Ch call _WhisperMain _NtLoadEnclaveData: push 0074E907Ah call _WhisperMain _NtLoadHotPatch: push 09F721D4Fh call _WhisperMain _NtLoadKey: push 03F1844E5h call _WhisperMain _NtLoadKey2: push 0DA270AA1h call _WhisperMain _NtLoadKeyEx: push 0BBFD8746h call _WhisperMain _NtLockFile: push 0E17FCDAFh call _WhisperMain _NtLockProductActivationKeys: push 067E66A7Ch call _WhisperMain _NtLockRegistryKey: push 0130628B6h call _WhisperMain _NtLockVirtualMemory: push 00B981D77h call _WhisperMain _NtMakePermanentObject: push 0243B2EA5h call _WhisperMain _NtMakeTemporaryObject: push 0263B5ED7h call _WhisperMain _NtManagePartition: push 008B1E6EDh call _WhisperMain _NtMapCMFModule: push 03917A320h call _WhisperMain _NtMapUserPhysicalPages: push 01142E82Ch call _WhisperMain _NtMapViewOfSectionEx: push 0BE9CE842h call _WhisperMain _NtModifyBootEntry: push 009941D38h call _WhisperMain _NtModifyDriverEntry: push 071E16D64h call _WhisperMain _NtNotifyChangeDirectoryFile: push 01999E00Dh call _WhisperMain _NtNotifyChangeDirectoryFileEx: push 06B97BFCBh call _WhisperMain _NtNotifyChangeKey: push 0CB12AAE8h call _WhisperMain _NtNotifyChangeMultipleKeys: push 07F837404h call _WhisperMain _NtNotifyChangeSession: push 0E78FE71Dh call _WhisperMain _NtOpenEnlistment: push 0BABADD51h call _WhisperMain _NtOpenEventPair: push 090B047E6h call _WhisperMain _NtOpenIoCompletion: push 00C656AADh call _WhisperMain _NtOpenJobObject: push 0429C0E63h call _WhisperMain _NtOpenKeyEx: push 06BDD9BA6h call _WhisperMain _NtOpenKeyTransacted: push 010CD1A62h call _WhisperMain _NtOpenKeyTransactedEx: push 086AEC878h call _WhisperMain _NtOpenKeyedEvent: push 050CB5D4Ah call _WhisperMain _NtOpenMutant: push 01693FCC5h call _WhisperMain _NtOpenObjectAuditAlarm: push 074B25FF4h call _WhisperMain _NtOpenPartition: push 00ABA2FF1h call _WhisperMain _NtOpenPrivateNamespace: push 0B09231BFh call _WhisperMain _NtOpenProcessToken: push 0079A848Bh call _WhisperMain _NtOpenRegistryTransaction: push 09A319AAFh call _WhisperMain _NtOpenResourceManager: push 0B66CDF77h call _WhisperMain _NtOpenSemaphore: push 0F6A700EFh call _WhisperMain _NtOpenSession: push 00D814956h call _WhisperMain _NtOpenSymbolicLinkObject: push 01904FB1Ah call _WhisperMain _NtOpenThread: push 01A394106h call _WhisperMain _NtOpenTimer: push 0EFDDD16Ch call _WhisperMain _NtOpenTransaction: push 005512406h call _WhisperMain _NtOpenTransactionManager: push 075CB4D46h call _WhisperMain _NtPlugPlayControl: push 03DAA0509h call _WhisperMain _NtPrePrepareComplete: push 02CB80836h call _WhisperMain _NtPrePrepareEnlistment: push 0CBA5EC3Eh call _WhisperMain _NtPrepareComplete: push 036B3A4BCh call _WhisperMain _NtPrepareEnlistment: push 009A70C2Dh call _WhisperMain _NtPrivilegeCheck: push 0369A4D17h call _WhisperMain _NtPrivilegeObjectAuditAlarm: push 0E121E24Fh call _WhisperMain _NtPrivilegedServiceAuditAlarm: push 018BE3C28h call _WhisperMain _NtPropagationComplete: push 0EC50B8DEh call _WhisperMain _NtPropagationFailed: push 03B967B3Dh call _WhisperMain _NtPulseEvent: push 0B83B91A6h call _WhisperMain _NtQueryAuxiliaryCounterFrequency: push 02A98F7CCh call _WhisperMain _NtQueryBootEntryOrder: push 01F8FFB1Dh call _WhisperMain _NtQueryBootOptions: push 03FA93D3Dh call _WhisperMain _NtQueryDebugFilterState: push 032B3381Ch call _WhisperMain _NtQueryDirectoryFileEx: push 06A583A81h call _WhisperMain _NtQueryDirectoryObject: push 01E2038BDh call _WhisperMain _NtQueryDriverEntryOrder: push 0030611A3h call _WhisperMain _NtQueryEaFile: push 068B37000h call _WhisperMain _NtQueryFullAttributesFile: push 05AC5645Eh call _WhisperMain _NtQueryInformationAtom: push 09602B592h call _WhisperMain _NtQueryInformationByName: push 0E70F1F6Ch call _WhisperMain _NtQueryInformationEnlistment: push 0264639ECh call _WhisperMain _NtQueryInformationJobObject: push 0C4592CC5h call _WhisperMain _NtQueryInformationPort: push 0920FB59Ch call _WhisperMain _NtQueryInformationResourceManager: push 00FB2919Eh call _WhisperMain _NtQueryInformationTransaction: push 00C982C0Bh call _WhisperMain _NtQueryInformationTransactionManager: push 0C7A72CDFh call _WhisperMain _NtQueryInformationWorkerFactory: push 002921C16h call _WhisperMain _NtQueryInstallUILanguage: push 017B127EAh call _WhisperMain _NtQueryIntervalProfile: push 0AC3DA4AEh call _WhisperMain _NtQueryIoCompletion: push 0D44FD6DBh call _WhisperMain _NtQueryLicenseValue: push 02C911B3Ah call _WhisperMain _NtQueryMultipleValueKey: push 0AD19D0EAh call _WhisperMain _NtQueryMutant: push 096B0913Bh call _WhisperMain _NtQueryOpenSubKeys: push 04BB626A8h call _WhisperMain _NtQueryOpenSubKeysEx: push 0E319B7C5h call _WhisperMain _NtQueryPortInformationProcess: push 05F927806h call _WhisperMain _NtQueryQuotaInformationFile: push 077C5FEE7h call _WhisperMain _NtQuerySecurityAttributesToken: push 07BDE4D76h call _WhisperMain _NtQuerySecurityObject: push 090BFA0F3h call _WhisperMain _NtQuerySecurityPolicy: push 0924491DFh call _WhisperMain _NtQuerySemaphore: push 0FD6197B7h call _WhisperMain _NtQuerySymbolicLinkObject: push 095B8ABF2h call _WhisperMain _NtQuerySystemEnvironmentValue: push 0EEBB8F76h call _WhisperMain _NtQuerySystemEnvironmentValueEx: push 0F7CCB537h call _WhisperMain _NtQuerySystemInformationEx: push 0AC916FCBh call _WhisperMain _NtQueryTimerResolution: push 00E952C59h call _WhisperMain _NtQueryWnfStateData: push 0BE05928Ah call _WhisperMain _NtQueryWnfStateNameInformation: push 084D362C7h call _WhisperMain _NtQueueApcThreadEx: push 0A0A0EE66h call _WhisperMain _NtRaiseException: push 006D2298Fh call _WhisperMain _NtRaiseHardError: push 003911D39h call _WhisperMain _NtReadOnlyEnlistment: push 049C28E91h call _WhisperMain _NtRecoverEnlistment: push 09B359EA3h call _WhisperMain _NtRecoverResourceManager: push 06E35F61Fh call _WhisperMain _NtRecoverTransactionManager: push 0042EDC04h call _WhisperMain _NtRegisterProtocolAddressInformation: push 0163F1CABh call _WhisperMain _NtRegisterThreadTerminatePort: push 0A23783AAh call _WhisperMain _NtReleaseKeyedEvent: push 070C34B44h call _WhisperMain _NtReleaseWorkerFactoryWorker: push 0A4902D8Ah call _WhisperMain _NtRemoveIoCompletionEx: push 09CAECE74h call _WhisperMain _NtRemoveProcessDebug: push 022BCCF36h call _WhisperMain _NtRenameKey: push 0299D0C3Eh call _WhisperMain _NtRenameTransactionManager: push 08E319293h call _WhisperMain _NtReplaceKey: push 0491C78A6h call _WhisperMain _NtReplacePartitionUnit: push 060B16C32h call _WhisperMain _NtReplyWaitReplyPort: push 020B10F6Ah call _WhisperMain _NtRequestPort: push 05AB65B38h call _WhisperMain _NtResetEvent: push 0EB51ECC2h call _WhisperMain _NtResetWriteWatch: push 098D39446h call _WhisperMain _NtRestoreKey: push 01BC3F6A9h call _WhisperMain _NtResumeProcess: push 0419F7230h call _WhisperMain _NtRevertContainerImpersonation: push 034A21431h call _WhisperMain _NtRollbackComplete: push 068B8741Ah call _WhisperMain _NtRollbackEnlistment: push 09136B2A1h call _WhisperMain _NtRollbackRegistryTransaction: push 070BB5E67h call _WhisperMain _NtRollbackTransaction: push 01CF8004Bh call _WhisperMain _NtRollforwardTransactionManager: push 011C3410Eh call _WhisperMain _NtSaveKey: push 080016B6Ah call _WhisperMain _NtSaveKeyEx: push 0EB6BDED6h call _WhisperMain _NtSaveMergedKeys: push 0D3B4D6C4h call _WhisperMain _NtSecureConnectPort: push 072ED4142h call _WhisperMain _NtSerializeBoot: push 0B0207C61h call _WhisperMain _NtSetBootEntryOrder: push 0CDEFFD41h call _WhisperMain _NtSetBootOptions: push 09F099D9Dh call _WhisperMain _NtSetCachedSigningLevel: push 0CF7DE7A1h call _WhisperMain _NtSetCachedSigningLevel2: push 06EB2EC62h call _WhisperMain _NtSetContextThread: push 04CFC0A5Dh call _WhisperMain _NtSetDebugFilterState: push 0348E382Ch call _WhisperMain _NtSetDefaultHardErrorPort: push 0B8AAB528h call _WhisperMain _NtSetDefaultLocale: push 085A95D9Dh call _WhisperMain _NtSetDefaultUILanguage: push 0AD325030h call _WhisperMain _NtSetDriverEntryOrder: push 00F9C1D01h call _WhisperMain _NtSetEaFile: push 0533D3DE8h call _WhisperMain _NtSetHighEventPair: push 0A6AF463Dh call _WhisperMain _NtSetHighWaitLowEventPair: push 0A6B5AA27h call _WhisperMain _NtSetIRTimer: push 0CD9D38FDh call _WhisperMain _NtSetInformationDebugObject: push 018382487h call _WhisperMain _NtSetInformationEnlistment: push 00B6410F3h call _WhisperMain _NtSetInformationJobObject: push 01A25FA79h call _WhisperMain _NtSetInformationKey: push 0F2C103B9h call _WhisperMain _NtSetInformationResourceManager: push 031965B0Ah call _WhisperMain _NtSetInformationSymbolicLink: push 0FAA72212h call _WhisperMain _NtSetInformationToken: push 00386750Eh call _WhisperMain _NtSetInformationTransaction: push 028823A2Fh call _WhisperMain _NtSetInformationTransactionManager: push 0AB96218Bh call _WhisperMain _NtSetInformationVirtualMemory: push 01B911D1Fh call _WhisperMain _NtSetInformationWorkerFactory: push 08A2290B6h call _WhisperMain _NtSetIntervalProfile: push 02581DD85h call _WhisperMain _NtSetIoCompletion: push 002980237h call _WhisperMain _NtSetIoCompletionEx: push 08CAEC268h call _WhisperMain _NtSetLdtEntries: push 0FB53ECFBh call _WhisperMain _NtSetLowEventPair: push 016B1CAE3h call _WhisperMain _NtSetLowWaitHighEventPair: push 0F2D21640h call _WhisperMain _NtSetQuotaInformationFile: push 09706A793h call _WhisperMain _NtSetSecurityObject: push 016B85055h call _WhisperMain _NtSetSystemEnvironmentValue: push 0C457E39Ch call _WhisperMain _NtSetSystemEnvironmentValueEx: push 037CBF2B6h call _WhisperMain _NtSetSystemInformation: push 0036F07FDh call _WhisperMain _NtSetSystemPowerState: push 06C8F86C2h call _WhisperMain _NtSetSystemTime: push 08725CE82h call _WhisperMain _NtSetThreadExecutionState: push 0923D7C34h call _WhisperMain _NtSetTimer2: push 079929A43h call _WhisperMain _NtSetTimerEx: push 072E8ACBEh call _WhisperMain _NtSetTimerResolution: push 041146399h call _WhisperMain _NtSetUuidSeed: push 0D14ED7D4h call _WhisperMain _NtSetVolumeInformationFile: push 024B1D2A2h call _WhisperMain _NtSetWnfProcessNotificationEvent: push 0999D8030h call _WhisperMain _NtShutdownSystem: push 0D36EC9C1h call _WhisperMain _NtShutdownWorkerFactory: push 0151D1594h call _WhisperMain _NtSignalAndWaitForSingleObject: push 00AB43429h call _WhisperMain _NtSinglePhaseReject: push 0745E2285h call _WhisperMain _NtStartProfile: push 058942A5Ch call _WhisperMain _NtStopProfile: push 08F1B7843h call _WhisperMain _NtSubscribeWnfStateChange: push 036A72F3Ah call _WhisperMain _NtSuspendProcess: push 082C1834Fh call _WhisperMain _NtSuspendThread: push 07CDF2E69h call _WhisperMain _NtSystemDebugControl: push 0D78BF51Dh call _WhisperMain _NtTerminateEnclave: push 04A8B16B2h call _WhisperMain _NtTerminateJobObject: push 0188433DBh call _WhisperMain _NtTestAlert: push 066379875h call _WhisperMain _NtThawRegistry: push 032A03229h call _WhisperMain _NtThawTransactions: push 0F144D313h call _WhisperMain _NtTraceControl: push 00552E3C0h call _WhisperMain _NtTranslateFilePath: push 0873F6C6Bh call _WhisperMain _NtUmsThreadYield: push 03FA60EF3h call _WhisperMain _NtUnloadDriver: push 016B73BE8h call _WhisperMain _NtUnloadKey: push 01A2F63DDh call _WhisperMain _NtUnloadKey2: push 0C7350282h call _WhisperMain _NtUnloadKeyEx: push 099F2AF4Fh call _WhisperMain _NtUnlockFile: push 03298E3D2h call _WhisperMain _NtUnlockVirtualMemory: push 005966B01h call _WhisperMain _NtUnmapViewOfSectionEx: push 09B1D5659h call _WhisperMain _NtUnsubscribeWnfStateChange: push 082400D68h call _WhisperMain _NtUpdateWnfStateData: push 062B9740Eh call _WhisperMain _NtVdmControl: push 05DB24511h call _WhisperMain _NtWaitForAlertByThreadId: push 09AAE3A6Ah call _WhisperMain _NtWaitForDebugEvent: push 03E9BC0E9h call _WhisperMain _NtWaitForKeyedEvent: push 0EB0AEA9Fh call _WhisperMain _NtWaitForWorkViaWorkerFactory: push 0C091CA00h call _WhisperMain _NtWaitHighEventPair: push 0219FDE96h call _WhisperMain _NtWaitLowEventPair: push 0203804A9h call _WhisperMain _NtAcquireCMFViewOwnership: push 0DA4C1D1Ah call _WhisperMain _NtCancelDeviceWakeupRequest: push 073816522h call _WhisperMain _NtClearAllSavepointsTransaction: push 01A0E44C7h call _WhisperMain _NtClearSavepointTransaction: push 0DCB3D223h call _WhisperMain _NtRollbackSavepointTransaction: push 0144F351Ch call _WhisperMain _NtSavepointTransaction: push 04CD76C19h call _WhisperMain _NtSavepointComplete: push 0009AF898h call _WhisperMain _NtCreateSectionEx: push 080953FB3h call _WhisperMain _NtCreateCrossVmEvent: push 01B2074B2h call _WhisperMain _NtGetPlugPlayEvent: push 00E088D1Eh call _WhisperMain _NtListTransactions: push 0B8299EB8h call _WhisperMain _NtMarshallTransaction: push 032A62A0Dh call _WhisperMain _NtPullTransaction: push 0040B2499h call _WhisperMain _NtReleaseCMFViewOwnership: push 034AD2036h call _WhisperMain _NtWaitForWnfNotifications: push 05B896703h call _WhisperMain _NtStartTm: push 0D19DFE2Dh call _WhisperMain _NtSetInformationProcess: push 096288E47h call _WhisperMain _NtRequestDeviceWakeup: push 02EA1223Ch call _WhisperMain _NtRequestWakeupLatency: push 0904BB1E6h call _WhisperMain _NtQuerySystemTime: push 0B6AEC6BBh call _WhisperMain _NtManageHotPatch: push 068A5287Eh call _WhisperMain _NtContinueEx: push 0D34D0411h call _WhisperMain _RtlCreateUserThread: push 0B4AF2B95h call _WhisperMain
18.986077
80
0.818717
a472b6717f07b032e2bee46bdd4a0075a721b50d
4,868
asm
Assembly
c2000/C2000Ware_1_00_06_00/libraries/dsp/VCU/c28/examples/fft/2837x_vcu0_cfft_128/cfft_128_data.asm
ramok/Themis_ForHPSDR
d0f323a843ac0a488ef816ccb7c828032855a40a
[ "Unlicense" ]
null
null
null
c2000/C2000Ware_1_00_06_00/libraries/dsp/VCU/c28/examples/fft/2837x_vcu0_cfft_128/cfft_128_data.asm
ramok/Themis_ForHPSDR
d0f323a843ac0a488ef816ccb7c828032855a40a
[ "Unlicense" ]
null
null
null
c2000/C2000Ware_1_00_06_00/libraries/dsp/VCU/c28/examples/fft/2837x_vcu0_cfft_128/cfft_128_data.asm
ramok/Themis_ForHPSDR
d0f323a843ac0a488ef816ccb7c828032855a40a
[ "Unlicense" ]
1
2021-07-21T08:10:37.000Z
2021-07-21T08:10:37.000Z
;****************************************************************************** ;****************************************************************************** ; ; FILE: cfft_128_data.asm ; ; DESCRIPTION: Input test data for the FFT ; ;****************************************************************************** ; $TI Release: C28x VCU Library V2.10.00.00 $ ; $Release Date: Oct 18, 2018 $ ; $Copyright: Copyright (C) 2018 Texas Instruments Incorporated - ; http://www.ti.com/ ALL RIGHTS RESERVED $ ;****************************************************************************** ; This software is licensed for use with Texas Instruments C28x ; family DSCs. This license was provided to you prior to installing ; the software. You may review this license by consulting a copy of ; the agreement in the doc directory of this library. ; ------------------------------------------------------------------------ ;****************************************************************************** ;.cdecls C,LIST,"fft.h" ;############################################################################ ; ;/*! \page CFFT_128_DATA (Input test data to the FFT) ; ; The input test data is a two tone function. We run the fft on this ; data and compare to the expected output. ;*/ ;############################################################################ .sect .econst .align 256 .global _CFFT16_128p_in_data,_CFFT16_128p_out_data ; FFT input data, two-tone test _CFFT16_128p_in_data: .word 0, 2232, 0, 1930, 0, 1165, 0, 286 .word 0, -347, 0, -560, 0, -445, 0, -286 .word 0, -373, 0, -809, 0, -1440, 0, -1930 .word 0, -1957, 0, -1406, 0, -445, 0, 560 .word 0, 1237, 0, 1406, 0, 1165, 0, 809 .word 0, 648, 0, 809, 0, 1165, 0, 1406 .word 0, 1237, 0, 560, 0, -445, 0, -1406 .word 0, -1957, 0, -1930, 0, -1440, 0, -809 .word 0, -373, 0, -286, 0, -445, 0, -560 .word 0, -347, 0, 286, 0, 1165, 0, 1930 .word 0, 2232, 0, 1930, 0, 1165, 0, 286 .word 0, -347, 0, -560, 0, -445, 0, -286 .word 0, -373, 0, -809, 0, -1440, 0, -1930 .word 0, -1957, 0, -1406, 0, -445, 0, 560 .word 0, 1237, 0, 1406, 0, 1165, 0, 809 .word 0, 648, 0, 809, 0, 1165, 0, 1406 .word 0, 1237, 0, 560, 0, -445, 0, -1406 .word 0, -1957, 0, -1930, 0, -1440, 0, -809 .word 0, -373, 0, -286, 0, -445, 0, -560 .word 0, -347, 0, 286, 0, 1165, 0, 1930 .word 0, 2232, 0, 1930, 0, 1165, 0, 286 .word 0, -347, 0, -560, 0, -445, 0, -286 .word 0, -373, 0, -809, 0, -1440, 0, -1930 .word 0, -1957, 0, -1406, 0, -445, 0, 560 .word 0, 1237, 0, 1406, 0, 1165, 0, 809 .word 0, 648, 0, 809, 0, 1165, 0, 1406 .word 0, 1237, 0, 560, 0, -445, 0, -1406 .word 0, -1957, 0, -1930, 0, -1440, 0, -809 .word 0, -373, 0, -286, 0, -445, 0, -560 .word 0, -347, 0, 286, 0, 1165, 0, 1930 .word 0, 2232, 0, 1930, 0, 1165, 0, 286 .word 0, -347, 0, -560, 0, -445, 0, -286 ; FFT output data _CFFT16_128p_out_data: .word 0, 31, 11, 31, 22, 34, 39, 37 .word 66, 45, 130, 64, 502, 183, -360, -97 .word -143, -27, -92, -11, -70, -4, -56, 0 .word -47, 2, -40, 3, -37, 5, -33, 6 .word -29, 401, -27, 6, -24, 7, -23, 7 .word -21, 8, -20, 7, -19, 8, -17, 9 .word -17, 9, -15, 8, -15, 9, -13, 9 .word -13, 9, -12, 8, -12, 10, -12, 9 .word -11, 9, -11, 9, -10, 9, -9, 9 .word -9, 9, -8, 9, -8, 9, -7, 10 .word -7, 9, -6, 9, -6, 10, -6, 10 .word -5, 9, -6, 10, -4, 9, -4, 10 .word -4, 10, -4, 9, -4, 9, -3, 10 .word -3, 10, -3, 9, -3, 9, -2, 9 .word -2, 10, -2, 10, -1, 10, -2, 10 .word -2, 9, -1, 10, -1, 9, 0, 10 .word 0, 10, 0, 10, 1, 9, 1, 10 .word 2, 9, 2, 10, 1, 10, 2, 10 .word 2, 10, 2, 9, 3, 9, 3, 9 .word 3, 10, 3, 10, 4, 9, 4, 9 .word 4, 10, 4, 10, 4, 9, 6, 10 .word 5, 9, 6, 10, 6, 10, 6, 9 .word 7, 9, 7, 10, 8, 9, 8, 9 .word 9, 9, 9, 9, 10, 9, 11, 9 .word 11, 9, 12, 9, 12, 10, 12, 8 .word 13, 9, 13, 9, 15, 9, 15, 8 .word 17, 9, 17, 9, 19, 8, 20, 7 .word 21, 8, 23, 7, 24, 7, 27, 6 .word 29, 401, 33, 6, 37, 5, 40, 3 .word 47, 2, 56, 0, 70, -4, 92, -11 .word 143, -27, 360, -97, -502, 183, -130, 64 .word -66, 45, -39, 37, -22, 34, -11, 31
46.807692
79
0.386196
0c899b43fbf03a6bdb409c3525a79a7239d9d1d1
2,549
asm
Assembly
src/main.asm
cmounce/all-purpose-tsr
196ad7912a425bb9d2a785af5339970a53ad735a
[ "MIT" ]
null
null
null
src/main.asm
cmounce/all-purpose-tsr
196ad7912a425bb9d2a785af5339970a53ad735a
[ "MIT" ]
null
null
null
src/main.asm
cmounce/all-purpose-tsr
196ad7912a425bb9d2a785af5339970a53ad735a
[ "MIT" ]
null
null
null
; ZZT All-Purpose TSR (rewrite) org 100h ; Adjust addresses for DOS .COM file cpu 286 section .text ; Non-resident code (parameter parsing, etc) section .data follows=.text ; Non-resident data (help text, etc) section .append follows=.data ; Reserve space for bundled data section .bss start=20*1024 ; Non-initialized data, as usual ; Define a buffer that begins just after .bss and stretches until the stack. global_buffer equ section..bss.start + bss_size ; - 0K to 3K-ish: Program code ; - 3K-ish to 20K: Space for appended data ; - 20K to 60K: BSS; Buffer space for assembling installable ; - 60K to 64K: Stack space ;------------------------------------------------------------------------------ ; Code ;------------------------------------------------------------------------------ section .text jmp main %include 'args.asm' %include 'bundle.asm' %include 'help.asm' %include 'install.asm' %include 'macros.asm' %include 'new.asm' %include 'print.asm' %include 'system.asm' %include 'video.asm' ; Program entry point main: ; Initialize BSS section to zeros mov cx, bss_size mov di, section..bss.start mov al, 0 rep stosb ; Parse/validate the data bundle at the end of the .COM file call parse_bundled_data begin_if c ; TODO: Should this move into the parse_bundled_data function? die EXIT_BAD_BUNDLE, "Bundled data is corrupt" end_if ; Parse/validate our command-line arguments call parse_command_line ; If the help flag is passed, suppress normal behavior and show help cmp byte [parsed_flags.help], 0 begin_if ne jmp show_help end_if ; Switch based on the parsed subcommand mov ax, [parsed_subcommand] cmp ax, subcommands.install begin_if e jmp install_tsr else cmp ax, subcommands.uninstall if e call uninstall_tsr else cmp ax, subcommands.reset if e call reset_video else cmp ax, subcommands.new if e call create_new_tsr else ; Default if no subcommand specified call preview_mode end_if exit 0 ;------------------------------------------------------------------------------ ; Other stuff ;------------------------------------------------------------------------------ ; Measure the size of .bss. ; In order for this to include everything, nothing can be added to .bss after ; this point, which is why we compute this at the end of main.asm. section .bss bss_size equ $ - $$
27.117021
79
0.592781
5b6a89624d1b2da0d4e2c993c1a5672cd80b668f
15,228
asm
Assembly
src/win64/pasta_mul-armv8.asm
supranational/semolina
dc438fd036b0ee7b44a83f89c21102774c1e2cf2
[ "Apache-2.0" ]
null
null
null
src/win64/pasta_mul-armv8.asm
supranational/semolina
dc438fd036b0ee7b44a83f89c21102774c1e2cf2
[ "Apache-2.0" ]
null
null
null
src/win64/pasta_mul-armv8.asm
supranational/semolina
dc438fd036b0ee7b44a83f89c21102774c1e2cf2
[ "Apache-2.0" ]
null
null
null
AREA |.text|,CODE,ALIGN=8,ARM64 EXPORT |mul_mont_pasta|[FUNC] ALIGN 32 |mul_mont_pasta| PROC stp x29,x30,[sp,#-64]! add x29,sp,#0 stp x19,x20,[sp,#16] stp x21,x22,[sp,#32] stp x23,x24,[sp,#48] ldp x10,x11,[x1] ldr x9, [x2] ldp x12,x13,[x1,#16] mul x19,x10,x9 ldp x5,x6,[x3] mul x20,x11,x9 ldp x7,x8,[x3,#16] mul x21,x12,x9 mul x22,x13,x9 umulh x14,x10,x9 umulh x15,x11,x9 mul x3,x4,x19 umulh x16,x12,x9 umulh x17,x13,x9 adds x20,x20,x14 //mul x14,x5,x3 adcs x21,x21,x15 mul x15,x6,x3 adcs x22,x22,x16 //mul x16,x7,x3 //x7==0 adc x23,xzr, x17 lsl x17,x3,#62 //mul x17,x8,x3 ldr x9,[x2,8*1] subs xzr,x19,#1 //adds x19,x19,x14 umulh x14,x5,x3 adcs x20,x20,x15 umulh x15,x6,x3 adcs x21,x21,xzr //x16 //umulh x16,x7,x3 //x7==0 adcs x22,x22,x17 lsr x17,x3,#2 //umulh x17,x8,x3 adc x23,x23,xzr adds x19,x20,x14 mul x14,x10,x9 adcs x20,x21,x15 mul x15,x11,x9 adcs x21,x22,xzr //x16 mul x16,x12,x9 adcs x22,x23,x17 mul x17,x13,x9 adc x23,xzr,xzr adds x19,x19,x14 umulh x14,x10,x9 adcs x20,x20,x15 umulh x15,x11,x9 adcs x21,x21,x16 mul x3,x4,x19 umulh x16,x12,x9 adcs x22,x22,x17 umulh x17,x13,x9 adc x23,x23,xzr adds x20,x20,x14 //mul x14,x5,x3 adcs x21,x21,x15 mul x15,x6,x3 adcs x22,x22,x16 //mul x16,x7,x3 //x7==0 adc x23,x23,x17 lsl x17,x3,#62 //mul x17,x8,x3 ldr x9,[x2,8*2] subs xzr,x19,#1 //adds x19,x19,x14 umulh x14,x5,x3 adcs x20,x20,x15 umulh x15,x6,x3 adcs x21,x21,xzr //x16 //umulh x16,x7,x3 //x7==0 adcs x22,x22,x17 lsr x17,x3,#2 //umulh x17,x8,x3 adc x23,x23,xzr adds x19,x20,x14 mul x14,x10,x9 adcs x20,x21,x15 mul x15,x11,x9 adcs x21,x22,xzr //x16 mul x16,x12,x9 adcs x22,x23,x17 mul x17,x13,x9 adc x23,xzr,xzr adds x19,x19,x14 umulh x14,x10,x9 adcs x20,x20,x15 umulh x15,x11,x9 adcs x21,x21,x16 mul x3,x4,x19 umulh x16,x12,x9 adcs x22,x22,x17 umulh x17,x13,x9 adc x23,x23,xzr adds x20,x20,x14 //mul x14,x5,x3 adcs x21,x21,x15 mul x15,x6,x3 adcs x22,x22,x16 //mul x16,x7,x3 //x7==0 adc x23,x23,x17 lsl x17,x3,#62 //mul x17,x8,x3 ldr x9,[x2,8*3] subs xzr,x19,#1 //adds x19,x19,x14 umulh x14,x5,x3 adcs x20,x20,x15 umulh x15,x6,x3 adcs x21,x21,xzr //x16 //umulh x16,x7,x3 //x7==0 adcs x22,x22,x17 lsr x17,x3,#2 //umulh x17,x8,x3 adc x23,x23,xzr adds x19,x20,x14 mul x14,x10,x9 adcs x20,x21,x15 mul x15,x11,x9 adcs x21,x22,xzr //x16 mul x16,x12,x9 adcs x22,x23,x17 mul x17,x13,x9 adc x23,xzr,xzr adds x19,x19,x14 umulh x14,x10,x9 adcs x20,x20,x15 umulh x15,x11,x9 adcs x21,x21,x16 mul x3,x4,x19 umulh x16,x12,x9 adcs x22,x22,x17 umulh x17,x13,x9 adc x23,x23,xzr adds x20,x20,x14 //mul x14,x5,x3 adcs x21,x21,x15 mul x15,x6,x3 adcs x22,x22,x16 //mul x16,x7,x3 //x7==0 adc x23,x23,x17 lsl x17,x3,#62 //mul x17,x8,x3 subs xzr,x19,#1 //adds x19,x19,x14 umulh x14,x5,x3 adcs x20,x20,x15 umulh x15,x6,x3 adcs x21,x21,xzr //x16 //umulh x16,x7,x3 //x7==0 adcs x22,x22,x17 lsr x17,x3,#2 //umulh x17,x8,x3 adc x23,x23,xzr adds x19,x20,x14 adcs x20,x21,x15 adcs x21,x22,xzr //x16 adcs x22,x23,x17 adc x23,xzr,xzr subs x14,x19,x5 sbcs x15,x20,x6 sbcs x16,x21,xzr //x7 sbcs x17,x22,x8 sbcs xzr, x23,xzr csello x19,x19,x14 csello x20,x20,x15 csello x21,x21,x16 csello x22,x22,x17 stp x19,x20,[x0] stp x21,x22,[x0,#16] ldp x19,x20,[x29,#16] ldp x21,x22,[x29,#32] ldp x23,x24,[x29,#48] ldr x29,[sp],#64 ret ENDP EXPORT |sqr_mont_pasta|[FUNC] ALIGN 32 |sqr_mont_pasta| PROC DCDU 3573752639 stp x29,x30,[sp,#-48]! add x29,sp,#0 stp x19,x20,[sp,#16] stp x21,x22,[sp,#32] ldp x5,x6,[x1] ldp x7,x8,[x1,#16] mov x4,x3 //////////////////////////////////////////////////////////////// // | | | | | |a1*a0| | // | | | | |a2*a0| | | // | |a3*a2|a3*a0| | | | // | | | |a2*a1| | | | // | | |a3*a1| | | | | // *| | | | | | | | 2| // +|a3*a3|a2*a2|a1*a1|a0*a0| // |--+--+--+--+--+--+--+--| // |A7|A6|A5|A4|A3|A2|A1|A0|, where Ax is x10 // // "can't overflow" below mark carrying into high part of // multiplication result, which can't overflow, because it // can never be all ones. mul x11,x6,x5 // a[1]*a[0] umulh x15,x6,x5 mul x12,x7,x5 // a[2]*a[0] umulh x16,x7,x5 mul x13,x8,x5 // a[3]*a[0] umulh x19,x8,x5 adds x12,x12,x15 // accumulate high parts of multiplication mul x14,x7,x6 // a[2]*a[1] umulh x15,x7,x6 adcs x13,x13,x16 mul x16,x8,x6 // a[3]*a[1] umulh x17,x8,x6 adc x19,x19,xzr // can't overflow mul x20,x8,x7 // a[3]*a[2] umulh x21,x8,x7 adds x15,x15,x16 // accumulate high parts of multiplication mul x10,x5,x5 // a[0]*a[0] adc x16,x17,xzr // can't overflow adds x13,x13,x14 // accumulate low parts of multiplication umulh x5,x5,x5 adcs x19,x19,x15 mul x15,x6,x6 // a[1]*a[1] adcs x20,x20,x16 umulh x6,x6,x6 adc x21,x21,xzr // can't overflow adds x11,x11,x11 // acc[1-6]*=2 mul x16,x7,x7 // a[2]*a[2] adcs x12,x12,x12 umulh x7,x7,x7 adcs x13,x13,x13 mul x17,x8,x8 // a[3]*a[3] adcs x19,x19,x19 umulh x8,x8,x8 adcs x20,x20,x20 adcs x21,x21,x21 adc x22,xzr,xzr adds x11,x11,x5 // +a[i]*a[i] adcs x12,x12,x15 adcs x13,x13,x6 adcs x19,x19,x16 adcs x20,x20,x7 adcs x21,x21,x17 adc x22,x22,x8 bl __mul_by_1_mont_pasta ldr x30,[x29,#8] adds x10,x10,x19 // accumulate upper half adcs x11,x11,x20 adcs x12,x12,x21 adcs x13,x13,x22 adc x19,xzr,xzr subs x14,x10,x5 sbcs x15,x11,x6 sbcs x16,x12,x7 sbcs x17,x13,x8 sbcs xzr, x19,xzr csello x10,x10,x14 csello x11,x11,x15 csello x12,x12,x16 csello x13,x13,x17 stp x10,x11,[x0] stp x12,x13,[x0,#16] ldp x19,x20,[x29,#16] ldp x21,x22,[x29,#32] ldr x29,[sp],#48 DCDU 3573752767 ret ENDP EXPORT |from_mont_pasta|[FUNC] ALIGN 32 |from_mont_pasta| PROC DCDU 3573752639 stp x29,x30,[sp,#-16]! add x29,sp,#0 mov x4,x3 ldp x10,x11,[x1] ldp x12,x13,[x1,#16] bl __mul_by_1_mont_pasta ldr x30,[x29,#8] subs x14,x10,x5 sbcs x15,x11,x6 sbcs x16,x12,x7 sbcs x17,x13,x8 csello x10,x10,x14 csello x11,x11,x15 csello x12,x12,x16 csello x13,x13,x17 stp x10,x11,[x0] stp x12,x13,[x0,#16] ldr x29,[sp],#16 DCDU 3573752767 ret ENDP EXPORT |redc_mont_pasta|[FUNC] ALIGN 32 |redc_mont_pasta| PROC DCDU 3573752639 stp x29,x30,[sp,#-16]! add x29,sp,#0 mov x4,x3 ldp x10,x11,[x1] ldp x12,x13,[x1,#16] bl __mul_by_1_mont_pasta ldr x30,[x29,#8] ldp x14,x15,[x1,#32] ldp x16,x17,[x1,#48] adds x10,x10,x14 adcs x11,x11,x15 adcs x12,x12,x16 adcs x13,x13,x17 adc x9,xzr,xzr subs x14,x10,x5 sbcs x15,x11,x6 sbcs x16,x12,x7 sbcs x17,x13,x8 sbcs xzr, x9,xzr csello x10,x10,x14 csello x11,x11,x15 csello x12,x12,x16 csello x13,x13,x17 stp x10,x11,[x0] stp x12,x13,[x0,#16] ldr x29,[sp],#16 DCDU 3573752767 ret ENDP ALIGN 32 |__mul_by_1_mont_pasta| PROC mul x3,x4,x10 ldp x5,x6,[x2] ldp x7,x8,[x2,#16] //mul x14,x5,x3 mul x15,x6,x3 //mul x16,x7,x3 //mod[2]==0 lsl x17,x3,#62 //mul x17,x8,x3 subs xzr,x10,#1 //adds x10,x10,x14 umulh x14,x5,x3 adcs x11,x11,x15 umulh x15,x6,x3 adcs x12,x12,xzr //x16 //umulh x16,x7,x3 //x7==0 adcs x13,x13,x17 lsr x17,x3,#2 //umulh x17,x8,x3 adc x9,xzr,xzr adds x10,x11,x14 adcs x11,x12,x15 adcs x12,x13,xzr //x16 mul x3,x4,x10 adc x13,x9,x17 //mul x14,x5,x3 mul x15,x6,x3 //mul x16,x7,x3 //mod[2]==0 lsl x17,x3,#62 //mul x17,x8,x3 subs xzr,x10,#1 //adds x10,x10,x14 umulh x14,x5,x3 adcs x11,x11,x15 umulh x15,x6,x3 adcs x12,x12,xzr //x16 //umulh x16,x7,x3 //x7==0 adcs x13,x13,x17 lsr x17,x3,#2 //umulh x17,x8,x3 adc x9,xzr,xzr adds x10,x11,x14 adcs x11,x12,x15 adcs x12,x13,xzr //x16 mul x3,x4,x10 adc x13,x9,x17 //mul x14,x5,x3 mul x15,x6,x3 //mul x16,x7,x3 //mod[2]==0 lsl x17,x3,#62 //mul x17,x8,x3 subs xzr,x10,#1 //adds x10,x10,x14 umulh x14,x5,x3 adcs x11,x11,x15 umulh x15,x6,x3 adcs x12,x12,xzr //x16 //umulh x16,x7,x3 //x7==0 adcs x13,x13,x17 lsr x17,x3,#2 //umulh x17,x8,x3 adc x9,xzr,xzr adds x10,x11,x14 adcs x11,x12,x15 adcs x12,x13,xzr //x16 mul x3,x4,x10 adc x13,x9,x17 //mul x14,x5,x3 mul x15,x6,x3 //mul x16,x7,x3 //mod[2]==0 lsl x17,x3,#62 //mul x17,x8,x3 subs xzr,x10,#1 //adds x10,x10,x14 umulh x14,x5,x3 adcs x11,x11,x15 umulh x15,x6,x3 adcs x12,x12,xzr //x16 //umulh x16,x7,x3 //x7==0 adcs x13,x13,x17 lsr x17,x3,#2 //umulh x17,x8,x3 adc x9,xzr,xzr adds x10,x11,x14 adcs x11,x12,x15 adcs x12,x13,xzr //x16 adc x13,x9,x17 ret ENDP EXPORT |sqr_n_mul_mont_pasta|[FUNC] ALIGN 32 |sqr_n_mul_mont_pasta| PROC stp x29,x30,[sp,#-80]! add x29,sp,#0 stp x19,x20,[sp,#16] stp x21,x22,[sp,#32] stp x23,x24,[sp,#48] //stp x25,x26,[sp,#64] ldp x6,x7,[x1] ldp x8,x9,[x1,#16] ldp x23,x24,[x4] //ldp x25,x26,[x4,#16] |$Loop_sqr_pasta| sub x2,x2,#1 //////////////////////////////////////////////////////////////// // | | | | | |a1*a0| | // | | | | |a2*a0| | | // | |a3*a2|a3*a0| | | | // | | | |a2*a1| | | | // | | |a3*a1| | | | | // *| | | | | | | | 2| // +|a3*a3|a2*a2|a1*a1|a0*a0| // |--+--+--+--+--+--+--+--| // |A7|A6|A5|A4|A3|A2|A1|A0|, where Ax is x10 // // "can't overflow" below mark carrying into high part of // multiplication result, which can't overflow, because it // can never be all ones. mul x11,x7,x6 // a[1]*a[0] umulh x20,x7,x6 mul x12,x8,x6 // a[2]*a[0] umulh x21,x8,x6 mul x13,x9,x6 // a[3]*a[0] umulh x14,x9,x6 adds x12,x12,x20 // accumulate high parts of multiplication mul x19,x8,x7 // a[2]*a[1] umulh x20,x8,x7 adcs x13,x13,x21 mul x21,x9,x7 // a[3]*a[1] umulh x22,x9,x7 adc x14,x14,xzr // can't overflow mul x15,x9,x8 // a[3]*a[2] umulh x16,x9,x8 adds x20,x20,x21 // accumulate high parts of multiplication mul x10,x6,x6 // a[0]*a[0] adc x21,x22,xzr // can't overflow adds x13,x13,x19 // accumulate low parts of multiplication umulh x6,x6,x6 adcs x14,x14,x20 mul x20,x7,x7 // a[1]*a[1] adcs x15,x15,x21 umulh x7,x7,x7 adc x16,x16,xzr // can't overflow adds x11,x11,x11 // acc[1-6]*=2 mul x21,x8,x8 // a[2]*a[2] adcs x12,x12,x12 umulh x8,x8,x8 adcs x13,x13,x13 mul x22,x9,x9 // a[3]*a[3] adcs x14,x14,x14 umulh x9,x9,x9 adcs x15,x15,x15 adcs x16,x16,x16 adc x17,xzr,xzr mul x4,x5,x10 adds x11,x11,x6 // +a[i]*a[i] adcs x12,x12,x20 adcs x13,x13,x7 adcs x14,x14,x21 adcs x15,x15,x8 adcs x16,x16,x22 adc x17,x17,x9 //mul x19,x23,x4 mul x20,x24,x4 //mul x21,x25,x4 //x25==0 lsl x22,x4,#62 //mul x22,x26,x4 subs xzr,x10,#1 //adds x6,x6,x19 umulh x19,x23,x4 adcs x11,x11,x20 umulh x20,x24,x4 adcs x12,x12,xzr //x21 //umulh x21,x25,x4 //x25==0 adcs x13,x13,x22 lsr x22,x4,#2 //umulh x22,x26,x4 adc x1,xzr,xzr adds x10,x11,x19 adcs x11,x12,x20 adcs x12,x13,xzr //x21 mul x4,x5,x10 adc x13,x1,x22 //mul x19,x23,x4 mul x20,x24,x4 //mul x21,x25,x4 //x25==0 lsl x22,x4,#62 //mul x22,x26,x4 subs xzr,x10,#1 //adds x6,x6,x19 umulh x19,x23,x4 adcs x11,x11,x20 umulh x20,x24,x4 adcs x12,x12,xzr //x21 //umulh x21,x25,x4 //x25==0 adcs x13,x13,x22 lsr x22,x4,#2 //umulh x22,x26,x4 adc x1,xzr,xzr adds x10,x11,x19 adcs x11,x12,x20 adcs x12,x13,xzr //x21 mul x4,x5,x10 adc x13,x1,x22 //mul x19,x23,x4 mul x20,x24,x4 //mul x21,x25,x4 //x25==0 lsl x22,x4,#62 //mul x22,x26,x4 subs xzr,x10,#1 //adds x6,x6,x19 umulh x19,x23,x4 adcs x11,x11,x20 umulh x20,x24,x4 adcs x12,x12,xzr //x21 //umulh x21,x25,x4 //x25==0 adcs x13,x13,x22 lsr x22,x4,#2 //umulh x22,x26,x4 adc x1,xzr,xzr adds x10,x11,x19 adcs x11,x12,x20 adcs x12,x13,xzr //x21 mul x4,x5,x10 adc x13,x1,x22 //mul x19,x23,x4 mul x20,x24,x4 //mul x21,x25,x4 //x25==0 lsl x22,x4,#62 //mul x22,x26,x4 subs xzr,x10,#1 //adds x6,x6,x19 umulh x19,x23,x4 adcs x11,x11,x20 umulh x20,x24,x4 adcs x12,x12,xzr //x21 //umulh x21,x25,x4 //x25==0 adcs x13,x13,x22 lsr x22,x4,#2 //umulh x22,x26,x4 adc x1,xzr,xzr adds x10,x11,x19 adcs x11,x12,x20 adcs x12,x13,xzr //x21 adc x13,x1,x22 adds x6,x10,x14 // accumulate upper half adcs x7,x11,x15 adcs x8,x12,x16 adc x9,x13,x17 cbnz x2,|$Loop_sqr_pasta| ldr x1,[x3] // b[0] mul x10,x6,x1 mul x11,x7,x1 mul x12,x8,x1 mul x13,x9,x1 umulh x19,x6,x1 umulh x20,x7,x1 mul x4,x5,x10 umulh x21,x8,x1 umulh x22,x9,x1 adds x11,x11,x19 //mul x19,x23,x4 adcs x12,x12,x20 mul x20,x24,x4 adcs x13,x13,x21 //mul x21,x25,x4 //x25==0 adc x14,xzr, x22 lsl x22,x4,#62 //mul x22,x26,x4 ldr x1,[x3,8*1] // b[1] subs xzr,x10,#1 //adds x10,x10,x19 umulh x19,x23,x4 adcs x11,x11,x20 umulh x20,x24,x4 adcs x12,x12,xzr //x21 //umulh x21,x25,x4 //x25==0 adcs x13,x13,x22 lsr x22,x4,#2 //umulh x22,x26,x4 adc x14,x14,xzr adds x10,x11,x19 mul x19,x6,x1 adcs x11,x12,x20 mul x20,x7,x1 adcs x12,x13,xzr //x21 mul x21,x8,x1 adcs x13,x14,x22 mul x22,x9,x1 adc x14,xzr,xzr adds x10,x10,x19 umulh x19,x6,x1 adcs x11,x11,x20 umulh x20,x7,x1 adcs x12,x12,x21 mul x4,x5,x10 umulh x21,x8,x1 adcs x13,x13,x22 umulh x22,x9,x1 adc x14,x14,xzr adds x11,x11,x19 //mul x19,x23,x4 adcs x12,x12,x20 mul x20,x24,x4 adcs x13,x13,x21 //mul x21,x25,x4 //x25==0 adc x14,x14,x22 lsl x22,x4,#62 //mul x22,x26,x4 ldr x1,[x3,8*2] // b[2] subs xzr,x10,#1 //adds x10,x10,x19 umulh x19,x23,x4 adcs x11,x11,x20 umulh x20,x24,x4 adcs x12,x12,xzr //x21 //umulh x21,x25,x4 //x25==0 adcs x13,x13,x22 lsr x22,x4,#2 //umulh x22,x26,x4 adc x14,x14,xzr adds x10,x11,x19 mul x19,x6,x1 adcs x11,x12,x20 mul x20,x7,x1 adcs x12,x13,xzr //x21 mul x21,x8,x1 adcs x13,x14,x22 mul x22,x9,x1 adc x14,xzr,xzr adds x10,x10,x19 umulh x19,x6,x1 adcs x11,x11,x20 umulh x20,x7,x1 adcs x12,x12,x21 mul x4,x5,x10 umulh x21,x8,x1 adcs x13,x13,x22 umulh x22,x9,x1 adc x14,x14,xzr adds x11,x11,x19 //mul x19,x23,x4 adcs x12,x12,x20 mul x20,x24,x4 adcs x13,x13,x21 //mul x21,x25,x4 //x25==0 adc x14,x14,x22 lsl x22,x4,#62 //mul x22,x26,x4 ldr x1,[x3,8*3] // b[3] subs xzr,x10,#1 //adds x10,x10,x19 umulh x19,x23,x4 adcs x11,x11,x20 umulh x20,x24,x4 adcs x12,x12,xzr //x21 //umulh x21,x25,x4 //x25==0 adcs x13,x13,x22 lsr x22,x4,#2 //umulh x22,x26,x4 adc x14,x14,xzr adds x10,x11,x19 mul x19,x6,x1 adcs x11,x12,x20 mul x20,x7,x1 adcs x12,x13,xzr //x21 mul x21,x8,x1 adcs x13,x14,x22 mul x22,x9,x1 adc x14,xzr,xzr adds x10,x10,x19 umulh x19,x6,x1 adcs x11,x11,x20 umulh x20,x7,x1 adcs x12,x12,x21 mul x4,x5,x10 umulh x21,x8,x1 adcs x13,x13,x22 umulh x22,x9,x1 adc x14,x14,xzr adds x11,x11,x19 //mul x19,x23,x4 adcs x12,x12,x20 mul x20,x24,x4 adcs x13,x13,x21 //mul x21,x25,x4 //x25==0 adc x14,x14,x22 lsl x22,x4,#62 //mul x22,x26,x4 subs xzr,x10,#1 //adds x10,x10,x19 umulh x19,x23,x4 adcs x11,x11,x20 umulh x20,x24,x4 adcs x12,x12,xzr //x21 //umulh x21,x25,x4 //x25==0 adcs x13,x13,x22 lsr x22,x4,#2 //umulh x22,x26,x4 adc x14,x14,xzr adds x10,x11,x19 adcs x11,x12,x20 adcs x12,x13,xzr //x21 adc x13,x14,x22 subs x19,x10,x23 mov x22,#1<<62 sbcs x20,x11,x24 sbcs x21,x12,xzr //x25==0 sbcs x22,x13,x22 csello x10,x10,x19 csello x11,x11,x20 csello x12,x12,x21 csello x13,x13,x22 stp x10,x11,[x0] stp x12,x13,[x0,#16] ldp x19,x20,[x29,#16] ldp x21,x22,[x29,#32] ldp x23,x24,[x29,#48] //ldp x25,x26,[x29,#64] ldr x29,[sp],#80 ret ENDP END
18.776819
65
0.638495
4a2f509949fbda763bb8f2b10d06628250bda3f4
453
asm
Assembly
programs/oeis/286/A286582.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/286/A286582.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/286/A286582.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A286582: a(n) = A001222(A048673(n)). ; 0,1,1,1,2,3,2,2,1,1,1,1,2,1,3,1,2,2,3,5,3,3,2,3,2,2,3,3,4,1,1,2,2,1,2,1,2,2,1,2,2,1,4,1,4,3,3,2,1,2,5,2,3,3,2,1,2,1,1,2,2,4,3,2,4,3,4,2,1,3,1,3,4,2,2,4,5,7,3,3,1,2,3,4,1,1,3,5,2,1,2,1,2,5,4,6,2,3,1,2 seq $0,3961 ; Completely multiplicative with a(prime(k)) = prime(k+1). seq $0,86436 ; Maximum number of parts possible in a factorization of n; a(1) = 1, and for n > 1, a(n) = A001222(n) = bigomega(n). sub $0,1
64.714286
201
0.584989
bd6d1a934cb8d30c071da3f90c7ce898240cbee0
1,138
asm
Assembly
pkgs/tools/yasm/src/libyasm/tests/incbin.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
pkgs/tools/yasm/src/libyasm/tests/incbin.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
pkgs/tools/yasm/src/libyasm/tests/incbin.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
incbin "stamp-h1" ; 1024 x's to bump above 1024 byte default bytecode buffer size ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
59.894737
65
0.955185
19be5d4dbbf5eae3a4d0e6e8ca7c4dd21e72e378
298
asm
Assembly
examples/Initialize Stage Data/Init Stage Data.asm
rapito/VSCode-PowerPC-Syntax
2548a3146ae6119415ccd065080608e4c381913a
[ "MIT" ]
13
2021-02-10T00:39:56.000Z
2022-02-21T06:15:45.000Z
examples/Initialize Stage Data/Init Stage Data.asm
rapito/VSCode-PowerPC-Syntax
2548a3146ae6119415ccd065080608e4c381913a
[ "MIT" ]
1
2021-02-10T00:47:07.000Z
2021-02-10T00:47:07.000Z
examples/Initialize Stage Data/Init Stage Data.asm
rapito/VSCode-PowerPC-Syntax
2548a3146ae6119415ccd065080608e4c381913a
[ "MIT" ]
2
2021-02-10T00:39:58.000Z
2021-07-25T18:42:35.000Z
################################################################################ # Address: 801c154c ################################################################################ .include "Common.s" #Initialize data li r4,516 branchl r12, Zero_AreaLength Exit: cmplwi r26, 0
24.833333
81
0.298658
93edc42e70defc40ce85cdab21756447703709b2
1,302
asm
Assembly
src/util/strg/isuis.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
src/util/strg/isuis.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
src/util/strg/isuis.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
; is string a valid unsigned integer 27/01-92 O.Fink section string include win1_keys_err xdef st_isuic ; is character unsigned integer xdef st_isuis ; is string unsigned integer ;+++ ; is character unsigned integer ; ; Entry Exit ; d1.b character preserved ; ; error codes: err.nc no unsigned integer character ; condition codes set ;--- st_isuic moveq #err.nc,d0 cmpi.b #'0',d1 blt.s c_exit cmpi.b #'9',d1 bhi.s c_exit moveq #0,d0 c_exit tst.l d0 rts ;+++ ; is string unsigned integer ; ; Entry Exit ; a0 ptr to string preserved ; ; ; error codes: err.nc no unsigned integer string ; condition codes set ;--- r_isuis reg a0/d1/d2 st_isuis movem.l r_isuis,-(sp) moveq #err.nc,d0 move.w (a0)+,d2 beq.s s_exit bra.s s_end s_lp move.b (a0)+,d1 bsr st_isuic bne.s s_exit s_end dbra d2,s_lp s_exit movem.l (sp)+,r_isuis tst.l d0 rts end
22.067797
69
0.467742
c5fbfdcf954091b79148fe8bd28ffccda168f798
1,639
asm
Assembly
Linguagem Assembly/0.0.1/linux/x86_64/remid.asm
gilmartaj/Remid
ba045ed16f3bbc85781cc4d433c90cce9b63e8de
[ "Unlicense" ]
null
null
null
Linguagem Assembly/0.0.1/linux/x86_64/remid.asm
gilmartaj/Remid
ba045ed16f3bbc85781cc4d433c90cce9b63e8de
[ "Unlicense" ]
null
null
null
Linguagem Assembly/0.0.1/linux/x86_64/remid.asm
gilmartaj/Remid
ba045ed16f3bbc85781cc4d433c90cce9b63e8de
[ "Unlicense" ]
null
null
null
EXTERN Mix_CloseAudio EXTERN Mix_LoadMUS EXTERN Mix_OpenAudio EXTERN Mix_PlayMusic EXTERN Mix_PlayingMusic EXTERN SDL_Init EXTERN SDL_Quit extern printf extern puts SDL_INIT_AUDIO equ 0x00000010 AUDIO_S16LSB equ 0x8010 SECTION .DATA mensagemFimAudio: db "O áudio terminou de tocar.", 10, 0 comprimentoMsgFimAudio: equ $-mensagemFimAudio mensagemErro: db "Erro ao reproduzir.", 10, 0 comprimentoMsgErro: equ $-mensagemErro msg: db "%d",10,0 s: db "%s",10,0 SECTION .bss enderecoCaminhoAudio: resq 1 SECTION .TEXT global main main: mov rax, rsi add rax, 8 mov rsi, [rax] mov [enderecoCaminhoAudio], rsi push SDL_INIT_AUDIO call SDL_Init mov rdi, msg mov rsi, rax call printf push 1024 push 2 push AUDIO_S16LSB push 44100 mov rdi, 44100 mov rsi, AUDIO_S16LSB mov rdx, 2 mov rcx, 1024 call Mix_OpenAudio mov rdi, msg mov rsi, rax call printf tocar: mov rdi, s mov rsi, [enderecoCaminhoAudio] call printf mov rdi, [enderecoCaminhoAudio] call Mix_LoadMUS mov rdi, rax mov rsi, 1 call Mix_PlayMusic cmp rax, 0 je continuar_tocando erro: mov rax, 1 mov rdi, 1 mov rsi, mensagemErro mov rdx, comprimentoMsgErro syscall jmp fim_do_programa continuar_tocando: call Mix_PlayingMusic cmp rax, 1 je continuar_tocando mov rax, 1 mov rdi, 1 mov rsi, mensagemFimAudio mov rdx, comprimentoMsgFimAudio syscall fim_do_programa: call SDL_Quit mov rax, 60 mov rdi, 0 syscall
17.252632
60
0.661989
d393960b5bdcd256eb7e8f03216aafda9e70e274
1,527
asm
Assembly
programs/oeis/154/A154576.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/154/A154576.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/154/A154576.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A154576: a(n) = 2*n^2 + 14*n + 5. ; 21,41,65,93,125,161,201,245,293,345,401,461,525,593,665,741,821,905,993,1085,1181,1281,1385,1493,1605,1721,1841,1965,2093,2225,2361,2501,2645,2793,2945,3101,3261,3425,3593,3765,3941,4121,4305,4493,4685,4881,5081,5285,5493,5705,5921,6141,6365,6593,6825,7061,7301,7545,7793,8045,8301,8561,8825,9093,9365,9641,9921,10205,10493,10785,11081,11381,11685,11993,12305,12621,12941,13265,13593,13925,14261,14601,14945,15293,15645,16001,16361,16725,17093,17465,17841,18221,18605,18993,19385,19781,20181,20585,20993,21405,21821,22241,22665,23093,23525,23961,24401,24845,25293,25745,26201,26661,27125,27593,28065,28541,29021,29505,29993,30485,30981,31481,31985,32493,33005,33521,34041,34565,35093,35625,36161,36701,37245,37793,38345,38901,39461,40025,40593,41165,41741,42321,42905,43493,44085,44681,45281,45885,46493,47105,47721,48341,48965,49593,50225,50861,51501,52145,52793,53445,54101,54761,55425,56093,56765,57441,58121,58805,59493,60185,60881,61581,62285,62993,63705,64421,65141,65865,66593,67325,68061,68801,69545,70293,71045,71801,72561,73325,74093,74865,75641,76421,77205,77993,78785,79581,80381,81185,81993,82805,83621,84441,85265,86093,86925,87761,88601,89445,90293,91145,92001,92861,93725,94593,95465,96341,97221,98105,98993,99885,100781,101681,102585,103493,104405,105321,106241,107165,108093,109025,109961,110901,111845,112793,113745,114701,115661,116625,117593,118565,119541,120521,121505,122493,123485,124481,125481,126485,127493,128505 mov $1,$0 add $0,9 mul $1,2 mul $1,$0 add $1,21
169.666667
1,441
0.806811
71fa27ff921ee275a1f01e44189d4d1d87c9973d
6,755
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1650.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.log_21829_1650.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.log_21829_1650.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 %r14 push %r15 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x1095d, %rdi sub $9182, %r14 movl $0x61626364, (%rdi) nop nop nop nop and %rdi, %rdi lea addresses_WT_ht+0x646d, %rbx nop nop cmp $7685, %rsi movl $0x61626364, (%rbx) nop nop nop nop nop inc %rbx lea addresses_WC_ht+0x335d, %rsi lea addresses_D_ht+0x505d, %rdi nop nop nop xor %rax, %rax mov $115, %rcx rep movsw nop nop nop nop cmp %rax, %rax lea addresses_normal_ht+0xf453, %rsi lea addresses_D_ht+0x1265d, %rdi nop nop nop nop inc %rax mov $52, %rcx rep movsw sub $33310, %rdi lea addresses_A_ht+0x9a55, %r15 nop nop nop xor %rcx, %rcx movb $0x61, (%r15) nop nop nop nop nop add %rbx, %rbx lea addresses_A_ht+0x531d, %rsi lea addresses_D_ht+0x15ea1, %rdi xor $20630, %r10 mov $21, %rcx rep movsb xor $20715, %r15 lea addresses_normal_ht+0x585d, %rsi lea addresses_UC_ht+0x1081b, %rdi nop add %r15, %r15 mov $91, %rcx rep movsw nop add $7625, %rax lea addresses_UC_ht+0x5d3d, %r10 nop nop and %rbx, %rbx mov (%r10), %r15d nop nop nop nop cmp %rsi, %rsi lea addresses_UC_ht+0x1e63d, %rdi nop nop inc %r10 mov $0x6162636465666768, %rax movq %rax, %xmm5 and $0xffffffffffffffc0, %rdi movntdq %xmm5, (%rdi) nop nop nop xor %r14, %r14 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r15 pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r14 push %r15 push %rcx push %rdx // Store lea addresses_D+0x1825d, %r11 nop nop add $16507, %rdx mov $0x5152535455565758, %r15 movq %r15, %xmm4 movups %xmm4, (%r11) and %r11, %r11 // Load mov $0x46315b0000000a5d, %r10 nop nop nop nop nop sub $5490, %r11 mov (%r10), %r15w sub %r11, %r11 // Faulty Load lea addresses_RW+0xfa5d, %rcx clflush (%rcx) nop nop nop and %r12, %r12 mov (%rcx), %rdx lea oracles, %r12 and $0xff, %rdx shlq $12, %rdx mov (%r12,%rdx,1), %rdx pop %rdx pop %rcx pop %r15 pop %r14 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 11, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': True, 'congruent': 8, 'size': 2, 'same': False, 'NT': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 4, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': True, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 3, 'size': 4, 'same': True, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': True}} {'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 */
36.711957
2,999
0.658327
ff578e8e165e267853228488b770221461b63d19
8,646
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0_notsx.log_21829_2035.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0_notsx.log_21829_2035.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0_notsx.log_21829_2035.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 %r8 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x1d770, %rsi lea addresses_normal_ht+0xeef0, %rdi nop nop sub $2694, %rbx mov $125, %rcx rep movsw nop nop and %r8, %r8 lea addresses_WT_ht+0x17dd0, %r10 nop inc %r9 mov $0x6162636465666768, %rbx movq %rbx, %xmm3 movups %xmm3, (%r10) inc %rdi lea addresses_D_ht+0xf870, %rsi lea addresses_D_ht+0x6d70, %rdi clflush (%rsi) nop nop xor $22177, %rax mov $108, %rcx rep movsb nop nop nop nop nop cmp %r10, %r10 lea addresses_normal_ht+0x19901, %rsi lea addresses_WC_ht+0x3cf0, %rdi nop nop nop dec %r10 mov $1, %rcx rep movsb nop nop nop and %r10, %r10 lea addresses_normal_ht+0x4328, %rcx nop nop nop nop nop add %rsi, %rsi mov $0x6162636465666768, %r10 movq %r10, (%rcx) nop sub $10817, %rdi lea addresses_WC_ht+0xcf70, %rsi nop nop nop cmp $56347, %rdi and $0xffffffffffffffc0, %rsi vmovaps (%rsi), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $1, %xmm6, %rcx nop nop sub %rbx, %rbx lea addresses_UC_ht+0x3f70, %rsi lea addresses_WC_ht+0x9770, %rdi nop nop nop nop nop cmp $11089, %r9 mov $3, %rcx rep movsb nop nop nop nop sub %rsi, %rsi lea addresses_WT_ht+0xd8f0, %rax nop xor $46459, %rdi movb (%rax), %cl nop nop nop xor $42009, %rcx lea addresses_WT_ht+0x3370, %rdi nop nop nop nop nop dec %rsi movw $0x6162, (%rdi) nop nop xor $51773, %rbx lea addresses_A_ht+0x12170, %r8 nop nop nop nop nop inc %rbx movl $0x61626364, (%r8) nop nop and $44685, %rdi lea addresses_WT_ht+0x18ed0, %r10 nop and %rdi, %rdi movb (%r10), %bl sub %r8, %r8 lea addresses_A_ht+0x2810, %rsi lea addresses_WT_ht+0x2f78, %rdi nop nop sub $61153, %r9 mov $98, %rcx rep movsl nop nop nop nop mfence lea addresses_WT_ht+0x7670, %r10 clflush (%r10) nop nop nop nop add %r8, %r8 mov $0x6162636465666768, %rcx movq %rcx, %xmm4 and $0xffffffffffffffc0, %r10 vmovaps %ymm4, (%r10) nop and $3236, %r10 lea addresses_normal_ht+0xff70, %r10 nop nop nop nop cmp %rax, %rax mov (%r10), %rbx sub $35501, %rbx pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r8 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %rbx push %rcx push %rdi push %rsi // REPMOV lea addresses_A+0x157b0, %rsi lea addresses_UC+0x8b70, %rdi nop inc %r10 mov $28, %rcx rep movsq nop nop nop add %rcx, %rcx // Store lea addresses_A+0x1b310, %rdi nop xor $36431, %r14 movb $0x51, (%rdi) nop nop and %rcx, %rcx // Store lea addresses_normal+0x15770, %rcx xor %rbx, %rbx movw $0x5152, (%rcx) nop nop nop nop xor $24965, %r10 // Store lea addresses_normal+0x15770, %rsi nop nop nop inc %r12 mov $0x5152535455565758, %rdi movq %rdi, (%rsi) sub $64652, %rcx // Faulty Load lea addresses_normal+0x15770, %r12 nop nop nop and %r14, %r14 movb (%r12), %r10b lea oracles, %rsi and $0xff, %r10 shlq $12, %r10 mov (%rsi,%r10,1), %r10 pop %rsi pop %rdi pop %rcx pop %rbx pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 8, 'NT': True, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC', 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 5}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'size': 8, 'NT': False, 'same': True, 'congruent': 0}} [Faulty Load] {'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 4}} {'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}} {'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': True, 'size': 8, 'NT': False, 'same': False, 'congruent': 3}} {'src': {'type': 'addresses_WC_ht', 'AVXalign': True, 'size': 32, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 10}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 9}} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 5}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 32, 'NT': False, 'same': False, 'congruent': 8}} {'src': {'type': 'addresses_normal_ht', 'AVXalign': True, 'size': 8, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
32.141264
2,999
0.657761
1617772040fe15013104323c324cbf76d7c5c945
1,718
asm
Assembly
HelloIO/helloIO.asm
miguel2192/CSC211-Assembly
39cd43026f07e443d9809fb7ec229303522ecab9
[ "MIT" ]
null
null
null
HelloIO/helloIO.asm
miguel2192/CSC211-Assembly
39cd43026f07e443d9809fb7ec229303522ecab9
[ "MIT" ]
null
null
null
HelloIO/helloIO.asm
miguel2192/CSC211-Assembly
39cd43026f07e443d9809fb7ec229303522ecab9
[ "MIT" ]
null
null
null
########### helloIO.asm on p. 26-27 ############# # Miguel Rodriguez # # helloIO.asm # # Description # # Program which displays a message # # Program Logic # # 1. Ask for a message # # 2. input the message # # 3. display a message from the data area # # 4. display a new line # # 5. return to operating system # ################################################# .text .globl __start __start: la $a0,p1 # Display the message below "Enter your message" li $v0,4 # a0 = address of string syscall # v0 = 4, indicates display a string la $a0,str #Loads the address of the message area li $a1,80 #Loads the number of characters available for the message li $v0,8 #inputs the message syscall #calls to do the command above la $a0,str #displays the Message li $v0,4 syscall la $a0,p2 #displays the new line li $v0,4 syscall li $v0,10 # End Of Program syscall # Call to system .data str: .space 80 p1: .asciiz "Enter Your Message: " p2: .asciiz "\n" ############## Output ################## # Console # #========================= # # Enter Your Message: Miguel Rodriguez # # Miguel Rodriguez # # # ########################################
31.236364
77
0.394063
aa77032257b33b5016e4d0dd923d59a8f1a6081d
1,231
asm
Assembly
cs61/lab_template.asm
bmoya217/ucr
16a1b24b40845b9b98c6e93b8e1bf24a9f090f4b
[ "Apache-2.0" ]
null
null
null
cs61/lab_template.asm
bmoya217/ucr
16a1b24b40845b9b98c6e93b8e1bf24a9f090f4b
[ "Apache-2.0" ]
null
null
null
cs61/lab_template.asm
bmoya217/ucr
16a1b24b40845b9b98c6e93b8e1bf24a9f090f4b
[ "Apache-2.0" ]
null
null
null
;=============================================================================== ; Name: Moya, Branden ; Username: bmoya001@ucr.edu ; ; Lab: lab 9.1 ; Lab section: 021 ; TA: Bryan Marsh ; ;=============================================================================== .Orig x3000 ;Instructions LD R6, POINTER ADD R0,R0,#10 ADD R0,R0,#-1 ST R6, POINTER BRzp #-3 HALT ;Local data POINTER .FILL x4000 ;------------------------------------------------------------------------------- ; Subroutine: SUB_INSERT_NAME ; Parameter (R0): The value to push onto the stack ; Parameter (R1): stack_addr: A pointer to the beginning of the stack ; Parameter (R2): top: A pointer to the next place to PUSH an item ; Parameter (R3): capacity: The number of additional items the stack can hold ; Postcondition: The subroutine has pushed (R0) onto the stack. If an overflow ; occurred, the subroutine has printed an overflow error message ; and terminated. ; Return Value: R2 ← updated top value ; R3 ← updated capacity value ;------------------------------------------------------------------------------- .ORIG x3200 SUB_INSERT_NAME ST R7, R7_3200 LD R7, R7_3200 RET ;Subroutine data R7_3200 .BLKW #1 ;Remote Data ARRAY .BLKW #100 .end
23.673077
80
0.539399
624b1e67844155eed5993926c7c34b62c55db331
952
asm
Assembly
data/events/unown_walls.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
data/events/unown_walls.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
data/events/unown_walls.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
unownwall: MACRO rept _NARG if \1 == "-" x = $64 elif \1 >= "Y" x = 2 * (\1 - "Y") + $60 elif \1 >= "Q" x = 2 * (\1 - "Q") + $40 elif \1 >= "I" x = 2 * (\1 - "I") + $20 else x = 2 * (\1 - "A") endc db x shift endr db -1 ; end ENDM UnownWalls: ; UNOWNWORDS_ESCAPE ; db $08, $44, $04, $00, $2e, $08, -1 unownwall "E", "S", "C", "A", "P", "E" ; UNOWNWORDS_LIGHT ; db $26, $20, $0c, $0e, $46, -1 unownwall "L", "I", "G", "H", "T" ; UNOWNWORDS_WATER ; db $4c, $00, $46, $08, $42, -1 unownwall "W", "A", "T", "E", "R" ; UNOWNWORDS_HO_OH ; db $0e, $2c, $64, $2c, $0e, -1 unownwall "H", "O", "-", "O", "H" MenuHeaders_UnownWalls: ; UNOWNWORDS_ESCAPE db MENU_BACKUP_TILES ; flags menu_coords 3, 4, 16, 9 ; UNOWNWORDS_LIGHT db MENU_BACKUP_TILES ; flags menu_coords 4, 4, 15, 9 ; UNOWNWORDS_WATER db MENU_BACKUP_TILES ; flags menu_coords 4, 4, 15, 9 ; UNOWNWORDS_HO_OH db MENU_BACKUP_TILES ; flags menu_coords 4, 4, 15, 9
20.255319
43
0.557773
1408d7d428194a26e0d1fd094ac8677fd14644d8
1,484
asm
Assembly
MIPS_Language/exp_1_3.asm
Timothy-LiuXuefeng/MIPS
6a3afe1ce209480d8c13a9251ca0a3b8cdf8b396
[ "MIT" ]
null
null
null
MIPS_Language/exp_1_3.asm
Timothy-LiuXuefeng/MIPS
6a3afe1ce209480d8c13a9251ca0a3b8cdf8b396
[ "MIT" ]
null
null
null
MIPS_Language/exp_1_3.asm
Timothy-LiuXuefeng/MIPS
6a3afe1ce209480d8c13a9251ca0a3b8cdf8b396
[ "MIT" ]
null
null
null
# $s0: a; $s1: n; $t0: i; .data space: .asciiz " " .text li $v0, 5 # read n syscall move $s1, $v0 sll $a0, $s1, 2 # a0 = n * 4 li $v0, 9 # heap alloc syscall move $s0, $v0 li $t0, 0 # for i = 0 move $t3, $s0 # save the address of a into $t3 input: slt $t2, $t0, $s1 beq $t2, $0, endinput li $v0, 5 # read a[i] syscall sw $v0, 0($t3) addi $t3, $t3, 4 addi $t0, $t0, 1 j input endinput: li $t0, 0 # for i = 0 move $t3, $s0 # save the address of a into t3 addi $t4, $s1, -1 # calculate n - 1 sll $t4, $t4, 2 # calculate (n - 1) * 4 add $t4, $s0, $t4 # save the address of a[n - 1] into $t4 srl $t5, $s1, 1 # save n / 2 into t5 exchange: slt $t1, $t0, $t5 # i < n / 2 beq $t1, $0, endexchange lw $t1, 0($t3) # t = a[i] lw $t2, 0($t4) # get a[n - i - 1] sw $t2, 0($t3) # a[i] = a[n - i - 1] sw $t1, 0($t4) # a[n - i - 1] = t addi $t4, $t4, -4 addi $t3, $t3, 4 addi $t0, $t0, 1 j exchange endexchange: li $t0, 0 # for i = 0 move $t3, $s0 # save the address of a into t3 print: slt $t2, $t0, $s1 beq $t2, $0, endprint lw $a0, 0($t3) # print %d li $v0, 1 syscall la $a0, space li $v0, 4 syscall addi $t3, $t3, 4 addi $t0, $t0, 1 j print endprint: li $v0, 17 li $a0, 0 # return 0 syscall # exit
20.901408
63
0.447439
a3bdec0bff8239b6dc4d5ebac5b984f8be8de65c
1,538
asm
Assembly
programs/oeis/033/A033428.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/033/A033428.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/033/A033428.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A033428: a(n) = 3*n^2. ; 0,3,12,27,48,75,108,147,192,243,300,363,432,507,588,675,768,867,972,1083,1200,1323,1452,1587,1728,1875,2028,2187,2352,2523,2700,2883,3072,3267,3468,3675,3888,4107,4332,4563,4800,5043,5292,5547,5808,6075,6348,6627,6912,7203,7500,7803,8112,8427,8748,9075,9408,9747,10092,10443,10800,11163,11532,11907,12288,12675,13068,13467,13872,14283,14700,15123,15552,15987,16428,16875,17328,17787,18252,18723,19200,19683,20172,20667,21168,21675,22188,22707,23232,23763,24300,24843,25392,25947,26508,27075,27648,28227,28812,29403,30000,30603,31212,31827,32448,33075,33708,34347,34992,35643,36300,36963,37632,38307,38988,39675,40368,41067,41772,42483,43200,43923,44652,45387,46128,46875,47628,48387,49152,49923,50700,51483,52272,53067,53868,54675,55488,56307,57132,57963,58800,59643,60492,61347,62208,63075,63948,64827,65712,66603,67500,68403,69312,70227,71148,72075,73008,73947,74892,75843,76800,77763,78732,79707,80688,81675,82668,83667,84672,85683,86700,87723,88752,89787,90828,91875,92928,93987,95052,96123,97200,98283,99372,100467,101568,102675,103788,104907,106032,107163,108300,109443,110592,111747,112908,114075,115248,116427,117612,118803,120000,121203,122412,123627,124848,126075,127308,128547,129792,131043,132300,133563,134832,136107,137388,138675,139968,141267,142572,143883,145200,146523,147852,149187,150528,151875,153228,154587,155952,157323,158700,160083,161472,162867,164268,165675,167088,168507,169932,171363,172800,174243,175692,177147,178608,180075,181548,183027,184512,186003 mov $1,$0 pow $1,2 mul $1,3
219.714286
1,483
0.818596
f6fb3c54fab1115871b2b769f49e35c876749129
128
asm
Assembly
tests/testdata/tbuilder-in-5-bad.asm
roycrippen/sicxe
fdca37f56c95f2a76a78455f86a90e4b89329a54
[ "MIT" ]
null
null
null
tests/testdata/tbuilder-in-5-bad.asm
roycrippen/sicxe
fdca37f56c95f2a76a78455f86a90e4b89329a54
[ "MIT" ]
null
null
null
tests/testdata/tbuilder-in-5-bad.asm
roycrippen/sicxe
fdca37f56c95f2a76a78455f86a90e4b89329a54
[ "MIT" ]
null
null
null
test START 0 SUBR A, X a LDCH =[17 * 17] . error: value too large END test
25.6
58
0.390625
7d0fb5c1d8df0299b277a6f73e23162387234ef4
654
asm
Assembly
oeis/002/A002003.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/002/A002003.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/002/A002003.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A002003: a(n) = 2 * Sum_{k=0..n-1} binomial(n-1, k)*binomial(n+k, k). ; Submitted by Jon Maiga ; 0,2,8,38,192,1002,5336,28814,157184,864146,4780008,26572086,148321344,830764794,4666890936,26283115038,148348809216,838944980514,4752575891144,26964373486406,153196621856192,871460014012682,4962895187697048,28292329581548718,161439727075246592,921991641870126002,5269738713907663016,30141904551115043414,172523643553950122304,988102791772527208986,5662556669152122153336,32468566408704598214718,186268135991213676920832,1069116700915117384267842,6139177238547480264595848,35268115657225046492723814 seq $0,123164 ; Row sums of A123160. div $0,2 mul $0,2
81.75
500
0.853211
999f336838c5305d92f7c7f551b67aede041e353
896
asm
Assembly
src/test/ref/union-4.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/test/ref/union-4.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/test/ref/union-4.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
// Minimal union with C-Standard behavior - union with array member // Commodore 64 PRG executable file .file [name="union-4.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) .const SIZEOF_UNION_IPV4 = 4 .label SCREEN = $400 .segment Code main: { // ipv4.d = 0x12345678ul lda #<$12345678 sta ipv4 lda #>$12345678 sta ipv4+1 lda #<$12345678>>$10 sta ipv4+2 lda #>$12345678>>$10 sta ipv4+3 // SCREEN[0] = ipv4.b[3] sta SCREEN // SCREEN[1] = ipv4.b[2] lda ipv4+2 sta SCREEN+1 // SCREEN[2] = ipv4.b[1] lda ipv4+1 sta SCREEN+2 // SCREEN[3] = ipv4.b[0] lda ipv4 sta SCREEN+3 // } rts } .segment Data ipv4: .fill SIZEOF_UNION_IPV4, 0
22.974359
67
0.627232
6894157de4f25922b8bd781654498c69f6617355
1,005
asm
Assembly
libsrc/psg/pc88/psg_init.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/psg/pc88/psg_init.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/psg/pc88/psg_init.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; ; PC-8801 specific routines ; ; int psg_init(); ; ; Set up the PSG. ; There are lost of sound interfaces out there, ; this driver will probably work only with the factory configurations. ; ; ; $Id: psg_init.asm $ ; SECTION code_clib PUBLIC psg_init PUBLIC _psg_init EXTERN _pc88_fm_addr psg_init: _psg_init: call _pc88_fm_addr ld (__psg_port),hl do_init: ld e,@01010101 xor a ; R0: Channel A frequency low bits call outpsg ld e,a ld d,12 psg_iniloop: inc a ; R1-13: set all to 0 but 7 and 11 cp 7 jr z,skip ;cp 11 ;jr z,skip call outpsg skip: dec d jr nz,psg_iniloop ld e,@11111000 ; R7: Channel setting. Enable sound channels ABC and input on ports A and B ld a,7 call outpsg ld e,@00001011 ; R11: Envelope ld a,11 outpsg: ld bc,(__psg_port) ld b,a busyloop: in a,(c) rlca jr c, busyloop ld a,b OUT (C),a inc bc ld a,(ix+0) ; dummy instruction used to pause OUT (C),e ret SECTION bss_clib PUBLIC __psg_port __psg_port: defw 0
13.223684
92
0.680597
f4a405c754362817202a6c67727ac580b7a3498e
4,754
asm
Assembly
thirdparty/ffmpeg/libavfilter/x86/vf_interlace.asm
yashrajsingh1998/ApraPipes1
ec93095613f4345d6044c7012f2d8c3b99f65f03
[ "MIT" ]
30
2022-03-10T16:34:13.000Z
2022-03-29T09:32:35.000Z
thirdparty/ffmpeg/libavfilter/x86/vf_interlace.asm
yashrajsingh1998/ApraPipes1
ec93095613f4345d6044c7012f2d8c3b99f65f03
[ "MIT" ]
2
2021-10-06T06:09:55.000Z
2022-03-28T06:15:25.000Z
thirdparty/ffmpeg/libavfilter/x86/vf_interlace.asm
yashrajsingh1998/ApraPipes1
ec93095613f4345d6044c7012f2d8c3b99f65f03
[ "MIT" ]
6
2021-09-24T04:58:43.000Z
2022-03-10T10:02:27.000Z
;***************************************************************************** ;* x86-optimized functions for interlace filter ;* ;* Copyright (C) 2014 Kieran Kunhya <kierank@obe.tv> ;* Copyright (c) 2014 Michael Niedermayer <michaelni@gmx.at> ;* Copyright (c) 2017 Thomas Mundt <tmundt75@gmail.com> ;* ;* This file is part of FFmpeg. ;* ;* FFmpeg is free software; you can redistribute it and/or modify ;* it under the terms of the GNU General Public License as published by ;* the Free Software Foundation; either version 2 of the License, or ;* (at your option) any later version. ;* ;* FFmpeg is distributed in the hope that it will be useful, ;* but WITHOUT ANY WARRANTY; without even the implied warranty of ;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;* GNU General Public License for more details. ;* ;* You should have received a copy of the GNU General Public License along ;* with FFmpeg; if not, write to the Free Software Foundation, Inc., ;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ;****************************************************************************** %include "libavutil/x86/x86util.asm" SECTION_RODATA pw_4: times 8 dw 4 SECTION .text %macro LOWPASS 1 add dstq, hq add srcq, hq add mrefq, srcq add prefq, srcq neg hq pcmpeq%1 m6, m6 test hq, mmsize je .loop ;process 1 * mmsize movu m0, [mrefq+hq] pavg%1 m0, [prefq+hq] pxor m0, m6 pxor m2, m6, [srcq+hq] pavg%1 m0, m2 pxor m0, m6 movu [dstq+hq], m0 add hq, mmsize jge .end .loop: movu m0, [mrefq+hq] movu m1, [mrefq+hq+mmsize] pavg%1 m0, [prefq+hq] pavg%1 m1, [prefq+hq+mmsize] pxor m0, m6 pxor m1, m6 pxor m2, m6, [srcq+hq] pxor m3, m6, [srcq+hq+mmsize] pavg%1 m0, m2 pavg%1 m1, m3 pxor m0, m6 pxor m1, m6 movu [dstq+hq], m0 movu [dstq+hq+mmsize], m1 add hq, 2*mmsize jl .loop .end: REP_RET %endmacro %macro LOWPASS_LINE 0 cglobal lowpass_line, 5, 5, 7, dst, h, src, mref, pref LOWPASS b cglobal lowpass_line_16, 5, 5, 7, dst, h, src, mref, pref shl hq, 1 LOWPASS w %endmacro %macro LOWPASS_LINE_COMPLEX 0 cglobal lowpass_line_complex, 5, 5, 8, dst, h, src, mref, pref pxor m7, m7 .loop: movu m0, [srcq+mrefq] movu m2, [srcq+prefq] mova m1, m0 mova m3, m2 punpcklbw m0, m7 punpcklbw m2, m7 punpckhbw m1, m7 punpckhbw m3, m7 paddw m0, m2 paddw m1, m3 mova m6, m0 mova m5, m1 movu m2, [srcq] mova m3, m2 punpcklbw m2, m7 punpckhbw m3, m7 paddw m0, m2 paddw m1, m3 psllw m2, 1 psllw m3, 1 paddw m0, m2 paddw m1, m3 psllw m0, 1 psllw m1, 1 pcmpgtw m6, m2 pcmpgtw m5, m3 packsswb m6, m5 movu m2, [srcq+mrefq*2] movu m4, [srcq+prefq*2] mova m3, m2 mova m5, m4 punpcklbw m2, m7 punpcklbw m4, m7 punpckhbw m3, m7 punpckhbw m5, m7 paddw m2, m4 paddw m3, m5 paddw m0, [pw_4] paddw m1, [pw_4] psubusw m0, m2 psubusw m1, m3 psrlw m0, 3 psrlw m1, 3 packuswb m0, m1 mova m1, m0 movu m2, [srcq] pmaxub m0, m2 pminub m1, m2 pand m0, m6 pandn m6, m1 por m0, m6 movu [dstq], m0 add dstq, mmsize add srcq, mmsize sub hd, mmsize jg .loop REP_RET cglobal lowpass_line_complex_12, 5, 5, 8, 16, dst, h, src, mref, pref, clip_max movd m7, DWORD clip_maxm SPLATW m7, m7, 0 movu [rsp], m7 .loop: movu m0, [srcq+mrefq] movu m1, [srcq+mrefq+mmsize] movu m2, [srcq+prefq] movu m3, [srcq+prefq+mmsize] paddw m0, m2 paddw m1, m3 mova m6, m0 mova m7, m1 movu m2, [srcq] movu m3, [srcq+mmsize] paddw m0, m2 paddw m1, m3 psllw m2, 1 psllw m3, 1 paddw m0, m2 paddw m1, m3 psllw m0, 1 psllw m1, 1 pcmpgtw m6, m2 pcmpgtw m7, m3 movu m2, [srcq+2*mrefq] movu m3, [srcq+2*mrefq+mmsize] movu m4, [srcq+2*prefq] movu m5, [srcq+2*prefq+mmsize] paddw m2, m4 paddw m3, m5 paddw m0, [pw_4] paddw m1, [pw_4] psubusw m0, m2 psubusw m1, m3 psrlw m0, 3 psrlw m1, 3 pminsw m0, [rsp] pminsw m1, [rsp] mova m2, m0 mova m3, m1 movu m4, [srcq] pmaxsw m0, m4 pminsw m2, m4 movu m4, [srcq + mmsize] pmaxsw m1, m4 pminsw m3, m4 pand m0, m6 pand m1, m7 pandn m6, m2 pandn m7, m3 por m0, m6 por m1, m7 movu [dstq], m0 movu [dstq+mmsize], m1 add dstq, 2*mmsize add srcq, 2*mmsize sub hd, mmsize jg .loop REP_RET %endmacro INIT_XMM sse2 LOWPASS_LINE INIT_XMM avx LOWPASS_LINE %if HAVE_AVX2_EXTERNAL INIT_YMM avx2 LOWPASS_LINE %endif INIT_XMM sse2 LOWPASS_LINE_COMPLEX
20.942731
79
0.597602
416322e7468c0982a0aadaafadd2269929aaf463
778
asm
Assembly
oeis/089/A089822.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/089/A089822.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/089/A089822.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A089822: Number of subsets of {1,.., n} containing exactly two primes. ; Submitted by Jamie Morken(s2) ; 0,0,2,4,12,24,48,96,192,384,640,1280,1920,3840,7680,15360,21504,43008,57344,114688,229376,458752,589824,1179648,2359296,4718592,9437184,18874368,23592960,47185920,57671680,115343360,230686720,461373440,922746880,1845493760,2214592512,4429185024,8858370048,17716740096,20937965568,41875931136,48855252992,97710505984,195421011968,390842023936,450971566080,901943132160,1803886264320,3607772528640,7215545057280,14431090114560,16492674416640,32985348833280,65970697666560,131941395333120 mov $4,$0 add $4,1 mov $0,$4 seq $0,230980 ; Number of primes <= n, starting at n=0. mov $2,$0 bin $0,2 sub $2,2 sub $4,3 mov $3,$4 sub $3,$2 lpb $3 mul $0,2 sub $3,1 lpe mul $0,2
38.9
487
0.784062
2d8acc4f3ad357907fff4fdc6aec8ec341abfa92
381
asm
Assembly
programs/oeis/173/A173523.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/173/A173523.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/173/A173523.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A173523: 1+A053735(n-1), where A053735 is the sum-of-digits function in base 3. ; 1,2,3,2,3,4,3,4,5,2,3,4,3,4,5,4,5,6,3,4,5,4,5,6,5,6,7,2,3,4,3,4,5,4,5,6,3,4,5,4,5,6,5,6,7,4,5,6,5,6,7,6,7,8,3,4,5,4,5,6,5,6,7,4,5,6,5,6,7,6,7,8,5,6,7,6,7,8,7,8,9,2,3,4,3,4,5,4,5,6,3,4,5,4,5,6,5,6,7,4 mov $2,$0 lpb $2 mov $0,$2 gcd $0,81 add $1,6 sub $2,$0 lpe div $1,6 add $1,1 mov $0,$1
27.214286
201
0.545932
6cb57acffea16ccb3d5297e7f9ef9906d4150a56
842
asm
Assembly
oeis/286/A286863.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/286/A286863.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/286/A286863.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A286863: Binary representation of the diagonal from the corner to the origin of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 814", based on the 5-celled von Neumann neighborhood. ; Submitted by Jon Maiga ; 1,1,1,1,11,11,11,11,1111,1111,1111,1111,1111,1111,1111,1111,11111111,11111111,11111111,11111111,11111111,11111111,11111111,11111111,11111111,11111111,11111111,11111111,11111111,11111111,11111111,11111111,1111111111111111,1111111111111111,1111111111111111,1111111111111111,1111111111111111,1111111111111111,1111111111111111,1111111111111111,1111111111111111,1111111111111111,1111111111111111,1111111111111111,1111111111111111,1111111111111111,1111111111111111,1111111111111111,1111111111111111 div $0,4 mov $1,1 lpb $0 div $0,2 pow $1,2 mul $1,10 lpe div $1,9 mov $0,$1 mul $0,10 add $0,1
52.625
494
0.82304
02c74943240a485141be67c538547b90dc3db796
535
asm
Assembly
examples/str_split.asm
mossx-dev/Mycore
eb84409f1a263204d30ef0b9d4254a96a121726f
[ "MIT" ]
null
null
null
examples/str_split.asm
mossx-dev/Mycore
eb84409f1a263204d30ef0b9d4254a96a121726f
[ "MIT" ]
null
null
null
examples/str_split.asm
mossx-dev/Mycore
eb84409f1a263204d30ef0b9d4254a96a121726f
[ "MIT" ]
null
null
null
;; Author: Moss Gallagher ;; Date: 12-Oct-21 %include "std/sys.asm" %include "std/str.asm" global _start section .data str: db "Hello World Foo Bar", 0 section .text _start: mov r15, rsp call main mov eax, esi ; exit code call sys~exit ; call exit main: mov rax, str call str#new_cs mov r9, rax call str~println mov rax, r9 mov rbx, 0x20 call str~split mov rax, rsi call arr~println ret
14.861111
45
0.525234
e3dc652deb53915e7411a7de27a2c329540b731f
132
asm
Assembly
libsrc/_DEVELOPMENT/font/fzx/fonts/utz/PhatKidzBRK/_ff_utz_PhatKidzBRK.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/font/fzx/fonts/utz/PhatKidzBRK/_ff_utz_PhatKidzBRK.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/font/fzx/fonts/utz/PhatKidzBRK/_ff_utz_PhatKidzBRK.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
SECTION rodata_font_fzx PUBLIC _ff_utz_PhatKidzBRK _ff_utz_PhatKidzBRK: BINARY "font/fzx/fonts/utz/PhatKidzBRK/phatkidzbrk.fzx"
14.666667
55
0.848485
611eec05e4f60252c6b7b17f3b43cb1ade36ca30
787
asm
Assembly
libsrc/cpc/cpc_PrintGphStrStd_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/cpc/cpc_PrintGphStrStd_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/cpc/cpc_PrintGphStrStd_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; ; Amstrad CPC library ; ; ****************************************************** ; ** Librería de rutinas para Amstrad CPC ** ; ** Raúl Simarro, Artaburu 2009 ** ; ****************************************************** ; ; void cpc_PrintGphStrStd(char *color, char *text); ; ; $Id: cpc_PrintGphStrStd_callee.asm $ ; SECTION code_clib PUBLIC cpc_PrintGphStrStd_callee PUBLIC _cpc_PrintGphStrStd_callee EXTERN cpc_PrintGphStrStd0 ;EXTERN color_uso .cpc_PrintGphStrStd_callee ._cpc_PrintGphStrStd_callee ;preparación datos impresión. El ancho y alto son fijos! pop af pop hl ; screen address pop de ; text pop bc ; color push af ; ret addr ld a,c JP cpc_PrintGphStrStd0
22.485714
58
0.552732
b45a9792fd124b3646ee0911f23acc26b25d088e
5,004
asm
Assembly
libsrc/_DEVELOPMENT/stdio/z80/input_helpers/__stdio_scanf_bkt.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/stdio/z80/input_helpers/__stdio_scanf_bkt.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/stdio/z80/input_helpers/__stdio_scanf_bkt.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
SECTION code_stdio PUBLIC __stdio_scanf_bkt EXTERN asm_memset, l_bitset_locate, l_inc_sp, __stdio_scanf_sm_bkt EXTERN __stdio_recv_input_eatc, error_einval_zc, __stdio_scanf_s_tail __stdio_scanf_bkt: ; %[ converter called from vfscanf() ; ; enter : ix = FILE * ; de = void *buffer (workspace) ; bc = field width (0 means default) ; hl = void *p (destination buffer, 0 means suppressed) ; bc'= char *format (ptr following '[') ; ; exit : bc'= char *format (ptr following ']') ; carry set if error ; ; uses : all except ix push bc ; push field width push hl ; push void *p ; CREATE CHARACTER ACCEPT BITSET ex de,hl ; hl = void *buffer = workspace ld bc,32 ; 32 bytes = 256 bits, one for each char ld e,b ; e = 0 call asm_memset ; initialize bitset to zero ex de,hl ; de = void *workspace call generate_accept_set ; create the accept set in workspace pop bc jp nc, error_einval_zc - 1 ; if conversion spec is invalid ld a,(de) and $fe ld (de),a ; remove \0 from the bitset ; CONSUME STREAM CHARS ; de = void *bitset ; bc = void *buffer (0 if assignment suppressed) ; bc'= char *format ; stack = field width ld hl,__stdio_scanf_sm_bkt ; bracket state machine exx pop af push bc ; save char *format push af pop bc ; bc = field width ld a,b or c jr nz, width_specified ; if field width was supplied dec bc ; otherwise consume all matching chars from stream width_specified: call __stdio_recv_input_eatc exx ; bc = void *buffer (0 if assignment suppressed) ; stack = char *format ; carry set on error call __stdio_scanf_s_tail ; terminate string, deal with errors exx pop bc ; bc = char *format exx ret ; FORMAT STRING STATE MACHINE generate_accept_set: ; inside this state machine ; ; de = void *buffer = 32 bytes for accept set ; bc'= char *format = address of next format string char ; exit: carry set if no error call as_next_char ret z cp '^' jr nz, past_initial_carat call as_next_char ret z call past_initial_carat ; come back here to complement the accept set ld l,e ld h,d ld b,32 comp_loop: ld a,(hl) cpl ld (hl),a inc hl djnz comp_loop ret past_initial_carat: cp ']' jr nz, past_initial_bracket call as_add_char ; add ']' to the accept set first_char: call as_next_char ret z ; if format string prematurely terminates cp ']' scf ; indicate success ret z ; if normal end of specifier past_initial_bracket: ld c,a ; c = first char second_char: ; c = first char call as_next_char ret z ; if format string terminates prematurely cp ']' jr nz, not_done_0 ; finished but need to add first char to accept set ld a,c call as_add_char scf ; indicate success ret not_done_0: cp '-' jr z, range_given ; add the first char to the accept set and ; make the second char the new first char ld b,a ld a,c ; a = first char = char to add ld c,b ; c = second char = new first char call as_add_char ; add first char to accept set jr second_char range_given: ; c = first char ; '-' followed call as_next_char ret z cp ']' jr nz, not_done_1 ; format specifier ends in '-' ; just add first char and the '-' to the accept set ld a,c call as_add_char ld a,'-' call as_add_char scf ; success ret not_done_1: ; range given: c = first char, a = second char cp c jr nc, range_ok ; range given backwards, reverse it ld b,c ld c,a ld a,b range_ok: sub c ld b,a inc b ; c = first char, b = length of range push bc ld a,c call l_bitset_locate pop bc add hl,de ; hl = bitset location ; b = length of range ; a = mask ld c,a or (hl) ld (hl),a djnz set_loop jr first_char set_loop: sla c jr nc, in_byte ld c,1 inc hl in_byte: ld a,c or (hl) ld (hl),a djnz set_loop jr first_char as_next_char: ; read next char from format string ; increment format string pointer exx ld a,(bc) inc bc exx or a ret nz exx dec bc exx ret as_add_char: ; add char in A to accept set call l_bitset_locate add hl,de or (hl) ld (hl),a ret
17.496503
81
0.555556
e3ab62d0ecfdab35c4e6e5c6b68eb2f5ede78a0a
20,649
asm
Assembly
misc/terminal.asm
arpruss/ozdev
3df905b701b93ef52528c30f97d99a002e49c3b3
[ "Unlicense", "MIT" ]
6
2015-12-29T22:08:27.000Z
2021-12-30T08:20:37.000Z
misc/terminal.asm
arpruss/ozdev
3df905b701b93ef52528c30f97d99a002e49c3b3
[ "Unlicense", "MIT" ]
1
2018-02-12T17:01:47.000Z
2018-02-12T22:06:37.000Z
misc/terminal.asm
arpruss/ozdev
3df905b701b93ef52528c30f97d99a002e49c3b3
[ "Unlicense", "MIT" ]
1
2020-04-07T15:41:55.000Z
2020-04-07T15:41:55.000Z
; ; Terminal Emulator for ZQ700 ; 25/06/2000 ; Mike Field ; ; ; Assemble with TASM31 as follows ; C:>TASM -80 -g3 <filename.asm> <filename.wzd> ; This generates a text list file: <filename.lst> ; and a binary object file: <filename.wzd> ; ; This wzd file is ready to download to the wizard. ; ; Note: You will need the file wzdhdr0.asm in the same directory ; ;************************************************************************** ; This program is unsupported freeware ; ; Based on wzdhdr0.asm by Rob Jahnke .nocodes #define TITLE .Text "Terminal " ;14 Chrs max #define NAME .Text "Bxxx0001" ; B + 7 Chrs #define DESCRIP .Text "Terminal Emulator - Connect up to a Unix box!"; use \r\n for cr lf .nolist #include wzdhdr0.asm SERSTAT .EQU 45H SIN .EQU 40H SOUT .EQU 40H KEYLINESEL .EQU 17 KEYLINEDATA .EQU 16 FIRSTCHAR .EQU 32 ; ASCII codes that are defined in the font table LASTCHAR .EQU 126 BYTESPERLINE .EQU 30 ; Display arributes LINESPERROW .EQU 8 LINEONSCREEN .EQU 10 CHARSPERLINE .EQU 30 ; May be different if chars are not 8 wide ; ; ;=================== The entry setup =============== START PUSH AF ;Save all the registers PUSH BC PUSH DE PUSH HL DI ;Disable interupts IN A,(01H) ;Save the Memory Management Regs in BC LD C,A ; This stuff is only here to demonstrate IN A,(02H) ; how to do it. It's not needed in this pgm LD B,A PUSH BC ; Put the saved regs on the stack LD A,0FCH ; Set the page registers so that OUT (01H),A ; 8000H is mapped to the first LD A,03H ; location in graphics memory OUT (02H),A ;=================== Main program =============== ; Clear the screen LD A,13 CALL DISPLAY CALL DISPLAY CALL DISPLAY CALL DISPLAY CALL DISPLAY CALL DISPLAY CALL DISPLAY CALL DISPLAY SUB A LD (CURSORY),A ; Send a welcome string! LD HL,WELCOMEMSG-1 NEXTWCHAR INC HL LD A,(HL) CALL DISPLAY OR A ;Check for 00 Terminator JR NZ, NEXTWCHAR ; Set up for the main loop LD HL,MULTICHARS ; Point multichar strings to empty str JR MAINLOOP ; Jump into the middle of it ;======= the top of the main loop ========== ; During the main loop HL must be keep safe - it holds the ; "Multi character string" pointer. ; Read the character and update the display SERCHAR IN A,(SIN) ;Get the Serial Character into A ; As well as updating the display, place the charater to be echoed ; back to the host QUEUECHAR LD IX,CHARTOSEND ; Store it to be send so that it is LD (IX),A ; echoed CALL DISPLAY ; Place it on the screen ; ; See if there is a character to read ; MAINLOOP IN A,(SERSTAT) ; Check Serial Status AND 1 JR NZ,SERCHAR ; Read the byte and process it. ; See if there is still part of a ; mulitcharacter string to send ; This is used for arrow keys and escapes. LD A,(HL) OR A ;Check for 00 Terminator JR NZ, SENDSTRCHAR ; Nope - don't send anything ; ; See if there is a char to send ; NEXT1 LD A,(CHARTOSEND) OR A ; Check for 00 - nosend JR NZ,CLEARANDSEND ; ; See if a key is pressed down ; LD A,(KEYSEL) OR A JR NZ,TESTKEYUP ; ; See if a new key has been pressed ; LD A,1 ; Select first row of keys LD B,A ; B - Row select - hard code to 1 LD C,A ; C - Key Mask - hard code to 1 OUT (KEYLINESEL),A ; Set the line select IN A,(KEYLINEDATA) ; Get the First row of data AND C ; Check for ESC key JR Z, MAINLOOP ; No key down - back to top LD (KEYSELMASK),BC ; Save the mask and select of the key JR MAINLOOP ; Back to the top ;===== Out of the main line of the program ======= ; See if the key has been lifted TESTKEYUP LD BC,(KEYSELMASK) LD A,B OUT (KEYLINESEL),A ;Select first row of keys IN A,(KEYLINEDATA) ;Get the First row of data AND C ;Check for the matching Mask JR NZ, MAINLOOP ;Still set - key still down LD B,C ;reset the key pressed flag (C is 0!) LD (KEYSELMASK),BC JR EXIT ; Really this should jump back to the ; top - but I'll make it exit ; Put this anywhere really SENDSTRCHAR INC HL JR SENDACHAR ;If not then jump output the character CLEARANDSEND ; Send out character in chartosend - drops through to SENDACHAR LD A, (CHARTOSEND) LD IX, CHARTOSEND ; Clear the char to send byte LD (IX), 0 ; Send a character in 'A' to the serial port, ; Part of the main loop!!!! ; INPUT A = character to send ; USES B, IX SENDACHAR LD D,A ; Save the char to send WAIT IN A,(SERSTAT) ; Check CLEAR TO SEND AND 20H JR Z,WAIT ; Wait until clear to send LD A,D ; Send it to the Serial Out Port OUT (SOUT),A JR MAINLOOP ; Go back for next byte ;=================== End of the mail loop propper ;=================== Exit the program =============== EXIT POP BC ;Get the saved MMU regs LD A,C ;Restore the MMU regs OUT (01H),A LD A,B OUT (02H),A EI ;Enable Interupts POP HL ;Restore the regs POP DE POP BC POP AF RET ;=========================================================================== ; DISPLAY - Subrotine to put a character on the screen and update the ; cursor positions ; A = character to show ; All others are safe ;=========================================================================== DISPLAY PUSH HL ; Save registers ; HL used to calc the index the Line start tables ; calc the index in the font tables PUSH BC ; BC used to hold the memory address of the char on display ; PUSH IX ; IX used to index the font table ; LD (CHARTODRAW),A; ; Save the character to draw CP 13 ; Is it a newline???? JR Z,NEWLINE LD HL, LINESTARTS ; Address of 'line start' table LD A, (CURSORY) ; Add on 2*cursory SLA A ADD A,L LD L,A JR NC, NOINCY INC H NOINCY LD C, (HL) ; Load the start of the line into BC INC HL LD B, (HL) LD A, (CURSORX) ; Add on cursorX ADD A,C LD C,A JR NC, NOINCX INC B ; Find which font character to show NOINCX LD IX, FONT ; default to unknown character LD A,(CHARTODRAW) ; Load the character CP FIRSTCHAR ; Is it greater then the first char JR C, NOCHAR ; Nope - put the default character CP LASTCHAR+1 ; Is it less than the last char+1 JR NC, NOCHAR ; Nope - put the default SUB FIRSTCHAR-1 ; Calc entry in the table LD L,A ; Put the font table index into HL SUB A ; Zero out H LD H,A SLA L ; Multiply HL by 8 RL H SLA L RL H SLA L RL H LD A, FONT&0FFH ADD A,L LD L,A LD A, FONT/256 ADC A,H LD H,A LD (TEMP),HL LD IX,(TEMP) LD (TEMP),HL ; Put it in reg that the font LD IX,(TEMP) ; is indexed from ; Place the character on the screen, one line at a time NOCHAR LD H,8 ; How many character lines to place? NEXTSCANLNE LD A,(IX) ; Place a line of character into LD (BC),A ; The video memory INC IX ; Move on to the next line of font LD A,C ; Move bc to the next row ADD A,BYTESPERLINE LD C,A JR NC, NOINLINC INC B NOINLINC DEC H ; Have we updated all lines??? JR NZ,NEXTSCANLNE ; Nope - do the next one?? ; Update the cursor position LD A,(CURSORX) CP CHARSPERLINE-1; Last cursor place on the line? JR Z,NEWLINE ; Yes - we have to do a newline INC A ; Otherwise move the cursor across one char LD (CURSORX),A ; and exit JR DLEAVE ; Move the cursor onto a fresh line, scrolling if needed NEWLINE SUB A ; Move cursor back to start of the line LD (CURSORX),A ; See if we need to scroll LD A,(CURSORY) ; Last line ? CP LINEONSCREEN-1 ; Are we in the last line JR Z,SCROLL ; Yes - scroll instead INC A ; No, Increment the line we are on LD (CURSORY),A ; and then leave DLEAVE LD A,(CHARTODRAW) ; Restore the character to A POP IX ; For the caller. It may want to POP BC ; Do something with it POP HL RET SCROLL ; The code to scroll the line goes here! PUSH IY ; IY is the only one not restored on exit LD IX,8000H ; The start of the first line LD IY,80F0H ; The start of the second line LD B,LINEONSCREEN-1 ; Counter - Scroll all but last line EACHLINE LD C,BYTESPERLINE * LINESPERROW ; How many bytes per line PERLINE LD A, (IY) ; Load from next line LD (IX),A ; Save in the line INC IX ; Move on to next bytes INC IY DEC C JR NZ,PERLINE ; Still more on this line? DEC B JR NZ,EACHLINE ;Another line to go? ; Clear off the last line LD C,BYTESPERLINE * LINESPERROW ; Loop counter SUB A ; Clear out A CLEARLOOP LD (IX),A ; Empty one byte INC IX ; Increment the pointer DEC C ; Dec the counter JR NZ, CLEARLOOP ; need to do it again? POP IY JR DLEAVE ;============ End of code ============= .nocodes MULTICHARS .DB 00 WELCOMEMSG .Text "ZQ700 Terminal program" .DB 10 .DB 13 .Text "Written by mafield@the.net.nz" .DB 10 .DB 13 .DB 00 ; CHARTOSEND .DB 00 ; CHARTODRAW .DB 00 .DB 00 ; This must be zero! ; ; Order is important! KEYDOWN .DB 00 KEYSELMASK ; Accessed as a double byte KEYSEL .DB 00 KEYMASK .DB 00 TEMP .DB 0,0 CURSORY .DB 00H CURSORX .DB 00H LINESTARTS .DB 00H .DB 80H .DB 0F0H .DB 80H .DB 0E0H .DB 81H .DB 0D0H ; Line 4 .DB 82H .DB 0C0H .DB 83H .DB 0B0H .DB 84H .DB 0A0H .DB 85H .DB 090H ; Line 8 .DB 86H .DB 080H .DB 87H .DB 70H ; Line 10 .DB 88H FONT .DB 01FH, 011H, 011H, 011H, 011H, 011H, 01FH, 000H ; unknown .DB 000H, 000H, 000H, 000H, 000H, 000H, 000H, 000H ; ' ' 32 .DB 004H, 004H, 004H, 004H, 000H, 000H, 004H, 000H ; '!' 33 .DB 00AH, 00AH, 000H, 000H, 000H, 000H, 000H, 000H ; '"' 34 .DB 000H, 00AH, 01FH, 00AH, 01FH, 00AH, 000H, 000H ; '#' 35 .DB 004H, 00EH, 005H, 00EH, 014H, 00EH, 004H, 000H ; '$' 36 .DB 003H, 013H, 008H, 004H, 002H, 019H, 018H, 000H ; '%' 37 .DB 006H, 009H, 009H, 006H, 015H, 009H, 016H, 000H ; '&' 38 .DB 004H, 004H, 004H, 000H, 000H, 000H, 000H, 000H ; ''' 39 .DB 008H, 004H, 002H, 002H, 002H, 004H, 008H, 000H ; '(' 40 .DB 002H, 004H, 008H, 008H, 008H, 004H, 002H, 000H ; ')' 41 .DB 000H, 004H, 004H, 01FH, 00EH, 00AH, 000H, 000H ; '*' 42 .DB 000H, 004H, 004H, 01FH, 004H, 004H, 000H, 000H ; '+' 43 .DB 000H, 000H, 000H, 000H, 000H, 006H, 006H, 002H ; ',' 44 .DB 000H, 000H, 000H, 00EH, 000H, 000H, 000H, 000H ; '-' 45 .DB 000H, 000H, 000H, 000H, 000H, 006H, 006H, 000H ; '.' 46 .DB 010H, 008H, 008H, 004H, 002H, 002H, 001H, 000H ; '/' 47 .DB 00EH, 011H, 011H, 015H, 011H, 011H, 00EH, 000H ; '0' 48 .DB 004H, 006H, 004H, 004H, 004H, 004H, 00EH, 000H ; '1' 49 .DB 00EH, 011H, 010H, 008H, 004H, 002H, 01FH, 000H ; '2' 50 .DB 00EH, 011H, 010H, 00EH, 010H, 011H, 00EH, 000H ; '3' 51 .DB 008H, 00CH, 00AH, 01FH, 008H, 008H, 01CH, 000H ; '4' 52 .DB 01FH, 001H, 001H, 00FH, 010H, 011H, 00EH, 000H ; '5' 53 .DB 01CH, 002H, 001H, 00FH, 011H, 011H, 00EH, 000H ; '6' 54 .DB 01FH, 010H, 010H, 008H, 004H, 002H, 002H, 000H ; '7' 55 .DB 00EH, 011H, 011H, 00EH, 011H, 011H, 00EH, 000H ; '8' 56 .DB 00EH, 011H, 011H, 01EH, 010H, 008H, 007H, 000H ; '9' 57 .DB 000H, 000H, 006H, 006H, 000H, 006H, 006H, 000H ; ':' 58 .DB 000H, 000H, 006H, 006H, 000H, 006H, 006H, 002H ; ';' 59 .DB 000H, 018H, 006H, 001H, 006H, 018H, 000H, 000H ; '<' 60 .DB 000H, 000H, 01FH, 000H, 01FH, 000H, 000H, 000H ; '=' 61 .DB 000H, 003H, 00CH, 010H, 00CH, 003H, 000H, 000H ; '>' 62 .DB 00EH, 011H, 008H, 004H, 004H, 000H, 004H, 000H ; '?' 63 .DB 00EH, 011H, 01DH, 01BH, 01DH, 001H, 00EH, 000H ; '@' 64 .DB 00EH, 011H, 011H, 01FH, 011H, 011H, 011H, 000H ; 'A' 65 .DB 00FH, 011H, 011H, 00FH, 011H, 011H, 00FH, 000H ; 'B' .DB 00EH, 011H, 001H, 001H, 001H, 011H, 00EH, 000H ; 'C' .DB 00FH, 011H, 011H, 011H, 011H, 011H, 00FH, 000H ; 'D' .DB 01FH, 001H, 001H, 00FH, 001H, 001H, 01FH, 000H ; 'E' .DB 01FH, 001H, 001H, 00FH, 001H, 001H, 001H, 000H ; 'F' 70 .DB 00EH, 011H, 001H, 001H, 019H, 011H, 00EH, 000H ; 'G' .DB 011H, 011H, 011H, 01FH, 011H, 011H, 011H, 000H ; 'H' .DB 00EH, 004H, 004H, 004H, 004H, 004H, 00EH, 000H ; 'I' .DB 010H, 010H, 010H, 010H, 010H, 011H, 00EH, 000H ; 'J' .DB 011H, 009H, 005H, 003H, 005H, 009H, 011H, 000H ; 'K' 75 .DB 001H, 001H, 001H, 001H, 001H, 001H, 01FH, 000H ; 'L' .DB 011H, 01BH, 015H, 011H, 011H, 011H, 011H, 000H ; 'M' .DB 011H, 013H, 015H, 015H, 015H, 019H, 011H, 000H ; 'N' .DB 00EH, 011H, 011H, 011H, 011H, 011H, 00EH, 000H ; 'O' .DB 00FH, 011H, 011H, 00FH, 001H, 001H, 001H, 000H ; 'P' 80 .DB 00EH, 011H, 011H, 011H, 011H, 015H, 00EH, 008H ; 'Q' .DB 00FH, 011H, 011H, 00FH, 005H, 009H, 011H, 000H ; 'R' .DB 00EH, 011H, 001H, 00EH, 010H, 011H, 00EH, 000H ; 'S' .DB 01FH, 004H, 004H, 004H, 004H, 004H, 004H, 000H ; 'T' .DB 011H, 011H, 011H, 011H, 011H, 011H, 00EH, 000H ; 'U' 85 .DB 011H, 011H, 011H, 011H, 00AH, 00AH, 004H, 000H ; 'V' .DB 011H, 011H, 011H, 011H, 015H, 01BH, 011H, 000H ; 'W' .DB 011H, 011H, 00AH, 004H, 00AH, 011H, 011H, 000H ; 'X' .DB 011H, 011H, 011H, 00AH, 004H, 004H, 004H, 000H ; 'Y' .DB 01EH, 010H, 008H, 004H, 002H, 001H, 01EH, 000H ; 'Z' 90 .DB 00EH, 002H, 002H, 002H, 002H, 002H, 00EH, 000H ; '[' 91 .DB 001H, 002H, 002H, 004H, 008H, 008H, 010H, 000H ; '\' 92 .DB 00EH, 008H, 008H, 008H, 008H, 008H, 00EH, 000H ; ']' 93 .DB 004H, 00aH, 011H, 000H, 000H, 000H, 000H, 000H ; '^' 64 .DB 000H, 000H, 000H, 000H, 000H, 000H, 01FH, 000H ; '_' 95 .DB 003H, 002H, 002H, 000H, 000H, 000H, 000H, 000H ; '`' 97 .DB 000H, 000H, 00EH, 010H, 01EH, 011H, 01EH, 000H ; 'a' 98 .DB 001H, 001H, 00FH, 011H, 011H, 011H, 00FH, 000H ; 'b' 99 .DB 000H, 000H, 00EH, 011H, 001H, 011H, 00EH, 000H ; 'c' 100 .DB 010H, 010H, 01eH, 011H, 011H, 011H, 01eH, 000H ; 'd' 101 .DB 000H, 000H, 00EH, 011H, 01FH, 001H, 01EH, 000H ; 'e' 112 .DB 00CH, 002H, 002H, 007H, 002H, 002H, 002H, 000H ; 'f' 103 .DB 000H, 000H, 01eH, 011H, 011H, 01eH, 010H, 00EH ; 'g' 104 .DB 001H, 001H, 001H, 00FH, 011H, 011H, 011H, 000H ; 'h' 105 .DB 000H, 004H, 000H, 006H, 004H, 004H, 00eH, 000H ; 'i' 106 .DB 000H, 008H, 000H, 008H, 008H, 008H, 008H, 006H ; 'j' 107 .DB 001H, 001H, 009H, 005H, 003H, 005H, 009H, 000H ; 'k' 108 .DB 002H, 002H, 002H, 002H, 002H, 002H, 002H, 000H ; 'l' 109 .DB 000H, 000H, 00AH, 015H, 015H, 015H, 015H, 000H ; 'm' 110 .DB 000H, 000H, 00FH, 011H, 011H, 011H, 011H, 000H ; 'n' 111 .DB 000H, 000H, 00EH, 011H, 011H, 011H, 00EH, 000H ; 'o' 112 .DB 000H, 000H, 00FH, 011H, 011H, 00FH, 001H, 001H ; 'p' 113 .DB 000H, 000H, 01eH, 011H, 011H, 01eH, 010H, 010H ; 'q' 114 .DB 000H, 000H, 00DH, 003H, 001H, 001H, 001H, 000H ; 'r' 115 .DB 000H, 000H, 00EH, 001H, 00EH, 010H, 00EH, 000H ; 's' 116 .DB 002H, 007H, 002H, 002H, 002H, 002H, 004H, 000H ; 't' 117 .DB 000H, 000H, 011H, 011H, 011H, 011H, 01EH, 000H ; 'u' 118 .DB 000H, 000H, 011H, 011H, 00AH, 00AH, 004H, 000H ; 'v' 119 .DB 000H, 000H, 011H, 011H, 015H, 01BH, 011H, 000H ; 'w' 120 .DB 000H, 000H, 011H, 00AH, 004H, 00AH, 011H, 000H ; 'x' 121 .DB 000H, 000H, 011H, 011H, 011H, 01eH, 010H, 00EH ; 'y' 122 .DB 000H, 000H, 01EH, 008H, 004H, 002H, 01EH, 000H ; 'z' 123 .DB 008H, 004H, 004H, 002H, 004H, 004H, 008H, 000H ; '{' 124 .DB 004H, 004H, 004H, 004H, 004H, 004H, 004H, 000H ; '|' 125 .DB 002H, 004H, 004H, 008H, 004H, 004H, 002H, 000H ; '}' 126 .END
41.799595
92
0.455422
1d5899ce768f8b88e1d717f5a04d1a1879ba5ff0
1,024
asm
Assembly
Emulator/fonttable.asm
paulscottrobson/experimental-computer-system-1
e8b0f771fde8a69cf5e373ff6b496a2be5d40f1e
[ "MIT" ]
null
null
null
Emulator/fonttable.asm
paulscottrobson/experimental-computer-system-1
e8b0f771fde8a69cf5e373ff6b496a2be5d40f1e
[ "MIT" ]
null
null
null
Emulator/fonttable.asm
paulscottrobson/experimental-computer-system-1
e8b0f771fde8a69cf5e373ff6b496a2be5d40f1e
[ "MIT" ]
1
2020-01-02T13:54:19.000Z
2020-01-02T13:54:19.000Z
dw 0100000o dw 0122202o dw 0155000o dw 0157575o dw 0127172o dw 0154215o dw 0125356o dw 0122000o dw 0142224o dw 0112221o dw 0152725o dw 0122722o dw 0100021o dw 0100700o dw 0100020o dw 0144211o dw 0175557o dw 0123227o dw 0174717o dw 0174747o dw 0155744o dw 0171747o dw 0171757o dw 0174444o dw 0175757o dw 0175747o dw 0102020o dw 0102021o dw 0142124o dw 0107070o dw 0112421o dw 0174602o dw 0125517o dw 0175755o dw 0175357o dw 0171117o dw 0135553o dw 0171717o dw 0171711o dw 0171557o dw 0155755o dw 0172227o dw 0174457o dw 0155355o dw 0111117o dw 0157755o dw 0175555o dw 0175557o dw 0175711o dw 0175744o dw 0175735o dw 0171747o dw 0172222o dw 0155557o dw 0155552o dw 0155775o dw 0155255o dw 0155222o dw 0174217o dw 0171117o dw 0111244o dw 0174447o dw 0127222o dw 0100007o
15.753846
15
0.625
7b2b4a0f945f601d6aa2ff5412e46e6b05b17a3c
3,364
asm
Assembly
system/features/keyboard.asm
mikebdp2/MichalOS
f0a8817fca9a912a8628c2400aaf940f794ce5f9
[ "BSD-3-Clause" ]
14
2021-04-23T15:31:04.000Z
2022-03-16T01:18:22.000Z
system/features/keyboard.asm
mikebdp2/MichalOS
f0a8817fca9a912a8628c2400aaf940f794ce5f9
[ "BSD-3-Clause" ]
4
2021-03-30T15:51:42.000Z
2021-12-31T22:55:22.000Z
system/features/keyboard.asm
mikebdp2/MichalOS
f0a8817fca9a912a8628c2400aaf940f794ce5f9
[ "BSD-3-Clause" ]
3
2021-03-30T13:47:02.000Z
2021-11-07T02:53:02.000Z
; ================================================================== ; KEYBOARD HANDLING ROUTINES ; ================================================================== ; ------------------------------------------------------------------ ; os_wait_for_key -- Waits for keypress and returns key ; Also handles the screensaver. TODO: move the screensaver code to "int.asm" ; IN: Nothing; OUT: AX = key pressed, other regs preserved os_wait_for_key: pusha .try_again: mov bh, 0 call .screen_power ; Reset the screensaver tick movzx ax, byte [57074] mov bx, 1092 ; 18.2 Hz * 60 seconds mul bx mov [screensaver_timer], ax ; See "int.asm" mov byte [.scrn_active], 0 ; Reset all the screensaver variables mov al, [0082h] ; Save the current screen state, for later mov [.gfx_state], al mov ah, 03h mov bh, 0 int 10h mov [.orig_crsr], cx ; Get the shape of the cursor .loop: hlt ; Halt the CPU for 1/18.2 seconds, to save the CPU usage call .screensaver call os_check_for_key cmp ax, 0 je .loop pusha mov ax, 0500h int 10h mov al, [.gfx_state] mov [0082h], al mov cx, [.orig_crsr] mov ah, 01h int 10h popa cmp byte [.scrn_active], 1 je .try_again mov [.tmp_buf], ax popa mov ax, [.tmp_buf] ret .screensaver: cmp word [screensaver_timer], 0 jne .good cmp byte [57074], 0 je .good mov ah, 0Fh int 10h cmp al, 3 jne .good pusha mov byte [0082h], 1 mov ax, 0501h int 10h call os_hide_cursor mov byte [.scrn_active], 1 mov bh, 4 call .screen_power popa .good: ret .screen_power: cmp bh, [.scrn_power] je .good pusha mov ax, 4F10h mov bl, 1 mov [.scrn_power], bh int 10h popa ret .tmp_buf dw 0 .gfx_state db 0 .orig_crsr dw 0 .scrn_active db 0 .scrn_power db 0 ; ------------------------------------------------------------------ ; os_check_for_key -- Scans keyboard buffer for input, but doesn't wait ; Also handles special keyboard shortcuts. ; IN: Nothing; OUT: AX = 0 if no key pressed, otherwise scan code os_check_for_key: pusha mov ah, 11h ; BIOS call to check for key int 16h jz .nokey ; If no key, skip to end mov ah, 10h ; Otherwise get it from buffer int 16h call special_keys mov [.tmp_buf], ax ; Store resulting keypress popa ; But restore all other regs mov ax, [.tmp_buf] ret .nokey: popa clr ax ; Zero result if no key pressed ret .tmp_buf dw 0 ; ================================================================== ; Checks for special keys and performs their action. ; IN: AX = key ; OUT: nothing special_keys: pusha cmp ah, 105 je near .disable_sound cmp ah, 106 je near .enable_sound cmp ah, 107 je near .exit_app popa ret .exit_app: cmp byte [app_running], 0 je near .no_exit popa mov sp, [origstack] sub sp, 2 ret .no_exit: popa ret .enable_sound: mov byte [0083h], 1 jmp .display_speaker .disable_sound: mov byte [0083h], 0 call os_speaker_off .display_speaker: cmp byte [0082h], 1 je .no_display_spkr call os_get_cursor_pos push dx mov dx, 79 ; Print the little speaker icon call os_move_cursor mov ax, 0E17h mov bh, 0 cmp byte [0083h], 0 je .no_crossed_spkr dec al .no_crossed_spkr: int 10h pop dx call os_move_cursor .no_display_spkr: popa mov ax, 0 ret ; ==================================================================
16.330097
76
0.599584
a3096aca9f480ec9088da70806ac4b6800674b6f
637
asm
Assembly
oeis/099/A099251.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/099/A099251.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/099/A099251.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A099251: Bisection of Motzkin sums (A005043). ; Submitted by Christian Krause ; 1,1,3,15,91,603,4213,30537,227475,1730787,13393689,105089229,834086421,6684761125,54022715451,439742222071,3602118427251,29671013856627,245613376802185,2042162142208813,17047255430494497,142816973618414817,1200394300050487935,10119592485062548155,85543870540455597789,724947137834104063053,6157879192714893166503,52418979494565497284659,447107296039753836151995,3820682066516442811470123,32705601410484246215745189,280418620117853741708024169,2407969409295125052827266131 mul $0,2 seq $0,5043 ; Riordan numbers: a(n) = (n-1)*(2*a(n-1) + 3*a(n-2))/(n+1).
91
473
0.850863
6530254361d724e4e0eed2e0d8f96e6456b6eb1b
691
asm
Assembly
libsrc/_DEVELOPMENT/input/zx/z80/asm_in_mouse_amx_wheel.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/input/zx/z80/asm_in_mouse_amx_wheel.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/input/zx/z80/asm_in_mouse_amx_wheel.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; =============================================================== ; Apr 2014 ; =============================================================== ; ; uint16_t in_mouse_amx_wheel(void) ; ; Report position of mouse track wheel. ; The AMX mouse does not have a track wheel so error is returned. ; ; =============================================================== SECTION code_input PUBLIC asm_in_mouse_amx_wheel EXTERN error_enotsup_zc defc asm_in_mouse_amx_wheel = error_enotsup_zc ; exit : success ; ; hl = track wheel position ; carry reset ; ; fail ; ; hl = 0 ; carry set, errno = ENOTSUP ; ; uses : f, hl
21.59375
65
0.437048
43a0313078f1a3eaae9a19b980c1f53e53362cff
689
asm
Assembly
oeis/296/A296943.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/296/A296943.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/296/A296943.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A296943: Number of bisymmetric and quasitrivial operations on an arbitrary n-element set. ; Submitted by Jon Maiga ; 0,1,4,14,58,292,1754,12280,98242,884180,8841802,97259824,1167117890,15172532572,212415456010,3186231840152,50979709442434,866655060521380,15599791089384842,296396030698312000,5927920613966240002,124486332893291040044,2738699323652402880970,62990084444005266262312,1511762026656126390295490,37794050666403159757387252,982645317326482153692068554,26531423567815018149685850960,742879859898820508191203826882,21543515937065794737544910979580,646305478111973842126347329387402 mov $1,1 mov $2,1 lpb $0 sub $0,1 add $2,1 mov $3,$1 mul $1,$2 add $1,2 lpe mov $0,$3
45.933333
474
0.846154
2c4a46ab436150b2aeaed42a39e161a925d1a29e
73,094
asm
Assembly
c6ers/msd200a/md.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
c6ers/msd200a/md.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
c6ers/msd200a/md.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
.MODEL medium ;*************************************************************************** ;* * ;* MD.ASM Mouse detection code. * ;* * ;*************************************************************************** memM = 1 ; Medium Model ?WIN = 0 ; No windows prolog / epilog code (std epilog / prolog). ?PLM = 0 ; CPROC calling convention. NOT Pascal INCLUDE cmacros.inc ;* must be version 2.09 or higher INCLUDE md.inc INCLUDE id.inc cPublic MACRO n,c,a cProc n,<PUBLIC, c>,<a> ENDM sBegin DATA LATLSBSave db ? LATMSBSave db ? LCRSave db ? MCRSave db ? IERSave db ? fSingle8259 db 0 SerialBuf db 10 dup (?) SemaphoreWord dw ? COM_3_4_ADDRS LABEL WORD dw 03E8h dw 02E8h sEnd DATA sBegin CODE assumes CS, CODE assumes DS, DATA ;***************************************************************************** ; ; int fnHardMouseDetect(void); ; ; This procedure what type of mouse is being used. It will determine ; that that type of mouse is present in the system and is working ; properly. ; ; ENTRY None. ; ; EXIT Mouse type in AX. or if AX = -1 the hardware will not support ; mouse detection. ; ; ALTERS AX, BX, CX, DX, SI, DI ; ; CALLS TestForInport ; IRQAvailable ; TestForBus ; TestForSerial ; TestForPS2 ; ;***************************************************************************** cProc fnHardMouseDetect <PUBLIC, FAR>, <ES, DS, SI, DI> localW locvar1 cBegin fnHardMouseDetect ; First of all we need to know if the two int 15h call we need to make are ; supported on the hardware were running on. So, the setup_for_detect call ; will do just that, setup for the detection. If the call returns carry set ; then it's "game over man" because we won't have the int 15h calls we need. call setup_for_detect mov locvar1,-1 jc finished_mouse ; Now that we know the hardware will support the code used here to detect ; mice we can go about our business of detecing mice !! ; mov locvar1,NO_MOUSE ; Initilize the return value. ; ; First try, we'll look for an inport mouse ! ; mov dx,INPORT_FIRST_PORT + 2 ; Get address of ID register. inport_try_again: call TestForInport ; Does an InPort exist at this address? jnc inport_found ; No carry ! Inport found ! sub dx,4 ; Nope, try the next possible port. cmp dx,INPORT_LAST_PORT + 2 jae inport_try_again jmp short look_for_bus inport_found: mov locvar1,INPORT_MOUSE jmp finished_mouse ; ; We enter this point if we couldn't find an InPort mouse in the system. ; look_for_bus: call TestForBus ; Does a Bus mouse exist in the system? jc look_for_PS2 ; No, look for a PS/2 mouse. mov locvar1,BUS_MOUSE ; Indicate bus mouse found. jmp finished_mouse ; ; We enter this point if we couldn't find either an InPort ; mouse or a Bus mouse in the system. ; look_for_PS2: call LookForPS2Mouse cmp ax,NO_MOUSE je look_for_serial mov locvar1,AX ; Yep! return mouse type ! jmp short finished_mouse ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; call TestForPS2 ; Does a PS/2 style mouse exist? ; jc look_for_serial ; Nope, check for serial mouse. ; ; mov locvar1,LT_PS2MOUSE ; Yep! return mouse type ! ; jc finished_mouse ; Nope, leave with error. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; We enter this point if we couldn't find either an InPort ; mouse, a Bus mouse, or a PS/2 mouse in the system. ; look_for_serial: call LookForSerialMouse mov locvar1, ax finished_mouse: mov ax,locvar1 cEnd fnHardMouseDetect ;***************************************************************************** ; ; setup_for_detect ; ; Procedure will assure that were ready to start the detection and that the ; hardware were running on will allow int 15h/86h (delay) and int 15h/C0h ; (Get system environment). ; ; ENTRY: None. ; ; EXIT: NC - All is well to begin detection. ; CY - Nope, int 15h calls needed are not available. ; ; ALTERS: AX ES BX CX DX And sets the fSingle8259 gloval var to true or false ; depending on weather there are multiple 8259 chips in the system. ; setup_for_detect PROC NEAR mov ah,0c0h ; int 15h - func get sys environment. int 15h jc old_machine cmp word ptr es:[bx],5 ; Did we return 5 bytes ? jb old_machine ; If not, no go. mov ah,byte ptr es:[bx+5] ; Get the configuration flags. test ah,01000000b ; Is bit 6 set ? (slave 8259 present ?) mov fSingle8259,TRUE jz All_is_well mov fSingle8259,FALSE jmp short All_is_well ; I know that since the int 15h/0C0h call failed, we have an old machine upon ; which I can assume will not have a slave 8259. If call int 15h/8300h will ; work we can still detect the mouse. old_machine: mov fSingle8259,TRUE clc All_is_well: ret setup_for_detect ENDP ;***************************************************************************** ; ; TestForInport ; ; This procedure will attempt to find an InPort mouse at the given base ; I/O address. Note that if an InPort is found, it will be left ; in a state where it will not be generating any interrupts. ; ; ENTRY DX I/O address of InPort Identification Register ; ; EXIT NC An Inport was found ; CY No Inport was found ; ; ALTERS AX, BX, CX, DX, SI ; ; CALLS FindInportInterrupt ; TestForInport PROC NEAR ; ; Since the identification register alternates between returning back ; the Inport chip signature and the version/revision, if we have an ; InPort chip, the chip signature will be read in one of the following ; two reads. If it isn't, we do not have an InPort chip. ; mov bl,INPORT_ID in al,dx ; Read ID register. cmp al,bl ; Is value the InPort chip signature? je possible_inport ; Yes, go make sure we have an InPort. in al,dx ; Read ID register again. cmp al,bl ; Is value the InPort chip signature? jne inport_not_found ; No, return error ; ; At this point, we managed to read the InPort chip signature, so we have ; a possible InPort chip. The next read from the ID register will ; return the version/revision. We then make sure that the ID register ; alternates between the chip signature and this version/revision. If ; it does, we have an InPort chip. ; possible_inport: in al,dx ; Read version/revision. mov ah,al ; Save it. mov cx,5 ; Test ID register 5 times. inport_check: in al,dx ; Read ID register. cmp al,bl ; Make sure it is the chip signature. jne inport_not_found ; If not, we don't have an InPort chip. in al,dx ; Read ID register. cmp al,ah ; Make sure version/revision is same. jne inport_not_found ; If not, we don't have an InPort chip. loop inport_check ; Test desired number of times. clc ret ; ; At this point, we know we have an InPort chip. We now try to determine ; what interrupt level it is jumpered at. ; inport_not_found: ; We don't have an InPort chip. stc ; Show failure. ret ; Return to caller. TestForInport ENDP ;***************************************************************************** ; ; TestForBus ; ; This procedure will attempt to find a bus mouse adaptor in the system ; and will return the results of this search. ; ; ENTRY None. ; ; EXIT NC Bus mouse adaptor was found ; ; CY Bus mouse not found. ; ; ALTERS AX, BX, CX, DX ; ; CALLS FindBusInterrupt ; TestForBus PROC NEAR ; ; We determine if the bus mouse adaptor is present by attempting to ; program the 8255A, and then seeing if we can write a value out to ; Port B on the 8255A and get that value back. If we can, we assume ; that we have a bus mouse adaptor. ; mov dx,BUS_INIT ; Get address of 8255A control port. mov al,BUS_INIT_VALUE ; Get proper value. out dx,al ; Set up 8255A. IOdelay mov ax,0A5A5h ; Get a signature byte and a copy. address BUS_SIG BUS_INIT ; Get address of Port B. out dx,al ; Set Port B with signature. IOdelay in al,dx ; Read back Port B. IOdelay cmp al,ah ; Does it match signature byte? stc ; Set return for no bus mouse adaptor. jne bus_not_found ; Nope - no bus mouse adaptor clc bus_not_found: ret TestForBus ENDP ;*************************************************************************** ;* ;* ArcnetCardPresent - Detects the presence of an Arcnet Card ;* ;* ENTRY: None. ;* ;* EXIT: Boolean ;* AX = 1 , Arcnet Card Probably present ;* AX = 0 , Arcnet Card Probably NOT Present ;* ;*************************************************************************** cPublic ArcnetCardPresent <FAR,PUBLIC>,<SI,DX> localV InputBytes, 4d localV ACP_First, 1d cBegin ArcnetCardPresent ; Read a BYTE from four different 16-bit I/O addresses that have ; the same lower 10 bits (2E0h). 2E0h is the address of the Status ; register for the Arcnet Cards that tend to be reset easily ; (a Read or write to I/O addresses 2E8, 2E9, 2EA, OR 2EB). ; Store the BYTE in InputBytes ; mov dx, 56E0h IOdelay in al, dx mov InputBytes, al mov dx, 0AAE0h IOdelay in al, dx mov InputBytes+1, al mov dx, 0E2E0h IOdelay in al, dx mov InputBytes+2, al mov dx, 1EE0h IOdelay in al, dx mov InputBytes+3, al xor si, si ; Clear the loop counter ACP_Loop: mov al, [InputBytes+si] ; Read a byte from table cmp al, 0FFh ; If it is FF or E0 (low Byte of I/O je NoArcNet ; address we will assume that we read ; air. cmp al, 0E0h je NoArcNet and al, 78h ; bits 6 through 3 (0XXX X000) should ; be constant cmp si, 0h ; Is it first byte read ? je ACP_First_Pass cmp ACP_First, al ; is it equal to the first Byte read jne NoArcNet inc si ; point to next byte in table cmp si, 4d ; have we done all four bytes je ArcNetFound ; Yes, we have found an Arcnet Card jmp ACP_Loop ACP_First_Pass: mov ACP_First, al inc si ; point to next byte in table jmp ACP_Loop ArcNetFound: mov ax, 1 ; return TRUE jmp short ACP_End NoArcNet: xor ax, ax ; return FALSE ACP_End: cEnd ArcnetCardPresent ;***************************************************************************** ; ; LookForSerialMouse ; ;***************************************************************************** LookForSerialMouse PROC NEAR mov ax,CRT_Data_Seg ; Get ROM BIOS Data segment. mov es,ax ; Establish addressability to it. assume es:nothing xor di,di ; Assume starting at COM1 serial_try_again: mov dx,es:[di] ; Get base address of COM port to test. or dx,dx ; Does this port exist? jnz serial_test_port ; Yes, go and test it. cmp di,4 ; If this is COM3 or COM4, use the jb serial_next_port ; internal addresses for them. je @F ; If we have COM3, DX=0. inc dx ; If we have COM4, DX=2. inc dx ; ... @@: mov bx,dx ; BX has index into our table. cmp bx,2 ; Are we about to look at COM4 ? jne NotCom4 cCall ArcnetCardPresent or ax,ax ; if Arcnet Present do not do jnz No_Serial_Mouse ; COM4 test as the Arcnet Card will ; be Reset. NotCom4: mov dx,COM_3_4_Addrs[bx] ; Get base address of the COM port. serial_test_port: ; ; First, do a quick test to make sure something out there responds like a ; COM port. ; push dx ; Save base address. address IIR RXB ; Address Interrupt ID register. DelayIn al,dx ; AL=contents of Interrupt ID reg. pop dx ; Restore base address. test al,0F8h ; Make sure bits 3-7 are all 0! jnz serial_next_port ; No COM port -> no mouse. call TestForSerial ; Is a serial mouse attached to port? cmp ax,NO_MOUSE jne Serial_Mouse_Found ; Yes! serial_next_port: ; No serial mouse on this COM port. add di,2 ; Otherwise, move to the next possible cmp di,8 ; port and try there. jb serial_try_again ; Look for COM1 through COM4. No_Serial_Mouse: mov ax,NO_MOUSE Serial_Mouse_Found: ret LookForSerialMouse ENDP ;***************************************************************************** ; ; TestForSerial ; ;***************************************************************************** TestForSerial PROC NEAR call SaveCOMSetting call SetupCOMForMouse ; Set up COM port to talk to mouse. mov cx,SHORTDELAY ; Use a short delay time. call ResetSerialMouse ; Reset mouse to see if it is there. cmp ax,NO_MOUSE jne TFS_Found mov cx,LONGDELAY ; Maybe the mouse is just slow. call ResetSerialMouse ; Reset mouse to see if it is there. cmp ax,NO_MOUSE jne TFS_Found call TestForLogitechSerial ; Maybe it's a Logitech Series C TFS_Found: push ax ; Save return value call RestoreCOMSetting pop ax ret TestForSerial ENDP ;***************************************************************************** ; ; SaveCOMSetting ; ; This procedure will save the current state of the COM port given. ; ; ENTRY DX Base address of COM port. ; ; EXIT none ; ; ALTERS AX ; ; CALLS none ; SaveCOMSetting PROC NEAR push dx ; Save base I/O address. address LCR RXB ; Get address of Line Control Register. DelayIn al,dx ; Get current contents. mov [LCRSave],al ; Save them. or al,LC_DLAB ; Set up to access divisor latches. DelayOut dx,al address LATMSB LCR ; Get address of high word of divisor DelayIn al,dx ; latch and save its current contents. mov [LATMSBSave],al address LATLSB LATMSB ; Get address of low word of divisor DelayIn al,dx ; latch and save its current contents. mov [LATLSBSave],al address LCR LATLSB ; Get address of Line Control Register mov al,[LCRSave] ; and disable access to divisor. and al,NOT LC_DLAB DelayOut dx,al address MCR LCR ; Get address of Modem Control Register DelayIn al,dx ; and save its current contents. mov [MCRSave],al address IER MCR ; Get address of Interrupt Enable Reg- DelayIn al,dx ; ister and save its current contents. mov [IERSave],al pop dx ; Restore base I/O address. ret SaveCOMSetting ENDP ;***************************************************************************** ; ; RestoreCOMSetting ; ; This procedure will restore the state of the COM port. ; ; ENTRY DX Base address of COM port. ; ; EXIT none ; ; ALTERS AX ; ; CALLS none ; RestoreCOMSetting PROC NEAR push dx ; Save base I/O address. address LCR RXB ; Get address of Line Control Register. mov al,LC_DLAB ; Set up to access divisor latches. DelayOut dx,al address LATMSB LCR ; Get address of high word of divisor mov al,[LATMSBSave] ; and restore it. DelayOut dx,al address LATLSB LATMSB ; Get address of low word of divisor mov al,[LATLSBSave] ; and restore it. DelayOut dx,al address LCR LATLSB ; Get address of Line Control Register mov al,[LCRSave] ; and restore it, disabling access to and al,NOT LC_DLAB ; the divisor latches. DelayOut dx,al address MCR LCR ; Get addres of Modem Control Register mov al,[MCRSave] ; and restore it. DelayOut dx,al address IER MCR ; Get address of Interrupt Enable Reg- mov al,[IERSave] ; ister and restore it. DelayOut dx,al pop dx ; Restore base I/O address. ret RestoreCOMSetting ENDP ;***************************************************************************** ; ; SetupCOMForMouse ; ; This procedure will set up the given COM port so that it can talk to ; a serial mouse. ; ; ENTRY DX Base address of COM port to set up ; ; EXIT COM port set up, all interrupts disabled at COM port ; ; ALTERS AX ; ; CALLS none ; SetupCOMForMouse PROC NEAR push dx ; Save base I/O address. address LCR RXB ; Get address of Line Control Reg. mov al,LC_DLAB ; Set up to access divisor latches. DelayOut dx,al address LATMSB LCR ; Get address of high word of divisor mov al,HIGH DIV_1200 ; latch and set it with value for DelayOut dx,al ; 1200 baud. address LATLSB LATMSB ; Get address of low word of divisor mov al,LOW DIV_1200 ; latch and set it with value for DelayOut dx,al ; 1200 baud. address LCR LATLSB ; Get address of Line Control Reg. mov al,LC_BITS7 + LC_STOP1 + LC_PNONE DelayOut dx,al ; Set 7,n,1; disable access to divisor. address IER LCR ; Get address of Int. Enable Register xor al,al ; Disable all interrupts at the COM DelayOut dx,al ; port level. address LSR IER ; Get address of Line Status Reg. DelayIn al,dx ; Read it to clear any errors. pop dx ; Restore base I/O address ret SetupCOMForMouse ENDP ;***************************************************************************** ResetSerialMouse2 PROC NEAR push dx ; Save environment. push si push di push es address IER RXB ; Get address of Interrupt Enable Reg. DelayIn al,dx ; Get current contents of IER and push ax ; save them. push dx ; Save address of IER. xor al,al ; Disable all interrupts at the DelayOut dx,al ; COM port level. address MCR IER ; Get address of Modem Control Reg. mov al,MC_DTR ; Set DTR active; RTS, OUT1, and OUT2 DelayOut dx,al ; inactive. This powers down mouse. push cx ; Save amount of time to delay. call SetupForWait ; Set up BX:CX and ES:DI properly for assume es:nothing ; upcoming delay loop. address RXB MCR ; Get address of Receive Buffer. ; ; Now, we wait the specified amount of time, throwing away any stray ; data that we receive. This gives the mouse time to properly reset ; itself. ; rsm2_waitloop: DelayIn al,dx ; Read and ignore any stray data. call IsWaitOver ; Determine if we've delayed enough. jnc rsm2_waitloop ; If not, keep waiting. rsm2_waitover: address LSR RXB ; Get address of Line Status Reg. DelayIn al,dx ; Read it to clear any errors. address MCR LSR ; Get address of Modem COntrol Reg. mov al,MC_DTR + MC_RTS + MC_OUT2 ; Set DTR, RTS, and OUT2 active ; OUT1 inactive. DelayOut dx,al ; This powers up the mouse. pop cx ; Get amount of time to delay. call SetupForWait ; Set up BX:CX and ES:DI properly for assume es:nothing ; the upcoming delay loop. ; ; We give the mouse the specified amount of time to respond by sending ; us an M. If it doesn't, or we get more than 3 characters that aren't ; an M, we return a failure indication. ; address LSR MCR ; Get address of Line Status Reg. mov si,0 ; Read up to 3 chars from port. rsm2_lookforM: DelayIn al,dx ; Get current status. test al,LS_DR ; Is there a character in Receive Buff? jnz rsm2_gotchar ; Yes! Go and read it. call IsWaitOver ; No, determine if we've timed out. jnc rsm2_lookforM ; Haven't timed out; keep looking. jmp short rsm2_leave ; Timed out. Leave with carry set. rsm2_gotchar: address RXB LSR ; Get address of Receive Buffer. DelayIn al,dx ; Get character that was sent to us. mov [SerialBuf+si],al address LSR RXB ; Oh well. Get address of LSR again. inc si ; Have we read 3 chars yet? cmp si,10d jne rsm2_lookforM ; Nope, we'll give him another try. rsm2_leave: pop dx ; Get address of IER. pop ax ; Get old value of IER. DelayOut dx,al ; Restore IER. pop es ; Restore environment. assume es:nothing pop di pop si pop dx ret ResetSerialMouse2 ENDP ;***************************************************************************** ; ; ResetSerialMouse ; ; This procedure will reset a serial mouse on the given COM port and will ; return an indication of whether a mouse responded or not. ; ; The function now also checks for the presence of a 'B' as well as an ; 'M' to determine the presence of a pointing device. Also, if the 'M' is ; followed by a '3' the serial mouse is a Logitech. ; ; Mouse returns M ; Ballpoint returns B ; ; ENTRY DX Base I/O address of COM port to use ; CX Number of msecs to use for delays ; ; EXIT AX Mouse Type ; ;***************************************************************************** ResetSerialMouse PROC NEAR push dx ; Save environment. push si push di push es address IER RXB ; Get address of Interrupt Enable Reg. DelayIn al,dx ; Get current contents of IER and push ax ; save them. push dx ; Save address of IER. xor al,al ; Disable all interrupts at the DelayOut dx,al ; COM port level. address MCR IER ; Get address of Modem Control Reg. mov al,MC_DTR ; Set DTR active; RTS, OUT1, and OUT2 DelayOut dx,al ; inactive. This powers down mouse. push cx ; Save amount of time to delay. call SetupForWait ; Set up BX:CX and ES:DI properly for assume es:nothing ; upcoming delay loop. address RXB MCR ; Get address of Receive Buffer. ; ; Now, we wait the specified amount of time, throwing away any stray ; data that we receive. This gives the mouse time to properly reset ; itself. ; rsm_waitloop: DelayIn al,dx ; Read and ignore any stray data. call IsWaitOver ; Determine if we've delayed enough. jnc rsm_waitloop ; If not, keep waiting. ; Wait is over. address LSR RXB ; Get address of Line Status Reg. DelayIn al,dx ; Read it to clear any errors. address MCR LSR ; Get address of Modem COntrol Reg. mov al,MC_DTR+MC_RTS+MC_OUT2 ; Set DTR, RTS, and OUT2 active ; OUT1 inactive. DelayOut dx,al ; This powers up the mouse. pop cx ; Get amount of time to delay. call SetupForWait ; Set up BX:CX and ES:DI properly for assume es:nothing ; the upcoming delay loop. ; ; We give the mouse the specified amount of time to respond by sending ; us an M. If it doesn't, or we get more than 5 characters that aren't ; an M, we return a failure indication. ; address LSR MCR ; Get address of Line Status Reg. mov si,5 ; Read up to 5 chars from port. mov bl,'3' ; '3' will follow 'M' on Logitech. mov bh,'B' ; 'B' for BALLPOINT mov ah,'M' ; Get an M. (We avoid doing a cmp al,M ; because the M could be left floating ; due to capacitance.) rsm_getchar: DelayIn al,dx ; Get current status. test al,LS_DR ; Is there a character in Receive Buff? jnz rsm_gotchar ; Yes! Go and read it. call IsWaitOver ; No, determine if we've timed out. jnc rsm_getchar ; Haven't timed out; keep looking. mov bx,NO_MOUSE jmp short rsm_leave ; Timed out. Leave with NO_MOUSE. rsm_gotchar: address RXB LSR ; Get address of Receive Buffer. DelayIn al,dx ; Get character that was sent to us. cmp al,ah ; Is it an M? jne check_for_b ; ; We received an 'M', now wait for next character to see if it is a '3'. ; mov cx,1 ; Wait between 55.5 and 111ms for call SetupForWait ; next character. address LSR RXB rsm_waitfor3: DelayIn al,dx ; Get current status. test al,LS_DR ; Is there a character in Receive Buff? jnz rsm_gotchar3 ; Yes! Go and read it. call IsWaitOver ; No, determine if we've timed out. jnc rsm_waitfor3 ; Haven't timed out; keep looking. ; Not a Logitech - must be a standard Microsoft compatible serial mouse. jmp short rsm_notLT rsm_gotchar3: address RXB LSR ; Get address of Receive Buffer. DelayIn al,dx ; Get character that was sent to us. cmp al,bl ; Is it a 3? jne rsm_notLT mov bx,LT_MOUSE ; Yes, we've found a Logitech M+ series, address LSR RXB ; Choose Line Status Register. jmp short rsm_leave ; 3 button mouse rsm_notLT: mov bx,SERIAL_MOUSE ; We didn't get the '3' after the 'M' address LSR RXB ; Choose Line Status Register. jmp short rsm_leave ; We still have a standard serial mouse. check_for_b: cmp al,bh ; Is it a B? jne rsm_next_char mov bx,MSBPOINT_MOUSE ; We've found a BallPoint Mouse address LSR RXB ; Choose Line Status Register. jmp short rsm_leave rsm_next_char: address LSR RXB ; Oh well. Get address of LSR again. dec si ; Have we read 5 chars yet? jnz rsm_getchar ; Nope, we'll give him another try. ; We've read many characters - No a single 'M' or 'B' in the lot. mov bx,NO_MOUSE rsm_leave: pushf ; Save flags ; Clear out any extra incoming characters mov cx,2 ; Get amount of time to delay. call SetupForWait ; Set up BX:CX and ES:DI properly for assume es:nothing ; the upcoming delay loop. rsm_ClearAll: DelayIn al,dx ; Read the LSR to clear any errors. address RXB LSR ; Get address of Receive Buffer. DelayIn al,dx ; Read and ignore any stray data. address LSR RXB ; Get address of Line Status Register. rsm_ClearPort: call IsWaitOver ; Determine if we've timed out. jnc rsm_ClearAll ; Haven't timed out; keep looking. popf ; Restore flags pop dx ; Get address of IER. pop ax ; Get old value of IER. DelayOut dx,al ; Restore IER. pop es ; Restore environment. assume es:nothing pop di pop si pop dx mov ax,bx ; Set return value. ret ResetSerialMouse ENDP ;***************************************************************************** ; ; SetupForWait ; ; This procedure accepts the number of milliseconds that we will want ; to delay for and will set things up for the wait. ; ; ENTRY CX Number of Clock ticks to wait for. ; ; EXIT None. ; ; ALTERS CX ; ; CALLS none ; SetupForWait PROC NEAR push ax ; Do your saving ! push es xor ax,ax mov es,ax ; Point to 40:6C = 0:46C mov ax,es:[LW_ClockTickCount] ; Get tick count in AX. add ax,cx ; [Current + delay] = delay ends. mov ds:[SemaphoreWord],ax ; Save ending time in Semiphore pop es ; Restore now ! pop ax ret SetupForWait ENDP ;***************************************************************************** ; ; IsWaitOver ; ; This procedure accepts the current time and the ending time and ; return and indication of whether the current time is past ; the ending time. ; ; ENTRY None ; ; EXIT carry clear Current time is not past ending time ; carry set Current time is past ending time ; ; ALTERS none ; ; CALLS none ; IsWaitOver PROC NEAR push ax ; Preserve AX push es ; Preserve ES push bx sti ; Hosebag BIOS bugs can't get me. xor ax,ax mov es,ax ; Point to 40:6C = 0:46C mov ax,es:[LW_ClockTickCount] ; Get tick count in AX. sti mov bx,ds:[SemaphoreWord] cmp bx,ax ; This will set carry accordingly. pop bx pop es ; Restore ES pop ax ; Restore AX ret IsWaitOver ENDP ;***************************************************************************** ; ; LookForPS2Mouse ; ;***************************************************************************** LookForPS2Mouse PROC NEAR ; ; Lets make the Int 15h, C201h BIOS call to reset the pointing device. ; If the call is supported, and returns success then we know that we have ; a PS/2 mouse. ; stc mov bx,0ffffh ; Initialize, see later if it changes. mov ax,0c201h int 15h ; Reset Pointing device. jc No_PS2_Mouse ; Function call unsuccesful. cmp bh,0ffh ; BH should be device ID, it should not je No_PS2_Mouse ; be what we initialized it to (FF). ; ; The following sequence of Int 15h calls will determine if a Logitech ; PS/2 mouse is present. This information was obtained from Logitech. ; mov ax,0C203h ; Set resolution to 1 cnt/mm mov bh,0h int 15h jc PS2_Mouse mov ax,0C206h ; Set scaling to 1:1 mov bh,1h int 15h jc PS2_Mouse mov ax,0C206h ; Set scaling to 1:1 mov bh,1h int 15h jc PS2_Mouse mov ax,0C206h ; Set scaling to 1:1 mov bh,1h int 15h jc PS2_Mouse mov ax,0C206h ; Get status mov bh,0h int 15h jc PS2_Mouse or cl,cl ; Is resolution 1 cnt/mm? jz PS2_Mouse ; Yes, then not a Logitech. ; ; If cl is not zero (i.e. 1 cnt/mm) then it is the number of buttons ; and we've found a Logitech 3-button PS/2 mouse ; LT_PS2_Mouse: mov ax,LT_PS2MOUSE jmp short PS2MouseFound PS2_Mouse: mov ax,MSPS2_MOUSE jmp short PS2MouseFound No_PS2_Mouse: mov ax,NO_MOUSE PS2MouseFound: ret LookForPS2Mouse ENDP ;***************************************************************************** ; ; TestForPS2 ; ; This procedure will attempt to find a PS/2 mouse in the system and ; return the results of this search. ; ; ENTRY fSingle8259 Non-zero if we have a single 8259A ; ; EXIT Carry clear A PS/2 style Microsoft mouse was found ; Mouse interrupts disabled at 8042. ; Mouse disabled at 8042. ; Mouse is reset. ; ; Carry set A PS/2 style Microsoft mouse was not found ; ; ALTERS AX, CX ; ; CALLS CheckForAuxSupport, MouseIntOff, CheckForMSMouse ; TestForPS2 PROC NEAR call CheckForLogitechPS2 ; Check for Logitech PS/2 Mouse. ; jmp tfp_leave jc tfp_CheckForMS ; Check for MS/IBM mouse if not. mov ax,LT_PS2MOUSE ; Set the mouse type in AL jmp short tfp_leave tfp_CheckForMS: test [fSingle8259],0FFh ; Does machine have only 1 8259A? jnz tfp_no_mouse ; Yes - impossible to have PS/2 mouse. call CheckForAuxSupport ; Does machine support an aux device? jc tfp_leave ; Nope - impossible to have PS/2 mouse. call MouseIntOff ; Disable mouse and mouse interrupts. call CheckForMSMouse ; Is Microsoft mouse attached? ; If so, will be reset. jmp short tfp_leave tfp_no_mouse: stc ; Show that we failed. tfp_leave: ret ; Carry set/clear appropriately. TestForPS2 ENDP ;***************************************************************************** ; ; CheckForAuxSupport ; ; This procedure will determine if the 8042 supports an auxiliary device. ; ; Note that this procedure will always leave with the keyboard enabled. ; ; ENTRY Keyboard enabled. ; ; EXIT Carry clear The 8042 supports an auxiliary device ; Interrupts enabled. ; Aux device disabled. ; ; Carry set The 8042 does not support an auxiliary device ; Interrupts enabled. ; ; ALTERS AX, BX, CX, DX, DI, ES ; ; CALLS Read8042CommandByte, WriteControlRegister ; CheckForAuxSupport PROC NEAR mov al,CMD8042_DISABLE_AUX ; Disable the auxiliary device. call WriteControlRegister jc cfas_leave ; Leave if error. ; INTERRUPTS DISABLED!! mov al,CMD8042_DISABLE_KBD ; Disable the keyboard. call WriteControlRegister jc cfas_leave ; Leave if error. ; INTERRUPTS DISABLED!! ; We have to disable the keyboard interrupt here. This is because when the ; 8042 returns the status from the Test Auxiliary Device command, ; it asserts IRQ 1. We can't just disable interrupts entirely, otherwise ; we cannot time ourselves off of the system clock, so we have to do it ; this way. in al,MASTER_MASK_ADDR ; Read interrrupt mask. IOdelay push ax ; Save mask read in. or al,00000010b ; Mask keyboard interrupt. out MASTER_MASK_ADDR,al ; Write out changed mask. IOdelay call Read8042CommandByte ; Read the 8042 command byte. ; INTERRUPTS ENABLED!! jc cfas_no_support ; Leave if error. test al,AUX_DISABLED ; If the auxiliary device isn't jz cfas_no_support ; disabled, we don't have aux support. ; ; It is still possible that the 8042 supports an auxiliary device. We ; now issue the 8042 command to test the auxiliary interface. This ; command only exists on 8042s that support an auxiliary device. If the ; test succeeds, a 00h will be placed in the 8042's output buffer. If no ; output appears in the 8042's output buffer, it is assumed that the ; 8042 does not support an auxiliary device. ; ; WARNING!!! The testing of the auxiliary interface will more than likely ; screw up an auxiliary device attached to it. Therefore, the auxiliary ; device should be initialized after calling this procedure. ; mov al,CMD8042_TEST_AUX ; Command to test the auxiliary call WriteControlRegister ; interface. jc cfas_no_support ; Leave if error. ; INTERRUPTS DISABLED!! mov cx,0ah ; We will wait half a second. call SetupForWait ; BX:CX has ending time, ES:DI points ; at current time. sti ; Make sure interrupts are enabled so ; timer ticks can get in. xor dx,dx ; Clear byte read flag. cfas_read_test_results: in al,STATUS_8042 ; Get 8042's current status. test al,I_FULL ; Wait for 8042 to remove the command jnz cfas_is_wait_over ; from its input buffer. test al,O_FULL ; Is there an output byte yet? jz cfas_is_wait_over ; Nope, check if wait is over. in al,DATA_8042 ; Read byte from 8042. or dx,dx ; Have we read a byte yet? jnz cfas_is_wait_over ; Yes, ignore this byte. mov ah,al ; Save first byte read in. inc dx ; Show that a byte was read. cfas_is_wait_over: call IsWaitOver ; Has interval expired? jnc cfas_read_test_results ; Nope, keep looking. or dx,dx ; Did we get a byte? jz cfas_no_support ; Nope, no auxiliary device. or ah,ah ; Was the byte we got 0? jz cfas_clean_up ; Yes, return with carry clear. cfas_no_support: stc ; Show no aux device is supported. cfas_clean_up: ; Carry clear/set appropriately. pop ax ; Restore saved interrupt mask. sti ; Interrupts are reenabled. pushf ; Save result in carry. cli ; Interrupts off for mask update. mov ah,al ; Put it in AH. in al,MASTER_MASK_ADDR ; Read in current mask. IOdelay and ax,0000001011111101b ; Unmask keyboard interrupt. or al,ah ; Move in original state of keyboard. out MASTER_MASK_ADDR,al ; Write out changed mask. cfas_reenable_kbd: mov al,CMD8042_ENABLE_KBD ; Reenable the keyboard. call WriteControlRegister jc cfas_reenable_kbd ; Make sure we reenable the keyboard!! ; INTERRUPTS DISABLED!! popf ; Restore result and interrupts. ; INTERRUPTS ENABLED!! cfas_leave: ret CheckForAuxSupport ENDP ;***************************************************************************** ; ; Read8042CommandByte ; ; This procedure will try to read the 8042's command byte. ; ; Note that this procedure should only be called if both the keyboard ; and auxiliary devices are disabled. ; ; ENTRY none ; ; EXIT Carry clear Command byte was read successfully ; AL Command byte ; Interrupts enabled ; ; Carry set Command byte couldn't be read ; Interrupts enabled ; ; ALTERS AL ; ; CALLS WriteControlRegister ; Read8042CommandByte PROC NEAR mov al,CMD8042_READ_CMD ; Tell 8042 that we want to read the call WriteControlRegister ; command byte. jc r8cb_leave ; Leave if error. ; INTERRUPTS DISABLED! push cx ; Save register. mov cx,400h ; Short delay because ints are off. r8cb_loop: in al,STATUS_8042 ; Get current status of 8042. test al,O_FULL ; Is there data in the output buffer? jnz r8cb_got_data ; Yes! Go and read it. loop r8cb_loop ; Keep trying. stc ; Show failure. jmp short r8cb_leave2 r8cb_got_data: ; Carry is clear! in al,DATA_8042 ; Get 8042's command byte. r8cb_leave2: pop cx ; Restore register. IOdelay ; Make sure interrupt is cleared. sti ; Reenable interrupts. ; INTERRUPTS ENABLED! r8cb_leave: ; Carry set/clear appropriately. ret Read8042CommandByte ENDP ;***************************************************************************** ; ; Write8042CommandByte ; ; This procedure sets the 8042's command byte to the value given. ; ; ENTRY AL Value to set the command byte to ; ; EXIT Carry clear Command byte was set ; Interrupts enabled ; ; Carry set Command byte couldn't be set ; Interrupts enabled ; ; ALTERS none ; ; CALLS WriteControlRegister, WriteInputBuffer ; Write8042CommandByte PROC NEAR push ax ; Save value passed in. mov al,CMD8042_WRITE_CMD ; Tell 8042 that we want to write the call WriteControlRegister ; command byte. jc w8cb_leave ; Leave if we have an error. ; INTERRUPTS DISABLED! pop ax ; Restore value. call WriteInputBuffer ; Send it to 8042. ; INTERRUPTS ENABLED! jc Write8042CommandByte ; Retry if unsuccessful. w8cb_leave: ; Carry set/clear appropriately. ret Write8042CommandByte ENDP ;***************************************************************************** ; ; WriteInputBuffer ; ; This procedure sends a byte of data to the 8042's input buffer. It ; should not be called unless the 8042 has already been set up to ; expect this byte of data. ; ; Note that interrupts should be disabled from the time that the command ; is sent to the 8042 until the time that the data byte is ; actually written. ; ; ENTRY AL Byte of data to be sent. ; Interrupts disabled ; ; EXIT Carry clear Byte of data has been sent to the 8042. ; Interrupts enabled ; ; Carry set Byte of data could not be sent to the 8042. ; Interrupts enabled ; ; ALTERS none ; ; CALLS none ; WriteInputBuffer PROC NEAR ; ; Upon entry, it is assumed that a command has just been sent to the ; 8042. Therefore, we will wait until the 8042 has removed the command ; byte from its input buffer before doing anything else. ; ; Note that because interrupts are disabled at this time, we will only ; wait a short while before timing out. ; push cx ; Save registers that we use push ax mov cx,400h ; Short delay wib_wait: in al,STATUS_8042 ; Get 8042's current status. test al,I_FULL ; Is the input buffer still full? jz wib_check_output ; Nope - can now test for output. loop wib_wait ; Keep waiting. jmp short wib_failure ; Timed out - return with failure. wib_check_output: and al,O_FULL + A_FULL ; Keep output and aux buffer bits. cmp al,O_FULL ; Output buffer contain keybd data? jne wib_check_aux_data ; Nope - check for aux data. wib_failure: pop ax ; Restore saved data byte. stc ; Show failure. jmp short wib_leave ; Return to caller wib_check_aux_data: cmp al,O_FULL + A_FULL ; Output buffer contain aux data? jne wib_success ; Nope, can just send data byte. in al,DATA_8042 ; Yup - read and discard data. wib_success: ; Input and output buffers are empty. pop ax ; Get saved data byte. out DATA_8042,al ; Send data byte. clc ; Show success. wib_leave: pop cx ; Restore register. sti ; Reenable interrupts. ret WriteInputBuffer ENDP ;***************************************************************************** ; ; WriteControlRegister ; ; This procedure will send a command byte to the 8042's control register. ; Note that nothing will be sent as long as the 8042's input or ; output buffer is full. ; ; Note that only 15*64K attempts will be made before timing out. ; ; ENTRY AL Command byte to be sent ; ; EXIT Carry clear Byte was written to 8042 successfully ; Interrupts disabled ; ; Carry set Byte could not be written to 8042 ; Interrupts enabled ; ; ALTERS none ; ; CALLS none ; WriteControlRegister PROC NEAR push cx ; Save registers we use. push ax mov ah,15 ; Set up for looping 15*64K times. xor cx,cx ; ; At this point, we wait until the input and output buffers are empty. ; Interrupts have to be disabled from the time we find the buffers ; empty and write the command byte until the time that the data that ; the command produces is read. Therefore, we will disable and enable ; interrupts each time through the loop to ensure that interrupts will ; not be disabled for too long a time. ; wcr_loop: cli ; Disable ints before reading status. in al,STATUS_8042 ; Get 8042's current status. test al,I_FULL + O_FULL ; Are input and output buffers empty? jz wcr_success ; Yes! Go write the command byte. sti ; Nope. Reenable ints and keep trying loop wcr_loop ; the desired number of times. dec ah jnz wcr_loop ; ; Interrupts are enabled. ; pop ax ; Restore registers. pop cx stc ; Show that we failed. ret ; ; Interrupts are disabled and carry is clear (from TEST instruction). ; wcr_success: pop ax ; Get saved command byte. out CONTROL_8042,al ; Write command byte out. pop cx ; Restore register. ret ; Carry is already clear. WriteControlRegister ENDP ;***************************************************************************** ; ; MouseIntOff ; ; This procedure will disable the mouse and mouse interrupts at the 8042 ; level. ; ; Note that it assumes that the keyboard is enabled upon entry to this ; procedure. ; ; ENTRY none ; ; EXIT Carry clear Mouse and mouse interrupts are disabled. ; ; Carry set Some error occurred. ; ; ALTERS AL ; ; CALLS WriteControlRegister, Read8042CommandByte, Write8042CommandByte ; MouseIntOff PROC NEAR mov al,CMD8042_DISABLE_AUX ; Disable the aux device. call WriteControlRegister jc mioff_leave ; Leave if error. mov al,CMD8042_DISABLE_KBD ; Disable the keyboard. call WriteControlRegister jc mioff_leave ; Leave if error. ; INTERRUPTS DISABLED!! call Read8042CommandByte ; Get the current command byte. ; INTERRUPTS ENABLED!! jc mioff_cleanup ; Leave if error. and al,not AUX_INT_ENABLE ; Disable mouse interrupts. call Write8042CommandByte ; Write out altered command byte. mioff_cleanup: pushf ; Save return status. mioff_reenable_kbd: mov al,CMD8042_ENABLE_KBD ; Reenable the keyboard. call WriteControlRegister ; If an error occurs, keep trying to jc mioff_reenable_kbd ; reenable it. ; INTERRUPTS DISABLED!! popf ; Restore return status. ; INTERRUPTS ENABLED!! mioff_leave: ; Carry set/clear appropriately. ret MouseIntOff ENDP ;***************************************************************************** ; ; CheckForMSMouse ; ; This procedure checks to see if a Microsoft mouse or IBM mouse ; is attached to the auxiliary interface of the 8042. ; ; ENTRY Mouse interrupts disabled. ; ; EXIT Carry clear A PS/2 style mouse was found ; AX MS, IBM , Logitech ; Mouse interface disabled. ; Mouse is reset. ; ; Carry set PS/2 mouse was not found ; ; ALTERS AX, CX ; ; CALLS SendToMouse, SendToMouseAndTestData, GetMouseData ; WriteControlRegister, ResetPS2Mouse ; CheckForMSMouse PROC NEAR mov al,CMD8042_ENABLE_AUX ; Make sure aux interface is enabled call WriteControlRegister ; so we can talk to the mouse. jc cfmm_leave ; Leave if we can't enable it. mov cx,5 ; Only 5 tries at this! cfmm_retry: call ResetPS2Mouse ; Try to reset the mouse. jc cfmm_failure ; Try again if we failed. ; call CheckForLogitechPS2 ; Check for Logitech PS/2 Mouse. ; jc noLogiTech ; Logitech mouse not found ; mov ax,LT_PS2MOUSE ; jmp short cfmm_cleanup ; mouse type determined ; ; The following sequence of commands checks to see if the mouse that we ; just succeeded in resetting is a Microsoft mouse. ; ; Note that we have to check to determine if the mouse responds with either ; MCMD_ACK or with what was sent because of the differences between ; the 200ppi and 400ppi PS/2 style mouse. The 200ppi mouse responds ; with MCMD_ACKs, while the 400ppi mouse responds with whatever was ; sent to it. ; noLogiTech: mov al,MCMD_ECHO ; Send Select Echo Command. call SendToMouse jc cfmm_failure ; Try again if we failed. mov ax,'GG' ; Next "command" in signature. call SendToMouseAndTestData jc cfmm_failure ; Try again if we failed. mov ax,'DD' ; Next "command" in signature. call SendToMouseAndTestData jc cfmm_failure ; Try again if we failed. mov ax,'GG' ; Next "command" in signature. call SendToMouseAndTestData jc cfmm_failure ; Try again if we failed. mov al,MCMD_KILL_ECHO ; Leave Echo mode. call SendToMouse jnc cfmm_signature_sent ; If successful, have sent signature. cfmm_failure: loop cfmm_retry ; Try again. ; ; at this point there is no mouse on AUX port at all ; stc ; carry set for no mouse at all. jmp short cfmm_cleanup ; ; At this point, we have sent the signature string to the mouse. ; If we have a Microsoft mouse out there, it will respond to a ; Microsoft extended command. If there is no response we have an ; IBM mouse. ; ; Note that we have to test to see if the mouse responds with either a ; MCMD_ACK or a MCMD_RESEND. This is because a 200ppi mouse responds ; with MCMD_ACK, while a 400ppi mouse responds with MCMD_RESEND. ; cfmm_signature_sent: mov ax,(MCMD_RESEND SHL 8) + MCMD_MS_VERS ; Set command and return. call SendToMouseAndTestData jc cfmm_cleanup ; Leave if unable to send command. ; IBM Mouse fails on this call because it will not send data in ; response to the above Microsoft version command call GetMouseData ; Read current version number. jc noVerNumber ; must have IBM mouse mov ax,MSPS2_MOUSE ; return MS PS2 Mouse. jmp short cfmm_cleanup ; mouse type determined noVerNumber: mov ax,IBMPS2_MOUSE ; ax = IBM PS/2 mouse found. clc ; clear carry to show mouse presence ; ; Disable the auxiliary interface before leaving. ; cfmm_cleanup: ; carry set here means no PS/2 mouse pushf ; Save state of carry. push ax ; Save version number. cfmm_disable_aux: mov al,CMD8042_DISABLE_AUX ; Disable the auxiliary interface. call WriteControlRegister jc cfmm_disable_aux ; Make sure aux interface is disabled. pop ax ; Restore version number. popf ; Restore carry. ; ; We have found a Microsoft mouse. The version number is in AL. ; cfmm_leave: ; carry clear means mouse present, al indicates its type ; carry set upon return means no mouse found ret CheckForMSMouse ENDP ;***************************************************************************** ; ; SendToMouse ; ; This procedure sends a byte of command or data to the mouse. ; Because it appears that the mouse always acknowledges the ; sending of this byte, this is also tested for here. ; ; ENTRY AL Byte of command/data to send ; ; EXIT Carry clear Command/data byte sent, mouse sent MCMD_ACK ; Interrupts enabled. ; ; Carry set Command/data byte not sent, or mouse never ; sent back MCMD_ACK ; Interrupts enabled. ; ; ALTERS AX ; ; CALLS SendToMouseAndTestData ; SendToMouse PROC NEAR mov ah,MCMD_ACK ; We will only check for MCMD_ACK being ; returned from mouse. IF2 .ERRNZ ($ - SendToMouseAndTestData) ; Because we fall into it. ENDIF SendToMouse ENDP ;***************************************************************************** ; ; SendToMouseAndTestData ; ; This procedure sends a byte of command or data to the mouse. ; It will then test to ensure that the mouse either sent ; back what the caller is expecting or MCMD_ACK. ; ; ENTRY AL Byte of command/data to send ; AH Byte of data the mouse is to return ; ; EXIT Carry clear Command/data byte sent, mouse responded ; correctly ; Interrupts enabled. ; ; Carry set Command/data byte not sent, or mouse never ; responded correctly ; Interrupts enabled. ; ; ALTERS AX ; ; CALLS WriteControlRegister, WriteInputBuffer, CheckMouseData ; SendToMouseAndTestData PROC NEAR push ax ; Save command/data byte. mov al,CMD8042_WRITE_AUX ; Tell 8042 we want to send a byte to call WriteControlRegister ; the auxiliary device. pop ax ; Get saved command/data byte. jc stmatd_leave ; Leave if error. ; INTERRUPTS DISABLED! call WriteInputBuffer ; Send data/command to aux dev. ; INTERRUPTS ENABLED! jc SendToMouseAndTestData ; Retry if unsuccessful. mov al,MCMD_ACK ; Make sure mouse acknowledges that ; command/data byte was sent. if2 ; Pass 2 of the assembler .errnz ($ - CheckMouseData) ; Because we drop into it endif ; Pass 2 of the assembler SendToMouseAndTestData ENDP ;***************************************************************************** ; ; CheckMouseData ; ; This procedure checks that the next byte that the mouse sends us is ; what we were expecting it to send. ; ; Note that this procedure cannot be called with interrupts disabled. ; If it is, interrupts will potentially be left off for a ; long time. ; ; ENTRY AL One possible data byte the mouse can send ; AH A second valid data byte the mouse can send ; Interrupts enabled ; ; EXIT Carry clear Mouse sent data we were expecting ; ; Carry set Mouse didn't send data, or sent something we ; weren't expecting. ; ; ALTERS none ; ; CALLS GetMouseData ; CheckMouseData PROC NEAR push bp ; Save BP. push ax ; Save data bytes to test for. mov bp,sp ; Address data bytes on stack. call GetMouseData ; Get next byte of data from mouse. jc cmd_leave ; Leave if error. cmp al,ah ; Is it what we were expecting? je cmd_leave ; Yes! Leave with carry clear. cmp al,byte ptr [bp] ; Is it other byte we were expecting? je cmd_leave ; Yes! Leave with carry clear. stc ; Nope, show error and leave. cmd_leave: ; Carry set/clear appropriately. pop ax ; Restore data bytes. pop bp ; Restore BP. stmatd_leave: ; Carry set/clear appropriately. ret CheckMouseData ENDP ;***************************************************************************** ; ; GetMouseData ; ; This procedure will try to read a byte of data from the mouse. It will ; only try 15 * 64K times before timing out. ; ; Note that this procedure cannot be called with interrupts disabled. ; If it is, interrupts will potentially be left off for a ; long time. ; ; ENTRY Interrupts enabled ; ; EXIT Carry clear The byte of data was read successfully ; AL The byte of data that was read ; ; Carry set The byte of data could not be read ; ; ALTERS none ; ; CALLS none ; GetMouseData PROC NEAR push cx ; Save registers that we use. push ax mov ah,15 ; Set up to loop 15*64K times. xor cx,cx gmd_loop: in al,STATUS_8042 ; Get current 8042 status. test al,O_FULL ; Is the output buffer full? jz gmd_buffer_empty ; Nope, keep trying. test al,A_FULL ; Yes! Now is data from the mouse? jnz gmd_got_aux_data ; Yes!! Go and read it. gmd_buffer_empty: ; No data from the mouse yet. loop gmd_loop ; Keep trying the desired number of dec ah ; times. jnz gmd_loop ; ; We timed out waiting for the mouse to send data. ; pop ax ; Restore registers. pop cx stc ; Show failure. ret ; ; There is mouse data to be read! ; gmd_got_aux_data: ; Carry is clear already. pop ax ; Restore AX so can return value in AL. in al,DATA_8042 ; Read byte of data from mouse. pop cx ; Restore other register. ret GetMouseData ENDP ;***************************************************************************** ; ; ResetPS2Mouse ; ; This procedure attempts to reset a PS/2 mouse. It does this by sending ; a reset command to the mouse and checking to ensure that ; it passed its diagnostics. ; ; ENTRY Mouse interrupts disabled. ; ; EXIT Carry clear Mouse has been reset correctly. ; AL ID Code ; ; Carry set No mouse or couldn't reset it. ; ; ALTERS AX ; ; CALLS SendToMouse, CheckMouseData, GetMouseData ; ResetPS2Mouse PROC NEAR push cx ; Save register. mov cx,3 ; Will only try 3 times. rpm_retry: mov al,MCMD_RESET ; Send the reset command to the mouse. call SendToMouse jc rpm_failure ; Try again if we failed. mov ax,(MCMD_DIAG_OK SHL 8) + MCMD_DIAG_OK ; Set valid data byte. call CheckMouseData ; Make sure mouse responds with it. jc rpm_failure ; Try again if we failed. call GetMouseData ; Make sure mouse also sends ID code. jnc rpm_leave ; If it has, leave with success. rpm_failure: loop rpm_retry ; Keep trying. rpm_leave: ; Carry set/clear appropriately. pop cx ; Restore register. ret ResetPS2Mouse ENDP ;***************************************************************************** ; ; CheckForLogiTechPS2 ; ; look for LogiTech PS/2 mouse ; ; ENTRY none ; ; EXIT Carry clear Logitech PS/2 mouse found ; ; ALTERS AX ; ; CALLS SendToMouse, SendToMouseAndTestData ; CheckForLogitechPS2 PROC NEAR ; the next sequence of commands is the way to see if the ; particular mouse is present mov ax,0C203h mov bh,0h int 15h jc logiTech_failure mov ax,0C206h mov bh,1h int 15h jc logiTech_failure mov ax,0C206h mov bh,1h int 15h jc logiTech_failure mov ax,0C206h mov bh,1h int 15h jc logiTech_failure mov ax,0C206h mov bh,0h int 15h jc logiTech_failure or cl,cl stc jz logitech_failure clc logiTech_failure: ret CheckForLogitechPS2 ENDP ;***************************************************************************** ; ; TestForLogitechSerial ; ; This procedure will detect the presence of a Logitech Series C ; serial mouse is present ; ;***************************************************************************** TestForLogitechSerial PROC NEAR call setupForLogitechSerial ; set COM port to talk to this mouse address IER RXB ; Get address of Interrupt Enable Reg. DelayIn al,dx ; Get current contents of IER and xor al,al ; Disable all interrupts at the DelayOut dx,al ; COM port level. address MCR IER ; Get address of Modem Control Reg. mov al,MC_DTR ; Set DTR active; RTS, OUT1, and OUT2 DelayOut dx,al ; inactive. This powers down mouse. mov cx,9d ; wait for 1/2 second to pwrdwn mouse call SetupForWait ; Set up BX:CX and ES:DI properly for assume es:nothing ; upcoming delay loop. address LSR MCR ; Get address of Line Status Reg. ; ; Now, we wait the specified amount of time, throwing away any stray ; data that we receive. This gives the mouse time to properly reset ; itself. ; lt_waitloop: DelayIn al,dx ; Read and ignore any stray data. call IsWaitOver ; Determine if we've delayed enough. jnc lt_waitloop ; If not, keep waiting. address MCR LSR ; Get address of Modem COntrol Reg. mov al,MC_DTR+MC_RTS+MC_OUT2 ; Set DTR, RTS, and OUT2 active ; OUT1 inactive. DelayOut dx,al ; This should power up the mouse. mov cx,9d ; wait for 1/2 second to pwrup mouse call SetupForWait ; Set up BX:CX and ES:DI properly for assume es:nothing ; upcoming delay loop. ; ask for current baud rate lt_waitloop2: call IsWaitOver ; Determine if we've delayed enough. jnc lt_waitloop2 address TXB MCR ; Get address of Transmit Buffer. mov al, 073h ; Ask for status - send 's' DelayOut dx,al mov cx,1 ; Wait at least 55.5 ms for response. call SetupForWait assume es:nothing address RXB TXB ; Get address of Receive Buffer. lt_waitloop3: DelayIn al,dx ; Get character that was sent to us. call IsWaitOver jnc lt_waitloop3 and al,10111111b ; Mask off the mode bit. bit 6. cmp al, 0fh ; al = Fh means command understood jne no_lt_found mov ax,LT_MOUSE jmp short lt_leave no_lt_found: mov ax,NO_MOUSE lt_leave: ret TestForLogitechSerial ENDP ;***************************************************************************** ; ; setupForLogitechSerial ; ; This procedure will set up the given COM port so that it can talk to ; a Logitech C series serial mouse. ; ; ENTRY DX Base address of COM port to set up ; ; EXIT COM port set up, all interrupts disabled at COM port ; ; ALTERS AX ; ; CALLS none ; setupForLogitechSerial PROC NEAR push dx ; Save base I/O address. address LCR RXB ; Get address of Line Control Reg. mov al,LC_DLAB ; Set up to access divisor latches. DelayOut dx,al address LATMSB LCR ; Get address of high word of divisor mov al,HIGH DIV_1200 ; latch and set it with value for DelayOut dx,al ; 1200 baud. address LATLSB LATMSB ; Get address of low word of divisor mov al,LOW DIV_1200 ; latch and set it with value for DelayOut dx,al ; 1200 baud. address LCR LATLSB ; Get address of Line Control Reg. mov al,LC_BITS8 + LC_STOP1 + LC_PNONE DelayOut dx,al ; Set 7,n,1; disable access to divisor. address IER LCR ; Get address of Int. Enable Register xor al,al ; Disable all interrupts at the COM DelayOut dx,al ; port level. address LSR IER ; Get address of Line Status Reg. DelayIn al,dx ; Read it to clear any errors. pop dx ; Restore base I/O address ret setupForLogitechSerial ENDP sEnd CODE end
35.362361
81
0.507401
d87abf9d3a52f8cbf9201ecf522fc4b4458dc316
526
asm
Assembly
programs/oeis/314/A314829.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/314/A314829.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/314/A314829.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A314829: Coordination sequence Gal.4.41.3 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,5,9,14,18,22,27,31,36,41,45,50,54,58,63,67,72,77,81,86,90,94,99,103,108,113,117,122,126,130,135,139,144,149,153,158,162,166,171,175,180,185,189,194,198,202,207,211,216,221 mov $1,$0 mov $4,$0 mul $4,3 add $4,$0 mov $2,$4 mov $5,$0 pow $0,2 mul $0,3 div $1,8 add $2,1 mul $2,2 div $0,$2 add $0,$1 mov $1,$0 add $1,1 mov $3,$5 mul $3,4 add $1,$3
23.909091
176
0.671103
e9cb64d1ee2a1b09645fa45c1ac80b09d3c0ea6c
619
asm
Assembly
oeis/010/A010514.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/010/A010514.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/010/A010514.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A010514: Decimal expansion of square root of 61. ; 7,8,1,0,2,4,9,6,7,5,9,0,6,6,5,4,3,9,4,1,2,9,7,2,2,7,3,5,7,5,9,1,0,1,4,1,3,5,6,8,3,0,5,1,3,6,6,4,8,5,6,3,3,0,0,1,7,7,2,4,3,7,6,0,1,9,0,7,8,5,5,8,8,9,3,6,7,2,7,0,5,4,4,2,5,4,3,3,0,5,2,2,6,7,0,0,4,8,9,5 mov $1,1 mov $2,1 mov $3,$0 add $3,8 mov $4,$0 add $4,3 mul $4,2 mov $7,10 pow $7,$4 mov $9,10 lpb $3 mov $4,$2 pow $4,2 mul $4,61 mov $5,$1 pow $5,2 add $4,$5 mov $6,$1 mov $1,$4 mul $6,$2 mul $6,2 mov $2,$6 mov $8,$4 div $8,$7 max $8,2 div $1,$8 div $2,$8 sub $3,1 lpe mov $3,$9 pow $3,$0 div $2,$3 div $1,$2 mod $1,$9 mov $0,$1
15.871795
201
0.50727
e2433e37056fb86fe5028e167152f4eba8ec1847
730
asm
Assembly
oeis/277/A277420.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/277/A277420.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/277/A277420.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A277420: a(n) = n!*LaguerreL(n, -6*n). ; Submitted by Jon Maiga ; 1,7,194,9078,596760,50508120,5228520912,639915545808,90390815432064,14472947716917120,2590274418097708800,512433683486806447872,111036605823697437490176,26153418409614396515976192,6653213794092052464421939200,1817951594633556391548903168000,531016342154515122149667152166912,165118143351402015405908868292902912,54455705454387082084971093211399520256,18985937281049432520653745821741793607680,6977325807583708074936354033492594032640000,2695689479327003433888216489860478969289900032 mov $2,1 mov $3,$0 mov $4,1 lpb $3 mul $1,$3 mul $4,$3 add $1,$4 mul $1,$3 mul $2,6 mul $2,$0 mov $4,0 add $5,1 div $1,$5 add $2,$1 sub $3,1 lpe mov $0,$2
33.181818
485
0.80137
f08618facfb3c6ffa66ec612abd497423425b593
7,211
asm
Assembly
os.asm
thirdcoder/tca5
fe4cdb38dd597ec3ce8930c5918bdc2abb673f07
[ "MIT" ]
3
2015-07-21T08:44:23.000Z
2021-08-29T09:04:31.000Z
os.asm
thirdcoder/tca5
fe4cdb38dd597ec3ce8930c5918bdc2abb673f07
[ "MIT" ]
3
2015-07-22T03:11:58.000Z
2015-07-26T03:59:57.000Z
os.asm
thirdcoder/tca5
fe4cdb38dd597ec3ce8930c5918bdc2abb673f07
[ "MIT" ]
1
2021-08-29T09:02:58.000Z
2021-08-29T09:02:58.000Z
NOP ; write to memory-mapped video LDA #%i1i1i .equ $wdddd video_start .equ $ddddd video_end STA video_start STA $wdddd STA $0zzzz STA $0zzzy STA $0zzzx STA $0zzzw STA $0zzz0 STA $0zzza .equ -3282 chargen .equ -3283 row .equ -3284 col .equ -3286 beep ; write to text character generator LDA #'X LDX #0 STX row LDY #4 STY col LDX #1 STA chargen ADC #2 STI A ; simple ternary inverter STA chargen ; trit-text red 'Z' LDX #4 INX STX col DEC chargen ; trit-text 'Y' TXA ; X->A, 5 ; setup stack, since default 0 overlaps with memory-mapped screen output .equ -10000 stack LDY #>stack LDX #<stack TXYS ; loop 6..19 loop: INC A STA col STA chargen CMP #20 ;BNE #-11 BNE loop LDA #1 STA row STZ col ; print greeting LDA #<greeting LDX #>greeting JSR print_string INC row STZ col LDA #<prompt_string LDX #>prompt_string JSR print_string ;STZ beep ; set input interrupt handler .equ -29524 int_inputL .equ -29523 int_inputH LDA #<handle_input STA int_inputL LDA #>handle_input STA int_inputH SEIP ; enable interrupt -1 (keyboard input) TODO: also handle int 1, then can unmask all with CLI ; set pulse interrupt handler .equ -29520 int_pulseL .equ -29519 int_pulseH LDA #<handle_pulse STA int_pulseL LDA #>handle_pulse STA int_pulseH CLI ; enable all interrupts LDA #'_ ; a suitable cursor character ;LDA #'▒ ; alternative block cursor TODO: use in 'insert' mode? STA cursor_char .equ -3285 timer_freq LDA #1 ; 100 ms ; cursor blink - disable when want quiescence (noisy) STA timer_freq ; triggers interrupt immediately.. TODO: probably should delay! or never returns? ; HALTZ cursor_char: .tryte 0 greeting: .data "Hello, world! ☺ 3502 CPU online: system ready---------------------------------------------" .tryte 0 prompt_string: ;TODO: support newlines in print_string '.tryte 12', // trit-text newline TODO: support embedding in .data .data "$ " .tryte 0 bad_command_string: .data "Bad command or file name: " .tryte 0 help_command_string: .data "Available commands: " .data "Help: " .data "beep - sound a beep through the speaker " .data "clear - clear terminal screen display " .data "help - show help on supported commands " .data "read - read data from floppy disk " .data "write - write data to floppy disk " .data "echo - echo input to terminal " .tryte 0 handle_pulse: ; blinking cursor LDA cursor_char STA chargen STI cursor_char ; simple ternary inverter, toggle red/green '_' RTI ; return from interrupt ; subroutine to advance terminal to next line next_line: INC row STZ col RTS handle_prev_line: DEC row LDA #44 ; TODO: .equ STA col JMP handled_input handle_backspace: JSR truncate_line_buffer BCS handle_backspace_denied ; if couldn't delete STZ chargen ; clear cursor DEC col LDA col CMP #-1 BEQ handle_prev_line STZ chargen JMP handled_input handle_backspace_denied: STZ beep ; user feedback that their backspacing was denied JMP handled_input handle_enter: STZ chargen ; clear cursor JSR next_line ; check commands TODO: strcmp, check full string instead of only first character LDY #0 LDA #'\0 CMP line_buffer,Y BEQ command_null LDA #'b CMP line_buffer,Y BEQ command_beep LDA #'c CMP line_buffer,Y BEQ command_clear LDA #'h CMP line_buffer,Y BEQ command_help LDA #'r CMP line_buffer,Y BEQ command_read LDA #'w CMP line_buffer,Y BEQ command_write LDA #'e CMP line_buffer,Y BEQ command_echo JMP command_bad handle_enter_done: JSR reset_line_buffer STZ col LDA #<prompt_string LDX #>prompt_string JSR print_string JMP handled_input ; interrupt handler: handle_input: CMP #'\n BEQ handle_enter CMP #0 BEQ handle_backspace JSR save_line_buffer_char JSR print_char handled_input: RTI command_bad: LDA #<bad_command_string LDX #>bad_command_string JSR print_string LDA #<line_buffer LDX #>line_buffer JSR print_string INC row JMP handle_enter_done command_help: LDA #<help_command_string LDX #>help_command_string JSR print_string JMP handle_enter_done command_beep: STA beep JMP handle_enter_done command_null: JMP handle_enter_done command_read: JMP command_read2 ; too far command_write: JMP command_write2 command_echo: LDA #<line_buffer LDX #>line_buffer JSR print_string INC row JMP handle_enter_done .equ 45 col_count .equ 28 row_count command_clear: STZ col STZ row _command_clear_next_row: _command_clear_next_col: STZ chargen ; write empty character at each cursor position to clear terminal TODO: instead write to tritmapped memory? INC col LDA col CMP #col_count BNE _command_clear_next_col INC row LDA row CMP #row_count BNE _command_clear_next_row STZ beep ; beep when done STZ col ; reset cursor to beginning STZ row JMP handle_enter_done ; append character in A to line_buffer save_line_buffer_char: LDY line_buffer_offset STA line_buffer,Y INC line_buffer_offset INY LDX #0 STX line_buffer,Y ; null terminate RTS line_buffer_offset: .tryte 0 ; reset line buffer to empty string reset_line_buffer: STZ line_buffer_offset STZ line_buffer RTS ; delete last character of line buffer, sets carry flag if cannot be deleted truncate_line_buffer: LDY line_buffer_offset DEY CPY #0 BMI _truncate_line_buffer_skip ; empty buffer, cannot truncate further STZ line_buffer,Y STY line_buffer_offset CLC RTS _truncate_line_buffer_skip: SECN RTS ; print character in A to screen and advance cursor print_char: STA chargen INC col LDX col CPX #col_count BNE print_char_done JSR next_line ; at last column, wrap cursor to next line print_char_done: RTS ; print a null-terminated string pointed to by A,X print_string: STA _print_string_param STX _print_string_param+1 LDY #0 _print_string_loop: LDA (_print_string_param),Y CMP #0 BEQ _print_string_done JSR print_char LDA #1 ADC _print_string_param STA _print_string_param LDA #0 ADC _print_string_param+1 STA _print_string_param+1 BRA _print_string_loop _print_string_done: RTS _print_string_param: .word 0 .equ -3290 floppy_data_ptr .equ -3292 floppy_name_ptr .equ -3294 floppy_length_ptr .equ -3296 floppy_command_execute .equ -1 floppy_command_read .equ 0 floppy_command_write ; write data to floppy (similar to echo text > filename TODO) command_write2: LDA #<line_buffer LDX #>line_buffer STA floppy_data_ptr ; TODO: increment pointer to remove command prefix STX floppy_data_ptr+1 LDA #<filename LDX #>filename STA floppy_name_ptr STX floppy_name_ptr+1 LDA #floppy_command_write STA floppy_command_execute ; TODO: print out number of trytes written? to filename? JMP handle_enter_done ; read data from floppy TODO: rename 'cat'...? Unix command_read2: LDA #<line_buffer LDX #>line_buffer STA floppy_data_ptr STX floppy_data_ptr+1 LDA #<filename LDX #>filename STA floppy_name_ptr STX floppy_name_ptr+1 LDA #floppy_command_read STA floppy_command_execute LDA #<line_buffer LDX #>line_buffer JSR print_string INC row STZ col JMP handle_enter_done ; floppy filename TODO: read from argument filename: .data "hi" .tryte 0 line_buffer: .tryte 0 ; may extend further
17.761084
123
0.75052
40615f5ea166ca968bc6fde9332dbae76dcb969e
265
asm
Assembly
FuncaoProcessador/nand.asm
JoaoVitorDio/Projetos-Organizacao-de-Computadores-Digitais
47d175ecccb1aff8181d812cc156af5d1feb86e5
[ "MIT" ]
null
null
null
FuncaoProcessador/nand.asm
JoaoVitorDio/Projetos-Organizacao-de-Computadores-Digitais
47d175ecccb1aff8181d812cc156af5d1feb86e5
[ "MIT" ]
null
null
null
FuncaoProcessador/nand.asm
JoaoVitorDio/Projetos-Organizacao-de-Computadores-Digitais
47d175ecccb1aff8181d812cc156af5d1feb86e5
[ "MIT" ]
null
null
null
loadn r0, #7 ; r0 = 111 loadn r1, #5 ; r1 = 101 ; and entre r0 e r1 = 101 ; not do resultado anterior = 010 ; logo, nand entre r0 e r1 = 10 NAND r0, r0, r1 loadn r2, #'D' add r0, r2, r0 loadn r3, #10 outchar r0, r3 ; imprime F na tela (Código ASCII 'D' + 2) halt
16.5625
42
0.622642
4706a107b9028d57b7742508f30d5914d6a8433b
581
asm
Assembly
programs/oeis/249/A249728.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/249/A249728.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/249/A249728.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A249728: After a(1) = 1 each n appears A000720(n) times. ; 1,2,3,3,4,4,5,5,5,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,11,12,12,12,12,12,13,13,13,13,13,13,14,14,14,14,14,14,15,15,15,15,15,15,16,16,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21 mov $2,$0 sub $0,1 add $2,1 lpb $2 sub $2,1 mov $3,$1 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 mov $4,$0 max $4,0 cmp $4,$0 add $5,$3 sub $0,$5 add $1,1 mul $2,$4 lpe mov $0,$1
27.666667
277
0.598967
169ec299a23fc618f6914592dc3f8a07ba65a622
296
asm
Assembly
programs/oeis/136/A136521.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/136/A136521.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/136/A136521.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A136521: Triangle read by rows: (1, 2, 2, 2,...) on the main diagonal and the rest zeros. ; 1,0,2,0,0,2,0,0,0,2,0,0,0,0,2,0,0,0,0,0,2,0,0,0,0,0,0,2,0,0,0,0,0,0,0,2 mov $1,2 lpb $0 add $1,1 add $2,1 sub $0,$2 sub $0,1 lpe lpb $1 mov $1,3 lpe lpb $0 div $0,5 mov $1,1 lpe sub $1,1
15.578947
91
0.550676
84c3e83299790ef1a7bdc75f0644862eb174881d
616
asm
Assembly
oeis/285/A285965.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/285/A285965.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/285/A285965.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A285965: Positions of 1 in A285963; complement of A285964. ; Submitted by Christian Krause ; 4,10,14,17,24,30,37,40,44,50,54,57,64,67,71,77,84,90,94,97,104,110,117,120,124,130,137,143,147,150,157,160,164,170,174,177,184,190,197,200,204,210,214,217,224,227,231,237,244,250,254,257,264,267,271,277,281,284,291,297,304,307,311,317,324,330,334,337,344,350,357,360,364,370,374,377,384,387,391,397,404,410,414,417,424,430,437,440,444,450,457,463,467,470,477,480,484,490,494,497 mov $1,$0 seq $1,36554 ; Numbers whose binary representation ends in an odd number of zeros. mov $2,$1 add $2,2 add $0,$2 div $0,2 add $0,$1
51.333333
380
0.725649
9310e5dddab94c27378e35b7ff20506dd51ce101
882
asm
Assembly
boot/pikos_gdt.asm
pikobyte/pikos
ab60ddcde8133690e22dad374ab2055210daf6e2
[ "MIT" ]
1
2020-04-19T20:09:24.000Z
2020-04-19T20:09:24.000Z
boot/pikos_gdt.asm
pikobyte/pikos
ab60ddcde8133690e22dad374ab2055210daf6e2
[ "MIT" ]
1
2018-09-25T18:43:42.000Z
2018-09-25T18:43:42.000Z
boot/pikos_gdt.asm
pikobyte/pikos
ab60ddcde8133690e22dad374ab2055210daf6e2
[ "MIT" ]
2
2018-09-26T07:58:16.000Z
2018-09-27T14:36:03.000Z
; ; pikos_gdt.asm ; pikOS global descriptor table functions. ; ; Create the null-descriptor. gdt_start: dd 0x0 dd 0x0 ; Define the code segment descriptor. gdt_code: dw 0xffff ; Maximum size dw 0x0 ; Start at address 0 db 0x0 db 10011010b ; Present, ring0, code db 11001111b ; Largely default db 0x0 ; Define the data segment description. gdt_data: dw 0xffff ; Maximum size dw 0x0 ; Start at address 0 db 0x0 db 10010010b ; Present, ring0, data db 11001111b ; Largely default db 0x0 ; End label to find GDT size. gdt_end: ; Define the GDT descriptor. gdt_descriptor: dw gdt_end - gdt_start - 1 ; Size dd gdt_start ; Start address ; Constants for the GDT segment descriptor offsets. CODE_SEG equ gdt_code - gdt_start DATA_SEG equ gdt_data - gdt_start
20.045455
51
0.653061
5c89901701cd7a321b6da644884aa79f22bbcfe8
921
asm
Assembly
vm/asm_constructions_test/LtConstructionTest.asm
MarkoVMicic/nand2tetris-solutions
a917a861d520348f70d084da6aadbfdc90daa10a
[ "Unlicense" ]
null
null
null
vm/asm_constructions_test/LtConstructionTest.asm
MarkoVMicic/nand2tetris-solutions
a917a861d520348f70d084da6aadbfdc90daa10a
[ "Unlicense" ]
null
null
null
vm/asm_constructions_test/LtConstructionTest.asm
MarkoVMicic/nand2tetris-solutions
a917a861d520348f70d084da6aadbfdc90daa10a
[ "Unlicense" ]
null
null
null
// Initialize stack pointer to start at 256 (i.e. RAM[0] contains 256) @256 D=A @SP M=D // Push two numbers on the stack. 8 < 9 -> -1 @8 D=A @SP A=M M=D @SP M=M+1 @9 D=A @SP A=M M=D @SP M=M+1 // Less than check @SP M=M-1 A=M D=M @SP M=M-1 A=M D=M-D @NOT_LT_0 D;JGE (LT_0) @SP A=M M=-1 @LT_END_0 0;JMP (NOT_LT_0) @SP A=M M=0 @LT_END_0 0;JMP (LT_END_0) @SP M=M+1 // Push two numbers on the stack. 9 !< 8 -> 0 @9 D=A @SP A=M M=D @SP M=M+1 @8 D=A @SP A=M M=D @SP M=M+1 // Less than check @SP M=M-1 A=M D=M @SP M=M-1 A=M D=M-D @NOT_LT_1 D;JGE (LT_1) @SP A=M M=-1 @LT_END_1 0;JMP (NOT_LT_1) @SP A=M M=0 @LT_END_1 0;JMP (LT_END_1) @SP M=M+1 // Push two numbers on the stack. 69 !< 69 -> 0 @69 D=A @SP A=M M=D @SP M=M+1 @69 D=A @SP A=M M=D @SP M=M+1 // Less than check @SP M=M-1 A=M D=M @SP M=M-1 A=M D=M-D @NOT_LT_2 D;JGE (LT_2) @SP A=M M=-1 @LT_END_2 0;JMP (NOT_LT_2) @SP A=M M=0 @LT_END_2 0;JMP (LT_END_2) @SP M=M+1
6.772059
70
0.590662
d03265ab3d0a8db4a38deaa3ad0fcc9fa4c89ab6
367
asm
Assembly
codigo/x86/MASM/hola.asm
AlainPlusPlus/assembly-course
673d1d396c304ca04e368d270530bf0f60905b8a
[ "MIT" ]
null
null
null
codigo/x86/MASM/hola.asm
AlainPlusPlus/assembly-course
673d1d396c304ca04e368d270530bf0f60905b8a
[ "MIT" ]
null
null
null
codigo/x86/MASM/hola.asm
AlainPlusPlus/assembly-course
673d1d396c304ca04e368d270530bf0f60905b8a
[ "MIT" ]
3
2021-07-22T23:18:04.000Z
2021-08-11T10:18:54.000Z
; ; Copyright (c) 2021 Alain (@AlainPlusPlus) ; ; Programa básico de "hello, world!" en español. ; .data hello db '¡Hola, mundo!' helloLen equ $- hello .code _start: mov eax, 4 mov ebx, 1 lea ecx, hello ;carga dirección efectiva (Load Effective Address) mov edx, helloLen int 80h mov eax, 1 mov ebx, 0 int 80h end _start
15.956522
70
0.623978
6c1e5c5a034034fbd570d7227a98fd85e44402bb
484
asm
Assembly
oeis/115/A115978.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/115/A115978.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/115/A115978.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A115978: Expansion of phi(-q) * phi(-q^3) in powers of q where phi() is a Ramanujan theta function. ; Submitted by Christian Krause ; 1,-2,0,-2,6,0,0,-4,0,-2,0,0,6,-4,0,0,6,0,0,-4,0,-4,0,0,0,-2,0,-2,12,0,0,-4,0,0,0,0,6,-4,0,-4,0,0,0,-4,0,0,0,0,6,-6,0,0,12,0,0,0,0,-4,0,0,0,-4,0,-4,6,0,0,-4,0,0,0,0,0,-4,0,-2,12,0,0,-4,0,-2,0,0,12,0,0,0,0,0,0,-8,0,-4,0,0,0,-4,0,0 mov $2,-1 pow $2,$0 seq $0,4016 ; Theta series of planar hexagonal lattice A_2. div $0,$2 add $2,2 mul $0,$2 div $0,3
40.333333
230
0.572314
2f92040272aac872fb276eaae333bb3577f6dcae
4,823
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca.log_21829_648.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.log_21829_648.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.log_21829_648.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 %r14 push %r8 push %rbp push %rdi push %rdx lea addresses_UC_ht+0x5348, %rbp clflush (%rbp) nop nop nop nop nop cmp $56639, %rdi mov (%rbp), %edx nop nop nop dec %r11 lea addresses_UC_ht+0x9c68, %r14 inc %rbp mov (%r14), %edx nop nop nop nop nop add %r14, %r14 lea addresses_WT_ht+0x9b48, %rdi cmp %r8, %r8 movb (%rdi), %r13b nop nop nop nop sub %rdi, %rdi lea addresses_normal_ht+0x1468, %r8 nop nop sub $64940, %r13 mov $0x6162636465666768, %rdx movq %rdx, %xmm2 and $0xffffffffffffffc0, %r8 vmovntdq %ymm2, (%r8) nop nop nop nop and %r13, %r13 pop %rdx pop %rdi pop %rbp pop %r8 pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r14 push %r15 push %r8 push %rcx // Faulty Load lea addresses_D+0x19b48, %rcx nop and %r13, %r13 movb (%rcx), %r11b lea oracles, %rcx and $0xff, %r11 shlq $12, %r11 mov (%rcx,%r11,1), %r11 pop %rcx pop %r8 pop %r15 pop %r14 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_D'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 1, 'NT': False, 'type': 'addresses_D'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 4, 'NT': True, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 32, 'NT': True, 'type': 'addresses_normal_ht'}} {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
47.284314
2,999
0.66017
728a434db7e48755fe5392a0e5f2fbed5669dda8
182
asm
Assembly
libsrc/_DEVELOPMENT/string/c/sdcc_iy/_strrstrip__fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/string/c/sdcc_iy/_strrstrip__fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/string/c/sdcc_iy/_strrstrip__fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; char *_strrstrip__fastcall(const char *s) SECTION code_clib SECTION code_string PUBLIC __strrstrip__fastcall EXTERN asm__strrstrip defc __strrstrip__fastcall = asm__strrstrip
15.166667
43
0.846154
93cba3c2fd5316676cf45b25f431300e91e7a19c
1,745
asm
Assembly
arch/x86/boot/loader.asm
31core/illumi
344fa945df9031aadda6775121e8fb641b45e844
[ "MIT" ]
1
2021-05-10T10:52:06.000Z
2021-05-10T10:52:06.000Z
arch/x86/boot/loader.asm
31core/illumi
344fa945df9031aadda6775121e8fb641b45e844
[ "MIT" ]
null
null
null
arch/x86/boot/loader.asm
31core/illumi
344fa945df9031aadda6775121e8fb641b45e844
[ "MIT" ]
null
null
null
;loader.asm org 0x70000 KERNEL_ADDR equ 0x100000 ;内核地址 KERNEL_SIZE equ 65 ;内核大小(扇区) [bits 16] mov ax, 0x07e0 mov ds, ax mov dword [0], 0 ;保留段 mov dword [4], 0 mov dword [8], 0x0000ffff ;4GB,可执行段 mov dword [12], 0x00cf9a00 mov dword [16], 0x0000ffff ;4GB,可读写段 mov dword [20], 0x00cf9200 mov ah, 0x00 mov al, 0x03 int 0x10 cli ;关闭中断 mov ax, 0x7000 mov ds, ax lgdt [GDT_addr] ;加载GDTR in al, 0x92 or al, 2 out 0x92, al ;启用 A20 line mov eax, cr0 or eax, 1 mov cr0, eax ;cr0 PE位置1 jmp dword 8:start [bits 32] start: mov ax, 2 * 8 mov ds, ax call load_kernel jmp dword 8:KERNEL_ADDR ;加载内核 load_kernel: mov cx, KERNEL_SIZE mov ebx, 9 mov edx, KERNEL_ADDR call load_block ;加载内核到内存 ret ;读取磁盘块 ;cx:加载扇区个数 ebx:起始扇区 edx:加载内存地址 load_block: push edx mov dx, 0x1f2 mov al, cl out dx, al ;0x1f2端口写加载扇区数 mov al, bl add dx, 1 ;0x1f3 out dx, al ;LBA0~7位 shr ebx, 8 mov al, bl add dx, 1 ;0x1f4 out dx, al ;LBA8~15位 shr ebx, 8 mov al, bl add dx, 1 ;0x1f5 out dx, al ;LBA16~23位 shr ebx, 8 and bl, 0x0f ;保留低4位 or bl, 0xe0 ;LBA,主盘 mov al, bl add dx, 1 ;0x1f6 out dx, al ;LBA24~27位 mov al, 0x20 ;读取磁盘 add dx, 1 ;0x1f7 out dx, al mov ax, cx mov dx, 256 mul dx ;循环次数=扇区数*512/2 mov cx, ax pop edx mov ebx, edx mov dx, 0x1f0 .read_data: call .check_disk ;检查磁盘控制器是否可用 mov dx, 0x1f0 in ax, dx mov [ebx], ax add ebx, 2 ;一次读取2-byte loop .read_data ret .check_disk: mov dx, 0x1f7 in al, dx and al, 0x88 cmp al, 0x08 jne .check_disk ret ;复制内存数据 ;ebx:原始数据地址 edx:目标内存地址 memcpy: mov ah, [ebx] mov [edx], ah add ebx, 1 add edx, 1 loop memcpy ret GDT_addr: dw 3 * 8 - 1 dd 0x00007e00
15.720721
38
0.626361
13ae00cdca54b1ddcf5f561350a3d76f93072fd3
7,456
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca_notsx.log_21829_70.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_0xca_notsx.log_21829_70.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_0xca_notsx.log_21829_70.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 %r13 push %r8 push %rax push %rcx push %rdi push %rsi lea addresses_normal_ht+0x424, %r13 clflush (%r13) sub $16440, %r8 mov $0x6162636465666768, %r10 movq %r10, (%r13) nop add %r12, %r12 lea addresses_WT_ht+0x1750c, %rsi lea addresses_UC_ht+0x1a68c, %rdi nop nop nop nop xor $34961, %r13 mov $19, %rcx rep movsb nop nop nop dec %r13 lea addresses_normal_ht+0x928c, %rsi lea addresses_D_ht+0x1e134, %rdi cmp %rax, %rax mov $5, %rcx rep movsw nop add $43639, %rsi lea addresses_D_ht+0x46d5, %rsi lea addresses_WC_ht+0x14e8c, %rdi nop nop nop xor %r10, %r10 mov $1, %rcx rep movsq nop nop nop dec %rsi lea addresses_UC_ht+0x1c318, %rax cmp $37213, %rcx movb (%rax), %r8b nop nop nop nop nop inc %rsi lea addresses_D_ht+0x365c, %r8 cmp %r13, %r13 mov $0x6162636465666768, %r12 movq %r12, (%r8) xor $47615, %r12 lea addresses_WT_ht+0x688c, %rsi lea addresses_UC_ht+0x1dc4c, %rdi nop nop nop nop and %r12, %r12 mov $103, %rcx rep movsb nop nop nop lfence lea addresses_A_ht+0x10a0c, %rax nop nop nop nop dec %r12 mov $0x6162636465666768, %r10 movq %r10, %xmm2 movups %xmm2, (%rax) nop nop nop nop add %rax, %rax lea addresses_normal_ht+0x11e04, %rcx nop nop nop nop add %r13, %r13 mov (%rcx), %r8w dec %r13 pop %rsi pop %rdi pop %rcx pop %rax pop %r8 pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r14 push %r15 push %r8 push %rbp push %rbx push %rcx push %rdi // Store lea addresses_D+0x12e8c, %rbp nop nop nop add $61105, %rbx mov $0x5152535455565758, %r8 movq %r8, %xmm7 vmovups %ymm7, (%rbp) nop nop nop nop nop add %rbp, %rbp // Store lea addresses_D+0x1a68c, %r15 clflush (%r15) nop nop inc %rcx movl $0x51525354, (%r15) nop nop cmp %rbp, %rbp // Store mov $0x314, %rdi nop nop nop nop nop sub %rbx, %rbx movl $0x51525354, (%rdi) nop nop cmp $9547, %rbx // Load lea addresses_D+0x4f98, %rcx clflush (%rcx) cmp %rbp, %rbp mov (%rcx), %r8 nop nop nop nop nop add $48091, %rdi // Store lea addresses_WT+0x12890, %rcx and $22926, %r8 movb $0x51, (%rcx) nop nop nop xor $51515, %r14 // Faulty Load lea addresses_D+0x1a68c, %r8 xor $13258, %rbp mov (%r8), %ecx lea oracles, %rdi and $0xff, %rcx shlq $12, %rcx mov (%rdi,%rcx,1), %rcx pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r15 pop %r14 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_D'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 6, 'same': False, 'type': 'addresses_D'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_D'}, 'OP': 'STOR'} {'dst': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 3, 'same': False, 'type': 'addresses_P'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 2, 'same': False, 'type': 'addresses_D'}, 'OP': 'LOAD'} {'dst': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 2, 'same': False, 'type': 'addresses_WT'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_D'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 1, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'src': {'congruent': 6, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'} {'src': {'congruent': 6, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'src': {'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'src': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 4, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'src': {'congruent': 9, 'same': True, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'54': 21829} 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 */
33.737557
2,999
0.654641
62c6a69894ff3dc5efebd4004538c86d94b2c719
568
asm
Assembly
oeis/199/A199211.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/199/A199211.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/199/A199211.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A199211: 11*4^n+1. ; 12,45,177,705,2817,11265,45057,180225,720897,2883585,11534337,46137345,184549377,738197505,2952790017,11811160065,47244640257,188978561025,755914244097,3023656976385,12094627905537,48378511622145,193514046488577,774056185954305,3096224743817217,12384898975268865,49539595901075457,198158383604301825,792633534417207297,3170534137668829185,12682136550675316737,50728546202701266945,202914184810805067777,811656739243220271105,3246626956972881084417,12986507827891524337665,51946031311566097350657 mov $1,4 pow $1,$0 mul $1,11 add $1,1 mov $0,$1
63.111111
497
0.875
4d08fe53b9da4d7c245775ef978bcecdadb55372
4,065
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_1293.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_1293.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_1293.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 %rbx push %rcx lea addresses_WT_ht+0xb867, %rcx clflush (%rcx) nop and %r13, %r13 mov $0x6162636465666768, %rbx movq %rbx, %xmm0 movups %xmm0, (%rcx) nop nop nop add %r11, %r11 pop %rcx pop %rbx pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r14 push %rbx push %rcx // Faulty Load lea addresses_US+0x2867, %r12 nop nop nop nop and %rcx, %rcx movb (%r12), %r10b lea oracles, %rbx and $0xff, %r10 shlq $12, %r10 mov (%rbx,%r10,1), %r10 pop %rcx pop %rbx pop %r14 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 10, 'size': 16, 'same': False, 'NT': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
63.515625
2,999
0.663469
8a05cdb3d96fdc8fcd8ecad73eb406944b1f4c5d
14,737
asm
Assembly
drivertc/HM_Mus.asm
bspruck/badapple
51186723e60a3d9f22a00afb8169f08fa21f87f4
[ "Apache-2.0" ]
null
null
null
drivertc/HM_Mus.asm
bspruck/badapple
51186723e60a3d9f22a00afb8169f08fa21f87f4
[ "Apache-2.0" ]
null
null
null
drivertc/HM_Mus.asm
bspruck/badapple
51186723e60a3d9f22a00afb8169f08fa21f87f4
[ "Apache-2.0" ]
null
null
null
;**************************************************************** ; HandyMusic- Music Script Decode Commands * ;**************************************************************** ;Command Descriptions- * ; * ;0: Set Priority * ; Format: [0][Priority] (2 bytes) * ; Sets the priority of the track relative to * ; the sound effects. Higher priorities win out * ; when competing for channels, the same * ; priorities should never be used between sound * ; effects and instruments. A priority of zero * ; stops the track from decoding. * ; * ;1: Set Panning * ; Format: [1][Panning] (2 bytes) * ; Sets the panning of the instruments * ; played in the current channel. * ; * ;2: Note On * ; Format: [2][Instrument][Base Frequency Lo] * ; [Base Frequency Hi][Delay Lo] (5 bytes) * ; Plays a given instrument with the specified * ; base frequency, then waits for the given * ; one byte delay * ; * ;3: Note Off * ; Format: [3][Delay Lo] (2 bytes) * ; Forces the currently playing instrument into * ; the note off portion of its script, then waits * ; for the specified one byte delay. * ; * ;4: Set Base Frequency Adjustment * ; Format: [4][Base Frequency Adjustment Lo] * ; [Base Frequency Adjustment Hi] * ; [Base Frequency Adjustment Dec] (4 bytes) * ; Sets the Base Frequency Adjustment value, * ; which can be used for pitch slides, etc. * ; This value is initialized to zero on the * ; start of a song. * ; * ;5: Set Loop Point * ; Format: [5][Number of Times to Loop] (2 bytes) * ; Defines the location in the script following * ; this command as a loop point which will be * ; returned to the specified number of times. If * ; a negative number is used, the loop will * ; continue infinitely. * ; * ;6: Loop * ; Format: [6] (1 byte) * ; If the loop is not infinite, the loop counter * ; is decremented and unless the counter has * ; reached zero, the script decoder will continue * ; decoding at the loop point. * ; Loops may be four-deep. * ; * ;7: Wait * ; Format: [7][Delay Lo][Delay Hi] (3 bytes) * ; Stops decoding for the specified two byte delay.* ; * ;8: Play Sample * ; Format: [8][Sample Number] (2 bytes) * ; Plays back the specified PCM sample in * ; channel 0. Note that commands continue to * ; process while the sample is played, so delays * ; have to be added manually. Only call this * ; command in Track 0. * ; * ;9: Pattern Call * ; Format: [9][Address Lo][Address Hi] (3 Bytes) * ; Jumps to the address of the music script given, * ; and sets up the current position in the music * ; script as the destination for the Pattern * ; Return command. * ; * ;A: Pattern Return * ; Format: [A] (1 byte) * ; Returns to the portion of the music script * ; which was being played before the last Pattern * ; Call command. * ; * ;B: Short Note On * ; Format: [B][Base Frequency Lo][Base Frequency Hi] * ; [Delay Lo] (4 bytes) * ; Plays the last used instrument with the * ; specifiedbase frequency, then waits for * ; the given one byte delay. * ;C: Pattern Break * ; Format: [C] (1 byte) * ; Returns all channels to the lowest return * ; address found in their pattern call stack. * ; This effectively returns all channels to the * ; main script (all of them- not just the * ; currently decoding channel). * ;**************************************************************** HandyMusic_Mus_CommandTableLo dc.b <HandyMusic_Mus_SetPri,<HandyMusic_Mus_SetPan dc.b <HandyMusic_Mus_NoteOn,<HandyMusic_Mus_NoteOff dc.b <HandyMusic_Mus_SetFreqAdj,<HandyMusic_Music_SetLoop dc.b <HandyMusic_Mus_Loop,<HandyMusic_Mus_Wait dc.b <HandyMusic_Mus_Sampl,<HandyMusic_Mus_Call dc.b <HandyMusic_Mus_Ret,<HandyMusic_Mus_SNoteOn dc.b <HandyMusic_Mus_Break HandyMusic_Mus_CommandTableHi dc.b >HandyMusic_Mus_SetPri,>HandyMusic_Mus_SetPan dc.b >HandyMusic_Mus_NoteOn,>HandyMusic_Mus_NoteOff dc.b >HandyMusic_Mus_SetFreqAdj,>HandyMusic_Music_SetLoop dc.b >HandyMusic_Mus_Loop,>HandyMusic_Mus_Wait dc.b >HandyMusic_Mus_Sampl,>HandyMusic_Mus_Call dc.b >HandyMusic_Mus_Ret,>HandyMusic_Mus_SNoteOn dc.b >HandyMusic_Mus_Break ;**************************************************************** ; HandyMusic_Mus_GetBytes:: * ; Gets the next byte of the SFX script, returns in A. * ;**************************************************************** HandyMusic_Mus_GetBytes:: LDA (HandyMusic_Music_DecodePointer) INC HandyMusic_Music_DecodePointer bne .norollover INC HandyMusic_Music_DecodePointer + 1 .norollover rts ;**************************************************************** ; HandyMusic_Mus_SetPri:: * ; Sets the priority of the music script to a new specified* ; value, takes effect immediately. A priority setting of zero * ; will effectively disable the channel. Don't change the * ; priority of a channel in between a note on and off. * ;**************************************************************** HandyMusic_Mus_SetPri:: jsr HandyMusic_Mus_GetBytes STA HandyMusic_Music_Priority,X rts ;**************************************************************** ; HandyMusic_Mus_SetPan:: * ; Sets the stereo panning of the current channel, taking * ; effect when the next note on command is reached. Format of * ; panning is LLLLRRRR where 0000 is silent and 1111 is max. * ;**************************************************************** HandyMusic_Mus_SetPan:: jsr HandyMusic_Mus_GetBytes STA HandyMusic_Channel_Panning,X rts ;**************************************************************** ; HandyMusic_Mus_NoteOn:: * ; HandyMusic_Mus_SNoteOn:: * ; Plays a note on a given instrument at the specified * ; base frequency with the previously given panning and * ; frequency adjustment values. Then waits on a one byte delay. * ;**************************************************************** HandyMusic_Mus_NoteOn:: jsr HandyMusic_Mus_GetBytes ; Get instrument # in A,Y STA HandyMusic_Music_LastInstrument,X HandyMusic_Mus_SNoteOn:: LDA HandyMusic_Music_LastInstrument,X TAY LDA HandyMusic_Music_Priority,X ; See if music is still in control of CMP HandyMusic_Channel_Priority,X ; the channel. If so, play the note. bcs .playnote00 jsr HandyMusic_Mus_GetBytes ; Otherwise skip the playing and just set up jsr HandyMusic_Mus_GetBytes ; the delay. bra .playnote10 .playnote00 STA HandyMusic_Channel_Priority,X ; Set channel priority to music priority STZ HandyMusic_Channel_LoopDepth,X ; Reset Loop Depth STZ HandyMusic_Channel_DecodeDelay,X ; And decode delay STZ HandyMusic_Channel_BaseFreqDec,X jsr HandyMusic_Mus_GetBytes STA HandyMusic_Channel_BaseFreqLo,X jsr HandyMusic_Mus_GetBytes STA HandyMusic_Channel_BaseFreqHi,X ; Copy passed frequency LDA HandyMusic_Music_BasePitAdjLo,X STA HandyMusic_Channel_BasePitAdjLo,X LDA HandyMusic_Music_BasePitAdjHi,X STA HandyMusic_Channel_BasePitAdjHi,X LDA HandyMusic_Music_BasePitAdjDec,X STA HandyMusic_Channel_BasePitAdjDec,X ; Then set up frequency adjustment value LDA (HandyMusic_Instrument_AddrTableLoLo),Y ; Copy script pointer to work pointer STA HandyMusic_Channel_DecodePointer LDA (HandyMusic_Instrument_AddrTableHiLo),Y STA HandyMusic_Channel_DecodePointer + 1 jsr HandyMusic_Enqueue_IS ; Shared NoteOff, SFB, Vol, Freq in HandyMusic_EnqueueSFX LDA HandyMusic_Channel_NoWriteBack,X ; Writing disabled? bne .playnote10 LDA HandyMusic_Channel_Panning,X STA Lynx_Audio_Atten_0,X ; Set up panning .playnote10 jsr HandyMusic_Mus_GetBytes STA HandyMusic_Music_DecodeDelayLo,X STZ HandyMusic_Music_DecodeDelayHi,X ; Set up one byte delay rts ; We're done ;**************************************************************** ; HandyMusic_Mus_NoteOff:: * ; Forces a note into the note off portion of its script * ; if it still has control of the channel, then waits for a * ; one byte delay. If the note has lost control of the channel * ; only the delay is instated. * ;**************************************************************** HandyMusic_Mus_NoteOff:: LDA HandyMusic_Music_Priority,X ; See if music is still in control of CMP HandyMusic_Channel_Priority,X ; the channel. If not, just instate delay. bne .instatedelay LDA HandyMusic_Channel_NoteOffPLo,X STA HandyMusic_Channel_DecodePointerLo,X LDA HandyMusic_Channel_NoteOffPHi,X STA HandyMusic_Channel_DecodePointerHi,X ; Relocate decode pointer to note off STZ HandyMusic_Channel_DecodeDelay,X ; Force decode to happen .instatedelay jsr HandyMusic_Mus_GetBytes STA HandyMusic_Music_DecodeDelayLo,X STZ HandyMusic_Music_DecodeDelayHi,X ; Set up one byte delay rts ;**************************************************************** ; HandyMusic_Mus_SetFreqAdj:: * ; Sets the frequency adjustment value for the current * ; music track. This is useful for pitch bends, etc. * ;**************************************************************** HandyMusic_Mus_SetFreqAdj:: jsr HandyMusic_Mus_GetBytes STA HandyMusic_Music_BasePitAdjLo,X jsr HandyMusic_Mus_GetBytes STA HandyMusic_Music_BasePitAdjHi,X jsr HandyMusic_Mus_GetBytes STA HandyMusic_Music_BasePitAdjDec,X rts ;**************************************************************** ; HandyMusic_Music_SetLoop:: * ; Sets the current script decoding address as a loop * ; point, increases the current loop depth, and copies the loop * ; count. * ;**************************************************************** HandyMusic_Music_SetLoop:: INC HandyMusic_Music_LoopDepth,X ; Increase loop depth clc LDA HandyMusic_Channel_LoopAddrDepth,X ; Calculate depth into loop arrays ADC HandyMusic_Music_LoopDepth,X TAY jsr HandyMusic_Mus_GetBytes ; Get the number of times to loop HandyMusic_Music_LoopPush STA HandyMusic_Music_LoopCount-1,Y ; Store in the loop count (offset by -1) LDA HandyMusic_Music_DecodePointer STA HandyMusic_Music_LoopAddrLo-1,Y LDA HandyMusic_Music_DecodePointer + 1 STA HandyMusic_Music_LoopAddrHi-1,Y ; Store the current decode pointer rts ; That's it. ;**************************************************************** ; HandyMusic_Mus_Loop:: * ; Checks to see if a loop condition is valid, and loops * ; if it is. * ;**************************************************************** HandyMusic_Mus_Loop:: clc LDA HandyMusic_Channel_LoopAddrDepth,X ; Calculate depth into loop arrays ADC HandyMusic_Music_LoopDepth,X TAY LDA HandyMusic_Music_LoopCount-1,Y ; If negative, this is an infinite loop bmi .loop DEC STA HandyMusic_Music_LoopCount-1,Y ; Decrement count, if zero, the loop fails beq .noloop .loop LDA HandyMusic_Music_LoopAddrLo-1,Y STA HandyMusic_Music_DecodePointer LDA HandyMusic_Music_LoopAddrHi-1,Y STA HandyMusic_Music_DecodePointer + 1 ; Pull old decode address rts .noloop DEC HandyMusic_Music_LoopDepth,X ; Decrement loop depth, we're done. rts ;**************************************************************** ; HandyMusic_Mus_Wait:: * ; Waits on a two byte delay. * ;**************************************************************** HandyMusic_Mus_Wait:: jsr HandyMusic_Mus_GetBytes STA HandyMusic_Music_DecodeDelayLo,X jsr HandyMusic_Mus_GetBytes STA HandyMusic_Music_DecodeDelayHi,X rts ;**************************************************************** ; HandyMusic_Mus_Sampl:: * ; Grabs Channel 0 and plays back the selected sample. * ; Note that commands continue to process while the sample is * ; played, so delays have to be added manually. * ;**************************************************************** HandyMusic_Mus_Sampl:: PHX jsr HandyMusic_Mus_GetBytes ; jsr PlayPCMSample PLX rts ;**************************************************************** ; HandyMusic_Mus_Call:: * ; "JSR" to the specified location in the sound script. * ; Note that this is logged as an infinite loop. * ;**************************************************************** HandyMusic_Mus_Call:: jsr HandyMusic_Mus_GetBytes ; Fetch Pattern Address Lo PHA jsr HandyMusic_Mus_GetBytes ; Fetch Pattern Address Hi PHA INC HandyMusic_Music_LoopDepth,X ; Increase loop depth clc LDA HandyMusic_Channel_LoopAddrDepth,X ; Calculate depth into loop arrays ADC HandyMusic_Music_LoopDepth,X TAY LDA#$80 jsr HandyMusic_Music_LoopPush PLA STA HandyMusic_Music_DecodePointer + 1 PLA STA HandyMusic_Music_DecodePointer ; Set decode pointer to pattern address rts ;**************************************************************** ; HandyMusic_Mus_Ret:: * ; "rts" from the current location in the sound script. * ;**************************************************************** HandyMusic_Mus_Ret:: jsr HandyMusic_Mus_Loop ; "Loop" to return address DEC HandyMusic_Music_LoopDepth,X ; But force loop depth to decrement rts ;**************************************************************** ; HandyMusic_Mus_Break:: * ; Pattern break, returning all channels to the main * ; track (lowest CALL found, based upon $80 tags, if any). * ;**************************************************************** HandyMusic_Mus_Break:: jsr HandyMusic_BackupDecodePointer ; Temporary decode pointer will get trashed. PHX LDX#3 .checkNextTrack clc LDA HandyMusic_Channel_LoopAddrDepth,X TAY ADC HandyMusic_Music_LoopDepth,X STA .checkLoopPoint + 1 .checkLoopPoint CPY#0 ; Comparison value modified by STA above to stack top beq .trackDone LDA HandyMusic_Music_LoopCount,Y INY CMP#$80 ; Any loop count of $80 is a special tag for calls beq .foundBase ; So if we found one from the bottom up, that's our base call bra .checkLoopPoint ; Otherwise, check the next entry in the stack .foundBase TYA sec SBC HandyMusic_Channel_LoopAddrDepth,X STA HandyMusic_Music_LoopDepth,X jsr HandyMusic_Mus_Ret ; Force a RET on the lowest CALL STZ HandyMusic_Music_DecodeDelayLo,X STZ HandyMusic_Music_DecodeDelayHi,X ; Also force the track to proceed immediately. jsr HandyMusic_BackupDecodePointer ; Then back up the decode pointer .trackDone DEX bpl .checkNextTrack PLX LDA HandyMusic_Music_DecodePointerLo,X STA HandyMusic_Music_DecodePointer LDA HandyMusic_Music_DecodePointerHi,X STA HandyMusic_Music_DecodePointer + 1 ; Restore the temporary decode pointer rts * * EOF *
39.615591
85
0.640361
4b344a1da8a4b21ad9911fb141792fd959dad80f
819
asm
Assembly
programs/oeis/271/A271994.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/271/A271994.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/271/A271994.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A271994: The chalcogen sequence (a(n) = A018227(n)-2). ; 8,16,34,52,84,116,166,216,288,360,458,556,684,812,974,1136,1336,1536,1778,2020,2308,2596,2934,3272,3664,4056,4506,4956,5468,5980,6558,7136,7784,8432,9154,9876,10676,11476,12358,13240,14208,15176,16234,17292,18444,19596,20846,22096,23448,24800,26258,27716,29284,30852,32534,34216,36016,37816,39738,41660,43708,45756,47934,50112,52424,54736,57186,59636,62228,64820,67558,70296,73184,76072,79114,82156,85356,88556,91918,95280,98808,102336,106034,109732,113604,117476,121526,125576,129808,134040,138458,142876,147484,152092,156894,161696,166696,171696,176898,182100 mov $2,$0 add $0,1 seq $0,3451 ; Number of nonequivalent dissections of an n-gon into 3 polygons by nonintersecting diagonals up to rotation. mul $0,2 sub $0,2 add $0,$2 div $0,2 add $0,1 mul $0,2
63
563
0.78022
e105a2a40363b90d30006e9ca711fdb1ce88faf4
2,789
asm
Assembly
data/pokemon/egg_moves_nihon.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
data/pokemon/egg_moves_nihon.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
data/pokemon/egg_moves_nihon.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
SECTION "Egg Moves 5", ROMX EggMovePointers5:: dw FlambearEggMoves dw NoEggMoves5 dw NoEggMoves5 dw CruizeEggMoves dw NoEggMoves5 dw NoEggMoves5 dw KotoraEggMoves dw NoEggMoves5 dw BomshealEggMoves dw CorasunEggMoves dw NoEggMoves5 dw NoEggMoves5 dw BiteelEggMoves dw NoEggMoves5 dw RinringEggMoves dw NoEggMoves5 dw BlottleEggMoves dw NoEggMoves5 dw KurstrawEggMoves dw NoEggMoves5 dw WolfanEggMoves dw NoEggMoves5 dw CheepEggMoves dw NoEggMoves5 dw SnobitEggMoves dw NoEggMoves5 dw NoEggMoves5 dw NoEggMoves5 dw ArskeedEggMoves dw NoEggMoves5 dw PeticornEggMoves dw GupgoldEggMoves dw TritalesEggMoves dw GrimbyEggMoves dw ParamiteEggMoves dw NyanyaEggMoves dw PuddipupEggMoves dw ChixEggMoves dw NoEggMoves5 dw TangtripEggMoves dw NoEggMoves5 dw NoEggMoves5 dw TurbanEggMoves dw NoEggMoves5 dw NoEggMoves5 dw NoEggMoves5 dw NoEggMoves5 dw NoEggMoves5 dw NoEggMoves5 FlambearEggMoves: dw FURY_SWIPES dw QUICK_ATTACK dw REVERSAL dw THRASH dw FORESIGHT dw FAINT_ATTACK dw SUBMISSION dw -1 ; end CruizeEggMoves: dw ICY_WIND dw BLIZZARD dw HYDRO_PUMP dw ANCIENTPOWER dw RAZOR_WIND dw ROCK_SLIDE dw -1 ; end KotoraEggMoves: dw THUNDERBOLT dw TAKE_DOWN dw SCREECH dw -1 ; end BomshealEggMoves: dw FLAMETHROWER dw FIRE_SPIN dw BUBBLEBEAM dw FIRE_BLAST dw SLAM dw THRASH dw -1 ; end CorasunEggMoves: dw RAIN_DANCE dw REVERSAL dw SWAGGER dw -1 ; end BiteelEggMoves: dw WATER_GUN dw -1 ; end RinringEggMoves: db SPITE db CHARM db HYPNOSIS db AMNESIA db -1 ; end BlottleEggMoves: db TOXIC db WRAP db PECK db ACID_ARMOR db AURORA_BEAM db -1 ; end KurstrawEggMoves: db SCREECH db DESTINY_BOND db -1 ; end WolfanEggMoves: db PURSUIT db OUTRAGE db MIST db DYNAMICPUNCH db -1 ; end CheepEggMoves: db PECK db WATER_GUN db REVERSAL SnobitEggMoves: db TACKLE ArskeedEggMoves: db TACKLE PeticornEggMoves: db FLAME_WHEEL db THRASH db DOUBLE_KICK db HYPNOSIS db CHARM db QUICK_ATTACK db -1 ; end GupgoldEggMoves: db PSYBEAM db HAZE db HYDRO_PUMP db -1 ; end TritalesEggMoves: db FAINT_ATTACK db HYPNOSIS db FLAIL db SPITE db DISABLE db -1 ; end GrimbyEggMoves: db HAZE db MEAN_LOOK db LICK db -1 ; end ParamiteEggMoves: db FALSE_SWIPE db SCREECH db COUNTER db PSYBEAM db FLAIL db SWEET_SCENT NyanyaEggMoves: db SPITE db CHARM db HYPNOSIS db AMNESIA db -1 ; end PuddipupEggMoves: db BODY_SLAM db SAFEGUARD db CRUNCH db THRASH db FIRE_SPIN db -1 ; end ChixEggMoves: dw QUICK_ATTACK dw SUPERSONIC dw HAZE dw FAINT_ATTACK dw FLAIL dw -1 ; end TangtripEggMoves: db FLAIL db CONFUSION db MEGA_DRAIN db REFLECT db AMNESIA db -1 ; end TurbanEggMoves: db CRUNCH db FLAIL db SWIFT db -1 ; end NoEggMoves5: dw -1 ; end
13.15566
27
0.763356
a88c15ca9ce44821e6b4ffdc99970fc0907980ac
183,437
asm
Assembly
patches/arkanoid/disasm/Arkanoid_block_2.asm
fcatrin/a8tools
2792cfbabc9e3fd369550b810f631d62e03c8b90
[ "MIT" ]
3
2020-07-02T15:11:23.000Z
2020-07-03T19:59:08.000Z
patches/arkanoid/disasm/Arkanoid_block_2.asm
fcatrin/a8tools
2792cfbabc9e3fd369550b810f631d62e03c8b90
[ "MIT" ]
null
null
null
patches/arkanoid/disasm/Arkanoid_block_2.asm
fcatrin/a8tools
2792cfbabc9e3fd369550b810f631d62e03c8b90
[ "MIT" ]
null
null
null
; BLOCK 2 Arkanoid.xex org $4B00 .byte $09 lda DST cmp #$4E bcs L_4B0A jmp L_4B1A L_4B0A inc SRC+1 lda DST sec sbc #$28 sta DST bcs L_4AFB dec DST+1 jmp L_4AFB L_4B1A lda DST sec sbc #$2F sta DST lda (MASK_ADDR),y and #$01 bne L_4B29 dec DST L_4B29 lda DST and #$03 clc adc #$38 sta L_4A01 cmp #$3B bne L_4B3E lda #$38 sta FPTR2+1 jmp L_4B43 L_4B3E clc adc #$01 sta FPTR2+1 L_4B43 lda SRC+1 clc adc #$01 and #$03 tay L_4B4B cpy #$00 beq L_4B63 lda L_4A01 clc adc #$04 sta L_4A01 lda FPTR2+1 clc adc #$04 sta FPTR2+1 dey jmp L_4B4B L_4B63 ldy L_4A01+1 jsr L_4E4C lda (MASK_ADDR),y cmp #$01 beq L_4B7F cmp #$02 beq L_4B7F cmp #$9D beq L_4B7F cmp #$9E beq L_4B7F jsr L_3923 rts L_4B7F lda MASK_ADDR+1 sta DST+1 lda MASK_ADDR sta DST tya clc adc DST sta DST bcc L_4B91 inc DST+1 L_4B91 lda (MASK_ADDR),y and #$01 bne L_4B9F lda DST bne L_4B9D dec DST+1 L_4B9D dec DST L_4B9F stx SHIP_ADDR ldy #$00 lda (DST),y sta SRC ldx #$00 ldy #$00 L_4BAB lda L_4C40,y clc adc L_4C41,y bne L_4BD2 lda DST sta L_4C40,y lda DST+1 sta L_4C41,y lda L_3FFD+3 lsr lsr lsr clc adc #$02 sta L_4C42,y lda SRC jsr L_2A53 jmp L_4BDE L_4BD2 iny iny iny iny inx cpx #$1E bne L_4BAB jmp L_4BF1 L_4BDE ldy #$00 lda (DST),y and #$80 ora #$09 sta (DST),y iny lda (DST),y and #$80 ora #$0A sta (DST),y L_4BF1 ldx SHIP_ADDR ldy L_4A01+1 rts .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $3C, $00 L_4CD7 ldx #$00 ldy L_4CD5 cpy #$3C bmi L_4CE2 ldy #$00 L_4CE2 lda L_4C41,y beq L_4D0D sta EEXP lda L_4C40,y sta FRX sty L_4CD6 ldy #$00 lda (FRX),y cmp #$11 beq L_4D1A cmp #$91 beq L_4D1A clc adc #$02 sta (FRX),y iny lda (FRX),y clc adc #$02 sta (FRX),y ldy L_4CD6 L_4D0D iny iny iny iny inx cpx #$05 bne L_4CE2 sty L_4CD5 rts L_4D1A ldy L_4CD6 lda L_4C43,y sta FR1 ldy #$00 sta (FRX),y iny clc adc #$01 sta (FRX),y ldy L_4CD6 lda #$00 sta L_4C40,y sta L_4C41,y sta L_4C42,y sta L_4C43,y lda FR1 cmp #$9D beq L_4D0D cmp #$9E beq L_4D0D jmp L_4D91 L_4D4A ldx #$30 ldy #$9B stx FRX sty EEXP ldy #$6A stx NSIGN sty ESIGN ldx #$00 L_4D5A ldy #$00 L_4D5C lda (FRX),y cmp #$01 beq L_4D6B cmp #$9D beq L_4D6B lda #$00 jmp L_4D74 L_4D6B lda L_3FFD+3 lsr lsr lsr clc adc #$02 L_4D74 sta (NSIGN),y iny iny cpy #$1A bne L_4D5C lda FRX clc adc #$28 sta FRX sta NSIGN bcc L_4D8B inc EEXP inc ESIGN L_4D8B inx cpx #$12 bne L_4D5A rts L_4D91 lda EEXP sec sbc #$31 sta FR1+1 lda FRX sta FR1 ldy #$00 lda (FR1),y sec sbc #$01 sta (FR1),y cmp #$01 beq L_4DAF ldy L_4CD6 jmp L_4D0D L_4DAF lda #$03 sta (FRX),y iny lda #$04 sta (FRX),y ldy L_4CD6 jmp L_4D0D .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $07, $69, $6A, $00, $00, $00 .byte $7C, $FE, $FE, $FE, $7C, $00, $00, $00 .byte $06, $05, $06, $05, $06, $00, $00, $00 .byte $07, $00, $00, $07, $04, $07, $01, $00 .byte $07, $00, $00, $00, $07, $04, $04, $00 .byte $07, $04, $06, $04, $07, $00, $00, $00 .byte $00, $06, $05, $05, $05, $06, $00, $00 .byte $04, $04, $04, $04, $07, $00, $00, $00 .byte $04, $04, $00, $00, $07, $05, $07, $E6 .byte $F4, $B2, $76, $76, $34 php L_4E4C lda L_4E04 bne L_4E7E lda (MASK_ADDR),y cmp #$01 beq L_4E7E cmp #$02 beq L_4E7E cmp #$9D beq L_4E7E cmp #$9E beq L_4E7E cmp #$09 beq L_4E7E bmi L_4E76 cmp #$12 beq L_4E7E bpl L_4E76 jmp L_4E7E L_4E72 asl WARMST L_4E74 php L_4E75 brk L_4E76 lda L_4E00 beq L_4E7F dec L_4E00 L_4E7E rts L_4E7F stx L_4E73 sty L_4E74 lda SRC+1 clc asl asl clc adc #$07 tay lda DST clc asl asl clc adc #$4C sta HPOSP3 clc adc #$01 sta HPOSM1 sta L_4E01 clc adc #$02 sta HPOSM0 sty L_4E02 ldx #$00 L_4EAD lda L_4E05,x sta L_6F7A+6,y iny inx cpx #$07 bne L_4EAD lda #$01 sta GPRIOR L_4EBE lda VCOUNT and #$07 cmp #$07 beq L_4EBE sta L_7FFA+4 clc asl asl asl tax clc adc #$06 sta L_4E72 ldy L_4E02 L_4ED8 lda L_4E0D,x sta L_6D7A+6,y iny inx cpx L_4E72 bne L_4ED8 ldx L_7FFA+4 lda L_4E45,x sta PCOLR3 lda #$01 sta L_4E04 ldx L_4E73 ldy L_4E74 rts L_4EFA stx L_4E73 sty L_4E74 lda #$0D sta L_4F5C sta L_4F79 sta L_4F80 sta L_4F84 sta L_4F92 lda L_4FFE+4 nop nop lda L_4E04 beq L_4F99 inc L_4E75 lda L_4E75 cmp #$02 bcc L_4F99 lda #$00 sta L_4E75 lda L_7FFA+4 clc asl asl asl clc adc L_4F5C sta L_4F5C sta L_4F79 sta L_4F80 sta L_4F84 sta L_4F92 ldx #$00 ldy L_4E02 cpy #$6A bcs L_4F9A iny sty L_4E02 L_4F51 lda L_4E05,x sta L_6F7A+6,y cpx #$06 bcs L_4F61 lda L_4E0D,x sta L_6D7A+6,y L_4F61 iny inx cpx #$09 bne L_4F51 inc L_4FBE lda L_4FBE cmp #$03 bcc L_4F99 lda #$00 sta L_4FBE ldy #$07 lda L_4E0D,y sta L_4E04 dey L_4F7F lda L_4E0D,y iny sta L_4E0D,y dey dey cpy #$00 bne L_4F7F ldy #$01 lda L_4E04 sta L_4E0D,y lda #$01 sta L_4E04 L_4F99 rts L_4F9A ldx #$00 stx L_4E04 ldy L_4E02 dey dey L_4FA4 lda #$00 sta L_6D7A+6,y sta L_6F7A+6,y iny inx cpx #$0C bne L_4FA4 lda VCOUNT and #$07 clc adc #$03 sta L_4E00 rts L_4FBE .byte $01, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 L_4FFE .byte $00, $00, $01, $EA, $00 lda L_4E04 beq L_5015 lda L_4E01 sec sbc #$2C cmp L_4405+4 beq L_501B bpl L_501B L_5015 lda L_4FFE+4 bne L_507F L_501A rts L_501B sec sbc L_4405+4 cmp L_4A01+2 beq L_5029 bmi L_5029 jmp L_5015 L_5029 sta L_4FFE+2 lda L_4E02 cmp #$63 bmi L_5015 cmp #$66 bpl L_5015 lda L_4A01+2 cmp #$1E beq L_5047 lda L_4FFE+2 cmp #$08 beq L_5047 bmi L_5015 L_5047 lda L_4FFE+2 cmp L_4A01+2 beq L_5054 bmi L_5054 jmp L_5015 L_5054 ldy L_4E02 dey dey ldx #$00 txa L_505C sta L_6D7A+6,y sta L_6F7A+6,y inx iny cpx #$0C bne L_505C lda #$01 sta L_4FFE+4 jmp L_5798 L_5070 .byte $00, $00, $00, $00, $00, $01, $00, $00 L_5078 .byte $00, $00, $00, $00, $00, $00, $00 L_507F lda L_4FFE+4 cmp #$02 beq L_50C1 lda L_5078+5 bne L_5093 lda L_4405+6 beq L_5093 jmp L_523D L_5093 lda L_4E03 beq L_50AF cmp #$01 beq L_50EB cmp #$02 beq L_5104 cmp #$03 beq L_50B8 cmp #$04 beq L_50BB cmp #$05 beq L_50BE jmp L_2835 L_50AF jmp L_8F2C jmp L_50EB jmp L_5104 L_50B8 jmp L_51F0 L_50BB jmp L_517D L_50BE jmp L_521B L_50C1 lda L_4E03 beq L_50DB cmp #$01 beq L_50DE cmp #$02 beq L_5126 cmp #$03 beq L_50E4 cmp #$04 beq L_50E5 cmp #$05 beq L_50E8 rts L_50DB jmp L_501A L_50DE jmp L_5154 jmp L_5126 L_50E4 rts L_50E5 jmp L_55E6 L_50E8 jmp L_5298 L_50EB lda #$0F sta L_46F0+3 sta L_46F0+4 sta L_46F0+4 lda #$00 sta L_5070 sta L_5070+1 lda #$02 sta L_4FFE+4 rts L_5104 lda #$B4 sta L_5070+1 lda L_5070+3 beq L_5153 lda #$01 sta L_5070+2 jsr L_469E sec sbc #$30 sec sbc L_4405+4 sta L_5070+4 lda #$02 sta L_4FFE+4 rts L_5126 lda L_5070+3 beq L_5153 ldx #$97 lda L_4607+4 cmp #$63 beq L_5136 ldx #$BF L_5136 stx SHIP_ADDR lda L_4405+4 clc adc #$30 clc adc L_5070+4 sta HPOSP0 sta L_4607+1 sec sbc #$30 lsr lsr clc adc SHIP_ADDR sta L_46C0 L_5153 rts L_5154 lda L_5070 cmp #$FF bne L_515E inc L_5070+1 L_515E inc L_5070 lda L_5070+1 cmp #$05 beq L_5169 rts L_5169 lda #$00 sta L_4FFE+4 nop nop nop lda #$04 sta L_46F0+3 sta L_46F0+4 sta L_46F0+4 rts L_517D lda #$02 sta L_4FFE+4 lda L_46C0 sta L_46C0+2 sta L_46C0+4 lda L_46C0+1 sta L_46C0+3 sta L_46C0+5 lda L_4607+1 sta L_4607+2 sta L_4607+3 lda L_4607+4 sta L_4607+5 sta L_4607+6 lda #$00 sta L_46D8+5 sta L_46D8+6 sta L_46D8+2 sta L_46D8+3 lda VCOUNT and #$07 sta L_46C8+2 nop nop nop lda VCOUNT and #$07 sta L_46C8+3 ldx #$00 lda L_46C0+6 eor #$0C sta L_46C0+7 lda L_46C0+6 eor #$03 sta L_46C8 lda #$01 sta L_5070+5 sta L_5070+6 sta L_5070+7 lda #$00 sta L_46F0+3 sta L_46F0+4 sta L_46F0+5 rts L_51F0 lda #$01 jsr L_284B lda L_5078 cmp #$04 bcs L_5200 inc L_5078 rts L_5200 lda #$00 sta L_5078 lda L_4405+6 cmp #$02 beq L_5210 inc L_4405+6 rts L_5210 lda #$02 sta L_4FFE+4 lda #$1E sta L_4A01+2 rts L_521B lda #$02 sta L_4FFE+4 lda #$03 sta L_4405+6 lda #$00 sta L_5078+1 sta L_5078+2 sta L_5078+3 sta L_5078+4 sta L_5270+7 sta L_5278 rts L_523A jmp L_5700 L_523D jmp L_5777 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 L_5270 .byte $84, $84, $84, $00, $00, $00, $00, $00 L_5278 .byte $00, $00, $01, $00, $00, $00, $00, $00 L_5280 .byte $01, $01 L_5282 lda L_4517 bne L_5292 ldx L_5278+2 beq L_5292 lda #$00 sta L_5278+2 rts L_5292 sta L_5278+2 lda #$01 rts L_5298 jsr L_5282 bne L_52EF lda L_5270+7 clc adc L_5278 beq L_52AD cmp #$01 beq L_52AD jmp L_52EF L_52AD ldx #$00 L_52AF lda L_5078+1,x bne L_52EA lda L_4405+4 clc adc #$3C sta L_5078+1,x jsr L_281B lda #$0F sta PCOLR1,x lda #$64 sta L_5078+3,x lda #$01 sta L_5270+7,x lda #$9E sta L_5278+6,x lda L_4405+4 clc adc #$08 lsr lsr clc adc #$99 sta L_5278+3,x bcc L_52EF inc L_5278+6,x jmp L_52EF L_52EA inx cpx #$02 bne L_52AF L_52EF ldy #$80 lda #$6E ldx L_5538 cpx #$01 bne L_52FE ldy #$00 lda #$6F L_52FE sty DST sta DST+1 lda L_5270+7,x beq L_5349 cmp #$02 bne L_531D jsr L_55A7 stx SHIP_ADDR lda L_5560,x cmp #$04 bne L_531A jsr L_5493 L_531A jmp L_5349 L_531D lda L_5078+3,x tay dey dey dey dey tya sta L_5078+3,x stx SHIP_ADDR ldx #$00 L_532D lda L_5270,x sta (DST),y inx iny cpx #$07 bne L_532D ldx SHIP_ADDR jsr L_5352 ldx SHIP_ADDR lda MASK_ADDR sta L_5278+3,x lda MASK_ADDR+1 sta L_5278+6,x L_5349 lda L_5538 eor #$01 sta L_5538 rts L_5352 lda L_5278+3,x sta MASK_ADDR lda L_5278+6,x sta MASK_ADDR+1 lda L_5078+3,x and #$03 bne L_536E lda MASK_ADDR sec sbc #$28 sta MASK_ADDR bcs L_536E dec MASK_ADDR+1 L_536E ldy #$00 sty L_5280+1 L_5373 sty SHIP_ADDR+1 lda (MASK_ADDR),y bne L_539F L_5379 ldy SHIP_ADDR+1 iny cpy #$02 bne L_5373 lda L_5280+1 beq L_5394 ldx SHIP_ADDR lda #$02 sta L_5270+7,x lda #$00 sta L_5560,x sta L_5560+2,x L_5394 rts L_5395 ldx SHIP_ADDR lda #$01 sta L_5280+1 jmp L_5379 L_539F cmp #$37 bmi L_53AA cmp #$60 bpl L_53AA jmp L_5379 L_53AA cmp #$9D bne L_53B1 jmp L_54B7 L_53B1 cmp #$9E bne L_53B8 jmp L_54B7 L_53B8 cmp #$01 bne L_53BF jmp L_54B7 L_53BF cmp #$02 bne L_53C6 jmp L_54B7 L_53C6 cmp #$83 beq L_5406 cmp #$84 beq L_5406 and #$7F cmp #$13 bmi L_53DB cmp #$19 bpl L_53DB L_53D8 jmp L_5395 L_53DB cmp #$32 bmi L_53E6 cmp #$39 bpl L_53E6 jmp L_53D8 L_53E6 cmp #$60 bmi L_53F4 cmp #$7A bpl L_53F4 jsr L_3CFC+7 jmp L_5493 L_53F4 cmp #$08 beq L_5406 bcc L_5406 cmp #$13 beq L_5395 bcs L_5403 jmp L_5395 L_5403 jmp L_5379 L_5406 lda L_5078+1,x and #$FC lsr lsr clc adc #$01 and #$03 sta L_5280 tya clc adc L_5280 sta L_5280 lda MASK_ADDR sta SRC lda MASK_ADDR+1 sta SRC+1 ldy SHIP_ADDR+1 lda (SRC),y and #$01 bne L_5438 dec L_5280 lda SRC bne L_5436 dec SRC+1 L_5436 dec SRC L_5438 lda L_5280 and #$03 clc adc #$38 sta RAMLO lda RAMLO cmp #$3B bne L_544F lda #$38 sta RAMLO+1 jmp L_5454 L_544F clc adc #$01 sta RAMLO+1 L_5454 lda L_5078+3,x and #$FC lsr lsr sec sbc #$02 and #$03 clc asl asl clc adc RAMLO sta RAMLO lda L_5078+3,x and #$FC lsr lsr sec sbc #$02 and #$03 clc asl asl clc adc RAMLO+1 sta RAMLO+1 ldy SHIP_ADDR+1 lda RAMLO sta (SRC),y iny lda RAMLO+1 sta (SRC),y jsr L_29D9 nop lda #$01 sta L_5280+1 jmp L_5532 L_5493 lda #$00 sta L_5270+7,x sta L_5278+3,x sta L_5278+6,x lda L_5078+3,x tay ldx #$00 lda #$00 L_54A6 sta (DST),y iny inx cpx #$06 bne L_54A6 ldx SHIP_ADDR sta L_5078+1,x sta L_5078+3,x rts L_54B7 lda MASK_ADDR sta RAMLO lda MASK_ADDR+1 sta RAMLO+1 lda #$01 sta L_5280+1 lda (MASK_ADDR),y and #$01 bne L_54D2 lda RAMLO bne L_54D0 dec RAMLO+1 L_54D0 dec RAMLO L_54D2 tya clc adc RAMLO sta RAMLO bcc L_54DC inc RAMLO+1 L_54DC ldy #$00 lda (RAMLO),y sta SRC ldx #$00 ldy #$00 L_54E6 lda L_4C41,y bne L_5522 lda RAMLO sta L_4C40,y lda RAMLO+1 sta L_4C41,y lda L_3FFD+3 lsr lsr lsr clc adc #$02 sta L_4C42,y lda SRC sta L_4C43,y lda #$01 sta L_5280+1 ldy #$00 lda (RAMLO),y and #$80 ora #$09 sta (RAMLO),y iny clc adc #$01 sta (RAMLO),y ldx SHIP_ADDR ldy SHIP_ADDR+1 jmp L_5379 L_5522 iny iny iny iny inx cpx #$1E bne L_54E6 ldx SHIP_ADDR ldy SHIP_ADDR+1 jmp L_5379 L_5532 jsr L_3991 jmp L_5379 L_5538 .byte $01, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 L_5560 .byte $04, $04, $00, $00, $01, $00, $36, $94 .byte $1C, $AE, $01, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $A8, $58, $A2, $00, $01, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $80, $50, $A8, $02, $00, $80, $01, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $40, $00, $00, $00, $01, $00, $80 .byte $04, $00, $00, $00, $40, $00, $00 L_55A7 stx L_5560+4 sty L_5560+5 lda L_5560+2,x cmp #$01 bcs L_55B8 inc L_5560+2,x rts L_55B8 lda #$00 sta L_5560+2,x lda L_5078+3,x tay lda L_5560,x clc asl asl asl asl inc L_5560,x tax clc adc #$06 sta L_5560+6 L_55D3 lda L_5560+7,x sta (DST),y iny inx cpx L_5560+6 bne L_55D3 ldx L_5560+4 ldy L_5560+5 rts L_55E6 ldx #$00 lda #$00 sta DST lda #$6E sta DST+1 L_55F0 lda #$00 ldy #$00 L_55F4 clc adc L_5070+5,y iny cpy #$03 bne L_55F4 sta SRC+1 lda L_4607+4,x cmp #$68 bne L_5628 lda SRC+1 cmp #$01 beq L_5639 lda #$00 sta L_5070+5,x sta HPOSP0,x lda L_4607+4,x tay stx SRC ldx #$00 L_561C lda #$00 sta (DST),y iny inx cpx #$06 bne L_561C ldx SRC L_5628 lda DST clc adc #$80 sta DST bcc L_5633 inc DST+1 L_5633 inx cpx #$03 bne L_55F0 rts L_5639 ldx #$00 L_563B lda L_5070+5,x bne L_5646 inx cpx #$03 bne L_563B rts L_5646 lda #$00 sta L_5070+5,x sta L_4FFE+4 nop nop nop lda #$01 sta L_5070+5 lda L_4607+4,x sta L_4607+4 lda L_4607+1,x sta L_4607+1 lda L_46C0+6,x sta L_46C0+6 lda L_46C8+1,x sta L_46C8+1 lda L_46D8+1,x sta L_46D8+1 lda L_46D8+4,x sta L_46D8+4 lda L_46F0+6,x sta L_46F0+6 lda L_46F8+1,x sta L_46F8+1 txa clc asl tay lda L_46C0,y sta L_46C0 iny lda L_46C0,y sta L_46C0+1 lda #$00 sta DST lda #$6E sta DST+1 txa tay L_56A1 cpy #$00 beq L_56B4 lda DST clc adc #$80 sta DST bcc L_56B0 inc DST+1 L_56B0 dey jmp L_56A1 L_56B4 lda L_4607+4,y tay ldx #$00 L_56BA lda #$00 sta (DST),y iny inx cpx #$06 bne L_56BA lda #$04 sta L_46F0+3 sta L_46F0+4 sta L_46F0+5 rts .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 L_5700 nop nop nop jsr L_2CB0 lda #$00 sta L_4E04 lda VCOUNT and #$07 clc adc #$02 sta L_4E00 ldx #$00 txa jsr L_2C83 nop nop nop nop nop nop nop nop nop sta HPOSP1 sta HPOSP2 sta HPOSP3 jsr L_2CB0 nop nop nop nop nop nop nop nop jsr L_5639 lda #$00 sta L_46F0 sta L_46F0+1 sta L_46F0+2 sta L_5078+5 sta L_5078+6 sta L_5070+6 sta L_5070+7 lda #$01 sta L_5070+5 sta L_4FFE+4 lda #$1A sta L_4A01+2 jsr L_5FC0 ldx #$00 ldy L_4607+4 L_5768 lda L_45FF+1,x sta L_6DFA+6,y iny inx cpx #$05 bne L_5768 jmp L_5015 L_5777 lda L_4405+6 cmp #$03 bne L_5784 lda #$00 sta L_4405+6 rts L_5784 lda L_5078+6 cmp #$04 beq L_578F inc L_5078+6 rts L_578F lda #$00 sta L_5078+6 dec L_4405+6 rts L_5798 ldx #$03 jsr L_3BB0+4 jmp L_523A .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 L_57B0 .byte $00, $00, $00, $00, $00, $00, $00, $00 L_57B8 .byte $00, $00, $00, $00, $02, $02, $02, $02 L_57C0 .byte $10, $18, $02, $00, $1B, $F3, $C3, $35 .byte $C3, $F3, $36, $C3, $FF, $37, $03, $00 .byte $44, $00, $0F, $45, $40, $44, $46, $03 .byte $00, $44, $00, $0F, $45, $42, $46, $46 L_57E0 .byte $00, $10, $11, $00, $00, $00, $00, $00 L_57E8 .byte $00, $02, $18, $03 L_57EC lda #$00 sta L_57E0+4 lda L_5C64+5,x cmp #$06 bne L_57FE jsr L_3D2F jmp L_5822 L_57FE lda L_57B0,x and #$07 clc asl asl asl asl asl sta L_57E0+3 lda L_57B0,x and #$07 clc asl asl asl asl clc adc L_57E0+3 sta L_57E0+3 bcc L_5822 inc L_57E0+4 L_5822 lda #$00 sta MASK_ADDR lda #$60 sta MASK_ADDR+1 lda L_57B0+3,x and #$07 sta L_57E0 clc adc #$10 sta L_57E0+1 lda L_57B8+4,x stx L_57B8+7 tax L_583F cpx #$00 beq L_5854 inc MASK_ADDR+1 lda MASK_ADDR clc adc #$80 sta MASK_ADDR bcc L_5850 inc MASK_ADDR+1 L_5850 dex jmp L_583F L_5854 ldx L_57B8+7 lda MASK_ADDR+1 clc adc L_57E0+4 sta MASK_ADDR+1 lda MASK_ADDR clc adc L_57E0+3 sta MASK_ADDR bcc DRAW_ENEMY inc MASK_ADDR+1 DRAW_ENEMY txa clc asl asl asl asl asl asl sta SHIP_ADDR lda #$8B sta SHIP_ADDR+1 txa clc nop asl asl asl clc adc SHIP_ADDR clc adc #$00 sta SHIP_ADDR bcc L_588B inc SHIP_ADDR+1 L_588B stx L_57B8+7 sty L_57C0 txa clc asl asl asl clc adc L_57B8+7 tax clc adc #$09 sta L_57C0+4 L_58A1 ldy #$00 sty L_57E0+2 sty RAMLO lda MASK_ADDR sta DST lda MASK_ADDR+1 clc adc #$32 sta DST+1 L_58B3 lda L_57C0+5,x and #$7F and #$E0 lsr lsr lsr lsr lsr clc adc #$88 sta SRC+1 lda L_57C0+5,x and #$7F and #$1F asl asl asl sta SRC L_58D0 lda L_57E0+2 cmp L_57E0 beq L_58F0 bcs L_58EB L_58DA sty L_57C0 tya and #$07 tay lda (SRC),y ldy L_57C0 sta (SHIP_ADDR),y jmp L_5912 L_58EB cmp L_57E0+1 bcs L_58DA L_58F0 sty L_57C0 tya and #$07 tay lda (SRC),y ldy #$00 and (DST),y ora (MASK_ADDR),y ldy L_57C0 sta (SHIP_ADDR),y lda MASK_ADDR cmp #$FF bne L_590E inc MASK_ADDR+1 inc DST+1 L_590E inc MASK_ADDR inc DST L_5912 iny inc L_57E0+2 cpy #$18 bne L_591E inx jmp L_5927 L_591E tya and #$07 bne L_58D0 inx jmp L_58B3 L_5927 lda SHIP_ADDR clc adc #$18 sta SHIP_ADDR bcc L_5932 inc SHIP_ADDR+1 L_5932 cpx L_57C0+4 beq L_593A jmp L_58A1 L_593A ldx L_57B8+7 ldy L_57C0 rts L_5941 lda L_57C0+1 and #$FC lsr lsr sta L_57C0+1 sta L_57C0+2 lda L_57C0 and #$F8 lsr lsr lsr sta L_57C0 sta L_57C0+3 and #$F8 lsr lsr lsr sta SHIP_ADDR+1 lda L_57C0 clc asl asl asl asl asl sta SHIP_ADDR lda L_57C0 and #$E0 lsr lsr lsr lsr lsr sta MASK_ADDR+1 lda L_57C0 clc asl asl asl sta MASK_ADDR lda SHIP_ADDR+1 clc adc MASK_ADDR+1 sta SHIP_ADDR+1 lda SHIP_ADDR clc adc MASK_ADDR sta SHIP_ADDR bcc L_5995 inc SHIP_ADDR+1 L_5995 lda SHIP_ADDR+1 clc adc #$9A sta SHIP_ADDR+1 lda SHIP_ADDR clc adc L_57C0+1 sta SHIP_ADDR bcc L_59A8 inc SHIP_ADDR+1 L_59A8 lda SHIP_ADDR clc adc #$8A sta SHIP_ADDR bcc L_59B3 inc SHIP_ADDR+1 L_59B3 stx L_57B8+7 txa clc asl asl asl clc adc L_57B8+7 tax clc adc #$09 sta L_57C0+4 rts ldx L_57E8 lda TIMER_MAYBE nop nop lda L_57B0+6,x sta L_57C0+1 lda L_57B8+1,x sta L_57C0 jsr L_5B16 jsr L_5941 lda L_57C0+4 sec sbc L_57E8+2 sta L_57E8+2 lda #$00 sta MASK_ADDR+1 L_59EF lda #$00 sta MASK_ADDR ldy MASK_ADDR+1 L_59F5 lda L_57C0+2 cmp #$06 bcc L_5A10 cmp #$20 bcs L_5A10 lda L_57C0+3 cmp #$03 bcc L_5A10 cmp #$1E bcs L_5A10 lda L_57C0+5,x sta (SHIP_ADDR),y L_5A10 inc L_57C0+3 inx tya clc adc #$28 tay inc MASK_ADDR lda MASK_ADDR cmp L_57E8+1 bne L_59F5 lda L_57E8+1 cmp #$02 bne L_5A2A inx L_5A2A lda L_57C0+3 sec sbc L_57E8+1 sta L_57C0+3 inc L_57C0+2 inc MASK_ADDR+1 cpx L_57E8+2 bne L_59EF ldx L_57B8+7 lda L_57B0,x sta L_57B0+6,x sta L_57C0+1 lda L_57B0+3,x sta L_57B8+1,x sta L_57C0 jsr L_5B33 jsr L_5941 lda L_57C0+4 sec sbc L_57E8+2 sta L_57E8+2 stx L_57C0+1 lda #$00 sta MASK_ADDR+1 L_5A6A lda #$00 sta MASK_ADDR ldy MASK_ADDR+1 L_5A70 lda (SHIP_ADDR),y sta L_57C0+5,x inx tya clc adc #$28 tay inc MASK_ADDR lda MASK_ADDR cmp L_57E8+1 bne L_5A70 lda L_57E8+1 cmp #$02 bne L_5A8C inx L_5A8C inc MASK_ADDR+1 cpx L_57E8+2 bne L_5A6A txa sec sbc #$09 clc adc L_57E8+3 tax lda #$00 sta MASK_ADDR+1 L_5AA0 lda #$00 sta MASK_ADDR ldy MASK_ADDR+1 L_5AA6 lda L_57C0+2 cmp #$06 bcc L_5ACE cmp #$20 bcs L_5ACE lda L_57C0+3 cmp #$03 bcc L_5ACE cmp #$1E bcs L_5ACE lda L_57C0+5,x and #$80 sta RAMLO lda L_57C0+1 clc adc #$60 clc adc RAMLO sta (SHIP_ADDR),y L_5ACE inc L_57C0+3 tya clc adc #$28 tay inx inc L_57C0+1 inc MASK_ADDR lda MASK_ADDR cmp L_57E8+1 bne L_5AA6 lda L_57E8+1 cmp #$02 bne L_5AEE inc L_57C0+1 inx L_5AEE lda L_57C0+3 sec sbc L_57E8+1 sta L_57C0+3 inc L_57C0+2 inc MASK_ADDR+1 cpx L_57E8+2 bne L_5AA0 ldx L_57B8+7 jsr L_57EC ldx L_57E8 cpx #$02 bne L_5B11 ldx #$FF L_5B11 inx stx L_57E8 rts L_5B16 lda L_57B0+6,x sta L_57E8+3 lda L_57B8+1,x L_5B1F and #$07 bne L_5B2B lda #$02 sta L_57E8+1 jmp L_5B3F L_5B2B lda #$03 sta L_57E8+1 jmp L_5B3F L_5B33 lda L_57B0,x sta L_57E8+3 lda L_57B0+3,x jmp L_5B1F L_5B3F lda L_57E8+3 and #$03 bne L_5B4F lda #$03 sta L_57E8+2 sta L_57E8+3 rts L_5B4F lda #$00 sta L_57E8+2 sta L_57E8+3 rts .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 lda (MASK_ADDR),y cmp #$49 bpl L_5BA9 L_5BA6 cmp #$37 rts L_5BA9 cmp #$4F bpl L_5BA6 stx L_5BC4 sta L_5BC4+1 ldx L_57E8 lda #$06 sta L_5C64+5,x lda L_5BC4+1 ldx L_5BC4 jmp L_5BA6 L_5BC4 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 L_5BFC .byte $00, $00, $00, $00, $05, $15, $2A, $00 .byte $00, $2A, $2A, $0A, $00, $14, $28, $00 .byte $00, $28, $28, $28, $50, $54, $A8, $00 .byte $00, $A8, $A8, $A0, $05, $2A, $00, $00 .byte $00, $00, $2A, $0A, $00, $28, $00, $00 .byte $00, $00, $2A, $0A, $50, $A8, $00, $00 .byte $00, $00, $A8, $A0, $2A, $00, $00, $00 .byte $00, $00, $00, $2A, $00, $00, $00, $00 .byte $00, $00, $00, $28, $A8, $00, $00, $00 .byte $00, $00, $00, $A8, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 L_5C5C .byte $00, $00, $00, $00, $FF, $FF, $FF, $00 L_5C64 .byte $00, $00, $00, $00, $00, $00, $00, $00 L_5C6C .byte $00, $00, $00, $02, $00 ldx #$00 lda L_5C6C+4 beq L_5C7D tax dex jmp L_5CA3 L_5C7D lda L_5C5C+7,x beq L_5C93 lda L_5C5C+4,x bne L_5C8A dec L_5C5C+7,x L_5C8A dec L_5C5C+4,x L_5C8D inx cpx #$03 bne L_5C7D rts L_5C93 lda L_5C64+5,x cmp #$05 beq L_5C8D cmp #$06 beq L_5C8D inx stx L_5C6C+4 dex L_5CA3 lda L_5C64+5,x cmp #$04 bne L_5CAD jmp L_5D60 L_5CAD cmp #$03 bne L_5CB4 jmp L_5D39 L_5CB4 cmp #$02 bne L_5CBB jmp L_5D39 L_5CBB lda L_5C64+2,x cmp #$06 bcs L_5CC6 inc L_5C64+2,x rts L_5CC6 lda #$00 sta L_5C64+2,x lda L_5C6C+3 bne L_5CDA L_5CD0 lda VCOUNT and #$03 beq L_5CD0 sta L_5C6C+3 L_5CDA lda L_5C6C,x cmp #$04 bne L_5D01 inc L_5C64+5,x lda L_5C6C+3 cmp #$02 beq L_5CF6 lda #$32 sta L_57B0,x lda #$00 sta L_57B0+3,x rts L_5CF6 lda #$62 sta L_57B0,x lda #$00 sta L_57B0+3,x rts L_5D01 clc asl asl asl asl sta MASK_ADDR lda L_5C6C,x clc asl asl asl clc adc MASK_ADDR stx MASK_ADDR tax ldy #$90 lda L_5C6C+3 cmp #$02 bne L_5D20 ldy #$A8 L_5D20 lda #$89 sty SHIP_ADDR sta SHIP_ADDR+1 ldy #$00 L_5D28 lda L_5BFC+4,x sta (SHIP_ADDR),y iny inx cpy #$18 bne L_5D28 ldx MASK_ADDR inc L_5C6C,x rts L_5D39 lda L_57B0+3,x cmp #$10 bne L_5D44 inc L_5C64+5,x rts L_5D44 lda L_7FFA+5 bne L_5D5F ldy L_57E8 cpy #$02 bne L_5D55 ldy #$00 jmp L_5D56 L_5D55 iny L_5D56 sty MASK_ADDR cpx MASK_ADDR bne L_5D5F inc L_57B0+3,x L_5D5F rts L_5D60 lda L_5C64+2,x cmp #$06 bcs L_5D6B inc L_5C64+2,x rts L_5D6B lda #$00 sta L_5C64+2,x dec L_5C6C,x lda L_5C6C,x clc asl asl asl asl sta MASK_ADDR lda L_5C6C,x cmp #$FF bne L_5D93 inc L_5C64+5,x inc L_5C6C,x lda #$00 sta L_5C6C+3 sta L_5C6C+4 rts L_5D93 clc asl asl asl clc adc MASK_ADDR stx MASK_ADDR tax ldy #$90 lda L_5C6C+3 cmp #$02 bne L_5DA8 ldy #$A8 L_5DA8 lda #$89 sty SHIP_ADDR sta SHIP_ADDR+1 ldy #$00 L_5DB0 lda L_5BFC+4,x sta (SHIP_ADDR),y iny inx cpy #$18 bne L_5DB0 ldx MASK_ADDR rts .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 L_5DCE .byte $00, $00, $07, $04, $5B, $9B, $04, $04 L_5DD6 .byte $04, $00, $00, $00, $03, $02, $00, $00 L_5DDE .byte $00, $00, $00, $00, $00, $00, $00 ldx L_57E8 lda L_5C64+5,x cmp #$04 beq L_5DFB cmp #$05 beq L_5DFB cmp #$06 bne L_5DFA jsr L_3DB1 L_5DFA rts L_5DFB lda L_57B0+3,x cmp #$E0 bcc L_5E05 jmp L_3F77 L_5E05 sec sbc #$08 and #$F8 lsr lsr lsr sta L_5DCE+3 lda L_57B0,x sec sbc #$10 and #$FC lsr lsr sta L_5DCE+2 lda L_5DCE+3 and #$F8 lsr lsr lsr sta L_5DCE+5 lda L_5DCE+3 and #$0F clc asl asl asl asl asl sta L_5DCE+4 lda L_5DCE+3 and #$E0 lsr lsr lsr lsr lsr clc adc L_5DCE+5 sta L_5DCE+5 lda L_5DCE+3 and #$1F clc asl asl asl clc adc L_5DCE+4 sta L_5DCE+4 bcc L_5E5C inc L_5DCE+5 L_5E5C lda L_5DCE+5 clc adc #$9A sta L_5DCE+5 lda L_5DCE+4 clc adc #$B4 sta L_5DCE+4 bcc L_5E73 inc L_5DCE+5 L_5E73 lda L_5DCE+4 clc adc L_5DCE+2 sta L_5DCE+4 bcc L_5E82 inc L_5DCE+5 L_5E82 ldy #$03 lda L_57B0+3,x and #$07 bne L_5E8C dey L_5E8C sty L_5DD6+5 ldy #$03 lda L_57B0,x and #$03 bne L_5E99 dey L_5E99 sty L_5DD6+4 lda L_5DDE+1,x beq L_5EA7 dec L_5DDE+1,x jmp L_5EE5 L_5EA7 lda L_5DDE+4,x beq L_5EB2 dec L_5DDE+4,x jmp L_5EE5 L_5EB2 lda L_57B0+3,x cmp #$58 bcc L_5EE5 lda VCOUNT and #$1F cmp #$14 bmi L_5EE5 cmp #$16 bpl L_5EE5 lda L_57B0,x and #$03 bne L_5EE5 L_5ECD lda VCOUNT and #$07 beq L_5ECD clc asl asl asl sta L_5DDE+1,x lda #$01 sta L_5DCE+6,x lda #$A0 sta L_5DDE+4,x L_5EE5 ldx L_57E8 lda L_5DCE+6,x cmp #$01 beq L_5F47 lda L_5DD6+6,x bne L_5F30 lda L_57B0,x and #$03 bne L_5F30 lda L_57B0+3,x and #$07 bne L_5F27 ldy #$52 lda L_5DCE+4 sta MASK_ADDR lda L_5DCE+5 sta MASK_ADDR+1 ldx #$00 L_5F10 lda (MASK_ADDR),y cmp #$37 bcs L_5F19 L_5F16 jmp L_3E0E L_5F19 cmp #$60 bcs L_5F16 iny inx cpx L_5DD6+4 bne L_5F10 ldx L_57E8 L_5F27 inc L_57B0+3,x inc L_57B0+3,x jmp L_3F4F L_5F30 ldx L_57E8 lda L_5DD6+6,x beq L_5F3B dec L_5DD6+6,x L_5F3B lda L_5DCE+6,x cmp #$02 beq L_5F83 cmp #$04 beq L_5F4A rts L_5F47 jmp L_3E73 L_5F4A ldx L_57E8 lda L_57B0,x and #$03 bne L_5F7F ldx #$00 ldy #$00 lda L_5DCE+4 sta MASK_ADDR lda L_5DCE+5 sta MASK_ADDR+1 ldy #$01 L_5F64 lda (MASK_ADDR),y cmp #$37 bpl L_5F6D L_5F6A jmp L_3E00 L_5F6D cmp #$60 bpl L_5F6A inx tya clc adc #$28 tay cpx L_5DD6+5 bne L_5F64 ldx L_57E8 L_5F7F dec L_57B0,x rts L_5F83 lda L_5DCE+4 sta MASK_ADDR lda L_5DCE+5 sta MASK_ADDR+1 lda L_57B0,x and #$03 bne L_5FB0 ldy #$04 ldx #$00 L_5F98 lda (MASK_ADDR),y cmp #$37 bpl L_5FA1 L_5F9E jmp L_3E00 L_5FA1 cmp #$60 bpl L_5F9E tya clc adc #$28 tay inx cpx L_5DD6+5 bne L_5F98 L_5FB0 ldx L_57E8 inc L_57B0,x rts .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00 L_5FC0 lda #$00 sta L_8F0A+6 lda #$07 ldy #$62 ldx #$E4 jsr L_1F00 lda #$30 sta $9EE2 lda #$2A sta $9F0A lda #$2C sta $9F32 rts .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $0A, $2A, $AA, $00 .byte $55, $55, $55, $55, $55, $55, $55, $55 .byte $00, $00, $00, $00, $A0, $A0, $80, $20 .byte $20, $20, $20, $20, $20, $20, $20, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $02, $0A, $2A, $0A, $12 .byte $14, $15, $15, $15, $15, $15, $05, $05 .byte $01, $01, $80, $A0, $A8, $A8, $A8, $A0 .byte $88, $28, $28, $28, $28, $28, $28, $20 .byte $20, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $02, $0A, $0A, $02 .byte $04, $04, $05, $05, $05, $01, $01, $01 .byte $00, $00, $20, $A8, $A8, $AA, $AA, $A8 .byte $A2, $A2, $22, $0A, $2A, $28, $28, $20 .byte $20, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $02, $02, $02, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $21, $21, $A1, $A1 .byte $A1, $A1, $81, $28, $2A, $AA, $AA, $28 .byte $20, $00, $00, $00, $00, $00, $00, $40 .byte $40, $40, $40, $40, $00, $00, $00, $00 .byte $00, $00, $00, $01, $01, $01, $21, $21 .byte $A1, $A1, $A1, $88, $28, $AA, $AA, $2A .byte $02, $00, $00, $00, $00, $40, $40, $50 .byte $50, $50, $50, $50, $50, $10, $80, $80 .byte $80, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $14, $15, $15, $15, $15 .byte $15, $15, $15, $15, $01, $28, $0A, $00 .byte $00, $00, $00, $00, $40, $54, $54, $54 .byte $54, $54, $54, $54, $54, $14, $94, $80 .byte $28, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $04, $05, $05, $05 .byte $05, $05, $05, $05, $05, $05, $00, $00 .byte $00, $00, $00, $00, $28, $42, $52, $52 .byte $52, $52, $52, $52, $52, $52, $12, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $02, $00, $01, $01 .byte $01, $01, $01, $01, $01, $01, $01, $00 .byte $00, $00, $00, $00, $AA, $00, $52, $52 .byte $52, $52, $52, $52, $52, $52, $52, $00 .byte $00, $00, $00, $00, $00, $80, $80, $80 .byte $80, $80, $80, $80, $80, $80, $00, $00 .byte $00, $00, $02, $06, $09, $09, $09, $05 .byte $25, $66, $66, $96, $96, $96, $5A, $28 .byte $00, $00, $40, $60, $60, $60, $60, $A0 .byte $A0, $66, $66, $96, $96, $96, $5A, $28 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $02, $06, $09, $09, $09 .byte $06, $09, $06, $09, $09, $05, $01, $00 .byte $00, $00, $00, $40, $60, $60, $A0, $A0 .byte $64, $A6, $66, $96, $96, $96, $9A, $28 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $01, $02, $02 .byte $02, $02, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $90, $98, $58, $58 .byte $68, $60, $99, $99, $A5, $65, $26, $26 .byte $08, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $80, $80, $80, $80, $00 .byte $00, $00, $00, $00, $00, $01, $02, $02 .byte $02, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $98, $9A, $59, $55 .byte $5A, $69, $59, $25, $25, $25, $16, $06 .byte $00, $00, $00, $00, $00, $80, $80, $A0 .byte $A0, $A0, $A0, $80, $80, $80, $80, $00 .byte $00, $00, $00, $00, $24, $66, $96, $96 .byte $9A, $16, $09, $09, $09, $05, $02, $00 .byte $00, $00, $00, $00, $18, $66, $96, $96 .byte $96, $5A, $60, $60, $60, $A0, $80, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $09, $16 .byte $26, $26, $1A, $25, $25, $25, $16, $0A .byte $00, $00, $00, $00, $00, $60, $98, $58 .byte $58, $58, $A0, $80, $80, $80, $80, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $02, $02, $06, $09, $09, $09, $01 .byte $00, $00, $00, $00, $06, $19, $65, $65 .byte $A5, $96, $96, $6A, $60, $60, $60, $80 .byte $00, $00, $00, $00, $00, $80, $80, $80 .byte $80, $80, $80, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $01, $02, $02, $02, $01, $00, $00 .byte $00, $00, $00, $0A, $19, $25, $25, $25 .byte $96, $96, $59, $59, $5A, $6A, $A0, $00 .byte $00, $00, $00, $00, $80, $80, $80, $80 .byte $80, $80, $80, $80, $80, $00, $00, $00 .byte $00, $00, $00, $02, $02, $05, $06, $06 .byte $05, $19, $19, $19, $25, $AA, $6A, $9A .byte $65, $15, $00, $00, $00, $80, $80, $80 .byte $80, $60, $A0, $60, $A0, $A8, $A8, $98 .byte $58, $A0, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $01, $02, $01, $02, $01 .byte $01, $02, $01, $02, $01, $0A, $0A, $2A .byte $19, $05, $00, $00, $00, $80, $80, $A0 .byte $68, $68, $58, $50, $6A, $A9, $A6, $5A .byte $58, $40, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $02, $05 .byte $05, $0A, $40, $A0, $50, $68, $56, $66 .byte $55, $25, $16, $16, $0A, $2A, $96, $56 .byte $96, $40, $00, $00, $00, $00, $00, $00 .byte $80, $80, $00, $00, $00, $80, $80, $80 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $10, $28, $18, $2A, $16, $26 .byte $15, $25, $16, $2A, $29, $06, $25, $95 .byte $56, $6A, $00, $00, $00, $00, $00, $80 .byte $40, $80, $80, $00, $80, $A0, $A0, $A0 .byte $A0, $80, $00, $02, $01, $09, $05, $09 .byte $05, $25, $2A, $2A, $15, $25, $9A, $AA .byte $AA, $2A, $00, $00, $00, $80, $80, $80 .byte $80, $60, $90, $A0, $60, $58, $98, $A8 .byte $A8, $A0, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $02, $01, $09 .byte $05, $09, $0A, $02, $09, $25, $29, $2A .byte $0A, $02, $10, $90, $50, $60, $60, $60 .byte $60, $A0, $90, $A0, $A0, $40, $58, $56 .byte $96, $A0, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $01, $02 .byte $05, $05, $09, $02, $01, $0A, $09, $05 .byte $02, $00, $10, $20, $50, $90, $60, $60 .byte $60, $A0, $60, $60, $80, $60, $68, $5A .byte $56, $1A, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $80, $80, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $02, $01, $01, $02, $00 .byte $00, $00, $00, $01, $01, $09, $06, $26 .byte $9A, $66, $16, $A5, $AA, $AA, $56, $56 .byte $16, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $80, $80, $A0, $A0 .byte $80, $00, $00, $01, $01, $01, $04, $04 .byte $04, $10, $12, $12, $40, $40, $55, $55 .byte $AA, $00, $00, $00, $00, $00, $40, $40 .byte $40, $10, $10, $10, $04, $04, $54, $54 .byte $A8, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $01, $01, $01, $01, $01 .byte $01, $01, $01, $04, $04, $04, $04, $05 .byte $05, $06, $00, $00, $20, $60, $58, $18 .byte $18, $86, $86, $06, $05, $14, $50, $4A .byte $A8, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $80, $80, $80, $80 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $01, $01, $01, $01, $09 .byte $0A, $00, $10, $10, $14, $54, $54, $45 .byte $45, $41, $49, $09, $00, $00, $15, $5A .byte $AA, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $40, $40, $50, $50, $60, $A0 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $01, $01, $01, $05, $05 .byte $14, $10, $10, $12, $52, $40, $40, $A5 .byte $0A, $00, $00, $00, $00, $00, $00, $40 .byte $40, $40, $40, $60, $58, $18, $18, $58 .byte $A8, $00, $00, $00, $00, $01, $01, $05 .byte $04, $14, $52, $52, $94, $25, $09, $02 .byte $00, $00, $20, $60, $60, $60, $60, $60 .byte $58, $18, $18, $18, $18, $18, $58, $58 .byte $A8, $28, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $01, $15, $10 .byte $14, $24, $05, $09, $01, $02, $02, $02 .byte $00, $00, $00, $00, $15, $51, $01, $05 .byte $06, $86, $86, $16, $18, $58, $60, $60 .byte $80, $80, $00, $00, $80, $80, $80, $80 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $01, $01, $01, $01, $01 .byte $01, $01, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $40, $54, $05, $00, $00 .byte $08, $49, $45, $46, $56, $58, $60, $80 .byte $00, $00, $00, $00, $00, $40, $50, $10 .byte $60, $60, $80, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $04, $04, $15, $11 .byte $11, $10, $10, $52, $42, $40, $41, $55 .byte $5A, $A0, $80, $00, $00, $00, $00, $00 .byte $40, $40, $50, $10, $14, $14, $58, $A0 .byte $00, $00, $81, $08, $00, $12, $29, $12 .byte $04, $00, $14, $05, $01, $01, $18, $20 .byte $08, $08, $00, $10, $58, $08, $54, $56 .byte $50, $25, $29, $14, $40, $84, $48, $40 .byte $00, $40, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $08, $22, $22, $08, $24, $20 .byte $20, $80, $20, $00, $28, $01, $08, $00 .byte $00, $00, $00, $00, $A1, $18, $04, $01 .byte $00, $01, $02, $04, $09, $18, $88, $82 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $42, $14, $10, $00, $80 .byte $80, $10, $10, $40, $10, $11, $0A, $01 .byte $00, $00, $00, $01, $24, $08, $01, $00 .byte $00, $00, $00, $00, $00, $02, $02, $04 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $04, $10, $00, $40, $00, $00 .byte $00, $00, $00, $00, $40, $00, $40, $20 .byte $04, $02, $20, $04, $01, $00, $00, $00 .byte $00, $00, $00, $00, $01, $01, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $20, $02, $00, $04, $0A, $04 .byte $01, $00, $05, $01, $00, $00, $06, $08 .byte $02, $02, $40, $04, $11, $82, $55, $98 .byte $14, $09, $0A, $45, $50, $61, $12, $10 .byte $00, $10, $00, $00, $00, $00, $00, $00 .byte $00, $40, $40, $00, $00, $00, $00, $00 .byte $00, $00, $02, $08, $08, $02, $09, $08 .byte $08, $20, $08, $00, $0A, $00, $02, $00 .byte $00, $00, $00, $80, $80, $06, $01, $00 .byte $00, $00, $00, $01, $02, $46, $22, $20 .byte $00, $00, $00, $00, $40, $00, $00, $40 .byte $00, $40, $80, $00, $40, $00, $00, $80 .byte $00, $00, $00, $10, $05, $04, $00, $20 .byte $20, $04, $04, $10, $04, $04, $02, $00 .byte $00, $00, $00, $80, $09, $02, $00, $00 .byte $00, $00, $00, $00, $00, $40, $80, $41 .byte $00, $00, $00, $40, $00, $00, $40, $00 .byte $00, $00, $00, $00, $00, $80, $80, $00 .byte $00, $00, $01, $04, $00, $10, $00, $00 .byte $00, $00, $00, $00, $10, $00, $10, $08 .byte $01, $00, $08, $01, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $80, $00, $00, $40, $00, $00, $00 .byte $00, $00, $00, $00, $40, $40, $00, $00 .byte $00, $00, $08, $00, $00, $01, $02, $01 .byte $00, $00, $01, $00, $00, $00, $01, $02 .byte $00, $00, $10, $81, $04, $20, $95, $26 .byte $45, $02, $42, $51, $14, $18, $84, $04 .byte $80, $84, $00, $00, $40, $80, $40, $00 .byte $00, $50, $90, $40, $00, $40, $80, $00 .byte $00, $00, $00, $02, $02, $00, $02, $02 .byte $02, $08, $02, $00, $02, $00, $00, $00 .byte $00, $00, $80, $20, $2A, $81, $40, $00 .byte $00, $00, $00, $00, $80, $11, $88, $08 .byte $00, $00, $00, $00, $10, $80, $40, $10 .byte $00, $10, $20, $40, $90, $80, $80, $20 .byte $00, $00, $00, $04, $01, $01, $00, $08 .byte $08, $01, $01, $04, $01, $01, $00, $00 .byte $00, $00, $00, $20, $42, $00, $00, $00 .byte $00, $00, $00, $00, $00, $10, $A0, $10 .byte $00, $00, $00, $10, $40, $80, $10, $00 .byte $00, $00, $00, $00, $00, $20, $20, $40 .byte $00, $00, $00, $01, $00, $04, $00, $00 .byte $00, $00, $00, $00, $04, $00, $04, $02 .byte $00, $00, $42, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $40, $20, $00, $40, $10, $00, $00, $00 .byte $00, $00, $00, $00, $10, $10, $00, $00 .byte $00, $00, $02, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $04, $20, $01, $48, $A5, $49 .byte $11, $00, $50, $14, $05, $06, $61, $81 .byte $20, $21, $00, $40, $10, $20, $50, $80 .byte $40, $94, $A4, $50, $00, $10, $20, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $02, $00, $00, $00, $00, $00, $00 .byte $00, $00, $20, $88, $8A, $20, $90, $80 .byte $80, $00, $80, $00, $A0, $04, $22, $02 .byte $00, $00, $00, $00, $84, $60, $10, $04 .byte $00, $04, $08, $10, $24, $60, $20, $08 .byte $00, $00, $00, $01, $00, $00, $00, $02 .byte $02, $00, $00, $01, $00, $00, $00, $00 .byte $00, $00, $00, $08, $50, $40, $00, $00 .byte $00, $40, $40, $00, $40, $44, $28, $04 .byte $00, $00, $00, $04, $90, $20, $04, $00 .byte $00, $00, $00, $00, $00, $08, $08, $10 .byte $00, $00, $00, $00, $00, $01, $00, $00 .byte $00, $00, $00, $00, $01, $00, $01, $00 .byte $00, $00, $10, $40, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $80 .byte $10, $08, $80, $10, $04, $00, $00, $00 .byte $00, $00, $00, $00, $04, $04, $00, $00 .byte $00, $00, $FC, $F0, $F0, $C0, $C0, $C0 .byte $C0, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $FF, $3F, $3F, $0F, $0F, $0F .byte $0F, $03, $03, $03, $03, $00, $00, $00 .byte $00, $03, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FC, $F0, $F0, $F0, $F0, $F0 .byte $F0, $F0, $F0, $F0, $F0, $C0, $C0, $00 .byte $00, $C0, $3F, $3F, $3F, $0F, $0F, $03 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $03, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $3F, $3F, $3F, $3F .byte $FF, $FF, $FC, $FC, $FC, $FC, $FC, $FC .byte $FC, $FF, $FF, $FF, $FF, $FC, $F0, $C0 .byte $C0, $C0, $0F, $03, $03, $00, $00, $00 .byte $00, $00, $00, $00, $C0, $00, $00, $00 .byte $00, $00, $FF, $FF, $FF, $FF, $FF, $3F .byte $0F, $0F, $3F, $3F, $3F, $0F, $0F, $0F .byte $3F, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FC .byte $FC, $FC, $03, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $C0, $00, $00 .byte $00, $00, $FF, $FF, $FF, $3F, $3F, $0F .byte $0F, $0F, $0F, $0F, $0F, $03, $03, $03 .byte $03, $0F, $FC, $F0, $F0, $C0, $C0, $C0 .byte $C0, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $FF, $3F, $3F, $0F, $0F, $0F .byte $0F, $03, $03, $03, $03, $00, $00, $00 .byte $00, $03, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FC, $F0, $F0, $C0 .byte $C0, $C0, $C0, $F0, $C0, $00, $00, $00 .byte $C0, $F0, $03, $03, $03, $03, $03, $03 .byte $03, $03, $03, $03, $03, $03, $00, $00 .byte $00, $00, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $3F .byte $3F, $FF, $FF, $FF, $FC, $FC, $F0, $F0 .byte $C0, $C0, $C0, $F0, $F0, $C0, $C0, $C0 .byte $F0, $FC, $00, $03, $00, $03, $00, $03 .byte $00, $03, $00, $03, $00, $03, $00, $00 .byte $00, $00, $00, $FF, $00, $FF, $00, $FF .byte $00, $FF, $00, $FF, $FF, $FF, $FF, $3F .byte $0F, $0F, $FF, $FF, $FF, $FF, $FF, $FC .byte $FC, $FC, $00, $F0, $00, $F0, $00, $FC .byte $00, $FF, $00, $F0, $00, $C0, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $C0, $00, $3F, $3F, $3F, $3F, $3F .byte $3F, $3F, $FF, $3F, $0F, $0F, $03, $03 .byte $0F, $3F, $00, $F0, $00, $F0, $00, $C0 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $3F, $00, $3F, $00, $0F .byte $00, $03, $00, $03, $00, $00, $00, $00 .byte $00, $00, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $00, $FF, $00, $FF, $00, $FF .byte $00, $FF, $00, $F0, $00, $F0, $00, $F0 .byte $00, $F0, $00, $C0, $00, $C0, $00, $C0 .byte $00, $C0, $00, $0F, $03, $03, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $03, $02, $FF, $02, $FF, $02, $FF .byte $02, $3F, $02, $3F, $02, $0F, $02, $0F .byte $02, $FF, $02, $FF, $02, $FC, $02, $FC .byte $02, $FC, $02, $F0, $F0, $F0, $F0, $C0 .byte $C0, $F0, $03, $03, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $FF, $00, $FF, $00, $3F .byte $00, $3F, $00, $0F, $00, $03, $00, $03 .byte $00, $FF, $00, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FC, $FC, $FC, $FC .byte $FC, $FF, $00, $F0, $00, $F0, $00, $C0 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $F0, $00, $3F, $00, $3F, $00, $0F .byte $00, $0F, $00, $03, $00, $00, $00, $00 .byte $00, $03, $FF, $FC, $FC, $F0, $F0, $C0 .byte $C0, $00, $00, $00, $00, $00, $00, $F0 .byte $00, $FF, $00, $03, $00, $03, $00, $03 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $00, $FF, $00, $C0, $00, $00 .byte $00, $00, $00, $C0, $00, $F0, $00, $F0 .byte $00, $FF, $00, $C0, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $03, $03 .byte $0F, $0F, $FF, $3F, $0F, $0F, $0F, $0F .byte $3F, $3F, $00, $3F, $00, $FF, $00, $FF .byte $00, $FF, $00, $F0, $00, $F0, $00, $F0 .byte $00, $F0, $00, $FC, $00, $FC, $00, $FC .byte $00, $FF, $00, $03, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $03, $0F .byte $3F, $FF, $00, $FF, $00, $0F, $00, $03 .byte $00, $03, $00, $3F, $00, $FF, $00, $FF .byte $00, $FF, $00, $FF, $00, $FF, $00, $FF .byte $00, $FF, $00, $FC, $FC, $FC, $FC, $FC .byte $FC, $FC, $F3, $C0, $C0, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $0F, $00, $FF, $00, $3F, $00, $0F .byte $00, $03, $00, $00, $00, $00, $00, $0F .byte $00, $FF, $FF, $08, $00, $6C, $06, $6C L_6C06 .byte $4C, $4A, $6C, $70, $70, $70, $42, $40 .byte $9C, $02, $02, $02, $02, $02, $02, $02 .byte $02, $02, $02, $02, $02, $02, $02, $02 .byte $02, $02, $02, $02, $02, $02, $02, $D2 L_6C26 .byte $00, $6E, $70, $70, $41, $00, $6D, $2C .byte $6F, $61, $64, $00, $25, $72, $72, $6F .byte $72, $0E, $0E, $30, $6C, $65, $61, $73 .byte $65, $00, $32, $65, $0D, $2C, $6F, $61 .byte $64, $0E, $43, $3A lda #$0F sta COLOR0 sta COLOR1 lda #$00 sta COLOR2 sta COLOR4 tax L_6C5B sta $9C40,x sta $9D40,x sta $9E40,x sta $9F00,x inx bne L_6C5B ldx #$00 L_6C6C lda L_6C06+3,x sta $0680,x inx cpx #$30 bne L_6C6C lda #$07 sta $06FF lda #$01 sta CRSINH ldx #$80 ldy #$06 stx SDLSTL sty SDLSTH ldy #$09 ldx #$6D lda #$06 jsr L_1F00 ldx #$10 lda #$03 sta B0_ICCOM,x lda #$07 sta B0_ICAX1,x lda #$80 sta B0_ICAX2,x lda #$48 sta B0_ICBAL,x lda #$6C sta B0_ICBAH,x jsr CIOV nop nop lda #$07 sta B0_ICCOM,x lda #$00 sta B0_ICBAL,x lda #$10 sta B0_ICBAH,x lda #$FF sta B0_ICBLH,x jsr CIOV nop nop lda #$0C jsr CIOV nop nop lda #$3C sta PACTL ldy #$5F ldx #$E4 lda #$06 jsr L_1F00 jmp L_3500 ldx #$00 L_6CE7 lda L_6C26+7,x sta $9DD6,x inx cpx #$1B bne L_6CE7 lda #$3C sta PACTL L_6CF7 inc COLOR1 ldy #$00 L_6CFC ldx #$00 L_6CFE inx bne L_6CFE iny cpy #$14 bne L_6CFC jmp L_6CF7 pha tya pha txa pha ldx #$80 ldy #$06 stx DLISTL sty DLISTH lda #$0F sta COLPF1 lda $06FF cmp #$04 bcc L_6D3A lda HSCROL and #$F8 ora $06FF sta HSCROL L_6D2F dec $06FF pla tax pla tay pla jmp SYSVBV L_6D3A lda $069D cmp #$D6 bne L_6D55 lda $069E cmp #$6F bne L_6D55 lda #$00 sta $069D lda #$6E sta $069E jmp L_6D62 L_6D55 lda $069D cmp #$FF bne L_6D5F inc $069E L_6D5F inc $069D L_6D62 lda #$07 sta $06FF lda HSCROL ora #$07 sta HSCROL jmp L_6D2F .byte $00, $00, $00, $00, $00, $00, $00, $00 L_6D7A .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 L_6DFA .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $2E, $6F, $77, $00, $2C, $6F, $61 .byte $64, $69, $6E, $67, $00, $21, $72, $6B .byte $61, $6E, $6F, $69, $64, $00, $08, $23 .byte $09, $00, $11, $19, $18, $17, $00, $29 .byte $6D, $61, $67, $69, $6E, $65, $00, $33 .byte $6F, $66, $74, $77, $61, $72, $65, $0C .byte $08, $23, $09, $00, $11, $19, $18, $17 .byte $00, $34, $61, $69, $74, $6F, $0E, $00 .byte $00, $00, $34, $68, $65, $00, $65, $72 .byte $61, $00, $61, $6E, $64, $00, $74, $69 .byte $6D, $65, $00, $6F, $66, $00, $74, $68 .byte $69, $73, $00, $73, $74, $6F, $72, $79 .byte $00, $61, $72, $65, $00, $75, $6E, $6B .byte $6E, $6F, $77, $6E, $0E, $00, $00, $00 .byte $21, $66, $74, $65, $72, $00, $74, $68 .byte $65, $00, $2D, $6F, $74, $68, $65, $72 .byte $73, $68, $69, $70, $00, $07, $21, $72 .byte $6B, $61, $6E, $6F, $69, $64, $07, $00 .byte $77, $61, $73, $00, $64, $65, $73, $74 .byte $72, $6F, $79, $65, $64, $0C, $61, $00 .byte $73, $70, $61, $63, $65, $63, $72, $61 .byte $66, $74, $00, $07, $36, $61, $75, $73 .byte $07, $00, $73, $63, $72, $61, $6D, $62 .byte $6C, $65, $64, $00, $61, $77, $61, $79 .byte $00, $66, $72, $6F, $6D, $00, $69, $74 .byte $0C, $6F, $6E, $6C, $79, $00, $74, $6F .byte $00, $62, $65, $00, $74, $72, $61, $70 .byte $70, $65, $64, $00, $69, $6E, $00, $73 .byte $70, $61, $63, $65, $0C, $77, $61, $72 .byte $70, $65, $64, $00, $62, $79, $00, $73 .byte $6F, $6D, $65, $6F, $6E, $65, $01, $00 .byte $00, $00, $39, $6F, $75, $00, $6D, $75 .byte $73, $74, $00, $74, $61, $6B, $65, $00 .byte $63, $6F, $6E, $74, $72, $6F, $6C, $00 .byte $6F, $66, $00, $74, $68, $65, $00, $36 .byte $61, $75, $73, $0C, $61, $6E, $64, $00 .byte $62, $61, $74, $74, $6C, $65, $00, $79 .byte $6F, $75, $72, $00, $77, $61, $79, $00 .byte $74, $68, $72, $6F, $75, $67, $68, $00 .byte $74, $68, $65, $00, $13, $12, $00, $6C .byte $65, $76, $65, $6C, $73, $00, $74, $6F .byte $00, $63, $6F, $6E, $66, $72, $6F, $6E L_6F7A .byte $74, $00, $74, $68, $65, $00, $24, $69 .byte $6D, $65, $6E, $73, $69, $6F, $6E, $00 .byte $23, $68, $61, $6E, $67, $65, $72, $01 .byte $00, $00, $00, $27, $61, $6D, $65, $00 .byte $23, $6F, $64, $69, $6E, $67, $00, $62 .byte $79, $00, $2D, $69, $6B, $65, $00, $28 .byte $75, $74, $63, $68, $69, $6E, $73, $6F .byte $6E, $0E, $00, $00, $21, $6C, $73, $6F .byte $00, $61, $76, $61, $69, $6C, $61, $62 .byte $6C, $65, $00, $07, $27, $72, $65, $65 .byte $6E, $00, $22, $65, $72, $65, $74, $07 .byte $0E, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $0D, $0D .byte $0D, $0D, $ED, $6D, $6D, $6D, $6D, $6D .byte $0D, $0D, $0D, $0D, $0D, $0D, $0D, $0D .byte $0D, $FF, $0D, $0D, $61, $0C, $61, $21 .byte $0B, $61, $21, $A1, $0A, $61, $21, $A1 .byte $41, $09, $61, $21, $A1, $41, $61, $08 .byte $61, $21, $A1, $41, $61, $21, $07, $61 .byte $21, $A1, $41, $61, $21, $A1, $06, $61 .byte $21, $A1, $41, $61, $21, $A1, $41, $05 .byte $61, $21, $A1, $41, $61, $21, $A1, $41 .byte $61, $04, $61, $21, $A1, $41, $61, $21 .byte $A1, $41, $61, $21, $03, $61, $21, $A1 .byte $41, $61, $21, $A1, $41, $61, $21, $A1 .byte $02, $61, $21, $A1, $41, $61, $21, $A1 .byte $41, $61, $21, $A1, $41, $01, $EC, $A1 .byte $0D, $0D, $0D, $0D, $FF, $0D, $0D, $0D .byte $6D, $0D, $63, $CA, $0D, $6D, $0D, $CA .byte $63, $0D, $6D, $0D, $63, $CA, $0D, $6D .byte $0D, $CA, $63, $0D, $FF, $0D, $0D, $0D .byte $0D, $01, $A1, $41, $21, $E1, $A1, $01 .byte $21, $A1, $41, $21, $A1, $01, $01, $41 .byte $21, $E1, $A1, $41, $01, $A1, $41, $21 .byte $A1, $E1, $01, $01, $21, $E1, $A1, $41 .byte $21, $01, $41, $21, $A1, $E1, $41, $01 .byte $01, $E1, $A1, $41, $21, $A1, $01, $21 .byte $A1, $E1, $41, $21, $01, $01, $A1, $41 .byte $21, $A1, $41, $01, $A1, $E1, $41, $21 .byte $A1, $01, $01, $41, $21, $A1, $41, $21 .byte $01, $E1, $41, $21, $A1, $41, $01, $01 .byte $21, $A1, $41, $21, $A1, $01, $41, $21 .byte $A1, $41, $21, $01, $01, $A1, $41, $21 .byte $A1, $E1, $01, $21, $A1, $41, $21, $A1 .byte $01, $01, $41, $21, $A1, $E1, $41, $01 .byte $A1, $41, $21, $A1, $41, $01, $01, $21 .byte $A1, $E1, $41, $21, $01, $41, $21, $A1 .byte $41, $E1, $01, $01, $A1, $E1, $41, $21 .byte $A1, $01, $21, $A1, $41, $E1, $21, $01 .byte $01, $E1, $41, $21, $A1, $41, $01, $A1 .byte $41, $E1, $21, $A1, $01, $01, $41, $21 .byte $A1, $41, $21, $01, $41, $E1, $21, $A1 .byte $41, $01, $01, $21, $A1, $41, $21, $A1 .byte $01, $E1, $21, $A1, $41, $21, $01, $0D .byte $FF, $0D, $0D, $03, $61, $05, $61, $03 .byte $03, $61, $05, $61, $03, $04, $61, $03 .byte $61, $04, $04, $61, $03, $61, $04, $03 .byte $E7, $03, $03, $E7, $03, $02, $E2, $A1 .byte $E3, $A1, $E2, $02, $02, $E2, $A1, $E3 .byte $A1, $E2, $02, $01, $EB, $01, $01, $EB .byte $01, $01, $EB, $01, $01, $E1, $01, $E7 .byte $01, $E1, $01, $01, $E1, $01, $E1, $05 .byte $E1, $01, $E1, $01, $01, $E1, $01, $E1 .byte $05, $E1, $01, $E1, $01, $04, $E2, $01 .byte $E2, $04, $04, $E2, $01, $E2, $04, $0D .byte $FF, $0D, $0D, $0D, $0D, $A1, $01, $61 .byte $01, $21, $01, $41, $01, $21, $01, $61 .byte $01, $A1, $A1, $01, $61, $01, $21, $01 .byte $41, $01, $21, $01, $61, $01, $A1, $A1 .byte $01, $61, $01, $21, $01, $41, $01, $21 .byte $01, $61, $01, $A1, $A1, $01, $61, $01 .byte $21, $01, $41, $01, $21, $01, $61, $01 .byte $A1, $A1, $01, $61, $01, $21, $01, $41 .byte $01, $21, $01, $61, $01, $A1, $61, $01 .byte $C1, $61, $C1, $61, $C1, $61, $C1, $61 .byte $C1, $01, $61, $A1, $01, $61, $01, $21 .byte $01, $41, $01, $21, $01, $61, $01, $A1 .byte $A1, $01, $61, $01, $21, $01, $41, $01 .byte $21, $01, $61, $01, $A1, $A1, $01, $61 .byte $01, $21, $01, $41, $01, $21, $01, $61 .byte $01, $A1, $A1, $01, $61, $01, $21, $01 .byte $41, $01, $21, $01, $61, $01, $A1, $61 .byte $01, $61, $01, $C1, $01, $61, $01, $C1 .byte $01, $61, $01, $61, $A1, $01, $61, $01 .byte $21, $01, $41, $01, $21, $01, $61, $01 .byte $A1, $0D, $0D, $0D, $FF, $0D, $0D, $0D .byte $0D, $0D, $05, $22, $61, $05, $04, $22 .byte $62, $41, $04, $03, $22, $62, $42, $A1 .byte $03, $03, $21, $62, $42, $A2, $03, $02 .byte $21, $62, $42, $A2, $22, $02, $02, $62 .byte $42, $A2, $23, $02, $02, $61, $42, $A2 .byte $24, $02, $02, $42, $A2, $24, $A1, $02 .byte $02, $41, $A2, $24, $A2, $02, $02, $A2 .byte $24, $A2, $41, $02, $03, $24, $A2, $41 .byte $03, $03, $23, $A2, $42, $03, $04, $21 .byte $A2, $42, $04, $05, $A1, $42, $05, $FF L_729A .byte $0D, $0D, $0D, $0D, $03, $C1, $01, $C1 .byte $01, $C1, $01, $C1, $03, $01, $C1, $09 .byte $C1, $01, $01, $C2, $01, $C1, $03, $C1 .byte $01, $C2, $01, $06, $A1, $06, $01, $C1 .byte $03, $C1, $61, $C1, $03, $C1, $01, $03 .byte $C1, $02, $61, $02, $C1, $03, $06, $61 .byte $06, $03, $C1, $02, $61, $02, $C1, $03 .byte $01, $C1, $03, $C1, $61, $C1, $03, $C1 .byte $01, $06, $61, $06, $01, $C2, $07, $C2 .byte $01, $01, $C1, $09, $C1, $01, $03, $C1 .byte $01, $C1, $01, $C1, $01, $C1, $03, $0D .byte $0D, $FF, $0D, $0D, $01, $C1, $01, $C1 .byte $05, $C1, $01, $C1, $01, $01, $C1, $61 .byte $C1, $05, $C1, $61, $C1, $01, $01, $C1 .byte $61, $C1, $05, $C1, $61, $C1, $01, $01 .byte $C3, $05, $C3, $01, $0D, $04, $65, $04 .byte $04, $61, $A3, $61, $04, $04, $65, $04 .byte $04, $61, $A3, $61, $04, $04, $61, $A3 .byte $61, $04, $04, $61, $A3, $61, $04, $0D .byte $0D, $0D, $0D, $0D, $0D, $FF, $01, $C1 .byte $0B, $0D, $01, $C1, $0B, $01, $C1, $0B .byte $01, $C1, $0B, $01, $C1, $05, $61, $05 .byte $01, $C1, $04, $61, $41, $61, $04, $01 .byte $C1, $03, $61, $43, $61, $03, $01, $C1 .byte $02, $61, $45, $61, $02, $01, $C1, $01 .byte $61, $43, $C1, $43, $61, $01, $01, $C1 .byte $02, $61, $45, $61, $02, $01, $C1, $03 .byte $61, $43, $61, $03, $01, $C1, $04, $61 .byte $41, $61, $04, $01, $C1, $05, $61, $05 .byte $01, $C1, $0B, $01, $C1, $0B, $01, $C1 .byte $0B, $01, $CC, $0D, $FF, $0D, $0D, $0D .byte $0D, $01, $EB, $01, $01, $E1, $09, $E1 .byte $01, $01, $E1, $01, $E7, $01, $E1, $01 .byte $01, $E1, $01, $E1, $05, $E1, $01, $E1 .byte $01, $01, $E1, $01, $E1, $01, $E3, $01 .byte $E1, $01, $E1, $01, $01, $E1, $01, $E1 .byte $01, $E1, $01, $E1, $01, $E1, $01, $E1 .byte $01, $01, $E1, $01, $E1, $01, $E3, $01 .byte $E1, $01, $E1, $01, $01, $E1, $01, $E1 .byte $05, $E1, $01, $E1, $01, $01, $E1, $01 .byte $E7, $01, $E1, $01, $01, $E1, $09, $E1 .byte $01, $01, $EB, $01, $0D, $0D, $0D, $0D .byte $FF, $0D, $0D, $0D, $0D, $CD, $04, $C1 .byte $05, $C1, $61, $01, $01, $C1, $61, $01 .byte $C1, $05, $C1, $02, $01, $C1, $02, $C1 .byte $02, $C1, $02, $C1, $02, $01, $C1, $02 .byte $C1, $61, $01, $C1, $02, $C1, $02, $01 .byte $C1, $02, $C1, $02, $C1, $02, $C1, $02 .byte $01, $C1, $01, $61, $C1, $02, $C1, $01 .byte $61, $C1, $02, $01, $C1, $02, $C1, $02 .byte $C1, $02, $C1, $02, $01, $C1, $02, $C1 .byte $02, $C1, $02, $C1, $02, $01, $C1, $02 .byte $C1, $01, $61, $C1, $02, $C1, $02, $01 .byte $C1, $02, $C1, $02, $C1, $02, $C1, $02 .byte $01, $C1, $61, $04, $C1, $05, $01, $C1 .byte $05, $C1, $04, $61, $01, $CC, $0D, $FF .byte $0D, $0D, $0D, $0D, $01, $23, $01, $63 .byte $01, $23, $01, $01, $63, $01, $A3, $01 .byte $63, $01, $01, $63, $01, $A3, $01, $63 .byte $01, $01, $63, $01, $23, $01, $63, $01 .byte $01, $23, $01, $63, $01, $23, $01, $01 .byte $63, $01, $A3, $01, $63, $01, $01, $63 .byte $01, $A3, $01, $63, $01, $01, $63, $01 .byte $23, $01, $63, $01, $0D, $0D, $0D, $0D .byte $0D, $0D, $0D, $FF, $0D, $0D, $0D, $0D .byte $6D, $C1, $0B, $C1, $6D, $0D, $A1, $EB .byte $A1, $C1, $0B, $C1, $6D, $0D, $A1, $EB .byte $A1, $C1, $0B, $C1, $6D, $0D, $6D, $C1 .byte $0B, $C1, $0D, $FF, $0D, $0D, $0D, $0D .byte $0D, $41, $61, $C1, $67, $C1, $61, $41 .byte $41, $61, $21, $C1, $65, $C1, $21, $61 .byte $41, $41, $61, $22, $C1, $63, $C1, $22 .byte $61, $41, $41, $61, $23, $C1, $61, $C1 .byte $23, $61, $41, $41, $61, $24, $61, $24 .byte $61, $41, $41, $61, $24, $61, $24, $61 .byte $41, $41, $61, $24, $61, $24, $61, $41 .byte $41, $E1, $24, $A1, $24, $E1, $41, $42 .byte $E1, $23, $A1, $23, $E1, $42, $43, $E1 .byte $22, $A1, $22, $E1, $43, $44, $E1, $21 .byte $A1, $21, $E1, $44, $45, $E1, $A1, $E1 .byte $45, $0D, $0D, $FF, $0D, $0D, $0D, $0D .byte $06, $C1, $06, $04, $62, $01, $62, $04 .byte $02, $62, $02, $C1, $02, $62, $02, $62 .byte $02, $A2, $01, $A2, $02, $62, $02, $62 .byte $02, $C1, $02, $62, $02, $62, $02, $A2 .byte $01, $A2, $02, $62, $02, $62, $02, $C1 .byte $02, $62, $02, $62, $02, $A2, $01, $A2 .byte $02, $62, $02, $62, $02, $C1, $02, $62 .byte $02, $62, $02, $A2, $01, $A2, $02, $62 .byte $02, $62, $02, $C1, $02, $62, $02, $62 .byte $02, $A2, $01, $A2, $02, $62, $02, $62 .byte $05, $62, $02, $62, $09, $62, $0D, $FF .byte $0D, $0D, $0D, $0D, $06, $E1, $06, $03 .byte $A3, $E1, $23, $03, $02, $63, $A3, $23 .byte $02, $02, $62, $A5, $22, $02, $01, $63 .byte $A5, $23, $01, $01, $63, $A5, $23, $01 .byte $01, $63, $A5, $23, $01, $01, $E1, $02 .byte $E1, $01, $E1, $01, $E1, $02, $E1, $01 .byte $06, $E1, $06, $06, $E1, $06, $06, $E1 .byte $06, $04, $C1, $01, $C1, $06, $04, $C3 .byte $06, $05, $C1, $07, $0D, $FF, $0D, $0D .byte $0D, $0D, $61, $01, $C1, $47, $C1, $01 .byte $61, $61, $01, $C2, $45, $C2, $01, $61 .byte $61, $01, $C1, $01, $C1, $43, $C1, $01 .byte $C1, $01, $61, $61, $01, $C1, $01, $41 .byte $C1, $41, $C1, $41, $01, $C1, $01, $61 .byte $41, $01, $C1, $01, $41, $01, $E1, $01 .byte $41, $01, $C1, $01, $41, $61, $01, $C1 .byte $01, $41, $01, $21, $01, $41, $01, $C1 .byte $01, $61, $61, $01, $C1, $01, $41, $01 .byte $21, $01, $41, $01, $C1, $01, $61, $61 .byte $01, $C1, $01, $41, $01, $21, $01, $41 .byte $01, $C1, $01, $61, $61, $01, $C1, $01 .byte $41, $01, $21, $01, $41, $01, $C1, $01 .byte $61, $61, $C3, $41, $01, $21, $01, $41 .byte $C3, $61, $0D, $0D, $0D, $0D, $0D, $FF .byte $0D, $0D, $0D, $0D, $02, $C9, $02, $02 .byte $21, $41, $61, $41, $C1, $41, $61, $41 .byte $21, $02, $02, $21, $41, $61, $41, $C1 .byte $41, $61, $41, $21, $02, $02, $21, $41 .byte $61, $41, $C1, $41, $61, $41, $21, $02 .byte $02, $21, $41, $61, $43, $61, $41, $21 .byte $02, $02, $21, $41, $61, $41, $C1, $41 .byte $61, $41, $21, $02, $02, $21, $41, $61 .byte $41, $C1, $41, $61, $41, $21, $02, $02 .byte $21, $41, $61, $41, $C1, $41, $61, $41 .byte $21, $02, $02, $C9, $02, $0D, $0D, $0D .byte $0D, $0D, $0D, $FF, $0D, $0D, $0D, $0D .byte $C1, $21, $C1, $61, $C1, $41, $C1, $21 .byte $C1, $61, $C1, $61, $C1, $C1, $41, $C1 .byte $E1, $C1, $E1, $C1, $E1, $C1, $E1, $C1 .byte $21, $C1, $0D, $C1, $61, $C1, $01, $C1 .byte $01, $C1, $01, $C1, $01, $C1, $01, $C1 .byte $C1, $01, $C1, $61, $C1, $01, $C1, $01 .byte $C1, $01, $C1, $01, $C1, $C1, $01, $C1 .byte $01, $C1, $61, $C1, $01, $C1, $01, $C1 .byte $01, $C1, $C1, $01, $C1, $01, $C1, $01 .byte $C1, $61, $C1, $01, $C1, $01, $C1, $C1 .byte $01, $C1, $01, $C1, $01, $C1, $01, $C1 .byte $61, $C1, $01, $C1, $0B, $61, $01, $02 .byte $C1, $01, $C1, $01, $C1, $01, $C1, $61 .byte $C1, $02, $02, $C1, $01, $C1, $01, $C1 .byte $61, $C1, $01, $C1, $02, $02, $C1, $01 .byte $C1, $61, $C1, $01, $C1, $01, $C1, $02 .byte $03, $61, $C1, $01, $C1, $01, $C1, $04 .byte $01, $61, $04, $C1, $06, $0D, $FF, $0D .byte $0D, $0D, $01, $C1, $69, $C1, $01, $01 .byte $C1, $09, $C1, $01, $01, $C1, $01, $C7 .byte $01, $C1, $01, $01, $C1, $01, $C1, $05 .byte $C1, $01, $C1, $01, $01, $C1, $01, $C1 .byte $05, $C1, $01, $C1, $01, $01, $C1, $01 .byte $C1, $01, $63, $01, $C1, $01, $C1, $01 .byte $01, $C1, $01, $C1, $01, $63, $01, $C1 .byte $01, $C1, $01, $01, $C1, $01, $C1, $01 .byte $63, $01, $C1, $01, $C1, $01, $01, $C1 .byte $01, $C1, $01, $63, $01, $C1, $01, $C1 .byte $01, $01, $C1, $01, $C1, $05, $C1, $01 .byte $C1, $01, $01, $C1, $01, $C1, $65, $C1 .byte $01, $C1, $01, $01, $C1, $09, $C1, $01 .byte $01, $C1, $09, $C1, $01, $01, $CB, $01 .byte $0D, $0D, $FF, $0D, $0D, $0D, $0D, $6D .byte $6D, $0D, $62, $C1, $01, $C1, $63, $C1 .byte $01, $C1, $62, $62, $C1, $01, $C1, $63 .byte $C1, $01, $C1, $62, $62, $C1, $01, $C1 .byte $63, $C1, $01, $A1, $62, $62, $C1, $01 .byte $C1, $63, $C1, $01, $C1, $62, $0D, $6D .byte $6D, $0D, $0D, $0D, $0D, $0D, $FF, $0D .byte $0D, $0D, $0D, $6D, $0D, $02, $E3, $01 .byte $E3, $01, $E3, $02, $E1, $A1, $E1, $01 .byte $E1, $A1, $E1, $01, $E1, $A1, $E1, $02 .byte $E3, $01, $E3, $01, $E3, $0D, $01, $E3 .byte $01, $E3, $01, $E3, $01, $01, $E1, $A1 .byte $E1, $01, $E1, $A1, $E1, $01, $E1, $A1 .byte $E1, $01, $01, $E3, $01, $E3, $01, $E3 .byte $01, $0D, $E3, $01, $E3, $01, $E3, $02 .byte $E1, $A1, $E1, $01, $E1, $A1, $E1, $01 .byte $E1, $A1, $E1, $02, $E3, $01, $E3, $01 .byte $E3, $02, $0D, $0D, $FF, $0D, $0D, $0D .byte $0D, $0D, $0D, $05, $63, $05, $05, $63 .byte $05, $05, $63, $05, $04, $65, $04, $04 .byte $61, $A1, $61, $A1, $61, $04, $03, $61 .byte $A2, $61, $A2, $61, $03, $03, $A7, $03 .byte $02, $A9, $02, $02, $A9, $02, $01, $AB .byte $01, $AD, $0D, $0D, $FF, $0D, $0D, $0D .byte $0D, $6D, $6D, $6D, $C5, $E3, $C5, $C1 .byte $63, $C1, $03, $C1, $23, $C1, $C1, $63 .byte $C1, $03, $C1, $23, $C1, $C1, $0B, $C1 .byte $C1, $0B, $C1, $C1, $03, $C1, $63, $C1 .byte $03, $C1, $C1, $03, $C1, $63, $C1, $03 .byte $C1, $C1, $E3, $C5, $E3, $C1, $0D, $0D .byte $0D, $0D, $FF, $0D, $0D, $0D, $0D, $02 .byte $C1, $E3, $C1, $06, $01, $C1, $05, $C1 .byte $05, $C1, $02, $63, $02, $C1, $04, $C1 .byte $01, $65, $01, $C1, $04, $C1, $01, $65 .byte $01, $C1, $04, $C1, $02, $63, $02, $C1 .byte $04, $01, $C1, $05, $C1, $05, $02, $C5 .byte $06, $0D, $0D, $0D, $0D, $0D, $0D, $0D .byte $FF, $0D, $0D, $0D, $0D, $0D, $0D, $0D .byte $0D, $0D, $ED, $6D, $ED, $0D, $ED, $6D .byte $ED, $0D, $0D, $0D, $FF, $0D, $0D, $0D .byte $6D, $61, $C4, $41, $C1, $41, $C4, $61 .byte $61, $C1, $09, $C1, $61, $61, $C1, $41 .byte $07, $41, $C1, $61, $61, $C1, $42, $05 .byte $42, $C1, $61, $61, $C1, $43, $03, $43 .byte $C1, $61, $01, $61, $C1, $43, $01, $43 .byte $C1, $61, $01, $02, $61, $C1, $45, $C1 .byte $61, $02, $03, $61, $C1, $43, $C1, $61 .byte $03, $04, $61, $C1, $41, $C1, $61, $04 .byte $05, $61, $41, $61, $05, $06, $61, $06 .byte $0D, $0D, $0D, $0D, $FF, $0D, $0D, $0D .byte $0D, $65, $C1, $01, $C1, $65, $65, $C1 .byte $01, $C1, $65, $C2, $61, $C3, $01, $C3 .byte $61, $C2, $65, $C1, $01, $C1, $65, $65 .byte $C1, $01, $C1, $65, $65, $C1, $01, $C1 .byte $65, $65, $C1, $01, $C1, $65, $E2, $41 .byte $E2, $C1, $01, $C1, $E2, $41, $E2, $65 .byte $C1, $01, $C1, $65, $65, $C1, $01, $C1 .byte $65, $0D, $0D, $0D, $0D, $0D, $FF, $0D .byte $0D, $0D, $0D, $21, $41, $0B, $21, $41 .byte $21, $41, $09, $21, $41, $21, $41, $21 .byte $41, $07, $21, $41, $21, $41, $21, $41 .byte $21, $41, $05, $21, $41, $21, $41, $21 .byte $41, $21, $41, $21, $41, $03, $E1, $41 .byte $21, $41, $21, $41, $21, $41, $21, $41 .byte $21, $41, $01, $01, $C1, $E1, $41, $21 .byte $41, $21, $41, $21, $41, $21, $41, $21 .byte $03, $C1, $E1, $41, $21, $41, $21, $41 .byte $21, $41, $21, $05, $C1, $E1, $41, $21 .byte $41, $21, $41, $21, $07, $C1, $E1, $41 .byte $21, $41, $21, $09, $C1, $E1, $41, $21 .byte $0B, $C1, $E1, $0D, $0D, $0D, $FF, $0D .byte $0D, $0D, $0D, $61, $01, $A1, $01, $21 .byte $01, $41, $01, $61, $01, $A1, $01, $21 .byte $E1, $01, $E1, $01, $E1, $01, $E1, $01 .byte $E1, $01, $E1, $01, $E1, $01, $21, $01 .byte $A1, $01, $61, $01, $41, $01, $21, $01 .byte $A1, $01, $01, $E1, $01, $E1, $01, $E1 .byte $01, $E1, $01, $E1, $01, $E1, $01, $41 .byte $01, $61, $01, $A1, $01, $21, $01, $A1 .byte $01, $61, $01, $41, $E1, $01, $E1, $01 .byte $E1, $01, $E1, $01, $E1, $01, $E1, $01 .byte $E1, $01, $A1, $01, $21, $01, $A1, $01 .byte $61, $01, $41, $01, $A1, $01, $01, $E1 .byte $01, $E1, $01, $E1, $01, $E1, $01, $E1 .byte $01, $E1, $01, $61, $01, $41, $01, $61 .byte $01, $A1, $01, $21, $01, $A1, $01, $61 .byte $E1, $01, $E1, $01, $E1, $01, $E1, $01 .byte $E1, $01, $E1, $01, $E1, $01, $61, $01 .byte $A1, $01, $21, $01, $A1, $01, $61, $01 .byte $41, $01, $01, $E1, $01, $E1, $01, $E1 .byte $01, $E1, $01, $E1, $01, $E1, $01, $61 .byte $01, $A1, $01, $61, $01, $41, $01, $61 .byte $01, $21, $01, $A1, $E1, $01, $E1, $01 .byte $E1, $01, $E1, $01, $E1, $01, $E1, $01 .byte $E1, $0D, $FF, $0D, $0D, $0D, $0D, $02 .byte $C1, $01, $C1, $01, $C1, $01, $C1, $01 .byte $C1, $02, $02, $C1, $01, $C1, $01, $C1 .byte $01, $C1, $01, $C1, $02, $02, $C1, $01 .byte $C1, $01, $C1, $01, $C1, $62, $02, $02 .byte $C1, $01, $C1, $01, $C1, $01, $C1, $01 .byte $C1, $02, $02, $C1, $01, $C1, $01, $C1 .byte $64, $02, $02, $C1, $01, $C1, $01, $C1 .byte $01, $C1, $01, $C1, $02, $02, $C1, $01 .byte $C1, $66, $02, $02, $C1, $01, $C1, $01 .byte $C1, $01, $C1, $01, $C1, $02, $02, $C1 .byte $65, $C1, $62, $02, $02, $C1, $01, $C1 .byte $01, $C1, $01, $C1, $01, $C1, $02, $02 .byte $69, $02, $02, $69, $02, $0D, $0D, $0D .byte $FF, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $05, $00 .byte $EF, $00, $75, $00, $46, $00, $3D, $00 .byte $65, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $0F, $00, $0F, $00, $0E, $EF, $0F, $EE .byte $0F, $EE, $0F, $EF, $0E, $EF, $0F, $EF .byte $0F, $EF, $0F, $EF, $0F, $EF, $0E, $EE .byte $07, $BA, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $75, $00, $00, $00, $0F, $06, $00, $00 .byte $EE, $00, $00, $00, $0F, $06, $00, $00 .byte $3A, $00, $00, $00, $44, $06, $00, $00 .byte $49, $00, $00, $00, $4D, $06, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $09, $EF, $06, $ED, $06, $EE, $06, $EF .byte $07, $EF, $07, $EF, $00, $EF, $07, $EF .byte $07, $EF, $07, $EF, $07, $EF, $07, $EE .byte $06, $EF, $07, $ED, $00, $00, $00, $00 .byte $00, $00, $0F, $00, $0F, $00, $0F, $00 .byte $0F, $00, $06, $00, $06, $00, $07, $EE .byte $07, $EF, $06, $00, $07, $00, $06, $00 .byte $06, $00, $07, $00, $07, $00, $07, $00 .byte $06, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $EF, $4D, $EF, $4C .byte $EF, $4C, $EE, $4A, $EF, $4B, $EF, $07 .byte $EF, $4B, $EF, $4A, $EF, $4A, $EF, $4B .byte $EF, $06, $EF, $4A, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $3D, $03, $3C, $00 .byte $3D, $EF, $3C, $EE, $3C, $EF, $3D, $EE .byte $3D, $EF, $24, $EF, $06, $EF, $10, $EF .byte $00, $EF, $00, $EE, $00, $EE, $01, $EF .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $07, $06, $00, $07, $0C, $07, $12, $0F .byte $EF, $07, $0F, $07, $77, $00, $EF, $06 .byte $3B, $07, $0F, $00, $00, $06, $00, $06 .byte $08, $07, $00, $00, $00, $00, $00, $00 .byte $00, $00, $0A, $06, $7B, $06, $0F, $06 .byte $00, $06, $00, $00, $0F, $00, $0F, $EF .byte $0F, $00, $0F, $74, $0F, $FE, $0F, $3A .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $01, $06, $00, $00 .byte $00, $06, $00, $07, $00, $07, $3A, $07 .byte $3B, $07, $3B, $07, $3A, $06, $3A, $07 .byte $3B, $06, $3A, $06, $3B, $06, $3B, $07 .byte $00, $06, $00, $06, $00, $06, $00, $06 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $07, $00, $07, $00, $07, $00 .byte $06, $00, $07, $00, $07, $00, $07, $00 .byte $07, $00, $07, $00, $07, $00, $07, $00 .byte $06, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $0A, $06, $EE, $06, $0F, $06, $00, $06 .byte $72, $06, $00, $06, $36, $07, $00, $07 .byte $00, $06, $EF, $06, $08, $06, $0F, $07 .byte $75, $07, $0B, $06, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $0F, $00 .byte $0E, $B8, $4D, $0F, $EF, $00, $EF, $00 .byte $0F, $4C, $B9, $0F, $0E, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $5A, $00, $0A, $07 .byte $4A, $00, $00, $00, $0B, $FF, $00, $07 .byte $0F, $00, $00, $00, $0B, $75, $00, $06 .byte $EF, $00, $00, $00, $EF, $00, $00, $06 .byte $00, $00, $00, $0B, $00, $00, $00, $00 .byte $00, $00, $00, $00, $0F, $05, $0E, $05 .byte $0F, $05, $0F, $05, $0E, $00, $0E, $00 .byte $0F, $00, $08, $0F, $08, $0F, $09, $0F .byte $08, $0F, $09, $0F, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $05, $0F, $00, $0F, $04, $0E, $EF .byte $EF, $04, $EE, $0F, $0F, $04, $0F, $74 .byte $75, $05, $75, $EF, $EF, $04, $EF, $3A .byte $3A, $00, $3A, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $0A, $00 .byte $0A, $3B, $3B, $0F, $3B, $0F, $3A, $0F .byte $3B, $0F, $3B, $0F, $09, $05, $08, $00 .byte $09, $00, $08, $00, $00, $04, $00, $04 .byte $00, $05, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $EE, $04, $EE, $04 .byte $EE, $04, $EF, $04, $09, $04, $EF, $04 .byte $EF, $04, $EE, $04, $EF, $04, $EF, $04 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $07, $04, $EF, $04, $EF, $04 .byte $EE, $04, $EE, $00, $EF, $04, $EE, $04 .byte $EF, $04, $00, $04, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $EF, $04, $09, $04, $00, $00, $3A, $04 .byte $3A, $04, $3A, $04, $3A, $04, $3B, $04 .byte $3B, $00, $3B, $04, $3B, $04, $3A, $04 .byte $3B, $04, $3B, $04, $00, $00, $00, $00 .byte $00, $00, $00, $00, $EF, $04, $00, $04 .byte $00, $04, $00, $04, $00, $04, $EF, $04 .byte $75, $04, $49, $04, $0F, $04, $00, $04 .byte $0F, $04, $00, $04, $00, $04, $00, $04 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $BA, $00, $BB, $00 .byte $00, $00, $2B, $BA, $2B, $BA, $2B, $BB .byte $2B, $BB, $00, $00, $77, $00, $76, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $0E, $00, $00, $00, $09, $02 .byte $08, $B9, $09, $00, $00, $00, $08, $00 .byte $08, $1A, $08, $00, $00, $00, $08, $00 .byte $08, $74, $08, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $0F, $00, $0F, $00 .byte $0F, $00, $0F, $00, $0F, $74, $0F, $74 .byte $00, $74, $00, $74, $00, $74, $00, $74 .byte $0D, $75, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $2C, $00 .byte $0F, $00, $73, $03, $09, $AD, $2D, $AC .byte $2D, $AC, $00, $AC, $00, $AA, $CA, $AD .byte $CA, $AA, $09, $AB, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $08, $AC, $00, $AC .byte $0F, $AD, $EF, $AB, $75, $AB, $4B, $AB .byte $00, $AA, $00, $AB, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $07, $03, $EF, $00 .byte $06, $00, $00, $00, $06, $00, $1D, $00 .byte $06, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $65, $02 .byte $65, $CF, $64, $CF, $65, $CF, $65, $CF .byte $65, $CF, $65, $CF, $65, $CF, $64, $CF .byte $65, $CF, $64, $00, $65, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $EF, $04 .byte $47, $04, $0F, $04, $65, $04, $35, $04 .byte $B7, $04, $0F, $04, $09, $04, $16, $04 .byte $0F, $04, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $06, $04 .byte $06, $FC, $06, $FC, $06, $FC, $06, $FC .byte $06, $FC, $06, $FC, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $EF, $36, $06, $00, $EE, $36 .byte $06, $00, $47, $36, $06, $00, $EF, $36 .byte $06, $00, $EF, $36, $06, $00, $EF, $18 .byte $06, $00, $0F, $18, $06, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $FD, $DB, $00, $DB, $0F, $DB, $00, $DB .byte $1F, $DB, $00, $DB, $65, $DB, $00, $DB .byte $0F, $DB, $00, $DA, $0F, $00, $64, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 L_7FFA .byte $00, $00, $00, $00, $03, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $03 .byte $0C, $03, $0F, $0F, $03, $00, $00, $C5 .byte $0F, $C5, $C5, $CF, $C5, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $53 .byte $F0, $53, $53, $F3, $53, $00, $00, $C0 .byte $30, $C0, $F0, $F0, $C0, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $03, $00, $03, $03, $00, $00, $00, $F1 .byte $03, $F1, $F1, $F3, $F1, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $54 .byte $FC, $54, $54, $FC, $54, $00, $00, $F0 .byte $0C, $F0, $FC, $FC, $F0, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $3C .byte $C0, $3C, $FC, $FC, $3C, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $3C .byte $03, $3C, $3F, $3F, $3C, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $0F .byte $30, $0F, $3F, $3F, $0F, $00, $00, $15 .byte $3F, $15, $15, $3F, $15, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $4F .byte $C0, $4F, $4F, $CF, $4F, $00, $00, $00 .byte $C0, $00, $C0, $C0, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $03, $00, $03, $03, $00, $00, $00, $F1 .byte $03, $F1, $F1, $F3, $F1, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $4F .byte $C0, $4F, $4F, $CF, $4F, $00, $00, $00 .byte $C0, $00, $C0, $C0, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $3C .byte $C0, $3C, $FC, $FC, $3C, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $53 .byte $F0, $53, $53, $F3, $53, $00, $00, $C0 .byte $30, $C0, $F0, $F0, $C0, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $0F .byte $30, $0F, $3F, $3F, $0F, $00, $00, $15 .byte $3F, $15, $15, $3F, $15, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $54 .byte $FC, $54, $54, $FC, $54, $00, $00, $F0 .byte $0C, $F0, $FC, $FC, $F0, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $03 .byte $0C, $03, $0F, $0F, $03, $00, $00, $C5 .byte $0F, $C5, $C5, $CF, $C5, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $3C .byte $03, $3C, $3F, $3F, $3C, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $0F .byte $30, $0F, $3F, $3F, $0F, $00, $00, $15 .byte $3F, $15, $15, $3F, $15, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $3C .byte $03, $3C, $3F, $3F, $3C, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $03 .byte $0C, $03, $0F, $0F, $03, $00, $00, $C5 .byte $0F, $C5, $C5, $CF, $C5, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $4F .byte $C0, $4F, $4F, $CF, $4F, $00, $00, $00 .byte $C0, $00, $C0, $C0, $00, $00, $00, $00 .byte $03, $00, $03, $03, $00, $00, $00, $F1 .byte $03, $F1, $F1, $F3, $F1, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $53 .byte $F0, $53, $53, $F3, $53, $00, $00, $C0 .byte $30, $C0, $F0, $F0, $C0, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $3C .byte $C0, $3C, $FC, $FC, $3C, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $55 .byte $FF, $55, $55, $FF, $55, $00, $00, $54 .byte $FC, $54, $54, $FC, $54, $00, $00, $F0 .byte $0C, $F0, $FC, $FC, $F0, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $03, $0F .byte $3C, $FF, $FC, $F1, $0C, $00, $C0, $3F .byte $C0, $FF, $00, $55, $55, $00, $00, $FF .byte $00, $FF, $30, $31, $31, $00, $0F, $F3 .byte $0C, $FF, $00, $55, $54, $00, $00, $C0 .byte $F0, $FC, $FC, $3C, $C0, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $03 .byte $0F, $3F, $3F, $3C, $03, $00, $F0, $CF .byte $30, $FF, $00, $55, $15, $00, $00, $FF .byte $00, $FF, $0C, $4C, $4C, $00, $03, $FC .byte $03, $FF, $00, $55, $55, $00, $C0, $F0 .byte $3C, $FF, $3F, $4F, $30, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $03, $0F, $0F, $0F, $00, $00, $3C, $F3 .byte $CC, $FF, $C0, $15, $C5, $00, $00, $FF .byte $00, $FF, $03, $53, $53, $00, $00, $FF .byte $00, $FF, $00, $15, $15, $00, $F0, $3C .byte $CF, $FF, $0F, $53, $4C, $00, $00, $00 .byte $00, $C0, $C0, $C0, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $03, $03, $03, $00, $00, $0F, $3C .byte $F3, $FF, $F0, $C5, $31, $00, $00, $FF .byte $00, $FF, $00, $54, $54, $00, $00, $FF .byte $00, $FF, $C0, $C5, $C5, $00, $3C, $CF .byte $33, $FF, $03, $54, $53, $00, $00, $00 .byte $C0, $F0, $F0, $F0, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FC, $F0 .byte $C0, $C0, $C0, $C0, $F0, $FC, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $3F, $0F .byte $03, $03, $03, $03, $0F, $3F, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FC .byte $F0, $F0, $F0, $F0, $FC, $FF, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $0F, $03 .byte $00, $00, $00, $00, $03, $0F, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FC, $FC, $FC, $FC, $FF, $FF, $C0, $00 .byte $00, $00, $00, $00, $00, $C0, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $03, $00 .byte $00, $00, $00, $00, $00, $03, $FF, $FF .byte $3F, $3F, $3F, $3F, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $F0, $C0 .byte $00, $00, $00, $00, $C0, $F0, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $FF, $3F .byte $0F, $0F, $0F, $0F, $3F, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FC .byte $F0, $F0, $F0, $F0, $FC, $FF, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $FF, $3F .byte $0F, $0F, $0F, $0F, $3F, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FC, $FC, $FC, $FC, $FF, $FF, $C0, $00 .byte $00, $00, $00, $00, $00, $C0, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $3F, $0F .byte $03, $03, $03, $03, $0F, $3F, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $F0, $C0 .byte $00, $00, $00, $00, $C0, $F0, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $0F, $03 .byte $00, $00, $00, $00, $03, $0F, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FC, $F0 .byte $C0, $C0, $C0, $C0, $F0, $FC, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $03, $00 .byte $00, $00, $00, $00, $00, $03, $FF, $FF .byte $3F, $3F, $3F, $3F, $FF, $FF, $F0, $C0 .byte $00, $00, $00, $00, $C0, $F0, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $03, $00 .byte $00, $00, $00, $00, $00, $03, $FF, $FF .byte $3F, $3F, $3F, $3F, $FF, $FF, $FC, $F0 .byte $C0, $C0, $C0, $C0, $F0, $FC, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $FF, $3F .byte $0F, $0F, $0F, $0F, $3F, $FF, $FF, $FC .byte $F0, $F0, $F0, $F0, $FC, $FF, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $3F, $0F .byte $03, $03, $03, $03, $0F, $3F, $FF, $FF .byte $FC, $FC, $FC, $FC, $FF, $FF, $C0, $00 .byte $00, $00, $00, $00, $00, $C0, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $0F, $03 .byte $00, $00, $00, $00, $03, $0F, $FF, $FF .byte $FF, $FC, $FC, $FC, $FF, $FF, $F0, $C0 .byte $00, $00, $00, $00, $00, $F3, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $03, $3F, $0F .byte $03, $00, $00, $00, $03, $3F, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FC, $F0 .byte $C0, $00, $00, $00, $C0, $FC, $00, $00 .byte $00, $00, $00, $00, $00, $C0, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $0F, $03 .byte $00, $00, $00, $00, $00, $CF, $FF, $FF .byte $FF, $3F, $3F, $3F, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FC .byte $F0, $C0, $C0, $C0, $F0, $FF, $00, $00 .byte $00, $00, $00, $00, $00, $30, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $03, $00 .byte $00, $00, $00, $00, $00, $33, $FF, $FF .byte $3F, $0F, $0F, $0F, $3F, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FC, $F0, $F0, $F0, $FC, $FF, $C0, $00 .byte $00, $00, $00, $00, $00, $CC, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $0C, $FF, $3F .byte $0F, $03, $03, $03, $0F, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF ; Brick Charset CHARSET_BRICK .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $3F, $3F, $3F, $3F, $3F, $3F, $00 .byte $00, $FC, $FC, $FC, $FC, $FC, $FC, $00 .byte $00, $3F, $3F, $3F, $3F, $3F, $3F, $00 .byte $00, $FC, $FC, $FC, $FC, $FC, $FC, $00 .byte $00, $15, $15, $15, $15, $15, $15, $00 .byte $00, $54, $54, $54, $54, $54, $54, $00 .byte $00, $2A, $2A, $2A, $2A, $2A, $2A, $00 .byte $00, $A8, $A8, $A8, $A8, $A8, $A8, $00 .byte $00, $3F, $3F, $3F, $3F, $3F, $3F, $00 .byte $00, $FC, $FC, $FC, $FC, $FD, $FD, $15 .byte $00, $3F, $3F, $3F, $3F, $3F, $3F, $01 .byte $00, $FC, $FC, $FD, $FD, $FD, $FD, $55 .byte $00, $3F, $3F, $3F, $3F, $3F, $3F, $55 .byte $00, $FD, $FD, $FD, $FD, $FD, $FD, $55 .byte $55, $7F, $7F, $7F, $7F, $7F, $7F, $55 .byte $55, $FD, $FD, $FD, $FD, $FD, $FD, $55 .byte $55, $55, $55, $55, $55, $55, $55, $55 .byte $55, $55, $55, $55, $55, $55, $55, $55 .byte $00, $00, $00, $00, $01, $01, $01, $01 .byte $00, $15, $55, $50, $40, $4A, $2A, $28 .byte $00, $54, $55, $05, $01, $A1, $A8, $28 .byte $00, $00, $00, $00, $40, $40, $40, $40 .byte $00, $55, $55, $00, $00, $AA, $AA, $00 .byte $02, $02, $02, $02, $00, $00, $00, $00 .byte $14, $15, $85, $80, $A0, $AA, $2A, $00 .byte $14, $54, $52, $02, $0A, $AA, $A8, $00 .byte $80, $80, $80, $80, $00, $00, $00, $00 .byte $00, $55, $55, $00, $00, $AA, $AA, $00 .byte $00, $3F, $3F, $3F, $3F, $3F, $3F, $00 .byte $00, $FC, $FC, $FC, $FC, $FC, $FC, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $01, $00, $01, $05, $05, $05, $05 .byte $00, $28, $00, $28, $28, $28, $28, $28 .byte $05, $00, $05, $00, $05, $00, $05, $00 .byte $28, $00, $28, $00, $28, $00, $28, $00 .byte $05, $05, $05, $05, $01, $00, $01, $00 .byte $28, $28, $28, $28, $28, $00, $28, $00 .byte $01, $01, $01, $01, $01, $01, $01, $01 .byte $28, $28, $28, $28, $28, $28, $28, $28 .byte $00, $14, $00, $14, $14, $14, $14, $14 .byte $00, $80, $00, $80, $A0, $A0, $A0, $A0 .byte $14, $00, $14, $00, $14, $00, $14, $00 .byte $A0, $00, $A0, $00, $A0, $00, $A0, $00 .byte $14, $14, $14, $14, $14, $00, $14, $00 .byte $A0, $A0, $A0, $A0, $80, $00, $80, $00 .byte $14, $14, $14, $14, $14, $14, $14, $14 .byte $80, $80, $80, $80, $80, $80, $80, $80 .byte $05, $15, $2A, $00, $00, $2A, $2A, $0A .byte $00, $14, $28, $00, $00, $28, $28, $28 .byte $50, $54, $A8, $00, $00, $A8, $A8, $A0 .byte $05, $15, $2A, $00, $00, $2A, $2A, $0A .byte $00, $14, $28, $00, $00, $28, $28, $28 .byte $50, $54, $A8, $00, $00, $A8, $A8, $A0 .byte $AA, $AA, $A8, $A8, $A2, $00, $A2, $A2 .byte $0A, $20, $8A, $8A, $A2, $A2, $08, $A0 .byte $A2, $A2, $00, $80, $80, $00, $00, $00 .byte $A0, $02, $02, $0A, $0A, $2A, $20, $0A .byte $A2, $A2, $00, $80, $80, $00, $00, $00 .byte $A0, $00, $02, $02, $0A, $0A, $20, $0A .byte $AA, $AA, $A8, $A8, $A2, $00, $A2, $A2 .byte $0A, $20, $8A, $8A, $A2, $A2, $08, $A0 .byte $AA, $AA, $A8, $A8, $A2, $00, $A2, $A2 .byte $0A, $20, $8A, $8A, $A2, $A2, $08, $A0 .byte $A2, $A2, $00, $80, $80, $00, $00, $00 .byte $A0, $00, $02, $02, $0A, $0A, $20, $0A .byte $A2, $A2, $00, $80, $80, $00, $00, $00 .byte $A0, $08, $02, $02, $0A, $0A, $20, $0A .byte $AA, $AA, $A8, $A8, $A2, $00, $A2, $A2 .byte $0A, $20, $8A, $8A, $A2, $A2, $08, $A0 .byte $0A, $20, $8A, $8A, $A2, $A2, $08, $A0 .byte $A0, $A3, $0C, $83, $8F, $0F, $03, $00 .byte $00, $C5, $0F, $C5, $C5, $CF, $C5, $00 .byte $00, $55, $FF, $55, $55, $FF, $55, $00 .byte $00, $53, $F0, $53, $53, $F3, $53, $00 .byte $22, $C2, $30, $C0, $F0, $F0, $C0, $00 .byte $A0, $00, $02, $02, $0A, $0A, $20, $0A .byte $AA, $AA, $A8, $A8, $A2, $00, $A2, $A2 .byte $88, $22, $88, $20, $80, $00, $80, $22 .byte $08, $20, $88, $02, $80, $22, $08, $20 .byte $80, $22, $00, $00, $80, $00, $00, $00 .byte $80, $02, $00, $02, $08, $22, $00, $02 .byte $80, $22, $00, $00, $80, $00, $00, $00 .byte $80, $00, $00, $02, $08, $02, $00, $02 .byte $88, $22, $88, $20, $80, $00, $80, $22 .byte $08, $20, $88, $02, $80, $22, $08, $20 .byte $88, $22, $88, $20, $80, $00, $80, $22 .byte $08, $20, $88, $02, $80, $22, $08, $20 .byte $80, $22, $00, $00, $80, $00, $00, $00 .byte $80, $00, $00, $02, $08, $02, $00, $02 .byte $80, $22, $00, $00, $80, $00, $00, $00 .byte $80, $00, $00, $02, $08, $02, $00, $02 .byte $88, $22, $88, $20, $80, $00, $80, $22 .byte $08, $20, $88, $02, $80, $22, $08, $20 .byte $19, $19, $25, $A8, $68, $98, $64, $14 .byte $A0, $00, $02, $02, $0A, $0A, $20, $02 .byte $05, $05, $0A, $00, $00, $00, $00, $00 .byte $A0, $00, $02, $42, $A2, $52, $68, $56 .byte $66, $55, $25, $16, $16, $8A, $2A, $96 .byte $56, $96, $40, $00, $00, $00, $00, $00 .byte $A0, $00, $02, $02, $0A, $0A, $20, $0A .byte $00, $80, $80, $00, $00, $00, $80, $80 .byte $80, $00, $00, $00, $00, $00, $00, $00 .byte $00, $32, $32, $05, $06, $06, $05, $19 .byte $19, $19, $25, $AA, $6A, $9A, $65, $15 .byte $A2, $A2, $00, $80, $80, $00, $00, $00 .byte $00, $00, $00, $80, $80, $80, $80, $60 .byte $A1, $63, $A3, $A8, $A8, $98, $58, $A1 .byte $A0, $08, $02, $02, $0A, $0A, $20, $0A .byte $AA, $AA, $A8, $A8, $A2, $00, $A2, $A2 .byte $A2, $A2, $00, $80, $80, $00, $00, $00 .byte $AA, $AA, $A8, $A8, $A2, $00, $A2, $A2 .byte $00, $32, $32, $05, $06, $06, $05, $19 .byte $19, $19, $25, $AA, $6A, $9A, $65, $15 .byte $A2, $A2, $00, $80, $80, $00, $00, $00 .byte $00, $00, $00, $80, $80, $80, $80, $60 .byte $A1, $63, $A3, $A8, $A8, $98, $58, $A1 .byte $A0, $08, $02, $02, $0A, $0A, $20, $0A .byte $A2, $A2, $00, $80, $80, $00, $00, $00 .byte $AA, $AA, $A8, $A8, $A2, $00, $A2, $A2 .byte $AA, $AA, $A8, $A8, $A2, $00, $A2, $A2 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 L_8BE8 .byte $00, $00, $00, $00, $00, $00, $00, $00 L_8BF0 .byte $04, $11, $11, $04, $11, $11, $04, $11 .byte $00, $00, $00, $00, $00, $00, $00, $00 ; Text Charset CHARSET_TEXT .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $1C, $22, $5D, $51, $5D, $22, $1C .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $06, $0C, $18, $30, $60, $C0 .byte $00, $08, $0C, $7E, $7F, $7E, $0C, $08 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $7C, $FE, $C6, $C6, $C6, $FE, $7C .byte $00, $38, $38, $18, $18, $18, $3C, $3C .byte $00, $FC, $FE, $CE, $1C, $38, $7E, $FE .byte $00, $7C, $FE, $C6, $0C, $C6, $FE, $7C .byte $00, $C0, $C0, $CC, $FE, $7E, $0C, $0C .byte $00, $FE, $FE, $C0, $7C, $06, $FE, $FC .byte $00, $7C, $FE, $C0, $FC, $C6, $FE, $7C .byte $00, $FC, $FE, $06, $06, $06, $06, $06 .byte $00, $7C, $FE, $C6, $7C, $C6, $FE, $7C .byte $00, $7C, $FE, $C6, $7E, $06, $7E, $7C .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $FC, $FE, $06, $DE, $C6, $C6, $C6 .byte $00, $FC, $FE, $06, $DC, $C6, $C6, $FC .byte $00, $FC, $FE, $06, $C0, $C6, $FE, $FC .byte $00, $FC, $FE, $06, $C6, $C6, $FE, $FC .byte $00, $FE, $FE, $00, $F0, $C0, $FE, $FE .byte $00, $FE, $FE, $00, $F0, $C0, $C0, $C0 .byte $00, $FC, $FE, $00, $CE, $C6, $FE, $FC .byte $00, $C6, $C6, $06, $DE, $C6, $C6, $C6 .byte $00, $3C, $3C, $00, $18, $18, $3C, $3C .byte $00, $1E, $1E, $00, $06, $C6, $FE, $7C .byte $00, $C6, $C6, $0C, $F8, $CC, $C6, $C6 .byte $00, $C0, $C0, $00, $C0, $C0, $FE, $FE .byte $00, $EE, $FE, $16, $D6, $C6, $C6, $C6 .byte $00, $FC, $FE, $06, $C6, $C6, $C6, $C6 .byte $00, $FC, $FE, $06, $C6, $C6, $FE, $7C .byte $00, $FC, $FE, $06, $C6, $FC, $E0, $E0 .byte $00, $FC, $FE, $06, $C6, $FE, $7C, $0E .byte $00, $FC, $FE, $06, $FE, $FC, $CE, $C6 .byte $00, $FC, $FE, $00, $FC, $06, $FE, $FC .byte $00, $FE, $FE, $00, $38, $38, $38, $38 .byte $00, $C6, $C6, $06, $C6, $C6, $FE, $7C .byte $00, $C6, $C6, $06, $C6, $C6, $7C, $38 .byte $00, $C6, $C6, $06, $D6, $FE, $FE, $EE .byte $00, $C6, $C6, $6C, $38, $6C, $C6, $C6 .byte $00, $C6, $C6, $06, $EE, $7C, $38, $38 .byte $00, $FE, $FE, $00, $38, $70, $FE, $FE .byte $00, $00, $00, $00, $00, $00, $18, $18 .byte $00, $66, $66, $66, $00, $00, $00, $00 .byte $00, $18, $18, $18, $18, $18, $00, $18 .byte $00, $7C, $FE, $C6, $06, $0C, $00, $0C .byte $00, $10, $30, $7F, $7F, $30, $10, $00 lda L_367B+4 beq L_8E10 cmp #$06 beq L_8E17 ldx #$7A ldy #$8E jmp L_8E1B L_8E10 ldx #$24 ldy #$8E jmp L_8E1B L_8E17 ldx #$37 ldy #$8E L_8E1B stx L_453E+1 sty L_453E+2 jmp L_3A3C jsr L_8ED4 ldx L_2DFB+6 jsr L_8EBD sta L_4405+4 lda PTRIG0,x sta L_4517 rts jsr L_8EA5+2 lda CH and #$3F cmp #$17 beq L_8E70 cmp #$16 beq L_8E75 lda #$0F L_8E49 ldx KEYDEL cpx #$03 beq L_8E55 ldx #$FF stx CH L_8E55 ldx SKSTAT cpx #$F7 beq L_8E68 cpx #$F3 beq L_8E68 ldx #$01 stx L_4517 jmp L_8E89 L_8E68 ldx #$00 stx L_4517 jmp L_8E89 L_8E70 lda #$0B jmp L_8E49 L_8E75 lda #$07 jmp L_8E49 jsr L_8EA5+2 ldx L_2DFB+6 lda STRIG0,x sta L_4517 lda STICK0,x L_8E89 cmp #$0B beq L_8E9C cmp #$07 bne L_8E99 ldx L_4405+4 cpx L_8EA5+1 bpl L_8EA4 L_8E99 jmp L_45C0 L_8E9C ldx L_4405+4 cpx L_8EA5 bpl L_8E99 L_8EA4 rts L_8EA5 asl $A272,x asl L_729A+6,x lda L_4A01+2 cmp #$1A beq L_8EB6 ldx #$21 ldy #$6C L_8EB6 stx L_8EA5 sty L_8EA5+1 rts L_8EBD lda PADDL0,x eor #$FF cmp L_8EA5 bcs L_8ECB lda L_8EA5 rts L_8ECB cmp L_8EA5+1 bcc L_8ED3 lda L_8EA5+1 L_8ED3 rts L_8ED4 ldx #$1A ldy #$72 lda L_4A01+2 cmp #$1A beq L_8EE3 ldx #$1F ldy #$6C L_8EE3 stx L_8EA5 sty L_8EA5+1 rts .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $10, $10 .byte $10, $10, $10, $10, $00, $00, $00, $00 L_8F0A .byte $00, $00, $00, $00, $00, $00, $00 inc LIVES lda LIVES cmp #$09 bcc L_8F1D lda #$09 L_8F1D clc adc #$10 sta $9F7D lda #$00 sta L_4E04 sta L_4FFE+4 rts L_8F2C lda #$00 sta L_8F81 ldy #$50 ldx #$8F lda #$07 jsr L_1F00 lda #$7E sta $9EE2 sta $9F0A sta $9F32 lda #$02 sta L_4FFE+4 lda #$01 sta L_8F0A+6 rts pha txa pha tya pha inc L_8F81 lda L_8F81 cmp #$02 bcc L_8F79 lda #$00 sta L_8F81 ldx #$00 lda L_8BF0+7 tay ldx #$07 L_8F6C lda L_8BE8+7,x sta L_8BF0,x dex bne L_8F6C tya sta L_8BF0 L_8F79 pla tay pla tax pla jmp XITVBV L_8F81 brk lda L_8F0A+6 beq L_8F8E lda L_4405+4 cmp #$70 bpl L_8F91 L_8F8E jmp L_3800 L_8F91 lda TIMER_MAYBE beq L_8F91 jsr L_283D cmp #$83 beq L_8FB5 inc L_4405+4 jsr L_44CB jsr L_44F1 ldx #$00 L_8FA8 ldy #$00 L_8FAA iny bne L_8FAA inx cpx #$16 bne L_8FA8 jmp L_8F91 L_8FB5 lda #$00 sta L_8F0A+6 jmp L_3822 .byte $00, $00, $00, $4E, $5B, $40, $8C, $62 .byte $51, $62, $07, $22, $28, $48, $08, $48 .byte $5B, $94, $48, $43, $38, $39, $17, $1A .byte $51, $5E, $4B, $42, $13, $4E, $40, $5C .byte $4E, $5C, $25, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $AA, $AA, $A8, $A8, $A2 .byte $00, $A2, $A2, $0A, $20, $8A, $8A, $A2 .byte $A2, $08, $A0, $A2, $A2, $00, $80, $80 .byte $00, $00, $00, $A0, $02, $02, $0A, $0A .byte $2A, $20, $0A, $A2, $A2, $00, $80, $80 .byte $00, $00, $00, $A0, $00, $02, $02, $0A .byte $0A, $20, $0A, $AA, $AA, $A8, $A8, $A2 .byte $00, $A2, $A2, $0A, $20, $8A, $8A, $A2 .byte $A2, $08, $A0, $AA, $AA, $A8, $A8, $A2 .byte $00, $A2, $A2, $0A, $20, $8A, $8A, $A2 .byte $A2, $08, $A0, $A2, $A2, $00, $80, $80 .byte $00, $00, $00, $A0, $00, $02, $02, $0A .byte $0A, $20, $0A, $A2, $A2, $00, $80, $80 .byte $00, $00, $00, $A0, $08, $02, $02, $0A .byte $0A, $20, $0A, $AA, $AA, $A8, $A8, $A2 .byte $00, $A2, $A2, $0A, $20, $8A, $8A, $A2 .byte $A2, $08, $A0, $A8, $55, $09, $09, $24 .byte $24, $92, $91, $00, $82, $69, $14, $21 .byte $98, $46, $06, $90, $42, $69, $14, $80 .byte $60, $6A, $05, $29, $94, $42, $09, $24 .byte $24, $90, $40, $24, $00, $90, $90, $91 .byte $91, $91, $24, $06, $18, $18, $61, $80 .byte $81, $80, $60, $00, $14, $69, $82, $88 .byte $88, $62, $62, $18, $06, $46, $90, $24 .byte $24, $90, $90, $24, $09, $09, $24, $90 .byte $26, $06, $06, $50, $A4, $09, $02, $50 .byte $A5, $0A, $10, $60, $18, $58, $A6, $02 .byte $02, $62, $62, $90, $90, $24, $24, $49 .byte $49, $64, $65, $18, $18, $61, $61, $60 .byte $60, $18, $60, $64, $48, $80, $86, $18 .byte $60, $61, $00, $60, $18, $18, $18, $18 .byte $60, $86, $66, $24, $09, $09, $09, $24 .byte $90, $24, $24, $15, $1A, $1A, $1A, $1A .byte $1A, $55, $00, $55, $AA, $AA, $AA, $AA .byte $AA, $55, $00, $51, $91, $91, $91, $91 .byte $90, $50, $00, $55, $A9, $A9, $A9, $55 .byte $10, $15, $00, $55, $AA, $AA, $AA, $AA .byte $AA, $AA, $56, $50, $91, $91, $91, $90 .byte $91, $91, $91, $54, $64, $A4, $65, $64 .byte $64, $A5, $54, $55, $6A, $6A, $6A, $6A .byte $6A, $6A, $55, $06, $06, $06, $06, $06 .byte $06, $06, $06, $90, $91, $91, $90, $91 .byte $91, $90, $90, $00, $55, $6A, $6A, $6A .byte $6A, $6A, $6A, $00, $55, $A9, $A9, $A9 .byte $A9, $A9, $A9, $06, $05, $00, $15, $1A .byte $1A, $15, $00, $90, $50, $00, $54, $A4 .byte $A4, $54, $00, $6A, $6A, $6A, $6A, $66 .byte $6A, $55, $00, $A9, $99, $55, $55, $99 .byte $A9, $55, $00, $00, $15, $10, $15, $06 .byte $06, $06, $06, $00, $81, $81, $81, $81 .byte $81, $81, $81, $40, $90, $20, $A0, $00 .byte $00, $00, $00, $18, $18, $18, $18, $18 .byte $18, $18, $18, $06, $06, $06, $06, $06 .byte $06, $05, $05, $81, $81, $96, $AA, $00 .byte $00, $90, $10, $54, $A9, $0A, $00, $05 .byte $0A, $00, $05, $18, $58, $A8, $18, $58 .byte $A8, $18, $58, $55, $AA, $00, $AA, $00 .byte $55, $00, $00, $90, $00, $02, $09, $00 .byte $64, $64, $A0, $00, $00, $80, $60, $00 .byte $19, $19, $0A, $A9, $0A, $00, $16, $18 .byte $19, $18, $00, $05, $04, $04, $04, $04 .byte $04, $04, $54, $AA, $A8, $21, $2A, $15 .byte $10, $15, $15, $AA, $2A, $68, $A8, $50 .byte $01, $55, $55, $14, $14, $54, $54, $40 .byte $54, $40, $55, $FF, $F0, $C0, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $FF, $FF, $0F, $03, $03, $03 .byte $03, $03, $03, $03, $03, $03, $03, $03 .byte $0F, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FC, $F0, $C0, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $C0 .byte $C0, $F0, $F0, $0F, $03, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $03, $03, $0F, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FC, $F0, $C0, $C0 .byte $C0, $C0, $C0, $C0, $C0, $C0, $F0, $F0 .byte $F0, $FC, $FF, $03, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $03, $03, $0F, $FF, $FF, $FF, $3F, $3F .byte $3F, $3F, $3F, $3F, $3F, $3F, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FC, $FC .byte $FC, $F0, $F0, $F0, $FC, $FC, $FC, $FC .byte $FF, $FF, $FF, $FF, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $03, $CF, $FF, $3F, $3F, $3F, $3F .byte $0F, $0F, $0F, $0F, $0F, $3F, $3F, $3F .byte $FF, $FF, $FF, $FC, $F0, $F0, $C0, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $C0, $FC, $FF, $3F, $3F, $0F, $0F .byte $03, $03, $03, $03, $03, $03, $03, $0F .byte $0F, $0F, $3F, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $C3, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $C0 .byte $F0, $FF, $FF, $FF, $3F, $03, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $C3, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $F3, $C0, $C0, $C0 .byte $C0, $C0, $C0, $C0, $C0, $C0, $C0, $F0 .byte $FF, $FF, $FF, $FF, $C3, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $C0, $FF, $FF, $FF, $FF, $FF, $3F, $3F .byte $3F, $3F, $3F, $3F, $3F, $3F, $3F, $3F .byte $3F, $FF, $FF, $FF, $FC, $F0, $F0, $F0 .byte $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0 .byte $FC, $FF, $FF, $FF, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $FF, $FF, $FF, $FF, $3F, $0F, $0F .byte $0F, $0F, $0F, $0F, $0F, $0F, $0F, $3F .byte $FF, $FF, $FF, $F0, $C0, $C0, $C0, $C0 .byte $C0, $00, $00, $00, $00, $00, $00, $00 .byte $00, $C3, $FF, $0F, $03, $03, $03, $03 .byte $03, $00, $00, $00, $00, $00, $00, $00 .byte $00, $C3, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $3F, $3F, $3F, $3F, $3F, $3F .byte $3F, $FF, $FF, $FC, $F0, $C0, $C0, $C0 .byte $C0, $C0, $C0, $C0, $C0, $C0, $C0, $F0 .byte $FC, $FF, $FF, $3F, $0F, $03, $03, $03 .byte $03, $00, $00, $00, $00, $00, $00, $00 .byte $00, $C3, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $3F, $3F, $3F, $3F, $3F, $3F .byte $3F, $FF, $FF, $FF, $FF, $FC, $F0, $F0 .byte $F0, $F0, $F0, $FC, $FC, $FC, $FC, $FF .byte $FF, $FF, $FF, $FF, $0F, $03, $00, $00 .byte $00, $00, $03, $00, $00, $00, $00, $00 .byte $00, $C0, $F3, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $3F, $0F, $0F, $0F, $0F .byte $3F, $FF, $FF, $FF, $FF, $FC, $F0, $F0 .byte $F0, $F0, $FC, $FC, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $03, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $C0, $F0, $FF, $FF, $FF, $3F, $0F, $0F .byte $03, $03, $03, $03, $0F, $0F, $0F, $0F .byte $3F, $FF, $FF, $FF, $C3, $00, $00, $00 .byte $00, $00, $00, $C0, $C0, $C0, $C0, $F0 .byte $FC, $FF, $FF, $FF, $C3, $00, $00, $00 .byte $00, $00, $00, $03, $03, $03, $03, $0F .byte $3F, $FF, $FF, $FF, $FF, $FF, $3F, $3F .byte $3F, $3F, $3F, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $F0, $C0 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $C0, $F0, $FF, $FF, $FF, $0F, $03, $00 .byte $00, $00, $00, $03, $0F, $0F, $0F, $0F .byte $3F, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FC .byte $FC, $FC, $F0, $F0, $C0, $C0, $C0, $C0 .byte $F0, $FC, $FF, $FF, $F0, $C0, $00, $00 .byte $00, $00, $00, $00, $00, $00, $03, $03 .byte $0F, $3F, $FF, $FF, $FF, $3F, $0F, $0F .byte $0F, $0F, $0F, $0F, $3F, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FC, $F0, $F0, $F0, $F0, $F0, $FC .byte $FF, $FF, $FF, $F0, $C0, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $0F, $FF, $FF, $FF, $3F, $0F, $0F, $0F .byte $0F, $0F, $0F, $0F, $0F, $0F, $3F, $FF .byte $FF, $FF, $FF, $FC, $F0, $F0, $C0, $C0 .byte $C0, $C0, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $FF, $3F, $3F, $0F, $0F .byte $0F, $0F, $03, $03, $03, $03, $00, $00 .byte $00, $00, $03, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FC, $F0, $F0, $F0, $F0 .byte $F0, $F0, $F0, $F0, $F0, $F0, $C0, $C0 .byte $00, $00, $C0, $3F, $3F, $3F, $0F, $0F .byte $03, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $03, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $3F, $3F, $3F .byte $3F, $FF, $FF, $FC, $FC, $FC, $FC, $FC .byte $FC, $FC, $FF, $FF, $FF, $FF, $FC, $F0 .byte $C0, $C0, $C0, $0F, $03, $03, $00, $00 .byte $00, $00, $00, $00, $00, $C0, $00, $00 .byte $00, $00, $00, $FF, $FF, $FF, $FF, $FF .byte $3F, $0F, $0F, $3F, $3F, $3F, $0F, $0F .byte $0F, $3F, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FC, $FC, $FC, $03, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $C0, $00 .byte $00, $00, $00, $FF, $FF, $FF, $3F, $3F .byte $0F, $0F, $0F, $0F, $0F, $0F, $03, $03 .byte $03, $03, $0F, $FC, $F0, $F0, $C0, $C0 .byte $C0, $C0, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $FF, $3F, $3F, $0F, $0F .byte $0F, $0F, $03, $03, $03, $03, $00, $00 .byte $00, $00, $03, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FC, $F0, $F0 .byte $C0, $C0, $C0, $C0, $F0, $C0, $00, $00 .byte $00, $C0, $F0, $03, $03, $03, $03, $03 .byte $03, $03, $03, $03, $03, $03, $03, $00 .byte $00, $00, $00, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $3F, $3F, $FF, $FF, $FF, $FC, $FC, $F0 .byte $F0, $C0, $C0, $C0, $F0, $F0, $C0, $C0 .byte $C0, $F0, $FC, $03, $03, $03, $03, $03 .byte $03, $03, $03, $03, $03, $0F, $03, $00 .byte $00, $00, $00, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $3F, $0F, $0F, $FF, $FF, $FF, $FF, $FF .byte $FC, $FC, $FC, $FC, $F0, $F0, $F0, $F0 .byte $FC, $FF, $FF, $FC, $F0, $F0, $C0, $C0 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $C0, $FF, $3F, $3F, $3F, $3F .byte $3F, $3F, $3F, $FF, $3F, $0F, $0F, $03 .byte $03, $0F, $3F, $FC, $F0, $F0, $F0, $C0 .byte $C0, $C0, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $FF, $3F, $3F, $3F, $0F .byte $0F, $0F, $03, $03, $03, $00, $00, $00 .byte $00, $00, $00, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FC, $F0, $F0, $F0, $F0 .byte $F0, $F0, $F0, $F0, $C0, $C0, $C0, $C0 .byte $C0, $C0, $C0, $3F, $0F, $03, $03, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $03, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $3F, $3F, $3F, $0F, $0F, $0F .byte $0F, $3F, $FF, $FF, $FF, $FF, $FC, $FC .byte $FC, $FC, $FC, $FC, $F0, $F0, $F0, $F0 .byte $C0, $C0, $F0, $03, $03, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $FF, $FF, $FF, $FF, $FF .byte $3F, $3F, $3F, $0F, $0F, $03, $03, $03 .byte $03, $0F, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FC, $FC, $FC .byte $FC, $FC, $FF, $FC, $F0, $F0, $F0, $C0 .byte $C0, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $F0, $FF, $3F, $3F, $3F, $3F .byte $0F, $0F, $0F, $0F, $03, $00, $00, $00 .byte $00, $00, $03, $FF, $FC, $FC, $F0, $F0 .byte $C0, $C0, $00, $00, $00, $00, $00, $C0 .byte $F0, $FC, $FF, $03, $03, $03, $03, $03 .byte $03, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FC, $C0, $00 .byte $00, $00, $00, $C0, $C0, $F0, $F0, $F0 .byte $F0, $FC, $FF, $FF, $C0, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $03 .byte $03, $0F, $0F, $FF, $3F, $0F, $0F, $0F .byte $0F, $3F, $3F, $3F, $3F, $FF, $FF, $FF .byte $FF, $FF, $FF, $FC, $F0, $F0, $F0, $F0 .byte $F0, $F0, $F0, $FC, $FC, $FC, $FC, $FC .byte $FC, $FC, $FF, $3F, $03, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $03 .byte $0F, $3F, $FF, $FF, $FF, $3F, $0F, $03 .byte $03, $03, $03, $0F, $3F, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FC, $FC, $FC, $FC, $FC .byte $FC, $FC, $FC, $F3, $C0, $C0, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $0F, $FF, $FF, $FF, $3F, $3F .byte $0F, $0F, $03, $03, $00, $00, $00, $03 .byte $0F, $FF, $FF, $00, $30, $C0, $00, $00 .byte $00, $F0, $C0, $00, $C0, $C0, $C0, $00 .byte $00, $00, $C0, $3F, $03, $00, $00, $00 .byte $03, $00, $00, $00, $00, $00, $00, $00 .byte $03, $0F, $0C, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $C0, $00, $00, $C0, $00 .byte $03, $03, $03, $03, $0F, $00, $C0, $C0 .byte $F0, $FF, $FF, $19, $0C, $00, $00, $C0 .byte $F0, $F0, $F0, $F0, $C0, $C0, $00, $00 .byte $00, $30, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $3C, $00, $00, $03, $0F .byte $0F, $0F, $03, $03, $0F, $00, $00, $C0 .byte $F0, $FC, $FF, $FC, $00, $00, $C0, $F0 .byte $FC, $FC, $FF, $FF, $FC, $FC, $30, $30 .byte $00, $F3, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $C3, $03, $0F, $0F, $3F .byte $FF, $FF, $FF, $FF, $3F, $0F, $0F, $0F .byte $03, $C0, $F0, $03, $C0, $F0, $FC, $FF .byte $FF, $FF, $FF, $FF, $FC, $F0, $F0, $CC .byte $03, $F3, $CF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $C0, $CC, $F0, $C0, $C0 .byte $C0, $FC, $F0, $C0, $F0, $F0, $F0, $C0 .byte $C0, $C0, $F0, $0F, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $03, $FF, $FF, $3F, $3F, $3F .byte $FF, $3F, $3F, $3F, $3F, $3F, $3F, $3F .byte $FF, $FF, $3F, $F0, $C0, $C0, $F0, $C0 .byte $C0, $C0, $C0, $C0, $C3, $C0, $F0, $F0 .byte $FC, $FF, $FF, $3F, $03, $00, $00, $30 .byte $FC, $FC, $FC, $FC, $F0, $30, $00, $00 .byte $00, $CC, $FF, $FF, $3F, $3F, $3F, $3F .byte $3F, $3F, $3F, $3F, $3F, $3F, $3F, $3F .byte $3F, $3F, $FF, $CF, $C0, $C0, $C0, $C3 .byte $C3, $C3, $C0, $C0, $C3, $C0, $C0, $F0 .byte $FC, $FF, $FF, $3F, $00, $00, $F0, $FC .byte $FF, $FF, $FF, $FF, $FF, $3F, $0C, $0C .byte $00, $3C, $FF, $3F, $3F, $3F, $3F, $3F .byte $3F, $3F, $FF, $FF, $3F, $3F, $3F, $3F .byte $3F, $FF, $FF, $F0, $C0, $C3, $C3, $CF .byte $FF, $FF, $FF, $FF, $CF, $C3, $C3, $C3 .byte $C0, $F0, $FC, $C0, $F0, $FC, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FC, $FC, $F3 .byte $C0, $3C, $33, $FF, $3F, $3F, $3F, $FF .byte $FF, $FF, $FF, $FF, $3F, $3F, $3F, $3F .byte $FF, $FF, $FF, $F0, $F3, $FC, $F0, $F0 .byte $F0, $FF, $FC, $F0, $FC, $FC, $FC, $F0 .byte $F0, $F0, $FC, $03, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $FF, $3F, $0F, $0F, $0F .byte $3F, $0F, $0F, $0F, $0F, $0F, $0F, $0F .byte $3F, $FF, $CF, $FC, $F0, $F0, $FC, $F0 .byte $F0, $F0, $F0, $F0, $F0, $F0, $FC, $FC .byte $FF, $FF, $FF, $0F, $00, $00, $00, $0C .byte $3F, $3F, $3F, $3F, $FC, $0C, $00, $00 .byte $00, $F3, $FF, $FF, $CF, $0F, $0F, $0F .byte $0F, $0F, $0F, $0F, $0F, $0F, $0F, $0F .byte $0F, $0F, $FF, $F3, $F0, $F0, $F0, $F0 .byte $F0, $F0, $F0, $F0, $F0, $F0, $F0, $FC .byte $FF, $FF, $FF, $CF, $00, $00, $3C, $FF .byte $FF, $FF, $3F, $3F, $FF, $0F, $03, $03 .byte $00, $CF, $FF, $CF, $0F, $0F, $0F, $0F .byte $CF, $CF, $FF, $FF, $CF, $CF, $0F, $0F .byte $0F, $3F, $FF, $FC, $F0, $F0, $F0, $F3 .byte $FF, $FF, $FF, $FF, $F3, $F0, $F0, $F0 .byte $F0, $FC, $FF, $30, $3C, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FC .byte $30, $0F, $0C, $3F, $0F, $0F, $CF, $FF .byte $FF, $FF, $FF, $FF, $CF, $0F, $0F, $CF .byte $3F, $3F, $FF, $FC, $FC, $FF, $FC, $FC .byte $FC, $FF, $FF, $FC, $FF, $FF, $FF, $FC .byte $FC, $FC, $FF, $00, $C0, $00, $00, $00 .byte $00, $C0, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $FF, $0F, $03, $03, $03 .byte $0F, $03, $03, $03, $03, $03, $03, $03 .byte $0F, $3F, $33, $FF, $FC, $FC, $FF, $FC .byte $FC, $FC, $FC, $FC, $FC, $FC, $FF, $FF .byte $FF, $FF, $FF, $03, $00, $00, $00, $03 .byte $0F, $0F, $0F, $0F, $3F, $03, $00, $00 .byte $C0, $FC, $FF, $FF, $33, $03, $03, $03 .byte $C3, $C3, $C3, $C3, $03, $03, $03, $03 .byte $03, $C3, $FF, $FC, $FC, $FC, $FC, $FC .byte $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FF .byte $FF, $FF, $FF, $F3, $00, $00, $0F, $3F .byte $3F, $3F, $0F, $0F, $3F, $03, $00, $00 .byte $C0, $F3, $FF, $F3, $03, $03, $03, $C3 .byte $F3, $F3, $FF, $FF, $F3, $F3, $C3, $C3 .byte $03, $CF, $FF, $FF, $FC, $FC, $FC, $FC .byte $FF, $FF, $FF, $FF, $FC, $FC, $FC, $FC .byte $FC, $FF, $FF, $0C, $0F, $3F, $3F, $FF .byte $FF, $FF, $FF, $FF, $FF, $3F, $3F, $3F .byte $0C, $03, $C3, $0F, $03, $C3, $F3, $FF .byte $FF, $FF, $FF, $FF, $F3, $C3, $C3, $33 .byte $0F, $CF, $3F
42.432801
61
0.313628
d1e807eb9d359d0eef979bd6a008d3472c562647
15
asm
Assembly
src/main/fragment/mos6502-common/vbuaa=vbuaa_bxor_vbuxx.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/vbuaa=vbuaa_bxor_vbuxx.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/vbuaa=vbuaa_bxor_vbuxx.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
stx $ff eor $ff
7.5
7
0.666667
e3880e3e98fddd7cbffcadfe9ba84ece12bf85d7
302
asm
Assembly
libsrc/games/sam/beeper.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/games/sam/beeper.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/games/sam/beeper.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; $Id: beeper.asm,v 1.3 2015/01/19 01:32:45 pauloscustodio Exp $ ; ; SAM Coupe 1 bit sound functions ; ; Stefano Bodrato - 28/9/2001 ; PUBLIC beeper EXTERN bit_open_di EXTERN bit_close_ei .beeper call bit_open_di call $016F di call bit_close_ei ret
14.380952
64
0.625828
50619c9f46532e643ae1a14f21882cb587ced487
6,192
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0xca.log_21829_1411.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_0xca.log_21829_1411.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_0xca.log_21829_1411.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 %r14 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xe20d, %rdx sub $21021, %rdi movl $0x61626364, (%rdx) nop nop nop nop cmp $54084, %r9 lea addresses_normal_ht+0x4585, %rsi lea addresses_A_ht+0x1244d, %rdi nop nop nop nop nop and $36321, %r9 mov $48, %rcx rep movsl nop nop nop nop nop and %rdi, %rdi lea addresses_normal_ht+0x1d835, %rsi lea addresses_A_ht+0x492c, %rdi nop xor $38329, %r9 mov $15, %rcx rep movsq and $60152, %rbp lea addresses_normal_ht+0xea8d, %rbp nop nop nop cmp $58228, %r11 movb $0x61, (%rbp) nop nop nop sub $8750, %rdx lea addresses_normal_ht+0x1960d, %r11 nop nop nop nop cmp $52172, %r9 vmovups (%r11), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $1, %xmm3, %rsi add $54946, %rcx lea addresses_WC_ht+0x1160d, %r11 nop nop add %rcx, %rcx mov (%r11), %rsi nop nop and %rcx, %rcx lea addresses_WT_ht+0x10c9e, %rdi nop nop inc %r9 movw $0x6162, (%rdi) nop nop nop inc %rdx lea addresses_WT_ht+0x1950d, %rsi lea addresses_A_ht+0x15d8d, %rdi clflush (%rsi) nop nop xor %r14, %r14 mov $73, %rcx rep movsq nop nop nop xor $33917, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r8 push %r9 push %rcx push %rdx // Load lea addresses_WC+0x1465d, %r13 nop cmp $26866, %r11 movups (%r13), %xmm3 vpextrq $1, %xmm3, %rcx nop nop nop nop nop dec %r11 // Faulty Load lea addresses_RW+0x1d60d, %r9 dec %r11 movb (%r9), %r13b lea oracles, %r8 and $0xff, %r13 shlq $12, %r13 mov (%r8,%r13,1), %r13 pop %rdx pop %rcx pop %r9 pop %r8 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} {'src': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 1, 'NT': True, 'type': 'addresses_RW'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WT_ht'}} {'src': {'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}} {'src': {'congruent': 2, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_normal_ht'}} {'src': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 8, 'NT': True, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 2, 'NT': True, 'type': 'addresses_WT_ht'}} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}} {'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 */
39.189873
2,999
0.659076
52027151db7fab7c69814dd85ccf05a8eb16d5dc
1,144
asm
Assembly
programas/ensamblador/rotaciones.asm
AdolfoMX/La-Biblioteca
095d37f43c35bdcfe8b996eab11370515dd13c61
[ "MIT" ]
null
null
null
programas/ensamblador/rotaciones.asm
AdolfoMX/La-Biblioteca
095d37f43c35bdcfe8b996eab11370515dd13c61
[ "MIT" ]
null
null
null
programas/ensamblador/rotaciones.asm
AdolfoMX/La-Biblioteca
095d37f43c35bdcfe8b996eab11370515dd13c61
[ "MIT" ]
null
null
null
; instrucciones de rotaciones para corregir digitos los mueve a la izquierda ;------------- Seccion de datos ------------- section .data ; declaracion de caracteres escape ln db 10, 13 longln equ 2 section .bss resultado1 resb 1 ; reserva de memoria ;------------- Seccion de texto ------------- section .text global _start start: mov bl, 128 ; se almacena un valor de 128 rol bl, 1 ; se indica el numero de rotaciones a realizar en el registro bl add bl, 48 ; se suma el 48 mas la rotacion mov [resultado1], bl ; se almacena el contenido del registro bl a la variable resultado1 mov eax, 4 ; indica a la maquina que se va a escribir mov ebx, 1 ; indica a la maquina que se va a escribir en pantalla mov ecx, resultado1 ; indica la direccion de memoria donde esta almacenado la variable resultado1 mov edx, 1 ; numero de bites a imprimir int 0x80 ; ---- impresion de escape ---- mov eax, 4 mov ebx, 1 mov ecx, ln mov edx, longln int 0x80 ; indica a la maquina si el programa se ejecuto de forma exitosa mov eax, 1 mov ebx, 0 int 0x80
30.105263
99
0.647727