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
0066d34425131bc5c8258f526f2b121d3c2d51a6
615
asm
Assembly
src/lib/pipe.asm
zys1310992814/BookOSv0.2
7dca0f968663a0e6de18dd9b3e533d1e0412674f
[ "BSD-2-Clause" ]
3
2019-02-24T11:05:46.000Z
2019-02-26T03:20:50.000Z
src/lib/pipe.asm
zys1310992814/BookOSv0.2
7dca0f968663a0e6de18dd9b3e533d1e0412674f
[ "BSD-2-Clause" ]
null
null
null
src/lib/pipe.asm
zys1310992814/BookOSv0.2
7dca0f968663a0e6de18dd9b3e533d1e0412674f
[ "BSD-2-Clause" ]
null
null
null
[bits 32] [section .text] INT_VECTOR_SYS_CALL equ 0x80 _NR_NEW_PIPE EQU 49 _NR_WRITE_PIPE EQU 50 _NR_READ_PIPE EQU 51 _NR_CLOSE_PIPE EQU 52 global new_pipe new_pipe: mov eax, _NR_NEW_PIPE mov ebx, [esp + 4] int INT_VECTOR_SYS_CALL ret global write_pipe write_pipe: mov eax, _NR_WRITE_PIPE mov ebx, [esp + 4] mov ecx, [esp + 8] mov edx, [esp + 12] int INT_VECTOR_SYS_CALL ret global read_pipe read_pipe: mov eax, _NR_READ_PIPE mov ebx, [esp + 4] mov ecx, [esp + 8] int INT_VECTOR_SYS_CALL ret global close_pipe close_pipe: mov eax, _NR_CLOSE_PIPE mov ecx, [esp + 4] int INT_VECTOR_SYS_CALL ret
16.184211
28
0.75122
27be64437f586a5faa0232b6bb45cb15e60d61c3
5,617
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_41_670.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_41_670.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_41_670.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r15 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x18758, %r15 nop nop cmp %rax, %rax mov $0x6162636465666768, %rbx movq %rbx, (%r15) nop nop nop nop nop add %rsi, %rsi lea addresses_A_ht+0x10938, %rsi lea addresses_WC_ht+0x8d90, %rdi nop nop nop mfence mov $101, %rcx rep movsb nop nop inc %rbx lea addresses_WT_ht+0x9158, %rsi lea addresses_D_ht+0x1d158, %rdi nop nop dec %r10 mov $82, %rcx rep movsb nop nop nop nop cmp $37408, %rdi lea addresses_A_ht+0xf0e8, %rsi lea addresses_normal_ht+0x10c28, %rdi nop and %r14, %r14 mov $39, %rcx rep movsq nop nop add $48752, %rax lea addresses_UC_ht+0x729a, %rdi nop nop nop nop cmp %r10, %r10 movw $0x6162, (%rdi) nop nop nop nop nop add $21359, %rcx lea addresses_UC_ht+0x1d75b, %r14 and $53968, %rbx mov $0x6162636465666768, %rcx movq %rcx, (%r14) nop nop nop inc %rbx lea addresses_normal_ht+0x1dcd0, %rsi lea addresses_D_ht+0xbff8, %rdi nop nop nop nop nop xor $43816, %rax mov $108, %rcx rep movsq nop nop inc %r10 lea addresses_D_ht+0xb4b0, %rsi lea addresses_D_ht+0xa58, %rdi nop nop sub $63633, %r10 mov $101, %rcx rep movsq nop nop nop xor $21946, %rax lea addresses_UC_ht+0xb058, %r10 nop nop add %rdi, %rdi and $0xffffffffffffffc0, %r10 vmovntdqa (%r10), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $1, %xmm1, %rbx nop nop nop nop nop xor $51886, %r14 lea addresses_UC_ht+0x1b9a8, %rsi nop nop nop nop nop add %rdi, %rdi vmovups (%rsi), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $1, %xmm3, %r10 xor %r14, %r14 lea addresses_D_ht+0xe4f8, %rsi lea addresses_WT_ht+0x9758, %rdi nop nop nop nop cmp $45005, %r15 mov $121, %rcx rep movsw nop nop nop nop nop add %rcx, %rcx lea addresses_WC_ht+0x10bb8, %rsi nop nop add $59574, %r10 mov $0x6162636465666768, %rbx movq %rbx, %xmm5 movups %xmm5, (%rsi) nop nop sub $9444, %rax pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r15 pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %r8 push %r9 push %rcx push %rdi push %rsi // Load lea addresses_WT+0xaa72, %rsi nop xor %r9, %r9 movb (%rsi), %r11b nop nop add $30780, %r11 // REPMOV lea addresses_WT+0x15c58, %rsi lea addresses_normal+0x1df18, %rdi nop nop cmp $14115, %r8 mov $96, %rcx rep movsq nop nop nop nop nop cmp %r9, %r9 // Load mov $0x127d30000000758, %r11 nop nop nop nop dec %rsi mov (%r11), %ecx cmp $57154, %rcx // Load lea addresses_RW+0x1a458, %rcx dec %r8 movb (%rcx), %r14b nop nop xor %r11, %r11 // Load lea addresses_RW+0x13158, %r11 nop nop add %r10, %r10 movups (%r11), %xmm5 vpextrq $0, %xmm5, %rsi nop nop cmp %rdi, %rdi // Faulty Load lea addresses_US+0x6f58, %rcx nop nop nop nop nop add $9162, %r11 mov (%rcx), %edi lea oracles, %rcx and $0xff, %rdi shlq $12, %rdi mov (%rcx,%rdi,1), %rdi pop %rsi pop %rdi pop %rcx pop %r9 pop %r8 pop %r14 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_US'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 1, 'same': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_WT'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_normal'}, 'OP': 'REPM'} {'src': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 11, 'same': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 7, 'same': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5, 'same': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_US'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'src': {'congruent': 5, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'src': {'congruent': 6, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'src': {'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 1, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'src': {'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'src': {'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'src': {'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 8, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 2, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'} {'00': 41} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
20.5
151
0.652127
2b180cd8371a1923ec81f0ef5bf9b624d802369c
413
asm
Assembly
oeis/036/A036238.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/036/A036238.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/036/A036238.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A036238: Triangle of numbers a(r,j) = j*(j+1) mod r+2, r>=1, j=1..r. ; Submitted by Jon Maiga ; 2,2,2,2,1,2,2,0,0,2,2,6,5,6,2,2,6,4,4,6,2,2,6,3,2,3,6,2,2,6,2,0,0,2,6,2,2,6,1,9,8,9,1,6,2,2,6,0,8,6,6,8,0,6,2,2,6,12,7,4,3,4,7,12,6,2,2,6,12,6,2,0,0,2,6,12,6,2,2,6,12,5,0,12,11,12,0,5,12,6,2,2,6,12,4,14,10,8,8,10 lpb $0 add $1,1 sub $0,$1 lpe add $0,1 add $1,3 mov $2,1 add $2,$0 mul $2,$0 mod $2,$1 mov $0,$2
25.8125
214
0.542373
cdde4fa97c20831f498e98a341f85040ed650eb4
8,039
asm
Assembly
Transynther/x86/_processed/US/_ht_zr_un_/i9-9900K_12_0xca.log_740_1775.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_ht_zr_un_/i9-9900K_12_0xca.log_740_1775.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_ht_zr_un_/i9-9900K_12_0xca.log_740_1775.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 %r8 push %r9 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0xf7cb, %rdx nop nop nop nop sub $63388, %rax movw $0x6162, (%rdx) nop nop nop and %r8, %r8 lea addresses_D_ht+0x17230, %r8 nop nop nop nop nop and %r15, %r15 movb $0x61, (%r8) nop and %r9, %r9 lea addresses_WT_ht+0xb0cb, %r13 sub $35723, %rbx mov (%r13), %r9 nop nop cmp $33873, %r13 lea addresses_normal_ht+0x606b, %rdx clflush (%rdx) lfence movb $0x61, (%rdx) nop nop and %rax, %rax lea addresses_D_ht+0xa54, %rsi lea addresses_WT_ht+0xf6f3, %rdi clflush (%rsi) inc %r15 mov $111, %rcx rep movsq dec %r13 lea addresses_normal_ht+0x1028b, %rsi lea addresses_A_ht+0x601b, %rdi nop nop nop add $36870, %rbx mov $23, %rcx rep movsw nop nop dec %rsi lea addresses_WC_ht+0x273b, %r9 nop nop nop nop and %rbx, %rbx movups (%r9), %xmm3 vpextrq $0, %xmm3, %rcx nop nop nop nop and $29298, %r8 lea addresses_WT_ht+0x17f8b, %rsi lea addresses_WC_ht+0x798b, %rdi nop nop nop nop inc %rax mov $26, %rcx rep movsw xor %rdi, %rdi lea addresses_normal_ht+0x348b, %rdi xor $13739, %rsi movw $0x6162, (%rdi) nop nop nop nop nop dec %r9 lea addresses_D_ht+0x17f8b, %rsi lea addresses_WC_ht+0x1c8b, %rdi nop xor %r9, %r9 mov $42, %rcx rep movsq and $7144, %rdx lea addresses_normal_ht+0x1040b, %r9 nop nop nop nop inc %rax movl $0x61626364, (%r9) nop nop nop sub %rsi, %rsi lea addresses_normal_ht+0x1e8b, %rdi nop nop nop nop cmp %r9, %r9 movl $0x61626364, (%rdi) nop nop nop and $44045, %rdx lea addresses_normal_ht+0x7c2b, %rcx sub $41855, %rbx mov $0x6162636465666768, %rdi movq %rdi, %xmm1 vmovups %ymm1, (%rcx) nop and $41234, %r8 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r8 pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r14 push %r15 push %r8 push %rcx push %rdi push %rdx push %rsi // Store lea addresses_US+0x2a8b, %rdx nop nop nop xor %rsi, %rsi mov $0x5152535455565758, %rdi movq %rdi, (%rdx) nop nop nop sub %rdx, %rdx // Store lea addresses_US+0x2a8b, %rcx nop dec %r14 mov $0x5152535455565758, %r8 movq %r8, %xmm6 movups %xmm6, (%rcx) nop nop nop inc %rdi // Load lea addresses_normal+0x1428b, %rdx nop sub %r15, %r15 movups (%rdx), %xmm4 vpextrq $1, %xmm4, %rdi nop nop nop nop sub %rcx, %rcx // Store lea addresses_A+0x1288b, %rcx nop nop and %r8, %r8 movw $0x5152, (%rcx) nop nop nop nop nop sub $3819, %rsi // Store mov $0xc8b, %r14 nop nop nop xor %rcx, %rcx mov $0x5152535455565758, %r15 movq %r15, (%r14) nop nop nop nop nop xor $64283, %rcx // Store lea addresses_D+0x1f773, %r15 sub $11630, %r14 mov $0x5152535455565758, %rdi movq %rdi, %xmm6 vmovups %ymm6, (%r15) nop nop sub $23490, %rsi // Faulty Load lea addresses_US+0x2a8b, %rdi nop nop nop nop sub %r15, %r15 vmovups (%rdi), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $1, %xmm0, %r8 lea oracles, %rdi and $0xff, %r8 shlq $12, %r8 mov (%rdi,%r8,1), %r8 pop %rsi pop %rdx pop %rdi pop %rcx pop %r8 pop %r15 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_US', 'same': True, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_US', 'same': True, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 3}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_US', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 1}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 6}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_normal_ht', 'same': True, 'AVXalign': False, 'congruent': 3}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 3}} {'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_normal_ht', 'congruent': 11}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 2}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 5}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 7}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_normal_ht', 'same': True, 'AVXalign': False, 'congruent': 7}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 8}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 6}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_normal_ht', 'same': True, 'AVXalign': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 3}} {'08': 3, '00': 676, '46': 61} 00 00 00 00 46 00 00 00 00 46 00 00 46 00 00 46 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 46 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 46 00 00 46 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 08 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 08 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 46 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 46 08 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 46 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 46 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 46 46 00 00 00 00 46 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 46 46 00 00 00 00 00 00 00 46 46 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 */
28.507092
2,219
0.651574
c78fab4a79ff41a438d73405d1c36f18b38d41b1
569
asm
Assembly
oeis/189/A189934.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/189/A189934.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/189/A189934.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A189934: a(n) = A189932(n)/2. ; 2,5,8,11,14,17,20,23,26,28,31,34,37,40,43,46,49,52,54,57,60,63,66,69,72,75,78,81,83,86,89,92,95,98,101,104,107,109,112,115,118,121,124,127,130,133,136,138,141,144,147,150,153,156,159,162,164,167,170,173,176,179,182,185,188,191,193,196,199,202,205,208,211,214,217,219,222,225,228,231,234,237,240,243,246,248,251,254,257,260,263,266,269,272,274,277,280,283,286,289 mul $0,2 mov $3,$0 lpb $0 mov $2,$0 sub $0,1 seq $2,285685 ; Characteristic sequence of the Beatty sequence, A022839, of sqrt(5). add $3,$2 lpe mov $0,$3 add $0,2
40.642857
364
0.681898
347bf6dcddb153e1714fb916c4d861b2e1837a99
1,149
asm
Assembly
libsrc/_DEVELOPMENT/target/yaz180/driver/i2c/c/sdcc/i2c_write_callee.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/target/yaz180/driver/i2c/c/sdcc/i2c_write_callee.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/target/yaz180/driver/i2c/c/sdcc/i2c_write_callee.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_driver INCLUDE "config_private.inc" EXTERN asm_i2c1_write, asm_i2c2_write PUBLIC _i2c_write_callee ;------------------------------------------------------------------------------ ; Write to the I2C Interface, using Byte Mode transmission ; ; void i2c_write( uint8_t device, uint8_t addr, uint8_t *dp, uint8_t length, uint8_t mode ); ; ; parameters passed in registers to asm functions ; HL = pointer to data to transmit, uint8_t *dp ; D = 7 bit address of slave device, uint8_t addr ; C = length of data sentence, uint8_t length ; B = mode with buffer/byte [1|0] and boolean stop at conclusion [0x10|0x00] ._i2c_write_callee pop af ;ret pop de ;slave addr, device address pop hl ;*dp pop bc ;stop, length push af ;ret ld a,e ;device address cp __IO_I2C2_PORT_MSB jp Z,asm_i2c2_write cp __IO_I2C1_PORT_MSB jp Z,asm_i2c1_write ret ;no device address match, so exit
33.794118
94
0.538729
7923d930fc3aecb919fdca748818d3f8603d374c
9,054
asm
Assembly
racer-network.asm
LeifBloomquist/NetRacerClient
08e11533d723feebd0c271deebcd34832cd299b2
[ "MIT" ]
1
2016-02-01T17:25:59.000Z
2016-02-01T17:25:59.000Z
racer-network.asm
LeifBloomquist/NetRacerClient
08e11533d723feebd0c271deebcd34832cd299b2
[ "MIT" ]
1
2022-01-14T17:33:28.000Z
2022-01-14T17:33:28.000Z
racer-network.asm
LeifBloomquist/NetRacerClient
08e11533d723feebd0c271deebcd34832cd299b2
[ "MIT" ]
1
2021-03-24T06:55:23.000Z
2021-03-24T06:55:23.000Z
; Network stuff for racing game CARD_MAC dc.b $00,$80,$10,$0c,$64,$01 CARD_IP dc.b 192,168,1,64 CARD_MASK dc.b 255,255,255,0 CARD_GATE dc.b 192,168,1,1 CARD_GATE_MAC dc.b $00,$00,$00,$00,$00,$00 SERVER_IP .byte 208,79,218,201 ; Public SERVER_IP_LAN .byte 192,168,7,100 ; Private ; Default, overwritten by ARP SERVER_MAC .byte $01,$02,$03,$04,$05,$06 USER_UDP_PORT = 3000 UDP_DATA_IN equ INPACKET+$2A ; Beginning of UDP data buffer ;Various Flags... PACKET_RECEIVED ; Flag for incoming data .byte $00 NETSETUPFINISHED .byte $00 NETWORK_TIMEOUT ; Reset by packet receive. ; If this goes above a threshold, means no data received .byte $00 NET_TIMEDOUT ; Flag for main game loop .byte $00 NET_FAILED .byte $00 ;---------------------------------------------------------------- ; Called from main program NETWORK_SETUP PRINT CG_RED ; Basic card initialization jsr net_init ; Carry set if failed bcc UDPSETUP ;Failed jsr getanykey lda #$01 sta NET_FAILED jmp NETWORK_SETUP_x UDPSETUP ; UDP Setup lda #<3000 ; This doesn't have to match USER_UDP_PORT, but it does ldx #>3000 jsr UDP_SET_SRC_PORT lda #<3002 ldx #>3002 jsr UDP_SET_DEST_PORT lda #<SERVER_IP ldx #>SERVER_IP jsr UDP_SET_DEST_IP NETWORK_SETUP_x lda #$00 sta PACKET_RECEIVED rts ; ------------------------------------------------------------------------- ; Called from IRQ NETWORK_UPDATE jsr NETIRQ lda NETSETUPFINISHED beq NETWORK_UPDATEx lda NET_FAILED bne NETWORK_UPDATEx jsr SENDUPDATE ;Network timeouts lda NET_TIMEDOUT ; Timeout in progress bne NTIMEOUT inc NETWORK_TIMEOUT lda NETWORK_TIMEOUT ; Packets are sent every 50 milliseconds (20/sec) ; This routine is called every ~17 ms (NTSC) ; If we go 30 calls (~0.5 seconds) without a packet, freeze game. cmp #30 ;Decimal blt NETWORK_UPDATEx lda #$01 sta NET_TIMEDOUT lda #$00 sta PACKET_RECEIVED jsr NTIMEOUT NETWORK_UPDATEx rts NTIMEOUT lda #$02 sta $d020 jsr SOUND_TIMEOUT lda PACKET_RECEIVED beq NTIMEOUT_x ; No packet yet lda #$00 sta $d020 sta NET_TIMEDOUT NTIMEOUT_x rts ; ------------------------------------------------------------------------- ; Get Gateway MAC ; ------------------------------------------------------------------------- ;Only get gateway MAC if the opponent's not on the local subnet GATEWAYMAC lda #<UDP_DEST_IP ldx #>UDP_DEST_IP jsr IPMASK bcc MAC_SKIP PRINT CRLF,"RESOLVING GATEWAY MAC..." jsr get_macs bcc MAC_OK ;Flag errors PRINT CRLF,CG_WHT,"ERROR RESOLVING THE GW MAC!",CRLF nomac jmp nomac ;Freeze MAC_OK PRINT "OK",CRLF MAC_SKIP rts ; ------------------------------------------------------------------------- ; Get Server MAC (LAN Mode only) ; ------------------------------------------------------------------------- SERVERMAC PRINT CRLF,"RESOLVING SERVER MAC..." ;get MAC for server lda #<SERVER_IP ldx #>SERVER_IP jsr GET_ARP bcs SMAC_FAILED ;copy gateway mac ldx #$00 gm1_0 lda ARP_MAC,x sta SERVER_MAC,x inx cpx #$06 bne gm1_0 jmp MAC_OK SMAC_FAILED PRINT CRLF,CG_WHT,"ERROR RESOLVING THE SERVER MAC!",CRLF nomac1 jmp nomac1 ;Freeze ; ------------------------------------------------------------------------- ; Packet Send Routine ; ------------------------------------------------------------------------- SENDUPDATE lda #$0e ; Including zero-term. and checksum ldx #$00 jsr UDP_SET_DATALEN ; Packet type lda #$00 ; Game update sta UDP_DATA ; X Position lda MYXPOS+1 ldx MYXPOS+2 ; High byte, TODO sta UDP_DATA+1 stx UDP_DATA+2 ; Y Position lda REALTRACKPOS+1 ldx REALTRACKPOS+2 sta UDP_DATA+3 stx UDP_DATA+4 ;X Speed (include fractional) lda MYX_SPEED ldx MYX_SPEED+1 sta UDP_DATA+5 stx UDP_DATA+6 ;Y Speed (include fractional) lda MY_SPEED ldx MY_SPEED+1 sta UDP_DATA+7 stx UDP_DATA+8 ;Car color lda sprite1color sta UDP_DATA+9 ;Sprite# lda sprite1pnt sta UDP_DATA+10 ; Send! jsr UDP_SEND rts ; ------------------------------------------------------------------------- ; Packet Receive + Handling Routines ; ------------------------------------------------------------------------- ; Temporary holder of the checksum we received RCV_CSUM dc.b $ff ; ============================================================== ; Master packet receiver. This occurs inside the interrupt! ; A UDP packet has arrived, and the port matches the one we want. ; ============================================================== MYUDP_PROCESS SUBROUTINE ; Check checksum, and don't ack if bad ; jsr CHECKSUM ; jmp BADCSUM inc COMMSLED ; Reset timeout lda #$00 sta NETWORK_TIMEOUT ; Display sprites as commanded by the server ;-------------------------------------- ldx UDP_DATA_IN+1 ldy UDP_DATA_IN+3 stx sprite2x stx IN_XPOSLOW+1 sty sprite2y sty IN_YPOS+1 lda UDP_DATA_IN+5 sta IN_XSPEEDLOW+1 lda UDP_DATA_IN+6 sta IN_XSPEEDHIGH+1 lda UDP_DATA_IN+7 sta IN_YSPEEDLOW+1 lda UDP_DATA_IN+8 sta IN_YSPEEDHIGH+1 lda UDP_DATA_IN+9 sta sprite2color lda UDP_DATA_IN+10 sta sprite2pnt ;-------------------------------------- ldx UDP_DATA_IN+13 ldy UDP_DATA_IN+15 stx sprite3x stx IN_XPOSLOW+2 sty sprite3y sty IN_YPOS+2 lda UDP_DATA_IN+17 sta IN_XSPEEDLOW+2 lda UDP_DATA_IN+18 sta IN_XSPEEDHIGH+2 lda UDP_DATA_IN+19 sta IN_YSPEEDLOW+2 lda UDP_DATA_IN+20 sta IN_YSPEEDHIGH+2 lda UDP_DATA_IN+21 sta sprite3color lda UDP_DATA_IN+22 sta sprite3pnt ;-------------------------------------- ldx UDP_DATA_IN+25 ldy UDP_DATA_IN+27 stx sprite4x stx IN_XPOSLOW+3 sty sprite4y sty IN_YPOS+3 lda UDP_DATA_IN+29 sta IN_XSPEEDLOW+3 lda UDP_DATA_IN+30 sta IN_XSPEEDHIGH+3 lda UDP_DATA_IN+31 sta IN_YSPEEDLOW+3 lda UDP_DATA_IN+32 sta IN_YSPEEDHIGH+3 lda UDP_DATA_IN+33 sta sprite4color lda UDP_DATA_IN+34 sta sprite4pnt ;-------------------------------------- ldx UDP_DATA_IN+37 ldy UDP_DATA_IN+39 stx sprite5x stx IN_XPOSLOW+4 sty sprite5y sty IN_YPOS+4 lda UDP_DATA_IN+41 sta IN_XSPEEDLOW+4 lda UDP_DATA_IN+42 sta IN_XSPEEDHIGH+4 lda UDP_DATA_IN+43 sta IN_YSPEEDLOW+4 lda UDP_DATA_IN+44 sta IN_YSPEEDHIGH+4 lda UDP_DATA_IN+45 sta sprite5color lda UDP_DATA_IN+46 sta sprite5pnt ;-------------------------------------- ldx UDP_DATA_IN+49 ldy UDP_DATA_IN+51 stx sprite6x stx IN_XPOSLOW+5 sty sprite6y sty IN_YPOS+5 lda UDP_DATA_IN+53 sta IN_XSPEEDLOW+5 lda UDP_DATA_IN+54 sta IN_XSPEEDHIGH+5 lda UDP_DATA_IN+55 sta IN_YSPEEDLOW+5 lda UDP_DATA_IN+56 sta IN_YSPEEDHIGH+5 lda UDP_DATA_IN+57 sta sprite6color lda UDP_DATA_IN+58 sta sprite6pnt ;-------------------------------------- ldx UDP_DATA_IN+61 ldy UDP_DATA_IN+63 stx sprite7x stx IN_XPOSLOW+6 sty sprite7y sty IN_YPOS+6 lda UDP_DATA_IN+65 sta IN_XSPEEDLOW+6 lda UDP_DATA_IN+66 sta IN_XSPEEDHIGH+6 lda UDP_DATA_IN+67 sta IN_YSPEEDLOW+6 lda UDP_DATA_IN+68 sta IN_YSPEEDHIGH+6 lda UDP_DATA_IN+69 sta sprite7color lda UDP_DATA_IN+70 sta sprite7pnt ;-------------------------------------- ldx UDP_DATA_IN+73 ldy UDP_DATA_IN+75 stx sprite8x stx IN_XPOSLOW+7 sty sprite8y sty IN_YPOS+7 lda UDP_DATA_IN+77 sta IN_XSPEEDLOW+7 lda UDP_DATA_IN+78 sta IN_XSPEEDHIGH+7 lda UDP_DATA_IN+79 sta IN_YSPEEDLOW+7 lda UDP_DATA_IN+80 sta IN_YSPEEDHIGH+7 lda UDP_DATA_IN+81 sta sprite8color lda UDP_DATA_IN+82 sta sprite8pnt ;now, calculate MSB for sprites lda #0 ldx UDP_DATA_IN+2 stx IN_XPOSHIGH+1 beq .ahead1 ora #2 .ahead1 ldx UDP_DATA_IN+14 stx IN_XPOSHIGH+2 beq .ahead2 ora #4 .ahead2 ldx UDP_DATA_IN+26 stx IN_XPOSHIGH+3 beq .ahead3 ora #8 .ahead3 ldx UDP_DATA_IN+38 stx IN_XPOSHIGH+4 beq .ahead4 ora #16 .ahead4 ldx UDP_DATA_IN+50 stx IN_XPOSHIGH+5 beq .ahead5 ora #32 .ahead5 ldx UDP_DATA_IN+62 stx IN_XPOSHIGH+6 beq .ahead6 ora #64 .ahead6 ldx UDP_DATA_IN+74 stx IN_XPOSHIGH+7 beq .ahead7 ora #128 .ahead7 ;sta .self+1 ;lda $d010 ;and #1 ;.self ;ora #$ff ;self-mod! ;sta $d010 sta IN_XPOS_D010 ;-------------------------------------- MYUDP_PROCESS_x lda #$01 sta PACKET_RECEIVED rts ; ------------------------------------------------------------------------- ; Do Checksum here CHECKSUM ; lda INPACKET+???? ; A now holds the checksum we received ; sta RCV_CSUM ;Point x:a to start of received packet ;and calculate our own checksum ldx #<(INPACKET+$2A) lda #>(INPACKET+$2A) dey ; So we aren't including the checksum byte itself ; jsr DATACHECKSUM lda CSUM ;sta CSUM_SAVE lda RCV_CSUM cmp CSUM ; Zero bit now contains whether or not checksum matches, use bne/beq rts
18.515337
75
0.602386
f213ffbf124c009a656b8661e44a8454b43f376a
660
asm
Assembly
programs/oeis/019/A019525.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/019/A019525.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/019/A019525.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A019525: Poincaré series [or Poincare series] for depths of roots in a certain root system. ; 2,3,6,12,27,60,138,315,726,1668,3843,8844,20370,46899,108006,248700,572715,1318812,3036954,6993387,16104246,37084404,85397139,196650348,452841762,1042792803,2401318086,5529696492,12733650747,29322740220,67523692458,155491913115,358062990486,824538729828,1898727701283,4372343890764,10068526994610,23185558666899,53391139650726,122947815651420,283121234603595,651964681557852,1501328385368634,3457222430042187,7961207586148086 mov $1,2 lpb $0,1 sub $0,1 mov $2,$1 mul $1,2 sub $1,1 add $1,$3 sub $2,2 mov $4,$3 mov $3,$2 add $3,1 sub $3,$4 lpe
38.823529
427
0.783333
84a4e9cfab9ba8262d5b46a1ad505e5f2378cfda
1,322
asm
Assembly
packages/pips-gfc/gcc-4.4.5/gcc/config/alpha/vms_tramp.asm
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
51
2015-01-31T01:51:39.000Z
2022-02-18T02:01:50.000Z
packages/pips-gfc/gcc-4.4.5/gcc/config/alpha/vms_tramp.asm
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
7
2017-05-29T09:29:00.000Z
2019-03-11T16:01:39.000Z
packages/pips-gfc/gcc-4.4.5/gcc/config/alpha/vms_tramp.asm
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
12
2015-03-26T08:05:38.000Z
2022-02-18T02:01:51.000Z
/* VMS trampoline for nested functions Copyright (C) 2001, 2008, 2009 Free Software Foundation, Inc. Contributed by Douglas B. Rupp (rupp@gnat.com). This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Under Section 7 of GPL version 3, you are granted additional permissions described in the GCC Runtime Library Exception, version 3.1, as published by the Free Software Foundation. You should have received a copy of the GNU General Public License and a copy of the GCC Runtime Library Exception along with this program; see the files COPYING3 and COPYING.RUNTIME respectively. If not, see <http://www.gnu.org/licenses/>. */ ;# Alpha OpenVMS trampoline ;# .set noreorder .set volatile .set noat .text .align 3 .globl __tramp .ent __tramp __tramp..en: .link .align 3 __tramp: .pdesc __tramp..en,null .text ldq $1,24($27) ldq $27,16($27) ldq $28,8($27) jmp $31,($28),0 .end __tramp
28.12766
69
0.75643
01426df247b54f7b3ba4b5a35ea0154d00247909
22,215
asm
Assembly
hires copy.asm
visy/c64demo2017
6ff438f2b331aefec346156ded4f62d437c26652
[ "WTFPL" ]
null
null
null
hires copy.asm
visy/c64demo2017
6ff438f2b331aefec346156ded4f62d437c26652
[ "WTFPL" ]
null
null
null
hires copy.asm
visy/c64demo2017
6ff438f2b331aefec346156ded4f62d437c26652
[ "WTFPL" ]
null
null
null
// // Switch bank in VIC-II // // Args: // bank: bank number to switch to. Valid values: 0-3. // .macro SwitchVICBank(bank) { // // The VIC-II chip can only access 16K bytes at a time. In order to // have it access all of the 64K available, we have to tell it to look // at one of four banks. // // This is controller by bits 0 and 1 in $dd00 (PORT A of CIA #2). // // +------+-------+----------+-------------------------------------+ // | BITS | BANK | STARTING | VIC-II CHIP RANGE | // | | | LOCATION | | // +------+-------+----------+-------------------------------------+ // | 00 | 3 | 49152 | ($C000-$FFFF)* | // | 01 | 2 | 32768 | ($8000-$BFFF) | // | 10 | 1 | 16384 | ($4000-$7FFF)* | // | 11 | 0 | 0 | ($0000-$3FFF) (DEFAULT VALUE) | // +------+-------+----------+-------------------------------------+ .var bits=%11 .if (bank==0) .eval bits=%11 .if (bank==1) .eval bits=%10 .if (bank==2) .eval bits=%01 .if (bank==3) .eval bits=%00 .print "bits=%" + toBinaryString(bits) // // Set Data Direction for CIA #2, Port A to output // lda $dd02 and #%11111100 // Mask the bits we're interested in. ora #$03 // Set bits 0 and 1. sta $dd02 // // Tell VIC-II to switch to bank // lda $dd00 and #%11111100 ora #bits sta $dd00 } // // Enter hires bitmap mode (a.k.a. standard bitmap mode) // .macro SetHiresBitmapMode() { // // Clear extended color mode (bit 6) and set bitmap mode (bit 5) // lda $d011 and #%10111111 ora #%00100000 sta $d011 // // Clear multi color mode (bit 4) // lda $d016 and #%11101111 sta $d016 } .macro ResetStandardBitMapMode() { lda $d011 and #%11011111 sta $d011 } // // Set location of bitmap. // // Args: // address: Address relative to VIC-II bank address. // Valid values: $0000 (bitmap at $0000-$1FFF) // $2000 (bitmap at $2000-$3FFF) // .macro SetBitmapAddress(address) { // // In standard bitmap mode the location of the bitmap area can // be set to either BANK address + $0000 or BANK address + $2000 // // By setting bit 3, we can configure which of the locations to use. // .var bits=0 lda $d018 .if (address == $0000) { and #%11110111 } .if (address == $2000) { ora #%00001000 } sta $d018 } .macro FillBitmap(addr, value) { ldx #$00 lda #value !loop: sta addr,x sta (addr + $100),x sta (addr + $200),x sta (addr + $300),x sta (addr + $400),x sta (addr + $500),x sta (addr + $600),x sta (addr + $700),x sta (addr + $800),x sta (addr + $900),x sta (addr + $a00),x sta (addr + $b00),x sta (addr + $c00),x sta (addr + $d00),x sta (addr + $e00),x sta (addr + $f00),x sta (addr + $1000),x sta (addr + $1100),x sta (addr + $1200),x sta (addr + $1300),x sta (addr + $1400),x sta (addr + $1500),x sta (addr + $1600),x sta (addr + $1700),x sta (addr + $1800),x sta (addr + $1900),x sta (addr + $1a00),x sta (addr + $1b00),x sta (addr + $1c00),x sta (addr + $1d00),x sta (addr + $1e00),x sta (addr + $1f00),x dex bne !loop- } // // Switch location of screen memory. // // Args: // address: Address relative to current VIC-II bank base address. // Valid values: $0000-$3c00. Must be a multiple of $0400. // .macro SetScreenMemory(address) { // // The most significant nibble of $D018 selects where the screen is // located in the current VIC-II bank. // // +------------+-----------------------------+ // | | LOCATION* | // | BITS +---------+-------------------+ // | | DECIMAL | HEX | // +------------+---------+-------------------+ // | 0000XXXX | 0 | $0000 | // | 0001XXXX | 1024 | $0400 (DEFAULT) | // | 0010XXXX | 2048 | $0800 | // | 0011XXXX | 3072 | $0C00 | // | 0100XXXX | 4096 | $1000 | // | 0101XXXX | 5120 | $1400 | // | 0110XXXX | 6144 | $1800 | // | 0111XXXX | 7168 | $1C00 | // | 1000XXXX | 8192 | $2000 | // | 1001XXXX | 9216 | $2400 | // | 1010XXXX | 10240 | $2800 | // | 1011XXXX | 11264 | $2C00 | // | 1100XXXX | 12288 | $3000 | // | 1101XXXX | 13312 | $3400 | // | 1110XXXX | 14336 | $3800 | // | 1111XXXX | 15360 | $3C00 | // +------------+---------+-------------------+ // .var bits = (address / $0400) << 4 lda $d018 and #%00001111 ora #bits sta $d018 } // // Fill screen memory with a value. // // Args: // address: Absolute base address of screen memory. // value: byte value to fill screen memory with // .macro FillScreenMemory(address, value) { // // Screen memory is 40 * 25 = 1000 bytes ($3E8 bytes) // ldx #$00 lda #value !loop: sta address,x sta (address + $100),x sta (address + $200),x dex bne !loop- ldx #$e8 !loop: sta (address + $2ff),x // Start one byte below the area we're clearing // That way we can bail directly when zero without an additional comparison dex bne !loop- } // // Makes program halt until space is pressed. Useful when debugging. // .macro WaitForSpace() { checkdown: lda $dc01 cmp #$ef bne checkdown checkup: lda $dc01 cmp #$ef beq checkup } /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PNGtoHIRES ~~~~~~~~~~ By: TWW/CTR USAGE ~~~~~ :PNGtoHIRES("Filename.png", BitmapMemoryAddress, ScreenMemoryColors) @SIGNATURE void PNGtoHIRES (STR Filename.png ,U16 BitmapMemoryAddress, U16 ScreenMemoryColors) @AUTHOR tww@creators.no @PARAM Filename.png - Filename & path to picture file @PARAM BitmapMemoryAddress - Memorylocation for output of bmp-data @PARAM ScreenMemoryColors - Memorylocation for output of Char-data EXAMPLES ~~~~~~~~ :PNGtoHIRES("something.png", $2000, $2000+8000) NOTES ~~~~~ For now, only handles 320x200 IMPROVEMENTS ~~~~~~~~~~~~ Add variable picture sizes Handle assertions if the format is unsupported (size, color restrictions etc.) TODO ~~~~ BUGS ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ .macro PNGtoHIRES(PNGpicture,BMPData,ColData) { .var Graphics = LoadPicture(PNGpicture) // Graphics RGB Colors. Must be adapted to the graphics .const C64Black = 000 * 65536 + 000 * 256 + 000 .const C64White = 255 * 65536 + 255 * 256 + 255 .const C64Red = 104 * 65536 + 055 * 256 + 043 .const C64Cyan = 112 * 65536 + 164 * 256 + 178 .const C64Purple = 111 * 65536 + 061 * 256 + 134 .const C64Green = 088 * 65536 + 141 * 256 + 067 .const C64Blue = 053 * 65536 + 040 * 256 + 121 .const C64Yellow = 184 * 65536 + 199 * 256 + 111 .const C64L_brown = 111 * 65536 + 079 * 256 + 037 .const C64D_brown = 067 * 65536 + 057 * 256 + 000 .const C64L_red = 154 * 65536 + 103 * 256 + 089 .const C64D_grey = 068 * 65536 + 068 * 256 + 068 .const C64Grey = 108 * 65536 + 108 * 256 + 108 .const C64L_green = 154 * 65536 + 210 * 256 + 132 .const C64L_blue = 108 * 65536 + 094 * 256 + 181 .const C64L_grey = 149 * 65536 + 149 * 256 + 149 // Add the colors neatly into a Hashtable for easy lookup reference .var ColorTable = Hashtable() .eval ColorTable.put(C64Black,0) .eval ColorTable.put(C64White,1) .eval ColorTable.put(C64Red,2) .eval ColorTable.put(C64Cyan,3) .eval ColorTable.put(C64Purple,4) .eval ColorTable.put(C64Green,5) .eval ColorTable.put(C64Blue,6) .eval ColorTable.put(C64Yellow,7) .eval ColorTable.put(C64L_brown,8) .eval ColorTable.put(C64D_brown,9) .eval ColorTable.put(C64L_red,10) .eval ColorTable.put(C64D_grey,11) .eval ColorTable.put(C64Grey,12) .eval ColorTable.put(C64L_green,13) .eval ColorTable.put(C64L_blue,14) .eval ColorTable.put(C64L_grey,15) .pc = BMPData "Hires Bitmap" .var ScreenMem = List() .for (var Line = 0 ; Line < 200 ; Line = Line + 8) { .for (var Block = 0 ; Block < 320 ; Block=Block+8) { .var Coll1 = Graphics.getPixel(Block,Line) .var Coll2 = 0 .for (var j = 0 ; j < 8 ; j++ ) { .var ByteValue = 0 .for (var i = 0 ; i < 8 ; i++ ) { .if (Graphics.getPixel(Block,Line) != Graphics.getPixel(Block+i,Line+j)) .eval ByteValue = ByteValue + pow(2,7-i) .if (Graphics.getPixel(Block,Line) != Graphics.getPixel(Block+i,Line+j)) .eval Coll2 = Graphics.getPixel(Block+i,Line+j) } .byte ByteValue } .var BlockColor = [ColorTable.get(Coll2)]*16+ColorTable.get(Coll1) .eval ScreenMem.add(BlockColor) } } .pc = ColData "Hires Color Data" ScreenMemColors: .for (var i = 0 ; i < 1000 ; i++ ) { .byte ScreenMem.get(i) } } // // Stabilize the IRQ so that the handler function is called exactly when the // line scan begins. // // If an interrupt is registered when the raster reaches a line, an IRQ is // triggered on the first cycle of that line scan. This means that the code we // want to esecute at that line will not be called immediately. There's quite // a lot of housekeeping that needs to be done before we get called. // // What's worse is that it isn't deterministic how many cycles will pass from // when the raster starts at the current line untill we get the call. // // First, the CPU needs to finish its current operation. This can mean a delay // of 0 to 7 cycles, depending on what operation is currently running. // // Then we spend 7+13 cycles invoking the interrupt handler and pushing stuff to // the stack. // // So all in all we're being called between 20 and 27 cycles after the current line // scan begins. // // This macro removes that uncertainty by registering a new irq on the next line, // after that second interrupt is registered, it calls nop's until a line change // should occur. // // Now we know that the cycle type of the current op is only one cycle, so the only // uncertainty left is wether ran one extra cycle or not. We can determine that by // loading and comparing the current raster line ($d012) with itself. If they're not // equal, we switched raster line between the load and the compare -> we're ready to go. // // If they're equal, we haven't switched yet but we know we'll switch at the next cycle. // So we just wait an extra cycle in this case. // .macro StabilizeRaster() { // // Register a new irq handler for the next line. // lda #<stabilizedirq sta $fffe lda #>stabilizedirq sta $ffff inc $d012 // // ACK the current IRQ // lda #$ff sta $d019 // Save the old stack pointer so we can just restore the stack as it was // before the stabilizing got in the way. tsx // Enable interrupts and call nop's until the end of the current line // should be reached cli nop nop nop nop nop nop nop nop // Add one more nop if NTSC // Here's or second irq handler stabilizedirq: // Reset the SP so it looks like the extra irq stuff never happened txs // // Wait for line to finish. // // PAL-63 // NTSC-64 // NTSC-65 //---------//------------//----------- ldx #$08 // ldx #$08 // ldx #$09 dex // dex // dex bne *-1 // bne *-1 // bne *-1 bit $00 // nop // nop // // Check at exactly what point we go to the next line // lda $d012 cmp $d012 beq *+2 // If we haven't changed line yet, wait an extra cycle. // Here our real logic can start running. } .macro RasterInterrupt(address, line) { // // Address to jump to when raster reaches line. // Since we have the kernal banked out, we set the address // of our interrupt routine directly in $fffe-$ffff instead // of in $0314-$0315. // // If the kernal isn't banked out, it will push registers on the stack, // check if the interrupt is caused by a brk instruction, and eventually // call the interrupt function stored in the $0134-$0315 vector. // lda #<address sta $fffe // Instead of $0314 as we have no kernal rom lda #>address sta $ffff // Instead of $0315 as we have no kernal rom // // Configure line to trigger interrupt at // /* .if(line > $ff) { */ lda $d011 ora #%10000000 sta $d011 lda #>line sta $d012 /* } else { */ /* lda $d011 */ /* and #%01111111 */ /* sta $d011 */ /* */ /* lda #line */ /* sta $d012 */ /* } */ } .plugin "se.triad.kickass.CruncherPlugins" .var vic_bank=1 .var vic_base=$4000*vic_bank // A VIC-II bank indicates a 16K region .var screen_memory=$1000 + vic_base .var bitmap_address=$2000 + vic_base .var music = LoadSid("music.sid") /* memory map: $080e - $2fff code $3000 - $4fff music $5000 - $7fff vic1 $8000 -> crunched data */ BasicUpstart2(start) start: jmp start2 .const B2_ZP_BASE = $03 // ByteBoozer Decruncher /HCL May.2003 // B2 Decruncher December 2014 .label zp_base = B2_ZP_BASE .label bits = zp_base .label put = zp_base + 2 .macro B2_DECRUNCH(addr) { ldy #<addr ldx #>addr jsr Decrunch } .macro GetNextBit() { asl bits bne DgEnd jsr GetNewBits DgEnd: } .macro GetLen() { lda #1 GlLoop: :GetNextBit() bcc GlEnd :GetNextBit() rol bpl GlLoop GlEnd: } Decrunch: sty Get1+1 sty Get2+1 sty Get3+1 stx Get1+2 stx Get2+2 stx Get3+2 ldx #0 jsr GetNewBits sty put-1,x cpx #2 bcc *-7 lda #$80 sta bits DLoop: :GetNextBit() bcs Match Literal: // Literal run.. get length. :GetLen() sta LLen+1 ldy #0 LLoop: Get3: lda $feed,x inx bne *+5 jsr GnbInc L1: sta (put),y iny LLen: cpy #0 bne LLoop clc tya adc put sta put bcc *+4 inc put+1 iny beq DLoop // Has to continue with a match.. Match: // Match.. get length. :GetLen() sta MLen+1 // Length 255 -> EOF cmp #$ff beq End // Get num bits cmp #2 lda #0 rol :GetNextBit() rol :GetNextBit() rol tay lda Tab,y beq M8 // Get bits < 8 M_1: :GetNextBit() rol bcs M_1 bmi MShort M8: // Get byte eor #$ff tay Get2: lda $feed,x inx bne *+5 jsr GnbInc jmp Mdone MShort: ldy #$ff Mdone: //clc adc put sta MLda+1 tya adc put+1 sta MLda+2 ldy #$ff MLoop: iny MLda: lda $beef,y sta (put),y MLen: cpy #0 bne MLoop //sec tya adc put sta put bcc *+4 inc put+1 jmp DLoop End: rts GetNewBits: Get1: ldy $feed,x sty bits rol bits inx bne GnbEnd GnbInc: inc Get1+2 inc Get2+2 inc Get3+2 GnbEnd: rts Tab: // Short offsets .byte %11011111 // 3 .byte %11111011 // 6 .byte %00000000 // 8 .byte %10000000 // 10 // Long offsets .byte %11101111 // 4 .byte %11111101 // 7 .byte %10000000 // 10 .byte %11110000 // 13 start2: sei // Turn off interrupts from the two CIA chips. // Used by the kernal to flash cursor and scan // keyboard. lda #$7f sta $dc0d //Turn off CIA 1 interrupts sta $dd0d //Turn off CIA 2 interrupts lda #<nmi_nop sta $fffa lda #>nmi_nop sta $fffb // Reading these registers we ack any pending CIA interrupts. // Otherwise, we might get a trailing interrupt after setup. // Tell VIC-II to start generating raster interrupts lda #$01 sta $d01a //Turn on raster interrupts // Bank out BASIC and KERNAL. // This causes the CPU to see RAM instead of KERNAL and // BASIC ROM at $E000-$FFFF and $A000-$BFFF respectively. // // This causes the CPU to see RAM everywhere except for // $D000-$E000, where the VIC-II, SID, CIA's etc are located. // lda #$35 sta $01 lda #<nmi_nop sta $fffa lda #>nmi_nop sta $fffb lda #$00 sta $dd0e // Stop timer A sta $dd04 // Set timer A to 0, NMI will occure immediately after start sta $dd0e lda #$81 sta $dd0d // Set timer A as source for NMI lda #$01 sta $dd0e // Start timer A -> NMI lda #0 sta $d020 sta $d021 :B2_DECRUNCH(crunch_screen1a) :B2_DECRUNCH(crunch_music) ldx #0 ldy #0 lda #music.startSong //<- Here we get the startsong and init address from the sid file jsr music.init SwitchVICBank(vic_bank) SetHiresBitmapMode() SetScreenMemory(screen_memory - vic_base) SetBitmapAddress(bitmap_address - vic_base) RasterInterrupt(mainirq, $35) cli loop: wait: lda #$ff cmp $d012 bne wait lda frame cmp #$80 bne no_switch lda #0 sta frame inc base lda base cmp #5 bne no_zero lda #0 sta base no_zero: lda $d011 eor #%00010000 sta $d011 lda base cmp #0 beq switch0 cmp #1 beq switch1 cmp #2 beq switch2 cmp #3 beq switch3 bne switch4 switch0: :B2_DECRUNCH(crunch_screen1a) jmp no_switch2 switch1: :B2_DECRUNCH(crunch_screen1b) jmp no_switch2 switch2: :B2_DECRUNCH(crunch_screen1c) jmp no_switch2 switch3: :B2_DECRUNCH(crunch_screen1d) jmp no_switch2 switch4: :B2_DECRUNCH(crunch_screen1e) jmp no_switch2 no_switch2: lda $d011 eor #%00010000 sta $d011 no_switch: jmp loop nmi_nop: // // This is the irq handler for the NMI. Just returns without acknowledge. // This prevents subsequent NMI's from interfering. // rti mainirq: // // Since the kernal is switced off, we need to push the // values of the registers to the stack ourselves so // that they're restored when we're done. // // If we don't do anything advanced like calling cli to let another // irq occur, we don't need to use the stack. // // In that case it's faster to: // // sta restorea+1 // stx restorex+1 // sty restorey+1 // // ... do stuff ... // // lda #$ff // sta $d019 // // restorea: lda #$00 // restorex: ldx #$00 // restorey: ldy #$00 // rti // pha txa pha tya pha // // Stabilize raster using double irq's. StabilizeRaster() inc frame lda frame // sta $d020 jsr music.play // // Reset the raster interrupt since the stabilizing registered another // function. // We can also register another irq for something further down the screen // or at next frame. // RasterInterrupt(mainirq, $35) // // Restore the interrupt condition so that we can get // another one. // lda #$ff sta $d019 //ACK interrupt so it can be called again // // Restore the values of the registers and return. // pla tay pla tax pla rti frame: .byte 0 base: .byte 0 // crunched data .label crunch_music = * .modify B2() { .pc = music.location "Music" .fill music.size, music.getData(i) } .pc=$8000 .label crunch_screen1a = * .modify B2() { :PNGtoHIRES("test.png", bitmap_address, screen_memory) } .label crunch_screen1b = * .modify B2() { :PNGtoHIRES("test_a.png", bitmap_address, screen_memory) } .label crunch_screen1c = * .modify B2() { :PNGtoHIRES("test4.png", bitmap_address, screen_memory) } .label crunch_screen1d = * .modify B2() { :PNGtoHIRES("test5.png", bitmap_address, screen_memory) } .label crunch_screen1e = * .modify B2() { :PNGtoHIRES("test_b.png", bitmap_address, screen_memory) } .print "vic_bank: " + toHexString(vic_bank) .print "vic_base: " + toHexString(vic_base) .print "screen_memory: " + toHexString(screen_memory) .print "bitmap_address: " + toHexString(bitmap_address)
23.835837
145
0.521359
a19c1d59f7590291bb7b4d3dce4e75ddbd736332
295
asm
Assembly
data/wild/maps/RockTunnelB1F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/wild/maps/RockTunnelB1F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/wild/maps/RockTunnelB1F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
RockTunnelB1FWildMons: def_grass_wildmons 15 ; encounter rate db 26, GOLBAT db 27, CUBONE db 27, GRAVELER db 28, MACHOKE db 26, GRAVELER db 28, GOLBAT db 27, MACHOP db 27, ONIX db 29, ONIX db 31, DUGTRIO end_grass_wildmons def_water_wildmons 0 ; encounter rate end_water_wildmons
17.352941
39
0.759322
e1f2c87e61ca59a857107a62fee2526b6d9b3933
6,811
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48.log_21829_2582.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48.log_21829_2582.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48.log_21829_2582.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 %r8 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x12087, %rsi lea addresses_WC_ht+0x19163, %rdi clflush (%rdi) nop nop nop dec %r8 mov $31, %rcx rep movsl nop nop nop dec %rbx lea addresses_D_ht+0x12649, %rcx clflush (%rcx) nop nop nop nop cmp $59398, %rax movb (%rcx), %r15b lfence lea addresses_D_ht+0x12e37, %r8 xor %r15, %r15 mov (%r8), %esi nop nop nop nop nop inc %rsi lea addresses_WC_ht+0x195e7, %rdi nop add %rsi, %rsi movb (%rdi), %r15b cmp %rbx, %rbx lea addresses_WT_ht+0x4f87, %rax nop nop nop nop nop sub $23949, %rbx mov $0x6162636465666768, %rsi movq %rsi, %xmm3 movups %xmm3, (%rax) nop nop nop nop xor $56803, %r8 lea addresses_A_ht+0x12da9, %rsi lea addresses_D_ht+0xa47, %rdi nop xor %r15, %r15 mov $58, %rcx rep movsq nop nop sub %r8, %r8 lea addresses_UC_ht+0x8be7, %rsi lea addresses_UC_ht+0x18e7, %rdi nop nop nop nop nop sub %r13, %r13 mov $104, %rcx rep movsl nop nop dec %r13 lea addresses_normal_ht+0xcc87, %rsi lea addresses_normal_ht+0x2aaf, %rdi nop nop nop add %r15, %r15 mov $105, %rcx rep movsw add %rcx, %rcx lea addresses_D_ht+0x1dda7, %rsi lea addresses_UC_ht+0x1666f, %rdi nop nop nop nop nop sub %rbx, %rbx mov $45, %rcx rep movsb nop cmp %r15, %r15 lea addresses_A_ht+0x19a33, %r13 nop nop nop nop nop sub $38789, %rdi mov $0x6162636465666768, %r8 movq %r8, %xmm5 and $0xffffffffffffffc0, %r13 movaps %xmm5, (%r13) nop nop nop nop nop xor %rcx, %rcx lea addresses_D_ht+0xade7, %r8 nop nop add %rbx, %rbx movw $0x6162, (%r8) nop nop nop and $59605, %rax pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r8 pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r9 push %rbx push %rdi // Faulty Load lea addresses_RW+0xa5e7, %r12 nop nop nop nop nop xor %rdi, %rdi movb (%r12), %r10b lea oracles, %r12 and $0xff, %r10 shlq $12, %r10 mov (%r12,%r10,1), %r10 pop %rdi pop %rbx pop %r9 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 1, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': True, 'congruent': 3, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 2, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': True, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 11, 'size': 2, '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 */
35.473958
2,999
0.660255
ca54b94096dec4b7cae8d4ee5c2bf12c20596cbf
771
asm
Assembly
programs/oeis/155/A155120.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/155/A155120.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/155/A155120.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A155120: a(n) = 2*(n^3 + n^2 + n - 1). ; -2,4,26,76,166,308,514,796,1166,1636,2218,2924,3766,4756,5906,7228,8734,10436,12346,14476,16838,19444,22306,25436,28846,32548,36554,40876,45526,50516,55858,61564,67646,74116,80986,88268,95974,104116,112706,121756,131278,141284,151786,162796,174326,186388,198994,212156,225886,240196,255098,270604,286726,303476,320866,338908,357614,376996,397066,417836,439318,461524,484466,508156,532606,557828,583834,610636,638246,666676,695938,726044,757006,788836,821546,855148,889654,925076,961426,998716,1036958,1076164,1116346,1157516,1199686,1242868,1287074,1332316,1378606,1425956,1474378,1523884,1574486,1626196,1679026,1732988,1788094,1844356,1901786,1960396 add $0,1 mov $1,$0 pow $0,2 add $0,2 sub $1,2 mul $0,$1 mul $0,2 add $0,4
64.25
654
0.788586
a1cc25fc4d2264368f08f90ece1475f174b2afdb
830
asm
Assembly
oeis/165/A165406.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/165/A165406.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/165/A165406.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A165406: Sequence A165404 shown in binary, or equivalently, sequence A163901 in quaternary base. ; Submitted by Christian Krause ; 0,1,100,110,111,10000,10010,10011,11000,11001,11100,11110,11111,1000000,1000010,1000011,1001000,1001001,1001100,1001110,1001111,1100000,1100001,1100100,1100110,1100111,1110000,1110010,1110011,1111000,1111001,1111100,1111110,1111111,100000000,100000010,100000011,100001000,100001001,100001100,100001110,100001111,100100000,100100001,100100100,100100110,100100111,100110000,100110010,100110011,100111000,100111001,100111100,100111110,100111111,110000000,110000001,110000100,110000110,110000111 seq $0,165404 ; The positions of zeros in the top row of A163898 (and A163899). seq $0,7088 ; The binary numbers (or binary words, or binary vectors, or binary expansion of n): numbers written in base 2.
118.571429
493
0.831325
161fdb229cfc9d9886505b4b1cbf9cee40f610fb
1,478
asm
Assembly
header.asm
neri/uefi-tiny
b817e450daf55b08b28c153499a0d11c9816f7c6
[ "Unlicense" ]
1
2021-08-09T16:19:51.000Z
2021-08-09T16:19:51.000Z
header.asm
neri/uefi-tiny
b817e450daf55b08b28c153499a0d11c9816f7c6
[ "Unlicense" ]
null
null
null
header.asm
neri/uefi-tiny
b817e450daf55b08b28c153499a0d11c9816f7c6
[ "Unlicense" ]
null
null
null
org IMAGE_BASE _BEGIN: db 'MZ' ; e_magic - Mark Zbikowski dw 0 _PE: db 'PE', 0, 0 dw 0x8664 ; Machine dw 1 ; NumberOfSections dd 0, 0, 0 ; OBSOLETED dw (_SECTION_HEADER - _OPTIONAL_HEADER) ; SizeOfOptionalHeader dw 0x0002 ; Characteristics - IMAGE_FILE_EXECUTABLE_IMAGE _OPTIONAL_HEADER: dw 0x020B ; PE32+ db 14, 0 ; linker version dd 0, 0, 0 ; SizeOfCode, SizeOfInitializedData, SizeOfUninitializedData - DEPRECATED? dd EfiMain - RVA0 ; AddressOfEntryPoint dd 0 ; BaseOfCode - DEPRECATED? dq IMAGE_BASE ; ImageBase dd 4, 4 ; SectionAlignment | e_lfa_new, FileAlignment dw 6, 0, 0, 0, 6, 0 ; versions dd 0 ; Win32VersionValue - RESERVED dd (_END - _TEXT) + RVA_TEXT, (_END_HEADER - _BEGIN) ; SizeOfImage, SizeOfHeaders dd 0 ; CheckSum dw 0x0A ; Subsystem - IMAGE_SUBSYSTEM_EFI_APPLICATION dw 0 ; DllCharacteristics dq 0x100000, 0x10000, 0x100000, 0x10000 ; SizeOfStackReserve, SizeOfStackCommit, SizeOfHeapReserve, SizeOfHeapCommit dd 0 ; LoaderFlags - RESERVED MBZ dd 6 ; NumberOfRvaAndSizes - 16 formal, 6 OVMF's minimal times 6 dd 0, 0 ; dummy _SECTION_HEADER: db ".text", 0, 0, 0 ; Name dd (_END - _TEXT), RVA_TEXT ; VirtualSize, VirtualAddress dd (_END - _TEXT), _TEXT - _BEGIN ; SizeOfRawData, PointerToRawData dd 0, 0, 0 ; OBSOLETED dd 0x60000020 ; Characteristics - IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ _END_HEADER:
35.190476
120
0.700947
de4967ae367c66a734ae4f8a071e23fdc4f78325
781
asm
Assembly
oeis/101/A101556.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/101/A101556.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/101/A101556.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A101556: A Thue-Morse convolution. ; Submitted by Christian Krause ; 0,1,11,110,1101,11010,110100,1101001,11010011,110100110,1101001100,11010011001,110100110010,1101001100101,11010011001011,110100110010110,1101001100101101,11010011001011010,110100110010110100,1101001100101101001,11010011001011010010,110100110010110100101,1101001100101101001011,11010011001011010010110,110100110010110100101100,1101001100101101001011001,11010011001011010010110011,110100110010110100101100110,1101001100101101001011001101,11010011001011010010110011010,110100110010110100101100110100 seq $0,19300 ; First n elements of Thue-Morse sequence A010060 read as a binary number. seq $0,7088 ; The binary numbers (or binary words, or binary vectors, or binary expansion of n): numbers written in base 2.
111.571429
498
0.871959
20bc5d698b2bd91480c065be665ce19f13feeafa
237
asm
Assembly
programs/oeis/017/A017589.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/017/A017589.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/017/A017589.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A017589: (12n+5)^9. ; 1953125,118587876497,14507145975869,327381934393961,3299763591802133,20711912837890625,95151694449171437,350356403707485209,1093685272684360901,3004041937984268273,7450580596923828125 mul $0,12 add $0,5 pow $0,9
33.857143
185
0.848101
10b72ec5ec3a84f5435194d52562584a83e44153
475
asm
Assembly
examples/test3.asm
takenobu-hs/processor-creative-kit
fa1f1e4ce2d1b1e670e0fd3a7a0ff7dab56f5f4b
[ "BSD-3-Clause" ]
5
2015-01-31T15:28:51.000Z
2020-01-07T13:23:40.000Z
examples/test3.asm
takenobu-hs/processor-creative-kit
fa1f1e4ce2d1b1e670e0fd3a7a0ff7dab56f5f4b
[ "BSD-3-Clause" ]
1
2015-02-05T20:25:46.000Z
2015-02-06T12:47:30.000Z
examples/test3.asm
takenobu-hs/processor-creative-kit
fa1f1e4ce2d1b1e670e0fd3a7a0ff7dab56f5f4b
[ "BSD-3-Clause" ]
null
null
null
/* * example3: for loop structure * sum = 0; * for (i=1; i<=10; i++) {sum = sum + i;} */ /* sum = 0 */ mov r0, 0 # sum = 0 /* for (i=1; i<=10; i++) {sum = sum + i;} */ mov r1, 1 # i = 1; mov r2, 10 # loop condition mov r3, 1 # loop variable incrementer /* loop head */ cmp r1, r2 # flag = compare(i, 10) b gt, 4 # if (flag == gt) goto pc+4 (to halt) add r0, r0, r1 # sum = sum + i add r1, r1, r3 # i++ jmp -4 # goto pc-4 (to loop head) halt
19
48
0.496842
7cddb08af42108d0a42dfee4cfccf252f56a803b
212
asm
Assembly
libsrc/_DEVELOPMENT/l/sccz80/crt0/htons.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/l/sccz80/crt0/htons.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/l/sccz80/crt0/htons.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; ; Small C+ TCP Implementation ; ; htons() Convert host to network format and back again! ; ; djm 24/4/99 SECTION code_l_sccz80 PUBLIC htons htons: ld a,l ld l,h ld h,a ret
11.157895
62
0.589623
9bc360a4bfa0157306d5930699b69858e0043afc
2,657
asm
Assembly
programs/oeis/213/A213834.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/213/A213834.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/213/A213834.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A213834: Antidiagonal sums of the convolution array A213833. ; 1,10,46,140,335,686,1260,2136,3405,5170,7546,10660,14651,19670,25880,33456,42585,53466,66310,81340,98791,118910,141956,168200,197925,231426,269010,310996,357715,409510,466736,529760,598961,674730,757470,847596,945535,1051726,1166620,1290680,1424381,1568210,1722666,1888260,2065515,2254966,2457160,2672656,2902025,3145850,3404726,3679260,3970071,4277790,4603060,4946536,5308885,5690786,6092930,6516020,6960771,7427910,7918176,8432320,8971105,9535306,10125710,10743116,11388335,12062190,12765516,13499160,14263981,15060850,15890650,16754276,17652635,18586646,19557240,20565360,21611961,22698010,23824486,24992380,26202695,27456446,28754660,30098376,31488645,32926530,34413106,35949460,37536691,39175910,40868240,42614816,44416785,46275306,48191550,50166700,52201951,54298510,56457596,58680440,60968285,63322386,65744010,68234436,70794955,73426870,76131496,78910160,81764201,84694970,87703830,90792156,93961335,97212766,100547860,103968040,107474741,111069410,114753506,118528500,122395875,126357126,130413760,134567296,138819265,143171210,147624686,152181260,156842511,161610030,166485420,171470296,176566285,181775026,187098170,192537380,198094331,203770710,209568216,215488560,221533465,227704666,234003910,240432956,246993575,253687550,260516676,267482760,274587621,281833090,289221010,296753236,304431635,312258086,320234480,328362720,336644721,345082410,353677726,362432620,371349055,380429006,389674460,399087416,408669885,418423890,428351466,438454660,448735531,459196150,469838600,480664976,491677385,502877946,514268790,525852060,537629911,549604510,561778036,574152680,586730645,599514146,612505410,625706676,639120195,652748230,666593056,680656960,694942241,709451210,724186190,739149516,754343535,769770606,785433100,801333400,817473901,833857010,850485146,867360740,884486235,901864086,919496760,937386736,955536505,973948570,992625446,1011569660,1030783751,1050270270,1070031780,1090070856,1110390085,1130992066,1151879410,1173054740,1194520691,1216279910,1238335056,1260688800,1283343825,1306302826,1329568510,1353143596,1377030815,1401232910,1425752636,1450592760,1475756061,1501245330,1527063370,1553212996,1579697035,1606518326,1633679720,1661184080,1689034281,1717233210,1745783766,1774688860,1803951415,1833574366,1863560660,1893913256,1924635125,1955729250 mov $12,$0 mov $14,$0 add $14,1 lpb $14,1 clr $0,12 mov $0,$12 sub $14,1 sub $0,$14 mov $9,$0 mov $11,$0 add $11,1 lpb $11,1 mov $0,$9 sub $11,1 sub $0,$11 mov $1,$0 mov $5,$0 pow $5,2 mul $5,6 add $1,$5 add $1,1 add $10,$1 lpe add $13,$10 lpe mov $1,$13
88.566667
2,277
0.835529
f3f4c1aa59dcefbc2e052dced43f7cebc34c987b
4,030
asm
Assembly
Lab_5/Code/ex2.asm
nickbel7/ntua-microprocessors-systems
f39c7a8b9a68ff47ca6c6564c283abf1af8083e7
[ "MIT" ]
null
null
null
Lab_5/Code/ex2.asm
nickbel7/ntua-microprocessors-systems
f39c7a8b9a68ff47ca6c6564c283abf1af8083e7
[ "MIT" ]
null
null
null
Lab_5/Code/ex2.asm
nickbel7/ntua-microprocessors-systems
f39c7a8b9a68ff47ca6c6564c283abf1af8083e7
[ "MIT" ]
null
null
null
;========== EXERCISE 2 ========== INCLUDE MACROS.ASM DATA_SEG SEGMENT NEWLINE DB 0AH,0DH,'$' DATA_SEG ENDS CODE_SEG SEGMENT ASSUME CS:CODE_SEG, DS:DATA_SEG ;========== PART 1 ========== MAIN PROC FAR MOV AX,DATA_SEG MOV DS,AX START: MOV BX,0 ; routine for 1st decimal number CALL DEC_KEYB ; read 1st digit MOV BL,10 ; multiply 1st digit x 10 MUL BL MOV BL,AL ; store 1st number in BL CALL DEC_KEYB ; read 2nd digit ADD AL,BL ; add two numbers MOV BL,AL ; store sum in BL ; routine for 2nd decimal number CALL DEC_KEYB ; read 1st digit MOV CL,10 ; multiply 1st digit x 10 MUL CL MOV CL,AL ; store 1st number in CL CALL DEC_KEYB ; read 2nd digit ADD AL,CL ; add two numbers MOV CL,AL ; store sum in CL PRINT 'Z' ; printing routine PRINT '=' MOV DL,BL CALL PRINT_DEC PRINT ' ' PRINT 'W' PRINT '=' MOV DL,CL CALL PRINT_DEC PRINT_STR NEWLINE ;========== PART 2 ========== ; calculate sum MOV AX,0 MOV AL,BL ADD AX,CX PRINT 'Z' PRINT '+' PRINT 'W' PRINT '=' MOV DX,AX CALL PRINT_HEX PRINT 'H' ; calculate diff PRINT ' ' PRINT 'Z' PRINT '-' PRINT 'W' PRINT '=' MOV AX,0 CMP BL,CL JAE POSITIVE_DIF SUB CX,BX PRINT '-' MOV DL,CL JMP PRINT_DIF POSITIVE_DIF: SUB BX,CX MOV DL,BL PRINT_DIF: CALL PRINT_HEX PRINT 'H' JMP START MAIN ENDP ;========== SUPLEMENTARY ROUTINES ========== ;========== READ DECIMAL NUMBER ========== DEC_KEYB PROC NEAR PUSH DX IGNORE: READ CMP AL,'Q' JE ADDR2 CMP AL,30H JL IGNORE CMP AL,39H JG IGNORE PUSH AX POP AX SUB AL,30H ADDR2: POP DX RET DEC_KEYB ENDP ;========== PRINT DECIMAL NUMBER (DL) ========== PRINT_DEC PROC NEAR PUSH AX ; save registers PUSH CX PUSH DX MOV CX,1 ; initialize digit counter MOV AL,DL MOV DL,10 LD: MOV AH,0 ; divide number by 10 DIV DL PUSH AX ; save CMP AL,0 ; if quot = 0, start printing JE PRNT_10 INC CX ; increase counter (aka digits number) JMP LD ; repeat dividing quotients by 10 PRNT_10: POP AX ; get digit MOV AL,AH MOV AH,0 ADD AX,'0' ; ASCII coded PRINT AL ; print LOOP PRNT_10 ; repeat till no more digits POP DX POP CX ; restore registers POP AX RET PRINT_DEC ENDP ;========== PRINT DECIMAL NUMBER (DX) ========== PRINT_DEC_2 PROC NEAR PUSH AX ; save registers PUSH BX PUSH CX PUSH DX MOV CX,1 ; initialize digit counter MOV AX,DX MOV BX,10 LD_2: MOV DX,0 DIV BX PUSH DX ; save CMP AX,0 ; if quot = 0, start printing JE PRNT_10_2 INC CX ; increase counter (aka digits number) JMP LD_2 ; repeat dividing quotients by 10 PRNT_10_2: POP DX ; get digit MOV AL,DL MOV AH,0 ADD AX,'0' ; ASCII coded PRINT AL ; print LOOP PRNT_10_2 ; repeat till no more digits POP DX POP CX ; restore registers POP BX POP AX RET PRINT_DEC_2 ENDP ;========== PRINT HEXIMAL NUMBER (DL) ========== PRINT_HEX PROC NEAR PUSH AX MOV AL,DL SAR AL,4 AND AL,0FH ; isolate 4 MSB ADD AL,30H ; ASCII code it CMP AL,39H JLE NEX ADD AL,07H ; if it's a letter, fix ASCII NEX: CMP AL,'0' JE DONT_PRINT_IT PRINT AL ; print the first hex digit DONT_PRINT_IT: MOV AL,DL AND AL,0FH ; isolate 4 LSB ADD AL,30H ; ASCII code it CMP AL,39H JLE OK ADD AL,07H ; if it's a letter, fix ASCII OK: PRINT AL ; print the second hex digit POP AX RET PRINT_HEX ENDP CODE_SEG ENDS END MAIN
18.831776
55
0.534491
27f0634cf96743436670c256550fde6701baa6c1
944
asm
Assembly
tests/macro_examples/make_djnz_dot_assemble.asm
cizo2000/sjasmplus
615d7c0e09a44aa2a923095fc9ed6dca6ecae4a4
[ "BSD-3-Clause" ]
220
2016-10-22T19:44:39.000Z
2022-03-29T20:57:04.000Z
tests/macro_examples/make_djnz_dot_assemble.asm
ped7g/sjasmplus
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
[ "BSD-3-Clause" ]
153
2018-05-07T10:31:23.000Z
2022-03-30T04:35:59.000Z
tests/macro_examples/make_djnz_dot_assemble.asm
ped7g/sjasmplus
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
[ "BSD-3-Clause" ]
51
2016-05-12T21:27:36.000Z
2022-03-27T15:16:16.000Z
;; while trying to compile one larger legacy code written with Zeus syntax on mind, ;; I run into lines "DJNZ .", which are basically the same thing as "DJNZ $" in sjasmplus ;; To avoid editing whole file and replacing those on each occurence, I managed to get ;; them fixed by defining this macro at beginning of the file: ;; fix "DJNZ ." to "DJNZ $" MACRO DJNZ arg0? DEFINE .._arg0? IFDEF .._. djnz $ ELSE djnz arg0? ENDIF IFDEF .._ ;; extra test for "$" argument, that one produces ".._" define UNDEFINE .._ ELSE UNDEFINE .._arg0? ENDIF ENDM ;; let's see it in action OrdinaryLabelDjnz DJNZ OrdinaryLabelDjnz DJNZ $ ;; sjasmplus syntax DJNZ . ;; Zeus syntax, will be corrected by the macro "DJNZ" djnz $ ;; avoid macro by using lowercase :D
31.466667
90
0.572034
34765ada7d5bb0b57dda171787af46a776b3dd96
488
asm
Assembly
programs/oeis/070/A070864.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/070/A070864.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/070/A070864.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A070864: a(1) = a(2) = 1; a(n) = 2 + a(n - a(n-1)). ; 1,1,3,3,3,5,3,5,5,5,7,5,7,5,7,7,7,9,7,9,7,9,7,9,9,9,11,9,11,9,11,9,11,9,11,11,11,13,11,13,11,13,11,13,11,13,11,13,13,13,15,13,15,13,15,13,15,13,15,13,15,13,15,15,15,17,15,17,15,17,15,17,15,17,15,17,15,17,15,17,17,17,19,17,19,17,19,17,19,17,19,17,19,17,19,17,19,17,19,19 mov $2,2 lpb $0 sub $0,$2 mov $2,$0 max $2,0 seq $2,1650 ; n appears n times (n odd). mov $3,$2 min $3,1 add $1,$3 lpe mul $1,2 add $1,1 mov $0,$1
28.705882
271
0.559426
a192c174a365b1f600d85d1b27c1ff4a0456a1c3
760
asm
Assembly
oeis/106/A106838.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/106/A106838.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/106/A106838.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A106838: Numbers n such that n, n+1 and n+2 have odd part of form 4k+3. ; Submitted by Jon Maiga ; 22,46,54,86,94,110,118,150,174,182,190,214,222,238,246,278,302,310,342,350,366,374,382,406,430,438,446,470,478,494,502,534,558,566,598,606,622,630,662,686,694,702,726,734,750,758,766,790,814,822,854,862,878,886,894,918,942,950,958,982,990,1006,1014,1046,1070,1078,1110,1118,1134,1142,1174,1198,1206,1214,1238,1246,1262,1270,1302,1326,1334,1366,1374,1390,1398,1406,1430,1454,1462,1470,1494,1502,1518,1526,1534,1558,1582,1590,1622,1630 mov $2,$0 add $0,1 add $2,2 pow $2,2 lpb $2 mov $3,$1 seq $3,89013 ; a(n) = (A088567(8n) mod 2). sub $0,$3 add $1,1 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 sub $2,1 lpe mov $0,$1 sub $0,3 mul $0,8 add $0,22
31.666667
435
0.678947
5fde4aad598d5d4e804e352ee029cb507ac2443f
668
asm
Assembly
oeis/070/A070199.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/070/A070199.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/070/A070199.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A070199: Number of palindromes of length <= n. ; Submitted by Jon Maiga ; 10,19,109,199,1099,1999,10999,19999,109999,199999,1099999,1999999,10999999,19999999,109999999,199999999,1099999999,1999999999,10999999999,19999999999,109999999999,199999999999,1099999999999,1999999999999,10999999999999,19999999999999,109999999999999,199999999999999,1099999999999999,1999999999999999,10999999999999999,19999999999999999,109999999999999999,199999999999999999,1099999999999999999,1999999999999999999,10999999999999999999,19999999999999999999,109999999999999999999,199999999999999999999 mov $1,$0 mod $0,2 add $0,1 lpb $1 mul $0,10 add $0,2 sub $1,2 lpe mul $0,9 add $0,1
44.533333
501
0.841317
61fd720cc1f2681cc799751293bec75e3f27741a
6,422
asm
Assembly
Library/Chart/Series/seriesArea.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Chart/Series/seriesArea.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Chart/Series/seriesArea.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: seriesArea.asm AUTHOR: Chris Boyke METHODS: Name Description ---- ----------- FUNCTIONS: Scope Name Description ----- ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 2/26/92 Initial version. DESCRIPTION: $Id: seriesArea.asm,v 1.1 97/04/04 17:47:11 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AreaRealize %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: PASS: *ds:si = AreaClass object ds:di = AreaClass instance data es = Segment of AreaClass. RETURN: DESTROYED: nothing REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 2/26/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AreaRealize method dynamic AreaClass, MSG_CHART_OBJECT_REALIZE locals local SeriesDrawLocalVars uses ax,cx,dx .enter inherit ; Set the pointer to the beginning of the block clr locals.SDLV_pointer clr locals.SDLV_numPoints ; calculate the points for the current series mov cl, locals.SDLV_seriesNum mov locals.SDLV_callback, offset AreaSetPoint call SeriesDrawEachCategory ; Now, get data for prev series -- going in reverse. mov locals.SDLV_callback, offset AreaSetPrevPoint call SeriesDrawEachCategoryRV ; Draw and fill the polygon mov bx, locals.SDLV_points mov ax, MGIT_ADDRESS call MemGetInfo mov_tr cx, ax clr dx ; cx:dx - points mov bx, locals.SDLV_categoryCount shl bx call AreaCreateOrUpdatePolyline test locals.SDLV_flags, mask CF_SERIES_TITLES jz removeTitle call AreaDrawTitle jmp done removeTitle: mov cx, CODT_TEXT call ChartObjectDualClearGrObj done: inc locals.SDLV_seriesNum .leave mov di, offset AreaClass GOTO ObjCallSuperNoLock AreaRealize endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AreaDrawTitle %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Draw the series title in the center of the polygon CALLED BY: AreaRealize PASS: *ds:si - area object ss:bp - local vars RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: left = GetCategoryPosition(0) right = GetCategoryPosition(categoryCount-1) top = GetValuePosition(seriesNum, (categoryCount-1)/2) bottom = GetValuePosition(seriesNum-1, (categoryCount-1)/2) KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 1/14/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AreaDrawTitle proc near uses ax,bx,cx,dx,di,si,bp locals local SeriesDrawLocalVars .enter inherit ; ; calculate y-position ; mov cl, locals.SDLV_seriesNum mov dx, locals.SDLV_categoryCount shr dx, 1 call SeriesGetValuePosition mov_tr bx, ax dec cl call SeriesGetValuePosition add bx, ax shr bx, 1 ; vertical position clr dx call SeriesGetCategoryPosition ; left push ax mov dx, locals.SDLV_categoryCount dec dx call SeriesGetCategoryPosition ; right mov cx, ax ; right pop ax ; left add ax, cx shr ax mov cl, TAT_CENTER call DualDrawSeriesOrCategoryTitle .leave ret AreaDrawTitle endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AreaCreateOrUpdatePolyline %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: create or update the polyline grobj for this area object CALLED BY: AreaRealize PASS: *ds:si - area object ss:bp - local vars RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 5/21/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AreaCreateOrUpdatePolyline proc near uses cx,ax locals local SeriesDrawLocalVars .enter inherit sub sp, size CreatePolylineParams mov di, sp call SeriesSetCreateGrObjParams mov ss:[di].CPP_flags, mask CPF_CLOSED mov ss:[di].CPP_markerShape, MS_NONE mov cx, CODT_PICTURE call ChartObjectDualGetGrObj call SeriesCreateOrUpdatePolyline call ChartObjectDualSetGrObj add sp, size CreatePolylineParams .leave ret AreaCreateOrUpdatePolyline endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AreaSetPoint %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the current point in the data block. If the current point doesn't exist, set the previous point. CALLED BY: AreaRealize via SeriesDrawEachCategory PASS: ss:bp - local vars cl - series # dx - category # RETURN: nothing DESTROYED: ax,bx,cx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- cdb 9/15/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AreaSetPoint proc near inc cl GOTO AreaSetPrevPoint AreaSetPoint endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AreaSetPrevPoint %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the Previous point in the data block CALLED BY: AreaRealize via SeriesDrawEachCategoryRV PASS: ss:bp - local vars cl - series # dx - category # RETURN: nothing DESTROYED: ax,bx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- cdb 9/15/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AreaSetPrevPoint proc near .enter call SeriesGetZeroPosition ; ax <- prev value position mov_tr bx, ax call SeriesGetCategoryPosition call SetPointCommon .leave ret AreaSetPrevPoint endp
20.387302
71
0.564777
0d7849ee1c1dc378262e0713ee6dde064c7cb72b
1,379
asm
Assembly
source/init/term.asm
re0ah/shell-asm-linux
aa3351f785b2906369e8bb1e8165b924d3018252
[ "Unlicense" ]
null
null
null
source/init/term.asm
re0ah/shell-asm-linux
aa3351f785b2906369e8bb1e8165b924d3018252
[ "Unlicense" ]
null
null
null
source/init/term.asm
re0ah/shell-asm-linux
aa3351f785b2906369e8bb1e8165b924d3018252
[ "Unlicense" ]
null
null
null
%define STDIN_FILENO 0 %define TCGETS 0x5401 %define TCSETS 0x5402 %define __KERNEL_NCCS 19 struc __kernel_termios c_iflag resd 1 ;input mode flags c_oflag resd 1 ;output mode flags c_cflag resd 1 ;control mode flags c_lflag resd 1 ;local mode flags c_line resb 1 ;line discipline c_cc resb __KERNEL_NCCS ;control characters endstruc %define __KERNEL_TERMIOS_SIZE 36 ;in bytes section .bss default_kernel_termios resb 36 section .code ;---------------------------------------------------------------- term_init: sub rsp, __KERNEL_TERMIOS_SIZE mov rdi, STDIN_FILENO mov rsi, TCGETS mov rdx, rsp mov rax, 0x10 ;ioctl syscall ;save default kernel_termios value mov rdi, default_kernel_termios mov rsi, rsp mov rcx, 9 ;36/4 rep movsd mov eax, dword[rsp + 12] ;c_lflag and eax, 0x0fffffff5 ;&= ~(ICANON | ECHO) mov dword[rsp + 12], eax mov rdi, STDIN_FILENO mov rsi, TCSETS mov rdx, rsp mov rax, 0x10 ;ioctl syscall add rsp, __KERNEL_TERMIOS_SIZE ret ;---------------------------------------------------------------- ;---------------------------------------------------------------- term_to_default: mov rdi, STDIN_FILENO mov rsi, TCSETS mov rdx, default_kernel_termios mov rax, 0x10 ;ioctl syscall ret ;----------------------------------------------------------------
23.775862
65
0.577955
e311627f1d4b302b557da9ef7a8fd884d3688b56
481
asm
Assembly
asm/por_skip_emblem_drawing.asm
Iemnur/DSVEdit
1f52feb6de8a47c7d223a17d739e69bb40aedd3f
[ "MIT" ]
70
2017-02-25T15:06:47.000Z
2022-03-16T03:05:35.000Z
asm/por_skip_emblem_drawing.asm
Iemnur/DSVEdit
1f52feb6de8a47c7d223a17d739e69bb40aedd3f
[ "MIT" ]
58
2017-03-12T21:34:50.000Z
2022-01-31T17:22:36.000Z
asm/por_skip_emblem_drawing.asm
Iemnur/DSVEdit
1f52feb6de8a47c7d223a17d739e69bb40aedd3f
[ "MIT" ]
26
2017-03-04T16:35:13.000Z
2021-11-24T20:52:19.000Z
.nds .relativeinclude on .erroronwarning on .open "ftc/overlay9_25", 022D7900h ; Skip the screen where the player has to draw an emblem and press OK when starting a new game. .org 0x022DAAB0 ; Code in the name entry menu after you finished typing in your name that would normally take you to the emblem drawing screen next. mov r11, 19h ; We set the return value to 0x19, which is the state for the scrolling prologue introduction. nop nop nop nop nop nop .close
25.315789
148
0.754678
8cd66a19c35cc8e714d508605af264c45e2d07e4
659
asm
Assembly
scripts/celadondiner2.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
16
2018-08-28T21:47:01.000Z
2022-02-20T20:29:59.000Z
scripts/celadondiner2.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
5
2019-04-03T19:53:11.000Z
2022-03-11T22:49:34.000Z
scripts/celadondiner2.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
2
2019-12-09T19:46:02.000Z
2020-12-05T21:36:30.000Z
Func_f1f31: CheckEvent EVENT_GOT_COIN_CASE jr nz, .asm_eb14d ld hl, CeladonDinerText_491a7 call PrintText lb bc, COIN_CASE, 1 call GiveItem jr nc, .BagFull SetEvent EVENT_GOT_COIN_CASE ld hl, ReceivedCoinCaseText call PrintText jr .asm_68b61 .BagFull ld hl, CoinCaseNoRoomText call PrintText jr .asm_68b61 .asm_eb14d ld hl, CeladonDinerText_491b7 call PrintText .asm_68b61 ret CeladonDinerText_491a7: TX_FAR _CeladonDinerText_491a7 db "@" ReceivedCoinCaseText: TX_FAR _ReceivedCoinCaseText TX_SFX_KEY_ITEM db "@" CoinCaseNoRoomText: TX_FAR _CoinCaseNoRoomText db "@" CeladonDinerText_491b7: TX_FAR _CeladonDinerText_491b7 db "@"
16.897436
31
0.805766
cbd3b83583551f68787886d804c3b619970360f1
647
asm
Assembly
programs/oeis/051/A051624.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/051/A051624.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/051/A051624.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A051624: 12-gonal (or dodecagonal) numbers: a(n) = n*(5*n-4). ; 0,1,12,33,64,105,156,217,288,369,460,561,672,793,924,1065,1216,1377,1548,1729,1920,2121,2332,2553,2784,3025,3276,3537,3808,4089,4380,4681,4992,5313,5644,5985,6336,6697,7068,7449,7840,8241,8652,9073,9504,9945,10396,10857,11328,11809,12300,12801,13312,13833,14364,14905,15456,16017,16588,17169,17760,18361,18972,19593,20224,20865,21516,22177,22848,23529,24220,24921,25632,26353,27084,27825,28576,29337,30108,30889,31680,32481,33292,34113,34944,35785,36636,37497,38368,39249,40140,41041,41952,42873,43804,44745,45696,46657,47628,48609 mov $1,5 mul $1,$0 sub $1,4 mul $1,$0 mov $0,$1
71.888889
533
0.768161
980cb98c2191e19072bccc98aa55d07b24f9094b
1,855
asm
Assembly
smsq/gold/ser/rxen.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
smsq/gold/ser/rxen.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
smsq/gold/ser/rxen.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; SER receive enable / disable V2.00  1994 Tony Tebby section ser xdef ser_rxen xdef ser_iopr xdef ser_rxdi xref iob_room xref ql_hcmdn include 'dev8_keys_k' include 'dev8_mac_assert' include 'dev8_keys_par' include 'dev8_keys_sys' include 'dev8_keys_buf' ;+++ ; SER input operation ; ; a3 c p SER linkage block ; all other egisters preserved ; status returned according to D0 ;--- ser_iopr tst.b prd_iact(a3) ; already ready? beq.s sio_room ; ... no, must be xon / xoff tst.l d0 rts sio_room move.l d0,-(sp) move.l prd_ibuf(a3),d0 ; any buffer? ble.s srxe_exd0 ; ... no, unusual this move.l a2,-(sp) move.l d0,a2 jsr iob_room ; enough room cmp.l prd_room(a3),d0 move.l (sp)+,a2 ble.s srxe_exd0 ; ... no srxe_xon move.b #k.xon,prd_xonf(a3) ; set xon char to be sent srxe_exd0 move.l (sp)+,d0 rts ;+++ ; SER receive enable. ; ; a3 c p SER linkage block ; all other egisters preserved ; status returned according to D0 ;--- ser_rxen move.l d0,-(sp) move.l a2,-(sp) tst.b prd_hand(a3) ble.s srxe_ena move.b #k.xon,prd_xonf(a3) ; set xon char to be sent srxe_ena move.l prc_ibuf(a0),a2 add.w #buf_eoff,a2 ; 'queue' st prd_iact(a3) ; ready now moveq #1,d0 ; rx enable -1 ser_cmd movem.l d1/d2/a4/a5,-(sp) moveq #0,d1 move.b prd_serx(a3),d1 add.b d1,d0 ; command lsl.w #2,d1 lea -4(a6,d1.w),a5 move.l a2,sys_qls1r(a5) ; set 'queue' pointer move.w sr,-(sp) or.w #$0700,sr jsr ql_hcmdn ; send nibble move.w (sp)+,sr movem.l (sp)+,d1/d2/a4/a5 move.l (sp)+,a2 move.l (sp)+,d0 rts ;+++ ; SER receive disable. ; ; a3 c p SER linkage block ; all other registers preserved ; status returned according to D0 ;--- ser_rxdi move.l d0,-(sp) move.l a2,-(sp) sub.l a2,a2 ; no queue moveq #3,d0 ; rx disable -1 sf prd_iact(a3) ; not ready now bra.s ser_cmd end
18.009709
58
0.659299
ea8b8beff00ca684aeab29f9bf71a34641a9bcf6
171
asm
Assembly
libsrc/stdio/z9001/conio_vars.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/stdio/z9001/conio_vars.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/stdio/z9001/conio_vars.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; ; Shared variables between the VT100 and VT52 engines MODULE conio_vars SECTION data_clib PUBLIC __z9001_attr .__z9001_attr defb $70 ; White on Black
15.545455
53
0.725146
b0f241d17b648322a55c0cd3de0f35bec9e7d654
7,382
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1352.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1352.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1352.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r8 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x11e08, %rbx add %rdi, %rdi mov $0x6162636465666768, %r12 movq %r12, (%rbx) dec %rbx lea addresses_WC_ht+0xc448, %rbp nop nop nop nop dec %rcx mov (%rbp), %rbx nop nop nop nop nop add $53677, %r12 lea addresses_A_ht+0x86b6, %r8 cmp $33714, %r14 movups (%r8), %xmm1 vpextrq $1, %xmm1, %rcx nop nop xor %r8, %r8 lea addresses_UC_ht+0x7786, %rsi lea addresses_WC_ht+0xce7e, %rdi add %r8, %r8 mov $123, %rcx rep movsb and %rbx, %rbx lea addresses_WC_ht+0x6a8, %rsi clflush (%rsi) nop and %rcx, %rcx mov $0x6162636465666768, %r8 movq %r8, (%rsi) nop nop nop nop nop xor %r8, %r8 lea addresses_UC_ht+0x19848, %rsi lea addresses_normal_ht+0x1a588, %rdi clflush (%rsi) nop nop and %r8, %r8 mov $38, %rcx rep movsq nop nop nop and $3644, %rcx lea addresses_A_ht+0x1ab08, %r12 cmp $30402, %r8 mov (%r12), %r14w xor %r8, %r8 lea addresses_WT_ht+0xb6e8, %rbx sub $2103, %rdi movl $0x61626364, (%rbx) nop nop nop and $8050, %rdi lea addresses_WT_ht+0x16928, %rbx nop and $4992, %r8 movw $0x6162, (%rbx) add $28375, %r14 lea addresses_UC_ht+0xa1c8, %rsi lea addresses_WC_ht+0x1a4c8, %rdi nop add %rbp, %rbp mov $2, %rcx rep movsb nop and $33916, %rcx lea addresses_WT_ht+0x1a48, %rcx nop nop nop inc %r14 mov (%rcx), %si nop nop nop nop sub %rdi, %rdi lea addresses_WT_ht+0x13c48, %rbx add $64417, %r8 mov $0x6162636465666768, %rcx movq %rcx, %xmm3 movups %xmm3, (%rbx) nop nop nop nop cmp $43676, %r8 lea addresses_A_ht+0x8c48, %rsi lea addresses_WC_ht+0x1c466, %rdi nop nop nop nop sub %r12, %r12 mov $104, %rcx rep movsw nop and $1794, %r8 pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r8 push %rbp push %rdx push %rsi // Store lea addresses_A+0x1e418, %rsi sub %r8, %r8 movw $0x5152, (%rsi) nop nop nop sub %r10, %r10 // Faulty Load lea addresses_UC+0x6848, %r8 clflush (%r8) nop nop nop nop nop dec %rbp movb (%r8), %dl lea oracles, %r11 and $0xff, %rdx shlq $12, %rdx mov (%r11,%rdx,1), %rdx pop %rsi pop %rdx pop %rbp pop %r8 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_UC', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_A', 'size': 2, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_UC', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False}} {'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False}} {'src': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}} {'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': True}} {'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}} {'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}} {'37': 21829} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
37.282828
2,999
0.654701
cd812d415cf8652e3861018092c4337b8ecf4826
270
asm
Assembly
data/battle/ai/constant_damage_effects.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
data/battle/ai/constant_damage_effects.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
data/battle/ai/constant_damage_effects.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
; AIDamageCalc uses BattleCommand_ConstantDamage ; to calculate damage for these instead of ; BattleCommand_DamageCalc and BattleCommand_Stab. ConstantDamageEffects: db EFFECT_SUPER_FANG db EFFECT_STATIC_DAMAGE db EFFECT_LEVEL_DAMAGE db EFFECT_PSYWAVE db -1 ; end
24.545455
50
0.844444
07cb7f18aa6eef2165a94541c5e7319816dd70dd
589
asm
Assembly
programs/oeis/128/A128218.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/128/A128218.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/128/A128218.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A128218: First differences of A128217. ; 1,3,1,3,1,1,5,1,1,1,5,1,1,1,1,7,1,1,1,1,1,7,1,1,1,1,1,1,9,1,1,1,1,1,1,1,9,1,1,1,1,1,1,1,1,11,1,1,1,1,1,1,1,1,1,11,1,1,1,1,1,1,1,1,1,1,13,1,1,1,1,1,1,1,1,1,1,1,13,1,1,1,1,1,1,1,1,1,1,1,1,15,1,1,1,1,1,1,1,1,1,1,1 mov $6,$0 mov $7,2 lpb $7 sub $7,1 add $0,$7 sub $0,1 add $4,$0 mov $2,$4 add $2,1 cal $2,128217 ; Nonnegative integers n such that the square-root of n differs from its nearest integer by less than 1/4. mov $3,$7 mov $4,$5 mov $8,$2 lpb $3 mov $1,$8 sub $3,1 lpe lpe lpb $6 sub $1,$8 mov $6,0 lpe
22.653846
212
0.560272
a96bc80dc00e359c1cbf48312233176281e4db79
825
asm
Assembly
spec/input_files/BasicLoop/BasicLoop.asm
nekootoko3/hack_vm_translator
fdfa23390bdee797ba73ecda8f00182c9e24d4e5
[ "MIT" ]
null
null
null
spec/input_files/BasicLoop/BasicLoop.asm
nekootoko3/hack_vm_translator
fdfa23390bdee797ba73ecda8f00182c9e24d4e5
[ "MIT" ]
null
null
null
spec/input_files/BasicLoop/BasicLoop.asm
nekootoko3/hack_vm_translator
fdfa23390bdee797ba73ecda8f00182c9e24d4e5
[ "MIT" ]
null
null
null
@256 D=A @SP M=D @300 D=A @LCL M=D @400 D=A @ARG M=D @3000 D=A @THIS M=D @3010 D=A @THAT M=D @RETURN_0 D=A @SP A=M M=D @SP M=M+1 @LCL D=M @SP A=M M=D @SP M=M+1 @ARG D=M @SP A=M M=D @SP M=M+1 @THIS D=M @SP A=M M=D @SP M=M+1 @THAT D=M @SP A=M M=D @SP M=M+1 @SP D=M D=D-1 D=D-1 D=D-1 D=D-1 D=D-1 @ARG M=D @SP D=M @LCL M=D @Sys.init 0;JMP (RETURN_0) @0 D=A @SP A=M M=D @SP M=M+1 @SP A=M-1 D=M @LCL A=M M=D @SP M=M-1 (LOOP_START) @ARG A=M D=M @SP A=M M=D @SP M=M+1 @LCL A=M D=M @SP A=M M=D @SP M=M+1 @SP A=M-1 D=M @SP M=M-1 @SP A=M-1 M=M+D @SP A=M-1 D=M @LCL A=M M=D @SP M=M-1 @ARG A=M D=M @SP A=M M=D @SP M=M+1 @1 D=A @SP A=M M=D @SP M=M+1 @SP A=M-1 D=M @SP M=M-1 @SP A=M-1 M=M-D @SP A=M-1 D=M @ARG A=M M=D @SP M=M-1 @ARG A=M D=M @SP A=M M=D @SP M=M+1 @SP A=M-1 D=M @SP M=M-1 @LOOP_START D;JNE @LCL A=M D=M @SP A=M M=D @SP M=M+1
4.741379
12
0.53697
a117a88d282a9b659772a713136f714cad0bc09e
29,914
asm
Assembly
fiat-amd64/243.45_ratio07873_seed2606129114143455_mul_p448_solinas.asm
dderjoel/fiat-crypto
57a9612577d766a0ae83169ea9517bfa7f01ea4e
[ "BSD-1-Clause", "Apache-2.0", "MIT-0", "MIT" ]
491
2015-11-25T23:44:39.000Z
2022-03-29T17:31:21.000Z
fiat-amd64/243.45_ratio07873_seed2606129114143455_mul_p448_solinas.asm
dderjoel/fiat-crypto
57a9612577d766a0ae83169ea9517bfa7f01ea4e
[ "BSD-1-Clause", "Apache-2.0", "MIT-0", "MIT" ]
755
2016-02-02T14:03:05.000Z
2022-03-31T16:47:23.000Z
fiat-amd64/243.45_ratio07873_seed2606129114143455_mul_p448_solinas.asm
dderjoel/fiat-crypto
57a9612577d766a0ae83169ea9517bfa7f01ea4e
[ "BSD-1-Clause", "Apache-2.0", "MIT-0", "MIT" ]
117
2015-10-25T16:28:15.000Z
2022-02-08T23:01:09.000Z
SECTION .text GLOBAL mul_p448_solinas mul_p448_solinas: sub rsp, 0x3e0 ; last 0x30 (6) for Caller - save regs mov [ rsp + 0x3b0 ], rbx; saving to stack mov [ rsp + 0x3b8 ], rbp; saving to stack mov [ rsp + 0x3c0 ], r12; saving to stack mov [ rsp + 0x3c8 ], r13; saving to stack mov [ rsp + 0x3d0 ], r14; saving to stack mov [ rsp + 0x3d8 ], r15; saving to stack mov rax, rdx; preserving value of arg2 into a new reg mov rdx, [ rdx + 0x20 ]; saving arg2[4] in rdx. mulx r10, r11, [ rsi + 0x38 ]; x32, x31<- arg1[7] * arg2[4] mov rdx, [ rax + 0x38 ]; arg2[7] to rdx mulx rbx, rbp, [ rsi + 0x20 ]; x62, x61<- arg1[4] * arg2[7] mov rdx, [ rax + 0x28 ]; arg2[5] to rdx mulx r12, r13, [ rsi + 0x30 ]; x44, x43<- arg1[6] * arg2[5] mov rdx, [ rsi + 0x0 ]; arg1[0] to rdx mulx r14, r15, [ rax + 0x18 ]; x190, x189<- arg1[0] * arg2[3] xor rcx, rcx adox r11, r13 mov rdx, [ rax + 0x10 ]; arg2[2] to rdx mulx r8, r9, [ rsi + 0x8 ]; x176, x175<- arg1[1] * arg2[2] mov rdx, [ rax + 0x8 ]; arg2[1] to rdx mulx r13, rcx, [ rsi + 0x10 ]; x164, x163<- arg1[2] * arg2[1] mov rdx, [ rax + 0x30 ]; arg2[6] to rdx mov [ rsp + 0x0 ], rdi; spilling out1 to mem mov [ rsp + 0x8 ], r14; spilling x190 to mem mulx rdi, r14, [ rsi + 0x28 ]; x54, x53<- arg1[5] * arg2[6] adcx r11, r14 adox r12, r10 adcx rdi, r12 xor r10, r10 adox r11, rbp mov rdx, [ rsi + 0x18 ]; arg1[3] to rdx mulx rbp, r14, [ rax + 0x0 ]; x154, x153<- arg1[3] * arg2[0] adcx r11, r14 adox rbx, rdi adcx rbp, rbx test al, al adox r11, rcx adox r13, rbp mov rdx, [ rsi + 0x10 ]; arg1[2] to rdx mulx rcx, r12, [ rax + 0x10 ]; x162, x161<- arg1[2] * arg2[2] mov rdx, [ rax + 0x8 ]; arg2[1] to rdx mulx rdi, r14, [ rsi + 0x18 ]; x152, x151<- arg1[3] * arg2[1] mov rdx, [ rax + 0x38 ]; arg2[7] to rdx mulx rbx, rbp, [ rsi + 0x8 ]; x124, x123<- arg1[1] * arg2[7] adcx r11, r9 mov rdx, [ rsi + 0x20 ]; arg1[4] to rdx mulx r9, r10, [ rax + 0x0 ]; x144, x143<- arg1[4] * arg2[0] adcx r8, r13 add r11, r15; could be done better, if r0 has been u8 as well mov rdx, [ rsi + 0x8 ]; arg1[1] to rdx mulx r15, r13, [ rax + 0x18 ]; x174, x173<- arg1[1] * arg2[3] mov rdx, [ rax + 0x20 ]; arg2[4] to rdx mov [ rsp + 0x10 ], r15; spilling x174 to mem mov [ rsp + 0x18 ], rcx; spilling x162 to mem mulx r15, rcx, [ rsi + 0x0 ]; x188, x187<- arg1[0] * arg2[4] mov rdx, [ rax + 0x28 ]; arg2[5] to rdx mov [ rsp + 0x20 ], r15; spilling x188 to mem mov [ rsp + 0x28 ], rdi; spilling x152 to mem mulx r15, rdi, [ rsi + 0x18 ]; x118, x117<- arg1[3] * arg2[5] mov rdx, [ rax + 0x38 ]; arg2[7] to rdx mov [ rsp + 0x30 ], r9; spilling x144 to mem mov [ rsp + 0x38 ], rbx; spilling x124 to mem mulx r9, rbx, [ rsi + 0x28 ]; x52, x51<- arg1[5] * arg2[7] adcx r8, [ rsp + 0x8 ] mov rdx, [ rsi + 0x10 ]; arg1[2] to rdx mov [ rsp + 0x40 ], r15; spilling x118 to mem mov [ rsp + 0x48 ], r9; spilling x52 to mem mulx r15, r9, [ rax + 0x30 ]; x122, x121<- arg1[2] * arg2[6] mov rdx, [ rax + 0x28 ]; arg2[5] to rdx mov [ rsp + 0x50 ], r15; spilling x122 to mem mov [ rsp + 0x58 ], rcx; spilling x187 to mem mulx r15, rcx, [ rsi + 0x38 ]; x18, x17<- arg1[7] * arg2[5] mov rdx, [ rax + 0x30 ]; arg2[6] to rdx mov [ rsp + 0x60 ], r15; spilling x18 to mem mov [ rsp + 0x68 ], r13; spilling x173 to mem mulx r15, r13, [ rsi + 0x30 ]; x22, x21<- arg1[6] * arg2[6] mov rdx, [ rax + 0x20 ]; arg2[4] to rdx mov [ rsp + 0x70 ], r15; spilling x22 to mem mov [ rsp + 0x78 ], r12; spilling x161 to mem mulx r15, r12, [ rsi + 0x20 ]; x112, x111<- arg1[4] * arg2[4] mov [ rsp + 0x80 ], r15; spilling x112 to mem mov r15, r11; x225, copying x221 here, cause x221 is needed in a reg for other than x225, namely all: , x225, x226, size: 2 shrd r15, r8, 56; x225 <- x223||x221 >> 56 test al, al adox rcx, r13 mov rdx, [ rsi + 0x38 ]; arg1[7] to rdx mulx r8, r13, [ rax + 0x28 ]; x30, x29<- arg1[7] * arg2[5] mov rdx, [ rsi + 0x38 ]; arg1[7] to rdx mov [ rsp + 0x88 ], r8; spilling x30 to mem mov [ rsp + 0x90 ], r15; spilling x225 to mem mulx r8, r15, [ rax + 0x8 ]; x88, x87<- arg1[7] * arg2[1] mov rdx, [ rax + 0x38 ]; arg2[7] to rdx mov [ rsp + 0x98 ], r8; spilling x88 to mem mov [ rsp + 0xa0 ], r14; spilling x151 to mem mulx r8, r14, [ rsi + 0x28 ]; x24, x23<- arg1[5] * arg2[7] mov rdx, [ rax + 0x18 ]; arg2[3] to rdx mov [ rsp + 0xa8 ], r8; spilling x24 to mem mov [ rsp + 0xb0 ], r10; spilling x143 to mem mulx r8, r10, [ rsi + 0x28 ]; x104, x103<- arg1[5] * arg2[3] adcx rcx, r14 setc r14b; spill CF x388 to reg (r14) clc; adcx rcx, r13 mov rdx, [ rax + 0x30 ]; arg2[6] to rdx mov [ rsp + 0xb8 ], r8; spilling x104 to mem mulx r13, r8, [ rsi + 0x30 ]; x42, x41<- arg1[6] * arg2[6] mov rdx, [ rsi + 0x30 ]; arg1[6] to rdx mov [ rsp + 0xc0 ], r13; spilling x42 to mem mov byte [ rsp + 0xc8 ], r14b; spilling byte x388 to mem mulx r13, r14, [ rax + 0x10 ]; x96, x95<- arg1[6] * arg2[2] mov [ rsp + 0xd0 ], r13; spilling x96 to mem setc r13b; spill CF x392 to reg (r13) clc; adcx rcx, r8 seto r8b; spill OF x384 to reg (r8) mov byte [ rsp + 0xd8 ], r13b; spilling byte x392 to mem mov r13, -0x2 ; moving imm to reg inc r13; OF<-0x0, preserve CF (debug: 6; load -2, increase it, save as -1) adox rcx, rbx setc bl; spill CF x396 to reg (rbx) clc; adcx rcx, r15 setc r15b; spill CF x404 to reg (r15) clc; adcx rcx, r14 setc r14b; spill CF x408 to reg (r14) clc; adcx rcx, r10 seto r10b; spill OF x400 to reg (r10) inc r13; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0)) adox rcx, r12 setc r12b; spill CF x412 to reg (r12) clc; adcx rcx, rdi seto dil; spill OF x416 to reg (rdi) mov byte [ rsp + 0xe0 ], r12b; spilling byte x412 to mem mov r12, -0x3 ; moving imm to reg inc r12; OF<-0x0, preserve CF (debug 7; load -3, increase it, save it as -2). #last resort adox rcx, r9 setc r9b; spill CF x420 to reg (r9) clc; adcx rcx, rbp mov rdx, [ rax + 0x20 ]; arg2[4] to rdx mulx rbp, r13, [ rsi + 0x38 ]; x82, x81<- arg1[7] * arg2[4] mov rdx, [ rsi + 0x8 ]; arg1[1] to rdx mov byte [ rsp + 0xe8 ], r9b; spilling byte x420 to mem mulx r12, r9, [ rax + 0x30 ]; x168, x167<- arg1[1] * arg2[6] mov rdx, [ rax + 0x18 ]; arg2[3] to rdx mov byte [ rsp + 0xf0 ], dil; spilling byte x416 to mem mov byte [ rsp + 0xf8 ], r14b; spilling byte x408 to mem mulx rdi, r14, [ rsi + 0x20 ]; x138, x137<- arg1[4] * arg2[3] mov rdx, [ rsi + 0x28 ]; arg1[5] to rdx mov byte [ rsp + 0x100 ], r15b; spilling byte x404 to mem mov byte [ rsp + 0x108 ], r10b; spilling byte x400 to mem mulx r15, r10, [ rax + 0x10 ]; x132, x131<- arg1[5] * arg2[2] mov byte [ rsp + 0x110 ], bl; spilling byte x396 to mem setc bl; spill CF x428 to reg (rbx) clc; adcx rcx, [ rsp + 0xb0 ] mov rdx, [ rax + 0x38 ]; arg2[7] to rdx mov byte [ rsp + 0x118 ], bl; spilling byte x428 to mem mov [ rsp + 0x120 ], r12; spilling x168 to mem mulx rbx, r12, [ rsi + 0x0 ]; x182, x181<- arg1[0] * arg2[7] mov [ rsp + 0x128 ], rbx; spilling x182 to mem seto bl; spill OF x424 to reg (rbx) mov [ rsp + 0x130 ], r12; spilling x181 to mem mov r12, -0x2 ; moving imm to reg inc r12; OF<-0x0, preserve CF (debug: 6; load -2, increase it, save as -1) adox rcx, [ rsp + 0xa0 ] mov rdx, [ rax + 0x20 ]; arg2[4] to rdx mov byte [ rsp + 0x138 ], bl; spilling byte x424 to mem mulx r12, rbx, [ rsi + 0x18 ]; x146, x145<- arg1[3] * arg2[4] mov [ rsp + 0x140 ], r9; spilling x167 to mem seto r9b; spill OF x436 to reg (r9) mov [ rsp + 0x148 ], r12; spilling x146 to mem mov r12, -0x2 ; moving imm to reg inc r12; OF<-0x0, preserve CF (debug: 6; load -2, increase it, save as -1) adox rcx, [ rsp + 0x78 ] setc r12b; spill CF x432 to reg (r12) clc; adcx rcx, [ rsp + 0x68 ] mov rdx, [ rax + 0x8 ]; arg2[1] to rdx mov byte [ rsp + 0x150 ], r9b; spilling byte x436 to mem mov byte [ rsp + 0x158 ], r12b; spilling byte x432 to mem mulx r9, r12, [ rsi + 0x30 ]; x128, x127<- arg1[6] * arg2[1] mov rdx, [ rsi + 0x28 ]; arg1[5] to rdx mov [ rsp + 0x160 ], rdi; spilling x138 to mem mov [ rsp + 0x168 ], r15; spilling x132 to mem mulx rdi, r15, [ rax + 0x30 ]; x98, x97<- arg1[5] * arg2[6] mov [ rsp + 0x170 ], r9; spilling x128 to mem setc r9b; spill CF x444 to reg (r9) clc; adcx rcx, [ rsp + 0x58 ] mov rdx, [ rsi + 0x30 ]; arg1[6] to rdx mov byte [ rsp + 0x178 ], r9b; spilling byte x444 to mem mov byte [ rsp + 0x180 ], r8b; spilling byte x384 to mem mulx r9, r8, [ rax + 0x28 ]; x90, x89<- arg1[6] * arg2[5] mov [ rsp + 0x188 ], rbx; spilling x145 to mem seto bl; spill OF x440 to reg (rbx) mov [ rsp + 0x190 ], r14; spilling x137 to mem mov r14, -0x2 ; moving imm to reg inc r14; OF<-0x0, preserve CF (debug: 6; load -2, increase it, save as -1) adox r13, r8 setc r8b; spill CF x448 to reg (r8) clc; adcx r13, r15 mov rdx, [ rax + 0x38 ]; arg2[7] to rdx mulx r15, r14, [ rsi + 0x20 ]; x106, x105<- arg1[4] * arg2[7] mov rdx, [ rax + 0x28 ]; arg2[5] to rdx mov byte [ rsp + 0x198 ], r8b; spilling byte x448 to mem mov byte [ rsp + 0x1a0 ], bl; spilling byte x440 to mem mulx r8, rbx, [ rsi + 0x10 ]; x156, x155<- arg1[2] * arg2[5] mov rdx, [ rsi + 0x38 ]; arg1[7] to rdx mov [ rsp + 0x1a8 ], r8; spilling x156 to mem mov [ rsp + 0x1b0 ], rbx; spilling x155 to mem mulx r8, rbx, [ rax + 0x0 ]; x126, x125<- arg1[7] * arg2[0] adox r9, rbp mov rbp, -0x2 ; moving imm to reg inc rbp; OF<-0x0, preserve CF (debug: 6; load -2, increase it, save as -1) adox rcx, [ rsp + 0x90 ] setc bpl; spill CF x232 to reg (rbp) clc; adcx r13, r14 setc r14b; spill CF x236 to reg (r14) clc; adcx r13, rbx setc bl; spill CF x240 to reg (rbx) clc; adcx r13, r12 movzx rbp, bpl lea rdi, [ rdi + r9 ] lea rdi, [ rdi + rbp ] setc r12b; spill CF x244 to reg (r12) clc; adcx r13, r10 movzx r14, r14b lea r15, [ r15 + rdi ] lea r15, [ r15 + r14 ] seto r10b; spill OF x560 to reg (r10) mov rbp, -0x2 ; moving imm to reg inc rbp; OF<-0x0, preserve CF (debug: 6; load -2, increase it, save as -1) adox r13, [ rsp + 0x190 ] movzx rbx, bl lea r8, [ r8 + r15 ] lea r8, [ r8 + rbx ] seto r9b; spill OF x252 to reg (r9) inc rbp; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0)) adox r13, [ rsp + 0x188 ] mov r14, [ rsp + 0x60 ]; load m64 x18 to register64 movzx rbx, byte [ rsp + 0x180 ]; load byte memx384 to register64 lea r14, [ rbx + r14 ] mov rbx, [ rsp + 0x70 ] lea r14, [rbx+r14] movzx r12, r12b lea r8, [ r12 + r8 ] mov r12, [ rsp + 0x170 ] lea r8, [r12+r8] adcx r8, [ rsp + 0x168 ] movzx r9, r9b lea r8, [ r9 + r8 ] mov r9, [ rsp + 0x160 ] lea r8, [r9+r8] adox r8, [ rsp + 0x148 ] add r13, [ rsp + 0x1b0 ]; could be done better, if r0 has been u8 as well adcx r8, [ rsp + 0x1a8 ] xor rbx, rbx adox r13, [ rsp + 0x140 ] adcx r13, [ rsp + 0x130 ] adox r8, [ rsp + 0x120 ] adcx r8, [ rsp + 0x128 ] mov rbp, r13; x562, copying x267 here, cause x267 is needed in a reg for other than x562, namely all: , x563, x562, size: 2 shrd rbp, r8, 56; x562 <- x269||x267 >> 56 sar byte [ rsp + 0xc8 ], 1 adcx r14, [ rsp + 0xa8 ] sar byte [ rsp + 0xd8 ], 1 adcx r14, [ rsp + 0x88 ] sar byte [ rsp + 0x110 ], 1 adcx r14, [ rsp + 0xc0 ] sar byte [ rsp + 0x108 ], 1 adcx r14, [ rsp + 0x48 ] sar byte [ rsp + 0x100 ], 1 adcx r14, [ rsp + 0x98 ] sar byte [ rsp + 0xf8 ], 1 adcx r14, [ rsp + 0xd0 ] mov rdx, [ rax + 0x8 ]; arg2[1] to rdx mulx r12, rdi, [ rsi + 0x20 ]; x142, x141<- arg1[4] * arg2[1] sar byte [ rsp + 0xe0 ], 1 adcx r14, [ rsp + 0xb8 ] sar byte [ rsp + 0xf0 ], 1 adcx r14, [ rsp + 0x80 ] sar byte [ rsp + 0xe8 ], 1 adcx r14, [ rsp + 0x40 ] mov rdx, [ rax + 0x10 ]; arg2[2] to rdx mulx r15, r9, [ rsi + 0x18 ]; x150, x149<- arg1[3] * arg2[2] sar byte [ rsp + 0x138 ], 1 adcx r14, [ rsp + 0x50 ] mov rdx, [ rax + 0x38 ]; arg2[7] to rdx mulx r8, rbx, [ rsi + 0x10 ]; x120, x119<- arg1[2] * arg2[7] mov rdx, [ rax + 0x20 ]; arg2[4] to rdx mov [ rsp + 0x1b8 ], r15; spilling x150 to mem mov [ rsp + 0x1c0 ], r12; spilling x142 to mem mulx r15, r12, [ rsi + 0x8 ]; x172, x171<- arg1[1] * arg2[4] sar byte [ rsp + 0x118 ], 1 adcx r14, [ rsp + 0x38 ] mov rdx, [ rsi + 0x38 ]; arg1[7] to rdx mov [ rsp + 0x1c8 ], r15; spilling x172 to mem mov [ rsp + 0x1d0 ], r8; spilling x120 to mem mulx r15, r8, [ rax + 0x10 ]; x86, x85<- arg1[7] * arg2[2] mov rdx, [ rax + 0x18 ]; arg2[3] to rdx mov [ rsp + 0x1d8 ], r12; spilling x171 to mem mov [ rsp + 0x1e0 ], r9; spilling x149 to mem mulx r12, r9, [ rsi + 0x10 ]; x160, x159<- arg1[2] * arg2[3] sar byte [ rsp + 0x158 ], 1 adcx r14, [ rsp + 0x30 ] sar byte [ rsp + 0x150 ], 1 adcx r14, [ rsp + 0x28 ] sar byte [ rsp + 0x1a0 ], 1 adcx r14, [ rsp + 0x18 ] mov [ rsp + 0x1e8 ], r12; spilling x160 to mem mov r12, rbp; x564, copying x562 here, cause x562 is needed in a reg for other than x564, namely all: , x569--x570, x564--x565, size: 2 adox r12, rcx movzx rcx, byte [ rsp + 0x178 ]; load byte memx444 to register64 lea r14, [ rcx + r14 ] mov rcx, [ rsp + 0x10 ] lea r14, [rcx+r14] mov rdx, [ rsi + 0x28 ]; arg1[5] to rdx mov [ rsp + 0x1f0 ], r9; spilling x159 to mem mulx rcx, r9, [ rax + 0x0 ]; x136, x135<- arg1[5] * arg2[0] mov [ rsp + 0x1f8 ], rcx; spilling x136 to mem movzx rcx, byte [ rsp + 0x198 ]; load byte memx448 to register64 lea r14, [ rcx + r14 ] mov rcx, [ rsp + 0x20 ] lea r14, [rcx+r14] mov rdx, [ rax + 0x18 ]; arg2[3] to rdx mov [ rsp + 0x200 ], r15; spilling x86 to mem mulx rcx, r15, [ rsi + 0x30 ]; x94, x93<- arg1[6] * arg2[3] mov rdx, [ rax + 0x20 ]; arg2[4] to rdx mov [ rsp + 0x208 ], rcx; spilling x94 to mem mov [ rsp + 0x210 ], rdi; spilling x141 to mem mulx rcx, rdi, [ rsi + 0x28 ]; x102, x101<- arg1[5] * arg2[4] mov [ rsp + 0x218 ], rcx; spilling x102 to mem movzx rcx, r10b; x561, copying x560 here, cause x560 is needed in a reg for other than x561, namely all: , x561, size: 1 lea rcx, [ rcx + r14 ] mov r10, 0x0 ; moving imm to reg adox rcx, r10 mov rdx, [ rax + 0x28 ]; arg2[5] to rdx mulx r14, r10, [ rsi + 0x0 ]; x186, x185<- arg1[0] * arg2[5] mov rdx, [ rax + 0x30 ]; arg2[6] to rdx mov [ rsp + 0x220 ], r11; spilling x221 to mem mov [ rsp + 0x228 ], r14; spilling x186 to mem mulx r11, r14, [ rsi + 0x38 ]; x16, x15<- arg1[7] * arg2[6] mov rdx, [ rax + 0x28 ]; arg2[5] to rdx mov [ rsp + 0x230 ], r10; spilling x185 to mem mov [ rsp + 0x238 ], r9; spilling x135 to mem mulx r10, r9, [ rsi + 0x20 ]; x110, x109<- arg1[4] * arg2[5] mov rdx, [ rax + 0x38 ]; arg2[7] to rdx mov [ rsp + 0x240 ], r10; spilling x110 to mem mov [ rsp + 0x248 ], rbx; spilling x119 to mem mulx r10, rbx, [ rsi + 0x30 ]; x20, x19<- arg1[6] * arg2[7] mov [ rsp + 0x250 ], r11; spilling x16 to mem mov r11, r12; x567, copying x564 here, cause x564 is needed in a reg for other than x567, namely all: , x568, x567, size: 2 shrd r11, rcx, 56; x567 <- x566||x564 >> 56 test al, al adox r14, rbx mov rdx, [ rsi + 0x30 ]; arg1[6] to rdx mulx rcx, rbx, [ rax + 0x38 ]; x40, x39<- arg1[6] * arg2[7] mov rdx, [ rax + 0x30 ]; arg2[6] to rdx mov [ rsp + 0x258 ], r11; spilling x567 to mem mov [ rsp + 0x260 ], rcx; spilling x40 to mem mulx r11, rcx, [ rsi + 0x38 ]; x28, x27<- arg1[7] * arg2[6] adcx r14, rcx setc cl; spill CF x328 to reg (rcx) clc; adcx r14, rbx setc bl; spill CF x332 to reg (rbx) clc; adcx r14, r8 setc r8b; spill CF x336 to reg (r8) clc; adcx r14, r15 setc r15b; spill CF x340 to reg (r15) clc; adcx r14, rdi mov rdx, [ rax + 0x30 ]; arg2[6] to rdx mov byte [ rsp + 0x268 ], r15b; spilling byte x340 to mem mulx rdi, r15, [ rsi + 0x18 ]; x116, x115<- arg1[3] * arg2[6] mov [ rsp + 0x270 ], rdi; spilling x116 to mem setc dil; spill CF x344 to reg (rdi) clc; adcx r14, r9 setc r9b; spill CF x348 to reg (r9) clc; adcx r14, r15 adox r10, [ rsp + 0x250 ] mov r15, -0x2 ; moving imm to reg inc r15; OF<-0x0, preserve CF (debug: 6; load -2, increase it, save as -1) adox r14, [ rsp + 0x248 ] movzx rcx, cl lea r11, [ r11 + r10 ] lea r11, [ r11 + rcx ] movzx rbx, bl lea r11, [ rbx + r11 ] mov rbx, [ rsp + 0x260 ] lea r11, [rbx+r11] setc cl; spill CF x352 to reg (rcx) clc; adcx r14, [ rsp + 0x238 ] setc bl; spill CF x360 to reg (rbx) clc; adcx r14, [ rsp + 0x210 ] movzx r8, r8b lea r11, [ r8 + r11 ] mov r8, [ rsp + 0x200 ] lea r11, [r8+r11] movzx r8, byte [ rsp + 0x268 ]; load byte memx340 to register64 lea r11, [ r8 + r11 ] mov r8, [ rsp + 0x208 ] lea r11, [r8+r11] setc r8b; spill CF x364 to reg (r8) clc; adcx r14, [ rsp + 0x1e0 ] movzx rdi, dil lea r11, [ rdi + r11 ] mov rdi, [ rsp + 0x218 ] lea r11, [rdi+r11] movzx r9, r9b lea r11, [ r9 + r11 ] mov r9, [ rsp + 0x240 ] lea r11, [r9+r11] setc dil; spill CF x368 to reg (rdi) clc; adcx r14, [ rsp + 0x1f0 ] movzx rcx, cl lea r11, [ rcx + r11 ] mov rcx, [ rsp + 0x270 ] lea r11, [rcx+r11] setc r9b; spill CF x372 to reg (r9) clc; adcx r14, [ rsp + 0x1d8 ] adox r11, [ rsp + 0x1d0 ] inc r15; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0)) adox r14, [ rsp + 0x230 ] mov rdx, [ rsi + 0x0 ]; arg1[0] to rdx mulx rcx, r10, [ rax + 0x30 ]; x184, x183<- arg1[0] * arg2[6] mov rdx, [ rax + 0x10 ]; arg2[2] to rdx mov [ rsp + 0x278 ], rcx; spilling x184 to mem mulx r15, rcx, [ rsi + 0x20 ]; x140, x139<- arg1[4] * arg2[2] movzx rbx, bl lea r11, [ rbx + r11 ] mov rbx, [ rsp + 0x1f8 ] lea r11, [rbx+r11] movzx r8, r8b lea r11, [ r8 + r11 ] mov r8, [ rsp + 0x1c0 ] lea r11, [r8+r11] movzx rdi, dil lea r11, [ rdi + r11 ] mov rdi, [ rsp + 0x1b8 ] lea r11, [rdi+r11] movzx r9, r9b lea r11, [ r9 + r11 ] mov r9, [ rsp + 0x1e8 ] lea r11, [r9+r11] mov rdx, [ rsi + 0x38 ]; arg1[7] to rdx mulx rbx, r8, [ rax + 0x18 ]; x84, x83<- arg1[7] * arg2[3] mov rdx, [ rsi + 0x8 ]; arg1[1] to rdx mulx rdi, r9, [ rax + 0x28 ]; x170, x169<- arg1[1] * arg2[5] adcx r11, [ rsp + 0x1c8 ] mov rdx, [ rsi + 0x18 ]; arg1[3] to rdx mov [ rsp + 0x280 ], r10; spilling x183 to mem mov [ rsp + 0x288 ], rdi; spilling x170 to mem mulx r10, rdi, [ rax + 0x38 ]; x114, x113<- arg1[3] * arg2[7] mov rdx, [ rax + 0x30 ]; arg2[6] to rdx mov [ rsp + 0x290 ], r9; spilling x169 to mem mov [ rsp + 0x298 ], r15; spilling x140 to mem mulx r9, r15, [ rsi + 0x20 ]; x108, x107<- arg1[4] * arg2[6] adox r11, [ rsp + 0x228 ] mov rdx, [ rsi + 0x28 ]; arg1[5] to rdx mov [ rsp + 0x2a0 ], rcx; spilling x139 to mem mov [ rsp + 0x2a8 ], r10; spilling x114 to mem mulx rcx, r10, [ rax + 0x8 ]; x134, x133<- arg1[5] * arg2[1] add r14, [ rsp + 0x258 ]; could be done better, if r0 has been u8 as well mov rdx, [ rsi + 0x30 ]; arg1[6] to rdx mov [ rsp + 0x2b0 ], rcx; spilling x134 to mem mov [ rsp + 0x2b8 ], r10; spilling x133 to mem mulx rcx, r10, [ rax + 0x0 ]; x130, x129<- arg1[6] * arg2[0] mov rdx, [ rsi + 0x38 ]; arg1[7] to rdx mov [ rsp + 0x2c0 ], rcx; spilling x130 to mem mov [ rsp + 0x2c8 ], r10; spilling x129 to mem mulx rcx, r10, [ rax + 0x38 ]; x26, x25<- arg1[7] * arg2[7] adc r11, 0x0 mov rdx, [ rsi + 0x30 ]; arg1[6] to rdx mov [ rsp + 0x2d0 ], r9; spilling x108 to mem mov [ rsp + 0x2d8 ], rdi; spilling x113 to mem mulx r9, rdi, [ rax + 0x20 ]; x92, x91<- arg1[6] * arg2[4] mov rdx, [ rax + 0x38 ]; arg2[7] to rdx mov [ rsp + 0x2e0 ], r15; spilling x107 to mem mov [ rsp + 0x2e8 ], r9; spilling x92 to mem mulx r15, r9, [ rsi + 0x38 ]; x14, x13<- arg1[7] * arg2[7] mov [ rsp + 0x2f0 ], rdi; spilling x91 to mem mov rdi, r14; x580, copying x572 here, cause x572 is needed in a reg for other than x580, namely all: , x580, x581, size: 2 shrd rdi, r11, 56; x580 <- x574||x572 >> 56 test al, al adox r9, r10 mov rdx, [ rsi + 0x18 ]; arg1[3] to rdx mulx r10, r11, [ rax + 0x18 ]; x148, x147<- arg1[3] * arg2[3] adox rcx, r15 adcx r9, r8 adcx rbx, rcx add r9, [ rsp + 0x2f0 ]; could be done better, if r0 has been u8 as well mov rdx, [ rsi + 0x28 ]; arg1[5] to rdx mulx r8, r15, [ rax + 0x28 ]; x100, x99<- arg1[5] * arg2[5] adcx rbx, [ rsp + 0x2e8 ] test al, al adox r9, r15 adox r8, rbx adcx r9, [ rsp + 0x2e0 ] mov rcx, -0x2 ; moving imm to reg inc rcx; OF<-0x0, preserve CF (debug: 6; load -2, increase it, save as -1) adox r9, [ rsp + 0x2d8 ] adcx r8, [ rsp + 0x2d0 ] mov rdx, [ rsi + 0x10 ]; arg1[2] to rdx mulx r15, rbx, [ rax + 0x20 ]; x158, x157<- arg1[2] * arg2[4] clc; adcx r9, [ rsp + 0x2c8 ] adox r8, [ rsp + 0x2a8 ] adcx r8, [ rsp + 0x2c0 ] xor rcx, rcx adox r9, [ rsp + 0x2b8 ] mov rdx, [ rax + 0x30 ]; arg2[6] to rdx mov [ rsp + 0x2f8 ], rdi; spilling x580 to mem mulx rcx, rdi, [ rsi + 0x10 ]; x78, x77<- arg1[2] * arg2[6] adox r8, [ rsp + 0x2b0 ] adcx r9, [ rsp + 0x2a0 ] adcx r8, [ rsp + 0x298 ] test al, al adox r9, r11 adcx r9, rbx seto r11b; spill OF x308 to reg (r11) mov rbx, -0x2 ; moving imm to reg inc rbx; OF<-0x0, preserve CF (debug: 6; load -2, increase it, save as -1) adox r9, [ rsp + 0x290 ] movzx r11, r11b lea r10, [ r10 + r8 ] lea r10, [ r10 + r11 ] adcx r15, r10 adox r15, [ rsp + 0x288 ] add r9, [ rsp + 0x280 ]; could be done better, if r0 has been u8 as well inc rbx; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0)) adox r9, [ rsp + 0x2f8 ] adcx r15, [ rsp + 0x278 ] adox r15, rbx mov r8, 0xffffffffffffff ; moving imm to reg and r13, r8; x563 <- x267&0xffffffffffffff mov rdx, [ rsi + 0x0 ]; arg1[0] to rdx mulx r11, r10, [ rax + 0x0 ]; x196, x195<- arg1[0] * arg2[0] mov rdx, [ rsi + 0x20 ]; arg1[4] to rdx mulx rbx, r8, [ rax + 0x20 ]; x68, x67<- arg1[4] * arg2[4] mov rdx, [ rsi + 0x38 ]; arg1[7] to rdx mov [ rsp + 0x300 ], r11; spilling x196 to mem mov [ rsp + 0x308 ], r10; spilling x195 to mem mulx r11, r10, [ rax + 0x28 ]; x6, x5<- arg1[7] * arg2[5] mov rdx, [ rax + 0x30 ]; arg2[6] to rdx mov [ rsp + 0x310 ], rcx; spilling x78 to mem mov [ rsp + 0x318 ], rdi; spilling x77 to mem mulx rcx, rdi, [ rsi + 0x30 ]; x10, x9<- arg1[6] * arg2[6] mov [ rsp + 0x320 ], rbx; spilling x68 to mem mov rbx, r9; x590, copying x582 here, cause x582 is needed in a reg for other than x590, namely all: , x590, x591, size: 2 shrd rbx, r15, 56; x590 <- x584||x582 >> 56 mov rdx, [ rax + 0x10 ]; arg2[2] to rdx mov [ rsp + 0x328 ], r8; spilling x67 to mem mulx r15, r8, [ rsi + 0x30 ]; x50, x49<- arg1[6] * arg2[2] lea rbx, [ rbx + r13 ] mov rdx, [ rsi + 0x28 ]; arg1[5] to rdx mov [ rsp + 0x330 ], r15; spilling x50 to mem mulx r13, r15, [ rax + 0x38 ]; x12, x11<- arg1[5] * arg2[7] add r10, rdi; could be done better, if r0 has been u8 as well adcx rcx, r11 mov r11, 0xffffffffffffff ; moving imm to reg mov rdi, rbx; x597, copying x592 here, cause x592 is needed in a reg for other than x597, namely all: , x597, x596, size: 2 and rdi, r11; x597 <- x592&0xffffffffffffff mov rdx, [ rax + 0x8 ]; arg2[1] to rdx mov [ rsp + 0x338 ], rdi; spilling x597 to mem mulx r11, rdi, [ rsi + 0x38 ]; x38, x37<- arg1[7] * arg2[1] adox r10, r15 adox r13, rcx mov rdx, [ rsi + 0x8 ]; arg1[1] to rdx mulx r15, rcx, [ rax + 0x38 ]; x80, x79<- arg1[1] * arg2[7] adcx r10, rdi mov rdx, [ rsi + 0x18 ]; arg1[3] to rdx mov [ rsp + 0x340 ], r15; spilling x80 to mem mulx rdi, r15, [ rax + 0x28 ]; x74, x73<- arg1[3] * arg2[5] adcx r11, r13 test al, al adox r10, r8 adox r11, [ rsp + 0x330 ] mov rdx, [ rsi + 0x28 ]; arg1[5] to rdx mulx r8, r13, [ rax + 0x18 ]; x60, x59<- arg1[5] * arg2[3] adcx r10, r13 adcx r8, r11 add r10, [ rsp + 0x328 ]; could be done better, if r0 has been u8 as well adcx r8, [ rsp + 0x320 ] add r10, r15; could be done better, if r0 has been u8 as well adcx rdi, r8 test al, al adox r10, [ rsp + 0x318 ] mov rdx, [ rsi + 0x18 ]; arg1[3] to rdx mulx r15, r11, [ rax + 0x30 ]; x72, x71<- arg1[3] * arg2[6] adox rdi, [ rsp + 0x310 ] adcx r10, rcx mov rdx, [ rsi + 0x38 ]; arg1[7] to rdx mulx rcx, r13, [ rax + 0x10 ]; x36, x35<- arg1[7] * arg2[2] mov rdx, [ rax + 0x8 ]; arg2[1] to rdx mov [ rsp + 0x348 ], r15; spilling x72 to mem mulx r8, r15, [ rsi + 0x0 ]; x194, x193<- arg1[0] * arg2[1] adcx rdi, [ rsp + 0x340 ] add r10, [ rsp + 0x308 ]; could be done better, if r0 has been u8 as well adcx rdi, [ rsp + 0x300 ] add rbp, r10; could be done better, if r0 has been u8 as well mov rdx, [ rsi + 0x30 ]; arg1[6] to rdx mov [ rsp + 0x350 ], r8; spilling x194 to mem mulx r10, r8, [ rax + 0x38 ]; x8, x7<- arg1[6] * arg2[7] adc rdi, 0x0 mov [ rsp + 0x358 ], r15; spilling x193 to mem mov r15, rbp; x575, copying x569 here, cause x569 is needed in a reg for other than x575, namely all: , x576, x575, size: 2 shrd r15, rdi, 56; x575 <- x571||x569 >> 56 mov rdx, [ rax + 0x30 ]; arg2[6] to rdx mov [ rsp + 0x360 ], r15; spilling x575 to mem mulx rdi, r15, [ rsi + 0x38 ]; x4, x3<- arg1[7] * arg2[6] test al, al adox r15, r8 mov rdx, [ rax + 0x38 ]; arg2[7] to rdx mov [ rsp + 0x368 ], r11; spilling x71 to mem mulx r8, r11, [ rsi + 0x10 ]; x76, x75<- arg1[2] * arg2[7] adox r10, rdi adcx r15, r13 adcx rcx, r10 mov rdx, [ rax + 0x18 ]; arg2[3] to rdx mulx r13, rdi, [ rsi + 0x30 ]; x48, x47<- arg1[6] * arg2[3] test al, al adox r15, rdi mov rdx, [ rax + 0x20 ]; arg2[4] to rdx mulx r10, rdi, [ rsi + 0x28 ]; x58, x57<- arg1[5] * arg2[4] adcx r15, rdi adox r13, rcx mov rdx, [ rsi + 0x20 ]; arg1[4] to rdx mulx rcx, rdi, [ rax + 0x28 ]; x66, x65<- arg1[4] * arg2[5] adcx r10, r13 add r15, rdi; could be done better, if r0 has been u8 as well adcx rcx, r10 add r15, [ rsp + 0x368 ]; could be done better, if r0 has been u8 as well adcx rcx, [ rsp + 0x348 ] add r15, r11; could be done better, if r0 has been u8 as well mov rdx, [ rax + 0x0 ]; arg2[0] to rdx mulx r11, r13, [ rsi + 0x10 ]; x166, x165<- arg1[2] * arg2[0] mov rdx, [ rsi + 0x8 ]; arg1[1] to rdx mulx rdi, r10, [ rax + 0x0 ]; x180, x179<- arg1[1] * arg2[0] adcx r8, rcx add r15, r10; could be done better, if r0 has been u8 as well adcx rdi, r8 test al, al adox r15, [ rsp + 0x358 ] adcx r15, [ rsp + 0x360 ] mov rdx, [ rax + 0x10 ]; arg2[2] to rdx mulx rcx, r10, [ rsi + 0x0 ]; x192, x191<- arg1[0] * arg2[2] mov rdx, [ rax + 0x30 ]; arg2[6] to rdx mov [ rsp + 0x370 ], rcx; spilling x192 to mem mulx r8, rcx, [ rsi + 0x20 ]; x64, x63<- arg1[4] * arg2[6] adox rdi, [ rsp + 0x350 ] mov rdx, [ rsi + 0x38 ]; arg1[7] to rdx mov [ rsp + 0x378 ], r10; spilling x191 to mem mov [ rsp + 0x380 ], r11; spilling x166 to mem mulx r10, r11, [ rax + 0x18 ]; x34, x33<- arg1[7] * arg2[3] adc rdi, 0x0 mov rdx, [ rax + 0x20 ]; arg2[4] to rdx mov [ rsp + 0x388 ], r13; spilling x165 to mem mov [ rsp + 0x390 ], r8; spilling x64 to mem mulx r13, r8, [ rsi + 0x30 ]; x46, x45<- arg1[6] * arg2[4] mov [ rsp + 0x398 ], rcx; spilling x63 to mem mov rcx, r15; x585, copying x577 here, cause x577 is needed in a reg for other than x585, namely all: , x585, x586, size: 2 shrd rcx, rdi, 56; x585 <- x579||x577 >> 56 mov rdx, [ rax + 0x38 ]; arg2[7] to rdx mov [ rsp + 0x3a0 ], rcx; spilling x585 to mem mulx rdi, rcx, [ rsi + 0x38 ]; x2, x1<- arg1[7] * arg2[7] add rcx, r11; could be done better, if r0 has been u8 as well adcx r10, rdi mov rdx, [ rax + 0x38 ]; arg2[7] to rdx mulx r11, rdi, [ rsi + 0x18 ]; x70, x69<- arg1[3] * arg2[7] add rcx, r8; could be done better, if r0 has been u8 as well mov rdx, [ rsi + 0x28 ]; arg1[5] to rdx mov [ rsp + 0x3a8 ], r11; spilling x70 to mem mulx r8, r11, [ rax + 0x28 ]; x56, x55<- arg1[5] * arg2[5] adcx r13, r10 add rcx, r11; could be done better, if r0 has been u8 as well adcx r8, r13 add rcx, [ rsp + 0x398 ]; could be done better, if r0 has been u8 as well adcx r8, [ rsp + 0x390 ] xor r10, r10 adox rcx, rdi mov rdx, [ rsi + 0x8 ]; arg1[1] to rdx mulx rdi, r11, [ rax + 0x8 ]; x178, x177<- arg1[1] * arg2[1] adcx rcx, [ rsp + 0x388 ] adox r8, [ rsp + 0x3a8 ] mov r13, [ rsp + 0x0 ]; load m64 out1 to register64 mov r10, [ rsp + 0x338 ]; TMP = x597 mov [ r13 + 0x38 ], r10; out1[7] = TMP adcx r8, [ rsp + 0x380 ] add rcx, r11; could be done better, if r0 has been u8 as well mov r10, -0x2 ; moving imm to reg inc r10; OF<-0x0, preserve CF (debug: 6; load -2, increase it, save as -1) adox rcx, [ rsp + 0x378 ] adcx rdi, r8 adox rdi, [ rsp + 0x370 ] xor r11, r11 adox rcx, [ rsp + 0x3a0 ] adox rdi, r11 mov r8, 0xffffffffffffff ; moving imm to reg mov r11, rcx; x594, copying x587 here, cause x587 is needed in a reg for other than x594, namely all: , x593, x594, size: 2 and r11, r8; x594 <- x587&0xffffffffffffff and rbp, r8; x576 <- x569&0xffffffffffffff shr rbx, 56; x596 <- x592>> 56 mov r10, [ rsp + 0x220 ]; x226, copying x221 here, cause x221 is needed in a reg for other than x226, namely all: , x226, size: 1 and r10, r8; x226 <- x221&0xffffffffffffff shrd rcx, rdi, 56; x593 <- x589||x587 >> 56 and r14, r8; x581 <- x572&0xffffffffffffff and r12, r8; x568 <- x564&0xffffffffffffff lea rcx, [ rcx + r10 ] mov rdi, rcx; x598, copying x595 here, cause x595 is needed in a reg for other than x598, namely all: , x598, x599, size: 2 shr rdi, 56; x598 <- x595>> 56 lea r12, [ r12 + rbx ] lea rbp, [ rbp + rbx ] mov rbx, rbp; x606, copying x601 here, cause x601 is needed in a reg for other than x606, namely all: , x607, x606, size: 2 shr rbx, 56; x606 <- x601>> 56 lea rdi, [ rdi + r12 ] mov r10, rdi; x603, copying x602 here, cause x602 is needed in a reg for other than x603, namely all: , x604, x603, size: 2 shr r10, 56; x603 <- x602>> 56 and rdi, r8; x604 <- x602&0xffffffffffffff mov [ r13 + 0x20 ], rdi; out1[4] = x604 and r15, r8; x586 <- x577&0xffffffffffffff lea rbx, [ rbx + r15 ] and r9, r8; x591 <- x582&0xffffffffffffff and rbp, r8; x607 <- x601&0xffffffffffffff and rcx, r8; x599 <- x595&0xffffffffffffff lea r10, [ r10 + r14 ] mov [ r13 + 0x18 ], rcx; out1[3] = x599 mov [ r13 + 0x30 ], r9; out1[6] = x591 mov [ r13 + 0x10 ], r11; out1[2] = x594 mov [ r13 + 0x28 ], r10; out1[5] = x605 mov [ r13 + 0x8 ], rbx; out1[1] = x608 mov [ r13 + 0x0 ], rbp; out1[0] = x607 mov rbx, [ rsp + 0x3b0 ]; restoring from stack mov rbp, [ rsp + 0x3b8 ]; restoring from stack mov r12, [ rsp + 0x3c0 ]; restoring from stack mov r13, [ rsp + 0x3c8 ]; restoring from stack mov r14, [ rsp + 0x3d0 ]; restoring from stack mov r15, [ rsp + 0x3d8 ]; restoring from stack add rsp, 0x3e0 ret ; cpu Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHz ; clocked at 2600 MHz ; first cyclecount 327.13, best 243.27450980392157, lastGood 243.45098039215685 ; seed 2606129114143455 ; CC / CFLAGS clang / -march=native -mtune=native -O3 ; time needed: 7024845 ms / 60000 runs=> 117.08075ms/run ; Time spent for assembling and measureing (initial batch_size=51, initial num_batches=101): 282542 ms ; Ratio (time for assembling + measure)/(total runtime for 60000runs): 0.04022038920431696 ; number reverted permutation/ tried permutation: 20402 / 30001 =68.004% ; number reverted decision/ tried decision: 16953 / 30000 =56.510%
38.748705
135
0.626061
0b5f2ccaf781f8a49ec9b989beef44b5149ca9a0
7,653
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1544.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1544.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1544.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %r15 push %r8 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0xdf0, %rbx nop nop nop dec %rdx mov (%rbx), %r15d nop nop nop sub %r10, %r10 lea addresses_UC_ht+0x130a0, %rbx nop nop nop nop and %rdx, %rdx movups (%rbx), %xmm3 vpextrq $0, %xmm3, %r13 nop nop nop nop nop xor $48891, %r10 lea addresses_normal_ht+0x16434, %r14 nop nop nop nop sub %r8, %r8 mov (%r14), %r13d xor %rdx, %rdx lea addresses_WC_ht+0x1984, %rsi lea addresses_WC_ht+0xee74, %rdi nop and $40969, %r13 mov $28, %rcx rep movsb nop nop nop nop nop and $21049, %r14 lea addresses_UC_ht+0x497c, %rsi lea addresses_UC_ht+0x11e04, %rdi nop nop nop nop nop and %r8, %r8 mov $125, %rcx rep movsb and %r15, %r15 lea addresses_A_ht+0x528f, %rsi lea addresses_WT_ht+0x15e14, %rdi nop nop nop nop nop xor $18172, %r13 mov $19, %rcx rep movsl nop nop nop nop nop inc %rsi lea addresses_WT_ht+0x1a114, %rsi lea addresses_normal_ht+0x229c, %rdi clflush (%rdi) nop nop cmp $42836, %r10 mov $39, %rcx rep movsw nop nop nop nop xor %r13, %r13 lea addresses_A_ht+0x6a14, %rcx nop nop nop nop nop xor $48312, %r14 movb $0x61, (%rcx) nop nop nop cmp $39569, %r15 lea addresses_normal_ht+0x141ec, %r8 xor $63637, %rcx mov $0x6162636465666768, %r10 movq %r10, (%r8) nop nop nop nop nop sub $63832, %r10 lea addresses_normal_ht+0x3194, %r10 and %rdx, %rdx mov $0x6162636465666768, %r14 movq %r14, (%r10) inc %rdx lea addresses_A_ht+0x565d, %rbx nop nop nop nop add %r15, %r15 mov $0x6162636465666768, %r14 movq %r14, (%rbx) nop nop nop nop xor %rdi, %rdi lea addresses_UC_ht+0xccbc, %rsi lea addresses_WT_ht+0x161d4, %rdi nop nop xor %rdx, %rdx mov $78, %rcx rep movsb nop nop add $25389, %r13 lea addresses_A_ht+0xcc14, %rsi clflush (%rsi) nop nop nop nop inc %r13 mov (%rsi), %r10w cmp %r13, %r13 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r8 pop %r15 pop %r14 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %r15 push %rbx push %rcx // Store lea addresses_PSE+0x1e214, %r15 nop nop nop nop nop cmp %r12, %r12 mov $0x5152535455565758, %r10 movq %r10, (%r15) nop and $49570, %r15 // Faulty Load lea addresses_WC+0x6214, %rbx nop nop nop nop nop add $28736, %r15 movups (%rbx), %xmm4 vpextrq $0, %xmm4, %r10 lea oracles, %r15 and $0xff, %r10 shlq $12, %r10 mov (%r15,%r10,1), %r10 pop %rcx pop %rbx pop %r15 pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WC', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_PSE', 'size': 8, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_WC', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}} {'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': True}} {'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': True, 'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False}} {'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}} {'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
32.427966
2,999
0.659349
60ba017449f5bd9ef7500e5e7240c87ea38e7c59
56,543
asm
Assembly
GameCode.asm
RichardTND/ShockRaid
18c6b7caed3880a35d11c5fcbce417bb16c0fe13
[ "OLDAP-2.4" ]
null
null
null
GameCode.asm
RichardTND/ShockRaid
18c6b7caed3880a35d11c5fcbce417bb16c0fe13
[ "OLDAP-2.4" ]
null
null
null
GameCode.asm
RichardTND/ShockRaid
18c6b7caed3880a35d11c5fcbce417bb16c0fe13
[ "OLDAP-2.4" ]
null
null
null
;############################# ;# Shock Raid # ;# # ;# by Richard Bayliss # ;# # ;# (C)2021 The New Dimension # ;# For Reset Magazine # ;############################# ;Main game code Game NewLevelStart sei lda #$00 sta tileY ldx $fb txs lda #$35 sta $01 lda #$00 sta $d01a sta $d019 sta $d011 lda #$81 sta $dc0d sta $dd0d ldx #$48 ldy #$ff stx $fffe sty $ffff ldx #<nmi ldy #>nmi stx $fffa sty $fffb ldx #$00 .sidout lda #0 sta $d400,x inx cpx #$18 bne .sidout lda #$18 sta $d016 lda #$1e ;Game screen map sta $d018 lda #$00 sta $d020 sta $d021 lda #0 sta LevelPointer sta PlayerBulletColourPointer sta FireButton sta $e1 ;Init slow anim zeropage sta GameOverIsOn lda #0 sta ExplodeFlashDelay sta ExplodeFlashPointer sta GameIsPaused ;Initialise all sprite positions ldx #$00 .initspritepos lda #$00 sta $d000,x sta ObjPos,x inx inx cpx #$10 bne .initspritepos ;Initialise map scroll lda #<mapend ;'mapload' is the start address which is the last sta map ;row to appear on screen when scrolling downwards! lda #>mapend ;so find a way to calculate 'mapend' (see above) sta map+1 jsr SetupLevelScheme ldx #$00 ZeroFillGameScreen lda startscreen,x sta screen,x lda startscreen+$100,x sta screen+$100,x lda startscreen+$200,x sta screen+$200,x lda startscreen+$2e8,x sta screen+$2e8,x lda #$09 ;Fill multicolour WHITE sta colour,x sta colour+$100,x sta colour+$200,x sta colour+$2e8,x inx bne ZeroFillGameScreen ;Draw the panel (The size from charpad is 6 by 40 ldx #$00 .drawhud lda hud,x sta screen+$2f8+40,x inx cpx #240-40 bne .drawhud ldx #$00 .colourhud ldy hud,x lda hudattribs,y sta colour+$2f8+40,x inx cpx #240-40 bne .colourhud ;Clean out the mess above the score panel ldx #$00 clearrow lda #$00 sta $0720,x sta $db20,x inx cpx #$28 bne clearrow ;Zero points ldx #$00 .zeroscore lda #$30 sta Score,x inx cpx #$05 bne .zeroscore ;Fifteen shields lda #$35 sta Shield lda #$31 sta Shield2 ;Setup the game sprites lda #$ff sta $d015 sta $d01c lda #$0c sta $d025 lda #$0b sta $d026 lda #$03 sta $d027 lda #$80 sta $07f8 ;Sprite 0 HW frame lda #$56 sta ObjPos lda #$b8 sta ObjPos+1 lda #$10 sta ypos lda #0 sta $d017 sta $d01d sta $d01b ldx #$fb txs ldx #<irq1 ldy #>irq1 stx $fffe sty $ffff lda #$7f sta $dc0d sta $dd0d lda #$32 sta $d012 lda #$1b sta $d011 lda #$01 sta $d01a sta $d019 lda SoundOption beq .MusicOptionSet lda #LevelUpSFX jsr SFXInit .MusicOptionSet lda #GameMusic jsr MusicInit ;Zero all game pointers. So that alien movement, etc is reset .Continue ldx #$00 .initialisepointers lda #0 sta GamePointersStart,x inx cpx #GamePointersEnd-GamePointersStart bne .initialisepointers jsr SetupNewAlienProperties lda #0 sta SpriteAnimDelay sta SpriteAnimPointer ldx #$00 ;Clear all sprite animation frame with blank frames ldx #$00 .blankspriteframes lda #$d5 sta SpriteFrameStart,x inx cpx #SpriteFrameEnd-SpriteFrameStart bne .blankspriteframes ;Reset shield time (100 secs) lda #InvulnerabilityTimer sta ShieldTime lda #$d5 sta BlankSprite cli jmp GameLoop ;------------------------------------------------------------------------------------------------ ;Main game loop (controls the main body of the game code) GameLoop jsr SyncTimer ;Synchronise game timer with IRQ jsr ExpandSpritePosition ;Allow sprites to use whole screen area jsr AnimSprites ;Read sprite animation tables jsr Scroller ;Game map scrolling jsr LaserGate ;Animate laser gate activity jsr PlayerProperties ;Player behaviour jsr AlienProperties ;Alien behaviour jsr SpriteToBackground ;Sprite to background collision check jsr SpriteToSprite ;Sprite to sprite collision check jsr TestShield ;Shield check routine jsr TestEnemyBullet ;Bullet prpoerties ;Check game pause/quit function ... CONTROL = PAUSE, <- = QUIT BACK TO FRONT END (While paused) lda #4 bit $dc01 bne NotPaused ;Press fire to unpause game lda #0 sta FireButton lda #1 sta GameIsPaused .pauseloop lda $dc00 lsr lsr lsr lsr lsr bit FireButton ror FireButton bmi .pauseloop2 bvc .pauseloop2 lda #0 sta FireButton jmp .resume .pauseloop2 lda #2 bit $dc01 bne .pauseloop jmp Title .resume lda #0 sta GameIsPaused NotPaused jmp GameLoop ;------------------------------------------------------------------------------------------------ ;Synchronise timer (ST) - game and also merged with some other routines SyncTimer lda #0 sta ST cmp ST beq *-3 .skip rts ;------------------------------------------------------------------------------------------------ ;Double the size of the X sprite position so that the sprites can ;use the whole screen area. ExpandSpritePosition ldx #$00 .expandposloop lda ObjPos+1,x sta $d001,x lda ObjPos,x asl ror $d010 sta $d000,x inx inx cpx #$10 bne .expandposloop rts ;Animate those sprites AnimSprites lda SpriteAnimDelay cmp #4 beq .dospriteanim inc SpriteAnimDelay rts .dospriteanim lda #0 sta SpriteAnimDelay ;Main sprite animation, read animation table and ;store to self-modifying pointers for sprite animation ldx SpriteAnimPointer lda PlayerShipFrame,x sta PlayerType lda AlienType1Frame,x sta AlienType1 lda AlienType2Frame,x sta AlienType2 lda AlienType3Frame,x sta AlienType3 lda AlienType4Frame,x sta AlienType4 lda AlienType5Frame,x sta AlienType5 lda AlienType6Frame,x sta AlienType6 lda AlienType7Frame,x sta AlienType7 lda AlienType8Frame,x sta AlienType8 lda AlienType9Frame,x sta AlienType9 lda AlienType10Frame,x sta AlienType10 lda AlienType11Frame,x sta AlienType11 lda AlienType12Frame,x sta AlienType12 lda AlienType13Frame,x sta AlienType13 lda AlienType14Frame,x sta AlienType14 lda AlienType15Frame,x sta AlienType15 lda AlienType16Frame,x sta AlienType16 lda CrystalTypeFrame,x sta Crystal ;Now do the same for the colour table as some ;sprites use more than one sprite colour ;to give them a cool effect lda AlienType1FrameColour,x sta Alien1TypeColour lda AlienType2FrameColour,x sta AlienType2Colour lda AlienType3FrameColour,x sta AlienType3Colour lda AlienType4FrameColour,x sta AlienType4Colour lda AlienType5FrameColour,x sta AlienType5Colour lda AlienType6FrameColour,x sta AlienType6Colour lda AlienType7FrameColour,x sta AlienType7Colour lda AlienType8FrameColour,x sta AlienType8Colour lda AlienType9FrameColour,x sta AlienType9Colour lda AlienType10FrameColour,x sta AlienType10Colour lda AlienType11FrameColour,x sta AlienType11Colour lda AlienType12FrameColour,x sta AlienType12Colour lda AlienType13FrameColour,x sta AlienType13Colour lda AlienType14FrameColour,x sta AlienType14Colour lda AlienType15FrameColour,x sta AlienType15Colour lda AlienType16FrameColour,x sta AlienType16Colour inx cpx #4 beq .loopanimation inc SpriteAnimPointer rts .loopanimation ldx #$00 stx SpriteAnimPointer rts ;------------------------------------------------------------------------------------------------ ;Scroll main game background data Scroller ScrollMain ;Soft scroll $D011 counter control inc ypos lda ypos cmp #$18 bpl DoHardScroll rts DoHardScroll lda #$10 sta ypos jsr FitRows ;Jump subroutine to draw each row to the screen DoMap lda tileY bne SameMapRow lda map sec sbc #10 ;Size of map = 10 columns sta map lda map+1 sbc #$00 sta map+1 lda #$10 SameMapRow sec sbc #$04 sta tileY lda map sta maptmp lda map+1 sta maptmp+1 lda #$00 ldx #>screen jsr ExtractRow rts ;Extract row from map data ExtractRow sta PlotRow+1 ;Store to lobyte PlotRow clc adc #$28 sta Check+1 stx PlotRow+2 ;Store to hibyte PlotRow Extract ldy #$00 lda (maptmp),y and #$0f asl asl asl asl sta tiledata ;Low byte of title data address lda (maptmp),y and #$f0 lsr lsr lsr lsr clc adc #tilemem sta tiledata+1 ldy tileY ldx #$03 ReadTile lda (tiledata),y PlotRow sta $ffff inc PlotRow+1 bne Loop01 inc PlotRow+2 Loop01 lda PlotRow+1 Check cmp #$28 beq ExitTileLogic iny dex bpl ReadTile inc maptmp bne Loop02 inc maptmp+1 Loop02 clv bvc Extract ExitTileLogic rts ;Fit each row and perform main scroll FitRows ldy #$0a dey bne *-1 jsr FitRow1 jsr FitRow2 jsr flagcheck rts FitRow1 ldx #$27 ShiftRows1 lda row10,x sta rowtemp,x lda row9,x sta row10,x lda row8,x sta row9,x lda row7,x sta row8,x lda row6,x sta row7,x lda row5,x sta row6,x lda row4,x sta row5,x lda row3,x sta row4,x lda row2,x sta row3,x lda row1,x sta row2,x lda row0,x sta row1,x dex bpl ShiftRows1 rts FitRow2 ldx #$27 ShiftRows2 lda #fillchar sta row20,x lda row18,x sta row19,x lda row17,x sta row18,x lda row16,x sta row17,x lda row15,x sta row16,x lda row14,x sta row15,x lda row13,x sta row14,x lda row12,x sta row13,x lda row11,x sta row12,x lda rowtemp,x sta row11,x dex bpl ShiftRows2 rts ;Finally a simple subroutine that the end of the flag flagcheck ldx #$00 .checkflag lda row19,x cmp #LevelExitChar ;char detection beq .setupnextlevel inx cpx #$28 bne .checkflag rts ;Setup next level .setupnextlevel inc LevelPointer lda LevelPointer clc adc #$31 sta LevelIndicator ;Add an extra life to the player inc Shield lda Shield cmp #$3a bne .nobonusshield lda #$30 sta Shield inc Shield2 .nobonusshield jsr Score1000Bonus jmp SetupLevelScheme ;Main level counter checker - give colour scheme for background SetupLevelScheme ldx LevelPointer lda D022Colour,x sta BGColour1 lda D023Colour,x sta BGColour2 inx cpx #5 beq GameComplete lda SoundOption beq .skiplevelupsfx lda #LevelUpSFX jsr SFXInit .skiplevelupsfx rts ;The player has completed the game GameComplete jmp EndScreen ;------------------------------------------------------------------------------------------------ ;Control the laser gates settings (on/off) LaserGate lda GameIsPaused beq .gatetest rts .gatetest jsr ScrollLasers lda LaserTriggerTime cmp #50 beq TriggerLaserMode inc LaserTriggerTime rts TriggerLaserMode lda #0 sta LaserTriggerTime lda LaserTriggerOn cmp #1 beq ActivateLaserGate ;Laser gate not active - remove laser chars ldx #$00 .remove lda $3800+(29*8),x sta LaserGateChars,x sta LaserGateChars+8,x sta LaserGateChars+16,x sta LaserGateChars+24,x sta LaserGateChars+32,x sta LaserGateChars+40,x sta LaserGateChars+48,x sta LaserGateChars+56,x inx cpx #8 bne .remove lda #1 sta LaserTriggerOn rts ;Laser gate has been activated, copy backup characters ;and place on to the laser gate ActivateLaserGate ldx #$00 .backupchars lda LaserGateCharsBackup,x sta LaserGateChars,x inx cpx #64 bne .backupchars lda #0 sta LaserTriggerOn rts ;Scroll the lasers across ScrollLasers lda LaserTriggerOn bne .skipLaserAnim ldx #$00 .scrolllasers1 lda LaserGateChars,x asl rol LaserGateChars+8,x rol LaserGateChars,x asl rol LaserGateChars+8,x rol LaserGateChars,x inx cpx #$08 bne .scrolllasers1 ldx #$00 .scrolllasers2 lda LaserGateChars+16,x asl rol LaserGateChars+24,x rol LaserGateChars+16,x asl rol LaserGateChars+24,x rol LaserGateChars+16,x inx cpx #$08 bne .scrolllasers2 ldx #$00 .scrolllasers3 lda LaserGateChars+32,x asl rol LaserGateChars+40,x rol LaserGateChars+32,x asl rol LaserGateChars+40,x rol LaserGateChars+32,x inx cpx #$08 bne .scrolllasers3 ldx #$00 .scrolllasers4 lda LaserGateChars+48,x asl rol LaserGateChars+56,x rol LaserGateChars+48,x asl rol LaserGateChars+56,x rol LaserGateChars+48,x inx cpx #$08 bne .scrolllasers4 .skipLaserAnim SlowAnimPulse lda $e1 cmp #1 beq .okscroll inc $e1 rts .okscroll lda #0 sta $e1 ldx #$00 .scrollpulse1 lda pulsecharleft1,x asl rol pulsecharleft2,x rol pulsecharleft1,x inx cpx #8 bne .scrollpulse1 ldx #$00 .scrollpulse2 lda pulsecharright1,x lsr ror pulsecharright2,x ror pulsecharright1,x inx cpx #8 bne .scrollpulse2 rts rts ;------------------------------------------------------------------------------------------------ ;Player control (Joystick read) PlayerProperties jsr PlayerBulletProperties ;Also control the player's bullet ;Player is alive, so it is allowed to be controlled. lda PlayerType sta $07f8 ;Read joystick port 2 controls, and then move ship accordingly lda #1 ;read up control bit $dc00 bne .notup jsr MovePlayerUp .notup lda #2 ;read down control bit $dc00 bne .notdown jsr MovePlayerDown .notdown lda #4 ;read left control bit $dc00 bne .notleft jsr MovePlayerLeft .notleft lda #8 ;read right control bit $dc00 bne .notright jsr MovePlayerRight .notright ;Read firebutton, but the button is not allowed ;to be held down lda $dc00 lsr lsr lsr lsr lsr bit FireButton ror FireButton bmi .notfire bvc .notfire lda #0 sta FireButton jmp FireBullet .notfire rts ;Move player up until it has reached its stop zone MovePlayerUp lda ObjPos+1 sec sbc #4 ;Speed 2 * 1 cmp #UpStopPos bcs .storeup lda #UpStopPos .storeup sta ObjPos+1 rts ;Move player down until it has reached its stop zone MovePlayerDown lda ObjPos+1 clc adc #4 ;Speed 2 * 1 cmp #DownStopPos bcc .storedown lda #DownStopPos .storedown sta ObjPos+1 rts ;Move player left until it has reached its stop zone MovePlayerLeft lda ObjPos sec sbc #2 ;Sprite expanded, so speed has doubled cmp #LeftStopPos bcs .storeleft lda #LeftStopPos .storeleft sta ObjPos rts ;Move player right until it has reached its stop zone MovePlayerRight lda ObjPos clc adc #2 ;1*1 speed cmp #RightStopPos bcc .storeright lda #RightStopPos .storeright sta ObjPos rts ;Player fires bullet - check if the bullet X position is ;at its home position. If so, then allow now bullet firing ;unless of course, bullet is dead. FireBullet lda ObjPos+2 ;If at zero position (by default) cmp #$00 bne .skipshot jmp .doplayerfirebullet .skipshot rts ;Position bullet where player is .doplayerfirebullet lda #$84 sta $07f9 lda ObjPos sta ObjPos+2 ;Player Bullet X to Player X lda ObjPos+1 sec sbc #$08 sta ObjPos+3 ;Player Bullet Y to Player Y lda SoundOption beq .skipplayershootsfx lda #PlayerShootSFX jsr SFXInit .skipplayershootsfx rts ;--------------------------------------------------------- ;Player Bullet Control PlayerBulletProperties ;Set bullet type jsr FlashPlayerBullet BColSM ;Player bullet self-mod lda #$0d sta $d028 ;Fire bullet at lightning speed until it reaches ;the outer rim of the game screen lda ObjPos+3 sec sbc #$0b ;Bullet speed cmp #$22 ;Destroy bullet position bcs .storenewbulletposition lda #$00 sta ObjPos+2 .storenewbulletposition sta ObjPos+3 rts ;Flash player bullet colour by reading bullet colour table FlashPlayerBullet ldx PlayerBulletColourPointer lda PlayerBulletColourTable,x sta BColSM+1 inx cpx #PlayerBulletColourTableEnd-PlayerBulletColourTable beq .loopflash inc PlayerBulletColourPointer rts ;Restart bullet colour colour cycle .loopflash ldx #0 stx PlayerBulletColourPointer rts ;------------------------------------------------------------------------------------------------ ;Test alien properties (Halve speed) AlienProperties .doaliensettings lda #0 sta AlienDelayPointer jsr TestAlien1Properties jsr TestAlien2Properties jsr TestAlien3Properties jsr TestAlien4Properties jsr TestAlien5Properties jsr TestAllAliensOffset jsr TestAlienBulletToPlayer rts ;Test alien properties in order to check to ;see whether or not the alien is active. If it is ;inactive, zero position the alien until the waiting ;duration has finished. TestAlien1Properties lda Alien1Offset cmp #$01 bne .alien1notoffset lda #0 sta ObjPos+4 ;Inidicates aliens offset sta ObjPos+5 rts .alien1notoffset lda Alien1Enabled ;Is alien 1 enabled, if not hold it cmp #$01 beq .alien1active jsr HoldAlien1 rts Alien1Exploder lda Alien1DeathDelay cmp #1 beq .explodemain1 inc Alien1DeathDelay rts .explodemain1 lda #0 sta Alien1DeathDelay ldx Alien1DeathPointer lda ExplosionFrame,x sta $07fa lda #$07 sta $d029 inx cpx #ExplosionFrameEnd-ExplosionFrame beq .stopexplode1 inc Alien1DeathPointer rts .stopexplode1 ldx #ExplosionFrameEnd-ExplosionFrame-1 stx Alien1DeathPointer lda #<BlankSprite sta A1Type+1 lda #>BlankSprite sta A1Type+2 lda #0 sta Alien1Dead rts ;Alien is active. Allow it to move. .alien1active lda Alien1Dead cmp #1 beq Alien1Exploder A1Type lda AlienType1 sta $07fa A1Colour lda Alien1TypeColour sta $d029 A1MoveX lda F01X sta ObjPos+$04 A1MoveY lda F01Y sta ObjPos+$05 inc A1MoveX+1 inc A1MoveY+1 lda A1MoveX+1 beq .endalien1movement rts ;Alien movement has finished .endalien1movement lda #$01 sta Alien1Offset rts ;Alien held back (alien should always be offset) HoldAlien1 ;when held back lda #0 sta ObjPos+4 sta ObjPos+5 lda Alien1Wait cmp #1*16 beq .launchalien1 inc Alien1Wait rts ;Alien gets launched .launchalien1 lda #1 sta Alien1Enabled rts ;------------------ TestAlien2Properties lda Alien2Offset cmp #$01 bne .alien2notoffset lda #0 sta ObjPos+6 ;Inidicates aliens offset sta ObjPos+7 rts .alien2notoffset lda Alien2Enabled ;Is alien 1 enabled, if not hold it cmp #$01 beq .alien2active jsr HoldAlien2 rts .alien2explosion Alien2Exploder lda Alien2DeathDelay cmp #1 beq .explodemain2 inc Alien2DeathDelay rts .explodemain2 lda #0 sta Alien2DeathDelay ldx Alien2DeathPointer lda ExplosionFrame,x sta $07fb lda #$07 sta $d02a inx cpx #ExplosionFrameEnd-ExplosionFrame beq .stopexplode2 inc Alien2DeathPointer rts .stopexplode2 ldx #ExplosionFrameEnd-ExplosionFrame-1 stx Alien2DeathPointer lda #<BlankSprite sta A2Type+1 lda #>BlankSprite sta A2Type+2 lda #0 sta Alien2Dead rts ;Alien is active. Allow it to move. .alien2active lda Alien2Dead cmp #$01 beq .alien2explosion A2Type lda AlienType1 sta $07fb A2Colour lda Alien1TypeColour sta $d02a A2MoveX lda F01X sta ObjPos+$06 A2MoveY lda F01Y sta ObjPos+$07 inc A2MoveX+1 inc A2MoveY+1 lda A2MoveX+1 beq .endalien2movement rts ;Alien movement has finished .endalien2movement lda #$01 sta Alien2Offset rts ;Alien held back (alien should always be offset) HoldAlien2 ;when held back lda #0 sta ObjPos+6 sta ObjPos+7 lda Alien2Wait cmp #2*16 beq .launchalien2 inc Alien2Wait rts ;Alien gets launched .launchalien2 lda #1 sta Alien2Enabled rts ;------------------ TestAlien3Properties lda Alien3Offset cmp #$01 bne .alien3notoffset lda #0 sta ObjPos+8 ;Inidicates aliens offset sta ObjPos+9 rts .alien3notoffset lda Alien3Enabled ;Is alien 1 enabled, if not hold it cmp #$01 beq .alien3active jsr HoldAlien3 rts .alienexplosion3 lda Alien3DeathDelay cmp #1 beq .alien3deathmain inc Alien3DeathDelay rts .alien3deathmain lda #0 sta Alien3DeathDelay ldx Alien3DeathPointer lda ExplosionFrame,x sta $07fc lda #$07 sta $d02b inx cpx #ExplosionFrameEnd-ExplosionFrame beq .stopexplode3 inc Alien3DeathPointer rts .stopexplode3 ldx #ExplosionFrameEnd-ExplosionFrame-1 stx Alien3DeathPointer lda #<BlankSprite sta A3Type+1 lda #>BlankSprite sta A3Type+2 lda #0 sta Alien3Dead rts ;Alien is active. Allow it to move. .alien3active lda Alien3Dead cmp #1 beq .alienexplosion3 A3Type lda AlienType1 sta $07fc A3Colour lda Alien1TypeColour sta $d02b A3MoveX lda F01X sta ObjPos+$08 A3MoveY lda F01Y sta ObjPos+$09 inc A3MoveX+1 inc A3MoveY+1 lda A3MoveX+1 beq .endalien3movement rts ;Alien movement has finished .endalien3movement lda #$01 sta Alien3Offset rts ;Alien held back (alien should always be offset) HoldAlien3 ;when held back lda #0 sta ObjPos+8 sta ObjPos+9 lda Alien3Wait cmp #3*16 beq .launchalien3 inc Alien3Wait rts ;Alien gets launched .launchalien3 lda #1 sta Alien3Enabled rts ;------------------ TestAlien4Properties lda Alien4Offset cmp #$01 bne .alien4notoffset lda #0 sta ObjPos+10 ;Inidicates aliens offset sta ObjPos+11 rts .alien4notoffset lda Alien4Enabled ;Is alien 1 enabled, if not hold it cmp #$01 beq .alien4active jsr HoldAlien4 rts .explosion04 lda Alien4DeathDelay cmp #1 beq .explode4main inc Alien4DeathDelay rts .explode4main lda #$00 sta Alien4DeathDelay ldx Alien4DeathPointer lda ExplosionFrame,x sta $07fd lda #$07 sta $d02c inx cpx #ExplosionFrameEnd-ExplosionFrame beq .stopexploder4 inc Alien4DeathPointer rts .stopexploder4 ldx #ExplosionFrameEnd-ExplosionFrame-1 stx Alien4DeathPointer lda #<BlankSprite sta A4Type+1 lda #>BlankSprite sta A4Type+2 lda #0 sta Alien4Dead rts ;Alien is active. Allow it to move. .alien4active lda Alien4Dead cmp #1 beq .explosion04 A4Type lda AlienType1 sta $07fd A4Colour lda Alien1TypeColour sta $d02c A4MoveX lda F01X sta ObjPos+10 A4MoveY lda F01Y sta ObjPos+11 inc A4MoveX+1 inc A4MoveY+1 lda A4MoveX+1 beq .endalien4movement rts ;Alien movement has finished .endalien4movement lda #$01 sta Alien4Offset rts ;Alien held back (alien should always be offset) HoldAlien4 ;when held back lda #0 sta ObjPos+10 sta ObjPos+11 lda Alien4Wait cmp #4*16 beq .launchalien4 inc Alien4Wait rts ;Alien gets launched .launchalien4 lda #1 sta Alien4Enabled rts ;------------------ TestAlien5Properties lda Alien5Offset cmp #$01 bne .alien5notoffset lda #0 sta ObjPos+12 ;Inidicates aliens offset sta ObjPos+13 rts .alien5notoffset lda Alien5Enabled ;Is alien 1 enabled, if not hold it cmp #$01 beq .alien5active jsr HoldAlien5 rts .explosion5 lda Alien5DeathDelay cmp #1 beq .explode5main inc Alien5DeathDelay rts .explode5main lda #$00 sta Alien5DeathDelay ldx Alien5DeathPointer lda ExplosionFrame,x sta $07fe lda #$07 sta $d02d inx cpx #ExplosionFrameEnd-ExplosionFrame beq .stopexplode5 inc Alien5DeathPointer rts .stopexplode5 lda #ExplosionFrameEnd-ExplosionFrame-1 sta Alien5DeathPointer lda #<BlankSprite sta A5Type+1 lda #>BlankSprite sta A5Type+2 lda #0 sta Alien5Dead rts ;Alien is active. Allow it to move. .alien5active lda Alien5Dead cmp #1 beq .explosion5 A5Type lda AlienType1 sta $07fe A5Colour lda Alien1TypeColour sta $d02d A5MoveX lda F01X sta ObjPos+12 A5MoveY lda F01Y sta ObjPos+13 inc A5MoveX+1 inc A5MoveY+1 lda A5MoveX+1 beq .endalien5movement rts ;Alien movement has finished .endalien5movement lda #$01 sta Alien5Offset rts ;Alien held back (alien should always be offset) HoldAlien5 ;when held back lda #0 sta ObjPos+12 sta ObjPos+13 lda Alien5Wait cmp #5*16 beq .launchalien5 inc Alien5Wait rts ;Alien gets launched .launchalien5 lda #1 sta Alien5Enabled rts ;Test all aliens are offset. If the aliens are still on screen ;avoid cycling through the sequence table to generate new aliens. ;Otherwise read the sequence table and call the next alien value ;accordingly. TestAllAliensOffset ldx #$00 .offsetTest lda Alien1Offset,x cmp #1 bne .alienstillvisible inx cpx #5 bne .offsetTest ;All aliens are offset, so now read the next table jsr SetupNewAlienProperties ;There are aliens visible, so skip process .alienstillvisible rts ;Read and store new alien patterns according to the value to be read ;from the sequence table. SetupNewAlienProperties ldx AlienSequencePointer lda AlienSelectSequence,x sta AlienValuePointer inx cpx #AlienSelectSequenceEnd-AlienSelectSequence beq .loopaliensequence inc AlienSequencePointer jsr SelectNextAlien rts .loopaliensequence ldx #0 stx AlienSequencePointer rts ;The next alien selection - picks out low+hi byte for alien type ;colour and X, Y movement type values. SelectNextAlien ldy AlienValuePointer lda AlienTypeLo,y sta A1Type+1 sta A2Type+1 sta A3Type+1 sta A4Type+1 sta A5Type+1 lda AlienTypeHi,y sta A1Type+2 sta A2Type+2 sta A3Type+2 sta A4Type+2 sta A5Type+2 lda AlienColourLo,y sta A1Colour+1 sta A2Colour+1 sta A3Colour+1 sta A4Colour+1 sta A5Colour+1 lda AlienColourHi,y sta A1Colour+2 sta A2Colour+2 sta A3Colour+2 sta A4Colour+2 sta A5Colour+2 lda AlienXPosLo,y sta A1MoveX+1 sta A2MoveX+1 sta A3MoveX+1 sta A4MoveX+1 sta A5MoveX+1 lda AlienXPosHi,y sta A1MoveX+2 sta A2MoveX+2 sta A3MoveX+2 sta A4MoveX+2 sta A5MoveX+2 lda AlienYPosLo,y sta A1MoveY+1 sta A2MoveY+1 sta A3MoveY+1 sta A4MoveY+1 sta A5MoveY+1 lda AlienYPosHi,y sta A1MoveY+2 sta A2MoveY+2 sta A3MoveY+2 sta A4MoveY+2 sta A5MoveY+2 lda AlienScoreRangeLo,y sta AwardPoints+1 lda AlienScoreRangeHi,y sta AwardPoints+2 lda #0 sta Alien1Dead sta Alien2Dead sta Alien3Dead sta Alien4Dead sta Alien5Dead ldx #0 .resetaliengroup lda #0 sta AlienPointersStart,x inx cpx #AlienPointersEnd-AlienPointersStart bne .resetaliengroup rts ;------------------------------------------------------------------------------------------------ ;Sprite to background char collision for the player (if the player hits any ;deadly background, one shield should be depleted. After all shields are ;gone. The player is dead SpriteToBackground lda ObjPos+1 sec sbc #$32 lsr lsr lsr tay lda screenlo,y sta playerlo lda screenhi,y sta playerhi lda ObjPos sec sbc #$08 lsr lsr tay ldx #3 sty selfmod+1 .bgcloop jmp CheckCharType selfmod ldy #$00 lda playerlo clc adc #40 sta playerlo bcc skipmod inc playerhi skipmod dex bne .bgcloop rts ;Check char type ... CheckCharType ;Check for laser gate chars lda (playerlo),y ;cmp #242 ;beq .playersafe1 cmp #LaserGateChar1 beq LaserGateCollisionTest cmp #LaserGateChar2 beq LaserGateCollisionTest cmp #LaserGateChar3 beq LaserGateCollisionTest cmp #LaserGateChar4 beq LaserGateCollisionTest cmp #LaserGateChar5 beq LaserGateCollisionTest cmp #LaserGateChar6 beq LaserGateCollisionTest cmp #LaserGateChar7 beq LaserGateCollisionTest cmp #LaserGateChar8 beq LaserGateCollisionTest ;Check for killer chars (except for gate, as that was checked beforehand) cmp #KillerCharsRangeStartGroup1 bcc .playersafe cmp #KillerCharsRangeEndGroup2 bcs .playersafe .playersafe1 jmp PlayerIsHit .playersafe jmp selfmod ;Check if the player hits the laser gate LaserGateCollisionTest lda LaserTriggerOn beq PlayerIsHit rts ;The player is hit by a killer char or an alien ;check if the player's shield has timed out. ;If it has, delete 1 shield and trigger it ;to flash. Otherwise destroy the player. PlayerIsHit lda ShieldTime cmp #0 beq .deductshield rts .deductshield ;First check if the total number of shields = 0 lda Shield cmp #$31 ;Lives indicator = 1 beq .checkshielddigit2 jmp .shieldnot30 .checkshielddigit2 lda Shield2 cmp #$30 beq GameOver .shieldnot30 lda #InvulnerabilityTimer sta ShieldTime cheatlives dec Shield lda Shield cmp #$2f beq .checkshield2 .playshieldsound lda SoundOption beq .skipgameoversfx lda #ShieldHitSFX jsr SFXInit .skipgameoversfx rts .checkshield2 lda Shield2 cmp #$30 beq GameOver dec Shield2 lda #$39 sta Shield jmp .playshieldsound ;---------------------------------------------------------------------------------------------- ;The player is dead, so clear all of the enemies and do a twin explosion GameOver lda #1 sta GameOverIsOn lda #$30 sta Shield sta Shield2 ldx #$00 .clearallenemiesforgameover lda BlankSprite sta $07f8,x lda #$07 sta $d027,x inx cpx #$08 bne .clearallenemiesforgameover ;Now place all sprites for explosion on to the player ship ldx #$00 .maskexp lda ObjPos+1 sta ObjPos+3,x lda ObjPos sta ObjPos+2,x inx inx cpx #$0e bne .maskexp ;New Sync Loop for the explosion routine lda #0 sta ExplodeAnimDelay sta ExplodeAnimPointer lda SoundOption beq MassExplosionLoop lda #PlayerDeathSFX jsr SFXInit MassExplosionLoop jsr SyncTimer jsr ExpandSpritePosition jsr ExplodeAllSprites jsr MoveExploder jsr LaserGate jsr ExplodeBackground jmp MassExplosionLoop ;Explode all sprites animation ExplodeAllSprites lda ExplodeAnimDelay cmp #$03 beq .playerexplodenow inc ExplodeAnimDelay rts .playerexplodenow lda #0 sta ExplodeAnimDelay ldx ExplodeAnimPointer lda PlayerExplosionLeft,x sta $07f8 lda PlayerExplosionRight,x sta $07f9 inx cpx #2 beq .finishedExploder inc ExplodeAnimPointer rts .finishedExploder ldx #0 stx ExplodeAnimPointer rts ;Move out the explosion effect MoveExploder lda ObjPos sec sbc #2 cmp #$02 bcs .onset1 lda #0 sta ObjPos+1 .onset1 sta ObjPos lda ObjPos+2 clc adc #2 cmp #$ba bcc .onset2 lda #0 sta ObjPos+3 .onset2 sta ObjPos+2 ;Check if explosion sprites are offset . If so ;make gameover automatically lda ObjPos+1 beq .obj2out rts .obj2out lda ObjPos+3 beq .isgameover rts .isgameover ;Display the GAME OVER text sprites lda #$00 sta $d015 ldx #0 zeropos lda #0 sta $d000,x sta ObjPos,x inx cpx #$10 bne zeropos ldx #$00 SetGOPosition lda GameOverPosition,x sta ObjPos,x inx cpx #$10 bne SetGOPosition ldx #$00 .putgameover lda GameOverSprites,x sta $07f8,x lda #$08 sta $d027,x inx cpx #$08 bne .putgameover lda SoundOption beq .skipgameoversound lda #GameOverSFX jsr SFXInit .skipgameoversound lda #0 sta FireButton lda #$ff sta $d015 lda #GameOverJingle jsr MusicInit lda #$0c sta BGColour1 lda #$0b sta BGColour2 lda #$0a sta $D025 lda #$02 sta $d026 GameOverLoop jsr SyncTimer jsr ExpandSpritePosition lda $dc00 lsr lsr lsr lsr lsr bit FireButton ror FireButton bmi GameOverLoop bvc GameOverLoop jmp HiScoreRoutine ;----------------------------------------------------------------------------------------------- ;Sprite to sprite collision - for player and bullet ;then test collision with enemy objects SpriteToSprite ;register player sprite to sprite lda ObjPos sec sbc #$06 sta ColliderPlayer clc adc #$0c sta ColliderPlayer+1 lda ObjPos+1 sec sbc #$0c sta ColliderPlayer+2 clc adc #$18 sta ColliderPlayer+3 ;Now store for the player bullet collider lda ObjPos+2 sec sbc #$06 sta ColliderBullet clc adc #$0c sta ColliderBullet+1 lda ObjPos+3 sec sbc #$0c sta ColliderBullet+2 clc adc #$18 sta ColliderBullet+3 ;Test player to alien jsr TestPlayerToAlienCollision ;Test bullet to alien jsr TestBulletToAlien ;Test collision (player to alien) TestPlayerToAlienCollision jsr TestA2P1 jsr TestA2P2 jsr TestA2P3 jsr TestA2P4 jsr TestA2P5 rts ;Generate macro code response, in order to check for ;the alien's status before calling collision checks ;with the player ship. !macro alientoplayertest aliendead, aliendeathdelay, aliendeathpointer, alienx, alieny, alienframelo { lda aliendead cmp #1 beq .nothit lda alienx cmp ColliderPlayer bcc .nothit cmp ColliderPlayer+1 bcs .nothit lda alieny cmp ColliderPlayer+2 bcc .nothit cmp ColliderPlayer+3 bcs .nothit lda ShieldTime cmp #0 bne .nothit lda alienframelo+1 cmp #<BlankSprite beq .nothit lda #0 sta aliendeathdelay sta aliendeathpointer lda #1 sta aliendead jsr PlayerIsHit .nothit rts } TestA2P1 +alientoplayertest Alien1Dead, Alien1DeathDelay, Alien1DeathPointer, ObjPos+4, ObjPos+5, A1Type TestA2P2 +alientoplayertest Alien2Dead, Alien2DeathDelay, Alien2DeathPointer, ObjPos+6, ObjPos+7, A2Type TestA2P3 +alientoplayertest Alien3Dead, Alien3DeathDelay, Alien3DeathPointer, ObjPos+8, ObjPos+9, A3Type TestA2P4 +alientoplayertest Alien4Dead, Alien4DeathDelay, Alien4DeathPointer, ObjPos+10, ObjPos+11, A4Type TestA2P5 +alientoplayertest Alien5Dead, Alien5DeathDelay, Alien5DeathPointer, ObjPos+12, ObjPos+13, A5Type ;Test alien to player bullet collision TestBulletToAlien jsr TestA2B1 jsr TestA2B2 jsr TestA2B3 jsr TestA2B4 jsr TestA2B5 rts ;Generate macro response that tests alien status before ;testing alien sprite to bullet collision. !macro alienbullettest aliendead, aliendeathdelay, aliendeathpointer, alienx, alieny, alienframe { lda aliendead cmp #1 beq .notshot lda alienx cmp ColliderBullet bcc .notshot cmp ColliderBullet+1 bcs .notshot lda alieny cmp ColliderBullet+2 bcc .notshot cmp ColliderBullet+3 bcs .notshot ;Aliens should not be destroyed if the bullet is outside the screen lda ObjPos+2 cmp #0 beq .notshot lda ObjPos+3 cmp #$32 bcc .notshot ;Aliens should not be destroyed if shot is exploding lda PlayerBulletDestroyed cmp #1 beq .notshot lda alienframe+1 cmp #<BlankSprite beq .notshot lda #<BlankSprite sta alienframe+1 lda #>BlankSprite sta alienframe+2 lda SoundOption beq .justaddpoints lda #AlienDeathSFX jsr SFXInit .justaddpoints lda #0 sta aliendeathpointer sta aliendeathdelay lda #1 sta aliendead jsr AwardPoints ;Home the player's bullet position so that the player can ;fire again. lda #0 sta ObjPos+2 .notshot rts } TestA2B1 +alienbullettest Alien1Dead, Alien1DeathDelay, Alien1DeathPointer, ObjPos+4, ObjPos+5, A1Type TestA2B2 +alienbullettest Alien2Dead, Alien2DeathDelay, Alien2DeathPointer, ObjPos+6, ObjPos+7, A2Type TestA2B3 +alienbullettest Alien3Dead, Alien3DeathDelay, Alien3DeathPointer, ObjPos+8, ObjPos+9, A3Type TestA2B4 +alienbullettest Alien4Dead, Alien4DeathDelay, Alien4DeathPointer, ObjPos+10, ObjPos+11, A4Type TestA2B5 +alienbullettest Alien5Dead, Alien5DeathDelay, Alien5DeathPointer, ObjPos+12, ObjPos+13, A5Type ;Just like with the alien to player collision, assign alien ;bullet to player collision the same way TestAlienBulletToPlayer lda ObjPos+14 cmp ColliderPlayer bcc .nobulltoplayer cmp ColliderPlayer+1 bcs .nobulltoplayer lda ObjPos+15 cmp ColliderPlayer+2 bcc .nobulltoplayer cmp ColliderPlayer+3 bcs .nobulltoplayer lda #0 sta ObjPos+14 jsr PlayerIsHit .nobulltoplayer rts ;----------------------------------------------------------------------------------------------- ;Test player's shield. When active during play, the player is left ;invulnerable for a short period of time. TestShield lda ShieldTime beq .shieldout dec ShieldTime ldx ShieldFlashPointer lda ShieldFlashColour,x sta $d027 inx cpx #ShieldFlashColourEnd-ShieldFlashColour beq .shieldloop inc ShieldFlashPointer rts .shieldloop ldx #0 stx ShieldFlashPointer rts .shieldout lda #0 sta ShieldTime lda #$0f sta $d027 rts ;------------------------------------------------------------------------------------------------ ;Scoring routine AwardPoints jmp ScoreRange1 Score1000Bonus jsr ScorePoints jsr ScorePoints jsr ScorePoints jsr ScorePoints jsr ScorePoints ScoreRange4 jsr ScorePoints jsr ScorePoints ScoreRange3 jsr ScorePoints ScoreRange2 jsr ScorePoints ScoreRange1 jsr ScorePoints rts ScorePoints inc Score+2 ;Units of 100 points ldx #2 .doscore lda Score,x cmp #$3a bne .scoreok lda #$30 sta Score,x inc Score-1,x .scoreok dex bne .doscore rts ;------------------------------------------------------------------------------------------------ ;Test enemy bullet to fire. After the enemy bullet is offset. Give some time before ;picking a random. Bullets only go down TestEnemyBullet lda AlienTypeBullet sta $07ff lda AlienTypeBulletColour sta $d02e lda ObjPos+14 beq .timedspawnbullet lda ObjPos+15 clc adc #4 sta ObjPos+15 cmp #$be bcc .notoffsetbullet lda #$00 sta ObjPos+14 sta AlienBulletWaitTime rts .notoffsetbullet sta ObjPos+15 rts ;Wait for bullet wait counter to expire before spawning ;a new alien bullet .timedspawnbullet lda AlienBulletWaitTime cmp #30 ;Interval beq .launchnewbullet inc AlienBulletWaitTime rts ;Now reset the wait timer and select the enemy to ;position the bullet with .launchnewbullet lda #0 sta AlienBulletWaitTime ldx AlienRandomPointer lda RandTable,x sta AlienSelected lda AlienSelected cmp #1 beq .alien1bulletspawncheck1 cmp #2 beq .alien2bulletspawncheck1 cmp #3 beq .alien3bulletspawncheck1 cmp #4 beq .alien4bulletspawncheck1 cmp #5 beq .alien5bulletspawncheck1 rts .alien1bulletspawncheck1 jmp .alien1bulletspawncheck .alien2bulletspawncheck1 jmp .alien2bulletspawncheck .alien3bulletspawncheck1 jmp .alien3bulletspawncheck .alien4bulletspawncheck1 jmp .alien4bulletspawncheck .alien5bulletspawncheck1 jmp .alien5bulletspawncheck ;Macro code for checking alien status before ;spawning a deadly bullet to it. !macro spawnbullet aliendead, alienframe, alienposx, alienposy { lda aliendead cmp #1 beq .cannotspawnyet lda alienframe+1 ;If alien is blank, it is dead cmp #<BlankSprite ;therefore it should not spawn beq .cannotspawnyet lda alienposx cmp #$10 bcc .cannotspawnyet cmp #$a8 bcs .cannotspawnyet lda alienposy ;Ensure alien is on screen cmp #$3a bcc .cannotspawnyet ;Checks have passed, so spawn alien bullet ;on to the aliens. lda alienposx sta ObjPos+14 lda alienposy clc adc #8 sta ObjPos+15 lda SoundOption beq .cannotspawnyet lda #AlienShootSFX jsr SFXInit .cannotspawnyet rts } .alien1bulletspawncheck +spawnbullet Alien1Dead, A1Type, ObjPos+4, ObjPos+5 .alien2bulletspawncheck +spawnbullet Alien2Dead, A2Type, ObjPos+6, ObjPos+7 .alien3bulletspawncheck +spawnbullet Alien3Dead, A3Type, ObjPos+8, ObjPos+9 .alien4bulletspawncheck +spawnbullet Alien4Dead, A4Type, ObjPos+10, ObjPos+11 .alien5bulletspawncheck +spawnbullet Alien5Dead, A5Type, ObjPos+12, ObjPos+13 ;----------------------------------------------------------------------------------------------- ;Smart background scroll macro code SmartBackgroundScroll lda GameOverIsOn cmp #1 beq .skipsmartscroll lda GameIsPaused cmp #1 beq .skipsmartscroll lda ScrollChar4 sta ScrollCharTemp4 ldx #$00 .scrollthechars lda ScrollChar4+1,x sta ScrollChar4,x inx cpx #8 bne .scrollthechars lda ScrollCharTemp4 sta ScrollChar4+7 .skipsmartscroll rts ;------------------------------------------------------------------------------------------------ ;Pal / NTSC player PalNTSCPlayer lda system cmp #1 beq .pal inc NTSCTimer lda NTSCTimer cmp #6 beq .playerloop .pal jsr MusicPlay rts .playerloop lda #0 sta NTSCTimer rts ;Explode the game background - This trick is ;triggered on the Game Over screen only. Otherwise ;enabled. ExplodeBackground lda ExplodeFlashDelay cmp #1 beq .doflashexploder inc ExplodeFlashDelay rts .doflashexploder lda #0 sta ExplodeFlashDelay ldx ExplodeFlashPointer lda ExplodeFlashTable,x sta $d021 lda ExplodeFlashTable3,x sta BGColour1 lda ExplodeFlashTable2,x sta BGColour2 inx cpx #ExplodeFlashTableEnd-ExplodeFlashTable beq .greyoutscreen inc ExplodeFlashPointer rts .greyoutscreen ldx #ExplodeFlashTableEnd-ExplodeFlashTable-1 stx ExplodeFlashPointer rts ;------------------------------------------------------------------------------------- ;Construct main IRQ raster interrupts. !source "irq.asm" ;Additional assembly source pointers !source "pointers.asm"
23.767549
114
0.50206
e32f58ab516d1ba2c7fff6027edd1d75294344f3
553
asm
Assembly
programs/oeis/071/A071122.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/071/A071122.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/071/A071122.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A071122: a(n) = a(n-1) + sum of decimal digits of 2^n. ; 2,6,14,21,26,36,47,60,68,75,89,108,128,150,176,201,215,234,263,294,320,345,386,423,452,492,527,570,611,648,695,753,815,876,935,999,1055,1122,1193,1254,1304,1350,1406,1464,1526,1596,1664,1737,1802,1878,1958 mov $3,$0 add $3,1 mov $6,$0 lpb $3 mov $0,$6 sub $3,1 sub $0,$3 mov $5,$0 mov $0,2 add $5,1 pow $0,$5 sub $0,1 mov $5,6 lpb $0 mov $2,$0 div $0,10 mod $2,10 mov $7,$5 add $7,$2 mov $5,$7 lpe mov $4,$5 sub $4,5 add $1,$4 lpe mov $0,$1
18.433333
207
0.56962
d2a143506dc246cb30cd4226ed20afbce56880e3
287
asm
Assembly
Assembly/Examples/fib8.asm
p-rivero/CESCA
7772671e36ef137bdb468bc09f50e53f0371ce20
[ "MIT" ]
7
2020-05-18T15:33:30.000Z
2021-02-07T09:24:05.000Z
Assembly/Examples/fib8.asm
p-rivero/CESCA
7772671e36ef137bdb468bc09f50e53f0371ce20
[ "MIT" ]
null
null
null
Assembly/Examples/fib8.asm
p-rivero/CESCA
7772671e36ef137bdb468bc09f50e53f0371ce20
[ "MIT" ]
1
2021-01-30T22:56:36.000Z
2021-01-30T22:56:36.000Z
#include "CESCA.cpu" #include "startup.asm" ; FIBONACCI SEQUENCE #bank program mov R0, 0 mov R1, 1 fib: mov OUT, R1 add R0, R0, R1 jc .end mov OUT, R0 add R1, R0, R1 jnc fib .end: hlt ; Stops at the last 8-bit number in the sequence (233)
14.35
62
0.578397
70aac6dce87d3226b5dfe0d3acf825c2818067ff
4,695
asm
Assembly
Library/Text/Text/textEntry.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Text/Text/textEntry.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Text/Text/textEntry.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1993 -- All Rights Reserved PROJECT: PC/GEOS MODULE: Text Library FILE: textEntry.asm AUTHOR: Vijay Menon, Sep 13, 1993 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- VM 9/13/93 Initial revision DESCRIPTION: Library entry point routines. $Id: textEntry.asm,v 1.4 98/03/24 23:16:20 gene Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ForceRef TextLibraryEntry ifdef USE_FEP udata segment fepStrategy fptr.far 0 ; Pointer to FEP ; strategy function. fepDrHandle hptr.GeodeHeader udata ends endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TextLibraryEntry %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Text Library Init/Deinit. CALLED BY: INTERNAL () PASS: di = LibraryCallType RETURN: carry = set if error DESTROYED: si, di SIDE EFFECTS: PSEUDO CODE/STRATEGY: When the text library is initially loaded, check the INI file for FEP driver. If one is listed, load it. Upon exiting the text library, unload the FEP driver. REVISION HISTORY: Name Date Description ---- ---- ----------- VM 9/13/93 Initial version eca 3/14/97 added localized smart quotes %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TextInit segment resource ifdef USE_FEP FEP_DRIVER_NAME_LENGTH equ 12 fepCategory char "fep",0 fepDriverKey char "driver",0 LocalDefNLString fepDirectory <"FEP",0> endif ; USE_FEP quoteCategory char "localization",0 quoteKey char "quotes",0 TextLibraryEntry proc far uses ax,bx,cx,dx,ds,es,di,si,bp .enter ; ; ds <- Segment address of dgroup. ; segmov ds, dgroup, ax ; ; Call appropriate routine based on LibraryCallType. ; shl di call cs:[libraryEntryTable][di] .leave ret libraryEntryTable nptr.near \ loadFep, ; LCT_ATTACH unloadFep, ; LCT_DETACH doNothing, ; LCT_NEW_CLIENT doNothing, ; LCT_NEW_CLIENT_THREAD doNothing, ; LCT_CLIENT_THREAD_EXIT doNothing ; LCT_CLIENT_EXIT .assert length libraryEntryTable eq LibraryCallType loadFep: ; ; read the quotes set in the GEOS.INI file, if any ; push ds segmov ds, cs, cx mov si, offset quoteCategory ;ds:si <- category mov dx, offset quoteKey ;cx:dx <- key mov bp, InitFileReadFlags<IFCC_INTACT, 0, 0, (size TCHAR)*4> ;bp <- InitFileReadFlags segmov es, dgroup, ax mov di, offset uisqOpenSingle ;es:di <- buffer call InitFileReadData pop ds ifdef USE_FEP ; ; LCT_ATTACH ; ---------- ; Check for FEP driver in the INI file. Load any listed ; driver and store the corresponding strategy function in ; fepStrategy. If no FEP driver is listed clear fepStrategy. ; push ds, bp ; ; Set parameters for InitFileReadString. ; ds:si = FEP category name ; cx:dx = FEP driver key name ; bp = 0 ; segmov ds, cs, cx mov si, offset fepCategory mov dx, offset fepDriverKey clr bp call InitFileReadString ; CF = 1 iff no driver jc loadDone ; ; Switch to the FEP driver directory ; push bx, dx call FilePushDir mov bx, SP_SYSTEM ; bx <- StandardPath mov dx, offset fepDirectory ; ds:dx <- ptr to path call FileSetCurrentPath pop bx, dx jc popDir ; branch if error ; ; FEP Driver is listed. bx = handle of driver name. ; Load the driver and obtain a pointer to its strategy. ; push bx call MemLock mov ds, ax clr si, ax, bx call GeodeUseDriver ; Load the driver. jc popExit ; branch if error. mov bp, bx ; bp = driver handle call GeodeInfoDriver ; Get the strategy pointer. pop bx call MemFree ; ; Store strategy pointer in local variable (fepStrategy). ; mov ax, ds:[si].DIS_strategy.segment mov si, ds:[si].DIS_strategy.offset segmov ds, dgroup, bx mov ds:fepStrategy.segment, ax mov ds:fepStrategy.offset, si mov ds:fepDrHandle, bp ; ; Return to whence we came ; popDir: call FilePopDir loadDone: clc pop ds, bp retn popExit: pop bx call MemFree jmp popDir unloadFep: ; ; LCT_DETACH ; ---------- ; If FEP Driver is loaded, unload it. ; mov bx, ds:[fepDrHandle] tst bx jz doNothing call GeodeFreeDriver else ; !USE_FEP unloadFep: endif ; USE_FEP doNothing: clc retn TextLibraryEntry endp ForceRef TextLibraryEntry TextInit ends
21.053812
79
0.60852
a1fda4941da59660a5eb8de04f4ea9a40a17b6e5
4,144
asm
Assembly
kernel/src/arch/x86_64/boot/boot.asm
Nanoteck137/rest-os
1c65431dbe3e7dc623ad35badf2b55bc37cfbf09
[ "MIT" ]
null
null
null
kernel/src/arch/x86_64/boot/boot.asm
Nanoteck137/rest-os
1c65431dbe3e7dc623ad35badf2b55bc37cfbf09
[ "MIT" ]
null
null
null
kernel/src/arch/x86_64/boot/boot.asm
Nanoteck137/rest-os
1c65431dbe3e7dc623ad35badf2b55bc37cfbf09
[ "MIT" ]
null
null
null
section .multiboot_header header_start: dd 0xe85250d6 ; magic number (multiboot 2) dd 0 ; architecture 0 (protected mode i386) dd header_end - header_start ; header length ; checksum dd 0x100000000 - (0xe85250d6 + 0 + (header_end - header_start)) ; insert optional multiboot tags here ; required end tag dw 0 ; type dw 0 ; flags dd 8 ; size header_end: section .text global boot_entry bits 32 boot_entry: cli cld mov esp, stack_top ; Push the ebx register becuase it hold the pointer to the Multiboot ; structure needed by the kernel push ebx ; TODO(patrik): Check multiboot ; TODO(patrik): Check if CPUID is available ; TODO(patrik): Check if Long mode is available call setup_page_tables call enable_paging lgdt [gdt64.pointer] mov dword [0xb8000], 0x2f4b2f4f jmp 0x08:long_mode_start enable_paging: ; Setup the correct page table to use mov eax, p4_table mov cr3, eax ; Enable the PAE (Physical Address Extention) flag inside ; the ´cr4´ register mov eax, cr4 or eax, 1 << 5 mov cr4, eax ; Setup Long mode by setting a bit inside the EFER MSR mov ecx, 0xC0000080 rdmsr or eax, 1 << 8 wrmsr ; Enable paging by setting a bit inside the ´cr0´ register mov eax, cr0 or eax, 1 << 31 mov cr0, eax ret setup_page_tables: ; Add the lower p3 table to the p4 table mov eax, lower_p3_table or eax, 0b11 mov [p4_table + 0 * 8], eax ; Add the lower p2 table to the lower p3 table mov eax, lower_p2_table or eax, 0b11 mov [lower_p3_table + 0 * 8], eax ; Add the upper p3 table to the p4 table mov eax, upper_p3_table or eax, 0b11 mov [p4_table + 511 * 8], eax ; Add the upper p2 table to the upper p3 table mov eax, upper_p2_table or eax, 0b11 mov [upper_p3_table + 510 * 8], eax ; Initialize the counter mov ecx, 0 .map_p2_table: ; 2-MiB steps per page mov eax, 0x200000 ; Multiply the index mul ecx ; Add the PRESENT + WRITABLE + HUGE flags to the entry or eax, 0b10000011 ; Add the entry to both the lower and upper p2 tables mov [lower_p2_table + ecx * 8], eax mov [upper_p2_table + ecx * 8], eax ; Increment the counter inc ecx ; If we the counter reaches 512 then we have mapped all the 512 ; entries insides the lower and upper p2 tables cmp ecx, 512 ; If the counter is not equal to 512 then continue to map in the entries ; needed inside the tables jne .map_p2_table ; Return from the function ret section .text bits 64 extern kernel_init long_mode_start: ; NOTE(patrik): Now we are in 64 bit land ; Setup all the segment register mov ax, 0 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax ; Jump to the upper half of the kernel ; To do so we need to add the offset to RIP and we do so by adding ; the offset for an jump and then jumping to the location + the offset mov rax, .target add rax, 0xffffffff80000000 jmp rax .target: ; Move the Stack pointer up to upper memory mov rax, rsp add rax, 0xffffffff80000000 mov rsp, rax ; Pop of the Multiboot Structure pointer we pushed on previously pop rdi ; Set rax to the kernel_init function from rust becuase i did have a ; problem with just 'call kernel_init' and this fixed that problem mov rax, kernel_init ; Call the kernel_init function call rax hlt section .bss align 4096 p4_table: resb 4096 ; NOTE(patrik): The upper tables are used for the mapping for ; the Higher half kernel upper_p3_table: resb 4096 upper_p2_table: resb 4096 ; NOTE(patrik): The lower tables are used for the mapping for ; the Lower half kernel lower_p3_table: resb 4096 lower_p2_table: resb 4096 stack_bottom: resb 4096 * 8 stack_top: section .rodata gdt64: dq 0 ; zero entry dq (1<<43) | (1<<44) | (1<<47) | (1<<53) ; code segment .pointer: dw $ - gdt64 - 1 dq gdt64
22.521739
76
0.653475
e77150981accb5b23a168b15977bb20a86a34f62
8,704
asm
Assembly
tests/devices/mmu_incbin_bug_data.i.asm
fengjixuchui/sjasmplus
df0fabd2411bf89e23637fce46d273f52dafbe16
[ "BSD-3-Clause" ]
220
2016-10-22T19:44:39.000Z
2022-03-29T20:57:04.000Z
tests/devices/mmu_incbin_bug_data.i.asm
ped7g/sjasmplus
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
[ "BSD-3-Clause" ]
153
2018-05-07T10:31:23.000Z
2022-03-30T04:35:59.000Z
tests/devices/mmu_incbin_bug_data.i.asm
ped7g/sjasmplus
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
[ "BSD-3-Clause" ]
51
2016-05-12T21:27:36.000Z
2022-03-27T15:16:16.000Z
# file opened: mmu.asm 1 0000 ; DOCS design (happened here, while working on it): 2 0000 ; 3 0000 ; MMU <first slot number> [<last slot number>|<single slot option>], <page number> 4 0000 ; 5 0000 ; Maps memory page(s) to slot(s), similar to SLOT + PAGE combination, but allows to set up 6 0000 ; whole range of consecutive slots (with consecutive memory pages). Or when only single 7 0000 ; slot is specified, extra option can be used to extend particular slot functionality. 8 0000 ; The slot behaviour will stay set in the current DEVICE until reset by another MMU 9 0000 ; specifying same slot (even as part of range, that will clear the option to "default"). 10 0000 ; 11 0000 ; Single slot option (default state is: no error/warning and no wrap = nothing special): 12 0000 ; e = error on writing beyond last byte of slot 13 0000 ; w = warning on writing beyond last byte of slot 14 0000 ; n = wrap address back to start of slot, map next page 15 0000 ; 16 0000 17 0000 DEVICE NONE ; set "none" explicitly, to avoid "global device" feature mmu.asm(18): warning: MMU is allowed only in real device emulation mode (See DEVICE) 18 0000 MMU ;; warning about non-device mode 19 0000 DEVICE ZXSPECTRUM128 20 0000 21 0000 ;; error messages (parsing test) mmu.asm(22): error: [MMU] First slot number parsing failed: MMU ! 22 0000 MMU ! mmu.asm(23): error: [MMU] Second slot number parsing failed: MMU 1 23 0000 MMU 1 mmu.asm(24): error: [MMU] Second slot number parsing failed: MMU 1 ! 24 0000 MMU 1 ! mmu.asm(25): warning: [MMU] Unknown slot option (legal: e, w, n): x mmu.asm(25): error: [MMU] Comma and page number expected after slot info: MMU 1 x 25 0000 MMU 1 x ; white space (or comma) after char to detect it as unknown option mmu.asm(26): warning: [MMU] Unknown slot option (legal: e, w, n): x, mmu.asm(26): error: [MMU] Page number parsing failed: MMU 1 x, 26 0000 MMU 1 x, mmu.asm(27): error: [MMU] Comma and page number expected after slot info: MMU 1 1 27 0000 MMU 1 1 mmu.asm(28): error: [MMU] Page number parsing failed: MMU 0, 28 0000 MMU 0, mmu.asm(29): error: [MMU] Page number parsing failed: MMU 0 1, 29 0000 MMU 0 1, mmu.asm(30): error: [MMU] Page number parsing failed: MMU 0 e, 30 0000 MMU 0 e, mmu.asm(31): error: [MMU] Page number parsing failed: MMU 0 e,! 31 0000 MMU 0 e,! 32 0000 33 0000 ;; correct syntax, invalid arguments mmu.asm(34): error: [MMU] Requested page(s) must be in range 0..7 34 0000 MMU 0,8 mmu.asm(35): error: [MMU] Slot number(s) must be in range 0..3 and form a range 35 0000 MMU 4,0 mmu.asm(36): error: [MMU] Slot number(s) must be in range 0..3 and form a range 36 0000 MMU 3 4,0 mmu.asm(37): error: [MMU] Requested page(s) must be in range 0..7 37 0000 MMU 0 0,8 mmu.asm(38): error: [MMU] Slot number(s) must be in range 0..3 and form a range 38 0000 MMU 1 0,0 mmu.asm(39): error: [MMU] Requested page(s) must be in range 0..7 39 0000 MMU 0 2,6 ; map pages 6, 7, 8 -> 8 is wrong 40 0000 41 0000 ;; test functionality 42 0000 ; set init markers in pages 0, 5, 6 and 7 43 0000 37 37 DB "77" 43 0002 ORG 0xC000 43 C000 30 30 DB "00" 43 C002 ORG 0xC000, 5 43 C000 35 35 DB "55" 43 C002 ORG 0xC000, 6 43 C000 36 36 DB "66" 44 C002 PAGE 7 44 C002 ASSERT {0xC000} == "77" 44 C002 PAGE 6 44 C002 ASSERT {0xC000} == "66" 45 C002 PAGE 5 45 C002 ASSERT {0xC000} == "55" 45 C002 PAGE 0 45 C002 ASSERT {0xC000} == "00" 46 C002 47 C002 ; test simple page-in 48 C002 MMU 0, 5 48 C002 ASSERT {0} == "55" 49 C002 MMU 1 3, 5 49 C002 ASSERT {0x4000} == "55" 49 C002 ASSERT {0x8000} == "66" 49 C002 ASSERT {0xC000} == "77" 50 C002 51 C002 ;; test slot options (these are confined to single slot only, not to range) 52 C002 ; error option (guarding machine code write outside of current slot) 53 C002 MMU 1 e, 5 53 C002 ASSERT {0x4000} == "55" 54 C002 ORG 0x7FFF mmu.asm(54): error: Write outside of memory slot: 32768 54 7FFF 36 73 ld (hl),'s' ; should be error, 2B opcode leaving slot memory 55 8001 ASSERT {0x8000} == "6s" ; but damage is done in the virtual memory, that's how it is 56 8001 ; while escaping from slot through ORG should be legal 57 8001 ORG 0x7FFF 57 7FFF 00 nop 57 8000 ORG 0x8000 57 8000 36 36 DB "66" 58 8002 ; changing page within tainted slot will keep the guarding ON 59 8002 SLOT 1 59 8002 PAGE 6 59 8002 ASSERT {0x4000} == "66" ; map page 6 also into slot 1 60 8002 ORG 0x7FFF mmu.asm(60): error: Write outside of memory slot: 32768 60 7FFF 36 73 ld (hl),'s' 60 8001 ASSERT {0x8000} == "6s" ; error + damage check 61 8001 62 8001 ; verify clearing option by another MMU 63 8001 MMU 1, 5 63 8001 ASSERT {0x4000} == "55" 64 8001 ORG 0x7FFF 64 7FFF 36 36 ld (hl),'6' 64 8001 ASSERT {0x8000} == "66" ; no error 65 8001 66 8001 ; warning option (guarding machine code write outside of current slot) 67 8001 MMU 1 w, 5 67 8001 ASSERT {0x4000} == "55" 68 8001 ORG 0x7FFF mmu.asm(68): warning: Write outside of memory slot 68 7FFF 36 73 ld (hl),'s' ; should be warning, 2B opcode leaving slot memory 69 8001 ASSERT {0x8000} == "6s" ; but damage is done in the virtual memory, that's how it is 70 8001 ; while escaping from slot through ORG should be legal 71 8001 ORG 0x7FFF 71 7FFF 00 nop 71 8000 ORG 0x8000 71 8000 36 36 DB "66" 72 8002 ; changing page within tainted slot will keep the guarding ON 73 8002 SLOT 1 73 8002 PAGE 6 73 8002 ASSERT {0x4000} == "66" ; map page 6 also into slot 1 74 8002 ORG 0x7FFF mmu.asm(74): warning: Write outside of memory slot 74 7FFF 36 73 ld (hl),'s' 74 8001 ASSERT {0x8000} == "6s" ; warning + damage check 75 8001 76 8001 ; verify clearing option by another MMU when the slot is part of range 77 8001 MMU 0 2, 5 77 8001 ASSERT {0x4000} == "6s" 78 8001 ORG 0x7FFF 78 7FFF 36 37 ld (hl),'7' 78 8001 ASSERT {0x8000} == "77" ; no warning 79 8001 80 8001 ; next option making the memory wrap, automatically mapping in next page 81 8001 MMU 1 n, 2 82 8001 ORG 0x4000 82 4000 6E 6E 6E... BLOCK 3*16384, 'n' ; fill pages 2, 3 and 4 with 'n' 83 4000 ASSERT {0x4000} == "55" && {0x8000} == "77" ; page 5 is mapped in after that block 84 4000 SLOT 1 ; verify the block write 85 4000 PAGE 2 85 4000 ASSERT {0x4000} == "nn" 86 4000 PAGE 3 86 4000 ASSERT {0x4000} == "nn" 87 4000 PAGE 4 87 4000 ASSERT {0x4000} == "nn" 88 4000 89 4000 ; do the wrap-around test with instructions, watch labels land into different pages 90 4000 MMU 1 n, 4 91 4000
54.742138
116
0.516544
99221c1d272444c9d23ab91f38f2261ce4fb8373
1,565
asm
Assembly
src/conta_volte.asm
tomellericcardo/AssemblyExercises
c2a9d1b376a25d70872a27699368b7b8e6e17b85
[ "Apache-2.0" ]
null
null
null
src/conta_volte.asm
tomellericcardo/AssemblyExercises
c2a9d1b376a25d70872a27699368b7b8e6e17b85
[ "Apache-2.0" ]
null
null
null
src/conta_volte.asm
tomellericcardo/AssemblyExercises
c2a9d1b376a25d70872a27699368b7b8e6e17b85
[ "Apache-2.0" ]
null
null
null
.orig x3000 LEA R0, stg ; R0 punta alla stringa di test LD R1, car ; R1 contiene il carattere di test JSR CONTA_VOLTE ; sottoprogramma conteggio occorrenze TRAP x25 ; arresto il processore stg .stringz "Buon Sabato 7 febbraio 2015" ; stringa di test car .stringz "b" ; carattere di test CONTA_VOLTE ST R2, st_r2 ; salvo R2 ST R3, st_r3 ; salvo R3 ST R4, st_r4 ; salvo R4 ST R5, st_r5 ; salvo R5 NOT R1, R1 ; nego R1 ADD R1, R1, #1 ; R1 = -R1 AND R2, R2, #0 ; R2 conta le occorrenze maiuscole AND R3, R3, #0 ; R3 conta le occorrenze minuscole LD R5, diff ; carico x20 in R5 loop LDR R4, R0, #0 ; R4 contiene il carattere corrente BRZ fine ; fine della stringa ADD R4, R4, R1 ; R4 = R4 - R1 BRZ occ_mi ; se R4 - R1 = 0, occorrenza minuscola ADD R4, R4, R5 ; R4 = R4 - R1 + x20 BRZ occ_ma ; se R4 - R1 + x20 = 0, occorrenza maiuscola next ADD R0, R0, #1 ; incremento puntatore alla stringa BRNZP loop ; ciclo occ_ma ADD R2, R2, #1 ; incremento contatore maiuscole BRNZP next ; continuo il ciclo occ_mi ADD R3, R3, #1 ; incremento contatore minuscole BRNZP next ; continuo il ciclo fine ADD R0, R2, #0 ; copio R2 in R0 ADD R1, R3, #0 ; copio R3 in R1 LD R2, st_r2 ; ripristino R2 LD R3, st_r3 ; ripristino R3 LD R4, st_r4 ; ripristino R4 LD R5, st_r5 ; ripristino R5 RET ; ritorno al programma chiamante st_r2 .blkw 1 ; zona salvataggio R2 st_r3 .blkw 1 ; zona salvataggio R3 st_r4 .blkw 1 ; zona salvataggio R4 st_r5 .blkw 1 ; zona salvataggio R5 diff .fill x20 ; differenza maiuscole e minuscole .end
25.241935
60
0.688818
bab223700506480c84dc9c762581cb34742983e2
10,923
asm
Assembly
src/asm/gameplay.asm
DJRideout/MegaManX4Practice
9df3c879b64e48a87077c40701234171435091a4
[ "MIT" ]
1
2022-02-24T03:10:14.000Z
2022-02-24T03:10:14.000Z
src/asm/gameplay.asm
DJRideout/MegaManX4Practice
9df3c879b64e48a87077c40701234171435091a4
[ "MIT" ]
null
null
null
src/asm/gameplay.asm
DJRideout/MegaManX4Practice
9df3c879b64e48a87077c40701234171435091a4
[ "MIT" ]
null
null
null
.psx ; Overwrite the logic for ending a stage to always either go to part 2 or go to mission complete @stage_end: replace 0x800200FC lb v0,CURRENT_STAGE lb v1,STAGE_PART subi v0,v0,9 ; Will now be 0 if this is X's Colonel fight beq v0,$zero,@@set_mission_complete subi v0,v0,1 ; Will now be 0 if this is Space Port beq v0,$zero,@@set_mission_complete subi v1,1 ; Will now be 0 if already on part 2 of the stage beq v1,$zero,@@set_mission_complete li v1,1 sb v1,STAGE_PART j @stage_end nop @@set_mission_complete: j 0x80020348 li v0,9 endreplace @stage_end ; I can't remember how much space left I have above to overwrite more existing code, ; so I'll just jump to my own space on going to part 2 of a stage for now. push t1 push ra jal store_upgrades sb $zero,CHECKPOINT_STORAGE sb $zero,WEAPON_STORAGE pop ra pop t1 j 0x80020348 li v0,4 ; Game state 4 loads a stage. Existing code sets v0 to the game state after 0x80020348 ; Always keep refight capsules enabled. @capsules_enabled: replace 0x800C78DC li v0,2 ; Exit. Faking out the refight capsules as being in disabled state. endreplace @capsules_enabled replace 0x8008026C sb $zero,0x21EC(at) ; Dragoon endreplace @capsules_enabled replace 0x800758C8 sb $zero,0x21EC(at) ; Owl endreplace @capsules_enabled replace 0x80072894 sb $zero,0x21EC(at) ; Walrus endreplace @capsules_enabled replace 0x8006C244 sb $zero,0x21EC(at) ; Beast endreplace @capsules_enabled replace 0x80079078 sb $zero,0x21EC(at) ; Mushroom endreplace @capsules_enabled replace 0x800720E8 sb $zero,0x21EC(at) ; Stingray endreplace @capsules_enabled replace 0x8007DBA8 sb $zero,0x21EC(at) ; Peacock endreplace @capsules_enabled replace 0x80065504 sb $zero,0x21EC(at) ; Spider endreplace @capsules_enabled ; Move player's return position after a refight to not re-teleport back into the fight. ; All are offset by 10 pixels in the appropriate direction. @capsule_respawn_positions: replace 0x800F3DA0 db 0x52 ; Exit endreplace @capsule_respawn_positions replace 0x800F3F08 db 0x26 ; Dragoon endreplace @capsule_respawn_positions replace 0x800F3F98 db 0xE6 ; Owl endreplace @capsule_respawn_positions replace 0x800F4004 db 0xA6 ; Walrus endreplace @capsule_respawn_positions replace 0x800F3FE0 db 0x86 ; Beast endreplace @capsule_respawn_positions replace 0x800F3F50 db 0x0A ; Mushroom endreplace @capsule_respawn_positions replace 0x800F3F74 db 0xEA ; Stingray endreplace @capsule_respawn_positions replace 0x800F3F2C db 0xAA ; Peacock endreplace @capsule_respawn_positions replace 0x800F3FBC db 0x6A ; Spider endreplace @capsule_respawn_positions ; Infinite lives @infinite_lives: replace 0x800202C0 nop endreplace @infinite_lives ; Show current checkpoint under health bar instead of lives. @show_checkpoint: replace 0x80024EA8 lbu a1,CHECKPOINT_STORAGE endreplace @show_checkpoint ; Select+INPUT hacks @select_hacks: replace 0x8001247C ; this only runs when the screen isn't fading out jal @select_hacks nop ; there's an lhu here, nopping out second part of 2-instruction endreplace @select_hacks push t1 push t2 push t3 push t4 ; If not in a gameplay state, don't do anything. (0x0006 halfword) lhu t1,GAME_STATE_1 nop subi t1,t1,0x0006 bne t1,$zero,@@done nop ; If ready to load checkpoint, just do that. lb t1,CHECKPOINT_LOAD_READY nop bne $zero,t1,@@checkpoint_loading nop lhu v0,CONTROLLER_INPUTS_1 lhu t2,CONTROLLER_INPUTS_1_PREV @@check_select_l2: li t1,0x0101 andi t3,v0,0x0101 andi t4,t2,0x0101 bgeu t4,t3,@@check_select_r2 nop beq t3,t1,@@select_l2 nop @@check_select_r2: li t1,0x0102 andi t3,v0,0x0102 andi t4,t2,0x0102 bgeu t4,t3,@@check_select_left nop beq t3,t1,@@select_r2 nop @@check_select_left: li t1,0x8100 andi t3,v0,0x8100 andi t4,t2,0x8100 bgeu t4,t3,@@check_select_right nop beq t3,t1,@@select_left nop @@check_select_right: li t1,0x2100 andi t3,v0,0x2100 andi t4,t2,0x2100 bgeu t4,t3,@@check_select_up nop beq t3,t1,@@select_right nop @@check_select_up: li t1,0x1100 andi t3,v0,0x1100 andi t4,t2,0x1100 bgeu t4,t3,@@done nop beq t3,t1,@@select_up nop j @@done nop @@select_l2: li t1,1 sb t1,CHECKPOINT_LOAD_READY push ra jal load_upgrades nop jal refill_all nop lb t2,CHECKPOINT_STORAGE pop ra sb t2,CURRENT_CHECKPOINT j @@done nop @@select_r2: push ra jal store_upgrades nop pop ra push a0 push a1 push a2 push ra li a0,0 li a1,MENU_SELECT_SOUND_ID jal PLAY_SOUND_SUB li a2,0 pop ra pop a2 pop a1 pop a0 j @@done nop @@select_left: lb t1,CURRENT_STAGE lui t0,hi(org(stage_id_to_num_checkpoints)) sll t1,t1,1 addu t0,t0,t1 lb t1,STAGE_PART nop addu t0,t0,t1 lb t1,CHECKPOINT_STORAGE lb t0,lo(org(stage_id_to_num_checkpoints))(t0) subi t1,t1,1 bge t1,$zero,@@finish_select_left ; Loop to highest possible checkpoint subi t0,t0,1 addu t1,$zero,t0 @@finish_select_left: sb t1,CHECKPOINT_STORAGE j @@done nop @@select_right: lb t1,CURRENT_STAGE lui t0,hi(org(stage_id_to_num_checkpoints)) sll t1,t1,1 addu t0,t0,t1 lb t1,STAGE_PART nop addu t0,t0,t1 lb t1,CHECKPOINT_STORAGE lb t0,lo(org(stage_id_to_num_checkpoints))(t0) addiu t1,t1,1 blt t1,t0,@@finish_select_right nop li t1,0 @@finish_select_right: sb t1,CHECKPOINT_STORAGE j @@done nop @@select_up: push ra jal refill_all nop pop ra j @@done nop @@checkpoint_loading: li t1,1 sb t1,CHECKPOINT_LOADING li t1,0x0003 sh t1,TELEPORT_VALUE_1 li t1,0x00C0 ;can't sh here, unaligned? sb t1,TELEPORT_VALUE_2 srl t1,8 sb t1,(TELEPORT_VALUE_2 + 1) sb $zero,CHECKPOINT_LOAD_READY ;j @@done ;nop @@done: lhu v0,INPUT_1_PREV ; Overwritten code. pop t4 pop t3 pop t2 pop t1 jr ra nop @prevent_stun: replace 0x800343C0 ; Sets stunned state (0x801418CD) to 2, or not stunned j org(@prevent_stun) nop endreplace @prevent_stun push t1 lb t1,CHECKPOINT_LOADING nop beq t1,$zero,@@not_preventing sb $zero,CHECKPOINT_LOADING ; When the top bit of HP is set (negative), player becomes stunned. ; So unset that bit here. lb t1,CURRENT_HP nop andi t1,t1,0x7F sb t1,CURRENT_HP @@not_preventing: pop t1 ; Overwritten code lb v1,2(s0) j (0x800343C0 + 8) sb v0,5(s0) ; Remove WARNING sirens before bosses. ; This overwrites the subroutine address for starting the siren. ; Also wait until camera stops before spawning bosses. @warning_remove: replace 0x8010BE84 dw org(@warning_remove) endreplace @warning_remove push t0 push t1 lw t0,CAM_X_CURR nop lw t1,CAM_X_PREV nop bne t0,t1,@@wait_for_camera nop lw t0,CAM_Y_CURR nop lw t1,CAM_Y_PREV nop bne t0,t1,@@wait_for_camera nop pop t1 pop t0 j 0x800BAF04 ; Subroutine addr next in table nop @@wait_for_camera: pop t1 pop t0 jr ra nop ; Refill HP of Sigma forms on death and keep fight state at 0 (both alive) @sigma_reset_state: replace 0x8008F644 ; Keep the fight state at 0 when one of the forms dies, and refill the HP. jal @sigma_reset_state nop endreplace @sigma_reset_state ; v0 here is 2 if ground is dying, 1 if gunner is dying sb $zero,SIGMA_FIGHT_STATE push t0 push t1 li t0,0x30 la t1,ONE_BEFORE_SIGMA_HPS add t1,t1,v0 sb t0,0(t1) pop t1 pop t0 jr ra nop @flag_spawn_which_sigma: replace 0x8008DBE8 jal @flag_spawn_which_sigma nop endreplace @flag_spawn_which_sigma ; v0 will be 4 here if spawning gunner push v1 li v1,4 beq v0,v1,@@flag_spawn_ground_next nop li v1,1 sb v1,SPAWN_NEXT_SIGMA j @@end nop @@flag_spawn_ground_next: sb $zero,SPAWN_NEXT_SIGMA @@end: pop v1 ; Overwritten code sb v0,5(s0) lbu v0,0x96(s0) nop jr ra nop @check_spawn_gunner: replace 0x8008DBC4 ; this runs when deciding whether to spawn gunner or not jal @check_spawn_gunner nop nop nop endreplace @check_spawn_gunner lb v1,SPAWN_NEXT_SIGMA li v0,1 beq v1,v0,@@spawn_gunner_trampoline nop jr ra nop @@spawn_gunner_trampoline: j 0x8008DBE4 li v0,2 @check_spawn_ground: replace 0x8008DB6C ; this runs when deciding whether to spawn ground or not jal @check_spawn_ground nop nop nop endreplace @check_spawn_ground lb v1,SPAWN_NEXT_SIGMA nop beq v1,$zero,@@spawn_ground_trampoline nop jr ra nop @@spawn_ground_trampoline: j 0x8008DBE8 li v0,6 ; Enable Escape option in start menu in all stages. @escape_option: replace 0x80017514 nop ; Don't skip over updating start menu stuff based on current stage endreplace @escape_option replace 0x80017568 nop ; Always draw escape button regardless of if current stage is flagged defeated endreplace @escape_option replace 0x8002FF48 nop ; Nop out branch depending on current stage, which would disable escape option endreplace @escape_option replace 0x8002FF64 nop ; Nop out branch on mav not defeated for this stage, so every mav stage and endgame stages have escape option endreplace @escape_option ; Fix checkpoint 0x03 in Mushroom so player ends up with the correct Y position. ; This adds the correct Y position into a lookup table based on stage and checkpoint IDs, ; where for some reason Mushroom checkpoint 3 had a Y position of 0. @mushroom_checkpoint_fix: replace 0x800F8B5E dh 0x02CB endreplace @mushroom_checkpoint_fix ; 0x8003593C sets y position to 0x09CB if the current stage part is not equal to 0. ; This position is not correct for part 2 checkpoint 0, so X dies immediately. ; Add some code to check for Peacock stage, part 2, checkpoint 0. @peacock_checkpoint_fix: replace 0x8003593C j org(@peacock_checkpoint_fix) li v0,0x09CB endreplace @peacock_checkpoint_fix push t0 push t1 lb t0,STAGE_PART nop beq t0,$zero,@@skip nop lb t0,CURRENT_STAGE li t1,STAGE_ID_PEACOCK bne t0,t1,@@end lb t0,STAGE_PART li t1,1 bne t0,t1,@@end nop lb t0,CURRENT_CHECKPOINT nop bne t0,$zero,@@end nop li v0,0x03CB ; The correct Y position for this checkpoint @@end: pop t1 pop t0 j 0x800359A0 ; Where the game was conditionally branching in the replaced code nop @@skip: ; Since the original code was a BNE this accounts for the false case pop t1 pop t0 j (0x8003593C + 8) nop
23.591793
117
0.703195
9fadd643659cc716318a47c309b1c867bd5e50f8
764
asm
Assembly
programs/oeis/020/A020875.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/020/A020875.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/020/A020875.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A020875: Number of (undirected) Hamiltonian paths in n-Moebius ladder. ; 0,4,12,36,72,140,228,364,528,756,1020,1364,1752,2236,2772,3420,4128,4964,5868,6916,8040,9324,10692,12236,13872,15700,17628,19764,22008,24476,27060,29884,32832,36036,39372,42980,46728,50764,54948,59436,64080,69044,74172,79636,85272,91260,97428,103964,110688,117796,125100,132804,140712,149036,157572,166540,175728,185364,195228,205556,216120,227164,238452,250236,262272,274820,287628,300964,314568,328716,343140,358124,373392,389236,405372,422100,439128,456764,474708,493276,512160,531684,551532,572036,592872,614380,636228,658764,681648,705236,729180,753844,778872,804636,830772,857660,884928,912964,941388,970596 mov $1,$0 pow $0,2 add $0,3 div $0,2 mul $0,$1 mul $0,4 div $0,8 mul $0,4
63.666667
615
0.799738
7012548dd64913518a908f8b8cefe0af3bd9e5a0
5,238
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_280.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_280.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_280.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 %r14 push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xedad, %r11 nop nop nop nop nop sub %r14, %r14 and $0xffffffffffffffc0, %r11 movntdqa (%r11), %xmm3 vpextrq $1, %xmm3, %r10 nop add $15514, %rcx lea addresses_UC_ht+0xae2d, %rdi nop nop nop nop and %r11, %r11 mov (%rdi), %rsi nop nop nop nop xor %r14, %r14 lea addresses_WC_ht+0x1214d, %rsi lea addresses_D_ht+0x342d, %rdi nop xor $36943, %r10 mov $120, %rcx rep movsl nop nop nop nop add %rsi, %rsi lea addresses_normal_ht+0x15b95, %rsi lea addresses_UC_ht+0x43ad, %rdi clflush (%rsi) nop nop nop nop nop inc %rdx mov $114, %rcx rep movsq nop nop nop sub %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %r14 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r15 push %rax push %rdi // Store lea addresses_US+0xf6f5, %r13 cmp %r10, %r10 mov $0x5152535455565758, %r15 movq %r15, %xmm5 movups %xmm5, (%r13) nop nop add %r13, %r13 // Faulty Load lea addresses_A+0x662d, %r12 clflush (%r12) xor $5967, %r10 mov (%r12), %rax lea oracles, %rdi and $0xff, %rax shlq $12, %rax mov (%rdi,%rax,1), %rax pop %rdi pop %rax pop %r15 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': True, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 1, 'size': 16, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 7, 'size': 16, 'same': False, 'NT': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 11, 'size': 8, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
43.65
2,999
0.661512
8068230e211fa7dadb470d65792c1ca3618ed1bc
5,842
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca.log_21829_1815.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.log_21829_1815.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.log_21829_1815.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 %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0xdd32, %rdx dec %r13 mov (%rdx), %rax nop nop add %r15, %r15 lea addresses_normal_ht+0x8e12, %rbp nop nop nop nop sub $52837, %rcx mov $0x6162636465666768, %r13 movq %r13, (%rbp) nop nop nop nop cmp %r15, %r15 lea addresses_normal_ht+0x7392, %r13 clflush (%r13) nop nop nop nop nop add $14828, %rdi movb $0x61, (%r13) nop nop nop xor $43647, %rcx lea addresses_WT_ht+0x11892, %rbp nop nop add %r13, %r13 movb $0x61, (%rbp) xor $39719, %rbp lea addresses_WT_ht+0xe152, %rsi lea addresses_WT_ht+0x14cc2, %rdi nop nop add $26745, %r15 mov $115, %rcx rep movsb nop nop inc %rcx lea addresses_WC_ht+0x1d12, %rsi lea addresses_A_ht+0xe412, %rdi clflush (%rsi) nop xor $2455, %rax mov $2, %rcx rep movsq nop nop nop inc %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r13 push %r15 push %rax push %rcx push %rdi push %rdx push %rsi // Store lea addresses_PSE+0x6712, %rcx and $31837, %rdi movl $0x51525354, (%rcx) nop nop nop nop nop xor %rsi, %rsi // Load mov $0x7b2, %rcx dec %rax mov (%rcx), %r13w dec %rdx // Faulty Load lea addresses_US+0x19f12, %r13 nop nop nop nop nop add %rdi, %rdi movb (%r13), %dl lea oracles, %rcx and $0xff, %rdx shlq $12, %rdx mov (%rcx,%rdx,1), %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r15 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 8, 'NT': True, 'type': 'addresses_US'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_PSE'}} {'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_P'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 1, 'NT': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_normal_ht'}} {'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_normal_ht'}} {'OP': 'STOR', 'dst': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WT_ht'}} {'src': {'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_WT_ht'}} {'src': {'congruent': 9, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_A_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 */
39.741497
2,999
0.657138
820464745865e93f4d63818c1c2effe750037524
6,101
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_475_1338.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_475_1338.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_475_1338.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %r15 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x15b2b, %rbx nop add $10812, %r10 mov (%rbx), %eax nop nop xor %r14, %r14 lea addresses_D_ht+0x1302b, %r15 nop nop nop nop cmp %r14, %r14 mov (%r15), %ecx nop nop nop nop and $50047, %r15 lea addresses_WT_ht+0x1d72b, %rcx nop nop add %r13, %r13 vmovups (%rcx), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %r15 nop nop nop nop cmp $13262, %rax lea addresses_A_ht+0x1823, %r13 nop nop nop nop sub $31193, %r15 mov $0x6162636465666768, %rcx movq %rcx, %xmm6 and $0xffffffffffffffc0, %r13 movaps %xmm6, (%r13) nop nop xor %r15, %r15 lea addresses_A_ht+0x3f9b, %rsi lea addresses_WC_ht+0xdfeb, %rdi nop nop nop cmp $7394, %r10 mov $89, %rcx rep movsb nop nop nop nop cmp %r10, %r10 lea addresses_UC_ht+0xce33, %rsi lea addresses_normal_ht+0x5b27, %rdi nop nop sub $64859, %r13 mov $40, %rcx rep movsw nop cmp %rcx, %rcx lea addresses_WT_ht+0xbb2b, %r15 nop cmp %rbx, %rbx mov $0x6162636465666768, %rsi movq %rsi, %xmm1 vmovups %ymm1, (%r15) add $34756, %rax lea addresses_A_ht+0x1bbb3, %r10 nop nop sub $51164, %rax and $0xffffffffffffffc0, %r10 movaps (%r10), %xmm6 vpextrq $1, %xmm6, %rdi nop nop nop nop nop sub $30699, %r14 lea addresses_WT_ht+0x1c32b, %rax nop nop and $29131, %rbx movw $0x6162, (%rax) nop nop inc %rdi lea addresses_normal_ht+0x4b, %rsi lea addresses_WC_ht+0x6f30, %rdi clflush (%rdi) add %r10, %r10 mov $44, %rcx rep movsb nop nop nop nop cmp $16273, %rdi lea addresses_normal_ht+0xd58, %r13 nop nop dec %rbx movb (%r13), %r15b nop nop nop nop cmp $19593, %rax lea addresses_UC_ht+0x8fab, %rsi lea addresses_WC_ht+0x1e22b, %rdi nop nop nop cmp $25153, %r15 mov $52, %rcx rep movsq nop nop nop nop sub $32669, %r14 lea addresses_WC_ht+0xc22b, %rsi lea addresses_UC_ht+0x16f2b, %rdi cmp %r13, %r13 mov $60, %rcx rep movsw nop nop nop nop xor $30227, %r10 lea addresses_UC_ht+0x7cf, %r13 nop nop nop and %rsi, %rsi mov $0x6162636465666768, %rbx movq %rbx, %xmm2 movups %xmm2, (%r13) nop inc %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r15 pop %r14 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r15 push %r9 push %rdx // Faulty Load lea addresses_normal+0x1ab2b, %rdx nop nop sub %r15, %r15 movb (%rdx), %r12b lea oracles, %r9 and $0xff, %r12 shlq $12, %r12 mov (%r9,%r12,1), %r12 pop %rdx pop %r9 pop %r15 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False, 'NT': True, 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 8, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'34': 475} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
27.731818
1,424
0.658744
23e83fefd1b0900b0421a8e1247a7f6dd35b3471
1,014
asm
Assembly
data/pokemon/base_stats/monferno.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
data/pokemon/base_stats/monferno.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
data/pokemon/base_stats/monferno.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
2
2021-08-11T19:47:07.000Z
2022-01-01T07:07:56.000Z
db 0 ; species ID placeholder db 64, 78, 52, 81, 78, 52 ; hp atk def spd sat sdf db FIRE, FIGHTING ; type db 45 ; catch rate db 142 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F12_5 ; gender ratio db 20 ; step cycles to hatch INCBIN "gfx/pokemon/monferno/front.dimensions" db GROWTH_MEDIUM_SLOW ; growth rate dn EGG_GROUND, EGG_HUMANSHAPE ; egg groups db 70 ; happiness ; tm/hm learnset tmhm FOCUS_PUNCH, TOXIC, BULK_UP, HIDDEN_POWER, SUNNY_DAY, TAUNT, PROTECT, FRUSTRATION, IRON_TAIL, RETURN, DIG, BRICK_BREAK, DOUBLE_TEAM, FLAMETHROWER, FIRE_BLAST, ROCK_TOMB, AERIAL_ACE, TORMENT, FACADE, SECRET_POWER, REST, ATTRACT, OVERHEAT, FOCUS_BLAST, FLING, ENDURE, WILL_O_WISP, SHADOW_CLAW, SWORDS_DANCE, STEALTH_ROCK, CAPTIVATE, ROCK_SLIDE, SLEEP_TALK, NATURAL_GIFT, POISON_JAB, GRASS_KNOT, SWAGGER, U_TURN, SUBSTITUTE, CUT, STRENGTH, ROCK_SMASH, ROCK_CLIMB, ENDEAVOR, FIRE_PUNCH, GUNK_SHOT, HEAT_WAVE, HELPING_HAND, MUD_SLAP, ROLLOUT, SNORE, SWIFT, THUNDERPUNCH, VACUUM_WAVE ; end
50.7
584
0.760355
447baaa9669f16efb4dffa0202ef8b0066066fdb
3,293
asm
Assembly
8088/cga/artifact/artifact.asm
reenigne/reenigne
c3eb8b31d7964e78bbe44908987d4be052a74488
[ "Unlicense" ]
92
2015-04-10T17:45:11.000Z
2022-03-30T17:58:51.000Z
8088/cga/artifact/artifact.asm
MS-DOS-stuff/reenigne
0a113990aef398550c6f14d1c7a33af1cb091887
[ "Unlicense" ]
2
2017-11-05T07:21:35.000Z
2018-11-04T23:36:13.000Z
8088/cga/artifact/artifact.asm
MS-DOS-stuff/reenigne
0a113990aef398550c6f14d1c7a33af1cb091887
[ "Unlicense" ]
18
2015-04-11T20:32:44.000Z
2021-11-06T05:19:57.000Z
%include "../../defaults_bin.asm" ; Set graphics mode mov ax,6 int 0x10 mov al,0x1a mov dx,0x3d8 out dx,al mov al,0x0f mov dx,0x3d9 out dx,al ; Draw pattern in graphics memory mov ax,0xb800 mov es,ax screenLoop: mov di,0 cld rowLoop: mov cx,200 lineLoop: push cx mov al,0 mov cx,16 barLoop: push cx mov cx,5 rep stosb pop cx add al,0x11 loop barLoop add di,0x1fb0 cmp di,0x4000 jl oddLine sub di,0x3fb0 oddLine: pop cx loop lineLoop ; ; Set up CRTC registers ; mov dx,0x3d4 ; mov ax,0x1401 ; 1: horizontal displayed = 20 ; out dx,ax ; mov ax,0x0005 ; 5: Vertical total adjust = 8 ; out dx,ax mov dx,0x3da frameLoop: ; mov dl,0xd9 ; mov al,0xf ; out dx,al ; mov dl,0xd4 ; mov ax,0x2d02 ; out dx,ax ; mov dl,0xda waitForVerticalSync waitforNoVerticalSync ; waitForDisplayEnable ; waitForDisplayDisable ; waitForDisplayEnable ; mov dl,0xd4 ; 2 0 2 2 ; mov ax,0x0009 ; 9: lines per row = 1 ; 3 0 3 5 ; out dx,ax ; mov dl,0xda ; waitForDisplayDisable ; ; waitForDisplayEnable ; mov dl,0xd4 ; 2 0 2 2 ; mov ax,0x1300 ; 0: horizontal total = 20 ; 3 0 3 5 ; out dx,ax ; 1 2 3 8 ; mov ax,0x1902 ; 2: horizontal sync position = 25 ; 3 0 3 11 ; out dx,ax ; 1 2 3 14 ; times 13 nop ; 1 0 1 27 ; mov ax,0x2400 ; 0: horizontal total = 37 ; 3 0 3 30 ; out dx,ax ; 1 2 3 33 ; mov dl,0xda ; waitForDisplayDisable ; ; waitForDisplayEnable ; mov dl,0xd4 ; 2 0 2 2 ; mov ax,0x3800 ; 0: horizontal total = 57 ; 3 0 3 5 ; out dx,ax ; 1 2 3 8 ; mov ax,0x2d02 ; 2: horizontal sync position = 45 ; 3 0 3 11 ; out dx,ax ; 1 2 3 14 ; mov dl,0xda ; waitForDisplayDisable ; ; waitForDisplayEnable ; mov dl,0xd4 ; 2 0 2 2 ; mov ax,0x0109 ; 9: lines per row = 2 ; 3 0 3 5 ; out dx,ax ; mov dl,0xda ; waitForDisplayDisable ; mov dl,0xd4 ; mov ax,0x3700 ; out dx,ax ; mov ax,0x2e02 ; out dx,ax ; mov dl,0xda ; waitForDisplayDisable ; waitForDisplayEnable ; mov dl,0xd4 ; mov ax,0x3800 ; out dx,ax ; mov dl,0xda ; waitForDisplayDisable ; waitForDisplayEnable ; waitForDisplayDisable mov cx,16 mov bl,0 rowLoop2: push cx mov cx,12 lineLoop2: waitForDisplayEnable waitForDisplayDisable loop lineLoop2 inc bl mov al,bl dec dx out dx,al inc dx pop cx loop rowLoop2 jmp frameLoop ; ; Set up the 8259 PIC to read the IRR lines ; mov al,0x0a ; OCW3 - no bit 5 action, no poll command issued, act on bit 0, ; out 0x20,al ; read Interrupt Request Register ;keyboardRead: ; ; Loop until the IRR bit 1 (IRQ 1) is high ; in al,0x20 ; and al,2 ; jz keyboardRead ; ; Read the keyboard byte and store it ; in al,0x60 ;; mov bl,al ; ; Acknowledge the previous byte ; in al,0x61 ; or al,0x80 ; out 0x61,al ; and al,0x7f ; out 0x61,al jmp screenLoop
19.718563
79
0.557243
2c0c54cdf1f18527b69d873470ac55a92dca61d3
1,682
asm
Assembly
programs/oeis/062/A062544.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/062/A062544.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/062/A062544.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A062544: a(n) = n plus sum of previous three terms. ; 0,1,3,7,15,30,58,110,206,383,709,1309,2413,4444,8180,15052,27692,50941,93703,172355,317019,583098,1072494,1972634,3628250,6673403,12274313,22575993,41523737,76374072,140473832,258371672,475219608,874065145,1607656459,2956941247,5438662887,10003260630,18398864802,33840788358,62242913830,114482567031,210566269261,387291750165,712340586501,1310198605972,2409830942684,4432370135204,8152399683908,14994600761845,27579370581007,50726371026811,93300342369715,171606083977586,315632797374166,580539223721522,1067778105073330,1963950126169075,3612267454963985,6643995686206449,12220213267339569,22476476408510064,41340685362056144,76037375037905840,139854536808472112,257232597208434161,473124509054812179,870211643071718519,1600568749334964927,2943904901461495694,5414685293868179210,9959158944664639902,18317749139994314878,33691593378527134063,61968501463186088917,113977843981707537933,209637938823420760989,385584284268314387916,709200067073442686916,1304422290165177835900,2399206641506934910812,4412828998745555433709,8116457930417668180503,14928493570670158525107,27457780499833382139403,50502732000921208845098,92889006071424749509694,170849518572179340494282,314241256644525298849162,577979781288129388853227,1063070556504834028196761,1955291594437488715899241,3596341932230452132949321,6614704083172774877045416,12166337609840715725894072,22377383625243942735888904,41158425318257433338828488,75702146553342091800611561,139237955496843467875329051,256098527368442993014769199 lpb $0 mov $2,$0 sub $0,1 seq $2,8937 ; a(n) = Sum_{k=0..n} T(k) where T(n) are the tribonacci numbers A000073. add $1,$2 lpe mov $0,$1
152.909091
1,482
0.89239
3c5d2ce632685af6e7636d7106644cff5bf4c388
652
asm
Assembly
oeis/100/A100165.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/100/A100165.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/100/A100165.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A100165: Structured rhombic triacontahedral numbers (vertex structure 7). ; 1,32,147,400,845,1536,2527,3872,5625,7840,10571,13872,17797,22400,27735,33856,40817,48672,57475,67280,78141,90112,103247,117600,133225,150176,168507,188272,209525,232320,256711,282752,310497,340000,371315,404496,439597,476672,515775,556960,600281,645792,693547,743600,796005,850816,908087,967872,1030225,1095200,1162851,1233232,1306397,1382400,1461295,1543136,1627977,1715872,1806875,1901040,1998421,2099072,2203047,2310400,2421185,2535456,2653267,2774672,2899725,3028480,3160991,3297312,3437497 mul $0,6 add $0,2 mov $2,$0 mov $3,$0 add $0,4 mul $2,$3 mul $0,$2 div $0,24
54.333333
497
0.806748
112af0dee6d24016237465efceb0aa0f8702315a
4,317
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_21829_1199.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_21829_1199.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_21829_1199.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 %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x1970a, %rbp nop nop sub $25952, %r9 movb $0x61, (%rbp) nop nop dec %r10 lea addresses_D_ht+0xe4a1, %rsi lea addresses_normal_ht+0x86e1, %rdi nop nop nop nop cmp $46655, %r10 mov $88, %rcx rep movsw nop inc %r9 pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r10 ret .global s_faulty_load s_faulty_load: push %r9 push %rbx push %rcx push %rdi push %rsi // Faulty Load lea addresses_PSE+0x16ca1, %rbx xor $24332, %rcx movntdqa (%rbx), %xmm5 vpextrq $0, %xmm5, %rsi lea oracles, %rdi and $0xff, %rsi shlq $12, %rsi mov (%rdi,%rsi,1), %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 ret /* <gen_faulty_load> [REF] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_PSE', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False}} {'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
59.958333
2,999
0.663192
3d9aa9a2e46f14f52d08b0ead19e704bd75366e5
682
asm
Assembly
oeis/098/A098890.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/098/A098890.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/098/A098890.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A098890: a(n) = A001652(n)*A046090(n)+1 = A098602(n)+1. ; 1,13,421,14281,485113,16479541,559819261,19017375313,646030941361,21946034630941,745519146510613,25325704946729881,860328449042305321,29225841562491651013,992818284675673829101,33726595837410418538401,1145711440187278556476513,38920462370530060501663021,1322150009157834778500066181,44914179848995852408500587113,1525759964856701147110519895641,51830924625278843149349175864661,1760725677294623965930761459502813,59812842103391935998496540447230961,2031875905838031199982951613746349841 seq $0,2315 ; NSW numbers: a(n) = 6*a(n-1) - a(n-2); also a(n)^2 - 2*b(n)^2 = -1 with b(n) = A001653(n+1). pow $0,2 div $0,4 add $0,1
85.25
488
0.829912
63dc76a6bf9cd0cf10f0c9254356cd5be45c7a6c
1,724
asm
Assembly
programs/oeis/256/A256162.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/256/A256162.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/256/A256162.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A256162: Positive integers a(n) such that number of digits in decimal expansion of a(n)^a(n) is divisible by a(n). ; 1,8,9,98,99,998,999,9998,9999,99998,99999,999998,999999,9999998,9999999,99999998,99999999,999999998,999999999,9999999998,9999999999,99999999998,99999999999,999999999998,999999999999,9999999999998,9999999999999,99999999999998,99999999999999,999999999999998,999999999999999,9999999999999998,9999999999999999,99999999999999998,99999999999999999,999999999999999998,999999999999999999,9999999999999999998,9999999999999999999,99999999999999999998,99999999999999999999,999999999999999999998,999999999999999999999,9999999999999999999998,9999999999999999999999,99999999999999999999998,99999999999999999999999,999999999999999999999998,999999999999999999999999,9999999999999999999999998,9999999999999999999999999,99999999999999999999999998,99999999999999999999999999,999999999999999999999999998,999999999999999999999999999,9999999999999999999999999998,9999999999999999999999999999,99999999999999999999999999998,99999999999999999999999999999,999999999999999999999999999998,999999999999999999999999999999,9999999999999999999999999999998,9999999999999999999999999999999,99999999999999999999999999999998,99999999999999999999999999999999,999999999999999999999999999999998,999999999999999999999999999999999,9999999999999999999999999999999998,9999999999999999999999999999999999,99999999999999999999999999999999998,99999999999999999999999999999999999,999999999999999999999999999999999998,999999999999999999999999999999999999 add $0,1 mov $3,2 mov $4,2 lpb $0 sub $0,1 mov $3,$0 sub $0,1 mov $2,1 mul $4,10 lpe mov $0,1 add $3,1 sub $2,$3 mul $2,2 mov $1,$2 sub $4,2 sub $1,$4 sub $0,$1 sub $0,7 div $0,2 add $0,1
68.96
1,407
0.882831
9b4f8d7fc7a80e02a396b9f6e5ca399b4beb28bc
716
asm
Assembly
src/vbl/vbl_xy.asm
furrtek/GB303
2f275fff085b05fdc7843074dcc062956a1d8d56
[ "CC-BY-4.0" ]
90
2015-06-19T14:26:19.000Z
2022-01-05T08:19:41.000Z
src/vbl/vbl_xy.asm
furrtek/GB303
2f275fff085b05fdc7843074dcc062956a1d8d56
[ "CC-BY-4.0" ]
2
2015-06-21T20:55:40.000Z
2022-02-09T08:02:04.000Z
src/vbl/vbl_xy.asm
furrtek/GB303
2f275fff085b05fdc7843074dcc062956a1d8d56
[ "CC-BY-4.0" ]
10
2015-06-21T20:43:11.000Z
2020-12-08T13:24:16.000Z
vbl_xy: call RAMtoOAM ld hl,FRAME inc (hl) call readinput call input_xy ld a,(HWOK_ADC) or a call nz,readpots ld hl,OAMCOPY ld bc,$40 call clear ;Render x/y cursor ld hl,OAMCOPY ld a,(RESON) sla a sla a sla a cpl add 128+21 ldi (hl),a ld a,(PREVCUT) ;255 = 96+96+(96/2)+(96/8)+(96/32) ld b,a srl b ;96/4 srl b add b srl b srl b ;96/16 add b add 21 ldi (hl),a ld a,T_GRIDCUR ldi (hl),a xor a ld (hl),a call changescreen ;Always do this at end of VBL ret
15.911111
62
0.438547
274d892f5f31f3b7217ff7f96d6e149eec7d013e
7,163
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca_notsx.log_21829_1474.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_1474.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_1474.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_UC_ht+0x936f, %rsi lea addresses_normal_ht+0xf86f, %rdi clflush (%rdi) sub %r9, %r9 mov $25, %rcx rep movsl nop nop nop nop nop sub %r11, %r11 lea addresses_UC_ht+0xe44f, %r10 nop nop sub $11871, %rbp mov (%r10), %rdi nop nop and $38354, %rbp lea addresses_A_ht+0x14cef, %r9 cmp $31660, %rsi mov (%r9), %r10w nop nop nop nop cmp %rbp, %rbp lea addresses_UC_ht+0xdff1, %r11 nop sub %rbp, %rbp mov $0x6162636465666768, %r10 movq %r10, %xmm2 and $0xffffffffffffffc0, %r11 vmovntdq %ymm2, (%r11) nop nop xor $5107, %r10 lea addresses_WT_ht+0x1aef, %rsi lea addresses_UC_ht+0x1a4af, %rdi clflush (%rdi) nop nop sub $22665, %r13 mov $68, %rcx rep movsw nop nop nop nop nop and %rcx, %rcx pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r14 push %rbp push %rbx push %rdi push %rdx // Store lea addresses_A+0x476e, %rdx and $28652, %rdi mov $0x5152535455565758, %r13 movq %r13, (%rdx) nop nop nop nop and %rdx, %rdx // Load lea addresses_WT+0xef, %rbx nop nop nop nop nop xor $48101, %rbp movb (%rbx), %dl nop sub $34289, %rdx // Load lea addresses_RW+0xf9ef, %rdi nop nop cmp %r11, %r11 movb (%rdi), %r13b nop sub $55758, %rdi // Load lea addresses_US+0x2d8f, %rbx nop dec %rdx mov (%rbx), %r14d dec %rdi // Store lea addresses_WC+0x844f, %r13 nop nop nop nop nop inc %rbx mov $0x5152535455565758, %rdx movq %rdx, %xmm5 movups %xmm5, (%r13) nop nop nop nop nop dec %rdi // Store lea addresses_PSE+0x4aef, %rbp nop add %rbx, %rbx movl $0x51525354, (%rbp) nop nop nop nop dec %rbp // Store lea addresses_WC+0x12a7f, %rdx nop cmp $25366, %rbp mov $0x5152535455565758, %r11 movq %r11, (%rdx) nop sub %r14, %r14 // Store lea addresses_US+0xa22d, %r14 clflush (%r14) nop nop nop nop sub %rdx, %rdx movw $0x5152, (%r14) nop nop add $33319, %r13 // Faulty Load lea addresses_PSE+0x4aef, %r11 sub %r13, %r13 mov (%r11), %edi lea oracles, %r11 and $0xff, %rdi shlq $12, %rdi mov (%r11,%rdi,1), %rdi pop %rdx pop %rdi pop %rbx pop %rbp pop %r14 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_PSE'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 9, 'same': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} {'src': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 7, 'same': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} {'src': {'NT': True, 'AVXalign': True, 'size': 4, 'congruent': 5, 'same': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 4, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_PSE'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 4, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'} {'dst': {'NT': True, 'AVXalign': True, 'size': 2, 'congruent': 1, 'same': False, 'type': 'addresses_US'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_PSE'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 6, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 5, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'dst': {'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 1, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'src': {'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 6, '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 */
33.629108
2,999
0.652241
0679a62eba435919238a74da6ea7b67129c24f1f
430
asm
Assembly
programs/oeis/220/A220414.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/220/A220414.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/220/A220414.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A220414: a(n) = 6*a(n-1) - a(n-2), with a(1) = 13, a(2) = 73. ; 13,73,425,2477,14437,84145,490433,2858453,16660285,97103257,565959257,3298652285,19225954453,112057074433,653116492145,3806641878437,22186734778477,129313766792425,753695865976073,4392861429064013,25603472708408005 mul $0,2 add $0,1 mov $2,1 mov $3,1 lpb $0 sub $0,1 add $3,1 mov $1,$3 add $2,4 add $1,$2 add $1,2 mov $3,$2 add $2,$1 lpe add $1,4
22.631579
216
0.683721
e3acaa8f157d3a6bece0321dd94419ff56d1db14
590
asm
Assembly
oeis/184/A184627.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/184/A184627.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/184/A184627.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A184627: floor((n-h)*s+h), where s=(3+sqrt(3))/2 and h=1/4; complement of A184626. ; Submitted by Jamie Morken(s2) ; 2,4,6,9,11,13,16,18,20,23,25,28,30,32,35,37,39,42,44,46,49,51,54,56,58,61,63,65,68,70,73,75,77,80,82,84,87,89,91,94,96,99,101,103,106,108,110,113,115,117,120,122,125,127,129,132,134,136,139,141,143,146,148,151,153,155,158,160,162,165,167,170,172,174,177,179,181,184,186,188,191,193,196,198,200,203,205,207,210,212,214,217,219,222,224,226,229,231,233,236 add $0,4 mov $1,2 mul $1,$0 mov $2,16 mul $2,$0 add $2,31 sub $2,$0 sub $2,8 div $2,41 add $1,$2 mov $0,$1 sub $0,8
34.705882
355
0.669492
093c6e8559e53ec20e13363a8aa26e77aa46ccd0
149
asm
Assembly
software/sdrom3/sddos3.asm
AtomicRoland/AtomFpga
200d57d85cb2abf43f80723a78db98a8b21c1d7d
[ "Apache-2.0" ]
25
2015-01-19T20:53:43.000Z
2021-10-04T18:42:06.000Z
software/sdrom3/sddos3.asm
AtomicRoland/AtomFpga
200d57d85cb2abf43f80723a78db98a8b21c1d7d
[ "Apache-2.0" ]
2
2019-06-15T17:10:09.000Z
2019-06-15T17:15:35.000Z
software/sdrom3/sddos3.asm
AtomicRoland/AtomFpga
200d57d85cb2abf43f80723a78db98a8b21c1d7d
[ "Apache-2.0" ]
12
2015-02-12T14:38:00.000Z
2021-06-09T10:05:34.000Z
.segment "CODE" .include "math-lib.inc" .include "atmmcdef.inc" .include "macros.inc" .include "int.inc" .include "sd.inc" .segment "LAST" RTS
13.545455
23
0.677852
db21fdf1e44a9a91ff9c0a3e94c2e7ec03393284
173
asm
Assembly
Exploit-Dev/basic_shellcode/exitcall.asm
bbhunter/Security-Guide
139cfba3b30a4ca6a32d11aa025638d0a9c5c541
[ "MIT" ]
98
2019-11-20T05:26:30.000Z
2022-01-27T05:05:39.000Z
Exploit-Dev/basic_shellcode/exitcall.asm
bbhunter/Security-Guide
139cfba3b30a4ca6a32d11aa025638d0a9c5c541
[ "MIT" ]
null
null
null
Exploit-Dev/basic_shellcode/exitcall.asm
bbhunter/Security-Guide
139cfba3b30a4ca6a32d11aa025638d0a9c5c541
[ "MIT" ]
34
2019-11-25T14:29:16.000Z
2021-10-18T16:40:42.000Z
;exitcall.asm [SECTION .text] global _start _start: mov ebx,0 ;exit code, 0=normal exit mov eax,1 ;exit command to kernel int 0x80 ;interrupt 80 hex, call kernel
19.222222
43
0.710983
adc1accc57d9d6d688cf71af22cf86a56654d325
892
asm
Assembly
src/native/m64.asm
nomadsinteractive/migi
7ebcd0d362f642b889c309c20618ff36f1448c28
[ "Apache-2.0" ]
3
2022-01-09T10:09:55.000Z
2022-01-11T03:37:55.000Z
src/native/m64.asm
nomadsinteractive/migi
7ebcd0d362f642b889c309c20618ff36f1448c28
[ "Apache-2.0" ]
null
null
null
src/native/m64.asm
nomadsinteractive/migi
7ebcd0d362f642b889c309c20618ff36f1448c28
[ "Apache-2.0" ]
null
null
null
PUBLIC make_generic_call_impl PUBLIC make_generic_call_r_mmx0 _DATA segment _DATA ends _RDATA segment _RDATA ends _TEXT segment make_generic_call_impl proc push rbp mov rbp, rsp push rbx push rcx push rdx push r8 push r9 mov rax, rcx mov rbx, rdx mov rsp, r8 mov rcx, [rbx] mov rdx, [rbx + 8] mov r8, [rbx + 16] mov r9, [rbx + 24] call rax pop rcx pop rdx pop r8 pop r9 pop rbx mov rsp, rbp pop rbp ret make_generic_call_impl endp make_generic_call_r_mmx0 proc push rbp mov rbp, rsp mov rax, [rbp + 10h] mov rsp, [rbp + 18h] call rax movsd qword ptr [rbp+20h], xmm0 mov rsp, rbp pop rbp ret 24 make_generic_call_r_mmx0 endp _TEXT ends end
15.37931
37
0.550448
27e9156f5115e3825cf881dc684101776d1adbef
18,114
asm
Assembly
drivers/storage/port/scsi/miniport/mylex/dac2w2k/io/i386/mdac_nt.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
drivers/storage/port/scsi/miniport/mylex/dac2w2k/io/i386/mdac_nt.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
drivers/storage/port/scsi/miniport/mylex/dac2w2k/io/i386/mdac_nt.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
ifdef 0 /************************************************************************** /* COPYRIGHT (C) Mylex Corporation 1992-1998 * /* * /* This software is furnished under a license and may be used and copied * /* only in accordance with the terms and conditions of such license and * /* with inclusion of the above copyright notice. This software or any * /* other copies thereof may not be provided or otherwise made available * /* to any other person. No title to, nor ownership of the software is * /* hereby transferred. * /* * /* The information in this software is subject to change without notices * /* and should not be construed as a commitment by Mylex Corporation * /* * /**************************************************************************/ .globl u08bits_in_mdac u08bits_in_mdac: movl 4(%esp), %edx xorl %eax, %eax inb (%dx) ret .globl u16bits_in_mdac u16bits_in_mdac: movl 4(%esp), %edx xorl %eax, %eax inw (%dx) ret .globl u32bits_in_mdac u32bits_in_mdac: movl 4(%esp), %edx inl (%dx) ret .globl u08bits_out_mdac u08bits_out_mdac: movl 4(%esp), %edx movl 8(%esp), %eax outb (%dx) ret .globl u16bits_out_mdac u16bits_out_mdac: movl 4(%esp), %edx movl 8(%esp), %eax outw (%dx) ret .globl u32bits_out_mdac u32bits_out_mdac: movl 4(%esp), %edx movl 8(%esp), %eax outl (%dx) ret endif ; --------------------------------------------------------------------------- ; ; ; --------------------------------------------------------------------------- .386P .model FLAT, C .xlist include callconv.inc .list .DATA EXTERNDEF mdac_datarel_cpu_family:DWORD EXTERNDEF mdac_datarel_cpu_model:DWORD EXTERNDEF mdac_datarel_cpu_stepping:DWORD EXTERNDEF mdac_simple_waitlock_cnt:DWORD EXTERNDEF mdac_simple_waitloop_cnt:DWORD EXTERNDEF mdac_flushdatap:DWORD .CODE _TEXT SEGMENT DWORD PUBLIC 'CODE' ASSUME DS:FLAT, ES:FLAT, SS:NOTHING, FS:NOTHING, GS:NOTHING cPublicProc MdacInt3 ; int 3 ret stdENDP MdacInt3 ifndef SCSIPORT_COMPLIANT cPublicProc mdac_simple_unlock, 1, arg1:DWORD ifdef 0 movl 4(%esp), %eax lock xorl %eax, (%eax) ret else ifdef MLX_WIN9X else mov eax, mdac_flushdatap ; get non cacheable memory address mov eax, [eax] ; access will flush pending writes mov eax, arg1 ; get the lock address mov [eax], 00h ; unlock the lock ; mov eax, arg1 ; lock xor [eax], eax endif stdRET mdac_simple_unlock stdENDP mdac_simple_unlock endif cPublicProc mdac_simple_trylock, 1, arg1:DWORD ifdef 0 movl 4(%esp), %eax xchgl %eax, (%eax) ret else mov eax, arg1 xchg eax, [eax] stdRET mdac_simple_trylock stdENDP mdac_simple_trylock endif cPublicProc mdac_simple_lock, 1, arg1:DWORD ifdef 0 movl 4(%esp), %eax xchg %eax, (%eax) orl %eax, %eax jnz mdac_simple_waitlock ret else ifdef MLX_WIN9X xor eax, eax stdRET mdac_simple_lock else mdac_simple_lock_bbb: mov eax, arg1 xchg eax, [eax] or eax, eax jnz mdac_simple_waitlock stdRET mdac_simple_lock mdac_simple_waitlock: inc mdac_simple_waitlock_cnt ; just keep track mov eax, arg1 xor ecx, ecx xor edx, edx mdac_simple_waitlock1: inc edx cmp [eax], ecx jne mdac_simple_waitlock1 ; try again add mdac_simple_waitloop_cnt, edx ; just keep track count jmp mdac_simple_lock_bbb ; lock is available endif stdENDP mdac_simple_lock endif endif ; if !SCSIPORT_COMPLIANT ifdef 0 .set PITCTR2_PORT,0x42 /* counter 2 port */ .set PITCTL_PORT,0x43 /* PIT control port */ .set PITAUX_PORT,0x61 /* PIT auxiliary port */ .set PIT_C2,0x80 .set PITAUX_GATE2,0x01 /* aux port, PIT gate 2 input */ else PITCTR2_PORT equ 42h ; counter 2 port PITCTL_PORT equ 43h ; PIT control port PITAUX_PORT equ 61h ; PIT auxiliary port PIT_C2 equ 80h PITAUX_GATE2 equ 01h ; aux port, PIT gate 2 input endif cPublicProc mdac_enable_hwclock ifdef 0 pushfl cli movl $PITCTL_PORT, %edx movb $0xB4, %al outb (%dx) movl $PITCTR2_PORT, %edx movb $0xFF, %al outb (%dx) outb (%dx) movl $PITAUX_PORT, %edx inb (%dx) orb $PITAUX_GATE2, %al /* auxiliary port, PIT gate 2 input */ outb (%dx) /* enable the PIT2 counter */ popfl ret else pushfd cli mov edx, PITCTL_PORT mov al, 0B4h out dx, al mov edx, PITCTR2_PORT mov al, 0FFh out dx, al out dx, al mov edx, PITAUX_PORT in al, dx or al, PITAUX_GATE2 ; auxiliary port, PIT gate 2 input out dx, al popfd stdRET mdac_enable_hwclock stdENDP mdac_enable_hwclock endif cPublicProc mdac_read_hwclock ifdef 0 pushfl cli movl $PITCTL_PORT, %edx movb $PIT_C2, %al outb (%dx) movl $PITCTR2_PORT, %edx xorl %eax, %eax inb (%dx) movb %al, %cl inb (%dx) movb %al, %ah movb %cl, %al popfl ret else pushfd cli mov edx, PITCTL_PORT mov al, PIT_C2 out dx, al mov edx, PITCTR2_PORT xor eax, eax in al, dx mov cl, al in al, dx mov ah, al mov al, cl popfd stdRET mdac_read_hwclock stdENDP mdac_read_hwclock ; read the hardware clock endif ; halt the cpu, this useful in measing performance information cPublicProc mdac_datarel_halt_cpu sti hlt stdRET mdac_datarel_halt_cpu stdENDP mdac_datarel_halt_cpu cPublicProc mdac_disable_intr_CPU ifdef 0 pushfl cli popl %eax ret else pushfd cli pop eax stdRET mdac_disable_intr_CPU stdENDP mdac_disable_intr_CPU endif ; enable the cpu interrupt and return the old flag cPublicProc mdac_enable_intr_CPU pushfd sti pop eax ret stdENDP mdac_enable_intr_CPU cPublicProc mdac_restore_intr_CPU, 1, arg1:DWORD ifdef 0 movl 4(%esp), %eax pushl %eax popfl ret else mov eax, arg1 push eax popfd stdRET mdac_restore_intr_CPU stdENDP mdac_restore_intr_CPU endif ; This function writes a model specific register of Pentium family processor. ; Where reg is the model specific register number to write, val0 is the ; data value bits 31..0 and val1 is the data value bits 63..32. ; mdac_writemsr(reg,val0,val1) cPublicProc mdac_writemsr, 3 ifdef 0 movl 4(%esp), %ecx movl 8(%esp), %eax movl 12(%esp), %edx .byte 0x0F, 0x30 /* wrmsr */ ret else mov ecx, [esp+4] mov eax, [esp+8] mov edx, [esp+12] db 0Fh db 30h ; wrmsr stdRET mdac_writemsr stdENDP mdac_writemsr endif ; function reads a model specific register of Pentium family processor. ; reg is the model specific register number to read and valp is ; address where the 64 bit value from the register is written. ; (reg,valp) cPublicProc mdac_readmsr, 2 ifdef 0 movl 4(%esp), %ecx .byte 0x0F, 0x32 /* rdmsr */ movl 8(%esp), %ecx movl %eax, (%ecx) movl %edx, 4(%ecx) ret else mov ecx, [esp+4] db 0Fh db 32h ; rdmsr mov ecx, [esp+8] mov [ecx], eax mov [ecx+4], edx stdRET mdac_readmsr stdENDP mdac_readmsr endif ; This function reads the time stamp counter of the Pentium family processor. ; The valp is the address where the 64 bit value read is stored. ; mdac_readtsc(valp) cPublicProc mdac_readtsc, 1, arg1:DWORD ifdef 0 movl 4(%esp), %ecx .byte 0x0F, 0x31 /* rdtsc */ movl %eax, (%ecx) movl %edx, 4(%ecx) ret else mov ecx, arg1 db 0Fh db 31h ; rdtsc mov [ecx], eax mov [ecx+4], edx stdRET mdac_readtsc stdENDP mdac_readtsc endif ; This routine determines the cpuid of the current processor EFL_AC equ 40000h ; alignment check (1->check) EFL_ID equ 200000h ; cpuid opcode (flippable->supported) cPublicProc mdac_check_cputype ifdef 0 pushl %ebx / save %ebx pushl %esi / save %esi pushl %edi / save %edi pushfl / save FLAGS pushfl / push FLAGS value on stack popl %eax / get FLAGS into AX movl %eax, %ecx / save copy of FLAGS xorl $EFL_AC, %eax / flip AC bit for new FLAGS pushl %eax / push new value on stack popfl / attempt setting FLAGS.AC pushfl / push resulting FLAGS on stack popl %eax / get that into AX cmpl %eax, %ecx / succeeded in flipping AC? je mdac_datarel_cpuis_i386 / AX is same as CX for i386 CPU movl %ecx, %eax / get original FLAGS again xorl $EFL_ID, %eax / flip ID bit for new FLAGS pushl %eax / push new value on stack popfl / attempt setting FLAGS.ID pushfl / push resulting FLAGS on stack popl %eax / get that into AX cmpl %eax, %ecx / succeeded in flipping ID? je mdac_datarel_cpuis_i486 / AX is same as CX for i486 CPU movl $1, %eax / set first cpuid parameter .byte 0x0F, 0xA2 /* cpuid */ / get CPU family-model-stepping movl %eax, %ebx / extract stepping id andl $0xF, %ebx / from bits [3..0] movl %ebx, mdac_datarel_cpu_stepping movl %eax, %ebx / extract model shrl $4, %ebx / from bits [7..4] andl $0xF, %ebx movl %ebx, mdac_datarel_cpu_model movl %eax, %ebx / extract family shrl $8, %ebx / from bits [11..8] andl $0xF, %ebx movl %ebx, mdac_datarel_cpu_family mdac_datarel_cpu_identified: popfl / restore original FLAGS popl %edi popl %esi popl %ebx ret mdac_datarel_cpuis_i486: movl $4, mdac_datarel_cpu_family jmp mdac_datarel_cpu_identified mdac_datarel_cpuis_i386: movl $3, mdac_datarel_cpu_family jmp mdac_datarel_cpu_identified else push ebx ; save %ebx push esi ; save %esi push edi ; save %edi pushfd ; save FLAGS pushfd ; push FLAGS value on stack pop eax ; get FLAGS into AX mov ecx, eax ; save copy of FLAGS xor eax, EFL_AC ; flip AC bit for new FLAGS push eax ; push new value on stack popfd ; attempt setting FLAGS.AC pushfd ; push resulting FLAGS on stack pop eax ; get that into AX cmp eax, ecx ; succeeded in flipping AC? je mdac_datarel_cpuis_i386 ; AX is same as CX for i386 CPU mov ecx, eax ; get original FLAGS again xor eax, EFL_ID ; flip ID bit for new FLAGS push eax ; push new value on stack popfd ; attempt setting FLAGS.ID pushfd ; push resulting FLAGS on stack pop eax ; get that into AX cmp eax, ecx ; succeeded in flipping ID? je mdac_datarel_cpuis_i486 ; AX is same as CX for i486 CPU mov eax, 1 ; set first cpuid parameter db 0Fh db 0A2h ; cpuid ; ; get CPU family-model-stepping mov ebx, eax ; extract stepping id and ebx, 0Fh ; from bits [3..0] mov mdac_datarel_cpu_stepping, ebx mov ebx, eax ; extract model shr ebx, 4 ; from bits [7..4] and ebx, 0Fh mov mdac_datarel_cpu_model, ebx mov ebx, eax ; extract family shr ebx, 8 ; from bits [11..8] and ebx, 0Fh mov mdac_datarel_cpu_family, ebx mdac_datarel_cpu_identified: popfd ; restore original FLAGS pop edi pop esi pop ebx ret mdac_datarel_cpuis_i486: mov mdac_datarel_cpu_family, 4 jmp mdac_datarel_cpu_identified mdac_datarel_cpuis_i386: mov mdac_datarel_cpu_family, 3 jmp mdac_datarel_cpu_identified stdENDP mdac_check_cputype endif if 0 /* compare only multiples of 4 bytes data */ /* u32bits mdac_datarel_fastcmd4(src, dst, count) .globl mdac_datarel_fastcmp4 mdac_datarel_fastcmp4: movl 4(%esp), %edx / save source in edx movl 8(%esp), %eax / save destination in eax movl 12(%esp), %ecx / get the data transfer length pushl %esi / save esi register pushl %edi / save edi register movl %eax, %edi / get destination memory address movl %edx, %esi / get source memory address shrl $2, %ecx rep scmpl / first move 4 bytes long jne mdac_datarel_fastcmp_l1 / 2 instructions for jne and 2 for xorl xorl %eax, %eax / eax was non zero because it contained address mdac_datarel_fastcmp_l1: popl %edi / restore edi register popl %esi / restore esi register ret /* mdac_datarel_fillpat(dp, curpat, patinc, patlen) */ /* u32bits MLXFAR *dp, curpat, patinc, patlen; */ /* { */ /* for (; patlen; curpat += patinc, dp++, patlen--) */ /* *dp = curpat; */ /* } */ .globl mdac_datarel_fillpat mdac_datarel_fillpat: push %esi movl 8(%esp), %esi /* get memory address */ movl 12(%esp), %eax /* get current pattern */ movl 16(%esp), %edx /* get pattern increment */ movl 20(%esp), %ecx /* get number of pattern to be filled */ mdac_datarel_fillpat_l1: mov %eax, (%esi) add %edx, %eax add $4, %esi loop mdac_datarel_fillpat_l1 pop %esi ret else ; compare only multiples of 4 bytes data */ ; u32bits mdac_datarel_fastcmd4(src, dst, count) cPublicProc mdac_datarel_fastcmp4, 3 mov edx, 4[esp] ; save source in edx mov eax, 8[esp] ; save destination in eax mov ecx, 12[esp] ; get the data transfer length push esi ; save esi register push edi ; save edi register mov edi, eax ; get destination memory address mov esi, edx ; get source memory address shr ecx, 2 repe cmpsd jne mdac_datarel_fastcmp_l1 ; 2 instructions for jne and 2 for xorl xor eax, eax ; eax was non zero because it contained address mdac_datarel_fastcmp_l1: pop edi ; restore edi register pop esi ; restore esi register ret stdENDP mdac_datarel_fastcmp4 ;/* mdac_datarel_fillpat(dp, curpat, patinc, patlen) */ ;/* u32bits MLXFAR *dp, curpat, patinc, patlen; */ ;/* { */ ;/* for (; patlen; curpat += patinc, dp++, patlen--) */ ;/* *dp = curpat; */ ;/* } */ cPublicProc mdac_datarel_fillpat, 4 push esi mov esi, 8[esp] ;/* get memory address */ mov eax, 12[esp] ;/* get current pattern */ mov edx, 16[esp] ;/* get pattern increment */ mov ecx, 20[esp] ;/* get number of pattern to be filled */ mdac_datarel_fillpat_l1: mov [esi], eax add eax, edx add esi, 4 loop mdac_datarel_fillpat_l1 pop esi ret stdENDP mdac_datarel_fillpat endif _TEXT ends end
30.392617
79
0.50944
cf4141d485d8a392d5ddc2f4d19e2dc6e065d692
973
asm
Assembly
src/utilities.asm
ZornsLemma/blinkenlights
3d746f105883ecbf8a786d60c5004a9dee799c64
[ "MIT" ]
null
null
null
src/utilities.asm
ZornsLemma/blinkenlights
3d746f105883ecbf8a786d60c5004a9dee799c64
[ "MIT" ]
1
2020-12-19T21:55:40.000Z
2020-12-19T22:03:28.000Z
src/utilities.asm
ZornsLemma/blinkenlights
3d746f105883ecbf8a786d60c5004a9dee799c64
[ "MIT" ]
null
null
null
; End-of-text marker for print_string_* eot = 128 ; Select mode A and turn the cursor off. ; TODO: It's annoying that the cursor is briefly visible when doing this. ; Waiting for VSYNC doesn't seem to help. It might be possible to work around ; this by programming the CRTC directly instead of going via the OS. .set_mode pha lda #vdu_set_mode:jsr oswrch pla:jsr oswrch jsr print_string_inline:equb 23, 1, 0, 0, 0, 0, 0, 0, 0, 0, eot rts ; Set logical colour X to physical colour Y. .set_palette_x_to_y lda #vdu_set_palette:jsr oswrch txa:jsr oswrch tya:jsr oswrch jsr print_string_inline:equb 0, 0, 0, eot rts ; Print the string following "jsr print_string_inline" (terminated by eot) using ; OSWRCH. .print_string_inline { ptr = zp_tmp pla:sta ptr pla:sta ptr+1 ldy #0 .loop inc_word ptr lda (ptr),y cmp #eot:beq done jsr oswrch jmp loop .done lda ptr+1:pha lda ptr:pha rts }
22.627907
80
0.683453
d1e2a85ce4b00046d03f7e0976929b100a1132b8
492
asm
Assembly
programs/oeis/043/A043674.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/043/A043674.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/043/A043674.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A043674: Numbers n such that base 15 representation has exactly 7 runs. ; 11441476,11441477,11441478,11441479,11441480,11441481,11441482,11441483,11441484,11441485,11441486,11441487,11441488,11441489,11441505,11441506,11441508,11441509,11441510,11441511,11441512 mov $5,$0 sub $0,10 mul $0,2 trn $0,7 mov $3,6 lpb $0,1 add $0,5 mov $1,$4 trn $2,6 add $2,12 add $3,2 trn $0,$3 mov $3,$2 add $3,3 add $1,$3 sub $2,5 lpe lpb $5,1 add $1,1 sub $5,1 lpe add $1,11441476
18.923077
190
0.693089
c3d6d56c10229d590f4601e5108190d40cbbec79
150
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/___fs2ulonglong.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/___fs2ulonglong.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/___fs2ulonglong.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib SECTION code_fp_math48 PUBLIC ___fs2ulonglong EXTERN cm48_sdccixp_ds2ulonglong defc ___fs2ulonglong = cm48_sdccixp_ds2ulonglong
15
48
0.886667
54aff3d4255aa7f9ca355bf22b4fa145e2852269
98,351
asm
Assembly
projects/Links_Awakening_gb_noconfig.windfish/disassembly/bank_10.asm
jverkoey/awaken
743755248996deb7181ae92f6e60be5656439c44
[ "Apache-2.0" ]
68
2020-12-16T10:06:48.000Z
2022-03-29T19:54:01.000Z
projects/Links_Awakening_gb_noconfig.windfish/disassembly/bank_10.asm
jverkoey/awaken
743755248996deb7181ae92f6e60be5656439c44
[ "Apache-2.0" ]
62
2020-12-19T04:28:41.000Z
2021-02-15T22:18:16.000Z
projects/Links_Awakening_gb_noconfig.windfish/disassembly/bank_10.asm
jverkoey/awaken
743755248996deb7181ae92f6e60be5656439c44
[ "Apache-2.0" ]
4
2021-01-17T03:51:22.000Z
2021-01-21T16:26:53.000Z
SECTION "ROM Bank 10", ROMX[$4000], BANK[$10] db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $EF, $EF, $F7, $F7 db $FF, $FF, $FF, $FF, $FE, $FE, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $5F, $5F db $AB, $AB, $D5, $D5, $FA, $FA, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $55, $55, $AA, $AA, $55, $55 db $FA, $FA, $FD, $FD, $FE, $FE, $FF, $FF db $FA, $FA, $55, $55, $AB, $AB, $5F, $5F db $FF, $FF, $5F, $5F, $AA, $AA, $55, $55 db $AA, $AA, $55, $55, $AA, $AA, $D5, $D5 db $FE, $FE, $F5, $F5, $AB, $AB, $57, $57 db $FF, $FF, $5D, $5D, $AA, $AA, $55, $55 db $BB, $BB, $7D, $7D, $FE, $FE, $DF, $DF db $AB, $AB, $55, $55, $AA, $AA, $5D, $5D db $EA, $EA, $D5, $D5, $AA, $AA, $55, $55 db $AA, $AA, $55, $55, $2A, $2A, $05, $05 db $FA, $FA, $7F, $7F, $AF, $AF, $55, $55 db $AA, $AA, $55, $55, $AA, $AA, $50, $50 db $AB, $AB, $FD, $FD, $EA, $EA, $55, $55 db $AA, $AA, $55, $55, $0A, $0A, $00, $00 db $AF, $AF, $55, $55, $AA, $AA, $55, $55 db $AA, $AA, $55, $55, $AA, $AA, $50, $50 db $FF, $FF, $3F, $3F, $1F, $1F, $03, $03 db $80, $80, $F0, $F0, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $E7, $E7 db $1F, $1F, $FF, $FF, $FC, $FC, $F0, $F0 db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $CF, $CF, $07, $07, $03, $03, $01, $01 db $FF, $FF, $FC, $FC, $F0, $F0, $84, $84 db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $00, $EF, $10, $10, $EF, $80, $7F db $00, $F3, $00, $C0, $F0, $00, $3C, $00 db $C0, $3F, $07, $F8, $7F, $80, $FE, $01 db $3F, $C0, $0F, $F0, $00, $0F, $1F, $00 db $7F, $80, $0E, $F1, $F0, $0F, $03, $FC db $9F, $60, $FF, $00, $1F, $E0, $3E, $01 db $C7, $38, $01, $FE, $3C, $C3, $FF, $00 db $FF, $00, $FE, $01, $F0, $0F, $01, $F8 db $1C, $00, $07, $00, $1E, $00, $60, $00 db $00, $00, $07, $00, $FF, $00, $FF, $3F db $38, $00, $E0, $00, $03, $00, $0E, $00 db $3C, $0C, $FF, $3F, $FF, $FF, $FF, $FF db $00, $00, $70, $00, $FC, $00, $FF, $00 db $3F, $00, $03, $00, $E0, $E0, $FF, $FF db $00, $00, $00, $00, $00, $00, $80, $00 db $FC, $00, $E1, $00, $1F, $00, $FE, $00 db $FF, $FF, $FE, $FE, $E0, $E0, $00, $00 db $00, $00, $83, $83, $FF, $FF, $FF, $FF db $C3, $C3, $0E, $0E, $30, $30, $00, $00 db $70, $70, $FC, $FC, $FF, $FF, $FF, $FF db $80, $80, $E0, $E0, $7E, $7E, $7F, $7F db $3F, $3F, $0F, $0F, $07, $07, $E1, $E1 db $7F, $7F, $0F, $0F, $00, $00, $80, $80 db $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF db $F8, $F8, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $03, $03, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $BF, $3F, $DF, $1F, $6F, $8F, $37, $C7 db $1B, $E3, $09, $F1, $0D, $F1, $06, $F8 db $06, $F8, $07, $F8, $07, $F8, $07, $F8 db $0F, $F0, $0F, $F1, $1F, $E1, $3E, $C2 db $FF, $FE, $FD, $FC, $FF, $FC, $FB, $F8 db $FF, $F8, $F7, $F0, $FF, $F0, $EE, $E0 db $FF, $00, $FF, $00, $E6, $00, $C6, $00 db $C6, $00, $CE, $00, $7C, $00, $78, $00 db $07, $00, $0E, $00, $1E, $00, $1C, $00 db $78, $00, $E0, $00, $C1, $01, $C3, $03 db $00, $00, $00, $00, $31, $31, $31, $31 db $33, $33, $F7, $F7, $E7, $E7, $C3, $C3 db $FF, $FF, $FF, $FF, $FF, $FF, $CF, $CF db $8F, $8F, $8F, $8F, $0F, $0F, $0F, $0F db $FA, $E5, $D0, $CF, $FD, $C1, $EF, $CF db $FF, $FF, $FC, $FC, $F7, $F0, $FE, $E0 db $3F, $C1, $00, $FF, $F9, $F8, $FF, $FF db $FF, $FF, $03, $03, $78, $00, $78, $00 db $F3, $C0, $F3, $00, $36, $C0, $9E, $80 db $F8, $F8, $FE, $FE, $3F, $3F, $C7, $07 db $00, $00, $1E, $1E, $3B, $23, $3B, $23 db $23, $23, $1E, $1E, $8E, $8E, $EC, $EC db $FF, $FF, $BF, $BF, $9F, $9F, $1F, $1F db $3F, $3F, $7F, $7F, $EF, $8F, $EF, $8F db $F8, $F8, $F8, $F8, $7D, $7D, $3F, $3F db $1D, $1C, $3F, $38, $77, $70, $7F, $70 db $8F, $8F, $FF, $FF, $FB, $FB, $F3, $93 db $F7, $37, $BF, $3F, $FF, $7F, $BF, $3F db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $87 db $BF, $BF, $DF, $9F, $AF, $CF, $97, $E7 db $0B, $73, $0F, $73, $05, $F9, $07, $F9 db $FE, $03, $FC, $05, $F8, $0B, $F0, $37 db $C0, $CF, $81, $7E, $E6, $19, $F8, $07 db $02, $FC, $03, $FC, $03, $FC, $03, $FC db $07, $F8, $06, $F8, $0F, $F1, $7E, $82 db $FC, $E0, $D8, $C0, $F9, $C0, $B9, $80 db $B3, $80, $F3, $80, $7F, $00, $FF, $00 db $F0, $00, $F1, $00, $F3, $00, $E7, $00 db $87, $00, $07, $00, $06, $00, $06, $00 db $C3, $03, $C0, $00, $C2, $02, $C6, $06 db $86, $06, $0E, $0E, $1C, $1C, $18, $18 db $83, $83, $03, $03, $07, $07, $0F, $0F db $0E, $0E, $3C, $3C, $7C, $7C, $7D, $7D db $1F, $1F, $3F, $3F, $7F, $7F, $F7, $F7 db $F7, $F7, $EF, $EF, $FF, $FF, $FF, $FF db $BF, $BF, $DF, $9F, $AF, $CF, $97, $E7 db $9F, $E7, $0B, $73, $0F, $F3, $05, $F9 db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FE db $FF, $FE, $FD, $FC, $FD, $FC, $FB, $F8 db $FF, $F8, $F7, $84, $8F, $74, $3E, $38 db $07, $F9, $07, $F9, $07, $F9, $06, $F8 db $0E, $F2, $3E, $C3, $FC, $05, $F8, $1B db $00, $00, $01, $01, $37, $36, $3F, $38 db $3F, $30, $DF, $D0, $FF, $E0, $BF, $A0 db $1F, $10, $FF, $F8, $FF, $06, $FF, $01 db $FF, $00, $E0, $1F, $FC, $03, $FE, $01 db $DF, $1F, $F7, $07, $F9, $01, $FF, $80 db $FF, $00, $FF, $00, $3F, $C0, $00, $FF db $F0, $F0, $DC, $C3, $E0, $9F, $F8, $7F db $E6, $07, $FD, $01, $3E, $C0, $FF, $10 db $00, $FE, $40, $3F, $10, $CF, $08, $F7 db $00, $FF, $00, $FF, $80, $FF, $40, $7F db $81, $81, $6E, $E0, $13, $F0, $08, $F8 db $04, $FC, $06, $FA, $80, $7C, $41, $BF db $FF, $FF, $7F, $7F, $98, $18, $CC, $0C db $64, $04, $32, $02, $10, $00, $01, $01 db $F0, $F0, $00, $00, $0F, $00, $7F, $00 db $FF, $00, $3F, $00, $1C, $00, $00, $00 db $1F, $1F, $07, $07, $E1, $01, $F0, $00 db $F0, $00, $80, $00, $00, $00, $00, $00 db $FC, $FB, $FF, $F0, $FF, $FF, $EC, $E3 db $F0, $EF, $DF, $C0, $DF, $DF, $60, $5F db $1C, $E8, $C4, $3C, $FF, $E2, $7B, $92 db $1F, $EC, $F7, $04, $8F, $88, $FF, $70 db $F0, $60, $B1, $30, $EB, $28, $77, $A4 db $6B, $B2, $C7, $1B, $C7, $5B, $87, $B9 db $FF, $C3, $7F, $4C, $7F, $50, $7F, $50 db $7F, $60, $7F, $60, $7F, $60, $7F, $40 db $F8, $87, $E1, $1E, $C7, $38, $CF, $30 db $BF, $40, $BF, $40, $FC, $00, $F0, $00 db $38, $C7, $E1, $1E, $C3, $3C, $C7, $38 db $87, $78, $8F, $70, $CF, $30, $CF, $30 db $FF, $0C, $BF, $43, $BF, $40, $1F, $E0 db $07, $F8, $00, $FF, $00, $FF, $80, $7F db $3F, $3F, $FF, $C0, $FF, $00, $FF, $00 db $F1, $0E, $07, $F8, $1F, $E0, $3F, $C0 db $C1, $9F, $E0, $6F, $F8, $1F, $FC, $07 db $FE, $03, $FE, $03, $FF, $01, $EF, $0F db $00, $00, $80, $80, $80, $80, $40, $C0 db $40, $C0, $20, $E0, $20, $E0, $10, $F0 db $00, $00, $00, $00, $00, $00, $00, $00 db $02, $02, $02, $02, $03, $03, $03, $03 db $00, $00, $00, $00, $03, $03, $0F, $0F db $3F, $3F, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $00, $FF, $00, $3E, $00, $F8, $F8 db $E7, $E0, $F1, $F0, $FC, $FC, $FF, $FF db $FC, $05, $F8, $1B, $C0, $CF, $C2, $3D db $F8, $07, $FD, $02, $7F, $00, $9F, $80 db $A0, $3F, $5F, $90, $28, $C8, $3F, $CF db $17, $E6, $1D, $E5, $1E, $E4, $1D, $E6 db $7F, $A0, $BF, $20, $46, $40, $86, $80 db $C6, $00, $CE, $00, $FC, $80, $78, $40 db $FF, $C0, $FF, $C0, $FF, $C0, $FF, $C0 db $DF, $C0, $DF, $C0, $6F, $60, $2C, $20 db $E0, $00, $C0, $00, $C1, $01, $81, $01 db $83, $03, $83, $03, $07, $07, $06, $06 db $EF, $10, $7F, $00, $7F, $00, $7F, $00 db $3F, $04, $BD, $84, $9C, $84, $CE, $C2 db $80, $7F, $C0, $3F, $F0, $0F, $FC, $03 db $FF, $00, $FF, $00, $FF, $00, $3F, $00 db $7F, $80, $0F, $F0, $1F, $E0, $07, $F8 db $81, $7E, $FF, $00, $FF, $00, $FF, $00 db $B9, $36, $FC, $1E, $FE, $07, $FF, $03 db $FD, $1D, $FF, $08, $FD, $06, $FD, $05 db $10, $F0, $88, $68, $08, $78, $08, $78 db $08, $38, $84, $34, $CC, $14, $CC, $D4 db $07, $07, $07, $07, $07, $07, $0F, $0F db $0F, $0F, $1F, $1F, $1F, $1F, $3F, $3F db $FF, $FF, $FF, $FF, $FF, $FF, $CF, $CF db $8F, $8F, $8F, $8F, $8F, $8F, $5B, $58 db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $E1, $E1, $C0, $C0, $80, $80, $00, $00 db $FF, $FF, $E7, $E0, $F1, $F0, $FC, $FC db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $00, $0F, $E5, $1A, $F8, $07, $7F, $00 db $1E, $00, $FE, $FE, $EF, $E0, $F3, $F0 db $19, $E2, $38, $CB, $F0, $17, $E0, $2F db $C0, $DF, $08, $F7, $B1, $4E, $E7, $18 db $24, $20, $31, $31, $7C, $7C, $F6, $F6 db $F7, $F7, $EF, $EF, $FF, $FF, $FF, $FF db $05, $05, $05, $05, $84, $84, $82, $82 db $C2, $C2, $F1, $F1, $EF, $EF, $EF, $E4 db $C3, $C1, $60, $60, $30, $30, $FE, $7E db $FB, $4B, $BF, $28, $9F, $68, $F7, $00 db $07, $00, $80, $80, $60, $60, $3F, $3F db $F7, $F7, $3C, $3C, $7E, $76, $B5, $97 db $FF, $00, $3E, $00, $01, $01, $E3, $E2 db $D6, $D5, $6C, $4F, $34, $26, $33, $23 db $ED, $0C, $68, $67, $C0, $BE, $2D, $C1 db $1B, $86, $11, $00, $D7, $C4, $0D, $0D db $DC, $44, $9F, $83, $DF, $83, $EF, $03 db $EF, $03, $EB, $03, $EF, $07, $FF, $FF db $FF, $FF, $CF, $CF, $C7, $C7, $C3, $C3 db $E1, $E1, $60, $60, $00, $00, $00, $00 db $E0, $E0, $F8, $F8, $FF, $FF, $FB, $F9 db $FB, $F8, $FD, $FC, $3E, $3E, $0F, $0F db $FC, $FC, $FF, $FF, $FD, $FD, $FB, $F8 db $FB, $F8, $F7, $F0, $F7, $F0, $EE, $E0 db $7F, $03, $FC, $FD, $9F, $80, $E7, $60 db $99, $18, $FF, $0F, $72, $02, $71, $01 db $03, $7D, $27, $D9, $CF, $31, $FE, $02 db $F4, $05, $F9, $FE, $7E, $01, $9F, $80 db $A0, $20, $50, $90, $39, $D9, $3D, $CD db $1B, $EB, $1D, $E9, $3A, $CC, $F1, $16 db $EF, $E5, $D7, $C6, $DE, $CB, $DE, $CB db $DF, $C9, $DC, $CB, $A0, $83, $A4, $87 db $CF, $C0, $0F, $F0, $07, $F8, $00, $FF db $E0, $1F, $E0, $EF, $38, $C7, $00, $FE db $B8, $1E, $E1, $1C, $F3, $00, $1F, $E0 db $07, $F8, $03, $FC, $03, $FC, $C3, $FC db $39, $21, $39, $21, $39, $21, $BB, $22 db $B6, $25, $EC, $6B, $D3, $53, $E8, $67 db $9B, $98, $F8, $E7, $80, $87, $8C, $7F db $07, $FA, $1F, $E2, $FF, $87, $FF, $DF db $BD, $01, $22, $FC, $31, $DE, $71, $9E db $FF, $10, $FF, $FE, $FF, $FF, $FF, $FF db $FF, $FF, $DF, $1F, $37, $47, $9B, $E1 db $89, $F2, $CC, $B7, $EC, $D7, $F8, $EF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $7F, $7F, $BF, $3F, $9F, $1F db $F7, $70, $DF, $5F, $CD, $4C, $82, $02 db $87, $07, $0E, $0E, $1C, $1C, $18, $18 db $E1, $6E, $A0, $9F, $F9, $06, $7F, $00 db $DD, $C1, $7D, $7C, $77, $70, $7D, $6C db $F0, $77, $DC, $5B, $EE, $4D, $97, $A6 db $0A, $72, $4B, $B3, $9B, $63, $F7, $07 db $7F, $BF, $0F, $F7, $03, $FD, $81, $7E db $C0, $3F, $60, $1F, $60, $1F, $60, $1F db $A2, $83, $A0, $80, $D1, $C1, $D0, $C0 db $C4, $40, $EA, $68, $7C, $FC, $7E, $BE db $20, $FC, $03, $C0, $1C, $E3, $80, $F0 db $C6, $B9, $60, $5F, $DF, $C0, $EF, $E0 db $E3, $3C, $07, $F8, $07, $F8, $0F, $F1 db $1F, $E3, $7F, $8F, $F9, $39, $E1, $E1 db $F1, $6E, $E1, $5E, $E3, $DC, $CF, $BF db $D7, $99, $87, $BB, $0E, $72, $8E, $72 db $FF, $7F, $F8, $78, $E1, $E1, $82, $82 db $05, $04, $07, $04, $0F, $08, $1F, $10 db $F1, $F1, $80, $80, $18, $00, $7E, $00 db $FE, $00, $FF, $00, $FF, $00, $FF, $00 db $FD, $FA, $3F, $3C, $1F, $1E, $0F, $0F db $0F, $0F, $07, $07, $07, $07, $07, $07 db $BF, $1F, $BF, $DF, $AF, $CF, $3F, $CF db $6F, $8F, $FF, $1F, $FF, $2F, $DF, $EF db $B6, $86, $A0, $80, $E1, $9E, $C0, $BF db $B0, $8F, $DF, $C0, $F7, $F0, $FC, $FC db $3D, $3C, $F7, $F0, $FC, $03, $00, $FF db $00, $FF, $00, $FF, $80, $7F, $E0, $1F db $C0, $3F, $80, $7F, $00, $FF, $01, $FE db $01, $FE, $03, $FC, $0F, $F0, $7F, $80 db $FF, $3F, $FB, $10, $F0, $1D, $F9, $0C db $F8, $0E, $FE, $04, $FE, $06, $FF, $03 db $EF, $EF, $F0, $F0, $50, $90, $24, $C4 db $16, $E2, $93, $65, $91, $66, $F9, $0E db $DB, $C3, $FA, $82, $7B, $42, $77, $46 db $3E, $2E, $37, $36, $87, $85, $CE, $4E db $9C, $64, $7C, $9C, $AD, $35, $1E, $26 db $1D, $E4, $3B, $C8, $FF, $F8, $3B, $03 db $7F, $60, $BF, $80, $7F, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $9F, $80 db $FF, $00, $FF, $00, $FF, $00, $FE, $00 db $FE, $00, $F4, $00, $F0, $00, $E1, $01 db $07, $07, $06, $06, $0F, $0E, $0F, $0F db $1D, $1C, $3E, $3C, $78, $78, $F3, $F3 db $AF, $4F, $3F, $DF, $DF, $1F, $1F, $1F db $3F, $3F, $7F, $7F, $FF, $FF, $FF, $FF db $F8, $F8, $FC, $FC, $7F, $7F, $7F, $7F db $7F, $7F, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $00, $7F, $00, $7F, $00, $BF, $80 db $DF, $C0, $E7, $E0, $FC, $FC, $FF, $FF db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $3F, $00, $E1, $E0 db $FF, $03, $FF, $01, $FF, $01, $FF, $01 db $FF, $01, $FF, $02, $FF, $02, $FF, $04 db $F0, $FF, $38, $27, $DD, $12, $EF, $08 db $F7, $07, $F5, $04, $F3, $02, $FA, $02 db $A4, $23, $B8, $17, $BF, $1E, $19, $69 db $18, $E8, $15, $E4, $95, $64, $F4, $04 db $72, $AC, $28, $C7, $30, $C7, $FC, $8B db $C7, $C0, $7C, $7C, $E3, $23, $F9, $01 db $67, $60, $D9, $98, $94, $24, $9E, $26 db $89, $31, $49, $72, $09, $32, $B8, $83 db $E3, $03, $C7, $07, $0B, $0B, $0B, $0B db $13, $13, $A3, $A3, $67, $67, $E7, $67 db $0F, $08, $7F, $70, $FF, $00, $7C, $00 db $80, $80, $F8, $F8, $FE, $FE, $FF, $FF db $F9, $01, $FD, $01, $7D, $01, $FC, $00 db $FC, $00, $78, $00, $00, $00, $80, $80 db $7A, $12, $46, $5A, $C6, $3A, $C6, $BA db $EE, $92, $FA, $82, $B7, $85, $EB, $E5 db $FC, $00, $FE, $00, $FE, $00, $7E, $00 db $7C, $00, $7C, $00, $38, $00, $00, $00 db $F8, $CF, $68, $67, $3D, $32, $1E, $18 db $1A, $1B, $0F, $0C, $1D, $1C, $3F, $3E db $A3, $23, $03, $43, $33, $53, $33, $D3 db $37, $D7, $5F, $9F, $DF, $0F, $9F, $0F db $E3, $9D, $E0, $9C, $FE, $82, $BA, $82 db $07, $83, $0F, $F7, $F7, $07, $1F, $1F db $00, $00, $01, $01, $07, $07, $3F, $3F db $FF, $FF, $FE, $FE, $FC, $FC, $F0, $F0 db $7F, $7F, $FE, $F3, $E9, $E0, $A4, $A2 db $17, $10, $18, $18, $0F, $0F, $07, $07 db $AF, $8F, $2F, $CF, $5F, $9F, $1F, $1F db $3F, $3F, $FF, $FF, $FF, $FF, $FF, $FF db $C3, $C1, $60, $60, $30, $30, $1E, $1E db $8B, $8B, $6F, $69, $6F, $09, $F7, $00 db $07, $00, $80, $80, $60, $60, $3F, $3F db $FF, $FF, $62, $62, $81, $81, $00, $00 db $CF, $C0, $0F, $F0, $03, $FC, $00, $FF db $E0, $1F, $E0, $EF, $38, $C7, $44, $B8 db $7C, $7C, $FE, $02, $FF, $00, $7F, $80 db $0F, $F0, $07, $F8, $03, $FC, $C3, $FC db $44, $C3, $01, $CE, $1F, $FF, $8F, $EF db $CF, $BF, $00, $3F, $E0, $F8, $EF, $E0 db $63, $FC, $E3, $FC, $E6, $F8, $C7, $D9 db $0F, $33, $1F, $E7, $39, $C9, $D1, $11 db $F7, $F0, $FF, $FF, $50, $90, $24, $C4 db $16, $E2, $93, $65, $91, $66, $F9, $0E db $23, $23, $8A, $82, $7B, $42, $77, $46 db $3E, $2E, $37, $36, $87, $85, $CE, $4E db $00, $00, $00, $00, $44, $44, $28, $28 db $10, $10, $28, $28, $44, $44, $00, $00 db $FF, $FF, $FF, $FF, $FF, $FF, $FD, $FC db $FA, $F9, $FF, $F9, $F5, $F3, $FD, $F2 db $FF, $FF, $C1, $C1, $83, $7C, $33, $CC db $E7, $F9, $26, $FB, $2E, $F3, $CC, $F0 db $B0, $80, $F1, $F0, $1E, $1E, $93, $63 db $FC, $C0, $38, $A0, $39, $A0, $31, $20 db $C3, $03, $C0, $00, $42, $02, $C6, $C6 db $7E, $7E, $1E, $1E, $87, $07, $03, $03 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $07, $00, $1F, $00, $3E db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $20, $80, $18, $C0, $0C, $20 db $00, $00, $00, $00, $44, $44, $28, $28 db $10, $10, $28, $28, $44, $44, $00, $00 db $00, $00, $00, $00, $44, $44, $28, $28 db $10, $10, $28, $28, $44, $44, $00, $00 db $00, $00, $00, $00, $44, $44, $28, $28 db $10, $10, $28, $28, $44, $44, $00, $00 db $00, $00, $0F, $00, $3F, $00, $FF, $00 db $F8, $07, $E0, $1F, $80, $7F, $00, $C6 db $00, $20, $03, $00, $CF, $00, $FF, $00 db $FE, $01, $78, $87, $00, $F8, $00, $78 db $7C, $00, $FE, $00, $FF, $00, $FF, $00 db $03, $FC, $00, $07, $00, $07, $00, $0D db $00, $40, $00, $00, $80, $00, $FF, $00 db $FF, $00, $7F, $80, $0F, $F0, $00, $9F db $00, $86, $00, $FC, $00, $CC, $00, $6F db $00, $3C, $00, $04, $00, $03, $00, $00 db $00, $7C, $00, $3F, $00, $E1, $00, $E0 db $00, $DB, $00, $8F, $00, $00, $00, $00 db $00, $78, $00, $E0, $00, $FF, $00, $C3 db $00, $80, $00, $00, $00, $00, $00, $00 db $00, $99, $00, $E9, $00, $07, $00, $03 db $00, $00, $00, $00, $00, $00, $00, $00 db $FF, $00, $FF, $80, $FF, $38, $FF, $7E db $FF, $FF, $FF, $0F, $FF, $BF, $FF, $FF db $FF, $00, $FF, $10, $FF, $38, $FF, $7C db $FF, $7F, $FF, $E7, $FF, $EF, $FF, $FF db $FF, $3E, $FF, $7F, $FF, $0F, $FF, $C7 db $FF, $E3, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $07, $FF, $0F, $FF, $9E, $FF, $BE db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FB, $FF, $FB, $FF, $F9 db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FD, $FF, $7E, $FF, $FE db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FD db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $01, $00, $3F, $00, $FF, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $7F, $00, $FF, $00, $FF, $00, $FF, $00 db $00, $00, $07, $00, $1F, $00, $7F, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $0F, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $01, $00, $07, $00, $7F, $00, $FF, $00 db $01, $00, $07, $00, $0F, $00, $1F, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $01, $00, $01, $00, $03, $00, $07, $00 db $0F, $00, $3F, $00, $7F, $00, $FF, $00 db $E0, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $00, $00, $80, $00, $F8, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $F0, $00, $FF, $00, $FF, $00, $FF, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $80, $00, $F0, $00, $FF, $00 db $80, $00, $80, $00, $C0, $00, $E0, $00 db $F0, $00, $FC, $00, $FE, $00, $FF, $00 db $80, $00, $E0, $00, $F0, $00, $F8, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $80, $00, $E0, $00, $FE, $00, $FF, $00 db $FF, $00, $3E, $00, $00, $00, $00, $00 db $00, $C0, $00, $F1, $00, $FF, $00, $FF db $FF, $00, $0E, $00, $00, $00, $00, $00 db $00, $01, $00, $C7, $00, $FF, $00, $FF db $00, $00, $00, $00, $00, $01, $00, $01 db $00, $03, $00, $03, $00, $07, $00, $07 db $00, $4E, $00, $8F, $00, $1F, $00, $3F db $00, $F1, $00, $E0, $00, $E0, $00, $C0 db $06, $10, $03, $18, $03, $9C, $01, $FC db $01, $FE, $01, $F0, $00, $E0, $00, $60 db $00, $00, $00, $00, $80, $00, $80, $00 db $C0, $00, $C0, $00, $E0, $00, $E0, $00 db $00, $0D, $00, $08, $00, $08, $00, $08 db $00, $10, $00, $10, $00, $10, $00, $19 db $00, $C0, $00, $C0, $00, $C0, $00, $E0 db $00, $F1, $00, $FF, $00, $FF, $00, $FF db $00, $60, $00, $60, $00, $70, $00, $F8 db $00, $FE, $00, $FE, $00, $FE, $00, $FC db $F0, $00, $F0, $00, $F0, $00, $F0, $00 db $F8, $00, $F8, $00, $F8, $00, $F8, $00 db $00, $1F, $00, $1F, $00, $1E, $00, $1C db $00, $1C, $00, $1C, $00, $0C, $00, $0E db $00, $FE, $00, $FC, $00, $7C, $00, $3C db $00, $1C, $00, $0E, $00, $0F, $00, $0F db $00, $38, $00, $18, $01, $18, $01, $18 db $03, $18, $03, $38, $07, $F0, $0F, $E0 db $F8, $00, $F8, $00, $F8, $00, $F8, $00 db $F8, $00, $F8, $00, $F0, $00, $F0, $00 db $08, $07, $18, $03, $3E, $00, $3F, $00 db $7F, $00, $7F, $00, $7F, $00, $FF, $00 db $00, $1E, $00, $FC, $01, $FC, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $1F, $00, $3F, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $F0, $00, $F8, $00, $FC, $00, $FC, $00 db $FE, $00, $FE, $00, $FE, $00, $FF, $00 db $FF, $FB, $FF, $F9, $FF, $FB, $FF, $F0 db $FF, $F1, $FF, $3F, $FF, $00, $FF, $00 db $FF, $FE, $FF, $FD, $FF, $FC, $FF, $FD db $FF, $F8, $FF, $07, $FF, $00, $FF, $00 db $FF, $FE, $FF, $FE, $FF, $FC, $FF, $FC db $FF, $7F, $FF, $C0, $FF, $00, $FF, $00 db $FF, $79, $FF, $FB, $FF, $79, $FF, $F3 db $FF, $F9, $FF, $0F, $FF, $00, $FF, $00 db $00, $FF, $00, $EF, $00, $7F, $00, $DD db $00, $77, $00, $AA, $00, $4D, $00, $90 db $1C, $1C, $22, $3E, $5D, $7F, $51, $7F db $51, $7F, $5D, $7F, $22, $3E, $1D, $1C db $00, $0C, $0C, $1F, $1D, $3F, $0C, $1F db $0C, $1F, $2D, $1F, $6C, $1F, $E0, $0C db $08, $E3, $E3, $F7, $B6, $FF, $F3, $FF db $30, $FF, $B6, $FF, $E3, $F7, $08, $E3 db $20, $8E, $8E, $DF, $DB, $FF, $C6, $FF db $C3, $FF, $DB, $FF, $8E, $DF, $20, $8E db $F0, $06, $76, $0F, $76, $8F, $77, $0F db $76, $8F, $76, $8F, $76, $8F, $F0, $06 db $01, $6C, $6C, $FF, $61, $FF, $6D, $FF db $ED, $FF, $6D, $FF, $6D, $FF, $00, $6D db $F0, $06, $06, $6F, $6F, $FF, $F6, $FF db $B6, $FF, $B6, $FF, $B6, $FF, $00, $B6 db $FF, $00, $00, $72, $72, $FF, $DB, $FF db $FB, $FF, $C3, $FF, $7B, $FF, $00, $7B db $80, $01, $01, $C7, $C7, $FF, $ED, $FF db $6D, $FF, $6D, $FF, $67, $FF, $00, $67 db $00, $80, $80, $DC, $9C, $FE, $B6, $FF db $B6, $FF, $B6, $FF, $9C, $FE, $00, $9C db $00, $00, $00, $00, $44, $44, $28, $28 db $10, $10, $28, $28, $44, $44, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $01, $00, $01, $00, $03, $00, $07, $00 db $0F, $00, $3F, $00, $7F, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $80, $00, $80, $00, $C0, $00, $E0, $00 db $F0, $00, $FC, $00, $FE, $00, $FF, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $44, $44, $28, $28 db $10, $10, $28, $28, $44, $44, $00, $00 db $00, $00, $00, $00, $44, $44, $28, $28 db $10, $10, $28, $28, $44, $44, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $00, $EF, $10, $10, $EF, $80, $7F db $00, $F3, $00, $C0, $F0, $00, $3C, $00 db $C0, $3F, $07, $F8, $7F, $80, $FE, $01 db $3F, $C0, $0F, $F0, $00, $0F, $1F, $00 db $7F, $80, $0E, $F1, $F0, $0F, $03, $FC db $9F, $60, $FF, $00, $1F, $E0, $3E, $01 db $C7, $38, $01, $FE, $3C, $C3, $FF, $00 db $FF, $00, $FE, $01, $F0, $0F, $01, $F8 db $1C, $00, $07, $00, $1E, $00, $60, $00 db $00, $00, $07, $00, $FF, $00, $FF, $3F db $38, $00, $E0, $00, $03, $00, $0E, $00 db $3C, $0C, $FF, $3F, $FF, $FF, $FF, $FF db $00, $00, $70, $00, $FC, $00, $FF, $00 db $3F, $00, $03, $00, $E0, $E0, $FF, $FF db $00, $00, $00, $00, $00, $00, $80, $00 db $FC, $00, $E1, $00, $1F, $00, $FE, $00 db $00, $00, $FF, $00, $EF, $10, $10, $EF db $80, $7F, $00, $F3, $00, $C0, $C0, $00 db $00, $00, $C0, $3F, $07, $F8, $7F, $80 db $FE, $01, $3F, $C0, $0F, $F0, $00, $0F db $00, $00, $7F, $80, $0E, $F1, $F0, $0F db $03, $FC, $9F, $60, $FF, $00, $1F, $E0 db $00, $00, $C7, $38, $01, $FE, $3C, $C3 db $FF, $00, $FF, $00, $FE, $01, $F0, $0F db $30, $00, $1F, $00, $1F, $00, $F0, $00 db $00, $00, $07, $00, $FF, $00, $FF, $3F db $3C, $00, $F0, $00, $C3, $00, $0E, $00 db $3C, $0C, $FF, $3F, $FF, $FF, $FF, $FF db $0E, $01, $70, $00, $FC, $00, $FF, $00 db $3F, $00, $03, $00, $E0, $E0, $FF, $FF db $03, $F8, $00, $00, $00, $00, $80, $00 db $FC, $00, $E1, $00, $1F, $00, $FE, $00 db $00, $00, $00, $00, $FF, $00, $EF, $10 db $10, $EF, $80, $7F, $00, $F3, $00, $C0 db $00, $00, $00, $00, $C0, $3F, $07, $F8 db $7F, $80, $FE, $01, $3F, $C0, $0F, $F0 db $00, $00, $00, $00, $7F, $80, $0E, $F1 db $F0, $0F, $03, $FC, $9F, $60, $FF, $00 db $00, $00, $00, $00, $C7, $38, $01, $FE db $3C, $C3, $FF, $00, $FF, $00, $FE, $01 db $E0, $00, $F3, $00, $1F, $00, $78, $00 db $C0, $00, $07, $00, $FF, $00, $FF, $3F db $00, $0F, $E0, $00, $03, $00, $0E, $00 db $3C, $0C, $FF, $3F, $FF, $FF, $FF, $FF db $0F, $80, $72, $01, $FC, $00, $FF, $00 db $3F, $00, $03, $00, $E0, $E0, $FF, $FF db $F0, $0F, $00, $F8, $00, $00, $80, $00 db $FC, $00, $E1, $00, $1F, $00, $FE, $00 db $00, $00, $00, $00, $00, $00, $FF, $00 db $EF, $10, $10, $EF, $80, $7F, $00, $F3 db $00, $00, $00, $00, $00, $00, $C0, $3F db $07, $F8, $7F, $80, $FE, $01, $3F, $C0 db $00, $00, $00, $00, $00, $00, $7F, $80 db $0E, $F1, $F0, $0F, $03, $FC, $9F, $60 db $00, $00, $00, $00, $00, $00, $C7, $38 db $01, $FE, $3C, $C3, $FF, $00, $FF, $00 db $00, $C0, $F0, $00, $3F, $00, $78, $00 db $E0, $00, $07, $00, $FF, $00, $FF, $3F db $0F, $F0, $40, $0C, $83, $00, $0E, $00 db $3C, $0C, $FF, $3F, $FF, $FF, $FF, $FF db $8F, $00, $73, $00, $FC, $00, $FF, $00 db $3F, $00, $03, $00, $E0, $E0, $FF, $FF db $FE, $01, $F0, $0F, $00, $78, $80, $00 db $FC, $00, $E1, $00, $1F, $00, $FE, $00 db $00, $00, $0F, $00, $3F, $00, $FF, $00 db $F8, $07, $E0, $1F, $80, $7F, $00, $C6 db $00, $20, $03, $00, $CF, $00, $FF, $00 db $FE, $01, $78, $87, $00, $F8, $00, $78 db $7C, $00, $FE, $00, $FF, $00, $FF, $00 db $03, $FC, $00, $07, $00, $07, $00, $0D db $00, $40, $00, $00, $80, $00, $FF, $00 db $FF, $00, $7F, $80, $0F, $F0, $00, $9F db $00, $86, $00, $FC, $00, $CC, $00, $6F db $00, $3C, $00, $04, $00, $03, $00, $00 db $00, $7C, $00, $3F, $00, $E1, $00, $E0 db $00, $DB, $00, $8F, $00, $00, $00, $00 db $00, $78, $00, $E0, $00, $FF, $00, $C3 db $00, $80, $00, $00, $00, $00, $00, $00 db $00, $99, $00, $E9, $00, $07, $00, $03 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $0F, $00, $3F, $00, $F8, $07 db $E0, $1F, $80, $7C, $00, $88, $00, $08 db $00, $20, $03, $00, $CF, $00, $FE, $01 db $78, $87, $00, $FE, $00, $FC, $00, $3F db $7C, $00, $FE, $00, $FF, $00, $03, $FC db $00, $87, $00, $07, $00, $7C, $00, $F8 db $00, $40, $00, $00, $80, $00, $FF, $00 db $7F, $80, $0F, $F0, $00, $DF, $00, $99 db $00, $FC, $00, $73, $00, $3A, $00, $06 db $00, $03, $00, $00, $00, $00, $00, $00 db $00, $F1, $00, $F0, $00, $D9, $00, $8F db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $FF, $00, $C3, $00, $80, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $07, $00, $03, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $0F, $00, $38, $07, $E0, $1C db $80, $78, $00, $C8, $00, $8C, $00, $F3 db $00, $20, $03, $00, $CE, $01, $30, $CF db $00, $3E, $00, $37, $00, $F8, $00, $F8 db $7C, $00, $FE, $00, $03, $FC, $00, $0F db $00, $0C, $00, $FF, $00, $78, $00, $60 db $00, $40, $00, $00, $80, $00, $7F, $80 db $07, $F8, $00, $DF, $00, $75, $00, $33 db $00, $1A, $00, $07, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $CC, $00, $87, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $C0, $00, $80, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $07, $00, $3F, $00, $C8 db $00, $8B, $00, $7C, $00, $1E, $00, $03 db $00, $20, $00, $01, $00, $CF, $00, $7F db $00, $FC, $00, $F8, $00, $CD, $00, $07 db $00, $00, $00, $FC, $00, $07, $00, $FE db $00, $5E, $00, $63, $00, $C0, $00, $00 db $00, $40, $00, $00, $00, $80, $00, $FF db $00, $EA, $00, $C7, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $01, $00, $06, $01, $08, $07 db $38, $07, $20, $1F, $2E, $11, $1E, $05 db $2B, $16, $45, $3B, $82, $7D, $87, $78 db $79, $06, $11, $0E, $20, $1F, $3F, $00 db $00, $00, $F0, $00, $6E, $F0, $05, $FE db $1D, $E2, $3E, $D0, $F8, $10, $F8, $50 db $FC, $58, $FC, $F8, $78, $F0, $F0, $00 db $E0, $C0, $F0, $C0, $C8, $30, $F8, $00 db $01, $00, $06, $01, $08, $07, $38, $07 db $20, $1F, $2E, $11, $1E, $05, $1B, $06 db $25, $1B, $22, $1D, $43, $3C, $47, $38 db $3D, $02, $08, $07, $10, $0F, $1F, $00 db $F0, $00, $6C, $F0, $06, $FC, $1A, $E4 db $3E, $D0, $F8, $10, $F8, $50, $FC, $58 db $FC, $F8, $78, $F0, $F0, $00, $E0, $C0 db $E0, $C0, $E0, $00, $10, $E0, $F0, $00 db $01, $00, $1E, $01, $10, $0F, $10, $0F db $16, $09, $0F, $02, $17, $0A, $27, $1B db $27, $19, $42, $3D, $43, $3C, $27, $18 db $1C, $03, $08, $07, $10, $0F, $1F, $00 db $E0, $00, $78, $E0, $04, $F8, $06, $FC db $0A, $F4, $1A, $E4, $7C, $90, $F8, $50 db $FC, $D8, $FC, $F8, $78, $E0, $F0, $00 db $58, $B0, $78, $B0, $30, $C0, $F0, $00 db $00, $00, $0F, $00, $08, $07, $08, $07 db $0B, $04, $07, $01, $0B, $05, $13, $0D db $13, $0C, $21, $1E, $21, $1E, $13, $0C db $0E, $01, $08, $07, $10, $0F, $1F, $00 db $F0, $00, $3C, $F0, $02, $FC, $03, $FE db $05, $FA, $8D, $72, $BE, $48, $FC, $A8 db $FE, $EC, $7E, $FC, $BC, $70, $F8, $00 db $2C, $D8, $3C, $D8, $38, $C0, $F0, $00 db $0F, $00, $7F, $07, $FF, $00, $7F, $07 db $FF, $0C, $7F, $17, $2F, $1D, $16, $0F db $3F, $00, $54, $3B, $7B, $37, $38, $07 db $3F, $18, $2F, $1C, $17, $0C, $0E, $01 db $C0, $00, $B0, $40, $F8, $90, $F8, $30 db $F4, $A8, $B2, $EC, $A2, $DC, $FC, $00 db $24, $D8, $1E, $EC, $DE, $EC, $1C, $E0 db $FE, $0C, $FA, $1C, $F4, $18, $38, $00 db $07, $00, $0F, $00, $1F, $00, $3F, $13 db $3F, $14, $27, $1F, $17, $0F, $0D, $03 db $1B, $04, $2E, $19, $3D, $1B, $1C, $03 db $17, $0C, $1F, $0C, $17, $0C, $0E, $01 db $F0, $00, $C8, $30, $E4, $18, $FE, $E4 db $FE, $94, $F2, $FC, $EE, $70, $DC, $E0 db $F6, $08, $0B, $F6, $EB, $F6, $0E, $F0 db $FE, $00, $FD, $0E, $FA, $1D, $3C, $02 db $00, $00, $00, $00, $44, $44, $28, $28 db $10, $10, $28, $28, $44, $44, $00, $00 db $00, $00, $00, $00, $44, $44, $28, $28 db $10, $10, $28, $28, $44, $44, $00, $00 db $00, $00, $00, $00, $44, $44, $28, $28 db $10, $10, $28, $28, $44, $44, $00, $00 db $00, $00, $00, $00, $44, $44, $28, $28 db $10, $10, $28, $28, $44, $44, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $01, $00 db $00, $00, $04, $00, $08, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $40, $00, $40, $00, $40, $00 db $40, $00, $40, $00, $40, $00, $C0, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $04, $00, $C8, $00, $38, $00 db $1F, $00, $1F, $00, $0F, $00, $07, $00 db $03, $00, $00, $00, $00, $00, $00, $00 db $1F, $00, $5F, $00, $87, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $80, $00, $FC, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $18, $00, $00, $00 db $C0, $00, $FF, $00, $FF, $00, $DE, $00 db $C0, $00, $50, $00, $48, $00, $4E, $00 db $7E, $00, $7F, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $7F, $00, $0E, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $C0, $00, $E0, $00, $FF, $00 db $FF, $00, $FF, $00, $C6, $00, $00, $00 db $C0, $C0, $60, $60, $30, $30, $18, $18 db $0C, $0C, $06, $06, $03, $03, $01, $01 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $80, $80, $C0, $C0, $40, $40, $60, $60 db $20, $20, $30, $30, $10, $10, $18, $18 db $08, $08, $0C, $0C, $04, $04, $04, $04 db $00, $00, $00, $00, $00, $00, $00, $00 db $01, $01, $01, $01, $03, $03, $0E, $0E db $18, $18, $18, $18, $1C, $1C, $0E, $0E db $03, $03, $01, $01, $01, $01, $07, $07 db $1E, $1E, $7C, $7C, $E0, $E0, $C0, $C0 db $01, $01, $03, $03, $1E, $1E, $38, $38 db $30, $30, $60, $60, $60, $60, $60, $60 db $70, $70, $1C, $1C, $06, $06, $06, $06 db $02, $02, $02, $02, $02, $02, $01, $01 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $03, $03, $1E, $1E, $30, $30, $20, $20 db $20, $20, $20, $20, $40, $40, $80, $80 db $38, $38, $70, $70, $E0, $E0, $E0, $E0 db $60, $60, $70, $70, $38, $38, $1C, $1C db $0E, $0E, $07, $07, $07, $07, $07, $07 db $1E, $1E, $3C, $3C, $38, $38, $38, $38 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $80, $00, $61, $00, $3F, $00, $0F db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $E1, $00, $FF, $00, $CE, $00, $80 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $01, $00, $03, $01 db $03, $01, $01, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $0C, $00, $0E, $04, $07, $02, $03, $01 db $03, $01, $07, $02, $0E, $04, $0C, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $01, $00, $01, $00, $01, $00, $0F, $01 db $1F, $0F, $0F, $01, $01, $00, $01, $00 db $01, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $80, $00 db $C0, $80, $C0, $80, $C0, $80, $F8, $C0 db $FC, $F8, $F8, $C0, $C0, $80, $C0, $80 db $C0, $80, $80, $00, $00, $00, $00, $00 db $34, $CB, $60, $9F, $54, $AB, $E0, $1F db $A0, $5F, $C8, $37, $A0, $5F, $50, $AF db $41, $82, $04, $C1, $00, $E1, $22, $C0 db $00, $F0, $00, $F8, $10, $EC, $86, $79 db $02, $FD, $03, $FC, $89, $76, $5E, $A1 db $55, $AA, $FA, $05, $EC, $13, $F0, $0F db $C0, $3F, $50, $BF, $90, $7F, $A8, $6F db $29, $EF, $26, $E6, $64, $C4, $67, $C6 db $00, $FF, $20, $FF, $60, $FF, $A1, $BF db $63, $3F, $95, $5D, $9B, $59, $93, $51 db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $A8, $57, $C8, $37, $F6, $09, $6A, $95 db $7B, $84, $38, $C0, $02, $E0, $30, $C0 db $01, $FE, $07, $F8, $59, $A6, $4B, $B4 db $17, $E8, $6A, $15, $9C, $03, $08, $07 db $03, $FC, $15, $EA, $0A, $F5, $45, $BA db $2B, $D4, $DE, $21, $74, $8B, $D8, $27 db $84, $7C, $87, $7F, $84, $7C, $04, $FC db $04, $FC, $04, $FC, $04, $FC, $02, $FE db $C3, $40, $C3, $C0, $83, $80, $83, $80 db $87, $80, $87, $80, $87, $80, $0F, $00 db $E0, $60, $E0, $60, $E0, $60, $E0, $60 db $E0, $60, $E0, $60, $E0, $60, $D0, $70 db $F1, $11, $F0, $10, $F0, $10, $F0, $10 db $F1, $10, $F3, $10, $03, $00, $07, $00 db $FE, $83, $7E, $43, $FF, $27, $FB, $2C db $F3, $1C, $F6, $19, $E4, $3B, $C4, $7B db $18, $FF, $78, $FF, $FC, $8F, $FF, $0F db $B8, $78, $60, $E0, $C0, $C0, $C7, $87 db $3E, $C3, $1E, $E3, $1E, $E3, $CE, $F3 db $7F, $71, $1F, $18, $0F, $0C, $C7, $C6 db $74, $8B, $28, $D7, $16, $E9, $0D, $F2 db $03, $FC, $00, $FF, $00, $FF, $00, $FF db $56, $A9, $AC, $53, $D9, $27, $73, $8E db $C7, $3C, $0C, $F8, $08, $F8, $1D, $F0 db $3C, $FF, $FF, $C3, $FF, $01, $FF, $00 db $FF, $03, $7F, $00, $FF, $00, $7F, $80 db $E9, $C9, $79, $79, $67, $46, $E3, $80 db $E7, $C3, $EC, $2C, $F1, $10, $C7, $00 db $87, $47, $E9, $E9, $19, $D9, $7F, $FF db $FF, $80, $7F, $00, $FE, $00, $8C, $70 db $00, $FF, $C0, $FF, $F0, $3F, $F9, $8E db $FD, $06, $FF, $02, $7F, $01, $1F, $01 db $78, $84, $D5, $2A, $E0, $1F, $C8, $37 db $A0, $5F, $D0, $2F, $A0, $5F, $C8, $37 db $18, $07, $54, $AB, $1C, $E3, $2E, $D1 db $1E, $E1, $4A, $B5, $9E, $61, $2C, $D3 db $E0, $1F, $00, $FF, $00, $FF, $00, $FF db $00, $FF, $00, $FF, $00, $FF, $01, $FE db $02, $FE, $02, $FE, $02, $FE, $01, $FF db $01, $FF, $70, $8F, $F8, $07, $9C, $63 db $0F, $00, $1F, $00, $3F, $00, $FF, $01 db $FF, $01, $FE, $83, $7C, $C7, $38, $FF db $98, $F0, $9C, $F0, $CE, $B8, $CF, $38 db $E7, $9C, $77, $CC, $3B, $F6, $0D, $FB db $0F, $00, $1F, $01, $3E, $03, $FC, $07 db $F8, $0F, $F0, $1F, $E0, $3F, $C0, $FF db $81, $FF, $09, $FF, $0B, $FE, $1B, $FE db $1F, $FE, $1E, $FF, $1E, $FF, $1E, $FF db $CC, $0C, $D8, $18, $D0, $10, $D0, $10 db $D0, $10, $F9, $18, $EF, $0F, $F0, $00 db $23, $23, $13, $13, $09, $09, $09, $09 db $F9, $09, $F0, $30, $C0, $C0, $00, $00 db $00, $FF, $00, $FF, $00, $FF, $01, $FF db $01, $FF, $01, $FF, $01, $FF, $81, $7F db $1F, $F0, $1F, $F0, $9F, $F0, $9F, $F0 db $DE, $71, $FE, $31, $FC, $03, $78, $87 db $3F, $C0, $3F, $C0, $1F, $E0, $0F, $F0 db $27, $F8, $31, $FE, $28, $EF, $46, $C7 db $C7, $00, $FF, $00, $FE, $01, $FC, $03 db $F8, $07, $C1, $3F, $06, $FE, $38, $F8 db $8C, $70, $0E, $F0, $07, $F8, $47, $F8 db $E3, $BC, $E3, $3C, $E1, $3E, $71, $1E db $1F, $00, $6F, $00, $3F, $00, $FF, $00 db $FF, $00, $FF, $00, $EB, $00, $EB, $00 db $E4, $9B, $F2, $8D, $BD, $C2, $9F, $E0 db $87, $F8, $80, $FF, $C0, $7F, $C0, $7F db $9C, $63, $38, $C7, $F0, $0F, $E0, $1F db $80, $7F, $00, $FF, $01, $FE, $02, $FD db $88, $FF, $9F, $F4, $BA, $E2, $DA, $E2 db $DE, $E4, $4E, $F4, $4F, $F8, $33, $FC db $00, $FF, $F0, $0F, $0C, $03, $06, $01 db $06, $01, $0E, $01, $1D, $03, $F9, $07 db $8F, $F0, $8F, $F0, $47, $F8, $47, $F8 db $A3, $FC, $A0, $FF, $90, $FF, $E8, $FF db $C0, $00, $E0, $00, $F0, $00, $F8, $00 db $FC, $00, $FF, $00, $7F, $80, $3F, $C0 db $03, $02, $01, $01, $00, $00, $00, $00 db $00, $00, $00, $00, $C0, $00, $C0, $00 db $0F, $00, $00, $00, $1E, $00, $01, $00 db $00, $00, $00, $00, $02, $00, $01, $00 db $80, $00, $60, $00, $00, $00, $80, $00 db $40, $00, $00, $00, $00, $00, $00, $00 db $80, $FF, $80, $FF, $80, $FF, $80, $FF db $40, $7F, $40, $7F, $40, $7F, $40, $7F db $C9, $3F, $CE, $3F, $6F, $99, $AF, $58 db $67, $9C, $A4, $5F, $C2, $3F, $41, $BF db $00, $FF, $82, $FF, $C1, $FF, $C1, $3F db $81, $7F, $01, $FF, $01, $FF, $81, $FF db $59, $D9, $80, $A4, $00, $00, $80, $80 db $F0, $70, $C8, $C8, $84, $84, $8C, $8C db $C3, $C3, $00, $04, $00, $00, $00, $00 db $01, $00, $03, $01, $06, $02, $04, $04 db $F0, $9F, $38, $4F, $7C, $07, $7F, $13 db $FE, $F7, $1E, $1F, $0E, $0B, $6F, $6E db $F1, $00, $30, $C0, $0D, $F0, $1F, $E0 db $1F, $E0, $1F, $E0, $38, $F7, $E8, $2F db $E0, $3F, $F8, $1F, $FF, $07, $FF, $00 db $FF, $00, $EF, $10, $0F, $F3, $1F, $E7 db $25, $FA, $66, $F9, $EA, $B5, $EC, $33 db $CA, $75, $9C, $F3, $37, $F8, $F6, $D8 db $21, $FE, $18, $FF, $0F, $FF, $04, $FF db $04, $FF, $05, $FE, $05, $FE, $04, $FF db $E3, $1F, $0F, $FC, $FF, $F8, $18, $E0 db $E0, $00, $80, $00, $80, $00, $C0, $00 db $3C, $FF, $86, $7F, $C3, $3F, $F1, $0F db $1C, $1F, $26, $27, $26, $23, $2E, $23 db $0F, $F0, $07, $F8, $03, $FC, $87, $F8 db $C7, $F8, $C7, $F8, $87, $F8, $87, $F8 db $C0, $00, $80, $00, $80, $00, $80, $00 db $80, $00, $80, $00, $C0, $00, $C0, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $FF, $FF, $00, $00, $00, $6A, $00, $8E db $00, $8A, $00, $6A, $00, $00, $FF, $FF db $40, $7F, $40, $7F, $20, $3F, $20, $3F db $20, $3F, $20, $3F, $20, $3F, $20, $3F db $80, $7F, $00, $FF, $00, $FF, $00, $FF db $0C, $FF, $0F, $FB, $0F, $F8, $07, $FC db $71, $FF, $21, $FF, $21, $FF, $13, $FF db $24, $FC, $C8, $F8, $C8, $38, $BF, $7F db $92, $96, $9E, $96, $CC, $8C, $A0, $98 db $81, $80, $80, $82, $84, $84, $40, $42 db $00, $04, $04, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $01, $00 db $9F, $BA, $FF, $BA, $7F, $72, $1F, $E2 db $FF, $04, $FE, $05, $FC, $0B, $FC, $F3 db $C4, $47, $44, $D7, $44, $D7, $54, $D7 db $44, $D7, $4E, $CF, $51, $D1, $60, $E0 db $1F, $E0, $3F, $C0, $01, $FE, $03, $FC db $03, $FF, $06, $FB, $0F, $F1, $8F, $F0 db $E0, $3C, $E6, $38, $CF, $70, $8A, $F5 db $1C, $E3, $1C, $E3, $1A, $E5, $9C, $E3 db $06, $FF, $02, $FF, $01, $FF, $01, $FF db $01, $FF, $01, $FF, $01, $FF, $00, $FF db $E0, $00, $7F, $80, $1F, $E0, $8F, $F0 db $70, $FF, $0F, $FF, $00, $FF, $90, $EF db $FE, $17, $FD, $1F, $F3, $0F, $C7, $3E db $1F, $FD, $F6, $FA, $0E, $F2, $3F, $C3 db $87, $F8, $87, $F8, $87, $F8, $C7, $F8 db $C7, $78, $C3, $7C, $C3, $7C, $C3, $7C db $C0, $00, $C0, $00, $E0, $00, $E0, $00 db $F0, $00, $F0, $00, $F8, $00, $FC, $00 db $FF, $FF, $00, $01, $00, $EA, $00, $AB db $00, $C8, $00, $AB, $00, $00, $FF, $FF db $FF, $FF, $00, $80, $00, $3A, $00, $92 db $00, $92, $00, $12, $00, $00, $FF, $FF db $20, $3F, $20, $3F, $20, $3F, $20, $3F db $20, $3F, $20, $3F, $20, $3F, $20, $3F db $06, $FD, $02, $FF, $02, $FF, $01, $FF db $00, $FF, $1C, $E3, $2A, $D5, $65, $9A db $61, $E1, $40, $C0, $44, $CC, $CA, $CE db $87, $87, $87, $84, $40, $C0, $78, $E0 db $C0, $C0, $C1, $C1, $E1, $E1, $E1, $E1 db $F9, $F1, $7F, $F9, $FF, $0C, $1F, $02 db $01, $00, $C3, $C0, $E3, $E0, $27, $20 db $EF, $E7, $F8, $C8, $F0, $10, $F0, $10 db $F8, $47, $FF, $37, $F8, $48, $F0, $30 db $F6, $92, $77, $73, $0F, $0E, $07, $00 db $E0, $E0, $90, $90, $99, $89, $DE, $4F db $FE, $4B, $F6, $4B, $AC, $57, $FF, $0F db $87, $F8, $83, $FC, $00, $FF, $00, $FF db $00, $FF, $01, $FF, $01, $FE, $81, $FE db $FA, $65, $FE, $19, $1D, $EA, $1E, $F1 db $67, $F8, $81, $FE, $80, $FF, $C0, $7F db $FF, $FF, $00, $07, $00, $94, $00, $D7 db $00, $B4, $00, $97, $00, $00, $FF, $FF db $87, $F8, $C3, $FC, $60, $FF, $38, $FF db $0F, $FF, $00, $FF, $00, $FF, $00, $FF db $FF, $01, $F8, $07, $00, $FF, $03, $FF db $FF, $FE, $10, $FF, $0C, $FF, $03, $FF db $E1, $FE, $30, $FF, $70, $FF, $E8, $DF db $E4, $1F, $07, $FF, $1A, $FF, $E4, $FF db $FF, $00, $FF, $00, $7F, $80, $3F, $C0 db $0F, $F0, $03, $FC, $F0, $FF, $00, $FF db $00, $00, $C0, $00, $F8, $00, $FF, $00 db $FF, $00, $FF, $00, $7F, $80, $FF, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $80, $00, $80, $00, $80, $00, $C0, $00 db $20, $3F, $10, $1F, $10, $1F, $08, $0F db $08, $0F, $04, $07, $04, $07, $02, $03 db $80, $7F, $C1, $3E, $C0, $3F, $61, $9E db $2E, $D1, $1C, $E3, $00, $FF, $00, $FF db $BE, $70, $9F, $7C, $FF, $67, $63, $C0 db $C7, $C0, $EF, $80, $FF, $80, $FF, $80 db $07, $01, $83, $00, $E3, $00, $F3, $C0 db $B3, $60, $93, $70, $93, $70, $13, $F0 db $F0, $10, $F0, $F0, $F1, $90, $F1, $91 db $F1, $D0, $B3, $F0, $93, $F0, $93, $F0 db $1F, $00, $FF, $00, $FF, $00, $FF, $FF db $87, $FC, $87, $FC, $8F, $F8, $CF, $F8 db $FF, $10, $FF, $20, $F1, $C0, $E0, $80 db $FB, $00, $FF, $00, $DF, $20, $DF, $20 db $F1, $7E, $F8, $0F, $FC, $07, $FA, $07 db $FA, $07, $FA, $07, $F1, $0F, $F1, $0F db $E0, $3F, $E0, $3F, $70, $9F, $70, $9F db $38, $CF, $38, $CF, $1C, $E7, $0F, $F3 db $00, $FF, $00, $FF, $00, $FF, $C0, $FF db $30, $3F, $08, $0F, $04, $07, $02, $03 db $FF, $FF, $00, $36, $00, $7F, $00, $7F db $00, $3E, $00, $1C, $00, $08, $FF, $FF db $FE, $FF, $1A, $07, $1A, $07, $19, $07 db $19, $07, $19, $07, $19, $07, $FF, $FF db $F8, $00, $78, $80, $7C, $80, $3C, $C0 db $3E, $C0, $3F, $C0, $1F, $E0, $9F, $E0 db $00, $00, $00, $00, $00, $00, $00, $00 db $03, $03, $04, $04, $89, $09, $82, $02 db $41, $41, $21, $21, $23, $21, $13, $11 db $17, $11, $8F, $89, $8F, $89, $07, $07 db $C0, $00, $80, $00, $80, $00, $C0, $00 db $C0, $00, $F0, $00, $E0, $00, $80, $00 db $08, $0F, $04, $07, $04, $07, $02, $03 db $02, $03, $01, $01, $01, $01, $01, $01 db $E0, $1F, $F8, $07, $5C, $A3, $B6, $49 db $0D, $F2, $53, $AC, $05, $FA, $1A, $E5 db $FE, $81, $6C, $D3, $48, $F7, $28, $FF db $14, $FF, $0F, $FF, $84, $7C, $84, $7C db $13, $F0, $13, $F0, $33, $F0, $A3, $E0 db $A3, $E0, $E3, $E0, $E3, $60, $C3, $40 db $93, $F0, $93, $F0, $91, $F0, $91, $F0 db $91, $F0, $D1, $70, $D1, $70, $E1, $60 db $CB, $7C, $C8, $7F, $C8, $7F, $C7, $7F db $C4, $7C, $E4, $3C, $E8, $38, $FE, $3E db $9F, $60, $9F, $E0, $9F, $E0, $8C, $F3 db $60, $7F, $11, $1F, $3E, $0F, $3C, $07 db $C1, $3F, $C1, $3F, $01, $FF, $01, $FF db $02, $FF, $02, $FF, $04, $FF, $08, $FF db $0F, $F1, $7E, $83, $7C, $87, $78, $9F db $78, $8F, $3C, $C7, $3C, $C7, $3E, $C3 db $01, $01, $00, $00, $00, $00, $00, $00 db $00, $00, $78, $00, $F0, $00, $C0, $00 db $00, $FF, $80, $FF, $40, $7F, $20, $3F db $20, $3F, $10, $1F, $10, $1F, $08, $0F db $81, $81, $81, $81, $81, $81, $81, $81 db $81, $81, $81, $81, $41, $41, $41, $41 db $FF, $FF, $80, $80, $80, $80, $80, $80 db $80, $80, $80, $80, $80, $80, $81, $81 db $FF, $FF, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $FF, $FF db $81, $81, $80, $80, $80, $80, $80, $80 db $80, $80, $80, $80, $80, $80, $FF, $FF db $FF, $FF, $01, $01, $01, $01, $01, $01 db $01, $01, $01, $01, $01, $01, $81, $81 db $81, $81, $81, $81, $81, $81, $81, $81 db $81, $81, $81, $81, $81, $81, $81, $81 db $FF, $00, $2F, $00, $F0, $00, $C3, $00 db $1F, $00, $FC, $00, $0F, $00, $07, $00 db $FF, $00, $E0, $00, $3F, $00, $F3, $00 db $00, $00, $FE, $00, $07, $00, $FC, $00 db $00, $00, $02, $00, $F8, $00, $3F, $00 db $00, $00, $80, $00, $04, $00, $01, $00 db $7F, $00, $00, $00, $00, $00, $87, $00 db $7C, $00, $80, $00, $00, $00, $F5, $00 db $03, $03, $05, $06, $FF, $07, $3F, $00 db $00, $00, $87, $07, $1E, $18, $3B, $27 db $C7, $87, $7A, $CE, $FC, $FC, $FF, $30 db $7C, $10, $F8, $D0, $F0, $30, $DD, $F0 db $3F, $00, $0F, $00, $07, $00, $07, $00 db $03, $00, $03, $00, $00, $00, $00, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $1F, $00, $07, $00 db $FF, $00, $FF, $00, $FF, $00, $FE, $00 db $FC, $00, $FC, $00, $F8, $00, $F8, $00 db $FC, $00, $E0, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $F8, $00, $E0, $00, $C0, $00, $80, $00 db $81, $01, $02, $03, $02, $03, $04, $07 db $01, $01, $1F, $1F, $63, $7C, $80, $FF db $00, $FF, $03, $FF, $1C, $FF, $63, $FC db $F8, $F8, $DE, $E6, $FD, $3B, $35, $CF db $07, $FF, $FF, $FE, $EE, $1C, $06, $FC db $7F, $7F, $9C, $E3, $3E, $FF, $53, $E1 db $A1, $C0, $A1, $C0, $B3, $C0, $9F, $E0 db $07, $07, $DB, $DC, $2F, $F3, $AD, $FE db $70, $FF, $7F, $DF, $5E, $CF, $58, $CF db $E0, $E0, $7E, $FE, $B1, $CF, $C0, $3F db $00, $FF, $FC, $FF, $7B, $87, $06, $F9 db $FC, $00, $03, $00, $F0, $00, $00, $00 db $0F, $00, $F0, $00, $1F, $00, $F9, $00 db $00, $00, $FF, $00, $00, $00, $1F, $00 db $E0, $00, $07, $00, $F8, $00, $80, $00 db $FF, $00, $FC, $00, $07, $00, $40, $00 db $00, $00, $02, $00, $00, $00, $00, $00 db $80, $00, $03, $00, $FF, $00, $F8, $00 db $01, $00, $00, $00, $00, $00, $40, $00 db $EF, $5C, $94, $FB, $A3, $FF, $FE, $FF db $ED, $73, $61, $00, $00, $00, $00, $00 db $78, $18, $1B, $FC, $EB, $FC, $1E, $F8 db $F9, $E0, $E0, $00, $00, $00, $40, $00 db $03, $00, $01, $00, $01, $00, $01, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $F8, $00, $C0, $00, $80, $00, $80, $00 db $80, $00, $00, $00, $00, $00, $00, $00 db $0F, $0F, $FF, $30, $F9, $C6, $B7, $F8 db $9F, $F0, $5C, $F3, $B8, $7F, $7F, $7F db $FF, $FF, $FF, $00, $FF, $00, $FF, $00 db $83, $7C, $00, $FF, $FF, $FF, $62, $81 db $05, $07, $07, $07, $04, $07, $08, $0F db $18, $17, $30, $2F, $30, $3F, $08, $0F db $80, $FF, $03, $FF, $07, $FF, $0C, $FF db $19, $FE, $30, $FF, $20, $FF, $40, $FF db $FF, $FC, $C5, $FE, $36, $CF, $C7, $3F db $04, $FF, $1B, $FC, $34, $FB, $29, $F7 db $40, $FF, $BF, $7F, $51, $E0, $D1, $E0 db $4E, $F1, $61, $FF, $FF, $FF, $8E, $FF db $EF, $DF, $49, $FE, $38, $FF, $7E, $FF db $47, $FF, $E9, $F7, $34, $FB, $12, $FD db $E1, $FE, $D8, $3F, $3E, $CF, $0B, $F7 db $01, $FF, $80, $FF, $C0, $FF, $C0, $FF db $07, $00, $03, $00, $81, $80, $41, $C0 db $20, $E0, $20, $E0, $90, $F0, $D0, $F0 db $38, $3F, $60, $5F, $41, $7F, $72, $7F db $0A, $0F, $F2, $FF, $E4, $9F, $84, $FF db $80, $FF, $80, $FF, $00, $FF, $01, $FF db $01, $FF, $03, $FF, $03, $FF, $03, $FF db $61, $FF, $C3, $FF, $83, $FF, $82, $FF db $86, $FF, $06, $FF, $04, $FF, $E4, $FF db $A4, $DF, $24, $DF, $24, $DF, $04, $FF db $07, $FF, $07, $FE, $06, $FD, $04, $FF db $5A, $BD, $28, $DF, $28, $DF, $0C, $FF db $84, $FF, $84, $7F, $06, $FF, $02, $FF db $E0, $FF, $60, $FF, $30, $FF, $30, $FF db $30, $FF, $10, $FF, $10, $FF, $10, $FF db $21, $FF, $21, $FF, $17, $FF, $14, $FC db $16, $FA, $0B, $FD, $09, $FF, $09, $FF db $48, $FF, $48, $FF, $41, $FF, $21, $FF db $21, $FF, $11, $FF, $09, $FF, $07, $FF db $FF, $FF, $BF, $FF, $BF, $FF, $1F, $FF db $1F, $FF, $0E, $FF, $04, $FF, $00, $FF db $10, $FF, $10, $FF, $10, $FF, $10, $FF db $13, $FF, $90, $FF, $90, $FF, $80, $FF db $0F, $FF, $0F, $FF, $0F, $FE, $1F, $FE db $9E, $FF, $FF, $FF, $FF, $7F, $7F, $FF db $82, $FF, $82, $7F, $02, $FF, $02, $FF db $12, $FF, $30, $FF, $E0, $FF, $C1, $FF db $3F, $FF, $3F, $FF, $3F, $FF, $FF, $FF db $7E, $FF, $6C, $FF, $C0, $FF, $80, $FF db $E1, $DF, $C1, $BF, $82, $FF, $82, $FF db $C4, $FF, $44, $FF, $48, $FF, $70, $FF db $00, $00, $00, $00, $24, $24, $18, $18 db $18, $18, $24, $24, $00, $00, $00, $00 db $30, $F0, $08, $F8, $04, $FC, $04, $FC db $82, $FE, $C2, $FE, $42, $FE, $61, $FF db $8C, $FF, $89, $FF, $89, $FF, $88, $FF db $88, $FF, $88, $FF, $88, $FF, $48, $FF db $03, $FF, $87, $FF, $C7, $FE, $E6, $FF db $FE, $7F, $7E, $BF, $3E, $FF, $7E, $FF db $CC, $FF, $C8, $3F, $08, $FF, $08, $FF db $08, $FF, $08, $FF, $08, $FF, $10, $FF db $04, $FF, $04, $FF, $F4, $FF, $3C, $FF db $3C, $CF, $1C, $EF, $0C, $FF, $0F, $FF db $02, $FF, $02, $FF, $02, $FF, $02, $FF db $02, $FF, $22, $FF, $E2, $FF, $C2, $FF db $11, $FF, $17, $FF, $1F, $FF, $FE, $FD db $7C, $FB, $38, $FF, $3C, $FF, $3E, $FF db $C9, $FF, $89, $FF, $09, $FF, $09, $FF db $09, $FF, $09, $FF, $09, $FF, $69, $FF db $F0, $E0, $DF, $3F, $FF, $00, $FF, $00 db $FF, $00, $1F, $E0, $C0, $FF, $3F, $FF db $00, $00, $FF, $FF, $FF, $00, $FF, $00 db $FF, $00, $C3, $3C, $00, $FF, $FF, $FF db $80, $FF, $C1, $FF, $C3, $FF, $E7, $FF db $BE, $FF, $BC, $FF, $9B, $FC, $A7, $D8 db $FF, $FF, $FF, $FF, $C1, $FF, $9E, $E1 db $7F, $80, $02, $FD, $00, $FF, $90, $6F db $81, $FF, $C1, $FF, $E3, $FF, $E7, $FF db $3F, $FF, $1D, $FF, $49, $BF, $E1, $1F db $BF, $C0, $D3, $EC, $C1, $FE, $C1, $FE db $C8, $F7, $9C, $E3, $BE, $C1, $BE, $C1 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $92, $6D, $00, $FF, $00, $FF, $3C, $C3 db $FD, $03, $F9, $07, $F1, $0F, $A1, $5F db $05, $FB, $0D, $F3, $2F, $D3, $FF, $03 db $FE, $00, $03, $00, $1C, $00, $E2, $01 db $01, $00, $06, $01, $30, $0F, $C0, $3F db $FF, $01, $81, $01, $32, $0F, $0F, $FC db $BF, $70, $3F, $E0, $5F, $E0, $5F, $E0 db $BF, $C0, $3F, $C0, $2F, $D0, $0F, $F0 db $07, $F8, $E2, $1D, $E0, $1F, $F0, $0F db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $3F, $C0, $19, $E6, $00, $FF, $E0, $1F db $FD, $03, $FD, $03, $F8, $07, $F8, $07 db $B0, $4F, $01, $FE, $03, $FC, $07, $F8 db $FF, $00, $C1, $80, $CC, $70, $F0, $3F db $FD, $0E, $FC, $07, $FA, $07, $FA, $07 db $7F, $00, $C0, $00, $38, $00, $47, $80 db $80, $00, $60, $80, $0C, $F0, $03, $FC db $40, $3F, $30, $0F, $96, $01, $3C, $03 db $10, $0F, $38, $07, $FF, $00, $0F, $00 db $43, $FC, $61, $FE, $3C, $FF, $02, $FF db $01, $FF, $00, $FF, $C0, $3F, $0E, $01 db $F9, $06, $FF, $00, $FF, $00, $7F, $80 db $1C, $E3, $C7, $FF, $78, $FF, $00, $FF db $F0, $0F, $F9, $06, $FF, $00, $FF, $00 db $7E, $81, $BD, $C3, $FF, $FF, $00, $FF db $CF, $30, $FF, $00, $FF, $00, $FE, $01 db $3C, $C3, $E3, $FF, $1E, $FF, $00, $FF db $C2, $3F, $86, $7F, $3C, $FF, $40, $FF db $80, $FF, $00, $FF, $03, $FC, $70, $80 db $02, $FC, $0C, $F0, $69, $80, $3C, $C0 db $08, $F0, $1C, $E0, $FF, $00, $F0, $00 db $1F, $0F, $F7, $F8, $FF, $00, $FF, $00 db $FF, $00, $80, $7F, $FF, $FF, $3C, $C3 db $FC, $FC, $FA, $0E, $89, $7F, $F9, $0F db $FF, $07, $7E, $87, $05, $FE, $FD, $FE db $00, $00, $00, $FF, $81, $3E, $18, $E7 db $00, $FF, $30, $CF, $00, $FF, $03, $FC db $00, $00, $00, $FF, $8C, $73, $00, $FF db $40, $9F, $00, $FF, $00, $FF, $06, $F9 db $00, $FF, $00, $FF, $00, $FF, $30, $CF db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $00, $FF, $00, $FF, $00, $FF, $60, $9F db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $01, $FE, $2C, $D3, $00, $FF, $00, $FF db $00, $FF, $00, $FF, $72, $8C, $19, $E0 db $C0, $3F, $34, $CB, $00, $FF, $00, $FF db $00, $FF, $00, $FF, $20, $1F, $C2, $01 db $04, $03, $03, $FF, $FF, $FF, $F0, $FF db $00, $FF, $00, $FF, $07, $F8, $3B, $C4 db $04, $F8, $E0, $FF, $FF, $FF, $0F, $FF db $00, $FF, $00, $FF, $E0, $1F, $FC, $03 db $00, $00, $00, $FF, $70, $8F, $02, $F9 db $00, $FF, $00, $FF, $0C, $F3, $00, $FF db $00, $00, $00, $FF, $C2, $3C, $00, $FF db $30, $CF, $00, $FF, $00, $FF, $01, $FE db $00, $FF, $00, $FF, $00, $FF, $01, $FE db $40, $BF, $00, $FF, $00, $FF, $00, $FF db $00, $FF, $00, $FF, $00, $FF, $80, $7F db $02, $FD, $00, $FF, $00, $FF, $00, $FF db $00, $FF, $61, $9E, $07, $F8, $FC, $03 db $00, $FF, $00, $FF, $00, $FF, $60, $9F db $00, $FF, $C2, $3D, $38, $C7, $07, $F8 db $00, $FF, $00, $FF, $00, $FF, $38, $C7 db $18, $E0, $07, $00, $F0, $0F, $00, $FF db $00, $FF, $07, $F8, $3F, $C0, $FB, $04 db $20, $1F, $C1, $0E, $30, $C0, $06, $F9 db $00, $FF, $80, $7F, $F0, $0F, $FF, $00 db $00, $00, $00, $FF, $30, $CE, $00, $FF db $06, $F9, $00, $FF, $00, $FF, $80, $7F db $00, $00, $00, $FF, $82, $7C, $18, $E7 db $00, $FF, $00, $FF, $00, $FF, $0C, $F3 db $00, $FF, $00, $FF, $00, $FF, $0C, $F3 db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $02, $FD, $00, $FF, $00, $FF, $00, $FF db $00, $FF, $00, $FF, $30, $CF, $07, $F8 db $8E, $71, $F8, $07, $00, $FF, $00, $FF db $00, $FF, $00, $FF, $06, $F9, $F0, $0F db $3F, $C0, $00, $FF, $00, $FF, $00, $FF db $00, $FF, $00, $FF, $0C, $F3, $73, $8C db $18, $E0, $04, $00, $FF, $00, $FF, $00 db $00, $FF, $00, $FF, $19, $E6, $E6, $19 db $0D, $00, $30, $00, $FF, $00, $FF, $00 db $00, $00, $00, $FF, $C3, $3C, $00, $FF db $0C, $F3, $00, $FF, $00, $FF, $30, $CF db $00, $00, $00, $FF, $0A, $F1, $20, $9F db $00, $FF, $00, $FF, $00, $FF, $C0, $3F db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $60, $9F, $00, $FF, $00, $FF, $01, $FE db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $18, $E7, $00, $FF, $00, $FF, $C0, $3F db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $40, $BF, $18, $E0, $C8, $07, $60, $9F db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $00, $FF, $70, $0F, $18, $E0, $0E, $F1 db $0F, $FF, $E0, $FF, $00, $FF, $00, $FF db $C7, $38, $38, $C7, $C4, $38, $17, $E0 db $E0, $FF, $0F, $FF, $00, $FF, $00, $FF db $C1, $3E, $3C, $C3, $67, $18, $C4, $03 db $03, $00, $04, $03, $39, $07, $40, $3F db $40, $3F, $20, $1F, $30, $0F, $20, $1F db $10, $0F, $20, $1F, $20, $1F, $30, $0F db $1C, $03, $13, $0C, $08, $07, $07, $00 db $03, $00, $07, $03, $1B, $04, $3D, $13 db $39, $17, $38, $17, $29, $17, $18, $07 db $14, $0B, $22, $1D, $21, $1E, $38, $07 db $18, $0F, $17, $0F, $08, $07, $07, $00 db $C0, $00, $E0, $C0, $F8, $20, $3C, $C8 db $1C, $E8, $5C, $A8, $34, $C8, $98, $E0 db $18, $E0, $14, $E8, $24, $D8, $CC, $30 db $18, $F0, $E8, $F0, $10, $E0, $E0, $00 db $0F, $00, $36, $0F, $60, $3F, $50, $2F db $33, $0C, $1F, $02, $1F, $0A, $3F, $1E db $2E, $1D, $14, $0B, $0C, $03, $14, $0B db $1B, $04, $10, $0F, $08, $07, $07, $00 db $80, $00, $40, $80, $30, $C0, $08, $F0 db $04, $F8, $04, $F8, $08, $F0, $04, $F8 db $04, $F8, $02, $FC, $02, $FC, $02, $FC db $04, $F8, $F8, $00, $10, $E0, $E0, $00 db $00, $00, $00, $00, $44, $00, $28, $00 db $10, $00, $28, $00, $44, $00, $00, $00 db $00, $00, $00, $00, $44, $00, $28, $00 db $10, $00, $28, $00, $44, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $01, $00 db $0F, $01, $1F, $0E, $0E, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $01, $00, $03, $01 db $07, $02, $0E, $04, $0E, $04, $04, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $38, $00, $7C, $38 db $9E, $7C, $9F, $66, $F7, $03, $07, $03 db $02, $01, $01, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $38, $00, $7C, $38, $BE, $7C, $9E, $7C db $9E, $64, $6F, $06, $07, $03, $07, $03 db $02, $01, $01, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $E0, $00, $90, $60, $90, $60, $F8, $70 db $78, $30, $3F, $18, $1F, $0F, $0F, $07 db $06, $01, $01, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $60, $00 db $90, $60, $91, $60, $EF, $71, $FF, $3F db $3E, $19, $19, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $01, $00, $03, $01, $07, $03 db $06, $03, $07, $02, $0F, $06, $1F, $0E db $7E, $1C, $9E, $7C, $8C, $78, $F8, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $03, $00, $0F, $03, $1F, $0F db $3E, $19, $7D, $38, $78, $30, $F8, $70 db $88, $70, $88, $70, $48, $30, $38, $00 db $00, $00, $02, $00, $07, $02, $07, $02 db $0F, $05, $0D, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $0C, $00, $1E, $0C db $0F, $02, $03, $01, $01, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $00, $00, $7E, $00, $FF, $3C, $FF, $66 db $FF, $66, $FF, $66, $FF, $66, $FF, $66 db $00, $00, $FE, $00, $FF, $7C, $FF, $66 db $FF, $66, $FF, $66, $FF, $66, $FE, $7C db $00, $00, $7E, $00, $FF, $3C, $FF, $66 db $FF, $66, $FF, $66, $FF, $60, $F0, $60 db $00, $00, $FC, $00, $FE, $78, $FF, $64 db $FF, $66, $FF, $66, $FF, $66, $FF, $66 db $00, $00, $FF, $00, $FF, $7E, $FF, $60 db $F0, $60, $F0, $60, $FE, $60, $FE, $7C db $FF, $3C, $7E, $18, $3C, $18, $3C, $18 db $3C, $18, $3C, $18, $3C, $00, $00, $00 db $FE, $7C, $FF, $66, $FF, $66, $FF, $66 db $FF, $66, $FF, $66, $FF, $00, $00, $00 db $00, $00, $7E, $00, $7E, $3C, $3C, $18 db $3C, $18, $3C, $18, $3C, $18, $3C, $18 db $00, $00, $3F, $00, $3F, $1E, $3F, $0C db $1E, $0C, $1E, $0C, $1E, $0C, $1E, $0C db $00, $00, $FF, $00, $FF, $66, $FF, $66 db $FE, $6C, $FC, $78, $F8, $70, $F8, $70 db $00, $00, $F7, $00, $F7, $62, $FF, $62 db $FF, $76, $FF, $7E, $FF, $7E, $FF, $7E db $00, $00, $F7, $00, $F7, $62, $FF, $62 db $FF, $72, $FF, $72, $FF, $7A, $FF, $7A db $00, $00, $7E, $00, $FF, $3C, $FF, $66 db $FF, $66, $FF, $66, $FF, $60, $7E, $3C db $00, $00, $FF, $00, $FF, $7E, $FF, $18 db $3C, $18, $3C, $18, $3C, $18, $3C, $18 db $00, $00, $FF, $00, $FF, $6A, $FF, $6A db $FF, $6A, $FF, $6A, $FF, $6A, $FF, $6A db $FF, $00, $FF, $6A, $FF, $6A, $FF, $6A db $FF, $6A, $FF, $7E, $FF, $14, $7E, $00 db $FF, $7E, $FF, $66, $FF, $66, $FF, $66 db $FF, $66, $FF, $66, $FF, $00, $00, $00 db $FF, $66, $FF, $66, $FF, $66, $FF, $66 db $FF, $66, $FF, $7C, $FE, $00, $00, $00 db $FF, $60, $FF, $6E, $FF, $66, $FF, $66 db $FF, $66, $FF, $3A, $7E, $00, $00, $00 db $FF, $66, $FF, $66, $FF, $66, $FF, $66 db $FF, $64, $FE, $78, $FC, $00, $00, $00 db $FE, $60, $F0, $60, $F0, $60, $F0, $60 db $FF, $60, $FF, $7E, $FF, $00, $00, $00 db $FE, $60, $F0, $60, $F0, $60, $F0, $60 db $F0, $60, $F0, $60, $F0, $00, $00, $00 db $FF, $66, $FF, $66, $FF, $66, $FF, $66 db $FF, $66, $FF, $66, $FF, $00, $00, $00 db $00, $00, $FF, $00, $FF, $7E, $FF, $0E db $3F, $0E, $3F, $1C, $3E, $1C, $7E, $1C db $1E, $0C, $FE, $0C, $FE, $6C, $FE, $6C db $FE, $6C, $FE, $38, $7C, $00, $00, $00 db $FC, $78, $FC, $78, $FE, $6C, $FE, $6C db $FF, $66, $FF, $66, $FF, $00, $00, $00 db $FF, $7E, $FF, $6A, $FF, $6A, $FF, $6A db $FF, $62, $F7, $62, $F7, $00, $00, $00 db $FF, $6E, $FF, $6E, $FF, $66, $FF, $66 db $FF, $62, $F7, $62, $F7, $00, $00, $00 db $FF, $06, $FF, $66, $FF, $66, $FF, $66 db $FF, $66, $FF, $3C, $7E, $00, $00, $00 db $3C, $18, $3C, $18, $3C, $18, $3C, $18 db $3C, $18, $3C, $18, $3C, $00, $00, $00 db $FF, $6A, $FF, $6A, $FF, $7E, $FF, $7E db $FF, $3E, $7F, $14, $3E, $00, $00, $00 db $F7, $00, $FF, $62, $FF, $74, $FE, $38 db $7F, $1C, $FF, $2E, $FF, $46, $EF, $00 db $18, $00, $3C, $18, $7E, $24, $FF, $66 db $FF, $7E, $FF, $66, $FF, $66, $FF, $00 db $3C, $00, $7E, $3C, $FF, $66, $FF, $60 db $FF, $60, $FF, $66, $7E, $3C, $3C, $00 db $F8, $00, $FC, $78, $FE, $64, $FF, $66 db $FF, $66, $FE, $64, $FC, $78, $F8, $00 db $FF, $00, $FF, $7E, $FF, $60, $FE, $7C db $FE, $60, $FF, $60, $FF, $7E, $FF, $00 db $7E, $00, $FF, $3C, $FF, $66, $FF, $60 db $FF, $6E, $FF, $66, $FF, $3E, $7E, $00 db $FF, $00, $FF, $66, $FF, $66, $FF, $7E db $FF, $66, $FF, $66, $FF, $66, $FF, $00 db $7E, $00, $7E, $3C, $3C, $18, $3C, $18 db $3C, $18, $3C, $18, $7E, $3C, $7E, $00 db $FF, $00, $FF, $66, $FF, $6C, $FE, $78 db $FE, $78, $FF, $6C, $FF, $66, $FF, $00 db $F0, $00, $F0, $60, $F0, $60, $F0, $60 db $F0, $60, $FF, $60, $FF, $7E, $FF, $00 db $E3, $00, $F7, $62, $FF, $76, $FF, $7E db $FF, $6A, $FF, $62, $F7, $62, $F7, $00 db $E7, $00, $F7, $62, $FF, $72, $FF, $7A db $FF, $6E, $FF, $66, $F7, $62, $F3, $00 db $3C, $00, $7E, $3C, $FF, $66, $FF, $66 db $FF, $66, $FF, $66, $7E, $3C, $3C, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $01, $00, $02, $01, $05, $02 db $07, $01, $06, $02, $04, $00, $04, $00 db $1E, $00, $12, $00, $29, $10, $28, $10 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $C0, $00, $20, $C0, $90, $60 db $60, $80, $20, $40, $20, $00, $20, $00 db $78, $00, $48, $00, $74, $08, $F4, $08 db $FC, $00, $FE, $7C, $FF, $66, $FF, $66 db $FE, $7C, $FC, $60, $F0, $60, $F0, $00 db $FC, $00, $FE, $7C, $FF, $66, $FF, $66 db $FE, $7C, $FE, $6C, $FF, $66, $F7, $00 db $3E, $00, $7E, $3C, $FC, $60, $7E, $3C db $FF, $06, $FF, $66, $7E, $3C, $3C, $00 db $FF, $00, $FF, $7E, $FF, $18, $3C, $18 db $3C, $18, $3C, $18, $3C, $18, $3C, $00 db $E7, $00, $FF, $66, $FF, $66, $FF, $66 db $FF, $66, $FF, $66, $7E, $3C, $3C, $00 db $FF, $00, $FF, $66, $FF, $66, $FF, $66 db $FF, $24, $7E, $3C, $7E, $18, $3C, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $FF, $00, $FF, $42, $FF, $24, $FF, $18 db $FF, $18, $FF, $24, $FF, $42, $FF, $00 db $00, $00, $00, $00, $00, $00, $03, $00 db $0F, $03, $1F, $0F, $7F, $1F, $EE, $77 db $7D, $06, $1D, $0E, $1A, $0C, $3A, $1C db $34, $18, $68, $30, $50, $20, $60, $00 db $00, $00, $00, $00, $0F, $00, $3F, $0F db $7F, $3F, $FF, $77, $FF, $47, $5D, $0E db $1E, $0C, $3A, $1C, $3A, $1C, $34, $18 db $14, $08, $18, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $02, $00, $FF, $02, $85, $7A db $FF, $02, $85, $7A, $85, $00, $FF, $00 db $7C, $00, $1F, $00, $00, $00, $10, $00 db $29, $00, $4F, $20, $57, $23, $53, $20 db $54, $20, $7C, $20, $FC, $00, $0F, $F0 db $FF, $00, $00, $FF, $00, $00, $FF, $00 db $FF, $00, $F1, $00, $5C, $00, $00, $00 db $F4, $00, $F2, $04, $EA, $C4, $EA, $04 db $3A, $04, $7E, $04, $FF, $00, $F8, $07 db $FF, $08, $14, $EB, $14, $00, $FF, $00 db $FF, $00, $F7, $00, $00, $00, $88, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $1C, $00, $FF, $10, $29, $D6 db $FF, $20, $51, $AE, $51, $00, $FF, $00 db $1F, $00, $F0, $00, $E0, $00, $08, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $02, $00, $FF, $02, $85, $7A db $FF, $02, $85, $7A, $85, $00, $FF, $00 db $FF, $00, $38, $00, $07, $00, $00, $00 db $29, $00, $4F, $20, $57, $23, $53, $20 db $54, $20, $7C, $20, $FC, $00, $0F, $F0 db $FF, $00, $00, $FF, $00, $00, $FF, $00 db $07, $00, $BF, $00, $C0, $00, $48, $00 db $F4, $00, $F2, $04, $EA, $C4, $EA, $04 db $3A, $04, $7E, $04, $FF, $00, $F8, $07 db $FF, $08, $14, $EB, $14, $00, $FF, $00 db $F3, $00, $3C, $00, $E1, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $1C, $00, $FF, $10, $29, $D6 db $FF, $20, $51, $AE, $51, $00, $FF, $00 db $FF, $00, $0E, $00, $C0, $00, $40, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $02, $00, $FF, $02, $85, $7A db $FF, $02, $85, $7A, $85, $00, $FF, $00 db $07, $00, $7E, $00, $10, $00, $01, $00 db $29, $00, $4F, $20, $57, $23, $53, $20 db $54, $20, $7C, $20, $FC, $00, $0F, $F0 db $FF, $00, $00, $FF, $00, $00, $FF, $00 db $FF, $00, $03, $00, $1A, $00, $00, $00 db $F4, $00, $F2, $04, $EA, $C4, $EA, $04 db $3A, $04, $7E, $04, $FF, $00, $F8, $07 db $FF, $08, $14, $EB, $14, $00, $FF, $00 db $83, $00, $E0, $00, $18, $00, $40, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $1C, $00, $FF, $10, $29, $D6 db $FF, $20, $51, $AE, $51, $00, $FF, $00 db $F8, $00, $7E, $00, $04, $00, $80, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $02, $00, $FF, $02, $85, $7A db $FF, $02, $85, $7A, $85, $00, $FF, $00 db $3F, $00, $01, $00, $18, $00, $00, $00 db $29, $00, $4F, $20, $57, $23, $53, $20 db $54, $20, $7C, $20, $FC, $00, $0F, $F0 db $FF, $00, $00, $FF, $00, $00, $FF, $00 db $FB, $00, $3E, $00, $01, $00, $12, $00 db $F4, $00, $F2, $04, $EA, $C4, $EA, $04 db $3A, $04, $7E, $04, $FF, $00, $F8, $07 db $FF, $08, $14, $EB, $14, $00, $FF, $00 db $FF, $00, $01, $00, $C0, $00, $10, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $1C, $00, $FF, $10, $29, $D6 db $FF, $20, $51, $AE, $51, $00, $FF, $00 db $FC, $00, $F0, $00, $1C, $00, $00, $00 db $FF, $FF, $F7, $FF, $C0, $F0, $E0, $E0 db $CB, $E0, $87, $C0, $8E, $C0, $9F, $C0 db $FF, $FF, $AF, $FF, $D0, $0E, $3B, $00 db $C0, $00, $FF, $00, $F9, $06, $FA, $04 db $FF, $FF, $C2, $FF, $25, $50, $01, $20 db $4F, $00, $FE, $01, $FB, $04, $EF, $00 db $FF, $FF, $0F, $FF, $B5, $0F, $9B, $07 db $FB, $07, $E9, $17, $7D, $03, $F5, $0B db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $E0, $FF, $E7, $FF, $EF, $FF, $EF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $BF, $FF db $01, $FF, $80, $FF, $E0, $FF, $E0, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF db $3E, $FF, $0C, $FF, $00, $FF, $03, $FC db $FF, $FF, $FF, $FF, $FF, $FF, $F8, $FF db $01, $FF, $50, $AF, $00, $FF, $00, $FF db $FF, $FF, $7F, $FF, $3F, $FF, $3F, $FF db $1F, $FF, $3F, $EF, $3F, $EF, $1F, $EF db $E7, $FF, $E1, $FF, $E3, $FF, $E7, $FF db $E7, $FF, $E7, $FF, $E0, $FF, $E0, $FF db $F8, $FF, $FC, $FF, $FE, $FF, $DE, $FF db $9E, $FF, $13, $EC, $1F, $E0, $1F, $E0 db $00, $FF, $00, $FF, $00, $FF, $18, $FF db $22, $FD, $D5, $28, $EB, $10, $FF, $00 db $00, $FF, $00, $FF, $19, $FF, $7F, $FF db $FF, $FF, $0B, $FF, $90, $6F, $F0, $0F db $00, $FF, $01, $FF, $81, $FF, $E0, $FF db $F0, $FF, $F3, $FC, $9F, $60, $FF, $00 db $C6, $FF, $EF, $FF, $EF, $FF, $C6, $FF db $30, $FF, $86, $79, $86, $79, $CF, $30 db $30, $FF, $78, $FF, $78, $FF, $30, $FF db $C0, $FF, $18, $E7, $1F, $E0, $3F, $C0 db $AF, $C0, $A7, $C8, $DB, $80, $FF, $80 db $C3, $FC, $E0, $FF, $A8, $FF, $FF, $FF db $DC, $20, $FF, $00, $BF, $00, $FF, $00 db $0F, $F0, $73, $8F, $0E, $FF, $FF, $FF db $FF, $00, $F7, $08, $FF, $00, $B7, $78 db $53, $EC, $7C, $87, $36, $FF, $FF, $FF db $C5, $23, $E9, $07, $C3, $0F, $57, $0F db $AD, $1F, $69, $9F, $0B, $FF, $FF, $FF db $60, $FF, $C8, $F7, $98, $E7, $22, $DD db $07, $F8, $3F, $C0, $FF, $00, $FF, $00 db $00, $FF, $00, $FF, $18, $FF, $18, $F7 db $02, $FD, $FF, $00, $FF, $00, $FF, $00 db $00, $FF, $00, $FF, $03, $FF, $17, $EF db $3E, $C7, $FC, $0F, $F4, $0F, $F0, $0F db $1F, $EF, $7F, $FF, $BF, $FF, $3F, $FF db $3F, $FF, $1B, $FF, $17, $FB, $3F, $FF db $F0, $FF, $F1, $FF, $FB, $FE, $F8, $FF db $FC, $FF, $F8, $FF, $F8, $FF, $F0, $FF db $33, $CC, $38, $C7, $39, $C6, $1E, $E1 db $1E, $E1, $1C, $E3, $1C, $E3, $3C, $C3 db $FF, $00, $80, $7F, $00, $FF, $00, $FF db $00, $1C, $00, $1C, $00, $1C, $00, $FF db $E7, $18, $8F, $70, $4F, $B0, $3F, $C0 db $3F, $40, $1F, $60, $1F, $60, $17, $E8 db $F0, $0F, $F0, $0F, $F9, $06, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $3F, $C0 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $F9, $06, $F0, $0F, $F0, $0F, $F9, $06 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $24, $DB, $6D, $92, $65, $9A, $F1, $0E db $EF, $10, $DF, $20, $B9, $46, $B7, $48 db $02, $FD, $74, $8B, $DD, $22, $C3, $3C db $CF, $30, $B7, $48, $7B, $84, $B7, $48 db $CD, $32, $18, $E7, $DD, $22, $E1, $1E db $FF, $00, $FF, $00, $8F, $70, $E7, $18 db $24, $DB, $6D, $92, $65, $9A, $F1, $0E db $07, $58, $03, $BC, $01, $FE, $70, $FF db $FF, $FF, $F8, $FF, $FF, $FF, $FF, $FF db $F3, $0C, $F3, $0C, $FB, $04, $FB, $04 db $FD, $02, $FF, $00, $FF, $00, $FF, $00 db $2F, $FF, $2F, $FF, $3B, $FF, $37, $FB db $93, $3F, $1B, $3F, $EF, $1F, $E7, $1F db $F0, $FF, $F0, $FF, $F1, $FF, $E3, $FF db $E7, $FF, $CE, $FF, $FD, $FF, $C3, $FF db $3C, $C3, $3C, $C3, $C6, $F9, $C2, $FC db $80, $FE, $C0, $FE, $C0, $FE, $A0, $DE db $00, $FF, $00, $E3, $00, $E3, $00, $36 db $00, $1C, $00, $88, $00, $63, $00, $00 db $1E, $E1, $1E, $E1, $31, $CF, $20, $1F db $00, $3F, $00, $BF, $00, $3F, $03, $3C db $FF, $00, $DF, $00, $1F, $C0, $DF, $20 db $0F, $F0, $47, $B8, $21, $DE, $1F, $E0 db $F8, $07, $F0, $0F, $C0, $3F, $C0, $3F db $80, $7F, $84, $7B, $86, $79, $CF, $30 db $1F, $E0, $0F, $F0, $1F, $E0, $7F, $80 db $3F, $C0, $1F, $E0, $1F, $E0, $1F, $E0 db $F3, $0F, $F3, $0F, $F3, $0F, $E3, $1F db $E3, $1F, $D7, $2F, $DF, $27, $D7, $2F db $06, $F8, $3E, $C0, $3F, $C0, $7F, $80 db $78, $87, $30, $C8, $30, $CB, $33, $CC db $00, $1C, $00, $80, $00, $63, $80, $00 db $00, $E3, $00, $3E, $00, $FF, $C1, $3E db $31, $0E, $3F, $80, $7F, $00, $FF, $00 db $0F, $F0, $07, $08, $07, $E8, $E7, $18 db $CF, $3F, $CF, $3F, $C3, $3F, $E3, $1F db $F3, $0F, $F3, $0F, $F3, $0F, $F3, $0F db $E0, $FF, $E0, $FF, $E0, $FF, $E0, $FF db $E6, $FF, $EF, $FF, $EF, $FF, $E6, $FF db $1F, $E0, $1F, $E0, $3F, $C0, $3F, $C0 db $0E, $F1, $44, $FB, $44, $FB, $0E, $F1 db $80, $7F, $80, $7F, $94, $6B, $FF, $00 db $7F, $80, $3F, $C0, $3F, $C0, $7F, $80 db $BF, $40, $5F, $80, $58, $87, $D0, $0F db $F3, $0C, $F7, $08, $F7, $08, $FF, $00 db $CF, $30, $9D, $62, $1E, $E1, $BF, $40 db $FE, $00, $FF, $00, $8D, $00, $73, $00 db $FF, $00, $FF, $00, $06, $79, $C5, $3A db $F4, $08, $E8, $13, $C8, $33, $A7, $40 db $D7, $20, $E7, $18, $95, $0A, $36, $49 db $85, $7A, $AA, $54, $94, $68, $C4, $39 db $FF, $00, $FF, $00, $A1, $4E, $B9, $06 db $44, $38, $6B, $90, $51, $A2, $A7, $40 db $E1, $FF, $E3, $FF, $E3, $FF, $E1, $FF db $E0, $FF, $E0, $FF, $E0, $FF, $E0, $FF db $99, $E6, $D0, $EF, $D0, $EF, $99, $E6 db $2F, $F0, $67, $F8, $67, $F8, $2F, $F0 db $FE, $00, $FF, $00, $EF, $30, $13, $EC db $7B, $80, $7B, $80, $C7, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FE, $01, $F8, $07, $F2, $0D, $E8, $17 db $FF, $00, $FF, $00, $FF, $00, $E5, $1A db $92, $7D, $28, $D7, $00, $FF, $00, $77 db $C7, $38, $BF, $40, $7B, $80, $84, $FB db $8C, $F3, $31, $CE, $03, $FC, $07, $78 db $BF, $00, $7E, $01, $FD, $02, $FF, $00 db $EB, $10, $D7, $20, $FF, $00, $5F, $80 db $1F, $E0, $1F, $E0, $1F, $E0, $1F, $E0 db $1F, $E0, $1F, $E0, $3F, $C0, $1F, $E0 db $FF, $00, $FF, $00, $EF, $10, $F7, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $C0, $3E, $C0, $3B, $80, $75, $80, $7B db $00, $EF, $00, $D7, $01, $EE, $01, $FE db $00, $AA, $00, $77, $00, $FF, $00, $FF db $3F, $C0, $FF, $00, $FF, $00, $FF, $00 db $0F, $B0, $1F, $60, $3F, $C0, $7F, $80 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FE, $01, $FC, $03, $F0, $0F, $80, $7F db $9F, $E0, $1F, $E0, $3F, $C0, $3F, $C0 db $1E, $E1, $19, $E7, $00, $FF, $60, $FF db $FF, $00, $FE, $01, $F6, $09, $87, $78 db $03, $FC, $01, $FE, $80, $7F, $00, $FF db $FC, $03, $43, $BC, $30, $CF, $0E, $F1 db $81, $7E, $F0, $0F, $7F, $80, $1F, $E0 db $01, $FE, $06, $F9, $F8, $07, $03, $FC db $FC, $03, $01, $FE, $FF, $00, $FF, $00 db $B9, $7E, $3B, $E6, $23, $DC, $CE, $70 db $3C, $C0, $E0, $01, $E0, $1F, $00, $FF db $FF, $00, $04, $FB, $38, $C7, $C1, $3E db $07, $F8, $7E, $81, $F8, $07, $C0, $3F db $FF, $00, $7F, $80, $F1, $0E, $F3, $0C db $B6, $49, $3C, $C3, $38, $C7, $31, $CE db $E7, $18, $DF, $20, $BD, $40, $7D, $C0 db $73, $C8, $5B, $84, $C7, $38, $8C, $73 db $FE, $01, $F4, $0B, $F8, $07, $F0, $0F db $F0, $0F, $E0, $1F, $E0, $1F, $E0, $1F db $00, $FF, $08, $FF, $04, $CB, $30, $87 db $30, $87, $00, $CF, $00, $FF, $00, $FF db $E0, $FF, $F1, $FF, $E3, $FF, $E7, $FF db $E7, $FF, $EF, $FF, $ED, $FE, $C0, $FF db $E0, $FF, $E0, $FF, $E0, $FF, $A0, $FF db $F8, $E0, $D8, $20, $D8, $20, $DC, $20 db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $30, $01, $70, $00, $70, $00, $B8, $C0 db $00, $FF, $00, $FF, $02, $FF, $01, $FE db $00, $FF, $60, $07, $E0, $01, $F3, $00 db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $00, $F1, $00, $E0, $00, $E0, $80, $60 db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $10, $FF, $00, $F7, $00, $FF, $00, $FF db $00, $FF, $08, $FF, $24, $FB, $44, $FB db $00, $F7, $30, $CF, $00, $FF, $00, $FF db $00, $FF, $00, $FF, $08, $FF, $00, $FF db $01, $FF, $06, $FF, $0C, $FF, $08, $FF db $33, $CC, $36, $C9, $3D, $C3, $3A, $C7 db $F3, $CE, $12, $ED, $24, $C9, $2D, $C2 db $1E, $E1, $F3, $CC, $51, $AE, $90, $67 db $A4, $53, $56, $A9, $03, $9C, $B1, $4E db $7F, $80, $67, $98, $E3, $1C, $E0, $1F db $68, $97, $60, $9F, $60, $9F, $E2, $1D db $E0, $1E, $C1, $3C, $C1, $3C, $C0, $3E db $10, $FF, $08, $F7, $20, $FF, $10, $EF db $03, $7C, $87, $38, $8F, $30, $0F, $70 db $1F, $E0, $1F, $E0, $3F, $C0, $3F, $C0 db $80, $FF, $CC, $FF, $EF, $FF, $E7, $FF db $E7, $FF, $E3, $FF, $E1, $FF, $E0, $FF db $DC, $20, $3E, $C0, $1F, $E0, $EF, $F0 db $60, $FF, $D0, $EF, $EC, $F3, $E3, $FC db $38, $80, $FC, $00, $7E, $00, $FE, $01 db $00, $FF, $08, $FF, $04, $FB, $00, $FF db $F3, $00, $FA, $01, $F8, $07, $00, $FF db $1C, $E3, $03, $FC, $01, $FE, $70, $8F db $C0, $31, $00, $FF, $00, $FF, $60, $9F db $10, $EF, $0F, $F0, $81, $7E, $C0, $3F db $08, $FF, $04, $FB, $00, $FF, $00, $FF db $00, $FF, $80, $7F, $F0, $0F, $3F, $C0 db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $0F, $F0, $3F, $C0, $C0, $3F, $00, $FF db $02, $FF, $09, $FE, $15, $FA, $48, $F7 db $20, $DF, $80, $FF, $70, $8F, $3F, $C0 db $1E, $C1, $F3, $0C, $B3, $4C, $36, $C9 db $3C, $C3, $38, $C7, $B1, $4E, $33, $CC db $18, $E7, $0C, $F3, $86, $79, $C3, $3C db $61, $9E, $F0, $0F, $98, $67, $0C, $F3 db $E0, $1F, $60, $9F, $60, $9F, $62, $9D db $E0, $1F, $E3, $1C, $67, $98, $6F, $90 db $20, $DF, $80, $FF, $40, $BF, $00, $FE db $C1, $3C, $C1, $3C, $C0, $3E, $E0, $1F db $3F, $C0, $3F, $C0, $1F, $E0, $1F, $60 db $8F, $30, $8F, $30, $07, $78, $03, $FC db $61, $FE, $00, $FF, $18, $E7, $0E, $F1 db $0F, $F0, $1F, $E0, $3F, $C0, $9F, $E0 db $F3, $0C, $CF, $30, $3A, $C5, $80, $FF db $02, $FD, $74, $8B, $77, $80, $CF, $00 db $FC, $03, $87, $78, $01, $FE, $78, $87 db $8E, $71, $01, $FE, $00, $FF, $FC, $03 db $00, $FF, $00, $FF, $84, $7F, $E2, $1D db $7A, $8C, $15, $E8, $00, $FF, $00, $FF db $0C, $F3, $00, $FF, $07, $F8, $7F, $80 db $F0, $0F, $80, $7F, $00, $FF, $FF, $00 db $70, $8F, $0E, $F1, $83, $7C, $E1, $1E db $38, $C7, $0E, $F1, $00, $FF, $00, $FF db $36, $C9, $BC, $43, $38, $C7, $30, $CF db $31, $CE, $33, $CC, $7F, $80, $FF, $00 db $1E, $E1, $33, $CC, $63, $9C, $CF, $30 db $BF, $40, $FF, $00, $FF, $00, $FF, $00 db $E0, $1F, $E0, $1F, $E0, $1F, $F0, $0F db $F0, $0F, $F8, $07, $F4, $0B, $FE, $01 db $01, $FE, $01, $EE, $00, $D7, $00, $EF db $80, $7F, $80, $7B, $C0, $35, $C0, $3B db $FF, $00, $FF, $00, $FF, $00, $3F, $C0 db $00, $FF, $40, $FF, $20, $DF, $00, $7B db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $7F, $80, $3F, $C0, $1F, $E0, $0F, $B0 db $80, $7F, $C3, $3F, $E3, $0F, $FF, $03 db $F9, $07, $F1, $0F, $F0, $0F, $F9, $07 db $77, $FF, $FF, $FF, $F3, $FF, $3B, $FF db $5F, $BF, $67, $FF, $C3, $FF, $1B, $E7 db $E8, $FF, $F4, $FF, $EC, $FF, $F4, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $00, $FF, $00, $C3, $3C, $00, $FF db $3C, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $00, $FF, $00, $FF, $00, $F1, $0E db $00, $FF, $0E, $FF, $FF, $FF, $FF, $FF db $E0, $1E, $F0, $0F, $F8, $07, $FE, $01 db $00, $FF, $00, $FF, $FF, $FF, $FF, $FF db $00, $B5, $00, $7B, $00, $FF, $00, $FF db $3F, $FF, $01, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FD, $03, $FD, $03, $F9, $07, $F3, $0F db $07, $FE, $1E, $FF, $FF, $FF, $FF, $FF db $7F, $FF, $FF, $C0, $E0, $80, $C1, $80 db $C3, $80, $E7, $80, $CF, $80, $C0, $80 db $FF, $FF, $FF, $00, $08, $20, $B0, $00 db $E0, $04, $C0, $00, $00, $00, $01, $00 db $FF, $FF, $FF, $00, $00, $00, $80, $80 db $00, $00, $00, $00, $C0, $00, $80, $00 db $FF, $FF, $FF, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $3F, $FF, $3F, $FF, $37, $F3, $3F, $F3 db $2D, $FF, $38, $E7, $3A, $E7, $38, $E7 db $80, $FF, $80, $FF, $80, $FF, $80, $FF db $80, $FF, $80, $FF, $80, $FF, $80, $FF db $01, $FF, $01, $FF, $01, $FF, $01, $FF db $01, $FF, $01, $FF, $01, $FF, $01, $FF db $FC, $FF, $DC, $CF, $FC, $CF, $34, $FF db $0C, $FF, $AC, $7F, $8C, $7F, $8C, $7F db $FF, $FF, $FF, $00, $00, $00, $00, $00 db $03, $03, $0F, $0F, $3E, $3F, $FF, $FB db $FE, $FF, $EF, $13, $03, $05, $47, $7B db $CF, $FD, $FF, $FF, $FF, $F1, $FF, $F1 db $D0, $9F, $D0, $BF, $F8, $BF, $FC, $BF db $FD, $BB, $FF, $B6, $FE, $BC, $FE, $BD db $0C, $FF, $1C, $FF, $38, $FF, $70, $FF db $F0, $FF, $D8, $E7, $08, $CF, $18, $1F db $1F, $F6, $0F, $FF, $1F, $FF, $3F, $FE db $3F, $FF, $5F, $DF, $37, $B7, $0F, $0F db $88, $E0, $00, $F8, $05, $FD, $9E, $FF db $3E, $FF, $FD, $FF, $FF, $FE, $FF, $FE db $01, $00, $43, $00, $41, $02, $00, $E7 db $80, $7F, $80, $7F, $01, $FE, $00, $FF db $14, $EB, $08, $05, $10, $0F, $00, $3F db $65, $9B, $FF, $0F, $FF, $17, $80, $7F db $C0, $80, $C0, $80, $C0, $80, $C0, $80 db $C0, $80, $C0, $80, $C0, $80, $C0, $80 db $03, $00, $0E, $00, $1C, $00, $78, $00 db $F0, $00, $01, $00, $01, $00, $03, $00 db $05, $00, $06, $00, $08, $00, $31, $01 db $C7, $07, $27, $07, $FF, $0F, $EE, $0D db $00, $00, $1F, $00, $3F, $01, $9F, $9F db $FE, $FE, $FF, $FF, $FF, $FF, $7E, $FE db $0C, $0C, $FF, $FF, $F9, $FF, $FB, $CF db $FF, $8F, $A7, $07, $08, $06, $00, $0F db $E0, $F8, $C6, $F7, $CD, $FF, $FF, $FF db $FE, $FF, $FC, $FF, $FF, $78, $7F, $80 db $00, $00, $00, $C0, $B8, $F8, $FF, $FD db $0B, $89, $81, $41, $01, $01, $01, $01 db $03, $03, $07, $07, $0F, $0F, $1F, $1F db $FF, $FF, $FC, $FF, $C0, $FF, $60, $EF db $FF, $FD, $F9, $FF, $F0, $FF, $80, $FF db $32, $EF, $0F, $FF, $3F, $FE, $7F, $FF db $FF, $E1, $EF, $F1, $FB, $CF, $FE, $8D db $5D, $A7, $FB, $07, $FF, $0D, $FD, $1F db $FD, $BB, $FE, $BF, $FE, $BF, $FE, $BD db $DA, $9F, $E4, $9F, $EF, $9F, $FF, $9F db $3C, $BE, $3C, $FE, $10, $FF, $00, $FF db $00, $FF, $A0, $DF, $78, $AF, $F0, $FF db $07, $0F, $07, $1F, $00, $3F, $20, $DD db $00, $FB, $00, $F0, $40, $A0, $E0, $01 db $FF, $FC, $FF, $F8, $1F, $FC, $3F, $DE db $7E, $2F, $3C, $DF, $38, $DF, $72, $BF db $00, $FF, $80, $7F, $C4, $3B, $9C, $63 db $0E, $F1, $3F, $C1, $7E, $81, $4D, $92 db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $01, $FE, $03, $FC, $CF, $D0, $E5, $00 db $C0, $80, $C0, $80, $C1, $81, $C2, $82 db $C2, $82, $C4, $84, $C4, $84, $C0, $80 db $07, $00, $03, $00, $07, $01, $0F, $01 db $1F, $03, $0F, $07, $0F, $0F, $0F, $0F db $FC, $1B, $FC, $73, $E0, $FC, $E0, $C8 db $C0, $D0, $80, $80, $00, $80, $80, $81 db $7C, $BC, $BC, $02, $58, $07, $10, $0F db $00, $3F, $0F, $7F, $97, $7F, $3D, $FD db $00, $1F, $00, $3F, $1E, $ED, $3F, $FF db $F0, $FF, $EF, $FF, $B7, $FF, $3F, $FF db $87, $78, $01, $FE, $00, $FF, $C4, $FF db $DE, $FF, $FE, $FF, $FF, $FF, $FF, $FF db $00, $00, $00, $00, $1C, $E0, $0C, $F0 db $06, $F8, $03, $FC, $8A, $FC, $FE, $FC db $E8, $EF, $38, $3F, $3C, $3F, $3E, $3F db $3F, $3F, $1F, $1F, $07, $07, $01, $03 db $1F, $FF, $07, $FF, $06, $FF, $0E, $FF db $FE, $FF, $7F, $7F, $DF, $DC, $FF, $F0 db $C3, $3D, $01, $FF, $03, $FD, $01, $FF db $03, $FD, $07, $F9, $87, $F1, $E3, $FD db $DF, $9F, $CF, $8F, $C3, $83, $C7, $8F db $C7, $BF, $C3, $BF, $C0, $BF, $C0, $BF db $F0, $FF, $E9, $FF, $F0, $FF, $F1, $FF db $E3, $FF, $C7, $FF, $07, $FF, $EF, $33 db $C0, $13, $80, $87, $00, $07, $00, $0F db $80, $9B, $E0, $D6, $E0, $81, $00, $C1 db $3C, $FE, $6D, $EC, $18, $D8, $00, $80 db $00, $00, $09, $00, $1E, $80, $3E, $C0 db $A3, $14, $05, $0E, $0B, $0D, $1F, $1E db $35, $36, $03, $0C, $01, $0E, $03, $1C db $FB, $18, $F0, $70, $E0, $00, $E1, $00 db $F3, $00, $FC, $03, $F8, $07, $F8, $07 db $5D, $CB, $5D, $DF, $5D, $CB, $5D, $C3 db $5D, $C3, $55, $CB, $5D, $C3, $4D, $D3 db $0F, $0F, $1F, $1F, $0F, $0F, $3F, $3F db $3E, $3E, $35, $34, $60, $60, $61, $60 db $C2, $C1, $80, $87, $F1, $0F, $E3, $1F db $EF, $1F, $DF, $3F, $9F, $1F, $3F, $3F db $72, $F3, $E6, $FF, $DC, $FF, $9F, $FF db $BE, $FF, $FF, $FC, $FF, $FC, $FF, $FB db $0F, $FF, $1F, $FF, $3F, $FF, $5E, $DF db $FE, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $7F, $FF, $7F, $FF, $7F, $8F db $FF, $FF, $FF, $EF, $FF, $FF, $FF, $FF db $FE, $FC, $FC, $FF, $FE, $FF, $FE, $FF db $FF, $FF, $FF, $FF, $CF, $CF, $3F, $FF db $1D, $03, $3E, $D1, $7E, $F9, $FD, $FA db $F4, $FA, $F8, $FE, $F8, $FE, $FC, $F2 db $FF, $E0, $FF, $E0, $FF, $60, $30, $AF db $00, $1F, $00, $1F, $00, $1F, $00, $0F db $E3, $1D, $87, $79, $07, $F5, $0F, $F9 db $1F, $FF, $1F, $FF, $3F, $FD, $7B, $9D db $C1, $BE, $E3, $BC, $DB, $99, $C1, $81 db $C0, $80, $E3, $9C, $FF, $C0, $7F, $FF db $C8, $4B, $F0, $F7, $F0, $F7, $E0, $E7 db $C0, $C3, $FE, $03, $FF, $03, $FF, $FF db $00, $C3, $00, $E7, $07, $F8, $0F, $F0 db $0F, $E0, $3F, $E0, $FF, $C0, $FF, $FF db $0E, $F1, $0E, $F9, $07, $F6, $80, $60 db $80, $00, $E7, $18, $FF, $00, $FF, $FF db $01, $3E, $03, $FC, $07, $F8, $03, $70 db $03, $00, $0F, $F0, $FF, $00, $FF, $FF db $F8, $07, $F8, $03, $F2, $01, $31, $C0 db $E0, $00, $FF, $00, $FF, $00, $FF, $FF db $BA, $97, $BA, $BF, $BA, $97, $BA, $87 db $BA, $C7, $B2, $8F, $BA, $87, $BA, $87 db $61, $60, $C3, $F0, $CF, $FA, $EE, $FC db $1C, $FC, $3E, $FA, $3C, $7C, $7F, $FC db $3F, $3F, $BF, $7F, $76, $37, $24, $27 db $34, $37, $34, $37, $3E, $3F, $9F, $1F db $FF, $FF, $3E, $FF, $1F, $FF, $1F, $FF db $3F, $FF, $7F, $FF, $FF, $FF, $FF, $FF db $0F, $FF, $67, $FF, $D3, $FF, $F7, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FE, $FF, $FF, $FF, $F9, $FF, $E9, $EF db $F1, $FF, $F3, $FF, $FF, $E7, $FF, $E7 db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $F5, $FF, $DD db $FC, $E2, $FD, $F2, $F9, $FE, $FF, $F8 db $FC, $F3, $FE, $FB, $FC, $FB, $F9, $FE db $18, $1F, $1F, $1E, $8F, $0C, $8F, $00 db $2F, $C0, $47, $80, $C7, $00, $C7, $00 db $FF, $1F, $FF, $3F, $FD, $3F, $DB, $1D db $9B, $2D, $B7, $5B, $7F, $3D, $43, $7D db $FF, $FF, $00, $00, $01, $00, $93, $00 db $9B, $00, $9B, $00, $64, $9B, $FF, $FF db $FF, $F8, $FF, $F8, $FF, $F0, $FF, $F0 db $07, $F8, $23, $DC, $77, $DA, $7F, $E4 db $F8, $17, $FC, $03, $FE, $01, $BF, $00 db $FF, $00, $7F, $00, $FD, $06, $FD, $8E db $07, $F1, $17, $E1, $27, $D1, $FF, $01 db $F7, $01, $F7, $01, $FB, $05, $87, $79 db $04, $FF, $06, $FD, $06, $FD, $06, $FD db $06, $FD, $06, $FD, $06, $FD, $04, $FF db $F0, $FF, $F0, $FF, $F0, $FF, $F0, $FF db $B0, $FF, $F0, $FF, $F0, $FF, $F0, $FF db $C0, $80, $C0, $80, $C0, $81, $C3, $83 db $C3, $83, $CF, $8F, $CF, $8F, $DF, $9F db $FF, $F8, $FE, $F0, $F2, $FC, $E0, $FF db $FB, $FE, $FF, $FC, $FF, $FC, $FF, $FA db $5F, $1F, $1F, $1F, $5F, $1F, $BF, $3F db $3F, $3F, $2F, $27, $3F, $37, $9F, $0F db $FF, $FF, $FF, $F9, $FF, $FB, $FF, $E7 db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $F7, $F7, $CE, $FF, $8F, $FF, $3F, $FF db $FF, $C7, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $7F, $FF, $7F, $FF, $FF, $FF db $FF, $FD, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $CF, $FF, $83, $FF db $F9, $FE, $FC, $FF, $FE, $FF, $FC, $FF db $E5, $FE, $E5, $FE, $C4, $FE, $CD, $FE db $E7, $05, $3E, $81, $FE, $03, $FE, $07 db $BF, $07, $76, $0B, $E7, $18, $FF, $0C db $01, $FF, $03, $FD, $01, $FF, $03, $FD db $07, $F9, $8F, $71, $DF, $29, $FF, $13 db $C0, $3F, $E0, $1F, $F1, $0F, $FF, $0F db $FF, $0F, $F7, $0F, $F0, $0F, $F8, $07 db $7F, $E3, $FF, $D5, $FF, $E3, $E5, $F1 db $CD, $E0, $83, $C2, $03, $81, $06, $80 db $EE, $07, $D8, $03, $84, $03, $04, $07 db $0E, $07, $9F, $0C, $FE, $19, $BE, $81 db $03, $FD, $07, $F9, $03, $FD, $07, $F9 db $07, $F1, $07, $E1, $07, $F1, $07, $E1 db $05, $FC, $05, $FC, $05, $FC, $05, $FC db $05, $FC, $05, $FC, $07, $FC, $05, $FC db $30, $FF, $30, $FF, $30, $FF, $B0, $FF db $30, $FF, $70, $FF, $70, $FF, $30, $FF db $FF, $BF, $FF, $BF, $DF, $9F, $FD, $8E db $E8, $97, $D0, $BF, $E0, $BF, $E0, $BF db $FD, $FE, $FC, $FE, $FB, $FD, $7F, $F7 db $7F, $DF, $3F, $FF, $3F, $FF, $7F, $FF db $FF, $27, $FF, $03, $C1, $41, $C1, $80 db $C2, $81, $C2, $C0, $F1, $80, $B1, $C0 db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $7F, $F0, $3F, $C0, $3F db $FF, $FF, $2F, $00, $D9, $26, $D9, $26 db $FB, $04, $FB, $04, $04, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $F9, $FF db $F8, $FF, $70, $7F, $F1, $FF, $33, $3F db $07, $FF, $0F, $FF, $AF, $EF, $FF, $FF db $7F, $FF, $FF, $FF, $EE, $ED, $E0, $FE db $F9, $EC, $E9, $DE, $F0, $FC, $C0, $F9 db $E8, $D1, $F8, $81, $D9, $06, $B9, $06 db $FF, $08, $FE, $0F, $1E, $F9, $1C, $FF db $5C, $BF, $BC, $7F, $B8, $5F, $7C, $F7 db $7F, $BD, $7F, $7D, $7F, $F9, $77, $B1 db $77, $81, $77, $81, $FF, $01, $FF, $01 db $7C, $03, $FF, $00, $AE, $01, $50, $0B db $00, $87, $00, $07, $00, $0F, $00, $9F db $0D, $C0, $2F, $90, $1E, $E1, $1F, $E0 db $3F, $C0, $7E, $81, $3D, $C2, $77, $8E db $FF, $FF, $00, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $00, $FF, $FF, $FF db $07, $E1, $07, $C1, $0F, $81, $1F, $01 db $3F, $01, $7F, $41, $7F, $01, $FF, $01 db $FF, $FF, $9D, $80, $A2, $DD, $A6, $D9 db $B7, $88, $B7, $88, $C0, $BF, $FF, $FF db $FF, $FF, $03, $01, $C5, $03, $ED, $03 db $FB, $07, $ED, $03, $01, $FF, $FF, $FF db $E8, $BF, $D8, $9F, $D7, $95, $FE, $BF db $FF, $BF, $DE, $9F, $C8, $9F, $C0, $9F db $3F, $FF, $3F, $DF, $6E, $BF, $5F, $FF db $FF, $FF, $1F, $FF, $0F, $FF, $1F, $FF db $33, $C0, $3F, $C0, $3C, $C0, $88, $F0 db $C0, $F8, $E1, $FC, $F3, $FC, $EF, $F8 db $80, $7F, $80, $7F, $00, $7F, $00, $3E db $A0, $1C, $60, $00, $C0, $20, $C5, $24 db $E1, $FF, $00, $FF, $01, $FF, $00, $FF db $00, $FF, $00, $7F, $80, $3B, $60, $01 db $3F, $3F, $FB, $FF, $81, $F8, $02, $FC db $07, $F8, $02, $FC, $06, $F8, $06, $F1 db $80, $FF, $00, $FE, $00, $FF, $00, $FE db $00, $7C, $40, $3C, $C0, $3E, $00, $FF db $70, $0E, $40, $1F, $03, $BD, $03, $1F db $07, $3E, $0F, $3C, $3F, $7C, $7F, $F8 db $7C, $FF, $FD, $F2, $BF, $E4, $DF, $60 db $FF, $00, $FC, $03, $F8, $07, $F8, $17 db $73, $05, $73, $05, $7F, $01, $F7, $09 db $07, $F1, $07, $F9, $07, $F1, $07, $F9 db $00, $FF, $11, $EE, $3F, $C0, $FF, $40 db $FE, $80, $FD, $82, $FF, $40, $FF, $FF db $E8, $1F, $F3, $1E, $FF, $3C, $FC, $7C db $78, $78, $FF, $30, $FF, $00, $FF, $FF db $FF, $1C, $FF, $7C, $FF, $78, $3F, $30 db $0F, $00, $FF, $00, $FF, $00, $FF, $FF db $7F, $01, $D7, $11, $E7, $25, $FF, $79 db $FF, $F9, $FF, $F1, $FF, $63, $FE, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $00, $FF, $00, $FF, $00, $FF, $00, $FF
47.952706
47
0.375126
96b9478b16d80f463d30ac849fa9f3bf2911ef13
969
asm
Assembly
11_c_stack/call-stack-rbp.asm
ericens/assembly_language
71cb70c6712990b409779bd3e57a3cc2cf143a9d
[ "Apache-2.0" ]
null
null
null
11_c_stack/call-stack-rbp.asm
ericens/assembly_language
71cb70c6712990b409779bd3e57a3cc2cf143a9d
[ "Apache-2.0" ]
null
null
null
11_c_stack/call-stack-rbp.asm
ericens/assembly_language
71cb70c6712990b409779bd3e57a3cc2cf143a9d
[ "Apache-2.0" ]
null
null
null
; ---------------------------------------------------------------------------- ; nasm -g -felf64 call-stack-rbp.asm && gcc call-stack-rbp.o puts.c -o b.out && ./b.out ; print fb(1) ; print a(x)+5 ; x+3 ; ---------------------------------------------------------------------------- global main extern putxx section .text main: ;一开始rbp为0,直接调用Fb函数,则仍然为rbp仍然为0,因为需要手动改变rbp的值 push rbp mov rbp,rsp;本函数新的rbp push 33 call Afn ; B(1), result goes in %rax ;-------打印 mov rdi, rax call putxx ; pop rbx pop rbp;// 重置rbp ;-------退出 mov rax, 60 ; system call for exit xor rdi, rdi ; exit code 0 syscall ; invoke operating system to exit ret Afn: push rbp mov rbp,rsp;本函数新的rbp mov rax, [rbp+16] add rax, 22 ; x+3 pop rbp ret
21.533333
93
0.392157
e3dee9a7b83b6da5c1cf0a7f1bbefd118d1b8e40
2,870
asm
Assembly
source/command/record.asm
mega65dev/rom-assembler
1670a56a8246dcdcc18e83b345d577eba686cf32
[ "MIT" ]
null
null
null
source/command/record.asm
mega65dev/rom-assembler
1670a56a8246dcdcc18e83b345d577eba686cf32
[ "MIT" ]
null
null
null
source/command/record.asm
mega65dev/rom-assembler
1670a56a8246dcdcc18e83b345d577eba686cf32
[ "MIT" ]
null
null
null
; ******************************************************************************************** ; ******************************************************************************************** ; ; Name : record.asm ; Purpose : .. ; Created : 15th Nov 1991 ; Updated : 4th Jan 2021 ; Authors : Fred Bowen ; ; ******************************************************************************************** ; ******************************************************************************************** ; RECORD- relative record access record lda #'#' jsr synchr ; syntax error if not 'record#' jsr getbyt ; get lfn in x cpx #0 +lbeq fcerr ; cannot be zero stx dosla ; save logical address jsr comwrd ; check for comma, get record number in 'poker' ldx #1 ; set up to get starting byte # - default is 1 jsr optbyt stx dosrcl ; save byte position (pos) [911024] txa ; cpx #0 +lbeq fcerr ; if out of range inx ; cpx #$ff +lbeq fcerr ; if out of range lda dosla ; get logical address ; jsr put_io_in_map jsr _lkupla ; logical to physical map bcs l229_1 ; if file not found (not open) [910404] sty dossa_temp ; save secondary address stx dosfa ; set up device number for trans routine lda #0 sta dosla ; set up logical address for trans routine lda #$6f sta dossa ; and secondary address, too! ldy #frec ; set pointer lda #4 ; process five bytes jsr trans ; send command +lbra print_dos_error ; if any l229_1 ldx #errfno ; file not found err (file not open) [910404] +lbra error ; ******************************************************************************************** ; ; Date Changes ; ==== ======= ; ; ********************************************************************************************
48.644068
103
0.276655
0fd6b85305ad33725ed7f75061cee20c7c4d3e37
17,398
asm
Assembly
Driver/Printer/Fax/Group3/group3StartJob.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Driver/Printer/Fax/Group3/group3StartJob.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Driver/Printer/Fax/Group3/group3StartJob.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1994. All rights reserved. GEOWORKS CONFIDENTIAL PROJECT: Pasta MODULE: Fax Printer Driver FILE: group3StartJob.asm AUTHOR: Jacob Gabrielson, Apr 12, 1993 ROUTINES: Name Description ---- ----------- INT ECCheckDGroupES INT PrintStartJob Handle the start of a print job INT Group3OpenFile Opens the output file for the printer driver. INT Group3GenerateFileName Opens the actual VM fax file and tries to generate a unique name for the file INT CheckDiskSpace Checks the amount of disk space there is and guesses if there will be enough memory. It then querry's the user if he wants to continue. REVISION HISTORY: Name Date Description ---- ---- ----------- jag 4/12/93 Initial revision AC 9/ 8/93 Changed for Group3 DESCRIPTION: $Id: group3StartJob.asm,v 1.1 97/04/18 11:52:59 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ;----------------------------------------------------------------------------- ; Initialized data ;----------------------------------------------------------------------------- idata segment if ERROR_CHECK DGROUP_PROTECT1 equ 0xA6D3 dgroupHere word DGROUP_PROTECT1 ; protect word endif idata ends ;----------------------------------------------------------------------------- ; Data initialized to 0 ;----------------------------------------------------------------------------- udata segment errorFlag byte ; A flag that will be passed ; from start job to end job to ; indicate if an error has ; occurred. ; Must indicate no error to start outputVMFileHan hptr ; output file for fax outputHugeArrayHan hptr ; handle to huge array for fax faxPageCount word ; tells what page is currently ; being printed gstringFileName byte DOS_DOT_FILE_NAME_LENGTH+1 dup (?) udata ends ; ; An error-checking routine that can be called to verify that ds ; points to our dgroup. It's not totally 100% accurate, but almost... ; if ERROR_CHECK ECCheckDGroupES proc far pushf cmp es:[dgroupHere], DGROUP_PROTECT1 ERROR_NE -1 popf ret ECCheckDGroupES endp endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PrintStartJob %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Handle the start of a print job CALLED BY: DriverStrategy PASS: bp = PState segment RETURN: carry set on error DESTROYED: nothing PSEUDO CODE/STRATEGY: - Check if this is an error job by looking at the FaxSpoolID - Check if there's enough disk space. - Set CWD to fax directory. If it doesn't exist, make one. - Create the output file. - Update printer data in the fax file header REVISION HISTORY: Name Date Description ---- ---- ----------- jag 4/12/93 Initial version AC 9/13/93 Modified for Group3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ PrintStartJob proc far uses ax, bx, cx, dx, bp, si, di, ds, es .enter ; ; Check for some error conditions: ; - first check if the job should be nuked because ; it has an error FaxSpoolID. ; - then check to see if there will be enough disk space. ; mov es, bp ; point at PState .warn -field cmpdw es:[PS_jobParams].JP_printerData.FFH_spoolID, \ FAX_ERROR_SPOOL_ID .warn @field LONG jz badJobError ; ; Check to see if there's enough disk space to make the fax file ; call CheckDiskSpace LONG jc notEnoughDiskSpace ; ; Store the name of the spooler file for the end-job handler. ; segmov ds, es, bx ; ds = PState mov bx, segment dgroup mov es, bx ; es = dgroup mov di, offset gstringFileName ; es:di = dest buffer lea si, ds:[PS_jobParams].JP_fname ; ds:si = filename mov cx, DOS_DOT_FILE_NAME_LENGTH+1 ; +1 for null rep movsb segmov es, ds, bx ; es = PState ; ; Open a VM file so we can store the fax information into it. ; mov bx, es:[PS_deviceInfo] ; bx <- device specific info call MemLock ; ax <- device info segment mov ds, ax ; ds <- device info segment mov al, ds:[PI_type] ; get PrinterType field mov ah, ds:[PI_smarts] ; get PrinterSmart field mov {word} es:[PS_printerType], ax ; set both in PState ; ; I think the following is normally set by the UI eval routine, ; but since the Fax modem is ASF only, it seems best to set it ; here... ; mov al, ds:[PI_paperInput] ; al <- PaperInput record mov es:[PS_paperInput], al ; copy record into PState mov al, ds:[PI_paperOutput] ; al <- PaperOutput record mov es:[PS_paperOutput], al ; copy record into PState call MemUnlock ; ; Create the fax file: ; * cx:dx will be buffer to put file name. ; (This buffer will be in the PState) ; * if an error occured, kill the fax job. ; .warn -field mov cx, es lea dx, es:[PS_jobParams].JP_printerData.FFH_fileName call Group3OpenFile ; cx:dx filled ; bx <- file handle LONG jc cannotMakeFile .warn @field ; ; Get the fax file's header. ; mov ax, segment dgroup ; ax <- dgroup mov ds, ax mov ds:[outputVMFileHan], bx mov ds:[faxPageCount], 1 ; start the page count call FaxFileGetHeader ; ds:si = FaxFileHeader LONG jc cannotMakeFile push bp ; save mem handle # 2 ; ; Write misc information into the fax file's header. ; movdw ds:[si].FFH_pageWidth, FAXFILE_HORIZONTAL_SIZE movdw ds:[si].FFH_pageHeight, FAXFILE_VERTICAL_SIZE mov ds:[si].FFH_xRes, FAX_X_RES mov ds:[si].FFH_compressionType, FCT_CCITT_T4_1D mov ds:[si].FFH_imageType, FIT_BILEVEL ; ; Find out what vertical resolution to use. ; clr bx mov bl, es:[PS_mode] mov bx, cs:FaxVerticalResolution[bx] mov ds:[si].FFH_yRes, bx ; ; Find out if there is a cover page. If there is a cover page ; we have to inc the faxPageCounter since we should start at page ; 2. If there is not a cover page we do nothing and a branch in ; PrintStartPage will skip the Group3AddHeader. ; .warn -field test es:[PS_jobParams].JP_printerData.FFH_flags, mask FFF_COVER_PAGE .warn @field jz noCoverPage push es ; save PState segmov es, dgroup, bx ; es <- dgroup inc es:[faxPageCount] pop es ; es <- PState noCoverPage: ; ; Copy information in the JobParameters into the fax file header ; es:cx <- fax file header ; ds:dx <- JobParameters ; segxchg es, ds ; ds = PState segment mov cx, si ; es:cx <- fax file header lea dx, ds:[PS_jobParams] ; ds:dx <- JobParameters mov bx, size word * (length StartJobParameterOffsets - 1) copyInfo: ; ; Get ds:si to point to correct location in the JobParameters. ; mov si, dx add si, cs:StartJobParameterOffsets[bx] ; ; Get es:di to point to the correct location in the fax ; file header. ; mov di, cx add di, cs:StartJobFaxFileOffsets[bx] ; ; Copy each string from the JobParameters to the FaxFileHeader. ; LocalCopyString is fine and all, but it only works if the ; string is null-terminated, so there had better not be garbage ; in any of the fields or it will destroy the entire header ; after the string in question. -stevey 3/8/94 ; LocalCopyString dec bx dec bx jns copyInfo ; ; Copy the flags from the JobParameters to the FaxFileHeader ; es:di <- begining of actual FaxFileHeader ; ds:si <- JobParameters.JP_printerData (FaxFileHeader) ; mov si, dx ; ds:si = JobParameters lea si, ds:[si].JP_printerData ; ds:si = JP_printerData mov di, cx ; es:di = FaxFileHeader mov ax, ds:[si].FFH_flags ; flags from JobParams mov es:[di].FFH_flags, ax ; copy to FaxFileHeader ; ; Copy the Fax Spool ID into the file. ; movdw es:[di].FFH_spoolID, ds:[si].FFH_spoolID, ax ; ; Make sure to write in the fax file header that the file is ; currently disabled. This is done so the fax spooler can tell ; if the fax file is valid or not. ; mov es:[di].FFH_status, FFS_DISABLED ; ; Copy the FaxSpoolDateTime structure from the JobParameters into ; the fax file header. ; mov cx, size FaxSpoolDateTime lea di, es:[di].FFH_spoolDateTime lea si, ds:[si].FFH_spoolDateTime rep movsb ; ; Unlock the block that contains the fax file header. ; pop bp ; # 2 call VMDirty ; bp has mem handle call VMUnlock clc exit: .leave ret ; ; --------------------------- ; E R R O R H A N D L E R S ; --------------------------- ; ; ; Handle error if the user wants to abort because they don't ; think there's enough room on the disk. ; notEnoughDiskSpace: mov cl, PDEC_USER_SAYS_NO_DISK_SPACE jmp short writeErrorFlag ; ; Handle the error if it can't create the fax file. ; cannotMakeFile: mov cl, PDEC_CANNOT_CREATE_FAX_FILE jmp short writeErrorFlag ; ; This job was deleted because we couldn't make enough ; space for the job parameters. ; badJobError: mov cl, PDEC_CANNOT_RESIZE_JOB_PARAMETERS jmp short writeErrorFlag ; ; This routine is used to by the error handlers above ; to write an error flag so PrintEndJob will no if an ; error condition has canceled the job. ; writeErrorFlag: mov ax, segment dgroup mov ds, ax mov ds:[errorFlag], cl stc jmp exit PrintStartJob endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Group3OpenFile %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Opens the output file for the printer driver. CALLED BY: PrintStartJob PASS: cx:dx = buffer to put file name RETURN: ^lbx = file handle cx:dx = file name filled carry set if file is not able to be open DESTROYED: nothing PSEUDO CODE/STRATEGY: - Sets the thread's directory to the document directory - Creates a file - Opens the file - Make the fax file header REVISION HISTORY: Name Date Description ---- ---- ----------- AC 9/13/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Group3OpenFile proc near uses ax, cx, dx, di, ds, es .enter ; ; Set the current directory to the fax directroy which is at ; SP_PRIVATE_DATA/FaxDir ; call FilePushDir call PutThreadInFaxDir jc exit openTheFile:: ; ; Open the file. Returns file handle and buffer cx:dx filled ; with file name. ; call Group3GenerateFileName ; bx <- filehandle jc exit ; ; Make the VM file into a fax file ; call FaxFileInitialize ; ; Write the name of the file to the header. ; call FaxFileGetHeader ; ds:si = header segmov es, ds, di lea di, ds:[si].FFH_fileName ; es:di = name buffer movdw dssi, cxdx ; ds:si = filename if ((size FileLongName and 1) eq 0) mov cx, size FileLongName / 2 rep movsw else mov cx, size FileLongName rep movsb endif call VMDirty ; dirty FaxFileHeader... call VMUnlock ; ...and unlock it mov cx, ds ; cx:dx = filename exit: call FilePopDir .leave ret Group3OpenFile endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Group3GenerateFileName %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Opens the actual VM fax file and tries to generate a unique name for the file CALLED BY: Group3OpenFile PASS: cx:dx = buffer to put file name RETURN: bx - file handle cx:dx = filled with new filename carry returned if can't make the file DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- AC 9/20/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Group3GenerateFileName proc near uses ax, cx, dx, di, si, bp, ds, es .enter ; ; Generate the filename. Now copy the prefix of the string ; to the filename. ; segmov ds, cs, si mov si, offset faxFilePrefix mov es, cx mov di, dx ; es:di <- buffer to write mov bp, dx ; save offset for later LocalCopyString dec di ; place to write number to. ; ; Start the increment of the filenames ; clr ax segmov ds, es, dx makeFilename: clr dx inc ax push ax ; save ... count? mov cx, mask UHTAF_INCLUDE_LEADING_ZEROS or \ mask UHTAF_NULL_TERMINATE call UtilHex32ToAscii ; cx <- length of string ; ; Open the file with the generated filename. Make sure ; it's sync-update in order to prevent tons of notifications ; going out during spooling. ; mov ax, (VMO_CREATE_ONLY shl 8) or \ mask VMAF_FORCE_READ_WRITE or\ mask VMAF_FORCE_SHARED_MULTIPLE clr cx ; default compression mov dx, bp call VMOpen ; bx <- filehandle mov_tr cx, ax ; preserves carry jc noSetAttrs ; couldn't open it clr ah ; bits to clear mov al, mask VMA_SYNC_UPDATE or mask VMA_SINGLE_THREAD_ACCESS; bits to set call VMSetAttributes noSetAttrs: ; ; Check to see if there were no errors in creating the file. ; pop ax ; ax <- counter cmp cx, VM_FILE_EXISTS je makeFilename ; ; See if the filename is a new filename ; cmp cx, VM_CREATE_OK jne createError ; ; Success! Save the filename (in ds:dx) into dgroup, in ; case we need to delete the file, later. ; clc exit: .leave ret createError: stc jmp exit Group3GenerateFileName endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CheckDiskSpace %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Checks the amount of disk space there is and guesses if there will be enough memory. It then queries the user if they want to continue. CALLED BY: PrintStartJob PASS: bp = PState RETURN: carry - set if printing should abort dgroup errorState is nonzero if error DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- AC 2/ 5/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ; ; Estimates for how big each page will be (based on resolution). ; ;faxPageSize dword \ ; FAX_STD_PAGE_SIZE_ESTIMATE, ; PM_GRAPHICS_LOW_RES ; 0, ; PM_GRAPHICS_MED_RES (none) ; FAX_FINE_PAGE_SIZE_ESTIMATE ; PM_GRAPHICS_HI_RES CheckDiskSpace proc near uses ax,bx,cx,si,di,bp .enter ; ; Get available disk space. ; if _FLOPPY_BASED_FAX clr al call DiskRegisterDisk tst bx jz noFloppy else mov bx, FAX_DISK_HANDLE endif call DiskGetVolumeFreeSpace ; dx:ax - bytes free ; ; Get appropriate estimate for space requirements/page. ; if 0 mov es, bp clr bh mov bl, es:[PS_mode] ; bx <- PrinterMode shl bx ; dword table mov cx, cs:[faxPageSize][bx] endif ; ; Divide how much space we have by page estimate. That gives ; us the number of pages that will fit on the disk. We then ; compare that number with how many pages we need and take it ; from there. ; ; To keep us from having to do slow, ugly dword division, ; we'll make use of the fact that the required disk space ; for fine-res faxes is twice that for standard ones. ; mov cx, FAX_STD_PAGE_SIZE_ESTIMATE div cx ; ax = #pages ; ; We've got the estimate for standard-mode... ; mov es, bp cmp es:[PS_mode], PM_GRAPHICS_LOW_RES je gotPages ; ; ...but we need an estimate for fine mode. We can't ; just double the standard-mode estimate because the ; remainder of the division (in dx) may almost be enough ; for an entire page. Well, who cares...it's only an ; estimate. We've got code in PrintSwath() that prevents ; the file from actually eating up all the space... ; shr ax ; pages / 2 (fine) gotPages: cmp es:[PS_jobParams].JP_numPages, ax ja notEnoughDiskSpace clc ; it'll fit! exit: .leave ret notEnoughDiskSpace: ; ; Pop up a dialog to let the user there's not enough disk space. ; mov si, offset NotEnoughDiskSpaceWarning mov ax, CustomDialogBoxFlags \ <1, CDT_WARNING, GIT_AFFIRMATION, 0 > call DoDialog ; ax <- InteractionCommand ; ; We don't want to make assumptions about whether IC_YES is ; greater than or less than IC_NO, so we do the following ; weirdness to get the carry set appropriately. ; cmp ax, IC_YES je exit ; carry clear if they're equal stc ; might still be clear... jmp exit if _FLOPPY_BASED_FAX noFloppy: ; ; Pop up a dialog to tell the user that we could not find a ; floppy. ; mov si, offset NeedFloppy mov ax, CustomDialogBoxFlags \ <1, CDT_ERROR, GIT_NOTIFICATION, 0 > call DoDialog ; ax <- InteractionCommand stc jmp exit endif CheckDiskSpace endp
25.851412
79
0.608748
4222659676b35c51c63352eb222db5eaa144490e
770
asm
Assembly
oeis/321/A321715.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/321/A321715.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/321/A321715.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A321715: a(n) = 3*a(n-1) + 4*a(n-2) + a(n-3), a(0) = 1, a(1) = -1, a(2) = -1 . ; Submitted by Jon Maiga ; 1,-1,-1,-6,-23,-94,-380,-1539,-6231,-25229,-102150,-413597,-1674620,-6780398,-27453271,-111156025,-450061557,-1822262042,-7378188379,-29873674862,-120956040144,-489741008259,-1982920860215,-8028682653825,-32507472410594,-131620068707297,-532918778418092,-2157744082494058,-8736527429861839,-35373477397979841,-143224285995880937,-579903295009424014,-2347980506409775631,-9506778985262903886,-38492162276437238196,-155851583276773105763,-631030177921331173959,-2554989029147523183125 mov $1,1 mov $2,1 mov $3,-4 lpb $0 sub $0,1 add $1,$3 add $1,$2 add $1,$3 div $3,2 sub $3,$1 add $1,$2 add $1,$3 mul $2,2 sub $2,$3 add $3,$2 lpe mov $0,$1
35
484
0.698701
92e0172d6a61ab8cbdc55aed68570a8530df2b91
4,020
asm
Assembly
src/tower/screen.asm
hallorant/bitmit
58f337ecbafe04066e71bc54efa4640643bf5373
[ "Apache-2.0" ]
6
2020-08-16T03:23:37.000Z
2022-03-19T20:50:27.000Z
src/tower/screen.asm
hallorant/bitmit
58f337ecbafe04066e71bc54efa4640643bf5373
[ "Apache-2.0" ]
1
2021-09-14T22:24:14.000Z
2021-09-15T01:48:48.000Z
src/tower/screen.asm
hallorant/bitmit
58f337ecbafe04066e71bc54efa4640643bf5373
[ "Apache-2.0" ]
1
2021-09-09T22:50:31.000Z
2021-09-09T22:50:31.000Z
ifndef INCLUDE_SCREEN INCLUDE_SCREEN equ 1 import '../lib/gp_14byte_move.asm' ; _____ ;/ ___| ;\ `--. ___ _ __ ___ ___ _ __ ; `--. \/ __| '__/ _ \/ _ \ '_ \ ;/\__/ / (__| | | __/ __/ | | | ;\____/ \___|_| \___|\___|_| |_| ; ; Defines the graphics buffer, the screen back buffer, ; Public interface: ; draw_gb_to_bb ; draw_bb_to_screen ; (and all the definitions) screen equ $3c00 row equ 64 ; Position the raycasting window on the screen. window equ screen+64+2 window_width equ 27 ; WARNING much hardcoding to this value window_height equ 9 ; WARNING much hardcoding to this value ; This back buffer represnts a 27x9 square on the TRS-80 screen. bb_width equ window_width bb_height equ window_height bb defs bb_width*bb_height bb_size equ $-bb ; This graphics buffer represents 27x27 pixels (sort of laying on its side). ; It defines "pixels", one per byte, which are 2x1 TRS-80 graphics blocks. ; This gives us a 1:1 aspect ratio (or very close to it). We use $ff to ; set and $00 to unset a "pixel" (allowing branch-free code drawing). ; Each row of in the gb represents a column in the bb. Defining bytes, left ; to right, that fill in 2x1 screen pixels (three per screen row) from top ; to bottom of the bb. gb_width equ bb_width gb_height equ bb_height*3 gb defs gb_width*gb_height gb_size equ $-gb ; hl must point to the correct position in the graphics buffer. ; @private draw_gb_to_bb_character macro bb_dst ld d,$80 ; empty graphics character ld a,$83 ; top 2x1 dot and (hl) or d ld d,a ; update character result inc hl ld a,$8c ; middle 2x1 dot and (hl) or d ld d,a ; update character result inc hl ld a,$b0 ; bottom 2x1 dot and (hl) or d ld (bb_dst),a ; write character into the screen back buffer inc hl endm ; blts a single vertical column on the screen back buffer. ; hl must point to the start row position in the graphics buffer. ; Hardcoded to 9 rows in the screen back buffer. ; @private draw_gb_to_bb_column macro bb_dst draw_gb_to_bb_character bb_dst+bb_width*0 draw_gb_to_bb_character bb_dst+bb_width*1 draw_gb_to_bb_character bb_dst+bb_width*2 draw_gb_to_bb_character bb_dst+bb_width*3 draw_gb_to_bb_character bb_dst+bb_width*4 draw_gb_to_bb_character bb_dst+bb_width*5 draw_gb_to_bb_character bb_dst+bb_width*6 draw_gb_to_bb_character bb_dst+bb_width*7 draw_gb_to_bb_character bb_dst+bb_width*8 endm ; 21 columns of the screen (hardcoded) we blt each row out of gb. draw_gb_to_bb macro ld hl,gb draw_gb_to_bb_column bb+0 draw_gb_to_bb_column bb+1 draw_gb_to_bb_column bb+2 draw_gb_to_bb_column bb+3 draw_gb_to_bb_column bb+4 draw_gb_to_bb_column bb+5 draw_gb_to_bb_column bb+6 draw_gb_to_bb_column bb+7 draw_gb_to_bb_column bb+8 draw_gb_to_bb_column bb+9 draw_gb_to_bb_column bb+10 draw_gb_to_bb_column bb+11 draw_gb_to_bb_column bb+12 draw_gb_to_bb_column bb+13 draw_gb_to_bb_column bb+14 draw_gb_to_bb_column bb+15 draw_gb_to_bb_column bb+16 draw_gb_to_bb_column bb+17 draw_gb_to_bb_column bb+18 draw_gb_to_bb_column bb+19 draw_gb_to_bb_column bb+20 draw_gb_to_bb_column bb+21 draw_gb_to_bb_column bb+22 draw_gb_to_bb_column bb+23 draw_gb_to_bb_column bb+24 draw_gb_to_bb_column bb+25 draw_gb_to_bb_column bb+26 endm ; @private draw_bb_row_to_screen macro bb_src,screen_dst gp_14byte_move bb_src, screen_dst ; We re-move the middle byte to use fast 14 byte moves. gp_14byte_move bb_src+13, screen_dst+13 endm ; 27 columns and 9 rows (hardcoded) draw_bb_to_screen macro ld (save_sp),sp draw_bb_row_to_screen bb+27*0,window+row*0 draw_bb_row_to_screen bb+27*1,window+row*1 draw_bb_row_to_screen bb+27*2,window+row*2 draw_bb_row_to_screen bb+27*3,window+row*3 draw_bb_row_to_screen bb+27*4,window+row*4 draw_bb_row_to_screen bb+27*5,window+row*5 draw_bb_row_to_screen bb+27*6,window+row*6 draw_bb_row_to_screen bb+27*7,window+row*7 draw_bb_row_to_screen bb+27*8,window+row*8 ld sp,(save_sp) endm endif ; INCLUDE_SCREEN
29.343066
76
0.762189
a8c0ce3de0b0f43dfcab517719f775b5560e3209
5,123
asm
Assembly
Driver/Net/NW/nwUtils.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Driver/Net/NW/nwUtils.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Driver/Net/NW/nwUtils.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: nwUtils.asm AUTHOR: Chris Boyke ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 11/14/92 Initial version. DESCRIPTION: $Id: nwUtils.asm,v 1.1 97/04/18 11:48:44 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ NetWareCommonCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% MyMemCmp %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: CALLED BY: PASS: ds:si = first pointer es:di = second pointer cx = length to compare RETURN: ax = difference of chars, 0 if equal DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- CL 10/ 8/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ MyMemCmp proc near uses ds,es,si,di,cx .enter clr ax jcxz exit repe cmpsb mov al, es:[di][-1] sub al, ds:[si][-1] cbw exit: .leave ret MyMemCmp endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% MyStrCmp %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: compares 2 strings CALLED BY: GLOBAL PASS: es:di - string 1 ds:si - string 2 RETURN: ax - 0 if match, else difference in chars DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ISR 3/11/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ MyStrCmp proc far uses cx,ds,es,si,di .enter push di mov cx, -1 clr ax ; repne scasb ; not cx ;CX <- # chars in str 1 (w/null) pop di repe cmpsb jz exit ;If match, exit (with ax=0) mov al, es:[di][-1] ;Else, return difference of chars sub al, ds:[si][-1] ; cbw ; exit: .leave ret MyStrCmp endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% NetWareFreeRRBuffers %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Free the mem block at ES. The handle is at ES:0 CALLED BY: INTERNAL PASS: es - segment to free RETURN: nothing DESTROYED: es, flags preserved PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 10/15/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ NetWareFreeRRBuffers proc far uses bx .enter pushf mov bx, es:[NRR_handle] call MemFree popf .leave ret NetWareFreeRRBuffers endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% NetWareCopyNTString %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: copy a null-terminated string, including the NULL CALLED BY: INTERNAL PASS: ds:si - source es:di - dest RETURN: cx - number of bytes, including NULL ds:si, es:di - point AFTER null DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 10/16/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ NetWareCopyNTString proc near uses ax .enter clr cx startLoop: lodsb stosb inc cx tst al jnz startLoop .leave ret NetWareCopyNTString endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% NetWareCopyStringButNotNull %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Copy a string, but don't copy the NULL terminator CALLED BY: INTERNAL PASS: ds:si - source es:di - dest RETURN: cx - # of bytes copied ds:si - points at NULL es:di - points after last char copied DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 10/16/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ NetWareCopyStringButNotNull proc near uses ax .enter clr cx copyLoop: lodsb tst al jz endCopy inc cx stosb jmp copyLoop endCopy: .leave ret NetWareCopyStringButNotNull endp NetWareCommonCode ends
20.825203
78
0.435877
eaf95ea4a47ab46706b62cf7a2d42228ee7cb3df
451
asm
Assembly
oeis/099/A099100.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/099/A099100.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/099/A099100.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A099100: a(n) = Fibonacci(5*n+1). ; Submitted by Jamie Morken(s1) ; 1,8,89,987,10946,121393,1346269,14930352,165580141,1836311903,20365011074,225851433717,2504730781961,27777890035288,308061521170129,3416454622906707,37889062373143906,420196140727489673,4660046610375530309,51680708854858323072,573147844013817084101,6356306993006846248183 mul $0,5 mov $2,1 lpb $0 sub $0,2 add $1,$2 add $2,$1 lpe lpb $0 div $0,4 add $2,$1 lpe mov $0,$2
26.529412
273
0.773836
4ec8010b0c8ce89846ad02f5ccae23b442584815
158
asm
Assembly
src/intel/tools/tests/gen8/not.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
src/intel/tools/tests/gen8/not.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
src/intel/tools/tests/gen8/not.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
not(16) g10<1>D g1.2<0,1,0>D { align1 1H }; not(8) g4<1>D g8<8,8,1>D { align1 1Q };
52.666667
78
0.297468
5d1c3c93aa675c44a955dcd59c5e5a1d11d42f17
404
asm
Assembly
oeis/036/A036714.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/036/A036714.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/036/A036714.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A036714: a(n)=number of Gaussian integers z=a+bi satisfying n-1/2<|z|<=n+1/2, a>=0, 0<=b<a. ; Submitted by Christian Krause ; 0,1,2,2,4,4,5,5,6,9,7,9,9,11,11,11,14,14,14,15,14,18,18,18,18,21,21,20,23,22,25,24,24,26,28,28,29,28,31,30,33,31,33,35,33,36,35,38,38,39,40,40,43,40,42,44,43,47,42,49,48 seq $0,36710 ; a(n)=number of Gaussian integers z=a+bi satisfying n-1/2<|z|<=n+1/2, a>=0, b>=0. div $0,2
57.714286
171
0.641089
f36022158fd50b807c60f62c3bbbf69c50302e19
104
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_erfc.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_erfc.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_erfc.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib SECTION code_fp_math48 PUBLIC asm_erfc EXTERN am48_erfc defc asm_erfc = am48_erfc
10.4
25
0.836538
6d7c9cbcac7e12ef490eb3bcf220bd83ba83d54e
824
asm
Assembly
oeis/279/A279634.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/279/A279634.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/279/A279634.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A279634: Coefficients in the expansion of 1/([r] + [2r]x + [3r]x^2 + ...); [ ] = floor, r = 3/2. ; Submitted by Jon Maiga ; 1,-3,5,-9,18,-36,72,-144,288,-576,1152,-2304,4608,-9216,18432,-36864,73728,-147456,294912,-589824,1179648,-2359296,4718592,-9437184,18874368,-37748736,75497472,-150994944,301989888,-603979776,1207959552,-2415919104,4831838208,-9663676416,19327352832,-38654705664,77309411328,-154618822656,309237645312,-618475290624,1236950581248,-2473901162496,4947802324992,-9895604649984,19791209299968,-39582418599936,79164837199872,-158329674399744,316659348799488,-633318697598976,1266637395197952 mov $3,2 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 add $0,$3 trn $0,1 seq $0,110164 ; Expansion of (1-x^2)/(1+2x). mov $2,$3 mul $2,$0 add $1,$2 mov $4,$0 lpe min $5,1 mul $5,$4 sub $1,$5 mov $0,$1
37.454545
488
0.711165
34b576974d6eeb47fcf90916a9e6f17e8cebb298
436
asm
Assembly
oeis/046/A046748.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/046/A046748.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/046/A046748.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A046748: Row sums of triangle A046521. ; Submitted by Jamie Morken(s4) ; 1,3,13,61,295,1447,7151,35491,176597,880125,4390901,21920913,109486993,547018941,2733608905,13662695645,68294088535,341399727335,1706739347095,8532741458075,42660172763995,213287735579135,1066389745361635,5331765761680895 mov $1,1 mov $2,1 mov $3,$0 mov $0,6 lpb $3 sub $0,4 mul $1,$0 mul $2,5 sub $3,1 sub $4,1 div $1,$4 add $2,$1 lpe mov $0,$2
22.947368
223
0.733945
2b3a34c48cde238ce7e6d6565e67ce787cbb639a
4,866
asm
Assembly
deps/gmp.js/mpn/x86_64/divrem_2.asm
6un9-h0-Dan/cobaul
11115a7a77924d6e1642f847c613efb25f217e56
[ "MIT" ]
184
2020-04-15T14:28:37.000Z
2020-09-22T15:57:55.000Z
deps/gmp.js/mpn/x86_64/divrem_2.asm
6un9-h0-Dan/cobaul
11115a7a77924d6e1642f847c613efb25f217e56
[ "MIT" ]
3
2020-09-22T05:09:36.000Z
2020-09-22T11:56:00.000Z
deps/gmp.js/mpn/x86_64/divrem_2.asm
6un9-h0-Dan/cobaul
11115a7a77924d6e1642f847c613efb25f217e56
[ "MIT" ]
5
2020-04-21T19:50:23.000Z
2020-09-22T10:58:02.000Z
dnl x86-64 mpn_divrem_2 -- Divide an mpn number by a normalized 2-limb number. dnl Copyright 2007, 2008, 2010 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Lesser General Public License as published dnl by the Free Software Foundation; either version 3 of the License, or (at dnl your option) any later version. dnl The GNU MP Library is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public dnl License for more details. dnl You should have received a copy of the GNU Lesser General Public License dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. include(`../config.m4') C norm frac C K8 20 20 C P4 73 73 C P6 core2 37 37 C P6 corei7 33 33 C TODO C * Perhaps compute the inverse without relying on divq? Could either use C Newton's method and mulq, or perhaps the faster fdiv. C * The loop has not been carefully tuned, nor analysed for critical path C length. It seems that 20 c/l is a bit long, compared to the 13 c/l for C mpn_divrem_1. C * Clean up. This code is really crude. C INPUT PARAMETERS define(`qp', `%rdi') define(`fn', `%rsi') define(`up_param', `%rdx') define(`un_param', `%rcx') define(`dp', `%r8') define(`dinv', `%r9') C rax rbx rcx rdx rsi rdi rbp r8 r9 r10 r11 r12 r13 r14 r15 C cnt qp d dinv ASM_START() TEXT ALIGN(16) PROLOGUE(mpn_divrem_2) push %r15 lea (%rdx,%rcx,8), %rax push %r14 push %r13 mov %rsi, %r13 push %r12 lea -24(%rax), %r12 push %rbp mov %rdi, %rbp push %rbx mov 8(%r8), %r11 mov -8(%rax), %r9 mov (%r8), %r8 mov -16(%rax), %r10 xor R32(%r15), R32(%r15) cmp %r9, %r11 ja L(2) setb %dl cmp %r10, %r8 setbe %al orb %al, %dl jne L(23) L(2): lea -3(%rcx,%r13), %rbx C un + fn - 3 test %rbx, %rbx js L(6) mov %r11, %rdx mov $-1, %rax not %rdx div %r11 mov %r11, %rdx mov %rax, %rdi imul %rax, %rdx mov %rdx, %r14 mul %r8 mov %rdx, %rcx mov $-1, %rdx add %r8, %r14 adc $0, %rdx add %rcx, %r14 adc $0, %rdx js L(8) L(18): dec %rdi sub %r11, %r14 sbb $0, %rdx jns L(18) L(8): C rax rbx rcx rdx rsi rdi rbp r8 r9 r10 r11 r12 r13 r14 r15 C n2 un n1 dinv qp d0 d1 up fn msl C n2 un -d1 n1 dinv XX XX ifdef(`NEW',` lea (%rbp,%rbx,8), %rbp mov %rbx, %rcx C un mov %r9, %rbx mov %rdi, %r9 C di mov %r10, %r14 mov %r11, %rsi neg %rsi C -d1 ALIGN(16) L(loop): mov %r9, %rax C di ncp mul %rbx C 0, 18 add %r14, %rax C 4 mov %rax, %r10 C q0 5 adc %rbx, %rdx C 5 mov %rdx, %rdi C q 6 imul %rsi, %rdx C 6 mov %r8, %rax C ncp lea (%rdx, %r14), %rbx C n1 -= ... 7 mul %rdi C 7 xor R32(%r14), R32(%r14) C cmp %rcx, %r13 C jg L(19) C mov (%r12), %r14 C sub $8, %r12 C L(19): sub %r8, %r14 C ncp sbb %r11, %rbx C 9 sub %rax, %r14 C 11 sbb %rdx, %rbx C 12 inc %rdi C 7 xor R32(%rdx), R32(%rdx) C cmp %r10, %rbx C 13 mov %r8, %rax C d0 ncp adc $-1, %rdx C mask 14 add %rdx, %rdi C q-- 15 and %rdx, %rax C d0 or 0 15 and %r11, %rdx C d1 or 0 15 add %rax, %r14 C 16 adc %rdx, %rbx C 16 cmp %r11, %rbx C 17 jae L(fix) C L(bck): mov %rdi, (%rbp) C sub $8, %rbp C dec %rcx jns L(loop) mov %r14, %r10 mov %rbx, %r9 ',` lea (%rbp,%rbx,8), %rbp mov %rbx, %rcx mov %r9, %rax mov %r10, %rsi ALIGN(16) L(loop): mov %rax, %r14 C 0, 19 mul %rdi C 0 mov %r11, %r9 C 1 add %rsi, %rax C 4 mov %rax, %rbx C q0 5 adc %r14, %rdx C q 5 lea 1(%rdx), %r10 C 6 mov %rdx, %rax C 6 imul %rdx, %r9 C 6 sub %r9, %rsi C 10 xor R32(%r9), R32(%r9) C mul %r8 C 7 cmp %rcx, %r13 C jg L(13) C mov (%r12), %r9 C sub $8, %r12 C L(13): sub %r8, %r9 C ncp sbb %r11, %rsi C 11 sub %rax, %r9 C 11 sbb %rdx, %rsi C 12 cmp %rbx, %rsi C 13 sbb %rax, %rax C 14 not %rax C 15 add %rax, %r10 C 16 mov %r8, %rbx C ncp and %rax, %rbx C 16 and %r11, %rax C 16 add %rbx, %r9 C 17 adc %rsi, %rax C 18 cmp %rax, %r11 C 19 jbe L(fix) C L(bck): mov %r10, (%rbp) C sub $8, %rbp C mov %r9, %rsi C 18 dec %rcx jns L(loop) mov %rsi, %r10 mov %rax, %r9 ') L(6): mov %r10, 8(%r12) mov %r9, 16(%r12) pop %rbx pop %rbp pop %r12 pop %r13 pop %r14 mov %r15, %rax pop %r15 ret L(23): inc R32(%r15) sub %r8, %r10 sbb %r11, %r9 jmp L(2) ifdef(`NEW',` L(fix): seta %dl cmp %r8, %r14 setae %al orb %dl, %al je L(bck) inc %rdi sub %r8, %r14 sbb %r11, %rbx jmp L(bck) ',` L(fix): jb L(88) cmp %r8, %r9 jb L(bck) L(88): inc %r10 sub %r8, %r9 sbb %r11, %rax jmp L(bck) ') EPILOGUE()
20.190871
79
0.589601
112033575da5b6614d006321f6b6989b5c688a78
947
asm
Assembly
oeis/223/A223346.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/223/A223346.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/223/A223346.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A223346: 3 X 3 X 3 triangular graph without horizontal edges coloring a rectangular array: number of n X 1 0..5 arrays where 0..5 label nodes of a graph with edges 0,1 0,2 1,3 1,4 2,4 2,5 and every array movement to a horizontal or vertical neighbor moves along an edge of this graph. ; Submitted by Christian Krause ; 6,12,28,60,140,300,700,1500,3500,7500,17500,37500,87500,187500,437500,937500,2187500,4687500,10937500,23437500,54687500,117187500,273437500,585937500,1367187500,2929687500,6835937500,14648437500,34179687500,73242187500,170898437500,366210937500,854492187500,1831054687500,4272460937500,9155273437500,21362304687500,45776367187500,106811523437500,228881835937500,534057617187500,1144409179687500,2670288085937500,5722045898437500,13351440429687500,28610229492187500,66757202148437500 mov $1,7 mov $2,3 lpb $0 sub $0,1 mul $2,5 mov $3,$1 mov $1,$2 mov $2,$3 lpe sub $1,6 mul $1,2 div $1,5 mov $0,$1 mul $0,2 add $0,6
47.35
484
0.794087
53dbe5fd99055186a61e607222b136d68d179a71
396
asm
Assembly
services/convolution/tests/transition.asm
vient/proctf-2019
b7b954fff2396a7a7a83c90ec55d75bce4a3485c
[ "MIT" ]
2
2020-04-22T19:36:16.000Z
2020-09-16T07:45:54.000Z
services/convolution/tests/transition.asm
vient/proctf-2019
b7b954fff2396a7a7a83c90ec55d75bce4a3485c
[ "MIT" ]
3
2021-03-31T19:21:51.000Z
2021-06-08T20:31:48.000Z
services/convolution/tests/transition.asm
leetchicken/proctf-2019
b7b954fff2396a7a7a83c90ec55d75bce4a3485c
[ "MIT" ]
3
2019-10-26T00:25:03.000Z
2019-11-23T21:10:10.000Z
v_mov v10, 0.0 # 1, -1 v_load v11, 0, s0q v_mov v12, -1.0 # -1, 1 v_mul_f32 v11, v11, v12 v_cmp_gt_f32 v11, v10 s_mov exec, vcc #0x0f # -1, 2 v_add_f32 v11, v11, v11 s_mov exec, 0xff # 1, -2 v_mul_f32 v11, v11, v12 v_cmp_gt_f32 v11, v10 s_mov exec, vcc #0xf0 # 2, -2 v_add_f32 v11, v11, v11 s_mov exec, 0xff v_mul_u32 v1, v1, 8 v_add_u32 v1, v1, v0 s_add s4q, s0q, 32 v_store v11, v1, s4q
14.142857
24
0.671717
0f996a5f659d4804904d846641230b5b6d39a4c1
636
asm
Assembly
programs/oeis/329/A329505.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/329/A329505.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/329/A329505.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A329505: Expansion of (1 + x)*(1 + 2*x - x^2) / (1 - x). ; 1,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4 sub $0,1 mov $1,2 mov $2,2 trn $2,$0 sub $2,1 pow $2,2 sub $1,$2 add $1,3
53
501
0.498428
d892b6092c0a7d0a364402829b0227d9419d5372
345
asm
Assembly
oeis/137/A137301.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/137/A137301.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/137/A137301.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A137301: Decimal expansion of 999/9801. ; Submitted by Jamie Morken(s1) ; 1,0,1,9,2,8,3,7,4,6,5,5,6,4,7,3,8,2,9,2,0,1,1,0,1,9,2,8,3,7,4,6,5,5,6,4,7,3,8,2,9,2,0,1,1,0,1,9,2,8,3,7,4,6,5,5,6,4,7,3,8,2,9,2,0,1,1,0,1,9,2,8,3,7,4,6,5,5,6,4,7,3,8,2,9,2,0,1,1,0,1,9,2,8,3,7,4,6 add $0,1 mov $1,10 pow $1,$0 mul $1,370 div $1,3630 mod $1,10 mov $0,$1
28.75
197
0.568116
e60f755079cbeb3628af917d6c7dc97f56909db4
718
asm
Assembly
oeis/221/A221740.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/221/A221740.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/221/A221740.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A221740: a(n) = -4*((n-1)*(n+1)^(n+1)+1)/(((-1)^n-3)*n^3). ; Submitted by Christian Krause ; 1,7,19,293,1493,38127,293479,10593529,109739369,5135610071,66987982331,3856048810781,60693710471869,4149140360751583,76519827268721103,6058888636862818097,128138108936443028945,11533996620790579909159,275176672984400058317539,27752288337333416976560341,737345594135016860806925221,82360974454696873163308732367,2411620538399461719230688945719,295545481092344912381290837570473,9455799675198193629383691706982713,1261454506836133847144542645138683127,43783142861585517778127873524741134539 mov $2,$0 seq $0,51846 ; Digits 1..n in strict descending order n..1 interpreted in base n+1. mov $1,$0 add $2,1 gcd $1,$2 div $0,$1
65.272727
490
0.830084
75a1c373b55a5b8f430606b86f8849c03f4473d3
1,825
asm
Assembly
programs/oeis/213/A213246.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/213/A213246.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/213/A213246.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A213246: Number of nonzero elements in GF(2^n) that are 9th powers. ; 1,1,7,5,31,7,127,85,511,341,2047,455,8191,5461,32767,21845,131071,29127,524287,349525,2097151,1398101,8388607,1864135,33554431,22369621,134217727,89478485,536870911,119304647,2147483647,1431655765,8589934591,5726623061,34359738367,7635497415,137438953471,91625968981,549755813887,366503875925,2199023255551,488671834567,8796093022207,5864062014805,35184372088831,23456248059221,140737488355327,31274997412295,562949953421311,375299968947541,2251799813685247,1501199875790165,9007199254740991,2001599834386887,36028797018963967,24019198012642645,144115188075855871,96076792050570581,576460752303423487,128102389400760775,2305843009213693951,1537228672809129301,9223372036854775807,6148914691236517205,36893488147419103231,8198552921648689607,147573952589676412927,98382635059784275285,590295810358705651711,393530540239137101141,2361183241434822606847,524707386985516134855,9444732965739290427391,6296488643826193618261,37778931862957161709567,25185954575304774473045,151115727451828646838271,33581272767073032630727,604462909807314587353087,402975273204876391568725,2417851639229258349412351,1611901092819505566274901,9671406556917033397649407,2149201457092674088366535,38685626227668133590597631,25790417485112089060398421,154742504910672534362390527,103161669940448356241593685,618970019642690137449562111,137548893253931141655458247,2475880078570760549798248447,1650586719047173699865498965,9903520314283042199192993791,6602346876188694799461995861,39614081257132168796771975167,8803129168251593065949327815,158456325028528675187087900671,105637550019019116791391933781,633825300114114700748351602687,422550200076076467165567735125 mov $3,2 lpb $0 sub $0,1 mul $3,2 lpe add $0,$3 sub $0,1 mov $2,9 gcd $2,$0 div $0,$2 div $0,2 mul $0,2 add $0,1
107.352941
1,636
0.903562
64ea15881788bd51774035ebfb3d03b50a62d17d
86
asm
Assembly
Userland/SampleCodeModule/asm/opCode.asm
R0L02796/TP2_SO
3c6857fcdf6138cae3e35f921cc40e6f4bb17dd8
[ "BSD-3-Clause" ]
null
null
null
Userland/SampleCodeModule/asm/opCode.asm
R0L02796/TP2_SO
3c6857fcdf6138cae3e35f921cc40e6f4bb17dd8
[ "BSD-3-Clause" ]
null
null
null
Userland/SampleCodeModule/asm/opCode.asm
R0L02796/TP2_SO
3c6857fcdf6138cae3e35f921cc40e6f4bb17dd8
[ "BSD-3-Clause" ]
null
null
null
; Generates Invalid OP Code exception GLOBAL opCode section .text opCode: rsm ret
9.555556
37
0.767442
e90e2c8c4009b1bdc6f199f341fb6607aaba2659
409
asm
Assembly
Laboratorio/Relatorio_08/Resposta Rel_08/prog13.asm
0Augusto/hello-world
9fd2c7b00a6c3cbe696f7eff8db4e89a8d7b4ae2
[ "Apache-2.0" ]
1
2022-03-03T17:22:30.000Z
2022-03-03T17:22:30.000Z
Laboratorio/Relatorio_08/Resposta Rel_08/prog13.asm
0Augusto/hello-world
9fd2c7b00a6c3cbe696f7eff8db4e89a8d7b4ae2
[ "Apache-2.0" ]
null
null
null
Laboratorio/Relatorio_08/Resposta Rel_08/prog13.asm
0Augusto/hello-world
9fd2c7b00a6c3cbe696f7eff8db4e89a8d7b4ae2
[ "Apache-2.0" ]
null
null
null
# Variaveis associadas aos registradores: # endBase -> $16 .data A: .word -2 .text .globl main main: addi $16, $0, 0x1001 # endBase = 0x00001001 sll $16, $16, 0x10 # endBase = 0x10010000 lw $8, 0x0($16) # t0 = mem[ 0 + endBase ] sra $9, $8, 0x19 # t0 >> 31 beq $9, $0, fim # if (t0 == 0) goto fim sub $8, $0, $8 # t0 = 0 - t0 sw $8, 0x0($16) # mem[0 + endBase] = t0 fim: nop
20.45
47
0.540342
3a9efb1523820c149c7657d4c65e61f9662ae01b
727
asm
Assembly
oeis/294/A294608.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/294/A294608.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/294/A294608.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A294608: a(n) = Sum_{d|n} d^(d + 1 + n/d). ; Submitted by Jon Maiga ; 1,17,244,4129,78126,1680410,40353608,1073758337,31381061797,1000000390882,34522712143932,1283918474699170,51185893014090758,2177953338091847410,98526125335695332184,4722366482878235412481,239072435685151324847154,12748236216396360664503179,714209495693373205673756420,41943040000000010000010822394,2576580875108218291931053373552,165251092644282266159726847814282,11045767571919545466173812409689944,768231807465763655698078019019633650,55511151231257827021181583404589843751 add $0,1 mov $2,$0 lpb $0 mov $3,$2 dif $3,$0 mov $4,$3 cmp $3,$2 cmp $3,0 mul $3,$0 sub $0,1 add $4,$0 add $4,2 pow $3,$4 add $1,$3 lpe add $1,1 mov $0,$1
33.045455
477
0.786795
f23c4d1095a8076ebad2b309f53c26e8e25975dd
84
asm
Assembly
mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/abs8.asm
gb-archive/really-old-stuff
ffb39a518cad47e23353b3420b88e2f3521fd3d7
[ "Apache-2.0" ]
10
2016-10-27T20:46:02.000Z
2021-11-01T15:49:13.000Z
mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/abs8.asm
gb-archive/really-old-stuff
ffb39a518cad47e23353b3420b88e2f3521fd3d7
[ "Apache-2.0" ]
null
null
null
mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/abs8.asm
gb-archive/really-old-stuff
ffb39a518cad47e23353b3420b88e2f3521fd3d7
[ "Apache-2.0" ]
2
2015-03-11T14:28:08.000Z
2017-11-02T10:57:57.000Z
; Returns absolute value for 8 bit signed integer ; __ABS8: or a ret p neg ret
9.333333
49
0.702381
4b5ebd4dcbca4eed9e1bf4dc96eb78e5689c1bd4
553
asm
Assembly
programs/oeis/254/A254050.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/254/A254050.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/254/A254050.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A254050: Permutation of odd numbers: a(n) = (2*(A249745(n))) - 1 = A064989(A007310(n)). ; 1,3,5,7,11,13,17,19,9,23,29,15,31,37,41,43,25,47,21,53,59,33,61,67,71,35,73,79,39,83,55,51,89,97,101,103,107,109,57,65,49,27,113,127,85,131,137,77,69,139,149,87,151,95,157,163,121,167,45,173,179,93,91,181,191,193,197,115,111,119,199,123,145,143,211,223,227,229,129,233,239,75,187,241,133,251,155,257,141,263,269,63,271,277,281,185,169,283,159,209 add $0,1 mul $0,3 div $0,2 sub $0,1 seq $0,243502 ; Permutation of even numbers: a(n) = 2 * A064216(n). div $0,2
55.3
348
0.676311
084eeb8200aec83b50f0f3b2e85ade986acea935
2,468
asm
Assembly
src/test/resources/test03.asm
jeffreybian/mochi8
a5aa7d70193c42c55824ae129b04b0a0581644ec
[ "MIT" ]
null
null
null
src/test/resources/test03.asm
jeffreybian/mochi8
a5aa7d70193c42c55824ae129b04b0a0581644ec
[ "MIT" ]
2
2015-07-20T19:23:52.000Z
2015-07-20T19:24:16.000Z
src/test/resources/test03.asm
jeffreybian/mochi8
a5aa7d70193c42c55824ae129b04b0a0581644ec
[ "MIT" ]
null
null
null
OPTION BINARY ; We want a binary file, not an HP48 one. ALIGN OFF ; And we don't want auto alignement, as some ; data can be made of bytes instead of words. ; Drawing a random maze like this one consists in drawing random diagonal ; lines. There are two possibilities: right-to-left line, and left-to-right ; line. Each line is composed of a 4*4 bitmap. As the lines must form non- ; circular angles, the two bitmaps won't be '/' and '\'. The first one ; (right line) will be a little bit modified. See at the end of this source. ; ; The maze is composed of 8 lines (as the bitmaps are 4 pixels high), each ; line consists of 16 bitmaps. ; Bitmaps are drawn in random mode. We choose a random value (0 or 1). ; If it is 1, we draw a left line bitmap. If it is 0, we draw a right one. ; Rsgister usage: ; ; V0: X-coordinate of the bitmap ; V1: Y-coordinate of the bitmap ; V2: Random number LD V0, 0 LD V1, 0 LOOP: LD I, LEFT ; We draw a left line by default, as the random number ; is 0 or 1. If we suppose that it will be 1, we keep ; drawing the left line. If it is 0, we change register ; I to draw a right line. RND V2, 1 ; Load in V2 a 0...1 random number SE V2, 1 ; It is 1 ? If yes, I still refers to the left line ; bitmap. LD I, RIGHT ; If not, we change I to make it refer the right line ; bitmap. DRW V0, V1, 4 ; And we draw the bitmap at V0, V1. ADD V0, 4 ; The next bitmap is 4 pixels right. So we update ; V0 to do so. SE V0, 64 ; If V0==64, we finished drawing a complete line, so we ; skip the jump to LOOP, as we have to update V1 too. JP LOOP ; We did not draw a complete line ? So we continue ! LD V0, 0 ; The first bitmap of each line is located 0, V1. ADD V1, 4 ; We update V1. The next line is located 4 pixels doan. SE V1, 32 ; Have we drawn all the lines ? If yes, V1==32. JP LOOP ; No ? So we continue ! FIN: JP FIN ; Infinite loop... RIGHT: ; 4*4 bitmap of the left line DB $1....... DB $.1...... DB $..1..... DB $...1.... LEFT: ; 4*4 bitmap of the right line ; And YES, it is like that... DB $..1..... DB $.1...... DB $1....... DB $...1....
33.808219
76
0.566451
72aca69619a8188427470bdd7fdb752f8e851393
337
asm
Assembly
programs/oeis/031/A031994.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/031/A031994.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/031/A031994.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A031994: Duplicate of A023751. ; 0,1,2,3,4,5,6,7,8,10,11,12,13,14,15,16,17,20,21,22,23,24,25,26,30,31,32,33,34,35,40,41,42,43 mov $2,$0 mov $0,0 mov $1,$2 mov $4,$2 lpb $2,1 lpb $4,1 add $3,$1 sub $4,$3 lpe sub $2,3 add $2,$0 add $5,1 lpb $5,1 trn $5,$3 lpe mov $0,$5 add $1,$5 trn $2,5 mov $3,0 lpe
14.041667
94
0.52819
c82b632e5629d8809ffee7085098c5750052cb42
308
asm
Assembly
programs/oeis/087/A087444.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/087/A087444.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/087/A087444.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A087444: Numbers that are congruent to {1, 4} mod 9. ; 1,4,10,13,19,22,28,31,37,40,46,49,55,58,64,67,73,76,82,85,91,94,100,103,109,112,118,121,127,130,136,139,145,148,154,157,163,166,172,175,181,184,190,193,199,202,208,211,217,220,226,229,235,238,244,247,253 mul $0,6 mov $1,$0 div $1,4 mul $1,3 add $1,1
34.222222
205
0.681818
08872ffeb35cb634da5360b007a7d7e904f73952
548
asm
Assembly
examples/joy.asm
Cichy3D/Komp2IDE
b4eee06ac254d7a3d4f71376329646fb5323bf75
[ "Apache-2.0" ]
null
null
null
examples/joy.asm
Cichy3D/Komp2IDE
b4eee06ac254d7a3d4f71376329646fb5323bf75
[ "Apache-2.0" ]
null
null
null
examples/joy.asm
Cichy3D/Komp2IDE
b4eee06ac254d7a3d4f71376329646fb5323bf75
[ "Apache-2.0" ]
null
null
null
:start; push ixi; pop axa; dec; push axa; pop hxh; mov axa ff 04; push axa; pop ixi; read; shl; shl; mov b a; // joy Y read; mov c a; // joy X // byte in a row switch a; load fe; switch a; shr; shr; shr; or b; push axa; pop ixi; zero; inc; rotr; mov d a; //sets bit x mov a c; not; load and 7; inc; mov c a; // iterator mov axa :petla_bits; push axa; pop exe; :petla_bits; mov a d; rotl; mov d a; mov a c; dec; mov c a; jnz exe; push ixi; push hxh; pop ixi; zero; write; pop ixi; mov a d; write; // main loop mov axa :start; mov pxp axa;
14.421053
50
0.629562
ac9ac467811992ecf655a35696e3121f6cb49bf6
862
asm
Assembly
oeis/142/A142737.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142737.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142737.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142737: Primes congruent to 10 mod 59. ; Submitted by Jon Maiga ; 541,659,1013,1249,1367,1721,2311,3019,3137,3373,3491,3727,4789,5261,5851,6323,7621,8093,8329,8447,9391,10099,10453,11161,11279,11633,11987,12577,13049,13757,14347,15173,15527,15881,16943,18713,19421,20011,20129,20483,20719,21191,22961,23197,23669,24023,24967,25321,25439,25793,26029,26501,26737,27091,27799,27917,28979,29333,29569,30631,32401,33581,34171,36767,37003,37357,38183,38891,39953,40189,40543,40897,41959,42667,44201,44909,45263,45853,45971,46679,47269,47387,47623,47741,47977,48449,49157 mov $1,3 mov $2,$0 add $2,6 pow $2,2 lpb $2 add $1,24 sub $2,1 mov $3,$1 add $1,4 add $3,7 mul $3,2 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,31 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 mul $0,2 sub $0,55
31.925926
500
0.721578
f438cbd586052d0e02cc2bf09323e7248897e2a7
3,179
asm
Assembly
App32bitYasm1/test.asm
HJLebbink/Asm-Examples-Visual-Studio
c117ff7cb4df98b5b99f8d617138dbd991905b72
[ "MIT" ]
3
2017-03-09T14:16:30.000Z
2021-06-20T08:55:33.000Z
App32bitYasm1/test.asm
HJLebbink/Asm-Examples-Visual-Studio
c117ff7cb4df98b5b99f8d617138dbd991905b72
[ "MIT" ]
null
null
null
App32bitYasm1/test.asm
HJLebbink/Asm-Examples-Visual-Studio
c117ff7cb4df98b5b99f8d617138dbd991905b72
[ "MIT" ]
1
2020-11-06T12:59:56.000Z
2020-11-06T12:59:56.000Z
.intel_syntax noprefix .text # Code section #region entry testCode_linux testCode_linux: .global testCode_linux # extern "C" void testCode_linux( # unsigned long * const data, # const unsigned long long nItems1, # const unsigned long long nItems2, # const unsigned long long nItems3); # # testCode_linux(unsigned long * const data, const unsigned long long nItems1, const unsigned long long nItems2, const unsigned long long nItems3); # rdi <= data # rsi <= nItems1 # rdx <= nItems2 # rcx <= nItems3 # The calling convention of the System V AMD64 ABI[14] is followed on Solaris, Linux, FreeBSD, OS X, # and other UNIX-like or POSIX-compliant operating systems. The first six integer or pointer arguments # are passed in registers RDI, RSI, RDX, RCX, R8, and R9, while XMM0, XMM1, XMM2, XMM3, XMM4, XMM5, XMM6 # and XMM7 are used for floating point arguments. For system calls, R10 is used instead of RCX. # As in the Microsoft x64 calling convention, additional arguments are passed on the stack and the # return value is stored in RAX. # # shuffle the registers to be equal to windows ABI mov r9, rcx mov rcx, rdi mov r8, rdx mov rdx, rsi #endregion #region entry testCode_windows testCode_windows: .global testCode_windows # extern "C" void testCode_windows( # unsigned long * const data, # const unsigned long long nItems1, # const unsigned long long nItems2, # const unsigned long long nItems3) # # rcx <= data # rdx <= nItems1 # r8 <= nItems2 # r9 <= nItems3 # The Microsoft x64 calling convention uses registers RCX, RDX, R8, R9 for the first four integer or # pointer arguments (in that order), and XMM0, XMM1, XMM2, XMM3 are used for floating point arguments. # Additional arguments are pushed onto the stack (right to left). Integer return values (similar to x86) # are returned in RAX if 64 bits or less. Floating point return values are returned in XMM0. Parameters # less than 64 bits long are not zero extended; the high bits are not zeroed. # #endregion #region PROLOG #--------------------------------------------------------------------- sub rsp, 8*8 mov qword ptr [rsp+0*8], r15 mov qword ptr [rsp+1*8], r14 mov qword ptr [rsp+2*8], r13 mov qword ptr [rsp+3*8], r12 mov qword ptr [rsp+4*8], rbx mov qword ptr [rsp+5*8], rdi mov qword ptr [rsp+6*8], rsi mov qword ptr [rsp+7*8], rbp #endregion PROLOG: #region PAYLOAD #--------------------------------------------------------------------- # int 3 mov r15, rdx imul r15, r8 imul r15, r9 test r15, r15 jz EPILOG .align 16 MY_LOOP: dec r15 mov dword ptr [rcx + 4*r15], r15d jnz MY_LOOP #endregion payload #region EPILOG #--------------------------------------------------------------------- EPILOG: mov r15, qword ptr [rsp+0*8] mov r14, qword ptr [rsp+1*8] mov r13, qword ptr [rsp+2*8] mov r12, qword ptr [rsp+3*8] mov rbx, qword ptr [rsp+4*8] mov rdi, qword ptr [rsp+5*8] mov rsi, qword ptr [rsp+6*8] mov rbp, qword ptr [rsp+7*8] add rsp, 8*8 ret #endregion .att_syntax
30.567308
147
0.632589
e2072923a859d7f00ac558f080eb5af63acd0550
45,513
asm
Assembly
Library/Config/Toc/tocCategory.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Config/Toc/tocCategory.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Config/Toc/tocCategory.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: tocCategory.asm AUTHOR: Chris Boyke ROUTINES: Name Description ---- ----------- TocLockCategoryArray Return the category array. TocFindCategory Find a category in the TOC file, loading the TocCategoryStructure if found. TocFindCategoryCB Callback routine to find the category in the category array. TocUpdateCategory Create the category if it doesn't exist, and update the file lists by scanning the current directory for files. TocCreateCategory Create a new TOC category. TocUpdateFiles Update the file list for a category. TocUpdateDeviceDrivers Preform the file update for device drivers. TocUpdateNormalFiles Update the non-device drivers list. TocHugeArrayUnlock Unlock the current array element. StoreTocFileStructInfo Copy the pertinent data into a TocFileStruct. CheckReleaseNumber Check the release number of the file in the array and see if it matches that of the one on disk. If not, delete it from the array. TocHugeArrayLock Lock the TOC huge array element. TocAddFileCB Standard routine to add a file to the SortedNameArray of files. TocHugeArrayEnum Enumerate the huge array. TocRemoveExtraFilesCB Callback routine to nuke a file from the TOC array if it's not in the current directory. TocDeleteFileFromArray Delete this file from the array, and delete all devices that correspond to this file, if necessary. TocHugeArrayDelete Delete this element from the array. GetFileSourceDisk Return the SOURCE DISK number of the current element in the files array. GetFileName Return the filename from the array element. TocLocateFiles Locate the drivers with the given token. TocProcessDriver Go through the device list for this driver, adding each name to the devices array. TocLoadExtendedInfo Load the DriverExtendedInfoTable block for the driver, if it exists. TocMapPrinterInfo Map the word of info stored in the printer driver's table into something we can use -- the PrinterConnections record for the device. REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 10/29/92 Initial version. pjc 1/26/95 Made multi-language compatible. DESCRIPTION: $Id: tocCategory.asm,v 1.1 97/04/04 17:50:59 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TocLockCategoryArray %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Return the category array. CALLED BY: (internal) TocFindCategory, TocUpdateCategory PASS: nothing RETURN: *ds:si - Chunk array of TocCategoryStruct structures DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 10/29/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TocLockCategoryArray proc near uses ax, di .enter ; Lock the map block and fetch the category array. call TocDBLockMap mov si, ds:[si] movdw axdi, ds:[si].TM_categories call TocDBUnlock ; Lock the category array. call TocDBLock .leave ret TocLockCategoryArray endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TOCFINDCATEGORY %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Find a category in the Toc file CALLED BY: GLOBAL PARAMETERS: Boolean (TocCategoryStruct *cat) RETURN: TRUE if category found SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 4/ 9/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SetGeosConvention TOCFINDCATEGORY proc far cat:fptr.TocCategoryStruct uses es, di .enter les di, ss:[cat] call TocFindCategory .leave ret TOCFINDCATEGORY endp SetDefaultConvention COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TocFindCategory %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Find a category in the TOC file, loading the TocCategoryStructure if found. CALLED BY: GLOBAL: TocUpdateCategory PASS: es:di - TocCategoryStruct buffer (TCS_tokenChars MUST already be filled in -- the other fields will be filled in by this routine) RETURN: carry SET if not found, carry clear otherwise DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 5/ 6/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TocFindCategory proc far uses ax, bx, cx, dx, es, di, ds, si .enter ; Lock down the category array. call TocLockCategoryArray ; *ds:si - categories ; Check if our category is in the array. mov cx, {word} es:[di].TCS_tokenChars mov dx, {word} es:[di].TCS_tokenChars+2 push es, di mov bx, cs mov di, offset TocFindCategoryCB clr ax call ChunkArrayEnum pop es, dx cmc jc done ; Our category was not found. ; Our category was found: copy the TocCategoryStruct into the ; return buffer. push si call ChunkArrayElementToPtr mov si, di mov di, dx mov cx, size TocCategoryStruct rep movsb pop si clc done: ; Unlock the category array. call TocDBUnlock .leave ret TocFindCategory endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TocFindCategoryCB %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Callback routine to find the category in the category array. CALLED BY: TocFindCategory PASS: cx:dx - TokenChars to find ax - current element number ds:di - current TocCategoryStruct RETURN: if found: carry set else carry clear ax - next element number DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 10/28/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TocFindCategoryCB proc far .enter cmp {word} ds:[di].TCS_tokenChars, cx jne notFound cmp {word} ds:[di].TCS_tokenChars+2, dx stc je done notFound: clc inc ax done: .leave ret TocFindCategoryCB endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TOCUPDATECATEGORY %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Create the category if it doesn't exist, and update the file lists by scanning the current directory for files. CALLED BY: GLOBAL PARAMETERS: void (TocUpdateCategoryParams *) RETURN: nothing SIDE EFFECTS: The category is created or overwritten with new data. PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 4/ 9/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SetGeosConvention TOCUPDATECATEGORY proc far passedParams:fptr.TocUpdateCategoryParams passedDS local sptr push ds params local TocUpdateCategoryParams ForceRef passedDS ; used in callback uses ds, si .enter lds si, ss:[passedParams] CheckHack <TUCP_flags eq 0> lodsw mov ss:[params].TUCP_flags, ax CheckHack <TUCP_tokenChars eq 2> lodsw mov {word}ss:[params].TUCP_tokenChars[0], ax lodsw mov {word}ss:[params].TUCP_tokenChars[2], ax CheckHack <TUCP_fileArrayElementSize eq 6> lodsb mov ss:[params].TUCP_fileArrayElementSize, al mov ss:[params].TUCP_addCallback.offset, offset __TOCUPDATECATEGORY_callback mov ss:[params].TUCP_addCallback.segment, cs push bp add bp, offset params call TocUpdateCategory pop bp .leave ret TOCUPDATECATEGORY endp SetDefaultConvention COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% __TOCUPDATECATEGORY_callback %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Callback function to call the real callback function CALLED BY: TOCUPDATECATEGORY via TocUpdateCategory PASS: es:di = filename to add *ds:si = array to which to add it RETURN: carry clear if new element added ds:di = pointer to new element carry set if add aborted DESTROYED: ax, bx, cx, dx, bp, es allowed SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 4/ 9/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ __TOCUPDATECATEGORY_callback proc far uses es .enter inherit TOCUPDATECATEGORY ; ; Re-establish TOCUPDATECATEGORY's frame pointer so we can get to ; things. ; push bp mov bp, ss:[bp] ; bp <- bp we passed into ; TocUpdateCategory sub bp, offset params ; bp <- frame pointer for ; TOCUPDATECATEGORY ; ; Save the handle for DS away so we can dereference it after the ; callback is done. ; mov bx, ds:[LMBH_handle] push bx ; ; Call the callback. ; push es, di, bx, si ; Pass filename & optr of array. mov ds, ss:[passedDS] ; Reload DS it's expecting les di, ss:[passedParams] movdw bxax, es:[di].TUCP_addCallback call ProcCallFixedOrMovable ; ; Restore DS ; pop bx call MemDerefDS mov_tr di, ax ; ds:di <- new element tst_clc di jnz done ; => add successful stc ; signal add aborted done: pop bp .leave ret __TOCUPDATECATEGORY_callback endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TocUpdateCategory %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Create the category if it doesn't exist, and update the file lists by scanning the current directory for files. CALLED BY: GLOBAL PASS: ss:bp - TocUpdateCategoryParams CWD set to the directory where the files should be RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TocUpdateCategory proc far uses ax,bx,cx,dx,di,si,ds,es params local nptr.TocUpdateCategoryParams push bp flags local TocUpdateCategoryFlags categoryBuf local TocCategoryStruct fileBuf local TocFileStruct deviceBuf local TocDeviceStruct lastPInfo local word lastPConn local PrinterConnections fileHandle local hptr driverType local word printerInfo local word printerConn local PrinterConnections fileEnumBuffer local hptr fileEnumCount local word curElement local word array local lptr enumPtr local nptr .enter ForceRef fileBuf ForceRef deviceBuf ForceRef lastPInfo ForceRef lastPConn ForceRef fileHandle ForceRef driverType ForceRef printerInfo ForceRef printerConn ForceRef fileEnumBuffer ForceRef fileEnumCount ForceRef curElement ForceRef array ForceRef enumPtr ; Gain exclusive access to the TOC file, just to be safe call LoadDSDGroup PSem ds, tocFileSem, TRASH_AX_BX ; Move the (passed) BP into our PARAMS structure mov bx, ss:[params] ; Copy the flags to local variable (we use them often). mov ax, ss:[bx].TUCP_flags ECCheckFlags ax, TocUpdateCategoryFlags mov ss:[flags], ax ; See if the caller has a custom callback routine to add file ; array elements, or if we should just use the default one test ax, mask TUCF_ADD_CALLBACK jnz gotCallback mov ss:[bx].TUCP_addCallback.segment, cs mov ss:[bx].TUCP_addCallback.offset, offset TocAddFileCB gotCallback: ; Copy the token chars to local variable. mov cx, {word} ss:[bx].TUCP_tokenChars mov {word} ss:[categoryBuf].TCS_tokenChars, cx mov dx, {word} ss:[bx].TUCP_tokenChars+2 mov {word} ss:[categoryBuf].TCS_tokenChars+2, dx ; Check if the category exists in the TOC file. If so, fill ; in the TocCategoryStruct. segmov es, ss lea di, ss:[categoryBuf] call TocFindCategory jnc gotCategory ; Category does not exist. Create it. call TocCreateCategory gotCategory: ; If the TUCF_DIRECTORY_NOT_FOUND flag is set, then skip the ; file update. test ss:[flags], mask TUCF_DIRECTORY_NOT_FOUND jnz done call TocUpdateFiles ; update the files for this ; category done: ; Flush any changes that may have been made, and then release ; the semaphore call LoadDSDGroup mov bx, ds:[tocFileHandle] call VMUpdate VSem ds, tocFileSem, TRASH_AX_BX .leave ret TocUpdateCategory endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TocCreateCategory %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Create a new TOC category CALLED BY: (internal) TocUpdateCategory PASS: ss:bp - inherited local vars RETURN: nothing DESTROYED: ax,bx,cx,dx,si,di,bp,ds,es PSEUDO CODE/STRATEGY: Update the TocCategoryStruct on the stack KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 10/28/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TocCreateCategory proc near .enter inherit TocUpdateCategory ; See if we're dealing with device drivers or just plain old ; files. test ss:[flags], mask TUCF_EXTENDED_DEVICE_DRIVERS jnz deviceDrivers ; Not device drivers, so allocate a sorted name array as the ; "files" array. If the custom size flag is set, then use ; that size test ss:[flags], mask TUCF_CUSTOM_FILES mov bx, size TocFileStruct jz gotSize mov bx, ss:[params] mov bl, ss:[bx].TUCP_fileArrayElementSize clr bh gotSize: ; Create a sorted name array in the TOC file for driver filenames. call TocAllocSortedNameArray ; ax:di - files array jmp addIt deviceDrivers: ; Create a sorted name array in the TOC file for devices. mov bx, size TocDeviceStruct ; elements for device name ; array. call TocAllocSortedNameArray movdw ss:[categoryBuf].TCS_devices, axdi ; Create a name array in the TOC file for the driver filenames. mov bx, size TocFileStruct call TocAllocNameArray addIt: ; ax:di - dbptr to files array movdw ss:[categoryBuf].TCS_files, axdi ; Add a new category to the array. call TocLockCategoryArray ; *ds:si - categories array call ChunkArrayAppend ; ds:di - new ; TocCategoryStruct ; Copy the category data off the stack segmov es, ds segmov ds, ss lea si, ss:[categoryBuf] mov cx, size TocCategoryStruct rep movsb ; Unlock (using DBUnlock) since ES is the segment call DBDirty call DBUnlock .leave ret TocCreateCategory endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TocUpdateFiles %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Update the file list for a category CALLED BY: TocUpdateCategory PASS: ss:bp (local frame) TocUpdateVars RETURN: nothing DESTROYED: ax,bx,cx,dx,si,di,es,ds PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TocUpdateFiles proc near .enter inherit TocUpdateCategory ; Search for the files, & store the enum buffer in our local ; variable frame. ; Find all files that match our token characters. lea bx, ss:[categoryBuf].TCS_tokenChars call TocLocateFiles ; Remember the returned file information. mov ss:[fileEnumCount], cx mov ss:[fileEnumBuffer], bx ; Do we have extended device drivers? test ss:[flags], mask TUCF_EXTENDED_DEVICE_DRIVERS jz notDeviceDrivers ; Update device drivers. call TocUpdateDeviceDrivers jmp freeBuffer notDeviceDrivers: call TocUpdateNormalFiles freeBuffer: ; Free the file information. mov bx, ss:[fileEnumBuffer] tst bx jz done call MemFree done: .leave ret TocUpdateFiles endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TocUpdateDeviceDrivers %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Perform the file update for device drivers CALLED BY: TocUpdateFiles PASS: es - segment of FileEnum buffer cx - number of files in array ss:bp - inherited local vars RETURN: nothing DESTROYED: ax,bx,cx,dx,si,di,ds PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 5/ 6/93 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TocUpdateDeviceDrivers proc near uses bp .enter inherit TocUpdateCategory movdw axdi, ss:[categoryBuf].TCS_files call TocDBLock ; *ds:si - files array ; Preserve chunk array handle for called routines mov ss:[array], si jcxz secondPass call MemLock mov es, ax clr di ; Loop thru the files, adding them to our array if need be startLoop: ; The array is in *ds:si the whole time. For each entry in ; the FileEnum buffer, we see if that entry's in the array, ; and if not, we add it. If it is, then we check release ; numbers, and if they don't match, we delete it, and re-add ; it. We store the release number data on the stack when ; adding, because NameArrayAdd takes a pointer to the buffer. push cx ; loop counter ; ; es:di - filename ; ss:dx - pointer to TocFileStruct ; *ds:si - files array ; cx - loop count ; ; See if the name's in the array. Name is null-terminated, ; and we don't want to fetch the data, so clear CX and DX clr cx, dx call NameArrayFind cmp ax, CA_NULL_ELEMENT je addNew ; It's in the array, but it might be out of date, so... push si push di call ChunkArrayElementToPtr lea si, ds:[di].NAE_data pop di mov_tr dx, ax ; element # call CheckReleaseNumber pop si jnc next addNew: push ds segmov ds, ss lea bx, ss:[fileBuf] call StoreTocFileStructInfo pop ds mov dx, ss mov_tr ax, bx ; dx:ax - TocFileStruct clr bx, cx call NameArrayAdd ; ax <- driver element # in ; array ; Now, add all the devices to the device array (SortedNameArray) mov ss:[deviceBuf].TDS_driver, ax call TocProcessDriver next: add di, size TocFileReturnAttrs pop cx loop startLoop secondPass: ; Second pass -- for any files in the files array that AREN'T ; in the current directory, and we don't have source disk ; information for that file -- delete the element from the ; files array. mov bx, cs mov di, offset TocRemoveExtraFilesCB clr dx ; element number call ChunkArrayEnum call TocDBUnlock .leave ret TocUpdateDeviceDrivers endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TocUpdateNormalFiles %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Update the non-device drivers list CALLED BY: TocUpdateFiles PASS: es:di - first TocFileReturnAttrs struct to look at cx - number of files in array RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 5/ 6/93 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TocUpdateNormalFiles proc near uses ax,bx,cx,dx,di,si .enter inherit TocUpdateCategory jcxz secondPass call MemLock mov es, ax clr ss:[enumPtr] startLoop: push cx ; loop counter segmov ds, es mov si, ss:[enumPtr] mov di, {word} ss:[categoryBuf].TCS_files clr bx, cx call TocSortedNameArrayFind jnc addNew ; Check the release number of the array element with that in ; the FileEnum buffer push ax ; element # call TocHugeArrayLock pop dx ; element # mov di, ss:[enumPtr] call CheckReleaseNumber call HugeArrayUnlock jnc next addNew: ; Add it. Before we call the callback, VMUpdate the thing to ; disk, so that if GEOS crashes, the TOC file won't be corrupt. call TocGetFileHandle call VMUpdate mov si, ss:[enumPtr] segmov ds, es mov di, {word} ss:[categoryBuf].TCS_files mov bx, ss:[params] call ss:[bx].TUCP_addCallback jc next ; ax - new element -- store release number and source disk call TocHugeArrayLock EC < tst ax > EC < ERROR_Z INVALID_ELEMENT_NUMBER_RETURNED_BY_CALLBACK > mov bx, si ; ds:bx - destination mov di, ss:[enumPtr] call StoreTocFileStructInfo call TocHugeArrayUnlock next: add ss:[enumPtr], size TocFileReturnAttrs pop cx loop startLoop secondPass: ; ; Second pass -- for any files in the files array that AREN'T ; in the current directory, and we don't have source disk ; information for that file -- delete the element from the ; files array. ; mov di, {word} ss:[categoryBuf].TCS_files mov bx, cs mov ax, offset TocRemoveExtraFilesCB call TocHugeArrayEnum .leave ret TocUpdateNormalFiles endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TocHugeArrayUnlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: unlock the current array element CALLED BY: TocUpdateFiles PASS: ds - segment of block to be unlocked RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 5/ 6/93 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TocHugeArrayUnlock proc near uses bx .enter call TocGetFileHandle call HugeArrayUnlock .leave ret TocHugeArrayUnlock endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% StoreTocFileStructInfo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Copy the pertinent data into a TocFileStruct CALLED BY: TocUpdateFiles PASS: ds:bx - destination buffer es:di - source TocFileReturnAttrs RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 2/12/93 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ StoreTocFileStructInfo proc near uses ax .enter EC < xchg si, bx > EC < call ECCheckBounds > EC < xchg si, bx > ifndef TOC_ONLY EC < call ECCheckBoundsESDI > endif mov ds:[bx].TFS_sourceDisk, DT_UNKNOWN IRP var, <RN_major, RN_minor, RN_change> mov ax, es:[di].TFRA_release.&var mov ds:[bx].TFS_release.&var, ax endm .leave ret StoreTocFileStructInfo endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CheckReleaseNumber %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Check the release number of the file in the array and see if it matches that of the one on disk. If not, delete it from the array CALLED BY: TocUpdateFiles PASS: ds:si - TocFileStruct to look at es:di - TocFileReturnAttrs ss:bp - inherited local vars dx - element number of current element in array RETURN: carry SET if element deleted DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: XXX: Maybe we should only delete this element if the stored release number is OLDER than the file's For now, is only used with device drivers, etc. REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 2/11/93 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CheckReleaseNumber proc near uses ax,bx,cx,dx,di,si .enter inherit TocUpdateCategory ; ; Just compare the Major/Minor, and CHANGE numbers, as the ; "Engineering" number changes too frequently. ; lea si, ds:[si].TFS_release lea di, es:[di].TFRA_release mov cx, (size RN_major + size RN_minor + size RN_change)/2 repe cmpsw je done call TocDeleteFileFromArray stc done: .leave ret CheckReleaseNumber endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TocHugeArrayLock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Lock the TOC huge array element CALLED BY: TocUpdateFiles PASS: di - VM handle of array ax - element # to lock RETURN: ds:si - element DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 5/ 5/93 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TocHugeArrayLock proc near uses bx,dx .enter call TocGetFileHandle clr dx call HugeArrayLock ; ds:si - element .leave ret TocHugeArrayLock endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TocAddFileCB %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Standard routine to add a file to the SortedNameArray of files CALLED BY: TocUpdateFiles PASS: di - VM handle of SortedNameArray ds:si - name to add RETURN: ax - element number DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 2/11/93 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TocAddFileCB proc far uses bx, cx .enter inherit TocUpdateCategory ; ; Add the new element, but don't store any data, as that's up ; to the caller. ; clr bx, cx call TocSortedNameArrayAdd clc ; signify that we added it .leave ret TocAddFileCB endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TocHugeArrayEnum %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Enumerate the huge array CALLED BY: TocUpdateFiles, TocRemoveExtraFilesCB PASS: di - VM handle of array ax - offset of callback routine in this segment RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: Use AX as a counter to the current element KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 5/ 4/93 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TocHugeArrayEnum proc near uses bx, di, ax, dx .enter call TocGetFileHandle push bx ; file handle push di ; VM handle push cs, ax ; callback clr ax push ax, ax ; first element dec ax push ax, ax ; do 'em all clr dx ; element counter call HugeArrayEnum .leave ret TocHugeArrayEnum endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TocRemoveExtraFilesCB %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Callback routine to nuke a file from the TOC array if it's not in the current directory CALLED BY: TocUpdateFiles via ChunkArrayEnum (or HugeArrayEnum) PASS: ss:bp - inherited local vars ds:di - array element for current entry ax - size of current element dx - element number (*ds:si - chunk array, if called via ChunkArrayEnum) RETURN: dx - incremented DESTROYED: ax,bx,cx,si,di,es PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 10/28/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TocRemoveExtraFilesCB proc far .enter inherit TocUpdateCategory mov ss:[curElement], di ; ; If this file is on a source disk somewhere, then scram ; call GetFileSourceDisk cmp bx, DT_UNKNOWN jne done ; ; Look for the file in the FileEnum buffer, if there is one. ; call GetFileName ; ds:si - current filename ; ax - name length mov cx, ss:[fileEnumCount] jcxz notFound mov bx, ss:[fileEnumBuffer] call MemDerefES clr di ; ; Go thru all the files in the FileEnum buffer until we find ; this one. ; startLoop: ; ; ds:si - name of array element ; ax - string length ; es:di - name of file on disk ; cx - number of remaining files to look at ; mov bx, di SBCS < tst <{char} es:[di]> > DBCS < tst <{wchar} es:[di]> > jz next ; ; To compare this filename, we compare (ax) bytes. If they're ; equal, then we make sure the next byte at es:di is null. ; push cx, si mov cx, ax SBCS < repe cmpsb > DBCS < repe cmpsw > pop cx, si jne next SBCS < tst <{char} es:[di]> > DBCS < tst <{wchar} es:[di]> > jnz next ; ; They're equal. We'll never have to look at this file again, ; so nuke its first byte. ; SBCS < mov {char} es:[bx], 0 > DBCS < mov {wchar} es:[bx], 0 > jmp done next: mov di, bx add di, size TocFileReturnAttrs loop startLoop notFound: ; ; This file is no longer on the disk, so delete it from the ; files array and the devices array ; mov di, ss:[curElement] call TocDeleteFileFromArray ; ; If the thing being deleted is a device driver, then we DO ; want to increment DX in all cases, because the array is an ; element array, and elements don't actually get deleted, they ; just get freed. If the thing is NOT a device driver, then ; we don't want to increment the element number, since the ; element will actually have gotten deleted. ; test ss:[flags], mask TUCF_EXTENDED_DEVICE_DRIVERS jnz done ; ; Decrement DX so that it continues to point to this element number ; dec dx done: inc dx ; element number clc .leave ret TocRemoveExtraFilesCB endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TocDeleteFileFromArray %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Delete this file from the array, and delete all devices that correspond to this file, if necessary CALLED BY: TocRemoveExtraFilesCB, CheckReleaseNumber PASS: dx - element number in array ds - segment of array, if ChunkArray RETURN: nothing DESTROYED: ax,bx,cx,di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 2/11/93 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TocDeleteFileFromArray proc near uses dx, si, ds .enter inherit TocUpdateCategory mov_tr ax, dx ; current element # test ss:[flags], mask TUCF_EXTENDED_DEVICE_DRIVERS jnz deviceDrivers mov di, {word} ss:[categoryBuf].TCS_files call TocHugeArrayDelete jmp done ; ; The device drivers case is more complicated, since we need ; to remove the file, AND all devices that reference this file. ; deviceDrivers: mov si, ss:[array] call ElementArrayDelete call TocDBDirty mov_tr cx, ax ; driver # mov di, {word} ss:[categoryBuf].TCS_devices ; ; Remove all devices that point to this file. We can't use ; HugeArrayEnum, because it doesn't support deleting array ; elements, so just enumerate the thing by hand. This is ; probably way slow, but what can I do? ; clr ax, dx ; element number call TocGetFileHandle ; bx - file handle deviceLoop: push ax, cx, dx ; element #, driver # call HugeArrayLock ; ds:si - next element tst ax pop ax, cx, dx ; element #, driver # jz done cmp ds:[si].TDS_driver, cx call HugeArrayUnlock jne next push cx mov cx, 1 call HugeArrayDelete pop cx jmp deviceLoop next: inc ax jmp deviceLoop done: .leave ret TocDeleteFileFromArray endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TocHugeArrayDelete %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Delete this element from the array CALLED BY: TocDeleteFileFromArray PASS: di - VM handle of huge array ax - element number RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 5/ 4/93 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TocHugeArrayDelete proc near uses bx, cx, dx .enter mov cx, 1 call TocGetFileHandle clr dx call HugeArrayDelete .leave ret TocHugeArrayDelete endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetFileSourceDisk %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Return the SOURCE DISK number of the current element in the files array CALLED BY: TocRemoveExtraFilesCB PASS: ds:di - current element ss:bp - inherited local vars RETURN: bx - disk # DESTROYED: nothing PSEUDO CODE/STRATEGY: if TUCF_EXTENDED_DEVICE_DRIVERS is set, then we assume the array is a NAME ARRAY, and add the NAE_data offset. OTHERWISE, we don't add this offset KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 1/ 7/93 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetFileSourceDisk proc near uses di .enter inherit TocUpdateCategory test ss:[flags], mask TUCF_EXTENDED_DEVICE_DRIVERS jz gotOffset add di, offset NAE_data gotOffset: mov bx, ds:[di].TFS_sourceDisk .leave ret GetFileSourceDisk endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetFileName %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Return the filename from the array element CALLED BY: TocRemoveExtraFilesCB PASS: ds:di - array element ax - size of array element ss:bp - inherited local vars RETURN: ds:si - filename ax- length of filename DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 1/ 7/93 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetFileName proc near uses cx, bx .enter inherit TocUpdateCategory test ss:[flags], mask TUCF_EXTENDED_DEVICE_DRIVERS jz notDrivers ; ; For device drivers, the array is a NameArray, so fetch the ; data size, and add the NameArrayElement offset ; mov si, ds:[si] mov cx, ds:[si].NAH_dataSize add cx, offset NAE_data jmp gotSize notDrivers: push di mov di, {word} ss:[categoryBuf].TCS_files call TocSortedNameArrayGetDataSize pop di gotSize: mov si, di add si, cx sub ax, cx DBCS < shr ax, 1 ; # bytes -> # chars > DBCS < ERROR_C DBCS_ERROR > .leave ret GetFileName endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TocLocateFiles %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Locate the drivers with the given token. CALLED BY: TocUpdateFiles PASS: ss:bx - pointer to token chars if BX = 0, then don't use token chars RETURN: bx = handle of buffer created by FileEnum -- MUST BE FREED by caller. cx = number of matches found DESTROYED: ax,dx,si,di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 10/ 2/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TocFileReturnAttrs struct TFRA_name FileLongName TFRA_release ReleaseNumber TocFileReturnAttrs ends returnAttrs FileExtAttrDesc \ <FEA_NAME, offset TFRA_name, size TFRA_name>, <FEA_RELEASE, offset TFRA_release, size TFRA_release>, <FEA_END_OF_LIST> TocLocateFiles proc near ; DON'T add a USES directive to this procedure, and don't ; rearrange the order of the local variables. lastAttr local FileExtAttrDesc tokenAttr local FileExtAttrDesc enumParams local FileEnumParams .enter tst bx jz dontUseTokenChars ; Initialize the attribute description mov tokenAttr.FEAD_attr, FEA_TOKEN mov tokenAttr.FEAD_value.segment, ss mov tokenAttr.FEAD_value.offset, bx ; Only compare TOKEN_CHARS_LENGTH chars mov tokenAttr.FEAD_size, TOKEN_CHARS_LENGTH ; Set last attribute mov lastAttr.FEAD_attr, FEA_END_OF_LIST ; Search for GEOS files that have the specified token mov enumParams.FEP_matchAttrs.segment, ss lea ax, tokenAttr mov enumParams.FEP_matchAttrs.offset, ax jmp afterToken dontUseTokenChars: clrdw ss:[enumParams].FEP_matchAttrs afterToken: mov enumParams.FEP_searchFlags, mask FESF_GEOS_EXECS or \ mask FESF_GEOS_NON_EXECS if _FXIP ; Copy returnAttrs to the stack, so they don't get mapped out when ; calling FileEnum on an XIP system push ds, si, cx segmov ds, cs mov si, offset returnAttrs mov cx, size returnAttrs call SysCopyToStackDSSI movdw enumParams.FEP_returnAttrs, dssi pop ds, si, cx else mov enumParams.FEP_returnAttrs.segment, cs mov enumParams.FEP_returnAttrs.offset, offset returnAttrs endif mov enumParams.FEP_returnSize, size TocFileReturnAttrs mov enumParams.FEP_bufSize, FE_BUFSIZE_UNLIMITED mov enumParams.FEP_skipCount, 0 ; Seek and maybe ye shall find. call FileEnum if _FXIP call SysRemoveFromStack endif .leave ret TocLocateFiles endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TocProcessDriver %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Go through the device list for this driver, adding each name to the devices array. CALLED BY: TocLocateFiles PASS: es:di - filename ss:bp - (local) TocUpdateVars RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: add all the devices for this driver to the device array. KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 5/ 7/92 copied from PrefProcessDriver %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TocProcessDriver proc near uses ax,bx,cx,dx,si,di,es,ds .enter inherit TocUpdateCategory ; Nuke cached data (if dealing with printers) mov ss:[printerInfo], -1 segmov ds, es mov dx, di mov al, FileAccessFlags <FE_DENY_WRITE, FA_READ_ONLY> call FileOpen jc done mov ss:[fileHandle], ax call TocLoadExtendedInfo jc done push bx mov ss:[driverType], ax ; bx - handle of extended info segment deviceLoop: ; ; ds:si - name table ; ds:dx - info table lodsw ; *ds:ax - device string mov_tr di, ax ;*ds:di <- device string xchg si, dx ;si <- infoTable, dx <- nameTable lodsw ; ax - info word push si, cx, dx ; info table, loop count, name table mov si, ds:[di] ;ds:si <- device string ; Initialize the TocDeviceStruct cmp ss:[driverType], DRIVER_TYPE_PRINTER jne storeInfo push bx mov bx, ss:[fileHandle] call TocMapPrinterInfo pop bx storeInfo: ; Add this device to the array. If it's already there, then ; set the data, as it may have changed (?) mov ss:[deviceBuf].TDS_info, ax mov di, {word} ss:[categoryBuf].TCS_devices mov cx, ss lea dx, ss:[deviceBuf] mov bx, mask NAAF_SET_DATA_ON_REPLACE call TocSortedNameArrayAdd pop si, cx, dx ; info table, loop count, name table xchg si, dx ; si <- nameTable, dx <- infoTable loop deviceLoop ; All devices entered. Free the info block. pop bx call MemFree mov bx, ss:[fileHandle] clr al ; pretend we'll handle any errors call FileClose done: .leave ret TocProcessDriver endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TocLoadExtendedInfo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Load the DriverExtendedInfoTable block for the driver, if it exists. CALLED BY: TocProcessDriver PASS: ax = file handle of the driver RETURN: carry set if driver doesn't contain valid extended-driver info carry clear if driver is ok: ds = segment of locked DriverExtendedInfoTable ax = DriverType for the driver bx = handle of locked DriverExtendedInfoTable cx = number of devices dx = offset of info table in ds si = offset of name table in ds DESTROYED: es PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 10/11/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TocLoadExtendedInfo proc near driverTab local fptr driverInfo local DriverExtendedInfoStruct .enter mov bx, ax ; Find the DriverExtendedInfoStruct and read in the resource ID ; of the extended info table clr cx mov dx, offset GFH_coreBlock.GH_driverTabOff mov al, FILE_POS_START call FilePos push ds segmov ds, ss lea dx, ss:[driverTab] mov cx, size driverTab clr al call FileRead jc popDSErrorCloseFile mov dx, ss:[driverTab].offset mov cx, ss:[driverTab].segment call GeodeFindResource jc popDSErrorCloseFile lea dx, ss:[driverInfo] mov cx, size driverInfo clr al call FileRead popDSErrorCloseFile: pop ds jc errorCloseFile test ss:[driverInfo].DEIS_common.DIS_driverAttributes, mask DA_HAS_EXTENDED_INFO jz errorCloseFile ; Locate the extended resource in the file, then allocate a block ; big enough to hold the whole thing. mov cx, ss:[driverInfo].DEIS_resource clr dx call GeodeSnatchResource mov ds, ax ; Load device descriptor info for caller. mov cx, ds:[DEIT_numDevices] mov si, ds:[DEIT_nameTable] mov dx, ds:[DEIT_infoTable] exit: mov ax, ss:[driverInfo].DEIS_common.DIS_driverType .leave ret errorCloseFile: clr al call FileClose stc jmp exit TocLoadExtendedInfo endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TocMapPrinterInfo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Map the word of info stored in the printer driver's table into something we can use -- the PrinterConnections record for the device. CALLED BY: TocProcessDriver PASS: ax = resource # of info from the printer driver's table bx = file handle of driver RETURN: ax = PrinterConnections word DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 10/11/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TocMapPrinterInfo proc near uses dx, cx, ds .enter inherit TocUpdateCategory ; ; See if the last info resource loaded was the same as this one. ; If so, we can just use the cached value ; cmp ss:[printerInfo], ax je loadFromCache mov ss:[printerInfo], ax ; ; Seek to PI_connect field of PrinterInfo for the device ; mov_tr cx, ax mov dx, offset PI_connect call GeodeFindResource segmov ds, ss lea dx, ss:[printerConn] ; buffer => DS:DX mov cx, size printerConn clr al call FileRead loadFromCache: mov al, ss:[printerConn] clr ah .leave ret TocMapPrinterInfo endp
22.497776
78
0.593413