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
a7477c60a4b68345fa64f74f6117def6dcd9c257
5,247
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1636.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_1636.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_1636.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r8 push %rcx push %rdi push %rsi lea addresses_WC_ht+0x4fcf, %rsi lea addresses_A_ht+0x1938f, %rdi nop nop nop nop nop inc %r12 mov $120, %rcx rep movsb cmp %r8, %r8 pop %rsi pop %rdi pop %rcx pop %r8 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %r15 push %rcx push %rdi push %rsi // REPMOV lea addresses_UC+0xe64f, %rsi lea addresses_A+0x1e9cf, %rdi clflush (%rsi) cmp $52116, %r15 mov $127, %rcx rep movsq cmp %rdi, %rdi // Load lea addresses_normal+0xa6fb, %r13 nop nop nop nop nop xor $23446, %r14 vmovups (%r13), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $1, %xmm0, %r10 nop sub %rsi, %rsi // REPMOV lea addresses_WT+0x93cf, %rsi lea addresses_D+0xa1cf, %rdi nop nop nop nop and %r13, %r13 mov $11, %rcx rep movsq nop sub $42586, %rdi // Store lea addresses_A+0x11bc3, %rcx nop nop nop nop and %r10, %r10 mov $0x5152535455565758, %r15 movq %r15, %xmm6 movups %xmm6, (%rcx) nop nop nop nop nop xor $14234, %rcx // Faulty Load lea addresses_WT+0x47cf, %rsi dec %r15 movb (%rsi), %r13b lea oracles, %rcx and $0xff, %r13 shlq $12, %r13 mov (%rcx,%r13,1), %r13 pop %rsi pop %rdi pop %rcx pop %r15 pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A', 'congruent': 9, 'same': False}} {'src': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_normal', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D', 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_A', 'size': 16, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}} {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
43.363636
2,999
0.659424
e58f36ec50021f1258cbda6e67ac2575f02a86a2
316
asm
Assembly
programs/oeis/133/A133893.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/133/A133893.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/133/A133893.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A133893: Numbers m such that binomial(m+3,m) mod 3 = 0. ; 6,7,8,15,16,17,24,25,26,33,34,35,42,43,44,51,52,53,60,61,62,69,70,71,78,79,80,87,88,89,96,97,98,105,106,107,114,115,116,123,124,125,132,133,134,141,142,143,150,151,152,159,160,161,168,169,170,177,178,179,186 mov $1,$0 div $1,3 mul $1,6 add $0,$1 add $0,6
35.111111
209
0.667722
15c0403a85b4a7e86cfb38563333f1932ff9ac85
781
asm
Assembly
oeis/338/A338979.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/338/A338979.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/338/A338979.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A338979: a(n) = Sum_{k=0..n} n^k * binomial(n,k) * Catalan(k). ; Submitted by Jon Maiga ; 1,2,13,199,5073,181776,8413021,478070020,32238960193,2517734880838,223558608409101,22248413487603887,2453271411779452369,296925818848604834448,39138393489232585787037,5581250331202285217569351,856182695406472437496803585,140595282922234695782098680030,24607955455788776529592714793869,4573332783297600153835699882351165,899453360462781552994139561516152401,186639740143482711735600273939926529640,40750408544035370386303322171825633130333,9338943890189736887237321054797913882887566 mov $1,1 mov $3,$0 mov $4,1 lpb $3 mul $1,$4 mul $1,$3 mul $1,2 mul $1,$0 add $5,$4 add $5,1 div $1,$5 div $2,2 add $2,$1 mul $2,2 sub $3,1 add $4,2 lpe mov $0,$2 div $0,2 add $0,1
31.24
484
0.78233
441121ee3750d71d40adc1931aeb181952886b60
705
asm
Assembly
programs/oeis/117/A117143.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/117/A117143.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/117/A117143.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A117143: Number of partitions of n in which any two parts differ by at most 3. ; 1,2,3,5,7,10,13,17,22,27,33,41,48,57,68,78,90,105,118,134,153,170,190,214,235,260,289,315,345,380,411,447,488,525,567,615,658,707,762,812,868,931,988,1052,1123,1188,1260,1340,1413,1494,1583,1665,1755,1854,1945,2045,2154,2255,2365,2485,2596,2717,2848,2970,3102,3245,3378,3522,3677,3822,3978,4146,4303,4472,4653,4823,5005,5200,5383,5579,5788,5985,6195,6419,6630,6855,7094,7320,7560,7815,8056,8312,8583,8840,9112,9400,9673,9962,10267,10557 mov $1,$0 mov $3,$0 lpb $1 sub $1,2 add $0,$1 mov $2,$1 max $2,0 seq $2,87278 ; Distance to nearest square is not greater than 1. add $0,$2 lpe add $0,$3 div $0,2 add $0,1
41.470588
438
0.714894
2c0b3c214f1859073d55477ab5371b2d3a11dd4e
3,070
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_9_1061.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_9_1061.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_9_1061.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %rcx push %rdi push %rsi lea addresses_UC_ht+0x6c33, %rsi lea addresses_UC_ht+0x1be27, %rdi nop nop lfence mov $2, %rcx rep movsb nop nop nop nop inc %rcx lea addresses_normal_ht+0xf29b, %rsi lea addresses_WT_ht+0xfd5b, %rdi nop add %r11, %r11 mov $8, %rcx rep movsl nop nop and %rdi, %rdi pop %rsi pop %rdi pop %rcx pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r14 push %r15 push %rax push %rdx // Store lea addresses_UC+0x11843, %r14 nop nop nop nop nop add %rdx, %rdx movb $0x51, (%r14) nop nop nop and %rdx, %rdx // Store lea addresses_US+0x4a73, %rdx nop nop nop add %rax, %rax mov $0x5152535455565758, %r14 movq %r14, %xmm6 vmovntdq %ymm6, (%rdx) nop nop nop nop cmp $43055, %rax // Store mov $0xa33, %rax nop nop nop nop nop add %r13, %r13 movw $0x5152, (%rax) nop nop nop nop add $34076, %r13 // Load lea addresses_UC+0xe3f3, %r15 nop nop nop nop cmp %r11, %r11 vmovups (%r15), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %r10 nop cmp $30186, %r14 // Store lea addresses_WT+0x14293, %r10 nop nop nop nop nop and $16232, %rax mov $0x5152535455565758, %r13 movq %r13, %xmm4 movups %xmm4, (%r10) nop nop nop and $11922, %r13 // Store mov $0x1a446400000006a3, %r15 add $39288, %rax mov $0x5152535455565758, %r11 movq %r11, %xmm1 vmovups %ymm1, (%r15) nop nop add %rdx, %rdx // Faulty Load lea addresses_UC+0xfb33, %r10 nop nop nop nop nop cmp $20285, %r15 movups (%r10), %xmm1 vpextrq $0, %xmm1, %r14 lea oracles, %rax and $0xff, %r14 shlq $12, %r14 mov (%rax,%r14,1), %r14 pop %rdx pop %rax pop %r15 pop %r14 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': True}} {'00': 9} 00 00 00 00 00 00 00 00 00 */
18.058824
151
0.647231
6dd863cbbcec0119db13f3a9e27b8b57c1f97473
5,632
asm
Assembly
mips/freertos/port_asm.asm
andrewandrepowell/axiplasma
3d97ee95188b9d3d4ba8d58883ed434404873657
[ "MIT" ]
5
2019-05-14T02:07:55.000Z
2021-12-06T01:21:57.000Z
mips/freertos/port_asm.asm
andrewandrepowell/axiplasma
3d97ee95188b9d3d4ba8d58883ed434404873657
[ "MIT" ]
null
null
null
mips/freertos/port_asm.asm
andrewandrepowell/axiplasma
3d97ee95188b9d3d4ba8d58883ed434404873657
[ "MIT" ]
1
2021-06-25T17:29:58.000Z
2021-06-25T17:29:58.000Z
.extern FreeRTOS_UserISR .extern pxCurrentTCB .extern InitStack .extern FreeRTOS_Yield .data .align 2 .globl FreeRTOS_SysCall .comm FreeRTOS_SysCall,4,0 .text .macro portSAVE_CONTEXT .set noreorder .set noat # FreeRTOS: Load source of interrupt and reset it. lui $26, %hi(FreeRTOS_SysCall) ori $26, %lo(FreeRTOS_SysCall) lw $27, 0($26) sw $0, 0($26) # Store the state of the CPU. addi $29, $29, -136 #adjust sp sw $1, 16($29) #at sw $2, 20($29) #v0 sw $3, 24($29) #v1 sw $4, 28($29) #a0 sw $5, 32($29) #a1 sw $6, 36($29) #a2 sw $7, 40($29) #a3 sw $8, 44($29) #t0 sw $9, 48($29) #t1 sw $10, 52($29) #t2 sw $11, 56($29) #t3 sw $12, 60($29) #t4 sw $13, 64($29) #t5 sw $14, 68($29) #t6 sw $15, 72($29) #t7 sw $16, 76($29) #s0 sw $17, 80($29) #s1 sw $18, 84($29) #s2 sw $19, 88($29) #s3 sw $20, 92($29) #s4 sw $21, 96($29) #s5 sw $22, 100($29) #s6 sw $23, 104($29) #s7 sw $24, 108($29) #t8 sw $25, 112($29) #t9 sw $31, 116($29) #lr mfc0 $26, $14 #C0_EPC=14 (Exception PC) bne $27, $0, portSAVE_CONTEXT_0 #Check if a system call occurred addi $26, $26, -4 #Backup one opcode on external interrupt j portSAVE_CONTEXT_1 nop portSAVE_CONTEXT_0: addi $26, $26, 4 #Skip to next opcode on system call portSAVE_CONTEXT_1: sw $26, 120($29) #pc mfhi $27 sw $27, 124($29) #hi mflo $27 sw $27, 128($29) #lo # The following statements were used for debugging purposes. #lui $27, 0x44A2 #ori $27, 0x0008 #sw $26, 0($27) # FreeRTOS: Store the state of the current task. lui $26, %hi(pxCurrentTCB) # Load the address to the current TCB pointer. ori $26, %lo(pxCurrentTCB) lw $26, 0($26) # Load the current TCB pointer. sw $29, 0($26) # Store the current task's stack pointer in its TCB. # FreeRTOS: Load the stack pointer for the CPU. lui $26, %hi(InitStack) # Load the address of the CPU stack pointer. ori $26, %lo(InitStack) lw $29, 0($26) # Load the CPU stack pointer. .set reorder .set at .endm .macro portRESTORE_CONTEXT .set noreorder .set noat # FreeRTOS: Save the stack pointer for the CPU. lui $26, %hi(InitStack) # Load the address of the CPU stack pointer. ori $26, %lo(InitStack) sw $29, 0($26) # Store the CPU stack pointer. # FreeRTOS: Load the stack pointer for the current task. lui $26, %hi(pxCurrentTCB) # Load the address to the current TCB pointer. ori $26, %lo(pxCurrentTCB) lw $26, 0($26) # Load the current TCB pointer. lw $29, 0($26) # Load the current task's stack pointer from its TCB. # Resore the state of the CPU with context of task. lw $1, 16($29) #at lw $2, 20($29) #v0 lw $3, 24($29) #v1 lw $4, 28($29) #a0 lw $5, 32($29) #a1 lw $6, 36($29) #a2 lw $7, 40($29) #a3 lw $8, 44($29) #t0 lw $9, 48($29) #t1 lw $10, 52($29) #t2 lw $11, 56($29) #t3 lw $12, 60($29) #t4 lw $13, 64($29) #t5 lw $14, 68($29) #t6 lw $15, 72($29) #t7 lw $16, 76($29) #s0 lw $17, 80($29) #s1 lw $18, 84($29) #s2 lw $19, 88($29) #s3 lw $20, 92($29) #s4 lw $21, 96($29) #s5 lw $22, 100($29) #s6 lw $23, 104($29) #s7 lw $24, 108($29) #t8 lw $25, 112($29) #t9 lw $31, 116($29) #lr lw $26, 120($29) #pc lw $27, 124($29) #hi mthi $27 lw $27, 128($29) #lo mtlo $27 addi $29, $29, 136 #adjust sp # The following statements were used for debugging purposes. #lui $27, 0x44A2 #ori $27, 0x0008 #sw $26, 0($27) # FreeRTOS: Enable the CPU interrupt. ori $27, $0, 0x1 #re-enable interrupts jr $26 mtc0 $27, $12 #STATUS=1; enable interrupts .set reorder .set at .endm .global pxPortInitialiseStack .ent pxPortInitialiseStack pxPortInitialiseStack: .set noreorder .set noat addi $2, $4, -136 # Determine next stack pointer. sw $5, 120($2) # Store the program counter of the task. jr $31 sw $6, 28($2) # Store the parameter pointer. .set reorder .set at .end pxPortInitialiseStack .global FreeRTOS_ISR .ent FreeRTOS_ISR FreeRTOS_ISR: .set noreorder .set noat # The following statements were used for debugging purposes. #lui $26, 0x44A2 #ori $26, 0x0008 #sw $2, 0($26) # Perform interrupt-related operations. portSAVE_CONTEXT # Save the context of the current task. jal FreeRTOS_UserISR # Jump to user-defined ISR. portRESTORE_CONTEXT # Restore context. The PC should be on register 26. nop .set reorder .set at .end FreeRTOS_ISR .global FreeRTOS_AsmInterruptInit .ent FreeRTOS_AsmInterruptInit FreeRTOS_AsmInterruptInit: .set noreorder la $8, FreeRTOS_AsmPatchValue lw $9, 0($8) sw $9, 0x3c($0) lw $9, 4($8) sw $9, 0x40($0) lw $9, 8($8) sw $9, 0x44($0) lw $9, 12($8) jr $31 sw $9, 0x48($0) FreeRTOS_AsmPatchValue: lui $26, %hi(FreeRTOS_ISR) ori $26, %lo(FreeRTOS_ISR) jr $26 nop .set reorder .end FreeRTOS_AsmInterruptInit .global vPortStartFirstTask .ent vPortStartFirstTask vPortStartFirstTask: .set noreorder # Set the context to the current task. portRESTORE_CONTEXT # Restore context. The PC should be on register 26. .set reorder .end vPortStartFirstTask .global vPortYield .ent vPortYield vPortYield: .set noreorder # Disable CPU interrupt. mtc0 $0, $12 addi $9, $0, 1 # Load source of interrupt and set it. lui $8, %hi(FreeRTOS_SysCall) ori $8, %lo(FreeRTOS_SysCall) sw $9, 0($8) # Load yield flag and set it. lui $8, %hi(FreeRTOS_Yield) ori $8, %lo(FreeRTOS_Yield) sw $9, 0($8) # Perform the system call syscall # Return to the calling function jr $31 nop .set reorder .end vPortYield
22.349206
74
0.628906
99e130e020ac4865cbcd64f98a6353d21e75ee7f
10,721
asm
Assembly
src/controller.asm
ViGrey/iss-nes
3ca87be0f7590893d0f6f9d8b5d5e77463de7792
[ "Unlicense" ]
23
2020-08-09T05:18:44.000Z
2021-04-24T23:37:12.000Z
src/controller.asm
ViGrey/iss-nes
3ca87be0f7590893d0f6f9d8b5d5e77463de7792
[ "Unlicense" ]
null
null
null
src/controller.asm
ViGrey/iss-nes
3ca87be0f7590893d0f6f9d8b5d5e77463de7792
[ "Unlicense" ]
null
null
null
; Copyright (C) 2020, Vi Grey ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions ; are met: ; ; 1. Redistributions of source code must retain the above copyright ; notice, this list of conditions and the following disclaimer. ; 2. Redistributions in binary form must reproduce the above copyright ; notice, this list of conditions and the following disclaimer in the ; documentation and/or other materials provided with the distribution. ; ; THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND ; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ; ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE ; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ; OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ; HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ; LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ; OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ; SUCH DAMAGE. ; Controller1 to Top Bar Data Protocol ; ; Bit 76543210 First Byte ($0500) ; ||||++++- Day Ones Digit ; ||++----- Day Tens Digit ; ++------- Hour Tens Digit ; ; Bit 76543210 Second Byte ($0501) ; ||||++++- Year Hundreds Digit ; ++++----- Year Thousands Digit ; ; Bit 76543210 Third Byte ($0502) ; ||||++++- Year Ones Digit ; ++++----- Year Tens Digit ; ; Bit 76543210 Fourth Byte ($0503) ; ||||++++- Month Offset Minus 1 ; ++++----- Hour Ones Digit ; ; Bit 76543210 Fifth Byte ($0504) ; ||||++++- Latitude Ones Digit ; |+++----- Latitude Tens Digit ; +-------- Longitude Hundreds Digit ; ; Bit 76543210 Sixth Byte ($0505) ; ||||++++- Latitude Hundredths Place ; ++++----- Latitude Tenths Place ; ; Bit 76543210 Seventh Byte ($0506) ; ||||++++- Longitude Ones Digit ; ++++----- Longitude Tens Digit ; ; Bit 76543210 Eighth Byte ($0507) ; ||||++++- Longitude Hundredths Place ; ++++----- Longitude Tenths Place ; ; Bit 76543210 Ninth Byte ($0508) ; ||||++++- Second Ones Digit ; |+++----- Second Tens Digit ; +-------- Latitude Hemisphere (0=North/1=South) ; ; Bit 76543210 Tenth Byte ($0509) ; ||||++++- Minute Ones Digit ; |+++----- Minute Tens Digit ; +-------- Longitude Hemisphere (0=East/1=West) SetDefaultDate: lda #$01 sta controller1 lda #$19 sta (controller1 + 1) lda #$70 sta (controller1 + 2) rts PollControllerSync: lda #$00 sta controllervalid ldx #$06 ldy #$08 PollControllerSyncLatch: lda #$01 sta CONTROLLER1 lda #$00 sta CONTROLLER1 PollControllerSyncLoop: lda CONTROLLER1 lsr rol controllersync dey bne PollControllerSyncLoop lda controllersync cmp #$FF beq PollControllerSyncLoopIsFF cpx #$06 beq PollControllerSyncContinue ; FF sync pulse is required at least once per frame lda #$01 sta controllervalid jmp PollControllerSyncContinue PollControllerSyncLoopIsFF: ldy #$08 dex bne PollControllerSyncLatch PollControllerSyncContinue: lda controllervalid beq PollControllerSyncInvalid lda controllersync sta controller1 ldx #$01 ldy #$08 jmp PollControllerLatch PollControllerSyncInvalid: jsr SetController1LastFrameToController1 PollControllerSyncDone: jsr PollControllerFinished rts PollController: ldx #$00 ldy #$08 PollControllerLatch: lda #$01 sta CONTROLLER1 lda #$00 sta CONTROLLER1 PollController1Loop: lda CONTROLLER1 lsr rol controller1, X dey bne PollController1Loop ldy #$08 inx cpx #$0A bne PollControllerLatch PollControllerFinished: jsr GetDate jsr GetTime jsr GetLatitude jsr GetLongitude jsr DrawDate jsr DrawTime jsr DrawLatitude jsr DrawLongitude jsr LatitudeToTmp jsr LatitudeToYPosition jsr LongitudeToTmp jsr LongitudeToXScroll rts GetHour: lda controller1 and #%11000000 asl rol rol sta hour lda (controller1 + 3) and #%11110000 lsr lsr lsr lsr sta (hour + 1) rts GetMinute: lda (controller1 + 9) and #%01110000 lsr lsr lsr lsr sta minute lda (controller1 + 9) and #%00001111 sta (minute + 1) rts GetSecond: lda (controller1 + 8) and #%01110000 lsr lsr lsr lsr sta second lda (controller1 + 8) and #%00001111 sta (second + 1) rts GetDay: lda controller1 and #%00110000 lsr lsr lsr lsr sta day lda controller1 and #%00001111 sta (day + 1) rts GetYear: lda (controller1 + 1) and #%11110000 lsr lsr lsr lsr sta year lda (controller1 + 1) and #%00001111 sta (year + 1) lda (controller1 + 2) and #%11110000 lsr lsr lsr lsr sta (year + 2) lda (controller1 + 2) and #%00001111 sta (year + 3) rts GetMonth: lda (controller1 + 3) and #%00001111 sta month asl clc adc month sta month rts GetDate: jsr GetDay jsr GetYear jsr GetMonth rts GetTime: jsr GetHour jsr GetMinute jsr GetSecond GetLatitude: lda (controller1 + 4) and #%01110000 lsr lsr lsr lsr sta lat lda (controller1 + 4) and #%00001111 sta (lat + 1) lda (controller1 + 5) and #%11110000 lsr lsr lsr lsr sta (lat + 2) lda (controller1 + 5) and #%00001111 sta (lat + 3) lda (controller1 + 8) and #%10000000 asl rol sta northsouth rts GetLongitude: lda (controller1 + 4) and #%10000000 asl rol sta lon lda (controller1 + 6) and #%11110000 lsr lsr lsr lsr sta (lon + 1) lda (controller1 + 6) and #%00001111 sta (lon + 2) lda (controller1 + 7) and #%11110000 lsr lsr lsr lsr sta (lon + 3) lda (controller1 + 7) and #%00001111 sta (lon + 4) lda (controller1 + 9) and #%10000000 asl rol sta eastwest rts DrawDate: ldy drawBufferOffset lda #$20 sta (drawBuffer), Y iny lda #$48 sta (drawBuffer), Y iny ldx month lda Months, X sta (drawBuffer), Y iny inx lda Months, X sta (drawBuffer), Y iny inx lda Months, X sta (drawBuffer), Y iny lda #$04 sta (drawBuffer), Y iny lda day clc adc #$E1 sta (drawBuffer), Y iny lda (day + 1) clc adc #$E1 sta (drawBuffer), Y iny lda #$04 sta (drawBuffer), Y iny lda year clc adc #$E1 sta (drawBuffer), Y iny lda (year + 1) clc adc #$E1 sta (drawBuffer), Y iny lda (year + 2) clc adc #$E1 sta (drawBuffer), Y iny lda (year + 3) clc adc #$E1 sta (drawBuffer), Y iny lda #$8E sta (drawBuffer), Y iny sty drawBufferOffset rts DrawTime: ldy drawBufferOffset lda #$20 sta (drawBuffer), Y iny lda #$68 sta (drawBuffer), Y iny lda hour adc #$E1 sta (drawBuffer), Y iny lda (hour + 1) clc adc #$E1 sta (drawBuffer), Y iny lda #$E0 sta (drawBuffer), Y iny lda minute clc adc #$E1 sta (drawBuffer), Y iny lda (minute + 1) clc adc #$E1 sta (drawBuffer), Y iny lda #$E0 sta (drawBuffer), Y iny lda second clc adc #$E1 sta (drawBuffer), Y iny lda (second + 1) clc adc #$E1 sta (drawBuffer), Y iny lda #$8E sta (drawBuffer), Y iny sty drawBufferOffset rts DrawLatitude: ldy drawBufferOffset lda #$20 sta (drawBuffer), Y iny lda #$88 sta (drawBuffer), Y iny lda lat clc adc #$E1 sta (drawBuffer), Y iny lda (lat + 1) clc adc #$E1 sta (drawBuffer), Y iny lda #$DF sta (drawBuffer), Y iny lda (lat + 2) clc adc #$E1 sta (drawBuffer), Y iny lda (lat + 3) clc adc #$E1 sta (drawBuffer), Y iny lda #$04 sta (drawBuffer), Y iny ldx northsouth lda NorthSouth, X sta (drawBuffer), Y iny lda #$8E sta (drawBuffer), Y iny sty drawBufferOffset rts DrawLongitude: ldy drawBufferOffset lda #$20 sta (drawBuffer), Y iny lda #$A7 sta (drawBuffer), Y iny lda lon beq DrawLongitudeNotHundred clc adc #$E1 jmp DrawLongitudeContinue DrawLongitudeNotHundred: lda #$04 DrawLongitudeContinue: sta (drawBuffer), Y iny lda (lon + 1) clc adc #$E1 sta (drawBuffer), Y iny lda (lon + 2) clc adc #$E1 sta (drawBuffer), Y iny lda #$DF sta (drawBuffer), Y iny lda (lon + 3) clc adc #$E1 sta (drawBuffer), Y iny lda (lon + 4) clc adc #$E1 sta (drawBuffer), Y iny lda #$04 sta (drawBuffer), Y iny ldx eastwest lda EastWest, X sta (drawBuffer), Y iny lda #$8E sta (drawBuffer), Y iny sty drawBufferOffset rts LatitudeToTmp: lda #$00 ldx lat LatitudeToTmpTensLoop: cpx #$00 beq LatitudeToTmpTensLoopDone clc adc #$0A dex jmp LatitudeToTmpTensLoop LatitudeToTmpTensLoopDone: clc adc (lat + 1) cmp #91 bcc LatitudeToTmpDone lda #$00 LatitudeToTmpDone: sta tmp rts LatitudeToYPosition: lda northsouth bne LatitudeToYPositionSouth lda #90 sec sbc tmp jmp LatitudeToYPositionContinue LatitudeToYPositionSouth: lda tmp clc adc #90 LatitudeToYPositionContinue: tay lda (Latitudes), Y sta $204 sta $208 sta $20C clc adc #$08 sta $210 sta $214 sta $218 rts LongitudeToTmp: lda #$00 ldx lon LongitudeToTmpHundredsLoop: beq LongitudeToTmpHundredsLoopDone clc adc #100 LongitudeToTmpHundredsLoopDone: ldx (lon + 1) LongitudeToTmpTensLoop: cpx #$00 beq LongitudeToTmpTensLoopDone clc adc #$0A dex jmp LongitudeToTmpTensLoop LongitudeToTmpTensLoopDone: clc adc (lon + 2) cmp #179 bcc LongitudeToTmpDone lda #179 LongitudeToTmpDone: sta tmp rts LongitudeToXScroll: lda eastwest beq LongitudeToXScrollEast lda #$00 sta nametable lda #179 sec sbc tmp jmp LongitudeToXScrollContinue LongitudeToXScrollEast: lda #$01 sta nametable lda tmp LongitudeToXScrollContinue: tay lda (Longitudes), Y sec sbc #$80 sta xscroll bcs LongitudeToXScrollDone lda nametable eor #%00000001 sta nametable LongitudeToXScrollDone: rts SetController1ToController1LastFrame: ldy #$00 SetController1ToController1LastFrameLoop: lda (controller1), Y sta (controller1LastFrame), Y iny cpy #$0A bcc SetController1ToController1LastFrameLoop rts SetController1LastFrameToController1: ldy #$00 SetController1LastFrameToController1Loop: lda (controller1LastFrame), Y sta (controller1), Y iny cpy #$0A bcc SetController1LastFrameToController1Loop rts
16.673406
76
0.656842
09a9de70d964a91b487f143bc4fcca2300490a86
272
asm
Assembly
libsrc/math/mbf32/c/sccz80/ldexp.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
libsrc/math/mbf32/c/sccz80/ldexp.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
libsrc/math/mbf32/c/sccz80/ldexp.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
SECTION code_fp_mbf32 PUBLIC ldexp ; float ldexpf (float x, int16_t pw2) ldexp: ld hl,2 add hl,sp ld c,(hl) ;pw2 ld hl,7 add hl,sp ;exponent ld a,(hl) and a jr z,skip add c skip: ld d,a dec hl ld e,(hl) dec hl ld a,(hl) dec hl ld l,(hl) ld h,a ret
10.074074
37
0.617647
fb19701b7e483e31025b2a6075bd898600b03a79
706
asm
Assembly
programs/oeis/236/A236632.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/236/A236632.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/236/A236632.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A236632: Sum of all divisors of all positive integers <= n minus the total number of divisors of all positive integers <= n. ; 0,1,3,7,11,19,25,36,46,60,70,92,104,124,144,170,186,219,237,273,301,333,355,407,435,473,509,559,587,651,681,738,782,832,876,958,994,1050,1102,1184,1224,1312,1354,1432,1504,1572,1618,1732,1786,1873,1941,2033,2085,2197,2265,2377,2453,2539,2597,2753,2813,2905,3003,3123,3203,3339,3405,3525,3617,3753,3823,4006,4078,4188,4306,4440,4532,4692,4770,4946,5062,5184,5266,5478,5582,5710,5826,5998,6086,6308,6416,6578,6702,6842,6958,7198,7294,7459,7609,7817 lpb $0 mov $2,$0 sub $0,1 seq $2,65608 ; Sum of divisors of n minus the number of divisors of n. add $1,$2 lpe mov $0,$1
64.181818
448
0.739377
800393fbcbfe78cd46b5dc908e049e0935b7baee
450
asm
Assembly
libsrc/video/tms9918/l_tms9918_disable_interrupts_nmi.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/video/tms9918/l_tms9918_disable_interrupts_nmi.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/video/tms9918/l_tms9918_disable_interrupts_nmi.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib PUBLIC l_tms9918_disable_interrupts PUBLIC l_tms9918_enable_interrupts PUBLIC __vdp_enable_status INCLUDE "video/tms9918/vdp.inc" l_tms9918_disable_interrupts: ld a,128 ld (__vdp_enable_status),a ret l_tms9918_enable_interrupts: xor a ld (__vdp_enable_status),a IF VDP_STATUS < 0 ld a,(-VDP_STATUS) ELSE ld a, VDP_STATUS / 256 in a,(VDP_STATUS % 256) ENDIF ret SECTION bss_clib __vdp_enable_status: defb 0
14.0625
36
0.786667
13fe9eccbb330f65a364f27b3aa4b4e3dc33a943
312
asm
Assembly
programs/oeis/011/A011919.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/011/A011919.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/011/A011919.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A011919: a(n) = floor(n*(n-1)*(n-2)*(n-3)/9). ; 0,0,0,0,2,13,40,93,186,336,560,880,1320,1906,2669,3640,4853,6346,8160,10336,12920,15960,19506,23613,28336,33733,39866,46800,54600,63336,73080,83906,95893,109120,123669,139626,157080,176120,196840,219336,243706,270053,298480 bin $0,4 mul $0,8 div $0,3 mov $1,$0
39
225
0.714744
eb8d9177a68b27119493ffb63e0ce3db87b55e65
53,618
asm
Assembly
Library/Swap/swap.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Swap/swap.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Swap/swap.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: Library -- Swap Driver Utilities FILE: swap.asm AUTHOR: Adam de Boor, Jun 17, 1990 ROUTINES: Name Description ---- ----------- SwapInit Initialize a swap map SwapWrite Write a block to the swap device. SwapRead Read a block from the swap device. SwapFree Free a list of pages from a block. SwapCompact Compact pages of a block. SwapLockDOS Grab the DOS/BIOS lock. SwapUnlockDOS Release the DOS/BIOS lock. REVISION HISTORY: Name Date Description ---- ---- ----------- Adam 6/17/90 Initial revision DESCRIPTION: Functions to manipulate a swap map to help out swap drivers... $Id: swap.asm,v 1.1 97/04/07 11:15:47 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ;------------------------------------------------------------------------------ ; Include files ;------------------------------------------------------------------------------ include geos.def include heap.def include geode.def ;------------------------------------------------------------------------------ ; FULL_EXECUTE_IN_PLACE : Indicates that the swap lib is going to ; be used in a system where all geodes (or most, at any rate) ; are to be executed out of ROM. ;------------------------------------------------------------------------------ ifndef FULL_EXECUTE_IN_PLACE FULL_EXECUTE_IN_PLACE equ FALSE endif ;------------------------------------------------------------------------------ ; The .GP file only understands defined/not defined; ; it can not deal with expression evaluation. ; Thus, for the TRUE/FALSE conditionals, we define ; GP symbols that _only_ get defined when the ; condition is true. ;----------------------------------------------------------------------------- if FULL_EXECUTE_IN_PLACE GP_FULL_EXECUTE_IN_PLACE equ TRUE endif if FULL_EXECUTE_IN_PLACE include Internal/xip.def endif include resource.def include ec.def include library.def include system.def DefLib Internal/swap.def include Internal/fileInt.def include sysstats.def ;for SysGetInfo include Internal/heapInt.def ;for internal SysGetInfo types and ; for HandleSwappedMem ;------------------------------------------------------------------------------ ; Constants ;------------------------------------------------------------------------------ SWAP_PAGE_LIST_TOO_LONG enum FatalErrors SWAP_LIST_DOESNT_COVER_BLOCK enum FatalErrors SWAP_LIST_CORRUPT enum FatalErrors NAUGHTY_PAGE_READ_ROUTINE enum FatalErrors KAFF_KAFF enum FatalErrors SWAP_COMPACT_UNEXPECTED_ERROR enum FatalErrors SWAP_COMPACT_CANNOT_ALLOCATE_TRANSFER_BUFFER enum FatalErrors SWAP_COMPACT_OUT_OF_PAGES_BELOW_LIMIT enum FatalErrors SWAP_FREE_LIST_CORRUPTED enum FatalErrors SWAP_COMPACT_BLOCK_IS_DISCARDABLE enum FatalErrors ; ; If CHECK_COMPACTION is turned on, the relocations for SwapCompact are ; checked for data integrity. A few Kbytes of extra buffers are allocated ; to make sure the data has not changed between before and after the ; compaction. ; CHECK_COMPACTION equ FALSE if CHECK_COMPACTION RELOC_CHECK_BLOCK_SIZE equ 5000 SWAP_COMPACT_CANNOT_ALLOC_RELOC_CHECK_BUFFER enum FatalErrors SWAP_COMPACT_RELOC_UNEXPECTED_ERROR enum FatalErrors SWAP_COMPACT_RELOC_DATA_CORRUPTED enum FatalErrors WARNING_RELOC_CHECK_NOT_COMPLETE_BEFORE enum Warnings WARNING_RELOC_CHECK_NOT_COMPLETE_AFTER enum Warnings endif ; ; Statistics gathering for swap space efficiency measurement. ; Set the following equate to TRUE to enable code to measure how efficiently ; the swap space is being used. This code causes the SwapMap block to be ; twice as large, but it should still be a reasonable size (couple of K) in ; most situations. There are TCL functions to display the statistics in a ; nice format. The extra word is used to store the actual #bytes being used ; in the page. GATHER_SWAP_STATS equ FALSE if GATHER_SWAP_STATS idata segment swapSegment sptr 0 idata ends endif idata segment KernelInMemory BooleanByte TRUE idata ends ;============================================================================== ; ; INTERFACE ROUTINES ; ;============================================================================== Init segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SwapEntry %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Do-nothing routine required b/c we're a library. CALLED BY: Kernel PASS: various and sundry RETURN: carry clear to indicate happiness DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 6/17/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SwapEntry proc far .enter clc .leave ret SwapEntry endp ForceRef SwapEntry ;Exported in .gp file as library entry pt COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SwapInit %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Initialize a swap map. CALLED BY: GLOBAL (swap driver) PASS: ax = number of pages handled by the driver bx = driver's handle cx = size of a page si:di = address of the page write routine dx:bp = address of the page read routine RETURN: ax = segment of the swap map bx = handle of the swap map carry set on error DESTROYED: cx, dx, bp, si, di, ax PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 6/17/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SwapInit proc far uses ds, es .enter if FULL_EXECUTE_IN_PLACE ; ; Make sure the fptr passed in is valid ; EC < pushdw bxsi > EC < movdw bxsi, sidi > EC < call ECAssertValidFarPointerXIP > EC < movdw bxsi, dxbp > EC < call ECAssertValidFarPointerXIP > EC < popdw bxsi > endif ; ; Allocate a fixed block to hold the SwapMap and attendant linked ; table. ; computeSize: push ax shl ax ; 1 word per page handled jc tooBig if GATHER_SWAP_STATS shl ax, 1 ; 1 more word for stats gathering jc tooBig endif add ax, size SwapMap jc tooBig push cx mov cx, ALLOC_FIXED call MemAllocSetOwner if GATHER_SWAP_STATS mov cx, dgroup ; save away segment so we mov ds, cx ; can find it later from mov ds:[swapSegment], ax ; TCL. endif pop cx jc errorPopAX ; ; Initialize the various fields. ; mov ds, ax mov es, ax mov ds:[SM_page], cx mov ds:[SM_read.offset], bp mov ds:[SM_read.segment], dx mov ds:[SM_write.offset], di mov ds:[SM_write.segment], si ; ; Initialize all the pages to free. ; pop ax mov ds:[SM_total], ax mov ds:[SM_numFree], ax mov di, offset SM_pages mov ds:[SM_freeList], di xchg cx, ax ; (1-byte inst) initLoop: lea ax, es:[di+2] stosw loop initLoop mov {word}ds:[di-2], SWAPNIL ; Terminate... mov ax, ds clc done: .leave ret errorPopAX: pop ax jmp done tooBig: ; ; Cut the number of pages in half, so the map will fit in 64K ; pop ax shr ax jmp computeSize SwapInit endp Init ends Resident segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SwapFree %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Release a list of pages back to the swap map. CALLED BY: GLOBAL PASS: ax = swap map bx = head of list to free RETURN: nothing DESTROYED: ax PSEUDO CODE/STRATEGY: While in most cases the page list will be sorted by ascending file position, this will not be true in all cases, so we cannot assume it (e.g. if a write fails and earlier, non-clustered pages must be allocated for a block, the list will not be sorted). So the loop runs like this: bx <- page to free (in ax on entry) bx before first free page? - yes: store at front of page - no: si = first free page do { ax = next(si) } while (ax < bx) { si = ax } repeat; insert bx between si and ax ax = next page to free loop if not nil KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 12/ 9/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SwapFree proc far uses bx, si, ds .enter mov ds, ax xchg ax, bx ; ax <- first page pageLoop: ; ; Set up for loop. si = first entry in free list, bx = page being freed. ; mov si, ds:[SM_freeList] mov bx, ax cmp bx, si ; Goes before head of free list? ja scanLoop ; No -- scan as usual (handles empty ; free list too, since SWAPNIL unsigned ; is above anything possible in the ; swap map) xchg ax, si ; Place head in ax and SM_freeList+2 in mov si, SM_freeList+2; si (1-byte inst) jmp foundSlot scanLoop: lodsw ; Fetch next block cmp bx, ax ; Page being freed go before it? jb foundSlot ; Oui -- get out. xchg si, ax ; No. Shift focus to next block (1-b i) jmp scanLoop foundSlot: ; ; At this point, ax is the page before which the page being freed is to ; be inserted, while si is the page that points to ax ; xchg ds:[bx], ax ; Link new page into list while ; fetching out next page to be freed mov ds:[si-2], bx inc ds:[SM_numFree] ; Note another free page cmp ax, SWAPNIL ; Hit end of list? jne pageLoop ; Nope -- free the next page too .leave ret SwapFree endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SwapWrite %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Write a memory block out to the swap device, using the callback routine bound to the swap map when it was initialized. CALLED BY: GLOBAL (Swap Drivers) PASS: ax = segment of allocated SwapMap cx = size of block to write (bytes) dx = segment of block to write RETURN: carry set if block could not be written, else ax = initial page DESTROYED: cx, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 6/17/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SwapWrite proc far uses ds, bx, si .enter mov ds, ax ; ; Calculate the number of pages needed to hold the entire block ; push dx ; save block segment mov ax, cx mov di, ds:[SM_page] clr dx dec di add ax, di ; round # pages up... adc dx, 0 ; handle blocks >= 60K (for 4K page) inc di div di xchg di, ax ; di <- # pages pop dx ; ; Try and allocate room for the thing in the swap file. ; mov bx, -1 ; search not limited call AllocSwap ;ax = func(es, bx, di) jc done ; Error -- return now ; ; Attempt to write the block to the indicated pages ; EC < push cx > clr bx ; write from start of block call WritePageList ;ax,carry = func(bx, dx, ax) EC < pop cx ; recover block size for EC > jc writeError ; Error -- go free page list and return ; ; Make sure the allocated list of pages adequately covers the ; block swapped out. There is one special case in this code: if the ; block being swapped is 64K long (when rounded up to a page), the ; final size based on the number of pages will be 0 because it is ; truncated to 16 bits. ; EC < push ax > EC < xchg si, ax > EC < clr ax > EC <checkLoop: > EC < cmp si, SWAPNIL > EC < je checkDone > EC < add ax, ds:[SM_page] > EC < mov si, ds:[si] > EC < jnc checkLoop ; => < 64K, still > EC < cmp si, SWAPNIL ; if >= 64K, must be at end > EC < ERROR_NE SWAP_LIST_CORRUPT > EC < tst ax ; must be = 64K... > EC < ERROR_NZ SWAP_LIST_CORRUPT > EC < mov ax, cx ; assume it's correct... > EC <checkDone: > EC < cmp ax, cx > EC < ERROR_B SWAP_LIST_DOESNT_COVER_BLOCK > EC < pop ax > done: .leave ret writeError: xchg bx, ax mov ax, ds call SwapFree stc jmp done SwapWrite endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SwapRead %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Read a block from the swap device via a swap map CALLED BY: GLOBAL (Swap Drivers) PASS: ax = segment of SwapMap bx = initial page of swapped block cx = size of swapped block (bytes) dx = segment to which block is to be read RETURN: carry clear if no error DESTROYED: ax, bx, cx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 6/17/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SwapRead proc far uses si, dx, ds, es groupHead local word ; Head of page-group being written pageList local word ; Head of entire page list EC<lastOff local word > .enter mov ds, ax ; ds <- swap map mov es, ax ; es <- swap map (for later use) ; ; Make sure the allocated list of pages adequately covers the ; block to be swapped in. ; EC < mov si, bx > EC < clr ax > EC <checkLoop: > EC < cmp si, SWAPNIL > EC < je checkDone > EC < add ax, ds:[SM_page] > EC < mov si, ds:[si] > EC < jnc checkLoop ; => < 64K, still > EC < cmp si, SWAPNIL ; if >= 64K, must be at end > EC < ERROR_NE SWAP_LIST_CORRUPT > EC < tst ax ; must be = 64K... > EC < ERROR_NZ SWAP_LIST_CORRUPT > EC < mov ax, cx ; assume it's correct... > EC <checkDone: > EC < cmp ax, cx > EC < ERROR_B SWAP_LIST_DOESNT_COVER_BLOCK > EC < sub ax, ds:[SM_page] > EC < cmp ax, cx > EC < ERROR_A SWAP_PAGE_LIST_TOO_LONG > ; ; First read in all the pages ; xchg ax, bx ; ax <- page list mov ss:[pageList], ax mov ds, dx ; Point ds at new bytes clr dx ; Start at beginning of buffer EC < mov lastOff, -1 > pageLoop: ; ; Find the next group of contiguous pages ; mov si, ax mov ss:[groupHead], ax scanLoop: lodsw es: ; Fetch next page cmp ax, si ; Matches je scanLoop push ax ; Save head of next group ; ; Figure the number of bytes to read based on the number of pages and ; the total number of bytes left. ; sub si, ss:[groupHead]; Figure number of pages mov ax, si shr ax mov si, dx ; Preserve read offset mul es:[SM_page] ; Get # of bytes jnc haveSize ; => dx is insignificant, so < 64K ; ; Group spans 64K, so back up a page and get the last bit on ; the next round. We can't just back up the "next page" pointer ; we saved on the stack as that could be SWAPNIL. Instead, we ; have to get back to the number of pages in the group and add ; that, shifted left 1 bit, to the groupHead to get the last ; page that we'll be unable to read this time through. ; div es:[SM_page] inc sp ; discard saved "next page" inc sp dec ax shl ax add ax, ss:[groupHead] push ax ; save new "next page" clr ax ; ax must have been 0, since we don't ; do > 64K sub ax, es:[SM_page] haveSize: mov dx, si ; Restore read offset sub cx, ax ; Reduce # of bytes we're reading in ; by the # stored in this group jae moreToCome ; >= 0 means we're ok. add ax, cx ; Else adjust # of bytes by amount of ; of overdraft so we don't ; overwrite things. clr cx moreToCome: push cx ; Save # bytes left xchg cx, ax ; cx <- # bytes to read mov ax, ss:[groupHead]; ax <- starting page # sub ax, offset SM_pages shr ax EC < push cx > EC < push dx > EC < cmp lastOff, dx > EC < ERROR_E KAFF_KAFF > EC < mov lastOff, dx > if FULL_EXECUTE_IN_PLACE ; ; Make sure the fptr passed in is valid ; EC < pushdw bxsi > EC < movdw bxsi, es:[SM_read] > EC < call ECAssertValidFarPointerXIP > EC < popdw bxsi > endif call es:[SM_read] jc error EC < pop ax > EC < cmp ax, dx > EC < ERROR_NE NAUGHTY_PAGE_READ_ROUTINE > EC < pop ax > EC < cmp ax, cx > EC < ERROR_NE NAUGHTY_PAGE_READ_ROUTINE > add dx, cx ; Adjust buffer pointer by amount read pop cx ; Recover bytes left pop ax ; and next page cmp ax, SWAPNIL LONG jne pageLoop ; ; Now free up all the pages we used. ; mov ax, es ; ax <- swap map mov bx, ss:[pageList] call SwapFree done: .leave ret error: EC < add sp, 10 > NEC< add sp, 6 > stc jmp done SwapRead endp if CHECK_COMPACTION COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SwapReadNoFree %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Read a block from the swap device via a swap map, but don't call SwapFree on the pages for the block. CALLED BY: GLOBAL (Swap Drivers) PASS: ax = segment of SwapMap bx = initial page of swapped block cx = size of swapped block (bytes) dx = segment to which block is to be read RETURN: carry clear if no error DESTROYED: ax, bx, cx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 6/17/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SwapReadNoFree proc far uses si, dx, ds, es groupHead local word ; Head of page-group being written pageList local word ; Head of entire page list .enter mov ds, ax ; ds <- swap map mov es, ax ; es <- swap map (for later use) ; ; First read in all the pages ; xchg ax, bx ; ax <- page list mov ss:[pageList], ax mov ds, dx ; Point ds at new bytes clr dx ; Start at beginning of buffer pageLoop: ; ; Find the next group of contiguous pages ; mov si, ax mov ss:[groupHead], ax scanLoop: lodsw es: ; Fetch next page cmp ax, si ; Matches je scanLoop push ax ; Save head of next group ; ; Figure the number of bytes to read based on the number of pages and ; the total number of bytes left. ; sub si, ss:[groupHead]; Figure number of pages mov ax, si shr ax mov si, dx ; Preserve read offset mul es:[SM_page] ; Get # of bytes jnc haveSize ; => dx is insignificant, so < 64K ; ; Group spans 64K, so back up a page and get the last bit on ; the next round. We can't just back up the "next page" pointer ; we saved on the stack as that could be SWAPNIL. Instead, we ; have to get back to the number of pages in the group and add ; that, shifted left 1 bit, to the groupHead to get the last ; page that we'll be unable to read this time through. ; div es:[SM_page] inc sp ; discard saved "next page" inc sp dec ax shl ax add ax, ss:[groupHead] push ax ; save new "next page" clr ax ; ax must have been 0, since we don't ; do > 64K sub ax, es:[SM_page] haveSize: mov dx, si ; Restore read offset sub cx, ax ; Reduce # of bytes we're reading in ; by the # stored in this group jae moreToCome ; >= 0 means we're ok. add ax, cx ; Else adjust # of bytes by amount of ; of overdraft so we don't ; overwrite things. clr cx moreToCome: push cx ; Save # bytes left xchg cx, ax ; cx <- # bytes to read mov ax, ss:[groupHead]; ax <- starting page # sub ax, offset SM_pages shr ax if FULL_EXECUTE_IN_PLACE ; ; Make sure the fptr passed in is valid ; EC < pushdw bxsi > EC < movdw bxsi, es:[SM_read] > EC < call ECAssertValidFarPointerXIP > EC < popdw bxsi > endif call es:[SM_read] jc error add dx, cx ; Adjust buffer pointer by amount read pop cx ; Recover bytes left pop ax ; and next page cmp ax, SWAPNIL jne pageLoop ; ; Now free up all the pages we used. ; mov ax, es ; ax <- swap map mov bx, ss:[pageList] ;call SwapFree done: .leave ret error: add sp, 6 stc jmp done SwapReadNoFree endp endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SwapCompact %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Relocate data in the swap driver to reduce the total space used by the driver to below the desired target. CALLED BY: GLOBAL (Swap Drivers) PASS: ax = segment of SwapMap cx = swap driver ID. dx = in Kbytes, the desired maximum space to be taken up in Extended Memory. RETURN: carry set if couldn't meet the target. DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- CL 12/14/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SwapCompact proc far maxPage local word bufHandle local hptr swapDriverID local nptr if CHECK_COMPACTION beforeHan local hptr afterHan local hptr beforeSeg local sptr afterSeg local sptr endif uses ax,bx,cx,dx,si,di,ds,es .enter mov swapDriverID, cx mov es, ax ;SwapMap mov cx, es:[SM_page] ; ; maximum page desired is the target usage divided by ; the page size. (If page size is 1K, then the maximum page is ; the desired target usage). ; mov ax, dx ;ax = max. Kbytes. mov bx, 1024 ;bytes/Kbytes. cmp cx, bx je gotPage mul bx ;dx:ax = target in bytes div cx ;ax = max. page number inc ax ;round up gotPage: ; ; now we have the maximum page in swap driver's terms, i.e., ; pages starting at 0, numbered sequentially. Transform ; that to the type of page that can be used to lookup into the ; swap map. ; add ax, offset SM_pages shl ax mov maxPage, ax ; ; Need a page size buffer. ; mov ax, cx ;page size if CHECK_COMPACTION ; twice the space for EC, so we can do an integrity check. shl ax endif mov cl, 0 mov ch, mask HAF_LOCK or mask HAF_NO_ERR call MemAlloc EC < ERROR_C SWAP_COMPACT_CANNOT_ALLOCATE_TRANSFER_BUFFER > mov bufHandle, bx push ax ;buffer segment if CHECK_COMPACTION ; ; Allocate a couple of large blocks for integrity checks... ; mov ax, RELOC_CHECK_BLOCK_SIZE mov cl, mask HF_FIXED mov ch, 0 call MemAlloc ERROR_C SWAP_COMPACT_CANNOT_ALLOC_RELOC_CHECK_BUFFER mov beforeHan, bx mov beforeSeg, ax mov ax, RELOC_CHECK_BLOCK_SIZE mov cl, mask HF_FIXED mov ch, 0 call MemAlloc ERROR_C SWAP_COMPACT_CANNOT_ALLOC_RELOC_CHECK_BUFFER mov afterHan, bx mov afterSeg, ax endif ; ; Walk the handle table ; mov ax, SGIT_HANDLE_TABLE_START call SysGetInfo mov si, ax mov ax, SGIT_HANDLE_TABLE_SEGMENT call SysGetInfo mov ds, ax ;ds:si = Handle Table mov ax, SGIT_LAST_HANDLE call SysGetInfo mov cx, ax mov bx, swapDriverID mov ax, maxPage pop dx ;buffer segment testHandleLoop: ; bx = the calling swap driver. ; cx = last handle (exit case) ; ds:si = handle to test ; ax = maximum page to use. ; dx = buffer segment ; Are we swapped out? tst ds:[si].HSM_addr jnz nextHandle ; Are we swapped out to this device? cmp ds:[si].HSM_swapDriver, bx jne nextHandle ; Skip discarded blocks test ds:[si].HSM_flags, mask HF_DISCARDED jnz nextHandle if 0 ;; so it turns out some discardable VM blocks are not discarded under ;; certain conditions. EC < test ds:[si].HSM_flags, mask HF_DISCARDABLE > EC < ERROR_NZ SWAP_COMPACT_BLOCK_IS_DISCARDABLE > endif ; caught one! if CHECK_COMPACTION push ax, bx, cx, dx ; ; Read the block into a memory block before the relocation, so ; that we can compare the bytes with what is in the block after ; relocation. They should be the same, or else... ; mov ax, es ;SwapMap mov bx, ds:[si].HSM_swapID mov cx, ds:[si].HSM_size shl cx shl cx shl cx shl cx cmp cx, RELOC_CHECK_BLOCK_SIZE jbe gotSize ; ; don't go over the block size, even if it means not checking ; the whole block. ; mov cx, RELOC_CHECK_BLOCK_SIZE WARNING_A WARNING_RELOC_CHECK_NOT_COMPLETE_BEFORE gotSize: mov dx, beforeSeg call SwapReadNoFree ERROR_C SWAP_COMPACT_RELOC_UNEXPECTED_ERROR pop ax, bx, cx, dx endif mov di, ds:[si].HSM_swapID call RelocPageList mov ds:[si].HSM_swapID, di if CHECK_COMPACTION pushf push ax, bx, cx, dx, ds, si, es, di ; ; Read the block into memory now that it has been relocated, and ; compare the bytes with what was in the block before relocation. ; They should be the same, otherwise relocation is messing up ; somewhere. ; mov ax, es ;SwapMap mov bx, ds:[si].HSM_swapID mov cx, ds:[si].HSM_size shl cx shl cx shl cx shl cx cmp cx, RELOC_CHECK_BLOCK_SIZE jbe gotSizeAfter ; ; don't go over the block size, even if it means not checking ; the whole block. ; mov cx, RELOC_CHECK_BLOCK_SIZE WARNING_A WARNING_RELOC_CHECK_NOT_COMPLETE_AFTER gotSizeAfter: mov dx, afterSeg call SwapReadNoFree ERROR_C SWAP_COMPACT_RELOC_UNEXPECTED_ERROR ; ; Compare beforeSeg with afterSeg. Hopefully, they will ; contain the same data. ; mov cx, ds:[si].HSM_size shl cx shl cx shl cx shl cx mov ds, beforeSeg mov es, afterSeg clr si, di cmp cx, RELOC_CHECK_BLOCK_SIZE jbe gotSizeCmp ;don't go over the block size. mov cx, RELOC_CHECK_BLOCK_SIZE gotSizeCmp: repe cmpsb ;Z=1 if no mismatch. ERROR_NZ SWAP_COMPACT_RELOC_DATA_CORRUPTED pop ax, bx, cx, dx, ds, si, es, di popf endif jc done ;missed the target nextHandle: ; test next handle add si, size HandleGen cmp si, cx jbe testHandleLoop clc done: pushf if CHECK_COMPACTION mov bx, beforeHan call MemFree mov bx, afterHan call MemFree endif mov bx, bufHandle call MemFree popf .leave ret SwapCompact endp ;============================================================================== ; ; UTILITY ROUTINES ; ;============================================================================== COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AllocSwap %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Allocate enough pages to hold the memory block CALLED BY: SwapWrite, WritePageList PASS: ds = segment of SwapMap bx = page beyond which allocation cannot go. -1 if unrestricted (used by WritePageList) di = number of pages required to hold the block RETURN: ax = first page to write carry set if couldn't find enough pages DESTROYED: nothing PSEUDO CODE/STRATEGY: The allocation proceeds in two phases: phase1 attempts to get a cluster of pages big enough to hold the entire block. Failing that, phase2 kicks in and tries to allocate enough pages, contiguous or not. KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 12/ 8/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AllocSwap proc near uses cx, dx, bx, si .enter cmp ds:[SM_numFree], di jb done ; If there aren't enough pages left to hold the ; block, get out now. ; ; First see if we can find enough pages that are contiguous ; to hold the thing. cx is a counter that is reset each time ; a non-contiguous link is seen. If cx reaches zero, we've found ; a block that's big enough. ; lea cx, [di-1] ; Initialize counter. We want di ; contiguous pages, but that means we ; only need to search di-1 pages for ; contiguity -- we don't care if the ; last one is contiguous with its next ; page or not. mov dx, SM_freeList ; Signal region begins at head mov ax, ds:[SM_freeList]; Fetch listhead jcxz needOne ; If need only one page, we're done. phase1: mov si, ax ; Point to next (not done below so we've ; got something in SI if we hit the end ; at the same time cx runs out) lodsw ; Fetch next page # cmp ax, si ; Is it immediately after this one ; (lodsw added 2 to si)? je wasContig ; Ja -- another one for the gipper mov cx, di ; Nope -- reset the counter lea dx, [si-2] ; Record page that points to start ; of potential contiguous region for ; use should the region end up big ; enough. wasContig: cmp ax, SWAPNIL ; Hit the end? loopne phase1 ; Loop if not so and haven't found ; region big enough. jne gotContig ; If hit the end, it means we're short ; of pages, so fall into phase 2 ;-------------------- phase2: ; ; Couldn't allocate a contiguous range of pages -- just take ; the first n on the list, pointing si at the last one to use. ; mov ax, ds:[SM_freeList] mov dx, SM_freeList mov si, ax lea cx, [di-1] jcxz boundsCheck findEnd: mov si, ds:[si] loop findEnd boundsCheck: ; ; Make sure final page not beyond the limit set by the caller ; cmp bx, si jb done gotList: sub ds:[SM_numFree], di ; Reduce free-page count mov bx, ds:[si] ; Fetch page after end mov {word}ds:[si], SWAPNIL ; Terminate returned list mov si, dx ; Fetch page before list mov ds:[si], bx ; Link around returned list clc ; Signal success done: .leave ret ;-------------------- needOne: ; ; When we've found a contiguous block, si points to the ; final page. Set si to the first page (the only one we need) ; mov si, ax gotContig: ; ; SI points to final page in the list. To find the first ; page in the contiguous region, we need to figure ; si - (di-1) * 2 ; e.g. ; di = 3 ; n : n+2 ; n+2 : n+4 ; si -> n+4 : nil ; (n+4) - (3-1) * 2 = n ; cmp si, bx jae phase2 ; last page is out-of-bounds -- try ; for non-contiguous pages instead. lea ax, [di-1] shl ax sub ax, si ; in reverse order neg ax ; so compensate jmp gotList AllocSwap endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% WritePageList %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Write a block to the swap device in pages. CALLED BY: SwapWrite, WritePageList (in case of error) PASS: ds = segment of SwapMap cx = number of bytes to swap ax = first page to use in swap file di = number of pages being written dx:bx = address from which to start writing RETURN: carry set if couldn't swap entire block. ax = head of page list (may be different if initial list couldn't be used due to disk space constraints) DESTROYED: cx, si PSEUDO CODE/STRATEGY: This function is made somewhat more complicated by the necessity of handling an error when performing a write. In such a case, we figure how many pages were actually written, then try to allocate another set of pages from earlier in the file to hold the rest. KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 12/ 8/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ WritePageList proc near uses dx, bp, bx, es listHead local word ; Head of page list, in case it changes groupHead local word ; Head of group being written out prevTail local word ; Tail of previously written group bytesLeft local word ; Bytes left to write blockSeg local sptr ; Segment of the block .enter mov ss:[bytesLeft], cx mov ss:[blockSeg], dx ; ; Work down the list, writing out contiguous pieces to ; the swap device. ; mov cx, di mov ss:[listHead], ax mov ss:[prevTail], SWAPNIL mov dx, bx ; Start writing from the beginning writeLoop: cmp ax, SWAPNIL ; End of loop? je done mov ss:[groupHead], ax ; Save starting page ; ; figure # of contiguous pages ; xchg si, ax ; si <- first page contigLoop: lodsw ; fetch next cmp ax, si ; contiguous? loope contigLoop ; loop if so and more pages to write mov bx, si sub bx, ss:[groupHead] shr bx ; divide by two to get actual # pages ; ; Figure how many bytes that is. ; figureSize: push ax, cx push bx mov ax, ds:[SM_page]; Calculate # of bytes to write mov cx, dx mul bx jnc haveSize ; ; Block is 64K. We can't write 64K at once b/c we've only ; got one word of size, so we reduce our aim by one page ; and refigure the number of bytes we're writing. ; mov dx, cx ; dx <- saved write offset pop bx ; clear the stack pop ax, cx ; recover pages left and clear stack dec bx ; one fewer page being written dec si ; back up to last page in dec si ; the group mov ax, si ; set that as the next page to write inc cx ; and record one more page as still ; needing writing jmp figureSize haveSize: xchg cx, ax ; cx <- # to write, ax <- write offset sub ss:[bytesLeft], cx ; Adjust size left jae notFrag ; Any left (or exact fit)? add cx, ss:[bytesLeft]; Trim amount to write by size of ; overdraft if GATHER_SWAP_STATS ; ds:si -> last page to be written. If the #bytesLeft is less than ; 0, write something out in the extra part of the SwapMap buffer ; allocated when we want to GATHER_SWAP_STATS. We can read ; this info later for statistics gathering purposes. push ax, bx mov bx, ds:[SM_total] ; ax = #pages shl bx, 1 ; to get to extra space mov ax, ds:[SM_page] ; page size add ax, ss:[bytesLeft] ; calc #bytes used in page mov ds:[si][bx], ax ; store result pop ax, bx endif notFrag: ; ; Call the callback function to perform the write. ; xchg dx, ax ; dx <- offset from which to write (as ; preserved through above calculations) push ds segmov es, ds ; es <- swap map mov ds, ss:[blockSeg]; Point ds:dx at buffer mov ax, ss:[groupHead]; ax <- page number from which to sub ax, offset SM_pages ; start writing shr ax push cx if FULL_EXECUTE_IN_PLACE ; ; Make sure the fptr passed in is valid ; EC < pushdw bxsi > EC < movdw bxsi, es:[SM_write] > EC < call ECAssertValidFarPointerXIP > EC < popdw bxsi > endif call es:[SM_write] pop ax ; ax <- amount that should have been ; written, if no error pop ds pop bx ; Recover pages we hope were written jc writeError ; ; Handle end-of-loop bookkeeping. ; dec si ; Record last page of this group in case dec si ; next group fails mov ss:[prevTail], si add dx, ax ; Adjust write base by amount written pop ax, cx tst cx ; Clears carry jnz writeLoop done: mov ax, ss:[listHead]; Return head of list, possibly ; modified from input value. .leave ret ;------------------------------------------------------------ writeError: ; ; Calculate pages written, rounding down (a partial page is ; unhelpful). ; bx = pages supposed to have been written ; cx = # bytes actually written ; si = map index 2 past last page to have been written ; mov_trash ax, cx mov cx, dx clr dx ; 32-bit divide... div ds:[SM_page] mov dx, cx ; shift write base back into dx pop cx ; and recover # pages left sub bx, ax ; figure pages unwritten add cx, bx ; Add unwritten pages back into total push ax ; Save pages written for re-linking ; ; Point dx back at first unwritten portion of block ; mov bx, dx ; preserve dx mul ds:[SM_page] add bx, ax ; Adjust block base mov dx, bx ; Shift block base back to dx ; ; Allocate a new set of pages linked into the existing list of ; already-written pages. ; mov bx, ss:[groupHead] ; Figure first unwritten page pop ax ; Recover pages written shl ax ; Pages -> words for map mov si, ax ; Calculate last written page lea si, [bx][si-2] ; assuming at least one was written. ; This will be bx+ax-2, since ax is ; one-origin. jnz wroteSome ; NZ (from shl) => wrote at least one ; from this group. mov si, ss:[prevTail] ; Link to first bad page is ss:[prevTail] wroteSome: add bx, ax ; bx <- first bad page. allocation ; may not go beyond this. mov di, cx ; Pass new number of pages needed call AllocSwap jc noMore ; Couldn't allocate enough pages for ; the rest of the block -- return ; error (caller will free page list) ; ; Link in new pages in place of the ones that didn't work ; cmp si, SWAPNIL ; Was very first page bad? jne notFirst ; No mov ss:[listHead], ax ; Yes -- replace the entire list jmp writeNew notFirst: mov ds:[si], ax ; Link last good to first new writeNew: push bx ; Save head of bad list for freeing mov bx, dx ; Pass initial offset in bx xchg ax, cx ; Figure number of bytes left to write mul ds:[SM_page] ; based on number of unwritten pages xchg ax, cx mov dx, ss:[blockSeg]; Pass segment in dx call WritePageList ; Recurse to write new pages. ; ; Free the old pages. If WritePageList returned an error, our caller ; will free the pages we just linked in. ; pop bx ; bx <- head of bad page list push ax mov ax, ds ; ax <- segment of swap map pushf call SwapFree popf pop ax noMore: inc sp ; Discard saved "next page". Doesn't inc sp ; nuke the carry. jmp done WritePageList endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% RelocPageList %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Relocate the page list so that no pages go above the maximum page. CALLED BY: SwapCompact PASS: es = segment of SwapMap di = first page of list ax = highest page to use dx = address of a buffer of the size of a page in the swap driver, to be used for the relocation. RETURN: di = new first page (may have changed.) DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- CL 12/14/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ RelocPageList proc near firstPage local word uses ax,bx,cx,dx,si,ds,es .enter segmov ds, es mov cx, ds:[SM_freeList] ; ; Look at the first one separately, because we have to ; return the new first page. ; mov firstPage, di ;initialize it. mov si, di ;si <- first page mov di, ds:[si] ;save the second page, ; so we can restore the link. cmp si, ax ;is it too high? jle nextPageLoop call RelocPage EC < ERROR_C SWAP_COMPACT_UNEXPECTED_ERROR > jc exitLoop EC < call ECCheckSwapMapDS > mov firstPage, si ;new first page. mov ds:[si], di ;update next page link. nextPageLoop: ; ; we need to keep a pointer to the previous page in SwapMap so ; that we can update the link if the page number changes (i.e., ; is relocated.) Initial value is the first page. ; mov bx, si ; ds = swap map ; si = current page ; ax = highest page ; bx = previous page, to update the link. ; dx = buffer segment mov si, ds:[si] ;follow link cmp si, SWAPNIL ;test for end of page list. je exitLoop cmp si, ax jle nextPageLoop mov di, ds:[si] ;save the next page link, ; so we can restore the link ; after the page moves. call RelocPage ;old page -> si <- new page jc exitLoop ;oh, no, we failed! EC < call ECCheckSwapMapDS > mov ds:[bx], si ;update the previous link. mov ds:[si], di ;update the next link. EC < call ECCheckSwapMapDS > jmp nextPageLoop exitLoop: mov di, firstPage .leave ret RelocPageList endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FreePage %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Add a page to the free list. CALLED BY: RelocPage PASS: si = page to add to free list ds = SwapMap RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: Uses the same scheme as SwapFree. REVISION HISTORY: Name Date Description ---- ---- ----------- CL 12/15/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if 0 ; ; Calls to FreePage were replaced with calls to SwapFree. ; FreePage proc near uses ax,bx,cx,ds,si .enter mov bx, si ;bx = page being freed mov si, ds:[SM_freeList] ;si = free list cmp bx, si ;goes before head of free list? ja scanLoop ;no ; ; add page bx before head of free list ; mov ax, si ;ax = head of free list mov si, SM_freeList+2 jmp foundSlot scanLoop: lodsw ;fetch next free page cmp bx, ax ;does page being freed go before it? jb foundSlot ;yes xchg si, ax ;no. jmp scanLoop foundSlot: ; ; At this point, ax is the page before which the page being freed ; is to be inserted, while si is the page that points to ax. ; And oh yeah, bx = page to add. ; mov ds:[bx], ax ;Link new page into list mov ds:[si-2], bx inc ds:[SM_numFree] .leave ret FreePage endp endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% RelocPage %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: If the passed page is above the maximim page limit, move the contents of the page to another page below that limit, and return the number of the new page. CALLED BY: Internal (RelocPageList) PASS: si = page to relocate ax = highest page dx = buffer segment of page size. ds = SwapMap RETURN: si = new page where data is stored cx = updated free list ds = SwapMap (with freelist updated) carry set if couldn't relocate the page to below the limit. DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- CL 12/14/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ RelocPage proc near newPage local word uses ax,bx,dx,es,di,ds .enter EC < call ECCheckSwapMapDS > call AllocPageBelowLimit ;ax <- new page EC < ERROR_C SWAP_COMPACT_OUT_OF_PAGES_BELOW_LIMIT > jc done mov newPage, ax ; ; read the page into the buffer, using the SwapMap routine. ; segmov es, ds ;es = SwapMap mov ds, dx clr dx ;ds:dx = buffer mov ax, si ;ax = starting page number sub ax, offset SM_pages shr ax mov cx, es:[SM_page] if FULL_EXECUTE_IN_PLACE ; ; Make sure the fptr passed in is valid ; EC < pushdw bxsi > EC < movdw bxsi, es:[SM_read] > EC < call ECAssertValidFarPointerXIP > EC < popdw bxsi > endif call es:[SM_read] ;ax, bx destroyed. EC < ERROR_C SWAP_COMPACT_UNEXPECTED_ERROR > ; ; now write out to the new page. ds:dx is already setup. ; mov ax, newPage sub ax, offset SM_pages shr ax mov cx, es:[SM_page] if FULL_EXECUTE_IN_PLACE ; ; Make sure the fptr passed in is valid ; EC < pushdw bxsi > EC < movdw bxsi, es:[SM_write] > EC < call ECAssertValidFarPointerXIP > EC < popdw bxsi > endif call es:[SM_write] EC < ERROR_C SWAP_COMPACT_UNEXPECTED_ERROR > jc freeAndExit ;error in write. try to back out. if CHECK_COMPACTION push es, si ; ; the buffer segment in ds is twice the size in EC. Use that ; space to read the new page back in, and check it against the ; original. ; mov cx, es:[SM_page] mov dx, cx ;start halfway into buffer. mov ax, newPage ;read from where we just ; wrote into. sub ax, offset SM_pages shr ax if FULL_EXECUTE_IN_PLACE ; ; Make sure the fptr passed in is valid ; EC < pushdw bxsi > EC < movdw bxsi, es:[SM_read] > EC < call ECAssertValidFarPointerXIP > EC < popdw bxsi > endif call es:[SM_read] ; ; compare the two halves of the buffer. They should be identical. ; mov di, es:[SM_page] clr si segmov es, ds mov cx, di repe cmpsb ERROR_NZ SWAP_COMPACT_RELOC_DATA_CORRUPTED pop es, si endif ; ax = SwapMap ; si = page to relocate. EC < call ECCheckSwapMapES > mov ax, es ;ax = SwapMap mov {word}es:[si], SWAPNIL mov bx, si call SwapFree EC < call ECCheckSwapMapES > mov si, newPage clc done: .leave ret freeAndExit: mov ax, es ;ax = SwapMap mov si, newPage mov {word}es:[si], SWAPNIL mov bx, si call SwapFree stc jmp done RelocPage endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AllocPageBelowLimit %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Return a page in the free list that is numbered below the maximum page number. CALLED BY: RelocPage PASS: ax = maximum page number ds = SwapMap RETURN: if there's a free page below the maximum page number: carry clear ax = new page ds = SwapMap with updated freelist (new page taken out.) else: carry set DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- CL 12/15/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AllocPageBelowLimit proc near uses bx,cx,dx,ds,si .enter mov bx, ax ;bx = max. page. ; ; just return the first page in the free list <= max page. ; mov dx, SM_freeList ;preceeding page in this ; case is just the pointer ; to the head of the list. mov ax, ds:[SM_freeList] nextPageLoop: cmp ax, bx jle foundOne mov si, ax ;setup for lodsw mov dx, si ;save preceeding page, so ; that if we find a page ; we can update the link. lodsw cmp ax, SWAPNIL jne nextPageLoop ; ; if we've reached there, then we walked through the whole free ; list, unable to find a page numbered lower than the max. page. ; In other words, we've failed. ; stc jmp done foundOne: ; ax = page in question ; dx = preceeding page in free list. mov si, ax mov bx, ds:[si] ;bx <- rest of free list mov {word}ds:[si], SWAPNIL ;terminate page. mov si, dx mov ds:[si], bx ;update next pointer of ; previous page in free list. dec ds:[SM_numFree] clc done: .leave ret AllocPageBelowLimit endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ECCheckSwapMapDS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Check for the consistency of the SwapMap. CALLED BY: internal PASS: ds = SwapMap RETURN: if failure: does not return. else: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- CL 2/ 7/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if ERROR_CHECK ECCheckSwapMapDS proc near uses ax,bx,ds,si .enter ; ; Check for self reference in the SwapMap free list. ; mov si, ds:[SM_freeList] cmp si, SWAPNIL je exitLoop checkLoop: mov bx, si ;save previous offset lodsw cmp ax, bx ;self-reference? ERROR_Z SWAP_FREE_LIST_CORRUPTED cmp ax, SWAPNIL je exitLoop xchg si, ax jmp checkLoop exitLoop: .leave ret ECCheckSwapMapDS endp endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ECCheckSwapMapES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Check for the consistency of the SwapMap. CALLED BY: internal PASS: es = SwapMap RETURN: if failure: does not return. else: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- CL 2/ 7/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if ERROR_CHECK ECCheckSwapMapES proc near uses ax,bx,ds,si .enter ; ; Check for self reference in the SwapMap free list. ; segmov ds, es mov si, ds:[SM_freeList] cmp si, SWAPNIL je exitLoop checkLoop: mov bx, si ;save previous offset lodsw cmp ax, bx ;self-reference? ERROR_Z SWAP_FREE_LIST_CORRUPTED cmp ax, SWAPNIL je exitLoop xchg si, ax jmp checkLoop exitLoop: .leave ret ECCheckSwapMapES endp endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SwapLockDOS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Desc: Grab the DOS/BIOS lock. This should be called by a swap driver before calling on some DOS-level driver to avoid conflicts with TSRs like disk caches. The lock won't be grabbed if SwapClearKernelFlag has been called Pass: nothing Return: nothing Nuked: flags PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ron 1/ 5/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SwapLockDOS proc far .enter call SwapIsKernelInMemory? jnc done call SysLockBIOS done: .leave ret SwapLockDOS endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SwapUnlockDOS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Desc: Release the DOS/BIOS lock. Pass: nothing Return: nothing Nuked: nothing (flags intact) REVISION HISTORY: Name Date Description ---- ---- ----------- ron 1/ 5/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SwapUnlockDOS proc far .enter pushf call SwapIsKernelInMemory? jnc done call SysUnlockBIOS done: popf .leave ret SwapUnlockDOS endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SwapIsKernelInMemory? %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Returns carry set if kernel can be called CALLED BY: PASS: nothing RETURN: Carry Set iff kernel can be called DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ron 1/ 5/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SwapIsKernelInMemory? proc far uses ax,ds .enter segmov ds, dgroup, ax cmp ds:[KernelInMemory], BB_TRUE cmc ; KernelInMemory is either 0 or BB_TRUE. if ; BB_TRUE, CF is now 0, and we want it 1 ; if 0, CF is now 1 (0 being below BB_TRUE) ; and we want it 0 .leave ret SwapIsKernelInMemory? endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SwapSetKernelFlag %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Sets the flag in the swap library to say the the kernel in in memory and may be called CALLED BY: PASS: nothing RETURN: nothing DESTROYED: nothing (not even flags) SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ron 1/ 5/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SwapSetKernelFlag proc far uses ax, ds .enter segmov ds, dgroup, ax mov ds:[KernelInMemory], BB_TRUE .leave ret SwapSetKernelFlag endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SwapClearKernelFlag %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Sets flag in swap library to say the kernel is not in memory and may not be called CALLED BY: PASS: nothing RETURN: nothing DESTROYED: nothing (not even flags) SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ron 1/ 5/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SwapClearKernelFlag proc far uses ax,ds .enter segmov ds, dgroup, ax mov ds:[KernelInMemory], BB_FALSE .leave ret SwapClearKernelFlag endp Resident ends
25.965133
80
0.582342
a3086bdbc20abc593776b45e5e6a0382f337a3e0
3,375
asm
Assembly
release/src/router/gmp/source/mpn/x86/p6/lshsub_n.asm
zhoutao0712/rtn11pb1
09e6b6c7ef4b91be0a9374daeacc3ac9f2fa3a05
[ "Apache-2.0" ]
184
2020-04-15T14:28:37.000Z
2020-09-22T15:57:55.000Z
release/src/router/gmp/source/mpn/x86/p6/lshsub_n.asm
zhoutao0712/rtn11pb1
09e6b6c7ef4b91be0a9374daeacc3ac9f2fa3a05
[ "Apache-2.0" ]
8
2019-12-19T19:34:56.000Z
2022-03-10T10:11:28.000Z
release/src/router/gmp/source/mpn/x86/p6/lshsub_n.asm
zhoutao0712/rtn11pb1
09e6b6c7ef4b91be0a9374daeacc3ac9f2fa3a05
[ "Apache-2.0" ]
5
2020-04-21T19:50:23.000Z
2020-09-22T10:58:02.000Z
dnl Intel P6 mpn_lshsub_n -- mpn papillion support. dnl Copyright 2006 Free Software Foundation, Inc. dnl dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of 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 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 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 P6/13: 3.35 cycles/limb (separate mpn_sub_n + mpn_lshift needs 4.12) C (1) The loop is is not scheduled in any way, and scheduling attempts have not C improved speed on P6/13. Presumably, the K7 will want scheduling, if it C at all wants to use MMX. C (2) We could save a register by not alternatingly using eax and edx in the C loop. define(`rp', `%edi') define(`up', `%esi') define(`vp', `%ebx') define(`n', `%ecx') define(`cnt', `%mm7') ASM_START() TEXT ALIGN(16) PROLOGUE(mpn_lshsub_n) push %edi push %esi push %ebx mov 16(%esp), rp mov 20(%esp), up mov 24(%esp), vp mov 28(%esp), n mov $32, %eax sub 32(%esp), %eax movd %eax, cnt lea (up,n,4), up lea (vp,n,4), vp lea (rp,n,4), rp neg n mov n, %eax and $-8, n and $7, %eax shl %eax C eax = 2x lea (%eax,%eax,4), %edx C edx = 10x ifdef(`PIC',` call L(pic_calc) L(here): ',` lea L(ent)(%eax,%edx,2), %eax C eax = 22x ') pxor %mm1, %mm1 pxor %mm0, %mm0 jmp *%eax ifdef(`PIC',` L(pic_calc): C See mpn/x86/README about old gas bugs lea (%eax,%edx,2), %eax add $L(ent)-L(here), %eax add (%esp), %eax ret_internal ') L(end): C compute (cy<<cnt) | (edx>>(32-cnt)) sbb %eax, %eax neg %eax mov 32(%esp), %ecx shld %cl, %edx, %eax emms pop %ebx pop %esi pop %edi ret ALIGN(16) L(top): jecxz L(end) L(ent): mov 0(up,n,4), %eax sbb 0(vp,n,4), %eax movd %eax, %mm0 punpckldq %mm0, %mm1 psrlq %mm7, %mm1 movd %mm1, 0(rp,n,4) mov 4(up,n,4), %edx sbb 4(vp,n,4), %edx movd %edx, %mm1 punpckldq %mm1, %mm0 psrlq %mm7, %mm0 movd %mm0, 4(rp,n,4) mov 8(up,n,4), %eax sbb 8(vp,n,4), %eax movd %eax, %mm0 punpckldq %mm0, %mm1 psrlq %mm7, %mm1 movd %mm1, 8(rp,n,4) mov 12(up,n,4), %edx sbb 12(vp,n,4), %edx movd %edx, %mm1 punpckldq %mm1, %mm0 psrlq %mm7, %mm0 movd %mm0, 12(rp,n,4) mov 16(up,n,4), %eax sbb 16(vp,n,4), %eax movd %eax, %mm0 punpckldq %mm0, %mm1 psrlq %mm7, %mm1 movd %mm1, 16(rp,n,4) mov 20(up,n,4), %edx sbb 20(vp,n,4), %edx movd %edx, %mm1 punpckldq %mm1, %mm0 psrlq %mm7, %mm0 movd %mm0, 20(rp,n,4) mov 24(up,n,4), %eax sbb 24(vp,n,4), %eax movd %eax, %mm0 punpckldq %mm0, %mm1 psrlq %mm7, %mm1 movd %mm1, 24(rp,n,4) mov 28(up,n,4), %edx sbb 28(vp,n,4), %edx movd %edx, %mm1 punpckldq %mm1, %mm0 psrlq %mm7, %mm0 movd %mm0, 28(rp,n,4) lea 8(n), n jmp L(top) EPILOGUE()
21.226415
79
0.619259
df3d2f752ab8597226c53baf47c35d2e06f35558
8,064
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1354.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1354.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1354.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r8 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x14ebc, %rcx clflush (%rcx) nop nop nop nop nop sub %r13, %r13 movb (%rcx), %bl inc %rsi lea addresses_UC_ht+0x1b6bc, %rsi lea addresses_UC_ht+0x6e24, %rdi and $10374, %r11 mov $73, %rcx rep movsb and $9707, %rbx lea addresses_UC_ht+0x1475c, %rsi nop nop add $26457, %rcx mov (%rsi), %ebx nop nop nop nop nop cmp %rbx, %rbx lea addresses_normal_ht+0x8804, %r13 mfence movw $0x6162, (%r13) nop nop nop nop nop cmp $11150, %r11 lea addresses_A_ht+0x1515c, %rcx nop dec %r11 mov (%rcx), %r8 nop nop nop nop add $18009, %r13 lea addresses_WC_ht+0x1d0bc, %rsi nop mfence mov (%rsi), %bx nop nop nop inc %rdi lea addresses_D_ht+0x3f8c, %rsi lea addresses_D_ht+0x198bc, %rdi nop xor %rdx, %rdx mov $122, %rcx rep movsb nop nop nop add %r11, %r11 lea addresses_A_ht+0xfebc, %rsi lea addresses_A_ht+0x1b738, %rdi nop nop nop nop nop inc %r8 mov $72, %rcx rep movsw nop nop cmp $45506, %rdi lea addresses_D_ht+0x1a48b, %rdi clflush (%rdi) cmp %r11, %r11 movb (%rdi), %r13b sub $34835, %r11 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r8 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r15 push %r9 push %rax push %rcx push %rdi // Load lea addresses_A+0x101ce, %rax nop nop and $59315, %rdi movups (%rax), %xmm7 vpextrq $1, %xmm7, %r14 nop nop cmp %r14, %r14 // Store lea addresses_normal+0x97be, %r15 nop nop nop add %rcx, %rcx movb $0x51, (%r15) and $57678, %rdi // Store lea addresses_D+0xda3c, %r14 nop cmp %r9, %r9 movw $0x5152, (%r14) nop nop nop nop dec %r15 // Store lea addresses_A+0x10ebc, %r9 nop nop nop nop nop sub %rax, %rax movb $0x51, (%r9) nop nop nop nop nop cmp %r9, %r9 // Store lea addresses_RW+0xfb1c, %r9 nop nop nop nop and $745, %r12 movb $0x51, (%r9) // Exception!!! nop nop nop nop mov (0), %r15 cmp %rdi, %rdi // Store mov $0x6e9b600000000abc, %rax clflush (%rax) nop nop nop add %r9, %r9 movl $0x51525354, (%rax) nop nop sub %rcx, %rcx // Load lea addresses_normal+0x15ebc, %r14 nop nop nop nop nop add %rdi, %rdi movb (%r14), %r9b nop nop nop cmp %r9, %r9 // Load lea addresses_A+0x10ebc, %r14 sub %r15, %r15 mov (%r14), %di nop nop nop nop nop cmp $54152, %rdi // Faulty Load lea addresses_A+0x10ebc, %r15 nop nop nop nop dec %r9 vmovups (%r15), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $0, %xmm7, %rdi lea oracles, %rax and $0xff, %rdi shlq $12, %rdi mov (%rax,%rdi,1), %rdi pop %rdi pop %rcx pop %rax pop %r9 pop %r15 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': True, 'size': 2, 'NT': False, 'same': False, 'congruent': 5}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 5}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 6}} {'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A', 'AVXalign': True, 'size': 2, 'NT': True, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 3}} {'src': {'type': 'addresses_A_ht', 'AVXalign': True, 'size': 8, 'NT': False, 'same': True, 'congruent': 5}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'35': 21829} 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 */
30.661597
2,999
0.648189
c37451666e851b0a89d2b298a00256b7139d9e80
493
asm
Assembly
programs/oeis/072/A072560.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/072/A072560.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/072/A072560.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A072560: Denominators of w(n) where w(1)=w(2)=w(3)=1, w(n)=(w(n-1)*w(n-2)+(w(n-1)+w(n-2))/3) / w(n-3). ; 3,9,3,3,1,3,3,9,3,3,1,3,3,9,3,1,1,1,3,9,3,3,1,3,3,9,3,3,1,3,3,9,3,1,1,1,3,9,3,3,1,3,3,9,3,3,1,3,3,9,3,1,1,1,3,9,3,3,1,3,3,9,3,3,1,3,3,9,3,1,1,1,3,9,3,3,1,3,3,9,3,3,1,3,3,9,3,1,1,1,3,9,3,3,1,3,3,9,3,3,1,3,3,9,3 add $0,2 cal $0,70579 ; n^4 mod 36. sub $0,2 mul $0,2 cal $0,337175 ; Number of pairs of divisors of n, (d1,d2), such that d1 <= d2 and d1*d2 < n. mov $1,$0 mul $1,2 add $1,1
41.083333
211
0.535497
234d5b15ce301a97c2a00856b03cd041cfc6e853
588
asm
Assembly
programs/oeis/049/A049657.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/049/A049657.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/049/A049657.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A049657: a(n) = (F(8*n+3) - 2)/3, where F=A000045 (the Fibonacci sequence). ; 0,29,1393,65472,3075821,144498145,6788337024,318907342013,14981856737617,703828359326016,33064951031585165,1553348870125176769,72974331944851723008,3428240252537905804637,161054317537336721094961,7566124684002287985658560,355446805830570198604857389,16698433749352797046442638753,784470939413750890984199164032,36853435718696939079210918070781,1731327007839342385831928950162705,81335515932730395195021449739576384 mul $0,4 mov $1,1 mov $2,2 lpb $0 sub $0,1 add $1,$2 add $2,$1 lpe mov $0,$2 div $0,3
42
416
0.829932
81606e95aa5a696900240af5e110961d93d2991d
690
asm
Assembly
oeis/142/A142982.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142982.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142982.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142982: a(1) = 1, a(2) = 9, a(n+2) = 9*a(n+1) + (n+1)^2*a(n). ; Submitted by Jon Maiga ; 1,9,85,846,8974,101916,1240308,16156656,224789616,3331795680,52465122720,875333381760,15432978107520,286828144485120,5606317009440000,114993185594112000,2470155824763648000,55464433059571200000,1299510384759562752000,31718253797341267968000,805268438079896512512000,21235165867346567786496000,580866416836789022134272000,16461200495357435558264832000,482729860556207396773724160000,14632819054604263794879037440000,458020757227434574372948869120000,14789511905853419475823358115840000 mov $3,1 lpb $0 mov $2,$3 mul $3,9 add $3,$1 mov $1,$0 mul $2,$0 sub $0,1 mul $1,$2 lpe mov $0,$3
43.125
486
0.801449
ada9be176d4982bf629df0753c3c386a2c473e28
1,577
asm
Assembly
externals/skia/third_party/externals/yasm/source/patched-yasm/modules/arch/x86/tests/pushnosize.asm
terrajobst/linux-packaging-skiasharp
47dbb2ff9ae01305b190f409ccea00b3b4f0bc79
[ "MIT" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
externals/skia/third_party/externals/yasm/source/patched-yasm/modules/arch/x86/tests/pushnosize.asm
terrajobst/linux-packaging-skiasharp
47dbb2ff9ae01305b190f409ccea00b3b4f0bc79
[ "MIT" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
externals/skia/third_party/externals/yasm/source/patched-yasm/modules/arch/x86/tests/pushnosize.asm
terrajobst/linux-packaging-skiasharp
47dbb2ff9ae01305b190f409ccea00b3b4f0bc79
[ "MIT" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
[bits 16] push 0 ; 6A 00 - equivalent to push byte 0 push byte 0 ; 6A 00 push word 0 ; 6A 00 - optimized push dword 0 ; 66 6A 00 - optimized push strict byte 0 ; 6A 00 push strict word 0 ; 68 0000 push strict dword 0 ; 66 68 00000000 push 128 ; 68 8000 - doesn't fit in byte, equivalent to push word 128 push byte 128 ; 6A 80 - warning (signed overflow) push word 128 ; 68 8000 push dword 128 ; 66 68 80000000 push strict byte 128 ; 6A 80 - warning (signed overflow) push strict word 128 ; 68 8000 push strict dword 128 ; 66 68 80000000 [bits 32] push 0 ; 6A 00 - equivalent to push byte 0 push byte 0 ; 6A 00 push word 0 ; 66 6A 00 - optimized push dword 0 ; 6A 00 - optimized push strict byte 0 ; 6A 00 push strict word 0 ; 66 68 0000 push strict dword 0 ; 68 00000000 push 128 ; 68 80000000 - doesn't fit in byte -> push dword 128 push byte 128 ; 6A 80 - warning (signed overflow) push word 128 ; 66 6A 8000 push dword 128 ; 6A 80000000 push strict byte 128 ; 6A 80 - warning (signed overflow) push strict word 128 ; 66 6A 8000 push strict dword 128 ; 6A 80000000 [bits 64] push 0 ; same as bits 32 output push byte 0 ; 6A 00; 64 bits pushed onto stack push word 0 ; 66 6A 00 - 66h prefix, optimized to byte push dword 0 ; 6A 00 - optimized to byte; note 64 bits pushed onto stack push strict byte 0 ; 6A 00; 64 bits pushed onto stack push strict word 0 ; 66 68 0000 push strict dword 0 ; 68 00000000; note 64 bits pushed onto stack push 128 push byte 128 ; warning push word 128 push dword 128 push strict byte 128 ; warning push strict word 128 push strict dword 128
32.854167
72
0.725428
0d454bc8893158233031eec2d45059442aa616b9
22
asm
Assembly
src/main/fragment/mos6502-common/pwsc1_derefidx_vbuxx_ge_0_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/pwsc1_derefidx_vbuxx_ge_0_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/pwsc1_derefidx_vbuxx_ge_0_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
lda {c1}+1,x bpl {la1}
11
12
0.590909
2e72c91e9c35f239ae76da2df9ba4423247e8eb0
2,448
asm
Assembly
Program3.asm
pbhandari9541/COSC-2329
1ed145a5960037b48f0ba571179d11ba5f92b431
[ "BSD-2-Clause" ]
null
null
null
Program3.asm
pbhandari9541/COSC-2329
1ed145a5960037b48f0ba571179d11ba5f92b431
[ "BSD-2-Clause" ]
null
null
null
Program3.asm
pbhandari9541/COSC-2329
1ed145a5960037b48f0ba571179d11ba5f92b431
[ "BSD-2-Clause" ]
null
null
null
;Parameshor Bhandari ;Program: 3 ;Title: Conversion of octal to binary and base 4 org 100h section .data msg1 DB 0Ah,0Dh,'Parameshor Bhandari $' msg2 DB 0Ah,0Dh,'Enter an octal number onvert: $' msg3 DB 0Ah,0Dh,'The converted character in binary is: $' msg4 DB 0Ah,0Dh,'The converted character in Base4 is: $' msg5 DB 0Ah,0Dh,'press 1 to continue:' CHAR DB ' ','$' exCode DB 0 section .text start: mov dx, msg1 ;get message1 mov ah,09h ;display string function int 21h ;Display message1 mov ah,09h ;display string function mov dx, msg2 ;get message2 int 21h ;Display message2 ; input base octal value xor bx,bx ; bx holds input value mov ah,1 ; input char function int 21h ; read char into al top1: ; while (char != CR) cmp al,0Dh ; is char = CR? je out1 ; yes? finished with input je out2 push ax mov ax,8 ; set up to multiply bx by 8 mul bx ; dx:ax = bx*8 mov bx,ax pop ax and ax,0Fh ; convert from ASCII to base 10 value add bx,ax ; bx = old bx*8 + new digit mov ah,1 ; input char function int 21h ; read next character jmp top1 ; loop until done ; restore the register pop ax pop bx ret ; now, output it in binary out1: mov ah,9 ; print binary output label mov dx,msg3 int 21h ; for 16 times do this: mov cx, 16 ; loop counter top2: rol bx,1 ; rotate msb into CF jc one ; CF = 1? mov dl,'0' ; no, set up to print a 0 jmp print ; now print one: mov dl,'1' ; printing a 1 print: mov ah,2 ; print char fcn int 21h ; print it loop top2 ; loop until done ;now, output it on base 4 out2: mov ah,9 ; print octal output label mov dx,msg4 int 21h ; for 8 times do this: mov cx, 8 ; loop counter top3: rol bx,2 ; rotate top nybble into the bottom mov dl,bl ; put a copy in dl and dl,00000011b ; we only want the lower 2 bits cmp dl,3 ; is it in [0-3]? or dl,30h ; convert 0-3 to '0'-'3' jmp print2 ; now print print2: mov ah,2 ; print char fcn int 21h ; print it loop top3 ; loop until done finish: mov ah,9 ;user ask message mov dx,msg5 int 21h mov ah,1 ; input char function int 21h ; read char into al cmp al,031h ;compare if user input 1 je start ;jump start if user enter 1 jne exit ;else exit exit: mov ah,4Ch ;DOS function: exit program mov al,[exCode] ;Return exit code value int 21h ;call DOS. Terminte Program
26.322581
58
0.648284
be6cd9b3ca702c9c0b87124b6c89f832469d7be4
272
asm
Assembly
programs/oeis/167/A167421.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/167/A167421.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/167/A167421.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A167421: 2^n mod 22. ; 1,2,4,8,16,10,20,18,14,6,12,2,4,8,16,10,20,18,14,6,12,2,4,8,16,10,20,18,14,6,12,2,4,8,16,10,20,18,14,6,12,2,4,8,16,10,20,18,14,6,12,2,4,8,16,10,20,18,14,6,12,2,4,8,16,10,20,18,14,6,12,2,4,8,16,10,20,18,14,6 mov $1,2 pow $1,$0 mod $1,22 mov $0,$1
34
208
0.595588
70ad061206854ceece3401166e17dd4bc921a181
746
asm
Assembly
boot/print.asm
yds12/newcOS
ea646060a97c6b5190dfbfe9aa48855a8c5cf000
[ "MIT" ]
null
null
null
boot/print.asm
yds12/newcOS
ea646060a97c6b5190dfbfe9aa48855a8c5cf000
[ "MIT" ]
null
null
null
boot/print.asm
yds12/newcOS
ea646060a97c6b5190dfbfe9aa48855a8c5cf000
[ "MIT" ]
null
null
null
jmp end_print print: mov ah, 0x0e ; int 0x10 ah=0x0e (putchar) .loop: lodsb ; load string byte from si or al, al ; check if al is 0 (null char) jz .end int 0x10 ; bios print interruption jmp .loop ; print the other chars .end: ret msg_hello: db "> NewcOS booting...", 0x0a, 0x0d, 0 msg_disk_reset_err: db "> Disk reset err.", 0x0a, 0x0d, 0 msg_disk_reset_ok: db "> Disk reset OK.", 0x0a, 0x0d, 0 msg_disk_err: db "> Disk err.", 0x0a, 0x0d, 0 msg_disk_amount_err: db "> Num sectors read err.", 0x0a, 0x0d, 0 msg_disk_read_ok: db "> Disk read OK.", 0x0a, 0x0d, 0 msg_mmap_err: db "> MMAP err.", 0x0a, 0x0d, 0 msg_mmap_ok: db "> MMAP OK.", 0x0a, 0x0d, 0 end_print:
31.083333
64
0.615282
8898eb6ea0da172148b052c571c1b7182783f1ba
868
asm
Assembly
Lab6/main6.asm
YuriySavchenko/Assembler
d8ab6e8451d97255e639f0039f623ec00d5e9e2b
[ "Apache-2.0" ]
null
null
null
Lab6/main6.asm
YuriySavchenko/Assembler
d8ab6e8451d97255e639f0039f623ec00d5e9e2b
[ "Apache-2.0" ]
null
null
null
Lab6/main6.asm
YuriySavchenko/Assembler
d8ab6e8451d97255e639f0039f623ec00d5e9e2b
[ "Apache-2.0" ]
null
null
null
format ELF executable 3 include 'print.asm' include 'module.asm' include 'longop.asm' entry start segment readable executable start: push buff push value push 768 call StrHex_MY print buff, 768 print clr, 2 push numBuff push number push 32 call StrHex_MY print numBuff, 64 print clr, 2 xor ecx, ecx mov ecx, count .cycle: push value push number call SHR_LONGOP_PROC dec dword [count] jnz .cycle push buff push value push 768 call StrHex_MY print buff, 768 print clr, 2 push numBuff push number push 32 call StrHex_MY mov eax, 1 mov ebx, 0 int 0x80 segment readable writeable value dd 24 dup (3) number dd 4 count dd 4 buff db 768 dup(0) numBuff db 64 dup(0) clr db 13, 10
13.353846
27
0.601382
e3c334548433abdb2b327f743f2ddd3ac3228aa1
22,977
asm
Assembly
base/mvdm/dos/v86/doskrnl/dos/mstable.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
base/mvdm/dos/v86/doskrnl/dos/mstable.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
base/mvdm/dos/v86/doskrnl/dos/mstable.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
; SCCSID = @(#)ibmtable.asm 1.1 85/04/10 ; ; Table Segment for DOS ; .xlist .xcref include version.inc include mssw.asm .cref .list TITLE IBMTABLE - Table segment for DOS NAME IBMTABLE ; ; Microsoft Confidential ; Copyright (C) Microsoft Corporation 1991 ; All Rights Reserved. ; ; ========================================================================== ;** MS_TABLE.ASM ; ; Revision history: ; A000 version 4.0 Jan. 1988 ; A001 DCR 486 - Share installation for >32mb drives ; A006 DCR 503 - fake version for IBMCACHE ; A008 PTM 4070 - fake version for MS WINDOWS ; M006 Fake Version call no longer supported. 8/6/90 .xlist .xcref include version.inc include dosseg.inc include fastopen.inc include dossym.inc include syscall.inc .cref .list AsmVars <Debug, Redirector, ShareF> DOSCODE SEGMENT TableZero LABEL BYTE PUBLIC MSVERS PUBLIC MSTAB001s,MSTAB001e MSTAB001S label byte MSVERS EQU THIS WORD ; MS-DOS version in hex for $GET_VERSION MSMAJOR DB MAJOR_VERSION MSMINOR DB MINOR_VERSION ;hkn YRTAB & MONTAB moved to DOSDATA in ms_data.asm ; I_am YRTAB,8,<200,166,200,165,200,165,200,165> ; [SYSTEM] ; I_am MONTAB,12,<31,28,31,30,31,30,31,31,30,31,30,31> ; [SYSTEM] ; ; This is the error code mapping table for INT 21 errors. This table defines ; those error codes which are "allowed" for each system call. If the error ; code ABOUT to be returned is not "allowed" for the call, the correct action ; is to return the "real" error via Extended error, and one of the allowed ; errors on the actual call. ; ; The table is organized as follows: ; ; Each entry in the table is of variable size, but the first ; two bytes are always: ; ; Call#,Cnt of bytes following this byte ; ; EXAMPLE: ; Call 61 (OPEN) ; ; DB 61,5,12,3,2,4,5 ; ; 61 is the AH INT 21 call value for OPEN. ; 5 indicates that there are 5 bytes after this byte (12,3,2,4,5). ; Next five bytes are those error codes which are "allowed" on OPEN. ; The order of these values is not important EXCEPT FOR THE LAST ONE (in ; this case 5). The last value will be the one returned on the call if ; the "real" error is not one of the allowed ones. ; ; There are a number of calls (for instance all of the FCB calls) for which ; there is NO entry. This means that NO error codes are returned on this ; call, so set up an Extended error and leave the current error code alone. ; ; The table is terminated by a call value of 0FFh PUBLIC I21_MAP_E_TAB I21_MAP_E_TAB LABEL BYTE DB International,2,error_invalid_function,error_file_not_found DB MKDir,3,error_path_not_found,error_file_not_found,error_access_denied DB RMDir,4,error_current_directory,error_path_not_found DB error_file_not_found,error_access_denied DB CHDir,2,error_file_not_found,error_path_not_found DB Creat,4,error_path_not_found,error_file_not_found DB error_too_many_open_files DB error_access_denied DB Open,6,error_path_not_found,error_file_not_found,error_invalid_access DB error_too_many_open_files DB error_not_dos_disk,error_access_denied DB Close,1,error_invalid_handle DB Read,2,error_invalid_handle,error_access_denied DB Write,2,error_invalid_handle,error_access_denied DB Unlink,3,error_path_not_found,error_file_not_found,error_access_denied DB LSeek,2,error_invalid_handle,error_invalid_function DB CHMod,4,error_path_not_found,error_file_not_found,error_invalid_function DB error_access_denied DB IOCtl,5,error_invalid_drive,error_invalid_data,error_invalid_function DB error_invalid_handle,error_access_denied DB XDup,2,error_invalid_handle,error_too_many_open_files DB XDup2,2,error_invalid_handle,error_too_many_open_files DB Current_Dir,2,error_not_DOS_disk,error_invalid_drive DB Alloc,2,error_arena_trashed,error_not_enough_memory DB Dealloc,2,error_arena_trashed,error_invalid_block DB Setblock,3,error_arena_trashed,error_invalid_block,error_not_enough_memory DB Exec,8,error_path_not_found,error_invalid_function,error_file_not_found DB error_too_many_open_files,error_bad_format,error_bad_environment DB error_not_enough_memory,error_access_denied DB Find_First,3,error_path_not_found,error_file_not_found,error_no_more_files DB Find_Next,1,error_no_more_files DB Rename,5,error_not_same_device,error_path_not_found,error_file_not_found DB error_current_directory,error_access_denied DB File_Times,4,error_invalid_handle,error_not_enough_memory DB error_invalid_data,error_invalid_function DB AllocOper,1,error_invalid_function DB CreateTempFile,4,error_path_not_found,error_file_not_found DB error_too_many_open_files,error_access_denied DB CreateNewFile,5,error_file_exists,error_path_not_found DB error_file_not_found,error_too_many_open_files,error_access_denied ; DB LockOper,4,error_invalid_handle,error_invalid_function ; DB error_sharing_buffer_exceeded,error_lock_violation DB GetExtCntry,2,error_invalid_function,error_file_not_found ;DOS 3.3 DB GetSetCdPg,2,error_invalid_function,error_file_not_found ;DOS 3.3 DB Commit,1,error_invalid_handle ;DOS 3.3 DB ExtHandle,3,error_too_many_open_files,error_not_enough_memory DB error_invalid_function DB ExtOpen,10 DB error_path_not_found,error_file_not_found,error_invalid_access DB error_too_many_open_files,error_file_exists,error_not_enough_memory DB error_not_dos_disk,error_invalid_data DB error_invalid_function,error_access_denied DB GetSetMediaID,4,error_invalid_drive,error_invalid_data DB error_invalid_function,error_access_denied DB 0FFh PUBLIC DISPATCH ;MAXCALL EQU VAL1 ;MAXCOM EQU VAL2 ; Standard Functions DISPATCH LABEL WORD short_addr $ABORT ; 0 0 short_addr $STD_CON_INPUT ; 1 1 short_addr $STD_CON_OUTPUT ; 2 2 short_addr $STD_AUX_INPUT ; 3 3 short_addr $STD_AUX_OUTPUT ; 4 4 short_addr $STD_PRINTER_OUTPUT ; 5 5 short_addr $RAW_CON_IO ; 6 6 short_addr $RAW_CON_INPUT ; 7 7 short_addr $STD_CON_INPUT_NO_ECHO ; 8 8 short_addr $STD_CON_STRING_OUTPUT ; 9 9 short_addr $STD_CON_STRING_INPUT ; 10 A short_addr $STD_CON_INPUT_STATUS ; 11 B short_addr $STD_CON_INPUT_FLUSH ; 12 C short_addr $DISK_RESET ; 13 D short_addr $SET_DEFAULT_DRIVE ; 14 E short_addr $FCB_OPEN ; 15 F short_addr $FCB_CLOSE ; 16 10 short_addr $DIR_SEARCH_FIRST ; 17 11 short_addr $DIR_SEARCH_NEXT ; 18 12 short_addr $FCB_DELETE ; 19 13 short_addr $FCB_SEQ_READ ; 20 14 short_addr $FCB_SEQ_WRITE ; 21 15 short_addr $FCB_CREATE ; 22 16 short_addr $FCB_RENAME ; 23 17 short_addr NO_OP ; 24 18 short_addr $GET_DEFAULT_DRIVE ; 25 19 short_addr $SET_DMA ; 26 1A ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; ; C A V E A T P R O G R A M M E R ; ; ; short_addr $SLEAZEFUNC ; 27 1B short_addr $SLEAZEFUNCDL ; 28 1C ; ; ; C A V E A T P R O G R A M M E R ; ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; short_addr NO_OP ; 29 1D short_addr NO_OP ; 30 1E ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; ; C A V E A T P R O G R A M M E R ; ; ; short_addr $GET_DEFAULT_DPB ; 31 1F ; ; ; C A V E A T P R O G R A M M E R ; ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; short_addr NO_OP ; 32 20 short_addr $FCB_RANDOM_READ ; 33 21 short_addr $FCB_RANDOM_WRITE ; 34 22 short_addr $GET_FCB_FILE_LENGTH ; 35 23 short_addr $GET_FCB_POSITION ; 36 24 VAL1 = ($-DISPATCH)/2 - 1 PUBLIC MAXCALL MaxCall = VAL1 ; Extended Functions short_addr $SET_INTERRUPT_VECTOR ; 37 25 ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; ; C A V E A T P R O G R A M M E R ; ; ; short_addr $CREATE_PROCESS_DATA_BLOCK ; 38 26 ; ; ; C A V E A T P R O G R A M M E R ; ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; short_addr $FCB_RANDOM_READ_BLOCK ; 39 27 short_addr $FCB_RANDOM_WRITE_BLOCK ; 40 28 short_addr $PARSE_FILE_DESCRIPTOR ; 41 29 short_addr $GET_DATE ; 42 2A short_addr $SET_DATE ; 43 2B short_addr $GET_TIME ; 44 2C short_addr $SET_TIME ; 45 2D short_addr $SET_VERIFY_ON_WRITE ; 46 2E ; Extended functionality group short_addr $GET_DMA ; 47 2F short_addr $GET_VERSION ; 48 30 short_addr $Keep_Process ; 49 31 ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; ; C A V E A T P R O G R A M M E R ; ; ; short_addr $GET_DPB ; 50 32 ; ; ; C A V E A T P R O G R A M M E R ; ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; short_addr $SET_CTRL_C_TRAPPING ; 51 33 short_addr $GET_INDOS_FLAG ; 52 34 short_addr $GET_INTERRUPT_VECTOR ; 53 35 short_addr $GET_DRIVE_FREESPACE ; 54 36 short_addr $CHAR_OPER ; 55 37 short_addr $INTERNATIONAL ; 56 38 ; XENIX CALLS ; Directory Group short_addr $MKDIR ; 57 39 short_addr $RMDIR ; 58 3A short_addr $CHDIR ; 59 3B ; File Group short_addr $CREAT ; 60 3C short_addr $OPEN ; 61 3D short_addr $CLOSE ; 62 3E short_addr $READ ; 63 3F short_addr $WRITE ; 64 40 short_addr $UNLINK ; 65 41 short_addr $LSEEK ; 66 42 short_addr $CHMOD ; 67 43 short_addr $IOCTL ; 68 44 short_addr $DUP ; 69 45 short_addr $DUP2 ; 70 46 short_addr $CURRENT_DIR ; 71 47 ; Memory Group short_addr $ALLOC ; 72 48 short_addr $DEALLOC ; 73 49 short_addr $SETBLOCK ; 74 4A ; Process Group short_addr $EXEC ; 75 4B short_addr $EXIT ; 76 4C short_addr $WAIT ; 77 4D short_addr $FIND_FIRST ; 78 4E ; Special Group short_addr $FIND_NEXT ; 79 4F ; SPECIAL SYSTEM GROUP ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; ; C A V E A T P R O G R A M M E R ; ; ; short_addr $SET_CURRENT_PDB ; 80 50 short_addr $GET_CURRENT_PDB ; 81 51 short_addr $GET_IN_VARS ; 82 52 short_addr $SETDPB ; 83 53 ; ; ; C A V E A T P R O G R A M M E R ; ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; short_addr $GET_VERIFY_ON_WRITE ; 84 54 ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; ; C A V E A T P R O G R A M M E R ; ; ; short_addr $DUP_PDB ; 85 55 ; ; ; C A V E A T P R O G R A M M E R ; ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; short_addr $RENAME ; 86 56 short_addr $FILE_TIMES ; 87 57 short_addr $AllocOper ; 88 58 ; Network extention system calls short_addr $GetExtendedError ; 89 59 short_addr $CreateTempFile ; 90 5A short_addr $CreateNewFile ; 91 5B short_addr $LockOper ; 92 5C short_addr $ServerCall ; 93 5D short_addr $UserOper ; 94 5E short_addr $AssignOper ; 95 5F short_addr $NameTrans ; 96 60 short_addr NO_OP ; 97 61 short_addr $Get_Current_PDB ; 98 62 ; the next call is reserved for hangool sys call short_addr $ECS_Call ; 99 63 ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; ; C A V E A T P R O G R A M M E R ; ; ; short_addr $Set_Printer_Flag ; 100 64 ; ; ; C A V E A T P R O G R A M M E R ; ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; short_addr $GetExtCntry ; 101 65 short_addr $GetSetCdPg ; 102 66 short_addr $ExtHandle ; 103 67 short_addr $Commit ; 104 68 short_addr $GSetMediaID ; 105 69 ;AN000; short_addr $Commit ; 106 6A ;AN000; short_addr NO_OP ; 107 6B ; IFS_IOCTL no longer ; supported short_addr $Extended_Open ; 108 6C ;AN000; ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; ; C A V E A T P R O G R A M M E R ; ; ; ifdef ROMEXEC short_addr $ROM_FIND_FIRST ; 109 6D short_addr $ROM_FIND_NEXT ; 110 6E else short_addr NO_OP ; 109 6d short_addr NO_OP ; 110 6e endif ; ; ; C A V E A T P R O G R A M M E R ; ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; short_addr NO_OP ; 111 6f short_addr NO_OP ; 112 70 short_addr $LongFileNameAPI ; 113 71 VAL2 = ($-DISPATCH)/2 - 1 PUBLIC MAXCOM MaxCom = VAL2 If Installed PUBLIC FOO FOO LABEL WORD Short_addr Leave2F DTab DW OFFSET DOSCODE:DOSTable PUBLIC FOO,DTAB ; BUGBUG sudeepb 15-Mar-1991 All the NO_OP below are to be scrutinized DOSTable LABEL WORD DB (DOSTableEnd-DOSTable-1)/2 Short_addr DOSInstall ; 0 install check Short_addr NO_OP ; 1 DOS_CLOSE Short_addr RECSET ; 2 RECSET Short_addr DOSGetGroup ; 3 Get DOSGROUP Short_addr PATHCHRCMP ; 4 PATHCHRCMP Short_addr OUTT ; 5 OUT Short_addr NET_I24_ENTRY ; 6 NET_I24_ENTRY Short_addr NO_OP ; 7 PLACEBUF Short_addr FREE_SFT ; 8 FREE_SFT Short_addr NO_OP ; 9 BUFWRITE Short_addr NO_OP ; 10 SHARE_VIOLATION Short_addr SHARE_ERROR ; 11 SHARE_ERROR Short_addr SET_SFT_MODE ; 12 SET_SFT_MODE Short_addr NO_OP ; 13 DATE16 Short_addr idle ; 14 empty slot Short_addr NO_OP ; 15 SCANPLACE Short_addr idle ; 16 empty slot Short_addr StrCpy ; 17 StrCpy Short_addr StrLen ; 18 StrLen Short_addr Ucase ; 19 Ucase Short_addr NO_OP ; 20 POINTCOMP Short_addr NO_OP ; 21 CHECKFLUSH Short_addr SFFromSFN ; 22 SFFromSFN Short_addr GetCDSFromDrv ; 23 GetCDSFromDrv Short_addr Get_User_Stack ; 24 Get_User_Stack Short_addr GetThisDrv ; 25 GetThisDrv Short_addr DriveFromText ; 26 DriveFromText Short_addr NO_OP ; 27 SETYEAR Short_addr NO_OP ; 28 DSUM Short_addr NO_OP ; 29 DSLIDE Short_addr StrCmp ; 30 StrCmp Short_addr InitCDS ; 31 initcds Short_addr pJFNFromHandle ; 32 pJfnFromHandle Short_addr $NameTrans ; 33 $NameTrans Short_addr CAL_LK ; 34 CAL_LK Short_addr DEVNAME ; 35 DEVNAME Short_addr Idle ; 36 Idle Short_addr DStrLen ; 37 DStrLen Short_addr NLS_OPEN ; 38 NLS_OPEN DOS 3.3 Short_addr $CLOSE ; 39 $CLOSE DOS 3.3 Short_addr NLS_LSEEK ; 40 NLS_LSEEK DOS 3.3 Short_addr $READ ; 41 $READ DOS 3.3 Short_addr FastInit ; 42 FastInit DOS 3.4 ;AN000; Short_addr NLS_IOCTL ; 43 NLS_IOCTL DOS 3.3 Short_addr GetDevList ; 44 GetDevList DOS 3.3 Short_addr NLS_GETEXT ; 45 NLS_GETEXT DOS 3.3 Short_addr MSG_RETRIEVAL ; 46 MSG_RETRIEVAL DOS 4.0 ;AN000; Short_addr NO_OP ; M006: 47 no longer supported ;*** Short_addr Fake_Version ; 47 Fake_Version DOS 4.0 ;AN006; DOSTableEnd LABEL BYTE ENDIF ; NOTE WARNING: This declaration of HEADER must be THE LAST thing in this ; module. The reason is so that the data alignments are the same in ; IBM-DOS and MS-DOS up through header. PUBLIC HEADER Header LABEL BYTE IF DEBUG DB 13,10,"Debugging DOS version " DB MAJOR_VERSION + "0" DB "." DB (MINOR_VERSION / 10) + "0" DB (MINOR_VERSION MOD 10) + "0" ENDIF IF NOT IBM ifndef NEC_98 DB 13,10,"MS-DOS version " else ;NEC_98 DB "$",10,"MS-DOS version " endif ;NEC_98 DB MAJOR_VERSION + "0" DB "." DB (MINOR_VERSION / 10) + "0" DB (MINOR_VERSION MOD 10) + "0" IF HIGHMEM DB "H" ENDIF DB 13,10, "Copyright 1981,82,83,84,88 Microsoft Corp.",13,10,"$" ENDIF IF DEBUG DB 13,10,"$" ENDIF MSTAB001E label byte include copyrigh.inc DOSCODE ENDS ; ========================================================================== END 
48.372632
84
0.442094
a197a0281e84be2a63b9d646e858aa19f20d12f9
436
asm
Assembly
programs/oeis/209/A209197.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/209/A209197.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/209/A209197.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A209197: Column 1 of triangle A209196. ; 1,4,32,487,11113,335745,12607257,565877928,29553415078,1760584360722,117828762999498,8752769915058447,714626485356930711,63609663369881873031,6130647517448380412727,636052622643842997577302,70679525819378610579659532,8375262433274665594692923984 lpb $0 mov $2,$0 sub $0,1 seq $2,108288 ; Main diagonal of table A060543; a(n) = C((n+1)^2-1, n*(n+1)). add $3,$2 lpe mov $0,$3 add $0,1
36.333333
247
0.772936
d4825429a0df1867c37b28df58989a9e3bf00ca2
7,979
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_2904_2070.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_2904_2070.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_2904_2070.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %r15 push %r8 push %rcx push %rdi push %rsi lea addresses_normal_ht+0x12afb, %rsi lea addresses_WC_ht+0x1e7fb, %rdi nop nop nop add %r14, %r14 mov $90, %rcx rep movsl nop nop nop nop xor %r8, %r8 lea addresses_UC_ht+0x68fb, %r15 nop nop nop sub $25391, %r11 and $0xffffffffffffffc0, %r15 vmovaps (%r15), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $1, %xmm2, %r8 nop nop nop nop and $45007, %rcx lea addresses_WT_ht+0xbada, %rsi lea addresses_normal_ht+0x1e87b, %rdi nop nop nop mfence mov $82, %rcx rep movsq nop nop nop nop and %r15, %r15 lea addresses_UC_ht+0xb8eb, %r14 clflush (%r14) nop nop nop nop nop and $21937, %rdi movups (%r14), %xmm6 vpextrq $1, %xmm6, %r11 nop nop xor %r11, %r11 lea addresses_D_ht+0x15c3b, %r14 nop nop nop add %r8, %r8 mov $0x6162636465666768, %rsi movq %rsi, %xmm4 and $0xffffffffffffffc0, %r14 vmovntdq %ymm4, (%r14) nop nop inc %r14 lea addresses_UC_ht+0x4fb, %rsi nop cmp $5099, %r14 mov $0x6162636465666768, %r8 movq %r8, %xmm3 vmovups %ymm3, (%rsi) nop nop nop nop cmp $61305, %rsi lea addresses_D_ht+0x13cfb, %r8 nop nop nop nop cmp %r11, %r11 and $0xffffffffffffffc0, %r8 vmovaps (%r8), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $0, %xmm4, %r12 and $52956, %rdi lea addresses_UC_ht+0x28fb, %rcx nop nop nop nop sub %rsi, %rsi movb $0x61, (%rcx) nop cmp $6337, %rsi lea addresses_WT_ht+0x38fb, %rsi lea addresses_WC_ht+0x1e8fb, %rdi clflush (%rdi) nop nop nop nop nop cmp %r8, %r8 mov $74, %rcx rep movsw cmp $38978, %r11 lea addresses_A_ht+0x1126b, %rsi lea addresses_UC_ht+0x170fb, %rdi nop nop nop nop nop cmp $54710, %r14 mov $90, %rcx rep movsb nop nop add %r15, %r15 lea addresses_normal_ht+0x71fb, %r8 nop nop nop nop nop cmp $42431, %rdi movb $0x61, (%r8) nop xor %rdi, %rdi pop %rsi pop %rdi pop %rcx pop %r8 pop %r15 pop %r14 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r14 push %r8 push %r9 push %rbp push %rdi // Store lea addresses_A+0x50fb, %rdi nop add %r13, %r13 movb $0x51, (%rdi) nop nop nop dec %r8 // Store lea addresses_D+0x40fb, %r9 nop nop nop xor $52911, %r14 movb $0x51, (%r9) sub %r8, %r8 // Store lea addresses_normal+0x60fb, %r12 nop add $449, %r9 movl $0x51525354, (%r12) xor $4231, %rbp // Store lea addresses_RW+0x431b, %rbp nop nop add %r14, %r14 mov $0x5152535455565758, %rdi movq %rdi, %xmm1 vmovntdq %ymm1, (%rbp) nop nop nop nop xor $54101, %rdi // Faulty Load lea addresses_A+0x50fb, %rbp clflush (%rbp) nop sub $19868, %r14 mov (%rbp), %r8 lea oracles, %rbp and $0xff, %r8 shlq $12, %r8 mov (%rbp,%r8,1), %r8 pop %rdi pop %rbp pop %r9 pop %r8 pop %r14 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': True, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 8, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 4, 'size': 32, 'same': False, 'NT': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': True, 'congruent': 11, 'size': 32, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 4, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 6, 'size': 32, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': True, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': True, 'congruent': 7, 'size': 1, 'same': False, 'NT': False}} {'54': 2904} 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 */
32.434959
2,999
0.656849
77244f9912f8529b5eb23c0ddac2da2cf9bd8680
9,597
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_zr_sm_/i7-7700_9_0x48.log_17342_2327.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_zr_sm_/i7-7700_9_0x48.log_17342_2327.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_zr_sm_/i7-7700_9_0x48.log_17342_2327.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r8 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x12a5a, %rsi lea addresses_WC_ht+0xa9ea, %rdi nop nop and %rbx, %rbx mov $27, %rcx rep movsq nop nop add %rsi, %rsi lea addresses_WT_ht+0xdbda, %r15 clflush (%r15) nop nop nop nop nop sub %r12, %r12 and $0xffffffffffffffc0, %r15 movaps (%r15), %xmm2 vpextrq $1, %xmm2, %rdx nop nop nop nop and %rdi, %rdi lea addresses_WC_ht+0x621a, %rsi lea addresses_normal_ht+0x1dc8a, %rdi nop nop nop nop dec %r8 mov $90, %rcx rep movsb and %rsi, %rsi lea addresses_WT_ht+0x190da, %r8 nop sub $59756, %rdx movb (%r8), %cl nop nop inc %rsi lea addresses_WT_ht+0x1e1da, %rbx nop nop nop nop nop and $44475, %rdi movw $0x6162, (%rbx) nop nop nop nop nop sub %rcx, %rcx lea addresses_D_ht+0xc9ce, %rdx nop add $35041, %rbx movl $0x61626364, (%rdx) add $792, %rbx lea addresses_WC_ht+0x1dda, %rsi lea addresses_WT_ht+0xc7ae, %rdi nop cmp $56256, %r8 mov $4, %rcx rep movsb xor $65412, %r8 lea addresses_WT_ht+0x1e4ea, %rdx nop nop sub $44027, %rdi movl $0x61626364, (%rdx) add $37549, %rcx lea addresses_WC_ht+0x1c182, %rcx clflush (%rcx) nop add %r12, %r12 mov (%rcx), %r8d nop nop cmp $51073, %rdx lea addresses_D_ht+0x19d7a, %rbx nop nop and %r12, %r12 movb $0x61, (%rbx) nop cmp $13671, %r12 lea addresses_WC_ht+0x31da, %rcx sub $24592, %rdx movups (%rcx), %xmm5 vpextrq $0, %xmm5, %rsi nop nop nop and $53367, %rsi lea addresses_UC_ht+0x1061a, %rsi nop nop nop nop nop add %rcx, %rcx mov $0x6162636465666768, %r8 movq %r8, %xmm0 movups %xmm0, (%rsi) nop nop nop nop sub $15848, %r12 lea addresses_D_ht+0x5016, %rsi lea addresses_WT_ht+0x1bdda, %rdi nop nop nop nop lfence mov $111, %rcx rep movsw nop nop nop nop nop xor %rbx, %rbx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r8 pop %r15 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %r8 push %rbp push %rbx push %rdx // Store mov $0xc12, %r13 nop nop nop add $43441, %rbp movw $0x5152, (%r13) nop nop nop dec %r10 // Store lea addresses_RW+0xc4da, %rdx nop add $33678, %r10 mov $0x5152535455565758, %r13 movq %r13, %xmm5 movups %xmm5, (%rdx) xor $24831, %rdx // Store lea addresses_US+0x50de, %rdx clflush (%rdx) xor %rbx, %rbx mov $0x5152535455565758, %rbp movq %rbp, (%rdx) nop nop nop nop nop xor $33517, %r13 // Store lea addresses_UC+0x18c4a, %rbp nop add %r13, %r13 mov $0x5152535455565758, %rdx movq %rdx, %xmm2 movups %xmm2, (%rbp) nop nop nop and $17058, %rbp // Store mov $0x5a9cd200000009da, %r13 clflush (%r13) nop nop nop nop nop and %r10, %r10 movb $0x51, (%r13) nop nop nop add $40865, %r8 // Store lea addresses_D+0x1c2da, %rbp nop nop nop nop nop dec %r10 movl $0x51525354, (%rbp) nop cmp %r14, %r14 // Load lea addresses_normal+0xdfda, %r8 add %r10, %r10 movups (%r8), %xmm1 vpextrq $1, %xmm1, %rdx // Exception!!! nop mov (0), %r13 nop nop nop add $20677, %rbx // Store mov $0x67278700000005da, %r8 nop nop cmp %r10, %r10 movl $0x51525354, (%r8) nop nop nop nop cmp $52657, %rbx // Store lea addresses_normal+0x14b8a, %rbx nop nop nop nop inc %r10 mov $0x5152535455565758, %rbp movq %rbp, %xmm5 vmovups %ymm5, (%rbx) nop nop inc %r13 // Faulty Load mov $0x5a9cd200000009da, %r14 nop nop nop nop nop add $52585, %rdx mov (%r14), %ebx lea oracles, %r10 and $0xff, %rbx shlq $12, %rbx mov (%r10,%rbx,1), %rbx pop %rdx pop %rbx pop %rbp pop %r8 pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 3, 'size': 2, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 8, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 4, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 8, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 9, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': True, 'congruent': 9, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 4, 'size': 32, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': True, 'congruent': 9, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 8, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 11, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 2, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 4, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': True, 'congruent': 1, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 5, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 6, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 2, 'size': 16, 'same': True, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}} {'00': 287, '51': 17055} 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 */
29.43865
2,999
0.650933
341cce7706246c88dd63d7e4769a18a1f3978eab
2,692
asm
Assembly
programs/oeis/017/A017391.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/017/A017391.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/017/A017391.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A017391: a(n) = (11*n)^3. ; 0,1331,10648,35937,85184,166375,287496,456533,681472,970299,1331000,1771561,2299968,2924207,3652264,4492125,5451776,6539203,7762392,9129329,10648000,12326391,14172488,16194277,18399744,20796875,23393656,26198073,29218112,32461759,35937000,39651821,43614208,47832147,52313624,57066625,62099136,67419143,73034632,78953589,85184000,91733851,98611128,105823817,113379904,121287375,129554216,138188413,147197952,156590819,166375000,176558481,187149248,198155287,209584584,221445125,233744896,246491883,259694072,273359449,287496000,302111711,317214568,332812557,348913664,365525875,382657176,400315553,418508992,437245479,456533000,476379541,496793088,517781627,539353144,561515625,584277056,607645423,631628712,656234909,681472000,707347971,733870808,761048497,788889024,817400375,846590536,876467493,907039232,938313739,970299000,1003003001,1036433728,1070599167,1105507304,1141166125,1177583616,1214767763,1252726552,1291467969,1331000000,1371330631,1412467848,1454419637,1497193984,1540798875,1585242296,1630532233,1676676672,1723683599,1771561000,1820316861,1869959168,1920495907,1971935064,2024284625,2077552576,2131746903,2186875592,2242946629,2299968000,2357947691,2416893688,2476813977,2537716544,2599609375,2662500456,2726397773,2791309312,2857243059,2924207000,2992209121,3061257408,3131359847,3202524424,3274759125,3348071936,3422470843,3497963832,3574558889,3652264000,3731087151,3811036328,3892119517,3974344704,4057719875,4142253016,4227952113,4314825152,4402880119,4492125000,4582567781,4674216448,4767078987,4861163384,4956477625,5053029696,5150827583,5249879272,5350192749,5451776000,5554637011,5658783768,5764224257,5870966464,5979018375,6088387976,6199083253,6311112192,6424482779,6539203000,6655280841,6772724288,6891541327,7011739944,7133328125,7256313856,7380705123,7506509912,7633736209,7762392000,7892485271,8024024008,8157016197,8291469824,8427392875,8564793336,8703679193,8844058432,8985939039,9129329000,9274236301,9420668928,9568634867,9718142104,9869198625,10021812416,10175991463,10331743752,10489077269,10648000000,10808519931,10970645048,11134383337,11299742784,11466731375,11635357096,11805627933,11977551872,12151136899,12326391000,12503322161,12681938368,12862247607,13044257864,13227977125,13413413376,13600574603,13789468792,13980103929,14172488000,14366628991,14562534888,14760213677,14959673344,15160921875,15363967256,15568817473,15775480512,15983964359,16194277000,16406426421,16620420608,16836267547,17053975224,17273551625,17495004736,17718342543,17943573032,18170704189,18399744000,18630700451,18863581528,19098395217,19335149504,19573852375,19814511816,20057135813,20301732352,20548309419 mov $1,$0 pow $1,3 mul $1,1331
384.571429
2,631
0.895617
021b5a8900c4964de870e4324fad50117f585229
316
asm
Assembly
kernel/arch/x86_64/io/mem.asm
qookei/quack
47808580dda218cb47d0c9ca04b51eb24f1e2266
[ "Zlib" ]
16
2019-06-25T15:18:03.000Z
2021-10-10T18:52:30.000Z
kernel/arch/x86_64/io/mem.asm
qookei/quack
47808580dda218cb47d0c9ca04b51eb24f1e2266
[ "Zlib" ]
null
null
null
kernel/arch/x86_64/io/mem.asm
qookei/quack
47808580dda218cb47d0c9ca04b51eb24f1e2266
[ "Zlib" ]
null
null
null
bits 64 global arch_mem_fast_memcpy arch_mem_fast_memcpy: push rdi push rsi push rdx mov rcx, rdx rep movsb pop rdx pop rsi pop rdi ret global arch_mem_fast_memset arch_mem_fast_memset: push rax push rdi push rsi push rdx mov rcx, rdx mov rax, rsi rep stosb pop rdx pop rsi pop rdi pop rax ret
11.285714
27
0.753165
533f085237508a663a62d2dcea10505838999532
122
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_dconst_sqr2_2.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_dconst_sqr2_2.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_dconst_sqr2_2.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
SECTION code_fp_math48 PUBLIC asm_dconst_sqr2_2 EXTERN am48_dconst_sqr2_2 defc asm_dconst_sqr2_2 = am48_dconst_sqr2_2
13.555556
43
0.877049
66d7743d2955be9e2269ebdf2b6985ba3375c247
2,447
asm
Assembly
common/sectmap.asm
DigitalMars/optlink
493de158282046641ef2a3a60a88e25e26d88ec4
[ "BSL-1.0" ]
28
2015-02-03T01:38:24.000Z
2022-03-23T05:48:24.000Z
common/sectmap.asm
DigitalMars/optlink
493de158282046641ef2a3a60a88e25e26d88ec4
[ "BSL-1.0" ]
20
2015-01-02T14:51:20.000Z
2021-01-09T21:37:19.000Z
common/sectmap.asm
DigitalMars/optlink
493de158282046641ef2a3a60a88e25e26d88ec4
[ "BSL-1.0" ]
9
2015-02-11T17:43:56.000Z
2019-09-05T11:07:02.000Z
TITLE SECTMAP - Copyright (C) SLR Systems 1993 INCLUDE MACROS if any_overlays .DATA .CODE PASS2_TEXT ASSUME DS:NOTHING ALLOW_SECTION_MAP PROC ; ; ; if any_overlays if fg_os2 RELEASE SECTIONMAP_OK_SEM else CALL DO_PRINT_SECTIONS endif endif RET ALLOW_SECTION_MAP ENDP ASSUME DS:NOTHING DO_PRINT_SECTIONS PROC ; ;OUTPUT A DETAILED LIST DESCRIBING ALL SECTIONS IN FILE (IF OVERLAYS) ; BITT SEGMENTS_MAP JZ 9$ BITT DOING_OVERLAYS JZ 9$ if fg_os2 CAPTURE SECTIONMAP_OK_SEM endif LEA SI,SECTIONS_HEADER CALL HEADER_OUT LDS SI,FIRST_SECTION FIXES JMP 8$ 1$: MOV WM_CURN_SECTION.OFFS,SI MOV WM_CURN_SECTION.SEGM,DS SYM_CONV_DS PUSHM [SI]._SECT_NEXT_SECTION_ORDER.OFFS,[SI]._SECT_NEXT_SECTION_ORDER.SEGM CMP [SI]._SECT_NUMBER,0 JZ 5$ ;SKIP ROOT TEST [SI]._SECT_FLAGS,MASK SECT_CODEVIEW JNZ 5$ ;SKIP CODEVIEW CALL PRINT_SECTION 5$: POPM DS,SI 8$: MOV CX,DS OR CX,CX JNZ 1$ 9$: RET DO_PRINT_SECTIONS ENDP ASSUME DS:NOTHING PRINT_SECTION PROC NEAR ; ;FIRST, SECTION # ; LEA DI,XOUTBUF MOV AL,' ' STOSB MOV AX,[SI]._SECT_NUMBER XOR DX,DX CALL HEXDWOUTSH LEA CX,XOUTBUF+7 CALL SPACE_OUT ; ;NOW PRINT OUTPUT FILENAME ; LDS SI,[SI]._SECT_OUTFILE SYM_CONV_DS LDS SI,[SI]._OF_FILE_LIST LEA SI,[SI].FILE_LIST_NFN CALL CONV_MOVE_PRIM_EXT LEA CX,XOUTBUF+20 CALL SPACE_OUT ; ;NOW PRINT FILE ADDRESS ; LDS SI,WM_CURN_SECTION SYM_CONV_DS MOV AX,[SI]._SECT_FILE_ADDRESS.LW MOV DX,[SI]._SECT_FILE_ADDRESS.HW CALL SHR_DXAX_4 ;CONVERT TO PARAGRAPH CALL OUT5 ;PRINT IT ; ;NOW PRINT FILE SIZE ; MOV AX,[SI]._SECT_FILE_SIZE XOR DX,DX CALL OUT5 ; ;NOW OUTPUT MEMORY LOAD ADDRESS ; MOV AX,[SI]._SECT_BASE_ADDRESS.LW MOV DX,[SI]._SECT_BASE_ADDRESS.HW CALL SHR_DXAX_4 CALL OUT5 ; ;NOW OUTPUT MEMORY SIZE ; MOV AX,[SI]._SECT_MAX_ADDRESS.LW MOV DX,[SI]._SECT_MAX_ADDRESS.HW ADD AX,15 ADC DX,0 SUB AX,[SI]._SECT_BASE_ADDRESS.LW SBB DX,[SI]._SECT_BASE_ADDRESS.HW CALL SHR_DXAX_4 CALL OUT5 if fg_plink endif CALL LINE_OUT RET PRINT_SECTION ENDP iff data_in_codeseg .DATA endif if fg_plink SECTIONS_HEADER DB LENGTH SECTIONS_HEADER-1,0DH,0AH,\ ' Sect# Fname Faddr Fsize Maddr Msize Parent Name',0dh,0ah else SECTIONS_HEADER DB LENGTH SECTIONS_HEADER-1,0DH,0AH,\ ' Sect# Fname Faddr Fsize Maddr Msize',0dh,0ah endif endif END
14.920732
77
0.711075
1be00b92d479f4da792b2979875eee5faaac6ee6
86
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_dsub.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_dsub.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_dsub.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
SECTION code_fp_math48 PUBLIC asm_dsub EXTERN am48_dsub defc asm_dsub = am48_dsub
9.555556
25
0.825581
6013a946b4ec6b4f4e0b98f2d1605cb2bd7567b9
223
asm
Assembly
gbasm/tests/test.asm
MrCairo/pygbasm
96acf1f5dec168ff084b1095db8ca372fc17e7be
[ "MIT" ]
2
2019-05-08T00:29:09.000Z
2019-05-08T00:29:12.000Z
gbasm/tests/test.asm
MrCairo/pygbasm
96acf1f5dec168ff084b1095db8ca372fc17e7be
[ "MIT" ]
null
null
null
gbasm/tests/test.asm
MrCairo/pygbasm
96acf1f5dec168ff084b1095db8ca372fc17e7be
[ "MIT" ]
null
null
null
SECTION "NewSection", WRAM0[$C100] IMAGES EQU $10 BIGVAL EQU $C020 .program_start: ld B, $16 ; This is a comment ld BC, $FFD2 ld a, IMAGES LD (BC), A JR .program_start LD (BIGVAL), A ret
15.928571
34
0.587444
8653161942ab5480dcd4982aef1aaa48051ab71f
514
asm
Assembly
oeis/264/A264263.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/264/A264263.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/264/A264263.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A264263: The number of distinct nontrivial integral cevians of an isosceles triangle, with base of length 1 and legs of length n, that divide the base into two integral parts. ; Submitted by Christian Krause ; 0,1,1,2,2,1,3,3,1,3,3,2,5,3,1,3,7,3,3,3,1,5,5,2,5,3,3,7,3,1,5,11,3,3,3,1,5,11,3,4,4,3,7,3,3,7,7,3,5,5,1,7,7,1,3,3,3,11,11,5,5,7,3,3,3,3,15,7,1,3,7,7,11,5,1,5,11,3,3,7,3,7,7,2,8,5,5,11,3,1,3,7,7,15,7,1,7,7,1,3 mov $1,$0 mul $1,2 seq $1,347191 ; Number of divisors of n^2-1. mov $0,$1 div $0,2 sub $0,1
46.727273
210
0.64786
667bfc01a6315e4128228cca95d567a2a079e785
6,028
asm
Assembly
maps/unused/VictoryRoad.asm
zavytar/pokecolorless
5fa4930f9f90acaff7ae62367e3d9feae0404464
[ "blessing" ]
null
null
null
maps/unused/VictoryRoad.asm
zavytar/pokecolorless
5fa4930f9f90acaff7ae62367e3d9feae0404464
[ "blessing" ]
null
null
null
maps/unused/VictoryRoad.asm
zavytar/pokecolorless
5fa4930f9f90acaff7ae62367e3d9feae0404464
[ "blessing" ]
null
null
null
object_const_def ; object_event constants const VICTORYROAD_SILVER const VICTORYROAD_POKE_BALL1 const VICTORYROAD_POKE_BALL2 const VICTORYROAD_POKE_BALL3 const VICTORYROAD_POKE_BALL4 const VICTORYROAD_POKE_BALL5 VictoryRoad_MapScripts: db 2 ; scene scripts scene_script .DummyScene0 ; SCENE_DEFAULT scene_script .DummyScene1 ; SCENE_FINISHED db 0 ; callbacks .DummyScene0: end .DummyScene1: end VictoryRoadRivalLeft: moveobject VICTORYROAD_SILVER, 18, 11 turnobject PLAYER, DOWN showemote EMOTE_SHOCK, PLAYER, 15 special FadeOutMusic pause 15 appear VICTORYROAD_SILVER applymovement VICTORYROAD_SILVER, MovementData_0x74539 scall VictoryRoadRivalNext applymovement VICTORYROAD_SILVER, MovementData_0x7454c disappear VICTORYROAD_SILVER setscene SCENE_FINISHED playmapmusic end VictoryRoadRivalRight: turnobject PLAYER, DOWN showemote EMOTE_SHOCK, PLAYER, 15 special FadeOutMusic pause 15 appear VICTORYROAD_SILVER applymovement VICTORYROAD_SILVER, MovementData_0x74542 scall VictoryRoadRivalNext applymovement VICTORYROAD_SILVER, MovementData_0x74555 disappear VICTORYROAD_SILVER setscene SCENE_FINISHED playmapmusic end VictoryRoadRivalNext: turnobject PLAYER, DOWN playmusic MUSIC_RIVAL_ENCOUNTER opentext writetext VictoryRoadRivalBeforeText waitbutton closetext setevent EVENT_RIVAL_VICTORY_ROAD ; checkevent EVENT_GOT_TOTODILE_FROM_ELM ; iftrue .GotTotodile ; checkevent EVENT_GOT_CHIKORITA_FROM_ELM ; iftrue .GotChikorita winlosstext VictoryRoadRivalDefeatText, VictoryRoadRivalVictoryText setlasttalked VICTORYROAD_SILVER loadtrainer RIVAL1, RIVAL1_5_TOTODILE startbattle dontrestartmapmusic reloadmapafterbattle sjump .AfterBattle .GotTotodile: winlosstext VictoryRoadRivalDefeatText, VictoryRoadRivalVictoryText setlasttalked VICTORYROAD_SILVER loadtrainer RIVAL1, RIVAL1_5_CHIKORITA startbattle dontrestartmapmusic reloadmapafterbattle sjump .AfterBattle .GotChikorita: winlosstext VictoryRoadRivalDefeatText, VictoryRoadRivalVictoryText setlasttalked VICTORYROAD_SILVER loadtrainer RIVAL1, RIVAL1_5_CYNDAQUIL startbattle dontrestartmapmusic reloadmapafterbattle sjump .AfterBattle .AfterBattle: playmusic MUSIC_RIVAL_AFTER opentext writetext VictoryRoadRivalAfterText waitbutton closetext end VictoryRoadTMEarthquake: itemball TM_EARTHQUAKE VictoryRoadMaxRevive: itemball MAX_REVIVE VictoryRoadFullRestore: itemball FULL_RESTORE VictoryRoadFullHeal: itemball FULL_HEAL VictoryRoadHPUp: itemball HP_UP VictoryRoadHiddenMaxPotion: hiddenitem MAX_POTION, EVENT_VICTORY_ROAD_HIDDEN_MAX_POTION VictoryRoadHiddenFullHeal: hiddenitem FULL_HEAL, EVENT_VICTORY_ROAD_HIDDEN_FULL_HEAL MovementData_0x74539: step LEFT step LEFT step LEFT step LEFT step LEFT step LEFT step UP step UP step_end MovementData_0x74542: step UP step UP step LEFT step LEFT step LEFT step LEFT step LEFT step UP step UP step_end MovementData_0x7454c: step DOWN step DOWN step RIGHT step RIGHT step RIGHT step RIGHT step RIGHT step RIGHT step_end MovementData_0x74555: step DOWN step DOWN step RIGHT step RIGHT step RIGHT step RIGHT step RIGHT step DOWN step DOWN step_end VictoryRoadRivalBeforeText: text "Hold it." para "…Are you going to" line "take the #MON" cont "LEAGUE challenge?" para "…Don't make me" line "laugh." para "You're so much" line "weaker than I am." para "I'm not like I was" line "before." para "I now have the" line "best and strongest" para "#MON with me." line "I'm invincible!" para "<PLAYER>!" line "I challenge you!" done VictoryRoadRivalDefeatText: text "…I couldn't win…" para "I gave it every-" line "thing I had…" para "What you possess," line "and what I lack…" para "I'm beginning to" line "understand what" para "that dragon master" line "said to me…" done VictoryRoadRivalAfterText: text "…I haven't given up" line "on becoming the" cont "greatest trainer…" para "I'm going to find" line "out why I can't" para "win and become" line "stronger…" para "When I do, I will" line "challenge you." para "And I'll beat you" line "down with all my" cont "power." para "…Humph! You keep" line "at it until then." done VictoryRoadRivalVictoryText: text "…Humph!" para "When it comes down" line "to it, nothing can" cont "beat power." para "I don't need any-" line "thing else." done VictoryRoad_MapEvents: db 0, 0 ; filler db 10 ; warp events warp_event 9, 67, VICTORY_ROAD_GATE, 5 warp_event 1, 49, VICTORY_ROAD, 3 warp_event 1, 35, VICTORY_ROAD, 2 warp_event 13, 31, VICTORY_ROAD, 5 warp_event 13, 17, VICTORY_ROAD, 4 warp_event 17, 33, VICTORY_ROAD, 7 warp_event 17, 19, VICTORY_ROAD, 6 warp_event 0, 11, VICTORY_ROAD, 9 warp_event 0, 27, VICTORY_ROAD, 8 warp_event 13, 5, ROUTE_23, 3 db 2 ; coord events coord_event 12, 8, SCENE_DEFAULT, VictoryRoadRivalLeft coord_event 13, 8, SCENE_DEFAULT, VictoryRoadRivalRight db 2 ; bg events bg_event 3, 29, BGEVENT_ITEM, VictoryRoadHiddenMaxPotion bg_event 3, 65, BGEVENT_ITEM, VictoryRoadHiddenFullHeal db 6 ; object events object_event 18, 13, SPRITE_SILVER, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, ObjectEvent, EVENT_RIVAL_VICTORY_ROAD object_event 3, 28, SPRITE_POKE_BALL, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, VictoryRoadTMEarthquake, EVENT_VICTORY_ROAD_TM_EARTHQUAKE object_event 12, 48, SPRITE_POKE_BALL, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, VictoryRoadMaxRevive, EVENT_VICTORY_ROAD_MAX_REVIVE object_event 18, 29, SPRITE_POKE_BALL, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, VictoryRoadFullRestore, EVENT_VICTORY_ROAD_FULL_RESTORE object_event 15, 48, SPRITE_POKE_BALL, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, VictoryRoadFullHeal, EVENT_VICTORY_ROAD_FULL_HEAL object_event 7, 38, SPRITE_POKE_BALL, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, VictoryRoadHPUp, EVENT_VICTORY_ROAD_HP_UP
22.408922
160
0.796616
dda0da45349b7ff80c0d74aba96fa80e4da01aa7
1,906
asm
Assembly
programs/oeis/084/A084378.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/084/A084378.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/084/A084378.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A084378: a(n) = n^3 + 3. ; 3,4,11,30,67,128,219,346,515,732,1003,1334,1731,2200,2747,3378,4099,4916,5835,6862,8003,9264,10651,12170,13827,15628,17579,19686,21955,24392,27003,29794,32771,35940,39307,42878,46659,50656,54875,59322,64003,68924,74091,79510,85187,91128,97339,103826,110595,117652,125003,132654,140611,148880,157467,166378,175619,185196,195115,205382,216003,226984,238331,250050,262147,274628,287499,300766,314435,328512,343003,357914,373251,389020,405227,421878,438979,456536,474555,493042,512003,531444,551371,571790,592707,614128,636059,658506,681475,704972,729003,753574,778691,804360,830587,857378,884739,912676,941195,970302,1000003,1030304,1061211,1092730,1124867,1157628,1191019,1225046,1259715,1295032,1331003,1367634,1404931,1442900,1481547,1520878,1560899,1601616,1643035,1685162,1728003,1771564,1815851,1860870,1906627,1953128,2000379,2048386,2097155,2146692,2197003,2248094,2299971,2352640,2406107,2460378,2515459,2571356,2628075,2685622,2744003,2803224,2863291,2924210,2985987,3048628,3112139,3176526,3241795,3307952,3375003,3442954,3511811,3581580,3652267,3723878,3796419,3869896,3944315,4019682,4096003,4173284,4251531,4330750,4410947,4492128,4574299,4657466,4741635,4826812,4913003,5000214,5088451,5177720,5268027,5359378,5451779,5545236,5639755,5735342,5832003,5929744,6028571,6128490,6229507,6331628,6434859,6539206,6644675,6751272,6859003,6967874,7077891,7189060,7301387,7414878,7529539,7645376,7762395,7880602,8000003,8120604,8242411,8365430,8489667,8615128,8741819,8869746,8998915,9129332,9261003,9393934,9528131,9663600,9800347,9938378,10077699,10218316,10360235,10503462,10648003,10793864,10941051,11089570,11239427,11390628,11543179,11697086,11852355,12008992,12167003,12326394,12487171,12649340,12812907,12977878,13144259,13312056,13481275,13651922,13824003,13997524,14172491,14348910,14526787,14706128,14886939,15069226,15252995,15438252 mov $1,$0 pow $1,3 add $1,3
272.285714
1,849
0.852571
fde44a23e18ae07de2bb5889e2833fe50401be07
98,777
asm
Assembly
projects/Links_Awakening_gb.windfish/disassembly/bank_0C.asm
jverkoey/awaken
743755248996deb7181ae92f6e60be5656439c44
[ "Apache-2.0" ]
68
2020-12-16T10:06:48.000Z
2022-03-29T19:54:01.000Z
projects/Links_Awakening_gb.windfish/disassembly/bank_0C.asm
jverkoey/awaken
743755248996deb7181ae92f6e60be5656439c44
[ "Apache-2.0" ]
62
2020-12-19T04:28:41.000Z
2021-02-15T22:18:16.000Z
projects/Links_Awakening_gb.windfish/disassembly/bank_0C.asm
jverkoey/awaken
743755248996deb7181ae92f6e60be5656439c44
[ "Apache-2.0" ]
4
2021-01-17T03:51:22.000Z
2021-01-21T16:26:53.000Z
SECTION "ROM Bank 0C", ROMX[$4000], BANK[$0C] tile_link_walking: db $07, $00, $0B, $07, $1B, $04, $3F, $13 db $3F, $14, $3F, $10, $27, $18, $1F, $0D db $17, $0D, $2B, $17, $6F, $30, $78, $27 db $37, $0F, $1E, $01, $37, $0E, $1F, $00 db $C0, $00, $20, $C0, $18, $E0, $DC, $E8 db $FC, $28, $FC, $08, $E4, $18, $F8, $B0 db $E8, $B0, $D4, $E8, $F4, $08, $74, $B8 db $F8, $B0, $30, $C0, $F8, $00, $F0, $00 tile_sword_vert: db $3C, $00, $24, $18, $5A, $3C, $5A, $3C db $7E, $00, $3C, $18, $3C, $18, $3C, $18 db $3C, $18, $3C, $18, $3C, $18, $3C, $18 db $3C, $18, $3C, $18, $18, $00, $00, $00 tile_sword_horiz: db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $3F, $00, $7F, $3F db $7F, $3F, $3F, $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, $1C, $00, $F3, $0C, $FD, $EE db $FD, $EE, $F3, $0C, $1C, $00, $00, $00 tile_sword_swipe: db $00, $00, $00, $00, $00, $00, $0D, $00 db $1F, $0D, $1F, $0E, $0F, $07, $1F, $0B db $2B, $1D, $3D, $18, $54, $38, $78, $30 db $68, $30, $70, $20, $70, $20, $70, $20 db $00, $00, $3F, $00, $DF, $3F, $77, $F8 db $D8, $E0, $60, $80, $80, $00, $C0, $80 db $E0, $C0, $F0, $E0, $FA, $70, $75, $3A db $2D, $16, $1D, $0E, $23, $1C, $1E, $00 tile_music_note: db $00, $00, $00, $00, $00, $02, $02, $05 db $02, $05, $02, $05, $02, $05, $02, $05 db $02, $1D, $1E, $21, $2E, $51, $3E, $41 db $3C, $42, $00, $3C, $00, $00, $00, $00 tile_explosion: db $E0, $00, $98, $60, $A6, $78, $59, $3E db $56, $3F, $29, $1F, $2A, $1D, $15, $0E db $15, $0E, $0A, $07, $0A, $07, $0A, $07 db $15, $0E, $2B, $1C, $57, $38, $AF, $70 db $01, $00, $02, $01, $05, $03, $8A, $07 db $75, $8E, $8B, $FC, $77, $F8, $8F, $70 db $FE, $01, $FC, $03, $C0, $3F, $C3, $3F db $C7, $3F, $CF, $3F, $9F, $7F, $1F, $FF tile_0C_4140: db $00, $00, $00, $00, $3F, $00, $3F, $1F db $3F, $1F, $1C, $0F, $1C, $0F, $0E, $07 db $0E, $07, $07, $03, $07, $03, $03, $01 db $03, $01, $01, $00, $00, $00, $00, $00 tile_0C_4160: db $3C, $00, $7A, $34, $FD, $7A, $FF, $78 db $F9, $16, $99, $66, $4A, $34, $3C, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 tile_0c_4180: db $00, $00, $10, $10, $00, $00, $00, $82 db $00, $38, $38, $7C, $5C, $FE, $3E, $7F db $7E, $FF, $07, $FF, $03, $07, $01, $03 db $41, $43, $01, $13, $00, $01, $00, $01 tile_0C_41A0: db $00, $C0, $00, $60, $00, $71, $00, $33 db $00, $37, $00, $36, $00, $16, $00, $14 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 tile_0C_41C0: db $00, $00, $00, $00, $00, $00, $30, $10 db $30, $10, $1C, $0C, $0F, $03, $03, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 tile_0C_41E0: db $00, $00, $00, $00, $00, $00, $00, $00 db $07, $00, $08, $07, $11, $0F, $13, $0F db $0B, $07, $09, $07, $08, $07, $04, $03 db $03, $00, $00, $00, $00, $00, $00, $00 tile_fairy: db $00, $00, $4C, $00, $50, $00, $70, $00 db $88, $70, $E4, $18, $F6, $68, $F7, $6A db $7F, $06, $4E, $30, $76, $38, $4C, $30 db $3E, $0C, $1E, $00, $00, $00, $00, $00 tile_0C_4220: db $E0, $00, $F0, $60, $F8, $70, $BC, $78 db $7E, $3C, $5E, $3C, $2F, $1E, $1F, $06 db $07, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 tile_0C_4240: db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $18, $00, $24, $18 db $24, $18, $18, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 tile_0C_4260: db $00, $00, $00, $00, $7E, $00, $FF, $00 db $FF, $00, $7E, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 tile_0C_4280: db $00, $00, $1F, $00, $26, $18, $2A, $14 db $52, $2C, $84, $78, $F8, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 tile_sword_up1: db $01, $00, $02, $01, $02, $01, $02, $01 db $02, $01, $02, $01, $02, $01, $02, $01 db $02, $01, $02, $01, $03, $00, $0F, $01 db $0F, $05, $07, $02, $03, $01, $01, $00 tile_sword_right1: db $00, $00, $00, $00, $00, $00, $00, $00 db $18, $00, $38, $10, $7F, $20, $FC, $5B db $FC, $5B, $7F, $20, $38, $10, $18, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $FE, $00, $01, $FE db $01, $FE, $FE, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 tile_0C_4300: db $03, $00, $04, $03, $0B, $07, $14, $0F db $14, $0F, $63, $1F, $B7, $7F, $E7, $7F db $E3, $7F, $AB, $77, $48, $37, $34, $0B db $13, $0C, $18, $07, $0C, $03, $03, $00 tile_0C_4320: db $00, $00, $60, $00, $90, $60, $F0, $60 db $61, $00, $06, $01, $09, $07, $0B, $07 db $0B, $07, $09, $07, $04, $03, $03, $00 db $60, $00, $90, $60, $F0, $60, $60, $00 tile_0C_4340: db $06, $00, $0A, $04, $0B, $06, $0A, $07 db $37, $0F, $56, $2F, $74, $2F, $6E, $3D db $6A, $3D, $5B, $3C, $4B, $3C, $2D, $1E db $26, $1F, $13, $0F, $0C, $03, $03, $00 tile_0C_4360: db $00, $00, $01, $00, $03, $00, $03, $01 db $07, $01, $0F, $03, $3E, $07, $7D, $1E db $7D, $1E, $3E, $07, $0F, $03, $07, $01 db $03, $01, $03, $00, $01, $00, $00, $00 tile_0C_4380: db $02, $03, $05, $06, $0B, $0C, $17, $18 db $2D, $33, $3A, $26, $34, $2C, $38, $38 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 tile_0C_43A0: db $00, $00, $00, $00, $30, $00, $38, $10 db $1E, $08, $0D, $06, $0B, $07, $07, $03 db $07, $03, $0B, $07, $0D, $06, $1E, $08 db $38, $10, $30, $00, $00, $00, $00, $00 db $C0, $00, $E0, $40, $70, $20, $28, $10 db $18, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $18, $00 db $28, $10, $70, $20, $E0, $40, $C0, $00 db $00, $00, $3C, $00, $5A, $3C, $7E, $3C db $7E, $3C, $5A, $3C, $3C, $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, $78, $78 db $FF, $87, $FF, $84, $7F, $44, $6D, $5E db $7E, $43, $7F, $41, $FE, $82, $FC, $84 db $78, $48, $30, $30, $00, $00, $00, $00 db $1C, $1C, $3E, $22, $7E, $42, $FC, $84 db $EC, $94, $DE, $E2, $BF, $C1, $FF, $81 db $DF, $E1, $37, $39, $0E, $0E, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $0F, $0F, $1F, $10, $3F, $27, $3F, $28 db $3F, $27, $3C, $30, $3F, $3F, $3F, $3B db $3F, $38, $3F, $3A, $2F, $38, $3F, $2F db $1C, $10, $0F, $0F, $00, $00, $00, $00 db $E0, $E0, $F0, $10, $F8, $C8, $F8, $28 db $F8, $C8, $78, $18, $F8, $F8, $F8, $B8 db $F8, $38, $F8, $B8, $E8, $38, $F8, $E8 db $70, $10, $E0, $E0, $00, $00, $00, $00 db $00, $00, $00, $00, $38, $38, $2C, $34 db $2F, $33, $FF, $F0, $9F, $EC, $9F, $E3 db $4F, $70, $FF, $FF, $9F, $E0, $9F, $E0 db $4F, $70, $37, $38, $0F, $0F, $00, $00 db $1C, $1C, $3E, $22, $3F, $31, $1F, $19 db $FF, $FF, $FE, $1A, $FE, $6A, $FE, $92 db $FA, $66, $FC, $84, $F4, $0C, $E8, $18 db $D0, $30, $60, $E0, $80, $80, $00, $00 db $01, $01, $03, $02, $03, $02, $03, $02 db $03, $02, $03, $02, $03, $02, $03, $02 db $03, $02, $03, $02, $03, $02, $03, $02 db $03, $02, $03, $02, $01, $01, $00, $00 db $80, $80, $C0, $40, $C0, $40, $E0, $60 db $F0, $90, $F0, $90, $F0, $10, $E0, $20 db $C0, $40, $C0, $40, $C0, $40, $C0, $40 db $C0, $40, $C0, $40, $80, $80, $00, $00 db $07, $07, $07, $04, $03, $03, $02, $03 db $0D, $0E, $13, $1C, $2F, $34, $3F, $24 db $5F, $6F, $5F, $70, $7F, $67, $7F, $57 db $7F, $50, $3F, $26, $1F, $1F, $00, $00 db $E0, $E0, $E0, $20, $C0, $C0, $40, $C0 db $B0, $70, $C8, $38, $F4, $2C, $FC, $24 db $FA, $F6, $FA, $0E, $FE, $66, $FE, $6A db $FE, $0A, $FC, $E4, $F8, $F8, $00, $00 db $01, $01, $0F, $0E, $1B, $17, $31, $2F db $2C, $3F, $32, $33, $07, $05, $0F, $08 db $16, $19, $19, $16, $1F, $10, $16, $19 db $19, $16, $0F, $08, $07, $07, $00, $00 db $C0, $C0, $70, $F0, $98, $E8, $0C, $F4 db $34, $FC, $4C, $CC, $E0, $A0, $F0, $10 db $68, $98, $98, $68, $F8, $08, $68, $98 db $98, $68, $F0, $10, $E0, $E0, $00, $00 db $07, $07, $0C, $0F, $0E, $0B, $0F, $0D db $1F, $12, $2F, $33, $27, $3E, $35, $3E db $1C, $1F, $03, $03, $01, $01, $01, $01 db $03, $02, $03, $02, $03, $03, $00, $00 db $80, $80, $78, $F8, $C4, $FC, $E4, $9C db $E4, $9C, $E4, $FC, $F8, $38, $90, $70 db $10, $F0, $E0, $E0, $C0, $40, $C0, $40 db $C0, $40, $C0, $40, $80, $80, $00, $00 db $00, $00, $3F, $3F, $7F, $40, $7F, $40 db $7F, $40, $7F, $60, $7F, $52, $7F, $4F db $7F, $43, $7F, $41, $7F, $40, $7F, $40 db $3F, $3F, $00, $00, $00, $00, $00, $00 db $00, $00, $FC, $FC, $FE, $02, $FE, $02 db $FE, $02, $FE, $06, $FE, $4A, $FE, $F2 db $FE, $C2, $FE, $82, $FE, $02, $FE, $02 db $FC, $FC, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $01, $01, $03, $02, $03, $03 db $03, $02, $07, $04, $0F, $08, $1F, $10 db $3B, $24, $36, $29, $1F, $1F, $00, $00 db $1C, $1C, $1C, $14, $34, $2C, $38, $28 db $68, $58, $F0, $D0, $F0, $30, $F0, $90 db $F0, $50, $E0, $20, $A0, $60, $C0, $40 db $40, $C0, $80, $80, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $0C, $0C, $1C, $14, $1C, $14, $3C, $24 db $3E, $22, $3E, $2E, $38, $28, $3C, $24 db $1F, $13, $0F, $08, $07, $07, $00, $00 db $18, $18, $3C, $24, $7C, $54, $78, $48 db $70, $50, $70, $50, $70, $50, $78, $48 db $38, $28, $38, $28, $38, $28, $78, $48 db $F0, $90, $E0, $20, $C0, $C0, $00, $00 db $03, $03, $0F, $0E, $0F, $0B, $1E, $1E db $1C, $14, $3C, $3C, $38, $28, $38, $38 db $7C, $44, $D6, $8A, $F6, $8A, $C7, $BB db $7F, $46, $3B, $3B, $00, $00, $00, $00 db $F8, $F8, $FE, $AE, $FE, $FA, $0F, $0F db $07, $05, $07, $07, $07, $05, $07, $07 db $07, $05, $0F, $0F, $3E, $3A, $FE, $EE db $F8, $B8, $E0, $E0, $00, $00, $00, $00 db $00, $00, $00, $00, $07, $07, $0F, $08 db $0F, $09, $0F, $0A, $0F, $0E, $0F, $0F db $0F, $0F, $0F, $0F, $07, $06, $03, $02 db $01, $01, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $C0, $C0 db $E0, $20, $E0, $20, $F0, $10, $F0, $10 db $F0, $F0, $F0, $10, $F0, $10, $F0, $10 db $E0, $20, $C0, $C0, $00, $00, $00, $00 db $00, $00, $01, $01, $03, $02, $06, $05 db $0D, $0B, $0E, $0B, $0E, $0B, $0E, $0B db $0F, $09, $1F, $14, $3B, $27, $74, $4C db $E8, $98, $D0, $B0, $60, $60, $00, $00 db $F8, $F8, $FC, $04, $7E, $F2, $EE, $9A db $8E, $7A, $0E, $FA, $1A, $F6, $34, $EC db $E8, $D8, $D0, $30, $E0, $E0, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $07 db $04, $08, $0B, $10, $07, $10, $07, $10 db $00, $00, $00, $00, $00, $00, $00, $E0 db $20, $10, $D0, $08, $E0, $08, $E0, $08 db $07, $10, $07, $10, $0B, $10, $04, $08 db $00, $07, $00, $00, $00, $00, $00, $00 db $E0, $08, $E0, $08, $D0, $08, $20, $10 db $00, $E0, $00, $00, $00, $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, $44, $00, $28, $00 db $10, $00, $28, $00, $44, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $FF, $FF, $FF, $FF db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $41, $00, $63, $00, $77, $00 db $3E, $00, $1C, $00, $08, $00, $00, $00 db $00, $00, $08, $00, $1C, $00, $3E, $00 db $77, $00, $63, $00, $41, $00, $00, $00 db $0E, $00, $1C, $00, $38, $00, $70, $00 db $38, $00, $1C, $00, $0E, $00, $00, $00 db $70, $00, $38, $00, $1C, $00, $0E, $00 db $1C, $00, $38, $00, $70, $00, $00, $00 db $00, $00, $06, $06, $0C, $0C, $08, $08 db $18, $18, $34, $2C, $7E, $7E, $6E, $9F db $EF, $9F, $8D, $FF, $FD, $FF, $7A, $FF db $66, $7E, $18, $3C, $00, $00, $00, $00 db $00, $00, $1C, $1C, $22, $22, $5F, $41 db $FF, $ED, $DF, $BD, $AB, $9B, $A8, $98 db $E8, $98, $CB, $BB, $9D, $FD, $ED, $ED db $73, $41, $3E, $22, $1C, $1C, $00, $00 db $18, $18, $2C, $24, $2C, $24, $2C, $24 db $2C, $24, $2C, $24, $2C, $24, $2C, $24 db $2C, $24, $EF, $E7, $FF, $BD, $7E, $42 db $3C, $3C, $24, $3C, $24, $3C, $18, $18 db $00, $00, $00, $00, $00, $00, $E7, $E7 db $FF, $BD, $FF, $81, $FF, $BD, $E7, $BD db $E7, $BD, $E7, $BD, $FF, $99, $7E, $42 db $3C, $3C, $00, $00, $00, $00, $00, $00 db $00, $00, $0E, $0E, $1E, $12, $3E, $26 db $7A, $4A, $72, $52, $72, $52, $72, $52 db $72, $52, $72, $52, $72, $52, $7A, $4A db $3E, $26, $1E, $12, $0E, $0E, $00, $00 db $08, $08, $14, $14, $2A, $22, $55, $49 db $63, $5D, $36, $3E, $08, $08, $08, $08 db $10, $10, $10, $10, $08, $08, $1C, $1C db $3A, $26, $22, $3E, $22, $3E, $3E, $3E db $1C, $1C, $3E, $22, $7F, $63, $7F, $41 db $22, $3E, $1C, $1C, $3E, $22, $3E, $36 db $1C, $1C, $1C, $14, $1C, $14, $1C, $14 db $1C, $14, $1C, $14, $1C, $1C, $00, $00 db $00, $00, $DB, $DB, $FF, $A5, $DB, $A5 db $76, $4A, $3C, $3C, $34, $2C, $76, $4A db $D5, $8B, $DD, $83, $FD, $83, $FD, $83 db $A9, $D7, $66, $7E, $3C, $3C, $00, $00 db $00, $00, $0E, $0E, $1F, $11, $3F, $21 db $3F, $29, $7F, $41, $7D, $53, $FD, $83 db $F9, $97, $FA, $86, $F2, $AE, $E4, $9C db $8C, $FC, $76, $7A, $0E, $0E, $00, $00 db $07, $07, $09, $0F, $11, $1F, $21, $3F db $39, $27, $75, $4B, $77, $49, $6F, $51 db $6E, $56, $5E, $62, $5C, $64, $78, $78 db $70, $50, $70, $50, $70, $50, $20, $20 db $1C, $1C, $3A, $26, $7D, $5B, $7D, $5B db $7D, $5B, $7B, $47, $3F, $3D, $3F, $25 db $7F, $59, $7F, $41, $FF, $81, $FF, $91 db $EF, $A9, $C7, $C5, $03, $03, $00, $00 db $00, $00, $7E, $7E, $7E, $42, $66, $7E db $3C, $24, $3C, $24, $3C, $3C, $FF, $E7 db $FF, $A5, $DB, $BD, $C3, $BD, $E7, $99 db $7E, $42, $3C, $24, $18, $18, $00, $00 db $00, $00, $7F, $7F, $5F, $41, $7F, $41 db $3F, $3F, $1F, $15, $1F, $1D, $1F, $15 db $1F, $15, $3F, $3D, $7F, $41, $FF, $81 db $FF, $85, $7B, $7B, $00, $00, $00, $00 db $01, $01, $1A, $1A, $3F, $27, $41, $7F db $40, $7F, $41, $7F, $27, $3E, $1F, $18 db $07, $04, $0F, $09, $0F, $0A, $07, $04 db $03, $03, $06, $05, $07, $07, $00, $00 db $80, $80, $70, $70, $30, $70, $18, $78 db $18, $F8, $90, $70, $B0, $70, $40, $C0 db $74, $FC, $7C, $F4, $7C, $E4, $FC, $04 db $F8, $C8, $30, $F0, $E0, $E0, $00, $00 db $00, $00, $06, $06, $0E, $0A, $1E, $1E db $36, $22, $7F, $79, $7F, $45, $CF, $83 db $FF, $81, $EF, $9D, $FF, $BD, $FE, $A2 db $FC, $BC, $E0, $A0, $C0, $C0, $00, $00 db $7E, $7E, $4E, $42, $7E, $7E, $2C, $24 db $2C, $24, $2C, $24, $2C, $24, $2C, $24 db $7E, $42, $CF, $81, $A5, $DF, $8D, $FF db $B9, $FF, $42, $7E, $3C, $3C, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $18, $00, $3C, $00, $7E db $00, $FF, $00, $3C, $00, $3C, $00, $00 db $00, $00, $00, $00, $0F, $0F, $17, $19 db $2D, $33, $5A, $66, $B4, $CC, $F8, $88 db $F8, $88, $B4, $CC, $5A, $66, $2D, $33 db $17, $19, $0F, $0F, $00, $00, $00, $00 db $00, $00, $10, $10, $38, $28, $7C, $44 db $FE, $C6, $FE, $AA, $FE, $92, $FE, $92 db $FE, $92, $FE, $92, $FE, $AA, $FE, $C6 db $7C, $44, $38, $28, $10, $10, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $6C, $6C, $FE, $92, $D6, $AA db $C6, $BA, $6C, $54, $38, $28, $10, $10 db $00, $00, $00, $00, $1C, $1C, $3E, $22 db $71, $4F, $60, $5F, $60, $5F, $40, $7F db $20, $3F, $10, $1F, $08, $0F, $04, $07 db $02, $03, $01, $01, $00, $00, $00, $00 db $00, $00, $1C, $00, $3E, $1C, $7F, $3E db $FF, $7F, $FF, $79, $F9, $76, $F8, $77 db $F8, $77, $7C, $3B, $3E, $1D, $1F, $0E db $0F, $07, $07, $03, $03, $01, $01, $00 db $18, $18, $3C, $24, $3C, $3C, $42, $7E db $A1, $DF, $81, $FF, $FF, $FF, $F9, $87 db $D9, $87, $D9, $87, $F9, $87, $7A, $46 db $72, $4E, $24, $3C, $18, $18, $00, $00 db $00, $00, $3C, $3C, $66, $66, $66, $66 db $66, $66, $66, $66, $3C, $3C, $00, $00 db $00, $00, $18, $18, $38, $38, $18, $18 db $18, $18, $18, $18, $18, $18, $00, $00 db $00, $00, $3C, $3C, $66, $66, $06, $06 db $3C, $3C, $60, $60, $7E, $7E, $00, $00 db $00, $00, $3C, $3C, $66, $66, $0C, $0C db $06, $06, $66, $66, $3C, $3C, $00, $00 db $00, $00, $0C, $0C, $1C, $1C, $3C, $3C db $6C, $6C, $7E, $7E, $0C, $0C, $00, $00 db $00, $00, $7C, $7C, $60, $60, $7C, $7C db $06, $06, $06, $06, $7C, $7C, $00, $00 db $00, $00, $3C, $3C, $60, $60, $7C, $7C db $66, $66, $66, $66, $3C, $3C, $00, $00 db $00, $00, $7E, $7E, $06, $06, $0C, $0C db $18, $18, $18, $18, $18, $18, $00, $00 db $00, $00, $3C, $3C, $66, $66, $3C, $3C db $66, $66, $66, $66, $3C, $3C, $00, $00 db $00, $00, $3C, $3C, $66, $66, $66, $66 db $3E, $3E, $06, $06, $3C, $3C, $00, $00 db $00, $00, $30, $30, $30, $30, $30, $30 db $33, $33, $30, $30, $3C, $3C, $00, $00 db $00, $00, $33, $33, $4A, $4A, $4A, $4A db $7A, $7A, $4A, $4A, $4A, $4A, $4A, $4A db $02, $02, $02, $02, $02, $02, $02, $02 db $02, $02, $02, $02, $03, $03, $00, $00 db $00, $00, $73, $73, $4A, $4A, $4A, $4A db $72, $72, $4A, $4A, $4A, $4A, $72, $72 db $00, $00, $C0, $C0, $40, $40, $40, $40 db $40, $40, $40, $40, $40, $40, $40, $40 db $40, $40, $40, $40, $40, $40, $40, $40 db $40, $40, $40, $40, $C0, $C0, $00, $00 db $00, $00, $60, $60, $FC, $9C, $FE, $92 db $6F, $69, $0F, $09, $7F, $7D, $FE, $82 db $FE, $AA, $FE, $82, $7C, $7C, $38, $28 db $38, $28, $3E, $2E, $3E, $2A, $3E, $3E db $00, $00, $0F, $0F, $1F, $11, $3F, $25 db $3F, $21, $3F, $21, $FE, $E2, $FC, $9C db $78, $48, $38, $28, $38, $38, $38, $28 db $38, $28, $78, $58, $7C, $44, $7C, $7C db $00, $00, $66, $66, $FF, $99, $FF, $81 db $FF, $A5, $FF, $A5, $FF, $81, $FF, $99 db $7E, $42, $3C, $3C, $38, $28, $38, $28 db $3C, $2C, $3E, $2A, $3E, $2A, $3E, $3E db $00, $00, $03, $03, $7F, $7D, $FF, $91 db $FF, $95, $FF, $B1, $FF, $A1, $FE, $FE db $1C, $14, $1C, $14, $1C, $14, $1F, $17 db $1F, $15, $7F, $77, $7C, $54, $7C, $7C db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $F6, $F6, $F6, $F6, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $F9, $F9, $F6, $F6 db $00, $00, $1C, $1C, $3C, $24, $76, $4A db $76, $4A, $EF, $91, $EF, $91, $EF, $91 db $EF, $D7, $6C, $54, $EF, $D7, $EF, $91 db $6E, $52, $3C, $3C, $10, $10, $18, $18 db $00, $00, $00, $00, $FE, $FE, $FE, $82 db $FE, $FE, $00, $00, $00, $00, $00, $00 db $00, $00, $6C, $00, $92, $00, $82, $00 db $82, $00, $44, $00, $28, $00, $10, $00 db $00, $00, $6C, $60, $F2, $90, $D2, $A0 db $C2, $B0, $64, $50, $38, $20, $10, $10 db $00, $00, $0F, $0F, $11, $11, $25, $21 db $41, $4F, $42, $7E, $44, $7C, $78, $78 db $00, $00, $00, $00, $00, $00, $03, $03 db $04, $04, $3D, $3D, $43, $42, $97, $95 db $1E, $1E, $17, $11, $3F, $25, $FF, $DF db $F0, $B0, $F0, $50, $F8, $98, $F8, $18 db $00, $00, $07, $07, $1A, $18, $25, $22 db $3B, $26, $56, $4E, $55, $4C, $BB, $89 db $00, $00, $00, $00, $80, $80, $40, $40 db $60, $60, $D0, $50, $D8, $98, $74, $94 db $00, $00, $00, $00, $01, $01, $03, $02 db $1E, $1C, $3B, $27, $77, $4F, $6F, $5E db $06, $06, $7B, $79, $CF, $85, $1E, $02 db $3E, $02, $BA, $06, $DA, $86, $74, $4C db $3C, $3C, $44, $44, $5F, $4F, $60, $41 db $3F, $27, $1A, $18, $0A, $00, $0A, $00 db $00, $00, $00, $00, $80, $80, $C0, $40 db $60, $A0, $B0, $D0, $D8, $68, $AC, $34 db $01, $01, $03, $02, $07, $06, $0F, $09 db $1F, $18, $3F, $24, $7F, $62, $FF, $91 db $80, $80, $C0, $40, $E0, $20, $F0, $10 db $F8, $88, $FC, $44, $FE, $26, $F9, $39 db $06, $06, $05, $05, $07, $04, $03, $02 db $03, $02, $07, $05, $07, $05, $0E, $0A db $B0, $B0, $5C, $5C, $F2, $12, $E9, $A9 db $E5, $25, $F3, $D3, $70, $50, $38, $28 db $00, $00, $07, $07, $0C, $08, $1F, $10 db $34, $2A, $61, $5D, $43, $7B, $47, $77 db $00, $00, $F0, $F0, $38, $38, $74, $74 db $FA, $FA, $D9, $D9, $E5, $E5, $63, $63 db $00, $00, $07, $07, $18, $18, $27, $20 db $5F, $41, $5E, $42, $5F, $43, $67, $61 db $1C, $1C, $EA, $EA, $56, $52, $AC, $A4 db $5C, $4C, $BA, $92, $7A, $22, $E6, $C6 db $BF, $BA, $AF, $AC, $8F, $80, $9F, $83 db $FD, $C6, $7F, $60, $FF, $7F, $FF, $9F db $F8, $78, $F0, $30, $E0, $20, $E0, $20 db $E0, $20, $F8, $60, $FC, $C0, $F8, $80 db $87, $82, $7E, $7D, $13, $1C, $11, $1E db $38, $0F, $78, $0F, $7F, $07, $3F, $00 db $97, $77, $FF, $15, $17, $FF, $D4, $3C db $3C, $F8, $7E, $C0, $FE, $80, $FC, $00 db $6E, $5E, $76, $4F, $29, $27, $73, $20 db $F8, $10, $FC, $0C, $7F, $03, $1F, $00 db $74, $2C, $B8, $68, $F8, $D0, $DC, $10 db $1E, $10, $3E, $20, $FC, $C0, $F8, $00 db $0A, $00, $0A, $00, $0A, $00, $0A, $00 db $3F, $35, $CA, $55, $CF, $7F, $7F, $70 db $B6, $1A, $AA, $0E, $A7, $05, $A5, $07 db $A5, $07, $FD, $5B, $0B, $F6, $FE, $FC db $FF, $89, $7E, $4E, $B3, $F3, $9F, $FE db $BA, $C7, $C7, $7F, $7F, $38, $1F, $00 db $CF, $CF, $7F, $79, $F9, $CF, $CF, $7E db $7E, $F0, $FC, $80, $F8, $00, $C0, $00 db $0E, $0A, $1C, $14, $1C, $14, $7F, $28 db $FF, $2F, $DF, $40, $FF, $7F, $7F, $00 db $38, $28, $1C, $14, $1C, $14, $FE, $08 db $FF, $FE, $FF, $02, $FF, $FE, $FE, $00 db $CF, $6F, $DD, $5D, $FE, $7E, $E6, $66 db $D1, $71, $68, $38, $77, $1F, $3F, $0F db $95, $97, $8B, $8E, $57, $5C, $2E, $38 db $5E, $70, $BC, $E0, $78, $C0, $E0, $80 db $58, $58, $67, $67, $58, $58, $47, $4F db $C0, $59, $E0, $33, $F9, $1E, $7F, $07 db $1A, $1A, $E6, $E6, $1A, $1E, $F2, $FE db $F7, $3E, $E7, $3C, $FF, $78, $FE, $E0 db $00, $00, $03, $03, $04, $07, $08, $0F db $10, $1F, $20, $3F, $71, $4E, $5B, $64 db $4E, $71, $44, $7B, $44, $7B, $44, $7B db $44, $7B, $24, $3B, $18, $1F, $07, $07 db $00, $00, $E0, $E0, $90, $70, $88, $78 db $84, $7C, $82, $7E, $C5, $3B, $6D, $93 db $39, $C7, $11, $EF, $11, $EF, $11, $EF db $11, $EF, $12, $EE, $0C, $FC, $F0, $F0 db $00, $00, $01, $01, $63, $62, $77, $54 db $7F, $4D, $6F, $56, $77, $4A, $3B, $26 db $1E, $1F, $3B, $27, $77, $4A, $7F, $44 db $7F, $7C, $07, $04, $03, $03, $00, $00 db $00, $00, $80, $80, $C6, $46, $EE, $2A db $FE, $B2, $F6, $6A, $EE, $52, $DC, $64 db $78, $F8, $DC, $E4, $4E, $F2, $7E, $A2 db $FE, $3E, $E0, $20, $C0, $C0, $00, $00 db $00, $00, $FF, $FF, $FF, $80, $FF, $80 db $FF, $FF, $50, $70, $56, $76, $50, $70 db $55, $75, $50, $70, $DF, $FF, $FF, $80 db $FF, $FF, $05, $06, $05, $06, $03, $03 db $00, $00, $FF, $FF, $FF, $01, $FF, $01 db $FF, $FF, $0A, $0E, $AA, $AE, $0A, $0E db $AA, $AE, $0A, $0E, $FB, $FF, $FF, $01 db $FF, $FF, $A0, $60, $A0, $60, $C0, $C0 db $73, $8F, $DD, $3E, $B7, $6C, $77, $CC db $65, $DE, $4C, $FF, $72, $FF, $D9, $E7 db $FE, $F1, $EB, $1C, $F5, $0E, $F6, $0F db $E6, $1F, $0D, $FB, $1D, $F3, $F1, $FF db $BC, $C3, $BE, $C1, $9C, $E3, $81, $FF db $41, $FF, $43, $FF, $7C, $FF, $83, $FC db $FF, $FF, $BB, $C6, $FD, $83, $7D, $83 db $01, $FF, $01, $FF, $86, $FF, $79, $FF db $FF, $E3, $F3, $EC, $F8, $E7, $FC, $EB db $FE, $DD, $FF, $D8, $FE, $D9, $EF, $DE db $F7, $CD, $DF, $A1, $D6, $AD, $D7, $AE db $CB, $B7, $FC, $C3, $F7, $DC, $FF, $C0 db $FF, $C7, $CF, $37, $1F, $E7, $3F, $D7 db $7F, $BB, $FF, $1B, $7F, $9B, $F7, $7B db $EF, $B3, $FB, $85, $6B, $B5, $EB, $75 db $D3, $ED, $3F, $C3, $EF, $3B, $FF, $03 db $FF, $F0, $FF, $EF, $F8, $DF, $F7, $B8 db $EF, $70, $DF, $60, $DF, $60, $DF, $60 db $DF, $60, $DF, $60, $DF, $60, $DF, $60 db $DF, $60, $D8, $67, $D0, $6F, $FF, $1F db $FF, $0F, $FF, $F7, $1F, $FB, $EF, $1D db $F7, $0E, $FB, $06, $FB, $06, $FB, $06 db $FB, $06, $FB, $06, $FB, $06, $FB, $06 db $FB, $06, $1B, $E6, $0B, $F6, $FF, $F8 db $FF, $C0, $CF, $B0, $FF, $00, $FF, $6A db $FF, $4E, $FF, $2A, $FF, $6A, $FF, $00 db $E6, $7F, $E6, $7F, $FF, $00, $FF, $80 db $CF, $B0, $CF, $B0, $C8, $B7, $FF, $8F db $FF, $03, $FF, $01, $FF, $00, $FF, $EE db $FF, $AA, $FF, $AE, $FF, $E8, $FF, $00 db $67, $FE, $67, $FE, $FF, $00, $FF, $01 db $F3, $0D, $F3, $0D, $13, $ED, $FF, $F1 db $FF, $E7, $FF, $C3, $FF, $C2, $FF, $C2 db $FF, $C2, $FF, $C6, $FF, $C7, $FF, $CF db $FF, $CF, $FF, $DF, $FF, $DF, $FF, $FF db $FF, $9F, $FF, $0F, $FF, $0F, $FF, $9F db $FF, $83, $FF, $01, $FF, $38, $FF, $7C db $FF, $1C, $FF, $1C, $FF, $38, $FF, $F1 db $FF, $E7, $FF, $CF, $FF, $DF, $FF, $FF db $FF, $9F, $FF, $0F, $FF, $0F, $FF, $9F db $00, $00, $03, $03, $04, $07, $08, $0F db $10, $1F, $20, $3F, $71, $4E, $5B, $64 db $4E, $71, $44, $7B, $44, $7B, $44, $7B db $44, $7B, $24, $3B, $18, $1F, $07, $07 db $00, $00, $E0, $E0, $90, $70, $88, $78 db $84, $7C, $82, $7E, $C5, $3B, $6D, $93 db $39, $C7, $11, $EF, $11, $EF, $11, $EF db $11, $EF, $12, $EE, $0C, $FC, $F0, $F0 db $00, $00, $01, $01, $63, $62, $77, $54 db $7F, $4D, $6F, $56, $77, $4A, $3B, $26 db $1E, $1F, $3B, $27, $77, $4A, $7F, $44 db $7F, $7C, $07, $04, $03, $03, $00, $00 db $00, $00, $80, $80, $C6, $46, $EE, $2A db $FE, $B2, $F6, $6A, $EE, $52, $DC, $64 db $78, $F8, $DC, $E4, $4E, $F2, $7E, $A2 db $FE, $3E, $E0, $20, $C0, $C0, $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, $44, $00, $28, $00 db $10, $00, $28, $00, $44, $00, $00, $00 db $38, $00, $38, $00, $C6, $00, $C6, $00 db $C6, $00, $38, $00, $38, $00, $00, $00 db $FF, $00, $F3, $00, $E0, $00, $0E, $00 db $FF, $00, $7C, $00, $31, $00, $87, $00 db $03, $00, $1C, $03, $E0, $1F, $02, $FC db $08, $F0, $01, $00, $11, $00, $CE, $00 db $C0, $00, $38, $C0, $07, $F8, $40, $3F db $08, $07, $80, $00, $A2, $00, $78, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $F8, $00, $C0, $00, $09, $00, $3F, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $1F, $00, $07, $00, $80, $00, $D8, $00 db $01, $00, $07, $03, $0D, $0E, $17, $18 db $2F, $30, $6E, $31, $5C, $63, $DC, $63 db $FF, $FF, $7F, $80, $F8, $00, $B0, $40 db $30, $C0, $38, $C0, $3F, $C0, $1F, $E0 db $FF, $FF, $E0, $1F, $F3, $0C, $79, $06 db $78, $07, $F8, $07, $F8, $07, $F0, $0F db $80, $00, $E0, $C0, $30, $F0, $C8, $38 db $E4, $1C, $66, $9C, $72, $8E, $73, $8E db $80, $FF, $C0, $7F, $C0, $7F, $E0, $BF db $F0, $9F, $BC, $CF, $E3, $7F, $FF, $1C db $3F, $C0, $1F, $E0, $07, $F8, $00, $FF db $00, $FF, $00, $FF, $E0, $FF, $D0, $3F db $FC, $03, $F8, $07, $F0, $0F, $00, $FF db $00, $FF, $00, $FF, $07, $FF, $0B, $FC db $01, $FF, $03, $FE, $03, $FE, $07, $FD db $0F, $F9, $3D, $F3, $C7, $FE, $FF, $38 db $FC, $03, $FF, $07, $E9, $1E, $17, $F8 db $2F, $F0, $2E, $F1, $5C, $E3, $5C, $E3 db $3F, $C0, $DF, $E0, $37, $F8, $C8, $3F db $E4, $1F, $64, $9F, $72, $8F, $72, $8F db $FD, $FE, $02, $FF, $FD, $03, $03, $01 db $43, $01, $FD, $03, $02, $FF, $FD, $FE db $BF, $7F, $40, $FF, $BF, $C0, $C2, $80 db $C0, $80, $BF, $C0, $40, $FF, $BF, $7F db $FF, $FF, $80, $FF, $80, $80, $FF, $80 db $FF, $FF, $9F, $F7, $FF, $97, $FF, $97 db $FF, $FF, $01, $FF, $01, $01, $FF, $01 db $FF, $FF, $F9, $EF, $FF, $E9, $FF, $E9 db $FF, $FF, $00, $00, $00, $00, $FF, $00 db $C0, $3F, $DF, $3F, $FF, $FF, $1F, $FF db $FF, $FF, $00, $00, $00, $00, $FF, $00 db $03, $FC, $FB, $FC, $FF, $FF, $F8, $FF db $9C, $E3, $9E, $E1, $9F, $E0, $9F, $E0 db $8F, $F0, $8F, $F0, $83, $FC, $80, $FF db $07, $F8, $00, $FF, $00, $FF, $C0, $3F db $F0, $0F, $F8, $07, $FF, $00, $FF, $00 db $E0, $1F, $00, $FF, $01, $FE, $07, $F8 db $0F, $F0, $1F, $E0, $FF, $00, $FF, $00 db $71, $8F, $F1, $0F, $F1, $0F, $F1, $0F db $F1, $0F, $E1, $1F, $C1, $3F, $01, $FF db $79, $08, $71, $10, $33, $20, $37, $20 db $3D, $23, $3E, $1F, $07, $00, $00, $00 db $F8, $0F, $FF, $07, $B8, $60, $78, $F0 db $94, $F8, $0F, $F8, $87, $7C, $3F, $03 db $1F, $F0, $FF, $E0, $FD, $06, $FE, $0F db $E9, $1F, $F0, $1F, $E1, $3E, $FC, $C0 db $3E, $10, $1E, $08, $8C, $04, $CC, $04 db $BC, $C4, $7C, $F8, $C0, $00, $00, $00 db $30, $30, $5F, $4F, $52, $4C, $41, $7E db $40, $63, $4C, $4D, $CC, $4D, $40, $E2 db $0C, $0C, $FA, $F2, $4A, $32, $82, $7E db $02, $C6, $32, $B2, $33, $B2, $02, $47 db $FB, $06, $03, $FE, $44, $FE, $4A, $BC db $14, $F8, $68, $F0, $A0, $C0, $80, $00 db $DF, $60, $C0, $7F, $20, $7F, $50, $3F db $28, $1F, $16, $0F, $05, $03, $01, $00 db $FF, $97, $F8, $90, $9F, $FF, $9F, $E0 db $F3, $8C, $F3, $8C, $FF, $FF, $FF, $00 db $FF, $E9, $1F, $09, $FD, $FB, $3D, $03 db $27, $19, $E7, $19, $FF, $FF, $FF, $00 db $DF, $3F, $DF, $3F, $DF, $3F, $DF, $3F db $DF, $3F, $DF, $3F, $DF, $3F, $FF, $FF db $FE, $F9, $FE, $F9, $FE, $F9, $FE, $F9 db $FE, $F9, $FE, $F9, $FE, $F9, $FF, $FF db $7F, $80, $FF, $00, $F8, $1F, $CC, $3F db $C6, $3F, $C7, $3F, $C3, $3F, $C3, $3F db $D0, $E0, $34, $F8, $EA, $1C, $1C, $06 db $0B, $06, $8E, $03, $45, $83, $A5, $C3 db $0B, $07, $2C, $1F, $57, $38, $38, $60 db $D0, $60, $71, $C0, $A2, $C1, $A5, $C3 db $FE, $01, $FF, $00, $1B, $FC, $33, $FC db $63, $FC, $E3, $FC, $C3, $FC, $C3, $FC db $C1, $FE, $E0, $FF, $E0, $FF, $D0, $FF db $E8, $DF, $F6, $CF, $DB, $E7, $CE, $F1 db $FF, $FF, $00, $FF, $FF, $00, $04, $00 db $40, $00, $FF, $00, $00, $FF, $FF, $FF db $FC, $0E, $FC, $3D, $7C, $FD, $7C, $DE db $7F, $DF, $5F, $C0, $FF, $7F, $FF, $00 db $83, $7F, $07, $FF, $07, $FF, $0B, $FF db $17, $FB, $6F, $F3, $DB, $E7, $73, $8F db $C3, $FC, $C3, $FC, $C1, $FE, $C1, $FE db $C1, $FE, $E3, $FC, $E3, $FC, $E3, $FC db $A5, $C3, $A5, $C3, $B5, $C3, $A5, $C3 db $A5, $C3, $A5, $C3, $AD, $C3, $A5, $C3 db $FF, $FF, $FF, $FF, $0C, $FF, $00, $FF db $40, $FF, $00, $FF, $C7, $38, $FF, $00 db $64, $BE, $36, $DF, $9F, $EE, $75, $FE db $0E, $1F, $BE, $43, $FC, $FE, $38, $04 db $8F, $1F, $3F, $3F, $7C, $7F, $70, $FF db $E0, $FF, $E3, $FC, $C7, $F8, $C7, $F8 db $F1, $F8, $FC, $FC, $3E, $FE, $0E, $FF db $07, $FF, $C7, $3F, $E3, $1F, $E3, $1F db $E3, $FC, $F3, $FC, $3B, $FC, $0B, $FC db $03, $FC, $07, $F8, $FE, $01, $FD, $03 db $C7, $3F, $CF, $3F, $DC, $3F, $D0, $3F db $C0, $3F, $E0, $1F, $7F, $80, $BF, $C0 db $FF, $FF, $FF, $00, $70, $70, $DF, $BF db $BC, $FF, $FF, $FF, $B6, $F6, $FF, $F7 db $A5, $C3, $A2, $C1, $B1, $C0, $98, $E0 db $CE, $F0, $63, $FC, $B0, $7F, $6F, $1F db $A5, $C3, $45, $83, $8D, $03, $19, $07 db $73, $0F, $C6, $3F, $0D, $FE, $F6, $F8 db $FF, $FF, $FF, $00, $0E, $0E, $FB, $FD db $3D, $FF, $FF, $FF, $69, $6F, $FF, $EF db $C1, $FE, $C0, $FF, $C0, $FF, $C0, $FF db $C0, $FF, $E0, $7F, $78, $3F, $BF, $1F db $1F, $E0, $F8, $07, $E0, $1F, $00, $FF db $20, $FF, $00, $FF, $07, $FF, $FF, $FF db $F8, $07, $1F, $E0, $47, $F8, $40, $BF db $00, $FF, $00, $FF, $E0, $FF, $FF, $FF db $83, $7F, $03, $FF, $03, $FF, $03, $FF db $03, $FF, $07, $FE, $1E, $FC, $FD, $F8 db $3F, $70, $3F, $BC, $3E, $BF, $3E, $7B db $FE, $FB, $FA, $03, $FF, $FE, $FF, $00 db $C3, $3F, $C3, $3F, $83, $7F, $83, $7F db $83, $7F, $C7, $3F, $C7, $3F, $C7, $3F db $00, $00, $10, $00, $54, $00, $28, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $FF, $00, $00, $00, $00, $00, $FF db $00, $FF, $00, $00, $00, $00, $00, $FF db $7F, $FF, $E0, $FF, $CF, $F0, $90, $E0 db $A0, $C0, $A3, $C0, $A6, $C1, $A5, $C3 db $FE, $FF, $03, $FF, $F9, $07, $0D, $03 db $05, $03, $C5, $03, $65, $83, $A5, $C3 db $BD, $7E, $5A, $E7, $A5, $C3, $A5, $C3 db $A5, $C3, $A5, $C3, $AD, $C3, $A5, $C3 db $A5, $C3, $A5, $C3, $A5, $C3, $BD, $C3 db $99, $E7, $81, $FF, $42, $FF, $BD, $7E db $FF, $FF, $80, $80, $9E, $9E, $9E, $92 db $9E, $92, $9E, $92, $9E, $9E, $80, $80 db $FF, $FF, $01, $01, $79, $79, $79, $49 db $79, $49, $79, $49, $79, $79, $01, $01 db $FF, $FF, $80, $80, $A0, $BF, $A0, $BF db $A0, $BF, $A0, $BF, $BF, $BF, $BF, $BF db $FF, $FF, $01, $01, $05, $FD, $05, $FD db $05, $FD, $05, $FD, $FD, $FD, $FD, $FD db $F3, $0F, $CF, $3F, $9F, $7F, $3F, $FF db $3F, $FF, $3F, $FF, $3F, $FF, $7F, $FF db $CF, $F0, $F3, $FC, $F9, $FE, $FC, $FF db $FC, $FF, $FC, $FF, $FC, $FF, $FE, $FF db $BF, $FF, $FF, $3F, $BF, $7F, $1F, $FF db $1F, $FF, $20, $FF, $5F, $E0, $BF, $C0 db $FD, $FF, $FF, $FC, $FD, $FE, $F8, $FF db $F8, $FF, $04, $FF, $FA, $07, $FD, $03 db $44, $09, $DB, $6D, $2D, $7F, $FF, $3F db $3F, $FF, $FF, $FF, $FF, $7F, $3F, $7F db $22, $90, $DB, $B6, $B4, $FE, $FF, $FC db $FE, $FD, $FF, $FF, $FF, $FE, $FC, $FE db $04, $09, $7F, $0D, $3B, $6F, $70, $3F db $E7, $38, $E9, $B0, $58, $E0, $19, $60 db $30, $10, $F6, $30, $DC, $F6, $0C, $FC db $E5, $1C, $17, $0D, $9A, $07, $48, $06 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 $80, $80, $FF, $FF, $F7, $9D, $F7, $9D db $F7, $9C, $FF, $9F, $FF, $80, $FF, $FF db $01, $01, $FF, $FF, $EF, $B9, $EF, $B9 db $EF, $39, $FF, $F9, $FF, $01, $FF, $FF db $00, $38, $08, $44, $0C, $82, $2C, $82 db $6C, $82, $00, $7C, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $1C db $04, $22, $0C, $22, $22, $1C, $00, $00 db $7E, $00, $FF, $00, $F7, $08, $FF, $00 db $BF, $40, $FB, $00, $FF, $00, $7E, $00 db $C6, $00, $64, $00, $70, $00, $31, $00 db $33, $00, $37, $00, $16, $00, $16, $00 db $00, $00, $40, $00, $00, $00, $04, $00 db $00, $00, $10, $00, $00, $00, $01, $00 db $7E, $FF, $FC, $FF, $C3, $67, $78, $C0 db $5F, $E0, $CA, $7D, $7F, $37, $33, $00 db $FF, $7F, $7F, $FF, $3F, $7F, $3F, $3F db $3F, $FF, $1F, $3F, $0B, $1F, $00, $33 db $FC, $FE, $FE, $FF, $FC, $FE, $FF, $FC db $FC, $FF, $FC, $FE, $68, $FC, $00, $26 db $26, $40, $22, $C0, $2F, $40, $31, $40 db $18, $E0, $0F, $30, $03, $1C, $00, $33 db $3C, $02, $2C, $03, $C4, $02, $24, $02 db $9C, $03, $F8, $06, $00, $FC, $00, $26 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 $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $07, $00, $0B, $07, $1B, $04, $3F, $13 db $3F, $14, $3F, $10, $27, $18, $1F, $0D db $17, $0D, $2B, $17, $6F, $30, $78, $27 db $37, $0F, $1E, $01, $37, $0E, $1F, $00 db $C0, $00, $20, $C0, $18, $E0, $DC, $E8 db $FC, $28, $FC, $08, $E4, $18, $F8, $B0 db $E8, $B0, $D4, $E8, $F4, $08, $74, $B8 db $F8, $B0, $30, $C0, $F8, $00, $F0, $00 db $03, $00, $07, $00, $07, $03, $1F, $04 db $3D, $13, $39, $17, $3A, $15, $2C, $13 db $1C, $03, $14, $0B, $34, $1B, $3B, $14 db $17, $0F, $18, $07, $1F, $00, $0F, $00 db $80, $00, $C0, $00, $E0, $C0, $F8, $20 db $BC, $C8, $9C, $E8, $9C, $E8, $94, $E8 db $38, $C0, $54, $A8, $94, $68, $2C, $F0 db $C8, $F0, $38, $C0, $FC, $30, $F8, $00 db $03, $00, $0D, $03, $1E, $0D, $77, $0E db $3B, $07, $0E, $01, $3F, $0A, $3F, $1B db $17, $0F, $08, $07, $0F, $00, $0B, $05 db $0F, $05, $0B, $04, $0F, $01, $1F, $00 db $E0, $00, $10, $E0, $C8, $F0, $24, $D8 db $F2, $2C, $B2, $6C, $F4, $68, $F8, $60 db $D0, $60, $B0, $40, $D0, $20, $C8, $B0 db $C8, $B0, $F8, $00, $F0, $E0, $F8, $00 db $00, $00, $03, $00, $2D, $03, $3E, $0D db $37, $0E, $1B, $07, $0E, $01, $3F, $0A db $3F, $1B, $17, $0F, $0F, $00, $07, $03 db $07, $03, $0F, $00, $1F, $0F, $1F, $00 db $00, $00, $F0, $00, $8C, $F0, $62, $FC db $22, $DC, $F2, $2C, $B4, $68, $F4, $68 db $F8, $60, $D0, $60, $F0, $00, $98, $60 db $9C, $68, $3C, $C8, $FC, $18, $FE, $00 db $00, $00, $8F, $00, $F4, $0F, $FB, $37 db $FC, $1B, $6F, $1C, $3A, $05, $7F, $29 db $FF, $6D, $7F, $00, $78, $37, $78, $37 db $3C, $03, $03, $00, $00, $00, $00, $00 db $00, $00, $80, $00, $60, $80, $10, $E0 db $88, $70, $C4, $B8, $C4, $B8, $CC, $B0 db $7E, $84, $AF, $76, $2F, $F6, $2B, $F6 db $2D, $F2, $2B, $F0, $F8, $00, $00, $00 db $00, $00, $4F, $00, $F4, $0F, $FB, $17 db $FC, $1B, $6F, $1C, $3A, $05, $7F, $29 db $FF, $6D, $7F, $00, $78, $37, $78, $37 db $3C, $03, $03, $00, $00, $00, $00, $00 db $00, $00, $80, $00, $60, $80, $10, $E0 db $88, $70, $C4, $B8, $C6, $B8, $DF, $A6 db $6B, $96, $AD, $72, $2F, $F4, $2F, $F6 db $2F, $F6, $2F, $F6, $FF, $02, $07, $00 db $00, $00, $07, $00, $08, $07, $33, $0F db $72, $2F, $7C, $23, $77, $2F, $5F, $20 db $2F, $10, $2F, $1B, $37, $0F, $2F, $10 db $11, $0E, $1F, $00, $3F, $0E, $1F, $00 db $00, $00, $80, $00, $40, $80, $30, $C0 db $38, $D0, $F8, $10, $BC, $D0, $EC, $10 db $DE, $2C, $DE, $6C, $BC, $D0, $F8, $30 db $74, $88, $AC, $D8, $D8, $70, $F8, $00 db $11, $00, $3A, $11, $6F, $38, $D7, $6C db $BB, $54, $FF, $00, $3F, $1A, $3F, $12 db $1F, $0B, $1F, $0D, $0D, $02, $04, $03 db $07, $00, $0F, $03, $07, $00, $00, $00 db $F0, $00, $6C, $F0, $FA, $1C, $DB, $E4 db $E7, $3A, $F7, $0A, $FD, $D6, $FB, $D4 db $F6, $78, $EC, $30, $F4, $08, $3C, $D8 db $C4, $38, $F8, $80, $FC, $38, $F8, $00 db $03, $00, $06, $01, $1D, $03, $39, $17 db $3E, $11, $3F, $17, $67, $18, $FB, $6C db $77, $2D, $3B, $07, $17, $08, $3A, $07 db $25, $1B, $1E, $01, $03, $00, $01, $00 db $E0, $00, $90, $E0, $B8, $C0, $9C, $E8 db $FC, $08, $FC, $E8, $E4, $18, $D8, $30 db $E8, $B0, $D0, $E0, $E8, $10, $48, $B0 db $F8, $80, $78, $B0, $FC, $30, $F8, $00 db $1F, $00, $3F, $1B, $3F, $04, $3D, $13 db $39, $17, $29, $17, $19, $07, $0C, $03 db $12, $0D, $15, $0E, $12, $0F, $19, $07 db $0C, $03, $07, $00, $03, $00, $00, $00 db $C0, $00, $E0, $C0, $F8, $20, $BC, $C8 db $9C, $E8, $14, $E8, $58, $A0, $B0, $C0 db $28, $D0, $24, $D8, $EE, $1C, $9E, $EC db $7C, $80, $F0, $60, $F8, $60, $F8, $00 db $00, $00, $07, $00, $5B, $07, $7C, $1B db $6E, $1D, $37, $0E, $3D, $02, $7F, $14 db $7F, $36, $2F, $1E, $7F, $00, $F1, $6E db $F3, $6D, $7E, $01, $1F, $0E, $3F, $00 db $00, $00, $E0, $00, $9C, $E0, $E2, $FC db $42, $BC, $E4, $58, $68, $D0, $E8, $D0 db $F0, $C0, $A0, $C0, $E0, $00, $58, $E0 db $9C, $E8, $3C, $C8, $FC, $18, $FE, $00 db $03, $00, $0C, $03, $13, $0F, $10, $0F db $3F, $10, $6F, $1E, $F7, $0E, $7F, $00 db $1F, $0A, $3E, $1F, $F1, $0E, $FE, $41 db $BF, $56, $9F, $66, $87, $79, $FD, $00 db $C0, $00, $30, $C0, $88, $F0, $84, $78 db $C4, $B8, $E8, $D0, $F8, $C0, $F0, $C0 db $F0, $40, $C8, $30, $48, $B0, $48, $B0 db $E8, $10, $F0, $60, $F0, $C0, $F8, $00 db $01, $00, $02, $01, $07, $00, $0F, $07 db $3F, $01, $1F, $00, $0F, $00, $0F, $05 db $0B, $07, $0F, $01, $1D, $0E, $1C, $0F db $0C, $03, $07, $00, $01, $00, $00, $00 db $E0, $00, $D0, $E0, $08, $F0, $D4, $28 db $FE, $C4, $FA, $6C, $F2, $1C, $E6, $58 db $EC, $50, $B8, $C0, $E8, $10, $38, $D0 db $48, $B0, $FC, $00, $FC, $70, $F8, $00 db $00, $00, $17, $00, $38, $17, $33, $0F db $13, $0C, $17, $09, $16, $0D, $15, $0E db $10, $0F, $09, $06, $17, $08, $13, $0E db $19, $07, $0C, $03, $07, $00, $03, $00 db $00, $00, $F8, $00, $FC, $40, $7C, $A0 db $B8, $50, $FE, $90, $FF, $C6, $7F, $D6 db $BE, $50, $F8, $00, $30, $C0, $70, $E0 db $F0, $60, $70, $80, $F8, $70, $F8, $00 db $0F, $00, $1F, $0B, $1F, $06, $3E, $0D db $3B, $0C, $77, $09, $7F, $03, $1F, $0B db $1E, $0B, $1D, $02, $17, $08, $1A, $07 db $39, $07, $3C, $1B, $3F, $0C, $1F, $00 db $80, $00, $E0, $00, $D0, $E0, $68, $F0 db $BE, $70, $89, $76, $91, $6E, $82, $7C db $84, $78, $38, $C0, $E6, $18, $27, $DE db $D7, $EE, $3E, $C0, $FC, $38, $FC, $00 db $1B, $00, $3C, $1B, $3F, $18, $3F, $00 db $2C, $13, $2F, $13, $2F, $17, $2F, $14 db $2F, $14, $2B, $17, $37, $08, $30, $1F db $6F, $1F, $D0, $6F, $EF, $70, $FF, $00 db $80, $00, $40, $80, $A0, $C0, $F0, $40 db $F8, $10, $F8, $50, $F8, $D0, $C8, $F0 db $AE, $D0, $57, $AA, $A7, $5A, $3E, $E0 db $D8, $E0, $3E, $C8, $FF, $1E, $FF, $00 db $00, $00, $03, $00, $04, $03, $08, $07 db $19, $07, $3F, $10, $3F, $17, $3F, $10 db $2F, $10, $3F, $04, $2F, $15, $4F, $33 db $4F, $30, $5E, $2D, $3F, $0C, $1F, $00 db $03, $00, $04, $03, $09, $07, $1B, $04 db $3F, $13, $3F, $14, $3F, $10, $27, $18 db $32, $0D, $36, $0D, $2B, $17, $27, $18 db $2E, $11, $1F, $0C, $1F, $0C, $1E, $00 db $33, $00, $7F, $30, $7F, $33, $BB, $44 db $BC, $53, $B9, $57, $7A, $15, $2C, $13 db $1C, $03, $1C, $0B, $17, $0C, $13, $0F db $1C, $03, $3F, $0C, $3F, $00, $1F, $00 db $CC, $00, $FE, $0C, $FE, $CC, $DD, $22 db $3D, $CA, $9D, $EA, $5E, $E8, $34, $C8 db $5C, $A0, $A8, $70, $48, $F0, $B8, $C0 db $78, $B0, $FC, $30, $CC, $30, $F8, $00 db $33, $00, $7F, $33, $7B, $24, $3C, $13 db $39, $17, $3A, $17, $2C, $13, $1E, $01 db $19, $06, $14, $0F, $12, $0F, $1D, $03 db $1E, $0D, $3F, $0C, $33, $0C, $1F, $00 db $EC, $00, $FE, $CC, $DE, $24, $3C, $C8 db $9C, $E8, $5C, $A8, $34, $C8, $38, $C0 db $28, $D0, $D8, $30, $28, $F0, $C8, $F0 db $38, $C0, $FC, $30, $FC, $00, $F8, $00 db $00, $00, $07, $00, $1B, $07, $FC, $1B db $6E, $1D, $37, $0E, $3F, $00, $7F, $18 db $7F, $36, $EF, $1E, $FF, $40, $F0, $6F db $71, $2E, $3F, $00, $07, $03, $0F, $00 db $00, $00, $C0, $00, $30, $C0, $CC, $F0 db $42, $BC, $E2, $5C, $64, $D8, $E8, $D0 db $F0, $C0, $A0, $C0, $E0, $00, $9C, $60 db $EE, $F4, $9E, $64, $FE, $8C, $FE, $00 db $07, $00, $1B, $07, $7C, $1B, $EE, $1D db $77, $0E, $3F, $00, $7F, $14, $7F, $36 db $EF, $1E, $FF, $40, $F0, $6F, $71, $2E db $3E, $01, $03, $00, $01, $00, $07, $00 db $C0, $00, $20, $C0, $D0, $E0, $48, $B0 db $E8, $50, $64, $D8, $E4, $D8, $F8, $C0 db $A0, $C0, $E0, $00, $90, $60, $E8, $F0 db $04, $F8, $FC, $00, $FC, $78, $FE, $00 db $00, $00, $00, $00, $03, $00, $04, $03 db $19, $07, $39, $17, $3C, $13, $3F, $14 db $2F, $13, $17, $08, $1B, $04, $3D, $1B db $3F, $1C, $7B, $2E, $7F, $26, $3F, $00 db $67, $20, $BF, $94, $9F, $00, $3E, $11 db $3A, $15, $3B, $17, $27, $1E, $3F, $0D db $1F, $07, $17, $08, $12, $0D, $13, $0D db $1E, $01, $3F, $0C, $3E, $0D, $1F, $00 db $0F, $00, $B6, $0F, $F9, $37, $DC, $3B db $EF, $1C, $7E, $01, $FF, $29, $FF, $6D db $FE, $1D, $FB, $64, $F5, $6A, $61, $1E db $13, $0C, $0F, $00, $1F, $03, $1F, $00 db $80, $00, $40, $80, $A0, $C0, $90, $60 db $C8, $B0, $C8, $B0, $D0, $A0, $60, $80 db $C0, $00, $40, $80, $20, $C0, $F0, $E0 db $10, $E0, $E0, $00, $E0, $C0, $F0, $00 db $00, $00, $00, $00, $03, $00, $02, $01 db $06, $03, $0F, $06, $0F, $03, $0F, $05 db $7F, $00, $F1, $6E, $F0, $6F, $7F, $00 db $E4, $5F, $F3, $6E, $7B, $34, $7F, $00 db $23, $02, $66, $04, $79, $01, $FD, $18 db $56, $B8, $FD, $36, $7B, $B6, $F3, $0E db $69, $F6, $BD, $7A, $F9, $06, $42, $BC db $42, $BC, $A4, $18, $18, $00, $80, $00 db $06, $00, $0F, $06, $0E, $01, $09, $06 db $16, $0D, $1E, $09, $1C, $0B, $39, $17 db $39, $17, $39, $17, $38, $07, $1C, $0B db $0F, $04, $0F, $03, $07, $00, $03, $00 db $06, $00, $0F, $06, $1F, $06, $2F, $16 db $2F, $10, $29, $16, $27, $18, $18, $0F db $17, $0F, $19, $06, $2A, $15, $3E, $11 db $39, $17, $14, $03, $03, $00, $00, $00 db $00, $00, $07, $00, $0B, $06, $1F, $04 db $3E, $11, $3F, $15, $3F, $17, $27, $1E db $17, $0F, $2B, $17, $27, $18, $2F, $16 db $3F, $06, $3F, $06, $1F, $06, $0F, $00 db $0C, $00, $34, $08, $46, $38, $41, $3E db $8F, $70, $BF, $6F, $AB, $77, $CF, $70 db $DB, $6D, $BF, $5B, $77, $38, $6F, $33 db $3B, $01, $73, $00, $00, $00, $00, $00 db $00, $00, $78, $00, $A8, $70, $24, $F8 db $34, $C8, $CC, $30, $C4, $B8, $C6, $B8 db $B7, $CA, $FF, $B2, $FF, $B2, $FF, $86 db $87, $02, $02, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $07, $00, $19, $06 db $12, $0D, $1E, $0D, $11, $0E, $09, $06 db $07, $01, $0B, $05, $3B, $05, $23, $1D db $11, $0E, $11, $0F, $0C, $03, $03, $00 db $3E, $00, $7F, $3E, $FE, $04, $1C, $E0 db $3C, $D8, $3C, $D8, $DC, $20, $FE, $FC db $FF, $B6, $FF, $94, $5C, $A0, $F6, $38 db $3B, $DC, $9F, $EC, $6D, $F0, $F0, $00 db $18, $00, $3C, $18, $3C, $18, $3C, $00 db $27, $18, $26, $19, $29, $16, $3B, $07 db $2A, $15, $3C, $13, $3F, $10, $3B, $14 db $9F, $83, $8B, $04, $34, $23, $63, $40 db $03, $00, $1C, $03, $3E, $19, $3F, $1B db $3B, $04, $2F, $10, $2F, $10, $2F, $15 db $2F, $15, $1B, $07, $17, $08, $14, $0F db $13, $0F, $08, $07, $1F, $00, $0F, $00 db $C0, $00, $38, $C0, $7C, $98, $FC, $D8 db $DC, $20, $F4, $08, $F4, $08, $F4, $A8 db $F4, $A8, $D4, $E8, $E8, $10, $08, $F0 db $E8, $F0, $78, $80, $EC, $70, $F8, $00 db $03, $00, $1F, $00, $3F, $1B, $3F, $18 db $3D, $03, $29, $17, $2A, $15, $2C, $13 db $2C, $13, $2C, $13, $14, $0B, $13, $0C db $17, $0F, $18, $07, $1F, $00, $0F, $00 db $80, $00, $D8, $00, $FC, $D8, $FC, $18 db $BC, $C0, $94, $E8, $94, $E8, $94, $E8 db $34, $C8, $48, $B0, $88, $70, $28, $F0 db $C8, $F0, $78, $80, $FC, $30, $F8, $00 db $03, $00, $0C, $03, $1F, $0C, $77, $0E db $3B, $06, $0F, $00, $3F, $0A, $3F, $1A db $17, $0E, $0B, $04, $0C, $03, $08, $07 db $0F, $07, $09, $06, $0F, $01, $1F, $00 db $E0, $00, $D0, $20, $E8, $D0, $E4, $D8 db $E2, $1C, $22, $DC, $24, $D8, $28, $D0 db $30, $C0, $30, $C0, $D0, $20, $28, $F0 db $C8, $F0, $F8, $00, $F0, $E0, $F8, $00 db $00, $00, $03, $00, $2C, $03, $3F, $0C db $37, $0E, $1B, $06, $0F, $00, $3F, $0A db $3F, $1A, $17, $0E, $09, $06, $06, $01 db $06, $03, $0F, $01, $1F, $0E, $1F, $00 db $00, $00, $F0, $00, $CC, $30, $E2, $DC db $E2, $DC, $E2, $1C, $24, $D8, $24, $D8 db $28, $D0, $30, $C0, $30, $C0, $D8, $20 db $3C, $E8, $FC, $C8, $FC, $18, $FE, $00 db $07, $00, $0B, $07, $1B, $04, $3F, $13 db $3F, $14, $3F, $10, $67, $18, $FF, $4D db $F7, $4D, $EB, $57, $FF, $50, $F8, $57 db $F7, $4F, $7E, $01, $37, $0E, $1F, $00 db $03, $00, $04, $03, $18, $07, $3B, $17 db $3F, $14, $3F, $10, $27, $18, $FF, $0D db $F7, $6D, $BB, $77, $9F, $70, $9E, $75 db $9F, $75, $5C, $33, $3F, $00, $0F, $00 db $00, $00, $07, $00, $0B, $07, $1B, $04 db $3F, $13, $3F, $14, $3F, $10, $27, $18 db $7F, $00, $7F, $36, $6B, $3E, $7F, $22 db $63, $3E, $63, $3E, $3F, $1C, $1F, $00 db $00, $00, $C0, $00, $20, $C0, $18, $E0 db $DC, $E8, $FC, $28, $FC, $08, $E4, $18 db $F8, $B0, $F4, $A8, $F4, $C8, $F4, $38 db $F8, $B0, $30, $C0, $F8, $00, $F0, $00 db $00, $00, $03, $00, $04, $03, $18, $07 db $3B, $17, $3F, $14, $3F, $10, $7F, $00 db $7F, $36, $6B, $3E, $7F, $22, $63, $3E db $63, $3E, $7F, $1C, $3F, $00, $1F, $00 db $00, $00, $E0, $00, $D0, $E0, $D8, $20 db $FC, $C8, $FC, $28, $FC, $08, $E4, $18 db $F8, $B0, $EC, $B0, $D6, $E8, $F2, $0C db $EE, $F4, $7C, $80, $EC, $70, $F8, $00 db $00, $00, $07, $00, $0B, $07, $1B, $04 db $3F, $13, $3F, $14, $FF, $10, $FF, $40 db $FF, $7F, $DE, $73, $DE, $7F, $DE, $7F db $DE, $7F, $E1, $7F, $7F, $3F, $3F, $00 db $00, $00, $C0, $00, $20, $C0, $18, $E0 db $DC, $E8, $FC, $28, $FC, $08, $E4, $98 db $F8, $B0, $F4, $A8, $F4, $88, $FC, $B0 db $F8, $B0, $F0, $80, $F8, $00, $F0, $00 db $00, $00, $03, $00, $04, $03, $18, $07 db $3B, $17, $FF, $14, $FF, $40, $FF, $7F db $DE, $73, $DE, $7F, $DE, $7F, $DE, $7F db $E1, $7F, $7F, $3F, $7F, $00, $3F, $00 db $00, $00, $E0, $00, $D0, $E0, $D8, $20 db $FC, $C8, $FC, $28, $FC, $88, $E4, $98 db $F8, $B0, $EC, $B0, $D6, $A8, $F2, $8C db $CE, $B4, $FC, $00, $EC, $70, $F8, $00 db $00, $00, $07, $00, $1A, $07, $3D, $1B db $EE, $1D, $F7, $0E, $FD, $42, $FF, $54 db $FF, $36, $AF, $5E, $B3, $4C, $AF, $53 db $BF, $43, $AB, $44, $EF, $01, $1F, $00 db $00, $00, $C0, $00, $20, $C0, $90, $E0 db $48, $B0, $E4, $58, $64, $D8, $E8, $D0 db $F0, $C0, $A0, $C0, $E0, $00, $90, $60 db $88, $70, $F8, $00, $F0, $E0, $F8, $00 db $00, $00, $00, $00, $07, $00, $5B, $07 db $7C, $1B, $6E, $1D, $F7, $0E, $FD, $42 db $FF, $54, $FF, $36, $AF, $58, $BF, $46 db $BF, $46, $A7, $40, $AF, $47, $DF, $00 db $00, $00, $00, $00, $E0, $00, $18, $E0 db $C4, $F8, $44, $B8, $E4, $58, $68, $D0 db $E8, $D0, $F0, $C0, $E0, $80, $98, $60 db $1C, $E8, $3C, $C8, $FC, $18, $FE, $00 db $00, $00, $03, $00, $04, $03, $09, $07 db $12, $0D, $27, $1A, $26, $1B, $17, $0B db $0F, $03, $05, $03, $07, $00, $09, $06 db $10, $0F, $1F, $00, $0F, $07, $1F, $00 db $00, $00, $E0, $00, $58, $E0, $BC, $D8 db $77, $B8, $EF, $70, $BF, $42, $FF, $2A db $FB, $6C, $FD, $02, $1D, $EA, $9D, $6A db $FD, $02, $F5, $02, $E3, $80, $F8, $00 db $03, $00, $0F, $03, $11, $0E, $23, $1D db $F7, $0A, $BF, $50, $BF, $5A, $7F, $02 db $3F, $18, $3D, $1B, $38, $17, $1F, $00 db $11, $0E, $3C, $03, $7B, $3C, $7F, $00 db $00, $00, $00, $00, $E0, $00, $DA, $E0 db $3E, $D8, $76, $B8, $EF, $70, $BF, $42 db $FF, $2A, $FB, $6C, $FD, $02, $1D, $EA db $9D, $6A, $FD, $02, $F5, $E2, $FB, $00 db $07, $00, $08, $07, $13, $0F, $24, $1B db $4F, $34, $4D, $36, $2F, $16, $1F, $06 db $FF, $01, $FE, $6D, $D7, $7C, $FF, $45 db $C7, $7D, $C7, $7C, $7F, $3B, $3F, $00 db $00, $00, $0F, $00, $31, $0F, $46, $3F db $44, $3B, $4F, $34, $2D, $16, $2F, $16 db $7F, $00, $7F, $36, $6B, $3E, $7F, $22 db $63, $3E, $63, $3E, $3F, $1C, $3F, $00 db $07, $00, $08, $07, $13, $0F, $24, $1B db $4F, $34, $7D, $06, $3F, $10, $3F, $1F db $37, $1C, $37, $1F, $37, $1F, $37, $1F db $38, $1F, $1F, $0F, $0F, $00, $1F, $00 db $C0, $00, $B0, $C0, $78, $B0, $EE, $70 db $DC, $E0, $70, $80, $FC, $20, $FC, $E8 db $B8, $E0, $B0, $E0, $B0, $E0, $B0, $E0 db $70, $E0, $E0, $C0, $E0, $00, $F0, $00 db $00, $00, $0F, $00, $31, $0F, $46, $3F db $44, $3B, $7F, $04, $7F, $20, $7F, $3F db $6F, $39, $6F, $3F, $6F, $3F, $6F, $3F db $70, $3F, $3F, $1F, $1F, $00, $7F, $00 db $00, $00, $C0, $00, $B4, $C0, $7C, $B0 db $EC, $70, $F8, $00, $F0, $40, $FC, $D0 db $7C, $D8, $68, $D0, $70, $C0, $60, $C0 db $E0, $C0, $F0, $80, $F8, $70, $F8, $00 db $00, $00, $03, $00, $07, $00, $0F, $03 db $1F, $04, $3D, $13, $38, $17, $3A, $15 db $2C, $13, $34, $0B, $2C, $13, $3C, $0B db $17, $0C, $18, $07, $1F, $00, $0F, $00 db $E7, $00, $FF, $42, $FF, $1E, $F3, $CE db $FB, $26, $BF, $CA, $9F, $EA, $9F, $EA db $15, $EA, $3A, $C4, $5C, $A0, $AC, $70 db $C8, $F0, $38, $C0, $FC, $30, $F8, $00 db $00, $00, $00, $00, $03, $00, $0F, $03 db $1F, $04, $3D, $13, $39, $17, $39, $17 db $28, $17, $3C, $03, $2A, $15, $35, $0E db $13, $0F, $1C, $03, $3F, $0C, $1F, $00 db $00, $00, $E7, $00, $FF, $02, $FF, $CE db $FB, $26, $BF, $CA, $1F, $EA, $5F, $AA db $37, $CA, $3D, $C2, $3A, $C4, $2C, $D0 db $E8, $30, $18, $E0, $F8, $00, $F0, $00 db $37, $00, $3E, $07, $7F, $01, $7F, $00 db $7F, $3E, $7F, $2D, $7F, $2D, $7F, $37 db $3F, $12, $1F, $01, $13, $0D, $11, $0E db $0F, $00, $07, $00, $0F, $07, $1F, $00 db $80, $00, $40, $80, $3F, $C0, $BD, $DE db $E9, $56, $FD, $8A, $F9, $96, $7F, $80 db $F8, $30, $F8, $B0, $F8, $80, $C8, $30 db $98, $60, $FC, $08, $FC, $98, $FC, $00 db $1F, $00, $27, $1B, $5B, $24, $BD, $53 db $F9, $17, $3A, $15, $6C, $13, $5C, $23 db $4C, $33, $3B, $04, $17, $0F, $18, $07 db $1F, $00, $0F, $00, $01, $00, $00, $00 db $C0, $00, $E0, $C0, $D8, $20, $BC, $C8 db $9C, $E8, $9C, $E8, $94, $E8, $38, $C0 db $D8, $30, $28, $F0, $C8, $F0, $38, $C0 db $C8, $30, $FC, $70, $F8, $00, $00, $00 db $80, $00, $C0, $00, $E0, $C0, $F8, $20 db $BC, $C8, $9F, $E8, $9F, $EA, $97, $EA db $3F, $C2, $57, $AA, $97, $6A, $2F, $F2 db $CF, $F2, $3E, $C0, $FC, $30, $F8, $00 db $C0, $00, $E0, $00, $E0, $C0, $F8, $20 db $BC, $C8, $9C, $E8, $5E, $A8, $37, $CA db $3D, $C6, $2D, $D6, $2D, $D6, $DD, $26 db $FD, $E6, $1E, $E4, $FC, $00, $F0, $00 db $00, $00, $00, $00, $00, $00, $03, $00 db $04, $03, $1A, $05, $3F, $13, $3F, $14 db $7F, $50, $67, $58, $7F, $6D, $3F, $35 db $1F, $18, $0F, $0F, $00, $00, $00, $00 db $00, $00, $00, $00, $03, $00, $04, $03 db $1A, $05, $3F, $13, $3F, $14, $3F, $10 db $67, $58, $7F, $6D, $77, $6D, $3B, $37 db $1F, $18, $0F, $0F, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $03, $00 db $0D, $03, $1E, $0D, $77, $0E, $3B, $07 db $0E, $01, $3F, $0A, $7F, $5B, $77, $6F db $3F, $30, $1F, $1F, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $E0, $00 db $90, $E0, $68, $F0, $24, $D8, $F2, $2C db $B2, $6C, $F2, $6C, $F6, $6A, $DE, $66 db $FC, $0C, $F8, $F8, $00, $00, $00, $00 db $00, $00, $00, $00, $03, $00, $07, $00 db $0F, $03, $1F, $04, $3D, $13, $39, $17 db $7A, $55, $6C, $53, $7C, $63, $7C, $73 db $3C, $3B, $0F, $0C, $00, $00, $00, $00 db $00, $00, $00, $00, $80, $00, $C0, $00 db $E0, $C0, $F8, $20, $BC, $C8, $9C, $E8 db $9E, $EA, $96, $EA, $1E, $E6, $3E, $DE db $7C, $BC, $F0, $70, $00, $00, $00, $00 db $00, $00, $07, $00, $09, $06, $16, $0F db $27, $18, $27, $1B, $4D, $3B, $4A, $3D db $41, $3E, $43, $3C, $3F, $00, $14, $0F db $13, $0F, $0C, $03, $07, $00, $01, $00 db $00, $00, $F0, $00, $F8, $80, $F8, $40 db $70, $A0, $FC, $20, $FC, $88, $FE, $A0 db $5E, $AC, $BE, $44, $FF, $08, $DD, $2A db $EB, $B6, $F6, $1C, $FC, $68, $F8, $00 db $00, $00, $00, $00, $03, $00, $0D, $03 db $1E, $0D, $77, $0E, $3B, $07, $0E, $01 db $3F, $0A, $3F, $1B, $37, $2F, $38, $37 db $1F, $18, $0F, $0F, $00, $00, $00, $00 db $00, $00, $00, $00, $E0, $00, $10, $E0 db $C8, $F0, $24, $D8, $F2, $2C, $B2, $6C db $F2, $6C, $F4, $68, $DC, $64, $FC, $4C db $F8, $18, $F0, $F0, $00, $00, $00, $00 db $00, $00, $03, $00, $07, $00, $0F, $03 db $1F, $04, $3D, $13, $39, $17, $3A, $15 db $2C, $13, $3C, $23, $3C, $23, $3C, $33 db $1F, $1C, $07, $07, $00, $00, $00, $00 db $00, $00, $80, $00, $C0, $00, $E0, $C0 db $F8, $20, $BC, $C8, $9C, $E8, $9C, $E8 db $94, $E8, $1C, $E4, $3C, $CC, $7C, $9C db $F8, $38, $E0, $E0, $00, $00, $00, $00 db $00, $00, $00, $07, $07, $18, $1F, $20 db $3F, $40, $3F, $40, $0F, $F0, $7F, $80 db $7F, $80, $3F, $40, $01, $3E, $1F, $20 db $3F, $40, $1F, $20, $07, $18, $00, $07 db $00, $00, $00, $03, $03, $1C, $1F, $20 db $1F, $20, $03, $3C, $3F, $C0, $7F, $00 db $7F, $80, $3F, $40, $07, $18, $1F, $20 db $3F, $40, $1F, $20, $03, $1C, $00, $03 db $1F, $00, $2B, $1D, $5F, $30, $BE, $63 db $FF, $4F, $BF, $4C, $FE, $19, $ED, $5B db $77, $2E, $7E, $01, $E4, $5B, $F3, $6C db $7F, $03, $07, $03, $03, $00, $00, $00 db $30, $00, $F8, $30, $F8, $90, $D8, $20 db $48, $B0, $EC, $90, $DE, $AC, $9E, $6C db $36, $EC, $7A, $CC, $FC, $80, $F4, $08 db $68, $D0, $B0, $C0, $C0, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $07, $00, $09, $07, $0B, $07, $0F, $06 db $06, $01, $0D, $06, $07, $01, $01, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $40, $00, $E0, $40, $A0, $40, $70, $A0 db $70, $A0, $E0, $00, $C0, $80, $80, $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 $03, $01, $01, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $FF, $78, $FB, $77, $FB, $64, $BF, $53 db $BF, $54, $BF, $50, $A7, $58, $9F, $6D db $B7, $4D, $CB, $37, $CF, $70, $F8, $67 db $F7, $0F, $9C, $63, $AF, $5C, $FF, $00 db $FF, $3E, $3F, $DE, $1F, $E6, $DD, $EA db $FD, $2A, $FD, $0A, $E5, $1A, $F9, $B6 db $ED, $B2, $D7, $E8, $F3, $0E, $1F, $E6 db $FF, $F0, $39, $C6, $F5, $3A, $FF, $00 db $FF, $07, $FF, $0E, $FE, $1D, $E6, $1D db $E3, $1C, $E3, $1C, $E3, $1C, $E3, $1C db $E3, $1C, $E3, $1C, $E2, $1D, $E3, $1D db $E3, $1D, $A3, $5C, $E3, $5C, $FF, $40 db $FF, $00, $2F, $F0, $5F, $EC, $BB, $5C db $F7, $B8, $FF, $C4, $FF, $D6, $7B, $DC db $A7, $58, $5F, $A0, $23, $DC, $FF, $9C db $C3, $BC, $FF, $00, $DF, $3A, $FF, $02 db $F9, $07, $F8, $07, $F8, $07, $F8, $07 db $F8, $07, $F8, $07, $D8, $27, $D8, $27 db $F8, $17, $FC, $0F, $FB, $07, $FC, $03 db $FE, $01, $83, $7C, $FF, $7E, $FF, $7F db $FF, $E0, $FF, $F0, $7F, $F8, $27, $F8 db $07, $F8, $07, $F8, $07, $F8, $07, $F8 db $07, $F8, $07, $F8, $87, $F8, $07, $F8 db $07, $F8, $05, $FA, $87, $7A, $FF, $02 db $FF, $7F, $FF, $7F, $FF, $7F, $80, $7F db $80, $7F, $80, $7F, $80, $7F, $80, $7F db $84, $7F, $86, $7F, $87, $7F, $83, $7F db $81, $7F, $80, $7F, $80, $7F, $FF, $00 db $FF, $07, $FF, $0F, $FE, $1F, $E4, $1F db $E0, $1F, $E0, $1F, $E0, $1F, $E0, $1F db $E0, $1F, $E0, $1F, $E0, $1F, $E0, $1F db $E0, $1F, $A0, $5F, $E1, $5E, $FF, $40 db $9F, $E0, $1F, $E0, $1F, $E0, $1F, $E0 db $1F, $E0, $1F, $E0, $1F, $E0, $1F, $E0 db $1F, $E0, $1F, $E0, $1F, $E0, $3F, $C0 db $7F, $80, $C1, $3E, $FF, $7E, $FF, $FE db $C0, $00, $A0, $C0, $30, $C0, $E8, $F0 db $FC, $00, $FF, $00, $FE, $00, $F8, $D0 db $E8, $70, $70, $80, $F0, $60, $F0, $E0 db $F0, $00, $78, $80, $BC, $78, $FC, $00 db $1B, $00, $3D, $1B, $3F, $18, $3F, $00 db $2F, $11, $2F, $15, $2F, $17, $2B, $16 db $2B, $16, $15, $0B, $1B, $04, $18, $0F db $27, $1F, $78, $27, $F7, $78, $7F, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $1F, $0F, $10, $0F, $10, $0F, $10 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $FC, $F8, $04, $F8, $04, $F8, $04 db $0F, $10, $0F, $10, $0F, $10, $0F, $10 db $0F, $10, $00, $1F, $00, $00, $00, $00 db $F8, $04, $F8, $04, $F8, $04, $F8, $04 db $F8, $04, $00, $FC, $00, $00, $00, $00 db $00, $00, $00, $00, $1F, $0F, $1F, $10 db $1F, $10, $1F, $10, $1F, $10, $1F, $10 db $00, $00, $00, $00, $FC, $F8, $FC, $04 db $FC, $04, $FC, $04, $FC, $04, $FC, $04 db $1F, $10, $1F, $10, $10, $10, $10, $1F db $10, $1F, $1F, $1F, $00, $00, $00, $00 db $FC, $04, $FC, $04, $04, $04, $04, $FC db $04, $FC, $FC, $FC, $00, $00, $00, $00 db $1F, $0F, $1F, $10, $1F, $10, $1F, $10 db $1F, $10, $1F, $10, $1F, $10, $1F, $10 db $FC, $F8, $FC, $04, $FC, $04, $FC, $04 db $FC, $04, $FC, $04, $FC, $04, $FC, $04 db $10, $10, $10, $1F, $10, $1F, $10, $1F db $10, $1F, $1F, $1F, $00, $00, $00, $00 db $04, $04, $04, $FC, $04, $FC, $04, $FC db $04, $FC, $FC, $FC, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $3C, $3C db $5A, $66, $99, $E7, $81, $FF, $81, $FF db $7E, $7E, $3C, $24, $3C, $24, $3C, $24 db $3C, $24, $18, $18, $00, $00, $00, $00 db $00, $00, $18, $18, $3C, $24, $3C, $24 db $7E, $42, $FF, $99, $FF, $A5, $FF, $A5 db $FF, $99, $7E, $42, $3C, $3C, $1C, $14 db $7C, $74, $7C, $54, $7C, $44, $7C, $7C db $FF, $FF, $FF, $FF, $E3, $FF, $DD, $FF db $BE, $FF, $BF, $FF, $BF, $FF, $BF, $FF db $DF, $FF, $EF, $FF, $F7, $FF, $FB, $FF db $FD, $FF, $FE, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $E3, $E7, $D9 db $DF, $A0, $FF, $80, $FF, $80, $FF, $80 db $DF, $FF, $EF, $FF, $F7, $FF, $FB, $FF db $FD, $FF, $FE, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $E3, $E7, $D9 db $DF, $A0, $FF, $80, $FF, $80, $FF, $80 db $FF, $C0, $FF, $E0, $FF, $F0, $FF, $F8 db $FF, $FC, $FF, $FE, $FF, $FF, $FF, $FF 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, $01, $FF, $01, $FF, $01 db $FF, $00, $F8, $07, $D0, $2F, $91, $6E db $83, $7D, $B3, $4D, $FF, $31, $FF, $35 db $EF, $1D, $97, $6F, $8B, $77, $C7, $38 db $FF, $00, $FF, $06, $FF, $06, $FF, $06 db $FF, $00, $FC, $03, $F9, $07, $F8, $07 db $FC, $1B, $FC, $13, $FF, $1B, $FB, $06 db $F7, $0E, $CF, $37, $9B, $67, $FD, $03 db $FF, $00, $FF, $0D, $FF, $0D, $FF, $0D db $FF, $00, $F1, $0E, $EE, $17, $EE, $1B db $EE, $1D, $C0, $3F, $80, $7F, $B2, $4D db $B8, $57, $9C, $63, $DF, $3C, $EF, $1F db $FF, $00, $FF, $00, $FF, $01, $FF, $03 db $FE, $07, $FC, $0F, $F8, $1F, $FE, $1F db $FE, $03, $FE, $03, $FE, $03, $FE, $03 db $FE, $03, $FF, $03, $FF, $00, $FF, $00 db $FF, $00, $3F, $00, $FF, $00, $FF, $00 db $FF, $00, $FC, $00, $FF, $00, $FF, $00 db $FF, $00, $F3, $00, $E0, $00, $0E, $00 db $FF, $00, $7C, $00, $31, $00, $87, $00 db $7F, $00, $7E, $00, $54, $00, $C1, $00 db $6B, $80, $7E, $81, $D5, $2A, $D7, $28 db $00, $FF, $63, $9C, $00, $FF, $94, $63 db $00, $FF, $06, $F9, $00, $FF, $03, $FC db $FF, $00, $CF, $00, $FF, $00, $FF, $00 db $FF, $00, $F3, $00, $FF, $00, $FF, $00 db $FF, $00, $FC, $00, $38, $00, $83, $00 db $FF, $00, $F1, $00, $C4, $00, $1E, $00 db $95, $6A, $D7, $28, $FE, $00, $5E, $00 db $14, $00, $A1, $00, $EA, $01, $7C, $83 db $00, $FF, $13, $AC, $00, $FF, $30, $CD db $00, $FF, $06, $F9, $00, $FF, $A0, $1F db $FF, $00, $F3, $00, $FF, $00, $FF, $00 db $FF, $00, $CF, $00, $FF, $00, $FF, $00 db $FF, $00, $3F, $00, $0E, $00, $E0, $00 db $FF, $00, $C7, $00, $13, $00, $78, $00 db $6B, $80, $3E, $C1, $A9, $56, $EB, $14 db $7F, $00, $7E, $00, $5E, $00, $CB, $00 db $00, $FF, $30, $CD, $00, $FF, $06, $D9 db $00, $FF, $C1, $3E, $00, $FF, $14, $E3 db $FF, $00, $FC, $00, $FF, $00, $FF, $00 db $FF, $00, $3F, $00, $FF, $00, $FF, $00 db $FF, $00, $CF, $00, $83, $00, $38, $00 db $FF, $00, $1F, $00, $4C, $00, $E1, $00 db $5C, $00, $D5, $00, $53, $80, $3A, $C1 db $9D, $62, $D5, $2A, $77, $08, $3E, $00 db $00, $FF, $88, $35, $00, $FF, $0C, $B3 db $00, $FF, $33, $CC, $00, $FF, $0A, $F1 db $03, $00, $1C, $03, $E0, $1F, $02, $FC db $08, $F0, $01, $00, $11, $00, $CE, $00 db $C0, $00, $38, $C0, $07, $F8, $40, $3F db $08, $07, $80, $00, $A2, $00, $78, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $F8, $00, $C0, $00, $09, $00, $3F, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $1F, $00, $07, $00, $80, $00, $D8, $00 db $03, $00, $1C, $00, $E0, $00, $09, $00 db $01, $00, $E6, $00, $FF, $00, $FF, $00 db $C0, $00, $38, $00, $0F, $00, $A0, $00 db $CC, $00, $35, $00, $FB, $00, $FF, $00 db $FF, $00, $FF, $00, $FE, $00, $E0, $00 db $01, $00, $33, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $3F, $00, $0F, $00 db $80, $00, $E0, $00, $FF, $00, $FF, $00 db $03, $00, $1C, $03, $E2, $1C, $08, $F0 db $03, $00, $20, $00, $8F, $00, $FF, $00 db $C0, $00, $38, $C0, $47, $38, $10, $0F db $10, $00, $40, $00, $FC, $00, $FF, $00 db $FC, $00, $F0, $00, $01, $00, $03, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $1F, $00, $00, $00, $C0, $00, $E7, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $03, $00, $1C, $03, $E0, $1F, $00, $FF db $00, $FF, $04, $F8, $10, $E0, $05, $00 db $C0, $00, $38, $C0, $07, $F8, $00, $FF db $00, $FF, $20, $1F, $08, $07, $40, $00 db $03, $00, $E7, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $F8, $00, $C0, $00 db $80, $00, $F3, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $3F, $00, $07, $00 db $FF, $00, $3F, $00, $FF, $00, $FF, $00 db $FF, $00, $FC, $00, $FF, $00, $FF, $00 db $FF, $00, $F3, $00, $E0, $00, $0E, $00 db $FF, $00, $7C, $00, $31, $00, $87, $00 db $38, $00, $38, $00, $C6, $00, $C6, $00 db $C6, $00, $38, $00, $38, $00, $00, $00 db $00, $00, $38, $00, $38, $00, $C6, $00 db $C6, $00, $C6, $00, $38, $00, $38, $00 db $FF, $00, $CF, $00, $FF, $00, $FF, $00 db $FF, $00, $F3, $00, $FF, $00, $FF, $00 db $FF, $00, $FC, $00, $38, $00, $83, $00 db $FF, $00, $F1, $00, $C4, $00, $1E, $00 db $00, $00, $38, $00, $BA, $00, $C6, $00 db $C6, $00, $44, $00, $38, $00, $00, $00 db $00, $00, $38, $00, $44, $00, $C6, $00 db $C6, $00, $BA, $00, $38, $00, $00, $00 db $FF, $00, $F3, $00, $FF, $00, $FF, $00 db $FF, $00, $CF, $00, $FF, $00, $FF, $00 db $FF, $00, $3F, $00, $0E, $00, $E0, $00 db $FF, $00, $C7, $00, $13, $00, $78, $00 db $00, $00, $38, $00, $38, $00, $C6, $00 db $C6, $00, $C6, $00, $38, $00, $38, $00 db $38, $00, $38, $00, $C6, $00, $C6, $00 db $C6, $00, $38, $00, $38, $00, $00, $00 db $FF, $00, $FC, $00, $FF, $00, $FF, $00 db $FF, $00, $3F, $00, $FF, $00, $FF, $00 db $FF, $00, $CF, $00, $83, $00, $38, $00 db $FF, $00, $1F, $00, $4C, $00, $E1, $00 db $00, $00, $38, $00, $44, $00, $C6, $00 db $C6, $00, $BA, $00, $38, $00, $00, $00 db $00, $00, $38, $00, $BA, $00, $C6, $00 db $C6, $00, $44, $00, $38, $00, $00, $00 db $3F, $3F, $42, $42, $84, $84, $8A, $88 db $93, $90, $96, $91, $96, $91, $8B, $89 db $FC, $FC, $C2, $C2, $B1, $A1, $99, $91 db $59, $11, $D9, $11, $59, $91, $B1, $A1 db $81, $7E, $00, $FF, $00, $FF, $18, $E7 db $18, $E7, $00, $FF, $00, $FF, $81, $7E db $00, $00, $00, $00, $00, $00, $7C, $7C db $6C, $6C, $6C, $6C, $7C, $7C, $00, $00 db $3F, $3F, $43, $43, $8D, $85, $98, $88 db $99, $88, $9B, $88, $9A, $89, $8D, $85 db $7C, $7C, $22, $22, $11, $11, $51, $11 db $C9, $09, $69, $89, $69, $89, $D1, $91 db $81, $7E, $00, $FF, $18, $E7, $24, $C3 db $24, $C3, $18, $E7, $00, $FF, $81, $7E db $00, $00, $00, $00, $10, $10, $6C, $6C db $6C, $6C, $6C, $6C, $7C, $7C, $00, $00 db $3F, $3F, $40, $40, $9F, $81, $BE, $82 db $BC, $84, $B8, $88, $B9, $88, $9D, $85 db $FC, $FC, $02, $02, $F9, $C1, $BD, $A1 db $1D, $11, $9D, $11, $1D, $91, $B9, $A1 db $81, $7E, $3C, $C3, $66, $81, $42, $81 db $42, $81, $66, $81, $3C, $C3, $81, $7E db $00, $00, $10, $10, $28, $28, $6C, $6C db $6C, $6C, $44, $6C, $7C, $7C, $00, $00 db $3F, $3F, $41, $41, $9F, $83, $BD, $85 db $B8, $88, $B9, $88, $B8, $89, $9D, $85 db $FC, $FC, $82, $82, $79, $41, $3D, $21 db $9D, $11, $DD, $11, $5D, $91, $B9, $A1 db $BD, $42, $66, $81, $C3, $00, $81, $00 db $81, $00, $C3, $00, $66, $81, $BD, $42 db $10, $10, $28, $28, $28, $28, $6C, $6C db $44, $6C, $6C, $44, $7C, $7C, $00, $00 db $3C, $00, $C3, $00, $18, $E7, $00, $FF db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $F1, $FF, $CE, $F2, $9E, $E2, $BC, $C4 db $BD, $C4, $BD, $C4, $DC, $E4, $E2, $FE db $0F, $FF, $F3, $8F, $79, $47, $3D, $23 db $3D, $23, $BD, $23, $BB, $27, $47, $7F db $FF, $FF, $BD, $7E, $CB, $F7, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $0F, $00, $F0, $00, $06, $F9, $00, $FF db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $F8, $FF, $E3, $FC, $C7, $F9, $CE, $F2 db $CC, $F4, $CD, $F4, $E5, $FC, $F2, $FE db $1F, $FF, $C7, $BF, $63, $5F, $73, $4F db $B3, $2F, $B3, $2F, $27, $3F, $4F, $7F db $FF, $FF, $6F, $9F, $F2, $FD, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $C3, $00, $3C, $00, $81, $7E, $00, $FF db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $FF, $FF, $F8, $FF, $F3, $FD, $E6, $FA db $E6, $FA, $E5, $FC, $E5, $FC, $F2, $FE db $FF, $FF, $1F, $FF, $CF, $3F, $E7, $9F db $67, $5F, $27, $3F, $A7, $3F, $4F, $7F db $FF, $FF, $DB, $E7, $BC, $7F, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $F0, $00, $0F, $00, $60, $9F, $00, $FF db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $FF, $FF, $FF, $FF, $F8, $FF, $F0, $FF db $F1, $FF, $F2, $FE, $FA, $FE, $FE, $FE db $FF, $FF, $FF, $FF, $1F, $FF, $8F, $FF db $4F, $7F, $4F, $7F, $5F, $7F, $FF, $7F db $FF, $FF, $F6, $F9, $2F, $DF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $3F, $3F, $42, $42, $84, $84, $8A, $88 db $93, $90, $96, $91, $96, $91, $8B, $89 db $FC, $FC, $C2, $C2, $B1, $A1, $99, $91 db $59, $11, $D9, $11, $59, $91, $B1, $A1 db $00, $FF, $00, $FF, $1C, $FF, $32, $EF db $22, $FF, $14, $FF, $00, $FF, $00, $FF db $00, $FF, $42, $BD, $28, $F7, $00, $FF db $24, $FF, $5A, $BD, $00, $FF, $00, $FF db $3F, $3F, $43, $43, $8D, $85, $98, $88 db $99, $88, $9B, $88, $9A, $89, $8D, $85 db $7C, $7C, $22, $22, $11, $11, $51, $11 db $C9, $09, $69, $89, $69, $89, $D1, $91 db $00, $FF, $3C, $FF, $42, $FF, $99, $C7 db $B1, $CF, $81, $FF, $42, $FF, $00, $FF db $00, $FF, $00, $FF, $00, $FF, $10, $EF db $18, $FF, $00, $FF, $00, $FF, $00, $FF db $3F, $3F, $40, $40, $9F, $81, $BE, $82 db $BC, $84, $B8, $88, $B9, $88, $9D, $85 db $FC, $FC, $02, $02, $F9, $C1, $BD, $A1 db $1D, $11, $9D, $11, $1D, $91, $B9, $A1 db $00, $FF, $42, $BD, $28, $F7, $00, $FF db $24, $FF, $5A, $BD, $00, $FF, $00, $FF db $00, $FF, $00, $FF, $1C, $FF, $32, $EF db $22, $FF, $14, $FF, $00, $FF, $00, $FF db $3F, $3F, $41, $41, $9F, $83, $BD, $85 db $B8, $88, $B9, $88, $B8, $89, $9D, $85 db $FC, $FC, $82, $82, $79, $41, $3D, $21 db $9D, $11, $DD, $11, $5D, $91, $B9, $A1 db $00, $FF, $00, $FF, $00, $FF, $10, $EF db $18, $FF, $00, $FF, $00, $FF, $00, $FF db $00, $FF, $3C, $FF, $42, $FF, $89, $C7 db $B1, $CF, $81, $FF, $42, $FF, $00, $FF db $60, $00, $E3, $00, $C7, $00, $07, $00 db $06, $00, $0E, $00, $7C, $00, $78, $00 db $06, $00, $C7, $00, $E3, $00, $E0, $00 db $60, $00, $70, $00, $3E, $00, $1E, $00 db $78, $00, $7C, $00, $0E, $00, $06, $00 db $07, $00, $C7, $00, $E3, $00, $60, $00 db $0E, $00, $3E, $00, $7C, $00, $E0, $00 db $C0, $00, $C3, $00, $C7, $00, $06, $00 db $30, $00, $30, $00, $F1, $00, $E1, $00 db $01, $00, $03, $00, $0F, $00, $3E, $00 db $0C, $00, $0C, $00, $8F, $00, $87, $00 db $80, $00, $C0, $00, $F0, $00, $7C, $00 db $3E, $00, $0F, $00, $03, $00, $01, $00 db $E1, $00, $F1, $00, $30, $00, $30, $00 db $7C, $00, $E0, $00, $C0, $00, $C0, $00 db $87, $00, $8F, $00, $0C, $00, $0C, $00 db $1F, $00, $18, $00, $38, $00, $F8, $00 db $F0, $00, $80, $00, $81, $00, $83, $00 db $F8, $00, $18, $00, $1C, $00, $1F, $00 db $0F, $00, $01, $00, $81, $00, $C1, $00 db $83, $00, $81, $00, $80, $00, $F0, $00 db $F8, $00, $38, $00, $18, $00, $1F, $00 db $C1, $00, $81, $00, $01, $00, $0F, $00 db $1F, $00, $1C, $00, $18, $00, $F8, $00 db $C1, $00, $8F, $00, $0C, $00, $0C, $00 db $7C, $00, $7C, $00, $78, $00, $C0, $00 db $83, $00, $F1, $00, $30, $00, $30, $00 db $3E, $00, $3E, $00, $1E, $00, $03, $00 db $C0, $00, $78, $00, $7C, $00, $7C, $00 db $0C, $00, $0C, $00, $8F, $00, $C1, $00 db $03, $00, $02, $00, $3E, $00, $7E, $00 db $70, $00, $70, $00, $F1, $00, $83, $00 db $FF, $00, $DF, $00, $DF, $00, $FF, $00 db $EF, $00, $EF, $00, $DF, $00, $DF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $CF, $00, $39, $00, $FF, $00, $FF, $00 db $FB, $00, $FB, $00, $F7, $00, $F7, $00 db $FF, $00, $FB, $00, $FB, $00, $FF, $00 db $FF, $00, $FF, $00, $39, $00, $CF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $F7, $00, $F7, $00, $FB, $00, $FB, $00 db $FF, $00, $F7, $00, $F7, $00, $FF, $00 db $FF, $00, $FF, $00, $F3, $00, $9C, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $EF, $00, $EF, $00, $FF, $00 db $DF, $00, $DF, $00, $EF, $00, $EF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $9C, $00, $F3, $00, $FF, $00, $FF, $00 db $FF, $00, $FD, $00, $FD, $00, $FF, $00 db $FE, $00, $FE, $00, $FD, $00, $FD, $00 db $CF, $00, $39, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $BF, $00, $BF, $00, $7F, $00, $7F, $00 db $FF, $00, $BF, $00, $BF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $39, $00, $CF, $00 db $7F, $00, $7F, $00, $BF, $00, $BF, $00 db $FF, $00, $7F, $00, $7F, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $F3, $00, $9C, $00 db $FF, $00, $FE, $00, $FE, $00, $FF, $00 db $FD, $00, $FD, $00, $FE, $00, $FE, $00 db $9C, $00, $F3, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $DF, $00, $DF, $00, $FF, $00 db $EF, $00, $EF, $00, $DF, $00, $DF, $00 db $FF, $00, $F3, $00, $E0, $00, $0E, $00 db $FF, $00, $7C, $00, $31, $00, $87, $00 db $7F, $00, $7E, $00, $54, $00, $C1, $00 db $6B, $80, $7E, $81, $D5, $2A, $D7, $28 db $FF, $00, $FF, $00, $39, $00, $CF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $F7, $00, $F7, $00, $FB, $00, $FB, $00 db $FF, $00, $F7, $00, $F7, $00, $FF, $00 db $FF, $00, $FC, $00, $38, $00, $83, $00 db $FF, $00, $F1, $00, $C4, $00, $1E, $00 db $95, $6A, $D7, $28, $FE, $00, $5E, $00 db $14, $00, $A1, $00, $EA, $01, $7C, $83 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $9C, $00, $F3, $00, $FF, $00, $FF, $00 db $FF, $00, $FD, $00, $FD, $00, $FF, $00 db $FE, $00, $FE, $00, $FD, $00, $FD, $00 db $FF, $00, $3F, $00, $0E, $00, $E0, $00 db $FF, $00, $C7, $00, $13, $00, $78, $00 db $6B, $80, $3E, $C1, $A9, $56, $EB, $14 db $7F, $00, $7E, $00, $5E, $00, $CB, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $39, $00, $CF, $00 db $7F, $00, $7F, $00, $BF, $00, $BF, $00 db $FF, $00, $7F, $00, $7F, $00, $FF, $00 db $FF, $00, $CF, $00, $83, $00, $38, $00 db $FF, $00, $1F, $00, $4C, $00, $E1, $00 db $5C, $00, $D5, $00, $53, $80, $3A, $C1 db $9D, $62, $D5, $2A, $77, $08, $3E, $00 db $9C, $00, $F3, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $3F, $00, $FF, $00, $FF, $00 db $FF, $00, $FC, $00, $FF, $00, $FF, $00 db $00, $FF, $C0, $3F, $00, $FF, $00, $FF db $00, $FF, $03, $FC, $00, $FF, $00, $FF db $81, $7E, $00, $FF, $00, $FF, $18, $E7 db $18, $E7, $00, $FF, $00, $FF, $81, $7E db $00, $00, $00, $00, $00, $00, $7C, $7C db $6C, $6C, $6C, $6C, $7C, $7C, $00, $00 db $FF, $00, $CF, $00, $FF, $00, $FF, $00 db $FF, $00, $F3, $00, $FF, $00, $FF, $00 db $00, $FF, $30, $CF, $00, $FF, $00, $FF db $00, $FF, $0C, $F3, $00, $FF, $00, $FF db $81, $7E, $00, $FF, $18, $E7, $24, $C3 db $24, $C3, $18, $E7, $00, $FF, $81, $7E db $00, $00, $00, $00, $10, $10, $6C, $6C db $6C, $6C, $6C, $6C, $7C, $7C, $00, $00 db $FF, $00, $F3, $00, $FF, $00, $FF, $00 db $FF, $00, $CF, $00, $FF, $00, $FF, $00 db $00, $FF, $0C, $F3, $00, $FF, $00, $FF db $00, $FF, $30, $CF, $00, $FF, $00, $FF db $81, $7E, $3C, $C3, $66, $81, $42, $81 db $42, $81, $66, $81, $3C, $C3, $81, $7E db $00, $00, $10, $10, $28, $28, $6C, $6C db $6C, $6C, $44, $6C, $7C, $7C, $00, $00 db $FF, $00, $FC, $00, $FF, $00, $FF, $00 db $FF, $00, $3F, $00, $FF, $00, $FF, $00 db $00, $FF, $03, $FC, $00, $FF, $00, $FF db $00, $FF, $C0, $3F, $00, $FF, $00, $FF db $BD, $42, $66, $81, $C3, $00, $81, $00 db $81, $00, $C3, $00, $66, $81, $BD, $42 db $10, $10, $28, $28, $28, $28, $6C, $6C db $44, $6C, $6C, $44, $7C, $7C, $00, $00 db $AA, $FF, $55, $FF, $A2, $FF, $00, $FF db $00, $FF, $00, $FF, $00, $FF, $00, $FF db $FF, $FF, $7F, $FF, $AA, $FF, $55, $FF db $00, $FF, $00, $FF, $3C, $C3, $42, $81 db $18, $E7, $24, $C3, $E7, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $EF, $00 db $81, $00, $81, $00, $C3, $00, $FF, $00 db $FF, $00, $E7, $00, $FF, $00, $FF, $00 db $FF, $FF, $FF, $FF, $FE, $FF, $55, $FF db $AA, $FF, $00, $FF, $00, $FF, $3C, $C3 db $FF, $FF, $55, $FF, $AA, $FF, $45, $FF db $00, $FF, $00, $FF, $24, $DB, $04, $FB db $66, $81, $42, $81, $C3, $00, $FF, $00 db $FF, $00, $FF, $00, $E7, $00, $FF, $00 db $2C, $D3, $7E, $81, $E7, $00, $E7, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $FF, $FF, $FF, $AA, $FF, $55, $FF db $A2, $FF, $00, $FF, $3C, $C3, $42, $81 db $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF db $AA, $FF, $55, $FF, $00, $FF, $20, $DF db $81, $00, $81, $00, $C3, $00, $FF, $00 db $FF, $00, $E7, $00, $FF, $00, $FF, $00 db $18, $E7, $24, $C3, $E7, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $EF, $00 db $FF, $FF, $FF, $FF, $FE, $FF, $55, $FF db $AA, $FF, $00, $FF, $20, $DF, $22, $DD db $FF, $FF, $55, $FF, $AA, $FF, $45, $FF db $00, $FF, $00, $FF, $00, $FF, $3C, $C3 db $26, $D9, $7E, $81, $E7, $00, $E7, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $66, $81, $42, $81, $C3, $00, $FF, $00 db $FF, $00, $FF, $00, $E7, $00, $FF, $00 db $E0, $FF, $E4, $FF, $ED, $FE, $FF, $FC db $FB, $FC, $F3, $FC, $E3, $FC, $E2, $FD db $47, $BF, $C7, $3F, $CF, $3F, $DF, $3F db $FF, $3F, $B7, $7F, $27, $FF, $07, $FF db $E0, $FF, $E4, $FF, $ED, $FE, $FF, $FC db $FB, $FC, $F3, $FC, $E3, $FC, $E2, $FD db $47, $BF, $C7, $3F, $CF, $3F, $DF, $3F db $FF, $3F, $B7, $7F, $27, $FF, $07, $FF db $DC, $E0, $DD, $E0, $DF, $E0, $DB, $E4 db $D2, $EC, $C0, $FC, $C4, $F8, $CC, $F0 db $DB, $27, $DB, $07, $9B, $07, $1B, $07 db $13, $0F, $03, $1F, $03, $3F, $4B, $37 db $DC, $E0, $DD, $E0, $DF, $E0, $DB, $E4 db $D2, $EC, $C0, $FC, $C0, $F8, $C8, $F0 db $DB, $27, $DB, $07, $9B, $07, $1B, $07 db $13, $0F, $03, $1F, $03, $3F, $4B, $37 db $78, $80, $70, $80, $60, $80, $60, $80 db $60, $80, $64, $80, $6C, $80, $7C, $80 db $3E, $01, $36, $01, $26, $01, $06, $01 db $06, $01, $06, $01, $0E, $01, $1E, $01 db $78, $80, $70, $80, $60, $80, $60, $80 db $60, $80, $64, $80, $6C, $80, $7C, $80 db $3E, $01, $36, $01, $26, $01, $06, $01 db $06, $01, $06, $01, $0E, $01, $1E, $01 db $D2, $EC, $C0, $FC, $C4, $F8, $CC, $F0 db $DC, $E0, $DD, $E0, $DF, $E0, $DB, $E4 db $13, $0F, $03, $1F, $03, $3F, $4B, $37 db $DB, $27, $DB, $07, $9B, $07, $1B, $07 db $D2, $EC, $C0, $FC, $C4, $F8, $CC, $F0 db $DC, $E0, $DD, $E0, $DF, $E0, $DB, $E4 db $13, $0F, $03, $1F, $03, $3F, $4B, $37 db $DB, $27, $DB, $07, $9B, $07, $1B, $07 db $FF, $7F, $B0, $F0, $CB, $E0, $D8, $C0 db $90, $80, $80, $80, $84, $84, $84, $84 db $FF, $FE, $0D, $0F, $93, $07, $7B, $03 db $31, $01, $03, $0D, $8B, $9D, $8B, $9D db $84, $84, $80, $80, $80, $90, $90, $B8 db $EF, $DB, $D4, $EB, $BF, $F0, $FF, $7F db $8B, $9D, $0B, $1D, $3B, $0D, $5D, $31 db $E7, $BB, $2B, $D7, $FD, $0F, $FF, $FE db $7F, $FF, $B0, $F0, $E1, $E0, $C0, $C0 db $81, $80, $BB, $80, $A3, $99, $A3, $99 db $FE, $FF, $0D, $0F, $E7, $07, $1B, $03 db $E9, $01, $F3, $05, $F3, $25, $F3, $25 db $A3, $99, $A3, $90, $A9, $8C, $8C, $9E db $E7, $DD, $F4, $EB, $BF, $F0, $7F, $FF db $F3, $25, $F3, $05, $EB, $05, $0D, $19 db $F7, $DB, $1F, $E7, $ED, $0F, $FE, $FF db $FF, $7F, $B0, $F0, $C8, $E0, $DC, $C0 db $9C, $80, $CC, $A1, $C0, $B3, $C1, $BB db $FF, $FE, $0D, $0F, $03, $07, $1B, $03 db $1D, $01, $0B, $E1, $07, $F1, $23, $F5 db $D1, $BB, $D1, $BB, $D8, $B3, $F8, $8D db $E6, $DC, $D5, $EB, $B7, $F0, $FF, $7F db $23, $F5, $23, $F5, $03, $F5, $0D, $E9 db $17, $1B, $DB, $E7, $ED, $0F, $FF, $FE db $7F, $7F, $F0, $B0, $C7, $E0, $DB, $C0 db $B8, $80, $D7, $80, $CF, $A0, $CF, $A4 db $FE, $FE, $0F, $0D, $E3, $07, $C3, $03 db $01, $01, $81, $01, $DD, $01, $DD, $81 db $CF, $A4, $CF, $A4, $CF, $A0, $B7, $90 db $E8, $D8, $D4, $EB, $F7, $B0, $7F, $7F db $DD, $81, $DD, $81, $CD, $01, $91, $31 db $67, $3B, $2B, $D7, $FF, $0D, $FE, $FE db $00, $00, $03, $03, $05, $05, $75, $75 db $F7, $95, $F7, $F5, $F7, $F7, $FD, $FD db $F5, $15, $FF, $DD, $F7, $D7, $F7, $F5 db $97, $95, $27, $25, $C7, $C5, $43, $43 db $38, $00, $38, $00, $C6, $00, $C6, $00 db $C6, $00, $38, $00, $38, $00, $00, $00 db $00, $00, $38, $00, $38, $00, $C6, $00 db $C6, $00, $C6, $00, $38, $00, $38, $00 db $00, $00, $00, $00, $03, $03, $75, $75 db $F5, $95, $F7, $F5, $F7, $F5, $FF, $FF db $F5, $15, $FD, $DD, $F5, $D5, $F7, $F5 db $97, $97, $27, $25, $C3, $C3, $40, $40 db $00, $00, $38, $00, $BA, $00, $C6, $00 db $C6, $00, $44, $00, $38, $00, $00, $00 db $00, $00, $38, $00, $44, $00, $C6, $00 db $C6, $00, $BA, $00, $38, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $73, $73 db $F5, $95, $F5, $F5, $F7, $F5, $FF, $FD db $F7, $17, $FD, $DD, $F5, $D5, $F5, $F5 db $97, $95, $23, $23, $C0, $C0, $40, $40 db $00, $00, $38, $00, $38, $00, $C6, $00 db $C6, $00, $C6, $00, $38, $00, $38, $00 db $38, $00, $38, $00, $C6, $00, $C6, $00 db $C6, $00, $38, $00, $38, $00, $00, $00 db $00, $00, $00, $00, $03, $03, $75, $75 db $F7, $97, $F5, $F5, $F7, $F5, $FF, $FD db $F7, $15, $FF, $DF, $F5, $D5, $F5, $F5 db $95, $95, $27, $25, $C3, $C3, $40, $40 db $00, $00, $38, $00, $44, $00, $C6, $00 db $C6, $00, $BA, $00, $38, $00, $00, $00 db $00, $00, $38, $00, $BA, $00, $C6, $00 db $C6, $00, $44, $00, $38, $00, $00, $00 db $3F, $3F, $7F, $61, $FF, $C1, $FF, $8F db $F0, $90, $F0, $90, $F0, $90, $F0, $F0 db $F0, $F0, $F0, $90, $F0, $90, $F0, $90 db $FF, $8F, $FF, $C1, $7F, $61, $3F, $3F db $00, $00, $1F, $1F, $3F, $20, $7F, $40 db $7F, $4C, $7F, $4C, $7F, $40, $7F, $41 db $7F, $43, $7F, $43, $7F, $43, $7F, $43 db $7F, $43, $7F, $43, $7F, $43, $7F, $43 db $00, $00, $FF, $FF, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $0C, $0C, $1C, $14, $3F, $27, $7F, $41 db $FF, $81, $7F, $41, $3F, $27, $1C, $14 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $08, $08, $1C, $14, $3E, $22, $7F, $41 db $FF, $80, $FF, $E3, $3E, $22, $3E, $3E db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $FF, $FF, $80, $80, $80, $80, $80, $80 db $80, $80, $80, $80, $80, $80, $80, $80 db $FF, $FF, $80, $80, $80, $92, $A4, $80 db $80, $80, $80, $92, $A4, $80, $80, $80 db $FE, $00, $BF, $00, $F7, $00, $FE, $00 db $BF, $00, $F7, $00, $FE, $00, $BF, $00 db $FF, $FF, $80, $80, $80, $8C, $80, $96 db $80, $A6, $84, $AA, $84, $88, $80, $80 db $FF, $FF, $80, $80, $80, $9C, $80, $94 db $A2, $94, $9C, $A2, $80, $BE, $80, $80 db $FF, $FF, $80, $80, $80, $BE, $9C, $A2 db $80, $BE, $88, $AA, $80, $BE, $80, $80 db $FF, $FF, $80, $80, $80, $83, $83, $8C db $8D, $92, $98, $A7, $9C, $A3, $9F, $A0 db $FF, $FF, $80, $80, $80, $E0, $E0, $98 db $D8, $A4, $8C, $F2, $9C, $E2, $FC, $82 db $FF, $FF, $A0, $80, $84, $80, $80, $80 db $B9, $84, $FC, $82, $F4, $82, $DC, $82 db $FF, $FF, $82, $80, $90, $80, $80, $80 db $CE, $90, $9F, $A0, $97, $A0, $9D, $A0 db $FF, $FF, $C0, $A0, $C0, $AF, $C7, $A8 db $C7, $A8, $C4, $AB, $C0, $AE, $C0, $AA db $FF, $FF, $80, $80, $80, $FF, $FF, $80 db $80, $FF, $80, $80, $80, $80, $80, $80 db $FF, $FF, $80, $80, $80, $FE, $BC, $C2 db $BC, $C2, $84, $FA, $80, $CE, $80, $CA db $FF, $FF, $FC, $82, $84, $FB, $86, $89 db $86, $89, $86, $89, $86, $89, $86, $89 db $FF, $FF, $C1, $AA, $C1, $AA, $C1, $AA db $C0, $AB, $C0, $A8, $C0, $AF, $C0, $A0 db $FF, $FF, $FF, $80, $E3, $9C, $E3, $9C db $80, $FF, $80, $80, $80, $E3, $80, $BE db $FF, $FF, $F0, $8A, $F0, $8A, $F0, $8A db $80, $FA, $80, $82, $80, $FE, $80, $80 db $FF, $FF, $86, $89, $86, $89, $86, $89 db $86, $89, $86, $89, $86, $89, $86, $89 db $FF, $FF, $80, $80, $80, $8F, $8F, $90 db $8F, $90, $8F, $90, $AF, $90, $8F, $90 db $FF, $FF, $80, $80, $80, $F8, $F8, $84 db $F8, $84, $F8, $84, $FA, $84, $F8, $84 db $FF, $FF, $80, $9F, $80, $F1, $80, $D1 db $80, $D1, $80, $DF, $8E, $D5, $80, $DF db $FF, $FF, $80, $80, $80, $E0, $80, $BE db $80, $BE, $9C, $A2, $9C, $A2, $9C, $A2 db $FF, $FF, $87, $B8, $80, $9F, $94, $8B db $A3, $90, $A0, $9E, $9C, $83, $83, $80 db $FF, $FF, $F0, $8E, $80, $FC, $94, $E8 db $E2, $84, $82, $BC, $9C, $E0, $E0, $80 db $FF, $FF, $A2, $80, $88, $80, $80, $80 db $9E, $80, $FB, $80, $DE, $80, $FF, $80 db $FF, $FF, $82, $80, $A0, $80, $84, $80 db $F1, $80, $DE, $80, $F7, $80, $FF, $80 db $FF, $FF, $C0, $AA, $C0, $AA, $C0, $AA db $C0, $AA, $C0, $AA, $C0, $AA, $C0, $AA db $FF, $FF, $FF, $80, $FF, $80, $E3, $9C db $E3, $9C, $80, $FF, $80, $80, $80, $80 db $FF, $FF, $80, $CA, $80, $CA, $80, $CA db $80, $CA, $80, $CA, $80, $8A, $80, $8A db $FF, $FF, $86, $89, $86, $89, $86, $89 db $86, $89, $86, $89, $86, $89, $86, $89 db $FF, $FF, $C0, $A0, $C0, $A0, $C0, $A0 db $C0, $BF, $FF, $80, $80, $FF, $80, $80 db $FF, $FF, $9C, $A2, $9C, $A2, $80, $BE db $80, $E3, $C1, $A2, $80, $E3, $80, $80 db $FF, $FF, $80, $80, $80, $80, $80, $80 db $80, $FF, $FF, $80, $80, $FF, $80, $80 db $FF, $FF, $86, $89, $86, $C9, $86, $F9 db $FE, $81, $86, $F9, $86, $C9, $86, $89 db $FF, $FF, $AF, $90, $80, $9F, $A4, $91 db $80, $91, $A0, $9F, $95, $80, $80, $80 db $FF, $FF, $FA, $84, $80, $FC, $92, $C4 db $80, $C4, $82, $FC, $D4, $80, $80, $80 db $FF, $FF, $80, $C0, $80, $FF, $BF, $C0 db $80, $FF, $FF, $80, $80, $FF, $80, $80 db $FF, $FF, $9C, $A2, $9C, $E2, $DC, $A2 db $9C, $E2, $FC, $82, $80, $FC, $80, $80 db $FF, $FF, $FF, $80, $EB, $94, $D1, $AE db $C1, $BE, $F7, $88, $C1, $9C, $E3, $80 db $FF, $FF, $80, $80, $80, $9F, $80, $90 db $80, $B0, $80, $BF, $80, $BF, $80, $A0 db $FF, $FF, $80, $80, $80, $C0, $80, $CF db $80, $C8, $80, $F8, $80, $C8, $80, $8F db $FF, $FF, $80, $80, $80, $80, $80, $FC db $80, $84, $80, $87, $80, $85, $80, $FD db $FF, $FF, $80, $9C, $84, $E3, $80, $C1 db $84, $C1, $92, $C1, $80, $E3, $80, $BF db $FF, $FF, $80, $80, $80, $80, $80, $87 db $80, $84, $80, $84, $80, $DC, $80, $D7 db $FF, $FF, $80, $80, $80, $80, $80, $E0 db $80, $A0, $80, $B8, $80, $A7, $80, $E4 db $FF, $FF, $80, $80, $80, $9E, $80, $A1 db $80, $A1, $80, $A1, $80, $A1, $80, $FF db $FF, $FF, $80, $80, $80, $8F, $80, $9F db $80, $BF, $8F, $B0, $9D, $A0, $9F, $A0 db $FF, $FF, $80, $80, $80, $FF, $80, $FF db $80, $FF, $EF, $80, $FD, $80, $DF, $80 db $FF, $FF, $80, $80, $80, $FC, $80, $FE db $80, $FF, $F8, $83, $FE, $81, $EE, $81 db $FF, $FF, $8F, $90, $81, $8E, $80, $81 db $80, $81, $80, $81, $80, $FF, $81, $FE db $FF, $FF, $FF, $80, $C1, $BE, $C1, $BE db $C1, $BE, $C1, $BE, $C1, $BE, $FF, $80 db $FF, $FF, $80, $C1, $80, $C1, $80, $FF db $BE, $C9, $80, $FF, $80, $C1, $80, $C1 db $FF, $FF, $80, $80, $80, $FF, $FF, $80 db $80, $FF, $80, $80, $80, $80, $80, $80 db $FF, $FF, $80, $80, $80, $FE, $FC, $82 db $80, $FE, $80, $82, $80, $82, $80, $82 db $FF, $FF, $FF, $80, $E3, $9C, $C1, $BE db $80, $AA, $80, $BE, $C1, $80, $FF, $80 db $FF, $FF, $80, $A0, $80, $E0, $80, $BF db $80, $BF, $80, $80, $80, $80, $80, $FF db $FF, $FF, $80, $8F, $80, $80, $80, $FF db $80, $FF, $80, $80, $80, $80, $80, $FF db $FF, $FF, $80, $FE, $80, $82, $80, $FC db $80, $FC, $80, $88, $80, $88, $80, $FF db $FF, $FF, $81, $80, $81, $80, $81, $80 db $83, $80, $83, $80, $87, $80, $80, $FF db $FF, $FF, $C0, $B7, $E0, $97, $E0, $90 db $E0, $90, $F0, $8F, $F0, $8F, $80, $FF db $FF, $FF, $80, $E4, $80, $E7, $83, $84 db $83, $BC, $83, $FC, $80, $FF, $80, $E7 db $FF, $FF, $FF, $80, $DD, $80, $FF, $80 db $F5, $80, $BF, $C0, $80, $BF, $80, $80 db $FF, $FF, $9F, $A0, $9D, $A0, $97, $A0 db $9F, $A0, $9B, $A0, $9F, $A0, $9F, $A0 db $FF, $FF, $9F, $A0, $9F, $E0, $9D, $E0 db $BF, $C0, $DF, $80, $FB, $80, $FF, $80 db $FF, $FF, $FE, $81, $FE, $81, $FA, $81 db $FE, $81, $EE, $81, $FC, $81, $FE, $81 db $FF, $00, $FB, $00, $DF, $00, $FF, $00 db $FF, $00, $EE, $01, $FC, $02, $F8, $04 db $FF, $00, $FB, $00, $DF, $00, $FF, $00 db $FD, $00, $2F, $C0, $1F, $20, $0F, $10 db $FF, $FF, $BE, $C1, $80, $FF, $80, $80 db $80, $80, $80, $80, $80, $FF, $80, $80 db $FF, $FF, $80, $80, $80, $80, $80, $80 db $80, $80, $80, $80, $80, $FF, $80, $80 db $FF, $FF, $80, $82, $80, $82, $80, $82 db $80, $82, $80, $82, $80, $FE, $80, $80 db $FF, $FF, $80, $FF, $80, $FF, $80, $80 db $80, $80, $80, $80, $80, $80, $80, $80 db $FF, $FF, $80, $FF, $80, $FF, $8F, $90 db $9F, $A0, $9D, $A0, $97, $A0, $9F, $A0 db $FF, $FF, $80, $FF, $80, $FF, $FF, $80 db $DF, $80, $FD, $80, $F7, $80, $FF, $80 db $FF, $FF, $80, $FF, $80, $FF, $F8, $84 db $DC, $82, $FC, $82, $F4, $82, $FC, $82 db $FF, $FF, $80, $F8, $80, $F8, $80, $80 db $80, $80, $80, $80, $80, $80, $80, $80 db $FF, $FF, $80, $FF, $80, $FF, $80, $FF db $80, $80, $80, $80, $80, $FF, $80, $FF db $FF, $FF, $80, $9C, $84, $E3, $80, $E3 db $84, $C1, $92, $C1, $80, $E3, $C1, $BE db $FF, $FF, $FF, $80, $FD, $80, $DF, $80 db $FF, $80, $EF, $80, $BD, $C0, $9F, $A0 db $FF, $FF, $9F, $A0, $9B, $A0, $9F, $A0 db $97, $A0, $8D, $90, $80, $8F, $80, $80 db $FF, $FF, $FF, $80, $DD, $80, $FF, $80 db $F5, $80, $FF, $80, $80, $FF, $80, $80 db $FF, $FF, $FE, $81, $F6, $81, $FE, $81 db $EE, $81, $FC, $82, $80, $FC, $80, $80 db $F8, $04, $F8, $04, $D8, $06, $F8, $07 db $FC, $03, $EE, $01, $FF, $00, $FD, $00 db $0F, $90, $0B, $10, $0F, $30, $0F, $F0 db $0D, $E0, $3F, $C0, $FF, $00, $FF, $00 db $FF, $FF, $FC, $02, $DD, $02, $FC, $03 db $FC, $03, $EE, $01, $FF, $00, $FF, $00 db $FF, $FF, $BF, $00, $F7, $00, $FE, $00 db $BF, $00, $F7, $00, $FE, $00, $BF, $00 db $FF, $FF, $5B, $20, $9F, $60, $1F, $E0 db $2D, $C0, $7F, $80, $FB, $00, $BF, $00 db $F8, $04, $FA, $04, $D8, $06, $F8, $06 db $FC, $02, $EC, $02, $FA, $04, $F8, $04 db $8F, $90, $AF, $90, $8B, $B0, $8F, $B0 db $9F, $A0, $9D, $A0, $AF, $90, $8F, $90 db $BF, $00, $FB, $00, $FF, $00, $DF, $00 db $FF, $00, $38, $C7, $44, $38, $00, $00 db $FF, $FF, $00, $00, $88, $70, $00, $FF db $00, $FF, $20, $DF, $FD, $00, $BF, $00 db $FF, $FF, $A4, $80, $AC, $80, $C9, $80 db $91, $80, $92, $80, $B2, $80, $A6, $80 db $FF, $FF, $FF, $80, $EF, $80, $FD, $80 db $FF, $80, $DF, $80, $FB, $80, $FF, $80 db $FF, $FF, $80, $8F, $8F, $90, $9B, $A0 db $9E, $A0, $97, $A0, $8D, $90, $80, $8F db $FF, $FF, $80, $F8, $F0, $8C, $F8, $86 db $F4, $82, $DC, $82, $F8, $84, $80, $F8 db $FF, $FF, $86, $89, $86, $89, $86, $89 db $86, $89, $86, $89, $86, $89, $86, $89 db $FF, $FF, $80, $80, $80, $80, $80, $9F db $9F, $A0, $98, $A7, $98, $A4, $98, $A4 db $FF, $FF, $86, $89, $86, $89, $86, $F9 db $FE, $81, $80, $FE, $80, $80, $80, $80 db $FF, $FF, $98, $A4, $98, $E6, $98, $E7 db $98, $E7, $DE, $81, $FC, $81, $EE, $81 db $FF, $FF, $80, $80, $80, $80, $80, $BE db $80, $BE, $9C, $A2, $9C, $A3, $DE, $A1 db $FF, $FF, $86, $89, $86, $89, $86, $89 db $86, $89, $87, $88, $86, $89, $86, $89 db $FF, $FF, $80, $80, $80, $81, $80, $82 db $80, $92, $92, $AC, $80, $A0, $85, $90 db $FF, $FF, $80, $80, $80, $C0, $C0, $A0 db $C0, $A4, $E4, $9A, $A4, $82, $88, $84 db $FF, $FF, $80, $FE, $80, $FE, $80, $80 db $80, $80, $80, $80, $80, $80, $80, $80 db $FF, $FF, $97, $E0, $FD, $80, $FF, $80 db $F7, $80, $FD, $80, $D8, $87, $80, $F8 db $FF, $FF, $84, $8A, $84, $8A, $84, $8A db $84, $8A, $84, $8A, $84, $BB, $9F, $E0 db $FF, $FF, $80, $87, $80, $87, $83, $84 db $80, $87, $80, $80, $80, $80, $80, $8E db $FF, $FF, $80, $FE, $80, $FF, $81, $FE db $FF, $80, $FF, $80, $80, $FF, $80, $FF db $FF, $FF, $80, $BF, $80, $FF, $80, $BF db $80, $80, $80, $80, $80, $FF, $80, $FF db $FF, $FF, $80, $FE, $80, $FE, $80, $FE db $80, $82, $80, $82, $80, $FE, $80, $FE db $FF, $FF, $80, $BF, $80, $FF, $C0, $BF db $FF, $80, $FF, $80, $80, $FF, $80, $FF db $FF, $FF, $80, $FF, $80, $FF, $80, $FF db $FF, $80, $FF, $80, $80, $FF, $80, $FF db $FF, $FF, $80, $FE, $80, $FF, $80, $FE db $FC, $82, $FC, $82, $80, $FF, $80, $FF db $FF, $FF, $80, $80, $80, $9F, $80, $A0 db $80, $A0, $80, $A0, $80, $A0, $80, $FF db $FF, $FF, $80, $80, $80, $FF, $80, $80 db $80, $80, $80, $80, $80, $80, $80, $FF db $FF, $FF, $80, $80, $80, $FC, $80, $82 db $80, $82, $80, $82, $80, $82, $80, $FE db $FF, $FF, $80, $80, $80, $80, $80, $80 db $80, $80, $80, $80, $80, $FF, $FF, $80 db $FF, $FF, $82, $8C, $83, $8A, $92, $8A db $A0, $90, $A0, $9E, $9C, $83, $83, $80 db $FF, $FF, $A0, $98, $E0, $A8, $A4, $A8 db $82, $84, $82, $BC, $9C, $E0, $E0, $80
46.46143
47
0.376808
8802c4edaf38918e6b19dad77655abd834bc4aa1
31
asm
Assembly
levels/position_overrides/lvl5_3_3.asm
cppchriscpp/ld38
fe2e11a2f1a1098c716289b444c867a8113c39ea
[ "MIT" ]
4
2018-08-18T15:31:04.000Z
2021-03-28T22:21:15.000Z
levels/position_overrides/lvl5_3_3.asm
cppchriscpp/missing-lands
fe2e11a2f1a1098c716289b444c867a8113c39ea
[ "MIT" ]
null
null
null
levels/position_overrides/lvl5_3_3.asm
cppchriscpp/missing-lands
fe2e11a2f1a1098c716289b444c867a8113c39ea
[ "MIT" ]
null
null
null
.repeat 16 .byte 35 .endrepeat
10.333333
10
0.741935
4c6e2720fd1e48b0324e2c1e4bc4341bf2003d9f
593
asm
Assembly
oeis/026/A026356.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/026/A026356.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/026/A026356.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A026356: a(n) = floor((n-1)*phi) + n + 1, n > 0, where phi = (1+sqrt(5))/2. ; Submitted by Jamie Morken(s3) ; 2,4,7,9,12,15,17,20,22,25,28,30,33,36,38,41,43,46,49,51,54,56,59,62,64,67,70,72,75,77,80,83,85,88,91,93,96,98,101,104,106,109,111,114,117,119,122,125,127,130,132,135,138,140,143,145,148,151,153,156,159,161,164,166,169,172,174,177,180,182,185,187,190,193,195,198,200,203,206,208,211,214,216,219,221,224,227,229,232,235,237,240,242,245,248,250,253,255,258,261 mov $1,$0 trn $0,1 seq $0,19446 ; a(n) = ceiling(n/tau), where tau = (1+sqrt(5))/2. mul $1,2 add $1,$0 mov $0,$1 add $0,1
49.416667
359
0.652614
43a2cd9f124374231fe4f86c34c736558d63b82d
723
asm
Assembly
oeis/212/A212573.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/212/A212573.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/212/A212573.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A212573: Number of (w,x,y,z) with all terms in {1,...,n} and |w-x|>|x-y|+|y-z|. ; 0,0,2,10,36,92,202,386,680,1112,1730,2570,3692,5140,6986,9282,12112,15536,19650,24522,30260,36940,44682,53570,63736,75272,88322,102986,119420,137732,158090,180610,205472,232800,262786,295562,331332,370236,412490,458242,507720,561080,618562,680330,746636,817652,893642,974786,1061360,1153552,1251650,1355850,1466452,1583660,1707786,1839042,1977752,2124136,2278530,2441162,2612380,2792420,2981642,3180290,3388736,3607232,3836162,4075786,4326500,4588572,4862410,5148290,5446632,5757720,6081986,6419722 lpb $0 mov $2,$0 sub $2,2 mov $0,$2 max $2,0 seq $2,7904 ; Crystal ball sequence for diamond. add $1,$2 lpe mul $1,2 mov $0,$1
51.642857
500
0.755187
cada2efc2b7c810dfbc41470b527b6c77ae779b8
387
asm
Assembly
programs/oeis/144/A144414.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/144/A144414.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/144/A144414.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A144414: a(n) = 2*(4^n - 1)/3 - n. ; 1,8,39,166,677,2724,10915,43682,174753,699040,2796191,11184798,44739229,178956956,715827867,2863311514,11453246105,45812984472,183251937943,733007751830,2932031007381,11728124029588,46912496118419 add $0,1 mov $3,$0 mul $0,2 mov $2,1 lpb $0 sub $0,2 mov $1,1 add $3,$2 mul $2,4 lpe add $1,4 sub $3,$2 sub $1,$3 mul $1,2 sub $1,11 div $1,2
19.35
198
0.689922
78c3d82d7f21b26659e7669fa635c0fc9622d5ab
1,533
asm
Assembly
programs/oeis/154/A154599.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/154/A154599.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/154/A154599.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A154599: a(n) = 2*n^2 + 20*n + 8. ; 30,56,86,120,158,200,246,296,350,408,470,536,606,680,758,840,926,1016,1110,1208,1310,1416,1526,1640,1758,1880,2006,2136,2270,2408,2550,2696,2846,3000,3158,3320,3486,3656,3830,4008,4190,4376,4566,4760,4958,5160,5366,5576,5790,6008,6230,6456,6686,6920,7158,7400,7646,7896,8150,8408,8670,8936,9206,9480,9758,10040,10326,10616,10910,11208,11510,11816,12126,12440,12758,13080,13406,13736,14070,14408,14750,15096,15446,15800,16158,16520,16886,17256,17630,18008,18390,18776,19166,19560,19958,20360,20766,21176,21590,22008,22430,22856,23286,23720,24158,24600,25046,25496,25950,26408,26870,27336,27806,28280,28758,29240,29726,30216,30710,31208,31710,32216,32726,33240,33758,34280,34806,35336,35870,36408,36950,37496,38046,38600,39158,39720,40286,40856,41430,42008,42590,43176,43766,44360,44958,45560,46166,46776,47390,48008,48630,49256,49886,50520,51158,51800,52446,53096,53750,54408,55070,55736,56406,57080,57758,58440,59126,59816,60510,61208,61910,62616,63326,64040,64758,65480,66206,66936,67670,68408,69150,69896,70646,71400,72158,72920,73686,74456,75230,76008,76790,77576,78366,79160,79958,80760,81566,82376,83190,84008,84830,85656,86486,87320,88158,89000,89846,90696,91550,92408,93270,94136,95006,95880,96758,97640,98526,99416,100310,101208,102110,103016,103926,104840,105758,106680,107606,108536,109470,110408,111350,112296,113246,114200,115158,116120,117086,118056,119030,120008,120990,121976,122966,123960,124958,125960,126966,127976,128990,130008 add $0,6 pow $0,2 mov $1,$0 mul $1,2 sub $1,42
170.333333
1,448
0.808219
245a26cb647816c32d1756af6051a295a5b8c587
1,720
asm
Assembly
lib/debug.asm
campaul/dos-from-scratch
7aec4dbf3395f505114e9ffcc809534043f61392
[ "MIT" ]
null
null
null
lib/debug.asm
campaul/dos-from-scratch
7aec4dbf3395f505114e9ffcc809534043f61392
[ "MIT" ]
null
null
null
lib/debug.asm
campaul/dos-from-scratch
7aec4dbf3395f505114e9ffcc809534043f61392
[ "MIT" ]
null
null
null
; Prints the value of the al register in hexadecimal ; al: the value to print print_hex_byte: pusha mov ah, 0 call print_hex popa ret ; Prints the value of the ax register in hexadecimal ; ax: the value to print print_hex: pusha ; Overwrite the first character of HEX_VALUE with bits 15-12 mov bx, ax shr bx, 12 mov bx, [bx + HEX_TABLE] mov [HEX_VALUE + 0], bl ; Overwrite the second character of HEX_VALUE with bits 11-8 mov bx, ax shr bx, 8 and bx, 0x000f mov bx, [bx + HEX_TABLE] mov [HEX_VALUE + 1], bl ; Overwrite the third character of HEX_VALUE with bits 7-4 mov bx, ax shr bx, 4 and bx, 0x000f mov bx, [bx + HEX_TABLE] mov [HEX_VALUE + 2], bl ; Overwrite the fourth character of HEX_VALUE with bits 3-0 mov bx, ax and bx, 0x000f mov bx, [bx + HEX_TABLE] mov [HEX_VALUE + 3], bl ; Print the now populated HEX_VALUE mov bx, HEX_VALUE call print popa ret HEX_VALUE: db "****$" HEX_TABLE: db "0123456789ABCDEF" ; Prints words of memory in hexadecimal ; bx: address of memory to print ; cx: number of words to print print_mem: pusha ; SI will point to the current byte of memory mov si, bx print_mem_loop: ; Print one word of memory ; This loads bytes in big endian order mov ah, [si] mov al, [si + 1] call print_hex mov bx, SPACE call print ; Advance the memory pointer by 1 word ; Decrement the loop counter by 1 and exit if it's 0 add si, 2 sub cx, 1 cmp cx, 0 jne print_mem_loop mov bx, LINE_BREAK call print popa ret
20
64
0.611047
60480b5b16c51009958db298fa3a3beca912879b
50,370
asm
Assembly
Games/Asteroids/asteroids.asm
paulscottrobson/studio2-games
4799cf8eb67de175aaa1c90596aea49cfde2b657
[ "MIT" ]
5
2017-11-10T17:17:56.000Z
2021-04-01T21:36:14.000Z
Games/Asteroids/asteroids.asm
paulscottrobson/studio2-games
4799cf8eb67de175aaa1c90596aea49cfde2b657
[ "MIT" ]
3
2016-09-15T21:45:34.000Z
2016-09-17T08:06:06.000Z
Games/Asteroids/asteroids.asm
paulscottrobson/studio2-games
4799cf8eb67de175aaa1c90596aea49cfde2b657
[ "MIT" ]
2
2016-09-15T22:09:38.000Z
2018-05-21T15:26:30.000Z
; *************************************************************************************************************************************** ; *************************************************************************************************************************************** ; ; ASTEROIDS - For the RCA Studio 2 (1802 Assembler) ; ================================================= ; ; Author : Paul Robson (paul@robsons.org.uk) ; Tools : Assembles with asmx cross assembler http://xi6.com/projects/asmx/ ; ; ; *************************************************************************************************************************************** ; *************************************************************************************************************************************** ; ; Reserved for Studio 2 BIOS : R0,R1,R2,R8,R9,RB.0 ; ; Other usage ; =========== ; R2 Used for Stack, therefore R2.1 always points to RAM Page. ; R3 PC (lowest level) ; R4 PC (First level call) ; R5 PC (Second Level Call) ; ; *************************************************************************************************************************************** ; *************************************************************************************************************************************** RamPage = 8 ; 256 byte RAM page used for Data ($800 on S2) VideoPage = 9 ; 256 byte RAM page used for Video ($900 on S2) Studio2BeepTimer = $CD ; Studio 2 Beep Counter Studio2SyncTimer = $CE ; Studio 2 Syncro timer. RandomSeed = $E0 ; 16 bit RNG seed Lives = $E2 ; Lives count Level = $E3 ; Level number PointsToAdd = $E4 ; Points to add to score Score = $E5 ; Score (6 bytes LSD first) AsteroidBase = $00 ; Asteroid Start point AsteroidCount = 16 ; Number of asteroids AsteroidRecSize = 8 ; Size of each asteroid. AsteroidEnd = AsteroidBase + AsteroidRecSize * AsteroidCount MissileBase = AsteroidEnd ; Missile Start Point MissileCount = 4 ; number of missiles MissileRecSize = 4 ; bytes per missile. MissileEnd = MissileBase+MissileCount * MissileRecSize XPlayer = MissileEnd+0 ; Player X position (follows Missiles for collision code.) YPlayer = MissileEnd+1 ; Player Y position Rotation = MissileEnd+2 ; Player Rotation (0-7)/Graphic IsVisible = MissileEnd+3 ; Set when player has been made visible at level start. VisiMask = MissileEnd+4 ; Checks whether asteroid in player area. SpeedCounter = MissileEnd+5 ; Speed counter LastFire = MissileEnd+6 ; Last status of fire button. PlayerSpeed = 160 ; player speed is fixed. MissileLifeSpan = 24 ; number of missile moves before self-termination ; *************************************************************************************************************************************** ; ; Asteroid ; ======== ; +0 X Position (0-63) - bit 7 unused - bit 6 don't draw first time. ; +1 Y Position (0-31) - bit 7 set marks it for destruction. ; +2 Asteroid ID (0-2) - also width = (n+1)*4 and height = (n+1) * 2 ; +3 Direction of movement (0-7) ; +4 Speed ; +5 Speed counter. ; +6,7 (Reserved) ; ; Missiles ; ======== ; ; +0 Missile X Position - bit 7 set if not in use - bit 6 first draw. ; +1 Missile Y Position - bit 7 marks it for destruction. ; +2 Direction of Movement (0-7) ; +3 Moves remaining till expires. ; ; *************************************************************************************************************************************** ; *************************************************************************************************************************************** ; ; Studio 2 Boot Code ; ; *************************************************************************************************************************************** .include "1802.inc" .org 400h ; ROM code in S2 starts at $400. StartCode: .db >(StartGame),<(StartGame) ; This is required for the Studio 2, which runs from StartGame with P = 3 ; *************************************************************************************************************************************** ; ; Asteroid Drawing Code ; ; On entry : RA[0] is the horizontal position (0-63) ; RA[1] is the vertical position (0-31) ; RA[2] is the asteroid ID (0-2), also height/2. ; ; Works by maintaining four pointers representing four quadrants and two masks (one for each side), these are ; drawn a pixel at a time and moved in unison. Think of four linked pens drawing a circle, each doing one ; quarter of it. ; ; Upper Right Pointer : RF Left Mask : RA.1 ; Lower Right Pointer : RE Right Mask : RA.0 ; Upper Left Pointer : RD ; Lower Left Pointer : RC First-Plot Flag : RB.1 ; ; Breaks ALL REGISTERS - well I need it as fast as possible :) but RA is preserved on the stack. ; ; Runs in R4, returns to R3. ; ; Final testing showed : drawing 4 of each (e.g. 12 in total) 256 times in 10 seconds. ; 3072 in 10 seconds, or about 300 per second. ; ; *************************************************************************************************************************************** DrawAsteroid: sex r2 ; X = 2 throughout the pre draw code. dec r2 ; save RA on the stack. glo ra stxd ghi ra stxd ; save and allocate byte on stack for work. lda ra ; read asteroid data in. plo rc lda ra phi rc lda ra phi rb str r2 ; save in stack space ghi rc ; subtract 1/2 height from y to centre it. sm phi rc ; --------------------------------------------------------------------------------------------------------------------------------------- ; Calculate the screen position and bit mask ; --------------------------------------------------------------------------------------------------------------------------------------- ghi r4 ; Call the byte & mask calculation routine. phi r5 ldi <CalculateScreenPosition plo r5 sep r5 ; --------------------------------------------------------------------------------------------------------------------------------------- ; Calculate the asteroid height and set the screen position for the bottom half ; --------------------------------------------------------------------------------------------------------------------------------------- ghi rb ; get asteroid number from RB.1 shl ; asteroid # x 16 shl shl shl adi 8 ; asteroid # x 16 + 8 is the difference between top and bottom. str r2 ; save it on space allocated for calculations above. glo rd ; get the upper offset add ; add the difference plo re ; put in RE.0 and RC.0 - the lower bytes of the lower quarters plo rc ghi rb ; copy RB.1 (asteroid ID) str r2 ; store in allocated stack space. ; --------------------------------------------------------------------------------------------------------------------------------------- ; Set up R5-R7 to point to - Plot Pixel, Move Horizontally, Move Vertically ; --------------------------------------------------------------------------------------------------------------------------------------- ldi >PlotPixel ; R5 always points to the pixel plotter phi r5 phi r6 ; R6 points to the move left (or right) modifier phi r7 ldi <PlotPixel plo r5 ldi <MoveLeft plo r6 ldi <MoveDown ; R7 points to the move down modifier plo r7 ldi $FF ; set 'first plot' flag in RB.0 - stops overwriting of first dot. phi rb ldi VideoPage ; Set High Bytes of quadrant pointers RF-RC to point to the Video Page. phi rf phi re phi rd phi rc ; --------------------------------------------------------------------------------------------------------------------------------------- ; Sequences of calls to 5,6,7 dependent on what you want to draw ; --------------------------------------------------------------------------------------------------------------------------------------- ldxa ; load the asteroid ID back in and fix up the stack bnz DA_Not0 ; if non zero skip the drawing of asteroid 0. sep r5 ; Asteroid 0. sep r6 sep r5 br DA_Exit DA_Not0:shr ; bit 0 set bnf DA_Asteroid2 ; if clear, it's asteroid #2 sep r5 ; Asteroid 2. sep r6 sep r5 sep r6 sep r7 sep r5 br DA_Exit DA_Asteroid2: sep r5 sep r6 sep r5 sep r6 sep r7 sep r5 sep r6 sep r7 sep r5 ; --------------------------------------------------------------------------------------------------------------------------------------- ; Restore RA and exit ; --------------------------------------------------------------------------------------------------------------------------------------- DA_Exit:sex r2 ; restore RA off the stack. ldxa phi ra ldxa plo ra sep r3 br DrawAsteroid ; make it re-entrant ; --------------------------------------------------------------------------------------------------------------------------------------- ; Plot Pixels ; --------------------------------------------------------------------------------------------------------------------------------------- PlotPixel: sex rf ; do upper right pixel (RF,RB.0) glo ra xor str rf sex re ; do lower right pixel (RE,RB.0) glo ra xor str re ghi rb ; first doesn't plot left and right because they're the same bz PP_LeftSide ; and cancel each other out so skip. ldi 0 ; clear first plot flag. phi rb sep r4 ; return br PlotPixel PP_LeftSide: sex rd ; do upper left pixel (RD,RB.1) ghi ra xor str rd sex rc ; do lower left pixel (RC,RB.1) ghi ra xor str rc sep r4 ; return br PlotPixel ; --------------------------------------------------------------------------------------------------------------------------------------- ; Horizontal Movement ; --------------------------------------------------------------------------------------------------------------------------------------- MoveLeft: ghi ra ; get left mask shl ; shift left and write back. phi ra bnf ML_MoveLeftRightSide shlc ; make it $01 phi ra ghi rd dec rd dec rc phi rd phi rc ML_MoveLeftRightSide: glo ra ; get right mask shr ; shift right and write back plo ra bnf ML_Exit ; if reached border shrc ; make it $80 plo ra ghi re inc re ; and move forward. inc rf phi re phi rf ML_Exit: sep r4 br MoveLeft ; --------------------------------------------------------------------------------------------------------------------------------------- ; Vertical Movement ; --------------------------------------------------------------------------------------------------------------------------------------- MoveDown: glo rf ; move the upper pointers down one line. adi 8 plo rf glo rd adi 8 plo rd glo re ; move the lower pointers up one line. smi 8 plo re glo rc smi 8 plo rc sep r4 br MoveDown MaskTable: ; Bitmask table. Has to stay in the same page as the Asteroid Drawing Code. .db $80,$40,$20,$10,$08,$04,$02,$01 ; *************************************************************************************************************************************** ; ; Shift/XOR Drawer for 4 bit x 1 line of graphics. There are 8 entry points each representing one pixel shift, 2 bytes apart ; ; On Entry, D contains the bits to shift, undefined on exit. ; RF points to the first byte of the two to Xor (should remain unchanged) ; RE.L is undefined on entry and exit ; RE.H is undefined on entry and exit. ; ; Runs in R5, Return to R4 ; Note: you cannot 'loop' subroutine this because you don't know what the entry point was - there are 8 entries and 2 exits :) ; ; *************************************************************************************************************************************** ShiftXORDrawerBase: br SXD0 ; Shift 0 bits right br SXD1 ; Shift 1 right (etc.) br SXD2 br SXD3 ; br SXD4 ; up to here, only requires one byte br SXD5 ; shift 5 => 4 Shift Rights, then 1 x 16 bit shift rights br SXD6 ; shift 6-7 => swap and 1-2 shift lefts SXD7: ; shift right x 7 == swap and shift left one in 16 bits shl ; shift result left, MSB into DF plo re ; this is the second byte of data ldi 0 ; set D = DF, e.. the old MSB is the LSB of this byte shlc phi re ; RE.H RE.L now is a 7 bit shift. br SXDXorWord SXD6: ; shift right x 7 == swap and shift left twice in 16 bits shl ; (this part same as for SXD7) plo re ldi 0 shlc phi re ; RE.H RE.L now is a 7 bit shift. glo re ; shift it once more to the left shl plo re ghi re shlc phi re br SXDXorWord SXD4: ; shift right x 4 shr SXD3: ; shift right x 3 shr SXD2: ; shift right x 2 shr SXD1: ; shift right x 2 shr SXD0: ; shift right x 1 sex rf ; xor with the first screen byte xor str rf sep r4 ; there are 2 exit points SXD5: ; shift right x 5 shr shr shr shr shr ; shift fifth bit into DF phi re ; RE now contains 16 bit graphic ldi 0 shrc ; shift DF into bit 7 plo re SXDXorWord: sex rf ; index on RF inc rf ; Xor RE.L into RF+1 glo re xor stxd ghi re ; Xor RE.H into RF xor str rf sep r4 ; Note, 2 exit points. ; *************************************************************************************************************************************** ; Calculate Screen Position ; ; In: RC.0 (Horizontal 0-63) RC.1 (Vertical 0-31) ; Out: RF.0 and RD.0 point to the byte, RA.1 and RA.0 contain the mask. ; ; Returns to R4. Breaks RC ; ; *************************************************************************************************************************************** CalculateScreenPosition: sex r2 ; X = Stack glo rc ; get the horizontal position (0-63) ani 63 shr ; divide by 8 - this is a byte offset now. shr shr dec r2 ; allocate space for it on the stack str r2 ; save it. ghi rc ; get vertical position (0-31) ani 31 shl ; multiply by 8 shl shl add ; D = X/8 + Y/8 - the byte position plo rf ; byte position stored in RF.0 and RD.0 plo rd glo rc ; RC.0 anded with 7 and added the table offset to it ani 7 adi <MaskTable plo rc ldi >MaskTable ; RC.1 now contains this page address, e.g. RC points to mask table phi rc ldn rc ; read mask table phi ra ; store it in RA.1 plo ra ; and RA.0 inc r2 ; fix up stack sep r4 ; *************************************************************************************************************************************** ; ; Keypad Scanner ; ; Scans keyboard for 2,4,6,8,0 returned in bits 0,1,2,3,7 respectively. Note correlation between these bits (Up,Left,Right,Down) ; and the bit patterns in the map. 0 is used to start. ; ; High Level Call, returns to R3. Breaks RF. ; ; PORT: Changing this can easily throw "Branch out of Range" errors where 1802 branches cross page. It may be better to either ; pad it out to the same length or simply completely replace it. ; ; *************************************************************************************************************************************** ScanKeypad: ldi 2 ; start off by scanning '2' phi rf ; this value goes in RF. sex r2 ldi 0 ; initial value in RF. plo rf SKBLoop: ghi rf ; get current scan value. dec r2 ; store the scanned value on the stack. str r2 out 2 ; select that latch ghi rf ; shift scan left ready for next time adi 2 ; 2,4,6,8,10,12,14,16 but scan only uses lower 4 bits phi rf glo rf ; get the current value shr ; shift right. b4 SKBSet ; check EF3 EF4 bn3 SKBSkip SKBSet: ori $80 ; if key pressed or with $80, 7 shifts will make this $01 (for '2') SKBSkip: plo rf ; save the current value ghi rf ; read the scan value xri $12 ; if reached $12 then finished bnz SKBLoop glo rf ; load the keypad result into D ani $8F ; we are only interested in 0,1,2,3,7, throw the rest. sep r3 ; and exit ; *************************************************************************************************************************************** ; Draw 4 bit Sprite ; ; RC.0 x position (0-63) (autoloaded by DrawPlayerSprite) ; RC.1 y position (0-31) ; D graphic 0-7. ; ; Breaks : R5,R6,RA,RB.1,RC,RD,RE,RF ; ; DrawPlayerSprite loads data in from RA[0],RA[1],RA[2] first. ; ; *************************************************************************************************************************************** DrawPlayerSprite: ldi XPlayer ; point RA to player data plo ra ghi r2 phi ra lda ra ; read X smi 1 ; adjust centre plo rc lda ra ; read Y smi 1 ; adjust centre phi rc lda ra ; read graphic ani 7 ; only interested in lower 3 bits. DrawSprite: shl ; multiply graphic # x 4 shl adi <AsteroidGraphics ; point RE to the asteroid graphic to use phi rb ; save the low address in RB.1 glo rc ; get X position ani 7 ; take 3 bits which are in byte position shl ; x 2 adi <ShiftXORDrawerBase ; set R6 = XOR Drawer Address plo r6 ldi >ShiftXORDrawerBase phi r6 ldi >CalculateScreenPosition ; calculate sprite position. Byte offset in RF.0 RD.0 mask in RA.1 RA.0 phi r5 ldi <CalculateScreenPosition plo r5 sep r5 ldi VideoPage ; make RF point to the video. phi rf ghi rb ; get the asteroid graphic low pointer plo ra ; make RA point to the asteroid graphic ldi >AsteroidGraphics phi ra glo r6 ; save XOR Drawer LSB in RB.1 phi rb DS_Loop: lda ra ; get next graphic bz DS_Exit ; exit if finished sep r6 ; call the XOR Drawer ghi rb ; fix it back for the next call. plo r6 glo rf ; next line down. adi 8 plo rf br DS_Loop DS_Exit: sep r3 ; *************************************************************************************************************************************** ; Reposition RA[0] (X) and RA[1] (Y) in direction D ; ; Returns to R3, breaks RF. ; ; *************************************************************************************************************************************** MoveObject: ani 7 ; 8 directions shl ; 2 entries per direction adi <DirectionTable plo rf ; make RF point to the direction adders ldi >DirectionTable phi rf sex rf ; use RF as index ldn ra ; read X add ; add dX ani 63 ; fix range str ra ; write back inc ra ; go to Y, dY inc rf ldn ra ; add dY to Y, force into range add ani 31 str ra dec ra ; fix up RA sep r3 ; and exit. DirectionTable: ; dx,dy for each of 8 directions. db 0,-1 db 1,-1 db 1,0 db 1,1 db 0,1 db -1,1 db -1,0 db -1,-1 ; *************************************************************************************************************************************** ; Single Pixel Drawer ; ; Toggles pixel RC.0,RC.1 ; Breaks R5,RC,RD,RE,RF - RA is preserved on the stack. ; ; *************************************************************************************************************************************** DrawPixelLoad: dec r2 ; save RA on the stack. glo ra str r2 dec r2 ghi ra str r2 lda ra ; copy coordinates into RC.0,RC.1 plo rc lda ra phi rc DrawPixel: ldi >CalculateScreenPosition ; calculate sprite position. Byte offset in RF.0 RD.0 mask in RA.1 RA.0 phi r5 ldi <CalculateScreenPosition plo r5 sep r5 ldi VideoPage ; make RF point to the video. phi rf glo ra ; get mask sex rf ; xor into screen. xor str rf lda r2 ; restore RA off the stack. phi ra lda r2 plo ra sep r3 ; *************************************************************************************************************************************** ; ; LFSR Random Number Generator (breaks RF) ; ; Returns to : R5 Breaks RF. Reentrant subroutine. ; ; *************************************************************************************************************************************** Random: ghi r2 ; point RF to the Seed Data (2nd byte) phi rf ldi RandomSeed+1 plo rf sex rf ; use RF as index register ldn rf ; load the 2nd byte shr ; shift right into DF stxd ; store and point to first byte ldn rf ; rotate DF into it and out shrc str rf bnf RN_NoXor inc rf ; if LSB was set then xor high byte with $B4 ldn rf xri $B4 stxd ; store it back and fix up RF again. RN_NoXor: ldn rf ; re-read the LSB inc rf add ; add the high byte. sep r5 ; and exit. br Random ; *************************************************************************************************************************************** ; Insert Asteroid of type D ; ; Returns pointer to new Asteroid in RA. Runs in R5, returns to R4 ; Breaks RB.1, RA, RF, R6 ; *************************************************************************************************************************************** InsertAsteroid: phi rb ; put type in RB.1 ghi r2 ; set RA to point to asteroid base records. phi ra ldi <AsteroidBase plo ra IAFindSlot: ldn ra ; read first item, $FF if not in use shl ; shift bit 7 into DF bdf IAFoundSlot glo ra ; go to next record adi AsteroidRecSize plo ra xri AsteroidEnd ; if reached the end, give up ! bnz IAFindSlot phi ra ; return $0000 in RA. plo ra sep r4 IAFoundSlot: ldi >Random ; R6 = Random Routine phi r6 ldi <Random plo r6 glo ra ; add 5 to RA adi 5 plo ra sep r6 ; random number sex ra ; X = RA stxd ; store in RA[5] - means don't all draw/erase same frame. ghi rb ; get type in RB.1 shl ; x 64 = 0 - 0 1 - 64 2 - 128 shl shl shl shl shl sdi 172 ; 172 - n x 32 0 = 172, 1 = 108, 2 = 54 stxd ; store in RA[4] sep r6 ; Direction of movement 0-7 in RA[3] sex ra ; X = A ani 7 ori 1 ; force diagonal stxd ghi rb ; type in RA[2] stxd sep r6 ; y position in RA[1] sex ra ; X = A ani 31 stxd sep r6 ; x position in RA[0] sex ra ; X = A ani 63 ori 64 ; set don't draw first bit. str ra sep r4 ; *************************************************************************************************************************************** ; ; M A I N P R O G R A M ; ; *************************************************************************************************************************************** ; --------------------------------------------------------------------------------------------------------------------------------------- ; Set everything up ; --------------------------------------------------------------------------------------------------------------------------------------- StartGame: ldi $0FF ; initialise the Stack to $2FF plo r2 ; from $2CF. ldi RAMPage phi r2 phi rd ldi Level ; point RD to Level. plo rd sex rd ldi 1 ; start at level #1 stxd ldi 3 ; with three lives stxd stxd ; makes the MSB of random seed non-zero. ; --------------------------------------------------------------------------------------------------------------------------------------- ; Come here if starting new level. ; --------------------------------------------------------------------------------------------------------------------------------------- StartNewLevel: ldi >InitialiseLevel ; call level initialisation code. phi r4 ldi <InitialiseLevel plo r4 sep r4 ; --------------------------------------------------------------------------------------------------------------------------------------- ; Restart the current level. ; --------------------------------------------------------------------------------------------------------------------------------------- RestartCurrentLevel: ldi VideoPage ; point RA to the video page phi rd phi ra ldi 0 plo ra ldi 8 ; and RD to VP Line 1 plo rd RCL_Clear: ; clear the screen. ldi $00 str ra inc ra glo ra bnz RCL_Clear ghi r2 ; read lives left phi re ldi Lives plo re ldn re plo re ; store in RE.0 RCL_Lives: ldi $60 ; draw a life marker str rd glo rd ; two lines down adi 16 plo rd dec re ; for however many lives are left. glo re bnz RCL_Lives ldi IsVisible ; RE points to Visible Flag (RE.1 = Data Area) plo re sex re ldi 0 ; set Visible Flag ($F3) to zero. stxd stxd ; set rotation ($F2) to zero ldi 16 ; set Y ($F1) to 16 stxd ldi 32 ; set X ($F0) to 32 stxd ldi MissileBase ; erase missiles plo re RCL_ClearMissiles: ldi $FF str re inc re glo re xri MissileEnd bnz RCL_ClearMissiles RCL_Wait5: ; wait for Player 1 Key 5 which is the start key dec r2 sex r2 ldi 5 ; put 5 on TOS str r2 ; send to keyboardlatch out 2 bn3 RCL_Wait5 ; loop back if key 5 not pressed ; --------------------------------------------------------------------------------------------------------------------------------------- ; Main Loop ; --------------------------------------------------------------------------------------------------------------------------------------- MainLoop: ghi r2 ; Point RA to Visibility Mask and set it to $FF phi ra ; (cleared if in central area) ldi VisiMask plo ra ldi $FF str ra ; --------------------------------------------------------------------------------------------------------------------------------------- ; Move all the asteroids ; --------------------------------------------------------------------------------------------------------------------------------------- ldi AsteroidBase ; Point RA to asteroids plo ra ML_MoveAsteroid: ldn ra ; get X shl ; bit 7 set = not used bdf ML_NextAsteroid2 ; skip to next ghi ra ; point RF to the speed RA[4] phi rf glo ra adi 4 plo rf lda rf ; read speed, advance to speed counter RA[5] sex rf add ; add to speed counter str rf bnf ML_NextAsteroid ; if no carry out don't move. ldi >DrawAsteroid ; R4 points to drawing routine phi r4 ldi <DrawAsteroid plo r4 ldn ra ; if bit 6 of X is set ani $40 bnz ML_DontNeedErase ; then first time, so don't need to erase sep r4 ; erase inc ra ; read Y ldn ra dec ra shl ; if bit 7 set bnf ML_DontNeedErase ; then don't destroy asteroid ldi $FF ; mark asteroid unused str ra br ML_NextAsteroid ML_DontNeedErase: ldi >MoveObject ; R5 points to object mover phi r5 ldi <MoveObject plo r5 inc ra ; get direction at RA[3] inc ra inc ra ldn ra dec ra dec ra dec ra sep r5 ; move (also clears bit 6) sep r4 ; repaint (R4 reentrant) ML_NextAsteroid: ldn ra ; read X - check in range 22-42 ani 63 smi 22 bnf ML_NextAsteroid2 smi 20 bdf ML_NextAsteroid2 inc ra ; read Y - check in range 11-21 ldn ra ani 31 dec ra smi 11 bnf ML_NextAsteroid2 smi 10 bdf ML_NextAsteroid2 ghi r2 ; clear visimask flag if in area. phi re ldi VisiMask plo re ldi 0 str re ML_NextAsteroid2: glo ra ; point RA to next asteroid adi AsteroidRecSize plo ra xri AsteroidEnd ; go back if reached the end. bnz ML_MoveAsteroid ldi >ScanKeypad ; read the keypad phi r4 ldi <ScanKeypad plo r4 sep r4 dec r2 ; store on stack. str r2 ldi >ML_JumpPage ; set R4 to ML_JumpPage - we can't do LBR. phi r4 ldi <ML_JumpPage plo r4 sep r4 ; transfer there ML_JumpPage: ldi >MovePlayerSection ; set R3 to MovePlayerSection phi r3 ldi <MovePlayerSection plo r3 sep r3 ; and go there. ; *************************************************************************************************************************************** ; ; Set up new Level ; ; *************************************************************************************************************************************** InitialiseLevel: ghi r2 phi ra ; erase asteroid data to all $FFs ldi AsteroidBase plo ra AsteroidClear: ldi $FF str ra inc ra glo ra xri AsteroidEnd bnz AsteroidClear ldi Level ; get level. plo ra ldn ra shr ; level/2 + 3 adi 3 dec r2 ; save on stack space. str r2 smi 9 bnf SNL_InsertLoop ; max out at 9 ldi 9 str r2 SNL_InsertLoop: ldi >InsertAsteroid ; call insert asteroid code. phi r5 ldi <InsertAsteroid plo r5 ldi 2 ; type 2 - the big ones. sep r5 ldn r2 ; decrement counter till zero. smi 1 str r2 bnz SNL_InsertLoop inc r2 sep r3 ; *************************************************************************************************************************************** ; Collision Check ; ; Check collision of 4 missiles + player with Asteroid at RC. ; ; Runs in R4, returns to R3. Jumps out if player has lost. ; *************************************************************************************************************************************** CollisionCheck: ldi MissileBase ; point RD to the missile base plo rd ghi r2 phi rd inc rc ; point RC to RC[2] which is the asteroid type inc rc ldn rc ; read in asteroid type dec rc ; point RC back to RC[0] dec rc dec r2 ; make space on the stack adi 2 ; collision is |dx| and |dy| < type+2 (e.g. 2,3,4) str r2 CC_Loop: ldn rd ; read missile/player X ani $C0 bnz CC_Next ; if non-zero either unused bit (7) or new (6) is set so skip inc rd ; read RD[1] e.g. missile/player Y ldn rd dec rd shl ; bit 7 of RD[1] - the marked for deletion bit - in DF bdf CC_Next ; skip if marked for deletion. ldn rd ; read X.Missile sex rc sm ; calculate X.Player - X.Asteroid bdf CC_Abs1 ; calculate |X.Player - X.Asteroid| sdi 0 CC_Abs1:sex r2 ; point to collision width sm ; if >= collision width, go to next record bdf CC_Next inc rd ; read Y.Player ldn rd dec rd sex rc ; calculate Y.Player-Y.Asteroid inc rc sm dec rc bdf CC_Abs2 ; calculate |Y.Player - Y.Asteroid| sdi 0 CC_Abs2:sex r2 ; if >= collision width, go to next record sm bdf CC_Next glo rd ; get LSB of collided player/missile. xri XPlayer ; hit the player bz CC_LostLife inc rd ; mark bullet for deletion - set RD[1] bit 7 ldn rd ori $80 str rd dec rd inc rc ; mark asteroid for deletion - set RC[1] bit 7 ldn rc ori $80 str rc inc rc ; get asteroid type ldn rc ; load type RC[2] into R7.0 plo r7 dec rc ; fix RC back to point to asteroid base. dec rc inc rd ; point RD to missile direction inc rd ldn rd ; load rotation angle from RC[3] into r7.1 smi 2 ; subtract 2 i.e. a right angle to the missile direction. phi r7 dec rd ; fix RD back dec rd ghi r2 ; point RE to points to add phi re ldi PointsToAdd plo re glo r7 ; type destroyed 2,1,0 sdi 3 ; score is 1,2,3 x 100 points sex re ; add to points to add. add str re glo r7 ; get asteroid type bz CC_Next ; if zero don't spawn smaller ones. ldi 2 ; set RE.0 = 2, the counter. plo re CC_NewRocks: ldi >InsertAsteroid ; create a new asteroid in RA phi r5 ldi <InsertAsteroid plo r5 glo r7 ; get asteroid type shot smi 1 ; one less is the asteroid type to be created, returns a pointer in RA. sep r5 lda rc ; get X of destroyed asteroid ori $40 ; set 'new' flag. str ra inc ra ldn rc ; get Y of destroyed asteroid str ra dec rc ; rc back pointing at record inc ra ; RA now at RA[2] type inc ra ; RA now at RA[3] rotation ghi r7 ; get rotation, flip 180 degrees adi 4 ani 7 phi r7 str ra ; store in the rotation slot. dec re ; do it twice glo re bnz CC_NewRocks CC_Next:glo rd ; advance RD to next record adi MissileRecSize plo rd xri MissileEnd+MissileRecSize ; go one further - this is the player collision check bnz CC_Loop ; keep going. inc r2 ; fix stack up sep r3 CC_LostLife: ghi r2 ; player collision. Check that player is visible phi re ldi IsVisible plo re ldn re bz CC_Next ; if not visible ignore this. inc r2 ; fix stack ldi >Dead ; go to lost life code, jump out of routine. phi r3 ldi <Dead plo r3 sep r3 ; *************************************************************************************************************************************** ; *************************************************************************************************************************************** ; ROM BREAK HERE ; *************************************************************************************************************************************** ; *************************************************************************************************************************************** ; --------------------------------------------------------------------------------------------------------------------------------------- ; Move the player ; --------------------------------------------------------------------------------------------------------------------------------------- .org $C00 SecondRomBase: MovePlayerSection: ghi r2 phi rd phi re ldi SpeedCounter ; point RE to player speed counter plo re ldn re ; add speed to speed counter adi PlayerSpeed str re bnf ML_EndPlayerMove ; no carry out, don't move. ldi IsVisible ; point RD to IsVisible , check if player has been made visible yet. plo rd lda rd ; read isVisible and point RD to Visimask bnz ML_PlayerMove ldn rd ; read Visimask bz ML_EndPlayerMove ; if that is zero, then can't come into existence yet. dec rd ; point back to IsVisible, D != 0 str rd ; now mark it as been made visible br ML_RedrawPlayer ML_PlayerMove: ldi >DrawPlayerSprite ; erase the player phi r4 ldi <DrawPlayerSprite plo r4 sep r4 ghi r2 ; RA points to player, RE to rotation phi ra phi re ldi XPlayer plo ra ldi Rotation plo re ldn re ; read rotation plo rd ; put in RD ldn r2 ; read keypad shr shr ; shift bit 1 into DF bnf ML_NotLeft dec rd ; if set rotate left ML_NotLeft: shr ; shift bit 2 into DF bnf ML_NotRight inc rd ; if set rotate right ML_NotRight: glo rd ; store rotation back anded with 7 ani 7 str re ldn r2 ; read keypad state off stack shr ; bit 0 (key 2) into DF bnf ML_RedrawPlayer ; if not set, don't move. ldi >MoveObject ; R4 points to object mover phi r4 ldi <MoveObject plo r4 ldn re ; read rotation in. sep r4 ; move the player. ML_RedrawPlayer: ldi >DrawPlayerSprite ; redraw the player before exiting. phi r4 ldi <DrawPlayerSprite plo r4 sep r4 ; --------------------------------------------------------------------------------------------------------------------------------------- ; Check for player fire, launch missile if true. ; --------------------------------------------------------------------------------------------------------------------------------------- ghi r2 ; point RF to last fire byte phi rf phi ra ; set RA.1 to data area ldi LastFire plo rf ldn r2 ; reload keyboard byte off stack ani $80 ; isolate bit 7 (fire) into D sex rf ; ex-or with old status. xor bz ML_EndPlayerMove ; if no change then exit player move. xor ; ex-or brings back new status. str rf ; save in last status byte bz ML_EndPlayerMove ; if 0 then transition 1->0, exit ldi MissileBase ; fire missile request, set RA.0 to missile base plo ra ; look for free missile space. ML_FindFreeMissile: ldn ra ; look in missile slot. shl ; check bit 7 bdf ML_FoundFreeMissileSpace ; if set, free slot so create new missile glo ra ; advance to next slot adi MissileRecSize plo ra xri MissileEnd ; reached the end bnz ML_FindFreeMissile ; try again. br ML_EndPlayerMove ; all missiles currently in use. ML_FoundFreeMissileSpace: ldi XPlayer ; RF points to player data, RA to missile plo rf lda rf ; copy X across ori $40 ; set the not-drawn bit. str ra inc ra lda rf ; copy Y across str ra inc ra lda rf ; copy rotation = missile direction across. str ra inc ra ldi MissileLifeSpan ; set the missile life counter str ra ldi Studio2BeepTimer ; short beep. plo ra ldi 5 str ra ML_EndPlayerMove: inc r2 ; fix stack back up. ; --------------------------------------------------------------------------------------------------------------------------------------- ; Move all live missiles ; --------------------------------------------------------------------------------------------------------------------------------------- ghi r2 ; point RA to missile start phi ra ldi MissileBase plo ra ML_MoveMissiles: ldn ra ; read X shl ; if bit 7 set not in use. bdf ML_NextMissile shl ; if bit 6 go to move, redraw, exit bdf ML_MissileNoErase ldi >DrawPixelLoad ; set R4 to the pixel loader. phi r4 ldi <DrawPixelLoad plo r4 sep r4 ; erase previous missile ML_MissileNoErase: inc ra ; read Y from RA[1] ldn ra dec ra shl ; bit 7 into DF bdf ML_MissileDestroy ; if set, mark it for destroying. glo ra ; point RE at life counter RA[3] adi 3 plo re ghi ra phi re ldn re ; read the life counter RA[3] smi 1 ; decrement it and update. str re bz ML_MissileDestroy ; if zero destroy the missile dec re ; RE now points at missile direction RA[2] ldi >MoveObject ; R4 points to object mover phi r4 ldi <MoveObject plo r4 ldn re ; read rotation in. sep r4 ; move the missile ldi >DrawPixelLoad ; set R4 to the pixel loader. phi r4 ldi <DrawPixelLoad plo r4 sep r4 ; redraw the missile br ML_NextMissile ML_MissileDestroy: ; destroy the missile ldi $FF ; set MA[0] to $FF terminating it. str ra ML_NextMissile: glo ra ; go to next missile adi MissileRecSize plo ra xri MissileEnd ; if not reached end, go back bnz ML_MoveMissiles ; --------------------------------------------------------------------------------------------------------------------------------------- ; Collision Testing ; --------------------------------------------------------------------------------------------------------------------------------------- ghi r2 phi rc ldi AsteroidBase ; scan through asteroids check collisions with bullets/player. plo rc ML_CollisionLoop: ldn rc ; read asteroid X ani $C0 ; bit 7 = unused, bit 6 = newly created. Both must be clear. bnz ML_CollisionNext ; if bit 7 set this record is empty. ldi >CollisionCheck ; call collision check phi r4 ldi <CollisionCheck plo r4 sep r4 ML_CollisionNext: glo rc adi AsteroidRecSize ; go to next asteroid record. plo rc xri AsteroidEnd ; keep going till the end. bnz ML_CollisionLoop ; --------------------------------------------------------------------------------------------------------------------------------------- ; Adding accrued points ; --------------------------------------------------------------------------------------------------------------------------------------- ML_AddPoints: ldi PointsToAdd ; point RA to points to add plo ra ldn ra ; read points to add bz ML_EndAddPoints ; exit if zero smi 1 ; decrement accrued str ra inc ra ; advance to units digit. inc ra ; advance to tens digit. ML_BumpDigit: inc ra ; advance to next digit ldn ra ; increment and save digit adi 1 str ra smi 10 ; if < 10 then see if any more accrued points bnf ML_AddPoints str ra ; save result back (e.g. mod 10) br ML_BumpDigit ; do the next digit. (e.g. tens->hundreds) ML_EndAddPoints: br TimerSync-1 ; --------------------------------------------------------------------------------------------------------------------------------------- ; Timer Synchronisation ; --------------------------------------------------------------------------------------------------------------------------------------- .org SecondRomBase-1+256 ghi r2 TimerSync: ghi r2 phi ra ldi Studio2SyncTimer ; RA points to S2 sync timer. plo ra ML_WaitTimer: ldn ra ; bnz ML_WaitTimer ldi 3 str ra ; --------------------------------------------------------------------------------------------------------------------------------------- ; Check if level completed. ; --------------------------------------------------------------------------------------------------------------------------------------- ldi AsteroidBase ; set RA point to asteroid base plo ra ML_CheckCompleted: ldn ra ; read ra shl ; shift alive bit into DF bnf LongBranchMainLoop ; if there's a live asteroid keep going round. glo ra ; go to next record. adi AsteroidRecSize plo ra xri AsteroidEnd ; check all asteroids bnz ML_CheckCompleted ldi Level ; completed level - bump to next. plo ra ldn ra adi 1 str ra ldi >StartNewLevel ; start a new level. phi rc ldi <StartNewLevel plo rc br LongBranchToRC ; --------------------------------------------------------------------------------------------------------------------------------------- ; Loop around because we have no LBR ; --------------------------------------------------------------------------------------------------------------------------------------- LongBranchMainLoop: Loop2: ldi >MainLoop phi rc ldi <MainLoop plo rc LongBranchToRC: ldi >JumpToRC ; so we're stuck with this. phi r4 ldi <JumpToRC plo r4 sep r4 JumpToRC: ; here with P = 4 ghi rc ; copy RC to R3 phi r3 glo rc plo r3 sep r3 ; jump to r3 ; --------------------------------------------------------------------------------------------------------------------------------------- ; Life Lost ; --------------------------------------------------------------------------------------------------------------------------------------- Dead: ghi r2 ; point RF to Lives phi rf ldi Lives plo rf ldn rf ; decrement lives count smi 1 str rf bz GameOver ldi AsteroidBase ; set all the new flags in the asteroids as Restart will clear screen. plo rf DeadSetNew: ldn rf ori $40 str rf glo rf adi AsteroidRecSize plo rf xri AsteroidEnd bnz DeadSetNew ldi >RestartCurrentLevel ; restart the current level phi rc ldi <RestartCurrentLevel plo rc br LongBranchToRC ; --------------------------------------------------------------------------------------------------------------------------------------- ; Game Over ; --------------------------------------------------------------------------------------------------------------------------------------- GameOver: ghi r2 ; point RD to the score. phi rd ldi Score plo rd ldi 6 ; make 3 LSBs of E 110 (screen position) plo re ldi >WriteDisplayByte ; point RA to the byte-writer phi ra ldi <WriteDisplayByte plo ra ScoreWriteLoop: glo re ; convert 3 LSBs of RE to screen address ani 7 adi 128-40 plo re ldi VideoPage ; put in video page phi re ldi $FF sep ra ldi $00 sep ra lda rd ; read next score digit adi $10 ; score table offset in BIOS plo r4 ldi $02 ; read from $210+n phi r4 ldn r4 ; into D, the new offset plo r4 ; put into R4, R4 now contains 5 rows graphic data ldi 5 ; set R5.0 to 6 plo r5 OutputChar: lda r4 ; read character and advance shr ; centre in byte shr sep ra ; output it dec r5 ; decrement counter glo r5 bnz OutputChar ; loop back if nonzero ldi $00 sep ra ldi $FF sep ra dec re ; previous value of 3 LSBs. glo re ani 7 bnz ScoreWriteLoop Halt: br Halt ; *************************************************************************************************************************************** ; ; Write byte D to RE. Add 8 to RE ; ; *************************************************************************************************************************************** WriteDisplayByte: str re ; save result glo re ; down one row adi 8 plo re sep r3 br WriteDisplayByte ; *************************************************************************************************************************************** ; ; Asteroid Ship Graphics ; ; *************************************************************************************************************************************** .org SecondROMBase+$1E0 AsteroidGraphics: .db 64,160,160,0 .db 96,160,64,0 .db 192,32,192,0 .db 64,160,96,0 .db 160,160,64,0 .db 64,160,192,0 .db 96,128,96,0 .db 192,160,64,0 .db 0
31.363636
139
0.424479
d8a75df267bf0bd86cd525f355147392afead2b6
1,758
asm
Assembly
src/sprite_zxn.asm
jardafis/CastleEscape
3deb573938109a8ea84277d83dd7a163588747a4
[ "BSD-3-Clause" ]
1
2022-01-07T07:10:55.000Z
2022-01-07T07:10:55.000Z
src/sprite_zxn.asm
jardafis/CastleEscape
3deb573938109a8ea84277d83dd7a163588747a4
[ "BSD-3-Clause" ]
null
null
null
src/sprite_zxn.asm
jardafis/CastleEscape
3deb573938109a8ea84277d83dd7a163588747a4
[ "BSD-3-Clause" ]
null
null
null
IF _ZXN extern knightSprite extern setSpritePattern extern setSpriteXY extern setSpriteFlip extern updateSpriteAttribs extern _ySpeed extern _xSpeed extern jumpFall extern ticks extern playerSprite public _displaySprite #include "defs.inc" section CODE_2 ; ; Display the knight sprite at the specified screen location. ; ; Entry: ; b - Screen y pixel location ; c - Screen x pixel location ; _displaySprite: ld a, (ticks) and 0x01 ret z ld hl, (jumpFall) ; 16 ld a, h or l jr nz, setJumpSprite call getPatternIndex add SPRITE_ID_KNIGHT ; Sprite pattern offset setSprite: ld ix, knightSprite call setSpritePattern call setSpriteXY ld a, (playerSprite) call setSpriteFlip call updateSpriteAttribs ret setJumpSprite: ld de, (_ySpeed) fix_to_int d, e or a ld a, SPRITE_ID_JUMP_UP jp m, setSprite ld a, SPRITE_ID_JUMP_PEEK jr z, setSprite ld a, SPRITE_ID_FALL jr setSprite getPatternIndex: ; Check if the player is moving left/right ld a, (_xSpeed) or a ret z ; Increment the frame count ld hl, frame ; 10 inc (hl) ; 11 ld a, (hl) ; 7 mod 5 ret section BSS_2 frame: ds 1 ENDIF
22.253165
69
0.478953
ad564fe5da9b81e8a196301711d3ea1d7555e7b8
57,907
asm
Assembly
mkdir.asm
jhsie007/xv6
237fe356270a548f3171bd206771d6b9f29776c4
[ "MIT-0" ]
null
null
null
mkdir.asm
jhsie007/xv6
237fe356270a548f3171bd206771d6b9f29776c4
[ "MIT-0" ]
null
null
null
mkdir.asm
jhsie007/xv6
237fe356270a548f3171bd206771d6b9f29776c4
[ "MIT-0" ]
null
null
null
_mkdir: file format elf32-i386 Disassembly of section .text: 00001000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 1000: 55 push %ebp 1001: 89 e5 mov %esp,%ebp 1003: 83 e4 f0 and $0xfffffff0,%esp 1006: 83 ec 20 sub $0x20,%esp int i; if(argc < 2){ 1009: 83 7d 08 01 cmpl $0x1,0x8(%ebp) 100d: 7f 19 jg 1028 <main+0x28> printf(2, "Usage: mkdir files...\n"); 100f: c7 44 24 04 e1 1a 00 movl $0x1ae1,0x4(%esp) 1016: 00 1017: c7 04 24 02 00 00 00 movl $0x2,(%esp) 101e: e8 7d 04 00 00 call 14a0 <printf> exit(); 1023: e8 d0 02 00 00 call 12f8 <exit> } for(i = 1; i < argc; i++){ 1028: c7 44 24 1c 01 00 00 movl $0x1,0x1c(%esp) 102f: 00 1030: eb 4f jmp 1081 <main+0x81> if(mkdir(argv[i]) < 0){ 1032: 8b 44 24 1c mov 0x1c(%esp),%eax 1036: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 103d: 8b 45 0c mov 0xc(%ebp),%eax 1040: 01 d0 add %edx,%eax 1042: 8b 00 mov (%eax),%eax 1044: 89 04 24 mov %eax,(%esp) 1047: e8 14 03 00 00 call 1360 <mkdir> 104c: 85 c0 test %eax,%eax 104e: 79 2c jns 107c <main+0x7c> printf(2, "mkdir: %s failed to create\n", argv[i]); 1050: 8b 44 24 1c mov 0x1c(%esp),%eax 1054: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 105b: 8b 45 0c mov 0xc(%ebp),%eax 105e: 01 d0 add %edx,%eax 1060: 8b 00 mov (%eax),%eax 1062: 89 44 24 08 mov %eax,0x8(%esp) 1066: c7 44 24 04 f8 1a 00 movl $0x1af8,0x4(%esp) 106d: 00 106e: c7 04 24 02 00 00 00 movl $0x2,(%esp) 1075: e8 26 04 00 00 call 14a0 <printf> break; 107a: eb 0e jmp 108a <main+0x8a> if(argc < 2){ printf(2, "Usage: mkdir files...\n"); exit(); } for(i = 1; i < argc; i++){ 107c: 83 44 24 1c 01 addl $0x1,0x1c(%esp) 1081: 8b 44 24 1c mov 0x1c(%esp),%eax 1085: 3b 45 08 cmp 0x8(%ebp),%eax 1088: 7c a8 jl 1032 <main+0x32> printf(2, "mkdir: %s failed to create\n", argv[i]); break; } } exit(); 108a: e8 69 02 00 00 call 12f8 <exit> 108f: 90 nop 00001090 <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 1090: 55 push %ebp 1091: 89 e5 mov %esp,%ebp 1093: 57 push %edi 1094: 53 push %ebx asm volatile("cld; rep stosb" : 1095: 8b 4d 08 mov 0x8(%ebp),%ecx 1098: 8b 55 10 mov 0x10(%ebp),%edx 109b: 8b 45 0c mov 0xc(%ebp),%eax 109e: 89 cb mov %ecx,%ebx 10a0: 89 df mov %ebx,%edi 10a2: 89 d1 mov %edx,%ecx 10a4: fc cld 10a5: f3 aa rep stos %al,%es:(%edi) 10a7: 89 ca mov %ecx,%edx 10a9: 89 fb mov %edi,%ebx 10ab: 89 5d 08 mov %ebx,0x8(%ebp) 10ae: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 10b1: 5b pop %ebx 10b2: 5f pop %edi 10b3: 5d pop %ebp 10b4: c3 ret 000010b5 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 10b5: 55 push %ebp 10b6: 89 e5 mov %esp,%ebp 10b8: 83 ec 10 sub $0x10,%esp char *os; os = s; 10bb: 8b 45 08 mov 0x8(%ebp),%eax 10be: 89 45 fc mov %eax,-0x4(%ebp) while((*s++ = *t++) != 0) 10c1: 90 nop 10c2: 8b 45 08 mov 0x8(%ebp),%eax 10c5: 8d 50 01 lea 0x1(%eax),%edx 10c8: 89 55 08 mov %edx,0x8(%ebp) 10cb: 8b 55 0c mov 0xc(%ebp),%edx 10ce: 8d 4a 01 lea 0x1(%edx),%ecx 10d1: 89 4d 0c mov %ecx,0xc(%ebp) 10d4: 0f b6 12 movzbl (%edx),%edx 10d7: 88 10 mov %dl,(%eax) 10d9: 0f b6 00 movzbl (%eax),%eax 10dc: 84 c0 test %al,%al 10de: 75 e2 jne 10c2 <strcpy+0xd> ; return os; 10e0: 8b 45 fc mov -0x4(%ebp),%eax } 10e3: c9 leave 10e4: c3 ret 000010e5 <strcmp>: int strcmp(const char *p, const char *q) { 10e5: 55 push %ebp 10e6: 89 e5 mov %esp,%ebp while(*p && *p == *q) 10e8: eb 08 jmp 10f2 <strcmp+0xd> p++, q++; 10ea: 83 45 08 01 addl $0x1,0x8(%ebp) 10ee: 83 45 0c 01 addl $0x1,0xc(%ebp) } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 10f2: 8b 45 08 mov 0x8(%ebp),%eax 10f5: 0f b6 00 movzbl (%eax),%eax 10f8: 84 c0 test %al,%al 10fa: 74 10 je 110c <strcmp+0x27> 10fc: 8b 45 08 mov 0x8(%ebp),%eax 10ff: 0f b6 10 movzbl (%eax),%edx 1102: 8b 45 0c mov 0xc(%ebp),%eax 1105: 0f b6 00 movzbl (%eax),%eax 1108: 38 c2 cmp %al,%dl 110a: 74 de je 10ea <strcmp+0x5> p++, q++; return (uchar)*p - (uchar)*q; 110c: 8b 45 08 mov 0x8(%ebp),%eax 110f: 0f b6 00 movzbl (%eax),%eax 1112: 0f b6 d0 movzbl %al,%edx 1115: 8b 45 0c mov 0xc(%ebp),%eax 1118: 0f b6 00 movzbl (%eax),%eax 111b: 0f b6 c0 movzbl %al,%eax 111e: 29 c2 sub %eax,%edx 1120: 89 d0 mov %edx,%eax } 1122: 5d pop %ebp 1123: c3 ret 00001124 <strlen>: uint strlen(char *s) { 1124: 55 push %ebp 1125: 89 e5 mov %esp,%ebp 1127: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 112a: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 1131: eb 04 jmp 1137 <strlen+0x13> 1133: 83 45 fc 01 addl $0x1,-0x4(%ebp) 1137: 8b 55 fc mov -0x4(%ebp),%edx 113a: 8b 45 08 mov 0x8(%ebp),%eax 113d: 01 d0 add %edx,%eax 113f: 0f b6 00 movzbl (%eax),%eax 1142: 84 c0 test %al,%al 1144: 75 ed jne 1133 <strlen+0xf> ; return n; 1146: 8b 45 fc mov -0x4(%ebp),%eax } 1149: c9 leave 114a: c3 ret 0000114b <memset>: void* memset(void *dst, int c, uint n) { 114b: 55 push %ebp 114c: 89 e5 mov %esp,%ebp 114e: 83 ec 0c sub $0xc,%esp stosb(dst, c, n); 1151: 8b 45 10 mov 0x10(%ebp),%eax 1154: 89 44 24 08 mov %eax,0x8(%esp) 1158: 8b 45 0c mov 0xc(%ebp),%eax 115b: 89 44 24 04 mov %eax,0x4(%esp) 115f: 8b 45 08 mov 0x8(%ebp),%eax 1162: 89 04 24 mov %eax,(%esp) 1165: e8 26 ff ff ff call 1090 <stosb> return dst; 116a: 8b 45 08 mov 0x8(%ebp),%eax } 116d: c9 leave 116e: c3 ret 0000116f <strchr>: char* strchr(const char *s, char c) { 116f: 55 push %ebp 1170: 89 e5 mov %esp,%ebp 1172: 83 ec 04 sub $0x4,%esp 1175: 8b 45 0c mov 0xc(%ebp),%eax 1178: 88 45 fc mov %al,-0x4(%ebp) for(; *s; s++) 117b: eb 14 jmp 1191 <strchr+0x22> if(*s == c) 117d: 8b 45 08 mov 0x8(%ebp),%eax 1180: 0f b6 00 movzbl (%eax),%eax 1183: 3a 45 fc cmp -0x4(%ebp),%al 1186: 75 05 jne 118d <strchr+0x1e> return (char*)s; 1188: 8b 45 08 mov 0x8(%ebp),%eax 118b: eb 13 jmp 11a0 <strchr+0x31> } char* strchr(const char *s, char c) { for(; *s; s++) 118d: 83 45 08 01 addl $0x1,0x8(%ebp) 1191: 8b 45 08 mov 0x8(%ebp),%eax 1194: 0f b6 00 movzbl (%eax),%eax 1197: 84 c0 test %al,%al 1199: 75 e2 jne 117d <strchr+0xe> if(*s == c) return (char*)s; return 0; 119b: b8 00 00 00 00 mov $0x0,%eax } 11a0: c9 leave 11a1: c3 ret 000011a2 <gets>: char* gets(char *buf, int max) { 11a2: 55 push %ebp 11a3: 89 e5 mov %esp,%ebp 11a5: 83 ec 28 sub $0x28,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 11a8: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 11af: eb 4c jmp 11fd <gets+0x5b> cc = read(0, &c, 1); 11b1: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 11b8: 00 11b9: 8d 45 ef lea -0x11(%ebp),%eax 11bc: 89 44 24 04 mov %eax,0x4(%esp) 11c0: c7 04 24 00 00 00 00 movl $0x0,(%esp) 11c7: e8 44 01 00 00 call 1310 <read> 11cc: 89 45 f0 mov %eax,-0x10(%ebp) if(cc < 1) 11cf: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 11d3: 7f 02 jg 11d7 <gets+0x35> break; 11d5: eb 31 jmp 1208 <gets+0x66> buf[i++] = c; 11d7: 8b 45 f4 mov -0xc(%ebp),%eax 11da: 8d 50 01 lea 0x1(%eax),%edx 11dd: 89 55 f4 mov %edx,-0xc(%ebp) 11e0: 89 c2 mov %eax,%edx 11e2: 8b 45 08 mov 0x8(%ebp),%eax 11e5: 01 c2 add %eax,%edx 11e7: 0f b6 45 ef movzbl -0x11(%ebp),%eax 11eb: 88 02 mov %al,(%edx) if(c == '\n' || c == '\r') 11ed: 0f b6 45 ef movzbl -0x11(%ebp),%eax 11f1: 3c 0a cmp $0xa,%al 11f3: 74 13 je 1208 <gets+0x66> 11f5: 0f b6 45 ef movzbl -0x11(%ebp),%eax 11f9: 3c 0d cmp $0xd,%al 11fb: 74 0b je 1208 <gets+0x66> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 11fd: 8b 45 f4 mov -0xc(%ebp),%eax 1200: 83 c0 01 add $0x1,%eax 1203: 3b 45 0c cmp 0xc(%ebp),%eax 1206: 7c a9 jl 11b1 <gets+0xf> break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 1208: 8b 55 f4 mov -0xc(%ebp),%edx 120b: 8b 45 08 mov 0x8(%ebp),%eax 120e: 01 d0 add %edx,%eax 1210: c6 00 00 movb $0x0,(%eax) return buf; 1213: 8b 45 08 mov 0x8(%ebp),%eax } 1216: c9 leave 1217: c3 ret 00001218 <stat>: int stat(char *n, struct stat *st) { 1218: 55 push %ebp 1219: 89 e5 mov %esp,%ebp 121b: 83 ec 28 sub $0x28,%esp int fd; int r; fd = open(n, O_RDONLY); 121e: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 1225: 00 1226: 8b 45 08 mov 0x8(%ebp),%eax 1229: 89 04 24 mov %eax,(%esp) 122c: e8 07 01 00 00 call 1338 <open> 1231: 89 45 f4 mov %eax,-0xc(%ebp) if(fd < 0) 1234: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 1238: 79 07 jns 1241 <stat+0x29> return -1; 123a: b8 ff ff ff ff mov $0xffffffff,%eax 123f: eb 23 jmp 1264 <stat+0x4c> r = fstat(fd, st); 1241: 8b 45 0c mov 0xc(%ebp),%eax 1244: 89 44 24 04 mov %eax,0x4(%esp) 1248: 8b 45 f4 mov -0xc(%ebp),%eax 124b: 89 04 24 mov %eax,(%esp) 124e: e8 fd 00 00 00 call 1350 <fstat> 1253: 89 45 f0 mov %eax,-0x10(%ebp) close(fd); 1256: 8b 45 f4 mov -0xc(%ebp),%eax 1259: 89 04 24 mov %eax,(%esp) 125c: e8 bf 00 00 00 call 1320 <close> return r; 1261: 8b 45 f0 mov -0x10(%ebp),%eax } 1264: c9 leave 1265: c3 ret 00001266 <atoi>: int atoi(const char *s) { 1266: 55 push %ebp 1267: 89 e5 mov %esp,%ebp 1269: 83 ec 10 sub $0x10,%esp int n; n = 0; 126c: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while('0' <= *s && *s <= '9') 1273: eb 25 jmp 129a <atoi+0x34> n = n*10 + *s++ - '0'; 1275: 8b 55 fc mov -0x4(%ebp),%edx 1278: 89 d0 mov %edx,%eax 127a: c1 e0 02 shl $0x2,%eax 127d: 01 d0 add %edx,%eax 127f: 01 c0 add %eax,%eax 1281: 89 c1 mov %eax,%ecx 1283: 8b 45 08 mov 0x8(%ebp),%eax 1286: 8d 50 01 lea 0x1(%eax),%edx 1289: 89 55 08 mov %edx,0x8(%ebp) 128c: 0f b6 00 movzbl (%eax),%eax 128f: 0f be c0 movsbl %al,%eax 1292: 01 c8 add %ecx,%eax 1294: 83 e8 30 sub $0x30,%eax 1297: 89 45 fc mov %eax,-0x4(%ebp) atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 129a: 8b 45 08 mov 0x8(%ebp),%eax 129d: 0f b6 00 movzbl (%eax),%eax 12a0: 3c 2f cmp $0x2f,%al 12a2: 7e 0a jle 12ae <atoi+0x48> 12a4: 8b 45 08 mov 0x8(%ebp),%eax 12a7: 0f b6 00 movzbl (%eax),%eax 12aa: 3c 39 cmp $0x39,%al 12ac: 7e c7 jle 1275 <atoi+0xf> n = n*10 + *s++ - '0'; return n; 12ae: 8b 45 fc mov -0x4(%ebp),%eax } 12b1: c9 leave 12b2: c3 ret 000012b3 <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 12b3: 55 push %ebp 12b4: 89 e5 mov %esp,%ebp 12b6: 83 ec 10 sub $0x10,%esp char *dst, *src; dst = vdst; 12b9: 8b 45 08 mov 0x8(%ebp),%eax 12bc: 89 45 fc mov %eax,-0x4(%ebp) src = vsrc; 12bf: 8b 45 0c mov 0xc(%ebp),%eax 12c2: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0) 12c5: eb 17 jmp 12de <memmove+0x2b> *dst++ = *src++; 12c7: 8b 45 fc mov -0x4(%ebp),%eax 12ca: 8d 50 01 lea 0x1(%eax),%edx 12cd: 89 55 fc mov %edx,-0x4(%ebp) 12d0: 8b 55 f8 mov -0x8(%ebp),%edx 12d3: 8d 4a 01 lea 0x1(%edx),%ecx 12d6: 89 4d f8 mov %ecx,-0x8(%ebp) 12d9: 0f b6 12 movzbl (%edx),%edx 12dc: 88 10 mov %dl,(%eax) { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 12de: 8b 45 10 mov 0x10(%ebp),%eax 12e1: 8d 50 ff lea -0x1(%eax),%edx 12e4: 89 55 10 mov %edx,0x10(%ebp) 12e7: 85 c0 test %eax,%eax 12e9: 7f dc jg 12c7 <memmove+0x14> *dst++ = *src++; return vdst; 12eb: 8b 45 08 mov 0x8(%ebp),%eax } 12ee: c9 leave 12ef: c3 ret 000012f0 <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 12f0: b8 01 00 00 00 mov $0x1,%eax 12f5: cd 40 int $0x40 12f7: c3 ret 000012f8 <exit>: SYSCALL(exit) 12f8: b8 02 00 00 00 mov $0x2,%eax 12fd: cd 40 int $0x40 12ff: c3 ret 00001300 <wait>: SYSCALL(wait) 1300: b8 03 00 00 00 mov $0x3,%eax 1305: cd 40 int $0x40 1307: c3 ret 00001308 <pipe>: SYSCALL(pipe) 1308: b8 04 00 00 00 mov $0x4,%eax 130d: cd 40 int $0x40 130f: c3 ret 00001310 <read>: SYSCALL(read) 1310: b8 05 00 00 00 mov $0x5,%eax 1315: cd 40 int $0x40 1317: c3 ret 00001318 <write>: SYSCALL(write) 1318: b8 10 00 00 00 mov $0x10,%eax 131d: cd 40 int $0x40 131f: c3 ret 00001320 <close>: SYSCALL(close) 1320: b8 15 00 00 00 mov $0x15,%eax 1325: cd 40 int $0x40 1327: c3 ret 00001328 <kill>: SYSCALL(kill) 1328: b8 06 00 00 00 mov $0x6,%eax 132d: cd 40 int $0x40 132f: c3 ret 00001330 <exec>: SYSCALL(exec) 1330: b8 07 00 00 00 mov $0x7,%eax 1335: cd 40 int $0x40 1337: c3 ret 00001338 <open>: SYSCALL(open) 1338: b8 0f 00 00 00 mov $0xf,%eax 133d: cd 40 int $0x40 133f: c3 ret 00001340 <mknod>: SYSCALL(mknod) 1340: b8 11 00 00 00 mov $0x11,%eax 1345: cd 40 int $0x40 1347: c3 ret 00001348 <unlink>: SYSCALL(unlink) 1348: b8 12 00 00 00 mov $0x12,%eax 134d: cd 40 int $0x40 134f: c3 ret 00001350 <fstat>: SYSCALL(fstat) 1350: b8 08 00 00 00 mov $0x8,%eax 1355: cd 40 int $0x40 1357: c3 ret 00001358 <link>: SYSCALL(link) 1358: b8 13 00 00 00 mov $0x13,%eax 135d: cd 40 int $0x40 135f: c3 ret 00001360 <mkdir>: SYSCALL(mkdir) 1360: b8 14 00 00 00 mov $0x14,%eax 1365: cd 40 int $0x40 1367: c3 ret 00001368 <chdir>: SYSCALL(chdir) 1368: b8 09 00 00 00 mov $0x9,%eax 136d: cd 40 int $0x40 136f: c3 ret 00001370 <dup>: SYSCALL(dup) 1370: b8 0a 00 00 00 mov $0xa,%eax 1375: cd 40 int $0x40 1377: c3 ret 00001378 <getpid>: SYSCALL(getpid) 1378: b8 0b 00 00 00 mov $0xb,%eax 137d: cd 40 int $0x40 137f: c3 ret 00001380 <sbrk>: SYSCALL(sbrk) 1380: b8 0c 00 00 00 mov $0xc,%eax 1385: cd 40 int $0x40 1387: c3 ret 00001388 <sleep>: SYSCALL(sleep) 1388: b8 0d 00 00 00 mov $0xd,%eax 138d: cd 40 int $0x40 138f: c3 ret 00001390 <uptime>: SYSCALL(uptime) 1390: b8 0e 00 00 00 mov $0xe,%eax 1395: cd 40 int $0x40 1397: c3 ret 00001398 <clone>: SYSCALL(clone) 1398: b8 16 00 00 00 mov $0x16,%eax 139d: cd 40 int $0x40 139f: c3 ret 000013a0 <texit>: SYSCALL(texit) 13a0: b8 17 00 00 00 mov $0x17,%eax 13a5: cd 40 int $0x40 13a7: c3 ret 000013a8 <tsleep>: SYSCALL(tsleep) 13a8: b8 18 00 00 00 mov $0x18,%eax 13ad: cd 40 int $0x40 13af: c3 ret 000013b0 <twakeup>: SYSCALL(twakeup) 13b0: b8 19 00 00 00 mov $0x19,%eax 13b5: cd 40 int $0x40 13b7: c3 ret 000013b8 <thread_yield>: SYSCALL(thread_yield) 13b8: b8 1a 00 00 00 mov $0x1a,%eax 13bd: cd 40 int $0x40 13bf: c3 ret 000013c0 <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 13c0: 55 push %ebp 13c1: 89 e5 mov %esp,%ebp 13c3: 83 ec 18 sub $0x18,%esp 13c6: 8b 45 0c mov 0xc(%ebp),%eax 13c9: 88 45 f4 mov %al,-0xc(%ebp) write(fd, &c, 1); 13cc: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 13d3: 00 13d4: 8d 45 f4 lea -0xc(%ebp),%eax 13d7: 89 44 24 04 mov %eax,0x4(%esp) 13db: 8b 45 08 mov 0x8(%ebp),%eax 13de: 89 04 24 mov %eax,(%esp) 13e1: e8 32 ff ff ff call 1318 <write> } 13e6: c9 leave 13e7: c3 ret 000013e8 <printint>: static void printint(int fd, int xx, int base, int sgn) { 13e8: 55 push %ebp 13e9: 89 e5 mov %esp,%ebp 13eb: 56 push %esi 13ec: 53 push %ebx 13ed: 83 ec 30 sub $0x30,%esp static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 13f0: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) if(sgn && xx < 0){ 13f7: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 13fb: 74 17 je 1414 <printint+0x2c> 13fd: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 1401: 79 11 jns 1414 <printint+0x2c> neg = 1; 1403: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) x = -xx; 140a: 8b 45 0c mov 0xc(%ebp),%eax 140d: f7 d8 neg %eax 140f: 89 45 ec mov %eax,-0x14(%ebp) 1412: eb 06 jmp 141a <printint+0x32> } else { x = xx; 1414: 8b 45 0c mov 0xc(%ebp),%eax 1417: 89 45 ec mov %eax,-0x14(%ebp) } i = 0; 141a: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; 1421: 8b 4d f4 mov -0xc(%ebp),%ecx 1424: 8d 41 01 lea 0x1(%ecx),%eax 1427: 89 45 f4 mov %eax,-0xc(%ebp) 142a: 8b 5d 10 mov 0x10(%ebp),%ebx 142d: 8b 45 ec mov -0x14(%ebp),%eax 1430: ba 00 00 00 00 mov $0x0,%edx 1435: f7 f3 div %ebx 1437: 89 d0 mov %edx,%eax 1439: 0f b6 80 cc 1e 00 00 movzbl 0x1ecc(%eax),%eax 1440: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1) }while((x /= base) != 0); 1444: 8b 75 10 mov 0x10(%ebp),%esi 1447: 8b 45 ec mov -0x14(%ebp),%eax 144a: ba 00 00 00 00 mov $0x0,%edx 144f: f7 f6 div %esi 1451: 89 45 ec mov %eax,-0x14(%ebp) 1454: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 1458: 75 c7 jne 1421 <printint+0x39> if(neg) 145a: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 145e: 74 10 je 1470 <printint+0x88> buf[i++] = '-'; 1460: 8b 45 f4 mov -0xc(%ebp),%eax 1463: 8d 50 01 lea 0x1(%eax),%edx 1466: 89 55 f4 mov %edx,-0xc(%ebp) 1469: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1) while(--i >= 0) 146e: eb 1f jmp 148f <printint+0xa7> 1470: eb 1d jmp 148f <printint+0xa7> putc(fd, buf[i]); 1472: 8d 55 dc lea -0x24(%ebp),%edx 1475: 8b 45 f4 mov -0xc(%ebp),%eax 1478: 01 d0 add %edx,%eax 147a: 0f b6 00 movzbl (%eax),%eax 147d: 0f be c0 movsbl %al,%eax 1480: 89 44 24 04 mov %eax,0x4(%esp) 1484: 8b 45 08 mov 0x8(%ebp),%eax 1487: 89 04 24 mov %eax,(%esp) 148a: e8 31 ff ff ff call 13c0 <putc> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 148f: 83 6d f4 01 subl $0x1,-0xc(%ebp) 1493: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 1497: 79 d9 jns 1472 <printint+0x8a> putc(fd, buf[i]); } 1499: 83 c4 30 add $0x30,%esp 149c: 5b pop %ebx 149d: 5e pop %esi 149e: 5d pop %ebp 149f: c3 ret 000014a0 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 14a0: 55 push %ebp 14a1: 89 e5 mov %esp,%ebp 14a3: 83 ec 38 sub $0x38,%esp char *s; int c, i, state; uint *ap; state = 0; 14a6: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) ap = (uint*)(void*)&fmt + 1; 14ad: 8d 45 0c lea 0xc(%ebp),%eax 14b0: 83 c0 04 add $0x4,%eax 14b3: 89 45 e8 mov %eax,-0x18(%ebp) for(i = 0; fmt[i]; i++){ 14b6: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 14bd: e9 7c 01 00 00 jmp 163e <printf+0x19e> c = fmt[i] & 0xff; 14c2: 8b 55 0c mov 0xc(%ebp),%edx 14c5: 8b 45 f0 mov -0x10(%ebp),%eax 14c8: 01 d0 add %edx,%eax 14ca: 0f b6 00 movzbl (%eax),%eax 14cd: 0f be c0 movsbl %al,%eax 14d0: 25 ff 00 00 00 and $0xff,%eax 14d5: 89 45 e4 mov %eax,-0x1c(%ebp) if(state == 0){ 14d8: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 14dc: 75 2c jne 150a <printf+0x6a> if(c == '%'){ 14de: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 14e2: 75 0c jne 14f0 <printf+0x50> state = '%'; 14e4: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp) 14eb: e9 4a 01 00 00 jmp 163a <printf+0x19a> } else { putc(fd, c); 14f0: 8b 45 e4 mov -0x1c(%ebp),%eax 14f3: 0f be c0 movsbl %al,%eax 14f6: 89 44 24 04 mov %eax,0x4(%esp) 14fa: 8b 45 08 mov 0x8(%ebp),%eax 14fd: 89 04 24 mov %eax,(%esp) 1500: e8 bb fe ff ff call 13c0 <putc> 1505: e9 30 01 00 00 jmp 163a <printf+0x19a> } } else if(state == '%'){ 150a: 83 7d ec 25 cmpl $0x25,-0x14(%ebp) 150e: 0f 85 26 01 00 00 jne 163a <printf+0x19a> if(c == 'd'){ 1514: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp) 1518: 75 2d jne 1547 <printf+0xa7> printint(fd, *ap, 10, 1); 151a: 8b 45 e8 mov -0x18(%ebp),%eax 151d: 8b 00 mov (%eax),%eax 151f: c7 44 24 0c 01 00 00 movl $0x1,0xc(%esp) 1526: 00 1527: c7 44 24 08 0a 00 00 movl $0xa,0x8(%esp) 152e: 00 152f: 89 44 24 04 mov %eax,0x4(%esp) 1533: 8b 45 08 mov 0x8(%ebp),%eax 1536: 89 04 24 mov %eax,(%esp) 1539: e8 aa fe ff ff call 13e8 <printint> ap++; 153e: 83 45 e8 04 addl $0x4,-0x18(%ebp) 1542: e9 ec 00 00 00 jmp 1633 <printf+0x193> } else if(c == 'x' || c == 'p'){ 1547: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp) 154b: 74 06 je 1553 <printf+0xb3> 154d: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp) 1551: 75 2d jne 1580 <printf+0xe0> printint(fd, *ap, 16, 0); 1553: 8b 45 e8 mov -0x18(%ebp),%eax 1556: 8b 00 mov (%eax),%eax 1558: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp) 155f: 00 1560: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp) 1567: 00 1568: 89 44 24 04 mov %eax,0x4(%esp) 156c: 8b 45 08 mov 0x8(%ebp),%eax 156f: 89 04 24 mov %eax,(%esp) 1572: e8 71 fe ff ff call 13e8 <printint> ap++; 1577: 83 45 e8 04 addl $0x4,-0x18(%ebp) 157b: e9 b3 00 00 00 jmp 1633 <printf+0x193> } else if(c == 's'){ 1580: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp) 1584: 75 45 jne 15cb <printf+0x12b> s = (char*)*ap; 1586: 8b 45 e8 mov -0x18(%ebp),%eax 1589: 8b 00 mov (%eax),%eax 158b: 89 45 f4 mov %eax,-0xc(%ebp) ap++; 158e: 83 45 e8 04 addl $0x4,-0x18(%ebp) if(s == 0) 1592: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 1596: 75 09 jne 15a1 <printf+0x101> s = "(null)"; 1598: c7 45 f4 14 1b 00 00 movl $0x1b14,-0xc(%ebp) while(*s != 0){ 159f: eb 1e jmp 15bf <printf+0x11f> 15a1: eb 1c jmp 15bf <printf+0x11f> putc(fd, *s); 15a3: 8b 45 f4 mov -0xc(%ebp),%eax 15a6: 0f b6 00 movzbl (%eax),%eax 15a9: 0f be c0 movsbl %al,%eax 15ac: 89 44 24 04 mov %eax,0x4(%esp) 15b0: 8b 45 08 mov 0x8(%ebp),%eax 15b3: 89 04 24 mov %eax,(%esp) 15b6: e8 05 fe ff ff call 13c0 <putc> s++; 15bb: 83 45 f4 01 addl $0x1,-0xc(%ebp) } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 15bf: 8b 45 f4 mov -0xc(%ebp),%eax 15c2: 0f b6 00 movzbl (%eax),%eax 15c5: 84 c0 test %al,%al 15c7: 75 da jne 15a3 <printf+0x103> 15c9: eb 68 jmp 1633 <printf+0x193> putc(fd, *s); s++; } } else if(c == 'c'){ 15cb: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp) 15cf: 75 1d jne 15ee <printf+0x14e> putc(fd, *ap); 15d1: 8b 45 e8 mov -0x18(%ebp),%eax 15d4: 8b 00 mov (%eax),%eax 15d6: 0f be c0 movsbl %al,%eax 15d9: 89 44 24 04 mov %eax,0x4(%esp) 15dd: 8b 45 08 mov 0x8(%ebp),%eax 15e0: 89 04 24 mov %eax,(%esp) 15e3: e8 d8 fd ff ff call 13c0 <putc> ap++; 15e8: 83 45 e8 04 addl $0x4,-0x18(%ebp) 15ec: eb 45 jmp 1633 <printf+0x193> } else if(c == '%'){ 15ee: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 15f2: 75 17 jne 160b <printf+0x16b> putc(fd, c); 15f4: 8b 45 e4 mov -0x1c(%ebp),%eax 15f7: 0f be c0 movsbl %al,%eax 15fa: 89 44 24 04 mov %eax,0x4(%esp) 15fe: 8b 45 08 mov 0x8(%ebp),%eax 1601: 89 04 24 mov %eax,(%esp) 1604: e8 b7 fd ff ff call 13c0 <putc> 1609: eb 28 jmp 1633 <printf+0x193> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 160b: c7 44 24 04 25 00 00 movl $0x25,0x4(%esp) 1612: 00 1613: 8b 45 08 mov 0x8(%ebp),%eax 1616: 89 04 24 mov %eax,(%esp) 1619: e8 a2 fd ff ff call 13c0 <putc> putc(fd, c); 161e: 8b 45 e4 mov -0x1c(%ebp),%eax 1621: 0f be c0 movsbl %al,%eax 1624: 89 44 24 04 mov %eax,0x4(%esp) 1628: 8b 45 08 mov 0x8(%ebp),%eax 162b: 89 04 24 mov %eax,(%esp) 162e: e8 8d fd ff ff call 13c0 <putc> } state = 0; 1633: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 163a: 83 45 f0 01 addl $0x1,-0x10(%ebp) 163e: 8b 55 0c mov 0xc(%ebp),%edx 1641: 8b 45 f0 mov -0x10(%ebp),%eax 1644: 01 d0 add %edx,%eax 1646: 0f b6 00 movzbl (%eax),%eax 1649: 84 c0 test %al,%al 164b: 0f 85 71 fe ff ff jne 14c2 <printf+0x22> putc(fd, c); } state = 0; } } } 1651: c9 leave 1652: c3 ret 1653: 90 nop 00001654 <free>: static Header base; static Header *freep; void free(void *ap) { 1654: 55 push %ebp 1655: 89 e5 mov %esp,%ebp 1657: 83 ec 10 sub $0x10,%esp Header *bp, *p; bp = (Header*)ap - 1; 165a: 8b 45 08 mov 0x8(%ebp),%eax 165d: 83 e8 08 sub $0x8,%eax 1660: 89 45 f8 mov %eax,-0x8(%ebp) for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 1663: a1 ec 1e 00 00 mov 0x1eec,%eax 1668: 89 45 fc mov %eax,-0x4(%ebp) 166b: eb 24 jmp 1691 <free+0x3d> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 166d: 8b 45 fc mov -0x4(%ebp),%eax 1670: 8b 00 mov (%eax),%eax 1672: 3b 45 fc cmp -0x4(%ebp),%eax 1675: 77 12 ja 1689 <free+0x35> 1677: 8b 45 f8 mov -0x8(%ebp),%eax 167a: 3b 45 fc cmp -0x4(%ebp),%eax 167d: 77 24 ja 16a3 <free+0x4f> 167f: 8b 45 fc mov -0x4(%ebp),%eax 1682: 8b 00 mov (%eax),%eax 1684: 3b 45 f8 cmp -0x8(%ebp),%eax 1687: 77 1a ja 16a3 <free+0x4f> free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 1689: 8b 45 fc mov -0x4(%ebp),%eax 168c: 8b 00 mov (%eax),%eax 168e: 89 45 fc mov %eax,-0x4(%ebp) 1691: 8b 45 f8 mov -0x8(%ebp),%eax 1694: 3b 45 fc cmp -0x4(%ebp),%eax 1697: 76 d4 jbe 166d <free+0x19> 1699: 8b 45 fc mov -0x4(%ebp),%eax 169c: 8b 00 mov (%eax),%eax 169e: 3b 45 f8 cmp -0x8(%ebp),%eax 16a1: 76 ca jbe 166d <free+0x19> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ 16a3: 8b 45 f8 mov -0x8(%ebp),%eax 16a6: 8b 40 04 mov 0x4(%eax),%eax 16a9: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 16b0: 8b 45 f8 mov -0x8(%ebp),%eax 16b3: 01 c2 add %eax,%edx 16b5: 8b 45 fc mov -0x4(%ebp),%eax 16b8: 8b 00 mov (%eax),%eax 16ba: 39 c2 cmp %eax,%edx 16bc: 75 24 jne 16e2 <free+0x8e> bp->s.size += p->s.ptr->s.size; 16be: 8b 45 f8 mov -0x8(%ebp),%eax 16c1: 8b 50 04 mov 0x4(%eax),%edx 16c4: 8b 45 fc mov -0x4(%ebp),%eax 16c7: 8b 00 mov (%eax),%eax 16c9: 8b 40 04 mov 0x4(%eax),%eax 16cc: 01 c2 add %eax,%edx 16ce: 8b 45 f8 mov -0x8(%ebp),%eax 16d1: 89 50 04 mov %edx,0x4(%eax) bp->s.ptr = p->s.ptr->s.ptr; 16d4: 8b 45 fc mov -0x4(%ebp),%eax 16d7: 8b 00 mov (%eax),%eax 16d9: 8b 10 mov (%eax),%edx 16db: 8b 45 f8 mov -0x8(%ebp),%eax 16de: 89 10 mov %edx,(%eax) 16e0: eb 0a jmp 16ec <free+0x98> } else bp->s.ptr = p->s.ptr; 16e2: 8b 45 fc mov -0x4(%ebp),%eax 16e5: 8b 10 mov (%eax),%edx 16e7: 8b 45 f8 mov -0x8(%ebp),%eax 16ea: 89 10 mov %edx,(%eax) if(p + p->s.size == bp){ 16ec: 8b 45 fc mov -0x4(%ebp),%eax 16ef: 8b 40 04 mov 0x4(%eax),%eax 16f2: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 16f9: 8b 45 fc mov -0x4(%ebp),%eax 16fc: 01 d0 add %edx,%eax 16fe: 3b 45 f8 cmp -0x8(%ebp),%eax 1701: 75 20 jne 1723 <free+0xcf> p->s.size += bp->s.size; 1703: 8b 45 fc mov -0x4(%ebp),%eax 1706: 8b 50 04 mov 0x4(%eax),%edx 1709: 8b 45 f8 mov -0x8(%ebp),%eax 170c: 8b 40 04 mov 0x4(%eax),%eax 170f: 01 c2 add %eax,%edx 1711: 8b 45 fc mov -0x4(%ebp),%eax 1714: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 1717: 8b 45 f8 mov -0x8(%ebp),%eax 171a: 8b 10 mov (%eax),%edx 171c: 8b 45 fc mov -0x4(%ebp),%eax 171f: 89 10 mov %edx,(%eax) 1721: eb 08 jmp 172b <free+0xd7> } else p->s.ptr = bp; 1723: 8b 45 fc mov -0x4(%ebp),%eax 1726: 8b 55 f8 mov -0x8(%ebp),%edx 1729: 89 10 mov %edx,(%eax) freep = p; 172b: 8b 45 fc mov -0x4(%ebp),%eax 172e: a3 ec 1e 00 00 mov %eax,0x1eec } 1733: c9 leave 1734: c3 ret 00001735 <morecore>: static Header* morecore(uint nu) { 1735: 55 push %ebp 1736: 89 e5 mov %esp,%ebp 1738: 83 ec 28 sub $0x28,%esp char *p; Header *hp; if(nu < 4096) 173b: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp) 1742: 77 07 ja 174b <morecore+0x16> nu = 4096; 1744: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp) p = sbrk(nu * sizeof(Header)); 174b: 8b 45 08 mov 0x8(%ebp),%eax 174e: c1 e0 03 shl $0x3,%eax 1751: 89 04 24 mov %eax,(%esp) 1754: e8 27 fc ff ff call 1380 <sbrk> 1759: 89 45 f4 mov %eax,-0xc(%ebp) if(p == (char*)-1) 175c: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp) 1760: 75 07 jne 1769 <morecore+0x34> return 0; 1762: b8 00 00 00 00 mov $0x0,%eax 1767: eb 22 jmp 178b <morecore+0x56> hp = (Header*)p; 1769: 8b 45 f4 mov -0xc(%ebp),%eax 176c: 89 45 f0 mov %eax,-0x10(%ebp) hp->s.size = nu; 176f: 8b 45 f0 mov -0x10(%ebp),%eax 1772: 8b 55 08 mov 0x8(%ebp),%edx 1775: 89 50 04 mov %edx,0x4(%eax) free((void*)(hp + 1)); 1778: 8b 45 f0 mov -0x10(%ebp),%eax 177b: 83 c0 08 add $0x8,%eax 177e: 89 04 24 mov %eax,(%esp) 1781: e8 ce fe ff ff call 1654 <free> return freep; 1786: a1 ec 1e 00 00 mov 0x1eec,%eax } 178b: c9 leave 178c: c3 ret 0000178d <malloc>: void* malloc(uint nbytes) { 178d: 55 push %ebp 178e: 89 e5 mov %esp,%ebp 1790: 83 ec 28 sub $0x28,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 1793: 8b 45 08 mov 0x8(%ebp),%eax 1796: 83 c0 07 add $0x7,%eax 1799: c1 e8 03 shr $0x3,%eax 179c: 83 c0 01 add $0x1,%eax 179f: 89 45 ec mov %eax,-0x14(%ebp) if((prevp = freep) == 0){ 17a2: a1 ec 1e 00 00 mov 0x1eec,%eax 17a7: 89 45 f0 mov %eax,-0x10(%ebp) 17aa: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 17ae: 75 23 jne 17d3 <malloc+0x46> base.s.ptr = freep = prevp = &base; 17b0: c7 45 f0 e4 1e 00 00 movl $0x1ee4,-0x10(%ebp) 17b7: 8b 45 f0 mov -0x10(%ebp),%eax 17ba: a3 ec 1e 00 00 mov %eax,0x1eec 17bf: a1 ec 1e 00 00 mov 0x1eec,%eax 17c4: a3 e4 1e 00 00 mov %eax,0x1ee4 base.s.size = 0; 17c9: c7 05 e8 1e 00 00 00 movl $0x0,0x1ee8 17d0: 00 00 00 } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 17d3: 8b 45 f0 mov -0x10(%ebp),%eax 17d6: 8b 00 mov (%eax),%eax 17d8: 89 45 f4 mov %eax,-0xc(%ebp) if(p->s.size >= nunits){ 17db: 8b 45 f4 mov -0xc(%ebp),%eax 17de: 8b 40 04 mov 0x4(%eax),%eax 17e1: 3b 45 ec cmp -0x14(%ebp),%eax 17e4: 72 4d jb 1833 <malloc+0xa6> if(p->s.size == nunits) 17e6: 8b 45 f4 mov -0xc(%ebp),%eax 17e9: 8b 40 04 mov 0x4(%eax),%eax 17ec: 3b 45 ec cmp -0x14(%ebp),%eax 17ef: 75 0c jne 17fd <malloc+0x70> prevp->s.ptr = p->s.ptr; 17f1: 8b 45 f4 mov -0xc(%ebp),%eax 17f4: 8b 10 mov (%eax),%edx 17f6: 8b 45 f0 mov -0x10(%ebp),%eax 17f9: 89 10 mov %edx,(%eax) 17fb: eb 26 jmp 1823 <malloc+0x96> else { p->s.size -= nunits; 17fd: 8b 45 f4 mov -0xc(%ebp),%eax 1800: 8b 40 04 mov 0x4(%eax),%eax 1803: 2b 45 ec sub -0x14(%ebp),%eax 1806: 89 c2 mov %eax,%edx 1808: 8b 45 f4 mov -0xc(%ebp),%eax 180b: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; 180e: 8b 45 f4 mov -0xc(%ebp),%eax 1811: 8b 40 04 mov 0x4(%eax),%eax 1814: c1 e0 03 shl $0x3,%eax 1817: 01 45 f4 add %eax,-0xc(%ebp) p->s.size = nunits; 181a: 8b 45 f4 mov -0xc(%ebp),%eax 181d: 8b 55 ec mov -0x14(%ebp),%edx 1820: 89 50 04 mov %edx,0x4(%eax) } freep = prevp; 1823: 8b 45 f0 mov -0x10(%ebp),%eax 1826: a3 ec 1e 00 00 mov %eax,0x1eec return (void*)(p + 1); 182b: 8b 45 f4 mov -0xc(%ebp),%eax 182e: 83 c0 08 add $0x8,%eax 1831: eb 38 jmp 186b <malloc+0xde> } if(p == freep) 1833: a1 ec 1e 00 00 mov 0x1eec,%eax 1838: 39 45 f4 cmp %eax,-0xc(%ebp) 183b: 75 1b jne 1858 <malloc+0xcb> if((p = morecore(nunits)) == 0) 183d: 8b 45 ec mov -0x14(%ebp),%eax 1840: 89 04 24 mov %eax,(%esp) 1843: e8 ed fe ff ff call 1735 <morecore> 1848: 89 45 f4 mov %eax,-0xc(%ebp) 184b: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 184f: 75 07 jne 1858 <malloc+0xcb> return 0; 1851: b8 00 00 00 00 mov $0x0,%eax 1856: eb 13 jmp 186b <malloc+0xde> nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 1858: 8b 45 f4 mov -0xc(%ebp),%eax 185b: 89 45 f0 mov %eax,-0x10(%ebp) 185e: 8b 45 f4 mov -0xc(%ebp),%eax 1861: 8b 00 mov (%eax),%eax 1863: 89 45 f4 mov %eax,-0xc(%ebp) return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } 1866: e9 70 ff ff ff jmp 17db <malloc+0x4e> } 186b: c9 leave 186c: c3 ret 186d: 66 90 xchg %ax,%ax 186f: 90 nop 00001870 <xchg>: asm volatile("sti"); } static inline uint xchg(volatile uint *addr, uint newval) { 1870: 55 push %ebp 1871: 89 e5 mov %esp,%ebp 1873: 83 ec 10 sub $0x10,%esp uint result; // The + in "+m" denotes a read-modify-write operand. asm volatile("lock; xchgl %0, %1" : 1876: 8b 55 08 mov 0x8(%ebp),%edx 1879: 8b 45 0c mov 0xc(%ebp),%eax 187c: 8b 4d 08 mov 0x8(%ebp),%ecx 187f: f0 87 02 lock xchg %eax,(%edx) 1882: 89 45 fc mov %eax,-0x4(%ebp) "+m" (*addr), "=a" (result) : "1" (newval) : "cc"); return result; 1885: 8b 45 fc mov -0x4(%ebp),%eax } 1888: c9 leave 1889: c3 ret 0000188a <lock_init>: #include "x86.h" #include "proc.h" unsigned long rands = 1; void lock_init(lock_t *lock){ 188a: 55 push %ebp 188b: 89 e5 mov %esp,%ebp lock->locked = 0; 188d: 8b 45 08 mov 0x8(%ebp),%eax 1890: c7 00 00 00 00 00 movl $0x0,(%eax) } 1896: 5d pop %ebp 1897: c3 ret 00001898 <lock_acquire>: void lock_acquire(lock_t *lock){ 1898: 55 push %ebp 1899: 89 e5 mov %esp,%ebp 189b: 83 ec 08 sub $0x8,%esp while(xchg(&lock->locked,1) != 0); 189e: 90 nop 189f: 8b 45 08 mov 0x8(%ebp),%eax 18a2: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp) 18a9: 00 18aa: 89 04 24 mov %eax,(%esp) 18ad: e8 be ff ff ff call 1870 <xchg> 18b2: 85 c0 test %eax,%eax 18b4: 75 e9 jne 189f <lock_acquire+0x7> } 18b6: c9 leave 18b7: c3 ret 000018b8 <lock_release>: void lock_release(lock_t *lock){ 18b8: 55 push %ebp 18b9: 89 e5 mov %esp,%ebp 18bb: 83 ec 08 sub $0x8,%esp xchg(&lock->locked,0); 18be: 8b 45 08 mov 0x8(%ebp),%eax 18c1: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 18c8: 00 18c9: 89 04 24 mov %eax,(%esp) 18cc: e8 9f ff ff ff call 1870 <xchg> } 18d1: c9 leave 18d2: c3 ret 000018d3 <thread_create>: void *thread_create(void(*start_routine)(void*), void *arg){ 18d3: 55 push %ebp 18d4: 89 e5 mov %esp,%ebp 18d6: 83 ec 28 sub $0x28,%esp int tid; void * stack = malloc(2 * 4096); 18d9: c7 04 24 00 20 00 00 movl $0x2000,(%esp) 18e0: e8 a8 fe ff ff call 178d <malloc> 18e5: 89 45 f4 mov %eax,-0xc(%ebp) void *garbage_stack = stack; 18e8: 8b 45 f4 mov -0xc(%ebp),%eax 18eb: 89 45 f0 mov %eax,-0x10(%ebp) // printf(1,"start routine addr : %d\n",(uint)start_routine); if((uint)stack % 4096){ 18ee: 8b 45 f4 mov -0xc(%ebp),%eax 18f1: 25 ff 0f 00 00 and $0xfff,%eax 18f6: 85 c0 test %eax,%eax 18f8: 74 14 je 190e <thread_create+0x3b> stack = stack + (4096 - (uint)stack % 4096); 18fa: 8b 45 f4 mov -0xc(%ebp),%eax 18fd: 25 ff 0f 00 00 and $0xfff,%eax 1902: 89 c2 mov %eax,%edx 1904: b8 00 10 00 00 mov $0x1000,%eax 1909: 29 d0 sub %edx,%eax 190b: 01 45 f4 add %eax,-0xc(%ebp) } if (stack == 0){ 190e: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 1912: 75 1b jne 192f <thread_create+0x5c> printf(1,"malloc fail \n"); 1914: c7 44 24 04 1b 1b 00 movl $0x1b1b,0x4(%esp) 191b: 00 191c: c7 04 24 01 00 00 00 movl $0x1,(%esp) 1923: e8 78 fb ff ff call 14a0 <printf> return 0; 1928: b8 00 00 00 00 mov $0x0,%eax 192d: eb 6f jmp 199e <thread_create+0xcb> } tid = clone((uint)stack,PSIZE,(uint)start_routine,(int)arg); 192f: 8b 4d 0c mov 0xc(%ebp),%ecx 1932: 8b 55 08 mov 0x8(%ebp),%edx 1935: 8b 45 f4 mov -0xc(%ebp),%eax 1938: 89 4c 24 0c mov %ecx,0xc(%esp) 193c: 89 54 24 08 mov %edx,0x8(%esp) 1940: c7 44 24 04 00 10 00 movl $0x1000,0x4(%esp) 1947: 00 1948: 89 04 24 mov %eax,(%esp) 194b: e8 48 fa ff ff call 1398 <clone> 1950: 89 45 ec mov %eax,-0x14(%ebp) if(tid < 0){ 1953: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 1957: 79 1b jns 1974 <thread_create+0xa1> printf(1,"clone fails\n"); 1959: c7 44 24 04 29 1b 00 movl $0x1b29,0x4(%esp) 1960: 00 1961: c7 04 24 01 00 00 00 movl $0x1,(%esp) 1968: e8 33 fb ff ff call 14a0 <printf> return 0; 196d: b8 00 00 00 00 mov $0x0,%eax 1972: eb 2a jmp 199e <thread_create+0xcb> } if(tid > 0){ 1974: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 1978: 7e 05 jle 197f <thread_create+0xac> //store threads on thread table return garbage_stack; 197a: 8b 45 f0 mov -0x10(%ebp),%eax 197d: eb 1f jmp 199e <thread_create+0xcb> } if(tid == 0){ 197f: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 1983: 75 14 jne 1999 <thread_create+0xc6> printf(1,"tid = 0 return \n"); 1985: c7 44 24 04 36 1b 00 movl $0x1b36,0x4(%esp) 198c: 00 198d: c7 04 24 01 00 00 00 movl $0x1,(%esp) 1994: e8 07 fb ff ff call 14a0 <printf> } // wait(); // free(garbage_stack); return 0; 1999: b8 00 00 00 00 mov $0x0,%eax } 199e: c9 leave 199f: c3 ret 000019a0 <random>: // generate 0 -> max random number exclude max. int random(int max){ 19a0: 55 push %ebp 19a1: 89 e5 mov %esp,%ebp rands = rands * 1664525 + 1013904233; 19a3: a1 e0 1e 00 00 mov 0x1ee0,%eax 19a8: 69 c0 0d 66 19 00 imul $0x19660d,%eax,%eax 19ae: 05 69 f3 6e 3c add $0x3c6ef369,%eax 19b3: a3 e0 1e 00 00 mov %eax,0x1ee0 return (int)(rands % max); 19b8: a1 e0 1e 00 00 mov 0x1ee0,%eax 19bd: 8b 4d 08 mov 0x8(%ebp),%ecx 19c0: ba 00 00 00 00 mov $0x0,%edx 19c5: f7 f1 div %ecx 19c7: 89 d0 mov %edx,%eax } 19c9: 5d pop %ebp 19ca: c3 ret 19cb: 90 nop 000019cc <init_q>: #include "queue.h" #include "types.h" #include "user.h" void init_q(struct queue *q){ 19cc: 55 push %ebp 19cd: 89 e5 mov %esp,%ebp q->size = 0; 19cf: 8b 45 08 mov 0x8(%ebp),%eax 19d2: c7 00 00 00 00 00 movl $0x0,(%eax) q->head = 0; 19d8: 8b 45 08 mov 0x8(%ebp),%eax 19db: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) q->tail = 0; 19e2: 8b 45 08 mov 0x8(%ebp),%eax 19e5: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) } 19ec: 5d pop %ebp 19ed: c3 ret 000019ee <add_q>: void add_q(struct queue *q, int v){ 19ee: 55 push %ebp 19ef: 89 e5 mov %esp,%ebp 19f1: 83 ec 28 sub $0x28,%esp struct node * n = malloc(sizeof(struct node)); 19f4: c7 04 24 08 00 00 00 movl $0x8,(%esp) 19fb: e8 8d fd ff ff call 178d <malloc> 1a00: 89 45 f4 mov %eax,-0xc(%ebp) n->next = 0; 1a03: 8b 45 f4 mov -0xc(%ebp),%eax 1a06: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) n->value = v; 1a0d: 8b 45 f4 mov -0xc(%ebp),%eax 1a10: 8b 55 0c mov 0xc(%ebp),%edx 1a13: 89 10 mov %edx,(%eax) if(q->head == 0){ 1a15: 8b 45 08 mov 0x8(%ebp),%eax 1a18: 8b 40 04 mov 0x4(%eax),%eax 1a1b: 85 c0 test %eax,%eax 1a1d: 75 0b jne 1a2a <add_q+0x3c> q->head = n; 1a1f: 8b 45 08 mov 0x8(%ebp),%eax 1a22: 8b 55 f4 mov -0xc(%ebp),%edx 1a25: 89 50 04 mov %edx,0x4(%eax) 1a28: eb 0c jmp 1a36 <add_q+0x48> }else{ q->tail->next = n; 1a2a: 8b 45 08 mov 0x8(%ebp),%eax 1a2d: 8b 40 08 mov 0x8(%eax),%eax 1a30: 8b 55 f4 mov -0xc(%ebp),%edx 1a33: 89 50 04 mov %edx,0x4(%eax) } q->tail = n; 1a36: 8b 45 08 mov 0x8(%ebp),%eax 1a39: 8b 55 f4 mov -0xc(%ebp),%edx 1a3c: 89 50 08 mov %edx,0x8(%eax) q->size++; 1a3f: 8b 45 08 mov 0x8(%ebp),%eax 1a42: 8b 00 mov (%eax),%eax 1a44: 8d 50 01 lea 0x1(%eax),%edx 1a47: 8b 45 08 mov 0x8(%ebp),%eax 1a4a: 89 10 mov %edx,(%eax) } 1a4c: c9 leave 1a4d: c3 ret 00001a4e <empty_q>: int empty_q(struct queue *q){ 1a4e: 55 push %ebp 1a4f: 89 e5 mov %esp,%ebp if(q->size == 0) 1a51: 8b 45 08 mov 0x8(%ebp),%eax 1a54: 8b 00 mov (%eax),%eax 1a56: 85 c0 test %eax,%eax 1a58: 75 07 jne 1a61 <empty_q+0x13> return 1; 1a5a: b8 01 00 00 00 mov $0x1,%eax 1a5f: eb 05 jmp 1a66 <empty_q+0x18> else return 0; 1a61: b8 00 00 00 00 mov $0x0,%eax } 1a66: 5d pop %ebp 1a67: c3 ret 00001a68 <pop_q>: int pop_q(struct queue *q){ 1a68: 55 push %ebp 1a69: 89 e5 mov %esp,%ebp 1a6b: 83 ec 28 sub $0x28,%esp int val; struct node *destroy; if(!empty_q(q)){ 1a6e: 8b 45 08 mov 0x8(%ebp),%eax 1a71: 89 04 24 mov %eax,(%esp) 1a74: e8 d5 ff ff ff call 1a4e <empty_q> 1a79: 85 c0 test %eax,%eax 1a7b: 75 5d jne 1ada <pop_q+0x72> val = q->head->value; 1a7d: 8b 45 08 mov 0x8(%ebp),%eax 1a80: 8b 40 04 mov 0x4(%eax),%eax 1a83: 8b 00 mov (%eax),%eax 1a85: 89 45 f4 mov %eax,-0xc(%ebp) destroy = q->head; 1a88: 8b 45 08 mov 0x8(%ebp),%eax 1a8b: 8b 40 04 mov 0x4(%eax),%eax 1a8e: 89 45 f0 mov %eax,-0x10(%ebp) q->head = q->head->next; 1a91: 8b 45 08 mov 0x8(%ebp),%eax 1a94: 8b 40 04 mov 0x4(%eax),%eax 1a97: 8b 50 04 mov 0x4(%eax),%edx 1a9a: 8b 45 08 mov 0x8(%ebp),%eax 1a9d: 89 50 04 mov %edx,0x4(%eax) free(destroy); 1aa0: 8b 45 f0 mov -0x10(%ebp),%eax 1aa3: 89 04 24 mov %eax,(%esp) 1aa6: e8 a9 fb ff ff call 1654 <free> q->size--; 1aab: 8b 45 08 mov 0x8(%ebp),%eax 1aae: 8b 00 mov (%eax),%eax 1ab0: 8d 50 ff lea -0x1(%eax),%edx 1ab3: 8b 45 08 mov 0x8(%ebp),%eax 1ab6: 89 10 mov %edx,(%eax) if(q->size == 0){ 1ab8: 8b 45 08 mov 0x8(%ebp),%eax 1abb: 8b 00 mov (%eax),%eax 1abd: 85 c0 test %eax,%eax 1abf: 75 14 jne 1ad5 <pop_q+0x6d> q->head = 0; 1ac1: 8b 45 08 mov 0x8(%ebp),%eax 1ac4: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) q->tail = 0; 1acb: 8b 45 08 mov 0x8(%ebp),%eax 1ace: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) } return val; 1ad5: 8b 45 f4 mov -0xc(%ebp),%eax 1ad8: eb 05 jmp 1adf <pop_q+0x77> } return -1; 1ada: b8 ff ff ff ff mov $0xffffffff,%eax } 1adf: c9 leave 1ae0: c3 ret
36.74302
64
0.423541
7783fbe939b26039fd2d660189a4313508c5bb00
209
asm
Assembly
libsrc/_DEVELOPMENT/adt/p_forward_list_alt/c/sccz80/p_forward_list_alt_init.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/p_forward_list_alt/c/sccz80/p_forward_list_alt_init.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/p_forward_list_alt/c/sccz80/p_forward_list_alt_init.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; void p_forward_list_alt_init(void *p) SECTION code_adt_p_forward_list_alt PUBLIC p_forward_list_alt_init p_forward_list_alt_init: INCLUDE "adt/p_forward_list_alt/z80/asm_p_forward_list_alt_init.asm"
19
71
0.856459
cd8e9d24b998a40797a5bc58d7ef85c973092550
196
asm
Assembly
subprojects/kernel/src/arch/i386/common.asm
SlumberousForests/octOs
c1454ded1c42d83811a7c6bfcbbdfcb88bcae527
[ "MIT" ]
9
2019-10-25T10:11:43.000Z
2021-11-09T00:16:20.000Z
subprojects/kernel/src/arch/i386/common.asm
SlumberousForests/octOs
c1454ded1c42d83811a7c6bfcbbdfcb88bcae527
[ "MIT" ]
7
2019-10-24T16:32:37.000Z
2021-07-19T13:33:56.000Z
subprojects/kernel/src/arch/i386/common.asm
SlumberousForests/octOs
c1454ded1c42d83811a7c6bfcbbdfcb88bcae527
[ "MIT" ]
2
2019-10-24T18:32:02.000Z
2022-02-19T23:22:35.000Z
SYSCALL_OFSET equ 0x80 SCREEN_COLOUR equ 0x17 SCREEN_MIN equ 0xb8000 SCREEN_MAX equ 0xb8fa0 SCREEN_SIZE equ SCREEN_MAX - SCREEN_MIN SCREEN_ROWS equ 25 SCREEN_COLS equ 80
24.5
43
0.744898
00b88106938326da3affbf08abf0e99789d46d1c
4,437
asm
Assembly
coverage/IN_CTS/0442-COVERAGE-nir-opt-comparison-pre-273/work/variant/1_spirv_asm/shader.frag.asm
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
null
null
null
coverage/IN_CTS/0442-COVERAGE-nir-opt-comparison-pre-273/work/variant/1_spirv_asm/shader.frag.asm
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
47
2021-03-11T07:42:51.000Z
2022-03-14T06:30:14.000Z
coverage/IN_CTS/0442-COVERAGE-nir-opt-comparison-pre-273/work/variant/1_spirv_asm/shader.frag.asm
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
4
2021-03-09T13:37:19.000Z
2022-02-25T07:32:11.000Z
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 82 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %9 %30 OpExecutionMode %4 OriginUpperLeft OpSource ESSL 320 OpName %4 "main" OpName %9 "gl_FragCoord" OpName %17 "buf1" OpMemberName %17 0 "_GLF_uniform_float_values" OpName %19 "" OpName %30 "_GLF_color" OpName %33 "buf0" OpMemberName %33 0 "_GLF_uniform_int_values" OpName %35 "" OpName %44 "v" OpDecorate %9 BuiltIn FragCoord OpDecorate %16 ArrayStride 16 OpMemberDecorate %17 0 Offset 0 OpDecorate %17 Block OpDecorate %19 DescriptorSet 0 OpDecorate %19 Binding 1 OpDecorate %30 Location 0 OpDecorate %32 ArrayStride 16 OpMemberDecorate %33 0 Offset 0 OpDecorate %33 Block OpDecorate %35 DescriptorSet 0 OpDecorate %35 Binding 0 %2 = OpTypeVoid %3 = OpTypeFunction %2 %6 = OpTypeFloat 32 %7 = OpTypeVector %6 4 %8 = OpTypePointer Input %7 %9 = OpVariable %8 Input %10 = OpTypeInt 32 0 %11 = OpConstant %10 1 %12 = OpTypePointer Input %6 %15 = OpConstant %10 3 %16 = OpTypeArray %6 %15 %17 = OpTypeStruct %16 %18 = OpTypePointer Uniform %17 %19 = OpVariable %18 Uniform %20 = OpTypeInt 32 1 %21 = OpConstant %20 0 %22 = OpTypePointer Uniform %6 %25 = OpTypeBool %29 = OpTypePointer Output %7 %30 = OpVariable %29 Output %31 = OpConstant %10 2 %32 = OpTypeArray %20 %31 %33 = OpTypeStruct %32 %34 = OpTypePointer Uniform %33 %35 = OpVariable %34 Uniform %36 = OpTypePointer Uniform %20 %42 = OpTypeVector %20 2 %43 = OpTypePointer Function %42 %45 = OpTypeVector %6 2 %48 = OpConstant %20 1 %55 = OpConstant %20 2 %62 = OpTypePointer Function %20 %72 = OpConstant %10 0 %4 = OpFunction %2 None %3 %5 = OpLabel %44 = OpVariable %43 Function %13 = OpAccessChain %12 %9 %11 %14 = OpLoad %6 %13 %23 = OpAccessChain %22 %19 %21 %21 %24 = OpLoad %6 %23 %26 = OpFOrdLessThan %25 %14 %24 OpSelectionMerge %28 None OpBranchConditional %26 %27 %41 %27 = OpLabel %37 = OpAccessChain %36 %35 %21 %21 %38 = OpLoad %20 %37 %39 = OpConvertSToF %6 %38 %40 = OpCompositeConstruct %7 %39 %39 %39 %39 OpStore %30 %40 OpBranch %28 %41 = OpLabel %46 = OpLoad %7 %9 %47 = OpVectorShuffle %45 %46 %46 0 1 %49 = OpAccessChain %22 %19 %21 %48 %50 = OpLoad %6 %49 %51 = OpAccessChain %22 %19 %21 %21 %52 = OpLoad %6 %51 %53 = OpCompositeConstruct %45 %50 %52 %54 = OpFSub %45 %47 %53 %56 = OpAccessChain %22 %19 %21 %55 %57 = OpLoad %6 %56 %58 = OpVectorTimesScalar %45 %54 %57 %59 = OpConvertFToS %42 %58 OpStore %44 %59 %60 = OpAccessChain %22 %19 %21 %48 %61 = OpLoad %6 %60 %63 = OpAccessChain %62 %44 %11 %64 = OpLoad %20 %63 %65 = OpAccessChain %36 %35 %21 %48 %66 = OpLoad %20 %65 %67 = OpISub %20 %64 %66 %68 = OpAccessChain %36 %35 %21 %48 %69 = OpLoad %20 %68 %70 = OpBitwiseAnd %20 %67 %69 %71 = OpConvertSToF %6 %70 %73 = OpAccessChain %62 %44 %72 %74 = OpLoad %20 %73 %75 = OpAccessChain %36 %35 %21 %48 %76 = OpLoad %20 %75 %77 = OpBitwiseAnd %20 %74 %76 %78 = OpConvertSToF %6 %77 %79 = OpAccessChain %22 %19 %21 %48 %80 = OpLoad %6 %79 %81 = OpCompositeConstruct %7 %61 %71 %78 %80 OpStore %30 %81 OpBranch %28 %28 = OpLabel OpReturn OpFunctionEnd
36.073171
61
0.496507
340940a1b7a5f45ae6dd9e057d30768ba287a3c0
332
asm
Assembly
programs/oeis/140/A140085.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/140/A140085.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/140/A140085.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A140085: Period 8: repeat [0,1,1,2,1,2,2,3]. ; 0,1,1,2,1,2,2,3,0,1,1,2,1,2,2,3,0,1,1,2,1,2,2,3,0,1,1,2,1,2,2,3,0,1,1,2,1,2,2,3,0,1,1,2,1,2,2,3,0,1,1,2,1,2,2,3,0,1,1,2,1,2,2,3,0,1,1,2,1,2,2,3,0,1,1,2,1,2,2,3,0,1,1,2,1,2,2,3,0,1,1,2,1,2,2,3,0,1,1 mod $0,8 seq $0,324467 ; Three times the binary weight of n: 3*A000120(n). div $0,3
47.428571
199
0.554217
231942b563ecccf9d63488734ecaafe51714b1a6
354
asm
Assembly
programs/oeis/135/A135984.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/135/A135984.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/135/A135984.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A135984: a(n) = 24(prime(n))+7. ; 55,79,127,175,271,319,415,463,559,703,751,895,991,1039,1135,1279,1423,1471,1615,1711,1759,1903,1999,2143,2335,2431,2479,2575,2623,2719,3055,3151,3295,3343,3583,3631,3775,3919,4015,4159,4303,4351,4591,4639,4735 cal $0,40 ; The prime numbers. mov $2,$0 add $2,$0 mov $0,$2 mul $0,6 mov $1,4 add $1,$0 mul $1,2 sub $1,1
27.230769
211
0.689266
df2f3731541a226f4a39b840d7cf9d7eac2b9018
808
asm
Assembly
hello_world.asm
thursilverio/yasm_assembly_linux
04999c2ebc82db15fe3873c821d1730018e7d49a
[ "BSD-2-Clause" ]
null
null
null
hello_world.asm
thursilverio/yasm_assembly_linux
04999c2ebc82db15fe3873c821d1730018e7d49a
[ "BSD-2-Clause" ]
null
null
null
hello_world.asm
thursilverio/yasm_assembly_linux
04999c2ebc82db15fe3873c821d1730018e7d49a
[ "BSD-2-Clause" ]
null
null
null
; Author: Arthur Eugenio Silverio ; Data: 10 / 31 / 2021 ; Compile with: yasm -f elf32 -o hello_world.o hello_world.asm ; Link with: ld -m elf_i386 hello_world.o -o hello_world global _start section .text _start: mov eax, 4 ; call write sys_call mov ebx, 1 ; first syscall argument : pass (stdout handle) mov ecx, message ; second syscall argument: string message mov edx, message_len ; third syscall argument : message lenght int 0x80 ; call kernel ; the following code is like return 0; mov eax, 1 ; system call number (sys_exit). mov ebx, 0 ; first syscall argument: exit code. int 0x80 ; call kernel section .data message db "Hello World!", 0xA message_len equ $-message
33.666667
75
0.626238
98bdd6c611893b893adf98e61e4f45b5dac68dfb
6,902
asm
Assembly
examples/low-level/spartan_aes/aes-x86_64.asm
SwampertX/FStar
16f48dc0e1a709e3161823001ad7dd9b44d71d79
[ "Apache-2.0" ]
2,231
2015-01-05T02:19:24.000Z
2022-03-30T05:54:05.000Z
examples/low-level/spartan_aes/aes-x86_64.asm
Cremba/FStar
d8b4db782b08ecc677eda31ee1bad1933169c80d
[ "Apache-2.0" ]
2,151
2015-01-06T05:01:08.000Z
2022-03-31T23:16:08.000Z
examples/low-level/spartan_aes/aes-x86_64.asm
Cremba/FStar
d8b4db782b08ecc677eda31ee1bad1933169c80d
[ "Apache-2.0" ]
281
2015-02-13T00:14:17.000Z
2022-03-13T12:51:04.000Z
.code ALIGN 16 KeyExpansionStdcall proc movdqu xmm1, xmmword ptr [rcx + 0] movdqu xmmword ptr [rdx + 0], xmm1 aeskeygenassist xmm2, xmm1, 1 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 movdqu xmmword ptr [rdx + 16], xmm1 aeskeygenassist xmm2, xmm1, 2 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 movdqu xmmword ptr [rdx + 32], xmm1 aeskeygenassist xmm2, xmm1, 4 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 movdqu xmmword ptr [rdx + 48], xmm1 aeskeygenassist xmm2, xmm1, 8 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 movdqu xmmword ptr [rdx + 64], xmm1 aeskeygenassist xmm2, xmm1, 16 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 movdqu xmmword ptr [rdx + 80], xmm1 aeskeygenassist xmm2, xmm1, 32 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 movdqu xmmword ptr [rdx + 96], xmm1 aeskeygenassist xmm2, xmm1, 64 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 movdqu xmmword ptr [rdx + 112], xmm1 aeskeygenassist xmm2, xmm1, 128 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 movdqu xmmword ptr [rdx + 128], xmm1 aeskeygenassist xmm2, xmm1, 27 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 movdqu xmmword ptr [rdx + 144], xmm1 aeskeygenassist xmm2, xmm1, 54 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 movdqu xmmword ptr [rdx + 160], xmm1 pxor xmm1, xmm1 pxor xmm2, xmm2 pxor xmm3, xmm3 ret KeyExpansionStdcall endp ALIGN 16 KeyExpansionAndInversionStdcall proc movdqu xmm1, xmmword ptr [rcx + 0] movdqu xmmword ptr [rdx + 0], xmm1 aeskeygenassist xmm2, xmm1, 1 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 movdqu xmmword ptr [rdx + 16], xmm1 aeskeygenassist xmm2, xmm1, 2 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 movdqu xmmword ptr [rdx + 32], xmm1 aeskeygenassist xmm2, xmm1, 4 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 movdqu xmmword ptr [rdx + 48], xmm1 aeskeygenassist xmm2, xmm1, 8 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 movdqu xmmword ptr [rdx + 64], xmm1 aeskeygenassist xmm2, xmm1, 16 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 movdqu xmmword ptr [rdx + 80], xmm1 aeskeygenassist xmm2, xmm1, 32 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 movdqu xmmword ptr [rdx + 96], xmm1 aeskeygenassist xmm2, xmm1, 64 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 movdqu xmmword ptr [rdx + 112], xmm1 aeskeygenassist xmm2, xmm1, 128 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 movdqu xmmword ptr [rdx + 128], xmm1 aeskeygenassist xmm2, xmm1, 27 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 movdqu xmmword ptr [rdx + 144], xmm1 aeskeygenassist xmm2, xmm1, 54 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 movdqu xmmword ptr [rdx + 160], xmm1 movdqu xmm1, xmmword ptr [rdx + 16] aesimc xmm1, xmm1 movdqu xmmword ptr [rdx + 16], xmm1 movdqu xmm1, xmmword ptr [rdx + 32] aesimc xmm1, xmm1 movdqu xmmword ptr [rdx + 32], xmm1 movdqu xmm1, xmmword ptr [rdx + 48] aesimc xmm1, xmm1 movdqu xmmword ptr [rdx + 48], xmm1 movdqu xmm1, xmmword ptr [rdx + 64] aesimc xmm1, xmm1 movdqu xmmword ptr [rdx + 64], xmm1 movdqu xmm1, xmmword ptr [rdx + 80] aesimc xmm1, xmm1 movdqu xmmword ptr [rdx + 80], xmm1 movdqu xmm1, xmmword ptr [rdx + 96] aesimc xmm1, xmm1 movdqu xmmword ptr [rdx + 96], xmm1 movdqu xmm1, xmmword ptr [rdx + 112] aesimc xmm1, xmm1 movdqu xmmword ptr [rdx + 112], xmm1 movdqu xmm1, xmmword ptr [rdx + 128] aesimc xmm1, xmm1 movdqu xmmword ptr [rdx + 128], xmm1 movdqu xmm1, xmmword ptr [rdx + 144] aesimc xmm1, xmm1 movdqu xmmword ptr [rdx + 144], xmm1 pxor xmm1, xmm1 pxor xmm2, xmm2 pxor xmm3, xmm3 ret KeyExpansionAndInversionStdcall endp ALIGN 16 AES128EncryptOneBlockStdcall proc movdqu xmm0, xmmword ptr [rdx + 0] movdqu xmm2, xmmword ptr [r8 + 0] pxor xmm0, xmm2 movdqu xmm2, xmmword ptr [r8 + 16] aesenc xmm0, xmm2 movdqu xmm2, xmmword ptr [r8 + 32] aesenc xmm0, xmm2 movdqu xmm2, xmmword ptr [r8 + 48] aesenc xmm0, xmm2 movdqu xmm2, xmmword ptr [r8 + 64] aesenc xmm0, xmm2 movdqu xmm2, xmmword ptr [r8 + 80] aesenc xmm0, xmm2 movdqu xmm2, xmmword ptr [r8 + 96] aesenc xmm0, xmm2 movdqu xmm2, xmmword ptr [r8 + 112] aesenc xmm0, xmm2 movdqu xmm2, xmmword ptr [r8 + 128] aesenc xmm0, xmm2 movdqu xmm2, xmmword ptr [r8 + 144] aesenc xmm0, xmm2 movdqu xmm2, xmmword ptr [r8 + 160] aesenclast xmm0, xmm2 pxor xmm2, xmm2 movdqu xmmword ptr [rcx + 0], xmm0 ret AES128EncryptOneBlockStdcall endp end
24.916968
38
0.682701
922c1d20e131b27d52777cf7e1610196cdce6725
226
asm
Assembly
aula_14/semaforo/semaforo.asm
Descomplica-ADS/ACS-XXI
8e5cda265582cda4cbf0e98a56ef4d8866512774
[ "MIT" ]
9
2022-03-07T14:54:08.000Z
2022-03-27T03:29:43.000Z
aula_14/semaforo/semaforo.asm
Descomplica-ADS/ACS-XXI
8e5cda265582cda4cbf0e98a56ef4d8866512774
[ "MIT" ]
null
null
null
aula_14/semaforo/semaforo.asm
Descomplica-ADS/ACS-XXI
8e5cda265582cda4cbf0e98a56ef4d8866512774
[ "MIT" ]
2
2022-03-10T08:03:39.000Z
2022-03-10T23:56:38.000Z
Start: MOV AL, 84; OUT 01; MOV CL, 3 L1: DEC CL JNZ L1 MOV AL, 88; OUT 01; MOV AL, 30; OUT 01; MOV CL, 3 L2: DEC CL JNZ L2 MOV AL, 50; OUT 01; JMP Start END
9.04
15
0.442478
0d188d5e07ae140b039c34dfb0bc1fa4e76c3a10
351
asm
Assembly
oeis/137/A137727.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/137/A137727.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/137/A137727.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A137727: Final digit of prime(n)*prime(n+1). ; 6,5,5,7,3,1,3,7,7,9,7,7,3,1,1,7,9,7,7,3,7,7,7,3,7,3,1,3,7,1,7,7,3,1,9,7,1,1,1,7,9,1,3,1,3,9,3,1,3,7,7,9,1,7,1,7,9,7,7,3,9,1,7,3,1,7,7,9,3,7,7,3,1,7,7,7,3,7,9,1,9,1,3,7,7,7,3,7,3,1,3,3,7,9,7,7,9,3,3,7 mov $2,$0 add $0,1 seq $0,40 ; The prime numbers. seq $2,40 ; The prime numbers. mul $0,$2 mod $0,10
35.1
201
0.555556
371c0fb60078d3da6a6658d1a4838c15f6114c0a
175
asm
Assembly
libsrc/_DEVELOPMENT/math/float/am9511/c/sdcc/cam32_sdcc_ceil.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/am9511/c/sdcc/cam32_sdcc_ceil.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/am9511/c/sdcc/cam32_sdcc_ceil.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_fp_am9511 PUBLIC cam32_sdcc_ceil EXTERN cam32_sdcc_read1, asm_am9511_ceil_fastcall .cam32_sdcc_ceil call cam32_sdcc_read1 jp asm_am9511_ceil_fastcall
15.909091
49
0.851429
0b98370f137bae2670fbf33899259198b66204d4
9,142
asm
Assembly
Transynther/x86/_processed/NC/_ht_st_zr_un_/i9-9900K_12_0xa0_notsx.log_21829_762.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_ht_st_zr_un_/i9-9900K_12_0xa0_notsx.log_21829_762.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_ht_st_zr_un_/i9-9900K_12_0xa0_notsx.log_21829_762.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 %r9 push %rcx push %rdi push %rsi lea addresses_UC_ht+0x124f2, %rsi nop nop nop and $44480, %r9 mov $0x6162636465666768, %rcx movq %rcx, (%rsi) nop nop nop cmp %r13, %r13 lea addresses_normal_ht+0x1ea51, %rsi lea addresses_UC_ht+0xdf01, %rdi clflush (%rsi) nop nop nop add $56755, %r15 mov $9, %rcx rep movsw inc %rcx lea addresses_WT_ht+0x431a, %r13 nop nop nop nop nop cmp $11934, %r10 mov (%r13), %rdi nop nop xor $61377, %rdi lea addresses_UC_ht+0x8a1, %rsi lea addresses_normal_ht+0x13f15, %rdi nop nop nop nop nop and $43885, %r10 mov $36, %rcx rep movsw nop nop cmp %r15, %r15 lea addresses_UC_ht+0x19401, %rsi lea addresses_UC_ht+0x301, %rdi nop nop nop nop nop and %r14, %r14 mov $107, %rcx rep movsw nop nop nop inc %rsi lea addresses_WC_ht+0x159c1, %rsi lea addresses_D_ht+0x2301, %rdi clflush (%rdi) dec %r10 mov $13, %rcx rep movsl nop nop nop and %r14, %r14 lea addresses_WT_ht+0x16301, %rsi lea addresses_WT_ht+0xc5b, %rdi clflush (%rdi) nop nop nop inc %r15 mov $54, %rcx rep movsq nop xor $3362, %rsi lea addresses_A_ht+0x1421, %r10 nop nop sub $26056, %r9 movw $0x6162, (%r10) nop nop nop and %rsi, %rsi lea addresses_UC_ht+0x74c1, %rsi lea addresses_normal_ht+0x8501, %rdi nop nop xor %r14, %r14 mov $126, %rcx rep movsl nop nop nop add $6999, %r10 lea addresses_UC_ht+0x16b01, %rsi and %rdi, %rdi mov $0x6162636465666768, %r13 movq %r13, %xmm6 vmovups %ymm6, (%rsi) cmp $58740, %r9 lea addresses_A_ht+0xe101, %rcx nop nop nop nop inc %r15 movw $0x6162, (%rcx) nop nop nop nop nop sub %r10, %r10 lea addresses_WC_ht+0xf1e5, %r13 cmp $2638, %r14 mov (%r13), %di nop nop nop nop and %rdi, %rdi lea addresses_A_ht+0x13541, %r13 nop nop nop nop nop dec %r14 movups (%r13), %xmm7 vpextrq $1, %xmm7, %r10 nop sub $40841, %rcx lea addresses_D_ht+0x1ca81, %rsi lea addresses_WC_ht+0x11301, %rdi nop nop nop nop nop mfence mov $1, %rcx rep movsb nop and $24857, %r14 lea addresses_WC_ht+0x12501, %rsi nop nop inc %rdi movb $0x61, (%rsi) nop nop nop and %r15, %r15 pop %rsi pop %rdi pop %rcx pop %r9 pop %r15 pop %r14 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r8 push %rax push %rbp push %rcx push %rdx push %rsi // Store lea addresses_PSE+0x7d81, %rbp nop nop nop nop add %rdx, %rdx mov $0x5152535455565758, %rax movq %rax, (%rbp) nop nop sub %rdx, %rdx // Store lea addresses_WC+0x9b61, %rbp nop cmp %rcx, %rcx movw $0x5152, (%rbp) nop and $9415, %r8 // Load lea addresses_WT+0x15b01, %rcx clflush (%rcx) nop nop nop nop nop xor %rax, %rax mov (%rcx), %si nop sub $45918, %rbp // Load mov $0x24029b00000006a1, %rsi nop nop nop nop nop sub %rdx, %rdx vmovups (%rsi), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $1, %xmm3, %r10 nop and %r10, %r10 // Faulty Load mov $0x5b72ff0000000301, %r8 nop nop nop cmp $42587, %rcx vmovups (%r8), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $0, %xmm4, %rdx lea oracles, %rbp and $0xff, %rdx shlq $12, %rdx mov (%rbp,%rdx,1), %rdx pop %rsi pop %rdx pop %rcx pop %rbp pop %rax pop %r8 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_NC', 'AVXalign': True, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': True, 'size': 8, 'NT': False, 'same': False, 'congruent': 6}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 3}} {'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'} {'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}} {'src': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}} {'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 3}} {'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 9}} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1, 'NT': True, 'same': False, 'congruent': 8}} {'a1': 1, 'd8': 1, '2d': 1, 'ed': 1, '49': 49, '41': 1, '01': 1, '6a': 1, '7e': 10, '57': 1, '00': 14686, 'ad': 1, 'f9': 1, '7d': 5, '75': 1, '46': 6649, '0f': 1, '19': 1, 'c9': 1, '0d': 1, '60': 413, '5d': 1, '4a': 1} 00 00 00 00 46 00 46 00 00 60 49 46 00 46 46 46 00 46 00 46 46 00 00 00 46 46 00 46 46 00 00 46 00 00 46 46 00 46 00 46 00 00 46 00 00 46 49 46 00 46 00 46 00 00 49 00 00 46 00 00 46 00 46 00 00 00 46 46 00 00 60 00 46 00 00 00 00 46 46 00 00 00 46 46 00 46 00 00 00 00 46 00 46 00 46 00 46 00 46 00 00 46 00 46 00 46 00 00 46 46 00 46 00 00 00 46 00 46 46 00 46 46 00 00 00 00 00 00 00 00 46 00 00 46 00 46 00 46 46 00 00 46 00 46 00 00 46 00 46 46 46 00 00 46 00 46 00 00 46 00 46 00 00 46 00 46 00 00 00 46 00 00 46 00 46 00 00 46 60 00 00 46 00 46 00 00 00 00 00 00 00 00 46 00 46 00 00 46 46 00 46 46 00 00 00 00 00 00 00 46 46 00 00 00 00 00 46 00 46 00 00 00 00 00 00 46 00 46 46 00 00 46 00 00 00 00 46 00 46 00 46 49 60 00 46 00 46 00 46 46 00 00 46 46 00 00 46 46 00 46 00 00 46 00 46 00 00 46 00 46 00 00 46 00 00 46 00 00 46 00 00 00 00 46 00 00 46 00 46 00 00 00 00 00 60 00 46 46 46 00 00 46 46 46 00 00 46 00 46 00 00 00 00 46 00 00 00 00 46 00 00 00 46 46 46 00 46 00 46 00 46 46 46 00 46 00 00 46 00 00 00 46 60 00 00 46 00 46 00 00 00 00 00 46 00 00 00 00 46 00 46 00 00 00 00 46 00 00 00 00 00 46 00 46 00 00 00 00 46 46 00 46 00 00 00 46 00 46 00 00 46 00 46 00 00 46 00 46 00 00 46 00 46 00 00 00 00 00 46 00 46 00 46 00 00 46 46 46 00 00 46 00 46 00 00 46 00 00 46 00 00 46 00 00 00 46 46 00 00 00 00 46 00 46 00 46 46 46 00 46 00 46 00 46 00 46 46 00 46 46 00 00 46 46 00 00 46 46 00 46 00 00 46 00 00 00 46 00 60 00 46 46 00 00 46 00 00 00 46 00 00 00 00 46 60 00 00 00 00 46 00 00 00 00 46 00 46 00 46 00 46 46 00 00 46 00 00 46 00 00 00 46 46 00 00 00 00 00 46 60 00 00 46 00 00 46 46 00 46 00 46 00 46 00 46 00 46 00 46 46 00 00 46 46 00 00 46 46 00 46 46 00 46 46 00 46 00 00 00 00 00 46 46 46 46 00 46 00 46 00 46 00 46 00 46 46 00 00 46 00 46 00 46 46 46 00 46 00 46 00 46 00 00 00 00 00 00 00 46 00 46 00 00 46 46 00 00 00 46 00 00 46 00 00 46 46 00 00 46 00 00 00 46 00 46 46 00 46 00 00 00 46 46 00 00 46 00 46 46 00 00 46 00 00 00 00 46 46 00 00 46 00 46 46 46 46 00 46 00 46 46 00 00 00 46 00 00 46 00 00 00 46 60 00 00 46 00 46 00 00 46 00 00 46 00 46 00 46 00 00 46 60 00 46 00 46 00 00 46 46 60 00 46 60 00 46 46 00 00 00 46 00 00 00 00 00 00 00 46 46 00 46 00 00 46 00 46 00 00 46 00 00 46 00 46 49 00 00 60 46 00 00 00 46 46 00 00 46 46 00 46 00 00 00 46 00 00 46 00 46 00 00 46 00 46 00 00 46 46 00 46 00 00 60 00 46 46 46 00 46 46 00 46 46 46 00 46 00 46 00 46 00 46 00 46 46 00 46 00 00 46 46 00 46 46 46 46 00 46 46 00 00 46 00 46 46 00 00 46 00 46 46 00 46 46 46 00 46 46 46 00 46 46 46 00 46 46 46 00 46 46 00 00 46 60 46 46 46 00 00 00 46 46 46 46 00 00 46 00 46 00 00 00 46 00 46 46 00 46 00 46 00 46 00 46 00 46 46 46 00 46 46 00 00 46 00 46 00 46 46 46 00 46 00 46 00 00 00 00 46 46 00 46 46 00 46 46 46 46 00 46 00 00 46 46 00 00 00 46 46 46 00 46 00 00 00 00 46 00 46 00 46 00 00 46 00 46 00 00 46 00 00 46 00 46 00 00 46 00 00 00 00 46 00 46 00 46 00 46 46 00 00 00 46 46 00 46 00 00 00 46 00 00 46 00 46 46 46 00 46 00 00 46 00 46 00 46 00 46 46 */
31.633218
2,999
0.648983
9693dfcbb3efd8158d5fab7193206afa1634cb86
146
asm
Assembly
Working Disassembly/Levels/MHZ/Misc Object Data/Anim - Mushroom Platform.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
5
2021-07-09T08:17:56.000Z
2022-02-27T19:57:47.000Z
Working Disassembly/Levels/MHZ/Misc Object Data/Anim - Mushroom Platform.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
null
null
null
Working Disassembly/Levels/MHZ/Misc Object Data/Anim - Mushroom Platform.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
null
null
null
Ani_3F41C: dc.w byte_3F420-Ani_3F41C dc.w byte_3F425-Ani_3F41C byte_3F420: dc.b 7, 1, 0, $FE, 1 byte_3F425: dc.b 3, 2, $FD, 0, 0
29.2
39
0.623288
502c6ed963cc1f499612bd36013f96644c692cf1
374
asm
Assembly
programs/oeis/014/A014447.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/014/A014447.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/014/A014447.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A014447: Odd Lucas numbers. ; 1,3,7,11,29,47,123,199,521,843,2207,3571,9349,15127,39603,64079,167761,271443,710647,1149851,3010349,4870847,12752043,20633239,54018521,87403803,228826127,370248451,969323029,1568397607,4106118243 mov $2,$0 div $0,2 add $2,$0 mov $1,$2 seq $1,204 ; Lucas numbers (beginning with 1): L(n) = L(n-1) + L(n-2) with L(1) = 1, L(2) = 3. mov $0,$1
37.4
198
0.705882
3a4419d163825a936e199570a1c9052d78da3294
711
asm
Assembly
oeis/239/A239461.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/239/A239461.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/239/A239461.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A239461: Concatenation of n^3 and n^2. ; Submitted by Jon Maiga ; 11,84,279,6416,12525,21636,34349,51264,72981,1000100,1331121,1728144,2197169,2744196,3375225,4096256,4913289,5832324,6859361,8000400,9261441,10648484,12167529,13824576,15625625,17576676,19683729,21952784,24389841,27000900,29791961,327681024,359371089,393041156,428751225,466561296,506531369,548721444,593191521,640001600,689211681,740881764,795071849,851841936,911252025,973362116,1038232209,1105922304,1176492401,1250002500,1326512601,1406082704,1488772809,1574642916,1663753025,1756163136 mov $2,$0 mov $4,$0 add $0,1 mov $3,$0 pow $0,3 pow $3,2 lpb $3 mul $0,10 div $3,10 lpe add $0,$4 add $0,$2 mov $5,$2 mul $5,$2 add $0,$5 add $0,1
33.857143
492
0.790436
16700548849988dae7900989037be6098c344211
98,016
asm
Assembly
src/sound/song185restored.asm
MusicTheorist/Mother2GbaTranslation
70de3975a3284c4002a33e8ef8c20e4c2b039037
[ "MIT" ]
1
2021-04-18T04:26:52.000Z
2021-04-18T04:26:52.000Z
src/sound/song185restored.asm
MusicTheorist/Mother2GbaTranslation
70de3975a3284c4002a33e8ef8c20e4c2b039037
[ "MIT" ]
null
null
null
src/sound/song185restored.asm
MusicTheorist/Mother2GbaTranslation
70de3975a3284c4002a33e8ef8c20e4c2b039037
[ "MIT" ]
null
null
null
song185restored_pri equ 0 song185restored_rev equ 0 song185restored_mvl equ 127 song185restored_key equ 0 song185restored_tbs equ 1 song185restored_exg equ 0 song185restored_cmp equ 1 .align 4 ;**************** Track 1 (Midi-Chn.1) ****************; @song185restored_1: .byte TEMPO , 60 .byte KEYSH , song185restored_key+0 ; 000 ---------------------------------------- .byte VOICE , 27 .byte MODT , 0 .byte LFOS , 44 .byte PAN , c_v-64 .byte VOL , 24*song185restored_mvl/mxv .byte BENDR , 12 .byte VOL , 24*song185restored_mvl/mxv .byte 39*song185restored_mvl/mxv .byte PAN , c_v-32 .byte BENDR , 12 .byte PAN , c_v-32 .byte VOL , 39*song185restored_mvl/mxv .byte 39*song185restored_mvl/mxv .byte PAN , c_v+0 .byte c_v-32 .byte BENDR , 12 .byte PAN , c_v-32 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+9 .byte TIE , En1 , v088 .byte W96 ; 001 ---------------------------------------- .byte W30 .byte EOT .byte W66 ; 002 ---------------------------------------- .byte W66 .byte PAN , c_v+16 .byte VOL , 44*song185restored_mvl/mxv .byte W01 .byte BEND , c_v+10 .byte TIE , Fs1 .byte W02 .byte PAN , c_v+0 .byte VOL , 39*song185restored_mvl/mxv .byte W24 .byte PAN , c_v-10 .byte VOL , 44*song185restored_mvl/mxv .byte W03 ; 003 ---------------------------------------- .byte W04 .byte PAN , c_v-32 .byte VOL , 39*song185restored_mvl/mxv .byte W14 .byte PAN , c_v-18 .byte VOL , 31*song185restored_mvl/mxv .byte PAN , c_v-32 .byte VOL , 39*song185restored_mvl/mxv .byte W02 .byte PAN , c_v-18 .byte VOL , 31*song185restored_mvl/mxv .byte W02 .byte PAN , c_v-32 .byte VOL , 39*song185restored_mvl/mxv .byte W16 .byte PAN , c_v-37 .byte VOL , 44*song185restored_mvl/mxv .byte W01 .byte PAN , c_v-64 .byte VOL , 31*song185restored_mvl/mxv .byte W28 .byte 39*song185restored_mvl/mxv .byte W11 .byte 31*song185restored_mvl/mxv .byte W18 ; 004 ---------------------------------------- .byte W01 .byte EOT .byte W03 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+9 .byte TIE , En1 .byte W04 .byte VOL , 31*song185restored_mvl/mxv .byte W24 .byte W02 .byte PAN , c_v-32 .byte VOL , 39*song185restored_mvl/mxv .byte W06 .byte BEND , c_v+8 .byte W05 .byte c_v+7 .byte W04 .byte c_v+6 .byte W01 .byte PAN , c_v-18 .byte VOL , 31*song185restored_mvl/mxv .byte W04 .byte BEND , c_v+5 .byte W05 .byte PAN , c_v+0 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+4 .byte W04 .byte c_v+3 .byte W05 .byte c_v+2 .byte W03 .byte PAN , c_v+16 .byte VOL , 44*song185restored_mvl/mxv .byte W02 .byte BEND , c_v+1 .byte W04 .byte PAN , c_v+32 .byte VOL , 39*song185restored_mvl/mxv .byte W01 .byte BEND , c_v+0 .byte W05 .byte c_v+0 .byte W03 .byte PAN , c_v+27 .byte VOL , 31*song185restored_mvl/mxv .byte W03 .byte BEND , c_v-1 .byte W01 .byte PAN , c_v+32 .byte VOL , 39*song185restored_mvl/mxv .byte W04 .byte BEND , c_v-3 .byte W02 ; 005 ---------------------------------------- .byte W02 .byte PAN , c_v+63 .byte VOL , 31*song185restored_mvl/mxv .byte W01 .byte BEND , c_v-3 .byte W05 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v-5 .byte W05 .byte VOL , 31*song185restored_mvl/mxv .byte W01 .byte 39*song185restored_mvl/mxv .byte BEND , c_v-6 .byte W01 .byte VOL , 31*song185restored_mvl/mxv .byte W04 .byte BEND , c_v-7 .byte W05 .byte c_v-8 .byte W06 .byte c_v-9 .byte W04 .byte EOT .byte W05 .byte VOL , 39*song185restored_mvl/mxv .byte W11 .byte 31*song185restored_mvl/mxv .byte W23 .byte 39*song185restored_mvl/mxv .byte W12 .byte 31*song185restored_mvl/mxv .byte W11 ; 006 ---------------------------------------- .byte W12 .byte 39*song185restored_mvl/mxv .byte W11 .byte 31*song185restored_mvl/mxv .byte W24 .byte 39*song185restored_mvl/mxv .byte W11 .byte 31*song185restored_mvl/mxv .byte W13 .byte PAN , c_v+0 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+9 .byte N42 , Cs1 .byte W24 .byte W01 ; 007 ---------------------------------------- .byte W07 .byte BEND , c_v+11 .byte W01 .byte c_v+16 .byte W01 .byte c_v+20 .byte W01 .byte c_v+26 .byte W01 .byte c_v+30 .byte W01 .byte c_v+37 .byte W01 .byte c_v+40 .byte W01 .byte c_v+46 .byte W01 .byte c_v+51 .byte W01 .byte c_v+56 .byte W01 .byte c_v+62 .byte W01 .byte c_v+14 .byte N10 , Bn1 .byte W01 .byte BEND , c_v+18 .byte W01 .byte c_v+23 .byte W01 .byte c_v+29 .byte W01 .byte c_v+35 .byte W01 .byte c_v+40 .byte W01 .byte c_v+45 .byte W01 .byte c_v+50 .byte W01 .byte c_v+55 .byte W01 .byte c_v+59 .byte W01 .byte c_v+11 .byte N10 , An2 .byte W01 .byte BEND , c_v+16 .byte W01 .byte c_v+22 .byte W01 .byte c_v+27 .byte W01 .byte c_v+31 .byte W01 .byte c_v+36 .byte W01 .byte c_v+40 .byte W01 .byte c_v+47 .byte W01 .byte c_v+52 .byte W01 .byte c_v+57 .byte W01 .byte c_v+61 .byte W01 .byte c_v+14 .byte N10 , Gn3 .byte W01 .byte BEND , c_v+19 .byte W01 .byte c_v+24 .byte W01 .byte c_v+28 .byte W01 .byte c_v+34 .byte W01 .byte c_v+40 .byte W01 .byte c_v+45 .byte W01 .byte c_v+49 .byte W01 .byte c_v+54 .byte W01 .byte c_v+60 .byte W01 .byte c_v+11 .byte N04 .byte W01 .byte BEND , c_v+16 .byte W01 .byte c_v+21 .byte W01 .byte c_v+27 .byte W01 .byte c_v+31 .byte W01 .byte c_v+46 .byte N01 , FnM1 .byte W01 .byte BEND , c_v+44 .byte N01 , As0 .byte W01 .byte BEND , c_v+41 .byte N01 , Gs1 .byte W01 .byte BEND , c_v+20 .byte N02 , Fs2 .byte W01 .byte BEND , c_v+44 .byte W01 .byte c_v+10 .byte N03 , En3 .byte W01 .byte BEND , c_v+29 .byte W01 .byte c_v+44 .byte W01 .byte c_v+57 .byte W01 .byte c_v+10 .byte N03 , Gn3 .byte W01 .byte BEND , c_v+24 .byte W01 .byte c_v+32 .byte W01 .byte c_v+11 .byte W01 .byte c_v+11 .byte N01 , FsM1 .byte N01 , Cn1 .byte N01 , As1 .byte W01 .byte BEND , c_v+7 .byte N01 , An2 .byte W01 .byte BEND , c_v+42 .byte W01 .byte c_v+17 .byte N02 , Gn3 .byte W01 .byte BEND , c_v+40 .byte W01 .byte c_v+62 .byte W01 .byte c_v+21 .byte N01 .byte W01 .byte BEND , c_v+8 .byte N01 , BnM1 .byte N01 , Bn0 .byte N01 , Bn1 .byte W01 .byte BEND , c_v+22 .byte N01 , Bn2 .byte W01 .byte BEND , c_v+62 .byte W01 .byte c_v+33 .byte N02 , Gn3 .byte W01 .byte BEND , c_v+62 .byte W01 .byte c_v+57 .byte N01 , CsM1 .byte N01 , As0 .byte N01 , Gn3 .byte W01 .byte BEND , c_v+8 .byte N01 , Cs2 .byte N01 , Ds3 .byte W01 .byte BEND , c_v+58 .byte W01 .byte c_v+29 .byte N01 , Gn3 .byte W01 .byte BEND , c_v+63 .byte N01 , Bn0 .byte W01 .byte BEND , c_v+8 .byte N01 , En2 .byte N01 , Fn3 .byte W01 .byte BEND , c_v+8 .byte N01 , Gn3 .byte W01 .byte BEND , c_v+11 .byte N01 , En0 .byte W01 .byte BEND , c_v+50 .byte N01 , Gs1 .byte N01 , Bn2 .byte W01 .byte BEND , c_v+36 .byte N01 , Gn3 .byte W01 .byte BEND , c_v+12 .byte N01 , Fs0 .byte N01 , As1 .byte N01 , Gn3 .byte W01 .byte BEND , c_v+63 .byte N01 , Dn3 .byte W01 .byte BEND , c_v+37 .byte N11 , Gn3 .byte W01 .byte BEND , c_v+0 .byte W04 ; 008 ---------------------------------------- .byte W06 .byte VOICE , 28 .byte W03 .byte PAN , c_v+63 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-2 .byte N36 , An3 .byte W17 .byte VOL , 10*song185restored_mvl/mxv .byte W01 .byte 24*song185restored_mvl/mxv .byte W14 .byte BEND , c_v-7 .byte W01 .byte c_v-15 .byte W01 .byte c_v-23 .byte W01 .byte c_v-31 .byte W01 .byte c_v-39 .byte W01 .byte c_v-48 .byte W01 .byte c_v-62 .byte W01 .byte c_v-3 .byte N04 , Gs2 .byte W01 .byte VOL , 10*song185restored_mvl/mxv .byte BEND , c_v-18 .byte W01 .byte c_v-33 .byte W01 .byte c_v-60 .byte W01 .byte c_v-18 .byte N01 , Fs1 .byte W01 .byte BEND , c_v-50 .byte W01 .byte PAN , c_v+0 .byte VOL , 24*song185restored_mvl/mxv .byte PAN , c_v+63 .byte VOL , 10*song185restored_mvl/mxv .byte BEND , c_v-32 .byte N01 , Cs0 .byte W01 .byte PAN , c_v+0 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N01 , BnM2 .byte N01 , CsM1 .byte N18 , Cn5 .byte W01 .byte BEND , c_v-3 .byte W01 .byte c_v-5 .byte W01 .byte c_v-8 .byte W01 .byte c_v-12 .byte W01 .byte c_v-15 .byte W01 .byte c_v-16 .byte W01 .byte c_v-21 .byte W01 .byte c_v-25 .byte W01 .byte c_v-28 .byte W01 .byte c_v-32 .byte W01 .byte c_v-36 .byte W01 .byte c_v-40 .byte W01 .byte c_v-44 .byte W01 .byte c_v-48 .byte W01 .byte c_v-53 .byte W01 .byte c_v-57 .byte W01 .byte c_v-62 .byte W01 .byte c_v+0 .byte N09 , Cn4 .byte W01 .byte BEND , c_v-7 .byte W01 .byte PAN , c_v-18 .byte VOL , 31*song185restored_mvl/mxv .byte BEND , c_v-12 .byte W01 .byte c_v-19 .byte W01 .byte c_v-23 .byte W01 .byte c_v-31 .byte W01 .byte PAN , c_v-64 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-39 .byte W01 .byte c_v-47 .byte W01 .byte c_v-55 .byte W01 .byte c_v-64 .byte W01 .byte c_v-10 .byte N04 , Cn3 .byte W01 .byte BEND , c_v-21 .byte W01 .byte c_v-34 .byte W01 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-48 .byte W01 .byte c_v+0 .byte N02 , Bn1 .byte W01 .byte BEND , c_v-30 .byte W01 .byte VOL , 10*song185restored_mvl/mxv .byte BEND , c_v-56 .byte W01 .byte c_v-58 .byte N01 , As0 .byte W01 .byte BEND , c_v-21 .byte N01 , CnM1 .byte W01 .byte BEND , c_v-1 .byte N01 , AsM2 .byte N19 , Cn5 .byte W01 .byte BEND , c_v-3 .byte W01 .byte c_v-6 .byte W01 .byte c_v-9 .byte W01 ; 009 ---------------------------------------- .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-11 .byte W01 .byte c_v-14 .byte W01 .byte c_v-17 .byte W01 .byte c_v-21 .byte W01 .byte c_v-23 .byte W01 .byte c_v-27 .byte W01 .byte c_v-30 .byte W01 .byte c_v-33 .byte W01 .byte c_v-36 .byte W01 .byte c_v-39 .byte W01 .byte c_v-43 .byte W01 .byte c_v-48 .byte W01 .byte c_v-52 .byte W01 .byte c_v-56 .byte W01 .byte c_v-60 .byte W01 .byte c_v-64 .byte W01 .byte c_v-4 .byte N09 , Cn4 .byte W01 .byte BEND , c_v-10 .byte W01 .byte c_v-15 .byte W01 .byte c_v-21 .byte W01 .byte c_v-26 .byte W01 .byte c_v-34 .byte W01 .byte c_v-39 .byte W01 .byte c_v-49 .byte W01 .byte c_v-57 .byte W01 .byte c_v-1 .byte N05 , Cn3 .byte W01 .byte BEND , c_v-5 .byte W01 .byte c_v-18 .byte W01 .byte c_v-34 .byte W01 .byte c_v-46 .byte W01 .byte c_v+0 .byte N02 , Cn2 .byte W01 .byte BEND , c_v-15 .byte W01 .byte c_v-43 .byte W01 .byte c_v-8 .byte N01 , Bn0 .byte W01 .byte BEND , c_v-64 .byte W01 .byte c_v+0 .byte N01 , DsM1 .byte W01 .byte BEND , c_v-1 .byte N01 , AsM2 .byte N23 , Cn5 .byte W01 .byte BEND , c_v-4 .byte W01 .byte c_v-6 .byte W01 .byte c_v-8 .byte W01 .byte c_v-11 .byte W01 .byte c_v-13 .byte W01 .byte c_v-12 .byte W01 .byte c_v-15 .byte W01 .byte c_v-18 .byte W01 .byte c_v-21 .byte W01 .byte c_v-23 .byte W01 .byte c_v-26 .byte W01 .byte c_v-29 .byte W01 .byte c_v-32 .byte W01 .byte c_v-34 .byte W01 .byte c_v-39 .byte W01 .byte c_v-42 .byte W01 .byte c_v-47 .byte W01 .byte c_v-48 .byte W01 .byte c_v-53 .byte W01 .byte c_v-57 .byte W01 .byte c_v-61 .byte W01 .byte c_v-64 .byte W01 .byte c_v-5 .byte N11 , Cn4 .byte W01 .byte BEND , c_v-10 .byte W01 .byte c_v-13 .byte W01 .byte c_v-18 .byte W01 .byte c_v-25 .byte W01 .byte c_v-31 .byte W01 .byte c_v-38 .byte W01 .byte c_v-41 .byte W01 .byte c_v-49 .byte W01 .byte VOL , 10*song185restored_mvl/mxv .byte BEND , c_v-58 .byte W01 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-64 .byte W01 .byte c_v-8 .byte N05 , Cn3 .byte W01 .byte BEND , c_v-19 .byte W01 .byte c_v-30 .byte W01 .byte c_v-45 .byte W01 .byte c_v-56 .byte W01 .byte c_v-3 .byte N01 , Bn1 .byte W01 .byte BEND , c_v-1 .byte N92 , Cs0 .byte W15 .byte VOL , 10*song185restored_mvl/mxv .byte W05 ; 010 ---------------------------------------- .byte W02 .byte PAN , c_v+0 .byte VOL , 24*song185restored_mvl/mxv .byte PAN , c_v-64 .byte VOL , 10*song185restored_mvl/mxv .byte W01 .byte PAN , c_v+0 .byte VOL , 24*song185restored_mvl/mxv .byte W19 .byte PAN , c_v+27 .byte VOL , 31*song185restored_mvl/mxv .byte W04 .byte PAN , c_v+63 .byte VOL , 24*song185restored_mvl/mxv .byte W03 .byte 10*song185restored_mvl/mxv .byte W01 .byte 24*song185restored_mvl/mxv .byte W02 .byte 10*song185restored_mvl/mxv .byte W11 .byte 24*song185restored_mvl/mxv .byte W32 .byte W01 .byte VOICE , 28 .byte PAN , c_v-32 .byte VOL , 39*song185restored_mvl/mxv .byte PAN , c_v-32 .byte BENDR , 12 .byte PAN , c_v-32 .byte VOL , 39*song185restored_mvl/mxv .byte BENDR , 12 .byte PAN , c_v-32 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v-1 .byte GOTO .word @song185restored_1 ;**************** Track 2 (Midi-Chn.2) ****************; @song185restored_2: .byte KEYSH , song185restored_key+0 ; 000 ---------------------------------------- .byte VOICE , 46 .byte MODT , 0 .byte LFOS , 44 .byte PAN , c_v-18 .byte VOL , 31*song185restored_mvl/mxv .byte BENDR , 12 .byte PAN , c_v-18 .byte VOL , 31*song185restored_mvl/mxv .byte PAN , c_v+46 .byte VOL , 74*song185restored_mvl/mxv .byte BENDR , 12 .byte PAN , c_v+46 .byte VOL , 74*song185restored_mvl/mxv .byte PAN , c_v+46 .byte VOL , 74*song185restored_mvl/mxv .byte BENDR , 12 .byte PAN , c_v+46 .byte VOL , 74*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N13 , Fn0 , v088 .byte W16 .byte N13 .byte W01 .byte VOL , 77*song185restored_mvl/mxv .byte PAN , c_v+36 .byte W15 .byte N13 .byte W02 .byte VOL , 78*song185restored_mvl/mxv .byte PAN , c_v+31 .byte W05 .byte VOL , 77*song185restored_mvl/mxv .byte PAN , c_v+27 .byte W09 .byte N13 .byte W04 .byte VOL , 78*song185restored_mvl/mxv .byte PAN , c_v+22 .byte W12 .byte VOL , 77*song185restored_mvl/mxv .byte PAN , c_v+18 .byte N13 .byte W02 .byte VOL , 78*song185restored_mvl/mxv .byte PAN , c_v+13 .byte W13 .byte VOL , 81*song185restored_mvl/mxv .byte PAN , c_v+8 .byte W01 .byte N13 .byte W02 .byte VOL , 78*song185restored_mvl/mxv .byte PAN , c_v+5 .byte W09 .byte VOL , 81*song185restored_mvl/mxv .byte PAN , c_v+0 .byte W05 ; 001 ---------------------------------------- .byte W01 .byte VOL , 78*song185restored_mvl/mxv .byte PAN , c_v-3 .byte N13 .byte W09 .byte PAN , c_v-8 .byte VOL , 81*song185restored_mvl/mxv .byte W03 .byte PAN , c_v-12 .byte VOL , 78*song185restored_mvl/mxv .byte W04 .byte N13 .byte W08 .byte PAN , c_v-18 .byte VOL , 77*song185restored_mvl/mxv .byte W03 .byte PAN , c_v-20 .byte VOL , 78*song185restored_mvl/mxv .byte W05 .byte N13 .byte W07 .byte PAN , c_v-27 .byte VOL , 77*song185restored_mvl/mxv .byte W09 .byte N13 .byte W04 .byte PAN , c_v-29 .byte VOL , 78*song185restored_mvl/mxv .byte W04 .byte PAN , c_v-36 .byte VOL , 77*song185restored_mvl/mxv .byte W08 .byte N13 .byte W10 .byte PAN , c_v-44 .byte VOL , 74*song185restored_mvl/mxv .byte W07 .byte N13 .byte W12 .byte PAN , c_v-45 .byte VOL , 77*song185restored_mvl/mxv .byte W02 ; 002 ---------------------------------------- .byte PAN , c_v-54 .byte VOL , 74*song185restored_mvl/mxv .byte W02 .byte N13 .byte W16 .byte N13 .byte W08 .byte PAN , c_v-64 .byte VOL , 72*song185restored_mvl/mxv .byte W08 .byte N13 .byte W16 .byte N13 .byte W17 .byte N13 .byte W16 .byte N13 .byte W01 .byte PAN , c_v-54 .byte VOL , 74*song185restored_mvl/mxv .byte W12 ; 003 ---------------------------------------- .byte W03 .byte N13 .byte W08 .byte PAN , c_v-45 .byte VOL , 77*song185restored_mvl/mxv .byte W02 .byte PAN , c_v-44 .byte VOL , 74*song185restored_mvl/mxv .byte W06 .byte N13 .byte W10 .byte PAN , c_v-36 .byte VOL , 77*song185restored_mvl/mxv .byte W06 .byte N13 .byte W09 .byte PAN , c_v-29 .byte VOL , 78*song185restored_mvl/mxv .byte W04 .byte PAN , c_v-27 .byte VOL , 77*song185restored_mvl/mxv .byte W03 .byte N13 .byte W08 .byte PAN , c_v-20 .byte VOL , 78*song185restored_mvl/mxv .byte W09 .byte N13 .byte W01 .byte PAN , c_v-18 .byte VOL , 77*song185restored_mvl/mxv .byte W02 .byte PAN , c_v-12 .byte VOL , 78*song185restored_mvl/mxv .byte W11 .byte PAN , c_v-8 .byte VOL , 81*song185restored_mvl/mxv .byte W02 .byte N13 .byte W01 .byte PAN , c_v-3 .byte VOL , 78*song185restored_mvl/mxv .byte W08 .byte PAN , c_v+0 .byte VOL , 81*song185restored_mvl/mxv .byte W03 ; 004 ---------------------------------------- .byte W01 .byte PAN , c_v+5 .byte VOL , 78*song185restored_mvl/mxv .byte W03 .byte N13 .byte W05 .byte PAN , c_v+8 .byte VOL , 81*song185restored_mvl/mxv .byte W03 .byte PAN , c_v+13 .byte VOL , 78*song185restored_mvl/mxv .byte W08 .byte N13 .byte W02 .byte PAN , c_v+18 .byte VOL , 77*song185restored_mvl/mxv .byte W02 .byte PAN , c_v+22 .byte VOL , 78*song185restored_mvl/mxv .byte W11 .byte PAN , c_v+27 .byte VOL , 77*song185restored_mvl/mxv .byte W01 .byte N13 .byte W10 .byte PAN , c_v+31 .byte VOL , 78*song185restored_mvl/mxv .byte W04 .byte PAN , c_v+36 .byte VOL , 77*song185restored_mvl/mxv .byte W03 .byte N13 .byte W12 .byte PAN , c_v+46 .byte VOL , 74*song185restored_mvl/mxv .byte W04 .byte N13 .byte W12 .byte PAN , c_v+45 .byte VOL , 77*song185restored_mvl/mxv .byte W02 .byte PAN , c_v+56 .byte VOL , 74*song185restored_mvl/mxv .byte W02 .byte N13 .byte W11 ; 005 ---------------------------------------- .byte W05 .byte N13 .byte W05 .byte PAN , c_v+63 .byte VOL , 72*song185restored_mvl/mxv .byte W12 .byte N13 .byte W16 .byte N13 .byte W08 .byte PAN , c_v+56 .byte VOL , 74*song185restored_mvl/mxv .byte W08 .byte N13 .byte W13 .byte PAN , c_v+45 .byte VOL , 77*song185restored_mvl/mxv .byte W02 .byte PAN , c_v+46 .byte VOL , 74*song185restored_mvl/mxv .byte W01 .byte N13 .byte W15 .byte PAN , c_v+36 .byte VOL , 77*song185restored_mvl/mxv .byte W01 .byte N13 .byte W10 ; 006 ---------------------------------------- .byte W03 .byte PAN , c_v+31 .byte VOL , 78*song185restored_mvl/mxv .byte W03 .byte N13 .byte W01 .byte PAN , c_v+27 .byte VOL , 77*song185restored_mvl/mxv .byte W10 .byte PAN , c_v+22 .byte VOL , 78*song185restored_mvl/mxv .byte W05 .byte N13 .byte W05 .byte PAN , c_v+18 .byte VOL , 77*song185restored_mvl/mxv .byte W02 .byte PAN , c_v+13 .byte VOL , 78*song185restored_mvl/mxv .byte W10 .byte PAN , c_v+8 .byte VOL , 81*song185restored_mvl/mxv .byte N13 .byte W03 .byte PAN , c_v+5 .byte VOL , 78*song185restored_mvl/mxv .byte W07 .byte PAN , c_v+0 .byte VOL , 81*song185restored_mvl/mxv .byte W05 .byte PAN , c_v-3 .byte VOL , 78*song185restored_mvl/mxv .byte W01 .byte N13 .byte W06 .byte PAN , c_v-8 .byte VOL , 81*song185restored_mvl/mxv .byte W03 .byte PAN , c_v-12 .byte VOL , 78*song185restored_mvl/mxv .byte W07 .byte N13 .byte W03 .byte PAN , c_v-18 .byte VOL , 77*song185restored_mvl/mxv .byte W02 .byte PAN , c_v-20 .byte VOL , 78*song185restored_mvl/mxv .byte W10 .byte PAN , c_v-27 .byte VOL , 77*song185restored_mvl/mxv .byte W01 .byte N13 .byte W09 ; 007 ---------------------------------------- .byte W01 .byte PAN , c_v-29 .byte VOL , 78*song185restored_mvl/mxv .byte W03 .byte PAN , c_v-36 .byte VOL , 77*song185restored_mvl/mxv .byte W03 .byte N13 .byte W11 .byte PAN , c_v-44 .byte VOL , 74*song185restored_mvl/mxv .byte W06 .byte N13 .byte W10 .byte PAN , c_v-45 .byte VOL , 77*song185restored_mvl/mxv .byte W02 .byte PAN , c_v-54 .byte VOL , 74*song185restored_mvl/mxv .byte W04 .byte N13 .byte W16 .byte N13 .byte W02 .byte PAN , c_v-64 .byte VOL , 72*song185restored_mvl/mxv .byte W14 .byte N13 .byte W17 .byte N13 .byte W07 ; 008 ---------------------------------------- .byte W09 .byte VOL , 0*song185restored_mvl/mxv .byte N13 , Fs0 .byte W16 .byte N13 .byte W08 .byte VOL , 10*song185restored_mvl/mxv .byte W08 .byte N13 .byte W16 .byte N13 .byte W17 .byte N13 .byte W05 .byte VOL , 24*song185restored_mvl/mxv .byte W11 .byte N13 .byte W06 ; 009 ---------------------------------------- .byte W02 .byte PAN , c_v-18 .byte VOL , 31*song185restored_mvl/mxv .byte W08 .byte N13 .byte W16 .byte N13 .byte W03 .byte PAN , c_v+0 .byte VOL , 39*song185restored_mvl/mxv .byte W13 .byte N13 .byte W04 .byte PAN , c_v+16 .byte VOL , 44*song185restored_mvl/mxv .byte W12 .byte N13 .byte W05 .byte PAN , c_v+21 .byte VOL , 50*song185restored_mvl/mxv .byte W12 .byte N13 .byte W04 .byte PAN , c_v+30 .byte VOL , 54*song185restored_mvl/mxv .byte W12 .byte N13 .byte W03 .byte PAN , c_v+42 .byte VOL , 50*song185restored_mvl/mxv .byte W02 ; 010 ---------------------------------------- .byte PAN , c_v+48 .byte VOL , 54*song185restored_mvl/mxv .byte W11 .byte N13 .byte W04 .byte VOL , 59*song185restored_mvl/mxv .byte W12 .byte N13 .byte W03 .byte PAN , c_v+52 .byte VOL , 61*song185restored_mvl/mxv .byte W07 .byte PAN , c_v+63 .byte VOL , 59*song185restored_mvl/mxv .byte W06 .byte 61*song185restored_mvl/mxv .byte N13 .byte W17 .byte N13 .byte W16 .byte VOICE , 46 .byte PAN , c_v+46 .byte VOL , 74*song185restored_mvl/mxv .byte BENDR , 12 .byte PAN , c_v+63 .byte VOL , 61*song185restored_mvl/mxv .byte BENDR , 12 .byte PAN , c_v+63 .byte VOL , 61*song185restored_mvl/mxv .byte BEND , c_v+0 .byte GOTO .word @song185restored_2 ;**************** Track 3 (Midi-Chn.3) ****************; @song185restored_3: .byte KEYSH , song185restored_key+0 ; 000 ---------------------------------------- .byte VOICE , 27 .byte MODT , 0 .byte LFOS , 44 .byte PAN , c_v-64 .byte VOL , 0*song185restored_mvl/mxv .byte BENDR , 12 .byte VOL , 39*song185restored_mvl/mxv .byte PAN , c_v-64 .byte BENDR , 12 .byte VOL , 39*song185restored_mvl/mxv .byte 24*song185restored_mvl/mxv .byte PAN , c_v-64 .byte VOL , 39*song185restored_mvl/mxv .byte BENDR , 12 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+4 .byte N28 , Cn3 , v088 .byte W01 .byte BEND , c_v+11 .byte W01 .byte c_v+6 .byte W01 .byte c_v+5 .byte W01 .byte c_v+8 .byte W01 .byte c_v+2 .byte W01 .byte c_v+9 .byte W01 .byte c_v+0 .byte W01 .byte c_v+3 .byte W01 .byte c_v+2 .byte W01 .byte c_v-1 .byte W01 .byte c_v+3 .byte W01 .byte c_v-4 .byte W01 .byte c_v+2 .byte W01 .byte c_v-5 .byte W01 .byte c_v+0 .byte W01 .byte c_v-2 .byte W01 .byte c_v-6 .byte W01 .byte c_v-2 .byte W01 .byte c_v-10 .byte W01 .byte c_v-3 .byte W01 .byte c_v-10 .byte W01 .byte c_v-10 .byte W01 .byte c_v-8 .byte W01 .byte c_v-15 .byte W01 .byte c_v-7 .byte W01 .byte c_v-14 .byte W01 .byte c_v-11 .byte W01 .byte c_v-14 .byte W01 .byte c_v-11 .byte W19 .byte VOL , 0*song185restored_mvl/mxv .byte BEND , c_v+11 .byte N28 .byte W01 .byte BEND , c_v+9 .byte W01 .byte c_v+6 .byte W01 .byte c_v+9 .byte W01 .byte c_v+2 .byte W01 .byte c_v+8 .byte W01 .byte c_v+2 .byte W01 .byte c_v+4 .byte W01 .byte c_v+4 .byte W01 .byte c_v-1 .byte W01 .byte c_v+6 .byte W01 .byte c_v-3 .byte W01 .byte c_v+2 .byte W01 .byte c_v-4 .byte W01 .byte c_v-3 .byte W01 .byte c_v+0 .byte W01 .byte c_v-8 .byte W01 .byte c_v+0 .byte W01 .byte c_v-8 .byte W01 .byte c_v-4 .byte W01 .byte c_v-7 .byte W01 .byte c_v-7 .byte W01 .byte c_v-4 .byte W01 .byte c_v-12 .byte W01 .byte c_v-6 .byte W01 .byte c_v-14 .byte W01 .byte c_v-12 .byte W01 .byte c_v-10 .byte W01 .byte c_v-17 .byte W01 .byte c_v-12 .byte W19 ; 001 ---------------------------------------- .byte W01 .byte c_v+4 .byte N28 .byte W01 .byte BEND , c_v+13 .byte W01 .byte c_v+4 .byte W01 .byte c_v+10 .byte W01 .byte c_v+7 .byte W01 .byte c_v+2 .byte W01 .byte c_v+7 .byte W01 .byte c_v+0 .byte W01 .byte c_v+6 .byte W01 .byte c_v+0 .byte W01 .byte c_v+1 .byte W01 .byte c_v+0 .byte W01 .byte c_v-2 .byte W01 .byte c_v+2 .byte W01 .byte c_v-5 .byte W01 .byte c_v+0 .byte W01 .byte c_v-4 .byte W01 .byte c_v-5 .byte W01 .byte c_v-3 .byte W01 .byte c_v-9 .byte W01 .byte c_v-3 .byte W01 .byte c_v-12 .byte W01 .byte c_v-4 .byte W01 .byte c_v-9 .byte W01 .byte c_v-11 .byte W01 .byte c_v-8 .byte W01 .byte c_v-14 .byte W01 .byte c_v-10 .byte W01 .byte c_v-15 .byte W01 .byte c_v-12 .byte W66 ; 002 ---------------------------------------- .byte W96 ; 003 ---------------------------------------- .byte W96 ; 004 ---------------------------------------- .byte W04 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+12 .byte N60 .byte W01 .byte BEND , c_v+8 .byte W01 .byte c_v+6 .byte W01 .byte c_v+9 .byte W01 .byte c_v+2 .byte W01 .byte c_v+8 .byte W01 .byte c_v+2 .byte W01 .byte c_v+4 .byte W01 .byte c_v+4 .byte W01 .byte c_v+0 .byte W01 .byte c_v+4 .byte W01 .byte c_v-3 .byte W01 .byte c_v+2 .byte W01 .byte c_v-4 .byte W01 .byte c_v-1 .byte W01 .byte c_v-1 .byte W01 .byte c_v-6 .byte W01 .byte c_v-1 .byte W01 .byte c_v-8 .byte W01 .byte c_v-5 .byte W01 .byte c_v-6 .byte W01 .byte c_v-7 .byte W01 .byte c_v-5 .byte W01 .byte c_v-13 .byte W01 .byte c_v-7 .byte W01 .byte c_v-14 .byte W01 .byte c_v-10 .byte W01 .byte c_v-12 .byte W01 .byte c_v-16 .byte W01 .byte c_v-10 .byte W01 .byte c_v-19 .byte W01 .byte c_v-12 .byte W01 .byte c_v-18 .byte W01 .byte c_v-17 .byte W01 .byte c_v-16 .byte W01 .byte c_v-19 .byte W01 .byte c_v-15 .byte W01 .byte c_v-20 .byte W01 .byte c_v-14 .byte W01 .byte c_v-22 .byte W01 .byte c_v-15 .byte W01 .byte c_v-14 .byte W01 .byte c_v-20 .byte W01 .byte c_v-12 .byte W01 .byte c_v-21 .byte W01 .byte c_v-16 .byte W01 .byte c_v-17 .byte W01 .byte c_v-19 .byte W01 .byte c_v-14 .byte W01 .byte c_v-21 .byte W01 .byte c_v-13 .byte W01 .byte c_v-17 .byte W01 .byte c_v-16 .byte W01 .byte c_v-16 .byte W01 .byte c_v-19 .byte W01 .byte c_v-13 .byte W01 .byte c_v-21 .byte W01 .byte c_v-15 .byte W01 .byte c_v-17 .byte W01 .byte c_v-14 .byte W01 .byte c_v-13 .byte W01 .byte c_v-21 .byte W01 .byte c_v-19 .byte W03 .byte PAN , c_v+63 .byte VOL , 10*song185restored_mvl/mxv .byte BEND , c_v+9 .byte N60 .byte W01 .byte BEND , c_v+10 .byte W01 .byte c_v+6 .byte W01 .byte c_v+6 .byte W01 .byte c_v+2 .byte W01 .byte c_v+8 .byte W01 .byte c_v+2 .byte W01 .byte c_v+3 .byte W01 .byte c_v+5 .byte W01 .byte c_v-2 .byte W01 .byte c_v+6 .byte W01 .byte c_v-3 .byte W01 .byte c_v+1 .byte W01 .byte c_v-1 .byte W01 .byte c_v-3 .byte W01 .byte c_v+0 .byte W01 .byte c_v-7 .byte W01 .byte c_v-1 .byte W01 .byte c_v-6 .byte W01 .byte c_v-5 .byte W01 .byte c_v-5 .byte W01 .byte c_v-11 .byte W01 .byte c_v-4 .byte W01 .byte c_v-12 .byte W01 .byte c_v-7 .byte W01 .byte c_v-14 .byte W01 .byte c_v-12 .byte W01 ; 005 ---------------------------------------- .byte c_v-10 .byte W01 .byte c_v-18 .byte W01 .byte c_v-10 .byte W01 .byte c_v-17 .byte W01 .byte c_v-17 .byte W01 .byte c_v-17 .byte W01 .byte c_v-17 .byte W01 .byte c_v-13 .byte W01 .byte c_v-20 .byte W01 .byte c_v-14 .byte W01 .byte c_v-19 .byte W01 .byte c_v-16 .byte W01 .byte c_v-16 .byte W01 .byte c_v-20 .byte W01 .byte c_v-12 .byte W01 .byte c_v-20 .byte W01 .byte c_v-15 .byte W01 .byte c_v-16 .byte W01 .byte c_v-17 .byte W01 .byte c_v-13 .byte W01 .byte c_v-21 .byte W01 .byte c_v-14 .byte W01 .byte c_v-18 .byte W01 .byte c_v-17 .byte W01 .byte c_v-15 .byte W01 .byte c_v-16 .byte W01 .byte c_v-13 .byte W01 .byte c_v-21 .byte W01 .byte c_v-14 .byte W01 .byte c_v-20 .byte W01 .byte c_v-17 .byte W01 .byte c_v-15 .byte W01 .byte c_v-21 .byte W01 .byte c_v-13 .byte W01 .byte c_v-20 .byte W01 .byte c_v-18 .byte W03 .byte PAN , c_v-64 .byte VOL , 0*song185restored_mvl/mxv .byte BEND , c_v+6 .byte N60 .byte W01 .byte BEND , c_v+12 .byte W01 .byte c_v+6 .byte W01 .byte c_v+10 .byte W01 .byte c_v+6 .byte W01 .byte c_v+5 .byte W01 .byte c_v+2 .byte W01 .byte c_v+0 .byte W01 .byte c_v+6 .byte W01 .byte c_v+0 .byte W01 .byte c_v+2 .byte W01 .byte c_v+0 .byte W01 .byte c_v-2 .byte W01 .byte c_v+0 .byte W01 .byte c_v-3 .byte W01 .byte c_v+0 .byte W01 .byte c_v-6 .byte W01 .byte c_v-3 .byte W01 .byte c_v-6 .byte W01 .byte c_v-9 .byte W01 .byte c_v-2 .byte W01 .byte c_v-12 .byte W01 .byte c_v-4 .byte W01 .byte c_v-9 .byte W01 .byte c_v-10 .byte W01 .byte c_v-10 .byte W01 .byte c_v-14 .byte W01 .byte c_v-9 .byte W01 .byte c_v-16 .byte W01 .byte c_v-13 .byte W01 .byte c_v-16 .byte W01 .byte c_v-19 .byte W01 .byte c_v-14 .byte W01 .byte c_v-20 .byte W01 .byte c_v-13 .byte W01 .byte c_v-19 .byte W01 .byte c_v-17 .byte W01 .byte c_v-19 .byte W01 .byte c_v-20 .byte W01 .byte c_v-12 .byte W01 .byte c_v-19 .byte W01 .byte c_v-14 .byte W01 .byte c_v-18 .byte W01 .byte c_v-18 .byte W01 .byte c_v-13 .byte W01 .byte c_v-18 .byte W01 .byte c_v-13 .byte W01 .byte c_v-19 .byte W01 .byte c_v-16 .byte W01 .byte c_v-16 .byte W01 .byte c_v-20 .byte W01 .byte c_v-13 .byte W01 .byte c_v-21 .byte W01 .byte c_v-14 .byte W01 .byte c_v-17 .byte W01 .byte c_v-17 .byte W01 .byte c_v-16 .byte W01 .byte c_v-18 .byte W01 ; 006 ---------------------------------------- .byte c_v-13 .byte W01 .byte c_v-19 .byte W01 .byte c_v-14 .byte W01 .byte c_v-19 .byte W03 .byte c_v+15 .byte N60 .byte W01 .byte BEND , c_v+4 .byte W01 .byte c_v+10 .byte W01 .byte c_v+7 .byte W01 .byte c_v+5 .byte W01 .byte c_v+8 .byte W01 .byte c_v+2 .byte W01 .byte c_v+9 .byte W01 .byte c_v+0 .byte W01 .byte c_v+3 .byte W01 .byte c_v+2 .byte W01 .byte c_v-1 .byte W01 .byte c_v+4 .byte W01 .byte c_v-5 .byte W01 .byte c_v+2 .byte W01 .byte c_v-4 .byte W01 .byte c_v+0 .byte W01 .byte c_v-3 .byte W01 .byte c_v-5 .byte W01 .byte c_v-1 .byte W01 .byte c_v-10 .byte W01 .byte c_v-5 .byte W01 .byte c_v-8 .byte W01 .byte c_v-9 .byte W01 .byte c_v-8 .byte W01 .byte c_v-14 .byte W01 .byte c_v-7 .byte W01 .byte c_v-15 .byte W01 .byte c_v-11 .byte W01 .byte c_v-15 .byte W01 .byte c_v-17 .byte W01 .byte c_v-11 .byte W01 .byte c_v-21 .byte W01 .byte c_v-13 .byte W01 .byte c_v-19 .byte W01 .byte c_v-13 .byte W01 .byte c_v-15 .byte W01 .byte c_v-19 .byte W01 .byte c_v-13 .byte W01 .byte c_v-19 .byte W01 .byte c_v-15 .byte W01 .byte c_v-17 .byte W01 .byte c_v-16 .byte W01 .byte c_v-17 .byte W01 .byte c_v-19 .byte W01 .byte c_v-12 .byte W01 .byte c_v-20 .byte W01 .byte c_v-13 .byte W01 .byte c_v-15 .byte W01 .byte c_v-19 .byte W01 .byte c_v-13 .byte W01 .byte c_v-20 .byte W01 .byte c_v-13 .byte W01 .byte c_v-18 .byte W01 .byte c_v-17 .byte W01 .byte c_v-16 .byte W01 .byte c_v-19 .byte W01 .byte c_v-12 .byte W01 .byte c_v-20 .byte W01 .byte c_v-14 .byte W01 .byte c_v-17 .byte W01 .byte c_v-18 .byte W01 .byte c_v-18 .byte W03 .byte c_v+13 .byte N60 .byte W01 .byte BEND , c_v+4 .byte W01 .byte c_v+7 .byte W01 .byte c_v+9 .byte W01 .byte c_v+2 .byte W01 .byte c_v+8 .byte W01 .byte c_v+2 .byte W01 .byte c_v+6 .byte W01 .byte c_v+2 .byte W01 .byte c_v+3 .byte W01 .byte c_v+4 .byte W01 .byte c_v-4 .byte W01 .byte c_v+3 .byte W01 .byte c_v-4 .byte W01 .byte c_v+0 .byte W01 .byte c_v-2 .byte W01 .byte c_v-6 .byte W01 .byte c_v-1 .byte W01 .byte c_v-10 .byte W01 .byte c_v-4 .byte W01 .byte c_v-8 .byte W01 .byte c_v-7 .byte W01 .byte c_v-8 .byte W01 .byte c_v-13 .byte W01 .byte c_v-5 .byte W01 ; 007 ---------------------------------------- .byte c_v-14 .byte W01 .byte c_v-11 .byte W01 .byte c_v-12 .byte W01 .byte c_v-16 .byte W01 .byte c_v-12 .byte W01 .byte c_v-19 .byte W01 .byte c_v-12 .byte W01 .byte c_v-18 .byte W01 .byte c_v-14 .byte W01 .byte c_v-17 .byte W01 .byte c_v-19 .byte W01 .byte c_v-15 .byte W01 .byte c_v-21 .byte W01 .byte c_v-13 .byte W01 .byte c_v-18 .byte W01 .byte c_v-15 .byte W01 .byte c_v-16 .byte W01 .byte c_v-20 .byte W01 .byte c_v-13 .byte W01 .byte c_v-21 .byte W01 .byte c_v-14 .byte W01 .byte c_v-17 .byte W01 .byte c_v-19 .byte W01 .byte c_v-14 .byte W01 .byte c_v-19 .byte W01 .byte c_v-13 .byte W01 .byte c_v-19 .byte W01 .byte c_v-15 .byte W01 .byte c_v-17 .byte W01 .byte c_v-17 .byte W01 .byte c_v-16 .byte W01 .byte c_v-20 .byte W01 .byte c_v-14 .byte W01 .byte c_v-19 .byte W01 .byte c_v-14 .byte W01 .byte c_v-17 .byte W01 .byte c_v-20 .byte W04 .byte c_v+9 .byte N60 .byte W01 .byte BEND , c_v+10 .byte W01 .byte c_v+6 .byte W01 .byte c_v+12 .byte W01 .byte c_v+3 .byte W01 .byte c_v+7 .byte W01 .byte c_v+2 .byte W01 .byte c_v+3 .byte W01 .byte c_v+5 .byte W01 .byte c_v-2 .byte W01 .byte c_v+6 .byte W01 .byte c_v-1 .byte W01 .byte c_v+0 .byte W01 .byte c_v+0 .byte W01 .byte c_v-3 .byte W01 .byte c_v+0 .byte W01 .byte c_v-6 .byte W01 .byte c_v-1 .byte W01 .byte c_v-6 .byte W01 .byte c_v-6 .byte W01 .byte c_v-8 .byte W01 .byte c_v-7 .byte W01 .byte c_v-4 .byte W01 .byte c_v-13 .byte W01 .byte c_v-5 .byte W01 .byte c_v-14 .byte W01 .byte c_v-12 .byte W01 .byte c_v-10 .byte W01 .byte c_v-17 .byte W01 .byte c_v-10 .byte W01 .byte c_v-18 .byte W01 .byte c_v-14 .byte W01 .byte c_v-21 .byte W01 .byte c_v-17 .byte W01 .byte c_v-14 .byte W01 .byte c_v-20 .byte W01 .byte c_v-13 .byte W01 .byte c_v-20 .byte W01 .byte c_v-14 .byte W01 .byte c_v-15 .byte W01 .byte c_v-19 .byte W01 .byte c_v-13 .byte W01 .byte c_v-20 .byte W01 .byte c_v-14 .byte W01 .byte c_v-18 .byte W01 .byte c_v-17 .byte W01 .byte c_v-14 .byte W01 .byte c_v-19 .byte W01 .byte c_v-14 .byte W01 .byte c_v-19 .byte W01 .byte c_v-14 .byte W01 .byte c_v-18 .byte W01 .byte c_v-15 .byte W01 .byte c_v-17 .byte W01 .byte c_v-18 .byte W01 .byte c_v-16 .byte W01 ; 008 ---------------------------------------- .byte c_v-21 .byte W01 .byte c_v-12 .byte W01 .byte c_v-17 .byte W01 .byte c_v-14 .byte W01 .byte c_v-14 .byte W01 .byte c_v-18 .byte W01 .byte c_v-20 .byte W03 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+8 .byte N28 .byte W01 .byte BEND , c_v+12 .byte W01 .byte c_v+3 .byte W01 .byte c_v+10 .byte W01 .byte c_v+4 .byte W01 .byte c_v+6 .byte W01 .byte c_v+6 .byte W01 .byte c_v+0 .byte W01 .byte c_v+6 .byte W01 .byte c_v-1 .byte W01 .byte c_v+6 .byte W01 .byte c_v+0 .byte W01 .byte c_v-1 .byte W01 .byte c_v+0 .byte W01 .byte c_v-3 .byte W01 .byte c_v+0 .byte W01 .byte c_v-7 .byte W01 .byte c_v-3 .byte W01 .byte c_v-6 .byte W01 .byte c_v-9 .byte W01 .byte c_v-3 .byte W01 .byte c_v-12 .byte W01 .byte c_v-4 .byte W01 .byte c_v-12 .byte W01 .byte c_v-9 .byte W01 .byte c_v-10 .byte W01 .byte c_v-14 .byte W01 .byte c_v-9 .byte W01 .byte c_v-17 .byte W01 .byte c_v-11 .byte W19 .byte VOL , 0*song185restored_mvl/mxv .byte BEND , c_v+14 .byte N28 .byte W01 .byte BEND , c_v+4 .byte W01 .byte c_v+10 .byte W01 .byte c_v+8 .byte W01 .byte c_v+10 .byte W01 .byte c_v+8 .byte W01 .byte c_v+5 .byte W01 .byte c_v+8 .byte W01 .byte c_v+0 .byte W01 .byte c_v+4 .byte W01 .byte c_v+3 .byte W01 .byte c_v-1 .byte W01 .byte c_v+4 .byte W01 .byte c_v-4 .byte W01 .byte c_v+1 .byte W01 .byte c_v-2 .byte W01 .byte c_v+0 .byte W01 .byte c_v-4 .byte W01 .byte c_v-8 .byte W01 .byte c_v-2 .byte W01 .byte c_v-10 .byte W01 .byte c_v-5 .byte W01 .byte c_v-9 .byte W01 .byte c_v-10 .byte W01 .byte c_v-8 .byte W01 .byte c_v-15 .byte W01 .byte c_v-9 .byte W01 .byte c_v-14 .byte W01 .byte c_v-11 .byte W01 .byte c_v-14 .byte W01 .byte c_v-11 .byte W09 ; 009 ---------------------------------------- .byte W10 .byte c_v+10 .byte N28 .byte W01 .byte BEND , c_v+10 .byte W01 .byte c_v+6 .byte W01 .byte c_v+11 .byte W01 .byte c_v+3 .byte W01 .byte c_v+9 .byte W01 .byte c_v+2 .byte W01 .byte c_v+2 .byte W01 .byte c_v+4 .byte W01 .byte c_v+3 .byte W01 .byte c_v+6 .byte W01 .byte c_v-1 .byte W01 .byte c_v+2 .byte W01 .byte c_v+0 .byte W01 .byte c_v-3 .byte W01 .byte c_v+0 .byte W01 .byte c_v-7 .byte W01 .byte c_v-1 .byte W01 .byte c_v-6 .byte W01 .byte c_v-5 .byte W01 .byte c_v-4 .byte W01 .byte c_v-7 .byte W01 .byte c_v-4 .byte W01 .byte c_v-12 .byte W01 .byte c_v-6 .byte W01 .byte c_v-14 .byte W01 .byte c_v-14 .byte W01 .byte c_v-12 .byte W01 .byte c_v-16 .byte W01 .byte c_v-13 .byte W56 .byte W01 ; 010 ---------------------------------------- .byte W76 .byte VOICE , 27 .byte VOL , 39*song185restored_mvl/mxv .byte PAN , c_v-64 .byte BENDR , 12 .byte 12 .byte BEND , c_v-13 .byte GOTO .word @song185restored_3 ;**************** Track 4 (Midi-Chn.4) ****************; @song185restored_4: .byte KEYSH , song185restored_key+0 ; 000 ---------------------------------------- .byte VOICE , 27 .byte MODT , 0 .byte LFOS , 44 .byte PAN , c_v+63 .byte VOL , 31*song185restored_mvl/mxv .byte BENDR , 12 .byte PAN , c_v+63 .byte VOL , 31*song185restored_mvl/mxv .byte 24*song185restored_mvl/mxv .byte PAN , c_v+0 .byte BENDR , 12 .byte PAN , c_v+0 .byte VOL , 24*song185restored_mvl/mxv .byte 24*song185restored_mvl/mxv .byte PAN , c_v+0 .byte BENDR , 12 .byte PAN , c_v+0 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-43 .byte W15 .byte PAN , c_v+63 .byte VOL , 44*song185restored_mvl/mxv .byte W01 .byte BEND , c_v+10 .byte TIE , En1 , v088 .byte W80 ; 001 ---------------------------------------- .byte W44 .byte W02 .byte EOT .byte W48 .byte W02 ; 002 ---------------------------------------- .byte W80 .byte W03 .byte TIE , Fs1 .byte W13 ; 003 ---------------------------------------- .byte W96 ; 004 ---------------------------------------- .byte W17 .byte EOT .byte W03 .byte TIE , En1 .byte W32 .byte W01 .byte BEND , c_v+9 .byte W04 .byte c_v+8 .byte W05 .byte c_v+7 .byte W05 .byte c_v+6 .byte W05 .byte c_v+5 .byte W04 .byte c_v+4 .byte W05 .byte c_v+3 .byte W05 .byte c_v+2 .byte W05 .byte c_v+1 .byte W05 ; 005 ---------------------------------------- .byte c_v+0 .byte W05 .byte c_v+0 .byte W05 .byte c_v-1 .byte W05 .byte c_v-3 .byte W05 .byte c_v-3 .byte W06 .byte c_v-5 .byte W05 .byte c_v-6 .byte W06 .byte c_v-7 .byte W05 .byte c_v-8 .byte W05 .byte c_v-9 .byte W03 .byte EOT .byte W44 .byte W02 ; 006 ---------------------------------------- .byte W84 .byte W03 .byte BEND , c_v+10 .byte N42 , Cs1 .byte W09 ; 007 ---------------------------------------- .byte W24 .byte BEND , c_v+14 .byte W01 .byte c_v+20 .byte W01 .byte c_v+23 .byte W01 .byte c_v+30 .byte W01 .byte c_v+35 .byte W01 .byte c_v+40 .byte W01 .byte c_v+45 .byte W01 .byte c_v+51 .byte W01 .byte c_v+56 .byte W01 .byte c_v+61 .byte W01 .byte c_v+11 .byte N10 , Bn1 .byte W01 .byte BEND , c_v+16 .byte W01 .byte c_v+22 .byte W01 .byte c_v+27 .byte W01 .byte c_v+32 .byte W01 .byte c_v+38 .byte W01 .byte c_v+42 .byte W01 .byte c_v+48 .byte W01 .byte c_v+54 .byte W01 .byte c_v+59 .byte W01 .byte c_v+63 .byte W01 .byte c_v+13 .byte N10 , An2 .byte W01 .byte BEND , c_v+20 .byte W01 .byte c_v+25 .byte W01 .byte c_v+29 .byte W01 .byte c_v+34 .byte W01 .byte c_v+40 .byte W01 .byte c_v+46 .byte W01 .byte c_v+50 .byte W01 .byte c_v+55 .byte W01 .byte c_v+61 .byte W01 .byte c_v+12 .byte N10 , Gn3 .byte W01 .byte BEND , c_v+17 .byte W01 .byte c_v+21 .byte W01 .byte c_v+29 .byte W01 .byte c_v+32 .byte W01 .byte c_v+37 .byte W01 .byte c_v+42 .byte W01 .byte c_v+49 .byte W01 .byte c_v+54 .byte W01 .byte c_v+58 .byte W01 .byte c_v+63 .byte W01 .byte c_v+15 .byte N04 .byte W01 .byte BEND , c_v+20 .byte W01 .byte c_v+25 .byte W01 .byte c_v+29 .byte W01 .byte c_v+54 .byte N01 , CnM1 .byte W01 .byte BEND , c_v+21 .byte N01 , Dn0 .byte N01 , Cs1 .byte W01 .byte BEND , c_v+51 .byte W01 .byte c_v+37 .byte N02 , Cs2 .byte W01 .byte BEND , c_v+63 .byte W01 .byte c_v+26 .byte N03 , Cn3 .byte W01 .byte BEND , c_v+46 .byte W01 .byte c_v+61 .byte W01 .byte c_v+15 .byte N04 , Gn3 .byte W01 .byte BEND , c_v+30 .byte W01 .byte c_v+43 .byte W01 .byte c_v+53 .byte W01 .byte c_v+63 .byte W01 .byte c_v+33 .byte N01 , GnM1 .byte N01 , Dn1 .byte N01 , Gn3 .byte W01 .byte BEND , c_v+40 .byte N01 , Cs2 .byte W01 .byte BEND , c_v+20 .byte N01 , Cn3 .byte W01 .byte BEND , c_v+57 .byte W01 .byte c_v+20 .byte N03 , Gn3 .byte W01 .byte BEND , c_v+36 .byte W01 .byte c_v+56 .byte W01 .byte c_v+59 .byte N01 , AnM2 .byte N01 , Fn0 .byte W01 .byte BEND , c_v+12 .byte N01 , Gs1 .byte N01 , Gs2 .byte W01 .byte BEND , c_v+62 .byte W01 .byte c_v+40 .byte N01 , Fs3 .byte W01 .byte BEND , c_v+12 .byte N01 , Gn3 .byte W01 .byte BEND , c_v+29 .byte W01 ; 008 ---------------------------------------- .byte c_v+57 .byte N01 , Dn1 .byte N01 , Cn2 .byte W01 .byte BEND , c_v+63 .byte N01 , As2 .byte W01 .byte BEND , c_v+46 .byte N01 , Gn3 .byte W01 .byte BEND , c_v+12 .byte N01 .byte W01 .byte BEND , c_v+51 .byte N01 , Fs2 .byte W01 .byte BEND , c_v+11 .byte N01 , Gn3 .byte W01 .byte BEND , c_v+29 .byte W02 .byte VOICE , 28 .byte W01 .byte PAN , c_v-64 .byte VOL , 31*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N32 , Cn3 .byte W17 .byte VOL , 24*song185restored_mvl/mxv .byte W15 .byte BEND , c_v-7 .byte W01 .byte c_v-18 .byte W01 .byte c_v-37 .byte W01 .byte c_v-55 .byte W01 .byte c_v-17 .byte N02 , Cn2 .byte W01 .byte BEND , c_v-41 .byte W01 .byte c_v-22 .byte N01 , An0 .byte W01 .byte BEND , c_v+1 .byte N01 , CsM1 .byte W01 .byte BEND , c_v-1 .byte N01 , BnM2 .byte N17 , Cn5 .byte W01 .byte BEND , c_v-3 .byte W01 .byte c_v-7 .byte W01 .byte c_v-9 .byte W01 .byte PAN , c_v-18 .byte VOL , 31*song185restored_mvl/mxv .byte BEND , c_v-13 .byte W01 .byte c_v-16 .byte W01 .byte c_v-20 .byte W01 .byte c_v-23 .byte W01 .byte c_v-25 .byte W01 .byte c_v-31 .byte W01 .byte c_v-35 .byte W01 .byte c_v-39 .byte W01 .byte c_v-42 .byte W01 .byte c_v-48 .byte W01 .byte c_v-52 .byte W01 .byte c_v-58 .byte W01 .byte c_v-61 .byte W01 .byte c_v-3 .byte N08 , Cn4 .byte W01 .byte BEND , c_v-11 .byte W01 .byte c_v-16 .byte W01 .byte c_v-23 .byte W01 .byte PAN , c_v+0 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-31 .byte W01 .byte c_v-39 .byte W01 .byte PAN , c_v+27 .byte VOL , 31*song185restored_mvl/mxv .byte BEND , c_v-48 .byte W01 .byte c_v-56 .byte W01 .byte c_v+0 .byte N04 , Cn3 .byte W01 .byte BEND , c_v-15 .byte W01 .byte c_v-26 .byte W01 .byte c_v-41 .byte W01 .byte c_v-62 .byte W01 .byte c_v-17 .byte N02 , Cn2 .byte W01 .byte BEND , c_v-51 .byte W01 .byte c_v-19 .byte N01 , Bn0 .byte W01 .byte BEND , c_v-33 .byte N01 , GnM1 .byte W01 .byte BEND , c_v+0 .byte N18 , Cn5 .byte W01 .byte BEND , c_v-3 .byte W01 .byte c_v-6 .byte W01 .byte c_v-8 .byte W01 .byte c_v-12 .byte W01 .byte c_v-14 .byte W01 .byte c_v-18 .byte W01 .byte PAN , c_v+63 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-21 .byte W01 .byte c_v-25 .byte W01 .byte c_v-28 .byte W01 .byte c_v-32 .byte W01 .byte c_v-36 .byte W01 .byte c_v-39 .byte W01 ; 009 ---------------------------------------- .byte c_v-44 .byte W01 .byte c_v-48 .byte W01 .byte c_v-52 .byte W01 .byte c_v-57 .byte W01 .byte c_v-61 .byte W01 .byte c_v-2 .byte N09 , Cn4 .byte W01 .byte BEND , c_v-7 .byte W01 .byte c_v-12 .byte W01 .byte c_v-19 .byte W01 .byte c_v-25 .byte W01 .byte c_v-31 .byte W01 .byte c_v-40 .byte W01 .byte c_v-47 .byte W01 .byte c_v-56 .byte W01 .byte c_v-2 .byte N04 , Cn3 .byte W01 .byte BEND , c_v-9 .byte W01 .byte c_v-23 .byte W01 .byte c_v-36 .byte W01 .byte c_v-53 .byte W01 .byte c_v+2 .byte N02 , Bn1 .byte W01 .byte VOL , 31*song185restored_mvl/mxv .byte BEND , c_v-30 .byte W01 .byte c_v-51 .byte W01 .byte c_v-44 .byte N01 , Bn0 .byte W01 .byte BEND , c_v+0 .byte N01 , EnM1 .byte W01 .byte BEND , c_v-1 .byte N21 , Cn5 .byte W01 .byte BEND , c_v-4 .byte W01 .byte c_v-7 .byte W01 .byte c_v-9 .byte W01 .byte c_v-13 .byte W01 .byte c_v-15 .byte W01 .byte c_v-17 .byte W01 .byte c_v-20 .byte W01 .byte c_v-23 .byte W01 .byte c_v-28 .byte W01 .byte c_v-30 .byte W01 .byte c_v-33 .byte W01 .byte c_v-37 .byte W01 .byte c_v-40 .byte W01 .byte c_v-44 .byte W01 .byte c_v-48 .byte W01 .byte c_v-52 .byte W01 .byte c_v-56 .byte W01 .byte c_v-55 .byte W01 .byte c_v-59 .byte W01 .byte c_v-63 .byte W01 .byte c_v+1 .byte N10 , Bn3 .byte W01 .byte BEND , c_v-3 .byte W01 .byte c_v-8 .byte W01 .byte c_v-14 .byte W01 .byte c_v-19 .byte W01 .byte c_v-24 .byte W01 .byte c_v-33 .byte W01 .byte c_v-41 .byte W01 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-48 .byte W01 .byte c_v-57 .byte W01 .byte c_v-2 .byte N05 , Bn2 .byte W01 .byte BEND , c_v-15 .byte W01 .byte c_v-25 .byte W01 .byte c_v-37 .byte W01 .byte c_v-55 .byte W01 .byte c_v-1 .byte N02 , As1 .byte W01 .byte BEND , c_v-24 .byte W01 .byte c_v-56 .byte W01 .byte c_v-43 .byte N01 , An0 .byte W01 .byte BEND , c_v-33 .byte N01 , FsM1 .byte W01 .byte BEND , c_v-1 .byte N01 , AsM2 .byte TIE , Cn5 .byte W01 .byte BEND , c_v-3 .byte W01 .byte c_v-5 .byte W01 .byte c_v-7 .byte W01 .byte c_v-10 .byte W01 .byte c_v-13 .byte W01 .byte c_v-16 .byte W01 .byte c_v-17 .byte W01 .byte c_v-20 .byte W01 .byte c_v-23 .byte W01 .byte c_v-26 .byte W01 .byte c_v-43 .byte W04 .byte PAN , c_v+27 .byte VOL , 31*song185restored_mvl/mxv .byte W16 ; 010 ---------------------------------------- .byte W01 .byte PAN , c_v+0 .byte VOL , 24*song185restored_mvl/mxv .byte W02 .byte PAN , c_v-18 .byte VOL , 31*song185restored_mvl/mxv .byte W18 .byte PAN , c_v-64 .byte VOL , 24*song185restored_mvl/mxv .byte W24 .byte W02 .byte 31*song185restored_mvl/mxv .byte W24 .byte W02 .byte EOT .byte W03 .byte VOICE , 28 .byte VOL , 24*song185restored_mvl/mxv .byte PAN , c_v+0 .byte BENDR , 12 .byte VOL , 31*song185restored_mvl/mxv .byte BENDR , 12 .byte VOL , 31*song185restored_mvl/mxv .byte BEND , c_v-43 .byte GOTO .word @song185restored_4 ;**************** Track 5 (Midi-Chn.5) ****************; @song185restored_5: .byte KEYSH , song185restored_key+0 ; 000 ---------------------------------------- .byte VOICE , 28 .byte MODT , 0 .byte LFOS , 44 .byte PAN , c_v+0 .byte VOL , 24*song185restored_mvl/mxv .byte BENDR , 12 .byte PAN , c_v+0 .byte VOL , 24*song185restored_mvl/mxv .byte 24*song185restored_mvl/mxv .byte PAN , c_v+0 .byte BENDR , 12 .byte PAN , c_v+0 .byte VOL , 24*song185restored_mvl/mxv .byte 24*song185restored_mvl/mxv .byte PAN , c_v+0 .byte BENDR , 12 .byte PAN , c_v+0 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+1 .byte W02 .byte VOL , 50*song185restored_mvl/mxv .byte BEND , c_v+1 .byte N05 , As1 , v088 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-1 .byte N05 , Cn5 .byte W08 .byte N05 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v-2 .byte N05 .byte W08 .byte VOL , 59*song185restored_mvl/mxv .byte BEND , c_v+1 .byte N05 , Gs4 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte W01 .byte BEND , c_v-1 .byte N05 , Cn5 .byte W08 .byte N05 .byte W08 .byte BEND , c_v+1 .byte N05 , As1 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v-1 .byte N05 , Cn5 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Gn4 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+2 .byte N05 , Fs4 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-1 .byte N05 , Cn5 .byte W05 ; 001 ---------------------------------------- .byte W03 .byte BEND , c_v-1 .byte N05 , En3 .byte W08 .byte N05 .byte W08 .byte N05 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte N02 .byte W09 .byte VOL , 50*song185restored_mvl/mxv .byte BEND , c_v+1 .byte N05 , As1 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-1 .byte N05 , Cn5 .byte W08 .byte N05 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v-2 .byte N05 .byte W08 .byte VOL , 59*song185restored_mvl/mxv .byte BEND , c_v+1 .byte N05 , Gs4 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-1 .byte N05 , Cn5 .byte W08 .byte N05 .byte W08 .byte BEND , c_v+1 .byte N05 , As1 .byte W04 ; 002 ---------------------------------------- .byte W04 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v-1 .byte N05 , Cn5 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Gn4 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+2 .byte N05 , Fs4 .byte W09 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-1 .byte N05 , Cn5 .byte W08 .byte BEND , c_v-1 .byte N05 , En3 .byte W08 .byte N05 .byte W08 .byte N05 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte N02 .byte W08 .byte VOL , 50*song185restored_mvl/mxv .byte BEND , c_v+1 .byte N05 , As1 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-1 .byte N05 , Cn5 .byte W08 .byte N05 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v-2 .byte N05 .byte W03 ; 003 ---------------------------------------- .byte W05 .byte VOL , 59*song185restored_mvl/mxv .byte BEND , c_v+1 .byte N05 , Gs4 .byte W09 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-1 .byte N05 , Cn5 .byte W08 .byte N05 .byte W08 .byte BEND , c_v+1 .byte N05 , As1 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v-1 .byte N05 , Cn5 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Gn4 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+2 .byte N05 , Fs4 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-1 .byte N05 , Cn5 .byte W08 .byte BEND , c_v-1 .byte N05 , En3 .byte W08 .byte N05 .byte W08 .byte N05 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte N02 .byte W02 ; 004 ---------------------------------------- .byte W07 .byte VOL , 50*song185restored_mvl/mxv .byte BEND , c_v+1 .byte N05 , Fs2 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-2 .byte N05 , An1 .byte W08 .byte N05 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte N05 , An2 .byte W08 .byte VOL , 59*song185restored_mvl/mxv .byte N05 , Cn5 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte N05 , An1 .byte W08 .byte N05 .byte W08 .byte BEND , c_v+1 .byte N05 , Fs2 .byte W09 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v-2 .byte N05 , An1 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-2 .byte N05 , Cn5 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v-3 .byte W08 ; 005 ---------------------------------------- .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-2 .byte N05 , An1 .byte W08 .byte BEND , c_v+2 .byte N05 , Fn4 .byte W08 .byte N05 .byte W08 .byte N05 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte N02 .byte W08 .byte VOL , 50*song185restored_mvl/mxv .byte BEND , c_v+1 .byte N05 , Fs2 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-2 .byte N05 , An1 .byte W09 .byte N05 .byte W07 .byte PAN , c_v-18 .byte VOL , 31*song185restored_mvl/mxv .byte W01 .byte PAN , c_v+0 .byte VOL , 39*song185restored_mvl/mxv .byte N05 , An2 .byte W08 .byte VOL , 59*song185restored_mvl/mxv .byte N05 , Cn5 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte N05 , An1 .byte W08 .byte N05 .byte W07 ; 006 ---------------------------------------- .byte W01 .byte BEND , c_v+1 .byte N05 , Fs2 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v-2 .byte N05 , An1 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-2 .byte N05 , Cn5 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v-3 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-2 .byte N05 , An1 .byte W08 .byte BEND , c_v+2 .byte N05 , Fn4 .byte W08 .byte N05 .byte W09 .byte N05 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte N02 .byte W08 .byte VOL , 50*song185restored_mvl/mxv .byte BEND , c_v+1 .byte N05 , Fs2 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-2 .byte N05 , An1 .byte W08 .byte N05 .byte W06 ; 007 ---------------------------------------- .byte W02 .byte VOL , 39*song185restored_mvl/mxv .byte N05 , An2 .byte W08 .byte VOL , 59*song185restored_mvl/mxv .byte N05 , Cn5 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte N05 , An1 .byte W08 .byte N05 .byte W08 .byte BEND , c_v+1 .byte N05 , Fs2 .byte W09 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v-2 .byte N05 , An1 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-2 .byte N05 , Cn5 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v-3 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-2 .byte N05 , An1 .byte W08 .byte BEND , c_v+2 .byte N05 , Fn4 .byte W08 .byte N05 .byte W08 .byte N05 .byte W05 ; 008 ---------------------------------------- .byte W04 .byte VOL , 39*song185restored_mvl/mxv .byte N02 .byte W07 .byte VOL , 50*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn3 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+2 .byte N05 , As2 .byte W08 .byte N05 .byte W09 .byte VOL , 39*song185restored_mvl/mxv .byte N05 , As3 .byte W08 .byte VOL , 59*song185restored_mvl/mxv .byte BEND , c_v+2 .byte N05 , Ds2 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+2 .byte N05 , As2 .byte W08 .byte N05 .byte W08 .byte BEND , c_v+0 .byte N05 , Cn3 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+2 .byte N05 , As2 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-2 .byte N05 , An2 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Ds3 .byte W04 ; 009 ---------------------------------------- .byte W04 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+2 .byte N05 , As2 .byte W08 .byte BEND , c_v+0 .byte N05 , Fn1 .byte W09 .byte N05 .byte W08 .byte N05 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte N02 .byte W08 .byte VOL , 50*song185restored_mvl/mxv .byte BEND , c_v+2 .byte N05 , En3 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+2 .byte N05 , Fs3 .byte W08 .byte N05 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte N05 , Fs4 .byte W08 .byte VOL , 59*song185restored_mvl/mxv .byte BEND , c_v+1 .byte N05 , Fn3 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+2 .byte N05 , Fs3 .byte W08 .byte N05 .byte W03 ; 010 ---------------------------------------- .byte W06 .byte BEND , c_v+2 .byte N05 , En3 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+2 .byte N05 , Fs3 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+2 .byte N05 , As3 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v-1 .byte N05 , En4 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+2 .byte N05 , Fs3 .byte W08 .byte BEND , c_v+1 .byte N05 , Cn4 .byte W08 .byte N05 .byte W08 .byte N05 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte N02 .byte W06 .byte VOICE , 28 .byte VOL , 24*song185restored_mvl/mxv .byte PAN , c_v+0 .byte BENDR , 12 .byte PAN , c_v+0 .byte VOL , 39*song185restored_mvl/mxv .byte BENDR , 12 .byte PAN , c_v+0 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+1 .byte GOTO .word @song185restored_5 ;**************** Track 6 (Midi-Chn.6) ****************; @song185restored_6: .byte KEYSH , song185restored_key+0 ; 000 ---------------------------------------- .byte VOICE , 28 .byte MODT , 0 .byte LFOS , 44 .byte PAN , c_v+63 .byte VOL , 44*song185restored_mvl/mxv .byte BENDR , 12 .byte PAN , c_v+63 .byte VOL , 44*song185restored_mvl/mxv .byte PAN , c_v+63 .byte VOL , 44*song185restored_mvl/mxv .byte BENDR , 12 .byte PAN , c_v+63 .byte VOL , 44*song185restored_mvl/mxv .byte PAN , c_v+63 .byte VOL , 44*song185restored_mvl/mxv .byte BENDR , 12 .byte PAN , c_v+63 .byte VOL , 44*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn1 , v088 .byte W07 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , As4 .byte W09 .byte N05 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte PAN , c_v-64 .byte BEND , c_v+0 .byte N05 , Gs4 .byte W08 .byte VOL , 50*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Ds4 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , As4 .byte W08 .byte VOL , 31*song185restored_mvl/mxv .byte PAN , c_v+63 .byte N05 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn1 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , As4 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte PAN , c_v-64 .byte BEND , c_v+0 .byte N05 , Fn4 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn1 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , As4 .byte W08 ; 001 ---------------------------------------- .byte W01 .byte VOL , 44*song185restored_mvl/mxv .byte PAN , c_v+63 .byte BEND , c_v+0 .byte N05 , An3 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , As4 .byte W08 .byte VOL , 44*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Fn4 .byte W08 .byte PAN , c_v-64 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn1 .byte W08 .byte VOL , 44*song185restored_mvl/mxv .byte N05 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , As4 .byte W08 .byte PAN , c_v+63 .byte N05 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Gs4 .byte W08 .byte VOL , 50*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Ds4 .byte W08 .byte PAN , c_v-64 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , As4 .byte W08 .byte VOL , 31*song185restored_mvl/mxv .byte W01 .byte N05 .byte W07 .byte VOL , 24*song185restored_mvl/mxv .byte W01 .byte BEND , c_v+0 .byte N05 , Cn1 .byte W06 ; 002 ---------------------------------------- .byte W02 .byte PAN , c_v+63 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , As4 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Fn4 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn1 .byte W08 .byte PAN , c_v-64 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , As4 .byte W08 .byte VOL , 44*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , An3 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , As4 .byte W08 .byte PAN , c_v+0 .byte VOL , 50*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Fn4 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn1 .byte W09 .byte PAN , c_v+63 .byte VOL , 44*song185restored_mvl/mxv .byte N04 .byte W07 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , As4 .byte W09 .byte N05 .byte W08 .byte PAN , c_v-64 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Gs4 .byte W05 ; 003 ---------------------------------------- .byte W03 .byte VOL , 50*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Ds4 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , As4 .byte W08 .byte PAN , c_v+63 .byte VOL , 31*song185restored_mvl/mxv .byte N05 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn1 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , As4 .byte W08 .byte PAN , c_v-64 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Fn4 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn1 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte W01 .byte BEND , c_v+0 .byte N05 , As4 .byte W08 .byte PAN , c_v+63 .byte VOL , 44*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , An3 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , As4 .byte W08 .byte VOL , 44*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Fn4 .byte W08 .byte PAN , c_v-64 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn1 .byte W04 ; 004 ---------------------------------------- .byte W04 .byte VOL , 44*song185restored_mvl/mxv .byte N05 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , As4 .byte W08 .byte PAN , c_v+63 .byte N05 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Gs4 .byte W08 .byte VOL , 50*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Ds4 .byte W08 .byte PAN , c_v-64 .byte VOL , 24*song185restored_mvl/mxv .byte W01 .byte BEND , c_v+0 .byte N05 , As4 .byte W07 .byte VOL , 31*song185restored_mvl/mxv .byte W01 .byte N05 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn1 .byte W08 .byte PAN , c_v+63 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , As4 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Fn4 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn1 .byte W08 .byte PAN , c_v-64 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , As4 .byte W03 ; 005 ---------------------------------------- .byte W05 .byte VOL , 44*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , An3 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , As4 .byte W08 .byte PAN , c_v+0 .byte VOL , 50*song185restored_mvl/mxv .byte W01 .byte BEND , c_v+0 .byte N05 , Fn4 .byte W07 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn1 .byte W09 .byte PAN , c_v+63 .byte VOL , 44*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn2 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , CnM2 .byte W08 .byte N05 .byte W08 .byte PAN , c_v-64 .byte VOL , 39*song185restored_mvl/mxv .byte N05 , CnM1 .byte W08 .byte VOL , 50*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Gs0 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , CnM2 .byte W08 .byte PAN , c_v+63 .byte VOL , 31*song185restored_mvl/mxv .byte N05 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn2 .byte W02 ; 006 ---------------------------------------- .byte W06 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , CnM2 .byte W08 .byte PAN , c_v-64 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , GnM1 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte N05 , Cn2 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte W01 .byte BEND , c_v+0 .byte N05 , CnM2 .byte W08 .byte PAN , c_v+63 .byte VOL , 44*song185restored_mvl/mxv .byte N05 , Cn4 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte N05 , CnM2 .byte W08 .byte VOL , 44*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , GnM1 .byte W08 .byte PAN , c_v-64 .byte VOL , 24*song185restored_mvl/mxv .byte N05 , Cn2 .byte W08 .byte VOL , 44*song185restored_mvl/mxv .byte N05 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , CnM2 .byte W08 .byte PAN , c_v+63 .byte N05 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte N05 , CnM1 .byte W01 ; 007 ---------------------------------------- .byte W07 .byte VOL , 50*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Gs0 .byte W09 .byte PAN , c_v-64 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , CnM2 .byte W08 .byte VOL , 31*song185restored_mvl/mxv .byte N05 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn2 .byte W08 .byte PAN , c_v+63 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , CnM2 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , GnM1 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte N05 , Cn2 .byte W08 .byte PAN , c_v-64 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , CnM2 .byte W08 .byte VOL , 44*song185restored_mvl/mxv .byte N05 , Cn4 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte N05 , CnM2 .byte W09 .byte PAN , c_v+0 .byte VOL , 50*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , GnM1 .byte W07 ; 008 ---------------------------------------- .byte W01 .byte VOL , 24*song185restored_mvl/mxv .byte N05 , Cn2 .byte W08 .byte PAN , c_v+63 .byte VOL , 44*song185restored_mvl/mxv .byte BEND , c_v-1 .byte N04 , Gs2 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn2 .byte W08 .byte N05 .byte W08 .byte PAN , c_v-64 .byte VOL , 39*song185restored_mvl/mxv .byte N05 , Cn3 .byte W08 .byte VOL , 50*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cs4 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn2 .byte W08 .byte PAN , c_v+63 .byte VOL , 31*song185restored_mvl/mxv .byte N05 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-1 .byte N05 , Gs2 .byte W09 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn2 .byte W08 .byte PAN , c_v-64 .byte VOL , 24*song185restored_mvl/mxv .byte N05 , Gn3 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v-1 .byte N05 , Gs2 .byte W06 ; 009 ---------------------------------------- .byte W02 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn2 .byte W08 .byte PAN , c_v+63 .byte VOL , 44*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Ds4 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn2 .byte W08 .byte VOL , 44*song185restored_mvl/mxv .byte N05 , Gn3 .byte W08 .byte PAN , c_v-64 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-1 .byte N05 , Gs2 .byte W08 .byte VOL , 44*song185restored_mvl/mxv .byte N05 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn2 .byte W08 .byte PAN , c_v+63 .byte N05 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte N05 , Cn3 .byte W09 .byte VOL , 50*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cs4 .byte W08 .byte PAN , c_v-64 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn2 .byte W08 .byte VOL , 31*song185restored_mvl/mxv .byte N05 .byte W05 ; 010 ---------------------------------------- .byte W03 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-1 .byte N05 , Gs2 .byte W08 .byte PAN , c_v+63 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn2 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte N05 , Gn3 .byte W08 .byte VOL , 39*song185restored_mvl/mxv .byte BEND , c_v-1 .byte N05 , Gs2 .byte W08 .byte PAN , c_v-64 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn2 .byte W08 .byte VOL , 44*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Ds4 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+0 .byte N05 , Cn2 .byte W09 .byte PAN , c_v+0 .byte VOL , 50*song185restored_mvl/mxv .byte N05 , Gn3 .byte W08 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-1 .byte N05 , Gs2 .byte W08 .byte VOICE , 28 .byte PAN , c_v+63 .byte VOL , 44*song185restored_mvl/mxv .byte BENDR , 12 .byte PAN , c_v+0 .byte VOL , 24*song185restored_mvl/mxv .byte BENDR , 12 .byte PAN , c_v+0 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v-1 .byte GOTO .word @song185restored_6 ;**************** Track 7 (Midi-Chn.7) ****************; @song185restored_7: .byte KEYSH , song185restored_key+0 ; 000 ---------------------------------------- .byte VOICE , 27 .byte MODT , 0 .byte LFOS , 44 .byte PAN , c_v+63 .byte VOL , 10*song185restored_mvl/mxv .byte BENDR , 12 .byte PAN , c_v+63 .byte VOL , 10*song185restored_mvl/mxv .byte 81*song185restored_mvl/mxv .byte PAN , c_v+0 .byte BENDR , 12 .byte PAN , c_v+0 .byte VOL , 81*song185restored_mvl/mxv .byte 81*song185restored_mvl/mxv .byte PAN , c_v+0 .byte BENDR , 12 .byte PAN , c_v+0 .byte VOL , 81*song185restored_mvl/mxv .byte BEND , c_v+0 .byte W05 .byte PAN , c_v+63 .byte VOL , 31*song185restored_mvl/mxv .byte BEND , c_v+10 .byte N28 , Cn3 , v088 .byte W01 .byte BEND , c_v+9 .byte W01 .byte c_v+10 .byte W01 .byte c_v+6 .byte W01 .byte c_v+6 .byte W01 .byte c_v+6 .byte W01 .byte c_v+4 .byte W01 .byte c_v+6 .byte W01 .byte c_v+0 .byte W01 .byte c_v+5 .byte W01 .byte c_v-1 .byte W01 .byte c_v+5 .byte W01 .byte c_v-5 .byte W01 .byte c_v+3 .byte W01 .byte c_v-6 .byte W01 .byte c_v+2 .byte W01 .byte c_v-8 .byte W01 .byte c_v+0 .byte W01 .byte c_v-10 .byte W01 .byte c_v-2 .byte W01 .byte c_v-10 .byte W01 .byte c_v-2 .byte W01 .byte c_v-10 .byte W01 .byte c_v-9 .byte W01 .byte c_v-10 .byte W01 .byte c_v-11 .byte W01 .byte c_v-12 .byte W01 .byte c_v-14 .byte W01 .byte c_v-13 .byte W01 .byte c_v-13 .byte W19 .byte VOL , 10*song185restored_mvl/mxv .byte PAN , c_v-64 .byte BEND , c_v+10 .byte N28 .byte W01 .byte BEND , c_v+5 .byte W01 .byte c_v+12 .byte W01 .byte c_v+2 .byte W01 .byte c_v+11 .byte W01 .byte c_v+1 .byte W01 .byte c_v+9 .byte W01 .byte c_v+0 .byte W01 .byte c_v+8 .byte W01 .byte c_v+0 .byte W01 .byte c_v+3 .byte W01 .byte c_v-2 .byte W01 .byte c_v+3 .byte W01 .byte c_v-1 .byte W01 .byte c_v+0 .byte W01 .byte c_v-2 .byte W01 .byte c_v-1 .byte W01 .byte c_v-4 .byte W01 .byte c_v-4 .byte W01 .byte c_v-4 .byte W01 .byte c_v-7 .byte W01 .byte c_v-4 .byte W01 .byte c_v-10 .byte W01 .byte c_v-10 .byte W01 .byte c_v-13 .byte W01 .byte c_v-6 .byte W01 .byte c_v-16 .byte W01 .byte c_v-7 .byte W01 .byte c_v-18 .byte W01 .byte c_v-9 .byte W01 .byte c_v-13 .byte W13 ; 001 ---------------------------------------- .byte W06 .byte PAN , c_v+63 .byte BEND , c_v+12 .byte N24 .byte W01 .byte BEND , c_v+7 .byte W01 .byte c_v+10 .byte W01 .byte c_v+6 .byte W01 .byte c_v+6 .byte W01 .byte c_v+5 .byte W01 .byte c_v+4 .byte W01 .byte c_v+4 .byte W01 .byte c_v+2 .byte W01 .byte c_v+0 .byte W01 .byte c_v+0 .byte W01 .byte c_v+2 .byte W01 .byte c_v-1 .byte W01 .byte c_v+0 .byte W01 .byte c_v-5 .byte W01 .byte c_v+2 .byte W01 .byte c_v-7 .byte W01 .byte c_v-1 .byte W01 .byte c_v-9 .byte W01 .byte c_v-1 .byte W01 .byte c_v-11 .byte W01 .byte c_v-2 .byte W01 .byte c_v-13 .byte W01 .byte c_v-7 .byte W01 .byte c_v-11 .byte W66 ; 002 ---------------------------------------- .byte W96 ; 003 ---------------------------------------- .byte W96 ; 004 ---------------------------------------- .byte W96 ; 005 ---------------------------------------- .byte W42 .byte W01 .byte VOL , 24*song185restored_mvl/mxv .byte BEND , c_v+13 .byte N60 .byte W01 .byte BEND , c_v+5 .byte W01 .byte c_v+11 .byte W01 .byte c_v+4 .byte W01 .byte c_v+7 .byte W01 .byte c_v+2 .byte W01 .byte c_v+6 .byte W01 .byte c_v+2 .byte W01 .byte c_v+4 .byte W01 .byte c_v+0 .byte W01 .byte c_v+0 .byte W01 .byte c_v+2 .byte W01 .byte c_v-1 .byte W01 .byte c_v+0 .byte W01 .byte c_v-5 .byte W01 .byte c_v+0 .byte W01 .byte c_v-5 .byte W01 .byte c_v-1 .byte W01 .byte c_v-8 .byte W01 .byte c_v-1 .byte W01 .byte c_v-12 .byte W01 .byte c_v-2 .byte W01 .byte c_v-11 .byte W01 .byte c_v-4 .byte W01 .byte c_v-13 .byte W01 .byte c_v-7 .byte W01 .byte c_v-15 .byte W01 .byte c_v-10 .byte W01 .byte c_v-14 .byte W01 .byte c_v-13 .byte W01 .byte c_v-16 .byte W01 .byte c_v-17 .byte W01 .byte c_v-19 .byte W01 .byte c_v-17 .byte W01 .byte c_v-14 .byte W01 .byte c_v-18 .byte W01 .byte c_v-14 .byte W01 .byte c_v-19 .byte W01 .byte c_v-14 .byte W01 .byte c_v-20 .byte W01 .byte c_v-14 .byte W01 .byte c_v-21 .byte W01 .byte c_v-13 .byte W01 .byte c_v-20 .byte W01 .byte c_v-12 .byte W01 .byte c_v-20 .byte W01 .byte c_v-13 .byte W01 .byte c_v-20 .byte W01 .byte c_v-13 .byte W01 .byte c_v-19 .byte W01 .byte c_v-16 .byte W01 .byte c_v-18 .byte W01 .byte c_v-15 .byte W01 ; 006 ---------------------------------------- .byte c_v-17 .byte W01 .byte c_v-17 .byte W01 .byte c_v-16 .byte W01 .byte c_v-17 .byte W01 .byte c_v-15 .byte W01 .byte c_v-19 .byte W01 .byte c_v-18 .byte W01 .byte c_v-19 .byte W01 .byte c_v-14 .byte W01 .byte c_v-13 .byte W03 .byte PAN , c_v-64 .byte VOL , 10*song185restored_mvl/mxv .byte BEND , c_v+9 .byte N56 .byte W01 .byte BEND , c_v+9 .byte W01 .byte c_v+10 .byte W01 .byte c_v+7 .byte W01 .byte c_v+5 .byte W01 .byte c_v+6 .byte W01 .byte c_v+4 .byte W01 .byte c_v+6 .byte W01 .byte c_v+0 .byte W01 .byte c_v+5 .byte W01 .byte c_v-1 .byte W01 .byte c_v+4 .byte W01 .byte c_v-4 .byte W01 .byte c_v+3 .byte W01 .byte c_v-6 .byte W01 .byte c_v+2 .byte W01 .byte c_v-8 .byte W01 .byte c_v-1 .byte W01 .byte c_v-8 .byte W01 .byte c_v-4 .byte W01 .byte c_v-8 .byte W01 .byte c_v-6 .byte W01 .byte c_v-10 .byte W01 .byte c_v-8 .byte W01 .byte c_v-11 .byte W01 .byte c_v-8 .byte W01 .byte c_v-11 .byte W01 .byte c_v-14 .byte W01 .byte c_v-12 .byte W01 .byte c_v-13 .byte W01 .byte c_v-12 .byte W01 .byte c_v-19 .byte W01 .byte c_v-14 .byte W01 .byte c_v-18 .byte W01 .byte c_v-13 .byte W01 .byte c_v-21 .byte W01 .byte c_v-12 .byte W01 .byte c_v-20 .byte W01 .byte c_v-12 .byte W01 .byte c_v-20 .byte W01 .byte c_v-13 .byte W01 .byte c_v-20 .byte W01 .byte c_v-13 .byte W01 .byte c_v-19 .byte W01 .byte c_v-16 .byte W01 .byte c_v-19 .byte W01 .byte c_v-16 .byte W01 .byte c_v-17 .byte W01 .byte c_v-17 .byte W01 .byte c_v-16 .byte W01 .byte c_v-17 .byte W01 .byte c_v-16 .byte W01 .byte c_v-19 .byte W01 .byte c_v-14 .byte W01 .byte c_v-20 .byte W01 .byte c_v-14 .byte W01 .byte c_v-17 .byte W03 .byte c_v+14 .byte N60 .byte W01 .byte BEND , c_v+5 .byte W01 .byte c_v+10 .byte W01 .byte c_v+3 .byte W01 .byte c_v+8 .byte W01 .byte c_v+2 .byte W01 .byte c_v+6 .byte W01 .byte c_v+2 .byte W01 .byte c_v+4 .byte W01 .byte c_v+0 .byte W01 .byte c_v+2 .byte W01 .byte c_v+0 .byte W01 .byte c_v+0 .byte W01 .byte c_v+0 .byte W01 .byte c_v-3 .byte W01 .byte c_v+0 .byte W01 .byte c_v-1 .byte W01 .byte c_v-1 .byte W01 .byte c_v-8 .byte W01 .byte c_v-1 .byte W01 .byte c_v-11 .byte W01 .byte c_v-3 .byte W01 .byte c_v-12 .byte W01 .byte c_v-4 .byte W01 .byte c_v-14 .byte W01 ; 007 ---------------------------------------- .byte c_v-6 .byte W01 .byte c_v-16 .byte W01 .byte c_v-9 .byte W01 .byte c_v-18 .byte W01 .byte c_v-12 .byte W01 .byte c_v-16 .byte W01 .byte c_v-15 .byte W01 .byte c_v-19 .byte W01 .byte c_v-16 .byte W01 .byte c_v-17 .byte W01 .byte c_v-16 .byte W01 .byte c_v-17 .byte W01 .byte c_v-17 .byte W01 .byte c_v-15 .byte W01 .byte c_v-14 .byte W01 .byte c_v-14 .byte W01 .byte c_v-19 .byte W01 .byte c_v-12 .byte W01 .byte c_v-20 .byte W01 .byte c_v-13 .byte W01 .byte c_v-21 .byte W01 .byte c_v-12 .byte W01 .byte c_v-19 .byte W01 .byte c_v-12 .byte W01 .byte c_v-21 .byte W01 .byte c_v-12 .byte W01 .byte c_v-21 .byte W01 .byte c_v-14 .byte W01 .byte c_v-19 .byte W01 .byte c_v-14 .byte W01 .byte c_v-20 .byte W01 .byte c_v-17 .byte W01 .byte c_v-19 .byte W01 .byte c_v-17 .byte W01 .byte c_v-18 .byte W01 .byte c_v-16 .byte W01 .byte c_v-16 .byte W01 .byte c_v-12 .byte W03 .byte VOL , 0*song185restored_mvl/mxv .byte BEND , c_v+14 .byte N60 .byte W01 .byte BEND , c_v+5 .byte W01 .byte c_v+10 .byte W01 .byte c_v+5 .byte W01 .byte c_v+9 .byte W01 .byte c_v+2 .byte W01 .byte c_v+4 .byte W01 .byte c_v+3 .byte W01 .byte c_v+3 .byte W01 .byte c_v+0 .byte W01 .byte c_v+1 .byte W01 .byte c_v+2 .byte W01 .byte c_v-1 .byte W01 .byte c_v+0 .byte W01 .byte c_v-4 .byte W01 .byte c_v+0 .byte W01 .byte c_v-7 .byte W01 .byte c_v-1 .byte W01 .byte c_v-9 .byte W01 .byte c_v-1 .byte W01 .byte c_v-11 .byte W01 .byte c_v-2 .byte W01 .byte c_v-13 .byte W01 .byte c_v-5 .byte W01 .byte c_v-13 .byte W01 .byte c_v-8 .byte W01 .byte c_v-14 .byte W01 .byte c_v-10 .byte W01 .byte c_v-18 .byte W01 .byte c_v-13 .byte W01 .byte c_v-16 .byte W01 .byte c_v-15 .byte W01 .byte c_v-19 .byte W01 .byte c_v-18 .byte W01 .byte c_v-14 .byte W01 .byte c_v-19 .byte W01 .byte c_v-15 .byte W01 .byte c_v-20 .byte W01 .byte c_v-14 .byte W01 .byte c_v-20 .byte W01 .byte c_v-12 .byte W01 .byte c_v-21 .byte W01 .byte c_v-12 .byte W01 .byte c_v-21 .byte W01 .byte c_v-13 .byte W01 .byte c_v-21 .byte W01 .byte c_v-12 .byte W01 .byte c_v-19 .byte W01 .byte c_v-13 .byte W01 .byte c_v-19 .byte W01 .byte c_v-16 .byte W01 .byte c_v-18 .byte W01 .byte c_v-14 .byte W01 .byte c_v-19 .byte W01 .byte c_v-15 .byte W01 .byte c_v-20 .byte W01 ; 008 ---------------------------------------- .byte c_v-16 .byte W01 .byte c_v-18 .byte W01 .byte c_v-18 .byte W01 .byte c_v-18 .byte W01 .byte c_v-19 .byte W01 .byte c_v-16 .byte W01 .byte c_v-12 .byte W08 .byte PAN , c_v+63 .byte VOL , 31*song185restored_mvl/mxv .byte BEND , c_v+15 .byte N28 .byte W01 .byte BEND , c_v+5 .byte W01 .byte c_v+12 .byte W01 .byte c_v+4 .byte W01 .byte c_v+8 .byte W01 .byte c_v+2 .byte W01 .byte c_v+6 .byte W01 .byte c_v+3 .byte W01 .byte c_v+4 .byte W01 .byte c_v+0 .byte W01 .byte c_v+2 .byte W01 .byte c_v+0 .byte W01 .byte c_v+3 .byte W01 .byte c_v+0 .byte W01 .byte c_v-3 .byte W01 .byte c_v+0 .byte W01 .byte c_v-5 .byte W01 .byte c_v-1 .byte W01 .byte c_v-8 .byte W01 .byte c_v-2 .byte W01 .byte c_v-7 .byte W01 .byte c_v-3 .byte W01 .byte c_v-13 .byte W01 .byte c_v-4 .byte W01 .byte c_v-13 .byte W01 .byte c_v-8 .byte W01 .byte c_v-14 .byte W01 .byte c_v-7 .byte W01 .byte c_v-18 .byte W01 .byte c_v-12 .byte W20 .byte PAN , c_v-64 .byte VOL , 10*song185restored_mvl/mxv .byte BEND , c_v+11 .byte N28 .byte W01 .byte BEND , c_v+9 .byte W01 .byte c_v+10 .byte W01 .byte c_v+7 .byte W01 .byte c_v+6 .byte W01 .byte c_v+8 .byte W01 .byte c_v+4 .byte W01 .byte c_v+6 .byte W01 .byte c_v-1 .byte W01 .byte c_v+5 .byte W01 .byte c_v-1 .byte W01 .byte c_v+3 .byte W01 .byte c_v-4 .byte W01 .byte c_v+3 .byte W01 .byte c_v-6 .byte W01 .byte c_v+2 .byte W01 .byte c_v-7 .byte W01 .byte c_v-2 .byte W01 .byte c_v-9 .byte W01 .byte c_v-5 .byte W01 .byte c_v-10 .byte W01 .byte c_v-7 .byte W01 .byte c_v-10 .byte W01 .byte c_v-9 .byte W01 .byte c_v-11 .byte W01 .byte c_v-8 .byte W01 .byte c_v-10 .byte W01 .byte c_v-14 .byte W01 .byte c_v-14 .byte W01 .byte c_v-12 .byte W04 ; 009 ---------------------------------------- .byte W15 .byte PAN , c_v+63 .byte BEND , c_v+13 .byte N24 .byte W01 .byte BEND , c_v+5 .byte W01 .byte c_v+12 .byte W01 .byte c_v+4 .byte W01 .byte c_v+9 .byte W01 .byte c_v+2 .byte W01 .byte c_v+10 .byte W01 .byte c_v+0 .byte W01 .byte c_v+8 .byte W01 .byte c_v+0 .byte W01 .byte c_v+3 .byte W01 .byte c_v-1 .byte W01 .byte c_v+3 .byte W01 .byte c_v-1 .byte W01 .byte c_v-1 .byte W01 .byte c_v-3 .byte W01 .byte c_v-1 .byte W01 .byte c_v-8 .byte W01 .byte c_v-5 .byte W01 .byte c_v-4 .byte W01 .byte c_v-7 .byte W01 .byte c_v-5 .byte W01 .byte c_v-11 .byte W01 .byte c_v-5 .byte W01 .byte c_v-10 .byte W56 .byte W01 ; 010 ---------------------------------------- .byte W76 .byte VOICE , 27 .byte VOL , 81*song185restored_mvl/mxv .byte PAN , c_v+0 .byte BENDR , 12 .byte PAN , c_v+63 .byte VOL , 10*song185restored_mvl/mxv .byte BENDR , 12 .byte PAN , c_v+63 .byte VOL , 10*song185restored_mvl/mxv .byte BEND , c_v-10 .byte GOTO .word @song185restored_7 ;******************************************************; .align 4 song185restored: .byte 7 ; NumTrks .byte 0 ; NumBlks .byte song185restored_pri ; Priority .byte song185restored_rev ; Reverb. //emit_clean_voicegroup_offset_for_song 185 .word 0x8109944 //Voice Table .word @song185restored_1 .word @song185restored_2 .word @song185restored_3 .word @song185restored_4 .word @song185restored_5 .word @song185restored_6 .word @song185restored_7
19.717562
56
0.525169
c8194d533598cfd3c40d3386b7d724b4a5886613
41,359
asm
Assembly
kill.asm
Gunahuachen1995/XV6_lottery_scheduler
ef0b2ff98292dc56252845a9169cb0a3b7a7f2ef
[ "MIT-0" ]
null
null
null
kill.asm
Gunahuachen1995/XV6_lottery_scheduler
ef0b2ff98292dc56252845a9169cb0a3b7a7f2ef
[ "MIT-0" ]
null
null
null
kill.asm
Gunahuachen1995/XV6_lottery_scheduler
ef0b2ff98292dc56252845a9169cb0a3b7a7f2ef
[ "MIT-0" ]
null
null
null
_kill: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char **argv) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 push %ebp b: 89 e5 mov %esp,%ebp d: 53 push %ebx e: 51 push %ecx f: 83 ec 10 sub $0x10,%esp 12: 89 cb mov %ecx,%ebx int i; if(argc < 2){ 14: 83 3b 01 cmpl $0x1,(%ebx) 17: 7f 17 jg 30 <main+0x30> printf(2, "usage: kill pid...\n"); 19: 83 ec 08 sub $0x8,%esp 1c: 68 06 08 00 00 push $0x806 21: 6a 02 push $0x2 23: e8 28 04 00 00 call 450 <printf> 28: 83 c4 10 add $0x10,%esp exit(); 2b: e8 99 02 00 00 call 2c9 <exit> } for(i=1; i<argc; i++) 30: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) 37: eb 2d jmp 66 <main+0x66> kill(atoi(argv[i])); 39: 8b 45 f4 mov -0xc(%ebp),%eax 3c: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 43: 8b 43 04 mov 0x4(%ebx),%eax 46: 01 d0 add %edx,%eax 48: 8b 00 mov (%eax),%eax 4a: 83 ec 0c sub $0xc,%esp 4d: 50 push %eax 4e: e8 e4 01 00 00 call 237 <atoi> 53: 83 c4 10 add $0x10,%esp 56: 83 ec 0c sub $0xc,%esp 59: 50 push %eax 5a: e8 9a 02 00 00 call 2f9 <kill> 5f: 83 c4 10 add $0x10,%esp if(argc < 2){ printf(2, "usage: kill pid...\n"); exit(); } for(i=1; i<argc; i++) 62: 83 45 f4 01 addl $0x1,-0xc(%ebp) 66: 8b 45 f4 mov -0xc(%ebp),%eax 69: 3b 03 cmp (%ebx),%eax 6b: 7c cc jl 39 <main+0x39> kill(atoi(argv[i])); exit(); 6d: e8 57 02 00 00 call 2c9 <exit> 00000072 <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 72: 55 push %ebp 73: 89 e5 mov %esp,%ebp 75: 57 push %edi 76: 53 push %ebx asm volatile("cld; rep stosb" : 77: 8b 4d 08 mov 0x8(%ebp),%ecx 7a: 8b 55 10 mov 0x10(%ebp),%edx 7d: 8b 45 0c mov 0xc(%ebp),%eax 80: 89 cb mov %ecx,%ebx 82: 89 df mov %ebx,%edi 84: 89 d1 mov %edx,%ecx 86: fc cld 87: f3 aa rep stos %al,%es:(%edi) 89: 89 ca mov %ecx,%edx 8b: 89 fb mov %edi,%ebx 8d: 89 5d 08 mov %ebx,0x8(%ebp) 90: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 93: 90 nop 94: 5b pop %ebx 95: 5f pop %edi 96: 5d pop %ebp 97: c3 ret 00000098 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 98: 55 push %ebp 99: 89 e5 mov %esp,%ebp 9b: 83 ec 10 sub $0x10,%esp char *os; os = s; 9e: 8b 45 08 mov 0x8(%ebp),%eax a1: 89 45 fc mov %eax,-0x4(%ebp) while((*s++ = *t++) != 0) a4: 90 nop a5: 8b 45 08 mov 0x8(%ebp),%eax a8: 8d 50 01 lea 0x1(%eax),%edx ab: 89 55 08 mov %edx,0x8(%ebp) ae: 8b 55 0c mov 0xc(%ebp),%edx b1: 8d 4a 01 lea 0x1(%edx),%ecx b4: 89 4d 0c mov %ecx,0xc(%ebp) b7: 0f b6 12 movzbl (%edx),%edx ba: 88 10 mov %dl,(%eax) bc: 0f b6 00 movzbl (%eax),%eax bf: 84 c0 test %al,%al c1: 75 e2 jne a5 <strcpy+0xd> ; return os; c3: 8b 45 fc mov -0x4(%ebp),%eax } c6: c9 leave c7: c3 ret 000000c8 <strcmp>: int strcmp(const char *p, const char *q) { c8: 55 push %ebp c9: 89 e5 mov %esp,%ebp while(*p && *p == *q) cb: eb 08 jmp d5 <strcmp+0xd> p++, q++; cd: 83 45 08 01 addl $0x1,0x8(%ebp) d1: 83 45 0c 01 addl $0x1,0xc(%ebp) } int strcmp(const char *p, const char *q) { while(*p && *p == *q) d5: 8b 45 08 mov 0x8(%ebp),%eax d8: 0f b6 00 movzbl (%eax),%eax db: 84 c0 test %al,%al dd: 74 10 je ef <strcmp+0x27> df: 8b 45 08 mov 0x8(%ebp),%eax e2: 0f b6 10 movzbl (%eax),%edx e5: 8b 45 0c mov 0xc(%ebp),%eax e8: 0f b6 00 movzbl (%eax),%eax eb: 38 c2 cmp %al,%dl ed: 74 de je cd <strcmp+0x5> p++, q++; return (uchar)*p - (uchar)*q; ef: 8b 45 08 mov 0x8(%ebp),%eax f2: 0f b6 00 movzbl (%eax),%eax f5: 0f b6 d0 movzbl %al,%edx f8: 8b 45 0c mov 0xc(%ebp),%eax fb: 0f b6 00 movzbl (%eax),%eax fe: 0f b6 c0 movzbl %al,%eax 101: 29 c2 sub %eax,%edx 103: 89 d0 mov %edx,%eax } 105: 5d pop %ebp 106: c3 ret 00000107 <strlen>: uint strlen(char *s) { 107: 55 push %ebp 108: 89 e5 mov %esp,%ebp 10a: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 10d: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 114: eb 04 jmp 11a <strlen+0x13> 116: 83 45 fc 01 addl $0x1,-0x4(%ebp) 11a: 8b 55 fc mov -0x4(%ebp),%edx 11d: 8b 45 08 mov 0x8(%ebp),%eax 120: 01 d0 add %edx,%eax 122: 0f b6 00 movzbl (%eax),%eax 125: 84 c0 test %al,%al 127: 75 ed jne 116 <strlen+0xf> ; return n; 129: 8b 45 fc mov -0x4(%ebp),%eax } 12c: c9 leave 12d: c3 ret 0000012e <memset>: void* memset(void *dst, int c, uint n) { 12e: 55 push %ebp 12f: 89 e5 mov %esp,%ebp stosb(dst, c, n); 131: 8b 45 10 mov 0x10(%ebp),%eax 134: 50 push %eax 135: ff 75 0c pushl 0xc(%ebp) 138: ff 75 08 pushl 0x8(%ebp) 13b: e8 32 ff ff ff call 72 <stosb> 140: 83 c4 0c add $0xc,%esp return dst; 143: 8b 45 08 mov 0x8(%ebp),%eax } 146: c9 leave 147: c3 ret 00000148 <strchr>: char* strchr(const char *s, char c) { 148: 55 push %ebp 149: 89 e5 mov %esp,%ebp 14b: 83 ec 04 sub $0x4,%esp 14e: 8b 45 0c mov 0xc(%ebp),%eax 151: 88 45 fc mov %al,-0x4(%ebp) for(; *s; s++) 154: eb 14 jmp 16a <strchr+0x22> if(*s == c) 156: 8b 45 08 mov 0x8(%ebp),%eax 159: 0f b6 00 movzbl (%eax),%eax 15c: 3a 45 fc cmp -0x4(%ebp),%al 15f: 75 05 jne 166 <strchr+0x1e> return (char*)s; 161: 8b 45 08 mov 0x8(%ebp),%eax 164: eb 13 jmp 179 <strchr+0x31> } char* strchr(const char *s, char c) { for(; *s; s++) 166: 83 45 08 01 addl $0x1,0x8(%ebp) 16a: 8b 45 08 mov 0x8(%ebp),%eax 16d: 0f b6 00 movzbl (%eax),%eax 170: 84 c0 test %al,%al 172: 75 e2 jne 156 <strchr+0xe> if(*s == c) return (char*)s; return 0; 174: b8 00 00 00 00 mov $0x0,%eax } 179: c9 leave 17a: c3 ret 0000017b <gets>: char* gets(char *buf, int max) { 17b: 55 push %ebp 17c: 89 e5 mov %esp,%ebp 17e: 83 ec 18 sub $0x18,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 181: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 188: eb 42 jmp 1cc <gets+0x51> cc = read(0, &c, 1); 18a: 83 ec 04 sub $0x4,%esp 18d: 6a 01 push $0x1 18f: 8d 45 ef lea -0x11(%ebp),%eax 192: 50 push %eax 193: 6a 00 push $0x0 195: e8 47 01 00 00 call 2e1 <read> 19a: 83 c4 10 add $0x10,%esp 19d: 89 45 f0 mov %eax,-0x10(%ebp) if(cc < 1) 1a0: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 1a4: 7e 33 jle 1d9 <gets+0x5e> break; buf[i++] = c; 1a6: 8b 45 f4 mov -0xc(%ebp),%eax 1a9: 8d 50 01 lea 0x1(%eax),%edx 1ac: 89 55 f4 mov %edx,-0xc(%ebp) 1af: 89 c2 mov %eax,%edx 1b1: 8b 45 08 mov 0x8(%ebp),%eax 1b4: 01 c2 add %eax,%edx 1b6: 0f b6 45 ef movzbl -0x11(%ebp),%eax 1ba: 88 02 mov %al,(%edx) if(c == '\n' || c == '\r') 1bc: 0f b6 45 ef movzbl -0x11(%ebp),%eax 1c0: 3c 0a cmp $0xa,%al 1c2: 74 16 je 1da <gets+0x5f> 1c4: 0f b6 45 ef movzbl -0x11(%ebp),%eax 1c8: 3c 0d cmp $0xd,%al 1ca: 74 0e je 1da <gets+0x5f> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 1cc: 8b 45 f4 mov -0xc(%ebp),%eax 1cf: 83 c0 01 add $0x1,%eax 1d2: 3b 45 0c cmp 0xc(%ebp),%eax 1d5: 7c b3 jl 18a <gets+0xf> 1d7: eb 01 jmp 1da <gets+0x5f> cc = read(0, &c, 1); if(cc < 1) break; 1d9: 90 nop buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 1da: 8b 55 f4 mov -0xc(%ebp),%edx 1dd: 8b 45 08 mov 0x8(%ebp),%eax 1e0: 01 d0 add %edx,%eax 1e2: c6 00 00 movb $0x0,(%eax) return buf; 1e5: 8b 45 08 mov 0x8(%ebp),%eax } 1e8: c9 leave 1e9: c3 ret 000001ea <stat>: int stat(char *n, struct stat *st) { 1ea: 55 push %ebp 1eb: 89 e5 mov %esp,%ebp 1ed: 83 ec 18 sub $0x18,%esp int fd; int r; fd = open(n, O_RDONLY); 1f0: 83 ec 08 sub $0x8,%esp 1f3: 6a 00 push $0x0 1f5: ff 75 08 pushl 0x8(%ebp) 1f8: e8 0c 01 00 00 call 309 <open> 1fd: 83 c4 10 add $0x10,%esp 200: 89 45 f4 mov %eax,-0xc(%ebp) if(fd < 0) 203: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 207: 79 07 jns 210 <stat+0x26> return -1; 209: b8 ff ff ff ff mov $0xffffffff,%eax 20e: eb 25 jmp 235 <stat+0x4b> r = fstat(fd, st); 210: 83 ec 08 sub $0x8,%esp 213: ff 75 0c pushl 0xc(%ebp) 216: ff 75 f4 pushl -0xc(%ebp) 219: e8 03 01 00 00 call 321 <fstat> 21e: 83 c4 10 add $0x10,%esp 221: 89 45 f0 mov %eax,-0x10(%ebp) close(fd); 224: 83 ec 0c sub $0xc,%esp 227: ff 75 f4 pushl -0xc(%ebp) 22a: e8 c2 00 00 00 call 2f1 <close> 22f: 83 c4 10 add $0x10,%esp return r; 232: 8b 45 f0 mov -0x10(%ebp),%eax } 235: c9 leave 236: c3 ret 00000237 <atoi>: int atoi(const char *s) { 237: 55 push %ebp 238: 89 e5 mov %esp,%ebp 23a: 83 ec 10 sub $0x10,%esp int n; n = 0; 23d: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while('0' <= *s && *s <= '9') 244: eb 25 jmp 26b <atoi+0x34> n = n*10 + *s++ - '0'; 246: 8b 55 fc mov -0x4(%ebp),%edx 249: 89 d0 mov %edx,%eax 24b: c1 e0 02 shl $0x2,%eax 24e: 01 d0 add %edx,%eax 250: 01 c0 add %eax,%eax 252: 89 c1 mov %eax,%ecx 254: 8b 45 08 mov 0x8(%ebp),%eax 257: 8d 50 01 lea 0x1(%eax),%edx 25a: 89 55 08 mov %edx,0x8(%ebp) 25d: 0f b6 00 movzbl (%eax),%eax 260: 0f be c0 movsbl %al,%eax 263: 01 c8 add %ecx,%eax 265: 83 e8 30 sub $0x30,%eax 268: 89 45 fc mov %eax,-0x4(%ebp) atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 26b: 8b 45 08 mov 0x8(%ebp),%eax 26e: 0f b6 00 movzbl (%eax),%eax 271: 3c 2f cmp $0x2f,%al 273: 7e 0a jle 27f <atoi+0x48> 275: 8b 45 08 mov 0x8(%ebp),%eax 278: 0f b6 00 movzbl (%eax),%eax 27b: 3c 39 cmp $0x39,%al 27d: 7e c7 jle 246 <atoi+0xf> n = n*10 + *s++ - '0'; return n; 27f: 8b 45 fc mov -0x4(%ebp),%eax } 282: c9 leave 283: c3 ret 00000284 <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 284: 55 push %ebp 285: 89 e5 mov %esp,%ebp 287: 83 ec 10 sub $0x10,%esp char *dst, *src; dst = vdst; 28a: 8b 45 08 mov 0x8(%ebp),%eax 28d: 89 45 fc mov %eax,-0x4(%ebp) src = vsrc; 290: 8b 45 0c mov 0xc(%ebp),%eax 293: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0) 296: eb 17 jmp 2af <memmove+0x2b> *dst++ = *src++; 298: 8b 45 fc mov -0x4(%ebp),%eax 29b: 8d 50 01 lea 0x1(%eax),%edx 29e: 89 55 fc mov %edx,-0x4(%ebp) 2a1: 8b 55 f8 mov -0x8(%ebp),%edx 2a4: 8d 4a 01 lea 0x1(%edx),%ecx 2a7: 89 4d f8 mov %ecx,-0x8(%ebp) 2aa: 0f b6 12 movzbl (%edx),%edx 2ad: 88 10 mov %dl,(%eax) { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 2af: 8b 45 10 mov 0x10(%ebp),%eax 2b2: 8d 50 ff lea -0x1(%eax),%edx 2b5: 89 55 10 mov %edx,0x10(%ebp) 2b8: 85 c0 test %eax,%eax 2ba: 7f dc jg 298 <memmove+0x14> *dst++ = *src++; return vdst; 2bc: 8b 45 08 mov 0x8(%ebp),%eax } 2bf: c9 leave 2c0: c3 ret 000002c1 <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 2c1: b8 01 00 00 00 mov $0x1,%eax 2c6: cd 40 int $0x40 2c8: c3 ret 000002c9 <exit>: SYSCALL(exit) 2c9: b8 02 00 00 00 mov $0x2,%eax 2ce: cd 40 int $0x40 2d0: c3 ret 000002d1 <wait>: SYSCALL(wait) 2d1: b8 03 00 00 00 mov $0x3,%eax 2d6: cd 40 int $0x40 2d8: c3 ret 000002d9 <pipe>: SYSCALL(pipe) 2d9: b8 04 00 00 00 mov $0x4,%eax 2de: cd 40 int $0x40 2e0: c3 ret 000002e1 <read>: SYSCALL(read) 2e1: b8 05 00 00 00 mov $0x5,%eax 2e6: cd 40 int $0x40 2e8: c3 ret 000002e9 <write>: SYSCALL(write) 2e9: b8 10 00 00 00 mov $0x10,%eax 2ee: cd 40 int $0x40 2f0: c3 ret 000002f1 <close>: SYSCALL(close) 2f1: b8 15 00 00 00 mov $0x15,%eax 2f6: cd 40 int $0x40 2f8: c3 ret 000002f9 <kill>: SYSCALL(kill) 2f9: b8 06 00 00 00 mov $0x6,%eax 2fe: cd 40 int $0x40 300: c3 ret 00000301 <exec>: SYSCALL(exec) 301: b8 07 00 00 00 mov $0x7,%eax 306: cd 40 int $0x40 308: c3 ret 00000309 <open>: SYSCALL(open) 309: b8 0f 00 00 00 mov $0xf,%eax 30e: cd 40 int $0x40 310: c3 ret 00000311 <mknod>: SYSCALL(mknod) 311: b8 11 00 00 00 mov $0x11,%eax 316: cd 40 int $0x40 318: c3 ret 00000319 <unlink>: SYSCALL(unlink) 319: b8 12 00 00 00 mov $0x12,%eax 31e: cd 40 int $0x40 320: c3 ret 00000321 <fstat>: SYSCALL(fstat) 321: b8 08 00 00 00 mov $0x8,%eax 326: cd 40 int $0x40 328: c3 ret 00000329 <link>: SYSCALL(link) 329: b8 13 00 00 00 mov $0x13,%eax 32e: cd 40 int $0x40 330: c3 ret 00000331 <mkdir>: SYSCALL(mkdir) 331: b8 14 00 00 00 mov $0x14,%eax 336: cd 40 int $0x40 338: c3 ret 00000339 <chdir>: SYSCALL(chdir) 339: b8 09 00 00 00 mov $0x9,%eax 33e: cd 40 int $0x40 340: c3 ret 00000341 <dup>: SYSCALL(dup) 341: b8 0a 00 00 00 mov $0xa,%eax 346: cd 40 int $0x40 348: c3 ret 00000349 <getpid>: SYSCALL(getpid) 349: b8 0b 00 00 00 mov $0xb,%eax 34e: cd 40 int $0x40 350: c3 ret 00000351 <sbrk>: SYSCALL(sbrk) 351: b8 0c 00 00 00 mov $0xc,%eax 356: cd 40 int $0x40 358: c3 ret 00000359 <sleep>: SYSCALL(sleep) 359: b8 0d 00 00 00 mov $0xd,%eax 35e: cd 40 int $0x40 360: c3 ret 00000361 <uptime>: SYSCALL(uptime) 361: b8 0e 00 00 00 mov $0xe,%eax 366: cd 40 int $0x40 368: c3 ret 00000369 <settickets>: SYSCALL(settickets) 369: b8 16 00 00 00 mov $0x16,%eax 36e: cd 40 int $0x40 370: c3 ret 00000371 <gettime>: 371: b8 17 00 00 00 mov $0x17,%eax 376: cd 40 int $0x40 378: c3 ret 00000379 <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 379: 55 push %ebp 37a: 89 e5 mov %esp,%ebp 37c: 83 ec 18 sub $0x18,%esp 37f: 8b 45 0c mov 0xc(%ebp),%eax 382: 88 45 f4 mov %al,-0xc(%ebp) write(fd, &c, 1); 385: 83 ec 04 sub $0x4,%esp 388: 6a 01 push $0x1 38a: 8d 45 f4 lea -0xc(%ebp),%eax 38d: 50 push %eax 38e: ff 75 08 pushl 0x8(%ebp) 391: e8 53 ff ff ff call 2e9 <write> 396: 83 c4 10 add $0x10,%esp } 399: 90 nop 39a: c9 leave 39b: c3 ret 0000039c <printint>: static void printint(int fd, int xx, int base, int sgn) { 39c: 55 push %ebp 39d: 89 e5 mov %esp,%ebp 39f: 53 push %ebx 3a0: 83 ec 24 sub $0x24,%esp static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 3a3: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) if(sgn && xx < 0){ 3aa: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 3ae: 74 17 je 3c7 <printint+0x2b> 3b0: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 3b4: 79 11 jns 3c7 <printint+0x2b> neg = 1; 3b6: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) x = -xx; 3bd: 8b 45 0c mov 0xc(%ebp),%eax 3c0: f7 d8 neg %eax 3c2: 89 45 ec mov %eax,-0x14(%ebp) 3c5: eb 06 jmp 3cd <printint+0x31> } else { x = xx; 3c7: 8b 45 0c mov 0xc(%ebp),%eax 3ca: 89 45 ec mov %eax,-0x14(%ebp) } i = 0; 3cd: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; 3d4: 8b 4d f4 mov -0xc(%ebp),%ecx 3d7: 8d 41 01 lea 0x1(%ecx),%eax 3da: 89 45 f4 mov %eax,-0xc(%ebp) 3dd: 8b 5d 10 mov 0x10(%ebp),%ebx 3e0: 8b 45 ec mov -0x14(%ebp),%eax 3e3: ba 00 00 00 00 mov $0x0,%edx 3e8: f7 f3 div %ebx 3ea: 89 d0 mov %edx,%eax 3ec: 0f b6 80 70 0a 00 00 movzbl 0xa70(%eax),%eax 3f3: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1) }while((x /= base) != 0); 3f7: 8b 5d 10 mov 0x10(%ebp),%ebx 3fa: 8b 45 ec mov -0x14(%ebp),%eax 3fd: ba 00 00 00 00 mov $0x0,%edx 402: f7 f3 div %ebx 404: 89 45 ec mov %eax,-0x14(%ebp) 407: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 40b: 75 c7 jne 3d4 <printint+0x38> if(neg) 40d: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 411: 74 2d je 440 <printint+0xa4> buf[i++] = '-'; 413: 8b 45 f4 mov -0xc(%ebp),%eax 416: 8d 50 01 lea 0x1(%eax),%edx 419: 89 55 f4 mov %edx,-0xc(%ebp) 41c: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1) while(--i >= 0) 421: eb 1d jmp 440 <printint+0xa4> putc(fd, buf[i]); 423: 8d 55 dc lea -0x24(%ebp),%edx 426: 8b 45 f4 mov -0xc(%ebp),%eax 429: 01 d0 add %edx,%eax 42b: 0f b6 00 movzbl (%eax),%eax 42e: 0f be c0 movsbl %al,%eax 431: 83 ec 08 sub $0x8,%esp 434: 50 push %eax 435: ff 75 08 pushl 0x8(%ebp) 438: e8 3c ff ff ff call 379 <putc> 43d: 83 c4 10 add $0x10,%esp buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 440: 83 6d f4 01 subl $0x1,-0xc(%ebp) 444: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 448: 79 d9 jns 423 <printint+0x87> putc(fd, buf[i]); } 44a: 90 nop 44b: 8b 5d fc mov -0x4(%ebp),%ebx 44e: c9 leave 44f: c3 ret 00000450 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 450: 55 push %ebp 451: 89 e5 mov %esp,%ebp 453: 83 ec 28 sub $0x28,%esp char *s; int c, i, state; uint *ap; state = 0; 456: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) ap = (uint*)(void*)&fmt + 1; 45d: 8d 45 0c lea 0xc(%ebp),%eax 460: 83 c0 04 add $0x4,%eax 463: 89 45 e8 mov %eax,-0x18(%ebp) for(i = 0; fmt[i]; i++){ 466: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 46d: e9 59 01 00 00 jmp 5cb <printf+0x17b> c = fmt[i] & 0xff; 472: 8b 55 0c mov 0xc(%ebp),%edx 475: 8b 45 f0 mov -0x10(%ebp),%eax 478: 01 d0 add %edx,%eax 47a: 0f b6 00 movzbl (%eax),%eax 47d: 0f be c0 movsbl %al,%eax 480: 25 ff 00 00 00 and $0xff,%eax 485: 89 45 e4 mov %eax,-0x1c(%ebp) if(state == 0){ 488: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 48c: 75 2c jne 4ba <printf+0x6a> if(c == '%'){ 48e: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 492: 75 0c jne 4a0 <printf+0x50> state = '%'; 494: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp) 49b: e9 27 01 00 00 jmp 5c7 <printf+0x177> } else { putc(fd, c); 4a0: 8b 45 e4 mov -0x1c(%ebp),%eax 4a3: 0f be c0 movsbl %al,%eax 4a6: 83 ec 08 sub $0x8,%esp 4a9: 50 push %eax 4aa: ff 75 08 pushl 0x8(%ebp) 4ad: e8 c7 fe ff ff call 379 <putc> 4b2: 83 c4 10 add $0x10,%esp 4b5: e9 0d 01 00 00 jmp 5c7 <printf+0x177> } } else if(state == '%'){ 4ba: 83 7d ec 25 cmpl $0x25,-0x14(%ebp) 4be: 0f 85 03 01 00 00 jne 5c7 <printf+0x177> if(c == 'd'){ 4c4: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp) 4c8: 75 1e jne 4e8 <printf+0x98> printint(fd, *ap, 10, 1); 4ca: 8b 45 e8 mov -0x18(%ebp),%eax 4cd: 8b 00 mov (%eax),%eax 4cf: 6a 01 push $0x1 4d1: 6a 0a push $0xa 4d3: 50 push %eax 4d4: ff 75 08 pushl 0x8(%ebp) 4d7: e8 c0 fe ff ff call 39c <printint> 4dc: 83 c4 10 add $0x10,%esp ap++; 4df: 83 45 e8 04 addl $0x4,-0x18(%ebp) 4e3: e9 d8 00 00 00 jmp 5c0 <printf+0x170> } else if(c == 'x' || c == 'p'){ 4e8: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp) 4ec: 74 06 je 4f4 <printf+0xa4> 4ee: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp) 4f2: 75 1e jne 512 <printf+0xc2> printint(fd, *ap, 16, 0); 4f4: 8b 45 e8 mov -0x18(%ebp),%eax 4f7: 8b 00 mov (%eax),%eax 4f9: 6a 00 push $0x0 4fb: 6a 10 push $0x10 4fd: 50 push %eax 4fe: ff 75 08 pushl 0x8(%ebp) 501: e8 96 fe ff ff call 39c <printint> 506: 83 c4 10 add $0x10,%esp ap++; 509: 83 45 e8 04 addl $0x4,-0x18(%ebp) 50d: e9 ae 00 00 00 jmp 5c0 <printf+0x170> } else if(c == 's'){ 512: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp) 516: 75 43 jne 55b <printf+0x10b> s = (char*)*ap; 518: 8b 45 e8 mov -0x18(%ebp),%eax 51b: 8b 00 mov (%eax),%eax 51d: 89 45 f4 mov %eax,-0xc(%ebp) ap++; 520: 83 45 e8 04 addl $0x4,-0x18(%ebp) if(s == 0) 524: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 528: 75 25 jne 54f <printf+0xff> s = "(null)"; 52a: c7 45 f4 1a 08 00 00 movl $0x81a,-0xc(%ebp) while(*s != 0){ 531: eb 1c jmp 54f <printf+0xff> putc(fd, *s); 533: 8b 45 f4 mov -0xc(%ebp),%eax 536: 0f b6 00 movzbl (%eax),%eax 539: 0f be c0 movsbl %al,%eax 53c: 83 ec 08 sub $0x8,%esp 53f: 50 push %eax 540: ff 75 08 pushl 0x8(%ebp) 543: e8 31 fe ff ff call 379 <putc> 548: 83 c4 10 add $0x10,%esp s++; 54b: 83 45 f4 01 addl $0x1,-0xc(%ebp) } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 54f: 8b 45 f4 mov -0xc(%ebp),%eax 552: 0f b6 00 movzbl (%eax),%eax 555: 84 c0 test %al,%al 557: 75 da jne 533 <printf+0xe3> 559: eb 65 jmp 5c0 <printf+0x170> putc(fd, *s); s++; } } else if(c == 'c'){ 55b: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp) 55f: 75 1d jne 57e <printf+0x12e> putc(fd, *ap); 561: 8b 45 e8 mov -0x18(%ebp),%eax 564: 8b 00 mov (%eax),%eax 566: 0f be c0 movsbl %al,%eax 569: 83 ec 08 sub $0x8,%esp 56c: 50 push %eax 56d: ff 75 08 pushl 0x8(%ebp) 570: e8 04 fe ff ff call 379 <putc> 575: 83 c4 10 add $0x10,%esp ap++; 578: 83 45 e8 04 addl $0x4,-0x18(%ebp) 57c: eb 42 jmp 5c0 <printf+0x170> } else if(c == '%'){ 57e: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 582: 75 17 jne 59b <printf+0x14b> putc(fd, c); 584: 8b 45 e4 mov -0x1c(%ebp),%eax 587: 0f be c0 movsbl %al,%eax 58a: 83 ec 08 sub $0x8,%esp 58d: 50 push %eax 58e: ff 75 08 pushl 0x8(%ebp) 591: e8 e3 fd ff ff call 379 <putc> 596: 83 c4 10 add $0x10,%esp 599: eb 25 jmp 5c0 <printf+0x170> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 59b: 83 ec 08 sub $0x8,%esp 59e: 6a 25 push $0x25 5a0: ff 75 08 pushl 0x8(%ebp) 5a3: e8 d1 fd ff ff call 379 <putc> 5a8: 83 c4 10 add $0x10,%esp putc(fd, c); 5ab: 8b 45 e4 mov -0x1c(%ebp),%eax 5ae: 0f be c0 movsbl %al,%eax 5b1: 83 ec 08 sub $0x8,%esp 5b4: 50 push %eax 5b5: ff 75 08 pushl 0x8(%ebp) 5b8: e8 bc fd ff ff call 379 <putc> 5bd: 83 c4 10 add $0x10,%esp } state = 0; 5c0: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 5c7: 83 45 f0 01 addl $0x1,-0x10(%ebp) 5cb: 8b 55 0c mov 0xc(%ebp),%edx 5ce: 8b 45 f0 mov -0x10(%ebp),%eax 5d1: 01 d0 add %edx,%eax 5d3: 0f b6 00 movzbl (%eax),%eax 5d6: 84 c0 test %al,%al 5d8: 0f 85 94 fe ff ff jne 472 <printf+0x22> putc(fd, c); } state = 0; } } } 5de: 90 nop 5df: c9 leave 5e0: c3 ret 000005e1 <free>: static Header base; static Header *freep; void free(void *ap) { 5e1: 55 push %ebp 5e2: 89 e5 mov %esp,%ebp 5e4: 83 ec 10 sub $0x10,%esp Header *bp, *p; bp = (Header*)ap - 1; 5e7: 8b 45 08 mov 0x8(%ebp),%eax 5ea: 83 e8 08 sub $0x8,%eax 5ed: 89 45 f8 mov %eax,-0x8(%ebp) for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 5f0: a1 8c 0a 00 00 mov 0xa8c,%eax 5f5: 89 45 fc mov %eax,-0x4(%ebp) 5f8: eb 24 jmp 61e <free+0x3d> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 5fa: 8b 45 fc mov -0x4(%ebp),%eax 5fd: 8b 00 mov (%eax),%eax 5ff: 3b 45 fc cmp -0x4(%ebp),%eax 602: 77 12 ja 616 <free+0x35> 604: 8b 45 f8 mov -0x8(%ebp),%eax 607: 3b 45 fc cmp -0x4(%ebp),%eax 60a: 77 24 ja 630 <free+0x4f> 60c: 8b 45 fc mov -0x4(%ebp),%eax 60f: 8b 00 mov (%eax),%eax 611: 3b 45 f8 cmp -0x8(%ebp),%eax 614: 77 1a ja 630 <free+0x4f> free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 616: 8b 45 fc mov -0x4(%ebp),%eax 619: 8b 00 mov (%eax),%eax 61b: 89 45 fc mov %eax,-0x4(%ebp) 61e: 8b 45 f8 mov -0x8(%ebp),%eax 621: 3b 45 fc cmp -0x4(%ebp),%eax 624: 76 d4 jbe 5fa <free+0x19> 626: 8b 45 fc mov -0x4(%ebp),%eax 629: 8b 00 mov (%eax),%eax 62b: 3b 45 f8 cmp -0x8(%ebp),%eax 62e: 76 ca jbe 5fa <free+0x19> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ 630: 8b 45 f8 mov -0x8(%ebp),%eax 633: 8b 40 04 mov 0x4(%eax),%eax 636: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 63d: 8b 45 f8 mov -0x8(%ebp),%eax 640: 01 c2 add %eax,%edx 642: 8b 45 fc mov -0x4(%ebp),%eax 645: 8b 00 mov (%eax),%eax 647: 39 c2 cmp %eax,%edx 649: 75 24 jne 66f <free+0x8e> bp->s.size += p->s.ptr->s.size; 64b: 8b 45 f8 mov -0x8(%ebp),%eax 64e: 8b 50 04 mov 0x4(%eax),%edx 651: 8b 45 fc mov -0x4(%ebp),%eax 654: 8b 00 mov (%eax),%eax 656: 8b 40 04 mov 0x4(%eax),%eax 659: 01 c2 add %eax,%edx 65b: 8b 45 f8 mov -0x8(%ebp),%eax 65e: 89 50 04 mov %edx,0x4(%eax) bp->s.ptr = p->s.ptr->s.ptr; 661: 8b 45 fc mov -0x4(%ebp),%eax 664: 8b 00 mov (%eax),%eax 666: 8b 10 mov (%eax),%edx 668: 8b 45 f8 mov -0x8(%ebp),%eax 66b: 89 10 mov %edx,(%eax) 66d: eb 0a jmp 679 <free+0x98> } else bp->s.ptr = p->s.ptr; 66f: 8b 45 fc mov -0x4(%ebp),%eax 672: 8b 10 mov (%eax),%edx 674: 8b 45 f8 mov -0x8(%ebp),%eax 677: 89 10 mov %edx,(%eax) if(p + p->s.size == bp){ 679: 8b 45 fc mov -0x4(%ebp),%eax 67c: 8b 40 04 mov 0x4(%eax),%eax 67f: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 686: 8b 45 fc mov -0x4(%ebp),%eax 689: 01 d0 add %edx,%eax 68b: 3b 45 f8 cmp -0x8(%ebp),%eax 68e: 75 20 jne 6b0 <free+0xcf> p->s.size += bp->s.size; 690: 8b 45 fc mov -0x4(%ebp),%eax 693: 8b 50 04 mov 0x4(%eax),%edx 696: 8b 45 f8 mov -0x8(%ebp),%eax 699: 8b 40 04 mov 0x4(%eax),%eax 69c: 01 c2 add %eax,%edx 69e: 8b 45 fc mov -0x4(%ebp),%eax 6a1: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 6a4: 8b 45 f8 mov -0x8(%ebp),%eax 6a7: 8b 10 mov (%eax),%edx 6a9: 8b 45 fc mov -0x4(%ebp),%eax 6ac: 89 10 mov %edx,(%eax) 6ae: eb 08 jmp 6b8 <free+0xd7> } else p->s.ptr = bp; 6b0: 8b 45 fc mov -0x4(%ebp),%eax 6b3: 8b 55 f8 mov -0x8(%ebp),%edx 6b6: 89 10 mov %edx,(%eax) freep = p; 6b8: 8b 45 fc mov -0x4(%ebp),%eax 6bb: a3 8c 0a 00 00 mov %eax,0xa8c } 6c0: 90 nop 6c1: c9 leave 6c2: c3 ret 000006c3 <morecore>: static Header* morecore(uint nu) { 6c3: 55 push %ebp 6c4: 89 e5 mov %esp,%ebp 6c6: 83 ec 18 sub $0x18,%esp char *p; Header *hp; if(nu < 4096) 6c9: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp) 6d0: 77 07 ja 6d9 <morecore+0x16> nu = 4096; 6d2: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp) p = sbrk(nu * sizeof(Header)); 6d9: 8b 45 08 mov 0x8(%ebp),%eax 6dc: c1 e0 03 shl $0x3,%eax 6df: 83 ec 0c sub $0xc,%esp 6e2: 50 push %eax 6e3: e8 69 fc ff ff call 351 <sbrk> 6e8: 83 c4 10 add $0x10,%esp 6eb: 89 45 f4 mov %eax,-0xc(%ebp) if(p == (char*)-1) 6ee: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp) 6f2: 75 07 jne 6fb <morecore+0x38> return 0; 6f4: b8 00 00 00 00 mov $0x0,%eax 6f9: eb 26 jmp 721 <morecore+0x5e> hp = (Header*)p; 6fb: 8b 45 f4 mov -0xc(%ebp),%eax 6fe: 89 45 f0 mov %eax,-0x10(%ebp) hp->s.size = nu; 701: 8b 45 f0 mov -0x10(%ebp),%eax 704: 8b 55 08 mov 0x8(%ebp),%edx 707: 89 50 04 mov %edx,0x4(%eax) free((void*)(hp + 1)); 70a: 8b 45 f0 mov -0x10(%ebp),%eax 70d: 83 c0 08 add $0x8,%eax 710: 83 ec 0c sub $0xc,%esp 713: 50 push %eax 714: e8 c8 fe ff ff call 5e1 <free> 719: 83 c4 10 add $0x10,%esp return freep; 71c: a1 8c 0a 00 00 mov 0xa8c,%eax } 721: c9 leave 722: c3 ret 00000723 <malloc>: void* malloc(uint nbytes) { 723: 55 push %ebp 724: 89 e5 mov %esp,%ebp 726: 83 ec 18 sub $0x18,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 729: 8b 45 08 mov 0x8(%ebp),%eax 72c: 83 c0 07 add $0x7,%eax 72f: c1 e8 03 shr $0x3,%eax 732: 83 c0 01 add $0x1,%eax 735: 89 45 ec mov %eax,-0x14(%ebp) if((prevp = freep) == 0){ 738: a1 8c 0a 00 00 mov 0xa8c,%eax 73d: 89 45 f0 mov %eax,-0x10(%ebp) 740: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 744: 75 23 jne 769 <malloc+0x46> base.s.ptr = freep = prevp = &base; 746: c7 45 f0 84 0a 00 00 movl $0xa84,-0x10(%ebp) 74d: 8b 45 f0 mov -0x10(%ebp),%eax 750: a3 8c 0a 00 00 mov %eax,0xa8c 755: a1 8c 0a 00 00 mov 0xa8c,%eax 75a: a3 84 0a 00 00 mov %eax,0xa84 base.s.size = 0; 75f: c7 05 88 0a 00 00 00 movl $0x0,0xa88 766: 00 00 00 } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 769: 8b 45 f0 mov -0x10(%ebp),%eax 76c: 8b 00 mov (%eax),%eax 76e: 89 45 f4 mov %eax,-0xc(%ebp) if(p->s.size >= nunits){ 771: 8b 45 f4 mov -0xc(%ebp),%eax 774: 8b 40 04 mov 0x4(%eax),%eax 777: 3b 45 ec cmp -0x14(%ebp),%eax 77a: 72 4d jb 7c9 <malloc+0xa6> if(p->s.size == nunits) 77c: 8b 45 f4 mov -0xc(%ebp),%eax 77f: 8b 40 04 mov 0x4(%eax),%eax 782: 3b 45 ec cmp -0x14(%ebp),%eax 785: 75 0c jne 793 <malloc+0x70> prevp->s.ptr = p->s.ptr; 787: 8b 45 f4 mov -0xc(%ebp),%eax 78a: 8b 10 mov (%eax),%edx 78c: 8b 45 f0 mov -0x10(%ebp),%eax 78f: 89 10 mov %edx,(%eax) 791: eb 26 jmp 7b9 <malloc+0x96> else { p->s.size -= nunits; 793: 8b 45 f4 mov -0xc(%ebp),%eax 796: 8b 40 04 mov 0x4(%eax),%eax 799: 2b 45 ec sub -0x14(%ebp),%eax 79c: 89 c2 mov %eax,%edx 79e: 8b 45 f4 mov -0xc(%ebp),%eax 7a1: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; 7a4: 8b 45 f4 mov -0xc(%ebp),%eax 7a7: 8b 40 04 mov 0x4(%eax),%eax 7aa: c1 e0 03 shl $0x3,%eax 7ad: 01 45 f4 add %eax,-0xc(%ebp) p->s.size = nunits; 7b0: 8b 45 f4 mov -0xc(%ebp),%eax 7b3: 8b 55 ec mov -0x14(%ebp),%edx 7b6: 89 50 04 mov %edx,0x4(%eax) } freep = prevp; 7b9: 8b 45 f0 mov -0x10(%ebp),%eax 7bc: a3 8c 0a 00 00 mov %eax,0xa8c return (void*)(p + 1); 7c1: 8b 45 f4 mov -0xc(%ebp),%eax 7c4: 83 c0 08 add $0x8,%eax 7c7: eb 3b jmp 804 <malloc+0xe1> } if(p == freep) 7c9: a1 8c 0a 00 00 mov 0xa8c,%eax 7ce: 39 45 f4 cmp %eax,-0xc(%ebp) 7d1: 75 1e jne 7f1 <malloc+0xce> if((p = morecore(nunits)) == 0) 7d3: 83 ec 0c sub $0xc,%esp 7d6: ff 75 ec pushl -0x14(%ebp) 7d9: e8 e5 fe ff ff call 6c3 <morecore> 7de: 83 c4 10 add $0x10,%esp 7e1: 89 45 f4 mov %eax,-0xc(%ebp) 7e4: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 7e8: 75 07 jne 7f1 <malloc+0xce> return 0; 7ea: b8 00 00 00 00 mov $0x0,%eax 7ef: eb 13 jmp 804 <malloc+0xe1> nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 7f1: 8b 45 f4 mov -0xc(%ebp),%eax 7f4: 89 45 f0 mov %eax,-0x10(%ebp) 7f7: 8b 45 f4 mov -0xc(%ebp),%eax 7fa: 8b 00 mov (%eax),%eax 7fc: 89 45 f4 mov %eax,-0xc(%ebp) return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } 7ff: e9 6d ff ff ff jmp 771 <malloc+0x4e> } 804: c9 leave 805: c3 ret
34.124587
60
0.420199
01737a3692cb82b8ea8ba9d5e4b83e82ded4fd33
1,717
asm
Assembly
Interceptor/Assem64.asm
19317362/Interceptor
a64e8283454cd70b6e16161c322dc4d85663caa9
[ "MIT" ]
20
2016-04-14T18:29:46.000Z
2022-02-17T18:00:29.000Z
Interceptor/Assem64.asm
19317362/Interceptor
a64e8283454cd70b6e16161c322dc4d85663caa9
[ "MIT" ]
null
null
null
Interceptor/Assem64.asm
19317362/Interceptor
a64e8283454cd70b6e16161c322dc4d85663caa9
[ "MIT" ]
1
2018-11-01T01:43:49.000Z
2018-11-01T01:43:49.000Z
IF _M_X64 ;External function used to Find out the name of th function given its address extern on_enter:Proc extern on_exit:Proc .code ;-------------------------------------------------------------------- ; _penter procedure ;-------------------------------------------------------------------- PUSHREGS macro push rax push rcx push rdx push r8 push r9 push r10 push r11 endm POPREGS macro pop r11 pop r10 pop r9 pop r8 pop rdx pop rcx pop rax endm _penter proc push rax lahf ; Store the volatile registers PUSHREGS sub rsp, 8+16 movdqu xmmword ptr[rsp], xmm0 sub rsp ,8 sub rsp,28h ; Get the return address of the function mov rcx,rsp mov rcx,qword ptr[rcx+136] ;sub rcx,5 ;call the function to get the name of the callee and caller call on_enter add rsp,28h add rsp, 8 movdqu xmm0, xmmword ptr[rsp] add rsp, 8+ 16 ;Restore the registers back by poping out POPREGS sahf pop rax ret _penter endp ;-------------------------------------------------------------------- ; _pexit procedure ;-------------------------------------------------------------------- _pexit proc push rax lahf ; Store the volatile registers PUSHREGS sub rsp, 8+16 movdqu xmmword ptr[rsp], xmm0 sub rsp ,8 sub rsp,28h ; Get the return address of the function mov rcx,rsp mov rcx,qword ptr[rcx+136] ;sub rcx,5 ;call the function to get the name of the callee and caller call on_exit add rsp,28h add rsp, 8 movdqu xmm0, xmmword ptr[rsp] add rsp, 8+ 16 ;Restore the registers back by poping out POPREGS sahf pop rax ret _pexit endp ENDIF end
17.885417
78
0.554455
01b1d3cb9ed6b683509bc4edb927b3fc22296fa6
3,750
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_257.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_257.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_257.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %rcx push %rsi // Faulty Load lea addresses_normal+0x1ad79, %r13 nop nop nop cmp %r11, %r11 vmovups (%r13), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $0, %xmm2, %r10 lea oracles, %r13 and $0xff, %r10 shlq $12, %r10 mov (%r13,%r10,1), %r10 pop %rsi pop %rcx pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}} <gen_prepare_buffer> {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
87.209302
2,999
0.665333
0cadc898bf8e37598f3587bc1fbfc46053408b55
656
asm
Assembly
oeis/220/A220182.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/220/A220182.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/220/A220182.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A220182: Number of changes of parity in the Collatz trajectory of n. ; Submitted by Christian Krause ; 0,1,4,1,2,5,10,1,12,3,8,5,4,11,10,1,6,13,12,3,2,9,8,5,14,5,82,11,10,11,78,1,16,7,6,13,12,13,22,3,80,3,18,9,8,9,76,5,14,15,14,5,4,83,82,11,20,11,20,11,10,79,78,1,16,17,16,7,6,7,74,13,84,13,6,13,12,23,22,3,12,81,80,3,2,19,18,9,18,9,66,9,8,77,76,5,86,15,14,15 add $0,1 mov $1,270 lpb $1 mov $2,2 sub $2,$0 lpb $2 mov $1,0 mov $2,0 lpe mov $2,$0 mod $2,2 mov $3,1 lpb $2 mul $0,3 add $0,1 sub $2,1 add $4,2 lpe lpb $3 div $0,2 sub $3,1 lpe sub $1,1 mov $5,$4 cmp $5,0 add $4,$5 lpe mov $0,$4
19.878788
258
0.560976
183f441f8f28f03124c792fbfb9dccb2b7fb2a11
7,050
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_21829_1897.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_21829_1897.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_21829_1897.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x198e9, %rsi nop nop sub $2093, %r11 mov (%rsi), %rbx nop nop nop nop nop xor %r12, %r12 lea addresses_normal_ht+0x7ea9, %r10 nop cmp $51633, %r9 movl $0x61626364, (%r10) nop nop add $51247, %rsi lea addresses_WT_ht+0x1a969, %rcx clflush (%rcx) nop xor $44976, %r12 mov (%rcx), %r9 nop nop nop cmp $26015, %rsi lea addresses_UC_ht+0x5489, %r12 nop nop cmp %r9, %r9 mov (%r12), %rcx nop cmp %r10, %r10 lea addresses_normal_ht+0x11c2b, %rsi lea addresses_WC_ht+0x17969, %rdi and %rbx, %rbx mov $61, %rcx rep movsb nop nop nop nop nop add $38756, %r10 lea addresses_WC_ht+0x3fcc, %r9 xor %rbx, %rbx vmovups (%r9), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $0, %xmm4, %rcx nop inc %rcx lea addresses_A_ht+0x12169, %rsi nop nop nop nop add $40686, %r12 mov (%rsi), %r11d and $21148, %r10 lea addresses_A_ht+0x1ad69, %r10 xor $38698, %r9 mov (%r10), %r11 nop nop nop nop cmp %rcx, %rcx lea addresses_normal_ht+0x1dd49, %rsi lea addresses_normal_ht+0xc169, %rdi nop nop dec %r11 mov $31, %rcx rep movsl add $11174, %r9 lea addresses_WT_ht+0x7aa1, %rbx nop nop nop and $27477, %rdi mov $0x6162636465666768, %r12 movq %r12, (%rbx) nop nop add %rdi, %rdi lea addresses_WC_ht+0x14d69, %rcx nop xor %r10, %r10 mov (%rcx), %si nop nop nop add $56279, %r12 lea addresses_WC_ht+0x16969, %rdi nop nop nop xor $5027, %r11 mov $0x6162636465666768, %rsi movq %rsi, %xmm6 vmovups %ymm6, (%rdi) nop xor $11390, %r10 lea addresses_WC_ht+0x4969, %r12 nop nop nop nop add $17114, %rcx mov (%r12), %si nop nop dec %r9 pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r8 push %r9 push %rax push %rbx // Faulty Load mov $0xa32aa0000000969, %r8 clflush (%r8) nop add $51814, %r9 mov (%r8), %r14 lea oracles, %r9 and $0xff, %r14 shlq $12, %r14 mov (%r9,%r14,1), %r14 pop %rbx pop %rax pop %r9 pop %r8 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 5, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': True, 'congruent': 5, 'size': 4, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 5, 'size': 8, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 11, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 9, 'size': 8, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 9, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': False, 'NT': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
38.108108
2,999
0.654894
0e73f8c787461a585e822ef1a0309d22186893dc
7,391
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i9-9900K_12_0xa0.log_21829_55.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i9-9900K_12_0xa0.log_21829_55.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i9-9900K_12_0xa0.log_21829_55.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r15 push %r8 push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x4d, %rsi lea addresses_WT_ht+0x4459, %rdi sub $51959, %r14 mov $117, %rcx rep movsl cmp %rbp, %rbp lea addresses_UC_ht+0x1ced9, %r15 nop lfence mov $0x6162636465666768, %rdi movq %rdi, (%r15) nop nop nop nop xor %rsi, %rsi lea addresses_WT_ht+0x5859, %rcx clflush (%rcx) nop cmp $60966, %r12 movups (%rcx), %xmm0 vpextrq $0, %xmm0, %rdi nop nop nop nop nop xor $24620, %r15 lea addresses_UC_ht+0xf019, %rsi lea addresses_D_ht+0xa859, %rdi nop nop nop nop nop and %r8, %r8 mov $30, %rcx rep movsw nop nop nop dec %r15 lea addresses_WT_ht+0x12a59, %rsi lea addresses_WC_ht+0xc7d9, %rdi nop nop nop nop nop inc %rbp mov $119, %rcx rep movsb nop nop and %r15, %r15 lea addresses_A_ht+0xe859, %rsi lea addresses_A_ht+0x12159, %rdi nop and %r12, %r12 mov $85, %rcx rep movsw nop xor %rsi, %rsi lea addresses_UC_ht+0x14699, %rsi lea addresses_UC_ht+0xc259, %rdi nop nop nop sub %r14, %r14 mov $22, %rcx rep movsq nop cmp $18975, %r8 lea addresses_WC_ht+0x7459, %rsi lea addresses_normal_ht+0x1aef5, %rdi nop nop nop sub $39377, %rbp mov $3, %rcx rep movsl nop nop nop nop and %rdi, %rdi lea addresses_UC_ht+0x1b459, %rsi lea addresses_WT_ht+0x17cd9, %rdi nop nop nop sub $51471, %r8 mov $53, %rcx rep movsw nop inc %r12 lea addresses_WC_ht+0xac59, %rsi clflush (%rsi) nop nop nop nop dec %r15 and $0xffffffffffffffc0, %rsi vmovaps (%rsi), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %rbp nop nop nop nop cmp %r8, %r8 pop %rsi pop %rdi pop %rcx pop %rbp pop %r8 pop %r15 pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r15 push %r9 push %rdi push %rdx push %rsi // Load lea addresses_UC+0x7499, %rdx nop nop and %r12, %r12 and $0xffffffffffffffc0, %rdx movntdqa (%rdx), %xmm5 vpextrq $0, %xmm5, %r14 nop nop nop nop xor %rsi, %rsi // Load lea addresses_UC+0xe59, %rdx nop nop nop nop nop and %r9, %r9 mov (%rdx), %r12d // Exception!!! nop nop mov (0), %r12 nop xor $3501, %r15 // Faulty Load lea addresses_PSE+0x1a459, %r12 nop dec %rdi vmovaps (%r12), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $1, %xmm3, %r9 lea oracles, %rdi and $0xff, %r9 shlq $12, %r9 mov (%rdi,%r9,1), %r9 pop %rsi pop %rdx pop %rdi pop %r9 pop %r15 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': True, 'same': False, 'congruent': 6, 'type': 'addresses_UC', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_UC', 'AVXalign': True, 'size': 4}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': True, 'size': 32}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 1, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WT_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8}} {'src': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 5, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}} {'src': {'same': False, 'congruent': 9, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_WC_ht'}} {'src': {'same': False, 'congruent': 9, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_A_ht'}} {'src': {'same': False, 'congruent': 5, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 7, 'type': 'addresses_UC_ht'}} {'src': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}} {'src': {'same': False, 'congruent': 11, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_WT_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_WC_ht', 'AVXalign': True, 'size': 32}, 'OP': 'LOAD'} {'48': 4256, '49': 209, '2a': 4, '00': 7971, 'ff': 2, '45': 9385, '08': 2} 00 49 45 00 00 45 48 45 00 45 48 00 45 48 00 45 00 45 00 45 48 45 00 45 00 45 48 45 00 45 00 45 00 45 00 45 48 48 45 00 00 45 48 45 48 45 00 00 45 00 00 45 00 45 48 00 00 45 48 45 48 45 00 00 45 48 45 48 45 00 00 45 48 45 00 45 45 48 45 00 00 45 00 45 45 48 45 45 45 00 00 45 48 45 00 45 48 00 45 00 00 45 48 00 45 48 45 45 00 45 48 45 48 45 00 48 00 45 48 45 45 48 49 45 48 45 45 00 45 48 00 45 00 00 45 48 00 45 48 45 48 00 00 45 48 00 45 48 48 45 45 00 00 45 48 45 00 45 00 45 48 48 45 00 45 45 48 45 00 00 45 48 45 45 00 45 48 00 45 00 48 48 45 00 45 00 00 45 48 45 00 45 48 45 48 49 00 45 00 00 45 48 45 45 48 45 00 45 00 00 45 48 00 45 00 45 00 45 48 00 45 48 00 45 00 48 00 45 00 45 48 45 00 00 45 48 45 48 45 45 48 00 45 48 45 45 00 45 48 00 45 00 49 45 48 00 48 45 48 45 00 45 00 45 48 45 45 00 45 00 45 48 00 45 00 45 00 00 45 00 00 45 48 00 00 45 48 45 48 00 45 00 00 45 48 48 00 45 48 00 48 00 45 00 00 45 48 00 00 45 48 45 00 45 48 00 45 00 00 00 00 48 00 45 00 45 48 00 00 45 48 00 48 45 00 45 48 00 00 45 00 45 48 45 48 00 45 00 00 45 48 45 00 00 45 48 00 45 00 45 45 00 48 00 45 00 45 00 00 45 00 00 45 48 45 00 45 48 00 45 48 45 00 48 48 45 00 00 45 48 00 45 00 45 00 45 00 45 00 45 45 48 45 00 00 45 48 45 48 45 00 48 45 00 00 45 48 45 48 45 00 45 00 00 45 48 00 45 00 00 45 00 00 45 00 45 00 48 00 45 00 45 48 45 00 48 00 45 00 00 45 48 48 48 45 00 00 45 48 00 45 00 45 45 00 45 00 45 48 00 45 48 00 00 45 48 45 48 45 00 00 45 48 45 48 00 45 48 00 45 00 48 48 45 00 45 00 45 45 48 45 00 45 00 48 00 45 48 45 48 00 00 45 48 45 48 45 00 00 00 48 00 48 48 00 45 48 45 00 00 48 00 45 00 00 45 48 48 48 00 00 00 45 48 48 48 45 00 00 45 00 49 00 00 45 48 45 48 45 00 45 48 00 45 00 45 48 00 00 48 45 48 48 45 48 48 00 45 48 00 45 00 00 45 48 45 00 45 00 00 00 45 48 45 00 45 48 45 00 45 00 45 45 00 45 00 45 00 45 00 45 48 45 00 45 45 00 45 00 00 45 48 00 45 00 00 45 00 00 45 48 00 45 00 48 45 00 45 00 45 45 00 45 00 00 45 48 45 00 00 00 45 00 00 45 48 45 00 00 45 48 00 45 48 00 45 00 45 45 00 45 00 45 00 00 45 48 00 45 00 45 45 48 45 00 00 45 00 00 45 48 45 48 45 00 00 45 00 45 48 45 45 48 45 00 45 48 00 45 00 45 48 45 48 00 45 48 49 00 00 45 48 00 45 00 00 45 48 45 45 00 45 00 45 48 45 00 45 00 45 00 48 45 45 00 45 00 45 48 45 48 49 45 48 45 48 45 00 45 00 45 00 45 48 45 48 45 48 00 00 45 48 45 48 45 00 45 00 00 45 48 45 00 48 45 00 45 00 48 45 48 00 45 00 48 00 45 00 45 00 48 00 45 48 45 45 00 45 00 00 45 48 00 45 00 45 48 45 00 45 45 00 00 45 00 45 45 48 48 00 45 00 49 48 00 45 45 00 00 45 48 45 48 45 00 45 48 49 45 48 45 00 00 45 48 45 00 45 00 00 45 00 45 00 45 45 48 45 00 00 45 00 45 48 00 45 00 45 00 45 00 45 00 00 45 48 00 45 00 00 45 45 48 45 00 45 48 45 00 45 45 00 45 48 45 48 00 45 48 45 48 45 00 00 45 48 00 45 00 49 48 45 00 45 45 00 45 48 45 48 45 00 45 48 45 48 45 00 00 45 48 00 00 45 48 00 45 00 00 45 48 45 00 45 48 45 48 45 00 45 00 00 45 00 48 00 45 00 45 00 45 00 45 48 00 45 00 45 45 00 45 00 45 00 00 45 48 00 00 45 48 45 48 00 45 00 45 48 45 00 */
34.217593
2,999
0.657827
9d01bf48336f09b7403ee216759c2c3be33223f7
1,829
asm
Assembly
programs/oeis/081/A081181.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/081/A081181.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/081/A081181.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A081181: Staircase on Pascal's triangle. ; 1,3,6,20,35,126,210,792,1287,5005,8008,31824,50388,203490,319770,1307504,2042975,8436285,13123110,54627300,84672315,354817320,548354040,2310789600,3562467300,15084504396,23206929840,98672427616,151532656696,646626422970,991493848554,4244421484512,6499270398159,27900908274925,42671977361650,183649923622620,280576272201225,1210269541711230,1847253511032930,7984465725343800,12176310231149295,52728013040874885,80347448443237920,348524321356411200,530707489338171600,2305629203680278840,3508566179513467800,15264502391210933952,23214764053299962052,101131821425286333900,153720368566435227528,670475333050116177584,1018606755979984192868,4447824648753569790960,6754104096255420793680,29523268814478240610368,44812104450547329497880,196072611402921122399496,297489479369949289157856,1302838015174026137864640,1975970989680606309094704,8661069563374624785150762,13131299015438947254905994,57603389620395959098000320,87305137393412625507906735,383273503615787010261407757,580717429720889409486981450,2551194439652282599801655820,3864309224767428055581919845,16988026060571785171881869850,25724725177437274688849688630,113161371964394802552092501640,171313743668319909419140037205,754052202664090156455551497575,1141268198626731047608402266600,5026262199900700634287671110544,7605528328797112801882660233060,33513711194296887969854371650354,50700229755474779236446357112074,223525557551151542913384989058480,338082405796116708656494795950951,1491259430151830490916919726055253,2255075235839353425289000561351846,9951648911311240248893740218910500,15045945377815803709636964378590875,66427446545052018944792929363447200,100413581986706540265384660665676000,443512556759675477463354164043644800,670308750557236801166205725202326800 mov $1,$0 add $0,1 mov $2,$0 div $0,2 add $0,$2 bin $0,$1
182.9
1,726
0.928923
1e372113e6a466bba5d0eeed032400f95e272b01
17,679
asm
Assembly
src/garage.asm
QuinnPainter/Renegade-Rush
84f5bf1af0a8fda258e6f963dad411f983923f5a
[ "MIT" ]
1
2021-09-17T08:19:10.000Z
2021-09-17T08:19:10.000Z
src/garage.asm
QuinnPainter/Renegade-Rush
84f5bf1af0a8fda258e6f963dad411f983923f5a
[ "MIT" ]
1
2020-05-25T11:19:44.000Z
2020-05-25T11:19:44.000Z
src/garage.asm
QuinnPainter/Renegade-Rush
84f5bf1af0a8fda258e6f963dad411f983923f5a
[ "MIT" ]
null
null
null
INCLUDE "hardware.inc" INCLUDE "macros.inc" INCLUDE "spriteallocation.inc" INCLUDE "charmaps.inc" DEF GROBJ_TILE_OFFSET EQUS "((GarageObjectTilesVRAM - $8000) / 16)" DEF GRCARSPRITE_TILE_OFFSET EQUS "((GarageCarTilesVRAM - $8000) / 16)" DEF GARAGE_TOP_ITEM_POS EQU 112 SECTION "GarageVars", WRAM0 SelectedCar:: DS 1 ; Car the user has selected, and is currently using. ViewedCar: DS 1 ; Car the user is currently viewing in the garage. GarageOptionSelected: DS 1 CurCarLockState: DS 1 ; Selected car's entry in CarLockStateArray CarLockStateArray:: DS NUM_PLAYER_CARS ; In each entry 0 = Locked, 1 = Unlocked, 2 = Upgraded SECTION "GarageCode", ROM0 openGarage:: rom_bank_switch BANK("GarageTilemap") ld hl, $9C00 ; \ ld bc, STARTOF("GarageTilemap") ; | Fill secondary BG map with garage background map ld a, 18 ; | call LCDScreenTilemapCopy ; / ld hl, $9C2A ld bc, GR_SpeedString call LCDCopyString ld hl, $9C6A ld bc, GR_WeightString call LCDCopyString ld hl, $9CAA ld bc, GR_MissileString call LCDCopyString ld hl, $9CEA ld bc, GR_SpecialString call LCDCopyString ld a, LCDCF_ON | LCDCF_WIN9C00 | LCDCF_WINOFF | LCDCF_BG8000 \ ; switch to secondary BG map and tileset | LCDCF_BG9C00 | LCDCF_OBJ16 | LCDCF_OBJON | LCDCF_BGON ; and setup sprites ldh [rLCDC], a ld a, GRCARSPRITE_TILE_OFFSET ; \ ld [SpriteBuffer + (sizeof_OAM_ATTRS * (GARAGE_CAR_SPRITE + 0)) + OAMA_TILEID], a ; | add 2 ; | ld [SpriteBuffer + (sizeof_OAM_ATTRS * (GARAGE_CAR_SPRITE + 1)) + OAMA_TILEID], a ; | Car sprite tiles add 2 ; | ld [SpriteBuffer + (sizeof_OAM_ATTRS * (GARAGE_CAR_SPRITE + 2)) + OAMA_TILEID], a ; | add 2 ; | ld [SpriteBuffer + (sizeof_OAM_ATTRS * (GARAGE_CAR_SPRITE + 3)) + OAMA_TILEID], a ; / xor a ; \ ld [SpriteBuffer + (sizeof_OAM_ATTRS * (GARAGE_CAR_SPRITE + 0)) + OAMA_FLAGS], a ; | ld [SpriteBuffer + (sizeof_OAM_ATTRS * (GARAGE_CAR_SPRITE + 1)) + OAMA_FLAGS], a ; | Car sprite flags ld [SpriteBuffer + (sizeof_OAM_ATTRS * (GARAGE_CAR_SPRITE + 2)) + OAMA_FLAGS], a ; | ld [SpriteBuffer + (sizeof_OAM_ATTRS * (GARAGE_CAR_SPRITE + 3)) + OAMA_FLAGS], a ; / ld a, 28 + 8 ; \ ld [SpriteBuffer + (sizeof_OAM_ATTRS * (GARAGE_CAR_SPRITE + 0)) + OAMA_X], a ; | ld [SpriteBuffer + (sizeof_OAM_ATTRS * (GARAGE_CAR_SPRITE + 2)) + OAMA_X], a ; | add 8 ; | Car sprite X pos ld [SpriteBuffer + (sizeof_OAM_ATTRS * (GARAGE_CAR_SPRITE + 1)) + OAMA_X], a ; | ld [SpriteBuffer + (sizeof_OAM_ATTRS * (GARAGE_CAR_SPRITE + 3)) + OAMA_X], a ; / ld a, 40 + 16 ; \ ld [SpriteBuffer + (sizeof_OAM_ATTRS * (GARAGE_CAR_SPRITE + 0)) + OAMA_Y], a ; | ld [SpriteBuffer + (sizeof_OAM_ATTRS * (GARAGE_CAR_SPRITE + 1)) + OAMA_Y], a ; | add 16 ; | Car sprite Y pos ld [SpriteBuffer + (sizeof_OAM_ATTRS * (GARAGE_CAR_SPRITE + 2)) + OAMA_Y], a ; | ld [SpriteBuffer + (sizeof_OAM_ATTRS * (GARAGE_CAR_SPRITE + 3)) + OAMA_Y], a ; / ld hl, VblankVectorRAM ; \ di ; | ld a, LOW(garageVblank) ; | ld [hli], a ; | Setup VBlank vector ld a, HIGH(garageVblank) ; | ld [hl], a ; | ei ; / ld a, %11001100 ; Swap Middle 2 ld [SelectionPalette], a ld a, GARAGE_TOP_ITEM_POS ; Selection bar over "Select" option ld [SelBarTargetPos], a ld [SelBarTopLine], a xor a ld [GarageOptionSelected], a ld a, [SelectedCar] ; Start with the view on the selected car ld [ViewedCar], a ; call drawCarEntry GarageLoop: call readInput ; B Input ld a, [newButtons] and PADF_B jr z, .noBPress ; Return to main menu call saveGame ; save the new stuff ld a, %11100100 ; Init background palette ldh [rBGP], a ld a, %00100111 ; Palette for selection bar ld [SelectionPalette], a ld a, LCDCF_ON | LCDCF_WIN9C00 | LCDCF_WINOFF | LCDCF_BG8800 \ | LCDCF_BG9800 | LCDCF_OBJ8 | LCDCF_OBJOFF | LCDCF_BGON ldh [rLCDC], a ; Screen settings di ld hl, VblankVectorRAM ld a, LOW(MainMenuVBlank) ld [hli], a ld a, HIGH(MainMenuVBlank) ld [hl], a ei ld a, MENU_TOP_ITEM_POS + 8 ; put selection over "Garage" ld [SelBarTopLine], a ; ld [SelBarTargetPos], a ; jp MainMenuLoop .noBPress: ; A Input ld a, [newButtons] and PADF_A jp z, .noAPress ld a, [CurCarLockState] and a jr z, .carBuyButton ; Car is locked - cursor is over "buy" dec a jr z, .checkSelection ; Car is unlocked - need to check if we're over "select" or "upgrade" jr .carSelectButton ; Car is upgraded - cursor is over "select" .checkSelection: ld a, [GarageOptionSelected] and a jr z, .carSelectButton jr .carUpgradeButton .carSelectButton: ld a, [ViewedCar] ld hl, SelectedCar cp [hl] jp z, .noAPress ; do nothing if car is already selected ld [hl], a play_sound_effect FX_CarSelect call drawCarEntry jp .noAPress .carBuyButton: ld l, CARINFO_PRICE jr .buyCarOrUpgrade .carUpgradeButton: ld l, CARINFO_UPGRADEPRICE .buyCarOrUpgrade: rom_bank_switch BANK("StarterCar Info") ld a, [ViewedCar] add HIGH(FirstCarInfo) ld h, a ld a, [MoneyAmount] ; \ sub [hl] ; | inc l ; | Check if there's enough money ld a, [MoneyAmount + 1] ; | sbc [hl] ; | jr c, .notEnoughMoney ; / dec l ld a, [MoneyAmount] ; \ sub [hl] ; | daa ; | ld [MoneyAmount], a ; | inc l ; | Take money away ld a, [MoneyAmount + 1] ; | sbc [hl] ; | daa ; | ld [MoneyAmount + 1], a ; / play_sound_effect FX_CarBuy ld hl, CurCarLockState ; \ inc [hl] ; | ld hl, CarLockStateArray ; | ld b, 0 ; | ld a, [ViewedCar] ; | Increment lock state ld c, a ; | add hl, bc ; | ld a, [CurCarLockState] ; | ld [hl], a ; / ld a, GARAGE_TOP_ITEM_POS ; \ ld [SelBarTargetPos], a ; | Move selection to top item xor a ; | ld [GarageOptionSelected], a ; / call drawCarEntry ; Redraw car box jr .noAPress .notEnoughMoney: play_sound_effect FX_CarFailBuy ld hl, $9DCA ld bc, GR_NoMoneyString1 call LCDCopyString ld hl, $9DEA ld bc, GR_NoMoneyString2 call LCDCopyString ld hl, $9E0A ld bc, GR_NoMoneyString3 call LCDCopyString .noAPress: ; Left / Right Inputs ld a, [newButtons] and PADF_LEFT jr z, .noLeftPress ld a, [ViewedCar] dec a bit 7, a jr nz, .noLeftPress jr .viewedCarChanged .noLeftPress: ld a, [newButtons] and PADF_RIGHT jr z, .doneViewedCarChange ld a, [ViewedCar] inc a cp NUM_PLAYER_CARS jr z, .doneViewedCarChange .viewedCarChanged: ld [ViewedCar], a play_sound_effect FX_MenuBip ld a, GARAGE_TOP_ITEM_POS ld [SelBarTargetPos], a xor a ld [GarageOptionSelected], a call drawCarEntry .doneViewedCarChange: ; Up / Down Inputs ld a, [newButtons] and PADF_UP jr z, .noUpPress ld a, [GarageOptionSelected] and a jr z, .noUpPress dec a ld [GarageOptionSelected], a ld a, [SelBarTargetPos] sub 8 ld [SelBarTargetPos], a play_sound_effect FX_MenuBip call drawDescriptionBox .noUpPress: ld a, [newButtons] and PADF_DOWN jr z, .noDownPress ld b, 0 ld a, [CurCarLockState] and a jr z, .oneMenuOption ; Car Locked - Only Buy option dec a jr z, .twoMenuOptions ; Car Unlocked - Select and Upgrade options jr .oneMenuOption ; Car Upgraded - Only Select option .twoMenuOptions: inc b .oneMenuOption: ld a, [GarageOptionSelected] cp b jr z, .noDownPress inc a ld [GarageOptionSelected], a ld a, [SelBarTargetPos] add 8 ld [SelBarTargetPos], a play_sound_effect FX_MenuBip call drawDescriptionBox .noDownPress: call updateAudio call selectionBarUpdate call waitVblank jp GarageLoop ; Redraw the parts of the garage screen related to the car info ; Called when opening the garage menu, and when the user changes ; selection, or upgrades a car or something. drawCarEntry: SETCHARMAP MainMenuCharmap rom_bank_switch BANK("StarterCar Info") ld hl, CarLockStateArray ; \ ld b, 0 ; | ld a, [ViewedCar] ; | ld c, a ; | Update the lock state add hl, bc ; | ld a, [hl] ; | ld [CurCarLockState], a ; / and a ; \ jr nz, .carUnlockedPal ; | ld a, %11111111 ; | jr .doneSetCarPal ; | Set car palette based on lock state .carUnlockedPal: ; | ld a, %11100100 ; | .doneSetCarPal: ; | ldh [rOBP0], a ; / ld a, [ViewedCar] ; \ add HIGH(FirstCarInfo) ; | ld d, a ; | ld e, CARINFO_GFXADDR ; | ld a, [de] ; \ ; | ld b, a ; | ; | Draw car sprite inc e ; | DE = GFX Addr ; | ld a, [de] ; | ; | ld d, a ; | ; | ld e, b ; / ; | ld hl, GarageCarTilesVRAM ; | ld bc, SIZEOF("StarterCarTiles"); | call LCDMemcpy ; / ld a, [ViewedCar] ; \ add HIGH(FirstCarInfo) ; | ld d, a ; | ld e, CARINFO_NAME1 ; | ld hl, $9C21 ; | ld c, 7 ; | Draw name call LCDMemcpyFast ; | ld hl, $9C41 ; | ld c, 7 ; | call LCDMemcpyFast ; / ld a, [CurCarLockState] ; \ dec a ; | jr z, .notUpgradedBars ; | Switch to upgraded statbars if car is upgraded ld e, CARINFO_UPGR_SPEEDBARS ; | .notUpgradedBars: ; / ld hl, $9C4B ; \ call drawStatBar ; | ld hl, $9C8B ; | call drawStatBar ; | Draw stat bars ld hl, $9CCB ; | call drawStatBar ; | ld hl, $9D0B ; | call drawStatBar ; / call drawDescriptionBox ld b, GROBJ_TILE_OFFSET + 2 ; \ ld a, [ViewedCar] ; | and a ; | jr nz, .leftArrowBright ; | inc b ; | .leftArrowBright: ; | Draw left arrow : ldh a, [rSTAT] ; | and STATF_BUSY ; | jr nz, :- ; | ld a, b ; | ld [$9CC1], a ; / ld b, GROBJ_TILE_OFFSET + 4 ; \ ld a, [ViewedCar] ; | cp NUM_PLAYER_CARS - 1 ; | jr nz, .rightArrowBright ; | inc b ; | .rightArrowBright: ; | Draw right arrow : ldh a, [rSTAT] ; | and STATF_BUSY ; | jr nz, :- ; | ld a, b ; | ld [$9CC7], a ; / ld a, [SelectedCar] ; \ ld hl, ViewedCar ; | cp [hl] ; | jr nz, .curCarNotSelected ; | ld b, GROBJ_TILE_OFFSET + 6 ; | jr .drawCarSelectedIcon ; | .curCarNotSelected: ; | Draw icon for selected car ld b, " " ; | .drawCarSelectedIcon: ; | : ldh a, [rSTAT] ; | and STATF_BUSY ; | jr nz, :- ; | ld a, b ; | ld [$9D47], a ; / ld a, [CurCarLockState] and a jr z, .carLockedMenu dec a jr z, .carUnlockedMenu ; Car Unlocked + Upgraded Menu ld hl, $9DC1 ld bc, GR_SelectString call LCDCopyString ld hl, $9DE1 ld bc, GR_BlankString call LCDCopyString jr .doneSetMenu .carLockedMenu: ld hl, $9DC1 ld bc, GR_BuyString call LCDCopyString ld hl, $9DE1 ld bc, GR_BlankString call LCDCopyString jr .doneSetMenu .carUnlockedMenu: ld hl, $9DC1 ld bc, GR_SelectString call LCDCopyString ld hl, $9DE1 ld bc, GR_UpgradeString call LCDCopyString .doneSetMenu: ret ; Draw one of the bars representing the car's stats ; Input - [DE] = "Charge level" of the bar ; Input - HL = VRAM Address of the start of the bar ; Sets - BC to garbage ; Sets - DE += 1 drawStatBar: ld a, [de] inc de push de dec a ld b, a ld c, 8 .barLp: ld a, b rla ; put top bit (negative) into carry ld a, GROBJ_TILE_OFFSET adc 0 ; switch tile type if carry set ld d, a : ldh a, [rSTAT] ; \ and STATF_BUSY ; | Wait for VRAM to be ready jr nz, :- ; / ld a, d ld [hli], a dec b dec c jr nz, .barLp pop de ret ; Draw the description box under the stat bars drawDescriptionBox: SETCHARMAP MainMenuCharmap ld b, " " ; \ FOR N, 7 ; | ld hl, $9D4A + ($20 * N) ; | ld c, 9 ; | Empty description box call LCDMemsetFast ; | ENDR ; / rom_bank_switch BANK("StarterCar Info") ld a, [CurCarLockState] and a jr z, .drawBuyCarBox ; Car is locked - can only buy it dec a jr z, .carUnlocked ; Car is locked - draw either description or upgrade box depending on menu selection jr .drawCarDescription ; Car is upgraded - can only select it .carUnlocked: ld a, [GarageOptionSelected] and a jr z, .drawCarDescription jr .drawBuyUpgradeBox .drawBuyCarBox: ld l, CARINFO_PRICE jr .drawBuyBox .drawBuyUpgradeBox: ld l, CARINFO_UPGRADEPRICE .drawBuyBox: ld a, [ViewedCar] ; \ add HIGH(FirstCarInfo) ; | ld h, a ; | BC = Car Price ld a, [hli] ; | ld b, [hl] ; | ld c, a ; / ld hl, $9DAE ; Draw car price call drawPrice ; ld hl, MoneyAmount ; \ ld a, [hli] ; | ld b, [hl] ; | Draw player balance ld c, a ; | ld hl, $9D6E ; | call drawPrice ; / ld a, [GarageOptionSelected] ; \ ld bc, GR_BalanceString ; | ld hl, $9D4A ; | call LCDCopyString ; | Draw "Cost" and "Balance" strings ld bc, GR_CostString ; | ld hl, $9D8A ; | call LCDCopyString ; / ret .drawCarDescription: ld a, [ViewedCar] add HIGH(FirstCarInfo) ld d, a ld e, CARINFO_DESC FOR N, 7 ; \ ld hl, $9D4A + ($20 * N) ; | ld c, 9 ; | Draw description call LCDMemcpyFast ; | ENDR ; / ret ; Draw one price value ; Input - BC = BCD Price to draw ; Input - HL = Screen address to draw to SETCHARMAP MainMenuCharmap drawPrice: push hl ld hl, Scratchpad ld a, b and $F0 jr nz, .firstCharDollar ld a, " " ld [hli], a ld a, b and $0F jr nz, .secondCharDollar ld a, " " ld [hli], a ld a, c and $F0 jr nz, .thirdCharDollar ld a, " " ld [hli], a jr .fourthCharDollar .firstCharDollar: ld a, "$" ld [hli], a jr .firstChar .secondCharDollar: ld a, "$" ld [hli], a jr .secondChar .thirdCharDollar: ld a, "$" ld [hli], a jr .thirdChar .fourthCharDollar: ld a, "$" ld [hli], a jr .fourthChar .firstChar: ld a, b and $F0 swap a add "0" ld [hli], a .secondChar: ld a, b and $0F add "0" ld [hli], a .thirdChar: ld a, c and $F0 swap a add "0" ld [hli], a .fourthChar: ld a, c and $0F add "0" ld [hli], a pop hl ld de, Scratchpad ld c, 5 call LCDMemcpyFast ret garageVblank: ld a, %11100100 ldh [rBGP], a call DMARoutineHRAM ld hl, LCDIntVectorRAM ld a, LOW(garageLYC) ld [hli], a ld a, HIGH(garageLYC) ld [hl], a ld a, 96 - 1 ld [rLYC], a jp VblankEnd ; Triggers near the top of the Buy / Select menu box, to set up the selection bar palette effect garageLYC: ld a, %11110000 ; 0 and 1 = Lightest, 2 and 3 = Darkest ldh [rBGP], a call selectionBarSetupTopInt jp LCDIntEnd
29.563545
108
0.513491
e463f1a92b4d517546eb913c216a9d89fcbcfc27
13,759
asm
Assembly
Driver/Font/Bitstream/Main/mainOutput.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Driver/Font/Bitstream/Main/mainOutput.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Driver/Font/Bitstream/Main/mainOutput.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: GEOS Bitstream Font Driver MODULE: Main FILE: mainOutput.asm AUTHOR: Brian Chin FUNCTIONS: Scope Name Description ----- ---- ----------- EXT sp_open_bitmap output character EXT sp_set_bitmap_bits output character EXT sp_close_bitmap output character REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 10/12/93 Initial version. DESCRIPTION: This file contains GEOS Bitstream Font Driver routines. $Id: mainOutput.asm,v 1.1 97/04/18 11:45:03 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SetGeosConvention COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% sp_open_bitmap %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: begin bitmap output CALLED BY: Bitstream C code PASS: sp_open_bitmap(fix31 x_set_width, fix31 y_set_width, fix31 xorg, fix31 yorg, fix15 xsize, fix15 ysize) RETURN: nothing DESTROYED: ax, bx, cx, dx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 10/15/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ sp_open_bitmap proc far x_set_width:WWFixed, y_set_width:WWFixed, xorg:WWFixed, yorg:WWFixed, xsize:word, ysize:word ForceRef x_set_width ForceRef y_set_width uses ds, es, di, si .enter segmov es, dgroup, ax ; ; compute info for bitmap header ; (info needed for both bitmap and region...) ; mov ax, xsize ; width tst ax jns widthOkay ; ensure minimum width mov ax, 0 mov xsize, ax widthOkay: mov es:[outputInfo].OI_charWidth, ax mov ax, ysize ; height tst ax jns heightOkay ; ensure minimum height mov ax, 1 ; at least 1 mov ysize, ax heightOkay: mov es:[outputInfo].OI_charHeight, ax ; ; compute X offset for character ; movwwf axdx, xorg ; xoffset rndwwf axdx ; ax = rounded value add ax, es:[outputInfo].OI_scriptX ; script/rotation adjustment add ax, es:[outputInfo].OI_heightX mov es:[outputInfo].OI_charXOffset, ax ; ; GEOS Y offset = FB_baselinePos (scaled) - Bitstream Y offset - height ; ; ax:dh = FB_baselinePos (scaled) movwbf axdh, es:[outputInfo].OI_heightY movwwf bxcx, yorg ; bx:dx = Bitstream y offset rndwwbf bxcx ; bx:ch = Bitstream y offset subwbf axdh, bxch mov bx, es:[outputInfo].OI_charHeight ; bx:ch = height mov ch, 0 subwbf axdh, bxch rndwbf axdh ; ax = rounded value add ax, es:[outputInfo].OI_scriptY ; script/rotation adjustment mov es:[outputInfo].OI_charYOffset, ax EC < ; > EC < ; check if forcing regions (GEN_IN_REGION) > EC < ; > EC < tst es:[outputInfo].OI_forceRegion > EC < ERROR_NZ BITSTREAM_INTERNAL_ERROR > ; ; check if doing regions or bitmaps ; mov ds, es:[outputInfo].OI_fontBuf test ds:[FB_flags], mask FBF_IS_REGION LONG jnz useRegion ; ; compute size of bitmap needed ; mov ax, xsize ; bit width add ax, 0x7 ; round up shr ax, 1 shr ax, 1 shr ax, 1 ; ax = byte width mov es:[outputInfo].OI_byteWidth, ax mov bx, es:[outputInfo].OI_charHeight mul bx ; dx:ax = size tst dx LONG jnz useRegion ; too big, use region mov es:[outputInfo].OI_bitmapMode, BB_TRUE push ax ; data size w/o header add ax, (size CharData) - size (CD_data) ; ; delete LRU character if block getting too large ; ax = size of new character data ; es = dgroup ; call ResizeFontBufForChar ; ; initialize bitmap header (all relevant fields are byte-sized) ; ds:si = bitmap ; mov ax, es:[outputInfo].OI_charWidth EC < mov bx, ax > EC < Abs bx > EC < tst bh > EC < ERROR_NZ FONT_CHAR_TOO_BIG > mov ds:[si].CD_pictureWidth, al mov ax, es:[outputInfo].OI_charHeight EC < mov bx, ax > EC < Abs bx > EC < tst bh > EC < ERROR_NZ FONT_CHAR_TOO_BIG > mov ds:[si].CD_numRows, al mov ax, es:[outputInfo].OI_charXOffset EC < mov bx, ax > EC < Abs bx > EC < tst bh > EC < ERROR_NZ FONT_CHAR_TOO_BIG > mov ds:[si].CD_xoff, al mov ax, es:[outputInfo].OI_charYOffset EC < mov bx, ax > EC < Abs bx > EC < tst bh > EC < ERROR_NZ FONT_CHAR_TOO_BIG > mov ds:[si].CD_yoff, al ; ; zero out rest of data ; pop cx ; cx = size of data w/o header segmov es, ds lea di, ds:[si].CD_data ; es:di = data mov al, 0 rep stosb done: .leave ret useRegion: ; ; character is too big to generate bitmap for, use region ; es = dgroup ; segmov ds, es ; ds = dgroup mov ds:[outputInfo].OI_bitmapMode, BB_FALSE ; handle of block for region push bp mov di, ds:[outputInfo].OI_regionHandle mov cx, RFR_ODD_EVEN or (UNUSED_PER_LINE shl 8) clr bp ; minimum y mov dx, ds:[outputInfo].OI_charHeight ; maximum y call GrRegionPathInit ; es = segment of block pop bp ; cx = size of block mov ds:[outputInfo].OI_regionSeg, es jmp short done sp_open_bitmap endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ResizeFontBufForChar %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: resize FontBuf for new CharData or RegionCharData CALLED BY: sp_open_bitmap (for CharData) sp_close_bitmap (for RegionCharData) PASS: es - dgroup ax - size of CharData or RegionCharData RETURN: ds:si = new CharData, RegionCharData DESTROYED: ax, bx, cx, dx, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 10/20/93 broke out of sp_open_bitmap %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ResizeFontBufForChar proc near mov ds, es:[outputInfo].OI_fontBuf ; ds = FontBuf mov cx, ds:[FB_dataSize] ; cx = current FontBuf size mov bx, cx add bx, ax ; bx = new size cmp bx, MAX_FONT_SIZE ; will be too big? jbe sizeOK ; nope, allocate it call FontDrDeleteLRUChar ; else, delete LRU char mov cx, ds:[FB_dataSize] ; cx = shrunken size sizeOK: ; ; store data offset in char table and allocate space for data ; ds = FontBuf ; cx = offset for character data ; ax = size of new character data ; es = dgroup ; mov dx, es:[outputInfo].OI_character ; dx = GEOS char (SBCS) ; dx = Unicode (DBCS) DBCS < sub dx, ds:[FB_firstChar] > SBCS < sub dl, ds:[FB_firstChar] > mov di, dx FDIndexCharTable di, dx ;di <- pffset to CharTableEntry mov ds:[FB_charTable][di].CTE_dataOffset, cx mov si, cx ; ds:si = data mov es:[outputInfo].OI_dataOffset, cx ; store data offset for ; other output routines add ax, cx ; ax = new data size mov ds:[FB_dataSize], ax ; update data size mov ch, HAF_STANDARD_NO_ERR mov bx, es:[outputInfo].OI_fontBufHan call MemReAlloc ; add space for new character mov es:[outputInfo].OI_fontBuf, ax ; store updated segment mov ds, ax ret ResizeFontBufForChar endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% sp_set_bitmap_bits %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: bitmap output CALLED BY: Bitstream C code PASS: sp_set_bitmap_bits(fix15 y, fix15 xbit1, fix15 xbit2) RETURN: nothing DESTROYED: ax, bx, cx, dx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 10/15/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ sp_set_bitmap_bits proc far scan_line:word, xbit1:word, xbit2:word uses ds, es, si, di .enter segmov es, dgroup, ax tst es:[outputInfo].OI_bitmapMode jnz bitmapMode EC < ; > EC < ; check if forcing regions (GEN_IN_REGION) > EC < ; > EC < tst es:[outputInfo].OI_forceRegion > EC < ERROR_NZ BITSTREAM_INTERNAL_ERROR > ; ; region mode -- set points in region for this scanline ; segmov ds, es ; ds = dgroup mov es, ds:[outputInfo].OI_regionSeg ; es = region segment mov cx, xbit1 mov dx, scan_line call GrRegionPathAddOnOffPoint mov ds:[outputInfo].OI_regionSeg, es ; updated segment mov cx, xbit2 mov dx, scan_line call GrRegionPathAddOnOffPoint mov ds:[outputInfo].OI_regionSeg, es ; updated segment jmp done bitmapMode: ; ; bitmap mode, build out this scanline of bitmap ; mov ds, es:[outputInfo].OI_fontBuf ; ds:si = CharData mov si, es:[outputInfo].OI_dataOffset mov ax, scan_line EC < cmp ax, es:[outputInfo].OI_charHeight > EC < ERROR_AE FONT_CHAR_TOO_BIG > mov bx, es:[outputInfo].OI_byteWidth EC < tst bh > EC < ERROR_NZ FONT_CHAR_TOO_BIG > mul bl mov di, ax ; di = offset to scan-line mov cx, xbit1 tst cx jns leftPos mov cx, 0 leftPos: cmp cl, ds:[si].CD_pictureWidth jbe leftOkay mov cl, ds:[si].CD_pictureWidth mov xbit1, cx leftOkay: mov dx, xbit2 tst dx jns rightPos mov dx, 0 rightPos: cmp dl, ds:[si].CD_pictureWidth jbe rightOkay mov dl, ds:[si].CD_pictureWidth mov xbit2, dx rightOkay: EC < cmp cx, dx > EC < ERROR_A FONT_CHAR_TOO_BIG > add si, offset CD_data ; ds:si = CD_data shr cx, 1 ; convert xbit1 to byte shr cx, 1 shr cx, 1 shr dx, 1 ; convert xbit2 to byte shr dx, 1 shr dx, 1 cmp cx, dx ; same byte? jne diffByte ; no ; ; same byte: cx = dx = (xbit1 >> 3) = (xbit2 >> 3) = byte offset ; within scan-line ; ds:si = CD_data ; di = scan-line offset from CD_data ; add di, cx ; di = offset from CD_data mov bx, xbit1 andnf bx, 0x7 ; bx = start bit offset mov al, cs:[startBitTable][bx] mov bx, xbit2 andnf bx, 0x7 ; bx = end bit offset andnf al, cs:[endBitTable][bx] ; combine start/end byte bits mov bx, di ornf ds:[si][bx], al ; store bits done: .leave ret diffByte: ; ; start and end on different bytes ; ds:si = CD_data ; cx = start byte ; dx = end byte ; di = scan-line offset from CD_data ; add dx, di ; dx = end byte offset add di, cx ; di = start offset from CD_data mov bx, xbit1 andnf bx, 0x7 ; bx = start bit offset mov al, cs:[startBitTable][bx] mov bx, di ornf ds:[si][bx], al ; store start bits byteLoop: inc di cmp di, dx ; reached end byte? je endByte mov bx, di mov {byte}ds:[si][bx], 0xff ; set all intermediate bits jmp short byteLoop endByte: mov bx, xbit2 andnf bx, 0x7 ; bx = end bit offset mov al, cs:[endBitTable][bx] mov bx, di ornf ds:[si][bx], al ; store end bits jmp short done sp_set_bitmap_bits endp startBitTable byte 11111111b byte 01111111b byte 00111111b byte 00011111b byte 00001111b byte 00000111b byte 00000011b byte 00000001b endBitTable byte 00000000b byte 10000000b byte 11000000b byte 11100000b byte 11110000b byte 11111000b byte 11111100b byte 11111110b COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% sp_close_bitmap %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: finish bitmap output CALLED BY: Bitstream C code PASS: sp_close_bitmap() RETURN: nothing DESTROYED: ax, bx, cx, dx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 10/20/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ sp_close_bitmap proc far uses ds, es, si, di .enter segmov es, dgroup, ax EC < ; > EC < ; check if forcing regions (GEN_IN_REGION) > EC < ; > EC < tst es:[outputInfo].OI_forceRegion > EC < ERROR_NZ BITSTREAM_INTERNAL_ERROR > ; ; check for bitmap mode, region mode ; tst es:[outputInfo].OI_bitmapMode jnz done ; nothing for bitmap mode ; ; region mode -- create RegionCharData in FontBuf from regionHandle ; block ; push es ; save dgroup mov es, es:[outputInfo].OI_regionSeg call GrRegionPathClean ; cx = region size pop es ; es = dgroup mov ax, cx push ax ; save data size add ax, SIZE_REGION_HEADER ; RegionCharData header push ax ; save total size call ResizeFontBufForChar ; ds:si = RegionCharData ; ; initialize RegionCharData header ; ds:si = RegionCharData ; es = dgroup ; pop ds:[si].RCD_size ; RegionCharData total size mov ax, es:[outputInfo].OI_charXOffset mov ds:[si].RCD_xoff, ax mov ax, es:[outputInfo].OI_charYOffset mov ds:[si].RCD_yoff, ax if DBCS_PCGEOS mov ax, ds:FB_heapCount mov ds:[si].RCD_usage, ax endif ; ; copy over RCD_bounds and RCD_data from regionHandle ; ds:si = RegionCharData ; es = dgroup ; pop cx ; cx = data size push es ; save dgroup mov ax, es:[outputInfo].OI_regionSeg segmov es, ds ; es:di = RCD_bounds lea di, ds:[si].RCD_bounds mov ds, ax ; ds:si = region bounds/data mov si, offset RP_bounds shr cx, 1 ; cx = # words to copy EC < ERROR_C BITSTREAM_INTERNAL_ERROR > rep movsw EC < segmov ds, es > EC < mov si, di > EC < dec si > EC < call ECCheckBounds > pop ds ; ds = dgroup ; ; unlock regionHandle ; mov bx, ds:[outputInfo].OI_regionHandle call MemUnlock done: .leave ret sp_close_bitmap endp SetDefaultConvention
25.153565
78
0.606657
957950af7598002267644a8e08a974dc637dade5
401
asm
Assembly
oeis/347/A347782.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/347/A347782.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/347/A347782.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A347782: Domination number of the n-tetrahedral (Johnson) graph. ; Submitted by Christian Krause ; 2,4,5,7,8,10,11,13,14,18,19,23,24,29 mov $2,$0 add $0,1 div $0,2 mul $2,2 lpb $0 sub $0,1 add $2,2 trn $6,$0 mov $3,$6 mov $5,$6 cmp $5,0 mul $5,$0 add $3,$5 trn $4,60 add $4,$0 lpb $4 add $2,$0 sub $3,5 div $3,2 mov $4,$3 lpe lpe mov $0,$2 div $0,2 add $0,2
13.366667
66
0.551122
33110c4567dbfbec9524c70411143e6a84cb15b6
53
asm
Assembly
src/main/fragment/mos6502-common/vwum1_ge_vbuc1_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/vwum1_ge_vbuc1_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/vwum1_ge_vbuc1_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
lda {m1}+1 bne {la1} lda {m1} cmp #{c1} bcs {la1} !:
7.571429
10
0.528302
f15b9dbd2dbc9db5eed8c4d7b9ba433998047644
346
asm
Assembly
programs/oeis/016/A016244.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/016/A016244.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/016/A016244.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A016244: Expansion of 1/((1-x)(1-6x)(1-9x)). ; 1,16,187,1942,19033,180628,1681639,15470674,141251605,1283357680,11622778531,105040363246,947975408017,8547451504972,77021100541663,693754126856458,6247172473597069,56244864253707304 lpb $0 mov $2,$0 sub $0,1 seq $2,16172 ; Expansion of 1/((1-6x)(1-9x)). add $1,$2 lpe add $1,1 mov $0,$1
28.833333
184
0.725434
1c4ed59998b0176d0188dee611ac25c2c0d97449
15,217
asm
Assembly
aom_20170505/aom_dsp/x86/highbd_intrapred_sse2.asm
rainliu/aom_analyzer
440652d155140c00a2827512a54103be3d6ff7e4
[ "MIT" ]
null
null
null
aom_20170505/aom_dsp/x86/highbd_intrapred_sse2.asm
rainliu/aom_analyzer
440652d155140c00a2827512a54103be3d6ff7e4
[ "MIT" ]
null
null
null
aom_20170505/aom_dsp/x86/highbd_intrapred_sse2.asm
rainliu/aom_analyzer
440652d155140c00a2827512a54103be3d6ff7e4
[ "MIT" ]
null
null
null
; ; Copyright (c) 2016, Alliance for Open Media. All rights reserved ; ; This source code is subject to the terms of the BSD 2 Clause License and ; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License ; was not distributed with this source code in the LICENSE file, you can ; obtain it at www.aomedia.org/license/software. If the Alliance for Open ; Media Patent License 1.0 was not distributed with this source code in the ; PATENTS file, you can obtain it at www.aomedia.org/license/patent. ; ; %include "third_party/x86inc/x86inc.asm" SECTION_RODATA pw_4: times 8 dw 4 pw_8: times 8 dw 8 pw_16: times 4 dd 16 pw_32: times 4 dd 32 SECTION .text INIT_XMM sse2 cglobal highbd_dc_predictor_4x4, 4, 5, 4, dst, stride, above, left, goffset GET_GOT goffsetq movq m0, [aboveq] movq m2, [leftq] paddw m0, m2 pshuflw m1, m0, 0xe paddw m0, m1 pshuflw m1, m0, 0x1 paddw m0, m1 paddw m0, [GLOBAL(pw_4)] psraw m0, 3 pshuflw m0, m0, 0x0 movq [dstq ], m0 movq [dstq+strideq*2], m0 lea dstq, [dstq+strideq*4] movq [dstq ], m0 movq [dstq+strideq*2], m0 RESTORE_GOT RET INIT_XMM sse2 cglobal highbd_dc_predictor_8x8, 4, 5, 4, dst, stride, above, left, goffset GET_GOT goffsetq pxor m1, m1 mova m0, [aboveq] mova m2, [leftq] DEFINE_ARGS dst, stride, stride3, one mov oned, 0x00010001 lea stride3q, [strideq*3] movd m3, oned pshufd m3, m3, 0x0 paddw m0, m2 pmaddwd m0, m3 packssdw m0, m1 pmaddwd m0, m3 packssdw m0, m1 pmaddwd m0, m3 paddw m0, [GLOBAL(pw_8)] psrlw m0, 4 pshuflw m0, m0, 0x0 punpcklqdq m0, m0 mova [dstq ], m0 mova [dstq+strideq*2 ], m0 mova [dstq+strideq*4 ], m0 mova [dstq+stride3q*2], m0 lea dstq, [dstq+strideq*8] mova [dstq ], m0 mova [dstq+strideq*2 ], m0 mova [dstq+strideq*4 ], m0 mova [dstq+stride3q*2], m0 RESTORE_GOT RET INIT_XMM sse2 cglobal highbd_dc_predictor_16x16, 4, 5, 5, dst, stride, above, left, goffset GET_GOT goffsetq pxor m1, m1 mova m0, [aboveq] mova m3, [aboveq+16] mova m2, [leftq] mova m4, [leftq+16] DEFINE_ARGS dst, stride, stride3, lines4 lea stride3q, [strideq*3] mov lines4d, 4 paddw m0, m2 paddw m0, m3 paddw m0, m4 movhlps m2, m0 paddw m0, m2 punpcklwd m0, m1 movhlps m2, m0 paddd m0, m2 punpckldq m0, m1 movhlps m2, m0 paddd m0, m2 paddd m0, [GLOBAL(pw_16)] psrad m0, 5 pshuflw m0, m0, 0x0 punpcklqdq m0, m0 .loop: mova [dstq ], m0 mova [dstq +16], m0 mova [dstq+strideq*2 ], m0 mova [dstq+strideq*2 +16], m0 mova [dstq+strideq*4 ], m0 mova [dstq+strideq*4 +16], m0 mova [dstq+stride3q*2 ], m0 mova [dstq+stride3q*2+16], m0 lea dstq, [dstq+strideq*8] dec lines4d jnz .loop RESTORE_GOT REP_RET INIT_XMM sse2 cglobal highbd_dc_predictor_32x32, 4, 5, 7, dst, stride, above, left, goffset GET_GOT goffsetq mova m0, [aboveq] mova m2, [aboveq+16] mova m3, [aboveq+32] mova m4, [aboveq+48] paddw m0, m2 paddw m3, m4 mova m2, [leftq] mova m4, [leftq+16] mova m5, [leftq+32] mova m6, [leftq+48] paddw m2, m4 paddw m5, m6 paddw m0, m3 paddw m2, m5 pxor m1, m1 paddw m0, m2 DEFINE_ARGS dst, stride, stride3, lines4 lea stride3q, [strideq*3] mov lines4d, 8 movhlps m2, m0 paddw m0, m2 punpcklwd m0, m1 movhlps m2, m0 paddd m0, m2 punpckldq m0, m1 movhlps m2, m0 paddd m0, m2 paddd m0, [GLOBAL(pw_32)] psrad m0, 6 pshuflw m0, m0, 0x0 punpcklqdq m0, m0 .loop: mova [dstq ], m0 mova [dstq +16 ], m0 mova [dstq +32 ], m0 mova [dstq +48 ], m0 mova [dstq+strideq*2 ], m0 mova [dstq+strideq*2+16 ], m0 mova [dstq+strideq*2+32 ], m0 mova [dstq+strideq*2+48 ], m0 mova [dstq+strideq*4 ], m0 mova [dstq+strideq*4+16 ], m0 mova [dstq+strideq*4+32 ], m0 mova [dstq+strideq*4+48 ], m0 mova [dstq+stride3q*2 ], m0 mova [dstq+stride3q*2 +16], m0 mova [dstq+stride3q*2 +32], m0 mova [dstq+stride3q*2 +48], m0 lea dstq, [dstq+strideq*8] dec lines4d jnz .loop RESTORE_GOT REP_RET INIT_XMM sse2 cglobal highbd_v_predictor_4x4, 3, 3, 1, dst, stride, above movq m0, [aboveq] movq [dstq ], m0 movq [dstq+strideq*2], m0 lea dstq, [dstq+strideq*4] movq [dstq ], m0 movq [dstq+strideq*2], m0 RET INIT_XMM sse2 cglobal highbd_v_predictor_8x8, 3, 3, 1, dst, stride, above mova m0, [aboveq] DEFINE_ARGS dst, stride, stride3 lea stride3q, [strideq*3] mova [dstq ], m0 mova [dstq+strideq*2 ], m0 mova [dstq+strideq*4 ], m0 mova [dstq+stride3q*2], m0 lea dstq, [dstq+strideq*8] mova [dstq ], m0 mova [dstq+strideq*2 ], m0 mova [dstq+strideq*4 ], m0 mova [dstq+stride3q*2], m0 RET INIT_XMM sse2 cglobal highbd_v_predictor_16x16, 3, 4, 2, dst, stride, above mova m0, [aboveq] mova m1, [aboveq+16] DEFINE_ARGS dst, stride, stride3, nlines4 lea stride3q, [strideq*3] mov nlines4d, 4 .loop: mova [dstq ], m0 mova [dstq +16], m1 mova [dstq+strideq*2 ], m0 mova [dstq+strideq*2 +16], m1 mova [dstq+strideq*4 ], m0 mova [dstq+strideq*4 +16], m1 mova [dstq+stride3q*2 ], m0 mova [dstq+stride3q*2+16], m1 lea dstq, [dstq+strideq*8] dec nlines4d jnz .loop REP_RET INIT_XMM sse2 cglobal highbd_v_predictor_32x32, 3, 4, 4, dst, stride, above mova m0, [aboveq] mova m1, [aboveq+16] mova m2, [aboveq+32] mova m3, [aboveq+48] DEFINE_ARGS dst, stride, stride3, nlines4 lea stride3q, [strideq*3] mov nlines4d, 8 .loop: mova [dstq ], m0 mova [dstq +16], m1 mova [dstq +32], m2 mova [dstq +48], m3 mova [dstq+strideq*2 ], m0 mova [dstq+strideq*2 +16], m1 mova [dstq+strideq*2 +32], m2 mova [dstq+strideq*2 +48], m3 mova [dstq+strideq*4 ], m0 mova [dstq+strideq*4 +16], m1 mova [dstq+strideq*4 +32], m2 mova [dstq+strideq*4 +48], m3 mova [dstq+stride3q*2 ], m0 mova [dstq+stride3q*2 +16], m1 mova [dstq+stride3q*2 +32], m2 mova [dstq+stride3q*2 +48], m3 lea dstq, [dstq+strideq*8] dec nlines4d jnz .loop REP_RET INIT_XMM sse2 cglobal highbd_tm_predictor_4x4, 5, 5, 6, dst, stride, above, left, bps movd m1, [aboveq-2] movq m0, [aboveq] pshuflw m1, m1, 0x0 movlhps m0, m0 ; t1 t2 t3 t4 t1 t2 t3 t4 movlhps m1, m1 ; tl tl tl tl tl tl tl tl ; Get the values to compute the maximum value at this bit depth pcmpeqw m3, m3 movd m4, bpsd psubw m0, m1 ; t1-tl t2-tl t3-tl t4-tl psllw m3, m4 pcmpeqw m2, m2 pxor m4, m4 ; min possible value pxor m3, m2 ; max possible value mova m1, [leftq] pshuflw m2, m1, 0x0 pshuflw m5, m1, 0x55 movlhps m2, m5 ; l1 l1 l1 l1 l2 l2 l2 l2 paddw m2, m0 ;Clamp to the bit-depth pminsw m2, m3 pmaxsw m2, m4 ;Store the values movq [dstq ], m2 movhpd [dstq+strideq*2], m2 lea dstq, [dstq+strideq*4] pshuflw m2, m1, 0xaa pshuflw m5, m1, 0xff movlhps m2, m5 paddw m2, m0 ;Clamp to the bit-depth pminsw m2, m3 pmaxsw m2, m4 ;Store the values movq [dstq ], m2 movhpd [dstq+strideq*2], m2 RET INIT_XMM sse2 cglobal highbd_tm_predictor_8x8, 5, 6, 5, dst, stride, above, left, bps, one movd m1, [aboveq-2] mova m0, [aboveq] pshuflw m1, m1, 0x0 ; Get the values to compute the maximum value at this bit depth mov oned, 1 pxor m3, m3 pxor m4, m4 pinsrw m3, oned, 0 pinsrw m4, bpsd, 0 pshuflw m3, m3, 0x0 DEFINE_ARGS dst, stride, line, left punpcklqdq m3, m3 mov lineq, -4 mova m2, m3 punpcklqdq m1, m1 psllw m3, m4 add leftq, 16 psubw m3, m2 ; max possible value pxor m4, m4 ; min possible value psubw m0, m1 .loop: movd m1, [leftq+lineq*4] movd m2, [leftq+lineq*4+2] pshuflw m1, m1, 0x0 pshuflw m2, m2, 0x0 punpcklqdq m1, m1 punpcklqdq m2, m2 paddw m1, m0 paddw m2, m0 ;Clamp to the bit-depth pminsw m1, m3 pminsw m2, m3 pmaxsw m1, m4 pmaxsw m2, m4 ;Store the values mova [dstq ], m1 mova [dstq+strideq*2], m2 lea dstq, [dstq+strideq*4] inc lineq jnz .loop REP_RET INIT_XMM sse2 cglobal highbd_tm_predictor_16x16, 5, 5, 8, dst, stride, above, left, bps movd m2, [aboveq-2] mova m0, [aboveq] mova m1, [aboveq+16] pshuflw m2, m2, 0x0 ; Get the values to compute the maximum value at this bit depth pcmpeqw m3, m3 movd m4, bpsd punpcklqdq m2, m2 psllw m3, m4 pcmpeqw m5, m5 pxor m4, m4 ; min possible value pxor m3, m5 ; max possible value DEFINE_ARGS dst, stride, line, left mov lineq, -8 psubw m0, m2 psubw m1, m2 .loop: movd m7, [leftq] pshuflw m5, m7, 0x0 pshuflw m2, m7, 0x55 punpcklqdq m5, m5 ; l1 l1 l1 l1 l1 l1 l1 l1 punpcklqdq m2, m2 ; l2 l2 l2 l2 l2 l2 l2 l2 paddw m6, m5, m0 ; t1-tl+l1 to t4-tl+l1 paddw m5, m1 ; t5-tl+l1 to t8-tl+l1 pminsw m6, m3 pminsw m5, m3 pmaxsw m6, m4 ; Clamp to the bit-depth pmaxsw m5, m4 mova [dstq ], m6 mova [dstq +16], m5 paddw m6, m2, m0 paddw m2, m1 pminsw m6, m3 pminsw m2, m3 pmaxsw m6, m4 pmaxsw m2, m4 mova [dstq+strideq*2 ], m6 mova [dstq+strideq*2+16], m2 lea dstq, [dstq+strideq*4] inc lineq lea leftq, [leftq+4] jnz .loop REP_RET INIT_XMM sse2 cglobal highbd_tm_predictor_32x32, 5, 5, 8, dst, stride, above, left, bps movd m0, [aboveq-2] mova m1, [aboveq] mova m2, [aboveq+16] mova m3, [aboveq+32] mova m4, [aboveq+48] pshuflw m0, m0, 0x0 ; Get the values to compute the maximum value at this bit depth pcmpeqw m5, m5 movd m6, bpsd psllw m5, m6 pcmpeqw m7, m7 pxor m6, m6 ; min possible value pxor m5, m7 ; max possible value punpcklqdq m0, m0 DEFINE_ARGS dst, stride, line, left mov lineq, -16 psubw m1, m0 psubw m2, m0 psubw m3, m0 psubw m4, m0 .loop: movd m7, [leftq] pshuflw m7, m7, 0x0 punpcklqdq m7, m7 ; l1 l1 l1 l1 l1 l1 l1 l1 paddw m0, m7, m1 pminsw m0, m5 pmaxsw m0, m6 mova [dstq ], m0 paddw m0, m7, m2 pminsw m0, m5 pmaxsw m0, m6 mova [dstq +16], m0 paddw m0, m7, m3 pminsw m0, m5 pmaxsw m0, m6 mova [dstq +32], m0 paddw m0, m7, m4 pminsw m0, m5 pmaxsw m0, m6 mova [dstq +48], m0 movd m7, [leftq+2] pshuflw m7, m7, 0x0 punpcklqdq m7, m7 ; l2 l2 l2 l2 l2 l2 l2 l2 paddw m0, m7, m1 pminsw m0, m5 pmaxsw m0, m6 mova [dstq+strideq*2 ], m0 paddw m0, m7, m2 pminsw m0, m5 pmaxsw m0, m6 mova [dstq+strideq*2+16], m0 paddw m0, m7, m3 pminsw m0, m5 pmaxsw m0, m6 mova [dstq+strideq*2+32], m0 paddw m0, m7, m4 pminsw m0, m5 pmaxsw m0, m6 mova [dstq+strideq*2+48], m0 lea dstq, [dstq+strideq*4] lea leftq, [leftq+4] inc lineq jnz .loop REP_RET
33.297593
78
0.448446
fce4ede47e58fada8e35ea83b8e7455a0ffd1722
308
asm
Assembly
basic-assembly-programs/M4S1-FORMATIVE.asm
ralphcajipe/assembly-8086
3a8763886dc789025bfe18b8d7540c0879c974a8
[ "MIT" ]
null
null
null
basic-assembly-programs/M4S1-FORMATIVE.asm
ralphcajipe/assembly-8086
3a8763886dc789025bfe18b8d7540c0879c974a8
[ "MIT" ]
null
null
null
basic-assembly-programs/M4S1-FORMATIVE.asm
ralphcajipe/assembly-8086
3a8763886dc789025bfe18b8d7540c0879c974a8
[ "MIT" ]
null
null
null
.MODEL SMALL .STACK 100H DATA SEGMENT NUM1 DB 5H NUM2 DB 2H SUM DB ? ENDS CODE SEGMENT ASSUME DS:DATA CS:CODE MAIN: MOV AX,DATA MOV DS,AX MOV AL,NUM1 ADD AL,NUM2 MOV SUM,AL MOV AH,4CH INT 21H ENDS END MAIN
12.833333
27
0.503247
d561e0a8afc4c11e09e066fdec7ee2dab95169a2
14,438
asm
Assembly
playflx/decoders.asm
ped7g/specnext
7c2a735a9dfde5fc3f7da705c8243371238d1ee3
[ "Unlicense" ]
null
null
null
playflx/decoders.asm
ped7g/specnext
7c2a735a9dfde5fc3f7da705c8243371238d1ee3
[ "Unlicense" ]
null
null
null
playflx/decoders.asm
ped7g/specnext
7c2a735a9dfde5fc3f7da705c8243371238d1ee3
[ "Unlicense" ]
null
null
null
; ------------------------------------------------------------------------ LZ4: ; op <=0 [-op][runvalue] or [-128][2 byte size][runvalue] - RLE ; op > 0 [op][2 byte offset] or [127][2 byte size][2 byte offset] - Copy from current frame ; op < 0 [-op][2 byte offset] or [-128][2 byte size][2 byte offset] - Copy from current frame ; op >=0 [op][literal bytes] or [127][2 byte size][literal bytes] - Copy literal values call readword ; hl = bytes in block ld de, 0 ; screen offset ; LZ copy from *current frame* ld a, (previousframe) push af ld a, (currentframesrc) ld (previousframe), a .tick: push hl call readbyte or a jp m, .rle jp z, .rle ; op > 0 [op][2 byte offset] or [127][2 byte size][2 byte offset] - Copy from current frame cp 127 jr z, .longcopyprev_a ld b, 0 ld c, a jr .docopyprev_a .longcopyprev_a: pop hl dec hl dec hl push hl call readword ld bc, hl ; fake-ok .docopyprev_a: call readword push bc push de ld ix, hl ; fake-ok call screencopyfromprevframe pop de pop bc ex de, hl ; add hl, bc ; add de, bc ex de, hl ; pop hl dec hl dec hl dec hl ld a, h or a, l jr z, .done .tock: push hl call readbyte or a jp m, .copyprev_b ; op >=0 [op][literal bytes] or [127][2 byte size][literal bytes] - Copy literal values ld b, 0 ld c, a push bc push de call screencopyfromfile pop de pop bc ex de, hl ; add hl, bc ; add de, bc ex de, hl ; pop hl dec hl or a sbc hl, bc ld a, h or a, l jr z, .done jp .tick .done: pop af ld (previousframe), a jp blockdone .rle: ; op <=0 [-op][runvalue] or [-128][2 byte size][runvalue] - RLE cp -128 jr z, .longrle neg ld b, 0 ld c, a jr .dorle .longrle: pop hl dec hl dec hl push hl call readword ld bc, hl ; fake-ok .dorle: call readbyte push bc push de call screenfill pop de pop bc ex de, hl ; add hl, bc ; add de, bc ex de, hl ; pop hl dec hl dec hl ld a, h or a, l jr z, .done jr .tock .copyprev_b: ; op < 0 [-op][2 byte offset] or [-128][2 byte size][2 byte offset] - Copy from current frame cp -128 jr z, .longcopyprev neg ld c, a ld b, 0 jr .docopyprev .longcopyprev: pop hl dec hl dec hl push hl call readword ld bc, hl ; fake-ok .docopyprev: call readword push bc push de ld ix, hl ; fake-ok call screencopyfromprevframe pop de pop bc ex de, hl ; add hl, bc ; add de, bc ex de, hl ; pop hl dec hl dec hl dec hl ld a, h or a, l jr z, .done jp .tick ; ------------------------------------------------------------------------ LZ5: ; op <=0 [-op][runvalue] or [-128][2 byte size][runvalue] - RLE ; op > 0 [op][2 byte offset] or [127][2 byte size][2 byte offset] - Copy from previous frame ; op < 0 [-op][2 byte offset] or [-128][2 byte size][2 byte offset] - Copy from previous frame ; op >=0 [op][literal bytes] or [127][2 byte size][literal bytes] - Copy literal values call readword ; hl = bytes in block ld de, 0 ; screen offset .tick: push hl call readbyte or a jp m, .rle jp z, .rle ; op > 0 [op][2 byte offset] or [127][2 byte size][2 byte offset] - Copy from previous frame cp 127 jr z, .longcopyprev_a ld b, 0 ld c, a jr .docopyprev_a .longcopyprev_a: pop hl dec hl dec hl push hl call readword ld bc, hl ; fake-ok .docopyprev_a: call readword push bc push de ld ix, hl ; fake-ok call screencopyfromprevframe pop de pop bc ex de, hl ; add hl, bc ; add de, bc ex de, hl ; pop hl dec hl dec hl dec hl ld a, h or a, l jp z, blockdone .tock: push hl call readbyte or a jp m, .copyprev_b ; op < 0 [-op][2 byte offset] or [-128][2 byte size][2 byte offset] - Copy from previous frame cp 127 jr z, .longcopyfromfile ld b, 0 ld c, a jr .docopyfromfile .longcopyfromfile: pop hl dec hl dec hl push hl call readword ld bc, hl ; fake-ok .docopyfromfile: push bc push de call screencopyfromfile pop de pop bc ex de, hl ; add hl, bc ; add de, bc ex de, hl ; pop hl dec hl or a sbc hl, bc ld a, h or a, l jp z, blockdone jp .tick .rle: ; op <=0 [-op][runvalue] or [-128][2 byte size][runvalue] - RLE cp -128 jr z, .longrle neg ld b, 0 ld c, a jr .dorle .longrle: pop hl dec hl dec hl push hl call readword ld bc, hl ; fake-ok .dorle: call readbyte push bc push de call screenfill pop de pop bc ex de, hl ; add hl, bc ; add de, bc ex de, hl ; pop hl dec hl dec hl ld a, h or a, l jp z, blockdone jr .tock .copyprev_b: ; op < 0 [-op][2 byte offset] or [-128][2 byte size][2 byte offset] - Copy from previous frame cp -128 jr z, .longcopyprev neg ld c, a ld b, 0 jr .docopyprev .longcopyprev: pop hl dec hl dec hl push hl call readword ld bc, hl ; fake-ok .docopyprev: call readword push bc push de ld ix, hl ; fake-ok call screencopyfromprevframe pop de pop bc ex de, hl ; add hl, bc ; add de, bc ex de, hl ; pop hl dec hl dec hl dec hl ld a, h or a, l jp z, blockdone jp .tick ; ------------------------------------------------------------------------ LZ6: ; op <=0 [-op][runvalue] or [-128][2 byte size][runvalue] - RLE ; op > 0 [op][2 byte offset] or [127][2 byte size][2 byte offset] - Copy from previous frame ; op < 0 [-op][2 byte offset] or [-128][2 byte size][2 byte offset] - Copy from current frame ; op >=0 [op][literal bytes] or [127][2 byte size][literal bytes] - Copy literal values call readword ; hl = bytes in block ld de, 0 ; screen offset .tick: push hl call readbyte or a jp m, .rle jp z, .rle ; op > 0 [op][2 byte offset] or [127][2 byte size][2 byte offset] - Copy from previous frame cp 127 jr z, .longcopyprev_a ld b, 0 ld c, a jr .docopyprev_a .longcopyprev_a: pop hl dec hl dec hl push hl call readword ld bc, hl ; fake-ok .docopyprev_a: call readword push bc push de ld ix, hl ; fake-ok call screencopyfromprevframe pop de pop bc ex de, hl ; add hl, bc ; add de, bc ex de, hl ; pop hl dec hl dec hl dec hl ld a, h or a, l jp z, blockdone .tock: push hl call readbyte or a jp m, .copyprev_b ; op >=0 [op][literal bytes] or [127][2 byte size][literal bytes] - Copy literal values cp 127 jr z, .longcopyfromfile ld b, 0 ld c, a jr .docopyfromfile .longcopyfromfile: pop hl dec hl dec hl push hl call readword ld bc, hl ; fake-ok .docopyfromfile: push bc push de call screencopyfromfile pop de pop bc ex de, hl ; add hl, bc ; add de, bc ex de, hl ; pop hl dec hl or a sbc hl, bc ld a, h or a, l jp z, blockdone jp .tick .rle: ; op <=0 [-op][runvalue] or [-128][2 byte size][runvalue] - RLE cp -128 jr z, .longrle neg ld b, 0 ld c, a jr .dorle .longrle: pop hl dec hl dec hl push hl call readword ld bc, hl ; fake-ok .dorle: call readbyte push bc push de call screenfill pop de pop bc ex de, hl ; add hl, bc ; add de, bc ex de, hl ; pop hl dec hl dec hl ld a, h or a, l jp z, blockdone jp .tock .copyprev_b: ; op < 0 [-op][2 byte offset] or [-128][2 byte size][2 byte offset] - Copy from current frame cp -128 jr z, .longcopyprev_b neg ld c, a ld b, 0 jr .docopyprev_b .longcopyprev_b: pop hl dec hl dec hl push hl call readword ld bc, hl ; fake-ok .docopyprev_b: call readword push bc push de ld ix, hl ; fake-ok ; LZ copy from *current frame* ld a, (previousframe) push af ld a, (currentframesrc) ld (previousframe), a call screencopyfromprevframe pop af ld (previousframe), a pop de pop bc ex de, hl ; add hl, bc ; add de, bc ex de, hl ; pop hl dec hl dec hl dec hl ld a, h or a, l jp z, blockdone jp .tick ; ------------------------------------------------------------------------ LZ1B: ; op > 0 [op][16 bit ofs] copy from previous ; op <= 0 [-op][run byte] ; op >= 0 [op][.. op bytes ..] ; op < 0 [-op][16 bit ofs] copy from previous call readword ; hl = bytes in block ld de, 0 ; screen offset .tick: push hl call readbyte or a jp m, .rle jp z, .rle ; op > 0 [op][16 bit ofs] copy from previous ld b, 0 ld c, a call readword push bc push de ld ix, hl ; fake-ok call screencopyfromprevframe pop de pop bc ex de, hl ; add hl, bc ; add de, bc ex de, hl ; pop hl dec hl dec hl dec hl ld a, h or a, l jp z, blockdone .tock: push hl call readbyte or a jp m, .copyprev ; op >= 0 [op][.. op bytes ..] ld b, 0 ld c, a push bc push de call screencopyfromfile pop de pop bc ex de, hl ; add hl, bc ; add de, bc ex de, hl ; pop hl dec hl or a sbc hl, bc ld a, h or a, l jp z, blockdone jp .tick .rle: ; op <= 0 [-op][run byte] neg ld b, 0 ld c, a call readbyte push bc push de call screenfill pop de pop bc ex de, hl ; add hl, bc ; add de, bc ex de, hl ; pop hl dec hl dec hl ld a, h or a, l jp z, blockdone jr .tock .copyprev ; op < 0 [-op][16 bit ofs] copy from previous neg ld c, a ld b, 0 call readword push bc push de ld ix, hl ; fake-ok call screencopyfromprevframe pop de pop bc ex de, hl ; add hl, bc ; add de, bc ex de, hl ; pop hl dec hl dec hl dec hl ld a, h or a, l jp z, blockdone jp .tick ; ------------------------------------------------------------------------ LZ3C: ; op > 0 [127][2 byte len] or [op][current ofs +/- signed byte] copy from previous ; op <= 0 [-128][2 byte len] or [-op][run byte] ; op > 0 [127][2 byte len] or [op][current ofs +/- signed byte] copy from previous ; op <= 0 [-128][2 byte len] or [-op][.. bytes ..] call readword ; hl = bytes in block ld de, 0 ; screen offset .tick: push hl call readbyte or a jp m, .rle jp z, .rle ; op > 0 [127][2 byte len] or [op][current ofs +/- signed byte] copy from previous cp 127 jr z, .longcopyprev_a ld b, 0 ld c, a jr .docopyprev_a .longcopyprev_a: pop hl dec hl dec hl push hl call readword ld bc, hl ; fake-ok .docopyprev_a: call readbyte ; +/- offset push bc push de ex hl, de ; hl = offset ld e, a ; sign extend a -> de add a, a ; sbc a, a ; ld d, a ; add hl, de pop de ; restore de = offset push de ld ix, hl ; fake-ok call screencopyfromprevframe pop de pop bc ex de, hl ; add hl, bc ; add de, bc ex de, hl ; pop hl dec hl dec hl ld a, h or a, l jp z, blockdone .tock: push hl call readbyte or a jp m, .copy_b jp z, .copy_b ; op > 0 [127][2 byte len] or [op][current ofs +/- signed byte] copy from previous cp 127 jr z, .longcopyprev_b ld c, a ld b, 0 jr .docopyprev_b .longcopyprev_b pop hl dec hl dec hl push hl call readword ld bc, hl ; fake-ok .docopyprev_b: call readbyte ; +/- offset push bc push de ex hl, de ld e, a ; sign extend a -> de add a, a ; sbc a, a ; ld d, a ; add hl, de ld ix, hl ; fake-ok pop de push de call screencopyfromprevframe pop de pop bc ex de, hl ; add hl, bc ; add de, bc ex de, hl ; pop hl dec hl dec hl ld a, h or a, l jp z, blockdone jp .tick .rle: ; op <= 0 [-128][2 byte len] or [-op][run byte] cp -128 jr z, .longrle neg ld b, 0 ld c, a jr .dorle .longrle: pop hl dec hl dec hl push hl call readword ld bc, hl ; fake-ok .dorle: call readbyte push bc push de call screenfill pop de pop bc ex de, hl ; add hl, bc ; add de, bc ex de, hl ; pop hl dec hl dec hl ld a, h or a, l jp z, blockdone jr .tock .copy_b: ; op <= 0 [-128][2 byte len] or [-op][.. bytes ..] cp -128 jr z, .longcopy neg ld c, a ld b, 0 jr .docopy .longcopy: pop hl dec hl dec hl push hl call readword ld bc, hl ; fake-ok .docopy: push bc push de call screencopyfromfile pop de pop bc ex de, hl ; add hl, bc ; add de, bc ex de, hl ; pop hl dec hl or a sbc hl, bc ld a, h or a, l jp z, blockdone jp .tick ; ------------------------------------------------------------------------ SAMEFRAME: ;chunktype = 0; printf("s"); break; call readword ; hl = bytes in block; ignored, as it's 0 ex de, hl ; screen offset 0 ld ix, 0 ; source offset ld bc, 256*192 call screencopyfromprevframe jp blockdone ; ------------------------------------------------------------------------ BLACKFRAME: ;chunktype = 13; printf("b"); break; call readword ; hl = bytes in block; ignored, as it's 0 xor a jp ONECOLOR.withA ; ------------------------------------------------------------------------ ONECOLOR: ;chunktype = 101; printf("o"); break; call readword ; hl = bytes in block; ignored, as it's 1 call readbyte ; color .withA: ld bc, 256*192 ; 0xc000 ld d, c ld e, c ; screen offset 0 call screenfill jp blockdone ; ------------------------------------------------------------------------ UNKNOWN: ; Just skip it. call readword ld bc, hl ; fake-ok call skipbytes jp blockdone
17.715337
94
0.519463
9c830f174fec9ea21c7fb18c8cd164637c30670c
150
asm
Assembly
P6/function_test.asm
OliverDu8-24/BUAA-CO-2021
9959abd90de9039d751bab64f153547e76066665
[ "MIT" ]
1
2022-03-21T15:07:09.000Z
2022-03-21T15:07:09.000Z
P6/function_test.asm
OliverDu8-24/BUAA-CO-2021
9959abd90de9039d751bab64f153547e76066665
[ "MIT" ]
null
null
null
P6/function_test.asm
OliverDu8-24/BUAA-CO-2021
9959abd90de9039d751bab64f153547e76066665
[ "MIT" ]
null
null
null
lui $at, 0x9876 ori $a0, $at, 0x5432 lui $at, 0xfedc ori $a2, $at, 0xba98 mult $a0, $a2 mfhi $t7 mflo $s0 div $a0, $a2 mfhi $s3 mflo $s4
13.636364
22
0.58
a6ccc8c3aabec8748abbcb8adc1bede16b3906cf
2,037
asm
Assembly
text/maps/fighting_dojo.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
16
2018-08-28T21:47:01.000Z
2022-02-20T20:29:59.000Z
text/maps/fighting_dojo.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
5
2019-04-03T19:53:11.000Z
2022-03-11T22:49:34.000Z
text/maps/fighting_dojo.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
2
2019-12-09T19:46:02.000Z
2020-12-05T21:36:30.000Z
_FightingDojoText_5ce8e:: text "Grunt!" para "I am the KARATE" line "MASTER! I am the" cont "LEADER here!" para "You wish to" line "challenge us?" cont "Expect no mercy!" para "Fwaaa!" done _FightingDojoText_5ce93:: text "Hwa!" line "Arrgh! Beaten!" prompt _FightingDojoText_5ce98:: text "Indeed, I have" line "lost!" para "But, I beseech" line "you, do not take" cont "our emblem as" cont "your trophy!" para "In return, I will" line "give you a prized" cont "fighting #MON!" para "Choose whichever" line "one you like!" done _FightingDojoText_5ce9d:: text "Ho!" para "Stay and train at" line "Karate with us!" done _FightingDojoBattleText1:: text "Hoargh! Take your" line "shoes off!" done _FightingDojoEndBattleText1:: text "I give" line "up!" prompt _FightingDojoAfterBattleText1:: text "You wait 'til you" line "see our Master!" para "I'm a small fry" line "compared to him!" done _FightingDojoBattleText2:: text "I hear you're" line "good! Show me!" done _FightingDojoEndBattleText2:: text "Judge!" line "1 point!" prompt _FightingDojoAfterBattleText2:: text "Our Master is a" line "pro fighter!" done _FightingDojoBattleText3:: text "Nothing tough" line "frightens me!" para "I break boulders" line "for training!" done _FightingDojoEndBattleText3:: text "Yow!" line "Stubbed fingers!" prompt _FightingDojoAfterBattleText3:: text "The only thing" line "that frightens us" cont "is psychic power!" done _FightingDojoBattleText4:: text "Hoohah!" para "You're trespassing" line "in our FIGHTING" cont "DOJO!" done _FightingDojoEndBattleText4:: text "Oof!" line "I give up!" prompt _FightingDojoAfterBattleText4:: text "The prime fighters" line "across the land" cont "train here." done _WantHitmonleeText:: text "You want the" line "hard-kicking" cont "HITMONLEE?" done _WantHitmonchanText:: text "You want the" line "piston-punching" cont "HITMONCHAN?" done _OtherHitmonText:: text "Better not get" line "greedy..." done
15.549618
31
0.713795
ef3d77cfced25c0ae460b9177c3b000ee0b9a073
2,356
asm
Assembly
Library/Math/Format/formatUtils.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Math/Format/formatUtils.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Math/Format/formatUtils.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @----------------------------------------------------------------------- Copyright (c) Geoworks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: formatUtils AUTHOR: Cheng, 4/92 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- Cheng 4/92 Initial revision DESCRIPTION: $Id: formatUtils.asm,v 1.1 97/04/05 01:23:37 newdeal Exp $ -------------------------------------------------------------------------------@ COMMENT @----------------------------------------------------------------------- FUNCTION: FloatFormatUseFreeFormatEntry DESCRIPTION: Tries to locate a free FormatEntry. If none is found, resize the format array to create one. CALLED BY: INTERNAL (FloatFormatAddEntry) PASS: es - segment of format array bx - handle of format array RETURN: carry clear if successful es:di - format entry carry set otherwise DESTROYED: nothing REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Cheng 2/92 Initial version -------------------------------------------------------------------------------@ FloatFormatUseFreeFormatEntry proc near uses cx,dx .enter mov di, size FormatArrayHeader ; es:di <- first format entry mov cx, size FormatEntry ; cx <- size of an entry mov dx, es:FAH_formatArrayEnd ; dx <- end searchLoop: cmp es:[di].FE_used, 0 ; free? je done ; branch if so EC< call ECCheckUsedEntry > add di, cx ; di <- addr of next boolean cmp di, dx ; past end? jb searchLoop ; loop if not ; ; all entries taken, expansion needed ; mov ax, dx ; ax <- current size in bytes add ax, cx ; inc ax by size of entry push ax ; save end of array mov ch, mask HAF_LOCK or mask HAF_ZERO_INIT call MemReAlloc pop di ; retrieve end of array jc error mov es, ax mov es:FAH_formatArrayEnd, di inc es:FAH_numFormatEntries sub di, size FormatEntry ; di <- offset to empty entry mov es:[di].FE_used, -1 ; mark as used EC< mov es:[di].FE_sig, FORMAT_ENTRY_SIG > ; stuff ec signature done: mov es:[di].FE_used, -1 ; mark entry as used clc exit: .leave ret FloatFormatUseFreeFormatEntry endp
23.326733
81
0.576401
79b11fbf0600d8a80bd59b8ff944408bff4d5404
1,037
asm
Assembly
_build/dispatcher/jmp_ippsECCPSignSM2_77c09da8.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
1
2021-10-04T10:21:54.000Z
2021-10-04T10:21:54.000Z
_build/dispatcher/jmp_ippsECCPSignSM2_77c09da8.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
_build/dispatcher/jmp_ippsECCPSignSM2_77c09da8.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
extern m7_ippsECCPSignSM2:function extern n8_ippsECCPSignSM2:function extern y8_ippsECCPSignSM2:function extern e9_ippsECCPSignSM2:function extern l9_ippsECCPSignSM2:function extern n0_ippsECCPSignSM2:function extern k0_ippsECCPSignSM2:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:function segment .data align 8 dq .Lin_ippsECCPSignSM2 .Larraddr_ippsECCPSignSM2: dq m7_ippsECCPSignSM2 dq n8_ippsECCPSignSM2 dq y8_ippsECCPSignSM2 dq e9_ippsECCPSignSM2 dq l9_ippsECCPSignSM2 dq n0_ippsECCPSignSM2 dq k0_ippsECCPSignSM2 segment .text global ippsECCPSignSM2:function (ippsECCPSignSM2.LEndippsECCPSignSM2 - ippsECCPSignSM2) .Lin_ippsECCPSignSM2: db 0xf3, 0x0f, 0x1e, 0xfa call ippcpSafeInit wrt ..plt align 16 ippsECCPSignSM2: db 0xf3, 0x0f, 0x1e, 0xfa mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc] movsxd rax, dword [rax] lea r11, [rel .Larraddr_ippsECCPSignSM2] mov r11, qword [r11+rax*8] jmp r11 .LEndippsECCPSignSM2:
26.589744
87
0.78785
b70356e4203dda5c5dde70af49389e17613273ff
1,819
asm
Assembly
tasks/logical/shift.asm
yds12/x86-roadmap
3476a1b9c3b479f63b5728a9da049fe297843171
[ "MIT" ]
15
2020-07-21T10:32:12.000Z
2022-03-28T05:22:20.000Z
tasks/logical/shift.asm
yds12/x64-roadmap
3476a1b9c3b479f63b5728a9da049fe297843171
[ "MIT" ]
1
2020-05-17T17:49:55.000Z
2020-05-17T17:49:55.000Z
tasks/logical/shift.asm
yds12/x86-roadmap
3476a1b9c3b479f63b5728a9da049fe297843171
[ "MIT" ]
4
2020-07-21T10:32:23.000Z
2022-03-28T05:22:23.000Z
; Uses shift and rotate operations global asm_func section .text asm_func: mov rax, 3 shl rax, 2 ; The shift left (SHL) instruction shift the bits of the ; destination (RAX) to the left by the amount specified by the ; source (the second operand). ; This works effectively as a multiplication by 2^N, where ; N is the second operand. cmp rax, 12 ; we check and jump if the result is correct je loc1 mov rax, 0xbaaaad ret loc1: mov cl, 3 mov rax, 25 shr rax, cl ; The amount to shift can also be specified by register CL ; (and only CL). Here we do a shift right (SHR). We have not ; seen division yet, but this works as a division by powers of ; 2. (The remainder is lost, but I think you can check the ; carry flag for it.) cmp rax, 3 ; again we jump if the result is correct (25 / 2^3 = 3) je loc2 mov rax, 0xbaaad ret loc2: mov rax, -24 sar rax, 1 ; for negative numbers, if we want the shift left to preserve ; the sign, we must use shift arithmetic right (SAR). cmp rax, -12 je loc3 mov rax, 0xbaad ret loc3: mov rax, 1 ; set RAX to 1 shl rax, 63 ; shift the 1 bit to the leftmost position rol rax, 4 ; Here we use the rotate left (ROL) instruction. ; This instruction is similar to SHL but ; the bits coming out of the left end go back into the ; first (rightmost) bit. So this should change RAX from ; 100...000 to 000....001000. cmp rax, 8 je loc4 mov rax, 0xbad ret loc4: mov al, 1 ; now we set AL to 1 ror al, 1 ; and try to rotate right (ROR). Will the 1 bit rotate to the ; leftmost position of RAX or of AL? ret
30.830508
77
0.604728
8fe7bee28de7afa532c4757ef92fe1fa6544b676
317
asm
Assembly
programs/oeis/030/A030695.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/030/A030695.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/030/A030695.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A030695: Smallest nontrivial extension of n-th cube which is a cube. ; 125,8000,2744,64000,125000,216000,343000,512000,729000,1000000,1331000,1728000,2197000,2744000,3375000,4096000,4913000,5832000,6859000,8000000,9261000,10648000,12167000,13824000,15625000 cal $0,30696 ; Cube root of A030695. pow $0,3 mov $1,$0
45.285714
188
0.798107
6b1e7cf3ead7f2c593d6b3477eedf1626b2e60ac
16,573
asm
Assembly
x86_tiles.asm
barryjburns/dgen
a6f61a594b996840110a6c4bc0347a9d8e4f81e7
[ "BSD-3-Clause" ]
33
2020-11-20T16:38:43.000Z
2021-10-17T04:21:44.000Z
x86_tiles.asm
jlongstreet/dgen-libretro
212951c4559bdaa4fea671290a3a802d8c445111
[ "BSD-3-Clause" ]
2
2020-11-21T00:32:37.000Z
2020-11-23T17:38:26.000Z
x86_tiles.asm
jlongstreet/dgen-libretro
212951c4559bdaa4fea671290a3a802d8c445111
[ "BSD-3-Clause" ]
2
2020-11-21T09:37:17.000Z
2021-01-06T15:00:01.000Z
bits 32 section .text %define which [ebp+36] ; int which %define line [ebp+40] ; int line %define where [ebp+44] ; unsigned char *where %define vram [ebp+24] ; unsigned char *vram %define reg [ebp+28] ; unsigned char reg[0x20] %define highpal [ebp+32] ; unsigned int *highpal ;%define cache_align times ($$-$) & 3 nop ; Align to 4-byte boundary ;%define cache_align times ($$-$) & 7 nop ; Align to 8-byte boundary %define cache_align times ($$-$) & 31 nop ; Align to 32-byte boundary global asm_tiles_init global drawtile1_solid global drawtile1 global drawtile2_solid global drawtile2 global drawtile3_solid global drawtile3 global drawtile4_solid global drawtile4 ; Neat utility macro %macro triple_xor 2 xor %1, %2 ; Triple XOR for a neat register exchange ;) xor %2, %1 xor %1, %2 %endmacro %macro blit_pixel1 1-* ; 8bpp blitting, solid mov eax, ebx and eax, %1 %if %0 > 1 shr eax, byte %2 %endif or eax, [esi] mov byte [edi], al inc edi %endmacro %macro blit_pixel1_trans 1-* ; 8bpp blitting, transparent mov eax, ebx and eax, %1 jz %%trans %if %0 > 1 shr eax, byte %2 %endif or eax, [esi] mov byte [edi], al %%trans: inc edi %endmacro %macro blit_pixel2 1-* ; 16bpp blitting, solid mov eax, ebx and eax, %1 %if %0 > 1 shr eax, byte %2 %endif lea edx, [esi+eax*4] mov eax, [edx] mov word [edi], ax add edi, byte 2 %endmacro %macro blit_pixel2_trans 1-* ; 16bpp blitting, transparent mov eax, ebx and eax, %1 jz %%trans %if %0 > 1 shr eax, byte %2 %endif lea edx, [esi+eax*4] mov eax, [edx] mov word [edi], ax %%trans: add edi, byte 2 %endmacro %macro blit_pixel3 1-* ; 24bpp blitting, solid mov eax, ebx and eax, %1 %if %0 > 1 shr eax, byte %2 %endif lea edx, [esi+eax*4+1] mov ax, word [edx] mov word [edi], ax add edi, 2 dec edx mov al, byte [edx] mov byte [edi], al inc edi %endmacro %macro blit_pixel3_trans 1-* ; 24bpp blitting, transparent mov eax, ebx and eax, %1 jz %%trans %if %0 > 1 shr eax, byte %2 %endif lea edx, [esi+eax*4+1] mov ax, word [edx] mov word [edi], ax add edi, 2 dec edx mov al, byte [edx] mov byte [edi], al inc edi jmp %%next %%trans: add edi, byte 3 %%next: %endmacro %macro blit_pixel4 1-* ; 32bpp blitting, solid mov eax, ebx and eax, %1 %if %0 > 1 shr eax, byte %2 %endif lea edx, [esi+eax*4] mov eax, [edx] mov [edi], eax add edi, byte 4 %endmacro %macro blit_pixel4_trans 1-* ; 32bpp blitting, transparent mov eax, ebx and eax, %1 jz %%trans %if %0 > 1 shr eax, byte %2 %endif lea edx, [esi+eax*4] mov eax, [edx] mov [edi], eax %%trans: add edi, byte 4 %endmacro ; ---------------------------------------- ; int _asm_tiles_init ; (unsigned char *vram, unsigned char *reg, unsigned char *highpal) ; ---------------------------------------- cache_align asm_tiles_init: push eax push ebx push edx push esp push ebp mov ebp, esp mov eax, vram mov ebx, reg mov edx, highpal mov [__vram], eax mov [__reg], ebx mov [__highpal], edx pop ebp pop esp pop edx pop ebx pop eax ret cache_align ; ---------------------------------------- ; int _drawtile1_solid ; (int which, int line, unsigned char *where) ; ---------------------------------------- cache_align drawtile1_solid: pushad mov ebp, esp .setup: .get_pal: mov ebx, which mov esi, [__highpal] mov eax, ebx shr eax, byte 7 and eax, 0xc0 add esi, eax mov edi, [__reg] push esi .check_y_flip: mov eax, ebx xor ecx, ecx mov edx, line test eax, 0x1000 jz .check_interlace .y_flipped: xor edx, byte 7 cache_align .check_interlace: mov esi, [__reg] mov cl, [esi+12] mov esi, [__vram] and eax, 0x7ff test cl, byte 0x2 jz .no_interlace .interlace: lea edx, [edx*8] shl eax, 6 jmp .check_x_flip cache_align .no_interlace: lea edx, [edx*4] shl eax, 5 cache_align .check_x_flip: add eax, edx mov edi, where lea esi, [esi+eax] mov ebx, [esi] pop esi mov eax, which test eax, 0x800 jz near .x_not_flipped .x_flipped: blit_pixel1 0x0f000000, 24 ; pixel 8 blit_pixel1 0xf0000000, 28 ; ..... 7 blit_pixel1 0x000f0000, 16 ; ..... 6 blit_pixel1 0x00f00000, 20 ; ..... 5 blit_pixel1 0x00000f00, 8 ; ..... 4 blit_pixel1 0x0000f000, 12 ; ..... 3 blit_pixel1 0x0000000f ; ..... 2 blit_pixel1 0x000000f0, 4 ; ..... 1 jmp .cleanup cache_align .x_not_flipped: blit_pixel1 0x000000f0, 4 ; pixel 1 blit_pixel1 0x0000000f ; ..... 2 blit_pixel1 0x0000f000, 12 ; ..... 3 blit_pixel1 0x00000f00, 8 ; ..... 4 blit_pixel1 0x00f00000, 20 ; ..... 5 blit_pixel1 0x000f0000, 16 ; ..... 6 blit_pixel1 0xf0000000, 28 ; ..... 7 blit_pixel1 0x0f000000, 24 ; ..... 8 cache_align .cleanup: popad ret cache_align ; ---------------------------------------- drawtile1: pushad mov ebp, esp .setup: .get_pal: mov ebx, which mov esi, [__highpal] mov eax, ebx shr eax, byte 7 and eax, 0xc0 add esi, eax push esi .check_y_flip: mov eax, ebx xor ecx, ecx mov edx, line test eax, 0x1000 jz .check_interlace .y_flipped: xor edx, byte 7 cache_align .check_interlace: mov esi, [__reg] mov cl, [esi+12] mov esi, [__vram] and eax, 0x7ff test cl, byte 0x2 jz .no_interlace .interlace: lea edx, [edx*8] shl eax, 6 jmp .check_x_flip cache_align .no_interlace: lea edx, [edx*4] shl eax, 5 cache_align .check_x_flip: add eax, edx mov edi, where lea esi, [esi+eax] mov ebx, [esi] pop esi test ebx, ebx jz near .cleanup ; Don't waste time if the tile is blank! mov eax, which test eax, 0x800 jz near .x_not_flipped .x_flipped: blit_pixel1_trans 0x0f000000, 24 ; pixel 8 blit_pixel1_trans 0xf0000000, 28 ; ..... 7 blit_pixel1_trans 0x000f0000, 16 ; ..... 6 blit_pixel1_trans 0x00f00000, 20 ; ..... 5 blit_pixel1_trans 0x00000f00, 8 ; ..... 4 blit_pixel1_trans 0x0000f000, 12 ; ..... 3 blit_pixel1_trans 0x0000000f ; ..... 2 blit_pixel1_trans 0x000000f0, 4 ; ..... 1 jmp .cleanup cache_align .x_not_flipped: blit_pixel1_trans 0x000000f0, 4 ; pixel 1 blit_pixel1_trans 0x0000000f ; ..... 2 blit_pixel1_trans 0x0000f000, 12 ; ..... 3 blit_pixel1_trans 0x00000f00, 8 ; ..... 4 blit_pixel1_trans 0x00f00000, 20 ; ..... 5 blit_pixel1_trans 0x000f0000, 16 ; ..... 6 blit_pixel1_trans 0xf0000000, 28 ; ..... 7 blit_pixel1_trans 0x0f000000, 24 ; ..... 8 cache_align .cleanup: popad ret cache_align ; ---------------------------------------- cache_align drawtile2_solid: pushad mov ebp, esp .setup: .get_pal: mov ebx, which mov esi, [__highpal] mov ecx, esi mov eax, ebx shr eax, byte 7 and eax, 0xc0 add esi, eax ; - mov edi, [__reg] mov edx, [edi + 7] push dword [esi] and edx, 0x3f mov eax, [ecx + edx*4] mov [esi], eax ; - push esi .check_y_flip: mov eax, ebx xor ecx, ecx mov edx, line test eax, 0x1000 jz .check_interlace .y_flipped: xor edx, byte 7 cache_align .check_interlace: mov esi, [__reg] mov cl, [esi+12] mov esi, [__vram] and eax, 0x7ff test cl, byte 0x2 jz .no_interlace .interlace: lea edx, [edx*8] shl eax, 6 jmp .check_x_flip cache_align .no_interlace: lea edx, [edx*4] shl eax, 5 cache_align .check_x_flip: add eax, edx mov edi, where lea esi, [esi+eax] mov ebx, [esi] pop esi mov eax, which test eax, 0x800 jz near .x_not_flipped .x_flipped: blit_pixel2 0x0f000000, 24 ; pixel 8 blit_pixel2 0xf0000000, 28 ; ..... 7 blit_pixel2 0x000f0000, 16 ; ..... 6 blit_pixel2 0x00f00000, 20 ; ..... 5 blit_pixel2 0x00000f00, 8 ; ..... 4 blit_pixel2 0x0000f000, 12 ; ..... 3 blit_pixel2 0x0000000f ; ..... 2 blit_pixel2 0x000000f0, 4 ; ..... 1 jmp .cleanup cache_align .x_not_flipped: blit_pixel2 0x000000f0, 4 ; pixel 1 blit_pixel2 0x0000000f ; ..... 2 blit_pixel2 0x0000f000, 12 ; ..... 3 blit_pixel2 0x00000f00, 8 ; ..... 4 blit_pixel2 0x00f00000, 20 ; ..... 5 blit_pixel2 0x000f0000, 16 ; ..... 6 blit_pixel2 0xf0000000, 28 ; ..... 7 blit_pixel2 0x0f000000, 24 ; ..... 8 cache_align .cleanup: pop dword [esi] popad ret cache_align ; ---------------------------------------- cache_align drawtile2: pushad mov ebp, esp .get_pal: mov ebx, which mov esi, [__highpal] mov eax, ebx shr eax, 7 and eax, 0xc0 add esi, eax push esi .check_y_flip: mov eax, ebx xor ecx, ecx mov edx, line test eax, 0x1000 jz .check_interlace .y_flipped: xor edx, byte 7 cache_align .check_interlace: mov esi, [__reg] mov cl, [esi+12] mov esi, [__vram] and eax, 0x7ff test cl, byte 0x2 jz .no_interlace .interlace: lea edx, [edx*8] shl eax, 6 jmp .check_x_flip cache_align .no_interlace: lea edx, [edx*4] shl eax, 5 cache_align .check_x_flip: add eax, edx mov edi, where lea esi, [esi+eax] mov ebx, [esi] pop esi test ebx, ebx jz near .cleanup ; Don't waste time if the tile is blank! mov eax, which test eax, 0x800 jz near .x_not_flipped .x_flipped: blit_pixel2_trans 0x0f000000, 24 ; pixel 8 blit_pixel2_trans 0xf0000000, 28 ; ..... 7 blit_pixel2_trans 0x000f0000, 16 ; ..... 6 blit_pixel2_trans 0x00f00000, 20 ; ..... 5 blit_pixel2_trans 0x00000f00, 8 ; ..... 4 blit_pixel2_trans 0x0000f000, 12 ; ..... 3 blit_pixel2_trans 0x0000000f ; ..... 2 blit_pixel2_trans 0x000000f0, 4 ; ..... 1 jmp .cleanup cache_align .x_not_flipped: blit_pixel2_trans 0x000000f0, 4 ; pixel 1 blit_pixel2_trans 0x0000000f ; ..... 2 blit_pixel2_trans 0x0000f000, 12 ; ..... 3 blit_pixel2_trans 0x00000f00, 8 ; ..... 4 blit_pixel2_trans 0x00f00000, 20 ; ..... 5 blit_pixel2_trans 0x000f0000, 16 ; ..... 6 blit_pixel2_trans 0xf0000000, 28 ; ..... 7 blit_pixel2_trans 0x0f000000, 24 ; ..... 8 cache_align .cleanup: popad ret cache_align ; ---------------------------------------- drawtile3_solid: pushad mov ebp, esp .setup: .get_pal: mov ebx, which mov esi, [__highpal] mov ecx, esi mov eax, ebx shr eax, byte 7 and eax, 0xc0 add esi, eax ; - mov edi, [__reg] mov edx, [edi + 7] push dword [esi] and edx, 0x3f mov eax, [ecx + edx*4] mov [esi], eax ; - push esi .check_y_flip: mov eax, ebx xor ecx, ecx mov edx, line test eax, 0x1000 jz .check_interlace .y_flipped: xor edx, byte 7 cache_align .check_interlace: mov esi, [__reg] mov cl, [esi+12] mov esi, [__vram] and eax, 0x7ff test cl, byte 0x2 jz .no_interlace .interlace: lea edx, [edx*8] shl eax, 6 jmp .check_x_flip cache_align .no_interlace: lea edx, [edx*4] shl eax, 5 cache_align .check_x_flip: add eax, edx mov edi, where lea esi, [esi+eax] mov ebx, [esi] pop esi mov eax, which test eax, 0x800 jz near .x_not_flipped .x_flipped: blit_pixel3 0x0f000000, 24 ; pixel 8 blit_pixel3 0xf0000000, 28 ; ..... 7 blit_pixel3 0x000f0000, 16 ; ..... 6 blit_pixel3 0x00f00000, 20 ; ..... 5 blit_pixel3 0x00000f00, 8 ; ..... 4 blit_pixel3 0x0000f000, 12 ; ..... 3 blit_pixel3 0x0000000f ; ..... 2 blit_pixel3 0x000000f0, 4 ; ..... 1 jmp .cleanup cache_align .x_not_flipped: blit_pixel3 0x000000f0, 4 ; pixel 1 blit_pixel3 0x0000000f ; ..... 2 blit_pixel3 0x0000f000, 12 ; ..... 3 blit_pixel3 0x00000f00, 8 ; ..... 4 blit_pixel3 0x00f00000, 20 ; ..... 5 blit_pixel3 0x000f0000, 16 ; ..... 6 blit_pixel3 0xf0000000, 28 ; ..... 7 blit_pixel3 0x0f000000, 24 ; ..... 8 cache_align .cleanup: pop dword [esi] popad ret cache_align ; ---------------------------------------- drawtile3: pushad mov ebp, esp .setup: .get_pal: mov ebx, which mov esi, [__highpal] mov eax, ebx shr eax, byte 7 and eax, 0xc0 add esi, eax push esi .check_y_flip: mov eax, ebx xor ecx, ecx mov edx, line test eax, 0x1000 jz .check_interlace .y_flipped: xor edx, byte 7 cache_align .check_interlace: mov esi, [__reg] mov cl, [esi+12] mov esi, [__vram] and eax, 0x7ff test cl, byte 0x2 jz .no_interlace .interlace: lea edx, [edx*8] shl eax, 6 jmp .check_x_flip cache_align .no_interlace: lea edx, [edx*4] shl eax, 5 cache_align .check_x_flip: add eax, edx mov edi, where lea esi, [esi+eax] mov ebx, [esi] pop esi test ebx, ebx jz near .cleanup ; Don't waste time if the tile is blank! mov eax, which test eax, 0x800 jz near .x_not_flipped .x_flipped: blit_pixel3_trans 0x0f000000, 24 ; pixel 8 blit_pixel3_trans 0xf0000000, 28 ; ..... 7 blit_pixel3_trans 0x000f0000, 16 ; ..... 6 blit_pixel3_trans 0x00f00000, 20 ; ..... 5 blit_pixel3_trans 0x00000f00, 8 ; ..... 4 blit_pixel3_trans 0x0000f000, 12 ; ..... 3 blit_pixel3_trans 0x0000000f ; ..... 2 blit_pixel3_trans 0x000000f0, 4 ; ..... 1 jmp .cleanup cache_align .x_not_flipped: blit_pixel3_trans 0x000000f0, 4 ; pixel 1 blit_pixel3_trans 0x0000000f ; ..... 2 blit_pixel3_trans 0x0000f000, 12 ; ..... 3 blit_pixel3_trans 0x00000f00, 8 ; ..... 4 blit_pixel3_trans 0x00f00000, 20 ; ..... 5 blit_pixel3_trans 0x000f0000, 16 ; ..... 6 blit_pixel3_trans 0xf0000000, 28 ; ..... 7 blit_pixel3_trans 0x0f000000, 24 ; ..... 8 cache_align .cleanup: popad ret cache_align ; ---------------------------------------- drawtile4_solid: pushad mov ebp, esp .setup: .get_pal: mov ebx, which mov esi, [__highpal] mov ecx, esi mov eax, ebx shr eax, byte 7 and eax, 0xc0 add esi, eax ; - mov edi, [__reg] mov edx, [edi + 7] push dword [esi] and edx, 0x3f mov eax, [ecx + edx*4] mov [esi], eax ; - push esi .check_y_flip: mov eax, ebx xor ecx, ecx mov edx, line test eax, 0x1000 jz .check_interlace .y_flipped: xor edx, byte 7 cache_align .check_interlace: mov esi, [__reg] mov cl, [esi+12] mov esi, [__vram] and eax, 0x7ff test cl, byte 0x2 jz .no_interlace .interlace: lea edx, [edx*8] shl eax, 6 jmp .check_x_flip cache_align .no_interlace: lea edx, [edx*4] shl eax, 5 cache_align .check_x_flip: add eax, edx mov edi, where lea esi, [esi+eax] mov ebx, [esi] pop esi mov eax, which test eax, 0x800 jz near .x_not_flipped .x_flipped: blit_pixel4 0x0f000000, 24 ; pixel 8 blit_pixel4 0xf0000000, 28 ; ..... 7 blit_pixel4 0x000f0000, 16 ; ..... 6 blit_pixel4 0x00f00000, 20 ; ..... 5 blit_pixel4 0x00000f00, 8 ; ..... 4 blit_pixel4 0x0000f000, 12 ; ..... 3 blit_pixel4 0x0000000f ; ..... 2 blit_pixel4 0x000000f0, 4 ; ..... 1 jmp .cleanup cache_align .x_not_flipped: blit_pixel4 0x000000f0, 4 ; pixel 1 blit_pixel4 0x0000000f ; ..... 2 blit_pixel4 0x0000f000, 12 ; ..... 3 blit_pixel4 0x00000f00, 8 ; ..... 4 blit_pixel4 0x00f00000, 20 ; ..... 5 blit_pixel4 0x000f0000, 16 ; ..... 6 blit_pixel4 0xf0000000, 28 ; ..... 7 blit_pixel4 0x0f000000, 24 ; ..... 8 cache_align .cleanup: pop dword [esi] popad ret cache_align ; ---------------------------------------- drawtile4: pushad mov ebp, esp .setup: .get_pal: mov ebx, which mov esi, [__highpal] mov eax, ebx shr eax, byte 7 and eax, 0xc0 add esi, eax push esi .check_y_flip: mov eax, ebx xor ecx, ecx mov edx, line test eax, 0x1000 jz .check_interlace .y_flipped: xor edx, byte 7 cache_align .check_interlace: mov esi, [__reg] mov cl, [esi+12] mov esi, [__vram] and eax, 0x7ff test cl, byte 0x2 jz .no_interlace .interlace: lea edx, [edx*8] shl eax, 6 jmp .check_x_flip cache_align .no_interlace: lea edx, [edx*4] shl eax, 5 cache_align .check_x_flip: add eax, edx mov edi, where lea esi, [esi+eax] mov ebx, [esi] pop esi test ebx, ebx jz near .cleanup ; Don't waste time if the tile is blank! mov eax, which test eax, 0x800 jz near .x_not_flipped .x_flipped: blit_pixel4_trans 0x0f000000, 24 ; pixel 8 blit_pixel4_trans 0xf0000000, 28 ; ..... 7 blit_pixel4_trans 0x000f0000, 16 ; ..... 6 blit_pixel4_trans 0x00f00000, 20 ; ..... 5 blit_pixel4_trans 0x00000f00, 8 ; ..... 4 blit_pixel4_trans 0x0000f000, 12 ; ..... 3 blit_pixel4_trans 0x0000000f ; ..... 2 blit_pixel4_trans 0x000000f0, 4 ; ..... 1 jmp .cleanup cache_align .x_not_flipped: blit_pixel4_trans 0x000000f0, 4 ; pixel 1 blit_pixel4_trans 0x0000000f ; ..... 2 blit_pixel4_trans 0x0000f000, 12 ; ..... 3 blit_pixel4_trans 0x00000f00, 8 ; ..... 4 blit_pixel4_trans 0x00f00000, 20 ; ..... 5 blit_pixel4_trans 0x000f0000, 16 ; ..... 6 blit_pixel4_trans 0xf0000000, 28 ; ..... 7 blit_pixel4_trans 0x0f000000, 24 ; ..... 8 cache_align .cleanup: popad ret cache_align section .data __vram dd 0 __reg dd 0 __highpal dd 0 ; ---------------------------------------- %ifdef NASM_STACK_NOEXEC section .note.GNU-stack noalloc noexec nowrite progbits %endif
15.13516
69
0.644301
f232617e9d69a2a38bf5d808d87a98365d016b21
4,508
asm
Assembly
Common/tests/mathTest.asm
Martin-H1/6502
e57e4b71d44e8cccfb5ba7e1d31db8d59e3e02a6
[ "MIT" ]
3
2020-05-10T02:45:52.000Z
2020-08-27T19:30:21.000Z
Common/tests/mathTest.asm
Martin-H1/6502
e57e4b71d44e8cccfb5ba7e1d31db8d59e3e02a6
[ "MIT" ]
null
null
null
Common/tests/mathTest.asm
Martin-H1/6502
e57e4b71d44e8cccfb5ba7e1d31db8d59e3e02a6
[ "MIT" ]
null
null
null
; ----------------------------------------------------------------------------- ; Test for math functions under py65mon. ; Martin Heermance <mheermance@gmail.com> ; ----------------------------------------------------------------------------- .word $8000 .org $8000 .outfile "tests/mathTest.rom" .alias RamSize $7EFF ; default $8000 for 32 kb x 8 bit RAM .alias heap_base $0400 ; The heap starts on page 4. .alias heap_size $4000 ; It's size is 16 KB. .require "../data.asm" .advance $c000 .require "../conio.asm" .require "../heap.asm" .require "../math16.asm" .require "../print.asm" .require "../stack.asm" .require "../string.asm" .require "mockConio.asm" ; Main entry point for the test main: ldx #SP0 ; Reset stack pointer `pushi getch_impl ; Initialize the console vectors. `pushi putch_impl jsr conIoInit jsr add_test jsr sub_test jsr neg_test jsr mul_test jsr div_test jsr mod_test jsr greater_test jsr less_test jsr equals_test jsr andor_test jsr minmax_test jsr divByTwo_test jsr arshift_test jsr mstar_test brk true: .byte "True!",0 false: .byte "False!",0 .scope _name: .byte "*** add test ***",0 _num1: .word $dead _num2: .word $beef add_test: `println _name `push _num1 `push _num2 jsr printstack `swap `pushi printstack `execute jsr add16 jsr printstack rts .scend .scope _name: .byte "*** sub test ***",0 sub_test: `println _name `dup jsr sub16 jsr printstack `drop rts .scend .scope _name: .byte "*** neg test ***",0 neg_test: `println _name `pushi 4 jsr neg16 `dup jsr neg16 jsr printstack `drop `drop `pushi 2 `sToD jsr printstack jsr neg32 jsr printstack `drop `drop rts .scend .scope _name: .byte "*** mul test ***",0 mul_test: `println _name `pushi 2 `pushi 3 jsr mul16 jsr printstack `drop rts .scend .scope _name: .byte "*** div test ***",0 div_test: `println _name `pushi 10 `pushi 2 jsr div16 jsr printstack `drop rts .scend .scope _name: .byte "*** mod test ***",0 mod_test: `println _name `pushi 14 `pushi 3 jsr mod16 jsr printstack `drop rts .scend .scope _name: .byte "*** greater test ***",0 greater_test: `println _name ; -1 1 > should be false `pushi $ffff `pushi $0001 `if_greater16 `println true bra _end_if _else: `println false _end_if: rts .scend .scope _name: .byte "*** less test ***",0 less_test: `println _name ; -1 1 < should be true `pushi $ffff `pushi $0001 `if_less16 `println true bra _end_if _else: `println false _end_if: rts .scend .scope _name: .byte "*** equals test ***",0 equals_test: `println _name ; 0400 0400 == is true `pushi $0400 `pushi $0400 .scope `if_equals16 `println true bra _end_if _else: `println false _end_if: .scend ; -1 1 == should be false `pushi $ffff `pushi $0001 .scope `if_equals16 `println true bra _end_if _else: `println false _end_if: .scend rts .scend .scope _name: .byte "*** andor test ***",0 andor_test: `println _name `pushi $00f0 `pushi $0f00 jsr or16 jsr printstack `pushi $f0f0 jsr or16 jsr printstack `pushi $f0f0 jsr and16 jsr printstack `drop rts .scend .scope _name: .byte "*** min max test ***",0 minmax_test: `println _name `pushi $00f0 `pushi $0f00 jsr min16 jsr printstack `pushi $f0f0 jsr min16 jsr printstack `pushi $00f0 jsr max16 jsr printstack `pushi $0ff0 jsr max16 jsr printstack `drop rts .scend .scope _name: .byte "*** div by two test ***",0 divByTwo_test: `println _name `pushi $ffff jsr divByTwo16 jsr printtosln jsr divByTwo16 jsr printtosln `drop `pushi $f0f0 jsr divByTwo16 jsr printtosln `drop `pushi $0010 jsr divByTwo16 jsr printtosln jsr divByTwo16 jsr printtosln jsr divByTwo16 jsr printtosln `drop rts .scend .scope _name: .byte "*** arshift test ***",0 arshift_test: `println _name `pushi $ffff `pushi 0 jsr arshift16 jsr printtosln `drop `pushi $ffff `pushi 2 jsr arshift16 jsr printtosln `drop `pushi $f0f0 `pushi 3 jsr arshift16 jsr printtosln `drop `pushi $0080 `pushi $0003 jsr arshift16 jsr printtosln `drop jsr printstack rts .scend .scope _name: .byte "*** mstar test ***",0 mstar_test: `println _name `pushi $ffff `pushi 0 jsr mstar jsr printstack `drop `drop `pushi $0ff0 `pushi $0008 jsr mstar jsr printstack `drop `drop `pushi $000f `pushi $0008 jsr mstar jsr printstack `drop `drop rts .scend .require "../vectors.asm"
13.376855
79
0.647294
17cce19ac17717bd891a6e4d78de1e8aefaa5f25
217
asm
Assembly
Old Programmes/8085/Memory Move/memmove.asm
illuminati-inc-2020/school
f22d640abd5505889bcfa9f7880c90a1b6e79635
[ "CC0-1.0" ]
null
null
null
Old Programmes/8085/Memory Move/memmove.asm
illuminati-inc-2020/school
f22d640abd5505889bcfa9f7880c90a1b6e79635
[ "CC0-1.0" ]
null
null
null
Old Programmes/8085/Memory Move/memmove.asm
illuminati-inc-2020/school
f22d640abd5505889bcfa9f7880c90a1b6e79635
[ "CC0-1.0" ]
null
null
null
LDA 00A0H MOV C,A ;C=Number of data LXI D,00B0H ;DE=Input address LXI H,00B5H ;HL=Output address MVI B,00H DCR C DAD B XCHG DAD B INR C LOOP: MOV A,M XCHG MOV M,A XCHG DCX H DCX D DCR C JNZ LOOP HLT
11.421053
31
0.663594
d6f75b47a66683ba39527404a81c4c0bfc66680d
712
asm
Assembly
oeis/041/A041086.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/041/A041086.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/041/A041086.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A041086: Numerators of continued fraction convergents to sqrt(51). ; Submitted by Jon Maiga ; 7,50,707,4999,70693,499850,7068593,49980001,706788607,4997500250,70671792107,499700044999,7066472422093,49965006999650,706576570417193,4996000999920001,70650590569297207,499550134985000450,7064352480359303507,49950017497500124999,706364597445361053493,4994502199615027499450,70629395392055746045793,499400269944005249820001,7062233174608129243525807,49935032492200909954500650,706152688065420868606534907,4993003848950146990200244999,70608206573367478731409964893,499250449862522498110069999250 add $0,1 mov $3,1 lpb $0 sub $0,1 add $2,$3 mov $3,$1 mov $1,$2 dif $2,2 mul $2,7 add $3,$2 lpe mov $0,$3
41.882353
496
0.837079
ceb40bfd0ed5b35caf1c426c85a990572e097702
4,078
asm
Assembly
0.PARTE-I/A2.EX8PUSHBUTTON/AULA.asm
ronchifabricio/progparamicroprocessadores
692c6a334975b958a68e3348d2badd938871e506
[ "Unlicense", "MIT" ]
2
2015-06-18T18:52:23.000Z
2015-06-18T19:24:35.000Z
0.PARTE-I/A2.EX8PUSHBUTTON/AULA.asm
ronchifabricio/progparamicroprocessadores
692c6a334975b958a68e3348d2badd938871e506
[ "Unlicense", "MIT" ]
null
null
null
0.PARTE-I/A2.EX8PUSHBUTTON/AULA.asm
ronchifabricio/progparamicroprocessadores
692c6a334975b958a68e3348d2badd938871e506
[ "Unlicense", "MIT" ]
null
null
null
_main: ;AULA.c,42 :: void main() { // ABRE FUNCAO PRINCIPAL: MAIN ;AULA.c,43 :: ADCON1 = 0x06; // CONFIGURA ENTRADAS AN COMO E/S DIGITAIS MOVLW 6 MOVWF ADCON1+0 ;AULA.c,44 :: CMCON = 7; // DESLIGA COMPARADORES MOVLW 7 MOVWF CMCON+0 ;AULA.c,46 :: TRISA = 0b00000000; PORTA = 0b00000000; CLRF TRISA+0 CLRF PORTA+0 ;AULA.c,47 :: TRISB = 0b11111111; // PORTB = 0b00000000; MOVLW 255 MOVWF TRISB+0 ;AULA.c,48 :: TRISC = 0b00000000; PORTC = 0b00000000; CLRF TRISC+0 CLRF PORTC+0 ;AULA.c,49 :: TRISD = 0b00000000; PORTD = 0b00000000; CLRF TRISD+0 CLRF PORTD+0 ;AULA.c,50 :: TRISE = 0b00000000; PORTE = 0b00000000; CLRF TRISE+0 CLRF PORTE+0 ;AULA.c,52 :: RELE_1 = 0; RELE_2 = 0; BCF PORTC+0, 0 BCF PORTE+0, 0 ;AULA.c,53 :: VENT = 0; BUZZER = 1; BCF PORTC+0, 2 BSF PORTC+0, 1 ;AULA.c,54 :: LEDD0 = 0; LEDD1 = 0; LEDD2 = 0; LEDD3 = 0; BCF PORTD+0, 0 BCF PORTD+0, 1 BCF PORTD+0, 2 BCF PORTD+0, 3 ;AULA.c,55 :: LEDD4 = 0; LEDD5 = 0; LEDD6 = 0; LEDD7 = 0; BCF PORTD+0, 4 BCF PORTD+0, 5 BCF PORTD+0, 6 BCF PORTD+0, 7 ;AULA.c,56 :: while (1){ L_main0: ;AULA.c,57 :: RELE_1 = !INT0; // PRESSIONA LIGA BTFSC PORTB+0, 0 GOTO L__main4 BSF PORTC+0, 0 GOTO L__main5 L__main4: BCF PORTC+0, 0 L__main5: ;AULA.c,58 :: RELE_2 = !INT1; // PRESSIONA LIGA BTFSC PORTB+0, 1 GOTO L__main6 BSF PORTE+0, 0 GOTO L__main7 L__main6: BCF PORTE+0, 0 L__main7: ;AULA.c,59 :: VENT = !INT2; // PRESSIONA LIGA BTFSC PORTB+0, 2 GOTO L__main8 BSF PORTC+0, 2 GOTO L__main9 L__main8: BCF PORTC+0, 2 L__main9: ;AULA.c,60 :: BUZZER = INT3; // PRESSIONA LIGA BTFSC PORTB+0, 3 GOTO L__main10 BCF PORTC+0, 1 GOTO L__main11 L__main10: BSF PORTC+0, 1 L__main11: ;AULA.c,61 :: LEDD0 = !INT4; // PRESSIONA LIGA BTFSC PORTB+0, 4 GOTO L__main12 BSF PORTD+0, 0 GOTO L__main13 L__main12: BCF PORTD+0, 0 L__main13: ;AULA.c,62 :: LEDD1 = INT5; // PRESSIONA DESLIGA BTFSC PORTB+0, 5 GOTO L__main14 BCF PORTD+0, 1 GOTO L__main15 L__main14: BSF PORTD+0, 1 L__main15: ;AULA.c,63 :: LEDD2 = !INT4; // PRESSIONA LIGA BTFSC PORTB+0, 4 GOTO L__main16 BSF PORTD+0, 2 GOTO L__main17 L__main16: BCF PORTD+0, 2 L__main17: ;AULA.c,64 :: LEDD3 = INT5; // PRESSIONA DESLIGA BTFSC PORTB+0, 5 GOTO L__main18 BCF PORTD+0, 3 GOTO L__main19 L__main18: BSF PORTD+0, 3 L__main19: ;AULA.c,65 :: LEDD4 = !INT4; // PRESSIONA LIGA BTFSC PORTB+0, 4 GOTO L__main20 BSF PORTD+0, 4 GOTO L__main21 L__main20: BCF PORTD+0, 4 L__main21: ;AULA.c,66 :: LEDD5 = INT5; // PRESSIONA DESLIGA BTFSC PORTB+0, 5 GOTO L__main22 BCF PORTD+0, 5 GOTO L__main23 L__main22: BSF PORTD+0, 5 L__main23: ;AULA.c,67 :: LEDD6 = !INT4; // PRESSIONA LIGA BTFSC PORTB+0, 4 GOTO L__main24 BSF PORTD+0, 6 GOTO L__main25 L__main24: BCF PORTD+0, 6 L__main25: ;AULA.c,68 :: LEDD7 = INT5; // PRESSIONA DESLIGA BTFSC PORTB+0, 5 GOTO L__main26 BCF PORTD+0, 7 GOTO L__main27 L__main26: BSF PORTD+0, 7 L__main27: ;AULA.c,69 :: Delay_ms(50);}} MOVLW 130 MOVWF R12+0 MOVLW 221 MOVWF R13+0 L_main2: DECFSZ R13+0, 1 GOTO L_main2 DECFSZ R12+0, 1 GOTO L_main2 NOP NOP GOTO L_main0 L_end_main: GOTO $+0 ; end of _main
26.141026
84
0.512997
bf85842d0be46751dfa0350a29364edd8e5b0e8a
7,125
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1069.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1069.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1069.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x120d7, %r13 inc %rdi vmovups (%r13), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $0, %xmm6, %rsi nop and $28568, %rax lea addresses_normal_ht+0x1a68d, %rdi nop nop nop nop nop xor %r12, %r12 movb $0x61, (%rdi) nop nop nop sub %rax, %rax lea addresses_D_ht+0x1e087, %rax nop dec %r12 movb $0x61, (%rax) nop nop nop nop sub $7070, %rax lea addresses_WC_ht+0xe4e7, %rsi sub $26069, %rdx movl $0x61626364, (%rsi) nop nop nop nop inc %rbp lea addresses_normal_ht+0x13767, %rax nop inc %rsi and $0xffffffffffffffc0, %rax vmovntdqa (%rax), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $0, %xmm3, %rdi nop cmp %rsi, %rsi lea addresses_A_ht+0x1107d, %rbp inc %rsi mov (%rbp), %r13 nop nop nop nop cmp %rbp, %rbp lea addresses_WT_ht+0x1e23f, %r13 nop nop cmp $6238, %rax mov (%r13), %rdi nop nop nop nop cmp %rsi, %rsi lea addresses_WC_ht+0xf37b, %rdi nop nop nop xor $24649, %r13 mov (%rdi), %esi nop nop nop xor $42270, %r13 lea addresses_normal_ht+0x18b67, %rdx sub %r12, %r12 movups (%rdx), %xmm2 vpextrq $1, %xmm2, %rsi nop and %r13, %r13 lea addresses_WT_ht+0x1eec7, %rsi lea addresses_A_ht+0x518f, %rdi nop nop nop nop nop cmp %r13, %r13 mov $28, %rcx rep movsb sub $19846, %rcx lea addresses_WC_ht+0xec67, %rsi lea addresses_D_ht+0xc767, %rdi nop dec %rbp mov $19, %rcx rep movsl sub %rdi, %rdi lea addresses_WC_ht+0x54bf, %rbp nop nop nop nop nop dec %r13 mov $0x6162636465666768, %r12 movq %r12, (%rbp) nop nop nop sub $39830, %r13 lea addresses_WC_ht+0x19767, %rsi lea addresses_WC_ht+0xb527, %rdi nop nop sub $15684, %rax mov $124, %rcx rep movsl nop add $40852, %r13 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %r8 push %rbp push %rdi // Faulty Load lea addresses_PSE+0x9f67, %rdi dec %r14 mov (%rdi), %r15 lea oracles, %r14 and $0xff, %r15 shlq $12, %r15 mov (%r14,%r15,1), %r15 pop %rdi pop %rbp pop %r8 pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_normal_ht', 'AVXalign': True, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4}} {'src': {'NT': True, 'same': False, 'congruent': 8, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 5, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}} {'src': {'same': False, 'congruent': 8, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8}} {'src': {'same': True, 'congruent': 9, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_WC_ht'}} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
37.898936
2,999
0.656982
8e6fee8cf3808c47272838e0c3a50bf1ec31c5f8
145
asm
Assembly
01_bootsector/inf_bootsector.asm
cristicretu/CrtOS
42216f6267b8d661b386c20addc52ccc354fbf53
[ "MIT" ]
1
2022-01-27T17:11:56.000Z
2022-01-27T17:11:56.000Z
01_bootsector/inf_bootsector.asm
cristicretu/CrtOS
42216f6267b8d661b386c20addc52ccc354fbf53
[ "MIT" ]
null
null
null
01_bootsector/inf_bootsector.asm
cristicretu/CrtOS
42216f6267b8d661b386c20addc52ccc354fbf53
[ "MIT" ]
null
null
null
; infinite loop (e9 fd ff) loop: jmp loop ; Fill with 510 zeros - size of the prev code times 510 - ($ - $$) db 0 ; Magic number dw 0xaa55
14.5
45
0.634483
59ff3b22ac51451308035328633a89f59104df06
5,722
asm
Assembly
firmware/kernal/uart_commands.asm
QuorumComp/hc800
d108a9b2cdb8d920c60a9c2439e0703320156f97
[ "MIT" ]
2
2021-01-15T20:00:08.000Z
2021-02-05T07:44:35.000Z
firmware/kernal/uart_commands.asm
QuorumComp/hc800
d108a9b2cdb8d920c60a9c2439e0703320156f97
[ "MIT" ]
null
null
null
firmware/kernal/uart_commands.asm
QuorumComp/hc800
d108a9b2cdb8d920c60a9c2439e0703320156f97
[ "MIT" ]
null
null
null
INCLUDE "lowlevel/uart.i" INCLUDE "stdlib/string.i" INCLUDE "uart_commands.i" IDENT_NONCE EQU $1234 ; -- Print value as hexadecimal ; -- ; -- Inputs: ; -- ft - value to print SECTION "ComPrintHexWord",CODE ComPrintHexWord: push hl exg f,t jal ComPrintHexByte exg f,t jal ComPrintHexByte pop hl j (hl) ; -- Print memory as hexadecimal ; -- ; -- Inputs: ; -- bc - pointer to data segment ; -- de - number of bytes to print SECTION "ComDumpMemory",CODE ComDumpMemory: pusha ld ft,bc jal ComPrintHexWord ld t,':' jal ComPrintChar sub de,1 add d,1 add e,1 .loop ld t,(bc) jal ComPrintHexByte ld t,' ' jal ComPrintChar add bc,1 dj e,.loop dj d,.loop ld t,10 jal ComPrintChar popa j (hl) ; -- Print value as hexadecimal ; -- ; -- Inputs: ; -- t - value to print SECTION "ComPrintHexByte",CODE ComPrintHexByte: pusha push ft ld f,0 rs ft,4 jal ComPrintDigit pop ft and t,$F jal ComPrintDigit popa j (hl) ; -- ; -- Print single digit ; -- ; -- t - digit ($0-$F) ; -- SECTION "ComPrintDigit",CODE ComPrintDigit: pusha jal DigitToAscii jal ComPrintChar popa j (hl) ; -- ; -- Print character to attached terminal ; -- ; -- Inputs: ; -- t - character ; -- ; -- Outputs: ; -- f - "eq" condition if success ; -- SECTION "ComPrintChar",CODE ComPrintChar: pusha ld t,COMMAND_PRINT_CHAR jal ComSendCommand pop ft jal UartByteOutSync jal ComSyncResponse pop bc-hl j (hl) ; -- ; -- Request character from attached terminal ; -- ; -- Outputs: ; -- f - "eq" condition if success ; -- t - character ; -- SECTION "ComRequestChar",CODE ComRequestChar: push bc-hl ld t,COMMAND_REQUEST_CHAR jal ComSendCommand jal ComSyncResponse j/ne .done jal UartByteInSync .done pop bc-hl j (hl) ; -- ; -- Attempts to identify UART file server ; -- ; -- Returns: ; -- t - error code, 0 is success ; -- f - "eq" condition if success ; -- SECTION "ComIdentify",CODE ComIdentify: push bc-hl jal comSendIdentify jal comReadIdentify pop bc-hl j (hl) ; -- ; -- Send load file command ; -- ; -- Inputs: ; -- bc - file name (Pascal string, data segment) ; -- SECTION "ComSendLoadFileString",CODE ComSendLoadFileString: pusha ld t,COMMAND_LOAD_FILE jal ComSendCommand ld t,(bc) add bc,1 ld f,0 jal UartWordOutSync ; filename length ld f,t .write_string ld t,(bc) jal UartByteOutSync add bc,1 dj f,.write_string ld ft,0 jal UartWordOutSync ; offset jal UartWordOutSync ; offset jal UartWordOutSync ; length jal UartWordOutSync ; length popa j (hl) ; -- ; -- Read protocol response, return error code ; -- ; -- Outputs: ; -- f - "eq" condition if success ; -- t - error code, 0 = success ; -- SECTION "ComSyncResponse",CODE ComSyncResponse: push bc-hl jal UartByteInSync j/ne .timeout cmp t,'!' j/ne .protocol_error jal UartByteInSync j .done .protocol_error ld t,ERROR_PROTOCOL j .done .timeout ld t,ERROR_TIMEOUT .done cmp t,0 pop bc-hl j (hl) ; -- ; -- Send command byte ; -- ; -- Inputs: ; -- t - command ; -- SECTION "SendCommand",CODE ComSendCommand: pusha ld f,'?' exg f,t jal UartWordOutSync popa j (hl) ; -- ; -- Send string in UART format ; -- ; -- Inputs: ; -- bc - Pascal string ; -- SECTION "ComSendDataString",CODE ComSendDataString: pusha ld f,0 ld t,(bc) add bc,1 jal UartWordOutSync ; filename length ld de,ft jal UartMemoryOutSync popa j (hl) ; -- ; -- Read string in UART format ; -- ; -- Inputs: ; -- bc - Pascal string destination ; -- ; -- Outputs: ; -- f - "eq" condition if success ; -- SECTION "ComReadDataString",CODE ComReadDataString: push bc-hl ld ft,bc ld de,ft jal UartWordInSync j/ne .error exg bc,de ld t,e ld (bc),t add bc,1 jal UartMemoryInSync .error pop bc-hl j (hl) ; -- ; -- Internal functions ; -- ; -- ; -- Receive file ; -- ; -- Inputs: ; -- de - destination ; -- ; -- Outputs: ; -- t - error code (0 = success) ; -- f - "eq" condition if success ; -- bc - bytes read ; -- SECTION "ComReadFile",CODE comReadFile: push de-hl jal ComSyncResponse j/ne .done jal UartWordInSync j/ne .timeout ld ft,bc push ft .loop jal UartByteInSync j/ne .timeout_pop ld (de),t add de,1 sub bc,1 tst bc j/nz .loop pop ft ld bc,ft ld t,ERROR_SUCCESS j .done .timeout_pop pop ft sub ft,bc ld bc,ft .timeout ld t,ERROR_TIMEOUT .done cmp t,0 pop de-hl j (hl) ; -- ; -- Send load file command ; -- ; -- Inputs: ; -- t - file name length ; -- bc - file name (code segment) ; -- SECTION "ComSendLoadFile",CODE comSendLoadFile: pusha push ft ld t,COMMAND_LOAD_FILE jal ComSendCommand pop ft ; t - already filename length ld f,0 jal UartWordOutSync ; filename length ld f,t .write_string lco t,(bc) jal UartByteOutSync add bc,1 dj f,.write_string ld ft,0 jal UartWordOutSync ; offset jal UartWordOutSync ; offset jal UartWordOutSync ; length jal UartWordOutSync ; length popa j (hl) ; -- Outputs: ; -- t - error code, 0 = success ; -- f - "eq" if success SECTION "ReadIdentify",CODE comReadIdentify: push bc-hl jal ComSyncResponse j/ne .done jal UartWordInSync j/ne .timeout ld ft,~IDENT_NONCE cmp bc j/ne .protocol ld t,ERROR_SUCCESS j .test .protocol ld t,ERROR_PROTOCOL j .test .timeout ld t,ERROR_TIMEOUT .test cmp t,0 .done pop bc-hl j (hl) SECTION "SendIdentify",CODE comSendIdentify: pusha ld t,COMMAND_IDENTIFY jal ComSendCommand ld ft,IDENT_NONCE jal UartWordOutSync popa j (hl)
13.591449
51
0.632821
b2cf2109446d63f3a9dbcbcf54eb969a88241da0
342
asm
Assembly
programs/oeis/290/A290988.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/290/A290988.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/290/A290988.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A290988: The arithmetic function v+-(n,3). ; 1,1,2,1,3,1,4,3,5,3,6,3,7,5,8,5,9,5,10,7,11,7,12,7,13,9,14,9,15,9,16,11,17,11,18,11,19,13,20,13,21,13,22,15,23,15,24,15,25,17,26,17,27,17,28,19,29,19,30,19,31,21,32,21,33,21,34,23,35 mov $2,$0 mod $0,2 mov $1,$2 mov $3,4 lpb $0 sub $0,1 div $1,6 mul $1,$3 lpe div $1,2 add $1,1 mov $0,$1
21.375
184
0.590643
09d5b2559d332e3da51a99a40cbb83bf59077f82
623
asm
Assembly
asm/script/profiles/profile_28/script.asm
h3rmit-git/F-Zero-Climax-GBA-Translation
233901558ce721b75d643872bfa89cdebef8cd0a
[ "MIT", "Unlicense" ]
6
2019-05-15T09:08:51.000Z
2021-11-01T18:40:10.000Z
asm/script/profiles/profile_28/script.asm
h3rmit-git/F-Zero-Climax-GBA-Translation
233901558ce721b75d643872bfa89cdebef8cd0a
[ "MIT", "Unlicense" ]
2
2019-05-21T11:34:55.000Z
2019-06-11T09:53:02.000Z
asm/script/profiles/profile_28/script.asm
h3rmit-git/F-Zero-Climax-GBA-Translation
233901558ce721b75d643872bfa89cdebef8cd0a
[ "MIT", "Unlicense" ]
4
2017-03-04T07:07:05.000Z
2021-11-15T15:28:38.000Z
; F-Zero Climax Translation by Normmatt .align 4 Profile28_CharacterProfile: .sjis "かつてはサムライ",TextNL,"ゴローの右うでと呼",TextNL,"ばれた男だったが、",TextNL,"次第に対立し、今で",TextNL,"はゴローへの復しゅ",TextNL,"うに燃える一匹オオ",TextNL,"カミの宇宙とうぞく。",TextNL,"彼の野望は全宇宙の",TextNL,"F-ZEROファン",TextNL,"の前でグランプリで",TextNL,"ゴローをたたきのめ",TextNL,"すことだ。",TextNL,"" .align 4 Profile28_VehicleProfile: .sjis "マシンナンバー17",TextNL,TextNL,"元はゴローのスペア",TextNL,"マシンだったもの。",TextNL,"がんじょうなボディ",TextNL,"はファイアスティン",TextNL,"グレーと同等だが、",TextNL,"ブーストが優れてい",TextNL,"る分、グリップが",TextNL,"弱く、このマシンを",TextNL,"乗りこなせる人間は",TextNL,"宇宙にそうはいない。",TextNL,"" ; make sure to leave an empty line at the end
51.916667
233
0.75923
aac8896fb58c8ce959b80ae85a103ca386aa4643
791
asm
Assembly
programs/oeis/130/A130884.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/130/A130884.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/130/A130884.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A130884: 3n^3 + 2n^2 + n + 1. ; 1,7,35,103,229,431,727,1135,1673,2359,3211,4247,5485,6943,8639,10591,12817,15335,18163,21319,24821,28687,32935,37583,42649,48151,54107,60535,67453,74879,82831,91327,100385,110023,120259,131111,142597,154735,167543,181039,195241,210167,225835,242263,259469,277471,296287,315935,336433,357799,380051,403207,427285,452303,478279,505231,533177,562135,592123,623159,655261,688447,722735,758143,794689,832391,871267,911335,952613,995119,1038871,1083887,1130185,1177783,1226699,1276951,1328557,1381535,1435903,1491679,1548881,1607527,1667635,1729223,1792309,1856911,1923047,1990735,2059993,2130839,2203291,2277367,2353085,2430463,2509519,2590271,2672737,2756935,2842883,2930599 mov $1,3 mul $1,$0 mul $0,$1 add $1,2 mul $0,$1 add $0,$1 div $0,6 mul $0,2 add $0,1
60.846154
672
0.797724
c6145e6a7b787e7437ae41d303715a09eb0b54f6
3,320
asm
Assembly
TimedMsgBox.asm
georghe-crihan/ScanStation
27be77249ff2f50862bb52834aea353e35dfaf6b
[ "BSD-2-Clause" ]
null
null
null
TimedMsgBox.asm
georghe-crihan/ScanStation
27be77249ff2f50862bb52834aea353e35dfaf6b
[ "BSD-2-Clause" ]
null
null
null
TimedMsgBox.asm
georghe-crihan/ScanStation
27be77249ff2f50862bb52834aea353e35dfaf6b
[ "BSD-2-Clause" ]
null
null
null
;DEBUG EQU 0 .386 ; create 32 bit code .model flat, stdcall ; 32 bit memory model option casemap :none ; case sensitive include windows.inc include user32.inc include kernel32.inc include macros.asm include TimedMsgBox.inc include idc.inc ; Resources includelib user32.lib includelib kernel32.lib .data? hMsgBoxHook dd ? hWndBox dd ? hWndOkButton dd ? hTimer dd ? .code TimerCallback proc hWnd:DWORD, uMsg:DWORD, idEvent:DWORD, dwTime:DWORD invoke SendMessageA, hWndOkButton, BM_CLICK, 0, 0 ret TimerCallback endp ; LRESULT CALLBACK CBTProc(int nCode, WPARAM wParam, LPARAM lParam) CBTProc proc nCode:DWORD, wParam:DWORD, lParam:DWORD LOCAL lpRect :RECT .if nCode < 0 jmp @@return .endif switch nCode case HCBT_ACTIVATE ; Do customization: ; Get handle to the message box! mov eax, wParam mov hWndBox, eax ; Hide the OK button invoke GetDlgItem, hWndBox, 1 mov hWndOkButton, eax invoke GetWindowRect, hWndOkButton, addr lpRect invoke ShowWindow, hWndOkButton, SW_HIDE ; Resize the window: trim vertically mov eax, lpRect.bottom sub eax, lpRect.top push eax invoke GetWindowRect, hWndBox, addr lpRect mov eax, lpRect.left sub lpRect.right, eax mov eax, lpRect.top sub lpRect.bottom, eax ; Use height of the button pop eax add eax, 10 ; extra space sub lpRect.bottom, eax ; invoke SetWindowPos, hWndBox, 0, ; lpRect.left, lpRect.top, lpRect.right, lpRect.bottom, ; SWP_NOMOVE + SWP_NOOWNERZORDER + SWP_NOZORDER invoke MoveWindow, hWndBox, lpRect.left, lpRect.top, lpRect.right, lpRect.bottom, 1 mov hTimer, rv(SetTimer, 0, 0, 2000, addr TimerCallback) xor eax, eax ret case HCBT_DESTROYWND mov eax, hWndBox .if wParam != eax jmp @@return .endif invoke KillTimer, hWndBox, hTimer xor eax, eax ret endsw @@return: ; Call the next hook, if there is one mov eax, rv(CallNextHookEx, hMsgBoxHook, nCode, wParam, lParam) ret CBTProc endp ; int TimedMessageBox(HWND hWnd, TCHAR *szMsgText, TCHAR *szCaption, UINT uType) TimedMessageBox proc hWnd:DWORD, szMsgText:DWORD, szCaption:DWORD, uType:DWORD LOCAL rc :DWORD pusha ; Install a window hook, so we can intercept the message-box ; creation, and customize it invoke SetWindowsHookEx, WH_CBT, ; Type of hook addr CBTProc, ; Hook procedure (see below) 0, ; Module handle. Must be NULL (see docs) rv(GetCurrentThreadId) ; Only install for THIS thread!!! mov hMsgBoxHook, eax ; Display a standard message box mov rc, rv(MessageBox, hWnd, szMsgText, szCaption, uType) ; remove the window hook invoke UnhookWindowsHookEx, hMsgBoxHook popa mov eax, rc ret TimedMessageBox endp end
28.135593
81
0.591867
2993411fc25db0b6f926a1746b1028c1b2a8a8e0
266
asm
Assembly
SOURCE ASM FILES/FPSHack_16_SlowJ3DFrameCtrl_CheckPass.asm
Meowmaritus/Wind-Waker-60FPS-Hack
13696724637a1c60e82ef76759af85e3c78356ef
[ "MIT" ]
14
2017-08-16T17:20:21.000Z
2021-12-07T03:45:12.000Z
SOURCE ASM FILES/FPSHack_16_SlowJ3DFrameCtrl_CheckPass.asm
Meowmaritus/Wind-Waker-60FPS-Hack
13696724637a1c60e82ef76759af85e3c78356ef
[ "MIT" ]
1
2018-05-26T12:32:23.000Z
2018-08-10T06:48:38.000Z
SOURCE ASM FILES/FPSHack_16_SlowJ3DFrameCtrl_CheckPass.asm
Meowmaritus/Wind-Waker-60FPS-Hack
13696724637a1c60e82ef76759af85e3c78356ef
[ "MIT" ]
6
2017-12-25T01:48:35.000Z
2021-12-07T21:07:30.000Z
#To be inserted at 802ef614 ######################################### ##FPSHack_16_SlowJ3DFrameCtrl_CheckPass## ######################################### lis r17, 0x817F lfs f17, 0x0004 (r17) fmuls f0, f0, f17 #Slow the frame delta thing? fadds f3, f0, f2 #Vanilla
26.6
46
0.518797
1627953520c8aba9722d537457015cc6f6e07580
159
asm
Assembly
libsrc/_DEVELOPMENT/adt/p_queue/c/sccz80/p_queue_pop.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
8
2017-01-18T12:02:17.000Z
2021-06-12T09:40:28.000Z
libsrc/_DEVELOPMENT/adt/p_queue/c/sccz80/p_queue_pop.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
1
2017-03-06T07:41:56.000Z
2017-03-06T07:41:56.000Z
libsrc/_DEVELOPMENT/adt/p_queue/c/sccz80/p_queue_pop.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
3
2017-03-07T03:19:40.000Z
2021-09-15T17:59:19.000Z
; void *p_queue_pop(p_queue_t *q) SECTION code_clib SECTION code_adt_p_queue PUBLIC p_queue_pop EXTERN asm_p_queue_pop defc p_queue_pop = asm_p_queue_pop
13.25
34
0.830189
475b0caa812720a5b4e9c49bdccaafe2928a9fa5
312
asm
Assembly
test/cases/icc-static.asm
malcolmr/gcc-explorer
78190b22b96aa62ad0f31de3d17fffbfad3e9e5d
[ "BSD-2-Clause" ]
4
2018-04-16T02:52:25.000Z
2021-08-20T13:59:24.000Z
test/cases/icc-static.asm
h4ck3rm1k3/gcc-explorer
d1921256b04d5fadf5a03ee11f6742e82e85fd13
[ "BSD-2-Clause" ]
null
null
null
test/cases/icc-static.asm
h4ck3rm1k3/gcc-explorer
d1921256b04d5fadf5a03ee11f6742e82e85fd13
[ "BSD-2-Clause" ]
null
null
null
LongLong: .long 0x0001e240,0x00000000 .type LongLong,@object .size LongLong,8 .align 4 .globl Int Int: .long 123 .type Int,@object .size Int,4 .align 2 .globl Short Short: .word 4660 .type Short,@object .size Short,2 .align 1 .globl Char Char: .byte -128 .type Char,@object .size Char,1 .data
13
28
0.689103
8981772cb4322793891180dc22248e162df88647
671
asm
Assembly
programs/oeis/187/A187342.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/187/A187342.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/187/A187342.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A187342: Floor(((15+sqrt(5))/11)n); complement of A187341. ; 1,3,4,6,7,9,10,12,14,15,17,18,20,21,23,25,26,28,29,31,32,34,36,37,39,40,42,43,45,47,48,50,51,53,54,56,57,59,61,62,64,65,67,68,70,72,73,75,76,78,79,81,83,84,86,87,89,90,92,94,95,97,98,100,101,103,104,106,108,109,111,112,114,115,117,119,120,122,123,125 mov $2,2 mov $5,1 mov $7,$0 add $7,1 lpb $2 mov $1,$5 add $2,2 mov $4,$2 lpb $4 add $1,19 sub $4,$2 mul $7,94 lpe lpb $1 add $5,$1 sub $1,$2 mov $3,$5 sub $3,1 lpe add $1,$5 add $5,$3 mov $6,$5 div $7,$3 lpb $6 add $6,$7 mul $1,$6 mov $6,1 lpe mov $2,1 lpe sub $1,7442 div $1,61 add $1,1
18.135135
252
0.552906
b5edbaf2c8c6fe1520155d058e6d20fe80f12b27
783
asm
Assembly
oeis/143/A143418.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/143/A143418.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/143/A143418.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A143418: Triangle read by rows. T(n,k) = binomial(n,k)*(binomial(n,k)-1)/2. ; Submitted by Jamie Morken(s4) ; 1,3,3,6,15,6,10,45,45,10,15,105,190,105,15,21,210,595,595,210,21,28,378,1540,2415,1540,378,28,36,630,3486,7875,7875,3486,630,36,45,990,7140,21945,31626,21945,7140,990,45,55,1485,13530,54285,106491,106491,54285,13530,1485,55,66,2145,24090,122265,313236,426426,313236,122265,24090,2145,66,78,3003,40755,255255,827541,1471470,1471470,827541,255255,40755,3003,78,91,4095,66066,500500,2003001,4507503,5887596,4507503,2003001,500500,66066,4095,91,105,5460,103285,930930,4507503,12522510,20701395,20701395 seq $0,180986 ; T(n,k) = number of n X k binary matrices with rows in lexicographically nondecreasing order and columns in lexicographically nonincreasing order. bin $0,2
111.857143
500
0.777778
e80c08706c7a90ba8da4d9036fa95b47a89c38bd
2,411
asm
Assembly
coverage/PENDING_SUBMIT/amdvlk/0627-COVERAGE-cmp-inst-analysis-87/work/variant/1_spirv_asm/shader.frag.asm
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
null
null
null
coverage/PENDING_SUBMIT/amdvlk/0627-COVERAGE-cmp-inst-analysis-87/work/variant/1_spirv_asm/shader.frag.asm
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
47
2021-03-11T07:42:51.000Z
2022-03-14T06:30:14.000Z
coverage/PENDING_SUBMIT/amdvlk/0627-COVERAGE-cmp-inst-analysis-87/work/variant/1_spirv_asm/shader.frag.asm
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
4
2021-03-09T13:37:19.000Z
2022-02-25T07:32:11.000Z
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 39 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %34 OpExecutionMode %4 OriginUpperLeft OpSource ESSL 320 OpName %4 "main" OpName %8 "a" OpName %16 "buf0" OpMemberName %16 0 "one" OpName %18 "" OpName %34 "_GLF_color" OpMemberDecorate %16 0 Offset 0 OpDecorate %16 Block OpDecorate %18 DescriptorSet 0 OpDecorate %18 Binding 0 OpDecorate %34 Location 0 %2 = OpTypeVoid %3 = OpTypeFunction %2 %6 = OpTypeInt 32 1 %7 = OpTypePointer Function %6 %9 = OpConstant %6 1 %15 = OpTypeFloat 32 %16 = OpTypeStruct %15 %17 = OpTypePointer Uniform %16 %18 = OpVariable %17 Uniform %19 = OpConstant %6 0 %20 = OpTypePointer Uniform %15 %24 = OpTypeBool %28 = OpConstant %6 5 %32 = OpTypeVector %15 4 %33 = OpTypePointer Output %32 %34 = OpVariable %33 Output %35 = OpConstant %15 1 %36 = OpConstant %15 0 %37 = OpConstantComposite %32 %35 %36 %36 %35 %4 = OpFunction %2 None %3 %5 = OpLabel %8 = OpVariable %7 Function OpStore %8 %9 OpBranch %10 %10 = OpLabel OpLoopMerge %12 %13 None OpBranch %14 %14 = OpLabel %21 = OpAccessChain %20 %18 %19 %22 = OpLoad %15 %21 %23 = OpConvertFToS %6 %22 %25 = OpSGreaterThanEqual %24 %23 %9 OpBranchConditional %25 %11 %12 %11 = OpLabel %26 = OpLoad %6 %8 %27 = OpIAdd %6 %26 %9 OpStore %8 %27 %29 = OpSGreaterThanEqual %24 %26 %28 OpSelectionMerge %31 None OpBranchConditional %29 %30 %31 %30 = OpLabel OpStore %34 %37 OpBranch %12 %31 = OpLabel OpBranch %13 %13 = OpLabel OpBranch %10 %12 = OpLabel OpReturn OpFunctionEnd
33.027397
54
0.481958