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
49edf94738e1b39aabdd87a4617dd0a70d998852
9,080
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_21829_2325.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.log_21829_2325.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.log_21829_2325.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0x135b, %r12 clflush (%r12) nop nop inc %rdi movb $0x61, (%r12) nop nop nop xor $63599, %rax lea addresses_UC_ht+0xffa7, %r11 nop nop nop nop nop add $20337, %rax movb $0x61, (%r11) nop nop nop nop xor $29723, %rdi lea addresses_UC_ht+0xe887, %rsi lea addresses_UC_ht+0x167c7, %rdi nop xor $58992, %rbp mov $42, %rcx rep movsq nop nop xor $44064, %rax lea addresses_WC_ht+0xb257, %r11 nop nop nop sub $28375, %rbp movb $0x61, (%r11) add $55680, %r10 lea addresses_D_ht+0x1ae9d, %rbp nop nop and %r10, %r10 mov (%rbp), %esi nop nop nop nop nop dec %rax lea addresses_UC_ht+0x10887, %r11 nop nop nop xor $58536, %r12 vmovups (%r11), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $0, %xmm0, %rcx nop nop and $50339, %rcx lea addresses_WT_ht+0x14b77, %rsi lea addresses_normal_ht+0x11eb7, %rdi sub %r11, %r11 mov $83, %rcx rep movsb nop nop nop nop nop xor %rcx, %rcx lea addresses_D_ht+0xc087, %rsi nop xor $56668, %rbp mov (%rsi), %rcx nop nop nop cmp $8603, %rax lea addresses_WT_ht+0x19de7, %rsi lea addresses_UC_ht+0x1d387, %rdi nop nop nop nop and $34176, %r10 mov $106, %rcx rep movsw nop nop nop nop nop add $21750, %rbp lea addresses_D_ht+0xa187, %r11 nop nop nop inc %rdi movw $0x6162, (%r11) inc %r10 lea addresses_UC_ht+0x2fb7, %rax nop nop nop nop xor $33504, %rsi movw $0x6162, (%rax) nop nop and $36804, %rdi lea addresses_D_ht+0x11e87, %r10 clflush (%r10) and $16260, %r11 mov $0x6162636465666768, %rax movq %rax, %xmm5 vmovups %ymm5, (%r10) nop and $5689, %rbp lea addresses_WC_ht+0x19687, %r11 nop add $47034, %rdi vmovups (%r11), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $0, %xmm4, %rcx and %r11, %r11 lea addresses_WC_ht+0x69c7, %rsi lea addresses_WC_ht+0xa887, %rdi nop xor %r10, %r10 mov $124, %rcx rep movsq nop nop nop nop nop inc %r10 lea addresses_A_ht+0x105af, %rsi lea addresses_D_ht+0x1885a, %rdi clflush (%rdi) nop and $27689, %r12 mov $98, %rcx rep movsb nop nop nop nop cmp $39655, %rax pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r15 push %r8 push %rbp push %rbx push %rcx // Store lea addresses_D+0x5687, %r14 nop inc %rbp movw $0x5152, (%r14) nop nop nop nop nop add $21953, %rcx // Load lea addresses_UC+0xbf, %rbx clflush (%rbx) nop nop nop xor $16728, %r15 movb (%rbx), %cl cmp $56887, %rbp // Store lea addresses_UC+0x687, %r11 clflush (%r11) nop nop nop and $44113, %rcx movl $0x51525354, (%r11) nop nop nop nop nop dec %rbp // Load lea addresses_WC+0x12f9a, %r8 sub %rcx, %rcx movups (%r8), %xmm3 vpextrq $0, %xmm3, %r15 nop nop nop nop nop add $48773, %r11 // Store lea addresses_PSE+0x3f07, %rcx clflush (%rcx) nop nop nop nop xor $43580, %r11 mov $0x5152535455565758, %r14 movq %r14, %xmm7 vmovups %ymm7, (%rcx) nop inc %rcx // Faulty Load lea addresses_UC+0x687, %rcx nop nop nop and $31121, %rbx mov (%rcx), %bp lea oracles, %r11 and $0xff, %rbp shlq $12, %rbp mov (%r11,%rbp,1), %rbp pop %rcx pop %rbx pop %rbp pop %r8 pop %r15 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 11, 'size': 2, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 6, 'size': 32, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': True, 'congruent': 0, 'size': 1, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 4, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 1, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 9, 'size': 32, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 9, 'size': 8, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 8, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 3, 'size': 2, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 9, 'size': 32, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'54': 21829} 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 */
30.779661
2,999
0.653524
8e8974a9fe130bcb7339e530204eef296c275fa8
6,467
asm
Assembly
Transynther/x86/_processed/NC/_st_zr_/i9-9900K_12_0xa0.log_21829_1615.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_st_zr_/i9-9900K_12_0xa0.log_21829_1615.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_st_zr_/i9-9900K_12_0xa0.log_21829_1615.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 %r8 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x11cfb, %r8 nop nop nop nop cmp $27202, %rdx movw $0x6162, (%r8) nop dec %rcx lea addresses_WT_ht+0xb81b, %rsi lea addresses_WT_ht+0x3a73, %rdi nop sub %rax, %rax mov $86, %rcx rep movsw nop nop nop nop and $52868, %rdi lea addresses_A_ht+0x13adb, %rsi lea addresses_A_ht+0x1011b, %rdi nop nop nop nop xor $46356, %r8 mov $114, %rcx rep movsl nop nop nop nop nop and %r8, %r8 lea addresses_UC_ht+0xefbb, %rsi lea addresses_A_ht+0x145ab, %rdi nop nop and $33925, %rbp mov $74, %rcx rep movsl nop nop nop xor $51318, %rbp pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r14 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r9 push %rbp push %rbx push %rdx push %rsi // Load lea addresses_PSE+0x1b69b, %rdx add $25082, %r11 mov (%rdx), %r9 nop nop nop add $35514, %rsi // Store lea addresses_PSE+0x1cd06, %r14 nop nop nop nop nop add %rbp, %rbp mov $0x5152535455565758, %r9 movq %r9, %xmm0 vmovups %ymm0, (%r14) nop and %rdx, %rdx // Store lea addresses_WC+0xa29b, %rsi nop nop nop sub $45034, %rbx movl $0x51525354, (%rsi) and %r14, %r14 // Store lea addresses_PSE+0x94ab, %r11 nop nop nop nop dec %rbx movl $0x51525354, (%r11) nop nop nop add %r11, %r11 // Store lea addresses_WC+0xea6b, %rbx nop nop nop nop inc %rdx mov $0x5152535455565758, %rsi movq %rsi, %xmm1 movntdq %xmm1, (%rbx) nop nop and %r11, %r11 // Store lea addresses_WT+0xfa9b, %r9 nop nop add $47852, %r14 movw $0x5152, (%r9) nop add $58083, %rsi // Faulty Load mov $0x5d4da1000000029b, %r11 nop cmp $48991, %r14 mov (%r11), %rbx lea oracles, %rbp and $0xff, %rbx shlq $12, %rbx mov (%rbp,%rbx,1), %rbx pop %rsi pop %rdx pop %rbx pop %rbp pop %r9 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'NT': True, 'same': False, 'congruent': 10, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_WC', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_PSE', 'AVXalign': True, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 4, 'type': 'addresses_WC', 'AVXalign': False, 'size': 16}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_WT', 'AVXalign': False, 'size': 2}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2}} {'src': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WT_ht'}} {'src': {'same': False, 'congruent': 4, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_A_ht'}} {'src': {'same': False, 'congruent': 5, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_A_ht'}} {'54': 21762, '00': 67} 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 00 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 00 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 00 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 */
35.338798
2,999
0.655172
25947c067c9c4b13f57d0c6bd3569db06a30c28f
494
asm
Assembly
untested/x86/intSqrt.asm
GabrielRavier/Generic-Assembly-Samples
fbf803960a14307b7fce0165058d0d4048abaf42
[ "Unlicense" ]
null
null
null
untested/x86/intSqrt.asm
GabrielRavier/Generic-Assembly-Samples
fbf803960a14307b7fce0165058d0d4048abaf42
[ "Unlicense" ]
null
null
null
untested/x86/intSqrt.asm
GabrielRavier/Generic-Assembly-Samples
fbf803960a14307b7fce0165058d0d4048abaf42
[ "Unlicense" ]
null
null
null
global _intSqrt segment .text align=16 _intSqrt: sub esp, 12 fild dword [esp + 16] fsqrt fnstcw [esp + 6] mov ax, [esp + 6] mov ah, 12 mov [esp + 4], ax fldcw [esp + 4] fistp dword [esp] fldcw [esp + 6] mov eax, [esp] add esp, 12 ret align 16 _intSqrtSSE2: pxor xmm0, xmm0 cvtsi2sd xmm0, [esp + 4] sqrtsd xmm1, xmm0 cvttsd2si eax, xmm1 ret align 16 _intSqrtAVX: vxorpd xmm0, xmm0 vcvtsi2sd xmm0, [esp + 4] vsqrtsd xmm0, xmm0 vcvttsd2si eax, xmm0 ret
11.761905
26
0.6417
f22c5294953c3533486fdd6890fa0f4607afe9cf
890
nasm
Assembly
0x03_Loop/loop_02.nasm
bigb0sss/b0ssTheASM
14a8ec2b6a0a5d75206c92ae2aac1bfdb4e6345b
[ "MIT" ]
2
2020-12-25T04:23:47.000Z
2022-03-14T15:55:11.000Z
0x03_Loop/loop_02.nasm
bigb0sss/b0ssTheASM
14a8ec2b6a0a5d75206c92ae2aac1bfdb4e6345b
[ "MIT" ]
null
null
null
0x03_Loop/loop_02.nasm
bigb0sss/b0ssTheASM
14a8ec2b6a0a5d75206c92ae2aac1bfdb4e6345b
[ "MIT" ]
1
2021-09-20T17:04:56.000Z
2021-09-20T17:04:56.000Z
; Executable name : loop_02 ; Version : 1.0 ; Created date : 05/28/2020 ; Last update : 05/28/2020 ; Author : bigb0ss ; Description. : Print "bigb0ss" x3 times with ECX + Loop ; ; Purpose: global _start section .text _start: jmp entry entry: mov ecx, 0x3 ; Setting ECX our loop purposes print: push ecx ; Storing the current state of ECX mov eax, 0x4 ; Calling write() syscall mov ebx, 1 mov ecx, message mov edx, mlen int 0x80 pop ecx ; Restoring the ECX state loop print ; Looping through ECX value until it become "0" mov eax, 0x1 ; Calling exit() syscall mov ebx, 0xa int 0x80 section .data message: db "bigb0ss " mlen equ $-message
22.820513
75
0.520225
c904a18ad1482dbb6bcd29094a43645c4ea4586d
147
asm
Assembly
audio/sfx/59_1.asm
AmateurPanda92/pokemon-rby-dx
f7ba1cc50b22d93ed176571e074a52d73360da93
[ "MIT" ]
9
2020-07-12T19:44:21.000Z
2022-03-03T23:32:40.000Z
audio/sfx/59_1.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
audio/sfx/59_1.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2021-03-28T18:33:43.000Z
2021-05-06T13:12:09.000Z
SFX_59_1_Ch4: duty 2 squarenote 4, 15, 1, 1920 endchannel SFX_59_1_Ch5: duty 2 squarenote 1, 0, 8, 0 squarenote 4, 10, 1, 1889 endchannel
12.25
26
0.707483
9dd2ca66ddb0596bb002e2905264ff968bf86f75
5,460
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2_notsx.log_9741_1786.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2_notsx.log_9741_1786.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2_notsx.log_9741_1786.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %r15 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x1c17, %r14 nop nop xor %rax, %rax mov $0x6162636465666768, %rbp movq %rbp, (%r14) nop and $10846, %r15 lea addresses_UC_ht+0x6dcf, %rdx nop xor %rdi, %rdi mov (%rdx), %r13 nop nop and %r13, %r13 lea addresses_normal_ht+0x145b7, %rsi lea addresses_UC_ht+0x382f, %rdi nop xor %r14, %r14 mov $70, %rcx rep movsw nop nop nop dec %r13 lea addresses_WC_ht+0xa2d7, %rsi lea addresses_D_ht+0x9537, %rdi cmp $6148, %r15 mov $77, %rcx rep movsq nop nop nop nop nop sub %r15, %r15 lea addresses_WT_ht+0x4de7, %r15 nop nop nop nop cmp %rdx, %rdx mov $0x6162636465666768, %rcx movq %rcx, (%r15) nop nop nop nop sub %rsi, %rsi lea addresses_A_ht+0x16087, %rsi nop nop and $60904, %rax mov $0x6162636465666768, %rbp movq %rbp, %xmm7 movups %xmm7, (%rsi) nop nop nop nop nop sub %r15, %r15 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r15 pop %r14 pop %r13 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r9 push %rax push %rdi push %rsi // Faulty Load lea addresses_D+0x14537, %r11 nop nop nop sub $17412, %r14 mov (%r11), %rsi lea oracles, %r14 and $0xff, %rsi shlq $12, %rsi mov (%r14,%rsi,1), %rsi pop %rsi pop %rdi pop %rax pop %r9 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'36': 9741} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
42.325581
2,999
0.661172
d9118d0a70d34b272250d0b6107bd9c36658a6a3
342
asm
Assembly
oeis/208/A208148.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/208/A208148.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/208/A208148.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A208148: Number of n state 1 dimensional radius-1 totalistic cellular automata. ; 1,16,2187,1048576,1220703125,2821109907456,11398895185373143,73786976294838206464,717897987691852588770249,10000000000000000000000000000,191943424957750480504146841291811,4922235242952026704037113243122008064 mov $2,$0 add $0,1 mul $2,2 add $2,$0 pow $0,$2
38
210
0.842105
c6f92b834d7845000c4714c87aa96be3a009d6f3
788
asm
Assembly
programs/oeis/063/A063489.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/063/A063489.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/063/A063489.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A063489: a(n) = (2*n-1)*(5*n^2-5*n+6)/6. ; 1,8,30,77,159,286,468,715,1037,1444,1946,2553,3275,4122,5104,6231,7513,8960,10582,12389,14391,16598,19020,21667,24549,27676,31058,34705,38627,42834,47336,52143,57265,62712,68494,74621,81103,87950,95172,102779,110781,119188,128010,137257,146939,157066,167648,178695,190217,202224,214726,227733,241255,255302,269884,285011,300693,316940,333762,351169,369171,387778,407000,426847,447329,468456,490238,512685,535807,559614,584116,609323,635245,661892,689274,717401,746283,775930,806352,837559,869561,902368,935990,970437,1005719,1041846,1078828,1116675,1155397,1195004,1235506,1276913,1319235,1362482,1406664,1451791,1497873,1544920,1592942,1641949 mov $2,$0 add $0,1 mul $0,2 bin $0,3 mul $0,5 lpb $2 add $0,8 sub $2,1 lpe div $0,4 add $0,1
52.533333
646
0.781726
bd4b8b91beda50a9911d9f0b9c92548653efa8d8
210
asm
Assembly
programs/oeis/307/A307163.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/307/A307163.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/307/A307163.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A307163: Minimum number of intercalates in a diagonal Latin square of order n. ; 0,0,0,12,0,9,0,0,0,0,0,0,0 mov $2,2 lpb $0 mov $1,22 add $2,$0 add $0,$2 div $1,$2 dif $0,$1 lpe mul $1,3 mov $0,$1
15
80
0.6
4695f5fa7ef542141b1a08e605a5d801119764b6
693
asm
Assembly
oeis/090/A090249.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/090/A090249.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/090/A090249.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A090249: a(n) = 28a(n-1) - a(n-2), starting with a(0) = 2 and a(1) = 28. ; Submitted by Simon Strandgaard ; 2,28,782,21868,611522,17100748,478209422,13372763068,373959156482,10457483618428,292435582159502,8177738816847628,228684251289574082,6394981297291226668,178830792072864772622,5000867196742922406748,139845450716728962616322,3910671752871668030850268,109358963629689975901191182,3058140309878447657202502828,85518569712966844425768888002,2391461811653193196264326361228,66875412156576442650975369226382,1870120078572487201031046011977468,52296486787873065186218312966142722 mov $2,1 lpb $0 sub $0,1 add $3,$2 mov $1,$3 mul $1,13 add $2,$1 add $3,$2 lpe mov $0,$2 mul $0,2
43.3125
473
0.816739
46cd7b7fe8502b2ec51346c96b473b3688033184
6,537
asm
Assembly
+extras/external_libs/zlib/src/zlib-1.2.11/contrib/vstudio/vc14/x86/TestZlibDebug/Tmp/compress.asm
dkovari/ExtrasToolbox
b3d79c40e547fc9d994829701c2273ca080f8339
[ "MIT" ]
null
null
null
+extras/external_libs/zlib/src/zlib-1.2.11/contrib/vstudio/vc14/x86/TestZlibDebug/Tmp/compress.asm
dkovari/ExtrasToolbox
b3d79c40e547fc9d994829701c2273ca080f8339
[ "MIT" ]
null
null
null
+extras/external_libs/zlib/src/zlib-1.2.11/contrib/vstudio/vc14/x86/TestZlibDebug/Tmp/compress.asm
dkovari/ExtrasToolbox
b3d79c40e547fc9d994829701c2273ca080f8339
[ "MIT" ]
null
null
null
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.14.26428.1 TITLE C:\Users\dkovari\Documents\GitHub\ExtrasToolbox\+extras\external_libs\zlib\src\zlib-1.2.11\compress.c .686P .XMM include listing.inc .model flat INCLUDELIB MSVCRTD INCLUDELIB OLDNAMES PUBLIC _compress@16 PUBLIC _compress2@20 PUBLIC _compressBound@4 EXTRN _deflate@8:PROC EXTRN _deflateEnd@4:PROC EXTRN _deflateInit_@16:PROC _DATA SEGMENT $SG92676 DB '1.2.11', 00H _DATA ENDS ; Function compile flags: /Odtp ; File c:\users\dkovari\documents\github\extrastoolbox\+extras\external_libs\zlib\src\zlib-1.2.11\compress.c _TEXT SEGMENT _sourceLen$ = 8 ; size = 4 _compressBound@4 PROC ; 83 : { push ebp mov ebp, esp ; 84 : return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + mov eax, DWORD PTR _sourceLen$[ebp] shr eax, 12 ; 0000000cH add eax, DWORD PTR _sourceLen$[ebp] mov ecx, DWORD PTR _sourceLen$[ebp] shr ecx, 14 ; 0000000eH add eax, ecx mov edx, DWORD PTR _sourceLen$[ebp] shr edx, 25 ; 00000019H lea eax, DWORD PTR [eax+edx+13] ; 85 : (sourceLen >> 25) + 13; ; 86 : } pop ebp ret 4 _compressBound@4 ENDP _TEXT ENDS ; Function compile flags: /Odtp ; File c:\users\dkovari\documents\github\extrastoolbox\+extras\external_libs\zlib\src\zlib-1.2.11\compress.c _TEXT SEGMENT _stream$ = -84 ; size = 56 tv86 = -28 ; size = 4 tv80 = -24 ; size = 4 tv76 = -20 ; size = 4 tv72 = -16 ; size = 4 _max$ = -12 ; size = 4 _left$ = -8 ; size = 4 _err$ = -4 ; size = 4 _dest$ = 8 ; size = 4 _destLen$ = 12 ; size = 4 _source$ = 16 ; size = 4 _sourceLen$ = 20 ; size = 4 _level$ = 24 ; size = 4 _compress2@20 PROC ; 28 : { push ebp mov ebp, esp sub esp, 84 ; 00000054H ; 29 : z_stream stream; ; 30 : int err; ; 31 : const uInt max = (uInt)-1; mov DWORD PTR _max$[ebp], -1 ; 32 : uLong left; ; 33 : ; 34 : left = *destLen; mov eax, DWORD PTR _destLen$[ebp] mov ecx, DWORD PTR [eax] mov DWORD PTR _left$[ebp], ecx ; 35 : *destLen = 0; mov edx, DWORD PTR _destLen$[ebp] mov DWORD PTR [edx], 0 ; 36 : ; 37 : stream.zalloc = (alloc_func)0; mov DWORD PTR _stream$[ebp+32], 0 ; 38 : stream.zfree = (free_func)0; mov DWORD PTR _stream$[ebp+36], 0 ; 39 : stream.opaque = (voidpf)0; mov DWORD PTR _stream$[ebp+40], 0 ; 40 : ; 41 : err = deflateInit(&stream, level); push 56 ; 00000038H push OFFSET $SG92676 mov eax, DWORD PTR _level$[ebp] push eax lea ecx, DWORD PTR _stream$[ebp] push ecx call _deflateInit_@16 mov DWORD PTR _err$[ebp], eax ; 42 : if (err != Z_OK) return err; cmp DWORD PTR _err$[ebp], 0 je SHORT $LN5@compress2 mov eax, DWORD PTR _err$[ebp] jmp $LN1@compress2 $LN5@compress2: ; 43 : ; 44 : stream.next_out = dest; mov edx, DWORD PTR _dest$[ebp] mov DWORD PTR _stream$[ebp+12], edx ; 45 : stream.avail_out = 0; mov DWORD PTR _stream$[ebp+16], 0 ; 46 : stream.next_in = (z_const Bytef *)source; mov eax, DWORD PTR _source$[ebp] mov DWORD PTR _stream$[ebp], eax ; 47 : stream.avail_in = 0; mov DWORD PTR _stream$[ebp+4], 0 $LN4@compress2: ; 48 : ; 49 : do { ; 50 : if (stream.avail_out == 0) { cmp DWORD PTR _stream$[ebp+16], 0 jne SHORT $LN6@compress2 ; 51 : stream.avail_out = left > (uLong)max ? max : (uInt)left; mov ecx, DWORD PTR _left$[ebp] cmp ecx, DWORD PTR _max$[ebp] jbe SHORT $LN9@compress2 mov edx, DWORD PTR _max$[ebp] mov DWORD PTR tv72[ebp], edx jmp SHORT $LN10@compress2 $LN9@compress2: mov eax, DWORD PTR _left$[ebp] mov DWORD PTR tv72[ebp], eax $LN10@compress2: mov ecx, DWORD PTR tv72[ebp] mov DWORD PTR _stream$[ebp+16], ecx ; 52 : left -= stream.avail_out; mov edx, DWORD PTR _left$[ebp] sub edx, DWORD PTR _stream$[ebp+16] mov DWORD PTR _left$[ebp], edx $LN6@compress2: ; 53 : } ; 54 : if (stream.avail_in == 0) { cmp DWORD PTR _stream$[ebp+4], 0 jne SHORT $LN7@compress2 ; 55 : stream.avail_in = sourceLen > (uLong)max ? max : (uInt)sourceLen; mov eax, DWORD PTR _sourceLen$[ebp] cmp eax, DWORD PTR _max$[ebp] jbe SHORT $LN11@compress2 mov ecx, DWORD PTR _max$[ebp] mov DWORD PTR tv76[ebp], ecx jmp SHORT $LN12@compress2 $LN11@compress2: mov edx, DWORD PTR _sourceLen$[ebp] mov DWORD PTR tv76[ebp], edx $LN12@compress2: mov eax, DWORD PTR tv76[ebp] mov DWORD PTR _stream$[ebp+4], eax ; 56 : sourceLen -= stream.avail_in; mov ecx, DWORD PTR _sourceLen$[ebp] sub ecx, DWORD PTR _stream$[ebp+4] mov DWORD PTR _sourceLen$[ebp], ecx $LN7@compress2: ; 57 : } ; 58 : err = deflate(&stream, sourceLen ? Z_NO_FLUSH : Z_FINISH); cmp DWORD PTR _sourceLen$[ebp], 0 je SHORT $LN13@compress2 mov DWORD PTR tv80[ebp], 0 jmp SHORT $LN14@compress2 $LN13@compress2: mov DWORD PTR tv80[ebp], 4 $LN14@compress2: mov edx, DWORD PTR tv80[ebp] push edx lea eax, DWORD PTR _stream$[ebp] push eax call _deflate@8 mov DWORD PTR _err$[ebp], eax ; 59 : } while (err == Z_OK); cmp DWORD PTR _err$[ebp], 0 je $LN4@compress2 ; 60 : ; 61 : *destLen = stream.total_out; mov ecx, DWORD PTR _destLen$[ebp] mov edx, DWORD PTR _stream$[ebp+20] mov DWORD PTR [ecx], edx ; 62 : deflateEnd(&stream); lea eax, DWORD PTR _stream$[ebp] push eax call _deflateEnd@4 ; 63 : return err == Z_STREAM_END ? Z_OK : err; cmp DWORD PTR _err$[ebp], 1 jne SHORT $LN15@compress2 mov DWORD PTR tv86[ebp], 0 jmp SHORT $LN16@compress2 $LN15@compress2: mov ecx, DWORD PTR _err$[ebp] mov DWORD PTR tv86[ebp], ecx $LN16@compress2: mov eax, DWORD PTR tv86[ebp] $LN1@compress2: ; 64 : } mov esp, ebp pop ebp ret 20 ; 00000014H _compress2@20 ENDP _TEXT ENDS ; Function compile flags: /Odtp ; File c:\users\dkovari\documents\github\extrastoolbox\+extras\external_libs\zlib\src\zlib-1.2.11\compress.c _TEXT SEGMENT _dest$ = 8 ; size = 4 _destLen$ = 12 ; size = 4 _source$ = 16 ; size = 4 _sourceLen$ = 20 ; size = 4 _compress@16 PROC ; 73 : { push ebp mov ebp, esp ; 74 : return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION); push -1 mov eax, DWORD PTR _sourceLen$[ebp] push eax mov ecx, DWORD PTR _source$[ebp] push ecx mov edx, DWORD PTR _destLen$[ebp] push edx mov eax, DWORD PTR _dest$[ebp] push eax call _compress2@20 ; 75 : } pop ebp ret 16 ; 00000010H _compress@16 ENDP _TEXT ENDS END
22.31058
108
0.639896
31d012cf4b3256918438c9b70d6f778957c79636
569
asm
Assembly
programs/oeis/118/A118586.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/118/A118586.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/118/A118586.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A118586: Numbers whose binary expansion contains group of at least two 1's followed by a nonempty group of 0's. ; 6,12,14,24,28,30,48,56,60,62,96,112,120,124,126,192,224,240,248,252,254,384,448,480,496,504,508,510,768,896,960,992,1008,1016,1020,1022,1536,1792,1920,1984,2016,2032,2040,2044,2046,3072,3584,3840,3968,4032 cal $0,224195 ; Ordered sequence of numbers of form (2^n - 1)*2^m + 1 where n >= 1, m >= 1. mul $0,8 mov $2,1 cal $0,80565 ; Binary expansion of n has form 11**...*1. mul $2,$0 add $1,$2 div $1,$0 add $1,$2 sub $1,114 div $1,32 mul $1,2 add $1,6
35.5625
207
0.685413
a60fd711dfe116d1435ed996b57c6a1be35cc3d5
3,666
asm
Assembly
smsq/qa/sqrt.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
smsq/qa/sqrt.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
smsq/qa/sqrt.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; QL Arithmetic Square Root V2.01  1990 Tony Tebby QJUMP section qa xdef qa_sqrt include 'dev8_keys_err' ;+++ ; QL Arithmetic: Square Root ; ; This routine takes the square root of TOS. Algorithm TT ; ; d0 r error return 0 or ERR.IEXP ; a1 c p pointer to arithmetic stack ; status return standard ;--- qa_sqrt qsq.reg reg d1/d2/d3 move.l 2(a1),d0 ; negative square root? bgt.s qsq_exp ; ... no beq.s qsq_rts ; ... no, nothing moveq #err.iexp,d0 qsq_rts rts qsq_exp movem.l qsq.reg,-(sp) move.w (a1),d2 qsq_norm add.l d0,d0 ; move mantissa up bmi.s qsq_exp2 ; ... ok, halve exponent subq.w #1,d2 ; negative exp!! bra.s qsq_norm qsq_exp2 add.l d0,d0 ; get rid of the bit we know about add.w #$801,d2 ; double the offset lsr.w #1,d2 roxr.l #1,d0 ; (x-1)/2 (0.5 to 0.99999 is negative) bge.s qsq_sexp asr.l #1,d0 qsq_sexp move.w d2,(a1) ; save exponent move.l d0,d1 swap d1 asr.w #1,d1 move.w d1,d2 ; 0.25x asr.w #1,d2 add.w d1,d2 ; 0.375x muls d1,d2 ; 0.09375x^2 (MSW) swap d2 sub.w d1,d2 ; -0.25x+0.09375x^2 muls d1,d2 ; -0.0625x^2+0.0234375x^3 (MSW) clr.w d2 swap d2 add.w d1,d2 ; (+0.5x-0.125x^2+0.046875x^3)/2 add.w #$7f87,d2 ; (.9963+0.5x-0.125x^2+0.046875x^3)/2 ; d2.w is now msw of result accurate to 7 bits bchg #31,d0 beq.s qsq_upper add.w d2,d2 ; other half! move.l d0,d1 divu d2,d1 swap d1 clr.w d1 swap d1 lsr.l #1,d2 ; second approximation add.w d1,d2 bcc.s qsq_app3 bset #31,d0 ; trivial move.l d0,d2 bra.s qsq_res qsq_app3 divu d2,d0 ; msw of half third approx in LSW move.l d0,d1 clr.w d1 divu d2,d1 ; lsw of half third approx in LSW swap d0 move.w d1,d0 swap d2 lsr.l #1,d2 add.l d0,d2 ; third approx bra.s qsq_res qsq_upper lsr.l #1,d0 qsq_app2 move.l d0,d1 divu d2,d1 swap d1 clr.w d1 swap d1 add.l d1,d2 lsr.l #1,d2 ; second approximation divu d2,d0 ; msw of half third approx in LSW move.l d0,d1 clr.w d1 divu d2,d1 ; lsw of half third approx in LSW swap d0 move.w d1,d0 swap d2 add.l d0,d2 ; twice third approx roxr.l #1,d2 ; third approx qsq_res lsr.l #1,d2 ; normalised bcc.s qsq_ok addq.l #1,d2 ; add carry bpl.s qsq_ok lsr.l #1,d2 ; and re-normalise addq.w #1,(a1) qsq_ok move.l d2,2(a1) moveq #0,d0 qsq_exit movem.l (sp)+,qsq.reg rts end
30.04918
79
0.412711
22c9048fdc14adc4c573bd380a1743de2ac4baf3
879
asm
Assembly
randomly-solved-programs/taking binary input and printing hex using PROC.asm
informramiz/Assembly-Language-Programs
600d8f737a09ef4c133b686918501fba56dd586e
[ "Apache-2.0" ]
null
null
null
randomly-solved-programs/taking binary input and printing hex using PROC.asm
informramiz/Assembly-Language-Programs
600d8f737a09ef4c133b686918501fba56dd586e
[ "Apache-2.0" ]
null
null
null
randomly-solved-programs/taking binary input and printing hex using PROC.asm
informramiz/Assembly-Language-Programs
600d8f737a09ef4c133b686918501fba56dd586e
[ "Apache-2.0" ]
null
null
null
.MODEL SMALL .STACK 100H .DATA INPUT_MSG DB 0ah,0dh,'Enter a binary number: $' OUTPUT_MSG DB 0AH,0DH,'Hex number is: $' .CODE MAIN PROC ;making the DS to point to data segment MOV AX,@DATA MOV DS,AX CALL INPUT CALL OUTPUT EXIT: MOV AH,4CH INT 21H MAIN ENDP INPUT PROC xor bx,bx LEA DX , INPUT_MSG MOV AH,9 INT 21H MOV ah,1 MOV Cl,16 TOP: INT 21H CMP AL,0DH JE RETURN CMP AL,31H JG Return sub al,30h SHL BX,1 OR BL,AL LOOP TOP RETURN: RET INPUT ENDP OUTPUT PROC LEA DX, OUTPUT_MSG MOV AH,9 INT 21H MOV CL,4 MOV CH,4 MOV AH,2 TOP1: MOV Dl,bH SHR DL,CL CMP DL,9H JG LETTER OR DL,30H CMP DL,'0' JE NEXT JMP PRINT LETTER: ADD DL,37H PRINT: INT 21H NEXT: ROL BX,CL DEC CH JNZ TOP1 RET OUTPUT ENDP END MAIN
9.988636
50
0.585893
864921234f17b7a3e662e805a16bfbd8c9e0f4c5
3,245
asm
Assembly
player.asm
miner90027/Fall2021_CS301
62a5dffbfd67509aa1ab60ea0c93ec31d6d6109f
[ "MIT" ]
null
null
null
player.asm
miner90027/Fall2021_CS301
62a5dffbfd67509aa1ab60ea0c93ec31d6d6109f
[ "MIT" ]
null
null
null
player.asm
miner90027/Fall2021_CS301
62a5dffbfd67509aa1ab60ea0c93ec31d6d6109f
[ "MIT" ]
null
null
null
; player.asm ; Aleks McCormick ; 2021/12/02 ; Fall 2021 CS 301 ; Final Project ; Simple Text based RPG using asm ; Assembly functions section .text global getHealth global inventoryPtr global attack global useItem global resetEnemy global enemyHealth global receiveItem global score global gainXP score: ; Returns the Player's current score mov rax, QWORD[playerPtr +8*2] ret gainXP: ; Adds the enemy's xp drop amount to the Player's score xor rax, rax mov rdx, QWORD[enemyPtr+8*2] add QWORD[playerPtr +8*2], rdx ret getHealth: ; Returns the Player's health mov rax, QWORD[playerPtr +8*0] ret enemyHealth: ; Returns the Enemy's health mov rax, QWORD[enemyPtr +8*0] ret resetEnemy: ; Sets the enemy health, attack, & drop XP to the input values xor rax, rax mov QWORD[enemyPtr+8*0], rdi mov QWORD[enemyPtr+8*1], rsi mov QWORD[enemyPtr+8*2], rdx ret useItem: ;receives int/long as input to determine index in mem xor rax, rax ;reset registers xor rcx, rcx cmp rdi, 0 ;Verify valid index jl .invalid cmp rdi, 5 jge .invalid mov rcx, QWORD[inventoryPtr +8* rdi] cmp rcx, 1 ; Compare the item in the slot to the possible values je .potion ; Preform actions accordingly cmp rcx, 2 je .sword cmp rcx, 3 je .dagger cmp rcx, 4 je .bottle ret .potion: ; Heal player to full & replace potion with bottle mov QWORD[playerPtr +8*0], 100 mov QWORD[inventoryPtr +8* rdi], 4 mov rax, rcx ret .sword: ; Set player attack to 20 mov QWORD[playerPtr +8*1], 20 mov rax, rcx ret .dagger: ; Set Player attack to 10 mov QWORD[playerPtr +8*1], 10 mov rax, rcx ret .bottle: ; Heal player by 10 untill full, empty slot after use cmp QWORD[playerPtr +8*0], 100 je .used add QWORD[playerPtr +8*0], 10 .used: mov QWORD[inventoryPtr +8* rdi], 0 mov rax, rcx ret .invalid: ; Return -1 to signify invalid input mov rax, -1 ret attack: ; Attack based on input value, returns damage delt xor rax, rax cmp rdi, 0 ; compare input to 0, not 0 -> enemy attacks player jne .hitPlayer .hitEnemy: ; Player attacks enemy mov rax, [playerPtr+8*1] sub [enemyPtr+8*0], rax ret .hitPlayer: ; Enemy attacks Player mov rax, [enemyPtr+8*1] sub [playerPtr+8*0], rax ret receiveItem: ; Store the given item in the next empty inventory slot xor rax, rax mov rax, -1 ; Default return value signifies full inventory xor rcx, rcx .loop: ; Loop through inventory until an empty slot is found mov rdx, QWORD[inventoryPtr +8*rcx] cmp rdx, 0 je .checkVal add rcx, 1 cmp rcx, 5 jl .loop ret .checkVal: ;Verify that a valid item is being stored cmp rdi, 1 je .store cmp rdi, 2 je .store cmp rdi, 3 je .store mov rax, 1 ret .store: ; Store item in open inventory slot mov QWORD[inventoryPtr +8*rcx], rdi xor rax, rax ret section .data playerPtr: dq 100 ; Health dq 5 ; Attack dq 0 ; Score enemyPtr: dq 0 ; Health dq 0 ; Attack dq 0 ; XP drop amount inventoryPtr: dq 0,0,0,0,0
20.66879
80
0.640678
60dd88754027d4c98dac08409e6fa44b2d537de5
673
asm
Assembly
src/macros.asm
dma-homebrew/dhgr
38fb0004c6b4616243b59c675c721ba606ff874b
[ "MIT" ]
4
2021-06-02T14:31:32.000Z
2021-07-14T03:48:13.000Z
src/macros.asm
dma-homebrew/dhgr
38fb0004c6b4616243b59c675c721ba606ff874b
[ "MIT" ]
null
null
null
src/macros.asm
dma-homebrew/dhgr
38fb0004c6b4616243b59c675c721ba606ff874b
[ "MIT" ]
1
2021-06-02T18:23:17.000Z
2021-06-02T18:23:17.000Z
;----------------------------------------------------------------------------- ; Paul Wasson - 2021 ;----------------------------------------------------------------------------- ; Macros ;----------------------------------------------------------------------------- ; Add 0 to the end of a string .macro String s .byte s .byte 0 .endmacro ; Prepend the string length .macro StringLen s .byte .strlen(s) .byte s .endmacro ; Add CR + 0 to the end of a string .macro StringCR s .byte s .byte 13,0 .endmacro ; Add CR to the end of a string .macro StringCont s .byte s .byte 13 .endmacro
21.709677
78
0.365527
ecfb71bc1d7c4cf3a2c5f366148ed65140c1f86b
61
asm
Assembly
test_4.asm
shavtvalishvili/Assembly-Emulator
2db4004acba401f6e20e7e0011275fb5a663ab99
[ "MIT" ]
null
null
null
test_4.asm
shavtvalishvili/Assembly-Emulator
2db4004acba401f6e20e7e0011275fb5a663ab99
[ "MIT" ]
null
null
null
test_4.asm
shavtvalishvili/Assembly-Emulator
2db4004acba401f6e20e7e0011275fb5a663ab99
[ "MIT" ]
1
2021-03-28T17:13:57.000Z
2021-03-28T17:13:57.000Z
SP = SP - 4 M[SP] = NEG25 RV = .1 M[SP] ; SP = SP + 4 RET
12.2
14
0.442623
a2c2785d2123cca7200e6b17dbd6fce2bde0901a
327
asm
Assembly
programs/oeis/167/A167632.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/167/A167632.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/167/A167632.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A167632: Smallest m such that A033183(m) = n. ; 0,4,36,72,108,144,180,216,252,288,324,360,396,432,468,504,540,576,612,648,684,720,756,792,828,864,900,936,972,1008,1044,1080,1116,1152,1188,1224,1260,1296,1332,1368,1404,1440,1476,1512,1548,1584,1620,1656,1692 mov $2,$0 sub $2,1 mul $2,8 trn $2,1 add $0,$2 mov $1,$0 mul $1,4
29.727273
211
0.700306
6253792edc4c7dfca56e7069221159087bcaa071
709
asm
Assembly
oeis/258/A258745.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/258/A258745.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/258/A258745.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A258745: Order of general affine group AGL(n,2) (=A028365(n)) divided by (n+1). ; Submitted by Christian Krause ; 1,1,8,336,64512,53329920,184308203520,2621599886868480,152122702768688332800,35820150273699719298416640,34112245508649716682268134604800,131089993748184007771243790830298726400,2029650642403883210241235064170615545004032000,126462999028351383186939572421824895314601304915968000,31682075452091847967291074379573495550386268294497623972249600,31891248117924666849614642202485290865648850530482287965144145199104000,128912731924961260423363371404446449047517338056795587981481795641719830609920000 mov $2,$0 seq $0,28365 ; Order of general affine group over GF(2), AGL(n,2). add $2,1 div $0,$2
78.777778
497
0.877292
5262a48a17367114e424eb549eda7665d28f8896
629
asm
Assembly
oeis/004/A004699.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/004/A004699.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/004/A004699.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A004699: a(n) = floor(Fibonacci(n)/6). ; 0,0,0,0,0,0,1,2,3,5,9,14,24,38,62,101,164,266,430,696,1127,1824,2951,4776,7728,12504,20232,32736,52968,85704,138673,224378,363051,587429,950481,1537910,2488392,4026302,6514694,10540997,17055692,27596690,44652382,72249072,116901455,189150528,306051983,495202512,801254496,1296457008,2097711504,3394168512,5491880016,8886048528,14377928545,23263977074,37641905619,60905882693,98547788313,159453671006,258001459320,417455130326,675456589646,1092911719973,1768368309620,2861280029594,4629648339214 seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1. div $0,6
104.833333
495
0.794913
6aa405ace17a09c36eae3539b391c20438b27b0a
450
asm
Assembly
programs/oeis/193/A193588.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/193/A193588.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/193/A193588.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A193588: A Fibonacci triangle: T(n,k) = Fib(k+2) for 0 <= k <= n. ; 1,1,2,1,2,3,1,2,3,5,1,2,3,5,8,1,2,3,5,8,13,1,2,3,5,8,13,21,1,2,3,5,8,13,21,34,1,2,3,5,8,13,21,34,55,1,2,3,5,8,13,21,34,55,89,1,2,3,5,8,13,21,34,55,89,144,1,2,3,5,8,13,21,34,55,89,144,233 lpb $0 add $2,1 sub $0,$2 lpe add $0,1 seq $0,187107 ; Number of nontrivial compositions of differential operations and directional derivative of the n-th order on the space R^9. sub $0,7
40.909091
188
0.64
8d4151c381b0c8ec7fb24aae7c61ead40404ec1e
1,629
asm
Assembly
programs/oeis/322/A322462.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/322/A322462.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/322/A322462.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A322462: Numbers on the 0-1-12 line in a spiral on a grid of equilateral triangles. ; 0,1,12,13,36,37,72,73,120,121,180,181,252,253,336,337,432,433,540,541,660,661,792,793,936,937,1092,1093,1260,1261,1440,1441,1632,1633,1836,1837,2052,2053,2280,2281,2520,2521,2772,2773,3036,3037,3312,3313,3600,3601,3900,3901,4212,4213,4536,4537,4872,4873,5220,5221,5580,5581,5952,5953,6336,6337,6732,6733,7140,7141,7560,7561,7992,7993,8436,8437,8892,8893,9360,9361,9840,9841,10332,10333,10836,10837,11352,11353,11880,11881,12420,12421,12972,12973,13536,13537,14112,14113,14700,14701,15300,15301,15912,15913,16536,16537,17172,17173,17820,17821,18480,18481,19152,19153,19836,19837,20532,20533,21240,21241,21960,21961,22692,22693,23436,23437,24192,24193,24960,24961,25740,25741,26532,26533,27336,27337,28152,28153,28980,28981,29820,29821,30672,30673,31536,31537,32412,32413,33300,33301,34200,34201,35112,35113,36036,36037,36972,36973,37920,37921,38880,38881,39852,39853,40836,40837,41832,41833,42840,42841,43860,43861,44892,44893,45936,45937,46992,46993,48060,48061,49140,49141,50232,50233,51336,51337,52452,52453,53580,53581,54720,54721,55872,55873,57036,57037,58212,58213,59400,59401,60600,60601,61812,61813,63036,63037,64272,64273,65520,65521,66780,66781,68052,68053,69336,69337,70632,70633,71940,71941,73260,73261,74592,74593,75936,75937,77292,77293,78660,78661,80040,80041,81432,81433,82836,82837,84252,84253,85680,85681,87120,87121,88572,88573,90036,90037,91512,91513,93000,93001 add $0,1 mov $1,$0 mov $2,1 mov $3,2 lpb $0,1 sub $0,1 trn $0,1 add $1,$3 add $1,$3 sub $1,$2 mov $2,6 add $3,6 lpe add $0,1 sub $1,3 sub $1,$0
81.45
1,383
0.782689
4447d2123a951154e767ac142ee8e91910f73280
7,543
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1771.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1771.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1771.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 %r14 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x150c6, %r14 nop nop nop and $44627, %r8 mov $0x6162636465666768, %r10 movq %r10, %xmm4 movups %xmm4, (%r14) nop nop cmp $125, %rdi lea addresses_UC_ht+0xfe0e, %r12 nop nop nop nop sub $32596, %r13 mov (%r12), %dx add %r13, %r13 lea addresses_WT_ht+0x1d786, %r13 clflush (%r13) nop cmp $44296, %r12 movb $0x61, (%r13) and $19038, %rdi lea addresses_WT_ht+0x4946, %rsi lea addresses_WT_ht+0x1ebc6, %rdi nop nop and $1477, %r12 mov $63, %rcx rep movsl dec %r8 lea addresses_normal_ht+0x803e, %rsi lea addresses_UC_ht+0x1c6, %rdi nop nop nop nop sub %r10, %r10 mov $84, %rcx rep movsb add %r8, %r8 lea addresses_A_ht+0x1edc6, %r14 nop nop nop xor %rsi, %rsi movl $0x61626364, (%r14) nop nop sub $50742, %r14 lea addresses_UC_ht+0x1de6, %r13 nop nop nop dec %r8 movups (%r13), %xmm2 vpextrq $0, %xmm2, %rdi nop and %rdx, %rdx lea addresses_WT_ht+0x185c6, %r10 nop nop nop nop nop dec %rdx mov (%r10), %r13w nop nop nop nop nop and $25786, %r10 lea addresses_normal_ht+0x7b5a, %rsi lea addresses_A_ht+0x1da46, %rdi nop nop sub %rdx, %rdx mov $57, %rcx rep movsb nop nop cmp %r8, %r8 lea addresses_UC_ht+0xe5c6, %r12 nop nop nop nop xor %rdx, %rdx mov $0x6162636465666768, %r10 movq %r10, %xmm4 movups %xmm4, (%r12) nop nop nop nop add $37531, %r14 pop %rsi pop %rdx pop %rdi pop %rcx pop %r8 pop %r14 pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r8 push %r9 push %rbp push %rbx push %rdx // Store lea addresses_A+0x5766, %r8 nop nop nop sub %r14, %r14 mov $0x5152535455565758, %rdx movq %rdx, %xmm5 movups %xmm5, (%r8) nop nop dec %rbx // Store lea addresses_RW+0x14856, %rdx nop add %r12, %r12 mov $0x5152535455565758, %r8 movq %r8, %xmm5 vmovups %ymm5, (%rdx) nop nop nop nop nop and %r9, %r9 // Store lea addresses_PSE+0x13a3c, %r14 nop nop nop sub $57813, %r8 movb $0x51, (%r14) nop nop and %r9, %r9 // Store lea addresses_WC+0x15cc6, %r8 nop nop xor %r12, %r12 mov $0x5152535455565758, %r14 movq %r14, %xmm7 movups %xmm7, (%r8) nop nop nop nop nop and $23152, %r8 // Faulty Load lea addresses_RW+0x5c6, %rdx nop nop nop sub %rbp, %rbp movb (%rdx), %r8b lea oracles, %rbx and $0xff, %r8 shlq $12, %r8 mov (%rbx,%r8,1), %r8 pop %rdx pop %rbx pop %rbp pop %r9 pop %r8 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 5, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 3, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 1, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 7, 'size': 16, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 6, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': True, 'congruent': 3, 'size': 2, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 6, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 9, 'size': 4, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 5, 'size': 16, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': True, 'congruent': 11, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 11, 'size': 16, 'same': False, 'NT': False}} {'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 */
32.938865
2,999
0.654912
4fd12b03f5d4dad0cce2a2669f111b21f62a1742
1,275
asm
Assembly
book-01/Assembly/asm/avx/packed/avx_p_shift_integer.asm
gfurtadoalmeida/study-assembly-x64
4acdefb015d44706c60bd7ea5d94f726c4dbcbb4
[ "MIT" ]
2
2021-02-27T04:50:26.000Z
2022-03-15T23:27:12.000Z
book-01/Assembly/asm/avx/packed/avx_p_shift_integer.asm
gfurtadoalmeida/study-assembly-x64
4acdefb015d44706c60bd7ea5d94f726c4dbcbb4
[ "MIT" ]
null
null
null
book-01/Assembly/asm/avx/packed/avx_p_shift_integer.asm
gfurtadoalmeida/study-assembly-x64
4acdefb015d44706c60bd7ea5d94f726c4dbcbb4
[ "MIT" ]
null
null
null
.code ; bool AVX_Packed_Shift_Integer_(const XmmVal & input, XmmVal & results, ShiftOp shift_op, unsigned int count); AVX_Packed_Shift_Integer_ proc mov r8d, r8d ; Just to zero extend cmp r8, ShiftOpJumpTableCount jae BadShiftOp vmovdqa xmm0, xmmword ptr [rcx] ; xmm0 = input vmovd xmm1, r9d ; xmm1 = shift count mov eax, 1 mov r10, ShiftOpJumpTable jmp qword ptr [r10+r8*type qword] U16_LOG_LEFT: vpsllw xmm2, xmm0, xmm1 vmovdqa xmmword ptr [rdx], xmm2 ret U16_LOG_RIGHT: vpsrlw xmm2, xmm0, xmm1 vmovdqa xmmword ptr [rdx], xmm2 ret U16_ARITH_RIGHT: vpsraw xmm2, xmm0, xmm1 vmovdqa xmmword ptr [rdx], xmm2 ret U32_LOG_LEFT: vpslld xmm2, xmm0, xmm1 vmovdqa xmmword ptr [rdx], xmm2 ret U32_LOG_RIGHT: vpsrld xmm2, xmm0, xmm1 vmovdqa xmmword ptr [rdx], xmm2 ret U32_ARITH_RIGHT: vpsrad xmm2, xmm0, xmm1 vmovdqa xmmword ptr [rdx], xmm2 ret BadShiftOp: xor rax, rax vpxor xmm0, xmm0, xmm0 vmovdqa xmmword ptr [rdx], xmm0 ret align 8 ; Must have the same order as defined in the ; "CvtOp" enum at "avx.h" ShiftOpJumpTable equ $ qword U16_LOG_LEFT qword U16_LOG_RIGHT qword U16_ARITH_RIGHT qword U32_LOG_LEFT qword U32_LOG_RIGHT qword U32_ARITH_RIGHT ShiftOpJumpTableCount equ ($-ShiftOpJumpTable)/size qword AVX_Packed_Shift_Integer_ endp end
19.318182
111
0.766275
2a129f7424e4f8c06db862e0d3a6e36e75058e86
1,092
asm
Assembly
tests/devices/savedev/savedev.asm
cizo2000/sjasmplus
615d7c0e09a44aa2a923095fc9ed6dca6ecae4a4
[ "BSD-3-Clause" ]
220
2016-10-22T19:44:39.000Z
2022-03-29T20:57:04.000Z
tests/devices/savedev/savedev.asm
ped7g/sjasmplus
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
[ "BSD-3-Clause" ]
153
2018-05-07T10:31:23.000Z
2022-03-30T04:35:59.000Z
tests/devices/savedev/savedev.asm
ped7g/sjasmplus
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
[ "BSD-3-Clause" ]
51
2016-05-12T21:27:36.000Z
2022-03-27T15:16:16.000Z
; test only valid variants in this test, the invalid/error states are in savedevB.asm ; (because existence of LST file would kill the result of binary compares from .cli run) ; (and .cli is used to make the test work with gzipped binaries) ; The test binaries do contain also ordinary ZX128 default RAM area values (CLS, sysvar, ; stack), so any changes to the device in future will make binaries obsolete = update it. DEVICE ZXSPECTRUM128 MMU 0 3, 0 ; map pages 0,1,2,3, write tags into them ORG $0000 : DB "00" : ORG $4000 : DB "11" : ORG $8000 : DB "22" : ORG $C000 : DB "33" MMU 0 3, 4 ; map pages 0,1,2,3, write tags into them ORG $0000 : DB "44" : ORG $4000 : DB "55" : ORG $8000 : DB "66" : ORG $C000 : DB "77" ; save 128kiB binary blob of whole device memory SAVEDEV "savedev1.bin", 0, 0x0000, 0x20000 SAVEDEV "savedev2.bin", 1, 0x0000, 0x20000-0xBFFE ; save second blob from "11".."66" SAVEDEV "savedev3.bin", 0, 0x4000, 0x20000-0xBFFE ; third blob from "11".."66" ; ^^^ by using start offset instead of page
68.25
90
0.656593
828cd8304131a2356100146cafdbf841250ff60f
433
asm
Assembly
programs/oeis/224/A224134.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/224/A224134.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/224/A224134.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A224134: Number of 3 X n 0..1 arrays with rows nondecreasing and antidiagonals unimodal. ; 8,27,58,106,175,269,392,548,741,975,1254,1582,1963,2401,2900,3464,4097,4803,5586,6450,7399,8437,9568,10796,12125,13559,15102,16758,18531,20425,22444,24592,26873,29291,31850,34554,37407,40413,43576,46900,50389,54047 mov $1,3 lpb $0 add $1,3 add $1,$0 sub $0,1 mov $2,1 add $3,$1 lpe add $1,4 mul $3,2 add $2,$3 add $1,$2 add $1,1
25.470588
216
0.706697
78a125877f096a727196d6147979ab902a262832
32
asm
Assembly
src/main/fragment/mos6502-common/pbuc1_derefidx_(pbuc2_derefidx_vbuxx)=pbuc3_derefidx_vbuxx.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/pbuc1_derefidx_(pbuc2_derefidx_vbuxx)=pbuc3_derefidx_vbuxx.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/pbuc1_derefidx_(pbuc2_derefidx_vbuxx)=pbuc3_derefidx_vbuxx.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
lda {c3},x ldy {c2},x sta {c1},y
10.666667
10
0.5625
78c6bc8adac5480dd64ddc1f20d200d70beb55a9
6,083
asm
Assembly
lab_11/src/tooltip.asm
migregal/bmstu_iu7_asm
f33e37b38af3e801dd4c4e9d5171272f6293c417
[ "MIT" ]
2
2021-04-09T14:34:37.000Z
2021-05-24T20:03:30.000Z
lab_11/src/tooltip.asm
migregal/bmstu_iu7_asm
f33e37b38af3e801dd4c4e9d5171272f6293c417
[ "MIT" ]
null
null
null
lab_11/src/tooltip.asm
migregal/bmstu_iu7_asm
f33e37b38af3e801dd4c4e9d5171272f6293c417
[ "MIT" ]
null
null
null
; Name : tooltip.asm ; ; Build : aclocal && autoconf && automake --add-missing --foreign ; mkdir build ; cd build ; ../configure ; make ; ; Description : tooltip demo ; ; Source : http://zetcode.com/gui/gtk2/firstprograms/ bits 64 [list -] %define TRUE 1 %define FALSE 0 %define NULL 0 extern gtk_init extern gtk_window_new extern gtk_window_set_title extern gtk_window_set_default_size extern gtk_container_set_border_width extern gtk_button_new_with_label extern gtk_spin_button_new_with_range extern gtk_spin_button_set_digits extern gtk_spin_button_get_value extern gtk_spin_button_set_value extern gtk_label_new extern gtk_label_set_text extern gtk_box_new extern gtk_widget_set_tooltip_text extern gtk_container_add extern gtk_widget_show_all extern gtk_main_quit extern g_signal_connect_data extern gtk_main extern exit extern g_strdup_printf extern g_free extern printf [list +] section .rodata szTitle: db "Lab 11", 0 szDestroy: db "destroy", 0 szTooltip: db "Button Widget",0 szFloatMask db "%.2f", 0 section .data window: dq 0 vbox: dq 0 a_spin: dq 0 b_spin: dq 0 button: .handle: dq 0 .label: db "Sum", 0 signal: .clicked: db "clicked", 0 res_label: .handle dq 0 .default: dq "0,00", 0 .one: dq "1", 0 .two: dq "2", 0 str: dq 0 section .text global _start button_clicked: push rsi pxor xmm0, xmm0 pxor xmm1, xmm1 ; xor rax, rax mov rdi, qword[a_spin] call gtk_spin_button_get_value movsd xmm1, xmm0 ; pxor xmm0, xmm0 mov rdi, qword[b_spin] call gtk_spin_button_get_value addsd xmm0, xmm1 movq qword[rcx], xmm0 mov rsi, rcx mov rax, 1 mov rdi, szFloatMask call g_strdup_printf mov [str], rax mov rdi, qword[res_label.handle] mov rsi, [str] call gtk_label_set_text mov rdi, [str] call g_free mov qword[str], 0 pop rsi ret _start: ;init gtk xor rsi,rsi ;argv xor rdi,rdi ;argc call gtk_init ;the main window xor rdi,rdi ;GTK_WINDOW_TOPLEVEL call gtk_window_new mov qword[window],rax ;set title mov rdi,qword[window] mov rsi,szTitle call gtk_window_set_title ;set size mov rdi,qword[window] mov rsi,300 ;width mov rdx,200 ;height call gtk_window_set_default_size ;set border width mov rdi,qword[window] mov rsi,15 ;borderwidth call gtk_container_set_border_width mov rdi, TRUE mov rsi, 1 call gtk_box_new mov qword[vbox], rax ;add the a_spin to the vbox container mov rdi, __?float64?__(0.0) movq XMM0, rdi mov rsi, __?float64?__(1000.0) movq XMM1, rsi mov rdx, __?float64?__(1.0) movq XMM2, rdx call gtk_spin_button_new_with_range mov qword[a_spin],rax mov rdi, rax mov rsi, 2 movq XMM0, rsi call gtk_spin_button_set_digits mov rdi,qword[vbox] mov rsi,qword[a_spin] call gtk_container_add ;add the b_spin to the vbox container mov rdi, __?float64?__(0.0) movq XMM0, rdi mov rsi, __?float64?__(1000.0) movq XMM1, rsi mov rdx, __?float64?__(1.0) movq XMM2, rdx call gtk_spin_button_new_with_range mov qword[b_spin],rax mov rdi, rax mov rsi, 2 movq XMM0, rsi call gtk_spin_button_set_digits mov rdi,qword[vbox] mov rsi,qword[b_spin] call gtk_container_add ;add the button to the vbox container mov rdi,button.label call gtk_button_new_with_label mov qword[button],rax mov rdi,qword[button] mov rsi,szTooltip call gtk_widget_set_tooltip_text mov rdi,qword[vbox] mov rsi,qword[button] call gtk_container_add ;add the label to the vbox container call gtk_label_new mov qword[res_label.handle], rax mov rdi,qword[res_label.handle] mov rsi,res_label.default call gtk_label_set_text mov rdi,qword[vbox] mov rsi,qword[res_label.handle] call gtk_container_add ;add the vbox container to the window mov rdi,qword[window] mov rsi,qword[vbox] call gtk_container_add ; signal for button xor r9d, r9d xor r8d, r8d mov rcx, NULL mov rdx, button_clicked mov rsi, signal.clicked mov rdi, qword[button.handle] call g_signal_connect_data ;show window mov rdi,qword[window] call gtk_widget_show_all ;connect destroy signal to the window xor r9d,r9d ;combination of GConnectFlags xor r8d,r8d ;a GClosureNotify for data mov rcx,qword[window] ;pointer to window instance in RCX mov rdx,gtk_main_quit ;pointer to the handler mov rsi,szDestroy ;pointer to the signal mov rdi,qword[window] ;pointer to window instance in RDI call g_signal_connect_data ;the value in RAX is the handler, but we don't store it now ;go into application main loop call gtk_main ;exit program xor rdi, rdi call exit
25.775424
100
0.558606
6097d6150012ee46602b1e55659c7d0f4aac3a7a
1,387
asm
Assembly
programs/oeis/249/A249079.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/249/A249079.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/249/A249079.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A249079: a(n) = 29*n + floor( n/29 ) + 0^( 1-floor( (14+(n mod 29))/29 ) ). ; 0,29,58,87,116,145,174,203,232,261,290,319,348,377,406,436,465,494,523,552,581,610,639,668,697,726,755,784,813,842,871,900,929,958,987,1016,1045,1074,1103,1132,1161,1190,1219,1248,1278,1307,1336,1365,1394,1423,1452,1481,1510,1539,1568,1597,1626,1655,1684,1713,1742,1771,1800,1829,1858,1887,1916,1945,1974,2003,2032,2061,2090,2120,2149,2178,2207,2236,2265,2294,2323,2352,2381,2410,2439,2468,2497,2526,2555,2584,2613,2642,2671,2700,2729,2758,2787,2816,2845,2874,2903,2932,2962,2991,3020,3049,3078,3107,3136,3165,3194,3223,3252,3281,3310,3339,3368,3397,3426,3455,3484,3513,3542,3571,3600,3629,3658,3687,3716,3745,3774,3804,3833,3862,3891,3920,3949,3978,4007,4036,4065,4094,4123,4152,4181,4210,4239,4268,4297,4326,4355,4384,4413,4442,4471,4500,4529,4558,4587,4616,4646,4675,4704,4733,4762,4791,4820,4849,4878,4907,4936,4965,4994,5023,5052,5081,5110,5139,5168,5197,5226,5255,5284,5313,5342,5371,5400,5429,5458,5488,5517,5546,5575,5604,5633,5662,5691,5720,5749,5778,5807,5836,5865,5894,5923,5952,5981,6010,6039,6068,6097,6126,6155,6184,6213,6242,6271,6300,6330,6359,6388,6417,6446,6475,6504,6533,6562,6591,6620,6649,6678,6707,6736,6765,6794,6823,6852,6881,6910,6939,6968,6997,7026,7055,7084,7113,7142,7172,7201,7230 mov $2,$0 mov $4,$0 lpb $2,1 add $0,1 sub $2,29 lpe mov $1,$0 mov $3,$4 mul $3,28 add $1,$3
99.071429
1,211
0.754867
2a3bf04cae0710517c848c471a7d6549a5a62252
7,341
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca_notsx.log_21829_107.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca_notsx.log_21829_107.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca_notsx.log_21829_107.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 %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0xbec6, %r10 clflush (%r10) nop cmp $5199, %rbp mov (%r10), %r12d nop nop cmp $49076, %r9 lea addresses_WC_ht+0x1db70, %rsi lea addresses_D_ht+0x35b0, %rdi nop dec %rax mov $34, %rcx rep movsq nop nop nop nop dec %r9 lea addresses_WT_ht+0x1e70, %rsi lea addresses_normal_ht+0x7e70, %rdi nop nop nop dec %r10 mov $14, %rcx rep movsl nop nop nop nop lfence lea addresses_UC_ht+0x3670, %rsi nop nop nop nop nop add $58356, %r12 movw $0x6162, (%rsi) nop nop nop nop nop dec %rsi lea addresses_WT_ht+0xf792, %rax nop nop cmp %rbp, %rbp mov (%rax), %rsi nop nop lfence lea addresses_D_ht+0x1b320, %rsi lea addresses_D_ht+0x1e26, %rdi nop nop nop nop nop cmp $37849, %rbp mov $48, %rcx rep movsq nop nop nop nop nop cmp %r12, %r12 lea addresses_WC_ht+0x1370, %rsi lea addresses_UC_ht+0x3d10, %rdi nop nop add %r12, %r12 mov $36, %rcx rep movsw nop nop nop add %rbp, %rbp pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r8 push %rax push %rbp push %rbx push %rdi push %rdx // Store lea addresses_D+0x10070, %rbx clflush (%rbx) nop nop nop sub %rdi, %rdi mov $0x5152535455565758, %r13 movq %r13, %xmm4 movups %xmm4, (%rbx) nop nop nop sub %rax, %rax // Store lea addresses_RW+0x18c70, %rbx clflush (%rbx) nop nop nop nop sub $51963, %rdx mov $0x5152535455565758, %rax movq %rax, %xmm5 movups %xmm5, (%rbx) nop nop nop sub %rax, %rax // Store mov $0x47837f0000000c96, %rdx clflush (%rdx) nop nop nop cmp $8459, %rbp movw $0x5152, (%rdx) nop and $30362, %rdi // Store lea addresses_UC+0xdcb0, %rbp nop nop nop nop nop and $52347, %r13 mov $0x5152535455565758, %rdx movq %rdx, (%rbp) nop nop nop nop inc %rdx // Store lea addresses_PSE+0x1ae70, %rax clflush (%rax) nop nop nop nop and $11425, %rbp movl $0x51525354, (%rax) nop add $48689, %rdi // Load mov $0x101b9b0000000a70, %rbx nop nop nop dec %rax movups (%rbx), %xmm0 vpextrq $0, %xmm0, %r13 nop inc %rbx // Faulty Load lea addresses_PSE+0x1ae70, %r13 nop add $58277, %rbp movb (%r13), %dl lea oracles, %rbx and $0xff, %rdx shlq $12, %rdx mov (%rbx,%rdx,1), %rdx pop %rdx pop %rdi pop %rbx pop %rbp pop %rax pop %r8 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7, 'same': False, 'type': 'addresses_D'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 9, 'same': False, 'type': 'addresses_RW'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 1, 'same': False, 'type': 'addresses_NC'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 6, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_PSE'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 9, 'same': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_PSE'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 6, 'same': True, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 10, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'src': {'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'} {'54': 21829} 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 */
31.371795
2,999
0.656723
a278adafc8aa0bbbf28d51cdb86a91885ea44137
546
asm
Assembly
programs/oeis/132/A132029.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/132/A132029.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/132/A132029.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A132029: Product{0<=k<=floor(log_5(n)), floor(n/5^k)}, n>=1. ; 1,2,3,4,5,6,7,8,9,20,22,24,26,28,45,48,51,54,57,80,84,88,92,96,125,130,135,140,145,180,186,192,198,204,245,252,259,266,273,320,328,336,344,352,405,414,423,432,441,1000,1020,1040,1060,1080,1210,1232,1254,1276,1298,1440,1464,1488,1512,1536,1690,1716,1742,1768,1794,1960,1988,2016,2044,2072,3375,3420,3465,3510,3555,3840,3888,3936,3984,4032,4335,4386,4437,4488,4539,4860,4914,4968,5022,5076,5415,5472,5529,5586,5643,8000 add $0,1 mov $1,1 lpb $0 mul $1,$0 div $0,5 lpe mov $0,$1
49.636364
419
0.708791
71d69579f110d4e1cb3c3b56f58566c8fb8a6435
16,742
asm
Assembly
vga-3/vga-3.asm
indigodarkwolf/vga
9abc48dde0907e9f046d3e4e6087bf676c165afc
[ "MIT" ]
3
2021-03-04T16:47:30.000Z
2021-12-20T00:32:24.000Z
vga-3/vga-3.asm
indigodarkwolf/vga
9abc48dde0907e9f046d3e4e6087bf676c165afc
[ "MIT" ]
null
null
null
vga-3/vga-3.asm
indigodarkwolf/vga
9abc48dde0907e9f046d3e4e6087bf676c165afc
[ "MIT" ]
1
2021-01-07T10:38:13.000Z
2021-01-07T10:38:13.000Z
; Working with VGA modes ; Written to NASM 2.14, and tested under DOSBox 0.74 ; ; Derived from listings 23-1 and 24-1 of Michael Abrash's Graphics Programming Black Book. ; ; By Stephen Horn ;------------------------------------- ; ; Defines ; ;------------------------------------- ; ; VGA registers ; ; Attribute Controller AC_INDEX_DATA_REG equ 03C0h ; CRT Controller CRTC_INDEX_COLOR_REG equ 3D4h CRTC_DATA_COLOR_REG equ 3D5h CRTC_INDEX_MONO_REG equ 3B4h CRTC_DATA_MONO_REG equ 3B5h ; Sequence Controller SC_INDEX_REG equ 3C4h SC_DATA_REG equ 3C5h ; Graphics Controller GC_INDEX_REG equ 3CEh GC_DATA_REG equ 3CFh ; Others INPUT_STATUS_1_COLOR_REG equ 03DAh ; read from this to reset AC index/data to index INPUT_STATUS_1_MONO_REG equ 03BAh ; read from this to reset AC index/data to index ; ; VGA register indices ; CRTC_OFFSET equ 19 ; 13h CRTC_START_ADDRESS_LOW equ 13 ; 0Dh CRTC_START_ADDRESS_HIGH equ 12 ; 0Ch SC_MAP_MASK equ 2 GC_SET_RESET equ 0 GC_ENABLE_SET_RESET equ 1 GC_ROTATE equ 3 GC_MODE equ 5 ; ; VGA modes ; ; "True" graphical modes ; VGA_MODE_320x200 equ 00Dh VGA_MODE_640x200 equ 00Eh VGA_MODE_640x350 equ 010h VGA_MODE_640x480 equ 012h ; Note that there isn't enough VGA memory for double-buffering in this mode ; "Mode X" ; VGA_MODE_X equ 13h ; ; Status bits from status register 1 ; INPUT_STATUS_1_DISPLAY_ENABLED equ 01h INPUT_STATUS_1_VSYNC equ 08h ; ; GC Logic Modes ; GC_ROTATE_UNMODIFIED equ 000h GC_ROTATE_AND equ 008h GC_ROTATE_OR equ 010h GC_ROTATE_XOR equ 018h ; ; CONFIGURATION ; VGA_MODE equ VGA_MODE_640x350 ; ; Memory offsets ; VIDEO_SEGMENT equ 0a000h ; Displayed VGA memory maps to this address %if VGA_MODE == VGA_MODE_320x200 VIDEO_BUFFER_WIDTH equ 320/8 ; Width in bytes VIDEO_BUFFER_HEIGHT equ 200 ; Height in scanlines %elif VGA_MODE == VGA_MODE_640x200 VIDEO_BUFFER_WIDTH equ 640/8 ; Width in bytes VIDEO_BUFFER_HEIGHT equ 200 ; Height in scanlines %elif VGA_MODE == VGA_MODE_640x350 VIDEO_BUFFER_WIDTH equ 640/8 ; Width in bytes VIDEO_BUFFER_HEIGHT equ 350 ; Height in scanlines %elif VGA_MODE == VGA_MODE_640x480 VIDEO_BUFFER_WIDTH equ 640/8 ; Width in bytes VIDEO_BUFFER_HEIGHT equ 480 ; Height in scanlines %else %error "Unhandled value specified for VGA_MODE" %endif %if VGA_MODE != VGA_MODE_640x480 PAGE0_OFFSET equ 0 PAGE1_OFFSET equ (VIDEO_BUFFER_WIDTH * VIDEO_BUFFER_HEIGHT) BLANK_OFFSET equ PAGE1_OFFSET * 2 BALL_OFFSET equ BLANK_OFFSET + 8*2 %else PAGE0_OFFSET equ 0 PAGE1_OFFSET equ 0 BLANK_OFFSET equ (VIDEO_BUFFER_WIDTH * VIDEO_BUFFER_HEIGHT) BALL_OFFSET equ BLANK_OFFSET + 8*2 %endif ;------------------------------------- ; ; Macros ; ;------------------------------------- org 100h section .text ; ; Assert that a given comparison %1 resulted in equality, else exit and print string %2 ; %macro ASSERT 3 ; Uses ax, dx; but only if assert is triggered %1 %2 %%no_assert jmp %%assert section .data %%message: db %3, '$' section .text %%assert: mov ax, 3 ; reset to text mode display int 10h; mov dx, %%message mov ah, 09h ; Display $-terminated string in dx int 21h int3 mov ah, 4Ch ; exit back to DOS int 21h %%no_assert: %endmacro ; ; Macro to set register P1, index P2 to value P3. ; %macro SET_VGA_REGISTER 3 ; Uses ax, dx %ifidni %3, ax %error "SET_VGA_REGISTER requires register ax, but ax was specified as value" %endif %ifidni %3, al %error "SET_VGA_REGISTER requires register ax, but al was specified as value" %endif %ifidni %3, dx %error "SET_VGA_REGISTER requires register dx, but dx was specified as value" %endif mov dx, %1 mov al, %2 %if %1 == AC_INDEX_DATA_REG out dx, al ; The AC index/data register is different from the mov al, %3 ; others, in that it toggles from index to data out dx, al ; and thus requires two byte outs to the same address. %else %ifidni %3, ah %else ; Though it would be "normal" to do two byte outs mov ah, %3 ; anyways, we can take a shortcut and do a word %endif ; out, because the high byte will go to the register out dx, ax ; index + 1. %endif %endmacro ; ; Macro to modify register P1, index P2 by turning off bits P3 and then setting bits P4. ; %macro MODIFY_VGA_REGISTER 4 ; Uses ax, dx %ifidni %3, ax %error "MODIFY_VGA_REGISTER requires register ax, but ax was specified as value" %endif %ifidni %3, al %error "MODIFY_VGA_REGISTER requires register ax, but al was specified as value" %endif %ifidni %3, dx %error "MODIFY_VGA_REGISTER requires register dx, but dx was specified as value" %endif %ifidni %4, ax %error "MODIFY_VGA_REGISTER requires register ax, but ax was specified as value" %endif %ifidni %4, al %error "MODIFY_VGA_REGISTER requires register ax, but al was specified as value" %endif %ifidni %4, dx %error "MODIFY_VGA_REGISTER requires register dx, but dx was specified as value" %endif ; Set VGA register %1 to index %2 mov dx, %1 mov al, %2 out dx, al inc dx ; The data register is on the next port value jmp $+2 ; This is a delay to let the bus settle in al, dx %ifnum %3 and al, ~%3 %else not %3 and al, %3 not %3 %endif or al, %4 jmp $+2 ; According to my sample code (Abrash listing 23-1), this delay is also needed to let the bus settle. out dx, al %endmacro ; ; Macro to reset the AC index/data register to index-mode ; %macro RESET_AC_INDEX_DATA_REG 0 ; Uses ax, dx mov dx, INPUT_STATUS_1_COLOR_REG in al, dx %endmacro ;------------------------------------- ; ; Main function ; ;------------------------------------- start: ; ; Set video mode to 010h (640x350 VGA) ; mov ax, VGA_MODE int 10h mov ax, VIDEO_SEGMENT mov es, ax ; Set the logical screen width SET_VGA_REGISTER CRTC_INDEX_COLOR_REG, CRTC_OFFSET, (VIDEO_BUFFER_WIDTH / 2) ; Draw borders on both pages push bx mov bx, 0D0Fh mov di, PAGE0_OFFSET call draw_border mov bx, 0D0Fh mov di, PAGE1_OFFSET call draw_border pop bx SET_VGA_REGISTER SC_INDEX_REG, SC_MAP_MASK, 0fh mov al, 0 mov di, BALL_OFFSET mov cx, 2*8*9 rep stosb SET_VGA_REGISTER SC_INDEX_REG, SC_MAP_MASK, 0fh ; Fuck it, draw to all the planes. mov si, BallPlane0Image mov di, BALL_OFFSET mov cx, 2*8*8 rep movsb SET_VGA_REGISTER SC_INDEX_REG, SC_MAP_MASK, 02h ; Green plane mov si, BallPlane0Image mov di, BALL_OFFSET mov cx, 2*8*8 rep movsb SET_VGA_REGISTER SC_INDEX_REG, SC_MAP_MASK, 0fh .main_loop: MODIFY_VGA_REGISTER GC_INDEX_REG, GC_MODE, 03h, 03h push bp mov bp, NUM_BALLS * 2 - 2 .erase_balls: mov si, BLANK_OFFSET mov cx, word [Ball_last_pos_x + bp] mov dx, word [Ball_last_pos_y + bp] ; All ball positions have been premultiplied by 1 << 4 so that we can represent sub-pixel movement ; The X coordinate needs to be shifted another 3 bits because balls can only be drawn on 8-bit ; alignments. ; So cast back to pixel coordinates before erasing shr cx, 7 shr dx, 4 call draw_ball dec bp dec bp jns .erase_balls MODIFY_VGA_REGISTER GC_INDEX_REG, GC_MODE, 03h, 01h mov bp, NUM_BALLS * 2 - 2 .update_balls: mov cx, word [Ball_pos_x + bp] mov word [Ball_last_pos_x + bp], cx mov dx, word [Ball_pos_y + bp] mov word [Ball_last_pos_y + bp], dx ; Apply the ball's acceleration to its velocity, ; and its consequent velocity to its position mov ax, word [Ball_vel_x + bp] add ax, word [Ball_accel_x + bp] mov bx, ax add ax, cx ; If the ball is about to move out-of-bounds, ; set its position to the boundary edge and ; negate its velocity cmp ax, ((VIDEO_BUFFER_WIDTH-1)*8) << 4 jl .within_right_boundary mov ax, ((VIDEO_BUFFER_WIDTH-2)*8) << 4 neg bx .within_right_boundary: cmp ax, (8 << 4) - 1 jg .within_left_boundary mov ax, 8 << 4 neg bx .within_left_boundary: mov word [Ball_pos_x + bp], ax mov word [Ball_vel_x + bp], bx mov cx, ax ;; Now the same thing for the y component mov ax, word [Ball_vel_y + bp] add ax, word [Ball_accel_y + bp] mov bx, ax add ax, dx cmp ax, (VIDEO_BUFFER_HEIGHT-15) << 4 jl .within_bottom_boundary mov ax, (VIDEO_BUFFER_HEIGHT-16) << 4 neg bx .within_bottom_boundary: cmp ax, 7 << 4 jg .within_top_boundary mov ax, 8 << 4 neg bx .within_top_boundary: mov word [Ball_pos_y + bp], ax mov word [Ball_vel_y + bp], bx mov dx, ax ; All ball positions have been premultiplied by 1 << 4 so that we can represent sub-pixel movement ; So cast back to pixel coordinates before erasing shr cx, 4 shr dx, 4 ; VGA only lets us write ball data to 8-pixel boundaries. To allow pixel movement, we're keeping ; 8 copies of the ball in memory, each bit rotated across two bytes according to how many pixels ; it's been shifted. Think of this as 8 animation frames, and we're selecting which one to draw ; right here. mov ax, cx and ax, 07h shl ax, 4 add ax, BALL_OFFSET mov si, ax ; Now let's fix the ball's position to its 8-bit alignment ; Since there's 8 "frames", that's conveniently a shift operation. shr cx, 3 call draw_ball dec bp dec bp jns .update_balls pop bp call wait_for_display_enable ; Page flipping, part 1 (set page we were drawing on to be the displayed VGA page) SET_VGA_REGISTER CRTC_INDEX_COLOR_REG, CRTC_START_ADDRESS_LOW, [Current_page_offset] SET_VGA_REGISTER CRTC_INDEX_COLOR_REG, CRTC_START_ADDRESS_HIGH, [Current_page_offset+1] call wait_for_vsync ; If we were doing horizontal panning, here would be a grand spot to do that, just as the ; new visible page address takes effect. ; Page flipping, part 2 (update the page we're drawing to) xor byte [Current_page], 1 jnz .flip_to_1 .flip_to_0: mov word [Current_page_offset], PAGE0_OFFSET jmp .done_flipping .flip_to_1: mov word [Current_page_offset], PAGE1_OFFSET .done_flipping: ; ; Exit if a key's been hit ; mov ah, 1 int 16h jz .main_loop mov ah, 0 ; Clear the keypress int 16h mov ax, 3 ; reset to text mode display int 10h; mov ah, 4Ch ; exit back to DOS int 21h ;------------------------------------- ; ; Other Functions ; ;------------------------------------- wait_for_vsync: mov dx, INPUT_STATUS_1_COLOR_REG .wait1: in al, dx and al, INPUT_STATUS_1_VSYNC jnz .wait1 .wait2: in al, dx and al, INPUT_STATUS_1_VSYNC jz .wait2 ret wait_for_display_enable: mov dx, INPUT_STATUS_1_COLOR_REG .wait1: in al, dx and al, INPUT_STATUS_1_DISPLAY_ENABLED jnz .wait1 ret ;------------------------------------- ; ; Drawing Functions ; ;------------------------------------- draw_ball: ; We expect the ball data to be pointed to by si ; We expect the ball's x position to be cx ; We expect the ball's y position to be dx mov ax, VIDEO_BUFFER_WIDTH mul dx add ax, cx add ax, word [Current_page_offset] push di push bp push ds mov di, ax ; Our write offset into video memory mov bp, 8 ; Height of the ball in scanlines push es ; We won't be modifying es, but this conveniently puts VIDEO_SEGMENT somewhere we can reach it pop ds ; ...because we're setting ds to VIDEO_SEGMENT .draw_loop: push di ; Copy the write offset starting position to stack mov cx, 2 rep movsb ; Copy ds:si to es:di pop di add di, VIDEO_BUFFER_WIDTH dec bp jnz .draw_loop pop ds pop bp pop di ret draw_border: push di mov cx, VIDEO_BUFFER_HEIGHT / 16 .left_side: SET_VGA_REGISTER SC_INDEX_REG, SC_MAP_MASK, bl; 0Ch ; Setting draw color to red call draw_box_8x8 add di, VIDEO_BUFFER_WIDTH * 8 SET_VGA_REGISTER SC_INDEX_REG, SC_MAP_MASK, bh; 0Eh ; Setting draw color to yellow call draw_box_8x8 add di, VIDEO_BUFFER_WIDTH * 8 loop .left_side pop di push di add di, VIDEO_BUFFER_WIDTH - 1 mov cx, VIDEO_BUFFER_HEIGHT / 16 .right_side: SET_VGA_REGISTER SC_INDEX_REG, SC_MAP_MASK, bl; 0Ch ; Setting draw color to red call draw_box_8x8 add di, VIDEO_BUFFER_WIDTH * 8 SET_VGA_REGISTER SC_INDEX_REG, SC_MAP_MASK, bh; 0Eh ; Setting draw color to yellow call draw_box_8x8 add di, VIDEO_BUFFER_WIDTH * 8 loop .right_side pop di push di mov cx, (VIDEO_BUFFER_WIDTH - 2) / 2 .top_side: inc di SET_VGA_REGISTER SC_INDEX_REG, SC_MAP_MASK, bh; 0Eh ; Color yellow call draw_box_8x8 inc di SET_VGA_REGISTER SC_INDEX_REG, SC_MAP_MASK, bl; 0Ch ; Color red call draw_box_8x8 loop .top_side pop di add di, (VIDEO_BUFFER_HEIGHT - 8) * VIDEO_BUFFER_WIDTH mov cx, (VIDEO_BUFFER_WIDTH - 2) / 2 .bottom_side: inc di SET_VGA_REGISTER SC_INDEX_REG, SC_MAP_MASK, bh; 0Eh ; Color yellow call draw_box_8x8 inc di SET_VGA_REGISTER SC_INDEX_REG, SC_MAP_MASK, bl; 0Ch ; Color red call draw_box_8x8 loop .bottom_side ret draw_box_8x8: push di mov al, 0FFh %rep 8 stosb add di, VIDEO_BUFFER_WIDTH-1 %endrep pop di ret ;------------------------------------- ; ; Global variables ; ;------------------------------------- section .data Current_page: db 0 Current_page_offset: dw 0 NUM_BALLS equ 4 Ball_pos_x: dw 16 << 4, 64 << 4, 176 << 4, 264 << 4 Ball_pos_y: dw 26 << 4, 89 << 4, 160 << 4, 206 << 4 Ball_last_pos_x: dw 2 << 4, 8 << 4, 22 << 4, 33 << 4 Ball_last_pos_y: dw 26 << 4, 89 << 4, 160 << 4, 206 << 4 Ball_vel_x: dw 80, 64, -128, 112 Ball_vel_y: dw 0, 0, 0, 0 Ball_accel_x: dw 0, 0, 0, 0 Ball_accel_y: dw 10, 9, 8, 7 BallPlane0Image: ; blue plane db 03Ch, 000h db 07Eh, 000h db 0FFh, 000h db 0FFh, 000h db 0FFh, 000h db 0FFh, 000h db 07Eh, 000h db 03Ch, 000h db 01Eh, 000h db 03Fh, 000h db 07Fh, 080h db 07Fh, 080h db 07Fh, 080h db 07Fh, 080h db 03Fh, 000h db 01Eh, 000h db 00Fh, 000h db 01Fh, 080h db 03Fh, 0C0h db 03Fh, 0C0h db 03Fh, 0C0h db 03Fh, 0C0h db 01Fh, 080h db 00Fh, 000h db 007h, 080h db 00Fh, 0C0h db 01Fh, 0E0h db 01Fh, 0E0h db 01Fh, 0E0h db 01Fh, 0E0h db 00Fh, 0C0h db 007h, 080h db 003h, 0C0h db 007h, 0E0h db 00Fh, 0F0h db 00Fh, 0F0h db 00Fh, 0F0h db 00Fh, 0F0h db 007h, 0E0h db 003h, 0C0h db 001h, 0E0h db 003h, 0F0h db 007h, 0F8h db 007h, 0F8h db 007h, 0F8h db 007h, 0F8h db 003h, 0F0h db 001h, 0E0h db 000h, 0F0h db 001h, 0F8h db 003h, 0FCh db 003h, 0FCh db 003h, 0FCh db 003h, 0FCh db 001h, 0F8h db 000h, 0F0h db 000h, 078h db 000h, 0FCh db 001h, 0FEh db 001h, 0FEh db 001h, 0FEh db 001h, 0FEh db 000h, 0FCh db 000h, 078h section .bss
24.802963
121
0.593896
6ae0cb651ba36cfc25abeb9f4291b3b51e5d4537
73,332
asm
Assembly
compareWalkers.asm
arturosalazar/xv6-public
0f6c868699f5894e5ec9a1bf548765b87b6f8e66
[ "MIT-0" ]
null
null
null
compareWalkers.asm
arturosalazar/xv6-public
0f6c868699f5894e5ec9a1bf548765b87b6f8e66
[ "MIT-0" ]
null
null
null
compareWalkers.asm
arturosalazar/xv6-public
0f6c868699f5894e5ec9a1bf548765b87b6f8e66
[ "MIT-0" ]
null
null
null
_compareWalkers: file format elf32-i386 Disassembly of section .text: 00000000 <main>: int main(int argc, char *argv[]) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 push %ebp b: 89 e5 mov %esp,%ebp d: 51 push %ecx e: 83 ec 10 sub $0x10,%esp directoryWalkerComparison("/"); 11: 68 40 0c 00 00 push $0xc40 16: e8 c5 02 00 00 call 2e0 <directoryWalkerComparison> inodeTBWalkerComparison(); 1b: e8 10 00 00 00 call 30 <inodeTBWalkerComparison> exit(); 20: e8 7d 07 00 00 call 7a2 <exit> 25: 66 90 xchg %ax,%ax 27: 66 90 xchg %ax,%ax 29: 66 90 xchg %ax,%ax 2b: 66 90 xchg %ax,%ax 2d: 66 90 xchg %ax,%ax 2f: 90 nop 00000030 <inodeTBWalkerComparison>: }; struct dirSummary dirWalker[4000]; int dirWalkerSize = 0; void inodeTBWalkerComparison(){ 30: 55 push %ebp 31: 89 e5 mov %esp,%ebp 33: 57 push %edi 34: 56 push %esi 35: 53 push %ebx 36: 81 ec 54 02 00 00 sub $0x254,%esp struct stat st; int fd; struct superblock sb; uchar dataBuffer[BSIZE]; if((fd = open("/", 0)) < 0){ 3c: 6a 00 push $0x0 3e: 68 40 0c 00 00 push $0xc40 43: e8 9a 07 00 00 call 7e2 <open> 48: 83 c4 10 add $0x10,%esp 4b: 85 c0 test %eax,%eax 4d: 0f 88 e2 01 00 00 js 235 <inodeTBWalkerComparison+0x205> 53: 89 c3 mov %eax,%ebx printf(2, "ls: cannot open %s\n", "/"); return; } if(fstat(fd, &st) < 0){ 55: 8d 85 b8 fd ff ff lea -0x248(%ebp),%eax 5b: 83 ec 08 sub $0x8,%esp 5e: 50 push %eax 5f: 53 push %ebx 60: e8 95 07 00 00 call 7fa <fstat> 65: 83 c4 10 add $0x10,%esp 68: 85 c0 test %eax,%eax 6a: 0f 88 e4 01 00 00 js 254 <inodeTBWalkerComparison+0x224> printf(2, "ls: cannot stat %s\n", "/"); close(fd); return; } callSBRead(st.dev, &sb); 70: 8d 85 cc fd ff ff lea -0x234(%ebp),%eax 76: 83 ec 08 sub $0x8,%esp 79: 50 push %eax 7a: ff b5 bc fd ff ff pushl -0x244(%ebp) 80: e8 dd 07 00 00 call 862 <callSBRead> printf(1, "Contents of sb: inodes - %d, size - %d, nblocks - %d, inodestart - %d\n", 85: 5a pop %edx 86: 59 pop %ecx 87: ff b5 e0 fd ff ff pushl -0x220(%ebp) 8d: ff b5 d0 fd ff ff pushl -0x230(%ebp) 93: ff b5 cc fd ff ff pushl -0x234(%ebp) 99: ff b5 d4 fd ff ff pushl -0x22c(%ebp) 9f: 68 bc 0c 00 00 push $0xcbc a4: 6a 01 push $0x1 a6: e8 75 08 00 00 call 920 <printf> sb.ninodes, sb.size, sb.nblocks, sb.inodestart); for(int numB = 0; numB < sb.ninodes / IPB; numB++){ ab: 8b 85 d4 fd ff ff mov -0x22c(%ebp),%eax b1: 83 c4 20 add $0x20,%esp b4: c7 85 b0 fd ff ff 00 movl $0x0,-0x250(%ebp) bb: 00 00 00 be: c1 e8 03 shr $0x3,%eax c1: 85 c0 test %eax,%eax c3: 0f 84 3e 01 00 00 je 207 <inodeTBWalkerComparison+0x1d7> callBRead(st.dev, (numB + sb.inodestart), dataBuffer); c9: 8d 85 e8 fd ff ff lea -0x218(%ebp),%eax cf: 83 ec 04 sub $0x4,%esp d2: 8b bd b0 fd ff ff mov -0x250(%ebp),%edi d8: 50 push %eax d9: 8b 85 e0 fd ff ff mov -0x220(%ebp),%eax df: 01 f8 add %edi,%eax e1: 50 push %eax e2: ff b5 bc fd ff ff pushl -0x244(%ebp) e8: e8 6d 07 00 00 call 85a <callBRead> ed: 89 f8 mov %edi,%eax ef: 8d bd e8 fd ff ff lea -0x218(%ebp),%edi f5: 83 c4 10 add $0x10,%esp f8: c1 e0 03 shl $0x3,%eax fb: 90 nop fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi struct dinode* dinodePtr = (struct dinode*) dataBuffer; for(int i = 0; i < IPB; i++){ int tbWalkerInodeNum = i + (numB * IPB); //printf(1, "type: %d,major: %d,minor: %d,nlink: %d,size: %d,size: %d\n", //dinodePtr->type, dinodePtr->major, dinodePtr->minor, dinodePtr->nlink, dinodePtr->size); printf(1, "DIRWALKERSIZE: %d, inode ith: %d\n\n", dirWalkerSize, tbWalkerInodeNum); 100: 50 push %eax 101: ff 35 80 11 00 00 pushl 0x1180 107: 68 04 0d 00 00 push $0xd04 10c: 6a 01 push $0x1 10e: 89 85 b4 fd ff ff mov %eax,-0x24c(%ebp) 114: e8 07 08 00 00 call 920 <printf> for(int j = 0; j < dirWalkerSize; j++){ 119: a1 80 11 00 00 mov 0x1180,%eax 11e: 83 c4 10 add $0x10,%esp 121: 85 c0 test %eax,%eax 123: 8b 85 b4 fd ff ff mov -0x24c(%ebp),%eax 129: 0f 8e a9 00 00 00 jle 1d8 <inodeTBWalkerComparison+0x1a8> 12f: bb a0 11 00 00 mov $0x11a0,%ebx 134: 31 f6 xor %esi,%esi 136: eb 1a jmp 152 <inodeTBWalkerComparison+0x122> 138: 90 nop 139: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 140: 83 c6 01 add $0x1,%esi 143: 83 c3 10 add $0x10,%ebx 146: 39 35 80 11 00 00 cmp %esi,0x1180 14c: 0f 8e 86 00 00 00 jle 1d8 <inodeTBWalkerComparison+0x1a8> if(dirWalker[j].inode == tbWalkerInodeNum){ 152: 3b 03 cmp (%ebx),%eax 154: 75 ea jne 140 <inodeTBWalkerComparison+0x110> printf(1, "dirWalker jth %d\n\n", j); 156: 83 ec 04 sub $0x4,%esp 159: 89 85 b4 fd ff ff mov %eax,-0x24c(%ebp) 15f: 56 push %esi 160: 68 6a 0c 00 00 push $0xc6a 165: 6a 01 push $0x1 167: e8 b4 07 00 00 call 920 <printf> if(dirWalker[j].inodesCount != dinodePtr->nlink){ 16c: 0f bf 4f 06 movswl 0x6(%edi),%ecx 170: 8b 53 04 mov 0x4(%ebx),%edx 173: 83 c4 10 add $0x10,%esp 176: 8b 85 b4 fd ff ff mov -0x24c(%ebp),%eax 17c: 39 ca cmp %ecx,%edx 17e: 0f 84 8c 00 00 00 je 210 <inodeTBWalkerComparison+0x1e0> printf(1, "DIFFERENCE for inode %d ---- DirectoryWalker Count: %d, inodeTBWalker Count: %d\n\n", 184: 83 ec 0c sub $0xc,%esp int tbWalkerInodeNum = i + (numB * IPB); //printf(1, "type: %d,major: %d,minor: %d,nlink: %d,size: %d,size: %d\n", //dinodePtr->type, dinodePtr->major, dinodePtr->minor, dinodePtr->nlink, dinodePtr->size); printf(1, "DIRWALKERSIZE: %d, inode ith: %d\n\n", dirWalkerSize, tbWalkerInodeNum); for(int j = 0; j < dirWalkerSize; j++){ 187: 83 c6 01 add $0x1,%esi 18a: 83 c3 10 add $0x10,%ebx if(dirWalker[j].inode == tbWalkerInodeNum){ printf(1, "dirWalker jth %d\n\n", j); if(dirWalker[j].inodesCount != dinodePtr->nlink){ printf(1, "DIFFERENCE for inode %d ---- DirectoryWalker Count: %d, inodeTBWalker Count: %d\n\n", 18d: 51 push %ecx 18e: 52 push %edx 18f: 50 push %eax 190: 68 28 0d 00 00 push $0xd28 195: 6a 01 push $0x1 197: e8 84 07 00 00 call 920 <printf> tbWalkerInodeNum, dirWalker[j].inodesCount, dinodePtr->nlink); printf(1, "inode SUMMARY --- type: %d,major: %d,minor: %d,nlink: %d,size: %d,size: %d\n\n\n\n", 19c: 83 c4 1c add $0x1c,%esp 19f: ff 77 08 pushl 0x8(%edi) 1a2: 0f bf 57 06 movswl 0x6(%edi),%edx 1a6: 52 push %edx 1a7: 0f bf 57 04 movswl 0x4(%edi),%edx 1ab: 52 push %edx 1ac: 0f bf 57 02 movswl 0x2(%edi),%edx 1b0: 52 push %edx 1b1: 0f bf 17 movswl (%edi),%edx 1b4: 52 push %edx 1b5: 68 7c 0d 00 00 push $0xd7c 1ba: 6a 01 push $0x1 1bc: e8 5f 07 00 00 call 920 <printf> 1c1: 83 c4 20 add $0x20,%esp int tbWalkerInodeNum = i + (numB * IPB); //printf(1, "type: %d,major: %d,minor: %d,nlink: %d,size: %d,size: %d\n", //dinodePtr->type, dinodePtr->major, dinodePtr->minor, dinodePtr->nlink, dinodePtr->size); printf(1, "DIRWALKERSIZE: %d, inode ith: %d\n\n", dirWalkerSize, tbWalkerInodeNum); for(int j = 0; j < dirWalkerSize; j++){ 1c4: 39 35 80 11 00 00 cmp %esi,0x1180 1ca: 8b 85 b4 fd ff ff mov -0x24c(%ebp),%eax 1d0: 7f 80 jg 152 <inodeTBWalkerComparison+0x122> 1d2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi printf(1, "Contents of sb: inodes - %d, size - %d, nblocks - %d, inodestart - %d\n", sb.ninodes, sb.size, sb.nblocks, sb.inodestart); for(int numB = 0; numB < sb.ninodes / IPB; numB++){ callBRead(st.dev, (numB + sb.inodestart), dataBuffer); struct dinode* dinodePtr = (struct dinode*) dataBuffer; for(int i = 0; i < IPB; i++){ 1d8: 8d 4d e8 lea -0x18(%ebp),%ecx for(int i = 0; i < NDIRECT+1; i++){ //printf(1, "%d, ", dinodePtr->addrs[i]); } dinodePtr++; 1db: 83 c7 40 add $0x40,%edi 1de: 83 c0 01 add $0x1,%eax printf(1, "Contents of sb: inodes - %d, size - %d, nblocks - %d, inodestart - %d\n", sb.ninodes, sb.size, sb.nblocks, sb.inodestart); for(int numB = 0; numB < sb.ninodes / IPB; numB++){ callBRead(st.dev, (numB + sb.inodestart), dataBuffer); struct dinode* dinodePtr = (struct dinode*) dataBuffer; for(int i = 0; i < IPB; i++){ 1e1: 39 cf cmp %ecx,%edi 1e3: 0f 85 17 ff ff ff jne 100 <inodeTBWalkerComparison+0xd0> callSBRead(st.dev, &sb); printf(1, "Contents of sb: inodes - %d, size - %d, nblocks - %d, inodestart - %d\n", sb.ninodes, sb.size, sb.nblocks, sb.inodestart); for(int numB = 0; numB < sb.ninodes / IPB; numB++){ 1e9: 83 85 b0 fd ff ff 01 addl $0x1,-0x250(%ebp) 1f0: 8b 85 d4 fd ff ff mov -0x22c(%ebp),%eax 1f6: 8b 8d b0 fd ff ff mov -0x250(%ebp),%ecx 1fc: c1 e8 03 shr $0x3,%eax 1ff: 39 c8 cmp %ecx,%eax 201: 0f 87 c2 fe ff ff ja c9 <inodeTBWalkerComparison+0x99> } } 207: 8d 65 f4 lea -0xc(%ebp),%esp 20a: 5b pop %ebx 20b: 5e pop %esi 20c: 5f pop %edi 20d: 5d pop %ebp 20e: c3 ret 20f: 90 nop tbWalkerInodeNum, dirWalker[j].inodesCount, dinodePtr->nlink); printf(1, "inode SUMMARY --- type: %d,major: %d,minor: %d,nlink: %d,size: %d,size: %d\n\n\n\n", dinodePtr->type, dinodePtr->major, dinodePtr->minor, dinodePtr->nlink, dinodePtr->size); } else { printf(1, "inode %d count matches, verified\n\n\n\n", dirWalker[j].inode); 210: 83 ec 04 sub $0x4,%esp 213: ff 33 pushl (%ebx) 215: 89 85 b4 fd ff ff mov %eax,-0x24c(%ebp) 21b: 68 cc 0d 00 00 push $0xdcc 220: 6a 01 push $0x1 222: e8 f9 06 00 00 call 920 <printf> 227: 83 c4 10 add $0x10,%esp 22a: 8b 85 b4 fd ff ff mov -0x24c(%ebp),%eax 230: e9 0b ff ff ff jmp 140 <inodeTBWalkerComparison+0x110> int fd; struct superblock sb; uchar dataBuffer[BSIZE]; if((fd = open("/", 0)) < 0){ printf(2, "ls: cannot open %s\n", "/"); 235: 83 ec 04 sub $0x4,%esp 238: 68 40 0c 00 00 push $0xc40 23d: 68 42 0c 00 00 push $0xc42 242: 6a 02 push $0x2 244: e8 d7 06 00 00 call 920 <printf> return; 249: 83 c4 10 add $0x10,%esp } } 24c: 8d 65 f4 lea -0xc(%ebp),%esp 24f: 5b pop %ebx 250: 5e pop %esi 251: 5f pop %edi 252: 5d pop %ebp 253: c3 ret printf(2, "ls: cannot open %s\n", "/"); return; } if(fstat(fd, &st) < 0){ printf(2, "ls: cannot stat %s\n", "/"); 254: 83 ec 04 sub $0x4,%esp 257: 68 40 0c 00 00 push $0xc40 25c: 68 56 0c 00 00 push $0xc56 261: 6a 02 push $0x2 263: e8 b8 06 00 00 call 920 <printf> close(fd); 268: 89 1c 24 mov %ebx,(%esp) 26b: e8 5a 05 00 00 call 7ca <close> return; 270: 83 c4 10 add $0x10,%esp } } 273: 8d 65 f4 lea -0xc(%ebp),%esp 276: 5b pop %ebx 277: 5e pop %esi 278: 5f pop %edi 279: 5d pop %ebp 27a: c3 ret 27b: 90 nop 27c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00000280 <incrementRefCount>: int incrementRefCount(struct dirSummary *dirWalker, int dirWalkerSize, struct dirent de){ 280: 55 push %ebp 281: 89 e5 mov %esp,%ebp 283: 57 push %edi 284: 56 push %esi 285: 8b 45 0c mov 0xc(%ebp),%eax 288: 53 push %ebx 289: 8b 7d 08 mov 0x8(%ebp),%edi 28c: 0f b7 5d 10 movzwl 0x10(%ebp),%ebx for(int i = 0; i < dirWalkerSize; i++){ 290: 85 c0 test %eax,%eax 292: 7e 1d jle 2b1 <incrementRefCount+0x31> if(dirWalker[i].inode == de.inum){ 294: 31 c9 xor %ecx,%ecx 296: 3b 1f cmp (%edi),%ebx 298: 8d 57 10 lea 0x10(%edi),%edx 29b: 75 0d jne 2aa <incrementRefCount+0x2a> 29d: eb 2a jmp 2c9 <incrementRefCount+0x49> 29f: 90 nop 2a0: 89 d6 mov %edx,%esi 2a2: 83 c2 10 add $0x10,%edx 2a5: 39 5a f0 cmp %ebx,-0x10(%edx) 2a8: 74 21 je 2cb <incrementRefCount+0x4b> } int incrementRefCount(struct dirSummary *dirWalker, int dirWalkerSize, struct dirent de){ for(int i = 0; i < dirWalkerSize; i++){ 2aa: 83 c1 01 add $0x1,%ecx 2ad: 39 c8 cmp %ecx,%eax 2af: 75 ef jne 2a0 <incrementRefCount+0x20> return dirWalkerSize; } } //cprintf("didn't find it %d\n", key); dirWalker[dirWalkerSize].inode = de.inum; 2b1: 89 c2 mov %eax,%edx dirWalker[dirWalkerSize].inodesCount = 1; return dirWalkerSize + 1; 2b3: 83 c0 01 add $0x1,%eax return dirWalkerSize; } } //cprintf("didn't find it %d\n", key); dirWalker[dirWalkerSize].inode = de.inum; 2b6: c1 e2 04 shl $0x4,%edx 2b9: 01 d7 add %edx,%edi 2bb: 89 1f mov %ebx,(%edi) dirWalker[dirWalkerSize].inodesCount = 1; 2bd: c7 47 04 01 00 00 00 movl $0x1,0x4(%edi) return dirWalkerSize + 1; } 2c4: 5b pop %ebx 2c5: 5e pop %esi 2c6: 5f pop %edi 2c7: 5d pop %ebp 2c8: c3 ret } int incrementRefCount(struct dirSummary *dirWalker, int dirWalkerSize, struct dirent de){ for(int i = 0; i < dirWalkerSize; i++){ if(dirWalker[i].inode == de.inum){ 2c9: 89 fe mov %edi,%esi dirWalker[i].inodesCount++; 2cb: 83 46 04 01 addl $0x1,0x4(%esi) //cprintf("didn't find it %d\n", key); dirWalker[dirWalkerSize].inode = de.inum; dirWalker[dirWalkerSize].inodesCount = 1; return dirWalkerSize + 1; } 2cf: 5b pop %ebx 2d0: 5e pop %esi 2d1: 5f pop %edi 2d2: 5d pop %ebp 2d3: c3 ret 2d4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 2da: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 000002e0 <directoryWalkerComparison>: void directoryWalkerComparison(char* path){ 2e0: 55 push %ebp char buf[512] = {0}; 2e1: 31 c0 xor %eax,%eax 2e3: b9 80 00 00 00 mov $0x80,%ecx dirWalker[dirWalkerSize].inode = de.inum; dirWalker[dirWalkerSize].inodesCount = 1; return dirWalkerSize + 1; } void directoryWalkerComparison(char* path){ 2e8: 89 e5 mov %esp,%ebp 2ea: 57 push %edi 2eb: 56 push %esi 2ec: 53 push %ebx char buf[512] = {0}; 2ed: 8d bd e8 fd ff ff lea -0x218(%ebp),%edi dirWalker[dirWalkerSize].inode = de.inum; dirWalker[dirWalkerSize].inodesCount = 1; return dirWalkerSize + 1; } void directoryWalkerComparison(char* path){ 2f3: 81 ec 60 02 00 00 sub $0x260,%esp 2f9: 8b 75 08 mov 0x8(%ebp),%esi char buf[512] = {0}; 2fc: f3 ab rep stos %eax,%es:(%edi) int fd; struct dirent de; struct stat st; printf(1, "DEBUG PATH: %s\n", path); 2fe: 56 push %esi 2ff: 68 7d 0c 00 00 push $0xc7d 304: 6a 01 push $0x1 306: e8 15 06 00 00 call 920 <printf> if((fd = open(path, 0)) < 0){ 30b: 58 pop %eax 30c: 5a pop %edx 30d: 6a 00 push $0x0 30f: 56 push %esi 310: e8 cd 04 00 00 call 7e2 <open> 315: 83 c4 10 add $0x10,%esp 318: 85 c0 test %eax,%eax 31a: 78 54 js 370 <directoryWalkerComparison+0x90> 31c: 89 c3 mov %eax,%ebx printf(2, "ls: cannot open %s\n", path); return; } if(fstat(fd, &st) < 0){ 31e: 8d 85 b4 fd ff ff lea -0x24c(%ebp),%eax 324: 83 ec 08 sub $0x8,%esp 327: 50 push %eax 328: 53 push %ebx 329: e8 cc 04 00 00 call 7fa <fstat> 32e: 83 c4 10 add $0x10,%esp 331: 85 c0 test %eax,%eax 333: 0f 88 e7 01 00 00 js 520 <directoryWalkerComparison+0x240> printf(2, "ls: cannot stat %s\n", path); close(fd); return; } if(st.type != T_DIR){ 339: 66 83 bd b4 fd ff ff cmpw $0x1,-0x24c(%ebp) 340: 01 341: 74 4d je 390 <directoryWalkerComparison+0xb0> printf(1, "Filename: %s \n inode number: %d\n", path, st.ino); 343: ff b5 bc fd ff ff pushl -0x244(%ebp) 349: 56 push %esi 34a: 68 f4 0d 00 00 push $0xdf4 34f: 6a 01 push $0x1 351: e8 ca 05 00 00 call 920 <printf> close(fd); 356: 89 1c 24 mov %ebx,(%esp) 359: e8 6c 04 00 00 call 7ca <close> return; 35e: 83 c4 10 add $0x10,%esp directoryWalkerComparison(buf); p[DIRSIZ] = 0; printf(1, "inum: %d\ndir name: %s\n", de.inum, buf); } } 361: 8d 65 f4 lea -0xc(%ebp),%esp 364: 5b pop %ebx 365: 5e pop %esi 366: 5f pop %edi 367: 5d pop %ebp 368: c3 ret 369: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi printf(1, "DEBUG PATH: %s\n", path); if((fd = open(path, 0)) < 0){ printf(2, "ls: cannot open %s\n", path); 370: 83 ec 04 sub $0x4,%esp 373: 56 push %esi 374: 68 42 0c 00 00 push $0xc42 379: 6a 02 push $0x2 37b: e8 a0 05 00 00 call 920 <printf> return; 380: 83 c4 10 add $0x10,%esp directoryWalkerComparison(buf); p[DIRSIZ] = 0; printf(1, "inum: %d\ndir name: %s\n", de.inum, buf); } } 383: 8d 65 f4 lea -0xc(%ebp),%esp 386: 5b pop %ebx 387: 5e pop %esi 388: 5f pop %edi 389: 5d pop %ebp 38a: c3 ret 38b: 90 nop 38c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return; } if(strlen(path) + 1 + DIRSIZ + 1 > sizeof buf){ 390: 83 ec 0c sub $0xc,%esp 393: 56 push %esi 394: e8 47 02 00 00 call 5e0 <strlen> 399: 83 c0 20 add $0x20,%eax 39c: 83 c4 10 add $0x10,%esp 39f: 3d 00 02 00 00 cmp $0x200,%eax 3a4: 0f 87 96 01 00 00 ja 540 <directoryWalkerComparison+0x260> printf(1, "ls: path too long\n"); } strcpy(buf, path); 3aa: 8d 85 e8 fd ff ff lea -0x218(%ebp),%eax 3b0: 83 ec 08 sub $0x8,%esp p = buf+strlen(buf); 3b3: 8d bd e8 fd ff ff lea -0x218(%ebp),%edi if(strlen(path) + 1 + DIRSIZ + 1 > sizeof buf){ printf(1, "ls: path too long\n"); } strcpy(buf, path); 3b9: 56 push %esi 3ba: 50 push %eax 3bb: e8 a0 01 00 00 call 560 <strcpy> p = buf+strlen(buf); 3c0: 8d 85 e8 fd ff ff lea -0x218(%ebp),%eax 3c6: 89 04 24 mov %eax,(%esp) 3c9: e8 12 02 00 00 call 5e0 <strlen> 3ce: 01 c7 add %eax,%edi *p++ = '/'; 3d0: 8d 84 05 e9 fd ff ff lea -0x217(%ebp,%eax,1),%eax while(read(fd, &de, sizeof(de)) == sizeof(de)){ 3d7: 83 c4 10 add $0x10,%esp if(strlen(path) + 1 + DIRSIZ + 1 > sizeof buf){ printf(1, "ls: path too long\n"); } strcpy(buf, path); p = buf+strlen(buf); 3da: 89 bd a4 fd ff ff mov %edi,-0x25c(%ebp) *p++ = '/'; 3e0: c6 07 2f movb $0x2f,(%edi) 3e3: 89 85 a0 fd ff ff mov %eax,-0x260(%ebp) 3e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi while(read(fd, &de, sizeof(de)) == sizeof(de)){ 3f0: 8d 85 c8 fd ff ff lea -0x238(%ebp),%eax 3f6: 83 ec 04 sub $0x4,%esp 3f9: 6a 20 push $0x20 3fb: 50 push %eax 3fc: 53 push %ebx 3fd: e8 b8 03 00 00 call 7ba <read> 402: 83 c4 10 add $0x10,%esp 405: 83 f8 20 cmp $0x20,%eax 408: 0f 85 53 ff ff ff jne 361 <directoryWalkerComparison+0x81> if(de.inum == 0) 40e: 0f b7 8d c8 fd ff ff movzwl -0x238(%ebp),%ecx 415: 66 85 c9 test %cx,%cx 418: 74 d6 je 3f0 <directoryWalkerComparison+0x110> continue; dirWalkerSize = incrementRefCount(dirWalker, dirWalkerSize, de); 41a: 8b 35 80 11 00 00 mov 0x1180,%esi } int incrementRefCount(struct dirSummary *dirWalker, int dirWalkerSize, struct dirent de){ for(int i = 0; i < dirWalkerSize; i++){ 420: 85 f6 test %esi,%esi 422: 7e 31 jle 455 <directoryWalkerComparison+0x175> if(dirWalker[i].inode == de.inum){ 424: 31 d2 xor %edx,%edx 426: 3b 0d a0 11 00 00 cmp 0x11a0,%ecx 42c: b8 b0 11 00 00 mov $0x11b0,%eax 431: 75 1b jne 44e <directoryWalkerComparison+0x16e> 433: e9 cb 00 00 00 jmp 503 <directoryWalkerComparison+0x223> 438: 90 nop 439: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 440: 89 c7 mov %eax,%edi 442: 83 c0 10 add $0x10,%eax 445: 39 48 f0 cmp %ecx,-0x10(%eax) 448: 0f 84 c2 00 00 00 je 510 <directoryWalkerComparison+0x230> } int incrementRefCount(struct dirSummary *dirWalker, int dirWalkerSize, struct dirent de){ for(int i = 0; i < dirWalkerSize; i++){ 44e: 83 c2 01 add $0x1,%edx 451: 39 d6 cmp %edx,%esi 453: 75 eb jne 440 <directoryWalkerComparison+0x160> return dirWalkerSize; } } //cprintf("didn't find it %d\n", key); dirWalker[dirWalkerSize].inode = de.inum; 455: 89 f0 mov %esi,%eax dirWalker[dirWalkerSize].inodesCount = 1; return dirWalkerSize + 1; 457: 83 c6 01 add $0x1,%esi return dirWalkerSize; } } //cprintf("didn't find it %d\n", key); dirWalker[dirWalkerSize].inode = de.inum; 45a: c1 e0 04 shl $0x4,%eax 45d: 89 88 a0 11 00 00 mov %ecx,0x11a0(%eax) dirWalker[dirWalkerSize].inodesCount = 1; 463: c7 80 a4 11 00 00 01 movl $0x1,0x11a4(%eax) 46a: 00 00 00 dirWalkerSize = incrementRefCount(dirWalker, dirWalkerSize, de); if(strcmp(de.name, ".") == 0 || strcmp(de.name, "..") == 0) continue; 46d: 8d 85 ca fd ff ff lea -0x236(%ebp),%eax 473: 83 ec 08 sub $0x8,%esp while(read(fd, &de, sizeof(de)) == sizeof(de)){ if(de.inum == 0) continue; dirWalkerSize = incrementRefCount(dirWalker, dirWalkerSize, de); 476: 89 35 80 11 00 00 mov %esi,0x1180 if(strcmp(de.name, ".") == 0 || strcmp(de.name, "..") == 0) continue; 47c: 68 a1 0c 00 00 push $0xca1 481: 50 push %eax 482: e8 09 01 00 00 call 590 <strcmp> 487: 83 c4 10 add $0x10,%esp 48a: 85 c0 test %eax,%eax 48c: 0f 84 5e ff ff ff je 3f0 <directoryWalkerComparison+0x110> 492: 8d 85 ca fd ff ff lea -0x236(%ebp),%eax 498: 83 ec 08 sub $0x8,%esp 49b: 68 a0 0c 00 00 push $0xca0 4a0: 50 push %eax 4a1: e8 ea 00 00 00 call 590 <strcmp> 4a6: 83 c4 10 add $0x10,%esp 4a9: 85 c0 test %eax,%eax 4ab: 0f 84 3f ff ff ff je 3f0 <directoryWalkerComparison+0x110> memmove(p, de.name, DIRSIZ); 4b1: 8d 85 ca fd ff ff lea -0x236(%ebp),%eax 4b7: 83 ec 04 sub $0x4,%esp 4ba: 6a 1e push $0x1e 4bc: 50 push %eax 4bd: ff b5 a0 fd ff ff pushl -0x260(%ebp) 4c3: e8 a8 02 00 00 call 770 <memmove> directoryWalkerComparison(buf); 4c8: 8d 85 e8 fd ff ff lea -0x218(%ebp),%eax 4ce: 89 04 24 mov %eax,(%esp) 4d1: e8 0a fe ff ff call 2e0 <directoryWalkerComparison> p[DIRSIZ] = 0; 4d6: 8b 85 a4 fd ff ff mov -0x25c(%ebp),%eax 4dc: c6 40 1f 00 movb $0x0,0x1f(%eax) printf(1, "inum: %d\ndir name: %s\n", de.inum, buf); 4e0: 8d 85 e8 fd ff ff lea -0x218(%ebp),%eax 4e6: 50 push %eax 4e7: 0f b7 85 c8 fd ff ff movzwl -0x238(%ebp),%eax 4ee: 50 push %eax 4ef: 68 a3 0c 00 00 push $0xca3 4f4: 6a 01 push $0x1 4f6: e8 25 04 00 00 call 920 <printf> 4fb: 83 c4 20 add $0x20,%esp 4fe: e9 ed fe ff ff jmp 3f0 <directoryWalkerComparison+0x110> } int incrementRefCount(struct dirSummary *dirWalker, int dirWalkerSize, struct dirent de){ for(int i = 0; i < dirWalkerSize; i++){ if(dirWalker[i].inode == de.inum){ 503: bf a0 11 00 00 mov $0x11a0,%edi 508: 90 nop 509: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi dirWalker[i].inodesCount++; 510: 83 47 04 01 addl $0x1,0x4(%edi) 514: e9 54 ff ff ff jmp 46d <directoryWalkerComparison+0x18d> 519: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi printf(2, "ls: cannot open %s\n", path); return; } if(fstat(fd, &st) < 0){ printf(2, "ls: cannot stat %s\n", path); 520: 83 ec 04 sub $0x4,%esp 523: 56 push %esi 524: 68 56 0c 00 00 push $0xc56 529: 6a 02 push $0x2 52b: e8 f0 03 00 00 call 920 <printf> close(fd); 530: 89 1c 24 mov %ebx,(%esp) 533: e8 92 02 00 00 call 7ca <close> return; 538: 83 c4 10 add $0x10,%esp 53b: e9 21 fe ff ff jmp 361 <directoryWalkerComparison+0x81> } if(strlen(path) + 1 + DIRSIZ + 1 > sizeof buf){ printf(1, "ls: path too long\n"); 540: 83 ec 08 sub $0x8,%esp 543: 68 8d 0c 00 00 push $0xc8d 548: 6a 01 push $0x1 54a: e8 d1 03 00 00 call 920 <printf> 54f: 83 c4 10 add $0x10,%esp 552: e9 53 fe ff ff jmp 3aa <directoryWalkerComparison+0xca> 557: 66 90 xchg %ax,%ax 559: 66 90 xchg %ax,%ax 55b: 66 90 xchg %ax,%ax 55d: 66 90 xchg %ax,%ax 55f: 90 nop 00000560 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, const char *t) { 560: 55 push %ebp 561: 89 e5 mov %esp,%ebp 563: 53 push %ebx 564: 8b 45 08 mov 0x8(%ebp),%eax 567: 8b 4d 0c mov 0xc(%ebp),%ecx char *os; os = s; while((*s++ = *t++) != 0) 56a: 89 c2 mov %eax,%edx 56c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 570: 83 c1 01 add $0x1,%ecx 573: 0f b6 59 ff movzbl -0x1(%ecx),%ebx 577: 83 c2 01 add $0x1,%edx 57a: 84 db test %bl,%bl 57c: 88 5a ff mov %bl,-0x1(%edx) 57f: 75 ef jne 570 <strcpy+0x10> ; return os; } 581: 5b pop %ebx 582: 5d pop %ebp 583: c3 ret 584: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 58a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 00000590 <strcmp>: int strcmp(const char *p, const char *q) { 590: 55 push %ebp 591: 89 e5 mov %esp,%ebp 593: 56 push %esi 594: 53 push %ebx 595: 8b 55 08 mov 0x8(%ebp),%edx 598: 8b 4d 0c mov 0xc(%ebp),%ecx while(*p && *p == *q) 59b: 0f b6 02 movzbl (%edx),%eax 59e: 0f b6 19 movzbl (%ecx),%ebx 5a1: 84 c0 test %al,%al 5a3: 75 1e jne 5c3 <strcmp+0x33> 5a5: eb 29 jmp 5d0 <strcmp+0x40> 5a7: 89 f6 mov %esi,%esi 5a9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi p++, q++; 5b0: 83 c2 01 add $0x1,%edx } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 5b3: 0f b6 02 movzbl (%edx),%eax p++, q++; 5b6: 8d 71 01 lea 0x1(%ecx),%esi } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 5b9: 0f b6 59 01 movzbl 0x1(%ecx),%ebx 5bd: 84 c0 test %al,%al 5bf: 74 0f je 5d0 <strcmp+0x40> 5c1: 89 f1 mov %esi,%ecx 5c3: 38 d8 cmp %bl,%al 5c5: 74 e9 je 5b0 <strcmp+0x20> p++, q++; return (uchar)*p - (uchar)*q; 5c7: 29 d8 sub %ebx,%eax } 5c9: 5b pop %ebx 5ca: 5e pop %esi 5cb: 5d pop %ebp 5cc: c3 ret 5cd: 8d 76 00 lea 0x0(%esi),%esi } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 5d0: 31 c0 xor %eax,%eax p++, q++; return (uchar)*p - (uchar)*q; 5d2: 29 d8 sub %ebx,%eax } 5d4: 5b pop %ebx 5d5: 5e pop %esi 5d6: 5d pop %ebp 5d7: c3 ret 5d8: 90 nop 5d9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 000005e0 <strlen>: uint strlen(const char *s) { 5e0: 55 push %ebp 5e1: 89 e5 mov %esp,%ebp 5e3: 8b 4d 08 mov 0x8(%ebp),%ecx int n; for(n = 0; s[n]; n++) 5e6: 80 39 00 cmpb $0x0,(%ecx) 5e9: 74 12 je 5fd <strlen+0x1d> 5eb: 31 d2 xor %edx,%edx 5ed: 8d 76 00 lea 0x0(%esi),%esi 5f0: 83 c2 01 add $0x1,%edx 5f3: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1) 5f7: 89 d0 mov %edx,%eax 5f9: 75 f5 jne 5f0 <strlen+0x10> ; return n; } 5fb: 5d pop %ebp 5fc: c3 ret uint strlen(const char *s) { int n; for(n = 0; s[n]; n++) 5fd: 31 c0 xor %eax,%eax ; return n; } 5ff: 5d pop %ebp 600: c3 ret 601: eb 0d jmp 610 <memset> 603: 90 nop 604: 90 nop 605: 90 nop 606: 90 nop 607: 90 nop 608: 90 nop 609: 90 nop 60a: 90 nop 60b: 90 nop 60c: 90 nop 60d: 90 nop 60e: 90 nop 60f: 90 nop 00000610 <memset>: void* memset(void *dst, int c, uint n) { 610: 55 push %ebp 611: 89 e5 mov %esp,%ebp 613: 57 push %edi 614: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 617: 8b 4d 10 mov 0x10(%ebp),%ecx 61a: 8b 45 0c mov 0xc(%ebp),%eax 61d: 89 d7 mov %edx,%edi 61f: fc cld 620: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } 622: 89 d0 mov %edx,%eax 624: 5f pop %edi 625: 5d pop %ebp 626: c3 ret 627: 89 f6 mov %esi,%esi 629: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000630 <strchr>: char* strchr(const char *s, char c) { 630: 55 push %ebp 631: 89 e5 mov %esp,%ebp 633: 53 push %ebx 634: 8b 45 08 mov 0x8(%ebp),%eax 637: 8b 5d 0c mov 0xc(%ebp),%ebx for(; *s; s++) 63a: 0f b6 10 movzbl (%eax),%edx 63d: 84 d2 test %dl,%dl 63f: 74 1d je 65e <strchr+0x2e> if(*s == c) 641: 38 d3 cmp %dl,%bl 643: 89 d9 mov %ebx,%ecx 645: 75 0d jne 654 <strchr+0x24> 647: eb 17 jmp 660 <strchr+0x30> 649: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 650: 38 ca cmp %cl,%dl 652: 74 0c je 660 <strchr+0x30> } char* strchr(const char *s, char c) { for(; *s; s++) 654: 83 c0 01 add $0x1,%eax 657: 0f b6 10 movzbl (%eax),%edx 65a: 84 d2 test %dl,%dl 65c: 75 f2 jne 650 <strchr+0x20> if(*s == c) return (char*)s; return 0; 65e: 31 c0 xor %eax,%eax } 660: 5b pop %ebx 661: 5d pop %ebp 662: c3 ret 663: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 669: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000670 <gets>: char* gets(char *buf, int max) { 670: 55 push %ebp 671: 89 e5 mov %esp,%ebp 673: 57 push %edi 674: 56 push %esi 675: 53 push %ebx int i, cc; char c; for(i=0; i+1 < max; ){ 676: 31 f6 xor %esi,%esi cc = read(0, &c, 1); 678: 8d 7d e7 lea -0x19(%ebp),%edi return 0; } char* gets(char *buf, int max) { 67b: 83 ec 1c sub $0x1c,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 67e: eb 29 jmp 6a9 <gets+0x39> cc = read(0, &c, 1); 680: 83 ec 04 sub $0x4,%esp 683: 6a 01 push $0x1 685: 57 push %edi 686: 6a 00 push $0x0 688: e8 2d 01 00 00 call 7ba <read> if(cc < 1) 68d: 83 c4 10 add $0x10,%esp 690: 85 c0 test %eax,%eax 692: 7e 1d jle 6b1 <gets+0x41> break; buf[i++] = c; 694: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 698: 8b 55 08 mov 0x8(%ebp),%edx 69b: 89 de mov %ebx,%esi if(c == '\n' || c == '\r') 69d: 3c 0a cmp $0xa,%al for(i=0; i+1 < max; ){ cc = read(0, &c, 1); if(cc < 1) break; buf[i++] = c; 69f: 88 44 1a ff mov %al,-0x1(%edx,%ebx,1) if(c == '\n' || c == '\r') 6a3: 74 1b je 6c0 <gets+0x50> 6a5: 3c 0d cmp $0xd,%al 6a7: 74 17 je 6c0 <gets+0x50> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 6a9: 8d 5e 01 lea 0x1(%esi),%ebx 6ac: 3b 5d 0c cmp 0xc(%ebp),%ebx 6af: 7c cf jl 680 <gets+0x10> break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 6b1: 8b 45 08 mov 0x8(%ebp),%eax 6b4: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } 6b8: 8d 65 f4 lea -0xc(%ebp),%esp 6bb: 5b pop %ebx 6bc: 5e pop %esi 6bd: 5f pop %edi 6be: 5d pop %ebp 6bf: c3 ret break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 6c0: 8b 45 08 mov 0x8(%ebp),%eax gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 6c3: 89 de mov %ebx,%esi break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 6c5: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } 6c9: 8d 65 f4 lea -0xc(%ebp),%esp 6cc: 5b pop %ebx 6cd: 5e pop %esi 6ce: 5f pop %edi 6cf: 5d pop %ebp 6d0: c3 ret 6d1: eb 0d jmp 6e0 <stat> 6d3: 90 nop 6d4: 90 nop 6d5: 90 nop 6d6: 90 nop 6d7: 90 nop 6d8: 90 nop 6d9: 90 nop 6da: 90 nop 6db: 90 nop 6dc: 90 nop 6dd: 90 nop 6de: 90 nop 6df: 90 nop 000006e0 <stat>: int stat(const char *n, struct stat *st) { 6e0: 55 push %ebp 6e1: 89 e5 mov %esp,%ebp 6e3: 56 push %esi 6e4: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); 6e5: 83 ec 08 sub $0x8,%esp 6e8: 6a 00 push $0x0 6ea: ff 75 08 pushl 0x8(%ebp) 6ed: e8 f0 00 00 00 call 7e2 <open> if(fd < 0) 6f2: 83 c4 10 add $0x10,%esp 6f5: 85 c0 test %eax,%eax 6f7: 78 27 js 720 <stat+0x40> return -1; r = fstat(fd, st); 6f9: 83 ec 08 sub $0x8,%esp 6fc: ff 75 0c pushl 0xc(%ebp) 6ff: 89 c3 mov %eax,%ebx 701: 50 push %eax 702: e8 f3 00 00 00 call 7fa <fstat> 707: 89 c6 mov %eax,%esi close(fd); 709: 89 1c 24 mov %ebx,(%esp) 70c: e8 b9 00 00 00 call 7ca <close> return r; 711: 83 c4 10 add $0x10,%esp 714: 89 f0 mov %esi,%eax } 716: 8d 65 f8 lea -0x8(%ebp),%esp 719: 5b pop %ebx 71a: 5e pop %esi 71b: 5d pop %ebp 71c: c3 ret 71d: 8d 76 00 lea 0x0(%esi),%esi int fd; int r; fd = open(n, O_RDONLY); if(fd < 0) return -1; 720: b8 ff ff ff ff mov $0xffffffff,%eax 725: eb ef jmp 716 <stat+0x36> 727: 89 f6 mov %esi,%esi 729: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000730 <atoi>: return r; } int atoi(const char *s) { 730: 55 push %ebp 731: 89 e5 mov %esp,%ebp 733: 53 push %ebx 734: 8b 4d 08 mov 0x8(%ebp),%ecx int n; n = 0; while('0' <= *s && *s <= '9') 737: 0f be 11 movsbl (%ecx),%edx 73a: 8d 42 d0 lea -0x30(%edx),%eax 73d: 3c 09 cmp $0x9,%al 73f: b8 00 00 00 00 mov $0x0,%eax 744: 77 1f ja 765 <atoi+0x35> 746: 8d 76 00 lea 0x0(%esi),%esi 749: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi n = n*10 + *s++ - '0'; 750: 8d 04 80 lea (%eax,%eax,4),%eax 753: 83 c1 01 add $0x1,%ecx 756: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 75a: 0f be 11 movsbl (%ecx),%edx 75d: 8d 5a d0 lea -0x30(%edx),%ebx 760: 80 fb 09 cmp $0x9,%bl 763: 76 eb jbe 750 <atoi+0x20> n = n*10 + *s++ - '0'; return n; } 765: 5b pop %ebx 766: 5d pop %ebp 767: c3 ret 768: 90 nop 769: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000770 <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 770: 55 push %ebp 771: 89 e5 mov %esp,%ebp 773: 56 push %esi 774: 53 push %ebx 775: 8b 5d 10 mov 0x10(%ebp),%ebx 778: 8b 45 08 mov 0x8(%ebp),%eax 77b: 8b 75 0c mov 0xc(%ebp),%esi char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 77e: 85 db test %ebx,%ebx 780: 7e 14 jle 796 <memmove+0x26> 782: 31 d2 xor %edx,%edx 784: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi *dst++ = *src++; 788: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx 78c: 88 0c 10 mov %cl,(%eax,%edx,1) 78f: 83 c2 01 add $0x1,%edx char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 792: 39 da cmp %ebx,%edx 794: 75 f2 jne 788 <memmove+0x18> *dst++ = *src++; return vdst; } 796: 5b pop %ebx 797: 5e pop %esi 798: 5d pop %ebp 799: c3 ret 0000079a <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 79a: b8 01 00 00 00 mov $0x1,%eax 79f: cd 40 int $0x40 7a1: c3 ret 000007a2 <exit>: SYSCALL(exit) 7a2: b8 02 00 00 00 mov $0x2,%eax 7a7: cd 40 int $0x40 7a9: c3 ret 000007aa <wait>: SYSCALL(wait) 7aa: b8 03 00 00 00 mov $0x3,%eax 7af: cd 40 int $0x40 7b1: c3 ret 000007b2 <pipe>: SYSCALL(pipe) 7b2: b8 04 00 00 00 mov $0x4,%eax 7b7: cd 40 int $0x40 7b9: c3 ret 000007ba <read>: SYSCALL(read) 7ba: b8 05 00 00 00 mov $0x5,%eax 7bf: cd 40 int $0x40 7c1: c3 ret 000007c2 <write>: SYSCALL(write) 7c2: b8 10 00 00 00 mov $0x10,%eax 7c7: cd 40 int $0x40 7c9: c3 ret 000007ca <close>: SYSCALL(close) 7ca: b8 15 00 00 00 mov $0x15,%eax 7cf: cd 40 int $0x40 7d1: c3 ret 000007d2 <kill>: SYSCALL(kill) 7d2: b8 06 00 00 00 mov $0x6,%eax 7d7: cd 40 int $0x40 7d9: c3 ret 000007da <exec>: SYSCALL(exec) 7da: b8 07 00 00 00 mov $0x7,%eax 7df: cd 40 int $0x40 7e1: c3 ret 000007e2 <open>: SYSCALL(open) 7e2: b8 0f 00 00 00 mov $0xf,%eax 7e7: cd 40 int $0x40 7e9: c3 ret 000007ea <mknod>: SYSCALL(mknod) 7ea: b8 11 00 00 00 mov $0x11,%eax 7ef: cd 40 int $0x40 7f1: c3 ret 000007f2 <unlink>: SYSCALL(unlink) 7f2: b8 12 00 00 00 mov $0x12,%eax 7f7: cd 40 int $0x40 7f9: c3 ret 000007fa <fstat>: SYSCALL(fstat) 7fa: b8 08 00 00 00 mov $0x8,%eax 7ff: cd 40 int $0x40 801: c3 ret 00000802 <link>: SYSCALL(link) 802: b8 13 00 00 00 mov $0x13,%eax 807: cd 40 int $0x40 809: c3 ret 0000080a <mkdir>: SYSCALL(mkdir) 80a: b8 14 00 00 00 mov $0x14,%eax 80f: cd 40 int $0x40 811: c3 ret 00000812 <chdir>: SYSCALL(chdir) 812: b8 09 00 00 00 mov $0x9,%eax 817: cd 40 int $0x40 819: c3 ret 0000081a <dup>: SYSCALL(dup) 81a: b8 0a 00 00 00 mov $0xa,%eax 81f: cd 40 int $0x40 821: c3 ret 00000822 <getpid>: SYSCALL(getpid) 822: b8 0b 00 00 00 mov $0xb,%eax 827: cd 40 int $0x40 829: c3 ret 0000082a <sbrk>: SYSCALL(sbrk) 82a: b8 0c 00 00 00 mov $0xc,%eax 82f: cd 40 int $0x40 831: c3 ret 00000832 <sleep>: SYSCALL(sleep) 832: b8 0d 00 00 00 mov $0xd,%eax 837: cd 40 int $0x40 839: c3 ret 0000083a <uptime>: SYSCALL(uptime) 83a: b8 0e 00 00 00 mov $0xe,%eax 83f: cd 40 int $0x40 841: c3 ret 00000842 <countTrap>: SYSCALL(countTrap) 842: b8 16 00 00 00 mov $0x16,%eax 847: cd 40 int $0x40 849: c3 ret 0000084a <getSharedPage>: SYSCALL(getSharedPage) 84a: b8 17 00 00 00 mov $0x17,%eax 84f: cd 40 int $0x40 851: c3 ret 00000852 <freeSharedPage>: SYSCALL(freeSharedPage) 852: b8 18 00 00 00 mov $0x18,%eax 857: cd 40 int $0x40 859: c3 ret 0000085a <callBRead>: SYSCALL(callBRead) 85a: b8 19 00 00 00 mov $0x19,%eax 85f: cd 40 int $0x40 861: c3 ret 00000862 <callSBRead>: SYSCALL(callSBRead) 862: b8 1a 00 00 00 mov $0x1a,%eax 867: cd 40 int $0x40 869: c3 ret 0000086a <seek>: SYSCALL(seek) 86a: b8 1b 00 00 00 mov $0x1b,%eax 86f: cd 40 int $0x40 871: c3 ret 00000872 <callBWrite>: 872: b8 1c 00 00 00 mov $0x1c,%eax 877: cd 40 int $0x40 879: c3 ret 87a: 66 90 xchg %ax,%ax 87c: 66 90 xchg %ax,%ax 87e: 66 90 xchg %ax,%ax 00000880 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 880: 55 push %ebp 881: 89 e5 mov %esp,%ebp 883: 57 push %edi 884: 56 push %esi 885: 53 push %ebx 886: 89 c6 mov %eax,%esi 888: 83 ec 3c sub $0x3c,%esp char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 88b: 8b 5d 08 mov 0x8(%ebp),%ebx 88e: 85 db test %ebx,%ebx 890: 74 7e je 910 <printint+0x90> 892: 89 d0 mov %edx,%eax 894: c1 e8 1f shr $0x1f,%eax 897: 84 c0 test %al,%al 899: 74 75 je 910 <printint+0x90> neg = 1; x = -xx; 89b: 89 d0 mov %edx,%eax int i, neg; uint x; neg = 0; if(sgn && xx < 0){ neg = 1; 89d: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp) x = -xx; 8a4: f7 d8 neg %eax 8a6: 89 75 c0 mov %esi,-0x40(%ebp) } else { x = xx; } i = 0; 8a9: 31 ff xor %edi,%edi 8ab: 8d 5d d7 lea -0x29(%ebp),%ebx 8ae: 89 ce mov %ecx,%esi 8b0: eb 08 jmp 8ba <printint+0x3a> 8b2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi do{ buf[i++] = digits[x % base]; 8b8: 89 cf mov %ecx,%edi 8ba: 31 d2 xor %edx,%edx 8bc: 8d 4f 01 lea 0x1(%edi),%ecx 8bf: f7 f6 div %esi 8c1: 0f b6 92 20 0e 00 00 movzbl 0xe20(%edx),%edx }while((x /= base) != 0); 8c8: 85 c0 test %eax,%eax x = xx; } i = 0; do{ buf[i++] = digits[x % base]; 8ca: 88 14 0b mov %dl,(%ebx,%ecx,1) }while((x /= base) != 0); 8cd: 75 e9 jne 8b8 <printint+0x38> if(neg) 8cf: 8b 45 c4 mov -0x3c(%ebp),%eax 8d2: 8b 75 c0 mov -0x40(%ebp),%esi 8d5: 85 c0 test %eax,%eax 8d7: 74 08 je 8e1 <printint+0x61> buf[i++] = '-'; 8d9: c6 44 0d d8 2d movb $0x2d,-0x28(%ebp,%ecx,1) 8de: 8d 4f 02 lea 0x2(%edi),%ecx 8e1: 8d 7c 0d d7 lea -0x29(%ebp,%ecx,1),%edi 8e5: 8d 76 00 lea 0x0(%esi),%esi 8e8: 0f b6 07 movzbl (%edi),%eax #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 8eb: 83 ec 04 sub $0x4,%esp 8ee: 83 ef 01 sub $0x1,%edi 8f1: 6a 01 push $0x1 8f3: 53 push %ebx 8f4: 56 push %esi 8f5: 88 45 d7 mov %al,-0x29(%ebp) 8f8: e8 c5 fe ff ff call 7c2 <write> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 8fd: 83 c4 10 add $0x10,%esp 900: 39 df cmp %ebx,%edi 902: 75 e4 jne 8e8 <printint+0x68> putc(fd, buf[i]); } 904: 8d 65 f4 lea -0xc(%ebp),%esp 907: 5b pop %ebx 908: 5e pop %esi 909: 5f pop %edi 90a: 5d pop %ebp 90b: c3 ret 90c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi neg = 0; if(sgn && xx < 0){ neg = 1; x = -xx; } else { x = xx; 910: 89 d0 mov %edx,%eax static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 912: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) 919: eb 8b jmp 8a6 <printint+0x26> 91b: 90 nop 91c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00000920 <printf>: } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 920: 55 push %ebp 921: 89 e5 mov %esp,%ebp 923: 57 push %edi 924: 56 push %esi 925: 53 push %ebx int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 926: 8d 45 10 lea 0x10(%ebp),%eax } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 929: 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++){ 92c: 8b 75 0c mov 0xc(%ebp),%esi } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 92f: 8b 7d 08 mov 0x8(%ebp),%edi int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 932: 89 45 d0 mov %eax,-0x30(%ebp) 935: 0f b6 1e movzbl (%esi),%ebx 938: 83 c6 01 add $0x1,%esi 93b: 84 db test %bl,%bl 93d: 0f 84 b0 00 00 00 je 9f3 <printf+0xd3> 943: 31 d2 xor %edx,%edx 945: eb 39 jmp 980 <printf+0x60> 947: 89 f6 mov %esi,%esi 949: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 950: 83 f8 25 cmp $0x25,%eax 953: 89 55 d4 mov %edx,-0x2c(%ebp) state = '%'; 956: ba 25 00 00 00 mov $0x25,%edx state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 95b: 74 18 je 975 <printf+0x55> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 95d: 8d 45 e2 lea -0x1e(%ebp),%eax 960: 83 ec 04 sub $0x4,%esp 963: 88 5d e2 mov %bl,-0x1e(%ebp) 966: 6a 01 push $0x1 968: 50 push %eax 969: 57 push %edi 96a: e8 53 fe ff ff call 7c2 <write> 96f: 8b 55 d4 mov -0x2c(%ebp),%edx 972: 83 c4 10 add $0x10,%esp 975: 83 c6 01 add $0x1,%esi int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 978: 0f b6 5e ff movzbl -0x1(%esi),%ebx 97c: 84 db test %bl,%bl 97e: 74 73 je 9f3 <printf+0xd3> c = fmt[i] & 0xff; if(state == 0){ 980: 85 d2 test %edx,%edx uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; 982: 0f be cb movsbl %bl,%ecx 985: 0f b6 c3 movzbl %bl,%eax if(state == 0){ 988: 74 c6 je 950 <printf+0x30> if(c == '%'){ state = '%'; } else { putc(fd, c); } } else if(state == '%'){ 98a: 83 fa 25 cmp $0x25,%edx 98d: 75 e6 jne 975 <printf+0x55> if(c == 'd'){ 98f: 83 f8 64 cmp $0x64,%eax 992: 0f 84 f8 00 00 00 je a90 <printf+0x170> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 998: 81 e1 f7 00 00 00 and $0xf7,%ecx 99e: 83 f9 70 cmp $0x70,%ecx 9a1: 74 5d je a00 <printf+0xe0> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 9a3: 83 f8 73 cmp $0x73,%eax 9a6: 0f 84 84 00 00 00 je a30 <printf+0x110> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 9ac: 83 f8 63 cmp $0x63,%eax 9af: 0f 84 ea 00 00 00 je a9f <printf+0x17f> putc(fd, *ap); ap++; } else if(c == '%'){ 9b5: 83 f8 25 cmp $0x25,%eax 9b8: 0f 84 c2 00 00 00 je a80 <printf+0x160> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 9be: 8d 45 e7 lea -0x19(%ebp),%eax 9c1: 83 ec 04 sub $0x4,%esp 9c4: c6 45 e7 25 movb $0x25,-0x19(%ebp) 9c8: 6a 01 push $0x1 9ca: 50 push %eax 9cb: 57 push %edi 9cc: e8 f1 fd ff ff call 7c2 <write> 9d1: 83 c4 0c add $0xc,%esp 9d4: 8d 45 e6 lea -0x1a(%ebp),%eax 9d7: 88 5d e6 mov %bl,-0x1a(%ebp) 9da: 6a 01 push $0x1 9dc: 50 push %eax 9dd: 57 push %edi 9de: 83 c6 01 add $0x1,%esi 9e1: e8 dc fd ff ff call 7c2 <write> int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 9e6: 0f b6 5e ff movzbl -0x1(%esi),%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 9ea: 83 c4 10 add $0x10,%esp } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 9ed: 31 d2 xor %edx,%edx int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 9ef: 84 db test %bl,%bl 9f1: 75 8d jne 980 <printf+0x60> putc(fd, c); } state = 0; } } } 9f3: 8d 65 f4 lea -0xc(%ebp),%esp 9f6: 5b pop %ebx 9f7: 5e pop %esi 9f8: 5f pop %edi 9f9: 5d pop %ebp 9fa: c3 ret 9fb: 90 nop 9fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); a00: 83 ec 0c sub $0xc,%esp a03: b9 10 00 00 00 mov $0x10,%ecx a08: 6a 00 push $0x0 a0a: 8b 5d d0 mov -0x30(%ebp),%ebx a0d: 89 f8 mov %edi,%eax a0f: 8b 13 mov (%ebx),%edx a11: e8 6a fe ff ff call 880 <printint> ap++; a16: 89 d8 mov %ebx,%eax a18: 83 c4 10 add $0x10,%esp } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; a1b: 31 d2 xor %edx,%edx if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); ap++; a1d: 83 c0 04 add $0x4,%eax a20: 89 45 d0 mov %eax,-0x30(%ebp) a23: e9 4d ff ff ff jmp 975 <printf+0x55> a28: 90 nop a29: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi } else if(c == 's'){ s = (char*)*ap; a30: 8b 45 d0 mov -0x30(%ebp),%eax a33: 8b 18 mov (%eax),%ebx ap++; a35: 83 c0 04 add $0x4,%eax a38: 89 45 d0 mov %eax,-0x30(%ebp) if(s == 0) s = "(null)"; a3b: b8 18 0e 00 00 mov $0xe18,%eax a40: 85 db test %ebx,%ebx a42: 0f 44 d8 cmove %eax,%ebx while(*s != 0){ a45: 0f b6 03 movzbl (%ebx),%eax a48: 84 c0 test %al,%al a4a: 74 23 je a6f <printf+0x14f> a4c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi a50: 88 45 e3 mov %al,-0x1d(%ebp) #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); a53: 8d 45 e3 lea -0x1d(%ebp),%eax a56: 83 ec 04 sub $0x4,%esp a59: 6a 01 push $0x1 ap++; if(s == 0) s = "(null)"; while(*s != 0){ putc(fd, *s); s++; a5b: 83 c3 01 add $0x1,%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); a5e: 50 push %eax a5f: 57 push %edi a60: e8 5d fd ff ff call 7c2 <write> } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ a65: 0f b6 03 movzbl (%ebx),%eax a68: 83 c4 10 add $0x10,%esp a6b: 84 c0 test %al,%al a6d: 75 e1 jne a50 <printf+0x130> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; a6f: 31 d2 xor %edx,%edx a71: e9 ff fe ff ff jmp 975 <printf+0x55> a76: 8d 76 00 lea 0x0(%esi),%esi a79: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); a80: 83 ec 04 sub $0x4,%esp a83: 88 5d e5 mov %bl,-0x1b(%ebp) a86: 8d 45 e5 lea -0x1b(%ebp),%eax a89: 6a 01 push $0x1 a8b: e9 4c ff ff ff jmp 9dc <printf+0xbc> } else { putc(fd, c); } } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); a90: 83 ec 0c sub $0xc,%esp a93: b9 0a 00 00 00 mov $0xa,%ecx a98: 6a 01 push $0x1 a9a: e9 6b ff ff ff jmp a0a <printf+0xea> a9f: 8b 5d d0 mov -0x30(%ebp),%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); aa2: 83 ec 04 sub $0x4,%esp aa5: 8b 03 mov (%ebx),%eax aa7: 6a 01 push $0x1 aa9: 88 45 e4 mov %al,-0x1c(%ebp) aac: 8d 45 e4 lea -0x1c(%ebp),%eax aaf: 50 push %eax ab0: 57 push %edi ab1: e8 0c fd ff ff call 7c2 <write> ab6: e9 5b ff ff ff jmp a16 <printf+0xf6> abb: 66 90 xchg %ax,%ax abd: 66 90 xchg %ax,%ax abf: 90 nop 00000ac0 <free>: static Header base; static Header *freep; void free(void *ap) { ac0: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) ac1: a1 84 11 00 00 mov 0x1184,%eax static Header base; static Header *freep; void free(void *ap) { ac6: 89 e5 mov %esp,%ebp ac8: 57 push %edi ac9: 56 push %esi aca: 53 push %ebx acb: 8b 5d 08 mov 0x8(%ebp),%ebx Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) ace: 8b 10 mov (%eax),%edx void free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; ad0: 8d 4b f8 lea -0x8(%ebx),%ecx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) ad3: 39 c8 cmp %ecx,%eax ad5: 73 19 jae af0 <free+0x30> ad7: 89 f6 mov %esi,%esi ad9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi ae0: 39 d1 cmp %edx,%ecx ae2: 72 1c jb b00 <free+0x40> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) ae4: 39 d0 cmp %edx,%eax ae6: 73 18 jae b00 <free+0x40> static Header base; static Header *freep; void free(void *ap) { ae8: 89 d0 mov %edx,%eax Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) aea: 39 c8 cmp %ecx,%eax if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) aec: 8b 10 mov (%eax),%edx free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) aee: 72 f0 jb ae0 <free+0x20> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) af0: 39 d0 cmp %edx,%eax af2: 72 f4 jb ae8 <free+0x28> af4: 39 d1 cmp %edx,%ecx af6: 73 f0 jae ae8 <free+0x28> af8: 90 nop af9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi break; if(bp + bp->s.size == p->s.ptr){ b00: 8b 73 fc mov -0x4(%ebx),%esi b03: 8d 3c f1 lea (%ecx,%esi,8),%edi b06: 39 d7 cmp %edx,%edi b08: 74 19 je b23 <free+0x63> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; b0a: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ b0d: 8b 50 04 mov 0x4(%eax),%edx b10: 8d 34 d0 lea (%eax,%edx,8),%esi b13: 39 f1 cmp %esi,%ecx b15: 74 23 je b3a <free+0x7a> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; b17: 89 08 mov %ecx,(%eax) freep = p; b19: a3 84 11 00 00 mov %eax,0x1184 } b1e: 5b pop %ebx b1f: 5e pop %esi b20: 5f pop %edi b21: 5d pop %ebp b22: c3 ret bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ bp->s.size += p->s.ptr->s.size; b23: 03 72 04 add 0x4(%edx),%esi b26: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; b29: 8b 10 mov (%eax),%edx b2b: 8b 12 mov (%edx),%edx b2d: 89 53 f8 mov %edx,-0x8(%ebx) } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ b30: 8b 50 04 mov 0x4(%eax),%edx b33: 8d 34 d0 lea (%eax,%edx,8),%esi b36: 39 f1 cmp %esi,%ecx b38: 75 dd jne b17 <free+0x57> p->s.size += bp->s.size; b3a: 03 53 fc add -0x4(%ebx),%edx p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; freep = p; b3d: a3 84 11 00 00 mov %eax,0x1184 bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ p->s.size += bp->s.size; b42: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; b45: 8b 53 f8 mov -0x8(%ebx),%edx b48: 89 10 mov %edx,(%eax) } else p->s.ptr = bp; freep = p; } b4a: 5b pop %ebx b4b: 5e pop %esi b4c: 5f pop %edi b4d: 5d pop %ebp b4e: c3 ret b4f: 90 nop 00000b50 <malloc>: return freep; } void* malloc(uint nbytes) { b50: 55 push %ebp b51: 89 e5 mov %esp,%ebp b53: 57 push %edi b54: 56 push %esi b55: 53 push %ebx b56: 83 ec 0c sub $0xc,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; b59: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ b5c: 8b 15 84 11 00 00 mov 0x1184,%edx malloc(uint nbytes) { Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; b62: 8d 78 07 lea 0x7(%eax),%edi b65: c1 ef 03 shr $0x3,%edi b68: 83 c7 01 add $0x1,%edi if((prevp = freep) == 0){ b6b: 85 d2 test %edx,%edx b6d: 0f 84 a3 00 00 00 je c16 <malloc+0xc6> b73: 8b 02 mov (%edx),%eax b75: 8b 48 04 mov 0x4(%eax),%ecx base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ b78: 39 cf cmp %ecx,%edi b7a: 76 74 jbe bf0 <malloc+0xa0> b7c: 81 ff 00 10 00 00 cmp $0x1000,%edi b82: be 00 10 00 00 mov $0x1000,%esi b87: 8d 1c fd 00 00 00 00 lea 0x0(,%edi,8),%ebx b8e: 0f 43 f7 cmovae %edi,%esi b91: ba 00 80 00 00 mov $0x8000,%edx b96: 81 ff ff 0f 00 00 cmp $0xfff,%edi b9c: 0f 46 da cmovbe %edx,%ebx b9f: eb 10 jmp bb1 <malloc+0x61> ba1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ ba8: 8b 02 mov (%edx),%eax if(p->s.size >= nunits){ baa: 8b 48 04 mov 0x4(%eax),%ecx bad: 39 cf cmp %ecx,%edi baf: 76 3f jbe bf0 <malloc+0xa0> p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) bb1: 39 05 84 11 00 00 cmp %eax,0x1184 bb7: 89 c2 mov %eax,%edx bb9: 75 ed jne ba8 <malloc+0x58> char *p; Header *hp; if(nu < 4096) nu = 4096; p = sbrk(nu * sizeof(Header)); bbb: 83 ec 0c sub $0xc,%esp bbe: 53 push %ebx bbf: e8 66 fc ff ff call 82a <sbrk> if(p == (char*)-1) bc4: 83 c4 10 add $0x10,%esp bc7: 83 f8 ff cmp $0xffffffff,%eax bca: 74 1c je be8 <malloc+0x98> return 0; hp = (Header*)p; hp->s.size = nu; bcc: 89 70 04 mov %esi,0x4(%eax) free((void*)(hp + 1)); bcf: 83 ec 0c sub $0xc,%esp bd2: 83 c0 08 add $0x8,%eax bd5: 50 push %eax bd6: e8 e5 fe ff ff call ac0 <free> return freep; bdb: 8b 15 84 11 00 00 mov 0x1184,%edx } freep = prevp; return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) be1: 83 c4 10 add $0x10,%esp be4: 85 d2 test %edx,%edx be6: 75 c0 jne ba8 <malloc+0x58> return 0; be8: 31 c0 xor %eax,%eax bea: eb 1c jmp c08 <malloc+0xb8> bec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ if(p->s.size == nunits) bf0: 39 cf cmp %ecx,%edi bf2: 74 1c je c10 <malloc+0xc0> prevp->s.ptr = p->s.ptr; else { p->s.size -= nunits; bf4: 29 f9 sub %edi,%ecx bf6: 89 48 04 mov %ecx,0x4(%eax) p += p->s.size; bf9: 8d 04 c8 lea (%eax,%ecx,8),%eax p->s.size = nunits; bfc: 89 78 04 mov %edi,0x4(%eax) } freep = prevp; bff: 89 15 84 11 00 00 mov %edx,0x1184 return (void*)(p + 1); c05: 83 c0 08 add $0x8,%eax } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } } c08: 8d 65 f4 lea -0xc(%ebp),%esp c0b: 5b pop %ebx c0c: 5e pop %esi c0d: 5f pop %edi c0e: 5d pop %ebp c0f: c3 ret base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ if(p->s.size == nunits) prevp->s.ptr = p->s.ptr; c10: 8b 08 mov (%eax),%ecx c12: 89 0a mov %ecx,(%edx) c14: eb e9 jmp bff <malloc+0xaf> Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; c16: c7 05 84 11 00 00 88 movl $0x1188,0x1184 c1d: 11 00 00 c20: c7 05 88 11 00 00 88 movl $0x1188,0x1188 c27: 11 00 00 base.s.size = 0; c2a: b8 88 11 00 00 mov $0x1188,%eax c2f: c7 05 8c 11 00 00 00 movl $0x0,0x118c c36: 00 00 00 c39: e9 3e ff ff ff jmp b7c <malloc+0x2c>
32.987854
121
0.442617
fb38ef631dca20f000d422df26c0e1077da4f1ea
361
asm
Assembly
oeis/059/A059626.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/059/A059626.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/059/A059626.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A059626: Generalized nim sum n + n + n in base 10; carryless multiplication 3 X n base 10. ; Submitted by Simon Strandgaard ; 0,3,6,9,2,5,8,1,4,7,30,33,36,39,32,35,38,31,34,37,60,63,66,69,62,65,68,61,64,67,90,93,96,99,92,95,98,91,94,97 mov $3,1 lpb $0 mov $2,$0 div $0,10 mul $2,3 mod $2,10 mul $2,$3 add $1,$2 mul $3,10 lpe sub $3,1 mov $0,$1
21.235294
111
0.620499
c7fcd7a0ef0fcd9b26bcf4580642793f4ad4da1e
6,476
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_491.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_491.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_491.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 %r15 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x1a418, %rsi lea addresses_D_ht+0x3070, %rdi add $38137, %r13 mov $118, %rcx rep movsw nop nop nop nop nop xor $30838, %rbp lea addresses_UC_ht+0x9508, %r15 nop mfence mov $0x6162636465666768, %rcx movq %rcx, (%r15) nop nop nop nop nop and $53533, %r9 lea addresses_WC_ht+0x784c, %r15 nop nop nop nop sub %r9, %r9 mov (%r15), %rcx nop nop nop nop xor %rcx, %rcx lea addresses_WT_ht+0x6088, %r13 nop nop xor %rsi, %rsi mov (%r13), %edi nop nop nop nop nop dec %rbp lea addresses_normal_ht+0xd888, %r15 nop nop nop cmp $21532, %rcx mov $0x6162636465666768, %rbp movq %rbp, %xmm5 and $0xffffffffffffffc0, %r15 movntdq %xmm5, (%r15) nop nop and $21868, %rsi lea addresses_D_ht+0x8a88, %rsi lea addresses_D_ht+0xc420, %rdi nop nop nop dec %r9 mov $24, %rcx rep movsl nop nop nop nop nop sub $32508, %r13 lea addresses_normal_ht+0xa308, %rdi nop inc %r15 mov (%rdi), %r9d nop nop nop inc %r9 lea addresses_D_ht+0xdf0a, %rsi lea addresses_A_ht+0x1ea08, %rdi clflush (%rsi) add $59972, %r9 mov $125, %rcx rep movsl nop nop nop nop nop and %r15, %r15 lea addresses_WC_ht+0x1fa8, %r15 cmp $11229, %rcx vmovups (%r15), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $1, %xmm7, %r9 nop nop xor $37116, %rbp lea addresses_WC_ht+0x4c58, %r9 nop nop nop nop nop xor $8921, %rbp movb (%r9), %cl nop nop nop nop cmp $42836, %r15 pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %rbx push %rcx push %rdx // Faulty Load lea addresses_normal+0x1fd08, %rdx clflush (%rdx) cmp $9626, %r14 mov (%rdx), %cx lea oracles, %rdx and $0xff, %rcx shlq $12, %rcx mov (%rdx,%rcx,1), %rcx pop %rdx pop %rcx pop %rbx pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': True, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': False, 'NT': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 5, 'size': 16, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 8, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 3, 'size': 32, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
37.005714
2,999
0.659975
e3ba3f7acaef7695dd8e8bd74799d612e16eb254
1,147
asm
Assembly
non_regression/other_x86_linux_2.mingw.s.asm
LRGH/plasmasm
4cd50546c3dc895763d72dd60b7c46179c1916bc
[ "Apache-2.0" ]
1
2021-02-28T21:31:18.000Z
2021-02-28T21:31:18.000Z
non_regression/other_x86_linux_2.mingw.s.asm
LRGH/plasmasm
4cd50546c3dc895763d72dd60b7c46179c1916bc
[ "Apache-2.0" ]
null
null
null
non_regression/other_x86_linux_2.mingw.s.asm
LRGH/plasmasm
4cd50546c3dc895763d72dd60b7c46179c1916bc
[ "Apache-2.0" ]
null
null
null
.file "a03bis.c" .intel_syntax .text .def _toto; .scl 2; .type 32; .endef _toto: push ebp mov ebp, esp mov eax, DWORD PTR [ebp+8] inc DWORD PTR [eax] pop ebp ret # ---------------------- .def _tata; .scl 2; .type 32; .endef _tata: push ebp mov ebp, esp mov eax, DWORD PTR [ebp+8] dec DWORD PTR [eax] pop ebp ret # ---------------------- .data .align 4 .def _t; .scl 2; .endef _t: .long _toto .long _tata # ---------------------- .text .def _main; .scl 2; .type 32; .endef _main: push ebp mov ebp, esp sub esp, 24 and esp, -16 mov eax, 0 add eax, 15 add eax, 15 shr eax, 4 sal eax, 4 mov DWORD PTR [ebp-8], eax mov eax, DWORD PTR [ebp-8] call __alloca call ___main mov DWORD PTR [ebp-4], 0 mov edx, DWORD PTR [ebp+8] lea eax, [ebp-4] mov DWORD PTR [esp], eax mov eax, DWORD PTR _t[-4+edx*4] call eax mov eax, DWORD PTR [ebp-4] leave ret # ---------------------- .def ___main; .scl 2; .type 32; .endef
20.482143
39
0.471665
8cbc10e6e0372696bc662cc7f8585b35235acb41
823
asm
Assembly
oeis/142/A142421.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142421.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142421.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142421: Primes congruent to 9 mod 49. ; Submitted by Jon Maiga ; 107,401,499,1087,1283,1381,1871,2459,2557,2753,2851,3733,3929,4027,4517,4909,5399,5693,5791,5987,6379,6673,6869,6967,7457,8731,9221,9319,9613,9907,10103,10691,10789,11083,11279,11867,12161,12553,13043,13337,13729,15101,15199,15493,15787,16963,17159,17257,17551,17747,18041,18433,19609,20393,20981,21569,21863,21961,22157,22549,23039,23333,23431,23627,24019,24509,25097,25391,26371,26861,26959,27253,27449,27743,28429,28723,29017,29311,30389,30781,30977,31271,31663,31859,31957,32251,32839,33329 mov $1,4 mov $2,$0 add $2,2 pow $2,2 lpb $2 sub $2,2 mov $3,$1 mul $3,2 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,49 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 mul $0,2 sub $0,97
34.291667
496
0.72904
ed8c8fa43ce0ca71c89398b64102b4ccae74e6b9
1,886
asm
Assembly
KEYPAD/codigo/keypad_codigo.asm
edsonbjr-git/Medidor_Energia_Eletronico_PIC16F877A_PIC18F4550
b952e180c1893462ebc7c1f0bc1c5e368440cb74
[ "MIT" ]
null
null
null
KEYPAD/codigo/keypad_codigo.asm
edsonbjr-git/Medidor_Energia_Eletronico_PIC16F877A_PIC18F4550
b952e180c1893462ebc7c1f0bc1c5e368440cb74
[ "MIT" ]
null
null
null
KEYPAD/codigo/keypad_codigo.asm
edsonbjr-git/Medidor_Energia_Eletronico_PIC16F877A_PIC18F4550
b952e180c1893462ebc7c1f0bc1c5e368440cb74
[ "MIT" ]
null
null
null
_main: ;keypad_codigo.c,1 :: void main() ;keypad_codigo.c,3 :: PORTD =0x00; CLRF PORTD+0 ;keypad_codigo.c,5 :: TRISD.TRISD1 = 1; BSF TRISD+0, 1 ;keypad_codigo.c,6 :: TRISD.TRISD2 = 1; BSF TRISD+0, 2 ;keypad_codigo.c,7 :: TRISD.TRISD0 = 1; BSF TRISD+0, 0 ;keypad_codigo.c,9 :: UART1_Init(19200); MOVLW 64 MOVWF SPBRG+0 BSF TXSTA+0, 2 CALL _UART1_Init+0 ;keypad_codigo.c,10 :: while(1) L_main0: ;keypad_codigo.c,12 :: while(RD0_bit ==0) L_main2: BTFSC RD0_bit+0, BitPos(RD0_bit+0) GOTO L_main3 ;keypad_codigo.c,14 :: delay_ms(1000); MOVLW 26 MOVWF R11+0 MOVLW 94 MOVWF R12+0 MOVLW 110 MOVWF R13+0 L_main4: DECFSZ R13+0, 1 GOTO L_main4 DECFSZ R12+0, 1 GOTO L_main4 DECFSZ R11+0, 1 GOTO L_main4 NOP ;keypad_codigo.c,15 :: UART1_Write_Text(" TESTE"); MOVLW ?lstr1_keypad_codigo+0 MOVWF FARG_UART1_Write_Text_uart_text+0 CALL _UART1_Write_Text+0 ;keypad_codigo.c,16 :: UART1_Write(13); MOVLW 13 MOVWF FARG_UART1_Write_data_+0 CALL _UART1_Write+0 ;keypad_codigo.c,18 :: } GOTO L_main2 L_main3: ;keypad_codigo.c,19 :: delay_ms(1000); MOVLW 26 MOVWF R11+0 MOVLW 94 MOVWF R12+0 MOVLW 110 MOVWF R13+0 L_main5: DECFSZ R13+0, 1 GOTO L_main5 DECFSZ R12+0, 1 GOTO L_main5 DECFSZ R11+0, 1 GOTO L_main5 NOP ;keypad_codigo.c,20 :: UART1_Write_Text(" BIT ==1"); MOVLW ?lstr2_keypad_codigo+0 MOVWF FARG_UART1_Write_Text_uart_text+0 CALL _UART1_Write_Text+0 ;keypad_codigo.c,21 :: UART1_Write(13); MOVLW 13 MOVWF FARG_UART1_Write_data_+0 CALL _UART1_Write+0 ;keypad_codigo.c,22 :: } GOTO L_main0 ;keypad_codigo.c,24 :: } L_end_main: GOTO $+0 ; end of _main
23.873418
54
0.615589
745a1c6593ba61e5b67cd1c8803d3c0318df2c6f
430
asm
Assembly
oeis/026/A026006.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/026/A026006.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/026/A026006.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A026006: Expansion of 1/((1-2x)(1-5x)(1-8x)(1-12x)). ; Submitted by Jon Maiga ; 1,27,483,7271,100083,1308831,16594651,206375367,2535071715,30892653935,374502469419,4524435989463,54536889623347,656393971978239,7892348208238587,94833193717469159,1138998700671586179 mov $1,1 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 sub $2,1 sub $0,$2 seq $0,16320 ; Expansion of 1/((1-2x)(1-8x)(1-12x)). mul $1,5 add $1,$0 lpe mov $0,$1
25.294118
185
0.7
9b0fde836d255deacd4a53dee9044e908b466a8e
3,968
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1854.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_1854.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_1854.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 %r13 push %r8 push %rbp push %rbx push %rcx push %rdi // Load lea addresses_normal+0x8a1c, %rcx nop nop add %r10, %r10 movups (%rcx), %xmm7 vpextrq $1, %xmm7, %rbp nop and $346, %r10 // Faulty Load lea addresses_normal+0x8a1c, %r13 nop xor %rdi, %rdi mov (%r13), %r8 lea oracles, %rbx and $0xff, %r8 shlq $12, %r8 mov (%rbx,%r8,1), %r8 pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 8, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
73.481481
2,999
0.661542
3d645195b06f79960030cc7570ea148151e6840a
7,761
asm
Assembly
Transynther/x86/_processed/NONE/_ht_st_zr_un_/i7-7700_9_0x48.log_21829_1229.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_ht_st_zr_un_/i7-7700_9_0x48.log_21829_1229.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_ht_st_zr_un_/i7-7700_9_0x48.log_21829_1229.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %r15 push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x1033f, %rsi lea addresses_WT_ht+0xdbbf, %rdi nop nop nop nop sub $13058, %r14 mov $59, %rcx rep movsl nop nop nop nop sub $62908, %r10 lea addresses_normal_ht+0x1383f, %rsi lea addresses_UC_ht+0x153bf, %rdi nop nop nop nop nop xor $28, %rbp mov $71, %rcx rep movsb nop nop nop nop sub $22330, %rcx lea addresses_WC_ht+0x1ba3, %r14 nop nop nop nop nop cmp %r15, %r15 mov $0x6162636465666768, %rcx movq %rcx, (%r14) nop nop and $34201, %r14 lea addresses_D_ht+0x513f, %rdi nop nop nop nop sub %r15, %r15 movl $0x61626364, (%rdi) nop nop nop nop sub %rsi, %rsi lea addresses_WT_ht+0xe1ef, %rcx nop cmp %r14, %r14 mov $0x6162636465666768, %r15 movq %r15, %xmm4 vmovups %ymm4, (%rcx) nop cmp %r15, %r15 lea addresses_A_ht+0x1d7bf, %rdi add $43666, %rbp mov (%rdi), %r15w nop sub $5449, %rdi lea addresses_WC_ht+0x236f, %rcx nop nop nop cmp %r15, %r15 mov $0x6162636465666768, %r10 movq %r10, (%rcx) add $60149, %rdi lea addresses_D_ht+0x517f, %rsi lea addresses_WC_ht+0x6987, %rdi nop nop nop nop nop sub %r12, %r12 mov $61, %rcx rep movsq nop nop nop inc %rbp lea addresses_WC_ht+0x37bf, %rsi lea addresses_WC_ht+0x4a3f, %rdi nop nop nop nop dec %r15 mov $93, %rcx rep movsq and $28298, %rcx lea addresses_normal_ht+0x8dbf, %r14 nop nop nop nop add %r15, %r15 and $0xffffffffffffffc0, %r14 vmovntdqa (%r14), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $0, %xmm6, %rsi nop nop lfence lea addresses_UC_ht+0xc3bf, %r10 nop and $62868, %r14 mov $0x6162636465666768, %rdi movq %rdi, %xmm4 movups %xmm4, (%r10) nop nop nop nop cmp $48780, %rsi pop %rsi pop %rdi pop %rcx pop %rbp pop %r15 pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %r8 push %rax push %rbx push %rsi // Store lea addresses_UC+0x13caf, %r12 sub %rsi, %rsi movw $0x5152, (%r12) nop and $12126, %rsi // Store mov $0x69038500000009bf, %rbx nop nop nop nop sub %r8, %r8 mov $0x5152535455565758, %r11 movq %r11, (%rbx) nop nop nop sub %r8, %r8 // Store lea addresses_A+0x1e9ff, %r12 nop nop nop nop sub %r14, %r14 movb $0x51, (%r12) nop nop inc %rbx // Faulty Load lea addresses_WC+0x2bbf, %rsi nop nop add $42344, %r8 mov (%rsi), %r12 lea oracles, %rax and $0xff, %r12 shlq $12, %r12 mov (%rax,%r12,1), %r12 pop %rsi pop %rbx pop %rax pop %r8 pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 4, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 9, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 6, 'size': 1, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 3, 'size': 32, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 9, 'size': 32, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 11, 'size': 16, 'same': False, 'NT': False}} {'53': 341, '47': 98, '3c': 4, 'ff': 8733, '01': 271, 'a2': 1, '48': 812, 'a8': 1, '46': 1194, '44': 1289, 'd0': 2724, '00': 6299, 'c6': 1, '10': 1, 'e0': 1, '45': 59} d0 ff ff ff 01 46 ff ff 00 ff 48 44 ff 48 ff 00 00 ff 00 ff ff ff ff ff 00 44 ff 01 ff ff 01 ff 01 00 ff ff ff ff 01 00 44 ff ff 44 ff 00 44 ff 01 00 46 ff d0 ff 46 ff ff ff 46 ff 01 44 ff 00 ff ff 00 ff ff 01 ff ff 00 ff 01 ff 01 48 ff 01 ff ff ff 01 ff 01 ff ff 01 ff 01 ff 00 ff 01 00 46 53 ff ff ff 01 ff ff 01 ff 48 ff 01 00 48 ff ff 00 ff 48 00 46 53 ff d0 ff 00 ff 00 48 48 45 00 00 00 48 ff ff d0 53 ff d0 00 ff d0 46 48 00 ff d0 ff ff d0 ff d0 ff d0 ff 00 ff 46 48 00 44 ff 00 ff d0 00 00 46 ff ff ff d0 00 ff d0 00 00 ff d0 ff 00 ff d0 00 ff d0 ff d0 00 ff ff d0 ff 00 00 45 ff ff ff 00 ff d0 00 46 ff ff 48 44 ff 48 ff ff 48 ff 00 ff ff ff ff ff 46 48 00 00 ff 00 00 ff ff 46 ff d0 48 ff ff ff ff d0 ff d0 ff 00 ff ff ff ff ff 00 ff 01 00 00 46 ff d0 00 00 44 ff ff d0 46 48 00 45 ff d0 ff ff 00 48 ff 46 ff d0 ff 01 00 00 ff 48 ff ff d0 48 46 ff 00 ff d0 46 00 00 46 44 ff ff d0 ff d0 ff ff d0 00 48 ff 00 ff 00 00 00 ff 00 00 46 ff ff ff ff d0 ff 00 53 ff ff d0 ff ff ff 01 46 48 00 46 ff ff ff 47 00 48 ff 00 00 ff ff ff ff d0 00 ff 48 00 ff ff ff 46 00 48 44 ff d0 48 00 ff 48 ff 00 ff d0 46 00 53 46 ff 00 00 44 ff ff d0 ff d0 48 48 46 ff d0 00 47 44 ff d0 ff d0 44 ff 00 46 ff ff ff 53 ff d0 48 ff ff ff d0 ff 00 00 44 ff ff d0 48 00 ff d0 ff d0 00 44 ff ff ff ff ff 01 ff 01 ff 01 48 ff 46 48 00 45 ff ff d0 00 ff 48 ff ff d0 00 44 00 ff ff 00 ff d0 00 ff ff ff 46 ff ff ff ff 01 48 ff d0 ff ff ff ff 01 00 48 ff 01 ff 48 ff 01 ff ff 01 ff 01 ff ff 01 46 00 44 ff 00 ff d0 46 ff 46 ff ff ff 00 00 53 ff d0 46 ff 00 00 ff d0 ff ff d0 ff d0 00 44 ff ff 44 ff d0 ff ff ff d0 ff ff ff ff 01 ff 01 00 ff 01 48 48 46 ff 00 ff 46 00 48 44 44 00 00 ff d0 ff ff 00 ff ff 00 ff 00 00 ff d0 46 ff ff 00 ff 00 46 00 ff ff ff ff ff 00 ff 00 ff d0 ff 48 44 ff 00 44 ff d0 48 46 53 00 00 ff 00 00 ff d0 00 00 ff ff d0 ff 00 ff ff ff 00 44 ff 00 ff ff d0 00 ff d0 00 ff d0 46 48 53 44 00 ff ff ff ff d0 ff ff 01 46 53 44 ff 00 53 ff ff ff 00 44 ff 48 44 44 ff 53 ff d0 00 ff ff 00 ff d0 ff 00 44 ff 00 00 ff ff d0 44 ff 00 ff d0 ff 53 ff ff 00 ff 00 00 46 ff ff ff 00 48 ff ff 00 46 53 46 ff ff ff 01 44 ff ff d0 46 00 48 ff d0 ff d0 ff ff ff ff ff ff 01 46 00 44 ff d0 47 ff ff 00 44 ff ff ff ff 01 44 ff ff 44 00 00 ff 46 00 00 44 ff ff ff d0 48 44 ff ff d0 46 44 ff ff ff 46 ff ff 00 00 44 ff ff d0 ff ff ff d0 00 53 44 ff 00 ff d0 ff d0 ff d0 ff d0 ff ff ff d0 ff 48 ff d0 00 00 00 46 44 ff ff ff 00 ff ff ff 01 ff 48 ff 00 00 46 ff d0 ff ff d0 00 46 46 47 ff d0 ff d0 44 ff d0 ff 44 46 48 00 45 ff d0 00 00 44 ff d0 ff 44 ff ff d0 46 00 48 ff 00 ff d0 44 46 00 48 44 ff 00 ff 48 00 ff 00 00 48 ff ff ff ff 00 44 44 ff d0 ff ff 00 48 44 47 00 ff 53 ff d0 ff ff 44 ff 00 ff d0 ff ff 00 ff 44 ff d0 48 ff ff 00 00 44 ff 00 ff 00 00 00 44 ff ff d0 ff d0 00 00 46 ff d0 ff ff 00 00 44 ff 48 00 ff d0 48 ff d0 ff 00 ff ff 00 46 ff 00 47 ff 00 00 44 ff 00 ff 00 ff 00 00 00 53 ff d0 00 00 44 ff ff 00 ff 00 ff d0 00 00 46 ff 48 00 ff ff d0 00 44 ff ff d0 ff 00 ff d0 00 ff ff d0 00 48 00 ff 00 ff ff */
33.89083
2,999
0.653395
dc7abfa0d1cafe30bb8ec245883b93f8cbab67c9
1,321
asm
Assembly
07/MemoryAccess/BasicTest/BasicTest.asm
DarkCleopas/vm-translator
6e55273680c059709e8b787c8a4adfb619c8c5b0
[ "MIT" ]
null
null
null
07/MemoryAccess/BasicTest/BasicTest.asm
DarkCleopas/vm-translator
6e55273680c059709e8b787c8a4adfb619c8c5b0
[ "MIT" ]
null
null
null
07/MemoryAccess/BasicTest/BasicTest.asm
DarkCleopas/vm-translator
6e55273680c059709e8b787c8a4adfb619c8c5b0
[ "MIT" ]
null
null
null
@10 // push constant 10 D=A @SP A=M M=D @SP M=M+1 @LCL // pop local 0 D=M @0 D=D+A @R13 M=D @SP M=M-1 A=M D=M @R13 A=M M=D @21 // push constant 21 D=A @SP A=M M=D @SP M=M+1 @22 // push constant 22 D=A @SP A=M M=D @SP M=M+1 @ARG // pop argument 2 D=M @2 D=D+A @R13 M=D @SP M=M-1 A=M D=M @R13 A=M M=D @ARG // pop argument 1 D=M @1 D=D+A @R13 M=D @SP M=M-1 A=M D=M @R13 A=M M=D @36 // push constant 36 D=A @SP A=M M=D @SP M=M+1 @THIS // pop this 6 D=M @6 D=D+A @R13 M=D @SP M=M-1 A=M D=M @R13 A=M M=D @42 // push constant 42 D=A @SP A=M M=D @SP M=M+1 @45 // push constant 45 D=A @SP A=M M=D @SP M=M+1 @THAT // pop that 5 D=M @5 D=D+A @R13 M=D @SP M=M-1 A=M D=M @R13 A=M M=D @THAT // pop that 2 D=M @2 D=D+A @R13 M=D @SP M=M-1 A=M D=M @R13 A=M M=D @510 // push constant 510 D=A @SP A=M M=D @SP M=M+1 @SP // pop temp 6 M=M-1 A=M D=M @R11 M=D @LCL // push local 0 D=M @0 A=D+A D=M @SP A=M M=D @SP M=M+1 @THAT // push that 5 D=M @5 A=D+A D=M @SP A=M M=D @SP M=M+1 @SP AM=M-1 D=M A=A-1 M=D+M @ARG // push argument 1 D=M @1 A=D+A D=M @SP A=M M=D @SP M=M+1 @SP AM=M-1 D=M A=A-1 M=M-D @THIS // push this 6 D=M @6 A=D+A D=M @SP A=M M=D @SP M=M+1 @THIS // push this 6 D=M @6 A=D+A D=M @SP A=M M=D @SP M=M+1 @SP AM=M-1 D=M A=A-1 M=D+M @SP AM=M-1 D=M A=A-1 M=M-D @R11 // push temp 6 D=M @SP A=M M=D @SP M=M+1 @SP AM=M-1 D=M A=A-1 M=D+M
6.115741
25
0.548827
4870e88c7e33b0e577c4b447a128c153b7ade360
177
asm
Assembly
libsrc/_DEVELOPMENT/adt/p_list/c/sdcc_iy/p_list_front.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/adt/p_list/c/sdcc_iy/p_list_front.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/adt/p_list/c/sdcc_iy/p_list_front.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void *p_list_front(p_list_t *list) SECTION code_clib SECTION code_adt_p_list PUBLIC _p_list_front EXTERN _p_forward_list_front defc _p_list_front = _p_forward_list_front
14.75
42
0.847458
6f200e4c6198595011f508ad2ea22cd4b13c6e00
440
asm
Assembly
oeis/307/A307368.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/307/A307368.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/307/A307368.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A307368: a(n) is the minimal positive integer such that 2*a(n)*prime(n)-1 equals another prime. ; Submitted by Jon Maiga ; 1,1,2,1,2,4,2,1,3,3,1,1,2,3,3,2,3,4,3,2,7,1,2,8,1,5,3,3,3,3,3,2,2,1,5,6,1,3,5,2,5,4,11,4,2,1,1,4,2,1,8,3,7,6,6,2,3,1,6,2,3,2,1,5,3,3,1,1,3,4,5,3,1,3,1,2,3,3,11,4,8,6,2,4,1,3,3,3,6,3,2,5,6,5,1,2,9,2,3,4 seq $0,6093 ; a(n) = prime(n) - 1. seq $0,196660 ; Smallest k>0 such that k*n+(n-1) is prime. div $0,2 add $0,1
48.888889
203
0.588636
d397e9fbcd65f2bb34721302e6468c1c92df825a
485
asm
Assembly
mc-sema/validator/x86_64/tests/MOVSSrm.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/MOVSSrm.asm
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
null
null
null
mc-sema/validator/x86_64/tests/MOVSSrm.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 ; convert 1 to a single precision float and store in xmm0 mov ecx, 1 cvtsi2ss xmm0, ecx ; convert 0 to a single precision float and store in xmm1 mov ecx, 0 cvtsi2ss xmm1, ecx ;TEST_BEGIN_RECORDING ; load 1 in single floating point form lea rcx, [rsp-8] movss [rcx], xmm0 ; store 1 in xmm1 movss xmm1, [rcx] mov ecx, 0 ;TEST_END_RECORDING xor ecx, ecx cvtsi2ss xmm0, ecx cvtsi2ss xmm1, ecx
17.962963
57
0.760825
61ce511c76f8b53798fdb8514655461f146bf284
31,244
asm
Assembly
simd/i386/jdsample-avx2.asm
1camper/libjpeg-turbo
f2729c983afbc093a5afea7dde9b469cf08aaa61
[ "BSD-3-Clause" ]
522
2020-01-19T05:59:00.000Z
2022-03-25T04:36:52.000Z
simd/i386/jdsample-avx2.asm
1camper/libjpeg-turbo
f2729c983afbc093a5afea7dde9b469cf08aaa61
[ "BSD-3-Clause" ]
91
2015-08-28T14:48:12.000Z
2021-09-14T09:02:51.000Z
simd/i386/jdsample-avx2.asm
1camper/libjpeg-turbo
f2729c983afbc093a5afea7dde9b469cf08aaa61
[ "BSD-3-Clause" ]
94
2015-07-23T13:36:27.000Z
2022-03-22T08:50:02.000Z
; ; jdsample.asm - upsampling (AVX2) ; ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB ; Copyright (C) 2015, Intel Corporation. ; Copyright (C) 2016, D. R. Commander. ; ; Based on the x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright notice in jsimdext.inc ; ; This file should be assembled with NASM (Netwide Assembler), ; can *not* be assembled with Microsoft's MASM or any compatible ; assembler (including Borland's Turbo Assembler). ; NASM is available from http://nasm.sourceforge.net/ or ; http://sourceforge.net/project/showfiles.php?group_id=6208 ; ; [TAB8] %include "jsimdext.inc" ; -------------------------------------------------------------------------- SECTION SEG_CONST alignz 32 GLOBAL_DATA(jconst_fancy_upsample_avx2) EXTN(jconst_fancy_upsample_avx2): PW_ONE times 16 dw 1 PW_TWO times 16 dw 2 PW_THREE times 16 dw 3 PW_SEVEN times 16 dw 7 PW_EIGHT times 16 dw 8 alignz 32 ; -------------------------------------------------------------------------- SECTION SEG_TEXT BITS 32 ; ; Fancy processing for the common case of 2:1 horizontal and 1:1 vertical. ; ; The upsampling algorithm is linear interpolation between pixel centers, ; also known as a "triangle filter". This is a good compromise between ; speed and visual quality. The centers of the output pixels are 1/4 and 3/4 ; of the way between input pixel centers. ; ; GLOBAL(void) ; jsimd_h2v1_fancy_upsample_avx2(int max_v_samp_factor, ; JDIMENSION downsampled_width, ; JSAMPARRAY input_data, ; JSAMPARRAY *output_data_ptr); ; %define max_v_samp(b) (b) + 8 ; int max_v_samp_factor %define downsamp_width(b) (b) + 12 ; JDIMENSION downsampled_width %define input_data(b) (b) + 16 ; JSAMPARRAY input_data %define output_data_ptr(b) (b) + 20 ; JSAMPARRAY *output_data_ptr align 32 GLOBAL_FUNCTION(jsimd_h2v1_fancy_upsample_avx2) EXTN(jsimd_h2v1_fancy_upsample_avx2): push ebp mov ebp, esp pushpic ebx ; push ecx ; need not be preserved ; push edx ; need not be preserved push esi push edi get_GOT ebx ; get GOT address mov eax, JDIMENSION [downsamp_width(ebp)] ; colctr test eax, eax jz near .return mov ecx, INT [max_v_samp(ebp)] ; rowctr test ecx, ecx jz near .return mov esi, JSAMPARRAY [input_data(ebp)] ; input_data mov edi, POINTER [output_data_ptr(ebp)] mov edi, JSAMPARRAY [edi] ; output_data alignx 16, 7 .rowloop: push eax ; colctr push edi push esi mov esi, JSAMPROW [esi] ; inptr mov edi, JSAMPROW [edi] ; outptr test eax, SIZEOF_YMMWORD-1 jz short .skip mov dl, JSAMPLE [esi+(eax-1)*SIZEOF_JSAMPLE] mov JSAMPLE [esi+eax*SIZEOF_JSAMPLE], dl ; insert a dummy sample .skip: vpxor ymm0, ymm0, ymm0 ; ymm0=(all 0's) vpcmpeqb xmm7, xmm7, xmm7 vpsrldq xmm7, xmm7, (SIZEOF_XMMWORD-1) ; (ff -- -- -- ... -- --) LSB is ff vpand ymm7, ymm7, YMMWORD [esi+0*SIZEOF_YMMWORD] add eax, byte SIZEOF_YMMWORD-1 and eax, byte -SIZEOF_YMMWORD cmp eax, byte SIZEOF_YMMWORD ja short .columnloop alignx 16, 7 .columnloop_last: vpcmpeqb xmm6, xmm6, xmm6 vpslldq xmm6, xmm6, (SIZEOF_XMMWORD-1) vperm2i128 ymm6, ymm6, ymm6, 1 ; (---- ---- ... ---- ---- ff) MSB is ff vpand ymm6, ymm6, YMMWORD [esi+0*SIZEOF_YMMWORD] jmp short .upsample alignx 16, 7 .columnloop: vmovdqu ymm6, YMMWORD [esi+1*SIZEOF_YMMWORD] vperm2i128 ymm6, ymm0, ymm6, 0x20 vpslldq ymm6, ymm6, 15 .upsample: vmovdqu ymm1, YMMWORD [esi+0*SIZEOF_YMMWORD] ; ymm1=( 0 1 2 ... 29 30 31) vperm2i128 ymm2, ymm0, ymm1, 0x20 vpalignr ymm2, ymm1, ymm2, 15 ; ymm2=(-- 0 1 ... 28 29 30) vperm2i128 ymm4, ymm0, ymm1, 0x03 vpalignr ymm3, ymm4, ymm1, 1 ; ymm3=( 1 2 3 ... 30 31 --) vpor ymm2, ymm2, ymm7 ; ymm2=(-1 0 1 ... 28 29 30) vpor ymm3, ymm3, ymm6 ; ymm3=( 1 2 3 ... 30 31 32) vpsrldq ymm7, ymm4, (SIZEOF_XMMWORD-1) ; ymm7=(31 -- -- ... -- -- --) vpunpckhbw ymm4, ymm1, ymm0 ; ymm4=( 8 9 10 11 12 13 14 15 24 25 26 27 28 29 30 31) vpunpcklbw ymm5, ymm1, ymm0 ; ymm5=( 0 1 2 3 4 5 6 7 16 17 18 19 20 21 22 23) vperm2i128 ymm1, ymm5, ymm4, 0x20 ; ymm1=( 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15) vperm2i128 ymm4, ymm5, ymm4, 0x31 ; ymm4=(16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31) vpunpckhbw ymm5, ymm2, ymm0 ; ymm5=( 7 8 9 10 11 12 13 14 23 24 25 26 27 28 29 30) vpunpcklbw ymm6, ymm2, ymm0 ; ymm6=(-1 0 1 2 3 4 5 6 15 16 17 18 19 20 21 22) vperm2i128 ymm2, ymm6, ymm5, 0x20 ; ymm2=(-1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14) vperm2i128 ymm5, ymm6, ymm5, 0x31 ; ymm5=(15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30) vpunpckhbw ymm6, ymm3, ymm0 ; ymm6=( 1 2 3 4 5 6 7 8 17 18 19 20 21 22 23 24) vpunpcklbw ymm0, ymm3, ymm0 ; ymm0=( 9 10 11 12 13 14 15 16 25 26 27 28 29 30 31 32) vperm2i128 ymm3, ymm0, ymm6, 0x20 ; ymm3=( 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16) vperm2i128 ymm6, ymm0, ymm6, 0x31 ; ymm6=(17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32) vpxor ymm0, ymm0, ymm0 ; ymm0=(all 0's) vpmullw ymm1, ymm1, [GOTOFF(ebx,PW_THREE)] vpmullw ymm4, ymm4, [GOTOFF(ebx,PW_THREE)] vpaddw ymm2, ymm2, [GOTOFF(ebx,PW_ONE)] vpaddw ymm5, ymm5, [GOTOFF(ebx,PW_ONE)] vpaddw ymm3, ymm3, [GOTOFF(ebx,PW_TWO)] vpaddw ymm6, ymm6, [GOTOFF(ebx,PW_TWO)] vpaddw ymm2, ymm2, ymm1 vpaddw ymm5, ymm5, ymm4 vpsrlw ymm2, ymm2, 2 ; ymm2=OutLE=( 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30) vpsrlw ymm5, ymm5, 2 ; ymm5=OutHE=(32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62) vpaddw ymm3, ymm3, ymm1 vpaddw ymm6, ymm6, ymm4 vpsrlw ymm3, ymm3, 2 ; ymm3=OutLO=( 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31) vpsrlw ymm6, ymm6, 2 ; ymm6=OutHO=(33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63) vpsllw ymm3, ymm3, BYTE_BIT vpsllw ymm6, ymm6, BYTE_BIT vpor ymm2, ymm2, ymm3 ; ymm2=OutL=( 0 1 2 ... 29 30 31) vpor ymm5, ymm5, ymm6 ; ymm5=OutH=(32 33 34 ... 61 62 63) vmovdqu YMMWORD [edi+0*SIZEOF_YMMWORD], ymm2 vmovdqu YMMWORD [edi+1*SIZEOF_YMMWORD], ymm5 sub eax, byte SIZEOF_YMMWORD add esi, byte 1*SIZEOF_YMMWORD ; inptr add edi, byte 2*SIZEOF_YMMWORD ; outptr cmp eax, byte SIZEOF_YMMWORD ja near .columnloop test eax, eax jnz near .columnloop_last pop esi pop edi pop eax add esi, byte SIZEOF_JSAMPROW ; input_data add edi, byte SIZEOF_JSAMPROW ; output_data dec ecx ; rowctr jg near .rowloop .return: vzeroupper pop edi pop esi ; pop edx ; need not be preserved ; pop ecx ; need not be preserved poppic ebx pop ebp ret ; -------------------------------------------------------------------------- ; ; Fancy processing for the common case of 2:1 horizontal and 2:1 vertical. ; Again a triangle filter; see comments for h2v1 case, above. ; ; GLOBAL(void) ; jsimd_h2v2_fancy_upsample_avx2(int max_v_samp_factor, ; JDIMENSION downsampled_width, ; JSAMPARRAY input_data, ; JSAMPARRAY *output_data_ptr); ; %define max_v_samp(b) (b) + 8 ; int max_v_samp_factor %define downsamp_width(b) (b) + 12 ; JDIMENSION downsampled_width %define input_data(b) (b) + 16 ; JSAMPARRAY input_data %define output_data_ptr(b) (b) + 20 ; JSAMPARRAY *output_data_ptr %define original_ebp ebp + 0 %define wk(i) ebp - (WK_NUM - (i)) * SIZEOF_YMMWORD ; ymmword wk[WK_NUM] %define WK_NUM 4 %define gotptr wk(0) - SIZEOF_POINTER ; void *gotptr align 32 GLOBAL_FUNCTION(jsimd_h2v2_fancy_upsample_avx2) EXTN(jsimd_h2v2_fancy_upsample_avx2): push ebp mov eax, esp ; eax = original ebp sub esp, byte 4 and esp, byte (-SIZEOF_YMMWORD) ; align to 256 bits mov [esp], eax mov ebp, esp ; ebp = aligned ebp lea esp, [wk(0)] pushpic eax ; make a room for GOT address push ebx ; push ecx ; need not be preserved ; push edx ; need not be preserved push esi push edi get_GOT ebx ; get GOT address movpic POINTER [gotptr], ebx ; save GOT address mov edx, eax ; edx = original ebp mov eax, JDIMENSION [downsamp_width(edx)] ; colctr test eax, eax jz near .return mov ecx, INT [max_v_samp(edx)] ; rowctr test ecx, ecx jz near .return mov esi, JSAMPARRAY [input_data(edx)] ; input_data mov edi, POINTER [output_data_ptr(edx)] mov edi, JSAMPARRAY [edi] ; output_data alignx 16, 7 .rowloop: push eax ; colctr push ecx push edi push esi mov ecx, JSAMPROW [esi-1*SIZEOF_JSAMPROW] ; inptr1(above) mov ebx, JSAMPROW [esi+0*SIZEOF_JSAMPROW] ; inptr0 mov esi, JSAMPROW [esi+1*SIZEOF_JSAMPROW] ; inptr1(below) mov edx, JSAMPROW [edi+0*SIZEOF_JSAMPROW] ; outptr0 mov edi, JSAMPROW [edi+1*SIZEOF_JSAMPROW] ; outptr1 test eax, SIZEOF_YMMWORD-1 jz short .skip push edx mov dl, JSAMPLE [ecx+(eax-1)*SIZEOF_JSAMPLE] mov JSAMPLE [ecx+eax*SIZEOF_JSAMPLE], dl mov dl, JSAMPLE [ebx+(eax-1)*SIZEOF_JSAMPLE] mov JSAMPLE [ebx+eax*SIZEOF_JSAMPLE], dl mov dl, JSAMPLE [esi+(eax-1)*SIZEOF_JSAMPLE] mov JSAMPLE [esi+eax*SIZEOF_JSAMPLE], dl ; insert a dummy sample pop edx .skip: ; -- process the first column block vmovdqu ymm0, YMMWORD [ebx+0*SIZEOF_YMMWORD] ; ymm0=row[ 0][0] vmovdqu ymm1, YMMWORD [ecx+0*SIZEOF_YMMWORD] ; ymm1=row[-1][0] vmovdqu ymm2, YMMWORD [esi+0*SIZEOF_YMMWORD] ; ymm2=row[+1][0] pushpic ebx movpic ebx, POINTER [gotptr] ; load GOT address vpxor ymm3, ymm3, ymm3 ; ymm3=(all 0's) vpunpckhbw ymm4, ymm0, ymm3 ; ymm4=row[ 0]( 8 9 10 11 12 13 14 15 24 25 26 27 28 29 30 31) vpunpcklbw ymm5, ymm0, ymm3 ; ymm5=row[ 0]( 0 1 2 3 4 5 6 7 16 17 18 19 20 21 22 23) vperm2i128 ymm0, ymm5, ymm4, 0x20 ; ymm0=row[ 0]( 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15) vperm2i128 ymm4, ymm5, ymm4, 0x31 ; ymm4=row[ 0](16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31) vpunpckhbw ymm5, ymm1, ymm3 ; ymm5=row[-1]( 8 9 10 11 12 13 14 15 24 25 26 27 28 29 30 31) vpunpcklbw ymm6, ymm1, ymm3 ; ymm6=row[-1]( 0 1 2 3 4 5 6 7 16 17 18 19 20 21 22 23) vperm2i128 ymm1, ymm6, ymm5, 0x20 ; ymm1=row[-1]( 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15) vperm2i128 ymm5, ymm6, ymm5, 0x31 ; ymm5=row[-1](16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31) vpunpckhbw ymm6, ymm2, ymm3 ; ymm6=row[+1]( 8 9 10 11 12 13 14 15 24 25 26 27 28 29 30 31) vpunpcklbw ymm3, ymm2, ymm3 ; ymm3=row[+1]( 0 1 2 3 4 5 6 7 16 17 18 19 20 21 22 23) vperm2i128 ymm2, ymm3, ymm6, 0x20 ; ymm2=row[+1]( 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15) vperm2i128 ymm6, ymm3, ymm6, 0x31 ; ymm6=row[+1](16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31) vpmullw ymm0, ymm0, [GOTOFF(ebx,PW_THREE)] vpmullw ymm4, ymm4, [GOTOFF(ebx,PW_THREE)] vpcmpeqb xmm7, xmm7, xmm7 vpsrldq xmm7, xmm7, (SIZEOF_XMMWORD-2) ; (ffff ---- ---- ... ---- ----) LSB is ffff vpaddw ymm1, ymm1, ymm0 ; ymm1=Int0L=( 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15) vpaddw ymm5, ymm5, ymm4 ; ymm5=Int0H=(16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31) vpaddw ymm2, ymm2, ymm0 ; ymm2=Int1L=( 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15) vpaddw ymm6, ymm6, ymm4 ; ymm6=Int1H=(16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31) vmovdqu YMMWORD [edx+0*SIZEOF_YMMWORD], ymm1 ; temporarily save vmovdqu YMMWORD [edx+1*SIZEOF_YMMWORD], ymm5 ; the intermediate data vmovdqu YMMWORD [edi+0*SIZEOF_YMMWORD], ymm2 vmovdqu YMMWORD [edi+1*SIZEOF_YMMWORD], ymm6 vpand ymm1, ymm1, ymm7 ; ymm1=( 0 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --) vpand ymm2, ymm2, ymm7 ; ymm2=( 0 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --) vmovdqa YMMWORD [wk(0)], ymm1 vmovdqa YMMWORD [wk(1)], ymm2 poppic ebx add eax, byte SIZEOF_YMMWORD-1 and eax, byte -SIZEOF_YMMWORD cmp eax, byte SIZEOF_YMMWORD ja short .columnloop alignx 16, 7 .columnloop_last: ; -- process the last column block pushpic ebx movpic ebx, POINTER [gotptr] ; load GOT address vpcmpeqb xmm1, xmm1, xmm1 vpslldq xmm1, xmm1, (SIZEOF_XMMWORD-2) vperm2i128 ymm1, ymm1, ymm1, 1 ; (---- ---- ... ---- ---- ffff) MSB is ffff vpand ymm2, ymm1, YMMWORD [edi+1*SIZEOF_YMMWORD] vpand ymm1, ymm1, YMMWORD [edx+1*SIZEOF_YMMWORD] vmovdqa YMMWORD [wk(2)], ymm1 ; ymm1=(-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 31) vmovdqa YMMWORD [wk(3)], ymm2 ; ymm2=(-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 31) jmp near .upsample alignx 16, 7 .columnloop: ; -- process the next column block vmovdqu ymm0, YMMWORD [ebx+1*SIZEOF_YMMWORD] ; ymm0=row[ 0][1] vmovdqu ymm1, YMMWORD [ecx+1*SIZEOF_YMMWORD] ; ymm1=row[-1][1] vmovdqu ymm2, YMMWORD [esi+1*SIZEOF_YMMWORD] ; ymm2=row[+1][1] pushpic ebx movpic ebx, POINTER [gotptr] ; load GOT address vpxor ymm3, ymm3, ymm3 ; ymm3=(all 0's) vpunpckhbw ymm4, ymm0, ymm3 ; ymm4=row[ 0]( 8 9 10 11 12 13 14 15 24 25 26 27 28 29 30 31) vpunpcklbw ymm5, ymm0, ymm3 ; ymm5=row[ 0]( 0 1 2 3 4 5 6 7 16 17 18 19 20 21 22 23) vperm2i128 ymm0, ymm5, ymm4, 0x20 ; ymm0=row[ 0]( 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15) vperm2i128 ymm4, ymm5, ymm4, 0x31 ; ymm4=row[ 0](16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31) vpunpckhbw ymm5, ymm1, ymm3 ; ymm5=row[-1]( 8 9 10 11 12 13 14 15 24 25 26 27 28 29 30 31) vpunpcklbw ymm6, ymm1, ymm3 ; ymm6=row[-1]( 0 1 2 3 4 5 6 7 16 17 18 19 20 21 22 23) vperm2i128 ymm1, ymm6, ymm5, 0x20 ; ymm1=row[-1]( 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15) vperm2i128 ymm5, ymm6, ymm5, 0x31 ; ymm5=row[-1](16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31) vpunpckhbw ymm6, ymm2, ymm3 ; ymm6=row[+1]( 8 9 10 11 12 13 14 15 24 25 26 27 28 29 30 31) vpunpcklbw ymm7, ymm2, ymm3 ; ymm7=row[+1]( 0 1 2 3 4 5 6 7 16 17 18 19 20 21 22 23) vperm2i128 ymm2, ymm7, ymm6, 0x20 ; ymm2=row[+1]( 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15) vperm2i128 ymm6, ymm7, ymm6, 0x31 ; ymm6=row[+1](16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31) vpmullw ymm0, ymm0, [GOTOFF(ebx,PW_THREE)] vpmullw ymm4, ymm4, [GOTOFF(ebx,PW_THREE)] vpaddw ymm1, ymm1, ymm0 ; ymm1=Int0L=( 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15) vpaddw ymm5, ymm5, ymm4 ; ymm5=Int0H=(16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31) vpaddw ymm2, ymm2, ymm0 ; ymm2=Int1L=( 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15) vpaddw ymm6, ymm6, ymm4 ; ymm6=Int1H=(16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31) vmovdqu YMMWORD [edx+2*SIZEOF_YMMWORD], ymm1 ; temporarily save vmovdqu YMMWORD [edx+3*SIZEOF_YMMWORD], ymm5 ; the intermediate data vmovdqu YMMWORD [edi+2*SIZEOF_YMMWORD], ymm2 vmovdqu YMMWORD [edi+3*SIZEOF_YMMWORD], ymm6 vperm2i128 ymm1, ymm3, ymm1, 0x20 vpslldq ymm1, ymm1, 14 ; ymm1=(-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 0) vperm2i128 ymm2, ymm3, ymm2, 0x20 vpslldq ymm2, ymm2, 14 ; ymm2=(-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 0) vmovdqa YMMWORD [wk(2)], ymm1 vmovdqa YMMWORD [wk(3)], ymm2 .upsample: ; -- process the upper row vmovdqu ymm7, YMMWORD [edx+0*SIZEOF_YMMWORD] ; ymm7=Int0L=( 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15) vmovdqu ymm3, YMMWORD [edx+1*SIZEOF_YMMWORD] ; ymm3=Int0H=(16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31) vpxor ymm1, ymm1, ymm1 ; ymm1=(all 0's) vperm2i128 ymm0, ymm1, ymm7, 0x03 vpalignr ymm0, ymm0, ymm7, 2 ; ymm0=( 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 --) vperm2i128 ymm4, ymm1, ymm3, 0x20 vpslldq ymm4, ymm4, 14 ; ymm4=(-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 16) vperm2i128 ymm5, ymm1, ymm7, 0x03 vpsrldq ymm5, ymm5, 14 ; ymm5=(15 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --) vperm2i128 ymm6, ymm1, ymm3, 0x20 vpalignr ymm6, ymm3, ymm6, 14 ; ymm6=(-- 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30) vpor ymm0, ymm0, ymm4 ; ymm0=( 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16) vpor ymm5, ymm5, ymm6 ; ymm5=(15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30) vperm2i128 ymm2, ymm1, ymm3, 0x03 vpalignr ymm2, ymm2, ymm3, 2 ; ymm2=(17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 --) vperm2i128 ymm4, ymm1, ymm3, 0x03 vpsrldq ymm4, ymm4, 14 ; ymm4=(31 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --) vperm2i128 ymm1, ymm1, ymm7, 0x20 vpalignr ymm1, ymm7, ymm1, 14 ; ymm1=(-- 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14) vpor ymm1, ymm1, YMMWORD [wk(0)] ; ymm1=(-1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14) vpor ymm2, ymm2, YMMWORD [wk(2)] ; ymm2=(17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32) vmovdqa YMMWORD [wk(0)], ymm4 vpmullw ymm7, ymm7, [GOTOFF(ebx,PW_THREE)] vpmullw ymm3, ymm3, [GOTOFF(ebx,PW_THREE)] vpaddw ymm1, ymm1, [GOTOFF(ebx,PW_EIGHT)] vpaddw ymm5, ymm5, [GOTOFF(ebx,PW_EIGHT)] vpaddw ymm0, ymm0, [GOTOFF(ebx,PW_SEVEN)] vpaddw ymm2, [GOTOFF(ebx,PW_SEVEN)] vpaddw ymm1, ymm1, ymm7 vpaddw ymm5, ymm5, ymm3 vpsrlw ymm1, ymm1, 4 ; ymm1=Out0LE=( 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30) vpsrlw ymm5, ymm5, 4 ; ymm5=Out0HE=(32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62) vpaddw ymm0, ymm0, ymm7 vpaddw ymm2, ymm2, ymm3 vpsrlw ymm0, ymm0, 4 ; ymm0=Out0LO=( 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31) vpsrlw ymm2, ymm2, 4 ; ymm2=Out0HO=(33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63) vpsllw ymm0, ymm0, BYTE_BIT vpsllw ymm2, ymm2, BYTE_BIT vpor ymm1, ymm1, ymm0 ; ymm1=Out0L=( 0 1 2 ... 29 30 31) vpor ymm5, ymm5, ymm2 ; ymm5=Out0H=(32 33 34 ... 61 62 63) vmovdqu YMMWORD [edx+0*SIZEOF_YMMWORD], ymm1 vmovdqu YMMWORD [edx+1*SIZEOF_YMMWORD], ymm5 ; -- process the lower row vmovdqu ymm6, YMMWORD [edi+0*SIZEOF_YMMWORD] ; ymm6=Int1L=( 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15) vmovdqu ymm4, YMMWORD [edi+1*SIZEOF_YMMWORD] ; ymm4=Int1H=(16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31) vpxor ymm1, ymm1, ymm1 ; ymm1=(all 0's) vperm2i128 ymm7, ymm1, ymm6, 0x03 vpalignr ymm7, ymm7, ymm6, 2 ; ymm7=( 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 --) vperm2i128 ymm3, ymm1, ymm4, 0x20 vpslldq ymm3, ymm3, 14 ; ymm3=(-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 16) vperm2i128 ymm0, ymm1, ymm6, 0x03 vpsrldq ymm0, ymm0, 14 ; ymm0=(15 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --) vperm2i128 ymm2, ymm1, ymm4, 0x20 vpalignr ymm2, ymm4, ymm2, 14 ; ymm2=(-- 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30) vpor ymm7, ymm7, ymm3 ; ymm7=( 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16) vpor ymm0, ymm0, ymm2 ; ymm0=(15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30) vperm2i128 ymm5, ymm1, ymm4, 0x03 vpalignr ymm5, ymm5, ymm4, 2 ; ymm5=(17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 --) vperm2i128 ymm3, ymm1, ymm4, 0x03 vpsrldq ymm3, ymm3, 14 ; ymm3=(31 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --) vperm2i128 ymm1, ymm1, ymm6, 0x20 vpalignr ymm1, ymm6, ymm1, 14 ; ymm1=(-- 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14) vpor ymm1, ymm1, YMMWORD [wk(1)] ; ymm1=(-1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14) vpor ymm5, ymm5, YMMWORD [wk(3)] ; ymm5=(17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32) vmovdqa YMMWORD [wk(1)], ymm3 vpmullw ymm6, ymm6, [GOTOFF(ebx,PW_THREE)] vpmullw ymm4, ymm4, [GOTOFF(ebx,PW_THREE)] vpaddw ymm1, ymm1, [GOTOFF(ebx,PW_EIGHT)] vpaddw ymm0, ymm0, [GOTOFF(ebx,PW_EIGHT)] vpaddw ymm7, ymm7, [GOTOFF(ebx,PW_SEVEN)] vpaddw ymm5, ymm5, [GOTOFF(ebx,PW_SEVEN)] vpaddw ymm1, ymm1, ymm6 vpaddw ymm0, ymm0, ymm4 vpsrlw ymm1, ymm1, 4 ; ymm1=Out1LE=( 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30) vpsrlw ymm0, ymm0, 4 ; ymm0=Out1HE=(32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62) vpaddw ymm7, ymm7, ymm6 vpaddw ymm5, ymm5, ymm4 vpsrlw ymm7, ymm7, 4 ; ymm7=Out1LO=( 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31) vpsrlw ymm5, ymm5, 4 ; ymm5=Out1HO=(33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63) vpsllw ymm7, ymm7, BYTE_BIT vpsllw ymm5, ymm5, BYTE_BIT vpor ymm1, ymm1, ymm7 ; ymm1=Out1L=( 0 1 2 ... 29 30 31) vpor ymm0, ymm0, ymm5 ; ymm0=Out1H=(32 33 34 ... 61 62 63) vmovdqu YMMWORD [edi+0*SIZEOF_YMMWORD], ymm1 vmovdqu YMMWORD [edi+1*SIZEOF_YMMWORD], ymm0 poppic ebx sub eax, byte SIZEOF_YMMWORD add ecx, byte 1*SIZEOF_YMMWORD ; inptr1(above) add ebx, byte 1*SIZEOF_YMMWORD ; inptr0 add esi, byte 1*SIZEOF_YMMWORD ; inptr1(below) add edx, byte 2*SIZEOF_YMMWORD ; outptr0 add edi, byte 2*SIZEOF_YMMWORD ; outptr1 cmp eax, byte SIZEOF_YMMWORD ja near .columnloop test eax, eax jnz near .columnloop_last pop esi pop edi pop ecx pop eax add esi, byte 1*SIZEOF_JSAMPROW ; input_data add edi, byte 2*SIZEOF_JSAMPROW ; output_data sub ecx, byte 2 ; rowctr jg near .rowloop .return: vzeroupper pop edi pop esi ; pop edx ; need not be preserved ; pop ecx ; need not be preserved pop ebx mov esp, ebp ; esp <- aligned ebp pop esp ; esp <- original ebp pop ebp ret ; -------------------------------------------------------------------------- ; ; Fast processing for the common case of 2:1 horizontal and 1:1 vertical. ; It's still a box filter. ; ; GLOBAL(void) ; jsimd_h2v1_upsample_avx2(int max_v_samp_factor, JDIMENSION output_width, ; JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr); ; %define max_v_samp(b) (b) + 8 ; int max_v_samp_factor %define output_width(b) (b) + 12 ; JDIMENSION output_width %define input_data(b) (b) + 16 ; JSAMPARRAY input_data %define output_data_ptr(b) (b) + 20 ; JSAMPARRAY *output_data_ptr align 32 GLOBAL_FUNCTION(jsimd_h2v1_upsample_avx2) EXTN(jsimd_h2v1_upsample_avx2): push ebp mov ebp, esp ; push ebx ; unused ; push ecx ; need not be preserved ; push edx ; need not be preserved push esi push edi mov edx, JDIMENSION [output_width(ebp)] add edx, byte (SIZEOF_YMMWORD-1) and edx, -SIZEOF_YMMWORD jz short .return mov ecx, INT [max_v_samp(ebp)] ; rowctr test ecx, ecx jz short .return mov esi, JSAMPARRAY [input_data(ebp)] ; input_data mov edi, POINTER [output_data_ptr(ebp)] mov edi, JSAMPARRAY [edi] ; output_data alignx 16, 7 .rowloop: push edi push esi mov esi, JSAMPROW [esi] ; inptr mov edi, JSAMPROW [edi] ; outptr mov eax, edx ; colctr alignx 16, 7 .columnloop: cmp eax, byte SIZEOF_YMMWORD ja near .above_16 vmovdqu xmm0, XMMWORD [esi+0*SIZEOF_YMMWORD] vpunpckhbw xmm1, xmm0, xmm0 vpunpcklbw xmm0, xmm0, xmm0 vmovdqu XMMWORD [edi+0*SIZEOF_XMMWORD], xmm0 vmovdqu XMMWORD [edi+1*SIZEOF_XMMWORD], xmm1 jmp short .nextrow .above_16: vmovdqu ymm0, YMMWORD [esi+0*SIZEOF_YMMWORD] vpermq ymm0, ymm0, 0xd8 vpunpckhbw ymm1, ymm0, ymm0 vpunpcklbw ymm0, ymm0, ymm0 vmovdqu YMMWORD [edi+0*SIZEOF_YMMWORD], ymm0 vmovdqu YMMWORD [edi+1*SIZEOF_YMMWORD], ymm1 sub eax, byte 2*SIZEOF_YMMWORD jz short .nextrow add esi, byte SIZEOF_YMMWORD ; inptr add edi, byte 2*SIZEOF_YMMWORD ; outptr jmp short .columnloop alignx 16, 7 .nextrow: pop esi pop edi add esi, byte SIZEOF_JSAMPROW ; input_data add edi, byte SIZEOF_JSAMPROW ; output_data dec ecx ; rowctr jg short .rowloop .return: vzeroupper pop edi pop esi ; pop edx ; need not be preserved ; pop ecx ; need not be preserved ; pop ebx ; unused pop ebp ret ; -------------------------------------------------------------------------- ; ; Fast processing for the common case of 2:1 horizontal and 2:1 vertical. ; It's still a box filter. ; ; GLOBAL(void) ; jsimd_h2v2_upsample_avx2(int max_v_samp_factor, JDIMENSION output_width, ; JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr); ; %define max_v_samp(b) (b) + 8 ; int max_v_samp_factor %define output_width(b) (b) + 12 ; JDIMENSION output_width %define input_data(b) (b) + 16 ; JSAMPARRAY input_data %define output_data_ptr(b) (b) + 20 ; JSAMPARRAY *output_data_ptr align 32 GLOBAL_FUNCTION(jsimd_h2v2_upsample_avx2) EXTN(jsimd_h2v2_upsample_avx2): push ebp mov ebp, esp push ebx ; push ecx ; need not be preserved ; push edx ; need not be preserved push esi push edi mov edx, JDIMENSION [output_width(ebp)] add edx, byte (SIZEOF_YMMWORD-1) and edx, -SIZEOF_YMMWORD jz near .return mov ecx, INT [max_v_samp(ebp)] ; rowctr test ecx, ecx jz near .return mov esi, JSAMPARRAY [input_data(ebp)] ; input_data mov edi, POINTER [output_data_ptr(ebp)] mov edi, JSAMPARRAY [edi] ; output_data alignx 16, 7 .rowloop: push edi push esi mov esi, JSAMPROW [esi] ; inptr mov ebx, JSAMPROW [edi+0*SIZEOF_JSAMPROW] ; outptr0 mov edi, JSAMPROW [edi+1*SIZEOF_JSAMPROW] ; outptr1 mov eax, edx ; colctr alignx 16, 7 .columnloop: cmp eax, byte SIZEOF_YMMWORD ja short .above_16 vmovdqu xmm0, XMMWORD [esi+0*SIZEOF_XMMWORD] vpunpckhbw xmm1, xmm0, xmm0 vpunpcklbw xmm0, xmm0, xmm0 vmovdqu XMMWORD [ebx+0*SIZEOF_XMMWORD], xmm0 vmovdqu XMMWORD [ebx+1*SIZEOF_XMMWORD], xmm1 vmovdqu XMMWORD [edi+0*SIZEOF_XMMWORD], xmm0 vmovdqu XMMWORD [edi+1*SIZEOF_XMMWORD], xmm1 jmp near .nextrow .above_16: vmovdqu ymm0, YMMWORD [esi+0*SIZEOF_YMMWORD] vpermq ymm0, ymm0, 0xd8 vpunpckhbw ymm1, ymm0, ymm0 vpunpcklbw ymm0, ymm0, ymm0 vmovdqu YMMWORD [ebx+0*SIZEOF_YMMWORD], ymm0 vmovdqu YMMWORD [ebx+1*SIZEOF_YMMWORD], ymm1 vmovdqu YMMWORD [edi+0*SIZEOF_YMMWORD], ymm0 vmovdqu YMMWORD [edi+1*SIZEOF_YMMWORD], ymm1 sub eax, byte 2*SIZEOF_YMMWORD jz short .nextrow add esi, byte SIZEOF_YMMWORD ; inptr add ebx, 2*SIZEOF_YMMWORD ; outptr0 add edi, 2*SIZEOF_YMMWORD ; outptr1 jmp short .columnloop alignx 16, 7 .nextrow: pop esi pop edi add esi, byte 1*SIZEOF_JSAMPROW ; input_data add edi, byte 2*SIZEOF_JSAMPROW ; output_data sub ecx, byte 2 ; rowctr jg near .rowloop .return: vzeroupper pop edi pop esi ; pop edx ; need not be preserved ; pop ecx ; need not be preserved pop ebx pop ebp ret ; For some reason, the OS X linker does not honor the request to align the ; segment unless we do this. align 32
40.948886
116
0.533254
81d77f767cffaede801490af7df1ecb645c7da97
11,240
asm
Assembly
base/atari/players/cmc_player_reloc.asm
zbyti/Mad-Pascal
546cae9724828f93047080109488be7d0d07d47e
[ "MIT" ]
7
2020-05-02T15:37:57.000Z
2021-02-17T01:59:41.000Z
base/atari/players/cmc_player_reloc.asm
michalkolodziejski/Mad-Pascal
0a7a1e2f379e50b0a23878b0d881ff3407269ed6
[ "MIT" ]
14
2020-05-03T02:02:35.000Z
2020-08-10T08:41:19.000Z
base/atari/players/cmc_player_reloc.asm
michalkolodziejski/Mad-Pascal
0a7a1e2f379e50b0a23878b0d881ff3407269ed6
[ "MIT" ]
5
2020-06-02T18:34:14.000Z
2020-07-09T18:13:44.000Z
*---------------------------* * cmc player v 2.1 * * by Marcin Lewandowski * * based on cmc player v 2.0 * * by Janusz Pelc * *---------------------------* // 10.03.2016 Tebe/Madteam *--- tablica basu (chyba) bass equ 1 *--- strona 0 addr equ $fc word equ $fe .reloc .proc cmc_player *--- skoki jmp play jmp init *--- dane volume dta d' ' czest dta d' ' numins dta d' ' dta c' cmc player v 2.1 '* frq dta d' ' znieks dta d' ' audc dta b(0) czest1 dta d' ' czest2 dta d' ' czest3 dta d' ' zniek dta d' ' count1 dta b($ff),b($ff),b($ff) count2 dta d' ' lopad dta d' ' numptr dta d' ' poswpt dta d' ' ilewol dta d' ' czygrx dta b($80),b($80),b($80) czygrc dta b($80) dana0 dta d' ' dana1 dta d' ' dana2 dta d' ' dana3 dta d' ' dana4 dta d' ' dana5 dta d' ' ladr dta d' ' hadr dta d' ' posptr dta b(0) possng dta b(0) pocrep dta b(0) konrep dta b(0) ilrep dta b(0) tmpo dta b(0) ltemp dta b(0) b1 dta b(0) b2 dta b(0) b3 dta b(0) czygr dta b(0) adrmus dta a(0) adradr dta a(0) adrsng dta a(0) *--- init init sta b1 stx b2 sty b3 and #$70 lsr @ lsr @ lsr @ tax lda tab1,x sta zm1+1 lda tab1+1,x sta zm1+2 lda #3 sta $d20f cld lda word pha lda word+1 pha ldy b3 ldx b2 lda b1 zm1 jsr graj pla sta word+1 pla sta word rts graj lda adrsng sta word lda adrsng+1 sta word+1 ldy #0 txa beq grajx l1 lda (word),y cmp #$8f beq l2 cmp #$ef bne l3 l2 dex bne l3 iny cpy #$54 bcs l4 tya tax bpl grajx l3 iny cpy #$54 bcc l1 l4 rts grajx stx possng jsr skoncz lda #0 ldx #9 l5 sta poswpt,x dex bpl l5 sta posptr lda #1 sta czygr lda #$ff sta konrep lda adrmus sta word lda adrmus+1 sta word+1 ldy #$13 lda (word),y tax lda adrsng sta word lda adrsng+1 sta word+1 ldy possng l6 lda (word),y cmp #$cf bne l7 tya clc adc #$55 tay lda (word),y bmi l8 tax jmp l8 l7 cmp #$8f beq l8 cmp #$ef beq l8 dey bpl l6 l8 stx tmpo stx ltemp rts tempo and #$f beq l8 stx d0+1 stx d1+1 stx d2+1 sty d0+2 sty d1+2 sty d2+2 rts inic stx adrmus stx word sty adrmus+1 sty word+1 clc txa adc #$14 sta adradr tya adc #0 sta adradr+1 stx adrsng iny iny sty adrsng+1 ldy #$13 lda (word),y sta tmpo sta ltemp skoncz ldx #8 l9 lda #0 sta czygr sta $d200,x cpx #3 bcs l10 sta volume,x lda #$ff sta count1,x l10 dex bpl l9 przer lda #$80 l11 ldx #3 l12 sta czygrx,x dex bpl l12 l13 rts kont lda #1 sta czygr lda #0 beq l11 instr and #3 cmp #3 beq l13 cpx #$40 bcs l13 cpy #26 bcs l13 tax lda #$80 sta czygrx,x inst lda #0 sta count1,x sta count2,x sta lopad,x lda b2 sta czest,x lda b3 asl @ asl @ asl @ sta word clc lda adrmus adc #$30 pha lda adrmus+1 adc #1 tay pla clc adc word sta ladr,x tya adc #0 sta hadr,x clc lda adrmus adc #$94 sta word lda adrmus+1 adc #0 sta word+1 lda b3 asl @ adc b3 asl @ tay lda (word),y sta dana0,x iny lda (word),y sta dana1,x and #7 sta b1 iny lda (word),y sta dana2,x iny lda (word),y sta dana3,x iny lda (word),y sta dana4,x iny lda (word),y sta dana5,x ldy #0 lda b1 cmp #3 bne l14 ldy #2 l14 cmp #7 bne l15 ldy #4 l15 lda tab3,y sta word lda tab3+1,y sta word+1 lda dana2,x lsr @ lsr @ lsr @ lsr @ clc adc b2 sta b2 sta zm2+1 tay lda b1 cmp #7 bne l16 tya asl @ tay lda (word),y sta czest1,x iny sty b2 jmp l17 l16 lda (word),y sta czest1,x lda dana2,x and #$f clc adc b2 sta b2 l17 ldy b2 lda b1 cmp #5 php lda (word),y plp beq l18 cmp czest1,x bne l18 sec sbc #1 l18 sta czest2,x lda dana0,x pha and #3 tay lda tab4,y sta zniek,x pla lsr @ lsr @ lsr @ lsr @ ldy #$3e cmp #$f beq l19 ldy #$37 cmp #$e beq l19 ldy #$30 cmp #$d beq l19 clc zm2 adc #0 tay l19 lda tab5,y sta czest3,x rts *--- play play cld lda addr pha lda addr+1 pha lda word pha lda word+1 pha lda czygr bne g1 jmp end g1 lda czygrc beq g2 jmp dal3 g2 lda tmpo cmp ltemp beq g3 jmp dal2 g3 lda posptr beq g4 jmp dal1 g4 ldx #2 g5 ldy czygrx,x bmi g6 sta czygrx,x g6 sta poswpt,x dex bpl g5 lda adrsng sta addr lda adrsng+1 sta addr+1 ldy possng sty word g7 cpy konrep bne g8 lda ilrep beq g8 lda possng ldy pocrep sty possng dec ilrep bne g7 sta possng tay bpl g7 g8 ldx #0 g9 lda (addr),y cmp #$fe bne g10 ldy possng iny cpy word beq g11 sty possng jmp g7 g10 sta numptr,x clc tya adc #$55 tay inx cpx #3 bcc g9 ldy possng lda (addr),y bpl dal1 cmp #$ff beq dal1 lsr @ lsr @ lsr @ and #$e tax lda tab2,x sta zm3+1 lda tab2+1,x sta zm3+2 lda numptr+1 sta word+1 zm3 jsr stop sty possng cpy #$55 bcs g11 cpy word bne g7 g11 ldy word sty possng jmp end stop jsr przer g12 ldy #$ff rts jump bmi g12 tay rts up bmi g12 sec tya sbc word+1 tay rts down bmi g12 clc tya adc word+1 tay rts temp bmi g12 sta tmpo sta ltemp iny rts rep bmi g12 lda numptr+2 bmi g12 sta ilrep iny sty pocrep clc tya adc word+1 sta konrep rts break dey bmi g13 lda (addr),y cmp #$8f beq g13 cmp #$ef bne break g13 iny rts dal1 ldx #2 v1 lda ilewol,x beq v2 dec ilewol,x bpl v7 v2 lda czygrx,x bne v7 ldy numptr,x cpy #$40 bcs v7 lda adradr sta addr lda adradr+1 sta addr+1 lda (addr),y sta word clc tya adc #$40 tay lda (addr),y sta word+1 cmp #$ff beq v7 v3 ldy poswpt,x lda (word),y and #$c0 bne v4 lda (word),y and #$3f sta numins,x inc poswpt,x bpl v3 v4 cmp #$40 bne v5 lda (word),y and #$3f sta b2 lda numins,x sta b3 jsr inst jmp v6 v5 cmp #$80 bne v7 lda (word),y and #$3f sta ilewol,x v6 inc poswpt,x v7 dex bpl v1 ldx posptr inx txa and #$3f sta posptr dal2 dec ltemp bne dal3 lda tmpo sta ltemp lda posptr bne dal3 inc possng dal3 ldy czest2 lda dana1 and #7 cmp #5 beq a1 cmp #6 bne a2 a1 dey a2 sty frq+3 ldy #0 cmp #5 beq a3 cmp #6 bne a4 a3 ldy #2 a4 cmp #7 bne a5 ldy #$28 a5 sty audc ldx #2 loop lda dana1,x and #$e0 sta znieks,x lda ladr,x sta addr lda hadr,x sta addr+1 lda count1,x cmp #$ff beq y4 cmp #$f bne y2 lda lopad,x beq y4 dec lopad,x lda lopad,x bne y4 ldy volume,x beq y1 dey y1 tya sta volume,x lda dana3,x sta lopad,x jmp y4 y2 lda count1,x lsr @ tay lda (addr),y bcc y3 lsr @ lsr @ lsr @ lsr @ y3 and #$f sta volume,x y4 ldy czest1,x lda dana1,x and #7 cmp #1 bne y6 dey tya iny cmp czest2,x php lda #1 plp bne y5 asl @ asl @ y5 and count2,x beq y6 ldy czest2,x cpy #$ff bne y6 lda #0 sta volume,x y6 tya sta frq,x lda #1 sta b1 lda count1,x cmp #$f beq y9 and #7 tay lda tab9,y sta word lda count1,x and #8 php txa plp clc beq y7 adc #3 y7 tay lda dana4,y and word beq y9 lda czest3,x sta frq,x stx b1 dex bpl y8 sta frq+3 lda #0 sta audc y8 inx lda zniek,x sta znieks,x y9 lda count1,x and #$f cmp #$f beq y10 inc count1,x lda count1,x cmp #$f bne y10 lda dana3,x sta lopad,x y10 lda czygrx,x bpl y11 lda volume,x bne y11 lda #$40 sta czygrx,x y11 inc count2,x ldy #0 lda dana1,x lsr @ lsr @ lsr @ lsr @ bcc y12 dey y12 lsr @ bcc y13 iny y13 clc tya adc czest1,x sta czest1,x lda czest2,x cmp #$ff bne y14 ldy #0 y14 clc tya adc czest2,x sta czest2,x dex bmi x1 jmp loop x1 lda znieks sta znieks+3 lda dana1 and #7 tax ldy #3 lda b1 beq x2 ldy tab10,x x2 tya pha lda tab8,y php and #$7f tax tya and #3 asl @ tay lda frq,x d0 sta $d200,y iny lda volume,x cpx #3 bne x3 lda volume x3 ora znieks,x plp bpl d1 lda #0 d1 sta $d200,y pla tay dey and #3 bne x2 ldy #8 lda audc d2 sta $d200,y clc end pla sta word+1 pla sta word pla sta addr+1 pla sta addr rts *--- tablice tab1 dta a(graj) dta a(grajx) dta a(instr) dta a(tempo) dta a(skoncz) dta a(przer) dta a(kont) dta a(inic) tab2 dta a(stop) dta a(jump) dta a(up) dta a(down) dta a(temp) dta a(rep) dta a(break) tab3 dta a(tab5) dta a(tab6) dta a(tab7) tab4 dta b($80),b($a0) dta b($20),b($40) tab5 dta b($ff),b($f1),b($e4),b($d7) dta b($cb),b($c0),b($b5),b($aa) dta b($a1),b($98),b($8f),b($87) dta b($7f),b($78),b($72),b($6b) dta b($65),b($5f),b($5a),b($55) dta b($50),b($4b),b($47),b($43) dta b($3f),b($3c),b($38),b($35) dta b($32),b($2f),b($2c),b($2a) dta b($27),b($25),b($23),b($21) dta b($1f),b($1d),b($1c),b($1a) dta b($18),b($17),b($16),b($14) dta b($13),b($12),b($11),b($10) dta b($0f),b($0e),b($0d),b($0c) dta b($0b),b($0a),b($09),b($08) dta b($07),b($06),b($05),b($04) dta b($03),b($02),b($01),b($00) dta b($00) tab6 ift bass=0 dta b($00),b($00),b($00),b($00) dta b($f2),b($e9),b($da),b($ce) dta b($bf),b($b6),b($aa),b($a1) dta b($98),b($8f),b($89),b($80) dta b($7a),b($71),b($6b),b($65) dta b($5f),b($00),b($56),b($50) dta b($67),b($60),b($5a),b($55) dta b($51),b($4c),b($48),b($43) dta b($3f),b($3d),b($39),b($34) dta b($33),b($39),b($2d),b($2a) dta b($28),b($25),b($24),b($21) dta b($1f),b($1e),b($00),b($00) dta b($0f),b($0e),b($0d),b($0c) dta b($0b),b($0a),b($09),b($08) dta b($07),b($06),b($05),b($04) dta b($03),b($02),b($01),b($00) dta b($00) els dta 0,0,0,0,242,233,218,206,191,182,170,161 dta 152,143,137,128,122,113,107,101,95,92,86 dta 80,77,71,68,65,62,56,53,136,127,121,115,108 dta 103,96,90,85,81,76,72,67,63,61,57,52,51,48 dta 45,42,40,37,36,33,31,30,5,4,3,2,1,0,0 eif tab7 dta a($b38),a($a8c),a($a00),a($96a) dta a($8e8),a($86a),a($7ef),a($780) dta a($708),a($6ae),a($646),a($5e6) dta a($595),a($541),a($4f6),a($4b0) dta a($46e),a($430),a($3f6),a($3bb) dta a($384),a($352),a($322),a($2f4) dta a($2c8),a($2a0),a($27a),a($255) dta a($234),a($214),a($1f5),a($1d8) dta a($1bd),a($1a4),a($18d),a($177) dta a($160),a($14e),a($138),a($127) dta a($115),a($106),a($0f7),a($0e8) dta a($0db),a($0cf),a($0c3),a($0b8) dta a($0ac),a($0a2),a($09a),a($090) dta a($088),a($07f),a($078),a($070) dta a($06a),a($064),a($05e),a($057) dta a($052),a($032),a($00a) tab8 dta b($00),b($01),b($02),b($83) dta b($00),b($01),b($02),b($03) dta b($01),b($00),b($02),b($83) dta b($01),b($00),b($02),b($03) dta b($01),b($02),b($80),b($03) tab9 dta b($80),b($40),b($20),b($10) dta b($08),b($04),b($02),b($01) tab10 dta b(3),b(3),b(3),b(3) dta b(7),b($b),b($f),b($13) *--- koniec .endp
12.475028
49
0.548043
a68b155987b3019391ca3b0973ae9d4350a0b4e1
1,939
asm
Assembly
src/delays.asm
maciejmalecki/trex64
3871ddaf56a106dc91bfd5b26b178d0f7b20d765
[ "MIT" ]
11
2021-07-02T12:31:30.000Z
2022-03-04T06:35:03.000Z
src/delays.asm
maciejmalecki/trex64
3871ddaf56a106dc91bfd5b26b178d0f7b20d765
[ "MIT" ]
105
2020-04-14T10:33:16.000Z
2022-03-13T15:10:05.000Z
src/delays.asm
maciejmalecki/trex64
3871ddaf56a106dc91bfd5b26b178d0f7b20d765
[ "MIT" ]
null
null
null
/* MIT License Copyright (c) 2021 Maciej Malecki Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #import "_zero_page.asm" #import "_segments.asm" #importonce .filenamespace c64lib /* * Busy waits until delay counter gets down to 0. * * In: delay - amount of delay cycles to wait; * if handleDelay is called in raster IRQ then 1 delay cycle = 1/50 sec (PAL) or 1/60 sec (NTSC). * Mod: A */ .pseudocommand wait delay { lda delay sta z_delayCounter !: lda z_delayCounter bne !- } /* * Decrements delay counter if not zero already. To be called periodically i.e. within scope of (raster) IRQ handler. * * Mod: A */ .macro handleDelay() { txa ldx z_delayCounter beq !+ dex stx z_delayCounter !: tax } .segment Code dly_wait10: { wait #10 rts } dly_handleDelay: { handleDelay() rts }
27.309859
118
0.697782
fecd01361183ed27e93b10e3db6d34e7814a6dfb
321
asm
Assembly
programs/oeis/021/A021226.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/021/A021226.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/021/A021226.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A021226: Decimal expansion of 1/222. ; 0,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4,5,0,4 mov $1,$0 mul $0,2 trn $0,2 lpb $1 mod $0,3 mul $0,5 mov $1,1 lpe mod $0,6
24.692308
199
0.529595
b73a3cd757ced79d5dce8594db21c44a91766b27
329
asm
Assembly
resources/charset.asm
GSoftwareDevelopment/sfx-tracker
c10d7512c460c2049c9a01cd4beb0a1b945582a7
[ "MIT", "Unlicense" ]
9
2021-05-18T19:50:58.000Z
2021-07-30T21:21:26.000Z
resources/charset.asm
GSoftwareDevelopment/sfx-tracker
c10d7512c460c2049c9a01cd4beb0a1b945582a7
[ "MIT", "Unlicense" ]
35
2021-07-27T10:30:25.000Z
2021-08-31T18:46:49.000Z
resources/charset.asm
GSoftwareDevelopment/sfx-tracker
c10d7512c460c2049c9a01cd4beb0a1b945582a7
[ "MIT", "Unlicense" ]
null
null
null
charset ins "sfxmm.fnt" ; characters definition for SFX chr_NoteShUp ; char offset 96 dta 255,255,251,217,139,211,243,255 chr_NoteShDn ; char offset 216 dta 255,255,251,249,155,243,243,255 chr_FreqShUp ; char offset 232 dta 255,255,249,215,131,215,247,255 chr_FreqShDn ; char offset 256 dta 255,255,249,247,147,247,247,255
25.307692
36
0.762918
a502b769b8d8e1f355ad99ae1ea7913caba9c41e
703
asm
Assembly
programs/oeis/329/A329923.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/329/A329923.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/329/A329923.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A329923: Beatty sequence for (2+sqrt(34))/5. ; 1,3,4,6,7,9,10,12,14,15,17,18,20,21,23,25,26,28,29,31,32,34,36,37,39,40,42,43,45,46,48,50,51,53,54,56,57,59,61,62,64,65,67,68,70,72,73,75,76,78,79,81,83,84,86,87,89,90,92,93,95,97,98,100,101 mov $7,$0 mov $8,$0 add $8,1 lpb $8,1 mov $0,$7 sub $8,1 sub $0,$8 mov $4,2 mov $9,$0 lpb $4,1 sub $4,1 add $0,$4 sub $0,1 mov $2,$4 mov $3,2 mov $6,$0 mul $6,8 add $3,$6 sub $3,1 add $6,$0 add $6,$3 div $6,5 add $6,3 div $6,6 mul $6,16 lpb $2,1 sub $2,1 mov $5,$6 lpe lpe lpb $9,1 sub $5,$6 mov $9,0 lpe mov $6,$5 div $6,16 add $6,1 add $1,$6 lpe
16.348837
192
0.493599
b17a4e487977cc8f611568b003628d3a2475bd25
402
asm
Assembly
Laboratory/Lab01.asm
Ping6666/Assembly-Language-Projects
81a55e004815485c246fd209c45f2bf85bcce79f
[ "MIT" ]
4
2021-04-12T05:08:12.000Z
2021-09-23T06:56:28.000Z
Laboratory/Lab01.asm
Ping6666/Assembly-Language-Projects
81a55e004815485c246fd209c45f2bf85bcce79f
[ "MIT" ]
null
null
null
Laboratory/Lab01.asm
Ping6666/Assembly-Language-Projects
81a55e004815485c246fd209c45f2bf85bcce79f
[ "MIT" ]
null
null
null
TITLE Homework01 (HW01.ASM) INCLUDE Irvine32.inc main EQU start@0 .code main PROC mov al, 45d ;last two digits of leader’s students ID mov ah, 23d ;last two digits of member’s students ID mov ax, 2533h ;last four digits of student’s ID in hexadecimal mov dx, 0eeeah ;let the value of dx is eeea sub dx, ax ;value of dx subtracting by ax main ENDP END main
26.8
64
0.676617
48a5fc86e5e99f56454896f275f2051df68cb8f8
677
asm
Assembly
oeis/085/A085279.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/085/A085279.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/085/A085279.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A085279: Expansion of (1 - 2*x - 2*x^2)/((1 - 2*x)*(1 - 3*x)). ; Submitted by Christian Krause ; 1,3,7,17,43,113,307,857,2443,7073,20707,61097,181243,539633,1610707,4815737,14414443,43177793,129402307,387944777,1163310043,3488881553,10464547507,31389448217,94159956043,282463090913,847355718307,2542000046057,7625865920443,22877329325873,68631451106707,205893279578297,617677691251243,1853028778786433,5559077746424707,16677216059404937,50031613818476443,150094772735952593,450284180768904307,1350852267428805977,4052556252530604043,12157667658080184353,36473000775217297507,109418997927605381417 mov $1,$0 sub $0,1 mov $2,3 pow $2,$0 mov $3,2 pow $3,$1 add $2,$3 mov $0,$2
52.076923
501
0.815362
8501f18c70286ffcaaa2be52d25dc9d11d7ef58f
2,529
asm
Assembly
fizzbuzz/fizz_buzz.asm
1fabunicorn/assembly-playground
6b56e428b52089921f5b4f7b71742921d0453e5a
[ "Unlicense" ]
null
null
null
fizzbuzz/fizz_buzz.asm
1fabunicorn/assembly-playground
6b56e428b52089921f5b4f7b71742921d0453e5a
[ "Unlicense" ]
null
null
null
fizzbuzz/fizz_buzz.asm
1fabunicorn/assembly-playground
6b56e428b52089921f5b4f7b71742921d0453e5a
[ "Unlicense" ]
null
null
null
; Nova Trauben ; My implentation of Fizz Buzz is NASM assembly ; Compile with: nasm -f elf fizz_buzz.asm ; Link with (64 bit systems require elf_i386 option): ld -m elf_i386 fizz_buzz.o -o fizz_buzz ; Run with: ./fizz_buzz %include 'functions.asm'; needed for printing output SECTION .data Fizz db 'Fizz', 0h Buzz db 'Buzz', 0h FizzBuzz db 'FizzBuzz', 0h SECTION .text global _start _start: mov eax, 1; eax will be our counter var call loop loop: ; check for fizzbuzz call div3 call div5 call print_results call check_if_done ; checks what the remainder of ecx / 3 ; if yes, ebx is 1 div3: push eax; push registers to the stack mov ecx, 3; divisor mov edx, 0; clear registor where result will live div ecx; call div function pop eax cmp edx, 0; see if remainder of counter / 3 = 0 JE is_div_3 JNE not_div_3 is_div_3: mov ebx, 1 ret not_div_3: mov ebx, 0 ret ; checks what the remainder of ecx / 5 ; if yes, edx is 1 ; otherwise its 0 div5: push eax; push registers to the stack that we use in the routine mov ecx, 5; diviser mov edx, 0; clear registor where result will live div ecx; call div function pop eax; put if div3 flag back into ebx cmp edx, 0 JE is_div_5 JNE not_div_5 is_div_5: mov edx, 1 ret not_div_5: mov edx, 0 ret ; checks the value of adx and abx ; if adx & abx = 1, print fizzbuzz ; if ebx = 1, Fizz ; if edx = 1, Buzz ; if both 0, print value in acx print_results: push ecx push eax mov ecx, 0; clear ecx add ecx, ebx add ecx, edx cmp ecx, 2; if true, fizzbuzz pop eax pop ecx JE is_fizz_buzz JNE not_fizz_buzz is_fizz_buzz: call fizzbuzz ret not_fizz_buzz: cmp ebx, 1; if true, fizz JE call_fizz JNE test_for_buzz call_fizz: call fizz ret test_for_buzz: cmp edx, 1; if true buzz JE call_buzz JNE call_print_num; if we gotten to this point, then we know number is not fizz, buzz, or fizzbuzz. just print the current loop number call_buzz: call buzz ret call_print_num: call printNum ret check_if_done: inc eax; add one to loop counter cmp eax, 100; see if loop var has gotten to 100, then exit JE quit; if equal, jump to quit JNE loop; otherwise jump to loop fizz: push eax; push counter var to stack mov eax, Fizz call sprintLF; eax is incremented by one here :) pop eax ret buzz: push eax mov eax, Buzz call sprintLF pop eax ret fizzbuzz: push eax mov eax, FizzBuzz call sprintLF pop eax ret printNum: call iprintLF ret
16.748344
135
0.698695
dd0e47d7fc5fbbec7d355391ea2ad6d418dc0b29
1,309
asm
Assembly
programs/oeis/131/A131326.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/131/A131326.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/131/A131326.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A131326: Row sums of A131325. ; 1,3,4,9,13,24,37,63,100,165,265,432,697,1131,1828,2961,4789,7752,12541,20295,32836,53133,85969,139104,225073,364179,589252,953433,1542685,2496120,4038805,6534927,10573732,17108661,27682393,44791056,72473449,117264507,189737956,307002465,496740421,803742888,1300483309,2104226199,3404709508,5508935709,8913645217,14422580928,23336226145,37758807075,61095033220,98853840297,159948873517,258802713816,418751587333,677554301151,1096305888484,1773860189637,2870166078121,4644026267760,7514192345881,12158218613643,19672410959524,31830629573169,51503040532693,83333670105864,134836710638557,218170380744423,353007091382980,571177472127405,924184563510385,1495362035637792,2419546599148177,3914908634785971,6334455233934148,10249363868720121,16583819102654269,26833182971374392,43417002074028661,70250185045403055,113667187119431716,183917372164834773,297584559284266489,481501931449101264,779086490733367753,1260588422182469019,2039674912915836772,3300263335098305793,5339938248014142565,8640201583112448360,13980139831126590925,22620341414239039287,36600481245365630212,59220822659604669501,95821303904970299713,155042126564574969216,250863430469545268929,405905557034120238147,656768987503665507076,1062674544537785745225 add $0,1 seq $0,97133 ; 3*Fibonacci(n)+(-1)^n. sub $0,1
187
1,219
0.896104
52700859a6f6b7cc6b6159f3fd177588e2763446
7,281
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1498.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1498.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1498.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r8 push %rax push %rcx push %rdi push %rsi lea addresses_WT_ht+0x10632, %r8 xor %rcx, %rcx movb (%r8), %r14b nop nop nop add $59904, %r11 lea addresses_A_ht+0x1acbe, %r8 and $3682, %rsi movw $0x6162, (%r8) and %r8, %r8 lea addresses_D_ht+0x46b2, %rsi lea addresses_A_ht+0x3b72, %rdi nop dec %r11 mov $30, %rcx rep movsl sub $7641, %rsi lea addresses_WC_ht+0x12032, %rsi lea addresses_A_ht+0xa466, %rdi add %rax, %rax mov $88, %rcx rep movsb nop nop nop add %rax, %rax lea addresses_WC_ht+0x1d832, %rax cmp $8306, %rsi movb (%rax), %cl nop cmp %rdi, %rdi lea addresses_normal_ht+0x17cf2, %rcx nop nop xor $38690, %rsi mov $0x6162636465666768, %r8 movq %r8, %xmm4 vmovups %ymm4, (%rcx) xor $35927, %rsi lea addresses_A_ht+0x1eeb2, %rsi xor $19533, %rdi movups (%rsi), %xmm1 vpextrq $0, %xmm1, %r14 nop nop nop nop sub $60733, %r14 lea addresses_normal_ht+0x14c32, %rsi lea addresses_normal_ht+0x19eb2, %rdi nop nop nop nop nop and $33766, %r11 mov $45, %rcx rep movsl nop nop nop nop nop and $45735, %r11 lea addresses_A_ht+0x19b32, %rsi lea addresses_UC_ht+0xb7b2, %rdi nop inc %r14 mov $32, %rcx rep movsq sub %rdi, %rdi lea addresses_WC_ht+0x1d0b2, %rsi lea addresses_normal_ht+0x1cab2, %rdi and $30949, %r13 mov $42, %rcx rep movsb xor $28487, %rdi lea addresses_WT_ht+0x17632, %r13 clflush (%r13) nop nop nop nop xor $37689, %r8 movw $0x6162, (%r13) nop nop nop nop sub %rsi, %rsi lea addresses_UC_ht+0x103b2, %rsi lea addresses_WT_ht+0x19ff2, %rdi nop cmp %r13, %r13 mov $101, %rcx rep movsl nop nop nop sub $57178, %r11 lea addresses_UC_ht+0xa202, %r14 nop xor $24228, %rdi movw $0x6162, (%r14) nop nop nop cmp %r13, %r13 pop %rsi pop %rdi pop %rcx pop %rax pop %r8 pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %r9 push %rax push %rbp push %rbx push %rcx // Faulty Load lea addresses_PSE+0x1d832, %rax nop and %rcx, %rcx vmovups (%rax), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %r10 lea oracles, %rbp and $0xff, %r10 shlq $12, %r10 mov (%rbp,%r10,1), %r10 pop %rcx pop %rbx pop %rbp pop %rax pop %r9 pop %r15 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': True, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': True, 'congruent': 9, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 2, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': True}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 11, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 3, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 3, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 8, 'size': 2, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 3, 'size': 2, 'same': False, 'NT': False}} {'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 */
39.786885
2,999
0.658701
8ac6ead334ee73a0325e078f104bbef905ff287d
196
asm
Assembly
libsrc/_DEVELOPMENT/adt/w_array/c/sdcc_iy/w_array_empty_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/adt/w_array/c/sdcc_iy/w_array_empty_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/adt/w_array/c/sdcc_iy/w_array_empty_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; int w_array_empty_fastcall(b_array_t *a) SECTION code_clib SECTION code_adt_w_array PUBLIC _w_array_empty_fastcall EXTERN asm_w_array_empty defc _w_array_empty_fastcall = asm_w_array_empty
16.333333
48
0.867347
ec928404e064152dcfd223909492454f652737a1
62,259
asm
Assembly
Miscellaneous/Chip16-Emulator/roms/Sources/SoundTest.asm
ghivert/Student-Projects
43d7a61eac94365b3296ea09311f855ac00d71d1
[ "MIT" ]
2
2017-09-11T19:13:06.000Z
2020-01-20T09:05:40.000Z
Miscellaneous/Chip16-Emulator/roms/Sources/SoundTest.asm
ghivert/Student-Projects
43d7a61eac94365b3296ea09311f855ac00d71d1
[ "MIT" ]
null
null
null
Miscellaneous/Chip16-Emulator/roms/Sources/SoundTest.asm
ghivert/Student-Projects
43d7a61eac94365b3296ea09311f855ac00d71d1
[ "MIT" ]
3
2017-02-08T18:01:56.000Z
2018-10-04T21:30:08.000Z
;Sound test for Chip16 ;Shendo 2011 ; ;Registers ra-rf used for ASCII printing ;r0 - current selection ;r1 - selector X position ;r2 - selector Y position ;r3 - Gamepad 1 state ;r4 - Gamepad 1 state mirror ;r5 - Max offset number ;r6 - Gamepad 1 dpad timeout ;r7 - Constant 0 ;r8 - Scratchpad ; cls ;Start clean ldi r0,0 ;First option selected by default ldi r1,80 ;Selector X position ldi r2,88 ;Selector Y position ldi r5,2 ;Constant 2 ldi r6,0 ;Clear PAD1 timeout ldi r7,0 ;Constant 0 :start ;Start of the program vblnk ;Wait for VBlank ldm r3,#FFF0 ;Poll PAD1 state jme r3,r7,clr_pad_tmo ;Clear timeout if no keys are pressed jmp continue_exec ;Skip timeout clearing :clr_pad_tmo ldi r6,0 ;Clear PAD1 timeout :continue_exec cls ;Clear the screen ldi ra,10 ;X coordinate ldi rb,10 ;Y coordinate ldi rd,string_data_0 ;Pointer to the string0 call print_string ;Draw string on screen ldi ra,10 ;X coordinate ldi rb,185 ;Y coordinate ldi rd,string_data_1 ;Pointer to the string1 call print_string ;Draw string on screen ldi ra,10 ;X coordinate ldi rb,200 ;Y coordinate ldi rd,string_data_2 ;Pointer to the string2 call print_string ;Draw string on screen ldi ra,10 ;X coordinate ldi rb,215 ;Y coordinate ldi rd,string_data_3 ;Pointer to the string3 call print_string ;Draw string on screen ldi ra,10 ;X coordinate ldi rb,85 ;Y coordinate ldi rd,string_data_4 ;Pointer to the string4 call print_string ;Draw string on screen ldi ra,10 ;X coordinate ldi rb,100 ;Y coordinate ldi rd,string_data_5 ;Pointer to the string5 call print_string ;Draw string on screen ldi ra,10 ;X coordinate ldi rb,115 ;Y coordinate ldi rd,string_data_6 ;Pointer to the string6 call print_string ;Draw string on screen mov r2,r0 ;Copy current selection muli r2,16 ;Convert to offset addi r2,88 ;Get Y coordinate spr #0903 ;Set 6x9 px sprites drw r1,r2,arrow_sprite ;Draw arrow selector mov r4,r3 ;Get PAD1 state for manipulation andi r4,64 ;Isolate A key jz skip_playing ;Skip playing if A is not pressed call play_snd ;Play selected sound :skip_playing jme r6,r7,move_up ;Check if PAD1 timeout is zero subi r6,1 ;Decrement PAD1 timeout jz move_up ;No timeout, read keys jmp start ;Jump to beginning (new frame) :move_up ;Check if PAD1 UP is pressed mov r4,r3 ;Get PAD1 state for manipulation andi r4,1 ;Isolate UP key jz move_down ;UP key is not pressed, skip jme r0,r7,start ;Min offset reached, skip subi r0,1 ;Decrement current selection ldi r6,15 ;Set PAD1 timeout :move_down ;Check if PAD1 UP is pressed mov r4,r3 ;Get PAD1 state for manipulation andi r4,2 ;Isolate DOWN key jz start ;DOWN key is not pressed, skip jme r0,r5,start ;Max offset reached, skip addi r0,1 ;Increment current selection ldi r6,15 ;Set PAD1 timeout jmp start ;Draw new frame :play_snd ldi r8,0 ;Load value for checking jme r0,r8,play_snd1 ;First option is selected ldi r8,1 ;Load value for checking jme r0,r8,play_snd2 ;Second option is selected ldi r8,2 ;Load value for checking jme r0,r8,play_snd3 ;Third option is selected ret ;This should be unreachable, but it's better to play it safe :play_snd1 snd1 200 ;Play 500 Hz tone for 200 ms ret :play_snd2 snd2 200 ;Play 1000 Hz tone for 200 ms ret :play_snd3 snd3 200 ;Play 1500 Hz tone for 200 ms ret :print_string ;Print string on screen spr #0F05 ;Set 10x15 px sprites ldi re,font_data ;Pointer to the graphic data ldm rf,rd ;Get ascii code andi rf,255 ;Use only low part of the data jz print_end ;If the char is null stop printing subi rf,32 ;Convert to char offset jc print_end ;If the char is below zero it's unprintable muli rf,75 ;Convert char offset to byte offset add re,rf ;Get the char sprite address drw ra,rb,re ;Draw char on screen addi ra,8 ;Increase X offset addi rd,1 ;Point to next char jmp print_string ;Print next char :print_end ret :string_data_0 db #53 ;"Sound test" db #6F db #75 db #6E db #64 db #20 db #74 db #65 db #73 db #74 db #00 :string_data_1 db #43 ;"Controls:" db #6F db #6E db #74 db #72 db #6F db #6C db #73 db #3A db #00 :string_data_2 db #55 ;"Up/Down - select frequency" db #70 db #2F db #44 db #6F db #77 db #6E db #20 db #2D db #20 db #73 db #65 db #6C db #65 db #63 db #74 db #20 db #66 db #72 db #65 db #71 db #75 db #65 db #6E db #63 db #79 db #00 :string_data_3 db #41 ;"A - play sound" db #20 db #2D db #20 db #70 db #6C db #61 db #79 db #20 db #73 db #6F db #75 db #6E db #64 db #00 :string_data_4 db #35 ;"500 Hz" db #30 db #30 db #20 db #48 db #7A db #00 :string_data_5 db #31 ;"1000 Hz" db #30 db #30 db #30 db #20 db #48 db #7A db #00 :string_data_6 db #31 ;"1500 Hz" db #35 db #30 db #30 db #20 db #48 db #7A db #00 :arrow_sprite db #00 ;"Sprite data for arrow" db #00 db #30 db #00 db #03 db #30 db #00 db #33 db #30 db #03 db #33 db #30 db #33 db #33 db #30 db #03 db #33 db #30 db #00 db #33 db #30 db #00 db #03 db #30 db #00 db #00 db #30 :font_data db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #0F db #F0 db #00 db #00 db #FF db #0F db #F0 db #00 db #0F db #FF db #FF db #FF db #00 db #00 db #FF db #0F db #F0 db #00 db #00 db #FF db #0F db #F0 db #00 db #00 db #FF db #0F db #F0 db #00 db #0F db #FF db #FF db #FF db #00 db #00 db #FF db #0F db #F0 db #00 db #00 db #FF db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #00 db #00 db #00 db #FF db #0F db #F0 db #00 db #00 db #FF db #0F db #F0 db #F0 db #00 db #0F db #FF db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #FF db #F0 db #00 db #0F db #0F db #F0 db #FF db #00 db #00 db #0F db #F0 db #FF db #00 db #00 db #00 db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #F0 db #00 db #00 db #0F db #F0 db #FF db #00 db #00 db #0F db #F0 db #FF db #00 db #00 db #00 db #FF db #F0 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #FF db #FF db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #F0 db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #0F db #F0 db #00 db #00 db #0F db #FF db #00 db #00 db #0F db #FF db #FF db #FF db #00 db #00 db #0F db #FF db #00 db #00 db #00 db #FF db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #00 db #00 db #00 db #0F db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #00 db #00 db #00 db #0F db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #F0 db #00 db #00 db #FF db #00 db #FF db #00 db #00 db #FF db #0F db #FF db #00 db #00 db #FF db #0F db #FF db #00 db #00 db #FF db #00 db #FF db #00 db #00 db #FF db #F0 db #FF db #00 db #00 db #FF db #F0 db #FF db #00 db #00 db #FF db #00 db #FF db #00 db #00 db #0F db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #FF db #00 db #00 db #0F db #FF db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #0F db #FF db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #0F db #F0 db #00 db #00 db #FF db #0F db #F0 db #00 db #00 db #FF db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #FF db #FF db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #FF db #FF db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #0F db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #FF db #0F db #F0 db #00 db #00 db #FF db #FF db #00 db #00 db #0F db #F0 db #FF db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #00 db #00 db #00 db #0F db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #00 db #00 db #00 db #0F db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #00 db #00 db #00 db #0F db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #00 db #00 db #00 db #0F db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #FF db #00 db #00 db #FF db #00 db #FF db #00 db #00 db #FF db #00 db #FF db #00 db #FF db #FF db #00 db #FF db #0F db #F0 db #FF db #00 db #FF db #0F db #F0 db #FF db #00 db #FF db #00 db #FF db #FF db #00 db #FF db #00 db #00 db #00 db #00 db #0F db #FF db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #FF db #FF db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #F0 db #00 db #00 db #0F db #F0 db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #FF db #00 db #00 db #0F db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #FF db #FF db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #FF db #FF db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #FF db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #FF db #FF db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #FF db #00 db #00 db #0F db #F0 db #FF db #00 db #00 db #0F db #FF db #F0 db #00 db #00 db #0F db #F0 db #FF db #00 db #00 db #0F db #F0 db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #FF db #00 db #0F db #F0 db #00 db #FF db #00 db #0F db #FF db #0F db #FF db #00 db #0F db #F0 db #F0 db #FF db #00 db #0F db #F0 db #F0 db #FF db #00 db #0F db #F0 db #F0 db #FF db #00 db #0F db #F0 db #00 db #FF db #00 db #0F db #F0 db #00 db #FF db #00 db #0F db #F0 db #00 db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #FF db #00 db #0F db #F0 db #00 db #FF db #00 db #0F db #FF db #00 db #FF db #00 db #0F db #FF db #F0 db #FF db #00 db #0F db #F0 db #FF db #FF db #00 db #0F db #F0 db #0F db #FF db #00 db #0F db #F0 db #00 db #FF db #00 db #0F db #F0 db #00 db #FF db #00 db #0F db #F0 db #00 db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #FF db #FF db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #FF db #FF db #00 db #00 db #0F db #F0 db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #FF db #00 db #0F db #F0 db #00 db #FF db #00 db #0F db #F0 db #00 db #FF db #00 db #0F db #F0 db #F0 db #FF db #00 db #0F db #F0 db #F0 db #FF db #00 db #0F db #F0 db #F0 db #FF db #00 db #00 db #FF db #0F db #F0 db #00 db #00 db #FF db #0F db #F0 db #00 db #00 db #FF db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #0F db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #F0 db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #FF db #FF db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #FF db #FF db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #FF db #FF db #F0 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #F0 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #0F db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #0F db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #FF db #00 db #00 db #0F db #FF db #F0 db #00 db #00 db #0F db #F0 db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #0F db #F0 db #F0 db #FF db #00 db #0F db #F0 db #F0 db #FF db #00 db #0F db #F0 db #F0 db #FF db #00 db #0F db #F0 db #F0 db #FF db #00 db #0F db #F0 db #F0 db #FF db #00 db #0F db #F0 db #00 db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #FF db #FF db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #FF db #F0 db #00 db #0F db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #FF db #F0 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #0F db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #0F db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #FF db #00 db #0F db #F0 db #F0 db #FF db #00 db #0F db #F0 db #F0 db #FF db #00 db #0F db #F0 db #F0 db #FF db #00 db #0F db #F0 db #F0 db #FF db #00 db #00 db #FF db #0F db #F0 db #00 db #00 db #FF db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #FF db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #0F db #F0 db #0F db #F0 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #FF db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #FF db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #0F db #F0 db #00 db #00 db #00 db #FF db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #0F db #FF db #00 db #0F db #00 db #FF db #0F db #F0 db #FF db #00 db #F0 db #00 db #FF db #F0 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 db #00 :font_cache
8.449919
68
0.515347
a55de214971356c60d5ed78d15ce367755db7f10
656
asm
Assembly
programs/oeis/056/A056552.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/056/A056552.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/056/A056552.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A056552: Powerfree kernel of cubefree part of n. ; 1,2,3,2,5,6,7,1,3,10,11,6,13,14,15,2,17,6,19,10,21,22,23,3,5,26,1,14,29,30,31,2,33,34,35,6,37,38,39,5,41,42,43,22,15,46,47,6,7,10,51,26,53,2,55,7,57,58,59,30,61,62,21,1,65,66,67,34,69,70,71,3,73,74,15,38,77,78,79,10,3,82,83,42,85,86,87,11,89,30,91,46,93,94,95,6,97,14,33,10 add $0,1 mov $1,1 mov $2,2 mov $3,$0 mov $4,$0 lpb $3 mov $5,$4 mov $6,0 lpb $5 add $6,1 mov $7,$0 div $0,$2 mod $6,3 mod $7,$2 cmp $7,0 sub $5,$7 lpe cmp $6,0 cmp $6,0 mov $7,$2 pow $7,$6 mul $1,$7 add $2,1 sub $3,$6 mov $7,$0 cmp $7,1 cmp $7,0 sub $3,$7 lpe mov $0,$1
19.294118
275
0.544207
898d4717e1f390f7d6f6bf0090f997bc363c4340
153
asm
Assembly
programs/oeis/049/A049624.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/049/A049624.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/049/A049624.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A049624: Essentially the same as A032766. ; 1,1,3,4,6,7,9,10,12,13,15,16,18,19,21,22,24,25,27,28,30,31,33,34,36 pow $1,$0 add $1,$0 mul $1,3 div $1,2
19.125
69
0.633987
190282c875a51425335afa060a150d0284c39782
3,449
asm
Assembly
nrom-scroller/src/graphics.asm
Gumball2415/nes-scribbles
96017f512cb7b3a86d3e64e865f3c23ff7483bc6
[ "MIT" ]
null
null
null
nrom-scroller/src/graphics.asm
Gumball2415/nes-scribbles
96017f512cb7b3a86d3e64e865f3c23ff7483bc6
[ "MIT" ]
null
null
null
nrom-scroller/src/graphics.asm
Gumball2415/nes-scribbles
96017f512cb7b3a86d3e64e865f3c23ff7483bc6
[ "MIT" ]
null
null
null
.include "defines.inc" .include "global.inc" .segment "BANK0" palette_1: ; BG .byte $0f,$00,$10,$30 .byte $0f,$19,$29,$39 .byte $0f,$01,$12,$21 .byte $0f,$03,$14,$22 ; FG .byte $0f,$00,$10,$30 .byte $0f,$19,$29,$39 .byte $0f,$01,$12,$21 .byte $0f,$03,$14,$22 palette_2: .byte $0f,$00,$10,$30 .byte $2d,$19,$29,$39 .byte $2d,$06,$16,$27 .byte $2d,$06,$16,$26 .byte $0f,$00,$10,$30 .byte $2d,$19,$29,$39 .byte $2d,$06,$16,$27 .byte $2d,$06,$16,$26 palette_tableLo: .byte <palette_1 .byte <palette_2 palette_tableHi: .byte >palette_1 .byte >palette_2 logotype_nametable: .incbin "../gfx/logotype_nametable.bin" star_nametable: .incbin "../gfx/star_nametable.bin" star_nametable_2: ; sorry, don't know how to deal with .map files yet .incbin "../gfx/star_nametable_2.bin" nametable_tableLo: .byte $00 .byte <logotype_nametable .byte <star_nametable .byte <star_nametable_2 nametable_tableHi: .byte $00 .byte >logotype_nametable .byte >star_nametable .byte >star_nametable_2 ; these subroutines have to do with palettes and nametables ; temp_16_1: address of nametable/palette data ; temp_8_0: which nametable address to use ; palette_state: index of all palettes ; nametable_state: index of all nametables. 0 means to clear nametable .proc load_palettes ; loads a palette at the palette index points LDY palette_state LDA palette_tableLo,y STA temp_16_1 LDA palette_tableHi,y STA temp_16_1 + 1 LDA #0 STA PPUMASK ; disable rendering STA PPUCTRL ; writes to PPUDATA will increment by 1 to the next PPU address LDA PPUSTATUS ; address of palettes, $3F00 LDA #$3F STA PPUADDR LDA #$00 STA PPUADDR LDY #$00 : LDA (temp_16_1), Y STA PPUDATA INY CPY #$20 ; #$20 entries per palette BNE :- JSR update_scrolling ; restore scroll position LDA #%10000000 ; enable reaction to /NMI STA PPUCTRL RTS .endproc .proc load_nametable ; loads a single-screen nametable at where temp_16_1 points ; base nametable is chosen by temp_8_0 LDA nametable_state CMP $00 BNE :+ JSR clear_nametable RTS : LDY nametable_state LDA nametable_tableLo,y STA temp_16_1 LDA nametable_tableHi,y STA temp_16_1 + 1 LDA #0 STA PPUMASK ; disable rendering STA PPUCTRL ; writes to PPUDATA will increment by 1 to the next PPU address LDA PPUSTATUS ; address of nametable (chosen by temp_8_0) LDA temp_8_0 ASL A ASL A ADC #$20 STA PPUADDR LDA #$00 STA PPUADDR LDY #0 LDX #4 : LDA (temp_16_1), Y STA PPUDATA INY BNE :- INC temp_16_1 + 1 DEX BNE :- JSR update_scrolling ; restore scroll position LDA #%10000000 ; enable reaction to /NMI STA PPUCTRL RTS .endproc .proc clear_nametable ; clears a given nametable chosen by temp_8_0 LDA #0 STA PPUMASK ; disable rendering STA PPUCTRL ; writes to PPUDATA will increment by 1 to the next PPU address LDA PPUSTATUS LDA temp_8_0 ASL A ASL A ADC #$20 STA PPUADDR LDA #$00 STA PPUADDR LDA #0 TAY LDX #4 : STA PPUDATA INY BNE :- DEX BNE :- JSR update_scrolling ; restore scroll position LDA #%10000000 ; enable reaction to /NMI STA PPUCTRL RTS .endproc ; bugs the PPU to update the scroll position .proc update_scrolling BIT PPUSTATUS LDA ppu_scroll_x STA PPUSCROLL LDA ppu_scroll_y STA PPUSCROLL RTS .endproc
18.543011
91
0.678458
06d5f1940fb3faafab368a199a9ad2adf07de215
101
asm
Assembly
sw/552tests/inst_tests/sub_1.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
1
2022-02-15T16:03:25.000Z
2022-02-15T16:03:25.000Z
sw/552tests/inst_tests/sub_1.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
null
null
null
sw/552tests/inst_tests/sub_1.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
null
null
null
// Test provided by Karu lbi r1, 0xff lbi r2, 0x12 lbi r3, 0x01 sub r2, r1, r3 sub r1, r2, r1 halt
12.625
25
0.663366
7dec0d9c5ceca18ccac26a474f1d972255f51b0f
387
asm
Assembly
programs/oeis/144/A144519.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/144/A144519.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/144/A144519.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A144519: Triangular numbers n*(n+1)/2 with n prime and n+1 nonprime. ; 6,15,28,66,91,153,190,276,435,496,703,861,946,1128,1431,1770,1891,2278,2556,2701,3160,3486,4005,4753,5151,5356,5778,5995,6441,8128,8646,9453,9730,11175,11476,12403,13366,14028,15051,16110,16471,18336,18721,19503,19900,22366,24976,25878 seq $0,98090 ; Numbers k such that 2k-3 is prime. mul $0,2 sub $0,2 bin $0,2
48.375
237
0.74677
4c9cfba6123def4dcd796fd64efc19bf38e486d1
477
asm
Assembly
oeis/062/A062200.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/062/A062200.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/062/A062200.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A062200: Number of compositions of n such that two adjacent parts are not equal modulo 2. ; Submitted by Christian Krause ; 1,1,1,3,2,6,6,11,16,22,37,49,80,113,172,257,377,573,839,1266,1874,2798,4175,6204,9274,13785,20577,30640,45665,68072,101393,151169,225193,335659,500162,745342,1110790,1655187,2466760,3675822,5477917,8163217,12164896,18128529,27015092 mov $3,$0 mul $0,2 add $0,16 add $3,4 lpb $0 sub $0,4 mov $2,$3 bin $2,$0 add $1,$2 sub $3,1 lpe mov $0,$1
28.058824
234
0.721174
c19428761befb56cec316e2ce13928043fd909ca
758
asm
Assembly
oeis/005/A005773.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/005/A005773.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/005/A005773.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A005773: Number of directed animals of size n (or directed n-ominoes in standard position). ; Submitted by Christian Krause ; 1,1,2,5,13,35,96,267,750,2123,6046,17303,49721,143365,414584,1201917,3492117,10165779,29643870,86574831,253188111,741365049,2173243128,6377181825,18730782252,55062586341,161995031226,476941691177,1405155255055,4142457992363,12219350698880,36064309311811,106495542464222,314626865716275,929947027802118,2749838618630271,8134527149366543,24072650378629801,71264483181775040,211043432825804129,625190642719667122,1852627179112970417,5491513337424989754,16282402094173127445,48290501472790543731 sub $0,1 mov $1,2 mov $3,$0 lpb $3 mul $1,$3 cmp $2,0 add $5,$2 div $1,$5 sub $3,1 add $4,$1 lpe mov $0,$4 div $0,2 add $0,1
39.894737
493
0.808707
af54664ebb28bf3fbbe502715857249568f62393
491
asm
Assembly
oeis/060/A060473.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/060/A060473.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/060/A060473.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A060473: a(n) = numerator of phi(n)/(n+1), where phi(n) is Euler's phi, A000010. ; Submitted by Jon Maiga ; 1,1,1,2,2,2,3,4,3,4,5,4,6,2,1,8,8,6,9,8,6,10,11,8,10,4,9,12,14,8,15,16,10,16,2,12,18,6,3,16,20,12,21,4,12,22,23,16,21,20,8,24,26,18,5,8,18,28,29,16,30,10,9,32,8,20,33,32,22,24,35,24,36,12,10,36,10,24,39,32,27,40,41,24,32,14,7,40,44,24,18,44,30,46,3,32,48,14,3,40 mov $2,$0 seq $0,10 ; Euler totient function phi(n): count numbers <= n and prime to n. add $2,2 gcd $2,$0 div $0,$2
49.1
264
0.629328
6f9ae2881b9e281d878afb0f21d851a560d8fe7d
355
asm
Assembly
oeis/047/A047579.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/047/A047579.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/047/A047579.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A047579: Numbers that are congruent to {0, 2, 5, 6, 7} mod 8. ; 0,2,5,6,7,8,10,13,14,15,16,18,21,22,23,24,26,29,30,31,32,34,37,38,39,40,42,45,46,47,48,50,53,54,55,56,58,61,62,63,64,66,69,70,71,72,74,77,78,79,80,82,85,86,87,88,90,93,94,95,96,98,101,102,103 add $0,4 mov $1,$0 lpb $1 trn $1,4 add $0,$1 trn $1,1 sub $0,$1 add $0,2 lpe sub $0,6
25.357143
193
0.605634
b6dc59591db84b0bd54b3f3a470400382282f328
938
asm
Assembly
src/shaders/h264/mc/SetupForHWMC.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
src/shaders/h264/mc/SetupForHWMC.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
src/shaders/h264/mc/SetupForHWMC.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
/* * Initial setup for running HWMC kernels in HWMC-Only decoding mode * 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: SetupForHWMC.asm // // Initial setup for running HWMC kernels in HWMC-Only decoding mode // #include "header.inc" #include "intra_Header.inc" #if !defined(__SETUPFORHWMC__) // Make sure the following are only included once #define __SETUPFORHWMC__ .reg_count_total 64 .reg_count_payload 2 // // Now, begin source code.... // .code #endif // !defined(__SETUPFORHWMC__) mov (8) MSGSRC<1>:ud r0.0<8;8,1>:ud // Initialize message header payload with R0 shl (2) I_ORIX<1>:uw ORIX<2;2,1>:ub 4:w // Convert MB origin to pixel unit // End of SetupForHWMC
27.588235
87
0.686567
d1fba7798f0cd46b1cf52b6d692a05ca180e991b
119
asm
Assembly
projects/07/StackArithmetic/StackTest/try_random.asm
Youngermaster/Nand2Tetris-Solutions
9fb4ac31a0558bcc2324696bfb451aac11232088
[ "MIT" ]
null
null
null
projects/07/StackArithmetic/StackTest/try_random.asm
Youngermaster/Nand2Tetris-Solutions
9fb4ac31a0558bcc2324696bfb451aac11232088
[ "MIT" ]
null
null
null
projects/07/StackArithmetic/StackTest/try_random.asm
Youngermaster/Nand2Tetris-Solutions
9fb4ac31a0558bcc2324696bfb451aac11232088
[ "MIT" ]
null
null
null
@256 D=A @SP M=D @100 D=A @SP A=M M=D @SP M=M+1 @191 D=A @SP A=M M=D @SP M=M+1 @SP A=M-1 D=M A=A-1 D=M-D M=D @SP M=M-1
4.407407
5
0.512605
dde1675604d48dcf1a86b9f0b962d2e2e1d5654c
753
asm
Assembly
programs/oeis/084/A084099.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/084/A084099.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/084/A084099.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A084099: Expansion of (1+x)^2/(1+x^2). ; 1,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2,0,-2,0,2 mov $4,1 lpb $0,1 sub $0,1 mov $2,1 mov $3,$4 mul $3,2 add $1,$3 sub $4,$1 lpe sub $1,1 mul $2,12 mul $1,$2 div $1,2 add $1,6 div $1,6
39.631579
563
0.462151
2439cffb29f5b08e637a1c242c8528139a309e9d
689
asm
Assembly
oeis/081/A081182.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/081/A081182.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/081/A081182.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A081182: 5th binomial transform of (0,1,0,2,0,4,0,8,0,16,...). ; Submitted by Jamie Morken(s3) ; 0,1,10,77,540,3629,23870,155233,1003320,6462841,41552050,266875157,1713054420,10992415589,70523904230,452413483753,2902085040240,18615340276081,119405446835290,765901642003037,4912691142818700,31511173662117149,202119840336341390,1296441409134719473,8315657763611342760,53338425226014879721,342124123697087913730,2194457456772536903717,14075719722692347021380,90284675721155121428309,579105203589627232791350,3714504494309704535062393,23825625260535618996422880,152822649236232985657793761 mov $1,1 lpb $0 sub $0,1 mov $2,$3 mul $3,4 add $3,$1 mul $1,6 add $1,$2 lpe mov $0,$3
45.933333
491
0.822932
d8b77438d265dfed478b0a9b9cfaafeff9236b28
705
asm
Assembly
archive/minol/source/errors.asm
paulscottrobson/retrochallenge-jan-2016
8bd340efc85969fa6f2fecc788aa21b27123a4db
[ "MIT" ]
null
null
null
archive/minol/source/errors.asm
paulscottrobson/retrochallenge-jan-2016
8bd340efc85969fa6f2fecc788aa21b27123a4db
[ "MIT" ]
null
null
null
archive/minol/source/errors.asm
paulscottrobson/retrochallenge-jan-2016
8bd340efc85969fa6f2fecc788aa21b27123a4db
[ "MIT" ]
null
null
null
; **************************************************************************************************************** ; **************************************************************************************************************** ; ; Errors ; ; **************************************************************************************************************** ; **************************************************************************************************************** ERROR_NoLabel = 1 ; Label unknown (e.g. GOTO failed) ERROR_Statement = 3 ; Do not recognise statement. ERROR_Term = 4 ; Error in a term. ERROR_DivideZero = 7 ; Division by zero
58.75
114
0.194326
cae353b7a8940ec92e0f75a027efad98d3ccfd3d
347
asm
Assembly
Practice/Assignments assembly class/6.asm
WardunIslam/CSE331L_Section_7_Summer_2020_NSU
4f36bf223c44afd2233a243a2f8ba92df18f5545
[ "MIT" ]
null
null
null
Practice/Assignments assembly class/6.asm
WardunIslam/CSE331L_Section_7_Summer_2020_NSU
4f36bf223c44afd2233a243a2f8ba92df18f5545
[ "MIT" ]
null
null
null
Practice/Assignments assembly class/6.asm
WardunIslam/CSE331L_Section_7_Summer_2020_NSU
4f36bf223c44afd2233a243a2f8ba92df18f5545
[ "MIT" ]
null
null
null
org 100h L1: NOP L2: MOV AX, 0F000H MOV DS, AX MOV BX, 0FFFFH MOV AL, BYTE PTR DS:[BX] L3: MOV CX, 00000H MOV DS, CX MOV BX, 00000H MOV AH, BYTE PTR DS:[BX] L4: ADD AL, AH L5: CMP AL, 05H JG L7 L6: JMP L8 L7: MOV CX, 0F000H MOV DS, CX MOV BX, 0FFFEH MOV BYTE PTR DS:[BX], AL L8: HLT ret
11.965517
28
0.550432
447ca12150a310dfddeea9d99cb2a60e33d2754c
634
asm
Assembly
dino/lcs/base/1.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
dino/lcs/base/1.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
dino/lcs/base/1.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
1
2020-12-17T08:59:10.000Z
2020-12-17T08:59:10.000Z
copyright zengfr site:http://github.com/zengfr/romhack 0199F0 btst #$0, ($1,A5) 0199F6 beq $19a0a [base+ 1] 019DC0 btst #$0, ($1,A5) 019DC6 beq $19dd2 [base+ 1] 01CA0E btst #$0, ($1,A5) 01CA14 beq $1ca20 [base+ 1] 01D0E8 btst #$1, ($1,A5) 01D0EE beq $1d0f8 [base+ 1] 02AE82 btst #$0, ($1,A5) 02AE88 beq $2ae94 [base+ 1] 02AF56 btst #$0, ($1,A5) 02AF5C beq $2af68 [base+ 1] 035448 btst #$0, ($1,A5) [enemy+7C] 03544E beq $3545c [base+ 1] 093078 btst #$0, ($1,A5) 09307E beq $93088 [base+ 1] copyright zengfr site:http://github.com/zengfr/romhack
30.190476
54
0.569401
98eff6e610d4a3c58f0a64bcead290011a66d0fe
15,856
asm
Assembly
source/scene/overworldScene.asm
evanbowman/Red
85735269a46757305a81ad39f47034bc6cd97846
[ "BSD-2-Clause" ]
5
2021-08-30T16:18:55.000Z
2021-10-30T20:23:32.000Z
source/scene/overworldScene.asm
evanbowman/gbc-project
85735269a46757305a81ad39f47034bc6cd97846
[ "BSD-2-Clause" ]
null
null
null
source/scene/overworldScene.asm
evanbowman/gbc-project
85735269a46757305a81ad39f47034bc6cd97846
[ "BSD-2-Clause" ]
null
null
null
;;; $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ ;;; ;;; ASM Source code for Red GBC, by Evan Bowman, 2021 ;;; ;;; ;;; The following licence covers the source code included in this file. The ;;; game's characters and artwork belong to Evan Bowman, and should not be used ;;; without permission. ;;; ;;; ;;; 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 THE COPYRIGHT HOLDERS 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 THE COPYRIGHT HOLDER 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. ;;; ;;; $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ ;;; $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ ;;; ;;; ;;; Overworld Scene ;;; ;;; ;;; $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ OverworldSceneFadeInVBlank: ld a, [var_scene_counter] ld c, a sub 3 jr C, .transition jr .continue .transition: ld de, OverworldSceneOnVBlank fcall SceneSetVBlankFn .continue: ld [var_scene_counter], a fcall FadeToBlack fcall VBlankCopySpriteTextures ret ;;; ---------------------------------------------------------------------------- OverworldSceneInitOverlayVRam: SET_BANK 7 ld hl, r7_OverlayTiles ld bc, r7_OverlayTilesEnd - r7_OverlayTiles ld de, $9000 fcall VramSafeMemcpy fcall InitOverlay fcall UpdateStaminaBar fcall VBlankIntrWait fcall ShowOverlay ret ;;; ---------------------------------------------------------------------------- OverworldSceneLoadTiles: fcall OverworldSceneInitOverlayVRam ; Sets rom bank 7 ld hl, r7_BackgroundTiles ld bc, r7_BackgroundTilesEnd - r7_BackgroundTiles ld de, $8800 fcall VramSafeMemcpy VIDEO_BANK 1 ld hl, r7_BackgroundTiles2 ld bc, r7_BackgroundTiles2End - r7_BackgroundTiles2 ld de, $8800 fcall VramSafeMemcpy VIDEO_BANK 0 ld hl, r7_SpriteDropShadow ld bc, r7_SpriteDropShadowEnd - r7_SpriteDropShadow ld de, $87c0 fcall VramSafeMemcpy ld hl, r7_SpriteSmallDropShadow ld bc, r7_SpriteSmallDropShadowEnd - r7_SpriteSmallDropShadow ld de, $87b0 fcall VramSafeMemcpy ld hl, r7_SpriteSnowflake ld bc, r7_SpriteSnowflakeEnd - r7_SpriteSnowflake ld de, $8780 fcall VramSafeMemcpy ret ;;; ---------------------------------------------------------------------------- OverworldSceneEnter: fcall VBlankIntrWait ld c, 255 fcall FadeToBlack fcall OverworldSceneLoadTiles fcall VBlankIntrWait ld a, 128 ld [rWY], a ld a, 7 ld [rWX], a ;;; TODO: reload map tiles ld de, OverworldSceneUpdate fcall SceneSetUpdateFn ld a, 255 ld [var_scene_counter], a ld de, OverworldSceneFadeInVBlank fcall SceneSetVBlankFn fcall OverlayRepaintRow2 ret ;;; ---------------------------------------------------------------------------- OverworldSceneUpdateView: ld a, [var_player_anchor_x] ld d, a ld a, 175 ; 255 - (screen_width / 2) cp d jr C, .xFixedRight ld a, d ld d, 80 sub d jr C, .xFixedLeft ldh [hvar_view_x], a jr .setY .xFixedLeft: ld a, 0 ldh [hvar_view_x], a jr .setY .xFixedRight: ld a, 95 ; 255 - screen_width ldh [hvar_view_x], a .setY: ld a, [var_player_anchor_y] add a, 8 ; Menu bar takes up one row, add offset ld d, a ld a, (183 + 19) ; FIXME: why does this val work? cp d jr C, .yFixedBottom ld a, d ld d, 80 sub d jr C, .yFixedTop ldh [hvar_view_y], a jr .done .yFixedTop: ld a, 0 ldh [hvar_view_y], a jr .done .yFixedBottom: ld a, 121 ; FIXME: how'd I decide on this number? ldh [hvar_view_y], a .done: fcall UpdateStaminaBar ;;; !!!!FALLTHROUGH!!!! ScreenShakeUpdate: ld a, [var_shake_magnitude] or a ret Z ld b, a ld a, [var_shake_timer] cp 32 jr Z, .done ld c, a .run: LONG_CALL r1_Screenshake ld a, [var_shake_timer] inc a ld [var_shake_timer], a ret .done: ld a, 0 ld [var_shake_magnitude], a ld [var_shake_timer], a ret ;;; ---------------------------------------------------------------------------- OverworldSceneUpdate: .checkLevelup: ldh a, [hvar_exp_levelup_ready_flag] or a jr Z, .checkExpChanged xor a ldh [hvar_exp_levelup_ready_flag], a ldh [hvar_exp_changed_flag], a LONG_CALL r1_ExpDoLevelup fcall OverlayRepaintRow2 ;; TODO: play a jingle, go to levelup scene ret .checkExpChanged: ldh a, [hvar_exp_changed_flag] or a jr Z, .checkSelect xor a ldh [hvar_exp_changed_flag], a fcall OverlayRepaintRow2 ret .checkSelect: ldh a, [hvar_joypad_current] bit PADB_SELECT, a jr Z, .checkStart ld de, WorldmapSceneEnter fcall SceneSetUpdateFn ld de, VoidVBlankFn fcall SceneSetVBlankFn ret .checkStart: bit PADB_START, a jr Z, .updateEntities ld a, 0 ld [var_inventory_scene_cooking_tab_avail], a ld a, INVENTORY_TAB_ITEMS ld [var_inventory_scene_tab], a ld de, InventorySceneEnter fcall SceneSetUpdateFn ret .updateEntities: fcall UpdateEntities fcall OverworldSceneAnimateWater ;;; If it wasn't for view scrolling, the update and draw stuff could be done in ;;; the same loop. fcall OverworldSceneUpdateView fcall DrawEntitiesSimple fcall OverworldSceneTryRoomTransition ret ;;; ---------------------------------------------------------------------------- VBlankCopySpriteTextures: ;;; Now, this entity buffer code looks pretty nasty. But, we are just doing a ;;; bunch of work upfront, because we do not always need to actually run the ;;; dma. Iterate through each entity, check its swap flag. If the entity ;;; requires a texture swap, map the texture into vram with GDMA. ld de, var_entity_buffer ld a, [var_entity_buffer_size] .textureCopyLoop: cp 0 jr Z, .textureCopyLoopDone dec a push af ; store loop counter ;;; Even with DMA, we can only fit so many texture copies into the vblank ;;; window. If we think that we're going to exceed the vblank, defer the ;;; copies to the next iteration. The code is just checking entities for ;;; a flag which indicates that a texture copy is needed, so we can just as ;;; easily process the texture copy after the next frame. ld a, [rLY] ld b, a ld a, 153 - 4 cp b jr C, .textureCopyLoopTimeout ld a, [de] ; \ ld h, a ; | inc de ; | Fetch entity pointer from entity buffer ld a, [de] ; / ld l, a ; Now we have the entity pointer in hl inc de ld a, [hl] ; load texture swap flag from entity and ENTITY_FLAG0_TEXTURE_SWAP jr Z, .noTextureCopy ; swap flag false, nothing to do ld a, [hl] and LOW(~ENTITY_FLAG0_TEXTURE_SWAP) ; \ We're swapping the texture, ld [hl], a ; / zero the flag. and ENTITY_FLAG0_SPRITESHEET_MASK ; \ Bind the current spritesheet. ldh [hvar_spritesheet], a ; / push de ; store entity buffer pointer on stack ld d, 0 ld e, 1 + FIXNUM_SIZE * 2 + 1 add hl, de ; jump to offset of keyframe in entity ld a, [hl+] ld d, [hl] ; load frame base inc hl ld b, [hl] .test: add d ; keyframe + framebase is spritesheet index ld h, a ; pass spritesheet index in h fcall MapSpriteBlock ; DMA copy the sprite into vram pop de ; restore entity buffer pointer .noTextureCopy: pop af ; restore loop counter jr .textureCopyLoop .textureCopyLoopTimeout: pop af ; Was pushed at the top of the loop ;;; intentional fallthrough .textureCopyLoopDone: ;;; The whole point of the above loop was to copy sprites from various rom banks ;;; into vram. So we should set the rom bank back to one, which is the standard ;;; rom bank for most purposes. .done: SET_BANK 1 ret ;;; ---------------------------------------------------------------------------- OverworldSceneOnVBlank: ld a, [var_stamina_last_val] ld b, a ld a, [var_player_stamina] srl b srl a cp b jr Z, .skip fcall ShowOverlay .skip: ldh a, [hvar_overlay_y_offset] ld [rWY], a ld a, [var_player_stamina] ld [var_stamina_last_val], a ;; Now, technically, doing this copy here could starve sprite anims, ;; which need to run within the vblank window. But, the water anim runs ;; at a slow framerate, so the copies don't happen too often (once ;; every 12 frames at most). ld a, [var_water_anim_changed] or a fcallc NZ, VBlankCopyWaterTextures fcall VBlankCopySpriteTextures ret ;;; ---------------------------------------------------------------------------- VBlankCopyWaterTextures: ld a, 0 ld [var_water_anim_changed], a SET_BANK 7 ld hl, r7_BackgroundTilesWaterAnim ld a, [var_water_anim_idx] ld b, a ld c, a swap c sla c ; FIXME: this x64 will break with more than 4 keyframes sla c add hl, bc ld de, $8D40 ; Address of water tiles in VRAM ld b, 19 ; tiles-to-copy - 1 fcall GDMABlockCopy ret ;;; ---------------------------------------------------------------------------- OverworldSceneAnimateWater: ld hl, var_water_anim ld c, 13 ld d, 3 fcall AnimationAdvance ld [var_water_anim_changed], a ret ;;; ---------------------------------------------------------------------------- OverworldSceneStartTransition: ;;; de - transition fn fcall SceneSetUpdateFn fcall EntityBufferReset fcall OverlayRepaintRow2 ld hl, var_map_slabs ld bc, MAP_HEIGHT / 2 ld a, 0 fcall Memset ;; The player entity is always present in every room (obviously?) ld de, var_player_struct fcall EntityBufferEnqueue ld a, [hvar_joypad_raw] ld [var_room_load_joypad_cache], a ld a, 0 ld [var_water_anim_timer], a ld [var_water_anim_idx], a ld [var_water_anim_changed], a ret ;;; ---------------------------------------------------------------------------- OverworldSceneTryRoomTransition: ld a, [var_player_coord_y] cp 246 jr C, .tryUpTransition LONG_CALL r1_StoreRoomEntities ld a, [var_room_y] inc a ld [var_room_y], a ld de, RoomTransitionSceneDownUpdate fcall OverworldSceneStartTransition ld de, RoomTransitionSceneDownVBlank fcall SceneSetVBlankFn fcall MapLoad2__rom0_only ld a, 0 ld [var_room_load_counter], a ld c, a LONG_CALL r1_MapExpandRow ret .tryUpTransition: ld a, [var_player_coord_y] ld b, a ld a, 8 cp b jr C, .tryRightTransition LONG_CALL r1_StoreRoomEntities ld a, [var_room_y] dec a ld [var_room_y], a ld de, RoomTransitionSceneUpUpdate fcall OverworldSceneStartTransition ld de, RoomTransitionSceneUpVBlank fcall SceneSetVBlankFn fcall MapLoad2__rom0_only ld a, 31 ld [var_room_load_counter], a ld c, a LONG_CALL r1_MapExpandRow ret .tryRightTransition: ld a, [var_player_coord_x] cp 246 jr C, .tryLeftTransition LONG_CALL r1_StoreRoomEntities ld a, [var_room_x] inc a ld [var_room_x], a ld de, RoomTransitionSceneRightUpdate fcall OverworldSceneStartTransition ld de, RoomTransitionSceneRightVBlank fcall SceneSetVBlankFn fcall MapLoad2__rom0_only ld a, 0 ld [var_room_load_counter], a ld c, a LONG_CALL r1_MapExpandColumn ret .tryLeftTransition: ld a, [var_player_coord_x] ld b, a ld a, 8 cp b jr C, .done LONG_CALL r1_StoreRoomEntities ld a, [var_room_x] dec a ld [var_room_x], a ld de, RoomTransitionSceneLeftUpdate fcall OverworldSceneStartTransition ld de, RoomTransitionSceneLeftVBlank fcall SceneSetVBlankFn fcall MapLoad2__rom0_only ld a, 31 ld [var_room_load_counter], a ld c, a LONG_CALL r1_MapExpandColumn .done: ret
26.295191
87
0.51501
3735b70f5e6815ed865094263abfa8a968bf7505
7,293
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_802.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_802.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_802.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %r8 push %rax push %rcx push %rdi push %rsi lea addresses_WT_ht+0x11d49, %rsi lea addresses_A_ht+0x1749, %rdi nop nop nop nop sub $28938, %r10 mov $29, %rcx rep movsl mfence lea addresses_A_ht+0xf489, %rsi lea addresses_A_ht+0x15ce9, %rdi clflush (%rsi) nop nop nop nop nop and %r12, %r12 mov $75, %rcx rep movsb add %rax, %rax lea addresses_normal_ht+0xb389, %r10 nop nop dec %r14 movb (%r10), %al nop nop nop nop nop dec %rsi lea addresses_A_ht+0x1df49, %r12 nop nop and $24371, %rdi movb $0x61, (%r12) nop nop nop nop nop cmp %rdi, %rdi lea addresses_normal_ht+0x15145, %rdi nop nop nop nop xor %r10, %r10 mov $0x6162636465666768, %r12 movq %r12, (%rdi) nop nop nop add $7631, %rsi lea addresses_WT_ht+0x3959, %rsi lea addresses_WC_ht+0x4949, %rdi nop nop nop nop cmp $39738, %r8 mov $109, %rcx rep movsw nop nop nop cmp %r10, %r10 lea addresses_UC_ht+0x1b2f1, %rax nop nop nop nop nop add $56007, %r8 mov (%rax), %edi nop add $48079, %rcx lea addresses_UC_ht+0xfb29, %rax nop sub $13539, %r10 movl $0x61626364, (%rax) nop nop nop nop inc %rax lea addresses_normal_ht+0x3cf1, %rcx clflush (%rcx) cmp $13954, %r8 mov $0x6162636465666768, %rdi movq %rdi, %xmm4 movups %xmm4, (%rcx) nop nop dec %r10 lea addresses_normal_ht+0x11f49, %rax clflush (%rax) nop xor %r8, %r8 mov $0x6162636465666768, %rsi movq %rsi, %xmm4 vmovups %ymm4, (%rax) nop nop cmp $21605, %r14 lea addresses_D_ht+0x1ae59, %rsi lea addresses_D_ht+0x19749, %rdi nop nop and $43303, %r10 mov $121, %rcx rep movsq add $13554, %r12 lea addresses_D_ht+0x150d1, %rsi lea addresses_WC_ht+0x910f, %rdi nop xor %r12, %r12 mov $17, %rcx rep movsq nop nop nop nop nop xor %rcx, %rcx pop %rsi pop %rdi pop %rcx pop %rax pop %r8 pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r15 push %rax push %rbx push %rcx push %rdi push %rsi // Store mov $0x7fd, %r15 nop nop and $52978, %rax movl $0x51525354, (%r15) inc %rdi // Faulty Load lea addresses_WT+0x7f49, %rsi nop and $9540, %r13 mov (%rsi), %rax lea oracles, %r15 and $0xff, %rax shlq $12, %rax mov (%r15,%rax,1), %rax pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r15 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 4, 'NT': True, 'type': 'addresses_P'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 8, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}} {'src': {'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_A_ht'}} {'src': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 8, 'NT': True, 'type': 'addresses_normal_ht'}} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_normal_ht'}} {'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_normal_ht'}} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_D_ht'}} {'src': {'congruent': 3, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_WC_ht'}} {'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 */
35.231884
2,999
0.659262
ab4381273ea2c7330f783fb8c3895af54105096c
155
asm
Assembly
boot/stage1/edid.asm
nelsoncole/sirius-x86-64
741370f204a1da1fab2547e395f737cd383aee19
[ "BSD-3-Clause" ]
10
2021-08-18T22:37:50.000Z
2022-02-07T11:12:32.000Z
boot/stage1/edid.asm
nelsoncole/sirius-x86-64
741370f204a1da1fab2547e395f737cd383aee19
[ "BSD-3-Clause" ]
null
null
null
boot/stage1/edid.asm
nelsoncole/sirius-x86-64
741370f204a1da1fab2547e395f737cd383aee19
[ "BSD-3-Clause" ]
null
null
null
edid: push es push ds pusha mov ax, 0x4f15 mov bl, 0x01 xor cx, cx xor dx, dx mov es, dx mov di, 0x500 int 0x10 popa pop ds pop es ret
7.75
15
0.619355
18c68205c8eb2f0e4f12f0f71da2d32703bf2592
563
asm
Assembly
ecdsa128/src/ECDSA128_dll/src/ecdsa128dll.asm
FloydZ/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
11
2015-03-17T10:31:23.000Z
2022-01-21T17:42:43.000Z
ecdsa128/src/ECDSA128_dll/src/ecdsa128dll.asm
0xFF1E071F/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
null
null
null
ecdsa128/src/ECDSA128_dll/src/ecdsa128dll.asm
0xFF1E071F/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
6
2018-01-29T16:06:36.000Z
2021-05-08T19:22:24.000Z
.686p .mmx .model flat,stdcall option casemap:none include g:\masm32\include\windows.inc include g:\masm32\include\user32.inc include g:\masm32\include\kernel32.inc include g:\masm32\include\advapi32.inc includelib g:\masm32\lib\user32.lib includelib g:\masm32\lib\kernel32.lib includelib g:\masm32\lib\oleaut32.lib includelib g:\masm32\lib\comctl32.lib includelib g:\masm32\lib\advapi32.lib OPTION PROLOGUE:NONE OPTION EPILOGUE:NONE .code DllEntry proc hInstance:DWORD, reason:DWORD, reserved1:DWORD xor eax, eax inc eax ret 12 DllEntry endp end DllEntry
20.851852
60
0.802842
9610ed5674868a3ad2746f120a6d89bcca4eee8c
262
asm
Assembly
programs/oeis/173/A173635.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/173/A173635.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/173/A173635.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A173635: Period 5 sequence: 1, 1, 4, 4, 2, ... ; 1,1,4,4,2,1,1,4,4,2,1,1,4,4,2,1,1,4,4,2,1,1,4,4,2,1,1,4,4,2,1,1,4,4,2,1,1,4,4,2,1,1,4,4,2,1,1,4,4,2,1,1,4,4,2,1,1,4,4,2,1,1,4,4,2,1,1,4,4,2,1,1,4,4,2,1,1,4,4,2,1 mod $0,5 mov $1,41 bin $1,$0 gcd $1,8 mov $0,$1
29.111111
163
0.51145
66afea9486a57f7f830568a51012504c951e72bf
3,449
asm
Assembly
src/jump-table.asm
beckadamtheinventor/BOSos
42471126eb47517fc1beec15960b72a9cb76601b
[ "BSD-3-Clause" ]
1
2019-07-21T20:51:38.000Z
2019-07-21T20:51:38.000Z
src/jump-table.asm
beckadamtheinventor/BOSos
42471126eb47517fc1beec15960b72a9cb76601b
[ "BSD-3-Clause" ]
null
null
null
src/jump-table.asm
beckadamtheinventor/BOSos
42471126eb47517fc1beec15960b72a9cb76601b
[ "BSD-3-Clause" ]
null
null
null
table: ; $=0020108h jp handle_boot jp handle_int jp handle_rst10 jp handle_rst18 jp handle_rst20 jp handle_rst28 jp handle_rst30 ; $=0020128 ; $=002012Ch ;------------------------------------------------------------------------------- ; OS functions ;------------------------------------------------------------------------------- jp sys_MemSet jp sys_AddHLAndA jp sys_HLToString jp kb_Scan jp kb_AnyKey jp sys_GetKey jp sys_WaitKey jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp flash_unlock jp flash_lock jp sys_WriteFlash jp sys_EraseFlashSector jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING ;------------------------------------------------------------------------------- ; string functions ;------------------------------------------------------------------------------- jp strlen jp strset jp strcpy jp strcmp jp strupper jp strlower jp strncpy jp strncmp jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING ;------------------------------------------------------------------------------- ; VAT and Filesystem functions ;------------------------------------------------------------------------------- jp fs_BuildVAT jp fs_FindSym jp fs_CreateFile jp fs_GetC jp fs_PutC jp fs_Open jp fs_Read jp fs_Write jp fs_Tell jp fs_Seek jp fs_Delete jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING ;------------------------------------------------------------------------------- ; built-in graphics functions ;------------------------------------------------------------------------------- jp gfx_Set8bpp jp gfx_Set16bpp jp gfx_InitStdPalette jp DONOTHING jp DONOTHING jp DONOTHING jp gfx_PrintString jp gfx_LcdClear jp gfx_BufClear jp gfx_BlitBuffer jp gfx_PrintUInt jp gfx_Compute jp gfx_HorizLine jp gfx_VertLine jp gfx_Rectangle jp gfx_FillRectangle jp gfx_Sprite jp gfx_PrintChar jp gfx_NextLine jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING ;------------------------------------------------------------------------------- ; C accessible filesystem functions ;------------------------------------------------------------------------------- jp c_CloseAll jp c_Open jp DONOTHING jp c_Close jp c_Read jp c_Write jp c_GetC jp c_PutC jp c_Delete jp DONOTHING jp c_Seek jp c_Resize jp c_IsArchived jp c_SetArchiveStatus jp c_Tell jp c_Rewind jp c_GetSize jp DONOTHING jp DONOTHING ;maybe a detect function or two someday jp DONOTHING jp c_Rename jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING jp DONOTHING
17.778351
80
0.602493
1bff39ef2a2d8f30200569a5616fd995144fb449
743
asm
Assembly
oeis/006/A006442.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/006/A006442.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/006/A006442.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A006442: Expansion of 1/sqrt(1 - 10*x + x^2). ; Submitted by Jon Maiga ; 1,5,37,305,2641,23525,213445,1961825,18205345,170195525,1600472677,15122515985,143457011569,1365435096485,13033485491077,124715953657025,1195966908404545,11490534389896325,110584004488276645,1065853221648055025,10287014106804673681,99405753688666524005,961645897582745659717,9312321755433352604705,90261573203434779663841,875623588508444822205125,8501056759214136929642725,82593104736686174851036625,802984831074639870961954225,7811657583573970700976825125,76038414235105226684342224645 mov $1,1 mov $2,1 mov $3,$0 lpb $3 mul $1,4 mul $1,$0 mul $2,$3 mul $2,$3 add $1,$2 sub $3,1 max $3,1 add $0,$3 lpe mul $1,$0 div $1,$2 mov $0,$1 mul $0,4 add $0,1
32.304348
488
0.795424
60d0c488663bc41bb9df7fd5bad22c24255a72cc
4,369
asm
Assembly
3d/instance.asm
osgcc/descent-pc
819ed672e9fde6eddea634154306c5154230b84d
[ "Unlicense" ]
3
2016-03-22T12:32:01.000Z
2017-11-07T12:14:28.000Z
3d/instance.asm
osgcc/descent-pc
819ed672e9fde6eddea634154306c5154230b84d
[ "Unlicense" ]
null
null
null
3d/instance.asm
osgcc/descent-pc
819ed672e9fde6eddea634154306c5154230b84d
[ "Unlicense" ]
1
2021-03-30T07:34:36.000Z
2021-03-30T07:34:36.000Z
;THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX ;SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO ;END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ;ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS ;IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS ;SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE ;FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE ;CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS ;AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE. ;COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. ; ; $Source: f:/miner/source/3d/rcs/instance.asm $ ; $Revision: 1.8 $ ; $Author: matt $ ; $Date: 1994/07/29 18:16:16 $ ; ; Code for handling instanced 3d objects ; ; $Log: instance.asm $ ; Revision 1.8 1994/07/29 18:16:16 matt ; Added instance by angles, and corrected parms for g3_init() ; ; Revision 1.7 1994/07/25 00:00:02 matt ; Made 3d no longer deal with point numbers, but only with pointers. ; ; Revision 1.6 1994/06/16 17:52:31 matt ; If NULL passed for instance matrix, don't rotate (just do offset) ; ; Revision 1.5 1994/06/01 18:10:22 matt ; Fixed register trash in g3_start_instance_matrix() ; ; Revision 1.4 1994/03/25 17:09:20 matt ; Increase MAX_INSTANCE_DEPTH to 5 (from 3) ; ; Revision 1.3 1994/02/10 18:00:43 matt ; Changed 'if DEBUG_ON' to 'ifndef NDEBUG' ; ; Revision 1.2 1994/01/24 14:08:45 matt ; Added code to this previously dull file ; ; Revision 1.1 1994/01/23 15:22:52 matt ; Initial revision ; ; .386 option oldstructs .nolist include types.inc include psmacros.inc include vecmat.inc include 3d.inc .list assume cs:_TEXT, ds:_DATA _DATA segment dword public USE32 'DATA' rcsid db "$Id: instance.asm 1.8 1994/07/29 18:16:16 matt Exp $" align 4 MAX_INSTANCE_DEPTH equ 5 inst_context_size equ ((size vms_matrix) + (size vms_vector)) instance_stack db MAX_INSTANCE_DEPTH*inst_context_size dup (?) instance_depth dd 0 tempv vms_vector <> tempm vms_matrix <> tempm2 vms_matrix <> instmat vms_matrix <> _DATA ends _TEXT segment dword public USE32 'CODE' ;start instancing, using angles (called vm_angles_2_matrix) ;takes esi=position, edi=angvec. trashes esi,edi ;if angles==NULL, don't modify matrix. This will be like doing an offset g3_start_instance_angles: or edi,edi jz g3_start_instance_matrix ;no new matrix push esi mov esi,edi lea edi,instmat call vm_angles_2_matrix pop esi ; fall g3_start_instance_matrix ;start instancing, using a matrix ;takes esi=position, edi=matrix. trashes esi,edi ;if matrix==NULL, don't modify matrix. This will be like doing an offset g3_start_instance_matrix: pushm eax,ebx,ecx push edi ;save matrix push esi ;save position ;save current context mov eax,instance_depth inc instance_depth ifndef NDEBUG cmp eax,MAX_INSTANCE_DEPTH break_if e,'Already at max depth' endif imul eax,inst_context_size lea edi,instance_stack[eax] lea esi,View_position mov ecx,3 rep movsd lea esi,View_matrix mov ecx,9 rep movsd ;step 1: subtract object position from view position pop esi ;object position lea edi,View_position call vm_vec_sub2 ;step 2: rotate view vector through object matrix pop edi ;get object matrix or edi,edi ;null matrix? jz no_inst_matrix lea esi,View_position lea eax,tempv call vm_vec_rotate vm_copy esi,eax,ebx ;step 3: rotate object matrix through view_matrix (vm = ob * vm) mov esi,edi ;object matrix lea edi,tempm2 call vm_copy_transpose_matrix lea esi,tempm2 lea edi,View_matrix lea eax,tempm call vm_matrix_x_matrix mov esi,eax mov ecx,9 rep movsd no_inst_matrix: ;now we are done! popm eax,ebx,ecx ret ;we are done instancing g3_done_instance: pushm eax,ecx,esi,edi dec instance_depth break_if s,'Instance stack underflow!' mov eax,instance_depth imul eax,inst_context_size lea esi,instance_stack[eax] lea edi,View_position mov ecx,3 rep movsd lea edi,View_matrix mov ecx,9 rep movsd popm eax,ecx,esi,edi ret _TEXT ends end
23.874317
77
0.721675
58aa067c3304502e7f047ca2dc89e79b1db0f021
5,849
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_818.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_818.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_818.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 %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x14031, %rsi lea addresses_A_ht+0x3ab1, %rdi nop nop nop nop xor $6806, %r15 mov $99, %rcx rep movsq nop sub $5182, %rbp lea addresses_UC_ht+0x8a31, %r15 nop nop nop nop cmp $60538, %rdi mov (%r15), %cx inc %rcx lea addresses_normal_ht+0x2e11, %rbx nop nop add %r14, %r14 mov (%rbx), %ebp nop nop nop nop and $61556, %rsi lea addresses_D_ht+0x12e31, %r15 nop nop nop nop nop inc %rdi movl $0x61626364, (%r15) nop nop nop nop xor $25144, %rcx lea addresses_WT_ht+0x12a31, %rcx clflush (%rcx) nop nop nop nop add $18355, %rsi movb $0x61, (%rcx) sub $29703, %rbp lea addresses_A_ht+0x3f31, %rbp nop nop nop nop and $59041, %r14 mov (%rbp), %rcx nop nop and %rsi, %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r15 pop %r14 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r8 push %r9 push %rax push %rcx // Load mov $0x581, %r9 nop nop nop dec %r8 mov (%r9), %r13d nop nop nop nop nop sub $43357, %rcx // Load lea addresses_US+0x7531, %r13 nop nop nop cmp $53021, %rcx movups (%r13), %xmm6 vpextrq $0, %xmm6, %r8 // Exception!!! nop nop nop nop nop mov (0), %r9 nop nop nop nop cmp %r9, %r9 // Faulty Load lea addresses_WT+0x1b231, %rcx nop nop nop cmp $22879, %rax movups (%rcx), %xmm7 vpextrq $0, %xmm7, %r13 lea oracles, %r9 and $0xff, %r13 shlq $12, %r13 mov (%r9,%r13,1), %r13 pop %rcx pop %rax pop %r9 pop %r8 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 1, 'type': 'addresses_WT', 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_P', 'congruent': 4}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_US', 'congruent': 8}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WT', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'congruent': 6, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_UC_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_UC_ht', 'congruent': 11}} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_normal_ht', 'congruent': 5}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_D_ht', 'congruent': 10}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 1, 'type': 'addresses_WT_ht', 'congruent': 10}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_A_ht', 'congruent': 6}} {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
35.883436
2,999
0.653958
f59873b4437d6e97cc4261800d5bcd0528fc2fe8
831
asm
Assembly
oeis/142/A142812.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142812.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142812.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142812: Primes congruent to 14 mod 61. ; Submitted by Jon Maiga ; 197,563,929,1051,1783,2027,2393,3491,3613,5077,5443,6053,6907,7151,7517,7639,7883,8737,9103,10079,10567,11177,11299,11909,12641,12763,13007,14593,15569,16057,16301,17033,18131,18253,19717,19961,20327,20693,21059,22157,22279,23011,23743,24109,24841,25939,26183,27281,27647,28867,29599,30697,30941,31063,31307,32771,33503,35089,36187,36919,37529,38261,38749,38993,39359,39847,40213,40823,41189,42043,42409,43019,44483,44971,45337,46679,47533,47777,49363,50461,51071,51193,51437,51803,52291,52901,53267 mov $1,37 mov $2,$0 add $2,2 pow $2,2 lpb $2 sub $2,1 mov $3,$1 mul $3,2 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,61 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 mul $0,2 sub $0,121
34.625
501
0.732852
dd936ddc09d31e4daef8238527ac30e1f8e148c1
266
asm
Assembly
programs/oeis/117/A117197.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/117/A117197.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/117/A117197.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A117197: a(n) = (n^3 - 1)^3. ; 0,343,17576,250047,1906624,9938375,40001688,133432831,385828352,997002999,2352637000,5150827583,10590025536,20638466407,38409197624,68669157375,118515478528,198257271191,322546580712,511808023999 add $0,1 pow $0,3 sub $0,1 pow $0,3
33.25
197
0.785714
6363a219edec2f1266b90005eae998c97b165dc2
140
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sdcc/___fsgt_callee.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sdcc/___fsgt_callee.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sdcc/___fsgt_callee.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_fp_math32 PUBLIC ___fsgt_callee EXTERN cm32_sdcc___fsgt_callee defc ___fsgt_callee = cm32_sdcc___fsgt_callee
20
49
0.792857
02fa406c4e58da3a8683f105980d0d302c23f675
1,214
asm
Assembly
programs/oeis/027/A027771.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/027/A027771.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/027/A027771.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A027771: (n+1)*C(n+1,11). ; 11,144,1014,5096,20475,69888,210392,572832,1436058,3359200,7407036,15519504,31097794,59907456,111435000,200880160,352023165,601277040,1003321410,1638819000,2624841765,4128783360,6386711760,9727323840,14602906500,21628990656,31634709624,45726246944,65366185716,92472057600,129537940688,179783577792,247336187007,337450921808,456776815950,613676027016,818605279999,1084569617664,1427659896936,1867686940000,2428926865470,3140993899680,4039858912180,5169034044720,6580946121750,8338524055680,10517028205320,13206152625120,16512434370705,20562007518000,25503743324826,31512822031704,38794786179849,47590130036736,58179484781600,70889464533888,86099244126792,104247945756032,125842918292208,151469000155200,181798864233896,217604551417344,259770307908384,309306850642816,367367194861875,435264188209680,514489906677670,606737079322920,713922720975555,838214165152000,982057703136120,1148210049710880,1339772871351330,1560230628858720,1813492003459500,2103935193346896,2436457386542634,2816528735839104,3250251182485656,3744422497245600,4306605930512613,4945205887377392,5669550068919282,6489978547606008,7417940272561325,8466097529650176 mov $1,$0 add $1,11 bin $1,$0 add $0,11 mul $1,$0
134.888889
1,134
0.896211
a1de3a9773eedb477542540f57b2da6a197f2db9
6,183
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_4665_1191.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_4665_1191.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_4665_1191.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 %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0xcf81, %rcx nop nop cmp $18869, %rdi mov (%rcx), %r12d nop nop inc %rcx lea addresses_UC_ht+0xb7c1, %rsi clflush (%rsi) nop nop nop nop nop inc %r11 mov (%rsi), %r13w nop nop nop nop nop and $47141, %rcx lea addresses_WC_ht+0x41ab, %rsi nop nop nop nop and %r9, %r9 mov $0x6162636465666768, %rcx movq %rcx, %xmm4 vmovups %ymm4, (%rsi) nop xor $59304, %r13 lea addresses_normal_ht+0xaeb, %rsi lea addresses_UC_ht+0xa32b, %rdi nop nop nop nop nop xor $45668, %rdx mov $37, %rcx rep movsl add %r9, %r9 lea addresses_A_ht+0x9993, %rsi lea addresses_WC_ht+0x1ebeb, %rdi clflush (%rdi) nop nop add %r12, %r12 mov $91, %rcx rep movsw nop nop nop nop add %r11, %r11 lea addresses_WT_ht+0x89eb, %rsi lea addresses_WT_ht+0x52eb, %rdi xor $62549, %r12 mov $8, %rcx rep movsw nop nop nop nop sub %r9, %r9 lea addresses_WC_ht+0x199ab, %rsi sub %rcx, %rcx movb $0x61, (%rsi) nop nop nop nop cmp $6543, %r9 lea addresses_WC_ht+0x16beb, %r9 nop nop xor %rsi, %rsi movb $0x61, (%r9) nop and $57173, %r9 lea addresses_A_ht+0x1b54b, %r9 clflush (%r9) nop nop nop nop xor $50272, %rcx movups (%r9), %xmm6 vpextrq $1, %xmm6, %rdi nop nop nop nop nop and $22454, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r13 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r9 push %rbp push %rbx push %rdi push %rsi // Faulty Load lea addresses_US+0x12deb, %rbx nop nop add $50572, %rsi mov (%rbx), %r9d lea oracles, %rdi and $0xff, %r9 shlq $12, %r9 mov (%rdi,%r9,1), %r9 pop %rsi pop %rdi pop %rbx pop %rbp pop %r9 ret /* <gen_faulty_load> [REF] {'src': {'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_US'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'} {'src': {'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 8, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'00': 4665} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
37.932515
2,999
0.65761
dcb2e777c83c92221ee48fda7a32e2b13c91b30c
389
asm
Assembly
programs/oeis/290/A290452.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/290/A290452.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/290/A290452.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A290452: Triangle formed by reading the triangle of Eulerian numbers (A173018) mod 2. ; 1,1,0,1,1,0,1,0,1,0,1,1,1,1,0,1,0,0,0,1,0,1,1,0,0,1,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,0,1,0,0,0,0,0,0,0,1,0,1,1,0,0,0,0,0,0,1,1,0,1,0,1,0,0,0,0,0,1,0,1,0,1,1,1,1,0,0,0,0,1,1,1,1,0 mov $2,$0 cmp $2,0 add $0,$2 cal $0,268234 ; Partial sums of A047999. mov $1,$0 gcd $1,2 mul $1,2 sub $1,2 div $1,2
29.923077
183
0.59126
2b70987dff084099ce734853a2b73d108471a194
485
asm
Assembly
src/firmware-tests/Platform/Adc/Initialisation/Pie1Test.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
1
2019-12-12T09:07:08.000Z
2019-12-12T09:07:08.000Z
src/firmware-tests/Platform/Adc/Initialisation/Pie1Test.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
null
null
null
src/firmware-tests/Platform/Adc/Initialisation/Pie1Test.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
null
null
null
#include "Platform.inc" #include "FarCalls.inc" #include "Adc.inc" #include "TestFixture.inc" radix decimal udata global initialPie1 global expectedPie1 initialPie1 res 1 expectedPie1 res 1 Pie1Test code global testArrange testArrange: banksel initialPie1 movf initialPie1, W banksel PIE1 movwf PIE1 testAct: fcall initialiseAdc testAssert: .aliasForAssert PIE1, _a .aliasForAssert expectedPie1, _b .assert "_a == _b, 'PIE1 expectation failure.'" return end
14.264706
48
0.764948
b8c30cc6f631ab49b382aaaa0cee3962cf53d62e
387
asm
Assembly
oeis/103/A103349.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/103/A103349.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/103/A103349.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A103349: Numerators of sum_{k=1..n} 1/k^8 = Zeta(8,n). ; Submitted by Jon Maiga ; 1,257,1686433,431733409,168646292872321,168646392872321,972213062238348973121,248886558707571775009601,1632944749460578249437992161,1632944765723715465050248417 mov $1,1 lpb $0 mov $2,$0 sub $0,1 add $2,1 pow $2,8 mul $3,$2 add $3,$1 mul $1,$2 lpe add $1,$3 gcd $3,$1 div $1,$3 mov $0,$1
20.368421
162
0.702842
06607183b699298a239432a77c5ae0b19c6c6462
723
asm
Assembly
oeis/163/A163348.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/163/A163348.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/163/A163348.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A163348: a(n) = 6*a(n-1) - 7*a(n-2) for n > 1; a(0) = 1, a(1) = 7. ; Submitted by Jon Maiga ; 1,7,35,161,721,3199,14147,62489,275905,1218007,5376707,23734193,104768209,462469903,2041441955,9011362409,39778080769,175588947751,775087121123,3421400092481,15102790707025,66666943594783,294282126619523,1299024154553657,5734170040985281,25311851164036087,111731916697319555,493208542035664721,2177127835332751441,9610307217746855599,42421948459151873507,187259540230683251849,826603602170036396545,3648804831405435616327,16106603773242358922147,71097988819616104218593,313841706505000112856529 lpb $0 sub $0,1 mul $1,3 add $3,3 add $1,$3 add $2,$3 sub $2,1 mov $3,$1 add $3,$2 lpe mov $0,$1 mul $0,2 add $0,1
40.166667
496
0.784232
b8b4a20bdfaaedf2f0e8b727bcfc03d1f5cbbe70
1,500
asm
Assembly
code/editor/sheet/edit-player.asm
abekermsx/skooted
ea0eb5c0c2703c45807477bfdcda0ad1ad9119d8
[ "MIT" ]
3
2021-10-06T20:52:11.000Z
2021-11-29T11:31:55.000Z
code/editor/sheet/edit-player.asm
abekermsx/skooted
ea0eb5c0c2703c45807477bfdcda0ad1ad9119d8
[ "MIT" ]
null
null
null
code/editor/sheet/edit-player.asm
abekermsx/skooted
ea0eb5c0c2703c45807477bfdcda0ad1ad9119d8
[ "MIT" ]
null
null
null
edit_player: call get_player_location ld (sheet_xy),de ld hl,edit_player_functions jp edit edit_player_functions: dw edit_player_blink_sprite dw edit_player_restore_sprite dw edit_player_put_player dw edit_sheet_delete_pattern edit_player_put_player: ld de,(sheet_xy) call set_player_location call remove_enemy_at_location call remove_item_at_location call remove_heart_at_location call get_pattern_at_location cp 5 jr c,edit_player_put_player1 xor a call set_pattern_at_location edit_player_put_player1: ld de,(sheet_xy) call print_pattern_xy call print_player_sprite ret edit_player_blink_sprite: call get_player_location ld hl,(sheet_xy) call DCOMPR jr nz,edit_player_blink_sprite2 ld de,14 * 256 edit_player_blink_sprite2: ld a,SPRITE.PLAYER call print_sprite_at_location ld a,(JIFFY) and 15 cp 8 ld de,(sheet_xy) jr c,edit_player_show_cursor_sprite2 edit_player_hide_cursor_sprite: ld de,14 * 256 edit_player_show_cursor_sprite2: ld a,SPRITE.CURSOR call print_sprite_at_location ret edit_player_restore_sprite: call get_player_location ld a,SPRITE.PLAYER call print_sprite_at_location jr edit_player_hide_cursor_sprite
21.73913
44
0.658667
4459db21279d6b9ddd80092c790731d11bf2b519
1,085
asm
Assembly
_build/dispatcher/jmp_ippsGFpECGetPoint_003eee43.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
1
2021-10-04T10:21:54.000Z
2021-10-04T10:21:54.000Z
_build/dispatcher/jmp_ippsGFpECGetPoint_003eee43.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
_build/dispatcher/jmp_ippsGFpECGetPoint_003eee43.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
extern m7_ippsGFpECGetPoint:function extern n8_ippsGFpECGetPoint:function extern y8_ippsGFpECGetPoint:function extern e9_ippsGFpECGetPoint:function extern l9_ippsGFpECGetPoint:function extern n0_ippsGFpECGetPoint:function extern k0_ippsGFpECGetPoint:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:function segment .data align 8 dq .Lin_ippsGFpECGetPoint .Larraddr_ippsGFpECGetPoint: dq m7_ippsGFpECGetPoint dq n8_ippsGFpECGetPoint dq y8_ippsGFpECGetPoint dq e9_ippsGFpECGetPoint dq l9_ippsGFpECGetPoint dq n0_ippsGFpECGetPoint dq k0_ippsGFpECGetPoint segment .text global ippsGFpECGetPoint:function (ippsGFpECGetPoint.LEndippsGFpECGetPoint - ippsGFpECGetPoint) .Lin_ippsGFpECGetPoint: db 0xf3, 0x0f, 0x1e, 0xfa call ippcpSafeInit wrt ..plt align 16 ippsGFpECGetPoint: db 0xf3, 0x0f, 0x1e, 0xfa mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc] movsxd rax, dword [rax] lea r11, [rel .Larraddr_ippsGFpECGetPoint] mov r11, qword [r11+rax*8] jmp r11 .LEndippsGFpECGetPoint:
27.820513
95
0.797235
7dc4541cb4e87b73c371aa6230033fe9136d6f19
5,211
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1859.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1859.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1859.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 %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x16fa6, %rbp nop nop add %r11, %r11 movw $0x6162, (%rbp) nop nop nop and $24173, %rsi lea addresses_A_ht+0x1d914, %rdi nop xor %rdx, %rdx mov $0x6162636465666768, %r9 movq %r9, %xmm6 movups %xmm6, (%rdi) nop nop nop add %rsi, %rsi lea addresses_WT_ht+0x1e94, %rsi lea addresses_A_ht+0x4a94, %rdi clflush (%rsi) nop nop nop nop nop xor $52973, %rbp mov $79, %rcx rep movsq nop nop nop nop xor $31925, %rcx lea addresses_WT_ht+0x3794, %rdx nop nop nop sub %rax, %rax vmovups (%rdx), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %rdi xor %r11, %r11 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r11 ret .global s_faulty_load s_faulty_load: push %r14 push %r15 push %r8 push %r9 push %rbp push %rbx push %rdi // Store lea addresses_WT+0x794, %r14 nop nop nop nop add %r8, %r8 movl $0x51525354, (%r14) nop nop cmp $51636, %r8 // Faulty Load lea addresses_A+0x15994, %rbp nop nop nop nop nop cmp $60267, %r15 movb (%rbp), %r14b lea oracles, %rbx and $0xff, %r14 shlq $12, %r14 mov (%rbx,%r14,1), %r14 pop %rdi pop %rbx pop %rbp pop %r9 pop %r8 pop %r15 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_A', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WT', 'congruent': 8}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WC_ht', 'congruent': 1}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_A_ht', 'congruent': 7}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 8, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 9}} {'35': 21829} 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 */
42.024194
2,999
0.659374
540c3b8f6fbae24fd47ab4fb642c1309f21c1b12
891
asm
Assembly
env/zx/common/fputc_cons_rst.asm
pjshumphreys/querycsv
48453d8c81fb5fc6db495881c99046f7a7656cbc
[ "MIT" ]
18
2017-04-17T23:19:51.000Z
2022-02-09T00:26:21.000Z
env/zx/common/fputc_cons_rst.asm
pjshumphreys/querycsv
48453d8c81fb5fc6db495881c99046f7a7656cbc
[ "MIT" ]
null
null
null
env/zx/common/fputc_cons_rst.asm
pjshumphreys/querycsv
48453d8c81fb5fc6db495881c99046f7a7656cbc
[ "MIT" ]
null
null
null
include "equs.inc" ; (char to print) this function is written to only use jr instructions to make it be relocatable code fputc_cons_rom_rst: ld hl, 2 add hl, sp ld b, (hl) ld hl, skip_count ld a, (hl) and a ld a, b jr nz, not_cont cp 10 jr z, lf cp 22 ;move to jr z, posn cp 07 jr z, beep not_beep: push af direct: ld a, 255 ld hl, SCR_CT ;disable the scroll? prompt ld (hl), a pop af push iy ;save callers iy ld iy, ERR_NR call call_rom3 defw 16 pop iy ret not_cont: dec (hl) jr not_beep posn: push af ld a, 2 ld (hl), a jr direct lf: ld a, 13 jr not_beep beep: push hl push bc push de ld hl, $02f6 ; parameters for the beep. 128k uses $0300 instead to account for the cpu speed differences ld de, $002f ; 128k uses $30 instead call call_rom3 defw 0x03b5 ; call BEEPER pop de pop bc pop hl ret
16.2
106
0.645342
f5b7daecdef7ad69ce6c4a8298f297fd622e1684
4,959
asm
Assembly
Transynther/x86/_processed/NONE/_zr_xt_/i7-7700_9_0x48_notsx.log_21829_1566.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_xt_/i7-7700_9_0x48_notsx.log_21829_1566.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_xt_/i7-7700_9_0x48_notsx.log_21829_1566.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 %rbp push %rbx push %rdx lea addresses_WC_ht+0x12840, %r10 nop nop nop nop sub %rdx, %rdx mov (%r10), %rbp and %rbx, %rbx lea addresses_WC_ht+0xfe0, %r10 nop and $13888, %r12 movl $0x61626364, (%r10) nop dec %rbx pop %rdx pop %rbx pop %rbp pop %r15 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r8 push %r9 push %rbx push %rcx push %rsi // Store lea addresses_UC+0x181e0, %rcx nop nop nop nop sub %rsi, %rsi movl $0x51525354, (%rcx) nop nop nop nop nop cmp $50201, %r9 // Load lea addresses_WC+0x6a80, %rbx inc %r13 movb (%rbx), %r14b mfence // Store lea addresses_UC+0x1b008, %r13 nop add $32521, %r14 movw $0x5152, (%r13) nop nop cmp %rbx, %rbx // Faulty Load lea addresses_A+0x1e5e0, %r14 clflush (%r14) nop nop nop cmp %rsi, %rsi mov (%r14), %r9d lea oracles, %r13 and $0xff, %r9 shlq $12, %r9 mov (%r13,%r9,1), %r9 pop %rsi pop %rcx pop %rbx pop %r9 pop %r8 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC', 'congruent': 9}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC', 'congruent': 5}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_UC', 'congruent': 3}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A', 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC_ht', 'congruent': 4}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WC_ht', 'congruent': 7}, 'OP': 'STOR'} {'35': 21828, '00': 1} 00 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 */
46.345794
2,999
0.654567
93aeb3561f8a992c053d2a74806a56cb040ee6c3
134
asm
Assembly
programs/oeis/004/A004052.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/004/A004052.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/004/A004052.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A004052: The coding-theoretic function A(n,14,8). ; 1,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,4,4,4 mul $0,2 sub $0,3 div $0,11 add $0,1
16.75
51
0.597015
73fd4b6dcec0f1b17287062084d60d02eaeaa8d1
1,548
asm
Assembly
programs/oeis/229/A229525.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/229/A229525.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/229/A229525.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A229525: Sum of coefficients of the transform ax^2 + (4a/k - b)x + 4a/k^2 + 2b/k + c = 0 for a,b,c = 1,-1,-1, k = 1,2,3... ; 11,5,31,11,59,19,95,29,139,41,191,55,251,71,319,89,395,109,479,131,571,155,671,181,779,209,895,239,1019,271,1151,305,1291,341,1439,379,1595,419,1759,461,1931,505,2111,551,2299,599,2495,649,2699,701,2911,755,3131,811,3359,869,3595,929,3839,991,4091,1055,4351,1121,4619,1189,4895,1259,5179,1331,5471,1405,5771,1481,6079,1559,6395,1639,6719,1721,7051,1805,7391,1891,7739,1979,8095,2069,8459,2161,8831,2255,9211,2351,9599,2449,9995,2549,10399,2651,10811,2755,11231,2861,11659,2969,12095,3079,12539,3191,12991,3305,13451,3421,13919,3539,14395,3659,14879,3781,15371,3905,15871,4031,16379,4159,16895,4289,17419,4421,17951,4555,18491,4691,19039,4829,19595,4969,20159,5111,20731,5255,21311,5401,21899,5549,22495,5699,23099,5851,23711,6005,24331,6161,24959,6319,25595,6479,26239,6641,26891,6805,27551,6971,28219,7139,28895,7309,29579,7481,30271,7655,30971,7831,31679,8009,32395,8189,33119,8371,33851,8555,34591,8741,35339,8929,36095,9119,36859,9311,37631,9505,38411,9701,39199,9899,39995,10099,40799,10301,41611,10505,42431,10711,43259,10919,44095,11129,44939,11341,45791,11555,46651,11771,47519,11989,48395,12209,49279,12431,50171,12655,51071,12881,51979,13109,52895,13339,53819,13571,54751,13805,55691,14041,56639,14279,57595,14519,58559,14761,59531,15005,60511,15251,61499,15499,62495,15749,63499,16001 mov $1,$0 add $0,2 mul $0,2 add $1,5 mul $1,$0 sub $1,2 add $0,$1 lpb $0,1 mov $2,6 gcd $2,$0 div $0,$2 lpe mov $1,$0
91.058824
1,297
0.760336
6bf753937dde10e2640d80ec52cf8de144861339
791
asm
Assembly
Modelsim_codes/riscv32_forwarding_sim3.asm
Chen-yu-Zheng/2021SpringCOE-WHU
24f316bbdbce581a1b787b8a4bf187b3b2382f2b
[ "MIT" ]
null
null
null
Modelsim_codes/riscv32_forwarding_sim3.asm
Chen-yu-Zheng/2021SpringCOE-WHU
24f316bbdbce581a1b787b8a4bf187b3b2382f2b
[ "MIT" ]
null
null
null
Modelsim_codes/riscv32_forwarding_sim3.asm
Chen-yu-Zheng/2021SpringCOE-WHU
24f316bbdbce581a1b787b8a4bf187b3b2382f2b
[ "MIT" ]
null
null
null
# Test the RISC-V processor in simulation # 已经能正确执行:addi, lw, sw, beq,jalr # 待验证:能否正确处理需要停顿的数据依赖: load-use, arith-beq, load-beq, arith-jalr, load-jalr main: addi x5, x0, 5 sw x5, 0(x0) #mem[0] = 5 lw x6, 0(x0) addi x7, x6, 2 #load-use data hazard, stall one cycle, x7 = 7 addi x8, x0, 7 beq x7, x8, br1 #arith-beq data hazard, stall one cycle addi x10, x0, 10 #should not run br1ret: lw x7, 0(x0) #x7 = 5 beq x5, x7, br2 #lw-beq data hazard, stall two cycles addi x10, x0, 10 #should not run br2ret: addi x14, x0, 1 jalr x0, x0, end br1: addi x11, x0, 0x1c jalr x0, x11, main #jalr x0, x0, br1ret br2: addi x12, x0, 0xc sw x12, 8(x0) lw x13, 8(x0) jalr x0, x13, br1ret #jalr x0, x0, br2ret end:
29.296296
76
0.594185