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
0f352b285f1fbebc417e7e950181e58237f38ea0
842
asm
Assembly
programs/oeis/213/A213829.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/213/A213829.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/213/A213829.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A213829: Principal diagonal of the convolution array A213828. ; 2,28,114,296,610,1092,1778,2704,3906,5420,7282,9528,12194,15316,18930,23072,27778,33084,39026,45640,52962,61028,69874,79536,90050,101452,113778,127064,141346,156660,173042,190528,209154,228956,249970,272232,295778,320644,346866,374480,403522,434028,466034,499576,534690,571412,609778,649824,691586,735100,780402,827528,876514,927396,980210,1034992,1091778,1150604,1211506,1274520,1339682,1407028,1476594,1548416,1622530,1698972,1777778,1858984,1942626,2028740,2117362,2208528,2302274,2398636,2497650,2599352,2703778,2810964,2920946,3033760,3149442,3268028,3389554,3514056,3641570,3772132,3905778,4042544,4182466,4325580,4471922,4621528,4774434,4930676,5090290,5253312,5419778,5589724,5763186,5940200 mov $1,6 mul $1,$0 add $1,4 pow $1,3 div $1,72 mul $1,2 add $1,2 mov $0,$1
70.166667
701
0.82304
e1181e6cbaeaee98879d4843407e1da799d6eda9
307
asm
Assembly
programs/oeis/152/A152596.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/152/A152596.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/152/A152596.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A152596: a(n) = 7*a(n-1) - 6*a(n-2), n>1; a(0)=1, a(1)=3. ; 1,3,15,87,519,3111,18663,111975,671847,4031079,24186471,145118823,870712935,5224277607,31345665639,188073993831,1128443962983,6770663777895,40623982667367,243743896004199,1462463376025191 mov $1,6 pow $1,$0 div $1,5 mul $1,2 add $1,1 mov $0,$1
30.7
189
0.723127
ea16e76291072c1f52939780f21c2156c35b5a86
352
asm
Assembly
programs/oeis/257/A257848.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/257/A257848.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/257/A257848.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A257848: a(n) = floor(n/8) * (n mod 8). ; 0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,0,2,4,6,8,10,12,14,0,3,6,9,12,15,18,21,0,4,8,12,16,20,24,28,0,5,10,15,20,25,30,35,0,6,12,18,24,30,36,42,0,7,14,21,28,35,42,49,0,8,16,24,32,40,48,56,0,9,18,27,36,45,54,63,0,10,20,30,40,50,60,70,0,11,22,33,44,55,66,77,0,12,24,36 mov $1,$0 mod $0,8 sub $1,$0 mul $0,$1 div $0,8
39.111111
260
0.582386
444d41014eec107bb64a81518237e48d819e5c7b
110
asm
Assembly
src/main/fragment/mos6502-common/vdum1=vdum2_plus_vbuaa.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/vdum1=vdum2_plus_vbuaa.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/vdum1=vdum2_plus_vbuaa.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
clc adc {m2} sta {m1} lda {m2}+1 adc #0 sta {m1}+1 lda {m2}+2 adc #0 sta {m1}+2 lda {m2}+3 adc #0 sta {m1}+3
7.857143
10
0.554545
80cc41ce604541790762904aeca9a711b63451a0
6,881
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca.log_21829_1546.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca.log_21829_1546.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca.log_21829_1546.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0xd6ff, %rsi nop nop nop nop nop sub $60442, %rcx movb (%rsi), %dl and $64817, %rax lea addresses_WC_ht+0x55af, %r15 nop nop and $58338, %rbp mov $0x6162636465666768, %rax movq %rax, %xmm7 vmovups %ymm7, (%r15) nop nop nop sub $45291, %rcx lea addresses_WC_ht+0x776f, %rbp nop nop xor $8778, %rax movb $0x61, (%rbp) nop nop nop nop nop and $46176, %r15 lea addresses_UC_ht+0x14be7, %rsi lea addresses_WC_ht+0x1814f, %rdi clflush (%rsi) nop nop inc %r13 mov $89, %rcx rep movsl nop nop nop add $21359, %rbp lea addresses_WC_ht+0x876f, %rsi lea addresses_WC_ht+0xe4bf, %rdi nop nop and %rdx, %rdx mov $55, %rcx rep movsb nop nop nop nop nop and %rdx, %rdx lea addresses_D_ht+0x19ef, %r15 sub %rcx, %rcx and $0xffffffffffffffc0, %r15 vmovntdqa (%r15), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $1, %xmm5, %rsi nop sub $40551, %rdi lea addresses_UC_ht+0xa06f, %r15 nop nop dec %rax mov $0x6162636465666768, %rdi movq %rdi, %xmm7 vmovups %ymm7, (%r15) nop nop nop nop nop add %rdi, %rdi lea addresses_WC_ht+0x946f, %rcx nop nop nop nop nop add $2189, %rax movups (%rcx), %xmm7 vpextrq $0, %xmm7, %rbp nop nop nop nop nop dec %rsi lea addresses_normal_ht+0x1d5c7, %rdi clflush (%rdi) nop nop nop nop add $32526, %rax movw $0x6162, (%rdi) xor $56012, %rbp lea addresses_WC_ht+0xa0ef, %r15 nop nop nop nop and $27286, %r13 mov $0x6162636465666768, %rax movq %rax, %xmm5 movups %xmm5, (%r15) nop nop nop nop nop xor %rcx, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r9 push %rbx push %rcx push %rdx // Store lea addresses_A+0x38d7, %r9 nop nop nop xor $36941, %rdx movl $0x51525354, (%r9) nop nop dec %rdx // Faulty Load lea addresses_PSE+0x11c6f, %rcx nop nop and %rbx, %rbx vmovups (%rcx), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $0, %xmm0, %rdx lea oracles, %r14 and $0xff, %rdx shlq $12, %rdx mov (%r14,%rdx,1), %rdx pop %rdx pop %rcx pop %rbx pop %r9 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_A'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 3, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 32, 'NT': True, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_UC_ht'}} {'src': {'congruent': 11, 'AVXalign': False, 'same': True, 'size': 16, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_normal_ht'}} {'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, '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 */
34.752525
2,999
0.659642
073280c0416dde9d9da4fb5efb62505f4f77c861
1,546
asm
Assembly
programs/oeis/132/A132308.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/132/A132308.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/132/A132308.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A132308: 2*3^n - n - 1. ; 1,4,15,50,157,480,1451,4366,13113,39356,118087,354282,1062869,3188632,9565923,28697798,86093425,258280308,774840959,2324522914,6973568781,20920706384,62762119195,188286357630,564859072937,1694577218860,5083731656631,15251194969946,45753584909893,137260754729736,411782264189267,1235346792567862,3706040377703649,11118121133111012,33354363399333103,100063090197999378,300189270593998205,900567811781994688,2701703435345984139,8105110306037952494,24315330918113857561,72945992754341572764,218837978263024718375,656513934789074155210,1969541804367222465717,5908625413101667397240,17725876239305002191811,53177628717915006575526,159532886153745019726673,478598658461235059180116,1435795975383705177540447,4307387926151115532621442,12922163778453346597864429,38766491335360039793593392,116299474006080119380780283,348898422018240358142340958,1046695266054721074427022985,3140085798164163223281069068,9420257394492489669843207319,28260772183477469009529622074,84782316550432407028588866341,254346949651297221085766599144,763040848953891663257299797555,2289122546861674989771899392790,6867367640585024969315698178497,20602102921755074907947094535620,61806308765265224723841283606991,185418926295795674171523850821106,556256778887387022514571552463453,1668770336662161067543714657390496,5006311009986483202631143972171627,15018933029959449607893431916515022,45056799089878348823680295749545209,135170397269635046471040887248635772,405511191808905139413122661745907463 mov $1,3 pow $1,$0 mul $1,2 sub $1,$0 sub $1,1 mov $0,$1
154.6
1,461
0.923027
062a9b6d21ea3ecdabedbff6a4adb52a7c612f99
8,504
asm
Assembly
ftm/bark.asm
zeta0134/bhop
d083a65431847e5a30ff5c7eaa045d43d78701ac
[ "MIT-0" ]
4
2021-07-18T18:44:10.000Z
2021-12-09T03:38:04.000Z
ftm/bark.asm
zeta0134/bhop
d083a65431847e5a30ff5c7eaa045d43d78701ac
[ "MIT-0" ]
null
null
null
ftm/bark.asm
zeta0134/bhop
d083a65431847e5a30ff5c7eaa045d43d78701ac
[ "MIT-0" ]
1
2021-08-22T22:18:59.000Z
2021-08-22T22:18:59.000Z
; Dn-FamiTracker exported music data: new_bark_town.0cc ; ; Module header .word ft_song_list .word ft_instrument_list .word ft_sample_list .word ft_samples .word ft_groove_list .byte 0 ; flags .word 3600 ; NTSC speed .word 3000 ; PAL speed ; Instrument pointer list ft_instrument_list: .word ft_inst_0 .word ft_inst_1 .word ft_inst_2 .word ft_inst_3 .word ft_inst_4 .word ft_inst_5 .word ft_inst_6 ; Instruments ft_inst_0: .byte 0 .byte $04 .word ft_seq_2a03_12 ft_inst_1: .byte 0 .byte $15 .word ft_seq_2a03_0 .word ft_seq_2a03_2 .word ft_seq_2a03_4 ft_inst_2: .byte 0 .byte $11 .word ft_seq_2a03_5 .word ft_seq_2a03_9 ft_inst_3: .byte 0 .byte $15 .word ft_seq_2a03_10 .word ft_seq_2a03_7 .word ft_seq_2a03_24 ft_inst_4: .byte 0 .byte $11 .word ft_seq_2a03_15 .word ft_seq_2a03_14 ft_inst_5: .byte 0 .byte $11 .word ft_seq_2a03_20 .word ft_seq_2a03_19 ft_inst_6: .byte 0 .byte $15 .word ft_seq_2a03_10 .word ft_seq_2a03_17 .word ft_seq_2a03_24 ; Sequences ft_seq_2a03_0: .byte $31, $FF, $00, $00, $0C, $0C, $0C, $0C, $0B, $0B, $0B, $0B, $0A, $0A, $0A, $0A, $09, $09, $09, $09 .byte $08, $08, $08, $08, $07, $07, $07, $07, $06, $06, $06, $06, $05, $05, $05, $05, $04, $04, $04, $04 .byte $03, $03, $03, $03, $02, $02, $02, $02, $01, $01, $01, $01, $00 ft_seq_2a03_2: .byte $24, $18, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00, $01, $00, $00, $FF, $00, $00, $FF, $00, $00, $01, $00, $00 ft_seq_2a03_4: .byte $01, $FF, $00, $00, $02 ft_seq_2a03_5: .byte $0E, $FF, $00, $00, $0C, $0B, $0A, $0A, $0A, $0A, $0A, $0A, $09, $09, $08, $08, $07, $07 ft_seq_2a03_7: .byte $24, $18, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00, $01, $01, $01, $FF, $FF, $FF, $FF, $FF, $FF, $01, $01, $01 ft_seq_2a03_9: .byte $01, $FF, $00, $00, $02 ft_seq_2a03_10: .byte $1C, $FF, $00, $00, $04, $04, $04, $04, $05, $05, $05, $05, $06, $06, $06, $06, $07, $07, $07, $07 .byte $08, $08, $08, $08, $09, $09, $09, $09, $0A, $0A, $0A, $0A ft_seq_2a03_12: .byte $22, $16, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $01, $01, $00, $FF, $FF, $00, $FF, $FF, $00, $01, $01, $00 ft_seq_2a03_14: .byte $01, $FF, $00, $00, $00 ft_seq_2a03_15: .byte $1C, $FF, $00, $00, $09, $09, $09, $08, $08, $08, $07, $07, $07, $06, $06, $06, $05, $05, $05, $04 .byte $04, $04, $03, $03, $03, $02, $02, $02, $01, $01, $01, $00 ft_seq_2a03_17: .byte $24, $18, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00, $01, $01, $00, $00, $FF, $FF, $FF, $FF, $00, $00, $01, $01 ft_seq_2a03_19: .byte $01, $FF, $00, $00, $02 ft_seq_2a03_20: .byte $0E, $FF, $00, $00, $0D, $0C, $0B, $0A, $09, $08, $07, $06, $05, $04, $03, $02, $01, $00 ft_seq_2a03_24: .byte $01, $FF, $00, $00, $01 ; DPCM instrument list (pitch, sample index) ft_sample_list: ; DPCM samples list (location, size, bank) ft_samples: ; Groove list ft_groove_list: .byte $00 ; Grooves (size, terms) ; Song pointer list ft_song_list: .word ft_song_0 ; Song info ft_song_0: .word ft_s0_frames .byte 5 ; frame count .byte 64 ; pattern length .byte 6 ; speed .byte 104 ; tempo .byte 0 ; groove position .byte 0 ; initial bank ; ; Pattern and frame data for all songs below ; ; Bank 0 ft_s0_frames: .word ft_s0f0 .word ft_s0f1 .word ft_s0f2 .word ft_s0f3 .word ft_s0f4 ft_s0f0: .word ft_s0p0c0, ft_s0p0c1, ft_s0p0c2, ft_s0p0c3, ft_s0p0c4 ft_s0f1: .word ft_s0p1c0, ft_s0p1c1, ft_s0p1c2, ft_s0p0c3, ft_s0p0c4 ft_s0f2: .word ft_s0p2c0, ft_s0p2c1, ft_s0p2c2, ft_s0p0c3, ft_s0p0c4 ft_s0f3: .word ft_s0p3c0, ft_s0p3c1, ft_s0p3c2, ft_s0p0c3, ft_s0p1c4 ft_s0f4: .word ft_s0p4c0, ft_s0p4c1, ft_s0p4c2, ft_s0p0c3, ft_s0p2c4 ; Bank 0 ft_s0p0c0: .byte $00, $05, $82, $00, $E2, $9B, $04, $1B, $9B, $04, $1B, $1B, $7F, $83, $1B, $01, $7F, $01, $22, $00 .byte $7F, $00, $1B, $00, $7F, $04, $82, $00, $9B, $04, $1B, $9B, $04, $1B, $1B, $7F, $83, $1B, $01, $7F .byte $01, $24, $00, $7F, $00, $14, $00, $7F, $04, $82, $00, $9B, $04, $14, $9B, $04, $14, $15, $7F, $83 .byte $15, $01, $7F, $01, $1D, $01, $16, $00, $7F, $04, $82, $00, $9B, $04, $16, $9B, $04, $16, $16, $7F .byte $83, $16, $01, $7F, $01, $1A, $00, $7F, $00 ; Bank 0 ft_s0p0c1: .byte $00, $03, $82, $01, $E4, $2E, $27, $2B, $27, $2F, $27, $2B, $27, $30, $27, $2B, $27, $31, $27, $24 .byte $20, $2C, $20, $24, $21, $29, $21, $26, $22, $2C, $2B, $82, $00, $E5, $29, $2B, $29, $27, $26, $24 .byte $22, $83, $20, $00 ; Bank 0 ft_s0p0c2: .byte $E0, $FF, $3F, $01, $41, $00, $86, $02, $00, $3C ; Bank 0 ft_s0p0c3: .byte $00, $3F ; Bank 0 ft_s0p0c4: .byte $96, $48, $00, $3F ; Bank 0 ft_s0p1c0: .byte $E2, $1B, $01, $7F, $03, $82, $00, $9B, $04, $1B, $9B, $04, $1B, $1B, $7F, $83, $1B, $03, $23, $00 .byte $7F, $00, $1B, $01, $7F, $03, $82, $00, $9B, $04, $1B, $9B, $04, $1B, $1B, $7F, $83, $1B, $01, $7F .byte $01, $E5, $25, $00, $7F, $00, $E2, $20, $01, $7F, $03, $82, $00, $9B, $04, $20, $9B, $04, $20, $15 .byte $7F, $83, $15, $01, $7F, $01, $1B, $00, $7F, $00, $22, $01, $7F, $03, $82, $00, $9B, $04, $22, $9B .byte $04, $22, $16, $7F, $83, $16, $01, $7F, $01, $1A, $01 ; Bank 0 ft_s0p1c1: .byte $82, $00, $E4, $2B, $7F, $27, $7F, $83, $2E, $01, $82, $00, $27, $7F, $2B, $7F, $27, $7F, $83, $2F .byte $01, $82, $00, $27, $7F, $2B, $7F, $27, $7F, $83, $30, $01, $82, $00, $2B, $7F, $2B, $7F, $27, $7F .byte $83, $31, $01, $82, $00, $27, $7F, $24, $7F, $20, $7F, $83, $2C, $01, $82, $00, $24, $7F, $24, $7F .byte $21, $7F, $83, $29, $01, $82, $00, $24, $7F, $26, $7F, $22, $7F, $83, $2C, $01, $2B, $01, $82, $00 .byte $E5, $29, $2B, $29, $27, $26, $24, $22, $83, $20, $00 ; Bank 0 ft_s0p1c2: .byte $E0, $43, $03, $46, $03, $82, $01, $44, $43, $41, $44, $83, $43, $05, $3F, $01, $3A, $05, $38, $00 .byte $3A, $00, $3C, $03, $3F, $03, $82, $01, $41, $3F, $3E, $3F, $83, $41, $05, $43, $01, $41, $04, $7F .byte $00, $3F, $00, $41, $00 ; Bank 0 ft_s0p1c4: .byte $96, $32, $00, $3F ; Bank 0 ft_s0p2c0: .byte $E2, $1B, $01, $7F, $03, $82, $00, $9B, $04, $1B, $9B, $04, $1B, $1B, $7F, $83, $1B, $03, $23, $00 .byte $7F, $00, $1B, $01, $7F, $03, $82, $00, $9B, $04, $1B, $9B, $04, $1B, $1B, $7F, $83, $1B, $03, $E5 .byte $25, $00, $7F, $00, $E2, $20, $01, $7F, $03, $82, $00, $9B, $04, $20, $9B, $04, $20, $15, $7F, $83 .byte $15, $03, $1B, $00, $7F, $00, $22, $01, $7F, $03, $82, $00, $9B, $04, $22, $9B, $04, $22, $16, $7F .byte $83, $16, $03, $1A, $01 ; Bank 0 ft_s0p2c1: .byte $82, $00, $E4, $2B, $7F, $27, $7F, $83, $2E, $01, $82, $00, $27, $7F, $2B, $7F, $27, $7F, $83, $2F .byte $01, $82, $00, $27, $7F, $2B, $7F, $27, $7F, $83, $30, $01, $82, $00, $2B, $7F, $2B, $7F, $27, $7F .byte $83, $31, $01, $82, $00, $27, $7F, $24, $7F, $20, $7F, $83, $2C, $01, $82, $00, $24, $7F, $24, $7F .byte $21, $7F, $83, $29, $01, $82, $00, $24, $7F, $26, $7F, $22, $7F, $83, $29, $01, $7F, $01, $82, $00 .byte $E1, $FA, $22, $26, $29, $2C, $FB, $2E, $32, $FC, $35, $83, $3A, $00 ; Bank 0 ft_s0p2c2: .byte $E0, $43, $03, $46, $03, $82, $01, $47, $46, $44, $47, $83, $46, $05, $4A, $01, $4B, $05, $41, $00 .byte $43, $00, $44, $05, $46, $01, $48, $07, $46, $05, $44, $00, $43, $00, $41, $07 ; Bank 0 ft_s0p2c4: .byte $00, $3D, $96, $64, $00, $01 ; Bank 0 ft_s0p3c0: .byte $E3, $20, $01, $24, $01, $27, $01, $2B, $03, $2C, $03, $82, $01, $27, $22, $26, $29, $83, $2C, $03 .byte $E6, $2E, $03, $82, $01, $E3, $29, $20, $24, $27, $83, $2B, $03, $2C, $03, $82, $01, $27, $22, $26 .byte $29, $83, $2C, $03, $E6, $2E, $03, $E3, $29, $01 ; Bank 0 ft_s0p3c1: .byte $E1, $FF, $3C, $05, $3A, $05, $38, $03, $35, $0F, $FA, $48, $05, $46, $05, $4B, $03, $4A, $0F ; Bank 0 ft_s0p3c2: .byte $82, $0F, $E0, $20, $22, $20, $83, $22, $0F ; Bank 0 ft_s0p4c0: .byte $E3, $20, $01, $24, $01, $27, $01, $2B, $03, $2C, $03, $82, $01, $27, $22, $26, $29, $83, $2C, $03 .byte $E6, $2E, $03, $82, $01, $E3, $29, $20, $24, $27, $83, $2B, $03, $2C, $03, $82, $01, $27, $22, $26 .byte $29, $83, $2C, $03, $E6, $2E, $03, $E3, $30, $01 ; Bank 0 ft_s0p4c1: .byte $E1, $FF, $3C, $05, $3A, $05, $38, $03, $35, $0F, $FA, $48, $05, $46, $05, $4B, $03, $4D, $0F ; Bank 0 ft_s0p4c2: .byte $E0, $20, $0F, $22, $0F, $20, $0F, $22, $0D, $3F, $00, $86, $02, $41, $00 ; DPCM samples (located at DPCM segment)
32.458015
105
0.518815
3d90f9e474cc8a3e0eb853f242c29b41fa6c301b
1,823
asm
Assembly
emulator/old/test7.asm
paulscottrobson/scmp-computer
c0c2af499f54383f13782cfe9757009f38567203
[ "MIT" ]
null
null
null
emulator/old/test7.asm
paulscottrobson/scmp-computer
c0c2af499f54383f13782cfe9757009f38567203
[ "MIT" ]
null
null
null
emulator/old/test7.asm
paulscottrobson/scmp-computer
c0c2af499f54383f13782cfe9757009f38567203
[ "MIT" ]
null
null
null
; *********************************************************************************************** ; ; Bootloader 2. Displays AAA.DDD in octal. Writes to page 1xx ; ; *********************************************************************************************** cpu sc/mp bootloader: nop RepaintBuffer: ldi 0xF2 ; put C in start of buffer st buffer ldi buffer ; buffer __RPEntry: xpal p1 RepaintBufferChar: sio ; wait for code. lde jp RepaintBuffer dly 00 ldi 0x70 ; counter __RPLoop: xae csa ; check for key press ani 0x30 jz __RPNoKey lde ; key pressed, put in P2.L xpal p2 __RPNoKey: ld (p1) ; is it the current character ? xre ani 0xF0 jnz __RPNoSet ld (p1) ; re-read it ani 0x03 ; isolate the flag bits cas ; copy to Status register __RPNoSet: dly 03 ; next Data line ldi 0x10 ; A = $10, also used to Clear F0,F1 and CY/L cas ade ; add current position to it. jnz __RPLoop ldi 0x72 ; overwrite character with zero st @1(p1) ; and point to next character ld (p1) ; read the next character jnz RepaintBufferChar st emptybuffer ; make sure emptybuffer is empty xpal p2 ; if non-zero key pressed, also clears P2.L jnz __KeyPressed __KeepScanning: st lastkey ; save as last key pressed. __KeepScanningNoLK: ldi emptybuffer ; redo with an empty buffer, just scan keyboard jmp __RPEntry __KeyPressed: xor lastkey jz __KeepScanningNoLK w1: jmp w1 lastkey: db 0 buffer: db 0x72 ; 'C' db 0x72,0x72,0x72,0x72,0x72,0x72 ; 0 0 0 0 0 0 emptybuffer: db 0,0 ; a buffer with nothing in it. db 0xFF
23.675325
97
0.533736
5874ed20c47372d38493e3005e474748871bc08b
471
asm
Assembly
oeis/044/A044397.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/044/A044397.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/044/A044397.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A044397: Numbers n such that string 6,5 occurs in the base 10 representation of n but not of n-1. ; Submitted by Christian Krause ; 65,165,265,365,465,565,650,665,765,865,965,1065,1165,1265,1365,1465,1565,1650,1665,1765,1865,1965,2065,2165,2265,2365,2465,2565,2650,2665,2765,2865,2965,3065,3165,3265,3365,3465,3565 add $0,1 mul $0,10 mov $1,$0 add $0,7 div $0,11 mul $0,22 add $1,$0 add $0,2 div $0,2 sub $1,5 div $1,11 add $0,$1 add $0,$1 add $0,$1 sub $0,5 mul $0,5
22.428571
184
0.698514
e1dd1c73d26dca3e89b176a3577357617a8ba571
136
asm
Assembly
libsrc/_DEVELOPMENT/arch/ts2068/misc/c/sccz80/ts_vmod.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
libsrc/_DEVELOPMENT/arch/ts2068/misc/c/sccz80/ts_vmod.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
libsrc/_DEVELOPMENT/arch/ts2068/misc/c/sccz80/ts_vmod.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
; void ts_vmod(unsigned char mode) SECTION code_clib SECTION code_arch PUBLIC ts_vmod EXTERN asm_ts_vmod defc ts_vmod = asm_ts_vmod
12.363636
34
0.816176
d4aaa17266be97c07fd7efe3b6fe422ec37dd4c5
250
asm
Assembly
libsrc/_DEVELOPMENT/adt/b_vector/c/sccz80/b_vector_append_block_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/b_vector/c/sccz80/b_vector_append_block_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/b_vector/c/sccz80/b_vector_append_block_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; void *b_vector_append_block(b_vector_t *v, size_t n) SECTION code_adt_b_vector PUBLIC b_vector_append_block_callee b_vector_append_block_callee: pop hl pop de ex (sp),hl INCLUDE "adt/b_vector/z80/asm_b_vector_append_block.asm"
16.666667
59
0.776
231c8cc1d1162188c9731d2782927c8e0bf0f1c2
845
asm
Assembly
programs/oeis/028/A028494.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/028/A028494.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/028/A028494.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A028494: a(n) = -(1/2)*(n+2)*(n^2 - 6*n - 1). ; 1,9,18,25,27,21,4,-27,-75,-143,-234,-351,-497,-675,-888,-1139,-1431,-1767,-2150,-2583,-3069,-3611,-4212,-4875,-5603,-6399,-7266,-8207,-9225,-10323,-11504,-12771,-14127,-15575,-17118,-18759,-20501,-22347,-24300,-26363,-28539,-30831,-33242,-35775,-38433,-41219,-44136,-47187,-50375,-53703,-57174,-60791,-64557,-68475,-72548,-76779,-81171,-85727,-90450,-95343,-100409,-105651,-111072,-116675,-122463,-128439,-134606,-140967,-147525,-154283,-161244,-168411,-175787,-183375,-191178,-199199,-207441,-215907,-224600,-233523,-242679,-252071,-261702,-271575,-281693,-292059,-302676,-313547,-324675,-336063,-347714,-359631,-371817,-384275,-397008,-410019,-423311,-436887,-450750,-464903 mov $1,$0 add $0,2 mul $0,$1 mov $2,6 sub $2,$1 mul $0,$2 add $2,$1 add $1,2 add $1,$0 mul $1,$2 mov $0,$1 div $0,12
52.8125
678
0.666272
5394bfef9eb36fca593eb508e56ada5d9f13fa6c
244
asm
Assembly
libsrc/_DEVELOPMENT/math/float/am9511/c/sdcc/cam32_sdcc___fsneq.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___fsneq.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___fsneq.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___fsneq EXTERN cam32_sdcc_readr EXTERN asm_am9511_compare ; Entry: stack: float right, float left, ret cam32_sdcc___fsneq: call asm_am9511_compare scf ret NZ ccf dec hl ret
13.555556
44
0.745902
6102ca3772b4de00db55274d0fab137c77b83b9a
1,812
asm
Assembly
lib/core/stack/_word.asm
locodarwin/xc-basic3
74d73fb4049980fc0c7b648b4893ce3a53056af3
[ "MIT" ]
11
2021-08-05T18:13:21.000Z
2022-03-26T21:44:50.000Z
lib/core/stack/_word.asm
locodarwin/xc-basic3
74d73fb4049980fc0c7b648b4893ce3a53056af3
[ "MIT" ]
119
2021-08-09T06:28:44.000Z
2022-03-31T07:12:11.000Z
lib/core/stack/_word.asm
locodarwin/xc-basic3
74d73fb4049980fc0c7b648b4893ce3a53056af3
[ "MIT" ]
3
2022-01-22T05:25:09.000Z
2022-03-26T17:11:55.000Z
; Push immediate word onto stack MAC pword ; @push IF !FPUSH lda #<{1} pha lda #>{1} pha ELSE lda #<{1} ldy #>{1} ENDIF ENDM ; Push address to stack MAC paddr ; @push pword {1} ENDM ; Push one word variable onto stack MAC pwordvar ; @push IF !FPUSH lda {1} pha lda {1}+1 pha ELSE lda {1} ldy {1}+1 ENDIF ENDM ; Push one dynamic word variable onto stack MAC pdynwordvar ; @push ldy #{1} IF !FPUSH lda (RC),y pha iny lda (RC),y pha ELSE lda (RC),y tax iny lda (RC),y tay txa ENDIF ENDM ; Pull word on stack to variable MAC plwordvar ; @pull IF !FPULL pla sta {1}+1 pla sta {1} ELSE sta {1} sty {1}+1 ENDIF ENDM ; Pull dynamic word on stack to variable MAC pldynwordvar ldy #[{1} + 1] pla sta (RC),y pla dey sta (RC),y ENDM ; Push word of an array onto stack ; (indexed by a word) MAC pwordarray ; @pull getaddr {1} ; Load and push ldy #0 lda (R0),y pha iny lda (R0),y pha ENDM ; Push word of an array onto stack ; (indexed by a byte) MAC pwordarrayfast ; @pull @push IF !FPULL pla ENDIF tax IF !FPUSH lda {1},x pha lda [{1} + 1],x pha ELSE lda {1},x ldy [{1} + 1],x ENDIF ENDM ; Pull word off of stack and store in array ; (indexed by a word) MAC plwordarray ; @pull getaddr {1} pla ldy #1 sta (R0),y dey pla sta (R0),y ENDM ; Pull word off of stack and store in array ; (indexed by a byte) MAC plwordarrayfast ; @pull IF !FPULL pla ENDIF tax pla sta [{1} + 1],x pla sta {1},x ENDM ; Push relative word variable (e.g this.something) MAC prelativewordvar ldy #{1} lda (TH),y pha iny lda (TH),y pha ENDM ; Pull int value and store in relative word variable ; (e.g this.something) MAC plrelativewordvar pla ldy #[{1} + 1] sta (TH),y pla dey sta (TH),y ENDM
12.161074
53
0.624172
046f6fa1857f9ac1862944d9181a5ff0402a832f
437
asm
Assembly
programs/oeis/129/A129937.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/129/A129937.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/129/A129937.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A129937: The central binomial numbers Binomial[n,Floor[n/2] minus the SO(n) dimension as an algebraic projective variety dimension. ; 1,1,0,0,0,5,14,42,90,207,407,858,1638,3341,6330,12750,24174,48467,92207,184566,352506,705201,1351825,2703880,5200000,10400275,20057949,40116222,77558354,155117085 mov $2,$0 add $0,1 seq $0,51920 ; a(n) = binomial(n, floor(n/2)) + 1. add $1,$0 add $2,1 mov $3,$2 bin $3,2 sub $1,$3 sub $1,1 mov $0,$1
31.214286
164
0.716247
df04ac7ceb13bc21c73c1775f6e75ab8fa95f6b3
137
asm
Assembly
tests/bank_simple/14.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
414
2016-10-14T22:39:20.000Z
2022-03-30T07:52:44.000Z
tests/bank_simple/14.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
100
2018-03-22T16:12:24.000Z
2022-03-26T09:19:23.000Z
tests/bank_simple/14.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
47
2017-06-29T15:12:13.000Z
2022-03-10T04:50:51.000Z
#ruledef test { loop => 0x5555 @ $`16 } #bankdef a { #addr 0x8000 } #bankdef a { #addr 0x8000 } ; error: duplicate / note:_:6: first
19.571429
64
0.613139
cd7c33f62b6e5dba7d9a6ab878cc795ffc6270e8
5,463
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_21829_373.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_21829_373.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_21829_373.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 %r9 push %rax push %rbp push %rcx push %rdi push %rsi // Store lea addresses_A+0x1a7ba, %r10 add %rdi, %rdi movb $0x51, (%r10) nop nop nop nop nop add %rdi, %rdi // Store lea addresses_WT+0x1dfba, %r9 sub %rax, %rax movl $0x51525354, (%r9) nop nop nop nop dec %r9 // REPMOV lea addresses_UC+0x1f1ba, %rsi lea addresses_PSE+0x16bba, %rdi clflush (%rdi) nop nop nop nop nop xor %rbp, %rbp mov $113, %rcx rep movsb sub %rdi, %rdi // Store mov $0xb3a, %rcx nop nop nop nop nop and $51691, %rax mov $0x5152535455565758, %rdi movq %rdi, (%rcx) xor %rsi, %rsi // Store lea addresses_WT+0x17878, %rdi nop nop nop nop add %rax, %rax mov $0x5152535455565758, %rsi movq %rsi, %xmm6 movaps %xmm6, (%rdi) nop nop add %r9, %r9 // Load lea addresses_WT+0x13fba, %rsi nop nop xor %rbp, %rbp mov (%rsi), %di nop add %r9, %r9 // Store lea addresses_PSE+0x2fda, %rdi nop sub $5704, %rbp movl $0x51525354, (%rdi) nop nop add %rbp, %rbp // Faulty Load lea addresses_US+0x87ba, %r11 sub %rsi, %rsi movb (%r11), %cl lea oracles, %rax and $0xff, %rcx shlq $12, %rcx mov (%rax,%rcx,1), %rcx pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 9, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 9, 'same': False, 'type': 'addresses_WT'}, 'OP': 'STOR'} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_UC'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 4, 'same': False, 'type': 'addresses_P'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 1, 'same': False, 'type': 'addresses_WT'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 10, 'same': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 1, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_US'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'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 */
42.023077
2,999
0.65129
83ddf8f2a2b3996c5002f11dd399b4a4d6161449
579
asm
Assembly
oeis/001/A001576.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/001/A001576.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/001/A001576.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A001576: a(n) = 1^n + 2^n + 4^n. ; 3,7,21,73,273,1057,4161,16513,65793,262657,1049601,4196353,16781313,67117057,268451841,1073774593,4295032833,17180000257,68719738881,274878431233,1099512676353,4398048608257,17592190238721,70368752566273,281474993487873,1125899940397057,4503599694479361,18014398643699713,72057594306363393,288230376688582657,1152921505680588801,4611686020574871553,18446744078004518913,73786976303428141057,295147905196532695041,1180591620751771041793,4722366482938364690433,18889465931616019808257 mov $2,2 pow $2,$0 mov $0,$2 mul $0,$2 add $0,$2 add $0,1
57.9
484
0.846287
77b9b4507fd593a5099f585d9dca2392c39a2a14
601
asm
Assembly
Kernel/interruptions/syscallHandler.asm
gbaliarda/TPE2-SO
5dcf7d4e31f6f83e59ec5983a7f87e232e8cb5df
[ "BSD-3-Clause" ]
null
null
null
Kernel/interruptions/syscallHandler.asm
gbaliarda/TPE2-SO
5dcf7d4e31f6f83e59ec5983a7f87e232e8cb5df
[ "BSD-3-Clause" ]
null
null
null
Kernel/interruptions/syscallHandler.asm
gbaliarda/TPE2-SO
5dcf7d4e31f6f83e59ec5983a7f87e232e8cb5df
[ "BSD-3-Clause" ]
1
2022-03-08T15:31:23.000Z
2022-03-08T15:31:23.000Z
GLOBAL syscallHandler EXTERN loadSysNum EXTERN syscallDispatcher SECTION .text %macro pushState 0 push rbx push rcx push rdx push rbp push rdi push rsi push r8 push r9 push r10 push r11 push r12 push r13 push r14 push r15 %endmacro %macro popState 0 pop r15 pop r14 pop r13 pop r12 pop r11 pop r10 pop r9 pop r8 pop rsi pop rdi pop rbp pop rdx pop rcx pop rbx %endmacro syscallHandler: cli pushState push rdi mov rdi, rax call loadSysNum pop rdi call syscallDispatcher popState sti iretq
11.557692
28
0.652246
6e39edb9ef0d7c06f2118c608c5d6edc36f34b6b
7,421
asm
Assembly
tests/BranchingTest.r.asm
sdsmdg/RISC-processor
ca4f6105e41c906b7df2fedfc671bde2852e786e
[ "MIT" ]
43
2017-07-11T06:33:08.000Z
2022-03-25T12:21:00.000Z
tests/BranchingTest.r.asm
sdsmdg/RISC-processor
ca4f6105e41c906b7df2fedfc671bde2852e786e
[ "MIT" ]
null
null
null
tests/BranchingTest.r.asm
sdsmdg/RISC-processor
ca4f6105e41c906b7df2fedfc671bde2852e786e
[ "MIT" ]
7
2017-09-27T15:24:04.000Z
2021-02-23T18:17:23.000Z
; This test is modified version of original content provided ; under CC-by-NC-SA license by MIT OCW. ; Branching tests . = 0 ; here on reset BEQ %R31,Start,XP ; should branch error1 = . ; here on illegal instructions or if BEQ above didn't work BR IllInst ; here on interrupts JMP XP ; return from interrupt don't adjust XP! ; here when we've found an error Error: ADDC %R0,0,%R31 ; put error code on result bus BR Error ; loop or least try to! ; handler for illegal instructions IllInst: CMPEQC XP,error1,%R0 ; did the first instruction fail? BF %R0,Ill_1 ; nope, do regular processing MOVE XP,%R0 ; yup, branch to error handler BR Error Ill_1: ADDC %R1,1,%R1 ; update count JMP XP ; return to user... ; okay, now for some real tests... Start: BNE %R31,Error,%R0 ; shouldn't branch erro%r3 = . ; test simple comparisons CMPEQC %R31,0,%R0 BF %R0,Error,%R0 cmp1 = . CMPLEC %R31,0,%R0 BF %R0,Error,%R0 cmp2 = . CMPLTC %R31,1,%R0 BF %R0,Error,%R0 cmp3 = . CMPEQC %R31,-1,%R0 BT %R0,Error,%R0 cmp4 = . CMPLEC %R31,-1,%R0 BT %R0,Error,%R0 cmp5 = . CMPLTC %R31,-1,%R0 BT %R0,Error,%R0 cmp6 = . ; test comparisons with overflow ADDC %R31,1,%R1 ; load 0x8000000 into %r0 SHLC %R1,31,%R1 SUBC %R1,1,%R2 ; load 0x7FFFFFF into %r1 OR %R1,%R2,%R3 ; make sure we have what we think we have CMPEQC %R3,-1,%R3 BF %R3,Error,%R0 cmp7 = . CMPLE %R1,%R2,%R3 ; subtraction should overflow BF %R3,Error,%R0 ; shouldn't branch cmp8 = . CMPLE %R2,%R1,%R3 ; test it the other way too BT %R3,Error,%R0 cmp9 = . ; test the registers ADD %R31,%R31,%R0 ; start by making sure ADD works BNE %R0,Error,%R0 ; shouldn't branch reg1 = . ADDC %R31,0,%R0 ; and then ADDC BNE %R0,Error,%R0 ; shouldn't branch reg2 = . ADDC %R31,0,%R0 ; now fill all regs with unique values ADDC %R31,1,%R1 ADDC %R31,2,%R2 ADDC %R31,3,%R3 ADDC %R31,4,%R4 ADDC %R31,5,%R5 ADDC %R31,6,%R6 ADDC %R31,7,%R7 ADDC %R31,8,%R8 ADDC %R31,9,%R9 ADDC %R31,10,%R10 ADDC %R31,11,%R11 ADDC %R31,12,%R12 ADDC %R31,13,%R13 ADDC %R31,14,%R14 ADDC %R31,15,%R15 ADDC %R31,16,%R16 ADDC %R31,17,%R17 ADDC %R31,18,%R18 ADDC %R31,19,%R19 ADDC %R31,20,%R20 ADDC %R31,21,%R21 ADDC %R31,22,%R22 ADDC %R31,23,%R23 ADDC %R31,24,%R24 ADDC %R31,25,%R25 ADDC %R31,26,%R26 ADDC %R31,27,%R27 ADDC %R31,28,%R28 ADDC %R31,29,%R29 ADDC %R31,30,%R30 ADDC %R31,31,%R31 CMPEQC %R0,0,%R0 ; now check all the reg values BF %R0,Error,%R0 reg3 = . CMPEQC %R1,1,%R0 BF %R0,Error,%R0 reg4 = . CMPEQC %R2,2,%R0 BF %R0,Error,%R0 reg5 = . CMPEQC %R3,3,%R0 BF %R0,Error,%R0 reg6 = . CMPEQC %R4,4,%R0 BF %R0,Error,%R0 reg7 = . CMPEQC %R5,5,%R0 BF %R0,Error,%R0 reg8 = . CMPEQC %R6,6,%R0 BF %R0,Error,%R0 reg9 = . CMPEQC %R7,7,%R0 BF %R0,Error,%R0 reg10 = . CMPEQC %R8,8,%R0 BF %R0,Error,%R0 reg11 = . CMPEQC %R9,9,%R0 BF %R0,Error,%R0 reg12 = . CMPEQC %R10,10,%R0 BF %R0,Error,%R0 reg13 = . CMPEQC %R11,11,%R0 BF %R0,Error,%R0 reg14 = . CMPEQC %R12,12,%R0 BF %R0,Error,%R0 reg15 = . CMPEQC %R13,13,%R0 BF %R0,Error,%R0 reg16 = . CMPEQC %R14,14,%R0 BF %R0,Error,%R0 reg17 = . CMPEQC %R15,15,%R0 BF %R0,Error,%R0 reg18 = . CMPEQC %R16,16,%R0 BF %R0,Error,%R0 reg19 = . CMPEQC %R17,17,%R0 BF %R0,Error,%R0 reg20 = . CMPEQC %R18,18,%R0 BF %R0,Error,%R0 reg21 = . CMPEQC %R19,19,%R0 BF %R0,Error,%R0 reg22 = . CMPEQC %R20,20,%R0 BF %R0,Error,%R0 reg23 = . CMPEQC %R21,21,%R0 BF %R0,Error,%R0 reg24 = . CMPEQC %R22,22,%R0 BF %R0,Error,%R0 reg25 = . CMPEQC %R23,23,%R0 BF %R0,Error,%R0 reg26 = . CMPEQC %R24,24,%R0 BF %R0,Error,%R0 reg27 = . CMPEQC %R25,25,%R0 BF %R0,Error,%R0 reg28 = . CMPEQC %R26,26,%R0 BF %R0,Error,%R0 reg29 = . CMPEQC %R27,27,%R0 BF %R0,Error,%R0 reg30 = . CMPEQC %R28,28,%R0 BF %R0,Error,%R0 reg31 = . CMPEQC %R29,29,%R0 BF %R0,Error,%R0 reg32 = . CMPEQC %R30,30,%R0 BF %R0,Error,%R0 reg33 = . BNE %R31,Error,%R0 reg34 = . ; check out JMPs CMOVE jmp1,%R17 SHLC %R1,31,%R1 OR %R1,%R17,%R17 JMP %R17,LP BEQ %R31,Error,%R0 ; shouldn't execute this! jmp1 = . SHLC LP,1,LP ; get rid of kernel-mode bit SHRC LP,1,LP CMPEQC LP,jmp1-4,%R23 ; see if LP was filled correctly BEQ %R23,Error,%R0 jmp2 = . ; check out LDR/ADD/SUB LDR CA,%R24 LDR C5,%R25 ADD %R24,%R25,%R26 ; 0xAAAAAAAA + 0x55555555 = -1 CMPEQC %R26,-1,%R27 BEQ %R27,Error,%R0 add1 = . ADD %R24,%R24,%R26 ; 0xAAAAAAAA + 0xAAAAAAAA = 0x55555554 SUB %R26,%R25,%R26 CMPEQC %R26,-1,%R27 BEQ %R27,Error,%R0 add2 = . ADD %R25,%R25,%R26 ; 0x55555555 + 0x55555555 = 0xAAAAAAAA SUB %R26,%R24,%R26 BNE %R26,Error,%R0 add3 = . CMOVE 1,%R17 SUBC %R17,1,%R18 ; test carry propagation BNE %R18,Error,%R0 add4 = . ; test boolean operations CMOVE 0x0F0F,%R11 CMOVE 0x7F00,%R12 AND %R11,%R12,%R13 ; 0x0F0F & 0x7F00 = 0x0F00 CMPEQC %R13,0x0F00,%R14 BEQ %R14,Error,%R0 bool1 = . OR %R11,%R12,%R13 ; 0x0F0F ; 0x7F00 = 0x7F0F CMPEQC %R13,0x7F0F,%R14 BEQ %R14,Error,%R0 bool2 = . XOR %R11,%R12,%R13 ; 0x0F0F ^ 0x7F00 = 0x700F CMPEQC %R13,0x700F,%R14 BEQ %R14,Error,%R0 bool3 = . ; test shifts CMOVE 1,%R27 SHLC %R27,32,%R28 ; should do nothing CMPEQC %R28,1,%R29 BEQ %R29,Error,%R0 shift1 = . SHLC %R27,31,%R28 ; 1 << 31 = 0x80000000 SRAC %R28,17,%R26 ; 0x80000000 >> signed 17 = 0xFFFFC000 CMPEQC %R26,0xC000,%R25 BEQ %R25,Error,%R0 shift2 = . SHRC %R28,17,%R26 ; 0x80000000 >> unsigned 17 = 0x00004000 CMPEQC %R26,0x4000,%R25 BEQ %R25,Error,%R0 shift3 = . ; test illegal operations CMOVE 0,XP CMOVE 0,%R1 LONG 0x08 << 26 ; illegal operation SHLC XP,1,XP ; get rid of kernel-mode bit SHRC XP,1,XP CMPEQC XP,.-8,%R0 BEQ %R0,Error,%R0 illop1 = . LONG 0x1A << 26 ; some more illegal operations LONG 0x1C << 26 LONG 0x27 << 26 LONG 0x2B << 26 LONG 0x2F << 26 LONG 0x37 << 26 LONG 0x3B << 26 LONG 0x3F << 26 CMPEQC %R1,9,%R0 BEQ %R0,Error,%R0 illop2 = . ; test load and store CMOVE LDST,%R4 ; load base reg LDR CA,%R9 XORC %R9,-1,%R0 ; %R0 <- 0x55555555 ST %R0,0,%R4 ; try some stores ST %R0,LDST+4,%R31 ; check out bypassing if any! ST %R0,8,%R4 ST %R0,LDST+12,%R31 LD %R4,0,%R6 LDR C5,%R5 CMPEQ %R6,%R5,%R0 ; check 1-stage stall BEQ %R0,Error,%R0 ldst1 = . LD %R31,LDST+4,%R7 CMPEQ %R7,%R5,%R0 ; check 2-stage stall BEQ %R0,Error,%R0 ldst2 = . LD %R4,8,%R8 CMPEQ %R8,%R5,%R0 BEQ %R0,Error,%R0 ldst3 = . LD %R31,LDST+12,%R9 CMPEQ %R9,%R5,%R0 BEQ %R0,Error,%R0 ldst4 = . ; finally, check out some bypass paths just in case... ADD %R31,%R20,%R0 ; %R20 = 20 ADD %R0,%R0,%R1 ; bypass from ALU stage ADD %R0,%R0,%R2 ; bypass from MEM stage ADD %R0,%R0,%R3 ; bypass from WB stage ADD %R0,%R0,%R4 ; read from register ADD %R1,%R2,%R5 ADD %R3,%R5,%R5 ADD %R4,%R5,%R5 CMPEQC %R5,160,%R0 BEQ %R0,Error,%R0 bypass1 = . BNE %R31,.+4,%R0 ; %R0 = bypass bypass: ADD %R0,%R0,%R1 ; bypass PC from ALU stage ADD %R0,%R0,%R2 ; bypass PC from MEM stage ADD %R0,%R0,%R3 ; bypass PC from WB stage ADD %R0,%R0,%R4 ; read from register ADD %R1,%R2,%R5 ADD %R3,%R5,%R5 ADD %R4,%R5,%R5 CMPEQC %R5,8*bypass,%R0 BEQ %R0,Error,%R0 bypass1 = . ; check interrupts CMOVE .+8,%R0 JMP %R0 ; leave supervisor mode BEQ %R31,Error,%R0 ; this should be interrupted int1 = . CMPEQC XP,.,%R0 ; see if XP has correct value BF %R0,Error,%R0 int2 = . ; all done! Done: ADDC %R31,0,%R31 BR Done CA: LONG 0xAAAAAAAA C5: LONG 0x55555555 LDST: LONG 0 LONG 0 LONG 0 LONG 0
19.375979
61
0.633203
116fb039a1260a49e8fb7c3bc03c15ae485208a1
457
asm
Assembly
asm/xor-swap.asm
tigercosmos/16bitjs
7182b81613e8278aafe4ef1da13dd3988eae2f77
[ "MIT" ]
509
2017-07-10T10:40:02.000Z
2022-03-08T02:58:50.000Z
asm/xor-swap.asm
gt0608/16bitjs
7182b81613e8278aafe4ef1da13dd3988eae2f77
[ "MIT" ]
29
2017-07-12T06:26:35.000Z
2017-10-22T17:29:11.000Z
asm/xor-swap.asm
gt0608/16bitjs
7182b81613e8278aafe4ef1da13dd3988eae2f77
[ "MIT" ]
58
2017-07-21T21:07:26.000Z
2022-01-02T23:23:10.000Z
.data .starting_values string "A = 10, B = 20\n" .result_a string "A = " .result_b string ", B = " .text .global main: main: ;; Print stating values mvi a, 0 mvi b, .starting_values mvi c, 4 sys ;; Swap values mvi a, 10 mvi b, 20 swp a, B ;; Print results psh b psh a mvi a, 0 mvi b, .result_a mvi c, 4 sys pop b mvi c, 0 sys mvi a, 0 mvi b, .result_b mvi c, 4 sys pop b mvi c, 0 sys hlt
10.880952
44
0.555799
5f21d48c2b19570996d9bf3a5b10b10f6de4892f
448
asm
Assembly
programs/oeis/230/A230865.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/230/A230865.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/230/A230865.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A230865: a(n) = n + (sum of digits in base-5 representation of n). ; 0,2,4,6,8,6,8,10,12,14,12,14,16,18,20,18,20,22,24,26,24,26,28,30,32,26,28,30,32,34,32,34,36,38,40,38,40,42,44,46,44,46,48,50,52,50,52,54,56,58,52,54,56,58,60,58,60,62,64,66,64,66,68,70,72,70,72,74,76,78,76,78,80,82,84,78,80,82,84,86,84,86,88,90,92,90,92,94,96,98,96,98,100,102,104,102,104,106,108,110 mov $1,$0 lpb $1 div $1,5 mul $1,2 sub $0,$1 div $1,2 lpe mul $0,2
37.333333
302
0.631696
7deca63fb4dd5d4b407678bcb434b7dd7923ed92
197
asm
Assembly
3rdParties/src/nasm/nasm-2.15.02/travis/test/andbyte.asm
blue3k/StormForge
1557e699a673ae9adcc8f987868139f601ec0887
[ "Apache-2.0" ]
1
2020-06-20T07:35:25.000Z
2020-06-20T07:35:25.000Z
3rdParties/src/nasm/nasm-2.15.02/travis/test/andbyte.asm
blue3k/StormForge
1557e699a673ae9adcc8f987868139f601ec0887
[ "Apache-2.0" ]
null
null
null
3rdParties/src/nasm/nasm-2.15.02/travis/test/andbyte.asm
blue3k/StormForge
1557e699a673ae9adcc8f987868139f601ec0887
[ "Apache-2.0" ]
null
null
null
bits 16 add sp, byte -0x10 add sp, -0x10 adc sp, byte -0x10 adc sp, -0x10 and sp, byte -0x10 and sp, -0x10 sbb sp, byte -0x10 sbb sp, -0x10 sub sp, byte -0x10 sub sp, -0x10
15.153846
20
0.588832
d8ab3b9c38b0a78236523b80d44d4190fd71e0fc
1,322
asm
Assembly
sigsqrt.asm
gp48k/lpfp
070c73a8b67d98f85d2de86d75b23f0e71a18a8a
[ "MIT" ]
17
2018-06-17T19:12:27.000Z
2021-05-31T16:20:44.000Z
sigsqrt.asm
gp48k/lpfp
070c73a8b67d98f85d2de86d75b23f0e71a18a8a
[ "MIT" ]
null
null
null
sigsqrt.asm
gp48k/lpfp
070c73a8b67d98f85d2de86d75b23f0e71a18a8a
[ "MIT" ]
4
2018-10-14T16:08:26.000Z
2021-06-21T23:31:59.000Z
INCLUDE "align.asm" ; Signed half-squares table for numbers in the -1.0..+1.0 (-127..+127) range SIGSQRT:DEFB $00,$00,$00,$00,$00,$00,$00,$00 DEFB $00,$00,$00,$00,$00,$00,$01,$01 DEFB $01,$01,$01,$01,$01,$02,$02,$02 DEFB $02,$02,$02,$03,$03,$03,$03,$04 DEFB $04,$04,$04,$05,$05,$05,$05,$06 DEFB $06,$06,$07,$07,$07,$08,$08,$08 DEFB $09,$09,$0a,$0a,$0a,$0b,$0b,$0c DEFB $0c,$0d,$0d,$0d,$0e,$0e,$0f,$0f DEFB $10,$10,$11,$11,$12,$12,$13,$14 DEFB $14,$15,$15,$16,$16,$17,$18,$18 DEFB $19,$1a,$1a,$1b,$1b,$1c,$1d,$1d DEFB $1e,$1f,$20,$20,$21,$22,$22,$23 DEFB $24,$25,$25,$26,$27,$28,$29,$29 DEFB $2a,$2b,$2c,$2d,$2e,$2e,$2f,$30 DEFB $31,$32,$33,$34,$35,$35,$36,$37 DEFB $38,$39,$3a,$3b,$3c,$3d,$3e,$3f DEFB $40,$3f,$3e,$3d,$3c,$3b,$3a,$39 DEFB $38,$37,$36,$35,$35,$34,$33,$32 DEFB $31,$30,$2f,$2e,$2e,$2d,$2c,$2b DEFB $2a,$29,$29,$28,$27,$26,$25,$25 DEFB $24,$23,$22,$22,$21,$20,$20,$1f DEFB $1e,$1d,$1d,$1c,$1b,$1b,$1a,$1a DEFB $19,$18,$18,$17,$16,$16,$15,$15 DEFB $14,$14,$13,$12,$12,$11,$11,$10 DEFB $10,$0f,$0f,$0e,$0e,$0d,$0d,$0d DEFB $0c,$0c,$0b,$0b,$0a,$0a,$0a,$09 DEFB $09,$08,$08,$08,$07,$07,$07,$06 DEFB $06,$06,$05,$05,$05,$05,$04,$04 DEFB $04,$04,$03,$03,$03,$03,$02,$02 DEFB $02,$02,$02,$02,$01,$01,$01,$01 DEFB $01,$01,$01,$00,$00,$00,$00,$00 DEFB $00,$00,$00,$00,$00,$00,$00,$00
36.722222
76
0.540091
e76643c45d8a5bbc58eb0d2d96d1a72d4c3fcece
450
asm
Assembly
programs/oeis/204/A204133.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/204/A204133.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/204/A204133.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A204133: Symmetric matrix based on f(i,j)=(2^(i-1) if i=j and 1 otherwise), by antidiagonals. ; 1,1,1,1,2,1,1,1,1,1,1,1,4,1,1,1,1,1,1,1,1,1,1,1,8,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,16,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,32,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,64,1,1,1,1,1,1,1,1,1,1,1,1,1 cal $0,204125 ; Symmetric matrix based on f(i,j)=(i if i=j and 1 otherwise), by antidiagonals. cal $0,918 ; a(n) = 2^n - 2. mov $1,$0 div $1,2 add $1,1
50
200
0.584444
f3cff90e50e7d8e1d93bca15f1e1f73149ec6780
7,051
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1900.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_1900.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_1900.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 %r15 push %r8 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_UC_ht+0x5631, %rsi lea addresses_A_ht+0xf791, %rdi nop nop nop inc %r8 mov $97, %rcx rep movsq nop nop sub $12449, %r9 lea addresses_WC_ht+0x991, %r15 nop nop nop nop nop inc %rcx mov $0x6162636465666768, %r8 movq %r8, %xmm5 movups %xmm5, (%r15) nop xor %rdi, %rdi lea addresses_WT_ht+0x36b1, %r15 sub $973, %rcx mov (%r15), %r8 nop nop nop nop xor %r15, %r15 lea addresses_UC_ht+0x1c431, %rsi lea addresses_WT_ht+0x1be91, %rdi nop xor %rbp, %rbp mov $28, %rcx rep movsq nop nop nop sub $65168, %rdi lea addresses_WC_ht+0x9745, %rsi lea addresses_WC_ht+0xa931, %rdi nop nop xor $27867, %r8 mov $70, %rcx rep movsl nop nop and $17285, %r8 lea addresses_D_ht+0x10611, %rcx nop nop nop add $9493, %rdi movw $0x6162, (%rcx) nop nop nop nop sub $51783, %r15 lea addresses_WT_ht+0x3011, %rsi lea addresses_WT_ht+0x8851, %rdi nop nop nop nop nop cmp $44420, %rax mov $68, %rcx rep movsl nop nop nop nop nop and $10397, %r8 lea addresses_WT_ht+0x1d0f1, %rsi lea addresses_D_ht+0x16bbd, %rdi clflush (%rsi) nop nop nop cmp %rax, %rax mov $6, %rcx rep movsb nop nop nop add $40844, %rbp lea addresses_WT_ht+0x10c73, %rax nop nop nop sub %rsi, %rsi mov (%rax), %r9d nop nop nop add %rdi, %rdi lea addresses_WC_ht+0x17591, %rsi lea addresses_D_ht+0xa911, %rdi and %r15, %r15 mov $84, %rcx rep movsq nop add %rax, %rax lea addresses_WC_ht+0x19471, %rsi lea addresses_D_ht+0x1b591, %rdi nop nop nop nop and $5531, %rax mov $120, %rcx rep movsl nop dec %rsi lea addresses_UC_ht+0x14a11, %r9 nop add $36606, %rcx movb (%r9), %r15b nop nop xor $52380, %r9 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r8 pop %r15 ret .global s_faulty_load s_faulty_load: push %r12 push %r9 push %rax push %rcx push %rdi // Faulty Load lea addresses_A+0x9591, %rcx clflush (%rcx) nop nop nop add %r9, %r9 movb (%rcx), %r12b lea oracles, %rax and $0xff, %r12 shlq $12, %r12 mov (%rax,%r12,1), %r12 pop %rdi pop %rcx pop %rax pop %r9 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 9}} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 5}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 5}} {'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': True}} {'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 3}, '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 */
35.97449
2,999
0.658914
80e2f25312c9be43c63ad6c229b9dd5797f56f67
902
asm
Assembly
src/7SEG_Display.asm
FSXAC/ELEC291P1
6099c36205136062a233eac03b91e5d1034772aa
[ "MIT" ]
null
null
null
src/7SEG_Display.asm
FSXAC/ELEC291P1
6099c36205136062a233eac03b91e5d1034772aa
[ "MIT" ]
null
null
null
src/7SEG_Display.asm
FSXAC/ELEC291P1
6099c36205136062a233eac03b91e5d1034772aa
[ "MIT" ]
null
null
null
;LIT SOLDER OVEN CONTROLLER -- BONUS: 7SEG LED DISPLAY ; AUTHOR: GEOFF GOODWIN ; MUCHEN HE ; WENOA TEVES ; VERSION: 0 ; LAST REVISION: 2017-02-05 ; http: i.imgur.com/7wOfG4U.gif org 0x0000 ljmp setup ; org 0x000B ; ljmp T0_ISR org 0x002B ljmp T2_ISR ; standard library $NOLIST $MODLP52 $LIST $include(macros.inc) $include(LCD_4bit.inc) ; Preprocessor constants CLK equ 22118400 ; pins for shift register LED_DATA equ P0.0 LED_LATCH equ P0.1 LED_CLK equ P0.2 LED_CLR equ P0.3 ; digits d1 equ 1 d2 equ 2 d3 equ 3 d4 equ 4 ; 7seg display ; "datasheet": http://haneefputtur.com/7-segment-4-digit-led-display-sma420564-using-arduino.html ; ABCDEFG. O equ 11111100 P equ 11001110 E equ 10011110 N equ 11101100
20.044444
97
0.592018
f0e99af55bba45dc78aa336b2a5e5b47fa6c5dfc
4,074
asm
Assembly
Ejercicios/Cap_10/ej101_TOC_Buzzer.asm
moisotico/Microprocesadores
ce434318f1245e60ac47ae0b1af2b424695bfc77
[ "MIT" ]
null
null
null
Ejercicios/Cap_10/ej101_TOC_Buzzer.asm
moisotico/Microprocesadores
ce434318f1245e60ac47ae0b1af2b424695bfc77
[ "MIT" ]
null
null
null
Ejercicios/Cap_10/ej101_TOC_Buzzer.asm
moisotico/Microprocesadores
ce434318f1245e60ac47ae0b1af2b424695bfc77
[ "MIT" ]
null
null
null
#include registers.inc ;******************************************************************************* ; UNIVERSIDAD DE COSTA RICA ESCUELA DE INGENIERIA ELECTRICA ; MICROPROCESADORES IE 623 I SEMESTRE 2020 ;******************************************************************************* ; Despl_LED ;******************************************************************************* ; V1 ; AUTOR: ROBIN GONZALEZ B43011 ; ; DESCRIPCION: video 10.1 Timer Output Compare ; ;******************************************************************************* ; Estructuras de datos ;******************************************************************************* LEDS: EQU $1000 Cont_OC: equ $1001 ORG LEDS db 0,50 ;******************************************************************************* ; Relocalizar vectores ;******************************************************************************* org $3E64 ;DEBUG12 Ver tabla de vectores!! dw TOI_ISR ;******************************************************************************* ; Config de hardware ;******************************************************************************* ORG $2000 BSET DDRb,$FF ;ESTO ES UNA MASCARA BSET DDRj,$02 ;bit 1 es segundo de der a izq BCLR ptj,$02 MOVB #$0F, DDRP ;inhibir displays ; MOVB #$0F, PTP ;apaga display ;Control Register interrupt ;reg de ctrl BSET TSCR1,$90 ;Poner 1 en TEN Timer enable bit y de Timer Status Control Reg 1 Habilitio CRFFCA BSET TSCR2,$04 ;Prescalador de 16 BSET TIOS,$20 ;Vamos a usar canal 5 BSET TIE,$20 ;Canal 5 BSET TCTL1,$04 ;habilita toggle en pad 5 de Port T ;NUEVO OUTPUT COMPARE ;calculo cuentas sobre valor actual del contador porque nunca para LDD #1500 ;15000 en D ADDD TCNT ;15000 + contador en D STD TC5 ;15000 + contador en TC5 ;******************************************************************************* ; PROGRAMA PRINCIPAL ;******************************************************************************* LDS #$3BFF ;DEBUG12 CLI ; LDAA #1 ; MOVB #1, LEDS ; STAA LEDS ; MOVB #250,Cont_RTI LDAA #25 STAA Cont_OC ; LDAA 250 BSET PORTB,$01 BRA * ;******************************************************************************* ; SUbrutina RTI_ISR ;******************************************************************************* ;Control Register General Flag ;reg de estatus TOI_ISR: BSET TFLG2,$80 ;borrar solicitud de interrupcion se borra con un 1 ; BSET PORTB,$55 ; EORA #$01 ; STAA CRGFLG ; DBNE Cont_RTI, retornar DEC Cont_OC BNE retornar ; LDAA Cont_RTI MOVB #25, Cont_OC ; LDAA 250 ; STAA Cont_RTI ; MOVB LEDS, PORTB ; LSL LEDS LSL PORTB ; LDAA LEDS ; STAA PORTB LDAA $80 ; CMPA LEDS CMPA PORTB BEQ reinicio retornar: ;NUEVO OUTPUT COMPARE ;calculo cuentas sobre valor actual del contador porque nunca para LDD #1500 ;15000 en D ADDD TCNT ;15000 + contador en D STD TC5 ;15000 + contador en TC5 RTI reinicio: ; MOVB #1, LEDS BSET PORTB,$01 ; LDAA 1 ; STAA LEDS Bra retornar
34.820513
111
0.341679
7eddf78d982f4e136068c52752648180104e2974
8,067
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0xca_notsx.log_20708_1081.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0xca_notsx.log_20708_1081.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0xca_notsx.log_20708_1081.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 %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x9312, %r15 nop nop and $23742, %rbp mov $0x6162636465666768, %r13 movq %r13, (%r15) nop nop nop nop nop inc %r10 lea addresses_normal_ht+0x16112, %r14 xor %rcx, %rcx movb (%r14), %dl nop nop nop nop and $41383, %r10 lea addresses_WT_ht+0x12752, %rsi lea addresses_WC_ht+0x1369a, %rdi nop nop sub $35989, %r10 mov $94, %rcx rep movsq nop nop nop sub $46180, %r13 lea addresses_WC_ht+0x12a92, %rsi lea addresses_normal_ht+0x6172, %rdi nop nop nop nop nop xor $26526, %r10 mov $0, %rcx rep movsl nop inc %r10 lea addresses_WT_ht+0x10f92, %rcx nop nop nop and %rsi, %rsi mov $0x6162636465666768, %r15 movq %r15, %xmm1 vmovups %ymm1, (%rcx) cmp %rbp, %rbp pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r15 pop %r14 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi // REPMOV lea addresses_PSE+0xaa92, %rsi lea addresses_PSE+0xaa92, %rdi nop nop nop nop add %rbp, %rbp mov $28, %rcx rep movsq nop nop nop nop and $48937, %rsi // Store lea addresses_PSE+0xaa92, %rax nop nop add %rdi, %rdi movl $0x51525354, (%rax) nop nop add $17292, %rdi // Store lea addresses_WC+0x1fa92, %rbp nop nop nop cmp %rcx, %rcx movw $0x5152, (%rbp) nop nop cmp %rdi, %rdi // Store lea addresses_D+0x1692, %rax xor %rbp, %rbp mov $0x5152535455565758, %rsi movq %rsi, (%rax) nop nop nop inc %rbp // Store lea addresses_D+0xaa92, %rbp nop nop nop nop nop xor $40931, %r8 mov $0x5152535455565758, %rdi movq %rdi, %xmm0 vmovups %ymm0, (%rbp) mfence // Store lea addresses_RW+0x1c492, %rcx nop nop nop cmp %rbp, %rbp mov $0x5152535455565758, %r8 movq %r8, %xmm1 movups %xmm1, (%rcx) sub $11335, %rcx // Store mov $0x492, %r8 nop dec %rbp mov $0x5152535455565758, %r13 movq %r13, %xmm0 vmovups %ymm0, (%r8) xor $2268, %rcx // Store lea addresses_normal+0x1bc46, %rdi nop nop nop add $566, %rbp movb $0x51, (%rdi) nop nop nop nop sub %rax, %rax // Store lea addresses_UC+0x3a92, %rdi clflush (%rdi) nop dec %rax movw $0x5152, (%rdi) nop nop nop nop nop and $11422, %rbp // Load lea addresses_WT+0xba92, %r13 clflush (%r13) nop nop nop nop nop xor $36541, %rsi movb (%r13), %al nop xor $21028, %rdi // Store lea addresses_D+0x14ae2, %r13 clflush (%r13) nop nop nop inc %rcx mov $0x5152535455565758, %r8 movq %r8, (%r13) nop nop nop nop nop sub %r13, %r13 // Faulty Load lea addresses_PSE+0xaa92, %rcx sub %rbp, %rbp movb (%rcx), %r13b lea oracles, %rdi and $0xff, %r13 shlq $12, %r13 mov (%rdi,%r13,1), %r13 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_PSE', 'congruent': 0, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_PSE', 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 4, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WC', 'size': 2, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_D', 'size': 8, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_D', 'size': 32, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_RW', 'size': 16, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_P', 'size': 32, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_normal', 'size': 1, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_UC', 'size': 2, 'AVXalign': False}} {'src': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_WT', 'size': 1, 'AVXalign': True}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_D', 'size': 8, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False}} {'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False}} {'54': 20708} 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 */
30.673004
2,999
0.652907
660cf3ac8530aed5c37dc6d22f4a7ad2bf0a18ed
1,604
asm
Assembly
0x22.asm
SpeedStepper/XchgRaxRax
24c1a47f8da2fab1e4c3ad62136b307c7fa5a6dc
[ "MIT" ]
53
2017-09-06T02:37:25.000Z
2022-03-10T05:17:06.000Z
0x22.asm
uf0o/xorpd-solutions
3a84172f615533ffbd40124594db6d36baa6260a
[ "MIT" ]
2
2019-04-03T12:51:42.000Z
2020-12-10T13:58:14.000Z
0x22.asm
uf0o/xorpd-solutions
3a84172f615533ffbd40124594db6d36baa6260a
[ "MIT" ]
21
2017-09-06T02:37:33.000Z
2022-03-10T05:17:09.000Z
; ; $Id: 0x22.asm,v 1.1.1.1 2016/03/27 08:40:13 raptor Exp $ ; ; 0x22 explanation - from xchg rax,rax by xorpd@xorpd.net ; Copyright (c) 2016 Marco Ivaldi <raptor@0xdeadbeef.info> ; ; This snippet illustrates a clever (if convoluted) way to perform an ; Euclidean (integer) division by 3 of the value stored in rax. It does ; so by exploiting the overflow of the unsigned multiplication performed ; on rax and the constant value 0xaaaaaaaaaaaaaaab (which in binary is ; 0b1010101010101010101010101010101010101010101010101010101010101011). ; ; This analysis was facilitated by the assembly REPL rappel ; by yrp604@yahoo.com: ; ; https://github.com/yrp604/rappel/ ; ; Example: ; $ ./rappel ; > mov rax,5 ; rax: 0x0000000000000005 rdx: 0x0000000000000000 ; > mov rdx,0xaaaaaaaaaaaaaaab ; rax: 0x0000000000000005 rdx: 0xaaaaaaaaaaaaaaab ; > mul rdx ; rax: 0x5555555555555557 rdx: 0x0000000000000003 ; > shr rdx,1 ; rax: 0x5555555555555557 rdx: 0x0000000000000001 ; > mov rax,rdx ; rax: 0x0000000000000001 rdx: 0x0000000000000001 <- 5 / 3 = 1 ; [...] ; > mov rax,766 ; rax: 0x00000000000002fe rdx: 0x0000000000000000 ; > mov rdx,0xaaaaaaaaaaaaaaab ; rax: 0x00000000000002fe rdx: 0xaaaaaaaaaaaaaaab ; > mul rdx ; rax: 0xaaaaaaaaaaaaabaa rdx: 0x00000000000001fe ; > shr rdx,1 ; rax: 0xaaaaaaaaaaaaabaa rdx: 0x00000000000000ff ; > mov rax,rdx ; rax: 0x00000000000000ff rdx: 0x00000000000000ff <- 766 / 3 = 255 ; BITS 64 SECTION .text global main main: mov rdx,0xaaaaaaaaaaaaaaab ; rdx = 0xaaaaaaaaaaaaaaab mul rdx ; rdx:rax = rax * rdx shr rdx,1 ; rdx = (int)rdx / 2 mov rax,rdx ; rax = rdx
30.264151
73
0.740025
23441181cc76ca2d663652aff27a8b1f52f48ef1
2,874
asm
Assembly
HyperLoader/src/Main.asm
smeg-of-lister/HyperLoader
b0a43e6c9842070ceb9bc6e56499f9a2492541a6
[ "MIT" ]
4
2021-08-11T02:40:24.000Z
2021-11-01T19:25:50.000Z
HyperLoader/src/Main.asm
smeg-of-lister/HyperLoader
b0a43e6c9842070ceb9bc6e56499f9a2492541a6
[ "MIT" ]
null
null
null
HyperLoader/src/Main.asm
smeg-of-lister/HyperLoader
b0a43e6c9842070ceb9bc6e56499f9a2492541a6
[ "MIT" ]
1
2021-08-12T19:22:24.000Z
2021-08-12T19:22:24.000Z
INCLUDE "Config.asm" SCREEN_ADDRESS EQU #C000 SCREEN_SIZE EQU #4000 SYNCHRONIZATION_BYTE EQU #AC ORG #4000 Main: di call PrepareScreen ld bc, #F610 ; cassette motor on out (c),c ld ix, SCREEN_ADDRESS call LoadBlock ld bc, #F600 ; cassette motor off out (c),c ;; Border color red ld bc, #7F10 ld a, #4C out (c),c out (c),a halt ColorTable: defb #54, #40, #4B, #4A, #43, #56, #4E, #57, #53, #44, #55, #4C, #5C, #4D, #45, #54 PrepareScreen: ld hl, SCREEN_ADDRESS ld bc, SCREEN_SIZE ld (hl), 0 ld e,l ld d,h inc de ldir ;; Mode 0 and disable upper/lower ROM ld bc, #7F00 ld a, %10001100 out (c), a ;; Black border ld bc, #7F10 ld a, #54 out (c),c out (c),a ;; Set ink colors ld bc, #7F00 ld hl, ColorTable ld d, 0 InkLoop: ld a, d out (c), a ld a, (hl) or %01000000 out (c), a inc hl inc d ld a, d cp #10 jr nz, InkLoop ret ;; Based on TurboLoader by Mert Boru http://mertboru.com/?p=962 LoadBlock: ld bc, #F500 ; I/O port PPI 8255 port B ld d, 0 ;------ Load pilot #1 (50 pulses) ------------------------ PP1: ld h, 50 PP1x: call GetPulse cp 70 jp c, PP1 dec h jp nz, PP1x ;------ Load pilot #2 (10 pulses) ------------------------ PP2: ld h, 10 PP2x: call GetPulse cp 70 jp nc, PP2 dec h jp nz, PP2x ;; Load 32 bytes * 8 = 256 pulses of zero length exx ld h,0 ld l,0 ld d,0 exx PWidth: call GetPulse exx ld e,a add hl,de ld a,h exx dec h jp nz, PWidth ;; Save measured time for future comparison ld (cTime+1), a ;; Load synchronization byte to make sure everything is OK call LoadOneByte cp SYNCHRONIZATION_BYTE ret nz ;; Main loop MainLoop: call LoadOneByte ld (ix), a inc ix jp MainLoop ret ;; OUT: A = loaded byte LoadOneByte: ld e,1 nByte: call GetPulse cTime: cp 0 ; = measured time! ccf rl e jp nc, nByte ld a, e ret IFDEF READ_CASSETTE ;; Read from cassette port, on bit 7 ;; IN: BC = I/O port PPI 8255 port B, ;; D = 0 ;; OUT: A = duration of the pulse GetPulse: ld c, d ;; Keep reading from cassette port until we get a low read waitWhileLow: in a, (c) jp m, waitWhileLow ;; And how count how many times we get a high bit waitWhileHigh: inc c in a, (c) jp p, waitWhileHigh ld a, c ret ENDIF IFDEF READ_BUSY ;; Read from busy signal port, on bit 6 ;; IN: BC = I/O port PPI 8255 port B, ;; D = 0 ;; OUT: A = duration of the pulse GetPulse: ld c, d ;; Keep reading from cassette port until we get a low read waitWhileLow: in a, (c) and %01000000 jp z, waitWhileLow ;; And how count how many times we get a high bit waitWhileHigh: inc c in a, (c) and %01000000 jp nz, waitWhileHigh ld a, c ret ENDIF
14.814433
85
0.586291
63e61fee907f34a9df2b12d864a6b151eae23e21
651
asm
Assembly
oeis/105/A105940.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/105/A105940.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/105/A105940.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A105940: a(n) = binomial(n+5, n)*binomial(n+8, 5). ; 56,756,5292,25872,99792,324324,924924,2378376,5621616,12388376,25729704,50791104,95938752,174350232,306211752,521694096,864913896,1399125420,2213431220,3431347920,5221616400,7811703900,11504509380,16698853080,23914406880,33821804016,47278755216,65373093632,89473773312,121290955632,162946435344,217055782944,286823713176,376154330916,489778055676,633397184784,813852223184,1039311285012,1319485058892,1665870025512,2092022822736,2613868870536,3250048595640,4022304834240,4955915240640,6080173790600 mov $1,4 mov $2,$0 add $2,8 sub $1,$2 bin $1,2 bin $2,$0 mul $1,$2 mov $0,$1 div $0,5 mul $0,28
46.5
500
0.821813
eab35b48069925d79833076a6eea89c65ff1e371
7,003
asm
Assembly
src/ayfxplay.asm
headkaze/zxnext_sfx
f253e014e7a7c4c9efcae2e8a31d3a27bcc04b33
[ "MIT" ]
null
null
null
src/ayfxplay.asm
headkaze/zxnext_sfx
f253e014e7a7c4c9efcae2e8a31d3a27bcc04b33
[ "MIT" ]
null
null
null
src/ayfxplay.asm
headkaze/zxnext_sfx
f253e014e7a7c4c9efcae2e8a31d3a27bcc04b33
[ "MIT" ]
null
null
null
;-Minimal ayFX player v0.15 06.05.06---------------------------; ; ; ; The simplest effects player. Plays effects on one AY, ; ; without music in the background. ; ; Priority of channel selection: if available ; ; if a free channel, selects one of them. ; ; if no channels, select the most long-sounding. ; ; Playback uses the registers AF, BC, DE, HL, IX. ; ; ; ; Initialization: ; ; ld hl, the address of the effects bank ; ; call AFXINIT ; ; ; ; Start the effect: ; ; ld a, the number of the effect (0..255) ; ; call AFXPLAY ; ; ; ; In the interrupt handler: ; ; call AFXFRAME ; ; ; ;--------------------------------------------------------------; SECTION code_user afxStart: afxChDesc: DS 3*4 ;--------------------------------------------------------------; ; Initializing the effects player ; ; Turns off all channels, sets variables. ; ; Input: HL = bank address with effects ; ; a = Ay chip to use ; ;--------------------------------------------------------------; PUBLIC AYFX_INIT AYFX_INIT: inc hl ld (afxBnkAdr+1),hl ;save the address of the table of offsets ld hl,afxChDesc ;mark all channels as empty ld de,$00ff ld bc,$03fd afxInit0: ld (hl),d inc hl ld (hl),d inc hl ld (hl),e inc hl ld (hl),e inc hl djnz afxInit0 ld hl,$ffbf ;initialize AY ld e,$15 afxInit1: dec e ld b,h out (c),e ld b,l out (c),d jr nz,afxInit1 ld (afxNseMix+1),de ;reset the player variables ret ;--------------------------------------------------------------; ; Playback of the current frame. ; ;--------------------------------------------------------------; PUBLIC AYFX_FRAME AYFX_FRAME: ld bc,$03fd ld ix,afxChDesc afxFrame0: push bc ld a,11 ld h,(ix+1) ;the comparison of the high-order byte of the address is <11 cp h jr nc,afxFrame7 ;the channel cannot play, we skip ld l,(ix+0) ld e,(hl) ;get the value of the information byte inc hl sub b ;select the volume register: ld d,b ;(11-3=8, 11-2=9, 11-1=10) ld b,$ff ;output the volume value out (c),a ld b,$bf ld a,e and $0f out (c),a bit 5,e jr z,afxFrame1 ;tone does not change ld a,3 ;select the tone registers sub d add a,a ld b,$ff ;output the tone values out (c),a ld b,$bf ld d,(hl) inc hl out (c),d ld b,$ff inc a out (c),a ld b,$bf ld d,(hl) inc hl out (c),d afxFrame1: bit 6,e jr z,afxFrame3 ;noise does not change ld a,(hl) ;read the noise value sub $20 jr c,afxFrame2 ;if less than $ 20, play on ld h,a ;ld b,$ff ld b,c ;in BC we record the longest time jr afxFrame6 afxFrame2: inc hl ld (afxNseMix+1),a ;keep the noise value afxFrame3: pop bc push bc ;restore the value of the cycle in B inc b ;number of shifts for flags TN ld a,%01101111 ;mask for flags TN afxFrame4: rrc e rrca ;shift flags and mask djnz afxFrame4 ld d,a ld bc,afxNseMix+2 ;store the values of the flags ld a,(bc) xor e and d xor e ;E is masked by D ld (bc),a afxFrame5: ;increase the time counter ld c,(ix+2) ld b,(ix+3) inc bc afxFrame6: ld (ix+2),c ld (ix+3),b ld (ix+0),l ld (ix+1),h ;save the changed address afxFrame7: ld bc,4 add ix,bc ;go to the next channel pop bc djnz afxFrame0 ld hl,$ffbf ;output the value of noise and mixer afxNseMix: ld de,0 ;+1(E)=noise, +2(D)=mixer ld a,6 ld b,h out (c),a ld b,l out (c),e inc a ld b,h out (c),a ld b,l out (c),d ret ;--------------------------------------------------------------; ; Launch the effect on a free channel. Without ; ; Without a free channel selects the longest sounding. ; ; Input: A = Effect number 0..255 ; ;--------------------------------------------------------------; PUBLIC AYFX_PLAY AYFX_PLAY: ld de,0 ;in DE the longest time in search ld h,e ld l,a add hl,hl afxBnkAdr: ld bc,0 ;address of the effect offset table add hl,bc ld c,(hl) inc hl ld b,(hl) add hl,bc ;the effect address is in hl push hl ;save the effect address on the stack ld hl,afxChDesc ;empty channel search ld b,3 afxPlay0: inc hl inc hl ld a,(hl) ;compare the channel time with the largest inc hl cp e jr c,afxPlay1 ld c,a ld a,(hl) cp d jr c,afxPlay1 ld e,c ld d,a ;remember the longest time push hl ;remember the channel address + 3 in IX pop ix afxPlay1: inc hl djnz afxPlay0 pop de ;take the effect address from the stack ld (ix-3),e ld (ix-2),d ;enter in the channel descriptor ld (ix-1),b ld (ix-0),b ;zero the playing time ret afxEnd:
29.179167
96
0.374697
caa67cefb625228b10ba53ed489e79edf2904adf
2,263
asm
Assembly
examples/a728d28/adder.asm
LBPHacker/tptasm
0251874ab47c67bbfcc7038780db0df43f112e5d
[ "MIT" ]
9
2019-06-21T17:33:05.000Z
2021-12-25T00:00:39.000Z
examples/a728d28/adder.asm
LBPHacker/tptasm
0251874ab47c67bbfcc7038780db0df43f112e5d
[ "MIT" ]
7
2019-07-23T19:26:44.000Z
2020-07-15T13:07:47.000Z
examples/a728d28/adder.asm
LBPHacker/tptasm
0251874ab47c67bbfcc7038780db0df43f112e5d
[ "MIT" ]
null
null
null
_Model "A728D28[0A]" ; * Specify target model. start: ldb ; * Get a number and st r0 | ldb ; store it in r0, then get another and st r1 ; store that in r1. ld r0 ; * Load one of the numbers, this is an entry condition ; of the loop below. loop: ; * Every time we get here, we have one of the numbers stl | ld r1 ; loaded. Store it into L, then load the other one. xor ; * Bitwise XOR the two numbers and store the result st r0 ; into r0, keeping the bits that, were present in one ; of the two numbers, not both. This effectively sums ; the non-overlapping portions of the two numbers, ; yielding a partial sum. ld r1 | setc ; * Load the other number from r1 again (the first one andrl ; is still in L), bitwise AND them and rotate the st r1 ; result to the left, then store it into r1. This ; yields the bits that were present in both numbers, ; but shifted up. This effectively sums the ; overlapping portions of the two numbers, yielding ; another partial sum. ; * The sum of these two partial sums is exactly the ; sum of the two initial numbers. At this point we ; once again have two numbers that we have to sum, ; except one of them may be 0. A proof of why this ; always happens eventually will be provided when ; I have more time. ld r0 | brc loop ; * Load one of the numbers so the loop can start over. ; * If the bitwise AND has yielded no set bits, the ; algorithm terminates as the two numbers had no ; overlapping parts, meaning the sum of their ; non-overlapping parts is exactly their sum. out | br start ; * Output sum and start over.
64.657143
80
0.50243
b8e05b01b714ed5e788a38806754c83ba2c9804a
440
asm
Assembly
libsrc/_DEVELOPMENT/arch/sms/SMSlib/z80/asm_SMSlib_nmi_isr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/sms/SMSlib/z80/asm_SMSlib_nmi_isr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/sms/SMSlib/z80/asm_SMSlib_nmi_isr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; ************************************************** ; SMSlib - C programming library for the SMS/GG ; ( part of devkitSMS - github.com/sverx/devkitSMS ) ; ************************************************** INCLUDE "SMSlib_private.inc" SECTION code_clib SECTION code_SMSlib PUBLIC asm_SMSlib_nmi_isr EXTERN __SMSlib_PauseRequested asm_SMSlib_nmi_isr: push hl ld hl,__SMSlib_PauseRequested ld (hl),1 pop hl retn
18.333333
52
0.568182
34429811511ca418da30d8c461a3038d4acc287a
10,517
asm
Assembly
fun/protect.asm
takama/junior
203d6403b4ea20aac69d63e97d4f4254c295c33e
[ "MIT" ]
null
null
null
fun/protect.asm
takama/junior
203d6403b4ea20aac69d63e97d4f4254c295c33e
[ "MIT" ]
null
null
null
fun/protect.asm
takama/junior
203d6403b4ea20aac69d63e97d4f4254c295c33e
[ "MIT" ]
null
null
null
_text segment byte public assume CS:_text, DS:_text ;============================================================================= ; CONSTANTS ;----------------------------------------------------------------------------- @zero equ 0 @video equ 10h @keyboard equ 16h @jump_far_code equ 0EAh ;jump far code ;----------------------------------------------------------------------------- org @zero ;============================================================================= ; PRIMARY PROCEDURE ;----------------------------------------------------------------------------- @load_position equ 7C00h ;loading position @vector_13 equ 004Ch ;interrupt vector 13h @memory_size equ 0413h ;free memory size @length_body equ 0100h ;length body in word ;----------------------------------------------------------------------------- protect proc far cli xor AX, AX mov SS, AX ;SS = 0 mov SP, @load_position ;SP = 7C00h mov SI, SP ;SI = 7C00h mov DS, AX ;DS = 0 cld ;----------------------------------------------------------------------------- ; allocate memory to upper address ;----------------------------------------------------------------------------- mov AX, word ptr DS:@memory_size dec AX mov word ptr DS:@memory_size, AX ;----------------------------------------------------------------------------- ; calculation segment ;----------------------------------------------------------------------------- mov CL, 6 shl AX, CL ;calculation byte to Kbyte push AX ;load in stack CS mov ES, AX ;----------------------------------------------------------------------------- ; set new interrupt 13h ;----------------------------------------------------------------------------- mov word ptr DS:@vector_13, offset int_13 mov word ptr DS:@vector_13+2, AX ;----------------------------------------------------------------------------- ; transmit body in allocate memory and jump ;----------------------------------------------------------------------------- mov AX, offset continuation push AX ;load in stack IP mov BX, SI ;BX = 7C00h xor DI, DI ;DI = 0 mov CX, @length_body rep movsw ;transmit CX words sti retf ;jump to allocated memory protect endp ;============================================================================= ; PRINT QUESTION AND PROCESSING DISK'S ;----------------------------------------------------------------------------- @read_sector equ 0201h ;read one sector @save_sector equ 0301h ;save one sector @hard_disk equ 80h ;hard disk - 1 @MBR equ 01h ;master boot record @set_page_3 equ 0503h ;set page 3 @set_page_0 equ 0500h ;set page 0 @page_3 equ 03h ;page 3 @question equ 0E3Fh ;question @starlet equ 0E2Ah ;starlet @length_psw equ 8 ;length password @enter_key equ 1C0Dh ;enter key ;----------------------------------------------------------------------------- continuation: push CS pop DS xor AX, AX ;AX = 0 push AX ;load in stack CS push BX ;load in stack IP push BX mov DL, @hard_disk ;both hard disks and floppy call bios_13 ;disks reset mov CX, @MBR ;cylinder - 0, sector - 1 xor DH, DH mov AX, @read_sector ;read one sector mov BX, AX dec BX ;BX = 0200h call bios_13 ;read MBR call compare_sectors ;compare MBR and body je coincide ;jump if coincide mov AX, @save_sector ;save one sector xor BX, BX ;BX = 0 call bios_13 ;save body coincide: mov AX, @set_page_3 int @video mov AX, @question mov BH, @page_3 int @video xor DX, DX mov CX, @length_psw repeat: xor AX, AX int @keyboard cmp AX, @enter_key je read_MBR xor DX, AX mov AX, @starlet mov BH, @page_3 int @video loop repeat read_MBR: xor AX, AX mov ES, AX pop BX xor _cyl_sec, DX xor _head_disk, DX mov CX, _cyl_sec mov DX, _head_disk mov AX, @read_sector ;read one sector call bios_13 ;read hide MBR jc new_load mov AX, @set_page_0 int @video retf new_load: db @jump_far_code dw 0FFF0h dw 0F000h ;============================================================================= ; INTERRUPT 13H ;----------------------------------------------------------------------------- int_13 proc far cmp DL, @hard_disk ;check hard disk jne end_13 ;jump if not hard disk cmp CH, @zero ;control cylinder 0 jnz end_13 ;if not zero - jump cmp DH, @zero ;control head 0 jnz end_13 ;if not zero - jump cmp CL, @MBR ;control sector MBR jne end_13 ;if not MBR - jump mov CX, CS:_cyl_sec mov DX, CS:_head_disk end_13: db @jump_far_code ;jump to procedure (vector 13h) _ROM_13 dd 0F000A1EBh ;address ROM BIOS 13h _cyl_sec dw 0FDA8h _head_disk dw 02DE9h int_13 endp ;============================================================================= ; CALL ROM BIOS INTERRUPT 13H ;----------------------------------------------------------------------------- bios_13 proc near pushf ;save flags call _ROM_13 ret ;return bios_13 endp ;============================================================================= ; COMPARE SECTORS (two words) ;----------------------------------------------------------------------------- compare_sectors proc near mov DI, offset _cyl_sec mov SI, offset _cyl_sec + 200h cmpsw ;compare word jne different ;if different - jump cmpsw ;compare word different: ret compare_sectors endp ;============================================================================= ; SYSTEM MESSAGE ;----------------------------------------------------------------------------- db 'Missing operating system', 0 db 'Error loading operating system', 0 db 'Invalid partition table', 0, 'BK' ;============================================================================= ; PARTITION TABLE ;----------------------------------------------------------------------------- @start_part equ 01BEh @boot equ 80h @start_side equ 1 @start_sector equ 1 @start_cylinder equ 0 @system_type equ 6 @end_side equ 4 @end_sector equ 17 @end_cylinder equ 3 @first_sector equ 17 @sector_number equ 340 ;----------------------------------------------------------------------------- org @start_part db @boot db @start_side db @start_sector db @start_cylinder db @system_type db @end_side db @end_sector db @end_cylinder dd @first_sector dd @sector_number ;============================================================================= ; END OF PROGRAMM ;----------------------------------------------------------------------------- @key_position equ 01FEh ;position word extended BIOS @key equ 0AA55h ;word check extended BIOS ;----------------------------------------------------------------------------- org @key_position dw @key ;----------------------------------------------------------------------------- _text ends end protect
48.689815
80
0.285918
960eebe9ce8214531351edd9798376483e32a919
894
asm
Assembly
programs/oeis/022/A022384.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/022/A022384.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/022/A022384.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A022384: Fibonacci sequence beginning 4, 18. ; 4,18,22,40,62,102,164,266,430,696,1126,1822,2948,4770,7718,12488,20206,32694,52900,85594,138494,224088,362582,586670,949252,1535922,2485174,4021096,6506270,10527366,17033636,27561002,44594638,72155640,116750278,188905918,305656196,494562114,800218310,1294780424,2094998734,3389779158,5484777892,8874557050,14359334942,23233891992,37593226934,60827118926,98420345860,159247464786,257667810646,416915275432,674583086078,1091498361510,1766081447588,2857579809098,4623661256686,7481241065784,12104902322470,19586143388254,31691045710724,51277189098978,82968234809702,134245423908680,217213658718382,351459082627062,568672741345444,920131823972506,1488804565317950,2408936389290456,3897740954608406,6306677343898862 add $0,1 mov $4,6 lpb $0,1 sub $0,1 mov $1,$5 mov $3,$2 mov $2,$5 add $4,4 add $4,$3 mov $5,$4 add $5,4 lpe add $1,4
52.588235
712
0.825503
07ce130d210502dd354fd4aba5983912da4117d2
456
asm
Assembly
programs/oeis/289/A289653.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/289/A289653.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/289/A289653.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A289653: Catalan numbers - 2 (A120304) with first four terms changed to 1,1,1,4. ; 1,1,1,4,12,40,130,427,1428,4860,16794,58784,208010,742898,2674438,9694843,35357668,129644788,477638698,1767263188,6564120418,24466267018,91482563638,343059613648,1289904147322,4861946401450,18367353072150,69533550916002,263747951750358 seq $0,289652 ; Catalan numbers - 2 (A120304) with first three terms changed to 1,1,1. sub $0,3 mov $2,$0 cmp $2,0 add $0,$2 add $0,3
45.6
237
0.778509
00f0737678da61afce2234d66dfebd055558b5c6
3,397
asm
Assembly
examples/EXITransferBuffer.asm
rapito/VSCode-PowerPC-Syntax
2548a3146ae6119415ccd065080608e4c381913a
[ "MIT" ]
13
2021-02-10T00:39:56.000Z
2022-02-21T06:15:45.000Z
examples/EXITransferBuffer.asm
rapito/VSCode-PowerPC-Syntax
2548a3146ae6119415ccd065080608e4c381913a
[ "MIT" ]
1
2021-02-10T00:47:07.000Z
2021-02-10T00:47:07.000Z
examples/EXITransferBuffer.asm
rapito/VSCode-PowerPC-Syntax
2548a3146ae6119415ccd065080608e4c381913a
[ "MIT" ]
2
2021-02-10T00:39:58.000Z
2021-07-25T18:42:35.000Z
################################################################################ # Address: FN_EXITransferBuffer # 0x800055f0 from Common.s ################################################################################ ################################################################################ # Function: ExiTransferBuffer # Inject @ 800055f0 # ------------------------------------------------------------------------------ # Description: Sets up EXI slot, writes / reads buffer via DMA, closes EXI slot # ------------------------------------------------------------------------------ # In: r3 = pointer to buffer # r4 = buffer length # r5 = read (0x0) or write (0x1) ################################################################################ .include "Common.s" # Register names .set REG_TransferBehavior, 31 .set REG_BufferPointer, 30 .set REG_BufferLength, 29 .set REG_InterruptIdx, 28 ExiTransferBuffer: # Store stack frame backup # Backup buffer pointer mr REG_BufferPointer,r3 # Backup buffer length mr REG_BufferLength,r4 # Backup EXI transfer behavior mr REG_TransferBehavior,r5 # Disable interrupts. I think perhaps we can have EXI transfer issues when # this process is interrupted? branchl r12, OSDisableInterrupts mr REG_InterruptIdx, r3 # Start flush loop to write the data in buf through to RAM. # Cache blocks are 32 bytes in length and the buffer obtained from malloc # should be guaranteed to be aligned at the start of a cache block. mr r3, REG_BufferPointer add r4,REG_BufferPointer,REG_BufferLength cmpwi REG_TransferBehavior,CONST_ExiRead # Check if writing or reading beq InitializeEXI FLUSH_WRITE_LOOP: dcbf 0, r3 addi r3, r3, 32 cmpw r3, r4 blt+ FLUSH_WRITE_LOOP sync isync InitializeEXI: # Step 1 - Prepare slot # Prepare to call EXIAttach (803464c0) li r3, STG_EXIIndex # slot li r4, 0 # maybe a callback? leave 0 branchl r12, EXIAttach # Prepare to call EXILock (80346d80) r3: 0 li r3, STG_EXIIndex # slot branchl r12, EXILock # Prepare to call EXISelect (80346688) r3: 0, r4: 0, r5: 4 li r3, STG_EXIIndex # slot li r4, 0 # device li r5, 5 # freq branchl r12, EXISelect # Step 2 - Write # Prepare to call EXIDma (80345e60) li r3, STG_EXIIndex # slot mr r4, REG_BufferPointer #buffer location mr r5, REG_BufferLength #length mr r6, REG_TransferBehavior # write mode input. 1 is write li r7, 0 # r7 is a callback address. Dunno what to use so just set to 0 branchl r12, EXIDma # Prepare to call EXISync (80345f4c) li r3, STG_EXIIndex # slot branchl r12, EXISync # Step 3 - Close slot # Prepare to call EXIDeselect (803467b4) li r3, STG_EXIIndex # Load input param for slot branchl r12, EXIDeselect # Prepare to call EXIUnlock (80346e74) li r3, STG_EXIIndex # Load input param for slot branchl r12, EXIUnlock # Prepare to call EXIDetach (803465cc) r3: 0 li r3, STG_EXIIndex # Load input param for slot branchl r12, EXIDetach FLUSH_READ_LOOP: cmpwi REG_TransferBehavior,CONST_ExiRead # Check if writing or reading bne Exit dcbi 0, r3 addi r3, r3, 32 cmpw r3, r4 blt+ FLUSH_READ_LOOP sync isync Exit: mr r3, REG_InterruptIdx branchl r12, OSRestoreInterrupts #restore registers and sp restore blr
30.603604
89
0.605534
fa4193ae78b2121de432badc31c192423ee18f58
979
asm
Assembly
engine/engine/video/declarations/framebuffer.asm
neomura/atmega328p-cartridge
e7152425e5253cd4e513cad41dc03d306003e91e
[ "MIT" ]
null
null
null
engine/engine/video/declarations/framebuffer.asm
neomura/atmega328p-cartridge
e7152425e5253cd4e513cad41dc03d306003e91e
[ "MIT" ]
2
2021-04-17T09:31:24.000Z
2021-04-17T09:31:53.000Z
engine/engine/video/declarations/framebuffer.asm
neomura/atmega328p-cartridge
e7152425e5253cd4e513cad41dc03d306003e91e
[ "MIT" ]
null
null
null
; Load the address of the framebuffer to write to into a register pair in 5-6 cycles. ; - A r* into which to load the low byte of a pointer to the buffer to write to. ; - A r* into which to load the high byte of a pointer to the buffer to write to. .macro load_framebuffer sbrc video_next_row, 0 rjmp load_framebuffer_even ; Odd. ldi @0, LOW(interrupt_framebuffer_a) ldi @1, HIGH(interrupt_framebuffer_a) rjmp load_framebuffer_end load_framebuffer_even: ldi @0, LOW(interrupt_framebuffer_b) ldi @1, HIGH(interrupt_framebuffer_b) load_framebuffer_end: .endm ; Load the address of the framebuffer to write to into X in 5-6 cycles. .macro load_framebuffer_x load_framebuffer r26, r27 .endm ; Load the address of the framebuffer to write to into Y in 5-6 cycles. .macro load_framebuffer_y load_framebuffer r28, r29 .endm ; Load the address of the framebuffer to write to into Z in 5-6 cycles. .macro load_framebuffer_z load_framebuffer r30, r31 .endm
28.794118
85
0.765066
ba3db6e0a726e5f5d09457cb828509f5ed56dca8
7,997
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1838.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_1838.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_1838.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 %r15 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0xc171, %rdi nop nop nop nop nop add $59777, %r9 vmovups (%rdi), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $0, %xmm7, %r15 nop nop nop cmp $20848, %rbx lea addresses_A_ht+0xc971, %rsi nop add %r10, %r10 movb (%rsi), %r15b nop inc %rdi lea addresses_D_ht+0x7b7d, %rsi lea addresses_normal_ht+0x699d, %rdi nop nop nop add %r15, %r15 mov $67, %rcx rep movsl nop nop nop nop nop lfence lea addresses_D_ht+0xa4f1, %rdi add %rbx, %rbx movw $0x6162, (%rdi) mfence lea addresses_WT_ht+0x9c8, %rsi lea addresses_WC_ht+0x17fb1, %rdi nop nop xor $8077, %r10 mov $62, %rcx rep movsl nop nop nop nop nop inc %rdi lea addresses_normal_ht+0x1d71, %r10 nop nop nop nop dec %r9 mov $0x6162636465666768, %rcx movq %rcx, %xmm5 vmovups %ymm5, (%r10) nop nop nop sub $56169, %r9 lea addresses_UC_ht+0x4259, %r15 nop nop dec %r10 movl $0x61626364, (%r15) nop nop nop nop nop add %r10, %r10 lea addresses_UC_ht+0x197c1, %r15 nop nop nop and %rbx, %rbx movb (%r15), %r9b nop nop nop nop and %rbx, %rbx lea addresses_normal_ht+0x158b1, %rsi nop mfence movb (%rsi), %r10b nop nop sub $47080, %r15 lea addresses_D_ht+0x13171, %rsi lea addresses_normal_ht+0x4bd, %rdi nop nop nop sub %rax, %rax mov $86, %rcx rep movsw nop nop nop add %r10, %r10 lea addresses_WC_ht+0x3971, %rsi lea addresses_A_ht+0x19641, %rdi clflush (%rsi) nop nop sub %r15, %r15 mov $73, %rcx rep movsl nop nop nop inc %r15 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r15 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r8 push %r9 push %rbp push %rcx // Store lea addresses_WC+0x133bc, %rbp nop nop nop nop sub %r8, %r8 movw $0x5152, (%rbp) nop sub $2941, %r11 // Store lea addresses_UC+0x2971, %r11 clflush (%r11) nop nop nop nop sub %r8, %r8 movw $0x5152, (%r11) nop nop and $15442, %r8 // Load lea addresses_UC+0xb001, %r9 nop nop nop nop nop and $62392, %r12 vmovups (%r9), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $1, %xmm5, %r10 cmp $21320, %rcx // Load lea addresses_WT+0x5971, %rbp nop nop nop and $56595, %r12 mov (%rbp), %r11 nop nop cmp $11758, %r8 // Store mov $0x552, %r11 clflush (%r11) nop nop nop nop nop sub %r9, %r9 mov $0x5152535455565758, %rcx movq %rcx, (%r11) nop nop sub $21384, %r8 // Faulty Load lea addresses_WT+0x5971, %r12 nop nop nop nop dec %r8 movb (%r12), %r9b lea oracles, %rbp and $0xff, %r9 shlq $12, %r9 mov (%rbp,%r9,1), %r9 pop %rcx pop %rbp pop %r9 pop %r8 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_WT', 'AVXalign': True, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 10}} {'src': {'type': 'addresses_UC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 8, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}} [Faulty Load] {'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'AVXalign': True, 'size': 1, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 6}} {'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 3}} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 4, '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 */
30.996124
2,999
0.653995
b0b8cb00c3a5c3db99269efd9d82229c5e848dc0
7,029
asm
Assembly
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca.log_21829_53.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca.log_21829_53.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca.log_21829_53.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 %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x102a6, %rsi lea addresses_D_ht+0x11386, %rdi nop nop nop nop add $56810, %r14 mov $53, %rcx rep movsb nop nop xor %r10, %r10 lea addresses_WC_ht+0xc7a6, %rsi lea addresses_UC_ht+0xc662, %rdi nop nop nop nop dec %rbx mov $97, %rcx rep movsw nop nop nop dec %rsi lea addresses_D_ht+0x61e6, %r14 clflush (%r14) xor $26852, %r13 movw $0x6162, (%r14) nop nop nop nop nop xor $26882, %r14 lea addresses_A_ht+0xaea6, %rsi lea addresses_WT_ht+0x18a6, %rdi clflush (%rsi) xor $49625, %r9 mov $118, %rcx rep movsl nop nop nop and %rbx, %rbx lea addresses_WT_ht+0x2ca6, %rsi lea addresses_D_ht+0x13ca6, %rdi nop nop nop add %r10, %r10 mov $26, %rcx rep movsb nop dec %r10 lea addresses_WC_ht+0x738e, %rcx nop nop nop nop cmp %r14, %r14 movl $0x61626364, (%rcx) and %r14, %r14 lea addresses_D_ht+0x3386, %rcx nop sub %r14, %r14 movl $0x61626364, (%rcx) nop nop nop nop nop and %rdi, %rdi lea addresses_UC_ht+0x31a6, %rcx nop dec %rdi mov (%rcx), %rbx nop nop and $42611, %rbx lea addresses_normal_ht+0x149d6, %rcx clflush (%rcx) cmp %r9, %r9 movl $0x61626364, (%rcx) nop nop nop and %r13, %r13 lea addresses_WC_ht+0x5f96, %rsi lea addresses_UC_ht+0x1266, %rdi nop cmp $12007, %r9 mov $2, %rcx rep movsb nop nop and %rbx, %rbx lea addresses_WC_ht+0x31e6, %rsi nop nop nop xor %rdi, %rdi mov $0x6162636465666768, %rcx movq %rcx, %xmm1 vmovups %ymm1, (%rsi) nop nop nop cmp $54018, %rcx lea addresses_WT_ht+0x104a6, %rbx nop nop nop nop nop sub $12301, %rdi mov $0x6162636465666768, %r9 movq %r9, %xmm7 movups %xmm7, (%rbx) nop nop inc %r13 pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r14 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r14 push %r15 push %rax push %rbp push %rcx push %rdi push %rsi // Faulty Load lea addresses_US+0x8ca6, %r14 nop nop nop dec %rcx movb (%r14), %al lea oracles, %rdi and $0xff, %rax shlq $12, %rax mov (%rdi,%rax,1), %rax pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r15 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_US', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 7}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 5}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 7}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 1}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 5}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 10}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 10}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 4}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 6}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_WT_ht', 'same': True, 'AVXalign': False, 'congruent': 11}} {'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 */
36.046154
2,999
0.659553
e170fff2c7c2c7c2091ce138ebd2c2c9567114a0
370
asm
Assembly
oeis/032/A032114.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/032/A032114.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/032/A032114.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A032114: "BIJ" (reversible, indistinct, labeled) transform of 1,2,3,4,... ; Submitted by Jon Maiga ; 1,3,12,76,655,6906,85204,1201824,19071693,336276370,6522231826,138001776936,3163262495419,78085513281426,2065232400748560,58263438835891456,1746434237976248665,55428349087686179682 mov $2,$0 add $0,1 seq $0,6153 ; E.g.f.: 1/(1-x*exp(x)). add $0,$2 div $0,2 add $0,1
33.636364
182
0.748649
5ce2aa47ecbebe30471e43a91e467f7d630c7255
850
asm
Assembly
projects/04/mult/Mult.asm
aniruddhadave/nand2tetris
af42028f985dd779074a6ffda315cc33cc7db058
[ "MIT" ]
3
2018-09-25T08:48:28.000Z
2021-11-15T17:54:24.000Z
projects/04/mult/Mult.asm
aniruddhadave/nand2tetris
af42028f985dd779074a6ffda315cc33cc7db058
[ "MIT" ]
null
null
null
projects/04/mult/Mult.asm
aniruddhadave/nand2tetris
af42028f985dd779074a6ffda315cc33cc7db058
[ "MIT" ]
null
null
null
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/04/Mult.asm // Multiplies R0 and R1 and stores the result in R2. // (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.) // Put your code here. // 1. Initialize the result as 0 @R2 M=0 // R2= 0 // 2. Initialize the iterator @i M=0 // i= 0 // 3. If R0 is 0 terminate the program @R0 D=M @END D;JEQ (LOOP) // 4. Check whether R1 was added R0 times @i D=M // D= i @R0 D= D-M // D= i - R0 @END D;JGE // If i - R0 == 0 goto END // 5. Add R1 to R2 @R1 D=M // D= R1 @R2 M=D+M // R2= R1 + R2 @i M=M+1 @LOOP 0;JMP (END) @END 0;JMP
18.085106
67
0.505882
d867b72bc3914078fc55716f6ebc9ac2a94f9f14
496
asm
Assembly
oeis/082/A082513.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/082/A082513.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/082/A082513.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A082513: a(n)=A000720(n)-A000005(n). ; Submitted by Christian Krause ; -1,-1,0,-1,1,-1,2,0,1,0,3,-1,4,2,2,1,5,1,6,2,4,4,7,1,6,5,5,3,8,2,9,5,7,7,7,2,10,8,8,4,11,5,12,8,8,10,13,5,12,9,11,9,14,8,12,8,12,12,15,5,16,14,12,11,14,10,17,13,15,11,18,8,19,17,15,15,17,13,20,12,17,18,21,11,19,19,19,15,22,12,20,18,20,20,20,12,23,19,19,16 mov $2,$0 add $0,1 seq $0,230980 ; Number of primes <= n, starting at n=0. seq $2,5 ; d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n. sub $0,$2
49.6
257
0.618952
3e5ec1f1342855403d3423e243157edffbac0023
4,182
asm
Assembly
asm/1-dword.asm
Azmalent/itmo3
19d91a3477efbbb6b8a36c46fbc5f4adb3469811
[ "WTFPL" ]
null
null
null
asm/1-dword.asm
Azmalent/itmo3
19d91a3477efbbb6b8a36c46fbc5f4adb3469811
[ "WTFPL" ]
null
null
null
asm/1-dword.asm
Azmalent/itmo3
19d91a3477efbbb6b8a36c46fbc5f4adb3469811
[ "WTFPL" ]
null
null
null
; ================================== ТЕХНИЧЕСКОЕ ЗАДАНИЕ ================================== ; вариант 112 ; ; в исходном массиве переставить элементы так, чтобы они располагались в следующем порядке: ; все отрицательные элементы в порядке возрастания, затем все остальные; ; Элемент исходного массива помещается в массив результата если его значение: ; больше среднего арифметического наименьшего и второго элемента исходного массива. ; Базовый массив - индексная адресация ; Результат - базовая адресация ; ========================================================================================== .model small stack segment para stack 'stack' db 100h DUP(?) stack ends data segment para public 'data' array dd 2, 8, -9, -14, 0, 11, -6, -2, 4, 7 result dd 10 DUP(0) lastNegativeIndex db -1 ITEM_COUNT EQU 10 ; кол-во элементов в массиве ITEM_SIZE EQU 4 ; размер элемента массива в байтах data ends code segment para public 'code' assume ds:data, ss:stack, cs:code .486 main: mov ax, data mov ds, ax mov eax, array[ITEM_SIZE] ; сохраняем второй элемент исходного массива в АХ ; перемещаем все неотрицательные эл-ты направо ; идём СПРАВА НАЛЕВО, т.к. при этом элементы >= 0 не перемешиваются ; BX = индекс i-го элемента ; DX = его значение ; SI = индекс последнего отрицательного элемента mov cx, ITEM_COUNT mov bx, cx dec bx imul bx, ITEM_SIZE FIRST_LOOP: mov edx, array[bx] ; если элемент отрицательный, а индекс последнего отрицательного не установлен cmp edx, 0 jge else_1 ; DX >= 0 cmp lastNegativeIndex, -1 jne else_1 ; lastNegativeIndex != -1 mov lastNegativeIndex, cl ; lastNegativeIndex = cx - 1 dec lastNegativeIndex jmp endif_1 ; элемент неотрицательный и до него уже были отрицательные ; меняем местами и возвращаемся назад else_1: cmp edx, 0 jl endif_1 ; DX < 0 cmp lastNegativeIndex, -1 jz endif_1 ; lastNegativeIndex == -1 movzx si, lastNegativeIndex ; SI = индекс элемента lastNegativeIndex imul si, ITEM_SIZE xchg edx, array[si] ; dx = array[lastNegativeIndex], array[lastNegativeIndex] = array[i] mov array[bx], edx ; array[i] = dx ; возвращаемся на array[lastNegativeIndex] mov cl, lastNegativeIndex mov bx, cx imul bx, ITEM_SIZE inc cx mov lastNegativeIndex, -1 ; сброс endif_1: sub bx, ITEM_SIZE loop FIRST_LOOP ; теперь сортируем отрицательные элементы ; BX = адрес i-го элемента ; SI = адрес j-го элемента ; DX = минимальный элемент для сортировки ; DI = его адрес mov cl, lastNegativeIndex inc cx xor bx, bx SECOND_LOOP: mov edx, array[bx] ; min = array[i] mov di, bx ; minIndex = i ; for (int j = i; j <= lastNegativeIndex; j++) push cx ; сохраняем счётчик в стеке mov si, bx ; SI = j = i INNER_LOOP: cmp array[si], edx jge inner_min_check ; mov edx, array[si] ; DX = array[j] mov di, si ; DI = j inner_min_check: add si, ITEM_SIZE loop INNER_LOOP pop cx xchg edx, array[bx] ; dx = array[i], array[i] = array[minIndex] mov array[di], edx ; array[minIndex] = dx add bx, ITEM_SIZE loop SECOND_LOOP ; вычисляем среднее второго и минимального элементов базового массива ; т.к. после сортировки в начале оказались отрицательные элементы в порядке возрастания, первый и будет минимальным add eax, [array] xor edx, edx mov edi, 2 idiv edi ; получаем массив результата ; АL = минимальное значение для помещения в результат ; BX = базовый адрес i-го элемента базового массива ; DI = базовый адрес j-го элемента массива результата ; DX = промежуточное хранение данных mov cx, ITEM_COUNT lea ebx, array lea edi, result RESULT_LOOP: cmp [ebx], ax ; array[i] > AX jle result_check mov edx, [bx] ; result[k] = array[i] mov [di], edx add di, ITEM_SIZE ; k++ result_check: add bx, ITEM_SIZE loop RESULT_LOOP ; конец программы xor bx, bx xor dx, dx xor di, di xor si, si mov ax, 4c00h ; функция выхода с кодом 0 int 21h code ends end main
24.745562
116
0.647298
5d58364f7b4751edb51b0b988af01b9bcfa9e0bd
21,602
asm
Assembly
VirtualBox-5.0.0/src/VBox/Devices/Graphics/BIOS/vberom.asm
egraba/vbox_openbsd
6cb82f2eed1fa697d088cecc91722b55b19713c2
[ "MIT" ]
1
2015-04-30T14:18:45.000Z
2015-04-30T14:18:45.000Z
VirtualBox-5.0.0/src/VBox/Devices/Graphics/BIOS/vberom.asm
egraba/vbox_openbsd
6cb82f2eed1fa697d088cecc91722b55b19713c2
[ "MIT" ]
null
null
null
VirtualBox-5.0.0/src/VBox/Devices/Graphics/BIOS/vberom.asm
egraba/vbox_openbsd
6cb82f2eed1fa697d088cecc91722b55b19713c2
[ "MIT" ]
null
null
null
;; ============================================================================================ ;; ;; Copyright (C) 2002 Jeroen Janssen ;; ;; This library is free software; you can redistribute it and/or ;; modify it under the terms of the GNU Lesser General Public ;; License as published by the Free Software Foundation; either ;; version 2 of the License, or (at your option) any later version. ;; ;; This library is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; Lesser General Public License for more details. ;; ;; You should have received a copy of the GNU Lesser General Public ;; License along with this library; if not, write to the Free Software ;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ;; ;; ============================================================================================ ;; ;; This VBE is part of the VGA Bios specific to the plex86/bochs Emulated VGA card. ;; You can NOT drive any physical vga card with it. ;; ;; ============================================================================================ ;; ;; This VBE Bios is based on information taken from : ;; - VESA BIOS EXTENSION (VBE) Core Functions Standard Version 3.0 located at www.vesa.org ;; ;; ============================================================================================ ; Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice ; other than GPL or LGPL is available it will apply instead, Oracle elects to use only ; the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where ; a choice of LGPL license versions is made available with the language indicating ; that LGPLv2 or any later version may be used, or where a choice of which version ; of the LGPL is applied is otherwise unspecified. include vgadefs.inc public _vga_compat_setup public dispi_set_enable_ public dispi_set_bank_ public _dispi_set_bank_farcall public _dispi_get_max_bpp public _vbe_has_vbe_display public vbe_biosfn_return_current_mode public vbe_biosfn_display_window_control public vbe_biosfn_set_get_logical_scan_line_length public vbe_biosfn_set_get_display_start public vbe_biosfn_set_get_dac_palette_format public vbe_biosfn_set_get_palette_data public vbe_biosfn_return_protected_mode_interface VGAROM segment public 'CODE' .386 VBE_BYTEWISE_IO EQU 1 ;; Bytewise in/out ifdef VBE_BYTEWISE_IO public do_out_dx_ax public do_in_ax_dx do_out_dx_ax: xchg ah, al out dx, al xchg ah, al out dx, al ret do_in_ax_dx: in al, dx xchg ah, al in al, dx ret out_dx_ax EQU call do_out_dx_ax in_ax_dx EQU call do_in_ax_dx else out_dx_ax EQU out dx, ax in_ax_dx EQU in ax, dx endif ;; Vertical retrace waiting wait_vsync: push ax push dx mov dx, 03DAh ; @todo use a symbolic constant! wv_loop: in al, dx test al, 8 jz wv_loop pop dx pop ax ret wait_not_vsync: push ax push dx mov dx, 03DAh ; @todo use a symbolic constant! wnv_loop: in al, dx test al, 8 jnz wnv_loop pop dx pop ax ret ; AL = bits per pixel / AH = bytes per pixel dispi_get_bpp: push dx mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_BPP out_dx_ax mov dx, VBE_DISPI_IOPORT_DATA in_ax_dx cmp al, 4 jbe get_bpp_noinc mov ah, al shr ah, 3 test al, 07 jz get_bpp_noinc inc ah get_bpp_noinc: pop dx ret ; get display capabilities _dispi_get_max_bpp: push dx push bx call dispi_get_enable mov bx, ax or ax, VBE_DISPI_GETCAPS call dispi_set_enable_ mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_BPP out_dx_ax mov dx, VBE_DISPI_IOPORT_DATA in_ax_dx push ax mov ax, bx call dispi_set_enable_ pop ax pop bx pop dx ret dispi_set_enable_: push dx push ax mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_ENABLE out_dx_ax pop ax mov dx, VBE_DISPI_IOPORT_DATA out_dx_ax pop dx ret dispi_get_enable: push dx mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_ENABLE out_dx_ax mov dx, VBE_DISPI_IOPORT_DATA in_ax_dx pop dx ret dispi_set_bank_: push dx push ax mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_BANK out_dx_ax pop ax mov dx, VBE_DISPI_IOPORT_DATA out_dx_ax pop dx ret dispi_get_bank: push dx mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_BANK out_dx_ax mov dx, VBE_DISPI_IOPORT_DATA in_ax_dx pop dx ret _dispi_set_bank_farcall: cmp bx, 0100h je dispi_set_bank_farcall_get or bx,bx jnz dispi_set_bank_farcall_error mov ax, dx push dx push ax mov ax, VBE_DISPI_INDEX_BANK mov dx, VBE_DISPI_IOPORT_INDEX out_dx_ax pop ax mov dx, VBE_DISPI_IOPORT_DATA out_dx_ax in_ax_dx pop dx cmp dx,ax jne dispi_set_bank_farcall_error mov ax, 004Fh retf dispi_set_bank_farcall_get: mov ax, VBE_DISPI_INDEX_BANK mov dx, VBE_DISPI_IOPORT_INDEX out_dx_ax mov dx, VBE_DISPI_IOPORT_DATA in_ax_dx mov dx,ax retf dispi_set_bank_farcall_error: mov ax, 014Fh retf dispi_set_x_offset: push dx push ax mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_X_OFFSET out_dx_ax pop ax mov dx, VBE_DISPI_IOPORT_DATA out_dx_ax pop dx ret dispi_get_x_offset: push dx mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_X_OFFSET out_dx_ax mov dx, VBE_DISPI_IOPORT_DATA in_ax_dx pop dx ret dispi_set_y_offset: push dx push ax mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_Y_OFFSET out_dx_ax pop ax mov dx, VBE_DISPI_IOPORT_DATA out_dx_ax pop dx ret dispi_get_y_offset: push dx mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_Y_OFFSET out_dx_ax mov dx, VBE_DISPI_IOPORT_DATA in_ax_dx pop dx ret vga_set_virt_width: push ax push bx push dx mov bx, ax call dispi_get_bpp cmp al, 4 ja set_width_svga shr bx, 1 set_width_svga: shr bx, 3 mov dx, VGAREG_VGA_CRTC_ADDRESS mov ah, bl mov al, 13h out dx, ax pop dx pop bx pop ax ret dispi_set_virt_width: call vga_set_virt_width push dx push ax mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_VIRT_WIDTH out_dx_ax pop ax mov dx, VBE_DISPI_IOPORT_DATA out_dx_ax pop dx ret dispi_get_virt_width: push dx mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_VIRT_WIDTH out_dx_ax mov dx, VBE_DISPI_IOPORT_DATA in_ax_dx pop dx ret dispi_get_virt_height: push dx mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_VIRT_HEIGHT out_dx_ax mov dx, VBE_DISPI_IOPORT_DATA in_ax_dx pop dx ret _vga_compat_setup: push ax push dx ; set CRT X resolution mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_XRES out_dx_ax mov dx, VBE_DISPI_IOPORT_DATA in_ax_dx push ax mov dx, VGAREG_VGA_CRTC_ADDRESS mov ax, 0011h out dx, ax pop ax push ax shr ax, 3 dec ax mov ah, al mov al, 01 out dx, ax pop ax call vga_set_virt_width ; set CRT Y resolution mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_YRES out_dx_ax mov dx, VBE_DISPI_IOPORT_DATA in_ax_dx dec ax push ax mov dx, VGAREG_VGA_CRTC_ADDRESS mov ah, al mov al, 12h out dx, ax pop ax mov al, 07 out dx, al inc dx in al, dx and al, 0BDh test ah, 01 jz bit8_clear or al, 02 bit8_clear: test ah, 02 jz bit9_clear or al, 40h bit9_clear: out dx, al ; other settings mov dx, VGAREG_VGA_CRTC_ADDRESS mov ax, 0009 out dx, al mov dx, VGAREG_VGA_CRTC_DATA in al, dx and al, 60h ; clear double scan bit and cell height out dx, al mov dx, VGAREG_VGA_CRTC_ADDRESS mov al, 17h out dx, al mov dx, VGAREG_VGA_CRTC_DATA in al, dx or al, 03 out dx, al mov dx, VGAREG_ACTL_RESET in al, dx mov dx, VGAREG_ACTL_ADDRESS mov al, 10h out dx, al mov dx, VGAREG_ACTL_READ_DATA in al, dx or al, 01 mov dx, VGAREG_ACTL_ADDRESS out dx, al mov al, 20h out dx, al mov dx, VGAREG_GRDC_ADDRESS mov ax, 0506h out dx, ax mov dx, VGAREG_SEQU_ADDRESS mov ax, 0F02h out dx, ax ; settings for >= 8bpp mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_BPP out_dx_ax mov dx, VBE_DISPI_IOPORT_DATA in_ax_dx cmp al, 08 jb vga_compat_end mov dx, VGAREG_VGA_CRTC_ADDRESS mov al, 14h out dx, al mov dx, VGAREG_VGA_CRTC_DATA in al, dx or al, 40h out dx, al mov dx, VGAREG_ACTL_RESET in al, dx mov dx, VGAREG_ACTL_ADDRESS mov al, 10h out dx, al mov dx, VGAREG_ACTL_READ_DATA in al, dx or al, 40h mov dx, VGAREG_ACTL_ADDRESS out dx, al mov al, 20h out dx, al mov dx, VGAREG_SEQU_ADDRESS mov al, 04 out dx, al mov dx, VGAREG_SEQU_DATA in al, dx or al, 08 out dx, al mov dx, VGAREG_GRDC_ADDRESS mov al, 05 out dx, al mov dx, VGAREG_GRDC_DATA in al, dx and al, 9Fh or al, 40h out dx, al vga_compat_end: pop dx pop ax ; Has VBE display - Returns true if VBE display detected _vbe_has_vbe_display: push ds push bx mov ax, BIOSMEM_SEG mov ds, ax mov bx, BIOSMEM_VBE_FLAG mov al, [bx] and al, 01 xor ah, ah pop bx pop ds ret ; Function 03h - Return Current VBE Mode ; ; Input: ; AX = 4F03h ; Output: ; AX = VBE Return Status ; BX = Current VBE Mode ; ; vbe_biosfn_return_current_mode: push ds mov ax, BIOSMEM_SEG mov ds, ax call dispi_get_enable and ax, VBE_DISPI_ENABLED jz no_vbe_mode mov bx, BIOSMEM_VBE_MODE mov ax, [bx] mov bx, ax jnz vbe_03_ok no_vbe_mode: mov bx, BIOSMEM_CURRENT_MODE mov al, [bx] mov bl, al xor bh, bh vbe_03_ok: mov ax, 004Fh pop ds ret ; Function 05h - Display Window Control ; ; Input: ; AX = 4F05h ; (16-bit) BH = 00h Set memory window ; = 01h Get memory window ; BL = Window number ; = 00h Window A ; = 01h Window B ; DX = Window number in video memory in window ; granularity units (Set Memory Window only) ; Note: ; If this function is called while in a linear frame buffer mode, ; this function must fail with completion code AH=03h ; ; Output: ; AX = VBE Return Status ; DX = Window number in window granularity units ; (Get Memory Window only) vbe_biosfn_display_window_control: cmp bl, 0 jne vbe_05_failed cmp bh, 1 je get_display_window jb set_display_window mov ax, 0100h ret set_display_window: mov ax, dx call dispi_set_bank_ call dispi_get_bank cmp ax, dx jne vbe_05_failed mov ax, 004Fh ret get_display_window: call dispi_get_bank mov dx, ax mov ax, 004Fh ret vbe_05_failed: mov ax, 014Fh ret ; Function 06h - Set/Get Logical Scan Line Length ; ; Input: ; AX = 4F06h ; BL = 00h Set Scan Line Length in Pixels ; = 01h Get Scan Line Length ; = 02h Set Scan Line Length in Bytes ; = 03h Get Maximum Scan Line Length ; CX = If BL=00h Desired Width in Pixels ; If BL=02h Desired Width in Bytes ; (Ignored for Get Functions) ; ; Output: ; AX = VBE Return Status ; BX = Bytes Per Scan Line ; CX = Actual Pixels Per Scan Line ; (truncated to nearest complete pixel) ; DX = Maximum Number of Scan Lines ; vbe_biosfn_set_get_logical_scan_line_length: mov ax, cx cmp bl, 1 je get_logical_scan_line_length cmp bl, 2 je set_logical_scan_line_bytes jb set_logical_scan_line_pixels mov ax, 0100h ret set_logical_scan_line_bytes: push ax call dispi_get_bpp xor bh, bh mov bl, ah or bl, bl jnz no_4bpp_1 shl ax, 3 mov bl, 1 no_4bpp_1: xor dx, dx pop ax div bx set_logical_scan_line_pixels: call dispi_set_virt_width get_logical_scan_line_length: call dispi_get_bpp xor bh, bh mov bl, ah call dispi_get_virt_width mov cx, ax or bl, bl jnz no_4bpp_2 shr ax, 3 mov bl, 1 no_4bpp_2: mul bx mov bx, ax call dispi_get_virt_height mov dx, ax mov ax, 004Fh ret ; Function 07h - Set/Get Display Start ; ; Input(16-bit): ; AX = 4F07h ; BH = 00h Reserved and must be 00h ; BL = 00h Set Display Start ; = 01h Get Display Start ; = 02h Schedule Display Start (Alternate) ; = 03h Schedule Stereoscopic Display Start ; = 04h Get Scheduled Display Start Status ; = 05h Enable Stereoscopic Mode ; = 06h Disable Stereoscopic Mode ; = 80h Set Display Start during Vertical Retrace ; = 82h Set Display Start during Vertical Retrace (Alternate) ; = 83h Set Stereoscopic Display Start during Vertical Retrace ; ECX = If BL=02h/82h Display Start Address in bytes ; If BL=03h/83h Left Image Start Address in bytes ; EDX = If BL=03h/83h Right Image Start Address in bytes ; CX = If BL=00h/80h First Displayed Pixel In Scan Line ; DX = If BL=00h/80h First Displayed Scan Line ; ; Output: ; AX = VBE Return Status ; BH = If BL=01h Reserved and will be 0 ; CX = If BL=01h First Displayed Pixel In Scan Line ; If BL=04h 0 if flip has not occurred, not 0 if it has ; DX = If BL=01h First Displayed Scan Line ; ; Input(32-bit): ; BH = 00h Reserved and must be 00h ; BL = 00h Set Display Start ; = 80h Set Display Start during Vertical Retrace ; CX = Bits 0-15 of display start address ; DX = Bits 16-31 of display start address ; ES = Selector for memory mapped registers ; vbe_biosfn_set_get_display_start: cmp bl, 80h je set_display_start_wait cmp bl, 1 je get_display_start jb set_display_start mov ax, 0100h ret set_display_start_wait: call wait_not_vsync call wait_vsync set_display_start: mov ax, cx call dispi_set_x_offset mov ax, dx call dispi_set_y_offset mov ax, 004Fh ret get_display_start: call dispi_get_x_offset mov cx, ax call dispi_get_y_offset mov dx, ax xor bh, bh mov ax, 004Fh ret ; Function 08h - Set/Get Dac Palette Format ; ; Input: ; AX = 4F08h ; BL = 00h set DAC palette width ; = 01h get DAC palette width ; BH = If BL=00h: desired number of bits per primary color ; Output: ; AX = VBE Return Status ; BH = current number of bits per primary color (06h = standard VGA) ; vbe_biosfn_set_get_dac_palette_format: cmp bl, 1 je get_dac_palette_format jb set_dac_palette_format mov ax, 0100h ret set_dac_palette_format: call dispi_get_enable cmp bh, 6 je set_normal_dac cmp bh, 8 jne vbe_08_unsupported or ax, VBE_DISPI_8BIT_DAC jnz set_dac_mode set_normal_dac: and ax, NOT VBE_DISPI_8BIT_DAC set_dac_mode: call dispi_set_enable_ get_dac_palette_format: mov bh, 6 call dispi_get_enable and ax, VBE_DISPI_8BIT_DAC jz vbe_08_ok mov bh, 8 vbe_08_ok: mov ax, 004Fh ret vbe_08_unsupported: mov ax, 014Fh ret ; Function 09h - Set/Get Palette Data ; ; Input: ; AX = 4F09h ; (16-bit) BL = 00h Set palette data ; = 01h Get palette data ; = 02h Set secondary palette data ; = 03h Get secondary palette data ; = 80h Set palette data during VRetrace ; CX = Number of entries to update (<= 256) ; DX = First entry to update ; ES:DI = Table of palette values ; Output: ; AX = VBE Return Status ; ; Notes: ; Secondary palette support is a "future extension". ; Attempts to set/get it should return status 02h. ; ; In VBE 3.0, reading palette data is optional and ; subfunctions 01h and 03h may return failure. ; ; The format of palette entries is as follows: ; ; PaletteEntry struc ; Blue db ? ; Blue channel value (6 or 8 bits) ; Green db ? ; Green channel value (6 or 8 bits) ; Red db ? ; Red channel value (6 or 8 bits) ; Padding db ? ; DWORD alignment byte (unused) ; PaletteEntry ends ; ; Most applications use VGA DAC registers directly to ; set/get palette in VBE modes. However, subfn 4F09h is ; required for NonVGA controllers (eg. XGA). ; vbe_biosfn_set_get_palette_data: test bl, bl jz set_palette_data cmp bl, 01 je get_palette_data cmp bl, 03 jbe vbe_09_nohw cmp bl, 80h jne vbe_09_unsupported if 0 ; this is where we could wait for vertical retrace endif set_palette_data: pushad push ds push es pop ds mov al, dl mov dx, VGAREG_DAC_WRITE_ADDRESS out dx, al inc dx mov si, di set_pal_loop: lodsd ror eax, 16 out dx, al rol eax, 8 out dx, al rol eax, 8 out dx, al loop set_pal_loop pop ds popad vbe_09_ok: mov ax, 004Fh ret get_palette_data: pushad mov al, dl mov dx, VGAREG_DAC_READ_ADDRESS out dx, al add dl, 2 get_pal_loop: xor eax, eax in al, dx shl eax, 8 in al, dx shl eax, 8 in al, dx stosd loop get_pal_loop popad jmp vbe_09_ok vbe_09_unsupported: mov ax, 014Fh ret vbe_09_nohw: mov ax, 024Fh ret ; Function 0Ah - Return VBE Protected Mode Interface ; ; Input: AX = 4F0Ah VBE 2.0 Protected Mode Interface ; BL = 00h Return protected mode table ; Output: AX = Status ; ES = Real Mode Segment of Table ; DI = Offset of Table ; CX = Length of Table including protected mode code ; (for copying purposes) ; vbe_biosfn_return_protected_mode_interface: test bl, bl jnz _fail mov di, 0C000h mov es, di mov di, offset vesa_pm_start mov cx, vesa_pm_end - vesa_pm_start mov ax, 004Fh ret _fail: mov ax, 014fh ret VGAROM ends ;; ;; 32-bit VBE interface ;; .386 public vesa_pm_start public vesa_pm_end VBE32 segment public use32 'CODE' align 2 vesa_pm_start: dw vesa_pm_set_window - vesa_pm_start dw vesa_pm_set_display_start - vesa_pm_start dw vesa_pm_unimplemented - vesa_pm_start dw vesa_pm_io_ports_table - vesa_pm_start vesa_pm_io_ports_table: dw VBE_DISPI_IOPORT_INDEX dw VBE_DISPI_IOPORT_INDEX + 1 dw VBE_DISPI_IOPORT_DATA dw VBE_DISPI_IOPORT_DATA + 1 dw 3B6h dw 3B7h dw 0FFFFh dw 0FFFFh vesa_pm_set_window: cmp bx, 0 je vesa_pm_set_display_window1 mov ax, 0100h ret vesa_pm_set_display_window1: mov ax, dx push dx push ax mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_BANK out dx, ax pop ax mov dx, VBE_DISPI_IOPORT_DATA out dx, ax in ax, dx pop dx cmp dx, ax jne illegal_window mov ax, 004Fh ret illegal_window: mov ax, 014Fh ret vesa_pm_set_display_start: cmp bl, 80h je vesa_pm_set_display_start1_wait cmp bl, 00 je vesa_pm_set_display_start1 mov ax, 0100h ret vesa_pm_set_display_start1_wait: push edx mov dx, 03DAh ; @todo: use symbolic constant wnv_loop_32: in al, dx test al, 8 jnz wnv_loop_32 wv_loop_32: in al, dx test al, 8 jz wv_loop_32 pop edx vesa_pm_set_display_start1: ; convert offset to (X, Y) coordinate ; (would be simpler to change Bochs VBE API...) push eax push ecx push edx push esi push edi shl edx, 16 and ecx, 0FFFFh or ecx, edx shl ecx, 2 mov eax, ecx push eax mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_VIRT_WIDTH out dx, ax mov dx, VBE_DISPI_IOPORT_DATA in ax, dx movzx ecx, ax mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_BPP out dx, ax mov dx, VBE_DISPI_IOPORT_DATA in ax, dx movzx esi, ax pop eax cmp esi, 4 jz bpp4_mode add esi, 7 shr esi, 3 imul ecx, esi xor edx, edx div ecx mov edi, eax mov eax, edx xor edx, edx div esi jmp set_xy_regs bpp4_mode: shr ecx, 1 xor edx, edx div ecx mov edi, eax mov eax, edx shl eax, 1 set_xy_regs: push dx push ax mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_X_OFFSET out dx, ax pop ax mov dx, VBE_DISPI_IOPORT_DATA out dx, ax pop dx mov ax, di push dx push ax mov dx, VBE_DISPI_IOPORT_INDEX mov ax, VBE_DISPI_INDEX_Y_OFFSET out dx, ax pop ax mov dx, VBE_DISPI_IOPORT_DATA out dx, ax pop dx pop edi pop esi pop edx pop ecx pop eax mov ax, 004fh ret vesa_pm_unimplemented: mov ax, 014Fh ret vesa_pm_end: VBE32 ends end
21.494527
95
0.642718
68e09ad7df093bc3cea032b6378bb71cdf2190c6
1,057
asm
Assembly
programs/oeis/235/A235988.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/235/A235988.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/235/A235988.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A235988: Sum of the partition parts of 3n into 3 parts. ; 3,18,63,144,285,486,777,1152,1647,2250,3003,3888,4953,6174,7605,9216,11067,13122,15447,18000,20853,23958,27393,31104,35175,39546,44307,49392,54897,60750,67053,73728,80883,88434,96495,104976,113997,123462,133497,144000,155103,166698,178923,191664,205065,219006,233637,248832,264747,281250,298503,316368,335013,354294,374385,395136,416727,439002,462147,486000,510753,536238,562653,589824,617955,646866,676767,707472,739197,771750,805353,839808,875343,911754,949275,987696,1027257,1067742,1109397,1152000,1195803,1240578,1286583,1333584,1381845,1431126,1481697,1533312,1586247,1640250,1695603,1752048,1809873,1868814,1929165,1990656,2053587,2117682,2183247,2250000 mov $2,$0 add $2,1 mov $4,$0 lpb $2 mov $0,$4 sub $2,1 sub $0,$2 mov $7,$0 mov $8,0 mov $9,$0 add $9,1 lpb $9 mov $0,$7 sub $9,1 sub $0,$9 mov $5,3 mov $6,$0 gcd $6,2 add $5,$6 mul $5,$0 mov $3,$5 trn $3,1 mul $3,3 add $3,3 add $8,$3 lpe add $1,$8 lpe mov $0,$1
32.030303
663
0.703879
308ac9ce231929fdc995b03056dc5f8d8c173b69
483
asm
Assembly
test/codegen/types.asm
shivansh/gogo
209b98f52e956fc4d4e66c07d337db721200f8c2
[ "MIT" ]
24
2018-04-28T02:27:47.000Z
2021-12-08T00:25:13.000Z
test/codegen/types.asm
shivansh/gogo
209b98f52e956fc4d4e66c07d337db721200f8c2
[ "MIT" ]
null
null
null
test/codegen/types.asm
shivansh/gogo
209b98f52e956fc4d4e66c07d337db721200f8c2
[ "MIT" ]
5
2018-05-06T07:36:02.000Z
2019-09-13T09:40:55.000Z
.data a.0: .word 0 b.1: .asciiz "str" c.2: .word 0 d.3: .asciiz "" e.4: .word 0 f.5: .asciiz "Hello types" .text runtime: addi $sp, $sp, -4 sw $ra, 0($sp) lw $ra, 0($sp) addi $sp, $sp, 4 jr $ra .end runtime .globl main .ent main main: li $3, 1 # a.0 -> $3 sw $3, a.0 # spilled a.0, freed $3 li $3, 0 # c.2 -> $3 sw $3, c.2 # spilled c.2, freed $3 li $3, 2 # e.4 -> $3 # Store dirty variables back into memory sw $3, e.4 li $2, 10 syscall .end main
14.636364
41
0.532091
388f7f27fbf2d1cc5d9c3680b028adccfdae20e4
4,348
asm
Assembly
asm/masm32/infl/tks_infl.asm
dindoliboon/archive
a5b54367dbb57260f9230375ac81e86c5fce0d7d
[ "MIT" ]
4
2020-10-02T15:24:20.000Z
2021-11-02T04:20:38.000Z
asm/masm32/infl/tks_infl.asm
dindoliboon/archive
a5b54367dbb57260f9230375ac81e86c5fce0d7d
[ "MIT" ]
null
null
null
asm/masm32/infl/tks_infl.asm
dindoliboon/archive
a5b54367dbb57260f9230375ac81e86c5fce0d7d
[ "MIT" ]
2
2019-10-28T01:20:07.000Z
2020-10-02T15:25:13.000Z
; ######################################################################### .386 .model flat, stdcall option casemap :none ; case sensitive ; ######################################################################### include \masm32\include\windows.inc include \masm32\include\kernel32.inc include \masm32\include\shell32.inc include \masm32\include\masm32.inc include \masm32\include\comdlg32.inc includelib \masm32\lib\kernel32.lib includelib \masm32\lib\shell32.lib includelib \masm32\lib\masm32.lib includelib \masm32\lib\comdlg32.lib includelib \masm32\lib\user32.lib include \masm32\include\user32.inc ; ######################################################################### .const MAXSIZE equ 260 ; Max buffer size .data szAction db 'install', 0 ; Action szFilename db 'tks_infl.ini', 0 ; Name of INI file szAppName db 'Setup', 0 ; Section Name szKeyName db 'INF', 0 ; Key name szOpen db 'Open', 0 ; Open Dialog Title szFilter db 'INF Files',0,'*.inf',0,0 hFile dd 0 ; File Handle hInst dd 0 ; Program Instance ofn OPENFILENAME <> ; OFN Structure .data? szBuffer db MAXSIZE dup (?) ; Name of INF file szAppPath db MAXSIZE dup (?) ; Application Path .code start: ;===================== ; Get program instance ;===================== invoke GetModuleHandle, NULL mov hInst, eax ;===================== ; Get our command line ;===================== ;* Advanced INF Installer keeps ;* saying it can not find the file. invoke ArgCl, 1, addr szBuffer ;========================= ; Check if our file exists ;========================= invoke CreateFile, addr szBuffer, GENERIC_READ, FILE_SHARE_READ, NULL,\ OPEN_EXISTING, FILE_ATTRIBUTE_ARCHIVE, NULL mov hFile, eax .if eax == INVALID_HANDLE_VALUE invoke CloseHandle, hFile ;======================================= ; Combine application path with INI file ;======================================= mov byte ptr[szBuffer],0 invoke GetAppPath, addr szAppPath invoke lstrcat, addr szBuffer, addr szAppPath invoke lstrcat, addr szBuffer, addr szFilename ;============== ; Read INI file ;============== invoke GetPrivateProfileString, addr szAppName, addr szKeyName, addr szFilename, addr szBuffer, MAXSIZE, addr szBuffer ;========================= ; Check if our file exists ;========================= invoke CreateFile, addr szBuffer, GENERIC_READ, FILE_SHARE_READ, NULL,\ OPEN_EXISTING, FILE_ATTRIBUTE_ARCHIVE, NULL mov hFile, eax .if eax == INVALID_HANDLE_VALUE invoke CloseHandle, hFile ;=================================================== ; Check if the user wants to run a diffrent INF file ;=================================================== mov byte ptr[szBuffer],0 mov ofn.lStructSize, sizeof ofn push hInst pop ofn.hWndOwner push hInst pop ofn.hInstance mov ofn.lpstrFilter, offset szFilter mov ofn.lpstrFile, offset szBuffer mov ofn.nMaxFile, MAXSIZE mov ofn.Flags, OFN_FILEMUSTEXIST or OFN_PATHMUSTEXIST or\ OFN_LONGNAMES or OFN_EXPLORER or OFN_HIDEREADONLY mov ofn.lpstrTitle, offset szOpen invoke GetOpenFileName, addr ofn ;================= ; No file selected ;================= .if eax == FALSE jmp exit .endif .endif .endif ;========================== ; Run our Installation File ;========================== invoke ShellExecuteA, 0, addr szAction, addr szBuffer, 0, 0, 0 ;================= ; Exit our program ;================= exit: invoke ExitProcess, 0 end start
33.446154
88
0.462511
f8a221aa822ddaf90834376f993fa59f71ae25b0
1,866
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0.log_25_1850.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0.log_25_1850.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0.log_25_1850.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 %r14 push %r9 push %rax push %rbp push %rdx push %rsi // Store mov $0x37d, %r9 nop cmp $13017, %rax mov $0x5152535455565758, %rsi movq %rsi, (%r9) nop nop nop nop nop add %r14, %r14 // Store lea addresses_normal+0x645d, %r10 nop nop nop nop nop cmp %rdx, %rdx mov $0x5152535455565758, %r9 movq %r9, %xmm4 vmovaps %ymm4, (%r10) nop nop nop nop nop xor %rax, %rax // Store lea addresses_UC+0x1921d, %rsi nop sub %r10, %r10 mov $0x5152535455565758, %r9 movq %r9, (%rsi) nop and $39857, %r10 // Store lea addresses_RW+0x291d, %r9 add %rdx, %rdx mov $0x5152535455565758, %r14 movq %r14, (%r9) nop nop nop nop cmp $11399, %rdx // Faulty Load lea addresses_RW+0x291d, %r10 clflush (%r10) nop nop nop nop nop add $56798, %rsi mov (%r10), %r9w lea oracles, %rdx and $0xff, %r9 shlq $12, %r9 mov (%rdx,%r9,1), %r9 pop %rsi pop %rdx pop %rbp pop %rax pop %r9 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_P', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_normal', 'AVXalign': True, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_UC', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 8}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} <gen_prepare_buffer> {'58': 25} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
18.116505
125
0.641479
5efc8b0727a52a07089cc7ed8a723e4284816e8f
728
asm
Assembly
oeis/132/A132310.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/132/A132310.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/132/A132310.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A132310: a(n) = 3^n*Sum_{ k=0..n } binomial(2*k,k)/3^k. ; Submitted by Jamie Morken(s4) ; 1,5,21,83,319,1209,4551,17085,64125,240995,907741,3428655,12990121,49370963,188229489,719805987,2760498351,10615101273,40920439119,158106581157,612166272291,2374756691313,9228369037659,35918537840577,140003217204831,546420258052245,2135179307104839,8352477346962629,32706122641648327,128185634424486021,502821484838319487,1973892807770219549,7754302564253249181,30482336126776013283,119900049855568616589,471886427383368695199,1858171822426942864801,7320646031616454804235,28854558743542625767305 mov $1,1 mov $2,1 mov $3,$0 mov $0,2 lpb $3 sub $0,4 mul $1,$0 mul $2,3 sub $3,1 sub $4,1 div $1,$4 add $2,$1 lpe mov $0,$2
38.315789
498
0.796703
b5f877fcefbf545fb2c3faa03a7f1dc601b8678c
1,254
asm
Assembly
src/test/ref/function-pointer-return.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/test/ref/function-pointer-return.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/test/ref/function-pointer-return.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
// Tests creating and assigning pointers to non-args return with function value // Commodore 64 PRG executable file .file [name="function-pointer-return.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) .const STACK_BASE = $103 .segment Code fn2: { .const OFFSET_STACK_RETURN_0 = 0 .label BG_COLOR = $d021 // (*BG_COLOR)++; inc BG_COLOR // return *BG_COLOR; lda BG_COLOR // } tsx sta STACK_BASE+OFFSET_STACK_RETURN_0,x rts } fn1: { .const OFFSET_STACK_RETURN_0 = 0 .label BORDER_COLOR = $d020 // (*BORDER_COLOR)++; inc BORDER_COLOR // return *BORDER_COLOR; lda BORDER_COLOR // } tsx sta STACK_BASE+OFFSET_STACK_RETURN_0,x rts } main: { .label SCREEN = $400 .label f = 2 ldx #0 __b2: // ++i; inx // i&1 txa and #1 // if((i&1)==0) cmp #0 beq __b3 lda #<fn2 sta.z f lda #>fn2 sta.z f+1 jmp __b4 __b3: lda #<fn1 sta.z f lda #>fn1 sta.z f+1 __b4: // SCREEN[0] = (byte)f lda.z f sta SCREEN jmp __b2 }
19.292308
79
0.602871
fc0ba15a19ad74e7a14b9c38a4a502d6d6dac756
69,981
asm
Assembly
Library/Text/Text/textMethodGet.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Text/Text/textMethodGet.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Text/Text/textMethodGet.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: textMethodGet.asm AUTHOR: John Wedgwood, Nov 21, 1991 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- John 11/21/91 Initial revision DESCRIPTION: Methods for getting text from the text object. $Id: textMethodGet.asm,v 1.1 97/04/07 11:18:19 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TextInstance segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextGetTextRange %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get a range of text. CALLED BY: via MSG_VIS_TEXT_GET_TEXT_RANGE PASS: *ds:si = Instance ptr ds:di = Instance ptr ss:bp = VisTextGetTextRangeParameters RETURN: dx.ax = Number of chars actually copied cx/bp = Return values depending on TextReferenceType DESTROYED: everything (it's a method handler) PSEUDO CODE/STRATEGY: Check for zero range if (zero range && allocAlways) { Allocate destination quit } Allocate destination if ! (allocate || allocAlways) { if (resizeDest) { Resize destination } } Copy to destination KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 11/22/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextGetTextRange method dynamic VisTextClass, MSG_VIS_TEXT_GET_TEXT_RANGE EC < cmp ss:[bp].VTGTRP_textReference.TR_type, TextReferenceType > EC < ERROR_AE VIS_TEXT_BAD_TEXT_REFERENCE_TYPE > clr bx ; No context call TA_GetTextRange ; Convert the range ; ; The VisTextRange has been made 'real' but that doesn't mean that ; the offsets contained in it are legal. It is OK to pass offsets ; which are larger than the size of the text. These offsets are ; mapped to legal values now. ; call TS_GetTextSize ; dx.ax <- size of object cmpdw dxax, ss:[bp].VTGTRP_range.VTR_start jae startOK movdw ss:[bp].VTGTRP_range.VTR_start, dxax startOK: cmpdw dxax, ss:[bp].VTGTRP_range.VTR_end jae endOK movdw ss:[bp].VTGTRP_range.VTR_end, dxax endOK: ; ; Compute the number of bytes to copy. ; movdw dxax, ss:[bp].VTGTRP_range.VTR_end subdw dxax, ss:[bp].VTGTRP_range.VTR_start ; dxax <- number of bytes to copy ; ; See if the caller wants something allocated anyway. ; test ss:[bp].VTGTRP_flags, mask VTGTRF_ALLOCATE_ALWAYS jnz allocateDest ; Branch if allocating ; ; Check to see if there is a range to copy. If there isn't then we ; can just skip to the end because the user doesn't want anything ; allocated. (We already checked for this case above). ; tstdw dxax jz checkResize ; Branch if there is no range ; ; There is a range to copy. See if we want to allocate a destination ; test ss:[bp].VTGTRP_flags, mask VTGTRF_ALLOCATE jz checkResize allocateDest: ; ; We do want to allocate a destination. ; push bp ; Save frame ptr lea bp, ss:[bp].VTGTRP_textReference call AllocateDestBuffer ; Allocate text reference pop bp ; Restore frame ptr checkResize: ; ; Check to see if we want to resize the destination buffer down ; to fit. We only do this if the buffer was passed in to us. Since ; we alway allocate only as much as we need it's not an issue when ; the buffer is our own. ; test ss:[bp].VTGTRP_flags, mask VTGTRF_ALLOCATE or \ mask VTGTRF_ALLOCATE_ALWAYS jnz copyToDest ; Branch if it's our buffer ; ; It's not our buffer, check to see if the caller wants it resized. ; test ss:[bp].VTGTRP_flags, mask VTGTRF_RESIZE_DEST jz copyToDest ; Branch if not resizing ; ; Sigh... resize the buffer to the size in dx.ax ; push bp ; Save frame ptr lea bp, ss:[bp].VTGTRP_textReference call ResizeDestBuffer pop bp ; Restore frame ptr copyToDest: ; ; ss:bp = VisTextGetRangeParameters filled in ; dx.ax = Number of bytes to copy ; call ZeroHugeArray ; Zero the destination if it's a huge ; array. tstdw dxax ; Check for nothing to copy jz writeNull ; Branch if nothing to copy copyBytes: push bp ; Save frame ptr lea bx, ss:[bp].VTGTRP_range lea bp, ss:[bp].VTGTRP_textReference call TS_GetTextRange ; Get text, fill in struct ; dx.ax <- number of bytes copied pop bp ; Restore frame ptr quit: ; ; dx.ax = Number of bytes copied. ; bp = Same as passed in ; call GetReturnValuesByType ; cx/bp <- return values ret writeNull: ; ; There is no text. We need to stuff a null into the buffer in ; one of two cases: ; - "allocate-always" bit is set ; - Neither of the allocate bits is set ; test ss:[bp].VTGTRP_flags, mask VTGTRF_ALLOCATE_ALWAYS jnz addNullToBuffer test ss:[bp].VTGTRP_flags, mask VTGTRF_ALLOCATE or \ mask VTGTRF_ALLOCATE_ALWAYS jnz quit addNullToBuffer: ; ; Either the allocate-always bit is set or neither alloc bit is set. ; What this means is that there is a buffer here somewhere and ; we can write a null to the first byte. ; ; Conveniently since we have a buffer we can just call "get-text" ; and it will do nothing but add the null... ; jmp copyBytes ; Do it man VisTextGetTextRange endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ZeroHugeArray %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: If the destination is a huge-array make it zero sized. CALLED BY: VisTextGetTextRange PASS: ss:bp = VisTextGetTextRangeParameters RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 11/25/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ZeroHugeArray proc near uses ax, bx, cx, dx, di .enter cmp ss:[bp].VTGTRP_textReference.TR_type, TRT_HUGE_ARRAY jnz done mov bx, ss:[bp].VTGTRP_textReference.TR_ref.TRU_hugeArray.TRHA_file ; bx <- file handle EC < call ECVMCheckVMFile > mov di, ss:[bp].VTGTRP_textReference.TR_ref.TRU_hugeArray.TRHA_array deleteLoop: call HugeArrayGetCount ;dx.ax = count tstdw dxax jz done clrdw dxax mov cx, 0xffff call HugeArrayDelete jmp deleteLoop done: .leave ret ZeroHugeArray endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AllocateDestBuffer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Allocate a buffer for the text to be put into. CALLED BY: VisTextGetRange PASS: ss:bp = TextReference dx.ax = # of chars to allocate buffer to (not counting NULL) ds = pointing to segment containing text object RETURN: ss:bp = TextReference filled in completely ds = fixed up, if necessary DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 11/22/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AllocateDestBuffer proc near uses ax, bx, dx, bp .enter incdw dxax ; Allow space for NULL DBCS < shldw dxax ; dx:ax <- size of buffer > mov bx, ss:[bp].TR_type ; bx <- reference type lea bp, ss:[bp].TR_ref ; ss:bp <- reference push ds:[LMBH_handle] call cs:allocDestHandler[bx] ; Call the appropriate handler pop bx call MemDerefDS .leave ret AllocateDestBuffer endp allocDestHandler word \ offset cs:AllocDestBufferPointer, ; TRT_POINTER offset cs:AllocDestBufferSegmentChunk, ; TRT_SEGMENT_CHUNK offset cs:AllocDestBufferBlockChunk, ; TRT_BLOCK_CHUNK offset cs:AllocDestBufferBlock, ; TRT_BLOCK offset cs:AllocDestBufferVMBlock, ; TRT_VM_BLOCK offset cs:AllocDestBufferDBItem, ; TRT_DB_ITEM offset cs:AllocDestBufferHugeArray ; TRT_HUGE_ARRAY COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AllocDestBufferPointer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Generate a fatal-error, you can't allocate this buffer. CALLED BY: AllocateDestBuffer via allocDestHandler table PASS: ss:bp = TextReferencePointer dx.ax = Size of buffer RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 11/22/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AllocDestBufferPointer proc near EC < ERROR CANNOT_ALLOCATE_SPACE_FOR_POINTER_REFERENCE > NEC < ret > AllocDestBufferPointer endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AllocDestBufferSegmentChunk %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Allocate a chunk in a given lmem segment. CALLED BY: AllocateDestBuffer via allocDestHandler table PASS: ss:bp = TextReferenceSegmentChunk dx.ax = Size of buffer RETURN: TRSC_chunk field filled in DESTROYED: ds PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 11/22/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AllocDestBufferSegmentChunk proc near uses ax, cx .enter ; ; Check that the size isn't >64K ; EC < tst dx > EC < ERROR_NZ CANNOT_ALLOCATE_CHUNK_TO_SIZE_OVER_64K > ; ; Check that the segment is valid ; EC < push ax > EC < mov ax, ss:[bp].TRSC_segment > EC < call ECCheckSegment > EC < pop ax > ; ; Allocate the space ; mov ds, ss:[bp].TRSC_segment ; ds <- segment of heap mov cx, ax ; cx <- size mov al, mask OCF_DIRTY ; al <- flags call LMemAlloc ; ax <- chunk handle ; ds <- new segment ; ; Stuff the segment and chunk back into the stack frame ; mov ss:[bp].TRSC_segment, ds mov ss:[bp].TRSC_chunk, ax .leave ret AllocDestBufferSegmentChunk endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AllocDestBufferBlockChunk %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Allocate a chunk in a given lmem segment. CALLED BY: AllocateDestBuffer via allocDestHandler table PASS: ss:bp = TextReferenceBlockChunk dx.ax = Size of buffer RETURN: TRBC_chunk field filled in DESTROYED: ds PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 11/22/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AllocDestBufferBlockChunk proc near uses ax, bx, cx .enter ; ; Check that the size isn't >64K ; push ax ; Save size.low EC < tst dx > EC < ERROR_NZ CANNOT_ALLOCATE_CHUNK_TO_SIZE_OVER_64K > mov bx, ss:[bp].TRBC_ref.handle ; bx <- block handle EC < call ECCheckMemHandle > call MemLock ; ax <- segment address EC < call ECCheckSegment > ; ; Allocate the space ; mov ds, ax ; ds <- segment of heap pop cx ; cx <- size mov al, mask OCF_DIRTY ; al <- flags call LMemAlloc ; ax <- chunk handle ; ds <- new segment ; ; Stuff the segment and chunk back into the stack frame ; mov ss:[bp].TRBC_ref.chunk, ax call MemUnlock ; Release the block .leave ret AllocDestBufferBlockChunk endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AllocDestBufferBlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Allocate a block for text. CALLED BY: AllocateDestBuffer via allocDestHandler table PASS: ss:bp = TextReferenceBlock dx.ax = Size of buffer RETURN: TRB_handle field filled in DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 11/22/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AllocDestBufferBlock proc near uses ax, bx, cx .enter EC < tst dx > EC < ERROR_NZ CANNOT_ALLOCATE_BLOCK_TO_SIZE_OVER_64K > mov cx, ALLOC_DYNAMIC_NO_ERR or mask HF_SHARABLE or (mask HAF_ZERO_INIT shl 8) call MemAlloc ; bx <- handle mov ss:[bp].TRB_handle, bx ; Save new handle .leave ret AllocDestBufferBlock endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AllocDestBufferVMBlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Allocate a vm-block for text. CALLED BY: AllocateDestBuffer via allocDestHandler table PASS: ss:bp = TextReferenceVMBlock dx.ax = Size of buffer RETURN: TRVMB_block field filled in DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 11/22/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AllocDestBufferVMBlock proc near uses ax, bx, cx .enter EC < tst dx > EC < ERROR_NZ CANNOT_ALLOCATE_VM_BLOCK_TO_SIZE_OVER_64K > mov bx, ss:[bp].TRVMB_file ; bx <- file handle EC < call ECVMCheckVMFile > mov cx, ax ; cx <- Number of bytes clr ax ; No id number call VMAlloc ; ax <- new vm block mov ss:[bp].TRVMB_block, ax ; Save new handle .leave ret AllocDestBufferVMBlock endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AllocDestBufferDBItem %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Allocate a db-item for text. CALLED BY: AllocateDestBuffer via allocDestHandler table PASS: ss:bp = TextReferenceDBItem dx.ax = Size of buffer RETURN: TRDBI_group/item fields filled in DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 11/22/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AllocDestBufferDBItem proc near uses ax, bx, cx, di .enter EC < tst dx > EC < ERROR_NZ CANNOT_ALLOCATE_DB_ITEM_TO_SIZE_OVER_64K > mov bx, ss:[bp].TRDBI_file ; bx <- file handle EC < call ECVMCheckVMFile > mov cx, ax ; cx <- Number of bytes mov ax, ss:[bp].TRDBI_group ; ax <- group call DBAlloc mov ss:[bp].TRDBI_group, ax ; Save group mov ss:[bp].TRDBI_item, di ; Save item .leave ret AllocDestBufferDBItem endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AllocDestBufferHugeArray %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Allocate a db-item for text. CALLED BY: AllocateDestBuffer via allocDestHandler table PASS: ss:bp = TextReferenceHugeArray dx.ax = Size of buffer RETURN: TRHA_array field filled in DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 11/22/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AllocDestBufferHugeArray proc near SBCS < uses bx, cx, di > DBCS < uses bx, cx, di, ax, dx > .enter ; ; Create an empty array ; DBCS < shrdw dxax ; dxax <- # of chars > mov bx, ss:[bp].TRHA_file ; bx <- file handle EC < call ECVMCheckVMFile > SBCS < mov cx, 1 ; cx <- element size > DBCS < mov cx, (size wchar) ; cx <- element size > clr di ; No extra space in header call HugeArrayCreate ; di <- huge array handle mov ss:[bp].TRHA_array, di ; Save the new array .leave ret AllocDestBufferHugeArray endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ResizeDestBuffer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Resize a destination buffer. CALLED BY: VisTextGetRange PASS: ss:bp = TextReference dx.ax = # of chars to reallocate it to (not counting NULL) ds = segment containing text object RETURN: ds = fixed up to point at same segment, if necessary DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 11/22/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ResizeDestBuffer proc near uses ax, bx, dx, bp .enter incdw dxax ; Allow space for NULL DBCS < shldw dxax ; dxax <- size of buffer > mov bx, ss:[bp].TR_type ; bx <- reference type lea bp, ss:[bp].TR_ref ; ss:bp <- reference push ds:[LMBH_handle] call cs:resizeDestHandler[bx] ; Call the appropriate handler pop bx call MemDerefDS .leave ret ResizeDestBuffer endp resizeDestHandler word \ offset cs:ResizeDestBufferPointer, ; TRT_POINTER offset cs:ResizeDestBufferSegmentChunk, ; TRT_SEGMENT_CHUNK offset cs:ResizeDestBufferBlockChunk, ; TRT_BLOCK_CHUNK offset cs:ResizeDestBufferBlock, ; TRT_BLOCK offset cs:ResizeDestBufferVMBlock, ; TRT_VM_BLOCK offset cs:ResizeDestBufferDBItem, ; TRT_DB_ITEM offset cs:ResizeDestBufferHugeArray ; TRT_HUGE_ARRAY COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ResizeDestBufferPointer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Generate a fatal-error, you can't resize this buffer. CALLED BY: ResizeDestBuffer via resizeDestHandler table PASS: ss:bp = TextReferencePointer dx.ax = Size to reallocate to RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 11/22/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ResizeDestBufferPointer proc near EC < ERROR CANNOT_RESIZE_A_POINTER_REFERENCE > NEC < ret > ResizeDestBufferPointer endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ResizeDestBufferSegmentChunk %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Resize a chunk in a given heap CALLED BY: ResizeDestBuffer via resizeDestHandler table PASS: ss:bp = TextReferenceSegmentChunk dx.ax = Size to reallocate to RETURN: nothing DESTROYED: ds PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 11/22/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ResizeDestBufferSegmentChunk proc near uses ax, cx .enter EC < tst dx > EC < ERROR_NZ CANNOT_RESIZE_CHUNK_TO_SIZE_OVER_64K > mov cx, ax ; cx <- new size mov ds, ss:[bp].TRSC_segment ; ds <- segment mov ax, ss:[bp].TRSC_chunk ; ax <- chunk call LMemReAlloc ; Resize the thing ; ; Since we are guaranteed to have resized the thing smaller or not at ; all we don't need to worry about saving the segment again. ; .leave ret ResizeDestBufferSegmentChunk endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ResizeDestBufferBlockChunk %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Resize a chunk in a given heap CALLED BY: ResizeDestBuffer via resizeDestHandler table PASS: ss:bp = TextReferenceBlockChunk dx.ax = Size to reallocate to RETURN: nothing DESTROYED: ds PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 11/22/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ResizeDestBufferBlockChunk proc near uses ax, bx, cx .enter EC < tst dx > EC < ERROR_NZ CANNOT_RESIZE_CHUNK_TO_SIZE_OVER_64K > mov cx, ax ; cx <- new size mov bx, ss:[bp].TRBC_ref.handle call ObjLockObjBlock ; ax <- segment mov ds, ax ; ds <- segment mov ax, ss:[bp].TRSC_chunk ; ax <- chunk call LMemReAlloc ; Resize the thing call MemUnlock ; Release the block .leave ret ResizeDestBufferBlockChunk endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ResizeDestBufferBlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Resize a block CALLED BY: ResizeDestBuffer via resizeDestHandler table PASS: ss:bp = TextReferenceBlock dx.ax = Size to reallocate to RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 11/22/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ResizeDestBufferBlock proc near uses ax, bx, cx .enter EC < tst dx > EC < ERROR_NZ CANNOT_RESIZE_BLOCK_TO_SIZE_OVER_64K > clr cl ; HeapFlags mov ch, mask HAF_NO_ERR ; HeapAllocFlags mov bx, ss:[bp].TRB_handle ; bx <- handle call MemReAlloc ; Make me smaller (or same size) .leave ret ResizeDestBufferBlock endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ResizeDestBufferVMBlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Resize a vm-block CALLED BY: ResizeDestBuffer via resizeDestHandler table PASS: ss:bp = TextReferenceVMBlock dx.ax = Size to reallocate to RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 11/22/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ResizeDestBufferVMBlock proc near uses ax, bx, cx, bp .enter EC < tst dx > EC < ERROR_NZ CANNOT_RESIZE_VMBLOCK_TO_SIZE_OVER_64K > ; ; Lock the vm-block to get a memory block handle ; push ax ; Save size mov bx, ss:[bp].TRVMB_file ; bx <- file mov ax, ss:[bp].TRVMB_block ; ax <- block call VMLock ; ax <- segment ; bp <- block pop ax ; Restore size ; ; ax = New size ; bp = Block handle ; mov bx, bp ; bx <- block handle clr cl ; HeapFlags mov ch, mask HAF_NO_ERR ; HeapAllocFlags call MemReAlloc ; Resize the block call VMUnlock ; Release the block .leave ret ResizeDestBufferVMBlock endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ResizeDestBufferDBItem %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Resize a db-item CALLED BY: ResizeDestBuffer via resizeDestHandler table PASS: ss:bp = TextReferenceDBItem dx.ax = Size to reallocate to RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 11/22/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ResizeDestBufferDBItem proc near uses ax, bx, cx, di .enter EC < tst dx > EC < ERROR_NZ CANNOT_RESIZE_DBITEM_TO_SIZE_OVER_64K > mov cx, ax ; cx <- size mov bx, ss:[bp].TRDBI_file ; bx <- file mov ax, ss:[bp].TRDBI_group ; ax <- group mov di, ss:[bp].TRDBI_item ; di <- item call DBReAlloc ; Resize the item .leave ret ResizeDestBufferDBItem endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ResizeDestBufferHugeArray %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Resize a huge-array CALLED BY: ResizeDestBuffer via resizeDestHandler table PASS: ss:bp = TextReferenceHugeArray dx.ax = Size to reallocate to RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 11/22/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ResizeDestBufferHugeArray proc near EC < ERROR RESIZING_A_HUGE_ARRAY_DOES_NOT_MAKE_SENSE > NEC < ret > ResizeDestBufferHugeArray endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetReturnValuesByType %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get return values for VisTextGetTextRange. CALLED BY: VisTextGetTextRange PASS: ss:bp = VisTextGetTextRangeParameters RETURN: cx/bp = Return values according to the TextReferenceType DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 12/12/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetReturnValuesByType proc near uses bx .enter lea bp, ss:[bp].VTGTRP_textReference mov bx, ss:[bp].TR_type ; bx <- reference type lea bp, ss:[bp].TR_ref ; ss:bp <- reference call cs:returnValueHandler[bx] .leave ret GetReturnValuesByType endp returnValueHandler word \ offset cs:ReturnPointer, ; TRT_POINTER offset cs:ReturnSegmentChunk, ; TRT_SEGMENT_CHUNK offset cs:ReturnBlockChunk, ; TRT_BLOCK_CHUNK offset cs:ReturnBlock, ; TRT_BLOCK offset cs:ReturnVMBlock, ; TRT_VM_BLOCK offset cs:ReturnDBItem, ; TRT_DB_ITEM offset cs:ReturnHugeArray ; TRT_HUGE_ARRAY COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ReturnPointer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Destroy cx and bp, the return values for this type are meaningless. CALLED BY: AllocDestBuffer via allocDestHandler PASS: ss:bp = TextReferencePointer RETURN: cx/bp = Destroyed DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 12/12/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ReturnPointer proc near EC < mov cx, -1 > EC < mov bp, -1 > ret ReturnPointer endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ReturnSegmentChunk %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Return the chunk handle in cx. CALLED BY: AllocDestBuffer via allocDestHandler PASS: ss:bp = TextReferenceSegmentChunk RETURN: cx = Chunk handle DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 12/12/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ReturnSegmentChunk proc near mov cx, ss:[bp].TRSC_chunk EC < mov bp, -1 > ret ReturnSegmentChunk endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ReturnBlockChunk %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Return the chunk handle in cx. CALLED BY: AllocDestBuffer via allocDestHandler PASS: ss:bp = TextReferenceBlockChunk RETURN: cx = Chunk handle DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 12/12/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ReturnBlockChunk proc near mov cx, ss:[bp].TRBC_ref.chunk EC < mov bp, -1 > ret ReturnBlockChunk endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ReturnBlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Return the block handle in cx. CALLED BY: AllocDestBuffer via allocDestHandler PASS: ss:bp = TextReferenceBlock RETURN: cx = Block handle DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 12/12/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ReturnBlock proc near mov cx, ss:[bp].TRB_handle EC < mov bp, -1 > ret ReturnBlock endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ReturnVMBlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Return the vm-block handle in cx. CALLED BY: AllocDestBuffer via allocDestHandler PASS: ss:bp = TextReferenceVMBlock RETURN: cx = VM-block handle DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 12/12/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ReturnVMBlock proc near mov cx, ss:[bp].TRVMB_block EC < mov bp, -1 > ret ReturnVMBlock endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ReturnDBItem %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Return the db-item group/item in cx/bp CALLED BY: AllocDestBuffer via allocDestHandler PASS: ss:bp = TextReferenceDBItem RETURN: cx = Group bp = Item DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 12/12/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ReturnDBItem proc near mov cx, ss:[bp].TRDBI_group mov bp, ss:[bp].TRDBI_item ret ReturnDBItem endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ReturnHugeArray %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Return the huge array in cx. CALLED BY: AllocDestBuffer via allocDestHandler PASS: ss:bp = TextReferenceHugeArray RETURN: cx = Huge array DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 12/12/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ReturnHugeArray proc near mov cx, ss:[bp].TRHA_array EC < mov bp, -1 > ret ReturnHugeArray endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextGetAllPtr %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get all the text from a text object into a buffer referenced by a pointer. CALLED BY: via MSG_VIS_TEXT_GET_ALL_PTR PASS: *ds:si = Instance ptr dx:bp = Pointer to the buffer RETURN: cx = String length not counting the null ax = Size of the text (not counting the NULL) dx, bp = Unchanged DESTROYED: everything PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 2/10/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextGetAllPtr method dynamic VisTextClass, MSG_VIS_TEXT_GET_ALL_PTR uses dx, bp .enter clr cl ; cl <- VisTextGetTextRangeFlags xchg dx, bp ; Offset first, then segment mov ax, TRT_POINTER ; ax <- TextReferenceType call GetAllIntoSomething ; dx.ax <- size mov cx, ax ; Return size in cx .leave ret VisTextGetAllPtr endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextGetAllOptr %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get all the text from a text object into a buffer referenced by a optr. CALLED BY: via MSG_VIS_TEXT_GET_ALL_OPTR PASS: *ds:si = Instance ptr ^ldx:bp = Pointer to the buffer bp = 0 to allocate the chunk RETURN: cx = Chunk that the text was placed in ax = String size dx, bp = Unchanged DESTROYED: everything PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 2/10/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextGetAllOptr method dynamic VisTextClass, MSG_VIS_TEXT_GET_ALL_OPTR uses dx, bp .enter mov cl, mask VTGTRF_RESIZE_DEST tst bp ; Check for allocate jnz gotFlags ; Branch if chunk exists or cl, mask VTGTRF_ALLOCATE_ALWAYS gotFlags: xchg dx, bp ; Block first, then chunk mov ax, TRT_OPTR ; ax <- TextReferenceType call GetAllIntoSomething ; bx <- chunk mov cx, bx ; Return chunk in cx .leave ret VisTextGetAllOptr endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextGetAllBlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get all the text from a text object into a buffer referenced by a block. CALLED BY: via MSG_VIS_TEXT_GET_ALL_BLOCK PASS: *ds:si = Instance ptr ^hdx = Pointer to the buffer dx = 0 to allocate the block RETURN: cx = Block that the text was placed in ax = Size of the text (not counting the NULL) dx, bp = Unchanged DESTROYED: everything PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 2/10/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextGetAllBlock method dynamic VisTextClass, MSG_VIS_TEXT_GET_ALL_BLOCK uses dx, bp .enter mov cl, mask VTGTRF_RESIZE_DEST tst dx ; Check for allocate jnz gotFlags ; Branch if block exists or cl, mask VTGTRF_ALLOCATE_ALWAYS gotFlags: mov ax, TRT_BLOCK ; ax <- TextReferenceType call GetAllIntoSomething ; bx <- block mov cx, bx ; Return block in cx .leave ret VisTextGetAllBlock endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextGetAllVMBlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get all the text from a text object into a buffer referenced by a vm-block. CALLED BY: via MSG_VIS_TEXT_GET_ALL_VM_BLOCK PASS: *ds:si = Instance ptr ^vdx:bp = Pointer to the buffer bp = 0 to allocate the vm-block RETURN: cx = VM-Block that the text was placed in ax = Size of the text (not counting the NULL) dx, bp = Unchanged DESTROYED: everything PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 2/10/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextGetAllVMBlock method dynamic VisTextClass, MSG_VIS_TEXT_GET_ALL_VM_BLOCK uses dx, bp .enter mov cl, mask VTGTRF_RESIZE_DEST tst bp ; Check for allocate jnz gotFlags ; Branch if vm-block exists or cl, mask VTGTRF_ALLOCATE_ALWAYS gotFlags: mov ax, TRT_VM_BLOCK ; ax <- TextReferenceType call GetAllIntoSomething ; bp <- vm-block mov cx, bp ; Return vm-block in cx .leave ret VisTextGetAllVMBlock endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextGetAllDBItem %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get all the text from a text object into a buffer referenced by a db-item. CALLED BY: via MSG_VIS_TEXT_GET_ALL_DB_ITEM PASS: *ds:si = Instance ptr dx = File bp = Group (cannot be ungrouped) cx = Item = 0 to allocate the item RETURN: cx = Item that the text was placed in bp = Group that the text was placed in ax = Size of the text (not counting the NULL) dx = Unchanged DESTROYED: everything PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 2/10/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextGetAllDBItem method dynamic VisTextClass, MSG_VIS_TEXT_GET_ALL_DB_ITEM uses dx .enter mov di, cx ; Pass item in di mov cl, mask VTGTRF_RESIZE_DEST tst di ; Check for allocate jnz gotFlags ; Branch if item exists or cl, mask VTGTRF_ALLOCATE_ALWAYS gotFlags: xchg bp, di ; Item first, then group mov ax, TRT_DB_ITEM ; ax <- TextReferenceType call GetAllIntoSomething ; bp <- item mov cx, bp ; Return item in cx mov bp, di ; Return group in bp .leave ret VisTextGetAllDBItem endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextGetAllHugeArray %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get all the text from a text object into a buffer referenced by a huge-array. CALLED BY: via MSG_VIS_TEXT_GET_ALL_HUGE_ARRAY PASS: *ds:si = Instance ptr dx = File bp = Array handle = 0 to allocate the array RETURN: cx = Array that the text was placed in dx.ax = Size of the text (not counting the NULL) bp = Unchanged DESTROYED: everything PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 2/10/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextGetAllHugeArray method dynamic VisTextClass, MSG_VIS_TEXT_GET_ALL_HUGE_ARRAY uses bp .enter mov cl, mask VTGTRF_RESIZE_DEST tst bp ; Check for allocate jnz gotFlags ; Branch if item exists or cl, mask VTGTRF_ALLOCATE_ALWAYS gotFlags: mov ax, TRT_HUGE_ARRAY ; ax <- TextReferenceType call GetAllIntoSomething ; bp <- array mov cx, bp ; Return item in cx .leave ret VisTextGetAllHugeArray endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetAllIntoSomething %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get all the text from an object into a destination buffer. CALLED BY: VisTextGetAll* PASS: *ds:si = Instance ptr ax = TextReferenceType cl = VisTextGetTextRangeFlags dx,bp,di= TextReference RETURN: dx.ax = Number of bytes copied bx,bp,di= TextReference after the call DESTROYED: everything else PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 2/10/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetAllIntoSomething proc far mov bx, bp ; bx <- parameter passed in bp sub sp, size VisTextGetTextRangeParameters mov bp, sp ; ss:bp <- frame clrdw ss:[bp].VTGTRP_range.VTR_start movdw ss:[bp].VTGTRP_range.VTR_end, TEXT_ADDRESS_PAST_END mov ss:[bp].VTGTRP_flags, cl ; ; Fill in the frame... ; mov ss:[bp].VTGTRP_textReference.TR_type, ax mov {word} ss:[bp].VTGTRP_textReference.TR_ref, dx mov {word} ss:[bp].VTGTRP_textReference.TR_ref[2], bx mov {word} ss:[bp].VTGTRP_textReference.TR_ref[4], di ; ; Do the get ; push bp mov ax, MSG_VIS_TEXT_GET_TEXT_RANGE call ObjCallInstanceNoLock pop bp mov bx, {word} ss:[bp].VTGTRP_textReference.TR_ref mov di, {word} ss:[bp].VTGTRP_textReference.TR_ref[4] mov bp, {word} ss:[bp].VTGTRP_textReference.TR_ref[2] add sp, size VisTextGetTextRangeParameters ret GetAllIntoSomething endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextGetSelectionPtr %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the selection from a text object into a buffer referenced by a pointer. CALLED BY: via MSG_VIS_TEXT_GET_SELECTION_PTR PASS: *ds:si = Instance ptr dx:bp = Pointer to the buffer RETURN: cx = String length not counting the null ax = Size of the text (not counting the NULL) dx, bp = Unchanged DESTROYED: everything PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 2/10/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextGetSelectionPtr method dynamic VisTextClass, MSG_VIS_TEXT_GET_SELECTION_PTR uses dx, bp .enter clr cl ; cl <- VisTextGetTextRangeFlags xchg dx, bp ; Offset first, then segment mov ax, TRT_POINTER ; ax <- TextReferenceType call GetSelectionIntoSomething ; dx.ax <- size mov cx, ax ; Return size in cx .leave ret VisTextGetSelectionPtr endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextGetSelectionOptr %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the selection from a text object into a buffer referenced by a optr. CALLED BY: via MSG_VIS_TEXT_GET_SELECTION_OPTR PASS: *ds:si = Instance ptr ^ldx:bp = Pointer to the buffer bp = 0 to allocate the chunk RETURN: cx = Chunk that the text was placed in ax = Size of the text (not counting the NULL) dx, bp = Unchanged DESTROYED: everything PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 2/10/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextGetSelectionOptr method dynamic VisTextClass, MSG_VIS_TEXT_GET_SELECTION_OPTR uses dx, bp .enter mov cl, mask VTGTRF_RESIZE_DEST tst bp ; Check for allocate jnz gotFlags ; Branch if chunk exists or cl, mask VTGTRF_ALLOCATE_ALWAYS gotFlags: xchg dx, bp ; Chunk first, then block mov ax, TRT_OPTR ; ax <- TextReferenceType call GetSelectionIntoSomething ; bx <- chunk mov cx, bx ; Return chunk in cx .leave ret VisTextGetSelectionOptr endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextGetSelectionBlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the selection from a text object into a buffer referenced by a block. CALLED BY: via MSG_VIS_TEXT_GET_SELECTION_BLOCK PASS: *ds:si = Instance ptr ^hdx = Pointer to the buffer dx = 0 to allocate the block RETURN: cx = Block that the text was placed in ax = Size of the text (not counting the NULL) dx, bp = Unchanged DESTROYED: everything PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 2/10/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextGetSelectionBlock method dynamic VisTextClass, MSG_VIS_TEXT_GET_SELECTION_BLOCK uses dx, bp .enter mov cl, mask VTGTRF_RESIZE_DEST tst dx ; Check for allocate jnz gotFlags ; Branch if block exists or cl, mask VTGTRF_ALLOCATE_ALWAYS gotFlags: mov ax, TRT_BLOCK ; ax <- TextReferenceType call GetSelectionIntoSomething ; bx <- block mov cx, bx ; Return block in cx .leave ret VisTextGetSelectionBlock endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextGetSelectionVMBlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the selection from a text object into a buffer referenced by a vm-block. CALLED BY: via MSG_VIS_TEXT_GET_SELECTION_VM_BLOCK PASS: *ds:si = Instance ptr ^vdx:bp = Pointer to the buffer bp = 0 to allocate the vm-block RETURN: cx = VM-Block that the text was placed in ax = Size of the text (not counting the NULL) dx, bp = Unchanged DESTROYED: everything PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 2/10/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextGetSelectionVMBlock method dynamic VisTextClass, MSG_VIS_TEXT_GET_SELECTION_VM_BLOCK uses dx, bp .enter mov cl, mask VTGTRF_RESIZE_DEST tst bp ; Check for allocate jnz gotFlags ; Branch if vm-block exists or cl, mask VTGTRF_ALLOCATE_ALWAYS gotFlags: mov ax, TRT_VM_BLOCK ; ax <- TextReferenceType call GetSelectionIntoSomething ; bp <- vm-block mov cx, bp ; Return vm-block in cx .leave ret VisTextGetSelectionVMBlock endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextGetSelectionDBItem %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the selection from a text object into a buffer referenced by a db-item. CALLED BY: via MSG_VIS_TEXT_GET_SELECTION_DB_ITEM PASS: *ds:si = Instance ptr dx = File bp = Group (cannot be ungrouped) cx = Item = 0 to allocate the item RETURN: cx = Item that the text was placed in bp = Group that the text was placed in ax = Size of the text (not counting the NULL) dx = Unchanged DESTROYED: everything PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 2/10/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextGetSelectionDBItem method dynamic VisTextClass, MSG_VIS_TEXT_GET_SELECTION_DB_ITEM uses dx .enter mov di, cx ; Pass item in di mov cl, mask VTGTRF_RESIZE_DEST tst di ; Check for allocate jnz gotFlags ; Branch if item exists or cl, mask VTGTRF_ALLOCATE_ALWAYS gotFlags: xchg bp, di ; Item first, then group mov ax, TRT_DB_ITEM ; ax <- TextReferenceType call GetSelectionIntoSomething ; bp <- item mov cx, bp ; Return item in cx mov bp, di ; Return group in bp .leave ret VisTextGetSelectionDBItem endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextGetSelectionHugeArray %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the selection from a text object into a buffer referenced by a huge-array. CALLED BY: via MSG_VIS_TEXT_GET_SELECTION_HUGE_ARRAY PASS: *ds:si = Instance ptr dx = File bp = Array handle = 0 to allocate the array RETURN: cx = Array that the text was placed in dx.ax = Size of the text (not counting the NULL) bp = Unchanged DESTROYED: everything PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 2/10/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextGetSelectionHugeArray method dynamic VisTextClass, MSG_VIS_TEXT_GET_SELECTION_HUGE_ARRAY uses bp .enter mov cl, mask VTGTRF_RESIZE_DEST tst bp ; Check for allocate jnz gotFlags ; Branch if item exists or cl, mask VTGTRF_ALLOCATE_ALWAYS gotFlags: mov ax, TRT_HUGE_ARRAY ; ax <- TextReferenceType call GetSelectionIntoSomething ; bp <- array mov cx, bp ; Return item in cx .leave ret VisTextGetSelectionHugeArray endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextReturnSelectionBlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get selection text in a block and return it to 'object' CALLED BY: MSG_VIS_TEXT_RETURN_SELECTION_BLOCK PASS: *ds:si = VisTextClass object ds:di = VisTextClass instance data ds:bx = VisTextClass object (same as *ds:si) es = segment of VisTextClass ax = message # ^lcx:dx = object requesting selection bp = message to send to object RETURN: nothing DESTROYED: ax, cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- joon 11/13/98 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextReturnSelectionBlock method dynamic VisTextClass, MSG_VIS_TEXT_RETURN_SELECTION_BLOCK push cx, dx, bp mov ax, MSG_VIS_TEXT_GET_SELECTION_BLOCK clr dx ; allocate a new block call ObjCallInstanceNoLock ; ^hcx = block of text pop bx, si, ax mov di, mask MF_CALL GOTO ObjMessage VisTextReturnSelectionBlock endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetSelectionIntoSomething %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the selection from an object into a destination buffer. CALLED BY: VisTextGetSelection* PASS: *ds:si = Instance ptr ax = TextReferenceType cl = VisTextGetTextRangeFlags dx,bp,di= TextReference RETURN: dx.ax = Number of bytes copied bx,bp,di= TextReference after the call DESTROYED: everything else PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 2/10/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetSelectionIntoSomething proc far mov bx, bp ; bx <- parameter passed in bp sub sp, size VisTextGetTextRangeParameters mov bp, sp ; ss:bp <- frame mov ss:[bp].VTGTRP_range.VTR_start.high, VIS_TEXT_RANGE_SELECTION mov ss:[bp].VTGTRP_flags, cl ; ; Fill in the frame... ; mov ss:[bp].VTGTRP_textReference.TR_type, ax mov {word} ss:[bp].VTGTRP_textReference.TR_ref, dx mov {word} ss:[bp].VTGTRP_textReference.TR_ref[2], bx mov {word} ss:[bp].VTGTRP_textReference.TR_ref[4], di ; ; Do the get ; push bp mov ax, MSG_VIS_TEXT_GET_TEXT_RANGE call ObjCallInstanceNoLock pop bp mov bx, {word} ss:[bp].VTGTRP_textReference.TR_ref mov di, {word} ss:[bp].VTGTRP_textReference.TR_ref[4] mov bp, {word} ss:[bp].VTGTRP_textReference.TR_ref[2] add sp, size VisTextGetTextRangeParameters ret GetSelectionIntoSomething endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetStartingAtPositionRange %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Gets the range of text to get if CL_STARTING_AT_POSITION is passed. CALLED BY: GLOBAL PASS: bp - # chars to get dx.ax - GCP_position RETURN: (dx.ax), (cx.bx) - text range to get DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 10/13/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetStartingAtPositionRange proc near .enter movdw cxbx, dxax call TS_GetTextSize cmpdw cxbx, dxax jae 10$ movdw dxax, cxbx ;DX.AX = MIN(startPos,endOfText) 10$: movdw cxbx, dxax ;CX.BX <- starting position add bx, bp adc cx, 0 ;CX.BX = end of range EC < ERROR_C BAD_CONTEXT_POSITION > ; Clip range to text bounds pushdw dxax call TS_GetTextSize cmpdw cxbx, dxax jbe 20$ movdw cxbx, dxax 20$: popdw dxax .leave ret GetStartingAtPositionRange endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetEndingAtPositionRange %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Gets the range of text to get if CL_ENDING_AT_POSITION is passed. CALLED BY: GLOBAL PASS: bp - # chars to get dx.ax - GCP_position RETURN: (dx.ax), (cx.bx) - text range to get DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 10/13/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetEndingAtPositionRange proc near .enter movdw cxbx, dxax call TS_GetTextSize cmpdw cxbx, dxax jae 10$ movdw dxax, cxbx ;DX.AX = MIN(endPos,endOfText) 10$: movdw cxbx, dxax ;CX.BX <- starting position sub bx, bp sbb cx, 0 ;CX.BX = end of range jnc exit clrdw cxbx exit: .leave ret GetEndingAtPositionRange endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetCenteredAroundSelectionRange %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Gets a range centered around the current selection CALLED BY: GLOBAL PASS: bp - num chars to get RETURN: (dx.ax), (cx.bx) - text range to get DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 10/13/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetCenteredAroundSelectionRange proc near call TSL_SelectGetSelection GOTO GetCenteredAroundRangeCommon GetCenteredAroundSelectionRange endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetCenteredAroundSelectionStartRange %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Gets a range centered around the start of the current selection CALLED BY: GLOBAL PASS: bp - num chars to get RETURN: (dx.ax), (cx.bx) - text range to get DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 10/19/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetCenteredAroundSelectionStartRange proc near call TSL_SelectGetSelectionStart FALL_THRU GetCenteredAroundPositionRange GetCenteredAroundSelectionStartRange endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetCenteredAroundPositionRange %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Gets a range centered around the passed position CALLED BY: GLOBAL PASS: bp - num chars to get dx.ax - position to center around RETURN: (dx.ax), (cx.bx) - text range to get DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 10/13/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetCenteredAroundPositionRange proc near movdw cxbx, dxax FALL_THRU GetCenteredAroundRangeCommon GetCenteredAroundPositionRange endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetCenteredAroundRangeCommon %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Returns a range centered around the passed range (as much as possible) CALLED BY: GLOBAL PASS: *ds:si - object bp - # chars to get dx.ax - start of range cx.bx - end of range RETURN: (dx.ax), (cx.bx) - text range to get DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 10/ 6/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetCenteredAroundRangeCommon proc near numChars local word \ push bp range local VisTextRange .enter movdw range.VTR_start, dxax movdw range.VTR_end, cxbx ; We want to get a range centered around the passed range, unless there ; aren't enough characters available (i.e. the range is close to ; the start/end of the document, in which case we'll get as large of ; an area as possible). subdw cxbx, dxax ;CX.BX <- # chars in selection tst cx ;If there is more than the jnz justGetSelection ; requested # chars selected mov ax, numChars ; just get the selection sub ax, bx jc justGetSelection mov_tr bx, ax ;BX <- # chars to try to get ; after the selection. shr bx, 1 ;CX.BX <- # chars to get after clr cx ; selection adddw cxbx, range.VTR_end ;CX.BX <- end of range to get ; If the end of the range we want to get is beyond the edge of the text, ; just get up to the end of the text. call TS_GetTextSize cmpdw cxbx, dxax jb haveRangeEnd movdw cxbx, dxax haveRangeEnd: ; CX.BX <- End of the range to get movdw dxax, cxbx sub ax, numChars ;If the start of the range goes beyond sbb dx, 0 ; the start of the text, branch... jc adjustEnd exit: .leave ret adjustEnd: ; We want the text range we are getting to start at 0 and extend to ; 0+numChars or to the end of the text, whichever comes first. mov bx, numChars ;CX.BX <- offset to start of text + clr cx ; "numChars" call TS_GetTextSize cmpdw cxbx, dxax jbe haveEnd movdw cxbx, dxax haveEnd: clrdw dxax jmp exit justGetSelection: ; The selected area is larger than "numChars" - ; Just get the first "numChars" characters of the selection movdw dxax, range.VTR_start movdw cxbx, dxax add bx, numChars adc cx, 0 jmp exit GetCenteredAroundRangeCommon endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetSelectedWordRange %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Gets the range of text to get if CL_GET_SELECTED_WORD is passed. CALLED BY: GLOBAL PASS: bp - max # chars to get RETURN: (dx.ax), (cx.bx) - text range to get DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 10/14/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetSelectedWordRange proc near .enter call TSL_SelectGetSelection ;Either get the selection, jc gotRange call SelectByModeWordFar gotRange: ; Ensure that at most "bp" chars are grabbed pushdw cxbx subdw cxbx, dxax tst cx jnz tooManyChars cmp bx, bp ja tooManyChars popdw cxbx exit: .leave ret tooManyChars: movdw cxbx, dxax add bx, bp adc cx, 0 add sp, size dword jmp exit GetSelectedWordRange endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SendSelectionContext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Create a context notification centered around the current selection. CALLED BY: GLOBAL PASS: *ds:si - VisText object RETURN: nada DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 10/14/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SendSelectionContext proc far uses ax, cx, dx, bp .enter sub sp, size GetContextParams mov bp, sp mov ss:[bp].GCP_numCharsToGet, 500 mov ss:[bp].GCP_location, CL_CENTERED_AROUND_SELECTION_START mov ax, MSG_META_GENERATE_CONTEXT_NOTIFICATION call ObjCallInstanceNoLock add sp, size GetContextParams .leave ret SendSelectionContext endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SendPositionContext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Create a context notification centered around the passed position. CALLED BY: GLOBAL PASS: *ds:si - VisText object dx.ax - position RETURN: nada DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 10/14/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SendPositionContext proc far uses ax, cx, dx, bp .enter sub sp, size GetContextParams mov bp, sp movdw ss:[bp].GCP_position, dxax mov ss:[bp].GCP_numCharsToGet, 500 mov ss:[bp].GCP_location, CL_CENTERED_AROUND_POSITION mov ax, MSG_META_GENERATE_CONTEXT_NOTIFICATION call ObjCallInstanceNoLock add sp, size GetContextParams .leave ret SendPositionContext endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextGetContext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the context from the text object. CALLED BY: GLOBAL PASS: ss:bp - GetContextParams RETURN: nada DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 10/ 6/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextGetContext method VisTextClass, MSG_META_GET_CONTEXT pushdw ss:[bp].GCP_replyObj call CreateTextContextBlock popdw bxsi mov ax, MSG_META_CONTEXT clr di GOTO ObjMessage VisTextGetContext endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CreateTextContextBlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Creates a block containing ContextData for this text object CALLED BY: GLOBAL PASS: *ds:si - object ss:bp - GetContextParams RETURN: bp - block with context data DESTROYED: ax, bx, cx, dx, di, es PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 10/16/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CreateTextContextBlock proc near .enter ; ; Figure out the range of the text we want to get ; movdw dxax, ss:[bp].GCP_position mov bx, ss:[bp].GCP_location mov bp, ss:[bp].GCP_numCharsToGet EC < cmp bx, ContextLocation > EC < ERROR_AE BAD_CONTEXT_LOCATION > shl bx call cs:getContextRangeRouts[bx] ; DX.AX = Start of range to get ; CX.BX = End of range to get sub sp, size VisTextGetTextRangeParameters mov bp, sp movdw ss:[bp].VTGTRP_range.VTR_start, dxax movdw ss:[bp].VTGTRP_range.VTR_end, cxbx ; Allocate and initialize a block with ContextData structure subdw cxbx, dxax EC < tst cx > EC < ERROR_NZ -1 > mov_tr ax, bx DBCS < shl ax, 1 ; # chars -> # bytes > add ax, size ContextData+1 ; (add one for null terminator) mov cx, ALLOC_DYNAMIC_NO_ERR_LOCK or mask HF_SHARABLE call MemAlloc mov es, ax push bx ; Convert the selection to be relative to the start of the data in ; the context block, and store it in the ContextData struct. call TSL_SelectGetSelection movdw es:[CD_selection].VTR_start, dxax movdw es:[CD_selection].VTR_end, cxbx mov ax, ds:[LMBH_handle] movdw es:[CD_object], axsi ; Set the flags denoting whether or not the context included the ; start/end of the text. call TS_GetTextSize movdw es:[CD_numChars], dxax movdw es:[CD_range].VTR_start, ss:[bp].VTGTRP_range.VTR_start, ax movdw es:[CD_range].VTR_end, ss:[bp].VTGTRP_range.VTR_end, ax ; Copy the text from the object into the block with ContextData mov ss:[bp].VTGTRP_textReference.TR_type, TRT_POINTER mov ss:[bp].VTGTRP_pointerReference.segment, es mov ss:[bp].VTGTRP_pointerReference.offset, offset CD_contextData clr ss:[bp].VTGTRP_flags mov ax, MSG_VIS_TEXT_GET_TEXT_RANGE call ObjCallInstanceNoLock pop bx call MemUnlock add sp, size VisTextGetTextRangeParameters mov bp, bx ;BP <- block with context data .leave ret CreateTextContextBlock endp getContextRangeRouts nptr \ GetStartingAtPositionRange, GetEndingAtPositionRange, GetCenteredAroundPositionRange, GetCenteredAroundSelectionRange, GetCenteredAroundSelectionStartRange, GetSelectedWordRange .assert length getContextRangeRouts eq ContextLocation COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextGenerateContextNotification %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: This message handler sends the passed context block off to the appropriate GCN list. CALLED BY: GLOBAL PASS: *ds:si - VisText object ss:bp - GetContextParams RETURN: nada DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 10/14/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextGenerateContextNotification method dynamic VisTextClass, MSG_META_GENERATE_CONTEXT_NOTIFICATION .enter EC < test ds:[di].VTI_intSelFlags, mask VTISF_IS_FOCUS > EC < jnz hasFocus > EC < mov ax, ATTR_VIS_TEXT_SEND_CONTEXT_NOTIFICATIONS_EVEN_IF_NOT_FOCUSED > EC < call ObjVarFindData > EC < ERROR_NC MUST_BE_FOCUS_TO_GENERATE_CONTEXT_NOTIFICATION > EC <hasFocus: > call CreateTextContextBlock ;BP <- Context block mov ax, MSG_META_NOTIFY_WITH_DATA_BLOCK mov cx, MANUFACTURER_ID_GEOWORKS mov dx, GWNT_TEXT_CONTEXT mov di, mask MF_RECORD call ObjMessage ;DI <- event handle mov bx, bp mov dx, size GCNListMessageParams sub sp, dx mov bp, sp mov ss:[bp].GCNLMP_ID.GCNLT_manuf, MANUFACTURER_ID_GEOWORKS mov ss:[bp].GCNLMP_ID.GCNLT_type, GAGCNLT_NOTIFY_TEXT_CONTEXT mov dx, size GCNListMessageParams mov ss:[bp].GCNLMP_block, bx mov ss:[bp].GCNLMP_event, di clr ss:[bp].GCNLMP_flags ; If we don't have the focus, we must have ; ATTR_VIS_TEXT_SEND_CONTEXT_NOTIFICATIONS_EVEN_IF_NOT_FOCUSED. If so, ; then assume that the user knows what he's doing, and send the message ; directly to the gcn list. mov di, ds:[si] add di, ds:[di].VisText_offset test ds:[di].VTI_intSelFlags, mask VTISF_IS_FOCUS jz sendDirectly ; Otherwise, check to see if a UserDoDialog is running. If so, the ; process thread could be blocked, so send this directly to the app ; object. This is OK, as any recipients of this message will know to ; ignore notifications coming from objects not run from the UI if a ; UserDoDialog is onscreen. Basically, this is all just a hack that ; is needed if you want your controllers to get updated when a ; UserDoDialog is up. mov ax, MSG_GEN_APPLICATION_CHECK_IF_RUNNING_USER_DO_DIALOG push cx, dx, bp call UserCallApplication pop cx, dx, bp tst ax ;If a UserDoDialog is active, send jnz sendDirectly ; this directly on. mov ax, MSG_GEN_PROCESS_SEND_TO_APP_GCN_LIST call GeodeGetProcessHandle common: mov di, mask MF_FIXUP_DS or mask MF_STACK call ObjMessage add sp, dx .leave ret sendDirectly: clr bx call GeodeGetAppObject mov ax, MSG_META_GCN_LIST_SEND jmp common VisTextGenerateContextNotification endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextRegionFromPoint %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the region associated with a given point CALLED BY: MSG_VIS_TEXT_REGION_FROM_POINT PASS: *ds:si = VisTextClass object ds:di = VisTextClass instance data ds:bx = VisTextClass object (same as *ds:si) es = segment of VisTextClass ax = message # ss:bp = PointDWFixed RETURN: cx = Region ax = Relative X position dx = Relative Y position DESTROYED: none SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JimG 7/21/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextRegionFromPoint method dynamic VisTextClass, MSG_VIS_TEXT_REGION_FROM_POINT call TR_RegionFromPoint ret VisTextRegionFromPoint endm TextInstance ends TextFixed segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% T_CheckIfContextUpdateDesired %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Checks if context updates are desired. CALLED BY: GLOBAL PASS: *ds:si - VisText object RETURN: z flag set if not desired (jz noUpdate) DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 10/19/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ T_CheckIfContextUpdateDesired proc far uses ax, bx, di class VisTextClass .enter call UserCheckIfContextUpdateDesired tst ax jz exit ; The object must have the focus (or have the override attribute), and ; be editable as well. mov di, ds:[si] add di, ds:[di].VisText_offset mov ax,ATTR_VIS_TEXT_SEND_CONTEXT_NOTIFICATIONS_EVEN_IF_NOT_FOCUSED call ObjVarFindData jc skipFocusCheck test ds:[di].VTI_intSelFlags, mask VTISF_IS_FOCUS jz exit skipFocusCheck: test ds:[di].VTI_state, mask VTS_EDITABLE exit: .leave ret T_CheckIfContextUpdateDesired endp TextFixed ends
26.467852
80
0.574485
8fa2784a9bc744ad1b940db29a73ee4fab8e4dc9
1,646
asm
Assembly
extra2.asm
iTooly/asm_ex
2491e4c415388f479344d13ddabcbac5297daf39
[ "MIT" ]
null
null
null
extra2.asm
iTooly/asm_ex
2491e4c415388f479344d13ddabcbac5297daf39
[ "MIT" ]
null
null
null
extra2.asm
iTooly/asm_ex
2491e4c415388f479344d13ddabcbac5297daf39
[ "MIT" ]
null
null
null
; ««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««« .486 ; create 32 bit code .model flat, stdcall ; 32 bit memory model option casemap :none ; case sensitive include \masm32\include\windows.inc include \masm32\macros\macros.asm ; ----------------------------------------------------------------- ; include files that have MASM format prototypes for function calls ; ----------------------------------------------------------------- include \masm32\include\masm32.inc include \masm32\include\gdi32.inc include \masm32\include\user32.inc include \masm32\include\kernel32.inc ; ------------------------------------------------ ; Library files that have definitions for function ; exports and tested reliable prebuilt code. ; ------------------------------------------------ includelib \masm32\lib\masm32.lib includelib \masm32\lib\gdi32.lib includelib \masm32\lib\user32.lib includelib \masm32\lib\kernel32.lib ; ««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««« .data str1 db "Hello", 0 str2 db "Hello", 0 ; ««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««« .code start: mov esi, offset str1 mov edi, offset str2 call strcmp print_result: print str$(eax),13,10 strcmp: push esi push ebp push esp push ebx push edi mov ecx, sizeof str1 repz cmpsb mov eax, -1 jnz result mov eax, 0 result: pop esi pop ebp pop esp pop ebx pop edi ret exit: exit ; ««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««« end start
22.243243
75
0.456865
904aa49e2822457f3576a6c8614c3c6b0478dc56
17
asm
Assembly
src/main/fragment/mega45gs02-common/vdum1=vdum2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mega45gs02-common/vdum1=vdum2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mega45gs02-common/vdum1=vdum2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
ldq {m2} stq {m1}
8.5
8
0.588235
6770f6e1d086126df5a46491752fcc80a437da4c
884
asm
Assembly
oeis/218/A218478.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/218/A218478.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/218/A218478.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A218478: Number of 3n-length 8-ary words, either empty or beginning with the first letter of the alphabet, that can be built by repeatedly inserting triples of identical letters into the initially empty word. ; Submitted by Christian Krause ; 1,1,22,631,20546,721071,26594464,1016157668,39868799482,1596785816431,65014851904262,2683064838415039,111976833827421368,4717961282984709124,200410768873037098384,8573481927644738115096,369045717586929668129706,15972561730958196240953007,694668570895766655307813954,30343664419925386664186205413,1330630538618354469812160967186,58557786694875800290463961721847,2585295061906521222747357509991064,114475517472768578468511527907864848,5082600991204413901964104004976685336 mov $1,1 mov $3,$0 lpb $3 mov $0,$1 mul $0,-14 mul $1,7 sub $1,$0 sub $3,1 mul $1,$3 add $2,1 div $1,$2 add $4,$1 sub $1,$0 lpe mov $0,$4 add $0,1
42.095238
472
0.81448
59657e66c6eeca77f4227fcc5d62c1b07eac7baa
1,085
asm
Assembly
_build/dispatcher/jmp_ippsGFpSetElement_ac4d6a27.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
1
2021-10-04T10:21:54.000Z
2021-10-04T10:21:54.000Z
_build/dispatcher/jmp_ippsGFpSetElement_ac4d6a27.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
_build/dispatcher/jmp_ippsGFpSetElement_ac4d6a27.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
extern m7_ippsGFpSetElement:function extern n8_ippsGFpSetElement:function extern y8_ippsGFpSetElement:function extern e9_ippsGFpSetElement:function extern l9_ippsGFpSetElement:function extern n0_ippsGFpSetElement:function extern k0_ippsGFpSetElement:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:function segment .data align 8 dq .Lin_ippsGFpSetElement .Larraddr_ippsGFpSetElement: dq m7_ippsGFpSetElement dq n8_ippsGFpSetElement dq y8_ippsGFpSetElement dq e9_ippsGFpSetElement dq l9_ippsGFpSetElement dq n0_ippsGFpSetElement dq k0_ippsGFpSetElement segment .text global ippsGFpSetElement:function (ippsGFpSetElement.LEndippsGFpSetElement - ippsGFpSetElement) .Lin_ippsGFpSetElement: db 0xf3, 0x0f, 0x1e, 0xfa call ippcpSafeInit wrt ..plt align 16 ippsGFpSetElement: db 0xf3, 0x0f, 0x1e, 0xfa mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc] movsxd rax, dword [rax] lea r11, [rel .Larraddr_ippsGFpSetElement] mov r11, qword [r11+rax*8] jmp r11 .LEndippsGFpSetElement:
27.820513
95
0.797235
758e2940a9c4c9ab3e003c1663057ba827e3bf75
620
asm
Assembly
oeis/047/A047926.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/047/A047926.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/047/A047926.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A047926: a(n) = (3^(n+1) + 2*n + 1)/4. ; 1,3,8,22,63,185,550,1644,4925,14767,44292,132866,398587,1195749,3587234,10761688,32285049,96855131,290565376,871696110,2615088311,7845264913,23535794718,70607384132,211822152373,635466457095,1906399371260,5719198113754,17157594341235,51472783023677,154418349071002,463255047212976,1389765141638897,4169295424916659,12507886274749944,37523658824249798,112570976472749359,337712929418248041,1013138788254744086,3039416364764232220,9118249094292696621,27354747282878089823,82064241848634269428 add $0,1 mov $1,3 pow $1,$0 add $1,$0 add $1,$0 sub $1,5 div $1,4 add $1,1 mov $0,$1
47.692308
492
0.820968
e4f90e2a4d9a9fd93ccea6c5da88154f8bdf464f
346
asm
Assembly
programs/oeis/309/A309398.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/309/A309398.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/309/A309398.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A309398: a(n) is the nearest integer to log(log(10^n)). ; 1,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5 mov $2,$0 bin $2,2 add $2,1 lpb $0 lpb $2 div $0,7 add $1,3 div $2,9 lpe lpe div $1,3 add $1,1
21.625
175
0.520231
20299f7deddbf074e634de7f5ac6e31db4b3477f
689
asm
Assembly
oeis/026/A026567.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/026/A026567.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/026/A026567.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A026567: a(n) = Sum_{i=0..2*n} Sum_{j=0..i} T(i, j), where T is given by A026552. ; Submitted by Jamie Morken(s1.) ; 1,4,13,31,85,193,517,1165,3109,6997,18661,41989,111973,251941,671845,1511653,4031077,9069925,24186469,54419557,145118821,326517349,870712933,1959104101,5224277605,11754624613,31345665637,70527747685,188073993829,423166486117,1128443962981,2538998916709,6770663777893,15233993500261,40623982667365,91403961001573,243743896004197,548423766009445,1462463376025189,3290542596056677,8774780256151141,19743255576340069,52648681536906853,118459533458040421,315892089221441125,710757200748242533 mov $1,$0 mod $0,2 lpb $1 mul $0,6 add $0,4 sub $1,2 lpe mul $0,3 add $0,1
49.214286
489
0.808418
253d7c8fd4126ac9b26112ca60b7f4fcd3228c89
1,428
asm
Assembly
AlgorithmsFromTheBook/wordfunnel.asm
MateoParrado/AlgorithmsFromTheBook
7062cfea0822070970c1ab373a34fb56b1f54a2b
[ "MIT" ]
null
null
null
AlgorithmsFromTheBook/wordfunnel.asm
MateoParrado/AlgorithmsFromTheBook
7062cfea0822070970c1ab373a34fb56b1f54a2b
[ "MIT" ]
null
null
null
AlgorithmsFromTheBook/wordfunnel.asm
MateoParrado/AlgorithmsFromTheBook
7062cfea0822070970c1ab373a34fb56b1f54a2b
[ "MIT" ]
1
2020-06-08T22:02:25.000Z
2020-06-08T22:02:25.000Z
PUBLIC asm_letters_needed .386 .model flat, c .code ;-------------------------------------------------------- asm_letters_needed PROC ; ; Function that takes two strings, and figures out how ; many letters need to be removed from the first one ; so that it equals the second one. If no number of letters ; can do it, it will return -1. ; ; ; ; Receives (on stack): ; char * pointing at the first, longer string ; char * pointing at the second, shorter string ; ; Returns: ; EAX: the number of letters from the first string needed ; to be removed to equal the second string. Returns -1 if ; the strings cannot be made equal ;-------------------------------------------------------- push ebp mov ebp, esp push esi mov ebp, esp ;mov into the right registers mov eax, [ebp + 8] mov esi, [ebp + TYPE DWORD + 8] mov ecx, 0 redo: mov bl, byte ptr [eax] cmp bl, 0 ;at end of string? je donestring cmp bl, byte ptr [esi] ;are they equal je equal inc ecx ;if not, we need to increment the wrong coiunter, but not increment esi inc eax jmp redo equal: inc eax ;if theyre equal, go to the next letter and redo inc esi jmp redo donestring: mov bl, byte ptr [esi] ;is the second string at the end too? cmp bl, 0 jne retnul mov eax, ecx ;return the number of letters needed pop esi pop ebp ret retnul: mov eax, -1 ;return an error code pop esi pop ebp ret asm_letters_needed ENDP end
17.85
80
0.646359
7418ab1a1ab09d2cdf27c70036aa1f413586cd67
212
asm
Assembly
oeis/132/A132208.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/132/A132208.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/132/A132208.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A132208: a(n) = 15n(n+1) + 11. ; 11,41,101,191,311,461,641,851,1091,1361,1661,1991,2351,2741,3161,3611,4091,4601,5141,5711,6311,6941,7601,8291,9011,9761,10541,11351,12191 add $0,1 bin $0,2 mul $0,30 add $0,11
26.5
139
0.693396
3e8364cf99cd0eccfa011a02f5b0b1a8c0beac7e
576
asm
Assembly
oeis/013/A013714.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/013/A013714.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/013/A013714.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A013714: a(n) = 9^(2*n + 1). ; 9,729,59049,4782969,387420489,31381059609,2541865828329,205891132094649,16677181699666569,1350851717672992089,109418989131512359209,8862938119652501095929,717897987691852588770249,58149737003040059690390169,4710128697246244834921603689,381520424476945831628649898809,30903154382632612361920641803529,2503155504993241601315571986085849,202755595904452569706561330872953769,16423203268260658146231467800709255289,1330279464729113309844748891857449678409,107752636643058178097424660240453423951129 mul $0,4 add $0,2 mov $1,3 pow $1,$0 mov $0,$1
64
496
0.887153
0ce3f26bee899af1506b6b0f73532de0f1336e26
211
asm
Assembly
experiments/blink_all_together.asm
daltonmatos/avrgcc-mixed-with-avrasm2
f28120af3089fdd150d7a609409c56f5408a1658
[ "BSD-3-Clause" ]
2
2019-01-15T16:30:19.000Z
2019-08-15T02:31:22.000Z
experiments/blink_all_together.asm
daltonmatos/avrgcc-mixed-with-avrasm2
f28120af3089fdd150d7a609409c56f5408a1658
[ "BSD-3-Clause" ]
null
null
null
experiments/blink_all_together.asm
daltonmatos/avrgcc-mixed-with-avrasm2
f28120af3089fdd150d7a609409c56f5408a1658
[ "BSD-3-Clause" ]
null
null
null
.include "m328Pdef.inc" .org 0x0000 _blinks: rjmp _add _ret: ret _add: call _ldi _add1: add r24, r23 call _clear rjmp _ret _clear: clr r1 clr r25 ret _ldi: ldi r23, 0x5 jmp _add1
8.115385
23
0.635071
76fa228b562fde3ea2ca3de7fbae9c4dab66ae19
3,760
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2_notsx.log_6_756.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-8650U_0xd2_notsx.log_6_756.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-8650U_0xd2_notsx.log_6_756.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r9 push %rcx push %rdi push %rsi lea addresses_UC_ht+0xe20e, %r9 nop sub $7128, %r12 mov (%r9), %si nop nop nop nop and %rdi, %rdi lea addresses_WC_ht+0xf04e, %rsi lea addresses_D_ht+0xb38e, %rdi dec %r12 mov $94, %rcx rep movsw nop and $53417, %r12 pop %rsi pop %rdi pop %rcx pop %r9 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %r15 push %rax push %rbp push %rdx // Store lea addresses_WC+0x11d0e, %r12 nop nop nop nop and %r15, %r15 mov $0x5152535455565758, %rax movq %rax, (%r12) dec %r11 // Load lea addresses_RW+0x163a1, %r12 nop nop nop nop dec %r14 mov (%r12), %r15d nop nop xor $57263, %r12 // Store mov $0x692900000007bc, %rdx nop inc %r12 movw $0x5152, (%rdx) nop nop nop nop nop cmp $52330, %rax // Load mov $0x3647c6000000098e, %r12 nop nop nop dec %r15 movups (%r12), %xmm3 vpextrq $1, %xmm3, %r14 add %r14, %r14 // Store lea addresses_normal+0x1338e, %r11 nop cmp $4697, %r12 movl $0x51525354, (%r11) xor $32323, %r15 // Store lea addresses_A+0xa38e, %rax nop nop nop nop nop and %r12, %r12 movw $0x5152, (%rax) nop nop nop nop nop sub $60808, %rdx // Store lea addresses_RW+0x738e, %r11 nop xor %rdx, %rdx mov $0x5152535455565758, %rbp movq %rbp, (%r11) nop nop nop nop nop cmp $30273, %r15 // Store lea addresses_D+0x898e, %r14 nop nop nop nop nop xor $5459, %rax movb $0x51, (%r14) nop and %r11, %r11 // Store mov $0x11fe1d000000074e, %rax inc %r11 movw $0x5152, (%rax) nop nop nop nop nop and %rbp, %rbp // Store lea addresses_normal+0xfb8e, %r14 add $37897, %rdx mov $0x5152535455565758, %rax movq %rax, %xmm3 movaps %xmm3, (%r14) nop nop nop nop inc %r15 // Faulty Load lea addresses_normal+0xfb8e, %r15 and %r12, %r12 mov (%r15), %r11d lea oracles, %r15 and $0xff, %r11 shlq $12, %r11 mov (%r15,%r11,1), %r11 pop %rdx pop %rbp pop %rax pop %r15 pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}} {'58': 6} 58 58 58 58 58 58 */
19.183673
147
0.6375
a4e574b3cfc815f790036712282edeba622efe09
824
asm
Assembly
asm/integerArithmetic/div.main.asm
IronHeart7334/AssemblyPrograms
e5b0649d2a1eb69bb5632c8219187d72fd69d057
[ "MIT" ]
null
null
null
asm/integerArithmetic/div.main.asm
IronHeart7334/AssemblyPrograms
e5b0649d2a1eb69bb5632c8219187d72fd69d057
[ "MIT" ]
null
null
null
asm/integerArithmetic/div.main.asm
IronHeart7334/AssemblyPrograms
e5b0649d2a1eb69bb5632c8219187d72fd69d057
[ "MIT" ]
null
null
null
; general comments ; Computes (2xy) / (x + y) ; both are unsigned WORDS ; preprocessor directives .586 .MODEL FLAT ; external files to link with ; stack configuration .STACK 4096 ; named memory allocation and initialization .DATA _x WORD 32d _y WORD 64d result WORD 0 ; names of procedures defined in other *.asm files in the project ; procedure code .CODE main PROC ; I lack the tools to chain multiplication with WORDS for now, so I'll have to add instead of multiplying by 2 mov AX, _x ; AX is now x add AX, _x ; AX is now 2x mov DX, _y mul DX ; DX:AX is now 2xy mov BX, _x ; BX is now x add BX, _y ; BX is now x + y div BX ; (2xy) / (x + y) is now stored in AX mov result, AX ; result is now the quotient mov EAX, 0 ret main ENDP END
20.6
114
0.643204
d53ee37b704336dffc3975829ff2ada0e31ee557
806
asm
Assembly
data/maps/objects/SafariZoneWest.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/maps/objects/SafariZoneWest.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/maps/objects/SafariZoneWest.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
SafariZoneWest_Object: db $0 ; border block def_warps warp 20, 0, 0, SAFARI_ZONE_NORTH warp 21, 0, 1, SAFARI_ZONE_NORTH warp 26, 0, 2, SAFARI_ZONE_NORTH warp 27, 0, 3, SAFARI_ZONE_NORTH warp 29, 22, 2, SAFARI_ZONE_CENTER warp 29, 23, 3, SAFARI_ZONE_CENTER warp 3, 3, 0, SAFARI_ZONE_SECRET_HOUSE warp 11, 11, 0, SAFARI_ZONE_WEST_REST_HOUSE def_signs sign 12, 12, 5 ; SafariZoneWestText5 sign 17, 3, 6 ; SafariZoneWestText6 sign 26, 4, 7 ; SafariZoneWestText7 sign 24, 22, 8 ; SafariZoneWestText8 def_objects object SPRITE_POKE_BALL, 8, 20, STAY, NONE, 1, MAX_POTION object SPRITE_POKE_BALL, 9, 7, STAY, NONE, 2, TM_DOUBLE_TEAM object SPRITE_POKE_BALL, 18, 18, STAY, NONE, 3, MAX_REVIVE object SPRITE_POKE_BALL, 19, 7, STAY, NONE, 4, GOLD_TEETH def_warps_to SAFARI_ZONE_WEST
29.851852
61
0.748139
56c61d425ec549891f0ff9dc16be4e1b08e95d5e
346
asm
Assembly
programs/oeis/021/A021099.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/021/A021099.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/021/A021099.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A021099: Decimal expansion of 1/95. ; 0,1,0,5,2,6,3,1,5,7,8,9,4,7,3,6,8,4,2,1,0,5,2,6,3,1,5,7,8,9,4,7,3,6,8,4,2,1,0,5,2,6,3,1,5,7,8,9,4,7,3,6,8,4,2,1,0,5,2,6,3,1,5,7,8,9,4,7,3,6,8,4,2,1,0,5,2,6,3,1,5,7,8,9,4,7,3,6,8,4,2,1,0,5,2,6,3,1,5 mul $0,4 sub $0,1 mul $0,11 div $0,2 sub $0,1 div $0,2 max $0,0 seq $0,70342 ; a(n) = 3^n mod 19. div $0,2
26.615385
199
0.537572
142335b1b7fc052f00d957d446d98b6f670fd58d
6,713
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca_notsx.log_36_903.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca_notsx.log_36_903.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca_notsx.log_36_903.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 %r15 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0xea4c, %rax nop add %rcx, %rcx vmovups (%rax), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $0, %xmm5, %r12 nop nop nop and %rsi, %rsi lea addresses_WC_ht+0x987d, %rsi lea addresses_D_ht+0x1509c, %rdi nop nop nop add $28423, %rbx mov $23, %rcx rep movsb nop nop nop nop nop xor $12114, %rcx lea addresses_UC_ht+0x116ec, %rcx nop nop nop nop nop sub $32039, %rax movl $0x61626364, (%rcx) nop nop nop nop inc %rax lea addresses_normal_ht+0x1971c, %rbx nop nop and %r11, %r11 mov (%rbx), %eax nop dec %rax lea addresses_D_ht+0x8d9c, %rsi lea addresses_UC_ht+0x16b1c, %rdi nop nop nop and %r15, %r15 mov $64, %rcx rep movsq nop nop add %rcx, %rcx lea addresses_normal_ht+0x1349c, %rsi add $2989, %rax movw $0x6162, (%rsi) nop nop nop nop dec %rbx lea addresses_D_ht+0x1c51c, %rax clflush (%rax) add $21051, %r11 mov $0x6162636465666768, %rdi movq %rdi, %xmm4 movups %xmm4, (%rax) nop nop add $46247, %rcx lea addresses_UC_ht+0x1229c, %rbx nop and %r12, %r12 vmovups (%rbx), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $1, %xmm7, %r15 nop nop nop nop nop and $379, %r12 lea addresses_UC_ht+0x209c, %r11 nop nop nop nop nop dec %r15 movl $0x61626364, (%r11) nop nop nop cmp $26975, %rax lea addresses_D_ht+0x1519f, %rbx clflush (%rbx) nop nop nop nop nop sub %r15, %r15 movl $0x61626364, (%rbx) nop nop add %rsi, %rsi lea addresses_WC_ht+0x1209c, %rax nop nop nop inc %r15 mov (%rax), %r11w nop nop and $55742, %rdi lea addresses_WC_ht+0xf5b0, %rsi lea addresses_D_ht+0x2810, %rdi cmp $19064, %r12 mov $124, %rcx rep movsb nop sub %r11, %r11 lea addresses_normal_ht+0x12502, %r11 nop nop nop and $16541, %rdi mov (%r11), %r15d nop nop nop add $57243, %rax lea addresses_normal_ht+0x1571c, %rdi nop nop nop nop nop sub %r11, %r11 mov (%rdi), %rcx nop nop xor %r15, %r15 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r15 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r14 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi // REPMOV lea addresses_WC+0x13ad8, %rsi lea addresses_A+0x1589c, %rdi nop nop nop nop xor %r14, %r14 mov $125, %rcx rep movsq nop nop nop xor $50340, %r14 // Store lea addresses_A+0x1269c, %rdx nop nop nop add $53799, %rdi mov $0x5152535455565758, %r9 movq %r9, %xmm5 movups %xmm5, (%rdx) nop nop nop nop nop xor %r9, %r9 // Store lea addresses_PSE+0x1d0fc, %rsi inc %rbx movb $0x51, (%rsi) nop nop nop nop nop and %r9, %r9 // Store lea addresses_PSE+0x909c, %rdx nop nop xor %r9, %r9 mov $0x5152535455565758, %rsi movq %rsi, %xmm5 movups %xmm5, (%rdx) sub %r14, %r14 // Load lea addresses_PSE+0xe5c, %rcx nop nop nop xor %r14, %r14 mov (%rcx), %rsi nop nop sub $42902, %rdi // Store lea addresses_UC+0x1ac44, %rsi nop cmp %r9, %r9 movw $0x5152, (%rsi) nop nop nop nop dec %rdi // REPMOV lea addresses_US+0x909c, %rsi lea addresses_D+0x11f9, %rdi xor %r14, %r14 mov $99, %rcx rep movsb nop nop nop inc %rcx // Store lea addresses_WC+0x1a9bc, %rdi nop nop nop nop sub $22669, %rdx mov $0x5152535455565758, %rsi movq %rsi, %xmm7 vmovups %ymm7, (%rdi) nop nop nop cmp $61544, %rsi // Faulty Load lea addresses_PSE+0x909c, %rdi nop sub %r14, %r14 movups (%rdi), %xmm0 vpextrq $1, %xmm0, %r9 lea oracles, %rsi and $0xff, %r9 shlq $12, %r9 mov (%rsi,%r9,1), %r9 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_WC'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_A'}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 8}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 5}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_PSE', 'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 6}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 3}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_US'}, 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_D'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 4}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 4}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 4}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 7}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 9}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 4}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 9}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 11}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 8}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 1}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 5}} {'00': 36} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
20.529052
148
0.646209
fe3090419a87aa2dc21c51f75794df17aa5bfb4d
64
asm
Assembly
lab1/example_c_3.asm
0000Blaze/Microprocess
8d2bf8f7f55e50800c2b82f4b8d3b2d113fc3330
[ "MIT" ]
null
null
null
lab1/example_c_3.asm
0000Blaze/Microprocess
8d2bf8f7f55e50800c2b82f4b8d3b2d113fc3330
[ "MIT" ]
null
null
null
lab1/example_c_3.asm
0000Blaze/Microprocess
8d2bf8f7f55e50800c2b82f4b8d3b2d113fc3330
[ "MIT" ]
null
null
null
# ORG 8000 LDA 8050 STA 8060 HLT # ORG 8050 # DB 99
9.142857
12
0.546875
85041f103af71ffd333da39ce709d3eae623cfcb
412
asm
Assembly
PRG/objects/6-1.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/objects/6-1.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/objects/6-1.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
.byte $01 ; Unknown purpose .byte OBJ_PIRANHASPIKEBALL, $14, $16 .byte OBJ_PATOOIE, $24, $18 .byte OBJ_REDPIRANHA, $2A, $17 .byte OBJ_GREENPIRANHA_FIRE, $3A, $16 .byte OBJ_PATOOIE, $46, $18 .byte OBJ_PATOOIE, $4A, $18 .byte OBJ_PATOOIE, $5C, $18 .byte OBJ_PARAGOOMBA, $63, $19 .byte OBJ_PATOOIE, $65, $18 .byte OBJ_PIRANHASPIKEBALL, $6C, $16 .byte OBJ_ENDLEVELCARD, $88, $15 .byte $FF ; Terminator
27.466667
38
0.68932
41ae2c2f74f0b3c8f442988ccce88a547b5de00a
948
asm
Assembly
oeis/350/A350116.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/350/A350116.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/350/A350116.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A350116: Number of ways to partition the set of vertices of a convex {n+8}-gon into 3 non-intersecting polygons. ; Submitted by Christian Krause ; 0,12,45,110,220,390,637,980,1440,2040,2805,3762,4940,6370,8085,10120,12512,15300,18525,22230,26460,31262,36685,42780,49600,57200,65637,74970,85260,96570,108965,122512,137280,153340,170765,189630,210012,231990,255645,281060,308320,337512,368725,402050,437580,475410,515637,558360,603680,651700,702525,756262,813020,872910,936045,1002540,1072512,1146080,1223365,1304490,1389580,1478762,1572165,1669920,1772160,1879020,1990637,2107150,2228700,2355430,2487485,2625012,2768160,2917080,3071925,3232850 mov $7,$0 mov $9,$0 lpb $9 mov $0,$7 mov $5,0 sub $9,1 sub $0,$9 mov $4,$0 mov $6,$0 lpb $6 mov $0,$4 sub $6,1 sub $0,$6 mov $2,$0 lpb $0 mov $3,$2 add $3,1 div $0,$3 add $2,5 lpe mul $2,$3 add $5,$2 lpe add $8,$5 lpe mov $0,$8
30.580645
497
0.690928
575004278f6bd5fa7cb40f22c3f65e19b25a2f97
841
asm
Assembly
oeis/007/A007868.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/007/A007868.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/007/A007868.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A007868: Number of inverse pairs of elements in symmetric group S_n, or pairs of total orders on n nodes (average of A000085 and A000142). ; Submitted by Christian Krause ; 1,1,2,5,17,73,398,2636,20542,182750,1819148,19976248,239570876,3113794652,43590340840,653842358768,10461418047368,177843819947656,3201187351520912,60822552609266720,1216451015967652048,25545471145831066448,562000364198246159456,12926008371071410261312,310224200875365814968800,7755605021713333213880288,201645730563569310396100288,5444434725210686418756987776,152444172305865635889435695552,4420880996869901972384935353280,132626429906095832776789194524288,4111419327088963242174810215122688 mov $1,1 mov $3,2 mov $4,1 mov $5,-1 lpb $0 sub $0,1 add $2,1 sub $3,$1 mul $1,$2 mul $3,$0 mul $3,$5 sub $4,$3 add $3,$1 add $3,$4 lpe mov $0,$3 div $0,2
38.227273
493
0.806183
30335998133598910de7aefd74f7c7dcf8c69d90
1,087
asm
Assembly
arch/x86-32/src/boot.asm
circutrider21/Night
27b12fec805c4710cbbdc7c3d09b87a7632123d7
[ "Apache-2.0" ]
4
2021-02-09T19:40:31.000Z
2021-12-17T15:39:18.000Z
arch/x86-32/src/boot.asm
circutrider21/Night
27b12fec805c4710cbbdc7c3d09b87a7632123d7
[ "Apache-2.0" ]
2
2021-03-04T18:49:37.000Z
2021-03-07T20:24:33.000Z
arch/x86-32/src/boot.asm
circutrider21/Night
27b12fec805c4710cbbdc7c3d09b87a7632123d7
[ "Apache-2.0" ]
null
null
null
; Copyright (c) 2021 Peeled Fruit Studios [BITS 32] global _start _start: mov esp, __stack push ebx jmp stublet [section .multiboot] ; Multiboot macros to make a few lines later more readable MULTIBOOT_PAGE_ALIGN equ 1<<0 MULTIBOOT_MEMORY_INFO equ 1<<1 MULTIBOOT_HEADER_MAGIC equ 0x1BADB002 MULTIBOOT_HEADER_FLAGS equ MULTIBOOT_PAGE_ALIGN | MULTIBOOT_MEMORY_INFO MULTIBOOT_CHECKSUM equ -(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS) ; This is the GRUB Multiboot header. A boot signature dd MULTIBOOT_HEADER_MAGIC dd MULTIBOOT_HEADER_FLAGS dd MULTIBOOT_CHECKSUM stublet: extern arch_main call arch_main jmp $ section .text global flush_gdt flush_gdt: mov eax, [esp+4] lgdt [eax] ; Load the new GDT pointer mov ax, 0x10 ; 0x10 is the offset in the GDT to our data segment mov ds, ax ; Load all data segment selectors mov es, ax mov fs, ax mov gs, ax mov ss, ax jmp 0x08:.flush .flush: ret global _idt_load extern idtp _idt_load: lidt [idtp] ret [section .bss] resb 8192 __stack:
20.12963
75
0.723091
aca803cb6959f3724d2230e9dfb61ff630d265a7
651
asm
Assembly
oeis/116/A116090.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/116/A116090.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/116/A116090.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A116090: Expansion of 1/(1-x^2*(1+x)^3). ; Submitted by Christian Krause ; 1,0,1,3,4,7,16,29,52,102,194,361,685,1301,2452,4633,8771,16577,31327,59241,112004,211724,400285,756786,1430710,2704817,5113647,9667590,18277014,34553692,65325542,123501151,233485250,441415867,834519021,1577700612,2982723523,5638990526,10660798289,20154781952,38103641048,72036871920,136189372297,257472939209,486765693153,920255312908,1739789499591,3289160582291,6218325456983,11756060712941,22225431015537,42018308330354,79437750107600,150181108972771,283925028858214,536774715302170 add $0,2 lpb $0 sub $0,2 mov $2,$3 bin $2,$0 add $1,$2 add $3,3 lpe mov $0,$1
46.5
486
0.801843
a7e39164f9b6beaf32507b1d8ed0fbb8928ed865
189
asm
Assembly
libsrc/stdio/abc800/getk.asm
andydansby/z88dk-mk2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
1
2020-09-15T08:35:49.000Z
2020-09-15T08:35:49.000Z
libsrc/stdio/abc800/getk.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
libsrc/stdio/abc800/getk.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
; ; ABC800 Routines ; ; getk() Read key status ; ; Oct 2007 - Stefano Bodrato ; ; ; $Id: getk.asm,v 1.1 2007/11/08 14:11:51 stefano Exp $ ; XLIB getk .getk call 2 ld l,a ld h,0 ret
9.45
55
0.613757
740372a8ff08224fd88db4e7749dd9959bcbe41d
374
asm
Assembly
programs/oeis/100/A100530.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/100/A100530.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/100/A100530.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A100530: Numbers == 0,2,5,9 modulo 10. ; 0,2,5,9,10,12,15,19,20,22,25,29,30,32,35,39,40,42,45,49,50,52,55,59,60,62,65,69,70,72,75,79,80,82,85,89,90,92,95,99,100,102,105,109,110,112,115,119,120,122,125,129,130,132,135,139,140,142,145,149,150,152,155 mov $2,$0 lpb $2,1 lpb $3,1 sub $0,4 trn $3,4 lpe add $0,$2 mov $3,$2 sub $2,1 trn $3,3 lpe mov $1,$0
23.375
209
0.606952
28b3590802ee257256a0796797edab41bcb7b5bd
2,156
asm
Assembly
fox32os/vulpine/main.asm
ry755/fox32
5c06c23941e4a1efae0440a6e8cf31d3f0714256
[ "MIT" ]
6
2022-01-27T06:55:52.000Z
2022-03-13T22:21:17.000Z
fox32os/vulpine/main.asm
ry755/fox32
5c06c23941e4a1efae0440a6e8cf31d3f0714256
[ "MIT" ]
null
null
null
fox32os/vulpine/main.asm
ry755/fox32
5c06c23941e4a1efae0440a6e8cf31d3f0714256
[ "MIT" ]
null
null
null
; vulpine window manager const VULPINE_VERSION_MAJOR: 0 const VULPINE_VERSION_MINOR: 1 const VULPINE_VERSION_PATCH: 0 entry: call enable_menu_bar call clear_menu_bar mov r0, menu_items_root mov r1, 0xFFFFFFFF call draw_menu_bar_root_items draw_wallpaper: ; open the wallpaper file and draw it mov r0, wallpaper_file_name mov r1, 0 mov r2, wallpaper_file_struct call ryfs_open cmp r0, 0 ifz jmp event_loop ; read the wallpaper file directly into the background framebuffer mov r0, wallpaper_file_struct mov r1, 0x02000000 call ryfs_read_whole_file event_loop: call get_next_event ; did the user click the menu bar? cmp r0, EVENT_TYPE_MENU_BAR_CLICK ifz mov r0, menu_items_root ifz call menu_bar_click_event ; is the user in a menu? cmp r0, EVENT_TYPE_MENU_UPDATE ifz call menu_update_event ; did the user click a menu item? cmp r0, EVENT_TYPE_MENU_CLICK ifz call menu_click_event call yield_task jmp event_loop menu_click_event: ; r2 contains the clicked root menu ; r3 contains the clicked menu item ; system cmp r2, 0 ifz call system_menu_click_event ret system_menu_click_event: ; r2 contains the clicked root menu ; r3 contains the clicked menu item ; shut down cmp r3, 0 ifz icl ifz halt ret wallpaper_file_name: data.str "wallpaprraw" wallpaper_file_struct: data.32 0 data.32 0 menu_items_root: data.8 1 ; number of menus data.32 menu_items_system_list data.32 menu_items_system_name ; pointer to menu list, pointer to menu name menu_items_system_name: data.8 6 data.str "System" data.8 0x00 ; text length, text, null-terminator menu_items_system_list: data.8 1 ; number of items data.8 11 ; menu width (usually longest item + 2) data.8 9 data.str "Shut Down" data.8 0x00 ; text length, text, null-terminator ; include system defs #include "../../fox32rom/fox32rom.def" #include "../fox32os.def"
25.666667
110
0.674861
ef5651e95eaf8970d84b2dafa08cb566dd710ee7
1,129
asm
Assembly
bubble_sort/bubble_sort.asm
KarlZylinski/x86-assembly-exercises
341718852209bf43c178b3e711d1d013a947dba7
[ "MIT" ]
null
null
null
bubble_sort/bubble_sort.asm
KarlZylinski/x86-assembly-exercises
341718852209bf43c178b3e711d1d013a947dba7
[ "MIT" ]
null
null
null
bubble_sort/bubble_sort.asm
KarlZylinski/x86-assembly-exercises
341718852209bf43c178b3e711d1d013a947dba7
[ "MIT" ]
null
null
null
global _main extern _printf extern _ExitProcess@4 ;;;;;;;;;;;; ; CODE ;;;;;;;;;;;; section .text ; number to print in eax print_number: push ebp mov ebp, esp push eax push number_format call _printf mov esp, ebp pop ebp ret print_all_numbers: push ebp mov ebp, esp push eax push ebx mov ebx, 0 .loop: mov eax, [numbers + ebx * 4] call print_number inc ebx cmp ebx, [num_numbers] jl .loop pop ebx pop eax mov esp, ebp pop ebp ret sort: push ebp mov ebp, esp push eax push ebx push ecx .start: mov ecx, 0 .loop: mov eax, ecx inc eax cmp eax, [num_numbers] jge .continue ; avoids comparing with number outside of numbers mov eax, [numbers + ecx * 4] mov ebx, [numbers + (ecx + 1) * 4] cmp eax, ebx jle .continue mov [numbers + (ecx + 1) * 4], eax mov [numbers + ecx * 4], ebx jmp .start .continue: inc ecx cmp ecx, [num_numbers] jl .loop .end: pop ecx pop ebx pop eax mov esp, ebp pop ebp ret _main: call sort call print_all_numbers push 0 call _ExitProcess@4 ;;;;;;;;;;;; ; DATA ;;;;;;;;;;;; section .data num_numbers: dd 14 numbers: dd 5,2,3,12,-1,225,1,231,255,294,15511,125,515115,-13343 number_format: db "%i", 10, 0
12.829545
65
0.685562
56030616a2290c7432091e5a0675a4457a91c0d5
6,046
asm
Assembly
Library/Chart/Axis/axisBuild.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Chart/Axis/axisBuild.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Chart/Axis/axisBuild.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: axisBuild.asm AUTHOR: John Wedgwood, Oct 21, 1991 METHODS: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- John 10/21/91 Initial revision DESCRIPTION: Code for building an axis. $Id: axisBuild.asm,v 1.1 97/04/04 17:45:24 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AxisCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AxisBuild %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Build an axis... CALLED BY: via MSG_CHART_OBJECT_BUILD PASS: *ds:si = Axis object ds:di = Instance data bp - BuildChangeFlags RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 11/ 7/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AxisBuild method dynamic AxisClass, MSG_CHART_OBJECT_BUILD uses ax,cx,dx,bp .enter ECCheckFlags bp, BuildChangeFlags test ds:[di].COI_state, mask COS_BUILT jnz afterFirst ; First-time build, set attributes clrdw ds:[di].AI_maxLabelSize afterFirst: ; ; If the data changed, then mark the geometry invalid as ; category titles may have changed ; test bp, mask BCF_DATA jz done mov ax, MSG_CHART_OBJECT_MARK_INVALID mov cx, mask COS_GEOMETRY_INVALID or mask COS_IMAGE_INVALID call ObjCallInstanceNoLock done: .leave mov di, offset AxisClass GOTO ObjCallSuperNoLock AxisBuild endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AxisCreateTitle %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: Create a title object for this axis PASS: *ds:si = AxisClass object ds:di = AxisClass instance data es = Segment of AxisClass. RETURN: nothing DESTROYED: nothing REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: If axis is VERTICAL: place title as first child in HorizComp object ELSE place title as last child in ChartGroup object KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 1/ 3/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AxisCreateTitle method dynamic AxisClass, MSG_AXIS_CREATE_TITLE uses ax,cx,dx,bp .enter EC < tst ds:[di].AI_title > EC < ERROR_NZ AXIS_ALREADY_HAS_TITLE > test ds:[di].AI_attr, mask AA_VERTICAL jz horizontal ; ; Set up params for Y-axis ; mov al, TT_Y_AXIS mov cl, CORT_90_DEGREES jmp create horizontal: mov al, TT_X_AXIS mov cl, CORT_0_DEGREES create: call UtilCreateTitleObject ; *ds:dx - new title ; ; Deref axis and stick title's chunk handle in axis instance ; data. ; DerefChartObject ds, si, di mov ds:[di].AI_title, dx ; ; Tell the title who its axis is ; mov cx, si ; axis mov si, dx ; title mov ax, MSG_TITLE_SET_AXIS call ObjCallInstanceNoLock .leave ret AxisCreateTitle endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AxisGetTitle %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: Return the chunk handle of the title object PASS: *ds:si - AxisClass object ds:di - AxisClass instance data es - segment of AxisClass RETURN: cx - chunk handle of title DESTROYED: nothing REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 1/14/94 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AxisGetTitle method dynamic AxisClass, MSG_AXIS_GET_TITLE mov cx, ds:[di].AI_title ret AxisGetTitle endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AxisDestroyTitle %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: Destroy a title for this axis PASS: *ds:si = AxisClass object ds:di = AxisClass instance data es = Segment of AxisClass. RETURN: DESTROYED: nothing REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 1/ 3/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AxisDestroyTitle method dynamic AxisClass, MSG_AXIS_DESTROY_TITLE lea di, ds:[di].AI_title call UtilDetachAndKill ret AxisDestroyTitle endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AxisClearAllGrObjes %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: Nuke the GROUP before calling the superclass PASS: *ds:si - AxisClass object ds:di - AxisClass instance data es - segment of AxisClass RETURN: nothing DESTROYED: nothing REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 1/17/93 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AxisClearAllGrObjes method dynamic AxisClass, MSG_CHART_OBJECT_CLEAR_ALL_GROBJES ; ; Call superclass FIRST so that all grobjects begin getting freed ; mov di, offset AxisClass call ObjCallSuperNoLock DerefChartObject ds, si, di movdw bxsi, ds:[di].AI_group call UtilClearGrObj ret AxisClearAllGrObjes endm AxisCode ends
20.494915
79
0.540026
e8215a13acf3ec8289afc23f1dcd17a1bc9b9ada
145
asm
Assembly
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/ドイツ_PAL/Ger_asm1/zel_int0.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/ドイツ_PAL/Ger_asm1/zel_int0.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/ドイツ_PAL/Ger_asm1/zel_int0.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: zel_int0.asm Type: file Size: 4885 Last-Modified: '2016-05-13T04:23:03Z' SHA-1: 7F800F04C6AA65C11D7A42C0FAC7B976B3638836 Description: null
20.714286
47
0.813793
56ede2b17d98ca852d0b0c2ceb747d6d1864c503
502
asm
Assembly
dino/lcs/enemy/5B.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
dino/lcs/enemy/5B.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
dino/lcs/enemy/5B.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
1
2020-12-17T08:59:10.000Z
2020-12-17T08:59:10.000Z
copyright zengfr site:http://github.com/zengfr/romhack 00FE54 move.b ($e,A2), ($5b,A0) [enemy+5C, etc+5C, item+5C] 00FE5A move.b ($f,A2), ($96,A0) [enemy+5B, etc+5B, item+5B] 00FF18 move.b ($e,A2), ($5b,A0) 00FF1E move.b ($f,A2), ($96,A0) 033B0C move.b ($5b,A6), D0 033B10 bpl $33b1a [enemy+5B] 0458D4 move.b ($5b,A6), D0 0458D8 move.b ($5b,A6), ($24,A6) 0459CE move.b ($5b,A6), D0 0459D2 move.b ($5b,A6), ($24,A6) copyright zengfr site:http://github.com/zengfr/romhack
33.466667
61
0.613546
c967c1cd38087fb4acbbce9534643e20ff607a0d
291
asm
Assembly
programs/oeis/104/A104594.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/104/A104594.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/104/A104594.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A104594: A129760/2. ; 0,0,1,0,2,2,3,0,4,4,5,4,6,6,7,0,8,8,9,8,10,10,11,8,12,12,13,12,14,14,15,0,16,16,17,16,18,18,19,16,20,20,21,20,22,22,23,16,24,24,25,24,26,26,27,24,28,28,29,28,30,30,31,0,32,32,33,32,34,34,35,32,36,36,37,36,38,38,39 add $0,1 mov $1,$0 gcd $0,262144 sub $1,$0 div $1,2
32.333333
215
0.618557
de0427f6f438c667d0b4d74d7e5289eb648c897e
7,393
asm
Assembly
P6/data_P6_2/cal_R_test3.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
1
2022-01-23T09:24:47.000Z
2022-01-23T09:24:47.000Z
P6/data_P6_2/cal_R_test3.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
P6/data_P6_2/cal_R_test3.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
lui $1,28810 ori $1,$1,9235 lui $2,51104 ori $2,$2,17579 lui $3,50543 ori $3,$3,53013 lui $4,55846 ori $4,$4,16973 lui $5,65216 ori $5,$5,20646 lui $6,7148 ori $6,$6,58251 mthi $1 mtlo $2 sec0: nop nop nop sltu $2,$6,$2 sec1: nop nop slt $6,$2,$2 sltu $3,$6,$2 sec2: nop nop xori $6,$2,22323 sltu $4,$6,$2 sec3: nop nop mfhi $6 sltu $6,$6,$2 sec4: nop nop lh $6,2($0) sltu $3,$6,$2 sec5: nop sltu $6,$2,$3 nop sltu $3,$6,$2 sec6: nop addu $6,$2,$5 nor $6,$4,$1 sltu $0,$6,$2 sec7: nop addu $6,$3,$4 ori $6,$3,15952 sltu $0,$6,$2 sec8: nop subu $6,$6,$6 mfhi $6 sltu $4,$6,$2 sec9: nop slt $6,$1,$3 lh $6,4($0) sltu $2,$6,$2 sec10: nop andi $6,$2,29801 nop sltu $3,$6,$2 sec11: nop sltiu $6,$4,18060 sltu $6,$4,$2 sltu $5,$6,$2 sec12: nop lui $6,1620 sltiu $6,$4,24307 sltu $5,$6,$2 sec13: nop xori $6,$2,18834 mfhi $6 sltu $5,$6,$2 sec14: nop xori $6,$1,2608 lh $6,12($0) sltu $1,$6,$2 sec15: nop mfhi $6 nop sltu $1,$6,$2 sec16: nop mflo $6 addu $6,$1,$4 sltu $4,$6,$2 sec17: nop mfhi $6 slti $6,$3,31776 sltu $3,$6,$2 sec18: nop mfhi $6 mflo $6 sltu $4,$6,$2 sec19: nop mflo $6 lhu $6,2($0) sltu $5,$6,$2 sec20: nop lbu $6,7($0) nop sltu $3,$6,$2 sec21: nop lhu $6,4($0) or $6,$3,$2 sltu $4,$6,$2 sec22: nop lh $6,8($0) ori $6,$5,39906 sltu $3,$6,$2 sec23: nop lh $6,14($0) mfhi $6 sltu $2,$6,$2 sec24: nop lw $6,0($0) lw $6,12($0) sltu $1,$6,$2 sec25: slt $6,$3,$6 nop nop sltu $1,$6,$2 sec26: and $6,$0,$3 nop slt $6,$2,$2 sltu $4,$6,$2 sec27: and $6,$0,$3 nop slti $6,$3,4301 sltu $0,$6,$2 sec28: sltu $6,$3,$2 nop mfhi $6 sltu $1,$6,$2 sec29: subu $6,$3,$2 nop lbu $6,3($0) sltu $4,$6,$2 sec30: slt $6,$2,$2 slt $6,$1,$4 nop sltu $5,$6,$2 sec31: nor $6,$2,$5 slt $6,$2,$1 nor $6,$3,$5 sltu $2,$6,$2 sec32: slt $6,$5,$1 and $6,$3,$1 lui $6,21669 sltu $6,$6,$2 sec33: addu $6,$3,$5 subu $6,$4,$0 mfhi $6 sltu $5,$6,$2 sec34: or $6,$0,$5 and $6,$1,$2 lhu $6,2($0) sltu $3,$6,$2 sec35: sltu $6,$1,$1 ori $6,$3,34155 nop sltu $2,$6,$2 sec36: nor $6,$4,$2 slti $6,$5,-10982 slt $6,$0,$2 sltu $3,$6,$2 sec37: xor $6,$1,$4 sltiu $6,$3,31379 lui $6,64702 sltu $3,$6,$2 sec38: and $6,$6,$0 xori $6,$3,35951 mflo $6 sltu $3,$6,$2 sec39: or $6,$2,$2 andi $6,$6,28220 lh $6,10($0) sltu $3,$6,$2 sec40: nor $6,$1,$0 mfhi $6 nop sltu $5,$6,$2 sec41: sltu $6,$3,$0 mfhi $6 nor $6,$3,$6 sltu $6,$6,$2 sec42: sltu $6,$6,$1 mflo $6 lui $6,37085 sltu $4,$6,$2 sec43: and $6,$2,$4 mflo $6 mflo $6 sltu $4,$6,$2 sec44: and $6,$5,$3 mfhi $6 lh $6,16($0) sltu $6,$6,$2 sec45: and $6,$5,$1 lhu $6,6($0) nop sltu $2,$6,$2 sec46: and $6,$4,$3 lbu $6,1($0) nor $6,$6,$4 sltu $4,$6,$2 sec47: and $6,$2,$5 lbu $6,16($0) addiu $6,$4,3395 sltu $1,$6,$2 sec48: xor $6,$1,$1 lb $6,9($0) mfhi $6 sltu $4,$6,$2 sec49: and $6,$3,$3 lh $6,2($0) lbu $6,1($0) sltu $3,$6,$2 sec50: xori $6,$3,61100 nop nop sltu $4,$6,$2 sec51: xori $6,$4,43780 nop nor $6,$3,$3 sltu $4,$6,$2 sec52: andi $6,$1,12324 nop xori $6,$2,54731 sltu $3,$6,$2 sec53: ori $6,$3,46319 nop mflo $6 sltu $5,$6,$2 sec54: lui $6,28452 nop lhu $6,4($0) sltu $1,$6,$2 sec55: xori $6,$4,56979 subu $6,$4,$2 nop sltu $4,$6,$2 sec56: andi $6,$4,34072 slt $6,$6,$3 sltu $6,$3,$1 sltu $5,$6,$2 sec57: andi $6,$4,55873 nor $6,$5,$6 sltiu $6,$3,20653 sltu $2,$6,$2 sec58: addiu $6,$1,-16473 xor $6,$6,$6 mflo $6 sltu $4,$6,$2 sec59: addiu $6,$3,-17182 and $6,$4,$2 lh $6,12($0) sltu $4,$6,$2 sec60: sltiu $6,$1,1150 xori $6,$4,4999 nop sltu $0,$6,$2 sec61: lui $6,6551 lui $6,55908 nor $6,$3,$4 sltu $3,$6,$2 sec62: andi $6,$2,8125 lui $6,61318 ori $6,$0,55216 sltu $3,$6,$2 sec63: xori $6,$1,30212 ori $6,$3,44902 mflo $6 sltu $4,$6,$2 sec64: addiu $6,$2,-32738 slti $6,$2,-3663 lbu $6,6($0) sltu $3,$6,$2 sec65: sltiu $6,$4,1889 mfhi $6 nop sltu $5,$6,$2 sec66: slti $6,$3,-28402 mflo $6 sltu $6,$1,$6 sltu $3,$6,$2 sec67: slti $6,$2,27621 mflo $6 lui $6,53655 sltu $4,$6,$2 sec68: sltiu $6,$4,17663 mflo $6 mflo $6 sltu $1,$6,$2 sec69: lui $6,5422 mflo $6 lh $6,8($0) sltu $5,$6,$2 sec70: sltiu $6,$0,-14566 lhu $6,8($0) nop sltu $5,$6,$2 sec71: lui $6,23889 lhu $6,8($0) or $6,$5,$5 sltu $1,$6,$2 sec72: ori $6,$3,20375 lw $6,12($0) andi $6,$0,25390 sltu $1,$6,$2 sec73: andi $6,$6,39016 lbu $6,12($0) mflo $6 sltu $1,$6,$2 sec74: slti $6,$1,-3418 lw $6,12($0) lw $6,0($0) sltu $4,$6,$2 sec75: mflo $6 nop nop sltu $6,$6,$2 sec76: mfhi $6 nop nor $6,$1,$3 sltu $3,$6,$2 sec77: mfhi $6 nop xori $6,$2,8592 sltu $5,$6,$2 sec78: mflo $6 nop mflo $6 sltu $1,$6,$2 sec79: mflo $6 nop lw $6,12($0) sltu $1,$6,$2 sec80: mfhi $6 xor $6,$1,$4 nop sltu $2,$6,$2 sec81: mflo $6 slt $6,$3,$2 addu $6,$5,$0 sltu $4,$6,$2 sec82: mfhi $6 subu $6,$2,$5 xori $6,$4,1854 sltu $2,$6,$2 sec83: mfhi $6 sltu $6,$0,$1 mflo $6 sltu $3,$6,$2 sec84: mflo $6 xor $6,$3,$3 lhu $6,0($0) sltu $5,$6,$2 sec85: mflo $6 xori $6,$4,12625 nop sltu $1,$6,$2 sec86: mfhi $6 andi $6,$3,55462 sltu $6,$1,$2 sltu $4,$6,$2 sec87: mflo $6 slti $6,$1,5838 slti $6,$3,-27619 sltu $1,$6,$2 sec88: mfhi $6 xori $6,$2,38784 mfhi $6 sltu $2,$6,$2 sec89: mfhi $6 andi $6,$2,50370 lh $6,6($0) sltu $2,$6,$2 sec90: mflo $6 mfhi $6 nop sltu $4,$6,$2 sec91: mfhi $6 mflo $6 or $6,$2,$3 sltu $5,$6,$2 sec92: mflo $6 mflo $6 andi $6,$1,65151 sltu $4,$6,$2 sec93: mflo $6 mflo $6 mfhi $6 sltu $3,$6,$2 sec94: mfhi $6 mfhi $6 lhu $6,14($0) sltu $4,$6,$2 sec95: mfhi $6 lb $6,15($0) nop sltu $6,$6,$2 sec96: mfhi $6 lh $6,6($0) nor $6,$2,$5 sltu $3,$6,$2 sec97: mfhi $6 lh $6,0($0) lui $6,52221 sltu $3,$6,$2 sec98: mfhi $6 lb $6,3($0) mflo $6 sltu $3,$6,$2 sec99: mflo $6 lw $6,16($0) lw $6,12($0) sltu $3,$6,$2 sec100: lb $6,8($0) nop nop sltu $3,$6,$2 sec101: lb $6,6($0) nop subu $6,$6,$2 sltu $5,$6,$2 sec102: lbu $6,4($0) nop slti $6,$6,13247 sltu $2,$6,$2 sec103: lbu $6,16($0) nop mfhi $6 sltu $2,$6,$2 sec104: lhu $6,8($0) nop lh $6,14($0) sltu $3,$6,$2 sec105: lbu $6,9($0) xor $6,$3,$5 nop sltu $5,$6,$2 sec106: lb $6,7($0) slt $6,$3,$1 or $6,$5,$3 sltu $4,$6,$2 sec107: lbu $6,2($0) and $6,$2,$6 ori $6,$2,45734 sltu $4,$6,$2 sec108: lbu $6,3($0) subu $6,$0,$2 mflo $6 sltu $2,$6,$2 sec109: lb $6,1($0) subu $6,$2,$4 lb $6,9($0) sltu $3,$6,$2 sec110: lb $6,4($0) xori $6,$2,48159 nop sltu $5,$6,$2 sec111: lhu $6,4($0) ori $6,$0,929 and $6,$1,$0 sltu $3,$6,$2 sec112: lbu $6,7($0) sltiu $6,$5,31560 addiu $6,$4,-14684 sltu $3,$6,$2 sec113: lb $6,14($0) lui $6,4687 mfhi $6 sltu $1,$6,$2 sec114: lhu $6,6($0) ori $6,$5,38372 lh $6,4($0) sltu $2,$6,$2 sec115: lh $6,8($0) mfhi $6 nop sltu $3,$6,$2 sec116: lh $6,14($0) mflo $6 xor $6,$0,$3 sltu $3,$6,$2 sec117: lb $6,16($0) mflo $6 lui $6,31174 sltu $4,$6,$2 sec118: lh $6,12($0) mfhi $6 mflo $6 sltu $3,$6,$2 sec119: lw $6,12($0) mflo $6 lbu $6,14($0) sltu $4,$6,$2 sec120: lb $6,3($0) lh $6,4($0) nop sltu $1,$6,$2 sec121: lw $6,16($0) lbu $6,1($0) and $6,$1,$4 sltu $1,$6,$2 sec122: lb $6,14($0) lw $6,12($0) xori $6,$3,7819 sltu $2,$6,$2 sec123: lhu $6,14($0) lh $6,8($0) mfhi $6 sltu $6,$6,$2 sec124: lh $6,12($0) lbu $6,4($0) lbu $6,14($0) sltu $1,$6,$2
11.551563
19
0.530231
e0e77696ce71496b9dc496142074497d41887984
5,759
asm
Assembly
lib/pc6001_crt0.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
lib/pc6001_crt0.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
lib/pc6001_crt0.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; Startup for NEC PC6001 computers ; ; Stefano Bodrato - Jan 2013 ; ; If an error occurs eg break we just drop back to BASIC ; ; $Id: pc6001_crt0.asm,v 1.3 2015/01/21 07:05:00 stefano Exp $ ; MODULE pc6001_crt0 ;-------- ; Include zcc_opt.def to find out some info ;-------- INCLUDE "zcc_opt.def" ;-------- ; Some scope definitions ;-------- EXTERN _main ; main() is always external to crt0 code PUBLIC cleanup ;jp'd to by exit() PUBLIC l_dcal ;jp(hl) PUBLIC _vfprintf ;jp to the printf() core PUBLIC exitsp ;atexit() variables PUBLIC exitcount PUBLIC heaplast ;Near malloc heap variables PUBLIC heapblocks PUBLIC __sgoioblk ;stdio info block ;Graphic function PUBLICS.. PUBLIC coords ;Current xy position PUBLIC base_graphics ;GFX memory related variables ;PUBLIC gfx_bank ;PUBLIC snd_tick ;Sound variable IF (startup=2) defc myzorg = $8437 ; PC6001 - 32k (Answer "2" to "How many pages?") ENDIF IF (startup=3) defc myzorg = $8037 ; PC6001 - MK2 (Answer "2" to "How many pages?") ENDIF IF (startup=4) defc myzorg = $4004 ; ROM ENDIF IF !myzorg defc myzorg = $c437 ; PC6001 - 16K ENDIF ; Now, getting to the real stuff now! org myzorg start: ;di ;ld a,$DD ;out ($F0),a ;out ($F1),a ; on entry HL holds the current location ;IF (myzorg=$c437) ; ; if we built a 16K program and we run in a 32k environment, then let's relocate it. ; ld a,$c4 ; cp h ; jr z,noreloc ; ; if we're still here, then HL should be = $8437 ; ld de,$c437 ; ld bc,$3700 ; This works for programs smaller than 14k ; ldir ; jp $c437+17 ;noreloc: ;ENDIF ld (start1+1),sp ;Save entry stack IF STACKPTR ld sp,STACKPTR ENDIF ;ELSE ; ld sp,$FFFF ;ENDIF ;ld hl,-64 ;add hl,sp ;ld sp,hl ;ld sp,$F000 ld hl,-64 add hl,sp ld sp,hl ld (exitsp),sp ; Optional definition for auto MALLOC init ; it assumes we have free space between the end of ; the compiled program and the stack pointer IF DEFINED_USING_amalloc INCLUDE "amalloc.def" ENDIF IF !DEFINED_nostreams IF DEFINED_ANSIstdio ; Set up the std* stuff so we can be called again ld hl,__sgoioblk+2 ld (hl),19 ;stdin ld hl,__sgoioblk+6 ld (hl),21 ;stdout ld hl,__sgoioblk+10 ld (hl),21 ;stderr ENDIF ENDIF call _main cleanup: ; ; Deallocate memory which has been allocated here! ; ; push hl IF !DEFINED_nostreams IF DEFINED_ANSIstdio EXTERN closeall call closeall ENDIF ENDIF ; pop bc start1: ld sp,0 ;ei ret l_dcal: jp (hl) ;----------- ; Define the stdin/out/err area. For the z88 we have two models - the ; classic (kludgey) one and "ANSI" model ;----------- __sgoioblk: IF DEFINED_ANSIstdio INCLUDE "stdio_fp.asm" ELSE defw -11,-12,-10 ENDIF ;--------------------------------- ; Select which printf core we want ;--------------------------------- _vfprintf: IF DEFINED_floatstdio EXTERN vfprintf_fp jp vfprintf_fp ELSE IF DEFINED_complexstdio EXTERN vfprintf_comp jp vfprintf_comp ELSE IF DEFINED_ministdio EXTERN vfprintf_mini jp vfprintf_mini ENDIF ENDIF ENDIF ;----------- ; Now some variables ;----------- coords: defw 0 ; Current graphics xy coordinates base_graphics: defw 0 ; Address of the Graphics map ;gfx_bank: defb 0 IF !DEFINED_HAVESEED PUBLIC _std_seed ;Integer rand() seed _std_seed: defw 0 ; Seed for integer rand() routines ENDIF exitsp: defw 0 ; Address of where the atexit() stack is exitcount: defb 0 ; How many routines on the atexit() stack heaplast: defw 0 ; Address of last block on heap heapblocks: defw 0 ; Number of blocks IF DEFINED_USING_amalloc EXTERN ASMTAIL PUBLIC _heap ; The heap pointer will be wiped at startup, ; but first its value (based on ASMTAIL) ; will be kept for sbrk() to setup the malloc area _heap: defw ASMTAIL ; Location of the last program byte defw 0 ENDIF ;IF DEFINED_NEED1bitsound ;snd_tick: defb 0 ; Sound variable ;ENDIF defm "Small C+ PC6001" defb 0 ;All the float stuff is kept in a different file...for ease of altering! ;It will eventually be integrated into the library ; ;Here we have a minor (minor!) problem, we've no idea if we need the ;float package if this is separated from main (we had this problem before ;but it wasn't critical..so, now we will have to read in a file from ;the directory (this will be produced by zcc) which tells us if we need ;the floatpackage, and if so what it is..kludgey, but it might just work! ; ;Brainwave time! The zcc_opt file could actually be written by the ;compiler as it goes through the modules, appending as necessary - this ;way we only include the package if we *really* need it! IF NEED_floatpack INCLUDE "float.asm" ;seed for random number generator - not used yet.. fp_seed: defb $80,$80,0,0,0,0 ;Floating point registers... extra: defs 6 fa: defs 6 fasign: defb 0 ENDIF
23.410569
86
0.580656
210a96882836234792cd26b77dfea225a15896d2
57
asm
Assembly
windowsAssembly/alignconstbytes.asm
Jordank321/GaryLang
5fe4677cf8bf114c74325cc1ad78660dd65340ce
[ "MIT" ]
null
null
null
windowsAssembly/alignconstbytes.asm
Jordank321/GaryLang
5fe4677cf8bf114c74325cc1ad78660dd65340ce
[ "MIT" ]
null
null
null
windowsAssembly/alignconstbytes.asm
Jordank321/GaryLang
5fe4677cf8bf114c74325cc1ad78660dd65340ce
[ "MIT" ]
null
null
null
align 16 ; align data constants to the 16 byte boundary
28.5
56
0.77193
acc7284a9862e101be52865f2abc59c51440b74a
310
asm
Assembly
okk/lab2/lab2_emu.asm
smithros/kpi-stuff
60da5f960ab6ab3d1c2b0ea451d4d113c333d7ad
[ "MIT" ]
21
2021-01-20T19:49:31.000Z
2021-12-15T20:26:18.000Z
okk/lab2/lab2_emu.asm
smithros/kpi-stuff
60da5f960ab6ab3d1c2b0ea451d4d113c333d7ad
[ "MIT" ]
1
2021-03-13T17:24:41.000Z
2021-05-28T18:33:49.000Z
okk/lab2/lab2_emu.asm
smithros/kpi-stuff
60da5f960ab6ab3d1c2b0ea451d4d113c333d7ad
[ "MIT" ]
3
2021-02-16T17:41:16.000Z
2022-03-25T13:18:04.000Z
ORG 100H JMP begin ARRAY DB 3,6,9,2,8,4,5,7,1,3 begin: MOV CX, 9 MOV BX, 0 next: MOV AL, ARRAY[BX] TEST AL, 1 JNE n_xch PUSH AX MOV AL, ARRAY[BX+1] TEST AL, 1 JZ n_xch MOV ARRAY[BX], AL POP AX MOV ARRAY[BX+1], AL INC CX DEC BX JMP next n_xch: INC BX LOOP next END
12.916667
29
0.583871
af334124a20f544876add907106cc308adc70d59
1,666
asm
Assembly
chap18/ex13/transpose_avx512.asm
JamesType/optimization-manual
61cdcebb16e0768a6ab7e85ed535e64e9d8cc31a
[ "0BSD" ]
374
2021-06-08T10:42:01.000Z
2022-03-29T14:21:45.000Z
chap18/ex13/transpose_avx512.asm
JamesType/optimization-manual
61cdcebb16e0768a6ab7e85ed535e64e9d8cc31a
[ "0BSD" ]
1
2021-06-11T20:24:02.000Z
2021-06-11T20:24:02.000Z
chap18/ex13/transpose_avx512.asm
JamesType/optimization-manual
61cdcebb16e0768a6ab7e85ed535e64e9d8cc31a
[ "0BSD" ]
39
2021-06-08T11:25:29.000Z
2022-03-05T05:14:17.000Z
; ; Copyright (C) 2021 by Intel Corporation ; ; Permission to use, copy, modify, and/or distribute this software for any ; purpose with or without fee is hereby granted. ; ; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH ; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY ; AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, ; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM ; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR ; OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR ; PERFORMANCE OF THIS SOFTWARE. ; ; .globl transpose_avx512 ; void transpose_avx512(uint16_t *out, const uint16_t *in) ; On entry: ; rcx = out ; rdx = in _RDATA SEGMENT READ ALIGN(64) 'DATA' permMaskBuffer DW 0, 8, 16, 24, 32, 40, 48, 56 DW 1, 9, 17, 25, 33, 41, 49, 57 DW 2, 10, 18, 26, 34, 42, 50, 58 DW 3, 11, 19, 27, 35, 43, 51, 59 DW 4, 12, 20, 28, 36, 44, 52, 60 DW 5, 13, 21, 29, 37, 45, 53, 61 DW 6, 14, 22, 30, 38, 46, 54, 62 DW 7, 15, 23, 31, 39, 47, 55, 63 _RDATA ENDS .code transpose_avx512 PROC public lea rax, permMaskBuffer ; mov rax, permMaskBuffer vmovdqa32 zmm4, [rax] vmovdqa32 zmm5, [rax+40h] ; mov rdx, pImage ; mov rcx, pOutImage xor r8, r8 matrix_loop: vmovdqa32 zmm2, [rdx] vmovdqa32 zmm3, [rdx+40h] vmovdqa32 zmm0, zmm4 vmovdqa32 zmm1, zmm5 vpermi2w zmm0, zmm2, zmm3 vpermi2w zmm1, zmm2, zmm3 vmovdqa32 [rcx], zmm0 vmovdqa32 [rcx+40h], zmm1 add r8, 1 add rdx, 64*2 add rcx, 64*2 cmp r8, 50 jne matrix_loop vzeroupper ret transpose_avx512 ENDP end
25.630769
79
0.702881
416085965cd653824891f78f2d9ecbf2fe68b934
789
asm
Assembly
programs/oeis/323/A323170.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/323/A323170.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/323/A323170.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A323170: a(n) = 1 if (2*phi(n)) < n, 0 otherwise, where phi is Euler totient function (A000010). ; 0,0,0,0,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 mov $1,5 mov $2,1 lpb $0 mov $3,$0 cal $3,10 ; Euler totient function phi(n): count numbers <= n and prime to n. mov $0,1 add $1,1 add $2,$3 sub $0,$2 mul $0,2 lpe sub $1,5
49.3125
501
0.533587
e9236f617ee42aa61396c8e330c768bbc88201a4
308
asm
Assembly
programs/oeis/229/A229718.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/229/A229718.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/229/A229718.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A229718: Number of arrays of length 2 that are sums of n consecutive elements of length 2+n-1 permutations of 0..2+n-2, and no two consecutive rises or falls in the latter permutation. ; 2,4,8,18,26,40,52,70,86,108,128,154,178,208 mov $2,$0 add $0,2 bin $0,2 sub $2,1 mod $2,2 sub $0,$2 sub $0,1 mul $0,2
25.666667
186
0.698052
d34ed9b0b2f1a20a21714b9d14e48b3bb09c5b83
1,296
asm
Assembly
Web/asm/examples/Powers.asm
visrealm/vrcpu
f42ae80bd1e89e3877b88f1766f5facc5841594f
[ "MIT" ]
102
2019-09-24T21:12:05.000Z
2022-02-20T06:51:25.000Z
Web/asm/examples/Powers.asm
visrealm/vrcpu
f42ae80bd1e89e3877b88f1766f5facc5841594f
[ "MIT" ]
null
null
null
Web/asm/examples/Powers.asm
visrealm/vrcpu
f42ae80bd1e89e3877b88f1766f5facc5841594f
[ "MIT" ]
13
2019-09-25T19:52:10.000Z
2021-09-24T00:44:40.000Z
; Show all power series (n^1, n^2, n^3, ...) up to base 15. Limited ; to results <= 255 ADDR_BASE = 0x00 .begin: clra data SP, 0xff ; stack to end (255) inc Ra ; set Ra to 1 sto Ra, ADDR_BASE ; set starting base (1) .loop: lod Ra, ADDR_BASE ; get the last base inc Ra ; increment it data Rb, 0x0f ; value to test(and) against and Ra ; only interested in 1 to 15 jz .begin ; if we're greater than 15, start again sto Ra, ADDR_BASE ; store current base in memory mov Rd, Ra ; output current base to display mov Rb, Ra ; store current base in Rb (Ra, Rb and Rd contain base) call .nextPower ; show powers for next base jmp .loop ; again! .nextPower: data Rc, 0x00 ; reset our result to zero .powerAdder: dec Ra ; each iteration we need to add 'base' times jnn .doAdd ; if we've already added 'base' times mov Rd, Rc ; output current result to display mov Rb, Rc ; set current result as the value to add next lod Ra, ADDR_BASE ; reset 'base' counter jmp .nextPower .doAdd: add Rc, Rb ; iteration add current result to temp (Rc) jnc .powerAdder ; if we haven't gone over 255, go again ret ; finished this base
34.105263
75
0.611111
f46cbf5da06529a2083330e6602864ec7f713096
485
asm
Assembly
programs/oeis/273/A273744.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/273/A273744.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/273/A273744.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A273744: Partial sums of the number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 901", based on the 5-celled von Neumann neighborhood. ; 1,9,34,83,164,285,454,679,968,1329,1770,2299,2924,3653,4494,5455,6544,7769,9138,10659,12340,14189,16214,18423,20824,23425,26234,29259,32508,35989,39710,43679,47904,52393,57154,62195,67524,73149,79078,85319,91880,98769 mov $2,$0 add $0,3 add $0,$2 bin $0,3 trn $0,2 mov $1,$0 add $1,1
44.090909
219
0.754639
140664274fd82af782a4cb5a5a7ae465ec915b07
130,950
asm
Assembly
hocuspocus_src/hocuspocus.asm
derekfountain/z88dk-arkos-tracker2-example
a5e099c321612d071935f23c9045b13a51e522d4
[ "MIT" ]
null
null
null
hocuspocus_src/hocuspocus.asm
derekfountain/z88dk-arkos-tracker2-example
a5e099c321612d071935f23c9045b13a51e522d4
[ "MIT" ]
null
null
null
hocuspocus_src/hocuspocus.asm
derekfountain/z88dk-arkos-tracker2-example
a5e099c321612d071935f23c9045b13a51e522d4
[ "MIT" ]
null
null
null
; Hocus Pocus, AKG format, v1.0. ; Generated by Arkos Tracker 2. org 49152 HocusPocus_Start HocusPocus_StartDisarkGenerateExternalLabel HocusPocus_DisarkByteRegionStart0 db "AT20" HocusPocus_DisarkPointerRegionStart1 dw HocusPocus_ArpeggioTable ; The address of the Arpeggio table. dw HocusPocus_PitchTable ; The address of the Pitch table. dw HocusPocus_InstrumentTable ; The address of the Instrument table. dw HocusPocus_EffectBlockTable ; The address of the Effect Block table. HocusPocus_DisarkPointerRegionEnd1 ; The addresses of each Subsong: HocusPocus_DisarkPointerRegionStart2 dw HocusPocus_Subsong0_Start HocusPocus_DisarkPointerRegionEnd2 ; Declares all the Arpeggios. HocusPocus_ArpeggioTable HocusPocus_DisarkPointerRegionStart3 dw HocusPocus_Arpeggio1 dw HocusPocus_Arpeggio2 dw HocusPocus_Arpeggio3 dw HocusPocus_Arpeggio4 dw HocusPocus_Arpeggio5 dw HocusPocus_Arpeggio6 dw HocusPocus_Arpeggio7 dw HocusPocus_Arpeggio8 HocusPocus_DisarkPointerRegionEnd3 HocusPocus_Arpeggio1 db 2 ; The speed. db 0 db 3 db 3 db 1 db -12 db 1 db 3 db 12 db -128 HocusPocus_DisarkWordForceReference4 dw HocusPocus_Arpeggio1 + 0 + 1 ; Loop. HocusPocus_Arpeggio2 db 4 ; The speed. db 0 db -2 db -4 db -5 db -128 HocusPocus_DisarkWordForceReference5 dw HocusPocus_Arpeggio2 + 0 + 1 ; Loop. HocusPocus_Arpeggio3 db 1 ; The speed. db 0 db 3 db 7 db -128 HocusPocus_DisarkWordForceReference6 dw HocusPocus_Arpeggio3 + 0 + 1 ; Loop. HocusPocus_Arpeggio4 db 2 ; The speed. db 0 db -5 db -128 HocusPocus_DisarkWordForceReference7 dw HocusPocus_Arpeggio4 + 0 + 1 ; Loop. HocusPocus_Arpeggio5 db 2 ; The speed. db 0 db -4 db -128 HocusPocus_DisarkWordForceReference8 dw HocusPocus_Arpeggio5 + 0 + 1 ; Loop. HocusPocus_Arpeggio6 db 1 ; The speed. db 0 db 12 db -128 HocusPocus_DisarkWordForceReference9 dw HocusPocus_Arpeggio6 + 0 + 1 ; Loop. HocusPocus_Arpeggio7 db 1 ; The speed. db 0 db -7 db -128 HocusPocus_DisarkWordForceReference10 dw HocusPocus_Arpeggio7 + 0 + 1 ; Loop. HocusPocus_Arpeggio8 db 1 ; The speed. db 0 db -4 db -128 HocusPocus_DisarkWordForceReference11 dw HocusPocus_Arpeggio8 + 0 + 1 ; Loop. ; Declares all the Pitches. HocusPocus_PitchTable HocusPocus_DisarkPointerRegionStart12 dw HocusPocus_Pitch1 dw HocusPocus_Pitch2 HocusPocus_DisarkPointerRegionEnd12 HocusPocus_Pitch1 db 3 ; The speed. dw 0 HocusPocus_Pitch1_GotoNextForLine0 HocusPocus_DisarkWordForceReference13 dw HocusPocus_Pitch1_GotoNextForLine0 + 2 dw 0 HocusPocus_Pitch1_GotoNextForLine1 HocusPocus_DisarkWordForceReference14 dw HocusPocus_Pitch1_GotoNextForLine1 + 2 dw -1 HocusPocus_Pitch1_GotoNextForLine2 HocusPocus_DisarkWordForceReference15 dw HocusPocus_Pitch1_GotoNextForLine2 + 2 dw -2 HocusPocus_DisarkWordForceReference16 dw HocusPocus_Pitch1 + 4 * 0 + 1 HocusPocus_Pitch2 db 1 ; The speed. dw 0 HocusPocus_Pitch2_GotoNextForLine0 HocusPocus_DisarkWordForceReference17 dw HocusPocus_Pitch2_GotoNextForLine0 + 2 dw 0 HocusPocus_Pitch2_GotoNextForLine1 HocusPocus_DisarkWordForceReference18 dw HocusPocus_Pitch2_GotoNextForLine1 + 2 dw 0 HocusPocus_Pitch2_GotoNextForLine2 HocusPocus_DisarkWordForceReference19 dw HocusPocus_Pitch2_GotoNextForLine2 + 2 dw -1 HocusPocus_Pitch2_GotoNextForLine3 HocusPocus_DisarkWordForceReference20 dw HocusPocus_Pitch2_GotoNextForLine3 + 2 dw -2 HocusPocus_Pitch2_GotoNextForLine4 HocusPocus_DisarkWordForceReference21 dw HocusPocus_Pitch2_GotoNextForLine4 + 2 dw -3 HocusPocus_Pitch2_GotoNextForLine5 HocusPocus_DisarkWordForceReference22 dw HocusPocus_Pitch2_GotoNextForLine5 + 2 dw -2 HocusPocus_DisarkWordForceReference23 dw HocusPocus_Pitch2 + 4 * 0 + 1 ; Declares all the Instruments. HocusPocus_InstrumentTable HocusPocus_DisarkPointerRegionStart24 dw HocusPocus_EmptyInstrument dw HocusPocus_Instrument1 dw HocusPocus_Instrument2 dw HocusPocus_Instrument3 dw HocusPocus_Instrument4 dw HocusPocus_Instrument5 dw HocusPocus_Instrument6 dw HocusPocus_Instrument7 dw HocusPocus_Instrument8 dw HocusPocus_Instrument9 dw HocusPocus_Instrument10 dw HocusPocus_Instrument11 dw HocusPocus_Instrument12 dw HocusPocus_Instrument13 dw HocusPocus_Instrument14 dw HocusPocus_Instrument15 dw HocusPocus_Instrument16 dw HocusPocus_Instrument17 dw HocusPocus_Instrument18 dw HocusPocus_Instrument19 dw HocusPocus_Instrument20 dw HocusPocus_Instrument21 dw HocusPocus_Instrument22 dw HocusPocus_Instrument23 dw HocusPocus_Instrument24 dw HocusPocus_Instrument25 dw HocusPocus_Instrument26 dw HocusPocus_Instrument27 dw HocusPocus_Instrument28 dw HocusPocus_Instrument29 dw HocusPocus_Instrument30 dw HocusPocus_Instrument31 dw HocusPocus_Instrument32 dw HocusPocus_Instrument33 dw HocusPocus_Instrument34 dw HocusPocus_Instrument35 HocusPocus_DisarkPointerRegionEnd24 HocusPocus_EmptyInstrument db 0 ; The speed (>0, 0 for 256). HocusPocus_EmptyInstrument_Loop db 0 ; No Soft no Hard. Volume: 0. Noise? false. db 6 ; Loop to silence. HocusPocus_Instrument1 db 2 ; The speed (>0, 0 for 256). db 43 ; Hard only. Envelope: 10. Retrig? true. Not simple configuration. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db -29 ; Arpeggio. db 6 ; Loop to silence. HocusPocus_Instrument2 db 1 ; The speed (>0, 0 for 256). db 216 ; No Soft no Hard. Volume: 11. Noise? true. db 1 ; Noise: 1. db 208 ; No Soft no Hard. Volume: 10. Noise? true. db 1 ; Noise: 1. db 200 ; No Soft no Hard. Volume: 9. Noise? true. db 2 ; Noise: 2. db 200 ; No Soft no Hard. Volume: 9. Noise? true. db 14 ; Noise: 14. db 192 ; No Soft no Hard. Volume: 8. Noise? true. db 3 ; Noise: 3. db 184 ; No Soft no Hard. Volume: 7. Noise? true. db 5 ; Noise: 5. db 184 ; No Soft no Hard. Volume: 7. Noise? true. db 15 ; Noise: 15. db 176 ; No Soft no Hard. Volume: 6. Noise? true. db 5 ; Noise: 5. db 176 ; No Soft no Hard. Volume: 6. Noise? true. db 6 ; Noise: 6. db 168 ; No Soft no Hard. Volume: 5. Noise? true. db 6 ; Noise: 6. db 168 ; No Soft no Hard. Volume: 5. Noise? true. db 6 ; Noise: 6. db 168 ; No Soft no Hard. Volume: 5. Noise? true. db 12 ; Noise: 12. db 160 ; No Soft no Hard. Volume: 4. Noise? true. db 13 ; Noise: 13. db 160 ; No Soft no Hard. Volume: 4. Noise? true. db 14 ; Noise: 14. db 152 ; No Soft no Hard. Volume: 3. Noise? true. db 15 ; Noise: 15. db 152 ; No Soft no Hard. Volume: 3. Noise? true. db 16 ; Noise: 16. db 144 ; No Soft no Hard. Volume: 2. Noise? true. db 17 ; Noise: 17. db 144 ; No Soft no Hard. Volume: 2. Noise? true. db 18 ; Noise: 18. db 200 ; No Soft no Hard. Volume: 9. Noise? true. db 19 ; Noise: 19. db 200 ; No Soft no Hard. Volume: 9. Noise? true. db 20 ; Noise: 20. db 200 ; No Soft no Hard. Volume: 9. Noise? true. db 21 ; Noise: 21. db 200 ; No Soft no Hard. Volume: 9. Noise? true. db 22 ; Noise: 22. db 6 ; Loop to silence. HocusPocus_Instrument3 db 2 ; The speed (>0, 0 for 256). HocusPocus_Instrument3_Loop db 225 ; Soft only. Volume: 12. Volume only. db 217 ; Soft only. Volume: 11. Volume only. db 209 ; Soft only. Volume: 10. Volume only. db 201 ; Soft only. Volume: 9. Volume only. db 201 ; Soft only. Volume: 9. Volume only. db 201 ; Soft only. Volume: 9. Volume only. db 201 ; Soft only. Volume: 9. Volume only. db 201 ; Soft only. Volume: 9. Volume only. db 201 ; Soft only. Volume: 9. Volume only. db 201 ; Soft only. Volume: 9. Volume only. db 201 ; Soft only. Volume: 9. Volume only. db 201 ; Soft only. Volume: 9. Volume only. db 7 ; Loop. HocusPocus_DisarkWordForceReference25 dw HocusPocus_Instrument3_Loop ; Loop here. HocusPocus_Instrument4 db 6 ; The speed (>0, 0 for 256). HocusPocus_Instrument4_Loop db 2 ; Soft to Hard. Envelope: 8. Retrig ? false. Noise ? false. db 130 ; Simple case. Ratio: 5 db 66 ; Soft to Hard. Envelope: 12. Retrig ? false. Noise ? false. db 130 ; Simple case. Ratio: 5 db 7 ; Loop. HocusPocus_DisarkWordForceReference26 dw HocusPocus_Instrument4_Loop ; Loop here. HocusPocus_Instrument5 db 1 ; The speed (>0, 0 for 256). db 249 ; Soft only. Volume: 15. Volume only. db 241 ; Soft only. Volume: 14. Volume only. db 233 ; Soft only. Volume: 13. Volume only. HocusPocus_Instrument5_Loop db 225 ; Soft only. Volume: 12. Volume only. db 7 ; Loop. HocusPocus_DisarkWordForceReference27 dw HocusPocus_Instrument5_Loop ; Loop here. HocusPocus_Instrument6 db 3 ; The speed (>0, 0 for 256). db 113 ; Soft only. Volume: 14. db 7 ; Additional data. Noise: 7. Pitch? false. Arp? false. Period? false. db 113 ; Soft only. Volume: 14. db 16 ; Additional data. Noise: 16. Pitch? false. Arp? false. Period? false. db 105 ; Soft only. Volume: 13. db 3 ; Additional data. Noise: 3. Pitch? false. Arp? false. Period? false. db 97 ; Soft only. Volume: 12. db 15 ; Additional data. Noise: 15. Pitch? false. Arp? false. Period? false. db 89 ; Soft only. Volume: 11. db 12 ; Additional data. Noise: 12. Pitch? false. Arp? false. Period? false. db 81 ; Soft only. Volume: 10. db 9 ; Additional data. Noise: 9. Pitch? false. Arp? false. Period? false. db 73 ; Soft only. Volume: 9. db 6 ; Additional data. Noise: 6. Pitch? false. Arp? false. Period? false. db 65 ; Soft only. Volume: 8. db 4 ; Additional data. Noise: 4. Pitch? false. Arp? false. Period? false. db 57 ; Soft only. Volume: 7. db 1 ; Additional data. Noise: 1. Pitch? false. Arp? false. Period? false. db 49 ; Soft only. Volume: 6. db 21 ; Additional data. Noise: 21. Pitch? false. Arp? false. Period? false. db 41 ; Soft only. Volume: 5. db 9 ; Additional data. Noise: 9. Pitch? false. Arp? false. Period? false. db 33 ; Soft only. Volume: 4. db 17 ; Additional data. Noise: 17. Pitch? false. Arp? false. Period? false. db 25 ; Soft only. Volume: 3. db 5 ; Additional data. Noise: 5. Pitch? false. Arp? false. Period? false. db 17 ; Soft only. Volume: 2. db 9 ; Additional data. Noise: 9. Pitch? false. Arp? false. Period? false. db 9 ; Soft only. Volume: 1. db 17 ; Additional data. Noise: 17. Pitch? false. Arp? false. Period? false. db 6 ; Loop to silence. HocusPocus_Instrument7 db 2 ; The speed (>0, 0 for 256). db 121 ; Soft only. Volume: 15. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 241 ; Soft only. Volume: 14. Volume only. db 113 ; Soft only. Volume: 14. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 241 ; Soft only. Volume: 14. Volume only. db 113 ; Soft only. Volume: 14. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 233 ; Soft only. Volume: 13. Volume only. db 105 ; Soft only. Volume: 13. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 233 ; Soft only. Volume: 13. Volume only. db 105 ; Soft only. Volume: 13. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 225 ; Soft only. Volume: 12. Volume only. db 97 ; Soft only. Volume: 12. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 225 ; Soft only. Volume: 12. Volume only. db 97 ; Soft only. Volume: 12. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 225 ; Soft only. Volume: 12. Volume only. db 89 ; Soft only. Volume: 11. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 217 ; Soft only. Volume: 11. Volume only. db 89 ; Soft only. Volume: 11. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 217 ; Soft only. Volume: 11. Volume only. db 89 ; Soft only. Volume: 11. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 209 ; Soft only. Volume: 10. Volume only. db 81 ; Soft only. Volume: 10. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 209 ; Soft only. Volume: 10. Volume only. db 81 ; Soft only. Volume: 10. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 209 ; Soft only. Volume: 10. Volume only. db 81 ; Soft only. Volume: 10. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 209 ; Soft only. Volume: 10. Volume only. db 81 ; Soft only. Volume: 10. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 201 ; Soft only. Volume: 9. Volume only. db 73 ; Soft only. Volume: 9. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 201 ; Soft only. Volume: 9. Volume only. db 73 ; Soft only. Volume: 9. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 201 ; Soft only. Volume: 9. Volume only. db 65 ; Soft only. Volume: 8. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 193 ; Soft only. Volume: 8. Volume only. db 65 ; Soft only. Volume: 8. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 193 ; Soft only. Volume: 8. Volume only. db 65 ; Soft only. Volume: 8. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 193 ; Soft only. Volume: 8. Volume only. db 57 ; Soft only. Volume: 7. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 185 ; Soft only. Volume: 7. Volume only. db 57 ; Soft only. Volume: 7. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 185 ; Soft only. Volume: 7. Volume only. db 57 ; Soft only. Volume: 7. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 177 ; Soft only. Volume: 6. Volume only. db 49 ; Soft only. Volume: 6. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 177 ; Soft only. Volume: 6. Volume only. db 49 ; Soft only. Volume: 6. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 177 ; Soft only. Volume: 6. Volume only. db 41 ; Soft only. Volume: 5. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 169 ; Soft only. Volume: 5. Volume only. db 41 ; Soft only. Volume: 5. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 169 ; Soft only. Volume: 5. Volume only. db 41 ; Soft only. Volume: 5. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 161 ; Soft only. Volume: 4. Volume only. db 33 ; Soft only. Volume: 4. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 161 ; Soft only. Volume: 4. Volume only. db 33 ; Soft only. Volume: 4. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 161 ; Soft only. Volume: 4. Volume only. db 33 ; Soft only. Volume: 4. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 153 ; Soft only. Volume: 3. Volume only. db 25 ; Soft only. Volume: 3. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 153 ; Soft only. Volume: 3. Volume only. db 25 ; Soft only. Volume: 3. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 153 ; Soft only. Volume: 3. Volume only. db 25 ; Soft only. Volume: 3. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 145 ; Soft only. Volume: 2. Volume only. db 17 ; Soft only. Volume: 2. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 145 ; Soft only. Volume: 2. Volume only. db 17 ; Soft only. Volume: 2. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 145 ; Soft only. Volume: 2. Volume only. db 9 ; Soft only. Volume: 1. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 137 ; Soft only. Volume: 1. Volume only. db 9 ; Soft only. Volume: 1. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 137 ; Soft only. Volume: 1. Volume only. db 9 ; Soft only. Volume: 1. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 137 ; Soft only. Volume: 1. Volume only. db 9 ; Soft only. Volume: 1. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 6 ; Loop to silence. HocusPocus_Instrument8 db 1 ; The speed (>0, 0 for 256). db 121 ; Soft only. Volume: 15. db 1 ; Additional data. Noise: 1. Pitch? false. Arp? false. Period? false. db 113 ; Soft only. Volume: 14. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 37 ; Pitch. db 105 ; Soft only. Volume: 13. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 85 ; Pitch. db 97 ; Soft only. Volume: 12. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 133 ; Pitch. db 89 ; Soft only. Volume: 11. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 181 ; Pitch. db 81 ; Soft only. Volume: 10. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 245 ; Pitch. db 105 ; Soft only. Volume: 13. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 325 ; Pitch. db 65 ; Soft only. Volume: 8. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 405 ; Pitch. db 57 ; Soft only. Volume: 7. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 485 ; Pitch. db 49 ; Soft only. Volume: 6. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 581 ; Pitch. db 41 ; Soft only. Volume: 5. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 677 ; Pitch. db 33 ; Soft only. Volume: 4. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 773 ; Pitch. db 25 ; Soft only. Volume: 3. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 869 ; Pitch. db 17 ; Soft only. Volume: 2. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 965 ; Pitch. db 9 ; Soft only. Volume: 1. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 1109 ; Pitch. db 6 ; Loop to silence. HocusPocus_Instrument9 db 1 ; The speed (>0, 0 for 256). db 232 ; No Soft no Hard. Volume: 13. Noise? true. db 1 ; Noise: 1. db 232 ; No Soft no Hard. Volume: 13. Noise? true. db 1 ; Noise: 1. db 232 ; No Soft no Hard. Volume: 13. Noise? true. db 1 ; Noise: 1. db 232 ; No Soft no Hard. Volume: 13. Noise? true. db 1 ; Noise: 1. db 232 ; No Soft no Hard. Volume: 13. Noise? true. db 1 ; Noise: 1. db 216 ; No Soft no Hard. Volume: 11. Noise? true. db 1 ; Noise: 1. db 200 ; No Soft no Hard. Volume: 9. Noise? true. db 1 ; Noise: 1. db 184 ; No Soft no Hard. Volume: 7. Noise? true. db 1 ; Noise: 1. db 168 ; No Soft no Hard. Volume: 5. Noise? true. db 1 ; Noise: 1. db 152 ; No Soft no Hard. Volume: 3. Noise? true. db 1 ; Noise: 1. db 136 ; No Soft no Hard. Volume: 1. Noise? true. db 1 ; Noise: 1. db 6 ; Loop to silence. HocusPocus_Instrument10 db 1 ; The speed (>0, 0 for 256). db 121 ; Soft only. Volume: 15. db 1 ; Additional data. Noise: 1. Pitch? false. Arp? false. Period? false. db 113 ; Soft only. Volume: 14. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 37 ; Pitch. db 105 ; Soft only. Volume: 13. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 85 ; Pitch. db 97 ; Soft only. Volume: 12. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 133 ; Pitch. db 89 ; Soft only. Volume: 11. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 181 ; Pitch. db 81 ; Soft only. Volume: 10. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 245 ; Pitch. db 73 ; Soft only. Volume: 9. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 325 ; Pitch. db 65 ; Soft only. Volume: 8. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 405 ; Pitch. db 57 ; Soft only. Volume: 7. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 485 ; Pitch. db 49 ; Soft only. Volume: 6. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 581 ; Pitch. db 41 ; Soft only. Volume: 5. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 677 ; Pitch. db 33 ; Soft only. Volume: 4. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 773 ; Pitch. db 25 ; Soft only. Volume: 3. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 869 ; Pitch. db 17 ; Soft only. Volume: 2. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 965 ; Pitch. db 9 ; Soft only. Volume: 1. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 1109 ; Pitch. db 6 ; Loop to silence. HocusPocus_Instrument11 db 1 ; The speed (>0, 0 for 256). db 241 ; Soft only. Volume: 14. Volume only. db 105 ; Soft only. Volume: 13. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 37 ; Pitch. db 105 ; Soft only. Volume: 13. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 85 ; Pitch. db 97 ; Soft only. Volume: 12. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 133 ; Pitch. db 89 ; Soft only. Volume: 11. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 181 ; Pitch. db 81 ; Soft only. Volume: 10. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 245 ; Pitch. db 105 ; Soft only. Volume: 13. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 325 ; Pitch. db 65 ; Soft only. Volume: 8. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 405 ; Pitch. db 57 ; Soft only. Volume: 7. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 485 ; Pitch. db 49 ; Soft only. Volume: 6. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 581 ; Pitch. db 41 ; Soft only. Volume: 5. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 677 ; Pitch. db 33 ; Soft only. Volume: 4. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 773 ; Pitch. db 25 ; Soft only. Volume: 3. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 869 ; Pitch. db 17 ; Soft only. Volume: 2. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 965 ; Pitch. db 9 ; Soft only. Volume: 1. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 1109 ; Pitch. db 6 ; Loop to silence. HocusPocus_Instrument12 db 1 ; The speed (>0, 0 for 256). db 232 ; No Soft no Hard. Volume: 13. Noise? true. db 1 ; Noise: 1. db 6 ; Loop to silence. HocusPocus_Instrument13 db 1 ; The speed (>0, 0 for 256). db 121 ; Soft only. Volume: 15. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 249 ; Soft only. Volume: 15. Volume only. HocusPocus_Instrument13_Loop db 3 ; Hard only. Envelope: 8. Retrig? false. Not simple configuration. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 48 ; Arpeggio. db 7 ; Loop. HocusPocus_DisarkWordForceReference28 dw HocusPocus_Instrument13_Loop ; Loop here. HocusPocus_Instrument14 db 2 ; The speed (>0, 0 for 256). db 121 ; Soft only. Volume: 15. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 241 ; Soft only. Volume: 14. Volume only. db 113 ; Soft only. Volume: 14. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 241 ; Soft only. Volume: 14. Volume only. db 113 ; Soft only. Volume: 14. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 241 ; Soft only. Volume: 14. Volume only. db 113 ; Soft only. Volume: 14. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 233 ; Soft only. Volume: 13. Volume only. db 105 ; Soft only. Volume: 13. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 233 ; Soft only. Volume: 13. Volume only. db 105 ; Soft only. Volume: 13. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 225 ; Soft only. Volume: 12. Volume only. db 97 ; Soft only. Volume: 12. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 225 ; Soft only. Volume: 12. Volume only. db 97 ; Soft only. Volume: 12. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 225 ; Soft only. Volume: 12. Volume only. db 97 ; Soft only. Volume: 12. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 225 ; Soft only. Volume: 12. Volume only. db 89 ; Soft only. Volume: 11. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 217 ; Soft only. Volume: 11. Volume only. db 89 ; Soft only. Volume: 11. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 217 ; Soft only. Volume: 11. Volume only. db 89 ; Soft only. Volume: 11. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 217 ; Soft only. Volume: 11. Volume only. db 89 ; Soft only. Volume: 11. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 209 ; Soft only. Volume: 10. Volume only. db 81 ; Soft only. Volume: 10. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 209 ; Soft only. Volume: 10. Volume only. db 81 ; Soft only. Volume: 10. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 209 ; Soft only. Volume: 10. Volume only. db 81 ; Soft only. Volume: 10. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 209 ; Soft only. Volume: 10. Volume only. db 81 ; Soft only. Volume: 10. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 209 ; Soft only. Volume: 10. Volume only. db 81 ; Soft only. Volume: 10. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 209 ; Soft only. Volume: 10. Volume only. db 81 ; Soft only. Volume: 10. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 209 ; Soft only. Volume: 10. Volume only. db 73 ; Soft only. Volume: 9. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 201 ; Soft only. Volume: 9. Volume only. db 73 ; Soft only. Volume: 9. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 201 ; Soft only. Volume: 9. Volume only. db 73 ; Soft only. Volume: 9. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 201 ; Soft only. Volume: 9. Volume only. db 73 ; Soft only. Volume: 9. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 201 ; Soft only. Volume: 9. Volume only. db 73 ; Soft only. Volume: 9. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 201 ; Soft only. Volume: 9. Volume only. db 73 ; Soft only. Volume: 9. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 193 ; Soft only. Volume: 8. Volume only. db 65 ; Soft only. Volume: 8. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 193 ; Soft only. Volume: 8. Volume only. db 65 ; Soft only. Volume: 8. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 193 ; Soft only. Volume: 8. Volume only. db 65 ; Soft only. Volume: 8. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 193 ; Soft only. Volume: 8. Volume only. db 57 ; Soft only. Volume: 7. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 185 ; Soft only. Volume: 7. Volume only. db 57 ; Soft only. Volume: 7. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 185 ; Soft only. Volume: 7. Volume only. db 57 ; Soft only. Volume: 7. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 185 ; Soft only. Volume: 7. Volume only. db 49 ; Soft only. Volume: 6. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 177 ; Soft only. Volume: 6. Volume only. db 49 ; Soft only. Volume: 6. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 177 ; Soft only. Volume: 6. Volume only. db 49 ; Soft only. Volume: 6. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 177 ; Soft only. Volume: 6. Volume only. db 49 ; Soft only. Volume: 6. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 177 ; Soft only. Volume: 6. Volume only. db 49 ; Soft only. Volume: 6. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 169 ; Soft only. Volume: 5. Volume only. db 41 ; Soft only. Volume: 5. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 169 ; Soft only. Volume: 5. Volume only. db 41 ; Soft only. Volume: 5. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 169 ; Soft only. Volume: 5. Volume only. db 41 ; Soft only. Volume: 5. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 169 ; Soft only. Volume: 5. Volume only. db 41 ; Soft only. Volume: 5. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 161 ; Soft only. Volume: 4. Volume only. db 33 ; Soft only. Volume: 4. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 161 ; Soft only. Volume: 4. Volume only. db 33 ; Soft only. Volume: 4. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 161 ; Soft only. Volume: 4. Volume only. db 33 ; Soft only. Volume: 4. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 153 ; Soft only. Volume: 3. Volume only. db 25 ; Soft only. Volume: 3. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 153 ; Soft only. Volume: 3. Volume only. db 25 ; Soft only. Volume: 3. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 153 ; Soft only. Volume: 3. Volume only. db 25 ; Soft only. Volume: 3. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 145 ; Soft only. Volume: 2. Volume only. db 17 ; Soft only. Volume: 2. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 145 ; Soft only. Volume: 2. Volume only. db 17 ; Soft only. Volume: 2. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 145 ; Soft only. Volume: 2. Volume only. db 9 ; Soft only. Volume: 1. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 137 ; Soft only. Volume: 1. Volume only. db 9 ; Soft only. Volume: 1. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 137 ; Soft only. Volume: 1. Volume only. db 9 ; Soft only. Volume: 1. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 137 ; Soft only. Volume: 1. Volume only. db 9 ; Soft only. Volume: 1. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 6 ; Loop to silence. HocusPocus_Instrument15 db 1 ; The speed (>0, 0 for 256). HocusPocus_Instrument15_Loop db 113 ; Soft only. Volume: 14. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 113 ; Soft only. Volume: 14. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 241 ; Soft only. Volume: 14. Volume only. db 7 ; Loop. HocusPocus_DisarkWordForceReference29 dw HocusPocus_Instrument15_Loop ; Loop here. HocusPocus_Instrument16 db 1 ; The speed (>0, 0 for 256). db 241 ; Soft only. Volume: 14. Volume only. db 225 ; Soft only. Volume: 12. Volume only. db 193 ; Soft only. Volume: 8. Volume only. db 193 ; Soft only. Volume: 8. Volume only. db 185 ; Soft only. Volume: 7. Volume only. HocusPocus_Instrument16_Loop db 185 ; Soft only. Volume: 7. Volume only. db 201 ; Soft only. Volume: 9. Volume only. db 193 ; Soft only. Volume: 8. Volume only. db 7 ; Loop. HocusPocus_DisarkWordForceReference30 dw HocusPocus_Instrument16_Loop ; Loop here. HocusPocus_Instrument17 db 1 ; The speed (>0, 0 for 256). db 121 ; Soft only. Volume: 15. db 65 ; Additional data. Noise: 1. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 249 ; Soft only. Volume: 15. Volume only. db 3 ; Hard only. Envelope: 8. Retrig? false. Not simple configuration. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 48 ; Arpeggio. db 3 ; Hard only. Envelope: 8. Retrig? false. Not simple configuration. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 48 ; Arpeggio. db 3 ; Hard only. Envelope: 8. Retrig? false. Not simple configuration. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 48 ; Arpeggio. db 3 ; Hard only. Envelope: 8. Retrig? false. Not simple configuration. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 48 ; Arpeggio. db 6 ; Loop to silence. HocusPocus_Instrument18 db 1 ; The speed (>0, 0 for 256). db 121 ; Soft only. Volume: 15. db 65 ; Additional data. Noise: 1. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 249 ; Soft only. Volume: 15. Volume only. HocusPocus_Instrument18_Loop db 3 ; Hard only. Envelope: 8. Retrig? false. Not simple configuration. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 48 ; Arpeggio. db 3 ; Hard only. Envelope: 8. Retrig? false. Not simple configuration. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 48 ; Arpeggio. db 3 ; Hard only. Envelope: 8. Retrig? false. Not simple configuration. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 48 ; Arpeggio. db 3 ; Hard only. Envelope: 8. Retrig? false. Not simple configuration. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 48 ; Arpeggio. db 121 ; Soft only. Volume: 15. db 1 ; Additional data. Noise: 1. Pitch? false. Arp? false. Period? false. db 3 ; Hard only. Envelope: 8. Retrig? false. Not simple configuration. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 48 ; Arpeggio. db 7 ; Loop. HocusPocus_DisarkWordForceReference31 dw HocusPocus_Instrument18_Loop ; Loop here. HocusPocus_Instrument19 db 1 ; The speed (>0, 0 for 256). db 249 ; Soft only. Volume: 15. Volume only. db 121 ; Soft only. Volume: 15. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 37 ; Pitch. db 121 ; Soft only. Volume: 15. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 85 ; Pitch. db 113 ; Soft only. Volume: 14. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 133 ; Pitch. db 105 ; Soft only. Volume: 13. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 181 ; Pitch. db 97 ; Soft only. Volume: 12. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 245 ; Pitch. db 89 ; Soft only. Volume: 11. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 325 ; Pitch. db 89 ; Soft only. Volume: 11. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 405 ; Pitch. db 81 ; Soft only. Volume: 10. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 485 ; Pitch. db 73 ; Soft only. Volume: 9. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 581 ; Pitch. db 73 ; Soft only. Volume: 9. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 677 ; Pitch. db 65 ; Soft only. Volume: 8. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 773 ; Pitch. db 49 ; Soft only. Volume: 6. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 869 ; Pitch. db 33 ; Soft only. Volume: 4. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 965 ; Pitch. db 17 ; Soft only. Volume: 2. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 1109 ; Pitch. db 6 ; Loop to silence. HocusPocus_Instrument20 db 1 ; The speed (>0, 0 for 256). db 248 ; No Soft no Hard. Volume: 15. Noise? true. db 1 ; Noise: 1. db 241 ; Soft only. Volume: 14. Volume only. db 232 ; No Soft no Hard. Volume: 13. Noise? true. db 8 ; Noise: 8. db 97 ; Soft only. Volume: 12. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw -64 ; Pitch. db 224 ; No Soft no Hard. Volume: 12. Noise? true. db 5 ; Noise: 5. db 89 ; Soft only. Volume: 11. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 21 ; Pitch. db 208 ; No Soft no Hard. Volume: 10. Noise? true. db 1 ; Noise: 1. db 73 ; Soft only. Volume: 9. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 69 ; Pitch. db 192 ; No Soft no Hard. Volume: 8. Noise? true. db 1 ; Noise: 1. db 57 ; Soft only. Volume: 7. db 35 ; Additional data. Noise: 3. Pitch? true. Arp? false. Period? false. dw 133 ; Pitch. db 176 ; No Soft no Hard. Volume: 6. Noise? true. db 3 ; Noise: 3. db 41 ; Soft only. Volume: 5. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 181 ; Pitch. db 160 ; No Soft no Hard. Volume: 4. Noise? true. db 1 ; Noise: 1. db 25 ; Soft only. Volume: 3. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 245 ; Pitch. db 144 ; No Soft no Hard. Volume: 2. Noise? true. db 1 ; Noise: 1. db 8 ; No Soft no Hard. Volume: 1. Noise? false. db 6 ; Loop to silence. HocusPocus_Instrument21 db 2 ; The speed (>0, 0 for 256). HocusPocus_Instrument21_Loop db 113 ; Soft only. Volume: 14. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 241 ; Soft only. Volume: 14. Volume only. db 241 ; Soft only. Volume: 14. Volume only. db 7 ; Loop. HocusPocus_DisarkWordForceReference32 dw HocusPocus_Instrument21_Loop ; Loop here. HocusPocus_Instrument22 db 1 ; The speed (>0, 0 for 256). db 121 ; Soft only. Volume: 15. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 249 ; Soft only. Volume: 15. Volume only. db 3 ; Hard only. Envelope: 8. Retrig? false. Not simple configuration. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 48 ; Arpeggio. db 3 ; Hard only. Envelope: 8. Retrig? false. Not simple configuration. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 48 ; Arpeggio. db 3 ; Hard only. Envelope: 8. Retrig? false. Not simple configuration. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 48 ; Arpeggio. db 3 ; Hard only. Envelope: 8. Retrig? false. Not simple configuration. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 48 ; Arpeggio. db 6 ; Loop to silence. HocusPocus_Instrument23 db 1 ; The speed (>0, 0 for 256). db 249 ; Soft only. Volume: 15. Volume only. db 113 ; Soft only. Volume: 14. db 33 ; Additional data. Noise: 1. Pitch? true. Arp? false. Period? false. dw 32 ; Pitch. db 113 ; Soft only. Volume: 14. db 34 ; Additional data. Noise: 2. Pitch? true. Arp? false. Period? false. dw 256 ; Pitch. db 105 ; Soft only. Volume: 13. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 80 ; Pitch. db 89 ; Soft only. Volume: 11. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 192 ; Pitch. db 73 ; Soft only. Volume: 9. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 144 ; Pitch. db 57 ; Soft only. Volume: 7. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 192 ; Pitch. db 41 ; Soft only. Volume: 5. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 240 ; Pitch. db 25 ; Soft only. Volume: 3. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 304 ; Pitch. db 6 ; Loop to silence. HocusPocus_Instrument24 db 1 ; The speed (>0, 0 for 256). db 241 ; Soft only. Volume: 14. Volume only. db 233 ; Soft only. Volume: 13. Volume only. db 225 ; Soft only. Volume: 12. Volume only. db 89 ; Soft only. Volume: 11. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 209 ; Soft only. Volume: 10. Volume only. db 201 ; Soft only. Volume: 9. Volume only. HocusPocus_Instrument24_Loop db 193 ; Soft only. Volume: 8. Volume only. db 7 ; Loop. HocusPocus_DisarkWordForceReference33 dw HocusPocus_Instrument24_Loop ; Loop here. HocusPocus_Instrument25 db 1 ; The speed (>0, 0 for 256). db 241 ; Soft only. Volume: 14. Volume only. db 233 ; Soft only. Volume: 13. Volume only. db 225 ; Soft only. Volume: 12. Volume only. db 217 ; Soft only. Volume: 11. Volume only. db 209 ; Soft only. Volume: 10. Volume only. db 201 ; Soft only. Volume: 9. Volume only. db 193 ; Soft only. Volume: 8. Volume only. db 185 ; Soft only. Volume: 7. Volume only. db 177 ; Soft only. Volume: 6. Volume only. db 169 ; Soft only. Volume: 5. Volume only. db 161 ; Soft only. Volume: 4. Volume only. db 153 ; Soft only. Volume: 3. Volume only. db 145 ; Soft only. Volume: 2. Volume only. db 137 ; Soft only. Volume: 1. Volume only. db 6 ; Loop to silence. HocusPocus_Instrument26 db 1 ; The speed (>0, 0 for 256). HocusPocus_Instrument26_Loop db 249 ; Soft only. Volume: 15. Volume only. db 7 ; Loop. HocusPocus_DisarkWordForceReference34 dw HocusPocus_Instrument26_Loop ; Loop here. HocusPocus_Instrument27 db 4 ; The speed (>0, 0 for 256). db 201 ; Soft only. Volume: 9. Volume only. db 209 ; Soft only. Volume: 10. Volume only. db 217 ; Soft only. Volume: 11. Volume only. db 225 ; Soft only. Volume: 12. Volume only. db 217 ; Soft only. Volume: 11. Volume only. db 209 ; Soft only. Volume: 10. Volume only. db 193 ; Soft only. Volume: 8. Volume only. HocusPocus_Instrument27_Loop db 185 ; Soft only. Volume: 7. Volume only. db 177 ; Soft only. Volume: 6. Volume only. db 161 ; Soft only. Volume: 4. Volume only. db 169 ; Soft only. Volume: 5. Volume only. db 193 ; Soft only. Volume: 8. Volume only. db 185 ; Soft only. Volume: 7. Volume only. db 7 ; Loop. HocusPocus_DisarkWordForceReference35 dw HocusPocus_Instrument27_Loop ; Loop here. HocusPocus_Instrument28 db 2 ; The speed (>0, 0 for 256). db 2 ; Soft to Hard. Envelope: 8. Retrig ? false. Noise ? false. db 130 ; Simple case. Ratio: 5 db 249 ; Soft only. Volume: 15. Volume only. db 2 ; Soft to Hard. Envelope: 8. Retrig ? false. Noise ? false. db 131 ; Simple case. Ratio: 4 db 105 ; Soft only. Volume: 13. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 32 ; Pitch. db 2 ; Soft to Hard. Envelope: 8. Retrig ? false. Noise ? false. db 131 ; Simple case. Ratio: 4 db 97 ; Soft only. Volume: 12. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 80 ; Pitch. db 2 ; Soft to Hard. Envelope: 8. Retrig ? false. Noise ? false. db 131 ; Simple case. Ratio: 4 db 81 ; Soft only. Volume: 10. db 32 ; Additional data. Noise: 0. Pitch? true. Arp? false. Period? false. dw 192 ; Pitch. db 6 ; Loop to silence. HocusPocus_Instrument29 db 1 ; The speed (>0, 0 for 256). db 121 ; Soft only. Volume: 15. db 17 ; Additional data. Noise: 17. Pitch? false. Arp? false. Period? false. db 240 ; No Soft no Hard. Volume: 14. Noise? true. db 20 ; Noise: 20. db 232 ; No Soft no Hard. Volume: 13. Noise? true. db 4 ; Noise: 4. db 224 ; No Soft no Hard. Volume: 12. Noise? true. db 4 ; Noise: 4. db 89 ; Soft only. Volume: 11. db 36 ; Additional data. Noise: 4. Pitch? true. Arp? false. Period? false. dw 210 ; Pitch. db 81 ; Soft only. Volume: 10. db 38 ; Additional data. Noise: 6. Pitch? true. Arp? false. Period? false. dw 290 ; Pitch. db 73 ; Soft only. Volume: 9. db 46 ; Additional data. Noise: 14. Pitch? true. Arp? false. Period? false. dw 354 ; Pitch. db 6 ; Loop to silence. HocusPocus_Instrument30 db 2 ; The speed (>0, 0 for 256). HocusPocus_Instrument30_Loop db 249 ; Soft only. Volume: 15. Volume only. db 2 ; Soft to Hard. Envelope: 8. Retrig ? false. Noise ? false. db 130 ; Simple case. Ratio: 5 db 2 ; Soft to Hard. Envelope: 8. Retrig ? false. Noise ? false. db 36 ; Complex case. Ratio: 3 db 24 ; Arpeggio. db 7 ; Loop. HocusPocus_DisarkWordForceReference36 dw HocusPocus_Instrument30_Loop ; Loop here. HocusPocus_Instrument31 db 1 ; The speed (>0, 0 for 256). HocusPocus_Instrument31_Loop db 241 ; Soft only. Volume: 14. Volume only. db 233 ; Soft only. Volume: 13. Volume only. db 225 ; Soft only. Volume: 12. Volume only. db 217 ; Soft only. Volume: 11. Volume only. db 209 ; Soft only. Volume: 10. Volume only. db 201 ; Soft only. Volume: 9. Volume only. db 7 ; Loop. HocusPocus_DisarkWordForceReference37 dw HocusPocus_Instrument31_Loop ; Loop here. HocusPocus_Instrument32 db 1 ; The speed (>0, 0 for 256). db 121 ; Soft only. Volume: 15. db 1 ; Additional data. Noise: 1. Pitch? false. Arp? false. Period? false. db 113 ; Soft only. Volume: 14. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 6 ; Arpeggio. db 233 ; Soft only. Volume: 13. Volume only. db 97 ; Soft only. Volume: 12. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 7 ; Arpeggio. db 217 ; Soft only. Volume: 11. Volume only. db 209 ; Soft only. Volume: 10. Volume only. db 201 ; Soft only. Volume: 9. Volume only. db 193 ; Soft only. Volume: 8. Volume only. db 185 ; Soft only. Volume: 7. Volume only. db 177 ; Soft only. Volume: 6. Volume only. db 169 ; Soft only. Volume: 5. Volume only. db 161 ; Soft only. Volume: 4. Volume only. db 153 ; Soft only. Volume: 3. Volume only. db 145 ; Soft only. Volume: 2. Volume only. db 137 ; Soft only. Volume: 1. Volume only. db 6 ; Loop to silence. HocusPocus_Instrument33 db 2 ; The speed (>0, 0 for 256). db 121 ; Soft only. Volume: 15. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db -12 ; Arpeggio. db 34 ; Soft to Hard. Envelope: 10. Retrig ? false. Noise ? false. db 130 ; Simple case. Ratio: 5 db 34 ; Soft to Hard. Envelope: 10. Retrig ? false. Noise ? false. db 130 ; Simple case. Ratio: 5 db 6 ; Loop to silence. HocusPocus_Instrument34 db 1 ; The speed (>0, 0 for 256). HocusPocus_Instrument34_Loop db 241 ; Soft only. Volume: 14. Volume only. db 233 ; Soft only. Volume: 13. Volume only. db 97 ; Soft only. Volume: 12. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 89 ; Soft only. Volume: 11. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db 12 ; Arpeggio. db 209 ; Soft only. Volume: 10. Volume only. db 73 ; Soft only. Volume: 9. db 64 ; Additional data. Noise: 0. Pitch? false. Arp? true. Period? false. db -12 ; Arpeggio. db 7 ; Loop. HocusPocus_DisarkWordForceReference38 dw HocusPocus_Instrument34_Loop ; Loop here. HocusPocus_Instrument35 db 2 ; The speed (>0, 0 for 256). HocusPocus_Instrument35_Loop db 145 ; Soft only. Volume: 2. Volume only. db 161 ; Soft only. Volume: 4. Volume only. db 177 ; Soft only. Volume: 6. Volume only. db 193 ; Soft only. Volume: 8. Volume only. db 209 ; Soft only. Volume: 10. Volume only. db 225 ; Soft only. Volume: 12. Volume only. db 241 ; Soft only. Volume: 14. Volume only. db 249 ; Soft only. Volume: 15. Volume only. db 7 ; Loop. HocusPocus_DisarkWordForceReference39 dw HocusPocus_Instrument35_Loop ; Loop here. ; The indexes of the effect blocks used by this song. HocusPocus_EffectBlockTable HocusPocus_DisarkPointerRegionStart40 dw HocusPocus_EffectBlock_P14P48P0 ; Index 0 dw HocusPocus_EffectBlock_P3P2P10P1 ; Index 1 dw HocusPocus_EffectBlock_P0 ; Index 2 dw HocusPocus_EffectBlock_P14P208P255 ; Index 3 dw HocusPocus_EffectBlock_P4P2 ; Index 4 dw HocusPocus_EffectBlock_P10P1 ; Index 5 dw HocusPocus_EffectBlock_P4P0 ; Index 6 dw HocusPocus_EffectBlock_P4P1 ; Index 7 dw HocusPocus_EffectBlock_P4P4 ; Index 8 dw HocusPocus_EffectBlock_P20P0P32 ; Index 9 dw HocusPocus_EffectBlock_P2P4 ; Index 10 dw HocusPocus_EffectBlock_P20P0P2 ; Index 11 dw HocusPocus_EffectBlock_P4P3 ; Index 12 dw HocusPocus_EffectBlock_P3P6P14P208P255 ; Index 13 dw HocusPocus_EffectBlock_P1P11P1P6P5 ; Index 14 dw HocusPocus_EffectBlock_P14P16P0 ; Index 15 dw HocusPocus_EffectBlock_P12 ; Index 16 dw HocusPocus_EffectBlock_P3P4P19P128P0P7P3P30P4 ; Index 17 dw HocusPocus_EffectBlock_P1P10P1 ; Index 18 dw HocusPocus_EffectBlock_P20P0P13 ; Index 19 dw HocusPocus_EffectBlock_P20P0P4 ; Index 20 dw HocusPocus_EffectBlock_P4P5 ; Index 21 dw HocusPocus_EffectBlock_P20P0P15 ; Index 22 dw HocusPocus_EffectBlock_P28P25 ; Index 23 dw HocusPocus_EffectBlock_P28P13 ; Index 24 dw HocusPocus_EffectBlock_P5P1P6P1 ; Index 25 dw HocusPocus_EffectBlock_P5P0P6P7 ; Index 26 dw HocusPocus_EffectBlock_P5P0P6P4 ; Index 27 dw HocusPocus_EffectBlock_P5P1P6P2 ; Index 28 dw HocusPocus_EffectBlock_P2P3 ; Index 29 dw HocusPocus_EffectBlock_P6P0 ; Index 30 dw HocusPocus_EffectBlock_P5P6P6P0 ; Index 31 dw HocusPocus_EffectBlock_P6P5 ; Index 32 dw HocusPocus_EffectBlock_P4P11 ; Index 33 dw HocusPocus_EffectBlock_P20P255P15 ; Index 34 dw HocusPocus_EffectBlock_P18P0P28 ; Index 35 dw HocusPocus_EffectBlock_P14P237P255 ; Index 36 dw HocusPocus_EffectBlock_P18P64P1 ; Index 37 dw HocusPocus_EffectBlock_P20P0P16 ; Index 38 dw HocusPocus_EffectBlock_P20P0P48 ; Index 39 dw HocusPocus_EffectBlock_P18P128P2 ; Index 40 dw HocusPocus_EffectBlock_P20P0P3 ; Index 41 dw HocusPocus_EffectBlock_P20P0P1 ; Index 42 dw HocusPocus_EffectBlock_P1P10P0 ; Index 43 dw HocusPocus_EffectBlock_P18P0P4 ; Index 44 dw HocusPocus_EffectBlock_P18P0P2 ; Index 45 dw HocusPocus_EffectBlock_P18P0P1 ; Index 46 dw HocusPocus_EffectBlock_P20P0P9 ; Index 47 dw HocusPocus_EffectBlock_P1P6P6 ; Index 48 dw HocusPocus_EffectBlock_P1P6P5 ; Index 49 dw HocusPocus_EffectBlock_P1P6P3 ; Index 50 dw HocusPocus_EffectBlock_P1P6P0 ; Index 51 dw HocusPocus_EffectBlock_P2P5 ; Index 52 dw HocusPocus_EffectBlock_P2P9 ; Index 53 dw HocusPocus_EffectBlock_P30P1 ; Index 54 dw HocusPocus_EffectBlock_P30P2 ; Index 55 dw HocusPocus_EffectBlock_P30P3 ; Index 56 dw HocusPocus_EffectBlock_P4P10 ; Index 57 dw HocusPocus_EffectBlock_P28P10 ; Index 58 dw HocusPocus_EffectBlock_P28P15 ; Index 59 dw HocusPocus_EffectBlock_P28P22 ; Index 60 dw HocusPocus_EffectBlock_P28P27 ; Index 61 HocusPocus_DisarkPointerRegionEnd40 HocusPocus_EffectBlock_P0 db 0 HocusPocus_EffectBlock_P12 db 12 HocusPocus_EffectBlock_P2P3 db 2, 3 HocusPocus_EffectBlock_P2P4 db 2, 4 HocusPocus_EffectBlock_P2P5 db 2, 5 HocusPocus_EffectBlock_P2P9 db 2, 9 HocusPocus_EffectBlock_P4P0 db 4, 0 HocusPocus_EffectBlock_P4P1 db 4, 1 HocusPocus_EffectBlock_P4P2 db 4, 2 HocusPocus_EffectBlock_P4P3 db 4, 3 HocusPocus_EffectBlock_P4P4 db 4, 4 HocusPocus_EffectBlock_P4P5 db 4, 5 HocusPocus_EffectBlock_P6P0 db 6, 0 HocusPocus_EffectBlock_P6P5 db 6, 5 HocusPocus_EffectBlock_P10P1 db 10, 1 HocusPocus_EffectBlock_P30P1 db 30, 1 HocusPocus_EffectBlock_P30P2 db 30, 2 HocusPocus_EffectBlock_P30P3 db 30, 3 HocusPocus_EffectBlock_P4P10 db 4, 10 HocusPocus_EffectBlock_P4P11 db 4, 11 HocusPocus_EffectBlock_P1P6P0 db 1, 6, 0 HocusPocus_EffectBlock_P1P6P3 db 1, 6, 3 HocusPocus_EffectBlock_P1P6P5 db 1, 6, 5 HocusPocus_EffectBlock_P1P6P6 db 1, 6, 6 HocusPocus_EffectBlock_P28P10 db 28, 10 HocusPocus_EffectBlock_P28P13 db 28, 13 HocusPocus_EffectBlock_P28P15 db 28, 15 HocusPocus_EffectBlock_P28P22 db 28, 22 HocusPocus_EffectBlock_P28P25 db 28, 25 HocusPocus_EffectBlock_P28P27 db 28, 27 HocusPocus_EffectBlock_P18P0P1 db 18, 0, 1 HocusPocus_EffectBlock_P18P0P2 db 18, 0, 2 HocusPocus_EffectBlock_P18P0P4 db 18, 0, 4 HocusPocus_EffectBlock_P1P10P0 db 1, 10, 0 HocusPocus_EffectBlock_P1P10P1 db 1, 10, 1 HocusPocus_EffectBlock_P20P0P1 db 20, 0, 1 HocusPocus_EffectBlock_P20P0P2 db 20, 0, 2 HocusPocus_EffectBlock_P20P0P3 db 20, 0, 3 HocusPocus_EffectBlock_P20P0P4 db 20, 0, 4 HocusPocus_EffectBlock_P20P0P9 db 20, 0, 9 HocusPocus_EffectBlock_P14P16P0 db 14, 16, 0 HocusPocus_EffectBlock_P14P48P0 db 14, 48, 0 HocusPocus_EffectBlock_P18P0P28 db 18, 0, 28 HocusPocus_EffectBlock_P18P64P1 db 18, 64, 1 HocusPocus_EffectBlock_P20P0P13 db 20, 0, 13 HocusPocus_EffectBlock_P20P0P15 db 20, 0, 15 HocusPocus_EffectBlock_P20P0P16 db 20, 0, 16 HocusPocus_EffectBlock_P20P0P32 db 20, 0, 32 HocusPocus_EffectBlock_P20P0P48 db 20, 0, 48 HocusPocus_EffectBlock_P5P0P6P4 db 5, 0, 6, 4 HocusPocus_EffectBlock_P5P0P6P7 db 5, 0, 6, 7 HocusPocus_EffectBlock_P5P1P6P1 db 5, 1, 6, 1 HocusPocus_EffectBlock_P5P1P6P2 db 5, 1, 6, 2 HocusPocus_EffectBlock_P5P6P6P0 db 5, 6, 6, 0 HocusPocus_EffectBlock_P1P11P1P6P5 db 1, 11, 1, 6, 5 HocusPocus_EffectBlock_P18P128P2 db 18, 128, 2 HocusPocus_EffectBlock_P3P2P10P1 db 3, 2, 10, 1 HocusPocus_EffectBlock_P3P6P14P208P255 db 3, 6, 14, 208, 255 HocusPocus_EffectBlock_P20P255P15 db 20, 255, 15 HocusPocus_EffectBlock_P3P4P19P128P0P7P3P30P4 db 3, 4, 19, 128, 0, 7, 3, 30, 4 HocusPocus_EffectBlock_P14P208P255 db 14, 208, 255 HocusPocus_EffectBlock_P14P237P255 db 14, 237, 255 HocusPocus_DisarkByteRegionEnd0 ; Subsong 0 ; ---------------------- HocusPocus_Subsong0_DisarkByteRegionStart0 HocusPocus_Subsong0_Start db 2 ; ReplayFrequency (0=12.5hz, 1=25, 2=50, 3=100, 4=150, 5=300). db 0 ; Digichannel (0-2). db 1 ; PSG count (>0). db 29 ; Loop start index (>=0). db 29 ; End index (>=0). db 3 ; Initial speed (>=0). db 12 ; Base note index (>=0). HocusPocus_Subsong0_Linker HocusPocus_Subsong0_DisarkPointerRegionStart1 ; Position 0 dw HocusPocus_Subsong0_Track0 dw HocusPocus_Subsong0_Track1 dw HocusPocus_Subsong0_Track1 dw HocusPocus_Subsong0_LinkerBlock0 ; Position 1 dw HocusPocus_Subsong0_Track0 dw HocusPocus_Subsong0_Track1 dw HocusPocus_Subsong0_Track2 dw HocusPocus_Subsong0_LinkerBlock0 ; Position 2 dw HocusPocus_Subsong0_Track0 dw HocusPocus_Subsong0_Track4 dw HocusPocus_Subsong0_Track5 dw HocusPocus_Subsong0_LinkerBlock0 ; Position 3 dw HocusPocus_Subsong0_Track0 dw HocusPocus_Subsong0_Track64 dw HocusPocus_Subsong0_Track3 dw HocusPocus_Subsong0_LinkerBlock0 ; Position 4 dw HocusPocus_Subsong0_Track6 dw HocusPocus_Subsong0_Track8 dw HocusPocus_Subsong0_Track7 dw HocusPocus_Subsong0_LinkerBlock1 ; Position 5 dw HocusPocus_Subsong0_Track10 dw HocusPocus_Subsong0_Track9 dw HocusPocus_Subsong0_Track34 dw HocusPocus_Subsong0_LinkerBlock2 ; Position 6 dw HocusPocus_Subsong0_Track10 dw HocusPocus_Subsong0_Track9 dw HocusPocus_Subsong0_Track13 dw HocusPocus_Subsong0_LinkerBlock2 ; Position 7 dw HocusPocus_Subsong0_Track16 dw HocusPocus_Subsong0_Track9 dw HocusPocus_Subsong0_Track12 dw HocusPocus_Subsong0_LinkerBlock2 ; Position 8 dw HocusPocus_Subsong0_Track17 dw HocusPocus_Subsong0_Track21 dw HocusPocus_Subsong0_Track11 dw HocusPocus_Subsong0_LinkerBlock2 ; Position 9 dw HocusPocus_Subsong0_Track14 dw HocusPocus_Subsong0_Track19 dw HocusPocus_Subsong0_Track15 dw HocusPocus_Subsong0_LinkerBlock2 ; Position 10 dw HocusPocus_Subsong0_Track18 dw HocusPocus_Subsong0_Track19 dw HocusPocus_Subsong0_Track20 dw HocusPocus_Subsong0_LinkerBlock2 ; Position 11 dw HocusPocus_Subsong0_Track22 dw HocusPocus_Subsong0_Track23 dw HocusPocus_Subsong0_Track24 dw HocusPocus_Subsong0_LinkerBlock2 ; Position 12 dw HocusPocus_Subsong0_Track61 dw HocusPocus_Subsong0_Track62 dw HocusPocus_Subsong0_Track63 dw HocusPocus_Subsong0_LinkerBlock3 ; Position 13 dw HocusPocus_Subsong0_Track25 dw HocusPocus_Subsong0_Track26 dw HocusPocus_Subsong0_Track27 dw HocusPocus_Subsong0_LinkerBlock3 ; Position 14 dw HocusPocus_Subsong0_Track28 dw HocusPocus_Subsong0_Track29 dw HocusPocus_Subsong0_Track30 dw HocusPocus_Subsong0_LinkerBlock4 ; Position 15 dw HocusPocus_Subsong0_Track31 dw HocusPocus_Subsong0_Track32 dw HocusPocus_Subsong0_Track33 dw HocusPocus_Subsong0_LinkerBlock5 ; Position 16 dw HocusPocus_Subsong0_Track35 dw HocusPocus_Subsong0_Track36 dw HocusPocus_Subsong0_Track37 dw HocusPocus_Subsong0_LinkerBlock3 ; Position 17 dw HocusPocus_Subsong0_Track38 dw HocusPocus_Subsong0_Track39 dw HocusPocus_Subsong0_Track40 dw HocusPocus_Subsong0_LinkerBlock6 ; Position 18 dw HocusPocus_Subsong0_Track35 dw HocusPocus_Subsong0_Track36 dw HocusPocus_Subsong0_Track37 dw HocusPocus_Subsong0_LinkerBlock4 ; Position 19 dw HocusPocus_Subsong0_Track41 dw HocusPocus_Subsong0_Track42 dw HocusPocus_Subsong0_Track43 dw HocusPocus_Subsong0_LinkerBlock4 ; Position 20 dw HocusPocus_Subsong0_Track41 dw HocusPocus_Subsong0_Track42 dw HocusPocus_Subsong0_Track44 dw HocusPocus_Subsong0_LinkerBlock4 ; Position 21 dw HocusPocus_Subsong0_Track45 dw HocusPocus_Subsong0_Track46 dw HocusPocus_Subsong0_Track47 dw HocusPocus_Subsong0_LinkerBlock4 ; Position 22 dw HocusPocus_Subsong0_Track48 dw HocusPocus_Subsong0_Track49 dw HocusPocus_Subsong0_Track50 dw HocusPocus_Subsong0_LinkerBlock7 ; Position 23 dw HocusPocus_Subsong0_Track48 dw HocusPocus_Subsong0_Track49 dw HocusPocus_Subsong0_Track50 dw HocusPocus_Subsong0_LinkerBlock7 ; Position 24 dw HocusPocus_Subsong0_Track48 dw HocusPocus_Subsong0_Track49 dw HocusPocus_Subsong0_Track50 dw HocusPocus_Subsong0_LinkerBlock7 ; Position 25 dw HocusPocus_Subsong0_Track48 dw HocusPocus_Subsong0_Track51 dw HocusPocus_Subsong0_Track52 dw HocusPocus_Subsong0_LinkerBlock8 ; Position 26 dw HocusPocus_Subsong0_Track53 dw HocusPocus_Subsong0_Track54 dw HocusPocus_Subsong0_Track55 dw HocusPocus_Subsong0_LinkerBlock2 ; Position 27 dw HocusPocus_Subsong0_Track53 dw HocusPocus_Subsong0_Track54 dw HocusPocus_Subsong0_Track60 dw HocusPocus_Subsong0_LinkerBlock2 ; Position 28 dw HocusPocus_Subsong0_Track56 dw HocusPocus_Subsong0_Track57 dw HocusPocus_Subsong0_Track58 dw HocusPocus_Subsong0_LinkerBlock9 ; Position 29 HocusPocus_Subsong0_Linker_Loop dw HocusPocus_Subsong0_Track59 dw HocusPocus_Subsong0_Track59 dw HocusPocus_Subsong0_Track59 dw HocusPocus_Subsong0_LinkerBlock10 HocusPocus_Subsong0_DisarkPointerRegionEnd1 dw 0 ; Loop. HocusPocus_Subsong0_DisarkWordForceReference2 dw HocusPocus_Subsong0_Linker_Loop HocusPocus_Subsong0_LinkerBlock0 db 64 ; Height. db 0 ; Transposition 0. db 0 ; Transposition 1. db 0 ; Transposition 2. HocusPocus_Subsong0_DisarkWordForceReference3 dw HocusPocus_Subsong0_SpeedTrack0 ; SpeedTrack address. HocusPocus_Subsong0_DisarkWordForceReference4 dw HocusPocus_Subsong0_EventTrack0 ; EventTrack address. HocusPocus_Subsong0_LinkerBlock1 db 80 ; Height. db 0 ; Transposition 0. db 0 ; Transposition 1. db 0 ; Transposition 2. HocusPocus_Subsong0_DisarkWordForceReference5 dw HocusPocus_Subsong0_SpeedTrack0 ; SpeedTrack address. HocusPocus_Subsong0_DisarkWordForceReference6 dw HocusPocus_Subsong0_EventTrack0 ; EventTrack address. HocusPocus_Subsong0_LinkerBlock2 db 64 ; Height. db 0 ; Transposition 0. db 0 ; Transposition 1. db 0 ; Transposition 2. HocusPocus_Subsong0_DisarkWordForceReference7 dw HocusPocus_Subsong0_SpeedTrack1 ; SpeedTrack address. HocusPocus_Subsong0_DisarkWordForceReference8 dw HocusPocus_Subsong0_EventTrack0 ; EventTrack address. HocusPocus_Subsong0_LinkerBlock3 db 32 ; Height. db 0 ; Transposition 0. db 0 ; Transposition 1. db 0 ; Transposition 2. HocusPocus_Subsong0_DisarkWordForceReference9 dw HocusPocus_Subsong0_SpeedTrack1 ; SpeedTrack address. HocusPocus_Subsong0_DisarkWordForceReference10 dw HocusPocus_Subsong0_EventTrack0 ; EventTrack address. HocusPocus_Subsong0_LinkerBlock4 db 16 ; Height. db 0 ; Transposition 0. db 0 ; Transposition 1. db 0 ; Transposition 2. HocusPocus_Subsong0_DisarkWordForceReference11 dw HocusPocus_Subsong0_SpeedTrack1 ; SpeedTrack address. HocusPocus_Subsong0_DisarkWordForceReference12 dw HocusPocus_Subsong0_EventTrack0 ; EventTrack address. HocusPocus_Subsong0_LinkerBlock5 db 80 ; Height. db 0 ; Transposition 0. db 0 ; Transposition 1. db 0 ; Transposition 2. HocusPocus_Subsong0_DisarkWordForceReference13 dw HocusPocus_Subsong0_SpeedTrack1 ; SpeedTrack address. HocusPocus_Subsong0_DisarkWordForceReference14 dw HocusPocus_Subsong0_EventTrack0 ; EventTrack address. HocusPocus_Subsong0_LinkerBlock6 db 52 ; Height. db 0 ; Transposition 0. db 0 ; Transposition 1. db 0 ; Transposition 2. HocusPocus_Subsong0_DisarkWordForceReference15 dw HocusPocus_Subsong0_SpeedTrack1 ; SpeedTrack address. HocusPocus_Subsong0_DisarkWordForceReference16 dw HocusPocus_Subsong0_EventTrack0 ; EventTrack address. HocusPocus_Subsong0_LinkerBlock7 db 32 ; Height. db -2 ; Transposition 0. db -2 ; Transposition 1. db -2 ; Transposition 2. HocusPocus_Subsong0_DisarkWordForceReference17 dw HocusPocus_Subsong0_SpeedTrack0 ; SpeedTrack address. HocusPocus_Subsong0_DisarkWordForceReference18 dw HocusPocus_Subsong0_EventTrack0 ; EventTrack address. HocusPocus_Subsong0_LinkerBlock8 db 16 ; Height. db 0 ; Transposition 0. db 2 ; Transposition 1. db 0 ; Transposition 2. HocusPocus_Subsong0_DisarkWordForceReference19 dw HocusPocus_Subsong0_SpeedTrack0 ; SpeedTrack address. HocusPocus_Subsong0_DisarkWordForceReference20 dw HocusPocus_Subsong0_EventTrack0 ; EventTrack address. HocusPocus_Subsong0_LinkerBlock9 db 79 ; Height. db 0 ; Transposition 0. db 0 ; Transposition 1. db 0 ; Transposition 2. HocusPocus_Subsong0_DisarkWordForceReference21 dw HocusPocus_Subsong0_SpeedTrack2 ; SpeedTrack address. HocusPocus_Subsong0_DisarkWordForceReference22 dw HocusPocus_Subsong0_EventTrack0 ; EventTrack address. HocusPocus_Subsong0_LinkerBlock10 db 5 ; Height. db 0 ; Transposition 0. db 0 ; Transposition 1. db 0 ; Transposition 2. HocusPocus_Subsong0_DisarkWordForceReference23 dw HocusPocus_Subsong0_SpeedTrack1 ; SpeedTrack address. HocusPocus_Subsong0_DisarkWordForceReference24 dw HocusPocus_Subsong0_EventTrack0 ; EventTrack address. HocusPocus_Subsong0_Track0 db 191 db 113 ; Escape note (113). db 1 ; New Instrument (1). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 63 db 113 ; Escape note (113). db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 63 db 113 ; Escape note (113). db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 63 db 113 ; Escape note (113). db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 60 ; Waits for 1 line. db 63 db 113 ; Escape note (113). db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track1 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track2 db 255 db 5 ; Escape note (5). db 2 ; New Instrument (2). db 8 ; Index to an effect block. db 61, 6 ; Waits for 7 lines. db 63 db 5 ; Escape note (5). db 61, 6 ; Waits for 7 lines. db 63 db 5 ; Escape note (5). db 61, 6 ; Waits for 7 lines. db 127 db 5 ; Escape note (5). db 12 ; Index to an effect block. db 61, 6 ; Waits for 7 lines. db 63 db 5 ; Escape note (5). db 61, 6 ; Waits for 7 lines. db 63 db 5 ; Escape note (5). db 61, 6 ; Waits for 7 lines. db 63 db 5 ; Escape note (5). db 61, 6 ; Waits for 7 lines. db 127 db 5 ; Escape note (5). db 4 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track3 db 255 db 5 ; Escape note (5). db 2 ; New Instrument (2). db 6 ; Index to an effect block. db 61, 6 ; Waits for 7 lines. db 63 db 5 ; Escape note (5). db 61, 6 ; Waits for 7 lines. db 63 db 5 ; Escape note (5). db 61, 6 ; Waits for 7 lines. db 63 db 5 ; Escape note (5). db 61, 6 ; Waits for 7 lines. db 63 db 5 ; Escape note (5). db 61, 6 ; Waits for 7 lines. db 63 db 5 ; Escape note (5). db 61, 6 ; Waits for 7 lines. db 63 db 5 ; Escape note (5). db 61, 6 ; Waits for 7 lines. db 63 db 5 ; Escape note (5). db 60 ; Waits for 1 line. db 213 db 6 ; New Instrument (6). db 21 ; Index to an effect block. db 80 db 8 ; Index to an effect block. db 71 db 4 ; Index to an effect block. db 105 db 7 ; Index to an effect block. db 97 db 6 ; Index to an effect block. db 4 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track4 db 241 db 3 ; New Instrument (3). db 31 ; Index to an effect block. db 61, 14 ; Waits for 15 lines. db 49 db 61, 14 ; Waits for 15 lines. db 113 db 21 ; Index to an effect block. db 61, 14 ; Waits for 15 lines. db 113 db 8 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track5 db 191 db 5 ; Escape note (5). db 2 ; New Instrument (2). db 61, 6 ; Waits for 7 lines. db 63 db 5 ; Escape note (5). db 61, 6 ; Waits for 7 lines. db 63 db 5 ; Escape note (5). db 61, 6 ; Waits for 7 lines. db 127 db 5 ; Escape note (5). db 7 ; Index to an effect block. db 61, 6 ; Waits for 7 lines. db 63 db 5 ; Escape note (5). db 61, 6 ; Waits for 7 lines. db 63 db 5 ; Escape note (5). db 61, 6 ; Waits for 7 lines. db 63 db 5 ; Escape note (5). db 61, 6 ; Waits for 7 lines. db 63 db 5 ; Escape note (5). db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track6 db 192 db 5 ; New Instrument (5). db 43 ; Index to an effect block. db 61, 29 ; Waits for 30 lines. db 124 ; No note, but effects. db 39 ; Index to an effect block. db 62 + 3 * 64 ; Optimized wait for 5 lines. db 124 ; No note, but effects. db 38 ; Index to an effect block. db 61, 14 ; Waits for 15 lines. db 128 db 0 ; New Instrument (0). db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track7 db 192 db 4 ; New Instrument (4). db 2 ; Index to an effect block. db 61, 29 ; Waits for 30 lines. db 124 ; No note, but effects. db 35 ; Index to an effect block. db 61, 20 ; Waits for 21 lines. db 128 db 0 ; New Instrument (0). db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track8 db 197 db 6 ; New Instrument (6). db 2 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track9 db 204 db 8 ; New Instrument (8). db 6 ; Index to an effect block. db 60 ; Waits for 1 line. db 152 db 9 ; New Instrument (9). db 140 db 11 ; New Instrument (11). db 60 ; Waits for 1 line. db 152 db 12 ; New Instrument (12). db 140 db 10 ; New Instrument (10). db 60 ; Waits for 1 line. db 216 db 12 ; New Instrument (12). db 8 ; Index to an effect block. db 88 db 4 ; Index to an effect block. db 152 db 9 ; New Instrument (9). db 60 ; Waits for 1 line. db 216 db 12 ; New Instrument (12). db 12 ; Index to an effect block. db 88 db 7 ; Index to an effect block. db 216 db 9 ; New Instrument (9). db 4 ; Index to an effect block. db 60 ; Waits for 1 line. db 204 db 8 ; New Instrument (8). db 6 ; Index to an effect block. db 60 ; Waits for 1 line. db 152 db 9 ; New Instrument (9). db 140 db 11 ; New Instrument (11). db 60 ; Waits for 1 line. db 152 db 12 ; New Instrument (12). db 140 db 10 ; New Instrument (10). db 60 ; Waits for 1 line. db 216 db 12 ; New Instrument (12). db 8 ; Index to an effect block. db 88 db 4 ; Index to an effect block. db 152 db 9 ; New Instrument (9). db 60 ; Waits for 1 line. db 216 db 12 ; New Instrument (12). db 12 ; Index to an effect block. db 88 db 7 ; Index to an effect block. db 216 db 9 ; New Instrument (9). db 4 ; Index to an effect block. db 140 db 8 ; New Instrument (8). db 76 db 6 ; Index to an effect block. db 60 ; Waits for 1 line. db 152 db 9 ; New Instrument (9). db 140 db 11 ; New Instrument (11). db 60 ; Waits for 1 line. db 152 db 12 ; New Instrument (12). db 140 db 10 ; New Instrument (10). db 60 ; Waits for 1 line. db 216 db 12 ; New Instrument (12). db 8 ; Index to an effect block. db 88 db 4 ; Index to an effect block. db 152 db 9 ; New Instrument (9). db 60 ; Waits for 1 line. db 216 db 12 ; New Instrument (12). db 12 ; Index to an effect block. db 88 db 7 ; Index to an effect block. db 216 db 9 ; New Instrument (9). db 4 ; Index to an effect block. db 60 ; Waits for 1 line. db 204 db 8 ; New Instrument (8). db 6 ; Index to an effect block. db 60 ; Waits for 1 line. db 152 db 9 ; New Instrument (9). db 140 db 11 ; New Instrument (11). db 60 ; Waits for 1 line. db 152 db 12 ; New Instrument (12). db 140 db 10 ; New Instrument (10). db 60 ; Waits for 1 line. db 216 db 12 ; New Instrument (12). db 8 ; Index to an effect block. db 88 db 4 ; Index to an effect block. db 152 db 9 ; New Instrument (9). db 60 ; Waits for 1 line. db 216 db 12 ; New Instrument (12). db 12 ; Index to an effect block. db 88 db 7 ; Index to an effect block. db 216 db 9 ; New Instrument (9). db 4 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track10 db 192 db 13 ; New Instrument (13). db 2 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 0 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 0 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 0 db 0 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 0 db 60 ; Waits for 1 line. db 0 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 0 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 0 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 0 db 0 db 60 ; Waits for 1 line. db 0 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 1 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 1 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 1 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 1 db 1 db 60 ; Waits for 1 line. db 1 db 60 ; Waits for 1 line. db 1 db 60 ; Waits for 1 line. db 63 db 10 ; Escape note (10). db 62 + 0 * 64 ; Optimized wait for 2 lines. db 63 db 10 ; Escape note (10). db 62 + 0 * 64 ; Optimized wait for 2 lines. db 63 db 10 ; Escape note (10). db 62 + 0 * 64 ; Optimized wait for 2 lines. db 63 db 10 ; Escape note (10). db 63 db 10 ; Escape note (10). db 60 ; Waits for 1 line. db 63 db 10 ; Escape note (10). db 60 ; Waits for 1 line. db 63 db 10 ; Escape note (10). db 63 db 10 ; Escape note (10). db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track11 db 61, 15 ; Waits for 16 lines. db 235 db 7 ; New Instrument (7). db 25 ; Index to an effect block. db 61, 14 ; Waits for 15 lines. db 41 db 61, 14 ; Waits for 15 lines. db 255 db 10 ; Escape note (10). db 5 ; New Instrument (5). db 2 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 24 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 59 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 24 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 58 ; Index to an effect block. db 60 ; Waits for 1 line. db 124 ; No note, but effects. db 24 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track12 db 61, 15 ; Waits for 16 lines. db 235 db 14 ; New Instrument (14). db 28 ; Index to an effect block. db 61, 14 ; Waits for 15 lines. db 41 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track13 db 61, 15 ; Waits for 16 lines. db 235 db 21 ; New Instrument (21). db 50 ; Index to an effect block. db 124 ; No note, but effects. db 15 ; Index to an effect block. db 61, 13 ; Waits for 14 lines. db 105 db 27 ; Index to an effect block. db 124 ; No note, but effects. db 15 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track14 db 204 db 17 ; New Instrument (17). db 2 ; Index to an effect block. db 12 db 12 db 152 db 18 ; New Instrument (18). db 124 ; No note, but effects. db 11 ; Index to an effect block. db 152 db 17 ; New Instrument (17). db 20 db 19 db 15 db 17 db 7 db 8 db 16 db 17 db 19 db 15 db 128 db 18 ; New Instrument (18). db 62 + 0 * 64 ; Optimized wait for 2 lines. db 1 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 3 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 0 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 135 db 17 ; New Instrument (17). db 8 db 7 db 8 db 129 db 18 ; New Instrument (18). db 62 + 0 * 64 ; Optimized wait for 2 lines. db 13 db 124 ; No note, but effects. db 11 ; Index to an effect block. db 60 ; Waits for 1 line. db 5 db 60 ; Waits for 1 line. db 152 db 20 ; New Instrument (20). db 60 ; Waits for 1 line. db 133 db 17 ; New Instrument (17). db 5 db 7 db 8 db 135 db 18 ; New Instrument (18). db 8 db 152 db 19 ; New Instrument (19). db 191 db 10 ; Escape note (10). db 18 ; New Instrument (18). db 60 ; Waits for 1 line. db 63 db 10 ; Escape note (10). db 62 + 0 * 64 ; Optimized wait for 2 lines. db 10 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 63 db 10 ; Escape note (10). db 62 + 0 * 64 ; Optimized wait for 2 lines. db 10 db 8 db 5 db 3 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track15 db 228 db 16 ; New Instrument (16). db 18 ; Index to an effect block. db 46 db 48 db 36 db 60 ; Waits for 1 line. db 36 db 48 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 63 db 72 ; Escape note (72). db 60 ; Waits for 1 line. db 63 db 72 ; Escape note (72). db 48 db 60 ; Waits for 1 line. db 48 db 60 ; Waits for 1 line. db 36 db 55 db 63 db 68 ; Escape note (68). db 36 db 60 ; Waits for 1 line. db 36 db 48 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 63 db 72 ; Escape note (72). db 60 ; Waits for 1 line. db 63 db 72 ; Escape note (72). db 51 db 60 ; Waits for 1 line. db 51 db 60 ; Waits for 1 line. db 233 db 15 ; New Instrument (15). db 10 ; Index to an effect block. db 124 ; No note, but effects. db 3 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 100 db 3 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 216 db 19 ; New Instrument (19). db 2 ; Index to an effect block. db 233 db 15 ; New Instrument (15). db 10 ; Index to an effect block. db 124 ; No note, but effects. db 3 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 216 db 20 ; New Instrument (20). db 2 ; Index to an effect block. db 228 db 15 ; New Instrument (15). db 13 ; Index to an effect block. db 60 ; Waits for 1 line. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 247 db 20 ; New Instrument (20). db 2 ; Index to an effect block. db 29 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track16 db 128 db 13 ; New Instrument (13). db 62 + 0 * 64 ; Optimized wait for 2 lines. db 0 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 0 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 0 db 0 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 0 db 3 db 0 db 0 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 0 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 0 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 0 db 12 db 60 ; Waits for 1 line. db 124 ; No note, but effects. db 11 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 0 db 1 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 1 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 1 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 1 db 13 db 124 ; No note, but effects. db 20 ; Index to an effect block. db 1 db 60 ; Waits for 1 line. db 1 db 60 ; Waits for 1 line. db 63 db 10 ; Escape note (10). db 62 + 0 * 64 ; Optimized wait for 2 lines. db 10 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 63 db 10 ; Escape note (10). db 62 + 0 * 64 ; Optimized wait for 2 lines. db 138 db 22 ; New Instrument (22). db 22 db 10 db 22 db 152 db 13 ; New Instrument (13). db 124 ; No note, but effects. db 41 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track17 db 135 db 13 ; New Instrument (13). db 5 db 3 db 0 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 0 db 60 ; Waits for 1 line. db 0 db 12 db 0 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 0 db 60 ; Waits for 1 line. db 7 db 5 db 3 db 0 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 0 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 8 db 0 db 60 ; Waits for 1 line. db 0 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 1 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 1 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 1 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 136 db 22 ; New Instrument (22). db 20 db 8 db 22 db 10 db 20 db 22 db 138 db 13 ; New Instrument (13). db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 23 ; Index to an effect block. db 60 ; Waits for 1 line. db 124 ; No note, but effects. db 46 ; Index to an effect block. db 124 ; No note, but effects. db 61 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 23 ; Index to an effect block. db 60 ; Waits for 1 line. db 124 ; No note, but effects. db 42 ; Index to an effect block. db 124 ; No note, but effects. db 60 ; Index to an effect block. db 60 ; Waits for 1 line. db 124 ; No note, but effects. db 23 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track18 db 140 db 17 ; New Instrument (17). db 12 db 12 db 152 db 18 ; New Instrument (18). db 124 ; No note, but effects. db 11 ; Index to an effect block. db 152 db 17 ; New Instrument (17). db 20 db 19 db 15 db 17 db 7 db 8 db 16 db 17 db 19 db 15 db 128 db 18 ; New Instrument (18). db 62 + 0 * 64 ; Optimized wait for 2 lines. db 1 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 3 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 0 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 147 db 17 ; New Instrument (17). db 20 db 19 db 15 db 141 db 18 ; New Instrument (18). db 62 + 0 * 64 ; Optimized wait for 2 lines. db 13 db 124 ; No note, but effects. db 11 ; Index to an effect block. db 60 ; Waits for 1 line. db 5 db 60 ; Waits for 1 line. db 152 db 20 ; New Instrument (20). db 191 db 79 ; Escape note (79). db 18 ; New Instrument (18). db 63 db 77 ; Escape note (77). db 55 db 135 db 17 ; New Instrument (17). db 8 db 135 db 18 ; New Instrument (18). db 8 db 152 db 19 ; New Instrument (19). db 138 db 18 ; New Instrument (18). db 60 ; Waits for 1 line. db 12 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 1 db 124 ; No note, but effects. db 44 ; Index to an effect block. db 11 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 11 db 11 db 13 db 15 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track19 db 216 db 19 ; New Instrument (19). db 2 ; Index to an effect block. db 60 ; Waits for 1 line. db 228 db 16 ; New Instrument (16). db 1 ; Index to an effect block. db 216 db 19 ; New Instrument (19). db 2 ; Index to an effect block. db 240 db 16 ; New Instrument (16). db 1 ; Index to an effect block. db 36 db 216 db 19 ; New Instrument (19). db 2 ; Index to an effect block. db 228 db 16 ; New Instrument (16). db 1 ; Index to an effect block. db 216 db 20 ; New Instrument (20). db 2 ; Index to an effect block. db 240 db 16 ; New Instrument (16). db 1 ; Index to an effect block. db 60 ; Waits for 1 line. db 63 db 72 ; Escape note (72). db 60 ; Waits for 1 line. db 63 db 72 ; Escape note (72). db 48 db 216 db 19 ; New Instrument (19). db 2 ; Index to an effect block. db 24 db 240 db 16 ; New Instrument (16). db 1 ; Index to an effect block. db 36 db 216 db 19 ; New Instrument (19). db 2 ; Index to an effect block. db 255 db 68 ; Escape note (68). db 16 ; New Instrument (16). db 1 ; Index to an effect block. db 36 db 216 db 19 ; New Instrument (19). db 2 ; Index to an effect block. db 228 db 16 ; New Instrument (16). db 1 ; Index to an effect block. db 216 db 20 ; New Instrument (20). db 2 ; Index to an effect block. db 240 db 16 ; New Instrument (16). db 1 ; Index to an effect block. db 60 ; Waits for 1 line. db 63 db 72 ; Escape note (72). db 60 ; Waits for 1 line. db 63 db 72 ; Escape note (72). db 51 db 60 ; Waits for 1 line. db 216 db 19 ; New Instrument (19). db 2 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 231 db 15 ; New Instrument (15). db 10 ; Index to an effect block. db 124 ; No note, but effects. db 3 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 103 db 3 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 62 + 2 * 64 ; Optimized wait for 4 lines. db 103 db 10 ; Index to an effect block. db 124 ; No note, but effects. db 3 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 103 db 3 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track20 db 228 db 16 ; New Instrument (16). db 18 ; Index to an effect block. db 46 db 48 db 36 db 60 ; Waits for 1 line. db 36 db 48 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 63 db 72 ; Escape note (72). db 60 ; Waits for 1 line. db 63 db 72 ; Escape note (72). db 48 db 60 ; Waits for 1 line. db 48 db 60 ; Waits for 1 line. db 36 db 55 db 63 db 68 ; Escape note (68). db 36 db 60 ; Waits for 1 line. db 36 db 48 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 63 db 72 ; Escape note (72). db 60 ; Waits for 1 line. db 63 db 72 ; Escape note (72). db 51 db 60 ; Waits for 1 line. db 51 db 60 ; Waits for 1 line. db 233 db 15 ; New Instrument (15). db 10 ; Index to an effect block. db 124 ; No note, but effects. db 3 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 100 db 3 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 216 db 19 ; New Instrument (19). db 2 ; Index to an effect block. db 233 db 15 ; New Instrument (15). db 10 ; Index to an effect block. db 124 ; No note, but effects. db 3 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 216 db 20 ; New Instrument (20). db 2 ; Index to an effect block. db 227 db 15 ; New Instrument (15). db 13 ; Index to an effect block. db 60 ; Waits for 1 line. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 247 db 20 ; New Instrument (20). db 2 ; Index to an effect block. db 29 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track21 db 204 db 8 ; New Instrument (8). db 6 ; Index to an effect block. db 60 ; Waits for 1 line. db 152 db 9 ; New Instrument (9). db 140 db 11 ; New Instrument (11). db 60 ; Waits for 1 line. db 152 db 12 ; New Instrument (12). db 140 db 10 ; New Instrument (10). db 60 ; Waits for 1 line. db 216 db 12 ; New Instrument (12). db 8 ; Index to an effect block. db 216 db 20 ; New Instrument (20). db 7 ; Index to an effect block. db 216 db 8 ; New Instrument (8). db 4 ; Index to an effect block. db 60 ; Waits for 1 line. db 216 db 12 ; New Instrument (12). db 12 ; Index to an effect block. db 88 db 7 ; Index to an effect block. db 60 ; Waits for 1 line. db 152 db 9 ; New Instrument (9). db 204 db 8 ; New Instrument (8). db 6 ; Index to an effect block. db 60 ; Waits for 1 line. db 152 db 9 ; New Instrument (9). db 140 db 11 ; New Instrument (11). db 60 ; Waits for 1 line. db 152 db 12 ; New Instrument (12). db 140 db 10 ; New Instrument (10). db 60 ; Waits for 1 line. db 216 db 12 ; New Instrument (12). db 8 ; Index to an effect block. db 216 db 20 ; New Instrument (20). db 7 ; Index to an effect block. db 216 db 9 ; New Instrument (9). db 4 ; Index to an effect block. db 60 ; Waits for 1 line. db 152 db 20 ; New Instrument (20). db 216 db 12 ; New Instrument (12). db 8 ; Index to an effect block. db 216 db 9 ; New Instrument (9). db 4 ; Index to an effect block. db 140 db 8 ; New Instrument (8). db 76 db 6 ; Index to an effect block. db 60 ; Waits for 1 line. db 152 db 9 ; New Instrument (9). db 140 db 11 ; New Instrument (11). db 60 ; Waits for 1 line. db 152 db 12 ; New Instrument (12). db 140 db 10 ; New Instrument (10). db 60 ; Waits for 1 line. db 216 db 12 ; New Instrument (12). db 8 ; Index to an effect block. db 216 db 20 ; New Instrument (20). db 4 ; Index to an effect block. db 152 db 9 ; New Instrument (9). db 60 ; Waits for 1 line. db 216 db 20 ; New Instrument (20). db 7 ; Index to an effect block. db 152 db 12 ; New Instrument (12). db 216 db 9 ; New Instrument (9). db 4 ; Index to an effect block. db 60 ; Waits for 1 line. db 216 db 19 ; New Instrument (19). db 6 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 24 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 24 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 152 db 20 ; New Instrument (20). db 62 + 0 * 64 ; Optimized wait for 2 lines. db 152 db 19 ; New Instrument (19). db 60 ; Waits for 1 line. db 24 db 152 db 9 ; New Instrument (9). db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track22 db 140 db 17 ; New Instrument (17). db 12 db 12 db 152 db 18 ; New Instrument (18). db 124 ; No note, but effects. db 11 ; Index to an effect block. db 140 db 17 ; New Instrument (17). db 12 db 12 db 14 db 14 db 14 db 14 db 26 db 14 db 26 db 2 db 15 db 15 db 15 db 15 db 27 db 15 db 15 db 27 db 17 db 17 db 17 db 17 db 5 db 17 db 17 db 19 db 148 db 18 ; New Instrument (18). db 8 db 20 db 8 db 163 db 20 ; New Instrument (20). db 17 db 26 db 35 db 147 db 18 ; New Instrument (18). db 7 db 19 db 7 db 157 db 20 ; New Instrument (20). db 33 db 161 db 23 ; New Instrument (23). db 19 db 140 db 18 ; New Instrument (18). db 0 db 12 db 0 db 143 db 6 ; New Instrument (6). db 17 db 26 db 36 db 134 db 18 ; New Instrument (18). db 18 db 6 db 18 db 124 ; No note, but effects. db 45 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track23 db 216 db 19 ; New Instrument (19). db 2 ; Index to an effect block. db 60 ; Waits for 1 line. db 169 db 23 ; New Instrument (23). db 152 db 19 ; New Instrument (19). db 240 db 16 ; New Instrument (16). db 1 ; Index to an effect block. db 36 db 216 db 19 ; New Instrument (19). db 2 ; Index to an effect block. db 228 db 16 ; New Instrument (16). db 1 ; Index to an effect block. db 216 db 20 ; New Instrument (20). db 2 ; Index to an effect block. db 240 db 16 ; New Instrument (16). db 1 ; Index to an effect block. db 60 ; Waits for 1 line. db 63 db 72 ; Escape note (72). db 230 db 23 ; New Instrument (23). db 2 ; Index to an effect block. db 255 db 72 ; Escape note (72). db 16 ; New Instrument (16). db 1 ; Index to an effect block. db 48 db 216 db 19 ; New Instrument (19). db 2 ; Index to an effect block. db 24 db 240 db 16 ; New Instrument (16). db 1 ; Index to an effect block. db 36 db 216 db 19 ; New Instrument (19). db 2 ; Index to an effect block. db 255 db 68 ; Escape note (68). db 16 ; New Instrument (16). db 1 ; Index to an effect block. db 36 db 216 db 19 ; New Instrument (19). db 2 ; Index to an effect block. db 228 db 16 ; New Instrument (16). db 1 ; Index to an effect block. db 216 db 20 ; New Instrument (20). db 2 ; Index to an effect block. db 240 db 16 ; New Instrument (16). db 1 ; Index to an effect block. db 60 ; Waits for 1 line. db 63 db 72 ; Escape note (72). db 60 ; Waits for 1 line. db 63 db 72 ; Escape note (72). db 51 db 60 ; Waits for 1 line. db 216 db 19 ; New Instrument (19). db 2 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 231 db 15 ; New Instrument (15). db 10 ; Index to an effect block. db 124 ; No note, but effects. db 3 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 103 db 3 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 62 + 2 * 64 ; Optimized wait for 4 lines. db 103 db 10 ; Index to an effect block. db 124 ; No note, but effects. db 3 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 111 db 3 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track24 db 228 db 16 ; New Instrument (16). db 18 ; Index to an effect block. db 46 db 48 db 36 db 60 ; Waits for 1 line. db 36 db 48 db 221 db 23 ; New Instrument (23). db 2 ; Index to an effect block. db 60 ; Waits for 1 line. db 255 db 72 ; Escape note (72). db 16 ; New Instrument (16). db 5 ; Index to an effect block. db 60 ; Waits for 1 line. db 63 db 72 ; Escape note (72). db 48 db 60 ; Waits for 1 line. db 48 db 228 db 23 ; New Instrument (23). db 2 ; Index to an effect block. db 60 ; Waits for 1 line. db 247 db 16 ; New Instrument (16). db 5 ; Index to an effect block. db 63 db 68 ; Escape note (68). db 36 db 221 db 23 ; New Instrument (23). db 2 ; Index to an effect block. db 228 db 16 ; New Instrument (16). db 5 ; Index to an effect block. db 48 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 63 db 72 ; Escape note (72). db 60 ; Waits for 1 line. db 63 db 72 ; Escape note (72). db 51 db 218 db 23 ; New Instrument (23). db 2 ; Index to an effect block. db 243 db 16 ; New Instrument (16). db 5 ; Index to an effect block. db 225 db 23 ; New Instrument (23). db 2 ; Index to an effect block. db 233 db 15 ; New Instrument (15). db 10 ; Index to an effect block. db 124 ; No note, but effects. db 3 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 100 db 3 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 216 db 19 ; New Instrument (19). db 2 ; Index to an effect block. db 235 db 15 ; New Instrument (15). db 10 ; Index to an effect block. db 124 ; No note, but effects. db 3 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 216 db 20 ; New Instrument (20). db 2 ; Index to an effect block. db 234 db 15 ; New Instrument (15). db 13 ; Index to an effect block. db 60 ; Waits for 1 line. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 247 db 20 ; New Instrument (20). db 2 ; Index to an effect block. db 29 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track25 db 148 db 18 ; New Instrument (18). db 60 ; Waits for 1 line. db 20 db 19 db 60 ; Waits for 1 line. db 15 db 12 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 0 db 12 db 0 db 12 db 14 db 15 db 17 db 24 db 26 db 27 db 20 db 22 db 24 db 18 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 6 db 18 db 6 db 18 db 17 db 13 db 10 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track26 db 221 db 6 ; New Instrument (6). db 2 ; Index to an effect block. db 145 db 19 ; New Instrument (19). db 159 db 9 ; New Instrument (9). db 145 db 19 ; New Instrument (19). db 157 db 6 ; New Instrument (6). db 145 db 19 ; New Instrument (19). db 157 db 9 ; New Instrument (9). db 145 db 19 ; New Instrument (19). db 157 db 6 ; New Instrument (6). db 145 db 19 ; New Instrument (19). db 157 db 9 ; New Instrument (9). db 145 db 19 ; New Instrument (19). db 157 db 6 ; New Instrument (6). db 145 db 19 ; New Instrument (19). db 157 db 9 ; New Instrument (9). db 145 db 19 ; New Instrument (19). db 157 db 6 ; New Instrument (6). db 21 db 147 db 20 ; New Instrument (20). db 164 db 23 ; New Instrument (23). db 29 db 26 db 157 db 6 ; New Instrument (6). db 62 + 0 * 64 ; Optimized wait for 2 lines. db 145 db 19 ; New Instrument (19). db 29 db 17 db 157 db 6 ; New Instrument (6). db 157 db 20 ; New Instrument (20). db 149 db 23 ; New Instrument (23). db 16 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track27 db 240 db 24 ; New Instrument (24). db 14 ; Index to an effect block. db 60 ; Waits for 1 line. db 48 db 43 db 60 ; Waits for 1 line. db 43 db 44 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 43 db 44 db 43 db 44 db 43 db 39 db 36 db 48 db 50 db 51 db 48 db 51 db 53 db 54 db 124 ; No note, but effects. db 20 ; Index to an effect block. db 60 ; Waits for 1 line. db 30 db 30 db 42 db 32 db 44 db 34 db 46 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track28 db 148 db 18 ; New Instrument (18). db 62 + 0 * 64 ; Optimized wait for 2 lines. db 19 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 15 db 60 ; Waits for 1 line. db 12 db 60 ; Waits for 1 line. db 128 db 0 ; New Instrument (0). db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track29 db 145 db 6 ; New Instrument (6). db 163 db 23 ; New Instrument (23). db 29 db 157 db 6 ; New Instrument (6). db 157 db 23 ; New Instrument (23). db 26 db 157 db 6 ; New Instrument (6). db 151 db 23 ; New Instrument (23). db 145 db 6 ; New Instrument (6). db 128 db 0 ; New Instrument (0). db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track30 db 240 db 24 ; New Instrument (24). db 14 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 46 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 43 db 60 ; Waits for 1 line. db 39 db 60 ; Waits for 1 line. db 128 db 0 ; New Instrument (0). db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track31 db 61, 7 ; Waits for 8 lines. db 255 db 75 ; Escape note (75). db 27 ; New Instrument (27). db 2 ; Index to an effect block. db 124 ; No note, but effects. db 5 ; Index to an effect block. db 61, 9 ; Waits for 10 lines. db 127 db 78 ; Escape note (78). db 16 ; Index to an effect block. db 124 ; No note, but effects. db 5 ; Index to an effect block. db 61, 5 ; Waits for 6 lines. db 127 db 84 ; Escape note (84). db 16 ; Index to an effect block. db 124 ; No note, but effects. db 5 ; Index to an effect block. db 61, 9 ; Waits for 10 lines. db 127 db 80 ; Escape note (80). db 16 ; Index to an effect block. db 124 ; No note, but effects. db 5 ; Index to an effect block. db 61, 5 ; Waits for 6 lines. db 127 db 87 ; Escape note (87). db 16 ; Index to an effect block. db 124 ; No note, but effects. db 5 ; Index to an effect block. db 61, 5 ; Waits for 6 lines. db 127 db 80 ; Escape note (80). db 16 ; Index to an effect block. db 124 ; No note, but effects. db 5 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 255 db 75 ; Escape note (75). db 25 ; New Instrument (25). db 29 ; Index to an effect block. db 61, 6 ; Waits for 7 lines. db 127 db 75 ; Escape note (75). db 57 ; Index to an effect block. db 127 db 75 ; Escape note (75). db 33 ; Index to an effect block. db 63 db 75 ; Escape note (75). db 63 db 75 ; Escape note (75). db 119 db 52 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track32 db 204 db 28 ; New Instrument (28). db 2 ; Index to an effect block. db 60 ; Waits for 1 line. db 12 db 62 + 3 * 64 ; Optimized wait for 5 lines. db 12 db 60 ; Waits for 1 line. db 12 db 62 + 3 * 64 ; Optimized wait for 5 lines. db 18 db 60 ; Waits for 1 line. db 18 db 62 + 3 * 64 ; Optimized wait for 5 lines. db 18 db 60 ; Waits for 1 line. db 18 db 62 + 3 * 64 ; Optimized wait for 5 lines. db 20 db 60 ; Waits for 1 line. db 20 db 62 + 3 * 64 ; Optimized wait for 5 lines. db 20 db 60 ; Waits for 1 line. db 20 db 62 + 3 * 64 ; Optimized wait for 5 lines. db 19 db 60 ; Waits for 1 line. db 19 db 62 + 3 * 64 ; Optimized wait for 5 lines. db 19 db 60 ; Waits for 1 line. db 19 db 62 + 3 * 64 ; Optimized wait for 5 lines. db 12 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 255 db 72 ; Escape note (72). db 25 ; New Instrument (25). db 29 ; Index to an effect block. db 61, 6 ; Waits for 7 lines. db 127 db 75 ; Escape note (75). db 33 ; Index to an effect block. db 63 db 75 ; Escape note (75). db 63 db 75 ; Escape note (75). db 63 db 75 ; Escape note (75). db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track33 db 62 + 2 * 64 ; Optimized wait for 4 lines. db 255 db 72 ; Escape note (72). db 27 ; New Instrument (27). db 2 ; Index to an effect block. db 124 ; No note, but effects. db 5 ; Index to an effect block. db 61, 5 ; Waits for 6 lines. db 127 db 84 ; Escape note (84). db 16 ; Index to an effect block. db 124 ; No note, but effects. db 5 ; Index to an effect block. db 61, 9 ; Waits for 10 lines. db 127 db 79 ; Escape note (79). db 16 ; Index to an effect block. db 124 ; No note, but effects. db 5 ; Index to an effect block. db 61, 9 ; Waits for 10 lines. db 127 db 79 ; Escape note (79). db 16 ; Index to an effect block. db 124 ; No note, but effects. db 5 ; Index to an effect block. db 61, 5 ; Waits for 6 lines. db 127 db 84 ; Escape note (84). db 16 ; Index to an effect block. db 124 ; No note, but effects. db 5 ; Index to an effect block. db 61, 5 ; Waits for 6 lines. db 127 db 84 ; Escape note (84). db 16 ; Index to an effect block. db 124 ; No note, but effects. db 5 ; Index to an effect block. db 61, 5 ; Waits for 6 lines. db 127 db 79 ; Escape note (79). db 16 ; Index to an effect block. db 124 ; No note, but effects. db 5 ; Index to an effect block. db 60 ; Waits for 1 line. db 124 ; No note, but effects. db 0 ; Index to an effect block. db 60 ; Waits for 1 line. db 255 db 75 ; Escape note (75). db 25 ; New Instrument (25). db 53 ; Index to an effect block. db 63 db 75 ; Escape note (75). db 63 db 75 ; Escape note (75). db 63 db 75 ; Escape note (75). db 63 db 75 ; Escape note (75). db 63 db 75 ; Escape note (75). db 63 db 75 ; Escape note (75). db 127 db 68 ; Escape note (68). db 10 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track34 db 61, 15 ; Waits for 16 lines. db 235 db 21 ; New Instrument (21). db 48 ; Index to an effect block. db 124 ; No note, but effects. db 15 ; Index to an effect block. db 61, 13 ; Waits for 14 lines. db 105 db 26 ; Index to an effect block. db 124 ; No note, but effects. db 15 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track35 db 212 db 30 ; New Instrument (30). db 2 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 19 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 15 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 12 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 12 db 13 db 12 db 12 db 13 db 12 db 12 db 13 db 12 db 13 db 12 db 12 db 19 db 20 db 19 db 20 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track36 db 200 db 26 ; New Instrument (26). db 2 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 7 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 3 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 0 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 255 db 72 ; Escape note (72). db 31 ; New Instrument (31). db 30 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track37 db 216 db 29 ; New Instrument (29). db 2 ; Index to an effect block. db 140 db 19 ; New Instrument (19). db 60 ; Waits for 1 line. db 12 db 152 db 29 ; New Instrument (29). db 140 db 19 ; New Instrument (19). db 60 ; Waits for 1 line. db 12 db 152 db 29 ; New Instrument (29). db 140 db 19 ; New Instrument (19). db 60 ; Waits for 1 line. db 12 db 152 db 29 ; New Instrument (29). db 140 db 19 ; New Instrument (19). db 60 ; Waits for 1 line. db 12 db 152 db 29 ; New Instrument (29). db 159 db 23 ; New Instrument (23). db 24 db 140 db 19 ; New Instrument (19). db 152 db 29 ; New Instrument (29). db 163 db 23 ; New Instrument (23). db 36 db 140 db 19 ; New Instrument (19). db 152 db 29 ; New Instrument (29). db 159 db 23 ; New Instrument (23). db 17 db 140 db 19 ; New Instrument (19). db 152 db 29 ; New Instrument (29). db 156 db 23 ; New Instrument (23). db 33 db 140 db 19 ; New Instrument (19). db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track38 db 212 db 30 ; New Instrument (30). db 2 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 19 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 15 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 12 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 13 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 16 db 16 db 16 db 16 db 16 db 16 db 16 db 19 db 16 db 16 db 16 db 19 db 16 db 16 db 16 db 28 db 15 db 15 db 15 db 15 db 15 db 15 db 15 db 15 db 15 db 15 db 15 db 15 db 15 db 15 db 15 db 15 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track39 db 200 db 26 ; New Instrument (26). db 2 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 7 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 3 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 0 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 1 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 255 db 72 ; Escape note (72). db 31 ; New Instrument (31). db 30 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track40 db 216 db 29 ; New Instrument (29). db 2 ; Index to an effect block. db 140 db 19 ; New Instrument (19). db 60 ; Waits for 1 line. db 12 db 152 db 29 ; New Instrument (29). db 140 db 19 ; New Instrument (19). db 60 ; Waits for 1 line. db 12 db 152 db 29 ; New Instrument (29). db 140 db 19 ; New Instrument (19). db 60 ; Waits for 1 line. db 12 db 152 db 29 ; New Instrument (29). db 140 db 19 ; New Instrument (19). db 60 ; Waits for 1 line. db 12 db 12 db 166 db 6 ; New Instrument (6). db 12 db 33 db 152 db 29 ; New Instrument (29). db 159 db 23 ; New Instrument (23). db 24 db 140 db 19 ; New Instrument (19). db 152 db 29 ; New Instrument (29). db 163 db 23 ; New Instrument (23). db 36 db 140 db 19 ; New Instrument (19). db 152 db 29 ; New Instrument (29). db 159 db 23 ; New Instrument (23). db 17 db 140 db 19 ; New Instrument (19). db 152 db 29 ; New Instrument (29). db 156 db 23 ; New Instrument (23). db 33 db 140 db 19 ; New Instrument (19). db 152 db 29 ; New Instrument (29). db 161 db 23 ; New Instrument (23). db 17 db 41 db 152 db 29 ; New Instrument (29). db 144 db 23 ; New Instrument (23). db 26 db 152 db 29 ; New Instrument (29). db 147 db 23 ; New Instrument (23). db 23 db 163 db 29 ; New Instrument (29). db 28 db 24 db 24 db 140 db 6 ; New Instrument (6). db 17 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track41 db 204 db 30 ; New Instrument (30). db 2 ; Index to an effect block. db 13 db 14 db 15 db 16 db 15 db 14 db 13 db 12 db 13 db 14 db 15 db 16 db 15 db 14 db 13 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track42 db 228 db 31 ; New Instrument (31). db 32 ; Index to an effect block. db 37 db 38 db 39 db 40 db 39 db 38 db 37 db 36 db 37 db 38 db 39 db 40 db 39 db 38 db 37 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track43 db 216 db 29 ; New Instrument (29). db 2 ; Index to an effect block. db 171 db 32 ; New Instrument (32). db 43 db 43 db 152 db 29 ; New Instrument (29). db 183 db 32 ; New Instrument (32). db 55 db 43 db 152 db 29 ; New Instrument (29). db 183 db 32 ; New Instrument (32). db 43 db 43 db 152 db 29 ; New Instrument (29). db 171 db 32 ; New Instrument (32). db 43 db 55 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track44 db 216 db 29 ; New Instrument (29). db 2 ; Index to an effect block. db 171 db 32 ; New Instrument (32). db 43 db 43 db 152 db 29 ; New Instrument (29). db 183 db 32 ; New Instrument (32). db 191 db 91 ; Escape note (91). db 4 ; New Instrument (4). db 171 db 32 ; New Instrument (32). db 152 db 29 ; New Instrument (29). db 191 db 91 ; Escape note (91). db 4 ; New Instrument (4). db 171 db 32 ; New Instrument (32). db 191 db 79 ; Escape note (79). db 4 ; New Instrument (4). db 152 db 29 ; New Instrument (29). db 191 db 79 ; Escape note (79). db 4 ; New Instrument (4). db 171 db 32 ; New Instrument (32). db 55 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track45 db 204 db 30 ; New Instrument (30). db 2 ; Index to an effect block. db 13 db 14 db 15 db 16 db 17 db 18 db 128 db 0 ; New Instrument (0). db 147 db 30 ; New Instrument (30). db 20 db 128 db 0 ; New Instrument (0). db 149 db 30 ; New Instrument (30). db 128 db 0 ; New Instrument (0). db 150 db 30 ; New Instrument (30). db 23 db 24 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track46 db 228 db 31 ; New Instrument (31). db 32 ; Index to an effect block. db 37 db 38 db 39 db 40 db 39 db 38 db 128 db 0 ; New Instrument (0). db 165 db 31 ; New Instrument (31). db 36 db 128 db 0 ; New Instrument (0). db 163 db 31 ; New Instrument (31). db 128 db 0 ; New Instrument (0). db 162 db 31 ; New Instrument (31). db 33 db 32 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track47 db 216 db 29 ; New Instrument (29). db 2 ; Index to an effect block. db 171 db 32 ; New Instrument (32). db 43 db 43 db 152 db 29 ; New Instrument (29). db 183 db 32 ; New Instrument (32). db 191 db 91 ; Escape note (91). db 4 ; New Instrument (4). db 124 ; No note, but effects. db 11 ; Index to an effect block. db 152 db 29 ; New Instrument (29). db 191 db 91 ; Escape note (91). db 4 ; New Instrument (4). db 128 db 0 ; New Instrument (0). db 191 db 79 ; Escape note (79). db 4 ; New Instrument (4). db 124 ; No note, but effects. db 20 ; Index to an effect block. db 63 db 79 ; Escape note (79). db 171 db 32 ; New Instrument (32). db 55 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track48 db 154 db 30 ; New Instrument (30). db 62 + 1 * 64 ; Optimized wait for 3 lines. db 25 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 24 db 60 ; Waits for 1 line. db 23 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 22 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 21 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 20 db 60 ; Waits for 1 line. db 17 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 16 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 14 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track49 db 218 db 7 ; New Instrument (7). db 2 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 25 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 24 db 60 ; Waits for 1 line. db 23 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 22 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 21 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 20 db 60 ; Waits for 1 line. db 17 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 16 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 14 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track50 db 223 db 6 ; New Instrument (6). db 2 ; Index to an effect block. db 60 ; Waits for 1 line. db 152 db 23 ; New Instrument (23). db 14 db 23 db 60 ; Waits for 1 line. db 23 db 60 ; Waits for 1 line. db 31 db 60 ; Waits for 1 line. db 21 db 60 ; Waits for 1 line. db 19 db 19 db 19 db 17 db 31 db 60 ; Waits for 1 line. db 19 db 60 ; Waits for 1 line. db 16 db 16 db 14 db 11 db 157 db 6 ; New Instrument (6). db 62 + 0 * 64 ; Optimized wait for 2 lines. db 26 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 24 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track51 db 204 db 26 ; New Instrument (26). db 2 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 124 ; No note, but effects. db 47 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track52 db 216 db 6 ; New Instrument (6). db 2 ; Index to an effect block. db 61, 6 ; Waits for 7 lines. db 228 db 20 ; New Instrument (20). db 21 ; Index to an effect block. db 36 db 100 db 8 ; Index to an effect block. db 36 db 100 db 12 ; Index to an effect block. db 100 db 4 ; Index to an effect block. db 100 db 7 ; Index to an effect block. db 100 db 6 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track53 db 205 db 33 ; New Instrument (33). db 2 ; Index to an effect block. db 13 db 13 db 13 db 25 db 13 db 13 db 13 db 13 db 13 db 25 db 13 db 15 db 15 db 16 db 16 db 17 db 17 db 17 db 17 db 17 db 17 db 17 db 17 db 29 db 17 db 17 db 17 db 17 db 16 db 15 db 13 db 11 db 11 db 11 db 11 db 23 db 11 db 23 db 11 db 11 db 11 db 23 db 23 db 11 db 11 db 23 db 11 db 20 db 20 db 20 db 20 db 20 db 20 db 20 db 20 db 21 db 21 db 21 db 21 db 22 db 22 db 23 db 24 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track54 db 241 db 34 ; New Instrument (34). db 51 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track55 db 191 db 73 ; Escape note (73). db 29 ; New Instrument (29). db 144 db 8 ; New Instrument (8). db 41 db 38 db 191 db 73 ; Escape note (73). db 29 ; New Instrument (29). db 145 db 8 ; New Instrument (8). db 41 db 29 db 191 db 73 ; Escape note (73). db 29 ; New Instrument (29). db 149 db 8 ; New Instrument (8). db 19 db 40 db 191 db 73 ; Escape note (73). db 29 ; New Instrument (29). db 157 db 8 ; New Instrument (8). db 28 db 142 db 19 ; New Instrument (19). db 177 db 29 ; New Instrument (29). db 173 db 8 ; New Instrument (8). db 21 db 16 db 191 db 73 ; Escape note (73). db 29 ; New Instrument (29). db 159 db 8 ; New Instrument (8). db 45 db 38 db 191 db 73 ; Escape note (73). db 29 ; New Instrument (29). db 181 db 8 ; New Instrument (8). db 16 db 29 db 177 db 29 ; New Instrument (29). db 152 db 19 ; New Instrument (19). db 24 db 24 db 177 db 29 ; New Instrument (29). db 145 db 8 ; New Instrument (8). db 28 db 16 db 177 db 29 ; New Instrument (29). db 168 db 8 ; New Instrument (8). db 29 db 26 db 177 db 29 ; New Instrument (29). db 191 db 74 ; Escape note (74). db 8 ; New Instrument (8). db 19 db 33 db 177 db 29 ; New Instrument (29). db 149 db 8 ; New Instrument (8). db 33 db 40 db 177 db 29 ; New Instrument (29). db 156 db 8 ; New Instrument (8). db 17 db 38 db 177 db 29 ; New Instrument (29). db 159 db 8 ; New Instrument (8). db 24 db 38 db 177 db 29 ; New Instrument (29). db 171 db 8 ; New Instrument (8). db 29 db 26 db 177 db 29 ; New Instrument (29). db 142 db 8 ; New Instrument (8). db 177 db 29 ; New Instrument (29). db 49 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track56 db 213 db 30 ; New Instrument (30). db 2 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 20 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 16 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 13 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 14 db 61, 21 ; Waits for 22 lines. db 124 ; No note, but effects. db 37 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track57 db 204 db 26 ; New Instrument (26). db 49 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 11 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 7 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 4 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 5 db 61, 9 ; Waits for 10 lines. db 81 db 19 ; Index to an effect block. db 61, 9 ; Waits for 10 lines. db 81 db 19 ; Index to an effect block. db 62 + 3 * 64 ; Optimized wait for 5 lines. db 81 db 19 ; Index to an effect block. db 62 + 3 * 64 ; Optimized wait for 5 lines. db 81 db 22 ; Index to an effect block. db 62 + 2 * 64 ; Optimized wait for 4 lines. db 84 db 22 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 92 db 34 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 99 db 9 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 104 db 9 ; Index to an effect block. db 60 ; Waits for 1 line. db 108 db 9 ; Index to an effect block. db 60 ; Waits for 1 line. db 111 db 9 ; Index to an effect block. db 60 ; Waits for 1 line. db 114 db 9 ; Index to an effect block. db 60 ; Waits for 1 line. db 117 db 9 ; Index to an effect block. db 60 ; Waits for 1 line. db 127 db 69 ; Escape note (69). db 9 ; Index to an effect block. db 60 ; Waits for 1 line. db 127 db 73 ; Escape note (73). db 9 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track58 db 204 db 6 ; New Instrument (6). db 2 ; Index to an effect block. db 62 + 0 * 64 ; Optimized wait for 2 lines. db 152 db 19 ; New Instrument (19). db 140 db 6 ; New Instrument (6). db 62 + 0 * 64 ; Optimized wait for 2 lines. db 152 db 19 ; New Instrument (19). db 140 db 6 ; New Instrument (6). db 62 + 1 * 64 ; Optimized wait for 3 lines. db 12 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 0 db 62 + 1 * 64 ; Optimized wait for 3 lines. db 224 db 35 ; New Instrument (35). db 17 ; Index to an effect block. db 60 ; Waits for 1 line. db 124 ; No note, but effects. db 36 ; Index to an effect block. db 61, 16 ; Waits for 17 lines. db 124 ; No note, but effects. db 56 ; Index to an effect block. db 61, 13 ; Waits for 14 lines. db 124 ; No note, but effects. db 55 ; Index to an effect block. db 62 + 1 * 64 ; Optimized wait for 3 lines. db 124 ; No note, but effects. db 40 ; Index to an effect block. db 61, 6 ; Waits for 7 lines. db 124 ; No note, but effects. db 54 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track59 db 128 db 0 ; New Instrument (0). db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track60 db 191 db 73 ; Escape note (73). db 29 ; New Instrument (29). db 144 db 8 ; New Instrument (8). db 41 db 38 db 191 db 73 ; Escape note (73). db 29 ; New Instrument (29). db 145 db 8 ; New Instrument (8). db 41 db 29 db 191 db 73 ; Escape note (73). db 29 ; New Instrument (29). db 149 db 8 ; New Instrument (8). db 19 db 40 db 191 db 73 ; Escape note (73). db 29 ; New Instrument (29). db 157 db 8 ; New Instrument (8). db 28 db 142 db 19 ; New Instrument (19). db 177 db 29 ; New Instrument (29). db 173 db 8 ; New Instrument (8). db 21 db 16 db 191 db 73 ; Escape note (73). db 29 ; New Instrument (29). db 159 db 8 ; New Instrument (8). db 45 db 38 db 191 db 73 ; Escape note (73). db 29 ; New Instrument (29). db 181 db 8 ; New Instrument (8). db 16 db 29 db 177 db 29 ; New Instrument (29). db 152 db 19 ; New Instrument (19). db 24 db 24 db 177 db 29 ; New Instrument (29). db 145 db 8 ; New Instrument (8). db 28 db 16 db 177 db 29 ; New Instrument (29). db 168 db 8 ; New Instrument (8). db 29 db 26 db 177 db 29 ; New Instrument (29). db 191 db 74 ; Escape note (74). db 8 ; New Instrument (8). db 19 db 33 db 177 db 29 ; New Instrument (29). db 149 db 8 ; New Instrument (8). db 33 db 40 db 165 db 29 ; New Instrument (29). db 37 db 37 db 166 db 8 ; New Instrument (8). db 14 db 31 db 165 db 29 ; New Instrument (29). db 37 db 37 db 171 db 8 ; New Instrument (8). db 29 db 26 db 165 db 29 ; New Instrument (29). db 37 db 37 db 37 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track61 db 148 db 18 ; New Instrument (18). db 60 ; Waits for 1 line. db 20 db 19 db 60 ; Waits for 1 line. db 15 db 12 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 0 db 12 db 0 db 12 db 14 db 15 db 17 db 12 db 12 db 14 db 15 db 17 db 20 db 18 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 18 db 18 db 20 db 22 db 24 db 27 db 25 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track62 db 221 db 6 ; New Instrument (6). db 2 ; Index to an effect block. db 145 db 19 ; New Instrument (19). db 159 db 9 ; New Instrument (9). db 145 db 19 ; New Instrument (19). db 157 db 6 ; New Instrument (6). db 145 db 19 ; New Instrument (19). db 157 db 9 ; New Instrument (9). db 145 db 19 ; New Instrument (19). db 157 db 6 ; New Instrument (6). db 145 db 19 ; New Instrument (19). db 157 db 9 ; New Instrument (9). db 145 db 19 ; New Instrument (19). db 157 db 6 ; New Instrument (6). db 145 db 19 ; New Instrument (19). db 157 db 9 ; New Instrument (9). db 145 db 19 ; New Instrument (19). db 157 db 6 ; New Instrument (6). db 145 db 19 ; New Instrument (19). db 159 db 9 ; New Instrument (9). db 145 db 19 ; New Instrument (19). db 157 db 6 ; New Instrument (6). db 145 db 19 ; New Instrument (19). db 157 db 9 ; New Instrument (9). db 145 db 19 ; New Instrument (19). db 157 db 6 ; New Instrument (6). db 145 db 19 ; New Instrument (19). db 157 db 9 ; New Instrument (9). db 145 db 19 ; New Instrument (19). db 157 db 6 ; New Instrument (6). db 145 db 19 ; New Instrument (19). db 157 db 6 ; New Instrument (6). db 17 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track63 db 240 db 24 ; New Instrument (24). db 14 ; Index to an effect block. db 60 ; Waits for 1 line. db 48 db 43 db 60 ; Waits for 1 line. db 43 db 44 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 43 db 44 db 43 db 44 db 43 db 39 db 36 db 48 db 60 ; Waits for 1 line. db 50 db 51 db 60 ; Waits for 1 line. db 53 db 54 db 62 + 0 * 64 ; Optimized wait for 2 lines. db 30 db 30 db 42 db 32 db 44 db 34 db 46 db 61, 127 ; Waits for 128 lines. HocusPocus_Subsong0_Track64 db 241 db 3 ; New Instrument (3). db 12 ; Index to an effect block. db 61, 14 ; Waits for 15 lines. db 113 db 4 ; Index to an effect block. db 61, 14 ; Waits for 15 lines. db 113 db 7 ; Index to an effect block. db 61, 14 ; Waits for 15 lines. db 113 db 6 ; Index to an effect block. db 61, 127 ; Waits for 128 lines. ; The speed tracks HocusPocus_Subsong0_SpeedTrack0 db 6 ; Value: 3. db 253 ; Wait for 127 lines. HocusPocus_Subsong0_SpeedTrack1 db 12 ; Value: 6. db 253 ; Wait for 127 lines. HocusPocus_Subsong0_SpeedTrack2 db 12 ; Value: 6. db 59 ; Wait for 30 lines. db 10 ; Value: 5. db 21 ; Wait for 11 lines. db 8 ; Value: 4. db 53 ; Wait for 27 lines. db 6 ; Value: 3. db 111 ; Wait for 56 lines. ; The event tracks HocusPocus_Subsong0_EventTrack0 db 255 ; Wait for 128 lines. HocusPocus_Subsong0_DisarkByteRegionEnd0
22.92542
101
0.649271
19e3ab74678a23ffbc36d737cb0374c6052934c8
6,860
asm
Assembly
s3/music/Invincible.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
9
2017-10-09T20:28:45.000Z
2021-06-29T21:19:20.000Z
s3/music/Invincible.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
12
2018-08-01T13:52:20.000Z
2022-02-21T02:19:37.000Z
s3/music/Invincible.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
2
2018-02-17T19:50:36.000Z
2019-10-30T19:28:06.000Z
Snd_Invic_Header: smpsHeaderStartSong 3 smpsHeaderVoice Snd_Invic_Voices smpsHeaderChan $06, $03 smpsHeaderTempo $01, $2C smpsHeaderDAC Snd_Invic_DAC smpsHeaderFM Snd_Invic_FM1, $18, $12 smpsHeaderFM Snd_Invic_FM2, $00, $09 smpsHeaderFM Snd_Invic_FM3, $18, $1C smpsHeaderFM Snd_Invic_FM4, $00, $1C smpsHeaderFM Snd_Invic_FM5, $00, $1C smpsHeaderPSG Snd_Invic_PSG1, $F4, $06, $00, $00 smpsHeaderPSG Snd_Invic_PSG2, $F4, $06, $00, $00 smpsHeaderPSG Snd_Invic_PSG3, $3B, $02, $00, $00 ; FM1 Data Snd_Invic_FM1: smpsSetvoice $00 smpsModSet $14, $01, $06, $06 dc.b nB3, $04, nRst, nB3, $08, nC4, $04, nRst, nC4, $08, nD4, $08 dc.b nRst, nD4, $04, nRst, nBb3, $04, smpsNoAttack, nB3, $08, nRst, $04, nB3 dc.b $08, nC4, $04, nRst, nD4, $0C, nRst, $04, nD4, nRst, nD4, $0C dc.b nRst, $04, nF4, $0C, nRst, $04, nF4, $0C, nRst, $04, nF4, $0C dc.b nRst, $04, nF4, $0C, nRst, $04 smpsFMAlterVol $FE Snd_Invic_Loop0F: dc.b nF4, $03, nRst, $05 smpsLoop $00, $08, Snd_Invic_Loop0F smpsFMAlterVol $02 dc.b nB3, $04, nRst, nB3, $08, nC4, $04, nRst, nC4, $08, nD4, $08 dc.b nRst, nD4, $04, nRst, nBb3, $04, smpsNoAttack, nB3, $08, nRst, $04, nB3 dc.b $08, nC4, $04, nRst, nD4, $0C, nRst, $04, nD4, nRst, nD4, $0C dc.b nRst, $04, nF4, $0C, nRst, $04, nF4, $0C, nRst, $04, nF4, $0C dc.b nRst, $04, nF4, $0C, nRst, $04 smpsFMAlterVol $FE Snd_Invic_Loop10: dc.b nA4, $03, nRst, $05 smpsLoop $00, $08, Snd_Invic_Loop10 smpsFMAlterVol $02 smpsJump Snd_Invic_FM1 ; FM2 Data Snd_Invic_FM2: smpsSetvoice $01 dc.b nG2, $04, nRst, nG2, nRst, nG2, nRst, nG2, nRst, nD2, $0C, nRst dc.b $04, nD2, nRst, nG2, $08, nRst, $08, nG2, $04, nRst, nG2, nRst dc.b nD2, $08, nRst, nD2, $04, nRst, nD2, $0C, nRst, $04 Snd_Invic_Loop0C: dc.b nF2, $03, nRst, $05 smpsLoop $00, $10, Snd_Invic_Loop0C dc.b nG2, $04, nRst, nG2, nRst, nG2, nRst, nG2, nRst, nD2, $0C, nRst dc.b $04, nD2, nRst, nG2, $08, nRst, $08, nG2, $04, nRst, nG2, nRst dc.b nD2, $08, nRst, nD2, $04, nRst, nD2, $0C, nRst, $04 Snd_Invic_Loop0D: dc.b nF2, $03, nRst, $05 smpsLoop $00, $08, Snd_Invic_Loop0D Snd_Invic_Loop0E: dc.b nA2, $03, nRst, $05 smpsLoop $00, $08, Snd_Invic_Loop0E smpsJump Snd_Invic_FM2 ; FM3 Data Snd_Invic_FM3: smpsSetvoice $00 smpsModSet $15, $01, $06, $06 dc.b nRst, $03 smpsAlterNote $03 Snd_Invic_Jump00: dc.b nG3, $04, nRst, nG3, $08, nA3, $04, nRst, nA3, $08, nB3, $08 dc.b nRst, nB3, $04, nRst, nFs3, $04, smpsNoAttack, nG3, $08, nRst, $04, nG3 dc.b $08, nA3, $04, nRst, nB3, $0C, nRst, $04, nB3, nRst, nB3, $0C dc.b nRst, $04, nC4, $0C, nRst, $04, nC4, $0C, nRst, $04, nC4, $0C dc.b nRst, $04, nC4, $0C, nRst, $04 smpsFMAlterVol $FE Snd_Invic_Loop0A: dc.b nC4, $03, nRst, $05 smpsLoop $00, $08, Snd_Invic_Loop0A smpsFMAlterVol $02 dc.b nG3, $04, nRst, nG3, $08, nA3, $04, nRst, nA3, $08, nB3, $08 dc.b nRst, nB3, $04, nRst, nFs3, $04, smpsNoAttack, nG3, $08, nRst, $04, nG3 dc.b $08, nA3, $04, nRst, nB3, $0C, nRst, $04, nB3, nRst, nB3, $0C dc.b nRst, $04, nC4, $0C, nRst, $04, nC4, $0C, nRst, $04, nC4, $0C dc.b nRst, $04, nC4, $0C, nRst, $04 smpsFMAlterVol $FE Snd_Invic_Loop0B: dc.b nA4, $03, nRst, $05 smpsLoop $00, $08, Snd_Invic_Loop0B smpsFMAlterVol $02 smpsJump Snd_Invic_Jump00 ; FM4 Data Snd_Invic_FM4: smpsSetvoice $02 smpsPan panRight, $00 Snd_Invic_Loop05: dc.b nG5, $04, nD5 smpsLoop $00, $10, Snd_Invic_Loop05 Snd_Invic_Loop06: dc.b nA5, $04, nF5 smpsLoop $00, $10, Snd_Invic_Loop06 Snd_Invic_Loop07: dc.b nG5, $04, nD5 smpsLoop $00, $10, Snd_Invic_Loop07 Snd_Invic_Loop08: dc.b nA5, $04, nF5 smpsLoop $00, $08, Snd_Invic_Loop08 Snd_Invic_Loop09: dc.b nC6, $04, nF5 smpsLoop $00, $08, Snd_Invic_Loop09 smpsJump Snd_Invic_Loop05 ; FM5 Data Snd_Invic_FM5: smpsSetvoice $02 smpsPan panLeft, $00 Snd_Invic_Loop00: dc.b nB4, $04, nG4 smpsLoop $00, $10, Snd_Invic_Loop00 Snd_Invic_Loop01: dc.b nC5, $04, nA4 smpsLoop $00, $10, Snd_Invic_Loop01 Snd_Invic_Loop02: dc.b nB4, $04, nG4 smpsLoop $00, $10, Snd_Invic_Loop02 Snd_Invic_Loop03: dc.b nC5, $04, nA4 smpsLoop $00, $08, Snd_Invic_Loop03 Snd_Invic_Loop04: dc.b nF5, $04, nA4 smpsLoop $00, $08, Snd_Invic_Loop04 smpsJump Snd_Invic_Loop00 ; DAC Data Snd_Invic_DAC: dc.b dKickS3, $10, dKickS3, dKickS3, dKickS3 smpsJump Snd_Invic_DAC ; PSG1 Data Snd_Invic_PSG1: smpsPSGvoice sTone_0A dc.b nRst, $02 smpsJump Snd_Invic_Loop05 ; PSG2 Data Snd_Invic_PSG2: smpsPSGvoice sTone_0A dc.b nRst, $02 smpsJump Snd_Invic_Loop00 ; PSG3 Data Snd_Invic_PSG3: smpsStop Snd_Invic_Voices: ; Voice $00 ; $3D ; $01, $00, $04, $03, $1F, $1F, $1F, $1F, $10, $06, $06, $06 ; $01, $06, $06, $06, $35, $1A, $18, $1A, $12, $82, $82, $80 smpsVcAlgorithm $05 smpsVcFeedback $07 smpsVcUnusedBits $00 smpsVcDetune $00, $00, $00, $00 smpsVcCoarseFreq $03, $04, $00, $01 smpsVcRateScale $00, $00, $00, $00 smpsVcAttackRate $1F, $1F, $1F, $1F smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $06, $06, $06, $10 smpsVcDecayRate2 $06, $06, $06, $01 smpsVcDecayLevel $01, $01, $01, $03 smpsVcReleaseRate $0A, $08, $0A, $05 smpsVcTotalLevel $00, $02, $02, $12 ; Voice $01 ; $3A ; $01, $02, $01, $01, $1F, $5F, $5F, $5F, $10, $11, $09, $09 ; $07, $00, $00, $00, $CF, $FF, $FF, $FF, $1C, $22, $18, $80 smpsVcAlgorithm $02 smpsVcFeedback $07 smpsVcUnusedBits $00 smpsVcDetune $00, $00, $00, $00 smpsVcCoarseFreq $01, $01, $02, $01 smpsVcRateScale $01, $01, $01, $00 smpsVcAttackRate $1F, $1F, $1F, $1F smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $09, $09, $11, $10 smpsVcDecayRate2 $00, $00, $00, $07 smpsVcDecayLevel $0F, $0F, $0F, $0C smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $00, $18, $22, $1C ; Voice $02 ; $3D ; $01, $01, $01, $01, $94, $19, $19, $19, $0F, $0D, $0D, $0D ; $07, $04, $04, $04, $25, $1A, $1A, $1A, $15, $80, $80, $80 smpsVcAlgorithm $05 smpsVcFeedback $07 smpsVcUnusedBits $00 smpsVcDetune $00, $00, $00, $00 smpsVcCoarseFreq $01, $01, $01, $01 smpsVcRateScale $00, $00, $00, $02 smpsVcAttackRate $19, $19, $19, $14 smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $0D, $0D, $0D, $0F smpsVcDecayRate2 $04, $04, $04, $07 smpsVcDecayLevel $01, $01, $01, $02 smpsVcReleaseRate $0A, $0A, $0A, $05 smpsVcTotalLevel $00, $00, $00, $15
30.087719
77
0.594898
dba41adeb42ca9206c26fb128d37117083c32450
4,146
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_60_524.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_60_524.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_60_524.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x18e63, %rax add %r9, %r9 mov $0x6162636465666768, %rcx movq %rcx, %xmm7 movups %xmm7, (%rax) nop nop nop add %rcx, %rcx lea addresses_WC_ht+0x1dda3, %r9 nop nop nop cmp %rax, %rax mov $0x6162636465666768, %r13 movq %r13, %xmm5 movups %xmm5, (%r9) nop dec %rbx lea addresses_WC_ht+0xc2db, %rsi add $7562, %rbx mov (%rsi), %r13w nop add $35276, %rcx lea addresses_D_ht+0x18fa3, %rsi lea addresses_WC_ht+0xa1a3, %rdi nop nop nop xor $8307, %rax mov $38, %rcx rep movsw nop nop nop nop and $24943, %rdi lea addresses_WT_ht+0x55a3, %rsi nop nop nop nop sub %rcx, %rcx mov (%rsi), %r13d nop nop nop nop dec %r13 lea addresses_WC_ht+0xadf3, %rsi lea addresses_D_ht+0x15ae3, %rdi nop nop nop xor $20720, %r13 mov $33, %rcx rep movsw nop and %r9, %r9 lea addresses_D_ht+0x35a3, %r9 nop nop nop nop nop dec %rbx movb $0x61, (%r9) nop nop nop add %rsi, %rsi lea addresses_D_ht+0x17663, %rsi lea addresses_A_ht+0xd8a3, %rdi nop add $17468, %r9 mov $98, %rcx rep movsw lfence lea addresses_UC_ht+0x1ac3b, %r9 and $9851, %rcx mov (%r9), %rsi nop nop sub $47519, %r9 lea addresses_WT_ht+0x13823, %r13 nop nop nop nop add $39786, %rdi movups (%r13), %xmm2 vpextrq $1, %xmm2, %rax nop nop sub $43802, %r9 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r15 push %rbp push %rbx push %rdx // Store mov $0x26c4dd00000000a3, %r11 nop nop nop nop nop inc %r15 mov $0x5152535455565758, %r12 movq %r12, %xmm5 movups %xmm5, (%r11) nop nop nop nop and %r11, %r11 // Store lea addresses_normal+0x1c6a3, %rbx nop nop nop nop nop dec %r11 mov $0x5152535455565758, %r15 movq %r15, %xmm2 vmovups %ymm2, (%rbx) nop sub %r12, %r12 // Faulty Load lea addresses_D+0x18da3, %rbp cmp $14891, %r10 movups (%rbp), %xmm4 vpextrq $0, %xmm4, %rbx lea oracles, %r15 and $0xff, %rbx shlq $12, %rbx mov (%r15,%rbx,1), %rbx pop %rdx pop %rbx pop %rbp pop %r15 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 8}} [Faulty Load] {'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 5}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 11}} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 3}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 10}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': True, 'size': 1, 'NT': False, 'same': False, 'congruent': 10}} {'src': {'type': 'addresses_D_ht', 'congruent': 6, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8, 'NT': True, 'same': False, 'congruent': 3}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 7}, 'OP': 'LOAD'} {'36': 60} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
21.261538
179
0.649542
9aac7c795e50966de9d0f6eee8da02ba77a1410d
5,711
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_383.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_383.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_383.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 %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x40f4, %rsi lea addresses_normal_ht+0x2964, %rdi clflush (%rdi) nop and $2714, %r12 mov $24, %rcx rep movsq nop nop nop nop nop cmp %r9, %r9 lea addresses_WC_ht+0x1056, %r13 nop and %r12, %r12 movb $0x61, (%r13) nop nop nop nop sub $26927, %r12 lea addresses_A_ht+0x6d2a, %rsi lea addresses_normal_ht+0x1e770, %rdi nop nop nop nop sub $24639, %r13 mov $19, %rcx rep movsl nop nop nop cmp $62836, %rcx lea addresses_normal_ht+0x666b, %rdi inc %rdx mov $0x6162636465666768, %rcx movq %rcx, (%rdi) xor %rcx, %rcx lea addresses_A_ht+0xb364, %rsi inc %rcx movl $0x61626364, (%rsi) nop nop nop nop nop sub $49715, %r13 lea addresses_D_ht+0x2264, %rcx nop nop nop nop nop cmp %rdx, %rdx movb $0x61, (%rcx) xor %rcx, %rcx lea addresses_UC_ht+0xfafc, %rsi lea addresses_D_ht+0xed74, %rdi clflush (%rsi) nop nop nop nop cmp $58135, %rbx mov $64, %rcx rep movsb nop nop dec %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r12 push %r8 push %rbx push %rcx push %rdi push %rdx // Faulty Load lea addresses_normal+0x10264, %rcx nop inc %r8 movups (%rcx), %xmm4 vpextrq $0, %xmm4, %rdx lea oracles, %rcx and $0xff, %rdx shlq $12, %rdx mov (%rcx,%rdx,1), %rdx pop %rdx pop %rdi pop %rcx pop %rbx pop %r8 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 2, 'AVXalign': True}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False}} {'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
41.992647
2,999
0.661881
01ce6097bb9ae1f4a387353c49f01abfcd0381c3
412
asm
Assembly
libsrc/_DEVELOPMENT/target/rc2014/driver/ram/c/sdcc/shadowwrite.asm
witchcraft2001/z88dk
11adca337a4125aff611ddfdf3fc2401e8dda5b2
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/target/rc2014/driver/ram/c/sdcc/shadowwrite.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/target/rc2014/driver/ram/c/sdcc/shadowwrite.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void *shadowwrite(void * restrict s1, const void * restrict s2, size_t n) SECTION smc_lib PUBLIC _shadowwrite EXTERN asm_push_di EXTERN asm_pop_ei_jp EXTERN asm_shadowcopy ._shadowwrite pop af pop de pop hl pop bc push bc push hl push de push af call asm_push_di ld a,b or c ; also set up write to shadow ram call NZ,asm_shadowcopy jp asm_pop_ei_jp
12.875
75
0.682039
f10297f949d26c45d5468efbcb3a9bb80951b431
7,045
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_820.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_820.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_820.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r15 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x172b3, %rdx clflush (%rdx) nop nop cmp %rcx, %rcx mov (%rdx), %r12w cmp $19888, %rbx lea addresses_WC_ht+0xa4b3, %rsi lea addresses_UC_ht+0x1c689, %rdi nop and $2925, %r10 mov $53, %rcx rep movsw nop nop nop add $45425, %rcx lea addresses_A_ht+0x2677, %rdi nop xor $40462, %rsi movl $0x61626364, (%rdi) nop nop xor %rbx, %rbx lea addresses_A_ht+0x1a433, %rsi lea addresses_WT_ht+0xb3f3, %rdi sub %rdx, %rdx mov $74, %rcx rep movsb nop nop nop xor %rsi, %rsi lea addresses_WT_ht+0x34b3, %rsi nop sub %r10, %r10 mov (%rsi), %dx nop nop xor $44463, %rbx lea addresses_WC_ht+0x120b3, %rsi lea addresses_A_ht+0x18fb3, %rdi nop nop nop and $31972, %r15 mov $59, %rcx rep movsq add %rdx, %rdx lea addresses_WT_ht+0x18352, %rsi cmp $47434, %r15 mov $0x6162636465666768, %r12 movq %r12, %xmm4 movups %xmm4, (%rsi) and $60700, %rdx lea addresses_WC_ht+0x133e3, %rdx nop nop nop nop dec %rbx movl $0x61626364, (%rdx) nop cmp $63724, %r15 lea addresses_UC_ht+0x111b3, %rsi lea addresses_normal_ht+0x18f33, %rdi nop nop nop and %rbx, %rbx mov $18, %rcx rep movsb nop nop nop nop xor $28927, %r15 lea addresses_D_ht+0x4799, %rcx nop nop nop nop and %r15, %r15 vmovups (%rcx), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %rdx nop nop nop sub $52246, %r10 lea addresses_A_ht+0xe473, %rsi lea addresses_A_ht+0x151d3, %rdi xor $36809, %rdx mov $88, %rcx rep movsw nop nop nop nop nop and %rdx, %rdx lea addresses_normal_ht+0x14993, %rsi lea addresses_A_ht+0x16c3, %rdi nop inc %rdx mov $9, %rcx rep movsb nop nop nop nop nop and $16780, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r15 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r15 push %rax push %rsi // Faulty Load lea addresses_PSE+0x4b3, %r15 clflush (%r15) nop nop and %r10, %r10 mov (%r15), %esi lea oracles, %r15 and $0xff, %rsi shlq $12, %rsi mov (%r15,%rsi,1), %rsi pop %rsi pop %rax pop %r15 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 6, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 2, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 11, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 4, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
38.708791
2,999
0.659617
f131fe24ac4657e1624954b745e80dc1db5606c1
8,199
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_/i7-7700_9_0xca_notsx.log_20219_1726.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_/i7-7700_9_0xca_notsx.log_20219_1726.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_/i7-7700_9_0xca_notsx.log_20219_1726.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_UC_ht+0x116cc, %r13 and $15186, %r11 vmovups (%r13), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %r9 nop and %r8, %r8 lea addresses_WC_ht+0x2fec, %rsi nop xor $28532, %r12 mov $0x6162636465666768, %r13 movq %r13, (%rsi) nop nop nop nop nop xor %r13, %r13 lea addresses_WC_ht+0x12eec, %rsi lea addresses_A_ht+0x1826c, %rdi nop nop sub $60566, %r8 mov $5, %rcx rep movsq nop nop nop nop sub $12057, %rdi lea addresses_UC_ht+0x1d67c, %r9 nop nop cmp %r13, %r13 mov (%r9), %r11w nop xor %rsi, %rsi lea addresses_normal_ht+0x143ec, %r12 sub %r8, %r8 vmovups (%r12), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $1, %xmm3, %r13 nop nop sub %rcx, %rcx lea addresses_WT_ht+0x1a7ec, %r9 nop nop nop inc %r8 movb $0x61, (%r9) nop nop nop add %r9, %r9 lea addresses_normal_ht+0x12f2c, %rsi lea addresses_WC_ht+0x9c6c, %rdi clflush (%rsi) nop nop nop and %r11, %r11 mov $66, %rcx rep movsl nop nop nop nop nop sub $13498, %r12 lea addresses_A_ht+0x43ac, %rsi lea addresses_UC_ht+0x1c21c, %rdi add $52535, %r9 mov $30, %rcx rep movsb inc %r11 lea addresses_D_ht+0x113a8, %rcx nop inc %r12 movl $0x61626364, (%rcx) nop mfence lea addresses_A_ht+0xe4ac, %r9 nop sub %r13, %r13 movb (%r9), %r11b nop nop nop inc %r9 lea addresses_A_ht+0x93ec, %rsi lea addresses_A_ht+0x1ef6c, %rdi nop nop nop dec %r12 mov $92, %rcx rep movsq nop nop add $6699, %r11 lea addresses_A_ht+0xd374, %r13 nop nop nop nop add %rcx, %rcx mov $0x6162636465666768, %r12 movq %r12, %xmm3 and $0xffffffffffffffc0, %r13 movntdq %xmm3, (%r13) nop nop nop nop nop add $41018, %r9 lea addresses_UC_ht+0x188ec, %rdi nop nop nop nop nop cmp $51379, %r13 mov (%rdi), %si nop nop cmp %rcx, %rcx lea addresses_D_ht+0x23ec, %rsi lea addresses_D_ht+0x1ddec, %rdi clflush (%rsi) nop nop nop nop sub %r8, %r8 mov $54, %rcx rep movsw nop nop nop nop inc %r12 pop %rsi pop %rdi pop %rcx pop %r9 pop %r8 pop %r13 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %rax push %rbx push %rcx push %rdi push %rsi // Store lea addresses_WC+0xe3ec, %rax nop dec %r14 mov $0x5152535455565758, %rcx movq %rcx, %xmm7 vmovups %ymm7, (%rax) nop xor $60132, %r11 // REPMOV lea addresses_PSE+0x4fec, %rsi lea addresses_WC+0x113ec, %rdi nop nop nop and %r12, %r12 mov $87, %rcx rep movsq nop nop nop sub %rdi, %rdi // Faulty Load lea addresses_RW+0x7bec, %rcx nop and %r14, %r14 movntdqa (%rcx), %xmm0 vpextrq $1, %xmm0, %r12 lea oracles, %rdi and $0xff, %r12 shlq $12, %r12 mov (%rdi,%r12,1), %r12 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 11, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_PSE'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_WC'}, 'OP': 'REPM'} [Faulty Load] {'src': {'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 5, 'same': True, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 10, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 2, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 11, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'src': {'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 1, 'same': True, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 2, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'} {'dst': {'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 5, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 10, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'44': 24, '45': 13, '33': 20172, '48': 2, '00': 8} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 44 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
33.465306
2,999
0.65569