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
898d3c53916305d073aa2e98f81f0aef4d8f441f
1,062
asm
Assembly
programs/oeis/168/A168333.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/168/A168333.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/168/A168333.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A168333: a(n) = (14*n + 7*(-1)^n + 1)/4. ; 2,9,9,16,16,23,23,30,30,37,37,44,44,51,51,58,58,65,65,72,72,79,79,86,86,93,93,100,100,107,107,114,114,121,121,128,128,135,135,142,142,149,149,156,156,163,163,170,170,177,177,184,184,191,191,198,198,205,205,212,212,219,219,226,226,233,233,240,240,247,247,254,254,261,261,268,268,275,275,282,282,289,289,296,296,303,303,310,310,317,317,324,324,331,331,338,338,345,345,352,352,359,359,366,366,373,373,380,380,387,387,394,394,401,401,408,408,415,415,422,422,429,429,436,436,443,443,450,450,457,457,464,464,471,471,478,478,485,485,492,492,499,499,506,506,513,513,520,520,527,527,534,534,541,541,548,548,555,555,562,562,569,569,576,576,583,583,590,590,597,597,604,604,611,611,618,618,625,625,632,632,639,639,646,646,653,653,660,660,667,667,674,674,681,681,688,688,695,695,702,702,709,709,716,716,723,723,730,730,737,737,744,744,751,751,758,758,765,765,772,772,779,779,786,786,793,793,800,800,807,807,814,814,821,821,828,828,835,835,842,842,849,849,856,856,863,863,870,870,877 mov $1,$0 add $1,1 div $1,2 mul $1,7 add $1,2
118
971
0.717514
bb3c1b7c827a3ee31da2b4c45e9ec57031371373
1,921
asm
Assembly
elfheader.asm
tx-hybris/launch-hybris
8f8a7b5d313a8211e4771d2adba29c66ff9559f4
[ "BSD-2-Clause" ]
null
null
null
elfheader.asm
tx-hybris/launch-hybris
8f8a7b5d313a8211e4771d2adba29c66ff9559f4
[ "BSD-2-Clause" ]
null
null
null
elfheader.asm
tx-hybris/launch-hybris
8f8a7b5d313a8211e4771d2adba29c66ff9559f4
[ "BSD-2-Clause" ]
null
null
null
; ; elfheader.asm ; to be included at top of a nasm-source file for calling nasm with "-f bin" ; Frank Bergmann www.tuxad.com, 08/2009 ; BITS 32 org 0x08048000 ;org 0x0804802C ehdr: ; Elf32_Ehdr db 0x7F, "ELF", 1, 1, 1, 0 ; e_ident times 8 db 0 dw 2 ; e_type dw 3 ; e_machine dd 1 ; e_version dd _start ; e_entry dd phdr - $$ ; e_phoff dd 0 ; e_shoff dd 0 ; e_flags dw ehdrsize ; e_ehsize dw phdrsize ; e_phentsize dw 1 ; e_phnum dw 40 ; e_shentsize, 40 for 32Bit dw 0 ; e_shnum dw 0 ; e_shstrndx ehdrsize equ $ - ehdr phdr: ; Elf32_Phdr dd 1 ; p_type dd 0 ; p_offset dd $$ ; p_vaddr dd $$ ; p_paddr dd filesize ; p_filesz dd filesize ; p_memsz dd 5 ; p_flags dd 0x1000 ; p_align phdrsize equ $ - phdr
45.738095
83
0.256637
5106dea986928301e0e118c43a25dfe9a4f1c70e
5,330
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_5802_961.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_5802_961.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_5802_961.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r15 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0xb5af, %rsi lea addresses_D_ht+0xabdf, %rdi nop and $32877, %r15 mov $34, %rcx rep movsq nop nop nop sub $34957, %rdi lea addresses_UC_ht+0xe22f, %rbp nop nop nop nop sub %r9, %r9 movl $0x61626364, (%rbp) nop nop nop nop cmp %r9, %r9 lea addresses_A_ht+0x462f, %r12 nop mfence movb $0x61, (%r12) nop nop nop and $34264, %r12 lea addresses_UC_ht+0x138eb, %r9 xor %r15, %r15 movb (%r9), %r12b nop and %rsi, %rsi lea addresses_WC_ht+0x1bbaf, %rdi nop nop nop cmp $39755, %rbp movw $0x6162, (%rdi) nop nop nop nop xor $18084, %rbp lea addresses_A_ht+0x458f, %rsi lea addresses_A_ht+0x140cf, %rdi clflush (%rsi) nop nop nop nop cmp $55963, %r14 mov $29, %rcx rep movsw nop nop nop add $21445, %r9 pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r15 pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r8 push %rax push %rbx push %rcx // Faulty Load lea addresses_WC+0x1062f, %rcx clflush (%rcx) nop nop nop nop nop xor %r8, %r8 mov (%rcx), %ax lea oracles, %r8 and $0xff, %rax shlq $12, %rax mov (%r8,%rax,1), %rax pop %rcx pop %rbx pop %rax pop %r8 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 11, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': True}} {'38': 5802} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
42.983871
2,999
0.658724
67dcfc908c18643141eb2aa16a48a52ad0e5b851
10,666
asm
Assembly
P6/data_P6_2/MDTest52.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
1
2022-01-23T09:24:47.000Z
2022-01-23T09:24:47.000Z
P6/data_P6_2/MDTest52.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
P6/data_P6_2/MDTest52.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
ori $ra,$ra,0xf div $4,$ra sll $6,$1,22 sb $5,14($0) mult $5,$4 addu $4,$4,$2 lui $5,30477 mthi $3 lui $1,7599 multu $5,$5 multu $3,$4 mthi $3 mtlo $0 ori $5,$4,25195 mflo $1 mfhi $4 lb $6,11($0) srav $2,$4,$2 mfhi $4 addiu $6,$2,-17947 sll $5,$1,31 mfhi $2 divu $5,$ra ori $2,$5,38631 divu $1,$ra addu $0,$0,$2 mthi $4 divu $5,$ra mflo $4 addu $2,$2,$0 srav $4,$0,$3 lb $3,16($0) divu $6,$ra addiu $3,$3,-28645 mthi $6 srav $1,$5,$3 divu $4,$ra divu $1,$ra divu $5,$ra sb $1,2($0) divu $4,$ra multu $4,$5 mflo $1 mfhi $1 multu $1,$5 sb $4,15($0) div $4,$ra srav $5,$5,$4 divu $1,$ra lui $5,41980 addu $1,$2,$2 sb $5,3($0) srav $0,$0,$0 sll $5,$2,0 divu $2,$ra lui $4,49868 mthi $1 sb $4,0($0) ori $1,$1,47436 mult $2,$2 sll $4,$1,8 lui $5,1301 mthi $2 ori $5,$2,49651 mfhi $5 lb $4,16($0) srav $5,$1,$1 div $4,$ra lui $1,1787 mflo $6 divu $1,$ra mfhi $4 mtlo $5 sb $6,4($0) addiu $5,$1,29074 multu $5,$4 mfhi $4 mthi $4 mthi $4 sb $5,9($0) mult $1,$1 sll $4,$2,13 srav $5,$3,$3 mthi $2 ori $1,$5,56168 mtlo $5 lb $4,6($0) srav $5,$1,$4 multu $0,$5 lui $5,35672 sb $4,13($0) mfhi $6 sb $5,9($0) sll $3,$1,16 addiu $5,$4,15110 multu $5,$4 lui $5,13896 mfhi $5 mtlo $1 multu $4,$2 ori $5,$4,13104 mthi $5 addiu $1,$1,-15574 mthi $6 sll $4,$6,1 div $6,$ra addu $2,$1,$2 multu $5,$5 sll $4,$2,26 div $5,$ra divu $5,$ra srav $4,$4,$4 mfhi $1 addiu $5,$5,-6033 lb $0,15($0) mthi $4 divu $5,$ra mthi $4 addiu $2,$2,-22378 div $2,$ra addu $4,$0,$4 mflo $1 mult $2,$2 mtlo $3 mthi $4 sll $1,$5,2 addu $4,$5,$4 srav $6,$6,$6 sll $6,$6,19 mult $5,$5 divu $1,$ra div $4,$ra sb $4,0($0) addu $1,$1,$1 mult $5,$0 mfhi $3 addiu $5,$4,-14607 mult $0,$0 mtlo $5 divu $3,$ra sb $1,4($0) sll $5,$4,21 mult $4,$5 sll $5,$5,5 mtlo $2 divu $5,$ra sb $5,2($0) multu $4,$5 srav $2,$2,$6 sll $5,$4,8 multu $5,$6 mthi $1 addiu $5,$6,5296 addu $0,$5,$1 mflo $6 lb $3,4($0) mthi $4 mult $3,$1 addiu $5,$3,30859 lui $1,44134 srav $5,$5,$5 sb $4,10($0) ori $4,$4,1000 sb $4,5($0) mult $4,$2 lb $1,3($0) addu $1,$1,$1 mult $5,$4 srav $4,$0,$0 mfhi $3 lui $1,1684 mtlo $4 mthi $2 mtlo $5 mfhi $1 lui $5,1787 lui $4,6535 sll $5,$5,5 ori $5,$4,33183 divu $2,$ra mfhi $6 mthi $5 mtlo $1 sll $0,$4,7 addu $4,$4,$4 sll $0,$0,18 mtlo $4 addiu $5,$5,29657 mflo $6 div $6,$ra mthi $3 mthi $1 mflo $0 multu $4,$1 sb $1,4($0) mfhi $1 div $2,$ra mfhi $5 lb $6,9($0) sll $5,$4,14 ori $0,$1,55499 lb $1,1($0) mfhi $5 mflo $5 ori $4,$2,43209 ori $5,$5,33063 srav $0,$0,$5 addiu $6,$6,2623 sll $4,$4,7 mthi $4 multu $0,$4 sb $4,10($0) addiu $5,$2,-30382 sb $4,1($0) addu $4,$6,$5 addu $4,$2,$2 multu $5,$1 lui $6,58779 addiu $4,$5,-26210 divu $1,$ra lb $5,5($0) ori $6,$6,34842 lui $1,53279 lui $5,21725 lui $6,25562 sll $5,$5,13 multu $2,$1 lb $1,11($0) mflo $5 sb $4,11($0) mflo $4 div $5,$ra divu $1,$ra lui $4,11704 sb $5,5($0) multu $1,$1 addiu $0,$6,-19941 multu $1,$2 addu $5,$1,$1 lui $0,39196 multu $3,$3 mthi $0 mult $1,$6 divu $4,$ra mult $0,$2 addu $1,$5,$2 mult $0,$4 mtlo $2 lb $2,16($0) sb $4,0($0) mthi $0 mfhi $6 sb $1,4($0) mult $5,$2 sb $6,10($0) multu $4,$5 mthi $1 addu $3,$2,$3 sll $5,$3,4 ori $1,$2,11387 mflo $6 mtlo $3 addiu $4,$2,-6693 mult $1,$1 divu $6,$ra mthi $6 lui $5,48429 mult $4,$4 multu $0,$1 srav $4,$4,$4 lui $4,9646 multu $5,$5 divu $6,$ra ori $2,$2,62971 sll $3,$3,10 addu $0,$4,$5 mtlo $1 mtlo $1 mult $4,$6 lui $2,57517 div $5,$ra mflo $6 mult $4,$2 mthi $4 lb $5,6($0) mfhi $4 ori $6,$3,52813 mult $0,$0 addu $1,$5,$4 mflo $5 srav $2,$4,$2 lb $3,1($0) addiu $1,$2,88 div $3,$ra divu $5,$ra mflo $1 mtlo $3 div $4,$ra div $5,$ra mflo $3 addu $4,$4,$4 sll $5,$2,21 mflo $1 mult $1,$1 divu $2,$ra addu $4,$1,$5 sll $2,$2,7 ori $2,$0,13841 ori $6,$0,40185 ori $2,$2,64237 srav $5,$5,$5 mtlo $4 sll $4,$4,26 mflo $6 mtlo $5 multu $3,$5 mtlo $5 divu $4,$ra addiu $4,$2,28950 ori $5,$2,25612 divu $6,$ra lui $6,35741 mtlo $6 sb $5,0($0) divu $6,$ra multu $1,$4 lb $1,12($0) addiu $5,$6,32111 sb $5,1($0) addiu $1,$2,14073 lui $4,36409 multu $3,$2 sll $5,$5,28 addiu $4,$0,-4039 mfhi $2 lui $1,47999 ori $4,$0,64333 mtlo $4 div $6,$ra ori $6,$5,25744 ori $4,$1,37106 srav $6,$3,$3 mthi $2 lui $5,26544 mult $3,$3 sll $1,$4,19 multu $1,$5 lb $3,0($0) srav $2,$2,$2 sll $4,$2,6 sll $4,$4,4 lb $3,10($0) mthi $4 mfhi $6 mfhi $6 lui $4,19931 sll $0,$4,29 mfhi $4 addu $4,$1,$4 mfhi $4 mult $2,$2 addiu $5,$6,16916 ori $4,$4,37942 ori $0,$0,45513 div $5,$ra mtlo $1 addu $2,$2,$2 mult $1,$4 mthi $4 sll $4,$2,21 ori $0,$0,60492 ori $6,$2,28235 sll $6,$4,26 ori $4,$4,42992 lui $1,14615 lui $0,6418 divu $4,$ra mflo $4 mtlo $0 mult $0,$4 multu $6,$6 mthi $5 mfhi $4 multu $4,$6 addiu $3,$1,18603 sll $4,$4,21 multu $3,$3 mult $2,$2 srav $5,$5,$5 mtlo $1 sb $6,0($0) mult $4,$2 mfhi $5 srav $5,$5,$5 srav $1,$4,$4 mult $1,$5 mult $5,$1 addiu $3,$3,-24460 div $1,$ra ori $1,$1,28078 lb $6,8($0) addu $4,$4,$2 ori $2,$2,56843 addu $5,$1,$5 div $1,$ra lui $4,1590 addiu $2,$1,5700 mflo $4 sb $3,3($0) mtlo $5 ori $2,$2,11475 mthi $1 mult $6,$2 mfhi $6 addiu $1,$4,-10295 srav $5,$4,$6 multu $0,$1 multu $5,$2 div $5,$ra mtlo $4 lb $4,11($0) sb $4,4($0) sb $2,14($0) mult $0,$4 multu $1,$5 mfhi $5 mthi $1 ori $5,$4,48676 addu $6,$2,$1 sll $3,$3,21 mfhi $1 divu $3,$ra mflo $1 ori $1,$2,2737 divu $1,$ra sll $3,$3,30 mflo $1 addiu $4,$0,26998 lui $4,33655 sb $3,7($0) mtlo $4 mfhi $4 mtlo $1 sb $4,3($0) multu $4,$4 mthi $5 mthi $2 srav $2,$2,$2 div $1,$ra mfhi $4 div $1,$ra lui $5,19867 divu $4,$ra ori $5,$3,8393 ori $0,$5,45922 addu $1,$5,$1 divu $5,$ra divu $1,$ra ori $4,$5,17319 sll $4,$2,23 mfhi $1 mthi $6 div $2,$ra ori $1,$2,61066 multu $3,$3 mult $1,$0 sb $4,1($0) lb $5,14($0) mflo $4 mtlo $1 mthi $5 multu $4,$2 sll $4,$1,18 mtlo $1 lui $1,35019 addiu $4,$4,9804 multu $6,$0 div $1,$ra mult $0,$1 mthi $1 mthi $5 srav $4,$2,$4 addu $4,$4,$1 mfhi $6 lb $6,12($0) mflo $5 mthi $4 mflo $2 multu $6,$2 mthi $4 lb $4,11($0) multu $1,$1 srav $4,$1,$4 ori $0,$0,30269 mult $4,$2 mfhi $4 mtlo $4 srav $4,$2,$2 divu $6,$ra srav $1,$4,$4 ori $4,$2,37111 lui $2,55874 div $5,$ra addiu $1,$2,19173 addiu $2,$2,-30781 srav $5,$4,$4 addiu $6,$2,9095 addiu $4,$4,-13678 mflo $4 lui $4,32962 ori $2,$2,637 mult $4,$2 mthi $6 multu $4,$4 addu $1,$4,$4 addiu $4,$6,-13107 divu $4,$ra addu $1,$1,$2 div $4,$ra mfhi $0 mfhi $2 addiu $3,$1,-19892 div $5,$ra sll $4,$4,22 ori $2,$2,34865 addiu $1,$2,3584 divu $6,$ra ori $6,$0,64031 srav $0,$0,$4 mult $5,$0 addiu $2,$2,-4790 addiu $1,$1,30331 ori $2,$2,13049 sll $4,$6,24 addu $4,$4,$4 mflo $5 multu $3,$3 mflo $5 ori $4,$4,15881 mtlo $4 ori $6,$4,1481 multu $4,$4 mult $1,$1 sll $4,$2,1 addiu $3,$3,-21991 div $5,$ra mtlo $0 sll $6,$5,15 div $3,$ra mflo $1 addu $5,$0,$1 addiu $4,$4,19578 mflo $4 divu $6,$ra sll $5,$5,3 div $0,$ra lb $4,5($0) mflo $6 addiu $4,$2,26498 addu $1,$6,$5 sb $1,6($0) div $6,$ra ori $4,$1,250 srav $5,$1,$5 ori $2,$2,18780 div $6,$ra mthi $3 sll $5,$2,2 multu $1,$1 mtlo $4 mthi $4 div $5,$ra mtlo $5 multu $5,$4 ori $4,$4,62536 mflo $3 mult $6,$2 mfhi $6 sll $3,$3,23 div $5,$ra lui $1,9274 srav $1,$5,$4 addu $2,$2,$6 sll $1,$6,31 addiu $1,$1,-9053 div $1,$ra lb $2,15($0) ori $4,$2,23394 srav $3,$3,$3 sll $0,$0,11 sll $0,$0,22 mtlo $5 lb $0,16($0) mtlo $0 ori $1,$0,50708 sb $1,5($0) sll $4,$4,23 multu $0,$4 multu $4,$4 addiu $5,$1,-11792 mult $5,$4 addu $4,$0,$4 mflo $3 divu $6,$ra sll $2,$5,20 addu $6,$1,$5 div $4,$ra mthi $1 div $6,$ra addiu $5,$5,-29045 multu $5,$5 mfhi $3 mthi $1 mflo $4 mtlo $3 addu $5,$2,$2 mult $4,$2 mfhi $5 div $1,$ra sb $4,11($0) lb $4,16($0) addiu $1,$1,-25978 multu $0,$5 lb $1,14($0) mthi $4 mthi $3 lui $4,40311 addiu $5,$5,-16829 ori $1,$1,22700 mfhi $2 multu $4,$1 multu $5,$0 lui $2,64996 sb $0,0($0) addu $2,$2,$2 mflo $5 divu $5,$ra addiu $1,$1,-10928 srav $1,$4,$1 mthi $6 mult $4,$2 mthi $0 div $4,$ra mthi $1 addiu $2,$2,-18822 addiu $2,$5,6502 mult $5,$4 mflo $6 div $5,$ra mflo $4 mult $6,$4 addu $0,$5,$0 lb $4,8($0) ori $4,$2,48848 addu $1,$1,$3 mflo $1 sll $3,$3,22 addu $5,$4,$2 multu $3,$1 mfhi $4 sb $1,0($0) lb $4,7($0) mtlo $1 mfhi $4 addiu $4,$4,10267 lb $2,7($0) mult $3,$5 sb $3,16($0) sb $6,11($0) addiu $5,$1,-9571 sb $4,12($0) mult $3,$4 lb $4,12($0) divu $4,$ra mtlo $2 addu $4,$4,$4 mflo $3 sb $4,3($0) lb $1,16($0) div $5,$ra mult $1,$1 addu $1,$4,$5 div $6,$ra multu $1,$2 mult $3,$3 mult $5,$1 addu $1,$5,$2 srav $2,$2,$2 mfhi $0 srav $5,$2,$4 mtlo $4 srav $3,$1,$3 mult $1,$2 addiu $1,$4,-7090 mtlo $5 mflo $0 div $1,$ra sb $1,8($0) lb $1,3($0) sb $4,3($0) lui $4,47862 div $4,$ra mflo $1 srav $1,$1,$3 mtlo $2 mflo $4 multu $0,$0 addiu $1,$2,27759 addiu $4,$4,31539 mfhi $6 mtlo $0 sb $1,2($0) mflo $1 lui $4,48536 mult $4,$4 divu $4,$ra mtlo $3 div $0,$ra mflo $5 divu $4,$ra mtlo $2 addu $4,$2,$3 mult $5,$6 srav $4,$2,$4 addiu $1,$3,25599 lb $1,3($0) lb $5,6($0) addiu $6,$3,25072 mfhi $4 lui $6,36778 sb $5,6($0) lui $5,5286 sb $4,16($0) mult $1,$1 addu $4,$4,$4 mthi $4 addu $3,$4,$3 sb $5,4($0) mflo $0 lb $5,4($0) addiu $5,$1,17826 mthi $4 mult $4,$4 addiu $4,$5,-8096 mult $1,$5 mthi $4 div $4,$ra div $3,$ra sll $1,$1,12 mflo $0 mthi $1 mfhi $5 mthi $1 multu $5,$2 ori $4,$5,63235 ori $4,$4,21842 sll $1,$0,8 sll $1,$2,0 srav $1,$0,$4 div $1,$ra mult $5,$5 div $6,$ra mult $5,$1 addiu $6,$4,-32614 addu $5,$3,$3 lui $5,61107 mthi $3 lui $0,12861 mtlo $0 lui $1,15349 lb $5,12($0) srav $0,$0,$1 mult $0,$3 div $0,$ra addu $2,$1,$2 mflo $5 sb $4,1($0) addiu $1,$1,-16838 sll $1,$1,6 addiu $2,$2,-23499 mfhi $6 addiu $5,$5,-6663 addu $6,$4,$4 lui $0,42395 mtlo $0 addiu $5,$2,23112 addiu $6,$6,-25531 div $1,$ra mflo $2 srav $1,$1,$4 ori $5,$4,45904 mfhi $1 srav $3,$2,$3 div $4,$ra srav $0,$2,$5 sb $6,6($0) addu $6,$1,$2 mult $0,$3 addu $5,$3,$3 divu $3,$ra lb $2,9($0) div $3,$ra addiu $4,$4,30928 addu $4,$1,$1 ori $4,$4,4435 sll $1,$5,5 addu $5,$0,$4 divu $0,$ra divu $5,$ra lb $4,7($0) sb $4,1($0) srav $0,$4,$4 mflo $4 mthi $4 ori $5,$5,39581 mthi $6 mfhi $4 sll $5,$1,6 srav $0,$4,$4 mtlo $1 sb $6,3($0) mflo $4 addu $4,$4,$4 mfhi $5 sb $0,15($0) srav $6,$0,$3 mthi $4 ori $4,$2,62357 lb $4,5($0) lb $2,10($0) mflo $4 sb $1,10($0) mthi $1 mult $1,$4 mflo $4 ori $5,$3,52289 mflo $4 divu $1,$ra lui $0,8897 mthi $2 sll $4,$0,19 mfhi $1 addiu $4,$4,-4439 sll $5,$4,21 addiu $5,$4,-17649 mthi $4 addiu $4,$4,-2362 srav $2,$2,$2 lui $4,38050 sll $4,$0,24 div $6,$ra div $5,$ra sb $5,6($0) div $1,$ra addiu $1,$2,15365 sll $5,$2,6 multu $2,$2 srav $4,$2,$1 div $5,$ra lui $2,61617 srav $6,$0,$4 mult $2,$2 mtlo $4 sll $4,$4,23 sb $1,9($0) mfhi $1 addiu $4,$5,14146 divu $4,$ra divu $4,$ra sb $4,8($0) sb $4,14($0) srav $0,$3,$3 addiu $5,$1,-1031 ori $4,$1,18602 sll $4,$2,15 divu $5,$ra mfhi $0 addu $5,$3,$3 div $6,$ra mflo $4 divu $5,$ra addu $4,$5,$1 lb $3,0($0) lb $1,14($0) divu $6,$ra sll $4,$5,11 mtlo $1 sb $2,11($0) multu $4,$1
11.98427
18
0.568629
e883fb54663807b5b141259a0471ad5c5f67d3a3
626
asm
Assembly
src/lib/math/fabs.asm
germix/sanos
5f6668985083d1114d1699a3a724b15f413e0cbb
[ "Spencer-94" ]
57
2015-10-31T23:26:31.000Z
2022-03-19T21:32:44.000Z
src/lib/math/fabs.asm
germix/sanos
5f6668985083d1114d1699a3a724b15f413e0cbb
[ "Spencer-94" ]
3
2017-05-28T14:08:43.000Z
2021-03-01T10:43:00.000Z
src/lib/math/fabs.asm
germix/sanos
5f6668985083d1114d1699a3a724b15f413e0cbb
[ "Spencer-94" ]
31
2015-10-24T16:25:21.000Z
2022-03-02T21:35:48.000Z
;----------------------------------------------------------------------------- ; fabs.asm - floating point absolute value ; Ported from Al Maromaty's free C Runtime Library ;----------------------------------------------------------------------------- SECTION .text global fabs global _fabs fabs: _fabs: push ebp mov ebp,esp fld qword [ebp+8] ; Load real from stack fabs ; Take the absolute value pop ebp ret
32.947368
78
0.306709
90d4519b195980091cca127090e06415928efac7
4,906
asm
Assembly
src/vm/i386/RedirectedHandledJITCase.asm
CyberSys/coreclr-mono
83b2cb83b32faa45b4f790237b5c5e259692294a
[ "MIT" ]
10
2015-11-03T16:35:25.000Z
2021-07-31T16:36:29.000Z
src/vm/i386/RedirectedHandledJITCase.asm
CyberSys/coreclr-mono
83b2cb83b32faa45b4f790237b5c5e259692294a
[ "MIT" ]
1
2019-03-05T18:50:09.000Z
2019-03-05T18:50:09.000Z
src/vm/i386/RedirectedHandledJITCase.asm
CyberSys/coreclr-mono
83b2cb83b32faa45b4f790237b5c5e259692294a
[ "MIT" ]
4
2015-10-28T12:26:26.000Z
2021-09-04T11:36:04.000Z
; ; Copyright (c) Microsoft. All rights reserved. ; Licensed under the MIT license. See LICENSE file in the project root for full license information. ; ; ==++== ; ; ; ==--== ; *********************************************************************** ; File: RedirectedHandledJITCase.asm ; ; *********************************************************************** ; ; This contains thread-redirecting helper routines that are 100% x86 assembly .586 .model flat include asmconstants.inc option casemap:none .code EXTERN _GetCurrentSavedRedirectContext@0:PROC ; ; WARNING!! These functions immediately ruin thread unwindability. This is ; WARNING!! OK as long as there is a mechanism for saving the thread context ; WARNING!! prior to running these functions as well as a mechanism for ; WARNING!! restoring the context prior to any stackwalk. This means that ; WARNING!! we need to ensure that no GC can occur while the stack is ; WARNING!! unwalkable. This further means that we cannot allow any exception ; WARNING!! to occure when the stack is unwalkable ; ; If you edit this macro, make sure you update GetCONTEXTFromRedirectedStubStackFrame. ; This function is used by both the personality routine and the debugger to retrieve the original CONTEXT. GenerateRedirectedHandledJITCaseStub MACRO reason EXTERN ?RedirectedHandledJITCaseFor&reason&@Thread@@CGXXZ:proc ALIGN 4 _RedirectedHandledJITCaseFor&reason&_Stub@0 PROC PUBLIC push eax ; where to stuff the fake return address push ebp ; save interrupted ebp for stack walk mov ebp, esp sub esp, 4 ; stack slot to save the CONTEXT * ; ; Save a copy of the redirect CONTEXT*. ; This is needed for the debugger to unwind the stack. ; call _GetCurrentSavedRedirectContext@0 mov [ebp-4], eax .errnz REDIRECTSTUB_EBP_OFFSET_CONTEXT + 4, REDIRECTSTUB_EBP_OFFSET_CONTEXT has changed - update asm stubs ; ; Fetch the interrupted eip and save it as our return address. ; mov eax, [eax + CONTEXT_Eip] mov [ebp+4], eax ; ; Call target, which will do whatever we needed to do in the context ; of the target thread, and will RtlRestoreContext when it is done. ; call ?RedirectedHandledJITCaseFor&reason&@Thread@@CGXXZ int 3 ; target shouldn't return. ; Put a label here to tell the debugger where the end of this function is. PUBLIC _RedirectedHandledJITCaseFor&reason&_StubEnd@0 _RedirectedHandledJITCaseFor&reason&_StubEnd@0: _RedirectedHandledJITCaseFor&reason&_Stub@0 ENDP ENDM ; HijackFunctionStart and HijackFunctionEnd are used to tell BBT to keep the hijacking functions together. ; Debugger uses range to check whether IP falls into one of them (see code:Debugger::s_hijackFunction). _HijackFunctionStart@0 proc public ret _HijackFunctionStart@0 endp GenerateRedirectedHandledJITCaseStub <GCThreadControl> GenerateRedirectedHandledJITCaseStub <DbgThreadControl> GenerateRedirectedHandledJITCaseStub <UserSuspend> GenerateRedirectedHandledJITCaseStub <YieldTask> ; Hijack for exceptions. ; This can be used to hijack at a 2nd-chance exception and execute the UEF EXTERN _ExceptionHijackWorker@16:PROC _ExceptionHijack@0 PROC PUBLIC ; This is where we land when we're hijacked from an IP by the debugger. ; The debugger has already pushed the args: ; - a CONTEXT ; - a EXCEPTION_RECORD onto the stack ; - an DWORD to use to mulitplex the hijack ; - an arbitrary void* data parameter call _ExceptionHijackWorker@16 ; Don't expect to return from here. Debugger will unhijack us. It has the full ; context and can properly restore us. int 3 ; Put a label here to tell the debugger where the end of this function is. public _ExceptionHijackEnd@0 _ExceptionHijackEnd@0: _ExceptionHijack@0 ENDP ; It is very important to have a dummy function here. ; Without it, the image has two labels without any instruction in between: ; One for the last label in this function, and one for the first function in the image following this asm file. ; Then the linker is free to remove from PDB the function symbol for the function ; immediately following this, and replace the reference with the last label in this file. ; When this happens, BBT loses info about function, moves pieces within the function to random place, and generates bad code. _HijackFunctionLast@0 proc public ret _HijackFunctionLast@0 endp ; This is the first function outside the "keep together range". Used by BBT scripts. _HijackFunctionEnd@0 proc public ret _HijackFunctionEnd@0 endp END
35.550725
125
0.691398
6987a0997fe1921a23ab0967e49d748c97246652
664
asm
Assembly
scripts/Route18Gate2F.asm
AmateurPanda92/pokemon-rby-dx
f7ba1cc50b22d93ed176571e074a52d73360da93
[ "MIT" ]
9
2020-07-12T19:44:21.000Z
2022-03-03T23:32:40.000Z
scripts/Route18Gate2F.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
scripts/Route18Gate2F.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2021-03-28T18:33:43.000Z
2021-05-06T13:12:09.000Z
Route18Gate2F_Script: jp DisableAutoTextBoxDrawing Route18Gate2F_TextPointers: dw Route18GateUpstairsText1 dw Route18GateUpstairsText2 dw Route18GateUpstairsText3 Route18GateUpstairsText1: TX_ASM ld a, $5 ld [wWhichTrade], a predef DoInGameTradeDialogue jp TextScriptEnd Route18GateUpstairsText2: TX_ASM ld hl, Route18GateUpstairsText_49993 jp GateUpstairsScript_PrintIfFacingUp Route18GateUpstairsText_49993: TX_FAR _Route18GateUpstairsText_49993 db "@" Route18GateUpstairsText3: TX_ASM ld hl, Route18GateUpstairsText_4999f jp GateUpstairsScript_PrintIfFacingUp Route18GateUpstairsText_4999f: TX_FAR _Route18GateUpstairsText_4999f db "@"
20.121212
38
0.862952
4a8a2939df65f969fbabede66adea20125140bae
405
asm
Assembly
programs/oeis/171/A171581.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/171/A171581.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/171/A171581.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A171581: The natural numbers without primes > 3. ; 1,2,3,4,6,8,9,10,12,14,15,16,18,20,21,22,24,25,26,27,28,30,32,33,34,35,36,38,39,40,42,44,45,46,48,49,50,51,52,54,55,56,57,58,60,62,63,64,65,66,68,69,70,72,74,75,76,77,78,80,81,82,84,85,86,87,88,90,91,92,93,94 mov $2,$0 sub $2,3 mov $1,$2 max $2,0 seq $2,73169 ; a(n)=A002808(n)-n, difference between n-th composite and n. add $1,$2 add $1,1 mov $0,$1
33.75
210
0.649383
bd388c8ec9817ba761eaabdb19e662f5ee036ed9
619
asm
Assembly
programs/oeis/187/A187581.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/187/A187581.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/187/A187581.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A187581: Complement of A187580. ; 2,5,8,11,12,15,18,21,24,27,28,31,34,37,38,41,44,47,50,53,54,57,60,63,66,69,70,73,76,79,80,83,86,89,92,95,96,99,102,105,106,109,112,115,118,121,122,125,128,131,134,137,138,141,144,147,148,151,154,157,160,163,164,167,170,173,176,179,180,183,186,189,190,193,196,199,202,205,206,209,212,215,216,219 mov $3,$0 add $3,1 mov $6,$0 lpb $3 mov $0,$6 sub $3,1 sub $0,$3 lpb $0 mov $2,$0 mov $0,0 seq $2,284620 ; {00->2}-transform of the infinite Fibonacci word A003849. mov $4,$2 min $4,1 lpe mov $5,$4 mul $5,2 add $5,1 add $1,$5 lpe add $1,1 mov $0,$1
24.76
296
0.623586
85184e48bd4222ab11c9d840af7ee99697ee5233
428
asm
Assembly
programs/oeis/089/A089929.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/089/A089929.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/089/A089929.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A089929: Algebraic degree of cot(Pi/n). ; 1,2,1,4,2,6,2,6,4,10,2,12,6,8,4,16,6,18,4,12,10,22,4,20,12,18,6,28,8,30,8,20,16,24,6,36,18,24,8,40,12,42,10,24,22,46,8,42,20,32,12,52,18,40,12,36,28,58,8,60,30,36,16,48,20,66,16,44,24,70,12,72,36,40,18,60,24,78,16,54,40,82,12,64,42,56,20,88,24,72,22,60,46,72,16,96,42,60,20,100 add $0,2 dif $0,2 sub $0,1 seq $0,10 ; Euler totient function phi(n): count numbers <= n and prime to n.
53.5
279
0.647196
9a075adb904f0f641e156363006131fc59daaee2
86,106
asm
Assembly
Library/GrObj/GrObj/grobjGeometry.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/GrObj/GrObj/grobjGeometry.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/GrObj/GrObj/grobjGeometry.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: GrObj MODULE: GrObj FILE: grobjGeometry.asm AUTHOR: Steve Scholl, Mar 3, 1992 Routines: Name Description ---- ----------- GrObjBeginGeometryCommon GrObjEndGeometryCommon GrObjInitializeInsertDeleteWorkingData GrObjCalcInsertDeleteWorkingData GrObjAxisInsert GrObjAxisDelete GrObjConsiderParamsAndPermissions GrObjConsiderAxisParamsAndPermissions GrObjDoInsertDeleteGeometry GrObjCalcInsertDeleteAxisMove GrObjCalcInsertDeleteAxisScale GrObjGenerateUndoRotateChain GrObjGenerateUndoMoveChain GrObjGenerateUndoScaleChain GrObjGenerateUndoSkewChain GrObjGenerateUndoTransformChain Method Handlers: Name Description ---- ----------- GrObjMove GrObjRotate GrObjSkew GrObjNudge GrObjAlign GrObjSetSize GrObjGetSize GrObjSetPosition GrObjGetPosition GrObjScale GrObjTransform GrObjInsertOrDeleteSpace REVISION HISTORY: Name Date Description ---- ---- ----------- Steve 11/15/89 Initial revision DESCRIPTION: $Id: grobjGeometry.asm,v 1.2 98/01/26 20:43:49 gene Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjExtNonInteractiveCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjBeginGeometryCommon %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Perform some common functionality for the methods the do geometry manipulations on a grobject CALLED BY: INTERNAL UTILITY PASS: *ds:si - GrObject RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This routine should be optimized for SMALL SIZE over SPEED Common cases: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 2/21/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjBeginGeometryCommon proc far uses ax,di,dx .enter EC < call ECGrObjCheckLMemObject > ; Get gstate to pass with handle drawing messages ; mov di,BODY_GSTATE call GrObjCreateGState mov dx,di ;gstate ; Erase handle of object in case it is selected ; mov ax,MSG_GO_UNDRAW_HANDLES call ObjCallInstanceNoLock ; Invalidate original bounds of object ; call GrObjOptInvalidate mov di,dx call GrDestroyState .leave ret GrObjBeginGeometryCommon endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjEndGeometryCommon %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Perform some common functionality for the methods the do geometry manipulations on a grobject CALLED BY: INTERNAL GrObjMove GrObjRotate PASS: *ds:si - GrObject RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This routine should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 2/21/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjEndGeometryCommon proc far uses ax,di,dx .enter EC < call ECGrObjCheckLMemObject > ; Get gstate to pass with handle drawing messages ; mov di,BODY_GSTATE call GrObjCreateGState mov dx,di ;gstate ; Invalidate object at new position ; call GrObjOptInvalidate ; Redraw handles of object if it is selected ; mov ax,MSG_GO_DRAW_HANDLES call ObjCallInstanceNoLock mov di,dx ;handles gstate call GrDestroyState .leave ret GrObjEndGeometryCommon endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjMove %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Move object relative to its current position PASS: *(ds:si) - instance data ds:[bx] - instance data of object ds:[di] - master part of object (if any) es - segment of GrObjClass ss:bp - PointDWFixed - amount to move in DOCUMENT coords RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: This method should be optimized for SMALL SIZE over SPEED Common cases: GrObject will be selected, so create one gstate for UNDRAW_HANDLES and DRAW_HANDLES Move amount will not be zero KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 2/ 8/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjMove method dynamic GrObjClass, MSG_GO_MOVE uses ax, dx .enter call GrObjCanMove? jnc done ; See if the passed amount to move is nonzero ; Check low int's first, since they're most likely to ; be non-zero ; mov ax, ss:[bp].PDF_x.DWF_int.low or ax, ss:[bp].PDF_y.DWF_int.low jz checkOther doMove: push bp ;stack frame mov bp,GOANT_PRE_MOVE call GrObjOptNotifyAction pop bp ;stack frame call GrObjGenerateUndoMoveChain call GrObjBeginGeometryCommon call GrObjMoveNormalRelative mov bp,GOANT_MOVED mov ax,MSG_GO_COMPLETE_TRANSLATE call ObjCallInstanceNoLock done: .leave ret checkOther: or ax, ss:[bp].PDF_x.DWF_frac or ax, ss:[bp].PDF_y.DWF_frac or ax, ss:[bp].PDF_x.DWF_int.high or ax, ss:[bp].PDF_y.DWF_int.high jnz doMove jmp done GrObjMove endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjGenerateUndoMoveChain %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Generate an undo chain for a move action CALLED BY: INTERNAL GrObjEndMove GrObjMove PASS: *ds:si - object RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This routine should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 8/ 4/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjGenerateUndoMoveChain proc far uses ax,cx,dx .enter EC < call ECGrObjCheckLMemObject > mov cx,handle moveString mov dx,offset moveString mov ax,MSG_GO_GENERATE_UNDO_REPLACE_GEOMETRY_INSTANCE_DATA_CHAIN call ObjCallInstanceNoLock .leave ret GrObjGenerateUndoMoveChain endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjMoveCenterAbs %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Move object's center to the passed point PASS: *(ds:si) - instance data ds:[bx] - instance data of object ds:[di] - master part of object (if any) es - segment of GrObjClass ss:bp - PointDWFixed RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: This method should be optimized for SMALL SIZE over SPEED KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 2/ 8/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjMoveCenterAbs method dynamic GrObjClass, MSG_GO_MOVE_CENTER_ABS uses ax, dx .enter call GrObjCanMove? jnc done push bp ;stack frame mov bp,GOANT_PRE_MOVE call GrObjOptNotifyAction pop bp ;stack frame call GrObjGenerateUndoMoveChain call GrObjBeginGeometryCommon call GrObjMoveNormalAbsolute mov bp,GOANT_MOVED mov ax,MSG_GO_COMPLETE_TRANSLATE call ObjCallInstanceNoLock done: .leave ret GrObjMoveCenterAbs endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjRotate %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Rotate a grobject PASS: *(ds:si) - instance data cx:dx - WWFixed degrees of counter clockwise rotation bp low - GrObjHandleSpecification to rotate about RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This method should be optimized for SMALL SIZE over SPEED Common cases: GrObject will be selected, so create one gstate for UNDRAW_HANDLES and DRAW_HANDLES Rotation will not be zero REVISION HISTORY: Name Date Description ---- ---- ----------- srs 2/ 8/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjRotate method dynamic GrObjClass, MSG_GO_ROTATE uses ax,cx,dx,bp .enter call GrObjCanRotate? jnc done ; See if passed rotation is non-zero ; jcxz checkFrac doRotate: push bp ;stack frame mov bp,GOANT_PRE_ROTATE call GrObjOptNotifyAction pop bp ;stack frame call GrObjGenerateUndoRotateChain call GrObjBeginGeometryCommon ; Create stack frame for rotate data ; and rotate the baby. ; mov ax,bp ;GrObjHandleSpec sub sp,size WWFixed mov bp,sp mov ss:[bp].WWF_int,cx mov ss:[bp].WWF_frac,dx mov cl,al ;GrObjHandleSpec call GrObjRotateNormalRelative add sp, size WWFixed mov bp,GOANT_ROTATED mov ax,MSG_GO_COMPLETE_TRANSFORM call ObjCallInstanceNoLock done: .leave ret checkFrac: tst dx jnz doRotate jmp done GrObjRotate endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjUntransform %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Untransform a grobject PASS: *(ds:si) - instance data cx:dx - WWFixed degrees of counter clockwise rotation bp low - GrObjHandleSpecification to untransform about RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This method should be optimized for SMALL SIZE over SPEED Common cases: GrObject will be selected, so create one gstate for UNDRAW_HANDLES and DRAW_HANDLES Rotation will not be zero REVISION HISTORY: Name Date Description ---- ---- ----------- srs 2/ 8/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjUntransform method dynamic GrObjClass, MSG_GO_UNTRANSFORM uses bp .enter call GrObjCanTransform? jnc done push bp ;GOHS mov bp,GOANT_PRE_TRANSFORM call GrObjOptNotifyAction pop bp ;GOHS call GrObjGenerateUndoTransformChain call GrObjBeginGeometryCommon ; Create stack frame for untransform data ; and untransform the baby. ; AccessNormalTransformChunk di, ds, si ; ; Set the transform = I ; clr ax clrwwf ds:[di].OT_transform.GTM_e12, ax clrwwf ds:[di].OT_transform.GTM_e21, ax mov ds:[di].OT_transform.GTM_e11.WWF_frac, ax mov ds:[di].OT_transform.GTM_e22.WWF_frac, ax inc ax mov ds:[di].OT_transform.GTM_e11.WWF_int, ax mov ds:[di].OT_transform.GTM_e22.WWF_int, ax mov bp,GOANT_TRANSFORMED mov ax,MSG_GO_COMPLETE_TRANSFORM call ObjCallInstanceNoLock done: .leave ret GrObjUntransform endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjGenerateUndoRotateChain %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Generate an undo chain for a rotate action CALLED BY: INTERNAL GrObjEndRotate GrObjRotate PASS: *ds:si - object RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This routine should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 8/ 4/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjGenerateUndoRotateChain proc far uses ax,cx,dx .enter EC < call ECGrObjCheckLMemObject > mov cx,handle rotateString mov dx,offset rotateString mov ax,MSG_GO_GENERATE_UNDO_REPLACE_GEOMETRY_INSTANCE_DATA_CHAIN call ObjCallInstanceNoLock .leave ret GrObjGenerateUndoRotateChain endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjScale %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Scale a grobject. [current matrix][scale] If called by MSG_GO_FLIP, the undo string is flipString instead of scaleString. CALLED BY: MSG_GO_SCALE MSG_GO_FLIP PASS: *(ds:si) - instance data ss:bp - GrObjScaleData GOSD_scale - scale factors RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This method should be optimized for SMALL SIZE over SPEED Common cases: GrObject will be selected scale will not be 1x1 REVISION HISTORY: Name Date Description ---- ---- ----------- srs 2/ 8/90 Initial version JimG 7/27/94 Made this the handler for MSG_GO_FLIP %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjScale method dynamic GrObjClass, MSG_GO_SCALE, MSG_GO_FLIP uses ax,cx,dx,bp .enter call GrObjCanResize? jnc done ; See if passed scale is 1x1 ; cmp ss:[bp].GOASD_scale.GOSD_xScale.WWF_int,1 je checkOthers doScale: push bp ;stack frame mov bp,GOANT_PRE_RESIZE call GrObjOptNotifyAction pop bp ;stack frame cmp ax, MSG_GO_FLIP je generateFlipUndo call GrObjGenerateUndoScaleChain beginGeometryCommon: call GrObjBeginGeometryCommon call GrObjScaleNormalRelative mov bp,GOANT_RESIZED mov ax,MSG_GO_COMPLETE_TRANSFORM call ObjCallInstanceNoLock done: .leave ret checkOthers: tst ss:[bp].GOASD_scale.GOSD_xScale.WWF_frac jnz doScale cmp ss:[bp].GOASD_scale.GOSD_yScale.WWF_int,1 jne doScale tst ss:[bp].GOASD_scale.GOSD_yScale.WWF_frac jnz doScale jmp done ; ; Same as GrObjGenerateUndoScaleChain EXCEPT that it uses flipString ; instead of scaleString. ; ; Destroys ax, cx, dx ; generateFlipUndo: mov cx, handle flipString mov dx, offset flipString mov ax, MSG_GO_GENERATE_UNDO_REPLACE_GEOMETRY_INSTANCE_DATA_CHAIN call ObjCallInstanceNoLock jmp beginGeometryCommon GrObjScale endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjScaleObject %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Scale a grobject in its own coordinates. [current matrix][scale] PASS: *(ds:si) - instance data ss:bp - GrObjScaleData GOSD_scale - scale factors RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This method should be optimized for SMALL SIZE over SPEED Common cases: GrObject will be selected scale will not be 1x1 REVISION HISTORY: Name Date Description ---- ---- ----------- srs 2/ 8/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjScaleObject method dynamic GrObjClass, MSG_GO_SCALE_OBJECT uses ax,cx,dx,bp .enter call GrObjCanResize? jnc done ; See if passed scale is 1x1 ; cmp ss:[bp].GOASD_scale.GOSD_xScale.WWF_int,1 je checkOthers doScale: call GrObjGenerateUndoScaleChain call GrObjBeginGeometryCommon mov cl, HANDLE_CENTER call GrObjScaleNormalRelativeOBJECT mov bp,GOANT_RESIZED mov ax,MSG_GO_COMPLETE_TRANSFORM call ObjCallInstanceNoLock done: .leave ret checkOthers: tst ss:[bp].GOASD_scale.GOSD_xScale.WWF_frac jnz doScale cmp ss:[bp].GOASD_scale.GOSD_yScale.WWF_int,1 jne doScale tst ss:[bp].GOASD_scale.GOSD_yScale.WWF_frac jnz doScale jmp done GrObjScaleObject endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjGenerateUndoScaleChain %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Generate an undo chain for a scale action CALLED BY: INTERNAL GrObjScale PASS: *ds:si - object RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This routine should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 8/ 4/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjGenerateUndoScaleChain proc far uses ax,cx,dx .enter EC < call ECGrObjCheckLMemObject > mov cx,handle scaleString mov dx,offset scaleString mov ax,MSG_GO_GENERATE_UNDO_REPLACE_GEOMETRY_INSTANCE_DATA_CHAIN call ObjCallInstanceNoLock .leave ret GrObjGenerateUndoScaleChain endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjSkew %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Skew a grobject PASS: *(ds:si) - instance data ss:bp - GrObjSkewData GOSD_xDegrees - x skew degrees GOSD_yDegrees - y skew degrees RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This method should be optimized for SMALL SIZE over SPEED Common cases: GrObject will be selected skew will not be zero REVISION HISTORY: Name Date Description ---- ---- ----------- srs 2/ 8/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjSkew method dynamic GrObjClass, MSG_GO_SKEW uses ax,cx,dx,bp .enter call GrObjCanSkew? jnc done ; See if passed skew is non-zero ; tst ss:[bp].GOSD_xDegrees.WWF_int jz checkOthers doSkew: push bp ;stack frame mov bp,GOANT_PRE_SKEW call GrObjOptNotifyAction pop bp ;stack frame call GrObjGenerateUndoSkewChain call GrObjBeginGeometryCommon call GrObjSkewNormalRelative mov bp,GOANT_SKEWED mov ax,MSG_GO_COMPLETE_TRANSFORM call ObjCallInstanceNoLock done: .leave ret checkOthers: tst ss:[bp].GOSD_xDegrees.WWF_frac jnz doSkew tst ss:[bp].GOSD_yDegrees.WWF_int jnz doSkew tst ss:[bp].GOSD_yDegrees.WWF_frac jnz doSkew jmp done GrObjSkew endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjGenerateUndoSkewChain %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Generate an undo chain for a skew action CALLED BY: INTERNAL GrObjSkew PASS: *ds:si - object RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This routine should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 8/ 4/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjGenerateUndoSkewChain proc far uses ax,cx,dx .enter EC < call ECGrObjCheckLMemObject > mov cx,handle skewString mov dx,offset skewString mov ax,MSG_GO_GENERATE_UNDO_REPLACE_GEOMETRY_INSTANCE_DATA_CHAIN call ObjCallInstanceNoLock .leave ret GrObjGenerateUndoSkewChain endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjNudge %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Nudge a grobj in screen units. Particularly useful for moving one pixel on the screen regardless of the scale view PASS: *(ds:si) - instance data of object ds:[bx] - instance data of object ds:[di] - master part of object (if any) es - segment of GrObjClass cx - number of x units to move dx - number of y units to move RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: Does boundary check to be sure that the object is not nudged outside of the body's bounds. This routine will either to the nudge as requested, or none at all; i.e., if a diagonal nudge is requested and that nudge will move the object out of the document bounds only in one direction, the nudge will be aborted rather than only nudging in the in-bounds direction. KNOWN BUGS/SIDE EFFECTS/IDEAS: This method should be optimized for SMALL SIZE over SPEED Common cases: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 2/21/92 Initial version JimG 7/12/94 Added boundary check to prevent nudging out of body bounds %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjNudge method dynamic GrObjClass, MSG_GO_NUDGE uses ax,cx,dx ; Check to see if object can move at all before pushing registers or ; allocating stack space. call GrObjCanMove? jnc exit originalXDelta local word push cx originalYDelta local word push dx deltaPoint local PointDWFixed centerPoint local PointDWFixed boundaryRect local RectDWord visibleParams local MakeRectVisibleParams ; Inherited locals ForceRef originalXDelta ForceRef originalYDelta ForceRef centerPoint ForceRef boundaryRect ForceRef visibleParams .enter ; If both cx and dx are 0, then just get outta' here.. no sense in ; messing around. mov ax, cx or ax, dx jz done call GrObjGetCurrentNudgeUnits push dx,bx ;y num units, unit mov dx,cx ;x num units int clr bx, cx ;clr x num units frac xchg bl, ah ;bl <- x unit int, ah 0 xchg ah, al ;ah <- x unit f, al 0 call GrMulWWFixed mov_tr ax, dx cwd mov ss:[deltaPoint].PDF_x.DWF_int.high, dx mov ss:[deltaPoint].PDF_x.DWF_int.low, ax mov ss:[deltaPoint].PDF_x.DWF_frac,cx pop dx,ax ;y num units, unit clr bx, cx ;clr y num units frac xchg bl, ah ;bl <- y unit int, ah 0 xchg ah, al ;ah <- y unit f, al 0 call GrMulWWFixed mov_tr ax, dx cwd mov ss:[deltaPoint].PDF_y.DWF_int.high, dx mov ss:[deltaPoint].PDF_y.DWF_int.low, ax mov ss:[deltaPoint].PDF_y.DWF_frac,cx if KEEP_NUDGE_ON_DOC ; If this is a paste inside object, don't do any boundary testing. test ds:[di].GOI_attrFlags, mask GOAF_PASTE_INSIDE jnz doMove call GrObjCheckIfNudgeIsInsideBounds jc done ;invalid nudge, bail doMove: endif ; Do the move push bp lea bp, ss:[deltaPoint] mov ax,MSG_GO_MOVE call ObjCallInstanceNoLock pop bp if RECENTER_ON_NUDGE ; ; 1/24/98: See grobjConstant.def re: ND-000081 -- eca ; ; If the object is not a paste inside, please ensure that it is ; still visible to the user. mov di, ds:[si] add di, ds:[di].GrObj_offset test ds:[di].GOI_attrFlags, mask GOAF_PASTE_INSIDE jnz done call GrObjEnsureObjectIsOnScreen endif done: .leave exit: ret GrObjNudge endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjCheckIfNudgeIsInsideBounds %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Utility routine used by GrObjNudge. Checks if the nudge will result in the object's center remaining within the body's boundaries. CALLED BY: GrObjNudge INTERNAL PASS: *ds:si - instance data of GrObj object ss:bp - inherited locals from GrObjNudge RETURN: carry: set if move is invalid clear if move is okay ss:[centerPoint]: if the move is valid, this is updated to reflect the new center point DESTROYED: ax, bx, cx, dx, di SIDE EFFECTS: PSEUDO CODE/STRATEGY: Does boundary check to be sure that the object is not nudged outside of the body's bounds. This routine will either to the nudge as requested, or none at all; i.e., if a diagonal nudge is requested and that nudge will move the object out of the document bounds only in one direction, the nudge will be aborted rather than only nudging in the in-bounds direction. NOTE: could by off by [0,1) (in document space) because we round the value of the center of the object since the body bounds come back to us as integers. But this is not really a problem, just FYI. REVISION HISTORY: Name Date Description ---- ---- ----------- JimG 7/12/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if KEEP_NUDGE_ON_DOC ; ; 1/26/98: See grobjConstant.def re: ND-000xxx -- eca ; GrObjCheckIfNudgeIsInsideBounds proc near .enter inherit GrObjNudge ; Get the boundary of the body and get the old center of the object. ; Calculate the new center of the object and determine if the new ; center is going to be out-of-bounds. If this is the case, then do ; not permit the move. This is to prevent the user from "nudging" ; an object irretrievably out of the document. ; Get boundary of the body. mov bx, bp ;save local ptr mov ax, MSG_GB_GET_BOUNDS mov di, mask MF_CALL or mask MF_FIXUP_DS lea bp, ss:[boundaryRect] call GrObjMessageToBody ; Get the center of the object mov bp, bx ;get local ptr mov ax, MSG_GO_GET_CENTER lea bp, ss:[centerPoint] call ObjCallInstanceNoLock mov bp, bx ;restore local ptr mov di, ss:[originalXDelta] mov dx, ss:[originalYDelta] ; If y delta == 0, then we can skip testing the Y edge and we also ; know that the x delta != 0 because if they were both zero, we ; would not be here. So, jump into the "test x" code AFTER testing ; for zero. tst dx jz testXEdgeNotZero ; Calculate the new y center of the object (rounded to DWord) movdwf cxbxax, ss:[centerPoint].PDF_y adddwf cxbxax, ss:[deltaPoint].PDF_y movdwf ss:[centerPoint].PDF_y, cxbxax rnddwf cxbxax ; Decide whether to check the top or the bottom tst dx js isTopEdge ; if the center is past the bottom, do NOT move jgdw cxbx, ss:[boundaryRect].RD_bottom, moveIsInvalid jmp testXEdge isTopEdge: ; if the center is past the top, do NOT move jldw cxbx, ss:[boundaryRect].RD_top, moveIsInvalid testXEdge: tst di ;original x delta jz moveIsOkay testXEdgeNotZero: ; Calculate the new x center of the object (rounded to DWord) movdwf cxbxax, ss:[centerPoint].PDF_x adddwf cxbxax, ss:[deltaPoint].PDF_x movdwf ss:[centerPoint].PDF_x, cxbxax rnddwf cxbxax ; Decide whether to check the left or the right tst di js isLeftEdge ; if the center is past the right edge, do NOT move jgdw cxbx, ss:[boundaryRect].RD_right, moveIsInvalid jmp moveIsOkay isLeftEdge: ; if the center is past the left edge, do NOT move jldw cxbx, ss:[boundaryRect].RD_left, moveIsInvalid moveIsOkay: clc done: .leave ret moveIsInvalid: stc jmp short done GrObjCheckIfNudgeIsInsideBounds endp endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjEnsureObjectIsOnScreen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Ensures that a GrObj object is being displayed. Essentially sends the view a message to do this. CALLED BY: GrObjNudge INTERNAL PASS: *ds:si - instance data of GrObj object ss:bp - inherited locals from GrObjNudge RETURN: nothing DESTROYED: ax, bx, cx, dx, di SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JimG 7/12/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if RECENTER_ON_NUDGE ; ; 1/24/98: See grobjConstant.def re: ND-000081 -- eca ; GrObjEnsureObjectIsOnScreen proc near uses si .enter inherit GrObjNudge ; Calculate the rectangle to make always visible. This rectangle is ; a 3-unit square around the center point. movdw axbx, ss:[centerPoint].PDF_x.DWF_int decdw axbx movdw ss:[visibleParams].MRVP_bounds.RD_left, axbx add bx, 2 adc ax, 0 movdw ss:[visibleParams].MRVP_bounds.RD_right, axbx movdw axbx, ss:[centerPoint].PDF_y.DWF_int decdw axbx movdw ss:[visibleParams].MRVP_bounds.RD_top, axbx add bx, 2 adc ax, 0 movdw ss:[visibleParams].MRVP_bounds.RD_bottom, axbx ; Set up the remaining parts of the MakeRectVisibleParams mov ss:[visibleParams].MRVP_xMargin, MRVM_50_PERCENT clr ss:[visibleParams].MRVP_xFlags mov ss:[visibleParams].MRVP_yMargin, MRVM_50_PERCENT clr ss:[visibleParams].MRVP_yFlags push bp ; Package up message to send to the view lea bp, ss:[visibleParams] mov dx, size MakeRectVisibleParams mov ax, MSG_GEN_VIEW_MAKE_RECT_VISIBLE mov bx, segment GenViewClass mov si, offset GenViewClass mov di, mask MF_RECORD or mask MF_STACK call ObjMessage ;^hdi = ClassedEvent ; Send message to the body to pass the classed event up to the view. mov cx, di mov di, mask MF_FIXUP_DS mov ax, MSG_VIS_VUP_SEND_TO_OBJECT_OF_CLASS call GrObjMessageToBody pop bp .leave ret GrObjEnsureObjectIsOnScreen endp endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjNudgeInside %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Nudge paste inside children PASS: *(ds:si) - instance data of object ds:[bx] - instance data of object ds:[di] - master part of object (if any) es - segment of GrObjClass cx - number of x units to move dx - number of y units to move RETURN: nothing DESTROYED: ax PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This method should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 11/22/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjNudgeInside method dynamic GrObjClass, MSG_GO_NUDGE_INSIDE .enter test ds:[di].GOI_attrFlags, mask GOAF_PASTE_INSIDE jz done mov ax,MSG_GO_NUDGE call ObjCallInstanceNoLock done: .leave ret GrObjNudgeInside endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjMoveInside %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Move paste inside children PASS: *(ds:si) - instance data of object ds:[bx] - instance data of object ds:[di] - master part of object (if any) es - segment of GrObjClass ss:bp - PointDWFixed RETURN: nothing DESTROYED: ax PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This method should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 11/22/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjMoveInside method dynamic GrObjClass, MSG_GO_MOVE_INSIDE .enter test ds:[di].GOI_attrFlags, mask GOAF_PASTE_INSIDE jz done mov ax,MSG_GO_MOVE call ObjCallInstanceNoLock done: .leave ret GrObjMoveInside endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjSetSize %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the width and height of the object. PASS: *(ds:si) - instance data of object ds:[bx] - instance data of object ds:[di] - master part of object (if any) es - segment of GrObjClass ss:bp - PointWWFixed PF_x - desired width in points PF_y - desired height in points RETURN: nothing DESTROYED: ax PSEUDO CODE/STRATEGY: nothing KNOWN BUGS/SIDE EFFECTS/IDEAS: This method should be optimized for SMALL SIZE over SPEED Common cases: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 3/ 4/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjSetSize method dynamic GrObjClass, MSG_GO_SET_SIZE uses cx,dx,bp anchorHandle local word anchorPoints local SrcDestPointDWFixeds .enter call GrObjCanResize? jnc done push bp ;stack frame mov bp,GOANT_PRE_RESIZE call GrObjOptNotifyAction pop bp ;stack frame mov di,ss:[bp] ;orig stack frame mov anchorHandle, HANDLE_LEFT_TOP call GrObjBeginGeometryCommon ; Calculate the initial position of the anchor point ; push bp ;stack frame mov cx,anchorHandle ;cl gets GHS of anchor handle lea bp,[anchorPoints.SDPDWF_source] call GrObjGetNormalPARENTHandleCoords pop bp ;stack frame ; Set the new size ; movwwf dxcx,ss:[di].PF_x movwwf bxax,ss:[di].PF_y call GrObjSetNormalOBJECTDimensions ; Calc the final position of the anchored point ; push bp ;stack frame mov cx,anchorHandle ;ch gets GHS of anchor handle lea bp,[anchorPoints.SDPDWF_dest] call GrObjGetNormalPARENTHandleCoords pop bp ;stack frame ; Move the object so that the anchored point ; stays in the same place ; push bp lea bp,ss:[anchorPoints] call GrObjMoveNormalBackToAnchor mov bp,GOANT_RESIZED mov ax,MSG_GO_COMPLETE_TRANSFORM call ObjCallInstanceNoLock pop bp done: .leave ret GrObjSetSize endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjGetSize %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the width and height of the object in points. PASS: *(ds:si) - instance data of object ds:[bx] - instance data of object ds:[di] - master part of object (if any) es - segment of GrObjClass RETURN: dx:cx - WWFixed width in points bp:ax - WWFixed height in points DESTROYED: nothing PSEUDO CODE/STRATEGY: nothing KNOWN BUGS/SIDE EFFECTS/IDEAS: This method should be optimized for SMALL SIZE over SPEED Common cases: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 3/ 4/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjGetSize method dynamic GrObjClass, MSG_GO_GET_SIZE .enter call GrObjCanGeometry? jnc done call GrObjGetAbsNormalOBJECTDimensions mov bp, bx done: .leave ret GrObjGetSize endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjSetPosition %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the position of the upper left of a grobj. The position passed must be in PARENT coords PASS: *(ds:si) - instance data of object ds:[bx] - instance data of object ds:[di] - master part of object (if any) es - segment of GrObjClass ss:bp - PointDWFixed RETURN: nothing DESTROYED: ax PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This method should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 3/ 7/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjSetPosition method dynamic GrObjClass, MSG_GO_SET_POSITION uses bp .enter call GrObjCanMove? jnc done mov bx,bp ;desired position ; Get current position ; sub sp,size PointDWFixed mov bp,sp mov ax,MSG_GO_GET_POSITION call ObjCallInstanceNoLock ; Get desired position - current position in stack frame ; subdwf ss:[bp].PDF_x,ss:[bx].PDF_x,ax negdwf ss:[bp].PDF_x subdwf ss:[bp].PDF_y,ss:[bx].PDF_y,ax negdwf ss:[bp].PDF_y ; Move object to desired position mov ax,MSG_GO_MOVE call ObjCallInstanceNoLock add sp,size PointDWFixed done: .leave ret GrObjSetPosition endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjGetPosition %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the position of the upper left of a grobject. The position is in DOCUMENT coords unless the grobject is in a group. Then the position is relative to the upper left of a group. If the grobject has been rotated/skewed/tranformed this gets the location of the selection handle that was initially at the upper left of the grobject. PASS: *(ds:si) - instance data of object ds:[bx] - instance data of object ds:[di] - master part of object (if any) es - segment of GrObjClass ss:bp - PointDWFixed - empty RETURN: ss:bp - PointDWFixed - filled DESTROYED: ax PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This method should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 4/13/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjGetPosition method dynamic GrObjClass, MSG_GO_GET_POSITION uses cx,dx .enter call GrObjCanGeometry? jnc done ; Get OBJECT coords of upper left ; call GrObjGetNormalOBJECTDimensions sarwwf dxcx,1 sarwwf bxax,1 negwwf dxcx negwwf bxax mov ss:[bp].PDF_x.DWF_int.low,dx mov ss:[bp].PDF_x.DWF_frac,cx mov ss:[bp].PDF_y.DWF_int.low,bx mov ss:[bp].PDF_y.DWF_frac,ax mov ax,dx cwd mov ss:[bp].PDF_x.DWF_int.high,dx mov ax,bx cwd mov ss:[bp].PDF_y.DWF_int.high,dx ; Convert OBJECT coordinate into DOCUMENT coords ; mov di,BODY_GSTATE call GrObjCreateGState mov dx,di ;dest gstate mov di,OBJECT_GSTATE call GrObjCreateGState mov si,dx ;dest gstate segmov es,ss ;frame segment mov dx,bp ;frame offset call GrObjConvertCoordDWFixed call GrDestroyState mov di,si call GrDestroyState done: .leave ret GrObjGetPosition endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjFlipHoriz %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Flips the object horizontally (eg. about the vertical axis) PASS: *(ds:si) - instance data RETURN: nothing DESTROYED: ax REVISION HISTORY: Name Date Description ---- ---- ----------- jon 2 jul 92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjFlipHoriz method dynamic GrObjClass, MSG_GO_FLIP_HORIZ .enter sub sp, size GrObjAnchoredScaleData mov bp,sp clr ax mov ss:[bp].GOASD_scaleAnchor, al mov ss:[bp].GOASD_scale.GOSD_xScale.WWF_frac, ax mov ss:[bp].GOASD_scale.GOSD_xScale.WWF_int, -1 mov ss:[bp].GOASD_scale.GOSD_yScale.WWF_frac, ax mov ss:[bp].GOASD_scale.GOSD_yScale.WWF_int, 1 mov ax, MSG_GO_FLIP call ObjCallInstanceNoLock add sp, size GrObjAnchoredScaleData .leave ret GrObjFlipHoriz endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjFlipVert %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Flips the object vertically (eg. about the horizontal axis) PASS: *(ds:si) - instance data RETURN: nothing DESTROYED: ax REVISION HISTORY: Name Date Description ---- ---- ----------- jon 2 jul 92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjFlipVert method dynamic GrObjClass, MSG_GO_FLIP_VERT .enter sub sp, size GrObjAnchoredScaleData mov bp,sp clr ax mov ss:[bp].GOASD_scaleAnchor, al mov ss:[bp].GOASD_scale.GOSD_xScale.WWF_frac, ax mov ss:[bp].GOASD_scale.GOSD_xScale.WWF_int, 1 mov ss:[bp].GOASD_scale.GOSD_yScale.WWF_frac, ax mov ss:[bp].GOASD_scale.GOSD_yScale.WWF_int, -1 mov ax, MSG_GO_FLIP call ObjCallInstanceNoLock add sp, size GrObjAnchoredScaleData .leave ret GrObjFlipVert endm GrObjExtNonInteractiveCode ends GrObjGroupCode segment resource if 0 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjConvertScaleToData %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Remove the scale from the transformation matrix and modify the width and height by the removed scale factor PASS: *(ds:si) - instance data of object ds:[bx] - instance data of object ds:[di] - master part of object (if any) es - segment of GrObjClass RETURN: nothing DESTROYED: ax PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This method should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 7/15/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjConvertScaleToData method dynamic GrObjClass, MSG_GO_CONVERT_SCALE_TO_DATA matrix local GrObjTransMatrix scaleX local WWFixed scaleY local WWFixed skewXY local WWFixed uses cx,dx .enter call GrObjDecomposeTransform jnc continue jmp done continue: call GrObjGenerateUndoTransformChain ; The final GrObjTransMatrix we want is [skewXY][matrix]. ; |1 0||a b| |a b | ; |s 1||c d| = |as+c bx+d| ; movwwf dxcx,matrix.GTM_e11 movwwf bxax,skewXY call GrMulWWFixed addwwf matrix.GTM_e21,dxcx movwwf dxcx,matrix.GTM_e12 call GrMulWWFixed addwwf matrix.GTM_e22,dxcx ; Copy matrix into normalTransform ; push ds,si ;object AccessNormalTransformChunk di,ds,si add di,offset OT_transform segmov es,ds segmov ds,ss lea si,matrix MoveConstantNumBytes <size GrObjTransMatrix>, cx pop ds,si ;object ; Multiply width and height by scale factors ; AccessNormalTransformChunk di,ds,si movwwf dxcx,ds:[di].OT_width movwwf bxax,scaleX call GrMulWWFixed movwwf ds:[di].OT_width,dxcx movwwf dxcx,ds:[di].OT_height movwwf bxax,scaleY call GrMulWWFixed movwwf ds:[di].OT_height,dxcx call ObjMarkDirty done: .leave ret GrObjConvertScaleToData endm endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjDecomposeTransform %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Decompose transform in a rotation matrix, a skew and an x and y scale PASS: *(ds:si) - instance data of object RETURN: clc - successful decomposition stc - hosed DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This method should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 7/15/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjDecomposeTransform proc far class GrObjClass matrix local GrObjTransMatrix scaleX local WWFixed scaleY local WWFixed skewXY local WWFixed uses ax,bx,cx,dx,di,es .enter inherit ; Copy GrObjTransMatrix to stack frame ; push si ;object chunk AccessNormalTransformChunk si,ds,si add si,offset OT_transform lea di,matrix segmov es,ss,ax MoveConstantNumBytes <size GrObjTransMatrix>,cx pop si ;object chunk ; Check determinate here ; ; Calc magnitude of first row ; lea di,matrix addnf di,<offset GTM_e11> call GrObjCalcVectorMagnitudeAndNormalize jc done movwwf scaleX,dxcx ; Calc dot product of rows 1 and 2 ; (initial skewXY value) ; movwwf dxcx,matrix.GTM_e11 movwwf bxax,matrix.GTM_e21 call GrMulWWFixed pushwwf dxcx movwwf dxcx,matrix.GTM_e12 movwwf bxax,matrix.GTM_e22 call GrMulWWFixed popwwf bxax addwwf bxax,dxcx ;initial skewXY ; Orthogonalize row 2 ; M21 = M21 - (skewXY*M11) ; M22 = M22 - (skewXY*M12) movwwf dxcx,matrix.GTM_e11 call GrMulWWFixed subwwf matrix.GTM_e21,dxcx movwwf dxcx,matrix.GTM_e12 call GrMulWWFixed subwwf matrix.GTM_e22,dxcx ; Calc magnitude of second row and normalize ; lea di,matrix addnf di,<offset GTM_e21> call GrObjCalcVectorMagnitudeAndNormalize jc done movwwf scaleY,dxcx ; Calc final value of skewXY ; xchgwwf dxcx,bxax ;skewXY, scaleY call GrSDivWWFixed jc done movwwf skewXY,dxcx done: .leave ret GrObjDecomposeTransform endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrobjCalcVectorMagnitudeAndNormalize %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Calculate the magnitude of the vector comprised of a pair of WWFixed values CALLED BY: INTERNAL GrObjDecomposeTransform PASS: es:di - fptr to two WWFixeds RETURN: clc - magnitude successfully calculated dx:cx - Magnitude stc - choke dx,cx - Destroyed DESTROYED: see RETURN PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This routine should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 7/15/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjCalcVectorMagnitudeAndNormalize proc near uses ax,bx,bp,si .enter ; Square first element of vector ; push di ;vector offset movwwf axcx,es:[di] cwd ;sign extend to DWF mov di,dx ;high int mov dx,ax ;low int movdwf sibxax,didxcx call GrMulDWFixed pop di ;vector offset jc done push dx ;high int push cx ;low int push bx ;frac ; Square second element of vector push di ;vector offset movwwf axcx,<es:[di][size WWFixed]> cwd mov di,dx mov dx,ax movdwf sibxax,didxcx call GrMulDWFixed pop di ;vector offset jc pop3 ; Sum of squares ; pop ax add bx,ax pop ax adc cx,ax pop ax adc dx,ax mov bp,bx call GrObjCalcSquareRoot jc done ; Normalize vector ; movwwf bxax,dxcx ;magnitude movwwf dxcx,es:[di] ;first vector element call GrSDivWWFixed jc done movwwf es:[di],dxcx movwwf dxcx,<es:[di][size WWFixed]> call GrSDivWWFixed jc done movwwf <es:[di][size WWFixed]>,dxcx movwwf dxcx,bxax ;magnitude done: .leave ret pop3: add sp,6 stc jmp done GrObjCalcVectorMagnitudeAndNormalize endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjTransform %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Transform a grobject. The transform is applied to the center of the object and is pre applied to the transform in the object. It is used for applying a groups transform to all its children. PASS: *(ds:si) - instance data ss:bp - TransMatrix RETURN: nothing DESTROYED: ax PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This method should be optimized for SMALL SIZE over SPEED Common cases: GrObject will be selected REVISION HISTORY: Name Date Description ---- ---- ----------- srs 2/ 8/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjTransform method dynamic GrObjClass, MSG_GO_TRANSFORM uses cx,dx,bp .enter call GrObjCanTransform? jnc done push bp ;stack frame mov bp,GOANT_PRE_TRANSFORM call GrObjOptNotifyAction pop bp ;stack frame call GrObjGenerateUndoTransformChain call GrObjBeginGeometryCommon call GrObjTransformNormalRelative mov bp,GOANT_TRANSFORMED mov ax,MSG_GO_COMPLETE_TRANSFORM call ObjCallInstanceNoLock done: .leave ret GrObjTransform endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjGenerateUndoTransformChain %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Generate an undo chain for a transform action CALLED BY: INTERNAL GrObjTransform PASS: *ds:si - object RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This routine should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 8/ 4/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjGenerateUndoTransformChain proc far uses ax,cx,dx .enter EC < call ECGrObjCheckLMemObject > mov cx,handle transformString mov dx,offset transformString mov ax,MSG_GO_GENERATE_UNDO_REPLACE_GEOMETRY_INSTANCE_DATA_CHAIN call ObjCallInstanceNoLock .leave ret GrObjGenerateUndoTransformChain endp GrObjGroupCode ends GrObjObscureExtNonInteractiveCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjScaleAboutPARENTLeftTop %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Scales object [current matrix] [scale]. Obscure message which applies the scale along the PARENT axes and keeps the left top of the PARENT bounds in the same place. PASS: *(ds:si) - instance data of object ds:[bx] - instance data of object ds:[di] - master part of object (if any) es - segment of GrObjClass ss:bp - GrObjScaleData RETURN: nothing DESTROYED: ax PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This method should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 4/21/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjScaleAboutPARENTLeftTop method dynamic GrObjClass, MSG_GO_SCALE_ABOUT_PARENT_LEFT_TOP .enter call GrObjCanResize? jnc done ; See if passed scale is 1x1 ; cmp ss:[bp].GOSD_xScale.WWF_int,1 je checkOthers doScale: push bp ;stack frame mov bp,GOANT_PRE_RESIZE call GrObjOptNotifyAction pop bp ;stack frame call GrObjBeginGeometryCommon mov bx,bp ;GrObjScaleData sub sp,size SrcDestPointDWFixeds mov bp,sp add bp,offset SDPDWF_source call GrObjGetDWFPARENTBoundsUpperLeft sub bp,offset SDPDWF_source xchg bp,bx ;GrObjScaleData,SrcDestPDWF call GrObjScaleNormalRelative xchg bx,bp ;GrObjScaleData,SrcDestPDWF ; We must calc the parent dimensions here because ; GrObjGetDWFPARENTBoundsUpperLeft depends on them ; being set correctly. ; mov ax,MSG_GO_CALC_PARENT_DIMENSIONS call ObjCallInstanceNoLock add bp,offset SDPDWF_dest call GrObjGetDWFPARENTBoundsUpperLeft sub bp,offset SDPDWF_dest call GrObjMoveNormalBackToAnchor add sp,size SrcDestPointDWFixeds mov bp,GOANT_RESIZED mov ax,MSG_GO_COMPLETE_TRANSFORM call ObjCallInstanceNoLock mov bp,bx ;GrObjScaleData done: .leave ret checkOthers: tst ss:[bp].GOSD_xScale.WWF_frac jnz doScale cmp ss:[bp].GOSD_yScale.WWF_int,1 jne doScale tst ss:[bp].GOSD_yScale.WWF_frac jnz doScale jmp done GrObjScaleAboutPARENTLeftTop endm InsertDeleteAxisFlags record IDAF_MOVE_INTERSECTING:1 ;TRUE if moveIntersecting field ;has useful data in it. IDAF_SCALE:1 ;TRUE if scale field ;has useful data in it. IDAF_DELETE:1 ;TRUE if applying scale field ;results in object with zero as ;a dimension IDAF_MOVE_BELOW_RIGHT:1 ;TRUE if moveBelowRight field ;has useful data in it. InsertDeleteAxisFlags end InsertDeleteAxis struct IDA_objEdgeStart DWFixed ;Left or top of object in ;DOCUMENT coordinates IDA_objEdgeEnd DWFixed ;Right or bottom of object in ;DOCUMENT coordinates IDA_objDimension WWFixed ;Width or height of object ;in DOCUMENT coordinates IDA_spaceStart DWFixed ;x or y of insert/delete point ;in DOCUMENT coordinates IDA_space DWFixed ;Amount of space in x or y ;to insert IDA_spaceEnd DWFixed ;x or y of insert/delete point ;plus insert/delete space IDA_moveIntersecting DWFixed ;Amount to move object ;in x or y in DOCUMENT coords. ;Move caused by object ;intersecting the insert/delete ;space IDA_scale WWFixed ;Scale factor to apply to ;x or y dimension IDA_moveBelowRight DWFixed ;Amount to move object ;in x or y in DOCUMENT coords. ;Move caused by object being ;right or below the ;insert/delete space IDA_flags InsertDeleteAxisFlags IDA_passedType InsertDeleteSpaceTypes InsertDeleteAxis ends InsertDeleteWorkingData struct IDWD_horiz InsertDeleteAxis ; IDWD_vert InsertDeleteAxis ; InsertDeleteWorkingData ends COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjInsertOrDeleteSpace %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Inserting or deleting space may cause object to move, resize or even be deleted. PASS: *(ds:si) - instance data of object ds:[bx] - instance data of object ds:[di] - master part of object (if any) es - segment of GrObjClass ss:bp - InsertDeleteSpaceParams RETURN: nothing DESTROYED: ax PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This method should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 4/20/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjInsertOrDeleteSpace method dynamic GrObjClass, MSG_GO_INSERT_OR_DELETE_SPACE workingData local InsertDeleteWorkingData ForceRef workingData mov bx,bp ;InsertDeleteSpaceParams .enter call GrObjCanGeometryAndValid? jnc done call GrObjInitializeInsertDeleteWorkingData call GrObjCalcInsertDeleteWorkingData call GrObjConsiderParamsAndPermissions call GrObjDoInsertDeleteGeometry done: .leave ret GrObjInsertOrDeleteSpace endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjInitializeInsertDeleteWorkingData %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Initialize InsertDeleteWorkingData CALLED BY: INTERNAL GrObjInsertOrDeleteSpace PASS: *ds:si - Object ss:bp - inherited InsertDeleteWorkingData ss:bx - InsertDeleteSpaceParams RETURN: InsertDeleteWorkingData initialized DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This routine should be optimized for SMALL SIZE over SPEED Common cases: none Pieces of this routine are duplicates of each other. It could be broken into a common subroutine. REVISION HISTORY: Name Date Description ---- ---- ----------- srs 4/20/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjInitializeInsertDeleteWorkingData proc near workingData local InsertDeleteWorkingData uses ax,bx,cx,dx,di,si,es,ds .enter inherit EC < call ECGrObjCheckLMemObject > push ds,si ;object segmov ds,ss,ax mov es,ax mov ax, ss:[bx].IDSP_type mov ss:[workingData.IDWD_horiz.IDA_passedType], ax mov ss:[workingData.IDWD_vert.IDA_passedType], ax ; Init spaceStart to the insert/delete point ; and spaceEnd to spaceStart + abs(space to insert/delete) ; mov si,bx add si,offset IDSP_position.PDF_x lea di,ss:[workingData.IDWD_horiz.IDA_spaceStart] MoveConstantNumBytes <size DWFixed>,cx mov si,bx add si,offset IDSP_position.PDF_x lea di,ss:[workingData.IDWD_horiz.IDA_spaceEnd] MoveConstantNumBytes <size DWFixed>,cx movdwf dxcxax,ss:[bx].IDSP_space.PDF_x movdwf workingData.IDWD_horiz.IDA_space,dxcxax tst dx jns 10$ negdwf dxcxax 10$: adddwf workingData.IDWD_horiz.IDA_spaceEnd,dxcxax mov si,bx add si,offset IDSP_position.PDF_y lea di,ss:[workingData.IDWD_vert.IDA_spaceStart] MoveConstantNumBytes <size DWFixed>,cx mov si,bx add si,offset IDSP_position.PDF_y lea di,ss:[workingData.IDWD_vert.IDA_spaceEnd] MoveConstantNumBytes <size DWFixed>,cx movdwf dxcxax,ss:[bx].IDSP_space.PDF_y movdwf ss:[workingData.IDWD_vert.IDA_space],dxcxax tst dx jns 20$ negdwf dxcxax 20$: adddwf ss:[workingData.IDWD_vert.IDA_spaceEnd],dxcxax clr al mov ss:[workingData.IDWD_horiz.IDA_flags],al mov ss:[workingData.IDWD_vert.IDA_flags],al ; Set EdgeStart, EdgeEnd and Dimension fields from ; PARENT bounds of object ; pop ds,si ;object mov bx,bp ;inherited frame sub sp, size RectDWFixed mov bp,sp mov ax,MSG_GO_GET_DWF_PARENT_BOUNDS call ObjCallInstanceNoLock xchg bp,bx ;inherited, RectDWFixed movdwf ss:[workingData.IDWD_horiz.IDA_objEdgeStart],\ ss:[bx].RDWF_left,ax movdwf dxcxax,ss:[bx].RDWF_right movdwf ss:[workingData.IDWD_horiz.IDA_objEdgeEnd],dxcxax subdwf dxcxax,ss:[bx].RDWF_left movwwf ss:[workingData.IDWD_horiz.IDA_objDimension],cxax movdwf ss:[workingData.IDWD_vert.IDA_objEdgeStart],\ ss:[bx].RDWF_top,ax movdwf dxcxax,ss:[bx].RDWF_bottom movdwf ss:[workingData.IDWD_vert.IDA_objEdgeEnd],dxcxax subdwf dxcxax,ss:[bx].RDWF_top movwwf ss:[workingData.IDWD_vert.IDA_objDimension],cxax add sp,size RectDWFixed .leave ret GrObjInitializeInsertDeleteWorkingData endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjCalcInsertDeleteWorkingData %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Fill out the InsertDeleteWorkingData struct CALLED BY: INTERNAL GrObjInsertOrDeleteSpace PASS: ss:bp - inherited InsertDeleteWorkingData RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This method should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 4/20/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjCalcInsertDeleteWorkingData proc near workingData local InsertDeleteWorkingData .enter inherit push bp ;local frame lea bp,ss:[workingData.IDWD_horiz] tst ss:[bp].IDA_space.DWF_int.high js doHorizDelete call GrObjAxisInsert doVert: pop bp ;local frame push bp ;local frame lea bp,ss:[workingData.IDWD_vert] tst ss:[bp].IDA_space.DWF_int.high js doVertDelete call GrObjAxisInsert done: pop bp .leave ret doHorizDelete: call GrObjAxisDelete jmp doVert doVertDelete: call GrObjAxisDelete jmp done GrObjCalcInsertDeleteWorkingData endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjAxisInsert %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Fill out the IDA_moveIntersecting, IDA_scale, and IDA_moveBelowRight fields in the InsertDeleteAxis structure CALLED BY: INTERNAL GrObjInsertOfDeleteSpace PASS: ss:bp - InsertDeleteAxis RETURN: ss:bp - InsertDeleteAxis DESTROYED: nothing PSEUDO CODE/STRATEGY: if objEdgeStart >= spaceStart then moveBelowRight = space exit else if objEdgeStart < spaceStart < objectEdgeEnd then scale = (objDimension + space)/objDimension KNOWN BUGS/SIDE EFFECTS/IDEAS: This routine should be optimized for SMALL SIZE over SPEED Common cases: a move is more likely than a resize REVISION HISTORY: Name Date Description ---- ---- ----------- srs 4/21/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjAxisInsert proc near uses ax,bx,cx,dx .enter jldwf ss:[bp].IDA_objEdgeStart,ss:[bp].IDA_spaceStart,tryResize,ax movdwf ss:[bp].IDA_moveBelowRight,ss:[bp].IDA_space,ax BitSet ss:[bp].IDA_flags, IDAF_MOVE_BELOW_RIGHT done: .leave ret tryResize: jledwf ss:[bp].IDA_objEdgeEnd,ss:[bp].IDA_spaceStart,done,ax push bp ;passed frame movwwf axcx,ss:[bp].IDA_objDimension cwd xchg ax,cx ;frac,int adddwf dxcxax,ss:[bp].IDA_space mov bx,ss:[bp].IDA_objDimension.WWF_int mov bp,ss:[bp].IDA_objDimension.WWF_frac xchg ax,bp ;divisor frac, dividend frac call GrSDivDWFbyWWF mov ax,bp pop bp ;passed frame ; If the high word of the scale is not zero then something ; horribly bad has happened, so ignore the calced scale ; tst dx jnz done movwwf ss:[bp].IDA_scale,cxax BitSet ss:[bp].IDA_flags, IDAF_SCALE jmp done GrObjAxisInsert endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjAxisDelete %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Fill out the IDA_moveIntersecting, IDA_scale, and IDA_moveBelowRight fields in the InsertDeleteAxis structure CALLED BY: INTERNAL GrObjInsertOfDeleteSpace PASS: ss:bp - InsertDeleteAxis RETURN: ss:bp - InsertDeleteAxis DESTROYED: nothing PSEUDO CODE/STRATEGY: if spaceEnd <= objEdgeStart then moveBelowRight = space else if spaceStart <= objEdgeStart then moveIntersecting = spaceStart-objEdgeStart endif if spaceEnd > objEdgeStart and spaceStart < objEdgeEnd then tempDeltaEnd = Min(objEdgeEnd,spaceEnd) tempDeltaStart = Max (objEdgeStart,spaceStart) scale = objDimension - (tempDeltaEnd-tempDeltaStart) ------------------------------------------- objDimension endif KNOWN BUGS/SIDE EFFECTS/IDEAS: This routine should be optimized for SMALL SIZE over SPEED Common cases: a move is more likely than a resize REVISION HISTORY: Name Date Description ---- ---- ----------- srs 4/21/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjAxisDelete proc near uses ax,bx,cx,dx .enter jgdwf ss:[bp].IDA_spaceEnd,ss:[bp].IDA_objEdgeStart,tryMoveInt,ax moveIt: movdwf ss:[bp].IDA_moveBelowRight,ss:[bp].IDA_space,ax BitSet ss:[bp].IDA_flags, IDAF_MOVE_BELOW_RIGHT done: .leave ret tryMoveInt: jgdwf ss:[bp].IDA_spaceStart,ss:[bp].IDA_objEdgeStart, tryResize,ax test ss:[bp].IDA_passedType, \ mask IDST_MOVE_OBJECTS_INSIDE_DELETED_SPACE_BY_AMOUNT_DELETED jnz moveIt movdwf ss:[bp].IDA_moveIntersecting,ss:[bp].IDA_spaceStart,ax subdwf ss:[bp].IDA_moveIntersecting,ss:[bp].IDA_objEdgeStart,ax BitSet ss:[bp].IDA_flags, IDAF_MOVE_INTERSECTING tryResize: ; From compare for moveBelowRight we know that ; spaceEnd > objEdgeStart ; jgdwf ss:[bp].IDA_spaceStart,ss:[bp].IDA_objEdgeEnd, done,ax movwwf axcx,ss:[bp].IDA_objDimension cwd jldwf ss:[bp].IDA_objEdgeEnd,ss:[bp].IDA_spaceEnd,subEdgeEnd,bx subdwf dxaxcx,ss:[bp].IDA_spaceEnd max: jgdwf ss:[bp].IDA_objEdgeStart,ss:[bp].IDA_spaceStart,addEdgeStart,bx adddwf dxaxcx,ss:[bp].IDA_spaceStart calcScale: push bp ;passed frame mov bx,ss:[bp].IDA_objDimension.WWF_int mov bp,ss:[bp].IDA_objDimension.WWF_frac xchg ax,cx ;dividend frac, dividend int xchg ax,bp ;divisor frac, dividend frac call GrSDivDWFbyWWF mov ax,bp pop bp ;passed frame ; If the high word of the scale is not zero then something ; horribly bad has happened, so ignore the calced scale ; tst dx jnz jmpDone ; If both the low int and the frac are zero then we must ; mark it as delete too ; tst cx jnz storeScale tst ax jnz storeScale BitSet ss:[bp].IDA_flags, IDAF_DELETE storeScale: movwwf ss:[bp].IDA_scale,cxax BitSet ss:[bp].IDA_flags, IDAF_SCALE jmpDone: jmp done subEdgeEnd: subdwf dxaxcx,ss:[bp].IDA_objEdgeEnd jmp max addEdgeStart: adddwf dxaxcx,ss:[bp].IDA_objEdgeStart jmp calcScale GrObjAxisDelete endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjConsiderParamsAndPermissions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Modify IDA_flags based on the passed parameters and the objects permissions CALLED BY: INTERNAL GrObjInsertOrDeleteSpace PASS: *ds:si - object ss:bp - inherited InsertDeleteWorkingData ss:bx - InsertDeleteSpaceParams RETURN: ss:bp - inherited InsertDeleteWorkingData both IDA_flags may have changed DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This routine should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 4/21/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjConsiderParamsAndPermissions proc near workingData local InsertDeleteWorkingData .enter inherit EC < call ECGrObjCheckLMemObject > push bp lea bp,ss:[workingData.IDWD_horiz] call GrObjConsiderAxisParamsAndPermissions pop bp push bp lea bp,ss:[workingData.IDWD_vert] call GrObjConsiderAxisParamsAndPermissions pop bp .leave ret GrObjConsiderParamsAndPermissions endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjConsiderAxisParamsAndPermissions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Modify IDA_flags based on the passed parameters and the objects permissions CALLED BY: INTERNAL GrObjConsiderParamsAndPermissions PASS: *ds:si - object ss:bp - InsertDeleteAxis ss:bx - InsertDeleteSpaceParams RETURN: ss:bp - IDA_flags may have changed DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This routine should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 4/21/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjConsiderAxisParamsAndPermissions proc near class GrObjClass uses ax,di .enter inherit EC < call ECGrObjCheckLMemObject > GrObjDeref di,ds,si mov al,ss:[bp].IDA_flags test ss:[bx].IDSP_type, \ mask IDST_MOVE_OBJECTS_INTERSECTING_DELETED_SPACE jz nukeMoveIntersecting test ds:[di].GOI_attrFlags,mask GOAF_INSERT_DELETE_MOVE_ALLOWED jnz checkResize nukeMoveIntersecting: BitClr al, IDAF_MOVE_INTERSECTING checkResize: test ss:[bx].IDSP_type, \ mask IDST_RESIZE_OBJECTS_INTERSECTING_SPACE jz nukeScale test ds:[di].GOI_attrFlags,mask GOAF_INSERT_DELETE_RESIZE_ALLOWED jnz checkDelete nukeScale: BitClr al, IDAF_SCALE checkDelete: test ss:[bx].IDSP_type, \ mask IDST_DELETE_OBJECTS_SHRUNK_TO_ZERO_SIZE jz nukeDelete test ds:[di].GOI_attrFlags,mask GOAF_INSERT_DELETE_DELETE_ALLOWED jnz checkMoveBelowRight nukeDelete: BitClr al, IDAF_DELETE checkMoveBelowRight: test ss:[bx].IDSP_type, mask \ IDST_MOVE_OBJECTS_BELOW_AND_RIGHT_OF_INSERT_POINT_OR_DELETED_SPACE jz nukeMoveBelowRight test ds:[di].GOI_attrFlags,mask GOAF_INSERT_DELETE_MOVE_ALLOWED jnz done nukeMoveBelowRight: BitClr al, IDAF_MOVE_BELOW_RIGHT done: mov ss:[bp].IDA_flags,al .leave ret GrObjConsiderAxisParamsAndPermissions endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjDoInsertDeleteGeometry %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Actually move/resize/delete object based on InsertDeleteWorkingData CALLED BY: INTERNAL GrObjInsertOrDeleteSpace PASS: *ds:si - object ss:bp - inherited InsertDeleteWorkingData RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This routine should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 4/21/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjDoInsertDeleteGeometry proc near workingData local InsertDeleteWorkingData uses ax,bx,cx .enter inherit EC < call ECGrObjCheckLMemObject > ; Do move ; sub sp,size PointDWFixed mov bx,sp push bp lea bp,ss:[workingData.IDWD_horiz] call GrObjCalcInsertDeleteAxisMove pop bp push bp add bx,offset PDF_y lea bp,ss:[workingData.IDWD_vert] call GrObjCalcInsertDeleteAxisMove sub bx,offset PDF_y pop bp xchg bp,bx ;PointDWFixed, workingData mov ax,MSG_GO_MOVE call ObjCallInstanceNoLock xchg bx,bp ;PointDWFixed, workingData add sp,size PointDWFixed ; Do scale ; sub sp,size GrObjScaleData mov bx,sp push bp add bx,offset GOSD_xScale lea bp,ss:[workingData.IDWD_horiz] call GrObjCalcInsertDeleteAxisScale sub bx,offset GOSD_xScale pop bp push bp add bx,offset GOSD_yScale lea bp,ss:[workingData.IDWD_vert] call GrObjCalcInsertDeleteAxisScale sub bx,offset GOSD_yScale pop bp xchg bp,bx ;GrObjScaleData, workingData mov ax,MSG_GO_SCALE_ABOUT_PARENT_LEFT_TOP call ObjCallInstanceNoLock xchg bx,bp ;GrObjScaleData, workingData add sp,size GrObjScaleData ; Do delete ; test ss:[workingData.IDWD_horiz.IDA_flags], mask IDAF_DELETE jnz delete test ss:[workingData.IDWD_vert.IDA_flags], mask IDAF_DELETE jnz delete done: .leave ret delete: mov ax,MSG_GO_CLEAR call ObjCallInstanceNoLock jmp done GrObjDoInsertDeleteGeometry endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjCalcInsertDeleteAxisMove %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Calculate the total amount the object needs to be moved CALLED BY: INTERNAL GrObjDoInsertDeleteGeometry PASS: ss:bp - InsertDeleteAxis ss:bx - DWFixed - empty RETURN: ss:bx - amount to move in axis DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This routine should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 4/21/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjCalcInsertDeleteAxisMove proc near uses ax,di,es .enter ; Init move to zero ; segmov es,ss,ax mov di,bx clr ax StoreConstantNumBytes <size DWFixed >,cx ; Add in intersecting and below right moves ; test ss:[bp].IDA_flags, mask IDAF_MOVE_INTERSECTING jz 10$ adddwf ss:[bx], ss:[bp].IDA_moveIntersecting,ax 10$: test ss:[bp].IDA_flags, mask IDAF_MOVE_BELOW_RIGHT jz 20$ adddwf ss:[bx], ss:[bp].IDA_moveBelowRight,ax 20$: .leave ret GrObjCalcInsertDeleteAxisMove endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjCalcInsertDeleteAxisScale %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Calculate the scale factor for one axis CALLED BY: INTERNAL GrObjDoInsertDeleteGeometry PASS: ss:bp - InsertDeleteAxis ss:bx - WWFixed - empty RETURN: ss:bx - WWFixed - scale factor DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: This routine should be optimized for SMALL SIZE over SPEED Common cases: unknown REVISION HISTORY: Name Date Description ---- ---- ----------- srs 4/21/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjCalcInsertDeleteAxisScale proc near uses ax .enter ; Init scale to 1.0 ; mov ss:[bx].WWF_int,1 clr ss:[bx].WWF_frac test ss:[bp].IDA_flags, mask IDAF_SCALE jz done movwwf ss:[bx], ss:[bp].IDA_scale,ax done: .leave ret GrObjCalcInsertDeleteAxisScale endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjAlign %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: GrObj method for MSG_GO_ALIGN Pass: *ds:si = ds:di = GrObj ss:bp = AlignParams dx = size AlignParams Return: nothing Destroyed: ax, bx, cx, di, es Comments: Revision History: Name Date Description ---- ------------ ----------- jon Nov 6, 1991 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjAlign method dynamic GrObjClass, MSG_GO_ALIGN center local PointDWFixed boundsDWF local RectDWFixed localPoint local PointDWFixed mov bx, bp ;ss:bx <- AlignParams .enter call GrObjCanMove? jnc done mov dl, ss:[bx].AP_type test dl, mask AT_ALIGN_X or mask AT_DISTRIBUTE_X or \ mask AT_ALIGN_Y or mask AT_DISTRIBUTE_Y jnz continue done: .leave ret continue: ; ; Save the original passed point ; push ds, si mov ax, ss mov ds, ax mov es, ax mov si, bx lea di, ss:localPoint mov cx, size PointDWFixed / 2 rep movsw pop ds, si ; ; Get the object's center ; push bp lea bp, ss:[center] mov ax, MSG_GO_GET_CENTER call ObjCallInstanceNoLock pop bp push bp ; ; Get the object's bounds ; lea bp, ss:[boundsDWF] mov ax, MSG_GO_GET_DWF_PARENT_BOUNDS call ObjCallInstanceNoLock pop bp ; ; check whatkind of horizontal alignment we want ; test dl, mask AT_ALIGN_X or mask AT_DISTRIBUTE_X jnz calcXOffset clr ax clrdwf localPoint.PDF_x, ax jmp calcYOffset calcXOffset: mov al, dl and al, mask AT_CLRW jz centerX cmp al, CLRW_RIGHT shl offset AT_CLRW je rightX ; ; either align left or width ; subdwf localPoint.PDF_x, boundsDWF.RDWF_left, ax jmp checkAlignY centerX: subdwf localPoint.PDF_x, center.PDF_x, ax jmp checkAlignY rightX: subdwf localPoint.PDF_x, boundsDWF.RDWF_right, ax checkAlignY: test dl, mask AT_ALIGN_Y or mask AT_DISTRIBUTE_Y jnz calcYOffset clr ax clrdwf localPoint.PDF_y, ax jmp doAlign calcYOffset: mov al, dl and al, mask AT_CTBH jz centerY cmp al, CTBH_BOTTOM shl offset AT_CTBH je bottomY ; ; align either top or height ; subdwf localPoint.PDF_y, boundsDWF.RDWF_top, ax jmp doAlign centerY: subdwf localPoint.PDF_y, center.PDF_y, ax jmp doAlign bottomY: subdwf localPoint.PDF_y, boundsDWF.RDWF_bottom, ax doAlign: push bp lea bp, ss:localPoint ; ; Move the object ; mov ax, MSG_GO_MOVE call ObjCallInstanceNoLock pop bp test dl, mask AT_ALIGN_X or mask AT_DISTRIBUTE_X jz checkCTBH mov al, dl andnf al, mask AT_CLRW cmp al, mask AT_CLRW jne checkHeight ; ; We're aligning by width, so add in this object's width for ; the next object... push dx movdwf dxcxax, boundsDWF.RDWF_right subdwf dxcxax, boundsDWF.RDWF_left adddwf ss:[bx].AP_x, dxcxax pop dx checkHeight: test dl, mask AT_ALIGN_Y or mask AT_DISTRIBUTE_Y jz addDistribute checkCTBH: mov al, dl andnf al, mask AT_CTBH cmp al, mask AT_CTBH jne addDistribute ; ; We're aligning by height, so add in this object's width for ; the next object... push dx movdwf dxcxax, boundsDWF.RDWF_bottom subdwf dxcxax, boundsDWF.RDWF_top adddwf ss:[bx].AP_y, dxcxax pop dx addDistribute: test dl, mask AT_DISTRIBUTE_X jz checkAddDistributeY xchg bp, bx ;bx <- local ptr ;bp <- frame ptr AddDWF ss:[bp].AP_x, ss:[bp].AP_spacingX, ax xchg bp, bx ;bp <- local ptr ;bx <- frame ptr checkAddDistributeY: test dl, mask AT_DISTRIBUTE_Y LONG jz done xchg bp, bx ;bx <- local ptr ;bp <- frame ptr AddDWF ss:[bp].AP_y, ss:[bp].AP_spacingY, ax mov bp, bx ;bp <- local ptr jmp done GrObjAlign endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrObjAlignToGrid %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: GrObj method for MSG_GO_ALIGN_TO_GRID Pass: *ds:si = ds:di = GrObj cl = AlignType Return: nothing Destroyed: ax, dx Comments: Revision History: Name Date Description ---- ------------ ----------- jon 26 mar 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ; ; This rectangular region of the object is expanded by this amount (low word) ; to allow for two things: (1) the fact that the previous code used by GenValue ; to convert ASCII to FixedPoint was inaccurate and thus the user may hit ; align to grid and have it not move (because it is very close, but not ; exact), and (2) if the object is exactly aligned top or left and the user ; requrests an align to grid top or left, it will not move because of the ; ruler's rounding rules. This will cause a click on the align to always ; move the object. --JimG 6/20/94 ; ALIGN_FUDGE_EPSILON_LOW = 0100h ; About 0.00390625 points GrObjAlignToGrid method dynamic GrObjClass, MSG_GO_ALIGN_TO_GRID boundsDWF local RectDWFixed centerDWF local PointDWFixed localPoint local PointDWFixed halfGridSpacing local PointDWFixed .enter call GrObjCanMove? jc doMove done: .leave ret doMove: test cl, mask ATGT_H_CENTER or mask ATGT_V_CENTER jz afterCenter ; ; Get the object's center ; push bp lea bp, ss:[centerDWF] mov ax, MSG_GO_GET_CENTER call ObjCallInstanceNoLock pop bp afterCenter: test cl, mask ATGT_LEFT or mask ATGT_RIGHT or \ mask ATGT_TOP or mask ATGT_BOTTOM jz afterBounds ; ; Get the object's bounds ; push bp lea bp, ss:[boundsDWF] mov ax, MSG_GO_GET_DWF_PARENT_BOUNDS call ObjCallInstanceNoLock pop bp ; ; Subtract off 1/2 of the line width so that the object ; aligns to the grid as if it were drawn with the snap to grid ; enabled. --JimG 6/20/94 ; push cx ;save AlignToGridType push ds, si ;save object pointer push bp ;save stack frame call GrObjGetLineWidth ;di:bp = WWFixed line width shrdw dibp ;get 1/2 width ; negate line width. faster to use negdw with zero register and then ; set di to FFFF than to use negdwf (we know highest word will ; always be FFFF). mov cx, bp mov dx, di clr di negdw dxcx, di ;and set di to FFFF than to use negdwf. dec di ;di:dx:cx = DWFixed -1/2 * line width pop bp ;restore stack frame segmov ds, ss, si lea si, ss:[boundsDWF] ;ds:si = RectDWFixed call GrObjGlobalExpandRectDWFixedByDWFixed pop ds, si ;restore object pointer ; ; Get 1/2 the spacing of the grid so we can ; "round" to the correct grid line ; push bp ;save local ptr mov ax, MSG_VIS_RULER_GET_GRID_SPACING mov di, mask MF_FIXUP_DS or mask MF_CALL call GrObjMessageToRuler ; ; take half of the grid spacing... well, actually, just *a hair* ; less than half, otherwise repeated alignments will move the ; damn things left/up every time... ; ; dec dx ;take off 1/2 point for now... ; dec bp shrdw dxcx shrdw bpax mov di, bp ;di <- y int pop bp ;bp <- local ptr mov ss:halfGridSpacing.PDF_x.DWF_int.low, dx mov ss:halfGridSpacing.PDF_x.DWF_frac, cx mov ss:halfGridSpacing.PDF_y.DWF_int.low, di mov ss:halfGridSpacing.PDF_y.DWF_frac, ax clr cx mov ss:halfGridSpacing.PDF_x.DWF_int.high, cx mov ss:halfGridSpacing.PDF_y.DWF_int.high, cx pop cx ;cx <- AlignToGridType afterBounds: push si ;save chunk handle ; ; check what kind of horizontal alignment we want ; movnf di, <offset PDF_x> test cl, mask ATGT_LEFT jz checkRight negdwf ss:[halfGridSpacing].PDF_x ; ; We want to align the left edge of the object to the grid. ; movnf si, <offset RDWF_left> call CalcLocalPoint jmp checkVertical checkRight: test cl, mask ATGT_RIGHT jz checkHCenter ; ; We want to align the right edge of the object to the grid. ; movnf si, <offset RDWF_right> call CalcLocalPoint jmp checkVertical checkHCenter: test cl, mask ATGT_H_CENTER jz noHAlign movdwf ss:[localPoint].PDF_x, ss:[centerDWF].PDF_x, ax jmp checkVertical noHAlign: clr ax clrdwf ss:[localPoint].PDF_x, ax checkVertical: ; ; check what kind of vertical alignment we want ; movnf di, <offset PDF_y> test cl, mask ATGT_TOP jz checkBottom ; ; We want to align the top edge of the object to the grid. ; negdwf ss:[halfGridSpacing].PDF_y movnf si, <offset RDWF_top> call CalcLocalPoint jmp callRuler checkBottom: test cl, mask ATGT_BOTTOM jz checkVCenter ; ; We want to align the bottom edge of the object to the grid. ; movnf si, <offset RDWF_bottom> call CalcLocalPoint jmp callRuler checkVCenter: test cl, mask ATGT_V_CENTER jz noVAlign movdwf ss:[localPoint].PDF_y, ss:[centerDWF].PDF_y, ax jmp callRuler noVAlign: clr ax clrdwf ss:[localPoint].PDF_y, ax callRuler: pop si ;*ds:si <- GrObj ; ; Use centerDWF to store the unruled localPoint ; movdwf ss:[centerDWF].PDF_x, ss:[localPoint].PDF_x, ax movdwf ss:[centerDWF].PDF_y, ss:[localPoint].PDF_y, ax ; ; Fudge the point passed to the ruler by a small amount. See comment ; at beginning of this routine. ; test cl, mask ATGT_LEFT or mask ATGT_RIGHT jz topBottomFudge mov dx, ALIGN_FUDGE_EPSILON_LOW test cl, mask ATGT_RIGHT jnz doLeftRight neg dx doLeftRight: movnf di, <offset PDF_x> call FudgeLocalPointByFraction topBottomFudge: test cl, mask ATGT_TOP or mask ATGT_BOTTOM jz doneWithFudging mov dx, ALIGN_FUDGE_EPSILON_LOW test cl, mask ATGT_BOTTOM jnz doTopBottom neg dx doTopBottom: movnf di, <offset PDF_y> call FudgeLocalPointByFraction doneWithFudging: ; ; OK, we've got our localPoint ready to go. Let the ; ruler do its thing ; push bp, cx lea bp, ss:[localPoint] mov cx, mask VRCS_OVERRIDE or VRCS_SNAP_TO_GRID_ABSOLUTE \ or VRCS_SNAP_TO_GUIDES mov ax, MSG_VIS_RULER_RULE_LARGE_PTR mov di, mask MF_FIXUP_DS or mask MF_CALL call GrObjMessageToRuler pop bp, cx ; ; Calc distance moved ; subdwf ss:[localPoint].PDF_x, ss:[centerDWF].PDF_x, ax subdwf ss:[localPoint].PDF_y, ss:[centerDWF].PDF_y, ax ; ; Factor in the ruler shift if necessary ; test cl, mask ATGT_LEFT or mask ATGT_RIGHT jz checkVAdjust adddwf ss:[localPoint].PDF_x, ss:[halfGridSpacing].PDF_x, ax checkVAdjust: test cl, mask ATGT_TOP or mask ATGT_BOTTOM jz move adddwf ss:[localPoint].PDF_y, ss:[halfGridSpacing].PDF_y, ax move: ; ; Move the object ; push bp lea bp, ss:[localPoint] mov ax, MSG_GO_MOVE call ObjCallInstanceNoLock pop bp jmp done GrObjAlignToGrid endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CalcLocalPoint %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: Common routine to calculate a DWF value for GrObjAlignToGrid Pass: di - offset PDF_* si - offset RDWF_* Return: localPoint[di] = boundsDWF[si] + halfGridSpacing[di] Destroyed: ax Revision History: Name Date Description ---- ------------ ----------- jon Jul 2, 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CalcLocalPoint proc near .enter inherit GrObjAlignToGrid mov ax, ss:[boundsDWF][si].DWF_frac add ax, ss:[halfGridSpacing][di].DWF_frac mov ss:[localPoint][di].DWF_frac, ax mov ax, ss:[boundsDWF][si].DWF_int.low adc ax, ss:[halfGridSpacing][di].DWF_int.low mov ss:[localPoint][di].DWF_int.low, ax mov ax, ss:[boundsDWF][si].DWF_int.high adc ax, ss:[halfGridSpacing][di].DWF_int.high mov ss:[localPoint][di].DWF_int.high, ax .leave ret CalcLocalPoint endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FudgeLocalPointByFraction %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Adds a fractional amount to localPoint. CALLED BY: ONLY BY GrObjAlignToGrid PASS: ss:bp = correct local variables dx = fractional amount to fudge by di = Offset to localPoint RETURN: nothing DESTROYED: ax SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JimG 6/20/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FudgeLocalPointByFraction proc near .enter inherit GrObjAlignToGrid tst dx jz done clr ax tst dx jns addIt dec ax addIt: add ss:[localPoint][di].DWF_frac, dx adc ss:[localPoint][di].DWF_int.low, ax adc ss:[localPoint][di].DWF_int.high, ax done: .leave ret FudgeLocalPointByFraction endp GrObjObscureExtNonInteractiveCode ends
22.033265
80
0.621478
84daa296bf18c8e075c482a1f6d5b5edac2722c5
2,378
asm
Assembly
C/PModeLib/segbase.asm
p-k-p/SysToolsLib
827be2799e541410cb5c11358cd4ce6859e171ad
[ "Apache-2.0" ]
232
2016-04-27T21:56:11.000Z
2022-03-29T09:02:15.000Z
C/PModeLib/segbase.asm
p-k-p/SysToolsLib
827be2799e541410cb5c11358cd4ce6859e171ad
[ "Apache-2.0" ]
31
2016-05-09T09:05:36.000Z
2022-03-29T19:17:45.000Z
C/PModeLib/segbase.asm
p-k-p/SysToolsLib
827be2799e541410cb5c11358cd4ce6859e171ad
[ "Apache-2.0" ]
94
2016-06-01T18:10:39.000Z
2022-03-26T10:44:57.000Z
page , 132 ;*****************************************************************************; ; ; ; FileName: segbase.asm ; ; ; ; Contents: Get segment and far pointers linear address ; ; ; ; Author: Jean-Francois Larvoire 94/02/24 ; ; ; ; Notes: ; ; ; ; History: ; ; ; ; (c) Copyright 1994-2017 Hewlett Packard Enterprise Development LP ; ; Licensed under the Apache 2.0 license - www.apache.org/licenses/LICENSE-2.0 ; ;*****************************************************************************; INCLUDE ADEFINE.INC .CODE ;===FUNCTION HEADER===========================================================; ; ; ; NAME: GetSegmentBase ; ; ; ; DESCRIPTION: Get the base of a segment ; ; ; ; PARAMETERS: ; ; ; ; ON ENTRY: AX = Real mode segment ; ; ; ; ON EXIT: DX:AX 32 bits base of the segment ; ; ; ; REGS ALTERED: AX, CX, DX ; ; ; ;=============================================================================; CFASTPROC GetSegmentBase xor dx, dx mov cx, 4 @@: shl ax, 1 rcl dx, 1 loop @B ret ENDCFASTPROC GetSegmentBase ;===FUNCTION HEADER===========================================================; ; ; ; NAME: GetV86LinearAddress ; ; ; ; DESCRIPTION: Get the linear address of a Virtual 86 address ; ; ; ; PARAMETERS: ; ; ; ; ON ENTRY: AX = Offset ; ; DX = Segment ; ; ; ; ON EXIT: DX:AX 32 bits linear address ; ; ; ; NOTES: The routine is implemented with the _cdecl calling ; ; convention, even though this is not optimal, because ; ; _fastcall routines do not pass far pointers in ; ; registers anyway. ; ; ; ; REGS ALTERED: AX, BX, CX, DX ; ; ; ;=============================================================================; GetV86LinearAddress proc C public, wOffset:WORD, wSegment:WORD mov ax, wSegment call GetSegmentBase ; DX:AX = The V86 segment base add ax, wOffset adc dx, 0 ret GetV86LinearAddress endp END
28.650602
79
0.396552
97a384a087ab5212621bf4b6e02700d188a773ce
40,211
asm
Assembly
sources/ippcp/asm_ia32_gas_converted/linux/pic/p8/merged/pcpaesgcmg9as.asm
ymarkovitch/ipp-crypto
ac8f1c443cc79e9f2f8508f8c707c9ed0caa22c8
[ "Apache-2.0" ]
null
null
null
sources/ippcp/asm_ia32_gas_converted/linux/pic/p8/merged/pcpaesgcmg9as.asm
ymarkovitch/ipp-crypto
ac8f1c443cc79e9f2f8508f8c707c9ed0caa22c8
[ "Apache-2.0" ]
null
null
null
sources/ippcp/asm_ia32_gas_converted/linux/pic/p8/merged/pcpaesgcmg9as.asm
ymarkovitch/ipp-crypto
ac8f1c443cc79e9f2f8508f8c707c9ed0caa22c8
[ "Apache-2.0" ]
null
null
null
############################################################################### # Copyright 2019 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") contained herein is # owned by Intel Corporation or its suppliers or licensors, and title to such # Material remains with Intel Corporation or its suppliers or licensors. The # Material contains proprietary information of Intel or its suppliers and # licensors. The Material is protected by worldwide copyright laws and treaty # provisions. No part of the Material may be used, copied, reproduced, # modified, published, uploaded, posted, transmitted, distributed or disclosed # in any way without Intel's prior express written permission. No license under # any patent, copyright or other intellectual property rights in the Material # is granted to or conferred upon you, either expressly, by implication, # inducement, estoppel or otherwise. Any license under such intellectual # property rights must be express and approved by Intel in writing. # # Unless otherwise agreed by Intel in writing, you may not remove or alter this # notice or any other notice embedded in Materials by Intel or Intel's # suppliers or licensors in any way. # # # If this software was obtained under the Apache License, Version 2.0 (the # "License"), the following terms apply: # # 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. ############################################################################### .section .note.GNU-stack,"",%progbits .text .p2align 4, 0x90 CONST_TABLE: _poly: .quad 0x1, 0xC200000000000000 _twoone: .quad 0x1, 0x100000000 _u128_str: .byte 15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0 _mask1: .quad 0xffffffffffffffff, 0x0 _mask2: .quad 0x0, 0xffffffffffffffff _inc1: .quad 1,0 .p2align 4, 0x90 .globl p8_AesGcmPrecompute_avx .type p8_AesGcmPrecompute_avx, @function p8_AesGcmPrecompute_avx: push %ebp mov %esp, %ebp push %esi call .L__0000gas_1 .L__0000gas_1: pop %esi sub $(.L__0000gas_1-CONST_TABLE), %esi movl (8)(%ebp), %eax movdqu (%eax), %xmm0 pshufb ((_u128_str-CONST_TABLE))(%esi), %xmm0 movdqa %xmm0, %xmm4 psllq $(1), %xmm0 psrlq $(63), %xmm4 movdqa %xmm4, %xmm3 pslldq $(8), %xmm4 psrldq $(8), %xmm3 por %xmm4, %xmm0 pshufd $(36), %xmm3, %xmm4 pcmpeqd ((_twoone-CONST_TABLE))(%esi), %xmm4 pand ((_poly-CONST_TABLE))(%esi), %xmm4 pxor %xmm4, %xmm0 movdqa %xmm0, %xmm1 pshufd $(78), %xmm1, %xmm5 pshufd $(78), %xmm0, %xmm3 pxor %xmm1, %xmm5 pxor %xmm0, %xmm3 pclmulqdq $(0), %xmm3, %xmm5 movdqa %xmm1, %xmm4 pclmulqdq $(0), %xmm0, %xmm1 pxor %xmm3, %xmm3 pclmulqdq $(17), %xmm0, %xmm4 pxor %xmm1, %xmm5 pxor %xmm4, %xmm5 palignr $(8), %xmm5, %xmm3 pslldq $(8), %xmm5 pxor %xmm3, %xmm4 pxor %xmm5, %xmm1 movdqa %xmm1, %xmm3 psllq $(1), %xmm3 pxor %xmm1, %xmm3 psllq $(5), %xmm3 pxor %xmm1, %xmm3 psllq $(57), %xmm3 movdqa %xmm3, %xmm5 pslldq $(8), %xmm5 psrldq $(8), %xmm3 pxor %xmm5, %xmm1 pxor %xmm3, %xmm4 movdqa %xmm1, %xmm5 psrlq $(5), %xmm5 pxor %xmm1, %xmm5 psrlq $(1), %xmm5 pxor %xmm1, %xmm5 psrlq $(1), %xmm5 pxor %xmm5, %xmm1 pxor %xmm4, %xmm1 movdqa %xmm1, %xmm2 pshufd $(78), %xmm2, %xmm5 pshufd $(78), %xmm1, %xmm3 pxor %xmm2, %xmm5 pxor %xmm1, %xmm3 pclmulqdq $(0), %xmm3, %xmm5 movdqa %xmm2, %xmm4 pclmulqdq $(0), %xmm1, %xmm2 pxor %xmm3, %xmm3 pclmulqdq $(17), %xmm1, %xmm4 pxor %xmm2, %xmm5 pxor %xmm4, %xmm5 palignr $(8), %xmm5, %xmm3 pslldq $(8), %xmm5 pxor %xmm3, %xmm4 pxor %xmm5, %xmm2 movdqa %xmm2, %xmm3 psllq $(1), %xmm3 pxor %xmm2, %xmm3 psllq $(5), %xmm3 pxor %xmm2, %xmm3 psllq $(57), %xmm3 movdqa %xmm3, %xmm5 pslldq $(8), %xmm5 psrldq $(8), %xmm3 pxor %xmm5, %xmm2 pxor %xmm3, %xmm4 movdqa %xmm2, %xmm5 psrlq $(5), %xmm5 pxor %xmm2, %xmm5 psrlq $(1), %xmm5 pxor %xmm2, %xmm5 psrlq $(1), %xmm5 pxor %xmm5, %xmm2 pxor %xmm4, %xmm2 movl (12)(%ebp), %eax movdqu %xmm0, (%eax) movdqu %xmm1, (16)(%eax) movdqu %xmm2, (32)(%eax) pop %esi pop %ebp ret .Lfe1: .size p8_AesGcmPrecompute_avx, .Lfe1-(p8_AesGcmPrecompute_avx) .p2align 4, 0x90 .globl p8_AesGcmMulGcm_avx .type p8_AesGcmMulGcm_avx, @function p8_AesGcmMulGcm_avx: push %ebp mov %esp, %ebp push %esi push %edi call .L__0001gas_2 .L__0001gas_2: pop %esi sub $(.L__0001gas_2-CONST_TABLE), %esi movl (8)(%ebp), %edi movl (12)(%ebp), %eax movdqa (%edi), %xmm0 pshufb ((_u128_str-CONST_TABLE))(%esi), %xmm0 movdqa (%eax), %xmm1 pshufd $(78), %xmm0, %xmm4 pshufd $(78), %xmm1, %xmm2 pxor %xmm0, %xmm4 pxor %xmm1, %xmm2 pclmulqdq $(0), %xmm2, %xmm4 movdqa %xmm0, %xmm3 pclmulqdq $(0), %xmm1, %xmm0 pxor %xmm2, %xmm2 pclmulqdq $(17), %xmm1, %xmm3 pxor %xmm0, %xmm4 pxor %xmm3, %xmm4 palignr $(8), %xmm4, %xmm2 pslldq $(8), %xmm4 pxor %xmm2, %xmm3 pxor %xmm4, %xmm0 movdqa %xmm0, %xmm2 psllq $(1), %xmm2 pxor %xmm0, %xmm2 psllq $(5), %xmm2 pxor %xmm0, %xmm2 psllq $(57), %xmm2 movdqa %xmm2, %xmm4 pslldq $(8), %xmm4 psrldq $(8), %xmm2 pxor %xmm4, %xmm0 pxor %xmm2, %xmm3 movdqa %xmm0, %xmm4 psrlq $(5), %xmm4 pxor %xmm0, %xmm4 psrlq $(1), %xmm4 pxor %xmm0, %xmm4 psrlq $(1), %xmm4 pxor %xmm4, %xmm0 pxor %xmm3, %xmm0 pshufb ((_u128_str-CONST_TABLE))(%esi), %xmm0 movdqa %xmm0, (%edi) pop %edi pop %esi pop %ebp ret .Lfe2: .size p8_AesGcmMulGcm_avx, .Lfe2-(p8_AesGcmMulGcm_avx) .p2align 4, 0x90 .globl p8_AesGcmAuth_avx .type p8_AesGcmAuth_avx, @function p8_AesGcmAuth_avx: push %ebp mov %esp, %ebp push %esi push %edi call .L__0002gas_3 .L__0002gas_3: pop %esi sub $(.L__0002gas_3-CONST_TABLE), %esi movl (8)(%ebp), %edi movdqa (%edi), %xmm0 pshufb ((_u128_str-CONST_TABLE))(%esi), %xmm0 movl (20)(%ebp), %eax movdqa (%eax), %xmm1 movl (12)(%ebp), %ecx movl (16)(%ebp), %edx .p2align 4, 0x90 .Lauth_loopgas_3: movdqu (%ecx), %xmm2 pshufb ((_u128_str-CONST_TABLE))(%esi), %xmm2 add $(16), %ecx pxor %xmm2, %xmm0 pshufd $(78), %xmm0, %xmm4 pshufd $(78), %xmm1, %xmm2 pxor %xmm0, %xmm4 pxor %xmm1, %xmm2 pclmulqdq $(0), %xmm2, %xmm4 movdqa %xmm0, %xmm3 pclmulqdq $(0), %xmm1, %xmm0 pxor %xmm2, %xmm2 pclmulqdq $(17), %xmm1, %xmm3 pxor %xmm0, %xmm4 pxor %xmm3, %xmm4 palignr $(8), %xmm4, %xmm2 pslldq $(8), %xmm4 pxor %xmm2, %xmm3 pxor %xmm4, %xmm0 movdqa %xmm0, %xmm2 psllq $(1), %xmm2 pxor %xmm0, %xmm2 psllq $(5), %xmm2 pxor %xmm0, %xmm2 psllq $(57), %xmm2 movdqa %xmm2, %xmm4 pslldq $(8), %xmm4 psrldq $(8), %xmm2 pxor %xmm4, %xmm0 pxor %xmm2, %xmm3 movdqa %xmm0, %xmm4 psrlq $(5), %xmm4 pxor %xmm0, %xmm4 psrlq $(1), %xmm4 pxor %xmm0, %xmm4 psrlq $(1), %xmm4 pxor %xmm4, %xmm0 pxor %xmm3, %xmm0 sub $(16), %edx jnz .Lauth_loopgas_3 pshufb ((_u128_str-CONST_TABLE))(%esi), %xmm0 movdqa %xmm0, (%edi) pop %edi pop %esi pop %ebp ret .Lfe3: .size p8_AesGcmAuth_avx, .Lfe3-(p8_AesGcmAuth_avx) .p2align 4, 0x90 .globl p8_AesGcmEnc_avx .type p8_AesGcmEnc_avx, @function p8_AesGcmEnc_avx: push %ebp mov %esp, %ebp push %ebx push %esi push %edi sub $(152), %esp lea (16)(%esp), %ebx and $(-16), %ebx movl (20)(%ebp), %eax call .L__0003gas_4 .L__0003gas_4: pop %esi sub $(.L__0003gas_4-CONST_TABLE), %esi movdqa ((_u128_str-CONST_TABLE))(%esi), %xmm4 movdqa ((_inc1-CONST_TABLE))(%esi), %xmm5 movl (36)(%ebp), %eax movl (40)(%ebp), %ecx movl (32)(%ebp), %edx movdqu (%eax), %xmm0 movdqu (%ecx), %xmm1 movdqu (%edx), %xmm2 pshufb %xmm4, %xmm0 movdqa %xmm0, (%ebx) movdqa %xmm1, (16)(%ebx) pshufb %xmm4, %xmm2 pxor %xmm1, %xmm1 movdqa %xmm2, (32)(%ebx) movdqa %xmm1, (48)(%ebx) movdqa %xmm1, (64)(%ebx) movdqa %xmm1, (80)(%ebx) movdqa %xmm4, (96)(%ebx) movdqa %xmm5, (112)(%ebx) movl (28)(%ebp), %ecx movl (12)(%ebp), %esi movl (8)(%ebp), %edi movl (16)(%ebp), %eax mov $(63), %edx and %eax, %edx and $(-64), %eax movl %eax, (128)(%ebx) movl %edx, (132)(%ebx) jz .Lsingle_block_procgas_4 .p2align 4, 0x90 .Lblks4_loopgas_4: movdqa (112)(%ebx), %xmm5 movdqa %xmm0, %xmm1 paddd %xmm5, %xmm1 movdqa %xmm1, %xmm2 paddd %xmm5, %xmm2 movdqa %xmm2, %xmm3 paddd %xmm5, %xmm3 movdqa %xmm3, %xmm4 paddd %xmm5, %xmm4 movdqa %xmm4, (%ebx) movdqa (96)(%ebx), %xmm5 movdqa (%ecx), %xmm0 lea (16)(%ecx), %eax pshufb %xmm5, %xmm1 pshufb %xmm5, %xmm2 pshufb %xmm5, %xmm3 pshufb %xmm5, %xmm4 pxor %xmm0, %xmm1 pxor %xmm0, %xmm2 pxor %xmm0, %xmm3 pxor %xmm0, %xmm4 movdqa (%eax), %xmm0 add $(16), %eax movl (24)(%ebp), %edx sub $(1), %edx .p2align 4, 0x90 .Lcipher4_loopgas_4: aesenc %xmm0, %xmm1 aesenc %xmm0, %xmm2 aesenc %xmm0, %xmm3 aesenc %xmm0, %xmm4 movdqa (%eax), %xmm0 add $(16), %eax dec %edx jnz .Lcipher4_loopgas_4 aesenclast %xmm0, %xmm1 aesenclast %xmm0, %xmm2 aesenclast %xmm0, %xmm3 aesenclast %xmm0, %xmm4 movdqa (16)(%ebx), %xmm0 movdqa %xmm4, (16)(%ebx) movdqu (%esi), %xmm4 movdqu (16)(%esi), %xmm5 movdqu (32)(%esi), %xmm6 movdqu (48)(%esi), %xmm7 add $(64), %esi pxor %xmm4, %xmm0 movdqu %xmm0, (%edi) pshufb (96)(%ebx), %xmm0 pxor (32)(%ebx), %xmm0 pxor %xmm5, %xmm1 movdqu %xmm1, (16)(%edi) pshufb (96)(%ebx), %xmm1 pxor (48)(%ebx), %xmm1 pxor %xmm6, %xmm2 movdqu %xmm2, (32)(%edi) pshufb (96)(%ebx), %xmm2 pxor (64)(%ebx), %xmm2 pxor %xmm7, %xmm3 movdqu %xmm3, (48)(%edi) pshufb (96)(%ebx), %xmm3 pxor (80)(%ebx), %xmm3 add $(64), %edi movl (44)(%ebp), %eax movdqa (32)(%eax), %xmm7 cmpl $(64), (128)(%ebx) je .Lcombine_hashgas_4 pshufd $(78), %xmm0, %xmm6 pshufd $(78), %xmm7, %xmm4 pxor %xmm0, %xmm6 pxor %xmm7, %xmm4 pclmulqdq $(0), %xmm4, %xmm6 movdqa %xmm0, %xmm5 pclmulqdq $(0), %xmm7, %xmm0 pxor %xmm4, %xmm4 pclmulqdq $(17), %xmm7, %xmm5 pxor %xmm0, %xmm6 pxor %xmm5, %xmm6 palignr $(8), %xmm6, %xmm4 pslldq $(8), %xmm6 pxor %xmm4, %xmm5 pxor %xmm6, %xmm0 movdqa %xmm0, %xmm4 psllq $(1), %xmm4 pxor %xmm0, %xmm4 psllq $(5), %xmm4 pxor %xmm0, %xmm4 psllq $(57), %xmm4 movdqa %xmm4, %xmm6 pslldq $(8), %xmm6 psrldq $(8), %xmm4 pxor %xmm6, %xmm0 pxor %xmm4, %xmm5 movdqa %xmm0, %xmm6 psrlq $(5), %xmm6 pxor %xmm0, %xmm6 psrlq $(1), %xmm6 pxor %xmm0, %xmm6 psrlq $(1), %xmm6 pxor %xmm6, %xmm0 pxor %xmm5, %xmm0 pshufd $(78), %xmm1, %xmm6 pshufd $(78), %xmm7, %xmm4 pxor %xmm1, %xmm6 pxor %xmm7, %xmm4 pclmulqdq $(0), %xmm4, %xmm6 movdqa %xmm1, %xmm5 pclmulqdq $(0), %xmm7, %xmm1 pxor %xmm4, %xmm4 pclmulqdq $(17), %xmm7, %xmm5 pxor %xmm1, %xmm6 pxor %xmm5, %xmm6 palignr $(8), %xmm6, %xmm4 pslldq $(8), %xmm6 pxor %xmm4, %xmm5 pxor %xmm6, %xmm1 movdqa %xmm1, %xmm4 psllq $(1), %xmm4 pxor %xmm1, %xmm4 psllq $(5), %xmm4 pxor %xmm1, %xmm4 psllq $(57), %xmm4 movdqa %xmm4, %xmm6 pslldq $(8), %xmm6 psrldq $(8), %xmm4 pxor %xmm6, %xmm1 pxor %xmm4, %xmm5 movdqa %xmm1, %xmm6 psrlq $(5), %xmm6 pxor %xmm1, %xmm6 psrlq $(1), %xmm6 pxor %xmm1, %xmm6 psrlq $(1), %xmm6 pxor %xmm6, %xmm1 pxor %xmm5, %xmm1 pshufd $(78), %xmm2, %xmm6 pshufd $(78), %xmm7, %xmm4 pxor %xmm2, %xmm6 pxor %xmm7, %xmm4 pclmulqdq $(0), %xmm4, %xmm6 movdqa %xmm2, %xmm5 pclmulqdq $(0), %xmm7, %xmm2 pxor %xmm4, %xmm4 pclmulqdq $(17), %xmm7, %xmm5 pxor %xmm2, %xmm6 pxor %xmm5, %xmm6 palignr $(8), %xmm6, %xmm4 pslldq $(8), %xmm6 pxor %xmm4, %xmm5 pxor %xmm6, %xmm2 movdqa %xmm2, %xmm4 psllq $(1), %xmm4 pxor %xmm2, %xmm4 psllq $(5), %xmm4 pxor %xmm2, %xmm4 psllq $(57), %xmm4 movdqa %xmm4, %xmm6 pslldq $(8), %xmm6 psrldq $(8), %xmm4 pxor %xmm6, %xmm2 pxor %xmm4, %xmm5 movdqa %xmm2, %xmm6 psrlq $(5), %xmm6 pxor %xmm2, %xmm6 psrlq $(1), %xmm6 pxor %xmm2, %xmm6 psrlq $(1), %xmm6 pxor %xmm6, %xmm2 pxor %xmm5, %xmm2 pshufd $(78), %xmm3, %xmm6 pshufd $(78), %xmm7, %xmm4 pxor %xmm3, %xmm6 pxor %xmm7, %xmm4 pclmulqdq $(0), %xmm4, %xmm6 movdqa %xmm3, %xmm5 pclmulqdq $(0), %xmm7, %xmm3 pxor %xmm4, %xmm4 pclmulqdq $(17), %xmm7, %xmm5 pxor %xmm3, %xmm6 pxor %xmm5, %xmm6 palignr $(8), %xmm6, %xmm4 pslldq $(8), %xmm6 pxor %xmm4, %xmm5 pxor %xmm6, %xmm3 movdqa %xmm3, %xmm4 psllq $(1), %xmm4 pxor %xmm3, %xmm4 psllq $(5), %xmm4 pxor %xmm3, %xmm4 psllq $(57), %xmm4 movdqa %xmm4, %xmm6 pslldq $(8), %xmm6 psrldq $(8), %xmm4 pxor %xmm6, %xmm3 pxor %xmm4, %xmm5 movdqa %xmm3, %xmm6 psrlq $(5), %xmm6 pxor %xmm3, %xmm6 psrlq $(1), %xmm6 pxor %xmm3, %xmm6 psrlq $(1), %xmm6 pxor %xmm6, %xmm3 pxor %xmm5, %xmm3 movdqa %xmm0, (32)(%ebx) movdqa %xmm1, (48)(%ebx) movdqa %xmm2, (64)(%ebx) movdqa %xmm3, (80)(%ebx) movdqa (%ebx), %xmm0 subl $(64), (128)(%ebx) jge .Lblks4_loopgas_4 .Lcombine_hashgas_4: pshufd $(78), %xmm0, %xmm6 pshufd $(78), %xmm7, %xmm4 pxor %xmm0, %xmm6 pxor %xmm7, %xmm4 pclmulqdq $(0), %xmm4, %xmm6 movdqa %xmm0, %xmm5 pclmulqdq $(0), %xmm7, %xmm0 pxor %xmm4, %xmm4 pclmulqdq $(17), %xmm7, %xmm5 pxor %xmm0, %xmm6 pxor %xmm5, %xmm6 palignr $(8), %xmm6, %xmm4 pslldq $(8), %xmm6 pxor %xmm4, %xmm5 pxor %xmm6, %xmm0 movdqa %xmm0, %xmm4 psllq $(1), %xmm4 pxor %xmm0, %xmm4 psllq $(5), %xmm4 pxor %xmm0, %xmm4 psllq $(57), %xmm4 movdqa %xmm4, %xmm6 pslldq $(8), %xmm6 psrldq $(8), %xmm4 pxor %xmm6, %xmm0 pxor %xmm4, %xmm5 movdqa %xmm0, %xmm6 psrlq $(5), %xmm6 pxor %xmm0, %xmm6 psrlq $(1), %xmm6 pxor %xmm0, %xmm6 psrlq $(1), %xmm6 pxor %xmm6, %xmm0 pxor %xmm5, %xmm0 movdqa (16)(%eax), %xmm7 pshufd $(78), %xmm1, %xmm6 pshufd $(78), %xmm7, %xmm4 pxor %xmm1, %xmm6 pxor %xmm7, %xmm4 pclmulqdq $(0), %xmm4, %xmm6 movdqa %xmm1, %xmm5 pclmulqdq $(0), %xmm7, %xmm1 pxor %xmm4, %xmm4 pclmulqdq $(17), %xmm7, %xmm5 pxor %xmm1, %xmm6 pxor %xmm5, %xmm6 palignr $(8), %xmm6, %xmm4 pslldq $(8), %xmm6 pxor %xmm4, %xmm5 pxor %xmm6, %xmm1 movdqa %xmm1, %xmm4 psllq $(1), %xmm4 pxor %xmm1, %xmm4 psllq $(5), %xmm4 pxor %xmm1, %xmm4 psllq $(57), %xmm4 movdqa %xmm4, %xmm6 pslldq $(8), %xmm6 psrldq $(8), %xmm4 pxor %xmm6, %xmm1 pxor %xmm4, %xmm5 movdqa %xmm1, %xmm6 psrlq $(5), %xmm6 pxor %xmm1, %xmm6 psrlq $(1), %xmm6 pxor %xmm1, %xmm6 psrlq $(1), %xmm6 pxor %xmm6, %xmm1 pxor %xmm5, %xmm1 movdqa (%eax), %xmm7 pshufd $(78), %xmm2, %xmm6 pshufd $(78), %xmm7, %xmm4 pxor %xmm2, %xmm6 pxor %xmm7, %xmm4 pclmulqdq $(0), %xmm4, %xmm6 movdqa %xmm2, %xmm5 pclmulqdq $(0), %xmm7, %xmm2 pxor %xmm4, %xmm4 pclmulqdq $(17), %xmm7, %xmm5 pxor %xmm2, %xmm6 pxor %xmm5, %xmm6 palignr $(8), %xmm6, %xmm4 pslldq $(8), %xmm6 pxor %xmm4, %xmm5 pxor %xmm6, %xmm2 movdqa %xmm2, %xmm4 psllq $(1), %xmm4 pxor %xmm2, %xmm4 psllq $(5), %xmm4 pxor %xmm2, %xmm4 psllq $(57), %xmm4 movdqa %xmm4, %xmm6 pslldq $(8), %xmm6 psrldq $(8), %xmm4 pxor %xmm6, %xmm2 pxor %xmm4, %xmm5 movdqa %xmm2, %xmm6 psrlq $(5), %xmm6 pxor %xmm2, %xmm6 psrlq $(1), %xmm6 pxor %xmm2, %xmm6 psrlq $(1), %xmm6 pxor %xmm6, %xmm2 pxor %xmm5, %xmm2 pxor %xmm1, %xmm3 pxor %xmm2, %xmm3 pshufd $(78), %xmm3, %xmm6 pshufd $(78), %xmm7, %xmm4 pxor %xmm3, %xmm6 pxor %xmm7, %xmm4 pclmulqdq $(0), %xmm4, %xmm6 movdqa %xmm3, %xmm5 pclmulqdq $(0), %xmm7, %xmm3 pxor %xmm4, %xmm4 pclmulqdq $(17), %xmm7, %xmm5 pxor %xmm3, %xmm6 pxor %xmm5, %xmm6 palignr $(8), %xmm6, %xmm4 pslldq $(8), %xmm6 pxor %xmm4, %xmm5 pxor %xmm6, %xmm3 movdqa %xmm3, %xmm4 psllq $(1), %xmm4 pxor %xmm3, %xmm4 psllq $(5), %xmm4 pxor %xmm3, %xmm4 psllq $(57), %xmm4 movdqa %xmm4, %xmm6 pslldq $(8), %xmm6 psrldq $(8), %xmm4 pxor %xmm6, %xmm3 pxor %xmm4, %xmm5 movdqa %xmm3, %xmm6 psrlq $(5), %xmm6 pxor %xmm3, %xmm6 psrlq $(1), %xmm6 pxor %xmm3, %xmm6 psrlq $(1), %xmm6 pxor %xmm6, %xmm3 pxor %xmm5, %xmm3 pxor %xmm0, %xmm3 movdqa %xmm3, (32)(%ebx) .Lsingle_block_procgas_4: cmpl $(0), (132)(%ebx) jz .Lquitgas_4 .p2align 4, 0x90 .Lblk_loopgas_4: movdqa (%ebx), %xmm0 movdqa %xmm0, %xmm1 paddd (112)(%ebx), %xmm1 movdqa %xmm1, (%ebx) movdqa (%ecx), %xmm0 lea (16)(%ecx), %eax pshufb (96)(%ebx), %xmm1 pxor %xmm0, %xmm1 movdqa (%eax), %xmm0 add $(16), %eax movl (24)(%ebp), %edx sub $(1), %edx .p2align 4, 0x90 .Lcipher_loopgas_4: aesenc %xmm0, %xmm1 movdqa (%eax), %xmm0 add $(16), %eax dec %edx jnz .Lcipher_loopgas_4 aesenclast %xmm0, %xmm1 movdqa (16)(%ebx), %xmm0 movdqa %xmm1, (16)(%ebx) movdqu (%esi), %xmm1 add $(16), %esi pxor %xmm1, %xmm0 movdqu %xmm0, (%edi) add $(16), %edi movl (44)(%ebp), %eax pshufb (96)(%ebx), %xmm0 pxor (32)(%ebx), %xmm0 movdqa (%eax), %xmm1 pshufd $(78), %xmm0, %xmm4 pshufd $(78), %xmm1, %xmm2 pxor %xmm0, %xmm4 pxor %xmm1, %xmm2 pclmulqdq $(0), %xmm2, %xmm4 movdqa %xmm0, %xmm3 pclmulqdq $(0), %xmm1, %xmm0 pxor %xmm2, %xmm2 pclmulqdq $(17), %xmm1, %xmm3 pxor %xmm0, %xmm4 pxor %xmm3, %xmm4 palignr $(8), %xmm4, %xmm2 pslldq $(8), %xmm4 pxor %xmm2, %xmm3 pxor %xmm4, %xmm0 movdqa %xmm0, %xmm2 psllq $(1), %xmm2 pxor %xmm0, %xmm2 psllq $(5), %xmm2 pxor %xmm0, %xmm2 psllq $(57), %xmm2 movdqa %xmm2, %xmm4 pslldq $(8), %xmm4 psrldq $(8), %xmm2 pxor %xmm4, %xmm0 pxor %xmm2, %xmm3 movdqa %xmm0, %xmm4 psrlq $(5), %xmm4 pxor %xmm0, %xmm4 psrlq $(1), %xmm4 pxor %xmm0, %xmm4 psrlq $(1), %xmm4 pxor %xmm4, %xmm0 pxor %xmm3, %xmm0 movdqa %xmm0, (32)(%ebx) subl $(16), (132)(%ebx) jg .Lblk_loopgas_4 .Lquitgas_4: movdqa (96)(%ebx), %xmm4 movdqa (%ebx), %xmm0 movdqa (16)(%ebx), %xmm1 movdqa (32)(%ebx), %xmm2 movl (36)(%ebp), %eax movl (40)(%ebp), %ecx movl (32)(%ebp), %edx pshufb %xmm4, %xmm0 movdqu %xmm0, (%eax) movdqu %xmm1, (%ecx) pshufb %xmm4, %xmm2 movdqu %xmm2, (%edx) add $(152), %esp pop %edi pop %esi pop %ebx pop %ebp ret .Lfe4: .size p8_AesGcmEnc_avx, .Lfe4-(p8_AesGcmEnc_avx) .p2align 4, 0x90 .globl p8_AesGcmDec_avx .type p8_AesGcmDec_avx, @function p8_AesGcmDec_avx: push %ebp mov %esp, %ebp push %ebx push %esi push %edi sub $(152), %esp lea (16)(%esp), %ebx and $(-16), %ebx movl (20)(%ebp), %eax call .L__0004gas_5 .L__0004gas_5: pop %esi sub $(.L__0004gas_5-CONST_TABLE), %esi movdqa ((_u128_str-CONST_TABLE))(%esi), %xmm4 movdqa ((_inc1-CONST_TABLE))(%esi), %xmm5 movl (36)(%ebp), %eax movl (40)(%ebp), %ecx movl (32)(%ebp), %edx movdqu (%eax), %xmm0 movdqu (%ecx), %xmm1 movdqu (%edx), %xmm2 pshufb %xmm4, %xmm0 movdqa %xmm0, (%ebx) movdqa %xmm1, (16)(%ebx) pshufb %xmm4, %xmm2 pxor %xmm1, %xmm1 movdqa %xmm2, (32)(%ebx) movdqa %xmm1, (48)(%ebx) movdqa %xmm1, (64)(%ebx) movdqa %xmm1, (80)(%ebx) movdqa %xmm4, (96)(%ebx) movdqa %xmm5, (112)(%ebx) movl (28)(%ebp), %ecx movl (12)(%ebp), %esi movl (8)(%ebp), %edi movl (16)(%ebp), %eax mov $(63), %edx and %eax, %edx and $(-64), %eax movl %eax, (128)(%ebx) movl %edx, (132)(%ebx) jz .Lsingle_block_procgas_5 .p2align 4, 0x90 .Lblks4_loopgas_5: movdqa (112)(%ebx), %xmm5 movdqa %xmm0, %xmm1 paddd %xmm5, %xmm1 movdqa %xmm1, %xmm2 paddd %xmm5, %xmm2 movdqa %xmm2, %xmm3 paddd %xmm5, %xmm3 movdqa %xmm3, %xmm4 paddd %xmm5, %xmm4 movdqa %xmm4, (%ebx) movdqa (96)(%ebx), %xmm5 movdqa (%ecx), %xmm0 lea (16)(%ecx), %eax pshufb %xmm5, %xmm1 pshufb %xmm5, %xmm2 pshufb %xmm5, %xmm3 pshufb %xmm5, %xmm4 pxor %xmm0, %xmm1 pxor %xmm0, %xmm2 pxor %xmm0, %xmm3 pxor %xmm0, %xmm4 movdqa (%eax), %xmm0 add $(16), %eax movl (24)(%ebp), %edx sub $(1), %edx .p2align 4, 0x90 .Lcipher4_loopgas_5: aesenc %xmm0, %xmm1 aesenc %xmm0, %xmm2 aesenc %xmm0, %xmm3 aesenc %xmm0, %xmm4 movdqa (%eax), %xmm0 add $(16), %eax dec %edx jnz .Lcipher4_loopgas_5 aesenclast %xmm0, %xmm1 aesenclast %xmm0, %xmm2 aesenclast %xmm0, %xmm3 aesenclast %xmm0, %xmm4 movdqa (16)(%ebx), %xmm0 movdqa %xmm4, (16)(%ebx) movdqu (%esi), %xmm4 movdqu (16)(%esi), %xmm5 movdqu (32)(%esi), %xmm6 movdqu (48)(%esi), %xmm7 add $(64), %esi pxor %xmm4, %xmm0 movdqu %xmm0, (%edi) pshufb (96)(%ebx), %xmm4 pxor (32)(%ebx), %xmm4 pxor %xmm5, %xmm1 movdqu %xmm1, (16)(%edi) pshufb (96)(%ebx), %xmm5 pxor (48)(%ebx), %xmm5 pxor %xmm6, %xmm2 movdqu %xmm2, (32)(%edi) pshufb (96)(%ebx), %xmm6 pxor (64)(%ebx), %xmm6 pxor %xmm7, %xmm3 movdqu %xmm3, (48)(%edi) pshufb (96)(%ebx), %xmm7 pxor (80)(%ebx), %xmm7 add $(64), %edi movl (44)(%ebp), %eax movdqa (32)(%eax), %xmm0 cmpl $(64), (128)(%ebx) je .Lcombine_hashgas_5 pshufd $(78), %xmm4, %xmm3 pshufd $(78), %xmm0, %xmm1 pxor %xmm4, %xmm3 pxor %xmm0, %xmm1 pclmulqdq $(0), %xmm1, %xmm3 movdqa %xmm4, %xmm2 pclmulqdq $(0), %xmm0, %xmm4 pxor %xmm1, %xmm1 pclmulqdq $(17), %xmm0, %xmm2 pxor %xmm4, %xmm3 pxor %xmm2, %xmm3 palignr $(8), %xmm3, %xmm1 pslldq $(8), %xmm3 pxor %xmm1, %xmm2 pxor %xmm3, %xmm4 movdqa %xmm4, %xmm1 psllq $(1), %xmm1 pxor %xmm4, %xmm1 psllq $(5), %xmm1 pxor %xmm4, %xmm1 psllq $(57), %xmm1 movdqa %xmm1, %xmm3 pslldq $(8), %xmm3 psrldq $(8), %xmm1 pxor %xmm3, %xmm4 pxor %xmm1, %xmm2 movdqa %xmm4, %xmm3 psrlq $(5), %xmm3 pxor %xmm4, %xmm3 psrlq $(1), %xmm3 pxor %xmm4, %xmm3 psrlq $(1), %xmm3 pxor %xmm3, %xmm4 pxor %xmm2, %xmm4 pshufd $(78), %xmm5, %xmm3 pshufd $(78), %xmm0, %xmm1 pxor %xmm5, %xmm3 pxor %xmm0, %xmm1 pclmulqdq $(0), %xmm1, %xmm3 movdqa %xmm5, %xmm2 pclmulqdq $(0), %xmm0, %xmm5 pxor %xmm1, %xmm1 pclmulqdq $(17), %xmm0, %xmm2 pxor %xmm5, %xmm3 pxor %xmm2, %xmm3 palignr $(8), %xmm3, %xmm1 pslldq $(8), %xmm3 pxor %xmm1, %xmm2 pxor %xmm3, %xmm5 movdqa %xmm5, %xmm1 psllq $(1), %xmm1 pxor %xmm5, %xmm1 psllq $(5), %xmm1 pxor %xmm5, %xmm1 psllq $(57), %xmm1 movdqa %xmm1, %xmm3 pslldq $(8), %xmm3 psrldq $(8), %xmm1 pxor %xmm3, %xmm5 pxor %xmm1, %xmm2 movdqa %xmm5, %xmm3 psrlq $(5), %xmm3 pxor %xmm5, %xmm3 psrlq $(1), %xmm3 pxor %xmm5, %xmm3 psrlq $(1), %xmm3 pxor %xmm3, %xmm5 pxor %xmm2, %xmm5 pshufd $(78), %xmm6, %xmm3 pshufd $(78), %xmm0, %xmm1 pxor %xmm6, %xmm3 pxor %xmm0, %xmm1 pclmulqdq $(0), %xmm1, %xmm3 movdqa %xmm6, %xmm2 pclmulqdq $(0), %xmm0, %xmm6 pxor %xmm1, %xmm1 pclmulqdq $(17), %xmm0, %xmm2 pxor %xmm6, %xmm3 pxor %xmm2, %xmm3 palignr $(8), %xmm3, %xmm1 pslldq $(8), %xmm3 pxor %xmm1, %xmm2 pxor %xmm3, %xmm6 movdqa %xmm6, %xmm1 psllq $(1), %xmm1 pxor %xmm6, %xmm1 psllq $(5), %xmm1 pxor %xmm6, %xmm1 psllq $(57), %xmm1 movdqa %xmm1, %xmm3 pslldq $(8), %xmm3 psrldq $(8), %xmm1 pxor %xmm3, %xmm6 pxor %xmm1, %xmm2 movdqa %xmm6, %xmm3 psrlq $(5), %xmm3 pxor %xmm6, %xmm3 psrlq $(1), %xmm3 pxor %xmm6, %xmm3 psrlq $(1), %xmm3 pxor %xmm3, %xmm6 pxor %xmm2, %xmm6 pshufd $(78), %xmm7, %xmm3 pshufd $(78), %xmm0, %xmm1 pxor %xmm7, %xmm3 pxor %xmm0, %xmm1 pclmulqdq $(0), %xmm1, %xmm3 movdqa %xmm7, %xmm2 pclmulqdq $(0), %xmm0, %xmm7 pxor %xmm1, %xmm1 pclmulqdq $(17), %xmm0, %xmm2 pxor %xmm7, %xmm3 pxor %xmm2, %xmm3 palignr $(8), %xmm3, %xmm1 pslldq $(8), %xmm3 pxor %xmm1, %xmm2 pxor %xmm3, %xmm7 movdqa %xmm7, %xmm1 psllq $(1), %xmm1 pxor %xmm7, %xmm1 psllq $(5), %xmm1 pxor %xmm7, %xmm1 psllq $(57), %xmm1 movdqa %xmm1, %xmm3 pslldq $(8), %xmm3 psrldq $(8), %xmm1 pxor %xmm3, %xmm7 pxor %xmm1, %xmm2 movdqa %xmm7, %xmm3 psrlq $(5), %xmm3 pxor %xmm7, %xmm3 psrlq $(1), %xmm3 pxor %xmm7, %xmm3 psrlq $(1), %xmm3 pxor %xmm3, %xmm7 pxor %xmm2, %xmm7 movdqa %xmm4, (32)(%ebx) movdqa %xmm5, (48)(%ebx) movdqa %xmm6, (64)(%ebx) movdqa %xmm7, (80)(%ebx) movdqa (%ebx), %xmm0 subl $(64), (128)(%ebx) jge .Lblks4_loopgas_5 .Lcombine_hashgas_5: pshufd $(78), %xmm4, %xmm3 pshufd $(78), %xmm0, %xmm1 pxor %xmm4, %xmm3 pxor %xmm0, %xmm1 pclmulqdq $(0), %xmm1, %xmm3 movdqa %xmm4, %xmm2 pclmulqdq $(0), %xmm0, %xmm4 pxor %xmm1, %xmm1 pclmulqdq $(17), %xmm0, %xmm2 pxor %xmm4, %xmm3 pxor %xmm2, %xmm3 palignr $(8), %xmm3, %xmm1 pslldq $(8), %xmm3 pxor %xmm1, %xmm2 pxor %xmm3, %xmm4 movdqa %xmm4, %xmm1 psllq $(1), %xmm1 pxor %xmm4, %xmm1 psllq $(5), %xmm1 pxor %xmm4, %xmm1 psllq $(57), %xmm1 movdqa %xmm1, %xmm3 pslldq $(8), %xmm3 psrldq $(8), %xmm1 pxor %xmm3, %xmm4 pxor %xmm1, %xmm2 movdqa %xmm4, %xmm3 psrlq $(5), %xmm3 pxor %xmm4, %xmm3 psrlq $(1), %xmm3 pxor %xmm4, %xmm3 psrlq $(1), %xmm3 pxor %xmm3, %xmm4 pxor %xmm2, %xmm4 movdqa (16)(%eax), %xmm0 pshufd $(78), %xmm5, %xmm3 pshufd $(78), %xmm0, %xmm1 pxor %xmm5, %xmm3 pxor %xmm0, %xmm1 pclmulqdq $(0), %xmm1, %xmm3 movdqa %xmm5, %xmm2 pclmulqdq $(0), %xmm0, %xmm5 pxor %xmm1, %xmm1 pclmulqdq $(17), %xmm0, %xmm2 pxor %xmm5, %xmm3 pxor %xmm2, %xmm3 palignr $(8), %xmm3, %xmm1 pslldq $(8), %xmm3 pxor %xmm1, %xmm2 pxor %xmm3, %xmm5 movdqa %xmm5, %xmm1 psllq $(1), %xmm1 pxor %xmm5, %xmm1 psllq $(5), %xmm1 pxor %xmm5, %xmm1 psllq $(57), %xmm1 movdqa %xmm1, %xmm3 pslldq $(8), %xmm3 psrldq $(8), %xmm1 pxor %xmm3, %xmm5 pxor %xmm1, %xmm2 movdqa %xmm5, %xmm3 psrlq $(5), %xmm3 pxor %xmm5, %xmm3 psrlq $(1), %xmm3 pxor %xmm5, %xmm3 psrlq $(1), %xmm3 pxor %xmm3, %xmm5 pxor %xmm2, %xmm5 movdqa (%eax), %xmm0 pshufd $(78), %xmm6, %xmm3 pshufd $(78), %xmm0, %xmm1 pxor %xmm6, %xmm3 pxor %xmm0, %xmm1 pclmulqdq $(0), %xmm1, %xmm3 movdqa %xmm6, %xmm2 pclmulqdq $(0), %xmm0, %xmm6 pxor %xmm1, %xmm1 pclmulqdq $(17), %xmm0, %xmm2 pxor %xmm6, %xmm3 pxor %xmm2, %xmm3 palignr $(8), %xmm3, %xmm1 pslldq $(8), %xmm3 pxor %xmm1, %xmm2 pxor %xmm3, %xmm6 movdqa %xmm6, %xmm1 psllq $(1), %xmm1 pxor %xmm6, %xmm1 psllq $(5), %xmm1 pxor %xmm6, %xmm1 psllq $(57), %xmm1 movdqa %xmm1, %xmm3 pslldq $(8), %xmm3 psrldq $(8), %xmm1 pxor %xmm3, %xmm6 pxor %xmm1, %xmm2 movdqa %xmm6, %xmm3 psrlq $(5), %xmm3 pxor %xmm6, %xmm3 psrlq $(1), %xmm3 pxor %xmm6, %xmm3 psrlq $(1), %xmm3 pxor %xmm3, %xmm6 pxor %xmm2, %xmm6 pxor %xmm5, %xmm7 pxor %xmm6, %xmm7 pshufd $(78), %xmm7, %xmm3 pshufd $(78), %xmm0, %xmm1 pxor %xmm7, %xmm3 pxor %xmm0, %xmm1 pclmulqdq $(0), %xmm1, %xmm3 movdqa %xmm7, %xmm2 pclmulqdq $(0), %xmm0, %xmm7 pxor %xmm1, %xmm1 pclmulqdq $(17), %xmm0, %xmm2 pxor %xmm7, %xmm3 pxor %xmm2, %xmm3 palignr $(8), %xmm3, %xmm1 pslldq $(8), %xmm3 pxor %xmm1, %xmm2 pxor %xmm3, %xmm7 movdqa %xmm7, %xmm1 psllq $(1), %xmm1 pxor %xmm7, %xmm1 psllq $(5), %xmm1 pxor %xmm7, %xmm1 psllq $(57), %xmm1 movdqa %xmm1, %xmm3 pslldq $(8), %xmm3 psrldq $(8), %xmm1 pxor %xmm3, %xmm7 pxor %xmm1, %xmm2 movdqa %xmm7, %xmm3 psrlq $(5), %xmm3 pxor %xmm7, %xmm3 psrlq $(1), %xmm3 pxor %xmm7, %xmm3 psrlq $(1), %xmm3 pxor %xmm3, %xmm7 pxor %xmm2, %xmm7 pxor %xmm4, %xmm7 movdqa %xmm7, (32)(%ebx) .Lsingle_block_procgas_5: cmpl $(0), (132)(%ebx) jz .Lquitgas_5 .p2align 4, 0x90 .Lblk_loopgas_5: movdqa (%ebx), %xmm0 movdqa %xmm0, %xmm1 paddd (112)(%ebx), %xmm1 movdqa %xmm1, (%ebx) movdqa (%ecx), %xmm0 lea (16)(%ecx), %eax pshufb (96)(%ebx), %xmm1 pxor %xmm0, %xmm1 movdqa (%eax), %xmm0 add $(16), %eax movl (24)(%ebp), %edx sub $(1), %edx .p2align 4, 0x90 .Lcipher_loopgas_5: aesenc %xmm0, %xmm1 movdqa (%eax), %xmm0 add $(16), %eax dec %edx jnz .Lcipher_loopgas_5 aesenclast %xmm0, %xmm1 movdqa (16)(%ebx), %xmm0 movdqa %xmm1, (16)(%ebx) movdqu (%esi), %xmm1 add $(16), %esi pxor %xmm1, %xmm0 movdqu %xmm0, (%edi) add $(16), %edi movl (44)(%ebp), %eax pshufb (96)(%ebx), %xmm1 pxor (32)(%ebx), %xmm1 movdqa (%eax), %xmm0 pshufd $(78), %xmm1, %xmm4 pshufd $(78), %xmm0, %xmm2 pxor %xmm1, %xmm4 pxor %xmm0, %xmm2 pclmulqdq $(0), %xmm2, %xmm4 movdqa %xmm1, %xmm3 pclmulqdq $(0), %xmm0, %xmm1 pxor %xmm2, %xmm2 pclmulqdq $(17), %xmm0, %xmm3 pxor %xmm1, %xmm4 pxor %xmm3, %xmm4 palignr $(8), %xmm4, %xmm2 pslldq $(8), %xmm4 pxor %xmm2, %xmm3 pxor %xmm4, %xmm1 movdqa %xmm1, %xmm2 psllq $(1), %xmm2 pxor %xmm1, %xmm2 psllq $(5), %xmm2 pxor %xmm1, %xmm2 psllq $(57), %xmm2 movdqa %xmm2, %xmm4 pslldq $(8), %xmm4 psrldq $(8), %xmm2 pxor %xmm4, %xmm1 pxor %xmm2, %xmm3 movdqa %xmm1, %xmm4 psrlq $(5), %xmm4 pxor %xmm1, %xmm4 psrlq $(1), %xmm4 pxor %xmm1, %xmm4 psrlq $(1), %xmm4 pxor %xmm4, %xmm1 pxor %xmm3, %xmm1 movdqa %xmm1, (32)(%ebx) subl $(16), (132)(%ebx) jg .Lblk_loopgas_5 .Lquitgas_5: movdqa (96)(%ebx), %xmm4 movdqa (%ebx), %xmm0 movdqa (16)(%ebx), %xmm1 movdqa (32)(%ebx), %xmm2 movl (36)(%ebp), %eax movl (40)(%ebp), %ecx movl (32)(%ebp), %edx pshufb %xmm4, %xmm0 movdqu %xmm0, (%eax) movdqu %xmm1, (%ecx) pshufb %xmm4, %xmm2 movdqu %xmm2, (%edx) add $(152), %esp pop %edi pop %esi pop %ebx pop %ebp ret .Lfe5: .size p8_AesGcmDec_avx, .Lfe5-(p8_AesGcmDec_avx)
30.836656
80
0.440601
7b50271313a712570eda088e54d84582094eb2c4
384
asm
Assembly
oeis/019/A019438.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/019/A019438.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/019/A019438.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A019438: Squarefree orders of elements of Mathieu group M_23. ; Submitted by Jon Maiga ; 1,2,3,5,6,7,11,14,15,23 mov $4,$0 mov $6,$0 lpb $4 mov $0,$6 mov $3,0 sub $4,1 sub $0,$4 mov $2,1 lpb $0 mov $2,$0 seq $2,112282 ; a(n) = (-1)^n*(2*n+1) (mod 9). add $3,$2 mov $0,$3 mov $7,$2 cmp $7,0 add $2,$7 lpe add $5,$2 lpe mov $0,$5 add $0,1
14.769231
63
0.518229
fe29627b3fbdb4f48d829e8eaf9a813bc9a7d34c
48
asm
Assembly
gfx/pokemon/misdreavus/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
gfx/pokemon/misdreavus/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
gfx/pokemon/misdreavus/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
frame 1, 18 frame 2, 13 frame 3, 13 endanim
9.6
12
0.645833
e8a0f2a43023447cfea02e872e82a91bae8359ea
8,024
asm
Assembly
Transynther/x86/_processed/NONE/_zr_xt_/i9-9900K_12_0xa0_notsx.log_21829_1764.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_xt_/i9-9900K_12_0xa0_notsx.log_21829_1764.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_xt_/i9-9900K_12_0xa0_notsx.log_21829_1764.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r8 push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x77dc, %r10 sub %r8, %r8 vmovups (%r10), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $0, %xmm6, %r13 nop nop nop nop nop and $25520, %r11 lea addresses_WC_ht+0x1bebc, %rsi lea addresses_A_ht+0x1529c, %rdi nop nop nop nop add $45989, %r10 mov $9, %rcx rep movsq nop nop nop nop nop and %r11, %r11 lea addresses_D_ht+0x1e0dc, %r13 nop nop nop nop nop inc %r8 mov (%r13), %r10w nop nop and %r11, %r11 lea addresses_UC_ht+0x74dc, %rsi lea addresses_normal_ht+0xbadc, %rdi nop nop cmp %rbx, %rbx mov $94, %rcx rep movsl nop nop nop nop nop xor %rsi, %rsi lea addresses_WT_ht+0x122fc, %rbx cmp %rcx, %rcx mov (%rbx), %esi nop inc %rcx lea addresses_D_ht+0x7cdc, %rcx nop and $15061, %r13 mov (%rcx), %r8w nop add %rsi, %rsi lea addresses_WC_ht+0x19cdc, %r11 nop and $52015, %rsi movb (%r11), %cl nop and %r10, %r10 lea addresses_D_ht+0x105dc, %r11 clflush (%r11) nop nop nop xor $14868, %rbx mov $0x6162636465666768, %r8 movq %r8, %xmm5 vmovups %ymm5, (%r11) nop nop nop add $51146, %r8 lea addresses_WC_ht+0x1d2dc, %r10 nop xor $39383, %rdi mov (%r10), %r11w nop nop nop sub %rsi, %rsi lea addresses_UC_ht+0x115c, %r8 sub $60339, %rsi mov (%r8), %r13 nop nop nop cmp %rdi, %rdi lea addresses_WC_ht+0x1e42, %rsi lea addresses_WC_ht+0x16b3c, %rdi nop xor $54170, %r10 mov $71, %rcx rep movsb nop nop nop inc %r10 lea addresses_A_ht+0x104dc, %rsi lea addresses_D_ht+0x64dc, %rdi nop nop dec %r10 mov $31, %rcx rep movsl nop nop nop xor $41467, %rbx lea addresses_WT_ht+0x2ae, %rsi lea addresses_normal_ht+0x114dc, %rdi clflush (%rdi) nop nop nop xor $45128, %r10 mov $44, %rcx rep movsl and %rsi, %rsi lea addresses_normal_ht+0x1887c, %r8 nop nop nop nop nop cmp $10277, %rbx movups (%r8), %xmm0 vpextrq $1, %xmm0, %r11 nop nop sub %rcx, %rcx lea addresses_D_ht+0xd8ca, %r8 nop nop nop cmp %r10, %r10 mov (%r8), %si nop nop nop sub %rbx, %rbx pop %rsi pop %rdi pop %rcx pop %rbx pop %r8 pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %rbx push %rcx push %rdi push %rsi // Store lea addresses_WT+0x775c, %r14 nop nop nop nop nop and %rbx, %rbx mov $0x5152535455565758, %rcx movq %rcx, %xmm1 movups %xmm1, (%r14) nop nop nop nop nop and $25339, %r14 // Faulty Load lea addresses_A+0xc4dc, %r14 cmp $40358, %rsi movb (%r14), %cl lea oracles, %r11 and $0xff, %rcx shlq $12, %rcx mov (%r11,%rcx,1), %rcx pop %rsi pop %rdi pop %rcx pop %rbx pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 7}} [Faulty Load] {'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 5}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 5}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 9}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 9}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 7}} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}} {'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 5}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} {'35': 21828, '00': 1} 00 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 */
33.433333
2,999
0.65491
d5f6307ef7b9e2a91be6f6ed17469ea7bc9e659d
4,281
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_456.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_456.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_456.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 %r8 push %r9 push %rax push %rsi lea addresses_WT_ht+0x10efc, %rsi xor $63533, %r9 movw $0x6162, (%rsi) nop nop sub %r8, %r8 pop %rsi pop %rax pop %r9 pop %r8 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r15 push %r8 push %rbp push %rcx push %rdi // Store lea addresses_D+0xd6e8, %rcx nop nop xor $37588, %rbp movw $0x5152, (%rcx) nop nop nop nop nop and %rbp, %rbp // Faulty Load lea addresses_RW+0x17848, %rcx nop nop nop nop nop xor $46447, %r8 movups (%rcx), %xmm5 vpextrq $1, %xmm5, %rbp lea oracles, %r13 and $0xff, %rbp shlq $12, %rbp mov (%r13,%rbp,1), %rbp pop %rdi pop %rcx pop %rbp pop %r8 pop %r15 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 2, 'same': False, 'type': 'addresses_D'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
55.597403
2,999
0.659893
48996588a116b3af2648159a79ec5367a091a979
830
asm
Assembly
procedures/sum.asm
urandu/assembly-language
368756ce3e48d825b6e4d8845528955f1c909d85
[ "Apache-2.0" ]
null
null
null
procedures/sum.asm
urandu/assembly-language
368756ce3e48d825b6e4d8845528955f1c909d85
[ "Apache-2.0" ]
null
null
null
procedures/sum.asm
urandu/assembly-language
368756ce3e48d825b6e4d8845528955f1c909d85
[ "Apache-2.0" ]
null
null
null
section .text global _start ;must be declared for using gcc _start: ;tell linker entry point mov ecx,'4' sub ecx, '0' mov edx, '5' sub edx, '0' call sum ;call sum procedure mov [res], eax mov ecx, msg mov edx, len mov ebx,1 ;file descriptor (stdout) mov eax,4 ;system call number (sys_write) int 0x80 ;call kernel mov ecx, res mov edx, 1 mov ebx, 1 ;file descriptor (stdout) mov eax, 4 ;system call number (sys_write) int 0x80 ;call kernel mov eax,1 ;system call number (sys_exit) int 0x80 ;call kernel sum: mov eax, ecx add eax, edx add eax, '0' ret section .data msg db "The sum is:", 0xA,0xD len equ $- msg segment .bss res resb 1
21.842105
55
0.549398
89dadbc810fe797dcb87b8dfac5b4c932bdab7dd
1,353
asm
Assembly
ArmPkg/Library/CompilerIntrinsicsLib/Arm/ldivmod.asm
James992927108/uEFI_Edk2_Practice
2cac7618dfee10bfa5104a2e167c85425fde0100
[ "BSD-2-Clause" ]
1
2020-05-10T09:43:50.000Z
2020-05-10T09:43:50.000Z
ArmPkg/Library/CompilerIntrinsicsLib/Arm/ldivmod.asm
James992927108/uEFI_Edk2_Practice
2cac7618dfee10bfa5104a2e167c85425fde0100
[ "BSD-2-Clause" ]
null
null
null
ArmPkg/Library/CompilerIntrinsicsLib/Arm/ldivmod.asm
James992927108/uEFI_Edk2_Practice
2cac7618dfee10bfa5104a2e167c85425fde0100
[ "BSD-2-Clause" ]
null
null
null
//------------------------------------------------------------------------------ // // Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR> // // This program and the accompanying materials // are licensed and made available under the terms and conditions of the BSD License // which accompanies this distribution. The full text of the license may be found at // http://opensource.org/licenses/bsd-license.php // // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. // //------------------------------------------------------------------------------ EXTERN __aeabi_uldivmod INCLUDE AsmMacroExport.inc ; ;UINT32 ;EFIAPI ;__aeabi_uidivmode ( ; IN UINT32 Dividen ; IN UINT32 Divisor ; ); ; RVCT_ASM_EXPORT __aeabi_ldivmod PUSH {r4,lr} ASRS r4,r1,#1 EOR r4,r4,r3,LSR #1 BPL L_Test1 RSBS r0,r0,#0 RSC r1,r1,#0 L_Test1 TST r3,r3 BPL L_Test2 RSBS r2,r2,#0 RSC r3,r3,#0 L_Test2 BL __aeabi_uldivmod ; TST r4,#0x40000000 BEQ L_Test3 RSBS r0,r0,#0 RSC r1,r1,#0 L_Test3 TST r4,#0x80000000 BEQ L_Exit RSBS r2,r2,#0 RSC r3,r3,#0 L_Exit POP {r4,pc} END
23.327586
85
0.546194
c1ea9c7f61abd226c0e5d93e57fc147a686210ac
147
asm
Assembly
libsrc/_DEVELOPMENT/math/float/am9511/c/sdcc/cam32_sdcc_sinh.asm
dikdom/z88dk
40c55771062b0ea9bb2f0d5b73e2f754fc12b6b0
[ "ClArtistic" ]
1
2022-03-08T11:55:58.000Z
2022-03-08T11:55:58.000Z
libsrc/_DEVELOPMENT/math/float/am9511/c/sdcc/cam32_sdcc_sinh.asm
dikdom/z88dk
40c55771062b0ea9bb2f0d5b73e2f754fc12b6b0
[ "ClArtistic" ]
2
2022-03-20T22:17:35.000Z
2022-03-24T16:10:00.000Z
libsrc/_DEVELOPMENT/math/float/am9511/c/sdcc/cam32_sdcc_sinh.asm
jorgegv/z88dk
127130cf11f9ff268ba53e308138b12d2b9be90a
[ "ClArtistic" ]
null
null
null
SECTION code_fp_am9511 PUBLIC cam32_sdcc_sinh EXTERN asm_sdcc_read1, _am9511_sinh .cam32_sdcc_sinh call asm_sdcc_read1 jp _am9511_sinh
13.363636
35
0.823129
5e90a06f3bcf0ca89f80ab07fd1a4fe6ef2540be
1,587
asm
Assembly
base/mvdm/dos/v86/cmd/command/comseg.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
base/mvdm/dos/v86/cmd/command/comseg.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
base/mvdm/dos/v86/cmd/command/comseg.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; */ ; The following are all of the segments used in the load order ; ;SR; We switch the order of the CODE and DATA segments since we will have to ;move the CODE segment for HIMEM COMMAND ; DATARES segment public byte ; resident data DATARES ends ; ;Dummy segment to align the code segment on a paragraph boundary ; DUMMY segment public para DUMMY ENDS CODERES segment public byte ; resident code CODERES ends ;SR; ;No environment segments ; ;;ENVARENA segment public para ; space for DOS ALLOCATE header ;;ENVARENA ends ;;ENVIRONMENT segment public para ; default COMMAND environment ;;ENVIRONMENT ends INIT segment public para ; initialization code INIT ends TAIL segment public para ; end of init - start of transient TAIL ends TRANCODE segment public byte ; transient code TRANCODE ends TRANDATA segment public byte ; transient data area TRANDATA ends TRANSPACE segment public byte ; transient modifiable data area TRANSPACE ends TRANTAIL segment public para ; end of transient TRANTAIL ends ;SR; ; We still keep the CODE and DATA in a group. This is to make addressability ;easy during init. This will not work for COMMAND in ROM but it is fine for ;HIMEM COMMAND. However, the resident code will not refer to any data using ;RESGROUP ; RESGROUP group CODERES,DATARES,INIT,TAIL TRANGROUP group TRANCODE,TRANDATA,TRANSPACE,TRANTAIL 
26.016393
78
0.715186
9e4233e315e3fbcc90072f386eba256cc777e39d
971
asm
Assembly
apu/channel_3/channel_3_shift_skip_delay.asm
endrift/SameSuite
89ffe653cdd888385935fe9a2f1062d2dcc18cdb
[ "MIT" ]
21
2018-09-09T01:49:32.000Z
2022-03-22T20:49:05.000Z
apu/channel_3/channel_3_shift_skip_delay.asm
mattcurrie/SameSuite
ab8d88e5606928060fe84b07c85a4d05edce3bca
[ "MIT" ]
3
2020-10-18T16:33:08.000Z
2021-09-04T10:58:51.000Z
apu/channel_3/channel_3_shift_skip_delay.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 1 include "base.inc" ; This test verifies the delay cannot be skipped or shortened by ; modifying the shift value. CorrectResults: db $00, $00, $00, $00, $00, $0E, $0E, $0E SubTest: MACRO xor a ldh [rNR52], a cpl ld hl, $ff31 ldh [rNR52], a REPT 15 ldi [hl], a ENDR ld a, $de ld [$ff30], a ld hl, rPCM34 ldh [rNR30], a ldh [rNR32], a ld a, $87 ldh [rNR34], a ld a, $20 ldh [rNR32], a nops \1 - 5 ld a, [hl] call StoreResult ENDM RunTest: ld de, $c000 ld a, 1 ldh [rKEY1], a stop ; Wave length is $2000 T-Cycles, so each sample is $100 T-Cycles long SubTest $0FC SubTest $0FD SubTest $0FE SubTest $0FF SubTest $100 SubTest $101 SubTest $102 SubTest $103 ret StoreResult:: ld [de], a inc de ret CGB_MODE
14.492537
73
0.530381
2243c4fec58067add164c471d9e963a910d5da8c
5,600
asm
Assembly
Flag.asm
mariahassan54/Super-Mario-Game-in-Assembly-Language
1e037e9acdd9e2bd172c9c2f928a546e5b53a36e
[ "MIT" ]
null
null
null
Flag.asm
mariahassan54/Super-Mario-Game-in-Assembly-Language
1e037e9acdd9e2bd172c9c2f928a546e5b53a36e
[ "MIT" ]
null
null
null
Flag.asm
mariahassan54/Super-Mario-Game-in-Assembly-Language
1e037e9acdd9e2bd172c9c2f928a546e5b53a36e
[ "MIT" ]
null
null
null
.model small .stack 120h .data skin DB 14d color1 byte 15d ;white color color2 byte 02d ;green color unique byte 13d .code main proc mov AX, @data mov DS, AX mov AX, 0 mov ah, 0 mov al, 13H int 10h mov CX, 160d mov DX, 100d push CX mov ah, 0ch add CX,15 mov al,color1 int 10h pop CX push CX dec DX add CX,14 int 10h inc CX int 10h pop CX push CX dec DX add CX,13 int 10h inc CX int 10h inc CX int 10h pop CX push CX dec DX add CX,12 int 10h inc CX int 10h inc CX int 10h inc CX int 10h pop CX push CX dec DX add CX,11 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h pop CX push CX dec DX add CX,10 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h pop CX push CX dec DX add CX,9 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h pop CX push CX dec DX add CX,8 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h pop CX push CX dec DX add CX,7 int 10h inc CX int 10h inc CX int 10h inc CX mov al,color2 int 10h inc CX int 10h inc CX int 10h inc CX mov al,color1 int 10h inc CX int 10h inc CX int 10h pop CX push CX dec DX add CX,6 int 10h inc CX int 10h inc CX mov al,color2 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX mov al,color1 int 10h pop CX push CX dec DX add CX,5 mov al,color1 int 10h inc CX int 10h inc CX int 10h inc CX mov al,color2 int 10h inc CX int 10h inc CX int 10h inc CX mov al,color1 int 10h inc CX mov al,color2 int 10h inc CX int 10h inc CX int 10h inc CX mov al,color1 int 10h inc CX pop CX push CX dec DX add CX,4 mov al,color1 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX mov al,color2 int 10h inc CX mov al,color1 int 10h inc CX mov al,color2 int 10h inc CX int 10h inc CX int 10h inc CX mov al,color1 int 10h inc CX mov al,color2 int 10h inc CX mov al,color1 int 10h inc CX pop CX push CX dec DX add CX,3 mov al,color1 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX mov al,color2 int 10h inc CX mov al,color1 int 10h inc CX int 10h inc CX mov al,color2 int 10h inc CX mov al,color1 int 10h inc CX int 10h inc CX mov al,color2 int 10h inc CX mov al,color1 int 10h inc CX pop CX push CX dec DX add CX,2 mov al,color1 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX mov al,color2 int 10h inc CX int 10h inc CX mov al,color1 int 10h inc CX mov al,color2 int 10h inc CX mov al,color1 int 10h inc CX mov al,color2 int 10h inc CX int 10h inc CX mov al,color1 int 10h inc CX pop CX push CX dec DX add CX,1 mov al,color1 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX mov al,color2 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX mov al,color1 int 10h inc CX int 10h inc CX pop CX push CX dec DX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h Exit: mov ah, 04ch int 21h main endp end
12.669683
44
0.421071
59582a7b32c90712caf9c58e6ed4c78928942312
803
asm
Assembly
oeis/295/A295718.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/295/A295718.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/295/A295718.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A295718: a(n) = a(n-1) + 3*a(n-2) -2*a(n-3) - 2*a(n-4), where a(0) = 1, a(1) = 3, a(2) = 4, a(3) = 5. ; Submitted by Jon Maiga ; 1,3,4,5,9,10,19,21,40,45,85,98,183,217,400,489,889,1122,2011,2621,4632,6229,10861,15042,25903,36849,62752,91409,154161,229186,383347,579765,963112,1477341,2440453,3786722,6227175,9751753,15978928,25206393,41185321,65343138,106528459,169774445,276302904,441883045,718185949,1151680386,1869866335,3004769505,4874635840,7845850913,12720486753,20499228802,33219715555,53584726629,86804442184,140120733357,226925175541,366509037986,593434213527,958869509689,1552303723216,2509025749257,4061329472473 mov $1,1 mov $2,1 mov $4,1 lpb $0 sub $0,1 sub $3,$4 mov $5,$1 add $1,$3 mov $3,$4 mov $4,$2 mov $2,$3 mul $2,2 add $5,$4 mov $3,$5 lpe add $5,$4 mov $0,$5
36.5
496
0.712329
33f6b0dbe5aa8a2e1051881a1a411946ccad4487
6,384
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_21829_642.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_21829_642.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_21829_642.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %r15 push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x1dbc8, %r14 clflush (%r14) nop nop nop dec %r13 mov (%r14), %r10d nop nop add %r15, %r15 lea addresses_UC_ht+0x17d34, %rsi lea addresses_WC_ht+0x18ac8, %rdi nop nop nop add %rdx, %rdx mov $103, %rcx rep movsl nop nop nop nop nop and %r14, %r14 lea addresses_WC_ht+0x18e48, %rsi lea addresses_normal_ht+0x9734, %rdi sub $58725, %r13 mov $14, %rcx rep movsb nop nop nop sub $4897, %rcx lea addresses_WC_ht+0x9dc8, %rcx clflush (%rcx) nop nop nop nop add %rdi, %rdi mov (%rcx), %edx nop nop xor $62387, %rdi lea addresses_WC_ht+0x15df8, %r14 nop nop nop nop nop cmp $58861, %rsi mov $0x6162636465666768, %r15 movq %r15, (%r14) nop nop nop nop and %rdi, %rdi lea addresses_UC_ht+0xb410, %r13 nop cmp $31829, %rdx movw $0x6162, (%r13) nop nop add %rcx, %rcx lea addresses_D_ht+0x783c, %rsi lea addresses_UC_ht+0x11c8, %rdi add $64528, %r15 mov $32, %rcx rep movsb cmp $15087, %r10 lea addresses_WT_ht+0x133c8, %r15 inc %rcx movl $0x61626364, (%r15) nop cmp $48393, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %r15 pop %r14 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r15 push %r9 push %rax push %rdi push %rsi // Store lea addresses_PSE+0x153c8, %rsi nop cmp $50339, %rax movl $0x51525354, (%rsi) nop nop nop nop dec %rax // Store lea addresses_D+0x1b848, %rdi mfence movl $0x51525354, (%rdi) nop sub $2166, %r12 // Faulty Load lea addresses_PSE+0x153c8, %rdi nop nop sub $43871, %r13 movb (%rdi), %r12b lea oracles, %r9 and $0xff, %r12 shlq $12, %r12 mov (%r9,%r12,1), %r12 pop %rsi pop %rdi pop %rax pop %r9 pop %r15 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_PSE', 'same': True, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 7}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_PSE', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 7}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 7}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 2}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 2}, 'dst': {'same': True, 'type': 'addresses_UC_ht', 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'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 */
38.926829
2,999
0.658365
ceac92eb820af6ad44a8d9df72d73a9d28e84d9f
774
asm
Assembly
oeis/242/A242091.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/242/A242091.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/242/A242091.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A242091: a(n) = r * (n-1)! where r is the rational number that satisfies the equation Sum_{k>=n} (-1)^(k + n)/C(k,n) = n*2^(n-1)*log(2) - r. ; Submitted by Jamie Morken(s3) ; 0,2,15,128,1310,15864,222936,3572736,64354608,1287495360,28328889600,679936896000,17678878214400,495015296025600,14850552286080000,475219068007219200,16157470542709708800,581669316147767500800,22103440771676298854400,884137758914526068736000,37133788428957203472384000,1633886744397961132670976000,75158791417397882052182016000,3607622015011115805167321088000,180381101396856208730490470400000,9379817288768181299049729884160000,506510134012284461318622035312640000 mov $2,1 mov $3,$0 lpb $3 mul $1,$3 mov $4,$3 mul $4,2 add $4,2 mul $2,$4 add $1,$2 sub $3,1 lpe div $1,2 mov $0,$1
43
467
0.784238
26b0ae7e71138505b06137093fba6bffd3d2ed7b
77,717
asm
Assembly
oscomp/build/asm/test_echo.asm
wei-huan/MyOS
0592dd73fd9768a9a69975f7d18c758999195774
[ "MIT" ]
2
2022-02-21T08:37:46.000Z
2022-03-03T06:01:47.000Z
oscomp/build/asm/test_echo.asm
wei-huan/MyOS
0592dd73fd9768a9a69975f7d18c758999195774
[ "MIT" ]
null
null
null
oscomp/build/asm/test_echo.asm
wei-huan/MyOS
0592dd73fd9768a9a69975f7d18c758999195774
[ "MIT" ]
null
null
null
/home/weihuan/Documents/testsuits-for-oskernel-preliminary/riscv-syscalls-testing/user/build/riscv64/test_echo: file format elf64-littleriscv Disassembly of section .text: 0000000000001000 <_start>: .section .text.entry .globl _start _start: mv a0, sp 1000: 850a mv a0,sp tail __start_main 1002: a83d j 1040 <__start_main> 0000000000001004 <main>: /* * for execve */ int main(int argc, char *argv[]){ 1004: 1141 addi sp,sp,-16 printf(" I am test_echo.\nexecve success.\n"); 1006: 00001517 auipc a0,0x1 100a: e6250513 addi a0,a0,-414 # 1e68 <__clone+0x28> int main(int argc, char *argv[]){ 100e: e406 sd ra,8(sp) printf(" I am test_echo.\nexecve success.\n"); 1010: 2c4000ef jal ra,12d4 <printf> TEST_END(__func__); 1014: 00001517 auipc a0,0x1 1018: e7c50513 addi a0,a0,-388 # 1e90 <__clone+0x50> 101c: 296000ef jal ra,12b2 <puts> 1020: 00001517 auipc a0,0x1 1024: e9850513 addi a0,a0,-360 # 1eb8 <__func__.0> 1028: 28a000ef jal ra,12b2 <puts> 102c: 00001517 auipc a0,0x1 1030: e7450513 addi a0,a0,-396 # 1ea0 <__clone+0x60> 1034: 27e000ef jal ra,12b2 <puts> return 0; } 1038: 60a2 ld ra,8(sp) 103a: 4501 li a0,0 103c: 0141 addi sp,sp,16 103e: 8082 ret 0000000000001040 <__start_main>: #include <unistd.h> extern int main(); int __start_main(long *p) { 1040: 85aa mv a1,a0 int argc = p[0]; char **argv = (void *)(p+1); exit(main(argc, argv)); 1042: 4108 lw a0,0(a0) { 1044: 1141 addi sp,sp,-16 exit(main(argc, argv)); 1046: 05a1 addi a1,a1,8 { 1048: e406 sd ra,8(sp) exit(main(argc, argv)); 104a: fbbff0ef jal ra,1004 <main> 104e: 40b000ef jal ra,1c58 <exit> return 0; } 1052: 60a2 ld ra,8(sp) 1054: 4501 li a0,0 1056: 0141 addi sp,sp,16 1058: 8082 ret 000000000000105a <printint.constprop.0>: write(f, s, l); } static char digits[] = "0123456789abcdef"; static void printint(int xx, int base, int sign) 105a: 7179 addi sp,sp,-48 105c: f406 sd ra,40(sp) { char buf[16 + 1]; int i; uint x; if (sign && (sign = xx < 0)) 105e: 12054b63 bltz a0,1194 <printint.constprop.0+0x13a> buf[16] = 0; i = 15; do { buf[i--] = digits[x % base]; 1062: 02b577bb remuw a5,a0,a1 1066: 00001617 auipc a2,0x1 106a: e7260613 addi a2,a2,-398 # 1ed8 <digits> buf[16] = 0; 106e: 00010c23 sb zero,24(sp) buf[i--] = digits[x % base]; 1072: 0005871b sext.w a4,a1 1076: 1782 slli a5,a5,0x20 1078: 9381 srli a5,a5,0x20 107a: 97b2 add a5,a5,a2 107c: 0007c783 lbu a5,0(a5) } while ((x /= base) != 0); 1080: 02b5583b divuw a6,a0,a1 buf[i--] = digits[x % base]; 1084: 00f10ba3 sb a5,23(sp) } while ((x /= base) != 0); 1088: 1cb56363 bltu a0,a1,124e <printint.constprop.0+0x1f4> buf[i--] = digits[x % base]; 108c: 45b9 li a1,14 108e: 02e877bb remuw a5,a6,a4 1092: 1782 slli a5,a5,0x20 1094: 9381 srli a5,a5,0x20 1096: 97b2 add a5,a5,a2 1098: 0007c783 lbu a5,0(a5) } while ((x /= base) != 0); 109c: 02e856bb divuw a3,a6,a4 buf[i--] = digits[x % base]; 10a0: 00f10b23 sb a5,22(sp) } while ((x /= base) != 0); 10a4: 0ce86e63 bltu a6,a4,1180 <printint.constprop.0+0x126> buf[i--] = digits[x % base]; 10a8: 02e6f5bb remuw a1,a3,a4 } while ((x /= base) != 0); 10ac: 02e6d7bb divuw a5,a3,a4 buf[i--] = digits[x % base]; 10b0: 1582 slli a1,a1,0x20 10b2: 9181 srli a1,a1,0x20 10b4: 95b2 add a1,a1,a2 10b6: 0005c583 lbu a1,0(a1) 10ba: 00b10aa3 sb a1,21(sp) } while ((x /= base) != 0); 10be: 0007859b sext.w a1,a5 10c2: 12e6ec63 bltu a3,a4,11fa <printint.constprop.0+0x1a0> buf[i--] = digits[x % base]; 10c6: 02e7f6bb remuw a3,a5,a4 10ca: 1682 slli a3,a3,0x20 10cc: 9281 srli a3,a3,0x20 10ce: 96b2 add a3,a3,a2 10d0: 0006c683 lbu a3,0(a3) } while ((x /= base) != 0); 10d4: 02e7d83b divuw a6,a5,a4 buf[i--] = digits[x % base]; 10d8: 00d10a23 sb a3,20(sp) } while ((x /= base) != 0); 10dc: 12e5e863 bltu a1,a4,120c <printint.constprop.0+0x1b2> buf[i--] = digits[x % base]; 10e0: 02e876bb remuw a3,a6,a4 10e4: 1682 slli a3,a3,0x20 10e6: 9281 srli a3,a3,0x20 10e8: 96b2 add a3,a3,a2 10ea: 0006c683 lbu a3,0(a3) } while ((x /= base) != 0); 10ee: 02e855bb divuw a1,a6,a4 buf[i--] = digits[x % base]; 10f2: 00d109a3 sb a3,19(sp) } while ((x /= base) != 0); 10f6: 12e86463 bltu a6,a4,121e <printint.constprop.0+0x1c4> buf[i--] = digits[x % base]; 10fa: 02e5f6bb remuw a3,a1,a4 10fe: 1682 slli a3,a3,0x20 1100: 9281 srli a3,a3,0x20 1102: 96b2 add a3,a3,a2 1104: 0006c683 lbu a3,0(a3) } while ((x /= base) != 0); 1108: 02e5d83b divuw a6,a1,a4 buf[i--] = digits[x % base]; 110c: 00d10923 sb a3,18(sp) } while ((x /= base) != 0); 1110: 0ce5ec63 bltu a1,a4,11e8 <printint.constprop.0+0x18e> buf[i--] = digits[x % base]; 1114: 02e876bb remuw a3,a6,a4 1118: 1682 slli a3,a3,0x20 111a: 9281 srli a3,a3,0x20 111c: 96b2 add a3,a3,a2 111e: 0006c683 lbu a3,0(a3) } while ((x /= base) != 0); 1122: 02e855bb divuw a1,a6,a4 buf[i--] = digits[x % base]; 1126: 00d108a3 sb a3,17(sp) } while ((x /= base) != 0); 112a: 10e86963 bltu a6,a4,123c <printint.constprop.0+0x1e2> buf[i--] = digits[x % base]; 112e: 02e5f6bb remuw a3,a1,a4 1132: 1682 slli a3,a3,0x20 1134: 9281 srli a3,a3,0x20 1136: 96b2 add a3,a3,a2 1138: 0006c683 lbu a3,0(a3) } while ((x /= base) != 0); 113c: 02e5d83b divuw a6,a1,a4 buf[i--] = digits[x % base]; 1140: 00d10823 sb a3,16(sp) } while ((x /= base) != 0); 1144: 10e5e763 bltu a1,a4,1252 <printint.constprop.0+0x1f8> buf[i--] = digits[x % base]; 1148: 02e876bb remuw a3,a6,a4 114c: 1682 slli a3,a3,0x20 114e: 9281 srli a3,a3,0x20 1150: 96b2 add a3,a3,a2 1152: 0006c683 lbu a3,0(a3) } while ((x /= base) != 0); 1156: 02e857bb divuw a5,a6,a4 buf[i--] = digits[x % base]; 115a: 00d107a3 sb a3,15(sp) } while ((x /= base) != 0); 115e: 10e86363 bltu a6,a4,1264 <printint.constprop.0+0x20a> buf[i--] = digits[x % base]; 1162: 1782 slli a5,a5,0x20 1164: 9381 srli a5,a5,0x20 1166: 97b2 add a5,a5,a2 1168: 0007c783 lbu a5,0(a5) 116c: 4599 li a1,6 116e: 00f10723 sb a5,14(sp) if (sign) 1172: 00055763 bgez a0,1180 <printint.constprop.0+0x126> buf[i--] = '-'; 1176: 02d00793 li a5,45 117a: 00f106a3 sb a5,13(sp) buf[i--] = digits[x % base]; 117e: 4595 li a1,5 write(f, s, l); 1180: 003c addi a5,sp,8 1182: 4641 li a2,16 1184: 9e0d subw a2,a2,a1 1186: 4505 li a0,1 1188: 95be add a1,a1,a5 118a: 27f000ef jal ra,1c08 <write> i++; if (i < 0) puts("printint error"); out(stdout, buf + i, 16 - i); } 118e: 70a2 ld ra,40(sp) 1190: 6145 addi sp,sp,48 1192: 8082 ret x = -xx; 1194: 40a0083b negw a6,a0 buf[i--] = digits[x % base]; 1198: 02b877bb remuw a5,a6,a1 119c: 00001617 auipc a2,0x1 11a0: d3c60613 addi a2,a2,-708 # 1ed8 <digits> buf[16] = 0; 11a4: 00010c23 sb zero,24(sp) buf[i--] = digits[x % base]; 11a8: 0005871b sext.w a4,a1 11ac: 1782 slli a5,a5,0x20 11ae: 9381 srli a5,a5,0x20 11b0: 97b2 add a5,a5,a2 11b2: 0007c783 lbu a5,0(a5) } while ((x /= base) != 0); 11b6: 02b858bb divuw a7,a6,a1 buf[i--] = digits[x % base]; 11ba: 00f10ba3 sb a5,23(sp) } while ((x /= base) != 0); 11be: 06b86963 bltu a6,a1,1230 <printint.constprop.0+0x1d6> buf[i--] = digits[x % base]; 11c2: 02e8f7bb remuw a5,a7,a4 11c6: 1782 slli a5,a5,0x20 11c8: 9381 srli a5,a5,0x20 11ca: 97b2 add a5,a5,a2 11cc: 0007c783 lbu a5,0(a5) } while ((x /= base) != 0); 11d0: 02e8d6bb divuw a3,a7,a4 buf[i--] = digits[x % base]; 11d4: 00f10b23 sb a5,22(sp) } while ((x /= base) != 0); 11d8: ece8f8e3 bgeu a7,a4,10a8 <printint.constprop.0+0x4e> buf[i--] = '-'; 11dc: 02d00793 li a5,45 11e0: 00f10aa3 sb a5,21(sp) buf[i--] = digits[x % base]; 11e4: 45b5 li a1,13 11e6: bf69 j 1180 <printint.constprop.0+0x126> 11e8: 45a9 li a1,10 if (sign) 11ea: f8055be3 bgez a0,1180 <printint.constprop.0+0x126> buf[i--] = '-'; 11ee: 02d00793 li a5,45 11f2: 00f108a3 sb a5,17(sp) buf[i--] = digits[x % base]; 11f6: 45a5 li a1,9 11f8: b761 j 1180 <printint.constprop.0+0x126> 11fa: 45b5 li a1,13 if (sign) 11fc: f80552e3 bgez a0,1180 <printint.constprop.0+0x126> buf[i--] = '-'; 1200: 02d00793 li a5,45 1204: 00f10a23 sb a5,20(sp) buf[i--] = digits[x % base]; 1208: 45b1 li a1,12 120a: bf9d j 1180 <printint.constprop.0+0x126> 120c: 45b1 li a1,12 if (sign) 120e: f60559e3 bgez a0,1180 <printint.constprop.0+0x126> buf[i--] = '-'; 1212: 02d00793 li a5,45 1216: 00f109a3 sb a5,19(sp) buf[i--] = digits[x % base]; 121a: 45ad li a1,11 121c: b795 j 1180 <printint.constprop.0+0x126> 121e: 45ad li a1,11 if (sign) 1220: f60550e3 bgez a0,1180 <printint.constprop.0+0x126> buf[i--] = '-'; 1224: 02d00793 li a5,45 1228: 00f10923 sb a5,18(sp) buf[i--] = digits[x % base]; 122c: 45a9 li a1,10 122e: bf89 j 1180 <printint.constprop.0+0x126> buf[i--] = '-'; 1230: 02d00793 li a5,45 1234: 00f10b23 sb a5,22(sp) buf[i--] = digits[x % base]; 1238: 45b9 li a1,14 123a: b799 j 1180 <printint.constprop.0+0x126> 123c: 45a5 li a1,9 if (sign) 123e: f40551e3 bgez a0,1180 <printint.constprop.0+0x126> buf[i--] = '-'; 1242: 02d00793 li a5,45 1246: 00f10823 sb a5,16(sp) buf[i--] = digits[x % base]; 124a: 45a1 li a1,8 124c: bf15 j 1180 <printint.constprop.0+0x126> i = 15; 124e: 45bd li a1,15 1250: bf05 j 1180 <printint.constprop.0+0x126> buf[i--] = digits[x % base]; 1252: 45a1 li a1,8 if (sign) 1254: f20556e3 bgez a0,1180 <printint.constprop.0+0x126> buf[i--] = '-'; 1258: 02d00793 li a5,45 125c: 00f107a3 sb a5,15(sp) buf[i--] = digits[x % base]; 1260: 459d li a1,7 1262: bf39 j 1180 <printint.constprop.0+0x126> 1264: 459d li a1,7 if (sign) 1266: f0055de3 bgez a0,1180 <printint.constprop.0+0x126> buf[i--] = '-'; 126a: 02d00793 li a5,45 126e: 00f10723 sb a5,14(sp) buf[i--] = digits[x % base]; 1272: 4599 li a1,6 1274: b731 j 1180 <printint.constprop.0+0x126> 0000000000001276 <getchar>: { 1276: 1101 addi sp,sp,-32 read(stdin, &byte, 1); 1278: 00f10593 addi a1,sp,15 127c: 4605 li a2,1 127e: 4501 li a0,0 { 1280: ec06 sd ra,24(sp) char byte = 0; 1282: 000107a3 sb zero,15(sp) read(stdin, &byte, 1); 1286: 179000ef jal ra,1bfe <read> } 128a: 60e2 ld ra,24(sp) 128c: 00f14503 lbu a0,15(sp) 1290: 6105 addi sp,sp,32 1292: 8082 ret 0000000000001294 <putchar>: { 1294: 1101 addi sp,sp,-32 1296: 87aa mv a5,a0 return write(stdout, &byte, 1); 1298: 00f10593 addi a1,sp,15 129c: 4605 li a2,1 129e: 4505 li a0,1 { 12a0: ec06 sd ra,24(sp) char byte = c; 12a2: 00f107a3 sb a5,15(sp) return write(stdout, &byte, 1); 12a6: 163000ef jal ra,1c08 <write> } 12aa: 60e2 ld ra,24(sp) 12ac: 2501 sext.w a0,a0 12ae: 6105 addi sp,sp,32 12b0: 8082 ret 00000000000012b2 <puts>: { 12b2: 1141 addi sp,sp,-16 12b4: e406 sd ra,8(sp) 12b6: e022 sd s0,0(sp) 12b8: 842a mv s0,a0 r = -(write(stdout, s, strlen(s)) < 0); 12ba: 56a000ef jal ra,1824 <strlen> 12be: 862a mv a2,a0 12c0: 85a2 mv a1,s0 12c2: 4505 li a0,1 12c4: 145000ef jal ra,1c08 <write> } 12c8: 60a2 ld ra,8(sp) 12ca: 6402 ld s0,0(sp) r = -(write(stdout, s, strlen(s)) < 0); 12cc: 957d srai a0,a0,0x3f return r; 12ce: 2501 sext.w a0,a0 } 12d0: 0141 addi sp,sp,16 12d2: 8082 ret 00000000000012d4 <printf>: out(stdout, buf, i); } // Print to the console. only understands %d, %x, %p, %s. void printf(const char *fmt, ...) { 12d4: 7171 addi sp,sp,-176 12d6: fc56 sd s5,56(sp) 12d8: ed3e sd a5,152(sp) buf[i++] = '0'; 12da: 7ae1 lui s5,0xffff8 va_list ap; int cnt = 0, l = 0; char *a, *z, *s = (char *)fmt, str; int f = stdout; va_start(ap, fmt); 12dc: 18bc addi a5,sp,120 { 12de: e8ca sd s2,80(sp) 12e0: e4ce sd s3,72(sp) 12e2: e0d2 sd s4,64(sp) 12e4: f85a sd s6,48(sp) 12e6: f486 sd ra,104(sp) 12e8: f0a2 sd s0,96(sp) 12ea: eca6 sd s1,88(sp) 12ec: fcae sd a1,120(sp) 12ee: e132 sd a2,128(sp) 12f0: e536 sd a3,136(sp) 12f2: e93a sd a4,144(sp) 12f4: f142 sd a6,160(sp) 12f6: f546 sd a7,168(sp) va_start(ap, fmt); 12f8: e03e sd a5,0(sp) for (;;) { if (!*s) break; for (a = s; *s && *s != '%'; s++) 12fa: 02500913 li s2,37 out(f, a, l); if (l) continue; if (s[1] == 0) break; switch (s[1]) 12fe: 07300a13 li s4,115 case 'p': printptr(va_arg(ap, uint64)); break; case 's': if ((a = va_arg(ap, char *)) == 0) a = "(null)"; 1302: 00001b17 auipc s6,0x1 1306: baeb0b13 addi s6,s6,-1106 # 1eb0 <__clone+0x70> buf[i++] = '0'; 130a: 830aca93 xori s5,s5,-2000 buf[i++] = digits[x >> (sizeof(uint64) * 8 - 4)]; 130e: 00001997 auipc s3,0x1 1312: bca98993 addi s3,s3,-1078 # 1ed8 <digits> if (!*s) 1316: 00054783 lbu a5,0(a0) 131a: 16078a63 beqz a5,148e <printf+0x1ba> 131e: 862a mv a2,a0 for (a = s; *s && *s != '%'; s++) 1320: 19278163 beq a5,s2,14a2 <printf+0x1ce> 1324: 00164783 lbu a5,1(a2) 1328: 0605 addi a2,a2,1 132a: fbfd bnez a5,1320 <printf+0x4c> 132c: 84b2 mv s1,a2 l = z - a; 132e: 40a6043b subw s0,a2,a0 write(f, s, l); 1332: 85aa mv a1,a0 1334: 8622 mv a2,s0 1336: 4505 li a0,1 1338: 0d1000ef jal ra,1c08 <write> if (l) 133c: 18041c63 bnez s0,14d4 <printf+0x200> if (s[1] == 0) 1340: 0014c783 lbu a5,1(s1) 1344: 14078563 beqz a5,148e <printf+0x1ba> switch (s[1]) 1348: 1d478063 beq a5,s4,1508 <printf+0x234> 134c: 18fa6663 bltu s4,a5,14d8 <printf+0x204> 1350: 06400713 li a4,100 1354: 1ae78063 beq a5,a4,14f4 <printf+0x220> 1358: 07000713 li a4,112 135c: 1ce79963 bne a5,a4,152e <printf+0x25a> printptr(va_arg(ap, uint64)); 1360: 6702 ld a4,0(sp) buf[i++] = '0'; 1362: 01511423 sh s5,8(sp) write(f, s, l); 1366: 4649 li a2,18 printptr(va_arg(ap, uint64)); 1368: 631c ld a5,0(a4) 136a: 0721 addi a4,a4,8 136c: e03a sd a4,0(sp) for (j = 0; j < (sizeof(uint64) * 2); j++, x <<= 4) 136e: 00479293 slli t0,a5,0x4 1372: 00879f93 slli t6,a5,0x8 1376: 00c79f13 slli t5,a5,0xc 137a: 01079e93 slli t4,a5,0x10 137e: 01479e13 slli t3,a5,0x14 1382: 01879313 slli t1,a5,0x18 1386: 01c79893 slli a7,a5,0x1c 138a: 02479813 slli a6,a5,0x24 138e: 02879513 slli a0,a5,0x28 1392: 02c79593 slli a1,a5,0x2c 1396: 03079693 slli a3,a5,0x30 139a: 03479713 slli a4,a5,0x34 buf[i++] = digits[x >> (sizeof(uint64) * 8 - 4)]; 139e: 03c7d413 srli s0,a5,0x3c 13a2: 01c7d39b srliw t2,a5,0x1c 13a6: 03c2d293 srli t0,t0,0x3c 13aa: 03cfdf93 srli t6,t6,0x3c 13ae: 03cf5f13 srli t5,t5,0x3c 13b2: 03cede93 srli t4,t4,0x3c 13b6: 03ce5e13 srli t3,t3,0x3c 13ba: 03c35313 srli t1,t1,0x3c 13be: 03c8d893 srli a7,a7,0x3c 13c2: 03c85813 srli a6,a6,0x3c 13c6: 9171 srli a0,a0,0x3c 13c8: 91f1 srli a1,a1,0x3c 13ca: 92f1 srli a3,a3,0x3c 13cc: 9371 srli a4,a4,0x3c 13ce: 96ce add a3,a3,s3 13d0: 974e add a4,a4,s3 13d2: 944e add s0,s0,s3 13d4: 92ce add t0,t0,s3 13d6: 9fce add t6,t6,s3 13d8: 9f4e add t5,t5,s3 13da: 9ece add t4,t4,s3 13dc: 9e4e add t3,t3,s3 13de: 934e add t1,t1,s3 13e0: 98ce add a7,a7,s3 13e2: 93ce add t2,t2,s3 13e4: 984e add a6,a6,s3 13e6: 954e add a0,a0,s3 13e8: 95ce add a1,a1,s3 13ea: 0006c083 lbu ra,0(a3) 13ee: 0002c283 lbu t0,0(t0) 13f2: 00074683 lbu a3,0(a4) 13f6: 000fcf83 lbu t6,0(t6) 13fa: 000f4f03 lbu t5,0(t5) 13fe: 000ece83 lbu t4,0(t4) 1402: 000e4e03 lbu t3,0(t3) 1406: 00034303 lbu t1,0(t1) 140a: 0008c883 lbu a7,0(a7) 140e: 0003c383 lbu t2,0(t2) 1412: 00084803 lbu a6,0(a6) 1416: 00054503 lbu a0,0(a0) 141a: 0005c583 lbu a1,0(a1) 141e: 00044403 lbu s0,0(s0) for (j = 0; j < (sizeof(uint64) * 2); j++, x <<= 4) 1422: 03879713 slli a4,a5,0x38 buf[i++] = digits[x >> (sizeof(uint64) * 8 - 4)]; 1426: 9371 srli a4,a4,0x3c 1428: 8bbd andi a5,a5,15 142a: 974e add a4,a4,s3 142c: 97ce add a5,a5,s3 142e: 005105a3 sb t0,11(sp) 1432: 01f10623 sb t6,12(sp) 1436: 01e106a3 sb t5,13(sp) 143a: 01d10723 sb t4,14(sp) 143e: 01c107a3 sb t3,15(sp) 1442: 00610823 sb t1,16(sp) 1446: 011108a3 sb a7,17(sp) 144a: 00710923 sb t2,18(sp) 144e: 010109a3 sb a6,19(sp) 1452: 00a10a23 sb a0,20(sp) 1456: 00b10aa3 sb a1,21(sp) 145a: 00110b23 sb ra,22(sp) 145e: 00d10ba3 sb a3,23(sp) 1462: 00810523 sb s0,10(sp) 1466: 00074703 lbu a4,0(a4) 146a: 0007c783 lbu a5,0(a5) write(f, s, l); 146e: 002c addi a1,sp,8 1470: 4505 li a0,1 buf[i++] = digits[x >> (sizeof(uint64) * 8 - 4)]; 1472: 00e10c23 sb a4,24(sp) 1476: 00f10ca3 sb a5,25(sp) buf[i] = 0; 147a: 00010d23 sb zero,26(sp) write(f, s, l); 147e: 78a000ef jal ra,1c08 <write> // Print unknown % sequence to draw attention. putchar('%'); putchar(s[1]); break; } s += 2; 1482: 00248513 addi a0,s1,2 if (!*s) 1486: 00054783 lbu a5,0(a0) 148a: e8079ae3 bnez a5,131e <printf+0x4a> } va_end(ap); } 148e: 70a6 ld ra,104(sp) 1490: 7406 ld s0,96(sp) 1492: 64e6 ld s1,88(sp) 1494: 6946 ld s2,80(sp) 1496: 69a6 ld s3,72(sp) 1498: 6a06 ld s4,64(sp) 149a: 7ae2 ld s5,56(sp) 149c: 7b42 ld s6,48(sp) 149e: 614d addi sp,sp,176 14a0: 8082 ret for (z = s; s[0] == '%' && s[1] == '%'; z++, s += 2) 14a2: 00064783 lbu a5,0(a2) 14a6: 84b2 mv s1,a2 14a8: 01278963 beq a5,s2,14ba <printf+0x1e6> 14ac: b549 j 132e <printf+0x5a> 14ae: 0024c783 lbu a5,2(s1) 14b2: 0605 addi a2,a2,1 14b4: 0489 addi s1,s1,2 14b6: e7279ce3 bne a5,s2,132e <printf+0x5a> 14ba: 0014c783 lbu a5,1(s1) 14be: ff2788e3 beq a5,s2,14ae <printf+0x1da> l = z - a; 14c2: 40a6043b subw s0,a2,a0 write(f, s, l); 14c6: 85aa mv a1,a0 14c8: 8622 mv a2,s0 14ca: 4505 li a0,1 14cc: 73c000ef jal ra,1c08 <write> if (l) 14d0: e60408e3 beqz s0,1340 <printf+0x6c> 14d4: 8526 mv a0,s1 14d6: b581 j 1316 <printf+0x42> switch (s[1]) 14d8: 07800713 li a4,120 14dc: 04e79963 bne a5,a4,152e <printf+0x25a> printint(va_arg(ap, int), 16, 1); 14e0: 6782 ld a5,0(sp) 14e2: 45c1 li a1,16 14e4: 4388 lw a0,0(a5) 14e6: 07a1 addi a5,a5,8 14e8: e03e sd a5,0(sp) 14ea: b71ff0ef jal ra,105a <printint.constprop.0> s += 2; 14ee: 00248513 addi a0,s1,2 14f2: bf51 j 1486 <printf+0x1b2> printint(va_arg(ap, int), 10, 1); 14f4: 6782 ld a5,0(sp) 14f6: 45a9 li a1,10 14f8: 4388 lw a0,0(a5) 14fa: 07a1 addi a5,a5,8 14fc: e03e sd a5,0(sp) 14fe: b5dff0ef jal ra,105a <printint.constprop.0> s += 2; 1502: 00248513 addi a0,s1,2 1506: b741 j 1486 <printf+0x1b2> if ((a = va_arg(ap, char *)) == 0) 1508: 6782 ld a5,0(sp) 150a: 6380 ld s0,0(a5) 150c: 07a1 addi a5,a5,8 150e: e03e sd a5,0(sp) 1510: c031 beqz s0,1554 <printf+0x280> l = strnlen(a, 200); 1512: 0c800593 li a1,200 1516: 8522 mv a0,s0 1518: 3f8000ef jal ra,1910 <strnlen> write(f, s, l); 151c: 0005061b sext.w a2,a0 1520: 85a2 mv a1,s0 1522: 4505 li a0,1 1524: 6e4000ef jal ra,1c08 <write> s += 2; 1528: 00248513 addi a0,s1,2 152c: bfa9 j 1486 <printf+0x1b2> return write(stdout, &byte, 1); 152e: 4605 li a2,1 1530: 002c addi a1,sp,8 1532: 4505 li a0,1 char byte = c; 1534: 01210423 sb s2,8(sp) return write(stdout, &byte, 1); 1538: 6d0000ef jal ra,1c08 <write> char byte = c; 153c: 0014c783 lbu a5,1(s1) return write(stdout, &byte, 1); 1540: 4605 li a2,1 1542: 002c addi a1,sp,8 1544: 4505 li a0,1 char byte = c; 1546: 00f10423 sb a5,8(sp) return write(stdout, &byte, 1); 154a: 6be000ef jal ra,1c08 <write> s += 2; 154e: 00248513 addi a0,s1,2 1552: bf15 j 1486 <printf+0x1b2> a = "(null)"; 1554: 845a mv s0,s6 1556: bf75 j 1512 <printf+0x23e> 0000000000001558 <isspace>: #define HIGHS (ONES * (UCHAR_MAX / 2 + 1)) #define HASZERO(x) (((x)-ONES) & ~(x)&HIGHS) int isspace(int c) { return c == ' ' || (unsigned)c - '\t' < 5; 1558: 02000793 li a5,32 155c: 00f50663 beq a0,a5,1568 <isspace+0x10> 1560: 355d addiw a0,a0,-9 1562: 00553513 sltiu a0,a0,5 1566: 8082 ret 1568: 4505 li a0,1 } 156a: 8082 ret 000000000000156c <isdigit>: int isdigit(int c) { return (unsigned)c - '0' < 10; 156c: fd05051b addiw a0,a0,-48 } 1570: 00a53513 sltiu a0,a0,10 1574: 8082 ret 0000000000001576 <atoi>: return c == ' ' || (unsigned)c - '\t' < 5; 1576: 02000613 li a2,32 157a: 4591 li a1,4 int atoi(const char *s) { int n = 0, neg = 0; while (isspace(*s)) 157c: 00054703 lbu a4,0(a0) return c == ' ' || (unsigned)c - '\t' < 5; 1580: ff77069b addiw a3,a4,-9 1584: 04c70d63 beq a4,a2,15de <atoi+0x68> 1588: 0007079b sext.w a5,a4 158c: 04d5f963 bgeu a1,a3,15de <atoi+0x68> s++; switch (*s) 1590: 02b00693 li a3,43 1594: 04d70a63 beq a4,a3,15e8 <atoi+0x72> 1598: 02d00693 li a3,45 159c: 06d70463 beq a4,a3,1604 <atoi+0x8e> neg = 1; case '+': s++; } /* Compute n as a negative number to avoid overflow on INT_MIN */ while (isdigit(*s)) 15a0: fd07859b addiw a1,a5,-48 15a4: 4625 li a2,9 15a6: 873e mv a4,a5 15a8: 86aa mv a3,a0 int n = 0, neg = 0; 15aa: 4e01 li t3,0 while (isdigit(*s)) 15ac: 04b66a63 bltu a2,a1,1600 <atoi+0x8a> int n = 0, neg = 0; 15b0: 4501 li a0,0 while (isdigit(*s)) 15b2: 4825 li a6,9 15b4: 0016c603 lbu a2,1(a3) n = 10 * n - (*s++ - '0'); 15b8: 0025179b slliw a5,a0,0x2 15bc: 9d3d addw a0,a0,a5 15be: fd07031b addiw t1,a4,-48 15c2: 0015189b slliw a7,a0,0x1 while (isdigit(*s)) 15c6: fd06059b addiw a1,a2,-48 n = 10 * n - (*s++ - '0'); 15ca: 0685 addi a3,a3,1 15cc: 4068853b subw a0,a7,t1 while (isdigit(*s)) 15d0: 0006071b sext.w a4,a2 15d4: feb870e3 bgeu a6,a1,15b4 <atoi+0x3e> return neg ? n : -n; 15d8: 000e0563 beqz t3,15e2 <atoi+0x6c> } 15dc: 8082 ret s++; 15de: 0505 addi a0,a0,1 15e0: bf71 j 157c <atoi+0x6> return neg ? n : -n; 15e2: 4113053b subw a0,t1,a7 15e6: 8082 ret while (isdigit(*s)) 15e8: 00154783 lbu a5,1(a0) 15ec: 4625 li a2,9 s++; 15ee: 00150693 addi a3,a0,1 while (isdigit(*s)) 15f2: fd07859b addiw a1,a5,-48 15f6: 0007871b sext.w a4,a5 int n = 0, neg = 0; 15fa: 4e01 li t3,0 while (isdigit(*s)) 15fc: fab67ae3 bgeu a2,a1,15b0 <atoi+0x3a> 1600: 4501 li a0,0 } 1602: 8082 ret while (isdigit(*s)) 1604: 00154783 lbu a5,1(a0) 1608: 4625 li a2,9 s++; 160a: 00150693 addi a3,a0,1 while (isdigit(*s)) 160e: fd07859b addiw a1,a5,-48 1612: 0007871b sext.w a4,a5 1616: feb665e3 bltu a2,a1,1600 <atoi+0x8a> neg = 1; 161a: 4e05 li t3,1 161c: bf51 j 15b0 <atoi+0x3a> 000000000000161e <memset>: void *memset(void *dest, int c, size_t n) { char *p = dest; for (int i = 0; i < n; ++i, *(p++) = c) 161e: 16060d63 beqz a2,1798 <memset+0x17a> 1622: 40a007b3 neg a5,a0 1626: 8b9d andi a5,a5,7 1628: 00778713 addi a4,a5,7 162c: 482d li a6,11 162e: 0ff5f593 zext.b a1,a1 1632: fff60693 addi a3,a2,-1 1636: 17076263 bltu a4,a6,179a <memset+0x17c> 163a: 16e6ea63 bltu a3,a4,17ae <memset+0x190> 163e: 16078563 beqz a5,17a8 <memset+0x18a> 1642: 00b50023 sb a1,0(a0) 1646: 4705 li a4,1 1648: 00150e93 addi t4,a0,1 164c: 14e78c63 beq a5,a4,17a4 <memset+0x186> 1650: 00b500a3 sb a1,1(a0) 1654: 4709 li a4,2 1656: 00250e93 addi t4,a0,2 165a: 14e78d63 beq a5,a4,17b4 <memset+0x196> 165e: 00b50123 sb a1,2(a0) 1662: 470d li a4,3 1664: 00350e93 addi t4,a0,3 1668: 12e78b63 beq a5,a4,179e <memset+0x180> 166c: 00b501a3 sb a1,3(a0) 1670: 4711 li a4,4 1672: 00450e93 addi t4,a0,4 1676: 14e78163 beq a5,a4,17b8 <memset+0x19a> 167a: 00b50223 sb a1,4(a0) 167e: 4715 li a4,5 1680: 00550e93 addi t4,a0,5 1684: 12e78c63 beq a5,a4,17bc <memset+0x19e> 1688: 00b502a3 sb a1,5(a0) 168c: 471d li a4,7 168e: 00650e93 addi t4,a0,6 1692: 12e79763 bne a5,a4,17c0 <memset+0x1a2> 1696: 00750e93 addi t4,a0,7 169a: 00b50323 sb a1,6(a0) 169e: 4f1d li t5,7 16a0: 00859713 slli a4,a1,0x8 16a4: 8f4d or a4,a4,a1 16a6: 01059e13 slli t3,a1,0x10 16aa: 01c76e33 or t3,a4,t3 16ae: 01859313 slli t1,a1,0x18 16b2: 006e6333 or t1,t3,t1 16b6: 02059893 slli a7,a1,0x20 16ba: 011368b3 or a7,t1,a7 16be: 02859813 slli a6,a1,0x28 16c2: 40f60333 sub t1,a2,a5 16c6: 0108e833 or a6,a7,a6 16ca: 03059693 slli a3,a1,0x30 16ce: 00d866b3 or a3,a6,a3 16d2: 03859713 slli a4,a1,0x38 16d6: 97aa add a5,a5,a0 16d8: ff837813 andi a6,t1,-8 16dc: 8f55 or a4,a4,a3 16de: 00f806b3 add a3,a6,a5 16e2: e398 sd a4,0(a5) 16e4: 07a1 addi a5,a5,8 16e6: fed79ee3 bne a5,a3,16e2 <memset+0xc4> 16ea: ff837693 andi a3,t1,-8 16ee: 00de87b3 add a5,t4,a3 16f2: 01e6873b addw a4,a3,t5 16f6: 0ad30663 beq t1,a3,17a2 <memset+0x184> 16fa: 00b78023 sb a1,0(a5) 16fe: 0017069b addiw a3,a4,1 1702: 08c6fb63 bgeu a3,a2,1798 <memset+0x17a> 1706: 00b780a3 sb a1,1(a5) 170a: 0027069b addiw a3,a4,2 170e: 08c6f563 bgeu a3,a2,1798 <memset+0x17a> 1712: 00b78123 sb a1,2(a5) 1716: 0037069b addiw a3,a4,3 171a: 06c6ff63 bgeu a3,a2,1798 <memset+0x17a> 171e: 00b781a3 sb a1,3(a5) 1722: 0047069b addiw a3,a4,4 1726: 06c6f963 bgeu a3,a2,1798 <memset+0x17a> 172a: 00b78223 sb a1,4(a5) 172e: 0057069b addiw a3,a4,5 1732: 06c6f363 bgeu a3,a2,1798 <memset+0x17a> 1736: 00b782a3 sb a1,5(a5) 173a: 0067069b addiw a3,a4,6 173e: 04c6fd63 bgeu a3,a2,1798 <memset+0x17a> 1742: 00b78323 sb a1,6(a5) 1746: 0077069b addiw a3,a4,7 174a: 04c6f763 bgeu a3,a2,1798 <memset+0x17a> 174e: 00b783a3 sb a1,7(a5) 1752: 0087069b addiw a3,a4,8 1756: 04c6f163 bgeu a3,a2,1798 <memset+0x17a> 175a: 00b78423 sb a1,8(a5) 175e: 0097069b addiw a3,a4,9 1762: 02c6fb63 bgeu a3,a2,1798 <memset+0x17a> 1766: 00b784a3 sb a1,9(a5) 176a: 00a7069b addiw a3,a4,10 176e: 02c6f563 bgeu a3,a2,1798 <memset+0x17a> 1772: 00b78523 sb a1,10(a5) 1776: 00b7069b addiw a3,a4,11 177a: 00c6ff63 bgeu a3,a2,1798 <memset+0x17a> 177e: 00b785a3 sb a1,11(a5) 1782: 00c7069b addiw a3,a4,12 1786: 00c6f963 bgeu a3,a2,1798 <memset+0x17a> 178a: 00b78623 sb a1,12(a5) 178e: 2735 addiw a4,a4,13 1790: 00c77463 bgeu a4,a2,1798 <memset+0x17a> 1794: 00b786a3 sb a1,13(a5) ; return dest; } 1798: 8082 ret 179a: 472d li a4,11 179c: bd79 j 163a <memset+0x1c> for (int i = 0; i < n; ++i, *(p++) = c) 179e: 4f0d li t5,3 17a0: b701 j 16a0 <memset+0x82> 17a2: 8082 ret 17a4: 4f05 li t5,1 17a6: bded j 16a0 <memset+0x82> 17a8: 8eaa mv t4,a0 17aa: 4f01 li t5,0 17ac: bdd5 j 16a0 <memset+0x82> 17ae: 87aa mv a5,a0 17b0: 4701 li a4,0 17b2: b7a1 j 16fa <memset+0xdc> 17b4: 4f09 li t5,2 17b6: b5ed j 16a0 <memset+0x82> 17b8: 4f11 li t5,4 17ba: b5dd j 16a0 <memset+0x82> 17bc: 4f15 li t5,5 17be: b5cd j 16a0 <memset+0x82> 17c0: 4f19 li t5,6 17c2: bdf9 j 16a0 <memset+0x82> 00000000000017c4 <strcmp>: int strcmp(const char *l, const char *r) { for (; *l == *r && *l; l++, r++) 17c4: 00054783 lbu a5,0(a0) 17c8: 0005c703 lbu a4,0(a1) 17cc: 00e79863 bne a5,a4,17dc <strcmp+0x18> 17d0: 0505 addi a0,a0,1 17d2: 0585 addi a1,a1,1 17d4: fbe5 bnez a5,17c4 <strcmp> 17d6: 4501 li a0,0 ; return *(unsigned char *)l - *(unsigned char *)r; } 17d8: 9d19 subw a0,a0,a4 17da: 8082 ret return *(unsigned char *)l - *(unsigned char *)r; 17dc: 0007851b sext.w a0,a5 17e0: bfe5 j 17d8 <strcmp+0x14> 00000000000017e2 <strncmp>: int strncmp(const char *_l, const char *_r, size_t n) { const unsigned char *l = (void *)_l, *r = (void *)_r; if (!n--) 17e2: ce05 beqz a2,181a <strncmp+0x38> return 0; for (; *l && *r && n && *l == *r; l++, r++, n--) 17e4: 00054703 lbu a4,0(a0) 17e8: 0005c783 lbu a5,0(a1) 17ec: cb0d beqz a4,181e <strncmp+0x3c> if (!n--) 17ee: 167d addi a2,a2,-1 17f0: 00c506b3 add a3,a0,a2 17f4: a819 j 180a <strncmp+0x28> for (; *l && *r && n && *l == *r; l++, r++, n--) 17f6: 00a68e63 beq a3,a0,1812 <strncmp+0x30> 17fa: 0505 addi a0,a0,1 17fc: 00e79b63 bne a5,a4,1812 <strncmp+0x30> 1800: 00054703 lbu a4,0(a0) ; return *l - *r; 1804: 0005c783 lbu a5,0(a1) for (; *l && *r && n && *l == *r; l++, r++, n--) 1808: cb19 beqz a4,181e <strncmp+0x3c> 180a: 0005c783 lbu a5,0(a1) 180e: 0585 addi a1,a1,1 1810: f3fd bnez a5,17f6 <strncmp+0x14> return *l - *r; 1812: 0007051b sext.w a0,a4 1816: 9d1d subw a0,a0,a5 1818: 8082 ret return 0; 181a: 4501 li a0,0 } 181c: 8082 ret 181e: 4501 li a0,0 return *l - *r; 1820: 9d1d subw a0,a0,a5 1822: 8082 ret 0000000000001824 <strlen>: size_t strlen(const char *s) { const char *a = s; typedef size_t __attribute__((__may_alias__)) word; const word *w; for (; (uintptr_t)s % SS; s++) 1824: 00757793 andi a5,a0,7 1828: cf89 beqz a5,1842 <strlen+0x1e> 182a: 87aa mv a5,a0 182c: a029 j 1836 <strlen+0x12> 182e: 0785 addi a5,a5,1 1830: 0077f713 andi a4,a5,7 1834: cb01 beqz a4,1844 <strlen+0x20> if (!*s) 1836: 0007c703 lbu a4,0(a5) 183a: fb75 bnez a4,182e <strlen+0xa> for (w = (const void *)s; !HASZERO(*w); w++) ; s = (const void *)w; for (; *s; s++) ; return s - a; 183c: 40a78533 sub a0,a5,a0 } 1840: 8082 ret for (; (uintptr_t)s % SS; s++) 1842: 87aa mv a5,a0 for (w = (const void *)s; !HASZERO(*w); w++) 1844: 6394 ld a3,0(a5) 1846: 00000597 auipc a1,0x0 184a: 67a5b583 ld a1,1658(a1) # 1ec0 <__func__.0+0x8> 184e: 00000617 auipc a2,0x0 1852: 67a63603 ld a2,1658(a2) # 1ec8 <__func__.0+0x10> 1856: a019 j 185c <strlen+0x38> 1858: 6794 ld a3,8(a5) 185a: 07a1 addi a5,a5,8 185c: 00b68733 add a4,a3,a1 1860: fff6c693 not a3,a3 1864: 8f75 and a4,a4,a3 1866: 8f71 and a4,a4,a2 1868: db65 beqz a4,1858 <strlen+0x34> for (; *s; s++) 186a: 0007c703 lbu a4,0(a5) 186e: d779 beqz a4,183c <strlen+0x18> 1870: 0017c703 lbu a4,1(a5) 1874: 0785 addi a5,a5,1 1876: d379 beqz a4,183c <strlen+0x18> 1878: 0017c703 lbu a4,1(a5) 187c: 0785 addi a5,a5,1 187e: fb6d bnez a4,1870 <strlen+0x4c> 1880: bf75 j 183c <strlen+0x18> 0000000000001882 <memchr>: void *memchr(const void *src, int c, size_t n) { const unsigned char *s = src; c = (unsigned char)c; for (; ((uintptr_t)s & ALIGN) && n && *s != c; s++, n--) 1882: 00757713 andi a4,a0,7 { 1886: 87aa mv a5,a0 c = (unsigned char)c; 1888: 0ff5f593 zext.b a1,a1 for (; ((uintptr_t)s & ALIGN) && n && *s != c; s++, n--) 188c: cb19 beqz a4,18a2 <memchr+0x20> 188e: ce25 beqz a2,1906 <memchr+0x84> 1890: 0007c703 lbu a4,0(a5) 1894: 04b70e63 beq a4,a1,18f0 <memchr+0x6e> 1898: 0785 addi a5,a5,1 189a: 0077f713 andi a4,a5,7 189e: 167d addi a2,a2,-1 18a0: f77d bnez a4,188e <memchr+0xc> ; s = (const void *)w; } for (; n && *s != c; s++, n--) ; return n ? (void *)s : 0; 18a2: 4501 li a0,0 if (n && *s != c) 18a4: c235 beqz a2,1908 <memchr+0x86> 18a6: 0007c703 lbu a4,0(a5) 18aa: 04b70363 beq a4,a1,18f0 <memchr+0x6e> size_t k = ONES * c; 18ae: 00000517 auipc a0,0x0 18b2: 62253503 ld a0,1570(a0) # 1ed0 <__func__.0+0x18> for (w = (const void *)s; n >= SS && !HASZERO(*w ^ k); w++, n -= SS) 18b6: 471d li a4,7 size_t k = ONES * c; 18b8: 02a58533 mul a0,a1,a0 for (w = (const void *)s; n >= SS && !HASZERO(*w ^ k); w++, n -= SS) 18bc: 02c77a63 bgeu a4,a2,18f0 <memchr+0x6e> 18c0: 00000897 auipc a7,0x0 18c4: 6008b883 ld a7,1536(a7) # 1ec0 <__func__.0+0x8> 18c8: 00000817 auipc a6,0x0 18cc: 60083803 ld a6,1536(a6) # 1ec8 <__func__.0+0x10> 18d0: 431d li t1,7 18d2: a029 j 18dc <memchr+0x5a> 18d4: 1661 addi a2,a2,-8 18d6: 07a1 addi a5,a5,8 18d8: 02c37963 bgeu t1,a2,190a <memchr+0x88> 18dc: 6398 ld a4,0(a5) 18de: 8f29 xor a4,a4,a0 18e0: 011706b3 add a3,a4,a7 18e4: fff74713 not a4,a4 18e8: 8f75 and a4,a4,a3 18ea: 01077733 and a4,a4,a6 18ee: d37d beqz a4,18d4 <memchr+0x52> 18f0: 853e mv a0,a5 18f2: 97b2 add a5,a5,a2 18f4: a021 j 18fc <memchr+0x7a> for (; n && *s != c; s++, n--) 18f6: 0505 addi a0,a0,1 18f8: 00f50763 beq a0,a5,1906 <memchr+0x84> 18fc: 00054703 lbu a4,0(a0) 1900: feb71be3 bne a4,a1,18f6 <memchr+0x74> 1904: 8082 ret return n ? (void *)s : 0; 1906: 4501 li a0,0 } 1908: 8082 ret return n ? (void *)s : 0; 190a: 4501 li a0,0 for (; n && *s != c; s++, n--) 190c: f275 bnez a2,18f0 <memchr+0x6e> } 190e: 8082 ret 0000000000001910 <strnlen>: size_t strnlen(const char *s, size_t n) { 1910: 1101 addi sp,sp,-32 1912: e822 sd s0,16(sp) const char *p = memchr(s, 0, n); 1914: 862e mv a2,a1 { 1916: 842e mv s0,a1 const char *p = memchr(s, 0, n); 1918: 4581 li a1,0 { 191a: e426 sd s1,8(sp) 191c: ec06 sd ra,24(sp) 191e: 84aa mv s1,a0 const char *p = memchr(s, 0, n); 1920: f63ff0ef jal ra,1882 <memchr> return p ? p - s : n; 1924: c519 beqz a0,1932 <strnlen+0x22> } 1926: 60e2 ld ra,24(sp) 1928: 6442 ld s0,16(sp) return p ? p - s : n; 192a: 8d05 sub a0,a0,s1 } 192c: 64a2 ld s1,8(sp) 192e: 6105 addi sp,sp,32 1930: 8082 ret 1932: 60e2 ld ra,24(sp) return p ? p - s : n; 1934: 8522 mv a0,s0 } 1936: 6442 ld s0,16(sp) 1938: 64a2 ld s1,8(sp) 193a: 6105 addi sp,sp,32 193c: 8082 ret 000000000000193e <strcpy>: char *strcpy(char *restrict d, const char *s) { typedef size_t __attribute__((__may_alias__)) word; word *wd; const word *ws; if ((uintptr_t)s % SS == (uintptr_t)d % SS) 193e: 00b547b3 xor a5,a0,a1 1942: 8b9d andi a5,a5,7 1944: eb95 bnez a5,1978 <strcpy+0x3a> { for (; (uintptr_t)s % SS; s++, d++) 1946: 0075f793 andi a5,a1,7 194a: e7b1 bnez a5,1996 <strcpy+0x58> if (!(*d = *s)) return d; wd = (void *)d; ws = (const void *)s; for (; !HASZERO(*ws); *wd++ = *ws++) 194c: 6198 ld a4,0(a1) 194e: 00000617 auipc a2,0x0 1952: 57263603 ld a2,1394(a2) # 1ec0 <__func__.0+0x8> 1956: 00000817 auipc a6,0x0 195a: 57283803 ld a6,1394(a6) # 1ec8 <__func__.0+0x10> 195e: a029 j 1968 <strcpy+0x2a> 1960: e118 sd a4,0(a0) 1962: 6598 ld a4,8(a1) 1964: 05a1 addi a1,a1,8 1966: 0521 addi a0,a0,8 1968: 00c707b3 add a5,a4,a2 196c: fff74693 not a3,a4 1970: 8ff5 and a5,a5,a3 1972: 0107f7b3 and a5,a5,a6 1976: d7ed beqz a5,1960 <strcpy+0x22> ; d = (void *)wd; s = (const void *)ws; } for (; (*d = *s); s++, d++) 1978: 0005c783 lbu a5,0(a1) 197c: 00f50023 sb a5,0(a0) 1980: c785 beqz a5,19a8 <strcpy+0x6a> 1982: 0015c783 lbu a5,1(a1) 1986: 0505 addi a0,a0,1 1988: 0585 addi a1,a1,1 198a: 00f50023 sb a5,0(a0) 198e: fbf5 bnez a5,1982 <strcpy+0x44> ; return d; } 1990: 8082 ret for (; (uintptr_t)s % SS; s++, d++) 1992: 0505 addi a0,a0,1 1994: df45 beqz a4,194c <strcpy+0xe> if (!(*d = *s)) 1996: 0005c783 lbu a5,0(a1) for (; (uintptr_t)s % SS; s++, d++) 199a: 0585 addi a1,a1,1 199c: 0075f713 andi a4,a1,7 if (!(*d = *s)) 19a0: 00f50023 sb a5,0(a0) 19a4: f7fd bnez a5,1992 <strcpy+0x54> } 19a6: 8082 ret 19a8: 8082 ret 00000000000019aa <strncpy>: char *strncpy(char *restrict d, const char *s, size_t n) { typedef size_t __attribute__((__may_alias__)) word; word *wd; const word *ws; if (((uintptr_t)s & ALIGN) == ((uintptr_t)d & ALIGN)) 19aa: 00b547b3 xor a5,a0,a1 19ae: 8b9d andi a5,a5,7 19b0: 1a079863 bnez a5,1b60 <strncpy+0x1b6> { for (; ((uintptr_t)s & ALIGN) && n && (*d = *s); n--, s++, d++) 19b4: 0075f793 andi a5,a1,7 19b8: 16078463 beqz a5,1b20 <strncpy+0x176> 19bc: ea01 bnez a2,19cc <strncpy+0x22> 19be: a421 j 1bc6 <strncpy+0x21c> 19c0: 167d addi a2,a2,-1 19c2: 0505 addi a0,a0,1 19c4: 14070e63 beqz a4,1b20 <strncpy+0x176> 19c8: 1a060863 beqz a2,1b78 <strncpy+0x1ce> 19cc: 0005c783 lbu a5,0(a1) 19d0: 0585 addi a1,a1,1 19d2: 0075f713 andi a4,a1,7 19d6: 00f50023 sb a5,0(a0) 19da: f3fd bnez a5,19c0 <strncpy+0x16> 19dc: 4805 li a6,1 19de: 1a061863 bnez a2,1b8e <strncpy+0x1e4> 19e2: 40a007b3 neg a5,a0 19e6: 8b9d andi a5,a5,7 19e8: 4681 li a3,0 19ea: 18061a63 bnez a2,1b7e <strncpy+0x1d4> 19ee: 00778713 addi a4,a5,7 19f2: 45ad li a1,11 19f4: 18b76363 bltu a4,a1,1b7a <strncpy+0x1d0> 19f8: 1ae6eb63 bltu a3,a4,1bae <strncpy+0x204> 19fc: 1a078363 beqz a5,1ba2 <strncpy+0x1f8> for (int i = 0; i < n; ++i, *(p++) = c) 1a00: 00050023 sb zero,0(a0) 1a04: 4685 li a3,1 1a06: 00150713 addi a4,a0,1 1a0a: 18d78f63 beq a5,a3,1ba8 <strncpy+0x1fe> 1a0e: 000500a3 sb zero,1(a0) 1a12: 4689 li a3,2 1a14: 00250713 addi a4,a0,2 1a18: 18d78e63 beq a5,a3,1bb4 <strncpy+0x20a> 1a1c: 00050123 sb zero,2(a0) 1a20: 468d li a3,3 1a22: 00350713 addi a4,a0,3 1a26: 16d78c63 beq a5,a3,1b9e <strncpy+0x1f4> 1a2a: 000501a3 sb zero,3(a0) 1a2e: 4691 li a3,4 1a30: 00450713 addi a4,a0,4 1a34: 18d78263 beq a5,a3,1bb8 <strncpy+0x20e> 1a38: 00050223 sb zero,4(a0) 1a3c: 4695 li a3,5 1a3e: 00550713 addi a4,a0,5 1a42: 16d78d63 beq a5,a3,1bbc <strncpy+0x212> 1a46: 000502a3 sb zero,5(a0) 1a4a: 469d li a3,7 1a4c: 00650713 addi a4,a0,6 1a50: 16d79863 bne a5,a3,1bc0 <strncpy+0x216> 1a54: 00750713 addi a4,a0,7 1a58: 00050323 sb zero,6(a0) 1a5c: 40f80833 sub a6,a6,a5 1a60: ff887593 andi a1,a6,-8 1a64: 97aa add a5,a5,a0 1a66: 95be add a1,a1,a5 1a68: 0007b023 sd zero,0(a5) 1a6c: 07a1 addi a5,a5,8 1a6e: feb79de3 bne a5,a1,1a68 <strncpy+0xbe> 1a72: ff887593 andi a1,a6,-8 1a76: 9ead addw a3,a3,a1 1a78: 00b707b3 add a5,a4,a1 1a7c: 12b80863 beq a6,a1,1bac <strncpy+0x202> 1a80: 00078023 sb zero,0(a5) 1a84: 0016871b addiw a4,a3,1 1a88: 0ec77863 bgeu a4,a2,1b78 <strncpy+0x1ce> 1a8c: 000780a3 sb zero,1(a5) 1a90: 0026871b addiw a4,a3,2 1a94: 0ec77263 bgeu a4,a2,1b78 <strncpy+0x1ce> 1a98: 00078123 sb zero,2(a5) 1a9c: 0036871b addiw a4,a3,3 1aa0: 0cc77c63 bgeu a4,a2,1b78 <strncpy+0x1ce> 1aa4: 000781a3 sb zero,3(a5) 1aa8: 0046871b addiw a4,a3,4 1aac: 0cc77663 bgeu a4,a2,1b78 <strncpy+0x1ce> 1ab0: 00078223 sb zero,4(a5) 1ab4: 0056871b addiw a4,a3,5 1ab8: 0cc77063 bgeu a4,a2,1b78 <strncpy+0x1ce> 1abc: 000782a3 sb zero,5(a5) 1ac0: 0066871b addiw a4,a3,6 1ac4: 0ac77a63 bgeu a4,a2,1b78 <strncpy+0x1ce> 1ac8: 00078323 sb zero,6(a5) 1acc: 0076871b addiw a4,a3,7 1ad0: 0ac77463 bgeu a4,a2,1b78 <strncpy+0x1ce> 1ad4: 000783a3 sb zero,7(a5) 1ad8: 0086871b addiw a4,a3,8 1adc: 08c77e63 bgeu a4,a2,1b78 <strncpy+0x1ce> 1ae0: 00078423 sb zero,8(a5) 1ae4: 0096871b addiw a4,a3,9 1ae8: 08c77863 bgeu a4,a2,1b78 <strncpy+0x1ce> 1aec: 000784a3 sb zero,9(a5) 1af0: 00a6871b addiw a4,a3,10 1af4: 08c77263 bgeu a4,a2,1b78 <strncpy+0x1ce> 1af8: 00078523 sb zero,10(a5) 1afc: 00b6871b addiw a4,a3,11 1b00: 06c77c63 bgeu a4,a2,1b78 <strncpy+0x1ce> 1b04: 000785a3 sb zero,11(a5) 1b08: 00c6871b addiw a4,a3,12 1b0c: 06c77663 bgeu a4,a2,1b78 <strncpy+0x1ce> 1b10: 00078623 sb zero,12(a5) 1b14: 26b5 addiw a3,a3,13 1b16: 06c6f163 bgeu a3,a2,1b78 <strncpy+0x1ce> 1b1a: 000786a3 sb zero,13(a5) 1b1e: 8082 ret ; if (!n || !*s) 1b20: c645 beqz a2,1bc8 <strncpy+0x21e> 1b22: 0005c783 lbu a5,0(a1) 1b26: ea078be3 beqz a5,19dc <strncpy+0x32> goto tail; wd = (void *)d; ws = (const void *)s; for (; n >= sizeof(size_t) && !HASZERO(*ws); n -= sizeof(size_t), ws++, wd++) 1b2a: 479d li a5,7 1b2c: 02c7ff63 bgeu a5,a2,1b6a <strncpy+0x1c0> 1b30: 00000897 auipc a7,0x0 1b34: 3908b883 ld a7,912(a7) # 1ec0 <__func__.0+0x8> 1b38: 00000817 auipc a6,0x0 1b3c: 39083803 ld a6,912(a6) # 1ec8 <__func__.0+0x10> 1b40: 431d li t1,7 1b42: 6198 ld a4,0(a1) 1b44: 011707b3 add a5,a4,a7 1b48: fff74693 not a3,a4 1b4c: 8ff5 and a5,a5,a3 1b4e: 0107f7b3 and a5,a5,a6 1b52: ef81 bnez a5,1b6a <strncpy+0x1c0> *wd = *ws; 1b54: e118 sd a4,0(a0) for (; n >= sizeof(size_t) && !HASZERO(*ws); n -= sizeof(size_t), ws++, wd++) 1b56: 1661 addi a2,a2,-8 1b58: 05a1 addi a1,a1,8 1b5a: 0521 addi a0,a0,8 1b5c: fec363e3 bltu t1,a2,1b42 <strncpy+0x198> d = (void *)wd; s = (const void *)ws; } for (; n && (*d = *s); n--, s++, d++) 1b60: e609 bnez a2,1b6a <strncpy+0x1c0> 1b62: a08d j 1bc4 <strncpy+0x21a> 1b64: 167d addi a2,a2,-1 1b66: 0505 addi a0,a0,1 1b68: ca01 beqz a2,1b78 <strncpy+0x1ce> 1b6a: 0005c783 lbu a5,0(a1) 1b6e: 0585 addi a1,a1,1 1b70: 00f50023 sb a5,0(a0) 1b74: fbe5 bnez a5,1b64 <strncpy+0x1ba> ; tail: 1b76: b59d j 19dc <strncpy+0x32> memset(d, 0, n); return d; } 1b78: 8082 ret 1b7a: 472d li a4,11 1b7c: bdb5 j 19f8 <strncpy+0x4e> 1b7e: 00778713 addi a4,a5,7 1b82: 45ad li a1,11 1b84: fff60693 addi a3,a2,-1 1b88: e6b778e3 bgeu a4,a1,19f8 <strncpy+0x4e> 1b8c: b7fd j 1b7a <strncpy+0x1d0> 1b8e: 40a007b3 neg a5,a0 1b92: 8832 mv a6,a2 1b94: 8b9d andi a5,a5,7 1b96: 4681 li a3,0 1b98: e4060be3 beqz a2,19ee <strncpy+0x44> 1b9c: b7cd j 1b7e <strncpy+0x1d4> for (int i = 0; i < n; ++i, *(p++) = c) 1b9e: 468d li a3,3 1ba0: bd75 j 1a5c <strncpy+0xb2> 1ba2: 872a mv a4,a0 1ba4: 4681 li a3,0 1ba6: bd5d j 1a5c <strncpy+0xb2> 1ba8: 4685 li a3,1 1baa: bd4d j 1a5c <strncpy+0xb2> 1bac: 8082 ret 1bae: 87aa mv a5,a0 1bb0: 4681 li a3,0 1bb2: b5f9 j 1a80 <strncpy+0xd6> 1bb4: 4689 li a3,2 1bb6: b55d j 1a5c <strncpy+0xb2> 1bb8: 4691 li a3,4 1bba: b54d j 1a5c <strncpy+0xb2> 1bbc: 4695 li a3,5 1bbe: bd79 j 1a5c <strncpy+0xb2> 1bc0: 4699 li a3,6 1bc2: bd69 j 1a5c <strncpy+0xb2> 1bc4: 8082 ret 1bc6: 8082 ret 1bc8: 8082 ret 0000000000001bca <open>: #include <unistd.h> #include "syscall.h" int open(const char *path, int flags) { 1bca: 87aa mv a5,a0 1bcc: 862e mv a2,a1 __asm_syscall("r"(a7), "0"(a0), "r"(a1), "r"(a2)) } static inline long __syscall4(long n, long a, long b, long c, long d) { register long a7 __asm__("a7") = n; 1bce: 03800893 li a7,56 register long a0 __asm__("a0") = a; 1bd2: f9c00513 li a0,-100 register long a1 __asm__("a1") = b; 1bd6: 85be mv a1,a5 register long a2 __asm__("a2") = c; register long a3 __asm__("a3") = d; 1bd8: 4689 li a3,2 __asm_syscall("r"(a7), "0"(a0), "r"(a1), "r"(a2), "r"(a3)) 1bda: 00000073 ecall return syscall(SYS_openat, AT_FDCWD, path, flags, O_RDWR); } 1bde: 2501 sext.w a0,a0 1be0: 8082 ret 0000000000001be2 <openat>: register long a7 __asm__("a7") = n; 1be2: 03800893 li a7,56 register long a3 __asm__("a3") = d; 1be6: 18000693 li a3,384 __asm_syscall("r"(a7), "0"(a0), "r"(a1), "r"(a2), "r"(a3)) 1bea: 00000073 ecall int openat(int dirfd,const char *path, int flags) { return syscall(SYS_openat, dirfd, path, flags, 0600); } 1bee: 2501 sext.w a0,a0 1bf0: 8082 ret 0000000000001bf2 <close>: register long a7 __asm__("a7") = n; 1bf2: 03900893 li a7,57 __asm_syscall("r"(a7), "0"(a0)) 1bf6: 00000073 ecall int close(int fd) { return syscall(SYS_close, fd); } 1bfa: 2501 sext.w a0,a0 1bfc: 8082 ret 0000000000001bfe <read>: register long a7 __asm__("a7") = n; 1bfe: 03f00893 li a7,63 __asm_syscall("r"(a7), "0"(a0), "r"(a1), "r"(a2)) 1c02: 00000073 ecall ssize_t read(int fd, void *buf, size_t len) { return syscall(SYS_read, fd, buf, len); } 1c06: 8082 ret 0000000000001c08 <write>: register long a7 __asm__("a7") = n; 1c08: 04000893 li a7,64 __asm_syscall("r"(a7), "0"(a0), "r"(a1), "r"(a2)) 1c0c: 00000073 ecall ssize_t write(int fd, const void *buf, size_t len) { return syscall(SYS_write, fd, buf, len); } 1c10: 8082 ret 0000000000001c12 <getpid>: register long a7 __asm__("a7") = n; 1c12: 0ac00893 li a7,172 __asm_syscall("r"(a7)) 1c16: 00000073 ecall pid_t getpid(void) { return syscall(SYS_getpid); } 1c1a: 2501 sext.w a0,a0 1c1c: 8082 ret 0000000000001c1e <getppid>: register long a7 __asm__("a7") = n; 1c1e: 0ad00893 li a7,173 __asm_syscall("r"(a7)) 1c22: 00000073 ecall pid_t getppid(void) { return syscall(SYS_getppid); } 1c26: 2501 sext.w a0,a0 1c28: 8082 ret 0000000000001c2a <sched_yield>: register long a7 __asm__("a7") = n; 1c2a: 07c00893 li a7,124 __asm_syscall("r"(a7)) 1c2e: 00000073 ecall int sched_yield(void) { return syscall(SYS_sched_yield); } 1c32: 2501 sext.w a0,a0 1c34: 8082 ret 0000000000001c36 <fork>: register long a7 __asm__("a7") = n; 1c36: 0dc00893 li a7,220 register long a0 __asm__("a0") = a; 1c3a: 4545 li a0,17 register long a1 __asm__("a1") = b; 1c3c: 4581 li a1,0 __asm_syscall("r"(a7), "0"(a0), "r"(a1)) 1c3e: 00000073 ecall pid_t fork(void) { return syscall(SYS_clone, SIGCHLD, 0); } 1c42: 2501 sext.w a0,a0 1c44: 8082 ret 0000000000001c46 <clone>: pid_t clone(int (*fn)(void *arg), void *arg, void *stack, size_t stack_size, unsigned long flags) { 1c46: 85b2 mv a1,a2 1c48: 863a mv a2,a4 if (stack) 1c4a: c191 beqz a1,1c4e <clone+0x8> stack += stack_size; 1c4c: 95b6 add a1,a1,a3 return __clone(fn, stack, flags, NULL, NULL, NULL); 1c4e: 4781 li a5,0 1c50: 4701 li a4,0 1c52: 4681 li a3,0 1c54: 2601 sext.w a2,a2 1c56: a2ed j 1e40 <__clone> 0000000000001c58 <exit>: register long a7 __asm__("a7") = n; 1c58: 05d00893 li a7,93 __asm_syscall("r"(a7), "0"(a0)) 1c5c: 00000073 ecall //return syscall(SYS_clone, fn, stack, flags, NULL, NULL, NULL); } void exit(int code) { syscall(SYS_exit, code); } 1c60: 8082 ret 0000000000001c62 <waitpid>: register long a7 __asm__("a7") = n; 1c62: 10400893 li a7,260 register long a3 __asm__("a3") = d; 1c66: 4681 li a3,0 __asm_syscall("r"(a7), "0"(a0), "r"(a1), "r"(a2), "r"(a3)) 1c68: 00000073 ecall int waitpid(int pid, int *code, int options) { return syscall(SYS_wait4, pid, code, options, 0); } 1c6c: 2501 sext.w a0,a0 1c6e: 8082 ret 0000000000001c70 <exec>: register long a7 __asm__("a7") = n; 1c70: 0dd00893 li a7,221 __asm_syscall("r"(a7), "0"(a0)) 1c74: 00000073 ecall int exec(char *name) { return syscall(SYS_execve, name); } 1c78: 2501 sext.w a0,a0 1c7a: 8082 ret 0000000000001c7c <execve>: register long a7 __asm__("a7") = n; 1c7c: 0dd00893 li a7,221 __asm_syscall("r"(a7), "0"(a0), "r"(a1), "r"(a2)) 1c80: 00000073 ecall int execve(const char *name, char *const argv[], char *const argp[]) { return syscall(SYS_execve, name, argv, argp); } 1c84: 2501 sext.w a0,a0 1c86: 8082 ret 0000000000001c88 <times>: register long a7 __asm__("a7") = n; 1c88: 09900893 li a7,153 __asm_syscall("r"(a7), "0"(a0)) 1c8c: 00000073 ecall int times(void *mytimes) { return syscall(SYS_times, mytimes); } 1c90: 2501 sext.w a0,a0 1c92: 8082 ret 0000000000001c94 <get_time>: int64 get_time() { 1c94: 1141 addi sp,sp,-16 register long a7 __asm__("a7") = n; 1c96: 0a900893 li a7,169 register long a0 __asm__("a0") = a; 1c9a: 850a mv a0,sp register long a1 __asm__("a1") = b; 1c9c: 4581 li a1,0 __asm_syscall("r"(a7), "0"(a0), "r"(a1)) 1c9e: 00000073 ecall TimeVal time; int err = sys_get_time(&time, 0); if (err == 0) 1ca2: 2501 sext.w a0,a0 1ca4: ed09 bnez a0,1cbe <get_time+0x2a> { return ((time.sec & 0xffff) * 1000 + time.usec / 1000); 1ca6: 67a2 ld a5,8(sp) 1ca8: 3e800713 li a4,1000 1cac: 00015503 lhu a0,0(sp) 1cb0: 02e7d7b3 divu a5,a5,a4 1cb4: 02e50533 mul a0,a0,a4 1cb8: 953e add a0,a0,a5 } else { return -1; } } 1cba: 0141 addi sp,sp,16 1cbc: 8082 ret return -1; 1cbe: 557d li a0,-1 1cc0: bfed j 1cba <get_time+0x26> 0000000000001cc2 <sys_get_time>: register long a7 __asm__("a7") = n; 1cc2: 0a900893 li a7,169 __asm_syscall("r"(a7), "0"(a0), "r"(a1)) 1cc6: 00000073 ecall int sys_get_time(TimeVal *ts, int tz) { return syscall(SYS_gettimeofday, ts, tz); } 1cca: 2501 sext.w a0,a0 1ccc: 8082 ret 0000000000001cce <time>: register long a7 __asm__("a7") = n; 1cce: 42600893 li a7,1062 __asm_syscall("r"(a7), "0"(a0)) 1cd2: 00000073 ecall int time(unsigned long *tloc) { return syscall(SYS_time, tloc); } 1cd6: 2501 sext.w a0,a0 1cd8: 8082 ret 0000000000001cda <sleep>: int sleep(unsigned long long time) { 1cda: 1141 addi sp,sp,-16 TimeVal tv = {.sec = time, .usec = 0}; 1cdc: e02a sd a0,0(sp) register long a0 __asm__("a0") = a; 1cde: 850a mv a0,sp 1ce0: e402 sd zero,8(sp) register long a7 __asm__("a7") = n; 1ce2: 06500893 li a7,101 register long a1 __asm__("a1") = b; 1ce6: 85aa mv a1,a0 __asm_syscall("r"(a7), "0"(a0), "r"(a1)) 1ce8: 00000073 ecall if (syscall(SYS_nanosleep, &tv, &tv)) return tv.sec; 1cec: e501 bnez a0,1cf4 <sleep+0x1a> return 0; 1cee: 4501 li a0,0 } 1cf0: 0141 addi sp,sp,16 1cf2: 8082 ret if (syscall(SYS_nanosleep, &tv, &tv)) return tv.sec; 1cf4: 4502 lw a0,0(sp) } 1cf6: 0141 addi sp,sp,16 1cf8: 8082 ret 0000000000001cfa <set_priority>: register long a7 __asm__("a7") = n; 1cfa: 08c00893 li a7,140 __asm_syscall("r"(a7), "0"(a0)) 1cfe: 00000073 ecall int set_priority(int prio) { return syscall(SYS_setpriority, prio); } 1d02: 2501 sext.w a0,a0 1d04: 8082 ret 0000000000001d06 <mmap>: __asm_syscall("r"(a7), "0"(a0), "r"(a1), "r"(a2), "r"(a3), "r"(a4)) } static inline long __syscall6(long n, long a, long b, long c, long d, long e, long f) { register long a7 __asm__("a7") = n; 1d06: 0de00893 li a7,222 register long a1 __asm__("a1") = b; register long a2 __asm__("a2") = c; register long a3 __asm__("a3") = d; register long a4 __asm__("a4") = e; register long a5 __asm__("a5") = f; __asm_syscall("r"(a7), "0"(a0), "r"(a1), "r"(a2), "r"(a3), "r"(a4), "r"(a5)) 1d0a: 00000073 ecall void *mmap(void *start, size_t len, int prot, int flags, int fd, off_t off) { return syscall(SYS_mmap, start, len, prot, flags, fd, off); } 1d0e: 8082 ret 0000000000001d10 <munmap>: register long a7 __asm__("a7") = n; 1d10: 0d700893 li a7,215 __asm_syscall("r"(a7), "0"(a0), "r"(a1)) 1d14: 00000073 ecall int munmap(void *start, size_t len) { return syscall(SYS_munmap, start, len); } 1d18: 2501 sext.w a0,a0 1d1a: 8082 ret 0000000000001d1c <wait>: int wait(int *code) { 1d1c: 85aa mv a1,a0 register long a7 __asm__("a7") = n; 1d1e: 10400893 li a7,260 register long a0 __asm__("a0") = a; 1d22: 557d li a0,-1 register long a2 __asm__("a2") = c; 1d24: 4601 li a2,0 register long a3 __asm__("a3") = d; 1d26: 4681 li a3,0 __asm_syscall("r"(a7), "0"(a0), "r"(a1), "r"(a2), "r"(a3)) 1d28: 00000073 ecall return waitpid((int)-1, code, 0); } 1d2c: 2501 sext.w a0,a0 1d2e: 8082 ret 0000000000001d30 <spawn>: register long a7 __asm__("a7") = n; 1d30: 19000893 li a7,400 __asm_syscall("r"(a7), "0"(a0)) 1d34: 00000073 ecall int spawn(char *file) { return syscall(SYS_spawn, file); } 1d38: 2501 sext.w a0,a0 1d3a: 8082 ret 0000000000001d3c <mailread>: register long a7 __asm__("a7") = n; 1d3c: 19100893 li a7,401 __asm_syscall("r"(a7), "0"(a0), "r"(a1)) 1d40: 00000073 ecall int mailread(void *buf, int len) { return syscall(SYS_mailread, buf, len); } 1d44: 2501 sext.w a0,a0 1d46: 8082 ret 0000000000001d48 <mailwrite>: register long a7 __asm__("a7") = n; 1d48: 19200893 li a7,402 __asm_syscall("r"(a7), "0"(a0), "r"(a1), "r"(a2)) 1d4c: 00000073 ecall int mailwrite(int pid, void *buf, int len) { return syscall(SYS_mailwrite, pid, buf, len); } 1d50: 2501 sext.w a0,a0 1d52: 8082 ret 0000000000001d54 <fstat>: register long a7 __asm__("a7") = n; 1d54: 05000893 li a7,80 __asm_syscall("r"(a7), "0"(a0), "r"(a1)) 1d58: 00000073 ecall int fstat(int fd, struct kstat *st) { return syscall(SYS_fstat, fd, st); } 1d5c: 2501 sext.w a0,a0 1d5e: 8082 ret 0000000000001d60 <sys_linkat>: register long a4 __asm__("a4") = e; 1d60: 1702 slli a4,a4,0x20 register long a7 __asm__("a7") = n; 1d62: 02500893 li a7,37 register long a4 __asm__("a4") = e; 1d66: 9301 srli a4,a4,0x20 __asm_syscall("r"(a7), "0"(a0), "r"(a1), "r"(a2), "r"(a3), "r"(a4)) 1d68: 00000073 ecall int sys_linkat(int olddirfd, char *oldpath, int newdirfd, char *newpath, unsigned int flags) { return syscall(SYS_linkat, olddirfd, oldpath, newdirfd, newpath, flags); } 1d6c: 2501 sext.w a0,a0 1d6e: 8082 ret 0000000000001d70 <sys_unlinkat>: register long a2 __asm__("a2") = c; 1d70: 1602 slli a2,a2,0x20 register long a7 __asm__("a7") = n; 1d72: 02300893 li a7,35 register long a2 __asm__("a2") = c; 1d76: 9201 srli a2,a2,0x20 __asm_syscall("r"(a7), "0"(a0), "r"(a1), "r"(a2)) 1d78: 00000073 ecall int sys_unlinkat(int dirfd, char *path, unsigned int flags) { return syscall(SYS_unlinkat, dirfd, path, flags); } 1d7c: 2501 sext.w a0,a0 1d7e: 8082 ret 0000000000001d80 <link>: int link(char *old_path, char *new_path) { 1d80: 87aa mv a5,a0 1d82: 86ae mv a3,a1 register long a7 __asm__("a7") = n; 1d84: 02500893 li a7,37 register long a0 __asm__("a0") = a; 1d88: f9c00513 li a0,-100 register long a1 __asm__("a1") = b; 1d8c: 85be mv a1,a5 register long a2 __asm__("a2") = c; 1d8e: f9c00613 li a2,-100 register long a4 __asm__("a4") = e; 1d92: 4701 li a4,0 __asm_syscall("r"(a7), "0"(a0), "r"(a1), "r"(a2), "r"(a3), "r"(a4)) 1d94: 00000073 ecall return sys_linkat(AT_FDCWD, old_path, AT_FDCWD, new_path, 0); } 1d98: 2501 sext.w a0,a0 1d9a: 8082 ret 0000000000001d9c <unlink>: int unlink(char *path) { 1d9c: 85aa mv a1,a0 register long a7 __asm__("a7") = n; 1d9e: 02300893 li a7,35 register long a0 __asm__("a0") = a; 1da2: f9c00513 li a0,-100 register long a2 __asm__("a2") = c; 1da6: 4601 li a2,0 __asm_syscall("r"(a7), "0"(a0), "r"(a1), "r"(a2)) 1da8: 00000073 ecall return sys_unlinkat(AT_FDCWD, path, 0); } 1dac: 2501 sext.w a0,a0 1dae: 8082 ret 0000000000001db0 <uname>: register long a7 __asm__("a7") = n; 1db0: 0a000893 li a7,160 __asm_syscall("r"(a7), "0"(a0)) 1db4: 00000073 ecall int uname(void *buf) { return syscall(SYS_uname, buf); } 1db8: 2501 sext.w a0,a0 1dba: 8082 ret 0000000000001dbc <brk>: register long a7 __asm__("a7") = n; 1dbc: 0d600893 li a7,214 __asm_syscall("r"(a7), "0"(a0)) 1dc0: 00000073 ecall int brk(void *addr) { return syscall(SYS_brk, addr); } 1dc4: 2501 sext.w a0,a0 1dc6: 8082 ret 0000000000001dc8 <getcwd>: register long a7 __asm__("a7") = n; 1dc8: 48c5 li a7,17 __asm_syscall("r"(a7), "0"(a0), "r"(a1)) 1dca: 00000073 ecall char *getcwd(char *buf, size_t size){ return syscall(SYS_getcwd, buf, size); } 1dce: 8082 ret 0000000000001dd0 <chdir>: register long a7 __asm__("a7") = n; 1dd0: 03100893 li a7,49 __asm_syscall("r"(a7), "0"(a0)) 1dd4: 00000073 ecall int chdir(const char *path){ return syscall(SYS_chdir, path); } 1dd8: 2501 sext.w a0,a0 1dda: 8082 ret 0000000000001ddc <mkdir>: int mkdir(const char *path, mode_t mode){ 1ddc: 862e mv a2,a1 1dde: 87aa mv a5,a0 register long a2 __asm__("a2") = c; 1de0: 1602 slli a2,a2,0x20 register long a7 __asm__("a7") = n; 1de2: 02200893 li a7,34 register long a0 __asm__("a0") = a; 1de6: f9c00513 li a0,-100 register long a1 __asm__("a1") = b; 1dea: 85be mv a1,a5 register long a2 __asm__("a2") = c; 1dec: 9201 srli a2,a2,0x20 __asm_syscall("r"(a7), "0"(a0), "r"(a1), "r"(a2)) 1dee: 00000073 ecall return syscall(SYS_mkdirat, AT_FDCWD, path, mode); } 1df2: 2501 sext.w a0,a0 1df4: 8082 ret 0000000000001df6 <getdents>: register long a7 __asm__("a7") = n; 1df6: 03d00893 li a7,61 __asm_syscall("r"(a7), "0"(a0), "r"(a1), "r"(a2)) 1dfa: 00000073 ecall int getdents(int fd, struct linux_dirent64 *dirp64, unsigned long len){ //return syscall(SYS_getdents64, fd, dirp64, len); return syscall(SYS_getdents64, fd, dirp64, len); } 1dfe: 2501 sext.w a0,a0 1e00: 8082 ret 0000000000001e02 <pipe>: register long a7 __asm__("a7") = n; 1e02: 03b00893 li a7,59 register long a1 __asm__("a1") = b; 1e06: 4581 li a1,0 __asm_syscall("r"(a7), "0"(a0), "r"(a1)) 1e08: 00000073 ecall int pipe(int fd[2]){ return syscall(SYS_pipe2, fd, 0); } 1e0c: 2501 sext.w a0,a0 1e0e: 8082 ret 0000000000001e10 <dup>: register long a7 __asm__("a7") = n; 1e10: 48dd li a7,23 __asm_syscall("r"(a7), "0"(a0)) 1e12: 00000073 ecall int dup(int fd){ return syscall(SYS_dup, fd); } 1e16: 2501 sext.w a0,a0 1e18: 8082 ret 0000000000001e1a <dup2>: register long a7 __asm__("a7") = n; 1e1a: 48e1 li a7,24 register long a2 __asm__("a2") = c; 1e1c: 4601 li a2,0 __asm_syscall("r"(a7), "0"(a0), "r"(a1), "r"(a2)) 1e1e: 00000073 ecall int dup2(int old, int new){ return syscall(SYS_dup3, old, new, 0); } 1e22: 2501 sext.w a0,a0 1e24: 8082 ret 0000000000001e26 <mount>: register long a7 __asm__("a7") = n; 1e26: 02800893 li a7,40 __asm_syscall("r"(a7), "0"(a0), "r"(a1), "r"(a2), "r"(a3), "r"(a4)) 1e2a: 00000073 ecall int mount(const char *special, const char *dir, const char *fstype, unsigned long flags, const void *data) { return syscall(SYS_mount, special, dir, fstype, flags, data); } 1e2e: 2501 sext.w a0,a0 1e30: 8082 ret 0000000000001e32 <umount>: register long a7 __asm__("a7") = n; 1e32: 02700893 li a7,39 register long a1 __asm__("a1") = b; 1e36: 4581 li a1,0 __asm_syscall("r"(a7), "0"(a0), "r"(a1)) 1e38: 00000073 ecall int umount(const char *special) { return syscall(SYS_umount2, special, 0); } 1e3c: 2501 sext.w a0,a0 1e3e: 8082 ret 0000000000001e40 <__clone>: .global __clone .type __clone, %function __clone: # Save func and arg to stack addi a1, a1, -16 1e40: 15c1 addi a1,a1,-16 sd a0, 0(a1) 1e42: e188 sd a0,0(a1) sd a3, 8(a1) 1e44: e594 sd a3,8(a1) # Call SYS_clone mv a0, a2 1e46: 8532 mv a0,a2 mv a2, a4 1e48: 863a mv a2,a4 mv a3, a5 1e4a: 86be mv a3,a5 mv a4, a6 1e4c: 8742 mv a4,a6 li a7, 220 # SYS_clone 1e4e: 0dc00893 li a7,220 ecall 1e52: 00000073 ecall beqz a0, 1f 1e56: c111 beqz a0,1e5a <__clone+0x1a> # Parent ret 1e58: 8082 ret # Child 1: ld a1, 0(sp) 1e5a: 6582 ld a1,0(sp) ld a0, 8(sp) 1e5c: 6522 ld a0,8(sp) jalr a1 1e5e: 9582 jalr a1 # Exit li a7, 93 # SYS_exit 1e60: 05d00893 li a7,93 ecall 1e64: 00000073 ecall
35.699127
145
0.475842
9ded76e5d78c3d36b579d4a27de514261a090a96
169,873
asm
Assembly
src/presets/100early_data.asm
tewtal/sm_practice_hack
2e435012a4259035cb69b0d3bc90a221cb5de37d
[ "Unlicense" ]
15
2019-02-23T20:38:49.000Z
2022-02-18T01:14:04.000Z
src/presets/100early_data.asm
tewtal/sm_practice_hack
2e435012a4259035cb69b0d3bc90a221cb5de37d
[ "Unlicense" ]
50
2019-03-06T22:02:17.000Z
2022-03-31T05:25:54.000Z
src/presets/100early_data.asm
tewtal/sm_practice_hack
2e435012a4259035cb69b0d3bc90a221cb5de37d
[ "Unlicense" ]
20
2019-02-23T20:40:53.000Z
2022-02-22T17:44:45.000Z
preset_100early_crateria_ceres_elevator: dw #$0000 dl $7E078B : db $02 : dw $0000 ; Elevator Index dl $7E078D : db $02 : dw $AB58 ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $DF45 ; MDB dl $7E079F : db $02 : dw $0006 ; Region dl $7E07C3 : db $02 : dw $E22A ; GFX Pointers dl $7E07C5 : db $02 : dw $04C0 ; GFX Pointers dl $7E07C7 : db $02 : dw $C2C1 ; GFX Pointers dl $7E07F3 : db $02 : dw $002D ; Music Bank dl $7E07F5 : db $02 : dw $0006 ; Music Track dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E093F : db $02 : dw $0000 ; Ceres escape flag dl $7E09A2 : db $02 : dw $0000 ; Equipped Items dl $7E09A4 : db $02 : dw $0000 ; Collected Items dl $7E09A6 : db $02 : dw $0000 ; Beams dl $7E09A8 : db $02 : dw $0000 ; Beams dl $7E09C0 : db $02 : dw $0000 ; Manual/Auto reserve tank dl $7E09C2 : db $02 : dw $0063 ; Health dl $7E09C4 : db $02 : dw $0063 ; Max helath dl $7E09C6 : db $02 : dw $0000 ; Missiles dl $7E09C8 : db $02 : dw $0000 ; Max missiles dl $7E09CA : db $02 : dw $0000 ; Supers dl $7E09CC : db $02 : dw $0000 ; Max supers dl $7E09CE : db $02 : dw $0000 ; Pbs dl $7E09D0 : db $02 : dw $0000 ; Max pbs dl $7E09D2 : db $02 : dw $0000 ; Currently selected item dl $7E09D4 : db $02 : dw $0000 ; Max reserves dl $7E09D6 : db $02 : dw $0000 ; Reserves dl $7E0A1C : db $02 : dw $0000 ; Samus position/state dl $7E0A1E : db $02 : dw $0000 ; More position/state dl $7E0A68 : db $02 : dw $0000 ; Flash suit dl $7E0A76 : db $02 : dw $0000 ; Hyper beam dl $7E0AF6 : db $02 : dw $0080 ; Samus X dl $7E0AFA : db $02 : dw $0048 ; Samus Y dl $7E0B3F : db $02 : dw $0000 ; Blue suit dl $7ED7C0 : db $02 : dw $0000 ; SRAM copy dl $7ED7C2 : db $02 : dw $0000 ; SRAM copy dl $7ED7C4 : db $02 : dw $0000 ; SRAM copy dl $7ED7C6 : db $02 : dw $0000 ; SRAM copy dl $7ED7C8 : db $02 : dw $0800 ; SRAM copy dl $7ED7CA : db $02 : dw $0400 ; SRAM copy dl $7ED7CC : db $02 : dw $0200 ; SRAM copy dl $7ED7CE : db $02 : dw $0100 ; SRAM copy dl $7ED7D0 : db $02 : dw $4000 ; SRAM copy dl $7ED7D2 : db $02 : dw $0080 ; SRAM copy dl $7ED7D4 : db $02 : dw $8000 ; SRAM copy dl $7ED7D6 : db $02 : dw $0040 ; SRAM copy dl $7ED7D8 : db $02 : dw $2000 ; SRAM copy dl $7ED7DA : db $02 : dw $0020 ; SRAM copy dl $7ED7DC : db $02 : dw $0010 ; SRAM copy dl $7ED7DE : db $02 : dw $0000 ; SRAM copy dl $7ED7E0 : db $02 : dw $0063 ; SRAM copy dl $7ED7E2 : db $02 : dw $0063 ; SRAM copy dl $7ED7E4 : db $02 : dw $0000 ; SRAM copy dl $7ED7E6 : db $02 : dw $0000 ; SRAM copy dl $7ED7E8 : db $02 : dw $0000 ; SRAM copy dl $7ED7EA : db $02 : dw $0000 ; SRAM copy dl $7ED7EC : db $02 : dw $0000 ; SRAM copy dl $7ED7EE : db $02 : dw $0000 ; SRAM copy dl $7ED7F0 : db $02 : dw $0000 ; SRAM copy dl $7ED7F2 : db $02 : dw $0000 ; SRAM copy dl $7ED7F4 : db $02 : dw $0000 ; SRAM copy dl $7ED7F6 : db $02 : dw $0000 ; SRAM copy dl $7ED7F8 : db $02 : dw $0000 ; SRAM copy dl $7ED7FA : db $02 : dw $0000 ; SRAM copy dl $7ED7FC : db $02 : dw $0000 ; SRAM copy dl $7ED7FE : db $02 : dw $0000 ; SRAM copy dl $7ED800 : db $02 : dw $0000 ; SRAM copy dl $7ED802 : db $02 : dw $0000 ; SRAM copy dl $7ED804 : db $02 : dw $0001 ; SRAM copy dl $7ED806 : db $02 : dw $0001 ; SRAM copy dl $7ED808 : db $02 : dw $0000 ; SRAM copy dl $7ED80A : db $02 : dw $0000 ; SRAM copy dl $7ED80C : db $02 : dw $0000 ; SRAM copy dl $7ED80E : db $02 : dw $0000 ; SRAM copy dl $7ED810 : db $02 : dw $0000 ; SRAM copy dl $7ED812 : db $02 : dw $0000 ; SRAM copy dl $7ED814 : db $02 : dw $0000 ; SRAM copy dl $7ED816 : db $02 : dw $0000 ; SRAM copy dl $7ED818 : db $02 : dw $0000 ; SRAM copy dl $7ED81A : db $02 : dw $0000 ; SRAM copy dl $7ED81C : db $02 : dw $0000 ; SRAM copy dl $7ED81E : db $02 : dw $0000 ; SRAM copy dl $7ED820 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED822 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED824 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED826 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED828 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED82A : db $02 : dw $0000 ; Events, Items, Doors dl $7ED82C : db $02 : dw $0000 ; Events, Items, Doors dl $7ED82E : db $02 : dw $0000 ; Events, Items, Doors dl $7ED830 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED832 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED834 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED836 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED838 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED83A : db $02 : dw $0000 ; Events, Items, Doors dl $7ED83C : db $02 : dw $0000 ; Events, Items, Doors dl $7ED83E : db $02 : dw $0000 ; Events, Items, Doors dl $7ED840 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED842 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED844 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED846 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED848 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED84A : db $02 : dw $0000 ; Events, Items, Doors dl $7ED84C : db $02 : dw $0000 ; Events, Items, Doors dl $7ED84E : db $02 : dw $0000 ; Events, Items, Doors dl $7ED850 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED852 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED854 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED856 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED858 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED85A : db $02 : dw $0000 ; Events, Items, Doors dl $7ED85C : db $02 : dw $0000 ; Events, Items, Doors dl $7ED85E : db $02 : dw $0000 ; Events, Items, Doors dl $7ED860 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED862 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED864 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED866 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED868 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED86A : db $02 : dw $0000 ; Events, Items, Doors dl $7ED86C : db $02 : dw $0000 ; Events, Items, Doors dl $7ED86E : db $02 : dw $0000 ; Events, Items, Doors dl $7ED870 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED872 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED874 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED876 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED878 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED87A : db $02 : dw $0000 ; Events, Items, Doors dl $7ED87C : db $02 : dw $0000 ; Events, Items, Doors dl $7ED87E : db $02 : dw $0000 ; Events, Items, Doors dl $7ED880 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED882 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED884 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED886 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED888 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED88A : db $02 : dw $0000 ; Events, Items, Doors dl $7ED88C : db $02 : dw $0000 ; Events, Items, Doors dl $7ED88E : db $02 : dw $0000 ; Events, Items, Doors dl $7ED890 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED892 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED894 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED896 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED898 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED89A : db $02 : dw $0000 ; Events, Items, Doors dl $7ED89C : db $02 : dw $0000 ; Events, Items, Doors dl $7ED89E : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8A0 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8A2 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8A4 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8A6 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8A8 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8AA : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8AC : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8AE : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8B0 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8B2 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8B4 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8B6 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8B8 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8BA : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8BC : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8BE : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8C0 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8C2 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8C4 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8C6 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8C8 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8CA : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8CC : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8CE : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8D0 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8D2 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8D4 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8D6 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8D8 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8DA : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8DC : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8DE : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8E0 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8E2 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8E4 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8E6 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8E8 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8EA : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8EC : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8EE : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8F0 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8F2 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8F4 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8F6 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8F8 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8FA : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8FC : db $02 : dw $0000 ; Events, Items, Doors dl $7ED8FE : db $02 : dw $0000 ; Events, Items, Doors dl $7ED900 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED902 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED904 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED906 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED908 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED90A : db $02 : dw $0000 ; Events, Items, Doors dl $7ED90C : db $02 : dw $0000 ; Events, Items, Doors dl $7ED90E : db $02 : dw $0000 ; Events, Items, Doors dl $7ED910 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED912 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED914 : db $02 : dw $001F ; Events, Items, Doors dl $7ED916 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED918 : db $02 : dw $0006 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0000 ; Events, Items, Doors dl $7ED91C : db $02 : dw $0000 ; Events, Items, Doors dl $7ED91E : db $02 : dw $0000 ; Events, Items, Doors dw #$FFFF .after preset_100early_crateria_ceres_last_3_rooms: dw #preset_100early_crateria_ceres_elevator ; Crateria: Ceres Elevator dl $7E078D : db $02 : dw $ABA0 ; DDB dl $7E079B : db $02 : dw $E021 ; MDB dl $7E07C3 : db $02 : dw $B004 ; GFX Pointers dl $7E07C5 : db $02 : dw $E3C0 ; GFX Pointers dl $7E07F3 : db $02 : dw $0024 ; Music Bank dl $7E07F5 : db $02 : dw $0007 ; Music Track dl $7E090F : db $02 : dw $0900 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $AC00 ; Screen subpixel Y position dl $7E093F : db $02 : dw $0002 ; Ceres escape flag dl $7E09C2 : db $02 : dw $0018 ; Health dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0047 ; Samus X dl $7E0AFA : db $02 : dw $009B ; Samus Y dl $7ED82E : db $02 : dw $0001 ; Events, Items, Doors dw #$FFFF .after preset_100early_crateria_ship: dw #preset_100early_crateria_ceres_last_3_rooms ; Crateria: Ceres Last 3 Rooms dl $7E078D : db $02 : dw $88FE ; DDB dl $7E079B : db $02 : dw $91F8 ; MDB dl $7E079F : db $02 : dw $0000 ; Region dl $7E07C3 : db $02 : dw $C629 ; GFX Pointers dl $7E07C5 : db $02 : dw $7CBA ; GFX Pointers dl $7E07C7 : db $02 : dw $C2AD ; GFX Pointers dl $7E07F3 : db $02 : dw $0006 ; Music Bank dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0400 ; Screen X position in pixels dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $03D0 ; Screen Y position in pixels dl $7E093F : db $02 : dw $0000 ; Ceres escape flag dl $7E09C2 : db $02 : dw $0063 ; Health dl $7E0A1C : db $02 : dw $0000 ; Samus position/state dl $7E0A1E : db $02 : dw $0000 ; More position/state dl $7E0AF6 : db $02 : dw $0481 ; Samus X dl $7E0AFA : db $02 : dw $0440 ; Samus Y dl $7ED7F8 : db $02 : dw $0001 ; SRAM copy dl $7ED7FA : db $02 : dw $0007 ; SRAM copy dl $7ED7FC : db $02 : dw $0001 ; SRAM copy dl $7ED8F8 : db $02 : dw $0001 ; Events, Items, Doors dl $7ED914 : db $02 : dw $0005 ; Events, Items, Doors dl $7ED918 : db $02 : dw $0000 ; Events, Items, Doors dl $7ED91C : db $02 : dw $1010 ; Events, Items, Doors dw #$FFFF .after preset_100early_crateria_pit_room: dw #preset_100early_crateria_ship ; Crateria: Ship dl $7E078D : db $02 : dw $898E ; DDB dl $7E078F : db $02 : dw $0004 ; DoorOut Index dl $7E079B : db $02 : dw $96BA ; MDB dl $7E07C3 : db $02 : dw $F911 ; GFX Pointers dl $7E07C5 : db $02 : dw $15BA ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B0 ; GFX Pointers dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $2000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0800 ; Screen Y position in pixels dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $01DB ; Samus X dl $7E0AFA : db $02 : dw $088B ; Samus Y dw #$FFFF .after preset_100early_crateria_morph: dw #preset_100early_crateria_pit_room ; Crateria: Pit Room dl $7E078D : db $02 : dw $8B9E ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $9E9F ; MDB dl $7E079F : db $02 : dw $0001 ; Region dl $7E07C3 : db $02 : dw $E6B0 ; GFX Pointers dl $7E07C5 : db $02 : dw $64BB ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B2 ; GFX Pointers dl $7E07F5 : db $02 : dw $0007 ; Music Track dl $7E090F : db $02 : dw $6000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0500 ; Screen X position in pixels dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0200 ; Screen Y position in pixels dl $7E0A1C : db $02 : dw $0000 ; Samus position/state dl $7E0A1E : db $02 : dw $0000 ; More position/state dl $7E0AF6 : db $02 : dw $0580 ; Samus X dl $7E0AFA : db $02 : dw $02A8 ; Samus Y dl $7ED91A : db $02 : dw $0001 ; Events, Items, Doors dw #$FFFF .after preset_100early_crateria_pit_room_revisit: dw #preset_100early_crateria_morph ; Crateria: Morph dl $7E078D : db $02 : dw $8EB6 ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $97B5 ; MDB dl $7E079F : db $02 : dw $0000 ; Region dl $7E07C3 : db $02 : dw $F911 ; GFX Pointers dl $7E07C5 : db $02 : dw $43BA ; GFX Pointers dl $7E07C7 : db $02 : dw $C2AF ; GFX Pointers dl $7E07F5 : db $02 : dw $0003 ; Music Track dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09A2 : db $02 : dw $0004 ; Equipped Items dl $7E09A4 : db $02 : dw $0004 ; Collected Items dl $7E09C6 : db $02 : dw $0005 ; Missiles dl $7E09C8 : db $02 : dw $0005 ; Max missiles dl $7E0AF6 : db $02 : dw $0080 ; Samus X dl $7E0AFA : db $02 : dw $0088 ; Samus Y dl $7ED872 : db $02 : dw $0400 ; Events, Items, Doors dl $7ED874 : db $02 : dw $0004 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0003 ; Events, Items, Doors dw #$FFFF .after preset_100early_crateria_climb: dw #preset_100early_crateria_pit_room_revisit ; Crateria: Pit Room Revisit dl $7E078D : db $02 : dw $8B92 ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $975C ; MDB dl $7E07F3 : db $02 : dw $0009 ; Music Bank dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $2000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $AC00 ; Screen subpixel Y position dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0087 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED820 : db $02 : dw $0001 ; Events, Items, Doors dl $7ED8B2 : db $02 : dw $0400 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0004 ; Events, Items, Doors dw #$FFFF .after preset_100early_crateria_parlor_revisit: dw #preset_100early_crateria_climb ; Crateria: Climb dl $7E078D : db $02 : dw $8B7A ; DDB dl $7E079B : db $02 : dw $96BA ; MDB dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $D400 ; Screen subpixel Y position dl $7E0AF6 : db $02 : dw $019F ; Samus X dl $7E0AFA : db $02 : dw $005B ; Samus Y dw #$FFFF .after preset_100early_crateria_bomb_torizo: dw #preset_100early_crateria_parlor_revisit ; Crateria: Parlor Revisit dl $7E078D : db $02 : dw $8982 ; DDB dl $7E078F : db $02 : dw $0003 ; DoorOut Index dl $7E079B : db $02 : dw $9879 ; MDB dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0200 ; Screen X position in pixels dl $7E0913 : db $02 : dw $8C00 ; Screen subpixel Y position dl $7E09C6 : db $02 : dw $0000 ; Missiles dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $02C8 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED8B2 : db $02 : dw $2400 ; Events, Items, Doors dw #$FFFF .after preset_100early_crateria_alcatraz: dw #preset_100early_crateria_bomb_torizo ; Crateria: Bomb Torizo dl $7E078D : db $02 : dw $8BAA ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $1800 ; Screen subpixel Y position dl $7E09A2 : db $02 : dw $1004 ; Equipped Items dl $7E09A4 : db $02 : dw $1004 ; Collected Items dl $7E09C6 : db $02 : dw $0005 ; Missiles dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0037 ; Samus X dl $7ED828 : db $02 : dw $0004 ; Events, Items, Doors dl $7ED870 : db $02 : dw $0080 ; Events, Items, Doors dl $7ED8B2 : db $02 : dw $2C00 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0005 ; Events, Items, Doors dw #$FFFF .after preset_100early_crateria_terminator: dw #preset_100early_crateria_alcatraz ; Crateria: Alcatraz dl $7E078D : db $02 : dw $8BB6 ; DDB dl $7E079B : db $02 : dw $92FD ; MDB dl $7E07C3 : db $02 : dw $C629 ; GFX Pointers dl $7E07C5 : db $02 : dw $7CBA ; GFX Pointers dl $7E07C7 : db $02 : dw $C2AD ; GFX Pointers dl $7E090F : db $02 : dw $6000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $5800 ; Screen subpixel Y position dl $7E0A1C : db $02 : dw $008A ; Samus position/state dl $7E0A1E : db $02 : dw $1504 ; More position/state dl $7E0AF6 : db $02 : dw $0115 ; Samus X dw #$FFFF .after preset_100early_crateria_green_pirate_shaft: dw #preset_100early_crateria_terminator ; Crateria: Terminator dl $7E078D : db $02 : dw $895E ; DDB dl $7E079B : db $02 : dw $990D ; MDB dl $7E07C3 : db $02 : dw $F911 ; GFX Pointers dl $7E07C5 : db $02 : dw $43BA ; GFX Pointers dl $7E07C7 : db $02 : dw $C2AF ; GFX Pointers dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $01FD ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $00C7 ; Health dl $7E09C4 : db $02 : dw $00C7 ; Max helath dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0077 ; Samus X dl $7E0AFA : db $02 : dw $029B ; Samus Y dl $7ED870 : db $02 : dw $0180 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0006 ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_green_brinstar: dw #preset_100early_crateria_green_pirate_shaft ; Crateria: Green Pirate Shaft dl $7E078D : db $02 : dw $8C22 ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $9938 ; MDB dl $7E07F5 : db $02 : dw $0003 ; Music Track dl $7E0913 : db $02 : dw $1800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $008B ; Health dl $7E0AF6 : db $02 : dw $0080 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED91A : db $02 : dw $0008 ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_early_supers: dw #preset_100early_brinstar_green_brinstar ; Brinstar: Green Brinstar dl $7E078D : db $02 : dw $8C0A ; DDB dl $7E078F : db $02 : dw $0009 ; DoorOut Index dl $7E079B : db $02 : dw $9AD9 ; MDB dl $7E079F : db $02 : dw $0001 ; Region dl $7E07C3 : db $02 : dw $E6B0 ; GFX Pointers dl $7E07C5 : db $02 : dw $64BB ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B2 ; GFX Pointers dl $7E07F3 : db $02 : dw $000F ; Music Bank dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $041C ; Screen Y position in pixels dl $7E09C6 : db $02 : dw $0000 ; Missiles dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $00A6 ; Samus X dl $7E0AFA : db $02 : dw $048B ; Samus Y dl $7ED8B4 : db $02 : dw $0002 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0009 ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_reverse_mockball: dw #preset_100early_brinstar_early_supers ; Brinstar: Early Supers dl $7E078D : db $02 : dw $8D5A ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $9C07 ; MDB dl $7E07F5 : db $02 : dw $0003 ; Music Track dl $7E090F : db $02 : dw $0001 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $3400 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C0 : db $02 : dw $0001 ; Manual/Auto reserve tank dl $7E09C2 : db $02 : dw $0077 ; Health dl $7E09C6 : db $02 : dw $000A ; Missiles dl $7E09C8 : db $02 : dw $000F ; Max missiles dl $7E09CA : db $02 : dw $0004 ; Supers dl $7E09CC : db $02 : dw $0005 ; Max supers dl $7E09D4 : db $02 : dw $0064 ; Max reserves dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0044 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED872 : db $02 : dw $040F ; Events, Items, Doors dl $7ED8B4 : db $02 : dw $0042 ; Events, Items, Doors dl $7ED91A : db $02 : dw $000E ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_dachora_room: dw #preset_100early_brinstar_reverse_mockball ; Brinstar: Reverse Mockball dl $7E078D : db $02 : dw $8D4E ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $9AD9 ; MDB dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $D000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $061A ; Screen Y position in pixels dl $7E09C6 : db $02 : dw $000F ; Missiles dl $7E09C8 : db $02 : dw $0014 ; Max missiles dl $7E09CA : db $02 : dw $0003 ; Supers dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $0056 ; Samus X dl $7E0AFA : db $02 : dw $068B ; Samus Y dl $7ED870 : db $02 : dw $8180 ; Events, Items, Doors dl $7ED8B4 : db $02 : dw $0046 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0011 ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_big_pink: dw #preset_100early_brinstar_dachora_room ; Brinstar: Dachora Room dl $7E078D : db $02 : dw $8CE2 ; DDB dl $7E078F : db $02 : dw $0005 ; DoorOut Index dl $7E079B : db $02 : dw $9CB3 ; MDB dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0600 ; Screen X position in pixels dl $7E0913 : db $02 : dw $2C00 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $008B ; Health dl $7E0AF6 : db $02 : dw $06A3 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dw #$FFFF .after preset_100early_brinstar_green_hill_zone: dw #preset_100early_brinstar_big_pink ; Brinstar: Big Pink dl $7E078D : db $02 : dw $8DAE ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $9D19 ; MDB dl $7E090F : db $02 : dw $B000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0300 ; Screen X position in pixels dl $7E0913 : db $02 : dw $73FF ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0617 ; Screen Y position in pixels dl $7E09A6 : db $02 : dw $1000 ; Beams dl $7E09A8 : db $02 : dw $1000 ; Beams dl $7E09CA : db $02 : dw $0002 ; Supers dl $7E0AF6 : db $02 : dw $0382 ; Samus X dl $7E0AFA : db $02 : dw $068B ; Samus Y dl $7ED872 : db $02 : dw $048F ; Events, Items, Doors dl $7ED8B4 : db $02 : dw $0246 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0014 ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_red_tower: dw #preset_100early_brinstar_green_hill_zone ; Brinstar: Green Hill Zone dl $7E078D : db $02 : dw $8E92 ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $9FBA ; MDB dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0500 ; Screen X position in pixels dl $7E0913 : db $02 : dw $7000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09CA : db $02 : dw $0003 ; Supers dl $7E0AF6 : db $02 : dw $0568 ; Samus X dl $7E0AFA : db $02 : dw $00AB ; Samus Y dl $7ED8B6 : db $02 : dw $0008 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0015 ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_skree_boost: dw #preset_100early_brinstar_red_tower ; Brinstar: Red Tower dl $7E078D : db $02 : dw $8F0A ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $A253 ; MDB dl $7E07C3 : db $02 : dw $A5AA ; GFX Pointers dl $7E07C5 : db $02 : dw $5FBC ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B3 ; GFX Pointers dl $7E07F3 : db $02 : dw $0012 ; Music Bank dl $7E090F : db $02 : dw $D000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $091A ; Screen Y position in pixels dl $7E0AF6 : db $02 : dw $0066 ; Samus X dl $7E0AFA : db $02 : dw $098B ; Samus Y dw #$FFFF .after preset_100early_brinstar_kraid_entry: dw #preset_100early_brinstar_skree_boost ; Brinstar: Skree Boost dl $7E078D : db $02 : dw $A348 ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $CF80 ; MDB dl $7E079F : db $02 : dw $0004 ; Region dl $7E07C3 : db $02 : dw $B130 ; GFX Pointers dl $7E07C5 : db $02 : dw $3CBE ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B8 ; GFX Pointers dl $7E090F : db $02 : dw $3000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $B000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0100 ; Screen Y position in pixels dl $7E09A6 : db $02 : dw $1004 ; Beams dl $7E09A8 : db $02 : dw $1004 ; Beams dl $7E09C2 : db $02 : dw $008C ; Health dl $7E0AF6 : db $02 : dw $0050 ; Samus X dl $7E0AFA : db $02 : dw $018B ; Samus Y dl $7ED874 : db $02 : dw $0404 ; Events, Items, Doors dl $7ED8B6 : db $02 : dw $8008 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0016 ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_kraid: dw #preset_100early_brinstar_kraid_entry ; Brinstar: Kraid Entry dl $7E078D : db $02 : dw $919E ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $A56B ; MDB dl $7E079F : db $02 : dw $0001 ; Region dl $7E07C3 : db $02 : dw $A5AA ; GFX Pointers dl $7E07C5 : db $02 : dw $5FBC ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B3 ; GFX Pointers dl $7E07F3 : db $02 : dw $0027 ; Music Bank dl $7E07F5 : db $02 : dw $0006 ; Music Track dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $3800 ; Screen subpixel Y position dl $7E09C2 : db $02 : dw $0062 ; Health dl $7E09C6 : db $02 : dw $000D ; Missiles dl $7E09CA : db $02 : dw $0004 ; Supers dl $7E0AF6 : db $02 : dw $01C0 ; Samus X dl $7ED8B8 : db $02 : dw $0024 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0017 ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_leaving_varia: dw #preset_100early_brinstar_kraid ; Brinstar: Kraid dl $7E078D : db $02 : dw $91DA ; DDB dl $7E079B : db $02 : dw $A6E2 ; MDB dl $7E07F5 : db $02 : dw $0003 ; Music Track dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $1C00 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09A2 : db $02 : dw $1005 ; Equipped Items dl $7E09A4 : db $02 : dw $1005 ; Collected Items dl $7E09C2 : db $02 : dw $00A1 ; Health dl $7E09C6 : db $02 : dw $0011 ; Missiles dl $7E09CA : db $02 : dw $0003 ; Supers dl $7E0A1C : db $02 : dw $009B ; Samus position/state dl $7E0A1E : db $02 : dw $0000 ; More position/state dl $7E0AF6 : db $02 : dw $0078 ; Samus X dl $7E0AFA : db $02 : dw $0088 ; Samus Y dl $7ED828 : db $02 : dw $0104 ; Events, Items, Doors dl $7ED876 : db $02 : dw $0001 ; Events, Items, Doors dl $7ED8B8 : db $02 : dw $0064 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0018 ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_leaving_kraid_hallway: dw #preset_100early_brinstar_leaving_varia ; Brinstar: Leaving Varia dl $7E078D : db $02 : dw $91AA ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $A521 ; MDB dl $7E090F : db $02 : dw $3000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $4000 ; Screen subpixel Y position dl $7E09C2 : db $02 : dw $0099 ; Health dl $7E09C6 : db $02 : dw $0010 ; Missiles dl $7E09CA : db $02 : dw $0005 ; Supers dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0087 ; Samus X dl $7E0AFA : db $02 : dw $00AB ; Samus Y dl $7ED8B8 : db $02 : dw $00EC ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_leaving_kraid_etank: dw #preset_100early_brinstar_leaving_kraid_hallway ; Brinstar: Leaving Kraid Hallway dl $7E078D : db $02 : dw $914A ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $A4B1 ; MDB dl $7E07F3 : db $02 : dw $0012 ; Music Bank dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $2000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $1C00 ; Screen subpixel Y position dl $7E09C2 : db $02 : dw $012B ; Health dl $7E09C4 : db $02 : dw $012B ; Max helath dl $7E09D6 : db $02 : dw $0014 ; Reserves dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $008D ; Samus X dl $7E0AFA : db $02 : dw $009B ; Samus Y dl $7ED874 : db $02 : dw $0C04 ; Events, Items, Doors dl $7ED8B8 : db $02 : dw $00EF ; Events, Items, Doors dl $7ED91A : db $02 : dw $001A ; Events, Items, Doors dw #$FFFF .after preset_100early_upper_norfair_business_center: dw #preset_100early_brinstar_leaving_kraid_etank ; Brinstar: Leaving Kraid E-Tank dl $7E078D : db $02 : dw $9246 ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $A7DE ; MDB dl $7E079F : db $02 : dw $0002 ; Region dl $7E07C3 : db $02 : dw $C3F9 ; GFX Pointers dl $7E07C5 : db $02 : dw $BBBD ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B6 ; GFX Pointers dl $7E07F3 : db $02 : dw $0015 ; Music Bank dl $7E090F : db $02 : dw $A000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0238 ; Screen Y position in pixels dl $7E09C6 : db $02 : dw $0012 ; Missiles dl $7E09CA : db $02 : dw $0004 ; Supers dl $7E0A1C : db $02 : dw $009B ; Samus position/state dl $7E0A1E : db $02 : dw $0000 ; More position/state dl $7E0AF6 : db $02 : dw $0080 ; Samus X dl $7E0AFA : db $02 : dw $02A8 ; Samus Y dw #$FFFF .after preset_100early_upper_norfair_hijump: dw #preset_100early_upper_norfair_business_center ; Upper Norfair: Business Center dl $7E078F : db $02 : dw $0005 ; DoorOut Index dl $7E090F : db $02 : dw $9000 ; Screen subpixel X position. dl $7E0915 : db $02 : dw $051B ; Screen Y position in pixels dl $7E09CA : db $02 : dw $0003 ; Supers dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0046 ; Samus X dl $7E0AFA : db $02 : dw $058B ; Samus Y dl $7ED8B8 : db $02 : dw $20EF ; Events, Items, Doors dw #$FFFF .after preset_100early_upper_norfair_business_center_climb: dw #preset_100early_upper_norfair_hijump ; Upper Norfair: Hi-Jump dl $7E078D : db $02 : dw $93F6 ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $AA41 ; MDB dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $9400 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09A2 : db $02 : dw $1105 ; Equipped Items dl $7E09A4 : db $02 : dw $1105 ; Collected Items dl $7E09C2 : db $02 : dw $018F ; Health dl $7E09C4 : db $02 : dw $018F ; Max helath dl $7E09C6 : db $02 : dw $0017 ; Missiles dl $7E09C8 : db $02 : dw $0019 ; Max missiles dl $7E09D6 : db $02 : dw $0028 ; Reserves dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $01A3 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED876 : db $02 : dw $01A1 ; Events, Items, Doors dl $7ED8BA : db $02 : dw $0001 ; Events, Items, Doors dl $7ED91A : db $02 : dw $001F ; Events, Items, Doors dw #$FFFF .after preset_100early_upper_norfair_precathedral: dw #preset_100early_upper_norfair_business_center_climb ; Upper Norfair: Business Center Climb dl $7E078D : db $02 : dw $941A ; DDB dl $7E079B : db $02 : dw $A7DE ; MDB dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $BFFF ; Screen subpixel Y position dl $7E0915 : db $02 : dw $02F6 ; Screen Y position in pixels dl $7E0AF6 : db $02 : dw $00AB ; Samus X dl $7E0AFA : db $02 : dw $038B ; Samus Y dw #$FFFF .after preset_100early_upper_norfair_cathedral: dw #preset_100early_upper_norfair_precathedral ; Upper Norfair: Pre-Cathedral dl $7E078D : db $02 : dw $92CA ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $A7B3 ; MDB dl $7E07C5 : db $02 : dw $E4BD ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B5 ; GFX Pointers dl $7E090F : db $02 : dw $2000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0200 ; Screen X position in pixels dl $7E0913 : db $02 : dw $A000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0001 ; Screen Y position in pixels dl $7E09CA : db $02 : dw $0002 ; Supers dl $7E0AF6 : db $02 : dw $02A4 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED8B8 : db $02 : dw $24EF ; Events, Items, Doors dw #$FFFF .after preset_100early_upper_norfair_rising_tide: dw #preset_100early_upper_norfair_cathedral ; Upper Norfair: Cathedral dl $7E078D : db $02 : dw $92B2 ; DDB dl $7E079B : db $02 : dw $A788 ; MDB dl $7E090F : db $02 : dw $F000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $2800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0100 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0167 ; Health dl $7E09C6 : db $02 : dw $001D ; Missiles dl $7E09C8 : db $02 : dw $001E ; Max missiles dl $7E09CA : db $02 : dw $0001 ; Supers dl $7E0AF6 : db $02 : dw $02BB ; Samus X dl $7E0AFA : db $02 : dw $018B ; Samus Y dl $7ED876 : db $02 : dw $01A3 ; Events, Items, Doors dl $7ED8B8 : db $02 : dw $26EF ; Events, Items, Doors dl $7ED91A : db $02 : dw $0020 ; Events, Items, Doors dw #$FFFF .after preset_100early_upper_norfair_bubble_mountain: dw #preset_100early_upper_norfair_rising_tide ; Upper Norfair: Rising Tide dl $7E078D : db $02 : dw $929A ; DDB dl $7E079B : db $02 : dw $AFA3 ; MDB dl $7E090F : db $02 : dw $B000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0400 ; Screen X position in pixels dl $7E0913 : db $02 : dw $1000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0142 ; Health dl $7E0AF6 : db $02 : dw $04B0 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dw #$FFFF .after preset_100early_upper_norfair_bat_cave: dw #preset_100early_upper_norfair_bubble_mountain ; Upper Norfair: Bubble Mountain dl $7E078D : db $02 : dw $973E ; DDB dl $7E079B : db $02 : dw $ACB3 ; MDB dl $7E090F : db $02 : dw $A000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $C000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0003 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $015B ; Health dl $7E0AF6 : db $02 : dw $01BE ; Samus X dl $7ED8BA : db $02 : dw $0011 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0021 ; Events, Items, Doors dw #$FFFF .after preset_100early_upper_norfair_leaving_speed_booster: dw #preset_100early_upper_norfair_bat_cave ; Upper Norfair: Bat Cave dl $7E078D : db $02 : dw $95B2 ; DDB dl $7E079B : db $02 : dw $AD1B ; MDB dl $7E07F5 : db $02 : dw $0003 ; Music Track dl $7E090F : db $02 : dw $2000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $8C00 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09A2 : db $02 : dw $3105 ; Equipped Items dl $7E09A4 : db $02 : dw $3105 ; Collected Items dl $7E09C2 : db $02 : dw $0179 ; Health dl $7E09C8 : db $02 : dw $0023 ; Max missiles dl $7E09CA : db $02 : dw $0003 ; Supers dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0045 ; Samus X dl $7ED878 : db $02 : dw $0006 ; Events, Items, Doors dl $7ED8BA : db $02 : dw $0031 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0023 ; Events, Items, Doors dw #$FFFF .after preset_100early_upper_norfair_single_chamber: dw #preset_100early_upper_norfair_leaving_speed_booster ; Upper Norfair: Leaving Speed Booster dl $7E078D : db $02 : dw $97AA ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $ACB3 ; MDB dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0104 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $018A ; Health dl $7E09C6 : db $02 : dw $0021 ; Missiles dl $7E09CA : db $02 : dw $0004 ; Supers dl $7E09D6 : db $02 : dw $003A ; Reserves dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $01AD ; Samus X dl $7E0AFA : db $02 : dw $018B ; Samus Y dl $7ED822 : db $02 : dw $0020 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0025 ; Events, Items, Doors dw #$FFFF .after preset_100early_upper_norfair_double_chamber: dw #preset_100early_upper_norfair_single_chamber ; Upper Norfair: Single Chamber dl $7E078D : db $02 : dw $9582 ; DDB dl $7E078F : db $02 : dw $0004 ; DoorOut Index dl $7E079B : db $02 : dw $AD5E ; MDB dl $7E090F : db $02 : dw $B000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $FC00 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0126 ; Screen Y position in pixels dl $7E09C6 : db $02 : dw $001F ; Missiles dl $7E09CA : db $02 : dw $0003 ; Supers dl $7E0AF6 : db $02 : dw $00B8 ; Samus X dl $7ED8BA : db $02 : dw $0071 ; Events, Items, Doors dw #$FFFF .after preset_100early_upper_norfair_double_chamber_revisited: dw #preset_100early_upper_norfair_double_chamber ; Upper Norfair: Double Chamber dl $7E078D : db $02 : dw $961E ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $ADDE ; MDB dl $7E07F5 : db $02 : dw $0003 ; Music Track dl $7E090F : db $02 : dw $D000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $0400 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09A6 : db $02 : dw $1005 ; Beams dl $7E09A8 : db $02 : dw $1005 ; Beams dl $7E09C6 : db $02 : dw $0024 ; Missiles dl $7E09C8 : db $02 : dw $0028 ; Max missiles dl $7E09CA : db $02 : dw $0002 ; Supers dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $004F ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED878 : db $02 : dw $001E ; Events, Items, Doors dl $7ED8BA : db $02 : dw $00F1 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0027 ; Events, Items, Doors dw #$FFFF .after preset_100early_upper_norfair_bubble_mountain_revisited: dw #preset_100early_upper_norfair_double_chamber_revisited ; Upper Norfair: Double Chamber Revisited dl $7E078D : db $02 : dw $9606 ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $AD5E ; MDB dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $1000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $F800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $001B ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $018F ; Health dl $7E0AF6 : db $02 : dw $008F ; Samus X dl $7ED91A : db $02 : dw $0028 ; Events, Items, Doors dw #$FFFF .after preset_100early_upper_norfair_red_pirate_shaft: dw #preset_100early_upper_norfair_bubble_mountain_revisited ; Upper Norfair: Bubble Mountain Revisited dl $7E078D : db $02 : dw $956A ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $AF72 ; MDB dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $E000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $00ED ; Screen Y position in pixels dl $7E09CA : db $02 : dw $0003 ; Supers dl $7E09D6 : db $02 : dw $0053 ; Reserves dl $7E0AF6 : db $02 : dw $005B ; Samus X dl $7E0AFA : db $02 : dw $018B ; Samus Y dl $7ED91A : db $02 : dw $0029 ; Events, Items, Doors dw #$FFFF .after preset_100early_upper_norfair_crocomire: dw #preset_100early_upper_norfair_red_pirate_shaft ; Upper Norfair: Red Pirate Shaft dl $7E078D : db $02 : dw $974A ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $A923 ; MDB dl $7E0911 : db $02 : dw $0C00 ; Screen X position in pixels dl $7E0913 : db $02 : dw $4000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0200 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $018D ; Health dl $7E09CA : db $02 : dw $0002 ; Supers dl $7E0AF6 : db $02 : dw $0CD0 ; Samus X dl $7E0AFA : db $02 : dw $028B ; Samus Y dl $7ED8B8 : db $02 : dw $66EF ; Events, Items, Doors dw #$FFFF .after preset_100early_upper_norfair_postcrocomire: dw #preset_100early_upper_norfair_crocomire ; Upper Norfair: Crocomire dl $7E078D : db $02 : dw $93D2 ; DDB dl $7E078F : db $02 : dw $0004 ; DoorOut Index dl $7E079B : db $02 : dw $A98D ; MDB dl $7E07C3 : db $02 : dw $FE2A ; GFX Pointers dl $7E07C5 : db $02 : dw $98BD ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B7 ; GFX Pointers dl $7E07F3 : db $02 : dw $0027 ; Music Bank dl $7E07F5 : db $02 : dw $0006 ; Music Track dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $017B ; Screen X position in pixels dl $7E0913 : db $02 : dw $3800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $01F3 ; Health dl $7E09C4 : db $02 : dw $01F3 ; Max helath dl $7E09C6 : db $02 : dw $0028 ; Missiles dl $7E09CA : db $02 : dw $0002 ; Supers dl $7E09D6 : db $02 : dw $0064 ; Reserves dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $0217 ; Samus X dl $7E0AFA : db $02 : dw $009B ; Samus Y dl $7ED82A : db $02 : dw $0002 ; Events, Items, Doors dl $7ED876 : db $02 : dw $01B3 ; Events, Items, Doors dl $7ED91A : db $02 : dw $002A ; Events, Items, Doors dw #$FFFF .after preset_100early_upper_norfair_leaving_power_bombs: dw #preset_100early_upper_norfair_postcrocomire ; Upper Norfair: Post-Crocomire dl $7E078D : db $02 : dw $943E ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $AADE ; MDB dl $7E07C3 : db $02 : dw $C3F9 ; GFX Pointers dl $7E07C5 : db $02 : dw $E4BD ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B5 ; GFX Pointers dl $7E07F3 : db $02 : dw $0015 ; Music Bank dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $5000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $4400 ; Screen subpixel Y position dl $7E09C2 : db $02 : dw $01A2 ; Health dl $7E09CA : db $02 : dw $0001 ; Supers dl $7E09CE : db $02 : dw $0005 ; Pbs dl $7E09D0 : db $02 : dw $0005 ; Max pbs dl $7E0AF6 : db $02 : dw $00A7 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED876 : db $02 : dw $03B3 ; Events, Items, Doors dl $7ED8BA : db $02 : dw $00F3 ; Events, Items, Doors dl $7ED91A : db $02 : dw $002B ; Events, Items, Doors dw #$FFFF .after preset_100early_upper_norfair_postcrocomire_jump_room: dw #preset_100early_upper_norfair_leaving_power_bombs ; Upper Norfair: Leaving Power Bombs dl $7E078D : db $02 : dw $944A ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $AB07 ; MDB dl $7E07C5 : db $02 : dw $BBBD ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B6 ; GFX Pointers dl $7E090F : db $02 : dw $E000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $0800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $041F ; Screen Y position in pixels dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $00AB ; Samus X dl $7E0AFA : db $02 : dw $04BB ; Samus Y dw #$FFFF .after preset_100early_upper_norfair_leaving_grapple: dw #preset_100early_upper_norfair_postcrocomire_jump_room ; Upper Norfair: Post-Crocomire Jump Room dl $7E078D : db $02 : dw $94DA ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $AC2B ; MDB dl $7E07F5 : db $02 : dw $0003 ; Music Track dl $7E090F : db $02 : dw $4000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $F000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0200 ; Screen Y position in pixels dl $7E09A2 : db $02 : dw $7105 ; Equipped Items dl $7E09A4 : db $02 : dw $7105 ; Collected Items dl $7E09C2 : db $02 : dw $01B6 ; Health dl $7E09CE : db $02 : dw $0004 ; Pbs dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $0055 ; Samus X dl $7E0AFA : db $02 : dw $028B ; Samus Y dl $7ED876 : db $02 : dw $13B3 ; Events, Items, Doors dl $7ED91A : db $02 : dw $002D ; Events, Items, Doors dw #$FFFF .after preset_100early_upper_norfair_postcrocomire_missiles: dw #preset_100early_upper_norfair_leaving_grapple ; Upper Norfair: Leaving Grapple dl $7E078D : db $02 : dw $94CE ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $AB07 ; MDB dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $B781 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $02F4 ; Screen Y position in pixels dl $7E09C8 : db $02 : dw $002D ; Max missiles dl $7E0AF6 : db $02 : dw $00BB ; Samus X dl $7E0AFA : db $02 : dw $038B ; Samus Y dl $7ED876 : db $02 : dw $1BB3 ; Events, Items, Doors dl $7ED8BA : db $02 : dw $00F7 ; Events, Items, Doors dl $7ED91A : db $02 : dw $002E ; Events, Items, Doors dw #$FFFF .after preset_100early_upper_norfair_crocomire_revisit: dw #preset_100early_upper_norfair_postcrocomire_missiles ; Upper Norfair: Post-Crocomire Missiles dl $7E078D : db $02 : dw $947A ; DDB dl $7E079B : db $02 : dw $AA82 ; MDB dl $7E07C5 : db $02 : dw $E4BD ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B5 ; GFX Pointers dl $7E090F : db $02 : dw $3D00 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $6C00 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $016A ; Health dl $7E09C6 : db $02 : dw $0032 ; Missiles dl $7E09C8 : db $02 : dw $0032 ; Max missiles dl $7E09CA : db $02 : dw $0004 ; Supers dl $7E0AF6 : db $02 : dw $01BF ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED876 : db $02 : dw $1FB3 ; Events, Items, Doors dl $7ED91A : db $02 : dw $002F ; Events, Items, Doors dw #$FFFF .after preset_100early_upper_norfair_crocomire_escape: dw #preset_100early_upper_norfair_crocomire_revisit ; Upper Norfair: Crocomire Revisit dl $7E078D : db $02 : dw $93EA ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $A923 ; MDB dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0C00 ; Screen X position in pixels dl $7E0913 : db $02 : dw $4C00 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0021 ; Screen Y position in pixels dl $7E09CA : db $02 : dw $0005 ; Supers dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0C89 ; Samus X dl $7E0AFA : db $02 : dw $00AB ; Samus Y dl $7ED8B8 : db $02 : dw $E6EF ; Events, Items, Doors dl $7ED91A : db $02 : dw $0030 ; Events, Items, Doors dw #$FFFF .after preset_100early_upper_norfair_business_center_return: dw #preset_100early_upper_norfair_crocomire_escape ; Upper Norfair: Crocomire Escape dl $7E078D : db $02 : dw $93AE ; DDB dl $7E079B : db $02 : dw $AA0E ; MDB dl $7E090F : db $02 : dw $D348 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $1E80 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $017E ; Health dl $7E09C6 : db $02 : dw $0037 ; Missiles dl $7E09C8 : db $02 : dw $0037 ; Max missiles dl $7E09CA : db $02 : dw $0004 ; Supers dl $7E0AF6 : db $02 : dw $005A ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED876 : db $02 : dw $1FF3 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0031 ; Events, Items, Doors dw #$FFFF .after preset_100early_red_tower_and_crateria_warehouse_elevator: dw #preset_100early_upper_norfair_business_center_return ; Upper Norfair: Business Center Return dl $7E078D : db $02 : dw $92EE ; DDB dl $7E078F : db $02 : dw $0004 ; DoorOut Index dl $7E079B : db $02 : dw $A6A1 ; MDB dl $7E079F : db $02 : dw $0001 ; Region dl $7E07C3 : db $02 : dw $A5AA ; GFX Pointers dl $7E07C5 : db $02 : dw $5FBC ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B3 ; GFX Pointers dl $7E07F3 : db $02 : dw $0012 ; Music Bank dl $7E07F5 : db $02 : dw $0003 ; Music Track dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E09C2 : db $02 : dw $01A6 ; Health dl $7E0A1C : db $02 : dw $009B ; Samus position/state dl $7E0A1E : db $02 : dw $0000 ; More position/state dl $7E0AF6 : db $02 : dw $0080 ; Samus X dl $7E0AFA : db $02 : dw $0086 ; Samus Y dw #$FFFF .after preset_100early_red_tower_and_crateria_red_tower_climb: dw #preset_100early_red_tower_and_crateria_warehouse_elevator ; Red Tower and Crateria: Warehouse Elevator dl $7E078D : db $02 : dw $910E ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $A3DD ; MDB dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $0801 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $6C00 ; Screen subpixel Y position dl $7E09C2 : db $02 : dw $0169 ; Health dl $7E09CA : db $02 : dw $0005 ; Supers dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0025 ; Samus X dl $7E0AFA : db $02 : dw $009B ; Samus Y dw #$FFFF .after preset_100early_red_tower_and_crateria_hellway: dw #preset_100early_red_tower_and_crateria_red_tower_climb ; Red Tower and Crateria: Red Tower Climb dl $7E078D : db $02 : dw $90F6 ; DDB dl $7E079B : db $02 : dw $A253 ; MDB dl $7E090F : db $02 : dw $E000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $1800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0017 ; Screen Y position in pixels dl $7E0A1C : db $02 : dw $00A4 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $0095 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dw #$FFFF .after preset_100early_red_tower_and_crateria_alpha_power_bombs: dw #preset_100early_red_tower_and_crateria_hellway ; Red Tower and Crateria: Hellway dl $7E078D : db $02 : dw $908A ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $A322 ; MDB dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $071D ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $016D ; Health dl $7E09CA : db $02 : dw $0004 ; Supers dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $003D ; Samus X dl $7E0AFA : db $02 : dw $078B ; Samus Y dl $7ED8B6 : db $02 : dw $A008 ; Events, Items, Doors dw #$FFFF .after preset_100early_red_tower_and_crateria_elevator_room_ascent: dw #preset_100early_red_tower_and_crateria_alpha_power_bombs ; Red Tower and Crateria: Alpha Power Bombs dl $7E078D : db $02 : dw $9096 ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $A3AE ; MDB dl $7E07F5 : db $02 : dw $0003 ; Music Track dl $7E090F : db $02 : dw $3FFF ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0200 ; Screen X position in pixels dl $7E0913 : db $02 : dw $0400 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0163 ; Health dl $7E09C6 : db $02 : dw $003C ; Missiles dl $7E09C8 : db $02 : dw $003C ; Max missiles dl $7E09CE : db $02 : dw $0008 ; Pbs dl $7E09D0 : db $02 : dw $000A ; Max pbs dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $02AE ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED874 : db $02 : dw $0F04 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0033 ; Events, Items, Doors dw #$FFFF .after preset_100early_red_tower_and_crateria_beta_power_bombs: dw #preset_100early_red_tower_and_crateria_elevator_room_ascent ; Red Tower and Crateria: Elevator Room Ascent dl $7E078D : db $02 : dw $90EA ; DDB dl $7E079B : db $02 : dw $A322 ; MDB dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $E000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $5400 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $02FB ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0177 ; Health dl $7E09D2 : db $02 : dw $0003 ; Currently selected item dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0061 ; Samus X dl $7E0AFA : db $02 : dw $038B ; Samus Y dl $7ED8B6 : db $02 : dw $A808 ; Events, Items, Doors dw #$FFFF .after preset_100early_red_tower_and_crateria_crateria_kihunters: dw #preset_100early_red_tower_and_crateria_beta_power_bombs ; Red Tower and Crateria: Beta Power Bombs dl $7E078D : db $02 : dw $90BA ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $962A ; MDB dl $7E079F : db $02 : dw $0000 ; Region dl $7E07C3 : db $02 : dw $F911 ; GFX Pointers dl $7E07C5 : db $02 : dw $43BA ; GFX Pointers dl $7E07C7 : db $02 : dw $C2AF ; GFX Pointers dl $7E07F5 : db $02 : dw $0003 ; Music Track dl $7E090F : db $02 : dw $4000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $016D ; Health dl $7E09CA : db $02 : dw $0005 ; Supers dl $7E09CE : db $02 : dw $000B ; Pbs dl $7E09D0 : db $02 : dw $000F ; Max pbs dl $7E09D2 : db $02 : dw $0000 ; Currently selected item dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $006A ; Samus X dl $7E0AFA : db $02 : dw $005B ; Samus Y dl $7ED874 : db $02 : dw $0F84 ; Events, Items, Doors dl $7ED8B2 : db $02 : dw $2C01 ; Events, Items, Doors dl $7ED8B6 : db $02 : dw $E808 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0034 ; Events, Items, Doors dw #$FFFF .after preset_100early_red_tower_and_crateria_oceanfly: dw #preset_100early_red_tower_and_crateria_crateria_kihunters ; Red Tower and Crateria: Crateria Kihunters dl $7E078D : db $02 : dw $8AF6 ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $948C ; MDB dl $7E07C3 : db $02 : dw $C629 ; GFX Pointers dl $7E07C5 : db $02 : dw $7CBA ; GFX Pointers dl $7E07C7 : db $02 : dw $C2AD ; GFX Pointers dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $E401 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $B800 ; Screen subpixel Y position dl $7E09CE : db $02 : dw $000A ; Pbs dl $7E09D2 : db $02 : dw $0003 ; Currently selected item dl $7E0AF6 : db $02 : dw $0025 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED8B0 : db $02 : dw $2000 ; Events, Items, Doors dw #$FFFF .after preset_100early_red_tower_and_crateria_the_moat: dw #preset_100early_red_tower_and_crateria_oceanfly ; Red Tower and Crateria: Oceanfly dl $7E090F : db $02 : dw $17FF ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0200 ; Screen X position in pixels dl $7E0913 : db $02 : dw $F400 ; Screen subpixel Y position dl $7E09C2 : db $02 : dw $0172 ; Health dl $7E09D2 : db $02 : dw $0000 ; Currently selected item dl $7E0AF6 : db $02 : dw $02B1 ; Samus X dw #$FFFF .after preset_100early_red_tower_and_crateria_ocean_spark: dw #preset_100early_red_tower_and_crateria_the_moat ; Red Tower and Crateria: The Moat dl $7E078D : db $02 : dw $8A36 ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $95FF ; MDB dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $6A80 ; Screen subpixel Y position dl $7E09C6 : db $02 : dw $0041 ; Missiles dl $7E09C8 : db $02 : dw $0041 ; Max missiles dl $7E0AF6 : db $02 : dw $01A2 ; Samus X dl $7ED870 : db $02 : dw $8190 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0035 ; Events, Items, Doors dw #$FFFF .after preset_100early_wrecked_ship_enter_wrecked_ship: dw #preset_100early_red_tower_and_crateria_ocean_spark ; Red Tower and Crateria: Ocean Spark dl $7E078D : db $02 : dw $89D6 ; DDB dl $7E079B : db $02 : dw $CA08 ; MDB dl $7E079F : db $02 : dw $0003 ; Region dl $7E07C3 : db $02 : dw $AE9E ; GFX Pointers dl $7E07C5 : db $02 : dw $A6BB ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B1 ; GFX Pointers dl $7E07F3 : db $02 : dw $0030 ; Music Bank dl $7E090F : db $02 : dw $6C80 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $CC00 ; Screen subpixel Y position dl $7E09A6 : db $02 : dw $1001 ; Beams dl $7E09C2 : db $02 : dw $00F7 ; Health dl $7E09CA : db $02 : dw $0004 ; Supers dl $7E0AF6 : db $02 : dw $002B ; Samus X dl $7ED8B0 : db $02 : dw $3000 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0038 ; Events, Items, Doors dw #$FFFF .after preset_100early_wrecked_ship_phantoon: dw #preset_100early_wrecked_ship_enter_wrecked_ship ; Wrecked Ship: Enter Wrecked Ship dl $7E078D : db $02 : dw $A21C ; DDB dl $7E078F : db $02 : dw $0003 ; DoorOut Index dl $7E079B : db $02 : dw $CC6F ; MDB dl $7E090F : db $02 : dw $93FF ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0400 ; Screen X position in pixels dl $7E0913 : db $02 : dw $2000 ; Screen subpixel Y position dl $7E09C6 : db $02 : dw $0046 ; Missiles dl $7E09C8 : db $02 : dw $0046 ; Max missiles dl $7E09CA : db $02 : dw $0002 ; Supers dl $7E09CE : db $02 : dw $0009 ; Pbs dl $7E0AF6 : db $02 : dw $04CE ; Samus X dl $7ED880 : db $02 : dw $0001 ; Events, Items, Doors dl $7ED8C0 : db $02 : dw $0030 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0039 ; Events, Items, Doors dw #$FFFF .after preset_100early_wrecked_ship_leaving_phantoon: dw #preset_100early_wrecked_ship_phantoon ; Wrecked Ship: Phantoon dl $7E078D : db $02 : dw $A2AC ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $CD13 ; MDB dl $7E07F3 : db $02 : dw $0027 ; Music Bank dl $7E07F5 : db $02 : dw $0003 ; Music Track dl $7E090F : db $02 : dw $7000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $3400 ; Screen subpixel Y position dl $7E09C2 : db $02 : dw $0160 ; Health dl $7E09CA : db $02 : dw $0004 ; Supers dl $7E09CE : db $02 : dw $0008 ; Pbs dl $7E0A1C : db $02 : dw $008A ; Samus position/state dl $7E0A1E : db $02 : dw $1504 ; More position/state dl $7E0AF6 : db $02 : dw $0025 ; Samus X dl $7E0AFA : db $02 : dw $00BB ; Samus Y dl $7ED82A : db $02 : dw $0102 ; Events, Items, Doors dl $7ED8C0 : db $02 : dw $0070 ; Events, Items, Doors dw #$FFFF .after preset_100early_wrecked_ship_east_supers: dw #preset_100early_wrecked_ship_leaving_phantoon ; Wrecked Ship: Leaving Phantoon dl $7E078D : db $02 : dw $A294 ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $CAF6 ; MDB dl $7E07C5 : db $02 : dw $E7BB ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B0 ; GFX Pointers dl $7E07F3 : db $02 : dw $0030 ; Music Bank dl $7E07F5 : db $02 : dw $0006 ; Music Track dl $7E090F : db $02 : dw $E000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $04DD ; Screen X position in pixels dl $7E0913 : db $02 : dw $D800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0600 ; Screen Y position in pixels dl $7E09CE : db $02 : dw $0007 ; Pbs dl $7E0A1C : db $02 : dw $0027 ; Samus position/state dl $7E0A1E : db $02 : dw $0508 ; More position/state dl $7E0AF6 : db $02 : dw $05B9 ; Samus X dl $7E0AFA : db $02 : dw $0690 ; Samus Y dl $7ED8C0 : db $02 : dw $0074 ; Events, Items, Doors dl $7ED91A : db $02 : dw $003A ; Events, Items, Doors dw #$FFFF .after preset_100early_wrecked_ship_leaving_west_supers: dw #preset_100early_wrecked_ship_east_supers ; Wrecked Ship: East Supers dl $7E078D : db $02 : dw $A210 ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $CDA8 ; MDB dl $7E090F : db $02 : dw $5000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $AC00 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $012B ; Health dl $7E09C6 : db $02 : dw $0045 ; Missiles dl $7E09CA : db $02 : dw $000E ; Supers dl $7E09CC : db $02 : dw $000F ; Max supers dl $7E09CE : db $02 : dw $0006 ; Pbs dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $00C2 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED880 : db $02 : dw $0061 ; Events, Items, Doors dl $7ED91A : db $02 : dw $003D ; Events, Items, Doors dw #$FFFF .after preset_100early_wrecked_ship_spiky_room_of_death: dw #preset_100early_wrecked_ship_leaving_west_supers ; Wrecked Ship: Leaving West Supers dl $7E078D : db $02 : dw $A2E8 ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $CAF6 ; MDB dl $7E090F : db $02 : dw $AC01 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0400 ; Screen X position in pixels dl $7E0913 : db $02 : dw $E000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0472 ; Screen Y position in pixels dl $7E0AF6 : db $02 : dw $042F ; Samus X dl $7E0AFA : db $02 : dw $04EB ; Samus Y dl $7ED91A : db $02 : dw $003E ; Events, Items, Doors dw #$FFFF .after preset_100early_wrecked_ship_wrecked_ship_etank: dw #preset_100early_wrecked_ship_spiky_room_of_death ; Wrecked Ship: Spiky Room of Death dl $7E078D : db $02 : dw $A258 ; DDB dl $7E079B : db $02 : dw $CBD5 ; MDB dl $7E090F : db $02 : dw $F400 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $4C00 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0100 ; Screen Y position in pixels dl $7E0A1C : db $02 : dw $004E ; Samus position/state dl $7E0A1E : db $02 : dw $0204 ; More position/state dl $7E0AF6 : db $02 : dw $0079 ; Samus X dl $7E0AFA : db $02 : dw $016B ; Samus Y dw #$FFFF .after preset_100early_wrecked_ship_spiky_room_revisit: dw #preset_100early_wrecked_ship_wrecked_ship_etank ; Wrecked Ship: Wrecked Ship E-Tank dl $7E078D : db $02 : dw $A288 ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $9000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $021F ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0248 ; Health dl $7E09C4 : db $02 : dw $0257 ; Max helath dl $7E0AF6 : db $02 : dw $0025 ; Samus X dl $7E0AFA : db $02 : dw $02BB ; Samus Y dl $7ED880 : db $02 : dw $0071 ; Events, Items, Doors dl $7ED91A : db $02 : dw $003F ; Events, Items, Doors dw #$FFFF .after preset_100early_wrecked_ship_shaft_ascent: dw #preset_100early_wrecked_ship_spiky_room_revisit ; Wrecked Ship: Spiky Room Revisit dl $7E078D : db $02 : dw $A24C ; DDB dl $7E079B : db $02 : dw $CD5C ; MDB dl $7E090F : db $02 : dw $1000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $C800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $022A ; Health dl $7E0AF6 : db $02 : dw $0054 ; Samus X dl $7E0AFA : db $02 : dw $0090 ; Samus Y dw #$FFFF .after preset_100early_wrecked_ship_attic: dw #preset_100early_wrecked_ship_shaft_ascent ; Wrecked Ship: Shaft Ascent dl $7E078D : db $02 : dw $A2D0 ; DDB dl $7E079B : db $02 : dw $CAF6 ; MDB dl $7E090F : db $02 : dw $47FF ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0400 ; Screen X position in pixels dl $7E0913 : db $02 : dw $8400 ; Screen subpixel Y position dl $7E0AF6 : db $02 : dw $04B1 ; Samus X dl $7E0AFA : db $02 : dw $006B ; Samus Y dl $7ED91A : db $02 : dw $0040 ; Events, Items, Doors dw #$FFFF .after preset_100early_wrecked_ship_attic_missiles: dw #preset_100early_wrecked_ship_attic ; Wrecked Ship: Attic dl $7E078D : db $02 : dw $A228 ; DDB dl $7E078F : db $02 : dw $0004 ; DoorOut Index dl $7E079B : db $02 : dw $CA52 ; MDB dl $7E090F : db $02 : dw $6800 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0600 ; Screen X position in pixels dl $7E0913 : db $02 : dw $ABFE ; Screen subpixel Y position dl $7E0915 : db $02 : dw $001F ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $022E ; Health dl $7E09C6 : db $02 : dw $0045 ; Missiles dl $7E09CA : db $02 : dw $000B ; Supers dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $06CC ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED8C0 : db $02 : dw $0B7C ; Events, Items, Doors dw #$FFFF .after preset_100early_wrecked_ship_attic_revisit: dw #preset_100early_wrecked_ship_attic_missiles ; Wrecked Ship: Attic Missiles dl $7E078D : db $02 : dw $A1D4 ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $CAAE ; MDB dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $000A ; Screen X position in pixels dl $7E0913 : db $02 : dw $7800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $020D ; Health dl $7E09C6 : db $02 : dw $003A ; Missiles dl $7E09C8 : db $02 : dw $004B ; Max missiles dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $00AA ; Samus X dl $7ED880 : db $02 : dw $0079 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0041 ; Events, Items, Doors dw #$FFFF .after preset_100early_wrecked_ship_sky_missiles: dw #preset_100early_wrecked_ship_attic_revisit ; Wrecked Ship: Attic Revisit dl $7E078D : db $02 : dw $A1EC ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $CA52 ; MDB dl $7E090F : db $02 : dw $A000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $03FE ; Screen subpixel Y position dl $7E0915 : db $02 : dw $001F ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $01DB ; Health dl $7E0AF6 : db $02 : dw $003E ; Samus X dw #$FFFF .after preset_100early_wrecked_ship_bowling_alley_path: dw #preset_100early_wrecked_ship_sky_missiles ; Wrecked Ship: Sky Missiles dl $7E078D : db $02 : dw $A1E0 ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $93FE ; MDB dl $7E079F : db $02 : dw $0000 ; Region dl $7E07C3 : db $02 : dw $C629 ; GFX Pointers dl $7E07C5 : db $02 : dw $7CBA ; GFX Pointers dl $7E07C7 : db $02 : dw $C2AD ; GFX Pointers dl $7E07F3 : db $02 : dw $000C ; Music Bank dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $F400 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0200 ; Screen X position in pixels dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0204 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $01EF ; Health dl $7E09C6 : db $02 : dw $0044 ; Missiles dl $7E09C8 : db $02 : dw $0055 ; Max missiles dl $7E09CA : db $02 : dw $000A ; Supers dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $02C0 ; Samus X dl $7E0AFA : db $02 : dw $028B ; Samus Y dl $7ED870 : db $02 : dw $819C ; Events, Items, Doors dl $7ED91A : db $02 : dw $0044 ; Events, Items, Doors dw #$FFFF .after preset_100early_wrecked_ship_bowling_alley: dw #preset_100early_wrecked_ship_bowling_alley_path ; Wrecked Ship: Bowling Alley Path dl $7E078D : db $02 : dw $89E2 ; DDB dl $7E079B : db $02 : dw $9461 ; MDB dl $7E090F : db $02 : dw $1F00 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $00F7 ; Screen X position in pixels dl $7E0913 : db $02 : dw $D000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0212 ; Health dl $7E09CA : db $02 : dw $000B ; Supers dl $7E0AF6 : db $02 : dw $0170 ; Samus X dl $7E0AFA : db $02 : dw $009B ; Samus Y dw #$FFFF .after preset_100early_wrecked_ship_leaving_gravity: dw #preset_100early_wrecked_ship_bowling_alley ; Wrecked Ship: Bowling Alley dl $7E078D : db $02 : dw $A1A4 ; DDB dl $7E079B : db $02 : dw $CE40 ; MDB dl $7E079F : db $02 : dw $0003 ; Region dl $7E07C3 : db $02 : dw $AE9E ; GFX Pointers dl $7E07C5 : db $02 : dw $E7BB ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B0 ; GFX Pointers dl $7E07F3 : db $02 : dw $0030 ; Music Bank dl $7E07F5 : db $02 : dw $0003 ; Music Track dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $6400 ; Screen subpixel Y position dl $7E09A2 : db $02 : dw $7125 ; Equipped Items dl $7E09A4 : db $02 : dw $7125 ; Collected Items dl $7E09C2 : db $02 : dw $0191 ; Health dl $7E09C6 : db $02 : dw $0049 ; Missiles dl $7E09C8 : db $02 : dw $005A ; Max missiles dl $7E09CE : db $02 : dw $0005 ; Pbs dl $7E09D4 : db $02 : dw $00C8 ; Max reserves dl $7E0A1C : db $02 : dw $009B ; Samus position/state dl $7E0A1E : db $02 : dw $0000 ; More position/state dl $7E0AF6 : db $02 : dw $0078 ; Samus X dl $7E0AFA : db $02 : dw $0088 ; Samus Y dl $7ED880 : db $02 : dw $00FF ; Events, Items, Doors dl $7ED91A : db $02 : dw $0047 ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_cleanup_landing_site: dw #preset_100early_wrecked_ship_leaving_gravity ; Wrecked Ship: Leaving Gravity dl $7E078D : db $02 : dw $8ADE ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $948C ; MDB dl $7E079F : db $02 : dw $0000 ; Region dl $7E07C3 : db $02 : dw $C629 ; GFX Pointers dl $7E07C5 : db $02 : dw $7CBA ; GFX Pointers dl $7E07C7 : db $02 : dw $C2AD ; GFX Pointers dl $7E07F3 : db $02 : dw $000C ; Music Bank dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $4000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $4800 ; Screen subpixel Y position dl $7E09C6 : db $02 : dw $004F ; Missiles dl $7E09C8 : db $02 : dw $005F ; Max missiles dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $005C ; Samus X dl $7E0AFA : db $02 : dw $009B ; Samus Y dl $7ED870 : db $02 : dw $819E ; Events, Items, Doors dl $7ED91A : db $02 : dw $004B ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_cleanup_gauntlet_spark: dw #preset_100early_brinstar_cleanup_landing_site ; Brinstar Cleanup: Landing Site dl $7E078D : db $02 : dw $893A ; DDB dl $7E078F : db $02 : dw $0003 ; DoorOut Index dl $7E079B : db $02 : dw $93AA ; MDB dl $7E090F : db $02 : dw $5001 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $2000 ; Screen subpixel Y position dl $7E09C2 : db $02 : dw $00EF ; Health dl $7E09C6 : db $02 : dw $004C ; Missiles dl $7E09CE : db $02 : dw $000B ; Pbs dl $7E09D0 : db $02 : dw $0014 ; Max pbs dl $7E0AF6 : db $02 : dw $0052 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED870 : db $02 : dw $819F ; Events, Items, Doors dl $7ED8B0 : db $02 : dw $3002 ; Events, Items, Doors dl $7ED91A : db $02 : dw $004C ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_cleanup_gauntlet_etank: dw #preset_100early_brinstar_cleanup_gauntlet_spark ; Brinstar Cleanup: Gauntlet Spark dl $7E078D : db $02 : dw $892E ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $92B3 ; MDB dl $7E07F3 : db $02 : dw $0009 ; Music Bank dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $001C ; Screen X position in pixels dl $7E0913 : db $02 : dw $E800 ; Screen subpixel Y position dl $7E09C2 : db $02 : dw $001D ; Health dl $7E0AF6 : db $02 : dw $0080 ; Samus X dw #$FFFF .after preset_100early_brinstar_cleanup_leaving_gauntlet: dw #preset_100early_brinstar_cleanup_gauntlet_etank ; Brinstar Cleanup: Gauntlet E-Tank dl $7E078D : db $02 : dw $8952 ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $965B ; MDB dl $7E090F : db $02 : dw $E400 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $4000 ; Screen subpixel Y position dl $7E09C2 : db $02 : dw $028D ; Health dl $7E09C4 : db $02 : dw $02BB ; Max helath dl $7E09CA : db $02 : dw $000C ; Supers dl $7E09CE : db $02 : dw $0007 ; Pbs dl $7E0AF6 : db $02 : dw $0049 ; Samus X dl $7ED870 : db $02 : dw $81BF ; Events, Items, Doors dl $7ED91A : db $02 : dw $004D ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_cleanup_green_brinstar_elevator: dw #preset_100early_brinstar_cleanup_leaving_gauntlet ; Brinstar Cleanup: Leaving Gauntlet dl $7E078D : db $02 : dw $8C22 ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $9938 ; MDB dl $7E07C3 : db $02 : dw $F911 ; GFX Pointers dl $7E07C5 : db $02 : dw $43BA ; GFX Pointers dl $7E07C7 : db $02 : dw $C2AF ; GFX Pointers dl $7E07F5 : db $02 : dw $0003 ; Music Track dl $7E090F : db $02 : dw $9000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $A7FF ; Screen subpixel Y position dl $7E09C6 : db $02 : dw $0051 ; Missiles dl $7E09C8 : db $02 : dw $0069 ; Max missiles dl $7E0AF6 : db $02 : dw $0082 ; Samus X dl $7ED870 : db $02 : dw $87BF ; Events, Items, Doors dl $7ED91A : db $02 : dw $004F ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_cleanup_green_brinstar_beetoms: dw #preset_100early_brinstar_cleanup_green_brinstar_elevator ; Brinstar Cleanup: Green Brinstar Elevator dl $7E078D : db $02 : dw $8C0A ; DDB dl $7E078F : db $02 : dw $0009 ; DoorOut Index dl $7E079B : db $02 : dw $9AD9 ; MDB dl $7E079F : db $02 : dw $0001 ; Region dl $7E07C3 : db $02 : dw $E6B0 ; GFX Pointers dl $7E07C5 : db $02 : dw $64BB ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B2 ; GFX Pointers dl $7E07F3 : db $02 : dw $000F ; Music Bank dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $4000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $3000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0A1D ; Screen Y position in pixels dl $7E09CE : db $02 : dw $0006 ; Pbs dl $7E0AF6 : db $02 : dw $0025 ; Samus X dl $7E0AFA : db $02 : dw $0A8B ; Samus Y dl $7ED91A : db $02 : dw $0050 ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_cleanup_etecoon_etank_room: dw #preset_100early_brinstar_cleanup_green_brinstar_beetoms ; Brinstar Cleanup: Green Brinstar Beetoms dl $7E078D : db $02 : dw $8CBE ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $9FE5 ; MDB dl $7E0913 : db $02 : dw $E000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0287 ; Health dl $7E09C6 : db $02 : dw $0050 ; Missiles dl $7E09CE : db $02 : dw $0009 ; Pbs dl $7E0AFA : db $02 : dw $008B ; Samus Y dw #$FFFF .after preset_100early_brinstar_cleanup_etecoon_room: dw #preset_100early_brinstar_cleanup_etecoon_etank_room ; Brinstar Cleanup: Etecoon E-Tank Room dl $7E078D : db $02 : dw $8F5E ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $A011 ; MDB dl $7E090F : db $02 : dw $1000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0400 ; Screen X position in pixels dl $7E0913 : db $02 : dw $9000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0100 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $030F ; Health dl $7E09C4 : db $02 : dw $031F ; Max helath dl $7E09C6 : db $02 : dw $004F ; Missiles dl $7E09CA : db $02 : dw $0010 ; Supers dl $7E09CC : db $02 : dw $0014 ; Max supers dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $04D0 ; Samus X dl $7E0AFA : db $02 : dw $018B ; Samus Y dl $7ED872 : db $02 : dw $C48F ; Events, Items, Doors dl $7ED8B6 : db $02 : dw $E818 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0053 ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_cleanup_dachora_room_revisit: dw #preset_100early_brinstar_cleanup_etecoon_room ; Brinstar Cleanup: Etecoon Room dl $7E078D : db $02 : dw $8F46 ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $9AD9 ; MDB dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $7800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0700 ; Screen Y position in pixels dl $7E09CE : db $02 : dw $000E ; Pbs dl $7E09D0 : db $02 : dw $0019 ; Max pbs dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $014C ; Samus X dl $7E0AFA : db $02 : dw $078B ; Samus Y dl $7ED870 : db $02 : dw $A7BF ; Events, Items, Doors dl $7ED91A : db $02 : dw $0054 ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_cleanup_big_pink_revisit: dw #preset_100early_brinstar_cleanup_dachora_room_revisit ; Brinstar Cleanup: Dachora Room Revisit dl $7E078D : db $02 : dw $8CE2 ; DDB dl $7E078F : db $02 : dw $0005 ; DoorOut Index dl $7E079B : db $02 : dw $9CB3 ; MDB dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0407 ; Screen X position in pixels dl $7E0913 : db $02 : dw $B000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09CE : db $02 : dw $000D ; Pbs dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $04E3 ; Samus X dl $7E0AFA : db $02 : dw $00AB ; Samus Y dl $7ED91A : db $02 : dw $0055 ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_cleanup_big_pink_power_bombs: dw #preset_100early_brinstar_cleanup_big_pink_revisit ; Brinstar Cleanup: Big Pink Revisit dl $7E078D : db $02 : dw $8DAE ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $9D19 ; MDB dl $7E090F : db $02 : dw $6000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $020B ; Screen X position in pixels dl $7E0913 : db $02 : dw $1400 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0315 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $030A ; Health dl $7E09C6 : db $02 : dw $0054 ; Missiles dl $7E09C8 : db $02 : dw $006E ; Max missiles dl $7E09CE : db $02 : dw $000C ; Pbs dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $026B ; Samus X dl $7E0AFA : db $02 : dw $038B ; Samus Y dl $7ED872 : db $02 : dw $C4AF ; Events, Items, Doors dl $7ED8B4 : db $02 : dw $0346 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0058 ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_cleanup_big_pink_hopper_room: dw #preset_100early_brinstar_cleanup_big_pink_power_bombs ; Brinstar Cleanup: Big Pink Power Bombs dl $7E078D : db $02 : dw $8E62 ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0430 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $02FB ; Health dl $7E09C6 : db $02 : dw $0051 ; Missiles dl $7E09CA : db $02 : dw $000F ; Supers dl $7E09CE : db $02 : dw $0011 ; Pbs dl $7E09D0 : db $02 : dw $001E ; Max pbs dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AFA : db $02 : dw $049B ; Samus Y dl $7ED872 : db $02 : dw $C5AF ; Events, Items, Doors dl $7ED8B4 : db $02 : dw $8346 ; Events, Items, Doors dl $7ED91A : db $02 : dw $005C ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_cleanup_spore_spawn_supers: dw #preset_100early_brinstar_cleanup_big_pink_hopper_room ; Brinstar Cleanup: Big Pink Hopper Room dl $7E078D : db $02 : dw $8FCA ; DDB dl $7E079B : db $02 : dw $A130 ; MDB dl $7E090F : db $02 : dw $A001 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $2800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0100 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0383 ; Health dl $7E09C4 : db $02 : dw $0383 ; Max helath dl $7E09C6 : db $02 : dw $004C ; Missiles dl $7E0A1C : db $02 : dw $008A ; Samus position/state dl $7E0A1E : db $02 : dw $1504 ; More position/state dl $7E0AF6 : db $02 : dw $0025 ; Samus X dl $7E0AFA : db $02 : dw $01BB ; Samus Y dl $7ED874 : db $02 : dw $0F8C ; Events, Items, Doors dl $7ED8B6 : db $02 : dw $E8D8 ; Events, Items, Doors dl $7ED91A : db $02 : dw $005D ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_cleanup_waterway_etank: dw #preset_100early_brinstar_cleanup_spore_spawn_supers ; Brinstar Cleanup: Spore Spawn Supers dl $7E078D : db $02 : dw $8F82 ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $9D19 ; MDB dl $7E090F : db $02 : dw $4000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $091F ; Screen Y position in pixels dl $7E09C6 : db $02 : dw $0055 ; Missiles dl $7E09C8 : db $02 : dw $0073 ; Max missiles dl $7E09CA : db $02 : dw $0010 ; Supers dl $7E09CC : db $02 : dw $0019 ; Max supers dl $7E09CE : db $02 : dw $000E ; Pbs dl $7E0A1C : db $02 : dw $0028 ; Samus position/state dl $7E0A1E : db $02 : dw $0504 ; More position/state dl $7E0AF6 : db $02 : dw $0065 ; Samus X dl $7E0AFA : db $02 : dw $0990 ; Samus Y dl $7ED870 : db $02 : dw $E7BF ; Events, Items, Doors dl $7ED872 : db $02 : dw $C5EF ; Events, Items, Doors dl $7ED8B4 : db $02 : dw $8B46 ; Events, Items, Doors dl $7ED8B6 : db $02 : dw $E8F8 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0064 ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_cleanup_green_hills_revisit: dw #preset_100early_brinstar_cleanup_waterway_etank ; Brinstar Cleanup: Waterway E-Tank dl $7E078D : db $02 : dw $8F8E ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $02ED ; Screen X position in pixels dl $7E0915 : db $02 : dw $061E ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $03E7 ; Health dl $7E09C4 : db $02 : dw $03E7 ; Max helath dl $7E09C6 : db $02 : dw $0057 ; Missiles dl $7E09D6 : db $02 : dw $0096 ; Reserves dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $034D ; Samus X dl $7E0AFA : db $02 : dw $068B ; Samus Y dl $7ED874 : db $02 : dw $0F8E ; Events, Items, Doors dl $7ED91A : db $02 : dw $0068 ; Events, Items, Doors dw #$FFFF .after preset_100early_brinstar_cleanup_blockbuster: dw #preset_100early_brinstar_cleanup_green_hills_revisit ; Brinstar Cleanup: Green Hills Revisit dl $7E078D : db $02 : dw $8DEA ; DDB dl $7E078F : db $02 : dw $0003 ; DoorOut Index dl $7E079B : db $02 : dw $9E52 ; MDB dl $7E090F : db $02 : dw $2000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0700 ; Screen X position in pixels dl $7E0913 : db $02 : dw $F800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0300 ; Screen Y position in pixels dl $7E09C6 : db $02 : dw $005C ; Missiles dl $7E09C8 : db $02 : dw $0078 ; Max missiles dl $7E09CE : db $02 : dw $000D ; Pbs dl $7E0AF6 : db $02 : dw $07B4 ; Samus X dl $7E0AFA : db $02 : dw $038B ; Samus Y dl $7ED872 : db $02 : dw $C7EF ; Events, Items, Doors dl $7ED8B6 : db $02 : dw $E8F9 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0069 ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_predraygon_main_street: dw #preset_100early_brinstar_cleanup_blockbuster ; Brinstar Cleanup: Blockbuster dl $7E078D : db $02 : dw $A360 ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $CEFB ; MDB dl $7E079F : db $02 : dw $0004 ; Region dl $7E07C3 : db $02 : dw $B130 ; GFX Pointers dl $7E07C5 : db $02 : dw $3CBE ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B8 ; GFX Pointers dl $7E07F3 : db $02 : dw $0012 ; Music Bank dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $2C01 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0100 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $03E5 ; Health dl $7E09CA : db $02 : dw $0011 ; Supers dl $7E09CE : db $02 : dw $000C ; Pbs dl $7E0AF6 : db $02 : dw $0044 ; Samus X dl $7E0AFA : db $02 : dw $018B ; Samus Y dl $7ED820 : db $02 : dw $0801 ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_predraygon_fish_tank: dw #preset_100early_maridia_predraygon_main_street ; Maridia Pre-Draygon: Main Street dl $7E078D : db $02 : dw $A330 ; DDB dl $7E079B : db $02 : dw $CFC9 ; MDB dl $7E07F3 : db $02 : dw $001B ; Music Bank dl $7E07F5 : db $02 : dw $0006 ; Music Track dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0109 ; Screen X position in pixels dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0619 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $039F ; Health dl $7E09C6 : db $02 : dw $0061 ; Missiles dl $7E09C8 : db $02 : dw $007D ; Max missiles dl $7E09CA : db $02 : dw $0010 ; Supers dl $7E09D6 : db $02 : dw $00A8 ; Reserves dl $7E0AF6 : db $02 : dw $0169 ; Samus X dl $7E0AFA : db $02 : dw $068B ; Samus Y dl $7ED880 : db $02 : dw $01FF ; Events, Items, Doors dl $7ED91A : db $02 : dw $006B ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_predraygon_mama_turtle_etank: dw #preset_100early_maridia_predraygon_fish_tank ; Maridia Pre-Draygon: Fish Tank dl $7E078D : db $02 : dw $A3B4 ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $D017 ; MDB dl $7E090F : db $02 : dw $6000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $2C00 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $01FD ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0350 ; Health dl $7E0AF6 : db $02 : dw $01E1 ; Samus X dl $7E0AFA : db $02 : dw $028B ; Samus Y dw #$FFFF .after preset_100early_maridia_predraygon_fish_tank_revisit: dw #preset_100early_maridia_predraygon_mama_turtle_etank ; Maridia Pre-Draygon: Mama Turtle E-Tank dl $7E078D : db $02 : dw $A3E4 ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $D055 ; MDB dl $7E090F : db $02 : dw $2000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $00C0 ; Screen X position in pixels dl $7E0913 : db $02 : dw $F800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0309 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $044B ; Health dl $7E09C4 : db $02 : dw $044B ; Max helath dl $7E09C6 : db $02 : dw $0066 ; Missiles dl $7E09C8 : db $02 : dw $0082 ; Max missiles dl $7E09CA : db $02 : dw $000F ; Supers dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0135 ; Samus X dl $7E0AFA : db $02 : dw $037B ; Samus Y dl $7ED880 : db $02 : dw $0DFF ; Events, Items, Doors dl $7ED8C0 : db $02 : dw $4B7C ; Events, Items, Doors dl $7ED91A : db $02 : dw $006D ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_predraygon_mt_everest: dw #preset_100early_maridia_predraygon_fish_tank_revisit ; Maridia Pre-Draygon: Fish Tank Revisit dl $7E078D : db $02 : dw $A3CC ; DDB dl $7E078F : db $02 : dw $0004 ; DoorOut Index dl $7E079B : db $02 : dw $D0B9 ; MDB dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0118 ; Screen X position in pixels dl $7E0913 : db $02 : dw $9400 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $031F ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $03E5 ; Health dl $7E09CA : db $02 : dw $0014 ; Supers dl $7E09CC : db $02 : dw $001E ; Max supers dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $0178 ; Samus X dl $7E0AFA : db $02 : dw $03BB ; Samus Y dl $7ED880 : db $02 : dw $0FFF ; Events, Items, Doors dl $7ED91A : db $02 : dw $006F ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_predraygon_beach_missiles: dw #preset_100early_maridia_predraygon_mt_everest ; Maridia Pre-Draygon: Mt Everest dl $7E078D : db $02 : dw $A468 ; DDB dl $7E078F : db $02 : dw $0005 ; DoorOut Index dl $7E079B : db $02 : dw $D1A3 ; MDB dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $8800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $03A9 ; Health dl $7E0AF6 : db $02 : dw $0078 ; Samus X dl $7E0AFA : db $02 : dw $005B ; Samus Y dw #$FFFF .after preset_100early_maridia_predraygon_west_beach: dw #preset_100early_maridia_predraygon_beach_missiles ; Maridia Pre-Draygon: Beach Missiles dl $7E078D : db $02 : dw $A4BC ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $D1DD ; MDB dl $7E090F : db $02 : dw $D000 ; Screen subpixel X position. dl $7E0915 : db $02 : dw $00F9 ; Screen Y position in pixels dl $7E09C6 : db $02 : dw $006B ; Missiles dl $7E09C8 : db $02 : dw $0087 ; Max missiles dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0069 ; Samus X dl $7E0AFA : db $02 : dw $018B ; Samus Y dl $7ED880 : db $02 : dw $4FFF ; Events, Items, Doors dl $7ED91A : db $02 : dw $0070 ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_predraygon_watering_hole: dw #preset_100early_maridia_predraygon_west_beach ; Maridia Pre-Draygon: West Beach dl $7E078D : db $02 : dw $A4D4 ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $D16D ; MDB dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $6C00 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0017 ; Screen Y position in pixels dl $7E0AF6 : db $02 : dw $006C ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dw #$FFFF .after preset_100early_maridia_predraygon_west_beach_revisit: dw #preset_100early_maridia_predraygon_watering_hole ; Maridia Pre-Draygon: Watering Hole dl $7E078D : db $02 : dw $A498 ; DDB dl $7E079B : db $02 : dw $D13B ; MDB dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $00FC ; Screen X position in pixels dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $03AE ; Health dl $7E09C6 : db $02 : dw $006F ; Missiles dl $7E09C8 : db $02 : dw $008C ; Max missiles dl $7E09CA : db $02 : dw $0019 ; Supers dl $7E09CC : db $02 : dw $0023 ; Max supers dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $019C ; Samus X dl $7ED880 : db $02 : dw $7FFF ; Events, Items, Doors dl $7ED91A : db $02 : dw $0072 ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_predraygon_beach_missiles_revisit: dw #preset_100early_maridia_predraygon_west_beach_revisit ; Maridia Pre-Draygon: West Beach Revisit dl $7E078D : db $02 : dw $A48C ; DDB dl $7E079B : db $02 : dw $D16D ; MDB dl $7E090F : db $02 : dw $E000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0300 ; Screen X position in pixels dl $7E0913 : db $02 : dw $B000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0100 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $039F ; Health dl $7E0AF6 : db $02 : dw $03A2 ; Samus X dl $7E0AFA : db $02 : dw $018B ; Samus Y dw #$FFFF .after preset_100early_maridia_predraygon_aqueduct: dw #preset_100early_maridia_predraygon_beach_missiles_revisit ; Maridia Pre-Draygon: Beach Missiles Revisit dl $7E078D : db $02 : dw $A4E0 ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $D1A3 ; MDB dl $7E090F : db $02 : dw $3000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $FC00 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0300 ; Screen Y position in pixels dl $7E09CA : db $02 : dw $0018 ; Supers dl $7E09D2 : db $02 : dw $0003 ; Currently selected item dl $7E0AF6 : db $02 : dw $01B0 ; Samus X dl $7E0AFA : db $02 : dw $038B ; Samus Y dl $7ED8C0 : db $02 : dw $CB7C ; Events, Items, Doors dl $7ED91A : db $02 : dw $0073 ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_predraygon_botwoon: dw #preset_100early_maridia_predraygon_aqueduct ; Maridia Pre-Draygon: Aqueduct dl $7E078D : db $02 : dw $A72C ; DDB dl $7E078F : db $02 : dw $0003 ; DoorOut Index dl $7E079B : db $02 : dw $D617 ; MDB dl $7E07C3 : db $02 : dw $E78D ; GFX Pointers dl $7E07C5 : db $02 : dw $2EBE ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B9 ; GFX Pointers dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $2000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0300 ; Screen X position in pixels dl $7E0913 : db $02 : dw $F800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0001 ; Screen Y position in pixels dl $7E09CE : db $02 : dw $000B ; Pbs dl $7E09D2 : db $02 : dw $0000 ; Currently selected item dl $7E0AF6 : db $02 : dw $03A8 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED91A : db $02 : dw $0075 ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_predraygon_full_halfie: dw #preset_100early_maridia_predraygon_botwoon ; Maridia Pre-Draygon: Botwoon dl $7E078D : db $02 : dw $A774 ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $D95E ; MDB dl $7E07F3 : db $02 : dw $002A ; Music Bank dl $7E07F5 : db $02 : dw $0003 ; Music Track dl $7E090F : db $02 : dw $9FFF ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $0400 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $03DB ; Health dl $7E09C6 : db $02 : dw $0077 ; Missiles dl $7E09CA : db $02 : dw $0013 ; Supers dl $7E09CE : db $02 : dw $000C ; Pbs dl $7E0AF6 : db $02 : dw $01C4 ; Samus X dl $7ED82C : db $02 : dw $0002 ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_predraygon_draygon_missiles: dw #preset_100early_maridia_predraygon_full_halfie ; Maridia Pre-Draygon: Full Halfie dl $7E078D : db $02 : dw $A8E8 ; DDB dl $7E079B : db $02 : dw $D72A ; MDB dl $7E07F3 : db $02 : dw $001B ; Music Bank dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $3000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0600 ; Screen X position in pixels dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $00FB ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $035C ; Health dl $7E09CA : db $02 : dw $0012 ; Supers dl $7E0AF6 : db $02 : dw $06BB ; Samus X dl $7E0AFA : db $02 : dw $018B ; Samus Y dl $7ED8C2 : db $02 : dw $0400 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0076 ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_predraygon_draygon: dw #preset_100early_maridia_predraygon_draygon_missiles ; Maridia Pre-Draygon: Draygon Missiles dl $7E078D : db $02 : dw $A7F8 ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $D78F ; MDB dl $7E090F : db $02 : dw $D000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $C800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0200 ; Screen Y position in pixels dl $7E09C6 : db $02 : dw $007C ; Missiles dl $7E09C8 : db $02 : dw $0091 ; Max missiles dl $7E09CA : db $02 : dw $0011 ; Supers dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $004E ; Samus X dl $7E0AFA : db $02 : dw $028B ; Samus Y dl $7ED882 : db $02 : dw $0080 ; Events, Items, Doors dl $7ED8C2 : db $02 : dw $0C00 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0077 ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_postdraygon_return_halfie: dw #preset_100early_maridia_predraygon_draygon ; Maridia Pre-Draygon: Draygon dl $7E078D : db $02 : dw $A96C ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E090F : db $02 : dw $A000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $5400 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09A2 : db $02 : dw $7325 ; Equipped Items dl $7E09A4 : db $02 : dw $7325 ; Collected Items dl $7E09C2 : db $02 : dw $02CB ; Health dl $7E09C6 : db $02 : dw $007B ; Missiles dl $7E09CA : db $02 : dw $0015 ; Supers dl $7E09CE : db $02 : dw $000D ; Pbs dl $7E0A68 : db $02 : dw $0001 ; Flash suit dl $7E0AF6 : db $02 : dw $0040 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED82C : db $02 : dw $0003 ; Events, Items, Doors dl $7ED882 : db $02 : dw $0480 ; Events, Items, Doors dl $7ED8C2 : db $02 : dw $CC00 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0079 ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_postdraygon_reverse_botwoon_etank: dw #preset_100early_maridia_postdraygon_return_halfie ; Maridia Post-Draygon: Return Halfie dl $7E078D : db $02 : dw $A7E0 ; DDB dl $7E079B : db $02 : dw $D913 ; MDB dl $7E090F : db $02 : dw $4000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $2800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0200 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $025A ; Health dl $7E09C6 : db $02 : dw $0078 ; Missiles dl $7E0A68 : db $02 : dw $0000 ; Flash suit dl $7E0AF6 : db $02 : dw $00A9 ; Samus X dl $7E0AFA : db $02 : dw $028B ; Samus Y dw #$FFFF .after preset_100early_maridia_postdraygon_east_sand_pit: dw #preset_100early_maridia_postdraygon_reverse_botwoon_etank ; Maridia Post-Draygon: Reverse Botwoon E-Tank dl $7E078D : db $02 : dw $A7D4 ; DDB dl $7E079B : db $02 : dw $D5A7 ; MDB dl $7E090F : db $02 : dw $D000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0500 ; Screen X position in pixels dl $7E0913 : db $02 : dw $4400 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $021F ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0258 ; Health dl $7E0AF6 : db $02 : dw $05BB ; Samus X dl $7E0AFA : db $02 : dw $02CB ; Samus Y dl $7ED91A : db $02 : dw $007C ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_postdraygon_pants_room: dw #preset_100early_maridia_postdraygon_east_sand_pit ; Maridia Post-Draygon: East Sand Pit dl $7E078D : db $02 : dw $A6CC ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $D4C2 ; MDB dl $7E090F : db $02 : dw $F000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0200 ; Screen X position in pixels dl $7E0913 : db $02 : dw $D400 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C6 : db $02 : dw $007D ; Missiles dl $7E09C8 : db $02 : dw $0096 ; Max missiles dl $7E09CE : db $02 : dw $0012 ; Pbs dl $7E09D0 : db $02 : dw $0023 ; Max pbs dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $02B3 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED882 : db $02 : dw $048C ; Events, Items, Doors dl $7ED91A : db $02 : dw $007E ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_postdraygon_shaktool: dw #preset_100early_maridia_postdraygon_pants_room ; Maridia Post-Draygon: Pants Room dl $7E078D : db $02 : dw $A690 ; DDB dl $7E079B : db $02 : dw $D646 ; MDB dl $7E090F : db $02 : dw $7000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $2800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0200 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0249 ; Health dl $7E0AF6 : db $02 : dw $01BC ; Samus X dl $7E0AFA : db $02 : dw $028B ; Samus Y dw #$FFFF .after preset_100early_maridia_postdraygon_shaktool_revisit: dw #preset_100early_maridia_postdraygon_shaktool ; Maridia Post-Draygon: Shaktool dl $7E078D : db $02 : dw $A8D0 ; DDB dl $7E079B : db $02 : dw $D6D0 ; MDB dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $83FF ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0005 ; Screen Y position in pixels dl $7E09A2 : db $02 : dw $7327 ; Equipped Items dl $7E09A4 : db $02 : dw $7327 ; Collected Items dl $7E09C2 : db $02 : dw $022B ; Health dl $7E09CE : db $02 : dw $0011 ; Pbs dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0077 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED820 : db $02 : dw $2801 ; Events, Items, Doors dl $7ED882 : db $02 : dw $04CC ; Events, Items, Doors dl $7ED91A : db $02 : dw $007F ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_postdraygon_east_sand_hall: dw #preset_100early_maridia_postdraygon_shaktool_revisit ; Maridia Post-Draygon: Shaktool Revisit dl $7E078D : db $02 : dw $A7B0 ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $D646 ; MDB dl $7E090F : db $02 : dw $2000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $B000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0300 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $020D ; Health dl $7E0AF6 : db $02 : dw $003A ; Samus X dl $7E0AFA : db $02 : dw $038B ; Samus Y dw #$FFFF .after preset_100early_maridia_postdraygon_plasma_spark_room: dw #preset_100early_maridia_postdraygon_east_sand_hall ; Maridia Post-Draygon: East Sand Hall dl $7E078D : db $02 : dw $A684 ; DDB dl $7E079B : db $02 : dw $D48E ; MDB dl $7E090F : db $02 : dw $4000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $F000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09CA : db $02 : dw $0014 ; Supers dl $7E0AF6 : db $02 : dw $009A ; Samus X dl $7E0AFA : db $02 : dw $006B ; Samus Y dl $7ED8C2 : db $02 : dw $CC20 ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_postdraygon_kassiuz_room: dw #preset_100early_maridia_postdraygon_plasma_spark_room ; Maridia Post-Draygon: Plasma Spark Room dl $7E078D : db $02 : dw $A60C ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $D340 ; MDB dl $7E07C3 : db $02 : dw $B130 ; GFX Pointers dl $7E07C5 : db $02 : dw $3CBE ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B8 ; GFX Pointers dl $7E090F : db $02 : dw $A000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0200 ; Screen X position in pixels dl $7E0913 : db $02 : dw $2C00 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $00F6 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $01F9 ; Health dl $7E09C6 : db $02 : dw $007F ; Missiles dl $7E09CA : db $02 : dw $0015 ; Supers dl $7E09CE : db $02 : dw $0012 ; Pbs dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $0299 ; Samus X dl $7E0AFA : db $02 : dw $018B ; Samus Y dl $7ED8C2 : db $02 : dw $CC28 ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_postdraygon_plasma: dw #preset_100early_maridia_postdraygon_kassiuz_room ; Maridia Post-Draygon: Kassiuz Room dl $7E078D : db $02 : dw $A5DC ; DDB dl $7E079B : db $02 : dw $D27E ; MDB dl $7E090F : db $02 : dw $4000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $C001 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E0AF6 : db $02 : dw $0080 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dw #$FFFF .after preset_100early_maridia_postdraygon_leaving_plasma: dw #preset_100early_maridia_postdraygon_plasma ; Maridia Post-Draygon: Plasma dl $7E078D : db $02 : dw $A54C ; DDB dl $7E079B : db $02 : dw $D2AA ; MDB dl $7E090F : db $02 : dw $6000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $001D ; Screen Y position in pixels dl $7E09A6 : db $02 : dw $1009 ; Beams dl $7E09A8 : db $02 : dw $100D ; Beams dl $7E09C2 : db $02 : dw $01DB ; Health dl $7E09CE : db $02 : dw $0011 ; Pbs dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $002D ; Samus X dl $7ED880 : db $02 : dw $FFFF ; Events, Items, Doors dl $7ED8C2 : db $02 : dw $CC2A ; Events, Items, Doors dl $7ED91A : db $02 : dw $0080 ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_postdraygon_leaving_kassiuz: dw #preset_100early_maridia_postdraygon_leaving_plasma ; Maridia Post-Draygon: Leaving Plasma dl $7E078D : db $02 : dw $A540 ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $D387 ; MDB dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0915 : db $02 : dw $0319 ; Screen Y position in pixels dl $7E0AF6 : db $02 : dw $0025 ; Samus X dl $7E0AFA : db $02 : dw $038B ; Samus Y dw #$FFFF .after preset_100early_maridia_postdraygon_cac_alley: dw #preset_100early_maridia_postdraygon_leaving_kassiuz ; Maridia Post-Draygon: Leaving Kassiuz dl $7E078D : db $02 : dw $A5A0 ; DDB dl $7E079B : db $02 : dw $D5EC ; MDB dl $7E07C3 : db $02 : dw $E78D ; GFX Pointers dl $7E07C5 : db $02 : dw $2EBE ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B9 ; GFX Pointers dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $6C00 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E0A1C : db $02 : dw $0089 ; Samus position/state dl $7E0A1E : db $02 : dw $1508 ; More position/state dl $7E0AF6 : db $02 : dw $00DB ; Samus X dl $7E0AFA : db $02 : dw $00AB ; Samus Y dw #$FFFF .after preset_100early_maridia_postdraygon_botwoon_etank: dw #preset_100early_maridia_postdraygon_cac_alley ; Maridia Post-Draygon: Cac Alley dl $7E078D : db $02 : dw $A960 ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $D913 ; MDB dl $7E0913 : db $02 : dw $2000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0200 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $01E0 ; Health dl $7E09CA : db $02 : dw $0016 ; Supers dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $008E ; Samus X dl $7E0AFA : db $02 : dw $028B ; Samus Y dl $7ED8C2 : db $02 : dw $CCAA ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_postdraygon_aqueduct_final: dw #preset_100early_maridia_postdraygon_botwoon_etank ; Maridia Post-Draygon: Botwoon E-Tank dl $7E078D : db $02 : dw $A8AC ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $D6FD ; MDB dl $7E090F : db $02 : dw $2900 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $012F ; Screen X position in pixels dl $7E0913 : db $02 : dw $EC00 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $04A0 ; Health dl $7E09C4 : db $02 : dw $04AF ; Max helath dl $7E0AF6 : db $02 : dw $01AA ; Samus X dl $7E0AFA : db $02 : dw $00AB ; Samus Y dl $7ED882 : db $02 : dw $05CC ; Events, Items, Doors dl $7ED91A : db $02 : dw $0081 ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_postdraygon_west_sand_pit: dw #preset_100early_maridia_postdraygon_aqueduct_final ; Maridia Post-Draygon: Aqueduct Final dl $7E078D : db $02 : dw $A7D4 ; DDB dl $7E079B : db $02 : dw $D5A7 ; MDB dl $7E090F : db $02 : dw $D000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0500 ; Screen X position in pixels dl $7E0913 : db $02 : dw $5400 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $021F ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $04A5 ; Health dl $7E09C6 : db $02 : dw $0084 ; Missiles dl $7E09C8 : db $02 : dw $009B ; Max missiles dl $7E09CA : db $02 : dw $001B ; Supers dl $7E09CC : db $02 : dw $0028 ; Max supers dl $7E0AF6 : db $02 : dw $05DB ; Samus X dl $7E0AFA : db $02 : dw $02CB ; Samus Y dl $7ED882 : db $02 : dw $05FC ; Events, Items, Doors dl $7ED91A : db $02 : dw $0083 ; Events, Items, Doors dw #$FFFF .after preset_100early_maridia_postdraygon_thread_the_needle: dw #preset_100early_maridia_postdraygon_west_sand_pit ; Maridia Post-Draygon: West Sand Pit dl $7E078D : db $02 : dw $A528 ; DDB dl $7E079B : db $02 : dw $D21C ; MDB dl $7E07C3 : db $02 : dw $B130 ; GFX Pointers dl $7E07C5 : db $02 : dw $3CBE ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B8 ; GFX Pointers dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $1800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $00FF ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $047D ; Health dl $7E09C6 : db $02 : dw $0089 ; Missiles dl $7E09C8 : db $02 : dw $00A0 ; Max missiles dl $7E09CE : db $02 : dw $0013 ; Pbs dl $7E09D4 : db $02 : dw $012C ; Max reserves dl $7E0AF6 : db $02 : dw $002F ; Samus X dl $7E0AFA : db $02 : dw $018B ; Samus Y dl $7ED882 : db $02 : dw $05FF ; Events, Items, Doors dl $7ED91A : db $02 : dw $0085 ; Events, Items, Doors dw #$FFFF .after preset_100early_kraidicekronic_kraid_entrance_revisit: dw #preset_100early_maridia_postdraygon_thread_the_needle ; Maridia Post-Draygon: Thread the Needle dl $7E078D : db $02 : dw $A510 ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $CF80 ; MDB dl $7E07F3 : db $02 : dw $0012 ; Music Bank dl $7E090F : db $02 : dw $A001 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $B000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0100 ; Screen Y position in pixels dl $7E09CA : db $02 : dw $001A ; Supers dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $005B ; Samus X dw #$FFFF .after preset_100early_kraidicekronic_kraid_missiles: dw #preset_100early_kraidicekronic_kraid_entrance_revisit ; Kraid-Ice-Kronic: Kraid Entrance Revisit dl $7E078D : db $02 : dw $923A ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $A471 ; MDB dl $7E079F : db $02 : dw $0001 ; Region dl $7E07C3 : db $02 : dw $A5AA ; GFX Pointers dl $7E07C5 : db $02 : dw $5FBC ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B3 ; GFX Pointers dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $5C00 ; Screen subpixel Y position dl $7E09CE : db $02 : dw $0012 ; Pbs dl $7E0AF6 : db $02 : dw $016C ; Samus X dw #$FFFF .after preset_100early_kraidicekronic_kraid_missiles_escape: dw #preset_100early_kraidicekronic_kraid_missiles ; Kraid-Ice-Kronic: Kraid Missiles dl $7E078D : db $02 : dw $9156 ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $A4DA ; MDB dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $01BB ; Screen X position in pixels dl $7E0913 : db $02 : dw $AC00 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C6 : db $02 : dw $008E ; Missiles dl $7E09C8 : db $02 : dw $00A5 ; Max missiles dl $7E09CE : db $02 : dw $0011 ; Pbs dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0250 ; Samus X dl $7E0AFA : db $02 : dw $00AB ; Samus Y dl $7ED874 : db $02 : dw $1F8E ; Events, Items, Doors dl $7ED91A : db $02 : dw $0086 ; Events, Items, Doors dw #$FFFF .after preset_100early_kraidicekronic_ice_beam_gate_room: dw #preset_100early_kraidicekronic_kraid_missiles_escape ; Kraid-Ice-Kronic: Kraid Missiles Escape dl $7E078D : db $02 : dw $9246 ; DDB dl $7E078F : db $02 : dw $0005 ; DoorOut Index dl $7E079B : db $02 : dw $A7DE ; MDB dl $7E079F : db $02 : dw $0002 ; Region dl $7E07C3 : db $02 : dw $C3F9 ; GFX Pointers dl $7E07C5 : db $02 : dw $BBBD ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B6 ; GFX Pointers dl $7E07F3 : db $02 : dw $0015 ; Music Bank dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0321 ; Screen Y position in pixels dl $7E09C6 : db $02 : dw $0092 ; Missiles dl $7E09CA : db $02 : dw $0018 ; Supers dl $7E09CE : db $02 : dw $0010 ; Pbs dl $7E0AF6 : db $02 : dw $002E ; Samus X dl $7E0AFA : db $02 : dw $0393 ; Samus Y dl $7ED8B8 : db $02 : dw $EEEF ; Events, Items, Doors dw #$FFFF .after preset_100early_kraidicekronic_ice_beam_snake_room: dw #preset_100early_kraidicekronic_ice_beam_gate_room ; Kraid-Ice-Kronic: Ice Beam Gate Room dl $7E078D : db $02 : dw $931E ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $A75D ; MDB dl $7E07C5 : db $02 : dw $E4BD ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B5 ; GFX Pointers dl $7E090F : db $02 : dw $6000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $7000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E0AF6 : db $02 : dw $0035 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dw #$FFFF .after preset_100early_kraidicekronic_snake_room_revisit: dw #preset_100early_kraidicekronic_ice_beam_snake_room ; Kraid-Ice-Kronic: Ice Beam Snake Room dl $7E078D : db $02 : dw $937E ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $A890 ; MDB dl $7E07C5 : db $02 : dw $BBBD ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B6 ; GFX Pointers dl $7E07F5 : db $02 : dw $0003 ; Music Track dl $7E090F : db $02 : dw $E000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $4000 ; Screen subpixel Y position dl $7E09A6 : db $02 : dw $100B ; Beams dl $7E09A8 : db $02 : dw $100F ; Beams dl $7E09C2 : db $02 : dw $0478 ; Health dl $7E09CA : db $02 : dw $0019 ; Supers dl $7E0AF6 : db $02 : dw $00BA ; Samus X dl $7ED876 : db $02 : dw $1FF7 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0087 ; Events, Items, Doors dw #$FFFF .after preset_100early_kraidicekronic_ice_escape: dw #preset_100early_kraidicekronic_snake_room_revisit ; Kraid-Ice-Kronic: Snake Room Revisit dl $7E078D : db $02 : dw $935A ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $A8B9 ; MDB dl $7E07C5 : db $02 : dw $E4BD ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B5 ; GFX Pointers dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $2001 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $9000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0200 ; Screen Y position in pixels dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $00C7 ; Samus X dl $7E0AFA : db $02 : dw $028B ; Samus Y dw #$FFFF .after preset_100early_kraidicekronic_crumble_shaft_missiles: dw #preset_100early_kraidicekronic_ice_escape ; Kraid-Ice-Kronic: Ice Escape dl $7E078D : db $02 : dw $9276 ; DDB dl $7E079B : db $02 : dw $A815 ; MDB dl $7E07C5 : db $02 : dw $BBBD ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B6 ; GFX Pointers dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0284 ; Screen X position in pixels dl $7E0913 : db $02 : dw $D000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0300 ; Screen Y position in pixels dl $7E09CE : db $02 : dw $000F ; Pbs dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0324 ; Samus X dl $7E0AFA : db $02 : dw $03B3 ; Samus Y dw #$FFFF .after preset_100early_kraidicekronic_crocomire_speedway: dw #preset_100early_kraidicekronic_crumble_shaft_missiles ; Kraid-Ice-Kronic: Crumble Shaft Missiles dl $7E078D : db $02 : dw $9336 ; DDB dl $7E078F : db $02 : dw $0003 ; DoorOut Index dl $7E079B : db $02 : dw $A8F8 ; MDB dl $7E07C5 : db $02 : dw $E4BD ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B5 ; GFX Pointers dl $7E090F : db $02 : dw $7FFF ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $3000 ; Screen subpixel Y position dl $7E09C2 : db $02 : dw $0479 ; Health dl $7E09C6 : db $02 : dw $0097 ; Missiles dl $7E09C8 : db $02 : dw $00AA ; Max missiles dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $00DD ; Samus X dl $7E0AFA : db $02 : dw $038B ; Samus Y dl $7ED876 : db $02 : dw $1FFF ; Events, Items, Doors dl $7ED91A : db $02 : dw $0088 ; Events, Items, Doors dw #$FFFF .after preset_100early_kraidicekronic_kronic_boost: dw #preset_100early_kraidicekronic_crocomire_speedway ; Kraid-Ice-Kronic: Crocomire Speedway dl $7E078D : db $02 : dw $9792 ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $AFFB ; MDB dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0300 ; Screen X position in pixels dl $7E0913 : db $02 : dw $4400 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E0AF6 : db $02 : dw $03C3 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dw #$FFFF .after preset_100early_lower_norfair_ln_main_hall: dw #preset_100early_kraidicekronic_kronic_boost ; Kraid-Ice-Kronic: Kronic Boost dl $7E078D : db $02 : dw $96F6 ; DDB dl $7E079B : db $02 : dw $B236 ; MDB dl $7E07F3 : db $02 : dw $0018 ; Music Bank dl $7E0911 : db $02 : dw $0400 ; Screen X position in pixels dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0200 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0476 ; Health dl $7E09CE : db $02 : dw $000E ; Pbs dl $7E0A1C : db $02 : dw $009B ; Samus position/state dl $7E0A1E : db $02 : dw $0000 ; More position/state dl $7E0AF6 : db $02 : dw $0480 ; Samus X dl $7E0AFA : db $02 : dw $0288 ; Samus Y dl $7ED8BA : db $02 : dw $01F7 ; Events, Items, Doors dw #$FFFF .after preset_100early_lower_norfair_golden_torizo: dw #preset_100early_lower_norfair_ln_main_hall ; Lower Norfair: LN Main Hall dl $7E078D : db $02 : dw $9852 ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $B1E5 ; MDB dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0200 ; Screen X position in pixels dl $7E0913 : db $02 : dw $2C00 ; Screen subpixel Y position dl $7E09C2 : db $02 : dw $0449 ; Health dl $7E09CE : db $02 : dw $000C ; Pbs dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $02B2 ; Samus X dl $7E0AFA : db $02 : dw $028B ; Samus Y dl $7ED820 : db $02 : dw $3801 ; Events, Items, Doors dw #$FFFF .after preset_100early_lower_norfair_leaving_golden_torizo: dw #preset_100early_lower_norfair_golden_torizo ; Lower Norfair: Golden Torizo dl $7E078D : db $02 : dw $983A ; DDB dl $7E079B : db $02 : dw $B283 ; MDB dl $7E07F3 : db $02 : dw $0024 ; Music Bank dl $7E07F5 : db $02 : dw $0003 ; Music Track dl $7E090F : db $02 : dw $B001 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $4400 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0100 ; Screen Y position in pixels dl $7E09C6 : db $02 : dw $009C ; Missiles dl $7E09C8 : db $02 : dw $00AF ; Max missiles dl $7E09CA : db $02 : dw $001E ; Supers dl $7E09CC : db $02 : dw $002D ; Max supers dl $7E09CE : db $02 : dw $000B ; Pbs dl $7E0AF6 : db $02 : dw $0025 ; Samus X dl $7E0AFA : db $02 : dw $018B ; Samus Y dl $7ED82A : db $02 : dw $0106 ; Events, Items, Doors dl $7ED878 : db $02 : dw $00DE ; Events, Items, Doors dl $7ED91A : db $02 : dw $008A ; Events, Items, Doors dw #$FFFF .after preset_100early_lower_norfair_fast_ripper_room: dw #preset_100early_lower_norfair_leaving_golden_torizo ; Lower Norfair: Leaving Golden Torizo dl $7E078D : db $02 : dw $9882 ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $B6C1 ; MDB dl $7E090F : db $02 : dw $4000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $4800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $000B ; Screen Y position in pixels dl $7E09A2 : db $02 : dw $732F ; Equipped Items dl $7E09A4 : db $02 : dw $732F ; Collected Items dl $7E0AF6 : db $02 : dw $0091 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED878 : db $02 : dw $80DE ; Events, Items, Doors dl $7ED8BA : db $02 : dw $03F7 ; Events, Items, Doors dl $7ED91A : db $02 : dw $008B ; Events, Items, Doors dw #$FFFF .after preset_100early_lower_norfair_worst_room_in_the_game: dw #preset_100early_lower_norfair_fast_ripper_room ; Lower Norfair: Fast Ripper Room dl $7E078D : db $02 : dw $9912 ; DDB dl $7E078F : db $02 : dw $0004 ; DoorOut Index dl $7E079B : db $02 : dw $B457 ; MDB dl $7E07F3 : db $02 : dw $0018 ; Music Bank dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0300 ; Screen X position in pixels dl $7E0913 : db $02 : dw $2800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $03FD ; Health dl $7E09CA : db $02 : dw $001D ; Supers dl $7E0AF6 : db $02 : dw $03DB ; Samus X dw #$FFFF .after preset_100early_lower_norfair_mickey_mouse_missiles: dw #preset_100early_lower_norfair_worst_room_in_the_game ; Lower Norfair: Worst Room in the Game dl $7E078D : db $02 : dw $994E ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $B4AD ; MDB dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $5000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0103 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0411 ; Health dl $7E0AF6 : db $02 : dw $0071 ; Samus X dl $7E0AFA : db $02 : dw $017B ; Samus Y dw #$FFFF .after preset_100early_lower_norfair_amphitheatre: dw #preset_100early_lower_norfair_mickey_mouse_missiles ; Lower Norfair: Mickey Mouse Missiles dl $7E078D : db $02 : dw $9936 ; DDB dl $7E090F : db $02 : dw $0001 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $011D ; Screen Y position in pixels dl $7E09C6 : db $02 : dw $00A1 ; Missiles dl $7E09C8 : db $02 : dw $00B4 ; Max missiles dl $7E0AF6 : db $02 : dw $00AB ; Samus X dl $7E0AFA : db $02 : dw $018B ; Samus Y dl $7ED878 : db $02 : dw $82DE ; Events, Items, Doors dl $7ED91A : db $02 : dw $008C ; Events, Items, Doors dw #$FFFF .after preset_100early_lower_norfair_red_kihunter_shaft: dw #preset_100early_lower_norfair_amphitheatre ; Lower Norfair: Amphitheatre dl $7E078D : db $02 : dw $997E ; DDB dl $7E079B : db $02 : dw $B4E5 ; MDB dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0270 ; Screen X position in pixels dl $7E0913 : db $02 : dw $F000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0031 ; Screen Y position in pixels dl $7E0AF6 : db $02 : dw $02D0 ; Samus X dl $7E0AFA : db $02 : dw $00BB ; Samus Y dw #$FFFF .after preset_100early_lower_norfair_ninja_pirates: dw #preset_100early_lower_norfair_red_kihunter_shaft ; Lower Norfair: Red Kihunter Shaft dl $7E078D : db $02 : dw $99EA ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $B5D5 ; MDB dl $7E090F : db $02 : dw $4FFF ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $021F ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $03D8 ; Health dl $7E09C6 : db $02 : dw $00A3 ; Missiles dl $7E09CA : db $02 : dw $001C ; Supers dl $7E09CE : db $02 : dw $000D ; Pbs dl $7E09D0 : db $02 : dw $0028 ; Max pbs dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0163 ; Samus X dl $7E0AFA : db $02 : dw $028B ; Samus Y dl $7ED878 : db $02 : dw $92DE ; Events, Items, Doors dl $7ED8BA : db $02 : dw $C3F7 ; Events, Items, Doors dl $7ED91A : db $02 : dw $008D ; Events, Items, Doors dw #$FFFF .after preset_100early_lower_norfair_plowerhouse_room: dw #preset_100early_lower_norfair_ninja_pirates ; Lower Norfair: Ninja Pirates dl $7E078D : db $02 : dw $9A1A ; DDB dl $7E079B : db $02 : dw $B62B ; MDB dl $7E090F : db $02 : dw $3000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $017E ; Screen X position in pixels dl $7E0913 : db $02 : dw $4800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0437 ; Health dl $7E09C6 : db $02 : dw $00A5 ; Missiles dl $7E09CA : db $02 : dw $0022 ; Supers dl $7E0AF6 : db $02 : dw $01EB ; Samus X dl $7E0AFA : db $02 : dw $00BB ; Samus Y dl $7ED8BC : db $02 : dw $0001 ; Events, Items, Doors dw #$FFFF .after preset_100early_lower_norfair_ridley: dw #preset_100early_lower_norfair_plowerhouse_room ; Lower Norfair: Plowerhouse Room dl $7E078D : db $02 : dw $995A ; DDB dl $7E079B : db $02 : dw $B37A ; MDB dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $4C00 ; Screen subpixel Y position dl $7E09C2 : db $02 : dw $0434 ; Health dl $7E09CA : db $02 : dw $0021 ; Supers dl $7E0AF6 : db $02 : dw $0039 ; Samus X dl $7E0AFA : db $02 : dw $009B ; Samus Y dl $7ED8BA : db $02 : dw $D3F7 ; Events, Items, Doors dw #$FFFF .after preset_100early_lower_norfair_ridley_escape: dw #preset_100early_lower_norfair_ridley ; Lower Norfair: Ridley dl $7E078D : db $02 : dw $98B2 ; DDB dl $7E079B : db $02 : dw $B698 ; MDB dl $7E07F3 : db $02 : dw $0024 ; Music Bank dl $7E07F5 : db $02 : dw $0003 ; Music Track dl $7E090F : db $02 : dw $6000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $A800 ; Screen subpixel Y position dl $7E09C2 : db $02 : dw $0513 ; Health dl $7E09C4 : db $02 : dw $0513 ; Max helath dl $7E09CA : db $02 : dw $0022 ; Supers dl $7E09CE : db $02 : dw $000E ; Pbs dl $7E0A1C : db $02 : dw $0027 ; Samus position/state dl $7E0A1E : db $02 : dw $0508 ; More position/state dl $7E0AF6 : db $02 : dw $00C9 ; Samus X dl $7E0AFA : db $02 : dw $00B0 ; Samus Y dl $7ED82A : db $02 : dw $0107 ; Events, Items, Doors dl $7ED878 : db $02 : dw $D2DE ; Events, Items, Doors dl $7ED8BA : db $02 : dw $DBF7 ; Events, Items, Doors dl $7ED91A : db $02 : dw $008E ; Events, Items, Doors dw #$FFFF .after preset_100early_lower_norfair_wasteland_revisit: dw #preset_100early_lower_norfair_ridley_escape ; Lower Norfair: Ridley Escape dl $7E078D : db $02 : dw $9966 ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $B62B ; MDB dl $7E07F3 : db $02 : dw $0018 ; Music Bank dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0200 ; Screen X position in pixels dl $7E0913 : db $02 : dw $8400 ; Screen subpixel Y position dl $7E09C2 : db $02 : dw $04F1 ; Health dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $02DB ; Samus X dl $7E0AFA : db $02 : dw $00AB ; Samus Y dl $7ED8BA : db $02 : dw $DFF7 ; Events, Items, Doors dw #$FFFF .after preset_100early_lower_norfair_kihunter_shaft_revisit: dw #preset_100early_lower_norfair_wasteland_revisit ; Lower Norfair: Wasteland Revisit dl $7E078D : db $02 : dw $9A3E ; DDB dl $7E079B : db $02 : dw $B5D5 ; MDB dl $7E090F : db $02 : dw $3000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0500 ; Screen X position in pixels dl $7E0913 : db $02 : dw $2FFF ; Screen subpixel Y position dl $7E09C2 : db $02 : dw $04C4 ; Health dl $7E09CE : db $02 : dw $000D ; Pbs dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0590 ; Samus X dl $7E0AFA : db $02 : dw $005B ; Samus Y dl $7ED91A : db $02 : dw $008F ; Events, Items, Doors dw #$FFFF .after preset_100early_lower_norfair_firefleas_room: dw #preset_100early_lower_norfair_kihunter_shaft_revisit ; Lower Norfair: Kihunter Shaft Revisit dl $7E078D : db $02 : dw $9A26 ; DDB dl $7E079B : db $02 : dw $B585 ; MDB dl $7E090F : db $02 : dw $4180 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $4000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $001A ; Screen Y position in pixels dl $7E09CE : db $02 : dw $000C ; Pbs dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $00B8 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dw #$FFFF .after preset_100early_lower_norfair_springball_maze: dw #preset_100early_lower_norfair_firefleas_room ; Lower Norfair: Firefleas Room dl $7E078D : db $02 : dw $9A02 ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $B6EE ; MDB dl $7E07C5 : db $02 : dw $BBBD ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B6 ; GFX Pointers dl $7E090F : db $02 : dw $4000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $001C ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0576 ; Health dl $7E09C4 : db $02 : dw $0577 ; Max helath dl $7E09CA : db $02 : dw $0021 ; Supers dl $7E09CE : db $02 : dw $000D ; Pbs dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $016B ; Samus X dl $7ED87A : db $02 : dw $0001 ; Events, Items, Doors dl $7ED91A : db $02 : dw $0090 ; Events, Items, Doors dw #$FFFF .after preset_100early_lower_norfair_three_muskateers: dw #preset_100early_lower_norfair_springball_maze ; Lower Norfair: Springball Maze dl $7E078D : db $02 : dw $9A92 ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $B510 ; MDB dl $7E07C5 : db $02 : dw $E4BD ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B5 ; GFX Pointers dl $7E090F : db $02 : dw $D801 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E09C6 : db $02 : dw $00AA ; Missiles dl $7E09C8 : db $02 : dw $00B9 ; Max missiles dl $7E09CE : db $02 : dw $0012 ; Pbs dl $7E09D0 : db $02 : dw $002D ; Max pbs dl $7E0AF6 : db $02 : dw $0059 ; Samus X dl $7ED878 : db $02 : dw $DEDE ; Events, Items, Doors dl $7ED91A : db $02 : dw $0094 ; Events, Items, Doors dw #$FFFF .after preset_100early_lower_norfair_bubble_mountain_return: dw #preset_100early_lower_norfair_three_muskateers ; Lower Norfair: Three Muskateers dl $7E078D : db $02 : dw $9A4A ; DDB dl $7E079B : db $02 : dw $AD5E ; MDB dl $7E07F3 : db $02 : dw $0015 ; Music Bank dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position. dl $7E09C2 : db $02 : dw $0571 ; Health dl $7E09C6 : db $02 : dw $00AD ; Missiles dl $7E09C8 : db $02 : dw $00BE ; Max missiles dl $7E0AF6 : db $02 : dw $008F ; Samus X dl $7ED878 : db $02 : dw $FEDE ; Events, Items, Doors dl $7ED91A : db $02 : dw $0095 ; Events, Items, Doors dw #$FFFF .after preset_100early_lower_norfair_norfair_reserve: dw #preset_100early_lower_norfair_bubble_mountain_return ; Lower Norfair: Bubble Mountain Return dl $7E078D : db $02 : dw $95CA ; DDB dl $7E079B : db $02 : dw $ACB3 ; MDB dl $7E090F : db $02 : dw $1000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $5400 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $056F ; Health dl $7E09C6 : db $02 : dw $00AE ; Missiles dl $7E0AF6 : db $02 : dw $003D ; Samus X dl $7ED8BA : db $02 : dw $DFFF ; Events, Items, Doors dl $7ED91A : db $02 : dw $0096 ; Events, Items, Doors dw #$FFFF .after preset_100early_lower_norfair_bubble_mountain_final: dw #preset_100early_lower_norfair_norfair_reserve ; Lower Norfair: Norfair Reserve dl $7E078D : db $02 : dw $952E ; DDB dl $7E079B : db $02 : dw $AC83 ; MDB dl $7E090F : db $02 : dw $7000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $4400 ; Screen subpixel Y position dl $7E09C6 : db $02 : dw $00B8 ; Missiles dl $7E09C8 : db $02 : dw $00C8 ; Max missiles dl $7E09D4 : db $02 : dw $0190 ; Max reserves dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $01C1 ; Samus X dl $7ED876 : db $02 : dw $FFFF ; Events, Items, Doors dl $7ED91A : db $02 : dw $009A ; Events, Items, Doors dw #$FFFF .after preset_100early_lower_norfair_business_center_final: dw #preset_100early_lower_norfair_bubble_mountain_final ; Lower Norfair: Bubble Mountain Final dl $7E078D : db $02 : dw $97DA ; DDB dl $7E079B : db $02 : dw $B167 ; MDB dl $7E07C3 : db $02 : dw $860B ; GFX Pointers dl $7E07C5 : db $02 : dw $21C0 ; GFX Pointers dl $7E07C7 : db $02 : dw $C2C0 ; GFX Pointers dl $7E090F : db $02 : dw $A000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $4C00 ; Screen subpixel Y position dl $7E09C2 : db $02 : dw $056A ; Health dl $7E09C6 : db $02 : dw $00BD ; Missiles dl $7E09C8 : db $02 : dw $00CD ; Max missiles dl $7E09CA : db $02 : dw $0022 ; Supers dl $7E09CE : db $02 : dw $0010 ; Pbs dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $003F ; Samus X dl $7ED878 : db $02 : dw $FEDF ; Events, Items, Doors dl $7ED91A : db $02 : dw $009B ; Events, Items, Doors dw #$FFFF .after preset_100early_final_cleanup_below_spazer: dw #preset_100early_lower_norfair_business_center_final ; Lower Norfair: Business Center Final dl $7E078D : db $02 : dw $A33C ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $CF54 ; MDB dl $7E079F : db $02 : dw $0004 ; Region dl $7E07C3 : db $02 : dw $B130 ; GFX Pointers dl $7E07C5 : db $02 : dw $3CBE ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B8 ; GFX Pointers dl $7E07F3 : db $02 : dw $0012 ; Music Bank dl $7E090F : db $02 : dw $F000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $9C00 ; Screen subpixel Y position dl $7E09C2 : db $02 : dw $0577 ; Health dl $7E09D6 : db $02 : dw $00B4 ; Reserves dl $7E0AF6 : db $02 : dw $00CE ; Samus X dw #$FFFF .after preset_100early_final_cleanup_red_tower_xray: dw #preset_100early_final_cleanup_below_spazer ; Final Cleanup: Below Spazer dl $7E078D : db $02 : dw $910E ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $A3DD ; MDB dl $7E079F : db $02 : dw $0001 ; Region dl $7E07C3 : db $02 : dw $A5AA ; GFX Pointers dl $7E07C5 : db $02 : dw $5FBC ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B3 ; GFX Pointers dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $3800 ; Screen subpixel Y position dl $7E0AF6 : db $02 : dw $002E ; Samus X dl $7E0AFA : db $02 : dw $009B ; Samus Y dw #$FFFF .after preset_100early_final_cleanup_xray_passage: dw #preset_100early_final_cleanup_red_tower_xray ; Final Cleanup: Red Tower X-Ray dl $7E078D : db $02 : dw $90F6 ; DDB dl $7E079B : db $02 : dw $A253 ; MDB dl $7E090F : db $02 : dw $0FFF ; Screen subpixel X position. dl $7E0913 : db $02 : dw $3400 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $061D ; Screen Y position in pixels dl $7E09CE : db $02 : dw $000F ; Pbs dl $7E0AF6 : db $02 : dw $003B ; Samus X dl $7E0AFA : db $02 : dw $068B ; Samus Y dl $7ED8B6 : db $02 : dw $EAF9 ; Events, Items, Doors dw #$FFFF .after preset_100early_final_cleanup_xray_passage_return: dw #preset_100early_final_cleanup_xray_passage ; Final Cleanup: X-Ray Passage dl $7E078D : db $02 : dw $905A ; DDB dl $7E079B : db $02 : dw $A2CE ; MDB dl $7E07F5 : db $02 : dw $0003 ; Music Track dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $00F2 ; Screen X position in pixels dl $7E0913 : db $02 : dw $37FF ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09A2 : db $02 : dw $F32F ; Equipped Items dl $7E09A4 : db $02 : dw $F32F ; Collected Items dl $7E09CA : db $02 : dw $0021 ; Supers dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $0178 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED874 : db $02 : dw $1FCE ; Events, Items, Doors dl $7ED8B6 : db $02 : dw $EEF9 ; Events, Items, Doors dl $7ED91A : db $02 : dw $009C ; Events, Items, Doors dw #$FFFF .after preset_100early_final_cleanup_reverse_slinky: dw #preset_100early_final_cleanup_xray_passage_return ; Final Cleanup: X-Ray Passage Return dl $7E078D : db $02 : dw $902A ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $9FBA ; MDB dl $7E07C3 : db $02 : dw $E6B0 ; GFX Pointers dl $7E07C5 : db $02 : dw $64BB ; GFX Pointers dl $7E07C7 : db $02 : dw $C2B2 ; GFX Pointers dl $7E07F3 : db $02 : dw $000F ; Music Bank dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E0911 : db $02 : dw $03D6 ; Screen X position in pixels dl $7E0913 : db $02 : dw $5000 ; Screen subpixel Y position dl $7E09CE : db $02 : dw $000E ; Pbs dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0476 ; Samus X dl $7E0AFA : db $02 : dw $004B ; Samus Y dw #$FFFF .after preset_100early_final_cleanup_retro_brinstar_hoppers: dw #preset_100early_final_cleanup_reverse_slinky ; Final Cleanup: Reverse Slinky dl $7E078D : db $02 : dw $8EFE ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $9E52 ; MDB dl $7E090F : db $02 : dw $2000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $00DE ; Screen X position in pixels dl $7E0913 : db $02 : dw $0C00 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0015 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0572 ; Health dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $0152 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED91A : db $02 : dw $009D ; Events, Items, Doors dw #$FFFF .after preset_100early_final_cleanup_retro_brinstar_etank: dw #preset_100early_final_cleanup_retro_brinstar_hoppers ; Final Cleanup: Retro Brinstar Hoppers dl $7E078D : db $02 : dw $8E86 ; DDB dl $7E078F : db $02 : dw $0003 ; DoorOut Index dl $7E079B : db $02 : dw $9E9F ; MDB dl $7E07F3 : db $02 : dw $0009 ; Music Bank dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $058B ; Screen X position in pixels dl $7E0915 : db $02 : dw $0200 ; Screen Y position in pixels dl $7E09CE : db $02 : dw $0012 ; Pbs dl $7E09D0 : db $02 : dw $0032 ; Max pbs dl $7E0AF6 : db $02 : dw $05EB ; Samus X dl $7E0AFA : db $02 : dw $02BB ; Samus Y dl $7ED872 : db $02 : dw $CFEF ; Events, Items, Doors dl $7ED91A : db $02 : dw $009E ; Events, Items, Doors dw #$FFFF .after preset_100early_final_cleanup_boulder_room: dw #preset_100early_final_cleanup_retro_brinstar_etank ; Final Cleanup: Retro Brinstar E-Tank dl $7E078D : db $02 : dw $8ECE ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $9F64 ; MDB dl $7E090F : db $02 : dw $6000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0200 ; Screen X position in pixels dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $001D ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $05DB ; Health dl $7E09C4 : db $02 : dw $05DB ; Max helath dl $7E09CA : db $02 : dw $0020 ; Supers dl $7E09CE : db $02 : dw $0011 ; Pbs dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0259 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED872 : db $02 : dw $EFEF ; Events, Items, Doors dl $7ED8B6 : db $02 : dw $EEFD ; Events, Items, Doors dl $7ED91A : db $02 : dw $00A0 ; Events, Items, Doors dw #$FFFF .after preset_100early_final_cleanup_leaving_billy_mays: dw #preset_100early_final_cleanup_boulder_room ; Final Cleanup: Boulder Room dl $7E078D : db $02 : dw $8FEE ; DDB dl $7E079B : db $02 : dw $A1D8 ; MDB dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C6 : db $02 : dw $00C7 ; Missiles dl $7E09C8 : db $02 : dw $00D7 ; Max missiles dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $00D6 ; Samus X dl $7ED874 : db $02 : dw $1FFE ; Events, Items, Doors dl $7ED91A : db $02 : dw $00A2 ; Events, Items, Doors dw #$FFFF .after preset_100early_final_cleanup_retro_brinstar_escape: dw #preset_100early_final_cleanup_leaving_billy_mays ; Final Cleanup: Leaving Billy Mays dl $7E078D : db $02 : dw $8FE2 ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $9F64 ; MDB dl $7E090F : db $02 : dw $4000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0200 ; Screen X position in pixels dl $7E0913 : db $02 : dw $9400 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0200 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $05D1 ; Health dl $7E09C6 : db $02 : dw $00CC ; Missiles dl $7E09C8 : db $02 : dw $00DC ; Max missiles dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $02D9 ; Samus X dl $7E0AFA : db $02 : dw $02BB ; Samus Y dl $7ED872 : db $02 : dw $FFEF ; Events, Items, Doors dl $7ED91A : db $02 : dw $00A4 ; Events, Items, Doors dw #$FFFF .after preset_100early_final_cleanup_old_tourian_missiles: dw #preset_100early_final_cleanup_retro_brinstar_escape ; Final Cleanup: Retro Brinstar Escape dl $7E078D : db $02 : dw $8EB6 ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $97B5 ; MDB dl $7E079F : db $02 : dw $0000 ; Region dl $7E07C3 : db $02 : dw $F911 ; GFX Pointers dl $7E07C5 : db $02 : dw $43BA ; GFX Pointers dl $7E07C7 : db $02 : dw $C2AF ; GFX Pointers dl $7E07F5 : db $02 : dw $0003 ; Music Track dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09CE : db $02 : dw $0010 ; Pbs dl $7E0A1C : db $02 : dw $009B ; Samus position/state dl $7E0A1E : db $02 : dw $0000 ; More position/state dl $7E0A68 : db $02 : dw $0068 ; Flash suit dl $7E0AF6 : db $02 : dw $0080 ; Samus X dl $7E0AFA : db $02 : dw $0088 ; Samus Y dl $7ED91A : db $02 : dw $00A5 ; Events, Items, Doors dw #$FFFF .after preset_100early_final_cleanup_climb_supers: dw #preset_100early_final_cleanup_old_tourian_missiles ; Final Cleanup: Old Tourian Missiles dl $7E078D : db $02 : dw $8B7A ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $96BA ; MDB dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $4001 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0200 ; Screen X position in pixels dl $7E0913 : db $02 : dw $D400 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0700 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0598 ; Health dl $7E09C6 : db $02 : dw $00D1 ; Missiles dl $7E09C8 : db $02 : dw $00E1 ; Max missiles dl $7E09CE : db $02 : dw $000F ; Pbs dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0A68 : db $02 : dw $0000 ; Flash suit dl $7E0AF6 : db $02 : dw $02B9 ; Samus X dl $7E0AFA : db $02 : dw $078B ; Samus Y dl $7ED870 : db $02 : dw $E7FF ; Events, Items, Doors dl $7ED8B2 : db $02 : dw $2C09 ; Events, Items, Doors dl $7ED91A : db $02 : dw $00A6 ; Events, Items, Doors dw #$FFFF .after preset_100early_final_cleanup_parlor_missiles: dw #preset_100early_final_cleanup_climb_supers ; Final Cleanup: Climb Supers dl $7E078D : db $02 : dw $8B3E ; DDB dl $7E079B : db $02 : dw $92FD ; MDB dl $7E07C3 : db $02 : dw $C629 ; GFX Pointers dl $7E07C5 : db $02 : dw $7CBA ; GFX Pointers dl $7E07C7 : db $02 : dw $C2AD ; GFX Pointers dl $7E090F : db $02 : dw $5800 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $6400 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0314 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $04FE ; Health dl $7E09CA : db $02 : dw $0025 ; Supers dl $7E09CC : db $02 : dw $0032 ; Max supers dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $012C ; Samus X dl $7E0AFA : db $02 : dw $0398 ; Samus Y dl $7ED870 : db $02 : dw $EFFF ; Events, Items, Doors dl $7ED91A : db $02 : dw $00A7 ; Events, Items, Doors dw #$FFFF .after preset_100early_final_cleanup_leaving_parlor_missiles: dw #preset_100early_final_cleanup_parlor_missiles ; Final Cleanup: Parlor Missiles dl $7E078D : db $02 : dw $8C82 ; DDB dl $7E079B : db $02 : dw $9A90 ; MDB dl $7E07C3 : db $02 : dw $F911 ; GFX Pointers dl $7E07C5 : db $02 : dw $43BA ; GFX Pointers dl $7E07C7 : db $02 : dw $C2AF ; GFX Pointers dl $7E090F : db $02 : dw $D000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $4400 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C6 : db $02 : dw $00D6 ; Missiles dl $7E09C8 : db $02 : dw $00E6 ; Max missiles dl $7E09CE : db $02 : dw $000E ; Pbs dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $0056 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED870 : db $02 : dw $FFFF ; Events, Items, Doors dl $7ED91A : db $02 : dw $00A8 ; Events, Items, Doors dw #$FFFF .after preset_100early_final_cleanup_terminator_revisit: dw #preset_100early_final_cleanup_leaving_parlor_missiles ; Final Cleanup: Leaving Parlor Missiles dl $7E078D : db $02 : dw $8C8E ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $92FD ; MDB dl $7E07C3 : db $02 : dw $C629 ; GFX Pointers dl $7E07C5 : db $02 : dw $7CBA ; GFX Pointers dl $7E07C7 : db $02 : dw $C2AD ; GFX Pointers dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $0166 ; Samus X dl $7E0AFA : db $02 : dw $00AB ; Samus Y dw #$FFFF .after preset_100early_tourian_metroids_1: dw #preset_100early_final_cleanup_terminator_revisit ; Final Cleanup: Terminator Revisit dl $7E078D : db $02 : dw $9222 ; DDB dl $7E078F : db $02 : dw $0002 ; DoorOut Index dl $7E079B : db $02 : dw $DAAE ; MDB dl $7E079F : db $02 : dw $0005 ; Region dl $7E07C3 : db $02 : dw $D414 ; GFX Pointers dl $7E07C5 : db $02 : dw $EDBF ; GFX Pointers dl $7E07C7 : db $02 : dw $C2BA ; GFX Pointers dl $7E07F3 : db $02 : dw $001E ; Music Bank dl $7E090F : db $02 : dw $C001 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $4FFF ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0300 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0517 ; Health dl $7E09C6 : db $02 : dw $00D8 ; Missiles dl $7E09CA : db $02 : dw $0024 ; Supers dl $7E0AF6 : db $02 : dw $003E ; Samus X dl $7E0AFA : db $02 : dw $038B ; Samus Y dl $7ED820 : db $02 : dw $3FC1 ; Events, Items, Doors dl $7ED8B2 : db $02 : dw $6C09 ; Events, Items, Doors dl $7ED90C : db $02 : dw $0100 ; Events, Items, Doors dl $7ED91A : db $02 : dw $00AB ; Events, Items, Doors dw #$FFFF .after preset_100early_tourian_metroids_2: dw #preset_100early_tourian_metroids_1 ; Tourian: Metroids 1 dl $7E078D : db $02 : dw $A984 ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $DAE1 ; MDB dl $7E090F : db $02 : dw $F000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $8800 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0549 ; Health dl $7E09C6 : db $02 : dw $00DE ; Missiles dl $7E09CA : db $02 : dw $0025 ; Supers dl $7E09CE : db $02 : dw $0010 ; Pbs dl $7E0AF6 : db $02 : dw $003A ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED822 : db $02 : dw $0021 ; Events, Items, Doors dl $7ED8C4 : db $02 : dw $0001 ; Events, Items, Doors dw #$FFFF .after preset_100early_tourian_metroids_3: dw #preset_100early_tourian_metroids_2 ; Tourian: Metroids 2 dl $7E078D : db $02 : dw $A9B4 ; DDB dl $7E078F : db $02 : dw $0001 ; DoorOut Index dl $7E079B : db $02 : dw $DB31 ; MDB dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $AC00 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $00F2 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0567 ; Health dl $7E09C6 : db $02 : dw $00E2 ; Missiles dl $7E09CA : db $02 : dw $0027 ; Supers dl $7E09CE : db $02 : dw $0012 ; Pbs dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0AF6 : db $02 : dw $00CA ; Samus X dl $7E0AFA : db $02 : dw $018B ; Samus Y dl $7ED822 : db $02 : dw $0023 ; Events, Items, Doors dl $7ED8C4 : db $02 : dw $0003 ; Events, Items, Doors dw #$FFFF .after preset_100early_tourian_metroids_4: dw #preset_100early_tourian_metroids_3 ; Tourian: Metroids 3 dl $7E078D : db $02 : dw $A9CC ; DDB dl $7E079B : db $02 : dw $DB7D ; MDB dl $7E090F : db $02 : dw $A000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0500 ; Screen X position in pixels dl $7E0913 : db $02 : dw $8C00 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $05CF ; Health dl $7E09C6 : db $02 : dw $00E6 ; Missiles dl $7E09CE : db $02 : dw $0015 ; Pbs dl $7E0AF6 : db $02 : dw $05B0 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dl $7ED822 : db $02 : dw $0027 ; Events, Items, Doors dl $7ED8C4 : db $02 : dw $0007 ; Events, Items, Doors dw #$FFFF .after preset_100early_tourian_baby_skip: dw #preset_100early_tourian_metroids_4 ; Tourian: Metroids 4 dl $7E078D : db $02 : dw $AA14 ; DDB dl $7E079B : db $02 : dw $DC65 ; MDB dl $7E07F3 : db $02 : dw $0045 ; Music Bank dl $7E07F5 : db $02 : dw $0006 ; Music Track dl $7E090F : db $02 : dw $D000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $5800 ; Screen subpixel Y position dl $7E09C2 : db $02 : dw $05BD ; Health dl $7E09CA : db $02 : dw $0029 ; Supers dl $7E09CE : db $02 : dw $0017 ; Pbs dl $7E09D6 : db $02 : dw $0157 ; Reserves dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $01B3 ; Samus X dl $7E0AFA : db $02 : dw $00AB ; Samus Y dl $7ED822 : db $02 : dw $002F ; Events, Items, Doors dl $7ED8C4 : db $02 : dw $000F ; Events, Items, Doors dw #$FFFF .after preset_100early_tourian_zeb_skip: dw #preset_100early_tourian_baby_skip ; Tourian: Baby Skip dl $7E078D : db $02 : dw $AAA4 ; DDB dl $7E079B : db $02 : dw $DDF3 ; MDB dl $7E07F3 : db $02 : dw $001E ; Music Bank dl $7E07F5 : db $02 : dw $0005 ; Music Track dl $7E090F : db $02 : dw $F000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $021D ; Screen Y position in pixels dl $7E09CA : db $02 : dw $0026 ; Supers dl $7E0AF6 : db $02 : dw $0037 ; Samus X dl $7E0AFA : db $02 : dw $028B ; Samus Y dl $7ED8C4 : db $02 : dw $03AF ; Events, Items, Doors dw #$FFFF .after preset_100early_tourian_escape_room_3: dw #preset_100early_tourian_zeb_skip ; Tourian: Zeb Skip dl $7E078D : db $02 : dw $AAEC ; DDB dl $7E079B : db $02 : dw $DE7A ; MDB dl $7E07F3 : db $02 : dw $0024 ; Music Bank dl $7E07F5 : db $02 : dw $0007 ; Music Track dl $7E090F : db $02 : dw $B000 ; Screen subpixel X position. dl $7E0913 : db $02 : dw $8000 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0100 ; Screen Y position in pixels dl $7E09A6 : db $02 : dw $1009 ; Beams dl $7E09C2 : db $02 : dw $05DB ; Health dl $7E09C6 : db $02 : dw $008C ; Missiles dl $7E09CA : db $02 : dw $0000 ; Supers dl $7E09CE : db $02 : dw $0000 ; Pbs dl $7E09D6 : db $02 : dw $0190 ; Reserves dl $7E0A1C : db $02 : dw $0001 ; Samus position/state dl $7E0A1E : db $02 : dw $0008 ; More position/state dl $7E0A76 : db $02 : dw $8000 ; Hyper beam dl $7E0AF6 : db $02 : dw $00DF ; Samus X dl $7E0AFA : db $02 : dw $018B ; Samus Y dl $7ED820 : db $02 : dw $7FCD ; Events, Items, Doors dl $7ED82C : db $02 : dw $0203 ; Events, Items, Doors dw #$FFFF .after preset_100early_tourian_escape_room_4: dw #preset_100early_tourian_escape_room_3 ; Tourian: Escape Room 3 dl $7E078D : db $02 : dw $AB04 ; DDB dl $7E079B : db $02 : dw $DEA7 ; MDB dl $7E090F : db $02 : dw $3000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0500 ; Screen X position in pixels dl $7E0913 : db $02 : dw $4C00 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $001C ; Screen Y position in pixels dl $7E0AF6 : db $02 : dw $05D6 ; Samus X dl $7E0AFA : db $02 : dw $008B ; Samus Y dw #$FFFF .after preset_100early_tourian_escape_parlor: dw #preset_100early_tourian_escape_room_4 ; Tourian: Escape Room 4 dl $7E078D : db $02 : dw $AB34 ; DDB dl $7E079B : db $02 : dw $96BA ; MDB dl $7E079F : db $02 : dw $0000 ; Region dl $7E07C3 : db $02 : dw $F911 ; GFX Pointers dl $7E07C5 : db $02 : dw $43BA ; GFX Pointers dl $7E07C7 : db $02 : dw $C2AF ; GFX Pointers dl $7E090F : db $02 : dw $E000 ; Screen subpixel X position. dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels dl $7E0913 : db $02 : dw $A401 ; Screen subpixel Y position dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels dl $7E09C2 : db $02 : dw $0548 ; Health dl $7E0A1C : db $02 : dw $0002 ; Samus position/state dl $7E0A1E : db $02 : dw $0004 ; More position/state dl $7E0AF6 : db $02 : dw $019A ; Samus X dl $7E0AFA : db $02 : dw $005B ; Samus Y dl $7ED90C : db $02 : dw $FF00 ; Events, Items, Doors dw #$FFFF .after
47.173841
114
0.622088
fcfd1feeeaacf5873b6191a222067a99eab83a38
382
asm
Assembly
programs/oeis/090/A090040.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/090/A090040.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/090/A090040.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A090040: (3*6^n + 2^n)/4. ; 1,5,28,164,976,5840,35008,209984,1259776,7558400,45349888,272098304,1632587776,9795522560,58773127168,352638746624,2115832446976,12694994616320,76169967566848,457019805138944,2742118830309376 mov $1,6 mov $2,$0 mov $3,3 lpb $2,1 add $4,5 lpb $4,1 mul $1,2 mul $3,6 sub $4,$4 lpe add $1,$3 sub $2,1 lpe sub $1,6 div $1,6 add $1,1
19.1
193
0.680628
05af6c489a3532fe0871bd2a56b66edde5a68cc0
772
asm
Assembly
GIOVANNI/gambatte/test/hwtests/halt/lycirq_scy_during_m3_2.asm
ReallyEvilFish/1234
d4f77bf2177c381e07d596aa425bc1a048305c03
[ "MIT" ]
9
2021-02-03T05:44:48.000Z
2022-03-19T12:42:52.000Z
GIOVANNI/gambatte/test/hwtests/halt/lycirq_scy_during_m3_2.asm
ReallyEvilFish/1234
d4f77bf2177c381e07d596aa425bc1a048305c03
[ "MIT" ]
5
2020-08-09T13:04:51.000Z
2022-03-25T11:41:48.000Z
GIOVANNI/gambatte/test/hwtests/halt/lycirq_scy_during_m3_2.asm
Manurocker95/GiovanniEmulator
d4f77bf2177c381e07d596aa425bc1a048305c03
[ "MIT" ]
null
null
null
.size 8000 .text@100 jp lbegin .text@150 lbegin: ld c, 44 ld b, 90 lbegin_waitvblank: ldff a, (c) cmp a, b jrnz lbegin_waitvblank ld hl, 8010 ld a, ff ld(hl++), a ld(hl++), a ld a, 01 ld b, 32 ld hl, 9a40 lbegin_settilemap: ld(hl++), a dec b jrnz lbegin_settilemap ld a, c0 ldff(47), a ld c, 41 ld b, 03 lbegin_waitm3: ldff a, (c) and a, b cmp a, b jrnz lbegin_waitm3 xor a, a ldff(45), a ld a, 40 ldff(c), a ld a, 02 ldff(ff), a ld c, 42 ld b, 90 lwait_lycirq: halt xor a, a ldff(0f), a jp llycint .text@1000 llycint: nop nop nop nop ldff a, (44) ld d, a ld a, b sub a, d ldff(c), a xor a, a .text@102f ldff(c), a ld a, d inc a cmp a, b jrnz llycint_waitlya xor a, a llycint_waitlya: ldff(45), a jp lwait_lycirq
10.722222
23
0.619171
e9e26cd1e7ba9029b3233181b3e54fd356ed9930
703
asm
Assembly
oeis/098/A098740.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/098/A098740.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/098/A098740.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A098740: Start with the sequence of natural numbers S(0)={1,2,3,...} and define, for i>0, S(i)=D(i)S(i-1), where D(i)A denotes the operation of deleting the a(1+[i/2])th term of A={a(1),a(2),a(3),...}. E.g. D(3){1,2,4,6,9,10,...} means to delete the (a(1+[3/2])th = 2nd term of {1,2,4,9,10,...}, giving {1,4,9,10,...}. The given sequence is the limit of S(i) as i->inf. ; Submitted by Christian Krause ; 2,3,6,7,8,11,14,17,18,19,22,23,24,27,28,29,32,35,38,39,40,43,46,49,50,51,54,57,60,61,62,65,66,67,70,71,72,75,78,81,82,83,86,87,88,91,92,93,96,99,102,103,104,107,108,109,112,113,114,117,120,123,124,125,128,131 mov $1,$0 seq $1,171947 ; P-positions for game of UpMark. sub $1,$0 mov $0,$1 add $0,1
70.3
371
0.635846
a61284a80fb8c296248c42165bb299d2a845651b
625
asm
Assembly
programs/oeis/033/A033996.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/033/A033996.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/033/A033996.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A033996: 8 times triangular numbers: a(n) = 4*n*(n+1). ; 0,8,24,48,80,120,168,224,288,360,440,528,624,728,840,960,1088,1224,1368,1520,1680,1848,2024,2208,2400,2600,2808,3024,3248,3480,3720,3968,4224,4488,4760,5040,5328,5624,5928,6240,6560,6888,7224,7568,7920,8280,8648,9024,9408,9800,10200,10608,11024,11448,11880,12320,12768,13224,13688,14160,14640,15128,15624,16128,16640,17160,17688,18224,18768,19320,19880,20448,21024,21608,22200,22800,23408,24024,24648,25280,25920,26568,27224,27888,28560,29240,29928,30624,31328,32040,32760,33488,34224,34968,35720,36480,37248,38024,38808,39600 sub $1,$0 bin $1,2 mul $1,8 mov $0,$1
78.125
528
0.7728
515495bc6abdf62db197d30ff48e0f7ee80ab8ca
1,077
asm
Assembly
Transynther/x86/_processed/NONE/_un_/i9-9900K_12_0xa0.log_9_580.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_un_/i9-9900K_12_0xa0.log_9_580.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_un_/i9-9900K_12_0xa0.log_9_580.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 %r14 push %r15 lea addresses_D_ht+0xedcd, %r14 nop add $26953, %r15 mov (%r14), %r13d nop nop nop nop nop xor %r15, %r15 pop %r15 pop %r14 pop %r13 ret .global s_faulty_load s_faulty_load: push %r13 push %r9 push %rax push %rbx push %rdi push %rsi // Faulty Load lea addresses_WT+0x314d, %rax sub %rsi, %rsi vmovups (%rax), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $1, %xmm2, %rdi lea oracles, %rax and $0xff, %rdi shlq $12, %rdi mov (%rax,%rdi,1), %rdi pop %rsi pop %rdi pop %rbx pop %rax pop %r9 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'same': True, 'congruent': 7, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'71': 1, '2f': 1, '08': 4, '1a': 3} 2f 71 1a 1a 1a 08 08 08 08 */
18.254237
122
0.63974
b7a93d7c1b9615fee021e5a291bb5ae086fc665f
637
asm
Assembly
oeis/081/A081861.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/081/A081861.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/081/A081861.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A081861: (1/24)*(sigma_3(2n-1)-sigma_1(2n-1)). ; Submitted by Jon Maiga ; 0,1,5,14,31,55,91,146,204,285,400,506,655,850,1015,1240,1552,1804,2109,2562,2870,3311,3971,4324,4914,5730,6201,6990,8000,8555,9455,10846,11536,12529,14192,14910,16206,18371,19088,20540,22990,23821,25794,28450,29370,31500,34752,36010,38024,42007,42925,45526,50560,51039,53955,59090,60116,63876,69321,70428,73865,80402,82030,85344,92752,93665,98320,107300,107134,111895,121120,121982,128040,137649,137825,143450,154986,156400,161239,173682,174400,180441,195792,194054,201201,216365,215731,225754 mul $0,2 seq $0,92348 ; a(n) = sigma_3(n) - sigma_1(n). div $0,24
79.625
495
0.77394
af8d5078bfbab0eb0ef4bb9bc0227755c294dcd6
3,227
asm
Assembly
src/uppercase.asm
hirohito-protagonist/hla-learn-adventure
c702d6b0c710ddf4af1a65d72487e93750495329
[ "Unlicense" ]
null
null
null
src/uppercase.asm
hirohito-protagonist/hla-learn-adventure
c702d6b0c710ddf4af1a65d72487e93750495329
[ "Unlicense" ]
null
null
null
src/uppercase.asm
hirohito-protagonist/hla-learn-adventure
c702d6b0c710ddf4af1a65d72487e93750495329
[ "Unlicense" ]
null
null
null
; Assembly code emitted by HLA compiler ; Version 2.16 build 4413 (prototype) ; HLA compiler written by Randall Hyde ; NASM compatible output bits 32 %define ExceptionPtr__hla_ [dword fs:0] global QuitMain__hla_ global DfltExHndlr__hla_ global _HLAMain global HWexcept__hla_ global start section .text code align=16 extern STDOUT_NEWLN extern DefaultExceptionHandler__hla_ extern abstract__hla_ extern HardwareException__hla_ extern STDIN_GETC extern BuildExcepts__hla_ extern STDOUT_PUTS extern STDOUT_PUTC extern Raise__hla_ extern shortDfltExcept__hla_ section .text ;/* HWexcept__hla_ gets called when Windows raises the exception. */ ; procedure HWexcept__hla_ HWexcept__hla_: jmp HardwareException__hla_ ;HWexcept__hla_ endp ; procedure DfltExHndlr__hla_ DfltExHndlr__hla_: jmp DefaultExceptionHandler__hla_ ;DfltExHndlr__hla_ endp ; procedure _HLAMain _HLAMain: nop ; procedure start start: ;start endp call BuildExcepts__hla_ ; push dword 0 db 06ah ; db 00h ; ; push ebp db 055h ; ; push ebp db 055h ; ; lea ebp, [esp+4] db 08dh ; db 06ch ; db 024h ; db 04h ; ; push strict dword str__hla_1888 db 068h ; dd str__hla_1888 call STDOUT_PUTS call STDIN_GETC ; cmp al, 97 db 03ch ; db 061h ; jnae false__hla_1889 ; cmp al, 122 db 03ch ; db 07ah ; jnbe false__hla_1890 ; and al, 95 db 024h ; db 05fh ; false__hla_1890: false__hla_1889: ; push strict dword str__hla_1891 db 068h ; dd str__hla_1891 call STDOUT_PUTS ; push eax db 050h ; call STDOUT_PUTC ; push strict dword str__hla_1892 db 068h ; dd str__hla_1892 call STDOUT_PUTS call STDOUT_NEWLN QuitMain__hla_: ; push dword 0 db 06ah ; db 00h ; ; call [__imp__ExitProcess@4] db 0ffh ; db 015h ; dd __imp__ExitProcess@4 ;_HLAMain endp section .text align (4) len__hla_1888 dd 0bh dd 0bh str__hla_1888: db "Type char: " db 0 align (4) len__hla_1891 dd 0ch dd 0ch str__hla_1891: db "Uppercase: '" db 0 db 0 db 0 db 0 align (4) len__hla_1892 dd 01h dd 01h str__hla_1892: db "'" db 0 db 0 db 0 section .data data align=16 extern MainPgmCoroutine__hla_ extern __imp__MessageBoxA@16 extern __imp__ExitProcess@4 align (4)
17.828729
68
0.510691
9706cb257f4b9b583bedc9f36b3fd177b72f995e
457
asm
Assembly
oeis/210/A210000.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/210/A210000.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/210/A210000.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A210000: Number of unimodular 2 X 2 matrices having all terms in {0,1,...,n}. ; Submitted by Jon Maiga ; 0,6,14,30,46,78,94,142,174,222,254,334,366,462,510,574,638,766,814,958,1022,1118,1198,1374,1438,1598,1694,1838,1934,2158,2222,2462,2590,2750,2878,3070,3166,3454,3598,3790,3918,4238,4334,4670,4830 mov $2,2 lpb $0 sub $0,1 mov $2,$0 mov $0,0 max $2,0 seq $2,137243 ; Number of coprime pairs (a,b) with -n <= a,b <= n. lpe mov $0,$2 sub $0,2
30.466667
197
0.671772
bb01f496d3eb7227035d5e9491cdd6b0b6f7576d
845
asm
Assembly
programs/oeis/268/A268228.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/268/A268228.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/268/A268228.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A268228: a(n) = sum of digits of (2n + 1)^2. ; 1,9,7,13,9,4,16,9,19,10,9,16,13,18,13,16,18,10,19,9,16,22,9,13,7,9,19,10,18,16,13,27,13,25,18,10,19,18,25,13,18,31,16,27,19,19,27,16,22,18,4,16,9,19,19,9,25,13,27,13,16,18,19,19,18,16,31,18,31,16,27,19,10,18,7,13,18,13,25,18,19,28,18,34,22,18,31,16,18,10,19,27,16,31,18,22,25,18,28,19,9,16,13,27,22,16,27,19,28,27,25,31,18,22,16,18,28,19,27,16,22,27,13,16,9,10,19,18,25,22,18,31,16,27,19,19,27,25,31,27,31,25,18,28,19,27,34,22,27,22,16,27,19,28,27,25,40,27,22,16,9,19,19,27,16,22,27,13,25,18,19,28,18,16,13,9,22,16,27,28,10,27,16,31,18,22,25,18,19,19,18,34,22,36,13,25,27,19,28,18,16,22,18,31,25,27,28,19,36,25,22,36,22,25,18,28,37,27,34,22,27,31,25,36,10,10,18,16,31,18,13,25,18,28,28,18,25,22,27,22,16,27,19,28,18,16,22,18,22,16 mul $0,2 add $0,1 cal $0,4159 ; Sum of digits of n^2. mov $1,$0
105.625
732
0.64497
6c93ba92c32998c1180687f3306b31dd0e0b1aad
717
asm
Assembly
programs/oeis/064/A064911.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/064/A064911.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/064/A064911.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A064911: If n is semiprime (or 2-almost prime) then 1 else 0. ; 0,0,0,1,0,1,0,0,1,1,0,0,0,1,1,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,1,1,1,0,0,1,1,0,0,0,0,0,0,1,0,0,1,0,1,0,0,0,1,0,1,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,0,1,1,1,0,0,0,1,0,1,1,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,1,0,0,1,1,0,1,1,1,0,0,0,0,0,1,0,0,0,1,1,0,0,0,0,0,0,1,1,1,0,1,1,0,0,0,0,0,0,0,0,1,0,0,1,1,0,1,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,1,1,0,0,0,0,1,0,1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,1,0,1,1,0,0,1,0,0,0,1,1,1,0,1,1,1,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0 cal $0,86436 ; Maximum number of parts possible in a factorization of n; a(1) = 1, and for n > 1, a(n) = A001222(n) = bigomega(n). cmp $0,2 mov $1,$0
102.428571
501
0.545328
c6c4c1ca2a89aa94e090bed1ed8fec4dc4e32910
752
asm
Assembly
libsrc/target/zx-common/graphics/__set_zx_pixel_colour.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/target/zx-common/graphics/__set_zx_pixel_colour.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/target/zx-common/graphics/__set_zx_pixel_colour.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; ; Set the pixel colour in MODE0,1,2 ; SECTION code_graphics PUBLIC __set_zx_pixel_colour EXTERN __zx_screenmode EXTERN __zx_console_attr EXTERN SCREEN_BASE ; Entry: de, hl = screen address ; __set_zx_pixel_colour: ; Now set the attribute set 5,h ;Assume we're in mode 2 ld a,(__zx_screenmode) cp 2 jr z,set_colour ld a,d and @00100000 ld d,a ;Save flag bit ld a,h rra rra rra and 3 IF FORsam or +(SCREEN_BASE / 256) + 24 ELSE or $58 ENDIF or d ld h,a set_colour: ld a,(__zx_console_attr) ld (hl),a ret
18.341463
55
0.507979
d95f50264a31c12ace6ab7ec17a93f4c9b339313
502
asm
Assembly
programs/oeis/074/A074400.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/074/A074400.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/074/A074400.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A074400: Sum of the even divisors of 2n. ; 2,6,8,14,12,24,16,30,26,36,24,56,28,48,48,62,36,78,40,84,64,72,48,120,62,84,80,112,60,144,64,126,96,108,96,182,76,120,112,180,84,192,88,168,156,144,96,248,114,186,144,196,108,240,144,240,160,180,120,336,124,192,208,254,168,288,136,252,192,288,144,390,148,228,248,280,192,336,160,372,242,252,168,448,216,264,240,360,180,468,224,336,256,288,240,504,196,342,312,434 seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n). mul $0,2
83.666667
364
0.705179
0a2f832edd7ab854f335d5eaedd917ea0fe3a13a
1,551
asm
Assembly
libsrc/zx81/basic/zx_locatenum.asm
andydansby/z88dk-mk2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
1
2020-09-15T08:35:49.000Z
2020-09-15T08:35:49.000Z
libsrc/zx81/basic/zx_locatenum.asm
andydansby/z88dk-MK2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
null
null
null
libsrc/zx81/basic/zx_locatenum.asm
andydansby/z88dk-MK2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
null
null
null
; ; ZX 81 specific routines ; by Stefano Bodrato, 28/07/2008 ; ; Locate the numeric variable having name pointed by HL ; Internal routine used by zx_getint and zx_setint ; ; Carry flag is set on error ; ; ; $Id: zx_locatenum.asm,v 1.3 2009/08/05 07:14:47 stefano Exp $ ; XLIB zx_locatenum zx_locatenum: ld a,(hl) and a jr nz,notempty scf ret notempty: and 31 add 101 ld c,a ; keep the first letter push hl inc hl ld a,(hl) and a ; only 1 char for var name ? ld hl,($4010) ; VARS jr z,onechar ld a,@00011111 ; first letter of a long numeric variable name and c ; has those odd bits added or @10100000 ld c,a onechar: vp: ld a,(hl) cp 128 jr z,notfound cp c jr z,v2 xor 128 ; modify the var name format cp c ; to see if it is a FOR-NEXT type var jr z,v2 ;xor 128 ; restore the original value ld a,(hl) v1: push bc call $09f2 ; find next variable pop bc ex de,hl jr vp v2: and @11100000 cp @10100000 jr nz,result pop de push de push hl v3: inc hl inc de ld a,(de) cp 97 ; ASCII Between a and z ? jr c,isntlower sub 32 ; Then transform in UPPER ASCII .isntlower sub 27 ; re-code to the ZX81 charset ld b,a inc de ; if this is the last character in the ld a,(de) ; variable name, then... dec de and a ld a,b jr nz,noterminate add 128 ; ...add the ZX style string terminator noterminate: cp (hl) jr nz,v4 rla jr nc,v3 inc de ld a,(de) dec de and a jr nz,v3 pop de jr result v4: pop hl jr v1 result: inc hl pop de and a ret notfound: pop de scf ret
13.37069
63
0.663443
c58b98d91d0e77371adb8b4c29beec3fb2f6e74a
846
asm
Assembly
Data/EquipmentEquates.asm
ped7g/EliteNext
6e930f9b9924b295d7281ee6acb879600d7e597f
[ "Unlicense" ]
9
2021-09-29T22:08:15.000Z
2022-03-23T05:35:43.000Z
Data/EquipmentEquates.asm
ped7g/EliteNext
6e930f9b9924b295d7281ee6acb879600d7e597f
[ "Unlicense" ]
1
2022-01-21T12:35:42.000Z
2022-01-21T17:47:24.000Z
Data/EquipmentEquates.asm
ped7g/EliteNext
6e930f9b9924b295d7281ee6acb879600d7e597f
[ "Unlicense" ]
1
2022-01-15T10:13:49.000Z
2022-01-15T10:13:49.000Z
EQ_FUEL EQU 0 EQ_MISSILE EQU 1 EQ_CARGO_BAY EQU 2 EQ_ECM EQU 3 EQ_FUEL_SCOOPS EQU 4 EQ_ESCAPE_POD EQU 5 EQ_ENERGY_BOMB EQU 6 EQ_ENERGY_UNIT EQU 7 EQ_DOCK_COMP EQU 8 EQ_GAL_DRIVE EQU 9 EQ_FRONT_PULSE EQU 10 EQ_REAR_PULSE EQU 11 EQ_LEFT_PULSE EQU 12 EQ_RIGHT_PULSE EQU 13 EQ_FRONT_BEAM EQU 14 EQ_REAR_BEAM EQU 15 EQ_LEFT_BEAM EQU 16 EQ_RIGHT_BEAM EQU 17 EQ_FRONT_MINING EQU 18 EQ_REAR_MINING EQU 19 EQ_LEFT_MINING EQU 20 EQ_RIGHT_MINING EQU 21 EQ_FRONT_MILITARY EQU 22 EQ_REAR_MILITARY EQU 23 EQ_LEFT_MILITARY EQU 24 EQ_RIGHT_MILITARY EQU 25 EQ_ITEM_COUNT EQU EQ_RIGHT_MILITARY+1
28.2
47
0.586288
e54bbf55c8fa5788215d0507fa87a6e56503f983
5,798
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1178.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_1178.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_1178.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r14 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x35db, %rbp nop nop nop nop add %r11, %r11 movb (%rbp), %r14b nop nop nop nop nop cmp %rdx, %rdx lea addresses_D_ht+0x1569b, %rax nop nop nop nop add $15724, %r12 mov $0x6162636465666768, %r10 movq %r10, %xmm5 and $0xffffffffffffffc0, %rax movaps %xmm5, (%rax) nop nop nop nop xor $21892, %r11 lea addresses_A_ht+0x145db, %rsi lea addresses_D_ht+0x150db, %rdi nop nop and %rbp, %rbp mov $56, %rcx rep movsb nop cmp %r14, %r14 lea addresses_A_ht+0x1799b, %rbp nop nop cmp %rdx, %rdx mov (%rbp), %esi nop nop nop nop nop add %rsi, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r14 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi // REPMOV lea addresses_PSE+0x1674f, %rsi lea addresses_A+0x1e1db, %rdi inc %rbp mov $8, %rcx rep movsw nop nop nop nop sub $36548, %rbp // REPMOV lea addresses_PSE+0x115db, %rsi lea addresses_WC+0x2be5, %rdi nop and %rbp, %rbp mov $27, %rcx rep movsq nop nop cmp %rbp, %rbp // Store lea addresses_WT+0x9ab, %r8 dec %rsi mov $0x5152535455565758, %rcx movq %rcx, %xmm4 movups %xmm4, (%r8) nop nop nop nop sub $13439, %rax // Faulty Load lea addresses_PSE+0x115db, %r8 nop nop inc %rdi mov (%r8), %rcx lea oracles, %r8 and $0xff, %rcx shlq $12, %rcx mov (%r8,%rcx,1), %rcx pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_PSE'}, 'OP': 'LOAD'} {'src': {'congruent': 2, 'same': False, 'type': 'addresses_PSE'}, 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_A'}, 'OP': 'REPM'} {'src': {'congruent': 0, 'same': True, 'type': 'addresses_PSE'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_WC'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 4, 'same': False, 'type': 'addresses_WT'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_PSE'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 5, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'src': {'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'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 */
37.649351
2,999
0.65902
52995a396c1aeefd3dfca29ff2d253b96c3d0542
409
asm
Assembly
programs/oeis/140/A140475.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/140/A140475.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/140/A140475.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A140475: 1 along with primes greater than 3. ; 1,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277 lpb $0 add $0,1 mov $2,$0 cal $2,175216 ; The first nonprimes after the primes. div $0,$2 add $1,$2 sub $1,1 div $1,2 lpe mul $1,2 add $1,1
27.266667
206
0.660147
e6f7dc38c27fae16b56d77640cc9a1463d035461
82
asm
Assembly
SampleTests/CrashingTests/CrashReallyHard64.asm
ncook-hxgn/TestAdapterForGoogleTest
15b0446b79ee80c2dee85556e2a951c953cf9998
[ "MIT" ]
149
2015-11-04T14:28:07.000Z
2022-03-24T17:15:50.000Z
SampleTests/CrashingTests/CrashReallyHard64.asm
ncook-hxgn/TestAdapterForGoogleTest
15b0446b79ee80c2dee85556e2a951c953cf9998
[ "MIT" ]
328
2015-11-08T12:47:52.000Z
2022-03-23T22:32:18.000Z
SampleTests/CrashingTests/CrashReallyHard64.asm
ncook-hxgn/TestAdapterForGoogleTest
15b0446b79ee80c2dee85556e2a951c953cf9998
[ "MIT" ]
67
2016-03-22T19:17:28.000Z
2022-03-22T01:15:22.000Z
.code CrashReallyHard PROC mov ESP, 0 ret CrashReallyHard ENDP END
7.454545
21
0.670732
212b0561d95715924d31b47a6557db9377e463be
842
asm
Assembly
oeis/206/A206047.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/206/A206047.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/206/A206047.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A206047: Number of (n+1) X 2 0..2 arrays with the number of clockwise edge increases in every 2 X 2 subblock equal to one. ; Submitted by Christian Krause ; 48,255,1338,7041,37020,194691,1023822,5384085,28313712,148895799,783011010,4117687209,21654034308,113873925675,598838568438,3149163684861,16560776867160,87089576125791,457985415203562,2408447139960465,12665507314015212,66605188405376979,350262410539693470,1841954946368382309,9686446282440629568,50938944933261807495,267876993817394872338,1408707697237530882681,7408091855805364022100,38957567316249382522491,204869496861160016479302,1077364774946775015530445,5665630443182721412431912 add $0,3 mov $1,2 mov $4,2 lpb $0 sub $0,1 add $1,$3 add $2,$5 add $4,$2 mov $5,$4 mov $4,$2 add $4,$1 mul $5,2 add $1,$5 mov $3,$5 mov $5,$1 lpe mov $0,$2 div $0,2 mul $0,3
35.083333
487
0.787411
902a81b5008251553b584eb540016977515e4484
1,739
asm
Assembly
pwnlib/shellcraft/templates/i386/push.asm
mtdcr/pwntools
b784d3a6837dc683a4d3d775ed5b7752988e86f4
[ "MIT" ]
7
2017-07-11T01:12:02.000Z
2017-09-21T23:39:54.000Z
pwnlib/shellcraft/templates/i386/push.asm
mtdcr/pwntools
b784d3a6837dc683a4d3d775ed5b7752988e86f4
[ "MIT" ]
null
null
null
pwnlib/shellcraft/templates/i386/push.asm
mtdcr/pwntools
b784d3a6837dc683a4d3d775ed5b7752988e86f4
[ "MIT" ]
3
2018-03-21T11:48:05.000Z
2021-10-16T15:38:01.000Z
<% from pwnlib.util import packing from pwnlib.shellcraft import i386 from pwnlib import constants from pwnlib.shellcraft.registers import get_register, is_register, bits_required import re %> <%page args="value"/> <%docstring> Pushes a value onto the stack without using null bytes or newline characters. If src is a string, then we try to evaluate with `context.arch = 'i386'` using :func:`pwnlib.constants.eval` before determining how to push it. Note that this means that this shellcode can change behavior depending on the value of `context.os`. Args: value (int,str): The value or register to push Example: >>> print pwnlib.shellcraft.i386.push(0).rstrip() /* push 0 */ push 1 dec byte ptr [esp] >>> print pwnlib.shellcraft.i386.push(1).rstrip() /* push 1 */ push 1 >>> print pwnlib.shellcraft.i386.push(256).rstrip() /* push 0x100 */ push 0x1010201 xor dword ptr [esp], 0x1010301 >>> print pwnlib.shellcraft.i386.push('SYS_execve').rstrip() /* push SYS_execve (0xb) */ push 0xb >>> print pwnlib.shellcraft.i386.push('SYS_sendfile').rstrip() /* push SYS_sendfile (0xbb) */ push 0x1010101 xor dword ptr [esp], 0x10101ba >>> with context.local(os = 'freebsd'): ... print pwnlib.shellcraft.i386.push('SYS_execve').rstrip() /* push SYS_execve (0x3b) */ push 0x3b </%docstring> <% value_orig = value is_reg = get_register(value) if not is_reg and isinstance(value, (str, unicode)): try: value = constants.eval(value) except (ValueError, AttributeError): pass %> % if is_reg: push ${value} % else: ${i386.pushstr(value, False)} % endif
27.603175
82
0.650374
b6151d5996a53ecd76fb7a1bcd95d7ef23b5bb27
978
asm
Assembly
programs/oeis/225/A225058.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/225/A225058.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/225/A225058.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A225058: a(4*n) = n-1. a(2*n+1) = a(4*n+2) = 2*n+1. ; -1,1,1,3,0,5,3,7,1,9,5,11,2,13,7,15,3,17,9,19,4,21,11,23,5,25,13,27,6,29,15,31,7,33,17,35,8,37,19,39,9,41,21,43,10,45,23,47,11,49,25,51,12,53,27,55,13,57,29,59,14,61,31,63,15,65,33,67,16,69,35,71,17,73,37,75,18,77,39,79,19,81,41,83,20,85,43,87,21,89,45,91,22,93,47,95,23,97,49,99,24,101,51,103,25,105,53,107,26,109,55,111,27,113,57,115,28,117,59,119,29,121,61,123,30,125,63,127,31,129,65,131,32,133,67,135,33,137,69,139,34,141,71,143,35,145,73,147,36,149,75,151,37,153,77,155,38,157,79,159,39,161,81,163,40,165,83,167,41,169,85,171,42,173,87,175,43,177,89,179,44,181,91,183,45,185,93,187,46,189,95,191,47,193,97,195,48,197,99,199,49,201,101,203,50,205,103,207,51,209,105,211,52,213,107,215,53,217,109,219,54,221,111,223,55,225,113,227,56,229,115,231,57,233,117,235,58,237,119,239,59,241,121,243,60,245,123,247,61,249 mov $3,$0 sub $3,1 div $3,2 sub $3,$0 gcd $0,4 mov $1,2 mul $3,2 mov $2,$3 div $2,$0 sub $1,$2 sub $1,3
65.2
818
0.658487
3e2e38d9de20b931b8d24c4cd4669a783bb1a41a
640
asm
Assembly
oeis/056/A056117.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/056/A056117.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/056/A056117.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A056117: Expansion of (1+8*x)/(1-x)^9. ; Submitted by Jamie Morken(s4) ; 1,17,117,525,1815,5247,13299,30459,64350,127270,238238,425646,730626,1211250,1947690,3048474,4657983,6965343,10214875,14718275,20868705,29156985,40190085,54712125,73628100,98030556,129229452,168785452,218546900,280690740,357767652,452751684,569094669,710785725,882416145,1089249993,1337300731,1633414211,1985358375,2401920015,2893008954,3469770018,4144703178,4931792250,5846642550,6906627910,8131047470,9541292670,11161024875,13016364075,15136089111,17551849887,20298392037,23413794525,26939720665 mov $1,$0 add $0,7 bin $0,$1 mul $1,9 add $1,8 mul $0,$1 div $0,8
53.333333
499
0.821875
38e01f124062e93d296436be976c9c18e3703a90
19,369
asm
Assembly
Source/AnimationTrigger.asm
hhprg/C64Engine
3e23bf2134f1b64aae1fcf502ecf98801bb9764e
[ "MIT" ]
4
2021-09-12T20:39:13.000Z
2022-01-24T11:32:20.000Z
Source/AnimationTrigger.asm
hhprg/C64Engine
3e23bf2134f1b64aae1fcf502ecf98801bb9764e
[ "MIT" ]
null
null
null
Source/AnimationTrigger.asm
hhprg/C64Engine
3e23bf2134f1b64aae1fcf502ecf98801bb9764e
[ "MIT" ]
null
null
null
/****************************************************************** * Copyright (C) 2015-2021 Henrik Holmdahl <henrikh.git@gmail.com> ******************************************************************/ .filenamespace AnimationTrigger // .segment Zeropage "AnimationTrigger zeropage data" zpBoundaryDataLo: .fill 1, 0 zpBoundaryDataHi: .fill 1, 0 zpAnimationIndexLo: .fill 1, 0 zpAnimationIndexHi: .fill 1, 0 zpAnimationInstanceLo: .fill 1,0 zpAnimationInstanceHi: .fill 1,0 // .segment Code "AnimationTrigger code" .const kTriggerQueueSize = 8 // Must be power of 2. .const kActivationScreenWidth = kScreenWidthPixels .const kTriggerWindowPadding = 4 // Find max number of Animations for any level. .var kMaxAnimations = 0 .for (var level = 0; level < AnimationsPerLevel.size(); level++) { .eval kMaxAnimations = max(kMaxAnimations, AnimationsPerLevel.get(level).size()) } .const kNumAnimationStatuses = (kMaxAnimations + 7) / 8 // Store AnimationIndex hi-byte in topmost N bits of boundary x hi-byte. .const kMaxAnimationIndices = 1024 // Must be power of 2. .const kNumAnimationIndexHiBits = round(log10(kMaxAnimationIndices)/log10(2)) - 8 .const kAnimationIndexHiShift = 8 - kNumAnimationIndexHiBits .const kAnimationIndexHiBits = ((1 << kNumAnimationIndexHiBits) - 1) << kAnimationIndexHiShift .const kAnimationIndexHiDiv8Shift = kAnimationIndexHiShift - 5 // Number of Animation update slots. .const kMaxUpdateSlots = 8 // Boundary = Animation instance index (per level), position (x), which side (min or max) of bounding area and type of Animation. .struct Boundary { animationIndex, x, isMin, typeIndex } // These values are used as offsets into struct. .enum { kAnimationIndexLo, kBoundaryLo, kBoundaryHiAnimationIndexHi, kBoundarySize } // Add Animation boundaries per level. .var BoundariesPerLevel = List() .for (var level = 0; level < AnimationsPerLevel.size(); level++) { .var levelAnimations = AnimationsPerLevel.get(level) .var animationBoundaries = List() .eval BoundariesPerLevel.add(animationBoundaries) .for (var i = 0; i < levelAnimations.size(); i++) { // Find bounding interval in x. .var instance = levelAnimations.get(i) .var animation = AnimationByName.get(instance.animationName) .var type = animation.getStructName() .var typeIndex = AnimationTypeToTypeIndex.get(type) .var rangeX = PositionRange(0,0) .eval rangeX = GetClipAnimationRange(rangeX, animation) .eval rangeX = GetFormationClipAnimationRange(rangeX, animation) .eval rangeX = GetMegaSpriteAnimationRange(rangeX, animation) .eval rangeX = GetGameAnimationRange(rangeX, animation) .if (rangeX.maxX > kMaxPosX) { .error "Position X out of range (max is " + kMaxPosX + "): " + animation.animationName } .var minX = rangeX.minX + instance.originX - kTriggerWindowPadding .var maxX = rangeX.maxX + instance.originX + kTriggerWindowPadding .eval minX = minX < kActivationScreenWidth ? 0 : minX - kActivationScreenWidth .eval maxX = maxX + kSpriteWidth .eval animationBoundaries.add(Boundary(i, minX, true, typeIndex)) .eval animationBoundaries.add(Boundary(i, maxX, false, typeIndex)) } } // Sort boundaries per level in ascending order. .for (var level = 0; level < BoundariesPerLevel.size(); level++) { .var animationBoundaries = BoundariesPerLevel.get(level) .for (var i = 0; i < animationBoundaries.size() - 1; i++) { .var minX = animationBoundaries.get(i).x .for (var j = i + 1; j < animationBoundaries.size(); j++) { .var x = animationBoundaries.get(j).x .if (x < minX) { .var boundary = animationBoundaries.get(i) .eval animationBoundaries.set(i, animationBoundaries.get(j)) .eval animationBoundaries.set(j, boundary) .eval minX = x } } } // Verify that we don't use more Animators than available at any point in time. .var numActiveAnimators = 0 .for (var i = 0; i < animationBoundaries.size(); i++) { .var boundary = animationBoundaries.get(i) /* .if ((boundary.typeIndex == AnimationTypeToTypeIndex.get("ClipAnimation")) || (boundary.typeIndex == AnimationTypeToTypeIndex.get("FormationClipAnimation"))) */ { .if (boundary.isMin) { .eval numActiveAnimators = numActiveAnimators + 1 .if (numActiveAnimators > Animator.kNumSlots) { .error "Too many Animators used (max " + Animator.kNumSlots + ")" } } else { .eval numActiveAnimators = numActiveAnimators - 1 } } } // Add begin/end boundary markers first/last in list. .eval animationBoundaries.reverse() .eval animationBoundaries.add(Boundary(0, 0, false, 0)) .eval animationBoundaries.reverse() .eval animationBoundaries.add(Boundary(0, $ffff, true, 0)) } // Init: { lda #0 ldy #kNumAnimationStatuses ClearStatus:dey sta AnimationStatuses,y bne ClearStatus sta QueueTail sta QueueHead ldy #kMaxUpdateSlots lda #kUndefined ClearSlot: dey sta UpdateAnimationIndicesLo,y sta UpdateAnimationIndicesHi,y bne ClearSlot // Must be done after setting initial Camera position. ldy.zp LevelData.zpCurrent lda BoundaryDataLo,y sta zpBoundaryDataLo lda BoundaryDataHi,y sta zpBoundaryDataHi Try: jsr TryNextBoundary bcc Done jsr NextBoundary jsr GetAnimationIndexDiv8 tax ldy #kAnimationIndexLo lda (zpBoundaryDataLo),y and #7 tay lda Bits,y eor AnimationStatuses,x sta AnimationStatuses,x jmp Try // bra Done: // Activate all active animations. ldy #0 Next: lda AnimationStatuses,y beq Skip tya pha lda #0 sta zpAnimationIndexHi tya asl // x8 rol zpAnimationIndexHi asl rol zpAnimationIndexHi asl rol zpAnimationIndexHi sta zpAnimationIndexLo lda AnimationStatuses,y NextAnim: lsr bcc SkipAnim pha jsr GetAnimationInstance jsr ActivateAnimation pla SkipAnim: inc zpAnimationIndexLo tay bne NextAnim pla tay Skip: iny cpy #kNumAnimationStatuses bne Next rts } // NextBoundary: { // c = 1 lda zpBoundaryDataLo adc #kBoundarySize - 1 // c = 1 sta zpBoundaryDataLo bcc Done inc zpBoundaryDataHi Done: rts } // TryNextBoundary: { // Returns c = 1 if entered next boundary, c = 0 otherwise. ldy #kBoundaryHiAnimationIndexHi + kBoundarySize lda (zpBoundaryDataLo),y and #~kAnimationIndexHiBits tsx pha lda Camera.PositionXDiv2Hi cmp kStackAdr,x txs bne Done ldy #kBoundaryLo + kBoundarySize lda Camera.PositionXDiv2Lo cmp (zpBoundaryDataLo),y Done: rts } // // Update runs on main task. Update: { Right: { Try: jsr TryNextBoundary bcc Left jsr NextBoundary // Todo: First check if ToggleAnimator successful? jsr ToggleAnimator // Enter/exit handler here. jmp Try } Left: { Try: ldy #kBoundaryHiAnimationIndexHi lda (zpBoundaryDataLo),y and #~kAnimationIndexHiBits tsx pha lda Camera.PositionXDiv2Hi cmp kStackAdr,x txs bne Decide lda Camera.PositionXDiv2Lo ldy #kBoundaryLo cmp (zpBoundaryDataLo),y Decide: bcs Done jsr ToggleAnimator lda zpBoundaryDataLo sec sbc #kBoundarySize sta zpBoundaryDataLo bcs Try dec zpBoundaryDataHi bcc Try // bra } Done: rts } // .macro UpdateSlot() { Start: ldy Instance:#kUndefined bmi Skip .label CodeLo = * + 1 .label CodeHi = * + 2 jsr kDefaultAdr Skip: .label Size = * - Start } UpdateActive: { Slot: UpdateSlot() .for (var i = 1; i < kMaxUpdateSlots; i++) { UpdateSlot() } rts } // GetAnimationInstance: { // Address of animation instance data. lda zpAnimationIndexLo // x6 = kAnimationInstanceSize ldy zpAnimationIndexHi sty zpAnimationInstanceHi asl rol zpAnimationInstanceHi adc zpAnimationIndexLo sta zpAnimationInstanceLo lda zpAnimationInstanceHi adc zpAnimationIndexHi sta zpAnimationInstanceHi lda zpAnimationInstanceLo asl rol zpAnimationInstanceHi ldy.zp LevelData.zpCurrent adc AnimationData.LevelAnimationsLo,y sta zpAnimationInstanceLo lda zpAnimationInstanceHi adc AnimationData.LevelAnimationsHi,y sta zpAnimationInstanceHi ldy #0 // kTypeAnimationIndexHi lda (zpAnimationInstanceLo),y // a, x = type index. lsr tax rts } // GetAnimationIndexDiv8: { ldy #kAnimationIndexLo lda (zpBoundaryDataLo),y lsr lsr lsr sta LoBits ldy #kBoundaryHiAnimationIndexHi lda (zpBoundaryDataLo),y and #kAnimationIndexHiBits .for (var i = 0; i < kAnimationIndexHiDiv8Shift; i++) { lsr } ora LoBits:#0 rts } // GetAnimationIndexHi: { ldy #kBoundaryHiAnimationIndexHi lda (zpBoundaryDataLo),y and #kAnimationIndexHiBits asl .for (var i = 0; i < kAnimationIndexHiShift; i++) { rol } rts } // ToggleAnimator: { // Add animation index to head of queue. lda QueueHead and #kTriggerQueueSize - 1 tax inc QueueHead ldy #kBoundaryHiAnimationIndexHi lda (zpBoundaryDataLo),y and #kAnimationIndexHiBits asl .for (var i = 0; i < kAnimationIndexHiShift; i++) { rol } sta QueueAnimationIndicesHi,x ldy #kAnimationIndexLo lda (zpBoundaryDataLo),y sta QueueAnimationIndicesLo,x and #7 tax jsr GetAnimationIndexDiv8 tay lda AnimationStatuses,y eor Bits,x sta AnimationStatuses,y and Bits,x beq Deactivate TaskInput(ActivateAnimationTask) bne AddTask // bra Deactivate: TaskInput(DeactivateAnimationTask) AddTask: jmp Task.AddLowPriority } // Dequeue: { lda QueueTail and #kTriggerQueueSize - 1 tax lda QueueAnimationIndicesHi,x sta zpAnimationIndexHi lda QueueAnimationIndicesLo,x sta zpAnimationIndexLo jsr GetAnimationInstance inc QueueTail rts } // ActivateAnimationTask: { jsr Dequeue jsr ActivateAnimation ReturnFromTask() } // DeactivateAnimationTask: { jsr Dequeue jsr DeactivateAnimation ReturnFromTask() } // ActivateAnimation: { // zpAnimationInstanceLo/Hi // a, x = type index. pha lda #>(Return - 1) pha lda #<(Return - 1) pha lda ActivateHi,x pha lda ActivateLo,x pha rts // Call Activate. Return: // x = type instance index (e.g. animator slot). // Find free update slot. ldy #kMaxUpdateSlots - 1 TrySlot: lda UpdateAnimationIndicesHi,y bmi Found dey bpl TrySlot Found: lda zpAnimationIndexLo sta UpdateAnimationIndicesLo,y lda zpAnimationIndexHi sta UpdateAnimationIndicesHi,y // Add to UpdateActive. lda MulUpdateSlotCodeSize,y tay txa // x = type instance index sta UpdateActive.Slot.Instance,y pla tax // x = type index. lda UpdateLo,x sta UpdateActive.Slot.CodeLo,y lda UpdateHi,x sta UpdateActive.Slot.CodeHi,y rts } // DeactivateAnimation: { // zpAnimationInstanceLo/Hi // a, x = type index. lda DeactivateHi,x pha lda DeactivateLo,x pha ldy #kMaxUpdateSlots - 1 TrySlot: lda zpAnimationIndexLo cmp UpdateAnimationIndicesLo,y bne Next lda zpAnimationIndexHi cmp UpdateAnimationIndicesHi,y beq Found Next: dey bpl TrySlot Found: // Remove from UpdateActive. ldx MulUpdateSlotCodeSize,y lda UpdateActive.Slot.Instance,x pha lda #kUndefined sta UpdateAnimationIndicesLo,y sta UpdateAnimationIndicesHi,y sta UpdateActive.Slot.Instance,x pla tay // y = type instance index (e.g. animator slot index) rts // Call Deactivate. } // .segment Code "AnimationTrigger const data" // AOS to support more than 256 boundaries. // Todo: Multiple sets of boundaries for different types to trigger (animations, audio etc.)? // Boundary data per level. .var BoundaryDataPerLevel = List() .for (var level = 0; level < BoundariesPerLevel.size(); level++) { .eval BoundaryDataPerLevel.add(*) .var animationBoundaries = BoundariesPerLevel.get(level) .for (var i = 0; i < animationBoundaries.size(); i++) { .var boundary = animationBoundaries.get(i) .var x = boundary.x // Store at lower precision to gain one bit for storing animation index. .if (boundary.isMin) { .eval x = floor(x / 2) } else { .eval x = ceil(x / 2) } // kAnimationIndexLo .byte <boundary.animationIndex // kBoundaryLo, kBoundaryHiAnimationIndexHi .byte <x, (>x) + ((>boundary.animationIndex) << kAnimationIndexHiShift) } } // Start address of boundary data per level. BoundaryDataLo: .for (var i = 0; i < BoundaryDataPerLevel.size(); i++) { .byte <BoundaryDataPerLevel.get(i) } BoundaryDataHi: .for (var i = 0; i < BoundaryDataPerLevel.size(); i++) { .byte >BoundaryDataPerLevel.get(i) } // Type callbacks, "methods". .for (var i = 0; i < AnimationTypes.size(); i++) { .var typeName = AnimationTypes.get(i) .if (!AnimationTypeCallbacks.containsKey(typeName)) { .error "Missing animation callbacks for type " + typeName } } ActivateLo: .for (var i = 0; i < AnimationTypes.size(); i++) { .byte <(AnimationTypeCallbacks.get(AnimationTypes.get(i)).activate - 1)} ActivateHi: .for (var i = 0; i < AnimationTypes.size(); i++) { .byte >(AnimationTypeCallbacks.get(AnimationTypes.get(i)).activate - 1)} DeactivateLo: .for (var i = 0; i < AnimationTypes.size(); i++) { .byte <(AnimationTypeCallbacks.get(AnimationTypes.get(i)).deactivate - 1)} DeactivateHi: .for (var i = 0; i < AnimationTypes.size(); i++) { .byte >(AnimationTypeCallbacks.get(AnimationTypes.get(i)).deactivate - 1)} UpdateLo: .for (var i = 0; i < AnimationTypes.size(); i++) { .byte <(AnimationTypeCallbacks.get(AnimationTypes.get(i)).update - 0)} UpdateHi: .for (var i = 0; i < AnimationTypes.size(); i++) { .byte >(AnimationTypeCallbacks.get(AnimationTypes.get(i)).update - 0)} MulUpdateSlotCodeSize: .for (var i = 0; i < kMaxUpdateSlots; i++) { .byte i * UpdateActive.Slot.Size } .label Bits = CharTileMap.Bits // .segment BSS2 "AnimationTrigger data" // Todo: Interleave bits to represent status of multiple Animation types. AnimationStatuses: .fill kNumAnimationStatuses, 0 // Tail (index of next element to process). QueueTail: .byte 0 // Head (index of where to add next element). QueueHead: .byte 0 QueueAnimationIndicesLo: .fill kTriggerQueueSize, 0 QueueAnimationIndicesHi: .fill kTriggerQueueSize, 0 UpdateAnimationIndicesLo: .fill kMaxUpdateSlots, 0 UpdateAnimationIndicesHi: .fill kMaxUpdateSlots, 0
29.214178
130
0.518457
46f829d18fb94cfc7dec033bbefc9fcf3ed34f8f
8,263
asm
Assembly
macros/legacy.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
macros/legacy.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
macros/legacy.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
2
2021-08-11T19:47:07.000Z
2022-01-01T07:07:56.000Z
; Legacy support for old pokecrystal. ; Allows porting scripts with as few edits as possible. ; Legacy support not in this file can be found by looking for the keyword: "LEGACY" ; macros/rst.asm callba EQUS "farcall" callab EQUS "callfar" ; macros/scripts/events.asm checkmorn EQUS "checktime MORN" checkday EQUS "checktime DAY" checknite EQUS "checktime NITE" jump EQUS "sjump" ;farjump EQUS "farsjump" priorityjump EQUS "sdefer" prioritysjump EQUS "sdefer" ptcall EQUS "memcall" ptjump EQUS "memjump" ptpriorityjump EQUS "stopandsjump" ptcallasm EQUS "memcallasm" if_equal EQUS "ifequal" if_not_equal EQUS "ifnotequal" if_greater_than EQUS "ifgreater" if_less_than EQUS "ifless" end_all EQUS "endall" checkmaptriggers EQUS "checkmapscene" domaptrigger EQUS "setmapscene" checktriggers EQUS "checkscene" dotrigger EQUS "setscene" faceperson EQUS "faceobject" moveperson EQUS "moveobject" writepersonxy EQUS "writeobjectxy" spriteface EQUS "turnobject" objectface EQUS "turnobject" applymovement2 EQUS "applymovementlasttalked" writebyte EQUS "setval" addvar EQUS "addval" copybytetovar EQUS "readmem" copyvartobyte EQUS "writemem" checkcode EQUS "readvar" writevarcode EQUS "writevar" writecode EQUS "loadvar" MEM_BUFFER_0 EQUS "STRING_BUFFER_3" MEM_BUFFER_1 EQUS "STRING_BUFFER_4" MEM_BUFFER_2 EQUS "STRING_BUFFER_5" vartomem EQUS "getnum" mapnametotext EQUS "getcurlandmarkname" readcoins EQUS "getcoins" pokenamemem: MACRO getmonname \2, \1 ENDM itemtotext: MACRO getitemname \2, \1 ENDM landmarktotext: MACRO getlandmarkname \2, \1 ENDM trainertotext: MACRO gettrainername \3, \1, \2 ENDM trainerclassname: MACRO gettrainerclassname \2, \1 ENDM name: MACRO getname \3, \1, \2 ENDM stringtotext: MACRO getstring \2, \1 ENDM readmoney: MACRO getmoney \2, \1 ENDM RAM2MEM EQUS "getnum" loadfont EQUS "opentext" loadmenudata EQUS "loadmenu" loadmenuheader EQUS "loadmenu" writebackup EQUS "closewindow" interpretmenu EQUS "_2dmenu" interpretmenu2 EQUS "verticalmenu" battlecheck EQUS "randomwildmon" loadtrainerdata EQUS "loadtemptrainer" loadpokedata EQUS "loadwildmon" returnafterbattle EQUS "reloadmapafterbattle" trainerstatus EQUS "trainerflagaction" talkaftercancel EQUS "endifjustbattled" talkaftercheck EQUS "checkjustbattled" playrammusic EQUS "encountermusic" reloadmapmusic EQUS "dontrestartmapmusic" resetfuncs EQUS "endall" storetext EQUS "battletowertext" displaylocation EQUS "landmarktotext" givepokeitem EQUS "givepokemail" checkpokeitem EQUS "checkpokemail" passtoengine EQUS "autoinput" verbosegiveitem2 EQUS "verbosegiveitemvar" loadbytec2cf EQUS "writeunusedbytebuffer" ; macros/scripts/maps.asm mapconst: MACRO map_const \1, \3, \2 ENDM maptrigger EQUS "scene_script" warp_def: MACRO warp_event \2, \1, \4, \3 ENDM xy_trigger: MACRO coord_event \3, \2, \1, \5 ENDM signpost: MACRO bg_event \2, \1, \3, \4 ENDM person_event: MACRO ; object_event \3, \2, \1, \4, \5, \6, \7, \8, \9, \10, \11, \12, \13 db \1, \2 + 4, \3 + 4, \4 dn \6, \5 db \7, \8 shift dn \8, \9 shift db \9 shift dw \9 shift dw \9 ENDM PERSONTYPE_SCRIPT EQUS "OBJECTTYPE_SCRIPT" PERSONTYPE_ITEMBALL EQUS "OBJECTTYPE_ITEMBALL" PERSONTYPE_TRAINER EQUS "OBJECTTYPE_TRAINER" ; macros/scripts/movement.asm show_person EQUS "show_object" hide_person EQUS "hide_object" remove_person EQUS "remove_object" turn_head_down EQUS "turn_head DOWN" turn_head_up EQUS "turn_head UP" turn_head_left EQUS "turn_head LEFT" turn_head_right EQUS "turn_head RIGHT" turn_step_down EQUS "turn_step DOWN" turn_step_up EQUS "turn_step UP" turn_step_left EQUS "turn_step LEFT" turn_step_right EQUS "turn_step RIGHT" slow_step_down EQUS "slow_step DOWN" slow_step_up EQUS "slow_step UP" slow_step_left EQUS "slow_step LEFT" slow_step_right EQUS "slow_step RIGHT" step_down EQUS "step DOWN" step_up EQUS "step UP" step_left EQUS "step LEFT" step_right EQUS "step RIGHT" big_step_down EQUS "big_step DOWN" big_step_up EQUS "big_step UP" big_step_left EQUS "big_step LEFT" big_step_right EQUS "big_step RIGHT" slow_slide_step_down EQUS "slow_slide_step DOWN" slow_slide_step_up EQUS "slow_slide_step UP" slow_slide_step_left EQUS "slow_slide_step LEFT" slow_slide_step_right EQUS "slow_slide_step RIGHT" slide_step_down EQUS "slide_step DOWN" slide_step_up EQUS "slide_step UP" slide_step_left EQUS "slide_step LEFT" slide_step_right EQUS "slide_step RIGHT" fast_slide_step_down EQUS "fast_slide_step DOWN" fast_slide_step_up EQUS "fast_slide_step UP" fast_slide_step_left EQUS "fast_slide_step LEFT" fast_slide_step_right EQUS "fast_slide_step RIGHT" turn_away_down EQUS "turn_away DOWN" turn_away_up EQUS "turn_away UP" turn_away_left EQUS "turn_away LEFT" turn_away_right EQUS "turn_away RIGHT" turn_in_down EQUS "turn_in DOWN" turn_in_up EQUS "turn_in UP" turn_in_left EQUS "turn_in LEFT" turn_in_right EQUS "turn_in RIGHT" turn_waterfall_down EQUS "turn_waterfall DOWN" turn_waterfall_up EQUS "turn_waterfall UP" turn_waterfall_left EQUS "turn_waterfall LEFT" turn_waterfall_right EQUS "turn_waterfall RIGHT" slow_jump_step_down EQUS "slow_jump_step DOWN" slow_jump_step_up EQUS "slow_jump_step UP" slow_jump_step_left EQUS "slow_jump_step LEFT" slow_jump_step_right EQUS "slow_jump_step RIGHT" jump_step_down EQUS "jump_step DOWN" jump_step_up EQUS "jump_step UP" jump_step_left EQUS "jump_step LEFT" jump_step_right EQUS "jump_step RIGHT" fast_jump_step_down EQUS "fast_jump_step DOWN" fast_jump_step_up EQUS "fast_jump_step UP" fast_jump_step_left EQUS "fast_jump_step LEFT" fast_jump_step_right EQUS "fast_jump_step RIGHT" step_sleep_1 EQUS "step_sleep 1" step_sleep_2 EQUS "step_sleep 2" step_sleep_3 EQUS "step_sleep 3" step_sleep_4 EQUS "step_sleep 4" step_sleep_5 EQUS "step_sleep 5" step_sleep_6 EQUS "step_sleep 6" step_sleep_7 EQUS "step_sleep 7" step_sleep_8 EQUS "step_sleep 8" ; macros/scripts/text.asm text_from_ram EQUS "text_ram" start_asm EQUS "text_asm" deciram EQUS "text_decimal" interpret_data EQUS "text_pause" limited_interpret_data EQUS "text_dots" link_wait_button EQUS "text_linkwaitbutton" current_day EQUS "text_today" text_jump EQUS "text_far" ; macros/scripts/battle_anims.asm anim_enemyfeetobj EQUS "anim_battlergfx_2row" anim_playerheadobj EQUS "anim_battlergfx_1row" anim_clearsprites EQUS "anim_keepsprites" ; macros/scripts/audio.asm unknownmusic0xde EQUS "sound_duty" __ EQU 0 CC EQU 13 musicheader: MACRO channel_count \1 channel \2, \3 ENDM sound: MACRO note \1, \2 db \3 dw \4 ENDM noise: MACRO note \1, \2 db \3 db \4 ENDM notetype: MACRO if _NARG >= 2 note_type \1, \2 >> 4, \2 & $0f else note_type \1 endc ENDM pitchoffset: MACRO transpose \1, \2 - 1 ENDM dutycycle EQUS "duty_cycle" intensity: MACRO volume_envelope \1 >> 4, \1 & $0f ENDM soundinput: MACRO pitch_sweep \1 >> 4, \1 & $0f ENDM ;unknownmusic0xde EQUS "sound_duty" sound_duty: MACRO db duty_cycle_pattern_cmd if _NARG == 4 db \1 | (\2 << 2) | (\3 << 4) | (\4 << 6) else db \1 endc ENDM togglesfx EQUS "toggle_sfx" slidepitchto: MACRO pitch_slide \1, (8 - \2), \3 ENDM togglenoise EQUS "toggle_noise" panning: MACRO force_stereo_panning ((\1 >> 4) & 1), (\1 & 1) ENDM tone EQUS "pitch_offset" restartchannel EQUS "restart_channel" newsong EQUS "new_song" sfxpriorityon EQUS "sfx_priority_on" sfxpriorityoff EQUS "sfx_priority_off" stereopanning: MACRO stereo_panning ((\1 >> 4) & 1), (\1 & 1) ENDM sfxtogglenoise EQUS "sfx_toggle_noise" setcondition EQUS "set_condition" jumpif EQUS "sound_jump_if" jumpchannel EQUS "sound_jump" loopchannel EQUS "sound_loop" callchannel EQUS "sound_call" endchannel EQUS "sound_ret"
25.346626
83
0.729154
b95646f31ddf1803c8bc89ea24babd7743ca74e6
595
asm
Assembly
programs/oeis/294/A294246.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/294/A294246.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/294/A294246.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A294246: Sum of the smaller parts of the partitions of 2n into two parts with smaller part nonsquarefree. ; 0,0,0,4,4,4,4,12,21,21,21,33,33,33,33,49,49,67,67,87,87,87,87,111,136,136,163,191,191,191,191,223,223,223,223,259,259,259,259,299,299,299,299,343,388,388,388,436,485,535,535,587,587,641,641,697,697,697 mov $3,$0 mov $6,$0 lpb $3 mov $0,$6 sub $3,1 sub $0,$3 mov $5,0 lpb $0 mov $2,$0 seq $2,75423 ; rad(n) - 1, where rad(n) is the squarefree kernel of n (A007947). add $5,$0 mov $0,$2 mov $4,$2 min $4,1 add $5,$4 lpe add $1,$5 lpe mov $0,$1
25.869565
203
0.618487
f778fef1abb0cf25fd0d726768361bee2d59d461
300
asm
Assembly
misc/mul_div.asm
a1393323447/x86-Assambely
1daf3041fe6f44948925ceb7bb6668950dcbab25
[ "MIT" ]
3
2021-05-04T13:59:36.000Z
2021-08-23T16:03:13.000Z
misc/mul_div.asm
a1393323447/x86-Assambely
1daf3041fe6f44948925ceb7bb6668950dcbab25
[ "MIT" ]
null
null
null
misc/mul_div.asm
a1393323447/x86-Assambely
1daf3041fe6f44948925ceb7bb6668950dcbab25
[ "MIT" ]
null
null
null
; 8 位乘法 ; 结果储存在 ax mov al, 0xf0 mov ah, 0x02 mul ah ; 16 位乘法 ; 结果储存在 dx:ax mov ax, 0xf000 mov bx, 0x0002 mul bx ; 16 位除法 ; 商存在 al 里, 余数存在 ah 里 mov ax, 0x0004 mov bl, 0x02 div bl ; 32 位除法 ; 商存在 ax 里, 余数存在 mov dx, 0x0008 mov ax, 0x0006 mov cx, 0x0002 div cx jmp $ times 510-($-$$) db 0 db 0x55, 0xaa
12
21
0.65
6257b8d45ca6ce5cb1cacaed50a577847cb22f6f
8,205
asm
Assembly
boot/setup.asm
Cassidy/mks
fe7332a6b1f987d2143f220629d52e97be82052f
[ "MIT" ]
1
2016-08-24T04:16:31.000Z
2016-08-24T04:16:31.000Z
boot/setup.asm
Cassidy/mks
fe7332a6b1f987d2143f220629d52e97be82052f
[ "MIT" ]
null
null
null
boot/setup.asm
Cassidy/mks
fe7332a6b1f987d2143f220629d52e97be82052f
[ "MIT" ]
null
null
null
;; Program: setup.asm ;; Purpose: 设置好保护模式的环境,跳转到保护模式。 ;; Date: 2011-3-9 19:42 ;; Author: mofaph <mofaph@gmail.com> jmp short setup_start RAM_size_addr equ 0x90000 ; 段基址 RAM_size_offset equ 0x0000 ; 段偏移 msg_ARDS: db "BaseAddrHigh BaseAddrLow LengthHigh LengthLow Type",0 msg_RAM_size: db "RAM Total Size: ", 0 msg_memory_size: db "RAM Size: ", 0 ARDS: dw 0 pos: dw 0 RAM_size: dd 0 setup_start: mov ax, cs ; cs = 0x0080 mov ds, ax mov es, ax mov ax, 0x9000 mov ss, ax mov sp, 0xf000 call open_a20 call get_memory_size call display_memory_size call setup_idt call setup_gdt call init_8259A call enable_protect_mode jmp dword 0x08:0x5000 ; 跳转到 setup32 中执行 jmp $ ; 注意!本程序到此结束 open_a20: in al, 0x92 or al, 0x02 out 0x92, al ret ;; get_memory_size -- 使用中断 int 0x15 获得内存地址 ;; 输入: ;; eax --> 0xe820 ;; ebx --> 0 ;; ecx --> es:di 所指向的地址范围描述符结构的大小,以字节为单位。 ;; edx --> 0x534d4150 ('SMAP') -- BIOS 将会使用此标志,对调用者将要请求的系统 ;; 映像进行校验,这些信息会被 BIOS 放置到 es:di 所指向的结构中。 ;; es:di --> 指向一个地址范围描述符结构 ARDS ;; (Address Range Descriptor Structure),BIOS 将会填充此结构 ;; 输出: ;; CF --> CF=0 表示没有错误,否则存在错误 ;; eax --> 0x534d4150 ('SMAP') ;; ebx --> 下一个地址描述符所需要的后续值 ;; ecx --> BIOS 填充在地址范围描述符中的字符数量,被 BIOS 所返回的最小值是 20 字节 ;; es:di --> 返回的地址范围描述符结构指针,和输入值相同 ;; ARDS 的结构: ;; Type 16 ;; LengthHigh 12 ;; LengthLow 8 ;; BaseAddrHigh 4 ;; BaseAddrLow 0 get_memory_size: mov ax, 0x9000 mov es, ax mov ebx, 0 mov di, bx .go: mov eax, 0xe820 mov ecx, 20 mov edx, 0x534d4150 int 0x15 jc .get_memory_failed add di, 20 inc word [ARDS] cmp ebx, 0 je .end jmp .go .end: ret .get_memory_failed: mov word [ARDS], 0 jmp $ ; 获取内存容量失败,死机 display_memory_size: push cx mov cx, msg_ARDS call disp_str pop cx push ax push dx call print_nr pop dx pop ax mov cx, [ARDS] mov di, 0 .display_BaseAddrHigh: mov eax, dword [es:di+4] push cx call print_hex pop cx mov ax, 0x0020 call print_char call print_char call print_char .display_BaseAddrLow: mov dword eax, [es:di+0] push cx call print_hex pop cx mov ax, 0x0020 call print_char call print_char .display_LengthHigh: mov dword eax, [es:di+12] push cx call print_hex pop cx mov ax, 0x0020 call print_char .display_LengthLow: mov dword eax, [es:di+8] push cx call print_hex pop cx mov ax, 0x0020 call print_char .display_Type: mov dword eax, [es:di+16] push cx call print_hex pop cx push ax push dx call print_nr pop dx pop ax .calculate_RAM_size: ;; cmp eax, 1 ;; jne .next_ARDS mov dword eax, [es:di+8] add dword [RAM_size], eax .next_ARDS: add di, 20 dec cx cmp cx, 0 jne .display_BaseAddrHigh .total_RAM: push cx mov cx, msg_RAM_size call disp_str mov dword eax, [RAM_size] ;; 把 RAM 总量放在内存地址 0x90000 处 push fs push eax mov eax, RAM_size_addr ; RAM_size_addr = 0x90000(4个0) shr eax, 4 ; 右移 4 位,现在 ax = 0x9000(3个0) mov fs, ax ; 现在 fs = 0x9000 pop eax ; eax = RAM 总量 mov [fs:RAM_size_offset], eax pop fs call print_hex pop cx ret setup_idt: lidt [idt_descr] ret ;; init_8259A: 初始化 8251A 中断控制器 ;; 摘自 《Orange'S: 一个操作系统的实现》 第三章 init_8259A: mov al, 0x11 out 0x20, al ; 主 8259, ICW1 call io_delay out 0xa0, al ; 从 8259, ICW1 call io_delay mov al, 0x20 ; IRQ0 对应中断向量 0x20 out 0x21, al ; 主 8259, ICW2 call io_delay mov al, 0x28 ; IRQ8 对应中断向量 0x28 out 0xa1, al ; 从 8259, ICW2 call io_delay mov al, 0x04 ; IR2 对应从 8259 out 0x21, al ; 主 8259, ICW3 call io_delay mov al, 0x02 ; 对应主 8259 的 IR2 out 0xa1, al ; 从 8259, ICW3 call io_delay mov al, 0x01 out 0x21, al ; 主 8259, ICW4 call io_delay out 0xa1, al ; 从 8259, ICW4 call io_delay mov al, 0xff ; 0xff = (1111 1111) 屏蔽主 8259 所有中断 out 0x21, al ; 主 8259, OCW1 call io_delay out 0xa1, al ; 从 8259, OCW1 call io_delay ret ;; io_delay: 延时 io_delay: nop nop nop nop ret setup_gdt: lgdt [gdt_descr] ret enable_protect_mode: cli ; 关中断 mov eax, cr0 or eax, 1 mov cr0, eax ret ;; 下面是一些子程序 ;; disp_str: 将首地址为 cx 的字符串写入显存 disp_str: push si push di mov si, cx mov di, [pos] .loop: mov ah, 0x0c ; 0000: 黑底 1100: 红字 cld ; DF=0,lodsb时使si增1 lodsb ; ds:si --> al test al, al jz .end_loop mov [gs:di], ax add di, 2 jmp .loop .end_loop: mov [pos], di ; 保存显示位置 pop di pop si ret ;; print_char: 显示在 ax 中的字符 print_char: push di mov di, [pos] cld mov [gs:di], ax add di, 2 mov [pos], di pop di ret ;; print_nr: 回车 print_nr: push di mov di, [pos] mov ax, di mov dl, 160 div dl ; ax = dl * 商 + 余数, al<-商,ah<-余数 inc al mul dl ; ax<-al*dl mov di, ax mov [pos], di pop di ret ;; print_hex: 显示在 al 中的十六进制数字 print_hex: push eax mov ah, 0x0f mov al, 0x30 ; '0' call print_char mov al, 0x78 ; 'x' call print_char pop eax mov cx, 8 .loop: rol eax, 4 push eax and al, 0x0f mov ah, 0x0f add al, 48 ; al is a digit cmp al, 57 jbe .digit ; al <= 57 add al, 65-48-10 .digit: call print_char pop eax dec cx cmp cx, 0 jne .loop ret align 4 ; 4 字节对齐 dw 0 ; 为了提高效率,这里空出两个字节 idt_descr: dw 256*8-1 ; IDT 的 16 位表限长 dd 0x800+idt ; IDT 的 32 位线性基地址 align 4 dw 0 gdt_descr: dw 256*8-1 ; GDT 的 16 位表限长 dd 0x800+gdt ; GDT 的 32 位线性基地址 idt: times 512 dd 0 ; 建立一个空的中断描述符表 gdt: dd 0x00000000 dd 0x00000000 ;; 32MB 可读非一致代码段 ;; 段基址:0x00000000 段界限:0x02000 ;; G=1 D/B=1 AVL=0 P=1 DPL=00 TYPE=1010 dw 0x1fff dw 0x0000 dw 0x9a00 dw 0x00c0 ;; 32MB 可写数据段 ;; 段基址:0x00000000 段界限:0x02000 ;; G=1 D/B=1 AVL=0 P=1 DPL=00 TYPE=0010 dw 0x1fff dw 0x0000 dw 0x9200 dw 0x00c0 times 5120-($-$$) db 0 ;; end of setup.asm
22.603306
87
0.449726
d7d279cdc82f70f98b29bc34a21fccf5265305e4
1,553
asm
Assembly
Chapter 11/Array/Array/Array-Optimized.asm
bpbpublications/Implementing-Reverse-Engineering
6e562f7e3828e27e514a5fa77f0a541094798e9b
[ "MIT" ]
null
null
null
Chapter 11/Array/Array/Array-Optimized.asm
bpbpublications/Implementing-Reverse-Engineering
6e562f7e3828e27e514a5fa77f0a541094798e9b
[ "MIT" ]
null
null
null
Chapter 11/Array/Array/Array-Optimized.asm
bpbpublications/Implementing-Reverse-Engineering
6e562f7e3828e27e514a5fa77f0a541094798e9b
[ "MIT" ]
null
null
null
; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.30319.01 TITLE C:\JitenderN\REBook\Array\Array\Array.cpp .686P .XMM include listing.inc .model flat INCLUDELIB LIBCMT INCLUDELIB OLDNAMES CONST SEGMENT $SG4682 DB 'iArray[%d]=%d', 0aH, 00H CONST ENDS PUBLIC __$ArrayPad$ PUBLIC _main EXTRN _printf:PROC EXTRN ___security_cookie:DWORD EXTRN @__security_check_cookie@4:PROC ; Function compile flags: /Ogtpy _TEXT SEGMENT _iArray$ = -44 ; size = 40 __$ArrayPad$ = -4 ; size = 4 _main PROC ; File c:\jitendern\rebook\array\array\array.cpp ; Line 7 sub esp, 44 ; 0000002cH mov eax, DWORD PTR ___security_cookie xor eax, esp mov DWORD PTR __$ArrayPad$[esp+44], eax push esi ; Line 8 xor esi, esi mov DWORD PTR _iArray$[esp+48], esi mov DWORD PTR _iArray$[esp+52], 1 mov DWORD PTR _iArray$[esp+56], 2 mov DWORD PTR _iArray$[esp+60], 3 mov DWORD PTR _iArray$[esp+64], 4 mov DWORD PTR _iArray$[esp+68], 5 mov DWORD PTR _iArray$[esp+72], 6 mov DWORD PTR _iArray$[esp+76], 7 mov DWORD PTR _iArray$[esp+80], 8 mov DWORD PTR _iArray$[esp+84], 9 npad 3 $LL3@main: ; Line 12 mov eax, DWORD PTR _iArray$[esp+esi*4+48] push eax push esi push OFFSET $SG4682 call _printf inc esi add esp, 12 ; 0000000cH cmp esi, 10 ; 0000000aH jl SHORT $LL3@main ; Line 15 mov ecx, DWORD PTR __$ArrayPad$[esp+48] pop esi xor ecx, esp xor eax, eax call @__security_check_cookie@4 add esp, 44 ; 0000002cH ret 0 _main ENDP _TEXT ENDS END
23.179104
81
0.681906
0828c1972181991e58f3b7171d4a14c7e5a3ee51
328
asm
Assembly
programs/oeis/058/A058962.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/058/A058962.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/058/A058962.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A058962: a(n) = 2^(2*n)*(2*n+1). ; 1,12,80,448,2304,11264,53248,245760,1114112,4980736,22020096,96468992,419430400,1811939328,7784628224,33285996544,141733920768,601295421440,2542620639232,10720238370816,45079976738816,189115999977472,791648371998720,3307330976350208 mov $1,$0 mul $1,2 add $1,1 mov $2,4 pow $2,$0 mul $1,$2
32.8
234
0.77439
524135c99aabfe62fdae907f021601c8c665dbd8
136
asm
Assembly
Testing-File/Odd.asm
srsarangi/riscv-emulator
3fa9a744c50632a81f0908189a53abf38bb32f21
[ "Apache-2.0" ]
null
null
null
Testing-File/Odd.asm
srsarangi/riscv-emulator
3fa9a744c50632a81f0908189a53abf38bb32f21
[ "Apache-2.0" ]
null
null
null
Testing-File/Odd.asm
srsarangi/riscv-emulator
3fa9a744c50632a81f0908189a53abf38bb32f21
[ "Apache-2.0" ]
null
null
null
@Assembly code to check if 301 is odd number .main: addi x20, x0, 301 addi x21, x0, 2 rem x22, x20, x21 .print x22 end
17
45
0.617647
90b3fbb14e6b12ccb78c1d4f194beb66db359a7d
123
asm
Assembly
test_cases/tc3.asm
mandalatejesh/pipelined-processor
182f21e49f99064516b95c9d2143ce4ca540d05b
[ "MIT" ]
null
null
null
test_cases/tc3.asm
mandalatejesh/pipelined-processor
182f21e49f99064516b95c9d2143ce4ca540d05b
[ "MIT" ]
null
null
null
test_cases/tc3.asm
mandalatejesh/pipelined-processor
182f21e49f99064516b95c9d2143ce4ca540d05b
[ "MIT" ]
null
null
null
// Program to test branch instructions SUB R1, R1, R2 INC R2 STORE R15, R2, 0 ADD R15, R15, R1 BEQZ R15, 0, 1 JMP f, b HLT
13.666667
38
0.682927
29e492edeb008ae6da2f48bdbe45ed83c0036bbe
352
asm
Assembly
programs/oeis/299/A299250.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/299/A299250.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/299/A299250.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A299250: Numbers congruent to {9, 11, 21, 29} mod 30. ; 9,11,21,29,39,41,51,59,69,71,81,89,99,101,111,119,129,131,141,149,159,161,171,179,189,191,201,209,219,221,231,239,249,251,261,269,279,281,291,299,309,311,321,329,339,341,351,359,369,371,381,389,399,401,411 mul $0,3 div $0,2 add $0,1 seq $0,90771 ; Numbers that are congruent to {1, 9} mod 10.
44
207
0.693182
5131a1f2f4a8c85aedd17e3e42aadd110267d09d
292
asm
Assembly
programs/oeis/155/A155633.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/155/A155633.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/155/A155633.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A155633: 6^n+5^n-1. ; 1,10,60,340,1920,10900,62280,358060,2070240,12030820,70231800,411625180,2420922960,14281397140,84467679720,500702562700,2973697798080,17689598897860,105374653934040,628433226338620 mov $2,5 pow $2,$0 mov $1,$2 add $1,6 mov $3,6 pow $3,$0 add $1,$3 sub $1,7 mov $0,$1
22.461538
182
0.746575
bbd6024553977349b1651d3408e99c96a5dcee90
446
asm
Assembly
libsrc/_DEVELOPMENT/input/zx/c/sdcc_ix/in_mouse_kempston.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/input/zx/c/sdcc_ix/in_mouse_kempston.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/input/zx/c/sdcc_ix/in_mouse_kempston.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void in_mouse_kempston(uint8_t *buttons, uint16_t *x, uint16_t *y) SECTION code_clib SECTION code_input PUBLIC _in_mouse_kempston EXTERN asm_in_mouse_kempston _in_mouse_kempston: call asm_in_mouse_kempston exx pop bc exx pop hl ld (hl),a pop hl ld (hl),e inc hl ld (hl),d pop hl ld (hl),c inc hl ld (hl),b push hl push hl push hl exx push bc exx ret
10.878049
68
0.61435
c8f9983b3691643b0b188e384423cc2071c65c06
397
asm
Assembly
programs/oeis/048/A048298.asm
ckrause/cm
0021b6ca0be0fbe79164e647ddfd0e65869304fe
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/048/A048298.asm
ckrause/cm
0021b6ca0be0fbe79164e647ddfd0e65869304fe
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/048/A048298.asm
ckrause/cm
0021b6ca0be0fbe79164e647ddfd0e65869304fe
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A048298: a(n) = n if n=2^i with i=0,1,2,3,...; else a(n) = 0. ; 0,1,2,0,4,0,0,0,8,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 mov $4,$0 mov $5,$0 mov $26,$0 cmp $26,0 add $4,$26 mul $5,2 lpb $4 dif $4,2 lpe lpb $1,7 div $5,$4 lpe mov $0,$5 div $0,2
22.055556
204
0.508816
ecdf068c2d880bd48883b9c4c5a0873ea0f99733
4,174
asm
Assembly
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0xca.log_10830_1857.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0xca.log_10830_1857.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0xca.log_10830_1857.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: ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r14 push %rax push %rbx push %rdi push %rdx // Store lea addresses_UC+0x18f65, %rbx nop dec %rdi movl $0x51525354, (%rbx) dec %r14 // Store mov $0x945, %rdx nop nop nop nop nop sub $25702, %rax movw $0x5152, (%rdx) nop nop nop nop nop cmp $18660, %r13 // Faulty Load lea addresses_A+0x1f65, %r14 nop nop nop nop nop and $36915, %r11 mov (%r14), %edx lea oracles, %r13 and $0xff, %rdx shlq $12, %rdx mov (%r13,%rdx,1), %rdx pop %rdx pop %rdi pop %rbx pop %rax pop %r14 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': True, 'size': 4, 'NT': False, 'type': 'addresses_UC'}} {'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_P'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 4, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'54': 10830} 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 */
57.972222
2,999
0.65884
a46d6bf62adbd856f1ada52a3925f0bdb5ffd4d3
532
asm
Assembly
oeis/121/A121586.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/121/A121586.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/121/A121586.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A121586: Number of columns in all deco polyominoes of height n. A deco polyomino is a directed column-convex polyomino in which the height, measured along the diagonal, is attained only in the last column. ; Submitted by Jamie Morken(w2) ; 1,1,3,13,70,446,3276,27252,253296,2602224,29288160,358457760,4740577920,67375532160,1024208720640,16583626886400,284953145702400,5178968115148800,99268112350310400,2001336861359001600 add $0,1 mov $2,$0 sub $0,1 mov $3,1 lpb $0 mul $2,$0 sub $2,$3 mul $3,$0 sub $0,1 lpe mov $0,$2
33.25
207
0.763158
ff47e73e1fe00f73376594833d0c1ee73abf2139
451
asm
Assembly
Working Disassembly/General/Competition Menu/Map - Competition Player Sprites.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
5
2021-07-09T08:17:56.000Z
2022-02-27T19:57:47.000Z
Working Disassembly/General/Competition Menu/Map - Competition Player Sprites.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
null
null
null
Working Disassembly/General/Competition Menu/Map - Competition Player Sprites.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
null
null
null
Map_3A1AEE: dc.w Frame_3A1AF4-Map_3A1AEE ; ... dc.w Frame_3A1B02-Map_3A1AEE dc.w Frame_3A1B1C-Map_3A1AEE Frame_3A1AF4: dc.w 2 dc.b $D8, $E, 8, 0,$FF,$EC dc.b $F0, 9, 8, $C,$FF,$F4 Frame_3A1B02: dc.w 4 dc.b $D8, 0, 0,$12,$FF,$FF dc.b $E0, $D, 0,$13,$FF,$EF dc.b $F0, $D, 0,$1B,$FF,$E7 dc.b $F8, 0, 0,$23, 0, 7 Frame_3A1B1C: dc.w 3 dc.b $D8, $E,$20,$24,$FF,$F0 dc.b $F0, 9,$20,$30,$FF,$F0 dc.b $F8, 0,$20,$36, 0, 8
28.1875
46
0.547672
4a728511f6daeb95197a4dc5fc3b60cda5d97718
787
asm
Assembly
programs/oeis/273/A273782.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/273/A273782.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/273/A273782.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A273782: First differences of number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 929", based on the 5-celled von Neumann neighborhood. ; 3,17,27,33,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,160,168,176,184,192,200,208,216,224,232,240,248,256,264,272,280,288,296,304,312,320,328,336,344,352,360,368,376,384,392,400,408,416,424,432,440,448,456,464,472,480,488,496,504,512,520,528,536,544,552,560,568,576,584,592,600,608,616,624,632,640,648,656,664,672,680,688,696,704,712,720,728,736,744,752,760,768,776,784,792,800 mov $2,$0 mov $4,$0 mov $5,$0 trn $5,2 mov $3,$5 lpb $0 mov $0,$3 add $1,5 sub $4,$3 trn $4,$3 lpe add $1,$4 mov $5,$1 trn $1,6 add $1,$5 lpb $2 add $1,8 sub $2,1 lpe add $1,3 mov $0,$1
31.48
388
0.689962
c6724125935df7a87210f9b1dbcefe8ee822c39c
695
asm
Assembly
src/firmware/Platform/Lcd/Initialise.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
1
2019-12-12T09:07:08.000Z
2019-12-12T09:07:08.000Z
src/firmware/Platform/Lcd/Initialise.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
null
null
null
src/firmware/Platform/Lcd/Initialise.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
null
null
null
#define __CLUCK2SESAME_PLATFORM_LCD_INITIALISE_ASM #include "Platform.inc" #include "TailCalls.inc" #include "InitialisationChain.inc" #include "Lcd.inc" #include "States.inc" radix decimal extern INITIALISE_AFTER_LCD Lcd code global initialiseLcd initialiseLcd: .safelySetBankFor enableLcdCount clrf enableLcdCount movlw DEFAULT_LCD_CONTRAST movwf lcdContrast clrf lcdFlags .setBankFor LCD_CONTRAST_ANSEL bcf LCD_CONTRAST_ANSEL, LCD_CONTRAST_PIN_ANSEL .setBankFor LCD_CONTRAST_TRIS bcf LCD_CONTRAST_TRIS, LCD_CONTRAST_PIN_TRIS .setBankFor LCD_CONTRAST_PORT bcf LCD_CONTRAST_PORT, LCD_CONTRAST_PIN setLcdState LCD_STATE_DISABLED tcall INITIALISE_AFTER_LCD end
18.289474
51
0.834532
edd419579399673c58912997e5b88e8894d7b187
6,064
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_un_/i7-7700_9_0x48_notsx.log_21829_963.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_ht_un_/i7-7700_9_0x48_notsx.log_21829_963.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_ht_un_/i7-7700_9_0x48_notsx.log_21829_963.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r8 push %rax push %rcx push %rdx push %rsi lea addresses_UC_ht+0x1a78c, %r8 cmp %rsi, %rsi movw $0x6162, (%r8) nop cmp %r14, %r14 lea addresses_A_ht+0x294e, %rcx nop nop nop sub $62918, %rax vmovups (%rcx), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $0, %xmm4, %r11 nop nop nop cmp %rdx, %rdx lea addresses_normal_ht+0x17f4e, %r11 nop nop nop add $38523, %rdx movups (%r11), %xmm0 vpextrq $1, %xmm0, %rax nop nop xor $16126, %r11 lea addresses_A_ht+0x1d0e, %rsi nop nop xor $62068, %r11 mov $0x6162636465666768, %r8 movq %r8, %xmm4 movups %xmm4, (%rsi) nop nop nop nop nop inc %rax pop %rsi pop %rdx pop %rcx pop %rax pop %r8 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r15 push %r8 push %rbp push %rbx push %rdx push %rsi // Store lea addresses_RW+0x10e46, %rdx clflush (%rdx) nop nop nop nop sub $30873, %rbx mov $0x5152535455565758, %r15 movq %r15, %xmm1 vmovups %ymm1, (%rdx) nop and %r11, %r11 // Store lea addresses_WC+0xe7fc, %rbp nop nop nop nop nop and $9108, %r8 mov $0x5152535455565758, %rsi movq %rsi, %xmm7 movups %xmm7, (%rbp) nop nop xor $1631, %rbp // Store lea addresses_A+0x11c4e, %r11 nop nop sub $57833, %r15 movl $0x51525354, (%r11) nop nop nop nop xor %rdx, %rdx // Store lea addresses_WT+0x1400e, %r8 nop nop add %rbx, %rbx movw $0x5152, (%r8) nop nop nop sub %rdx, %rdx // Faulty Load lea addresses_US+0x8d4e, %rbp nop nop nop nop nop dec %rbx vmovaps (%rbp), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $1, %xmm3, %rdx lea oracles, %r8 and $0xff, %rdx shlq $12, %rdx mov (%r8,%rdx,1), %rdx pop %rsi pop %rdx pop %rbx pop %rbp pop %r8 pop %r15 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_US', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_RW', 'congruent': 3}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC', 'congruent': 1}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 4, 'type': 'addresses_A', 'congruent': 8}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WT', 'congruent': 4}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': True, 'size': 32, 'type': 'addresses_US', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_UC_ht', 'congruent': 1}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_A_ht', 'congruent': 10}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_normal_ht', 'congruent': 9}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_A_ht', 'congruent': 6}, 'OP': 'STOR'} {'45': 11779, '07': 8864, '72': 60, '08': 71, '20': 1054, '06': 1} 06 45 07 07 45 07 07 07 07 07 45 07 07 45 07 07 45 07 45 72 45 45 45 45 45 20 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 20 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 20 45 45 45 45 45 45 45 20 45 45 20 45 45 45 45 45 45 45 45 45 45 45 45 45 45 72 20 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 20 20 20 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 20 20 45 45 45 45 20 45 45 45 45 45 45 45 45 20 45 45 45 45 20 45 45 20 20 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 20 45 45 45 45 45 45 20 20 45 45 45 45 45 45 45 45 45 45 20 45 45 45 20 45 45 45 20 45 45 45 45 45 45 45 45 45 45 45 45 20 45 45 45 45 45 45 45 45 20 45 45 45 20 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 20 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 72 45 45 45 45 45 45 45 45 45 45 20 45 20 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 20 45 45 45 45 45 45 20 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 20 45 45 45 20 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 20 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 20 20 45 45 45 45 45 20 45 45 45 45 45 20 45 45 45 45 20 45 45 45 45 45 45 45 45 45 45 45 45 45 20 45 45 45 45 45 45 45 45 45 45 45 45 20 45 45 20 45 07 07 07 07 07 07 07 07 07 07 45 07 07 07 45 07 07 07 07 07 07 07 07 45 07 07 45 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 45 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 45 07 07 07 07 07 07 07 07 07 07 45 07 07 08 07 07 07 45 07 07 45 45 07 07 07 07 07 07 07 07 45 07 07 07 07 07 07 07 07 07 45 45 07 07 07 07 07 07 45 07 45 07 07 07 07 07 07 45 07 07 07 45 07 07 07 07 07 07 07 45 07 07 07 07 45 45 07 07 45 07 45 07 07 07 07 07 45 07 07 07 07 08 07 07 07 07 07 07 07 45 07 07 07 45 07 07 07 45 07 07 45 07 07 07 07 07 07 45 07 07 07 45 07 45 07 07 07 07 45 07 07 07 07 07 07 45 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 45 07 07 07 07 45 07 45 07 07 07 07 07 07 07 45 72 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 20 45 45 45 45 45 45 45 45 45 45 20 45 45 45 45 45 45 45 45 20 45 45 45 45 45 45 45 45 45 45 45 20 45 45 45 45 45 45 45 45 45 20 20 45 07 07 07 07 07 45 07 45 07 07 45 07 07 45 07 45 07 07 07 07 45 07 07 45 07 07 07 07 07 07 45 07 07 07 07 07 07 07 07 45 07 07 07 07 07 07 07 07 07 07 07 07 45 07 45 07 07 07 45 45 07 07 45 45 07 07 07 07 07 07 45 07 07 07 07 07 07 08 07 45 07 07 45 07 07 45 07 45 07 45 07 07 07 07 45 07 07 07 45 07 07 07 45 07 45 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 45 07 07 07 07 07 07 07 07 07 07 07 07 07 45 07 07 07 07 07 07 07 07 45 07 07 07 45 45 45 45 45 45 45 45 20 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 20 45 45 45 45 45 20 20 45 45 45 45 45 45 20 45 45 45 45 45 20 45 45 45 45 45 45 45 45 45 20 45 */
37.202454
2,999
0.654189
b18f7306436d43239daf3911faa3d52c04bf4ac3
1,049
asm
Assembly
programs/oeis/133/A133310.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/133/A133310.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/133/A133310.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A133310: a(3n) = 2n+1, a(3n+1) = 2n+2, a(3n+2) = 2n+1. ; 1,2,1,3,4,3,5,6,5,7,8,7,9,10,9,11,12,11,13,14,13,15,16,15,17,18,17,19,20,19,21,22,21,23,24,23,25,26,25,27,28,27,29,30,29,31,32,31,33,34,33,35,36,35,37,38,37,39,40,39,41,42,41,43,44,43,45,46,45,47,48,47,49,50,49,51,52,51,53,54,53,55,56,55,57,58,57,59,60,59,61,62,61,63,64,63,65,66,65,67,68,67,69,70,69,71,72,71,73,74,73,75,76,75,77,78,77,79,80,79,81,82,81,83,84,83,85,86,85,87,88,87,89,90,89,91,92,91,93,94,93,95,96,95,97,98,97,99,100,99,101,102,101,103,104,103,105,106,105,107,108,107,109,110,109,111,112,111,113,114,113,115,116,115,117,118,117,119,120,119,121,122,121,123,124,123,125,126,125,127,128,127,129,130,129,131,132,131,133,134,133,135,136,135,137,138,137,139,140,139,141,142,141,143,144,143,145,146,145,147,148,147,149,150,149,151,152,151,153,154,153,155,156,155,157,158,157,159,160,159,161,162,161,163,164,163,165,166,165,167 mov $1,$0 mov $2,$0 div $2,3 add $1,$2 mod $1,2 add $1,6 mov $3,$2 mov $2,0 add $2,$3 lpb $0,1 mov $0,0 mov $4,$2 mul $4,2 lpe add $1,$4 sub $1,5
52.45
838
0.659676
30371585053fc14e33bfe0275e573798bff77ad0
284
asm
Assembly
pwnlib/shellcraft/templates/powerpc/linux/lstat64.asm
zaratec/pwntools
8793decd1c9b8c822e3db6c27b9cbf6e8cddfeba
[ "MIT" ]
5
2018-05-15T13:00:56.000Z
2020-02-09T14:29:00.000Z
pwnlib/shellcraft/templates/powerpc/linux/lstat64.asm
FDlucifer/binjitsu
999ad632004bfc3e623eead20eb11de98fc1f4dd
[ "MIT" ]
null
null
null
pwnlib/shellcraft/templates/powerpc/linux/lstat64.asm
FDlucifer/binjitsu
999ad632004bfc3e623eead20eb11de98fc1f4dd
[ "MIT" ]
6
2017-09-07T02:31:11.000Z
2021-07-05T16:59:18.000Z
<% from pwnlib.shellcraft.powerpc.linux import syscall %> <%page args="file, buf"/> <%docstring> Invokes the syscall lstat64. See 'man 2 lstat64' for more information. Arguments: file(char): file buf(stat64): buf </%docstring> ${syscall('SYS_lstat64', file, buf)}
18.933333
71
0.676056
7a3f1b900540844dd262d581f4592eed54247da1
696
asm
Assembly
programs/oeis/025/A025581.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/025/A025581.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/025/A025581.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A025581: Triangle T(n, k) = n-k, 0 <= k <= n. ; 0,1,0,2,1,0,3,2,1,0,4,3,2,1,0,5,4,3,2,1,0,6,5,4,3,2,1,0,7,6,5,4,3,2,1,0,8,7,6,5,4,3,2,1,0,9,8,7,6,5,4,3,2,1,0,10,9,8,7,6,5,4,3,2,1,0,11,10,9,8,7,6,5,4,3,2,1,0,12,11,10,9,8,7,6,5,4,3,2,1,0,13,12,11,10,9,8,7,6,5,4,3,2,1,0,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3 lpb $0 sub $0,1 add $1,1 mov $2,$0 trn $0,$1 lpe sub $1,$2
63.272727
579
0.550287
f49e432e4d19e891415deaea9d8b963aaf369c95
1,404
asm
Assembly
Transynther/x86/_processed/US/_ht_/i9-9900K_12_0xca_notsx.log_4_1578.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_ht_/i9-9900K_12_0xca_notsx.log_4_1578.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_ht_/i9-9900K_12_0xca_notsx.log_4_1578.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 %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x1df36, %rsi lea addresses_D_ht+0x15d16, %rdi nop nop and %rdx, %rdx mov $20, %rcx rep movsb nop nop inc %r12 lea addresses_A_ht+0x8d7a, %r9 cmp $42967, %r12 mov $0x6162636465666768, %rdx movq %rdx, %xmm2 vmovups %ymm2, (%r9) nop nop inc %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %rbx push %rcx push %rdi // Faulty Load lea addresses_US+0x162b6, %r13 nop nop nop dec %r10 vmovups (%r13), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $1, %xmm0, %rbx lea oracles, %rcx and $0xff, %rbx shlq $12, %rbx mov (%rcx,%rbx,1), %rbx pop %rdi pop %rcx pop %rbx pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 2}} {'46': 4} 46 46 46 46 */
18.233766
146
0.656695
d07c26fee5dbf1b6b2f54b569cd2e71da7bf7201
358
asm
Assembly
libsrc/_DEVELOPMENT/string/c/sccz80/_memstrcpy__callee.asm
UnivEngineer/z88dk
9047beba62595b1d88991bc934da75c0e2030d07
[ "ClArtistic" ]
1
2022-03-08T11:55:58.000Z
2022-03-08T11:55:58.000Z
libsrc/_DEVELOPMENT/string/c/sccz80/_memstrcpy__callee.asm
UnivEngineer/z88dk
9047beba62595b1d88991bc934da75c0e2030d07
[ "ClArtistic" ]
2
2022-03-20T22:17:35.000Z
2022-03-24T16:10:00.000Z
libsrc/_DEVELOPMENT/string/c/sccz80/_memstrcpy__callee.asm
jorgegv/z88dk
127130cf11f9ff268ba53e308138b12d2b9be90a
[ "ClArtistic" ]
null
null
null
; char *_memstrcpy_(void *p, char *s, size_t n) SECTION code_clib SECTION code_string PUBLIC _memstrcpy__callee EXTERN asm__memstrcpy _memstrcpy__callee: pop hl pop bc pop de ex (sp),hl ex de,hl jp asm__memstrcpy ; SDCC bridge for Classic IF __CLASSIC PUBLIC __memstrcpy__callee defc __memstrcpy__callee = _memstrcpy__callee ENDIF
13.259259
47
0.76257
20a96d489064b149176375dfcfe98d5c1b6ea125
661
asm
Assembly
programs/oeis/064/A064583.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/064/A064583.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/064/A064583.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A064583: a(n) = n^4*(n^4+1)*(n^2-1). ; 0,0,816,53136,986880,9390000,58831920,276825696,1057222656,3444262560,9900990000,25724822640,61490347776,137047559376,287786357040,574098840000,1095233372160,2009042197056,3559481173296,6114129610320,10214463840000,16642143690480,26505160063536,41348347984416,63293496422400,95215087500000,140958577047600,205609089447216,295819445972736,420207581003280,589834628190000,818776282523520,1124801467908096,1530173866928256,2062593503622960,2756297314890000,3653339505258240,4805074456816176,6273867064700976,8135057592361440 pow $0,2 mov $2,$0 mov $3,$0 pow $0,2 mov $1,$0 pow $2,2 sub $2,$3 mul $3,$2 mul $1,$3 add $1,$3
47.214286
523
0.83056
a0958f60718cfa117b51e0fd2f46ae5457994df8
445
asm
Assembly
programs/oeis/106/A106269.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/106/A106269.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/106/A106269.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A106269: Expansion of 1/((1 - x^2)*(2 - c(x))), where c(x) is the g.f. of A000108. ; 1,1,4,11,39,137,501,1853,6936,26163,99314,378879,1451392,5579179,21509692,83137939,322049887,1249941049,4859617537,18922572949,73782881947,288051510169,1125832363807,4404766873969,17249634205357,67610070092845,265208900679409,1041079782916901,4089554201059629 lpb $0 mov $2,$0 add $2,$0 bin $2,$0 sub $0,2 add $1,$2 lpe mul $1,2 div $1,4 add $1,1
31.785714
261
0.732584
33b13f37ea35e1b4edd9430586d763744f4417f0
2,855
asm
Assembly
libsrc/stdio/ansi/spectrum/f_ansi_attr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/stdio/ansi/spectrum/f_ansi_attr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/stdio/ansi/spectrum/f_ansi_attr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; ; Spectrum C Library ; ; ANSI Video handling for ZX Spectrum ; ; Text Attributes ; m - Set Graphic Rendition ; ; The most difficult thing to port: ; Be careful here... ; ; Stefano Bodrato - Apr. 2000 ; ; ; $Id: f_ansi_attr.asm,v 1.6 2016-04-04 18:31:23 dom Exp $ ; SECTION code_clib PUBLIC ansi_attr EXTERN INVRS EXTERN __zx_console_attr .ansi_attr and a jr nz,noreset ld a,7 jr setbk .noreset cp 1 jr nz,nobold ld a,(__zx_console_attr) or @01000000 jr setbk .nobold cp 2 jr z,dim cp 8 jr nz,nodim .dim ld a,(__zx_console_attr) and @10111111 jr setbk .nodim cp 4 jr nz,nounderline ld a,32 ld (INVRS+2),a ; underline 1 ret .nounderline cp 24 jr nz,noCunderline ld a, 24 ld (INVRS+2),a ; underline 0 ret .noCunderline cp 5 jr nz,noblink ld a,(__zx_console_attr) or @10000000 jr setbk .noblink cp 25 jr nz,nocblink ld a,(__zx_console_attr) and @01111111 jr setbk .nocblink cp 7 jr nz,noreverse ld a,47 ld (INVRS),a ; inverse 1 ret .noreverse cp 27 jr nz,noCreverse xor a ld (INVRS),a ; inverse 0 ret .noCreverse cp 8 jr nz,noinvis ld a,(__zx_console_attr) ld (oldattr),a and @00111000 ld e,a rra rra rra or e .setbk ;ld (23624),a ld (__zx_console_attr),a ret .noinvis cp 28 jr nz,nocinvis ld a,(oldattr) jr setbk .nocinvis cp 30 jp m,nofore cp 37+1 jp p,nofore sub 30 ;'' Palette Handling '' rla bit 3,a jr z,ZFR set 0,a and 7 .ZFR ;'''''''''''''''''''''' ld e,a ld a,(__zx_console_attr) and @11111000 or e jr setbk .nofore cp 40 jp m,noback cp 47+1 jp p,noback sub 40 ;'' Palette Handling '' rla bit 3,a jr z,ZBK set 0,a and 7 .ZBK ;'''''''''''''''''''''' rla rla rla ld e,a ld a,(__zx_console_attr) and @11000111 or e jr setbk .noback ret SECTION bss_clib .oldattr defb 0
19.421769
58
0.415762
7aafffbc683aa3c32826677ca2b9302a3c38a807
1,135
asm
Assembly
programs/oeis/034/A034959.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/034/A034959.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/034/A034959.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A034959: Divide even numbers into groups with prime(n) elements and add together. ; 2,18,70,182,484,884,1666,2546,4048,6612,8928,13172,17794,22274,28576,37524,48380,57340,71556,85626,98550,118658,138112,163404,196134,224220,249672,281838,310650,347136,420624,467670,525806,571846,655898,710002,786570,868790,945220,1038000,1137008,1214872,1353044,1441324,1548026,1642546,1828104,2028854,2167396,2290916,2438578,2614182,2751738,2989410,3191426,3402694,3623430,3796710,4032566,4247596,4437440,4763008,5174792,5434414,5664674,5936776,6413456,6754828,7192616,7476976,7810478,8198842,8647988,9065392,9496224,9888294,10343510,10868272,11297774,11854456,12491228,12904492,13578224,14015344,14592360,15116046,15721286,16415440,16982318,17483806,18069164,18986602,19774148,20416762,21243428,21917722,22694274,23765936,24403180,25818684 mov $5,2 mov $7,$0 lpb $5 mov $0,$7 sub $5,1 add $0,$5 trn $0,1 seq $0,237589 ; Sum of first n odd noncomposite numbers. mov $8,$2 cmp $8,0 add $2,$8 mov $3,$2 add $3,$0 trn $2,$3 mul $3,$0 mov $4,$5 mul $4,$3 add $1,$4 mov $6,$3 lpe min $7,1 mul $7,$6 sub $1,$7 mov $0,$1
40.535714
744
0.761233
f7a44235f741f51b4db3896d114afe0d24027d4b
1,542
asm
Assembly
programs/oeis/036/A036498.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/036/A036498.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/036/A036498.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A036498: Numbers of the form m*(6*m-1) and m*(6*m+1), where m is an integer. ; 0,5,7,22,26,51,57,92,100,145,155,210,222,287,301,376,392,477,495,590,610,715,737,852,876,1001,1027,1162,1190,1335,1365,1520,1552,1717,1751,1926,1962,2147,2185,2380,2420,2625,2667,2882,2926,3151,3197,3432,3480,3725,3775,4030,4082,4347,4401,4676,4732,5017,5075,5370,5430,5735,5797,6112,6176,6501,6567,6902,6970,7315,7385,7740,7812,8177,8251,8626,8702,9087,9165,9560,9640,10045,10127,10542,10626,11051,11137,11572,11660,12105,12195,12650,12742,13207,13301,13776,13872,14357,14455,14950,15050,15555,15657,16172,16276,16801,16907,17442,17550,18095,18205,18760,18872,19437,19551,20126,20242,20827,20945,21540,21660,22265,22387,23002,23126,23751,23877,24512,24640,25285,25415,26070,26202,26867,27001,27676,27812,28497,28635,29330,29470,30175,30317,31032,31176,31901,32047,32782,32930,33675,33825,34580,34732,35497,35651,36426,36582,37367,37525,38320,38480,39285,39447,40262,40426,41251,41417,42252,42420,43265,43435,44290,44462,45327,45501,46376,46552,47437,47615,48510,48690,49595,49777,50692,50876,51801,51987,52922,53110,54055,54245,55200,55392,56357,56551,57526,57722,58707,58905,59900,60100,61105,61307,62322,62526,63551,63757,64792,65000,66045,66255,67310,67522,68587,68801,69876,70092,71177,71395,72490,72710,73815,74037,75152,75376,76501,76727,77862,78090,79235,79465,80620,80852,82017,82251,83426,83662,84847,85085,86280,86520,87725,87967,89182,89426,90651,90897,92132,92380,93625 mul $0,2 mov $2,$0 lpb $2,1 add $1,$0 add $0,4 add $1,3 trn $2,4 lpe
128.5
1,384
0.792477
2fe2ad5374e6ae54bdc7fab182d7d6dd2c862c49
677
asm
Assembly
oeis/151/A151483.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/151/A151483.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/151/A151483.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A151483: Number of walks within N^2 (the first quadrant of Z^2) starting at (0,0), ending on the vertical axis and consisting of n steps taken from {(-1, 0), (-1, 1), (0, -1), (0, 1), (1, -1), (1, 0)}. ; Submitted by Jon Maiga ; 1,1,4,12,48,192,832,3712,17152,81152,392192,1928192,9621504,48623616,248463360,1282031616,6672285696,34993274880,184793432064,981947645952,5247335399424,28185150357504,152104870084608,824404913160192,4486067252101120,24501262150008832,134274187559698432,738200201575006208 mov $1,1 mov $3,$0 lpb $3 mul $1,$3 mul $1,2 add $2,1 bin $4,2 sub $4,2 add $5,$4 div $1,$5 add $2,$1 mul $2,2 sub $3,1 lpe mov $0,$2 div $0,2 add $0,1
30.772727
274
0.695716
7b2b549cfdf427ec4eeb763b676f34c77da1e58b
38,514
asm
Assembly
zombie.asm
prajwalds17/xv6
614f33e9aeeac19b07cdbf1453a89b5727261ac7
[ "MIT-0" ]
null
null
null
zombie.asm
prajwalds17/xv6
614f33e9aeeac19b07cdbf1453a89b5727261ac7
[ "MIT-0" ]
null
null
null
zombie.asm
prajwalds17/xv6
614f33e9aeeac19b07cdbf1453a89b5727261ac7
[ "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: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 push %ebp b: 89 e5 mov %esp,%ebp d: 51 push %ecx e: 83 ec 04 sub $0x4,%esp if(fork() > 0) 11: e8 64 02 00 00 call 27a <fork> 16: 85 c0 test %eax,%eax 18: 7e 0d jle 27 <main+0x27> sleep(5); // Let child exit before parent. 1a: 83 ec 0c sub $0xc,%esp 1d: 6a 05 push $0x5 1f: e8 ee 02 00 00 call 312 <sleep> 24: 83 c4 10 add $0x10,%esp exit(); 27: e8 56 02 00 00 call 282 <exit> 2c: 66 90 xchg %ax,%ax 2e: 66 90 xchg %ax,%ax 00000030 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, const char *t) { 30: 55 push %ebp 31: 89 e5 mov %esp,%ebp 33: 53 push %ebx 34: 8b 45 08 mov 0x8(%ebp),%eax 37: 8b 4d 0c mov 0xc(%ebp),%ecx char *os; os = s; while((*s++ = *t++) != 0) 3a: 89 c2 mov %eax,%edx 3c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 40: 83 c1 01 add $0x1,%ecx 43: 0f b6 59 ff movzbl -0x1(%ecx),%ebx 47: 83 c2 01 add $0x1,%edx 4a: 84 db test %bl,%bl 4c: 88 5a ff mov %bl,-0x1(%edx) 4f: 75 ef jne 40 <strcpy+0x10> ; return os; } 51: 5b pop %ebx 52: 5d pop %ebp 53: c3 ret 54: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 5a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 00000060 <strcmp>: int strcmp(const char *p, const char *q) { 60: 55 push %ebp 61: 89 e5 mov %esp,%ebp 63: 53 push %ebx 64: 8b 55 08 mov 0x8(%ebp),%edx 67: 8b 4d 0c mov 0xc(%ebp),%ecx while(*p && *p == *q) 6a: 0f b6 02 movzbl (%edx),%eax 6d: 0f b6 19 movzbl (%ecx),%ebx 70: 84 c0 test %al,%al 72: 75 1c jne 90 <strcmp+0x30> 74: eb 2a jmp a0 <strcmp+0x40> 76: 8d 76 00 lea 0x0(%esi),%esi 79: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi p++, q++; 80: 83 c2 01 add $0x1,%edx while(*p && *p == *q) 83: 0f b6 02 movzbl (%edx),%eax p++, q++; 86: 83 c1 01 add $0x1,%ecx 89: 0f b6 19 movzbl (%ecx),%ebx while(*p && *p == *q) 8c: 84 c0 test %al,%al 8e: 74 10 je a0 <strcmp+0x40> 90: 38 d8 cmp %bl,%al 92: 74 ec je 80 <strcmp+0x20> return (uchar)*p - (uchar)*q; 94: 29 d8 sub %ebx,%eax } 96: 5b pop %ebx 97: 5d pop %ebp 98: c3 ret 99: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi a0: 31 c0 xor %eax,%eax return (uchar)*p - (uchar)*q; a2: 29 d8 sub %ebx,%eax } a4: 5b pop %ebx a5: 5d pop %ebp a6: c3 ret a7: 89 f6 mov %esi,%esi a9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 000000b0 <strlen>: uint strlen(const char *s) { b0: 55 push %ebp b1: 89 e5 mov %esp,%ebp b3: 8b 4d 08 mov 0x8(%ebp),%ecx int n; for(n = 0; s[n]; n++) b6: 80 39 00 cmpb $0x0,(%ecx) b9: 74 15 je d0 <strlen+0x20> bb: 31 d2 xor %edx,%edx bd: 8d 76 00 lea 0x0(%esi),%esi c0: 83 c2 01 add $0x1,%edx c3: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1) c7: 89 d0 mov %edx,%eax c9: 75 f5 jne c0 <strlen+0x10> ; return n; } cb: 5d pop %ebp cc: c3 ret cd: 8d 76 00 lea 0x0(%esi),%esi for(n = 0; s[n]; n++) d0: 31 c0 xor %eax,%eax } d2: 5d pop %ebp d3: c3 ret d4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi da: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 000000e0 <memset>: void* memset(void *dst, int c, uint n) { e0: 55 push %ebp e1: 89 e5 mov %esp,%ebp e3: 57 push %edi e4: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : e7: 8b 4d 10 mov 0x10(%ebp),%ecx ea: 8b 45 0c mov 0xc(%ebp),%eax ed: 89 d7 mov %edx,%edi ef: fc cld f0: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } f2: 89 d0 mov %edx,%eax f4: 5f pop %edi f5: 5d pop %ebp f6: c3 ret f7: 89 f6 mov %esi,%esi f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000100 <strchr>: char* strchr(const char *s, char c) { 100: 55 push %ebp 101: 89 e5 mov %esp,%ebp 103: 53 push %ebx 104: 8b 45 08 mov 0x8(%ebp),%eax 107: 8b 5d 0c mov 0xc(%ebp),%ebx for(; *s; s++) 10a: 0f b6 10 movzbl (%eax),%edx 10d: 84 d2 test %dl,%dl 10f: 74 1d je 12e <strchr+0x2e> if(*s == c) 111: 38 d3 cmp %dl,%bl 113: 89 d9 mov %ebx,%ecx 115: 75 0d jne 124 <strchr+0x24> 117: eb 17 jmp 130 <strchr+0x30> 119: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 120: 38 ca cmp %cl,%dl 122: 74 0c je 130 <strchr+0x30> for(; *s; s++) 124: 83 c0 01 add $0x1,%eax 127: 0f b6 10 movzbl (%eax),%edx 12a: 84 d2 test %dl,%dl 12c: 75 f2 jne 120 <strchr+0x20> return (char*)s; return 0; 12e: 31 c0 xor %eax,%eax } 130: 5b pop %ebx 131: 5d pop %ebp 132: c3 ret 133: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 139: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000140 <gets>: char* gets(char *buf, int max) { 140: 55 push %ebp 141: 89 e5 mov %esp,%ebp 143: 57 push %edi 144: 56 push %esi 145: 53 push %ebx int i, cc; char c; for(i=0; i+1 < max; ){ 146: 31 f6 xor %esi,%esi 148: 89 f3 mov %esi,%ebx { 14a: 83 ec 1c sub $0x1c,%esp 14d: 8b 7d 08 mov 0x8(%ebp),%edi for(i=0; i+1 < max; ){ 150: eb 2f jmp 181 <gets+0x41> 152: 8d b6 00 00 00 00 lea 0x0(%esi),%esi cc = read(0, &c, 1); 158: 8d 45 e7 lea -0x19(%ebp),%eax 15b: 83 ec 04 sub $0x4,%esp 15e: 6a 01 push $0x1 160: 50 push %eax 161: 6a 00 push $0x0 163: e8 32 01 00 00 call 29a <read> if(cc < 1) 168: 83 c4 10 add $0x10,%esp 16b: 85 c0 test %eax,%eax 16d: 7e 1c jle 18b <gets+0x4b> break; buf[i++] = c; 16f: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 173: 83 c7 01 add $0x1,%edi 176: 88 47 ff mov %al,-0x1(%edi) if(c == '\n' || c == '\r') 179: 3c 0a cmp $0xa,%al 17b: 74 23 je 1a0 <gets+0x60> 17d: 3c 0d cmp $0xd,%al 17f: 74 1f je 1a0 <gets+0x60> for(i=0; i+1 < max; ){ 181: 83 c3 01 add $0x1,%ebx 184: 3b 5d 0c cmp 0xc(%ebp),%ebx 187: 89 fe mov %edi,%esi 189: 7c cd jl 158 <gets+0x18> 18b: 89 f3 mov %esi,%ebx break; } buf[i] = '\0'; return buf; } 18d: 8b 45 08 mov 0x8(%ebp),%eax buf[i] = '\0'; 190: c6 03 00 movb $0x0,(%ebx) } 193: 8d 65 f4 lea -0xc(%ebp),%esp 196: 5b pop %ebx 197: 5e pop %esi 198: 5f pop %edi 199: 5d pop %ebp 19a: c3 ret 19b: 90 nop 19c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 1a0: 8b 75 08 mov 0x8(%ebp),%esi 1a3: 8b 45 08 mov 0x8(%ebp),%eax 1a6: 01 de add %ebx,%esi 1a8: 89 f3 mov %esi,%ebx buf[i] = '\0'; 1aa: c6 03 00 movb $0x0,(%ebx) } 1ad: 8d 65 f4 lea -0xc(%ebp),%esp 1b0: 5b pop %ebx 1b1: 5e pop %esi 1b2: 5f pop %edi 1b3: 5d pop %ebp 1b4: c3 ret 1b5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 1b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 000001c0 <stat>: int stat(const char *n, struct stat *st) { 1c0: 55 push %ebp 1c1: 89 e5 mov %esp,%ebp 1c3: 56 push %esi 1c4: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); 1c5: 83 ec 08 sub $0x8,%esp 1c8: 6a 00 push $0x0 1ca: ff 75 08 pushl 0x8(%ebp) 1cd: e8 f0 00 00 00 call 2c2 <open> if(fd < 0) 1d2: 83 c4 10 add $0x10,%esp 1d5: 85 c0 test %eax,%eax 1d7: 78 27 js 200 <stat+0x40> return -1; r = fstat(fd, st); 1d9: 83 ec 08 sub $0x8,%esp 1dc: ff 75 0c pushl 0xc(%ebp) 1df: 89 c3 mov %eax,%ebx 1e1: 50 push %eax 1e2: e8 f3 00 00 00 call 2da <fstat> close(fd); 1e7: 89 1c 24 mov %ebx,(%esp) r = fstat(fd, st); 1ea: 89 c6 mov %eax,%esi close(fd); 1ec: e8 b9 00 00 00 call 2aa <close> return r; 1f1: 83 c4 10 add $0x10,%esp } 1f4: 8d 65 f8 lea -0x8(%ebp),%esp 1f7: 89 f0 mov %esi,%eax 1f9: 5b pop %ebx 1fa: 5e pop %esi 1fb: 5d pop %ebp 1fc: c3 ret 1fd: 8d 76 00 lea 0x0(%esi),%esi return -1; 200: be ff ff ff ff mov $0xffffffff,%esi 205: eb ed jmp 1f4 <stat+0x34> 207: 89 f6 mov %esi,%esi 209: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000210 <atoi>: int atoi(const char *s) { 210: 55 push %ebp 211: 89 e5 mov %esp,%ebp 213: 53 push %ebx 214: 8b 4d 08 mov 0x8(%ebp),%ecx int n; n = 0; while('0' <= *s && *s <= '9') 217: 0f be 11 movsbl (%ecx),%edx 21a: 8d 42 d0 lea -0x30(%edx),%eax 21d: 3c 09 cmp $0x9,%al n = 0; 21f: b8 00 00 00 00 mov $0x0,%eax while('0' <= *s && *s <= '9') 224: 77 1f ja 245 <atoi+0x35> 226: 8d 76 00 lea 0x0(%esi),%esi 229: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi n = n*10 + *s++ - '0'; 230: 8d 04 80 lea (%eax,%eax,4),%eax 233: 83 c1 01 add $0x1,%ecx 236: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax while('0' <= *s && *s <= '9') 23a: 0f be 11 movsbl (%ecx),%edx 23d: 8d 5a d0 lea -0x30(%edx),%ebx 240: 80 fb 09 cmp $0x9,%bl 243: 76 eb jbe 230 <atoi+0x20> return n; } 245: 5b pop %ebx 246: 5d pop %ebp 247: c3 ret 248: 90 nop 249: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000250 <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 250: 55 push %ebp 251: 89 e5 mov %esp,%ebp 253: 56 push %esi 254: 53 push %ebx 255: 8b 5d 10 mov 0x10(%ebp),%ebx 258: 8b 45 08 mov 0x8(%ebp),%eax 25b: 8b 75 0c mov 0xc(%ebp),%esi char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 25e: 85 db test %ebx,%ebx 260: 7e 14 jle 276 <memmove+0x26> 262: 31 d2 xor %edx,%edx 264: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi *dst++ = *src++; 268: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx 26c: 88 0c 10 mov %cl,(%eax,%edx,1) 26f: 83 c2 01 add $0x1,%edx while(n-- > 0) 272: 39 d3 cmp %edx,%ebx 274: 75 f2 jne 268 <memmove+0x18> return vdst; } 276: 5b pop %ebx 277: 5e pop %esi 278: 5d pop %ebp 279: c3 ret 0000027a <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 27a: b8 01 00 00 00 mov $0x1,%eax 27f: cd 40 int $0x40 281: c3 ret 00000282 <exit>: SYSCALL(exit) 282: b8 02 00 00 00 mov $0x2,%eax 287: cd 40 int $0x40 289: c3 ret 0000028a <wait>: SYSCALL(wait) 28a: b8 03 00 00 00 mov $0x3,%eax 28f: cd 40 int $0x40 291: c3 ret 00000292 <pipe>: SYSCALL(pipe) 292: b8 04 00 00 00 mov $0x4,%eax 297: cd 40 int $0x40 299: c3 ret 0000029a <read>: SYSCALL(read) 29a: b8 05 00 00 00 mov $0x5,%eax 29f: cd 40 int $0x40 2a1: c3 ret 000002a2 <write>: SYSCALL(write) 2a2: b8 10 00 00 00 mov $0x10,%eax 2a7: cd 40 int $0x40 2a9: c3 ret 000002aa <close>: SYSCALL(close) 2aa: b8 15 00 00 00 mov $0x15,%eax 2af: cd 40 int $0x40 2b1: c3 ret 000002b2 <kill>: SYSCALL(kill) 2b2: b8 06 00 00 00 mov $0x6,%eax 2b7: cd 40 int $0x40 2b9: c3 ret 000002ba <exec>: SYSCALL(exec) 2ba: b8 07 00 00 00 mov $0x7,%eax 2bf: cd 40 int $0x40 2c1: c3 ret 000002c2 <open>: SYSCALL(open) 2c2: b8 0f 00 00 00 mov $0xf,%eax 2c7: cd 40 int $0x40 2c9: c3 ret 000002ca <mknod>: SYSCALL(mknod) 2ca: b8 11 00 00 00 mov $0x11,%eax 2cf: cd 40 int $0x40 2d1: c3 ret 000002d2 <unlink>: SYSCALL(unlink) 2d2: b8 12 00 00 00 mov $0x12,%eax 2d7: cd 40 int $0x40 2d9: c3 ret 000002da <fstat>: SYSCALL(fstat) 2da: b8 08 00 00 00 mov $0x8,%eax 2df: cd 40 int $0x40 2e1: c3 ret 000002e2 <link>: SYSCALL(link) 2e2: b8 13 00 00 00 mov $0x13,%eax 2e7: cd 40 int $0x40 2e9: c3 ret 000002ea <mkdir>: SYSCALL(mkdir) 2ea: b8 14 00 00 00 mov $0x14,%eax 2ef: cd 40 int $0x40 2f1: c3 ret 000002f2 <chdir>: SYSCALL(chdir) 2f2: b8 09 00 00 00 mov $0x9,%eax 2f7: cd 40 int $0x40 2f9: c3 ret 000002fa <dup>: SYSCALL(dup) 2fa: b8 0a 00 00 00 mov $0xa,%eax 2ff: cd 40 int $0x40 301: c3 ret 00000302 <getpid>: SYSCALL(getpid) 302: b8 0b 00 00 00 mov $0xb,%eax 307: cd 40 int $0x40 309: c3 ret 0000030a <sbrk>: SYSCALL(sbrk) 30a: b8 0c 00 00 00 mov $0xc,%eax 30f: cd 40 int $0x40 311: c3 ret 00000312 <sleep>: SYSCALL(sleep) 312: b8 0d 00 00 00 mov $0xd,%eax 317: cd 40 int $0x40 319: c3 ret 0000031a <uptime>: SYSCALL(uptime) 31a: b8 0e 00 00 00 mov $0xe,%eax 31f: cd 40 int $0x40 321: c3 ret 00000322 <lseek>: SYSCALL(lseek) 322: b8 16 00 00 00 mov $0x16,%eax 327: cd 40 int $0x40 329: c3 ret 32a: 66 90 xchg %ax,%ax 32c: 66 90 xchg %ax,%ax 32e: 66 90 xchg %ax,%ax 00000330 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 330: 55 push %ebp 331: 89 e5 mov %esp,%ebp 333: 57 push %edi 334: 56 push %esi 335: 53 push %ebx 336: 83 ec 3c sub $0x3c,%esp char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 339: 85 d2 test %edx,%edx { 33b: 89 45 c0 mov %eax,-0x40(%ebp) neg = 1; x = -xx; 33e: 89 d0 mov %edx,%eax if(sgn && xx < 0){ 340: 79 76 jns 3b8 <printint+0x88> 342: f6 45 08 01 testb $0x1,0x8(%ebp) 346: 74 70 je 3b8 <printint+0x88> x = -xx; 348: f7 d8 neg %eax neg = 1; 34a: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp) } else { x = xx; } i = 0; 351: 31 f6 xor %esi,%esi 353: 8d 5d d7 lea -0x29(%ebp),%ebx 356: eb 0a jmp 362 <printint+0x32> 358: 90 nop 359: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi do{ buf[i++] = digits[x % base]; 360: 89 fe mov %edi,%esi 362: 31 d2 xor %edx,%edx 364: 8d 7e 01 lea 0x1(%esi),%edi 367: f7 f1 div %ecx 369: 0f b6 92 30 07 00 00 movzbl 0x730(%edx),%edx }while((x /= base) != 0); 370: 85 c0 test %eax,%eax buf[i++] = digits[x % base]; 372: 88 14 3b mov %dl,(%ebx,%edi,1) }while((x /= base) != 0); 375: 75 e9 jne 360 <printint+0x30> if(neg) 377: 8b 45 c4 mov -0x3c(%ebp),%eax 37a: 85 c0 test %eax,%eax 37c: 74 08 je 386 <printint+0x56> buf[i++] = '-'; 37e: c6 44 3d d8 2d movb $0x2d,-0x28(%ebp,%edi,1) 383: 8d 7e 02 lea 0x2(%esi),%edi 386: 8d 74 3d d7 lea -0x29(%ebp,%edi,1),%esi 38a: 8b 7d c0 mov -0x40(%ebp),%edi 38d: 8d 76 00 lea 0x0(%esi),%esi 390: 0f b6 06 movzbl (%esi),%eax write(fd, &c, 1); 393: 83 ec 04 sub $0x4,%esp 396: 83 ee 01 sub $0x1,%esi 399: 6a 01 push $0x1 39b: 53 push %ebx 39c: 57 push %edi 39d: 88 45 d7 mov %al,-0x29(%ebp) 3a0: e8 fd fe ff ff call 2a2 <write> while(--i >= 0) 3a5: 83 c4 10 add $0x10,%esp 3a8: 39 de cmp %ebx,%esi 3aa: 75 e4 jne 390 <printint+0x60> putc(fd, buf[i]); } 3ac: 8d 65 f4 lea -0xc(%ebp),%esp 3af: 5b pop %ebx 3b0: 5e pop %esi 3b1: 5f pop %edi 3b2: 5d pop %ebp 3b3: c3 ret 3b4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi neg = 0; 3b8: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) 3bf: eb 90 jmp 351 <printint+0x21> 3c1: eb 0d jmp 3d0 <printf> 3c3: 90 nop 3c4: 90 nop 3c5: 90 nop 3c6: 90 nop 3c7: 90 nop 3c8: 90 nop 3c9: 90 nop 3ca: 90 nop 3cb: 90 nop 3cc: 90 nop 3cd: 90 nop 3ce: 90 nop 3cf: 90 nop 000003d0 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 3d0: 55 push %ebp 3d1: 89 e5 mov %esp,%ebp 3d3: 57 push %edi 3d4: 56 push %esi 3d5: 53 push %ebx 3d6: 83 ec 2c sub $0x2c,%esp int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 3d9: 8b 75 0c mov 0xc(%ebp),%esi 3dc: 0f b6 1e movzbl (%esi),%ebx 3df: 84 db test %bl,%bl 3e1: 0f 84 b3 00 00 00 je 49a <printf+0xca> ap = (uint*)(void*)&fmt + 1; 3e7: 8d 45 10 lea 0x10(%ebp),%eax 3ea: 83 c6 01 add $0x1,%esi state = 0; 3ed: 31 ff xor %edi,%edi ap = (uint*)(void*)&fmt + 1; 3ef: 89 45 d4 mov %eax,-0x2c(%ebp) 3f2: eb 2f jmp 423 <printf+0x53> 3f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 3f8: 83 f8 25 cmp $0x25,%eax 3fb: 0f 84 a7 00 00 00 je 4a8 <printf+0xd8> write(fd, &c, 1); 401: 8d 45 e2 lea -0x1e(%ebp),%eax 404: 83 ec 04 sub $0x4,%esp 407: 88 5d e2 mov %bl,-0x1e(%ebp) 40a: 6a 01 push $0x1 40c: 50 push %eax 40d: ff 75 08 pushl 0x8(%ebp) 410: e8 8d fe ff ff call 2a2 <write> 415: 83 c4 10 add $0x10,%esp 418: 83 c6 01 add $0x1,%esi for(i = 0; fmt[i]; i++){ 41b: 0f b6 5e ff movzbl -0x1(%esi),%ebx 41f: 84 db test %bl,%bl 421: 74 77 je 49a <printf+0xca> if(state == 0){ 423: 85 ff test %edi,%edi c = fmt[i] & 0xff; 425: 0f be cb movsbl %bl,%ecx 428: 0f b6 c3 movzbl %bl,%eax if(state == 0){ 42b: 74 cb je 3f8 <printf+0x28> state = '%'; } else { putc(fd, c); } } else if(state == '%'){ 42d: 83 ff 25 cmp $0x25,%edi 430: 75 e6 jne 418 <printf+0x48> if(c == 'd'){ 432: 83 f8 64 cmp $0x64,%eax 435: 0f 84 05 01 00 00 je 540 <printf+0x170> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 43b: 81 e1 f7 00 00 00 and $0xf7,%ecx 441: 83 f9 70 cmp $0x70,%ecx 444: 74 72 je 4b8 <printf+0xe8> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 446: 83 f8 73 cmp $0x73,%eax 449: 0f 84 99 00 00 00 je 4e8 <printf+0x118> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 44f: 83 f8 63 cmp $0x63,%eax 452: 0f 84 08 01 00 00 je 560 <printf+0x190> putc(fd, *ap); ap++; } else if(c == '%'){ 458: 83 f8 25 cmp $0x25,%eax 45b: 0f 84 ef 00 00 00 je 550 <printf+0x180> write(fd, &c, 1); 461: 8d 45 e7 lea -0x19(%ebp),%eax 464: 83 ec 04 sub $0x4,%esp 467: c6 45 e7 25 movb $0x25,-0x19(%ebp) 46b: 6a 01 push $0x1 46d: 50 push %eax 46e: ff 75 08 pushl 0x8(%ebp) 471: e8 2c fe ff ff call 2a2 <write> 476: 83 c4 0c add $0xc,%esp 479: 8d 45 e6 lea -0x1a(%ebp),%eax 47c: 88 5d e6 mov %bl,-0x1a(%ebp) 47f: 6a 01 push $0x1 481: 50 push %eax 482: ff 75 08 pushl 0x8(%ebp) 485: 83 c6 01 add $0x1,%esi } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 488: 31 ff xor %edi,%edi write(fd, &c, 1); 48a: e8 13 fe ff ff call 2a2 <write> for(i = 0; fmt[i]; i++){ 48f: 0f b6 5e ff movzbl -0x1(%esi),%ebx write(fd, &c, 1); 493: 83 c4 10 add $0x10,%esp for(i = 0; fmt[i]; i++){ 496: 84 db test %bl,%bl 498: 75 89 jne 423 <printf+0x53> } } } 49a: 8d 65 f4 lea -0xc(%ebp),%esp 49d: 5b pop %ebx 49e: 5e pop %esi 49f: 5f pop %edi 4a0: 5d pop %ebp 4a1: c3 ret 4a2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi state = '%'; 4a8: bf 25 00 00 00 mov $0x25,%edi 4ad: e9 66 ff ff ff jmp 418 <printf+0x48> 4b2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi printint(fd, *ap, 16, 0); 4b8: 83 ec 0c sub $0xc,%esp 4bb: b9 10 00 00 00 mov $0x10,%ecx 4c0: 6a 00 push $0x0 4c2: 8b 7d d4 mov -0x2c(%ebp),%edi 4c5: 8b 45 08 mov 0x8(%ebp),%eax 4c8: 8b 17 mov (%edi),%edx 4ca: e8 61 fe ff ff call 330 <printint> ap++; 4cf: 89 f8 mov %edi,%eax 4d1: 83 c4 10 add $0x10,%esp state = 0; 4d4: 31 ff xor %edi,%edi ap++; 4d6: 83 c0 04 add $0x4,%eax 4d9: 89 45 d4 mov %eax,-0x2c(%ebp) 4dc: e9 37 ff ff ff jmp 418 <printf+0x48> 4e1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi s = (char*)*ap; 4e8: 8b 45 d4 mov -0x2c(%ebp),%eax 4eb: 8b 08 mov (%eax),%ecx ap++; 4ed: 83 c0 04 add $0x4,%eax 4f0: 89 45 d4 mov %eax,-0x2c(%ebp) if(s == 0) 4f3: 85 c9 test %ecx,%ecx 4f5: 0f 84 8e 00 00 00 je 589 <printf+0x1b9> while(*s != 0){ 4fb: 0f b6 01 movzbl (%ecx),%eax state = 0; 4fe: 31 ff xor %edi,%edi s = (char*)*ap; 500: 89 cb mov %ecx,%ebx while(*s != 0){ 502: 84 c0 test %al,%al 504: 0f 84 0e ff ff ff je 418 <printf+0x48> 50a: 89 75 d0 mov %esi,-0x30(%ebp) 50d: 89 de mov %ebx,%esi 50f: 8b 5d 08 mov 0x8(%ebp),%ebx 512: 8d 7d e3 lea -0x1d(%ebp),%edi 515: 8d 76 00 lea 0x0(%esi),%esi write(fd, &c, 1); 518: 83 ec 04 sub $0x4,%esp s++; 51b: 83 c6 01 add $0x1,%esi 51e: 88 45 e3 mov %al,-0x1d(%ebp) write(fd, &c, 1); 521: 6a 01 push $0x1 523: 57 push %edi 524: 53 push %ebx 525: e8 78 fd ff ff call 2a2 <write> while(*s != 0){ 52a: 0f b6 06 movzbl (%esi),%eax 52d: 83 c4 10 add $0x10,%esp 530: 84 c0 test %al,%al 532: 75 e4 jne 518 <printf+0x148> 534: 8b 75 d0 mov -0x30(%ebp),%esi state = 0; 537: 31 ff xor %edi,%edi 539: e9 da fe ff ff jmp 418 <printf+0x48> 53e: 66 90 xchg %ax,%ax printint(fd, *ap, 10, 1); 540: 83 ec 0c sub $0xc,%esp 543: b9 0a 00 00 00 mov $0xa,%ecx 548: 6a 01 push $0x1 54a: e9 73 ff ff ff jmp 4c2 <printf+0xf2> 54f: 90 nop write(fd, &c, 1); 550: 83 ec 04 sub $0x4,%esp 553: 88 5d e5 mov %bl,-0x1b(%ebp) 556: 8d 45 e5 lea -0x1b(%ebp),%eax 559: 6a 01 push $0x1 55b: e9 21 ff ff ff jmp 481 <printf+0xb1> putc(fd, *ap); 560: 8b 7d d4 mov -0x2c(%ebp),%edi write(fd, &c, 1); 563: 83 ec 04 sub $0x4,%esp putc(fd, *ap); 566: 8b 07 mov (%edi),%eax write(fd, &c, 1); 568: 6a 01 push $0x1 ap++; 56a: 83 c7 04 add $0x4,%edi putc(fd, *ap); 56d: 88 45 e4 mov %al,-0x1c(%ebp) write(fd, &c, 1); 570: 8d 45 e4 lea -0x1c(%ebp),%eax 573: 50 push %eax 574: ff 75 08 pushl 0x8(%ebp) 577: e8 26 fd ff ff call 2a2 <write> ap++; 57c: 89 7d d4 mov %edi,-0x2c(%ebp) 57f: 83 c4 10 add $0x10,%esp state = 0; 582: 31 ff xor %edi,%edi 584: e9 8f fe ff ff jmp 418 <printf+0x48> s = "(null)"; 589: bb 28 07 00 00 mov $0x728,%ebx while(*s != 0){ 58e: b8 28 00 00 00 mov $0x28,%eax 593: e9 72 ff ff ff jmp 50a <printf+0x13a> 598: 66 90 xchg %ax,%ax 59a: 66 90 xchg %ax,%ax 59c: 66 90 xchg %ax,%ax 59e: 66 90 xchg %ax,%ax 000005a0 <free>: static Header base; static Header *freep; void free(void *ap) { 5a0: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 5a1: a1 d4 09 00 00 mov 0x9d4,%eax { 5a6: 89 e5 mov %esp,%ebp 5a8: 57 push %edi 5a9: 56 push %esi 5aa: 53 push %ebx 5ab: 8b 5d 08 mov 0x8(%ebp),%ebx bp = (Header*)ap - 1; 5ae: 8d 4b f8 lea -0x8(%ebx),%ecx 5b1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 5b8: 39 c8 cmp %ecx,%eax 5ba: 8b 10 mov (%eax),%edx 5bc: 73 32 jae 5f0 <free+0x50> 5be: 39 d1 cmp %edx,%ecx 5c0: 72 04 jb 5c6 <free+0x26> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 5c2: 39 d0 cmp %edx,%eax 5c4: 72 32 jb 5f8 <free+0x58> break; if(bp + bp->s.size == p->s.ptr){ 5c6: 8b 73 fc mov -0x4(%ebx),%esi 5c9: 8d 3c f1 lea (%ecx,%esi,8),%edi 5cc: 39 fa cmp %edi,%edx 5ce: 74 30 je 600 <free+0x60> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 5d0: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 5d3: 8b 50 04 mov 0x4(%eax),%edx 5d6: 8d 34 d0 lea (%eax,%edx,8),%esi 5d9: 39 f1 cmp %esi,%ecx 5db: 74 3a je 617 <free+0x77> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 5dd: 89 08 mov %ecx,(%eax) freep = p; 5df: a3 d4 09 00 00 mov %eax,0x9d4 } 5e4: 5b pop %ebx 5e5: 5e pop %esi 5e6: 5f pop %edi 5e7: 5d pop %ebp 5e8: c3 ret 5e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 5f0: 39 d0 cmp %edx,%eax 5f2: 72 04 jb 5f8 <free+0x58> 5f4: 39 d1 cmp %edx,%ecx 5f6: 72 ce jb 5c6 <free+0x26> { 5f8: 89 d0 mov %edx,%eax 5fa: eb bc jmp 5b8 <free+0x18> 5fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi bp->s.size += p->s.ptr->s.size; 600: 03 72 04 add 0x4(%edx),%esi 603: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 606: 8b 10 mov (%eax),%edx 608: 8b 12 mov (%edx),%edx 60a: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 60d: 8b 50 04 mov 0x4(%eax),%edx 610: 8d 34 d0 lea (%eax,%edx,8),%esi 613: 39 f1 cmp %esi,%ecx 615: 75 c6 jne 5dd <free+0x3d> p->s.size += bp->s.size; 617: 03 53 fc add -0x4(%ebx),%edx freep = p; 61a: a3 d4 09 00 00 mov %eax,0x9d4 p->s.size += bp->s.size; 61f: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 622: 8b 53 f8 mov -0x8(%ebx),%edx 625: 89 10 mov %edx,(%eax) } 627: 5b pop %ebx 628: 5e pop %esi 629: 5f pop %edi 62a: 5d pop %ebp 62b: c3 ret 62c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00000630 <malloc>: return freep; } void* malloc(uint nbytes) { 630: 55 push %ebp 631: 89 e5 mov %esp,%ebp 633: 57 push %edi 634: 56 push %esi 635: 53 push %ebx 636: 83 ec 0c sub $0xc,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 639: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 63c: 8b 15 d4 09 00 00 mov 0x9d4,%edx nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 642: 8d 78 07 lea 0x7(%eax),%edi 645: c1 ef 03 shr $0x3,%edi 648: 83 c7 01 add $0x1,%edi if((prevp = freep) == 0){ 64b: 85 d2 test %edx,%edx 64d: 0f 84 9d 00 00 00 je 6f0 <malloc+0xc0> 653: 8b 02 mov (%edx),%eax 655: 8b 48 04 mov 0x4(%eax),%ecx base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ 658: 39 cf cmp %ecx,%edi 65a: 76 6c jbe 6c8 <malloc+0x98> 65c: 81 ff 00 10 00 00 cmp $0x1000,%edi 662: bb 00 10 00 00 mov $0x1000,%ebx 667: 0f 43 df cmovae %edi,%ebx p = sbrk(nu * sizeof(Header)); 66a: 8d 34 dd 00 00 00 00 lea 0x0(,%ebx,8),%esi 671: eb 0e jmp 681 <malloc+0x51> 673: 90 nop 674: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 678: 8b 02 mov (%edx),%eax if(p->s.size >= nunits){ 67a: 8b 48 04 mov 0x4(%eax),%ecx 67d: 39 f9 cmp %edi,%ecx 67f: 73 47 jae 6c8 <malloc+0x98> p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 681: 39 05 d4 09 00 00 cmp %eax,0x9d4 687: 89 c2 mov %eax,%edx 689: 75 ed jne 678 <malloc+0x48> p = sbrk(nu * sizeof(Header)); 68b: 83 ec 0c sub $0xc,%esp 68e: 56 push %esi 68f: e8 76 fc ff ff call 30a <sbrk> if(p == (char*)-1) 694: 83 c4 10 add $0x10,%esp 697: 83 f8 ff cmp $0xffffffff,%eax 69a: 74 1c je 6b8 <malloc+0x88> hp->s.size = nu; 69c: 89 58 04 mov %ebx,0x4(%eax) free((void*)(hp + 1)); 69f: 83 ec 0c sub $0xc,%esp 6a2: 83 c0 08 add $0x8,%eax 6a5: 50 push %eax 6a6: e8 f5 fe ff ff call 5a0 <free> return freep; 6ab: 8b 15 d4 09 00 00 mov 0x9d4,%edx if((p = morecore(nunits)) == 0) 6b1: 83 c4 10 add $0x10,%esp 6b4: 85 d2 test %edx,%edx 6b6: 75 c0 jne 678 <malloc+0x48> return 0; } } 6b8: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 6bb: 31 c0 xor %eax,%eax } 6bd: 5b pop %ebx 6be: 5e pop %esi 6bf: 5f pop %edi 6c0: 5d pop %ebp 6c1: c3 ret 6c2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi if(p->s.size == nunits) 6c8: 39 cf cmp %ecx,%edi 6ca: 74 54 je 720 <malloc+0xf0> p->s.size -= nunits; 6cc: 29 f9 sub %edi,%ecx 6ce: 89 48 04 mov %ecx,0x4(%eax) p += p->s.size; 6d1: 8d 04 c8 lea (%eax,%ecx,8),%eax p->s.size = nunits; 6d4: 89 78 04 mov %edi,0x4(%eax) freep = prevp; 6d7: 89 15 d4 09 00 00 mov %edx,0x9d4 } 6dd: 8d 65 f4 lea -0xc(%ebp),%esp return (void*)(p + 1); 6e0: 83 c0 08 add $0x8,%eax } 6e3: 5b pop %ebx 6e4: 5e pop %esi 6e5: 5f pop %edi 6e6: 5d pop %ebp 6e7: c3 ret 6e8: 90 nop 6e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi base.s.ptr = freep = prevp = &base; 6f0: c7 05 d4 09 00 00 d8 movl $0x9d8,0x9d4 6f7: 09 00 00 6fa: c7 05 d8 09 00 00 d8 movl $0x9d8,0x9d8 701: 09 00 00 base.s.size = 0; 704: b8 d8 09 00 00 mov $0x9d8,%eax 709: c7 05 dc 09 00 00 00 movl $0x0,0x9dc 710: 00 00 00 713: e9 44 ff ff ff jmp 65c <malloc+0x2c> 718: 90 nop 719: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi prevp->s.ptr = p->s.ptr; 720: 8b 08 mov (%eax),%ecx 722: 89 0a mov %ecx,(%edx) 724: eb b1 jmp 6d7 <malloc+0xa7>
33.695538
60
0.408838
f8b9a3e03323818efeb23ceb124b40ef9ab92333
826
asm
Assembly
oeis/142/A142814.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142814.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142814.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142814: Primes congruent to 16 mod 61. ; Submitted by Jon Maiga ; 199,443,809,1297,1663,1907,2029,2273,3371,4591,4957,5323,5689,6299,6421,8861,9227,9349,10691,11057,11423,11789,12277,13009,13619,14107,14717,15083,15937,16547,17401,18133,18743,19231,19597,19841,19963,20939,21061,22037,22159,22769,23623,25087,25453,25819,27283,27527,27893,29723,30089,30211,30577,33749,33871,34603,34847,36067,36433,36677,37409,37897,38629,38873,39239,39727,39971,40093,40459,41801,42533,42899,43753,43997,44119,44729,44851,45827,45949,46559,46681,47657,47779,48023,49121,49853 mov $1,38 mov $2,$0 add $2,2 pow $2,2 lpb $2 sub $2,1 mov $3,$1 mul $3,2 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,61 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 mul $0,2 sub $0,121
34.416667
496
0.732446
8d7af2190d9f7fe28963d1929d277be27b4b3cec
34
asm
Assembly
gadgets/exit0.asm
joshbooks/asmUtil
2c0b06b8ca3b1ee5401c4734e409e96a8316a4d0
[ "MIT" ]
1
2020-08-13T21:59:03.000Z
2020-08-13T21:59:03.000Z
gadgets/exit0.asm
joshbooks/asmUtil
2c0b06b8ca3b1ee5401c4734e409e96a8316a4d0
[ "MIT" ]
null
null
null
gadgets/exit0.asm
joshbooks/asmUtil
2c0b06b8ca3b1ee5401c4734e409e96a8316a4d0
[ "MIT" ]
null
null
null
mov al, 0x3c xor rdi, rdi syscall
8.5
12
0.735294
7c65813276d9431a4862c652c3007370d4081a40
3,589
asm
Assembly
eater-6502/movingDot.asm
willgames-afk/code_stuff
6db4226c49077bdcc9a8cf1de5ae854ed366445b
[ "MIT" ]
null
null
null
eater-6502/movingDot.asm
willgames-afk/code_stuff
6db4226c49077bdcc9a8cf1de5ae854ed366445b
[ "MIT" ]
null
null
null
eater-6502/movingDot.asm
willgames-afk/code_stuff
6db4226c49077bdcc9a8cf1de5ae854ed366445b
[ "MIT" ]
null
null
null
.org $8000; put it at the start of memory (eeprom chip mapped in at addr $8000) ;Labels E = %10000001 ;LCD display RW = %01000001 ;| RS = %00100001 ;/ CCHA = $08 ;LCD CGRAM address of the custom char used for graphics. CCH = $01 ; We're using char 1, $08 to $10 ;Variables and External Registers dot_x = $0000 ;1 byte dot_y = $0001 ;1 byte ;Max is $00FF; $0100 is stack PORTB = $6000 ;io chip PORTA = $6001 ;| DDRB = $6002 ;| DDRA = $6003 ;/ init: lda #%11111111 ;set portB pins to output sta DDRB lda #%11100001 ;set top 3 portA pins to output plus LED (so we can light it up) sta DDRA lda #%00000001 ;Ensure everything is reset and turn on indicator LED sta PORTA lda #%00000000 sta PORTB lda #$00 ;reset vars sta dot_x sta dot_y lda #%00111000 ;8-bit mode; 2 line; 5x8 font jsr lcd_instruction lda #%00001110 ;Display on; cursor on; blink off; jsr lcd_instruction lda #%00000110 ;Increment and shift cursor, don't shift screen jsr lcd_instruction lda #%00000001 ;clear jsr lcd_instruction lda #%10000100 ;Set DDRAM address to 4 jsr lcd_instruction lda CCH ; set char 5 on lcd to be our custom character that is the gamefield jsr lcd_data loop: lda #%00000010 ;csr Home jsr lcd_instruction lda #%00011110 ;Get button values into y register and PORTA clc ror tay ;IF button 4 is pressed, move right and #%00000001 ;mask off all but the first bit beq fdot_right inc dot_x jmp redraw fdot_right: tya ; slide bits along so next bit is "seen" through bitmask ror ; | tay ;/ ;If button 3 is pressed, move down and #%00000001 beq fdot_down dec dot_y jmp redraw fdot_down: tya ror tay ;If button 2 is pressed, move left and #%00000001 beq fdot_left dec dot_x jmp redraw fdot_left: tya ror tay ;If button 1 is pressed, move up and #%00000001 beq fdot_up inc dot_y jmp redraw fdot_up: jmp loop redraw: ;Set LCD CGRAM address to 8; this sets us up to define/redefine our custom char! lda #%01001000 jsr lcd_instruction ; IF row = dot_y, do row code ldy #$00 rowloop: cpy dot_y bne rowloop_continue ;Run this on correct row: lda #%00010000 ldx dot_x ;ldx last, so flag registers are correct colLoop: beq colLoop_done ror ;Move the bit right until it's in the correct spot dex jmp colLoop colLoop_done: jmp lcd_data ;Send the byte containing the player to the LCD rowloop_continue: iny cpy #8 ;Once we've gone through 8 times, we're done! bne rowloop ;lda #%10000000 ;Get back into DDRAM ;jsr lcd_instruction ;Delay to prevent insane dot speeds ldx #$FF ldy #$FF delay_loop: dex bne delay_loop ldx #$FF dey bne delay_loop jmp loop lcd_instruction: jsr lcd_wait sta PORTB lda #0 sta PORTA lda #E sta PORTA lda #0 sta PORTA rts lcd_data: jsr lcd_wait sta PORTB lda #RS sta PORTA lda #(RS | E) sta PORTA lda #RS sta PORTA rts lcd_wait: pha lda #%00000000 sta DDRB ; set portb to input lcd_busy: lda #RW sta PORTA lda #(RW | E) ;Send LCD instruction sta PORTA lda PORTB ;Get busy flag and #%10000000 bne lcd_busy ;If LCD is busy, loop lda #RW sta PORTA lda #%11111111 ;set portb back to output sta DDRB pla rts .org $fffc .word init .word $0000 ;pad it out to 32kB
18.405128
83
0.637225
fc9261686c2f425c826504b6dfcebc4eb921a4ae
4,688
asm
Assembly
rtos_portable.asm
jdoe95/mrtos-portable-c28
44f0974f358613c1ce458a4cead35a9730f70f66
[ "MIT" ]
2
2020-05-24T02:06:23.000Z
2020-10-08T06:38:32.000Z
rtos_portable.asm
jdoe95/mrtos-portable-c28
44f0974f358613c1ce458a4cead35a9730f70f66
[ "MIT" ]
2
2018-11-24T08:09:15.000Z
2018-11-24T20:09:32.000Z
rtos_portable.asm
jdoe95/mrtos-portable-c28
44f0974f358613c1ce458a4cead35a9730f70f66
[ "MIT" ]
1
2019-08-12T06:18:55.000Z
2019-08-12T06:18:55.000Z
;----------------------------------------------------------- ; Global symbols defined in this file ;----------------------------------------------------------- .def _osport_idle .def _osport_breakpoint .def _osport_enable_int .def _osport_disable_int .def _osport_contextsw_req .def _osport_start .def _ISR_RTOSINT .def _ISR_USER1 ;----------------------------------------------------------- ; Global symbols referenced in this file ;----------------------------------------------------------- .ref __stack .ref _g_sch .ref _CPUTIMER2 .sect ".text" ;----------------------------------------------------------- ; The do nothing function ; Puts the CPU into a low power sleep mode unitl interrupt ;----------------------------------------------------------- _osport_idle: $L1: IDLE B $L1, UNC ;----------------------------------------------------------- ; Halts the debugger ;----------------------------------------------------------- _osport_breakpoint: ESTOP1 LRETR ;----------------------------------------------------------- ; Disables interrupts ;----------------------------------------------------------- _osport_disable_int: ; cache flushed automatically DINT LRETR ;----------------------------------------------------------- ; Enables interrupts ;----------------------------------------------------------- _osport_enable_int: EINT LRETR ;----------------------------------------------------------- ; Request a context switch ; The context switcher is implemented as RTOSINT, trigger ; the interrupt. ;----------------------------------------------------------- _osport_contextsw_req: ; set the interrupt flag of RTOSINT OR IFR, #0x8000 LRETR ;----------------------------------------------------------- ; Start the operating system kernel ;----------------------------------------------------------- _osport_start: PUSH ST1 ; save EALLOW status PUSH DP EALLOW ; enable modification MOVW DP, #_CPUTIMER2+4 ; load data page of CPUTIMER2 TCR AND @_CPUTIMER2+4, #0xFFEF ; clear bit 4 of CPUTIMER2 TCR POP DP POP ST1 ; restore EALLOW status ; generate interrupt #20 (USER1) TRAP #20 LRETR ;----------------------------------------------------------- ; USER1 interrupt handler, prepare the CPU for multithreading ;----------------------------------------------------------- _ISR_USER1: ; interrupt disabled automatically here ; load the first thread's control block MOVW DP, #_g_sch ; load data page of g_sch MOVL XAR0, @_g_sch ; XAR0 <- &(g_sch.p_current->p_sp) MOVL ACC, *+XAR0[0] ; ACC <- g_sch.p_current->p_sp MOV SP, ACC ; SP <- ACC ; pop the registers not automatically ; popped by hardware on interrupt return ; FPU registers MOV32 R7H, *--SP MOV32 R6H, *--SP MOV32 R5H, *--SP MOV32 R4H, *--SP MOV32 R3H, *--SP MOV32 R2H, *--SP MOV32 R1H, *--SP MOV32 R0H, *--SP MOV32 STF, *--SP POP RB ; regular cpu registers POP XT POP XAR7 POP XAR6 POP XAR5 POP XAR4 POP XAR3 POP XAR2 POP AR1H:AR0H POP RPC IRET ; interrupts enabled automatically here ;----------------------------------------------------------- ; RTOSINT handler ; The context switcher ;----------------------------------------------------------- _ISR_RTOSINT: ; interrupts disabled automatically here ; context save, CPU registers PUSH RPC PUSH AR1H:AR0H PUSH XAR2 PUSH XAR3 PUSH XAR4 PUSH XAR5 PUSH XAR6 PUSH XAR7 PUSH XT ; context save, FPU registers PUSH RB MOV32 *SP++, STF MOV32 *SP++, R0H MOV32 *SP++, R1H MOV32 *SP++, R2H MOV32 *SP++, R3H MOV32 *SP++, R4H MOV32 *SP++, R5H MOV32 *SP++, R6H MOV32 *SP++, R7H ; store a snapshot of the stack pointer into ; current thread's TCB block MOVW DP, #_g_sch ; load data page of g_sch MOVL XAR0, @_g_sch ; XAR0 <- &(g_sch.p_current->p_sp) MOVZ AR1, SP ; XAR1 <- SP MOVL *+XAR0[0], XAR1 ; g_sch.p_current->p_sp = XAR1 ; load the next thread's control block MOVW DP, #_g_sch+2 ; load data page of g_sch+2 MOVL XAR0, @_g_sch+2 ; XAR0 <- &(g_sch.p_next->p_sp) MOVL ACC, *+XAR0[0] ; ACC <- g_sch.p_next->p_sp MOV SP, ACC ; SP <- ACC MOVW DP, #_g_sch ; load data page of g_sch MOVL @_g_sch, XAR0 ; g_sch->p_current = XAR0 ; pop the registers not automatically ; popped by hardware on interrupt return ; FPU registers MOV32 R7H, *--SP MOV32 R6H, *--SP MOV32 R5H, *--SP MOV32 R4H, *--SP MOV32 R3H, *--SP MOV32 R2H, *--SP MOV32 R1H, *--SP MOV32 R0H, *--SP MOV32 STF, *--SP POP RB ; regular cpu registers POP XT POP XAR7 POP XAR6 POP XAR5 POP XAR4 POP XAR3 POP XAR2 POP AR1H:AR0H POP RPC IRET ; interrupts enabled automatically here
24.041026
62
0.508746
74b793fad6332c2b6d654744be4f613d7019b0d4
403
asm
Assembly
oeis/039/A039647.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/039/A039647.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/039/A039647.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A039647: Related to A000032 (Lucas numbers): (n-1)!*L(n). ; Submitted by Jamie Morken(s4) ; 1,3,8,42,264,2160,20880,236880,3064320,44634240,722131200,12853209600,249559833600,5249378534400,118911189196800,2886037330176000,74715282690048000,2055161959538688000,59855791774851072000 mov $1,4 mov $3,2 lpb $0 mov $2,$3 add $3,$1 mov $1,$2 mul $1,$0 mul $3,$0 sub $0,1 lpe mov $0,$3 div $0,2
23.705882
190
0.719603
a40b46087bf073a91a8a3a6ff0bb0c6e19b79bf8
381
asm
Assembly
Source Codes Testing/sub2.asm
aravindvnair99/emu8086
1713febd30618f0d03f09c6a7f8eb6c4a68888b8
[ "MIT" ]
11
2018-12-31T08:56:38.000Z
2022-02-28T15:49:14.000Z
Source Codes Testing/sub2.asm
aravindvnair99/emu8086
1713febd30618f0d03f09c6a7f8eb6c4a68888b8
[ "MIT" ]
null
null
null
Source Codes Testing/sub2.asm
aravindvnair99/emu8086
1713febd30618f0d03f09c6a7f8eb6c4a68888b8
[ "MIT" ]
4
2020-11-10T01:29:54.000Z
2022-01-20T04:50:08.000Z
;Adding N single byte numbers stored as a array with num as starting memory location .MODEL small .STACK .DATA ; variable declaration section N db 4h num db 5h,3h,2h,4h ; code section .CODE .STARTUP mov cx,00h mov cl,N mov bx, offset num addition: sub al,[bx] inc bx loop addition .EXIT END ; end of the program
21.166667
86
0.619423
c413524a11093c70296fa987e7068e8c5c50ccd3
3,817
asm
Assembly
externals/mpir-3.0.0/mpn/x86_64w/core2/popcount.asm
JaminChan/eos_win
c03e57151cfe152d0d3120abb13226f4df74f37e
[ "MIT" ]
12
2021-09-29T14:50:06.000Z
2022-03-31T15:01:21.000Z
externals/mpir-3.0.0/mpn/x86_64w/core2/popcount.asm
JaminChan/eos_win
c03e57151cfe152d0d3120abb13226f4df74f37e
[ "MIT" ]
15
2021-12-24T22:53:49.000Z
2021-12-25T10:03:13.000Z
LibSource/mpir/mpn/x86_64w/core2/popcount.asm
ekzyis/CrypTool-2
1af234b4f74486fbfeb3b3c49228cc36533a8c89
[ "Apache-2.0" ]
10
2021-10-17T19:46:51.000Z
2022-03-18T02:57:57.000Z
; PROLOGUE(mpn_popcount) ; mpn_popcount ; Copyright 2009 Jason Moxham ; This file is part of the MPIR Library. ; The MPIR Library is free software; you can redistribute it and/or modify ; it under the terms of the GNU Lesser General Public License as published ; by the Free Software Foundation; either version 2.1 of the License, or (at ; your option) any later version. ; The MPIR Library is distributed in the hope that it will be useful, but ; WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public ; License for more details. ; You should have received a copy of the GNU Lesser General Public License ; along with the MPIR Library; see the file COPYING.LIB. If not, write ; to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, ; Boston, MA 02110-1301, USA. ; mp_limb_t mpn_popcount(mp_ptr,mp_size_t) ; rax rdi, rsi ; rax rcx, rdx %include "yasm_mac.inc" CPU Core2 BITS 64 global __gmpn_popcount %ifdef DLL export __gmpn_popcount %endif PROC_FRAME __gmpn_popcount alloc_stack 0x48 save_xmm128 xmm6, 0x00 save_xmm128 xmm7, 0x10 save_xmm128 xmm8, 0x20 save_xmm128 xmm9, 0x30 END_PROLOGUE mov rax, 0x5555555555555555 movq xmm4, rax movddup xmm4, xmm4 mov rax, 0x3333333333333333 movq xmm5, rax movddup xmm5, xmm5 mov rax, 0x0f0f0f0f0f0f0f0f movq xmm6, rax movddup xmm6, xmm6 pxor xmm7, xmm7 pxor xmm9, xmm9 pxor xmm8, xmm8 btr rcx, 3 sbb rax, rax sub rdx, rax movq xmm0, rax pandn xmm0, [rcx] bt rdx, 0 sbb r8, r8 sub rdx, r8 movq xmm2, r8 shufpd xmm2, xmm2, 1 pandn xmm2, [rcx+rdx*8-16] cmp rdx, 2 jne .0 add rdx, 2 movq xmm1, rax movddup xmm1, xmm1 pand xmm0, xmm1 pandn xmm1, xmm2 movdqa xmm2, xmm1 .0: movdqa xmm1, xmm0 movdqa xmm3, xmm2 sub rdx, 8 jc .2 xalign 16 .1: psrlw xmm0, 1 pand xmm0, xmm4 psubb xmm1, xmm0 psrlw xmm2, 1 movdqa xmm0, xmm1 paddq xmm9, xmm8 psrlw xmm1, 2 pand xmm0, xmm5 pand xmm1, xmm5 paddb xmm1, xmm0 pand xmm2, xmm4 sub rdx, 4 psubb xmm3, xmm2 movdqa xmm2, xmm3 psrlw xmm3, 2 pand xmm2, xmm5 pand xmm3, xmm5 paddb xmm3, xmm2 movdqa xmm0, [rcx+rdx*8+32-32+64] paddb xmm3, xmm1 movdqa xmm8, xmm3 psrlw xmm3, 4 pand xmm3, xmm6 movdqa xmm2, [rcx+rdx*8+32-48+64] pand xmm8, xmm6 movdqa xmm1, [rcx+rdx*8+32-32+64] paddb xmm8, xmm3 movdqa xmm3, [rcx+rdx*8+32-48+64] psadbw xmm8, xmm7 jnc .1 .2: psrlw xmm0, 1 pand xmm0, xmm4 psubb xmm1, xmm0 psrlw xmm2, 1 movdqa xmm0, xmm1 paddq xmm9, xmm8 psrlw xmm1, 2 pand xmm0, xmm5 pand xmm1, xmm5 paddb xmm1, xmm0 pand xmm2, xmm4 psubb xmm3, xmm2 movdqa xmm2, xmm3 psrlw xmm3, 2 pand xmm2, xmm5 pand xmm3, xmm5 paddb xmm3, xmm2 paddb xmm3, xmm1 movdqa xmm8, xmm3 psrlw xmm3, 4 pand xmm3, xmm6 pand xmm8, xmm6 paddb xmm8, xmm3 psadbw xmm8, xmm7 cmp rdx, -3 jl .4 .3: movdqa xmm2, [rcx+rdx*8-32+64] movdqa xmm3, xmm2 psrlw xmm2, 1 paddq xmm9, xmm8 pand xmm2, xmm4 psubb xmm3, xmm2 movdqa xmm2, xmm3 psrlw xmm3, 2 pand xmm2, xmm5 pand xmm3, xmm5 paddb xmm3, xmm2 movdqa xmm8, xmm3 psrlw xmm3, 4 pand xmm3, xmm6 pand xmm8, xmm6 paddb xmm8, xmm3 psadbw xmm8, xmm7 .4: paddq xmm9, xmm8 movq rax, xmm9 shufpd xmm9, xmm9, 1 movq r8, xmm9 add rax, r8 .5: movdqa xmm6, [rsp+0x00] movdqa xmm7, [rsp+0x10] movdqa xmm8, [rsp+0x20] movdqa xmm9, [rsp+0x30] add rsp, 0x48 ret ENDPROC_FRAME end
22.321637
77
0.642127
62922bd0370399e1b43027c3ffaab71efd4603c4
379
asm
Assembly
libsrc/_DEVELOPMENT/adt/w_vector/c/sccz80/w_vector_append_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/sccz80/w_vector_append_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/sccz80/w_vector_append_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; size_t w_vector_append(b_vector_t *v, void *item) SECTION code_clib SECTION code_adt_w_vector PUBLIC w_vector_append_callee EXTERN asm_w_vector_append w_vector_append_callee: pop hl pop bc ex (sp),hl jp asm_w_vector_append ; SDCC bridge for Classic IF __CLASSIC PUBLIC _w_vector_append_callee defc _w_vector_append_callee = w_vector_append_callee ENDIF
15.16
53
0.807388
1d6a9e7c83a6be775644dbbc1adbf0125a5715a5
6,765
asm
Assembly
PRACT0/SO1HPUB/asm/puertos.asm
so1h/SO1H
7163aa1907b7f7ab70ab022012036c4fa0482e17
[ "BSD-2-Clause" ]
null
null
null
PRACT0/SO1HPUB/asm/puertos.asm
so1h/SO1H
7163aa1907b7f7ab70ab022012036c4fa0482e17
[ "BSD-2-Clause" ]
null
null
null
PRACT0/SO1HPUB/asm/puertos.asm
so1h/SO1H
7163aa1907b7f7ab70ab022012036c4fa0482e17
[ "BSD-2-Clause" ]
null
null
null
bits 16 ; glb intptr_t : int ; glb uintptr_t : unsigned ; glb intmax_t : int ; glb uintmax_t : unsigned ; glb int8_t : signed char ; glb int_least8_t : signed char ; glb int_fast8_t : signed char ; glb uint8_t : unsigned char ; glb uint_least8_t : unsigned char ; glb uint_fast8_t : unsigned char ; glb int16_t : short ; glb int_least16_t : short ; glb int_fast16_t : short ; glb uint16_t : unsigned short ; glb uint_least16_t : unsigned short ; glb uint_fast16_t : unsigned short ; glb int32_t : int ; glb int_least32_t : int ; glb int_fast32_t : int ; glb uint32_t : unsigned ; glb uint_least32_t : unsigned ; glb uint_fast32_t : unsigned ; glb imaxdiv_t : struct <something> ; glb bool_t : int ; glb pointer_t : * unsigned char ; glb funcion_t : * ( ; prm <something> : * void ; ) * void ; glb manejador_t : * (void) void ; glb rti_t : * (void) void ; glb isr_t : * (void) void ; glb handler_t : * (void) void ; glb retardarThread_t : * (void) int ; glb ptrTVI_t : * * (void) void ; glb modoSO1_t : int ; glb lh_t : struct <something> ; glb address_t : struct <something> ; glb uPtrAdr_t : union <something> ; glb pid_t : int ; glb tid_t : int ; glb uid_t : int ; glb gid_t : int ; glb pindx_t : int ; glb tindx_t : int ; glb df_t : int ; glb dfs_t : int ; glb rindx_t : int ; glb inportb : ( ; prm port : unsigned short ; ) unsigned char ; glb inport : ( ; prm port : unsigned short ; ) unsigned short ; glb outport : ( ; prm port : unsigned short ; prm val : unsigned short ; ) void ; glb outportb : ( ; prm port : unsigned short ; prm val : unsigned char ; ) void ; glb inportb_r : ( ; prm port : unsigned char ; ) unsigned char ; glb outportb_r : ( ; prm port : unsigned char ; prm val : unsigned char ; ) void ; glb contadorTimer0 : (void) unsigned short ; glb inportb : ( ; prm port : unsigned short ; ) unsigned char section .text global _inportb _inportb: push ebp movzx ebp, sp ;sub sp, 0 ; loc port : (@8): unsigned short mov dx,[bp+8] in al,dx xor ah,ah L1: db 0x66 leave retf L3: section .fxnsz noalloc dd L3 - _inportb ; glb inport : ( ; prm port : unsigned short ; ) unsigned short section .text global _inport _inport: push ebp movzx ebp, sp ;sub sp, 0 ; loc port : (@8): unsigned short mov dx,[bp+8] in ax,dx L4: db 0x66 leave retf L6: section .fxnsz dd L6 - _inport ; glb outportb : ( ; prm port : unsigned short ; prm val : unsigned char ; ) void section .text global _outportb _outportb: push ebp movzx ebp, sp ;sub sp, 0 ; loc port : (@8): unsigned short ; loc val : (@12): unsigned char mov dx,[bp+ 8] mov al,[bp+12] out dx,al L7: db 0x66 leave retf L9: section .fxnsz dd L9 - _outportb ; glb outport : ( ; prm port : unsigned short ; prm val : unsigned short ; ) void section .text global _outport _outport: push ebp movzx ebp, sp ;sub sp, 0 ; loc port : (@8): unsigned short ; loc val : (@12): unsigned short mov dx,[bp+ 8] mov ax,[bp+12] out dx,ax L10: db 0x66 leave retf L12: section .fxnsz dd L12 - _outport ; glb inportb_r : ( ; prm port : unsigned char ; ) unsigned char section .text global _inportb_r _inportb_r: push ebp movzx ebp, sp sub sp, 4 ; loc port : (@8): unsigned char ; loc __ret : (@-4): int ; RPN'ized expression: "__ret ( port inportb ) = " ; Expanded expression: "(@-4) (@8) *(1) inportb ()4 =(4) " ; Fused expression: "( *(1) (@8) , inportb )4 =(204) *(@-4) ax " mov al, [bp+8] movzx eax, al push eax db 0x9A section .relot dd L15 section .text L15: dd _inportb sub sp, -4 mov [bp-4], eax jmp $+2 jmp $+2 ; return ; RPN'ized expression: "__ret " ; Expanded expression: "(@-4) *(4) " ; Fused expression: "*(4) (@-4) unsigned char " mov eax, [bp-4] and eax, 255 L13: db 0x66 leave retf L16: section .fxnsz dd L16 - _inportb_r ; glb outportb_r : ( ; prm port : unsigned char ; prm val : unsigned char ; ) void section .text global _outportb_r _outportb_r: push ebp movzx ebp, sp ;sub sp, 0 ; loc port : (@8): unsigned char ; loc val : (@12): unsigned char ; RPN'ized expression: "( val , port outportb ) " ; Expanded expression: " (@12) *(1) (@8) *(1) outportb ()8 " ; Fused expression: "( *(1) (@12) , *(1) (@8) , outportb )8 " mov al, [bp+12] movzx eax, al push eax mov al, [bp+8] movzx eax, al push eax db 0x9A section .relot dd L19 section .text L19: dd _outportb sub sp, -8 jmp $+2 jmp $+2 L17: db 0x66 leave retf L20: section .fxnsz dd L20 - _outportb_r ; glb contadorTimer0 : (void) unsigned short section .text global _contadorTimer0 _contadorTimer0: push ebp movzx ebp, sp ;sub sp, 0 mov al,11010010b out 01000011b,al jmp $+2 in al,01000000b mov ah,al jmp $+2 in al,01000000b xchg ah,al L21: db 0x66 leave retf L23: section .fxnsz dd L23 - _contadorTimer0 ; Syntax/declaration table/stack: ; Bytes used: 1490/40960 ; Macro table: ; Macro __SMALLER_C__ = `0x0100` ; Macro __SMALLER_C_32__ = `` ; Macro __HUGE__ = `` ; Macro __SMALLER_C_SCHAR__ = `` ; Bytes used: 74/5120 ; Identifier table: ; Ident __floatsisf ; Ident __floatunsisf ; Ident __fixsfsi ; Ident __fixunssfsi ; Ident __addsf3 ; Ident __subsf3 ; Ident __negsf2 ; Ident __mulsf3 ; Ident __divsf3 ; Ident __lesf2 ; Ident __gesf2 ; Ident intptr_t ; Ident uintptr_t ; Ident intmax_t ; Ident uintmax_t ; Ident int8_t ; Ident int_least8_t ; Ident int_fast8_t ; Ident uint8_t ; Ident uint_least8_t ; Ident uint_fast8_t ; Ident int16_t ; Ident int_least16_t ; Ident int_fast16_t ; Ident uint16_t ; Ident uint_least16_t ; Ident uint_fast16_t ; Ident int32_t ; Ident int_least32_t ; Ident int_fast32_t ; Ident uint32_t ; Ident uint_least32_t ; Ident uint_fast32_t ; Ident <something> ; Ident quot ; Ident rem ; Ident imaxdiv_t ; Ident FALSE ; Ident TRUE ; Ident bool_t ; Ident pointer_t ; Ident funcion_t ; Ident manejador_t ; Ident rti_t ; Ident isr_t ; Ident handler_t ; Ident retardarThread_t ; Ident ptrTVI_t ; Ident modoSO1_Bin ; Ident modoSO1_Exe ; Ident modoSO1_Bs ; Ident modoSO1_t ; Ident lo ; Ident hi ; Ident lh_t ; Ident offset ; Ident segment ; Ident address_t ; Ident ptr ; Ident adr ; Ident uPtrAdr_t ; Ident pid_t ; Ident tid_t ; Ident uid_t ; Ident gid_t ; Ident pindx_t ; Ident tindx_t ; Ident df_t ; Ident dfs_t ; Ident rindx_t ; Ident inportb ; Ident port ; Ident inport ; Ident outport ; Ident val ; Ident outportb ; Ident inportb_r ; Ident outportb_r ; Ident contadorTimer0 ; Bytes used: 804/16384 ; Next label number: 24 ; Compilation succeeded.
18.136729
67
0.647598
5e6ff7d3dc79441959dd1ae835139940634d80fc
16,378
asm
Assembly
1-source-files/main-sources/elite-loader1.asm
markmoxon/disc-elite-beebasm
31e05c330a7cdc60d8aef7664f9425381940dcae
[ "Unlicense" ]
14
2021-01-28T19:27:28.000Z
2022-01-07T16:36:02.000Z
1-source-files/main-sources/elite-loader1.asm
markmoxon/disc-elite-beebasm
31e05c330a7cdc60d8aef7664f9425381940dcae
[ "Unlicense" ]
null
null
null
1-source-files/main-sources/elite-loader1.asm
markmoxon/disc-elite-beebasm
31e05c330a7cdc60d8aef7664f9425381940dcae
[ "Unlicense" ]
null
null
null
\ ****************************************************************************** \ \ DISC ELITE LOADER (PART 1) SOURCE \ \ Elite was written by Ian Bell and David Braben and is copyright Acornsoft 1984 \ \ The code on this site has been disassembled from the version released on Ian \ Bell's personal website at http://www.elitehomepage.org/ \ \ The commentary is copyright Mark Moxon, and any misunderstandings or mistakes \ in the documentation are entirely my fault \ \ The terminology and notations used in this commentary are explained at \ https://www.bbcelite.com/about_site/terminology_used_in_this_commentary.html \ \ The deep dive articles referred to in this commentary can be found at \ https://www.bbcelite.com/deep_dives \ \ ------------------------------------------------------------------------------ \ \ This source file produces the following binary file: \ \ * ELITE2.bin \ \ ****************************************************************************** INCLUDE "1-source-files/main-sources/elite-header.h.asm" _IB_DISC = (_RELEASE = 1) _STH_DISC = (_RELEASE = 2) GUARD &7C00 \ Guard against assembling over screen memory \ ****************************************************************************** \ \ Configuration variables \ \ ****************************************************************************** BYTEV = &020A \ The BYTEV vector that we check as part of the copy \ protection OSWRCH = &FFEE \ The address for the OSWRCH routine OSBYTE = &FFF4 \ The address for the OSBYTE routine OSWORD = &FFF1 \ The address for the OSWORD routine OSCLI = &FFF7 \ The address for the OSCLI routine \ ****************************************************************************** \ \ Name: ZP \ Type: Workspace \ Address: &0001 to &0002 \ Category: Workspaces \ Summary: Important variables used by the loader \ \ ****************************************************************************** ORG &0001 .ZP SKIP 2 \ Stores addresses used for moving content around \ ****************************************************************************** \ \ ELITE LOADER \ \ ****************************************************************************** CODE% = &2F00 LOAD% = &2F00 ORG CODE% \ ****************************************************************************** \ \ Name: BEGIN \ Type: Subroutine \ Category: Copy protection \ Summary: Decrypt the loader code using a rolling EOR that uses the \ decryption routine itself to seed the decryption \ \ ****************************************************************************** .BEGIN \ Note that the following copy protection code is \ skipped in the unprotected version built here, as the \ binaries are not encrypted and therefore do not need \ to be decyrpted \ \ Instead, the execution address for the ELITE2 binary \ points to ENTRY rather than BEGIN LDX p1c+1 \ Set X to the comparison value from the CMP instruction \ below, which has the value p1d - BEGIN, which we use \ as the offset of the first byte to decrypt (so we \ decrypt from p1d onwards) .p1 LDA BEGIN \ Fetch the first byte from BEGIN to act as the initial \ seed for the rolling EOR process (this address gets \ modified by the following to work through the whole \ decryption routine) .p1a EOR BEGIN,X \ Set A = A EOR the X-th byte of the loader STA BEGIN,X \ Store the decrypted byte in the X-th byte the loader INX \ Increment the pointer BNE p1a \ Loop back until we have decrypted to the end of the \ page .p1b INC p1+1 \ Increment the low byte of the argument to the LDA \ instruction at p1 above, so this would change it from \ LDA BEGIN to LDA BEGIN+1, for example (so the next \ time we do the EOR, we choose the next byte of the \ decryption routine as the initial seed) BEQ p1d \ If it equals zero (so the LDA BEGIN has worked itself \ to LDA BEGIN+255 and round again to LDA BEGIN), jump \ down to p1d as we have finally finished decrypting \ the code LDA p1+1 \ Fetch the newly incremented low byte of the argument \ to the LDA instruction at p1 above .p1c CMP #(p1d - BEGIN) \ If we have used all the bytes from the decryption BEQ p1b \ routine as seeds, skip one byte and then continue on \ to keep using seeds until we have done the whole page. \ This means we decrypt using the following seeds: \ \ * The contents of BEGIN \ * The contents of BEGIN+1 \ * The contents of BEGIN+2 \ ... \ * The contents of p1d-1 \ * The contents of p1d+1 \ ... \ * The contents of BEGIN+254 \ * The contents of BEGIN+255 \ \ and then we are done JMP BEGIN \ Otherwise look up to BEGIN to do another decryption \ run, but using the next byte of the decryption routine \ as the seed .p1d \ From this point on, the code is encrypted by \ elite-checksum.py BIT BYTEV+1 \ If the high byte of BYTEV does not have bit 7 set (so BPL BEGIN \ BYTEV is less than &8000, i.e. it's pointing to user \ RAM rather than the ROm routine), then jump up to \ BEGIN to hang machine, as it has presumably been \ changed by someone trying to crack the game \ Otherwise fall through into the now-decrypted loader \ code to get on with loading the game \ ****************************************************************************** \ \ Name: Elite loader \ Type: Subroutine \ Category: Loader \ Summary: Reset vectors, change to mode 7, and load and run the ELITE3 \ loader \ \ ****************************************************************************** .ENTRY LDA #0 \ Call OSBYTE with A = 0 and X = 1 to fetch bit 0 of the LDX #1 \ operating system version into X JSR OSBYTE LDY #0 \ Set Y to 0 so we can use it as an index for setting \ all the vectors to their default states SEI \ Disable all interrupts CPX #1 \ If X = 1 then this is OS 1.20, so jump to os120 BEQ os120 .os100 LDA &D941,Y \ Copy the Y-th byte from the default vector table at STA &0200 \ &D941 into location &0200 (this is surely supposed to \ be the Y-th byte in &0200, i.e. STA &0200,Y, but it \ isn't, which feels like a bug) INY \ Increment the loop counter CPY #54 \ Loop back to copy the next byte until we have copied BNE os100 \ 54 bytes (27 vectors) BEQ disk \ Jump down to disk to skip the OS 1.20 routine .os120 LDA &FFB7 \ Set ZP(1 0) to the location stored in &FFB7-&FFB8, STA ZP \ which contains the address of the default vector table LDA &FFB8 STA ZP+1 .ABCDEFG LDA (ZP),Y \ Copy the Y-th byte from the default vector table into STA &0200,Y \ the vector table in &0200 INY \ Increment the loop counter CPY &FFB6 \ Compare the loop counter with the contents of &FFB6, \ which contains the length of the default vector table BNE ABCDEFG \ Loop back for the next vector until we have done them \ all .disk CLI \ Re-enable interrupts LDX #LO(MESS1) \ Set (Y X) to point to MESS1 ("DISK") LDY #HI(MESS1) JSR OSCLI \ Call OSCLI to run the OS command in MESS1, which \ switches to the disc filing system (DFS) LDA #201 \ Call OSBYTE with A = 201, X = 1 and Y = 0 to disable LDX #1 \ the keyboard LDY #0 JSR OSBYTE LDA #200 \ Call OSBYTE with A = 200, X = 0 and Y = 0 to enable LDX #0 \ the ESCAPE key and disable memory clearing if the LDY #0 \ BREAK key is pressed JSR OSBYTE LDA #119 \ Call OSBYTE with A = 119 to close any *SPOOL or *EXEC JSR OSBYTE \ files LDY #0 \ Set Y to 0 so we can use it as an index for the \ following, which has been disabled (so perhaps this \ was part of the copy protection) .loop1 LDA BLOCK,Y \ Fetch the Y-th byte from BLOCK NOP \ This instruction has been disabled, so this loop does \ nothing INY \ Increment the loop counter CPY #9 \ Loop back to do the next byte until we have done 9 of BNE loop1 \ them LDY #0 \ We are now going to send the 12 VDU bytes in the table \ at B% to OSWRCH to switch to mode 7 .loop2 LDA B%,Y \ Pass the Y-th byte of the B% table to OSWRCH JSR OSWRCH INY \ Increment the loop counter CPY #12 \ Loop back for the next byte until we have done all 10 BNE loop2 \ of them .load3 LDX #LO(MESS2) \ Set (Y X) to point to MESS2 ("LOAD Elite3") LDY #HI(MESS2) JSR OSCLI \ Call OSCLI to run the OS command in MESS2, which loads \ the ELITE3 binary to its load address of &5700 JMP &5700 \ Jump to the start of the ELITE3 loader code at &5700 NOP \ These bytes appear to be unused NOP NOP NOP \ ****************************************************************************** \ \ Name: MESS2 \ Type: Variable \ Category: Loader \ Summary: The OS command string for loading the the ELITE3 binary \ \ ****************************************************************************** .MESS2 EQUS "LOAD Elite3" EQUB 13 \ ****************************************************************************** \ \ Name: LOAD \ Type: Subroutine \ Category: Copy protection \ Summary: Load a hidden file from disc (not used in this version as disc \ protection is disabled) \ \ ****************************************************************************** .LOAD JSR p2 \ Call p2 below JMP load3 \ Jump to load3 to load and run the next part of the \ loader LDA #2 \ Set PARAMS1+8 = 2, which is the track number in the STA PARAMS1+8 \ OSWORD parameter block LDA #127 \ Call OSWORD with A = 127 and (Y X) = PARAMS1 to seek LDX #LO(PARAMS1) \ disc track 2 LDY #HI(PARAMS1) JMP OSWORD .p2 STA PARAMS2+7 \ Set PARAMS2+7 = A, which is the track number in the \ OSWORD parameter block LDA #127 \ Call OSWORD with A = 127 and (Y X) = PARAMS2 to seek LDX #LO(PARAMS2) \ the disc track given in A LDY #HI(PARAMS2) JMP OSWORD \ ****************************************************************************** \ \ Name: B% \ Type: Variable \ Category: Screen mode \ Summary: VDU commands for switching to a mode 7 screen \ \ ****************************************************************************** .B% EQUB 22, 7 \ Switch to screen mode 7 EQUB 23, 0, 10, 32 \ Set 6845 register R10 = 32 EQUB 0, 0, 0 \ EQUB 0, 0, 0 \ This is the "cursor start" register, which sets the \ cursor start line at 0, so it turns the cursor off SKIP 2 \ These bytes appear to be unused \ ****************************************************************************** \ \ Name: PARAMS3 \ Type: Variable \ Category: Copy protection \ Summary: OSWORD parameter block for loading the ELITE3 loader file (not \ used in this version as disc protection is disabled) \ \ ****************************************************************************** .PARAMS3 EQUB &FF \ 0 = Drive = &FF (previously used drive and density) EQUD &FFFF5700 \ 1 = Data address (&FFFF5700) EQUB 3 \ 5 = Number of parameters = 3 EQUB &53 \ 6 = Command = &53 (read data) EQUB 38 \ 7 = Track = 38 EQUB 246 \ 8 = Sector = 246 EQUB %00101001 \ 9 = Load 9 sectors of 256 bytes EQUB 0 \ 10 = The result of the OSWORD call is returned here \ ****************************************************************************** \ \ Name: PARAMS2 \ Type: Variable \ Category: Copy protection \ Summary: OSWORD parameter block for accessing a specific track on the disc \ (not used in this version as disc protection is disabled) \ \ ****************************************************************************** .PARAMS2 EQUB &FF \ 0 = Drive = &FF (previously used drive and density) EQUD &FFFFFFFF \ 1 = Data address (not required) EQUB 1 \ 5 = Number of parameters = 1 EQUB &69 \ 6 = Command = &69 (seek track) EQUB 2 \ 7 = Parameter = 2 (track number) EQUB 0 \ 8 = The result of the OSWORD call is returned here \ ****************************************************************************** \ \ Name: PARAMS1 \ Type: Variable \ Category: Copy protection \ Summary: OSWORD parameter block for accessing a specific track on the disc \ (not used in this version as disc protection is disabled) \ \ ****************************************************************************** .PARAMS1 EQUB &FF \ 0 = Drive = &FF (previously used drive and density) EQUD &FFFFFFFF \ 1 = Data address (not required) EQUB 2 \ 5 = Number of parameters = 2 EQUB &7A \ 6 = Command = &7A (write special register) EQUB &12 \ 7 = Parameter = &12 (register = track number) EQUB 38 \ 8 = Parameter = &26 (track number) EQUB &00 \ 9 = The result of the OSWORD call is returned here \ ****************************************************************************** \ \ Name: MESS1 \ Type: Variable \ Category: Loader \ Summary: The OS command string for switching to the disc filing system \ \ ****************************************************************************** .MESS1 EQUS "DISK" EQUB 13 \ ****************************************************************************** \ \ Name: BLOCK \ Type: Variable \ Category: Copy protection \ Summary: These bytes are copied and decrypted by the loader routine (not \ used in this version as disc protection is disabled) \ \ ****************************************************************************** .BLOCK EQUB &19, &7A, &02, &01, &EC, &19, &00, &56 EQUB &FF, &00, &00 \ ****************************************************************************** \ \ Save ELITE2.bin \ \ ****************************************************************************** PRINT "S.ELITE2 ", ~CODE%, " ", ~P%, " ", ~LOAD%, " ", ~LOAD% SAVE "3-assembled-output/ELITE2.bin", CODE%, P%, LOAD%
35.527115
80
0.467334
9e1a33c9bda2beabaa02f39c9b254bf3131b122a
1,861
asm
Assembly
programs/oeis/005/A005183.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/005/A005183.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/005/A005183.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A005183: a(n) = n*2^(n-1) + 1. ; 1,2,5,13,33,81,193,449,1025,2305,5121,11265,24577,53249,114689,245761,524289,1114113,2359297,4980737,10485761,22020097,46137345,96468993,201326593,419430401,872415233,1811939329,3758096385,7784628225,16106127361,33285996545,68719476737,141733920769,292057776129,601295421441,1236950581249,2542620639233,5222680231937,10720238370817,21990232555521,45079976738817,92358976733185,189115999977473,387028092977153,791648371998721,1618481116086273,3307330976350209,6755399441055745,13792273858822145,28147497671065601,57420895248973825,117093590311632897,238690780250636289,486388759756013569,990791918021509121,2017612633061982209,4107282860161892353,8358680908399640577,17005592192950992897,34587645138205409281,70328211781017665537,142962266571249025025,290536219160925437953,590295810358705651713,1199038364791120855041,2434970217729660813313,4943727411754159833089,10035028776097996079105,20365205457375344984065,41320706725109395619841,83822005070936202543105,170005193383307227693057,344732753249484100599809,698910239464707491627009,1416709944860893564108801,2871198821584744289927169,5817955506895402903273473,11787026741242634453385217,23876284937388926200446977,48357032784585166988247041,97922991388784963151200257,198263834416799184651812865,401363372112056886002450433,812398150781030805402550273,1644139114675895677600399361,3326963855579459488791396353,6731298963614255244763987969,13617340432139183023890366465,27544165874099711116505513985,55707301767842112370460590081,112652543574969605015820304385,227780967228509970581438857217,460513694614161462262474211329,930930909542605966724141416449,1881668859713778017846668820481,3802951800684688204490109616129,7685131763883640746573763182593,15528719852795810168334614265857,31374352355648677687043404333057 mov $1,2 pow $1,$0 mul $1,$0 div $1,2 add $1,1 mov $0,$1
186.1
1,769
0.919936
d926d6665e4fdc04231aac1c991e47d249eb16c4
1,435
asm
Assembly
libsrc/_DEVELOPMENT/stdio/z80/asm_asprintf.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/stdio/z80/asm_asprintf.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/stdio/z80/asm_asprintf.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; =============================================================== ; Jan 2014 ; =============================================================== ; ; int asprintf (char **ptr, const char *format, ...) ; ; Similar to snprintf but attempts to dynamically allocate ; a buffer using malloc to store the output string. ; ; =============================================================== SECTION code_stdio PUBLIC asm_asprintf EXTERN asm_vasprintf, __stdio_varg_2, __stdio_nextarg_de asm_asprintf: ; MUST BE CALLED, NO JUMPS ; ; enter : none ; ; exit : de = char *format (next unexamined char) ; ; success ; ; *ptr = char *s (address of allocated buffer) ; hl = strlen(s) ; hl' = char *s (address of terminating '\0' in allocated buffer) ; carry reset ; ; fail ; ; *ptr = 0 (if ptr != 0) ; hl = -1 ; carry set, errno as below ; ; enomem = insufficient memory for buffer ; erange = width or precision out of range ; einval = unknown printf conversion ; einval = ptr is NULL ; ; uses : all call __stdio_varg_2 ; de = char **ptr push hl exx pop hl call __stdio_nextarg_de ; de = char *format ld c,l ld b,h ; bc = void *arg jp asm_vasprintf
24.322034
80
0.454355
7bf66fa1e409423559e351a8ce7d01ebc60e19cc
144
asm
Assembly
other.7z/SFC.7z/SFC/ソースデータ/MarioKart/Missile.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/MarioKart/Missile.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/MarioKart/Missile.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: Missile.asm Type: file Size: 4086 Last-Modified: '1992-07-01T15:00:00Z' SHA-1: D86D4BC3036302A3E9BBAF6CB246DDCC08222DC6 Description: null
20.571429
47
0.8125
2592b90b3b703cb83b2f19ede57d242ee0736e9e
2,297
asm
Assembly
programs/oeis/193/A193250.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/193/A193250.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/193/A193250.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A193250: Small rhombicuboctahedron with faces of centered polygons. ; 1,51,245,679,1449,2651,4381,6735,9809,13699,18501,24311,31225,39339,48749,59551,71841,85715,101269,118599,137801,158971,182205,207599,235249,265251,297701,332695,370329,410699,453901,500031,549185,601459,656949,715751,777961,843675,912989,985999,1062801,1143491,1228165,1316919,1409849,1507051,1608621,1714655,1825249,1940499,2060501,2185351,2315145,2449979,2589949,2735151,2885681,3041635,3203109,3370199,3543001,3721611,3906125,4096639,4293249,4496051,4705141,4920615,5142569,5371099,5606301,5848271,6097105,6352899,6615749,6885751,7163001,7447595,7739629,8039199,8346401,8661331,8984085,9314759,9653449,10000251,10355261,10718575,11090289,11470499,11859301,12256791,12663065,13078219,13502349,13935551,14377921,14829555,15290549,15760999,16241001,16730651,17230045,17739279,18258449,18787651,19326981,19876535,20436409,21006699,21587501,22178911,22781025,23393939,24017749,24652551,25298441,25955515,26623869,27303599,27994801,28697571,29412005,30138199,30876249,31626251,32388301,33162495,33948929,34747699,35558901,36382631,37218985,38068059,38929949,39804751,40692561,41593475,42507589,43434999,44375801,45330091,46297965,47279519,48274849,49284051,50307221,51344455,52395849,53461499,54541501,55635951,56744945,57868579,59006949,60160151,61328281,62511435,63709709,64923199,66152001,67396211,68655925,69931239,71222249,72529051,73851741,75190415,76545169,77916099,79303301,80706871,82126905,83563499,85016749,86486751,87973601,89477395,90998229,92536199,94091401,95663931,97253885,98861359,100486449,102129251,103789861,105468375,107164889,108879499,110612301,112363391,114132865,115920819,117727349,119552551,121396521,123259355,125141149,127041999,128962001,130901251,132859845,134837879,136835449,138852651,140889581,142946335,145023009,147119699,149236501,151373511,153530825,155708539,157906749,160125551,162365041,164625315,166906469,169208599,171531801,173876171,176241805,178628799,181037249,183467251,185918901,188392295,190887529,193404699,195943901,198505231,201088785,203694659,206322949,208973751,211647161,214343275,217062189,219803999,222568801,225356691,228167765,231002119,233859849,236741051,239645821,242574255,245526449,248502499 mul $0,2 add $0,1 mov $2,$0 pow $0,3 sub $2,$0 sub $0,$2 mov $1,$0
208.818182
2,158
0.870701
6c81057442931f4ea03646f945d4500111c5eb45
571
asm
Assembly
oeis/010/A010100.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/010/A010100.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/010/A010100.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A010100: a(n) = a(n-1)*a(n-2) with a(0)=1, a(1)=10. ; 1,10,10,100,1000,100000,100000000,10000000000000,1000000000000000000000,10000000000000000000000000000000000,10000000000000000000000000000000000000000000000000000000,100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1. mov $1,10 pow $1,$0 mov $0,$1
71.375
403
0.830123
4a791a51c4344776abc002da905851c0b6cd9e40
330
asm
Assembly
oeis/040/A040252.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/040/A040252.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/040/A040252.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A040252: Continued fraction for sqrt(269). ; 16,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2 mul $0,4 mov $2,$0 cmp $2,0 add $0,$2 sub $0,3 gcd $0,6 add $0,6 bin $0,2 sub $0,20 mul $0,2
23.571429
190
0.584848
6811e21169e64197eafe9f6ee92befc6e22c2fb0
5,347
asm
Assembly
c2000/C2000Ware_1_00_06_00/libraries/dsp/FixedPoint/c28/source/CFFT32_brev.asm
ramok/Themis_ForHPSDR
d0f323a843ac0a488ef816ccb7c828032855a40a
[ "Unlicense" ]
null
null
null
c2000/C2000Ware_1_00_06_00/libraries/dsp/FixedPoint/c28/source/CFFT32_brev.asm
ramok/Themis_ForHPSDR
d0f323a843ac0a488ef816ccb7c828032855a40a
[ "Unlicense" ]
null
null
null
c2000/C2000Ware_1_00_06_00/libraries/dsp/FixedPoint/c28/source/CFFT32_brev.asm
ramok/Themis_ForHPSDR
d0f323a843ac0a488ef816ccb7c828032855a40a
[ "Unlicense" ]
1
2021-07-21T08:10:37.000Z
2021-07-21T08:10:37.000Z
;;############################################################################# ;;! \file source/CFFT32_brev.asm ;;! ;;! \brief Bit Reversal routine for the complex 32-bit FFT ;;! ;;! \date Jan 11, 2010 ;;! ;; ;; Group: C2000 ;; Target Family: C28x ;; ;;############################################################################# ;;$TI Release: C28x Fixed Point DSP Library v1.20.00.00 $ ;;$Release Date: Thu Oct 18 15:57:22 CDT 2018 $ ;;$Copyright: Copyright (C) 2014-2018 Texas Instruments Incorporated - ;; http://www.ti.com/ ALL RIGHTS RESERVED $ ;;############################################################################# ;; ;;***************************************************************************** ;; includes ;;***************************************************************************** ;; ;;***************************************************************************** ;; globals ;;***************************************************************************** .def _CFFT32_brev ;; Module Structure ;; typedef struct { <--------- XAR4 ;; int32_t *ipcbptr; /* +0 Pointer to input buffer */ ;; int32_t *tfptr /* +2 Pointer to twiddle factors */ ;; int16_t size; /* +4 Size of the FFT */ ;; int16_t nrstage; /* +5 Number of FFT stages (log2(size)) */ ;; int16_t *magptr; /* +6 Pointer to the magnitude buffer */ ;; int16_t *winptr; /* +8 Pointer to the sampling window */ ;; int16_t peakmag; /* +10 Peak magnitude value */ ;; int16_t peakfrq; /* +11 Peak Frequency */ ;; int16_t ratio; /* +12 Twiddles Skip factor */ ;; void (*init)(void); /* +14 Pointer to the initialization () */ ;; void (*izero)(void *); /* +16 Pointer to the zero-out imaginary () */ ;; void (*calc)(void *); /* +18 Pointer to the calculation () */ ;; void (*mag)(void *); /* +20 Pointer to the magnitude () */ ;; void (*win)(void *); /* +22 Pointer to the windowing () */ ;;}CFFT32; ;; ;;============================================================================== ;; \fn void CFFT32_brev(int32_t *src, int32_t *dst, uint16_t size) ;; \brief Bit Reversal routine for the complex 32-bit FFT ;; ;; This function bit reverses the N-point real sequence stored in ;; alternate memory locations, that is, ;; src(0) = x(0) | src(1) = 0 ;; src(2) = x(1) | src(3) = 0 ;; ... | ... ;; src(2N-2) = x(N-1) | src(2N-1) = 0 ;; If src=dst, then in-place bit reversal is performed. ;; The destination array should be aligned to 2N long words, where N is the size ;; of the complex FFT. ;; ;; \param src (XAR4) pointer to the source array or buffer ;; \param dst (XAR5) pointer to the destination array or buffer ;; \param size( AL) size of the buffer (must be a power of 2) ;;============================================================================== ;; _CFFT32_brev: ; XAR4->src, XAR5->dst, AL=size MOVL XAR0,XAR4 ; XAR0->src NOP *,ARP5 CMPR 0 ; TC=1, if src==dst BF off_place,NTC ; If not equal, jump to off place bit rev ; IN-PLACE BIT-REVERSAL in_place: MOVZ AR7,AL ; AR0=size SUBB XAR7,#1 ; XAR7=size-1 LSL ACC,#1 ; ACC=2*size MOVZ AR6,AL ; AR0=2*size next_data1: MOVL XT,*XAR4 ; XT=*src MOVL P,*XAR5 ; P=*dst MOVL XAR0,XAR4 ; XAR0=src CMPR 2 ; check src<dst BF noswap,TC ; if src<dst, do not swap *src & *dst MOVL *XAR4,P ; *src=*dst MOVL *XAR5,XT ; *dst=*src noswap: ADDB XAR4,#4 ; XAR4=src+2 MOVZ AR0,AR6 ; AR0=2*size NOP *BR0++ ; dst=br(dst+2*size) BANZ next_data1,AR7-- ; ARP=AR3, AR3->src+2, AR7=AR7-1 LRETR ; OFF-PLACE BIT-REVERSAL off_place: MOVZ AR7,AL ; AR0=size SUBB XAR7,#1 ; XAR7=size-1 LSL ACC,#1 ; ACC=2*size MOVZ AR0,AL ; AR0=2*size next_data2: MOVL ACC,*XAR4++ ; XAR4=src+1, ACCL=*src ADDB XAR4,#2 ; XAR4=src+2 NOP *,ARP5 ; ARP=XAR5 MOVL *BR0++,ACC ; XAR5=br(dst+size) BANZ next_data2,AR7-- LRETR ;;############################################################################# ;; End of File ;;#############################################################################
46.903509
81
0.366187
1dc3d06a65ebdb91c1e9772ef8e866db297bac3a
1,258
asm
Assembly
programs/oeis/169/A169720.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/169/A169720.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/169/A169720.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A169720: a(n) = (3*2^(n-1)-1)*(3*2^n-1). ; 1,10,55,253,1081,4465,18145,73153,293761,1177345,4713985,18865153,75479041,301953025,1207885825,4831690753,19327057921,77308821505,309236465665,1236948221953,4947797606401,19791199862785,79164818325505,316659311050753,1266637319700481,5066549429796865,20266198021177345,81064792688689153,324259171962716161,1297036690266783745,5188146765898973185,20752587073259569153,83010348312365629441,332041393288117223425,1328165573229778305025,5312662293073732042753,21250649172604165816321,85002596691035138555905,340010386765377504804865,1360041547063983920381953,5440166188260883483852801,21760664753053429540061185,87042659012233509369544705,348170636048973619896778753,1392682544195973644424314881,5570730176784052907371659265,22282920707136528288835436545,89131682828546746474039345153,356526731314188252533552578561,1426106925256755543409000710145,5704427701027027240185583632385,22817710804108119093841496113153,91270843216432496641564307619841,365083372865730027098653876813825,1460333491462920189459408799924225,5841333965851680919967221785034753,23365335863406724004128060310814721,93461343453626896665030587584610305,373845373814507587957159043021144065 mov $1,2 pow $1,$0 bin $1,2 mul $1,9 add $1,1 mov $0,$1
125.8
1,157
0.910175
4ab4587474f83dfd15dcf91b2c13a4c7334a8002
828
asm
Assembly
programs/oeis/173/A173704.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/173/A173704.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/173/A173704.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A173704: Partial sums of floor(n^3/2). ; 0,0,4,17,49,111,219,390,646,1010,1510,2175,3039,4137,5509,7196,9244,11700,14616,18045,22045,26675,31999,38082,44994,52806,61594,71435,82411,94605,108105,123000,139384,157352,177004,198441,221769,247095,274531,304190,336190,370650,407694,447447,490039,535601,584269,636180,691476,750300,812800,879125,949429,1023867,1102599,1185786,1273594,1366190,1463746,1566435,1674435,1787925,1907089,2032112,2163184,2300496,2444244,2594625,2751841,2916095,3087595,3266550,3453174,3647682,3850294,4061231,4280719,4508985,4746261,4992780,5248780,5514500,5790184,6076077,6372429,6679491,6997519,7326770,7667506,8019990,8384490,8761275,9150619,9552797,9968089,10396776,10839144,11295480,11766076,12251225 lpb $0 mov $2,$0 sub $0,1 seq $2,36487 ; a(n) = floor((n^3)/2). add $1,$2 lpe mov $0,$1
75.272727
689
0.799517
85ed2d342648409d866a18cfb7190f2ba9aad614
307
asm
Assembly
scripts/Route2TradeHouse.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
scripts/Route2TradeHouse.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
scripts/Route2TradeHouse.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
Route2TradeHouse_Script: jp EnableAutoTextBoxDrawing Route2TradeHouse_TextPointers: dw Route2HouseText1 dw Route2HouseText2 Route2HouseText1: text_far _Route2HouseText1 text_end Route2HouseText2: text_asm ld a, TRADE_FOR_MARCEL ld [wWhichTrade], a predef DoInGameTradeDialogue jp TextScriptEnd
17.055556
30
0.85342