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
e8ca7a1a904c7d98c4d141ac1a42990e040f9ff6
1,412
asm
Assembly
programs/oeis/055/A055014.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/055/A055014.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/055/A055014.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A055014: Sum of 5th powers of digits of n. ; 0,1,32,243,1024,3125,7776,16807,32768,59049,1,2,33,244,1025,3126,7777,16808,32769,59050,32,33,64,275,1056,3157,7808,16839,32800,59081,243,244,275,486,1267,3368,8019,17050,33011,59292,1024,1025,1056,1267,2048,4149,8800,17831,33792,60073,3125,3126,3157,3368,4149,6250,10901,19932,35893,62174,7776,7777,7808,8019,8800,10901,15552,24583,40544,66825,16807,16808,16839,17050,17831,19932,24583,33614,49575,75856,32768,32769,32800,33011,33792,35893,40544,49575,65536,91817,59049,59050,59081,59292,60073,62174,66825,75856,91817,118098,1,2,33,244,1025,3126,7777,16808,32769,59050,2,3,34,245,1026,3127,7778,16809,32770,59051,33,34,65,276,1057,3158,7809,16840,32801,59082,244,245,276,487,1268,3369,8020,17051,33012,59293,1025,1026,1057,1268,2049,4150,8801,17832,33793,60074,3126,3127,3158,3369,4150,6251,10902,19933,35894,62175,7777,7778,7809,8020,8801,10902,15553,24584,40545,66826,16808,16809,16840,17051,17832,19933,24584,33615,49576,75857,32769,32770,32801,33012,33793,35894,40545,49576,65537,91818,59050,59051,59082,59293,60074,62175,66826,75857,91818,118099,32,33,64,275,1056,3157,7808,16839,32800,59081,33,34,65,276,1057,3158,7809,16840,32801,59082,64,65,96,307,1088,3189,7840,16871,32832,59113,275,276,307,518,1299,3400,8051,17082,33043,59324,1056,1057,1088,1299,2080,4181,8832,17863,33824,60105 lpb $0,1 mov $2,$0 div $0,10 mod $2,10 pow $2,5 add $1,$2 lpe
128.363636
1,293
0.785411
4d05af10d93cdbf3979899e5fe548395efef3a60
4,616
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_217.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_217.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_217.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %r8 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_UC_ht+0x75ab, %r15 clflush (%r15) nop nop add %r9, %r9 movl $0x61626364, (%r15) nop nop cmp $498, %r11 lea addresses_D_ht+0x2a0e, %rsi lea addresses_A_ht+0x17e4e, %rdi xor %r8, %r8 mov $34, %rcx rep movsb nop nop nop sub $62123, %r15 pop %rsi pop %rdi pop %rcx pop %rax pop %r9 pop %r8 pop %r15 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r15 push %rbx push %rcx push %rdi push %rdx // Load lea addresses_A+0xa8e, %r10 nop nop nop nop sub %r11, %r11 movb (%r10), %r15b nop cmp %rbx, %rbx // Faulty Load lea addresses_D+0x1424e, %rdi nop nop nop nop nop and %rcx, %rcx mov (%rdi), %r10w lea oracles, %rbx and $0xff, %r10 shlq $12, %r10 mov (%rbx,%r10,1), %r10 pop %rdx pop %rdi pop %rcx pop %rbx pop %r15 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_A_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 */
48.589474
2,999
0.659445
c5cf39f978aca6d2851647831e96beeb25ce9b7f
2,894
asm
Assembly
bootstrapper/RealModeSwitcher.asm
supercomputer7/nahmanboot2
6b4ed2db89394ef2e8d878df98a988e205a63ee6
[ "MIT" ]
3
2019-10-15T22:22:51.000Z
2019-11-29T10:39:28.000Z
bootstrapper/RealModeSwitcher.asm
supercomputer7/nahmanboot2
6b4ed2db89394ef2e8d878df98a988e205a63ee6
[ "MIT" ]
null
null
null
bootstrapper/RealModeSwitcher.asm
supercomputer7/nahmanboot2
6b4ed2db89394ef2e8d878df98a988e205a63ee6
[ "MIT" ]
null
null
null
BITS 32 switch_structure: .sig dd 0x70BBCAFE .returnaddr dd 0x0 .previousstack dd 0x0 .interrupt dw 0x0 .eax_reg dd 0x0 .ebx_reg dd 0x0 .edx_reg dd 0x0 .ecx_reg dd 0x0 .esi_reg dd 0x0 .edi_reg dd 0x0 .es_reg dw 0x0 .gs_reg dw 0x0 .fs_reg dw 0x0 .jump dd entry entry: BITS 32 nop ;jmp .protectedmode ;;; dropping to realmode lgdt [GDT16.pointer] jmp 0x8:.return_realmode .protectedmode: mov ax, DATA32_SEG mov ds, ax mov es, ax mov ss, ax mov gs, ax mov fs, ax ret BITS 16 .return_realmode: ;;; drop back to real mode (remapping the PIC, reset CPU to realmode) nop cli mov ax,0x0010 mov ds,ax mov es,ax mov fs,ax mov gs,ax mov ss,ax mov ax,0x03FF mov word [IDT16_n],ax xor ax,ax mov word [IDT16_n+2],ax mov word [IDT16_n+4],ax mov eax,cr0 and eax,0x7FFFFFFE mov cr0,eax jmp 0:.complete_realmode .complete_realmode: nop lidt [IDT16_n] xor ax,ax mov ds,ax mov es,ax mov fs,ax mov gs,ax mov ss,ax ;;; return to text mode push eax push ebx push ecx push edx push esi push edi push es mov ax,word [switch_structure.es_reg] mov es,ax mov eax,dword [switch_structure.eax_reg] mov ebx,dword [switch_structure.ebx_reg] mov ecx,dword [switch_structure.ecx_reg] mov edx,dword [switch_structure.edx_reg] mov edi,dword [switch_structure.edi_reg] mov esi,dword [switch_structure.esi_reg] cmp word [switch_structure.interrupt],0x10 je .int0x10 cmp word [switch_structure.interrupt],0x12 je .int0x12 cmp word [switch_structure.interrupt],0x13 je .int0x13 cmp word [switch_structure.interrupt],0x15 je .int0x15 cmp word [switch_structure.interrupt],0x16 je .int0x16 .int0x10: int 0x10 jmp .exit_interrupt .int0x12: int 0x12 jmp .exit_interrupt .int0x13: int 0x13 jmp .exit_interrupt .int0x15: int 0x15 jmp .exit_interrupt .int0x16: int 0x16 jmp .exit_interrupt .exit_interrupt: pop es pop edi pop esi pop edx pop ecx pop ebx pop eax ; ; clear Segments before we move to protected mode mov ax,0x0 mov ds,ax mov es,ax mov fs,ax mov gs,ax cli ;; Setting up GDTR for Protected mode lgdt [GDT32.pointer] ; load the gdt table mov eax, cr0 or eax,0x1 ; set the protected mode bit on special CPU reg cr0 mov cr0, eax jmp CODE32_SEG:entry.protectedmode ; long jump to the code segment IDT16_n: dq 0 dq 0 GDT16: .entry: dq 0x0 .code: dw 0xFFFF dw 0x0 db 0x0 db 10011010b db 00001111b db 0x0 .data: dw 0xFFFF dw 0x0 db 0x0 db 10010010b db 00001111b db 0x0 .END: .pointer: dw GDT16.END - GDT16 dd GDT16 CODE16_SEG equ GDT16.code - GDT16.entry DATA16_SEG equ GDT16.data - GDT16.entry BITS 32 cli hlt dw 0xAA55 dw 0x55AA
14.765306
69
0.664133
d7f426b241677006353111f01a2f12e5380a189e
548
asm
Assembly
programs/oeis/190/A190787.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/190/A190787.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/190/A190787.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A190787: Odd powers of 2 and 9 times odd powers of 2, sorted. ; 2,8,18,32,72,128,288,512,1152,2048,4608,8192,18432,32768,73728,131072,294912,524288,1179648,2097152,4718592,8388608,18874368,33554432,75497472,134217728,301989888,536870912,1207959552,2147483648,4831838208,8589934592,19327352832,34359738368,77309411328,137438953472,309237645312 seq $0,27383 ; Number of balanced strings of length n: let d(S) = #(1's) - #(0's), # == count in S, then S is balanced if every substring T of S has -2 <= d(T) <= 2. div $0,2 add $0,1 pow $0,2 mul $0,2
60.888889
280
0.744526
3b3931f3cabfdfd1ffe852a74ad9df59f94b5b7f
867
asm
Assembly
ch09/32 bit/Table.asm
William0Friend/my_masm
e8073266c03c01424ad84b9ed9cf13e9da1eabb1
[ "Apache-2.0" ]
null
null
null
ch09/32 bit/Table.asm
William0Friend/my_masm
e8073266c03c01424ad84b9ed9cf13e9da1eabb1
[ "Apache-2.0" ]
null
null
null
ch09/32 bit/Table.asm
William0Friend/my_masm
e8073266c03c01424ad84b9ed9cf13e9da1eabb1
[ "Apache-2.0" ]
null
null
null
; Two-Dimensional Table (Table.asm) ; Demonstration of Base-Index mode with a ; two-dimensional table. INCLUDE Irvine32.inc .data tableB BYTE 10h, 20h, 30h, 40h, 50h BYTE 60h, 70h, 80h, 90h, 0A0h BYTE 0B0h, 0C0h, 0D0h, 0E0h, 0F0h RowSize = 5 .code main PROC ; Demonstrate Base-Index mode: mov ebx,OFFSET tableB add ebx,RowSize mov esi,2 ; column number mov al,[ebx + esi] ; AL = 80h ; Calculate sum of row 1: RowNum = 1 mov ecx,RowSize mov ebx,OFFSET tableB add ebx,(RowSize * RowNum) ; move to row 1 mov esi,0 ; beginning of row mov ax,0 ; zero the sum mov dx,0 ; holds each value L1: mov dl,[ebx + esi] ; get a byte add ax,dx ; add to accumulator inc esi loopd L1 ; AX = 280h, the sum exit main ENDP END main
19.704545
51
0.588235
b5ff922efed231d49b6abe1da75f25428eee6d2b
669
asm
Assembly
oeis/110/A110696.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/110/A110696.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/110/A110696.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A110696: Kekulé numbers for certain benzenoids of trigonal symmetry. ; Submitted by Jon Maiga ; 1,28,1456,66178,3014128,143076778,7087202890,363641489638,19183237689328,1034361829223578,56758935931548706,3159417013205183638,177966175592478108106,10125526670502832205398,581051793331857091649398,33591164738513316250873678,1954520306059574124541313008,114373452283259822492918761978,6726696528458788282957877867698,397407621288854515874166898774198,23573822688060133476708031516585378,1403504099771865528750087544860621958,83838016875145639560464447933784729478 seq $0,134762 ; a(n) = 3*A000984(n) - 2. seq $0,27444 ; a(n) = n^3 + n^2 + n. sub $0,3 div $0,3 add $0,1
66.9
466
0.855007
b2572813b88aa8846adc27779be11340c1115cbc
494
asm
Assembly
programs/oeis/003/A003485.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/003/A003485.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/003/A003485.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A003485: Hurwitz-Radon function at powers of 2. ; 1,2,4,8,9,10,12,16,17,18,20,24,25,26,28,32,33,34,36,40,41,42,44,48,49,50,52,56,57,58,60,64,65,66,68,72,73,74,76,80,81,82,84,88,89,90,92,96,97,98,100,104,105,106,108,112,113,114,116,120,121,122,124,128,129,130,132,136,137,138,140,144,145,146,148,152,153,154,156,160,161,162,164,168,169,170,172,176,177,178,180,184,185,186,188,192,193,194,196,200 mov $4,$0 add $0,1 mod $0,4 mov $3,2 trn $3,$0 mov $1,$3 mov $2,$4 mul $2,2 add $1,$2 mov $0,$1
35.285714
346
0.674089
59c35663786b8f0a05c3992c9c394282399b900c
277
asm
Assembly
libsrc/_DEVELOPMENT/adt/w_vector/c/sdcc_iy/w_vector_init_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/adt/w_vector/c/sdcc_iy/w_vector_init_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/adt/w_vector/c/sdcc_iy/w_vector_init_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; w_vector_t *w_vector_init_callee(void *p, size_t capacity, size_t max_size) SECTION code_clib SECTION code_adt_w_vector PUBLIC _w_vector_init_callee EXTERN asm_w_vector_init _w_vector_init_callee: pop hl pop de pop bc ex (sp),hl jp asm_w_vector_init
14.578947
77
0.772563
5d5abf5bdd3150520f51f139deb5ba31617b85f5
2,060
asm
Assembly
programs/oeis/048/A048777.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/048/A048777.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/048/A048777.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A048777: First partial sums of A005409; second partial sums of A001333. ; 1,5,16,44,113,281,688,1672,4049,9789,23648,57108,137889,332913,803744,1940432,4684641,11309749,27304176,65918140,159140497,384199177,927538896,2239277016,5406092977,13051463021,31509019072,76069501220,183648021569,443365544417,1070379110464,2584123765408,6238626641345,15061377048165,36361380737744,87784138523724,211929657785265,511643454094329,1235216565974000,2982076586042408,7199369738058897,17380816062160285,41961001862379552,101302819786919476,244566641436218593,590436102659356753,1425438846754932192,3441313796169221232,8308066439093374753,20057446674355970837,48422959787805316528,116903366249966603996,282229692287738524625,681362750825443653353,1644955193938625831440,3971273138702695316344,9587501471344016464241,23146276081390728244941,55880053634125472954240,134906383349641674153540,325692820333408821261441,786292024016459316676545,1898276868366327454614656,4582845760749114225905984,11063968389864555906426753,26710782540478226038759621,64485533470821007983946128,155681849482120242006652012,375849232435061491997250289,907380314352243226001152729,2190609861139547943999555888,5288600036631339114000264648,12767809934402226172000085329,30824219905435791458000435453,74416249745273809088000956384,179656719395983409634002348372,433729688537240628356005653281,1047116096470464666346013655089,2527961881478169961048032963616,6103039859426804588442079582480,14734041600331779137932192128737,35571123060090362864306463840117,85876287720512504866545119809136,207323698501115372597396703458556,500523684722743250061338526726417,1208371067946601872720073756911561,2917265820615946995501486040549712,7042902709178495863723045838011160,17003071238972938722947577716572209,41049045187124373309618201271155757,99101161613221685342183980258883904,239251368413567743993986161788923748,577603898440357173330156303836731585 mov $1,$0 seq $1,59020 ; Number of 2 X n checkerboards (with at least one red square) in which the set of red squares is edge connected. add $1,1 add $0,$1
257.5
1,828
0.923786
ab7af5ff4da3a69cab21f33d7ec08fc21bb743ba
765
asm
Assembly
test/codegen/scope.asm
shivansh/gogo
209b98f52e956fc4d4e66c07d337db721200f8c2
[ "MIT" ]
24
2018-04-28T02:27:47.000Z
2021-12-08T00:25:13.000Z
test/codegen/scope.asm
shivansh/gogo
209b98f52e956fc4d4e66c07d337db721200f8c2
[ "MIT" ]
null
null
null
test/codegen/scope.asm
shivansh/gogo
209b98f52e956fc4d4e66c07d337db721200f8c2
[ "MIT" ]
5
2018-05-06T07:36:02.000Z
2019-09-13T09:40:55.000Z
.data arr.0: .space 8 t0: .word 0 arr.1: .space 8 t1: .word 0 a.2: .word 0 a.3: .word 0 .text runtime: addi $sp, $sp, -4 sw $ra, 0($sp) lw $ra, 0($sp) addi $sp, $sp, 4 jr $ra .end runtime .globl main .ent main main: la $3, arr.0 lw $5, 0($3) # variable <- array li $5, 4 # t0 -> $5 sw $5, 0($3) # variable -> array sw $5, t0 # spilled t0, freed $5 la $5, arr.1 lw $6, 0($5) # variable <- array li $6, 5 # t1 -> $6 sw $6, 0($5) # variable -> array sw $6, t1 # spilled t1, freed $6 li $6, 1 # a.2 -> $6 sw $6, a.2 # spilled a.2, freed $6 li $6, 4 # a.3 -> $6 li $6, 2 # a.3 -> $6 sw $6, a.3 # spilled a.3, freed $6 li $6, 4 # a.2 -> $6 # Store dirty variables back into memory sw $6, a.2 li $2, 10 syscall .end main
17.386364
41
0.515033
770d832997cdb505ddfaeb32252f7eaa090c5324
120
asm
Assembly
libsrc/_DEVELOPMENT/font/fzx/fonts/dkud2/Script/_ff_dkud2_Script1.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/font/fzx/fonts/dkud2/Script/_ff_dkud2_Script1.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/font/fzx/fonts/dkud2/Script/_ff_dkud2_Script1.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
SECTION rodata_font_fzx PUBLIC _ff_dkud2_Script1 _ff_dkud2_Script1: BINARY "font/fzx/fonts/dkud2/Script/script.fzx"
13.333333
47
0.833333
40cc69f9f1ef8eb84f391443d44b1e9d2dcdcf86
228
asm
Assembly
programs/oeis/334/A334084.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/334/A334084.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/334/A334084.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A334084: Integers m such that only 2 binomial coefficients C(m,k), with 0<=k<=m, are practical numbers. ; 1,3,5,7,15,31,63,127,255,511,1023 mov $1,$0 sub $1,1 mov $2,2 pow $2,$1 bin $0,$2 add $0,$2 sub $0,1 mul $0,2 add $0,1
17.538462
105
0.640351
8bc83b7cb0dee1a6a366bba2a38554ced9615fd5
379
asm
Assembly
programs/oeis/198/A198646.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/198/A198646.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/198/A198646.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A198646: 11*3^n-1. ; 10,32,98,296,890,2672,8018,24056,72170,216512,649538,1948616,5845850,17537552,52612658,157837976,473513930,1420541792,4261625378,12784876136,38354628410,115063885232,345191655698,1035574967096,3106724901290,9320174703872,27960524111618,83881572334856,251644717004570,754934151013712,2264802453041138,6794407359123416 mov $1,3 pow $1,$0 mul $1,11 sub $1,1
47.375
318
0.83905
7429536c8aa8e5d0a253d997a4f178589277ec9d
55
asm
Assembly
tests/include_directory/8.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
414
2016-10-14T22:39:20.000Z
2022-03-30T07:52:44.000Z
tests/include_directory/8.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
100
2018-03-22T16:12:24.000Z
2022-03-26T09:19:23.000Z
tests/include_directory/8.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
47
2017-06-29T15:12:13.000Z
2022-03-10T04:50:51.000Z
#include "../cpu.asm" ; error: out of project directory
55
55
0.709091
738e0e4dd65c497237f1afcf2c57b55a9af21387
6,465
asm
Assembly
Micrium-Probe-TargetCode-410/Micrium/Software/uC-CPU/ARM-Cortex-M0/RealView/cpu_a.asm
cos12a/GPUTFT
5bdad0eeaba3f57cb8d941dca90cb440cdcd4152
[ "Apache-2.0" ]
null
null
null
Micrium-Probe-TargetCode-410/Micrium/Software/uC-CPU/ARM-Cortex-M0/RealView/cpu_a.asm
cos12a/GPUTFT
5bdad0eeaba3f57cb8d941dca90cb440cdcd4152
[ "Apache-2.0" ]
null
null
null
Micrium-Probe-TargetCode-410/Micrium/Software/uC-CPU/ARM-Cortex-M0/RealView/cpu_a.asm
cos12a/GPUTFT
5bdad0eeaba3f57cb8d941dca90cb440cdcd4152
[ "Apache-2.0" ]
null
null
null
;******************************************************************************************************** ; uC/CPU ; CPU CONFIGURATION & PORT LAYER ; ; (c) Copyright 2004-2015; Micrium, Inc.; Weston, FL ; ; All rights reserved. Protected by international copyright laws. ; ; uC/CPU is provided in source form to registered licensees ONLY. It is ; illegal to distribute this source code to any third party unless you receive ; written permission by an authorized Micrium representative. Knowledge of ; the source code may NOT be used to develop a similar product. ; ; Please help us continue to provide the Embedded community with the finest ; software available. Your honesty is greatly appreciated. ; ; You can find our product's user manual, API reference, release notes and ; more information at https://doc.micrium.com. ; You can contact us at www.micrium.com. ;******************************************************************************************************** ;******************************************************************************************************** ; ; CPU PORT FILE ; ; ARM-Cortex-M0 ; RealView Development Suite ; RealView Microcontroller Development Kit (MDK) ; ARM Developer Suite (ADS) ; Keil uVision ; ; Filename : cpu_a.asm ; Version : V1.30.02.00 ; Programmer(s) : BAN ; MD ;******************************************************************************************************** ;******************************************************************************************************** ; PUBLIC FUNCTIONS ;******************************************************************************************************** EXPORT CPU_IntDis EXPORT CPU_IntEn EXPORT CPU_SR_Save EXPORT CPU_SR_Restore EXPORT CPU_WaitForInt EXPORT CPU_WaitForExcept ;******************************************************************************************************** ; CODE GENERATION DIRECTIVES ;******************************************************************************************************** AREA |.text|, CODE, READONLY, ALIGN=2 THUMB REQUIRE8 PRESERVE8 ;******************************************************************************************************** ; DISABLE and ENABLE INTERRUPTS ; ; Description : Disable/Enable interrupts. ; ; Prototypes : void CPU_IntDis(void); ; void CPU_IntEn (void); ;******************************************************************************************************** CPU_IntDis CPSID I BX LR CPU_IntEn CPSIE I BX LR ;******************************************************************************************************** ; CRITICAL SECTION FUNCTIONS ; ; Description : Disable/Enable interrupts by preserving the state of interrupts. Generally speaking, the ; state of the interrupt disable flag is stored in the local variable 'cpu_sr' & interrupts ; are then disabled ('cpu_sr' is allocated in all functions that need to disable interrupts). ; The previous interrupt state is restored by copying 'cpu_sr' into the CPU's status register. ; ; Prototypes : CPU_SR CPU_SR_Save (void); ; void CPU_SR_Restore(CPU_SR cpu_sr); ; ; Note(s) : (1) These functions are used in general like this : ; ; void Task (void *p_arg) ; { ; CPU_SR_ALLOC(); /* Allocate storage for CPU status register */ ; : ; : ; CPU_CRITICAL_ENTER(); /* cpu_sr = CPU_SR_Save(); */ ; : ; : ; CPU_CRITICAL_EXIT(); /* CPU_SR_Restore(cpu_sr); */ ; : ; } ;******************************************************************************************************** CPU_SR_Save MRS R0, PRIMASK ; Set prio int mask to mask all (except faults) CPSID I BX LR CPU_SR_Restore ; See Note #2. MSR PRIMASK, R0 BX LR ;******************************************************************************************************** ; WAIT FOR INTERRUPT ; ; Description : Enters sleep state, which will be exited when an interrupt is received. ; ; Prototypes : void CPU_WaitForInt (void) ; ; Argument(s) : none. ;******************************************************************************************************** CPU_WaitForInt WFI ; Wait for interrupt BX LR ;******************************************************************************************************** ; WAIT FOR EXCEPTION ; ; Description : Enters sleep state, which will be exited when an exception is received. ; ; Prototypes : void CPU_WaitForExcept (void) ; ; Argument(s) : none. ;******************************************************************************************************** CPU_WaitForExcept WFE ; Wait for exception BX LR ;******************************************************************************************************** ; CPU ASSEMBLY PORT FILE END ;******************************************************************************************************** END
41.980519
111
0.32993
dc58830a96fcae12a48d156d1b6b719e3d8da58f
314
asm
Assembly
programs/oeis/277/A277989.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/277/A277989.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/277/A277989.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A277989: a(n) = 424*2^n + 37. ; 461,885,1733,3429,6821,13605,27173,54309,108581,217125,434213,868389,1736741,3473445,6946853,13893669,27787301,55574565,111149093,222298149,444596261,889192485,1778384933,3556769829,7113539621,14227079205,28454158373,56908316709 mov $1,2 pow $1,$0 sub $1,1 mul $1,424 add $1,461
34.888889
230
0.783439
42c7e5711587980a5c22895854e104d5e157574b
11,450
asm
Assembly
Microprocessor/writebin.asm
Nmane1612/Nihar-Mane
aa4db52a384f706a431c994e4e12d8e5e0cd8402
[ "Apache-2.0" ]
3
2019-12-27T06:07:37.000Z
2020-07-01T08:51:32.000Z
Microprocessor/writebin.asm
Nihar16/Personal-Repository
0d319eeb8dbfa3f7c3eb8501829939ecd6923464
[ "MIT" ]
null
null
null
Microprocessor/writebin.asm
Nihar16/Personal-Repository
0d319eeb8dbfa3f7c3eb8501829939ecd6923464
[ "MIT" ]
null
null
null
name "writebin" ; Version 0.02 ; Assembled by emu8086 -- must be compatible with major assemblers. ; writebin.com -- a tiny operating system loader. ; writebin [filename] [/k] ; This utility is be used from command prompt, ; it reads a specified file and writes it to floppy drive at ; cylinder: 0, head: 0, sector: 1 (boot sector). ; If there is /k parameter after the file name, then the ; file is written at cylinder: 0, head: 0, sector: 2. ; The first sector of a floppy drive is reserved for a boot sector. ; The second and other sectors can be used to store any kind of data ; and code. The kernel module of tiny operating system should be ; written to sector 2. ; This program works with drive A: only. ; For the emulator physical drive A: is this file c:\emu8086\FLOPPY_0 ; (for BIOS interrupts: INT 13h and boot). ; Note: for DOS interrupts (INT 21h) drive A: is emulated in this subdirectory: ; c:\emu8086\vdrive\a\ ; filename must be in 8.3 format, ; maximum 8 chars for the name and 3 chars after the dot. ; warning! if you run this program outside of the emulator ; it may corrupt existing data. use with caution. ; do not play with floppies that contain valuable data. org 100h jmp st filename db 128 dup(0) ; full path up to 128 chars can be specified. buffer db 512 dup (0) buffer_size = $ - offset buffer handle dw 0 kernel_flag db 0 ; if there is /k parameter, kernel_flag=1. counter dw 0 sect db 1 ; sector number (1..18). cyld db 0 ; cylinder number (0..79). head db 0 ; head number (0..1). drive db 0 ; drive number (0..3) ; A:=0, B:=1... ; init st: mov ax, cs mov ds, ax mov es, ax call clear_screen ; read cmd parameters cp: xor cx, cx mov cl, [80h] jcxz np ; this instruction is assembled into OR CX, CX and two JMPs, tutorial 7 tells why. mov si, 82h mov di, offset filename cld rep movsb mov [di-1], 0 ; check for /k parameter: cld xor cx, cx mov cl, [80h] mov di, offset filename mov al, '/' repne scasb jz fs jmp boot fs: cmp [di-2], ' ' jne nsp mov [di-2], 0 nsp:mov [di-1], 0 or [di], 0010_0000b ; to lower case. cmp [di], 'k' jne wp or kernel_flag, 1 mov sect, 2 ; start write at sector 2. lea dx, s0 mov ah, 9 int 21h jmp s0s s0 db 0Dh,0Ah,"[/k] - start from sector: 2 " , 0Dh,0Ah, '$' s0s: jmp of boot: lea dx, s3 mov ah, 9 int 21h jmp s3s s3 db 0Dh,0Ah," boot record ", 1 , 0Dh,0Ah, '$' s3s: ; open file of: mov ah, 3dh mov al, 0 mov dx, offset filename int 21h jc co mov handle, ax lea dx, m0 mov ah, 9 int 21h jmp m0m m0 db "opened: $" m0m: mov si, offset filename call print_string ; read bytes from file rd: mov ah, 3fh mov bx, handle mov cx, buffer_size mov dx, offset buffer int 21h jc er cmp ax, 0 ; no bytes left? jz cf ; write bytes to disk wr: mov ah, 03h mov al, 1 ; write 1 sector (512 bytes). mov cl, sect ; sector (1..18) mov ch, cyld ; cylinder (0..79) mov dh, head ; head (0..1) mov dl, drive ; always 0 (A:) mov bx, offset buffer int 13h jc er inc counter ; set cursor at 2,5 mov ah, 2 mov dh, 5 mov bh, 0 int 10h ; show current progress: lea dx, s1 mov ah, 9 int 21h jmp s1s s1 db 1Dh,0Ah,"writing: $" s1s: mov ax, counter call print_num_uns ; sectors... cylinders... heads... cmp kernel_flag, 1 jne cf inc sect cmp sect, 18 jbe rd ; ^ mov sect, 1 inc cyld cmp cyld, 79 jbe rd ; ^ mov cyld, 0 inc head cmp head, 1 jbe rd ; ^ ; close file cf: mov bx, handle mov ah, 3eh int 21h jc er jmp ex co: lea dx, e0 mov ah, 9 int 21h jmp e0e e0 db " cannot open the file...",0Dh,0Ah,'$' e0e: jmp ex np: lea dx, e1 mov ah, 9 int 21h jmp e1e e1 db " no parameters...",0Dh,0Ah db "==============================================================================",0Dh,0Ah db "this program was designed especially to test micro-operating system",0Dh,0Ah db "if you are emulating in emu8086, click file->set command line parameters.",0Dh,0Ah db "from command prompt type:", 0Dh,0Ah db " writebin [filename] [/k]",0Dh,0Ah, db "when /k parameter is specified file is written to second sector (kernel area).",0Dh,0Ah, db "==============================================================================",0Dh,0Ah,'$' e1e: jmp ex er: lea dx, e2 mov ah, 9 int 21h jmp e2e e2 db " i/o error...",0Dh,0Ah,'$' e2e: jmp ex wp: lea dx, e3 mov ah, 9 int 21h jmp e3e e3 db " wrong parameter. only [/k] is supported. use 8.3 short file names only.",0Dh,0Ah,'$' e3e: ex: lea dx, m1 mov ah, 9 int 21h jmp m1m m1 db 0Dh,0Ah," total sectors: $" m1m: mov ax, counter call print_num_uns lea dx, m2 mov ah, 9 int 21h jmp m2m m2 db 0Dh,0Ah, "thank your for using writebin! - emu8086.com - 2005 (c) freeware",0Dh,0Ah db " press any key...",0Dh,0Ah, '$' m2m: ; wait for any key... mov ah, 0 int 16h ret ; exit. ; this macro prints a char in AL and advances ; the current cursor position: PUTC MACRO char PUSH AX MOV AL, char MOV AH, 0Eh INT 10h POP AX PUTC ENDM ; prints out an unsigned value of AX register. ; allowed values from 0 to 65535 print_num_uns proc near push ax push bx push cx push dx ; flag to prevent printing zeros before number: mov cx, 1 ; (result of "/ 10000" is always less or equal to 9). mov bx, 10000 ; 2710h - divider. ; ax is zero? cmp ax, 0 jz print_zero begin_print: ; check divider (if zero go to end_print): cmp bx,0 jz end_print ; avoid printing zeros before number: cmp cx, 0 je calc ; if ax<bx then result of div will be zero: cmp ax, bx jb skip calc: mov cx, 0 ; set flag. mov dx, 0 div bx ; ax = dx:ax / bx (dx=remainder). ; print last digit ; ah is always zero, so it's ignored add al, 30h ; convert to ascii code. putc al mov ax, dx ; get remainder from last div. skip: ; calculate bx=bx/10 push ax mov dx, 0 mov ax, bx div cs:ten ; ax = dx:ax / 10 (dx=remainder). mov bx, ax pop ax jmp begin_print print_zero: putc '0' end_print: pop dx pop cx pop bx pop ax ret ten dw 10 ; used as divider. print_num_uns endp ; print null terminated string at ds:si print_string proc near push ax ; store registers... push si ; nxtch: mov al, [si] cmp al, 0 jz printed inc si mov ah, 0eh ; teletype function. int 10h jmp nxtch printed: pop si ; re-store registers... pop ax ; ret print_string endp clear_screen proc near push ax ; store registers... push ds ; push bx ; push cx ; push di ; mov ax, 40h mov ds, ax ; for getting screen parameters. mov ah, 06h ; scroll up function id. mov al, 0 ; scroll all lines! mov bh, 07 ; attribute for new lines. mov ch, 0 ; upper row. mov cl, 0 ; upper col. mov di, 84h ; rows on screen -1, mov dh, [di] ; lower row (byte). mov di, 4ah ; columns on screen, mov dl, [di] dec dl ; lower col. int 10h ; set cursor position to top ; of the screen: mov bh, 0 ; current page. mov dl, 0 ; col. mov dh, 0 ; row. mov ah, 02 int 10h pop di ; re-store registers... pop cx ; pop bx ; pop ds ; pop ax ; ret clear_screen endp ; some interrupt info: ; ----------------------------------------------------------- ; INT 21h / AH= 3Dh - open existing file. ; entry: ; ; AL = access and sharing modes (if unsure set to zero). ; DS:DX -> ASCIZ filename. ; return: ; CF clear if successful, AX = file handle. ; CF set on error AX = error code. ; Note: file pointer is set to start of file. ; ----------------------------------------------------------- ; INT 21h / AH= 3Fh - read from file. ; entry: ; BX = file handle. ; CX = number of bytes to read. ; DS:DX -> buffer for data. ; return: ; CF is clear if successful - AX = number of bytes actually read; 0 if at EOF (end of file) before call. ; CF is set on error AX = error code. ; note: data is read beginning at current file position, and the file position is updated after ; a successful read the returned AX may be smaller than the request in CX if a partial read occurred. ; ----------------------------------------------------------- ; INT 21h / AH= 3Eh - close file. ; entry: BX = file handle ; return: ; CF clear if successful, AX destroyed. ; CF set on error, AX = error code (06h). ; ----------------------------------------------------------- ; INT 13h / AH = 03h - write disk sectors. ; input: ; AL = number of sectors to read/write (must be nonzero) ; CL = sector number (1..18). ; CH = cylinder number (0..79). ; DH = head number (0..1). ; DL = drive number (0..3 , for the emulator it depends on quantity of FLOPPY_ files). ; ES:BX points to data buffer. ; return: ; CF set on error. ; CF clear if successful. ; AH = status (0 - if successful). ; AL = number of sectors transferred. ; Note: each sector has 512 bytes. ; ----------------------------------------------------------- ; INT 10h / AH = 02h - set cursor position. ; input: ; DH = row. ; DL = column. ; BH = page number (0..7). ; ----------------------------------------------------------- ; INT 21h / AH=09h - output of a string at DS:DX. ; string must be terminated by '$' character. ; -----------------------------------------------------------
25.388027
114
0.491092
7d2f9d92b95351613043c6ddfc295e9b661901eb
20,876
asm
Assembly
Source/P-Vars.asm
Svarov-RZM/xci
b9ed5e5d11ab6f9804a0196dc11063b2b5495739
[ "BSD-2-Clause" ]
null
null
null
Source/P-Vars.asm
Svarov-RZM/xci
b9ed5e5d11ab6f9804a0196dc11063b2b5495739
[ "BSD-2-Clause" ]
1
2019-08-25T04:53:16.000Z
2019-09-25T06:39:41.000Z
Source/P-Vars.asm
Svarov-RZM/xci
b9ed5e5d11ab6f9804a0196dc11063b2b5495739
[ "BSD-2-Clause" ]
null
null
null
; P-Vars.asm ; ; Copyright (c) 2019, Dmitry Razumovsky (Svarov-RZM) ; You may distribute under the terms of BSD 2-Clause License ; as specified in the LICENSE.TXT file. ; ; >>>=== VARIABLE-SPECIFIC PROCEDURES ===<<< ; => Add variable to VARS buffer <= ; IN: ; ESI = [POINTER] NAME.TYPE.ACTION.OPTIONS ; EDI = [POINTER] Position in VARS to insert [PRESERVED] ; OUT: ; AL = [BYTE] 0 - Fail (not enough space, not implemented), 1 - Success ; ESI = [POINTER] ACTION section ADD.NEW.VAR: mov edx,edi ; Copy NAME to VARS Call COPY.NT.STR ; Skip to TYPE Call SKIP.CHAR.FORWARD Call SKIP.CHAR.FORWARD.DST ; Copy TYPE to VARS Call COPY.NT.STR ; Skip to ACTION in SRC ; Skip to DATA in DST (VARS) Call SKIP.CHAR.FORWARD Call SKIP.CHAR.FORWARD.DST ; Update end of VARS mov [ebp-40],edi A.N.V.RET: mov al,1 mov edi,edx Ret ; => Adjust variable array <= ; We check mode and length of the string and if it's ; longer than currently allocated, we expand VARS array ; IN: ; [EBP-40] = [POINTER] End of VARS array ; ESI = [POINTER] Data to add/replace [PRESERVED] ; EDI = [POINTER] SIZE section in VARS ; OUT: ; EDI = [POINTER] DATA section in VARS ADJUST.VARIABLE.ARRAY: ; Preserve needed pointers push esi push edi ; Count the new string and convert it to BYTE counter ; We increment ECX to account for NULL-TERMINATOR Call COUNT.STRING inc ecx Call CONVERT.LENGTH.TO.BYTES ; Save old length to EDX, new one to VARS ; We add DWORD to ECX because we place counter not only in the begin ; of the DATA section but also in the end too, so final result is: [SIZE]DATA[SIZE] mov edx,[edi] add ecx,C_DWORD mov [edi],ecx ; Check if we're in the end of VARS ; if so, then no need to adjust cmp [ebp-40],edi je A.V.A.RET ; Check if we have to extend/collapse VARS array sub ecx,edx je A.V.A.RET; Same size, we are lucky ja A.V.A.EXTEND ; Collapse array A.V.A.COLLAPSE: ; EDX = Counter of old variable ; [EDI] = Counter of new variable ; ECX = Length we have to shorten VARS array to sub edx,[edi] xchg ecx,edx push ecx ; Starting position where to collapse the memory ; COLLAPSE.MEMORY.BYTES works with ESI mov esi,edi ; Skip SIZE section, now we point to DATA section add esi,4 ; EAX = End of VARS array but points to SIZE+DATA ; We have to skip DATA knowing its SIZE mov eax,[ebp-40] add eax,4; Skip SIZE add eax,[eax-4]; Skip DATA Call COLLAPSE.MEMORY.BYTES ; After memory collapse the end of VARS in [EBP-40] ; is not valid anymore, we have to fix it pop ecx mov eax,[ebp-40] sub eax,ecx mov [ebp-40],eax jmp short A.V.A.RET ; Extend array A.V.A.EXTEND: ; Save difference between current and new size push ecx ; Prepare source and destination ; ESI = Pointer to current position, we skip SIZE section ; EDI = Pointer to the end of array mov esi,edi add esi,4 mov edi,[ebp-40] add edi,4 add edi,[edi-4] ; Calculate how much we must extend array ; Save difference in EDX, we'll use it to correct ; the end of array after COLLAPSE.MEMORY.BYTES call mov edx,ecx ; In ECX we get the difference in bytes between end of array and current position ; It's a counter for how much we have to extend our array mov ecx,edi sub ecx,esi ; We determine if length of new string is bigger than the WHOLE ; VARS array, in this case we have to use new string counter for expanding cmp ecx,edx jae A.V.A.COPY ; String counter is bigger, use it for expanding xchg edx,ecx ; Copy the rest of array A.V.A.COPY: Call COPY.MEM.GENERAL ; EAX = End of VARS returned in EDI by COPY.MEM.GENERAL mov eax,edi ; ECX = Calculate the length to collapse sub ecx,[esp] add esp,4 ; ESI = Current position in VARS, again, we skip SIZE section mov esi,[esp] add esi,4 Call COLLAPSE.MEMORY.BYTES ; After memory expansion and collapse, the end of VARS in [EBP-40] is not valid anymore, ; we have to fix it. Earlier we saved a counter for that purpose in EDX mov eax,[ebp-40] add eax,edx mov [ebp-40],eax ; Restore pointers and return ; We skip in EDI to point to DATA section A.V.A.RET: pop edi pop esi add edi,4 Ret ; => Compose variable <= ; We use this procedure to compose the variable structure ; in memory for MANAGE.VAR, e.g. VarName,T,=,123 ; IN: ; ESI = [POINTER] Name of the variable (NT string) ; AX = [CHAR] TYPE ; CX = [CHAR] ACTION ; OUT: ; ESI = [POINTER] DATA section COMPOSE.VARIABLE: push edi push ecx push eax ; Determine if variable exists. ; If so, then we must omit TYPE mov edi,[ebp-36] Call SEARCH.VAR push eax; Preserve flag for later comparison ; Add NAME Call SKIP.NT.STRING ; Skip TYPE if variable exists pop eax cmp al,1 pop eax je C.V.ADD.ACTION ; Add TYPE mov [esi],ax Call SKIP.CHAR.FORWARD Call ADD.NULL.TERMINATOR Call SKIP.CHAR.FORWARD ; Add ACTION C.V.ADD.ACTION: pop ecx mov [esi],cx Call SKIP.CHAR.FORWARD Call ADD.NULL.TERMINATOR Call SKIP.CHAR.FORWARD pop edi Ret ; => Get DBOX variable <= ; IN: ; ESI = [POINTER] NAME of variable ; OUT: ; ESI = [POINTER] DBOX structure GET.DBOX.VARIABLE: ; Search variable mov edi,[ebp-36]; VARS buffer Call SEARCH.VAR cmp al,1 jne G.D.V.RET.BAD ; Get pointer Call SKIP.VAR.TO.DATA mov esi,edi jmp short G.D.V.RET G.D.V.RET.BAD: xor esi,esi G.D.V.RET: Ret ; => Get pointer to any variable's DATA <= ; IN: ; ESI = [POINTER] NAME of variable ; OUT: ; ESI = [POINTER] DATA section of requested variable or ZERO if failed ; AX = [CHAR] Type of variable GET.VARIABLE: ; Search variable mov edi,[ebp-36]; VARS buffer Call SEARCH.VAR cmp al,1 jne G.V.RET.BAD ; Get pointer Call SKIP.VAR.TO.DATA mov esi,edi jmp short G.V.RET G.V.RET.BAD: xor esi,esi G.V.RET: Ret ; => Get variable by type <= ; IN: ; AX = [CHAR] Type of variable ; ESI = [POINTER] NAME of variable ; OUT: ; ESI = [POINTER] DATA section ; ECX = [INT] Counter of DATA section GET.VARIABLE.BY.TYPE: ; Save type and set up initial index ; EDI is a placeholder for next VARS pointer push eax push edi mov edi,[ebp-36]; VARS buffer ; Search variable G.V.B.T.LOOP: Call SEARCH.VAR cmp al,1 jne G.V.B.T.RET.BAD ; Get pointer to DATA and TYPE ; We must preserve EDI because it points to NAME in VARS ; This way SEARCH.VAR can continue searching futher mov [esp],edi Call SKIP.VAR.TO.DATA ; Check type and repeat search if not matched mov edx,[esp+4] cmp al,dl je G.V.B.T.FIN mov edi,[esp] jmp short G.V.B.T.LOOP ; Get values G.V.B.T.FIN: mov ecx,[edi-4] mov esi,edi jmp short G.V.B.T.RET G.V.B.T.RET.BAD: xor esi,esi G.V.B.T.RET: add esp,8; Saved pointer to VARS and TYPE Ret ; => Get LABEL variable <= ; IN: ; ESI = [POINTER] NAME of variable ; OUT: ; ESI = [POINTER] Position of the next argument or NULL if not found ; ECX = [INT] Size of arguments GET.LABEL.VARIABLE: ; Search variable mov edi,[ebp-36]; VARS buffer Call SEARCH.VAR cmp al,1 jne G.L.V.RET.BAD ; Get pointer Call SKIP.VAR.TO.DATA ; Check type cmp al,'L' jne EXIT ; Get values mov ecx,[edi] mov esi,[edi+4] jmp short G.L.V.RET G.L.V.RET.BAD: xor esi,esi G.L.V.RET: Ret ; => Get MODE variable <= ; IN: ; ESI = [POINTER] NAME of variable ; OUT: ; ESI = [POINTER] DATA section ; ECX = [INT] Counter of DATA section GET.MODE.VARIABLE: ; Search variable mov edi,[ebp-36]; VARS buffer Call SEARCH.VAR cmp al,1 jne G.M.V.RET.BAD ; Get pointer Call SKIP.VAR.TO.DATA ; Check type cmp al,'M' jne EXIT ; Get values mov ecx,[edi-4] mov esi,edi jmp short G.M.V.RET G.M.V.RET.BAD: xor esi,esi G.M.V.RET: Ret ; => Get pointer to the next variable <= ; IN: ; EDI = [POINTER] VARS buffer ; OUT: ; ESI = [POINTER] DATA section of requested variable or ZERO if failed ; EDI = [POINTER] Next position in VARS buffer ; AX = [CHAR] Type of variable GET.NEXT.VARIABLE: ; See if we are in the end of VARS array cmp edi,[ebp-40] jae G.N.V.RET.BAD ; Skip NAME and TYPE of current variable xchg esi,edi Call SKIP.NT.STRING mov ax,[esi]; TYPE mov ecx,2 Call SKIP.WORDS xchg esi,edi ; We are at variable's DATA ; Save to ESI and skip to next variable mov esi,edi add esi,C_DWORD; ESI = DATA section add edi,[edi] add edi,C_DWORD*2 jmp short G.N.V.RET G.N.V.RET.BAD: xor esi,esi G.N.V.RET: Ret ; => Get pointer to the previous variable <= ; IN: ; EDI = [POINTER] VARs buffer ; OUT: ; ESI = [POINTER] DATA section of requested variable or ZERO if failed ; EDI = [POINTER] Next position in VARS buffer ; AX = [CHAR] Type of variable GET.PREVIOUS.VARIABLE: ; Return if we're out of VARS array cmp edi,[ebp-36] jbe G.P.V.RET.BAD ; Rewind to DATA section of the previous variable sub edi,C_DWORD sub edi,[edi] push edi; Save DATA section ; Rewind to TYPE sub edi,C_DWORD*2; SIZE+Separator mov dx,[edi] ; Rewind to the first letter of the NAME section sub edi,C_WORD*2; TYPE+Separator xchg esi,edi Call REWIND.NT.STRING mov ecx,2 Call SKIP.CHARACTERS xchg esi,edi ; We're at variable's NAME ; Restore DATA section and set TYPE in AX mov ax,dx pop esi jmp short G.P.V.RET G.P.V.RET.BAD: xor esi,esi G.P.V.RET: Ret ; => Add new or change already existing variable <= ; IN: ; ESI = [POINTER] Variable structure: NAME,TYPE [NEW] or NAME,ACTION,OPTIONS [CHANGE] ; ACTION and OPTIONS depends on what matched PROCESS.*.VARIABLE procedure requires ; OUT: ; AL = [BYTE] 0 - Fail (end of VARS), 1 - Added/Modified successfully ; OTHER REGISTERS: Depends on PROCESS.*.VARIABLE MANAGE.VAR: ; Split string xor dh,dh mov dl,',' Call SPLIT.STRING ; Search variable mov edi,[ebp-36]; VARS buffer Call SEARCH.VAR test al,al je C.V.RET; Hit the end of VARS array cmp al,1 je C.V.ACTION ; Could not found - let's add a new one Call ADD.NEW.VAR jmp short C.V.ACT.SNAME ; Process action C.V.ACTION: ; Skip NAME and TYPE in [SRC] Call SKIP.NT.STRING ; Jump here if ADD.NEW.VAR procedure was called C.V.ACT.SNAME: ; Skip NAME in [DST] push esi mov esi,edi Call SKIP.NT.STRING; Skip NAME in EDI mov edi,esi; EDI = Selected variable without NAME pop esi; ESI = New data variable without NAME ; Call the appropriate action for numerical/string/etc variable mov ax,[edi]; AX = Type cmp al,'T'; Text je C.V.A.T cmp al,'N'; Numerical je C.V.A.N cmp al,'L'; Label je C.V.A.L cmp al,'D'; DBOX je C.V.A.D cmp al,'F'; Frame je C.V.A.F cmp al,'E'; Active element je C.V.A.E cmp al,'M'; Mode je C.V.A.M xor al,al jmp short C.V.RET; Ignore unknown type ; Process text variable C.V.A.T: Call PROCESS.STRING.VARIABLE jmp short C.V.RET.GOOD ; Process numerical variable C.V.A.N: Call PROCESS.NUMERICAL.VARIABLE jmp short C.V.RET.GOOD ; Process label variable C.V.A.L: Call PROCESS.LABEL.VARIABLE jmp short C.V.RET.GOOD ; Process DBOX variable C.V.A.D: Call PROCESS.DBOX.VARIABLE jmp short C.V.RET.GOOD ; Process frame variable C.V.A.F: Call PROCESS.FRAME.VARIABLE jmp short C.V.RET.GOOD ; Process active element variable C.V.A.E: Call PROCESS.ELEMENT.VARIABLE jmp short C.V.RET.GOOD ; Process mode variable C.V.A.M: Call PROCESS.MODE.VARIABLE ; Added/Modified successfully C.V.RET.GOOD: mov al,1 C.V.RET: Ret ; => Skip to DATA section in variable structure <= ; IN: ; EDI = [POINTER] Name of variable in VARS buffer ; OUT: ; EDI = [POINTER] DATA section ; AX = [CHAR] TYPE of variable SKIP.VAR.TO.DATA: push esi ; Skip NAME, TYPE and SIZE mov esi,edi Call SKIP.NT.STRING mov ax,[esi] mov ecx,4 Call SKIP.WORDS mov edi,esi pop esi Ret ; => Expand string variable <= ; IN: ; ESI = [POINTER] String to expand, e.g. 'Text~Var~123' ; OUT: ; ESI = [POINTER] Expanded string in DATA buffer ; DATA example: ; Before~EXP~After EXPAND.STR.VAR: push esi; Save pointer to 'Before~EXP~After' ; Looking for variable symbol xor dh,dh mov dl,'~'; Indicates variable Call SEARCH.CHAR.NT test al,al je E.S.V.RET ; ESI now points to '~EXP~After' ; Replacing the second variable symbol push esi; This is the start point of where we'll expand the variable add esi,2; ESI points to 'EXP~After' mov ax,bx; Replace second symbol with NT Call REPLACE.WORD.NT test al,al je E.S.V.RET.BAD; It's just one ~ symbol, not a variable Call COUNT.STRING push ecx; Save counter of variable's name ; ESI now points to '~EXP~After' ; Search and count the variable mov edi,[ebp-36]; VARS buffer Call SEARCH.VAR cmp al,1 jne E.S.V.RET.BAD; No such variable Call SKIP.VAR.TO.DATA ; Insert the new string from variable pop ecx add ecx,2; Don't forget two '~~' symbols pop esi ; ECX = Counter: Variable's name ; ESI = Pointer: 'EXP.After' ; EDI = Pointer: Variable's data Call COLLAPSE.NT.STRING xchg esi,edi Call INSERT.STRING jmp short E.S.V.NEXT E.S.V.RET.BAD: add esp,8; Remove counter and temp pointer pop esi Ret ; Iterate all over again in case there's another variable E.S.V.NEXT: pop esi; Restore initial pointer jmp EXPAND.STR.VAR ; No more vars, return E.S.V.RET: pop esi; Restore initial pointer Ret ; => Process action on numerical variable <= ; IN: ; ESI = [POINTER] Action for numerical variable ; Example: =,10 or +,25 ; EDI = [POINTER] TYPE of currently selected variable ; OUT: ; EAX = [INT] Result from CALCULATE.SIMPLE PROCESS.NUMERICAL.VARIABLE: ; Get mode for CALCULATE.SIMPLE in EAX Call ACQUIRE.TWO.CHARS ; Convert the number from binary to text type cmp al,'C' je P.A.O.V.N.CNV ; Save mode push eax ; Get RHS cmp [esi],bx je P.N.V.LHS; Not specified Call CONVERT.DECIMAL.STRING.TO.INTEGER mov edx,eax; RHS ; Get LHS P.N.V.LHS: xchg esi,edi mov ecx,2 Call SKIP.WORDS; Skip TYPE+SIZE mov ecx,[esi+C_DWORD]; LHS ; Calculate pop eax; AX = Mode Call CALCULATE.SIMPLE ; Set size and value mov dword [esi],C_DWORD; Start SIZE add esi,C_DWORD mov [esi],eax; Set new value add esi,C_DWORD mov dword [esi],C_DWORD; End SIZE Ret ; Convert variable to text P.A.O.V.N.CNV: ; ESI = Start of the new variable structure: NAME push esi ; Compose variable for MANAGE.VAR xor ax,ax mov ax,'T' xor cx,cx mov cx,'=' Call COMPOSE.VARIABLE ; Get current numerical value xchg esi,edi mov ecx,2 Call SKIP.WORDS; Skip TYPE+SIZE mov eax,[esi+C_DWORD]; LHS xchg esi,edi Call CONVERT.BIN.TO.STR ; Add new variable pop esi Call MANAGE.VAR Ret ; => Process action on string variable <= ; IN: ; ESI = [POINTER] Action for numerical variable ; Example: =,Text or (,Left ; EDI = [POINTER] TYPE.DATA ; OUT: ; EDI = [POINTER] Selected variable (DATA section) PROCESS.STRING.VARIABLE: ; Get ACTION and skip TYPE Call ACQUIRE.CHAR Call SKIP.CHAR.FORWARD ; Save ACTION for ADD.TO.STRING push eax ; Skip to DATA ; 4 words is for TYPE(WORD), DELIMETER(WORD) and SIZE(DWORD) mov ecx,4 Call SKIP.CHARACTERS.DST ; Save pointer to DATA section push edi ; Skip current string in source push esi; Save start of string Call SKIP.NT.STRING push esi; Save position after the first string xchg esi,edi ; Copy current string in destination Call COUNT.STRING Call COPY.CHARACTERS Call ADD.NULL.TERMINATOR.DST ; Add to string ; We compute in source because destination may not have enough of space pop edi; String to add mov esi,[esp]; Where to add mov eax,[esp+8]; ACTION Call ADD.TO.STRING mov [esp],edi; Replace original source with the new result ; Adjust array in destination to fit string in source pop esi; Original source pop edi; DATA section sub edi,4; Back to SIZE add esp,4; Remove ACTION from the stack Call ADJUST.VARIABLE.ARRAY ; Save counter of DATA section to write after the end mov ecx,[edi-C_DWORD] push ecx ; Copy new string to VARS array Call COUNT.STRING Call COPY.CHARACTERS Call ADD.NULL.TERMINATOR.DST Call SKIP.CHAR.FORWARD.DST; Skip NT ; Write end SIZE pop ecx mov [edi],ecx Ret ; => Process action on label variable <= ; IN: ; ESI = [POINTER] Label string ; EDI = [POINTER] TYPE.DATA ; OUT: ; EDI = [POINTER] Selected variable (DATA section) PROCESS.LABEL.VARIABLE: ; Get ACTION and skip TYPE Call ACQUIRE.CHAR Call SKIP.CHAR.FORWARD ; Skip to DATA section ; 4 words is for TYPE(WORD), DELIMETER(WORD) and SIZE(DWORD) mov ecx,4 Call SKIP.CHARACTERS.DST ; Add SIZE ; It's equal to Size of arguments + Pointer to current position mov dword [edi-4],8 ; Add new pointer for procedure/label mov eax,[esi] mov [edi],eax ; Add argument size add esi,C_POINTER add edi,C_POINTER mov eax,[esi] mov [edi],eax ; Add end SIZE add edi,C_DWORD mov dword [edi],8 Ret ; => Process action on DBOX variable <= ; IN: ; ESI = [POINTER] DBOX structure in binary form ; EDI = [POINTER] TYPE.DATA ; OUT: ; EDI = [POINTER] Selected variable (DATA section) PROCESS.DBOX.VARIABLE: ; Get ACTION and skip TYPE Call ACQUIRE.CHAR Call SKIP.CHAR.FORWARD ; Skip to DATA section ; 4 words is for TYPE(WORD), DELIMETER(WORD) and SIZE(DWORD) mov ecx,4 Call SKIP.CHARACTERS.DST ; Add PRE SIZE ; DBOX is 8 bytes long mov dword [edi-4],8 ; Add DBOX values mov ax,[esi]; X left mov [edi],ax mov ax,[esi+2]; X right mov [edi+2],ax mov ax,[esi+4]; Y top mov [edi+4],ax mov ax,[esi+6]; Y bottom mov [edi+6],ax ; Add POST SIZE mov dword [edi+8],8 Ret ; => Process action on ELEMENT variable <= ; IN: ; ESI = [POINTER] DBOX + Label string ; EDI = [POINTER] TYPE.DATA ; OUT: ; EDI = [POINTER] Selected variable (DATA section) PROCESS.ELEMENT.VARIABLE: ; Get ACTION and skip TYPE Call ACQUIRE.CHAR Call SKIP.CHAR.FORWARD ; Skip to DATA section ; 4 words is for TYPE(WORD), DELIMETER(WORD) and SIZE(DWORD) mov ecx,4 Call SKIP.CHARACTERS.DST ; Add SIZE ; DBOX is 8 bytes long ; We save EDI because we must add procedure length to it later mov dword [edi-4],8 push edi ; Copy DBOX values mov ax,[esi]; X left mov [edi],ax mov ax,[esi+2]; X right mov [edi+2],ax mov ax,[esi+4]; Y top mov [edi+4],ax mov ax,[esi+6]; Y bottom mov [edi+6],ax ; Copy the string that indicates procedure for active element add edi,8 add esi,8 Call COPY.NT.STR ; Add procedure string size mov edi,[esp] mov eax,2 Call MULTIPLY.INTEGER add eax,C_WORD; String+NT add [edi-4],eax; Resulting size: DBOX+Procedure string ; Set POST SIZE mov eax,[edi-4] add edi,eax mov [edi],eax ; Restore pointer to DATA section pop edi Ret ; => Process action on FRAME variable <= ; IN: ; ESI = [POINTER] Drawing elements, like *,-,*,:, ,:,#,-,# ; EDI = [POINTER] TYPE.DATA ; OUT: ; EDI = [POINTER] Selected variable (DATA section) PROCESS.FRAME.VARIABLE: ; Get ACTION and skip TYPE Call ACQUIRE.CHAR Call SKIP.CHAR.FORWARD ; Skip to DATA ; 4 words is for TYPE(WORD), DELIMETER(WORD) and SIZE(DWORD) mov ecx,4 Call SKIP.CHARACTERS.DST ; Skip SIZE for now because frame is a dynamic structure push edi mov dword [edi-4],ebx ; Frame is constructed from 9 NT strings ; So we iterate 9 times and add those strings as well as counting resulting structure mov eax,P.F.V.LOOP mov ecx,9 Call LOOP.TIMES ; Convert size in words to bytes pop esi mov ecx,[esi-4] mov eax,2 Call MULTIPLY.INTEGER ; Save PRE size and POST size mov [esi-4],eax mov [edi],eax Ret ; CALLBACK: Process frame structure P.F.V.LOOP: ; Copy string and get to the next position Call COPY.NT.STR Call SKIP.CHAR.FORWARD Call SKIP.CHAR.FORWARD.DST ; Update counter inc ecx; Account for null-terminator mov eax,[esp+16] add [eax-4],ecx mov al,1 Ret ; => Process action on MODE variable <= ; IN: ; ESI = [POINTER]: M_SIZE bytes of modes ; EDI = [POINTER] TYPE.DATA ; OUT: ; EDI = [POINTER] Selected variable (DATA section) PROCESS.MODE.VARIABLE: ; Get ACTION and skip TYPE Call ACQUIRE.CHAR Call SKIP.CHAR.FORWARD ; Skip to DATA ; 4 words is for TYPE(WORD), DELIMETER(WORD) and SIZE(DWORD) mov ecx,4 Call SKIP.CHARACTERS.DST ; Add PRE SIZE of variable mov dword [edi-4],M_SIZE ; Copy flags to VARS mov ecx,M_SIZE/2 Call COPY.MEM.WORDS ; Add POST size mov dword [edi],M_SIZE Ret ; => Search variable in VARS buffer <= ; IN: ; ESI = [POINTER] Variable's name [PRESERVED] ; EDI = [POINTER] VARS buffer ; OUT: ; AL = [BYTE] 1 - Found, 0 - End of array, 2 - Not found ; EDI = [POINTER] NAME of variable or an empty space after the last variable if not found SEARCH.VAR: push esi; Preserve variable's name ; Prepare Call COUNT.STRING; Count variable's name inc ecx; NT included push ecx; Save counter ; Loop through VARS buffer S.V.LOOP: ; See if we are in the end of array cmp edi,[ebp-40] jae S.V.RET.NF ; Compare against current variable ; If COMPARE.CHARS returns TRUE then we found it mov ecx,[esp] Call COMPARE.CHARS test al,al jne S.V.RET.GOOD ; Skip NAME and TYPE of current variable xchg esi,edi Call SKIP.NT.STRING mov ecx,2 Call SKIP.WORDS xchg esi,edi ; We're at variable's SIZE section ; From here we can skip to the next variable add edi,[edi] add edi,C_DWORD*2 jmp short S.V.LOOP ; Variable is not found S.V.RET.NF: mov al,2 jmp short S.V.RET ; Variable is found S.V.RET.GOOD: ; AL is already 1 [set by COMPARE.CHARS] S.V.RET: add esp,4; Remove string counter pop esi; Restore structure pointer Ret
19.169881
95
0.702386
47dbeb19bb6d380de8925dbe1db09673f894b72d
591
asm
Assembly
scripts/generated/de/dataexpansion.asm
shaigem/melee-asm-lab
61dbc0aaa99264b5fdd34841f1ae71241759d93f
[ "MIT" ]
null
null
null
scripts/generated/de/dataexpansion.asm
shaigem/melee-asm-lab
61dbc0aaa99264b5fdd34841f1ae71241759d93f
[ "MIT" ]
null
null
null
scripts/generated/de/dataexpansion.asm
shaigem/melee-asm-lab
61dbc0aaa99264b5fdd34841f1ae71241759d93f
[ "MIT" ]
null
null
null
.include "punkpc.s" punkpc ppc # sushie's Ft/ItData Expansion v1.1.1 # authors: @["sushie"] # description: Must be on for codes like Hitbox Extension & 8Box to work gecko 2147913452 addi r30, r3, 0 load r4, 2152042448 lwz r4, 0x00000020(r4) bla r12, 2147533152 mr r3, r30 lis r4, 0x00008046 gecko 2148263984 addi r30, r3, 0 load r4, 2152042448 lwz r4, 0x00000020(r4) bla r12, 2147533152 exit: mr r3, r30 lis r4, 0x00008046 gecko 2147908028, li r4, 11108 gecko.end gecko 2150002648, li r4, 5828 gecko 2150008660 addi r29, r3, 0 li r4, 5828 bla r12, 2147533152 mr r3, r29 mr. r6, r3 gecko.end
19.064516
72
0.746193
3389825beecb850c14ba4d3622187ce35273ee44
5,609
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_170.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_170.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_170.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r8 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x13989, %r9 nop xor $61858, %rdx movl $0x61626364, (%r9) nop and %r13, %r13 lea addresses_WC_ht+0x9b2d, %rsi lea addresses_UC_ht+0xad1d, %rdi add %r8, %r8 mov $104, %rcx rep movsl nop nop nop nop nop and $24819, %r8 pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r8 pop %r13 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r15 push %r8 push %rax push %rbp push %rcx // Store lea addresses_WT+0xef2d, %rax nop nop nop nop nop and %r15, %r15 mov $0x5152535455565758, %r8 movq %r8, %xmm2 movups %xmm2, (%rax) nop nop xor $60367, %r8 // Store lea addresses_US+0x531d, %rcx nop dec %r12 movw $0x5152, (%rcx) nop add %r8, %r8 // Store lea addresses_PSE+0x1181d, %rbp nop cmp $9866, %r12 mov $0x5152535455565758, %r8 movq %r8, %xmm3 movups %xmm3, (%rbp) nop nop inc %rbp // Store lea addresses_WC+0x1811d, %r8 nop nop nop nop and $25704, %r14 movl $0x51525354, (%r8) nop nop nop nop dec %r8 // Store lea addresses_RW+0x9d, %rax nop nop nop add %r12, %r12 movl $0x51525354, (%rax) nop xor $40742, %rax // Faulty Load lea addresses_UC+0x13c1d, %rcx nop nop nop nop nop sub $12268, %r8 mov (%rcx), %r12d lea oracles, %r14 and $0xff, %r12 shlq $12, %r12 mov (%r14,%r12,1), %r12 pop %rcx pop %rbp pop %rax pop %r8 pop %r15 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': True, 'congruent': 6}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 6}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_UC', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 1}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 4}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 8}} {'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 */
39.223776
2,999
0.655732
da14c26464ba012c5423bedd816fb9e84d9bb3b0
7,248
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1100.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1100.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1100.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 %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x1e9ba, %r9 clflush (%r9) nop nop nop nop nop and %r11, %r11 vmovups (%r9), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $0, %xmm3, %r10 sub $40710, %rdx lea addresses_D_ht+0x5fba, %rsi cmp $32399, %r9 movb (%rsi), %al nop nop nop add %rax, %rax lea addresses_WT_ht+0x1b1e9, %rsi nop sub %rdi, %rdi mov (%rsi), %r9d nop sub $19538, %rsi lea addresses_normal_ht+0xea0a, %rsi lea addresses_A_ht+0x14656, %rdi nop nop cmp $54059, %rdx mov $36, %rcx rep movsl and $37772, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %r8 push %rax push %rbx push %rsi // Store mov $0x162, %r11 and $35114, %rbx mov $0x5152535455565758, %r14 movq %r14, %xmm7 movups %xmm7, (%r11) nop nop nop nop nop add $63, %r14 // Store lea addresses_A+0x10472, %rbx nop nop nop nop add %rax, %rax mov $0x5152535455565758, %r12 movq %r12, (%rbx) nop nop nop nop nop cmp $13146, %r12 // Store lea addresses_A+0x29ea, %rax nop nop nop nop nop xor %r8, %r8 mov $0x5152535455565758, %rsi movq %rsi, %xmm4 vmovaps %ymm4, (%rax) nop nop nop nop xor $55683, %r12 // Store lea addresses_WC+0x4b2, %rbx nop nop nop nop nop sub %rax, %rax mov $0x5152535455565758, %rsi movq %rsi, %xmm2 movups %xmm2, (%rbx) nop xor $2122, %r12 // Store lea addresses_A+0xa7ba, %rbx and %r14, %r14 movw $0x5152, (%rbx) nop add %r14, %r14 // Load mov $0x1f8ed400000007ae, %r11 dec %rax movups (%r11), %xmm6 vpextrq $1, %xmm6, %r12 nop nop and $52089, %rsi // Load lea addresses_US+0x1ba, %rsi nop cmp $19469, %r8 mov (%rsi), %rax nop nop nop nop nop cmp %r11, %r11 // Store lea addresses_WC+0x10f42, %r11 nop and $15566, %rax mov $0x5152535455565758, %r8 movq %r8, %xmm4 and $0xffffffffffffffc0, %r11 vmovaps %ymm4, (%r11) nop nop nop nop nop xor %r8, %r8 // Store lea addresses_PSE+0x7b8a, %rbx xor $25320, %r12 mov $0x5152535455565758, %rsi movq %rsi, (%rbx) nop nop nop inc %rsi // Faulty Load lea addresses_PSE+0x16fba, %r8 nop nop dec %rsi mov (%r8), %r11 lea oracles, %rbx and $0xff, %r11 shlq $12, %r11 mov (%rbx,%r11,1), %r11 pop %rsi pop %rbx pop %rax pop %r8 pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_PSE', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_P', 'congruent': 3}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_A', 'congruent': 3}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': True, 'AVXalign': True, 'size': 32, 'type': 'addresses_A', 'congruent': 4}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC', 'congruent': 3}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_A', 'congruent': 9}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_NC', 'congruent': 2}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_US', 'congruent': 7}} {'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 32, 'type': 'addresses_WC', 'congruent': 1}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_PSE', 'congruent': 4}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_PSE', 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_A_ht', 'congruent': 5}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_D_ht', 'congruent': 11}} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WT_ht', 'congruent': 0}} {'dst': {'same': False, 'congruent': 0, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_normal_ht'}} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
33.09589
2,999
0.650938
a5ae4dacadb13cb9641b876da4f3abe6ce63dc6e
2,366
asm
Assembly
src/test/kc/complex/borderline_pacman/byteboozer_decrunch.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/test/kc/examples/c64/crunching/byteboozer_decrunch.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/test/kc/examples/c64/crunching/byteboozer_decrunch.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
// ByteBoozer Decruncher /HCL May.2003 // B2 Decruncher December 2014 .importonce .filenamespace b2 // You must set .const B2_ZP_BASE prior the import of this file .if (B2_ZP_BASE > $ff) { .error "B2_ZP_BASE must be in zeropage. Was $" + toHexString(B2_ZP_BASE,4) } .label zp_base = B2_ZP_BASE .label bits = zp_base .label put = zp_base + 2 .macro @B2_DECRUNCH(addr) { ldy #<addr ldx #>addr jsr b2.Decrunch } .macro GetNextBit() { asl bits bne DgEnd jsr GetNewBits DgEnd: } .macro GetLen() { lda #1 GlLoop: :GetNextBit() bcc GlEnd :GetNextBit() rol bpl GlLoop GlEnd: } Decrunch: sty Get1+1 sty Get2+1 sty Get3+1 stx Get1+2 stx Get2+2 stx Get3+2 ldx #0 jsr GetNewBits sty put-1,x cpx #2 bcc *-7 lda #$80 sta bits DLoop: :GetNextBit() bcs Match Literal: // Literal run.. get length. :GetLen() sta LLen+1 ldy #0 LLoop: Get3: lda $feed,x inx bne *+5 jsr GnbInc L1: sta (put),y iny LLen: cpy #0 bne LLoop clc tya adc put sta put bcc *+4 inc put+1 iny beq DLoop // Has to continue with a match.. Match: // Match.. get length. :GetLen() sta MLen+1 // Length 255 -> EOF cmp #$ff beq End // Get num bits cmp #2 lda #0 rol :GetNextBit() rol :GetNextBit() rol tay lda Tab,y beq M8 // Get bits < 8 M_1: :GetNextBit() rol bcs M_1 bmi MShort M8: // Get byte eor #$ff tay Get2: lda $feed,x inx bne *+5 jsr GnbInc jmp Mdone MShort: ldy #$ff Mdone: //clc adc put sta MLda+1 tya adc put+1 sta MLda+2 ldy #$ff MLoop: iny MLda: lda $beef,y sta (put),y MLen: cpy #0 bne MLoop //sec tya adc put sta put bcc *+4 inc put+1 jmp DLoop End: rts GetNewBits: Get1: ldy $feed,x sty bits rol bits inx bne GnbEnd GnbInc: inc Get1+2 inc Get2+2 inc Get3+2 GnbEnd: rts Tab: // Short offsets .byte %11011111 // 3 .byte %11111011 // 6 .byte %00000000 // 8 .byte %10000000 // 10 // Long offsets .byte %11101111 // 4 .byte %11111101 // 7 .byte %10000000 // 10 .byte %11110000 // 13
12.928962
78
0.53973
c121835a642cd9a48931e098081f681d7f426758
949
asm
Assembly
programs/oeis/215/A215004.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/215/A215004.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/215/A215004.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A215004: a(0) = a(1) = 1; for n>1, a(n) = a(n-1) + a(n-2) + floor(n/2). ; 1,1,3,5,10,17,30,50,84,138,227,370,603,979,1589,2575,4172,6755,10936,17700,28646,46356,75013,121380,196405,317797,514215,832025,1346254,2178293,3524562,5702870,9227448,14930334,24157799,39088150,63245967,102334135,165580121,267914275,433494416,701408711,1134903148,1836311880,2971215050,4807526952,7778742025,12586269000,20365011049,32951280073,53316291147,86267571245,139583862418,225851433689,365435296134,591286729850,956722026012,1548008755890,2504730781931,4052739537850,6557470319811,10610209857691,17167680177533,27777890035255,44945570212820,72723460248107,117669030460960,190392490709100,308061521170094,498454011879228,806515533049357,1304969544928620,2111485077978013,3416454622906669,5527939700884719,8944394323791425 cal $0,192760 ; Coefficient of x in the reduction by x^2->x+1 of the polynomial p(n,x) defined below in Comments. div $0,2 mov $1,$0 add $1,1
118.625
731
0.827187
6a322baa95cba3ea8704b9280bc577a4e58c14f9
281
asm
Assembly
libsrc/_DEVELOPMENT/adt/wv_priority_queue/c/sdcc_iy/wv_priority_queue_empty_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/wv_priority_queue/c/sdcc_iy/wv_priority_queue_empty_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/wv_priority_queue/c/sdcc_iy/wv_priority_queue_empty_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; int wv_priority_queue_empty_fastcall(wv_priority_queue_t *q) SECTION code_adt_wv_priority_queue PUBLIC _wv_priority_queue_empty_fastcall defc _wv_priority_queue_empty_fastcall = asm_wv_priority_queue_empty INCLUDE "adt/wv_priority_queue/z80/asm_wv_priority_queue_empty.asm"
25.545455
68
0.893238
048d295c85d7c607a6d1aac2dcbb8e4a5df96c4a
3,049
asm
Assembly
src/shaders/h264/ildb/AVC_ILDB_SpawnChromaRoot.asm
me176c-dev/android_hardware_intel-vaapi-driver
0f2dca8d604220405e4678c0b6c4faa578d994ec
[ "MIT" ]
192
2018-01-26T11:51:55.000Z
2022-03-25T20:04:19.000Z
src/shaders/h264/ildb/AVC_ILDB_SpawnChromaRoot.asm
me176c-dev/android_hardware_intel-vaapi-driver
0f2dca8d604220405e4678c0b6c4faa578d994ec
[ "MIT" ]
256
2017-01-23T02:10:27.000Z
2018-01-23T10:00:05.000Z
src/shaders/h264/ildb/AVC_ILDB_SpawnChromaRoot.asm
me176c-dev/android_hardware_intel-vaapi-driver
0f2dca8d604220405e4678c0b6c4faa578d994ec
[ "MIT" ]
64
2018-01-30T19:51:53.000Z
2021-11-24T01:26:14.000Z
/* * Copyright © <2010>, Intel Corporation. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sub license, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice (including the * next paragraph) shall be included in all copies or substantial portions * of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * This file was originally licensed under the following license * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ //=============== Spawn a chroma root thread =============== //----- Create chroma root thread R0 header ----- #if defined(_DEBUG) mov (1) EntrySignature:w 0xAABA:w #endif // Restore CT_R0Hdr.4:ud to r0.4:ud // mov (1) CT_R0Hdr.4:ud r0.4:ud // R0.2: Interface Discriptor Ptr. Add child offset for child kernel add (1) CT_R0Hdr.2:ud r0.2:ud CHROMA_ROOT_OFFSET:w // Assign a new Thread Count for this child mov (1) CT_R0Hdr.6:ud 1:w // ThreadID=1 for chroma root //----- Copy luma root r1 for launching chroma root thread ----- mov (16) m2.0:w RootParam<16;16,1>:w #include "writeURB.asm" //-------------------------------------------------- // Set URB handle for child thread launching: // URB handle Length (bit 15:10) - 0000 0000 0000 0000 yyyy yy00 0000 0000 // URB handle offset (bit 9:0) - 0000 0000 0000 0000 0000 00xx xxxx xxxx or (1) CT_R0Hdr.4:ud URB_EntriesPerMB_2:w URBOffset:uw // 2 URB entries: // Entry 0 - CT_R0Hdr // Entry 1 - input parameter to child kernel //----- Spawn a child now ----- send (8) null:ud CT_R0Hdr null:ud TS TSMSGDSC // Restore CT_R0Hdr.4:ud to r0.4:ud for next use mov (1) CT_R0Hdr.4:ud r0.4:ud
39.089744
79
0.686127
dfdb813120072c3cb77e435d457ef81d72cc61bd
8,813
asm
Assembly
Library/Saver/saverBitmap.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Saver/saverBitmap.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Saver/saverBitmap.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: Lights Out MODULE: Background Bitmaps FILE: saverBitmap.asm AUTHOR: Gene Anderson, Oct 29, 1991 ROUTINES: Name Description ---- ----------- GLBL SaverDrawBGBitmap Draw background bitmap VerifyBGFile Verify file is a BG bitmap we can draw DrawBGBitmap Do actual drawing of BG bitmap DestroyBGBitmap Clean up after drawing BG bitmap SetBGPos Set position and drawing mode REVISION HISTORY: Name Date Description ---- ---- ----------- Gene 10/29/91 Initial revision DESCRIPTION: Code for drawing background bitmaps as part of screen savers $Id: saverBitmap.asm,v 1.1 97/04/07 10:44:23 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SaverFadeCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SaverDrawBGBitmap %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Draw a background bitmap CALLED BY: (GLOBAL) PASS: di - handle of GState to draw with ax - SaverBitmapMode for drawing (cx,dx) - width, height of Window to draw to bx - VM file handle RETURN: carry - set if error DESTROYED: none PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 10/29/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SaverDrawBGBitmap proc far uses bx, si .enter ; ; verify the BG file ; call VerifyBGFile ;verify me jesus jc quit ;branch if error ; ; Draw it as appropriate ; call DrawBGBitmap ; ; destroy the gstring and clean up ; call DestroyBGBitmap clc ;carry <- no error quit: .leave ret SaverDrawBGBitmap endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VerifyBGFile %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Make sure the passed file is something we can handle CALLED BY: SaverDrawBGBitmap() PASS: ds:si - ptr to NULL-terminated filename RETURN: carry - set if error bx - file handle si - gstring handle DESTROYED: none PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 10/29/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VerifyBGFile proc near uses ax, cx, dx .enter ; ; Do sanity check on background file data ; sub sp, size GeodeToken mov di, sp segmov es, ss mov ax, FEA_TOKEN mov cx, size GeodeToken call FileGetHandleExtAttributes cmp {word}es:[di].GT_chars[0], 'B' or ('K' shl 8) jne clearStackAndQuit cmp {word}es:[di].GT_chars[2], 'G' or ('D' shl 8) jne clearStackAndQuit CheckHack <size GeodeToken ge size ProtocolNumber> mov ax, FEA_PROTOCOL mov cx, size ProtocolNumber call FileGetHandleExtAttributes cmp es:[di].PN_major, BG_PROTO_MAJOR jne clearStackAndQuit cmp es:[di].PN_minor, BG_PROTO_MINOR jb clearStackAndQuit add sp, size GeodeToken ; ; Try to get the data... ; call VMGetMapBlock ;ax <- VM handle of map block push bp call VMLock ;lock the map block mov ds, ax ;ds <- seg addr of map block mov si, ds:[FBGMB_data] ;si <- VM handle of start cmp ds:[FBGMB_type], FBGFT_STANDARD_GSTRING call VMUnlock ;unlock the map block (flags OK) pop bp jne closeAndQuit ;branch if we don't understand ; ; Create a graphics string out of the data ; mov cl, GST_VMEM ;cl <- GStringType call GrLoadGString clc ;carry <- no error jmp quit clearStackAndQuit: add sp, size GeodeToken closeAndQuit: stc ;carry <- error quit: .leave ret VerifyBGFile endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DrawBGBitmap %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Draw the BG file as specififed CALLED BY: SaverDrawBitmap() PASS: bx - VM file handle si - gstring handle di - gstate handle (cx,dx) - width, height of Window ax - SaverBitmapMode RETURN: none DESTROYED: none PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 10/29/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DrawBGBitmap proc near uses ax, bx, cx, dx lwinWidth local word push cx lwinHeight local word push dx drawMode local SaverBitmapMode push ax BGWidth local word BGHeight local word xOff local word .enter ; ; Copy gstring information out of map block ; call VMGetMapBlock mov dx, bp ;dx <- offset to locals call VMLock xchg dx, bp ;dx <- mem handle ;bp <- ptr to locals mov ds, ax mov ax, ds:[FBGMB_width] mov ss:BGWidth, ax mov ax, ds:[FBGMB_height] mov ss:BGHeight, ax xchg dx, bp ;dx <- ptr to locals ;bp <- mem handle call VMUnlock mov bp, dx ;bp <- ptr to locals ; ; Set start position and tiling flags ; call SetBGPos mov ss:xOff, ax ;save start x ; ; Draw the graphic ; yLoop: mov ax, ss:xOff ;ax <- starting x xLoop: push bp, ax clr bp call GrDrawGString mov al, GSSPT_BEGINNING call GrSetGStringPos pop bp, ax ; ; Are we tiling? ; cmp ss:drawMode, SAVER_BITMAP_TILE ;tiling? jne exit ;if not tiled, done ; ; Tile until done... ; add ax, ss:BGWidth ;ax <- next x position cmp ax, ss:lwinWidth ;to right edge? jb xLoop ;branch if not add bx, ss:BGHeight ;bx <- next y position cmp bx, ss:lwinHeight ;to bottom edge? jb yLoop ;branch if not exit: .leave ret DrawBGBitmap endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SetBGPos %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set start position for BG and tiling mode CALLED BY: DrawBGFile() PASS: ss:bp - inherited locals RETURN: (ax,bx) - starting (x,y) position ss:drawMode - SaverBitmapMode DESTROYED: dx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 10/29/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SetBGPos proc near .enter inherit DrawBGBitmap cmp ss:drawMode, SAVER_BITMAP_TILE je tileBitmap cmp ss:drawMode, SAVER_BITMAP_CENTER je centerBitmap cmp ss:drawMode, SAVER_BITMAP_UPPER_LEFT je upperLeft ; ; "Do the right thing" based on the size of the bitmap compared ; with the size of the window. If it is over half as big as ; the window, then center it, otherwise tile it. ; mov dx, ss:lwinWidth shr dx, 1 ;dx <- (window width)/2 cmp ss:BGWidth, dx ;bitmap >= 1/2 of window? jb tileBitmap ;branch if not mov dx, ss:lwinHeight shr dx, 1 ;dx <- (window height)/2 cmp ss:BGHeight, dx ;bitmap >= 1/2 of window? jae centerBitmap ;branch if so ; ; Tiling the bitmap...set the start (x,y) to the upper left ; tileBitmap: mov ss:drawMode, SAVER_BITMAP_TILE upperLeft: clr ax clr bx ;(ax,bx) <- start (x,y) pos done: .leave ret ; ; Centering the bitmap...set the start (x,y) appropriately ; centerBitmap: mov ss:drawMode, SAVER_BITMAP_CENTER clr ax mov dx, ss:lwinWidth ;dx <- window width sub dx, ss:BGWidth ;dx <- border jc bigX ;branch if bitmap > width shr dx, 1 ;dx <- border / 2 mov ax, dx ;ax <- start x bigX: clr bx mov dx, ss:lwinHeight ;dx <- window height sub dx, ss:BGHeight ;dx <- border jc bigY ;branch if bitmap > height shr dx, 1 ;dx <- border / 2 mov bx, dx ;bx <- start y bigY: jmp done SetBGPos endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DestroyBGBitmap %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Clean up CALLED BY: SaverDrawBitmap() PASS: si - gstring handle RETURN: none DESTROYED: none PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 10/29/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DestroyBGBitmap proc near uses dx, di .enter mov di, si ;di <- gstring handle mov dl, GSKT_LEAVE_DATA ;dl <- GStringKillType call GrDestroyGString .leave ret DestroyBGBitmap endp SaverFadeCode ends
24.145205
79
0.570294
aa7449b198a9faa6d1a4bc031ff786a57dc55549
676
asm
Assembly
oeis/259/A259264.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/259/A259264.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/259/A259264.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A259264: Cyclotomic polynomial value Phi(5,n!). ; 5,5,31,1555,346201,209102521,269112327121,645369332030641,2642973843312270721,17340169097630273489281,173401260912466521665068801,2538767225004530212838194156801,52643875968757162157863810977561601,1503561738646181637667314818258371660801,57760827743218436904006634288989167303731201,2924141904469127419579005585494269665539098368001,191636563851151346177582127137532966401227047333888001,16005677449411291595650223016039423248541516410608644096001 seq $0,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of permutations of n letters). seq $0,27445 ; a(n) = n^4 + n^3 + n^2 + n^1. add $0,1
96.571429
450
0.850592
12a9d6f95a433c06fd2bc595a9dfee58069cac73
369
asm
Assembly
books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/4_19.asm
gxw1/review_the_national_post-graduate_entrance_examination
8812779a7a4ce185a531d120562d5194b697c0c9
[ "MIT" ]
640
2019-03-30T11:32:43.000Z
2022-03-31T14:05:18.000Z
books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/4_19.asm
yyzVegst/review_the_national_post-graduate_entrance_examination
8812779a7a4ce185a531d120562d5194b697c0c9
[ "MIT" ]
6
2019-07-22T01:57:24.000Z
2022-01-20T15:03:16.000Z
books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/4_19.asm
yyzVegst/review_the_national_post-graduate_entrance_examination
8812779a7a4ce185a531d120562d5194b697c0c9
[ "MIT" ]
212
2019-04-10T02:31:50.000Z
2022-03-30T02:32:47.000Z
CODE SEGMENT ASSUME CS:CODE,DS:CODE ORG 100H START: JMP BEGIN A DW 3CC8H DW ? BEGIN: MOV AX,CS MOV DS,AX LEA BX,A MOV AX,[BX] AND AX,0FF0H INC BX INC BX MOV [BX],AX MOV AH,4CH INT 21H CODE ENDS END START
19.421053
33
0.401084
7dac6bb9aa2eeb844fdb91f7b9eb4a0c90df5baa
343
asm
Assembly
programs/oeis/016/A016248.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/016/A016248.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/016/A016248.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A016248: Expansion of 1/((1-x)(1-6x)(1-12x)). ; 1,19,271,3511,43687,533575,6458887,77842567,936126343,11245609351,135019871623,1620673815943,19450697930119,233424047994247,2801182612927879,33614755577116039,403380452257281415 lpb $0 mov $2,$0 sub $0,1 seq $2,16175 ; Expansion of 1/((1-6x)(1-12x)). add $1,$2 lpe add $1,1 mov $0,$1
28.583333
179
0.725948
220ab02723ea278a556749b34e98288432860793
573
asm
Assembly
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/malloc_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/malloc_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/malloc_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; void *malloc_fastcall(size_t size) INCLUDE "clib_cfg.asm" SECTION code_alloc_malloc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $01 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _malloc_fastcall _malloc_fastcall: INCLUDE "alloc/malloc/z80/asm_malloc.asm" ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ELSE ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _malloc_fastcall EXTERN _malloc_unlocked_fastcall defc _malloc_fastcall = _malloc_unlocked_fastcall INCLUDE "alloc/malloc/z80/asm_malloc.asm" ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ENDIF ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
17.363636
49
0.541012
d7109bc0783dc391a72ffa70036cc682dd29893d
691
asm
Assembly
oeis/005/A005165.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/005/A005165.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/005/A005165.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A005165: Alternating factorials: n! - (n-1)! + (n-2)! - ... 1!. ; Submitted by Jamie Morken(s3) ; 0,1,1,5,19,101,619,4421,35899,326981,3301819,36614981,442386619,5784634181,81393657019,1226280710981,19696509177019,335990918918981,6066382786809019,115578717622022981,2317323290554617019,48773618881154822981,1075227108896452857019,24776789629988523782981,595671612103250915577019,14915538431227735068422981,388375922695377900515577019,10500493527722974260252422981,294387851083990886241251577019,8547374142655711068302364422981,256705485669535347568006115577019,7966133168508387470157556764422981 lpb $0 sub $2,$1 add $1,$2 cmp $1,$2 add $2,$1 mul $2,$0 sub $0,1 lpe mov $0,$2
49.357143
499
0.819103
80c0f4a0296b38b4c8ee7ab36151b881246ad417
442
asm
Assembly
oeis/010/A010473.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/010/A010473.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/010/A010473.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A010473: Decimal expansion of square root of 17. ; Submitted by Jon Maiga ; 4,1,2,3,1,0,5,6,2,5,6,1,7,6,6,0,5,4,9,8,2,1,4,0,9,8,5,5,9,7,4,0,7,7,0,2,5,1,4,7,1,9,9,2,2,5,3,7,3,6,2,0,4,3,4,3,9,8,6,3,3,5,7,3,0,9,4,9,5,4,3,4,6,3,3,7,6,2,1,5,9,3,5,8,7,8,6,3,6,5,0,8,1,0,6,8,4,2,9,6 mov $1,7 mov $3,$0 mul $3,4 lpb $3 mul $2,2 add $1,$2 add $2,$1 sub $3,1 lpe mul $1,2 mov $4,10 pow $4,$0 div $2,$4 add $2,1 div $1,$2 mov $0,$1 mod $0,10
20.090909
201
0.547511
3c0a04a531a2444fa3c6dfd45ae13164a1cc1429
2,120
asm
Assembly
Quiz/Quiz 5/Quiz_5-1512132642.asm
AnikIslam1/CSE331L_Section_7_Summer_2020_NSU
2da9ddacb46d5d87315118547cd971e3874ed3c9
[ "MIT" ]
2
2020-08-27T20:09:32.000Z
2021-03-15T20:36:36.000Z
Quiz/Quiz 5/Quiz_5-1512132642.asm
AnikIslam1/CSE331L_Section_7_Summer_2020_NSU
2da9ddacb46d5d87315118547cd971e3874ed3c9
[ "MIT" ]
null
null
null
Quiz/Quiz 5/Quiz_5-1512132642.asm
AnikIslam1/CSE331L_Section_7_Summer_2020_NSU
2da9ddacb46d5d87315118547cd971e3874ed3c9
[ "MIT" ]
null
null
null
; You may customize this and other start-up templates; ; The location of this template is c:\emu8086\inc\0_com_template.txt org 100h .MODEL SMALL .stack 100H .DATA VAL1 DB ? NL1 DB 0AH,0DH, 'ENTER AN INTEGER LESS THAN 9: ','$' NL2 DB 0AH,0DH, 'The number is X`','$' NL3 DB 0AH,0DH, 'The number us X','$' .CODE MAIN: MOV AX,@DATA MOV DS,AX LEA DX,NL1 MOV AH,09H INT 21H MOV AH,01H INT 21H SUB AL,30H MOV VAL1,AL MOV AH,00 MOV CL,2 DIV CL MOV CL,AL LBL1: CMP CL,1 JBE LBL3 MOV AH,00 MOV AL,VAL1 DIV CL CMP AH,00 JZ LBL2 DEC CL JMP LBL1 LBL2: MOV AH,09H LEA DX,NL2 INT 21H JMP EXIT LBL3: MOV AH,09H LEA DX,NL3 INT 21H EXIT: MOV AH,4CH INT 21H END MAIN ret
26.835443
74
0.219811
ecb32e1359119c64c16d38049ded41b78fb86101
265
asm
Assembly
tests/docs_examples/s_temp_labels.asm
fengjixuchui/sjasmplus
df0fabd2411bf89e23637fce46d273f52dafbe16
[ "BSD-3-Clause" ]
220
2016-10-22T19:44:39.000Z
2022-03-29T20:57:04.000Z
tests/docs_examples/s_temp_labels.asm
ped7g/sjasmplus
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
[ "BSD-3-Clause" ]
153
2018-05-07T10:31:23.000Z
2022-03-30T04:35:59.000Z
tests/docs_examples/s_temp_labels.asm
ped7g/sjasmplus
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
[ "BSD-3-Clause" ]
51
2016-05-12T21:27:36.000Z
2022-03-27T15:16:16.000Z
ADD A,E JR NC,1F INC D 1 LD E,A 2 LD B,4 LD A,(DE) OUT (152),A DJNZ 2B MACRO zing DUP 2 JR 1F 1 DJNZ 1B EDUP ENDM .4 zing
14.722222
26
0.301887
cca2db2d5c0c11eb553911d33f9b819b926e8324
752
asm
Assembly
engine/events/catch_tutorial_input.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
engine/events/catch_tutorial_input.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
engine/events/catch_tutorial_input.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
_DudeAutoInput_A:: ld hl, DudeAutoInput_A jr _DudeAutoInput _DudeAutoInput_RightA: ld hl, DudeAutoInput_RightA jr _DudeAutoInput _DudeAutoInput_DownA: ld hl, DudeAutoInput_DownA jr _DudeAutoInput _DudeAutoInput: ld a, BANK(DudeAutoInputs) call StartAutoInput ret DudeAutoInputs: ; used only for BANK(DudeAutoInputs) DudeAutoInput_A: db NO_INPUT, $50 db A_BUTTON, $00 db NO_INPUT, $ff ; end DudeAutoInput_RightA: db NO_INPUT, $08 db D_RIGHT, $00 db NO_INPUT, $08 db A_BUTTON, $00 db NO_INPUT, $ff ; end DudeAutoInput_DownA: db NO_INPUT, $fe db NO_INPUT, $fe db NO_INPUT, $fe db NO_INPUT, $fe db D_DOWN, $00 db NO_INPUT, $fe db NO_INPUT, $fe db NO_INPUT, $fe db NO_INPUT, $fe db A_BUTTON, $00 db NO_INPUT, $ff ; end
17.090909
52
0.742021
484c840c4110de98221c4fcefd36ff68260fc833
584
asm
Assembly
oeis/014/A014771.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/014/A014771.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/014/A014771.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A014771: Squares of odd hexagonal numbers. ; 1,225,2025,8281,23409,53361,105625,189225,314721,494209,741321,1071225,1500625,2047761,2732409,3575881,4601025,5832225,7295401,9018009,11029041,13359025,16040025,19105641,22591009,26532801,30969225,35940025,41486481,47651409,54479161,62015625,70308225,79405921,89359209,100220121,112042225,124880625,138791961,153834409,170067681,187553025,206353225,226532601,248157009,271293841,296012025,322382025,350475841,380367009,412130601,445843225,481583025,519429681,559464409,601769961,646430625,693532225 mul $0,4 add $0,2 bin $0,2 pow $0,2
73
501
0.851027
18f9c83f75c48f01804e902d903a9fda02cec2bb
6,130
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_363.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_363.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_363.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 %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x128ba, %rsi lea addresses_normal_ht+0x13b3a, %rdi nop nop xor %rax, %rax mov $120, %rcx rep movsw nop nop nop and %r14, %r14 lea addresses_A_ht+0xd166, %rdi nop and $22630, %r11 mov $0x6162636465666768, %rcx movq %rcx, %xmm0 and $0xffffffffffffffc0, %rdi vmovaps %ymm0, (%rdi) nop nop nop nop nop dec %r14 lea addresses_D_ht+0xe6fa, %rsi xor $11113, %rdx mov (%rsi), %ax and $51929, %rdx lea addresses_UC_ht+0x343a, %rsi lea addresses_A_ht+0x1bf3a, %rdi clflush (%rsi) and $21915, %r13 mov $108, %rcx rep movsb nop nop nop nop sub %rax, %rax lea addresses_WC_ht+0x2dba, %r13 sub %rdx, %rdx movb (%r13), %r14b nop sub $13962, %rax lea addresses_A_ht+0xca3a, %rcx nop nop nop nop nop inc %r11 mov (%rcx), %edx nop nop nop nop xor $54043, %rdi lea addresses_WT_ht+0x1233a, %r13 nop nop nop xor $24817, %rsi mov (%r13), %di nop nop nop and $29800, %rdi lea addresses_UC_ht+0x12f3a, %rsi lea addresses_WT_ht+0x973a, %rdi inc %r11 mov $23, %rcx rep movsq nop nop nop nop nop cmp %r13, %r13 lea addresses_WC_ht+0x1ebfa, %rdx nop nop and $14429, %rdi movw $0x6162, (%rdx) add $37059, %r13 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r13 push %r15 push %r9 push %rax push %rbx // Faulty Load lea addresses_normal+0x8f3a, %r13 nop nop inc %r15 mov (%r13), %eax lea oracles, %r13 and $0xff, %rax shlq $12, %rax mov (%r13,%rax,1), %rax pop %rbx pop %rax pop %r9 pop %r15 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 7, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 1, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 4, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'} {'src': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 8, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 9, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 11, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
41.14094
2,999
0.659706
bb9be32a2c092001ecc685a21748fadf873c66fb
6,283
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1284.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1284.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1284.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 %rax push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xc162, %rsi lea addresses_WC_ht+0x16ae2, %rdi nop nop nop nop nop cmp $27423, %r10 mov $37, %rcx rep movsb nop nop add $38395, %rbp lea addresses_D_ht+0x5de2, %rdx nop nop nop nop cmp $49857, %rax mov $0x6162636465666768, %rcx movq %rcx, (%rdx) nop nop nop nop nop add %r10, %r10 lea addresses_WC_ht+0x12b06, %rsi lea addresses_WT_ht+0x7162, %rdi nop nop nop nop nop cmp %rbx, %rbx mov $96, %rcx rep movsl nop nop nop nop sub $24295, %rdx lea addresses_D_ht+0xba82, %rsi lea addresses_A_ht+0x1a08a, %rdi clflush (%rsi) nop cmp $40619, %rdx mov $87, %rcx rep movsw nop nop nop xor %rdi, %rdi lea addresses_UC_ht+0x1e362, %rdx nop nop nop nop dec %rdi movb (%rdx), %bl nop mfence lea addresses_D_ht+0x6046, %rdx nop nop nop nop sub %rdi, %rdi mov $0x6162636465666768, %rsi movq %rsi, %xmm1 vmovups %ymm1, (%rdx) nop nop cmp $62754, %r10 lea addresses_A_ht+0x99e2, %rcx clflush (%rcx) nop nop nop nop dec %rax movb (%rcx), %bl nop nop nop nop nop cmp %rsi, %rsi lea addresses_D_ht+0x14562, %r10 nop nop nop sub %rsi, %rsi movb (%r10), %cl cmp %rax, %rax pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r8 push %rax push %rbp push %rbx push %rdx // Store lea addresses_D+0x1a5e2, %r8 nop nop nop nop dec %rbp mov $0x5152535455565758, %rdx movq %rdx, %xmm0 movups %xmm0, (%r8) nop nop nop nop nop cmp %r8, %r8 // Faulty Load lea addresses_PSE+0xfd62, %r13 nop nop inc %rax mov (%r13), %rdx lea oracles, %rbp and $0xff, %rdx shlq $12, %rdx mov (%rbp,%rdx,1), %rdx pop %rdx pop %rbx pop %rbp pop %rax pop %r8 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 32, 'type': 'addresses_PSE', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_D', 'congruent': 6}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_PSE', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'congruent': 7, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 8, 'type': 'addresses_D_ht', 'congruent': 7}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_WC_ht'}} {'dst': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 9}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_D_ht', 'congruent': 2}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A_ht', 'congruent': 7}} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_D_ht', 'congruent': 11}} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
34.712707
2,999
0.659717
2427b00605ff3189834603f3a36d96b8c6aa36fb
432
asm
Assembly
oeis/037/A037147.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/037/A037147.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/037/A037147.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A037147: Denominators of Fourier coefficients of Eisenstein series of degree 2 and weight 10 when evaluated at Gram(A_2)*z. ; Submitted by Christian Krause ; 1,1,1,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867,43867 mul $0,2 min $0,5 mod $0,2 mul $0,43866 add $0,1
43.2
223
0.784722
07846c1df128cac9ec7b73cb9fccaa596f8da899
599
asm
Assembly
oeis/181/A181719.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/181/A181719.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/181/A181719.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A181719: a(n) = A133473(n+1)^2. ; 25,1225,112225,11122225,1111222225,111112222225,11111122222225,1111111222222225,111111112222222225,11111111122222222225,1111111111222222222225,111111111112222222222225,11111111111122222222222225,1111111111111222222222222225,111111111111112222222222222225,11111111111111122222222222222225,1111111111111111222222222222222225,111111111111111112222222222222222225,11111111111111111122222222222222222225,1111111111111111111222222222222222222225,111111111111111111112222222222222222222225 mov $1,10 pow $1,$0 add $1,1 bin $1,2 div $1,27 mul $1,600 add $1,25 mov $0,$1
49.916667
484
0.87813
1c66bd3e5f327e0ae0e66eef265bf7987a458d6f
47
asm
Assembly
apps/test_app/src/header.asm
iliasHDZ/os-test
20a1b5a322d8d3141a8edce0035f9f20ddabe625
[ "MIT" ]
1
2021-08-01T11:42:38.000Z
2021-08-01T11:42:38.000Z
apps/test_app/src/header.asm
iliasHDZ/os-test
20a1b5a322d8d3141a8edce0035f9f20ddabe625
[ "MIT" ]
null
null
null
apps/test_app/src/header.asm
iliasHDZ/os-test
20a1b5a322d8d3141a8edce0035f9f20ddabe625
[ "MIT" ]
null
null
null
extern start section .header call start jmp $
7.833333
15
0.765957
bfe701c1fbf89c3166b78bcf68445a8c3a3e7240
484
asm
Assembly
oeis/161/A161788.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/161/A161788.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/161/A161788.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A161788: a(n) is the largest integer of the form 2^k - 1 that divides n. ; Submitted by Jamie Morken(s1) ; 1,1,3,1,1,3,7,1,3,1,1,3,1,7,15,1,1,3,1,1,7,1,1,3,1,1,3,7,1,15,31,1,3,1,7,3,1,1,3,1,1,7,1,1,15,1,1,3,7,1,3,1,1,3,1,7,3,1,1,15,1,31,63,1,1,3,1,1,3,7,1,3,1,1,15,1,7,3,1,1,3,1,1,7,1,1,3,1,1,15,7,1,31,1,1,3,1,7,3,1 add $0,1 mov $2,$0 mov $0,516 lpb $0 mov $3,$2 dif $3,$0 cmp $3,$2 cmp $3,0 mul $3,$0 sub $0,1 add $0,$1 div $0,2 add $1,$3 lpe mul $0,2 add $0,1
23.047619
211
0.547521
39de47621658e772ceefb1f47fad3a7dc31a0c7e
1,196
asm
Assembly
programs/oeis/301/A301694.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/301/A301694.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/301/A301694.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A301694: Expansion of (1 + 5*x + 4*x^2 + 5*x^3 + x^4)/((1 - x)*(1 - x^3)). ; 1,6,10,16,22,26,32,38,42,48,54,58,64,70,74,80,86,90,96,102,106,112,118,122,128,134,138,144,150,154,160,166,170,176,182,186,192,198,202,208,214,218,224,230,234,240,246,250,256,262,266,272,278,282,288,294,298,304,310,314,320,326,330,336,342,346,352,358,362,368,374,378,384,390,394,400,406,410,416,422,426,432,438,442,448,454,458,464,470,474,480,486,490,496,502,506,512,518,522,528,534,538,544,550,554,560,566,570,576,582,586,592,598,602,608,614,618,624,630,634,640,646,650,656,662,666,672,678,682,688,694,698,704,710,714,720,726,730,736,742,746,752,758,762,768,774,778,784,790,794,800,806,810,816,822,826,832,838,842,848,854,858,864,870,874,880,886,890,896,902,906,912,918,922,928,934,938,944,950,954,960,966,970,976,982,986,992,998,1002,1008,1014,1018,1024,1030,1034,1040,1046,1050,1056,1062,1066,1072,1078,1082,1088,1094,1098,1104,1110,1114,1120,1126,1130,1136,1142,1146,1152,1158,1162,1168,1174,1178,1184,1190,1194,1200,1206,1210,1216,1222,1226,1232,1238,1242,1248,1254,1258,1264,1270,1274,1280,1286,1290,1296,1302,1306,1312,1318,1322,1328 mul $0,8 add $0,1 div $0,3 mov $1,1 sub $1,$0 trn $0,$1 mov $1,$0 add $1,1
99.666667
1,042
0.723244
ac82d9b22db8de329131740103269a67910d7c3c
31,261
asm
Assembly
src/6509/ipc_vdpio.asm
vossi1/cbm2-pc-emulator-v9958
31a1083207234c7720647083082def0ce9654b01
[ "Apache-2.0" ]
null
null
null
src/6509/ipc_vdpio.asm
vossi1/cbm2-pc-emulator-v9958
31a1083207234c7720647083082def0ce9654b01
[ "Apache-2.0" ]
null
null
null
src/6509/ipc_vdpio.asm
vossi1/cbm2-pc-emulator-v9958
31a1083207234c7720647083082def0ce9654b01
[ "Apache-2.0" ]
null
null
null
; ipc_vdpio.asm ; 6509 ipc-code 0.73 for 8088 replica card (c) 2019 Michal Pleban ; version 0.73a modified by Vossi (c) 03/2019 for the v9958-card ; adds a software cursor in bios interrrupts ; assemble with xa65: ; xa src/6509/ipc_vdpio.asm -O PETSCII -o dist/prg/6509vdpio.prg CPU_ACCESS_BANK = $1 ;-------------------------------------------------------------------- ; Zero page variables ;-------------------------------------------------------------------- tmp_val = $2 buffer_size = $3 old_y = $4 old_x = $5 old_irq = $6 shift_buffer = $10 key_buffer = $20 file_name = $40 load_addr = $43 load_bank = $45 ; VDP variables in zero page free space vdp_color = $f4 ; color register 7 mirror vdp_cursor_char = $f6 ; character under cursor vdp_reverse = $f7 ; reverse flag for VdpFont vdp_copy_pointer = $f8;+$f9 ; pointer for VdpFont ;-------------------------------------------------------------------- ; KERNAL variables ;-------------------------------------------------------------------- Status = $9c CursorLine = $ca CursorColumn = $cb LastIndex = $cd KeybufIndex = $d1 QuoteSwitch = $d2 InsertFlag = $d3 CursorType = $d4 EditorShift = $e0 EditorKey = $e1 IRQVec = $300 GETINVec = $316 SysMemTop = $355 RS232Status = $37a RvsFlag = $0397 ScrollFlag = $39b WstFlag = $3fa ;-------------------------------------------------------------------- ; I/O chip ports ;-------------------------------------------------------------------- CRTC_RegNo = $d800 CRTC_RegVal = $d801 TPI1_ActIntReg = $de07 ; VDP addresses: VDPAddress = $d900 PatternTable = $10 ; highbyte pattern-table address FontData = $a0 ; highbyte font data load address in bank 1 FontSize = $04 ; higbyte font size VDPRamWrite = VDPAddress ; VDP ports VDPControl = VDPAddress+1 VDPPalette = VDPAddress+2 ;-------------------------------------------------------------------- ; KERNAL routines ;-------------------------------------------------------------------- SCROUT = $e00d DO_GETIN = $f43d RUNCOPRO = $ff72 SETST = $ff90 SETLFS = $ffba SETNAM = $ffbd OPEN = $ffc0 CLOSE = $ffc3 CHKIN = $ffc6 CHKOUT = $ffc9 CLRCH = $ffcc BASIN = $ffcf BSOUT = $ffd2 SETTIM = $ffdb RDTIM = $ffde GETIN = $ffe4 PLOT = $fff0 ;-------------------------------------------------------------------- ; Load address for the PRG file ;-------------------------------------------------------------------- .word $0800 * = $0800 ;-------------------------------------------------------------------- ; Startup routine - sets interrupt vectors and starts 8088 processor. ;-------------------------------------------------------------------- ipc_buffer = *+5 ldy #$01 sty CPU_ACCESS_BANK dey sty load_addr+1 sty WstFlag sty WstFlag+1 lda #$1C sta load_addr vector_loop: lda vectors, y sta (load_addr), y iny cpy #8 bne vector_loop jsr VdpInit ; initialiaize V9958-card lda #$0F sta CPU_ACCESS_BANK jmp RUNCOPRO ;-------------------------------------------------------------------- ; Some variables moved here to save space. ;-------------------------------------------------------------------- ; Filename to open RS-232 channel. rs232_param: .byt $1e,$00 ; Secondary address to open RS-232 channel. rs232_secaddr: .byt $03 ; Filename used to open the data channel. filename_08: .byt "#" ; Filename used to open the command channel. filename_15: .byt "i" ; Temporary variable used in address calculation. calc_tmp: .byt $00 ; Last key pressed. last_key: .byt $ff ; Delay before repeating the pressed key. key_delay: .byt $00 ; Status of the disk operation. disk_status: .byt $a2,$00 ; Flag indicating whether "lowercase" character was sent to the printer. printer_flag: .byt 0 .dsb ($0830-*), $AA ;-------------------------------------------------------------------- ; Jump table to IPC functions (only for function called from 8088). ; The location of this table is hardcoded to $0830 in the KERNAL. ;-------------------------------------------------------------------- .word ipc_10_kbd_peek .word ipc_11_kbd_in .word ipc_12_screen_out .word ipc_13_printer_out .word 0 .word 0 .word ipc_96_disk_read .word ipc_97_disk_write .word ipc_18_init .word ipc_19_serial_in .word ipc_1a_serial_out .word ipc_1b_serial_config .word 0 .word ipc_1d_console .word ipc_1e_time_set .word ipc_1f_time_get .word ipc_20_kbd_clear .word ipc_21_format ;-------------------------------------------------------------------- ; Variables used by the code. ;-------------------------------------------------------------------- ; Command to read or write disk sector. cmd_u1: .byt "u1:8 0 ttt sss",$0d ; Command to read or write disk buffer. cmd_br: .byt "b-p 8 0",$0d ; Command to format disk. cmd_n: .byt "n0:msdos disk,88",$0d ;-------------------------------------------------------------------- ; IRQ handler function. ; Calls original handler, then launches our keyboard handler. ;-------------------------------------------------------------------- my_irq: lda #>irq_handler pha lda #<irq_handler pha php pha pha pha jmp (old_irq) ;-------------------------------------------------------------------- ; Actual interrupt handler function. ; Checks keyboard scancodes and places them in our own buffer. ;-------------------------------------------------------------------- irq_handler: sei ldx buffer_size cpx #$0e bcs irq_end ; End interrupt if buffer full lda KeybufIndex bne clear_buffer ; Read keys from the buffer lda EditorKey cmp #$ff bne has_key ; lda LastIndex cmp #$ff bne irq_end lda #$ff sta last_key jmp irq_end has_key: cmp last_key beq irq_end inc key_delay lda key_delay cmp #$05 bne irq_end clear_buffer: lda EditorShift and #$30 sta shift_buffer,x lda EditorKey sta key_buffer,x sta last_key inx stx buffer_size lda #$00 sta key_delay irq_end: lda #$00 sta KeybufIndex pla tay pla tax pla cli rti ;-------------------------------------------------------------------- ; IPC function 10 - check scancode in keyboard buffer. ;-------------------------------------------------------------------- ipc_10_kbd_peek: ldx buffer_size beq ipc_10_end lda key_buffer sta ipc_buffer+2 lda shift_buffer sta ipc_buffer+3 ipc_10_end: clc jmp ipc_end ;-------------------------------------------------------------------- ; IPC function 11 - read from keyboard. ;-------------------------------------------------------------------- ipc_11_kbd_in: ldx #$01 jsr CHKIN ipc_11_loop: jsr GETIN beq ipc_11_loop sta ipc_buffer+2 sty ipc_buffer+3 jsr CLRCH clc jmp ipc_end ;-------------------------------------------------------------------- ; IPC function 20 - clear keyboard buffer. ;-------------------------------------------------------------------- ipc_20_kbd_clear: lda #$00 sta buffer_size sta KeybufIndex rts ;-------------------------------------------------------------------- ; 8088 INT memory vectors ;-------------------------------------------------------------------- vectors: .word $0000, $0050 .word $F1E2, $F000 ;-------------------------------------------------------------------- ; Information about IPC function parameters. For every function: ; * low nibble = number of input parameters. ; * high nibble = number of output parameters. ; The location of this table is hardcoded to $0910 in the KERNAL. ;-------------------------------------------------------------------- .dsb ($0910-*), $AA .byt $00,$01,$02,$03,$04,$05,$06,$07, .byt $08,$09,$0a,$0b,$0c,$0d,$0e,$0f .byt $40,$40,$23,$23,$23,$30,$4b,$4b .byt $40,$30,$23,$25,$00,$55,$04,$40, .byt $00,$4b ;-------------------------------------------------------------------- ; IPC function 12 - write to screen. Added V9958-Card support! ;-------------------------------------------------------------------- ipc_12_screen_out: lda $cb ; load cursor column clc adc $c8 ; add lowbyte screen line pointer sta VDPControl ; write VRAM address lowbyte lda #$00 adc $c9 ; load highbyte screen line pointer + carry and #$4f ; isolate low nibble + $dx to $4x for VRAM write sta VDPControl ; write VRAM address highbyte lda vdp_cursor_char ; safe char under cursor ldx #$03 ; inserted from jsr chkout for VDP wait sta VDPRamWrite ; write char to VRAM jsr CHKOUT lda ipc_buffer+2 jsr BSOUT lda #$00 sta QuoteSwitch sta InsertFlag jsr CLRCH ldy $cb ; load cursor column tya clc adc $c8 ; add lowbyte screen line pointer sta VDPControl ; write VRAM address lowbyte lda #$00 adc $c9 ; load highbyte screen line pointer + carry and #$4f ; isolate low nibble + $dx to $4x for VRAM write sta VDPControl ; write VRAM address highbyte lda #$00 ora($c8),y ; load char under cursur from screen memory sta vdp_cursor_char ; safe char under cursor eor #$80 ; reverse char sta VDPRamWrite ; write char to VRAM clc jmp ipc_end ;-------------------------------------------------------------------- ; IPC function 19 - read from RS-232. ;-------------------------------------------------------------------- ipc_19_serial_in: ldx #$02 jsr CHKIN serial_read: jsr DO_GETIN sta ipc_buffer+2 lda RS232Status and #$10 bne serial_read serial_checkstatus: jsr CLRCH lda RS232Status clc and #$77 beq ipc_19_end sec ipc_19_end: jmp ipc_end ;-------------------------------------------------------------------- ; IPC function 1A - write to RS-232. ;-------------------------------------------------------------------- ipc_1a_serial_out: ldx #$02 jsr CHKOUT lda ipc_buffer+2 jsr BSOUT jmp serial_checkstatus ;-------------------------------------------------------------------- ; IPC function 1E - set time-of-day timer. ;-------------------------------------------------------------------- ipc_1e_time_set: ldy #$00 time_set_1: lda ipc_buffer,y ldx #$ff sec time_set_2: inx sbc #$0a bcs time_set_2 adc #$0a sta ipc_buffer,y txa asl asl asl asl ora ipc_buffer,y sta ipc_buffer,y iny cpy #$04 bne time_set_1 lda ipc_buffer cmp #$12 bcc time_set_3 sei sed sbc #$12 cld cli ora #$80 sta ipc_buffer time_set_3: lda #$00 ror ipc_buffer+3 ror ora ipc_buffer+2 pha lda #$00 ror ipc_buffer+3 ror ora ipc_buffer+1 tax lda #$00 ror ipc_buffer+3 ror ror ipc_buffer+3 ror lsr ora ipc_buffer tay pla clc jmp SETTIM ;-------------------------------------------------------------------- ; IPC function 1F - read time-of-day timer. ;-------------------------------------------------------------------- ipc_1f_time_get: jsr RDTIM pha and #$7f sta ipc_buffer+2 tya and #$9f php and #$1f cmp #$12 bne time_get_1 lda #$00 time_get_1: plp bpl time_get_2 sei sed clc adc #$12 cld cli time_get_2: sta ipc_buffer lda #$00 sta ipc_buffer+3 tya rol rol rol ipc_buffer+3 rol rol ipc_buffer+3 txa rol rol ipc_buffer+3 lsr sta ipc_buffer+1 pla rol rol ipc_buffer+3 ldy #$03 time_get_3: lda ipc_buffer,y pha and #$f0 lsr sta ipc_buffer,y lsr lsr clc adc ipc_buffer,y sta ipc_buffer,y pla and #$0f adc ipc_buffer,y sta ipc_buffer,y dey bpl time_get_3 rts ;-------------------------------------------------------------------- ; IPC function 96 - read disk sector. ;-------------------------------------------------------------------- read_init: plp lda ipc_buffer+2 and #$02 bne read_09 jsr reopen_08 jmp read_init_2 read_09: jsr reopen_09 read_init_2: bcs disk_end ipc_96_disk_read: jsr calc_addr lda #$31 jsr set_sector php lda disk_status ora disk_status+1 cmp #$37 beq read_init plp bcs disk_end jsr drive_read bcs disk_end ldx CPU_ACCESS_BANK ldy load_bank sty CPU_ACCESS_BANK ldy #$00 read_loop: jsr BASIN sta (load_addr),y iny beq read_end lda load_addr+1 cmp #$ff bne read_loop tya clc adc load_addr bne read_loop inc CPU_ACCESS_BANK jmp read_loop read_end: stx CPU_ACCESS_BANK clc disk_end: lda disk_status sta ipc_buffer+2 lda disk_status+1 sta ipc_buffer+3 jsr ipc_end jmp CLRCH ;-------------------------------------------------------------------- ; IPC function 97 - write disk sector. ;-------------------------------------------------------------------- write_init: lda ipc_buffer+2 and #$02 bne write_09 jsr reopen_08 jmp write_init_2 write_09: jsr reopen_09 write_init_2: bcs disk_end ipc_97_disk_write: jsr calc_addr jsr prepare_channel bcs disk_end ldx #$00 ldy #$08 loop_br: lda cmd_br,x jsr BSOUT inx dey bne loop_br jsr CLRCH jsr read_disk bcs disk_end cmp #$30 bne write_init jsr CLRCH jsr drive_write bcs disk_end ldx CPU_ACCESS_BANK ldy load_bank sty CPU_ACCESS_BANK ldy #$00 write_loop: lda (load_addr),y jsr BSOUT iny bne write_loop stx CPU_ACCESS_BANK jsr CLRCH lda #$32 jsr set_sector jmp disk_end ;-------------------------------------------------------------------- ; Disk support functions. ;-------------------------------------------------------------------- set_sector: sta cmd_u1+1 lda ipc_buffer+2 and #$01 clc adc #$30 sta cmd_u1+5 ldy ipc_buffer+3 lda ipc_buffer+4 jsr bin_to_dec sty cmd_u1+7 stx cmd_u1+8 sta cmd_u1+9 ldy ipc_buffer+5 lda ipc_buffer+6 jsr bin_to_dec sty cmd_u1+11 stx cmd_u1+12 sta cmd_u1+13 jsr prepare_channel bcs disk_error ldx #$00 loop_u1: lda cmd_u1,x jsr BSOUT inx cpx #$0f bne loop_u1 jsr CLRCH jsr read_disk bcs disk_error sta disk_status jsr BASIN sta disk_status+1 ora disk_status cmp #$30 bne check_status clc rts check_status: lda disk_status+1 cmp #$39 bne disk_error lda disk_status cmp #$32 bne disk_error jsr reopen_08 jmp set_sector disk_error: sec rts ; Prepare I/O channels to the disk. prepare_error: jsr reopen_08 bcs status_reset prepare_channel: jsr calc_fileno jsr CHKOUT bcs prepare_error ldx #$00 status_reset: lda #$3f sta disk_status sta disk_status+1 rts reopen_disk: jsr reopen_08 bcs status_reset read_disk: jsr calc_fileno jsr CHKIN bcs reopen_disk ; Call BASIN function. my_BASIN: jsr BASIN rts ; Set data channel (8 or 9) as input. drive_read2: jsr reopen_08 bcs status_reset drive_read: jsr calc_drive jsr CHKIN bcs drive_read2 rts ; Set data channel (8 or 9) as output. drive_write2: jsr reopen_08 bcs status_reset drive_write: jsr calc_drive jsr CHKOUT bcs drive_write2 rts ; Calculate command channel number (15 or 16). calc_fileno: lda ipc_buffer+2 and #$02 lsr clc adc #$0f tax rts ; Calculate data channel number (8 or 9). calc_drive: lda ipc_buffer+2 and #$02 lsr clc adc #$08 tax rts ; Calculate address from 8088 segment and offset. calc_addr: cli sta TPI1_ActIntReg lda ipc_buffer+10 sta load_addr lda ipc_buffer+9 sta load_addr+1 lda #$00 sta load_bank lda #$04 sta calc_tmp loop_addr_1: ldy #$00 ldx #$03 clc loop_addr_2: lda load_addr,y rol sta load_addr,y iny dex bne loop_addr_2 dec calc_tmp bne loop_addr_1 clc lda load_addr adc ipc_buffer+8 sta load_addr lda load_addr+1 adc ipc_buffer+7 sta load_addr+1 lda load_bank adc #$01 sta load_bank rts ;-------------------------------------------------------------------- ; IPC function 18 - initialize the I/O library. ;-------------------------------------------------------------------- ipc_18_init: lda #$80 jsr SETST lda #$ff sta EditorKey jsr reopen_08 lda #$00 sta ipc_buffer+2 jsr reopen_09 bcs init_diskno inc ipc_buffer+2 init_diskno: jsr serial_reopen lda #$01 ldx #$00 stx QuoteSwitch stx InsertFlag stx buffer_size stx KeybufIndex jsr SETLFS jsr OPEN lda #$03 tax jsr SETLFS jsr OPEN jsr printer_reopen lda #$60 ldx #$0a stx CRTC_RegNo sta CRTC_RegVal sta CursorType lda #$40 sta ScrollFlag sei lda IRQVec sta old_irq lda IRQVec+1 sta old_irq+1 lda #<my_irq sta IRQVec lda #>my_irq sta IRQVec+1 cli lda #<my_getin sta GETINVec lda #>my_getin sta GETINVec+1 jmp ipc_end ;-------------------------------------------------------------------- ; Further disk support functions. ;-------------------------------------------------------------------- ; Reopen data channel 8 to disk #8. reopen_08: lda #$08 jsr my_CLOSE lda #$0f jsr my_CLOSE lda #$0f ldx #$08 jsr open_15 bcc do_open_08 rts do_open_08: lda #$08 jsr open_08 rts ; Reopen data channel 9 to disk #9. reopen_09: lda #$09 jsr my_CLOSE lda #$10 jsr my_CLOSE lda #$10 ldx #$09 jsr open_15 bcc do_open_09 rts do_open_09: lda Status and #$80 beq open_09 sec rts open_09: lda #$09 jsr open_08 rts ; Open command channel to disk. open_15: ldy #$0f jsr SETLFS lda #<filename_15 ldx #>filename_15 ldy #$0f sta file_name stx file_name+1 sty file_name+2 lda #$01 ldx #$40 jsr SETNAM jsr my_OPEN rts ; Reopen data channel to disk. open_08: tax ldy #$08 jsr SETLFS lda #<filename_08 ldx #>filename_08 ldy #$0f sta file_name stx file_name+1 sty file_name+2 lda #$01 ldx #$40 jsr SETNAM jsr my_OPEN rts ; Reopen channel #3 to RS-232 with new parameters. serial_reopen: lda #$02 jsr my_CLOSE lda #$ff sta SysMemTop lda #$0f sta SysMemTop+1 sta SysMemTop+2 lda #$02 tax ldy rs232_secaddr jsr SETLFS lda #<rs232_param ldx #>rs232_param ldy #$0f sta file_name stx file_name+1 sty file_name+2 lda #$02 ldx #$40 jsr SETNAM jmp my_OPEN ;-------------------------------------------------------------------- ; IPC function 13 - write to printer. ;-------------------------------------------------------------------- ipc_13_printer_out: lda ipc_buffer+2 clc bmi printer_end cmp #$0d beq printer_cr cmp #$20 bcc printer_end jsr uppercase_convert printer_print: jsr printer_out printer_end: jmp ipc_end printer_cr: jsr printer_out ldx #0 stx printer_flag clc bcc printer_end printer_out: pha ldx #$04 jsr CHKOUT bcc printer_ok jsr printer_reopen bcs printer_finish ldx #$04 jsr CHKOUT bcs printer_finish printer_ok: bit printer_flag bmi printer_do lda #$11 jsr BSOUT lda #$80 sta printer_flag printer_do: pla jsr BSOUT jsr CLRCH clc rts printer_finish: pla rts ; Reopen channel #4 to printer in case of error. printer_reopen: lda #$04 jsr my_CLOSE lda #$04 ldx #$04 ldy #$67 jsr SETLFS lda #$00 jsr SETNAM jsr my_OPEN ldx #$04 jsr CHKOUT lda #$0d jsr BSOUT jsr CLRCH lda #$04 jsr my_CLOSE lda #$04 ldx #$04 ldy #$60 jsr SETLFS my_OPEN: clc jmp OPEN my_CLOSE: sec jmp CLOSE ;-------------------------------------------------------------------- ; IPC function 21 - format disk. ;-------------------------------------------------------------------- ipc_21_format: lda ipc_buffer+2 and #$01 clc adc #$30 sta cmd_n+1 jsr prepare_channel bcs format_end ldx #$00 ldy #$11 format_loop: lda cmd_n,x jsr BSOUT bcs format_end inx dey bne format_loop jsr CLRCH ldx #$0f jsr CHKIN bcs format_end jsr BASIN cmp #$30 bne format_end clc format_end2: jsr ipc_end jmp CLRCH format_end: sec bne format_end2 ;-------------------------------------------------------------------- ; Convert byte to ASCII decimal representation. ;-------------------------------------------------------------------- bin_to_dec: jsr convert_digit pha dex txa jsr convert_digit pha dex txa clc adc #$30 tay pla tax pla rts convert_digit: ldx #$00 sec convert_1: inx sbc #$0a bcs convert_1 adc #$3a rts ;-------------------------------------------------------------------- ; Finish IPC function. ; Set status byte and keyboard buffer byte. ;-------------------------------------------------------------------- ipc_end: lda #$00 ror sta ipc_buffer lda buffer_size beq end_nokey lda #$01 end_nokey: ora #$fe sta ipc_buffer+1 rts ;-------------------------------------------------------------------- ; IPC function 1B - configure RS-232 port. ;-------------------------------------------------------------------- ipc_1b_serial_config: lda ipc_buffer+2 sta rs232_param lda ipc_buffer+3 sta rs232_param+1 lda ipc_buffer+4 sta rs232_secaddr jsr serial_reopen jmp ipc_end ;-------------------------------------------------------------------- ; IPC function 1D - console services. Added V9958-Card support! ;-------------------------------------------------------------------- ipc_1d_console: lda ipc_buffer+2 bne console_not00 ; Console function 00 - clear screen after & below cursor jsr VdpCursorClear ; clear cursor = write old char non-reverse ldx #$03 jsr CHKOUT lda #$1b jsr BSOUT lda #"q" ; Esc+Q - erase to end of line jsr BSOUT sec jsr PLOT cpx #$18 beq erase_end sty old_y stx old_x stx tmp_val sec lda #$18 sbc tmp_val sta tmp_val erase_loop: lda #$1b jsr BSOUT lda #"i" ; Esc+I - insert empty line jsr BSOUT dec tmp_val bne erase_loop ldx old_x ldy old_y clc jsr PLOT erase_end: jsr CLRCH jmp VdpCursorSet ; set cursor to screen = reverse new position console_not00: cmp #$01 bne console_not01 ; Console function 01 - set cursor position jsr VdpCursorClear ; clear cursor = write old char non-reverse lda ipc_buffer+3 tay lda ipc_buffer+4 tax clc jsr PLOT jmp VdpCursorSet ; set cursor to screen = reverse new position console_not01: cmp #$02 bne console_not02 ; Console function 02 - read cursor position. sec jsr PLOT stx ipc_buffer+4 sty ipc_buffer+3 jmp ipc_end console_not02: cmp #$04 bne console_not04 ; Console function 04 - delete line at cursor position. jsr VdpCursorClear ; clear cursor = write old char non-reverse lda #"d" ; Esc+D - delete line bne delete_line lda #"i" delete_line: sta old_y lda CursorColumn sta tmp_val lda #$1b jsr BSOUT lda old_y jsr BSOUT ldx CursorLine ldy tmp_val clc jsr PLOT jmp VdpCursorSet ; set cursor to screen = reverse new position console_not04: jmp $0400 ;-------------------------------------------------------------------- ; Replacement function for GETIN. ; Reads scancodes from our own buffer instead of the system one. ;-------------------------------------------------------------------- my_getin: lda buffer_size beq getin_end sei ldy shift_buffer lda key_buffer pha ldx #$00 getin_loop: lda shift_buffer+1,x sta shift_buffer,x lda key_buffer+1,x sta key_buffer,x inx cpx buffer_size bne getin_loop dec buffer_size pla ldx #$03 cli getin_end: clc rts ;-------------------------------------------------------------------- ; Change character case from ASCII to PETSCII ;-------------------------------------------------------------------- uppercase_convert: cmp #$41 bcc uppercase_convert_2 cmp #$5B bcc uppercase_convert_1 cmp #$61 bcc uppercase_convert_2 cmp #$7B bcs uppercase_convert_2 uppercase_convert_1: eor #$20 uppercase_convert_2: cmp #$60 bcc uppercase_convert_3 adc #$5F uppercase_convert_3: rts ;-------------------------------------------------------------------- ; V9958-Card subroutines ;-------------------------------------------------------------------- VdpCursorSet: ; ***** print cursor and safe char under cursor ***** ldy $cb ; load cursor column tya clc adc $c8 ; add lowbyte screen line pointer sta VDPControl ; write VRAM address lowbyte lda #$00 adc $c9 ; load highbyte screen line pointer + carry and #$4f ; isolate low nibble + $dx to $4x for VRAM write sta VDPControl ; write VRAM address highbyte lda #$00 ora($c8),y ; load char under cursur from screen memory sta vdp_cursor_char ; safe char under cursor eor #$80 ; reverse char sta VDPRamWrite ; write char to VRAM rts VdpCursorClear: ; ***** restore char under cursor position lda $cb ; load cursor column clc adc $c8 ; add lowbyte screen line pointer sta VDPControl ; write VRAM address lowbyte lda #$00 adc $c9 ; load highbyte screen line pointer + carry and #$4f ; isolate low nibble + $dx to $4x for VRAM write sta VDPControl ; write VRAM address highbyte lda vdp_cursor_char ; safe char under cursor nop sta VDPRamWrite ; write char to VRAM rts VdpInit: ; * copy CGA color-palette ***** sei lda #$00 ; reset palette pointer to color 0 tax sta VDPControl lda # (16 | $80) ; sta VDPControl ; write register 16 palette pointer pha ; wait 3,5 us for VDP pla loop_palette: lda VdpPaletteData,x ; X already 0, palette pointer already 0 from init-data sta VDPPalette inx cpx # (VdpPaletteDataEnd - VdpPaletteData) bne loop_palette lda vdp_color ; load color from color mirror variable sta VDPControl ; write new color value asl ; move background-color bit# 0-3 to bit# 4-7 asl asl asl sta vdp_reverse ; safe new reverse text-color lda # (7 | $80) sta VDPControl ; write register 7 lda vdp_color ; load color from color mirror variable lsr lsr lsr lsr ora vdp_reverse ; compose reverse color combination sta VDPControl ; write reverse color value lda # (12 | $80) sta VDPControl ; write blink color register ; * copy PC-font to pattern generator table ***** lda # FontData ; load highbyte font data address sta vdp_copy_pointer+1 ; set highbyte font data ldy #$00 sty VDPControl ; write lowbyte pattern table to VDP, Y already $00 lda # (PatternTable | $40) ; highbyte pattern table or $40 to start VRAM write sta VDPControl ; write highbyte pattern table to VDP sty vdp_reverse ; resert data reverse byte sty vdp_copy_pointer ; set lowbyte font data to $00 ldx # (FontSize * 2) ; copy 2 x font (normal+reverse) loop_font: lda(vdp_copy_pointer),y ; load font data eor vdp_reverse ; reverse second half of font with eor sta VDPRamWrite ; write to VDP iny bne loop_font inc vdp_copy_pointer+1 ; increase higbyte font pointer dex beq end_font ; end of 2 x font data reached? cpx # FontSize ; first "not reverse" font finished? bne loop_font lda # FontData ; start reverse font at current font start address agin sta vdp_copy_pointer+1 ; set highbyte font data start for second "reverse font" lda #$ff sta vdp_reverse ; set reverse xor byte bne loop_font end_font: cli rts ; ***** Color Palette - 16 colors, 2 byte/color RB, 0G each 3bit -> CGA-colors ***** VdpPaletteData: .byt $00,$00,$05,$00,$00,$05,$05,$05 ; 0=black 1=blue 2=green 3=cyan .byt $50,$00,$55,$00,$50,$03,$55,$05 ; 4=red 5=magenta 6=brown 7=lightgrey .byt $33,$03,$37,$03,$33,$07,$37,$07 ; 8=grey 9=lightblue a=lightgreen b=lightcyan .byt $73,$03,$77,$03,$73,$07,$77,$07 ; c=lightred d=ltmagenta e=yellow f=white VdpPaletteDataEnd:
22.538572
100
0.496273
760a2e5eac82140092e9ca0501f1e9f2bff71c73
146
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/scalbn_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/scalbn_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/scalbn_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib SECTION code_fp_math48 PUBLIC scalbn_callee EXTERN cm48_sccz80_scalbn_callee defc scalbn_callee = cm48_sccz80_scalbn_callee
14.6
46
0.883562
bf9957ff541b2b3c8ac69049a1098e26ad0f19e7
800
asm
Assembly
assembler/forth/bus.asm
MRebhan/RetroComputers-XC8010
a55dc3975304710029bacd66fd54ea5635396af9
[ "MIT" ]
2
2016-11-16T14:03:31.000Z
2017-01-06T20:33:37.000Z
assembler/forth/bus.asm
MRebhan/RetroComputers-XC8010
a55dc3975304710029bacd66fd54ea5635396af9
[ "MIT" ]
null
null
null
assembler/forth/bus.asm
MRebhan/RetroComputers-XC8010
a55dc3975304710029bacd66fd54ea5635396af9
[ "MIT" ]
null
null
null
dcode BA!,3,,BUS_SETADDR ; ( addr -- ) pla mmu $00 nxt dcode BA@,3,,BUS_GETADDR ; ( -- addr ) mmu $80 pha nxt dcode BW!,3,,BUS_SETWIN ; ( win -- ) pla mmu $01 nxt dcode BW@,3,,BUS_GETWIN ; ( win -- ) mmu $81 pha nxt dword BUS!,4,,BUS_POKE ; ( value addr -- ) .wp BUS_GETWIN .wp ADD .wp POKE .wp EXIT dword BUS@,4,,BUS_PEEK ; ( addr -- value ) .wp BUS_GETWIN .wp ADD .wp PEEK .wp EXIT dword BUSC!,5,,BUS_POKEBYTE ; ( value addr -- ) .wp BUS_GETWIN .wp ADD .wp POKEBYTE .wp EXIT dword BUSC@,5,,BUS_PEEKBYTE ; ( addr -- value ) .wp BUS_GETWIN .wp ADD .wp PEEKBYTE .wp EXIT
18.604651
51
0.4625
f193fc20c59cd4d3f1802b88689e8917d611474c
120
asm
Assembly
audio/sfx/battle_0c.asm
etdv-thevoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
1
2022-01-09T05:28:52.000Z
2022-01-09T05:28:52.000Z
audio/sfx/battle_0c.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
audio/sfx/battle_0c.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
SFX_Battle_0C_Ch7: unknownnoise0x20 15, 143, 17 unknownnoise0x20 4, 255, 18 unknownnoise0x20 10, 241, 85 endchannel
20
29
0.791667
5a8260df0ba8833d902dea97d28673524b1dea9d
114,532
asm
Assembly
example/codechef/practice/easy/FCTRL/submit/submit.asm
nikAizuddin/lib80386
198a5a3490c5ad968dcf13630cafe4d2f22ab2b0
[ "MIT" ]
4
2015-01-25T13:47:33.000Z
2021-11-25T12:45:02.000Z
example/codechef/practice/easy/FCTRL/submit/submit.asm
nikAizuddin/lib80386
198a5a3490c5ad968dcf13630cafe4d2f22ab2b0
[ "MIT" ]
null
null
null
example/codechef/practice/easy/FCTRL/submit/submit.asm
nikAizuddin/lib80386
198a5a3490c5ad968dcf13630cafe4d2f22ab2b0
[ "MIT" ]
1
2021-11-25T12:45:14.000Z
2021-11-25T12:45:14.000Z
; 1 2 3 4 5 6 7 ;234567890123456789012345678901234567890123456789012345678901234567890 ;===================================================================== ; ; Enormous Input Test ; INTEST ; ;--------------------------------------------------------------------- ; ; AUTHOR: Nik Mohamad Aizuddin bin Nik Azmi ; DATE CREATED: 25-JAN-2015 ; ; LANGUAGE: x86 Assembly Language ; SYNTAX: Intel ; ASSEMBLER: NASM ; ARCHITECTURE: i386 ; KERNEL: Linux 32-bit ; FORMAT: elf32 ; ; EXTERNAL FILES: read4096b_stdin.asm, ; string_append.asm, ; cvt_string2int.asm, ; cvt_string2dec.asm, ; cvt_dec2hex.asm, ; cvt_hex2dec.asm, ; cvt_dec2string.asm, ; cvt_int2string.asm, ; find_int_digits.asm, ; pow_int.asm ; ; HOW TO RUN: $ nasm submit.asm -o submit.o -felf32 ; $ ld submit.o -o exe -melf_i386 ; $ ./exe ; ;===================================================================== global _start section .bss rb: resd 1025 rb_ptr: resd 1 rb_byte_pos: resd 1 n_str: resd 3 n_strlen: resd 1 n: resd 1 k_str: resd 3 k_strlen: resd 1 k: resd 1 t_str: resd 3 t_strlen: resd 1 t: resd 1 i: resd 1 result_str: resd 3 result_strlen: resd 1 result: resd 1 section .data newline: dd 0x0000000a section .text _start: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Get n ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 001: n_str = 0; ; 002: read4096b_stdin( @rb, ; @rb_ptr, ; @rb_byte_pos, ; @n_str, ; @n_strlen, ; 0 ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xor eax, eax mov [n_str ], eax mov [n_str+4], eax mov [n_str+8], eax sub esp, 24 lea eax, [rb] lea ebx, [rb_ptr] lea ecx, [rb_byte_pos] lea edx, [n_str] lea esi, [n_strlen] xor edi, edi mov [esp ], eax mov [esp + 4], ebx mov [esp + 8], ecx mov [esp + 12], edx mov [esp + 16], esi mov [esp + 20], edi call read4096b_stdin add esp, 24 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 003: n = cvt_string2int( @n_str, n_strlen ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sub esp, 8 lea eax, [n_str] mov ebx, [n_strlen] mov [esp ], eax mov [esp + 4], ebx call cvt_string2int add esp, 8 mov [n], eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Get k ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 004: k_str = 0; ; 005: read4096b_stdin( @rb, ; @rb_ptr, ; @rb_byte_pos, ; @k_str, ; @k_strlen, ; 0 ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xor eax, eax mov [k_str ], eax mov [k_str+4], eax mov [k_str+8], eax sub esp, 24 lea eax, [rb] lea ebx, [rb_ptr] lea ecx, [rb_byte_pos] lea edx, [k_str] lea esi, [k_strlen] xor edi, edi mov [esp ], eax mov [esp + 4], ebx mov [esp + 8], ecx mov [esp + 12], edx mov [esp + 16], esi mov [esp + 20], edi call read4096b_stdin add esp, 24 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 006: k = cvt_string2int( @k_str, k_strlen ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sub esp, 8 lea eax, [k_str] mov ebx, [k_strlen] mov [esp ], eax mov [esp + 4], ebx call cvt_string2int add esp, 8 mov [k], eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Mainloop begin ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 007: if n != 0, goto .dont_exit_program; ; .exit_program: ; 008: goto .exit; ; .dont_exit_program: ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [n] cmp eax, 0 jne .dont_exit_program .exit_program: jmp .exit .dont_exit_program: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 009: i = n; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [n] mov [i], eax .loop: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 010: t_str = 0; ; 011: read4096b_stdin( @rb, ; @rb_ptr, ; @rb_byte_pos, ; @t_str, ; @t_strlen, ; 0 ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xor eax, eax mov [t_str ], eax mov [t_str+4], eax mov [t_str+8], eax sub esp, 24 lea eax, [rb] lea ebx, [rb_ptr] lea ecx, [rb_byte_pos] lea edx, [t_str] lea esi, [t_strlen] xor edi, edi mov [esp ], eax mov [esp + 4], ebx mov [esp + 8], ecx mov [esp + 12], edx mov [esp + 16], esi mov [esp + 20], edi call read4096b_stdin add esp, 24 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 012: t = cvt_string2int( @t_str, t_strlen ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sub esp, 8 lea eax, [t_str] mov ebx, [t_strlen] mov [esp ], eax mov [esp + 4], ebx call cvt_string2int add esp, 8 mov [t], eax .break: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; ???: if k == 0, goto .not_divisible; ; 013: t / k; ; 014: if EDX != 0, goto .not_divisible; ; .divisible: ; 015: ++ result; ; .not_divisible: ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov ecx, [k] cmp ecx, 0 je .not_divisible mov eax, [t] mov ebx, [k] xor edx, edx div ebx cmp edx, 0 jne .not_divisible .divisible: mov eax, [result] add eax, 1 mov [result], eax .not_divisible: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 016: -- i; ; 017: if i != 0, goto .loop; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [i] sub eax, 1 mov [i], eax cmp eax, 0 jne .loop .endloop: .exit: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 018: cvt_int2string( result, ; @result_str, ; @result_strlen, ; 0 ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sub esp, 16 mov eax, [result] lea ebx, [result_str] lea ecx, [result_strlen] xor edx, edx mov [esp ], eax mov [esp + 4], ebx mov [esp + 8], ecx mov [esp + 12], edx call cvt_int2string add esp, 16 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 019: string_append( @result_str, ; @result_strlen, ; @newline, ; 1 ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sub esp, 16 lea eax, [result_str] lea ebx, [result_strlen] lea ecx, [newline] mov edx, 1 mov [esp ], eax mov [esp + 4], ebx mov [esp + 8], ecx mov [esp + 12], edx call string_append add esp, 16 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 020: write( stdout, @result_str, result_strlen ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, 0x04 mov ebx, 0x01 lea ecx, [result_str] mov edx, [result_strlen] int 0x80 mov eax, 0x01 ;systemcall exit xor ebx, ebx ;return 0 int 0x80 ;##################################################################### cvt_dec2hex: ;parameter 1 = decimal_number:32bit ;returns = the hexadecimal number (EAX) .setup_stackframe: sub esp, 4 ;reserve 4 bytes to store ebp mov [esp], ebp ;store ebp to stack mov ebp, esp ;store current stack ptr to ebp .get_arguments: add ebp, 8 ;+8 offset to ebp, to get arguments mov eax, [ebp ] ;get decimal_number .setup_localvariables: sub esp, 36 ;reserve 36 bytes mov [esp ], eax ;decimal_number mov dword [esp + 4], 0 ;A mov dword [esp + 8], 0 ;B mov dword [esp + 12], 0 ;C mov dword [esp + 16], 0 ;D mov dword [esp + 20], 0 ;E mov dword [esp + 24], 0 ;F mov dword [esp + 28], 0 ;G mov dword [esp + 32], 0 ;H ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 001: A = decimal_number >> 4; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = decimal_number shr eax, 4 mov [esp + 4], eax ;A = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 002: B = (decimal_number >> 8) * 0xa; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = decimal_number shr eax, 8 mov ebx, 0xa xor edx, edx mul ebx mov [esp + 8], eax ;B = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 003: C = (decimal_number >> 12) * 0x64; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = decimal_number shr eax, 12 mov ebx, 0x64 xor edx, edx mul ebx mov [esp + 12], eax ;C = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 004: D = (decimal_number >> 16) * 0x3e8; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = decimal_number shr eax, 16 mov ebx, 0x3e8 xor edx, edx mul ebx mov [esp + 16], eax ;D = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 005: E = (decimal_number >> 20) * 0x2710; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = decimal_number shr eax, 20 mov ebx, 0x2710 xor edx, edx mul ebx mov [esp + 20], eax ;E = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 006: F = (decimal_number >> 24) * 0x186a0; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = decimal_number shr eax, 24 mov ebx, 0x186a0 xor edx, edx mul ebx mov [esp + 24], eax ;F = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 007: G = (decimal_number >> 28) * 0xf4240; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = decimal_number shr eax, 28 mov ebx, 0xf4240 xor edx, edx mul ebx mov [esp + 28], eax ;G = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 008: H = 0x6 * (A + B + C + D + E + F + G); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 4] ;eax = A mov ebx, [esp + 8] ;ebx = B mov ecx, [esp + 12] ;ecx = C mov edx, [esp + 16] ;edx = D mov esi, [esp + 20] ;esi = E mov edi, [esp + 24] ;edi = F add eax, ebx add eax, ecx add eax, edx add eax, esi add eax, edi mov ebx, 0x6 mov ecx, [esp + 28] ;ecx = G xor edx, edx add eax, ecx mul ebx mov [esp + 32], eax ;H = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 009: EAX = decimal_number - H; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = decimal_number mov ebx, [esp + 32] ;ebx = H sub eax, ebx .return: .clean_stackframe: sub ebp, 8 ;-8 offset to ebp mov esp, ebp ;restore stack ptr to initial value mov ebp, [esp] ;restore ebp to its initial value add esp, 4 ;restore 4 bytes ret ;##################################################################### cvt_dec2string: ;parameter 1 = addr_decimal_x:32bit ;parameter 2 = num_of_blocks:32bit ;parameter 3 = addr_out_string:32bit ;parameter 4 = addr_out_strlen:32bit ;returns = --- .setup_stackframe: sub esp, 4 ;reserve 4 bytes to store ebp mov [esp], ebp ;store ebp to stack mov ebp, esp ;store current stack ptr to ebp .get_arguments: add ebp, 8 ;+8 offset to ebp, to get arguments mov eax, [ebp ] ;get addr_decimal_x mov ebx, [ebp + 4] ;get num_of_blocks mov ecx, [ebp + 8] ;get addr_out_string mov edx, [ebp + 12] ;get addr_out_strlen .setup_localvariables: sub esp, 52 ;reserve 52 bytes mov [esp ], eax ;decimal_x_ptr mov [esp + 4], ebx ;num_of_blocks mov [esp + 8], ecx ;addr_out_string mov [esp + 12], edx ;addr_out_strlen mov dword [esp + 16], 0 ;out_strlen mov dword [esp + 20], 0 ;decimal_y[0] mov dword [esp + 24], 0 ;decimal_y[1] mov dword [esp + 28], 0 ;decimal_y[0]_len mov dword [esp + 32], 0 ;decimal_y[1]_len mov dword [esp + 36], 0 ;temp mov dword [esp + 40], 0 ;i mov dword [esp + 44], 0 ;ascii_char mov dword [esp + 48], 0 ;byte_pos ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Check the number of decimal_x memory blocks. ; ; If there are 2 memory blocks, that means decimal_x has ; an integer value that more than 8 digits, such as 9 or 10 ; digits. ; ; 001: if num_of_blocks == 2, goto .skip_decimal_x_1_block; ; .goto_decimal_x_1_block: ; 002: goto .decimal_x_1_block; ; .skip_decimal_x_1_block: ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 4] ;eax = num_of_blocks cmp eax, 2 je .skip_decimal_x_1_block .goto_decimal_x_1_block: jmp .decimal_x_1_block .skip_decimal_x_1_block: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; If the decimal_x has 2 memory blocks. ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .decimal_x_2_blocks: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 003: decimal_y[0] = addr_decimal_x^ ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp] ;eax = addr_decimal_x mov eax, [eax] ;eax = addr_decimal_x^ mov [esp + 20], eax ;decimal_y[0] = addr_decimal_x^ ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 004: decimal_y[1] = (addr_decimal_x+4)^ ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp] ;eax = addr_decimal_x add eax, 4 mov eax, [eax] ;eax = (addr_decimal_x+4)^ mov [esp + 24], eax ;decimal_y[1] = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 005: decimal_y[0]_len = 8 ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, 8 mov [esp + 28], eax ;decimal_y[0]_len = 8 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; .LOOP_1: Find the number of nibbles in decimal_y[1]. ; The decimal_y[1]_len itself stores the number of ; nibbles from decimal_y[1]. ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Initialize counter for .loop_1 ; ; 006: temp = decimal_y[1] ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 24] ;eax = decimal_y[1] mov [esp + 36], eax ;temp = eax .loop_1: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 007: temp >>= 4 ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 36] ;eax = temp shr eax, 4 mov [esp + 36], eax ;temp = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 008: ++ decimal_y[1]_len ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 32] ;eax = decimal_y[1]_len add eax, 1 mov [esp + 32], eax ;decimal_y[1]_len = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 009: if temp != 0, then ; goto .loop_1 ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 36] ;eax = temp cmp eax, 0 jne .loop_1 .endloop_1: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; .LOOP_2: Convert decimal_y[1] to ASCII string, ; and stores to output string. ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Initialize counter for .loop_2 ; ; 010: i = decimal_y[1]_len ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 32] ;eax = decimal_y[1]_len mov [esp + 40], eax ;i = decimal_y[1]_len .loop_2: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 011: ascii_char = ((decimal_y[1] >> ( (i-1)*4 )) & 0x0f) | 0x30; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 40] ;eax = i sub eax, 1 mov ebx, 4 xor edx, edx mul ebx ;eax *= ebx mov ecx, eax mov eax, [esp + 24] ;eax = decimal_y[1] shr eax, cl ;decimal_y[1] >>= ((i-1)*4) and eax, 0x0f or eax, 0x30 mov [esp + 44], eax ;ascii_char = result ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 012: addr_out_string^ |= ( ascii_char << (byte_pos*8) ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 48] ;eax = byte_pos mov ebx, 8 xor edx, edx mul ebx ;eax *= ebx mov ecx, eax mov eax, [esp + 44] ;eax = ascii_char shl eax, cl ;eax <<= (byte_pos*8) mov ecx, [esp + 8] ;ecx = addr_out_string mov ebx, [ecx] ;ebx = addr_out_string^ or eax, ebx ;addr_out_string^ |= result mov [ecx], eax ;save result to addr_out_string^ ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 013: ++ out_strlen ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 16] ;eax = out_strlen add eax, 1 mov [esp + 16], eax ;out_strlen = out_strlen + 1 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 014: ++ byte_pos ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 48] ;eax = byte_pos add eax, 1 mov [esp + 48], eax ;byte_pos = byte_pox + 1 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 015: -- i ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 40] ;eax = i sub eax, 1 mov [esp + 40], eax ;i = i - 1 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 016: if i != 0, then ; goto .loop_2; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 40] ;eax = i cmp eax, 0 jne .loop_2 .endloop_2: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; .LOOP_3: Convert decimal_y[0] to ASCII string, ; and append to output string. ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Initialize counter for .loop_3 ; ; 017: i = decimal_y[0]_len ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 28] ;eax = decimal_y[0]_len mov [esp + 40], eax ;i = decimal_y[0]_len .loop_3: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 018: ascii_char = ((decimal_y[0] >> ( (i-1)*4) ) & 0x0f) | 0x30; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 40] ;eax = i sub eax, 1 mov ebx, 4 xor edx, edx mul ebx ;eax *= 4 mov ecx, eax ;ecx = ((i-1)*4) mov eax, [esp + 20] ;eax = decimal_y[0] shr eax, cl ;eax >>= ((i-1)*4) and eax, 0x0f or eax, 0x30 mov [esp + 44], eax ;ascii_char = result ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 019: addr_out_string^ |= ( ascii_char << (byte_pos*8) ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 48] ;eax = byte_pos mov ebx, 8 xor edx, edx mul ebx ;byte_pos *= 8 mov ecx, eax ;ecx = (byte_pos*8) mov eax, [esp + 44] ;eax = ascii_char shl eax, cl ;eax <<= (byte_pos*8) mov ecx, [esp + 8] ;ecx = addr_out_string mov ebx, [ecx] ;ebx = addr_out_string^ or eax, ebx ;addr_out_string^ |= result mov [ecx], eax ;save result to addr_out_string^ ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 020: ++ out_strlen; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 16] ;eax = out_strlen add eax, 1 mov [esp + 16], eax ;out_strlen = out_strlen + 1 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 021: ++ byte_pos ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 48] ;eax = byte_pos add eax, 1 mov [esp + 48], eax ;byte_pos = byte_pos + 1 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Check if output string memory block is full. ; ; TRUE = The output string memory block is not yet full. ; FALSE = The output string memory block is full. ; ; If the output string memory block is full, point the ; addr_out_string to the next memory block of output string, ; and reset the byte position to 0. ; ; 022: if byte_pos != 4, then ; goto .cond1_out_string_not_full; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 48] ;eax = byte_pos cmp eax, 4 jne .cond1_out_string_not_full .cond1_out_string_full: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 023: addr_out_string += 4; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 8] ;eax = addr_out_string add eax, 4 mov [esp + 8], eax ;addr_out_string = (eax + 4) ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 024: byte_pos = 0; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xor eax, eax mov [esp + 48], eax ;byte_pos = eax .cond1_out_string_not_full: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 025: -- i; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 40] ;eax = i sub eax, 1 mov [esp + 40], eax ;i = i + 1 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 026: if i != 0, then ; goto .loop_3; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 40] ;eax = i cmp eax, 0 jne .loop_3 .endloop_3: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Skip .decimal_x_1_block. ; ; 027: goto .save_out_strlen; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jmp .save_out_strlen ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; If the decimal_x has only 1 memory block. ; Means, the decimal_x's value is less than 8 digits. ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .decimal_x_1_block: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 028: decimal_y[0] = addr_out_string^; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = addr_out_string mov eax, [eax] ;eax = addr_out_string^ mov [esp + 20], eax ;decimal_x_b0 = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; .LOOP_4: Find the number of nibbles in decimal_y[0]. ; The decimal_y[0]_len itself stores the number ; of nibbles from decimal_y[0]. ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Initialize counter for .loop_4 ; ; 029: temp = decimal_y[0]; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 20] ;eax = decimal_y[0] mov [esp + 36], eax ;temp = eax .loop_4: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 030: temp >>= 4; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 36] ;eax = temp shr eax, 4 mov [esp + 36], eax ;temp = temp >> 4 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 031: ++ decimal_y[0]_len; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 28] ;eax = decimal_y[0]_len add eax, 1 mov [esp + 28], eax ;decimal_y[0]_len = eax + 1 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 032: if temp != 0, then ; goto .loop_4; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 36] ;eax = temp cmp eax, 0 jne .loop_4 .endloop_4: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; .LOOP_5: Convert decimal_y[0] to ASCII string, ; and stores to output string. ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Initialize counter for .loop_5 ; ; 033: i = decimal_y[0]_len; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 28] ;eax = decimal_y[0]_len mov [esp + 40], eax ;counter = eax .loop_5: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 034: ascii_char = ((decimal_y[0] >> ((i-1)*4)) & 0x0f) | 0x30; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 40] ;eax = i sub eax, 1 mov ebx, 4 xor edx, edx mul ebx ;eax = (i-1) * 4 mov ecx, eax mov eax, [esp + 20] ;eax = decimal_y[0] shr eax, cl ;eax = decimal_y[0] >> ((i-1)*4) and eax, 0x0f or eax, 0x30 mov [esp + 44], eax ;ascii_char = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 035: addr_out_string^ |= ( ascii_char << (byte_pos*8) ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 48] ;eax = byte_pos mov ebx, 8 xor edx, edx mul ebx ;eax = byte_pos * 8 mov ecx, eax mov eax, [esp + 44] ;eax = ascii_char shl eax, cl ;eax = ascii_char << (byte_pos*8) mov ecx, [esp + 8] ;ecx = addr_out_string mov ebx, [ecx] ;ebx = addr_out_string^ or eax, ebx ;eax = result | addr_out_string mov [ecx], eax ;addr_out_string^ = result ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 036: ++ out_strlen; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 16] ;eax = out_strlen add eax, 1 mov [esp + 16], eax ;out_strlen = out_strlen + 1 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 037: ++ byte_pos; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 48] ;eax = byte_pos add eax, 1 mov [esp + 48], eax ;byte_pos = byte_pos + 1 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Check if output string memory block is full. ; ; TRUE = The output string memory block is not yet full. ; FALSE = The output string memory block is full. ; ; If the output string memory block is full, point the ; addr_out_string to the next memory block of output string, ; and reset the byte position to 0. ; ; 038: if byte_pos != 4 then ; goto .cond2_out_string_not_full; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 48] ;eax = byte_pos cmp eax, 4 jne .cond2_out_string_not_full .cond2_out_string_full: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 039: addr_out_string += 4; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 8] ;eax = addr_out_string add eax, 4 mov [esp + 8], eax ;addr_out_string += 4 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 040: byte_pos = 0; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xor eax, eax mov [esp + 48], eax ;byte_pos = 0 .cond2_out_string_not_full: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 041: -- i; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 40] ;eax = i sub eax, 1 mov [esp + 40], eax ;i = i + 1 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 042: if i != 0, then ; goto .loop_5; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 40] ;eax = i cmp eax, 0 jne .loop_5 .endloop_5: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Save the length of out_string ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .save_out_strlen: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 043: addr_out_strlen^ = out_strlen; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 16] ;eax = out_strlen mov ebx, [esp + 12] ;ebx = addr_out_strlen mov [ebx], eax ;addr_out_strlen^ = out_strlen .return: .clean_stackframe: sub ebp, 8 ;-8 offset to ebp mov esp, ebp ;restore stack ptr to initial value mov ebp, [esp] ;restore ebp to its initial value add esp, 4 ;restore 4 bytes ret ;##################################################################### cvt_hex2dec: ;parameter 1 = hexadecimal_num:32bit ;returns = decimal number (EAX) .setup_stackframe: sub esp, 4 ;reserve 4 bytes to store ebp mov [esp], ebp ;store ebp to stack mov ebp, esp ;store current stack ptr to ebp .get_arguments: add ebp, 8 ;+8 offsets, to get arguments mov eax, [ebp] ;get hexadecimal_num .setup_localvariables: sub esp, 80 ;reserve 80 bytes of stack mov [esp ], eax ;hexadecimal_num mov dword [esp + 4], 0 ;decimal_num mov dword [esp + 8], 0 ;A mov dword [esp + 12], 0 ;B mov dword [esp + 16], 0 ;C mov dword [esp + 20], 0 ;D mov dword [esp + 24], 0 ;E mov dword [esp + 28], 0 ;F mov dword [esp + 32], 0 ;G mov dword [esp + 36], 0 ;H mov dword [esp + 40], 0 ;I mov dword [esp + 44], 0 ;J mov dword [esp + 48], 0 ;K mov dword [esp + 52], 0 ;L mov dword [esp + 56], 0 ;M mov dword [esp + 60], 0 ;N mov dword [esp + 64], 0 ;O mov dword [esp + 68], 0 ;P mov dword [esp + 72], 0 ;Q mov dword [esp + 76], 0 ;R ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 001: A = (hexadecimal_num / 1000000000) ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = hexadecimal_num mov ebx, 1000000000 xor edx, edx div ebx ;eax = eax / ebx mov [esp + 8], eax ;A = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 002: B = 16 * A ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 8] ;eax = A mov ebx, 16 xor edx, edx mul ebx ;eax = eax * ebx mov [esp + 12], eax ;B = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 003: C = (hexadecimal_num / 100000000) + B ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = hexadecmal_num mov ebx, 100000000 xor edx, edx div ebx ;eax = eax / ebx mov ebx, [esp + 12] ;ebx = B add eax, ebx mov [esp + 16], eax ;C = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 004: D = 16 * C ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 16] ;eax = C mov ebx, 16 xor edx, edx mul ebx ;eax = eax * ebx mov [esp + 20], eax ;D = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 005: E = (hexadecimal_num / 10000000) + D ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = hexadecimal_num mov ebx, 10000000 xor edx, edx div ebx ;eax = eax / ebx mov ebx, [esp + 20] ;ebx = D add eax, ebx mov [esp + 24], eax ;E = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 006: F = 16 * E ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 24] ;eax = E mov ebx, 16 xor edx, edx mul ebx ;eax = eax * ebx mov [esp + 28], eax ;F = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 007: G = (hexadecimal_num / 1000000) + F ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = hexadecimal_num mov ebx, 1000000 xor edx, edx div ebx ;eax = eax / ebx mov ebx, [esp + 28] ;ebx = F add eax, ebx mov [esp + 32], eax ;G = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 008: H = 16 * G ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 32] ;eax = G mov ebx, 16 xor edx, edx mul ebx ;eax = eax * ebx mov [esp + 36], eax ;H = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 009: I = (hexadecimal_num / 100000) + H ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = hexadecimal_num mov ebx, 100000 xor edx, edx div ebx ;eax = eax / ebx mov ebx, [esp + 36] ;ebx = H add eax, ebx mov [esp + 40], eax ;I = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 010: J = 16 * I ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 40] ;eax = I mov ebx, 16 xor edx, edx mul ebx ;eax = eax * ebx mov [esp + 44], eax ;J = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 011: K = (hexadecimal_num / 10000) + J ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = hexadecimal_num mov ebx, 10000 xor edx, edx div ebx ;eax = eax / ebx mov ebx, [esp + 44] ;ebx = J add eax, ebx mov [esp + 48], eax ;K = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 012: L = 16 * K ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 48] ;eax = K mov ebx, 16 xor edx, edx mul ebx ;eax = eax * ebx mov [esp + 52], eax ;L = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 013: M = (hexadecimal_num / 1000) + L ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = hexadecimal_num mov ebx, 1000 xor edx, edx div ebx ;eax = eax / ebx mov ebx, [esp + 52] ;ebx = L add eax, ebx mov [esp + 56], eax ;M = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 014: N = 16 * M ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 56] ;eax = M mov ebx, 16 xor edx, edx mul ebx ;eax = eax * ebx mov [esp + 60], eax ;N = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 015: O = (hexadecimal_num / 100) + N ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = hexadecimal_num mov ebx, 100 xor edx, edx div ebx ;eax = eax / ebx mov ebx, [esp + 60] ;ebx = N add eax, ebx mov [esp + 64], eax ;O = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 016: P = 16 * O ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 64] ;eax = O mov ebx, 16 xor edx, edx mul ebx ;eax = eax * ebx mov [esp + 68], eax ;P = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 017: Q = (hexadecimal_num / 10) + P ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = hexadecimal_num mov ebx, 10 xor edx, edx div ebx ;eax = eax / ebx mov ebx, [esp + 68] ;ebx = P add eax, ebx mov [esp + 72], eax ;Q = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 018: R = 6 * Q ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 72] ;eax = Q mov ebx, 6 xor edx, edx mul ebx ;eax = eax * ebx mov [esp + 76], eax ;R = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 019: decimal_num = hexadecimal_num + R ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = hexadecimal_num mov ebx, [esp + 76] ;ebx = R add eax, ebx mov [esp + 4], eax ;decimal_num = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 020: exit( decimal_num ) ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .return: mov eax, [esp + 4] ;eax = decimal_num .clean_stackframe: sub ebp, 8 ;-8 offsets, to get initial esp mov esp, ebp ;restore esp to initial value mov ebp, [esp] ;restore ebp to initial value add esp, 4 ;restore 4 bytes ret ;##################################################################### cvt_int2string: ;parameter 1 = integer_x:32bit ;parameter 2 = addr_out_string^:32bit ;parameter 3 = addr_out_strlen^:32bit ;parameter 4 = flag:32bit ;returns = --- .setup_stackframe: sub esp, 4 ;reserve 4 bytes to store ebp mov [esp], ebp ;store ebp mov ebp, esp ;store current stack ptr to ebp .get_arguments: add ebp, 8 ;+8 offset to get arguments mov eax, [ebp ] ;get integer_x mov ebx, [ebp + 4] ;get addr_out_string mov ecx, [ebp + 8] ;get addr_out_strlen mov edx, [ebp + 12] ;get flag .set_local_variables: sub esp, 56 ;reserve 56 bytes mov [esp ], eax ;integer_x mov [esp + 4], ebx ;addr_out_string mov [esp + 8], ecx ;addr_out_strlen mov [esp + 12], edx ;flag mov dword [esp + 16], 0 ;integer_x_len mov dword [esp + 20], 0 ;integer_x_quo mov dword [esp + 24], 0 ;integer_x_rem mov dword [esp + 28], 0 ;decimal_x[0] mov dword [esp + 32], 0 ;decimal_x[1] mov dword [esp + 36], 0 ;ascii_x[0] mov dword [esp + 40], 0 ;ascii_x[1] mov dword [esp + 44], 0 ;ascii_x[2] mov dword [esp + 48], 0 ;ascii_x_len mov dword [esp + 52], 0 ;is_negative ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 001: addr_out_strlen^ = 0; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov ebx, [esp + 8] ;ebx = addr_out_strlen xor eax, eax mov [ebx], eax ;addr_out_strlen = 0 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Find the number of digits in integer_x ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 002: integer_x_len = find_int_digits( integer_x, flag ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sub esp, 8 ;reserve 8 bytes mov eax, [esp + 8 ] ;get integer_x mov ebx, [esp + 8 + 12] ;get flag mov [esp ], eax ;arg1: integer_x mov [esp + 4], ebx ;arg2: flag call find_int_digits add esp, 8 ;restore 8 bytes mov [esp + 16], eax ;save return value ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Checks whether integer_x is signed or unsigned ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 003: if flag != 1, then ; goto .flag_notequal_1. ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 12] ;eax = flag cmp eax, 1 jne .flag_notequal_1 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; If integer_x is signed. ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .flag_equal_1: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 004: if (integer_x & 0x80000000) != 0x80000000, then ; goto .sign_false. ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = integer_x and eax, 0x80000000 cmp eax, 0x80000000 jne .sign_false ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; If integer_x is negative ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .sign_true: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; The integer_x is negative, and need Two's complement. ; ; 005: integer_x = (!integer_x) + 1; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp] ;eax = integer_x not eax add eax, 1 mov [esp], eax ;integer_x = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Memorize the program that the integer_x is negative. ; ; 006: is_negative = 1; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, 1 mov [esp + 52], eax ;is_negative = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; If integer_x is positive ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .sign_false: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; If integer_x is unsigned. ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .flag_notequal_1: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 007: if integer_x_len > 8, goto .skip_int_x_len_le_8; ; .goto_int_x_len_le_8: ; 008: goto .integer_x_len_lessequal_8; ; .skip_int_x_len_le_8: ; ; Means, the number of digits in integer_x_len is ; less than or equal 8. ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 16] ;eax = integer_x_len cmp eax, 8 jg .skip_int_x_len_le_8 .goto_int_x_len_le_8: jmp .integer_x_len_lessequal_8 .skip_int_x_len_le_8: .integer_x_len_morethan_8: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 009: integer_x_quo = integer_x / 100000000; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = integer_x mov ebx, 100000000 xor edx, edx div ebx ;eax /= ebx mov [esp + 20], eax ;integer_x_quo = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 010: integer_x_rem = remainder from the division; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov [esp + 24], edx ;integer_x_rem = edx ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 011: decimal_x[0] = cvt_hex2dec( integer_x_rem ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sub esp, 4 ;reserve 4 bytes mov eax, [esp + 4 + 24] ;get integer_x_rem mov [esp ], eax ;arg1: integer_x_rem call cvt_hex2dec add esp, 4 ;restore 4 bytes mov [esp + 28], eax ;save return value ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 012: decimal_x[1] = cvt_hex2dec( integer_x_quo ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sub esp, 4 ;reserve 4 bytes mov eax, [esp + 4 + 20] ;get integer_x_quo mov [esp ], eax ;arg1: integer_x_quo call cvt_hex2dec add esp, 4 ;restore 4 bytes mov [esp + 32], eax ;save return value ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 013: cvt_dec2string( @decimal_x[0], ; 2, ; @ascii_x[0], ; @ascii_x_len ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sub esp, 16 ;reserve 16 bytes mov eax, esp mov ecx, esp mov edx, esp add eax, (16+28) ;get @decimal_x[0] mov ebx, 2 ;get num_of_blocks=2 add ecx, (16+36) ;get @ascii_x[0] add edx, (16+48) ;get @ascii_x_len mov [esp ], eax ;arg1: @decimal_x[0] mov [esp + 4], ebx ;arg2: num_of_blocks=2 mov [esp + 8], ecx ;arg3: @ascii_x[0] mov [esp + 12], edx ;arg4: @ascii_x_len call cvt_dec2string add esp, 16 ;restore 16 bytes ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 014: goto .skip_integer_x_len_equalmore_8; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jmp .skip_integer_x_len_equalmore_8 .integer_x_len_lessequal_8: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 015: decimal_x[0] = cvt_hex2dec(integer_x); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sub esp, 4 ;reserve 4 bytes mov eax, [esp + 4 ] ;get integer_x mov [esp ], eax ;arg1: integer_x call cvt_hex2dec add esp, 4 ;restore 4 bytes mov [esp + 28], eax ;save return value ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 016: cvt_dec2string( @decimal_x[0], ; 1, ; @ascii_x[0], ; @ascii_x_len ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sub esp, 16 ;reserve 16 bytes mov eax, esp mov ecx, esp mov edx, esp add eax, (16+28) ;get @decimal_x[0] mov ebx, 1 ;get num_of_blocks=1 add ecx, (16+36) ;get @ascii_x[0] add edx, (16+48) ;get @ascii_x_len mov [esp ], eax ;arg1: @decimal_x[0] mov [esp + 4], ebx ;arg2: num_of_blocks=1 mov [esp + 8], ecx ;arg3: @ascii_x[0] mov [esp + 12], edx ;arg4: @ascii_x_len call cvt_dec2string add esp, 16 ;restore 16 bytes .skip_integer_x_len_equalmore_8: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 017: if is_negative != 1, then ; goto .is_negative_false ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 52] ;eax = is_negative cmp eax, 1 jne .is_negative_false .is_negative_true: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 018: addr_out_string^ = 0x2d; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 4] ;eax = addr_ascii_str mov ebx, 0x2d ;ebx = 0x2d mov [eax], ebx ;eax^ = ebx ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 019: ++ addr_out_strlen^; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov ebx, [esp + 8] ;ebx = addr_out_strlen mov eax, [ebx] ;eax = ebx^ add eax, 1 ;eax += 1 mov [ebx], eax ;ebx^ = eax .is_negative_false: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 020: string_append( addr_out_string, ; addr_out_strlen, ; @ascii_x[0], ; ascii_x_len ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sub esp, 16 ;reserve 16 bytes mov eax, [esp + (16 + 4)] ;get addr_out_string mov ebx, [esp + (16 + 8)] ;get addr_out_strlen mov ecx, esp add ecx, (16 + 36) ;get @ascii_x[0] mov edx, [esp + (16 + 48)] ;get ascii_x_len mov [esp ], eax ;arg1: addr_out_string mov [esp + 4], ebx ;arg2: addr_out_strlen mov [esp + 8], ecx ;arg3: @ascii_x[0] mov [esp + 12], edx ;arg4: ascii_x_len call string_append add esp, 16 ;restore 16 bytes .return: .clean_stackframe: sub ebp, 8 ;-8 offset to remove arguments mov esp, ebp ;restore stack ptr to initial value mov ebp, [esp] ;restore ebp to initial value add esp, 4 ;restore 4 bytes ret ;##################################################################### cvt_string2dec: ;parameter 1 = addr_string:32bit ;parameter 2 = strlen:32bit ;parameter 3 = addr_decimal:32bit ;parameter 4 = addr_digits:32bit ;returns = --- .setup_stackframe: sub esp, 4 ;reserve 4 bytes to store ebp mov [esp], ebp ;store ebp mov ebp, esp ;store current stack ptr to ebp .get_parameters: add ebp, 8 ;+8 offset to get parameters mov eax, [ebp ] ;get addr_string mov ebx, [ebp + 4] ;get strlen mov ecx, [ebp + 8] ;get addr_decimal mov edx, [ebp + 12] ;get addr_digits .set_localvariables: sub esp, 48 ;reserve 48 bytes mov [esp ], eax ;addr_string mov [esp + 4], ebx ;strlen mov [esp + 8], ecx ;addr_decimal mov [esp + 12], edx ;addr_digits mov dword [esp + 16], 0 ;in_ptr mov dword [esp + 20], 0 ;in_buffer mov dword [esp + 24], 0 ;out_ptr mov dword [esp + 28], 0 ;out_buffer mov dword [esp + 32], 0 ;out_bitpos mov dword [esp + 36], 0 ;decimal_number mov dword [esp + 40], 0 ;digits mov dword [esp + 44], 0 ;i ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 001: in_ptr = addr_string; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = addr_string mov [esp + 16], eax ;in_ptr = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 002: in_buffer = in_ptr^; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 16] ;eax = in_ptr mov ebx, [eax] mov [esp + 20], ebx ;in_buffer = ebx ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 003: i = strlen; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 4] ;eax = strlen mov [esp + 44], eax ;i = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 004: if strlen != 0, goto .strlen_not_zero ; .strlen_zero: ; 005: goto .return; ; .strlen_not_zero: ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 4] ;eax = strlen cmp eax, 0 jne .strlen_not_zero .strlen_zero: jmp .return .strlen_not_zero: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 006: if strlen > 8, then ; goto .decimal_num_2_blocks; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 4] ;eax = strlen mov ebx, 8 ;ebx = 8 cmp eax, ebx jg .decimal_num_2_blocks .decimal_num_1_block: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 007: out_bitpos = (strlen - 1) * 4; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 4] ;eax = strlen sub eax, 1 mov ebx, 4 xor edx, edx mul ebx ;eax *= ebx mov [esp + 32], eax ;out_bitpos = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 008: out_ptr = addr_decimal; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 8] ;eax = addr_decimal mov [esp + 24], eax ;out_ptr = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 009: goto .loop_get_decimal; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jmp .loop_get_decimal .decimal_num_2_blocks: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 010: out_bitpos = (strlen - 9) * 4; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 4] ;eax = strlen sub eax, 9 mov ebx, 4 xor edx, edx mul ebx ;eax *= ebx mov [esp + 32], eax ;out_bitpos = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 011: out_ptr = addr_decimal + 4; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 8] ;eax = addr_decimal mov ebx, 4 add eax, ebx ;eax += ebx mov [esp + 24], eax ;out_ptr = eax .loop_get_decimal: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Check if in_buffer is empty ; ; 012: if in_buffer != 0, then ; goto .in_buffer_not_empty; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 20] ;eax = in_buffer cmp eax, 0 jne .in_buffer_not_empty .in_buffer_empty: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 013: in_ptr += 4; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 16] ;eax = in_ptr add eax, 4 mov [esp + 16], eax ;in_ptr = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 014: in_buffer = in_ptr^; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 16] ;eax = in_ptr mov ebx, [eax] mov [esp + 20], ebx ;in_buffer = ebx .in_buffer_not_empty: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Check if out_buffer is full ; ; 015: if out_bitpos == -4, then ; goto .out_buffer_not_full; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 32] ;eax = out_bitpos cmp eax, -4 jne .out_buffer_not_full .out_buffer_full: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 016: out_ptr^ = out_buffer; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 28] ;eax = out_buffer mov ebx, [esp + 24] ;ebx = out_ptr mov [ebx], eax ;ebx^ = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 017: out_ptr -= 4; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 24] ;eax = out_ptr sub eax, 4 ;eax -= 4 mov [esp + 24], eax ;out_ptr = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 018: out_buffer = 0; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xor eax, eax mov [esp + 28], eax ;out_buffer = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 019: out_bitpos = 28; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, 28 mov [esp + 32], eax ;out_bitpos = eax .out_buffer_not_full: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Get a decimal number from the in_buffer ; ; 020: decimal_number = in_buffer & 0x0000000f; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 20] ;eax = in_buffer and eax, 0x0000000f mov [esp + 36], eax ;decimal_number = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 021: in_buffer >>= 8; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 20] ;eax = in_buffer shr eax, 8 ;eax >>= 8 mov [esp + 20], eax ;in_buffer = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Fill the decimal number into out_buffer ; ; 022: out_buffer |= decimal_number << out_bitpos; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 36] ;eax = decimal_number mov ecx, [esp + 32] ;ecx = out_bitpos shl eax, cl mov ebx, [esp + 28] ;ebx = out_buffer or eax, ebx mov [esp + 28], eax ;out_buffer = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 023: out_bitpos -= 4; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 32] ;eax = out_bitpos sub eax, 4 ;eax -= 4 mov [esp + 32], eax ;out_bitpos = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 024: ++digits; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp+ 40] ;eax = digits add eax, 1 mov [esp + 40], eax ;digits = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 025: --i; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 44] ;eax = i sub eax, 1 ;eax -= 1 mov [esp + 44], eax ;i = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 026: if i != 0, then ; goto .loop_get_decimal; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 44] ;eax = i cmp eax, 0 jne .loop_get_decimal .endloop_get_decimal: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Make sure the out_buffer is saved to addr_decimal^ ; ; 027: out_ptr^ = out_buffer; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 28] ;eax = out_buffer mov ebx, [esp + 24] ;ebx = out_ptr mov [ebx], eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 028: addr_digits^ = digits; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 40] ;eax = digits mov ebx, [esp + 12] ;ebx = addr_digits mov [ebx], eax ;ebx^ = eax .return: .clean_stackframe: sub ebp, 8 ;-8 offset due to parameters mov esp, ebp ;restore esp to initial value mov ebp, [esp] ;restore ebp to initial value add esp, 4 ;restore 4 bytes ret ;##################################################################### cvt_string2int: ;parameter 1 = addr_instring:32bit ;parameter 2 = instrlen:32bit ;returns = the integer value .setup_stackframe: sub esp, 4 ;reserve 4 bytes to store ebp mov [esp], ebp ;store ebp to stack mov ebp, esp ;store current stack ptr to ebp .get_arguments: add ebp, 8 ;+8 offset to ebp, to get arguments mov eax, [ebp ] ;get addr_instring mov ebx, [ebp + 4] ;get instrlen .setup_localvariables: sub esp, 28 ;reserve 28 bytes mov [esp ], eax ;addr_instring mov [esp + 4], ebx ;instrlen mov dword [esp + 8], 0 ;decimal_num[0] mov dword [esp + 12], 0 ;decimal_num[1] mov dword [esp + 16], 0 ;decimal_digits mov dword [esp + 20], 0 ;hexadecimal_num[0] mov dword [esp + 24], 0 ;hexadecimal_num[1] ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 001: cvt_string2dec( addr_instring, ; instrlen, ; @decimal_num, ; @decimal_digits ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sub esp, 16 ;reserve 16 bytes mov eax, [esp + 16 ] ;get addr_instring mov ebx, [esp + (16 + 4)] ;get instrlen lea ecx, [esp + (16 + 8)] ;get @decimal_num lea edx, [esp + (16 + 16)] ;get @decimal_digits mov [esp ], eax ;parameter 1 mov [esp + 4], ebx ;parameter 2 mov [esp + 8], ecx ;parameter 3 mov [esp + 12], edx ;parameter 4 call cvt_string2dec add esp, 16 ;restore 16 bytes .b1: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 002: hexadecimal_num[0] = cvt_dec2hex( decimal_num[0] ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sub esp, 4 ;reserve 4 bytes mov eax, [esp + (4 + 8)] ;get decimal_num[0] mov [esp ], eax ;parameter 1 call cvt_dec2hex add esp, 4 ;restore 4 bytes mov [esp + 20], eax ;hexadecimal_num[0] = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 003: if decimal_digits <= 8, then goto .digits_le_8; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 16] ;eax = decimal_digits cmp eax, 8 jbe .digits_le_8 .digits_gt_8: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 004: hexadecimal_num[1] = cvt_dec2hex( decimal_num[1] ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sub esp, 4 ;reserve 4 bytes mov eax, [esp + (4 + 12)] ;get decimal_num[1] mov [esp ], eax ;parameter 1 call cvt_dec2hex add esp, 4 ;restore 4 bytes mov [esp + 24], eax ;hexadecimal_num[1] = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 005: hexadecimal_num[0] = (hexadecimal_num[1] * ; pow_int(10, 8) ) + ; hexadecimal_num[0]; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sub esp, 8 ;reserve 8 bytes mov eax, 10 ;parameter1 = 10 mov ebx, 8 mov [esp ], eax ;parameter 1 mov [esp + 4], ebx ;parameter 2 call pow_int add esp, 8 ;restore 8 bytes ;NOTE: eax = result pow_int() mov ebx, [esp + 24] ;ebx = hexadecimal_num[1] xor edx, edx mul ebx ;eax *= ebx mov ebx, [esp + 20] ;ebx = hexadecimal_num[0] add eax, ebx ;eax += ebx mov [esp + 20], eax ;hexadecimal_num[0] = eax .digits_le_8: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 006: EAX = hexadecimal_num[0]; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 20] ;eax = hexadecimal_num[0] .return: .clean_stackframe: sub ebp, 8 ;-8 offset to ebp mov esp, ebp ;restore stack ptr to initial value mov ebp, [esp] ;restore ebp to its initial value add esp, 4 ;restore 4 bytes ret ;##################################################################### read4096b_stdin: ;parameter 1 = addr_readbuffer:32bit ;parameter 2 = addr_cur_rb_ptr:32bit ;parameter 3 = addr_cur_byte:32bit ;parameter 4 = addr_outdata:32bit ;parameter 5 = addr_outdata_len:32bit ;parameter 6 = flag:32bit ;returns = --- .setup_stackframe: sub esp, 4 ;reserve 4 bytes to store ebp mov [esp], ebp ;store ebp to stack mov ebp, esp ;store current stack ptr to ebp .get_arguments: add ebp, 8 ;+8 offset to ebp, to get arguments mov eax, [ebp ] ;get addr_readbuffer mov ebx, [ebp + 4] ;get addr_cur_rb_ptr mov ecx, [ebp + 8] ;get addr_cur_byte mov edx, [ebp + 12] ;get addr_outdata mov esi, [ebp + 16] ;get addr_outdata_len mov edi, [ebp + 20] ;get flag .setup_localvariables: sub esp, 40 ;reserve 40 bytes mov [esp ], eax ;addr_readbuffer mov [esp + 4], ebx ;addr_cur_rb_ptr mov [esp + 8], ecx ;addr_cur_byte mov [esp + 12], edx ;addr_outdata mov [esp + 16], esi ;addr_outdata_len mov [esp + 20], edi ;flag mov dword [esp + 24], 0 ;term1 mov dword [esp + 28], 0 ;term2 mov dword [esp + 32], 0 ;byte_pos mov dword [esp + 36], 0 ;outdata_len ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 001: if flag == 1, then goto .flag_1; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 20] ;eax = flag cmp eax, 1 je .flag_1 .flag_0: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 002: term1 = 0x0a; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, 0x0a ;eax = newline character mov [esp + 24], eax ;term1 = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 003: term2 = 0x20; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, 0x20 ;eax = space character mov [esp + 28], eax ;term2 = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 004: goto .endflag_checks; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jmp .endflag_checks .flag_1: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 005: term1 = 0x0a; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, 0x0a ;eax = newline character mov [esp + 24], eax ;term1 = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 006: term2 = 0x0a; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, 0x0a ;eax = newline character mov [esp + 28], eax ;term2 = eax .endflag_checks: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 007: byte_pos = addr_cur_byte^; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov ebx, [esp + 8] ;ebx = addr_cur_byte mov eax, [ebx] mov [esp + 32], eax ;byte_pos = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 008: EDI = addr_outdata; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov edi, [esp + 12] ;edi = addr_outdata ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 009: if addr_cur_rb_ptr^ == 0, goto .dont_init_ESI ; .init_ESI: ; 010: ESI = addr_cur_rb_ptr^; ; ... ; .dont_init_ESI: ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov ebx, [esp + 4] ;ebx = addr_cur_rb_ptr mov eax, [ebx] cmp eax, 0 je .dont_init_ESI .init_ESI: mov esi, eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 011: LODSB; ; 012: -- esi; ; 013: if al == 0, then goto .rb_empty; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - lodsb sub esi, 1 cmp al, 0 je .rb_empty .dont_init_ESI: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 014: if byte_pos == 0, goto .rb_empty; ; 015: if byte_pos == 4096, goto .rb_empty; ; 016: goto .rb_not_empty; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 32] ;eax = byte_pos cmp eax, 0 je .rb_empty mov eax, [esp + 32] ;eax = byte_pos cmp eax, 4096 je .rb_empty jmp .rb_not_empty .rb_empty: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 017: systemcall read( stdin, addr_readbuffer, 4096 ); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, 0x03 ;systemcall read xor ebx, ebx ;fd = stdin mov ecx, [esp] ;dst = addr_readbuffer mov edx, 4096 ;len = 4096 int 0x80 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 018: addr_cur_byte^ = 0; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov ebx, [esp + 8] ;ebx = addr_cur_byte xor eax, eax ;eax = 0 mov [ebx], eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 019: addr_cur_rb_ptr^ = addr_readbuffer; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = addr_readbuffer mov ebx, [esp + 4] ;ebx = addr_cur_rb_ptr mov [ebx], eax ;ebx^ = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 020: byte_pos = 0; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xor eax, eax mov [esp + 32], eax ;byte_pos = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 021: ESI = addr_readbuffer; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov esi, [esp] ;esi = addr_readbuffer cld .rb_not_empty: .loop_getdata: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 022: LODSB; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - lodsb ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 023: ++ byte_pos; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov ebx, [esp + 32] ;ebx = byte_pos add ebx, 1 mov [esp + 32], ebx ;byte_pos = ebx ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 024: if AL == term1, then goto .endloop_getdata; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov ebx, [esp + 24] ;ebx = term1 cmp al, bl je .endloop_getdata ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 025: if AL == term2, then goto .endloop_getdata; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov ebx, [esp + 28] ;ebx = term2 cmp al, bl je .endloop_getdata ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 026: EDI^ = AL; ; 027: ++ EDI; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov [edi], al add edi, 1 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 028: ++ outdata_len; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 36] ;eax = outdata_len add eax, 1 mov [esp + 36], eax ;outdata_len = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 029: if byte_pos == 4096, goto .fill_rb; ; 030: goto .loop_getdata; ; .fill_rb: ; 031: goto .rb_empty; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 32] ;eax = byte_pos cmp eax, 4096 je .rb_empty jmp .loop_getdata .fill_rb: jmp .rb_empty .endloop_getdata: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 032: addr_cur_rb_ptr^ = ESI; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov ebx, [esp + 4] ;ebx = addr_cur_rb_ptr mov [ebx], esi ;ebx^ = esi ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 033: addr_cur_byte^ = byte_pos; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 32] ;eax = byte_pos mov ebx, [esp + 8] ;ebx = addr_cur_byte mov [ebx], eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 034: addr_outdata_len^ = outdata_len; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 36] ;eax = outdata_len mov ebx, [esp + 16] ;ebx = addr_outdata_len mov [ebx], eax .return: .clean_stackframe: sub ebp, 8 ;-8 offset to ebp mov esp, ebp ;restore stack ptr to initial value mov ebp, [esp] ;restore ebp to its initial value add esp, 4 ;restore 4 bytes ret ;##################################################################### find_int_digits: ;parameter 1 = integer_x:32bit ;parameter 2 = flag:32bit ;returns = the number of digits from integer_x (EAX) .setup_stackframe: sub esp, 4 ;reserve 4 bytes of stack mov [esp], ebp ;save ebp to stack memory mov ebp, esp ;save current stack ptr to ebp .get_arguments: add ebp, 8 ;+8 offsets ebp, to get arguments mov eax, [ebp ] ;get integer_x mov ebx, [ebp + 4] ;get flag .set_localvariables: sub esp, 16 ;reserve 16 bytes mov [esp ], eax ;integer_x mov [esp + 4], ebx ;flag mov dword [esp + 8], 0 ;num_of_digits ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Is integer_x positive or negative? ; ; If flag = 1, that means the integer_x is signed int. ; So, we have to check its sign value to determine whether ; it is a positive or negative number. ; ; If the integer_x is negative number, we have to find the ; value from its two's complement form. ; ; If the integer_x is positive number, no need to find the ; value from its two's complement form. ; ; Otherwise if the flag = 0, skip these instructions. ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Check whether integer_x is signed or unsigned int. ; ; 001: if flag != 1, then ; goto .integer_x_is_unsigned; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 4] ;eax = flag cmp eax, 1 jne .integer_x_is_unsigned .integer_x_is_signed: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; If integer_x is signed, check its sign value ; ; 002: if (integer_x & 0x80000000) == 0, then ; goto .integer_x_is_positive; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp] ;eax = integer_x and eax, 0x80000000 cmp eax, 0 je .integer_x_is_positive .integer_x_is_negative: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Looks like integer_x is negative, so invert all bits. ; ; 003: integer_x = !integer_x; ; 004: integer_x += 1; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp] ;eax = integer_x not eax mov [esp], eax ;integer_x = !integer_x mov eax, [esp] ;eax = integer_x add eax, 1 mov [esp], eax ;integer_x = integer_x + 1 .integer_x_is_positive: .integer_x_is_unsigned: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Find the number of digits of integer_x. ; ; Note: the conditional jump cannot jump more than 128 bytes. ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp] ;eax = integer_x ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 005: if integer_x < 10, then ; goto .jumper_10; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - cmp eax, 10 jb .jumper_10 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 006: if integer_x < 100, then ; goto .jumper_100; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - cmp eax, 100 jb .jumper_100 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 007: if integer_x < 1000, then ; goto .jumper_1000; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - cmp eax, 1000 jb .jumper_1000 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 008: if integer_x < 10000, then ; goto .jumper_10000; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - cmp eax, 10000 jb .jumper_10000 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 009: if integer_x < 100000, then ; goto .jumper_100000; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - cmp eax, 100000 jb .jumper_100000 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 010: if integer_x < 1000000, then ; goto .jumper_1000000; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - cmp eax, 1000000 jb .jumper_1000000 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 011: if integer_x < 10000000, then ; goto .jumper_10000000; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - cmp eax, 10000000 jb .jumper_10000000 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 012: if integer_x < 100000000, then ; goto .jumper_100000000; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - cmp eax, 100000000 jb .jumper_100000000 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 013: if integer_x < 1000000000, then ; goto .jumper_1000000000; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - cmp eax, 1000000000 jb .jumper_1000000000 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 014: if integer_x >= 1000000000, then ; goto .more_equal_1000000000; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jmp .more_equal_1000000000 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Jumpers, because cond. jumps can only jump up to 128 bytes. ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .jumper_10: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 015: goto .less_than_10; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jmp .less_than_10 .jumper_100: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 016: goto .less_than_100; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jmp .less_than_100 .jumper_1000: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 017: goto .less_than_1000; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jmp .less_than_1000 .jumper_10000: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 018: goto .less_than_10000; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jmp .less_than_10000 .jumper_100000: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 019: goto .less_than_100000; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jmp .less_than_100000 .jumper_1000000: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 020: goto .less_than_1000000; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jmp .less_than_1000000 .jumper_10000000: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 021: goto .less_than_10000000; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jmp .less_than_10000000 .jumper_100000000: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 022: goto .less_than_100000000; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jmp .less_than_100000000 .jumper_1000000000: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 023: goto .less_than_1000000000; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jmp .less_than_1000000000 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Assigns num_of_digits to a value based from jumpers ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .less_than_10: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 024: num_of_digits = 1; ; 025: goto .endcondition; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov dword [esp + 8], 1 ;num_of_digits = 1 jmp .endcondition .less_than_100: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 026: num_of_digits = 2; ; 027: goto .endcondition; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov dword [esp + 8], 2 ;num_of_digits = 2 jmp .endcondition .less_than_1000: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 028: num_of_digits = 3; ; 029: goto .endcondition; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov dword [esp + 8], 3 ;num_of_digits = 3 jmp .endcondition .less_than_10000: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 030: num_of_digits = 4; ; 031: goto .endcondition; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov dword [esp + 8], 4 ;num_of_digits = 4 jmp .endcondition .less_than_100000: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 032: num_of_digits = 5 ; 033: goto .endcondition; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov dword [esp + 8], 5 ;num_of_digits = 5 jmp .endcondition .less_than_1000000: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 034: num_of_digits = 6; ; 035: goto .endcondition; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov dword [esp + 8], 6 ;num_of_digits = 6 jmp .endcondition .less_than_10000000: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 036: num_of_digits = 7; ; 037: goto .endcondition; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov dword [esp + 8], 7 ;num_of_digits = 7 jmp .endcondition .less_than_100000000: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 038: num_of_digits = 8; ; 039: goto .endcondition; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov dword [esp + 8], 8 ;num_of_digits = 8 jmp .endcondition .less_than_1000000000: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 040: num_of_digits = 9; ; 041: goto .endcondition; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov dword [esp + 8], 9 ;num_of_digits = 9 jmp .endcondition .more_equal_1000000000: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 042: num_of_digits = 10; ; 043: goto .endcondition; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov dword [esp + 8], 10 ;num_of_digits = 10 .endcondition: .return: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 044: return EAX = num_of_digits; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 8] ;eax = num_of_digits .clean_stackframe: sub ebp, 8 ;-8 bytes offsets to ebp mov esp, ebp ;restore stack ptr to initial value mov ebp, [esp] ;restore ebp to its initial value add esp, 4 ;restore 4 bytes of stack ret ;##################################################################### pow_int: ;parameter 1: x:32bit ;parameter 2: y:32bit ;returns = result (EAX) .setup_stackframe: sub esp, 4 ;reserve 4 bytes mov [esp], ebp ;store ebp to stack mov ebp, esp ;store current stack ptr to ebp .get_arguments: add ebp, 8 ;+8 offset to get arguments mov eax, [ebp ] ;get x the base value mov ebx, [ebp + 4] ;get y the power value .set_local_variables: sub esp, 16 ;reserve 16 bytes mov [esp ], eax ;x mov [esp + 4], ebx ;y mov [esp + 8], ebx ;i = y mov dword [esp + 12], 1 ;result = 1 .loop_1: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 001: result = result * x; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 12] ;eax = result mov ebx, [esp ] ;ebx = x xor edx, edx mul ebx ;eax *= ebx mov [esp + 12], eax ;result = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 002: --i; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 8] ;eax = i sub eax, 1 mov [esp + 8], eax ;i = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 003: if i != 0, then ; goto .loop_1; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 8] ;eax = i cmp eax, 0 jne .loop_1 .endloop_1: .return: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 004: return result; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 12] ;eax = result .clean_stackframe: sub ebp, 8 ;-8 offset due to arguments mov esp, ebp ;restore stack ptr to initial val mov ebp, [esp] ;restore ebp to initial value add esp, 4 ;restore 4 bytes ret ;##################################################################### string_append: ;parameter 1 = addr_dst_str:32bit ;parameter 2 = addr_dst_strlen:32bit ;parameter 3 = addr_src_str:32bit ;parameter 4 = src_strlen:32bit ;returns = --- .setup_stackframe: sub esp, 4 ;reserve 4 bytes mov [esp], ebp ;store ebp to stack mov ebp, esp ;store current stack pointer to ebp .get_arguments: add ebp, 8 ;+8 offset to get arguments mov eax, [ebp ] ;get arg1: addr_dst_str mov ebx, [ebp + 4] ;get arg2: addr_dst_strlen mov ecx, [ebp + 8] ;get arg3: addr_src_str mov edx, [ebp + 12] ;get arg4: src_strlen .set_local_variables: sub esp, 56 ;reserve 56 bytes mov [esp ], eax ;addr_dst_str mov [esp + 4], ebx ;addr_dst_strlen mov [esp + 8], ecx ;addr_src_str mov [esp + 12], edx ;src_strlen mov dword [esp + 16], 0 ;dst_strlen mov dword [esp + 20], 0 ;current_dst_block mov dword [esp + 24], 0 ;block_byte_offset mov dword [esp + 28], 0 ;dst_ptr mov dword [esp + 32], 0 ;src_ptr mov dword [esp + 36], 0 ;src_buffer mov dword [esp + 40], 0 ;dst_buffer mov dword [esp + 44], 0 ;dst_buffer_bitpos mov dword [esp + 48], 0 ;i mov dword [esp + 52], 0 ;ascii_char ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Initialize source pointer and fetch data from source ; string memory block 0. ; ; We have to initialize the source pointer, so that later we ; can retrieve data in the memory block of the source string. ; Lets say the source string is "! I am good", the source ; pointer will point to the first character which is '!'. ; See the diagram below: ; ; src_ptr points here ; V ; +---+---+---+---+---+---+---+---+---+---+---+---+ ; | ! | | I | | a | m | | g | o | o | d |0x0| ; |---------------|---------------|---------------| ; | mem block 0 | mem block 1 | mem block 2 | ; |---------------|---------------|---------------| ; ; Diagram 1: Memory view of the source string ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Point src_ptr to address source string. ; ; 001: src_ptr = addr_src_str; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 8] ;eax = addr_src_str mov [esp + 32], eax ;src_ptr = addr_src_str ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Fetch 32 bits of data from source string memory block 0 ; ; 002: src_buffer = src_ptr^; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov ebx, [esp + 32] ;ebx = src_ptr mov eax, [ebx] ;eax = src_ptr^ mov [esp + 36], eax ;src_buffer = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Get the value of destination string length. ; ; We need to know the current string length of the destination ; string, because later we have to find the memory address of the ; end string of the destination string. ; ; 003: dst_strlen = addr_dst_strlen^; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov ebx, [esp + 4] ;ebx = addr_dst_strlen mov eax, [ebx] ;eax = addr_dst_strlen^ mov [esp + 16], eax ;dst_strlen = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Find current destination string block and its offset. ; ; Because we need to know at which memory block the end ; string is. For example, given dst_str is "HELLO WORLD", ; in memory it looks like this: ; ; block_byte_offset = 8 ; V ; +---+---+---+---+---+---+---+---+---+---+---+---+ ; | H | E | L | L | O | | W | O | R | L | D | | ; +---+---+---+---+---+---+---+---+---+---+---+---+ ; | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |10 |11 | ; +---+---+---+---+---+---+---+---+---+---+---+---+ ; |---------------|---------------|---------------| ; | mem block 0 | mem block 1 | mem block 2 | ; |---------------|---------------|---------------| ; ^ ; current_dst_block ; Diagram 2: destination string in memory ; ; From the diagram above, the current_dst_block will ; be 2, and the dst_ptr will point to address ; mem block 2. ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Find current destination string memory block number. ; ; 004: current_dst_block = dst_strlen / 4; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 16] ;eax = dst_strlen mov ebx, 4 ;ebx = 4, to divide the eax xor edx, edx ;prevent errors when division. div ebx ;eax = eax / ebx mov [esp + 20], eax ;current_dst_block = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Find the byte offset of the current destination string ; memory block. ; ; 005: block_byte_offset = current_dst_block * 4; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 20] ;eax = current_dst_block mov ebx, 4 xor edx, edx mul ebx ;eax *= ebx mov [esp + 24], eax ;block_byte_offset = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Find address of current destination string memory block, ; so that later we can fetch data from the destination ; string memory and store into a buffer. ; ; For example, given current_dst_block = 2, ; first we have to find the memory offset of the memory block 2, ; (however, we already calculate the offset from previous ; instructions): ; ; offset = current dst block * 4 bytes; ; ; After we have the memory offset, get the memory address ; of destination string block 0, and add with offset: ; ; address dst block 2 = address dst block 0 + offset; ; ; Then we have the address of the dst block 2. ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Find address of current destination string memory block. ; ; 006: dst_ptr = addr_dst_str + block_byte_offset; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp ] ;eax = addr_dst_str mov ebx, [esp + 24] ;ebx = block_byte_offset add eax, ebx mov [esp + 28], eax ;dst_ptr = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Fetch data from destination string and store to buffer. ; ; 007: dst_buffer = dst_ptr^; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov ebx, [esp + 28] ;ebx = dst_ptr mov eax, [ebx] ;eax = dst_ptr^ mov [esp + 40], eax ;dst_buffer = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Find bit position of last character from the destination string ; ; In order to append the string, we have to know the bit ; position of the (last character + 1) in memory block of ; destination string. Lets say the current memory block in ; the destination string is at memory block 2, ; ; dst_buffer_bitpos = 24 ; V ; +---+---+---+---+---+---+---+---+---+---+---+---+ ; | H | E | L | L | O | | W | O | R | L | D |0x0| ; +---+---+---+---+---+---+---+---+---+---+---+---+ ; | 0 | 8 |16 |24 | 0 | 8 |16 |24 | 0 | 8 |16 |24 | ; +---+---+---+---+---+---+---+---+---+---+---+---+ ; |---------------|---------------|---------------| ; | mem block 0 | mem block 1 | mem block 2 | ; |---------------|---------------|---------------| ; ^ ; current_dst_block ; Diagram 3: destination string in memory ; ; From the above diagram, the value of dst_buffer_bitpos will ; be 24. Because, the end character of the string, which is 'D', ; is located at bit 16 in memory block 2. So, the new ; string will be append at byte position 24. The calculations ; will look like this: ; ; dst_buffer_bitpos = (dst_strlen - block_byte_offset) * 8 bits ; dst_buffer_bitpos = (11 - 8) * 8 ; dst_buffer_bitpos = 3 * 8 ; dst_buffer_bitpos = 24 ; ; This bit position will be the bit position of the dst buffer. ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 008: dst_buffer_bitpos = (dst_strlen-block_byte_offset)*8; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 16] ;eax = dst_strlen mov ebx, [esp + 24] ;ebx = block_byte_offset sub eax, ebx mov ebx, 8 xor edx, edx mul ebx ;eax *= ebx mov [esp + 44], eax ;dst_buffer_bitpos = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Initializes counter for .loop_1 ; ; Set the counter initial value to the value of source ; string length. This counter will be decremented until zero. ; This counter prevents overflow and underflow when appending ; the source string to the destination string. ; ; When counter equals zero means that we have completely ; append all characters from source string. ; ; 009: i = src_strlen; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 12] ;eax = src_strlen mov [esp + 48], eax ;i = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; .LOOP 1: Append the source string to the destination string ; ; .loop_1 will loop until i = 0. Means that it will loop ; until all source string has been appended to the destination ; string. ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .loop_1: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Check if dst_buffer is full ; ; True = The destination string buffer is not yet full. ; Continue filling the buffer with the string until ; the destination string buffer is full. ; ; False = The destination string buffer is full. Save the buffer ; to the destination string, and then point the ; destination pointer to the next memory location. ; Also, reset the buffer and bit position of the ; destination buffer to zero. ; ; 010: if dst_buffer_bitpos != 32, then ; goto .endcond_1; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 44] ;eax = dst_buffer_bitpos cmp eax, 32 jne .endcond_1 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; .COND_1: If the destination string buffer is full ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .cond_1: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Save the buffer to the destination string. ; ; 011: dst_ptr^ = dst_buffer; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 40] ;eax = dst_buffer mov ebx, [esp + 28] ;ebx = dst_ptr mov [ebx], eax ;dst_ptr^ = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Point the destination pointer to the next memory location. ; ; 012: dst_ptr += 4; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 28] ;eax = dst_ptr add eax, 4 ;eax = eax + 4 mov [esp + 28], eax ;dst_ptr = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Reset the destination string buffer to zero. ; ; 013: dst_buffer = 0; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xor eax, eax ;eax = 0 mov [esp + 40], eax ;dst_buffer = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Reset the destination string buffer bit position to zero. ; ; 014: dst_buffer_bitpos = 0; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xor eax, eax ;eax = 0 mov [esp + 44], eax ;dst_buffer_bitpos = eax .endcond_1: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Check if src_buffer is empty ; ; True = The source string buffer is not empty. Continue ; appending the source string into the destination ; string until the source string buffer is dry/empty. ; ; False = The source string buffer is empty. Fetch the data ; from next memory location of the source string, and ; fill the source string buffer with the new data. ; ; 015: if src_buffer != 0, then ; goto .endcond_2; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 36] ;eax = src_buffer cmp eax, 0 jne .endcond_2 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; .COND_2: If the source string buffer is empty ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .cond_2: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Point the source pointer to the next memory location. ; ; 016: src_ptr += 4; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 32] ;eax = src_ptr add eax, 4 ;eax = eax + 4 mov [esp + 32], eax ;src_ptr = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Fetch the data from the next memory location. ; ; 017: src_buffer = src_ptr^; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov ebx, [esp + 32] ;ebx = src_ptr mov eax, [ebx] ;eax = src_ptr^ mov [esp + 36], eax ;src_buffer = eax .endcond_2: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Append a source character to destination string ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Get source string character. ; ; 018: ascii_char = (src_buffer&0xff) << dst_buffer_bitpos; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov ecx, [esp + 44] ;ecx = dst_buffer_bitpos mov eax, [esp + 36] ;eax = src_buffer and eax, 0xff shl eax, cl mov [esp + 52], eax ;ascii_char = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Append the source string character to the destination ; character. ; ; 019: dst_buffer |= ascii_char; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 40] ;eax = dst_buffer mov ebx, [esp + 52] ;ebx = ascii_char or eax, ebx mov [esp + 40], eax ;dst_buffer = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Increment bit position of the destination string. ; ; 020: dst_buffer_bitpos += 8; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 44] ;eax = dst_buffer_bitpos add eax, 8 mov [esp + 44], eax ;dst_buffer_bitpos := eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Increase the length of destination string length by 1 byte. ; ; 021: ++ dst_strlen; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 16] ;eax = dst_strlen add eax, 1 mov [esp + 16], eax ;dst_strlen = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Remove the source character that has been read. ; ; 022: src_buffer >>= 8; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 36] ;eax = src_buffer shr eax, 8 mov [esp + 36], eax ;src_buffer = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Decrement length of source string by 1 byte. ; ; 023: -- i; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 48] ;eax = i sub eax, 1 mov [esp + 48], eax ;i = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Check loop_1 condition, loop if true ; ; 024: if i != 0, then ; goto .loop_1; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 48] ;eax = i cmp eax, 0 jne .loop_1 .endloop_1: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Save destination string and strlen to the argument out. ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Save the destination string buffer to the destination ; string memory block. ; ; 025: dst_ptr^ = dst_buffer; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov ebx, [esp + 28] ;ebx = dst_ptr mov eax, [esp + 40] ;eax = dst_buffer mov [ebx], eax ;dst_ptr^ = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Save the destination string length. ; ; 026: addr_dst_strlen^ = dst_strlen; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov ebx, [esp + 4] ;ebx = addr_dst_strlen mov eax, [esp + 16] ;eax = dst_strlen mov [ebx], eax ;addr_dst_strlen^ = eax .return: .clean_stackframe: sub ebp, 8 ;-8 offset due to arguments mov esp, ebp ;restore stack ptr to initial value mov ebp, [esp] ;restore ebp to initial value add esp, 4 ;restore 4 bytes ret ;#####################################################################
29.633118
71
0.326153
a897051ff43ce69cf438478fee6f82fbe1b1ee22
4,308
asm
Assembly
apu/channel_2/channel_2_stop_restart.asm
endrift/SameSuite
89ffe653cdd888385935fe9a2f1062d2dcc18cdb
[ "MIT" ]
21
2018-09-09T01:49:32.000Z
2022-03-22T20:49:05.000Z
apu/channel_2/channel_2_stop_restart.asm
mattcurrie/SameSuite
ab8d88e5606928060fe84b07c85a4d05edce3bca
[ "MIT" ]
3
2020-10-18T16:33:08.000Z
2021-09-04T10:58:51.000Z
apu/channel_2/channel_2_stop_restart.asm
mattcurrie/SameSuite
ab8d88e5606928060fe84b07c85a4d05edce3bca
[ "MIT" ]
9
2018-09-29T19:18:03.000Z
2021-05-15T14:23:08.000Z
RESULTS_START EQU $c000 RESULTS_N_ROWS EQU 18 include "base.inc" ; This test shows that even after stopping the channel, the current ; sample index/phase remains unchanged. It is only reset by turning ; the APU off (NR52). CorrectResults: db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $80, $80, $80, $80 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $80, $80, $80, $80 db $00, $00, $00, $00, $00, $00, $00, $00 db $80, $80, $80, $80, $80, $80, $80, $80 db $00, $00, $00, $00, $00, $00, $00, $00 db $80, $80, $80, $80, $80, $80, $80, $80 db $00, $00, $00, $00, $80, $80, $80, $80 db $80, $80, $80, $80, $80, $80, $80, $80 db $00, $00, $00, $00, $80, $80, $80, $80 db $80, $80, $80, $80, $80, $80, $80, $80 db $80, $80, $80, $80, $80, $80, $80, $80 db $80, $80, $80, $80, $80, $80, $80, $80 db $80, $80, $80, $80, $80, $80, $80, $80 db $80, $80, $80, $80, $80, $80, $80, $80 db $80, $80, $80, $80, $80, $80, $80, $80 db $80, $80, $80, $80, $00, $00, $00, $00 SubTest: MACRO xor a ld c, rNR22 & $ff ldh [rNR52], a cpl ldh [rNR52], a ld hl, rPCM12 ld a, $fc ldh [rNR23], a ld a, $80 ldh [rNR21], a ldh [rNR22], a ld a, $87 ldh [rNR24], a nops \2 xor a ld [c], a ld a, $80 ld [c], a ld a, $87 ldh [rNR24], a nops \1 ld a, [hl] call StoreResult ENDM RunTest: ld de, $c000 SubTest $8, 0 SubTest $9, 0 SubTest $a, 0 SubTest $b, 0 SubTest $c, 0 SubTest $d, 0 SubTest $e, 0 SubTest $f, 0 SubTest $10, 0 SubTest $11, 0 SubTest $12, 0 SubTest $13, 0 SubTest $14, 0 SubTest $15, 0 SubTest $16, 0 SubTest $17, 0 SubTest $8, 2 SubTest $9, 2 SubTest $a, 2 SubTest $b, 2 SubTest $c, 2 SubTest $d, 2 SubTest $e, 2 SubTest $f, 2 SubTest $10, 2 SubTest $11, 2 SubTest $12, 2 SubTest $13, 2 SubTest $14, 2 SubTest $15, 2 SubTest $16, 2 SubTest $17, 2 SubTest $8, 3 SubTest $9, 3 SubTest $a, 3 SubTest $b, 3 SubTest $c, 3 SubTest $d, 3 SubTest $e, 3 SubTest $f, 3 SubTest $10, 3 SubTest $11, 3 SubTest $12, 3 SubTest $13, 3 SubTest $14, 3 SubTest $15, 3 SubTest $16, 3 SubTest $17, 3 SubTest $8, 6 SubTest $9, 6 SubTest $a, 6 SubTest $b, 6 SubTest $c, 6 SubTest $d, 6 SubTest $e, 6 SubTest $f, 6 SubTest $10, 6 SubTest $11, 6 SubTest $12, 6 SubTest $13, 6 SubTest $14, 6 SubTest $15, 6 SubTest $16, 6 SubTest $17, 6 SubTest $8, 7 SubTest $9, 7 SubTest $a, 7 SubTest $b, 7 SubTest $c, 7 SubTest $d, 7 SubTest $e, 7 SubTest $f, 7 SubTest $10, 7 SubTest $11, 7 SubTest $12, 7 SubTest $13, 7 SubTest $14, 7 SubTest $15, 7 SubTest $16, 7 SubTest $17, 7 SubTest $8, 10 SubTest $9, 10 SubTest $a, 10 SubTest $b, 10 SubTest $c, 10 SubTest $d, 10 SubTest $e, 10 SubTest $f, 10 SubTest $10, 10 SubTest $11, 10 SubTest $12, 10 SubTest $13, 10 SubTest $14, 10 SubTest $15, 10 SubTest $16, 10 SubTest $17, 10 SubTest $8, 11 SubTest $9, 11 SubTest $a, 11 SubTest $b, 11 SubTest $c, 11 SubTest $d, 11 SubTest $e, 11 SubTest $f, 11 SubTest $10, 11 SubTest $11, 11 SubTest $12, 11 SubTest $13, 11 SubTest $14, 11 SubTest $15, 11 SubTest $16, 11 SubTest $17, 11 SubTest $8, 14 SubTest $9, 14 SubTest $a, 14 SubTest $b, 14 SubTest $c, 14 SubTest $d, 14 SubTest $e, 14 SubTest $f, 14 SubTest $10, 14 SubTest $11, 14 SubTest $12, 14 SubTest $13, 14 SubTest $14, 14 SubTest $15, 14 SubTest $16, 14 SubTest $17, 14 SubTest $8, 15 SubTest $9, 15 SubTest $a, 15 SubTest $b, 15 SubTest $c, 15 SubTest $d, 15 SubTest $e, 15 SubTest $f, 15 SubTest $10, 15 SubTest $11, 15 SubTest $12, 15 SubTest $13, 15 SubTest $14, 15 SubTest $15, 15 SubTest $16, 15 SubTest $17, 15 ret StoreResult:: ld [de], a inc de ret CGB_MODE
18.177215
67
0.503018
60e102626ca88050ee9baf2a830e9885069f170c
966
asm
Assembly
breath/cpu/brt/get_cpuid_info.asm
erez-o/breath
adf197b4e959beffce11e090c5e806d2ff4df38a
[ "BSD-3-Clause" ]
null
null
null
breath/cpu/brt/get_cpuid_info.asm
erez-o/breath
adf197b4e959beffce11e090c5e806d2ff4df38a
[ "BSD-3-Clause" ]
null
null
null
breath/cpu/brt/get_cpuid_info.asm
erez-o/breath
adf197b4e959beffce11e090c5e806d2ff4df38a
[ "BSD-3-Clause" ]
null
null
null
# ============================================================================ # Copyright 2013-2019 Gennaro Prota # # Licensed under the 3-Clause BSD License. # (See accompanying file 3_CLAUSE_BSD_LICENSE.txt or # <https://opensource.org/licenses/BSD-3-Clause>.) # ____________________________________________________________________________ .intel_syntax noprefix .global get_cpuid_info .text get_cpuid_info: mov r10, r8 mov r8, rcx mov r9, rdx push rbx push rcx push rdx mov eax, r9d mov ecx, r10d cpuid mov dword ptr [ r8 ], eax mov dword ptr [ r8 + 4 ], ebx mov dword ptr [ r8 + 8 ], ecx mov dword ptr [ r8 + 12 ], edx mov rax, r8 /* the ABI requires the struct address in RAX */ pop rdx pop rcx pop rbx ret # Local Variables: # mode: asm # End: # vim: set ft=asm et sts=4 sw=4:
21
78
0.539337
7d288a453585b29b16fbd6f3f006cd2f483bea33
787
asm
Assembly
oeis/061/A061162.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/061/A061162.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/061/A061162.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A061162: a(n) = (6n)!n!/((3n)!(2n)!^2). ; Submitted by Jon Maiga ; 1,30,2310,204204,19122246,1848483780,182327718300,18236779032600,1842826521244230,187679234340049620,19232182592635611060,1980665038436368775400,204826599735691440534300,21255328931341321610645544,2212241139727064219063537016,230835920303934356099526310704,24140038681784425505811350274630,2529411325833604456475227792947060,265491830685830044902985576248281412,27909498252267726854083129524751768008,2938011412171414169216366365740214962996,309668450237579368009738963636381542267000 mov $1,1 mov $2,1 mov $3,$0 mul $3,4 lpb $3 mul $1,$0 mul $1,2 sub $3,1 mul $2,$3 add $1,$2 mov $2,$1 mov $4,$5 cmp $4,0 add $5,$4 div $1,$5 div $2,$5 add $2,$1 mul $1,2 sub $3,1 add $5,1 lpe mov $0,$2
29.148148
486
0.770013
72de107d7ba73d9f15ba9467c78e09240e20f070
31,321
asm
Assembly
src/cube_data.asm
NotImplementedLife/rubik
e0bf62e069682273f8679f9297decd66079aa9c3
[ "MIT" ]
4
2021-06-12T06:07:57.000Z
2022-01-31T04:39:08.000Z
src/cube_data.asm
NotImplementedLife/rubik
e0bf62e069682273f8679f9297decd66079aa9c3
[ "MIT" ]
null
null
null
src/cube_data.asm
NotImplementedLife/rubik
e0bf62e069682273f8679f9297decd66079aa9c3
[ "MIT" ]
null
null
null
SECTION "CUBE GFX", ROM0 ; Cube 0 ;-------------------------------------------------------------- Cube0Tiles:: ;-------------------------------------------------------------- ;Line 1 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $00, $00, $00, $00, $00, $00, $00, $00, $01, $01, $03, $03, $0F, $0F, $1C, $1C DB $07, $07, $1F, $1F, $38, $38, $F0, $F0, $E0, $E0, $80, $80, $00, $00, $00, $00 DB $80, $80, $E0, $E0, $70, $70, $3C, $3C, $1E, $1E, $07, $07, $03, $03, $00, $00 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $C0, $C0, $E0, $E0 ;Line 2 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $01, $01 DB $00, $00, $00, $00, $03, $03, $07, $07, $1F, $1F, $38, $38, $F0, $F0, $E0, $E0 DB $78, $78, $E0, $E0, $C0, $C0, $00, $00, $C0, $C0, $E0, $E0, $78, $78, $3C, $3C DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $78, $78, $1C, $1C, $0F, $0F, $03, $03, $07, $07, $1E, $1E, $38, $38, $F0, $F0 DB $00, $00, $00, $00, $00, $00, $80, $80, $E0, $E0, $70, $70, $3C, $3C, $1E, $1E ; $0B ;Line 3 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $03, $03, $07, $07, $1F, $1F DB $03, $03, $0F, $0F, $1C, $1C, $78, $78, $E0, $E0, $C0, $C0, $80, $80, $E0, $E0 DB $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $0E, $0E, $07, $07, $01, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 0F DB $00, $00, $80, $80, $C0, $C0, $F0, $F0, $38, $38, $1E, $1E, $07, $07, $07, $07 DB $01, $01, $03, $03, $0F, $0F, $1C, $1C, $78, $78, $E0, $E0, $C0, $C0, $C0, $C0 DB $E0, $E0, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $07, $07, $03, $03, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $00, $00, $C0, $C0, $E0, $E0, $78, $78, $1C, $1C, $0F, $0F, $03, $03, $07, $07 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $80, $E0, $E0 ; 15 ;Line 4 DB $00, $00, $00, $00, $01, $01, $03, $03, $0F, $0F, $1C, $1C, $78, $78, $E0, $E0 DB $38, $38, $F0, $F0, $E0, $E0, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00 DB $70, $70, $3C, $3C, $1E, $1E, $07, $07, $03, $03, $00, $00, $00, $00, $00, $00 DB $00, $00, $00, $00, $00, $00, $00, $00, $C0, $C0, $E0, $E0, $78, $78, $1C, $1C DB $00, $00, $00, $00, $00, $00, $01, $01, $03, $03, $0F, $0F, $1C, $1C, $78, $78 DB $1E, $1E, $38, $38, $F0, $F0, $E0, $E0, $80, $80, $00, $00, $00, $00, $00, $00 DB $E0, $E0, $78, $78, $3C, $3C, $0E, $0E, $07, $07, $01, $01, $00, $00, $00, $00 DB $00, $00, $00, $00, $00, $00, $00, $00, $80, $80, $C0, $C0, $F0, $F0, $38, $38 DB $00, $00, $00, $00, $00, $00, $01, $01, $03, $03, $0F, $0F, $1C, $1C, $78, $78 DB $1E, $1E, $38, $38, $F0, $F0, $E0, $E0, $80, $80, $00, $00, $00, $00, $00, $00 DB $70, $70, $3C, $3C, $1E, $1E, $07, $07, $03, $03, $00, $00, $00, $00, $00, $00 DB $00, $00, $00, $00, $00, $00, $00, $00, $C0, $C0, $E0, $E0, $78, $78, $1C, $1C ; 21 ;Line 5 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $C0, $C0, $00, $00, $C0, $C0, $E0, $E0, $78, $78, $1C, $1C, $0F, $0F, $07, $07 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $80 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $01, $01, $03, $03 DB $0F, $0F, $03, $03, $07, $07, $1E, $1E, $38, $38, $F0, $F0, $E0, $E0, $80, $80 DB $E0, $E0, $C0, $C0, $E0, $E0, $70, $70, $3C, $3C, $1E, $1E, $07, $07, $03, $03 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $C0, $C0 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $01, $01, $03, $03 DB $1E, $1E, $07, $07, $07, $07, $1E, $1E, $38, $38, $F0, $F0, $E0, $E0, $80, $80 DB $E0, $E0, $C0, $C0, $C0, $C0, $E0, $E0, $78, $78, $3C, $3C, $0E, $0E, $07, $07 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $80 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $03, $03, $07, $07 DB $0F, $0F, $03, $03, $0F, $0F, $1F, $1F, $7B, $7B, $E3, $E3, $C3, $C3, $83, $83 ;2E ;Line 6 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $01, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $C0, $C0, $F0, $F0, $38, $38, $1E, $1E, $07, $07, $03, $03, $03, $03, $03, $03 DB $0F, $0F, $1C, $1C, $78, $78, $E0, $E0, $C0, $C0, $C0, $C0, $E0, $E0, $78, $78 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $E0, $E0, $78, $78, $1C, $1C, $0F, $0F, $03, $03, $07, $07, $1E, $1E, $38, $38 DB $0F, $0F, $1C, $1C, $78, $78, $E0, $E0, $C0, $C0, $E0, $E0, $70, $70, $3C, $3C DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $01, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $C0, $C0, $F0, $F0, $38, $38, $1F, $1F, $07, $07, $0F, $0F, $1F, $1F, $7B, $7B DB $0E, $0E, $3C, $3C, $70, $70, $E0, $E0, $80, $80, $00, $00, $00, $00, $00, $00 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 ;3B ;Line 7 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $00, $00, $80, $80, $C0, $C0, $E0, $E0, $78, $78, $1C, $1C, $0F, $0F, $07, $07 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $83, $83 DB $1C, $1C, $0F, $0F, $07, $07, $01, $01, $00, $00, $00, $00, $00, $00, $00, $00 DB $00, $00, $00, $00, $80, $80, $C0, $C0, $F0, $F0, $38, $38, $1E, $1E, $07, $07 DB $00, $00, $01, $01, $03, $03, $0F, $0F, $1C, $1C, $78, $78, $E0, $E0, $C0, $C0 DB $F0, $F0, $E0, $E0, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $1E, $1E, $07, $07, $03, $03, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $00, $00, $00, $00, $C0, $C0, $E0, $E0, $78, $78, $1C, $1C, $0F, $0F, $03, $03 DB $00, $00, $03, $03, $07, $07, $0E, $0E, $3C, $3C, $70, $70, $E0, $E0, $80, $80 DB $E3, $E3, $C3, $C3, $83, $83, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $03, $03, $07, $07 DB $03, $03, $07, $07, $0F, $0F, $1F, $1F, $7B, $7B, $E3, $E3, $C3, $C3, $83, $83 ;48 ;Line 8 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $01, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $C3, $C3, $F3, $F3, $3B, $3B, $1F, $1F, $07, $07, $03, $03, $03, $03, $03, $03 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $C0, $C0, $E0, $E0, $78, $78 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $C0, $C0, $E0, $E0, $78, $78, $1C, $1C, $0F, $0F, $07, $07, $01, $01, $00, $00 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $80, $C0, $C0, $F0, $F0 DB $00, $00, $00, $00, $00, $00, $00, $00, $03, $03, $07, $07, $0E, $0E, $3C, $3C DB $0F, $0F, $1F, $1F, $7B, $7B, $E3, $E3, $C3, $C3, $83, $83, $03, $03, $03, $03 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $0F, $0F, $1F, $1F, $7B, $7B DB $0E, $0E, $3C, $3C, $70, $70, $E0, $E0, $80, $80, $00, $00, $00, $00, $00, $00 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 ; 55 ;Line 9 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $00, $00, $80, $80, $C0, $C0, $E0, $E0, $78, $78, $1C, $1C, $0F, $0F, $07, $07 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $83, $83 DB $1C, $1C, $0F, $0F, $07, $07, $01, $01, $00, $00, $00, $00, $00, $00, $00, $00 DB $03, $03, $03, $03, $83, $83, $C3, $C3, $F3, $F3, $3B, $3B, $1F, $1F, $07, $07 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $38, $38, $1F, $1F, $07, $07, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $70, $70, $E0, $E0, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $00, $00, $03, $03, $07, $07, $0E, $0E, $3C, $3C, $70, $70, $E0, $E0, $80, $80 DB $E3, $E3, $C3, $C3, $83, $83, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $03, $03, $07, $07 DB $03, $03, $07, $07, $0F, $0F, $1F, $1F, $7B, $7B, $E3, $E3, $C3, $C3, $83, $83 ; 62 ;Line 10 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $01, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $C3, $C3, $F3, $F3, $3B, $3B, $1F, $1F, $07, $07, $03, $03, $03, $03, $03, $03 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $C0, $C0, $E0, $E0, $78, $78 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $C0, $C0, $E0, $E0, $78, $78, $1C, $1C, $0F, $0F, $07, $07, $01, $01, $00, $00 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $83, $83, $C3, $C3, $F3, $F3 DB $00, $00, $00, $00, $00, $00, $00, $00, $03, $03, $07, $07, $0E, $0E, $3C, $3C DB $0F, $0F, $1F, $1F, $7B, $7B, $E3, $E3, $C3, $C3, $83, $83, $03, $03, $03, $03 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $0F, $0F, $1F, $1F, $7B, $7B DB $0E, $0E, $3C, $3C, $70, $70, $E0, $E0, $80, $80, $00, $00, $00, $00, $00, $00 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 ; 6F ; Line 11 DB $3B, $3B, $1F, $1F, $07, $07, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $70, $70, $E0, $E0, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 REPT(14) DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ENDR ; Line 11 DB $03, $03, $03, $03, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $00, $00, $C0, $C0, $E0, $E0, $78, $78, $1C, $1C, $0F, $0F, $07, $07, $01, $01 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $83, $83, $C3, $C3 DB $1C, $1C, $0F, $0F, $07, $07, $01, $01, $00, $00, $00, $00, $00, $00, $00, $00 DB $03, $03, $03, $03, $83, $83, $C3, $C3, $F3, $F3, $3B, $3B, $1F, $1F, $07, $07 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; ; DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $00, $00, $03, $03, $07, $07, $0E, $0E, $3C, $3C, $70, $70, $E0, $E0, $80, $80 DB $E3, $E3, $C3, $C3, $83, $83, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $03, $03, $07, $07, $0E, $0E DB $03, $03, $0F, $0F, $1C, $1C, $78, $78, $E0, $E0, $C0, $C0, $80, $80, $00, $00 ;8A ;8A ; Line 12 DB $F3, $F3, $3B, $3B, $1F, $1F, $07, $07, $03, $03, $00, $00, $00, $00, $00, $00 DB $00, $00, $00, $00, $00, $00, $00, $00, $C0, $C0, $E0, $E0, $78, $78, $1C, $1C DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $C0, $C0, $E0, $E0, $78, $78, $1C, $1C, $0F, $0F, $07, $07, $01, $01, $00, $00 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $83, $83, $C3, $C3, $F3, $F3 DB $00, $00, $00, $00, $00, $00, $00, $00, $03, $03, $07, $07, $0E, $0E, $3C, $3C DB $0F, $0F, $1F, $1F, $7B, $7B, $E3, $E3, $C3, $C3, $83, $83, $03, $03, $03, $03 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $03, $03, $03, $03, $03, $03, $03, $03, $0F, $0F, $1C, $1C, $78, $78, $E0, $E0 DB $3C, $3C, $70, $70, $E0, $E0, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00 ; 94 ; Line 13 DB $0F, $0F, $07, $07, $01, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $03, $03, $83, $83, $C3, $C3, $F3, $F3, $3B, $3B, $1F, $1F, $07, $07, $03, $03 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $C0, $C0 DB $3B, $3B, $1F, $1F, $07, $07, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $70, $70, $E0, $E0, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $0F, $0F DB $03, $03, $07, $07, $0E, $0E, $3C, $3C, $70, $70, $E0, $E0, $80, $80, $00, $00 ;9B DB $C0, $C0, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; Line 14 DB $E0, $E0, $78, $78, $1C, $1C, $0F, $0F, $07, $07, $01, $01, $00, $00, $00, $00 DB $03, $03, $03, $03, $03, $03, $03, $03, $83, $83, $C3, $C3, $F3, $F3, $3B, $3B DB $00, $00, $00, $00, $00, $00, $03, $03, $07, $07, $0E, $0E, $3C, $3C, $70, $70 DB $1C, $1C, $78, $78, $E0, $E0, $C0, $C0, $80, $80, $00, $00, $00, $00, $00, $00; A0 ; Line 15 DB $1F, $1F, $07, $07, $03, $03, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $E0, $E0, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 REPT(13) DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ENDR ; Arrow sprite tiles DB $00, $00, $00, $00, $04, $04, $06, $06, $1f, $1f, $3f, $3f, $76, $76, $64, $64 ; V DB $c0, $c0, $c0, $c0, $c0, $c0, $c0, $c0, $c0, $c0, $c0, $c0, $c0, $c0, $c0, $c0 DB $0c, $0c, $1e, $1e, $3f, $3f, $0c, $0c, $0e, $0e, $07, $07, $03, $03, $00, $00 ; H DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $ff, $ff, $ff, $ff ; Menu sprites DB $00, $00, $3f, $00, $7f, $1f, $7f, $20, $70, $2f, $77, $2f, $77, $2c, $77, $2c DB $00, $00, $ff, $00, $ff, $ff, $ff, $00, $00, $ff, $ff, $ff, $ff, $00, $ff, $00 DB $00, $00, $fc, $00, $fe, $f8, $f6, $0c, $16, $ec, $f6, $ec, $f6, $2c, $f6, $2c DB $ff, $00, $ff, $04, $ff, $1c, $ff, $24, $ff, $7c, $ff, $44, $ff, $44, $ff, $00 DB $ff, $00, $ff, $70, $ff, $48, $ff, $78, $ff, $44, $ff, $44, $ff, $78, $ff, $00 DB $ff, $00, $ff, $38, $ff, $44, $ff, $40, $ff, $40, $ff, $44, $ff, $38, $ff, $00 DB $ff, $00, $ff, $48, $ff, $48, $ff, $50, $ff, $60, $ff, $50, $ff, $48, $ff, $00 DB $77, $2c, $77, $2c, $77, $2c, $77, $2c, $77, $2c, $77, $2c, $77, $2c, $77, $2c DB $ff, $00, $ff, $40, $ff, $40, $ff, $40, $ff, $40, $ff, $40, $ff, $78, $ff, $00 DB $f6, $2c, $f6, $2c, $f6, $2c, $f6, $2c, $f6, $2c, $f6, $2c, $f6, $2c, $f6, $2c DB $ff, $00, $ff, $78, $ff, $40, $ff, $70, $ff, $40, $ff, $40, $ff, $78, $ff, $00 DB $ff, $00, $ff, $38, $ff, $10, $ff, $10, $ff, $10, $ff, $10, $ff, $38, $ff, $00 DB $ff, $00, $ff, $00, $ff, $00, $ff, $00, $ff, $00, $ff, $00, $ff, $00, $ff, $00 DB $ff, $00, $ff, $10, $ff, $18, $ff, $1c, $ff, $1e, $ff, $1c, $ff, $18, $ff, $10 DB $77, $2c, $77, $2c, $77, $2f, $7f, $20, $60, $3f, $7f, $1f, $3f, $00, $00, $00 DB $ff, $00, $ff, $00, $ff, $ff, $ff, $00, $00, $ff, $ff, $ff, $ff, $00, $00, $00 DB $f6, $2c, $f6, $2c, $f6, $ec, $f6, $0c, $06, $fc, $fe, $f8, $fc, $00, $00, $00 DB $ff, $00, $ff, $78, $ff, $44, $ff, $78, $ff, $50, $ff, $48, $ff, $44, $ff, $00 DB $ff, $00, $ff, $30, $ff, $48, $ff, $20, $ff, $10, $ff, $48, $ff, $30, $ff, $00 DB $ff, $00, $ff, $7c, $ff, $10, $ff, $10, $ff, $10, $ff, $10, $ff, $10, $ff, $00 ;-------------------------------------------------------------- Cube0TilesEnd:: ;-------------------------------------------------------------- ; Cube 1 ;-------------------------------------------------------------- Cube1Tiles:: ;-------------------------------------------------------------- ; COPY ; Line 11 DB $03, $03, $03, $03, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $00, $00, $C0, $C0, $E0, $E0, $78, $78, $1C, $1C, $0F, $0F, $07, $07, $01, $01 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $83, $83, $C3, $C3 DB $1C, $1C, $0F, $0F, $07, $07, $01, $01, $00, $00, $00, $00, $00, $00, $00, $00 DB $03, $03, $03, $03, $83, $83, $C3, $C3, $F3, $F3, $3B, $3B, $1F, $1F, $07, $07 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; ; DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $00, $00, $03, $03, $07, $07, $0E, $0E, $3C, $3C, $70, $70, $E0, $E0, $80, $80 DB $E3, $E3, $C3, $C3, $83, $83, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $03, $03, $07, $07, $0E, $0E DB $03, $03, $0F, $0F, $1C, $1C, $78, $78, $E0, $E0, $C0, $C0, $80, $80, $00, $00 ;8A ;8A ; Line 12 DB $F3, $F3, $3B, $3B, $1F, $1F, $07, $07, $03, $03, $00, $00, $00, $00, $00, $00 DB $00, $00, $00, $00, $00, $00, $00, $00, $C0, $C0, $E0, $E0, $78, $78, $1C, $1C DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $C0, $C0, $E0, $E0, $78, $78, $1C, $1C, $0F, $0F, $07, $07, $01, $01, $00, $00 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $83, $83, $C3, $C3, $F3, $F3 DB $00, $00, $00, $00, $00, $00, $00, $00, $03, $03, $07, $07, $0E, $0E, $3C, $3C DB $0F, $0F, $1F, $1F, $7B, $7B, $E3, $E3, $C3, $C3, $83, $83, $03, $03, $03, $03 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $03, $03, $03, $03, $03, $03, $03, $03, $0F, $0F, $1C, $1C, $78, $78, $E0, $E0 DB $3C, $3C, $70, $70, $E0, $E0, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00 ; 94 ; Line 13 DB $0F, $0F, $07, $07, $01, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $03, $03, $83, $83, $C3, $C3, $F3, $F3, $3B, $3B, $1F, $1F, $07, $07, $03, $03 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $C0, $C0 DB $3B, $3B, $1F, $1F, $07, $07, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $70, $70, $E0, $E0, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $0F, $0F DB $03, $03, $07, $07, $0E, $0E, $3C, $3C, $70, $70, $E0, $E0, $80, $80, $00, $00 ;9B DB $C0, $C0, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; Line 14 DB $E0, $E0, $78, $78, $1C, $1C, $0F, $0F, $07, $07, $01, $01, $00, $00, $00, $00 DB $03, $03, $03, $03, $03, $03, $03, $03, $83, $83, $C3, $C3, $F3, $F3, $3B, $3B DB $00, $00, $00, $00, $00, $00, $03, $03, $07, $07, $0E, $0E, $3C, $3C, $70, $70 DB $1C, $1C, $78, $78, $E0, $E0, $C0, $C0, $80, $80, $00, $00, $00, $00, $00, $00; A0 ; Line 15 DB $1F, $1F, $07, $07, $03, $03, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $E0, $E0, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 REPT(13) DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ENDR ; Line 2 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $03, $03, $03, $03, $03, $03 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $FF, $FF, $FF, $FF, $00, $00 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $FF, $FF, $FF, $FF, $0C, $0C DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $FF, $FF, $FF, $FF, $00, $00 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $FF, $FF, $FF, $FF, $60, $60 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $FF, $FF, $FF, $FF, $00, $00 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $C0, $C0, $C0, $C0, $C0, $C0 ; 07 ;Line 3 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 09 DB $0C, $0C, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $60, $60, $60, $60, $60, $60, $60, $60, $60, $60, $60, $60, $60, $60, $60, $60 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 0D DB $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0 ; Line 4 DB $06, $06, $06, $06, $06, $06, $06, $06, $07, $07, $07, $07, $06, $06, $06, $06 DB $00, $00, $00, $00, $00, $00, $00, $00, $FF, $FF, $FF, $FF, $00, $00, $00, $00 ; 10 DB $18, $18, $18, $18, $18, $18, $18, $18, $FF, $FF, $FF, $FF, $18, $18, $18, $18 DB $00, $00, $00, $00, $00, $00, $00, $00, $FF, $FF, $FF, $FF, $00, $00, $00, $00 ; 12 DB $60, $60, $60, $60, $60, $60, $30, $30, $FF, $FF, $FF, $FF, $30, $30, $30, $30 DB $00, $00, $00, $00, $00, $00, $00, $00, $FF, $FF, $FF, $FF, $00, $00, $00, $00 ; 14 DB $C0, $C0, $E0, $E0, $60, $60, $60, $60, $E0, $E0, $E0, $E0, $60, $60, $60, $60 ; Line 5 DB $06, $06, $0C, $0C, $0C, $0C, $0C, $0C, $0C, $0C, $0C, $0C, $0F, $0F, $1F, $1F DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $FF, $FF, $FF, $FF ; 17 DB $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $FF, $FF, $FF, $FF DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $FF, $FF, $FF, $FF ; 19 DB $30, $30, $30, $30, $30, $30, $30, $30, $30, $30, $30, $30, $FF, $FF, $FF, $FF DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $FF, $FF, $FF, $FF ; 1B DB $60, $60, $60, $60, $60, $60, $60, $60, $60, $60, $60, $60, $F0, $F0, $F0, $F0 ; Line 6 DB $00, $00, $00, $00, $01, $01, $03, $03, $0F, $0F, $1F, $1F, $7F, $7F, $FF, $FF DB $7c, $3c, $fc, $fc, $f8, $f8, $f8, $f8, $f8, $f8, $f8, $f8, $f8, $f8, $f8, $f8 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 1F DB $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 21 DB $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 23 DB $30, $30, $3C, $3C, $3E, $3E, $3F, $3F, $3F, $3F, $3F, $3F, $3F, $3F, $3F, $3F DB $00, $00, $00, $00, $00, $00, $00, $00, $C0, $C0, $E0, $E0, $F8, $F8, $FC, $FC ;Line 7 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $7F, $1F, $1F, $0F, $0F, $07, $07 DB $F8, $F8, $F8, $F8, $F8, $F8, $FF, $FF, $FF, $FF, $F8, $F8, $F8, $F8, $F8, $F8 DB $00, $00, $00, $00, $00, $00, $FF, $FF, $FF, $FF, $00, $00, $00, $00, $00, $00 ; 29 DB $18, $18, $18, $18, $18, $18, $FF, $FF, $FF, $FF, $18, $18, $18, $18, $18, $18 DB $00, $00, $00, $00, $00, $00, $FF, $FF, $FF, $FF, $00, $00, $00, $00, $00, $00 ; 2B DB $18, $18, $18, $18, $18, $18, $FF, $FF, $FF, $FF, $18, $18, $18, $18, $18, $18 DB $00, $00, $00, $00, $00, $00, $FF, $FF, $FF, $FF, $00, $00, $00, $00, $00, $00 ; 2D DB $3F, $3F, $3F, $3F, $1F, $1F, $FF, $FF, $FF, $FF, $1F, $1F, $1F, $1F, $1F, $1F DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FB, $FB, $E3, $E3, $C3, $C3, $83, $83 ;Line 8 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $01, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $F8, $F8, $F8, $F8, $38, $38, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 33 DB $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 35 DB $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 37 DB $1E, $1E, $1C, $1C, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $18 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 ;Line 9 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $00, $00, $80, $80, $C0, $C0, $E0, $E0, $78, $78, $1C, $1C, $0F, $0F, $07, $07 DB $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $1F, $1F, $1F, $1F, $83, $83 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $FF, $FF, $FF, $FF, $00, $00 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $FF, $FF, $FF, $FF, $07, $07 DB $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $FF, $FF, $FF, $FF, $FF, $FF DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $FF, $FF, $FF, $FF, $FF, $FF ; 40 DB $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $FF, $FF, $FF, $FF, $FF, $FF DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $FF, $FF, $FF, $FF, $80, $80 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $FF, $FF, $FF, $FF, $03, $03 DB $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $F8, $F8, $FB, $FB, $07, $07 DB $03, $03, $07, $07, $0F, $0F, $1F, $1F, $7B, $7B, $E3, $E3, $C3, $C3, $83, $83 ; 5B ; Line 10 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $01, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $C3, $C3, $F3, $F3, $3B, $3B, $1F, $1F, $07, $07, $03, $03, $03, $03, $03, $03 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $C0, $C0, $E0, $E0, $78, $78 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $FF, $FF, $FF, $FF, $7F, $7F, $1F, $1F, $0F, $0F, $07, $07, $01, $01, $00, $00 DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FE, $FC, $FC DB $FF, $FF, $FF, $FF, $FB, $FB, $E3, $E3, $C3, $C3, $83, $83, $03, $03, $03, $03 DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $0F, $0F, $1F, $1F, $7B, $7B DB $0E, $0E, $3C, $3C, $70, $70, $E0, $E0, $80, $80, $00, $00, $00, $00, $00, $00 DB $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 ; 68 ; Line 11 DB $3F, $3F, $1F, $1F, $07, $07, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 DB $F0, $F0, $E0, $E0, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ;-------------------------------------------------------------- Cube1TilesEnd:: ;-------------------------------------------------------------- ;-------------------------------------------------------------- Cube0Tilemap:: ;-------------------------------------------------------------- DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $00, $00, $00, $00, $00, $01, $02, $03, $04, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $00, $00, $00, $05, $06, $07, $08, $09, $0A, $0B, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $00, $00, $0C, $0D, $0E, $0F, $10, $11, $12, $13, $14, $15, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $00, $16, $17, $18, $19, $1A, $1B, $1C, $1D, $1E, $1F, $20, $21, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $22, $23, $24, $25, $26, $27, $28, $29, $2A, $2B, $2C, $2D, $2E, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $2F, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $3A, $3B, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $3C, $3D, $3E, $3F, $40, $41, $42, $43, $44, $45, $46, $47, $48, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $49, $4A, $4B, $4C, $4D, $4E, $4F, $50, $51, $52, $53, $54, $55, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $56, $57, $58, $59, $5A, $5B, $5C, $5D, $5E, $5F, $60, $61, $62, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $63, $64, $65, $66, $67, $68, $69, $6A, $6B, $6C, $6D, $6E, $6F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $80, $81, $82, $83, $84, $85, $70, $71, $86, $87, $88, $89, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $00, $00, $8B, $8C, $8D, $8E, $8F, $90, $91, $92, $93, $94, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $00, $00, $00, $95, $96, $97, $98, $99, $9A, $9B, $9C, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $00, $00, $00, $00, $00, $9D, $9E, $9F, $A0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $A1, $A2, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, ;-------------------------------------------------------------- Cube0TilemapEnd:: ;-------------------------------------------------------------- ;-------------------------------------------------------------- Cube1Tilemap:: ;-------------------------------------------------------------- DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $00, $00, $01, $02, $02, $03, $04, $04, $05, $06, $06, $07, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $00, $00, $08, $09, $09, $0A, $0B, $0B, $0C, $0D, $0D, $0E, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $00, $00, $0F, $10, $10, $11, $12, $12, $13, $14, $14, $15, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $00, $00, $16, $17, $17, $18, $19, $19, $1A, $1B, $1B, $1C, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $00, $1D, $1E, $1F, $1F, $20, $21, $21, $22, $23, $23, $24, $25, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $26, $27, $28, $29, $29, $2A, $2B, $2B, $2C, $2D, $2D, $2E, $2F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $30, $31, $32, $33, $33, $34, $35, $35, $36, $37, $37, $38, $39, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $3A, $3B, $3C, $3D, $3E, $3F, $40, $40, $41, $42, $43, $44, $45, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $46, $47, $48, $49, $4A, $4B, $4C, $4D, $4E, $4F, $50, $51, $52, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $D0, $D1, $D2, $D3, $D4, $D5, $53, $54, $D6, $D7, $D8, $D9, $DA, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $00, $00, $DB, $DC, $DD, $DE, $DF, $E0, $E1, $E2, $E3, $E4, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $00, $00, $00, $E5, $E6, $E7, $E8, $E9, $EA, $EB, $EC, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $00, $00, $00, $00, $00, $ED, $EE, $EF, $F0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $F1, $F2, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, ;-------------------------------------------------------------- Cube1TilemapEnd:: ;--------------------------------------------------------------
68.988987
164
0.402861
cabf13fbcedf354f66a80cef7ab974791fd33fe7
501
asm
Assembly
examples/program5.asm
hleonps/Micro-To-MIPS32-Compiler
5706541f0fd8ea808b607f546da7d56caf999729
[ "MIT" ]
1
2015-08-28T13:04:15.000Z
2015-08-28T13:04:15.000Z
examples/program5.asm
hleonps/Micro-To-MIPS32-Compiler
5706541f0fd8ea808b607f546da7d56caf999729
[ "MIT" ]
null
null
null
examples/program5.asm
hleonps/Micro-To-MIPS32-Compiler
5706541f0fd8ea808b607f546da7d56caf999729
[ "MIT" ]
1
2015-08-17T18:41:50.000Z
2015-08-17T18:41:50.000Z
.text .globl main main: li $t1, 5 lw $t2, var1 sub $t0, $t1, $t2 sw $t0, var1 li $v0, 5 syscall sw $v0, var2 lw $t3, var2 li $t4, 0 beq $t3, $t4, .label0 lw $t6, var1 li $t7, 5 add $t5, $t6, $t7 move $t3, $t5 li $t8, 0 beq $t3, $t8, .label2 li $t3, 4 j .label3 .label2: li $t3, 5 .label3: move $t3, $t3 j .label1 .label0: li $t3, 10 .label1: sw $t3, var3 lw $t0, var3 li $v0, 1 move $a0, $t0 syscall li $a0, 10 li $v0, 11 syscall li $v0, 10 syscall .data var1: .word 15 var2: .word 0 var3: .space 4
10.891304
21
0.606786
d8fb59d880c76d1ff7ac86b61b4f8b6766e4a2c4
7,695
asm
Assembly
Transynther/x86/_processed/P/_zr_/i3-7100_9_0x84_notsx.log_1797_146.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/P/_zr_/i3-7100_9_0x84_notsx.log_1797_146.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/P/_zr_/i3-7100_9_0x84_notsx.log_1797_146.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r8 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x1cc5d, %rdx nop nop nop sub $1653, %r12 mov $0x6162636465666768, %rdi movq %rdi, %xmm3 movups %xmm3, (%rdx) add %r15, %r15 lea addresses_WC_ht+0xbad5, %rsi lea addresses_WC_ht+0xfb1d, %rdi nop nop nop nop nop add %r8, %r8 mov $27, %rcx rep movsl nop nop nop nop inc %rcx lea addresses_WC_ht+0x415d, %r8 nop nop nop and $43546, %rsi movl $0x61626364, (%r8) nop add %r15, %r15 lea addresses_A_ht+0x1145d, %rdi nop nop nop xor $15586, %r12 mov (%rdi), %dx nop nop xor %rdi, %rdi lea addresses_WT_ht+0xc85d, %r12 inc %rdx mov (%r12), %r8d nop nop nop and %r12, %r12 lea addresses_D_ht+0x1051d, %rdi nop and %rcx, %rcx vmovups (%rdi), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $0, %xmm5, %r12 nop nop nop inc %rdi lea addresses_WC_ht+0x52bd, %rsi lea addresses_WC_ht+0x10efd, %rdi and $44026, %r9 mov $75, %rcx rep movsl nop nop nop cmp %r15, %r15 lea addresses_UC_ht+0x11c5d, %rcx nop nop nop nop and %r9, %r9 mov (%rcx), %r12w nop nop nop nop nop add $60415, %rcx lea addresses_WC_ht+0x10b1d, %rsi lea addresses_D_ht+0x6d91, %rdi clflush (%rdi) nop nop dec %rdx mov $32, %rcx rep movsw and $46689, %r9 lea addresses_WT_ht+0x9587, %rsi lea addresses_D_ht+0x1085d, %rdi nop dec %rdx mov $17, %rcx rep movsw xor %rsi, %rsi lea addresses_D_ht+0x14847, %rcx nop nop nop add %rdx, %rdx movb (%rcx), %r12b nop nop nop sub %r15, %r15 lea addresses_A_ht+0x1625d, %rdi nop and $14427, %rsi and $0xffffffffffffffc0, %rdi movaps (%rdi), %xmm4 vpextrq $1, %xmm4, %rcx nop nop nop add $25305, %rcx lea addresses_A_ht+0x112dd, %rsi lea addresses_WT_ht+0x1d14d, %rdi nop nop nop nop nop inc %r15 mov $53, %rcx rep movsl add %r9, %r9 lea addresses_A_ht+0x132dd, %r15 and $11297, %rdx mov $0x6162636465666768, %r9 movq %r9, (%r15) nop nop nop xor %r12, %r12 lea addresses_WT_ht+0x775d, %r8 nop nop nop nop cmp %rsi, %rsi movups (%r8), %xmm0 vpextrq $1, %xmm0, %r15 nop nop xor %r15, %r15 pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r8 pop %r15 pop %r12 ret .global s_faulty_load s_faulty_load: push %r12 push %r15 push %r8 push %rbx push %rcx push %rdx // Faulty Load mov $0xc5d, %r15 sub $10508, %rdx mov (%r15), %ebx lea oracles, %rcx and $0xff, %rbx shlq $12, %rbx mov (%rcx,%rbx,1), %rbx pop %rdx pop %rcx pop %rbx pop %r8 pop %r15 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_P', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_P', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 16, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 4, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 4, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 32, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': True}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 1, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'same': True, 'size': 16, 'congruent': 7, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'00': 1797} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
35.460829
2,999
0.654711
6d1ebe89fb4546643b8b36c972afecba3653cb3a
354
asm
Assembly
v0.0.001/Source/shell.asm
sjmeunier/cros
61e3123eb4b40718ab468f89ecd6f0394b8a2546
[ "MIT" ]
null
null
null
v0.0.001/Source/shell.asm
sjmeunier/cros
61e3123eb4b40718ab468f89ecd6f0394b8a2546
[ "MIT" ]
null
null
null
v0.0.001/Source/shell.asm
sjmeunier/cros
61e3123eb4b40718ab468f89ecd6f0394b8a2546
[ "MIT" ]
null
null
null
;----------------------------------------------------- ;Start up the shell and go into infinite loop ;I: none ;O: none ;----------------------------------------------------- _shell: _shell_begin: call _display_endl call _display_prompt call _get_cmd call _exec_cmd jmp _shell_begin ;-----------------------------------------------------
27.230769
54
0.39548
86ecc18336630ff77a3ffd5375b517320075e32a
1,007
asm
Assembly
programs/oeis/273/A273309.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/273/A273309.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/273/A273309.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A273309: Number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 641", based on the 5-celled von Neumann neighborhood. ; 1,4,17,40,73,112,161,216,281,352,433,520,617,720,833,952,1081,1216,1361,1512,1673,1840,2017,2200,2393,2592,2801,3016,3241,3472,3713,3960,4217,4480,4753,5032,5321,5616,5921,6232,6553,6880,7217,7560,7913,8272,8641,9016,9401,9792,10193,10600,11017,11440,11873,12312,12761,13216,13681,14152,14633,15120,15617,16120,16633,17152,17681,18216,18761,19312,19873,20440,21017,21600,22193,22792,23401,24016,24641,25272,25913,26560,27217,27880,28553,29232,29921,30616,31321,32032,32753,33480,34217,34960,35713,36472,37241,38016,38801,39592 mov $1,$0 add $1,1 mov $4,3 mov $6,$0 lpb $1 add $0,$4 add $0,2 sub $1,1 mov $2,$4 mov $4,2 trn $4,$2 lpe sub $0,3 trn $0,4 mov $2,2 sub $2,$0 sub $0,1 trn $0,4 trn $2,1 add $0,$2 mov $5,$6 mov $7,$6 lpb $5 sub $5,1 add $8,$7 lpe mov $3,4 mov $7,$8 lpb $3 add $0,$7 sub $3,1 lpe
27.972222
528
0.712016
2a9a9e0deba1147fc790c1b7386016f26ece708b
39,713
asm
Assembly
zombie.asm
vlnvv/xv6-os
e3d978acdf6352ccc2e7ea5883c6a9a96b9c8a74
[ "MIT-0" ]
null
null
null
zombie.asm
vlnvv/xv6-os
e3d978acdf6352ccc2e7ea5883c6a9a96b9c8a74
[ "MIT-0" ]
null
null
null
zombie.asm
vlnvv/xv6-os
e3d978acdf6352ccc2e7ea5883c6a9a96b9c8a74
[ "MIT-0" ]
null
null
null
_zombie: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(void) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 e4 f0 and $0xfffffff0,%esp 6: 83 ec 10 sub $0x10,%esp if(fork() > 0) 9: e8 5a 02 00 00 call 268 <fork> e: 85 c0 test %eax,%eax 10: 7e 0c jle 1e <main+0x1e> sleep(5); // Let child exit before parent. 12: c7 04 24 05 00 00 00 movl $0x5,(%esp) 19: e8 e2 02 00 00 call 300 <sleep> exit(); 1e: e8 4d 02 00 00 call 270 <exit> 23: 90 nop 00000024 <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 24: 55 push %ebp 25: 89 e5 mov %esp,%ebp 27: 57 push %edi 28: 53 push %ebx asm volatile("cld; rep stosb" : 29: 8b 4d 08 mov 0x8(%ebp),%ecx 2c: 8b 55 10 mov 0x10(%ebp),%edx 2f: 8b 45 0c mov 0xc(%ebp),%eax 32: 89 cb mov %ecx,%ebx 34: 89 df mov %ebx,%edi 36: 89 d1 mov %edx,%ecx 38: fc cld 39: f3 aa rep stos %al,%es:(%edi) 3b: 89 ca mov %ecx,%edx 3d: 89 fb mov %edi,%ebx 3f: 89 5d 08 mov %ebx,0x8(%ebp) 42: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 45: 5b pop %ebx 46: 5f pop %edi 47: 5d pop %ebp 48: c3 ret 00000049 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 49: 55 push %ebp 4a: 89 e5 mov %esp,%ebp 4c: 83 ec 10 sub $0x10,%esp char *os; os = s; 4f: 8b 45 08 mov 0x8(%ebp),%eax 52: 89 45 fc mov %eax,-0x4(%ebp) while((*s++ = *t++) != 0) 55: 90 nop 56: 8b 45 0c mov 0xc(%ebp),%eax 59: 8a 10 mov (%eax),%dl 5b: 8b 45 08 mov 0x8(%ebp),%eax 5e: 88 10 mov %dl,(%eax) 60: 8b 45 08 mov 0x8(%ebp),%eax 63: 8a 00 mov (%eax),%al 65: 84 c0 test %al,%al 67: 0f 95 c0 setne %al 6a: ff 45 08 incl 0x8(%ebp) 6d: ff 45 0c incl 0xc(%ebp) 70: 84 c0 test %al,%al 72: 75 e2 jne 56 <strcpy+0xd> ; return os; 74: 8b 45 fc mov -0x4(%ebp),%eax } 77: c9 leave 78: c3 ret 00000079 <strcmp>: int strcmp(const char *p, const char *q) { 79: 55 push %ebp 7a: 89 e5 mov %esp,%ebp while(*p && *p == *q) 7c: eb 06 jmp 84 <strcmp+0xb> p++, q++; 7e: ff 45 08 incl 0x8(%ebp) 81: ff 45 0c incl 0xc(%ebp) } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 84: 8b 45 08 mov 0x8(%ebp),%eax 87: 8a 00 mov (%eax),%al 89: 84 c0 test %al,%al 8b: 74 0e je 9b <strcmp+0x22> 8d: 8b 45 08 mov 0x8(%ebp),%eax 90: 8a 10 mov (%eax),%dl 92: 8b 45 0c mov 0xc(%ebp),%eax 95: 8a 00 mov (%eax),%al 97: 38 c2 cmp %al,%dl 99: 74 e3 je 7e <strcmp+0x5> p++, q++; return (uchar)*p - (uchar)*q; 9b: 8b 45 08 mov 0x8(%ebp),%eax 9e: 8a 00 mov (%eax),%al a0: 0f b6 d0 movzbl %al,%edx a3: 8b 45 0c mov 0xc(%ebp),%eax a6: 8a 00 mov (%eax),%al a8: 0f b6 c0 movzbl %al,%eax ab: 89 d1 mov %edx,%ecx ad: 29 c1 sub %eax,%ecx af: 89 c8 mov %ecx,%eax } b1: 5d pop %ebp b2: c3 ret 000000b3 <strlen>: uint strlen(char *s) { b3: 55 push %ebp b4: 89 e5 mov %esp,%ebp b6: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) b9: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) c0: eb 03 jmp c5 <strlen+0x12> c2: ff 45 fc incl -0x4(%ebp) c5: 8b 55 fc mov -0x4(%ebp),%edx c8: 8b 45 08 mov 0x8(%ebp),%eax cb: 01 d0 add %edx,%eax cd: 8a 00 mov (%eax),%al cf: 84 c0 test %al,%al d1: 75 ef jne c2 <strlen+0xf> ; return n; d3: 8b 45 fc mov -0x4(%ebp),%eax } d6: c9 leave d7: c3 ret 000000d8 <memset>: void* memset(void *dst, int c, uint n) { d8: 55 push %ebp d9: 89 e5 mov %esp,%ebp db: 83 ec 0c sub $0xc,%esp stosb(dst, c, n); de: 8b 45 10 mov 0x10(%ebp),%eax e1: 89 44 24 08 mov %eax,0x8(%esp) e5: 8b 45 0c mov 0xc(%ebp),%eax e8: 89 44 24 04 mov %eax,0x4(%esp) ec: 8b 45 08 mov 0x8(%ebp),%eax ef: 89 04 24 mov %eax,(%esp) f2: e8 2d ff ff ff call 24 <stosb> return dst; f7: 8b 45 08 mov 0x8(%ebp),%eax } fa: c9 leave fb: c3 ret 000000fc <strchr>: char* strchr(const char *s, char c) { fc: 55 push %ebp fd: 89 e5 mov %esp,%ebp ff: 83 ec 04 sub $0x4,%esp 102: 8b 45 0c mov 0xc(%ebp),%eax 105: 88 45 fc mov %al,-0x4(%ebp) for(; *s; s++) 108: eb 12 jmp 11c <strchr+0x20> if(*s == c) 10a: 8b 45 08 mov 0x8(%ebp),%eax 10d: 8a 00 mov (%eax),%al 10f: 3a 45 fc cmp -0x4(%ebp),%al 112: 75 05 jne 119 <strchr+0x1d> return (char*)s; 114: 8b 45 08 mov 0x8(%ebp),%eax 117: eb 11 jmp 12a <strchr+0x2e> } char* strchr(const char *s, char c) { for(; *s; s++) 119: ff 45 08 incl 0x8(%ebp) 11c: 8b 45 08 mov 0x8(%ebp),%eax 11f: 8a 00 mov (%eax),%al 121: 84 c0 test %al,%al 123: 75 e5 jne 10a <strchr+0xe> if(*s == c) return (char*)s; return 0; 125: b8 00 00 00 00 mov $0x0,%eax } 12a: c9 leave 12b: c3 ret 0000012c <gets>: char* gets(char *buf, int max) { 12c: 55 push %ebp 12d: 89 e5 mov %esp,%ebp 12f: 83 ec 28 sub $0x28,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 132: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 139: eb 42 jmp 17d <gets+0x51> cc = read(0, &c, 1); 13b: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 142: 00 143: 8d 45 ef lea -0x11(%ebp),%eax 146: 89 44 24 04 mov %eax,0x4(%esp) 14a: c7 04 24 00 00 00 00 movl $0x0,(%esp) 151: e8 32 01 00 00 call 288 <read> 156: 89 45 f0 mov %eax,-0x10(%ebp) if(cc < 1) 159: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 15d: 7e 29 jle 188 <gets+0x5c> break; buf[i++] = c; 15f: 8b 55 f4 mov -0xc(%ebp),%edx 162: 8b 45 08 mov 0x8(%ebp),%eax 165: 01 c2 add %eax,%edx 167: 8a 45 ef mov -0x11(%ebp),%al 16a: 88 02 mov %al,(%edx) 16c: ff 45 f4 incl -0xc(%ebp) if(c == '\n' || c == '\r') 16f: 8a 45 ef mov -0x11(%ebp),%al 172: 3c 0a cmp $0xa,%al 174: 74 13 je 189 <gets+0x5d> 176: 8a 45 ef mov -0x11(%ebp),%al 179: 3c 0d cmp $0xd,%al 17b: 74 0c je 189 <gets+0x5d> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 17d: 8b 45 f4 mov -0xc(%ebp),%eax 180: 40 inc %eax 181: 3b 45 0c cmp 0xc(%ebp),%eax 184: 7c b5 jl 13b <gets+0xf> 186: eb 01 jmp 189 <gets+0x5d> cc = read(0, &c, 1); if(cc < 1) break; 188: 90 nop buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 189: 8b 55 f4 mov -0xc(%ebp),%edx 18c: 8b 45 08 mov 0x8(%ebp),%eax 18f: 01 d0 add %edx,%eax 191: c6 00 00 movb $0x0,(%eax) return buf; 194: 8b 45 08 mov 0x8(%ebp),%eax } 197: c9 leave 198: c3 ret 00000199 <stat>: int stat(char *n, struct stat *st) { 199: 55 push %ebp 19a: 89 e5 mov %esp,%ebp 19c: 83 ec 28 sub $0x28,%esp int fd; int r; fd = open(n, O_RDONLY); 19f: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 1a6: 00 1a7: 8b 45 08 mov 0x8(%ebp),%eax 1aa: 89 04 24 mov %eax,(%esp) 1ad: e8 fe 00 00 00 call 2b0 <open> 1b2: 89 45 f4 mov %eax,-0xc(%ebp) if(fd < 0) 1b5: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 1b9: 79 07 jns 1c2 <stat+0x29> return -1; 1bb: b8 ff ff ff ff mov $0xffffffff,%eax 1c0: eb 23 jmp 1e5 <stat+0x4c> r = fstat(fd, st); 1c2: 8b 45 0c mov 0xc(%ebp),%eax 1c5: 89 44 24 04 mov %eax,0x4(%esp) 1c9: 8b 45 f4 mov -0xc(%ebp),%eax 1cc: 89 04 24 mov %eax,(%esp) 1cf: e8 f4 00 00 00 call 2c8 <fstat> 1d4: 89 45 f0 mov %eax,-0x10(%ebp) close(fd); 1d7: 8b 45 f4 mov -0xc(%ebp),%eax 1da: 89 04 24 mov %eax,(%esp) 1dd: e8 b6 00 00 00 call 298 <close> return r; 1e2: 8b 45 f0 mov -0x10(%ebp),%eax } 1e5: c9 leave 1e6: c3 ret 000001e7 <atoi>: int atoi(const char *s) { 1e7: 55 push %ebp 1e8: 89 e5 mov %esp,%ebp 1ea: 83 ec 10 sub $0x10,%esp int n; n = 0; 1ed: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while('0' <= *s && *s <= '9') 1f4: eb 21 jmp 217 <atoi+0x30> n = n*10 + *s++ - '0'; 1f6: 8b 55 fc mov -0x4(%ebp),%edx 1f9: 89 d0 mov %edx,%eax 1fb: c1 e0 02 shl $0x2,%eax 1fe: 01 d0 add %edx,%eax 200: d1 e0 shl %eax 202: 89 c2 mov %eax,%edx 204: 8b 45 08 mov 0x8(%ebp),%eax 207: 8a 00 mov (%eax),%al 209: 0f be c0 movsbl %al,%eax 20c: 01 d0 add %edx,%eax 20e: 83 e8 30 sub $0x30,%eax 211: 89 45 fc mov %eax,-0x4(%ebp) 214: ff 45 08 incl 0x8(%ebp) atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 217: 8b 45 08 mov 0x8(%ebp),%eax 21a: 8a 00 mov (%eax),%al 21c: 3c 2f cmp $0x2f,%al 21e: 7e 09 jle 229 <atoi+0x42> 220: 8b 45 08 mov 0x8(%ebp),%eax 223: 8a 00 mov (%eax),%al 225: 3c 39 cmp $0x39,%al 227: 7e cd jle 1f6 <atoi+0xf> n = n*10 + *s++ - '0'; return n; 229: 8b 45 fc mov -0x4(%ebp),%eax } 22c: c9 leave 22d: c3 ret 0000022e <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 22e: 55 push %ebp 22f: 89 e5 mov %esp,%ebp 231: 83 ec 10 sub $0x10,%esp char *dst, *src; dst = vdst; 234: 8b 45 08 mov 0x8(%ebp),%eax 237: 89 45 fc mov %eax,-0x4(%ebp) src = vsrc; 23a: 8b 45 0c mov 0xc(%ebp),%eax 23d: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0) 240: eb 10 jmp 252 <memmove+0x24> *dst++ = *src++; 242: 8b 45 f8 mov -0x8(%ebp),%eax 245: 8a 10 mov (%eax),%dl 247: 8b 45 fc mov -0x4(%ebp),%eax 24a: 88 10 mov %dl,(%eax) 24c: ff 45 fc incl -0x4(%ebp) 24f: ff 45 f8 incl -0x8(%ebp) { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 252: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 256: 0f 9f c0 setg %al 259: ff 4d 10 decl 0x10(%ebp) 25c: 84 c0 test %al,%al 25e: 75 e2 jne 242 <memmove+0x14> *dst++ = *src++; return vdst; 260: 8b 45 08 mov 0x8(%ebp),%eax } 263: c9 leave 264: c3 ret 265: 66 90 xchg %ax,%ax 267: 90 nop 00000268 <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 268: b8 01 00 00 00 mov $0x1,%eax 26d: cd 40 int $0x40 26f: c3 ret 00000270 <exit>: SYSCALL(exit) 270: b8 02 00 00 00 mov $0x2,%eax 275: cd 40 int $0x40 277: c3 ret 00000278 <wait>: SYSCALL(wait) 278: b8 03 00 00 00 mov $0x3,%eax 27d: cd 40 int $0x40 27f: c3 ret 00000280 <pipe>: SYSCALL(pipe) 280: b8 04 00 00 00 mov $0x4,%eax 285: cd 40 int $0x40 287: c3 ret 00000288 <read>: SYSCALL(read) 288: b8 05 00 00 00 mov $0x5,%eax 28d: cd 40 int $0x40 28f: c3 ret 00000290 <write>: SYSCALL(write) 290: b8 10 00 00 00 mov $0x10,%eax 295: cd 40 int $0x40 297: c3 ret 00000298 <close>: SYSCALL(close) 298: b8 15 00 00 00 mov $0x15,%eax 29d: cd 40 int $0x40 29f: c3 ret 000002a0 <kill>: SYSCALL(kill) 2a0: b8 06 00 00 00 mov $0x6,%eax 2a5: cd 40 int $0x40 2a7: c3 ret 000002a8 <exec>: SYSCALL(exec) 2a8: b8 07 00 00 00 mov $0x7,%eax 2ad: cd 40 int $0x40 2af: c3 ret 000002b0 <open>: SYSCALL(open) 2b0: b8 0f 00 00 00 mov $0xf,%eax 2b5: cd 40 int $0x40 2b7: c3 ret 000002b8 <mknod>: SYSCALL(mknod) 2b8: b8 11 00 00 00 mov $0x11,%eax 2bd: cd 40 int $0x40 2bf: c3 ret 000002c0 <unlink>: SYSCALL(unlink) 2c0: b8 12 00 00 00 mov $0x12,%eax 2c5: cd 40 int $0x40 2c7: c3 ret 000002c8 <fstat>: SYSCALL(fstat) 2c8: b8 08 00 00 00 mov $0x8,%eax 2cd: cd 40 int $0x40 2cf: c3 ret 000002d0 <link>: SYSCALL(link) 2d0: b8 13 00 00 00 mov $0x13,%eax 2d5: cd 40 int $0x40 2d7: c3 ret 000002d8 <mkdir>: SYSCALL(mkdir) 2d8: b8 14 00 00 00 mov $0x14,%eax 2dd: cd 40 int $0x40 2df: c3 ret 000002e0 <chdir>: SYSCALL(chdir) 2e0: b8 09 00 00 00 mov $0x9,%eax 2e5: cd 40 int $0x40 2e7: c3 ret 000002e8 <dup>: SYSCALL(dup) 2e8: b8 0a 00 00 00 mov $0xa,%eax 2ed: cd 40 int $0x40 2ef: c3 ret 000002f0 <getpid>: SYSCALL(getpid) 2f0: b8 0b 00 00 00 mov $0xb,%eax 2f5: cd 40 int $0x40 2f7: c3 ret 000002f8 <sbrk>: SYSCALL(sbrk) 2f8: b8 0c 00 00 00 mov $0xc,%eax 2fd: cd 40 int $0x40 2ff: c3 ret 00000300 <sleep>: SYSCALL(sleep) 300: b8 0d 00 00 00 mov $0xd,%eax 305: cd 40 int $0x40 307: c3 ret 00000308 <uptime>: SYSCALL(uptime) 308: b8 0e 00 00 00 mov $0xe,%eax 30d: cd 40 int $0x40 30f: c3 ret 00000310 <getppid>: SYSCALL(getppid) // USER DEFINED SYS CALL 310: b8 16 00 00 00 mov $0x16,%eax 315: cd 40 int $0x40 317: c3 ret 00000318 <icount>: SYSCALL(icount) // USER DEFINED SYS CALL 318: b8 17 00 00 00 mov $0x17,%eax 31d: cd 40 int $0x40 31f: c3 ret 00000320 <signal>: SYSCALL(signal) // USER DEFINED SYS CALL 320: b8 18 00 00 00 mov $0x18,%eax 325: cd 40 int $0x40 327: c3 ret 00000328 <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 328: 55 push %ebp 329: 89 e5 mov %esp,%ebp 32b: 83 ec 28 sub $0x28,%esp 32e: 8b 45 0c mov 0xc(%ebp),%eax 331: 88 45 f4 mov %al,-0xc(%ebp) write(fd, &c, 1); 334: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 33b: 00 33c: 8d 45 f4 lea -0xc(%ebp),%eax 33f: 89 44 24 04 mov %eax,0x4(%esp) 343: 8b 45 08 mov 0x8(%ebp),%eax 346: 89 04 24 mov %eax,(%esp) 349: e8 42 ff ff ff call 290 <write> } 34e: c9 leave 34f: c3 ret 00000350 <printint>: static void printint(int fd, int xx, int base, int sgn) { 350: 55 push %ebp 351: 89 e5 mov %esp,%ebp 353: 83 ec 48 sub $0x48,%esp static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 356: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) if(sgn && xx < 0){ 35d: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 361: 74 17 je 37a <printint+0x2a> 363: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 367: 79 11 jns 37a <printint+0x2a> neg = 1; 369: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) x = -xx; 370: 8b 45 0c mov 0xc(%ebp),%eax 373: f7 d8 neg %eax 375: 89 45 ec mov %eax,-0x14(%ebp) 378: eb 06 jmp 380 <printint+0x30> } else { x = xx; 37a: 8b 45 0c mov 0xc(%ebp),%eax 37d: 89 45 ec mov %eax,-0x14(%ebp) } i = 0; 380: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; 387: 8b 4d 10 mov 0x10(%ebp),%ecx 38a: 8b 45 ec mov -0x14(%ebp),%eax 38d: ba 00 00 00 00 mov $0x0,%edx 392: f7 f1 div %ecx 394: 89 d0 mov %edx,%eax 396: 8a 80 0c 0a 00 00 mov 0xa0c(%eax),%al 39c: 8d 4d dc lea -0x24(%ebp),%ecx 39f: 8b 55 f4 mov -0xc(%ebp),%edx 3a2: 01 ca add %ecx,%edx 3a4: 88 02 mov %al,(%edx) 3a6: ff 45 f4 incl -0xc(%ebp) }while((x /= base) != 0); 3a9: 8b 55 10 mov 0x10(%ebp),%edx 3ac: 89 55 d4 mov %edx,-0x2c(%ebp) 3af: 8b 45 ec mov -0x14(%ebp),%eax 3b2: ba 00 00 00 00 mov $0x0,%edx 3b7: f7 75 d4 divl -0x2c(%ebp) 3ba: 89 45 ec mov %eax,-0x14(%ebp) 3bd: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 3c1: 75 c4 jne 387 <printint+0x37> if(neg) 3c3: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 3c7: 74 2c je 3f5 <printint+0xa5> buf[i++] = '-'; 3c9: 8d 55 dc lea -0x24(%ebp),%edx 3cc: 8b 45 f4 mov -0xc(%ebp),%eax 3cf: 01 d0 add %edx,%eax 3d1: c6 00 2d movb $0x2d,(%eax) 3d4: ff 45 f4 incl -0xc(%ebp) while(--i >= 0) 3d7: eb 1c jmp 3f5 <printint+0xa5> putc(fd, buf[i]); 3d9: 8d 55 dc lea -0x24(%ebp),%edx 3dc: 8b 45 f4 mov -0xc(%ebp),%eax 3df: 01 d0 add %edx,%eax 3e1: 8a 00 mov (%eax),%al 3e3: 0f be c0 movsbl %al,%eax 3e6: 89 44 24 04 mov %eax,0x4(%esp) 3ea: 8b 45 08 mov 0x8(%ebp),%eax 3ed: 89 04 24 mov %eax,(%esp) 3f0: e8 33 ff ff ff call 328 <putc> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 3f5: ff 4d f4 decl -0xc(%ebp) 3f8: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 3fc: 79 db jns 3d9 <printint+0x89> putc(fd, buf[i]); } 3fe: c9 leave 3ff: c3 ret 00000400 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 400: 55 push %ebp 401: 89 e5 mov %esp,%ebp 403: 83 ec 38 sub $0x38,%esp char *s; int c, i, state; uint *ap; state = 0; 406: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) ap = (uint*)(void*)&fmt + 1; 40d: 8d 45 0c lea 0xc(%ebp),%eax 410: 83 c0 04 add $0x4,%eax 413: 89 45 e8 mov %eax,-0x18(%ebp) for(i = 0; fmt[i]; i++){ 416: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 41d: e9 78 01 00 00 jmp 59a <printf+0x19a> c = fmt[i] & 0xff; 422: 8b 55 0c mov 0xc(%ebp),%edx 425: 8b 45 f0 mov -0x10(%ebp),%eax 428: 01 d0 add %edx,%eax 42a: 8a 00 mov (%eax),%al 42c: 0f be c0 movsbl %al,%eax 42f: 25 ff 00 00 00 and $0xff,%eax 434: 89 45 e4 mov %eax,-0x1c(%ebp) if(state == 0){ 437: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 43b: 75 2c jne 469 <printf+0x69> if(c == '%'){ 43d: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 441: 75 0c jne 44f <printf+0x4f> state = '%'; 443: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp) 44a: e9 48 01 00 00 jmp 597 <printf+0x197> } else { putc(fd, c); 44f: 8b 45 e4 mov -0x1c(%ebp),%eax 452: 0f be c0 movsbl %al,%eax 455: 89 44 24 04 mov %eax,0x4(%esp) 459: 8b 45 08 mov 0x8(%ebp),%eax 45c: 89 04 24 mov %eax,(%esp) 45f: e8 c4 fe ff ff call 328 <putc> 464: e9 2e 01 00 00 jmp 597 <printf+0x197> } } else if(state == '%'){ 469: 83 7d ec 25 cmpl $0x25,-0x14(%ebp) 46d: 0f 85 24 01 00 00 jne 597 <printf+0x197> if(c == 'd'){ 473: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp) 477: 75 2d jne 4a6 <printf+0xa6> printint(fd, *ap, 10, 1); 479: 8b 45 e8 mov -0x18(%ebp),%eax 47c: 8b 00 mov (%eax),%eax 47e: c7 44 24 0c 01 00 00 movl $0x1,0xc(%esp) 485: 00 486: c7 44 24 08 0a 00 00 movl $0xa,0x8(%esp) 48d: 00 48e: 89 44 24 04 mov %eax,0x4(%esp) 492: 8b 45 08 mov 0x8(%ebp),%eax 495: 89 04 24 mov %eax,(%esp) 498: e8 b3 fe ff ff call 350 <printint> ap++; 49d: 83 45 e8 04 addl $0x4,-0x18(%ebp) 4a1: e9 ea 00 00 00 jmp 590 <printf+0x190> } else if(c == 'x' || c == 'p'){ 4a6: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp) 4aa: 74 06 je 4b2 <printf+0xb2> 4ac: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp) 4b0: 75 2d jne 4df <printf+0xdf> printint(fd, *ap, 16, 0); 4b2: 8b 45 e8 mov -0x18(%ebp),%eax 4b5: 8b 00 mov (%eax),%eax 4b7: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp) 4be: 00 4bf: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp) 4c6: 00 4c7: 89 44 24 04 mov %eax,0x4(%esp) 4cb: 8b 45 08 mov 0x8(%ebp),%eax 4ce: 89 04 24 mov %eax,(%esp) 4d1: e8 7a fe ff ff call 350 <printint> ap++; 4d6: 83 45 e8 04 addl $0x4,-0x18(%ebp) 4da: e9 b1 00 00 00 jmp 590 <printf+0x190> } else if(c == 's'){ 4df: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp) 4e3: 75 43 jne 528 <printf+0x128> s = (char*)*ap; 4e5: 8b 45 e8 mov -0x18(%ebp),%eax 4e8: 8b 00 mov (%eax),%eax 4ea: 89 45 f4 mov %eax,-0xc(%ebp) ap++; 4ed: 83 45 e8 04 addl $0x4,-0x18(%ebp) if(s == 0) 4f1: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 4f5: 75 25 jne 51c <printf+0x11c> s = "(null)"; 4f7: c7 45 f4 c7 07 00 00 movl $0x7c7,-0xc(%ebp) while(*s != 0){ 4fe: eb 1c jmp 51c <printf+0x11c> putc(fd, *s); 500: 8b 45 f4 mov -0xc(%ebp),%eax 503: 8a 00 mov (%eax),%al 505: 0f be c0 movsbl %al,%eax 508: 89 44 24 04 mov %eax,0x4(%esp) 50c: 8b 45 08 mov 0x8(%ebp),%eax 50f: 89 04 24 mov %eax,(%esp) 512: e8 11 fe ff ff call 328 <putc> s++; 517: ff 45 f4 incl -0xc(%ebp) 51a: eb 01 jmp 51d <printf+0x11d> } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 51c: 90 nop 51d: 8b 45 f4 mov -0xc(%ebp),%eax 520: 8a 00 mov (%eax),%al 522: 84 c0 test %al,%al 524: 75 da jne 500 <printf+0x100> 526: eb 68 jmp 590 <printf+0x190> putc(fd, *s); s++; } } else if(c == 'c'){ 528: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp) 52c: 75 1d jne 54b <printf+0x14b> putc(fd, *ap); 52e: 8b 45 e8 mov -0x18(%ebp),%eax 531: 8b 00 mov (%eax),%eax 533: 0f be c0 movsbl %al,%eax 536: 89 44 24 04 mov %eax,0x4(%esp) 53a: 8b 45 08 mov 0x8(%ebp),%eax 53d: 89 04 24 mov %eax,(%esp) 540: e8 e3 fd ff ff call 328 <putc> ap++; 545: 83 45 e8 04 addl $0x4,-0x18(%ebp) 549: eb 45 jmp 590 <printf+0x190> } else if(c == '%'){ 54b: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 54f: 75 17 jne 568 <printf+0x168> putc(fd, c); 551: 8b 45 e4 mov -0x1c(%ebp),%eax 554: 0f be c0 movsbl %al,%eax 557: 89 44 24 04 mov %eax,0x4(%esp) 55b: 8b 45 08 mov 0x8(%ebp),%eax 55e: 89 04 24 mov %eax,(%esp) 561: e8 c2 fd ff ff call 328 <putc> 566: eb 28 jmp 590 <printf+0x190> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 568: c7 44 24 04 25 00 00 movl $0x25,0x4(%esp) 56f: 00 570: 8b 45 08 mov 0x8(%ebp),%eax 573: 89 04 24 mov %eax,(%esp) 576: e8 ad fd ff ff call 328 <putc> putc(fd, c); 57b: 8b 45 e4 mov -0x1c(%ebp),%eax 57e: 0f be c0 movsbl %al,%eax 581: 89 44 24 04 mov %eax,0x4(%esp) 585: 8b 45 08 mov 0x8(%ebp),%eax 588: 89 04 24 mov %eax,(%esp) 58b: e8 98 fd ff ff call 328 <putc> } state = 0; 590: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 597: ff 45 f0 incl -0x10(%ebp) 59a: 8b 55 0c mov 0xc(%ebp),%edx 59d: 8b 45 f0 mov -0x10(%ebp),%eax 5a0: 01 d0 add %edx,%eax 5a2: 8a 00 mov (%eax),%al 5a4: 84 c0 test %al,%al 5a6: 0f 85 76 fe ff ff jne 422 <printf+0x22> putc(fd, c); } state = 0; } } } 5ac: c9 leave 5ad: c3 ret 5ae: 66 90 xchg %ax,%ax 000005b0 <free>: static Header base; static Header *freep; void free(void *ap) { 5b0: 55 push %ebp 5b1: 89 e5 mov %esp,%ebp 5b3: 83 ec 10 sub $0x10,%esp Header *bp, *p; bp = (Header*)ap - 1; 5b6: 8b 45 08 mov 0x8(%ebp),%eax 5b9: 83 e8 08 sub $0x8,%eax 5bc: 89 45 f8 mov %eax,-0x8(%ebp) for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 5bf: a1 28 0a 00 00 mov 0xa28,%eax 5c4: 89 45 fc mov %eax,-0x4(%ebp) 5c7: eb 24 jmp 5ed <free+0x3d> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 5c9: 8b 45 fc mov -0x4(%ebp),%eax 5cc: 8b 00 mov (%eax),%eax 5ce: 3b 45 fc cmp -0x4(%ebp),%eax 5d1: 77 12 ja 5e5 <free+0x35> 5d3: 8b 45 f8 mov -0x8(%ebp),%eax 5d6: 3b 45 fc cmp -0x4(%ebp),%eax 5d9: 77 24 ja 5ff <free+0x4f> 5db: 8b 45 fc mov -0x4(%ebp),%eax 5de: 8b 00 mov (%eax),%eax 5e0: 3b 45 f8 cmp -0x8(%ebp),%eax 5e3: 77 1a ja 5ff <free+0x4f> free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 5e5: 8b 45 fc mov -0x4(%ebp),%eax 5e8: 8b 00 mov (%eax),%eax 5ea: 89 45 fc mov %eax,-0x4(%ebp) 5ed: 8b 45 f8 mov -0x8(%ebp),%eax 5f0: 3b 45 fc cmp -0x4(%ebp),%eax 5f3: 76 d4 jbe 5c9 <free+0x19> 5f5: 8b 45 fc mov -0x4(%ebp),%eax 5f8: 8b 00 mov (%eax),%eax 5fa: 3b 45 f8 cmp -0x8(%ebp),%eax 5fd: 76 ca jbe 5c9 <free+0x19> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ 5ff: 8b 45 f8 mov -0x8(%ebp),%eax 602: 8b 40 04 mov 0x4(%eax),%eax 605: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 60c: 8b 45 f8 mov -0x8(%ebp),%eax 60f: 01 c2 add %eax,%edx 611: 8b 45 fc mov -0x4(%ebp),%eax 614: 8b 00 mov (%eax),%eax 616: 39 c2 cmp %eax,%edx 618: 75 24 jne 63e <free+0x8e> bp->s.size += p->s.ptr->s.size; 61a: 8b 45 f8 mov -0x8(%ebp),%eax 61d: 8b 50 04 mov 0x4(%eax),%edx 620: 8b 45 fc mov -0x4(%ebp),%eax 623: 8b 00 mov (%eax),%eax 625: 8b 40 04 mov 0x4(%eax),%eax 628: 01 c2 add %eax,%edx 62a: 8b 45 f8 mov -0x8(%ebp),%eax 62d: 89 50 04 mov %edx,0x4(%eax) bp->s.ptr = p->s.ptr->s.ptr; 630: 8b 45 fc mov -0x4(%ebp),%eax 633: 8b 00 mov (%eax),%eax 635: 8b 10 mov (%eax),%edx 637: 8b 45 f8 mov -0x8(%ebp),%eax 63a: 89 10 mov %edx,(%eax) 63c: eb 0a jmp 648 <free+0x98> } else bp->s.ptr = p->s.ptr; 63e: 8b 45 fc mov -0x4(%ebp),%eax 641: 8b 10 mov (%eax),%edx 643: 8b 45 f8 mov -0x8(%ebp),%eax 646: 89 10 mov %edx,(%eax) if(p + p->s.size == bp){ 648: 8b 45 fc mov -0x4(%ebp),%eax 64b: 8b 40 04 mov 0x4(%eax),%eax 64e: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 655: 8b 45 fc mov -0x4(%ebp),%eax 658: 01 d0 add %edx,%eax 65a: 3b 45 f8 cmp -0x8(%ebp),%eax 65d: 75 20 jne 67f <free+0xcf> p->s.size += bp->s.size; 65f: 8b 45 fc mov -0x4(%ebp),%eax 662: 8b 50 04 mov 0x4(%eax),%edx 665: 8b 45 f8 mov -0x8(%ebp),%eax 668: 8b 40 04 mov 0x4(%eax),%eax 66b: 01 c2 add %eax,%edx 66d: 8b 45 fc mov -0x4(%ebp),%eax 670: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 673: 8b 45 f8 mov -0x8(%ebp),%eax 676: 8b 10 mov (%eax),%edx 678: 8b 45 fc mov -0x4(%ebp),%eax 67b: 89 10 mov %edx,(%eax) 67d: eb 08 jmp 687 <free+0xd7> } else p->s.ptr = bp; 67f: 8b 45 fc mov -0x4(%ebp),%eax 682: 8b 55 f8 mov -0x8(%ebp),%edx 685: 89 10 mov %edx,(%eax) freep = p; 687: 8b 45 fc mov -0x4(%ebp),%eax 68a: a3 28 0a 00 00 mov %eax,0xa28 } 68f: c9 leave 690: c3 ret 00000691 <morecore>: static Header* morecore(uint nu) { 691: 55 push %ebp 692: 89 e5 mov %esp,%ebp 694: 83 ec 28 sub $0x28,%esp char *p; Header *hp; if(nu < 4096) 697: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp) 69e: 77 07 ja 6a7 <morecore+0x16> nu = 4096; 6a0: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp) p = sbrk(nu * sizeof(Header)); 6a7: 8b 45 08 mov 0x8(%ebp),%eax 6aa: c1 e0 03 shl $0x3,%eax 6ad: 89 04 24 mov %eax,(%esp) 6b0: e8 43 fc ff ff call 2f8 <sbrk> 6b5: 89 45 f4 mov %eax,-0xc(%ebp) if(p == (char*)-1) 6b8: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp) 6bc: 75 07 jne 6c5 <morecore+0x34> return 0; 6be: b8 00 00 00 00 mov $0x0,%eax 6c3: eb 22 jmp 6e7 <morecore+0x56> hp = (Header*)p; 6c5: 8b 45 f4 mov -0xc(%ebp),%eax 6c8: 89 45 f0 mov %eax,-0x10(%ebp) hp->s.size = nu; 6cb: 8b 45 f0 mov -0x10(%ebp),%eax 6ce: 8b 55 08 mov 0x8(%ebp),%edx 6d1: 89 50 04 mov %edx,0x4(%eax) free((void*)(hp + 1)); 6d4: 8b 45 f0 mov -0x10(%ebp),%eax 6d7: 83 c0 08 add $0x8,%eax 6da: 89 04 24 mov %eax,(%esp) 6dd: e8 ce fe ff ff call 5b0 <free> return freep; 6e2: a1 28 0a 00 00 mov 0xa28,%eax } 6e7: c9 leave 6e8: c3 ret 000006e9 <malloc>: void* malloc(uint nbytes) { 6e9: 55 push %ebp 6ea: 89 e5 mov %esp,%ebp 6ec: 83 ec 28 sub $0x28,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 6ef: 8b 45 08 mov 0x8(%ebp),%eax 6f2: 83 c0 07 add $0x7,%eax 6f5: c1 e8 03 shr $0x3,%eax 6f8: 40 inc %eax 6f9: 89 45 ec mov %eax,-0x14(%ebp) if((prevp = freep) == 0){ 6fc: a1 28 0a 00 00 mov 0xa28,%eax 701: 89 45 f0 mov %eax,-0x10(%ebp) 704: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 708: 75 23 jne 72d <malloc+0x44> base.s.ptr = freep = prevp = &base; 70a: c7 45 f0 20 0a 00 00 movl $0xa20,-0x10(%ebp) 711: 8b 45 f0 mov -0x10(%ebp),%eax 714: a3 28 0a 00 00 mov %eax,0xa28 719: a1 28 0a 00 00 mov 0xa28,%eax 71e: a3 20 0a 00 00 mov %eax,0xa20 base.s.size = 0; 723: c7 05 24 0a 00 00 00 movl $0x0,0xa24 72a: 00 00 00 } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 72d: 8b 45 f0 mov -0x10(%ebp),%eax 730: 8b 00 mov (%eax),%eax 732: 89 45 f4 mov %eax,-0xc(%ebp) if(p->s.size >= nunits){ 735: 8b 45 f4 mov -0xc(%ebp),%eax 738: 8b 40 04 mov 0x4(%eax),%eax 73b: 3b 45 ec cmp -0x14(%ebp),%eax 73e: 72 4d jb 78d <malloc+0xa4> if(p->s.size == nunits) 740: 8b 45 f4 mov -0xc(%ebp),%eax 743: 8b 40 04 mov 0x4(%eax),%eax 746: 3b 45 ec cmp -0x14(%ebp),%eax 749: 75 0c jne 757 <malloc+0x6e> prevp->s.ptr = p->s.ptr; 74b: 8b 45 f4 mov -0xc(%ebp),%eax 74e: 8b 10 mov (%eax),%edx 750: 8b 45 f0 mov -0x10(%ebp),%eax 753: 89 10 mov %edx,(%eax) 755: eb 26 jmp 77d <malloc+0x94> else { p->s.size -= nunits; 757: 8b 45 f4 mov -0xc(%ebp),%eax 75a: 8b 40 04 mov 0x4(%eax),%eax 75d: 89 c2 mov %eax,%edx 75f: 2b 55 ec sub -0x14(%ebp),%edx 762: 8b 45 f4 mov -0xc(%ebp),%eax 765: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; 768: 8b 45 f4 mov -0xc(%ebp),%eax 76b: 8b 40 04 mov 0x4(%eax),%eax 76e: c1 e0 03 shl $0x3,%eax 771: 01 45 f4 add %eax,-0xc(%ebp) p->s.size = nunits; 774: 8b 45 f4 mov -0xc(%ebp),%eax 777: 8b 55 ec mov -0x14(%ebp),%edx 77a: 89 50 04 mov %edx,0x4(%eax) } freep = prevp; 77d: 8b 45 f0 mov -0x10(%ebp),%eax 780: a3 28 0a 00 00 mov %eax,0xa28 return (void*)(p + 1); 785: 8b 45 f4 mov -0xc(%ebp),%eax 788: 83 c0 08 add $0x8,%eax 78b: eb 38 jmp 7c5 <malloc+0xdc> } if(p == freep) 78d: a1 28 0a 00 00 mov 0xa28,%eax 792: 39 45 f4 cmp %eax,-0xc(%ebp) 795: 75 1b jne 7b2 <malloc+0xc9> if((p = morecore(nunits)) == 0) 797: 8b 45 ec mov -0x14(%ebp),%eax 79a: 89 04 24 mov %eax,(%esp) 79d: e8 ef fe ff ff call 691 <morecore> 7a2: 89 45 f4 mov %eax,-0xc(%ebp) 7a5: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 7a9: 75 07 jne 7b2 <malloc+0xc9> return 0; 7ab: b8 00 00 00 00 mov $0x0,%eax 7b0: eb 13 jmp 7c5 <malloc+0xdc> nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 7b2: 8b 45 f4 mov -0xc(%ebp),%eax 7b5: 89 45 f0 mov %eax,-0x10(%ebp) 7b8: 8b 45 f4 mov -0xc(%ebp),%eax 7bb: 8b 00 mov (%eax),%eax 7bd: 89 45 f4 mov %eax,-0xc(%ebp) return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } 7c0: e9 70 ff ff ff jmp 735 <malloc+0x4c> } 7c5: c9 leave 7c6: c3 ret
33.913749
60
0.420996
0209159333eafa0d3b8ee16f16b0a93ea8fb20d4
4,049
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2_notsx.log_235_32.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2_notsx.log_235_32.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2_notsx.log_235_32.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 %rbx push %rdx push %rsi lea addresses_A_ht+0x10bc5, %r10 clflush (%r10) nop nop xor $17448, %rbx mov $0x6162636465666768, %rdx movq %rdx, %xmm4 movups %xmm4, (%r10) nop nop nop inc %rsi pop %rsi pop %rdx pop %rbx pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r8 push %rax push %rdx push %rsi // Store lea addresses_UC+0x5e75, %rax sub $56987, %rsi movl $0x51525354, (%rax) // Exception!!! nop nop nop nop nop mov (0), %r12 nop nop nop inc %r8 // Load lea addresses_WT+0x7b55, %rax nop nop nop nop cmp %r10, %r10 movb (%rax), %r12b nop nop nop add %rdx, %rdx // Store lea addresses_US+0x1fca5, %r11 nop nop nop nop inc %rdx mov $0x5152535455565758, %rax movq %rax, (%r11) nop nop and %r11, %r11 // Store mov $0x7c597c00000008a5, %r12 nop nop nop nop sub $48753, %r8 movb $0x51, (%r12) nop nop nop nop and %rdx, %rdx // Store mov $0x6775780000000ea5, %r11 nop add $32760, %r12 mov $0x5152535455565758, %r10 movq %r10, %xmm7 movups %xmm7, (%r11) nop sub %r12, %r12 // Store mov $0x7c597c00000008a5, %r11 nop nop nop nop cmp %r8, %r8 movb $0x51, (%r11) xor $55906, %r11 // Store mov $0x6d4b2a0000000d25, %r10 nop nop nop dec %rdx movb $0x51, (%r10) nop nop nop nop sub %rsi, %rsi // Store lea addresses_UC+0x15145, %r11 nop nop nop nop nop add %r8, %r8 mov $0x5152535455565758, %rsi movq %rsi, %xmm5 vmovups %ymm5, (%r11) xor $53468, %r12 // Load mov $0x4fb69f000000038d, %r12 nop nop nop cmp %rdx, %rdx movb (%r12), %r8b nop inc %r10 // Faulty Load mov $0x7c597c00000008a5, %r8 nop nop nop and %r12, %r12 movups (%r8), %xmm5 vpextrq $1, %xmm5, %r10 lea oracles, %r8 and $0xff, %r10 shlq $12, %r10 mov (%r8,%r10,1), %r10 pop %rsi pop %rdx pop %rax pop %r8 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'00': 235} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
21.42328
704
0.640652
867998658e80250a52ca515a7d13373a1c4ffb78
1,131
asm
Assembly
text/maps/bike_shop.asm
etdv-thevoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
9
2020-07-12T19:44:21.000Z
2022-03-03T23:32:40.000Z
text/maps/BikeShop.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
text/maps/BikeShop.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2021-03-28T18:33:43.000Z
2021-05-06T13:12:09.000Z
_BikeShopText_1d810:: text "Hi! Welcome to" line "our BIKE SHOP." para "Have we got just" line "the BIKE for you!" prompt _BikeShopText_1d815:: text "It's a cool BIKE!" line "Do you want it?" done _BikeShopCantAffordText:: text "Sorry! You can't" line "afford it!" prompt _BikeShopText_1d81f:: text "Oh, that's..." para "A BIKE VOUCHER!" para "OK! Here you go!" prompt _BikeShopText_1d824:: text "<PLAYER> exchanged" line "the BIKE VOUCHER" cont "for a BICYCLE.@@" _BikeShopComeAgainText:: text "Come back again" line "some time!" done _BikeShopText_1d82f:: text "How do you like" line "your new BICYCLE?" para "You can take it" line "on CYCLING ROAD" cont "and in caves!" done _BikeShopText_1d834:: text "You better make" line "room for this!" done _BikeShopText_1d843:: text "A plain city BIKE" line "is good enough" cont "for me!" para "You can't put a" line "shopping basket" cont "on an MTB!" done _BikeShopText_1d85c:: text "These BIKEs are" line "cool, but they're" cont "way expensive!" done _BikeShopText_1d861:: text "Wow. Your BIKE is" line "really cool!" done
15.929577
26
0.697613
df0ccb40cfed8e9a0c183970cbab162125af43d1
609
asm
Assembly
boot loader/disk_io.asm
Tomer2003/ro-os
843b0258e8d14de7cc24f9ae9bfa19fe02ccd00d
[ "MIT" ]
null
null
null
boot loader/disk_io.asm
Tomer2003/ro-os
843b0258e8d14de7cc24f9ae9bfa19fe02ccd00d
[ "MIT" ]
null
null
null
boot loader/disk_io.asm
Tomer2003/ro-os
843b0258e8d14de7cc24f9ae9bfa19fe02ccd00d
[ "MIT" ]
null
null
null
[bits 16] ;DISK IO in real mode 16 bit with bios interrupts ;The function load data from device storage to memory location ; param bx - memory address to load ; param al - how many sectors to read ; param dl - index of storage device to read from ; param dh - index of head to read from ; param ch - index of cylinder to read from ; param cl - index of sector to read from disk_load: pusha push ax mov ah, 0x02 int 0x13 jc disk_error pop bx cmp bl, al jne disk_error popa ret disk_error: ;mov bx, DISK_ERROR_MSG ;call print_string jmp $ DISK_ERROR_MSG: db "Disk read error!", 13, 10, 0
17.911765
62
0.720854
2cf373ba7785566ac982beec624a5fa09c8adbee
445
asm
Assembly
programs/oeis/168/A168301.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/168/A168301.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/168/A168301.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A168301: a(n) = (6*n + 3*(-1)^n - 1)/2. ; 1,7,7,13,13,19,19,25,25,31,31,37,37,43,43,49,49,55,55,61,61,67,67,73,73,79,79,85,85,91,91,97,97,103,103,109,109,115,115,121,121,127,127,133,133,139,139,145,145,151,151,157,157,163,163,169,169,175,175,181,181,187,187,193,193,199,199,205,205,211,211,217,217,223,223,229,229,235,235,241,241,247,247,253,253,259,259,265,265,271,271,277,277,283,283,289,289,295,295,301 add $0,1 div $0,2 mul $0,6 add $0,1
55.625
365
0.674157
a761622648c4a420a3b996e1b7a44a444bc41949
371
asm
Assembly
oeis/052/A052643.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/052/A052643.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/052/A052643.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A052643: E.g.f. (1+x-x^2)^2/(1-x)^2. ; Submitted by Jon Maiga ; 1,4,12,36,168,960,6480,50400,443520,4354560,47174400,558835200,7185024000,99632332800,1482030950400,23538138624000,397533007872000,7113748561920000,134449847820288000,2676192208994304000 seq $0,52572 ; E.g.f. (1+2x-2x^2)/(1-x)^2. mov $2,$0 mod $2,4 mov $3,$0 lpb $2 div $2,$0 mov $3,12 lpe mov $0,$3
26.5
188
0.708895
d804dc45e1f7d00e2ee18b6924b8e04b171e72df
666
asm
Assembly
oeis/158/A158954.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/158/A158954.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/158/A158954.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A158954: Numerator of Hermite(n, 1/4). ; Submitted by Jamie Morken(s2) ; 1,1,-7,-23,145,881,-4919,-47207,228257,3249505,-13184999,-273145399,887134513,27109092817,-65152896535,-3101371292039,4716976292161,401692501673153,-239816274060743,-58083536514994775,-21631462857761839,9271734379541402161,12905820139645391113,-1618919430659641389223,-3993590336354393354015,306838940350296753376801,1105557007621175424179801,-62716942585240549278194807,-301517256231414440901031823,13747077882862468597414604945,83699081328550618886453987881,-3215599610558441844493051198919 mul $0,2 mov $1,1 lpb $0 sub $0,2 sub $1,$2 add $2,$1 mul $2,4 mul $2,$0 lpe mov $0,$1
44.4
494
0.816817
2b08a14fe241a8de62354736d43275fdc243ecbe
559
asm
Assembly
programs/oeis/112/A112072.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/112/A112072.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/112/A112072.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A112072: Odd numbers n for which 3 is the smallest i (>= 1) with Jacobi symbol J(i,n) getting either a value 0 or -1. ; 7,9,15,17,31,33,39,41,55,57,63,65,79,81,87,89,103,105,111,113,127,129,135,137,151,153,159,161,175,177,183,185,199,201,207,209,223,225,231,233,247,249,255,257,271,273,279,281,295,297,303,305,319,321,327 mov $2,3 mov $3,2 mov $4,$0 add $0,3 lpb $0,1 trn $0,2 add $2,2 mul $3,2 mov $1,$3 mov $3,4 trn $3,$1 add $2,$3 trn $1,$2 lpe sub $2,3 mov $0,$2 mul $0,2 add $1,3 add $1,$0 lpb $4,1 add $1,2 sub $4,1 lpe sub $1,12
19.964286
203
0.62254
41dd317c4ea4ad97ec1c220eb307e0f9e22f9d77
309
asm
Assembly
programs/oeis/021/A021228.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/021/A021228.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/021/A021228.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A021228: Decimal expansion of 1/224. ; 0,0,4,4,6,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5 add $0,1 mov $1,10 pow $1,$0 mul $1,3 div $1,672 mod $1,10 mov $0,$1
28.090909
199
0.540453
03213d0091287b9786710a3a285d328a5ca99d3a
8,397
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0_notsx.log_3522_904.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0_notsx.log_3522_904.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0_notsx.log_3522_904.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 %r12 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x387a, %rsi lea addresses_WC_ht+0x3f7a, %rdi nop nop nop sub $4718, %rbx mov $36, %rcx rep movsw nop nop nop xor $63497, %r11 lea addresses_A_ht+0x1b69e, %rsi nop nop nop nop sub $32247, %rcx mov $0x6162636465666768, %rbx movq %rbx, (%rsi) nop nop nop nop dec %rbx lea addresses_WT_ht+0x1323a, %r12 nop nop cmp %rdx, %rdx vmovups (%r12), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $0, %xmm2, %rcx nop nop xor $6744, %rbx lea addresses_WT_ht+0xa4ea, %rsi lea addresses_D_ht+0xe77a, %rdi nop nop nop nop xor %r9, %r9 mov $46, %rcx rep movsw nop nop nop dec %rsi lea addresses_WC_ht+0xe47a, %rsi lea addresses_UC_ht+0xbb7a, %rdi nop nop nop nop nop and %rbx, %rbx mov $102, %rcx rep movsl and $12005, %rdi lea addresses_normal_ht+0x537a, %rdi and %r11, %r11 mov (%rdi), %r9d nop nop inc %rsi lea addresses_WT_ht+0x1af1a, %rdi clflush (%rdi) nop nop sub %r12, %r12 mov (%rdi), %ecx nop nop nop and $59545, %rdi lea addresses_A_ht+0xab7a, %r12 nop xor $53951, %r11 mov (%r12), %rsi and $55860, %r11 lea addresses_normal_ht+0xfbbc, %rsi lea addresses_D_ht+0x1e0a, %rdi clflush (%rdi) nop nop sub $65340, %r11 mov $25, %rcx rep movsb nop nop nop inc %rcx lea addresses_WC_ht+0x1ca48, %rcx nop nop nop nop nop cmp $39560, %rbx vmovups (%rcx), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $0, %xmm6, %rdi nop nop nop nop nop dec %r9 lea addresses_UC_ht+0xa162, %rbx cmp $53795, %rcx movb (%rbx), %r11b nop nop sub %rdx, %rdx lea addresses_WC_ht+0x18d7a, %rcx nop nop nop nop nop cmp $43417, %rdx mov (%rcx), %r9 nop add %r9, %r9 lea addresses_A_ht+0x12724, %rsi lea addresses_WC_ht+0x10726, %rdi nop nop nop nop nop add $882, %rbx mov $109, %rcx rep movsl nop nop nop cmp %rdx, %rdx lea addresses_A_ht+0xee7a, %r11 nop nop nop nop cmp %rsi, %rsi movups (%r11), %xmm0 vpextrq $0, %xmm0, %rcx nop nop add %r11, %r11 lea addresses_WT_ht+0x27a, %rsi lea addresses_WC_ht+0x1b0c6, %rdi nop nop nop and $55269, %rbx mov $115, %rcx rep movsb nop cmp $9208, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %r8 push %rax push %rbp push %rdi // Store lea addresses_RW+0x739a, %r8 nop nop nop nop nop add %rbp, %rbp mov $0x5152535455565758, %r12 movq %r12, %xmm0 vmovaps %ymm0, (%r8) inc %r11 // Store lea addresses_US+0x16c5d, %rbp nop nop nop nop and $28061, %rax movb $0x51, (%rbp) nop nop nop xor $3114, %rax // Faulty Load mov $0x2f7f73000000077a, %r14 nop nop nop cmp $56895, %r8 movups (%r14), %xmm7 vpextrq $0, %xmm7, %rax lea oracles, %r12 and $0xff, %rax shlq $12, %rax mov (%r12,%rax,1), %rax pop %rdi pop %rbp pop %rax pop %r8 pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': True, 'size': 32, 'NT': True, 'same': False, 'congruent': 5}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 0}} [Faulty Load] {'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 2}} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': True}} {'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 1}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 3}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}} {'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}} {'00': 3522} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
31.806818
2,999
0.655949
8e182b962d1baf6a99255d84bd1e005668e5605f
2,966
asm
Assembly
exampl02/dir/mdir.asm
AlexRogalskiy/Masm
d39498878f140696b299c76436f209156961429e
[ "MIT" ]
null
null
null
exampl02/dir/mdir.asm
AlexRogalskiy/Masm
d39498878f140696b299c76436f209156961429e
[ "MIT" ]
null
null
null
exampl02/dir/mdir.asm
AlexRogalskiy/Masm
d39498878f140696b299c76436f209156961429e
[ "MIT" ]
null
null
null
; ######################################################################### ; ------------------------------------------------------------------- ; This program uses the FindFirstFile() FindNextFile() API functions ; to perform a directory list search which is displayed at the console. ; ; This file should be built with the "Console assemble & link" option ; on the project menu. ; ------------------------------------------------------------------- .386 .model flat, stdcall option casemap :none ; case sensitive ; ######################################################################### include \masm32\include\windows.inc include \masm32\include\user32.inc include \masm32\include\kernel32.inc include \masm32\include\masm32.inc includelib \masm32\lib\user32.lib includelib \masm32\lib\kernel32.lib includelib \masm32\lib\masm32.lib Main PROTO ; ######################################################################### .data lf db 13,10,0 wCard db "*.*",0 notfound db "File not found",13,10,0 spc db " ",0 bytes db " bytes",0 fMtStrinG db "%lu",0 ; ######################################################################### .code start: invoke Main invoke ExitProcess,0 ; ######################################################################### Main proc LOCAL hSearch :DWORD ; search handle LOCAL sizeBuffer[16]:BYTE LOCAL fBuffer[256]:BYTE ; file name buffer LOCAL clBuffer[128]:BYTE ; command line buffer LOCAL wfd :WIN32_FIND_DATA invoke GetCL,1,ADDR clBuffer ; get arg 1 .if eax != 1 ; if no arg mov ecx, LENGTHOF wCard ; copy *.* into mov esi, offset wCard ; clBuffer lea edi, clBuffer rep movsb .endif invoke FindFirstFile,ADDR clBuffer,ADDR wfd .if eax == INVALID_HANDLE_VALUE invoke StdOut,ADDR notfound ; display "not found" message jmp TheEnd .else mov hSearch, eax .endif invoke StdOut,ADDR wfd.cFileName mov al, [wfd.cFileName] cmp al, "." je nxt invoke StdOut,ADDR spc invoke wsprintf,ADDR sizeBuffer,ADDR fMtStrinG,wfd.nFileSizeLow invoke StdOut,ADDR sizeBuffer invoke StdOut,ADDR bytes nxt: invoke StdOut,ADDR lf @@: invoke FindNextFile,hSearch,ADDR wfd cmp eax, 0 je lpOut invoke StdOut,ADDR wfd.cFileName mov al, [wfd.cFileName] cmp al, "." je nxt1 invoke StdOut,ADDR spc invoke wsprintf,ADDR sizeBuffer,ADDR fMtStrinG,wfd.nFileSizeLow invoke StdOut,ADDR sizeBuffer invoke StdOut,ADDR bytes nxt1: invoke StdOut,ADDR lf jmp @B lpOut: invoke FindClose,hSearch TheEnd: ret Main endp ; ######################################################################### end start
26.963636
75
0.49764
9c3e7034ac9b9e1540d0ccadc21314949544027e
33,434
asm
Assembly
part3/elipse_table.asm
c64scene-ar/64k-ought-to-be-enough
d97997ecd5ddb598bd58fa61da76e4b0c10c5bc1
[ "MIT" ]
4
2018-09-27T06:44:33.000Z
2019-03-16T13:37:01.000Z
part3/elipse_table.asm
c64scene-ar/64k-ought-to-be-enough
d97997ecd5ddb598bd58fa61da76e4b0c10c5bc1
[ "MIT" ]
null
null
null
part3/elipse_table.asm
c64scene-ar/64k-ought-to-be-enough
d97997ecd5ddb598bd58fa61da76e4b0c10c5bc1
[ "MIT" ]
2
2018-10-16T01:49:09.000Z
2020-08-11T12:35:55.000Z
;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-; ; Autogenerated with generate_elipse.py ; DO NOT MODIFY ;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-; elipse_coords_for_radius_0: dw 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 dw 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 dw 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 dw 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 dw 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 dw 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 dw 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 dw 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 elipse_coords_for_radius_1: dw 0xff00, 0xff00, 0xff00, 0xff00, 0xff00, 0xff00, 0xff00, 0xff00 dw 0xff00, 0xff00, 0xff00, 0xff00, 0xff00, 0xff00, 0xff00, 0xff00 dw 0xff00, 0xff01, 0xff01, 0xff01, 0xff01, 0xff01, 0xff01, 0xff01 dw 0xff01, 0xff01, 0xff01, 0xff01, 0xff01, 0xff01, 0xff01, 0xff01 dw 0xff01, 0xff01, 0xff01, 0xff01, 0xff01, 0xff01, 0xff01, 0xff01 dw 0xff01, 0xff01, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001 dw 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001 dw 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001 elipse_coords_for_radius_2: dw 0xfe00, 0xfe00, 0xfe00, 0xfe00, 0xfe00, 0xfe00, 0xfe00, 0xfe00 dw 0xfe01, 0xfe01, 0xfe01, 0xfe01, 0xfe01, 0xfe01, 0xfe01, 0xfe01 dw 0xfe01, 0xfe01, 0xfe01, 0xfe01, 0xfe01, 0xfe01, 0xfe01, 0xfe01 dw 0xfe01, 0xfe01, 0xfe01, 0xfe02, 0xfe02, 0xff02, 0xff02, 0xff02 dw 0xff02, 0xff02, 0xff02, 0xff02, 0xff02, 0xff02, 0xff02, 0xff02 dw 0xff02, 0xff02, 0xff02, 0xff02, 0xff02, 0xff02, 0xff02, 0xff02 dw 0xff02, 0xff02, 0xff02, 0xff02, 0xff02, 0x0002, 0x0002, 0x0002 dw 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002 elipse_coords_for_radius_3: dw 0xfd00, 0xfd00, 0xfd00, 0xfd00, 0xfd00, 0xfd01, 0xfd01, 0xfd01 dw 0xfd01, 0xfd01, 0xfd01, 0xfd01, 0xfd01, 0xfd01, 0xfd01, 0xfd01 dw 0xfd01, 0xfd02, 0xfd02, 0xfd02, 0xfd02, 0xfd02, 0xfd02, 0xfe02 dw 0xfe02, 0xfe02, 0xfe02, 0xfe02, 0xfe02, 0xfe02, 0xfe02, 0xfe03 dw 0xfe03, 0xfe03, 0xfe03, 0xfe03, 0xfe03, 0xfe03, 0xfe03, 0xfe03 dw 0xfe03, 0xfe03, 0xff03, 0xff03, 0xff03, 0xff03, 0xff03, 0xff03 dw 0xff03, 0xff03, 0xff03, 0xff03, 0xff03, 0xff03, 0xff04, 0xff04 dw 0xff04, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004 elipse_coords_for_radius_4: dw 0xfc00, 0xfc00, 0xfc00, 0xfc00, 0xfc01, 0xfc01, 0xfc01, 0xfc01 dw 0xfc01, 0xfc01, 0xfc01, 0xfc01, 0xfc02, 0xfc02, 0xfc02, 0xfc02 dw 0xfc02, 0xfc02, 0xfc02, 0xfc02, 0xfd02, 0xfd02, 0xfd03, 0xfd03 dw 0xfd03, 0xfd03, 0xfd03, 0xfd03, 0xfd03, 0xfd03, 0xfd03, 0xfd03 dw 0xfd03, 0xfd04, 0xfd04, 0xfd04, 0xfe04, 0xfe04, 0xfe04, 0xfe04 dw 0xfe04, 0xfe04, 0xfe04, 0xfe04, 0xfe04, 0xfe04, 0xfe04, 0xfe04 dw 0xff04, 0xff05, 0xff05, 0xff05, 0xff05, 0xff05, 0xff05, 0xff05 dw 0xff05, 0xff05, 0x0005, 0x0005, 0x0005, 0x0005, 0x0005, 0x0005 elipse_coords_for_radius_5: dw 0xfb00, 0xfb00, 0xfb00, 0xfb01, 0xfb01, 0xfb01, 0xfb01, 0xfb01 dw 0xfb01, 0xfb01, 0xfb02, 0xfb02, 0xfb02, 0xfb02, 0xfb02, 0xfb02 dw 0xfb02, 0xfb03, 0xfc03, 0xfc03, 0xfc03, 0xfc03, 0xfc03, 0xfc03 dw 0xfc03, 0xfc04, 0xfc04, 0xfc04, 0xfc04, 0xfc04, 0xfc04, 0xfc04 dw 0xfd04, 0xfd04, 0xfd05, 0xfd05, 0xfd05, 0xfd05, 0xfd05, 0xfd05 dw 0xfd05, 0xfd05, 0xfe05, 0xfe05, 0xfe05, 0xfe05, 0xfe05, 0xfe06 dw 0xfe06, 0xfe06, 0xfe06, 0xff06, 0xff06, 0xff06, 0xff06, 0xff06 dw 0xff06, 0xff06, 0xff06, 0x0006, 0x0006, 0x0006, 0x0006, 0x0006 elipse_coords_for_radius_6: dw 0xfa00, 0xfa00, 0xfa01, 0xfa01, 0xfa01, 0xfa01, 0xfa01, 0xfa01 dw 0xfa02, 0xfa02, 0xfa02, 0xfa02, 0xfa02, 0xfa02, 0xfa03, 0xfa03 dw 0xfb03, 0xfb03, 0xfb03, 0xfb03, 0xfb04, 0xfb04, 0xfb04, 0xfb04 dw 0xfb04, 0xfb04, 0xfb04, 0xfb05, 0xfb05, 0xfc05, 0xfc05, 0xfc05 dw 0xfc05, 0xfc05, 0xfc05, 0xfc06, 0xfc06, 0xfc06, 0xfd06, 0xfd06 dw 0xfd06, 0xfd06, 0xfd06, 0xfd06, 0xfd06, 0xfd07, 0xfe07, 0xfe07 dw 0xfe07, 0xfe07, 0xfe07, 0xfe07, 0xfe07, 0xff07, 0xff07, 0xff07 dw 0xff07, 0xff07, 0xff07, 0xff07, 0x0007, 0x0007, 0x0007, 0x0007 elipse_coords_for_radius_7: dw 0xf900, 0xf900, 0xf901, 0xf901, 0xf901, 0xf901, 0xf901, 0xf902 dw 0xf902, 0xf902, 0xf902, 0xf902, 0xf903, 0xf903, 0xf903, 0xfa03 dw 0xfa03, 0xfa04, 0xfa04, 0xfa04, 0xfa04, 0xfa04, 0xfa04, 0xfa05 dw 0xfa05, 0xfa05, 0xfa05, 0xfb05, 0xfb05, 0xfb06, 0xfb06, 0xfb06 dw 0xfb06, 0xfb06, 0xfb06, 0xfc06, 0xfc07, 0xfc07, 0xfc07, 0xfc07 dw 0xfc07, 0xfc07, 0xfd07, 0xfd07, 0xfd08, 0xfd08, 0xfd08, 0xfd08 dw 0xfd08, 0xfe08, 0xfe08, 0xfe08, 0xfe08, 0xfe08, 0xfe08, 0xff08 dw 0xff08, 0xff08, 0xff08, 0xff08, 0xff08, 0x0008, 0x0008, 0x0008 elipse_coords_for_radius_8: dw 0xf800, 0xf800, 0xf801, 0xf801, 0xf801, 0xf801, 0xf802, 0xf802 dw 0xf802, 0xf802, 0xf803, 0xf803, 0xf803, 0xf803, 0xf903, 0xf904 dw 0xf904, 0xf904, 0xf904, 0xf905, 0xf905, 0xf905, 0xf905, 0xf905 dw 0xf906, 0xfa06, 0xfa06, 0xfa06, 0xfa06, 0xfa06, 0xfa07, 0xfa07 dw 0xfa07, 0xfb07, 0xfb07, 0xfb07, 0xfb08, 0xfb08, 0xfb08, 0xfc08 dw 0xfc08, 0xfc08, 0xfc08, 0xfc08, 0xfc09, 0xfd09, 0xfd09, 0xfd09 dw 0xfd09, 0xfd09, 0xfd09, 0xfe09, 0xfe09, 0xfe09, 0xfe09, 0xfe09 dw 0xff09, 0xff09, 0xff0a, 0xff0a, 0xff0a, 0x000a, 0x000a, 0x000a elipse_coords_for_radius_9: dw 0xf700, 0xf701, 0xf701, 0xf701, 0xf701, 0xf702, 0xf702, 0xf702 dw 0xf702, 0xf703, 0xf703, 0xf703, 0xf703, 0xf804, 0xf804, 0xf804 dw 0xf804, 0xf805, 0xf805, 0xf805, 0xf805, 0xf806, 0xf806, 0xf906 dw 0xf906, 0xf906, 0xf907, 0xf907, 0xf907, 0xf907, 0xf907, 0xfa08 dw 0xfa08, 0xfa08, 0xfa08, 0xfa08, 0xfa09, 0xfb09, 0xfb09, 0xfb09 dw 0xfb09, 0xfb09, 0xfc09, 0xfc0a, 0xfc0a, 0xfc0a, 0xfc0a, 0xfd0a dw 0xfd0a, 0xfd0a, 0xfd0a, 0xfd0a, 0xfe0a, 0xfe0a, 0xfe0b, 0xfe0b dw 0xfe0b, 0xff0b, 0xff0b, 0xff0b, 0xff0b, 0x000b, 0x000b, 0x000b elipse_coords_for_radius_10: dw 0xf600, 0xf601, 0xf601, 0xf601, 0xf601, 0xf602, 0xf602, 0xf602 dw 0xf603, 0xf603, 0xf603, 0xf603, 0xf704, 0xf704, 0xf704, 0xf705 dw 0xf705, 0xf705, 0xf705, 0xf706, 0xf706, 0xf706, 0xf806, 0xf807 dw 0xf807, 0xf807, 0xf807, 0xf808, 0xf808, 0xf908, 0xf908, 0xf908 dw 0xf909, 0xf909, 0xf909, 0xfa09, 0xfa09, 0xfa0a, 0xfa0a, 0xfa0a dw 0xfb0a, 0xfb0a, 0xfb0a, 0xfb0b, 0xfc0b, 0xfc0b, 0xfc0b, 0xfc0b dw 0xfc0b, 0xfd0b, 0xfd0b, 0xfd0b, 0xfd0c, 0xfe0c, 0xfe0c, 0xfe0c dw 0xfe0c, 0xff0c, 0xff0c, 0xff0c, 0xff0c, 0x000c, 0x000c, 0x000c elipse_coords_for_radius_11: dw 0xf500, 0xf501, 0xf501, 0xf501, 0xf502, 0xf502, 0xf502, 0xf503 dw 0xf503, 0xf503, 0xf504, 0xf504, 0xf604, 0xf604, 0xf605, 0xf605 dw 0xf605, 0xf606, 0xf606, 0xf606, 0xf607, 0xf707, 0xf707, 0xf707 dw 0xf708, 0xf708, 0xf708, 0xf708, 0xf809, 0xf809, 0xf809, 0xf809 dw 0xf80a, 0xf90a, 0xf90a, 0xf90a, 0xf90a, 0xf90b, 0xfa0b, 0xfa0b dw 0xfa0b, 0xfa0b, 0xfb0b, 0xfb0c, 0xfb0c, 0xfb0c, 0xfc0c, 0xfc0c dw 0xfc0c, 0xfc0c, 0xfd0d, 0xfd0d, 0xfd0d, 0xfd0d, 0xfe0d, 0xfe0d dw 0xfe0d, 0xfe0d, 0xff0d, 0xff0d, 0xff0d, 0xff0d, 0x000d, 0x000d elipse_coords_for_radius_12: dw 0xf400, 0xf401, 0xf401, 0xf401, 0xf402, 0xf402, 0xf402, 0xf403 dw 0xf403, 0xf403, 0xf404, 0xf504, 0xf505, 0xf505, 0xf505, 0xf506 dw 0xf506, 0xf506, 0xf506, 0xf507, 0xf607, 0xf607, 0xf608, 0xf608 dw 0xf608, 0xf609, 0xf709, 0xf709, 0xf709, 0xf70a, 0xf70a, 0xf80a dw 0xf80a, 0xf80b, 0xf80b, 0xf80b, 0xf90b, 0xf90c, 0xf90c, 0xf90c dw 0xfa0c, 0xfa0c, 0xfa0d, 0xfa0d, 0xfb0d, 0xfb0d, 0xfb0d, 0xfb0d dw 0xfc0d, 0xfc0e, 0xfc0e, 0xfd0e, 0xfd0e, 0xfd0e, 0xfd0e, 0xfe0e dw 0xfe0e, 0xfe0e, 0xff0e, 0xff0e, 0xff0e, 0xff0e, 0x000e, 0x000e elipse_coords_for_radius_13: dw 0xf300, 0xf301, 0xf301, 0xf302, 0xf302, 0xf302, 0xf303, 0xf303 dw 0xf303, 0xf304, 0xf304, 0xf405, 0xf405, 0xf405, 0xf406, 0xf406 dw 0xf406, 0xf407, 0xf407, 0xf507, 0xf508, 0xf508, 0xf508, 0xf509 dw 0xf509, 0xf609, 0xf60a, 0xf60a, 0xf60a, 0xf60a, 0xf70b, 0xf70b dw 0xf70b, 0xf70c, 0xf80c, 0xf80c, 0xf80c, 0xf80d, 0xf90d, 0xf90d dw 0xf90d, 0xf90d, 0xfa0e, 0xfa0e, 0xfa0e, 0xfa0e, 0xfb0e, 0xfb0e dw 0xfb0f, 0xfc0f, 0xfc0f, 0xfc0f, 0xfd0f, 0xfd0f, 0xfd0f, 0xfd0f dw 0xfe0f, 0xfe0f, 0xfe0f, 0xff10, 0xff10, 0xff10, 0x0010, 0x0010 elipse_coords_for_radius_14: dw 0xf200, 0xf201, 0xf201, 0xf202, 0xf202, 0xf202, 0xf203, 0xf203 dw 0xf204, 0xf204, 0xf304, 0xf305, 0xf305, 0xf306, 0xf306, 0xf306 dw 0xf307, 0xf307, 0xf308, 0xf408, 0xf408, 0xf409, 0xf409, 0xf409 dw 0xf50a, 0xf50a, 0xf50a, 0xf50b, 0xf50b, 0xf60b, 0xf60c, 0xf60c dw 0xf60c, 0xf70c, 0xf70d, 0xf70d, 0xf70d, 0xf80d, 0xf80e, 0xf80e dw 0xf90e, 0xf90e, 0xf90f, 0xf90f, 0xfa0f, 0xfa0f, 0xfa0f, 0xfb10 dw 0xfb10, 0xfb10, 0xfc10, 0xfc10, 0xfc10, 0xfd10, 0xfd10, 0xfd10 dw 0xfe11, 0xfe11, 0xfe11, 0xff11, 0xff11, 0xff11, 0x0011, 0x0011 elipse_coords_for_radius_15: dw 0xf100, 0xf101, 0xf101, 0xf102, 0xf102, 0xf103, 0xf103, 0xf104 dw 0xf104, 0xf104, 0xf205, 0xf205, 0xf206, 0xf206, 0xf206, 0xf207 dw 0xf207, 0xf208, 0xf308, 0xf308, 0xf309, 0xf309, 0xf30a, 0xf40a dw 0xf40a, 0xf40b, 0xf40b, 0xf40b, 0xf50c, 0xf50c, 0xf50c, 0xf50d dw 0xf60d, 0xf60d, 0xf60e, 0xf60e, 0xf70e, 0xf70e, 0xf70f, 0xf80f dw 0xf80f, 0xf80f, 0xf910, 0xf910, 0xf910, 0xfa10, 0xfa10, 0xfa11 dw 0xfb11, 0xfb11, 0xfb11, 0xfc11, 0xfc11, 0xfc11, 0xfd12, 0xfd12 dw 0xfd12, 0xfe12, 0xfe12, 0xff12, 0xff12, 0xff12, 0x0012, 0x0012 elipse_coords_for_radius_16: dw 0xf000, 0xf001, 0xf001, 0xf002, 0xf002, 0xf003, 0xf003, 0xf004 dw 0xf004, 0xf005, 0xf105, 0xf106, 0xf106, 0xf106, 0xf107, 0xf107 dw 0xf108, 0xf208, 0xf209, 0xf209, 0xf209, 0xf20a, 0xf20a, 0xf30b dw 0xf30b, 0xf30b, 0xf30c, 0xf40c, 0xf40d, 0xf40d, 0xf40d, 0xf50e dw 0xf50e, 0xf50e, 0xf60f, 0xf60f, 0xf60f, 0xf60f, 0xf710, 0xf710 dw 0xf710, 0xf810, 0xf811, 0xf811, 0xf911, 0xf911, 0xfa12, 0xfa12 dw 0xfa12, 0xfb12, 0xfb12, 0xfb12, 0xfc13, 0xfc13, 0xfc13, 0xfd13 dw 0xfd13, 0xfe13, 0xfe13, 0xfe13, 0xff13, 0xff13, 0x0013, 0x0013 elipse_coords_for_radius_17: dw 0xef01, 0xef01, 0xef02, 0xef02, 0xef02, 0xef03, 0xef03, 0xef04 dw 0xef04, 0xf005, 0xf005, 0xf006, 0xf006, 0xf007, 0xf007, 0xf008 dw 0xf008, 0xf109, 0xf109, 0xf10a, 0xf10a, 0xf10a, 0xf20b, 0xf20b dw 0xf20c, 0xf20c, 0xf30d, 0xf30d, 0xf30d, 0xf30e, 0xf40e, 0xf40e dw 0xf40f, 0xf50f, 0xf50f, 0xf510, 0xf610, 0xf610, 0xf611, 0xf711 dw 0xf711, 0xf711, 0xf812, 0xf812, 0xf812, 0xf912, 0xf913, 0xf913 dw 0xfa13, 0xfa13, 0xfb13, 0xfb14, 0xfb14, 0xfc14, 0xfc14, 0xfd14 dw 0xfd14, 0xfe14, 0xfe14, 0xfe14, 0xff14, 0xff14, 0x0014, 0x0014 elipse_coords_for_radius_18: dw 0xee01, 0xee01, 0xee02, 0xee02, 0xee03, 0xee03, 0xee04, 0xee04 dw 0xee05, 0xef05, 0xef06, 0xef06, 0xef07, 0xef07, 0xef08, 0xef08 dw 0xf009, 0xf009, 0xf00a, 0xf00a, 0xf00b, 0xf10b, 0xf10c, 0xf10c dw 0xf10c, 0xf20d, 0xf20d, 0xf20e, 0xf20e, 0xf30f, 0xf30f, 0xf30f dw 0xf410, 0xf410, 0xf410, 0xf511, 0xf511, 0xf511, 0xf612, 0xf612 dw 0xf612, 0xf713, 0xf713, 0xf813, 0xf813, 0xf814, 0xf914, 0xf914 dw 0xfa14, 0xfa14, 0xfa15, 0xfb15, 0xfb15, 0xfc15, 0xfc15, 0xfc15 dw 0xfd15, 0xfd15, 0xfe15, 0xfe15, 0xff16, 0xff16, 0x0016, 0x0016 elipse_coords_for_radius_19: dw 0xed01, 0xed01, 0xed02, 0xed02, 0xed03, 0xed03, 0xed04, 0xed04 dw 0xed05, 0xee06, 0xee06, 0xee07, 0xee07, 0xee08, 0xee08, 0xee09 dw 0xef09, 0xef0a, 0xef0a, 0xef0b, 0xef0b, 0xf00c, 0xf00c, 0xf00d dw 0xf00d, 0xf10e, 0xf10e, 0xf10e, 0xf20f, 0xf20f, 0xf210, 0xf310 dw 0xf311, 0xf311, 0xf411, 0xf412, 0xf412, 0xf512, 0xf513, 0xf513 dw 0xf613, 0xf614, 0xf714, 0xf714, 0xf714, 0xf815, 0xf815, 0xf915 dw 0xf915, 0xfa15, 0xfa16, 0xfa16, 0xfb16, 0xfb16, 0xfc16, 0xfc16 dw 0xfd16, 0xfd17, 0xfe17, 0xfe17, 0xff17, 0xff17, 0x0017, 0x0017 elipse_coords_for_radius_20: dw 0xec01, 0xec01, 0xec02, 0xec02, 0xec03, 0xec04, 0xec04, 0xec05 dw 0xec05, 0xed06, 0xed06, 0xed07, 0xed08, 0xed08, 0xed09, 0xee09 dw 0xee0a, 0xee0a, 0xee0b, 0xee0b, 0xef0c, 0xef0c, 0xef0d, 0xef0d dw 0xf00e, 0xf00e, 0xf00f, 0xf10f, 0xf110, 0xf110, 0xf211, 0xf211 dw 0xf211, 0xf312, 0xf312, 0xf313, 0xf413, 0xf413, 0xf414, 0xf514 dw 0xf514, 0xf615, 0xf615, 0xf715, 0xf715, 0xf716, 0xf816, 0xf816 dw 0xf916, 0xf917, 0xfa17, 0xfa17, 0xfb17, 0xfb17, 0xfc17, 0xfc18 dw 0xfd18, 0xfd18, 0xfe18, 0xfe18, 0xff18, 0xff18, 0x0018, 0x0018 elipse_coords_for_radius_21: dw 0xeb01, 0xeb01, 0xeb02, 0xeb02, 0xeb03, 0xeb04, 0xeb04, 0xeb05 dw 0xec06, 0xec06, 0xec07, 0xec07, 0xec08, 0xec08, 0xec09, 0xed0a dw 0xed0a, 0xed0b, 0xed0b, 0xed0c, 0xee0c, 0xee0d, 0xee0d, 0xef0e dw 0xef0f, 0xef0f, 0xef10, 0xf010, 0xf010, 0xf011, 0xf111, 0xf112 dw 0xf212, 0xf213, 0xf213, 0xf313, 0xf314, 0xf314, 0xf415, 0xf415 dw 0xf515, 0xf516, 0xf616, 0xf616, 0xf717, 0xf717, 0xf717, 0xf817 dw 0xf818, 0xf918, 0xf918, 0xfa18, 0xfa18, 0xfb18, 0xfb19, 0xfc19 dw 0xfc19, 0xfd19, 0xfd19, 0xfe19, 0xfe19, 0xff19, 0xff19, 0x0019 elipse_coords_for_radius_22: dw 0xea01, 0xea01, 0xea02, 0xea03, 0xea03, 0xea04, 0xea05, 0xea05 dw 0xeb06, 0xeb06, 0xeb07, 0xeb08, 0xeb08, 0xeb09, 0xeb0a, 0xec0a dw 0xec0b, 0xec0b, 0xec0c, 0xed0c, 0xed0d, 0xed0e, 0xed0e, 0xee0f dw 0xee0f, 0xee10, 0xef10, 0xef11, 0xef11, 0xf012, 0xf012, 0xf013 dw 0xf113, 0xf114, 0xf214, 0xf214, 0xf215, 0xf315, 0xf316, 0xf416 dw 0xf416, 0xf517, 0xf517, 0xf617, 0xf618, 0xf718, 0xf718, 0xf818 dw 0xf819, 0xf919, 0xf919, 0xfa19, 0xfa19, 0xfb1a, 0xfb1a, 0xfc1a dw 0xfc1a, 0xfd1a, 0xfd1a, 0xfe1a, 0xfe1a, 0xff1a, 0xff1a, 0x001a elipse_coords_for_radius_23: dw 0xe901, 0xe901, 0xe902, 0xe903, 0xe903, 0xe904, 0xe905, 0xe905 dw 0xea06, 0xea07, 0xea07, 0xea08, 0xea09, 0xea09, 0xeb0a, 0xeb0b dw 0xeb0b, 0xeb0c, 0xeb0c, 0xec0d, 0xec0e, 0xec0e, 0xed0f, 0xed0f dw 0xed10, 0xee10, 0xee11, 0xee12, 0xef12, 0xef13, 0xef13, 0xf014 dw 0xf014, 0xf114, 0xf115, 0xf115, 0xf216, 0xf216, 0xf317, 0xf317 dw 0xf417, 0xf418, 0xf518, 0xf518, 0xf619, 0xf619, 0xf719, 0xf719 dw 0xf81a, 0xf81a, 0xf91a, 0xf91a, 0xfa1b, 0xfa1b, 0xfb1b, 0xfc1b dw 0xfc1b, 0xfd1b, 0xfd1b, 0xfe1b, 0xfe1c, 0xff1c, 0xff1c, 0x001c elipse_coords_for_radius_24: dw 0xe801, 0xe801, 0xe802, 0xe803, 0xe804, 0xe804, 0xe805, 0xe806 dw 0xe906, 0xe907, 0xe908, 0xe908, 0xe909, 0xe90a, 0xea0a, 0xea0b dw 0xea0c, 0xea0c, 0xeb0d, 0xeb0e, 0xeb0e, 0xeb0f, 0xec0f, 0xec10 dw 0xec11, 0xed11, 0xed12, 0xed12, 0xee13, 0xee13, 0xef14, 0xef14 dw 0xef15, 0xf015, 0xf016, 0xf116, 0xf117, 0xf217, 0xf218, 0xf318 dw 0xf318, 0xf419, 0xf419, 0xf519, 0xf51a, 0xf61a, 0xf61a, 0xf71b dw 0xf71b, 0xf81b, 0xf81b, 0xf91c, 0xfa1c, 0xfa1c, 0xfb1c, 0xfb1c dw 0xfc1c, 0xfc1c, 0xfd1d, 0xfe1d, 0xfe1d, 0xff1d, 0xff1d, 0x001d elipse_coords_for_radius_25: dw 0xe701, 0xe701, 0xe702, 0xe703, 0xe704, 0xe704, 0xe705, 0xe706 dw 0xe807, 0xe807, 0xe808, 0xe809, 0xe809, 0xe80a, 0xe90b, 0xe90b dw 0xe90c, 0xe90d, 0xea0d, 0xea0e, 0xea0f, 0xeb0f, 0xeb10, 0xeb11 dw 0xec11, 0xec12, 0xec12, 0xed13, 0xed14, 0xed14, 0xee15, 0xee15 dw 0xef16, 0xef16, 0xf017, 0xf017, 0xf118, 0xf118, 0xf219, 0xf219 dw 0xf319, 0xf31a, 0xf41a, 0xf41a, 0xf51b, 0xf51b, 0xf61b, 0xf61c dw 0xf71c, 0xf81c, 0xf81c, 0xf91d, 0xf91d, 0xfa1d, 0xfb1d, 0xfb1d dw 0xfc1e, 0xfc1e, 0xfd1e, 0xfe1e, 0xfe1e, 0xff1e, 0xff1e, 0x001e elipse_coords_for_radius_26: dw 0xe601, 0xe602, 0xe602, 0xe603, 0xe604, 0xe605, 0xe605, 0xe606 dw 0xe707, 0xe708, 0xe708, 0xe709, 0xe70a, 0xe80b, 0xe80b, 0xe80c dw 0xe80d, 0xe80d, 0xe90e, 0xe90f, 0xe90f, 0xea10, 0xea11, 0xea11 dw 0xeb12, 0xeb13, 0xec13, 0xec14, 0xec14, 0xed15, 0xed16, 0xee16 dw 0xee17, 0xef17, 0xef18, 0xf018, 0xf019, 0xf119, 0xf11a, 0xf21a dw 0xf21a, 0xf31b, 0xf31b, 0xf41c, 0xf41c, 0xf51c, 0xf51d, 0xf61d dw 0xf71d, 0xf71d, 0xf81e, 0xf81e, 0xf91e, 0xfa1e, 0xfa1e, 0xfb1f dw 0xfc1f, 0xfc1f, 0xfd1f, 0xfd1f, 0xfe1f, 0xff1f, 0xff1f, 0x001f elipse_coords_for_radius_27: dw 0xe501, 0xe502, 0xe502, 0xe503, 0xe504, 0xe505, 0xe506, 0xe606 dw 0xe607, 0xe608, 0xe609, 0xe609, 0xe60a, 0xe70b, 0xe70c, 0xe70c dw 0xe70d, 0xe80e, 0xe80f, 0xe80f, 0xe910, 0xe911, 0xe911, 0xea12 dw 0xea13, 0xea13, 0xeb14, 0xeb15, 0xec15, 0xec16, 0xec16, 0xed17 dw 0xed17, 0xee18, 0xee19, 0xef19, 0xef1a, 0xf01a, 0xf01a, 0xf11b dw 0xf21b, 0xf21c, 0xf31c, 0xf31d, 0xf41d, 0xf41d, 0xf51e, 0xf61e dw 0xf61e, 0xf71f, 0xf81f, 0xf81f, 0xf91f, 0xf91f, 0xfa20, 0xfb20 dw 0xfb20, 0xfc20, 0xfd20, 0xfd20, 0xfe20, 0xff20, 0xff20, 0x0020 elipse_coords_for_radius_28: dw 0xe401, 0xe402, 0xe402, 0xe403, 0xe404, 0xe405, 0xe406, 0xe507 dw 0xe507, 0xe508, 0xe509, 0xe50a, 0xe50b, 0xe60b, 0xe60c, 0xe60d dw 0xe60e, 0xe70e, 0xe70f, 0xe710, 0xe811, 0xe811, 0xe812, 0xe913 dw 0xe913, 0xea14, 0xea15, 0xea15, 0xeb16, 0xeb17, 0xec17, 0xec18 dw 0xed18, 0xed19, 0xee19, 0xee1a, 0xef1a, 0xef1b, 0xf01b, 0xf01c dw 0xf11c, 0xf21d, 0xf21d, 0xf31e, 0xf31e, 0xf41e, 0xf51f, 0xf51f dw 0xf61f, 0xf720, 0xf720, 0xf820, 0xf920, 0xf921, 0xfa21, 0xfb21 dw 0xfb21, 0xfc21, 0xfd21, 0xfd21, 0xfe22, 0xff22, 0xff22, 0x0022 elipse_coords_for_radius_29: dw 0xe301, 0xe302, 0xe303, 0xe303, 0xe304, 0xe305, 0xe306, 0xe407 dw 0xe408, 0xe408, 0xe409, 0xe40a, 0xe40b, 0xe50c, 0xe50d, 0xe50d dw 0xe50e, 0xe60f, 0xe610, 0xe610, 0xe711, 0xe712, 0xe713, 0xe813 dw 0xe814, 0xe915, 0xe915, 0xea16, 0xea17, 0xeb17, 0xeb18, 0xeb19 dw 0xec19, 0xed1a, 0xed1a, 0xee1b, 0xee1b, 0xef1c, 0xef1c, 0xf01d dw 0xf01d, 0xf11e, 0xf21e, 0xf21f, 0xf31f, 0xf41f, 0xf420, 0xf520 dw 0xf620, 0xf621, 0xf721, 0xf821, 0xf822, 0xf922, 0xfa22, 0xfa22 dw 0xfb22, 0xfc22, 0xfc23, 0xfd23, 0xfe23, 0xff23, 0xff23, 0x0023 elipse_coords_for_radius_30: dw 0xe201, 0xe202, 0xe203, 0xe204, 0xe204, 0xe205, 0xe206, 0xe307 dw 0xe308, 0xe309, 0xe30a, 0xe30a, 0xe40b, 0xe40c, 0xe40d, 0xe40e dw 0xe50f, 0xe50f, 0xe510, 0xe611, 0xe612, 0xe613, 0xe713, 0xe714 dw 0xe715, 0xe815, 0xe816, 0xe917, 0xe918, 0xea18, 0xea19, 0xeb19 dw 0xeb1a, 0xec1b, 0xec1b, 0xed1c, 0xee1c, 0xee1d, 0xef1d, 0xef1e dw 0xf01e, 0xf11f, 0xf11f, 0xf220, 0xf320, 0xf321, 0xf421, 0xf521 dw 0xf522, 0xf622, 0xf722, 0xf722, 0xf823, 0xf923, 0xf923, 0xfa23 dw 0xfb23, 0xfc24, 0xfc24, 0xfd24, 0xfe24, 0xff24, 0xff24, 0x0024 elipse_coords_for_radius_31: dw 0xe101, 0xe102, 0xe103, 0xe104, 0xe105, 0xe105, 0xe106, 0xe207 dw 0xe208, 0xe209, 0xe20a, 0xe20b, 0xe30c, 0xe30d, 0xe30d, 0xe30e dw 0xe40f, 0xe410, 0xe411, 0xe512, 0xe512, 0xe513, 0xe614, 0xe615 dw 0xe715, 0xe716, 0xe817, 0xe818, 0xe918, 0xe919, 0xea1a, 0xea1a dw 0xeb1b, 0xeb1c, 0xec1c, 0xec1d, 0xed1d, 0xee1e, 0xee1e, 0xef1f dw 0xef1f, 0xf020, 0xf120, 0xf121, 0xf221, 0xf322, 0xf322, 0xf422 dw 0xf523, 0xf623, 0xf623, 0xf724, 0xf824, 0xf824, 0xf924, 0xfa24 dw 0xfb25, 0xfb25, 0xfc25, 0xfd25, 0xfe25, 0xfe25, 0xff25, 0x0025 elipse_coords_for_radius_32: dw 0xe001, 0xe002, 0xe003, 0xe004, 0xe005, 0xe006, 0xe007, 0xe107 dw 0xe108, 0xe109, 0xe10a, 0xe10b, 0xe20c, 0xe20d, 0xe20e, 0xe20f dw 0xe310, 0xe310, 0xe311, 0xe412, 0xe413, 0xe514, 0xe515, 0xe515 dw 0xe616, 0xe617, 0xe718, 0xe718, 0xe819, 0xe81a, 0xe91a, 0xe91b dw 0xea1c, 0xeb1c, 0xeb1d, 0xec1e, 0xec1e, 0xed1f, 0xee1f, 0xee20 dw 0xef20, 0xf021, 0xf021, 0xf122, 0xf222, 0xf223, 0xf323, 0xf423 dw 0xf424, 0xf524, 0xf624, 0xf725, 0xf725, 0xf825, 0xf925, 0xfa26 dw 0xfb26, 0xfb26, 0xfc26, 0xfd26, 0xfe26, 0xfe26, 0xff26, 0x0026 elipse_coords_for_radius_33: dw 0xdf01, 0xdf02, 0xdf03, 0xdf04, 0xdf05, 0xdf06, 0xdf07, 0xe008 dw 0xe009, 0xe00a, 0xe00b, 0xe00b, 0xe10c, 0xe10d, 0xe10e, 0xe20f dw 0xe210, 0xe211, 0xe312, 0xe313, 0xe314, 0xe414, 0xe415, 0xe516 dw 0xe517, 0xe518, 0xe618, 0xe619, 0xe71a, 0xe81b, 0xe81b, 0xe91c dw 0xe91d, 0xea1d, 0xea1e, 0xeb1f, 0xec1f, 0xec20, 0xed20, 0xee21 dw 0xee21, 0xef22, 0xf022, 0xf023, 0xf123, 0xf224, 0xf324, 0xf325 dw 0xf425, 0xf525, 0xf626, 0xf626, 0xf726, 0xf826, 0xf927, 0xfa27 dw 0xfa27, 0xfb27, 0xfc27, 0xfd27, 0xfe27, 0xfe28, 0xff28, 0x0028 elipse_coords_for_radius_34: dw 0xde01, 0xde02, 0xde03, 0xde04, 0xde05, 0xde06, 0xdf07, 0xdf08 dw 0xdf09, 0xdf0a, 0xdf0b, 0xdf0c, 0xe00d, 0xe00e, 0xe00f, 0xe110 dw 0xe111, 0xe111, 0xe212, 0xe213, 0xe214, 0xe315, 0xe316, 0xe417 dw 0xe417, 0xe518, 0xe519, 0xe61a, 0xe61b, 0xe71b, 0xe71c, 0xe81d dw 0xe91e, 0xe91e, 0xea1f, 0xea20, 0xeb20, 0xec21, 0xec21, 0xed22 dw 0xee22, 0xef23, 0xef23, 0xf024, 0xf124, 0xf125, 0xf225, 0xf326 dw 0xf426, 0xf526, 0xf527, 0xf627, 0xf727, 0xf828, 0xf928, 0xf928 dw 0xfa28, 0xfb28, 0xfc28, 0xfd29, 0xfd29, 0xfe29, 0xff29, 0x0029 elipse_coords_for_radius_35: dw 0xdd01, 0xdd02, 0xdd03, 0xdd04, 0xdd05, 0xdd06, 0xde07, 0xde08 dw 0xde09, 0xde0a, 0xde0b, 0xdf0c, 0xdf0d, 0xdf0e, 0xdf0f, 0xe010 dw 0xe011, 0xe012, 0xe113, 0xe114, 0xe215, 0xe216, 0xe216, 0xe317 dw 0xe318, 0xe419, 0xe41a, 0xe51b, 0xe51b, 0xe61c, 0xe71d, 0xe71e dw 0xe81e, 0xe81f, 0xe920, 0xea20, 0xea21, 0xeb22, 0xec22, 0xed23 dw 0xed23, 0xee24, 0xef25, 0xf025, 0xf026, 0xf126, 0xf226, 0xf327 dw 0xf327, 0xf428, 0xf528, 0xf628, 0xf728, 0xf729, 0xf829, 0xf929 dw 0xfa29, 0xfb2a, 0xfc2a, 0xfd2a, 0xfd2a, 0xfe2a, 0xff2a, 0x002a elipse_coords_for_radius_36: dw 0xdc01, 0xdc02, 0xdc03, 0xdc04, 0xdc05, 0xdc06, 0xdd07, 0xdd08 dw 0xdd09, 0xdd0a, 0xdd0c, 0xde0d, 0xde0e, 0xde0f, 0xde10, 0xdf11 dw 0xdf12, 0xdf12, 0xe013, 0xe014, 0xe115, 0xe116, 0xe217, 0xe218 dw 0xe319, 0xe31a, 0xe41b, 0xe41b, 0xe51c, 0xe51d, 0xe61e, 0xe71f dw 0xe71f, 0xe820, 0xe821, 0xe921, 0xea22, 0xeb23, 0xeb23, 0xec24 dw 0xed24, 0xed25, 0xee26, 0xef26, 0xf027, 0xf127, 0xf127, 0xf228 dw 0xf328, 0xf429, 0xf529, 0xf629, 0xf62a, 0xf72a, 0xf82a, 0xf92a dw 0xfa2b, 0xfb2b, 0xfc2b, 0xfc2b, 0xfd2b, 0xfe2b, 0xff2b, 0x002b elipse_coords_for_radius_37: dw 0xdb01, 0xdb02, 0xdb03, 0xdb04, 0xdb05, 0xdb07, 0xdc08, 0xdc09 dw 0xdc0a, 0xdc0b, 0xdc0c, 0xdd0d, 0xdd0e, 0xdd0f, 0xdd10, 0xde11 dw 0xde12, 0xdf13, 0xdf14, 0xdf15, 0xe016, 0xe017, 0xe118, 0xe119 dw 0xe21a, 0xe21a, 0xe31b, 0xe31c, 0xe41d, 0xe51e, 0xe51f, 0xe61f dw 0xe620, 0xe721, 0xe822, 0xe922, 0xe923, 0xea24, 0xeb24, 0xeb25 dw 0xec26, 0xed26, 0xee27, 0xef27, 0xef28, 0xf028, 0xf129, 0xf229 dw 0xf329, 0xf42a, 0xf42a, 0xf52a, 0xf62b, 0xf72b, 0xf82b, 0xf92c dw 0xfa2c, 0xfb2c, 0xfb2c, 0xfc2c, 0xfd2c, 0xfe2c, 0xff2c, 0x002c elipse_coords_for_radius_38: dw 0xda01, 0xda02, 0xda03, 0xda04, 0xda06, 0xda07, 0xdb08, 0xdb09 dw 0xdb0a, 0xdb0b, 0xdb0c, 0xdc0d, 0xdc0e, 0xdc0f, 0xdd10, 0xdd11 dw 0xdd12, 0xde13, 0xde15, 0xde15, 0xdf16, 0xdf17, 0xe018, 0xe019 dw 0xe11a, 0xe11b, 0xe21c, 0xe31d, 0xe31e, 0xe41f, 0xe41f, 0xe520 dw 0xe621, 0xe622, 0xe723, 0xe823, 0xe924, 0xe925, 0xea25, 0xeb26 dw 0xec27, 0xec27, 0xed28, 0xee28, 0xef29, 0xf029, 0xf12a, 0xf12a dw 0xf22b, 0xf32b, 0xf42b, 0xf52c, 0xf62c, 0xf72c, 0xf82c, 0xf92d dw 0xfa2d, 0xfa2d, 0xfb2d, 0xfc2d, 0xfd2d, 0xfe2e, 0xff2e, 0x002e elipse_coords_for_radius_39: dw 0xd901, 0xd902, 0xd903, 0xd905, 0xd906, 0xd907, 0xda08, 0xda09 dw 0xda0a, 0xda0b, 0xda0c, 0xdb0e, 0xdb0f, 0xdb10, 0xdc11, 0xdc12 dw 0xdc13, 0xdd14, 0xdd15, 0xde16, 0xde17, 0xdf18, 0xdf19, 0xe01a dw 0xe01b, 0xe11c, 0xe11d, 0xe21e, 0xe21f, 0xe31f, 0xe420, 0xe421 dw 0xe522, 0xe623, 0xe723, 0xe724, 0xe825, 0xe926, 0xea26, 0xea27 dw 0xeb28, 0xec28, 0xed29, 0xee29, 0xee2a, 0xef2a, 0xf02b, 0xf12b dw 0xf22c, 0xf32c, 0xf42c, 0xf52d, 0xf62d, 0xf72d, 0xf72e, 0xf82e dw 0xf92e, 0xfa2e, 0xfb2e, 0xfc2f, 0xfd2f, 0xfe2f, 0xff2f, 0x002f elipse_coords_for_radius_40: dw 0xd801, 0xd802, 0xd804, 0xd805, 0xd806, 0xd807, 0xd908, 0xd909 dw 0xd90b, 0xd90c, 0xd90d, 0xda0e, 0xda0f, 0xda10, 0xdb11, 0xdb12 dw 0xdb13, 0xdc15, 0xdc16, 0xdd17, 0xdd18, 0xde19, 0xde1a, 0xdf1b dw 0xdf1c, 0xe01d, 0xe01e, 0xe11e, 0xe21f, 0xe220, 0xe321, 0xe422 dw 0xe423, 0xe524, 0xe624, 0xe725, 0xe726, 0xe827, 0xe927, 0xea28 dw 0xeb29, 0xeb29, 0xec2a, 0xed2a, 0xee2b, 0xef2b, 0xf02c, 0xf12c dw 0xf22d, 0xf32d, 0xf32e, 0xf42e, 0xf52e, 0xf62f, 0xf72f, 0xf82f dw 0xf92f, 0xfa2f, 0xfb30, 0xfc30, 0xfd30, 0xfe30, 0xff30, 0x0030 elipse_coords_for_radius_41: dw 0xd701, 0xd702, 0xd704, 0xd705, 0xd706, 0xd707, 0xd808, 0xd80a dw 0xd80b, 0xd80c, 0xd80d, 0xd90e, 0xd90f, 0xd911, 0xda12, 0xda13 dw 0xdb14, 0xdb15, 0xdb16, 0xdc17, 0xdc18, 0xdd19, 0xdd1a, 0xde1b dw 0xde1c, 0xdf1d, 0xe01e, 0xe01f, 0xe120, 0xe221, 0xe222, 0xe323 dw 0xe424, 0xe424, 0xe525, 0xe626, 0xe727, 0xe828, 0xe828, 0xe929 dw 0xea2a, 0xeb2a, 0xec2b, 0xed2b, 0xee2c, 0xee2c, 0xef2d, 0xf02d dw 0xf12e, 0xf22e, 0xf32f, 0xf42f, 0xf52f, 0xf630, 0xf730, 0xf830 dw 0xf930, 0xfa31, 0xfb31, 0xfc31, 0xfd31, 0xfe31, 0xff31, 0x0031 elipse_coords_for_radius_42: dw 0xd601, 0xd602, 0xd604, 0xd605, 0xd606, 0xd607, 0xd709, 0xd70a dw 0xd70b, 0xd70c, 0xd80d, 0xd80f, 0xd810, 0xd811, 0xd912, 0xd913 dw 0xda14, 0xda16, 0xda17, 0xdb18, 0xdb19, 0xdc1a, 0xdd1b, 0xdd1c dw 0xde1d, 0xde1e, 0xdf1f, 0xe020, 0xe021, 0xe122, 0xe223, 0xe224 dw 0xe325, 0xe425, 0xe526, 0xe527, 0xe628, 0xe728, 0xe829, 0xe92a dw 0xea2b, 0xea2b, 0xeb2c, 0xec2c, 0xed2d, 0xee2e, 0xef2e, 0xf02f dw 0xf12f, 0xf22f, 0xf330, 0xf430, 0xf531, 0xf631, 0xf731, 0xf831 dw 0xf932, 0xfa32, 0xfb32, 0xfc32, 0xfd32, 0xfe32, 0xff32, 0x0032 elipse_coords_for_radius_43: dw 0xd501, 0xd503, 0xd504, 0xd505, 0xd506, 0xd508, 0xd609, 0xd60a dw 0xd60b, 0xd60d, 0xd70e, 0xd70f, 0xd710, 0xd811, 0xd813, 0xd814 dw 0xd915, 0xd916, 0xda17, 0xda18, 0xdb19, 0xdb1b, 0xdc1c, 0xdc1d dw 0xdd1e, 0xdd1f, 0xde20, 0xdf21, 0xdf22, 0xe023, 0xe124, 0xe224 dw 0xe225, 0xe326, 0xe427, 0xe528, 0xe629, 0xe629, 0xe72a, 0xe82b dw 0xe92c, 0xea2c, 0xeb2d, 0xec2e, 0xed2e, 0xee2f, 0xef2f, 0xf030 dw 0xf130, 0xf231, 0xf331, 0xf431, 0xf532, 0xf632, 0xf732, 0xf833 dw 0xf933, 0xfa33, 0xfb33, 0xfc33, 0xfd33, 0xfe34, 0xff34, 0x0034 elipse_coords_for_radius_44: dw 0xd401, 0xd403, 0xd404, 0xd405, 0xd406, 0xd408, 0xd509, 0xd50a dw 0xd50c, 0xd50d, 0xd60e, 0xd60f, 0xd611, 0xd712, 0xd713, 0xd714 dw 0xd815, 0xd817, 0xd918, 0xd919, 0xda1a, 0xda1b, 0xdb1c, 0xdb1d dw 0xdc1e, 0xdd1f, 0xdd20, 0xde21, 0xdf22, 0xdf23, 0xe024, 0xe125 dw 0xe226, 0xe227, 0xe328, 0xe429, 0xe52a, 0xe62a, 0xe72b, 0xe82c dw 0xe82d, 0xe92d, 0xea2e, 0xeb2f, 0xec2f, 0xed30, 0xee30, 0xef31 dw 0xf031, 0xf132, 0xf232, 0xf333, 0xf433, 0xf533, 0xf634, 0xf734 dw 0xf834, 0xfa34, 0xfb34, 0xfc35, 0xfd35, 0xfe35, 0xff35, 0x0035 elipse_coords_for_radius_45: dw 0xd301, 0xd303, 0xd304, 0xd305, 0xd307, 0xd308, 0xd409, 0xd40b dw 0xd40c, 0xd40d, 0xd50e, 0xd510, 0xd511, 0xd612, 0xd613, 0xd615 dw 0xd716, 0xd717, 0xd818, 0xd819, 0xd91b, 0xd91c, 0xda1d, 0xdb1e dw 0xdb1f, 0xdc20, 0xdd21, 0xdd22, 0xde23, 0xdf24, 0xdf25, 0xe026 dw 0xe127, 0xe228, 0xe329, 0xe32a, 0xe42b, 0xe52b, 0xe62c, 0xe72d dw 0xe82e, 0xe92e, 0xea2f, 0xeb30, 0xec30, 0xed31, 0xee31, 0xef32 dw 0xf032, 0xf133, 0xf233, 0xf334, 0xf434, 0xf534, 0xf635, 0xf735 dw 0xf835, 0xf935, 0xfa36, 0xfc36, 0xfd36, 0xfe36, 0xff36, 0x0036 elipse_coords_for_radius_46: dw 0xd201, 0xd203, 0xd204, 0xd205, 0xd207, 0xd208, 0xd309, 0xd30b dw 0xd30c, 0xd30d, 0xd40f, 0xd410, 0xd411, 0xd513, 0xd514, 0xd615 dw 0xd616, 0xd618, 0xd719, 0xd71a, 0xd81b, 0xd91c, 0xd91e, 0xda1f dw 0xda20, 0xdb21, 0xdc22, 0xdc23, 0xdd24, 0xde25, 0xdf26, 0xdf27 dw 0xe028, 0xe129, 0xe22a, 0xe32b, 0xe42c, 0xe52c, 0xe62d, 0xe62e dw 0xe72f, 0xe82f, 0xe930, 0xea31, 0xeb31, 0xec32, 0xed32, 0xee33 dw 0xef34, 0xf134, 0xf234, 0xf335, 0xf435, 0xf536, 0xf636, 0xf736 dw 0xf836, 0xf937, 0xfa37, 0xfb37, 0xfd37, 0xfe37, 0xff37, 0x0037 elipse_coords_for_radius_47: dw 0xd101, 0xd103, 0xd104, 0xd106, 0xd107, 0xd208, 0xd20a, 0xd20b dw 0xd20c, 0xd20e, 0xd30f, 0xd310, 0xd312, 0xd413, 0xd414, 0xd516 dw 0xd517, 0xd618, 0xd619, 0xd71b, 0xd71c, 0xd81d, 0xd81e, 0xd91f dw 0xda20, 0xda22, 0xdb23, 0xdc24, 0xdc25, 0xdd26, 0xde27, 0xdf28 dw 0xe029, 0xe02a, 0xe12b, 0xe22c, 0xe32c, 0xe42d, 0xe52e, 0xe62f dw 0xe730, 0xe830, 0xe931, 0xea32, 0xeb32, 0xec33, 0xed34, 0xee34 dw 0xef35, 0xf035, 0xf136, 0xf236, 0xf336, 0xf537, 0xf637, 0xf737 dw 0xf838, 0xf938, 0xfa38, 0xfb38, 0xfd38, 0xfe38, 0xff38, 0x0038 elipse_coords_for_radius_48: dw 0xd001, 0xd003, 0xd004, 0xd006, 0xd007, 0xd108, 0xd10a, 0xd10b dw 0xd10d, 0xd10e, 0xd20f, 0xd211, 0xd212, 0xd313, 0xd315, 0xd416 dw 0xd417, 0xd519, 0xd51a, 0xd61b, 0xd61c, 0xd71e, 0xd71f, 0xd820 dw 0xd921, 0xd922, 0xda23, 0xdb25, 0xdc26, 0xdc27, 0xdd28, 0xde29 dw 0xdf2a, 0xe02b, 0xe12c, 0xe22d, 0xe22d, 0xe32e, 0xe42f, 0xe530 dw 0xe631, 0xe731, 0xe832, 0xe933, 0xea33, 0xeb34, 0xed35, 0xee35 dw 0xef36, 0xf036, 0xf137, 0xf237, 0xf338, 0xf438, 0xf538, 0xf738 dw 0xf839, 0xf939, 0xfa39, 0xfb39, 0xfc39, 0xfe3a, 0xff3a, 0x003a elipse_coords_for_radius_49: dw 0xcf01, 0xcf03, 0xcf04, 0xcf06, 0xcf07, 0xd009, 0xd00a, 0xd00b dw 0xd00d, 0xd00e, 0xd110, 0xd111, 0xd112, 0xd214, 0xd215, 0xd317 dw 0xd318, 0xd419, 0xd41a, 0xd51c, 0xd51d, 0xd61e, 0xd71f, 0xd721 dw 0xd822, 0xd923, 0xd924, 0xda25, 0xdb26, 0xdc27, 0xdd29, 0xdd2a dw 0xde2b, 0xdf2c, 0xe02d, 0xe12d, 0xe22e, 0xe32f, 0xe430, 0xe531 dw 0xe632, 0xe732, 0xe833, 0xe934, 0xea35, 0xeb35, 0xec36, 0xed36 dw 0xee37, 0xef37, 0xf138, 0xf238, 0xf339, 0xf439, 0xf539, 0xf63a dw 0xf83a, 0xf93a, 0xfa3a, 0xfb3b, 0xfc3b, 0xfe3b, 0xff3b, 0x003b ;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-; ; Entries ;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-; elipse_table: dw elipse_coords_for_radius_0 dw elipse_coords_for_radius_1 dw elipse_coords_for_radius_2 dw elipse_coords_for_radius_3 dw elipse_coords_for_radius_4 dw elipse_coords_for_radius_5 dw elipse_coords_for_radius_6 dw elipse_coords_for_radius_7 dw elipse_coords_for_radius_8 dw elipse_coords_for_radius_9 dw elipse_coords_for_radius_10 dw elipse_coords_for_radius_11 dw elipse_coords_for_radius_12 dw elipse_coords_for_radius_13 dw elipse_coords_for_radius_14 dw elipse_coords_for_radius_15 dw elipse_coords_for_radius_16 dw elipse_coords_for_radius_17 dw elipse_coords_for_radius_18 dw elipse_coords_for_radius_19 dw elipse_coords_for_radius_20 dw elipse_coords_for_radius_21 dw elipse_coords_for_radius_22 dw elipse_coords_for_radius_23 dw elipse_coords_for_radius_24 dw elipse_coords_for_radius_25 dw elipse_coords_for_radius_26 dw elipse_coords_for_radius_27 dw elipse_coords_for_radius_28 dw elipse_coords_for_radius_29 dw elipse_coords_for_radius_30 dw elipse_coords_for_radius_31 dw elipse_coords_for_radius_32 dw elipse_coords_for_radius_33 dw elipse_coords_for_radius_34 dw elipse_coords_for_radius_35 dw elipse_coords_for_radius_36 dw elipse_coords_for_radius_37 dw elipse_coords_for_radius_38 dw elipse_coords_for_radius_39 dw elipse_coords_for_radius_40 dw elipse_coords_for_radius_41 dw elipse_coords_for_radius_42 dw elipse_coords_for_radius_43 dw elipse_coords_for_radius_44 dw elipse_coords_for_radius_45 dw elipse_coords_for_radius_46 dw elipse_coords_for_radius_47 dw elipse_coords_for_radius_48 dw elipse_coords_for_radius_49
59.810376
80
0.683257
25173694655cebefd88548d9085a6d883238c82f
725
asm
Assembly
oeis/266/A266613.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/266/A266613.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/266/A266613.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A266613: Decimal representation of the middle column of the "Rule 41" elementary cellular automaton starting with a single ON (black) cell. ; 1,2,5,10,20,41,82,165,330,661,1322,2645,5290,10581,21162,42325,84650,169301,338602,677205,1354410,2708821,5417642,10835285,21670570,43341141,86682282,173364565,346729130,693458261,1386916522,2773833045,5547666090,11095332181,22190664362,44381328725,88762657450,177525314901,355050629802,710101259605,1420202519210,2840405038421,5680810076842,11361620153685,22723240307370,45446480614741,90892961229482,181785922458965,363571844917930,727143689835861,1454287379671722,2908574759343445 mov $1,11 lpb $0 sub $0,1 add $1,10 mov $2,$1 mul $1,2 lpe mov $0,$2 div $0,12 add $0,1
51.785714
485
0.82069
45a13b393b2917eef5c1c708d717a77d653bc640
755
asm
Assembly
programs/dots.asm
mynameispyo/InpyoOS
b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d
[ "BSD-3-Clause", "MIT" ]
null
null
null
programs/dots.asm
mynameispyo/InpyoOS
b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d
[ "BSD-3-Clause", "MIT" ]
null
null
null
programs/dots.asm
mynameispyo/InpyoOS
b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d
[ "BSD-3-Clause", "MIT" ]
null
null
null
; ------------------------------------------------------------------ ; MichalOS Dots Test ; ------------------------------------------------------------------ BITS 16 %INCLUDE "osdev.inc" ORG 100h start: mov byte [0082h], 1 mov ax, 13h int 10h .loop: mov ax, 0 mov bx, 255 call os_get_random mov al, cl mov cx, [.x_pos] mov dx, [.y_pos] mov bh, 0 call os_put_pixel inc word [.x_pos] cmp word [.x_pos], 320 jne .no_inc_y mov word [.x_pos], 0 inc word [.y_pos] cmp word [.y_pos], 200 jne .no_inc_y mov word [.y_pos], 0 .no_inc_y: call os_check_for_key cmp al, 27 jne .loop mov ax, 3 int 10h ret .color db 0 .x_pos dw 0 .y_pos dw 0 ; ------------------------------------------------------------------
13.981481
68
0.454305
45bf1b1caf92d6213d5018039f146bc12264f444
155
asm
Assembly
sw/552tests/inst_tests/unaligned/jalr_10.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
1
2022-02-15T16:03:25.000Z
2022-02-15T16:03:25.000Z
sw/552tests/inst_tests/unaligned/jalr_10.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
null
null
null
sw/552tests/inst_tests/unaligned/jalr_10.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
null
null
null
// Original test: ./freiberg/hw4/problem6/jalr_2.asm // Author: freiberg // Test source code follows //middle case lbi r1, 87 jalr r1, 44 addi r2, r7, 0
15.5
52
0.703226
36b96520faeedc7df583f182f93c12860407da71
5,025
asm
Assembly
zxn_input_line.asm
imneme/spectrum-minilib
e3b999f209f8cf1014aeb240accff8b7b15270d6
[ "MIT" ]
1
2020-09-22T09:18:19.000Z
2020-09-22T09:18:19.000Z
zxn_input_line.asm
imneme/spectrum-minilib
e3b999f209f8cf1014aeb240accff8b7b15270d6
[ "MIT" ]
null
null
null
zxn_input_line.asm
imneme/spectrum-minilib
e3b999f209f8cf1014aeb240accff8b7b15270d6
[ "MIT" ]
null
null
null
include "romdefs.inc" GLOBAL zxn_input_prepare GLOBAL zxn_input_line GLOBAL zxn_input_finish GLOBAL _input_size EXTERN _call_with_errhandler EXTERN _zxn_window_channel SECTION data_clib _input_size: defb 0 _input_buffer: defw 0 SECTION code_clib zxn_input_prepare: ld hl, -384 add hl, sp ld a, h cp $c0 jr nc, other_end set_buffer: ld (_input_buffer), hl ret other_end: ld hl, (SYSVAR_STKEND) jr set_buffer ;; ld bc, 0x100 ;; rst $30 ; make BC spaces, DE = start ;; ld (_input_buffer), de ;; ret ;; dummy: ;; defb "wow-fun", '\r' ;; defs 256 ;; GLOBAL _printf ;; wtf: defb "input buffer = %u, BC = %u\n\0" zxn_input_line: ;; stack: length, str-addr, retaddr pop af ; return address pop hl ; prefill string, start pop bc ; and length push af ; restore return address ;; push hl ;; push bc ;; push bc ;; ld hl, (_input_buffer) ;; push hl ;; ld hl, wtf ;; push hl ;; call _printf ;; pop bc ;; pop hl ;; stack: retaddr push ix ; save IX for caller ;; stack: retaddr, ix ld de,(SYSVAR_CURCHL) ; save current channel push de ; ... ;; stack: retaddr, ix, curchl ld de,(_zxn_window_channel) ; set current channel to magic window ld (SYSVAR_CURCHL), de ; ld de, (_input_buffer) push bc push de inc bc ldir exx ld a, 255 ;; stack: retaddr, ix, curchl, length, buff-addr ; ldir pop hl pop de ; ld e,4 push hl ;; stack: retaddr, ix, curchl, buff-addr exx ld de, IDE_WINDOW_LINEIN ld c, 7 rst $08 defb M_P3DOS pop hl push hl ld a,e ld (_input_size),a ld d,0 add hl,de ld (hl),'\r' pop hl pop bc ld (SYSVAR_CURCHL), bc ; restore original channel ld bc, 0xfefe in b, (c) pop ix ; restore ix for caller bit 0,b jr nz, good_exit ld hl, 0 ld b,e inc b jr start_loop del_loop: ld a,12 rst $10 start_loop: djnz del_loop ret good_exit: ld a, '\r' rst $10 ret ;; z_zxn_input_line: ;; ;; stack: length, str-addr, retaddr ;; pop af ; return address ;; pop hl ; prefill string, start ;; pop bc ; and length ;; push af ; restore return address ;; ;; stack: retaddr ;; push ix ; save IX for caller ;; ;; stack: retaddr, ix ;; ld de,(SYSVAR_CURCHL) ; save current channel ;; push de ; ... ;; ;; stack: retaddr, ix, curchl ;; ld de,(_zxn_window_channel) ; set current channel to magic window ;; ld (SYSVAR_CURCHL), de ; ;; push bc ;; push hl ;; ;; stack: retaddr, ix, curchl, length, str-addr ;; ;; push bc ;; ;; ld (iy), 0xff ; clear any errors ;; ;; ld hl,SYSVAR_FLAGX ;; ;; res 7,(hl) ;; ;; set 5,(hl) ;; ;; call ROM3_SET_WORK ; clear workspace ;; ;; pop bc ; length ;; ld bc, 0x100 ;; rst $30 ; make BC spaces, DE = start ;; ;; stack: retaddr, ix, curchl, length, str-addr ;; pop hl ; and start ;; ;; stack: retaddr, ix, curchl, length ;; pop bc ;; push bc ;; ;; stack: retaddr, ix, curchl, length ;; inc bc ; avoid zero copy ;; push de ; save start address for later ;; ;; stack: retaddr, ix, curchl, length, buff-addr ;; ldir ; copy over ;; ex de,hl ;; dec hl ; nicely terminate with return, just ;; ld (hl),13 ; in case ;; exx ;; ld a, 255 ;; ;; stack: retaddr, ix, curchl, length, buff-addr ;; pop hl ;; pop de ;; push hl ;; ;; stack: retaddr, ix, curchl, buff-addr ;; exx ;; ld de, IDE_WINDOW_LINEIN ;; ld c, 7 ;; rst $08 ;; defb M_P3DOS ;; pop hl ;; push hl ;; ;; stack: retaddr, ix, curchl, buff-addr ;; ld a,e ;; ld (_input_size),a ;; ld d,0 ;; add hl,de ;; ld (hl),'\r' ;; pop hl ;; ;; stack: retaddr, ix, curchl ;; pop bc ;; ld (SYSVAR_CURCHL), bc ; restore original channel ;; pop ix ; restore ix for caller ;; ret zxn_input_finish: ;; ld hl, (_input_buffer) ;; ld bc, 0x100 ;; call ROM3_RECLAIM_2 ;; ld hl, 0 ;; ld (_input_buffer), hl ret
24.512195
85
0.468259
8295546f72d6ba8d75210b30a7c3557911a0bc7e
2,228
nasm
Assembly
Projetos/I-VM/bin/nasm/PointerTest.nasm
juanjorgegarcia/Z01
7d49ef8f476f9c8e9f187a62f96fdca7bcd46314
[ "Unlicense" ]
2
2018-03-21T01:20:58.000Z
2018-04-16T14:35:51.000Z
Projetos/I-VM/bin/nasm/PointerTest.nasm
juanjorgegarcia/Z01
7d49ef8f476f9c8e9f187a62f96fdca7bcd46314
[ "Unlicense" ]
76
2018-03-09T12:22:41.000Z
2018-05-18T11:47:17.000Z
Projetos/I-VM/bin/nasm/PointerTest.nasm
juanjorgegarcia/Z01
7d49ef8f476f9c8e9f187a62f96fdca7bcd46314
[ "Unlicense" ]
3
2018-03-07T01:27:37.000Z
2018-03-23T19:35:14.000Z
; 0 - PUSH constant 3030 leaw $3030,%A movw %A,%D leaw $SP,%A movw (%A),%A movw %D,(%A) leaw $SP,%A movw (%A),%D incw %D movw %D,(%A) ; 1 - POP pointer 0 leaw $SP,%A movw (%A),%D decw %D movw %D,(%A) movw (%A),%A movw (%A),%D leaw $THIS,%A movw %D,(%A) ; 2 - PUSH constant 3040 leaw $3040,%A movw %A,%D leaw $SP,%A movw (%A),%A movw %D,(%A) leaw $SP,%A movw (%A),%D incw %D movw %D,(%A) ; 3 - POP pointer 1 leaw $SP,%A movw (%A),%D decw %D movw %D,(%A) movw (%A),%A movw (%A),%D leaw $THAT,%A movw %D,(%A) ; 4 - PUSH constant 32 leaw $32,%A movw %A,%D leaw $SP,%A movw (%A),%A movw %D,(%A) leaw $SP,%A movw (%A),%D incw %D movw %D,(%A) ; 5 - POP this 2 leaw $SP,%A movw (%A),%D decw %D movw %D,(%A) leaw $2,%A movw %A,%D leaw $THIS,%A addw (%A),%D,%D leaw $R15,%A movw %D,(%A) leaw $SP,%A movw (%A),%A movw (%A),%D leaw $R15,%A movw (%A),%A movw %D,(%A) ; 6 - PUSH constant 46 leaw $46,%A movw %A,%D leaw $SP,%A movw (%A),%A movw %D,(%A) leaw $SP,%A movw (%A),%D incw %D movw %D,(%A) ; 7 - POP that 6 leaw $SP,%A movw (%A),%D decw %D movw %D,(%A) leaw $6,%A movw %A,%D leaw $THAT,%A addw (%A),%D,%D leaw $R15,%A movw %D,(%A) leaw $SP,%A movw (%A),%A movw (%A),%D leaw $R15,%A movw (%A),%A movw %D,(%A) ; 8 - PUSH pointer 0 leaw $THIS,%A movw (%A),%D leaw $SP,%A movw (%A),%A movw %D,(%A) leaw $SP,%A movw (%A),%D incw %D movw %D,(%A) ; 9 - PUSH pointer 1 leaw $THAT,%A movw (%A),%D leaw $SP,%A movw (%A),%A movw %D,(%A) leaw $SP,%A movw (%A),%D incw %D movw %D,(%A) ; 10 - ADD leaw $SP,%A movw (%A),%D decw %D movw %D,(%A) movw (%A),%A movw (%A),%D leaw $SP,%A subw (%A),$1,%A addw (%A),%D,%D movw %D,(%A) ; 11 - PUSH this 2 leaw $2,%A movw %A,%D leaw $THIS,%A addw (%A),%D,%A movw (%A),%D leaw $SP,%A movw (%A),%A movw %D,(%A) leaw $SP,%A movw (%A),%D incw %D movw %D,(%A) ; 12 - SUB leaw $SP,%A movw (%A),%D decw %D movw %D,(%A) movw (%A),%A movw (%A),%D leaw $SP,%A subw (%A),$1,%A subw (%A),%D,%D movw %D,(%A) ; 13 - PUSH that 6 leaw $6,%A movw %A,%D leaw $THAT,%A addw (%A),%D,%A movw (%A),%D leaw $SP,%A movw (%A),%A movw %D,(%A) leaw $SP,%A movw (%A),%D incw %D movw %D,(%A) ; 14 - ADD leaw $SP,%A movw (%A),%D decw %D movw %D,(%A) movw (%A),%A movw (%A),%D leaw $SP,%A subw (%A),$1,%A addw (%A),%D,%D movw %D,(%A) ; End
12.878613
24
0.525583
0673f2cb7beec2dbed731b8498c4db25358e21df
488
asm
Assembly
programs/oeis/165/A165157.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/165/A165157.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/165/A165157.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A165157: Zero followed by partial sums of A133622. ; 0,1,3,4,7,8,12,13,18,19,25,26,33,34,42,43,52,53,63,64,75,76,88,89,102,103,117,118,133,134,150,151,168,169,187,188,207,208,228,229,250,251,273,274,297,298,322,323,348,349,375,376,403,404,432,433,462,463,493,494,525,526,558,559,592,593,627,628,663,664,700,701,738,739,777,778,817,818,858,859,900,901,943,944,987,988,1032,1033,1078,1079,1125,1126,1173,1174,1222,1223,1272,1273,1323,1324 mov $2,$0 div $0,2 add $2,$0 bin $0,2 add $0,$2
54.222222
385
0.717213
1b7327db12a1c08676cad7bef982061c15edc1a8
653
asm
Assembly
oeis/315/A315312.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/315/A315312.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/315/A315312.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A315312: Coordination sequence Gal.6.639.4 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; Submitted by Simon Strandgaard ; 1,6,10,16,20,26,32,38,42,48,52,58,64,68,74,78,84,90,96,100,106,110,116,122,126,132,136,142,148,154,158,164,168,174,180,184,190,194,200,206,212,216,222,226,232,238,242,248,252,258 mov $1,$0 mov $2,$0 mul $0,12 sub $0,1 seq $1,312927 ; Coordination sequence Gal.6.149.5 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. mod $0,$1 add $0,1 mul $2,2 add $0,$2
46.642857
182
0.735069
f6104c5787a39728a2e384f75f3a9dc0daf39f3c
358
asm
Assembly
src/cpu/gdt.asm
ayush7788/wolfx_kernel
e3bf7b46f44e78705599764660681bce51649a1a
[ "MIT" ]
6
2021-02-15T11:15:47.000Z
2021-03-18T21:42:23.000Z
src/cpu/gdt.asm
ayush7788/wolfx_kernel
e3bf7b46f44e78705599764660681bce51649a1a
[ "MIT" ]
6
2021-02-16T01:56:27.000Z
2021-03-15T06:34:12.000Z
src/cpu/gdt.asm
ayush7788/wolfx_kernel
e3bf7b46f44e78705599764660681bce51649a1a
[ "MIT" ]
1
2021-05-14T02:01:23.000Z
2021-05-14T02:01:23.000Z
[bits 32] section .text global gdt_flush ;make gdt_flush a global function gdt_flush: mov eax, DWORD [esp + 4] lgdt [eax] ;lgdt the passed gdt structure mov ax, 10h mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax jmp 08h:flush flush: ret
19.888889
69
0.497207
6e2fc09d9dfc9d620e78e9d125d22223a683ff0e
449
asm
Assembly
libsrc/msx/gen_ldirmv.asm
Toysoft/z88dk
f930bef9ac4feeec91a07303b79ddd9071131a24
[ "ClArtistic" ]
null
null
null
libsrc/msx/gen_ldirmv.asm
Toysoft/z88dk
f930bef9ac4feeec91a07303b79ddd9071131a24
[ "ClArtistic" ]
null
null
null
libsrc/msx/gen_ldirmv.asm
Toysoft/z88dk
f930bef9ac4feeec91a07303b79ddd9071131a24
[ "ClArtistic" ]
1
2019-12-03T23:28:20.000Z
2019-12-03T23:28:20.000Z
; ; z88dk library: Generic VDP support code ; ; LDIRMV ; ; ; $Id: gen_ldirmv.asm$ ; SECTION code_clib PUBLIC LDIRMV PUBLIC _LDIRMV EXTERN SETRD INCLUDE "msx/vdp.inc" LDIRMV: _LDIRMV: push bc call SETRD pop bc ex (sp),hl ;Timing ex (sp),hl loop: IF VDP_DATAIN < 0 ld a,(-VDP_DATAIN) ELSE IF VDP_DATAIN > 255 ld a,VDP_DATAIN / 256 ENDIF in a,(VDP_DATAIN % 256) ENDIF ld (de),a inc de dec bc ld a,b or c jr nz,loop ret
10.95122
41
0.66147
02694a6ba5d1e69f3192ad9ac06a9f9c01d44260
2,484
asm
Assembly
example/psg_direct/program.asm
suzukiplan/fcs80
a0db6b3ed95fc3f14fd0946550fe1b03cfd0f960
[ "MIT" ]
2
2021-07-01T10:10:13.000Z
2022-03-02T04:41:32.000Z
example/psg_direct/program.asm
suzukiplan/fcs80
a0db6b3ed95fc3f14fd0946550fe1b03cfd0f960
[ "MIT" ]
3
2021-03-14T07:02:11.000Z
2021-07-20T05:49:32.000Z
example/psg_direct/program.asm
suzukiplan/fcs80
a0db6b3ed95fc3f14fd0946550fe1b03cfd0f960
[ "MIT" ]
1
2021-07-01T10:10:15.000Z
2021-07-01T10:10:15.000Z
org $0000 .main ; 割り込み関連の初期化 IM 1 DI ; VBLANKを待機 call wait_vblank ; メインループ mainloop: ld hl, data_00 call psgdrv_execute call wait_vblank jmp mainloop ; VBLANKになるまで待機 .wait_vblank ld hl, $9607 wait_vblank_loop: ld a, (hl) and $80 jp z, wait_vblank_loop ret include "psgdrv.asm" ; シーケンスデータ(きらきら星) data_00: defb $65, %10111000 ; setup mixing (noise disable & tone enable) data_01: defb $60, $04, $61, $02, $62, $01 ; setup software evelope data_pb: defb $70, $00, $71, $00, $72, $99, $73, $00, $74, $00, $75, $00 ; pitch bend settings data_nz: defb $64, $20 ; noise data_st: defb $66 ; loop mark data_02: defb $01, $AC, $3F, $13, $57, $4F, $65, %10111000, $22, $22, $5F, $63, $10, $12, $3B, $4F, $63, $10, $3F, $12, $A7, $4F, $65, %10011100, $5F, $63, $10, $12, $3B, $4F, $63, $10 ; Ch0: c4 c4, Ch1: c8 g8 e8 g8 data_03: defb $01, $1D, $3F, $13, $57, $4F, $65, %10111000, $22, $22, $5F, $63, $10, $12, $3B, $4F, $22, $22, $5F, $63, $10, $3F, $12, $A7, $4F, $65, %10011100, $5F, $63, $10, $12, $3B, $4F, $63, $10 ; Ch0: g4 g4, Ch1: c8 g8 e8 g8 data_04: defb $00, $FE, $3F, $13, $57, $4F, $65, %10111000, $22, $22, $5F, $63, $10, $11, $FD, $4F, $63, $10, $3F, $12, $81, $4F, $65, %10011100, $5F, $63, $10, $11, $FD, $4F, $63, $10 ; Ch0: a4 a4, Ch1: c8 a8 f8 a8 data_05: defb $01, $1D, $3F, $13, $57, $4F, $65, %10111000, $22, $22, $5F, $63, $10, $12, $3B, $4F, $22, $22, $5F, $63, $10, $12, $A7, $4F, $65, %10011100, $5F, $63, $10, $12, $3B, $4F, $63, $10 ; Ch0: g4 r4, Ch1: c8 g8 e8 g8 data_06: defb $01, $40, $3F, $13, $8A, $4F, $65, %10111000, $22, $22, $5F, $63, $10, $12, $3B, $4F, $63, $10, $3F, $12, $FA, $4F, $65, %10011100, $5F, $63, $10, $12, $3B, $4F, $63, $10 ; Ch0: f4 f4, Ch1: b8 g8 d8 g8 data_07: defb $01, $53, $3F, $13, $57, $4F, $65, %10111000, $22, $22, $5F, $63, $10, $12, $3B, $4F, $22, $22, $5F, $63, $10, $3F, $12, $A7, $4F, $65, %10011100, $5F, $63, $10, $12, $3B, $4F, $63, $10 ; Ch0: e4 e4, Ch1: c8 g8 e8 g8 data_08: defb $01, $7D, $3F, $13, $8A, $4F, $65, %10111000, $22, $22, $5F, $63, $10, $12, $3B, $4F, $63, $10, $3F, $12, $FA, $4F, $65, %10011100, $5F, $63, $10, $12, $3B, $4F, $63, $10 ; Ch0: d4 d4, Ch1: b8 g8 d8 g8 data_09: defb $01, $AC, $3F, $13, $57, $4F, $65, %10111000, $22, $22, $5F, $63, $10, $12, $3B, $4F, $22, $22, $5F, $63, $10, $12, $A7, $4F, $65, %10011100, $5F, $63, $10, $12, $3B, $4F, $63, $10 ; Ch0: c4 r4, Ch1: c8 g8 e8 g8 data_ed: defb $67 ; Jump to loop mark
57.767442
230
0.525362
61efaa94c4d6885940e86bd46edfea0631d89351
798
asm
Assembly
oeis/291/A291229.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/291/A291229.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/291/A291229.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A291229: p-INVERT of (0,1,0,1,0,1,...), where p(S) = (1 - S)(1 - 2 S). ; Submitted by Christian Krause ; 3,7,18,45,111,272,663,1611,3906,9457,22875,55296,133611,322751,779490,1882341,4545159,10974256,26496255,63970947,154444914,372871721,900206067,2173312512,5246877459,12667142455,30581283762,73829906397,178241414367,430313249360,1038868745127,2508052085883,6054975095202,14618005800865,35290992399819,85199999827968,205691006986107,496582037957999,1198855121990274,2894292345184533,6987439914693495,16869172340151664,40725784862911119,98320742499468339,237367270563256530,573055284760884569 add $0,1 mov $1,1 mov $5,1 lpb $0 sub $0,1 mov $2,$1 add $1,$3 add $1,1 sub $4,2 sub $3,$4 add $3,$5 mov $4,$2 mov $2,$3 add $5,$4 mov $3,$5 add $4,$1 add $5,$2 lpe mov $0,$4
33.25
490
0.745614
f351a446719f41ea4f613db28237fc6fc19f9ffa
1,860
asm
Assembly
Triagle/trangle.asm
KKodiac/assembly-macosx
3afd5cac1a3c7bd95b3a81895cb946dba35fb025
[ "MIT" ]
null
null
null
Triagle/trangle.asm
KKodiac/assembly-macosx
3afd5cac1a3c7bd95b3a81895cb946dba35fb025
[ "MIT" ]
null
null
null
Triagle/trangle.asm
KKodiac/assembly-macosx
3afd5cac1a3c7bd95b3a81895cb946dba35fb025
[ "MIT" ]
null
null
null
global start section .text start: mov rdx, output ; rdx holds address of next byte to write mov r8, 1 ; initial line length mov r9, 0 ; number of stars written on line so far line: mov byte [rdx], '*' ; write single star inc rdx ; advance pointer to next cell to write inc r9 ; "count" number so far on line cmp r9, r8 ; did we reach the number of stars for this line? jne line ; not yet, keep writing on this line lineDone: mov byte [rdx], 10 ; write a new line char inc rdx ; and move pointer to where next char goes inc r8 ; next line will be one char longer mov r9, 0 ; reset count of stars written on this line cmp r8, maxlines ; wait, did we already finish the last line? jng line ; if not, begin writing this line done: mov rax, 0x02000004 ; system call for write mov rdi, 1 ; file handle 1 is stdout mov rsi, output ; address of string to output mov rdx, dataSize ; number of bytes syscall ; invoke operating system to do the write mov rax, 0x02000001 ; system call for exit xor rdi, rdi ; exit code 0 syscall ; invoke operating system to exit section .bss maxlines equ 8 dataSize equ 44 output: resb dataSize
54.705882
93
0.447312
e79951858efa6c3ba6ee0f7805a7641aecfa775b
452
asm
Assembly
assembler/tests/t_charset/t_charset.asm
paulscottrobson/RCA-Cosmac-VIP-III
5d3fcea325aacb7c99269f266bc14e30439cdc2b
[ "MIT" ]
null
null
null
assembler/tests/t_charset/t_charset.asm
paulscottrobson/RCA-Cosmac-VIP-III
5d3fcea325aacb7c99269f266bc14e30439cdc2b
[ "MIT" ]
null
null
null
assembler/tests/t_charset/t_charset.asm
paulscottrobson/RCA-Cosmac-VIP-III
5d3fcea325aacb7c99269f266bc14e30439cdc2b
[ "MIT" ]
null
null
null
cpu 8080 ; note: CHARSET also acts on arguments of CHARSET itself, ; so 'charset 'a','z',1 | charset 'd',255 won't work as expected. charset 'a','c',1 charset 'd',255 charset 'e','z',5 db "drei droege drachen drehen durch" ; alternate way of doing it: 100 is ASCII code of 'd' charset charset 'a','z',1 charset 100,255 db "drei droege drachen drehen durch" ; back to normality: charset db "drei droege drachen drehen durch"
20.545455
73
0.672566
774ddba76bc720287b90e23b411f3ead394ffdf0
789
asm
Assembly
oeis/328/A328353.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/328/A328353.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/328/A328353.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A328353: a(n)*S is the sum of all positive integers whose decimal expansion is up to n digits and uses six distinct nonzero digits d1,d2,d3,d4,d5,d6 such that d1+d2+d3+d4+d5+d6=S. ; 0,1,67,4063,244039,14643895,878643031,52718637847,3163118606743,189787118420119,11387227117300375,683233627110581911,40994017627070271127,2459641057626828406423,147578463457625377218199,8854707807457616670088855,531282468447457564427312791,31876948106847457250970656407,1912616886410847455370230718103,114757013184650847444085791088279,6885420791079050847376379153309335,413125247464743050846970139326635671,24787514847884583050844532700366593687,1487250890873074983050829908066606341783 lpb $0 mov $2,$0 sub $0,1 seq $2,86578 ; a(n) = 7*(10^n - 1). add $3,$2 mul $3,6 lpe mov $0,$3 div $0,378
60.692308
489
0.831432
4c248f421e43c0d1deef30f68f839e6b309b8f77
713
asm
Assembly
sound/sfxasm/D3.asm
NatsumiFox/Sonic-3-93-Nov-03
032e4fc25f243636d458639c4a4311caca898f96
[ "MIT" ]
7
2019-12-05T00:35:57.000Z
2022-02-27T20:00:33.000Z
sound/sfxasm/D3.asm
NatsumiFox/Sonic-3-93-Nov-03
032e4fc25f243636d458639c4a4311caca898f96
[ "MIT" ]
null
null
null
sound/sfxasm/D3.asm
NatsumiFox/Sonic-3-93-Nov-03
032e4fc25f243636d458639c4a4311caca898f96
[ "MIT" ]
null
null
null
D3_Header: sHeaderInit ; Z80 offset is $DD71 sHeaderPatch D3_Patches sHeaderTick $01 sHeaderCh $01 sHeaderSFX $80, $05, D3_FM5, $F8, $03 D3_FM5: sPatFM $00 dc.b nG3, $06, nRst, $06, nG3, $24 sStop D3_Patches: ; Patch $00 ; $41 ; $01, $07, $01, $01, $8E, $8E, $8D, $53 ; $0E, $0E, $0E, $03, $00, $00, $00, $00 ; $1F, $FF, $1F, $0F, $0C, $29, $15, $80 spAlgorithm $01 spFeedback $00 spDetune $00, $00, $00, $00 spMultiple $01, $01, $07, $01 spRateScale $02, $02, $02, $01 spAttackRt $0E, $0D, $0E, $13 spAmpMod $00, $00, $00, $00 spSustainRt $0E, $0E, $0E, $03 spSustainLv $01, $01, $0F, $00 spDecayRt $00, $00, $00, $00 spReleaseRt $0F, $0F, $0F, $0F spTotalLv $0C, $15, $29, $00
22.28125
41
0.579243
6d5e26746dc204377a429d89a92cca6c157a5f30
22,043
asm
Assembly
src/test/resources/data/generationtests/sdcc-base-dialect-expected.asm
cpcitor/mdlz80optimizer
75070d984e1f08474e6d397c7e0eb66d8be0c432
[ "Apache-2.0" ]
36
2020-06-29T06:52:26.000Z
2022-02-10T19:41:58.000Z
src/test/resources/data/generationtests/sdcc-base-dialect-expected.asm
cpcitor/mdlz80optimizer
75070d984e1f08474e6d397c7e0eb66d8be0c432
[ "Apache-2.0" ]
39
2020-07-02T18:19:34.000Z
2022-03-27T18:08:54.000Z
src/test/resources/data/generationtests/sdcc-base-dialect-expected.asm
cpcitor/mdlz80optimizer
75070d984e1f08474e6d397c7e0eb66d8be0c432
[ "Apache-2.0" ]
7
2020-07-02T06:00:05.000Z
2021-11-28T17:31:13.000Z
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 3.9.0 #11195 (Mac OS X x86_64) ;-------------------------------------------------------- .module graphics .optsdcc -mz80 ;-------------------------------------------------------- ; Public variables in this module ;-------------------------------------------------------- .globl _TMS99X8_memset .globl _TMS99X8_memcpy128 .globl _TMS99X8_memcpy64 .globl _TMS99X8_memcpy32 .globl _TMS99X8_memcpy16 .globl _TMS99X8_memcpy8 .globl _TMS99X8_memcpy_slow .globl _TMS99X8_activateMode2 .globl _textProperties .globl _SA .globl _TMS99X8_status .globl _TMS99X8 .globl _initCanvas .globl _undoPoint .globl _setROI .globl _setPoint .globl _setPoints_v8 .globl _setPoints_v8c .globl _getPoints_v8 .globl _setHistoricPoint .globl _restoreHistoricPoint .globl _setPointFG .globl _setPointBG .globl _rectangle .globl _rectangleColor .globl _setHLine .globl _writeText .globl _lineFast ;-------------------------------------------------------- ; special function registers ;-------------------------------------------------------- _VDP0 .equ 0x0098 _VDP1 .equ 0x0099 ;-------------------------------------------------------- ; ram data ;-------------------------------------------------------- .area _DATA _TMS99X8 .equ 0xf3df _TMS99X8_status .equ 0xf3e7 _SA:: .ds 128 _history_location: .ds 512 _history_value: .ds 256 _history_shift: .ds 256 _history_pt: .ds 1 _ROI_x0: .ds 1 _ROI_x1: .ds 1 _ROI_y0: .ds 1 _ROI_y1: .ds 1 _textProperties:: .ds 20 _screen_copy .equ 0xd000 _offset_x .equ 0xe800 _offset_y .equ 0xea00 _shift8 .equ 0xec00 ;-------------------------------------------------------- ; ram data ;-------------------------------------------------------- .area _INITIALIZED ;-------------------------------------------------------- ; absolute external ram data ;-------------------------------------------------------- .area _DABS (ABS) ;-------------------------------------------------------- ; global & static initialisations ;-------------------------------------------------------- .area _HOME .area _GSINIT .area _GSFINAL .area _GSINIT ;-------------------------------------------------------- ; Home ;-------------------------------------------------------- .area _HOME .area _HOME ;-------------------------------------------------------- ; code ;-------------------------------------------------------- .area _CODE ;src//graphics/graphics.c:89: void initCanvas() { ; --------------------------------- ; Function initCanvas ; --------------------------------- _initCanvas:: push ix ld ix, #0 add ix, sp ld hl, #-7 add hl, sp ld sp, hl ;src//graphics/graphics.c:94: TMS99X8_activateMode2(MODE2_ALL_ROWS); ld a, #0x07 push af inc sp call _TMS99X8_activateMode2 inc sp ;src//graphics/graphics.c:97: for (uint8_t n=0; n<32; n++) { SA[n].y = 209; } ld c, #0x00 00216$: ld a, c sub #0x20 jr nc, 00101$ ld l, c ld h, #0x00 add hl, hl add hl, hl ld de, #_SA add hl, de ld (hl), #0xd1 inc c jr 00216$ 00101$: ;src//graphics/graphics.c:98: TMS99X8_writeSpriteAttributes(0,SA); ;sdcc_msx/inc/tms99X8.h:294: TMS99X8_memcpy(MODE2_ADDRESS_SA0, (const uint8_t *)sa, sizeof(T_SA)); ;sdcc_msx/inc/tms99X8.h:217: VDP1 = dst & 0xFF; ld a, #0x00 out (#_VDP1), a ;sdcc_msx/inc/tms99X8.h:218: VDP1 = 0x40 | (dst>>8); ld a, #0x1f or #0x40 out (#_VDP1), a ;sdcc_msx/inc/tms99X8.h:273: else if (size == 128) { TMS99X8_setPtr(dst); TMS99X8_memcpy128(src); } ld hl, #_SA call _TMS99X8_memcpy128 ;src//graphics/graphics.c:101: TMS99X8.sprites16 = true; ld hl, #(_TMS99X8 + 0x0001) set 1, (hl) ;sdcc_msx/inc/tms99X8.h:188: register uint8_t *r = (uint8_t *)TMS99X8; ld bc, #_TMS99X8 ;sdcc_msx/inc/tms99X8.h:189: VDP1 = *r++; ld a, (bc) out (#_VDP1), a inc bc ;sdcc_msx/inc/tms99X8.h:190: VDP1 = 0x80 | 0; ld a, #0x80 out (#_VDP1), a ;sdcc_msx/inc/tms99X8.h:191: VDP1 = *r++; ld a, (bc) out (#_VDP1), a ;sdcc_msx/inc/tms99X8.h:192: VDP1 = 0x80 | 1; ld a, #0x81 out (#_VDP1), a ;src//graphics/graphics.c:107: do { ld -1 (ix), #0x00 00102$: ;src//graphics/graphics.c:108: scratchpad[((i<<5)&0xFF) + (i>>3)] = i; ld l, -1 (ix) ld h, #0x00 add hl, hl add hl, hl add hl, hl add hl, hl add hl, hl ld -7 (ix), l ld -6 (ix), #0x00 ld a, -1 (ix) rrca rrca rrca and #0x1f ld -5 (ix), a ld -4 (ix), #0x00 ld a, -7 (ix) add a, -5 (ix) ld -3 (ix), a ld a, -6 (ix) adc a, -4 (ix) ld -2 (ix), a ld a, #<(_scratchpad) add a, -3 (ix) ld -5 (ix), a ld a, #>(_scratchpad) adc a, -2 (ix) ld -4 (ix), a pop bc pop hl push hl push bc ld a, -1 (ix) ld (hl), a ;src//graphics/graphics.c:109: } while (++i != 0); inc -1 (ix) ld a, -1 (ix) or a jr nz, 00102$ ;src//graphics/graphics.c:112: TMS99X8_memcpy(MODE2_ADDRESS_PN0 + 0x0000, (const uint8_t *)scratchpad, 256); ;sdcc_msx/inc/tms99X8.h:274: else TMS99X8_memcpy_slow(dst,src,size); ld hl, #0x0100 push hl ld hl, #_scratchpad push hl ld hl, #0x1800 push hl call _TMS99X8_memcpy_slow ld hl, #6 add hl, sp ld sp, hl ;src//graphics/graphics.c:113: TMS99X8_memcpy(MODE2_ADDRESS_PN0 + 0x0100, (const uint8_t *)scratchpad, 256); ;sdcc_msx/inc/tms99X8.h:274: else TMS99X8_memcpy_slow(dst,src,size); ld hl, #0x0100 push hl ld hl, #_scratchpad push hl ld hl, #0x1900 push hl call _TMS99X8_memcpy_slow ld hl, #6 add hl, sp ld sp, hl ;src//graphics/graphics.c:114: TMS99X8_memcpy(MODE2_ADDRESS_PN0 + 0x0200, (const uint8_t *)scratchpad, 256); ;sdcc_msx/inc/tms99X8.h:274: else TMS99X8_memcpy_slow(dst,src,size); ld hl, #0x0100 push hl ld hl, #_scratchpad push hl ld hl, #0x1a00 push hl call _TMS99X8_memcpy_slow ld hl, #6 add hl, sp ld sp, hl ;src//graphics/graphics.c:116: TMS99X8_memset(MODE2_ADDRESS_PG, 0, sizeof(T_PG)); ld hl, #0x1800 push hl xor a push af inc sp ld h, #0x00 push hl call _TMS99X8_memset pop af pop af inc sp ;src//graphics/graphics.c:117: memset(screen_copy,0,sizeof(screen_copy)); ld hl, #_screen_copy ld (hl), #0x00 ld e, l ld d, h inc de ld bc, #0x17ff ldir ;src//graphics/graphics.c:119: memcpy(offset_x, Coffset_x, sizeof(offset_x)); ld de, #_offset_x ld hl, #_Coffset_x ld bc, #0x0200 ldir ;src//graphics/graphics.c:120: memcpy(offset_y, Coffset_y, sizeof(offset_y)); ld de, #_offset_y ld hl, #_Coffset_y ld bc, #0x0200 ldir ;src//graphics/graphics.c:121: memcpy(shift8, Cshift8, sizeof(shift8)); ld de, #_shift8 ld hl, #_Cshift8 ld bc, #0x0100 ldir ;src//graphics/graphics.c:123: TMS99X8_memset(MODE2_ADDRESS_CT, FWhite + BTransparent, sizeof(T_CT)); ld hl, #0x1800 push hl ld a, #0xf0 push af inc sp ld h, #0x20 push hl call _TMS99X8_memset pop af pop af inc sp ;src//graphics/graphics.c:125: history_pt = 0; ld hl, #(_history_pt + 0) ld (hl), #0x00 ;src//graphics/graphics.c:127: memset(&textProperties,0,sizeof(textProperties)); ld bc, #(_textProperties + 0) ld l, c ld h, b push bc ld b, #0x0a 00268$: xor a ld (hl), a inc hl ld (hl), a inc hl djnz 00268$ pop bc ;src//graphics/graphics.c:129: textProperties.font_segment = MODULE_SEGMENT(font_tiny,PAGE_D); ld a, #<(_MAPPER_MODULE_font_tiny_PAGE_D) ld (bc), a ;src//graphics/graphics.c:130: textProperties.font_pts = font_tiny_pts; ld hl, #_font_tiny_pts ld ((_textProperties + 0x0001)), hl ;src//graphics/graphics.c:131: textProperties.font_pos = font_tiny_pos; ld hl, #_font_tiny_pos ld ((_textProperties + 0x0003)), hl ;src//graphics/graphics.c:132: textProperties.font_len = font_tiny_len; ld hl, #_font_tiny_len ld ((_textProperties + 0x0005)), hl ;src//graphics/graphics.c:134: textProperties.value = 1; ld hl, #(_textProperties + 0x000c) ld (hl), #0x01 ;src//graphics/graphics.c:135: textProperties.color = FWhite + BTransparent; ld hl, #(_textProperties + 0x000d) ld (hl), #0xf0 ;src//graphics/graphics.c:136: textProperties.sz = 1; ld hl, #(_textProperties + 0x000e) ld (hl), #0x01 ;src//graphics/graphics.c:137: textProperties.space_between_lines = 7; ld hl, #(_textProperties + 0x0007) ld (hl), #0x07 ;src//graphics/graphics.c:139: setROI(0,0,255,191); ld de, #0xbfff push de xor a push af inc sp xor a push af inc sp call _setROI ;src//graphics/graphics.c:140: } ld sp, ix pop ix ret _Coffset_y: .word #0x0000 .word #0x0001 .word #0x0002 .word #0x0003 .word #0x0004 .word #0x0005 .word #0x0006 .word #0x0007 .word #0x0008 .word #0x0009 .word #0x000a .word #0x000b .word #0x000c .word #0x000d .word #0x000e .word #0x000f .word #0x0010 .word #0x0011 .word #0x0012 .word #0x0013 .word #0x0014 .word #0x0015 .word #0x0016 .word #0x0017 .word #0x0018 .word #0x0019 .word #0x001a .word #0x001b .word #0x001c .word #0x001d .word #0x001e .word #0x001f .word #0x0020 .word #0x0021 .word #0x0022 .word #0x0023 .word #0x0024 .word #0x0025 .word #0x0026 .word #0x0027 .word #0x0028 .word #0x0029 .word #0x002a .word #0x002b .word #0x002c .word #0x002d .word #0x002e .word #0x002f .word #0x0030 .word #0x0031 .word #0x0032 .word #0x0033 .word #0x0034 .word #0x0035 .word #0x0036 .word #0x0037 .word #0x0038 .word #0x0039 .word #0x003a .word #0x003b .word #0x003c .word #0x003d .word #0x003e .word #0x003f .word #0x0800 .word #0x0801 .word #0x0802 .word #0x0803 .word #0x0804 .word #0x0805 .word #0x0806 .word #0x0807 .word #0x0808 .word #0x0809 .word #0x080a .word #0x080b .word #0x080c .word #0x080d .word #0x080e .word #0x080f .word #0x0810 .word #0x0811 .word #0x0812 .word #0x0813 .word #0x0814 .word #0x0815 .word #0x0816 .word #0x0817 .word #0x0818 .word #0x0819 .word #0x081a .word #0x081b .word #0x081c .word #0x081d .word #0x081e .word #0x081f .word #0x0820 .word #0x0821 .word #0x0822 .word #0x0823 .word #0x0824 .word #0x0825 .word #0x0826 .word #0x0827 .word #0x0828 .word #0x0829 .word #0x082a .word #0x082b .word #0x082c .word #0x082d .word #0x082e .word #0x082f .word #0x0830 .word #0x0831 .word #0x0832 .word #0x0833 .word #0x0834 .word #0x0835 .word #0x0836 .word #0x0837 .word #0x0838 .word #0x0839 .word #0x083a .word #0x083b .word #0x083c .word #0x083d .word #0x083e .word #0x083f .word #0x1000 .word #0x1001 .word #0x1002 .word #0x1003 .word #0x1004 .word #0x1005 .word #0x1006 .word #0x1007 .word #0x1008 .word #0x1009 .word #0x100a .word #0x100b .word #0x100c .word #0x100d .word #0x100e .word #0x100f .word #0x1010 .word #0x1011 .word #0x1012 .word #0x1013 .word #0x1014 .word #0x1015 .word #0x1016 .word #0x1017 .word #0x1018 .word #0x1019 .word #0x101a .word #0x101b .word #0x101c .word #0x101d .word #0x101e .word #0x101f .word #0x1020 .word #0x1021 .word #0x1022 .word #0x1023 .word #0x1024 .word #0x1025 .word #0x1026 .word #0x1027 .word #0x1028 .word #0x1029 .word #0x102a .word #0x102b .word #0x102c .word #0x102d .word #0x102e .word #0x102f .word #0x1030 .word #0x1031 .word #0x1032 .word #0x1033 .word #0x1034 .word #0x1035 .word #0x1036 .word #0x1037 .word #0x1038 .word #0x1039 .word #0x103a .word #0x103b .word #0x103c .word #0x103d .word #0x103e .word #0x103f .word #0x1800 .word #0x1801 .word #0x1802 .word #0x1803 .word #0x1804 .word #0x1805 .word #0x1806 .word #0x1807 .word #0x1808 .word #0x1809 .word #0x180a .word #0x180b .word #0x180c .word #0x180d .word #0x180e .word #0x180f .word #0x1810 .word #0x1811 .word #0x1812 .word #0x1813 .word #0x1814 .word #0x1815 .word #0x1816 .word #0x1817 .word #0x1818 .word #0x1819 .word #0x181a .word #0x181b .word #0x181c .word #0x181d .word #0x181e .word #0x181f .word #0x1820 .word #0x1821 .word #0x1822 .word #0x1823 .word #0x1824 .word #0x1825 .word #0x1826 .word #0x1827 .word #0x1828 .word #0x1829 .word #0x182a .word #0x182b .word #0x182c .word #0x182d .word #0x182e .word #0x182f .word #0x1830 .word #0x1831 .word #0x1832 .word #0x1833 .word #0x1834 .word #0x1835 .word #0x1836 .word #0x1837 .word #0x1838 .word #0x1839 .word #0x183a .word #0x183b .word #0x183c .word #0x183d .word #0x183e .word #0x183f _Coffset_x: .word #0x0000 .word #0x0000 .word #0x0000 .word #0x0000 .word #0x0000 .word #0x0000 .word #0x0000 .word #0x0000 .word #0x0040 .word #0x0040 .word #0x0040 .word #0x0040 .word #0x0040 .word #0x0040 .word #0x0040 .word #0x0040 .word #0x0080 .word #0x0080 .word #0x0080 .word #0x0080 .word #0x0080 .word #0x0080 .word #0x0080 .word #0x0080 .word #0x00c0 .word #0x00c0 .word #0x00c0 .word #0x00c0 .word #0x00c0 .word #0x00c0 .word #0x00c0 .word #0x00c0 .word #0x0100 .word #0x0100 .word #0x0100 .word #0x0100 .word #0x0100 .word #0x0100 .word #0x0100 .word #0x0100 .word #0x0140 .word #0x0140 .word #0x0140 .word #0x0140 .word #0x0140 .word #0x0140 .word #0x0140 .word #0x0140 .word #0x0180 .word #0x0180 .word #0x0180 .word #0x0180 .word #0x0180 .word #0x0180 .word #0x0180 .word #0x0180 .word #0x01c0 .word #0x01c0 .word #0x01c0 .word #0x01c0 .word #0x01c0 .word #0x01c0 .word #0x01c0 .word #0x01c0 .word #0x0200 .word #0x0200 .word #0x0200 .word #0x0200 .word #0x0200 .word #0x0200 .word #0x0200 .word #0x0200 .word #0x0240 .word #0x0240 .word #0x0240 .word #0x0240 .word #0x0240 .word #0x0240 .word #0x0240 .word #0x0240 .word #0x0280 .word #0x0280 .word #0x0280 .word #0x0280 .word #0x0280 .word #0x0280 .word #0x0280 .word #0x0280 .word #0x02c0 .word #0x02c0 .word #0x02c0 .word #0x02c0 .word #0x02c0 .word #0x02c0 .word #0x02c0 .word #0x02c0 .word #0x0300 .word #0x0300 .word #0x0300 .word #0x0300 .word #0x0300 .word #0x0300 .word #0x0300 .word #0x0300 .word #0x0340 .word #0x0340 .word #0x0340 .word #0x0340 .word #0x0340 .word #0x0340 .word #0x0340 .word #0x0340 .word #0x0380 .word #0x0380 .word #0x0380 .word #0x0380 .word #0x0380 .word #0x0380 .word #0x0380 .word #0x0380 .word #0x03c0 .word #0x03c0 .word #0x03c0 .word #0x03c0 .word #0x03c0 .word #0x03c0 .word #0x03c0 .word #0x03c0 .word #0x0400 .word #0x0400 .word #0x0400 .word #0x0400 .word #0x0400 .word #0x0400 .word #0x0400 .word #0x0400 .word #0x0440 .word #0x0440 .word #0x0440 .word #0x0440 .word #0x0440 .word #0x0440 .word #0x0440 .word #0x0440 .word #0x0480 .word #0x0480 .word #0x0480 .word #0x0480 .word #0x0480 .word #0x0480 .word #0x0480 .word #0x0480 .word #0x04c0 .word #0x04c0 .word #0x04c0 .word #0x04c0 .word #0x04c0 .word #0x04c0 .word #0x04c0 .word #0x04c0 .word #0x0500 .word #0x0500 .word #0x0500 .word #0x0500 .word #0x0500 .word #0x0500 .word #0x0500 .word #0x0500 .word #0x0540 .word #0x0540 .word #0x0540 .word #0x0540 .word #0x0540 .word #0x0540 .word #0x0540 .word #0x0540 .word #0x0580 .word #0x0580 .word #0x0580 .word #0x0580 .word #0x0580 .word #0x0580 .word #0x0580 .word #0x0580 .word #0x05c0 .word #0x05c0 .word #0x05c0 .word #0x05c0 .word #0x05c0 .word #0x05c0 .word #0x05c0 .word #0x05c0 .word #0x0600 .word #0x0600 .word #0x0600 .word #0x0600 .word #0x0600 .word #0x0600 .word #0x0600 .word #0x0600 .word #0x0640 .word #0x0640 .word #0x0640 .word #0x0640 .word #0x0640 .word #0x0640 .word #0x0640 .word #0x0640 .word #0x0680 .word #0x0680 .word #0x0680 .word #0x0680 .word #0x0680 .word #0x0680 .word #0x0680 .word #0x0680 .word #0x06c0 .word #0x06c0 .word #0x06c0 .word #0x06c0 .word #0x06c0 .word #0x06c0 .word #0x06c0 .word #0x06c0 .word #0x0700 .word #0x0700 .word #0x0700 .word #0x0700 .word #0x0700 .word #0x0700 .word #0x0700 .word #0x0700 .word #0x0740 .word #0x0740 .word #0x0740 .word #0x0740 .word #0x0740 .word #0x0740 .word #0x0740 .word #0x0740 .word #0x0780 .word #0x0780 .word #0x0780 .word #0x0780 .word #0x0780 .word #0x0780 .word #0x0780 .word #0x0780 .word #0x07c0 .word #0x07c0 .word #0x07c0 .word #0x07c0 .word #0x07c0 .word #0x07c0 .word #0x07c0 .word #0x07c0 _Cshift8: .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 .byte #0x80 ; 128 .byte #0x40 ; 64 .byte #0x20 ; 32 .byte #0x10 ; 16 .byte #0x08 ; 8 .byte #0x04 ; 4 .byte #0x02 ; 2 .byte #0x01 ; 1 ;src//graphics/graphics.c:143: void undoPoint() { ; --------------------------------- ; Function undoPoint ; --------------------------------- _undoPoint:: push ix ld ix, #0 add ix, sp push af ;src//graphics/graphics.c:145: uint16_t pos = history_location[history_pt]; ld bc, #(_history_location + 0) ld iy, #_history_pt ld l, 0 (iy) ld h, #0x00 add hl, hl ex (sp), hl pop hl push hl add hl, bc ld c, (hl) inc hl ld b, (hl) ;src//graphics/graphics.c:146: if (pos<(16*1024)) { ld a, b sub #0x40 jr nc, 00102$ ;sdcc_msx/inc/tms99X8.h:217: VDP1 = dst & 0xFF; ld a, c out (#_VDP1), a ;sdcc_msx/inc/tms99X8.h:218: VDP1 = 0x40 | (dst>>8); ld e, b ld d, #0x00 ld a, e or #0x40 out (#_VDP1), a ;src//graphics/graphics.c:148: TMS99X8_write(MODE2_ADDRESS_PG + (screen_copy[pos] = history_value[history_pt])); ld hl, #_screen_copy add hl, bc ex de, hl ld a, #<(_history_value) ld hl, #_history_pt add a, (hl) ld c, a ld a, #>(_history_value) adc a, #0x00 ld b, a ld a, (bc) ld (de), a out (#_VDP0), a 00102$: ;src//graphics/graphics.c:150: history_pt = (history_pt+255); ld hl, #(_history_pt + 0) dec (hl) ;src//graphics/graphics.c:151: } ld sp, ix pop ix ret .area _CODE .area _INITIALIZER .area _CABS (ABS) .ascii "some random sentence" some_label: some_constant .equ 1
18.77598
112
0.608084
1377b43efefcee998d1cb5a04bd3f345836559c6
5,778
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_834.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_834.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_834.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 %r14 push %r15 push %r8 push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x10754, %rbp nop nop nop nop nop and %rdi, %rdi vmovups (%rbp), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $1, %xmm5, %r14 nop add %r8, %r8 lea addresses_normal_ht+0x9bf4, %rsi lea addresses_UC_ht+0x1df58, %rdi nop nop nop sub %r8, %r8 mov $29, %rcx rep movsb nop nop nop sub $16272, %rbp lea addresses_WT_ht+0x153bc, %rsi lea addresses_UC_ht+0xdaed, %rdi nop inc %r14 mov $125, %rcx rep movsl nop xor $35155, %rcx lea addresses_normal_ht+0x9c44, %rdi nop nop nop nop nop cmp $2471, %r15 movb (%rdi), %r14b nop nop nop cmp %rbp, %rbp lea addresses_A_ht+0x18714, %r15 nop nop add %r8, %r8 vmovups (%r15), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $0, %xmm4, %r14 nop nop xor $58552, %rdi lea addresses_normal_ht+0xadf4, %rsi nop nop nop nop nop add %rcx, %rcx mov $0x6162636465666768, %r14 movq %r14, (%rsi) sub %rsi, %rsi lea addresses_UC_ht+0x1cdf4, %r14 nop nop nop nop nop inc %rdi mov $0x6162636465666768, %r15 movq %r15, %xmm1 vmovups %ymm1, (%r14) inc %rcx pop %rsi pop %rdi pop %rcx pop %rbp pop %r8 pop %r15 pop %r14 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r14 push %r15 push %rcx push %rdi push %rdx // Faulty Load lea addresses_WT+0x12df4, %r15 nop nop nop nop nop add %r14, %r14 movb (%r15), %cl lea oracles, %r15 and $0xff, %rcx shlq $12, %rcx mov (%r15,%rcx,1), %rcx pop %rdx pop %rdi pop %rcx pop %r15 pop %r14 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 5, 'size': 32, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 4, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 5, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 11, 'size': 32, '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 */
40.405594
2,999
0.661648
111949f4666a51bb44325ac3763b72249decf368
5,805
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2444.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_2444.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_2444.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 %r14 push %r8 push %r9 push %rbx push %rcx lea addresses_UC_ht+0x145cd, %rcx nop nop nop nop dec %r8 mov (%rcx), %bx nop xor $19116, %r14 lea addresses_UC_ht+0x7dad, %r12 nop dec %r10 mov (%r12), %rbx nop nop nop dec %rcx lea addresses_UC_ht+0x15315, %r8 clflush (%r8) nop dec %r9 mov (%r8), %r10d sub %r8, %r8 lea addresses_WT_ht+0x1e1ad, %r8 nop xor %rbx, %rbx mov $0x6162636465666768, %r14 movq %r14, %xmm5 vmovups %ymm5, (%r8) nop nop nop xor $25175, %rbx lea addresses_WC_ht+0x1e795, %r12 clflush (%r12) nop nop nop sub $61772, %rcx mov $0x6162636465666768, %r14 movq %r14, %xmm0 and $0xffffffffffffffc0, %r12 vmovaps %ymm0, (%r12) nop nop nop nop xor $64259, %r10 lea addresses_D_ht+0x1a66d, %r10 cmp %r9, %r9 mov $0x6162636465666768, %r14 movq %r14, %xmm4 movups %xmm4, (%r10) nop nop nop nop and %r12, %r12 lea addresses_WT_ht+0x129ad, %r14 nop nop inc %r8 movl $0x61626364, (%r14) nop nop nop nop nop xor %r10, %r10 lea addresses_WC_ht+0x18fad, %r10 nop nop nop nop add %rbx, %rbx movw $0x6162, (%r10) cmp %rbx, %rbx pop %rcx pop %rbx pop %r9 pop %r8 pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r15 push %rax push %rcx push %rsi // Faulty Load lea addresses_D+0x45ad, %r15 nop nop nop xor %rax, %rax mov (%r15), %rcx lea oracles, %rax and $0xff, %rcx shlq $12, %rcx mov (%rax,%rcx,1), %rcx pop %rsi pop %rcx pop %rax pop %r15 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 2, 'size': 2, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': True, 'congruent': 3, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 9, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': True, 'congruent': 3, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 6, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': True, 'congruent': 10, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 9, 'size': 2, 'same': False, 'NT': False}} {'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 */
40.880282
2,999
0.657192
2bb0f847744f068edb675f5d2ede8112a6352959
433
asm
Assembly
PRG/levels/Desert/2-2Exit.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/levels/Desert/2-2Exit.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/levels/Desert/2-2Exit.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
; Original address was $BF18 ; Pipe exit .word $0000 ; Alternate level layout .word $0000 ; Alternate object layout .byte LEVEL1_SIZE_02 | LEVEL1_YSTART_170 .byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 .byte LEVEL3_TILESET_09 | LEVEL3_VSCROLL_LOCKED | LEVEL3_PIPENOTEXIT .byte LEVEL4_BGBANK_INDEX(9) | LEVEL4_INITACT_NOTHING .byte LEVEL5_BGM_ATHLETIC | LEVEL5_TIME_300 .byte $38, $03, $A1, $40, $0A, $09, $FF
36.083333
69
0.773672
925acc4f747d2bac66c52c4c6e39febc8eaac929
536
asm
Assembly
programs/oeis/164/A164314.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/164/A164314.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/164/A164314.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A164314: Largest prime factor of n^2 - 2. ; 2,7,7,23,17,47,31,79,7,17,71,167,97,223,127,41,23,359,199,439,241,31,41,89,337,727,23,839,449,137,73,1087,577,1223,647,1367,103,31,47,73,881,1847,967,17,151,2207,1151,2399,1249,113,193,401,47,3023,1567,191,41,71,257,3719,113,3967,89,103,311,641,2311,4759,79,5039,2591,761,23,5623,2887,5927,3041,367,457,937,3361,97,3527,233,3697,47,79,7919,4049,487,4231,8647,631,1289,271,409,4801,239,4999,47 add $0,2 pow $0,2 sub $0,3 seq $0,6530 ; Gpf(n): greatest prime dividing n, for n >= 2; a(1)=1.
67
394
0.708955
f59cc783e627e4fc8bac354cd74c5680ce0fc83d
188
asm
Assembly
data/pokemon/dex_entries/beautifly.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
data/pokemon/dex_entries/beautifly.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
data/pokemon/dex_entries/beautifly.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
db "BUTTERFLY@" ; species name db "Brightly colored" next "wings are its most" next "prominent feature." page "It sucks sweet" next "flower nectar with" next "its long mouth.@"
18.8
31
0.691489
f341a09d89d84efffb146bb2d51025e05184174f
15,479
asm
Assembly
Driver/IFS/RFSD/rfsdUtil.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Driver/IFS/RFSD/rfsdUtil.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Driver/IFS/RFSD/rfsdUtil.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: RFSD FILE: rfsdUtil.asm AUTHOR: In Sik Rhee, 4/92 ROUTINES: Name Description ---- ----------- strncpy String copy strcpy String copy (0 terminated) strlen length of 0-terminated string PClientSem block until we get Client semaphore VClientSem release client semaphore PackageOutBuffer package variables into message buffer GetRemoteDiskHandle return mapped disk handle GetRegsFromBuffer get registers from packaged buffer RFSendBuffer send a buffer to the remote side ProcessLink call FSD, processing any links which show REVISION HISTORY: Name Date Description ---- ---- ----------- ISR 3/11/92 Initial revision DESCRIPTION: Utility functions for use $Id: rfsdUtil.asm,v 1.1 97/04/18 11:46:14 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Common segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LockFileList %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Locks down the file list CALLED BY: GLOBAL PASS: nada RETURN: ^lbx:si, *ds:si - file list DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 6/ 3/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ LockFileList proc far uses ax .enter segmov ds, dgroup, bx movdw bxsi, ds:[fileList] call MemLock mov ds, ax .leave ret LockFileList endp if ERROR_CHECK ECCheckBoundsESDIFar proc far call ECCheckBoundsESDI ret ECCheckBoundsESDIFar endp ECCheckBoundsESDI proc near segxchg ds, es xchg di, si call ECCheckBounds xchg di, si segxchg ds, es ret ECCheckBoundsESDI endp AssertESDgroup proc near push ax mov ax, es cmp ax, segment dgroup ERROR_NZ ES_NOT_DGROUP pop ax ret AssertESDgroup endp endif ;ERROR_CHECK COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% strncpy %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: copies a string given its size CALLED BY: GLOBAL PASS: ds:si - src es:di - dest cx - size RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: es:di must have space to fit ds:si string REVISION HISTORY: Name Date Description ---- ---- ----------- ISR 3/20/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ strncpy proc far uses cx,si,di .enter EC < call ECMemVerifyHeap > EC < call ECCheckBoundsESDI > EC < call ECCheckBounds > jcxz exit shr cx, 1 jnc 5$ movsb 5$: rep movsw ;strcpy EC < dec di > EC < dec si > EC < call ECCheckBoundsESDI > EC < call ECCheckBounds > EC < call ECMemVerifyHeap > exit: .leave ret strncpy endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% strcpy %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: copies a string (null-terminated) CALLED BY: GLOBAL PASS: ds:si - src es:di - dest RETURN: ax - # of chars copied including null DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: es:di must have space to fit ds:si string REVISION HISTORY: Name Date Description ---- ---- ----------- ISR 3/20/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ strcpy proc far uses cx,si,di .enter EC < call ECMemVerifyHeap > EC < call ECCheckBoundsESDI > EC < call ECCheckBounds > ; GET LENGTH OF SRC STRING segxchg ds,es push di mov di,si ;es:di - src mov cx, -1 clr ax repne scasb not cx ;CX <- # chars + null in src str mov ax,cx segxchg ds,es pop di ;ds:si - src buf es:di - dest buf shr cx, 1 jnc 5$ movsb 5$: rep movsw ;strcpy EC < dec di > EC < dec si > EC < call ECCheckBoundsESDI > EC < call ECCheckBounds > EC < call ECMemVerifyHeap > .leave ret strcpy endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% strlen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: gets length of null-terminated string CALLED BY: GLOBAL PASS: ds:si - string RETURN: cx - length, including null DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ISR 5/27/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ strlen proc far uses ax,es,di .enter EC < call ECCheckBounds > segmov es,ds,cx ;es:di - src mov di,si mov cx, -1 clr al repne scasb not cx ;# of chars + null .leave ret strlen endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PClientSem %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Block until we get the Client semaphore CALLED BY: RFFileEnum, SendMessageRemote, RFOpenConnection, RFSDCloseConnection PASS: nothing RETURN: z flag clear if closing the connection DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ISR 5/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ PClientSem proc far uses ax,bx,ds .enter segmov ds,dgroup,bx mov bx, ds:[clientSem] call ThreadPSem tst ds:[closingConnection] .leave ret PClientSem endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VClientSem %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: release Client semaphore CALLED BY: RFFileEnum, SendMessageRemote, RFOpenConnection, RFSDCloseConnection PASS: nothing RETURN: nothing DESTROYED: nothing (flags preserved) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ISR 5/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VClientSem proc far uses ax,bx,ds .enter pushf segmov ds,dgroup,bx mov bx,ds:[clientSem] call ThreadVSem popf .leave ret VClientSem endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrabNotificationTimer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Does a ThreadGrabThreadLock of the notification timer semaphore CALLED BY: GLOBAL PASS: nada RETURN: nada DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 6/15/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrabNotificationTimer proc far uses es, bx .enter pushf segmov es, dgroup, bx mov bx, es:[notificationTimerLock] call ThreadGrabThreadLock popf .leave ret GrabNotificationTimer endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ReleaseNotificationTimer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Releases the notification timer semaphore CALLED BY: GLOBAL PASS: nada RETURN: nada DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 6/15/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ReleaseNotificationTimer proc far uses es, bx .enter pushf segmov es, dgroup, bx mov bx, es:[notificationTimerLock] call ThreadReleaseThreadLock popf .leave ret ReleaseNotificationTimer endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PackageOutBuffer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: packages variables into a message buffer CALLED BY: CallRemote, SendReplyPassRegisters SendReplyRegsAndBufferInDSSI PASS: ax,bx,cx,dx,si - variables di - FSFunction (only for CallRemote) di = 0 for Reply bp - FSFunction RETURN: bx - mem handle cx - size of buffer DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ISR 5/14/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ PackageOutBuffer proc far uses ax,ds .enter EC < call ECCheckSegments > push ax, bx, cx mov ax, (size RFSHeader) + (size RFSRegisters) mov cx, (mask HF_SWAPABLE) or (((mask HAF_LOCK) or \ (mask HAF_NO_ERR)) shl 8) call RFSDMemAlloc mov ds, ax clr ds:[RPC_flags] ; clear all flags mov ds:[RPC_proc], RFS_REPLY ; assume reply mov ds:[RPC_FSFunction], bp tst di jz isReply ; continue if reply mov ds:[RPC_proc], RFS_FSFUNCTION ; fs call mov ds:[RPC_FSFunction], di EC < cmp ds:[RPC_FSFunction], FSFunction > EC < ERROR_AE ILLEGAL_FS_FUNCTION > isReply: mov ds:[RPC_regs].RFSR_dx, dx mov ds:[RPC_regs].RFSR_si, si pop ds:[RPC_regs].RFSR_ax, ds:[RPC_regs].RFSR_bx, ds:[RPC_regs].RFSR_cx mov cx, (size RFSHeader) + (size RFSRegisters) call MemUnlock .leave ret PackageOutBuffer endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% RFSendBufferWithRetries %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Tries to send the buffer a few times CALLED BY: GLOBAL PASS: same as RFSendBuffer RETURN: carry set if couldn't send DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 6/ 3/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ RFSendBufferWithRetries proc far uses dx .enter mov dx, NUM_RETRIES resend: call RFSendBuffer jnc exit dec dx ;Does not affect carry jnz resend ;Carry should be set here EC < ERROR_NC -1 > exit: .leave ret RFSendBufferWithRetries endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% RFSendBuffer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Send a buffer to the remote side CALLED BY: GLOBAL PASS: ds:si - buffer cx - size es - dgroup RETURN: carry set if error DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ISR 8/10/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ RFSendBuffer proc far uses ax,bx,cx,dx,si,di,bp,ds,es .enter EC < call ECCheckBounds > EC < call AssertESDgroup > EC < call ECMemVerifyHeap > ; Check that the start and end of the buffer are in bounds. EC < push si > EC < call ECCheckBounds > EC < add si, cx > EC < dec si > EC < call ECCheckBounds > EC < pop si > mov bx, es:[port] mov dx, es:[socket] call NetMsgSendBuffer ; ax - socket token .leave ret RFSendBuffer endp if 0 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ProcessLink %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: process any links encountered. CALLED BY: RFSD PASS: called after FSD returns a carry set ax - error code bx - if ax = ERROR_LINK_ENCOUNTERED, mem block of link info RETURN: carry set if ax != ERROR_LINK_ENCOUNTERED (no link) ds:dx - path es:bp - FSDriver es:si - diskdesc DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ISR 8/28/92 Initial version ; commented out! ProcessLink proc near uses ax,cx .enter ; here, carry was set, see if AX=ERROR_LINK_ENCOUNTERED and act accordingly cmp ax, ERROR_LINK_ENCOUNTERED stc jnz exit ; here, we have encountered a symbolic link, so we must call the FSD with ; the correct disk handle / path... call MemLock mov ds, ax mov si, offset FSLH_savedDisk clr cx call DiskRestore ; ax - disk handle pop cx EC< ERROR_C RFSD_CANT_RESTORE_DISK > mov si, ax ; es:si - DiskDesc mov dx, size FSLinkHeader add dx, ds:[FSLH_diskSize] ; ds:dx - path mov bp, es:[si].DD_drive ; es:bp - DriveStatusEntry mov bp, es:[bp].DSE_fsd ; es:bp - FSDriver clc exit: .leave ret ProcessLink endp DoPathOpAndLink %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Call FSD for PathOp and process links CALLED BY: RFSD PASS: called before FSD is called RETURN: results of FSD call DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ISR 8/31/92 Initial version DoPathOpAndLink proc near .enter push ax push bx push cx call es:[bp].FSD_strategy ; call it! dolink: jnc reply ; call ProcessLink jc reply mov di,bx pop cx pop bx pop ax push ax push bx push cx push di mov di, DR_FS_PATH_OP call es:[bp].FSD_strategy ; call pathOp mov di,bx pop bx call MemUnlock mov bx,di jmp dolink reply: pop di ; don't care about stored pop di ; values pop di .leave ret DoPathOpAndLink endp %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ endif if ERROR_CHECK ; ensure that interrupts are on here... AssertInterruptsEnabled proc far pushf push ax pushf pop ax test ax, mask CPU_INTERRUPT ERROR_Z INTERRUPTS_OFF_WHEN_THEY_SHOULD_NOT_BE test ax, mask CPU_DIRECTION ERROR_NZ DIRECTION_FLAG_SET_INCORRECTLY pop ax popf ret AssertInterruptsEnabled endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ECCheckFSDriver %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Make sure es:bp points to FSDriver CALLED BY: GLOBAL PASS: es:bp pointer to FSDriver RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ISR 7/ 1/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ECCheckFSDriver proc far .enter xchg di, bp call ECCheckBoundsESDI xchg di, bp tst es:[bp].FSD_diskPrivSize jnz error ; 0 - all except RFSD exit: .leave ret error: WARNING NOT_FSDRIVER jmp exit ; *** set breakpoint here. ECCheckFSDriver endp endif Common ends
22.208034
79
0.530977
6a8d8158164b5c7270722bd5a2df9a4fbb0fc5a9
914
asm
Assembly
src/test/ref/address-6.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/test/ref/address-6.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/test/ref/address-6.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
// Test declaring a variable as at a hard-coded address // mainmem-page hard-coded address parameter // Commodore 64 PRG executable file .file [name="address-6.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(__start) .label SCREEN = $400 .label idx = $3000 .segment Code __start: { // volatile char __address(0x3000) idx lda #0 sta idx jsr main rts } main: { // print('c') lda #'c' sta.z print.ch jsr print // print('m') lda #'m' sta.z print.ch jsr print // print('l') lda #'l' sta.z print.ch jsr print // } rts } // void print(__zp(2) volatile char ch) print: { .label ch = 2 // asm ldx idx lda ch sta SCREEN,x inc idx // } rts }
19.041667
60
0.605033
065d7f2dca07341e3d91c158a526ba9b4bf199de
762
asm
Assembly
oeis/126/A126694.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/126/A126694.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/126/A126694.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A126694: Expansion of g.f.: 1/(1 - 7*x*c(x)), where c(x) is the g.f. for A000108. ; Submitted by Jon Maiga ; 1,7,56,455,3710,30282,247254,2019087,16488710,134656130,1099686056,8980749862,73342721956,598965319960,4891549246290,39947649057855,326239122661830,2664286127154330,21758336553841440,177693081299126610,1451160161881060260,11851141314370518300,96784320705481921260,790405285654706032710,6454976499113196384540,52715641407919548968532,430511071492337379107984,3515840417165993350797692,28712696740107823222112480,234487023377239517036876500,1914977357579620106548398154,15638981753562446719226143903 mov $4,$0 add $0,1 lpb $0 sub $0,1 mov $3,$4 bin $3,$1 add $1,1 add $3,$2 mul $2,2 mul $3,5 add $2,$3 add $4,1 lpe mov $0,$3 div $0,5
38.1
499
0.796588
ca71bbb923d257c416943b4c3bfb514d163e136f
403
asm
Assembly
programs/oeis/046/A046978.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/046/A046978.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/046/A046978.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A046978: Numerators of Taylor series for exp(x)*sin(x). ; 0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0 mul $0,2 mov $1,$0 mov $2,1 lpb $1 sub $1,7 trn $1,0 sub $1,1 add $2,3 lpe bin $1,$2
28.785714
250
0.48139
c33bd1f9f76b771a88194bacef37fb963d8964cb
119,567
asm
Assembly
tmp1/c55x-sim2/foo/Debug/CSL_I2S_IntcExample.asm
jwestmoreland/eZdsp-DBG-sim
f6eacd75d4f928dec9c751545e9e919d052e4ade
[ "MIT" ]
1
2020-08-27T11:31:13.000Z
2020-08-27T11:31:13.000Z
tmp1/c55x-sim2/foo/Debug/CSL_I2S_IntcExample.asm
jwestmoreland/eZdsp-DBG-sim
f6eacd75d4f928dec9c751545e9e919d052e4ade
[ "MIT" ]
null
null
null
tmp1/c55x-sim2/foo/Debug/CSL_I2S_IntcExample.asm
jwestmoreland/eZdsp-DBG-sim
f6eacd75d4f928dec9c751545e9e919d052e4ade
[ "MIT" ]
null
null
null
;******************************************************************************* ;* TMS320C55x C/C++ Codegen PC v4.4.1 * ;* Date/Time created: Sat Sep 29 23:09:32 2018 * ;******************************************************************************* .compiler_opts --hll_source=on --mem_model:code=flat --mem_model:data=large --object_format=coff --silicon_core_3_3 --symdebug:dwarf .mmregs .cpl_on .arms_on .c54cm_off .asg AR6, FP .asg XAR6, XFP .asg DPH, MDP .model call=c55_std .model mem=large .noremark 5002 ; code respects overwrite rules ;******************************************************************************* ;* GLOBAL FILE PARAMETERS * ;* * ;* Architecture : TMS320C55x * ;* Optimizing for : Speed * ;* Memory : Large Model (23-Bit Data Pointers) * ;* Calls : Normal Library ASM calls * ;* Debug Info : Standard TI Debug Information * ;******************************************************************************* $C$DW$CU .dwtag DW_TAG_compile_unit .dwattr $C$DW$CU, DW_AT_name("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c") .dwattr $C$DW$CU, DW_AT_producer("TMS320C55x C/C++ Codegen PC v4.4.1 Copyright (c) 1996-2012 Texas Instruments Incorporated") .dwattr $C$DW$CU, DW_AT_TI_version(0x01) .dwattr $C$DW$CU, DW_AT_comp_dir("F:\eZdsp_DBG\tmp1\c55x-sim2\foo\Debug") ;****************************************************************************** ;* CINIT RECORDS * ;****************************************************************************** .sect ".cinit" .align 1 .field 1,16 .field _writeCompete+0,24 .field 0,8 .field 0,16 ; _writeCompete @ 0 .sect ".cinit" .align 1 .field 1,16 .field _readComplete+0,24 .field 0,8 .field 0,16 ; _readComplete @ 0 .sect ".cinit" .align 1 .field 1,16 .field _PaSs_StAtE+0,24 .field 0,8 .field 1,16 ; _PaSs_StAtE @ 0 .sect ".cinit" .align 1 .field 1,16 .field _PaSs+0,24 .field 0,8 .field 0,16 ; _PaSs @ 0 $C$DW$1 .dwtag DW_TAG_subprogram, DW_AT_name("I2S_open") .dwattr $C$DW$1, DW_AT_TI_symbol_name("_I2S_open") .dwattr $C$DW$1, DW_AT_type(*$C$DW$T$77) .dwattr $C$DW$1, DW_AT_declaration .dwattr $C$DW$1, DW_AT_external $C$DW$2 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$2, DW_AT_type(*$C$DW$T$26) $C$DW$3 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$3, DW_AT_type(*$C$DW$T$28) $C$DW$4 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$4, DW_AT_type(*$C$DW$T$30) .dwendtag $C$DW$1 $C$DW$5 .dwtag DW_TAG_subprogram, DW_AT_name("I2S_setup") .dwattr $C$DW$5, DW_AT_TI_symbol_name("_I2S_setup") .dwattr $C$DW$5, DW_AT_type(*$C$DW$T$87) .dwattr $C$DW$5, DW_AT_declaration .dwattr $C$DW$5, DW_AT_external $C$DW$6 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$6, DW_AT_type(*$C$DW$T$77) $C$DW$7 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$7, DW_AT_type(*$C$DW$T$81) .dwendtag $C$DW$5 $C$DW$8 .dwtag DW_TAG_subprogram, DW_AT_name("I2S_close") .dwattr $C$DW$8, DW_AT_TI_symbol_name("_I2S_close") .dwattr $C$DW$8, DW_AT_type(*$C$DW$T$87) .dwattr $C$DW$8, DW_AT_declaration .dwattr $C$DW$8, DW_AT_external $C$DW$9 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$9, DW_AT_type(*$C$DW$T$77) .dwendtag $C$DW$8 $C$DW$10 .dwtag DW_TAG_subprogram, DW_AT_name("I2S_read") .dwattr $C$DW$10, DW_AT_TI_symbol_name("_I2S_read") .dwattr $C$DW$10, DW_AT_type(*$C$DW$T$87) .dwattr $C$DW$10, DW_AT_declaration .dwattr $C$DW$10, DW_AT_external $C$DW$11 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$11, DW_AT_type(*$C$DW$T$77) $C$DW$12 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$12, DW_AT_type(*$C$DW$T$92) $C$DW$13 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$13, DW_AT_type(*$C$DW$T$19) .dwendtag $C$DW$10 $C$DW$14 .dwtag DW_TAG_subprogram, DW_AT_name("I2S_write") .dwattr $C$DW$14, DW_AT_TI_symbol_name("_I2S_write") .dwattr $C$DW$14, DW_AT_type(*$C$DW$T$87) .dwattr $C$DW$14, DW_AT_declaration .dwattr $C$DW$14, DW_AT_external $C$DW$15 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$15, DW_AT_type(*$C$DW$T$77) $C$DW$16 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$16, DW_AT_type(*$C$DW$T$92) $C$DW$17 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$17, DW_AT_type(*$C$DW$T$19) .dwendtag $C$DW$14 $C$DW$18 .dwtag DW_TAG_subprogram, DW_AT_name("I2S_reset") .dwattr $C$DW$18, DW_AT_TI_symbol_name("_I2S_reset") .dwattr $C$DW$18, DW_AT_type(*$C$DW$T$87) .dwattr $C$DW$18, DW_AT_declaration .dwattr $C$DW$18, DW_AT_external $C$DW$19 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$19, DW_AT_type(*$C$DW$T$77) .dwendtag $C$DW$18 $C$DW$20 .dwtag DW_TAG_subprogram, DW_AT_name("I2S_transEnable") .dwattr $C$DW$20, DW_AT_TI_symbol_name("_I2S_transEnable") .dwattr $C$DW$20, DW_AT_type(*$C$DW$T$87) .dwattr $C$DW$20, DW_AT_declaration .dwattr $C$DW$20, DW_AT_external $C$DW$21 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$21, DW_AT_type(*$C$DW$T$77) $C$DW$22 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$22, DW_AT_type(*$C$DW$T$19) .dwendtag $C$DW$20 $C$DW$23 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_plug") .dwattr $C$DW$23, DW_AT_TI_symbol_name("_IRQ_plug") .dwattr $C$DW$23, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$23, DW_AT_declaration .dwattr $C$DW$23, DW_AT_external $C$DW$24 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$24, DW_AT_type(*$C$DW$T$19) $C$DW$25 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$25, DW_AT_type(*$C$DW$T$67) .dwendtag $C$DW$23 $C$DW$26 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_clearAll") .dwattr $C$DW$26, DW_AT_TI_symbol_name("_IRQ_clearAll") .dwattr $C$DW$26, DW_AT_declaration .dwattr $C$DW$26, DW_AT_external $C$DW$27 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_disable") .dwattr $C$DW$27, DW_AT_TI_symbol_name("_IRQ_disable") .dwattr $C$DW$27, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$27, DW_AT_declaration .dwattr $C$DW$27, DW_AT_external $C$DW$28 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$28, DW_AT_type(*$C$DW$T$19) .dwendtag $C$DW$27 $C$DW$29 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_disableAll") .dwattr $C$DW$29, DW_AT_TI_symbol_name("_IRQ_disableAll") .dwattr $C$DW$29, DW_AT_declaration .dwattr $C$DW$29, DW_AT_external $C$DW$30 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_enable") .dwattr $C$DW$30, DW_AT_TI_symbol_name("_IRQ_enable") .dwattr $C$DW$30, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$30, DW_AT_declaration .dwattr $C$DW$30, DW_AT_external $C$DW$31 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$31, DW_AT_type(*$C$DW$T$19) .dwendtag $C$DW$30 $C$DW$32 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_setVecs") .dwattr $C$DW$32, DW_AT_TI_symbol_name("_IRQ_setVecs") .dwattr $C$DW$32, DW_AT_type(*$C$DW$T$87) .dwattr $C$DW$32, DW_AT_declaration .dwattr $C$DW$32, DW_AT_external $C$DW$33 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$33, DW_AT_type(*$C$DW$T$68) .dwendtag $C$DW$32 $C$DW$34 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_globalDisable") .dwattr $C$DW$34, DW_AT_TI_symbol_name("_IRQ_globalDisable") .dwattr $C$DW$34, DW_AT_type(*$C$DW$T$42) .dwattr $C$DW$34, DW_AT_declaration .dwattr $C$DW$34, DW_AT_external $C$DW$35 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_globalEnable") .dwattr $C$DW$35, DW_AT_TI_symbol_name("_IRQ_globalEnable") .dwattr $C$DW$35, DW_AT_type(*$C$DW$T$42) .dwattr $C$DW$35, DW_AT_declaration .dwattr $C$DW$35, DW_AT_external $C$DW$36 .dwtag DW_TAG_subprogram, DW_AT_name("printf") .dwattr $C$DW$36, DW_AT_TI_symbol_name("_printf") .dwattr $C$DW$36, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$36, DW_AT_declaration .dwattr $C$DW$36, DW_AT_external $C$DW$37 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$37, DW_AT_type(*$C$DW$T$111) $C$DW$38 .dwtag DW_TAG_unspecified_parameters .dwendtag $C$DW$36 $C$DW$39 .dwtag DW_TAG_subprogram, DW_AT_name("VECSTART") .dwattr $C$DW$39, DW_AT_TI_symbol_name("_VECSTART") .dwattr $C$DW$39, DW_AT_declaration .dwattr $C$DW$39, DW_AT_external .global _CSL_IrqData .bss _CSL_IrqData,132,0,2 $C$DW$40 .dwtag DW_TAG_variable, DW_AT_name("CSL_IrqData") .dwattr $C$DW$40, DW_AT_TI_symbol_name("_CSL_IrqData") .dwattr $C$DW$40, DW_AT_location[DW_OP_addr _CSL_IrqData] .dwattr $C$DW$40, DW_AT_type(*$C$DW$T$82) .dwattr $C$DW$40, DW_AT_external .global _i2sIntcWriteBuff .bss _i2sIntcWriteBuff,4,0,0 $C$DW$41 .dwtag DW_TAG_variable, DW_AT_name("i2sIntcWriteBuff") .dwattr $C$DW$41, DW_AT_TI_symbol_name("_i2sIntcWriteBuff") .dwattr $C$DW$41, DW_AT_location[DW_OP_addr _i2sIntcWriteBuff] .dwattr $C$DW$41, DW_AT_type(*$C$DW$T$102) .dwattr $C$DW$41, DW_AT_external .global _i2sIntcReadBuff .bss _i2sIntcReadBuff,4,0,0 $C$DW$42 .dwtag DW_TAG_variable, DW_AT_name("i2sIntcReadBuff") .dwattr $C$DW$42, DW_AT_TI_symbol_name("_i2sIntcReadBuff") .dwattr $C$DW$42, DW_AT_location[DW_OP_addr _i2sIntcReadBuff] .dwattr $C$DW$42, DW_AT_type(*$C$DW$T$102) .dwattr $C$DW$42, DW_AT_external .global _i2sHandle .bss _i2sHandle,2,0,2 $C$DW$43 .dwtag DW_TAG_variable, DW_AT_name("i2sHandle") .dwattr $C$DW$43, DW_AT_TI_symbol_name("_i2sHandle") .dwattr $C$DW$43, DW_AT_location[DW_OP_addr _i2sHandle] .dwattr $C$DW$43, DW_AT_type(*$C$DW$T$77) .dwattr $C$DW$43, DW_AT_external .global _writeCompete .bss _writeCompete,1,0,0 $C$DW$44 .dwtag DW_TAG_variable, DW_AT_name("writeCompete") .dwattr $C$DW$44, DW_AT_TI_symbol_name("_writeCompete") .dwattr $C$DW$44, DW_AT_location[DW_OP_addr _writeCompete] .dwattr $C$DW$44, DW_AT_type(*$C$DW$T$19) .dwattr $C$DW$44, DW_AT_external .global _readComplete .bss _readComplete,1,0,0 $C$DW$45 .dwtag DW_TAG_variable, DW_AT_name("readComplete") .dwattr $C$DW$45, DW_AT_TI_symbol_name("_readComplete") .dwattr $C$DW$45, DW_AT_location[DW_OP_addr _readComplete] .dwattr $C$DW$45, DW_AT_type(*$C$DW$T$19) .dwattr $C$DW$45, DW_AT_external .global _PaSs_StAtE .bss _PaSs_StAtE,1,0,0 $C$DW$46 .dwtag DW_TAG_variable, DW_AT_name("PaSs_StAtE") .dwattr $C$DW$46, DW_AT_TI_symbol_name("_PaSs_StAtE") .dwattr $C$DW$46, DW_AT_location[DW_OP_addr _PaSs_StAtE] .dwattr $C$DW$46, DW_AT_type(*$C$DW$T$99) .dwattr $C$DW$46, DW_AT_external .global _PaSs .bss _PaSs,1,0,0 $C$DW$47 .dwtag DW_TAG_variable, DW_AT_name("PaSs") .dwattr $C$DW$47, DW_AT_TI_symbol_name("_PaSs") .dwattr $C$DW$47, DW_AT_location[DW_OP_addr _PaSs] .dwattr $C$DW$47, DW_AT_type(*$C$DW$T$99) .dwattr $C$DW$47, DW_AT_external ; F:\t\cc5p5\ccsv5\tools\compiler\c5500_4.4.1\bin\acp55.exe -@f:\\AppData\\Local\\Temp\\2706412 .sect ".text:retain" .align 4 .global _i2s_rxIsr $C$DW$48 .dwtag DW_TAG_subprogram, DW_AT_name("i2s_rxIsr") .dwattr $C$DW$48, DW_AT_low_pc(_i2s_rxIsr) .dwattr $C$DW$48, DW_AT_high_pc(0x00) .dwattr $C$DW$48, DW_AT_TI_symbol_name("_i2s_rxIsr") .dwattr $C$DW$48, DW_AT_external .dwattr $C$DW$48, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c") .dwattr $C$DW$48, DW_AT_TI_begin_line(0x57) .dwattr $C$DW$48, DW_AT_TI_begin_column(0x10) .dwattr $C$DW$48, DW_AT_TI_interrupt .dwattr $C$DW$48, DW_AT_TI_max_frame_size(0x31) .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 88,column 1,is_stmt,address _i2s_rxIsr .dwfde $C$DW$CIE, _i2s_rxIsr ;******************************************************************************* ;* INTERRUPT NAME: i2s_rxIsr * ;* * ;* Function Uses Regs : AC0,AC0,AC1,AC1,AC2,AC2,AC3,AC3,T0,T1,AR0,XAR0,AR1, * ;* XAR1,AR2,AR3,XAR3,AR4,SP,BKC,BK03,BK47,ST1,ST2,ST3, * ;* BRC0,RSA0,REA0,BRS1,BRC1,RSA1,REA1,CSR,RPTC,CDP,TRN0,* ;* TRN1,BSA01,BSA23,BSA45,BSA67,BSAC,M40,SATA,SATD,RDM, * ;* FRCT,SMUL * ;* Save On Entry Regs : AC0,AC0,AC1,AC1,AC2,AC2,AC3,AC3,T0,T1,AR0,AR1,AR2, * ;* AR3,AR4,BKC,BK03,BK47,BRC0,RSA0,REA0,BRS1,BRC1,RSA1, * ;* REA1,CSR,RPTC,CDP,TRN0,TRN1,BSA01,BSA23,BSA45,BSA67, * ;* BSAC * ;******************************************************************************* _i2s_rxIsr: .dwcfi cfa_offset, 3 .dwcfi save_reg_to_mem, 91, -3 AND #0xf91f, mmap(ST1_55) OR #0x4100, mmap(ST1_55) AND #0xfa00, mmap(ST2_55) OR #0x8000, mmap(ST2_55) PSH mmap(ST3_55) .dwcfi cfa_offset, 4 .dwcfi save_reg_to_mem, 42, -4 PSH dbl(AC0) .dwcfi cfa_offset, 5 .dwcfi save_reg_to_mem, 0, -5 .dwcfi cfa_offset, 6 .dwcfi save_reg_to_mem, 1, -6 PSH mmap(AC0G) .dwcfi cfa_offset, 7 .dwcfi save_reg_to_mem, 2, -7 PSH dbl(AC1) .dwcfi cfa_offset, 8 .dwcfi save_reg_to_mem, 3, -8 .dwcfi cfa_offset, 9 .dwcfi save_reg_to_mem, 4, -9 PSH mmap(AC1G) .dwcfi cfa_offset, 10 .dwcfi save_reg_to_mem, 5, -10 PSH dbl(AC2) .dwcfi cfa_offset, 11 .dwcfi save_reg_to_mem, 6, -11 .dwcfi cfa_offset, 12 .dwcfi save_reg_to_mem, 7, -12 PSH mmap(AC2G) .dwcfi cfa_offset, 13 .dwcfi save_reg_to_mem, 8, -13 PSH dbl(AC3) .dwcfi cfa_offset, 14 .dwcfi save_reg_to_mem, 9, -14 .dwcfi cfa_offset, 15 .dwcfi save_reg_to_mem, 10, -15 PSH mmap(AC3G) .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 11, -16 PSH T0 .dwcfi cfa_offset, 17 .dwcfi save_reg_to_mem, 12, -17 PSH T1 .dwcfi cfa_offset, 18 .dwcfi save_reg_to_mem, 13, -18 PSHBOTH XAR0 .dwcfi cfa_offset, 19 .dwcfi save_reg_to_mem, 16, -19 PSHBOTH XAR1 .dwcfi cfa_offset, 20 .dwcfi save_reg_to_mem, 18, -20 PSHBOTH XAR2 .dwcfi cfa_offset, 21 .dwcfi save_reg_to_mem, 20, -21 PSHBOTH XAR3 .dwcfi cfa_offset, 22 .dwcfi save_reg_to_mem, 22, -22 PSHBOTH XAR4 .dwcfi cfa_offset, 23 .dwcfi save_reg_to_mem, 24, -23 PSH mmap(BKC) .dwcfi cfa_offset, 24 .dwcfi save_reg_to_mem, 37, -24 PSH mmap(BK03) .dwcfi cfa_offset, 25 .dwcfi save_reg_to_mem, 38, -25 PSH mmap(BK47) .dwcfi cfa_offset, 26 .dwcfi save_reg_to_mem, 39, -26 PSH mmap(BRC0) .dwcfi cfa_offset, 27 .dwcfi save_reg_to_mem, 47, -27 PSH mmap(RSA0L) .dwcfi cfa_offset, 28 .dwcfi save_reg_to_mem, 48, -28 PSH mmap(RSA0H) .dwcfi cfa_offset, 29 .dwcfi save_reg_to_mem, 49, -29 PSH mmap(REA0L) .dwcfi cfa_offset, 30 .dwcfi save_reg_to_mem, 50, -30 PSH mmap(REA0H) .dwcfi cfa_offset, 31 .dwcfi save_reg_to_mem, 51, -31 PSH mmap(BRS1) .dwcfi cfa_offset, 32 .dwcfi save_reg_to_mem, 52, -32 PSH mmap(BRC1) .dwcfi cfa_offset, 33 .dwcfi save_reg_to_mem, 53, -33 PSH mmap(RSA1L) .dwcfi cfa_offset, 34 .dwcfi save_reg_to_mem, 54, -34 PSH mmap(RSA1H) .dwcfi cfa_offset, 35 .dwcfi save_reg_to_mem, 55, -35 PSH mmap(REA1L) .dwcfi cfa_offset, 36 .dwcfi save_reg_to_mem, 56, -36 PSH mmap(REA1H) .dwcfi cfa_offset, 37 .dwcfi save_reg_to_mem, 57, -37 PSH mmap(CSR) .dwcfi cfa_offset, 38 .dwcfi save_reg_to_mem, 58, -38 PSH mmap(RPTC) .dwcfi cfa_offset, 39 .dwcfi save_reg_to_mem, 59, -39 PSHBOTH XCDP .dwcfi cfa_offset, 40 .dwcfi save_reg_to_mem, 60, -40 PSH mmap(TRN0) .dwcfi cfa_offset, 41 .dwcfi save_reg_to_mem, 62, -41 PSH mmap(TRN1) .dwcfi cfa_offset, 42 .dwcfi save_reg_to_mem, 63, -42 PSH mmap(BSA01) .dwcfi cfa_offset, 43 .dwcfi save_reg_to_mem, 64, -43 PSH mmap(BSA23) .dwcfi cfa_offset, 44 .dwcfi save_reg_to_mem, 65, -44 PSH mmap(BSA45) .dwcfi cfa_offset, 45 .dwcfi save_reg_to_mem, 66, -45 PSH mmap(BSA67) .dwcfi cfa_offset, 46 .dwcfi save_reg_to_mem, 67, -46 PSH mmap(BSAC) .dwcfi cfa_offset, 47 .dwcfi save_reg_to_mem, 68, -47 AMAR *SP(#0), XAR1 AND #0xfffe, mmap(SP) PSH AR1 AADD #-3, SP .dwcfi cfa_offset, 49 $C$DW$49 .dwtag DW_TAG_variable, DW_AT_name("result") .dwattr $C$DW$49, DW_AT_TI_symbol_name("_result") .dwattr $C$DW$49, DW_AT_type(*$C$DW$T$86) .dwattr $C$DW$49, DW_AT_location[DW_OP_bregx 0x24 2] .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 91,column 2,is_stmt BCLR ST3_SATA BSET ST3_SMUL $C$DW$50 .dwtag DW_TAG_TI_branch .dwattr $C$DW$50, DW_AT_low_pc(0x00) .dwattr $C$DW$50, DW_AT_name("_IRQ_disable") .dwattr $C$DW$50, DW_AT_TI_call CALL #_IRQ_disable ; |91| || MOV #7, T0 ; call occurs [#_IRQ_disable] ; |91| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 93,column 2,is_stmt MOV dbl(*(#_i2sHandle)), XAR0 AMOV #_i2sIntcReadBuff, XAR1 ; |93| $C$DW$51 .dwtag DW_TAG_TI_branch .dwattr $C$DW$51, DW_AT_low_pc(0x00) .dwattr $C$DW$51, DW_AT_name("_I2S_read") .dwattr $C$DW$51, DW_AT_TI_call CALL #_I2S_read ; |93| || MOV #4, T0 ; call occurs [#_I2S_read] ; |93| MOV T0, *SP(#2) ; |93| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 94,column 2,is_stmt MOV T0, AR1 BCC $C$L1,AR1 != #0 ; |94| ; branchcc occurs ; |94| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 96,column 3,is_stmt AMOV #$C$FSL1, XAR3 ; |96| MOV XAR3, dbl(*SP(#0)) $C$DW$52 .dwtag DW_TAG_TI_branch .dwattr $C$DW$52, DW_AT_low_pc(0x00) .dwattr $C$DW$52, DW_AT_name("_printf") .dwattr $C$DW$52, DW_AT_TI_call CALL #_printf ; |96| ; call occurs [#_printf] ; |96| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 97,column 3,is_stmt MOV #1, *(#_readComplete) ; |97| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 99,column 1,is_stmt $C$L1: AADD #3, SP .dwcfi cfa_offset, 47 POP mmap(SP) POP mmap(BSAC) .dwcfi restore_reg, 68 .dwcfi cfa_offset, 46 POP mmap(BSA67) .dwcfi restore_reg, 67 .dwcfi cfa_offset, 45 POP mmap(BSA45) .dwcfi restore_reg, 66 .dwcfi cfa_offset, 44 POP mmap(BSA23) .dwcfi restore_reg, 65 .dwcfi cfa_offset, 43 POP mmap(BSA01) .dwcfi restore_reg, 64 .dwcfi cfa_offset, 42 POP mmap(TRN1) .dwcfi restore_reg, 63 .dwcfi cfa_offset, 41 POP mmap(TRN0) .dwcfi restore_reg, 62 .dwcfi cfa_offset, 40 POPBOTH XCDP .dwcfi restore_reg, 60 .dwcfi cfa_offset, 39 POP mmap(RPTC) .dwcfi restore_reg, 59 .dwcfi cfa_offset, 38 POP mmap(CSR) .dwcfi restore_reg, 58 .dwcfi cfa_offset, 37 POP mmap(REA1H) .dwcfi restore_reg, 57 .dwcfi cfa_offset, 36 POP mmap(REA1L) .dwcfi restore_reg, 56 .dwcfi cfa_offset, 35 POP mmap(RSA1H) .dwcfi restore_reg, 55 .dwcfi cfa_offset, 34 POP mmap(RSA1L) .dwcfi restore_reg, 54 .dwcfi cfa_offset, 33 POP mmap(BRC1) .dwcfi restore_reg, 53 .dwcfi cfa_offset, 32 POP mmap(BRS1) .dwcfi restore_reg, 52 .dwcfi cfa_offset, 31 POP mmap(REA0H) .dwcfi restore_reg, 51 .dwcfi cfa_offset, 30 POP mmap(REA0L) .dwcfi restore_reg, 50 .dwcfi cfa_offset, 29 POP mmap(RSA0H) .dwcfi restore_reg, 49 .dwcfi cfa_offset, 28 POP mmap(RSA0L) .dwcfi restore_reg, 48 .dwcfi cfa_offset, 27 POP mmap(BRC0) .dwcfi restore_reg, 47 .dwcfi cfa_offset, 26 POP mmap(BK47) .dwcfi restore_reg, 39 .dwcfi cfa_offset, 25 POP mmap(BK03) .dwcfi restore_reg, 38 .dwcfi cfa_offset, 24 POP mmap(BKC) .dwcfi restore_reg, 37 .dwcfi cfa_offset, 23 POPBOTH XAR4 .dwcfi restore_reg, 24 .dwcfi cfa_offset, 22 POPBOTH XAR3 .dwcfi restore_reg, 22 .dwcfi cfa_offset, 21 POPBOTH XAR2 .dwcfi restore_reg, 20 .dwcfi cfa_offset, 20 POPBOTH XAR1 .dwcfi restore_reg, 18 .dwcfi cfa_offset, 19 POPBOTH XAR0 .dwcfi restore_reg, 16 .dwcfi cfa_offset, 18 POP T1 .dwcfi restore_reg, 13 .dwcfi cfa_offset, 17 POP T0 .dwcfi restore_reg, 12 .dwcfi cfa_offset, 16 POP mmap(AC3G) .dwcfi restore_reg, 11 .dwcfi cfa_offset, 15 .dwcfi restore_reg, 10 .dwcfi cfa_offset, 14 POP dbl(AC3) .dwcfi restore_reg, 9 .dwcfi cfa_offset, 13 POP mmap(AC2G) .dwcfi restore_reg, 8 .dwcfi cfa_offset, 12 .dwcfi restore_reg, 7 .dwcfi cfa_offset, 11 POP dbl(AC2) .dwcfi restore_reg, 6 .dwcfi cfa_offset, 10 POP mmap(AC1G) .dwcfi restore_reg, 5 .dwcfi cfa_offset, 9 .dwcfi restore_reg, 4 .dwcfi cfa_offset, 8 POP dbl(AC1) .dwcfi restore_reg, 3 .dwcfi cfa_offset, 7 POP mmap(AC0G) .dwcfi restore_reg, 2 .dwcfi cfa_offset, 6 .dwcfi restore_reg, 1 .dwcfi cfa_offset, 5 POP dbl(AC0) .dwcfi restore_reg, 0 .dwcfi cfa_offset, 4 POP mmap(ST3_55) .dwcfi restore_reg, 43 .dwcfi cfa_offset, 3 $C$DW$53 .dwtag DW_TAG_TI_branch .dwattr $C$DW$53, DW_AT_low_pc(0x00) .dwattr $C$DW$53, DW_AT_TI_return RETI ; return occurs .dwattr $C$DW$48, DW_AT_TI_end_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c") .dwattr $C$DW$48, DW_AT_TI_end_line(0x63) .dwattr $C$DW$48, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$48 .sect ".text:retain" .align 4 .global _i2s_txIsr $C$DW$54 .dwtag DW_TAG_subprogram, DW_AT_name("i2s_txIsr") .dwattr $C$DW$54, DW_AT_low_pc(_i2s_txIsr) .dwattr $C$DW$54, DW_AT_high_pc(0x00) .dwattr $C$DW$54, DW_AT_TI_symbol_name("_i2s_txIsr") .dwattr $C$DW$54, DW_AT_external .dwattr $C$DW$54, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c") .dwattr $C$DW$54, DW_AT_TI_begin_line(0x6a) .dwattr $C$DW$54, DW_AT_TI_begin_column(0x10) .dwattr $C$DW$54, DW_AT_TI_interrupt .dwattr $C$DW$54, DW_AT_TI_max_frame_size(0x31) .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 107,column 1,is_stmt,address _i2s_txIsr .dwfde $C$DW$CIE, _i2s_txIsr ;******************************************************************************* ;* INTERRUPT NAME: i2s_txIsr * ;* * ;* Function Uses Regs : AC0,AC0,AC1,AC1,AC2,AC2,AC3,AC3,T0,T1,AR0,XAR0,AR1, * ;* XAR1,AR2,AR3,XAR3,AR4,SP,BKC,BK03,BK47,ST1,ST2,ST3, * ;* BRC0,RSA0,REA0,BRS1,BRC1,RSA1,REA1,CSR,RPTC,CDP,TRN0,* ;* TRN1,BSA01,BSA23,BSA45,BSA67,BSAC,M40,SATA,SATD,RDM, * ;* FRCT,SMUL * ;* Save On Entry Regs : AC0,AC0,AC1,AC1,AC2,AC2,AC3,AC3,T0,T1,AR0,AR1,AR2, * ;* AR3,AR4,BKC,BK03,BK47,BRC0,RSA0,REA0,BRS1,BRC1,RSA1, * ;* REA1,CSR,RPTC,CDP,TRN0,TRN1,BSA01,BSA23,BSA45,BSA67, * ;* BSAC * ;******************************************************************************* _i2s_txIsr: .dwcfi cfa_offset, 3 .dwcfi save_reg_to_mem, 91, -3 AND #0xf91f, mmap(ST1_55) OR #0x4100, mmap(ST1_55) AND #0xfa00, mmap(ST2_55) OR #0x8000, mmap(ST2_55) PSH mmap(ST3_55) .dwcfi cfa_offset, 4 .dwcfi save_reg_to_mem, 42, -4 PSH dbl(AC0) .dwcfi cfa_offset, 5 .dwcfi save_reg_to_mem, 0, -5 .dwcfi cfa_offset, 6 .dwcfi save_reg_to_mem, 1, -6 PSH mmap(AC0G) .dwcfi cfa_offset, 7 .dwcfi save_reg_to_mem, 2, -7 PSH dbl(AC1) .dwcfi cfa_offset, 8 .dwcfi save_reg_to_mem, 3, -8 .dwcfi cfa_offset, 9 .dwcfi save_reg_to_mem, 4, -9 PSH mmap(AC1G) .dwcfi cfa_offset, 10 .dwcfi save_reg_to_mem, 5, -10 PSH dbl(AC2) .dwcfi cfa_offset, 11 .dwcfi save_reg_to_mem, 6, -11 .dwcfi cfa_offset, 12 .dwcfi save_reg_to_mem, 7, -12 PSH mmap(AC2G) .dwcfi cfa_offset, 13 .dwcfi save_reg_to_mem, 8, -13 PSH dbl(AC3) .dwcfi cfa_offset, 14 .dwcfi save_reg_to_mem, 9, -14 .dwcfi cfa_offset, 15 .dwcfi save_reg_to_mem, 10, -15 PSH mmap(AC3G) .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 11, -16 PSH T0 .dwcfi cfa_offset, 17 .dwcfi save_reg_to_mem, 12, -17 PSH T1 .dwcfi cfa_offset, 18 .dwcfi save_reg_to_mem, 13, -18 PSHBOTH XAR0 .dwcfi cfa_offset, 19 .dwcfi save_reg_to_mem, 16, -19 PSHBOTH XAR1 .dwcfi cfa_offset, 20 .dwcfi save_reg_to_mem, 18, -20 PSHBOTH XAR2 .dwcfi cfa_offset, 21 .dwcfi save_reg_to_mem, 20, -21 PSHBOTH XAR3 .dwcfi cfa_offset, 22 .dwcfi save_reg_to_mem, 22, -22 PSHBOTH XAR4 .dwcfi cfa_offset, 23 .dwcfi save_reg_to_mem, 24, -23 PSH mmap(BKC) .dwcfi cfa_offset, 24 .dwcfi save_reg_to_mem, 37, -24 PSH mmap(BK03) .dwcfi cfa_offset, 25 .dwcfi save_reg_to_mem, 38, -25 PSH mmap(BK47) .dwcfi cfa_offset, 26 .dwcfi save_reg_to_mem, 39, -26 PSH mmap(BRC0) .dwcfi cfa_offset, 27 .dwcfi save_reg_to_mem, 47, -27 PSH mmap(RSA0L) .dwcfi cfa_offset, 28 .dwcfi save_reg_to_mem, 48, -28 PSH mmap(RSA0H) .dwcfi cfa_offset, 29 .dwcfi save_reg_to_mem, 49, -29 PSH mmap(REA0L) .dwcfi cfa_offset, 30 .dwcfi save_reg_to_mem, 50, -30 PSH mmap(REA0H) .dwcfi cfa_offset, 31 .dwcfi save_reg_to_mem, 51, -31 PSH mmap(BRS1) .dwcfi cfa_offset, 32 .dwcfi save_reg_to_mem, 52, -32 PSH mmap(BRC1) .dwcfi cfa_offset, 33 .dwcfi save_reg_to_mem, 53, -33 PSH mmap(RSA1L) .dwcfi cfa_offset, 34 .dwcfi save_reg_to_mem, 54, -34 PSH mmap(RSA1H) .dwcfi cfa_offset, 35 .dwcfi save_reg_to_mem, 55, -35 PSH mmap(REA1L) .dwcfi cfa_offset, 36 .dwcfi save_reg_to_mem, 56, -36 PSH mmap(REA1H) .dwcfi cfa_offset, 37 .dwcfi save_reg_to_mem, 57, -37 PSH mmap(CSR) .dwcfi cfa_offset, 38 .dwcfi save_reg_to_mem, 58, -38 PSH mmap(RPTC) .dwcfi cfa_offset, 39 .dwcfi save_reg_to_mem, 59, -39 PSHBOTH XCDP .dwcfi cfa_offset, 40 .dwcfi save_reg_to_mem, 60, -40 PSH mmap(TRN0) .dwcfi cfa_offset, 41 .dwcfi save_reg_to_mem, 62, -41 PSH mmap(TRN1) .dwcfi cfa_offset, 42 .dwcfi save_reg_to_mem, 63, -42 PSH mmap(BSA01) .dwcfi cfa_offset, 43 .dwcfi save_reg_to_mem, 64, -43 PSH mmap(BSA23) .dwcfi cfa_offset, 44 .dwcfi save_reg_to_mem, 65, -44 PSH mmap(BSA45) .dwcfi cfa_offset, 45 .dwcfi save_reg_to_mem, 66, -45 PSH mmap(BSA67) .dwcfi cfa_offset, 46 .dwcfi save_reg_to_mem, 67, -46 PSH mmap(BSAC) .dwcfi cfa_offset, 47 .dwcfi save_reg_to_mem, 68, -47 AMAR *SP(#0), XAR1 AND #0xfffe, mmap(SP) PSH AR1 AADD #-3, SP .dwcfi cfa_offset, 49 $C$DW$55 .dwtag DW_TAG_variable, DW_AT_name("result") .dwattr $C$DW$55, DW_AT_TI_symbol_name("_result") .dwattr $C$DW$55, DW_AT_type(*$C$DW$T$86) .dwattr $C$DW$55, DW_AT_location[DW_OP_bregx 0x24 2] .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 110,column 2,is_stmt BCLR ST3_SATA BSET ST3_SMUL $C$DW$56 .dwtag DW_TAG_TI_branch .dwattr $C$DW$56, DW_AT_low_pc(0x00) .dwattr $C$DW$56, DW_AT_name("_IRQ_disable") .dwattr $C$DW$56, DW_AT_TI_call CALL #_IRQ_disable ; |110| || MOV #5, T0 ; call occurs [#_IRQ_disable] ; |110| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 113,column 2,is_stmt MOV dbl(*(#_i2sHandle)), XAR0 AMOV #_i2sIntcWriteBuff, XAR1 ; |113| $C$DW$57 .dwtag DW_TAG_TI_branch .dwattr $C$DW$57, DW_AT_low_pc(0x00) .dwattr $C$DW$57, DW_AT_name("_I2S_write") .dwattr $C$DW$57, DW_AT_TI_call CALL #_I2S_write ; |113| || MOV #4, T0 ; call occurs [#_I2S_write] ; |113| MOV T0, *SP(#2) ; |113| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 114,column 2,is_stmt MOV T0, AR1 BCC $C$L2,AR1 != #0 ; |114| ; branchcc occurs ; |114| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 116,column 3,is_stmt AMOV #$C$FSL2, XAR3 ; |116| MOV XAR3, dbl(*SP(#0)) $C$DW$58 .dwtag DW_TAG_TI_branch .dwattr $C$DW$58, DW_AT_low_pc(0x00) .dwattr $C$DW$58, DW_AT_name("_printf") .dwattr $C$DW$58, DW_AT_TI_call CALL #_printf ; |116| ; call occurs [#_printf] ; |116| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 117,column 3,is_stmt MOV #1, *(#_writeCompete) ; |117| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 119,column 1,is_stmt $C$L2: AADD #3, SP .dwcfi cfa_offset, 47 POP mmap(SP) POP mmap(BSAC) .dwcfi restore_reg, 68 .dwcfi cfa_offset, 46 POP mmap(BSA67) .dwcfi restore_reg, 67 .dwcfi cfa_offset, 45 POP mmap(BSA45) .dwcfi restore_reg, 66 .dwcfi cfa_offset, 44 POP mmap(BSA23) .dwcfi restore_reg, 65 .dwcfi cfa_offset, 43 POP mmap(BSA01) .dwcfi restore_reg, 64 .dwcfi cfa_offset, 42 POP mmap(TRN1) .dwcfi restore_reg, 63 .dwcfi cfa_offset, 41 POP mmap(TRN0) .dwcfi restore_reg, 62 .dwcfi cfa_offset, 40 POPBOTH XCDP .dwcfi restore_reg, 60 .dwcfi cfa_offset, 39 POP mmap(RPTC) .dwcfi restore_reg, 59 .dwcfi cfa_offset, 38 POP mmap(CSR) .dwcfi restore_reg, 58 .dwcfi cfa_offset, 37 POP mmap(REA1H) .dwcfi restore_reg, 57 .dwcfi cfa_offset, 36 POP mmap(REA1L) .dwcfi restore_reg, 56 .dwcfi cfa_offset, 35 POP mmap(RSA1H) .dwcfi restore_reg, 55 .dwcfi cfa_offset, 34 POP mmap(RSA1L) .dwcfi restore_reg, 54 .dwcfi cfa_offset, 33 POP mmap(BRC1) .dwcfi restore_reg, 53 .dwcfi cfa_offset, 32 POP mmap(BRS1) .dwcfi restore_reg, 52 .dwcfi cfa_offset, 31 POP mmap(REA0H) .dwcfi restore_reg, 51 .dwcfi cfa_offset, 30 POP mmap(REA0L) .dwcfi restore_reg, 50 .dwcfi cfa_offset, 29 POP mmap(RSA0H) .dwcfi restore_reg, 49 .dwcfi cfa_offset, 28 POP mmap(RSA0L) .dwcfi restore_reg, 48 .dwcfi cfa_offset, 27 POP mmap(BRC0) .dwcfi restore_reg, 47 .dwcfi cfa_offset, 26 POP mmap(BK47) .dwcfi restore_reg, 39 .dwcfi cfa_offset, 25 POP mmap(BK03) .dwcfi restore_reg, 38 .dwcfi cfa_offset, 24 POP mmap(BKC) .dwcfi restore_reg, 37 .dwcfi cfa_offset, 23 POPBOTH XAR4 .dwcfi restore_reg, 24 .dwcfi cfa_offset, 22 POPBOTH XAR3 .dwcfi restore_reg, 22 .dwcfi cfa_offset, 21 POPBOTH XAR2 .dwcfi restore_reg, 20 .dwcfi cfa_offset, 20 POPBOTH XAR1 .dwcfi restore_reg, 18 .dwcfi cfa_offset, 19 POPBOTH XAR0 .dwcfi restore_reg, 16 .dwcfi cfa_offset, 18 POP T1 .dwcfi restore_reg, 13 .dwcfi cfa_offset, 17 POP T0 .dwcfi restore_reg, 12 .dwcfi cfa_offset, 16 POP mmap(AC3G) .dwcfi restore_reg, 11 .dwcfi cfa_offset, 15 .dwcfi restore_reg, 10 .dwcfi cfa_offset, 14 POP dbl(AC3) .dwcfi restore_reg, 9 .dwcfi cfa_offset, 13 POP mmap(AC2G) .dwcfi restore_reg, 8 .dwcfi cfa_offset, 12 .dwcfi restore_reg, 7 .dwcfi cfa_offset, 11 POP dbl(AC2) .dwcfi restore_reg, 6 .dwcfi cfa_offset, 10 POP mmap(AC1G) .dwcfi restore_reg, 5 .dwcfi cfa_offset, 9 .dwcfi restore_reg, 4 .dwcfi cfa_offset, 8 POP dbl(AC1) .dwcfi restore_reg, 3 .dwcfi cfa_offset, 7 POP mmap(AC0G) .dwcfi restore_reg, 2 .dwcfi cfa_offset, 6 .dwcfi restore_reg, 1 .dwcfi cfa_offset, 5 POP dbl(AC0) .dwcfi restore_reg, 0 .dwcfi cfa_offset, 4 POP mmap(ST3_55) .dwcfi restore_reg, 43 .dwcfi cfa_offset, 3 $C$DW$59 .dwtag DW_TAG_TI_branch .dwattr $C$DW$59, DW_AT_low_pc(0x00) .dwattr $C$DW$59, DW_AT_TI_return RETI ; return occurs .dwattr $C$DW$54, DW_AT_TI_end_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c") .dwattr $C$DW$54, DW_AT_TI_end_line(0x77) .dwattr $C$DW$54, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$54 .sect ".text" .align 4 .global _i2s_IntcSample $C$DW$60 .dwtag DW_TAG_subprogram, DW_AT_name("i2s_IntcSample") .dwattr $C$DW$60, DW_AT_low_pc(_i2s_IntcSample) .dwattr $C$DW$60, DW_AT_high_pc(0x00) .dwattr $C$DW$60, DW_AT_TI_symbol_name("_i2s_IntcSample") .dwattr $C$DW$60, DW_AT_external .dwattr $C$DW$60, DW_AT_type(*$C$DW$T$86) .dwattr $C$DW$60, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c") .dwattr $C$DW$60, DW_AT_TI_begin_line(0x84) .dwattr $C$DW$60, DW_AT_TI_begin_column(0x07) .dwattr $C$DW$60, DW_AT_TI_max_frame_size(0x1e) .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 133,column 1,is_stmt,address _i2s_IntcSample .dwfde $C$DW$CIE, _i2s_IntcSample ;******************************************************************************* ;* FUNCTION NAME: i2s_IntcSample * ;* * ;* Function Uses Regs : AC0,AC0,AC1,AC1,T0,T1,AR0,XAR0,AR1,XAR1,AR2,AR3,XAR3,* ;* SP,CARRY,TC1,M40,SATA,SATD,RDM,FRCT,SMUL * ;* Stack Frame : Compact (No Frame Pointer, w/ debug) * ;* Total Frame Size : 30 words * ;* (2 return address/alignment) * ;* (2 function parameters) * ;* (26 local values) * ;* Min System Stack : 1 word * ;******************************************************************************* _i2s_IntcSample: .dwcfi cfa_offset, 1 .dwcfi save_reg_to_mem, 91, -1 AADD #-29, SP .dwcfi cfa_offset, 30 $C$DW$61 .dwtag DW_TAG_variable, DW_AT_name("status") .dwattr $C$DW$61, DW_AT_TI_symbol_name("_status") .dwattr $C$DW$61, DW_AT_type(*$C$DW$T$86) .dwattr $C$DW$61, DW_AT_location[DW_OP_bregx 0x24 2] $C$DW$62 .dwtag DW_TAG_variable, DW_AT_name("result") .dwattr $C$DW$62, DW_AT_TI_symbol_name("_result") .dwattr $C$DW$62, DW_AT_type(*$C$DW$T$86) .dwattr $C$DW$62, DW_AT_location[DW_OP_bregx 0x24 3] $C$DW$63 .dwtag DW_TAG_variable, DW_AT_name("hwConfig") .dwattr $C$DW$63, DW_AT_TI_symbol_name("_hwConfig") .dwattr $C$DW$63, DW_AT_type(*$C$DW$T$80) .dwattr $C$DW$63, DW_AT_location[DW_OP_bregx 0x24 4] $C$DW$64 .dwtag DW_TAG_variable, DW_AT_name("looper") .dwattr $C$DW$64, DW_AT_TI_symbol_name("_looper") .dwattr $C$DW$64, DW_AT_type(*$C$DW$T$19) .dwattr $C$DW$64, DW_AT_location[DW_OP_bregx 0x24 18] $C$DW$65 .dwtag DW_TAG_variable, DW_AT_name("config") .dwattr $C$DW$65, DW_AT_TI_symbol_name("_config") .dwattr $C$DW$65, DW_AT_type(*$C$DW$T$83) .dwattr $C$DW$65, DW_AT_location[DW_OP_bregx 0x24 20] .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 134,column 11,is_stmt MOV #1, *SP(#2) ; |134| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 141,column 6,is_stmt MOV #0, *SP(#18) ; |141| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 141,column 16,is_stmt MOV *SP(#18), AR1 ; |141| || MOV #4, AR2 CMPU AR1 >= AR2, TC1 ; |141| BCC $C$L4,TC1 ; |141| ; branchcc occurs ; |141| $C$L3: $C$DW$L$_i2s_IntcSample$2$B: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 143,column 3,is_stmt MOV *SP(#18), T0 ; |143| ADD #1, AR1 ; |143| AMOV #_i2sIntcWriteBuff, XAR3 ; |143| MOV AR1, *AR3(T0) ; |143| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 144,column 3,is_stmt MOV *SP(#18), T0 ; |144| AMOV #_i2sIntcReadBuff, XAR3 ; |144| MOV #65535, *AR3(T0) ; |144| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 141,column 42,is_stmt ADD #1, *SP(#18) ; |141| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 141,column 16,is_stmt MOV *SP(#18), AR1 ; |141| CMPU AR1 < AR2, TC1 ; |141| BCC $C$L3,TC1 ; |141| ; branchcc occurs ; |141| $C$DW$L$_i2s_IntcSample$2$E: $C$L4: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 149,column 2,is_stmt MOV #0, T0 || MOV #1, T1 $C$DW$66 .dwtag DW_TAG_TI_branch .dwattr $C$DW$66, DW_AT_low_pc(0x00) .dwattr $C$DW$66, DW_AT_name("_I2S_open") .dwattr $C$DW$66, DW_AT_TI_call CALL #_I2S_open ; |149| || MOV #1, AR0 ; call occurs [#_I2S_open] ; |149| MOV XAR0, dbl(*(#_i2sHandle)) .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 152,column 2,is_stmt MOV dbl(*(#_i2sHandle)), XAR3 MOV XAR3, AC0 || MOV #0, AC1 ; |152| CMPU AC1 != AC0, TC1 ; |152| BCC $C$L5,TC1 ; |152| ; branchcc occurs ; |152| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 154,column 3,is_stmt MOV #1, *SP(#2) ; |154| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 155,column 3,is_stmt MOV *SP(#2), T0 ; |155| B $C$L17 ; |155| ; branch occurs ; |155| $C$L5: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 159,column 3,is_stmt AMOV #$C$FSL3, XAR3 ; |159| MOV XAR3, dbl(*SP(#0)) $C$DW$67 .dwtag DW_TAG_TI_branch .dwattr $C$DW$67, DW_AT_low_pc(0x00) .dwattr $C$DW$67, DW_AT_name("_printf") .dwattr $C$DW$67, DW_AT_TI_call CALL #_printf ; |159| ; call occurs [#_printf] ; |159| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 163,column 2,is_stmt MOV #0, *SP(#4) ; |163| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 164,column 2,is_stmt MOV #1, *SP(#5) ; |164| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 165,column 2,is_stmt MOV #0, *SP(#6) ; |165| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 166,column 2,is_stmt MOV #1, *SP(#7) ; |166| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 167,column 2,is_stmt MOV #0, *SP(#8) ; |167| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 168,column 2,is_stmt MOV #1, *SP(#9) ; |168| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 169,column 2,is_stmt MOV #0, *SP(#10) ; |169| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 170,column 2,is_stmt MOV #4, *SP(#11) ; |170| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 171,column 2,is_stmt MOV #1, *SP(#12) ; |171| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 172,column 2,is_stmt MOV #1, *SP(#15) ; |172| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 173,column 2,is_stmt MOV #2, *SP(#14) ; |173| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 174,column 2,is_stmt MOV #1, *SP(#16) ; |174| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 175,column 2,is_stmt MOV #1, *SP(#17) ; |175| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 178,column 2,is_stmt AMAR *SP(#4), XAR1 MOV dbl(*(#_i2sHandle)), XAR0 $C$DW$68 .dwtag DW_TAG_TI_branch .dwattr $C$DW$68, DW_AT_low_pc(0x00) .dwattr $C$DW$68, DW_AT_name("_I2S_setup") .dwattr $C$DW$68, DW_AT_TI_call CALL #_I2S_setup ; |178| ; call occurs [#_I2S_setup] ; |178| MOV T0, *SP(#3) ; |178| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 180,column 2,is_stmt MOV T0, AR1 BCC $C$L6,AR1 == #0 ; |180| ; branchcc occurs ; |180| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 182,column 3,is_stmt MOV #1, *SP(#2) ; |182| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 183,column 3,is_stmt MOV *SP(#2), T0 ; |183| B $C$L17 ; |183| ; branch occurs ; |183| $C$L6: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 187,column 3,is_stmt AMOV #$C$FSL4, XAR3 ; |187| MOV XAR3, dbl(*SP(#0)) $C$DW$69 .dwtag DW_TAG_TI_branch .dwattr $C$DW$69, DW_AT_low_pc(0x00) .dwattr $C$DW$69, DW_AT_name("_printf") .dwattr $C$DW$69, DW_AT_TI_call CALL #_printf ; |187| ; call occurs [#_printf] ; |187| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 191,column 2,is_stmt $C$DW$70 .dwtag DW_TAG_TI_branch .dwattr $C$DW$70, DW_AT_low_pc(0x00) .dwattr $C$DW$70, DW_AT_name("_IRQ_clearAll") .dwattr $C$DW$70, DW_AT_TI_call CALL #_IRQ_clearAll ; |191| ; call occurs [#_IRQ_clearAll] ; |191| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 194,column 2,is_stmt $C$DW$71 .dwtag DW_TAG_TI_branch .dwattr $C$DW$71, DW_AT_low_pc(0x00) .dwattr $C$DW$71, DW_AT_name("_IRQ_disableAll") .dwattr $C$DW$71, DW_AT_TI_call CALL #_IRQ_disableAll ; |194| ; call occurs [#_IRQ_disableAll] ; |194| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 196,column 2,is_stmt MOV #(_VECSTART >> 16) << #16, AC0 ; |196| OR #(_VECSTART & 0xffff), AC0, AC0 ; |196| $C$DW$72 .dwtag DW_TAG_TI_branch .dwattr $C$DW$72, DW_AT_low_pc(0x00) .dwattr $C$DW$72, DW_AT_name("_IRQ_setVecs") .dwattr $C$DW$72, DW_AT_TI_call CALL #_IRQ_setVecs ; |196| ; call occurs [#_IRQ_setVecs] ; |196| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 199,column 5,is_stmt MOV #(_i2s_txIsr >> 16) << #16, AC0 ; |199| OR #(_i2s_txIsr & 0xffff), AC0, AC0 ; |199| MOV AC0, dbl(*SP(#20)) ; |199| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 200,column 2,is_stmt MOV dbl(*SP(#20)), AC0 ; |200| $C$DW$73 .dwtag DW_TAG_TI_branch .dwattr $C$DW$73, DW_AT_low_pc(0x00) .dwattr $C$DW$73, DW_AT_name("_IRQ_plug") .dwattr $C$DW$73, DW_AT_TI_call CALL #_IRQ_plug ; |200| || MOV #5, T0 ; call occurs [#_IRQ_plug] ; |200| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 202,column 2,is_stmt $C$DW$74 .dwtag DW_TAG_TI_branch .dwattr $C$DW$74, DW_AT_low_pc(0x00) .dwattr $C$DW$74, DW_AT_name("_IRQ_enable") .dwattr $C$DW$74, DW_AT_TI_call CALL #_IRQ_enable ; |202| || MOV #5, T0 ; call occurs [#_IRQ_enable] ; |202| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 204,column 2,is_stmt $C$DW$75 .dwtag DW_TAG_TI_branch .dwattr $C$DW$75, DW_AT_low_pc(0x00) .dwattr $C$DW$75, DW_AT_name("_IRQ_globalEnable") .dwattr $C$DW$75, DW_AT_TI_call CALL #_IRQ_globalEnable ; |204| ; call occurs [#_IRQ_globalEnable] ; |204| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 206,column 2,is_stmt MOV dbl(*(#_i2sHandle)), XAR0 $C$DW$76 .dwtag DW_TAG_TI_branch .dwattr $C$DW$76, DW_AT_low_pc(0x00) .dwattr $C$DW$76, DW_AT_name("_I2S_transEnable") .dwattr $C$DW$76, DW_AT_TI_call CALL #_I2S_transEnable ; |206| || MOV #1, T0 ; call occurs [#_I2S_transEnable] ; |206| MOV T0, *SP(#3) ; |206| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 207,column 8,is_stmt CMP *(#_writeCompete) == #1, TC1 ; |207| BCC $C$L8,TC1 ; |207| ; branchcc occurs ; |207| $C$L7: $C$DW$L$_i2s_IntcSample$10$B: CMP *(#_writeCompete) == #1, TC1 ; |207| BCC $C$L7,!TC1 ; |207| ; branchcc occurs ; |207| $C$DW$L$_i2s_IntcSample$10$E: $C$L8: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 208,column 2,is_stmt $C$DW$77 .dwtag DW_TAG_TI_branch .dwattr $C$DW$77, DW_AT_low_pc(0x00) .dwattr $C$DW$77, DW_AT_name("_IRQ_globalDisable") .dwattr $C$DW$77, DW_AT_TI_call CALL #_IRQ_globalDisable ; |208| ; call occurs [#_IRQ_globalDisable] ; |208| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 209,column 2,is_stmt MOV dbl(*(#_i2sHandle)), XAR0 $C$DW$78 .dwtag DW_TAG_TI_branch .dwattr $C$DW$78, DW_AT_low_pc(0x00) .dwattr $C$DW$78, DW_AT_name("_I2S_transEnable") .dwattr $C$DW$78, DW_AT_TI_call CALL #_I2S_transEnable ; |209| || MOV #0, T0 ; call occurs [#_I2S_transEnable] ; |209| MOV T0, *SP(#3) ; |209| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 211,column 2,is_stmt MOV #(_i2s_rxIsr >> 16) << #16, AC0 ; |211| OR #(_i2s_rxIsr & 0xffff), AC0, AC0 ; |211| MOV AC0, dbl(*SP(#20)) ; |211| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 212,column 2,is_stmt MOV dbl(*SP(#20)), AC0 ; |212| $C$DW$79 .dwtag DW_TAG_TI_branch .dwattr $C$DW$79, DW_AT_low_pc(0x00) .dwattr $C$DW$79, DW_AT_name("_IRQ_plug") .dwattr $C$DW$79, DW_AT_TI_call CALL #_IRQ_plug ; |212| || MOV #7, T0 ; call occurs [#_IRQ_plug] ; |212| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 214,column 2,is_stmt $C$DW$80 .dwtag DW_TAG_TI_branch .dwattr $C$DW$80, DW_AT_low_pc(0x00) .dwattr $C$DW$80, DW_AT_name("_IRQ_enable") .dwattr $C$DW$80, DW_AT_TI_call CALL #_IRQ_enable ; |214| || MOV #7, T0 ; call occurs [#_IRQ_enable] ; |214| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 216,column 2,is_stmt $C$DW$81 .dwtag DW_TAG_TI_branch .dwattr $C$DW$81, DW_AT_low_pc(0x00) .dwattr $C$DW$81, DW_AT_name("_IRQ_globalEnable") .dwattr $C$DW$81, DW_AT_TI_call CALL #_IRQ_globalEnable ; |216| ; call occurs [#_IRQ_globalEnable] ; |216| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 217,column 2,is_stmt MOV dbl(*(#_i2sHandle)), XAR0 $C$DW$82 .dwtag DW_TAG_TI_branch .dwattr $C$DW$82, DW_AT_low_pc(0x00) .dwattr $C$DW$82, DW_AT_name("_I2S_transEnable") .dwattr $C$DW$82, DW_AT_TI_call CALL #_I2S_transEnable ; |217| || MOV #1, T0 ; call occurs [#_I2S_transEnable] ; |217| MOV T0, *SP(#3) ; |217| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 218,column 8,is_stmt CMP *(#_readComplete) == #1, TC1 ; |218| BCC $C$L10,TC1 ; |218| ; branchcc occurs ; |218| $C$L9: $C$DW$L$_i2s_IntcSample$12$B: CMP *(#_readComplete) == #1, TC1 ; |218| BCC $C$L9,!TC1 ; |218| ; branchcc occurs ; |218| $C$DW$L$_i2s_IntcSample$12$E: $C$L10: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 219,column 2,is_stmt $C$DW$83 .dwtag DW_TAG_TI_branch .dwattr $C$DW$83, DW_AT_low_pc(0x00) .dwattr $C$DW$83, DW_AT_name("_IRQ_globalDisable") .dwattr $C$DW$83, DW_AT_TI_call CALL #_IRQ_globalDisable ; |219| ; call occurs [#_IRQ_globalDisable] ; |219| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 220,column 2,is_stmt MOV dbl(*(#_i2sHandle)), XAR0 $C$DW$84 .dwtag DW_TAG_TI_branch .dwattr $C$DW$84, DW_AT_low_pc(0x00) .dwattr $C$DW$84, DW_AT_name("_I2S_transEnable") .dwattr $C$DW$84, DW_AT_TI_call CALL #_I2S_transEnable ; |220| || MOV #0, T0 ; call occurs [#_I2S_transEnable] ; |220| MOV T0, *SP(#3) ; |220| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 223,column 2,is_stmt MOV dbl(*(#_i2sHandle)), XAR0 $C$DW$85 .dwtag DW_TAG_TI_branch .dwattr $C$DW$85, DW_AT_low_pc(0x00) .dwattr $C$DW$85, DW_AT_name("_I2S_reset") .dwattr $C$DW$85, DW_AT_TI_call CALL #_I2S_reset ; |223| ; call occurs [#_I2S_reset] ; |223| MOV T0, *SP(#3) ; |223| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 225,column 2,is_stmt MOV T0, AR1 BCC $C$L11,AR1 == #0 ; |225| ; branchcc occurs ; |225| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 227,column 3,is_stmt MOV #1, T0 B $C$L17 ; |227| ; branch occurs ; |227| $C$L11: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 231,column 3,is_stmt AMOV #$C$FSL5, XAR3 ; |231| MOV XAR3, dbl(*SP(#0)) $C$DW$86 .dwtag DW_TAG_TI_branch .dwattr $C$DW$86, DW_AT_low_pc(0x00) .dwattr $C$DW$86, DW_AT_name("_printf") .dwattr $C$DW$86, DW_AT_TI_call CALL #_printf ; |231| ; call occurs [#_printf] ; |231| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 235,column 2,is_stmt MOV dbl(*(#_i2sHandle)), XAR0 $C$DW$87 .dwtag DW_TAG_TI_branch .dwattr $C$DW$87, DW_AT_low_pc(0x00) .dwattr $C$DW$87, DW_AT_name("_I2S_close") .dwattr $C$DW$87, DW_AT_TI_call CALL #_I2S_close ; |235| ; call occurs [#_I2S_close] ; |235| MOV T0, *SP(#3) ; |235| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 237,column 2,is_stmt MOV T0, AR1 BCC $C$L12,AR1 == #0 ; |237| ; branchcc occurs ; |237| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 239,column 3,is_stmt MOV #1, *SP(#2) ; |239| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 240,column 3,is_stmt MOV *SP(#2), T0 ; |240| B $C$L17 ; |240| ; branch occurs ; |240| $C$L12: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 244,column 3,is_stmt AMOV #$C$FSL6, XAR3 ; |244| MOV XAR3, dbl(*SP(#0)) $C$DW$88 .dwtag DW_TAG_TI_branch .dwattr $C$DW$88, DW_AT_low_pc(0x00) .dwattr $C$DW$88, DW_AT_name("_printf") .dwattr $C$DW$88, DW_AT_TI_call CALL #_printf ; |244| ; call occurs [#_printf] ; |244| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 248,column 2,is_stmt $C$DW$89 .dwtag DW_TAG_TI_branch .dwattr $C$DW$89, DW_AT_low_pc(0x00) .dwattr $C$DW$89, DW_AT_name("_IRQ_clearAll") .dwattr $C$DW$89, DW_AT_TI_call CALL #_IRQ_clearAll ; |248| ; call occurs [#_IRQ_clearAll] ; |248| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 251,column 2,is_stmt $C$DW$90 .dwtag DW_TAG_TI_branch .dwattr $C$DW$90, DW_AT_low_pc(0x00) .dwattr $C$DW$90, DW_AT_name("_IRQ_disableAll") .dwattr $C$DW$90, DW_AT_TI_call CALL #_IRQ_disableAll ; |251| ; call occurs [#_IRQ_disableAll] ; |251| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 254,column 6,is_stmt MOV #0, *SP(#18) ; |254| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 254,column 16,is_stmt MOV *SP(#18), AR1 ; |254| || MOV #4, AR2 CMPU AR1 >= AR2, TC1 ; |254| BCC $C$L15,TC1 ; |254| ; branchcc occurs ; |254| $C$L13: $C$DW$L$_i2s_IntcSample$20$B: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 256,column 3,is_stmt MOV *SP(#18), T0 ; |256| AMOV #_i2sIntcReadBuff, XAR3 ; |256| MOV *AR3(T0), AR1 ; |256| AMOV #_i2sIntcWriteBuff, XAR3 ; |256| MOV *AR3(T0), AR2 ; |256| CMPU AR2 == AR1, TC1 ; |256| BCC $C$L14,TC1 ; |256| ; branchcc occurs ; |256| $C$DW$L$_i2s_IntcSample$20$E: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 258,column 4,is_stmt AMOV #$C$FSL7, XAR3 ; |258| MOV XAR3, dbl(*SP(#0)) $C$DW$91 .dwtag DW_TAG_TI_branch .dwattr $C$DW$91, DW_AT_low_pc(0x00) .dwattr $C$DW$91, DW_AT_name("_printf") .dwattr $C$DW$91, DW_AT_TI_call CALL #_printf ; |258| ; call occurs [#_printf] ; |258| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 259,column 4,is_stmt MOV #1, *SP(#2) ; |259| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 260,column 4,is_stmt MOV *SP(#2), T0 ; |260| B $C$L17 ; |260| ; branch occurs ; |260| $C$L14: $C$DW$L$_i2s_IntcSample$22$B: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 254,column 42,is_stmt ADD #1, *SP(#18) ; |254| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 254,column 16,is_stmt MOV *SP(#18), AR1 ; |254| || MOV #4, AR2 CMPU AR1 < AR2, TC1 ; |254| BCC $C$L13,TC1 ; |254| ; branchcc occurs ; |254| $C$DW$L$_i2s_IntcSample$22$E: $C$L15: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 264,column 2,is_stmt CMP *SP(#18) == #4, TC1 ; |264| BCC $C$L16,!TC1 ; |264| ; branchcc occurs ; |264| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 266,column 3,is_stmt AMOV #$C$FSL8, XAR3 ; |266| MOV XAR3, dbl(*SP(#0)) $C$DW$92 .dwtag DW_TAG_TI_branch .dwattr $C$DW$92, DW_AT_low_pc(0x00) .dwattr $C$DW$92, DW_AT_name("_printf") .dwattr $C$DW$92, DW_AT_TI_call CALL #_printf ; |266| ; call occurs [#_printf] ; |266| $C$L16: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 269,column 2,is_stmt MOV #0, T0 $C$L17: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 270,column 1,is_stmt AADD #29, SP .dwcfi cfa_offset, 1 $C$DW$93 .dwtag DW_TAG_TI_branch .dwattr $C$DW$93, DW_AT_low_pc(0x00) .dwattr $C$DW$93, DW_AT_TI_return RET ; return occurs $C$DW$94 .dwtag DW_TAG_TI_loop .dwattr $C$DW$94, DW_AT_name("F:\eZdsp_DBG\tmp1\c55x-sim2\foo\Debug\CSL_I2S_IntcExample.asm:$C$L13:1:1538287772") .dwattr $C$DW$94, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c") .dwattr $C$DW$94, DW_AT_TI_begin_line(0xfe) .dwattr $C$DW$94, DW_AT_TI_end_line(0x106) $C$DW$95 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$95, DW_AT_low_pc($C$DW$L$_i2s_IntcSample$20$B) .dwattr $C$DW$95, DW_AT_high_pc($C$DW$L$_i2s_IntcSample$20$E) $C$DW$96 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$96, DW_AT_low_pc($C$DW$L$_i2s_IntcSample$22$B) .dwattr $C$DW$96, DW_AT_high_pc($C$DW$L$_i2s_IntcSample$22$E) .dwendtag $C$DW$94 $C$DW$97 .dwtag DW_TAG_TI_loop .dwattr $C$DW$97, DW_AT_name("F:\eZdsp_DBG\tmp1\c55x-sim2\foo\Debug\CSL_I2S_IntcExample.asm:$C$L9:1:1538287772") .dwattr $C$DW$97, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c") .dwattr $C$DW$97, DW_AT_TI_begin_line(0xda) .dwattr $C$DW$97, DW_AT_TI_end_line(0xda) $C$DW$98 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$98, DW_AT_low_pc($C$DW$L$_i2s_IntcSample$12$B) .dwattr $C$DW$98, DW_AT_high_pc($C$DW$L$_i2s_IntcSample$12$E) .dwendtag $C$DW$97 $C$DW$99 .dwtag DW_TAG_TI_loop .dwattr $C$DW$99, DW_AT_name("F:\eZdsp_DBG\tmp1\c55x-sim2\foo\Debug\CSL_I2S_IntcExample.asm:$C$L7:1:1538287772") .dwattr $C$DW$99, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c") .dwattr $C$DW$99, DW_AT_TI_begin_line(0xcf) .dwattr $C$DW$99, DW_AT_TI_end_line(0xcf) $C$DW$100 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$100, DW_AT_low_pc($C$DW$L$_i2s_IntcSample$10$B) .dwattr $C$DW$100, DW_AT_high_pc($C$DW$L$_i2s_IntcSample$10$E) .dwendtag $C$DW$99 $C$DW$101 .dwtag DW_TAG_TI_loop .dwattr $C$DW$101, DW_AT_name("F:\eZdsp_DBG\tmp1\c55x-sim2\foo\Debug\CSL_I2S_IntcExample.asm:$C$L3:1:1538287772") .dwattr $C$DW$101, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c") .dwattr $C$DW$101, DW_AT_TI_begin_line(0x8d) .dwattr $C$DW$101, DW_AT_TI_end_line(0x91) $C$DW$102 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$102, DW_AT_low_pc($C$DW$L$_i2s_IntcSample$2$B) .dwattr $C$DW$102, DW_AT_high_pc($C$DW$L$_i2s_IntcSample$2$E) .dwendtag $C$DW$101 .dwattr $C$DW$60, DW_AT_TI_end_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c") .dwattr $C$DW$60, DW_AT_TI_end_line(0x10e) .dwattr $C$DW$60, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$60 .sect ".text" .align 4 .global _main $C$DW$103 .dwtag DW_TAG_subprogram, DW_AT_name("main") .dwattr $C$DW$103, DW_AT_low_pc(_main) .dwattr $C$DW$103, DW_AT_high_pc(0x00) .dwattr $C$DW$103, DW_AT_TI_symbol_name("_main") .dwattr $C$DW$103, DW_AT_external .dwattr $C$DW$103, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c") .dwattr $C$DW$103, DW_AT_TI_begin_line(0x11b) .dwattr $C$DW$103, DW_AT_TI_begin_column(0x06) .dwattr $C$DW$103, DW_AT_TI_max_frame_size(0x04) .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 284,column 1,is_stmt,address _main .dwfde $C$DW$CIE, _main ;******************************************************************************* ;* FUNCTION NAME: main * ;* * ;* Function Uses Regs : T0,AR1,AR3,XAR3,SP,M40,SATA,SATD,RDM,FRCT,SMUL * ;* Stack Frame : Compact (No Frame Pointer, w/ debug) * ;* Total Frame Size : 4 words * ;* (1 return address/alignment) * ;* (2 function parameters) * ;* (1 local values) * ;* Min System Stack : 1 word * ;******************************************************************************* _main: .dwcfi cfa_offset, 1 .dwcfi save_reg_to_mem, 91, -1 AADD #-3, SP .dwcfi cfa_offset, 4 $C$DW$104 .dwtag DW_TAG_variable, DW_AT_name("status") .dwattr $C$DW$104, DW_AT_TI_symbol_name("_status") .dwattr $C$DW$104, DW_AT_type(*$C$DW$T$86) .dwattr $C$DW$104, DW_AT_location[DW_OP_bregx 0x24 2] .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 287,column 2,is_stmt AMOV #$C$FSL9, XAR3 ; |287| MOV XAR3, dbl(*SP(#0)) $C$DW$105 .dwtag DW_TAG_TI_branch .dwattr $C$DW$105, DW_AT_low_pc(0x00) .dwattr $C$DW$105, DW_AT_name("_printf") .dwattr $C$DW$105, DW_AT_TI_call CALL #_printf ; |287| ; call occurs [#_printf] ; |287| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 289,column 2,is_stmt $C$DW$106 .dwtag DW_TAG_TI_branch .dwattr $C$DW$106, DW_AT_low_pc(0x00) .dwattr $C$DW$106, DW_AT_name("_IRQ_globalDisable") .dwattr $C$DW$106, DW_AT_TI_call CALL #_IRQ_globalDisable ; |289| ; call occurs [#_IRQ_globalDisable] ; |289| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 290,column 2,is_stmt $C$DW$107 .dwtag DW_TAG_TI_branch .dwattr $C$DW$107, DW_AT_low_pc(0x00) .dwattr $C$DW$107, DW_AT_name("_i2s_IntcSample") .dwattr $C$DW$107, DW_AT_TI_call CALL #_i2s_IntcSample ; |290| ; call occurs [#_i2s_IntcSample] ; |290| MOV T0, *SP(#2) ; |290| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 291,column 2,is_stmt MOV T0, AR1 BCC $C$L18,AR1 == #0 ; |291| ; branchcc occurs ; |291| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 293,column 3,is_stmt AMOV #$C$FSL10, XAR3 ; |293| MOV XAR3, dbl(*SP(#0)) $C$DW$108 .dwtag DW_TAG_TI_branch .dwattr $C$DW$108, DW_AT_low_pc(0x00) .dwattr $C$DW$108, DW_AT_name("_printf") .dwattr $C$DW$108, DW_AT_TI_call CALL #_printf ; |293| ; call occurs [#_printf] ; |293| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 296,column 9,is_stmt MOV #0, *(#_PaSs_StAtE) ; |296| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 298,column 2,is_stmt B $C$L19 ; |298| ; branch occurs ; |298| $C$L18: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 301,column 3,is_stmt AMOV #$C$FSL11, XAR3 ; |301| MOV XAR3, dbl(*SP(#0)) $C$DW$109 .dwtag DW_TAG_TI_branch .dwattr $C$DW$109, DW_AT_low_pc(0x00) .dwattr $C$DW$109, DW_AT_name("_printf") .dwattr $C$DW$109, DW_AT_TI_call CALL #_printf ; |301| ; call occurs [#_printf] ; |301| $C$L19: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 304,column 2,is_stmt $C$DW$110 .dwtag DW_TAG_TI_branch .dwattr $C$DW$110, DW_AT_low_pc(0x00) .dwattr $C$DW$110, DW_AT_name("_IRQ_globalDisable") .dwattr $C$DW$110, DW_AT_TI_call CALL #_IRQ_globalDisable ; |304| ; call occurs [#_IRQ_globalDisable] ; |304| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 307,column 9,is_stmt MOV *(#_PaSs_StAtE), AR1 ; |307| MOV AR1, *(#_PaSs) ; |307| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c",line 312,column 1,is_stmt AADD #3, SP .dwcfi cfa_offset, 1 $C$DW$111 .dwtag DW_TAG_TI_branch .dwattr $C$DW$111, DW_AT_low_pc(0x00) .dwattr $C$DW$111, DW_AT_TI_return RET ; return occurs .dwattr $C$DW$103, DW_AT_TI_end_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/i2s/CSL_I2S_INTCExample/CSL_I2S_IntcExample.c") .dwattr $C$DW$103, DW_AT_TI_end_line(0x138) .dwattr $C$DW$103, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$103 ;******************************************************************************* ;* FAR STRINGS * ;******************************************************************************* .sect ".const:.string" .align 2 $C$FSL1: .string "I2S Read Successful",10,0 .align 2 $C$FSL2: .string "I2S Write Successful",10,0 .align 2 $C$FSL3: .string "I2S Module Instance Open Successful",10,0 .align 2 $C$FSL4: .string "I2S Module Configuration Successful",10,0 .align 2 $C$FSL5: .string "I2S Reset Successful",10,0 .align 2 $C$FSL6: .string "I2S Close Successful",10,0 .align 2 $C$FSL7: .string "I2S Read & Write Buffers doesn't Match!!!",10,0 .align 2 $C$FSL8: .string "I2S Read & Write Buffers Match!!!",10,0 .align 2 $C$FSL9: .string "CSL I2S INTERRUPT MODE TEST!",10,10,0 .align 2 $C$FSL10: .string 10,"CSL I2S INTERRUPT MODE TEST FAILED!!",10,10,0 .align 2 $C$FSL11: .string 10,"CSL I2S INTERRUPT MODE TEST PASSED!!",10,10,0 ;****************************************************************************** ;* UNDEFINED EXTERNAL REFERENCES * ;****************************************************************************** .global _I2S_open .global _I2S_setup .global _I2S_close .global _I2S_read .global _I2S_write .global _I2S_reset .global _I2S_transEnable .global _IRQ_plug .global _IRQ_clearAll .global _IRQ_disable .global _IRQ_disableAll .global _IRQ_enable .global _IRQ_setVecs .global _IRQ_globalDisable .global _IRQ_globalEnable .global _printf .global _VECSTART ;******************************************************************************* ;* TYPE INFORMATION * ;******************************************************************************* $C$DW$T$25 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$25, DW_AT_byte_size(0x01) $C$DW$112 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_INSTANCE0"), DW_AT_const_value(0x00) $C$DW$113 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_INSTANCE1"), DW_AT_const_value(0x01) $C$DW$114 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_INSTANCE2"), DW_AT_const_value(0x02) $C$DW$115 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_INSTANCE3"), DW_AT_const_value(0x03) $C$DW$116 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_INVALID"), DW_AT_const_value(0x04) .dwendtag $C$DW$T$25 $C$DW$T$26 .dwtag DW_TAG_typedef, DW_AT_name("I2S_Instance") .dwattr $C$DW$T$26, DW_AT_type(*$C$DW$T$25) .dwattr $C$DW$T$26, DW_AT_language(DW_LANG_C) $C$DW$T$27 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$27, DW_AT_byte_size(0x01) $C$DW$117 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_POLLED"), DW_AT_const_value(0x00) $C$DW$118 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_INTERRUPT"), DW_AT_const_value(0x01) $C$DW$119 .dwtag DW_TAG_enumerator, DW_AT_name("DMA_POLLED"), DW_AT_const_value(0x02) $C$DW$120 .dwtag DW_TAG_enumerator, DW_AT_name("DMA_INTERRUPT"), DW_AT_const_value(0x03) $C$DW$121 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_OPMODE_OTHER"), DW_AT_const_value(0x04) .dwendtag $C$DW$T$27 $C$DW$T$28 .dwtag DW_TAG_typedef, DW_AT_name("I2S_OpMode") .dwattr $C$DW$T$28, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$T$28, DW_AT_language(DW_LANG_C) $C$DW$T$29 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$29, DW_AT_byte_size(0x01) $C$DW$122 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_CHAN_MONO"), DW_AT_const_value(0x00) $C$DW$123 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_CHAN_STEREO"), DW_AT_const_value(0x01) $C$DW$124 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_CHAN_UNDEF"), DW_AT_const_value(0x02) .dwendtag $C$DW$T$29 $C$DW$T$30 .dwtag DW_TAG_typedef, DW_AT_name("I2S_ChanType") .dwattr $C$DW$T$30, DW_AT_type(*$C$DW$T$29) .dwattr $C$DW$T$30, DW_AT_language(DW_LANG_C) $C$DW$T$34 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$34, DW_AT_byte_size(0x01) $C$DW$125 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_DATAPACK_DISABLE"), DW_AT_const_value(0x00) $C$DW$126 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_DATAPACK_ENABLE"), DW_AT_const_value(0x01) .dwendtag $C$DW$T$34 $C$DW$T$35 .dwtag DW_TAG_typedef, DW_AT_name("I2S_DatapackType") .dwattr $C$DW$T$35, DW_AT_type(*$C$DW$T$34) .dwattr $C$DW$T$35, DW_AT_language(DW_LANG_C) $C$DW$T$36 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$36, DW_AT_byte_size(0x01) $C$DW$127 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_FSDIV8"), DW_AT_const_value(0x00) $C$DW$128 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_FSDIV16"), DW_AT_const_value(0x01) $C$DW$129 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_FSDIV32"), DW_AT_const_value(0x02) $C$DW$130 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_FSDIV64"), DW_AT_const_value(0x03) $C$DW$131 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_FSDIV128"), DW_AT_const_value(0x04) $C$DW$132 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_FSDIV256"), DW_AT_const_value(0x05) $C$DW$133 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_FSDIV_RESERVE"), DW_AT_const_value(0x06) .dwendtag $C$DW$T$36 $C$DW$T$37 .dwtag DW_TAG_typedef, DW_AT_name("I2S_Fsdiv") .dwattr $C$DW$T$37, DW_AT_type(*$C$DW$T$36) .dwattr $C$DW$T$37, DW_AT_language(DW_LANG_C) $C$DW$T$38 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$38, DW_AT_byte_size(0x01) $C$DW$134 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_WORDLEN_8"), DW_AT_const_value(0x00) $C$DW$135 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_WORDLEN_10"), DW_AT_const_value(0x01) $C$DW$136 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_WORDLEN_12"), DW_AT_const_value(0x02) $C$DW$137 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_WORDLEN_14"), DW_AT_const_value(0x03) $C$DW$138 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_WORDLEN_16"), DW_AT_const_value(0x04) $C$DW$139 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_WORDLEN_18"), DW_AT_const_value(0x05) $C$DW$140 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_WORDLEN_20"), DW_AT_const_value(0x06) $C$DW$141 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_WORDLEN_24"), DW_AT_const_value(0x07) $C$DW$142 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_WORDLEN_32"), DW_AT_const_value(0x08) $C$DW$143 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_WORDLEN_INVALID"), DW_AT_const_value(0x09) .dwendtag $C$DW$T$38 $C$DW$T$39 .dwtag DW_TAG_typedef, DW_AT_name("I2S_WordLen") .dwattr $C$DW$T$39, DW_AT_type(*$C$DW$T$38) .dwattr $C$DW$T$39, DW_AT_language(DW_LANG_C) $C$DW$T$40 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$40, DW_AT_byte_size(0x01) $C$DW$144 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_LOOPBACK_DISABLE"), DW_AT_const_value(0x00) $C$DW$145 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_LOOPBACK_ENABLE"), DW_AT_const_value(0x01) .dwendtag $C$DW$T$40 $C$DW$T$41 .dwtag DW_TAG_typedef, DW_AT_name("I2S_LoopbackType") .dwattr $C$DW$T$41, DW_AT_type(*$C$DW$T$40) .dwattr $C$DW$T$41, DW_AT_language(DW_LANG_C) $C$DW$T$44 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$44, DW_AT_byte_size(0x01) $C$DW$146 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_STEREO_ENABLE"), DW_AT_const_value(0x00) $C$DW$147 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_MONO_ENABLE"), DW_AT_const_value(0x01) .dwendtag $C$DW$T$44 $C$DW$T$45 .dwtag DW_TAG_typedef, DW_AT_name("I2S_MonoType") .dwattr $C$DW$T$45, DW_AT_type(*$C$DW$T$44) .dwattr $C$DW$T$45, DW_AT_language(DW_LANG_C) $C$DW$T$46 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$46, DW_AT_byte_size(0x01) $C$DW$148 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_FSPOL_LOW"), DW_AT_const_value(0x00) $C$DW$149 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_FSPOL_HIGH"), DW_AT_const_value(0x01) .dwendtag $C$DW$T$46 $C$DW$T$47 .dwtag DW_TAG_typedef, DW_AT_name("I2S_FsyncPol") .dwattr $C$DW$T$47, DW_AT_type(*$C$DW$T$46) .dwattr $C$DW$T$47, DW_AT_language(DW_LANG_C) $C$DW$T$48 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$48, DW_AT_byte_size(0x01) $C$DW$150 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_RISING_EDGE"), DW_AT_const_value(0x00) $C$DW$151 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_FALLING_EDGE"), DW_AT_const_value(0x01) .dwendtag $C$DW$T$48 $C$DW$T$49 .dwtag DW_TAG_typedef, DW_AT_name("I2S_ClkPol") .dwattr $C$DW$T$49, DW_AT_type(*$C$DW$T$48) .dwattr $C$DW$T$49, DW_AT_language(DW_LANG_C) $C$DW$T$50 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$50, DW_AT_byte_size(0x01) $C$DW$152 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_DATADELAY_ONEBIT"), DW_AT_const_value(0x00) $C$DW$153 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_DATADELAY_TWOBIT"), DW_AT_const_value(0x01) .dwendtag $C$DW$T$50 $C$DW$T$51 .dwtag DW_TAG_typedef, DW_AT_name("I2S_DataDelay") .dwattr $C$DW$T$51, DW_AT_type(*$C$DW$T$50) .dwattr $C$DW$T$51, DW_AT_language(DW_LANG_C) $C$DW$T$52 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$52, DW_AT_byte_size(0x01) $C$DW$154 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_SIGNEXT_DISABLE"), DW_AT_const_value(0x00) $C$DW$155 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_SIGNEXT_ENABLE"), DW_AT_const_value(0x01) .dwendtag $C$DW$T$52 $C$DW$T$53 .dwtag DW_TAG_typedef, DW_AT_name("I2S_SignextType") .dwattr $C$DW$T$53, DW_AT_type(*$C$DW$T$52) .dwattr $C$DW$T$53, DW_AT_language(DW_LANG_C) $C$DW$T$54 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$54, DW_AT_byte_size(0x01) $C$DW$156 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_SLAVE"), DW_AT_const_value(0x00) $C$DW$157 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_MASTER"), DW_AT_const_value(0x01) .dwendtag $C$DW$T$54 $C$DW$T$55 .dwtag DW_TAG_typedef, DW_AT_name("I2S_Mode") .dwattr $C$DW$T$55, DW_AT_type(*$C$DW$T$54) .dwattr $C$DW$T$55, DW_AT_language(DW_LANG_C) $C$DW$T$56 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$56, DW_AT_byte_size(0x01) $C$DW$158 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_DATAFORMAT_LJUST"), DW_AT_const_value(0x00) $C$DW$159 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_DATAFORMAT_DSP"), DW_AT_const_value(0x01) .dwendtag $C$DW$T$56 $C$DW$T$57 .dwtag DW_TAG_typedef, DW_AT_name("I2S_DataFormat") .dwattr $C$DW$T$57, DW_AT_type(*$C$DW$T$56) .dwattr $C$DW$T$57, DW_AT_language(DW_LANG_C) $C$DW$T$58 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$58, DW_AT_byte_size(0x01) $C$DW$160 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_CLKDIV2"), DW_AT_const_value(0x00) $C$DW$161 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_CLKDIV4"), DW_AT_const_value(0x01) $C$DW$162 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_CLKDIV8"), DW_AT_const_value(0x02) $C$DW$163 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_CLKDIV16"), DW_AT_const_value(0x03) $C$DW$164 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_CLKDIV32"), DW_AT_const_value(0x04) $C$DW$165 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_CLKDIV64"), DW_AT_const_value(0x05) $C$DW$166 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_CLKDIV128"), DW_AT_const_value(0x06) $C$DW$167 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_CLKDIV256"), DW_AT_const_value(0x07) .dwendtag $C$DW$T$58 $C$DW$T$59 .dwtag DW_TAG_typedef, DW_AT_name("I2S_Clkdiv") .dwattr $C$DW$T$59, DW_AT_type(*$C$DW$T$58) .dwattr $C$DW$T$59, DW_AT_language(DW_LANG_C) $C$DW$T$60 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$60, DW_AT_byte_size(0x01) $C$DW$168 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_FSERROR_DISABLE"), DW_AT_const_value(0x00) $C$DW$169 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_FSERROR_ENABLE"), DW_AT_const_value(0x01) .dwendtag $C$DW$T$60 $C$DW$T$61 .dwtag DW_TAG_typedef, DW_AT_name("I2S_FsErr") .dwattr $C$DW$T$61, DW_AT_type(*$C$DW$T$60) .dwattr $C$DW$T$61, DW_AT_language(DW_LANG_C) $C$DW$T$62 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$62, DW_AT_byte_size(0x01) $C$DW$170 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_OUERROR_DISABLE"), DW_AT_const_value(0x00) $C$DW$171 .dwtag DW_TAG_enumerator, DW_AT_name("I2S_OUERROR_ENABLE"), DW_AT_const_value(0x01) .dwendtag $C$DW$T$62 $C$DW$T$63 .dwtag DW_TAG_typedef, DW_AT_name("I2S_OuErr") .dwattr $C$DW$T$63, DW_AT_type(*$C$DW$T$62) .dwattr $C$DW$T$63, DW_AT_language(DW_LANG_C) $C$DW$T$24 .dwtag DW_TAG_structure_type .dwattr $C$DW$T$24, DW_AT_byte_size(0x2e) $C$DW$172 .dwtag DW_TAG_member .dwattr $C$DW$172, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$172, DW_AT_name("I2SSCTRL") .dwattr $C$DW$172, DW_AT_TI_symbol_name("_I2SSCTRL") .dwattr $C$DW$172, DW_AT_data_member_location[DW_OP_plus_uconst 0x0] .dwattr $C$DW$172, DW_AT_accessibility(DW_ACCESS_public) $C$DW$173 .dwtag DW_TAG_member .dwattr $C$DW$173, DW_AT_type(*$C$DW$T$21) .dwattr $C$DW$173, DW_AT_name("RSVD0") .dwattr $C$DW$173, DW_AT_TI_symbol_name("_RSVD0") .dwattr $C$DW$173, DW_AT_data_member_location[DW_OP_plus_uconst 0x1] .dwattr $C$DW$173, DW_AT_accessibility(DW_ACCESS_public) $C$DW$174 .dwtag DW_TAG_member .dwattr $C$DW$174, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$174, DW_AT_name("I2SSRATE") .dwattr $C$DW$174, DW_AT_TI_symbol_name("_I2SSRATE") .dwattr $C$DW$174, DW_AT_data_member_location[DW_OP_plus_uconst 0x4] .dwattr $C$DW$174, DW_AT_accessibility(DW_ACCESS_public) $C$DW$175 .dwtag DW_TAG_member .dwattr $C$DW$175, DW_AT_type(*$C$DW$T$21) .dwattr $C$DW$175, DW_AT_name("RSVD1") .dwattr $C$DW$175, DW_AT_TI_symbol_name("_RSVD1") .dwattr $C$DW$175, DW_AT_data_member_location[DW_OP_plus_uconst 0x5] .dwattr $C$DW$175, DW_AT_accessibility(DW_ACCESS_public) $C$DW$176 .dwtag DW_TAG_member .dwattr $C$DW$176, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$176, DW_AT_name("I2STXLT0") .dwattr $C$DW$176, DW_AT_TI_symbol_name("_I2STXLT0") .dwattr $C$DW$176, DW_AT_data_member_location[DW_OP_plus_uconst 0x8] .dwattr $C$DW$176, DW_AT_accessibility(DW_ACCESS_public) $C$DW$177 .dwtag DW_TAG_member .dwattr $C$DW$177, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$177, DW_AT_name("I2STXLT1") .dwattr $C$DW$177, DW_AT_TI_symbol_name("_I2STXLT1") .dwattr $C$DW$177, DW_AT_data_member_location[DW_OP_plus_uconst 0x9] .dwattr $C$DW$177, DW_AT_accessibility(DW_ACCESS_public) $C$DW$178 .dwtag DW_TAG_member .dwattr $C$DW$178, DW_AT_type(*$C$DW$T$22) .dwattr $C$DW$178, DW_AT_name("RSVD2") .dwattr $C$DW$178, DW_AT_TI_symbol_name("_RSVD2") .dwattr $C$DW$178, DW_AT_data_member_location[DW_OP_plus_uconst 0xa] .dwattr $C$DW$178, DW_AT_accessibility(DW_ACCESS_public) $C$DW$179 .dwtag DW_TAG_member .dwattr $C$DW$179, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$179, DW_AT_name("I2STXRT0") .dwattr $C$DW$179, DW_AT_TI_symbol_name("_I2STXRT0") .dwattr $C$DW$179, DW_AT_data_member_location[DW_OP_plus_uconst 0xc] .dwattr $C$DW$179, DW_AT_accessibility(DW_ACCESS_public) $C$DW$180 .dwtag DW_TAG_member .dwattr $C$DW$180, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$180, DW_AT_name("I2STXRT1") .dwattr $C$DW$180, DW_AT_TI_symbol_name("_I2STXRT1") .dwattr $C$DW$180, DW_AT_data_member_location[DW_OP_plus_uconst 0xd] .dwattr $C$DW$180, DW_AT_accessibility(DW_ACCESS_public) $C$DW$181 .dwtag DW_TAG_member .dwattr $C$DW$181, DW_AT_type(*$C$DW$T$22) .dwattr $C$DW$181, DW_AT_name("RSVD3") .dwattr $C$DW$181, DW_AT_TI_symbol_name("_RSVD3") .dwattr $C$DW$181, DW_AT_data_member_location[DW_OP_plus_uconst 0xe] .dwattr $C$DW$181, DW_AT_accessibility(DW_ACCESS_public) $C$DW$182 .dwtag DW_TAG_member .dwattr $C$DW$182, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$182, DW_AT_name("I2SINTFL") .dwattr $C$DW$182, DW_AT_TI_symbol_name("_I2SINTFL") .dwattr $C$DW$182, DW_AT_data_member_location[DW_OP_plus_uconst 0x10] .dwattr $C$DW$182, DW_AT_accessibility(DW_ACCESS_public) $C$DW$183 .dwtag DW_TAG_member .dwattr $C$DW$183, DW_AT_type(*$C$DW$T$21) .dwattr $C$DW$183, DW_AT_name("RSVD4") .dwattr $C$DW$183, DW_AT_TI_symbol_name("_RSVD4") .dwattr $C$DW$183, DW_AT_data_member_location[DW_OP_plus_uconst 0x11] .dwattr $C$DW$183, DW_AT_accessibility(DW_ACCESS_public) $C$DW$184 .dwtag DW_TAG_member .dwattr $C$DW$184, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$184, DW_AT_name("I2SINTMASK") .dwattr $C$DW$184, DW_AT_TI_symbol_name("_I2SINTMASK") .dwattr $C$DW$184, DW_AT_data_member_location[DW_OP_plus_uconst 0x14] .dwattr $C$DW$184, DW_AT_accessibility(DW_ACCESS_public) $C$DW$185 .dwtag DW_TAG_member .dwattr $C$DW$185, DW_AT_type(*$C$DW$T$23) .dwattr $C$DW$185, DW_AT_name("RSVD5") .dwattr $C$DW$185, DW_AT_TI_symbol_name("_RSVD5") .dwattr $C$DW$185, DW_AT_data_member_location[DW_OP_plus_uconst 0x15] .dwattr $C$DW$185, DW_AT_accessibility(DW_ACCESS_public) $C$DW$186 .dwtag DW_TAG_member .dwattr $C$DW$186, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$186, DW_AT_name("I2SRXLT0") .dwattr $C$DW$186, DW_AT_TI_symbol_name("_I2SRXLT0") .dwattr $C$DW$186, DW_AT_data_member_location[DW_OP_plus_uconst 0x28] .dwattr $C$DW$186, DW_AT_accessibility(DW_ACCESS_public) $C$DW$187 .dwtag DW_TAG_member .dwattr $C$DW$187, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$187, DW_AT_name("I2SRXLT1") .dwattr $C$DW$187, DW_AT_TI_symbol_name("_I2SRXLT1") .dwattr $C$DW$187, DW_AT_data_member_location[DW_OP_plus_uconst 0x29] .dwattr $C$DW$187, DW_AT_accessibility(DW_ACCESS_public) $C$DW$188 .dwtag DW_TAG_member .dwattr $C$DW$188, DW_AT_type(*$C$DW$T$22) .dwattr $C$DW$188, DW_AT_name("RSVD6") .dwattr $C$DW$188, DW_AT_TI_symbol_name("_RSVD6") .dwattr $C$DW$188, DW_AT_data_member_location[DW_OP_plus_uconst 0x2a] .dwattr $C$DW$188, DW_AT_accessibility(DW_ACCESS_public) $C$DW$189 .dwtag DW_TAG_member .dwattr $C$DW$189, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$189, DW_AT_name("I2SRXRT0") .dwattr $C$DW$189, DW_AT_TI_symbol_name("_I2SRXRT0") .dwattr $C$DW$189, DW_AT_data_member_location[DW_OP_plus_uconst 0x2c] .dwattr $C$DW$189, DW_AT_accessibility(DW_ACCESS_public) $C$DW$190 .dwtag DW_TAG_member .dwattr $C$DW$190, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$190, DW_AT_name("I2SRXRT1") .dwattr $C$DW$190, DW_AT_TI_symbol_name("_I2SRXRT1") .dwattr $C$DW$190, DW_AT_data_member_location[DW_OP_plus_uconst 0x2d] .dwattr $C$DW$190, DW_AT_accessibility(DW_ACCESS_public) .dwendtag $C$DW$T$24 $C$DW$T$31 .dwtag DW_TAG_typedef, DW_AT_name("CSL_I2sRegs") .dwattr $C$DW$T$31, DW_AT_type(*$C$DW$T$24) .dwattr $C$DW$T$31, DW_AT_language(DW_LANG_C) $C$DW$191 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$191, DW_AT_type(*$C$DW$T$31) $C$DW$192 .dwtag DW_TAG_TI_ioport_type .dwattr $C$DW$192, DW_AT_type(*$C$DW$191) $C$DW$T$32 .dwtag DW_TAG_volatile_type .dwattr $C$DW$T$32, DW_AT_type(*$C$DW$192) $C$DW$T$33 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$33, DW_AT_type(*$C$DW$T$32) .dwattr $C$DW$T$33, DW_AT_address_class(0x10) $C$DW$T$43 .dwtag DW_TAG_structure_type .dwattr $C$DW$T$43, DW_AT_byte_size(0x0a) $C$DW$193 .dwtag DW_TAG_member .dwattr $C$DW$193, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$193, DW_AT_name("i2sNum") .dwattr $C$DW$193, DW_AT_TI_symbol_name("_i2sNum") .dwattr $C$DW$193, DW_AT_data_member_location[DW_OP_plus_uconst 0x0] .dwattr $C$DW$193, DW_AT_accessibility(DW_ACCESS_public) $C$DW$194 .dwtag DW_TAG_member .dwattr $C$DW$194, DW_AT_type(*$C$DW$T$28) .dwattr $C$DW$194, DW_AT_name("opMode") .dwattr $C$DW$194, DW_AT_TI_symbol_name("_opMode") .dwattr $C$DW$194, DW_AT_data_member_location[DW_OP_plus_uconst 0x1] .dwattr $C$DW$194, DW_AT_accessibility(DW_ACCESS_public) $C$DW$195 .dwtag DW_TAG_member .dwattr $C$DW$195, DW_AT_type(*$C$DW$T$30) .dwattr $C$DW$195, DW_AT_name("chType") .dwattr $C$DW$195, DW_AT_TI_symbol_name("_chType") .dwattr $C$DW$195, DW_AT_data_member_location[DW_OP_plus_uconst 0x2] .dwattr $C$DW$195, DW_AT_accessibility(DW_ACCESS_public) $C$DW$196 .dwtag DW_TAG_member .dwattr $C$DW$196, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$196, DW_AT_name("hwRegs") .dwattr $C$DW$196, DW_AT_TI_symbol_name("_hwRegs") .dwattr $C$DW$196, DW_AT_data_member_location[DW_OP_plus_uconst 0x3] .dwattr $C$DW$196, DW_AT_accessibility(DW_ACCESS_public) $C$DW$197 .dwtag DW_TAG_member .dwattr $C$DW$197, DW_AT_type(*$C$DW$T$19) .dwattr $C$DW$197, DW_AT_name("configured") .dwattr $C$DW$197, DW_AT_TI_symbol_name("_configured") .dwattr $C$DW$197, DW_AT_data_member_location[DW_OP_plus_uconst 0x4] .dwattr $C$DW$197, DW_AT_accessibility(DW_ACCESS_public) $C$DW$198 .dwtag DW_TAG_member .dwattr $C$DW$198, DW_AT_type(*$C$DW$T$35) .dwattr $C$DW$198, DW_AT_name("datapack") .dwattr $C$DW$198, DW_AT_TI_symbol_name("_datapack") .dwattr $C$DW$198, DW_AT_data_member_location[DW_OP_plus_uconst 0x5] .dwattr $C$DW$198, DW_AT_accessibility(DW_ACCESS_public) $C$DW$199 .dwtag DW_TAG_member .dwattr $C$DW$199, DW_AT_type(*$C$DW$T$37) .dwattr $C$DW$199, DW_AT_name("fsDiv") .dwattr $C$DW$199, DW_AT_TI_symbol_name("_fsDiv") .dwattr $C$DW$199, DW_AT_data_member_location[DW_OP_plus_uconst 0x6] .dwattr $C$DW$199, DW_AT_accessibility(DW_ACCESS_public) $C$DW$200 .dwtag DW_TAG_member .dwattr $C$DW$200, DW_AT_type(*$C$DW$T$39) .dwattr $C$DW$200, DW_AT_name("wordLen") .dwattr $C$DW$200, DW_AT_TI_symbol_name("_wordLen") .dwattr $C$DW$200, DW_AT_data_member_location[DW_OP_plus_uconst 0x7] .dwattr $C$DW$200, DW_AT_accessibility(DW_ACCESS_public) $C$DW$201 .dwtag DW_TAG_member .dwattr $C$DW$201, DW_AT_type(*$C$DW$T$41) .dwattr $C$DW$201, DW_AT_name("loopBackMode") .dwattr $C$DW$201, DW_AT_TI_symbol_name("_loopBackMode") .dwattr $C$DW$201, DW_AT_data_member_location[DW_OP_plus_uconst 0x8] .dwattr $C$DW$201, DW_AT_accessibility(DW_ACCESS_public) $C$DW$202 .dwtag DW_TAG_member .dwattr $C$DW$202, DW_AT_type(*$C$DW$T$42) .dwattr $C$DW$202, DW_AT_name("firstRead") .dwattr $C$DW$202, DW_AT_TI_symbol_name("_firstRead") .dwattr $C$DW$202, DW_AT_data_member_location[DW_OP_plus_uconst 0x9] .dwattr $C$DW$202, DW_AT_accessibility(DW_ACCESS_public) .dwendtag $C$DW$T$43 $C$DW$T$75 .dwtag DW_TAG_typedef, DW_AT_name("CSL_I2sObj") .dwattr $C$DW$T$75, DW_AT_type(*$C$DW$T$43) .dwattr $C$DW$T$75, DW_AT_language(DW_LANG_C) $C$DW$T$76 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$76, DW_AT_type(*$C$DW$T$75) .dwattr $C$DW$T$76, DW_AT_address_class(0x17) $C$DW$T$77 .dwtag DW_TAG_typedef, DW_AT_name("CSL_I2sHandle") .dwattr $C$DW$T$77, DW_AT_type(*$C$DW$T$76) .dwattr $C$DW$T$77, DW_AT_language(DW_LANG_C) $C$DW$T$64 .dwtag DW_TAG_structure_type .dwattr $C$DW$T$64, DW_AT_byte_size(0x0e) $C$DW$203 .dwtag DW_TAG_member .dwattr $C$DW$203, DW_AT_type(*$C$DW$T$45) .dwattr $C$DW$203, DW_AT_name("dataType") .dwattr $C$DW$203, DW_AT_TI_symbol_name("_dataType") .dwattr $C$DW$203, DW_AT_data_member_location[DW_OP_plus_uconst 0x0] .dwattr $C$DW$203, DW_AT_accessibility(DW_ACCESS_public) $C$DW$204 .dwtag DW_TAG_member .dwattr $C$DW$204, DW_AT_type(*$C$DW$T$41) .dwattr $C$DW$204, DW_AT_name("loopBackMode") .dwattr $C$DW$204, DW_AT_TI_symbol_name("_loopBackMode") .dwattr $C$DW$204, DW_AT_data_member_location[DW_OP_plus_uconst 0x1] .dwattr $C$DW$204, DW_AT_accessibility(DW_ACCESS_public) $C$DW$205 .dwtag DW_TAG_member .dwattr $C$DW$205, DW_AT_type(*$C$DW$T$47) .dwattr $C$DW$205, DW_AT_name("fsPol") .dwattr $C$DW$205, DW_AT_TI_symbol_name("_fsPol") .dwattr $C$DW$205, DW_AT_data_member_location[DW_OP_plus_uconst 0x2] .dwattr $C$DW$205, DW_AT_accessibility(DW_ACCESS_public) $C$DW$206 .dwtag DW_TAG_member .dwattr $C$DW$206, DW_AT_type(*$C$DW$T$49) .dwattr $C$DW$206, DW_AT_name("clkPol") .dwattr $C$DW$206, DW_AT_TI_symbol_name("_clkPol") .dwattr $C$DW$206, DW_AT_data_member_location[DW_OP_plus_uconst 0x3] .dwattr $C$DW$206, DW_AT_accessibility(DW_ACCESS_public) $C$DW$207 .dwtag DW_TAG_member .dwattr $C$DW$207, DW_AT_type(*$C$DW$T$51) .dwattr $C$DW$207, DW_AT_name("datadelay") .dwattr $C$DW$207, DW_AT_TI_symbol_name("_datadelay") .dwattr $C$DW$207, DW_AT_data_member_location[DW_OP_plus_uconst 0x4] .dwattr $C$DW$207, DW_AT_accessibility(DW_ACCESS_public) $C$DW$208 .dwtag DW_TAG_member .dwattr $C$DW$208, DW_AT_type(*$C$DW$T$35) .dwattr $C$DW$208, DW_AT_name("datapack") .dwattr $C$DW$208, DW_AT_TI_symbol_name("_datapack") .dwattr $C$DW$208, DW_AT_data_member_location[DW_OP_plus_uconst 0x5] .dwattr $C$DW$208, DW_AT_accessibility(DW_ACCESS_public) $C$DW$209 .dwtag DW_TAG_member .dwattr $C$DW$209, DW_AT_type(*$C$DW$T$53) .dwattr $C$DW$209, DW_AT_name("signext") .dwattr $C$DW$209, DW_AT_TI_symbol_name("_signext") .dwattr $C$DW$209, DW_AT_data_member_location[DW_OP_plus_uconst 0x6] .dwattr $C$DW$209, DW_AT_accessibility(DW_ACCESS_public) $C$DW$210 .dwtag DW_TAG_member .dwattr $C$DW$210, DW_AT_type(*$C$DW$T$39) .dwattr $C$DW$210, DW_AT_name("wordLen") .dwattr $C$DW$210, DW_AT_TI_symbol_name("_wordLen") .dwattr $C$DW$210, DW_AT_data_member_location[DW_OP_plus_uconst 0x7] .dwattr $C$DW$210, DW_AT_accessibility(DW_ACCESS_public) $C$DW$211 .dwtag DW_TAG_member .dwattr $C$DW$211, DW_AT_type(*$C$DW$T$55) .dwattr $C$DW$211, DW_AT_name("i2sMode") .dwattr $C$DW$211, DW_AT_TI_symbol_name("_i2sMode") .dwattr $C$DW$211, DW_AT_data_member_location[DW_OP_plus_uconst 0x8] .dwattr $C$DW$211, DW_AT_accessibility(DW_ACCESS_public) $C$DW$212 .dwtag DW_TAG_member .dwattr $C$DW$212, DW_AT_type(*$C$DW$T$57) .dwattr $C$DW$212, DW_AT_name("dataFormat") .dwattr $C$DW$212, DW_AT_TI_symbol_name("_dataFormat") .dwattr $C$DW$212, DW_AT_data_member_location[DW_OP_plus_uconst 0x9] .dwattr $C$DW$212, DW_AT_accessibility(DW_ACCESS_public) $C$DW$213 .dwtag DW_TAG_member .dwattr $C$DW$213, DW_AT_type(*$C$DW$T$37) .dwattr $C$DW$213, DW_AT_name("fsDiv") .dwattr $C$DW$213, DW_AT_TI_symbol_name("_fsDiv") .dwattr $C$DW$213, DW_AT_data_member_location[DW_OP_plus_uconst 0xa] .dwattr $C$DW$213, DW_AT_accessibility(DW_ACCESS_public) $C$DW$214 .dwtag DW_TAG_member .dwattr $C$DW$214, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$214, DW_AT_name("clkDiv") .dwattr $C$DW$214, DW_AT_TI_symbol_name("_clkDiv") .dwattr $C$DW$214, DW_AT_data_member_location[DW_OP_plus_uconst 0xb] .dwattr $C$DW$214, DW_AT_accessibility(DW_ACCESS_public) $C$DW$215 .dwtag DW_TAG_member .dwattr $C$DW$215, DW_AT_type(*$C$DW$T$61) .dwattr $C$DW$215, DW_AT_name("FError") .dwattr $C$DW$215, DW_AT_TI_symbol_name("_FError") .dwattr $C$DW$215, DW_AT_data_member_location[DW_OP_plus_uconst 0xc] .dwattr $C$DW$215, DW_AT_accessibility(DW_ACCESS_public) $C$DW$216 .dwtag DW_TAG_member .dwattr $C$DW$216, DW_AT_type(*$C$DW$T$63) .dwattr $C$DW$216, DW_AT_name("OuError") .dwattr $C$DW$216, DW_AT_TI_symbol_name("_OuError") .dwattr $C$DW$216, DW_AT_data_member_location[DW_OP_plus_uconst 0xd] .dwattr $C$DW$216, DW_AT_accessibility(DW_ACCESS_public) .dwendtag $C$DW$T$64 $C$DW$T$80 .dwtag DW_TAG_typedef, DW_AT_name("I2S_Config") .dwattr $C$DW$T$80, DW_AT_type(*$C$DW$T$64) .dwattr $C$DW$T$80, DW_AT_language(DW_LANG_C) $C$DW$T$81 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$81, DW_AT_type(*$C$DW$T$80) .dwattr $C$DW$T$81, DW_AT_address_class(0x17) $C$DW$T$69 .dwtag DW_TAG_structure_type .dwattr $C$DW$T$69, DW_AT_byte_size(0x08) $C$DW$217 .dwtag DW_TAG_member .dwattr $C$DW$217, DW_AT_type(*$C$DW$T$67) .dwattr $C$DW$217, DW_AT_name("funcAddr") .dwattr $C$DW$217, DW_AT_TI_symbol_name("_funcAddr") .dwattr $C$DW$217, DW_AT_data_member_location[DW_OP_plus_uconst 0x0] .dwattr $C$DW$217, DW_AT_accessibility(DW_ACCESS_public) $C$DW$218 .dwtag DW_TAG_member .dwattr $C$DW$218, DW_AT_type(*$C$DW$T$68) .dwattr $C$DW$218, DW_AT_name("funcArg") .dwattr $C$DW$218, DW_AT_TI_symbol_name("_funcArg") .dwattr $C$DW$218, DW_AT_data_member_location[DW_OP_plus_uconst 0x2] .dwattr $C$DW$218, DW_AT_accessibility(DW_ACCESS_public) $C$DW$219 .dwtag DW_TAG_member .dwattr $C$DW$219, DW_AT_type(*$C$DW$T$68) .dwattr $C$DW$219, DW_AT_name("ierMask") .dwattr $C$DW$219, DW_AT_TI_symbol_name("_ierMask") .dwattr $C$DW$219, DW_AT_data_member_location[DW_OP_plus_uconst 0x4] .dwattr $C$DW$219, DW_AT_accessibility(DW_ACCESS_public) $C$DW$220 .dwtag DW_TAG_member .dwattr $C$DW$220, DW_AT_type(*$C$DW$T$68) .dwattr $C$DW$220, DW_AT_name("cacheCtrl") .dwattr $C$DW$220, DW_AT_TI_symbol_name("_cacheCtrl") .dwattr $C$DW$220, DW_AT_data_member_location[DW_OP_plus_uconst 0x6] .dwattr $C$DW$220, DW_AT_accessibility(DW_ACCESS_public) .dwendtag $C$DW$T$69 $C$DW$T$70 .dwtag DW_TAG_typedef, DW_AT_name("CSL_IRQ_Dispatch") .dwattr $C$DW$T$70, DW_AT_type(*$C$DW$T$69) .dwattr $C$DW$T$70, DW_AT_language(DW_LANG_C) $C$DW$T$71 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$71, DW_AT_type(*$C$DW$T$70) .dwattr $C$DW$T$71, DW_AT_address_class(0x17) $C$DW$T$73 .dwtag DW_TAG_structure_type .dwattr $C$DW$T$73, DW_AT_byte_size(0x84) $C$DW$221 .dwtag DW_TAG_member .dwattr $C$DW$221, DW_AT_type(*$C$DW$T$71) .dwattr $C$DW$221, DW_AT_name("IrqDispatchTable") .dwattr $C$DW$221, DW_AT_TI_symbol_name("_IrqDispatchTable") .dwattr $C$DW$221, DW_AT_data_member_location[DW_OP_plus_uconst 0x0] .dwattr $C$DW$221, DW_AT_accessibility(DW_ACCESS_public) $C$DW$222 .dwtag DW_TAG_member .dwattr $C$DW$222, DW_AT_type(*$C$DW$T$72) .dwattr $C$DW$222, DW_AT_name("IrqIntTable") .dwattr $C$DW$222, DW_AT_TI_symbol_name("_IrqIntTable") .dwattr $C$DW$222, DW_AT_data_member_location[DW_OP_plus_uconst 0x2] .dwattr $C$DW$222, DW_AT_accessibility(DW_ACCESS_public) $C$DW$223 .dwtag DW_TAG_member .dwattr $C$DW$223, DW_AT_type(*$C$DW$T$72) .dwattr $C$DW$223, DW_AT_name("IrqEventTable") .dwattr $C$DW$223, DW_AT_TI_symbol_name("_IrqEventTable") .dwattr $C$DW$223, DW_AT_data_member_location[DW_OP_plus_uconst 0x42] .dwattr $C$DW$223, DW_AT_accessibility(DW_ACCESS_public) $C$DW$224 .dwtag DW_TAG_member .dwattr $C$DW$224, DW_AT_type(*$C$DW$T$19) .dwattr $C$DW$224, DW_AT_name("biosPresent") .dwattr $C$DW$224, DW_AT_TI_symbol_name("_biosPresent") .dwattr $C$DW$224, DW_AT_data_member_location[DW_OP_plus_uconst 0x82] .dwattr $C$DW$224, DW_AT_accessibility(DW_ACCESS_public) .dwendtag $C$DW$T$73 $C$DW$T$82 .dwtag DW_TAG_typedef, DW_AT_name("CSL_IrqDataObj") .dwattr $C$DW$T$82, DW_AT_type(*$C$DW$T$73) .dwattr $C$DW$T$82, DW_AT_language(DW_LANG_C) $C$DW$T$74 .dwtag DW_TAG_structure_type .dwattr $C$DW$T$74, DW_AT_byte_size(0x08) $C$DW$225 .dwtag DW_TAG_member .dwattr $C$DW$225, DW_AT_type(*$C$DW$T$67) .dwattr $C$DW$225, DW_AT_name("funcAddr") .dwattr $C$DW$225, DW_AT_TI_symbol_name("_funcAddr") .dwattr $C$DW$225, DW_AT_data_member_location[DW_OP_plus_uconst 0x0] .dwattr $C$DW$225, DW_AT_accessibility(DW_ACCESS_public) $C$DW$226 .dwtag DW_TAG_member .dwattr $C$DW$226, DW_AT_type(*$C$DW$T$68) .dwattr $C$DW$226, DW_AT_name("funcArg") .dwattr $C$DW$226, DW_AT_TI_symbol_name("_funcArg") .dwattr $C$DW$226, DW_AT_data_member_location[DW_OP_plus_uconst 0x2] .dwattr $C$DW$226, DW_AT_accessibility(DW_ACCESS_public) $C$DW$227 .dwtag DW_TAG_member .dwattr $C$DW$227, DW_AT_type(*$C$DW$T$68) .dwattr $C$DW$227, DW_AT_name("ierMask") .dwattr $C$DW$227, DW_AT_TI_symbol_name("_ierMask") .dwattr $C$DW$227, DW_AT_data_member_location[DW_OP_plus_uconst 0x4] .dwattr $C$DW$227, DW_AT_accessibility(DW_ACCESS_public) $C$DW$228 .dwtag DW_TAG_member .dwattr $C$DW$228, DW_AT_type(*$C$DW$T$68) .dwattr $C$DW$228, DW_AT_name("cacheCtrl") .dwattr $C$DW$228, DW_AT_TI_symbol_name("_cacheCtrl") .dwattr $C$DW$228, DW_AT_data_member_location[DW_OP_plus_uconst 0x6] .dwattr $C$DW$228, DW_AT_accessibility(DW_ACCESS_public) .dwendtag $C$DW$T$74 $C$DW$T$83 .dwtag DW_TAG_typedef, DW_AT_name("CSL_IRQ_Config") .dwattr $C$DW$T$83, DW_AT_type(*$C$DW$T$74) .dwattr $C$DW$T$83, DW_AT_language(DW_LANG_C) $C$DW$T$65 .dwtag DW_TAG_subroutine_type .dwattr $C$DW$T$65, DW_AT_language(DW_LANG_C) $C$DW$T$66 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$66, DW_AT_type(*$C$DW$T$65) .dwattr $C$DW$T$66, DW_AT_address_class(0x20) $C$DW$T$67 .dwtag DW_TAG_typedef, DW_AT_name("IRQ_IsrPtr") .dwattr $C$DW$T$67, DW_AT_type(*$C$DW$T$66) .dwattr $C$DW$T$67, DW_AT_language(DW_LANG_C) $C$DW$T$4 .dwtag DW_TAG_base_type .dwattr $C$DW$T$4, DW_AT_encoding(DW_ATE_boolean) .dwattr $C$DW$T$4, DW_AT_name("bool") .dwattr $C$DW$T$4, DW_AT_byte_size(0x01) $C$DW$T$5 .dwtag DW_TAG_base_type .dwattr $C$DW$T$5, DW_AT_encoding(DW_ATE_signed_char) .dwattr $C$DW$T$5, DW_AT_name("signed char") .dwattr $C$DW$T$5, DW_AT_byte_size(0x01) $C$DW$T$6 .dwtag DW_TAG_base_type .dwattr $C$DW$T$6, DW_AT_encoding(DW_ATE_unsigned_char) .dwattr $C$DW$T$6, DW_AT_name("unsigned char") .dwattr $C$DW$T$6, DW_AT_byte_size(0x01) $C$DW$T$7 .dwtag DW_TAG_base_type .dwattr $C$DW$T$7, DW_AT_encoding(DW_ATE_signed_char) .dwattr $C$DW$T$7, DW_AT_name("wchar_t") .dwattr $C$DW$T$7, DW_AT_byte_size(0x01) $C$DW$T$8 .dwtag DW_TAG_base_type .dwattr $C$DW$T$8, DW_AT_encoding(DW_ATE_signed) .dwattr $C$DW$T$8, DW_AT_name("short") .dwattr $C$DW$T$8, DW_AT_byte_size(0x01) $C$DW$T$86 .dwtag DW_TAG_typedef, DW_AT_name("Int16") .dwattr $C$DW$T$86, DW_AT_type(*$C$DW$T$8) .dwattr $C$DW$T$86, DW_AT_language(DW_LANG_C) $C$DW$T$87 .dwtag DW_TAG_typedef, DW_AT_name("CSL_Status") .dwattr $C$DW$T$87, DW_AT_type(*$C$DW$T$86) .dwattr $C$DW$T$87, DW_AT_language(DW_LANG_C) $C$DW$229 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$229, DW_AT_type(*$C$DW$T$86) $C$DW$T$99 .dwtag DW_TAG_volatile_type .dwattr $C$DW$T$99, DW_AT_type(*$C$DW$229) $C$DW$T$9 .dwtag DW_TAG_base_type .dwattr $C$DW$T$9, DW_AT_encoding(DW_ATE_unsigned) .dwattr $C$DW$T$9, DW_AT_name("unsigned short") .dwattr $C$DW$T$9, DW_AT_byte_size(0x01) $C$DW$T$19 .dwtag DW_TAG_typedef, DW_AT_name("Uint16") .dwattr $C$DW$T$19, DW_AT_type(*$C$DW$T$9) .dwattr $C$DW$T$19, DW_AT_language(DW_LANG_C) $C$DW$230 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$230, DW_AT_type(*$C$DW$T$19) $C$DW$T$20 .dwtag DW_TAG_volatile_type .dwattr $C$DW$T$20, DW_AT_type(*$C$DW$230) $C$DW$T$21 .dwtag DW_TAG_array_type .dwattr $C$DW$T$21, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$T$21, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$21, DW_AT_byte_size(0x03) $C$DW$231 .dwtag DW_TAG_subrange_type .dwattr $C$DW$231, DW_AT_upper_bound(0x02) .dwendtag $C$DW$T$21 $C$DW$T$22 .dwtag DW_TAG_array_type .dwattr $C$DW$T$22, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$T$22, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$22, DW_AT_byte_size(0x02) $C$DW$232 .dwtag DW_TAG_subrange_type .dwattr $C$DW$232, DW_AT_upper_bound(0x01) .dwendtag $C$DW$T$22 $C$DW$T$23 .dwtag DW_TAG_array_type .dwattr $C$DW$T$23, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$T$23, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$23, DW_AT_byte_size(0x13) $C$DW$233 .dwtag DW_TAG_subrange_type .dwattr $C$DW$233, DW_AT_upper_bound(0x12) .dwendtag $C$DW$T$23 $C$DW$T$92 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$92, DW_AT_type(*$C$DW$T$19) .dwattr $C$DW$T$92, DW_AT_address_class(0x17) $C$DW$T$102 .dwtag DW_TAG_array_type .dwattr $C$DW$T$102, DW_AT_type(*$C$DW$T$19) .dwattr $C$DW$T$102, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$102, DW_AT_byte_size(0x04) $C$DW$234 .dwtag DW_TAG_subrange_type .dwattr $C$DW$234, DW_AT_upper_bound(0x03) .dwendtag $C$DW$T$102 $C$DW$T$10 .dwtag DW_TAG_base_type .dwattr $C$DW$T$10, DW_AT_encoding(DW_ATE_signed) .dwattr $C$DW$T$10, DW_AT_name("int") .dwattr $C$DW$T$10, DW_AT_byte_size(0x01) $C$DW$T$42 .dwtag DW_TAG_typedef, DW_AT_name("Bool") .dwattr $C$DW$T$42, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$T$42, DW_AT_language(DW_LANG_C) $C$DW$T$11 .dwtag DW_TAG_base_type .dwattr $C$DW$T$11, DW_AT_encoding(DW_ATE_unsigned) .dwattr $C$DW$T$11, DW_AT_name("unsigned int") .dwattr $C$DW$T$11, DW_AT_byte_size(0x01) $C$DW$T$12 .dwtag DW_TAG_base_type .dwattr $C$DW$T$12, DW_AT_encoding(DW_ATE_signed) .dwattr $C$DW$T$12, DW_AT_name("long") .dwattr $C$DW$T$12, DW_AT_byte_size(0x02) $C$DW$T$13 .dwtag DW_TAG_base_type .dwattr $C$DW$T$13, DW_AT_encoding(DW_ATE_unsigned) .dwattr $C$DW$T$13, DW_AT_name("unsigned long") .dwattr $C$DW$T$13, DW_AT_byte_size(0x02) $C$DW$T$68 .dwtag DW_TAG_typedef, DW_AT_name("Uint32") .dwattr $C$DW$T$68, DW_AT_type(*$C$DW$T$13) .dwattr $C$DW$T$68, DW_AT_language(DW_LANG_C) $C$DW$T$72 .dwtag DW_TAG_array_type .dwattr $C$DW$T$72, DW_AT_type(*$C$DW$T$68) .dwattr $C$DW$T$72, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$72, DW_AT_byte_size(0x40) $C$DW$235 .dwtag DW_TAG_subrange_type .dwattr $C$DW$235, DW_AT_upper_bound(0x1f) .dwendtag $C$DW$T$72 $C$DW$T$14 .dwtag DW_TAG_base_type .dwattr $C$DW$T$14, DW_AT_encoding(DW_ATE_signed) .dwattr $C$DW$T$14, DW_AT_name("long long") .dwattr $C$DW$T$14, DW_AT_byte_size(0x04) .dwattr $C$DW$T$14, DW_AT_bit_size(0x28) .dwattr $C$DW$T$14, DW_AT_bit_offset(0x18) $C$DW$T$15 .dwtag DW_TAG_base_type .dwattr $C$DW$T$15, DW_AT_encoding(DW_ATE_unsigned) .dwattr $C$DW$T$15, DW_AT_name("unsigned long long") .dwattr $C$DW$T$15, DW_AT_byte_size(0x04) .dwattr $C$DW$T$15, DW_AT_bit_size(0x28) .dwattr $C$DW$T$15, DW_AT_bit_offset(0x18) $C$DW$T$16 .dwtag DW_TAG_base_type .dwattr $C$DW$T$16, DW_AT_encoding(DW_ATE_float) .dwattr $C$DW$T$16, DW_AT_name("float") .dwattr $C$DW$T$16, DW_AT_byte_size(0x02) $C$DW$T$17 .dwtag DW_TAG_base_type .dwattr $C$DW$T$17, DW_AT_encoding(DW_ATE_float) .dwattr $C$DW$T$17, DW_AT_name("double") .dwattr $C$DW$T$17, DW_AT_byte_size(0x02) $C$DW$T$18 .dwtag DW_TAG_base_type .dwattr $C$DW$T$18, DW_AT_encoding(DW_ATE_float) .dwattr $C$DW$T$18, DW_AT_name("long double") .dwattr $C$DW$T$18, DW_AT_byte_size(0x02) $C$DW$T$109 .dwtag DW_TAG_base_type .dwattr $C$DW$T$109, DW_AT_encoding(DW_ATE_signed_char) .dwattr $C$DW$T$109, DW_AT_name("signed char") .dwattr $C$DW$T$109, DW_AT_byte_size(0x01) $C$DW$236 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$236, DW_AT_type(*$C$DW$T$109) $C$DW$T$110 .dwtag DW_TAG_const_type .dwattr $C$DW$T$110, DW_AT_type(*$C$DW$236) $C$DW$T$111 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$111, DW_AT_type(*$C$DW$T$110) .dwattr $C$DW$T$111, DW_AT_address_class(0x17) .dwattr $C$DW$CU, DW_AT_language(DW_LANG_C) ;*************************************************************** ;* DWARF CIE ENTRIES * ;*************************************************************** $C$DW$CIE .dwcie 91 .dwcfi cfa_register, 36 .dwcfi cfa_offset, 0 .dwcfi undefined, 0 .dwcfi undefined, 1 .dwcfi undefined, 2 .dwcfi undefined, 3 .dwcfi undefined, 4 .dwcfi undefined, 5 .dwcfi undefined, 6 .dwcfi undefined, 7 .dwcfi undefined, 8 .dwcfi undefined, 9 .dwcfi undefined, 10 .dwcfi undefined, 11 .dwcfi undefined, 12 .dwcfi undefined, 13 .dwcfi same_value, 14 .dwcfi same_value, 15 .dwcfi undefined, 16 .dwcfi undefined, 17 .dwcfi undefined, 18 .dwcfi undefined, 19 .dwcfi undefined, 20 .dwcfi undefined, 21 .dwcfi undefined, 22 .dwcfi undefined, 23 .dwcfi undefined, 24 .dwcfi undefined, 25 .dwcfi same_value, 26 .dwcfi same_value, 27 .dwcfi same_value, 28 .dwcfi same_value, 29 .dwcfi same_value, 30 .dwcfi same_value, 31 .dwcfi undefined, 32 .dwcfi undefined, 33 .dwcfi undefined, 34 .dwcfi undefined, 35 .dwcfi undefined, 36 .dwcfi undefined, 37 .dwcfi undefined, 38 .dwcfi undefined, 39 .dwcfi undefined, 40 .dwcfi undefined, 41 .dwcfi undefined, 42 .dwcfi undefined, 43 .dwcfi undefined, 44 .dwcfi undefined, 45 .dwcfi undefined, 46 .dwcfi undefined, 47 .dwcfi undefined, 48 .dwcfi undefined, 49 .dwcfi undefined, 50 .dwcfi undefined, 51 .dwcfi undefined, 52 .dwcfi undefined, 53 .dwcfi undefined, 54 .dwcfi undefined, 55 .dwcfi undefined, 56 .dwcfi undefined, 57 .dwcfi undefined, 58 .dwcfi undefined, 59 .dwcfi undefined, 60 .dwcfi undefined, 61 .dwcfi undefined, 62 .dwcfi undefined, 63 .dwcfi undefined, 64 .dwcfi undefined, 65 .dwcfi undefined, 66 .dwcfi undefined, 67 .dwcfi undefined, 68 .dwcfi undefined, 69 .dwcfi undefined, 70 .dwcfi undefined, 71 .dwcfi undefined, 72 .dwcfi undefined, 73 .dwcfi undefined, 74 .dwcfi undefined, 75 .dwcfi undefined, 76 .dwcfi undefined, 77 .dwcfi undefined, 78 .dwcfi undefined, 79 .dwcfi undefined, 80 .dwcfi undefined, 81 .dwcfi undefined, 82 .dwcfi undefined, 83 .dwcfi undefined, 84 .dwcfi undefined, 85 .dwcfi undefined, 86 .dwcfi undefined, 87 .dwcfi undefined, 88 .dwcfi undefined, 89 .dwcfi undefined, 90 .dwcfi undefined, 91 .dwendentry ;*************************************************************** ;* DWARF REGISTER MAP * ;*************************************************************** $C$DW$237 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0") .dwattr $C$DW$237, DW_AT_location[DW_OP_reg0] $C$DW$238 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0") .dwattr $C$DW$238, DW_AT_location[DW_OP_reg1] $C$DW$239 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0_G") .dwattr $C$DW$239, DW_AT_location[DW_OP_reg2] $C$DW$240 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1") .dwattr $C$DW$240, DW_AT_location[DW_OP_reg3] $C$DW$241 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1") .dwattr $C$DW$241, DW_AT_location[DW_OP_reg4] $C$DW$242 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1_G") .dwattr $C$DW$242, DW_AT_location[DW_OP_reg5] $C$DW$243 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2") .dwattr $C$DW$243, DW_AT_location[DW_OP_reg6] $C$DW$244 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2") .dwattr $C$DW$244, DW_AT_location[DW_OP_reg7] $C$DW$245 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2_G") .dwattr $C$DW$245, DW_AT_location[DW_OP_reg8] $C$DW$246 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3") .dwattr $C$DW$246, DW_AT_location[DW_OP_reg9] $C$DW$247 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3") .dwattr $C$DW$247, DW_AT_location[DW_OP_reg10] $C$DW$248 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3_G") .dwattr $C$DW$248, DW_AT_location[DW_OP_reg11] $C$DW$249 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T0") .dwattr $C$DW$249, DW_AT_location[DW_OP_reg12] $C$DW$250 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T1") .dwattr $C$DW$250, DW_AT_location[DW_OP_reg13] $C$DW$251 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T2") .dwattr $C$DW$251, DW_AT_location[DW_OP_reg14] $C$DW$252 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T3") .dwattr $C$DW$252, DW_AT_location[DW_OP_reg15] $C$DW$253 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR0") .dwattr $C$DW$253, DW_AT_location[DW_OP_reg16] $C$DW$254 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR0") .dwattr $C$DW$254, DW_AT_location[DW_OP_reg17] $C$DW$255 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR1") .dwattr $C$DW$255, DW_AT_location[DW_OP_reg18] $C$DW$256 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR1") .dwattr $C$DW$256, DW_AT_location[DW_OP_reg19] $C$DW$257 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR2") .dwattr $C$DW$257, DW_AT_location[DW_OP_reg20] $C$DW$258 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR2") .dwattr $C$DW$258, DW_AT_location[DW_OP_reg21] $C$DW$259 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR3") .dwattr $C$DW$259, DW_AT_location[DW_OP_reg22] $C$DW$260 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR3") .dwattr $C$DW$260, DW_AT_location[DW_OP_reg23] $C$DW$261 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR4") .dwattr $C$DW$261, DW_AT_location[DW_OP_reg24] $C$DW$262 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR4") .dwattr $C$DW$262, DW_AT_location[DW_OP_reg25] $C$DW$263 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR5") .dwattr $C$DW$263, DW_AT_location[DW_OP_reg26] $C$DW$264 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR5") .dwattr $C$DW$264, DW_AT_location[DW_OP_reg27] $C$DW$265 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR6") .dwattr $C$DW$265, DW_AT_location[DW_OP_reg28] $C$DW$266 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR6") .dwattr $C$DW$266, DW_AT_location[DW_OP_reg29] $C$DW$267 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR7") .dwattr $C$DW$267, DW_AT_location[DW_OP_reg30] $C$DW$268 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR7") .dwattr $C$DW$268, DW_AT_location[DW_OP_reg31] $C$DW$269 .dwtag DW_TAG_TI_assign_register, DW_AT_name("FP") .dwattr $C$DW$269, DW_AT_location[DW_OP_regx 0x20] $C$DW$270 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XFP") .dwattr $C$DW$270, DW_AT_location[DW_OP_regx 0x21] $C$DW$271 .dwtag DW_TAG_TI_assign_register, DW_AT_name("PC") .dwattr $C$DW$271, DW_AT_location[DW_OP_regx 0x22] $C$DW$272 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SP") .dwattr $C$DW$272, DW_AT_location[DW_OP_regx 0x23] $C$DW$273 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XSP") .dwattr $C$DW$273, DW_AT_location[DW_OP_regx 0x24] $C$DW$274 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BKC") .dwattr $C$DW$274, DW_AT_location[DW_OP_regx 0x25] $C$DW$275 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BK03") .dwattr $C$DW$275, DW_AT_location[DW_OP_regx 0x26] $C$DW$276 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BK47") .dwattr $C$DW$276, DW_AT_location[DW_OP_regx 0x27] $C$DW$277 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST0") .dwattr $C$DW$277, DW_AT_location[DW_OP_regx 0x28] $C$DW$278 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST1") .dwattr $C$DW$278, DW_AT_location[DW_OP_regx 0x29] $C$DW$279 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST2") .dwattr $C$DW$279, DW_AT_location[DW_OP_regx 0x2a] $C$DW$280 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST3") .dwattr $C$DW$280, DW_AT_location[DW_OP_regx 0x2b] $C$DW$281 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP") .dwattr $C$DW$281, DW_AT_location[DW_OP_regx 0x2c] $C$DW$282 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP05") .dwattr $C$DW$282, DW_AT_location[DW_OP_regx 0x2d] $C$DW$283 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP67") .dwattr $C$DW$283, DW_AT_location[DW_OP_regx 0x2e] $C$DW$284 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRC0") .dwattr $C$DW$284, DW_AT_location[DW_OP_regx 0x2f] $C$DW$285 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA0") .dwattr $C$DW$285, DW_AT_location[DW_OP_regx 0x30] $C$DW$286 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA0_H") .dwattr $C$DW$286, DW_AT_location[DW_OP_regx 0x31] $C$DW$287 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA0") .dwattr $C$DW$287, DW_AT_location[DW_OP_regx 0x32] $C$DW$288 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA0_H") .dwattr $C$DW$288, DW_AT_location[DW_OP_regx 0x33] $C$DW$289 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRS1") .dwattr $C$DW$289, DW_AT_location[DW_OP_regx 0x34] $C$DW$290 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRC1") .dwattr $C$DW$290, DW_AT_location[DW_OP_regx 0x35] $C$DW$291 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA1") .dwattr $C$DW$291, DW_AT_location[DW_OP_regx 0x36] $C$DW$292 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA1_H") .dwattr $C$DW$292, DW_AT_location[DW_OP_regx 0x37] $C$DW$293 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA1") .dwattr $C$DW$293, DW_AT_location[DW_OP_regx 0x38] $C$DW$294 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA1_H") .dwattr $C$DW$294, DW_AT_location[DW_OP_regx 0x39] $C$DW$295 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CSR") .dwattr $C$DW$295, DW_AT_location[DW_OP_regx 0x3a] $C$DW$296 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RPTC") .dwattr $C$DW$296, DW_AT_location[DW_OP_regx 0x3b] $C$DW$297 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CDP") .dwattr $C$DW$297, DW_AT_location[DW_OP_regx 0x3c] $C$DW$298 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XCDP") .dwattr $C$DW$298, DW_AT_location[DW_OP_regx 0x3d] $C$DW$299 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TRN0") .dwattr $C$DW$299, DW_AT_location[DW_OP_regx 0x3e] $C$DW$300 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TRN1") .dwattr $C$DW$300, DW_AT_location[DW_OP_regx 0x3f] $C$DW$301 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA01") .dwattr $C$DW$301, DW_AT_location[DW_OP_regx 0x40] $C$DW$302 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA23") .dwattr $C$DW$302, DW_AT_location[DW_OP_regx 0x41] $C$DW$303 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA45") .dwattr $C$DW$303, DW_AT_location[DW_OP_regx 0x42] $C$DW$304 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA67") .dwattr $C$DW$304, DW_AT_location[DW_OP_regx 0x43] $C$DW$305 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSAC") .dwattr $C$DW$305, DW_AT_location[DW_OP_regx 0x44] $C$DW$306 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CARRY") .dwattr $C$DW$306, DW_AT_location[DW_OP_regx 0x45] $C$DW$307 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TC1") .dwattr $C$DW$307, DW_AT_location[DW_OP_regx 0x46] $C$DW$308 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TC2") .dwattr $C$DW$308, DW_AT_location[DW_OP_regx 0x47] $C$DW$309 .dwtag DW_TAG_TI_assign_register, DW_AT_name("M40") .dwattr $C$DW$309, DW_AT_location[DW_OP_regx 0x48] $C$DW$310 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SXMD") .dwattr $C$DW$310, DW_AT_location[DW_OP_regx 0x49] $C$DW$311 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ARMS") .dwattr $C$DW$311, DW_AT_location[DW_OP_regx 0x4a] $C$DW$312 .dwtag DW_TAG_TI_assign_register, DW_AT_name("C54CM") .dwattr $C$DW$312, DW_AT_location[DW_OP_regx 0x4b] $C$DW$313 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SATA") .dwattr $C$DW$313, DW_AT_location[DW_OP_regx 0x4c] $C$DW$314 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SATD") .dwattr $C$DW$314, DW_AT_location[DW_OP_regx 0x4d] $C$DW$315 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RDM") .dwattr $C$DW$315, DW_AT_location[DW_OP_regx 0x4e] $C$DW$316 .dwtag DW_TAG_TI_assign_register, DW_AT_name("FRCT") .dwattr $C$DW$316, DW_AT_location[DW_OP_regx 0x4f] $C$DW$317 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SMUL") .dwattr $C$DW$317, DW_AT_location[DW_OP_regx 0x50] $C$DW$318 .dwtag DW_TAG_TI_assign_register, DW_AT_name("INTM") .dwattr $C$DW$318, DW_AT_location[DW_OP_regx 0x51] $C$DW$319 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR0LC") .dwattr $C$DW$319, DW_AT_location[DW_OP_regx 0x52] $C$DW$320 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR1LC") .dwattr $C$DW$320, DW_AT_location[DW_OP_regx 0x53] $C$DW$321 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR2LC") .dwattr $C$DW$321, DW_AT_location[DW_OP_regx 0x54] $C$DW$322 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR3LC") .dwattr $C$DW$322, DW_AT_location[DW_OP_regx 0x55] $C$DW$323 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR4LC") .dwattr $C$DW$323, DW_AT_location[DW_OP_regx 0x56] $C$DW$324 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR5LC") .dwattr $C$DW$324, DW_AT_location[DW_OP_regx 0x57] $C$DW$325 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR6LC") .dwattr $C$DW$325, DW_AT_location[DW_OP_regx 0x58] $C$DW$326 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR7LC") .dwattr $C$DW$326, DW_AT_location[DW_OP_regx 0x59] $C$DW$327 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CDPLC") .dwattr $C$DW$327, DW_AT_location[DW_OP_regx 0x5a] $C$DW$328 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CIE_RETA") .dwattr $C$DW$328, DW_AT_location[DW_OP_regx 0x5b] .dwendtag $C$DW$CU
43.337079
169
0.682973
1444da1772e42dd8212b152baaa21ae8c4c0aa86
4,309
asm
Assembly
test/include/gmp-6.1.2/mpn/cnd_sub_n.asm
kcpikkt/apa
9e84491ff58666b273ef50faea086e43abb89ab1
[ "MIT" ]
43
2020-10-29T18:05:40.000Z
2022-03-29T03:47:01.000Z
homomorphic_evaluation/gmp-6.1.2/mpn/cnd_sub_n.asm
dklee0501/Lobster
f2b73df9165c76e8b521d8ebd639d68321e3862b
[ "MIT" ]
1
2021-12-31T01:36:49.000Z
2021-12-31T15:21:54.000Z
homomorphic_evaluation/gmp-6.1.2/mpn/cnd_sub_n.asm
dklee0501/Lobster
f2b73df9165c76e8b521d8ebd639d68321e3862b
[ "MIT" ]
6
2020-11-07T07:31:27.000Z
2022-01-09T18:48:19.000Z
dnl AMD64 mpn_cnd_add_n, mpn_cnd_sub_n dnl Copyright 2011-2013 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of either: dnl dnl * the GNU Lesser General Public License as published by the Free dnl Software Foundation; either version 3 of the License, or (at your dnl option) any later version. dnl dnl or dnl dnl * the GNU General Public License as published by the Free Software dnl Foundation; either version 2 of the License, or (at your option) any dnl later version. dnl dnl or both in parallel, as here. dnl dnl The GNU MP Library is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License dnl for more details. dnl dnl You should have received copies of the GNU General Public License and the dnl GNU Lesser General Public License along with the GNU MP Library. If not, dnl see https://www.gnu.org/licenses/. include(`../config.m4') C cycles/limb C AMD K8,K9 2 C AMD K10 2 C AMD bd1 2.32 C AMD bobcat 3 C Intel P4 13 C Intel core2 2.9 C Intel NHM 2.8 C Intel SBR 2.4 C Intel atom 5.33 C VIA nano 3 C NOTES C * It might seem natural to use the cmov insn here, but since this function C is supposed to have the exact same execution pattern for cnd true and C false, and since cmov's documentation is not clear about whether it C actually reads both source operands and writes the register for a false C condition, we cannot use it. C * Two cases could be optimised: (1) cnd_add_n could use ADCSBB-from-memory C to save one insn/limb, and (2) when up=rp cnd_add_n and cnd_sub_n could use C ADCSBB-to-memory, again saving 1 insn/limb. C * This runs optimally at decoder bandwidth on K10. It has not been tuned C for any other processor. C INPUT PARAMETERS define(`cnd', `%rdi') dnl rcx define(`rp', `%rsi') dnl rdx define(`up', `%rdx') dnl r8 define(`vp', `%rcx') dnl r9 define(`n', `%r8') dnl rsp+40 ifdef(`OPERATION_cnd_add_n', ` define(ADDSUB, add) define(ADCSBB, adc) define(func, mpn_cnd_add_n)') ifdef(`OPERATION_cnd_sub_n', ` define(ADDSUB, sub) define(ADCSBB, sbb) define(func, mpn_cnd_sub_n)') MULFUNC_PROLOGUE(mpn_cnd_add_n mpn_cnd_sub_n) ABI_SUPPORT(DOS64) ABI_SUPPORT(STD64) ASM_START() TEXT ALIGN(16) PROLOGUE(func) FUNC_ENTRY(4) IFDOS(` mov 56(%rsp), R32(%r8)') push %rbx push %rbp push %r12 push %r13 push %r14 neg cnd sbb cnd, cnd C make cnd mask lea (vp,n,8), vp lea (up,n,8), up lea (rp,n,8), rp mov R32(n), R32(%rax) neg n and $3, R32(%rax) jz L(top) C carry-save reg rax = 0 in this arc cmp $2, R32(%rax) jc L(b1) jz L(b2) L(b3): mov (vp,n,8), %r12 mov 8(vp,n,8), %r13 mov 16(vp,n,8), %r14 and cnd, %r12 mov (up,n,8), %r10 and cnd, %r13 mov 8(up,n,8), %rbx and cnd, %r14 mov 16(up,n,8), %rbp ADDSUB %r12, %r10 mov %r10, (rp,n,8) ADCSBB %r13, %rbx mov %rbx, 8(rp,n,8) ADCSBB %r14, %rbp mov %rbp, 16(rp,n,8) sbb R32(%rax), R32(%rax) C save carry add $3, n js L(top) jmp L(end) L(b2): mov (vp,n,8), %r12 mov 8(vp,n,8), %r13 mov (up,n,8), %r10 and cnd, %r12 mov 8(up,n,8), %rbx and cnd, %r13 ADDSUB %r12, %r10 mov %r10, (rp,n,8) ADCSBB %r13, %rbx mov %rbx, 8(rp,n,8) sbb R32(%rax), R32(%rax) C save carry add $2, n js L(top) jmp L(end) L(b1): mov (vp,n,8), %r12 mov (up,n,8), %r10 and cnd, %r12 ADDSUB %r12, %r10 mov %r10, (rp,n,8) sbb R32(%rax), R32(%rax) C save carry add $1, n jns L(end) ALIGN(16) L(top): mov (vp,n,8), %r12 mov 8(vp,n,8), %r13 mov 16(vp,n,8), %r14 mov 24(vp,n,8), %r11 and cnd, %r12 mov (up,n,8), %r10 and cnd, %r13 mov 8(up,n,8), %rbx and cnd, %r14 mov 16(up,n,8), %rbp and cnd, %r11 mov 24(up,n,8), %r9 add R32(%rax), R32(%rax) C restore carry ADCSBB %r12, %r10 mov %r10, (rp,n,8) ADCSBB %r13, %rbx mov %rbx, 8(rp,n,8) ADCSBB %r14, %rbp mov %rbp, 16(rp,n,8) ADCSBB %r11, %r9 mov %r9, 24(rp,n,8) sbb R32(%rax), R32(%rax) C save carry add $4, n js L(top) L(end): neg R32(%rax) pop %r14 pop %r13 pop %r12 pop %rbp pop %rbx FUNC_EXIT() ret EPILOGUE()
23.418478
80
0.664191
70bb68f5b55b9388e1dda37c6daf7bc28fd50caf
8,453
asm
Assembly
src/intel/tools/tests/gen4.5/mov.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
src/intel/tools/tests/gen4.5/mov.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
src/intel/tools/tests/gen4.5/mov.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
mov(8) m2<1>UD g1<8,8,1>UD { align1 nomask }; mov(8) g9<1>.xyzUD 0x00000000UD { align16 }; mov.sat(8) m5<1>F g4<4>F { align16 }; mov(8) m4<1>F g6<4>F { align16 }; mov(8) m2<1>UD g9<4>UD { align16 }; mov(16) g6<1>D 1065353216D { align1 compr }; mov.nz.f0.0(16) null<1>D g2<0,1,0>D { align1 compr }; mov(16) m3<1>F 0x0F /* 0F */ { align1 compr4 }; mov(16) m4<1>F g4<8,8,1>F { align1 compr4 }; mov(8) m2<1>UD 0x00000000UD { align16 }; mov(8) g8<1>F 0x30003000VF /* [0F, 1F, 0F, 1F]VF */ { align16 }; mov(8) g7<1>.xD 0D { align16 }; (+f0.0.any4h) mov(8) g7<1>.xD -1D { align16 }; mov(16) m3<1>F g4<8,8,1>D { align1 compr4 }; mov(1) m14<1>D 0D { align1 nomask }; mov(8) m15<1>D g3<0>D { align16 }; mov(1) m14<1>D g8<0,1,0>D { align1 nomask }; mov(16) g12<1>F g4<8,8,1>UW { align1 compr }; mov(16) g4<1>D g12<8,8,1>F { align1 compr }; mov(16) g12<1>F g4<8,8,1>D { align1 compr }; mov(8) m15<1>D g2<4>.xUD { align16 }; mov(8) g7<1>.xD g4<0>.yD { align16 }; mov(8) g7<1>.xD g10<4>.xD { align16 NoDDClr }; mov(8) g7<1>.yD g4<0>.yD { align16 NoDDChk }; mov(16) m2<1>UD 0x00000000UD { align1 compr }; mov(16) m6<1>D g9.3<0,1,0>D { align1 compr }; mov(16) m8<1>UD 0D { align1 compr }; mov(16) m2<1>D g4<8,8,1>F { align1 compr }; mov(8) m5<1>.xF g3<4>.xD { align16 NoDDClr }; mov(8) m5<1>.yzwD 0D { align16 NoDDChk }; mov.sat(16) m3<1>F g2<0,1,0>F { align1 compr4 }; mov(8) m6<1>F 0x50484030VF /* [1F, 2F, 3F, 4F]VF */ { align16 }; mov(8) m3<1>F 0x42fc6666F /* 126.2F */ { align1 }; mov(8) m3<1>F 0x42fc6666F /* 126.2F */ { align1 sechalf }; mov(8) m5<1>.wD g8<4>.wD { align16 NoDDChk }; mov(8) g6<1>.xD g6<4>.xF { align16 }; mov(8) m3<1>F g[a0]<VxH,1,0>F { align1 }; mov(8) m7<1>F g[a0]<VxH,1,0>F { align1 sechalf }; mov(8) g20<1>.yD -1070881309D { align16 NoDDClr }; mov(8) g20<1>.zD 1091044167D { align16 NoDDChk }; mov(8) g28<1>.zD -1102236248D { align16 NoDDClr,NoDDChk }; mov(8) g5<1>.xD acc0<4>D { align16 }; mov(8) m13<1>.wD 1107296256D { align16 NoDDClr }; mov(8) g11<1>.yzwD 0x48403000VF /* [0F, 1F, 2F, 3F]VF */ { align16 }; mov(8) m13<1>.xyzF 0x7f7e7dVF /* [29F, 30F, 31F, 0F]VF */ { align16 NoDDChk }; mov(16) m3<1>UD g4<8,8,1>UD { align1 compr4 }; mov(8) m6<1>.xF 0x0F /* 0F */ { align16 }; (+f0.0.all4h) mov(8) g3<1>.xD -1D { align16 }; mov(8) g3<1>F g2<0,1,0>D { align1 }; mov(8) m3<1>F g2<8,8,1>D { align1 }; mov(8) m5<1>.yF g3<4>.xD { align16 NoDDClr,NoDDChk }; mov(8) m5<1>.wF g3<4>.xD { align16 NoDDChk }; mov(8) g3<1>.xF g3<4>.xD { align16 NoDDClr }; mov(8) g3<1>.yF g4<4>.xD { align16 NoDDClr,NoDDChk }; mov(8) g3<1>.wF g4<4>.xD { align16 NoDDChk }; mov(8) g8<1>UD g2<4>UD { align16 }; mov(8) g7<1>.xF g3<0>.xD { align16 }; mov(8) g6<1>.xF -g5<4>.yF { align16 NoDDClr }; mov.nz.f0.0(16) g4<1>F -(abs)g2<0,1,0>F { align1 compr }; (+f0.0) mov(16) g4<1>F 0xbf800000F /* -1F */ { align1 compr }; mov(16) g24<1>D g42<8,8,1>D { align1 compr }; mov(8) g8<1>F g[a0]<VxH,1,0>F { align1 }; mov(8) g9<1>F g[a0]<VxH,1,0>F { align1 sechalf }; mov(8) g3<1>.xyzF 0x0F /* 0F */ { align16 }; mov(16) m2<1>UD g28<8,8,1>UW { align1 compr }; mov(8) m3<1>D g2<0,1,0>D { align1 }; mov(8) m3<1>D g2<0,1,0>D { align1 sechalf }; mov(1) m14.2<1>UD 0x00000000UD { align1 nomask }; mov(8) g5<1>.zD g1.4<0>.xD { align16 NoDDClr,NoDDChk }; mov.sat(8) m5<1>.wF g20<4>.wF { align16 NoDDChk }; mov(8) g26<1>.xyzUD 0x00000000UD { align16 NoDDClr }; mov(8) m9<1>.xyD g4<0>.yzzzD { align16 NoDDClr }; mov(8) m5<1>F g3<4>D { align16 }; mov(8) m3<1>F g4<8,8,1>F { align1 nomask }; mov.sat(8) m5<1>.zF 0x3eaaaaabF /* 0.333333F */ { align16 }; mov.sat(8) m5<1>.wF 0x3dcccccdF /* 0.1F */ { align16 NoDDClr }; mov(8) m5<1>.zD g3<4>.zD { align16 NoDDClr,NoDDChk }; mov(8) m13<1>.yD 1107820544D { align16 NoDDClr,NoDDChk }; mov.sat(8) m5<1>.wF 0x3f800000F /* 1F */ { align16 NoDDChk }; mov.sat(8) m5<1>F g3<4>D { align16 }; mov.sat(8) m5<1>.zF 0x3f666660F /* 0.9F */ { align16 NoDDClr,NoDDChk }; mov(16) g10<1>F g2<0,1,0>F { align1 compr }; mov(16) g10<1>F 0x3f800000F /* 1F */ { align1 compr }; mov(8) m15<1>D 0D { align16 }; mov.sat(16) g4<1>F g2<0,1,0>F { align1 compr }; mov(8) g2<1>.xyzF g2<4>.wF { align16 }; mov(8) g5<1>.xyzF 0x7f7e7dVF /* [29F, 30F, 31F, 0F]VF */ { align16 NoDDChk }; mov.sat(8) m5<1>.xF g4<4>.xF { align16 NoDDClr }; mov.sat(8) m5<1>.yzF g5<4>.xxyyF { align16 NoDDClr,NoDDChk }; mov(1) f0.1<1>UW g0<0,1,0>UW { align1 nomask }; mov(1) g0<1>UW f0.1<0,1,0>UW { align1 nomask }; mov(8) m5<1>.zwF 0x30000000VF /* [0F, 0F, 0F, 1F]VF */ { align16 NoDDClr }; mov.sat(8) m5<1>.xF g5<4>.xD { align16 NoDDClr }; mov.sat(8) m5<1>.yF g5<4>.xD { align16 NoDDClr,NoDDChk }; mov.sat(8) m5<1>.wF g5<4>.xD { align16 NoDDChk }; mov(8) g6<1>.yzD 0xf7c000VF /* [0F, -2F, -23F, 0F]VF */ { align16 NoDDChk }; mov(8) m2<1>.xyzUD 0x00000000UD { align16 NoDDClr }; mov(8) m2<1>.wUD g8<4>.xUD { align16 NoDDChk }; mov(8) g5<1>F g3<4>UD { align16 }; mov.nz.f0.0(8) null<1>.xD g8<4>.xD { align16 }; mov.nz.f0.0(8) g8<1>F -(abs)g1<0>F { align16 }; (+f0.0) mov(8) g8<1>F 0xbf800000F /* -1F */ { align16 };
82.067961
96
0.359044
967fba5355d5f4025d5e4975fb7aad855bf2ff1c
7,508
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_4k_/i3-7100_9_0xca_notsx.log_21829_177.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_4k_/i3-7100_9_0xca_notsx.log_21829_177.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_4k_/i3-7100_9_0xca_notsx.log_21829_177.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 %r15 push %r8 push %rcx push %rdi push %rsi lea addresses_normal_ht+0x139f8, %rsi lea addresses_WC_ht+0x4204, %rdi add %r10, %r10 mov $69, %rcx rep movsq nop nop nop and %r15, %r15 lea addresses_D_ht+0x11509, %rsi lea addresses_A_ht+0x1df04, %rdi nop sub $4562, %r11 mov $20, %rcx rep movsq nop dec %r10 lea addresses_WC_ht+0x14a24, %rdi nop nop nop sub %r8, %r8 mov (%rdi), %cx nop nop add %rsi, %rsi lea addresses_WC_ht+0x1a99e, %rdi nop and %rcx, %rcx movw $0x6162, (%rdi) nop nop nop nop nop and $51459, %rsi lea addresses_normal_ht+0x7e04, %r10 add $24657, %r8 movw $0x6162, (%r10) nop nop nop add $39918, %rsi lea addresses_D_ht+0x15a04, %rsi lea addresses_normal_ht+0x1eadc, %rdi nop nop add $19175, %r12 mov $26, %rcx rep movsl nop nop nop and $27356, %r12 lea addresses_WT_ht+0x11a04, %r12 nop sub $10434, %r15 movb $0x61, (%r12) nop nop and %r12, %r12 pop %rsi pop %rdi pop %rcx pop %r8 pop %r15 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %r9 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi // Store lea addresses_WC+0x1ba04, %rbp nop nop cmp %rsi, %rsi mov $0x5152535455565758, %r10 movq %r10, %xmm3 movups %xmm3, (%rbp) nop cmp $12195, %rbp // Store lea addresses_D+0xb4, %rdx nop nop nop nop sub %r9, %r9 movl $0x51525354, (%rdx) sub $26425, %rax // Load lea addresses_PSE+0x7c18, %rdx add $38102, %rbp mov (%rdx), %eax nop nop add $29382, %r15 // Load lea addresses_RW+0x1bc2e, %r10 clflush (%r10) nop nop nop sub %r15, %r15 vmovups (%r10), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $0, %xmm2, %rdx nop nop nop nop nop xor %r9, %r9 // Store lea addresses_PSE+0x12cc4, %rax nop nop nop nop nop sub %rbp, %rbp movw $0x5152, (%rax) nop nop nop sub $4978, %rax // REPMOV lea addresses_WC+0x10a04, %rsi mov $0x2ac7e600000007c4, %rdi nop nop nop inc %r15 mov $9, %rcx rep movsw nop nop nop xor $64188, %rdx // Store lea addresses_WC+0x4604, %rdx nop nop nop cmp $34990, %r15 movl $0x51525354, (%rdx) nop nop nop nop and $31084, %rbp // Faulty Load lea addresses_A+0xe604, %rsi nop nop nop nop nop add %rbp, %rbp mov (%rsi), %r15 lea oracles, %rcx and $0xff, %r15 shlq $12, %r15 mov (%rcx,%r15,1), %r15 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r15 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_WC', 'size': 16, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_D', 'size': 4, 'AVXalign': False}} {'src': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_PSE', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_RW', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_PSE', 'size': 2, 'AVXalign': False}} {'src': {'type': 'addresses_WC', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_NC', 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WC', 'size': 4, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 8, 'AVXalign': True}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}} {'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}} {'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': True}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': True, 'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False}} {'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False}} {'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 */
32.786026
2,999
0.653436
a84b6f9124aa9da7c7c36ff88d613e9773a83b34
11,324
asm
Assembly
C5515_Support_Files/C5515_Lib/dsplib_2.40.00/55x_src/cubias.asm
HeroSizy/Sizy
89bc29940dc7666591259730b5112efd0a626043
[ "Unlicense" ]
null
null
null
C5515_Support_Files/C5515_Lib/dsplib_2.40.00/55x_src/cubias.asm
HeroSizy/Sizy
89bc29940dc7666591259730b5112efd0a626043
[ "Unlicense" ]
null
null
null
C5515_Support_Files/C5515_Lib/dsplib_2.40.00/55x_src/cubias.asm
HeroSizy/Sizy
89bc29940dc7666591259730b5112efd0a626043
[ "Unlicense" ]
null
null
null
;*********************************************************** ; Version 2.40.00 ;*********************************************************** ; Note: a symbol "SI_BUGS" is used to make a work around for silicon ; 5510 version1.0. If you are going to use the code on 5510 version1.0 ; silicon, you have to put switch -d"SI_BUGS" when you compile the code. ;**************************************************************** ; Function: corr_unbias ; Description: unbiased full length correlation of two vectors ; Processor: C55xx ; ; Useage: ushort corr_raw(DATA *x, DATA *r, ushort nx, ushort nr) ; Copyright Texas instruments Inc, 2000 ; ; History: ; - Modified save and restore AR5/AR6/AR7 to XAR5/XAR6/XAR7 registers. ; Li Yuan - 08/14/01 ;**************************************************************** .ARMS_off ;enable assembler for ARMS=0 .CPL_on ;enable assembler for CPL=1 .mmregs ;enable mem mapped register names .global _corr_unbias _corr_unbias ; Stack frame ; ----------- RET_ADDR_SZ .set 1 ;return address ;REG_SAVE_SZ .set 3 ;save-on-entry registers saved REG_SAVE_SZ .set 6 ;save-on-entry registers saved FRAME_SZ .set 8 ;local variables ARG_BLK_SZ .set 0 ;argument block ; Register usage ; -------------- PARAM_OFFSET .set REG_SAVE_SZ + FRAME_SZ .asg 0, temp .asg 1, x_orig .asg 3, y_orig .asg 5, r_orig .asg "0 + FRAME_SZ", SAVE_AR6 .asg "2 + FRAME_SZ", SAVE_AR7 .asg "4 + FRAME_SZ", SAVE_AR5 .asg "0 + REG_SAVE_SZ + FRAME_SZ", RETURN_ADDR .asg AR0, x_ptr .asg XAR0, Xx_ptr .asg AR1, y_ptr .asg XAR1, Xy_ptr .asg AR2, r_ptr .asg XAR2, Xr_ptr .asg AR3, mac_cnt .asg AR4, x_save .asg XAR4, Xx_save .asg AR5, y_save .asg XAR5, Xy_save .asg AR6, r1_r3_count .asg AR7, r2_ptr .asg XAR7, Xr2_ptr .asg T0, nx .asg T1, ny .asg AC2, odd .asg AC3, mytemp .asg AC1, B .asg AC0, A .asg AC0, oflag ;returned value ; ; Allocate the local frame and argument block ;---------------------------------------------------------------- PSH mmap(ST0_55) PSH mmap(ST1_55) PSH mmap(ST2_55) PSH mmap(ST3_55) AADD #-(ARG_BLK_SZ + FRAME_SZ + REG_SAVE_SZ), SP ; ; Save any save-on-entry registers that are used ; Configure the status registers as needed. ;---------------------------------------------------------------- MOV XAR5, dbl(*SP(#(SAVE_AR5))) ; PSHM XAR5 || BSET #ST1_SXMD, ST1_55 MOV XAR7, dbl(*SP(#(SAVE_AR7))) ; PSHM XAR7 || BSET #ST1_FRCT, ST1_55 MOV XAR6, dbl(*SP(#(SAVE_AR6))) ; PSHM XAR6 ;---------- X pointer setup ; x_ptr - X pointer as passed ; x_save - Used extensively in Region 3 and Region 2 ; x_orig - Unchanged original X pointer MOV Xx_ptr, dbl(*sp(#(x_orig))) ADD nx, x_ptr SUB #1, x_ptr MOV Xx_ptr, Xx_save ;---------- Y pointer setup ; y_ptr - Y pointer as passed ; y_save - Y+nx-2 and Y+nx-1 in Region 3 ; y_orig - Unchainged original Y pointer MOV Xy_ptr, dbl(*sp(#(y_orig))) MOV y_ptr, A ADD nx, A SUB #2, A MOV Xy_ptr, Xy_save MOV A, y_save ;---------- R pointer setup ; r_ptr - R pointer as passed. Eventually used and initialized as r+nx-2 ; r2_ptr - r+ny ; r_orig - Unchainged original Y pointer MOV Xr_ptr,dbl( *sp(#(r_orig))) MOV r_ptr, A MOV r_ptr, B ADD nx, B SUB #2, B MOV B, r_ptr || ADD ny, A MOV Xr_ptr, Xr2_ptr MOV A, r2_ptr ; ; Initialize MAC cnt for regions 1 & 3, these will be ; calculated in one loop, since the number of elements is the ; same in each region. ;---------------------------------------------------------------- || MOV nx, B MOV nx, A SUB #4, B SUB #1, A || MOV B, mac_cnt MOV B, r1_r3_count ;+++++++++++ BIAS Calculator +++++++++++++++ ; Upon entry: ; r_ptr = r+nx-2 ; r2_ptr = r+ny ; mac_cnt = nx-4 ; temp = nx-1 ;Setup BRC for localrepeat ; BRC0 = mac_cnt ;Setup n_mac ; || *sp(#(temp)) = A MOV mac_cnt, BRC0 || MOV A, *sp(#(temp)) ; Clear SXMD ; bit(ST1,#ST1_SXMD) = #0 ; Clear SXMD BCLR #ST1_SXMD, ST1_55 RPTBLOCAL biascalclocalend ;Compute bias value MOV #32767, A || RPT #15 SUBC *sp(#(temp)), A, A ; Adjust the temp value ADD #-1, *sp(#(temp)) ;Store bias value twice into output array MOV A, *r_ptr- biascalclocalend: MOV A, *r2_ptr+ ; Setup SXMD BSET #ST1_SXMD, ST1_55 ;+++++++++++ End of BIAS calculator +++++++++++++++ ; ---- ODD detection ---- ; Due to the Dual MAC, we need to know if the region 1 and region 3 ; are odd or even in length. If the number is odd, then we will need ; to do an extra MAC outside of the loop. BTST @#0, r1_r3_count, TC1 MOV #0, odd .if $isdefed("SI_BUGS") XCC temp000529, !TC1 .else XCCPART temp000529, !TC1 .endif MOV #-1, odd temp000529: ; For the dual MAC, we need to divide by two followed ; by a subsequent subtraction by 1 only if we have and odd number ; of MAC's to do. ; r1_r3_count = r1_r3_count >> #1; ; || if (odd<#0) execute(d_unit) ; r1_r3_count = r1_r3_count - #1 ; BRC0 = r1_r3_count SFTL r1_r3_count, #-1 .if $isdefed("SI_BUGS") XCC temp000529b, odd < #0 .else XCCPART temp000529b, odd < #0 .endif SUB #1, r1_r3_count temp000529b: MOV r1_r3_count, BRC0 || MOV nx, B SUB #4, B MOV B, mac_cnt ; Initial lag is in region 1, load initial MAC count and ; number of elements to calculate in region 1 ;---------------------------------------------------------------- REGION1_AND_3: ; ---- Pointer Setup ---- MOV Xy_save, Xy_ptr MOV Xy_ptr, Xx_ptr SUB #1, y_ptr, x_ptr MOV Xx_save, XCDP ;Reset r_ptr to initial values MOV dbl(*sp(#(r_orig))), B ADD nx, B SUB #2, B MOV B, Xr_ptr ;--------- Calculate sum in region 1 MOV mac_cnt, CSR RPTBLOCAL endlocal1 SUB #2, y_save ; ---- Preload A ---- MPY *x_ptr-, *CDP-, A :: MPY *y_ptr-, *CDP-, B ; ---- Main Dual MAC loop ---- RPTSUB CSR, #2 MAC *x_ptr-, *CDP-, A :: MAC *y_ptr-, *CDP-, B ; ---- Cleanup MAC ---- MACM *y_ptr-, *CDP-, B MOV Xx_save, XCDP ; ---- BIAS A and B and Store ---- MPYMR *r_ptr, B, B MOV Xy_save, Xy_ptr MOV Xy_ptr, Xx_ptr SUB #1, x_ptr MOV HI(B), *r_ptr- MPYMR *r_ptr, A, A endlocal1: MOV HI(A), *r_ptr- ; ---- Setup for Region 1 ---- ;---------- Calculate some MAC's outside of the loop BCC REGION1_FINAL, odd == #0 ; ---- 3 ----- MPYM *y_ptr-, *CDP-, A MACM *y_ptr-, *CDP-, A MACM *y_ptr, *CDP, A ; BIAS MPYMR *r_ptr, A, A MOV HI(A), *r_ptr- ; Setup pointers for next loop SUB #1, y_save MOV Xx_save, XCDP MOV Xy_save, Xy_ptr ; ---- 2 ----- REGION1_FINAL: MPYM *y_ptr-, *CDP-, A MACMR *y_ptr, *CDP+, A MOV HI(A << #-1), *r_ptr- ; ---- 1 ----- MPYM *y_ptr, *CDP, A MOV HI(A), *r_ptr- ;--------- Calculate sum in region 3 MOV r1_r3_count, BRC0 MOV mac_cnt, CSR ; ---- Pointer Setup ---- MOV dbl(*sp(#(y_orig))), B ADD ny, B SUB #1, B MOV B, Xy_save MOV Xy_save, XCDP ; Compute x_save=X+nx-2 MOV dbl(*sp(#(x_orig))), Xx_save ADD nx, x_save SUB #2, x_save MOV Xx_save, Xy_ptr MOV Xy_ptr, Xx_ptr SUB #1, y_ptr, x_ptr ;Reset r2_ptr to initial values MOV dbl(*sp(#(r_orig))), A ADD ny, A MOV A, Xr2_ptr RPTBLOCAL localend3 SUB #2, x_save ; ---- Preload A ---- MPY *x_ptr-, *CDP-, A :: MPY *y_ptr-, *CDP-, B ; ---- Main Dual MAC loop ---- RPTSUB CSR, #2 MAC *x_ptr-, *CDP-, A :: MAC *y_ptr-, *CDP-, B ; ---- Cleanup MAC ---- MACM *y_ptr-, *CDP-, B MOV Xy_save, XCDP ; ---- BIAS A and B and Store ---- MPYMR *r2_ptr, B, B MOV Xx_save, Xy_ptr MOV Xy_ptr, Xx_ptr SUB #1, x_ptr MOV HI(B), *r2_ptr+ MPYMR *r2_ptr, A, A localend3: MOV HI(A), *r2_ptr+ ; ---- Setup for Region 3 ---- ; ---- 3 ----- BCC REGION3_FINAL, odd == #0 ; no need for division since the previous one did it for me already ; MACs MPYM *y_ptr-, *CDP-, A MACM *y_ptr-, *CDP-, A MACM *y_ptr, *CDP, A ; BIAS MPYMR *r2_ptr, A, A MOV HI(A), *r2_ptr+ ; Setup pointers for next loop SUB #1, x_save MOV Xx_save, XCDP MOV Xy_save, Xy_ptr ; ---- 2 ----- REGION3_FINAL: MPYM *y_ptr-, *CDP-, A MACMR *y_ptr+, *CDP, A MOV HI(A << #-1), *r2_ptr+ ; ---- 1 ----- MPYM *y_ptr, *CDP, A MOV HI(A), *r2_ptr ;--------- Calculate sum in region 2 ; ---- BIAS calculation ----- ; Clear SXMD BCLR #ST1_SXMD, ST1_55 ; Actual calculation MOV #32767, A MOV nx, *sp(#(temp)) RPT #15 SUBC *sp(#(temp)), A, A ADD #1, A MOV A, *sp(#(temp)) ; Set SXMD BSET #ST1_SXMD, ST1_55 ;---------- ; .end ;---------- REGION2: ; Repeat setup MOV ny, A SUB nx, A MOV A, T3 MOV T3, BRC0 MOV nx, mac_cnt SUB #2, mac_cnt ; R pointer setup MOV nx, B SUB #1, B ADD dbl(*sp(#(r_orig))), B MOV B, Xr_ptr ; Setup pointers MOV dbl(*sp(#(y_orig))), Xy_save MOV dbl(*sp(#(x_orig))), Xx_save MOV Xx_save, XCDP MOV Xy_save, Xy_ptr MOV mac_cnt, CSR REGION2_LOOP: RPTBLOCAL r2localloop ; ---- Setup pointers ---- ADD #1, y_save ; ---- Preload A ---- MPYM *y_ptr+, *CDP+, A ; ---- Main MAC loop ---- ; MOV mac_cnt, CSR RPT CSR MACM *y_ptr+, *CDP+, A ; ---- BIAS ---- MPYMR *sp(#(temp)), A, A ; ---- Setup for subsequent passes through Region 2 ---- MOV Xx_save, XCDP MOV Xy_save, Xy_ptr ; ---- Store ---- r2localloop: MOV HI(A), *r_ptr+ ; Check if overflow occurred, and setup return value ;---------------------------------------------------------------- MOV #0, oflag .if $isdefed("SI_BUGS") XCC dummy1, overflow(A) .else XCCPART dummy1, overflow(A) .endif dummy1: MOV #1, A .if $isdefed("SI_BUGS") XCC dummy2, overflow(B) .else XCCPART dummy2, overflow(B) .endif dummy2: MOV #1, A ; ; Restore status regs to expected C-convention values as needed ; Restore any save-on-entry registers that are used ;---------------------------------------------------------------- MOV dbl(*SP(#(SAVE_AR7))), XAR7 ; POPM AR7 || BCLR #ST1_SATD, ST1_55 MOV dbl(*SP(#(SAVE_AR6))), XAR6 ; POPM AR6 || BCLR SATA MOV dbl(*SP(#(SAVE_AR5))), XAR5 ; POPM AR5 || BCLR #ST1_FRCT, ST1_55 ; ; Deallocate the local frame and argument block ;---------------------------------------------------------------- AADD #(ARG_BLK_SZ + FRAME_SZ + REG_SAVE_SZ), SP POP mmap(ST3_55) POP mmap(ST2_55) POP mmap(ST1_55) POP mmap(ST0_55) ; ; Return to calling function ;---------------------------------------------------------------- return ; RETD ;---------------------------------------------------------------- ;End of file
23.396694
74
0.522342
bc1db847613d613fc8a3b1d14af49d1ea4532f37
380
asm
Assembly
programs/oeis/267/A267587.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/267/A267587.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/267/A267587.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A267587: Middle column of the "Rule 169" elementary cellular automaton starting with a single ON (black) cell. ; 1,0,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 mov $1,1 lpb $0 sub $0,1 mul $1,$0 bin $0,2 lpe mov $0,$1
34.545455
201
0.578947
6ebb923a0e0e03a5b098f834ab89a43c5840a535
324
asm
Assembly
programs/oeis/128/A128055.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/128/A128055.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/128/A128055.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A128055: a(n)=2^A128054(n). ; 1,1,2,4,8,32,64,64,128,256,512,2048,4096,4096,8192,16384,32768,131072,262144,262144,524288,1048576,2097152,8388608,16777216,16777216,33554432,67108864,134217728,536870912,1073741824 mov $2,$0 add $2,1 div $2,2 mov $1,$2 gcd $1,3 lpb $0 sub $0,1 mul $1,2 add $1,1 lpe div $1,4 add $1,1
20.25
183
0.697531