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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6c9624189d1605ad3ecfdb92531db531fbfb4af5 | 368 | asm | Assembly | programs/oeis/004/A004092.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/004/A004092.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/004/A004092.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A004092: Sum of digits of even numbers.
; 0,2,4,6,8,1,3,5,7,9,2,4,6,8,10,3,5,7,9,11,4,6,8,10,12,5,7,9,11,13,6,8,10,12,14,7,9,11,13,15,8,10,12,14,16,9,11,13,15,17,1,3,5,7,9,2,4,6,8,10,3,5,7,9,11,4,6,8,10,12,5,7,9,11,13,6,8,10,12,14,7,9,11,13,15,8,10,12,14,16,9,11,13,15,17,10,12,14,16,18
mul $0,2
lpb $0
mov $2,$0
div $0,10
mod $2,10
add $1,$2
lpe
mov $0,$1
| 30.666667 | 246 | 0.584239 |
316b55622fc2275e1a7e964efbd667b9ee5d5d17 | 449 | asm | Assembly | oeis/216/A216356.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/216/A216356.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/216/A216356.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A216356: a(n) = A000172(n^2), where Franel number A000172(n) = Sum_{k=0..n} C(n,k)^3.
; Submitted by Jon Maiga
; 1,2,346,5280932,6332299624282,548057409594239814752,3282684865686445066146128050420,1329153351023643434414727317328867397924832,35862023917618878200052422822926970148356592776600354650,63875599229358329592315180101212796802405282289343043273094466311541144
pow $0,2
seq $0,172 ; Franel number a(n) = Sum_{k = 0..n} binomial(n,k)^3.
| 64.142857 | 258 | 0.81069 |
d4ddf7f8be0af5a4615a50e5b34910659e4919ab | 2,811 | asm | Assembly | programs/oeis/001/A001015.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/001/A001015.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/001/A001015.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A001015: Seventh powers: a(n) = n^7.
; 0,1,128,2187,16384,78125,279936,823543,2097152,4782969,10000000,19487171,35831808,62748517,105413504,170859375,268435456,410338673,612220032,893871739,1280000000,1801088541,2494357888,3404825447,4586471424,6103515625,8031810176,10460353203,13492928512,17249876309,21870000000,27512614111,34359738368,42618442977,52523350144,64339296875,78364164096,94931877133,114415582592,137231006679,163840000000,194754273881,230539333248,271818611107,319277809664,373669453125,435817657216,506623120463,587068342272,678223072849,781250000000,897410677851,1028071702528,1174711139837,1338925209984,1522435234375,1727094849536,1954897493193,2207984167552,2488651484819,2799360000000,3142742836021,3521614606208,3938980639167,4398046511104,4902227890625,5455160701056,6060711605323,6722988818432,7446353252589,8235430000000,9095120158391,10030613004288,11047398519097,12151280273024,13348388671875,14645194571776,16048523266853,17565568854912,19203908986159,20971520000000,22876792454961,24928547056768,27136050989627,29509034655744,32057708828125,34792782221696,37725479487783,40867559636992,44231334895529,47829690000000,51676101935731,55784660123648,60170087060757,64847759419264,69833729609375,75144747810816,80798284478113,86812553324672,93206534790699,100000000000000,107213535210701,114868566764928,122987386542487,131593177923584,140710042265625,150363025899136,160578147647843,171382426877952,182803912081669,194871710000000,207616015289871,221068140740608,235260548044817,250226879128704,266001988046875,282621973446656,300124211606973,318547390056832,337931541778439,358318080000000,379749833583241,402271083010688,425927596977747,450766669594624,476837158203125,504189521813376,532875860165503,562949953421312,594467302491009,627485170000000,662062621900811,698260569735168,736141813551277,775771085481344,817215093984375,860542568759296,905824306333433,953133216331392,1002544368429379,1054135040000000,1107984764452581,1164175380274048,1222791080775407,1283918464548864,1347646586640625,1414067010444416,1483273860320763,1555363874947072,1630436461403549,1708593750000000,1789940649848551,1874584905187328,1962637152460137,2054210978157184,2149422977421875,2248392813428736,2351243277537493,2458100350228352,2569093262823519,2684354560000000,2804020163098721,2928229434235008,3057125241215467,3190854023266304,3329565857578125,3473414526672256,3622557586593623,3777156435935232,3937376385699289,4103386730000000,4275360817613091,4453476124377088,4637914326451397,4828861374436224,5026507568359375,5231047633534976,5442680797299153,5661610866627712,5888046306640859,6122200320000000,6364290927201661,6614541047773568,6873178582377927,7140436495826944,7416552901015625,7701771143776896,7996339888664083,8300513205665792,8614550657858229,8938717390000000
mov $1,$0
pow $1,7
| 468.5 | 2,751 | 0.922448 |
986eb55f3f2fcd38ffab11e24e2061b04c70a0fe | 529 | asm | Assembly | _inc/SBZ pallet script 2.asm | vladjester2020/Sonic1TMR | 22e749a2aab74cc725729e476d6252b071c12e42 | [
"Apache-2.0"
] | null | null | null | _inc/SBZ pallet script 2.asm | vladjester2020/Sonic1TMR | 22e749a2aab74cc725729e476d6252b071c12e42 | [
"Apache-2.0"
] | 2 | 2019-06-13T14:26:59.000Z | 2019-10-10T13:15:14.000Z | _inc/SBZ pallet script 2.asm | vladjester2020/Sonic1TMR | 22e749a2aab74cc725729e476d6252b071c12e42 | [
"Apache-2.0"
] | null | null | null | ; ---------------------------------------------------------------------------
; Scrap Brain Zone 2 pallet cycling script
; ---------------------------------------------------------------------------
dc.w 6
dc.b 7, 8
dc.w Pal_SBZCyc1
dc.w $FB50
dc.b $D, 8
dc.w Pal_SBZCyc2
dc.w $FB52
dc.b 9, 8
dc.w Pal_SBZCyc9
dc.w $FB70
dc.b 7, 8
dc.w Pal_SBZCyc6
dc.w $FB72
dc.b 3, 3
dc.w Pal_SBZCyc8
dc.w $FB78
dc.b 3, 3
dc.w Pal_SBZCyc8+2
dc.w $FB7A
dc.b 3, 3
dc.w Pal_SBZCyc8+4
dc.w $FB7C
even | 20.346154 | 78 | 0.427221 |
7c3d10296a48e0e52af6de91a441794d111348be | 240 | asm | Assembly | programs/oeis/109/A109011.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/109/A109011.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/109/A109011.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A109011: a(n) = gcd(n,8).
; 8,1,2,1,4,1,2,1,8,1,2,1,4,1,2,1,8,1,2,1,4,1,2,1,8,1,2,1,4,1,2,1,8,1,2,1,4,1,2,1,8,1,2,1,4,1,2,1,8,1,2,1,4,1,2,1,8,1,2,1,4,1,2,1,8,1,2,1,4,1,2,1,8,1,2,1,4,1,2,1,8,1,2,1,4,1,2,1,8,1,2,1,4,1,2,1,8,1,2,1
gcd $0,8
| 48 | 201 | 0.495833 |
58bd4f5013c6b3fe01cd1e30621bfcb16dbcd6dc | 6,555 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1112.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_1112.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_1112.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x198e2, %rsi
lea addresses_normal_ht+0x13226, %rdi
nop
nop
cmp $42786, %r14
mov $110, %rcx
rep movsq
inc %rdi
lea addresses_WT_ht+0x116a6, %rcx
nop
nop
xor $44762, %rsi
mov (%rcx), %r13
nop
sub $12728, %rsi
lea addresses_D_ht+0x2926, %rdx
clflush (%rdx)
nop
nop
nop
nop
cmp $20576, %r15
movl $0x61626364, (%rdx)
xor $37675, %r14
lea addresses_normal_ht+0x1c586, %rdi
nop
nop
nop
add %rsi, %rsi
mov $0x6162636465666768, %r15
movq %r15, %xmm7
vmovups %ymm7, (%rdi)
nop
add $2860, %r15
lea addresses_UC_ht+0xbbda, %r13
xor %r14, %r14
mov $0x6162636465666768, %rsi
movq %rsi, %xmm2
movups %xmm2, (%r13)
nop
cmp $21209, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r15
pop %r14
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r15
push %r9
push %rbp
push %rbx
push %rdi
push %rsi
// Store
mov $0x1c6, %rsi
clflush (%rsi)
nop
nop
cmp %rbp, %rbp
mov $0x5152535455565758, %rbx
movq %rbx, (%rsi)
and $7787, %r11
// Store
lea addresses_normal+0x62e6, %rbx
nop
nop
nop
nop
nop
dec %rdi
mov $0x5152535455565758, %rsi
movq %rsi, %xmm7
vmovups %ymm7, (%rbx)
nop
nop
nop
xor $47525, %rdi
// Store
lea addresses_US+0x19636, %rdi
nop
nop
xor %r15, %r15
mov $0x5152535455565758, %rbp
movq %rbp, (%rdi)
nop
nop
sub %rdi, %rdi
// Store
lea addresses_UC+0x14f26, %rbx
nop
nop
nop
nop
nop
and %r9, %r9
mov $0x5152535455565758, %rbp
movq %rbp, %xmm7
vmovups %ymm7, (%rbx)
nop
and %r11, %r11
// Store
lea addresses_WT+0x1dc5a, %rbx
nop
nop
nop
dec %r9
mov $0x5152535455565758, %rbp
movq %rbp, %xmm1
movups %xmm1, (%rbx)
nop
nop
nop
nop
nop
add %rbx, %rbx
// Faulty Load
lea addresses_PSE+0x7d26, %rsi
nop
nop
nop
nop
add %rbp, %rbp
movups (%rsi), %xmm0
vpextrq $0, %xmm0, %rbx
lea oracles, %rdi
and $0xff, %rbx
shlq $12, %rbx
mov (%rdi,%rbx,1), %rbx
pop %rsi
pop %rdi
pop %rbx
pop %rbp
pop %r9
pop %r15
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_P', 'size': 8, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_normal', 'size': 32, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_US', 'size': 8, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_UC', 'size': 32, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 16, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}}
{'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': True}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': 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
*/
| 36.620112 | 2,999 | 0.657513 |
73ff0a5948406a877801f168a1a407d8aabe2ea3 | 391 | asm | Assembly | programs/oeis/124/A124350.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/124/A124350.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/124/A124350.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A124350: a(n) = 4*n*(floor(n^2/2)+1). For n>=3, this is the number of directed Hamiltonian paths on the n-prism graph.
; 0,4,24,60,144,260,456,700,1056,1476,2040,2684,3504,4420,5544,6780,8256,9860,11736,13756,16080,18564,21384,24380,27744,31300,35256,39420,44016,48836,54120,59644,65664,71940,78744,85820,93456,101380,109896,118716
mov $1,$0
pow $0,2
add $0,2
div $0,2
mul $0,$1
mul $0,4
| 39.1 | 212 | 0.723785 |
816c39e10b36826d150cc9c8578a5720e2d15647 | 1,069 | asm | Assembly | week1/Lab1/src/baby.asm | LJP-TW/NYCU-Secure-Programming | 22f4a2a3894849548455981dd435e38b3ecf64f0 | [
"MIT"
] | 18 | 2022-01-20T15:10:30.000Z | 2022-03-09T07:22:34.000Z | week1/Lab1/src/baby.asm | kddco/NYCU-Secure-Programming | 22f4a2a3894849548455981dd435e38b3ecf64f0 | [
"MIT"
] | null | null | null | week1/Lab1/src/baby.asm | kddco/NYCU-Secure-Programming | 22f4a2a3894849548455981dd435e38b3ecf64f0 | [
"MIT"
] | 5 | 2022-01-21T04:44:49.000Z | 2022-03-19T19:51:07.000Z | global _start
section .text
_start:
mov rbp, rsp
xor rax, rax
inc rax
jnz Baby_open
Baby_bye:
mov rax, 60
xor rdi, rdi
syscall
Baby_open:
inc rax
mov rdi, fn
xor rsi, rsi
or rsi, 0x001
or rsi, 0x040
or rsi, 0x200
xor rdx, rdx
or rdx, 0x777
syscall
mov qword [rbp+0x100], rax
xor rax, rax
xor r8, r8
mov r12, key
jnz Baby_bye
jz Baby_Loop_cmp
Baby_Loop:
mov r10, flag
mov r11b, byte [r10 + r8]
xor r11b, byte [r12 + r8]
mov byte [rbp+0x200], r11b
call Baby_write
inc r8
Baby_Loop_cmp:
cmp r8, 29
jnz Baby_Loop
mov rax, 3
mov rdi, [rbp+0x100]
syscall
jmp Baby_bye
Baby_write:
mov rax, 1
mov rdi, qword [rbp+0x100]
xor rdx, rdx
inc rdx
lea rsi, [rbp+0x200]
syscall
ret
section .data
fn: db "/tmp/baby_aksgmsdkvmdfiivjdd", 0
flag: db "NotFLAG{Hello_Baby_Reverser}", 0
key: db 8, 35, 53, 1, 55, 21, 47, 18, 59, 58, 5, 31, 48, 38, 45, 20, 16, 38, 57, 62, 4, 17, 58, 19, 17, 6, 22, 0, 0
| 19.089286 | 117 | 0.580917 |
606a2df1cc97d109bb02cbff7b89d3052c5c15f1 | 88 | asm | Assembly | assembly/x86_assembly/func.asm | drichardson/examples | 89cd96741f6110729138f5c904317dd1a42f63ff | [
"Unlicense"
] | 33 | 2015-04-21T20:10:42.000Z | 2021-09-28T05:54:37.000Z | assembly/x86_assembly/func.asm | drichardson/examples | d8b285db4ad1cfd9a92091deab2eb385748f97c8 | [
"Unlicense"
] | 1 | 2020-03-15T18:54:19.000Z | 2020-03-15T18:54:19.000Z | assembly/x86_assembly/func.asm | drichardson/examples | d8b285db4ad1cfd9a92091deab2eb385748f97c8 | [
"Unlicense"
] | 19 | 2015-01-09T13:39:06.000Z | 2021-09-15T05:39:33.000Z | global asmFunction
SECTION .TEXT
GLOBAL asmFunction
asmFunction:
mov eax,42
ret
| 8.8 | 19 | 0.761364 |
b0743fa70f5ac239ec406b02129a00d8be09e5ae | 510 | asm | Assembly | u7si/eop-feed.asm | JohnGlassmyer/UltimaHacks | f9a114e00c4a1edf1ac7792b465feff2c9b88ced | [
"MIT"
] | 68 | 2018-03-04T22:34:22.000Z | 2022-03-10T15:18:32.000Z | u7si/eop-feed.asm | ptrie/UltimaHacks | 2c3557a86d94ad8b54b26bc395b9aed1604f8be1 | [
"MIT"
] | 19 | 2018-11-20T04:06:49.000Z | 2021-11-08T16:37:10.000Z | u7si/eop-feed.asm | ptrie/UltimaHacks | 2c3557a86d94ad8b54b26bc395b9aed1604f8be1 | [
"MIT"
] | 4 | 2020-09-01T17:57:36.000Z | 2022-01-04T20:51:11.000Z | %include "include/u7si-all-includes.asm"
[bits 16]
startPatch EXE_LENGTH, eop-feed
startBlockAt addr_eop_feed
push bp
mov bp, sp
; bp-based stack frame:
%assign ____callerIp 0x02
%assign ____callerBp 0x00
push si
push di
; call the U7SI 'f'-key script that feeds a party member to fullness
push 1557
push 0
push 0
callFromOverlay runUsecode
add sp, 6
pop di
pop si
mov sp, bp
pop bp
retn
endBlockAt off_eop_feed_end
endPatch
| 15.9375 | 70 | 0.660784 |
7f9b629a051d46d88b0bf6af2aca46a71bb37859 | 66 | asm | Assembly | flame32-libs/unit-tests/test-mov-1.asm | drako0812/flame32 | cf79e5fc14838cc3ca0dbe702bbdb8f157a587ab | [
"MIT"
] | 2 | 2019-08-21T09:16:32.000Z | 2020-08-12T12:56:08.000Z | flame32-libs/unit-tests/test-mov-1.asm | drako0812/flame32 | cf79e5fc14838cc3ca0dbe702bbdb8f157a587ab | [
"MIT"
] | null | null | null | flame32-libs/unit-tests/test-mov-1.asm | drako0812/flame32 | cf79e5fc14838cc3ca0dbe702bbdb8f157a587ab | [
"MIT"
] | null | null | null | #include "../../flame32.asm"
; Tests MOV
lod 0x12345678
mov B, A
| 11 | 28 | 0.651515 |
883a265c23d3dba2847e84074d529a7993550273 | 734 | asm | Assembly | oeis/047/A047892.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/047/A047892.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/047/A047892.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A047892: a(1) = 2; for n > 0, a(n+1) = a(n) * sum of digits of a(n).
; Submitted by Jon Maiga
; 2,4,16,112,448,7168,157696,5361664,166211584,5651193856,276908498944,19383594926080,1298700860047360,79220752462888960,6733763959345561600,592571228422409420800,45035413360103115980800,3152478935207218118656000,296333019909478503153664000,31411300110404721334288384000,2387258808390758821405917184000,317505421515970923246986985472000,44133253590719958331331190980608000,5869722727565754458067048400420864000,921546468227823449916526598866075648000,172329189558602985134390473987956146176000
mov $2,$0
mov $3,$0
cmp $3,0
add $0,$3
mov $1,2
div $2,$0
lpb $0
sub $0,$2
seq $1,57147 ; a(n) = n times sum of digits of n.
lpe
mov $0,$1
| 45.875 | 493 | 0.814714 |
8304ce3133fbec156c9be393ae3c8121db56c9f6 | 3,129 | asm | Assembly | src/sound/sleeping_music/channel4.asm | Gegel85/RunnerGB | 3d36597b94558cd3b3f613031291086190b45f2f | [
"MIT"
] | null | null | null | src/sound/sleeping_music/channel4.asm | Gegel85/RunnerGB | 3d36597b94558cd3b3f613031291086190b45f2f | [
"MIT"
] | null | null | null | src/sound/sleeping_music/channel4.asm | Gegel85/RunnerGB | 3d36597b94558cd3b3f613031291086190b45f2f | [
"MIT"
] | null | null | null | musicChan4SleepingTheme::
setRegisters $3F, $81, $00, $00
stopMusic
jump musicChan4SleepingTheme
setVolume $81
setFrequencyRaw $7D, $80
wait QUAVER
setFrequencyRaw $7D, $80
wait QUAVER
setFrequencyRaw $7D, $80
wait QUAVER
setFrequencyRaw $7D, $80
wait QUAVER
wait QUAVER + CROTCHET + MINIM
setFrequencyRaw $7D, $80
wait SEMIQUAVER
setFrequencyRaw $7D, $80
wait SEMIQUAVER
wait QUAVER + CROTCHET + MINIM
setFrequencyRaw $7D, $80
wait SEMIQUAVER
setFrequencyRaw $7D, $80
wait SEMIQUAVER
wait QUAVER + CROTCHET + MINIM
setFrequencyRaw $7D, $80
wait SEMIQUAVER
setFrequencyRaw $7D, $80
wait SEMIQUAVER
setVolume $21
setFrequencyRaw $6C, $80
wait SEMIQUAVER
setVolume $31
playRaw $80
wait SEMIQUAVER
setVolume $41
setFrequencyRaw $6D, $80
wait SEMIQUAVER
setVolume $51
playRaw $80
wait SEMIQUAVER
setVolume $61
playRaw $80
wait SEMIQUAVER
setVolume $71
playRaw $80
wait SEMIQUAVER
setVolume $81
setFrequencyRaw $6E, $80
wait SEMIQUAVER
setVolume $91
playRaw $80
wait SEMIQUAVER
setVolume $A1
playRaw $80
wait SEMIQUAVER
setVolume $B1
playRaw $80
wait SEMIQUAVER
setVolume $C1
setFrequencyRaw $6F, $80
wait SEMIQUAVER
setVolume $D1
playRaw $80
wait SEMIQUAVER
setVolume $E1
playRaw $80
wait SEMIQUAVER
setVolume $F1
playRaw $80
wait SEMIQUAVER
repeat 8
setVolume $A1
setFrequencyRaw $6C, $80
wait SEMIQUAVER
setFrequencyRaw $6D, $80
wait SEMIQUAVER
setFrequencyRaw $6E, $80
wait QUAVER
setVolume $F1
setFrequencyRaw $34, $80
wait QUAVER
setVolume $A1
setFrequencyRaw $6C, $80
wait SEMIQUAVER
setFrequencyRaw $6D, $80
wait SEMIQUAVER
setFrequencyRaw $6C, $80
wait SEMIQUAVER
setFrequencyRaw $6E, $80
wait QUAVER
playRaw $80
wait SEMIQUAVER
setVolume $F1
setFrequencyRaw $34, $80
wait QUAVER
setVolume $A1
setFrequencyRaw $6D, $80
wait SEMIQUAVER
playRaw $80
wait SEMIQUAVER
continue
setVolume $F1
repeat 4
wait CROTCHET
setFrequencyRaw $34, $80
wait MINIM
setFrequencyRaw $34, $80
wait CROTCHET
continue
wait SEMIBREVE * 3
wait QUAVER
setVolume $21
setFrequencyRaw $6C, $80
wait SEMIQUAVER
setVolume $31
playRaw $80
wait SEMIQUAVER
setVolume $41
setFrequencyRaw $6D, $80
wait SEMIQUAVER
setVolume $51
playRaw $80
wait SEMIQUAVER
setVolume $61
playRaw $80
wait SEMIQUAVER
setVolume $71
playRaw $80
wait SEMIQUAVER
setVolume $81
setFrequencyRaw $6E, $80
wait SEMIQUAVER
setVolume $91
playRaw $80
wait SEMIQUAVER
setVolume $A1
playRaw $80
wait SEMIQUAVER
setVolume $B1
playRaw $80
wait SEMIQUAVER
setVolume $C1
setFrequencyRaw $6F, $80
wait SEMIQUAVER
setVolume $D1
playRaw $80
wait SEMIQUAVER
setVolume $E1
playRaw $80
wait SEMIQUAVER
setVolume $F1
playRaw $80
wait SEMIQUAVER
repeat 7
setVolume $A1
setFrequencyRaw $7A, $80
wait CROTCHET
setVolume $F1
setFrequencyRaw $34, $80
wait QUAVER
setVolume $A1
setFrequencyRaw $6C, $80
wait SEMIQUAVER
setFrequencyRaw $6D, $80
wait SEMIQUAVER
setFrequencyRaw $6C, $80
wait SEMIQUAVER
setFrequencyRaw $6E, $80
wait QUAVER
playRaw $80
wait SEMIQUAVER
setVolume $F1
setFrequencyRaw $34, $80
wait CROTCHET
continue
| 16.822581 | 32 | 0.753276 |
adb34baadd5db272bedd3a20c8f220f2a45f03c8 | 7,101 | a51 | Assembly | Projects/bulkloop/dscr.a51 | cvetkovem/cypress_FX2_firmware | ed82208a500b24d7780d3e2a704718cd84a987b1 | [
"MIT"
] | null | null | null | Projects/bulkloop/dscr.a51 | cvetkovem/cypress_FX2_firmware | ed82208a500b24d7780d3e2a704718cd84a987b1 | [
"MIT"
] | null | null | null | Projects/bulkloop/dscr.a51 | cvetkovem/cypress_FX2_firmware | ed82208a500b24d7780d3e2a704718cd84a987b1 | [
"MIT"
] | null | null | null | ; Copyright (C) 2009 Ubixum, Inc.
;
; 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.1 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
; this is a the default
; full speed and high speed
; descriptors found in the TRM
; change however you want but leave
; the descriptor pointers so the setupdat.c file works right
.module DEV_DSCR
; descriptor types
; same as setupdat.h
DSCR_DEVICE_TYPE = 1
DSCR_CONFIG_TYPE = 2
DSCR_STRING_TYPE = 3
DSCR_INTERFACE_TYPE = 4
DSCR_ENDPOINT_TYPE = 5
DSCR_DEVQUAL_TYPE = 6
; for the repeating interfaces
DSCR_INTERFACE_LEN = 9
DSCR_ENDPOINT_LEN = 7
; endpoint types
ENDPOINT_TYPE_CONTROL = 0
ENDPOINT_TYPE_ISO = 1
ENDPOINT_TYPE_BULK = 2
ENDPOINT_TYPE_INT = 3
.globl _dev_dscr, _dev_qual_dscr, _highspd_dscr, _fullspd_dscr, _dev_strings, _dev_strings_end
; These need to be in code memory. If
; they aren't you'll have to manully copy them somewhere
; in code memory otherwise SUDPTRH:L don't work right
.area DSCR_AREA (CODE)
; -----------------------------------------------------------------------------
; Device descriptor
; -----------------------------------------------------------------------------
_dev_dscr:
.db dev_dscr_end-_dev_dscr ; len
.db DSCR_DEVICE_TYPE ; type
.dw 0x0002 ; USB 2.0
.db 0xff ; class (vendor specific)
.db 0xff ; subclass (vendor specific)
.db 0xff ; protocol (vendor specific)
.db 64 ; packet size (ep0)
.dw 0xB404 ; vendor id
.dw 0x0410 ; product id
.dw 0x0100 ; version id
.db 1 ; manufacturure str idx
.db 2 ; product str idx
.db 0 ; serial str idx
.db 1 ; n configurations
dev_dscr_end:
; -----------------------------------------------------------------------------
; Device qualifier (for "other device speed")
; -----------------------------------------------------------------------------
_dev_qual_dscr:
.db dev_qualdscr_end - _dev_qual_dscr
.db DSCR_DEVQUAL_TYPE
.dw 0x0002 ; USB 2.0
.db 0xff ; Class (vendor specific)
.db 0xff ; Subclass (vendor specific)
.db 0xff ; Protocol (vendor specific)
.db 64 ; Max. EP0 packet size
.db 1 ; Number of configurations
.db 0 ; Extra reserved byte
dev_qualdscr_end:
; -----------------------------------------------------------------------------
; High-Speed configuration descriptor
; -----------------------------------------------------------------------------
_highspd_dscr:
.db highspd_dscr_end - _highspd_dscr
.db DSCR_CONFIG_TYPE
; Total length of the configuration (1st line LSB, 2nd line MSB)
.db (highspd_dscr_realend - _highspd_dscr) % 256
.db (highspd_dscr_realend - _highspd_dscr) / 256
.db 1 ; Number of interfaces
.db 1 ; Configuration number
.db 0 ; Configuration string (none)
.db 0x80 ; Attributes (bus powered, no wakeup)
.db 0x32 ; Max. power (100mA)
highspd_dscr_end:
; all the interfaces next
; NOTE the default TRM actually has more alt interfaces
; but you can add them back in if you need them.
; here, we just use the default alt setting 1 from the trm
; Interfaces (only one in our case)
.db DSCR_INTERFACE_LEN
.db DSCR_INTERFACE_TYPE
.db 0 ; Interface index
.db 0 ; Alternate setting index
.db 1 ; Number of endpoints
.db 0xff ; Class (vendor specific)
.db 0xff ; Subclass (vendor specific)
.db 0xff ; Protocol (vendor specific)
.db 0 ; String index (none)
; Endpoint 2 (IN)
.db DSCR_ENDPOINT_LEN
.db DSCR_ENDPOINT_TYPE
.db 0x82 ; EP number (2), direction (IN)
.db ENDPOINT_TYPE_BULK ; Endpoint type (bulk)
.db 0x00 ; Max. packet size, LSB (512 bytes)
.db 0x02 ; Max. packet size, MSB (512 bytes)
.db 0x00 ; Polling interval
highspd_dscr_realend:
.even
; -----------------------------------------------------------------------------
; Full-Speed configuration descriptor
; -----------------------------------------------------------------------------
_fullspd_dscr:
.db fullspd_dscr_end - _fullspd_dscr
.db DSCR_CONFIG_TYPE
; Total length of the configuration (1st line LSB, 2nd line MSB)
.db (fullspd_dscr_realend - _fullspd_dscr) % 256
.db (fullspd_dscr_realend - _fullspd_dscr) / 256
.db 1 ; Number of interfaces
.db 1 ; Configuration number
.db 0 ; Configuration string (none)
.db 0x80 ; Attributes (bus powered, no wakeup)
.db 0x32 ; Max. power (100mA)
fullspd_dscr_end:
; all the interfaces next
; NOTE the default TRM actually has more alt interfaces
; but you can add them back in if you need them.
; here, we just use the default alt setting 1 from the trm
; Interfaces (only one in our case)
.db DSCR_INTERFACE_LEN
.db DSCR_INTERFACE_TYPE
.db 0 ; Interface index
.db 0 ; Alternate setting index
.db 1 ; Number of endpoints
.db 0xff ; Class (vendor specific)
.db 0xff ; Subclass (vendor specific)
.db 0xff ; Protocol (vendor specific)
.db 0 ; String index (none)
; Endpoint 2 (IN)
.db DSCR_ENDPOINT_LEN
.db DSCR_ENDPOINT_TYPE
.db 0x82 ; EP number (2), direction (IN)
.db ENDPOINT_TYPE_BULK ; Endpoint type (bulk)
.db 0x40 ; Max. packet size, LSB (64 bytes)
.db 0x00 ; Max. packet size, MSB (64 bytes)
.db 0x00 ; Polling interval
fullspd_dscr_realend:
.even
; -----------------------------------------------------------------------------
; Strings
; -----------------------------------------------------------------------------
_dev_strings:
; See http://www.usb.org/developers/docs/USB_LANGIDs.pdf for the full list.
_string0:
.db string0end - _string0
.db DSCR_STRING_TYPE
.db 0x09, 0x04 ; Language code 0x0409 (English, US)
string0end:
_string1:
.db string1end - _string1
.db DSCR_STRING_TYPE
.ascii 'C'
.db 0
.ascii 'y'
.db 0
.ascii 'p'
.db 0
.ascii 'r'
.db 0
.ascii 'e'
.db 0
.ascii 's'
.db 0
.ascii 's'
.db 0
string1end:
_string2:
.db string2end - _string2
.db DSCR_STRING_TYPE
.ascii 'C'
.db 0
.ascii 'Y'
.db 0
.ascii '-'
.db 0
.ascii 'S'
.db 0
.ascii 't'
.db 0
.ascii 'r'
.db 0
.ascii 'e'
.db 0
.ascii 'a'
.db 0
.ascii 'm'
.db 0
string2end:
_dev_strings_end:
.dw 0x0000 ; just in case someone passes an index higher than the end to the firmware
| 30.346154 | 98 | 0.595268 |
88d9f54c68b498b1e41cf062fb5e1e318616936d | 6,032 | asm | Assembly | 2 Year/2015 Pattern/MPL/Assignment 8.asm | bhushanasati25/College | 638ab4f038a783beae297652623e8c6679465fef | [
"MIT"
] | 4 | 2020-10-22T15:37:09.000Z | 2022-02-17T17:30:03.000Z | 2 Year/2015 Pattern/MPL/Assignment 8.asm | mohitkhedkar/College | f713949827d69f13b1bf8fb082e86e8bead7ac6e | [
"MIT"
] | null | null | null | 2 Year/2015 Pattern/MPL/Assignment 8.asm | mohitkhedkar/College | f713949827d69f13b1bf8fb082e86e8bead7ac6e | [
"MIT"
] | 5 | 2021-06-19T01:23:18.000Z | 2022-02-26T14:47:15.000Z | ;Problem Statement:Write X86 menu driven Assembly Language Program (ALP) to implement OS (DOS) commands TYPE, COPY and DELETE using file operations. User is supposed to provide
;command line arguments in all cases.
%macro cmn 4 ;input/output
mov rax,%1
mov rdi,%2
mov rsi,%3
mov rdx,%4
syscall
%endmacro
%macro exit 0
mov rax,60
mov rdi,0
syscall
%endmacro
%macro fopen 1
mov rax,2 ;open
mov rdi,%1 ;filename
mov rsi,2 ;mode RW
mov rdx,0777o ;File permissions
syscall
%endmacro
%macro fread 3
mov rax,0 ;read
mov rdi,%1 ;filehandle
mov rsi,%2 ;buf
mov rdx,%3 ;buf_len
syscall
%endmacro
%macro fwrite 3
mov rax,1 ;write/print
mov rdi,%1 ;filehandle
mov rsi,%2 ;buf
mov rdx,%3 ;buf_len
syscall
%endmacro
%macro fclose 1
mov rax,3 ;close
mov rdi,%1 ;file handle
syscall
%endmacro
section .data
menu db 'MENU : ',0Ah
db "1. TYPE",0Ah
db "2. COPY",0Ah
db "3. DELETE",0Ah
db "4. Exit",0Ah
db "Enter your choice : "
menulen equ $-menu
msg db "Command : "
msglen equ $-msg
cpysc db "File copied successfully !!",0Ah
cpysclen equ $-cpysc
delsc db 'File deleted successfully !!',0Ah
delsclen equ $-delsc
err db "Error ...",0Ah
errlen equ $-err
cpywr db 'Command does not exist',0Ah
cpywrlen equ $-cpywr
err_par db 'Insufficient parameter',0Ah
err_parlen equ $-err_par
section .bss
choice resb 2
buffer resb 50
name1 resb 15
name2 resb 15
cmdlen resb 1
filehandle1 resq 1
filehandle2 resq 1
abuf_len resq 1 ; actual buffer length
dispnum resb 2
buf resb 4096
buf_len equ $-buf ; buffer initial length
section .text
global _start
_start:
again: cmn 1,1,menu,menulen
cmn 0,0,choice,2
mov al,byte[choice]
cmp al,31h
jbe op1
cmp al,32h
jbe op2
cmp al,33h
jbe op3
exit
ret
op1:
call tproc
jmp again
op2:
call cpproc
jmp again
op3:
call delproc
jmp again
;type command procedure
tproc:
cmn 1,1,msg,msglen
cmn 0,0,buffer,50
mov byte[cmdlen],al
dec byte[cmdlen]
mov rsi,buffer
mov al,[rsi] ;search for correct type command
cmp al,'t'
jne skipt
inc rsi
dec byte[cmdlen]
jz skipt
mov al,[rsi]
cmp al,'y'
jne skipt
inc rsi
dec byte[cmdlen]
jz skipt
mov al,[rsi]
cmp al,'p'
jne skipt
inc rsi
dec byte[cmdlen]
jz skipt
mov al,[rsi]
cmp al,'e'
jne skipt
inc rsi
dec byte[cmdlen]
jnz correctt
cmn 1,1,err_par,err_parlen
call exit
skipt: cmn 1,1,cpywr,cpywrlen
exit
correctt:
mov rdi,name1 ;finding file name
call find_name
fopen name1 ; on succes returns handle
cmp rax,-1H ; on failure returns -1
jle error
mov [filehandle1],rax
xor rax,rax
fread [filehandle1],buf, buf_len
mov [abuf_len],rax
dec byte[abuf_len]
cmn 1,1,buf,abuf_len ;printing file content on screen
ret
;copy command procedure
cpproc:
cmn 1,1,msg,msglen
cmn 0,0,buffer,50 ;accept command
mov byte[cmdlen],al
dec byte[cmdlen]
mov rsi,buffer
mov al,[rsi] ;search for copy
cmp al,'c'
jne skip
inc rsi
dec byte[cmdlen]
jz skip
mov al,[rsi]
cmp al,'o'
jne skip
inc rsi
dec byte[cmdlen]
jz skip
mov al,[rsi]
cmp al,'p'
jne skip
inc rsi
dec byte[cmdlen]
jz skip
mov al,[rsi]
cmp al,'y'
jne skip
inc rsi
dec byte[cmdlen]
jnz correct
cmn 1,1,err_par,err_parlen
exit
skip: cmn 1,1,cpywr,cpywrlen
exit
correct:
mov rdi,name1 ;finding first file name
call find_name
mov rdi,name2 ;finding second file name
call find_name
skip3: fopen name1 ; on succes returns handle
cmp rax,-1H ; on failure returns -1
jle error
mov [filehandle1],rax
fopen name2 ; on succes returns handle
cmp rax,-1H ; on failure returns -1
jle error
mov [filehandle2],rax
xor rax,rax
fread [filehandle1],buf, buf_len
mov [abuf_len],rax
dec byte[abuf_len]
fwrite [filehandle2],buf, [abuf_len] ;write to file
fclose [filehandle1]
fclose [filehandle2]
cmn 1,1,cpysc,cpysclen
jmp again
error:
cmn 1,1,err,errlen
exit
ret
;delete command procedure
delproc:
cmn 1,1,msg,msglen
cmn 0,0,buffer,50 ;accept command
mov byte[cmdlen],al
dec byte[cmdlen]
mov rsi,buffer
mov al,[rsi] ;search for copy
cmp al,'d'
jne skipr
inc rsi
dec byte[cmdlen]
jz skipr
mov al,[rsi]
cmp al,'e'
jne skipr
inc rsi
dec byte[cmdlen]
jz skipr
mov al,[rsi]
cmp al,'l'
jne skipr
inc rsi
dec byte[cmdlen]
jnz correctr
cmn 1,1,err_par,err_parlen
exit
skipr: cmn 1,1,cpywr,cpywrlen
exit
correctr:
mov rdi,name1 ;finding first file name
call find_name
mov rax,87 ;unlink system call
mov rdi,name1
syscall
cmp rax,-1H ; on failure returns -1
jle errord
cmn 1,1,delsc,delsclen
jmp again
errord:
cmn 1,1,err,errlen
exit
ret
find_name: ;finding file name from command
inc rsi
dec byte[cmdlen]
cont1: mov al,[rsi]
mov [rdi],al
inc rdi
inc rsi
mov al,[rsi]
cmp al,20h ;searching for space
je skip2
cmp al,0Ah ;searching for enter key
je skip2
dec byte[cmdlen]
jnz cont1
cmn 1,1,err,errlen
exit
skip2:
ret
| 18.968553 | 177 | 0.569297 |
2b94ff144d63988c56ee6b257502b3e1a1cf3c3b | 68 | asm | Assembly | popcnt.asm | moskupols/competitive-stl-extensions | 3f98f0504e04bc10c7834d010054627aab11846e | [
"MIT"
] | 3 | 2019-01-18T05:48:40.000Z | 2019-07-12T20:38:05.000Z | popcnt.asm | moskupols/competitive-stl-extensions | 3f98f0504e04bc10c7834d010054627aab11846e | [
"MIT"
] | null | null | null | popcnt.asm | moskupols/competitive-stl-extensions | 3f98f0504e04bc10c7834d010054627aab11846e | [
"MIT"
] | 1 | 2019-01-18T05:48:42.000Z | 2019-01-18T05:48:42.000Z | main:
xor eax, eax
popcnt eax, edi
ret
| 13.6 | 24 | 0.411765 |
73d6702a5a03865a78c0909730740791ef09974d | 484 | asm | Assembly | oeis/094/A094874.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/094/A094874.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/094/A094874.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A094874: Decimal expansion of (5-sqrt(5))/2.
; 1,3,8,1,9,6,6,0,1,1,2,5,0,1,0,5,1,5,1,7,9,5,4,1,3,1,6,5,6,3,4,3,6,1,8,8,2,2,7,9,6,9,0,8,2,0,1,9,4,2,3,7,1,3,7,8,6,4,5,5,1,3,7,7,2,9,4,7,3,9,5,3,7,1,8,1,0,9,7,5,5,0,2,9,2,7,9,2,7,9,5,8,1,0,6,0,8,8,6,2
mov $2,1
lpb $0
mov $2,$0
seq $2,109866 ; 9's complement of the digits of the golden ratio phi (A001622): 9.999999999999... - 1.6180339887... = 8.3819660112501051517954131656334...
cmp $3,0
add $4,$3
mod $0,$4
lpe
mov $0,$2
| 37.230769 | 201 | 0.586777 |
88357a562e1b1c555e666d1cfeb7b9e73bbf1346 | 6,535 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_950.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_0xca.log_21829_950.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_0xca.log_21829_950.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x12079, %r8
nop
nop
and $63361, %rdx
and $0xffffffffffffffc0, %r8
movaps (%r8), %xmm3
vpextrq $0, %xmm3, %rbp
nop
sub $16454, %rdx
lea addresses_UC_ht+0x1dddf, %r14
clflush (%r14)
nop
nop
sub $36133, %rsi
vmovups (%r14), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $0, %xmm2, %r11
nop
nop
nop
nop
nop
sub %rdx, %rdx
lea addresses_WC_ht+0xea66, %rsi
lea addresses_A_ht+0x58e3, %rdi
and %r14, %r14
mov $76, %rcx
rep movsl
nop
nop
nop
nop
and $7236, %rsi
lea addresses_normal_ht+0x8c9b, %r8
clflush (%r8)
nop
nop
nop
dec %rsi
mov (%r8), %ecx
nop
nop
dec %rcx
lea addresses_A_ht+0x369b, %rsi
lea addresses_WC_ht+0x12c9b, %rdi
nop
nop
inc %rbp
mov $38, %rcx
rep movsw
nop
nop
nop
nop
sub $3645, %r11
lea addresses_WT_ht+0x9b, %r8
nop
nop
nop
and $32903, %rcx
mov (%r8), %r14w
nop
nop
nop
and %rsi, %rsi
lea addresses_D_ht+0x689b, %rsi
lea addresses_WC_ht+0x989b, %rdi
nop
nop
nop
nop
nop
add $7876, %r14
mov $10, %rcx
rep movsl
nop
nop
nop
nop
nop
add %rdx, %rdx
lea addresses_WT_ht+0x16dfb, %rcx
sub $11609, %r14
mov (%rcx), %rsi
nop
nop
sub $55114, %r11
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r14
push %r9
push %rbp
push %rcx
push %rdx
// Load
lea addresses_D+0xe89b, %rdx
nop
and %r14, %r14
mov (%rdx), %rbp
sub %r9, %r9
// Load
mov $0x78fac9000000049b, %r14
nop
xor %r13, %r13
movups (%r14), %xmm6
vpextrq $0, %xmm6, %rdx
nop
nop
add %r14, %r14
// Faulty Load
lea addresses_PSE+0xd49b, %r13
nop
nop
nop
xor %rbp, %rbp
vmovups (%r13), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $0, %xmm5, %rdx
lea oracles, %r9
and $0xff, %rdx
shlq $12, %rdx
mov (%r9,%rdx,1), %rdx
pop %rdx
pop %rcx
pop %rbp
pop %r9
pop %r14
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 2, 'NT': True, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 11}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_PSE', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': True, 'congruent': 1}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 3}}
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 11}}
{'OP': 'LOAD', 'src': {'size': 2, 'NT': True, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 6}, 'dst': {'same': True, 'type': 'addresses_WC_ht', 'congruent': 9}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'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
*/
| 36.920904 | 2,999 | 0.656159 |
23e4f8ef778a07cc1a2cdbe13155a3a275fddd56 | 1,964 | asm | Assembly | python_src/other/export/screen_5_4.asm | fjpena/sword-of-ianna-msx2 | f104f46a677e4b21f42fbed478307a0bb1d372f3 | [
"Apache-2.0"
] | 43 | 2017-10-21T23:01:25.000Z | 2022-02-21T17:45:11.000Z | python_src/other/export/screen_5_4.asm | fjpena/sword-of-ianna-msx2 | f104f46a677e4b21f42fbed478307a0bb1d372f3 | [
"Apache-2.0"
] | null | null | null | python_src/other/export/screen_5_4.asm | fjpena/sword-of-ianna-msx2 | f104f46a677e4b21f42fbed478307a0bb1d372f3 | [
"Apache-2.0"
] | 6 | 2017-10-23T05:48:50.000Z | 2022-01-06T03:11:49.000Z | org $0000
; Object types
OBJECT_NONE EQU 0
OBJECT_SWITCH EQU 1
OBJECT_DOOR EQU 2
OBJECT_DOOR_DESTROY EQU 3
OBJECT_FLOOR_DESTROY EQU 4
OBJECT_WALL_DESTROY EQU 5
OBJECT_BOX_LEFT EQU 6
OBJECT_BOX_RIGHT EQU 7
OBJECT_JAR EQU 8
OBJECT_TELEPORTER EQU 9
; Pickable object types
OBJECT_KEY_GREEN EQU 11
OBJECT_KEY_BLUE EQU 12
OBJECT_KEY_YELLOW EQU 13
OBJECT_BREAD EQU 14
OBJECT_MEAT EQU 15
OBJECT_HEALTH EQU 16
OBJECT_KEY_RED EQU 17
OBJECT_KEY_WHITE EQU 18
OBJECT_KEY_PURPLE EQU 19
; Object types for enemies
OBJECT_ENEMY_SKELETON EQU 20
OBJECT_ENEMY_ORC EQU 21
OBJECT_ENEMY_MUMMY EQU 22
OBJECT_ENEMY_TROLL EQU 23
OBJECT_ENEMY_ROCK EQU 24
OBJECT_ENEMY_KNIGHT EQU 25
OBJECT_ENEMY_DALGURAK EQU 26
OBJECT_ENEMY_GOLEM EQU 27
OBJECT_ENEMY_OGRE EQU 28
OBJECT_ENEMY_MINOTAUR EQU 29
OBJECT_ENEMY_DEMON EQU 30
OBJECT_ENEMY_SECONDARY EQU 31
Screen_5_4:
DB 1, 8, 2, 60, 0, 0, 21, 47, 47, 47, 47, 47, 58, 2, 2, 2
DB 8, 0, 8, 78, 0, 0, 0, 0, 0, 144, 0, 0, 77, 9, 2, 9
DB 0, 0, 0, 58, 48, 0, 0, 0, 0, 0, 0, 0, 78, 0, 9, 0
DB 0, 80, 81, 60, 47, 47, 47, 47, 47, 47, 20, 0, 58, 80, 81, 0
DB 81, 82, 83, 78, 0, 0, 145, 0, 0, 0, 0, 0, 60, 82, 83, 88
DB 169, 169, 170, 146, 0, 0, 0, 0, 0, 0, 0, 161, 45, 80, 74, 77
DB 147, 0, 0, 0, 0, 0, 0, 0, 21, 47, 47, 47, 47, 75, 76, 60
DB 0, 0, 0, 0, 0, 144, 0, 0, 0, 146, 0, 0, 0, 254, 73, 74
DB 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 0, 22, 75, 76
DB 14, 14, 14, 15, 15, 15, 14, 15, 14, 15, 15, 14, 15, 14, 15, 15
HardScreen_5_4:
DB 85, 10, 170, 85
DB 85, 0, 0, 85
DB 85, 0, 0, 85
DB 85, 170, 168, 85
DB 85, 0, 0, 85
DB 168, 0, 0, 85
DB 0, 0, 169, 85
DB 0, 0, 1, 85
DB 0, 0, 1, 85
DB 85, 85, 85, 85
Obj_5_4:
DB 31 ; PLAYER
DB 8, OBJECT_ENEMY_MUMMY, 9, 7, 0, 47
DB 54, OBJECT_ENEMY_MUMMY, 5, 1, 0, 47
DB 0, OBJECT_NONE, 0, 0, 0, 0 ; EMPTY OBJECT
DB 0, OBJECT_NONE, 0, 0, 0, 0 ; EMPTY OBJECT
DB 0, OBJECT_NONE, 0, 0, 0, 0 ; EMPTY OBJECT
DB 0, OBJECT_NONE, 0, 0, 0, 0 ; EMPTY OBJECT
DB 0, OBJECT_NONE, 0, 0, 0, 0 ; EMPTY OBJECT
| 29.313433 | 65 | 0.666497 |
253d060be1b1e341608886afbc24531ca65b2bee | 1,254 | asm | Assembly | Examples/ch10/Repeat.asm | satadriver/LiunuxOS_t | c6222f04b6e734002cbf1aa366eb62e51f0ebbe5 | [
"Apache-2.0"
] | null | null | null | Examples/ch10/Repeat.asm | satadriver/LiunuxOS_t | c6222f04b6e734002cbf1aa366eb62e51f0ebbe5 | [
"Apache-2.0"
] | null | null | null | Examples/ch10/Repeat.asm | satadriver/LiunuxOS_t | c6222f04b6e734002cbf1aa366eb62e51f0ebbe5 | [
"Apache-2.0"
] | null | null | null | TITLE Repeat Block Examples (Repeat.asm)
; This program demonstrates the REPEAT, FOR,
; FORC, and WHILE directives.
; Last update: 2/30/02
INCLUDE Irvine32.inc
INCLUDE Macros.inc
COURSE STRUCT
Number BYTE 9 DUP(?)
Credits BYTE ?
COURSE ENDS
; A semester contains an array of courses.
SEMESTER STRUC
Courses COURSE 6 DUP(<>)
NumCourses WORD ?
SEMESTER ENDS
.data
; Create a character lookup table:
Delimiters LABEL BYTE
FORC code,<@#$%^&*!<!>>
BYTE "&code"
ENDM
BYTE 0 ; marks the end
; Generate Fibonacci numbers up to 0FFFFh
f1 = 1
f2 = 1
f3 = f1 + f2
DWORD f1,f2
WHILE f3 LT 0FFFFh
DWORD f3
f1 = f2
f2 = f3
f3 = f1 + f2
ENDM
ECHO ---------------------------------------------------------
iVal = 10
REPEAT 100 ; begin REPT loop
DWORD iVal ; status
iVal = iVal + 10
ENDM
; Define a set of semester variables.
FOR semName,<Fall1999,Spring2000,Summer2000,Fall2000,Spring2001,Summer2001>
semName SEMESTER <>
ENDM
.code
main PROC
mov esi,OFFSET Fall1999
mov ecx,2
L1:
mov edx,esi
add edx,OFFSET COURSE.Number
mWrite "Enter a course name: "
mReadStr edx,8
mWrite "Enter the credits: "
call ReadInt
mov (COURSE PTR [esi]).Credits,al
add esi,SIZEOF COURSE
Loop L1
exit
main ENDP
END main | 17.178082 | 75 | 0.668262 |
7a027f421f642b3e4fcafc69e532d91eabc9ae94 | 1,011 | asm | Assembly | data/pokemon/base_stats/munchlax.asm | AtmaBuster/pokeplat-gen2 | fa83b2e75575949b8f72cb2c48f7a1042e97f70f | [
"blessing"
] | 6 | 2021-06-19T06:41:19.000Z | 2022-02-15T17:12:33.000Z | data/pokemon/base_stats/munchlax.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | null | null | null | data/pokemon/base_stats/munchlax.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | 2 | 2021-08-11T19:47:07.000Z | 2022-01-01T07:07:56.000Z | db 0 ; species ID placeholder
db 135, 85, 40, 5, 40, 85
; hp atk def spd sat sdf
db NORMAL, NORMAL ; type
db 50 ; catch rate
db 78 ; base exp
db LEFTOVERS, LEFTOVERS ; items
db GENDER_F12_5 ; gender ratio
db 40 ; step cycles to hatch
INCBIN "gfx/pokemon/munchlax/front.dimensions"
db GROWTH_SLOW ; growth rate
dn EGG_NONE, EGG_NONE ; egg groups
db 70 ; happiness
; tm/hm learnset
tmhm FOCUS_PUNCH, WATER_PULSE, TOXIC, HIDDEN_POWER, SUNNY_DAY, ICE_BEAM, BLIZZARD, PROTECT, RAIN_DANCE, FRUSTRATION, SOLARBEAM, THUNDERBOLT, THUNDER, EARTHQUAKE, RETURN, PSYCHIC_M, SHADOW_BALL, BRICK_BREAK, DOUBLE_TEAM, SHOCK_WAVE, FLAMETHROWER, SANDSTORM, FIRE_BLAST, ROCK_TOMB, FACADE, SECRET_POWER, REST, ATTRACT, FLING, ENDURE, RECYCLE, CAPTIVATE, ROCK_SLIDE, SLEEP_TALK, NATURAL_GIFT, SWAGGER, SUBSTITUTE, SURF, STRENGTH, ROCK_SMASH, ROCK_CLIMB, FIRE_PUNCH, GUNK_SHOT, ICE_PUNCH, ICY_WIND, LAST_RESORT, MUD_SLAP, ROLLOUT, SEED_BOMB, SNORE, SUPERPOWER, THUNDERPUNCH, UPROAR, ZEN_HEADBUTT
; end
| 50.55 | 593 | 0.759644 |
fee85cf2a15c0c39029062a17c5a4fcbe21e2097 | 289 | asm | Assembly | presentation/examples/asm-so/ex4/lib.asm | sayon/dynamic-libraries-course | 05c229123feb94a7b93ef64aa7c6bfded8e15752 | [
"MIT"
] | 4 | 2017-12-25T11:33:12.000Z | 2022-02-19T12:14:41.000Z | presentation/examples/asm-so/ex4/lib.asm | sayon/dynamic-libraries-course | 05c229123feb94a7b93ef64aa7c6bfded8e15752 | [
"MIT"
] | null | null | null | presentation/examples/asm-so/ex4/lib.asm | sayon/dynamic-libraries-course | 05c229123feb94a7b93ef64aa7c6bfded8e15752 | [
"MIT"
] | null | null | null | extern _GLOBAL_OFFSET_TABLE_
extern puts
global sostr:data (sostr.end - sostr)
global sofun:function
section .rodata
sostr: db "sostring", 10, 0
.end:
localstr: db "localstr", 10, 0
section .text
sofun:
lea rdi, [rel localstr]
call puts wrt ..plt
mov rax, 42
ret
| 13.761905 | 37 | 0.681661 |
1706be73926237d294ca802a96860c9b0edcca7d | 235 | asm | Assembly | linux64/lesson11.asm | mashingan/notes-asmtutor | 88532e0b364a63cd1e7578a537807795d429fc2f | [
"MIT"
] | 1 | 2021-11-05T06:41:49.000Z | 2021-11-05T06:41:49.000Z | linux64/lesson11.asm | mashingan/notes-asmtutor | 88532e0b364a63cd1e7578a537807795d429fc2f | [
"MIT"
] | null | null | null | linux64/lesson11.asm | mashingan/notes-asmtutor | 88532e0b364a63cd1e7578a537807795d429fc2f | [
"MIT"
] | null | null | null | format ELF64 executable 3
entry start
include 'procs.inc'
segment readable executable
start:
mov rdx, 0
@@:
inc rdx
mov rax, rdx
call iprintLF
cmp rdx, 10
jne @b
call quitProgram
| 14.6875 | 27 | 0.587234 |
6eddfbe603f8e5d74cf23d0c9a8006e0a56d6fb4 | 642 | asm | Assembly | programs/oeis/069/A069205.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/069/A069205.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/069/A069205.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A069205: a(n) = Sum_{k=1..n} 2^bigomega(k).
; 1,3,5,9,11,15,17,25,29,33,35,43,45,49,53,69,71,79,81,89,93,97,99,115,119,123,131,139,141,149,151,183,187,191,195,211,213,217,221,237,239,247,249,257,265,269,271,303,307,315,319,327,329,345,349,365,369,373,375,391,393,397,405,469,473,481,483,491,495,503,505,537,539,543,551,559,563,571,573,605,621,625,627,643,647,651,655,671,673,689,693,701,705,709,713,777,779,787,795,811
lpb $0
mov $2,$0
sub $0,1
seq $2,61142 ; Replace each prime factor of n with 2: a(n) = 2^bigomega(n), where bigomega = A001222, number of prime factors counted with multiplicity.
add $1,$2
lpe
add $1,1
mov $0,$1
| 53.5 | 374 | 0.693146 |
84c3acbf7e59eba86f5c9ab575a92004b8b571b4 | 1,277 | asm | Assembly | _build/dispatcher/jmp_ippsGFpSetElementHash_rmf_6f9bb86a.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | 1 | 2021-10-04T10:21:54.000Z | 2021-10-04T10:21:54.000Z | _build/dispatcher/jmp_ippsGFpSetElementHash_rmf_6f9bb86a.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | null | null | null | _build/dispatcher/jmp_ippsGFpSetElementHash_rmf_6f9bb86a.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | null | null | null | extern m7_ippsGFpSetElementHash_rmf:function
extern n8_ippsGFpSetElementHash_rmf:function
extern y8_ippsGFpSetElementHash_rmf:function
extern e9_ippsGFpSetElementHash_rmf:function
extern l9_ippsGFpSetElementHash_rmf:function
extern n0_ippsGFpSetElementHash_rmf:function
extern k0_ippsGFpSetElementHash_rmf:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment .data
align 8
dq .Lin_ippsGFpSetElementHash_rmf
.Larraddr_ippsGFpSetElementHash_rmf:
dq m7_ippsGFpSetElementHash_rmf
dq n8_ippsGFpSetElementHash_rmf
dq y8_ippsGFpSetElementHash_rmf
dq e9_ippsGFpSetElementHash_rmf
dq l9_ippsGFpSetElementHash_rmf
dq n0_ippsGFpSetElementHash_rmf
dq k0_ippsGFpSetElementHash_rmf
segment .text
global ippsGFpSetElementHash_rmf:function (ippsGFpSetElementHash_rmf.LEndippsGFpSetElementHash_rmf - ippsGFpSetElementHash_rmf)
.Lin_ippsGFpSetElementHash_rmf:
db 0xf3, 0x0f, 0x1e, 0xfa
call ippcpSafeInit wrt ..plt
align 16
ippsGFpSetElementHash_rmf:
db 0xf3, 0x0f, 0x1e, 0xfa
mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc]
movsxd rax, dword [rax]
lea r11, [rel .Larraddr_ippsGFpSetElementHash_rmf]
mov r11, qword [r11+rax*8]
jmp r11
.LEndippsGFpSetElementHash_rmf:
| 32.74359 | 127 | 0.827721 |
5266f74a5ffc4b948a74041c4908118847736217 | 2,964 | asm | Assembly | Code/render.asm | msklywenn/GB-GameOfLife | 16ef5f192f1ffde8c9684e586b0188a0ff5abd7d | [
"BSD-3-Clause"
] | 9 | 2019-01-03T15:06:28.000Z | 2022-01-18T10:00:52.000Z | Code/render.asm | msklywenn/GB-GameOfLife | 16ef5f192f1ffde8c9684e586b0188a0ff5abd7d | [
"BSD-3-Clause"
] | null | null | null | Code/render.asm | msklywenn/GB-GameOfLife | 16ef5f192f1ffde8c9684e586b0188a0ff5abd7d | [
"BSD-3-Clause"
] | 2 | 2019-01-03T00:55:44.000Z | 2019-07-23T12:42:11.000Z | INCLUDE "hardware.inc"
INCLUDE "utils.inc"
RENDER_IN_HBL EQU 0
EXPORT Video, Rendered
SECTION "Render Memory", HRAM
LinesLeft: ds 1 ; number of lines left to render
TilesLeft: ds 1 ; number of tiles left to render in current line
Video: ds 2 ; progressing pointer in tilemap (VRAM)
Rendered: ds 2 ; progressing pointer in old buffer
SECTION "V-Blank Interrupt Handler", ROM0[$40]
VBlankInterruptHandler:
; save registers
push af
push bc
call ReadJoypad
jr LCDStatInterruptHandler.start
SECTION "LCD Stat Interrupt Handler", ROM0[$48]
LCDStatInterruptHandler:
; save registers
push af
push bc
.start
; check there are tiles to render
ldh a, [LinesLeft]
or a
jr z, .exit
; move lines left to B
ld b, a
push de
push hl
.render
; load buffer pointer into DE
ld hl, Video
ld a, [hl+]
ld d, [hl]
ld e, a
; load video pointer into HL
ld hl, Rendered
ld a, [hl+]
ld h, [hl]
ld l, a
; load counters
ldh a, [TilesLeft]
ld c, a
.loop
; check we can still render
ldh a, [rSTAT]
and a, STATF_BUSY
jr nz, .finish
; copy one byte
ld a, [hl+]
ld [de], a
inc e ; it will never overflow since it only increments
; up to 20 bytes starting on 32 byte boundaries
; loop while there are tiles to render
dec c
jr nz, .loop
; go to next line
ld a, e
add a, 32 - 20
ld e, a
jr nc, .nocarry
inc d
.nocarry
; loop while there are lines to render
dec b
jr z, .finish
; reset tile counter
ld c, 20
jr .loop
.finish
; save counters
ld a, c
ldh [TilesLeft], a
ld a, b
ldh [LinesLeft], a
; save incremented video pointer and buffer pointer
ld a, e
ldh [Video], a
ld a, d
ldh [Video + 1], a
ld a, l
ldh [Rendered], a
ld a, h
ldh [Rendered + 1], a
; restore registers saved in interrupt handler
pop hl
pop de
.exit
pop bc
pop af
; return from v-blank or lcd interrupt
reti
EXPORT InitRender
SECTION "Init render", ROM0
InitRender:
ld a, $9C
ldh [Video + 1], a
xor a
ldh [Video], a
ret
EXPORT StartRender
SECTION "StartRender", ROM0
StartRender:
; set rendered pointer to old buffer
ldh a, [Progress]
ld l, a
ld [Rendered], a
ldh a, [Old]
ld h, a
ld [Rendered + 1], a
; start rendering
ld a, 20
ldh [TilesLeft], a
ld a, 18
ldh [LinesLeft], a
; enable v-blank and lcd stat interrupt for h-blank
; rendering routine is too slow for lcdc right now so disabled
IF RENDER_IN_HBL != 0
ld a, IEF_VBLANK | IEF_LCDC
ELSE
ld a, IEF_VBLANK
ENDC
ld [rIE], a
ret
EXPORT WaitRender
SECTION "WaitRender", ROM0
WaitRender:
ldh a, [LinesLeft]
or a
jr z, .exit
halt
jr WaitRender
.exit
IF RENDER_IN_HBL != 0
; enable only v-blank interrupt and wait for vbl
ld a, IEF_VBLANK
ld [rIE], a
HaltAndClearInterrupts
ENDC
; swap video pointer
ldh a, [Video + 1]
dec a
dec a
xor a, %100
ldh [Video + 1], a
xor a
ldh [Video], a
; swap displayed BG
ldh a, [rLCDC]
xor a, LCDCF_BG9C00
or a, LCDCF_ON | LCDCF_BGON
ldh [rLCDC], a
ret | 15.850267 | 68 | 0.673752 |
b7e690aaa7fefb4bb15723eafbec8ea9cfb9c050 | 673 | asm | Assembly | programs/oeis/267/A267459.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/267/A267459.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/267/A267459.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A267459: Total number of ON (black) cells after n iterations of the "Rule 133" elementary cellular automaton starting with a single ON (black) cell.
; 1,2,3,4,7,10,15,20,27,34,43,52,63,74,87,100,115,130,147,164,183,202,223,244,267,290,315,340,367,394,423,452,483,514,547,580,615,650,687,724,763,802,843,884,927,970,1015,1060,1107,1154,1203,1252,1303,1354,1407,1460,1515,1570,1627,1684,1743,1802,1863,1924,1987,2050,2115,2180,2247,2314,2383,2452,2523,2594,2667,2740,2815,2890,2967,3044,3123,3202,3283,3364,3447,3530,3615,3700,3787,3874,3963,4052,4143,4234,4327,4420,4515,4610,4707,4804
mov $1,$0
pow $0,2
lpb $1
div $0,2
sub $1,2
sub $0,$1
div $1,$0
lpe
add $0,1
| 51.769231 | 435 | 0.732541 |
17422487eade7f09aaa767ef5d922f659d5f5c11 | 887 | asm | Assembly | programs/oeis/295/A295515.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/295/A295515.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/295/A295515.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A295515: The Euclid tree, read across levels.
; 0,1,1,1,1,2,2,1,1,3,3,2,2,3,3,1,1,4,4,3,3,5,5,2,2,5,5,3,3,4,4,1,1,5,5,4,4,7,7,3,3,8,8,5,5,7,7,2,2,7,7,5,5,8,8,3,3,7,7,4,4,5,5,1,1,6,6,5,5,9,9,4,4,11,11,7,7,10,10,3,3,11,11,8,8,13,13,5,5,12,12,7,7,9,9,2,2,9,9,7,7,12,12,5,5,13,13,8,8,11,11,3,3,10,10,7,7,11,11,4,4,9,9,5,5,6,6,1,1,7,7,6,6,11,11,5,5,14,14,9,9,13,13,4,4,15,15,11,11,18,18,7,7,17,17,10,10,13,13,3,3,14,14,11,11,19,19,8,8,21,21,13,13,18,18,5,5,17,17,12,12,19,19,7,7,16,16,9,9,11,11,2,2,11,11,9,9,16,16,7,7,19,19,12,12,17,17,5,5,18,18,13,13,21,21,8,8,19,19,11,11,14,14,3,3,13,13,10,10,17,17,7,7,18,18,11,11,15,15,4,4,13,13,9,9,14,14,5,5,11
add $0,1
div $0,2
mov $2,1
mul $2,$0
mov $0,2
add $0,$2
sub $0,2
mov $1,2916
cal $0,2487 ; Stern's diatomic series (or Stern-Brocot sequence): a(0) = 0, a(1) = 1; for n > 0: a(2*n) = a(n), a(2*n+1) = a(n) + a(n+1).
add $1,$0
sub $1,2916
| 59.133333 | 600 | 0.580609 |
6c62da21f4e1ef5cd9dd533a8d31449eac60b2d9 | 1,756 | asm | Assembly | programs/oeis/017/A017382.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/017/A017382.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/017/A017382.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A017382: a(n) = (10*n + 9)^6.
; 531441,47045881,594823321,3518743761,13841287201,42180533641,107918163081,243087455521,496981290961,941480149401,1677100110841,2839760855281,4608273662721,7212549413161,10942526586601,16157819263041,23298085122481,32894113444921,45579633110361,62103840598801,83344647990241,110322650964681,144215816802121,186374892382561,238339532186001,301855146292441,378890468381881,471655843734321,582622237229761,714540961348201,870464124169641,1053765797374081,1268163904241521,1517742827651961,1806976738085401,2140753641621841,2524400147941281,2963706958323721,3464955073649161,4034942722397601,4681013008649041,5411082280083481,6233669215980921,7157924635221361,8193662024284801,9351388785251241,10642338203800681,12078502137213121,13672664422368561,15438435003747001,17390284781428441,19543581179092881,21914624432020321,24520684595090761,27380039270784201,30512012057180641,33937011715960081,37676572060402521,41753392563387961,46191379685396401,51015688922507841,56252767574402281,61930398232359721,68077742987260161,74725388357583601,81905390937410041,89651323764419481,97998323407891921,106983137776707361,116644174647345801,127021550911887241,138157142546011681,150094635296999121,162879576091729561,176559425164683001,191183608905939441,206803573429178881,223472838859681321,241247054342326761,260184053769595201,280343912229566641,301789003173921081,324584056305938521,348796216188498961,374495101572082401,401752865442768841,430644255790238281,461246677095770721,493640252540246161,527907886932144601,564135330355546041,602411242538130481,642827257939177921,685478051557568361,730461405459781801,777878276027898241,827832861927597681,880432672796160121,935788598650465561,994014980014994001
mul $0,10
add $0,9
pow $0,6
| 250.857143 | 1,694 | 0.92426 |
e50572df56e14ba04734c5e30406efb28efdba34 | 5,444 | asm | Assembly | ta19demo/tests/world_test.asm | hallorant/bitmit | 58f337ecbafe04066e71bc54efa4640643bf5373 | [
"Apache-2.0"
] | 6 | 2020-08-16T03:23:37.000Z | 2022-03-19T20:50:27.000Z | ta19demo/tests/world_test.asm | hallorant/bitmit | 58f337ecbafe04066e71bc54efa4640643bf5373 | [
"Apache-2.0"
] | 1 | 2021-09-14T22:24:14.000Z | 2021-09-15T01:48:48.000Z | ta19demo/tests/world_test.asm | hallorant/bitmit | 58f337ecbafe04066e71bc54efa4640643bf5373 | [
"Apache-2.0"
] | 1 | 2021-09-09T22:50:31.000Z | 2021-09-09T22:50:31.000Z | ; Unit tests for world.asm.
org $4a00
import '../../lib/barden_fill.asm'
import '../../lib/barden_hexcv.asm'
import '../../lib/barden_move.asm'
import '../world.asm'
blank equ $80
screen equ $3c00
; Compares a to (expected) and reports
; o 'P' if equal
; o 'F' if not equal
; on column 'col' of line 'line' on the screen.
cp_a_byte_to macro expected,line,col,?pass,?fail,?result
ld c,expected
cp c
jr c,?fail
jr z,?pass
jr ?fail
?pass: ld a,'P'
jr ?result
?fail: ld a,'F'
?result: ld (screen+64*line+col),a
endm
show_title macro name,line,col
ld hl,`name`_txt
ld de,screen+64*line+col
ld bc,`name`_len
call barden_move
endm
; Compares de to expected and reports
; o 'P' if equal
; o 'F' if not equal
; on column 'col' of line 'line' on the screen.
cp_de_int16_to macro expected,line,col,?pass_high,?pass_both,?fail,?result
ld hl,expected
ld a,d
cp h
jr c,?fail
jr z,?pass_high
jr ?fail
?pass_high: ld a,e
cp l
jr c,?fail
jr z,?pass_both
jr ?fail
?pass_both: ld a,'P'
jr ?result
?fail: ld a,'F'
?result: ld (screen+64*line+col),a
endm
tmp16 defw 0
title_txt defb 'WORLD.ASM UNIT TESTS'
title_len equ $-title_txt
test_0_txt defb ': is_wall(0,0) = 1'
test_0_len equ $-test_0_txt
test_1_txt defb ': is_wall(1,1) = 0'
test_1_len equ $-test_1_txt
test_2_txt defb ': is_wall(31,31) = 1'
test_2_len equ $-test_2_txt
test_3_txt defb ': is_wall(30,30) = 0'
test_3_len equ $-test_3_txt
test_4_txt defb ': is_wall(30,31) = 1'
test_4_len equ $-test_4_txt
test_5_txt defb ': is_wall(1,31) = 1'
test_5_len equ $-test_5_txt
test_6_txt defb ': is_wall(20,10) = 1'
test_6_len equ $-test_6_txt
test_7_txt defb ': is_wall(20,9) = 0'
test_7_len equ $-test_7_txt
test_10_txt defb ': sla16(1 << 5) = 32'
test_10_len equ $-test_10_txt
test_11_txt defb ': sla16(1 << 8) = 256'
test_11_len equ $-test_11_txt
test_12_txt defb ': sla16(2 << 8) = 512'
test_12_len equ $-test_12_txt
test_13_txt defb ': sla16(1 << 9) = 512'
test_13_len equ $-test_13_txt
test_14_txt defb ': srl16(1024 >> 1) = 512'
test_14_len equ $-test_14_txt
test_15_txt defb ': srl16(32 >> 5) = 1'
test_15_len equ $-test_15_txt
test_16_txt defb ': srl16(32568 >> 4) = 2035'
test_16_len equ $-test_16_txt
main:
; Clear the screen.
ld d,blank
ld hl,screen
ld bc,64*16
call barden_fill
show_title title,0,22
; This ensures bit order for the map is correct.
call prepare_world
; -------------------
; -- IS_WALL TESTS --
; -------------------
; Test 0: is_wall(0,0) = 1
show_title test_0,1,2
ld l,0
ld c,0
call is_wall
cp_a_byte_to 1,1,0
; Test 1: is_wall(1,1) = 0
show_title test_1,2,2
ld l,1
ld c,1
call is_wall
cp_a_byte_to 0,2,0
; Test 2: is_wall(31,31) = 1
show_title test_2,3,2
ld l,31
ld c,31
call is_wall
cp_a_byte_to 1,3,0
; Test 3: is_wall(30,30) = 0
show_title test_3,4,2
ld l,30
ld c,30
call is_wall
cp_a_byte_to 0,4,0
; Test 4: is_wall(30,31) = 1
show_title test_4,5,2
ld l,30
ld c,31
call is_wall
cp_a_byte_to 1,5,0
; Test 5: is_wall(1,31) = 1
show_title test_5,6,2
ld l,1
ld c,31
call is_wall
cp_a_byte_to 1,6,0
; Test 6: is_wall(20,10) = 1
show_title test_6,7,2
ld l,20
ld c,10
call is_wall
cp_a_byte_to 1,7,0
; Test 7: is_wall(20,9) = 0
show_title test_7,8,2
ld l,20
ld c,9
call is_wall
cp_a_byte_to 0,8,0
; -----------------
; -- SLA16 TESTS --
; -----------------
; Test 10: sla16(1 << 5) = 32
show_title test_10,1,34
ld hl,1
ld a,5
call sla16
ld (tmp16),hl
ld de,(tmp16)
cp_de_int16_to 32,1,32
; Test 11: sla16(1 << 8) = 256
show_title test_11,2,34
ld hl,1
ld a,8
call sla16
ld (tmp16),hl
ld de,(tmp16)
cp_de_int16_to 256,2,32
; Test 12: sla16(2 << 8) = 512
show_title test_12,3,34
ld hl,2
ld a,8
call sla16
ld (tmp16),hl
ld de,(tmp16)
cp_de_int16_to 512,3,32
; Test 13: sla16(1 << 9) = 512
show_title test_13,4,34
ld hl,1
ld a,9
call sla16
ld (tmp16),hl
ld de,(tmp16)
cp_de_int16_to 512,4,32
; Test 14: srl16(1024 << 1) = 512
show_title test_14,6,34
ld hl,1024
ld a,1
call srl16
ld (tmp16),hl
ld de,(tmp16)
cp_de_int16_to 512,6,32
; Test 15: srl16(32 >> 5) = 1
show_title test_15,7,34
ld hl,32
ld a,5
call srl16
ld (tmp16),hl
ld de,(tmp16)
cp_de_int16_to 1,7,32
; Test 16: srl16(32568 >> 4) = 2035
show_title test_16,8,34
ld hl,32568
ld a,4
call srl16
ld (tmp16),hl
ld de,(tmp16)
cp_de_int16_to 2035,8,32
hcf: jr hcf
end main
| 23.165957 | 77 | 0.533799 |
f95ce7270a9cbd3360d70f89d87d2b040b41e454 | 265 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/pow_callee.asm | witchcraft2001/z88dk | 11adca337a4125aff611ddfdf3fc2401e8dda5b2 | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/pow_callee.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/pow_callee.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_fp_math16
PUBLIC powf16_callee
EXTERN cm16_sccz80_pow_callee
defc powf16_callee = cm16_sccz80_pow_callee
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _powf16_callee
EXTERN cm16_sdcc_pow_callee
defc _powf16_callee = cm16_sdcc_pow_callee
ENDIF
| 16.5625 | 44 | 0.856604 |
e21d54d7554e43e873e5db42c988c408ab628f7d | 174 | asm | Assembly | tools/DOSBox-0.74Win/FSysFAT/avt/p1_asm/X1_Begin/p21.asm | cyberitsec/antivirus | 812be691c2a24cc4488ec848b64b57558c0311ab | [
"MIT"
] | 1 | 2021-09-28T23:47:40.000Z | 2021-09-28T23:47:40.000Z | tools/DOSBox-0.74Win/FSysFAT/avt/p1_asm/X1_Begin/p21.asm | cyberitsec/antivirus | 812be691c2a24cc4488ec848b64b57558c0311ab | [
"MIT"
] | null | null | null | tools/DOSBox-0.74Win/FSysFAT/avt/p1_asm/X1_Begin/p21.asm | cyberitsec/antivirus | 812be691c2a24cc4488ec848b64b57558c0311ab | [
"MIT"
] | null | null | null | .model small
.stack 16
.data
a db 7
b db 9
c dw ?
.code
start:
mov AX, @data
mov DS, AX
mov BX, AX
mov AX, AX
mov AX, 4C00h
int 21h
end start | 8.285714 | 15 | 0.545977 |
0e36b2d879004e4990b484badd43b224348c5f6e | 1,296 | asm | Assembly | programs/oeis/064/A064724.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/064/A064724.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/064/A064724.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A064724: A Beatty sequence for 2^sqrt(2).
; 1,3,4,6,8,9,11,12,14,16,17,19,20,22,24,25,27,28,30,32,33,35,36,38,40,41,43,44,46,48,49,51,52,54,56,57,59,60,62,64,65,67,68,70,72,73,75,76,78,80,81,83,84,86,88,89,91,92,94,96,97,99,100,102,104,105,107,108,110,112,113,115,116,118,120,121,123,124,126,128,129,131,132,134,136,137,139,140,142,144,145,147,148,150,152,153,155,156,158,160,161,163,164,166,168,169,171,172,174,176,177,179,180,182,184,185,187,188,190,192,193,195,196,198,200,201,203,204,206,208,209,211,212,214,216,217,219,220,222,224,225,227,228,230,232,233,235,236,238,240,241,243,244,246,248,249,251,252,254,256,257,259,260,262,264,265,267,268,270,272,273,275,276,278,280,281,283,284,286,288,289,291,292,294,296,297,299,300,302,304,305,307,308,310,312,313,315,316,318,320,321,323,324,326,328,329,331,332,334,336,337,339,340,342,344,345,347,348,350,352,353,355,356,358,360,361,363,364,366,368,369,371,372,374,376,377,379,380,382,384,385,387,388,390,392,393,395,396,398,400
mov $6,$0
mov $8,$0
add $8,1
lpb $8
clr $0,6
mov $0,$6
sub $8,1
sub $0,$8
lpb $0
mov $2,$0
cal $2,316832 ; In A316831, replace 2's and 3's with 0's.
mov $1,$0
trn $0,5
add $3,$2
mul $3,2
mov $4,$2
min $4,1
add $5,$4
lpe
mov $1,$2
add $1,1
add $7,$1
lpe
mov $1,$7
| 46.285714 | 933 | 0.664352 |
22a7f95170d042cb4883f0fc47a1c265fef8aeca | 317 | asm | Assembly | programs/oeis/306/A306472.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/306/A306472.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/306/A306472.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A306472: a(n) = 37*27^n.
; 37,999,26973,728271,19663317,530909559,14334558093,387033068511,10449892849797,282147106944519,7617971887502013,205685240962554351,5553501505988967477,149944540661702121879,4048502597865957290733,109309570142380846849791,2951358393844282864944357
mov $1,27
pow $1,$0
mul $1,37
mov $0,$1
| 39.625 | 248 | 0.839117 |
6ef382bd5fe2fb9105d417e62e83bb1cc0d1051e | 622 | asm | Assembly | oeis/216/A216244.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/216/A216244.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/216/A216244.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A216244: a(n) = (prime(n)^2 - 1)/2 for n >= 2.
; Submitted by Jon Maiga
; 4,12,24,60,84,144,180,264,420,480,684,840,924,1104,1404,1740,1860,2244,2520,2664,3120,3444,3960,4704,5100,5304,5724,5940,6384,8064,8580,9384,9660,11100,11400,12324,13284,13944,14964,16020,16380,18240,18624,19404,19800,22260,24864,25764,26220,27144,28560,29040,31500,33024,34584,36180,36720,38364,39480,40044,42924,47124,48360,48984,50244,54780,56784,60204,60900,62304,64440,67344,69564,71820,73344,75660,78804,80400,83640,87780,88620,92880,93744,96360,98124,100800,104424,106260,107184,109044,114720
seq $0,65091 ; Odd primes.
pow $0,2
div $0,2
| 77.75 | 501 | 0.770096 |
9032e8d5bbe74d80790ad1344c1c8a1a8407448c | 276 | asm | Assembly | src/third_party/nasm/test/br3109604.asm | Mr-Sheep/naiveproxy | 9f6e9768295f6d1d41517a15a621d4756bd7d6be | [
"BSD-3-Clause"
] | 2,219 | 2018-03-26T02:57:34.000Z | 2022-03-31T00:27:59.000Z | src/third_party/nasm/test/br3109604.asm | Mr-Sheep/naiveproxy | 9f6e9768295f6d1d41517a15a621d4756bd7d6be | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | src/third_party/nasm/test/br3109604.asm | Mr-Sheep/naiveproxy | 9f6e9768295f6d1d41517a15a621d4756bd7d6be | [
"BSD-3-Clause"
] | 473 | 2019-03-24T16:34:23.000Z | 2022-03-31T02:01:05.000Z | ;Testname=unoptimized; Arguments=-O0 -fbin -obr3109604.bin; Files=stdout stderr br3109604.bin
;Testname=optimized; Arguments=-Ox -fbin -obr3109604.bin; Files=stdout stderr br3109604.bin
bits 64
b0: vmovd xmm2, [rdx+r9]
e0:
section .data
len: dd e0 - b0 ; Should be 6
| 27.6 | 93 | 0.735507 |
19e9b64587328d4ca2fd31224c2eae1c394d8381 | 178 | asm | Assembly | data/pokemon/dex_entries/plusle.asm | AtmaBuster/pokeplat-gen2 | fa83b2e75575949b8f72cb2c48f7a1042e97f70f | [
"blessing"
] | 6 | 2021-06-19T06:41:19.000Z | 2022-02-15T17:12:33.000Z | data/pokemon/dex_entries/plusle.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | null | null | null | data/pokemon/dex_entries/plusle.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | 3 | 2021-01-15T18:45:40.000Z | 2021-10-16T03:35:27.000Z | db "CHEERING@" ; species name
db "It absorbs"
next "electricity from"
next "telephone poles."
page "It shorts out its"
next "body to create"
next "crackling noises.@"
| 17.8 | 30 | 0.685393 |
524f0af2d2c1bbebc2c8543f42e21f638e3dd7b8 | 6,528 | asm | Assembly | src/PJ/flic386p/libsrc/drvcomn/drvlines.asm | AnimatorPro/Animator-Pro | 6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb | [
"BSD-3-Clause"
] | 119 | 2015-01-10T15:13:50.000Z | 2022-01-24T04:54:34.000Z | src/PJ/drivekit/drvcomn/drvlines.asm | AnimatorPro/Animator-Pro | 6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb | [
"BSD-3-Clause"
] | 6 | 2015-10-22T20:14:59.000Z | 2021-07-10T03:25:21.000Z | src/PJ/flic386p/libsrc/drvcomn/drvlines.asm | AnimatorPro/Animator-Pro | 6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb | [
"BSD-3-Clause"
] | 27 | 2015-04-24T22:55:30.000Z | 2022-01-21T13:54:00.000Z | ;*****************************************************************************
;* DRVLINE.ASM - set_hline and set_rect functions for the vesa driver.
;*
;* NOTES:
;*
;*
;* MAINTENANCE:
;* 03/27/91 Ian Lepore
;* Basically a total re-write.
;*****************************************************************************
;******************************************************************************
;* *
;* Copyright (C) 1991 by Autodesk, Inc. *
;* *
;* Permission to use, copy, modify, and distribute this software and *
;* its documentation for the purpose of creating applications for *
;* Autodesk Animator, is hereby granted in accordance with the terms *
;* of the License Agreement accompanying this product. *
;* *
;* Autodesk makes no warrantees, express or implied, as to the *
;* correctness of this code or any derivative works which incorporate *
;* it. Autodesk provides the code on an ''as-is'' basis and *
;* explicitly disclaims any liability, express or implied, for *
;* errors, omissions, and other problems in the code, including *
;* consequential and incidental damages. *
;* *
;* Use, duplication, or disclosure by the U.S. Government is *
;* subject to restrictions set forth in FAR 52.227-19 (Commercial *
;* Computer Software - Restricted Rights) and DFAR 252.227-7013 (c) *
;* (1) (ii) (Rights in Technical Data and Computer Software, as *
;* applicable. *
;* *
;******************************************************************************
include stdmacro.i
include drvcomn.i
_TEXT segment
public pj_vdrv_set_hline
public pj_vdrv_set_rect
;*****************************************************************************
;* void pj_vdrv_set_hline(Raster *r, Pixel color, int x, int y, int w)
;*****************************************************************************
align 4
pj_vdrv_set_hline proc near
Entry
Args #raster,#color,#x,#y,#w
Save edi,es
mov ax,gs
mov es,ax
lea edx,pj_vdrv_wcontrol ; 2
mov edi,#y ; 4
mov eax,[edi*8+ytab_bank] ; 4
mov edi,[edi*8+ytab_offs] ; 4
add edi,#x ; 6
#nosplit:
cmp eax,[edx].wwrcurbank ; 6
jne short #newbank ; 3
#setline: ;
mov ecx,#w ; 4
add edi,[edx].wwraddr ; 6 = 39
mov dl,#color ; 4 replicate color byte into all bytes
mov dh,dl ; 2 of eax...
shrd eax,edx,16 ; 3
mov ax,dx ; 2
mov dl,cl ; 2 do typical fastmove stuff...
and dl,3 ; 2
shr ecx,2 ; 3
rep stosd ; X
mov cl,dl ; 2
rep stosb ; X
Restore edi,es
Exit
align 4
#newbank:
test eax,0FFFF0000h
jnz short #splitline
SetWriteBank
jmp short #setline
align 4
#splitline:
ror eax,16 ; swap split_at and bank number in eax.
mov ecx,#x ; load starting x.
cmp cx,ax ; starting x after split?
jb short #checkend ; nope, ahead of it, go check ending x.
shr eax,16 ; yep, so the entire output is after
inc eax ; the split; increment to the next
and edi,[edx].woffsmask ; bank and adjust of offset within the
jmp short #nosplit ; bank, then continue as a normal line.
#checkend:
sub ax,cx ; get distance between start and split,
cmp ax,#w ; compare to length of output. if
jb short #truesplit ; output fits before split point, handle
shr eax,16 ; as normal. (we've cleared split_at
jmp short #nosplit ; from upper bits of eax.)
#truesplit:
mov cx,ax ; true split, put pre-split move count
sub #w,ecx ; in ecx, adjust post-split count.
shr eax,16 ; shift bank number back to ax.
cmp eax,[edx].wwrcurbank ;are we in the right bank now?
je short #split1 ; yep, skip setting bank.
SetWriteBank
#split1:
add edi,[edx].wwraddr
mov al,#color
rep stosb
mov eax,[edx].wwrcurbank
inc eax
SetWriteBank
xor edi,edi
jmp #setline
pj_vdrv_set_hline endp
;*****************************************************************************
;* void pj_vdrv_set_rect(Raster *r, Pixel color, int x, int y, int w, int h)
;*****************************************************************************
align 4
pj_vdrv_set_rect proc near
Entry
Lclvars #widthd,#widthb
Args #raster,#color,#x,#y,#w,#h
Save ebx,ebp,esi,edi,es
mov ax,gs
mov es,ax
mov dl,#color ; 4 replicate color byte into all bytes
mov dh,dl ; 2 of esi...
shrd esi,edx,16 ; 3
mov si,dx ; 2
mov ecx,#w
mov eax,ecx
shr eax,2
mov #widthd,eax
and ecx,3
mov #widthb,ecx
lea edx,pj_vdrv_wcontrol
mov eax,#y
lea ebp,[eax*8+ytab_bank]
mov ebx,[ebp+4]
add ebx,#x
add ebx,[edx].wwraddr
#lineloop:
mov eax,[ebp]
cmp eax,[edx].wwrcurbank
jne short #checkbank
#setline:
mov edi,ebx
mov eax,esi
mov ecx,#widthd
rep stosd
mov ecx,#widthb
rep stosb
add ebx,[edx].wpitch
#endloop:
add ebp,8
dec dptr #h
jnz short #lineloop
Restore ebx,ebp,esi,edi,es
Exit
#checkbank:
test eax,0FFFF0000h ; is this a split line? if not, we just
jz #setbank ; need to set the bank. if so, move the
ror eax,16 ; split_at value to ax, compare it to
cmp ax,wptr #x ; the starting X coord. if start_x
ja #dosplit ; greater than split_at, the whole line
shr eax,16 ; is after the split. just move to the
inc eax ; next bank, then continue as normal.
#setbank:
SetWriteBank ; set the new write bank.
mov ebx,[ebp+4] ; rebuild the current output pointer
add ebx,#x ; to correspond to the new bank.
and ebx,[edx].woffsmask
add ebx,[edx].wwraddr
jmp short #setline
#dosplit:
shr eax,16
cmp eax,[edx].wwrcurbank
je short #nosplitset
SetWriteBank ; set the new write bank.
#nosplitset:
mov ebx,[edx].wwraddr ; load video base pointer.
mov edi,[ebp+4] ; build a current output pointer
add edi,#x ; without the video base address.
mov ecx,#w ; load output width.
mov eax,esi ; load output pixel.
#splitloop:
mov es:[ebx+edi],al ; store pixel.
inc edi ; increment output pointer.
and edi,[edx].woffsmask ; mask pointer to end of bank.
jnz short #notsplityet ; if zero, we've crossed the split
mov eax,[edx].wwrcurbank ; point, switch to the new bank.
inc eax
SetWriteBank
mov eax,esi ; reload output pixel.
#notsplityet:
loop #splitloop
add ebx,[ebp+12] ; offset for *next* line in ytable
add ebx,#x
jmp #endloop
pj_vdrv_set_rect endp
_TEXT ends
end
| 28.50655 | 80 | 0.582414 |
5e48ffbad843b0609fc8a57fd4b1ea8dce3c5ab0 | 588 | asm | Assembly | oeis/153/A153051.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/153/A153051.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/153/A153051.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A153051: Numbers n>=9 such that 2*n-17 is not a prime.
; Submitted by Jamie Morken(s2)
; 9,13,16,19,21,22,25,26,28,31,33,34,36,37,40,41,43,46,47,49,51,52,54,55,56,58,61,64,66,67,68,69,70,71,73,75,76,79,80,81,82,85,86,88,89,91,93,94,96,97,100,101,102,103,106,109,110,111,112,113,115,116,117,118,119,121,124,126,127,130,131,132,133,135,136,138,139,141,142,145,146,148,151,152,153,154,156,157,158,159,160,161,163,166,168,169,170,171,172,173
lpb $0
trn $0,1
seq $0,309355 ; Even numbers k such that k! is divisible by k*(k+1)/2.
mov $2,$0
mov $0,$1
lpe
mov $0,$2
div $0,2
add $0,9
| 42 | 350 | 0.67517 |
25650e248645ca668b7f3a77403189160dd436ae | 361 | asm | Assembly | programs/oeis/048/A048729.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/048/A048729.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/048/A048729.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A048729: Differences between A008587 (multiples of 5) and A048725
; 0,0,0,0,0,8,0,8,0,0,16,16,0,8,16,24,0,0,0,0,32,40,32,40,0,0,16,16,32,40,48,56,0,0,0,0,0,8,0,8,64,64,80,80,64,72,80,88,0,0,0,0,32,40,32,40,64,64,80,80,96,104,112,120,0
mov $1,$0
seq $1,178891 ; a(n) = n OR 4n, where OR is bitwise OR.
mov $2,$0
mul $2,4
sub $1,$2
sub $0,$1
div $0,4
mul $0,8
| 30.083333 | 168 | 0.626039 |
0a827e2db0ca7cc3fee5f94a7f34a0bfdeaf4a91 | 1,698 | asm | Assembly | programs/hwcheck.asm | mynameispyo/InpyoOS | b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d | [
"BSD-3-Clause",
"MIT"
] | null | null | null | programs/hwcheck.asm | mynameispyo/InpyoOS | b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d | [
"BSD-3-Clause",
"MIT"
] | null | null | null | programs/hwcheck.asm | mynameispyo/InpyoOS | b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d | [
"BSD-3-Clause",
"MIT"
] | null | null | null | ; ------------------------------------------------------------------
; MichalOS Hardware checker
; ------------------------------------------------------------------
BITS 16
%INCLUDE "osdev.inc"
ORG 100h
start:
mov eax, 0 ; Get the maximum parameter for basic CPUID
cpuid
mov [basicid], eax
mov eax, 80000000h ; Get the maximum parameter for extended CPUID
cpuid
mov [extendedid], eax
main_loop:
mov al, 0
mov cx, 64
mov di, p1
rep stosb
call background
mov ax, optionlist
mov bx, optionmsg1
mov cx, optionmsg2
call os_list_dialog
call background
cmp ax, 1
je checkvendor
cmp ax, 2
je checkfeatures
cmp ax, 3
je vesa
exit:
call os_clear_screen
ret
background:
pusha
call os_clear_screen
mov ax, welcomemsg
mov bx, footermsg
mov cx, 11110000b
call os_draw_background
mov dl, 0
mov dh, 2
call os_move_cursor
popa
ret
%INCLUDE "hwcheck/basic.asm"
%INCLUDE "hwcheck/features.asm"
%INCLUDE "hwcheck/extended.asm"
%INCLUDE "hwcheck/vesa.asm"
basicid dd 0
extendedid dd 0
unit_kb db ' kB', 0
unit_mhz db ' MHz', 0
unit_hex db 'h', 0
noimp db '<Unavailable>', 0
enabled db 'Enabled', 0
disabled db 'Disabled', 0
welcomemsg db 'InpyoOS Hardware Checking Utility', 0
footermsg db 0
optionmsg1 db 'Choose an option...', 0
optionmsg2 db 0
optionlist db 'Basic system specifications,Processor features,VESA specifications', 0
buffer:
p0 dd 0
p1 dd 0
p2 dd 0
p3 dd 0
p4 dd 0
p5 dd 0
p6 dd 0
p7 dd 0
p8 dd 0
p9 dd 0
p10 dd 0
p11 dd 0
p12 dd 0
p13 dd 0
p14 dd 0
p15 dd 0
p16 dd 0
pfinal db 0
; ------------------------------------------------------------------
| 16.485437 | 86 | 0.598351 |
b2bbf23002c2940bb7334b7d244abe690b8a66ca | 880 | asm | Assembly | oeis/295/A295728.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/295/A295728.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/295/A295728.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A295728: a(n) = a(n-1) + 3*a(n-2) -2*a(n-3) - 2*a(n-4), where a(0) = 1, a(1) = -1, a(2) = 1, a(3) = 1.
; Submitted by Jon Maiga
; 1,-1,1,1,4,7,15,26,49,83,148,247,427,706,1197,1967,3292,5387,8935,14578,24025,39115,64164,104303,170515,276866,451477,732439,1192108,1932739,3141231,5090354,8264353,13387475,21717364,35170375,57018811,92320258,149601213,242183615,392309116,635017019,1028374711,1664440306,2694912169,4361449627,7060556100,11426200031,18495144739,29929733378,48441655333,78388165927,126863375692,205285096051,332215580607,537567785522,869917583857,1407619587107,2277805606420,3685693628983,5964036106315,9650266606210
mov $1,1
mov $5,-1
mov $6,-1
mov $7,1
lpb $0
mov $3,1
lpb $3
add $2,1
sub $2,$3
mod $2,2
cmp $4,0
sub $3,$4
add $7,$1
lpe
sub $0,1
add $2,1
mul $1,$2
div $4,3
mul $7,$5
sub $6,$7
add $7,$6
lpe
mov $0,$7
| 31.428571 | 501 | 0.688636 |
f77f3f536f223e0f68a2b3cd0dd02fb25a4c20ea | 6,849 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca.log_21829_734.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_734.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_734.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x8029, %rdi
nop
nop
nop
nop
nop
cmp $44507, %r8
movw $0x6162, (%rdi)
nop
nop
nop
nop
add $52971, %r15
lea addresses_D_ht+0x7279, %rsi
lea addresses_WT_ht+0x2d79, %rdi
xor %r8, %r8
mov $79, %rcx
rep movsw
nop
nop
sub %r8, %r8
lea addresses_UC_ht+0xb485, %rsi
lea addresses_WT_ht+0x4b99, %rdi
nop
nop
nop
nop
nop
sub $50259, %r14
mov $79, %rcx
rep movsl
nop
nop
nop
nop
dec %rsi
lea addresses_WC_ht+0x2b79, %rcx
nop
nop
nop
nop
nop
xor $45645, %rdi
mov $0x6162636465666768, %r15
movq %r15, %xmm5
movups %xmm5, (%rcx)
nop
nop
nop
nop
nop
xor %rcx, %rcx
lea addresses_UC_ht+0x1c579, %rsi
lea addresses_WT_ht+0x16481, %rdi
clflush (%rsi)
clflush (%rdi)
add %r14, %r14
mov $18, %rcx
rep movsl
nop
nop
nop
nop
and $2069, %r14
lea addresses_D_ht+0x19475, %r14
nop
nop
nop
nop
dec %r8
mov $0x6162636465666768, %rdi
movq %rdi, %xmm3
movups %xmm3, (%r14)
and $11699, %r8
lea addresses_WC_ht+0x921d, %rcx
nop
nop
nop
add $23749, %r8
mov (%rcx), %r13
nop
sub $33413, %r8
lea addresses_A_ht+0x195d9, %rsi
lea addresses_normal_ht+0x5779, %rdi
cmp $13072, %r15
mov $66, %rcx
rep movsq
dec %r13
lea addresses_A_ht+0x9179, %r13
nop
nop
nop
nop
dec %r8
mov (%r13), %r15
nop
nop
nop
nop
and $56322, %rsi
lea addresses_WC_ht+0x22e9, %rsi
lea addresses_WT_ht+0x182b9, %rdi
nop
nop
nop
cmp %r9, %r9
mov $28, %rcx
rep movsb
inc %r8
lea addresses_WC_ht+0x1bd79, %rcx
nop
nop
nop
nop
nop
add %r9, %r9
mov $0x6162636465666768, %rsi
movq %rsi, %xmm0
and $0xffffffffffffffc0, %rcx
vmovaps %ymm0, (%rcx)
nop
nop
nop
nop
nop
sub %rcx, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r15
pop %r14
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r9
push %rbp
push %rdx
// Faulty Load
lea addresses_D+0x1d579, %r9
nop
nop
nop
nop
sub %r10, %r10
mov (%r9), %rbp
lea oracles, %r12
and $0xff, %rbp
shlq $12, %rbp
mov (%r12,%rbp,1), %rbp
pop %rdx
pop %rbp
pop %r9
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_D'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_D'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_D_ht'}}
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}}
{'src': {'congruent': 2, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_WT_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_WT_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_D_ht'}}
{'src': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 8, 'NT': True, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 2, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 0, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_WT_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': True, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_WC_ht'}}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 35.123077 | 2,999 | 0.660534 |
9033203cb35ce251273d6ee6bc46e0727a6145ee | 260 | asm | Assembly | libsrc/_DEVELOPMENT/arch/ts2068/misc/c/sdcc_iy/tshc_cls_wc_pix.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/arch/ts2068/misc/c/sdcc_iy/tshc_cls_wc_pix.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/arch/ts2068/misc/c/sdcc_iy/tshc_cls_wc_pix.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ; void tshc_cls_wc_pix(struct r_Rect8 *r, uchar pix)
SECTION code_clib
SECTION code_arch
PUBLIC _tshc_cls_wc_pix
EXTERN asm_tshc_cls_wc_pix
_tshc_cls_wc_pix:
pop af
pop ix
pop hl
push hl
push hl
push af
jp asm_tshc_cls_wc_pix
| 12.380952 | 52 | 0.730769 |
269a618c0a474920a0bc785e428ec667ff874c3c | 733 | asm | Assembly | oeis/041/A041249.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/041/A041249.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/041/A041249.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A041249: Denominators of continued fraction convergents to sqrt(136).
; Submitted by Christian Krause
; 1,1,2,3,68,71,139,210,4759,4969,9728,14697,333062,347759,680821,1028580,23309581,24338161,47647742,71985903,1631337608,1703323511,3334661119,5037984630,114170322979,119208307609,233378630588,352586938197,7990291270922,8342878209119,16333169480041,24676047689160,559206218641561,583882266330721,1143088484972282,1726970751303003,39136445013638348,40863415764941351,79999860778579699,120863276543521050,2738991944736042799,2859855221279563849,5598847166015606648,8458702387295170497
add $0,1
mov $3,1
lpb $0
sub $0,1
add $2,$3
mov $3,$1
mov $1,$2
dif $2,3
mod $2,$1
mul $2,63
add $3,$2
mov $2,$1
lpe
mov $0,$1
| 38.578947 | 482 | 0.803547 |
f251fc267886f2efcd25f88bb2c50a991e36c22c | 3,597 | asm | Assembly | l-xfer 1300.asm | bozimmerman/Zelch128 | 3a817c6486ac88838f38ee7a8239e9a2a38ec3a2 | [
"Apache-2.0"
] | 5 | 2019-01-03T10:13:50.000Z | 2022-03-20T12:34:59.000Z | l-xfer 1300.asm | bozimmerman/Zelch128 | 3a817c6486ac88838f38ee7a8239e9a2a38ec3a2 | [
"Apache-2.0"
] | null | null | null | l-xfer 1300.asm | bozimmerman/Zelch128 | 3a817c6486ac88838f38ee7a8239e9a2a38ec3a2 | [
"Apache-2.0"
] | 1 | 2022-03-20T12:35:01.000Z | 2022-03-20T12:35:01.000Z | * = $1300
;.D L-XFER 1300
JMP BITLIST
JMP BITEDIT
LDAFAR2
TXA
LDX #$01
JSR $FF74
RTS
BITLIST
JSR $FFCC
LDY #$09
LDX #$2F
JSR LDAFAR2
CMP $FB
BCS BITBURP
STA $FB
BITBURP
INY
LDX #$2F
JSR LDAFAR2
STA $FC
INY
LDX #$2F
JSR LDAFAR2
STA $FD
LDY #$00
BITLOOP
LDX #$FC
JSR LDAFAR2
LDX #$01
STX $F5
STA $1F00,Y
JSR $FFD2
LDA #$00
STA $F5
STA $F4
INY
CPY $FB
BNE BITLOOP
RTS
BITEDIT
JSR $FFCC
JSR $2039
LDY #$09
LDX #$2F
JSR LDAFAR2
STA $FB
JSR BITLIST
LDA $FA
BNE BITSHIT
LDA #$F0
BITSHIT
STA $FA
LDY $FB
DELOP
LDA #$9D
JSR $FFD2
DEY
BNE DELOP
LDA #$00
STA $FE
GETKEY
JSR $FFE4
STA $FC
JSR $3D0C
LDA $FC
BEQ GETKEY
CMP #$22
BNE NOKOTE
LDA #$87
STA $FC
NOKOTE
CMP #$0D
BNE NOGO
GOGO
JMP OUTGOGO
NOGO
LDA $0B4D
BNE GOGO
LDA $D4
CMP #$53
BCC NOT212
CMP #$57
BCS NOT212
JMP NOTFIV
NOT212
LDA $FC
CMP #$9D
BEQ THIS1
CMP #$11
BNE NOTBK
THIS1
LDA $FE
BEQ GETKEY
DEC $FE
LDA #$9D
JSR $FFD2
JMP GETKEY
NOTBK
LDA $FC
CMP #$1D
BEQ THIS2
CMP #$91
BNE NOTUP
THIS2
LDA $FE
CMP $FB
BCC DOIT
JMP GETKEY
DOIT
INC $FE
LDA #$1D
JSR $FFD2
JMP GETKEY
NOTUP
LDA $FC
CMP #$14
BEQ DELETE
CMP #$94
BNE NOINST
JMP INSERT
NOINST
LDA $D3
CMP #$05
BNE NOTFIV
LDA $FC
ORA #$80
STA $FC
NOTFIV
LDX $FE
INX
CPX $FB
BCC NOSHIT
BEQ NOSHIT
CPX $FA
BCS JPGT
LDY $FB
LDA $FC
STA $1F00,Y
INY
STY $FB
PRINT
LDA #$01
STA $F4
LDA $FC
JSR $FFD2
LDA #$00
STA $F4
STA $F5
INC $FE
JMP GETKEY
NOSHIT
LDX $FE
CPX $FA
BCS JPGT
LDY $FE
LDA $FC
STA $1F00,Y
JMP PRINT
OUTGOGO
LDA #$0D
JSR $FFD2
LDA #$0D
JSR $FFD2
LDA #$1F
STA $FC
JMP $203C
JPGT
JMP GETKEY
DELETE
LDA $FB
BEQ JPGT
LDA $FE
BEQ JPGT
LDA $FC
JSR $FFD2
DEC $FE
DEC $FB
LDY $FE
LOOP2
INY
LDA $1F00,Y
DEY
STA $1F00,Y
INY
CPY $FB
BCC LOOP2
JMP GETKEY
INSERT
LDA $FB
CMP $FA
BCS JPGT
LDA $FC
JSR $FFD2
LDA #$00
STA $F4
STA $F5
INC $FB
LDY $FB
LOOP3
DEY
LDA $1F00,Y
INY
STA $1F00,Y
DEY
CPY $FE
BNE LOOP3
LDA #$20
STA $1F00,Y
JMP GETKEY
PRINT2
NOP
;OPEN1,8,15,"S0:ML1300L,L-XFER 1300":CLOSE1:SAVE"ML1300L",8
| 16.576037 | 68 | 0.370865 |
5ddef22c4f061a4406bb5fbb5768f0c5c153fee2 | 3,114 | asm | Assembly | hopesup/src/vwfdraw.asm | gb-archive/libbet | 5b099093a22e7241a6405244d301ca5ba08db140 | [
"Zlib"
] | 28 | 2018-10-09T16:05:19.000Z | 2022-01-24T17:25:54.000Z | hopesup/src/vwfdraw.asm | ISSOtm/libbet | d0cf93b622ddc741e6bc8aa889bf40f1bae69eee | [
"Zlib"
] | 15 | 2018-10-21T02:52:18.000Z | 2021-05-31T01:00:44.000Z | hopesup/src/vwfdraw.asm | ISSOtm/libbet | d0cf93b622ddc741e6bc8aa889bf40f1bae69eee | [
"Zlib"
] | 3 | 2018-12-19T09:20:50.000Z | 2021-09-04T12:52:03.000Z | .include "src/sms.inc"
.def lineImgBufLen 128
.def CHAR_BIT 8
.def LOG_GLYPH_HEIGHT 3
.def GLYPH_HEIGHT (1 << LOG_GLYPH_HEIGHT)
.def GLYPH_HEIGHT_MINUS_1 7
.ramsection "lineImgBuf" bank 0 slot WRAM0 align 256
lineImgBuf ds lineImgBufLen
.ends
.ramsection "vwflocals" bank 0 slot WRAM0
Lshiftermask ds 1
Ldstoffset ds 1
.ends
.bank 0 slot 0
.section "vwfPutTile" align GLYPH_HEIGHT
not_ff_shr_x: .db $00,$80,$C0,$E0,$F0,$F8,$FC,$FE
; The second half of the routine comes before the first half to ease alignment
vwfPutTile_shifter:
.repeat GLYPH_HEIGHT_MINUS_1
rrca
.endr
ld h,a ; H: all glyph bits, circularly rotated
; Load destination address
ld a,[Ldstoffset]
ld l,a
; Break it up into 2 bytes
ld a,[Lshiftermask]
and h
ld c,a ; C: right half bits
xor h ; A: left half bits
; OR in the left byte
ld h,>(lineImgBuf)
or [hl]
ld [hl],a
; OR in the left
ld a,l
add GLYPH_HEIGHT
ld l,a
ld a,[hl]
or c
ld [hl],a
ld a,l
sub GLYPH_HEIGHT-1
vwfPutTile_have_dstoffset:
ld [Ldstoffset],a
; Advance to next row
and GLYPH_HEIGHT-1
ret z
; Shift each row
vwfPutTile_rowloop:
; Read an 8x1 sliver of the glyph into A
ld a,[de]
inc e
or a
jr z,@sliver_is_blank
; Shift the sliver
ld h,>(vwfPutTile_shifter)
ld l,b
jp hl
; Fast path handling for blank slivers
@sliver_is_blank:
ld a,[Ldstoffset]
inc a
jr vwfPutTile_have_dstoffset
;;
; Draws the tile for glyph A at horizontal position B
vwfPutTile:
; Calculate address of glyph
ld h,0
ld l,a
ld de,vwfChrData - (' '*GLYPH_HEIGHT)
.repeat LOG_GLYPH_HEIGHT
add hl,hl
.endr
add hl,de
; Get the destination offset in line buffer
ld a,b
.if LOG_GLYPH_HEIGHT > 3
.repeat LOG_GLYPH_HEIGHT-3
rlca
.endr
.endif
and $100-GLYPH_HEIGHT
ld [Ldstoffset],a
; Get the mask of which bits go here and which to the next tile
xor b
ld e,a ; E = horizontal offset within tile
ld bc,not_ff_shr_x
add c
ld c,a ; BC = ff_shr_x+horizontal offset
ld a,[bc]
ld [Lshiftermask],a
; Calculate the address of the shift routine
ld a,<(vwfPutTile_shifter) + CHAR_BIT - 1
sub e
ld b,a ; B: which shifter to use
ld d,h
ld e,l
jr vwfPutTile_rowloop
;;
; Write glyphs for the 8-bit-encoded characters string at (hl) to
; X position B in the VWF buffer
; @return HL pointer to the first character not drawn
vwfPuts:
@chloop:
; Load character, stopping at control character
ld a,[hl]
inc hl
cp 32
jr c,@decret
; Save position, draw glyph, load position
jr z,@nodrawspace
ld c,a
push hl
push bc
call vwfPutTile
pop bc
pop hl
ld a,c
@nodrawspace:
; Add up the width of the glyph
ld de,vwfChrWidths-' '
add e
ld e,a
jr nc,@gwnowrap
inc d
@gwnowrap:
ld a,[de]
add b
ld b,a
cp lineImgBufLen
jr c,@chloop
ret
; Return points HL at the first undrawn character
@decret:
dec hl
ret
;;
; Clears the line image.
; @return B = 0; HL = lineImgBuf + lineImgBufLen
vwfClearBuf:
ld hl,lineImgBuf
ld b,lineImgBufLen
xor a
.loop:
ld [hl],a
inc l
djnz .loop
ret
.ends | 17.494382 | 78 | 0.682081 |
17d6eff72fd5a7c7236009db1f2631a57b67f852 | 1,450 | asm | Assembly | dv3/qpc/hd/rsect.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | dv3/qpc/hd/rsect.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | dv3/qpc/hd/rsect.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | ; DV3 QPC Hard Disk Read Sector 1993 Tony Tebby
; 2000 Marcel Kilgus
section dv3
xdef hd_rdirect ; direct read sector
xdef hd_rsint ; internal read sector
xref hd_hold ; reserve the interface
xref hd_release ; release the interface
include 'dev8_keys_err'
include 'dev8_dv3_keys'
include 'dev8_dv3_hd_keys'
include 'dev8_smsq_qpc_keys'
include 'dev8_mac_assert'
;+++
; This routine reads a sector from a hard disk for direct sector IO
;
; d0 cr cylinder + side + sector / error code
; d2 c p number of sectors (=1)
; d7 c p drive ID / number
; a1 c p address to read into
; a3 c p linkage block
; a4 c p drive definition
;
; status return 0, ERR.NC or ERR.MCHK
;
;---
hd_rdirect
;+++
; This routine reads a sector from a hard disk at an even address
;
; d0 cr cylinder + side + sector / error code
; d2 c p number of sectors = 1
; d7 c p drive ID / number
; a1 c p address to read into
; a3 c p linkage block
; a4 c p drive definition
;
; status return 0, ERR.NC or ERR.MCHK
;
;---
hd_rsint
jsr hd_hold ; hold
bne.s hdr_rts
bsr.s hdr_read
hdr_done
jmp hd_release ; release
;+++
; Read sector (basic operation)
;
; d0 cr sector to read / error code
; d2 cp number of sectors to read
; d7 c p drive ID / number
; a1 c p address to read into
; a3 c p linkage block
; a4 c p drive definition
;
; status return 0 or ERR.MCHK
;
;---
hdr_read
dc.w qpc.hrsec
tst.l d0
hdr_rts
rts
end
| 19.594595 | 67 | 0.684138 |
a23800ec2860197851109d7d10bb11466899f09b | 5,817 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_683.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_683.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_683.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xc938, %rsi
lea addresses_normal_ht+0xd23c, %rdi
nop
nop
nop
nop
nop
add $41031, %r11
mov $102, %rcx
rep movsl
nop
nop
nop
nop
sub %rbx, %rbx
lea addresses_WC_ht+0x9e34, %rsi
nop
and $35824, %r14
mov $0x6162636465666768, %rcx
movq %rcx, %xmm5
movups %xmm5, (%rsi)
add %rcx, %rcx
lea addresses_UC_ht+0xd5f4, %rsi
lea addresses_D_ht+0x196dc, %rdi
clflush (%rdi)
nop
nop
nop
nop
sub $41473, %rbx
mov $14, %rcx
rep movsq
nop
cmp %rsi, %rsi
lea addresses_WT_ht+0x7b6c, %r14
inc %r10
mov (%r14), %rbx
nop
nop
nop
mfence
lea addresses_normal_ht+0x143ac, %rdi
sub %rbx, %rbx
mov (%rdi), %cx
nop
nop
inc %rsi
lea addresses_D_ht+0x1846c, %rdi
nop
nop
add %rsi, %rsi
mov (%rdi), %r10d
nop
nop
cmp %rcx, %rcx
lea addresses_normal_ht+0x1496c, %r10
nop
nop
nop
nop
dec %rdi
mov (%r10), %r14w
nop
xor %r11, %r11
lea addresses_UC_ht+0x12579, %rdi
nop
nop
nop
cmp $993, %rsi
movb (%rdi), %r14b
nop
nop
nop
nop
sub $45493, %r14
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r14
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r9
push %rbp
push %rsi
// Faulty Load
lea addresses_normal+0x1106c, %rsi
nop
nop
dec %r9
mov (%rsi), %r12w
lea oracles, %r11
and $0xff, %r12
shlq $12, %r12
mov (%r11,%r12,1), %r12
pop %rsi
pop %rbp
pop %r9
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 0, '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.848921 | 2,999 | 0.659618 |
4be16b28be98bc6db3cbfe869ef49cf26320a45c | 747 | asm | Assembly | oeis/183/A183435.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/183/A183435.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/183/A183435.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A183435: Number of n X 2 binary arrays with every 1 having exactly one king-move neighbor equal to 1.
; Submitted by Christian Krause
; 2,7,13,28,69,149,330,755,1681,3756,8457,18937,42418,95183,213349,478204,1072285,2403885,5388986,12082011,27086537,60724492,136139073,305209713,684246754,1534012759,3439098365,7710098140,17285247541,38751739141,86877379242,194770108547,436654444353,978934069868,2194668948409,4920220795689,11030626023570,24729522612895,55441031819221,124293058526396,278652180797197,624709366600477,1400533781503258,3139851871292523,7039223119197689,15781210116503244,35379840720871025,79317943314165025
add $0,3
mov $2,1
lpb $0
sub $0,1
mov $3,$4
mov $4,$2
add $2,$3
mul $5,4
add $2,$5
mov $5,$3
lpe
mov $0,$4
| 43.941176 | 488 | 0.80589 |
ccef49ec4c5f983f71d0e87ce90310b3336a78a7 | 1,361 | asm | Assembly | assembly/asmsbs3e/chapter8/uppercaser1/uppercaser1.asm | ash1247/DocumentsWindows | 66f65b5170a1ba766cfae08b7104b63ab87331c2 | [
"MIT"
] | 5 | 2015-12-10T15:03:12.000Z | 2019-02-20T21:39:53.000Z | assembly/asmsbs3e/chapter8/uppercaser1/uppercaser1.asm | ash1247/DocumentsWindows | 66f65b5170a1ba766cfae08b7104b63ab87331c2 | [
"MIT"
] | null | null | null | assembly/asmsbs3e/chapter8/uppercaser1/uppercaser1.asm | ash1247/DocumentsWindows | 66f65b5170a1ba766cfae08b7104b63ab87331c2 | [
"MIT"
] | 9 | 2015-11-25T08:56:56.000Z | 2020-11-30T18:08:44.000Z | section .bss
Buff resb 1
section .data
section .text
global _start
_start:
nop ; This no-op keeps the debugger happy
Read: mov eax,3 ; Specify sys_read call
mov ebx,0 ; Specify File Descriptor 0: Standard Input
mov ecx,Buff ; Pass offset of the buffer to read to
mov edx,1 ; Tell sys_read to read one char from stdin
int 80h ; Call sys_read
cmp eax,0 ; Look at sys_read's return value in EAX
je Exit ; Jump If Equal to 0 (0 means EOF) to Exit
; or fall through to test for lowercase
cmp byte [Buff],61h ; Test input char against lowercase 'a'
jb Write ; If below 'a' in ASCII chart, not lowercase
cmp byte [Buff],7Ah ; Test input char against lowercase 'z'
ja Write ; If above 'z' in ASCII chart, not lowercase
; At this point, we have a lowercase character
sub byte [Buff],20h ; Subtract 20h from lowercase to give uppercase...
; ...and then write out the char to stdout
Write: mov eax,4 ; Specify sys_write call
mov ebx,1 ; Specify File Descriptor 1: Standard output
mov ecx,Buff ; Pass address of the character to write
mov edx,1 ; Pass number of chars to write
int 80h ; Call sys_write...
jmp Read ; ...then go to the beginning to get another character
Exit: mov eax,1 ; Code for Exit Syscall
mov ebx,0 ; Return a code of zero to Linux
int 80H ; Make kernel call to exit program
| 35.815789 | 72 | 0.703894 |
b174e874c4350a4d96829b1f9b0d20d3205a9aec | 2,652 | asm | Assembly | src/backend/x64/amd64/util_x64.asm | anang0g0/sidh-rs | 845316f83e46345d0f1343906e43064b02eb53e7 | [
"MIT"
] | 11 | 2018-01-03T15:52:02.000Z | 2021-11-03T16:49:37.000Z | src/backend/x64/amd64/util_x64.asm | anang0g0/sidh-rs | 845316f83e46345d0f1343906e43064b02eb53e7 | [
"MIT"
] | 3 | 2018-01-23T11:49:29.000Z | 2021-11-05T14:54:46.000Z | src/backend/x64/amd64/util_x64.asm | anang0g0/sidh-rs | 845316f83e46345d0f1343906e43064b02eb53e7 | [
"MIT"
] | 6 | 2018-01-23T09:07:20.000Z | 2022-03-22T17:04:41.000Z | ;*******************************************************************************************
; SIDH: an efficient supersingular isogeny cryptography library
;
; Abstract: utility functions in x64 assembly for P751 on Windows
;*******************************************************************************************
.const
; Under Windows we need to use RCX and RDX as registers for the first two parameters as that is
; the usual calling convention (cf. https://docs.microsoft.com/en-us/cpp/build/parameter-passing).
reg_p1 equ rcx
reg_p2 equ rdx
; Digits of 3^238 - 1
three238m1_0 equ 0EDCD718A828384F8h
three238m1_1 equ 0733B35BFD4427A14h
three238m1_2 equ 0F88229CF94D7CF38h
three238m1_3 equ 063C56C990C7C2AD6h
three238m1_4 equ 0B858A87E8F4222C7h
three238m1_5 equ 0254C9C6B525EAF5h
.code
;***********************************************************************
; Check less than 3^238
; Operation:
; Set result [reg_p2] to 0 if the input [reg_p1] scalar is <= 3^238.
;***********************************************************************
checklt238_asm proc
push r12
push r13
push r14
push r15
; Zero rax for later use.
xor rax, rax
; Set [R10,...,R15] = 3^238
mov r10, three238m1_0
mov r11, three238m1_1
mov r12, three238m1_2
mov r13, three238m1_3
mov r14, three238m1_4
mov r15, three238m1_5
; Set [R10,...,R15] = 3^238 - scalar
sub r10, [reg_p1]
sbb r11, [reg_p1+8]
sbb r12, [reg_p1+16]
sbb r13, [reg_p1+24]
sbb r14, [reg_p1+32]
sbb r15, [reg_p1+40]
; Save borrow flag indicating 3^238 - scalar < 0 as a mask in AX
sbb rax, 0
mov [reg_p2], rax
pop r15
pop r14
pop r13
pop r12
ret
checklt238_asm endp
;***********************************************************************
; Multiply by 3.
; Operation:
; Set scalar [reg_p1] = 3*scalar [reg_p1].
;***********************************************************************
mulby3_asm proc
push r12
push r13
push r14
push r15
; Set [R10,...,R15] = scalar
mov r10, [reg_p1]
mov r11, [reg_p1+8]
mov r12, [reg_p1+16]
mov r13, [reg_p1+24]
mov r14, [reg_p1+32]
mov r15, [reg_p1+40]
; Add scalar twice to compute 3*scalar
add [reg_p1], r10
adc [reg_p1+8], r11
adc [reg_p1+16], r12
adc [reg_p1+24], r13
adc [reg_p1+32], r14
adc [reg_p1+40], r15
add [reg_p1], r10
adc [reg_p1+8], r11
adc [reg_p1+16], r12
adc [reg_p1+24], r13
adc [reg_p1+32], r14
adc [reg_p1+40], r15
pop r15
pop r14
pop r13
pop r12
ret
mulby3_asm endp
end
| 25.747573 | 98 | 0.527526 |
c2aed749b085cda90a8622c1fd256dd680b62338 | 4,820 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca_notsx.log_341_1805.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_341_1805.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_341_1805.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x14fed, %rsi
lea addresses_WC_ht+0x67ed, %rdi
nop
nop
nop
and %rbx, %rbx
mov $45, %rcx
rep movsb
nop
and %r14, %r14
lea addresses_WT_ht+0x1a7ed, %rdi
and $10697, %rsi
mov (%rdi), %bx
nop
nop
nop
sub $62577, %rsi
lea addresses_WT_ht+0x1e3ed, %rbp
nop
nop
nop
nop
nop
sub %r10, %r10
movw $0x6162, (%rbp)
nop
nop
nop
nop
nop
inc %rbx
lea addresses_WT_ht+0xd8e9, %r14
nop
nop
nop
nop
nop
and $7290, %r10
mov $0x6162636465666768, %rbx
movq %rbx, %xmm2
vmovups %ymm2, (%r14)
nop
xor %r14, %r14
lea addresses_normal_ht+0x1541d, %rsi
lea addresses_WT_ht+0xc693, %rdi
nop
nop
nop
nop
nop
dec %r11
mov $122, %rcx
rep movsw
cmp $42645, %rsi
lea addresses_WT_ht+0xdded, %rsi
lea addresses_A_ht+0x12d05, %rdi
nop
nop
cmp %r10, %r10
mov $36, %rcx
rep movsb
dec %r11
lea addresses_UC_ht+0x1472d, %rdi
clflush (%rdi)
nop
nop
add %rbx, %rbx
movl $0x61626364, (%rdi)
nop
and %rcx, %rcx
lea addresses_WC_ht+0x19c8d, %rsi
lea addresses_WC_ht+0x143ed, %rdi
nop
nop
nop
nop
nop
sub $41132, %r11
mov $70, %rcx
rep movsw
nop
nop
nop
dec %r10
lea addresses_normal_ht+0x19dad, %rbx
clflush (%rbx)
cmp $22002, %rsi
mov $0x6162636465666768, %r14
movq %r14, (%rbx)
nop
nop
nop
nop
nop
xor $63103, %r11
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r14
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r9
push %rax
push %rbp
push %rdx
push %rsi
// Load
lea addresses_US+0x15a2d, %r12
sub $93, %rsi
mov (%r12), %edx
nop
nop
nop
nop
inc %r9
// Store
lea addresses_normal+0x144ed, %r11
nop
nop
and $27281, %rbp
mov $0x5152535455565758, %rdx
movq %rdx, %xmm5
vmovups %ymm5, (%r11)
nop
nop
nop
nop
dec %rdx
// Faulty Load
lea addresses_A+0x177ed, %rdx
nop
nop
nop
nop
xor $41889, %rax
mov (%rdx), %r11d
lea oracles, %rbp
and $0xff, %r11
shlq $12, %r11
mov (%rbp,%r11,1), %r11
pop %rsi
pop %rdx
pop %rbp
pop %rax
pop %r9
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 8}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WC_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 2}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_normal_ht'}, 'dst': {'same': True, 'congruent': 1, 'type': 'addresses_WT_ht'}}
{'OP': 'REPM', 'src': {'same': True, 'congruent': 9, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 5}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 4}}
{'00': 341}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 25.104167 | 1,022 | 0.657261 |
af981b26d4adaddc91a24cd31484b5f8ba9523d3 | 1,499 | asm | Assembly | programs/oeis/158/A158221.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/158/A158221.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/158/A158221.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A158221: a(n) = 169n + 1.
; 170,339,508,677,846,1015,1184,1353,1522,1691,1860,2029,2198,2367,2536,2705,2874,3043,3212,3381,3550,3719,3888,4057,4226,4395,4564,4733,4902,5071,5240,5409,5578,5747,5916,6085,6254,6423,6592,6761,6930,7099,7268,7437,7606,7775,7944,8113,8282,8451,8620,8789,8958,9127,9296,9465,9634,9803,9972,10141,10310,10479,10648,10817,10986,11155,11324,11493,11662,11831,12000,12169,12338,12507,12676,12845,13014,13183,13352,13521,13690,13859,14028,14197,14366,14535,14704,14873,15042,15211,15380,15549,15718,15887,16056,16225,16394,16563,16732,16901,17070,17239,17408,17577,17746,17915,18084,18253,18422,18591,18760,18929,19098,19267,19436,19605,19774,19943,20112,20281,20450,20619,20788,20957,21126,21295,21464,21633,21802,21971,22140,22309,22478,22647,22816,22985,23154,23323,23492,23661,23830,23999,24168,24337,24506,24675,24844,25013,25182,25351,25520,25689,25858,26027,26196,26365,26534,26703,26872,27041,27210,27379,27548,27717,27886,28055,28224,28393,28562,28731,28900,29069,29238,29407,29576,29745,29914,30083,30252,30421,30590,30759,30928,31097,31266,31435,31604,31773,31942,32111,32280,32449,32618,32787,32956,33125,33294,33463,33632,33801,33970,34139,34308,34477,34646,34815,34984,35153,35322,35491,35660,35829,35998,36167,36336,36505,36674,36843,37012,37181,37350,37519,37688,37857,38026,38195,38364,38533,38702,38871,39040,39209,39378,39547,39716,39885,40054,40223,40392,40561,40730,40899,41068,41237,41406,41575,41744,41913,42082,42251
mov $1,$0
mul $1,169
add $1,170
| 214.142857 | 1,437 | 0.813209 |
2979b3d9f68d032d405f7a0414e89620ecffcd35 | 146 | asm | Assembly | other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_djdt.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_djdt.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_djdt.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | Name: zel_djdt.asm
Type: file
Size: 88141
Last-Modified: '2016-05-13T04:25:37Z'
SHA-1: 5CC265AB61A234FDA101C6BC251F097633926952
Description: null
| 20.857143 | 47 | 0.815068 |
b9148825540e7556790901f78b8aac5bbb071a2b | 423 | asm | Assembly | programs/oeis/026/A026633.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/026/A026633.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/026/A026633.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A026633: T(n,0) + T(n,1) + ... + T(n,n), T given by A026626.
; 1,2,5,10,22,44,90,180,362,724,1450,2900,5802,11604,23210,46420,92842,185684,371370,742740,1485482,2970964,5941930,11883860,23767722,47535444,95070890,190141780,380283562,760567124,1521134250
add $0,1
mov $3,5
mov $4,4
lpb $0,1
sub $0,1
sub $4,3
mov $1,$4
mov $2,$4
sub $3,1
trn $1,$3
add $1,$3
mov $4,$3
add $3,$2
add $4,$1
lpe
sub $1,3
| 21.15 | 192 | 0.635934 |
e6adb8875da97d69d62a1c21055b8f660f44d147 | 1,057 | asm | Assembly | Examples/libraries/libexample.asm | agguro/linux-nasm | 3e72083c3db6d7118eb2aa430b73e0d20e88456b | [
"Unlicense"
] | 6 | 2020-07-19T18:34:43.000Z | 2022-03-26T10:21:09.000Z | Examples/libraries/libexample.asm | NrdyBhu1/linux-nasm | 3e72083c3db6d7118eb2aa430b73e0d20e88456b | [
"Unlicense"
] | null | null | null | Examples/libraries/libexample.asm | NrdyBhu1/linux-nasm | 3e72083c3db6d7118eb2aa430b73e0d20e88456b | [
"Unlicense"
] | 3 | 2020-07-19T18:35:10.000Z | 2021-07-25T17:34:50.000Z | ;name: libexample.asm
;
;description: test file for shared (libshared.so) and static (libstatic.a) library
;
;build:
; release:
; nasm -felf64 libexample.asm -o libexample.o
; ld ./shared/libshared.so --dynamic-linker /lib64/ld-linux-x86-64.so.2 -melf_x86_64 -o libexample libexample.o static/libstatic.a -R .
; debug:
; nasm -felf64 -Fdwarf libexample.asm -l libexample.lst -o libexample.o
; ld ./shared/libshared.so --dynamic-linker /lib64/ld-linux-x86-64.so.2 -g -melf_x86_64 -o libexample libexample.o static/libstatic.a -R .
bits 64
%include "unistd.inc"
extern getversion
extern getversionstring1
extern getversionstring2
extern printversionstring1
extern printversionstring2
extern versionstring1
extern writestring
global _start
section .bss
section .data
version: dq versionstring1
section .text
_start:
call writestring
call getversion
call getversionstring1
call getversionstring2
call printversionstring1
call printversionstring2
syscall exit,0 | 24.581395 | 144 | 0.725639 |
f454547674e48d813e6b431ffb57b06909baed80 | 384 | asm | Assembly | programs/oeis/136/A136013.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/136/A136013.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/136/A136013.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A136013: a(n) = floor(n/2) + 2*a(floor(n/2)), a(0) = 0.
; 0,0,1,1,4,4,5,5,12,12,13,13,16,16,17,17,32,32,33,33,36,36,37,37,44,44,45,45,48,48,49,49,80,80,81,81,84,84,85,85,92,92,93,93,96,96,97,97,112,112,113,113,116,116,117,117,124,124,125,125,128
mov $2,$0
mov $3,$0
lpb $3
mov $0,$2
sub $3,1
sub $0,$3
mov $4,64
gcd $4,$0
mov $5,$4
sub $5,1
add $1,$5
lpe
mov $0,$1
| 22.588235 | 189 | 0.567708 |
7a43bb43509e11716bf6799bcf84eaf52607f0e2 | 969 | asm | Assembly | LibretroBridge/vs2015/libco/coswap.asm | Moliman/BizHawk | 7d961d85bdf588072f344f220266002dee8ebc5a | [
"MIT"
] | 29 | 2017-10-25T15:16:23.000Z | 2021-02-23T04:49:18.000Z | LibretroBridge/vs2015/libco/coswap.asm | Moliman/BizHawk | 7d961d85bdf588072f344f220266002dee8ebc5a | [
"MIT"
] | 25 | 2020-05-29T05:05:41.000Z | 2021-11-18T00:57:23.000Z | LibretroBridge/vs2015/libco/coswap.asm | Moliman/BizHawk | 7d961d85bdf588072f344f220266002dee8ebc5a | [
"MIT"
] | 9 | 2017-10-29T05:28:15.000Z | 2020-03-24T02:11:01.000Z | _TEXT SEGMENT
PUBLIC co_swap
co_swap PROC
mov [rdx],rsp
mov rsp,[rcx]
pop rax
mov [rdx+ 8],rbp
mov [rdx+16],rsi
mov [rdx+24],rdi
mov [rdx+32],rbx
mov [rdx+40],r12
mov [rdx+48],r13
mov [rdx+56],r14
mov [rdx+64],r15
movaps [rdx+ 80],xmm6
movaps [rdx+ 96],xmm7
movaps [rdx+112],xmm8
add rdx,112
movaps [rdx+ 16],xmm9
movaps [rdx+ 32],xmm10
movaps [rdx+ 48],xmm11
movaps [rdx+ 64],xmm12
movaps [rdx+ 80],xmm13
movaps [rdx+ 96],xmm14
movaps [rdx+112],xmm15
mov rbp,[rcx+ 8]
mov rsi,[rcx+16]
mov rdi,[rcx+24]
mov rbx,[rcx+32]
mov r12,[rcx+40]
mov r13,[rcx+48]
mov r14,[rcx+56]
mov r15,[rcx+64]
movaps xmm6, [rcx+ 80]
movaps xmm7, [rcx+ 96]
movaps xmm8, [rcx+112]
add rcx,112
movaps xmm9, [rcx+ 16]
movaps xmm10,[rcx+ 32]
movaps xmm11,[rcx+ 48]
movaps xmm12,[rcx+ 64]
movaps xmm13,[rcx+ 80]
movaps xmm14,[rcx+ 96]
movaps xmm15,[rcx+112]
jmp rax
co_swap ENDP
_TEXT ENDS
END
| 16.706897 | 24 | 0.616099 |
09ed5535121f690bcbfe47aa7053c03fde2d7065 | 517 | asm | Assembly | oeis/253/A253191.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/253/A253191.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/253/A253191.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A253191: Decimal expansion of log(2)^2.
; Submitted by Christian Krause
; 4,8,0,4,5,3,0,1,3,9,1,8,2,0,1,4,2,4,6,6,7,1,0,2,5,2,6,3,2,6,6,6,4,9,7,1,7,3,0,5,5,2,9,5,1,5,9,4,5,4,5,5,8,6,8,6,6,8,6,4,1,3,3,6,2,3,6,6,5,3,8,2,2,5,9,8,3,4,4,7,2,1,9,9,9,4,8,2,6,3,4,4,3,9,2,6,9,9,0,9
add $0,1
mov $2,1
mov $3,$0
mul $3,5
sub $3,1
lpb $3
mul $1,$3
mov $5,$3
add $5,1
mul $2,$5
add $1,$2
div $1,$0
mul $2,2
div $2,$0
sub $3,1
lpe
pow $1,2
pow $2,2
mov $4,10
pow $4,$0
div $2,$4
div $1,$2
mov $0,$1
mod $0,10
| 17.827586 | 201 | 0.531915 |
a5a67ef7c01bcb8221949032ec55c85472b14770 | 200 | asm | Assembly | libsrc/_DEVELOPMENT/threads/mutex/c/sdcc_iy/mtx_unlock.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/threads/mutex/c/sdcc_iy/mtx_unlock.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/threads/mutex/c/sdcc_iy/mtx_unlock.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; int mtx_unlock(mtx_t *m)
SECTION code_clib
SECTION code_threads_mutex
PUBLIC _mtx_unlock
EXTERN asm_mtx_unlock
_mtx_unlock:
pop af
pop hl
push hl
push af
jp asm_mtx_unlock
| 10 | 26 | 0.73 |
0c6636eb66b0551322bf65358496a8e651b9c9b9 | 1,001 | asm | Assembly | oeis/290/A290112.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/290/A290112.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/290/A290112.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A290112: Binary representation of the diagonal from the origin to the corner of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 643", based on the 5-celled von Neumann neighborhood.
; Submitted by Jon Maiga
; 1,11,101,1011,10111,101111,1011111,10111111,101111111,1011111111,10111111111,101111111111,1011111111111,10111111111111,101111111111111,1011111111111111,10111111111111111,101111111111111111,1011111111111111111,10111111111111111111,101111111111111111111,1011111111111111111111,10111111111111111111111,101111111111111111111111,1011111111111111111111111,10111111111111111111111111,101111111111111111111111111,1011111111111111111111111111,10111111111111111111111111111,101111111111111111111111111111
lpb $0
mov $3,$0
cmp $3,0
add $0,$3
sub $0,1
mov $2,$0
mov $0,0
seq $2,267623 ; Binary representation of the middle column of the "Rule 187" elementary cellular automaton starting with a single ON (black) cell.
lpe
mov $0,$2
mul $0,10
add $0,1
| 58.882353 | 496 | 0.828172 |
21e2b1b660c202ab23ec2d0a6b841c556db0ae17 | 182 | asm | Assembly | data/pokemon/dex_entries/azurill.asm | AtmaBuster/pokeplat-gen2 | fa83b2e75575949b8f72cb2c48f7a1042e97f70f | [
"blessing"
] | 6 | 2021-06-19T06:41:19.000Z | 2022-02-15T17:12:33.000Z | data/pokemon/dex_entries/azurill.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | null | null | null | data/pokemon/dex_entries/azurill.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | 3 | 2021-01-15T18:45:40.000Z | 2021-10-16T03:35:27.000Z | db "POLKA DOT@" ; species name
db "Its tail bounces"
next "like a rubber"
next "ball. It flings"
page "that tail around"
next "to fight opponents"
next "larger than it.@"
| 18.2 | 31 | 0.67033 |
351877f66c389a5a8362856cf0efdcfe0e45fa1a | 430 | asm | Assembly | oeis/105/A105576.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/105/A105576.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/105/A105576.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A105576: a(n+3) = 2a(n+2) - 3a(n+1) + 2a(n); a(0) = 3, a(1) = 4, a(2) = 0.
; Submitted by Jon Maiga
; 3,4,0,-6,-4,10,20,2,-36,-38,36,114,44,-182,-268,98,636,442,-828,-1710,-52,3370,3476,-3262,-10212,-3686,16740,24114,-9364,-57590,-38860,76322,154044,1402,-306684,-309486,303884,922858,315092,-1530622,-2160804,900442,5222052,3421170
mov $1,3
mov $2,2
lpb $0
sub $0,1
mul $2,2
sub $1,$2
add $2,$1
lpe
add $2,1
mov $0,$2
| 28.666667 | 232 | 0.613953 |
49021c82041520236a545ed72244f39b6d01542c | 49,042 | asm | Assembly | examples/jonassen/1bit2voice/dyabit.asm | gregdionne/tasm6801 | 72576cd72353ff4500e641e6493d1bc9fe542ae7 | [
"MIT"
] | 8 | 2019-05-07T00:06:50.000Z | 2022-01-29T14:57:54.000Z | examples/jonassen/1bit2voice/dyabit.asm | gregdionne/tasm6801 | 72576cd72353ff4500e641e6493d1bc9fe542ae7 | [
"MIT"
] | null | null | null | examples/jonassen/1bit2voice/dyabit.asm | gregdionne/tasm6801 | 72576cd72353ff4500e641e6493d1bc9fe542ae7 | [
"MIT"
] | 1 | 2021-01-18T01:50:42.000Z | 2021-01-18T01:50:42.000Z | ; Play a little tune.
; Adapted from Simon's original to be
; less dependent on macro expansion
; Notes
C_ .equ 1
Cs .equ 2
D_ .equ 3
Ds .equ 4
E_ .equ 5
F_ .equ 6
Fs .equ 7
G_ .equ 8
Gs .equ 9
A_ .equ 10
As .equ 11
B_ .equ 12
; Octaves
O1 .equ 0*12
O2 .equ 1*12
O3 .equ 2*12
O4 .equ 3*12
O5 .equ 4*12
O6 .equ 5*12
O7 .equ 6*12
O8 .equ 7*12
; Rest
quiet .equ 0
zix
.byte A_+O3, A_+O3
.byte A_+O3, A_+O3
.byte A_+O3, quiet
.byte A_+O3, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte A_+O4, A_+O4
.byte A_+O4, quiet
.byte A_+O4, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte A_+O3, A_+O3
.byte A_+O3, A_+O3
.byte quiet, quiet
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte A_+O4, A_+O4
.byte A_+O4, quiet
.byte A_+O4, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte A_+O3, A_+O3
.byte A_+O3, A_+O3
.byte A_+O3, quiet
.byte A_+O3, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte A_+O4, A_+O4
.byte A_+O4, quiet
.byte A_+O4, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte A_+O3, A_+O3
.byte A_+O3, A_+O3
.byte quiet, quiet
.byte quiet, quiet
.byte A_+O3, A_+O4
.byte A_+O3, A_+O4
.byte D_+O4, D_+O5
.byte D_+O4, D_+O5
.byte G_+O4, G_+O5
.byte G_+O4, G_+O5
.byte C_+O5, C_+O6
.byte C_+O5, C_+O6
.byte A_+O3, A_+O3
.byte A_+O3, A_+O3
.byte quiet, quiet
.byte quiet, quiet
.byte D_+O4, D_+O4
.byte D_+O4, D_+O4
.byte D_+O4, quiet
.byte D_+O4, quiet
.byte A_+O3, A_+O3
.byte A_+O3, A_+O3
.byte A_+O3, quiet
.byte A_+O3, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte A_+O4, A_+O4
.byte A_+O4, quiet
.byte A_+O4, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte A_+O3, A_+O3
.byte A_+O3, A_+O3
.byte quiet, quiet
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte A_+O4, A_+O4
.byte A_+O4, quiet
.byte A_+O4, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte A_+O3, A_+O3
.byte A_+O3, A_+O3
.byte A_+O3, quiet
.byte A_+O3, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte A_+O4, A_+O4
.byte A_+O4, quiet
.byte A_+O4, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte A_+O3, A_+O3
.byte A_+O3, A_+O3
.byte quiet, quiet
.byte quiet, quiet
.byte A_+O5, A_+O4
.byte A_+O5, A_+O4
.byte G_+O5, G_+O6
.byte G_+O5, G_+O6
.byte E_+O5, E_+O6
.byte E_+O5, E_+O6
.byte D_+O5, D_+O6
.byte D_+O5, D_+O6
.byte A_+O3, A_+O3
.byte A_+O3, A_+O3
.byte quiet, quiet
.byte quiet, quiet
.byte D_+O3, D_+O3
.byte D_+O3, D_+O3
.byte D_+O3, D_+O3
.byte D_+O3, D_+O3
.byte G_+O3, G_+O3
.byte G_+O3, G_+O3
.byte G_+O3, quiet
.byte G_+O3, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O4, G_+O4
.byte G_+O4, G_+O4
.byte G_+O4, quiet
.byte G_+O4, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O3, G_+O3
.byte quiet, quiet
.byte G_+O3, G_+O3
.byte quiet, quiet
.byte G_+O4, G_+O4
.byte G_+O4, G_+O4
.byte G_+O4, quiet
.byte G_+O4, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O3, G_+O3
.byte G_+O3, G_+O3
.byte G_+O3, quiet
.byte G_+O3, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O4, G_+O4
.byte G_+O4, G_+O4
.byte G_+O4, quiet
.byte G_+O4, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O3, G_+O3
.byte G_+O3, G_+O3
.byte quiet, G_+O3
.byte quiet, G_+O3
.byte G_+O4, G_+O5
.byte G_+O4, G_+O5
.byte C_+O4, C_+O5
.byte C_+O4, C_+O5
.byte F_+O4, F_+O5
.byte F_+O4, F_+O5
.byte C_+O5, C_+O6
.byte C_+O5, C_+O6
.byte F_+O6, F_+O7
.byte F_+O6, F_+O7
.byte E_+O6, E_+O7
.byte E_+O6, E_+O7
.byte C_+O6, C_+O7
.byte C_+O6, C_+O7
.byte A_+O5, A_+O6
.byte A_+O5, A_+O6
.byte F_+O3, F_+O3
.byte F_+O3, F_+O3
.byte F_+O3, quiet
.byte F_+O3, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte F_+O4, F_+O4
.byte F_+O4, F_+O4
.byte F_+O4, quiet
.byte F_+O4, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte F_+O3, F_+O3
.byte F_+O3, F_+O3
.byte quiet, F_+O3
.byte quiet, F_+O3
.byte F_+O4, F_+O4
.byte F_+O4, F_+O4
.byte F_+O4, F_+O4
.byte F_+O4, F_+O4
.byte quiet, D_+O4
.byte quiet, D_+O4
.byte quiet, D_+O4
.byte quiet, D_+O4
.byte G_+O3, G_+O3
.byte G_+O3, G_+O3
.byte G_+O3, quiet
.byte G_+O3, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O4, G_+O4
.byte G_+O4, G_+O4
.byte G_+O4, quiet
.byte G_+O4, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte F_+O3, F_+O3
.byte F_+O3, F_+O3
.byte quiet, F_+O3
.byte quiet, F_+O3
.byte G_+O7, F_+O4
.byte quiet, F_+O4
.byte F_+O7, F_+O4
.byte quiet, F_+O4
.byte E_+O7, F_+O4
.byte quiet, G_+O7
.byte C_+O7, quiet
.byte quiet, F_+O7
.byte C_+O6, quiet
.byte quiet, E_+O7
.byte G_+O5, quiet
.byte quiet, C_+O7
.byte F_+O5, D_+O7
.byte quiet, G_+O6
.byte G_+O5, A_+O6
.byte quiet, quiet
.byte A_+O3, A_+O7
.byte A_+O3, D_+O7
.byte A_+O3, E_+O7
.byte A_+O3, A_+O6
.byte quiet, C_+O7
.byte quiet, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte A_+O4, E_+O5
.byte A_+O4, quiet
.byte A_+O4, A_+O4
.byte quiet, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte A_+O3, A_+O3
.byte A_+O3, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte As+O4, As+O4
.byte As+O4, quiet
.byte As+O4, E_+O4
.byte quiet, quiet
.byte quiet, E_+O5
.byte quiet, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte A_+O4, E_+O4
.byte A_+O4, quiet
.byte A_+O4, A_+O4
.byte quiet, quiet
.byte quiet, A_+O3
.byte quiet, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte A_+O3, A_+O4
.byte A_+O3, quiet
.byte A_+O3, E_+O4
.byte quiet, quiet
.byte quiet, E_+O5
.byte quiet, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte A_+O3, E_+O4
.byte A_+O3, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte A_+O4, A_+O3
.byte A_+O4, quiet
.byte A_+O4, E_+O4
.byte quiet, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte G_+O4, E_+O5
.byte G_+O4, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte D_+O4, D_+O7
.byte D_+O4, G_+O6
.byte D_+O4, A_+O6
.byte D_+O4, quiet
.byte A_+O3, A_+O7
.byte A_+O3, D_+O7
.byte A_+O3, E_+O7
.byte A_+O3, A_+O6
.byte quiet, C_+O7
.byte quiet, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte A_+O4, E_+O5
.byte A_+O4, quiet
.byte A_+O4, A_+O4
.byte quiet, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte A_+O3, A_+O3
.byte A_+O3, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte As+O4, As+O4
.byte As+O4, quiet
.byte As+O4, E_+O4
.byte quiet, quiet
.byte quiet, E_+O5
.byte quiet, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte A_+O4, E_+O4
.byte A_+O4, quiet
.byte A_+O4, A_+O4
.byte quiet, quiet
.byte quiet, A_+O3
.byte quiet, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte A_+O4, quiet
.byte A_+O4, E_+O4
.byte quiet, quiet
.byte quiet, E_+O5
.byte quiet, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte A_+O3, E_+O4
.byte A_+O3, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte A_+O4, A_+O3
.byte A_+O4, quiet
.byte A_+O4, E_+O4
.byte quiet, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte A_+O3, E_+O5
.byte A_+O3, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte D_+O3, D_+O5
.byte D_+O3, quiet
.byte D_+O3, A_+O4
.byte D_+O3, quiet
.byte A_+O3, A_+O7
.byte A_+O3, D_+O7
.byte A_+O3, E_+O7
.byte A_+O3, A_+O6
.byte quiet, C_+O7
.byte quiet, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte A_+O4, E_+O5
.byte A_+O4, quiet
.byte A_+O4, A_+O4
.byte quiet, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte A_+O3, A_+O3
.byte A_+O3, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte As+O4, As+O4
.byte As+O4, quiet
.byte As+O4, E_+O4
.byte quiet, quiet
.byte quiet, E_+O5
.byte quiet, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte A_+O4, E_+O4
.byte A_+O4, quiet
.byte A_+O4, A_+O4
.byte quiet, quiet
.byte quiet, A_+O3
.byte quiet, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte A_+O3, A_+O4
.byte A_+O3, quiet
.byte A_+O3, E_+O4
.byte quiet, quiet
.byte quiet, E_+O5
.byte quiet, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte A_+O3, E_+O4
.byte A_+O3, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte A_+O4, A_+O3
.byte A_+O4, quiet
.byte A_+O4, E_+O4
.byte quiet, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte G_+O4, E_+O5
.byte G_+O4, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte D_+O4, D_+O7
.byte D_+O4, G_+O6
.byte D_+O4, A_+O6
.byte D_+O4, quiet
.byte A_+O3, A_+O7
.byte A_+O3, D_+O7
.byte A_+O3, E_+O7
.byte A_+O3, A_+O6
.byte quiet, C_+O7
.byte quiet, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte A_+O4, E_+O5
.byte A_+O4, quiet
.byte A_+O4, A_+O4
.byte quiet, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte A_+O3, A_+O3
.byte A_+O3, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte As+O4, As+O4
.byte As+O4, quiet
.byte As+O4, E_+O4
.byte quiet, quiet
.byte quiet, E_+O5
.byte quiet, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte A_+O4, E_+O4
.byte A_+O4, quiet
.byte A_+O4, A_+O4
.byte quiet, quiet
.byte quiet, A_+O3
.byte quiet, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte A_+O4, quiet
.byte A_+O4, E_+O4
.byte quiet, quiet
.byte quiet, E_+O5
.byte quiet, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte A_+O3, E_+O4
.byte A_+O3, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte A_+O6, quiet
.byte A_+O6, A_+O5
.byte D_+O6, A_+O5
.byte E_+O6, D_+O5
.byte A_+O5, E_+O5
.byte D_+O6, A_+O4
.byte E_+O5, D_+O5
.byte A_+O5, E_+O4
.byte D_+O5, A_+O4
.byte E_+O5, D_+O4
.byte A_+O4, E_+O4
.byte D_+O5, A_+O3
.byte A_+O4, D_+O4
.byte D_+O4, A_+O3
.byte E_+O4, D_+O3
.byte A_+O3, E_+O3
.byte G_+O3, G_+O7
.byte G_+O3, C_+O7
.byte G_+O3, D_+O7
.byte quiet, G_+O6
.byte quiet, B_+O6
.byte quiet, quiet
.byte quiet, D_+O4
.byte quiet, quiet
.byte G_+O4, D_+O5
.byte G_+O4, quiet
.byte G_+O4, G_+O4
.byte quiet, quiet
.byte quiet, D_+O4
.byte quiet, quiet
.byte quiet, G_+O4
.byte quiet, quiet
.byte G_+O3, G_+O3
.byte quiet, quiet
.byte G_+O3, D_+O4
.byte quiet, quiet
.byte G_+O4, G_+O4
.byte G_+O4, quiet
.byte G_+O4, D_+O4
.byte quiet, quiet
.byte G_+O5, D_+O5
.byte G_+O5, quiet
.byte quiet, G_+O4
.byte quiet, quiet
.byte G_+O3, D_+O4
.byte G_+O3, quiet
.byte G_+O3, G_+O4
.byte quiet, quiet
.byte quiet, G_+O3
.byte quiet, quiet
.byte quiet, D_+O4
.byte quiet, quiet
.byte G_+O4, G_+O4
.byte G_+O4, quiet
.byte G_+O4, D_+O4
.byte quiet, quiet
.byte quiet, D_+O5
.byte quiet, quiet
.byte quiet, G_+O4
.byte quiet, quiet
.byte G_+O5, D_+O4
.byte G_+O5, quiet
.byte quiet, G_+O4
.byte quiet, quiet
.byte G_+O4, G_+O3
.byte G_+O4, quiet
.byte G_+O3, D_+O4
.byte quiet, quiet
.byte G_+O3, G_+O4
.byte quiet, quiet
.byte G_+O5, D_+O4
.byte quiet, quiet
.byte G_+O4, D_+O5
.byte quiet, quiet
.byte G_+O4, G_+O4
.byte quiet, quiet
.byte C_+O5, D_+O7
.byte quiet, G_+O6
.byte C_+O5, A_+O6
.byte quiet, quiet
.byte F_+O3, F_+O7
.byte F_+O3, A_+O6
.byte F_+O3, C_+O7
.byte quiet, F_+O6
.byte quiet, G_+O6
.byte quiet, quiet
.byte quiet, D_+O4
.byte quiet, quiet
.byte F_+O4, D_+O5
.byte F_+O4, quiet
.byte F_+O4, G_+O4
.byte quiet, quiet
.byte quiet, D_+O4
.byte quiet, quiet
.byte quiet, G_+O4
.byte quiet, quiet
.byte F_+O3, G_+O3
.byte F_+O3, quiet
.byte F_+O3, D_+O4
.byte F_+O3, quiet
.byte F_+O4, G_+O4
.byte F_+O4, quiet
.byte F_+O4, D_+O4
.byte quiet, quiet
.byte F_+O5, D_+O5
.byte F_+O5, quiet
.byte quiet, G_+O4
.byte quiet, quiet
.byte G_+O3, G_+O7
.byte G_+O3, C_+O7
.byte G_+O3, D_+O7
.byte quiet, G_+O6
.byte quiet, B_+O6
.byte quiet, quiet
.byte quiet, D_+O4
.byte quiet, quiet
.byte G_+O4, G_+O4
.byte G_+O4, quiet
.byte G_+O4, D_+O4
.byte quiet, quiet
.byte quiet, D_+O5
.byte quiet, quiet
.byte quiet, G_+O4
.byte quiet, quiet
.byte F_+O3, D_+O4
.byte F_+O3, quiet
.byte quiet, G_+O4
.byte quiet, quiet
.byte quiet, G_+O7
.byte quiet, quiet
.byte quiet, F_+O7
.byte quiet, quiet
.byte quiet, D_+O7
.byte quiet, quiet
.byte quiet, C_+O7
.byte quiet, quiet
.byte C_+O5, G_+O6
.byte B_+O4, quiet
.byte As+O4, F_+O6
.byte A_+O4, quiet
.byte Gs+O4, D_+O6
.byte G_+O4, quiet
.byte Fs+O4, C_+O6
.byte F_+O4, quiet
.byte A_+O3, A_+O7
.byte A_+O3, D_+O7
.byte A_+O3, E_+O7
.byte quiet, A_+O6
.byte quiet, C_+O7
.byte quiet, quiet
.byte A_+O3, E_+O4
.byte quiet, E_+O4
.byte A_+O4, E_+O6
.byte A_+O4, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte A_+O3, A_+O4
.byte quiet, quiet
.byte A_+O3, A_+O3
.byte A_+O3, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte As+O4, As+O4
.byte quiet, As+O4
.byte A_+O3, E_+O5
.byte A_+O3, quiet
.byte quiet, E_+O6
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte quiet, quiet
.byte A_+O3, E_+O4
.byte A_+O3, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte quiet, A_+O3
.byte quiet, quiet
.byte A_+O3, E_+O4
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte A_+O4, A_+O4
.byte quiet, E_+O4
.byte quiet, quiet
.byte quiet, E_+O6
.byte quiet, quiet
.byte A_+O3, A_+O4
.byte quiet, quiet
.byte A_+O3, E_+O4
.byte A_+O3, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte As+O3, As+O4
.byte quiet, quiet
.byte D_+O4, D_+O5
.byte quiet, quiet
.byte G_+O4, G_+O5
.byte quiet, quiet
.byte C_+O5, C_+O6
.byte quiet, quiet
.byte C_+O4, E_+O6
.byte quiet, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte A_+O3, A_+O4
.byte quiet, quiet
.byte A_+O3, A_+O7
.byte A_+O3, D_+O7
.byte quiet, E_+O7
.byte quiet, A_+O6
.byte quiet, C_+O7
.byte quiet, quiet
.byte A_+O3, E_+O4
.byte quiet, quiet
.byte A_+O4, E_+O6
.byte A_+O4, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte quiet, quiet
.byte A_+O3, A_+O3
.byte A_+O3, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte As+O4, As+O4
.byte quiet, As+O4
.byte A_+O3, E_+O4
.byte A_+O3, quiet
.byte quiet, E_+O6
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte quiet, quiet
.byte A_+O3, E_+O4
.byte A_+O3, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte quiet, A_+O3
.byte quiet, quiet
.byte A_+O3, E_+O4
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte A_+O4, A_+O4
.byte quiet, E_+O4
.byte quiet, quiet
.byte quiet, E_+O6
.byte quiet, quiet
.byte A_+O3, A_+O4
.byte quiet, quiet
.byte A_+O3, E_+O4
.byte A_+O3, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte A_+O5, A_+O3
.byte A_+O5, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte A_+O5, E_+O4
.byte quiet, quiet
.byte A_+O4, E_+O5
.byte A_+O4, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte D_+O4, D_+O5
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte A_+O4, quiet
.byte A_+O3, A_+O7
.byte A_+O3, D_+O7
.byte A_+O3, E_+O7
.byte quiet, A_+O6
.byte quiet, C_+O7
.byte quiet, quiet
.byte A_+O3, E_+O4
.byte quiet, E_+O4
.byte A_+O4, E_+O6
.byte A_+O4, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte A_+O3, A_+O4
.byte quiet, quiet
.byte A_+O3, A_+O3
.byte A_+O3, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte As+O4, As+O4
.byte quiet, As+O4
.byte A_+O3, E_+O5
.byte A_+O3, quiet
.byte quiet, E_+O6
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte quiet, quiet
.byte A_+O3, E_+O4
.byte A_+O3, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte quiet, A_+O3
.byte quiet, quiet
.byte A_+O3, E_+O4
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte A_+O4, A_+O4
.byte quiet, E_+O4
.byte quiet, quiet
.byte quiet, E_+O6
.byte quiet, quiet
.byte A_+O3, A_+O4
.byte quiet, quiet
.byte A_+O3, E_+O4
.byte A_+O3, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte As+O4, Fs+O5
.byte quiet, quiet
.byte D_+O5, As+O5
.byte quiet, quiet
.byte G_+O5, Ds+O6
.byte quiet, quiet
.byte C_+O6, Gs+O6
.byte quiet, quiet
.byte D_+O6, As+O6
.byte quiet, quiet
.byte F_+O6, Cs+O7
.byte quiet, quiet
.byte As+O6, Fs+O7
.byte quiet, quiet
.byte D_+O7, As+O7
.byte quiet, quiet
.byte A_+O3, A_+O7
.byte A_+O3, D_+O7
.byte quiet, E_+O7
.byte quiet, A_+O6
.byte quiet, C_+O7
.byte quiet, quiet
.byte A_+O3, E_+O4
.byte quiet, quiet
.byte A_+O4, E_+O6
.byte A_+O4, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte quiet, quiet
.byte A_+O3, A_+O3
.byte A_+O3, quiet
.byte quiet, E_+O4
.byte quiet, quiet
.byte As+O4, As+O4
.byte quiet, As+O4
.byte A_+O3, E_+O4
.byte A_+O3, quiet
.byte quiet, E_+O6
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte quiet, quiet
.byte A_+O3, E_+O4
.byte A_+O3, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte quiet, A_+O3
.byte quiet, quiet
.byte A_+O3, E_+O4
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte A_+O4, A_+O4
.byte quiet, E_+O4
.byte quiet, quiet
.byte quiet, E_+O6
.byte quiet, quiet
.byte A_+O3, A_+O4
.byte quiet, quiet
.byte A_+O3, E_+O4
.byte A_+O3, quiet
.byte quiet, A_+O4
.byte quiet, quiet
.byte A_+O3, quiet
.byte As+O3, quiet
.byte B_+O3, quiet
.byte C_+O4, quiet
.byte Cs+O4, quiet
.byte D_+O4, quiet
.byte Ds+O4, quiet
.byte E_+O4, quiet
.byte F_+O4, F_+O4
.byte Fs+O4, Fs+O4
.byte G_+O4, G_+O4
.byte Gs+O4, Gs+O4
.byte A_+O4, A_+O4
.byte As+O4, As+O4
.byte B_+O4, B_+O4
.byte C_+O5, C_+O5
.byte G_+O3, G_+O7
.byte G_+O3, C_+O7
.byte G_+O3, D_+O7
.byte G_+O3, G_+O6
.byte quiet, B_+O6
.byte quiet, quiet
.byte quiet, D_+O4
.byte quiet, quiet
.byte G_+O4, D_+O6
.byte G_+O4, quiet
.byte quiet, G_+O4
.byte quiet, quiet
.byte quiet, D_+O4
.byte quiet, quiet
.byte G_+O3, G_+O4
.byte quiet, quiet
.byte G_+O3, G_+O3
.byte G_+O3, quiet
.byte quiet, D_+O4
.byte quiet, quiet
.byte G_+O4, G_+O4
.byte quiet, quiet
.byte G_+O3, D_+O4
.byte G_+O3, quiet
.byte G_+O5, D_+O6
.byte G_+O5, quiet
.byte G_+O4, G_+O4
.byte quiet, quiet
.byte G_+O3, D_+O4
.byte G_+O3, quiet
.byte quiet, G_+O4
.byte quiet, quiet
.byte quiet, G_+O3
.byte quiet, quiet
.byte G_+O3, D_+O4
.byte G_+O3, quiet
.byte G_+O4, G_+O4
.byte G_+O4, quiet
.byte quiet, D_+O4
.byte quiet, quiet
.byte quiet, D_+O6
.byte quiet, quiet
.byte G_+O3, G_+O4
.byte quiet, quiet
.byte G_+O5, D_+O4
.byte G_+O5, quiet
.byte quiet, G_+O4
.byte quiet, quiet
.byte G_+O4, G_+O3
.byte G_+O4, quiet
.byte G_+O3, D_+O4
.byte quiet, quiet
.byte G_+O3, G_+O4
.byte quiet, quiet
.byte G_+O5, D_+O4
.byte quiet, quiet
.byte G_+O4, D_+O6
.byte quiet, quiet
.byte G_+O4, G_+O4
.byte quiet, quiet
.byte C_+O5, D_+O7
.byte quiet, G_+O6
.byte C_+O5, A_+O6
.byte quiet, quiet
.byte F_+O3, F_+O7
.byte F_+O3, A_+O6
.byte quiet, C_+O7
.byte quiet, F_+O6
.byte quiet, G_+O6
.byte quiet, quiet
.byte F_+O3, D_+O4
.byte quiet, quiet
.byte F_+O5, D_+O6
.byte F_+O5, quiet
.byte F_+O5, G_+O4
.byte quiet, quiet
.byte quiet, D_+O4
.byte quiet, quiet
.byte F_+O4, G_+O4
.byte F_+O4, quiet
.byte F_+O3, G_+O3
.byte F_+O3, quiet
.byte quiet, D_+O4
.byte quiet, quiet
.byte F_+O4, G_+O4
.byte F_+O4, quiet
.byte F_+O4, D_+O4
.byte F_+O4, quiet
.byte F_+O5, D_+O6
.byte F_+O5, quiet
.byte quiet, G_+O4
.byte quiet, quiet
.byte G_+O3, G_+O7
.byte G_+O3, C_+O7
.byte G_+O3, D_+O7
.byte G_+O3, G_+O6
.byte quiet, B_+O6
.byte quiet, quiet
.byte quiet, D_+O4
.byte quiet, quiet
.byte G_+O4, G_+O4
.byte G_+O4, quiet
.byte G_+O4, D_+O4
.byte G_+O4, quiet
.byte quiet, D_+O6
.byte quiet, quiet
.byte quiet, G_+O4
.byte quiet, quiet
.byte F_+O4, D_+O4
.byte F_+O4, quiet
.byte quiet, G_+O4
.byte quiet, quiet
.byte Fs+O8, Fs+O8
.byte quiet, quiet
.byte F_+O8, F_+O8
.byte quiet, quiet
.byte D_+O8, D_+O8
.byte quiet, quiet
.byte C_+O8, C_+O8
.byte quiet, quiet
.byte C_+O5, G_+O7
.byte B_+O4, quiet
.byte As+O4, F_+O7
.byte A_+O4, quiet
.byte Gs+O4, D_+O7
.byte G_+O4, quiet
.byte Fs+O4, C_+O7
.byte F_+O4, quiet
.byte D_+O3, D_+O3
.byte quiet, D_+O3
.byte C_+O4, D_+O3
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte quiet, A_+O4
.byte quiet, quiet
.byte quiet, quiet
.byte C_+O5, D_+O3
.byte quiet, D_+O3
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, F_+O5
.byte quiet, quiet
.byte C_+O5, quiet
.byte quiet, quiet
.byte D_+O3, D_+O3
.byte quiet, D_+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, D_+O3
.byte A_+O4, D_+O3
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O5, G_+O5
.byte quiet, quiet
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, D_+O3
.byte quiet, D_+O3
.byte D_+O3, quiet
.byte quiet, quiet
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, D_+O3
.byte A_+O4, D_+O3
.byte quiet, quiet
.byte quiet, quiet
.byte C_+O5, C_+O5
.byte quiet, quiet
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, D_+O3
.byte quiet, D_+O3
.byte C_+O5, quiet
.byte quiet, quiet
.byte D_+O3, D_+O3
.byte quiet, D_+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte A_+O4, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O5, D_+O3
.byte quiet, D_+O3
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, D_+O3
.byte quiet, D_+O3
.byte D_+O3, quiet
.byte quiet, quiet
.byte As+O3, As+O3
.byte quiet, As+O3
.byte F_+O5, As+O3
.byte quiet, quiet
.byte As+O4, As+O4
.byte As+O4, As+O4
.byte quiet, quiet
.byte quiet, quiet
.byte C_+O5, As+O3
.byte quiet, As+O3
.byte As+O4, quiet
.byte quiet, quiet
.byte F_+O5, F_+O5
.byte quiet, quiet
.byte C_+O5, quiet
.byte quiet, quiet
.byte As+O3, As+O3
.byte quiet, As+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte As+O4, As+O3
.byte As+O4, As+O3
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O5, G_+O5
.byte quiet, quiet
.byte As+O4, quiet
.byte quiet, quiet
.byte F_+O5, As+O3
.byte quiet, As+O3
.byte As+O3, quiet
.byte As+O3, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte F_+O5, quiet
.byte quiet, quiet
.byte As+O4, As+O3
.byte As+O4, As+O3
.byte quiet, quiet
.byte quiet, quiet
.byte C_+O5, C_+O5
.byte quiet, quiet
.byte As+O4, quiet
.byte quiet, quiet
.byte F_+O5, As+O3
.byte quiet, As+O3
.byte C_+O5, quiet
.byte quiet, quiet
.byte As+O3, As+O3
.byte quiet, As+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte As+O4, As+O4
.byte As+O4, As+O4
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O5, As+O3
.byte quiet, As+O3
.byte As+O4, quiet
.byte quiet, quiet
.byte F_+O5, As+O3
.byte quiet, As+O3
.byte As+O3, As+O3
.byte quiet, As+O3
.byte D_+O3, D_+O3
.byte quiet, D_+O3
.byte F_+O5, D_+O3
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte A_+O4, A_+O4
.byte quiet, quiet
.byte quiet, quiet
.byte C_+O5, D_+O3
.byte quiet, D_+O3
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, F_+O5
.byte quiet, quiet
.byte C_+O5, quiet
.byte quiet, quiet
.byte D_+O3, D_+O3
.byte quiet, D_+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, D_+O3
.byte A_+O4, D_+O3
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O5, G_+O5
.byte quiet, quiet
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, D_+O3
.byte quiet, D_+O3
.byte D_+O3, quiet
.byte quiet, quiet
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, D_+O3
.byte A_+O4, D_+O3
.byte quiet, quiet
.byte quiet, quiet
.byte C_+O5, C_+O5
.byte quiet, quiet
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, D_+O3
.byte quiet, D_+O3
.byte C_+O5, quiet
.byte quiet, quiet
.byte D_+O3, D_+O3
.byte quiet, D_+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte A_+O4, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O5, D_+O3
.byte quiet, D_+O3
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, D_+O3
.byte quiet, D_+O3
.byte D_+O3, quiet
.byte quiet, quiet
.byte As+O3, As+O3
.byte quiet, As+O3
.byte F_+O5, As+O3
.byte quiet, quiet
.byte As+O4, As+O4
.byte As+O4, As+O4
.byte quiet, quiet
.byte quiet, quiet
.byte C_+O5, As+O3
.byte quiet, As+O3
.byte As+O4, quiet
.byte quiet, quiet
.byte F_+O5, F_+O5
.byte quiet, quiet
.byte C_+O5, quiet
.byte quiet, quiet
.byte As+O3, As+O3
.byte quiet, As+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte As+O4, As+O3
.byte As+O4, As+O3
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O5, G_+O5
.byte quiet, quiet
.byte As+O4, quiet
.byte quiet, quiet
.byte F_+O5, As+O3
.byte quiet, As+O3
.byte As+O3, quiet
.byte As+O3, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte F_+O5, quiet
.byte quiet, quiet
.byte As+O4, As+O3
.byte As+O4, As+O3
.byte quiet, quiet
.byte quiet, quiet
.byte C_+O5, C_+O5
.byte quiet, quiet
.byte As+O4, quiet
.byte quiet, quiet
.byte F_+O5, As+O3
.byte quiet, As+O3
.byte C_+O5, quiet
.byte quiet, quiet
.byte As+O3, As+O3
.byte quiet, As+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte As+O4, As+O4
.byte As+O4, As+O4
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O5, As+O3
.byte quiet, As+O3
.byte As+O4, quiet
.byte quiet, quiet
.byte F_+O5, As+O3
.byte quiet, As+O3
.byte As+O3, As+O3
.byte quiet, As+O3
.byte G_+O3, G_+O3
.byte G_+O3, G_+O3
.byte quiet, G_+O3
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte A_+O4, A_+O4
.byte quiet, quiet
.byte quiet, quiet
.byte C_+O5, G_+O3
.byte quiet, G_+O3
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, F_+O5
.byte quiet, F_+O5
.byte C_+O5, quiet
.byte quiet, quiet
.byte G_+O3, G_+O3
.byte quiet, G_+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, G_+O3
.byte A_+O4, G_+O3
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O5, G_+O5
.byte quiet, G_+O5
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, G_+O3
.byte F_+O5, G_+O3
.byte G_+O3, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, G_+O3
.byte A_+O4, G_+O3
.byte quiet, quiet
.byte quiet, quiet
.byte C_+O5, C_+O5
.byte quiet, C_+O5
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, G_+O3
.byte F_+O5, G_+O3
.byte C_+O5, quiet
.byte quiet, quiet
.byte G_+O3, G_+O3
.byte quiet, G_+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte A_+O4, A_+O4
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O5, G_+O3
.byte G_+O5, G_+O3
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, G_+O3
.byte F_+O5, G_+O3
.byte G_+O3, quiet
.byte quiet, quiet
.byte A_+O3, A_+O3
.byte quiet, A_+O3
.byte F_+O5, A_+O3
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte A_+O4, A_+O4
.byte quiet, quiet
.byte quiet, quiet
.byte C_+O5, A_+O3
.byte quiet, A_+O3
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, F_+O5
.byte quiet, F_+O5
.byte C_+O5, quiet
.byte quiet, quiet
.byte A_+O3, A_+O3
.byte quiet, A_+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, A_+O3
.byte A_+O4, A_+O3
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O5, G_+O5
.byte quiet, G_+O5
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, A_+O3
.byte F_+O5, A_+O3
.byte A_+O3, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, A_+O3
.byte A_+O4, A_+O3
.byte quiet, quiet
.byte quiet, quiet
.byte C_+O5, C_+O5
.byte quiet, C_+O5
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, A_+O3
.byte quiet, A_+O3
.byte C_+O5, quiet
.byte quiet, quiet
.byte A_+O4, A_+O3
.byte quiet, A_+O3
.byte F_+O6, A_+O3
.byte quiet, A_+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, quiet
.byte quiet, quiet
.byte E_+O5, A_+O3
.byte quiet, A_+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte C_+O5, A_+O3
.byte quiet, A_+O3
.byte E_+O5, A_+O3
.byte quiet, A_+O3
.byte F_+O6, D_+O3
.byte quiet, D_+O3
.byte C_+O4, D_+O3
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte quiet, A_+O4
.byte F_+O6, quiet
.byte quiet, quiet
.byte C_+O5, D_+O4
.byte quiet, D_+O4
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, F_+O5
.byte quiet, F_+O5
.byte C_+O5, quiet
.byte quiet, quiet
.byte D_+O3, D_+O3
.byte quiet, D_+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, D_+O4
.byte quiet, D_+O4
.byte D_+O3, quiet
.byte quiet, quiet
.byte G_+O5, G_+O5
.byte quiet, G_+O5
.byte A_+O4, quiet
.byte quiet, quiet
.byte E_+O6, D_+O3
.byte quiet, D_+O3
.byte F_+O6, quiet
.byte quiet, quiet
.byte E_+O6, E_+O6
.byte quiet, E_+O6
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, D_+O3
.byte quiet, D_+O3
.byte E_+O6, quiet
.byte quiet, quiet
.byte C_+O5, C_+O5
.byte quiet, C_+O5
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, D_+O3
.byte quiet, D_+O3
.byte C_+O5, quiet
.byte quiet, quiet
.byte C_+O6, D_+O3
.byte quiet, D_+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte quiet, A_+O4
.byte C_+O6, quiet
.byte quiet, quiet
.byte G_+O5, D_+O3
.byte quiet, D_+O3
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, D_+O3
.byte quiet, D_+O3
.byte D_+O3, quiet
.byte quiet, quiet
.byte D_+O6, As+O3
.byte quiet, As+O3
.byte F_+O5, As+O3
.byte quiet, quiet
.byte As+O4, As+O4
.byte quiet, As+O4
.byte D_+O6, quiet
.byte Cs+O6, quiet
.byte C_+O6, As+O3
.byte B_+O5, As+O3
.byte As+O5, As+O3
.byte A_+O5, As+O3
.byte F_+O5, F_+O5
.byte quiet, F_+O5
.byte C_+O5, quiet
.byte quiet, quiet
.byte As+O3, As+O3
.byte quiet, As+O3
.byte F_+O5, As+O3
.byte quiet, As+O3
.byte As+O4, As+O3
.byte quiet, As+O3
.byte As+O3, As+O3
.byte quiet, As+O3
.byte G_+O5, G_+O5
.byte quiet, G_+O5
.byte As+O4, quiet
.byte quiet, quiet
.byte C_+O6, As+O3
.byte quiet, As+O3
.byte As+O3, As+O3
.byte quiet, As+O3
.byte F_+O5, A_+O5
.byte quiet, A_+O5
.byte F_+O5, quiet
.byte quiet, quiet
.byte As+O4, As+O3
.byte quiet, As+O3
.byte F_+O5, A_+O5
.byte quiet, A_+O5
.byte C_+O5, C_+O5
.byte quiet, C_+O5
.byte As+O4, quiet
.byte quiet, quiet
.byte F_+O5, As+O3
.byte quiet, As+O3
.byte C_+O5, quiet
.byte quiet, quiet
.byte As+O3, As+O3
.byte quiet, As+O3
.byte F_+O5, As+O3
.byte quiet, As+O3
.byte As+O4, As+O4
.byte quiet, As+O4
.byte As+O3, As+O4
.byte quiet, As+O4
.byte G_+O5, As+O3
.byte quiet, As+O3
.byte As+O4, quiet
.byte quiet, quiet
.byte F_+O5, As+O3
.byte quiet, As+O3
.byte D_+O6, As+O3
.byte E_+O6, As+O3
.byte F_+O6, D_+O3
.byte quiet, D_+O3
.byte C_+O4, D_+O3
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte quiet, A_+O4
.byte F_+O6, quiet
.byte quiet, quiet
.byte C_+O5, D_+O3
.byte quiet, D_+O3
.byte A_+O4, D_+O3
.byte quiet, D_+O3
.byte F_+O5, F_+O5
.byte quiet, F_+O5
.byte C_+O5, quiet
.byte quiet, quiet
.byte D_+O3, D_+O3
.byte quiet, D_+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, D_+O3
.byte quiet, D_+O3
.byte D_+O3, D_+O3
.byte quiet, D_+O3
.byte G_+O5, G_+O5
.byte quiet, G_+O5
.byte A_+O4, quiet
.byte quiet, quiet
.byte E_+O6, D_+O3
.byte quiet, D_+O3
.byte F_+O6, D_+O3
.byte quiet, D_+O3
.byte E_+O6, E_+O6
.byte quiet, E_+O6
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, D_+O3
.byte quiet, D_+O3
.byte E_+O6, D_+O3
.byte quiet, D_+O3
.byte C_+O5, C_+O5
.byte quiet, C_+O5
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, D_+O3
.byte quiet, D_+O3
.byte C_+O5, D_+O3
.byte quiet, D_+O3
.byte C_+O7, D_+O3
.byte quiet, D_+O3
.byte F_+O5, D_+O3
.byte quiet, D_+O3
.byte A_+O4, A_+O4
.byte quiet, A_+O4
.byte C_+O7, quiet
.byte quiet, quiet
.byte G_+O5, D_+O3
.byte quiet, D_+O3
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, D_+O3
.byte quiet, D_+O3
.byte D_+O3, D_+O3
.byte quiet, D_+O3
.byte D_+O7, D_+O7
.byte quiet, As+O3
.byte F_+O5, As+O3
.byte quiet, As+O3
.byte As+O4, As+O4
.byte quiet, As+O4
.byte D_+O7, quiet
.byte quiet, quiet
.byte C_+O5, As+O3
.byte quiet, As+O3
.byte As+O4, As+O3
.byte quiet, As+O3
.byte F_+O5, F_+O5
.byte quiet, F_+O5
.byte C_+O5, quiet
.byte quiet, quiet
.byte As+O3, As+O3
.byte quiet, As+O3
.byte F_+O5, As+O3
.byte quiet, As+O3
.byte As+O4, As+O3
.byte quiet, As+O3
.byte As+O3, As+O3
.byte quiet, As+O3
.byte G_+O5, G_+O5
.byte quiet, G_+O5
.byte As+O4, quiet
.byte quiet, quiet
.byte E_+O7, As+O3
.byte quiet, As+O3
.byte As+O3, As+O3
.byte quiet, As+O3
.byte F_+O7, F_+O7
.byte quiet, quiet
.byte F_+O5, quiet
.byte quiet, quiet
.byte As+O4, As+O3
.byte quiet, As+O3
.byte F_+O7, As+O3
.byte quiet, As+O3
.byte C_+O5, C_+O5
.byte quiet, C_+O5
.byte As+O4, quiet
.byte quiet, quiet
.byte F_+O5, As+O3
.byte quiet, As+O3
.byte C_+O5, quiet
.byte quiet, quiet
.byte E_+O7, E_+O7
.byte quiet, quiet
.byte C_+O7, C_+O7
.byte quiet, quiet
.byte A_+O6, A_+O6
.byte E_+O7, quiet
.byte F_+O6, F_+O6
.byte C_+O7, quiet
.byte E_+O6, E_+O6
.byte A_+O6, quiet
.byte C_+O6, C_+O6
.byte F_+O6, quiet
.byte A_+O5, A_+O5
.byte E_+O6, quiet
.byte C_+O6, C_+O6
.byte C_+O6, quiet
.byte D_+O6, G_+O3
.byte D_+O6, G_+O3
.byte F_+O5, G_+O3
.byte F_+O5, G_+O3
.byte A_+O4, A_+O4
.byte A_+O4, A_+O4
.byte D_+O6, quiet
.byte D_+O6, quiet
.byte C_+O5, G_+O3
.byte C_+O5, G_+O3
.byte A_+O4, G_+O3
.byte A_+O4, G_+O3
.byte F_+O5, F_+O5
.byte F_+O5, F_+O5
.byte C_+O5, quiet
.byte C_+O5, quiet
.byte G_+O3, G_+O3
.byte G_+O3, G_+O3
.byte G_+O3, quiet
.byte A_+O6, quiet
.byte As+O6, G_+O3
.byte As+O6, G_+O3
.byte G_+O3, G_+O3
.byte G_+O3, G_+O3
.byte G_+O5, G_+O5
.byte G_+O5, G_+O5
.byte As+O6, quiet
.byte As+O6, quiet
.byte F_+O5, G_+O3
.byte F_+O5, G_+O3
.byte G_+O3, G_+O3
.byte G_+O3, G_+O3
.byte A_+O6, A_+O6
.byte A_+O6, A_+O6
.byte F_+O5, quiet
.byte F_+O5, quiet
.byte A_+O4, G_+O3
.byte A_+O4, G_+O3
.byte A_+O6, G_+O3
.byte A_+O6, G_+O3
.byte C_+O5, C_+O5
.byte C_+O5, C_+O5
.byte A_+O4, quiet
.byte A_+O4, quiet
.byte F_+O5, G_+O3
.byte F_+O5, G_+O3
.byte C_+O5, G_+O3
.byte C_+O5, G_+O3
.byte F_+O6, G_+O3
.byte F_+O6, G_+O3
.byte F_+O5, G_+O3
.byte F_+O5, G_+O3
.byte A_+O4, A_+O4
.byte A_+O4, A_+O4
.byte F_+O6, quiet
.byte F_+O6, quiet
.byte G_+O5, G_+O3
.byte G_+O5, G_+O3
.byte A_+O4, quiet
.byte A_+O4, quiet
.byte F_+O5, G_+O3
.byte F_+O5, G_+O3
.byte G_+O3, G_+O3
.byte G_+O3, G_+O3
.byte G_+O6, A_+O3
.byte G_+O6, A_+O3
.byte F_+O5, A_+O3
.byte F_+O5, A_+O3
.byte A_+O4, A_+O4
.byte A_+O4, A_+O4
.byte G_+O6, quiet
.byte G_+O6, quiet
.byte C_+O5, A_+O3
.byte C_+O5, A_+O3
.byte A_+O4, A_+O3
.byte A_+O4, A_+O3
.byte F_+O5, F_+O5
.byte F_+O5, F_+O5
.byte C_+O5, quiet
.byte C_+O5, quiet
.byte A_+O3, A_+O3
.byte A_+O3, A_+O3
.byte F_+O5, A_+O3
.byte F_+O5, A_+O3
.byte A_+O4, A_+O3
.byte A_+O4, A_+O3
.byte quiet, A_+O3
.byte quiet, A_+O3
.byte G_+O5, G_+O5
.byte G_+O5, G_+O5
.byte A_+O4, quiet
.byte A_+O4, quiet
.byte A_+O3, A_+O3
.byte A_+O3, A_+O3
.byte A_+O3, A_+O3
.byte A_+O3, A_+O3
.byte C_+O6, C_+O6
.byte C_+O6, C_+O6
.byte F_+O5, quiet
.byte F_+O5, quiet
.byte A_+O4, A_+O3
.byte A_+O4, A_+O3
.byte C_+O6, A_+O3
.byte C_+O6, A_+O3
.byte C_+O5, C_+O5
.byte C_+O5, C_+O5
.byte quiet, C_+O5
.byte quiet, C_+O5
.byte F_+O5, A_+O3
.byte F_+O5, A_+O3
.byte C_+O5, quiet
.byte C_+O5, quiet
.byte A_+O3, A_+O3
.byte A_+O3, A_+O3
.byte F_+O5, A_+O3
.byte F_+O5, A_+O3
.byte F_+O4, quiet
.byte F_+O4, quiet
.byte A_+O3, quiet
.byte A_+O3, quiet
.byte E_+O4, A_+O3
.byte E_+O4, A_+O3
.byte F_+O4, quiet
.byte F_+O4, quiet
.byte A_+O6, A_+O3
.byte A_+O6, A_+O3
.byte As+O6, A_+O3
.byte As+O6, A_+O3
.byte C_+O7, G_+O3
.byte C_+O7, G_+O3
.byte C_+O4, G_+O3
.byte C_+O4, G_+O3
.byte A_+O4, A_+O4
.byte A_+O4, A_+O4
.byte C_+O7, quiet
.byte C_+O7, quiet
.byte C_+O5, G_+O3
.byte C_+O5, G_+O3
.byte A_+O4, G_+O3
.byte A_+O4, G_+O3
.byte F_+O5, F_+O5
.byte F_+O5, F_+O5
.byte C_+O5, quiet
.byte C_+O5, quiet
.byte G_+O3, G_+O3
.byte G_+O3, G_+O3
.byte F_+O5, quiet
.byte F_+O5, quiet
.byte F_+O6, G_+O3
.byte A_+O6, G_+O3
.byte As+O6, G_+O3
.byte As+O6, G_+O3
.byte G_+O5, G_+O5
.byte G_+O5, G_+O5
.byte A_+O6, quiet
.byte A_+O6, quiet
.byte quiet, G_+O3
.byte quiet, G_+O3
.byte As+O6, G_+O3
.byte As+O6, G_+O3
.byte A_+O6, A_+O6
.byte A_+O6, A_+O6
.byte F_+O5, quiet
.byte F_+O5, quiet
.byte A_+O4, G_+O3
.byte A_+O4, G_+O3
.byte A_+O6, G_+O3
.byte A_+O6, G_+O3
.byte C_+O5, C_+O5
.byte C_+O5, C_+O5
.byte A_+O4, quiet
.byte A_+O4, quiet
.byte F_+O5, G_+O3
.byte F_+O5, G_+O3
.byte C_+O5, G_+O3
.byte C_+O5, G_+O3
.byte F_+O6, G_+O3
.byte F_+O6, G_+O3
.byte F_+O5, G_+O3
.byte F_+O5, G_+O3
.byte A_+O4, A_+O4
.byte A_+O4, A_+O4
.byte F_+O6, quiet
.byte F_+O6, quiet
.byte G_+O5, G_+O3
.byte G_+O5, G_+O3
.byte A_+O4, quiet
.byte A_+O4, quiet
.byte F_+O5, G_+O3
.byte F_+O5, G_+O3
.byte E_+O6, G_+O3
.byte F_+O6, G_+O3
.byte G_+O6, A_+O3
.byte G_+O6, A_+O3
.byte F_+O5, A_+O3
.byte F_+O5, A_+O3
.byte A_+O4, A_+O4
.byte A_+O4, A_+O4
.byte G_+O6, quiet
.byte G_+O6, quiet
.byte C_+O5, A_+O3
.byte C_+O5, A_+O3
.byte A_+O4, A_+O3
.byte A_+O4, A_+O3
.byte F_+O5, F_+O5
.byte F_+O5, F_+O5
.byte C_+O5, quiet
.byte C_+O5, quiet
.byte A_+O3, A_+O3
.byte A_+O3, A_+O3
.byte F_+O5, A_+O3
.byte F_+O5, A_+O3
.byte A_+O4, A_+O3
.byte A_+O4, A_+O3
.byte quiet, A_+O3
.byte quiet, A_+O3
.byte G_+O5, G_+O5
.byte G_+O5, G_+O5
.byte A_+O4, quiet
.byte A_+O4, quiet
.byte G_+O6, A_+O3
.byte G_+O6, A_+O3
.byte A_+O6, A_+O3
.byte A_+O6, A_+O3
.byte E_+O7, E_+O7
.byte E_+O7, E_+O7
.byte F_+O5, quiet
.byte F_+O5, quiet
.byte A_+O4, A_+O3
.byte A_+O4, A_+O3
.byte E_+O7, A_+O3
.byte E_+O7, A_+O3
.byte C_+O5, C_+O5
.byte C_+O5, C_+O5
.byte quiet, C_+O5
.byte quiet, C_+O5
.byte F_+O5, A_+O3
.byte F_+O5, A_+O3
.byte C_+O5, quiet
.byte C_+O5, quiet
.byte C_+O7, A_+O3
.byte C_+O7, A_+O3
.byte F_+O5, A_+O3
.byte F_+O5, A_+O3
.byte F_+O4, quiet
.byte F_+O4, quiet
.byte C_+O7, quiet
.byte C_+O7, quiet
.byte E_+O4, A_+O3
.byte E_+O4, A_+O3
.byte F_+O4, quiet
.byte F_+O4, quiet
.byte C_+O4, A_+O3
.byte C_+O4, A_+O3
.byte E_+O4, A_+O3
.byte E_+O4, A_+O3
.byte D_+O6, D_+O3
.byte quiet, D_+O3
.byte C_+O4, D_+O3
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte quiet, A_+O4
.byte D_+O6, quiet
.byte quiet, quiet
.byte C_+O5, D_+O3
.byte quiet, D_+O3
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, F_+O5
.byte quiet, F_+O5
.byte C_+O5, quiet
.byte quiet, quiet
.byte D_+O3, D_+O3
.byte quiet, D_+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, D_+O3
.byte A_+O4, D_+O3
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O5, G_+O5
.byte quiet, G_+O5
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, D_+O3
.byte quiet, D_+O3
.byte D_+O3, quiet
.byte D_+O3, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, D_+O3
.byte A_+O4, D_+O3
.byte quiet, quiet
.byte quiet, quiet
.byte C_+O5, C_+O5
.byte quiet, C_+O5
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, D_+O3
.byte quiet, D_+O3
.byte C_+O5, quiet
.byte quiet, quiet
.byte D_+O3, D_+O3
.byte quiet, D_+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte C_+O6, A_+O4
.byte C_+O6, A_+O4
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O5, D_+O3
.byte quiet, D_+O3
.byte A_+O5, quiet
.byte quiet, quiet
.byte G_+O5, D_+O3
.byte quiet, D_+O3
.byte C_+O5, quiet
.byte quiet, quiet
.byte A_+O5, As+O3
.byte quiet, As+O3
.byte F_+O5, As+O3
.byte quiet, quiet
.byte As+O4, As+O4
.byte quiet, As+O4
.byte A_+O5, quiet
.byte quiet, quiet
.byte C_+O5, As+O3
.byte quiet, As+O3
.byte As+O4, quiet
.byte quiet, quiet
.byte F_+O5, F_+O5
.byte quiet, F_+O5
.byte C_+O5, quiet
.byte quiet, quiet
.byte As+O3, As+O3
.byte quiet, As+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte As+O4, As+O3
.byte As+O4, As+O3
.byte quiet, quiet
.byte quiet, quiet
.byte As+O5, G_+O5
.byte quiet, G_+O5
.byte A_+O5, F_+O5
.byte quiet, F_+O5
.byte G_+O5, As+O3
.byte quiet, As+O3
.byte As+O3, quiet
.byte As+O3, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte F_+O5, quiet
.byte quiet, quiet
.byte As+O4, As+O3
.byte As+O4, As+O3
.byte quiet, quiet
.byte quiet, quiet
.byte C_+O5, C_+O5
.byte quiet, C_+O5
.byte As+O4, quiet
.byte quiet, quiet
.byte F_+O5, As+O3
.byte quiet, As+O3
.byte C_+O5, quiet
.byte quiet, quiet
.byte As+O3, As+O3
.byte quiet, As+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte As+O4, As+O4
.byte As+O4, As+O4
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O5, As+O3
.byte quiet, As+O3
.byte As+O4, quiet
.byte quiet, quiet
.byte C_+O6, As+O3
.byte quiet, As+O3
.byte As+O3, As+O3
.byte quiet, As+O3
.byte D_+O6, D_+O3
.byte quiet, D_+O3
.byte C_+O4, D_+O3
.byte quiet, quiet
.byte A_+O4, A_+O4
.byte quiet, A_+O4
.byte D_+O6, quiet
.byte quiet, quiet
.byte C_+O5, D_+O3
.byte quiet, D_+O3
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, F_+O5
.byte quiet, F_+O5
.byte C_+O5, quiet
.byte quiet, quiet
.byte D_+O3, D_+O3
.byte quiet, D_+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, D_+O3
.byte A_+O4, D_+O3
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O5, G_+O5
.byte quiet, G_+O5
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, D_+O3
.byte quiet, D_+O3
.byte D_+O3, quiet
.byte D_+O3, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte F_+O5, quiet
.byte quiet, quiet
.byte A_+O4, D_+O3
.byte A_+O4, D_+O3
.byte quiet, quiet
.byte quiet, quiet
.byte C_+O5, C_+O5
.byte quiet, C_+O5
.byte A_+O4, quiet
.byte quiet, quiet
.byte F_+O5, D_+O3
.byte quiet, D_+O3
.byte C_+O5, quiet
.byte quiet, quiet
.byte D_+O3, D_+O3
.byte quiet, D_+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte C_+O6, A_+O4
.byte C_+O6, A_+O4
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O5, D_+O3
.byte quiet, D_+O3
.byte A_+O5, quiet
.byte quiet, quiet
.byte G_+O5, D_+O3
.byte quiet, D_+O3
.byte C_+O5, quiet
.byte quiet, quiet
.byte A_+O5, As+O3
.byte quiet, As+O3
.byte F_+O5, As+O3
.byte quiet, quiet
.byte As+O4, As+O4
.byte quiet, As+O4
.byte A_+O5, quiet
.byte quiet, quiet
.byte C_+O5, As+O3
.byte quiet, As+O3
.byte As+O4, quiet
.byte quiet, quiet
.byte F_+O5, F_+O5
.byte quiet, F_+O5
.byte C_+O5, quiet
.byte quiet, quiet
.byte As+O3, As+O3
.byte quiet, As+O3
.byte F_+O5, quiet
.byte quiet, quiet
.byte As+O4, As+O3
.byte As+O4, As+O3
.byte quiet, quiet
.byte quiet, quiet
.byte As+O5, G_+O5
.byte quiet, G_+O5
.byte A_+O5, F_+O5
.byte quiet, F_+O5
.byte G_+O5, As+O3
.byte quiet, As+O3
.byte As+O3, quiet
.byte As+O3, quiet
.byte quiet, quiet
.byte quiet, quiet
.byte F_+O5, quiet
.byte quiet, quiet
.byte As+O4, As+O3
.byte As+O4, As+O3
.byte quiet, quiet
.byte quiet, quiet
.byte C_+O5, C_+O5
.byte C_+O5, C_+O5
.byte As+O4, quiet
.byte As+O4, quiet
.byte F_+O5, As+O3
.byte F_+O5, As+O3
.byte C_+O5, quiet
.byte C_+O5, quiet
.byte As+O3, As+O3
.byte As+O3, As+O3
.byte F_+O5, quiet
.byte F_+O5, quiet
.byte As+O4, As+O4
.byte As+O4, As+O4
.byte quiet, quiet
.byte quiet, quiet
.byte G_+O5, As+O3
.byte G_+O5, As+O3
.byte As+O4, quiet
.byte As+O4, quiet
.byte C_+O6, As+O3
.byte C_+O6, As+O3
.byte As+O3, As+O3
.byte As+O3, As+O3
.byte D_+O5, G_+O3
.byte D_+O5, G_+O3
.byte G_+O4, G_+O4
.byte G_+O4, G_+O4
.byte Gs+O4, A_+O4
.byte D_+O5, A_+O4
.byte A_+O4, A_+O4
.byte G_+O4, A_+O4
.byte C_+O5, G_+O3
.byte Gs+O4, G_+O3
.byte F_+O5, F_+O5
.byte A_+O4, F_+O5
.byte Gs+O5, Gs+O5
.byte C_+O5, Gs+O5
.byte A_+O5, A_+O5
.byte F_+O5, A_+O5
.byte G_+O5, G_+O3
.byte Gs+O5, G_+O3
.byte D_+O6, D_+O6
.byte A_+O5, D_+O6
.byte C_+O6, G_+O3
.byte G_+O5, G_+O3
.byte A_+O5, A_+O5
.byte D_+O6, A_+O5
.byte F_+O6, F_+O6
.byte C_+O6, F_+O6
.byte C_+O6, C_+O6
.byte A_+O5, C_+O6
.byte D_+O6, G_+O3
.byte F_+O6, G_+O3
.byte A_+O5, A_+O5
.byte C_+O6, A_+O5
.byte Gs+O5, Gs+O5
.byte D_+O6, Gs+O5
.byte G_+O5, G_+O5
.byte A_+O5, G_+O5
.byte F_+O5, G_+O3
.byte Gs+O5, G_+O3
.byte D_+O5, D_+O5
.byte G_+O5, D_+O5
.byte Cs+O5, Cs+O5
.byte F_+O5, Cs+O5
.byte C_+O5, C_+O5
.byte D_+O5, C_+O5
.byte A_+O4, G_+O3
.byte Cs+O5, G_+O3
.byte G_+O4, G_+O4
.byte C_+O5, G_+O4
.byte Gs+O4, G_+O3
.byte A_+O4, G_+O3
.byte F_+O4, F_+O4
.byte G_+O4, F_+O4
.byte G_+O4, G_+O4
.byte Gs+O4, G_+O4
.byte D_+O4, D_+O4
.byte F_+O4, D_+O4
.byte F_+O4, G_+O3
.byte G_+O4, G_+O3
.byte G_+O4, G_+O4
.byte D_+O4, G_+O4
.byte Gs+O4, G_+O3
.byte F_+O4, G_+O3
.byte F_+O4, F_+O4
.byte G_+O4, F_+O4
.byte G_+O5, A_+O3
.byte Gs+O4, A_+O3
.byte D_+O5, D_+O5
.byte F_+O4, D_+O5
.byte Gs+O5, Gs+O5
.byte G_+O5, Gs+O5
.byte D_+O5, D_+O5
.byte D_+O5, D_+O5
.byte A_+O5, A_+O3
.byte Gs+O5, A_+O3
.byte D_+O5, D_+O5
.byte D_+O5, D_+O5
.byte C_+O6, C_+O6
.byte A_+O5, C_+O6
.byte D_+O5, D_+O5
.byte D_+O5, D_+O5
.byte Cs+O6, A_+O3
.byte C_+O6, A_+O3
.byte D_+O5, D_+O5
.byte D_+O5, D_+O5
.byte D_+O6, D_+O6
.byte Cs+O6, D_+O6
.byte D_+O5, D_+O5
.byte D_+O5, D_+O5
.byte F_+O6, F_+O6
.byte D_+O6, F_+O6
.byte D_+O5, D_+O5
.byte D_+O5, D_+O5
.byte G_+O6, A_+O3
.byte F_+O6, A_+O3
.byte D_+O5, D_+O5
.byte D_+O5, D_+O5
.byte Gs+O6, Gs+O6
.byte G_+O6, Gs+O6
.byte D_+O5, D_+O5
.byte D_+O5, D_+O5
.byte A_+O6, A_+O3
.byte Gs+O6, A_+O3
.byte D_+O5, D_+O5
.byte D_+O5, D_+O5
.byte C_+O7, C_+O7
.byte A_+O6, C_+O7
.byte D_+O5, D_+O5
.byte D_+O5, D_+O5
.byte Cs+O7, A_+O3
.byte C_+O7, A_+O3
.byte D_+O5, D_+O5
.byte D_+O5, D_+O5
.byte D_+O7, A_+O3
.byte Cs+O7, A_+O3
.byte A_+O6, A_+O6
.byte D_+O5, A_+O6
.byte F_+O6, F_+O6
.byte D_+O7, F_+O6
.byte D_+O6, D_+O6
.byte A_+O6, D_+O6
.byte C_+O7, A_+O3
.byte F_+O6, A_+O3
.byte A_+O6, A_+O6
.byte D_+O6, A_+O6
.byte F_+O6, F_+O6
.byte C_+O7, F_+O6
.byte C_+O6, C_+O6
.byte A_+O6, C_+O6
.byte D_+O6, G_+O3
.byte quiet, G_+O3
.byte A_+O5, A_+O5
.byte quiet, A_+O5
.byte E_+O6, E_+O6
.byte quiet, E_+O6
.byte A_+O5, A_+O5
.byte quiet, A_+O5
.byte F_+O6, G_+O3
.byte quiet, G_+O3
.byte A_+O5, A_+O5
.byte quiet, A_+O5
.byte G_+O6, G_+O6
.byte quiet, G_+O6
.byte A_+O5, A_+O5
.byte quiet, A_+O5
.byte Gs+O6, G_+O3
.byte quiet, G_+O3
.byte A_+O5, A_+O5
.byte quiet, A_+O5
.byte A_+O6, G_+O3
.byte quiet, G_+O3
.byte A_+O5, A_+O5
.byte quiet, A_+O5
.byte C_+O7, C_+O7
.byte quiet, C_+O7
.byte A_+O5, A_+O5
.byte quiet, A_+O5
.byte D_+O7, G_+O3
.byte quiet, G_+O3
.byte D_+O6, D_+O6
.byte quiet, D_+O6
.byte E_+O7, E_+O7
.byte quiet, E_+O7
.byte D_+O6, D_+O6
.byte quiet, D_+O6
.byte C_+O7, G_+O3
.byte quiet, G_+O3
.byte D_+O6, D_+O6
.byte quiet, D_+O6
.byte D_+O7, D_+O7
.byte quiet, D_+O7
.byte D_+O6, D_+O6
.byte quiet, D_+O6
.byte A_+O6, G_+O3
.byte quiet, G_+O3
.byte D_+O6, D_+O6
.byte quiet, D_+O6
.byte F_+O7, G_+O3
.byte quiet, G_+O3
.byte D_+O6, D_+O6
.byte quiet, D_+O6
.byte G_+O6, G_+O6
.byte quiet, G_+O6
.byte D_+O6, D_+O6
.byte quiet, D_+O6
.byte E_+O7, G_+O3
.byte quiet, G_+O3
.byte D_+O6, D_+O6
.byte quiet, D_+O6
.byte D_+O7, G_+O3
.byte quiet, G_+O3
.byte C_+O7, C_+O6
.byte quiet, C_+O6
.byte D_+O6, A_+O3
.byte quiet, A_+O3
.byte C_+O7, C_+O6
.byte quiet, C_+O6
.byte D_+O6, D_+O5
.byte quiet, quiet
.byte D_+O7, D_+O6
.byte quiet, quiet
.byte D_+O6, A_+O3
.byte quiet, A_+O3
.byte C_+O7, C_+O6
.byte quiet, quiet
.byte C_+O7, C_+O6
.byte quiet, quiet
.byte D_+O6, D_+O5
.byte quiet, quiet
.byte C_+O7, A_+O3
.byte quiet, A_+O3
.byte D_+O6, D_+O5
.byte quiet, quiet
.byte F_+O7, A_+O3
.byte quiet, A_+O3
.byte quiet, quiet
.byte quiet, quiet
.byte D_+O7, D_+O5
.byte C_+O7, C_+O5
.byte A_+O6, A_+O4
.byte Gs+O6, Gs+O4
.byte G_+O6, G_+O4
.byte F_+O6, F_+O4
.byte D_+O6, D_+O4
.byte Cs+O6, Cs+O4
.byte C_+O6, C_+O4
.byte A_+O5, A_+O3
.byte Gs+O5, Gs+O3
.byte G_+O5, G_+O3
.byte F_+O7, F_+O7
.byte F_+O7, F_+O7
.byte E_+O7, A_+O3
.byte A_+O6, A_+O3
.byte A_+O6, A_+O6
.byte F_+O7, A_+O6
.byte E_+O7, A_+O3
.byte E_+O7, A_+O3
.byte D_+O7, D_+O7
.byte A_+O6, quiet
.byte C_+O7, C_+O7
.byte E_+O7, quiet
.byte A_+O6, A_+O6
.byte D_+O7, A_+O6
.byte F_+O6, A_+O3
.byte C_+O7, A_+O3
.byte E_+O6, E_+O6
.byte A_+O6, E_+O6
.byte C_+O6, A_+O3
.byte F_+O6, A_+O3
.byte A_+O4, A_+O5
.byte Gs+O4, Gs+O5
.byte G_+O4, G_+O5
.byte Fs+O4, Fs+O5
.byte F_+O4, F_+O5
.byte E_+O4, E_+O5
.byte Ds+O4, Ds+O5
.byte D_+O4, D_+O5
endzix .word $ffff ;signal loop
| 19.879206 | 37 | 0.640002 |
a2e2303f6f5dd5bb02b685e06559aedc4deb9aee | 533 | asm | Assembly | oeis/096/A096309.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/096/A096309.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/096/A096309.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A096309: a(1)=1; for n > 1, a(n) is the number of levels in the "stacked" prime number factorization of n (prime number factorization of the exponents if necessary and so on ...).
; Submitted by Christian Krause
; 1,1,1,2,1,1,1,2,2,1,1,2,1,1,1,3,1,2,1,2,1,1,1,2,2,1,2,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,2,1,1,3,2,2,1,2,1,2,1,2,1,1,1,2,1,1,2,2,1,1,1,2,1,1,1,2,1,1,2,2,1,1,1,3,3,1,1,2,1,1,1,2,1,2,1,2,1,1,1,2,1,2,2,2
bin $1,$0
lpb $0
seq $0,51903 ; Maximal exponent in prime factorization of n.
sub $0,1
add $1,1
lpe
mov $0,$1
| 44.416667 | 201 | 0.621013 |
229518b2604bf6b12dd47ec8fe1613cae0b59535 | 1,271 | asm | Assembly | unordnung_auch_assembler/asm/attiny13/golf/tinyProg.asm | no-go/Blink_atmega328p | a81e41906c4a6d843a7fb87962288a0894105bd7 | [
"Unlicense"
] | null | null | null | unordnung_auch_assembler/asm/attiny13/golf/tinyProg.asm | no-go/Blink_atmega328p | a81e41906c4a6d843a7fb87962288a0894105bd7 | [
"Unlicense"
] | null | null | null | unordnung_auch_assembler/asm/attiny13/golf/tinyProg.asm | no-go/Blink_atmega328p | a81e41906c4a6d843a7fb87962288a0894105bd7 | [
"Unlicense"
] | null | null | null | .include "myTiny13.h"
Main:
;initial values ----------------------------
; .------Poti is input
; |.----- max is output
; ||.---- ok is output
; |||.----min is output
ldi A,0b00000111
out DDRB,A
ldi A,0 ; start: all on (Leds gets -)
out PORTB,A
rcall GetADC ; get Poti value -> X (low)
mov r5,XL ; save power-on value in R5
ldi C,5 ; sace tollerance in C: +/- value
MainLoop:
rcall GetADC
mov B,r5
add B,C
cp XL,B ; to high: X > r5+C
brlo step2 ; jump to step2 if lower
ldi B,0b00000011
out PORTB,B
rjmp stepEnd ; jump to end
step2:
mov B,r5
sub B,C
cp XL,B ; ok: X >= r5-C
brlo step1
ldi B,0b00000101 ; the middle LED gets 0 = Minus
out PORTB,B
rjmp stepEnd
step1: ; default: to low
ldi B,0b00000110
out PORTB,B
stepEnd:
rjmp MainLoop ; endless loop
;subroutine ---------------------------------
GetADC:
ldi A,0b00000011 ; 11 = ADC3 -> PB3
out ADMUX,A
; ADC On,ADSC,ADIF (single conversion)
ldi A,0b11010000
out ADCSRA,A
getADCloop:
sbis ADCSRA,4 ; ADIF Ready?
rjmp getADCloop
in XL,ADCL
in XH,ADCH
; devide by 4: make 10bit to 8bit
clc
ror XH ; bit0 -> Carry
ror XL ; Carry -> bit7
clc
ror XH ; bit0 -> Carry
ror XL ; Carry -> bit7
ret
| 19.553846 | 50 | 0.580645 |
47f73cfbc51e3576b013417bcff52e30de12e96b | 363 | asm | Assembly | oeis/176/A176099.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/176/A176099.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/176/A176099.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A176099: Prime(n) + A158611(n).
; Submitted by Simon Strandgaard
; 2,4,7,10,16,20,28,32,40,48,54,66,72,80,88,96,106,114,126,132,140,150,156,168,180,190,200,208,212,220,236,244,264,270,286,290,306,314,324,336,346,354,370,374,388,392,408,422,438,452,460,468,474,490,498,514
mov $2,$0
seq $0,158611 ; 0, 1 and the primes.
seq $2,40 ; The prime numbers.
add $0,$2
| 40.333333 | 206 | 0.694215 |
15fdd741cbfff6441edb0a8180c6fc37b9e7a78b | 82 | asm | Assembly | tools/yasm/tests/nasm/multisect4.asm | fasttr-org/ftr | ddba517fb53062d5dc919c94526607bb39bff4b9 | [
"BSD-3-Clause-Clear"
] | null | null | null | tools/yasm/tests/nasm/multisect4.asm | fasttr-org/ftr | ddba517fb53062d5dc919c94526607bb39bff4b9 | [
"BSD-3-Clause-Clear"
] | null | null | null | tools/yasm/tests/nasm/multisect4.asm | fasttr-org/ftr | ddba517fb53062d5dc919c94526607bb39bff4b9 | [
"BSD-3-Clause-Clear"
] | null | null | null | [section .data align=4]
db 6
[section .text]
db 5
[section .data align=16]
db 7
| 9.111111 | 24 | 0.670732 |
c6dc308922bc1be77f4886b5a1928a4d46dea814 | 4,922 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_6658_846.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_6658_846.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_6658_846.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x8280, %rsi
lea addresses_UC_ht+0x1c840, %rdi
nop
nop
nop
xor $22766, %r14
mov $46, %rcx
rep movsw
nop
nop
nop
sub %r14, %r14
lea addresses_normal_ht+0xbae0, %r8
nop
nop
sub $29373, %rbx
mov (%r8), %edx
nop
nop
nop
add %rcx, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r15
push %r8
push %rbp
push %rcx
push %rdx
// Store
lea addresses_WT+0x170e0, %r8
nop
nop
nop
nop
nop
sub %r15, %r15
mov $0x5152535455565758, %rdx
movq %rdx, %xmm4
vmovups %ymm4, (%r8)
// Exception!!!
mov (0), %r13
nop
nop
add $4943, %rcx
// Store
lea addresses_WC+0x1d260, %r13
nop
nop
nop
dec %rcx
movw $0x5152, (%r13)
nop
nop
nop
nop
nop
xor %r15, %r15
// Faulty Load
lea addresses_D+0x1b9e0, %r13
nop
nop
and %rbp, %rbp
movb (%r13), %r8b
lea oracles, %rcx
and $0xff, %r8
shlq $12, %r8
mov (%rcx,%r8,1), %r8
pop %rdx
pop %rcx
pop %rbp
pop %r8
pop %r15
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 2, 'AVXalign': True, 'NT': False, 'congruent': 7, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'36': 6658}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 42.8 | 2,999 | 0.658675 |
3fd048c0295159171dd5ea58ef822bcc9c86ff73 | 5,751 | asm | Assembly | 2021-04-03-smallest-possible-container/asm/data.asm | huutuanit/dockercomposeexample | 2c43da0c2471ef4a32984c900885b9f13eb8229f | [
"MIT"
] | 181 | 2020-08-31T21:42:40.000Z | 2022-03-23T07:25:26.000Z | 2021-04-03-smallest-possible-container/asm/data.asm | cola-boya/devops-directive | 8330e6d1237970bc8a452776f8c3837a667e3f68 | [
"MIT"
] | null | null | null | 2021-04-03-smallest-possible-container/asm/data.asm | cola-boya/devops-directive | 8330e6d1237970bc8a452776f8c3837a667e3f68 | [
"MIT"
] | 167 | 2020-09-16T02:09:58.000Z | 2022-03-31T18:09:43.000Z | ;asmttpd - Web server for Linux written in amd64 assembly.
;Copyright (C) 2014 nemasu <nemasu@gmail.com>
;
;This file is part of asmttpd.
;
;asmttpd is free software: you can redistribute it and/or modify
;it under the terms of the GNU General Public License as published by
;the Free Software Foundation, either version 2 of the License, or
;(at your option) any later version.
;
;asmttpd is distributed in the hope that it will be useful,
;but WITHOUT ANY WARRANTY; without even the implied warranty of
;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;GNU General Public License for more details.
;
;You should have received a copy of the GNU General Public License
;along with asmttpd. If not, see <http://www.gnu.org/licenses/>.
struc sockaddr_in
sin_family: resw 1
sin_port: resw 1
sin_addr: resd 1
endstruc
sa: istruc sockaddr_in
at sin_family, dw AF_INET
at sin_port, dw 0
at sin_addr, dd 0 ;INADDR_ANY
iend
request_type dq 0
request_offset dq 0
timeval: ;struct
tv_sec dq 0
tv_usec dq 0
sigaction: ;struct
sa_handler dq 0
sa_flags dq SA_RESTORER ; also dq, because padding
sa_restorer dq 0
sa_mask dq 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
;Strings
in_enter db "In Enter:",0x00
in_enter_len equ $ - in_enter
in_exit db "In Exit:", 0x00
in_exit_len equ $ - in_exit
new_line db 0x0a
start_text db "asmttpd - ",ASMTTPD_VERSION,0x0a,0x00
start_text_len equ $ - start_text
msg_bind_error db "Error - Bind() failed. Check if port is in use or you have sufficient privileges.",0x00
msg_bind_error_len equ $ - msg_bind_error
msg_error db "An error has occured, exiting",0x00
msg_error_len equ $ - msg_error
msg_help db "Usage: ./asmttpd /path/to/directory port",0x00
msg_help_len equ $ - msg_help
msg_not_a_directory dd "Error: Specified document root is not a directory",0x00
msg_not_a_directory_len equ $ - msg_not_a_directory
msg_request_log db 0x0a,"Request: ",0x00
msg_request_log_len equ $ - msg_request_log
header_range_search db "Range: ",0x00
header_range_search_len equ $ - header_range_search
find_bytes_range db "bytes=",0x00
find_bytes_range_len equ $ - find_bytes_range
filter_prev_dir db "../",0x00
filter_prev_dir_len equ $ - filter_prev_dir
crlfx2 db 0x0d,0x0a,0x0d,0x0a,0x00
crlfx2_len equ $ - crlfx2
crlf db 0x0d,0x0a,0x00
crlf_len equ $ - crlf
char_slash db "/",0x00
char_hyphen db "-",0x00
;HTTP
http_200 db "HTTP/1.1 200 OK",0x0d,0x0a,0x00
http_200_len equ $ - http_200
http_206 db "HTTP/1.1 206 Partial Content",0x0d,0x0a,0x00
http_206_len equ $ - http_206
http_404 db "HTTP/1.1 404 Not Found",0x0d,0x0a,0x00
http_404_len equ $ - http_404
http_404_text db "I'm sorry, Dave. I'm afraid I can't do that. 404 Not Found",0x00
http_404_text_len equ $ - http_404_text
http_400 db "HTTP/1.1 400 Bad Request",0x0d,0x0a,0x00
http_400_len equ $ - http_400
http_413 db "HTTP/1.1 413 Request Entity Too Large",0x0d,0x0a,0x00
http_413_len equ $ - http_413
http_416 db "HTTP/1.1 416 Requested Range Not Satisfiable",0x0d,0x0a,0x00
http_416_len equ $ - http_416
server_header db "Server: asmttpd/",ASMTTPD_VERSION,0x0d,0x0a,0x00
server_header_len equ $ - server_header
range_header db "Accept-Ranges: bytes",0x0d,0x0a,0x00
range_header_len equ $ - range_header
content_range db "Content-Range: bytes ",0x00
content_range_len equ $ - content_range ;Content-Range: bytes 200-1000/3000
content_length db "Content-Length: ",0x00 ;Content-Length: 800
content_length_len equ $ - content_length
connection_header db "Connection: close",0x0d,0x0a,0x00
connection_header_len equ $ - connection_header
content_type db "Content-Type: ",0x00
content_type_len equ $ - content_type
;Content-Type
content_type_html db "text/html",0x0d,0x0a,0x00
content_type_html_len equ $ - content_type_html
content_type_octet_stream db "application/octet-stream",0x0d,0x0a,0x00
content_type_octet_stream_len equ $ - content_type_octet_stream
content_type_xhtml db "application/xhtml+xml",0x0d,0x0a,0x00
content_type_xhtml_len equ $ - content_type_xhtml
content_type_xml db "text/xml",0x0d,0x0a,0x00
content_type_xml_len equ $ - content_type_xml
content_type_javascript db "application/javascript",0x0d,0x0a,0x00
content_type_javascript_len equ $ - content_type_javascript
content_type_css db "text/css",0x0d,0x0a,0x00
content_type_css_len equ $ - content_type_css
content_type_jpeg db "image/jpeg",0x0d,0x0a,0x00
content_type_jpeg_len equ $ - content_type_jpeg
content_type_png db "image/png",0x0d,0x0a,0x00
content_type_png_len equ $ - content_type_png
content_type_gif db "image/gif",0x0d,0x0a,0x00
content_type_gif_len equ $ - content_type_gif
content_type_svg db "image/svg+xml",0x0d,0x0a,0x00
content_type_svg_len equ $ - content_type_svg
default_document db "/index.html",0x00
default_document_len equ $ - default_document
;Content extension
extension_html db ".html",0x00
extension_htm db ".htm" ,0x00
extension_javascript db ".js", 0x00
extension_css db ".css", 0x00
extension_xhtml db ".xhtml",0x00
extension_xml db ".xml",0x00
extension_gif db ".gif",0x00
extension_jpg db ".jpg",0x00
extension_jpeg db ".jpeg",0x00
extension_png db ".png",0x00
extension_svg db ".svg",0x00
| 35.94375 | 114 | 0.700052 |
0e089ac79c15133c7ae795852877a958b7aba215 | 4,434 | asm | Assembly | Transynther/x86/_processed/NONE/_ht_st_zr_un_/i7-7700_9_0xca.log_21829_381.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_ht_st_zr_un_/i7-7700_9_0xca.log_21829_381.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_ht_st_zr_un_/i7-7700_9_0xca.log_21829_381.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1e27c, %rsi
lea addresses_WT_ht+0xfd5c, %rdi
nop
sub $19232, %rbx
mov $84, %rcx
rep movsw
nop
nop
cmp %r11, %r11
lea addresses_D_ht+0x11afc, %r9
cmp $38721, %rax
mov $0x6162636465666768, %rsi
movq %rsi, (%r9)
sub %r11, %r11
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %rbx
push %rdi
push %rsi
// Faulty Load
lea addresses_WT+0x11a7c, %rdi
nop
add $42707, %r10
mov (%rdi), %r12
lea oracles, %r10
and $0xff, %r12
shlq $12, %r12
mov (%r10,%r12,1), %r12
pop %rsi
pop %rdi
pop %rbx
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': True, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 10, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_WT_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': True, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_D_ht'}}
{'48': 3700, '00': 8825, 'ff': 6308, 'be': 41, '53': 674, '02': 5, '70': 69, '3c': 58, '80': 1, 'b0': 2148}
48 00 b0 48 00 00 ff 00 ff ff b0 ff 48 48 00 b0 48 b0 00 ff 48 b0 00 53 00 ff 48 b0 ff 48 00 53 00 ff 53 b0 ff 00 ff ff ff 00 3c 00 ff 00 ff 00 48 00 ff b0 48 00 00 48 b0 00 ff 00 ff 53 00 00 ff 00 00 00 00 00 00 48 ff 00 00 ff 00 00 00 b0 48 00 ff 00 ff ff 48 b0 48 ff 00 b0 ff 00 00 b0 ff 3c 00 00 48 ff b0 00 48 48 ff 48 b0 00 00 ff ff 48 b0 48 ff 00 48 48 ff b0 00 ff 00 00 00 ff 00 00 b0 ff 48 b0 00 53 00 00 ff b0 00 00 b0 00 ff 48 ff 48 ff 00 b0 00 ff ff ff 00 00 00 00 00 b0 00 00 ff b0 00 ff 48 48 ff 00 48 00 ff b0 00 b0 48 ff 48 00 00 53 00 53 70 ff ff 00 ff 48 ff ff 00 48 00 ff ff ff ff 00 00 00 00 00 b0 00 b0 00 00 00 00 00 b0 ff 00 48 00 48 ff ff 00 ff 48 ff ff ff ff 00 b0 ff ff b0 00 00 00 ff b0 00 ff 00 ff ff b0 ff 00 00 ff 00 48 00 48 ff 48 00 00 48 48 00 48 b0 00 ff 53 00 ff ff ff 48 00 48 48 b0 ff 00 48 ff ff ff 00 48 ff 00 ff 00 b0 00 00 48 ff 48 48 00 48 b0 00 b0 00 00 ff b0 ff 48 53 00 00 b0 00 ff ff 00 b0 ff b0 48 00 48 48 ff 48 48 48 ff ff ff ff ff 00 00 ff 00 ff ff b0 00 ff 00 00 48 ff 00 b0 00 ff ff 48 b0 48 00 00 ff 00 00 00 00 70 b0 48 00 00 48 b0 00 b0 ff 48 00 ff 53 00 ff ff 48 48 ff ff 48 b0 00 00 ff 48 00 48 b0 ff ff 00 48 ff ff 00 48 00 ff 00 48 ff 00 00 53 00 00 00 00 53 00 b0 48 ff 00 ff b0 00 b0 ff ff 00 ff 48 ff 00 48 48 48 ff 48 be 48 48 00 00 ff 00 00 ff 00 48 00 b0 00 00 00 00 00 ff 48 00 00 ff 48 ff ff 00 ff 48 b0 70 ff ff 48 00 b0 00 53 00 ff ff 00 00 48 b0 00 ff ff 00 00 48 00 53 48 b0 ff 00 00 ff b0 48 00 48 48 00 48 b0 48 00 48 00 00 48 00 00 b0 00 00 ff ff b0 ff 3c 00 53 ff 00 00 00 b0 53 ff 00 00 00 00 ff 48 ff 48 00 ff 00 ff 00 00 00 00 ff ff 00 ff 00 ff ff 00 00 b0 00 00 70 00 00 00 00 48 b0 00 00 ff ff 48 ff ff 00 00 b0 00 00 00 ff 00 00 48 00 ff 00 00 00 48 48 b0 48 ff ff 00 b0 ff 00 ff 00 00 48 ff 00 ff b0 48 48 48 ff ff 48 b0 00 b0 00 ff ff ff 00 ff 00 00 48 00 ff 00 00 00 00 b0 00 ff 00 00 00 00 ff 00 00 00 00 00 00 ff 00 48 b0 00 ff 00 00 ff 48 00 53 00 00 48 ff ff 00 48 00 53 48 48 ff ff 48 48 ff ff 00 b0 00 b0 00 00 ff 48 ff b0 00 b0 00 ff ff 00 b0 00 ff 00 ff 00 ff 00 00 48 b0 00 00 00 48 b0 00 00 00 ff b0 ff 00 00 00 00 00 48 48 b0 ff 48 00 00 ff ff b0 00 48 00 ff 48 ff b0 00 48 ff b0 ff 00 b0 48 ff ff 48 53 48 b0 48 48 48 00 ff ff 00 ff ff b0 00 b0 48 00 b0 00 b0 ff 00 00 48 00 b0 48 00 00 00 53 ff b0 48 ff 00 ff ff 00 00 ff 00 00 00 b0 00 ff ff ff 00 b0 ff 48 00 ff 00 00 ff ff 00 00 00 00 00 ff ff ff ff 00 00 00 00 00 b0 ff 48 00 00 ff 00 00 00 00 48 00 ff ff ff 00 ff 48 00 00 48 00 ff 00 53 48 00 48 00 48 b0 00 00 ff b0 00 b0 00 00 00 48 48 00 48 48 be ff 00 b0 00 b0 48 ff ff 48 ff 00 48 00 48 00 00 ff ff ff ff 48 00 00 48 ff 00 53 00 b0 48 48 48 00 00 00 ff ff 00 ff 00 b0 00 ff 00 ff 48 00 48 53 02 00 00 00 00 ff 00 53 00 48 b0 48 48 00 ff 00 48 ff 48 ff 00 00 53 00 ff 48 00 b0 ff 48 48 ff 48 00 00 48 48 00 00 ff b0 ff 48 00 00 48 ff 48 ff 53 00 00 00 00 00 ff ff 48 48 ff 00 00 53 ff b0 48 b0 ff 48 00 48 00 00 48 00 00 48 00 00 70 00 ff 00 53 48 00 ff 53 00 b0 00 53 00 00 00 ff 53 00 00 ff
*/
| 62.450704 | 2,999 | 0.657645 |
481e5b1cb2204b78a6f3aeba3faf3f698d69fe96 | 453 | asm | Assembly | SCS3211/Excercises/Take Home/question1.asm | UdeshUK/UCSC-CS | b7e8776218e709d4e0cabdfd04a5994a91bb4cf2 | [
"Beerware"
] | 6 | 2018-06-13T16:11:41.000Z | 2019-04-27T10:30:35.000Z | SCS3211/Excercises/Take Home/question1.asm | Useful-Ad-1249/UCSC-CS | b7e8776218e709d4e0cabdfd04a5994a91bb4cf2 | [
"Beerware"
] | null | null | null | SCS3211/Excercises/Take Home/question1.asm | Useful-Ad-1249/UCSC-CS | b7e8776218e709d4e0cabdfd04a5994a91bb4cf2 | [
"Beerware"
] | null | null | null | .text
la $a0,hint
li $v0,4
syscall
li $v0,5
syscall
addiu $t0,$v0,0
li $v0,5
syscall
add $t2,$t0,$v0
sub $t3,$t0,$v0
# Print summ
la $a0,sum_prefix
li $v0,4
syscall
addiu $a0,$t2,0
li $v0,1
syscall
# Print the difference
la $a0,diff_prefix
li $v0,4
syscall
addiu $a0,$t3,0
li $v0,1
syscall
.data
hint: .asciiz "Enter two numbers:\n"
sum_prefix: .asciiz "Sum is = "
diff_prefix: .asciiz "\nDifference is = " | 11.921053 | 41 | 0.620309 |
6c549dabad6ddc861fb2f8d7bae4e36c92789cb2 | 10,322 | asm | Assembly | Universe/ApplyMyRollAndPitch.asm | ped7g/EliteNext | 6e930f9b9924b295d7281ee6acb879600d7e597f | [
"Unlicense"
] | 9 | 2021-09-29T22:08:15.000Z | 2022-03-23T05:35:43.000Z | Universe/ApplyMyRollAndPitch.asm | ped7g/EliteNext | 6e930f9b9924b295d7281ee6acb879600d7e597f | [
"Unlicense"
] | 1 | 2022-01-21T12:35:42.000Z | 2022-01-21T17:47:24.000Z | Universe/ApplyMyRollAndPitch.asm | ped7g/EliteNext | 6e930f9b9924b295d7281ee6acb879600d7e597f | [
"Unlicense"
] | 1 | 2022-01-15T10:13:49.000Z | 2022-01-15T10:13:49.000Z |
; Full version
; 1. K2 = y - alpha * x
; 2. z = z + beta * K2
; 3. y = K2 - beta * z
; 4. x = x + alpha * y
ApplyMyRollToNosev: ApplyMyRollToVector ALPHA, UBnkrotmatNosevX, UBnkrotmatNosevY
ret
ApplyMyRollToSidev: ApplyMyRollToVector ALPHA, UBnkrotmatSidevX, UBnkrotmatSidevY
ret
ApplyMyRollToRoofv: ApplyMyRollToVector ALPHA, UBnkrotmatRoofvX, UBnkrotmatRoofvY
ret
ApplyMyPitchToNosev: ApplyMyRollToVector BETA, UBnkrotmatNosevZ, UBnkrotmatNosevY
ret
ApplyMyPitchToSidev: ApplyMyRollToVector BETA, UBnkrotmatSidevZ, UBnkrotmatSidevY
ret
ApplyMyPitchToRoofv: ApplyMyRollToVector BETA, UBnkrotmatRoofvZ, UBnkrotmatRoofvY
ret
APPequPosPlusAPP: MACRO Position, PositionSign
push bc
ld c,a ; save original value of a into c
ld a,(PositionSign)
ld b,a
ld a,c
xor b ; a = a xor x postition sign
jp m,.MV50 ; if the sign is negative then A and X are both opposite signs
; Signs are the same to we just add and take which ever sign
ld de,(varPp1) ; Note we take p+2,p+1 we we did a previous 24 bit mulitple
ld hl,(Position)
add hl,de
ld (varPp1),hl ; now we have P1 and p2 with lo hi and
ld a,c ; and a = original sign as they were both the same
pop bc
ret
; Signs are opposite so we subtract
.MV50: ld de,(varPp1)
ld hl,(Position)
or a
sbc hl,de
jr c,.MV51 ; if the result was negative then negate result
ld a,c ; get back the original sign
ld (varPp1),hl ; and save result to P[2][1]
xor SignOnly8Bit ; flip sign and exit A = flip of a
pop bc
ret
.MV51: NegHL
ld (varPp1),hl
ld a,c ; the original sign will still be good
pop bc
ret
ENDM
APPequXPosPlusAPP: APPequPosPlusAPP UBnKxlo, UBnKxsgn
APPequYPosPlusAPP: APPequPosPlusAPP UBnKylo, UBnKysgn
APPequZPosPlusAPP: APPequPosPlusAPP UBnKzlo, UBnKzsgn
; rollWork holds Alpha intermidate results
rollWork DS 3
rollWorkp1 equ rollWork
rollWorkp2 equ rollWork+1
rollWorkp3 equ rollWork+2
;----------------------------------------------------------------------------------------------------------------------------------
; based on MVEIT part 4 of 9
ApplyMyRollAndPitch: ld a,(ALP1) ; get roll magnitude
ld hl,BET1 ; and pitch
or (hl)
jp z,.NoRotation ; if both zero then don't compute
;break
; P[210] = x * alph (we use P[2]P[1] later as result/256
ld e,a ; e = roll magnitude
ld hl,(UBnKxlo) ; hl = ship x pos
call AHLequHLmulE ; MULTU2-2 AHL = UbnkXlo * Alp1 both unsigned
ld (varPhi2),a ; set P[2] to high byte to help with ./256
ld (varP),hl ; P (2 1 0) = UbnkXlo * Alph1
; A = Flip sign
ld a,(ALP2FLIP) ; flip the current roll angle alpha and xor with x sign
ld hl,UBnKxsgn ; and xor with x pos sign
xor (hl) ; so now (A P+2 P+1) = - (x_sign x_hi x_lo) * alpha / 256
; AP[2]P[1] =Y + AP[2]P[1] (i.e. Previous APP/256)
call APPequYPosPlusAPP ; MVT6 calculate APP = y - (x * alpha / 256)
; K2 = AP[2][1] K2(3 2 1) = (A P+2 P+1) = y - x * alpha / 256
ld (rollWorkp3),a ; k2+3 = sign of result
ld (rollWorkp1),hl ; k2+1,2 = result
; P[210] = K2[2 1] * Beta = (A ~P) * X
ld a,(BET1) ; a = magnitude of pitch
ld e,a
call AHLequHLmulE ; MLTU2-2 AHL = (P+2 P+1) * BET1 or by now ((UbnkXlo * Alph1)/256 * Bet1)
ld (varPp2),a ; save highest byte in P2
ld (varP),hl
; Fetch sign of previosu cal and xor with BETA inverted
ld a,(rollWorkp3)
ld e,a
ld a,(BET2)
xor e ; so we get the sign of K3 and xor with pitch sign
; Z = P[210] =Z + APP
call APPequZPosPlusAPP ; MVT6
ld (UBnKzsgn),a ; save result back into z
ld (UBnKzlo),hl
; A[P1]P[0] = z * Beta
ld a,(BET1) ; get pitch back again for mulitply in original it was kept in Q so no fetch needed
ld e,a
call AHLequHLmulE ; MULTU2 P2 P1 was already in hl (A P+1 P) = (z_hi z_lo) * beta
ld (varPp2),a ; P2 = high byte of result
ld (varP),hl ; P (2 1 0) = UbnkXlo & Alph1
; A xor BET2,Zsign
ld a,(rollWorkp3) ; get K3 (sign of y) and store it in y pos
ld (UBnKysgn),a ; save result back into y
ld e,a ; a = y sign Xor pitch rate sign
ld a,(BET2) ;
xor e ;
ld e,a ; now xor it with z sign too
ld a,(UBnKzsgn) ;
xor e ; so now a = sign of y * beta * sign y * sign z
jp p,.MV43 ; if result is pve beta * z and y have differetn signs
ld hl,(varPp1)
ld de,(rollWorkp1)
or a
add hl,de
jp .MV44
.MV43: ld hl,(rollWorkp1)
ld de,(varPp1)
or a
sbc hl,de ; (y_hi y_lo) = K2(2 1) - P(2 1)
jr nc,.MV44 ; if there was no over flow carry on
NegHL
ld a,(UBnKysgn) ; flip sign bit TODO, we may have to remove xor as planets and suns are sign + 23 bit xpos
xor SignOnly8Bit
ld (UBnKysgn),a
; by here we have (y_sign y_hi y_lo) = K2(2 1) - P(2 1) = K2 - beta * z
.MV44: ld (UBnKylo),hl ; we do save here to avoid two writes if MV43 ended up with a 2s'c conversion
ld a,(ALP1) ; get roll magnitude
ld e,a
ld hl,(UBnKylo)
call AHLequHLmulE ; MLTU2-2 AHL = (y_hi y_lo) * alpha
ld (varPp2),a ; store high byte P(2 1 0) = (y_hi y_lo) * alpha
ld (varP),hl
ld a,(ALP2)
ld e,a
ld a,(UBnKysgn)
xor e ; a = sign of roll xor y so now we have (A P+2 P+1) = (y_sign y_hi y_lo) * alpha / 256
call APPequXPosPlusAPP ; MVT6 Set (A P+2 P+1) = (x_sign x_hi x_lo) + (A P+2 P+1) = x + y * alpha / 256
ld (UBnKxsgn),a ; save resutl stright into X pos
ld (UBnKxlo),hl
;break
; if its not a sun then apply to local orientation
call ApplyMyRollToNosev
call ApplyMyRollToSidev
call ApplyMyRollToRoofv
call ApplyMyPitchToNosev
call ApplyMyPitchToSidev
call ApplyMyPitchToRoofv
.NoRotation: ld a,(DELTA) ; get speed
ld d,0
ld e,a ; de = speed in low byte
ld hl,(UBnKzlo) ; hl = z position
ld a,(UBnKzsgn) ; b = z sign
ld b,a ;
ld c,$80 ; c = -ve as we are always moving forwards
call ADDHLDESignBC ; update speed
ld (UBnKzlo),hl ; write back to zpos
ld (UBnKzsgn),a ;
ret | 60.011628 | 150 | 0.367952 |
46d37b14b481814411208db1ec1f8be3f4cd054f | 254 | asm | Assembly | programs/max-throughput.asm | Michael-JB/superscalar-processor | 37c427ec36b004a1593ed657052397e04f5bfb57 | [
"MIT"
] | null | null | null | programs/max-throughput.asm | Michael-JB/superscalar-processor | 37c427ec36b004a1593ed657052397e04f5bfb57 | [
"MIT"
] | null | null | null | programs/max-throughput.asm | Michael-JB/superscalar-processor | 37c427ec36b004a1593ed657052397e04f5bfb57 | [
"MIT"
] | null | null | null | init: move r1 0 # Initialise counter
move r8 1000 # Number of iterations
start: sai r0 0
addi r1 r1 1
subi r2 r2 0
bne r3 r4 1
sai r5 1
addi r6 r6 1
subi r7 r7 0
blt r1 r8 start | 23.090909 | 48 | 0.507874 |
714116f1cda53db60847afb3185c469b8e0c4059 | 19,583 | asm | Assembly | Driver/Mailbox/Transport/SpoolTD/spooltdTransmit.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Driver/Mailbox/Transport/SpoolTD/spooltdTransmit.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Driver/Mailbox/Transport/SpoolTD/spooltdTransmit.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1994 -- All Rights Reserved
PROJECT:
MODULE:
FILE: spooltdTransmit.asm
AUTHOR: Adam de Boor, Oct 27, 1994
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Adam 10/27/94 Initial revision
DESCRIPTION:
Functions related to "transmitting" a message
$Id: spooltdTransmit.asm,v 1.1 97/04/18 11:40:57 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
_PROGRESS_PERCENTAGE equ FALSE
TransmitCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SpoolTDPrepareForTransport
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Prepare the message to be transmitted.
CALLED BY: (GLOBAL) DR_MBTD_PREPARE_FOR_TRANSPORT
PASS: cxdx = MailboxMessage
RETURN: ax = MBTDPrepareError
carry clear if it's ok for message to be sent
carry set if the message cannot be sent now
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
We have nothing special to do here, until we handle quick-
messages, when we'll want to convert from the text/ink format
to a graphics string.
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/27/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SpoolTDPrepareForTransport proc far
.enter
clc
mov ax, MBTDPE_OK
.leave
ret
SpoolTDPrepareForTransport endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SpoolTDConnect
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Connect to the destination and return a connection handle
CALLED BY: (GLOBAL) DR_MBTD_CONNECT
PASS: cx:dx = transport address
bx = address size
ax = MailboxTransportOption
RETURN: carry set if couldn't connect:
^lax:si = reason for failure
carry clear if connected:
si = connection handle
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
Might want to signal connected medium
eventually...
Allocate a queue handle and place it on the job-status
GCN list.
Also set the queue handle as the cancel destination for the
thread.
We return the queue handle as the connection handle
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/27/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SpoolTDConnect proc far
uses bx, cx, dx
.enter
;
; Allocate a queue on which we can block waiting for updates or cancels.
;
call GeodeAllocQueue
;
; Add the queue to the job-status list for the spooler so we can track
; the progress of our print jobs.
;
mov cx, bx
clr dx
mov bx, MANUFACTURER_ID_GEOWORKS
mov ax, GCNSLT_PRINT_JOB_STATUS
call GCNListAdd
;
; Set the queue as the action destination for cancelation, so we know
; immediately to tell the spooler to stop.
;
mov bx, cx
clr si
mov ax, MSG_META_DUMMY
call MailboxSetCancelAction
;
; Return the queue handle as the connection handle.
;
mov si, bx
clc
.leave
ret
SpoolTDConnect endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SpoolTDTransmitMessage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Transmit a message
CALLED BY: (GLOBAL) DR_MBTD_TRANSMIT_MESSAGE
PASS: cxdx = MailboxMessage
ax = address number
si = connection handle returned by DR_MBTD_CONNECT
RETURN: carry set if message could not be sent
^lcx:dx = reason for failure
ax = MailboxError
carry clear if message sent
ax, cx, dx = destroyed
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
Get the JobParameters for the address
Fetch the message body.
If it's not in SP_SPOOL, copy it there, set its name in
JP_fname & set SO_DELETE
Else
clear SO_DELETE
Call SpoolAddJob(dx:si) & record job id
free JobParameters
MailboxReportPercentage(0)
while (!done)
event = QueueGetMessage(connection)
MessageProcess(event, callback, frame)
finish with message body
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/27/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SpoolTDTransmitMessage proc far
queueHan local hptr push si
msg local MailboxMessage push cx, dx
jobParams local hptr
doneFlag local byte
body local FileDDMaxAppRef
bodyLen local word
jobID local word
result local MailboxError
errMsg local optr
if MAILBOX_PERSISTENT_PROGRESS_BOXES
totalPgs local word
endif ; MAILBOX_PERSISTENT_PROGRESS_BOXES
uses si, bx, di, ds, es
.enter
mov ss:[doneFlag], FALSE
mov ss:[result], ME_SUCCESS
if MAILBOX_PERSISTENT_PROGRESS_BOXES
mov ss:[totalPgs], 0
endif ; MAILBOX_PERSISTENT_PROGRESS_BOXES
call MailboxGetBodyFormat
cmp bx, MANUFACTURER_ID_GEOWORKS
jne formatError
cmp ax, GMDFID_STREAM_GSTRING
jne formatError
call STDGetJobParams ; ^hbx, ds <- JobParameters
jc checkResult
mov ss:[jobParams], bx
call STDGetBodyAndCopyIfNecessary
jc checkResult
mov dx, ds
clr si
call SpoolAddJob
mov ss:[jobID], cx
mov bx, ss:[jobParams]
call MemFree
if _PROGRESS_PERCENTAGE and MAILBOX_PERSISTENT_PROGRESS_BOXES
push bp
mov ax, MPT_PERCENTAGE
clr cx
mov bp, mask MPA_REPLACE or \
(VUM_NOW shl offset MPA_UPDATE_MODE)
call MailboxReportProgress
pop bp
endif
msgLoop:
tst ss:[doneFlag]
jnz finish
mov bx, ss:[queueHan]
call QueueGetMessage
mov_tr bx, ax
mov di, bp
clr si
mov ax, SEGMENT_CS
push ax
mov ax, offset STDTransmitCallback
push ax
call MessageProcess
mov bp, di
jmp msgLoop
formatError:
mov ss:[result], ME_UNSUPPORTED_BODY_FORMAT
mov ss:[errMsg].handle, handle UnsupportedFormatMsg
mov ss:[errMsg].chunk, offset UnsupportedFormatMsg
jmp checkResult
finish:
movdw cxdx, ss:[msg]
segmov es, ss
lea di, ss:[body]
mov ax, ss:[bodyLen]
call MailboxDoneWithBody
checkResult:
mov ax, ss:[result]
tst ax
jz exit
movdw cxdx, ss:[errMsg]
stc
exit:
.leave
ret
SpoolTDTransmitMessage endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
STDTransmitCallback
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Callback routine to process a message from our event queue
CALLED BY: (INTERNAL) SpoolTDTransmitMessage via MessageProcess
PASS: ax = message (MSG_META_DUMMY [= cancel],
MSG_PRINT_STATUS_CHANGE)
if MSG_PRINT_STATUS_CHANGE:
cx = PrintStatusChangeType
dx = print job ID
bp = change-specific data:
PSCT_NEW_PAGE - current physical page #
PSCT_COMPLETE - undefined
PSCT_CANCELED - undefined?
ss:di = inherited frame
carry set if event has stack data
RETURN: nothing
DESTROYED: ax, cx, dx, si, di, bp, ds, es all allowed
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/31/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
STDTransmitCallback proc far
xchg bp, di
.enter inherit SpoolTDTransmitMessage
Assert stackFrame, bp
;
; See if user asked us to stop.
;
cmp ax, MSG_META_DUMMY
je cancelJob
;
; Didn't. See if the spooler is telling us of a status change.
;
cmp ax, MSG_PRINT_STATUS_CHANGE
jne done
;
; It is. See if it's for the job we're transmitting.
;
cmp dx, ss:[jobID]
jne done
;
; It is. If it's not PSCT_NEW_PAGE, it must be complete or canceled
;
CheckHack <PSCT_NEW_PAGE eq 0>
tst cx
CheckHack <(PSCT_COMPLETE eq PSCT_CANCELED-1) and \
(PSCT_CANCELED eq PSCT_ERROR-1) and\
(PSCT_ERROR eq PrintStatusChangeType-1)>
jne jobDone
if MAILBOX_PERSISTENT_PROGRESS_BOXES
;
; Go figure out what percentage we've now gotten through and report
; that.
;
call STDComputePercentage
push bp
if _PROGRESS_PERCENTAGE
mov ax, MPT_PERCENTAGE
else
mov ax, MPT_PAGES
endif
mov bp, VUM_NOW shl offset MPA_UPDATE_MODE
call MailboxReportProgress
pop bp
endif ; MAILBOX_PERSISTENT_PROGRESS_BOXES
done:
.leave
ret
cancelJob:
;
; Ask that it be biffed. We do *not* set the done flag here until
; we receive confirmation over the GCN list that the thing has
; indeed been canceled (PSCT_CANCELED) or made it through anyhow
; (PSCT_COMPLETE).
;
mov cx, ss:[jobID]
call SpoolDelJob
jmp done
jobDone:
;
; Job is complete. Tell our caller this.
;
mov ss:[doneFlag], TRUE
cmp cx, PSCT_COMPLETE
je report100Pct
cmp cx, PSCT_ERROR
je commError
;
; Job is complete b/c it was nuked. Set the error code and message
; appropriately before returning.
;
mov ss:[result], ME_USER_CANCELED
mov ss:[errMsg].handle, handle CanceledMsg
mov ss:[errMsg].chunk, offset CanceledMsg
report100Pct:
;
; Bring the gauge up to 100% before the box comes down. Gives the user
; a warm fuzzy...
;
if _PROGRESS_PERCENTAGE and MAILBOX_PERSISTENT_PROGRESS_BOXES
push bp
mov ax, MPT_PERCENTAGE
mov cx, 100
mov bp, VUM_NOW shl offset MPA_UPDATE_MODE
call MailboxReportProgress
pop bp
endif
jmp done
commError:
mov ss:[result], ME_LOST_CONNECTION
mov ss:[errMsg].handle, handle PrinterErrorMsg
mov ss:[errMsg].chunk, offset PrinterErrorMsg
jmp report100Pct
STDTransmitCallback endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
STDGetJobParams
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Fetch the JobParameters block for the print job
CALLED BY: (INTERNAL) SpoolTDTransmitMessage
PASS: ss:bp = inherited frame
cxdx = MailboxMessage
RETURN: carry set if not enough memory:
ss:[result], ss:[errMsg] set
bx, ds = destroyed
carry clear if have parameters:
^hbx, ds, es = fixed JobParameters block
DESTROYED: ax, cx, dx, si, di
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/31/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
STDGetJobParams proc near
.enter inherit SpoolTDTransmitMessage
Assert stackFrame, bp
;
; Find out how much memory we need for the address.
;
clr ax, bx ; ax <- buffer size
; bx <- address #
call MailboxGetTransAddr ; ax <- # bytes needed
Assert ne, ax, 0 ; message or address cannot be
; invalid
;
; Allocate a fixed block that big.
;
push cx, ax ; save msg.high & addr size
mov cx, ALLOC_FIXED
call MemAlloc ; ^hbx <- JP block
mov ds, ax ; ds <- JP block
mov es, ax ; es <- ditto
pop cx, ax ; cx <- msg.high
; ax <- addr size
jc memErr
;
; Now really fetch the address.
;
push bx
clr bx, di
call MailboxGetTransAddr
;
; Move the JobParameters down over the "significant" part of the address
;
mov si, MAXIMUM_PRINTER_NAME_LENGTH
sub ax, MAXIMUM_PRINTER_NAME_LENGTH
mov_tr cx, ax
rep movsb
pop bx ; ^hbx <- JobParameters
;
; Set the SO_SHUTDOWN_ACTION flag, please, as the Mailbox library will
; take care of warning the user if s/he attempts to shut down while this
; thing is queued.
;
CheckHack <SSJA_CANCEL_JOB eq 1 and width SO_SHUTDOWN_ACTION eq 1>
ornf ds:[JP_spoolOpts], mask SO_SHUTDOWN_ACTION
clc
done:
.leave
ret
memErr:
mov ss:[result], ME_NOT_ENOUGH_MEMORY
mov ss:[errMsg].handle, handle InsufficientMemoryMsg
mov ss:[errMsg].chunk, offset InsufficientMemoryMsg
stc
jmp done
STDGetJobParams endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
STDGetBodyAndCopyIfNecessary
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Fetch the name of the body and make sure it's in the
SP_SPOOL directory
CALLED BY: (INTERNAL) SpoolTDTransmitMessage
PASS: ss:bp = inherited frame
ds = es = JobParameters
RETURN: carry set if couldn't get to file or copy it into SP_SPOOL:
jobParams block freed
result, errMsg set
MailboxDoneWithBody called, if necessary
carry clear if ok:
ss:[body], ss:[bodyLen] set
JP_fname & JP_spoolOpts.SO_DELETE set properly
DESTROYED: ax, bx, cx, dx, si, di, es
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
MailboxGetBodyRef
if successful:
store bodyLen
if FMAR_diskHandle not SP_SPOOL or FMAR_filename
isn't just a file name:
SpoolCreateSpoolFile(JP_fname)
FileClose(handle)
FileCopy(appRef, SP_SPOOL, JP_fname)
JP_spoolOpts.SO_DELETE = TRUE
else
JP_spoolOpts.SO_DELETE = FALSE
XXX: make sure JP_fname matches?
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/31/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
STDGetBodyAndCopyIfNecessary proc near
.enter inherit SpoolTDTransmitMessage
;
; Ask the Mailbox library for the app-ref for the message body.
;
movdw cxdx, ss:[msg]
segmov es, ss
lea di, ss:[body]
mov ax, size (ss:[body])
call MailboxGetBodyRef
jc getBodyErr
;
; Got it. See if it's a file in SP_SPOOL.
;
mov ss:[bodyLen], ax
cmp ss:[body].FMAR_diskHandle, SP_SPOOL
jne copyIt ; => not in SP_SPOOL, so must copy
;
; Look for a backslash in the filename (other than at the start),
; which indicates the thing is in a subdirectory of SP_SPOOL, for
; some unknown reason.
;
mov_tr cx, ax ; cx <- app-ref size
add di, offset FMAR_filename ; es:di <- path
sub cx, offset FMAR_filename ; cx <- # bytes in path
DBCS < shr cx >
mov ax, C_BACKSLASH
LocalNextChar esdi ; backslash as first char doesn't count
dec cx
jz badBody ; => body is SP_SPOOL itself. We
; should never take this branch,
; but I'm naturally cautious...
LocalFindChar
je copyIt
;
; It's a file in SP_SPOOL, so we can just use it directly. Make sure
; SO_DELETE is clear so the Mailbox library gets to decide whether
; to biff the thing or no.
;
andnf ds:[JP_spoolOpts], not mask SO_DELETE
jmp done
getBodyErr:
mov ss:[result], ax
mov ss:[errMsg].handle, handle CannotOpenMsg
mov ss:[errMsg].chunk, offset CannotOpenMsg
stc
jmp done
copyIt:
;
; Not in the right place, so we have to copy the file into the spool
; directory. First set SO_DELETE so the file we create gets biffed.
;
ornf ds:[JP_spoolOpts], mask SO_DELETE
;
; Now call the spooler's nice library routine to create a spool file
; for us.
;
mov dx, ds
mov si, offset JP_fname
call SpoolCreateSpoolFile
tst ax
jz cannotCreate ; => unsuccessful
;
; Can't pass a handle for the destination, so close down the handle
; the spooler gave us -- we should still be able to use the name
; without a problem, right?
;
mov_tr bx, ax
call FileClose
;
; Now call FileCopy to copy the thing into the spool directory
;
segmov es, ds
mov di, offset JP_fname ; es:di <- dest path
mov dx, SP_SPOOL ; dx <- dest disk
segmov ds, ss
lea si, ss:[body].FMAR_filename ; ds:si <- src path
mov cx, ss:[body].FMAR_diskHandle ; cx <- src disk
call FileCopy
segmov ds, es ; ds <- JobParameters, again
jc copyErr
done:
.leave
ret
badBody:
mov ss:[result], ME_CANNOT_OPEN_MESSAGE_FILE
mov ss:[errMsg].handle, handle BadBodyMsg
mov ss:[errMsg].chunk, offset BadBodyMsg
jmp doneWithBody
cannotCreate:
mov cx, ME_INSUFFICIENT_DISK_SPACE
jmp haveErrCode
copyErr:
mov cx, ME_INSUFFICIENT_DISK_SPACE
cmp ax, ERROR_SHORT_READ_WRITE
je haveErrCode
mov cx, ME_CANNOT_OPEN_MESSAGE_FILE
haveErrCode:
mov ss:[result], cx
mov ss:[errMsg].handle, handle CannotCopyMsg
mov ss:[errMsg].chunk, offset CannotCopyMsg
doneWithBody:
movdw cxdx, ss:[msg]
segmov es, ss
lea di, ss:[body]
mov ax, ss:[bodyLen]
call MailboxDoneWithBody
stc
jmp done
STDGetBodyAndCopyIfNecessary endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
STDComputePercentage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Figure how far along we are
CALLED BY: (INTERNAL) STDTransmitCallback
PASS: ss:bp = inherited frame
di = current physical page #
RETURN: cx = percentage
DESTROYED:
SIDE EFFECTS: ss:[totalPgs] set, if wasn't set before
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/31/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if MAILBOX_PERSISTENT_PROGRESS_BOXES
STDComputePercentage proc near
.enter inherit SpoolTDTransmitMessage
;
; See if we've already asked the spooler for the total number of pages
; for this beast.
;
tst ss:[totalPgs]
jnz haveTotal
;
; We haven't. Get the status for the job.
;
mov dx, ss:[jobID]
mov cx, SIT_JOB_INFO
call SpoolInfo
clr cx ; assume couldn't get it, so
; use 0 for percentage
cmp ax, SPOOL_OPERATION_SUCCESSFUL
jne done
;
; Fetch the total # of physical pages from the status block.
;
call MemLock
mov es, ax
Assert e, es:[JS_printing], SJP_PRINTING
mov ax, es:[JS_totalPage]
call MemFree
;
; Remember the total in the stack frame.
;
mov ss:[totalPgs], ax
haveTotal:
if _PROGRESS_PERCENTAGE
dec di ; just starting this page,
; so don't act like we just
; finished it...
mov ax, 100
mul di ; dxax <- phys page * 100
div ss:[totalPgs] ; ax <- percentage
mov_tr cx, ax
else
mov cx, di ; cx <- cur page
mov dx, ss:[totalPgs] ; dx <- total pages
endif
done:
.leave
ret
STDComputePercentage endp
endif ; MAILBOX_PERSISTENT_PROGRESS_BOXES
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SpoolTDEndConnect
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Close down a connection
CALLED BY: (GLOBAL) DR_MBTD_END_CONNECT
PASS: si = connection handle
RETURN: nothing
DESTROYED: si
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/27/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SpoolTDEndConnect proc far
uses ax, bx, cx, dx
.enter
;
; Remove ourselves from the job-status list
;
mov cx, si
clr dx
mov bx, MANUFACTURER_ID_GEOWORKS
mov ax, GCNSLT_PRINT_JOB_STATUS
call GCNListRemove
;
; Set the cancel action back to nothing
;
clr bx, si, ax
call MailboxSetCancelAction
;
; Destroy the queue, now there are no more references to it. We
; don't care about any remaining messages.
;
mov bx, cx
call GeodeFreeQueue
.leave
ret
SpoolTDEndConnect endp
TransmitCode ends
| 25.432468 | 79 | 0.61824 |
c5cacec6f9a280b85539b2dd5eaecc17fc2745b1 | 169 | asm | Assembly | teaser I/asm/TileCollision ROF.asm | fa8ntomas/bclk-samples | 6e7f054eb4b96ca011ffb2ea49226146b001274b | [
"MIT"
] | null | null | null | teaser I/asm/TileCollision ROF.asm | fa8ntomas/bclk-samples | 6e7f054eb4b96ca011ffb2ea49226146b001274b | [
"MIT"
] | null | null | null | teaser I/asm/TileCollision ROF.asm | fa8ntomas/bclk-samples | 6e7f054eb4b96ca011ffb2ea49226146b001274b | [
"MIT"
] | null | null | null | ; Map 'ROF' Tile Collision
.local
cmp #$15
beq fatal
cmp #$16
beq fatal
cmp #$17
beq fatal
rts
fatal
jmp HitFatal
.endl | 8.45 | 26 | 0.508876 |
fc28b160818267594d6228b307cdc3515946af19 | 410 | asm | Assembly | programs/oeis/338/A338100.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/338/A338100.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/338/A338100.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A338100: Number of spanning trees in the n X 2 king graph.
; 1,16,192,2304,27648,331776,3981312,47775744,573308928,6879707136,82556485632,990677827584,11888133931008,142657607172096,1711891286065152,20542695432781824,246512345193381888,2958148142320582656,35497777707846991872,425973332494163902464,5111679989929966829568
mov $1,12
pow $1,$0
mul $1,12
div $1,9
mul $1,5
sub $1,5
div $1,5
add $1,1
mov $0,$1
| 31.538462 | 262 | 0.809756 |
576f48298dda9a5dc675b4bd68c1cf8627084a05 | 22 | asm | Assembly | gfx/pokemon/wobbuffet/anim_idle.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 28 | 2019-11-08T07:19:00.000Z | 2021-12-20T10:17:54.000Z | gfx/pokemon/wobbuffet/anim_idle.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 13 | 2020-01-11T17:00:40.000Z | 2021-09-14T01:27:38.000Z | gfx/pokemon/wobbuffet/anim_idle.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 22 | 2020-05-28T17:31:38.000Z | 2022-03-07T20:49:35.000Z | frame 0, 30
endanim
| 7.333333 | 12 | 0.681818 |
c2c0ba49cd421b5e20504fd47f219f7a049dc261 | 1,582 | asm | Assembly | Library/SpecUI/CommonUI/CSpec/cspecDocument.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Library/SpecUI/CommonUI/CSpec/cspecDocument.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Library/SpecUI/CommonUI/CSpec/cspecDocument.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: CommonUI/CSpec
FILE: cspecDocument.asm
ROUTINES:
Name Description
---- -----------
GLB OLBuildDocument Convert a generic document to the OL
equivalent
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 1/90 Initial version
DESCRIPTION:
This file contains routines to handle the Open Look implementation
of a generic document.
$Id: cspecDocument.asm,v 1.1 97/04/07 10:50:43 newdeal Exp $
------------------------------------------------------------------------------@
DocNewOpen segment resource
COMMENT @----------------------------------------------------------------------
FUNCTION: OLBuildDocument
DESCRIPTION: Return the specific UI class for a GenDocument
CALLED BY: GLOBAL
PASS:
*ds:si - instance data
ax - MSG_META_RESOLVE_VARIANT_SUPERCLASS
cx, dx, bp - ?
RETURN:
cx:dx - class (cx = 0 for no conversion)
DESTROYED:
ax, bx, si, di, bp, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 2/89 Initial version
------------------------------------------------------------------------------@
OLBuildDocument proc far
; Always convert to OLDocumentClass
mov dx, offset OLDocumentClass
mov cx, segment OLDocumentClass
ret
OLBuildDocument endp
DocNewOpen ends
| 21.093333 | 80 | 0.546776 |
95d8900a68f41c00b358021a7b1e7c0f451ea399 | 6,131 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_5248_326.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_5248_326.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_5248_326.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x18d8b, %rsi
lea addresses_A_ht+0x1258b, %rdi
nop
nop
sub %r13, %r13
mov $95, %rcx
rep movsw
nop
add %r9, %r9
lea addresses_A_ht+0x17c3d, %r9
nop
nop
nop
nop
add %rdx, %rdx
movw $0x6162, (%r9)
nop
cmp %rsi, %rsi
lea addresses_UC_ht+0x1830b, %r13
nop
nop
nop
xor $1261, %r8
movw $0x6162, (%r13)
nop
add %r13, %r13
lea addresses_WC_ht+0x167ab, %rsi
lea addresses_A_ht+0x1008d, %rdi
nop
nop
nop
nop
cmp $9898, %rax
mov $35, %rcx
rep movsw
nop
nop
sub $15640, %rdi
lea addresses_normal_ht+0xbd8b, %r9
nop
nop
nop
nop
nop
add $23158, %r8
and $0xffffffffffffffc0, %r9
movaps (%r9), %xmm5
vpextrq $0, %xmm5, %r13
nop
nop
inc %r8
lea addresses_WC_ht+0x1780b, %rsi
nop
nop
nop
nop
and %r13, %r13
mov (%rsi), %edx
nop
nop
cmp %rdi, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r8
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r8
push %r9
push %rbp
push %rcx
push %rdx
// Store
lea addresses_D+0x148cb, %rcx
nop
nop
cmp %r13, %r13
mov $0x5152535455565758, %rdx
movq %rdx, (%rcx)
nop
add %rdx, %rdx
// Store
lea addresses_WT+0x2bc3, %r12
and %rbp, %rbp
movw $0x5152, (%r12)
nop
nop
add %r13, %r13
// Store
mov $0x13c4d90000000c4b, %r9
nop
nop
nop
nop
and %rbp, %rbp
movw $0x5152, (%r9)
nop
nop
xor %r8, %r8
// Faulty Load
lea addresses_US+0x958b, %r13
nop
nop
sub %rbp, %rbp
movaps (%r13), %xmm5
vpextrq $0, %xmm5, %r12
lea oracles, %r9
and $0xff, %r12
shlq $12, %r12
mov (%r9,%r12,1), %r12
pop %rdx
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D', 'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 5}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_US', 'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_A_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 11}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 6}}
{'00': 5248}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 38.080745 | 2,999 | 0.654379 |
7519c4a8ca82400ec36105d2a8dc5bf883301051 | 5,977 | asm | Assembly | Library/Shell/Icon/iconMain.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Library/Shell/Icon/iconMain.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Library/Shell/Icon/iconMain.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @=====================================================================
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC/GEOS
MODULE: Shell -- Icon
FILE: iconMain.asm
AUTHOR: Martin Turon, October 19, 1992
METHODS:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
martin 10/19/92 Initial version
DESCRIPTION:
Externally callable routines for this module.
No routines outside this file should be called from outside this
module.
$Id: iconMain.asm,v 1.1 97/04/07 10:45:28 newdeal Exp $
=============================================================================@
COMMENT @-------------------------------------------------------------------
ShellLoadMoniker
----------------------------------------------------------------------------
DESCRIPTION: Loads the VisMoniker for the given GeodeToken from the
token database.
CALLED BY: GLOBAL
PASS: ax:cx:dx = GeodeToken
RETURN: ^lcx:dx = optr to VisMoniker
CF = set if error
clear otherwise
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
The caller is responsible for freeing the block containing the
returned VisMoniker, this can be done in the following way:
mov bx, cx
call MemFree
REVISION HISTORY:
Name Date Description
---- ---- -----------
martin 10/21/92 Initial version
---------------------------------------------------------------------------@
ShellLoadMoniker proc far
uses bx, di, si
.enter
push ax, cx, dx
mov ax, LMEM_TYPE_GENERAL
clr cx
call MemAllocLMem
mov cx, bx ; cx = lmem block handle
call UserGetDisplayType
mov dh, ah
;---------------------------------------------------------------------------
;
; match FileMgr code - brianc 3/28/93
;
; keep to DS_STANDARD or smaller (i.e. convert DS_HUGE and DS_LARGE
; into DS_STANDARD)
;
mov bl, dh
andnf bl, mask DT_DISP_SIZE ; cl = DisplaySize
.assert DS_STANDARD gt DS_TINY
.assert DS_LARGE gt DS_STANDARD
.assert DS_HUGE gt DS_LARGE
cmp bl, DS_STANDARD shl offset DT_DISP_SIZE
jbe 20$
andnf dh, not mask DT_DISP_SIZE ; clear current size
; set DS_STANDARD
ornf dh, DS_STANDARD shl offset DT_DISP_SIZE
20$:
;---------------------------------------------------------------------------
pop ax, bx, si
push cx
mov di, (VMS_ICON shl offset VMSF_STYLE) or mask VMSF_GSTRING
push di
clr di
push di ; required by TokenLoadMoniker
call TokenLoadMoniker ; grab moniker from token.db
; returns cx = moniker size
pop cx
mov dx, di
.leave
ret
ShellLoadMoniker endp
COMMENT @-------------------------------------------------------------------
ShellDefineTokens
----------------------------------------------------------------------------
DESCRIPTION: Inserts all the given tokens into the token db if they
do not already exist.
CALLED BY: GLOBAL
PASS: es:di = array of TokenMoniker
cx = ShellDefineTokenFlags
si = ManufacturerID
bp = TokenFlags
if SDTF_CALLBACK_PROCESSED and/or SDTF_CALLBACK_DEFINED:
ax:bx = fptr to callback
(vfptr if XIP'ed)
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
CALLBACK:
PASS: axbxsi = GeodeToken
^lcx:dx = moniker (if defined)
RETURN: nothing
DESTROYED: ax, bx, cx, dx, bp, di, si, ds, es
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
martin 10/30/92 Initial version
---------------------------------------------------------------------------@
ShellDefineTokens proc far
tokenFlags local TokenFlags push bp
flags local ShellDefineTokenFlags push cx
callback local fptr push ax, bx
uses ax, bx, cx, dx, di, si
.enter
ForceRef callback
if ERROR_CHECK
;
; Validate that the array is not in a movable code segment
;
FXIP< push bx, si >
FXIP< mov bx, es >
FXIP< mov si, di >
FXIP< call ECAssertValidFarPointerXIP >
FXIP< pop bx, si >
endif
setUpLoop:
;
; Get the next token.
;
movtchr axbx, es:[di].TM_token
test ss:[flags], mask SDTF_FORCE_OVERWRITE
jnz defineToken
;
; Check if token is in token.db already
;
push bp
call TokenGetTokenInfo ; is it there yet?
pop bp
jnc next ; if so, do next one
defineToken:
;
; Add/replace token in token.db
;
movdw cxdx, es:[di].TM_moniker
push bp
mov bp, ss:[tokenFlags]
call TokenDefineToken ; add it
pop bp
test ss:[flags], mask SDTF_CALLBACK_DEFINED
call ShellDefineCallCallBackIfFlagSet
next:
test ss:[flags], mask SDTF_CALLBACK_PROCESSED
call ShellDefineCallCallBackIfFlagSet
add di, size TokenMoniker
cmp {byte}es:[di], TOKEN_MONIKER_END_OF_LIST
jne setUpLoop
.leave
ret
ShellDefineTokens endp
COMMENT @-------------------------------------------------------------------
ShellDefineCallCallBackIfFlagSet
----------------------------------------------------------------------------
DESCRIPTION:
CALLED BY: INTERNAL - ShellDefineTokens
PASS: ZF = set if callback should be called
stack frame of ShellDefineTokens
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
martin 12/17/92 Initial version
---------------------------------------------------------------------------@
ShellDefineCallCallBackIfFlagSet proc near
.enter inherit ShellDefineTokens
jz done
push ax, bx, cx, dx, bp, di, si, ds, es
NOFXIP< call ss:[callback] >
FXIP< mov ss:[TPD_dataAX], ax >
FXIP< mov ss:[TPD_dataBX], bx >
FXIP< movdw bxax, ss:[callback] >
FXIP< call ProcCallFixedOrMovable >
pop ax, bx, cx, dx, bp, di, si, ds, es
done:
.leave
ret
ShellDefineCallCallBackIfFlagSet endp
| 23.812749 | 79 | 0.563326 |
de378dabbbbd9c571ed2f60535af949a6b9508ae | 931 | asm | Assembly | programs/oeis/157/A157761.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/157/A157761.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/157/A157761.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A157761: a(n) = 297754*n - 53000.
; 244754,542508,840262,1138016,1435770,1733524,2031278,2329032,2626786,2924540,3222294,3520048,3817802,4115556,4413310,4711064,5008818,5306572,5604326,5902080,6199834,6497588,6795342,7093096,7390850,7688604,7986358,8284112,8581866,8879620,9177374,9475128,9772882,10070636,10368390,10666144,10963898,11261652,11559406,11857160,12154914,12452668,12750422,13048176,13345930,13643684,13941438,14239192,14536946,14834700,15132454,15430208,15727962,16025716,16323470,16621224,16918978,17216732,17514486,17812240,18109994,18407748,18705502,19003256,19301010,19598764,19896518,20194272,20492026,20789780,21087534,21385288,21683042,21980796,22278550,22576304,22874058,23171812,23469566,23767320,24065074,24362828,24660582,24958336,25256090,25553844,25851598,26149352,26447106,26744860,27042614,27340368,27638122,27935876,28233630,28531384,28829138,29126892,29424646,29722400
mul $0,297754
add $0,244754
| 155.166667 | 865 | 0.864662 |
714509c917f97fa26ee5c582d1e876f0f86a1861 | 486 | asm | Assembly | data/main.asm | MasterQ32/SLF | 43600509d40e21346548c6b8c8948f97127fe544 | [
"MIT"
] | 3 | 2022-02-14T09:33:02.000Z | 2022-03-20T01:33:47.000Z | data/main.asm | MasterQ32/libslf | 43600509d40e21346548c6b8c8948f97127fe544 | [
"MIT"
] | null | null | null | data/main.asm | MasterQ32/libslf | 43600509d40e21346548c6b8c8948f97127fe544 | [
"MIT"
] | null | null | null | symtable_start exports
defsymbol str_reset, reset_def
symtable_end exports
symtable_start imports
defsymbol str_strcpy, patch_location
symtable_end imports
stringtable_start strings
str_reset: string 'reset'
str_strcpy: string 'strcpy'
stringtable_end strings
relocs_start relocs
DD reloc_loc - data
relocs_end relocs
ALIGN 16
data:
reset_def:
DB "This is the reset symbol", 0
DW 0x1111
patch_location:
DW 0
DW 0x2222
ALIGN 2
DB "XXXX"
reloc_loc:
DW 0x8788
DB "XXXX"
data_end:
| 13.135135 | 36 | 0.814815 |
957aecd4f2b62fb7ca4c072835b42b4ed54dfbbe | 463 | asm | Assembly | libsrc/_DEVELOPMENT/target/yaz180/device/asci/z180/asm_asci0_flush_Rx.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/target/yaz180/device/asci/z180/asm_asci0_flush_Rx.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/target/yaz180/device/asci/z180/asm_asci0_flush_Rx.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_driver
SECTION code_driver_character_input
PUBLIC asm_asci0_flush_Rx
EXTERN asci0RxCount, asci0RxIn, asci0RxOut, asci0RxBuffer
asm_asci0_flush_Rx:
xor a
ld (asci0RxCount), a ; reset the Rx counter (set 0)
ld hl, asci0RxBuffer ; load Rx buffer pointer home
ld (asci0RxIn), hl
ld (asci0RxOut), hl
ret
EXTERN asm_asci0_need
defc NEED = asm_asci0_need
| 21.045455 | 70 | 0.639309 |
b1caea755f7a0854af8d80dbd35ba4ea0fa3ea75 | 25,324 | asm | Assembly | third_party/codecs/xvidcore/src/image/x86_asm/qpel_mmx.asm | Narflex/sagetv | 76cb5755e54fd3b01d2bb708a8a72af0aa1533f1 | [
"Apache-2.0"
] | 292 | 2015-08-10T18:34:55.000Z | 2022-01-26T00:38:45.000Z | third_party/codecs/xvidcore/src/image/x86_asm/qpel_mmx.asm | Narflex/sagetv | 76cb5755e54fd3b01d2bb708a8a72af0aa1533f1 | [
"Apache-2.0"
] | 366 | 2015-08-10T18:21:02.000Z | 2022-01-22T20:03:41.000Z | third_party/codecs/xvidcore/src/image/x86_asm/qpel_mmx.asm | Narflex/sagetv | 76cb5755e54fd3b01d2bb708a8a72af0aa1533f1 | [
"Apache-2.0"
] | 227 | 2015-08-10T22:24:29.000Z | 2022-02-25T19:16:21.000Z | ;/*****************************************************************************
; *
; * XVID MPEG-4 VIDEO CODEC
; * - Quarter-pixel interpolation -
; * Copyright(C) 2002 Pascal Massimino <skal@planet-d.net>
; *
; * This file is part of Xvid, a free MPEG-4 video encoder/decoder
; *
; * Xvid is free software; you can redistribute it and/or modify it
; * under the terms of the GNU General Public License as published by
; * the Free Software Foundation; either version 2 of the License, or
; * (at your option) any later version.
; *
; * This program is distributed in the hope that it will be useful,
; * but WITHOUT ANY WARRANTY; without even the implied warranty of
; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; * GNU General Public License for more details.
; *
; * You should have received a copy of the GNU General Public License
; * along with this program; if not, write to the Free Software
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
; *
; * $Id: qpel_mmx.asm,v 1.13 2010-11-28 15:18:21 Isibaar Exp $
; *
; *************************************************************************/
;/**************************************************************************
; *
; * History:
; *
; * 22.10.2002 initial coding. unoptimized 'proof of concept',
; * just to heft the qpel filtering. - Skal -
; *
; *************************************************************************/
%define USE_TABLES ; in order to use xvid_FIR_x_x_x_x tables
; instead of xvid_Expand_mmx...
%include "nasm.inc"
;//////////////////////////////////////////////////////////////////////
;// Declarations
;// all signatures are:
;// void XXX(uint8_t *dst, const uint8_t *src,
;// int32_t length, int32_t stride, int32_t rounding)
;//////////////////////////////////////////////////////////////////////
cglobal xvid_H_Pass_16_mmx
cglobal xvid_H_Pass_Avrg_16_mmx
cglobal xvid_H_Pass_Avrg_Up_16_mmx
cglobal xvid_V_Pass_16_mmx
cglobal xvid_V_Pass_Avrg_16_mmx
cglobal xvid_V_Pass_Avrg_Up_16_mmx
cglobal xvid_H_Pass_8_mmx
cglobal xvid_H_Pass_Avrg_8_mmx
cglobal xvid_H_Pass_Avrg_Up_8_mmx
cglobal xvid_V_Pass_8_mmx
cglobal xvid_V_Pass_Avrg_8_mmx
cglobal xvid_V_Pass_Avrg_Up_8_mmx
cglobal xvid_H_Pass_Add_16_mmx
cglobal xvid_H_Pass_Avrg_Add_16_mmx
cglobal xvid_H_Pass_Avrg_Up_Add_16_mmx
cglobal xvid_V_Pass_Add_16_mmx
cglobal xvid_V_Pass_Avrg_Add_16_mmx
cglobal xvid_V_Pass_Avrg_Up_Add_16_mmx
cglobal xvid_H_Pass_8_Add_mmx
cglobal xvid_H_Pass_Avrg_8_Add_mmx
cglobal xvid_H_Pass_Avrg_Up_8_Add_mmx
cglobal xvid_V_Pass_8_Add_mmx
cglobal xvid_V_Pass_Avrg_8_Add_mmx
cglobal xvid_V_Pass_Avrg_Up_8_Add_mmx
cglobal xvid_Expand_mmx
cglobal xvid_FIR_1_0_0_0
cglobal xvid_FIR_3_1_0_0
cglobal xvid_FIR_6_3_1_0
cglobal xvid_FIR_14_3_2_1
cglobal xvid_FIR_20_6_3_1
cglobal xvid_FIR_20_20_6_3
cglobal xvid_FIR_23_19_6_3
cglobal xvid_FIR_7_20_20_6
cglobal xvid_FIR_6_20_20_6
cglobal xvid_FIR_6_20_20_7
cglobal xvid_FIR_3_6_20_20
cglobal xvid_FIR_3_6_19_23
cglobal xvid_FIR_1_3_6_20
cglobal xvid_FIR_1_2_3_14
cglobal xvid_FIR_0_1_3_6
cglobal xvid_FIR_0_0_1_3
cglobal xvid_FIR_0_0_0_1
SECTION .data align=SECTION_ALIGN
align SECTION_ALIGN
xvid_Expand_mmx:
times 256*4 dw 0 ; uint16_t xvid_Expand_mmx[256][4]
ENDFUNC
xvid_FIR_1_0_0_0:
times 256*4 dw 0
ENDFUNC
xvid_FIR_3_1_0_0:
times 256*4 dw 0
ENDFUNC
xvid_FIR_6_3_1_0:
times 256*4 dw 0
ENDFUNC
xvid_FIR_14_3_2_1:
times 256*4 dw 0
ENDFUNC
xvid_FIR_20_6_3_1:
times 256*4 dw 0
ENDFUNC
xvid_FIR_20_20_6_3:
times 256*4 dw 0
ENDFUNC
xvid_FIR_23_19_6_3:
times 256*4 dw 0
ENDFUNC
xvid_FIR_7_20_20_6:
times 256*4 dw 0
ENDFUNC
xvid_FIR_6_20_20_6:
times 256*4 dw 0
ENDFUNC
xvid_FIR_6_20_20_7:
times 256*4 dw 0
ENDFUNC
xvid_FIR_3_6_20_20:
times 256*4 dw 0
ENDFUNC
xvid_FIR_3_6_19_23:
times 256*4 dw 0
ENDFUNC
xvid_FIR_1_3_6_20:
times 256*4 dw 0
ENDFUNC
xvid_FIR_1_2_3_14:
times 256*4 dw 0
ENDFUNC
xvid_FIR_0_1_3_6:
times 256*4 dw 0
ENDFUNC
xvid_FIR_0_0_1_3:
times 256*4 dw 0
ENDFUNC
xvid_FIR_0_0_0_1:
times 256*4 dw 0
ENDFUNC
;//////////////////////////////////////////////////////////////////////
DATA
align SECTION_ALIGN
Rounder1_MMX:
times 4 dw 1
Rounder0_MMX:
times 4 dw 0
align SECTION_ALIGN
Rounder_QP_MMX:
times 4 dw 16
times 4 dw 15
%ifndef USE_TABLES
align SECTION_ALIGN
; H-Pass table shared by 16x? and 8x? filters
FIR_R0: dw 14, -3, 2, -1
align SECTION_ALIGN
FIR_R1: dw 23, 19, -6, 3, -1, 0, 0, 0
FIR_R2: dw -7, 20, 20, -6, 3, -1, 0, 0
FIR_R3: dw 3, -6, 20, 20, -6, 3, -1, 0
FIR_R4: dw -1, 3, -6, 20, 20, -6, 3, -1
FIR_R5: dw 0, -1, 3, -6, 20, 20, -6, 3, -1, 0, 0, 0
align SECTION_ALIGN
FIR_R6: dw 0, 0, -1, 3, -6, 20, 20, -6, 3, -1, 0, 0
align SECTION_ALIGN
FIR_R7: dw 0, 0, 0, -1, 3, -6, 20, 20, -6, 3, -1, 0
align SECTION_ALIGN
FIR_R8: dw -1, 3, -6, 20, 20, -6, 3, -1
FIR_R9: dw 0, -1, 3, -6, 20, 20, -6, 3, -1, 0, 0, 0
align SECTION_ALIGN
FIR_R10: dw 0, 0, -1, 3, -6, 20, 20, -6, 3, -1, 0, 0
align SECTION_ALIGN
FIR_R11: dw 0, 0, 0, -1, 3, -6, 20, 20, -6, 3, -1, 0
align SECTION_ALIGN
FIR_R12: dw -1, 3, -6, 20, 20, -6, 3, -1
FIR_R13: dw 0, -1, 3, -6, 20, 20, -6, 3
FIR_R14: dw 0, 0, -1, 3, -6, 20, 20, -7
FIR_R15: dw 0, 0, 0, -1, 3, -6, 19, 23
FIR_R16: dw -1, 2, -3, 14
%endif ; !USE_TABLES
; V-Pass taps
align SECTION_ALIGN
FIR_Cm7: times 4 dw -7
FIR_Cm6: times 4 dw -6
FIR_Cm3: times 4 dw -3
FIR_Cm1: times 4 dw -1
FIR_C2: times 4 dw 2
FIR_C3: times 4 dw 3
FIR_C14: times 4 dw 14
FIR_C19: times 4 dw 19
FIR_C20: times 4 dw 20
FIR_C23: times 4 dw 23
TEXT
;//////////////////////////////////////////////////////////////////////
;// Here we go with the Q-Pel mess.
;// For horizontal passes, we process 4 *output* pixel in parallel
;// For vertical ones, we process 4 *input* pixel in parallel.
;//////////////////////////////////////////////////////////////////////
%ifdef ARCH_IS_X86_64
%macro XVID_MOVQ 3
lea r9, [%2]
movq %1, [r9 + %3]
%endmacro
%macro XVID_PADDW 3
lea r9, [%2]
paddw %1, [r9 + %3]
%endmacro
%define SRC_PTR prm2
%define DST_PTR prm1
%else
%macro XVID_MOVQ 3
movq %1, [%2 + %3]
%endmacro
%macro XVID_PADDW 3
paddw %1, [%2 + %3]
%endmacro
%define SRC_PTR _ESI
%define DST_PTR _EDI
%endif
%macro PROLOG_NO_AVRG 0
mov TMP0, prm3 ; Size
mov TMP1, prm4 ; BpS
mov eax, prm5d ; Rnd
%ifndef ARCH_IS_X86_64
push SRC_PTR
push DST_PTR
%endif
push _EBP
mov _EBP, TMP1
%ifndef ARCH_IS_X86_64
mov DST_PTR, [_ESP+16 + 0*4] ; Dst
mov SRC_PTR, [_ESP+16 + 1*4] ; Src
%endif
and _EAX, 1
lea TMP1, [Rounder_QP_MMX]
movq mm7, [TMP1+_EAX*8] ; rounder
%endmacro
%macro EPILOG_NO_AVRG 0
pop _EBP
%ifndef ARCH_IS_X86_64
pop DST_PTR
pop SRC_PTR
%endif
ret
%endmacro
%macro PROLOG_AVRG 0
mov TMP0, prm3 ; Size
mov TMP1, prm4 ; BpS
mov eax, prm5d ; Rnd
push _EBX
push _EBP
%ifndef ARCH_IS_X86_64
push SRC_PTR
push DST_PTR
%endif
mov _EBP, TMP1
%ifndef ARCH_IS_X86_64
mov DST_PTR, [_ESP+20 + 0*4] ; Dst
mov SRC_PTR, [_ESP+20 + 1*4] ; Src
%endif
and _EAX, 1
lea TMP1, [Rounder_QP_MMX]
movq mm7, [TMP1+_EAX*8] ; rounder
lea TMP1, [Rounder1_MMX]
lea _EBX, [TMP1+_EAX*8] ; *Rounder2
%endmacro
%macro EPILOG_AVRG 0
%ifndef ARCH_IS_X86_64
pop DST_PTR
pop SRC_PTR
%endif
pop _EBP
pop _EBX
ret
%endmacro
;//////////////////////////////////////////////////////////////////////
;//
;// All horizontal passes
;//
;//////////////////////////////////////////////////////////////////////
; macros for USE_TABLES
%macro TLOAD 2 ; %1,%2: src pixels
movzx _EAX, byte [SRC_PTR+%1]
movzx TMP1, byte [SRC_PTR+%2]
XVID_MOVQ mm0, xvid_FIR_14_3_2_1, _EAX*8
XVID_MOVQ mm3, xvid_FIR_1_2_3_14, TMP1*8
paddw mm0, mm7
paddw mm3, mm7
%endmacro
%macro TACCUM2 5 ;%1:src pixel/%2-%3:Taps tables/ %4-%5:dst regs
movzx _EAX, byte [SRC_PTR+%1]
XVID_PADDW %4, %2, _EAX*8
XVID_PADDW %5, %3, _EAX*8
%endmacro
%macro TACCUM3 7 ;%1:src pixel/%2-%4:Taps tables/%5-%7:dst regs
movzx _EAX, byte [SRC_PTR+%1]
XVID_PADDW %5, %2, _EAX*8
XVID_PADDW %6, %3, _EAX*8
XVID_PADDW %7, %4, _EAX*8
%endmacro
;//////////////////////////////////////////////////////////////////////
; macros without USE_TABLES
%macro LOAD 2 ; %1,%2: src pixels
movzx _EAX, byte [SRC_PTR+%1]
movzx TMP1, byte [SRC_PTR+%2]
XVID_MOVQ mm0, xvid_Expand_mmx, _EAX*8
XVID_MOVQ mm3, xvid_Expand_mmx, TMP1*8
pmullw mm0, [FIR_R0 ]
pmullw mm3, [FIR_R16]
paddw mm0, mm7
paddw mm3, mm7
%endmacro
%macro ACCUM2 4 ;src pixel/Taps/dst regs #1-#2
movzx _EAX, byte [SRC_PTR+%1]
XVID_MOVQ mm4, xvid_Expand_mmx, _EAX*8
movq mm5, mm4
pmullw mm4, [%2]
pmullw mm5, [%2+8]
paddw %3, mm4
paddw %4, mm5
%endmacro
%macro ACCUM3 5 ;src pixel/Taps/dst regs #1-#2-#3
movzx _EAX, byte [SRC_PTR+%1]
XVID_MOVQ mm4, xvid_Expand_mmx, _EAX*8
movq mm5, mm4
movq mm6, mm5
pmullw mm4, [%2 ]
pmullw mm5, [%2+ 8]
pmullw mm6, [%2+16]
paddw %3, mm4
paddw %4, mm5
paddw %5, mm6
%endmacro
;//////////////////////////////////////////////////////////////////////
%macro MIX 3 ; %1:reg, %2:src, %3:rounder
pxor mm6, mm6
movq mm4, [%2]
movq mm1, %1
movq mm5, mm4
punpcklbw %1, mm6
punpcklbw mm4, mm6
punpckhbw mm1, mm6
punpckhbw mm5, mm6
movq mm6, [%3] ; rounder #2
paddusw %1, mm4
paddusw mm1, mm5
paddusw %1, mm6
paddusw mm1, mm6
psrlw %1, 1
psrlw mm1, 1
packuswb %1, mm1
%endmacro
;//////////////////////////////////////////////////////////////////////
%macro H_PASS_16 2 ; %1:src-op (0=NONE,1=AVRG,2=AVRG-UP), %2:dst-op (NONE/AVRG)
%if (%2==0) && (%1==0)
PROLOG_NO_AVRG
%else
PROLOG_AVRG
%endif
.Loop:
; mm0..mm3 serves as a 4x4 delay line
%ifndef USE_TABLES
LOAD 0, 16 ; special case for 1rst/last pixel
movq mm1, mm7
movq mm2, mm7
ACCUM2 1, FIR_R1, mm0, mm1
ACCUM2 2, FIR_R2, mm0, mm1
ACCUM2 3, FIR_R3, mm0, mm1
ACCUM2 4, FIR_R4, mm0, mm1
ACCUM3 5, FIR_R5, mm0, mm1, mm2
ACCUM3 6, FIR_R6, mm0, mm1, mm2
ACCUM3 7, FIR_R7, mm0, mm1, mm2
ACCUM2 8, FIR_R8, mm1, mm2
ACCUM3 9, FIR_R9, mm1, mm2, mm3
ACCUM3 10, FIR_R10,mm1, mm2, mm3
ACCUM3 11, FIR_R11,mm1, mm2, mm3
ACCUM2 12, FIR_R12, mm2, mm3
ACCUM2 13, FIR_R13, mm2, mm3
ACCUM2 14, FIR_R14, mm2, mm3
ACCUM2 15, FIR_R15, mm2, mm3
%else
TLOAD 0, 16 ; special case for 1rst/last pixel
movq mm1, mm7
movq mm2, mm7
TACCUM2 1, xvid_FIR_23_19_6_3, xvid_FIR_1_0_0_0 , mm0, mm1
TACCUM2 2, xvid_FIR_7_20_20_6, xvid_FIR_3_1_0_0 , mm0, mm1
TACCUM2 3, xvid_FIR_3_6_20_20, xvid_FIR_6_3_1_0 , mm0, mm1
TACCUM2 4, xvid_FIR_1_3_6_20 , xvid_FIR_20_6_3_1, mm0, mm1
TACCUM3 5, xvid_FIR_0_1_3_6 , xvid_FIR_20_20_6_3, xvid_FIR_1_0_0_0 , mm0, mm1, mm2
TACCUM3 6, xvid_FIR_0_0_1_3 , xvid_FIR_6_20_20_6, xvid_FIR_3_1_0_0 , mm0, mm1, mm2
TACCUM3 7, xvid_FIR_0_0_0_1 , xvid_FIR_3_6_20_20, xvid_FIR_6_3_1_0 , mm0, mm1, mm2
TACCUM2 8, xvid_FIR_1_3_6_20 , xvid_FIR_20_6_3_1 , mm1, mm2
TACCUM3 9, xvid_FIR_0_1_3_6 , xvid_FIR_20_20_6_3, xvid_FIR_1_0_0_0, mm1, mm2, mm3
TACCUM3 10, xvid_FIR_0_0_1_3 , xvid_FIR_6_20_20_6, xvid_FIR_3_1_0_0, mm1, mm2, mm3
TACCUM3 11, xvid_FIR_0_0_0_1 , xvid_FIR_3_6_20_20, xvid_FIR_6_3_1_0, mm1, mm2, mm3
TACCUM2 12, xvid_FIR_1_3_6_20, xvid_FIR_20_6_3_1 , mm2, mm3
TACCUM2 13, xvid_FIR_0_1_3_6 , xvid_FIR_20_20_6_3, mm2, mm3
TACCUM2 14, xvid_FIR_0_0_1_3 , xvid_FIR_6_20_20_7, mm2, mm3
TACCUM2 15, xvid_FIR_0_0_0_1 , xvid_FIR_3_6_19_23, mm2, mm3
%endif
psraw mm0, 5
psraw mm1, 5
psraw mm2, 5
psraw mm3, 5
packuswb mm0, mm1
packuswb mm2, mm3
%if (%1==1)
MIX mm0, SRC_PTR, _EBX
%elif (%1==2)
MIX mm0, SRC_PTR+1, _EBX
%endif
%if (%2==1)
MIX mm0, DST_PTR, Rounder1_MMX
%endif
%if (%1==1)
MIX mm2, SRC_PTR+8, _EBX
%elif (%1==2)
MIX mm2, SRC_PTR+9, _EBX
%endif
%if (%2==1)
MIX mm2, DST_PTR+8, Rounder1_MMX
%endif
lea SRC_PTR, [SRC_PTR+_EBP]
movq [DST_PTR+0], mm0
movq [DST_PTR+8], mm2
add DST_PTR, _EBP
dec TMP0
jg .Loop
%if (%2==0) && (%1==0)
EPILOG_NO_AVRG
%else
EPILOG_AVRG
%endif
%endmacro
;//////////////////////////////////////////////////////////////////////
%macro H_PASS_8 2 ; %1:src-op (0=NONE,1=AVRG,2=AVRG-UP), %2:dst-op (NONE/AVRG)
%if (%2==0) && (%1==0)
PROLOG_NO_AVRG
%else
PROLOG_AVRG
%endif
.Loop:
; mm0..mm3 serves as a 4x4 delay line
%ifndef USE_TABLES
LOAD 0, 8 ; special case for 1rst/last pixel
ACCUM2 1, FIR_R1, mm0, mm3
ACCUM2 2, FIR_R2, mm0, mm3
ACCUM2 3, FIR_R3, mm0, mm3
ACCUM2 4, FIR_R4, mm0, mm3
ACCUM2 5, FIR_R13, mm0, mm3
ACCUM2 6, FIR_R14, mm0, mm3
ACCUM2 7, FIR_R15, mm0, mm3
%else
%if 0 ; test with no unrolling
TLOAD 0, 8 ; special case for 1rst/last pixel
TACCUM2 1, xvid_FIR_23_19_6_3, xvid_FIR_1_0_0_0 , mm0, mm3
TACCUM2 2, xvid_FIR_7_20_20_6, xvid_FIR_3_1_0_0 , mm0, mm3
TACCUM2 3, xvid_FIR_3_6_20_20, xvid_FIR_6_3_1_0 , mm0, mm3
TACCUM2 4, xvid_FIR_1_3_6_20 , xvid_FIR_20_6_3_1 , mm0, mm3
TACCUM2 5, xvid_FIR_0_1_3_6 , xvid_FIR_20_20_6_3, mm0, mm3
TACCUM2 6, xvid_FIR_0_0_1_3 , xvid_FIR_6_20_20_7, mm0, mm3
TACCUM2 7, xvid_FIR_0_0_0_1 , xvid_FIR_3_6_19_23, mm0, mm3
%else ; test with unrolling (little faster, but not much)
movzx _EAX, byte [SRC_PTR]
movzx TMP1, byte [SRC_PTR+8]
XVID_MOVQ mm0, xvid_FIR_14_3_2_1, _EAX*8
movzx _EAX, byte [SRC_PTR+1]
XVID_MOVQ mm3, xvid_FIR_1_2_3_14, TMP1*8
paddw mm0, mm7
paddw mm3, mm7
movzx TMP1, byte [SRC_PTR+2]
XVID_PADDW mm0, xvid_FIR_23_19_6_3, _EAX*8
XVID_PADDW mm3, xvid_FIR_1_0_0_0, _EAX*8
movzx _EAX, byte [SRC_PTR+3]
XVID_PADDW mm0, xvid_FIR_7_20_20_6, TMP1*8
XVID_PADDW mm3, xvid_FIR_3_1_0_0, TMP1*8
movzx TMP1, byte [SRC_PTR+4]
XVID_PADDW mm0, xvid_FIR_3_6_20_20, _EAX*8
XVID_PADDW mm3, xvid_FIR_6_3_1_0, _EAX*8
movzx _EAX, byte [SRC_PTR+5]
XVID_PADDW mm0, xvid_FIR_1_3_6_20, TMP1*8
XVID_PADDW mm3, xvid_FIR_20_6_3_1, TMP1*8
movzx TMP1, byte [SRC_PTR+6]
XVID_PADDW mm0, xvid_FIR_0_1_3_6, _EAX*8
XVID_PADDW mm3, xvid_FIR_20_20_6_3, _EAX*8
movzx _EAX, byte [SRC_PTR+7]
XVID_PADDW mm0, xvid_FIR_0_0_1_3, TMP1*8
XVID_PADDW mm3, xvid_FIR_6_20_20_7, TMP1*8
XVID_PADDW mm0, xvid_FIR_0_0_0_1, _EAX*8
XVID_PADDW mm3, xvid_FIR_3_6_19_23, _EAX*8
%endif
%endif ; !USE_TABLES
psraw mm0, 5
psraw mm3, 5
packuswb mm0, mm3
%if (%1==1)
MIX mm0, SRC_PTR, _EBX
%elif (%1==2)
MIX mm0, SRC_PTR+1, _EBX
%endif
%if (%2==1)
MIX mm0, DST_PTR, Rounder1_MMX
%endif
movq [DST_PTR], mm0
add DST_PTR, _EBP
add SRC_PTR, _EBP
dec TMP0
jg .Loop
%if (%2==0) && (%1==0)
EPILOG_NO_AVRG
%else
EPILOG_AVRG
%endif
%endmacro
;//////////////////////////////////////////////////////////////////////
;// 16x? copy Functions
xvid_H_Pass_16_mmx:
H_PASS_16 0, 0
ENDFUNC
xvid_H_Pass_Avrg_16_mmx:
H_PASS_16 1, 0
ENDFUNC
xvid_H_Pass_Avrg_Up_16_mmx:
H_PASS_16 2, 0
ENDFUNC
;//////////////////////////////////////////////////////////////////////
;// 8x? copy Functions
xvid_H_Pass_8_mmx:
H_PASS_8 0, 0
ENDFUNC
xvid_H_Pass_Avrg_8_mmx:
H_PASS_8 1, 0
ENDFUNC
xvid_H_Pass_Avrg_Up_8_mmx:
H_PASS_8 2, 0
ENDFUNC
;//////////////////////////////////////////////////////////////////////
;// 16x? avrg Functions
xvid_H_Pass_Add_16_mmx:
H_PASS_16 0, 1
ENDFUNC
xvid_H_Pass_Avrg_Add_16_mmx:
H_PASS_16 1, 1
ENDFUNC
xvid_H_Pass_Avrg_Up_Add_16_mmx:
H_PASS_16 2, 1
ENDFUNC
;//////////////////////////////////////////////////////////////////////
;// 8x? avrg Functions
xvid_H_Pass_8_Add_mmx:
H_PASS_8 0, 1
ENDFUNC
xvid_H_Pass_Avrg_8_Add_mmx:
H_PASS_8 1, 1
ENDFUNC
xvid_H_Pass_Avrg_Up_8_Add_mmx:
H_PASS_8 2, 1
ENDFUNC
;//////////////////////////////////////////////////////////////////////
;//
;// All vertical passes
;//
;//////////////////////////////////////////////////////////////////////
%macro V_LOAD 1 ; %1=Last?
movd mm4, dword [TMP1]
pxor mm6, mm6
%if (%1==0)
add TMP1, _EBP
%endif
punpcklbw mm4, mm6
%endmacro
%macro V_ACC1 2 ; %1:reg; 2:tap
pmullw mm4, [%2]
paddw %1, mm4
%endmacro
%macro V_ACC2 4 ; %1-%2: regs, %3-%4: taps
movq mm5, mm4
movq mm6, mm4
pmullw mm5, [%3]
pmullw mm6, [%4]
paddw %1, mm5
paddw %2, mm6
%endmacro
%macro V_ACC2l 4 ; %1-%2: regs, %3-%4: taps
movq mm5, mm4
pmullw mm5, [%3]
pmullw mm4, [%4]
paddw %1, mm5
paddw %2, mm4
%endmacro
%macro V_ACC4 8 ; %1-%4: regs, %5-%8: taps
V_ACC2 %1,%2, %5,%6
V_ACC2l %3,%4, %7,%8
%endmacro
%macro V_MIX 3 ; %1:dst-reg, %2:src, %3: rounder
pxor mm6, mm6
movq mm4, [%2]
punpcklbw %1, mm6
punpcklbw mm4, mm6
paddusw %1, mm4
paddusw %1, [%3]
psrlw %1, 1
packuswb %1, %1
%endmacro
%macro V_STORE 4 ; %1-%2: mix ops, %3: reg, %4:last?
psraw %3, 5
packuswb %3, %3
%if (%1==1)
V_MIX %3, SRC_PTR, _EBX
add SRC_PTR, _EBP
%elif (%1==2)
add SRC_PTR, _EBP
V_MIX %3, SRC_PTR, _EBX
%endif
%if (%2==1)
V_MIX %3, DST_PTR, Rounder1_MMX
%endif
movd eax, %3
mov dword [DST_PTR], eax
%if (%4==0)
add DST_PTR, _EBP
%endif
%endmacro
;//////////////////////////////////////////////////////////////////////
%macro V_PASS_16 2 ; %1:src-op (0=NONE,1=AVRG,2=AVRG-UP), %2:dst-op (NONE/AVRG)
%if (%2==0) && (%1==0)
PROLOG_NO_AVRG
%else
PROLOG_AVRG
%endif
; we process one stripe of 4x16 pixel each time.
; the size (3rd argument) is meant to be a multiple of 4
; mm0..mm3 serves as a 4x4 delay line
.Loop:
push DST_PTR
push SRC_PTR ; SRC_PTR is preserved for src-mixing
mov TMP1, SRC_PTR
; ouput rows [0..3], from input rows [0..8]
movq mm0, mm7
movq mm1, mm7
movq mm2, mm7
movq mm3, mm7
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_C14, FIR_Cm3, FIR_C2, FIR_Cm1
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_C23, FIR_C19, FIR_Cm6, FIR_C3
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_Cm7, FIR_C20, FIR_C20, FIR_Cm6
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_C3, FIR_Cm6, FIR_C20, FIR_C20
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_Cm1, FIR_C3, FIR_Cm6, FIR_C20
V_STORE %1, %2, mm0, 0
V_LOAD 0
V_ACC2 mm1, mm2, FIR_Cm1, FIR_C3
V_ACC1 mm3, FIR_Cm6
V_STORE %1, %2, mm1, 0
V_LOAD 0
V_ACC2l mm2, mm3, FIR_Cm1, FIR_C3
V_STORE %1, %2, mm2, 0
V_LOAD 1
V_ACC1 mm3, FIR_Cm1
V_STORE %1, %2, mm3, 0
; ouput rows [4..7], from input rows [1..11] (!!)
mov SRC_PTR, [_ESP]
lea TMP1, [SRC_PTR+_EBP]
lea SRC_PTR, [SRC_PTR+4*_EBP] ; for src-mixing
push SRC_PTR ; this will be the new value for next round
movq mm0, mm7
movq mm1, mm7
movq mm2, mm7
movq mm3, mm7
V_LOAD 0
V_ACC1 mm0, FIR_Cm1
V_LOAD 0
V_ACC2l mm0, mm1, FIR_C3, FIR_Cm1
V_LOAD 0
V_ACC2 mm0, mm1, FIR_Cm6, FIR_C3
V_ACC1 mm2, FIR_Cm1
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_C20, FIR_Cm6, FIR_C3, FIR_Cm1
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_C20, FIR_C20, FIR_Cm6, FIR_C3
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_Cm6, FIR_C20, FIR_C20, FIR_Cm6
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_C3, FIR_Cm6, FIR_C20, FIR_C20
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_Cm1, FIR_C3, FIR_Cm6, FIR_C20
V_STORE %1, %2, mm0, 0
V_LOAD 0
V_ACC2 mm1, mm2, FIR_Cm1, FIR_C3
V_ACC1 mm3, FIR_Cm6
V_STORE %1, %2, mm1, 0
V_LOAD 0
V_ACC2l mm2, mm3, FIR_Cm1, FIR_C3
V_STORE %1, %2, mm2, 0
V_LOAD 1
V_ACC1 mm3, FIR_Cm1
V_STORE %1, %2, mm3, 0
; ouput rows [8..11], from input rows [5..15]
pop SRC_PTR
lea TMP1, [SRC_PTR+_EBP]
lea SRC_PTR, [SRC_PTR+4*_EBP] ; for src-mixing
push SRC_PTR ; this will be the new value for next round
movq mm0, mm7
movq mm1, mm7
movq mm2, mm7
movq mm3, mm7
V_LOAD 0
V_ACC1 mm0, FIR_Cm1
V_LOAD 0
V_ACC2l mm0, mm1, FIR_C3, FIR_Cm1
V_LOAD 0
V_ACC2 mm0, mm1, FIR_Cm6, FIR_C3
V_ACC1 mm2, FIR_Cm1
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_C20, FIR_Cm6, FIR_C3, FIR_Cm1
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_C20, FIR_C20, FIR_Cm6, FIR_C3
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_Cm6, FIR_C20, FIR_C20, FIR_Cm6
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_C3, FIR_Cm6, FIR_C20, FIR_C20
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_Cm1, FIR_C3, FIR_Cm6, FIR_C20
V_STORE %1, %2, mm0, 0
V_LOAD 0
V_ACC2 mm1, mm2, FIR_Cm1, FIR_C3
V_ACC1 mm3, FIR_Cm6
V_STORE %1, %2, mm1, 0
V_LOAD 0
V_ACC2l mm2, mm3, FIR_Cm1, FIR_C3
V_STORE %1, %2, mm2, 0
V_LOAD 1
V_ACC1 mm3, FIR_Cm1
V_STORE %1, %2, mm3, 0
; ouput rows [12..15], from input rows [9.16]
pop SRC_PTR
lea TMP1, [SRC_PTR+_EBP]
%if (%1!=0)
lea SRC_PTR, [SRC_PTR+4*_EBP] ; for src-mixing
%endif
movq mm0, mm7
movq mm1, mm7
movq mm2, mm7
movq mm3, mm7
V_LOAD 0
V_ACC1 mm3, FIR_Cm1
V_LOAD 0
V_ACC2l mm2, mm3, FIR_Cm1, FIR_C3
V_LOAD 0
V_ACC2 mm1, mm2, FIR_Cm1, FIR_C3
V_ACC1 mm3, FIR_Cm6
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_Cm1, FIR_C3, FIR_Cm6, FIR_C20
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_C3, FIR_Cm6, FIR_C20, FIR_C20
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_Cm7, FIR_C20, FIR_C20, FIR_Cm6
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_C23, FIR_C19, FIR_Cm6, FIR_C3
V_LOAD 1
V_ACC4 mm0, mm1, mm2, mm3, FIR_C14, FIR_Cm3, FIR_C2, FIR_Cm1
V_STORE %1, %2, mm3, 0
V_STORE %1, %2, mm2, 0
V_STORE %1, %2, mm1, 0
V_STORE %1, %2, mm0, 1
; ... next 4 columns
pop SRC_PTR
pop DST_PTR
add SRC_PTR, 4
add DST_PTR, 4
sub TMP0, 4
jg .Loop
%if (%2==0) && (%1==0)
EPILOG_NO_AVRG
%else
EPILOG_AVRG
%endif
%endmacro
;//////////////////////////////////////////////////////////////////////
%macro V_PASS_8 2 ; %1:src-op (0=NONE,1=AVRG,2=AVRG-UP), %2:dst-op (NONE/AVRG)
%if (%2==0) && (%1==0)
PROLOG_NO_AVRG
%else
PROLOG_AVRG
%endif
; we process one stripe of 4x8 pixel each time
; the size (3rd argument) is meant to be a multiple of 4
; mm0..mm3 serves as a 4x4 delay line
.Loop:
push DST_PTR
push SRC_PTR ; SRC_PTR is preserved for src-mixing
mov TMP1, SRC_PTR
; ouput rows [0..3], from input rows [0..8]
movq mm0, mm7
movq mm1, mm7
movq mm2, mm7
movq mm3, mm7
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_C14, FIR_Cm3, FIR_C2, FIR_Cm1
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_C23, FIR_C19, FIR_Cm6, FIR_C3
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_Cm7, FIR_C20, FIR_C20, FIR_Cm6
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_C3, FIR_Cm6, FIR_C20, FIR_C20
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_Cm1, FIR_C3, FIR_Cm6, FIR_C20
V_STORE %1, %2, mm0, 0
V_LOAD 0
V_ACC2 mm1, mm2, FIR_Cm1, FIR_C3
V_ACC1 mm3, FIR_Cm6
V_STORE %1, %2, mm1, 0
V_LOAD 0
V_ACC2l mm2, mm3, FIR_Cm1, FIR_C3
V_STORE %1, %2, mm2, 0
V_LOAD 1
V_ACC1 mm3, FIR_Cm1
V_STORE %1, %2, mm3, 0
; ouput rows [4..7], from input rows [1..9]
mov SRC_PTR, [_ESP]
lea TMP1, [SRC_PTR+_EBP]
%if (%1!=0)
lea SRC_PTR, [SRC_PTR+4*_EBP] ; for src-mixing
%endif
movq mm0, mm7
movq mm1, mm7
movq mm2, mm7
movq mm3, mm7
V_LOAD 0
V_ACC1 mm3, FIR_Cm1
V_LOAD 0
V_ACC2l mm2, mm3, FIR_Cm1, FIR_C3
V_LOAD 0
V_ACC2 mm1, mm2, FIR_Cm1, FIR_C3
V_ACC1 mm3, FIR_Cm6
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_Cm1, FIR_C3, FIR_Cm6, FIR_C20
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_C3, FIR_Cm6, FIR_C20, FIR_C20
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_Cm7, FIR_C20, FIR_C20, FIR_Cm6
V_LOAD 0
V_ACC4 mm0, mm1, mm2, mm3, FIR_C23, FIR_C19, FIR_Cm6, FIR_C3
V_LOAD 1
V_ACC4 mm0, mm1, mm2, mm3, FIR_C14, FIR_Cm3, FIR_C2, FIR_Cm1
V_STORE %1, %2, mm3, 0
V_STORE %1, %2, mm2, 0
V_STORE %1, %2, mm1, 0
V_STORE %1, %2, mm0, 1
; ... next 4 columns
pop SRC_PTR
pop DST_PTR
add SRC_PTR, 4
add DST_PTR, 4
sub TMP0, 4
jg .Loop
%if (%2==0) && (%1==0)
EPILOG_NO_AVRG
%else
EPILOG_AVRG
%endif
%endmacro
;//////////////////////////////////////////////////////////////////////
;// 16x? copy Functions
xvid_V_Pass_16_mmx:
V_PASS_16 0, 0
ENDFUNC
xvid_V_Pass_Avrg_16_mmx:
V_PASS_16 1, 0
ENDFUNC
xvid_V_Pass_Avrg_Up_16_mmx:
V_PASS_16 2, 0
ENDFUNC
;//////////////////////////////////////////////////////////////////////
;// 8x? copy Functions
xvid_V_Pass_8_mmx:
V_PASS_8 0, 0
ENDFUNC
xvid_V_Pass_Avrg_8_mmx:
V_PASS_8 1, 0
ENDFUNC
xvid_V_Pass_Avrg_Up_8_mmx:
V_PASS_8 2, 0
ENDFUNC
;//////////////////////////////////////////////////////////////////////
;// 16x? avrg Functions
xvid_V_Pass_Add_16_mmx:
V_PASS_16 0, 1
ENDFUNC
xvid_V_Pass_Avrg_Add_16_mmx:
V_PASS_16 1, 1
ENDFUNC
xvid_V_Pass_Avrg_Up_Add_16_mmx:
V_PASS_16 2, 1
ENDFUNC
;//////////////////////////////////////////////////////////////////////
;// 8x? avrg Functions
xvid_V_Pass_8_Add_mmx:
V_PASS_8 0, 1
ENDFUNC
xvid_V_Pass_Avrg_8_Add_mmx:
V_PASS_8 1, 1
ENDFUNC
xvid_V_Pass_Avrg_Up_8_Add_mmx:
V_PASS_8 2, 1
ENDFUNC
;//////////////////////////////////////////////////////////////////////
%undef SRC_PTR
%undef DST_PTR
NON_EXEC_STACK
| 21.963573 | 107 | 0.616095 |
6949b61a61406c29d4a8a4e454b7dcb1427e9e0f | 9,550 | asm | Assembly | Transynther/x86/_processed/US/_st_4k_sm_/i9-9900K_12_0xa0.log_21829_540.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_st_4k_sm_/i9-9900K_12_0xa0.log_21829_540.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_st_4k_sm_/i9-9900K_12_0xa0.log_21829_540.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x160dd, %rsi
lea addresses_normal_ht+0x12bdd, %rdi
nop
inc %r11
mov $101, %rcx
rep movsl
nop
nop
sub $44293, %r13
lea addresses_WT_ht+0x1185d, %rsi
lea addresses_WT_ht+0x1abfd, %rdi
nop
nop
nop
cmp %rdx, %rdx
mov $121, %rcx
rep movsq
nop
xor %r11, %r11
lea addresses_WT_ht+0x735d, %rsi
lea addresses_D_ht+0x198dd, %rdi
nop
inc %r13
mov $41, %rcx
rep movsw
nop
and %rcx, %rcx
lea addresses_UC_ht+0x15625, %rsi
lea addresses_D_ht+0x12c09, %rdi
clflush (%rdi)
nop
nop
nop
nop
add %r10, %r10
mov $102, %rcx
rep movsb
nop
nop
nop
nop
cmp $865, %rdi
lea addresses_WC_ht+0xf7dd, %r11
nop
nop
nop
and $16381, %rcx
vmovups (%r11), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $1, %xmm1, %rdi
nop
sub %rdi, %rdi
lea addresses_WT_ht+0x1ca9d, %rsi
nop
nop
and $47965, %rdi
mov $0x6162636465666768, %r10
movq %r10, %xmm2
vmovups %ymm2, (%rsi)
nop
add $41569, %r13
lea addresses_UC_ht+0x1721d, %rsi
lea addresses_A_ht+0xad89, %rdi
nop
xor %rbp, %rbp
mov $50, %rcx
rep movsw
nop
nop
add %rcx, %rcx
lea addresses_A_ht+0x59cd, %rsi
lea addresses_normal_ht+0x19dd, %rdi
nop
nop
nop
nop
nop
and $47278, %r10
mov $16, %rcx
rep movsq
nop
nop
nop
nop
nop
add $62193, %r13
lea addresses_WC_ht+0x746, %rsi
nop
nop
nop
xor %r11, %r11
movb $0x61, (%rsi)
nop
nop
nop
nop
nop
dec %r13
lea addresses_UC_ht+0x14ddd, %rdi
nop
nop
add $32155, %r13
vmovups (%rdi), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $0, %xmm6, %r10
nop
dec %rcx
lea addresses_D_ht+0x86dd, %r11
nop
nop
nop
nop
nop
xor %rcx, %rcx
movb $0x61, (%r11)
nop
nop
nop
xor %rdi, %rdi
lea addresses_UC_ht+0x1d4ad, %rsi
lea addresses_D_ht+0x1773d, %rdi
nop
nop
nop
nop
and $19090, %r10
mov $29, %rcx
rep movsl
dec %r13
lea addresses_WT_ht+0x111d1, %r10
nop
nop
nop
nop
nop
add $8943, %rcx
mov $0x6162636465666768, %r13
movq %r13, (%r10)
nop
nop
nop
add $1053, %r13
lea addresses_normal_ht+0x14ac5, %rsi
lea addresses_WC_ht+0x3df5, %rdi
nop
nop
xor %r13, %r13
mov $123, %rcx
rep movsq
nop
and $1561, %r13
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r14
push %r15
push %rax
push %rdx
push %rsi
// Store
lea addresses_WC+0x33dd, %r14
add $52963, %r10
mov $0x5152535455565758, %rsi
movq %rsi, (%r14)
nop
dec %rax
// Store
lea addresses_A+0x3bdd, %r14
nop
nop
sub $375, %r15
movl $0x51525354, (%r14)
nop
sub %rax, %rax
// Store
lea addresses_US+0xefdd, %r15
xor %rsi, %rsi
mov $0x5152535455565758, %r10
movq %r10, (%r15)
nop
xor $21306, %rdx
// Store
mov $0xfdd, %r14
nop
nop
nop
cmp $8151, %r13
mov $0x5152535455565758, %rax
movq %rax, %xmm5
movups %xmm5, (%r14)
nop
nop
nop
nop
nop
dec %rax
// Store
lea addresses_A+0x205d, %rdx
nop
nop
nop
nop
and $50484, %rax
movl $0x51525354, (%rdx)
nop
add %r15, %r15
// Store
lea addresses_WC+0x1c45d, %rax
nop
nop
nop
nop
inc %rdx
mov $0x5152535455565758, %rsi
movq %rsi, %xmm2
vmovups %ymm2, (%rax)
and $17269, %r14
// Store
lea addresses_D+0x151ed, %rsi
nop
nop
nop
nop
nop
add $56900, %r13
mov $0x5152535455565758, %r10
movq %r10, %xmm1
movups %xmm1, (%rsi)
nop
nop
cmp %r15, %r15
// Faulty Load
lea addresses_US+0xefdd, %rsi
nop
nop
nop
dec %r10
mov (%rsi), %rax
lea oracles, %rdx
and $0xff, %rax
shlq $12, %rax
mov (%rdx,%rax,1), %rax
pop %rsi
pop %rdx
pop %rax
pop %r15
pop %r14
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_WC', 'AVXalign': False, 'size': 8}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_A', 'AVXalign': False, 'size': 4}}
{'OP': 'STOR', 'dst': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 8}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_P', 'AVXalign': False, 'size': 16}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_A', 'AVXalign': False, 'size': 4}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_WC', 'AVXalign': False, 'size': 32}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_D', 'AVXalign': False, 'size': 16}}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_normal_ht'}}
{'src': {'same': False, 'congruent': 6, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WT_ht'}}
{'src': {'same': False, 'congruent': 4, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}}
{'src': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 2, 'type': 'addresses_D_ht'}}
{'src': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32}}
{'src': {'same': False, 'congruent': 6, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_A_ht'}}
{'src': {'same': False, 'congruent': 2, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_normal_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1}}
{'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': True, 'same': True, 'congruent': 6, 'type': 'addresses_D_ht', 'AVXalign': True, 'size': 1}}
{'src': {'same': False, 'congruent': 4, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8}}
{'src': {'same': False, 'congruent': 3, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_WC_ht'}}
{'58': 21829}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 30.608974 | 2,999 | 0.65623 |
bf8be17f8b289efd9c032c1435343e0fc53bbb48 | 559 | asm | Assembly | oeis/017/A017290.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/017/A017290.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/017/A017290.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A017290: a(n) = (10*n + 1)^10.
; 1,25937424601,16679880978201,819628286980801,13422659310152401,119042423827613001,713342911662882601,3255243551009881201,12157665459056928801,38941611811810745401,110462212541120451001,283942098606901565601,672749994932560009201,1488377021731616101801,3105926159393528563401,6162677950336718514001,11701964070276793473601,21377706189197971362201,37738596846955704499801,64615048177878503606401,107636749520976961802001,174913992535407978606601,277921878692682183940201,432633155225742562122801
mul $0,10
add $0,1
pow $0,10
| 79.857143 | 495 | 0.898032 |
baa0ecd6170746aa93e8447b5e08b9d0ca1bd365 | 382 | asm | Assembly | 2x3/BLM2021 - x86 ASM/Examples/051219b.asm | LyotardPostmodernizm/YTU-CE | 99d7fc9526640f08478d72503a0784eb401066ac | [
"WTFPL"
] | 1 | 2021-10-31T12:36:02.000Z | 2021-10-31T12:36:02.000Z | 2x3/BLM2021 - x86 ASM/Examples/051219b.asm | LyotardPostmodernizm/YTU-CE | 99d7fc9526640f08478d72503a0784eb401066ac | [
"WTFPL"
] | null | null | null | 2x3/BLM2021 - x86 ASM/Examples/051219b.asm | LyotardPostmodernizm/YTU-CE | 99d7fc9526640f08478d72503a0784eb401066ac | [
"WTFPL"
] | null | null | null | PUBLIC SIRALIMI
EXTRN dizi:BYTE, n:WORD
my_code SEGMENT PARA 'kod'
ASSUME CS:my_code
SIRALIMI PROC FAR
PUSH SI
PUSH CX
XOR AX, AX
XOR SI, SI
MOV CX, n
DEC CX
don: CMP SI, CX
JAE sirali
MOV AH, dizi[SI]
CMP AH, dizi[SI+1]
JG sirasiz
INC SI
JMP don
sirasiz:MOV AL, 1
sirali: POP CX
POP SI
RETF
SIRALIMI ENDP
my_code ENDS
END | 15.28 | 27 | 0.63089 |
24004b64d564541833cb3c08364d3af1cb72512f | 1,648 | asm | Assembly | programs/oeis/186/A186030.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/186/A186030.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/186/A186030.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A186030: a(n) = n*(13*n-3)/2.
; 0,5,23,54,98,155,225,308,404,513,635,770,918,1079,1253,1440,1640,1853,2079,2318,2570,2835,3113,3404,3708,4025,4355,4698,5054,5423,5805,6200,6608,7029,7463,7910,8370,8843,9329,9828,10340,10865,11403,11954,12518,13095,13685,14288,14904,15533,16175,16830,17498,18179,18873,19580,20300,21033,21779,22538,23310,24095,24893,25704,26528,27365,28215,29078,29954,30843,31745,32660,33588,34529,35483,36450,37430,38423,39429,40448,41480,42525,43583,44654,45738,46835,47945,49068,50204,51353,52515,53690,54878,56079,57293,58520,59760,61013,62279,63558,64850,66155,67473,68804,70148,71505,72875,74258,75654,77063,78485,79920,81368,82829,84303,85790,87290,88803,90329,91868,93420,94985,96563,98154,99758,101375,103005,104648,106304,107973,109655,111350,113058,114779,116513,118260,120020,121793,123579,125378,127190,129015,130853,132704,134568,136445,138335,140238,142154,144083,146025,147980,149948,151929,153923,155930,157950,159983,162029,164088,166160,168245,170343,172454,174578,176715,178865,181028,183204,185393,187595,189810,192038,194279,196533,198800,201080,203373,205679,207998,210330,212675,215033,217404,219788,222185,224595,227018,229454,231903,234365,236840,239328,241829,244343,246870,249410,251963,254529,257108,259700,262305,264923,267554,270198,272855,275525,278208,280904,283613,286335,289070,291818,294579,297353,300140,302940,305753,308579,311418,314270,317135,320013,322904,325808,328725,331655,334598,337554,340523,343505,346500,349508,352529,355563,358610,361670,364743,367829,370928,374040,377165,380303,383454,386618,389795,392985,396188,399404,402633
mul $0,13
sub $0,1
bin $0,2
mov $1,$0
div $1,13
| 183.111111 | 1,566 | 0.823422 |
55922be9dfc93f8e5c46827cb2f805c4b2d7105c | 5,222 | asm | Assembly | Tables/logtable.asm | TinfoilAsteroid/EliteNext | 417511cefd3d5c7dd7a46b0354eec801ea2c9ca2 | [
"Unlicense"
] | 9 | 2021-09-29T22:08:15.000Z | 2022-03-23T05:35:43.000Z | Tables/logtable.asm | TinfoilAsteroid/EliteNext | 417511cefd3d5c7dd7a46b0354eec801ea2c9ca2 | [
"Unlicense"
] | 1 | 2022-01-21T12:35:42.000Z | 2022-01-21T17:47:24.000Z | Tables/logtable.asm | TinfoilAsteroid/EliteNext | 417511cefd3d5c7dd7a46b0354eec801ea2c9ca2 | [
"Unlicense"
] | 1 | 2022-01-15T10:13:49.000Z | 2022-01-15T10:13:49.000Z | LogTable: DW $0000 ; 0
DW $0000, $2006, $320F, $400D, $4AEC, $5216, $59C2, $6013 ; 8
DW $651E, $6AF2, $6E9A, $721C, $7680, $79C9, $7DFB, $801A ; 16
DW $8227, $8525, $8715, $8AF9, $8CD2, $8EA0, $9066, $9223 ; 24
DW $94D8, $9686, $982E, $99CF, $9B6B, $9D02, $9E93, $A020 ; 32
DW $A1A9, $A22E, $A4AE, $A52C, $A6A5, $A71C, $A98F, $AA00 ; 40
DW $AB6D, $ACD8, $AD41, $AEA7, $AF0B, $B06C, $B1CC, $B229 ; 48
DW $B385, $B4DF, $B537, $B68D, $B7E1, $B834, $B986, $B9D6 ; 56
DW $BA25, $BB72, $BCBE, $BD08, $BD52, $BE9A, $BFE1, $C027 ; 64
DW $C06C, $C1B0, $C2F2, $C234, $C375, $C4B5, $C4F4, $C532 ; 72
DW $C66F, $C6AC, $C7E7, $C722, $C85C, $C996, $C9CE, $CA06 ; 80
DW $CA3D, $CB74, $CCAA, $CCDF, $CD13, $CD47, $CE7B, $CEAD ; 88
DW $CFE0, $CF11, $D042, $D073, $D1A3, $D1D2, $D201, $D230 ; 96
DW $D35E, $D38B, $D4B9, $D4E5, $D511, $D53D, $D568, $D693 ; 104
DW $D6BE, $D7E8, $D712, $D83B, $D864, $D98C, $D9B5, $D9DD ; 112
DW $DA04, $DA2B, $DB52, $DB78, $DB9E, $DCC4, $DCEA, $DD0F ; 120
DW $DD34, $DD58, $DE7D, $DEA1, $DEC4, $DFE8, $DF0B, $E02E ; 128
DW $E050, $E072, $E194, $E1B6, $E1D8, $E2F9, $E21A, $E23B ; 136
DW $E35B, $E37C, $E39C, $E4BC, $E4DB, $E4FB, $E51A, $E539 ; 144
DW $E557, $E676, $E694, $E6B2, $E7D0, $E7EE, $E70C, $E729 ; 152
DW $E846, $E863, $E880, $E99C, $E9B9, $E9D5, $EAF1, $EA0D ; 160
DW $EA28, $EA44, $EB5F, $EB7A, $EB95, $ECB0, $ECCB, $ECE5 ; 168
DW $EC00, $ED1A, $ED34, $ED4E, $ED68, $EE81, $EE9B, $EEB4 ; 176
DW $EECD, $EFE6, $EFFF, $EF18, $EF30, $F049, $F061, $F079 ; 184
DW $F191, $F1A9, $F1C1, $F1D9, $F1F0, $F208, $F21F, $F236 ; 192
DW $F24E, $F364, $F37B, $F392, $F3A9, $F4BF, $F4D5, $F4EC ; 200
DW $F402, $F518, $F52E, $F544, $F559, $F56F, $F685, $F69A ; 208
DW $F6AF, $F6C4, $F7DA, $F7EF, $F703, $F718, $F72D, $F842 ; 216
DW $F856, $F86B, $F87F, $F993, $F9A7, $F9BB, $F9CF, $F9E3 ; 224
DW $FAF7, $FA0B, $FA1E, $FA32, $FA45, $FB58, $FB6C, $FB7F ; 232
DW $FB92, $FBA5, $FCB8, $FCCB, $FCDE, $FCF0, $FC03, $FD16 ; 240
DW $FD28, $FD3A, $FD4D, $FD5F, $FD71, $FE83, $FE95, $FEA7 ; 248
DW $FEB9, $FECB, $FFDD, $FFEE, $FF00, $FF11, $FF23 ; 255
LogReverseHighByte: DW $00, 000, $20, 002, $32, 003, $40, 004, $4A, 005, $52, 006
DW $59, 007, $60, 008, $65, 009, $6A, 010, $6E, 011, $72, 012
DW $76, 013, $79, 014, $7D, 015, $80, 016, $82, 017, $85, 018
DW $87, 019, $8A, 020, $8C, 021, $8E, 022, $90, 023, $92, 024
DW $94, 025, $96, 026, $98, 027, $99, 028, $9B, 029, $9D, 030
DW $9E, 031, $A0, 032, $A1, 033, $A2, 034, $A4, 035, $A5, 036
DW $A6, 037, $A7, 038, $A9, 039, $AA, 040, $AB, 041, $AC, 042
DW $AD, 043, $AE, 044, $AF, 045, $B0, 046, $B1, 047, $B2, 048
DW $B3, 049, $B4, 050, $B5, 051, $B6, 052, $B7, 053, $B8, 054
DW $B9, 056, $B9, 056, $BA, 057, $BB, 058, $BC, 059, $BD, 060
DW $BE, 062, $BF, 063, $C0, 064, $C1, 066, $C2, 067, $C3, 069
DW $C4, 070, $C5, 072, $C6, 072, $C7, 074, $C8, 076, $C9, 077
DW $CA, 080, $CB, 082, $CC, 083, $CD, 085, $CE, 087, $CF, 088
DW $D0, 090, $D1, 092, $D2, 094, $D3, 097, $D4, 100, $D5, 102
DW $D6, 104, $D6, 105, $D7, 106, $D7, 107, $D8, 108, $D8, 109
DW $D9, 110, $D9, 111, $D9, 112, $DA, 113, $DB, 114, $DC, 117
DW $DD, 120, $DE, 123, $DF, 126, $E0, 128, $E1, 131, $E2, 134
DW $E3, 137, $E4, 140, $E5, 143, $E6, 146, $E7, 149, $E8, 153
DW $E9, 156, $EA, 159, $EB, 163, $EC, 166, $ED, 170, $EE, 174
DW $EF, 178, $F0, 182, $F1, 185, $F2, 190, $F3, 194, $F4, 198
DW $F5, 202, $F6, 207, $F7, 211, $F8, 216, $F8, 217, $F9, 220
DW $FA, 225, $FB, 230, $FB, 233, $FC, 235, $FD, 240, $FE, 246
DW $FF, 251
LogReverseTableLen: EQU $ - LogReverseHighByte | 90.034483 | 97 | 0.37342 |
ed7866b23def5afe1a43baf309d94f5429eae2e0 | 438 | asm | Assembly | oeis/302/A302710.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/302/A302710.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/302/A302710.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A302710: a(n) = trinomial(2*n, 4) = (1/6)*n*(2*n - 1)*(2*n^2 + 7*n - 3).
; Submitted by Jon Maiga
; 0,1,19,90,266,615,1221,2184,3620,5661,8455,12166,16974,23075,30681,40020,51336,64889,80955,99826,121810,147231,176429,209760,247596,290325,338351,392094,451990,518491,592065,673196,762384,860145,967011,1083530,1210266,1347799,1496725,1657656,1831220
mul $0,2
mov $1,3
add $1,$0
mul $1,$0
bin $0,2
sub $1,3
sub $1,$0
mul $0,$1
div $0,6
| 31.285714 | 251 | 0.69863 |
6bef6839f31739236005103718b5d06f503cdbe5 | 6,476 | asm | Assembly | MSDOS/Virus.MSDOS.Unknown.doors.asm | fengjixuchui/Family | 2abe167082817d70ff2fd6567104ce4bcf0fe304 | [
"MIT"
] | 3 | 2021-05-15T15:57:13.000Z | 2022-03-16T09:11:05.000Z | MSDOS/Virus.MSDOS.Unknown.doors.asm | fengjixuchui/Family | 2abe167082817d70ff2fd6567104ce4bcf0fe304 | [
"MIT"
] | null | null | null | MSDOS/Virus.MSDOS.Unknown.doors.asm | fengjixuchui/Family | 2abe167082817d70ff2fd6567104ce4bcf0fe304 | [
"MIT"
] | 3 | 2021-05-15T15:57:15.000Z | 2022-01-08T20:51:04.000Z | title DOORS.ASM - Switch Color/Mono Screens On Keyboard Request
;
VECTORS segment at 0h ; 8088 / 80286 Interrupt Vector Area
org 9h*4 ; IBM PC Keyboard is Int 9H
KB_INT_VECTOR label dword ; Double word label
;
VECTORS ends
;
ROM_BIOS_DATA segment at 40h ; Low Memory "BIOS" Parameters
;
org 10h ; Location of EQUIP_FLAG
EQUIP_FLAG dw ? ; Contains video settings
; in bits 4 and 5
;
org 17h ; Location of KB_FLAG
KB_FLAG db ? ; Contains Alt (bit 3) &
; Right Shift (bit 0) States
ROM_BIOS_DATA ends
;
; Initialization Routine
;
CODE_SEG segment
assume cs:CODE_SEG
org 100h ; COM program format
BEGIN: jmp SWAP_VECTORS ; Initialize vectors and attach to DOS
;
ROM_KB_INT dd 0 ; Double word to save address of
; ROM-BIOS keyboard interrupt
; DOORS_INT intercepts the keyboard interrupt and switches
; screens if [Alt]-[Right Shift] combination is pressed
;
DOORS_INT proc near
assume ds:nothing
push ds ; Push all affected registers
push es
push ax
push bx
push cx
push dx
push si
push di
;
pushf ; Push Flags for fake interrupt call
call ROM_KB_INT ; to BIOS program to read keyboard
;
assume ds:ROM_BIOS_DATA ; Define data segment to read
mov ax,ROM_BIOS_DATA ; keyboard flag & equipment flag
mov ds,ax
mov al,KB_FLAG ; Get keyboard flag
and al,09h ; Isolate [Alt] + [Right Shift]
cmp al,09h ; Are they pressed?
jne RETURN ; No, quit
;
; [Alt] + [Right Shift] are pressed -- Continue processing
; Check on video mode - quit if not monochrome, color 80x25 or BW 80x25
;
mov ah,15 ; Call Func 15 of Int 10h to
int 10h ; get video state of the PC
cmp al,7 ; Is screen monochrome?
je SCREEN_OKAY ; Yes, go switch screens
cmp al,3 ; Is screen color text?
jbe CHECK_40_OR_80 ; Yes, go check for 80 or 40 char
jmp RETURN ; Screen is in graphics mode, quit
CHECK_40_or_80:
cmp al,1 ; Is screen 40-character?
jbe RETURN ; Yes, quit
;
SCREEN_OKAY:
;
; Save the current cursor position
;
mov ah,3 ; Call Func 3 of Int 10H
mov bh,0 ; to read cursor position
int 10h ; (page zero for color screen)
;
; Screen switch routine - Establish calling argument (AL) for Int 10h
;
mov bx,EQUIP_FLAG ; Current equipment flag to BX
mov cx,bx ; Make a copy of it in CX
and cx,30h ; Extract screen information
xor bx,cx ; Erase current screen information in BX
or bx,20h ; Set BX to color 80x25
mov al,3 ; Set AL for color 80x25 in Int 10h
cmp cx,30h ; Is current mono?
je SET_MODE ; Yes, switch to color
or bx,30h ; No, set BX for monochrome
mov al,7 ; Set AL for monochrome in Int 10h
SET_MODE:
mov EQUIP_FLAG,bx ; Write BX to equipment flag
xor ah,ah ; Use Func 0 of Int 10h to
int 10h ; change screen parameters
;
; Restore Cursor
;
mov ah,2 ; Use Func 2 of Int 10h to restore
mov bh,0 ; cursor on new screen (position in DX)
int 10h
;
; After screens are switched, set DS and ES registers to move screen data
;
mov ax,0b000h ; Load ES with Mono Segment
mov es,ax
mov ax,0b800h ; Load DS with Color Segment
mov ds,ax
cmp cx,30h ; Did we switch from mono?
jne COPY_THE_SCREEN ; Yes, move data from mono to color
push ds ; No, swap ES and DS to move data
push es ; from color to mono
pop ds
pop es
COPY_THE_SCREEN:
xor di,di ; Start at zero offsets
xor si,si
mov cx,2000 ; 2000 chars + attrs per screen
cld ; Make sure move is 'forward'
rep movsw ; Move Words with string instruction
;
RETURN:
pop di ; Restore saved registers
pop si
pop dx
pop cx
pop bx
pop ax
pop es
pop ds
iret ; Return to system
DOORS_INT endp
;
; This procedure initializes the new keyboard interupt vectors
;
SWAP_VECTORS proc near
assume ds:VECTORS
mov ax,VECTORS ; Set up the data
mov ds,ax ; segment for vectors
cli ; Disable interrupts
mov ax,word ptr KB_INT_VECTOR ; Store addresses
mov word ptr ROM_KB_INT,ax ; of BIOS program
mov ax,word ptr KB_INT_VECTOR[2]
mov word ptr ROM_KB_INT[2],ax
mov word ptr KB_INT_VECTOR, offset DOORS_INT ; Substitute Our
mov word ptr KB_INT_VECTOR[2],cs ; Program
sti ; Enable interrupts
mov dx,offset SWAP_VECTORS ; End of new resident
; program
int 27h ; Terminate resident
SWAP_VECTORS endp
CODE_SEG ends
end BEGIN
;
| 42.605263 | 80 | 0.466337 |
446357509287cd9ccfb18f47e2e970b2fca9ab65 | 4,346 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_430.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_430.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_430.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 %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x150af, %rsi
lea addresses_D_ht+0x1225f, %rdi
nop
nop
nop
dec %rbp
mov $41, %rcx
rep movsl
nop
nop
nop
nop
nop
sub $23175, %r8
lea addresses_D_ht+0xc12f, %rcx
nop
nop
nop
nop
and %r10, %r10
mov (%rcx), %esi
nop
nop
nop
nop
xor $12337, %r10
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %rbp
push %rbx
push %rdx
push %rsi
// Faulty Load
lea addresses_UC+0x972f, %rsi
nop
nop
nop
xor %rbx, %rbx
mov (%rsi), %r11w
lea oracles, %rbp
and $0xff, %r11
shlq $12, %r11
mov (%rbp,%r11,1), %r11
pop %rsi
pop %rdx
pop %rbx
pop %rbp
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': True, 'size': 1}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': False, 'congruent': 5, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_D_ht'}}
{'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 52.361446 | 2,999 | 0.663139 |
aa5949d90dc96baccde266bfa3332db49a293b51 | 1,645 | asm | Assembly | src/module/ModuleCharacter.asm | Dunkansdk/AoW | 59dfc984c510f1e98fe46d221d01c4a36e4a527f | [
"Apache-2.0"
] | 2 | 2016-02-05T15:57:30.000Z | 2018-05-25T06:09:43.000Z | src/module/ModuleCharacter.asm | Drexlor/AoW | 59dfc984c510f1e98fe46d221d01c4a36e4a527f | [
"Apache-2.0"
] | null | null | null | src/module/ModuleCharacter.asm | Drexlor/AoW | 59dfc984c510f1e98fe46d221d01c4a36e4a527f | [
"Apache-2.0"
] | 1 | 2021-11-15T15:24:03.000Z | 2021-11-15T15:24:03.000Z | ;//////////////////////////////////////////////////////////////////////
;/// This file is subject to the terms and conditions defined in ///
;/// file 'LICENSE.txt', which is part of this source code package. ///
;//////////////////////////////////////////////////////////////////////
[SEGMENT .text]
;////////////////////////////////////////////////////
;///!< Flag to determinate if the character was initialized
;////////////////////////////////////////////////////
__bCharacterInitialized DB 0x00
;////////////////////////////////////////////////////
;///!< Character min/max Health/Mana
;////////////////////////////////////////////////////
__dwCharacterHealth DD 0x00000000
__dwCharacterMaxHealth DD 0x00000000
__dwCharacterMana DD 0x00000000
__dwCharacterMaxMana DD 0x00000000
;////////////////////////////////////////////////////
;/// \brief Gets the initial mana and health point
;///
;/// \param message The message packet
;////////////////////////////////////////////////////
GetInitialCharacterPoint:
PUSH EBP
MOV EBP, ESP
;////////////////////////////////////////////////
;/// Check if the character was already initialized
;////////////////////////////////////////////////
MOV AL, BYTE [__bCharacterInitialized]
TEST AL, AL
JNZ .GetInitialCharacterPoint_Finish
;////////////////////////////////////////////////
;/// Call foundation Parse packet for that message
;////////////////////////////////////////////////
PUSH DWORD [EBP + 0x08]
CALL FoundationParseInitialCharacter
.GetInitialCharacterPoint_Finish:
MOV ESP, EBP
POP EBP
RET 0x04 | 35 | 71 | 0.422492 |
b1532544cb0e0707e7ddcd02ea9bf4e6ce5fc25c | 440 | asm | Assembly | libsrc/graphics/retrofit/xordrawb_callee.asm | ahjelm/z88dk | c4de367f39a76b41f6390ceeab77737e148178fa | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/graphics/retrofit/xordrawb_callee.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/graphics/retrofit/xordrawb_callee.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ;
; Generic trick to adapt a classic function to the CALLEE mode
;
; ----- void __CALLEE__ xordrawb(int x, int y, int x2, int y2)
;
;
; $Id: xordrawb_callee.asm $
;
SECTION smc_clib
PUBLIC xordrawb_callee
PUBLIC _xordrawb_callee
EXTERN xordrawb
.xordrawb_callee
._xordrawb_callee
ld hl,retaddr
ex (sp),hl
ld (retaddr0+1),hl
ld hl,xordrawb
jp (hl)
.retaddr
pop bc
pop bc
pop bc
pop bc
.retaddr0
ld hl,0
jp (hl)
| 12.941176 | 63 | 0.688636 |
f4981736b728cb5fc4ba533491af3df3969d93c3 | 2,325 | asm | Assembly | serial.asm | ChartreuseK/z80monitor | b79745db750438ca18e348c6f0a9d1ab7d6fc610 | [
"BSD-3-Clause"
] | 5 | 2018-08-14T23:46:56.000Z | 2022-03-20T02:16:38.000Z | serial.asm | ChartreuseK/z80monitor | b79745db750438ca18e348c6f0a9d1ab7d6fc610 | [
"BSD-3-Clause"
] | null | null | null | serial.asm | ChartreuseK/z80monitor | b79745db750438ca18e348c6f0a9d1ab7d6fc610 | [
"BSD-3-Clause"
] | null | null | null | ;---------------------------------------
; Initialize the 68681 DUART
SERIAL_INIT:
LD A, $30
OUT (SER_CRA), A ; Reset Transmitter
LD A, $20
OUT (SER_CRA), A ; Reset Reciever
LD A, $10
OUT (SER_CRA), A ; Reset Mode Register Pointer
LD A, $80
OUT (SER_ACR), A ; Baud Rate Set #2
LD A, $BB ; BB for 9600, 44 for 300
OUT (SER_CSRA), A ; 300 Tx and Rx
LD A, $13
OUT (SER_MRA), A ; 8 bit, no parity
LD A, $07
OUT (SER_MRA), A ; Normal mode, no flow control, 1 stop bit
LD A, $00
OUT (SER_IMR), A ; No interrupts
LD A, $05
OUT (SER_CRA), A ; Enable Transmit/Recieve
RET
;---------------------------------------
;---------------------------------------
; Read a character from serial port A, blocking if not available
SERIAL_READ:
IN A, (SER_SRA)
BIT 0, A ; Check if recv ready bit et
JR Z, SERIAL_READ
IN A, (SER_RBA) ; Read in character from A
RET
;---------------------------------------
;---------------------------------------
; Check if character is waiting. Z clear if character avail, Z set if not
SERIAL_POLL:
IN A, (SER_SRA)
BIT 0, A
RET
;---------------------------------------
; Write a character from serial port A, blocking till sent
SERIAL_WRITE:
#local
PUSH BC
LD B, A
LOOP:
IN A, (SER_SRA)
BIT 2, A
JP Z, LOOP
LD A, B
OUT (SER_TBA), A
POP BC
RET
#endlocal
;---------------------------------------
;---------------------------------------
; Write a null terminated string to Serial A
; Addr to string in HL
SERIAL_PUTS:
#local
LD A,(HL)
AND 0xFF
JR Z, END ; End if we hit null terminator
CALL SERIAL_WRITE ; Write char
INC HL
JR SERIAL_PUTS ; Loop till we hit null
END:
RET
#endlocal
SERIAL_NL:
LD HL, SNL
JR SERIAL_PUTS
SNL:
DB 10,13,0
;--------
; Print a 1-byte hex number
; B - number
SERIAL_WRHEX8:
LD A, '$'
CALL SERIAL_WRITE
SERIAL_WRHEX8_NP:
LD A, B
SRL A
SRL A
SRL A
SRL A ; Extract high nybble
CALL SERIAL_WRNYB
LD A, B
AND $0F
; Fall into PUSHNYB (Tail call)
;--------
; Push a nybble from A (low 4-bits, high must be 0)
SERIAL_WRNYB:
#local
ADD '0'
CP '9'+1 ; Check if A-F
JR C, NOFIX
ADD 'A'-('9'+1) ; Diff between 'A' and ':'
NOFIX:
JP SERIAL_WRITE ; Tail call
#endlocal
;--------
; Print a 2-byte hex number
; BC - number
SERIAL_WRHEX16:
CALL SERIAL_WRHEX8
LD B, C
JP SERIAL_WRHEX8_NP ; Tail call
| 18.75 | 73 | 0.565161 |
dd0d36f55ef40798e891d110bbe1ae353266b761 | 173 | asm | Assembly | libsrc/_DEVELOPMENT/error/z80/error_zc.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/error/z80/error_zc.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/error/z80/error_zc.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_clib
SECTION code_error
PUBLIC error_zc
pop hl
pop hl
pop hl
pop hl
error_zc:
; set hl = 0
; set carry flag
ld hl,0
scf
ret
| 8.65 | 19 | 0.601156 |
10cdf45aa67483a5f2ca8a26e513682607d03f0e | 1,448 | asm | Assembly | Source application Beck DK40/libs/clibV270/TCPIP/htons.asm | yassinehamouten/Gestion-acces | 5bb8688dcaf89273580f99a647486aca82efdb92 | [
"MIT"
] | null | null | null | Source application Beck DK40/libs/clibV270/TCPIP/htons.asm | yassinehamouten/Gestion-acces | 5bb8688dcaf89273580f99a647486aca82efdb92 | [
"MIT"
] | null | null | null | Source application Beck DK40/libs/clibV270/TCPIP/htons.asm | yassinehamouten/Gestion-acces | 5bb8688dcaf89273580f99a647486aca82efdb92 | [
"MIT"
] | null | null | null | ;******************************************************************************
;
; (c) 2010 by BECK IPC GmbH
; http://www.beck-ipc.com
;
;******************************************************************************
;
; Module: htons.asm
; Function: Swap byte order
;
;
;******************************************************************************
;
; $Header$
;
;******************************************************************************
; "DIST" is defined as either FAR or NEAR inside this include file.
; "RETADDR_DEF" is defined as either DD or DW
INCLUDE ../common/asmRules.def
HTONS_FRAME STRUC
RETADDR_DEF ? ; Our far return address
;;;;;;;;; Input Parameter from Caller ;;;;;;;;;;;;
value DW ? ; WORD whose endian is to be swapped
HTONS_FRAME ENDS
_TEXT SEGMENT BYTE PUBLIC 'CODE'
ASSUME CS:_TEXT, DS:NOTHING, ES:NOTHING, SS:NOTHING
;******************************************************************************
; Prototypes
;******************************************************************************
PUBLIC _htons
;******************************************************************************
; htons()
;******************************************************************************
_htons PROC DIST
mov BX,SP
MOV AX,SS:[BX].value
XCHG AL,AH
RET
_htons ENDP
_TEXT ENDS
END
; End of file
| 23.737705 | 79 | 0.328039 |
bb0e6f643f01819f843d2b75a1d56645a11604ce | 165 | asm | Assembly | Assembler/AssemblyCode/TTL/MOV16_J.asm | KPU-RISC/KPU | 9f85c322e1b8489eef31f0696799e0c6c7273c0e | [
"MIT"
] | 8 | 2017-04-16T16:53:03.000Z | 2021-09-14T22:29:28.000Z | Assembler/AssemblyCode/TTL/MOV16_J.asm | KPU-RISC/KPU | 9f85c322e1b8489eef31f0696799e0c6c7273c0e | [
"MIT"
] | null | null | null | Assembler/AssemblyCode/TTL/MOV16_J.asm | KPU-RISC/KPU | 9f85c322e1b8489eef31f0696799e0c6c7273c0e | [
"MIT"
] | null | null | null | MOV XL, 11111110b
MOV XH, 0x00
MOV J, X
; Initialize the D and E register
MOV E, [J]
MOV D, 00000001b
; Add both values
ADD E, D
DATA 0000000011111110b, 00000001b | 13.75 | 33 | 0.727273 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.