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
b105dd29e6bf934c008cbafad72085fd6d402e00
500
asm
Assembly
Assembly_in_C_VS/ASM_MessageBox/ASM_MessageBox/CallMSG.asm
sickn3ss/c_code
3ca752b8a4be07e5829df6ed397c81061d28e10d
[ "Apache-2.0" ]
2
2020-04-26T09:45:01.000Z
2020-10-10T04:54:49.000Z
Assembly_in_C_VS/ASM_MessageBox/ASM_MessageBox/CallMSG.asm
sickn3ss/c_code
3ca752b8a4be07e5829df6ed397c81061d28e10d
[ "Apache-2.0" ]
null
null
null
Assembly_in_C_VS/ASM_MessageBox/ASM_MessageBox/CallMSG.asm
sickn3ss/c_code
3ca752b8a4be07e5829df6ed397c81061d28e10d
[ "Apache-2.0" ]
null
null
null
extrn MessageBoxA: PROC ; external functions in system libraries _DATA SEGMENT caption db '64-bit hello!', 0 message db 'Hello World!', 0 _DATA ENDS _TEXT SEGMENT CallMSG PROC sub rsp,28h ; shadow space, aligns stack mov rcx, 0 ; hWnd = HWND_DESKTOP lea rdx, message ; LPCSTR lpText lea r8, caption ; LPCSTR lpCaption mov r9d, 0 ; uType = MB_OK call MessageBoxA ; call MessageBox API function ret 8 CallMSG ENDP _TEXT ENDS End
23.809524
65
0.656
4a4f871942894124ddf691e9374d33effa20512c
163
asm
Assembly
libsrc/_DEVELOPMENT/l/sccz80/9-common/f48/__atof2.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/l/sccz80/9-common/f48/__atof2.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/l/sccz80/9-common/f48/__atof2.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib SECTION code_l_sccz80 PUBLIC __atof2 EXTERN atof __atof2: push hl call atof pop bc ret
12.538462
21
0.539877
4abb8b6bfebd706d0215cdbef0d9dd607d9b58d3
7,972
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_1611.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_1611.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_1611.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %r8 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x9fe9, %rsi lea addresses_A_ht+0x89e9, %rdi inc %r14 mov $7, %rcx rep movsl xor %r9, %r9 lea addresses_A_ht+0xb6e9, %r14 nop nop nop nop nop sub $15228, %r15 vmovups (%r14), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $0, %xmm2, %rcx nop nop nop nop nop xor $12067, %r14 lea addresses_UC_ht+0x99e9, %rsi lea addresses_D_ht+0x3649, %rdi nop nop nop inc %r8 mov $8, %rcx rep movsw nop nop nop cmp $43192, %rdi lea addresses_A_ht+0xb8f5, %rsi lea addresses_D_ht+0x13e9, %rdi nop nop dec %rdx mov $89, %rcx rep movsq nop add %rcx, %rcx lea addresses_WC_ht+0x2f79, %rsi nop nop nop and %r8, %r8 movw $0x6162, (%rsi) nop nop xor $841, %r15 lea addresses_UC_ht+0xb3e9, %rcx cmp $60198, %r9 movl $0x61626364, (%rcx) sub %rdx, %rdx lea addresses_normal_ht+0xba0d, %r15 nop inc %r14 mov (%r15), %ecx nop nop nop nop nop cmp $28800, %rcx lea addresses_normal_ht+0x9619, %r8 nop nop nop nop inc %rcx mov $0x6162636465666768, %r14 movq %r14, %xmm7 vmovups %ymm7, (%r8) nop nop nop add $26, %r15 lea addresses_UC_ht+0x9d69, %rsi nop dec %rcx mov (%rsi), %r15d nop nop nop nop nop add %r9, %r9 lea addresses_D_ht+0x159e9, %rdi nop nop inc %rsi movb (%rdi), %r8b nop nop add %rdi, %rdi lea addresses_normal_ht+0x186b5, %rcx nop nop nop nop nop add $41656, %rdx vmovups (%rcx), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $0, %xmm0, %r15 nop nop sub %rsi, %rsi lea addresses_normal_ht+0xae59, %r14 nop nop nop nop nop add $15713, %r8 movl $0x61626364, (%r14) nop nop nop and %rdi, %rdi lea addresses_WT_ht+0x16757, %r14 nop nop nop nop dec %rdx mov (%r14), %r15 nop nop nop sub $12663, %rdi lea addresses_UC_ht+0x16669, %rsi lea addresses_WT_ht+0x195e9, %rdi inc %r8 mov $76, %rcx rep movsb and %r9, %r9 pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r8 pop %r15 pop %r14 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r14 push %r15 push %r9 push %rbx // Store lea addresses_WC+0xbb09, %r10 nop nop nop nop nop cmp $32881, %r13 mov $0x5152535455565758, %r11 movq %r11, (%r10) xor %r14, %r14 // Store mov $0x1e9, %r10 clflush (%r10) nop nop cmp %r13, %r13 mov $0x5152535455565758, %r11 movq %r11, %xmm5 vmovups %ymm5, (%r10) add %r15, %r15 // Faulty Load lea addresses_WC+0x189e9, %r11 inc %r9 movups (%r11), %xmm1 vpextrq $0, %xmm1, %r13 lea oracles, %r10 and $0xff, %r13 shlq $12, %r13 mov (%r10,%r13,1), %r13 pop %rbx pop %r9 pop %r15 pop %r14 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_WC', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_P', 'AVXalign': False, 'size': 32}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WC', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': True, 'congruent': 8, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_A_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 10, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}} {'src': {'same': False, 'congruent': 2, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4}} {'src': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32}} {'src': {'NT': False, 'same': True, 'congruent': 7, 'type': 'addresses_UC_ht', 'AVXalign': True, 'size': 4}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 4}} {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 6, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WT_ht'}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
33.637131
2,999
0.655043
7b87fc7dab75f11d69f5b8924c8ca30e25ec6236
495
asm
Assembly
programs/oeis/104/A104104.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/104/A104104.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/104/A104104.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A104104: a(1) = 1, if A(k) = sequence of first 2^(k-1) terms and if B(k) is A(k) with 0's and 1's exchanged, then A(k+1) = A(k)A(k) if a(k) = 0, A(k+1) = A(k)B(k) if a(k) = 1. ; 1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,0,1,0,1,1,0,1,0,0 mov $3,$0 mul $0,2 mov $2,$3 lpb $0,1 div $0,8 mod $2,2 add $2,$0 lpe mov $1,2 sub $1,$2 sub $1,1
33
211
0.513131
26b21ce07cf6b77b8ec1bae327565002f1948836
6,461
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_863.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_863.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_863.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r15 push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x13068, %r14 nop nop nop nop nop cmp $15127, %rdx and $0xffffffffffffffc0, %r14 vmovaps (%r14), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %r11 nop and $60789, %r15 lea addresses_UC_ht+0x186e8, %rsi lea addresses_D_ht+0x11668, %rdi nop nop nop inc %rdx mov $7, %rcx rep movsq nop nop nop nop and $11715, %rsi lea addresses_A_ht+0x6678, %rcx nop nop inc %r11 mov (%rcx), %rdi nop nop nop nop nop and $31509, %rsi lea addresses_D_ht+0x1c58e, %r14 nop nop and $30335, %r11 mov $0x6162636465666768, %rdx movq %rdx, %xmm2 vmovups %ymm2, (%r14) nop nop sub %r15, %r15 lea addresses_WC_ht+0x6068, %rdx nop nop add %rsi, %rsi movb $0x61, (%rdx) nop nop nop add $36414, %rdx lea addresses_normal_ht+0x1c788, %rsi lea addresses_UC_ht+0x18f68, %rdi nop xor %r13, %r13 mov $5, %rcx rep movsl nop nop nop nop nop add $53143, %r14 lea addresses_normal_ht+0x1dab, %rsi lea addresses_WT_ht+0x1eb28, %rdi nop nop nop nop nop sub $52593, %r13 mov $72, %rcx rep movsb nop xor %rdi, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %r15 pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r14 push %r9 push %rax push %rbp // Store mov $0xc56, %r11 and $5896, %rbp movl $0x51525354, (%r11) nop nop nop cmp %rbp, %rbp // Store lea addresses_normal+0xf868, %r9 nop nop nop nop nop sub $26664, %rax movb $0x51, (%r9) nop add $48083, %r12 // Store mov $0x95e, %rbp nop inc %r14 movw $0x5152, (%rbp) nop sub $43577, %r14 // Faulty Load lea addresses_D+0x1a468, %r9 nop dec %rax mov (%r9), %r14 lea oracles, %r9 and $0xff, %r14 shlq $12, %r14 mov (%r9,%r14,1), %r14 pop %rbp pop %rax pop %r9 pop %r14 pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 9, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 1, 'size': 2, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': True, 'congruent': 8, 'size': 32, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 4, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}} {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
36.297753
2,999
0.656709
af02e3786688a578a6b88f9412cd8054ce47baff
2,136
asm
Assembly
src/third_party/nasm/test/emptyarg.asm
Mr-Sheep/naiveproxy
9f6e9768295f6d1d41517a15a621d4756bd7d6be
[ "BSD-3-Clause" ]
2,219
2018-03-26T02:57:34.000Z
2022-03-31T00:27:59.000Z
src/third_party/nasm/test/emptyarg.asm
Mr-Sheep/naiveproxy
9f6e9768295f6d1d41517a15a621d4756bd7d6be
[ "BSD-3-Clause" ]
250
2018-02-02T23:16:57.000Z
2022-03-21T06:09:53.000Z
src/third_party/nasm/test/emptyarg.asm
Mr-Sheep/naiveproxy
9f6e9768295f6d1d41517a15a621d4756bd7d6be
[ "BSD-3-Clause" ]
473
2019-03-24T16:34:23.000Z
2022-03-31T02:01:05.000Z
%define EMPTY %macro bar 1 db "bar", __LINE__, %0, %1 %endmacro %macro baz 2 db "baz", __LINE__, %0, %1, %2 %endmacro %macro nothing 0 db "nothing", __LINE__, %0 %endmacro %macro xyzzy 1-2 db "xyzzy", __LINE__, %0, %1, %2, %3 %endmacro %macro vararg 0-* db "vararg", __LINE__, %0 %assign %%i 1 %rep %0 db "vararg arg ", %%i, %1 %rotate 1 %assign %%i %%i + 1 %endrep %endmacro %macro defargs 1-5 def2, def3, def4, def5 db "defargs", __LINE__, %0, %1, %2, %3, %4, %5 %endmacro %macro ivar 1 vararg %1 %endmacro %macro foo 1-2 db "foo", __LINE__, %0, %1, %2 bar %2 bar {%2} bar %2, bar {%2}, baz %1,%2 baz {%1},{%2} nothing %1 nothing %2 xyzzy "meep",%1,%2, xyzzy "meep","meep",%1,%2 xyzzy "alpha","bravo", xyzzy "with","empty",EMPTY %endmacro %macro orange 1 db %{1:1} %endmacro %macro prange1 2-3 db %{1:2}, 0%3 %endmacro %macro prange2 1-3 'two', 'three' db %{1:3} %endmacro db 4, nothing nothing 1 nothing ; foo nothing EMPTY flup: foo 1,2 foo 3 bar bar EMPTY foo 6, foo 6, ; With space/comment foo 6,EMPTY baz 8,EMPTY foo 6,{} foo ,5 xyzzy 13,14,15, xyzzy 13,14,15,EMPTY xyzzy 20,21 xyzzy 22,23, xyzzy 24,25,EMPTY xyzzy 26,27,, xyzzy 28,29,EMPTY,EMPTY vararg vararg EMPTY vararg , vararg 10 vararg 11, vararg 12,EMPTY vararg 13,14,15, vararg 13,14,15,EMPTY vararg 20,21 vararg 22,23, vararg 24,25,EMPTY vararg 26,27,, vararg 28,29,EMPTY,EMPTY ivar {} ivar {EMPTY} ivar EMPTY ivar , ivar {,} ivar {60} ivar {61,} ivar {62,EMPTY} ivar {63,64,65,} ivar {63,64,65,EMPTY} ivar {70,71} ivar {72,73,} ivar {74,75,EMPTY} ivar {76,77,,} ivar {78,79,EMPTY,EMPTY} defargs EMPTY defargs 91 defargs 91,92 defargs 91,92,93 defargs 91,92,93,94 defargs 91,92,93,94,95 defargs , defargs 91, defargs 91,92, defargs 91,92,93, defargs 91,92,93,94, defargs 91,92,93,94,95, prange1 101 prange1 101, 102 prange1 101, 102, 103 prange2 121 prange2 121, 122 prange2 121, 122, 123 prange2 {121} prange2 {121,121} prange2 {121},{122} prange2 {121},122,{123} prange2 121,{122,122},123 orange 130 orange 130, 131 orange {130, 131}
14.432432
47
0.6353
c24c78ba14acdb166d610d1e12c796ea30ea5074
666
asm
Assembly
oeis/312/A312926.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/312/A312926.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/312/A312926.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A312926: Coordination sequence Gal.6.118.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. ; Submitted by Simon Strandgaard ; 1,4,9,13,18,22,26,30,34,39,43,48,52,56,61,65,70,74,78,82,86,91,95,100,104,108,113,117,122,126,130,134,138,143,147,152,156,160,165,169,174,178,182,186,190,195,199,204,208,212 mov $4,$0 seq $0,315763 ; Coordination sequence Gal.6.628.5 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. sub $0,1 mov $2,1 sub $2,$0 sub $0,$2 div $0,5 add $0,1 mov $3,$4 mul $3,2 add $0,$3
41.625
182
0.726727
71d3d4a7c11fa9d1a5c9186b0e17fd08fec7c114
646
asm
Assembly
programs/oeis/134/A134195.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/134/A134195.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/134/A134195.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A134195: Antidiagonal sums of square array A126885. ; 1,3,7,15,32,72,178,494,1543,5373,20581,85653,383494,1833250,9301792,49857540,281193501,1663183383,10286884195,66365330811,445598473612,3107611606908,22470529228910,168190079241210,1301213084182483,10391369994732593,85553299734530113 mov $17,$0 mov $19,$0 add $19,1 lpb $19 clr $0,17 mov $0,$17 sub $19,1 sub $0,$19 mov $14,$0 mov $16,$0 add $16,1 lpb $16 clr $0,14 mov $0,$14 sub $16,1 sub $0,$16 lpb $0 sub $0,1 mov $2,$0 add $6,1 pow $2,$6 add $1,$2 lpe add $1,1 add $15,$1 lpe add $18,$15 lpe mov $1,$18
19.575758
234
0.626935
e558e0e0861aaa5dad54e0d8b4bebd037137ac9a
726
asm
Assembly
oeis/139/A139464.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/139/A139464.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/139/A139464.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A139464: n! + 2n - 1. ; Submitted by Jon Maiga ; 2,5,11,31,129,731,5053,40335,362897,3628819,39916821,479001623,6227020825,87178291227,1307674368029,20922789888031,355687428096033,6402373705728035,121645100408832037,2432902008176640039,51090942171709440041,1124000727777607680043,25852016738884976640045,620448401733239439360047,15511210043330985984000049,403291461126605635584000051,10888869450418352160768000053,304888344611713860501504000055,8841761993739701954543616000057,265252859812191058636308480000059,8222838654177922817725562880000061 mov $1,$0 seq $0,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of permutations of n letters). add $0,2 add $1,1 mul $1,$0 mov $0,$1 sub $0,1
60.5
498
0.838843
b7823cd93c8dfdbffd9f63b1c03eaa19cdf4124d
3,082
asm
Assembly
stage4/graphics_animation.asm
amrwc/8086-graphics
396ebd087f7747f13fee9b24bb41b54c53f43b9d
[ "MIT" ]
5
2019-11-23T10:07:23.000Z
2021-05-22T08:13:45.000Z
stage4/graphics_animation.asm
amrwc/8086-graphics
396ebd087f7747f13fee9b24bb41b54c53f43b9d
[ "MIT" ]
null
null
null
stage4/graphics_animation.asm
amrwc/8086-graphics
396ebd087f7747f13fee9b24bb41b54c53f43b9d
[ "MIT" ]
2
2020-11-03T14:48:04.000Z
2021-05-23T03:50:13.000Z
%assign anim_x0 10 %assign anim_y0 8 %assign anim_len 6 %assign px_set 4 Graphics_Animation: call Graphics_Set_Display_Mode push word 58d ; x0 ; Line's parameters push word 100d ; y0 push word 200d ; length push word 0C0Fh ; colour call Graphics_Animation_Algorithm push word check_stage_4_plus call Console_Write_16_Graphics call Graphics_Done ret Graphics_Animation_Algorithm: push bp mov bp, sp push es push di push si push ax push cx push dx mov si, 0A000h ; Segment of display memory mov es, si ; Offset on screen: di = 320*y + x -> di = 256*y + 64*y + x mov di, [bp + anim_y0] shl di, 8 ; di *= 2**8 -> di *= 256 mov si, [bp + anim_y0] shl si, 6 ; si *= 2**6 -> si *= 64 add di, si ; di = 256y + 64y add di, [bp + anim_x0] ; di += x mov ax, [bp + px_set] ; Colour cld ; Clear direction flag -- stos increments CX by 1 Animation_Repeat: stosb xor cx, cx ; Delay mov dx, 01000h mov ah, 86h int 15h dec word [bp + anim_len] cmp [bp + anim_len], word 0 jge Animation_Repeat pop dx pop cx pop ax pop si pop di pop es leave ret 8 ;____________________ Console_Write_16_Graphics: push bp mov bp, sp push si push ax mov si, [bp + 4] ; SI: beginning of the string. mov ah, 9d ; Output character instruction. xor bh, bh mov bl, 0Ch ; Colour mov cx, 1d mov [cursor_x], byte 7d mov [cursor_y], byte 10d Console_Write_16_Graphics_Repeat: call Console_Write_16_Graphics_Gotoxy inc byte [cursor_x] mov al, [si] ; Assign value from SI memory address. inc si ; si++ inc dx ; Increase column test al, al ; if (AL == 0) break; je Console_Write_16_Graphics_Done int 10h ; Output the current character. jmp Console_Write_16_Graphics_Repeat Console_Write_16_Graphics_Done: pop ax pop si leave ret 2 Console_Write_16_Graphics_Gotoxy: push ax push bx push dx mov ah, 2d ; Set cursor position instruction mov bh, 0 ; Page number mov dl, byte [cursor_x] mov dh, byte [cursor_y] int 10h pop dx pop bx pop ax ret cursor_x: db 0 cursor_y: db 0 check_stage_4_plus: db 'Please check out Stage 4++', 0
26.568966
90
0.47599
914320abdc63cf2323e54e4cee585209c590251f
328
asm
Assembly
oeis/218/A218150.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/218/A218150.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/218/A218150.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A218150: 5^((6+5*n+n^3)/6). ; Submitted by Jon Maiga ; 1,5,25,625,390625,30517578125,1490116119384765625,227373675443232059478759765625,542101086242752217003726400434970855712890625,100974195868289511092701256356196637398170423693954944610595703125 mov $1,5 mov $2,$0 bin $0,3 add $2,1 add $0,$2 pow $1,$0 mov $0,$1 div $0,5
25.230769
195
0.783537
7544ff0cb7cf2723ad6692f5cb7b7bf128a19b58
836
asm
Assembly
programs/oeis/055/A055278.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/055/A055278.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/055/A055278.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A055278: Number of rooted trees with n nodes and 3 leaves. ; 1,3,8,18,35,62,103,161,241,348,487,664,886,1159,1491,1890,2364,2922,3574,4329,5198,6192,7322,8600,10039,11651,13450,15450,17665,20110,22801,25753,28983,32508,36345,40512,45028,49911,55181,60858,66962,73514,80536 mov $15,$0 mov $17,$0 add $17,1 lpb $17 clr $0,15 mov $0,$15 sub $17,1 sub $0,$17 mov $12,$0 mov $14,$0 add $14,1 lpb $14 clr $0,12 mov $0,$12 sub $14,1 sub $0,$14 mov $9,$0 mov $11,$0 add $11,1 lpb $11 mov $0,$9 sub $11,1 sub $0,$11 mov $1,4 add $1,$0 add $0,$1 gcd $0,6 div $0,5 gcd $0,2 add $1,2 div $1,2 add $1,$0 mul $1,5 sub $1,20 div $1,5 add $10,$1 lpe add $13,$10 lpe add $16,$13 lpe mov $1,$16
18.173913
213
0.5311
bf6bbf427c211124e9564b8b7e592ff8ab68f397
862
asm
Assembly
Driver/Printer/PrintCom/printcomPCLPage.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Driver/Printer/PrintCom/printcomPCLPage.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Driver/Printer/PrintCom/printcomPCLPage.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: LaserJet printer driver FILE: printcomPCLPage.asm AUTHOR: Dave Durran ROUTINES: Name Description ---- ----------- PrintStartPage initialize the page-related variables, called once/page by EXTERNAL at start of page. PrintEndPage Tidy up the page-related variables, called once/page by EXTERNAL at end of page. REVISION HISTORY: Name Date Description ---- ---- ----------- Dave 1/92 initial version from laserdwnPage.asm DESCRIPTION: $Id: printcomPCLPage.asm,v 1.1 97/04/18 11:50:54 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%} include Page/pageStart.asm include Page/pageEndASFOnly.asm
25.352941
79
0.576566
389e5dcfc07438473403f8d6a87dff3f4f8b888d
660
asm
Assembly
books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/9_12.asm
gxw1/review_the_national_post-graduate_entrance_examination
8812779a7a4ce185a531d120562d5194b697c0c9
[ "MIT" ]
640
2019-03-30T11:32:43.000Z
2022-03-31T14:05:18.000Z
books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/9_12.asm
yyzVegst/review_the_national_post-graduate_entrance_examination
8812779a7a4ce185a531d120562d5194b697c0c9
[ "MIT" ]
6
2019-07-22T01:57:24.000Z
2022-01-20T15:03:16.000Z
books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/9_12.asm
yyzVegst/review_the_national_post-graduate_entrance_examination
8812779a7a4ce185a531d120562d5194b697c0c9
[ "MIT" ]
212
2019-04-10T02:31:50.000Z
2022-03-30T02:32:47.000Z
STACK SEGMENT STACK DW 64 DUP(?) STACK ENDS CODE SEGMENT ASSUME CS:CODE,SS:STACK START: PUSH DS MOV AX,0 PUSH AX MOV AH,0FH INT 10H MOV AH,0 MOV AL,3 INT 10H MOV CX,1 MOV DX,0 LOP: MOV AH,2 INT 10H MOV AL,40H MOV AH,0AH INT 10H INC DH INC DL CMP DH,19 JNE LOP RET CODE ENDS END START
23.571429
36
0.316667
bf853377f73d1cba5ca052d92941ddb8101ea7a8
2,268
asm
Assembly
chap18/ex25/fma_only_tpt.asm
JamesType/optimization-manual
61cdcebb16e0768a6ab7e85ed535e64e9d8cc31a
[ "0BSD" ]
374
2021-06-08T10:42:01.000Z
2022-03-29T14:21:45.000Z
chap18/ex25/fma_only_tpt.asm
JamesType/optimization-manual
61cdcebb16e0768a6ab7e85ed535e64e9d8cc31a
[ "0BSD" ]
1
2021-06-11T20:24:02.000Z
2021-06-11T20:24:02.000Z
chap18/ex25/fma_only_tpt.asm
JamesType/optimization-manual
61cdcebb16e0768a6ab7e85ed535e64e9d8cc31a
[ "0BSD" ]
39
2021-06-08T11:25:29.000Z
2022-03-05T05:14:17.000Z
; ; Copyright (C) 2021 by Intel Corporation ; ; Permission to use, copy, modify, and/or distribute this software for any ; purpose with or without fee is hereby granted. ; ; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH ; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY ; AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, ; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM ; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR ; OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR ; PERFORMANCE OF THIS SOFTWARE. ; ; .globl fma_only_tpt ; void fma_only_tpt(uint64_t loop_cnt); ; On entry: ; rcx = loop_cnt _RDATA SEGMENT READ ALIGN(64) 'DATA' one_vec REAL8 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 _RDATA ENDS .code fma_only_tpt PROC public mov rdx, rsp and rsp, -10h sub rsp, 96 vmovaps xmmword ptr[rsp], xmm6 vmovaps xmmword ptr[rsp+16], xmm7 vmovaps xmmword ptr[rsp+32], xmm8 vmovaps xmmword ptr[rsp+48], xmm9 vmovaps xmmword ptr[rsp+64], xmm10 vmovaps xmmword ptr[rsp+80], xmm11 vmovups zmm0, ZMMWORD PTR one_vec vmovups zmm1, ZMMWORD PTR one_vec vmovups zmm2, ZMMWORD PTR one_vec vmovups zmm3, ZMMWORD PTR one_vec vmovups zmm4, ZMMWORD PTR one_vec vmovups zmm5, ZMMWORD PTR one_vec vmovups zmm6, ZMMWORD PTR one_vec vmovups zmm7, ZMMWORD PTR one_vec vmovups zmm8, ZMMWORD PTR one_vec vmovups zmm9, ZMMWORD PTR one_vec vmovups zmm10, ZMMWORD PTR one_vec vmovups zmm11, ZMMWORD PTR one_vec ; mov rcx, loops loop1: vfmadd231pd zmm0, zmm0, zmm0 vfmadd231pd zmm1, zmm1, zmm1 vfmadd231pd zmm2, zmm2, zmm2 vfmadd231pd zmm3, zmm3, zmm3 vfmadd231pd zmm4, zmm4, zmm4 vfmadd231pd zmm5, zmm5, zmm5 vfmadd231pd zmm6, zmm6, zmm6 vfmadd231pd zmm7, zmm7, zmm7 vfmadd231pd zmm8, zmm8, zmm8 vfmadd231pd zmm9, zmm9, zmm9 vfmadd231pd zmm10, zmm10, zmm10 vfmadd231pd zmm11, zmm11, zmm11 dec rcx jg loop1 vzeroupper vmovaps xmm6, xmmword ptr[rsp] vmovaps xmm7, xmmword ptr[rsp+16] vmovaps xmm8, xmmword ptr[rsp+32] vmovaps xmm9, xmmword ptr[rsp+48] vmovaps xmm10, xmmword ptr[rsp+64] vmovaps xmm11, xmmword ptr[rsp+80] mov rsp, rdx ret fma_only_tpt ENDP end
27
79
0.75485
6c2e4693f14ee2b7dea0f954af35076176d10119
7,181
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_1853.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.log_21829_1853.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.log_21829_1853.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r15 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x19149, %rdx clflush (%rdx) nop nop nop and %r15, %r15 mov (%rdx), %r9d nop nop nop cmp $59970, %r12 lea addresses_WT_ht+0x1bda7, %rsi lea addresses_normal_ht+0x13747, %rdi nop nop and $42905, %r11 mov $22, %rcx rep movsq nop nop and %rdx, %rdx lea addresses_D_ht+0x1e86d, %r11 nop nop nop inc %rcx movups (%r11), %xmm2 vpextrq $1, %xmm2, %rdx nop nop dec %r9 lea addresses_A_ht+0x99c9, %rsi lea addresses_normal_ht+0x6951, %rdi nop nop nop nop sub %rdx, %rdx mov $68, %rcx rep movsb nop nop cmp %r9, %r9 lea addresses_WT_ht+0x17e49, %r15 nop nop nop add $45307, %r12 movl $0x61626364, (%r15) nop nop nop xor %r9, %r9 lea addresses_normal_ht+0x5b89, %rsi lea addresses_normal_ht+0x6e49, %rdi clflush (%rsi) xor %r12, %r12 mov $23, %rcx rep movsw nop add %r12, %r12 lea addresses_WT_ht+0x1b649, %r11 nop nop sub %r15, %r15 movb $0x61, (%r11) nop nop sub $5998, %r15 lea addresses_WT_ht+0xb249, %r15 dec %rdi movl $0x61626364, (%r15) nop nop sub %rcx, %rcx lea addresses_A_ht+0x6cc9, %rdx nop nop nop nop sub $28293, %r11 mov (%rdx), %r9w nop nop nop and %rcx, %rcx lea addresses_WT_ht+0x19b49, %rcx cmp $7191, %r11 mov $0x6162636465666768, %r12 movq %r12, %xmm4 vmovups %ymm4, (%rcx) nop lfence lea addresses_UC_ht+0x2bc9, %r15 nop nop xor $27644, %rdi mov $0x6162636465666768, %r9 movq %r9, (%r15) sub %r11, %r11 pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r15 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %r9 push %rdi push %rdx push %rsi // Store lea addresses_US+0x12f2d, %rdx nop nop nop nop nop add %r14, %r14 mov $0x5152535455565758, %r12 movq %r12, %xmm0 movups %xmm0, (%rdx) nop nop nop nop sub %rdx, %rdx // Store lea addresses_normal+0x9e49, %r9 nop xor $40247, %rdi movl $0x51525354, (%r9) inc %r12 // Faulty Load lea addresses_UC+0x1e649, %r10 nop nop nop nop nop sub %rdi, %rdi movb (%r10), %r9b lea oracles, %r14 and $0xff, %r9 shlq $12, %r9 mov (%r14,%r9,1), %r9 pop %rsi pop %rdx pop %rdi pop %r9 pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 1, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 11, 'size': 4, 'same': False, 'NT': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': True, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': True, 'congruent': 6, 'size': 4, 'same': True, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 2, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 11, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 11, 'size': 1, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 9, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 7, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 3, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': True, 'congruent': 7, 'size': 8, 'same': False, 'NT': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
35.905
2,999
0.656872
e90501c0b40f405e47f232f619654b672af49ad1
352
asm
Assembly
strings.asm
jakiki6/simpleOS
d252b6e9eb49130ed0b758fcfec75eede0f0fcbb
[ "MIT" ]
5
2021-01-06T10:22:04.000Z
2021-04-21T17:18:09.000Z
strings.asm
jakiki6/simpleOS
d252b6e9eb49130ed0b758fcfec75eede0f0fcbb
[ "MIT" ]
1
2021-06-27T23:36:50.000Z
2021-06-27T23:37:41.000Z
strings.asm
jakiki6/simpleOS
d252b6e9eb49130ed0b758fcfec75eede0f0fcbb
[ "MIT" ]
null
null
null
strings: .welcome: db "Kernel loaded!", 0x0a, 0x0d, 0x00 errors: .panic: db "System paniced!", 0x0a, 0x0d, "Press any key to reboot.", 0x0a, 0x0d, 0x00 .div_int: db "Division error!", 0x0a, 0x0d, 0x00 .nmi_int: db "NMI", 0x0a, 0x0d, 0x00 .ill_opcode: db "Invalid opcode!", 0x0a, 0x0d, 0x00 .cpuid: db "No cpuid detected!", 0x0a, 0x0d, 0x00
25.142857
86
0.664773
9a3d0054111029eb2143ea8625c1be6ce7b275fc
664
asm
Assembly
oeis/001/A001811.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/001/A001811.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/001/A001811.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A001811: Coefficients of Laguerre polynomials. ; Submitted by Christian Krause ; 1,25,450,7350,117600,1905120,31752000,548856000,9879408000,185513328000,3636061228800,74373979680000,1586644899840000,35272336619520000,816302647480320000,19645683716026368000,491142092900659200000,12740803704070041600000,342586055153883340800000,9538317009284436172800000,274703529867391761776640000,8175700293672373862400000000,251216972660114760499200000000,7962485785618420017561600000000,260107868996868387240345600000000,8750028713054652546765225984000000,302885609298045665080334745600000000 mov $1,$0 add $0,4 bin $0,4 add $1,4 lpb $1 mul $0,$1 sub $1,1 lpe div $0,24
47.428571
500
0.875
57337a10015b60e69b67e2c55ef8614eb1864e3b
651
asm
Assembly
Esercizi/Overflow con istruzioni unsigned/Rileva overflow con unsigned.asm
lucafioravanti/MIPS
a52ea3bde6463ac8878f475a50c64830fccd9776
[ "Unlicense" ]
null
null
null
Esercizi/Overflow con istruzioni unsigned/Rileva overflow con unsigned.asm
lucafioravanti/MIPS
a52ea3bde6463ac8878f475a50c64830fccd9776
[ "Unlicense" ]
null
null
null
Esercizi/Overflow con istruzioni unsigned/Rileva overflow con unsigned.asm
lucafioravanti/MIPS
a52ea3bde6463ac8878f475a50c64830fccd9776
[ "Unlicense" ]
null
null
null
.text li $t1, 0xf0001000 li $t2, 0xf0001000 addu $t0, $t1, $t2 # Guardo operandi se hanno segno opposto. segno opposto => no ow xor $t3, $t1, $t2 srl $t3, $t3, 31 # (slt $t3, $t3, $0) bnez $t3, no_ow # Guardo se risultato ha segno coerente con operandi # 2 positivi => positivo # 2 negativi => negativo xor $t3, $t0, $t1 srl $t3, $t3, 31 # (slt $t3, $t3, $0) bnez $t3, ow # Spiegazione SRL / SLT: # dopo xor invece di fare confronto posso fare srl di 31 posizioni. # Ho zero se xor aveva zero nel msb (quindi i segni sono =) altrimenti 1. # Col primo xor ok avere 1, col secondo no. ow: nop j ow no_ow: nop j no_ow
23.25
74
0.637481
523030ea7fdd0ecd85685e13b29fb356b377e5e3
1,642
asm
Assembly
programs/oeis/022/A022270.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/022/A022270.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/022/A022270.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A022270: a(n) = n*(13*n - 1)/2. ; 0,6,25,57,102,160,231,315,412,522,645,781,930,1092,1267,1455,1656,1870,2097,2337,2590,2856,3135,3427,3732,4050,4381,4725,5082,5452,5835,6231,6640,7062,7497,7945,8406,8880,9367,9867,10380,10906,11445,11997,12562,13140,13731,14335,14952,15582,16225,16881,17550,18232,18927,19635,20356,21090,21837,22597,23370,24156,24955,25767,26592,27430,28281,29145,30022,30912,31815,32731,33660,34602,35557,36525,37506,38500,39507,40527,41560,42606,43665,44737,45822,46920,48031,49155,50292,51442,52605,53781,54970,56172,57387,58615,59856,61110,62377,63657,64950,66256,67575,68907,70252,71610,72981,74365,75762,77172,78595,80031,81480,82942,84417,85905,87406,88920,90447,91987,93540,95106,96685,98277,99882,101500,103131,104775,106432,108102,109785,111481,113190,114912,116647,118395,120156,121930,123717,125517,127330,129156,130995,132847,134712,136590,138481,140385,142302,144232,146175,148131,150100,152082,154077,156085,158106,160140,162187,164247,166320,168406,170505,172617,174742,176880,179031,181195,183372,185562,187765,189981,192210,194452,196707,198975,201256,203550,205857,208177,210510,212856,215215,217587,219972,222370,224781,227205,229642,232092,234555,237031,239520,242022,244537,247065,249606,252160,254727,257307,259900,262506,265125,267757,270402,273060,275731,278415,281112,283822,286545,289281,292030,294792,297567,300355,303156,305970,308797,311637,314490,317356,320235,323127,326032,328950,331881,334825,337782,340752,343735,346731,349740,352762,355797,358845,361906,364980,368067,371167,374280,377406,380545,383697,386862,390040,393231,396435,399652,402882 mov $1,$0 mul $1,13 bin $1,2 div $1,13
205.25
1,567
0.823995
c673e75b52b461a639b9e3c1b5b5b5b0bb20e625
2,908
asm
Assembly
Dark soft/IFSB_Bot src/IFSB_Source Code/10.vnc/VNC/Common/i386/w64stubs.asm
ExaByt3s/hack_scripts
cc801b36ea25f3b5a82d2900f53f5036e7abd8ad
[ "WTFPL" ]
3
2021-01-22T19:32:23.000Z
2022-01-03T01:06:44.000Z
Dark soft/IFSB_Bot src/IFSB_Source Code/10.vnc/VNC/Common/i386/w64stubs.asm
a04512/hack_scripts
cc801b36ea25f3b5a82d2900f53f5036e7abd8ad
[ "WTFPL" ]
null
null
null
Dark soft/IFSB_Bot src/IFSB_Source Code/10.vnc/VNC/Common/i386/w64stubs.asm
a04512/hack_scripts
cc801b36ea25f3b5a82d2900f53f5036e7abd8ad
[ "WTFPL" ]
1
2019-06-18T22:10:53.000Z
2019-06-18T22:10:53.000Z
;////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ;// VNC project. Version 1.9.17.3 ;// ;// module: w64stubs.asm ;// $Revision: 184 $ ;// $Date: 2014-07-04 13:31:58 +0400 (Пт, 04 июл 2014) $ ;// description: ;// X86 and WOW64 context stubs. .686p _TEXT segment ;// REX prefixes used REXW MACRO db 48h ENDM REXB MACRO db 41h ENDM REXR MACRO db 4Ch ENDM align 10h ;// LONG _cdecl Wow64NativeCall(ULONGLONG NativeFunctionAddress, ULONGLONG NumberOfArgs, ...) ;// All arguments are ULONG64 values. ;// Switches processor into the Long mode and calls the specified native function with the specified argument list. _Wow64NativeCall proc push ebp push ebx push esi mov ebp, esp lea eax, [esp-8] and eax, 0fffffff8h mov esp, eax lea ecx, [ebp+10h] push 33h call @@1 ;// ---- x64 code starts here -------------------------------------------------------------------------------------------- push ebp push esi sub esp,20h mov ebp,esp and esp,0fffffff0h REXW mov esi, [ecx] ;// mov rsi, [rcx] lea edx, [ecx+8] mov ecx, [edx] add ecx, 1 and ecx, 0feh @@: push dword ptr [edx+ecx*8] loop @B REXW mov ecx, [esp] ;// mov rcx, [rsp] REXW mov edx, [esp+8] ;// mov rdx, [rsp+8] REXR mov eax, [esp+10h] ;// mov r8, [rsp+10h] REXR mov ecx, [esp+18h] ;// mov r9, [rsp+18h] call esi mov esp,ebp add esp,20h pop esi pop ebp retf align 10h ;// ---- End of x64 code ------------------------------------------------------------------------------------------------ @@1: call fword ptr[esp] mov esi, eax ;// A serializing instruction is required here, to avoid access violation later xor eax,eax ;// when working with the stack. cpuid ;// mov eax, esi ;// mov esp, ebp pop esi pop ebx pop ebp ret _Wow64NativeCall endp ;// WOW64 inject context stub. ;// Receives pointer to INJECT_CONTEXT structure in RAX _Wow64InjectStub proc push [eax] ;// retpoint push ecx push edx REXB push eax ;// push r8 REXB push ecx ;// push r9 push ebp REXW mov ebp, esp REXW ;// Since we get here by the context switch from the patched application entry point we always have the stack misaligned. ;// Here we have to align it on 16-bytes boundary to avoid application crash while saving SSE-state. sub esp, 38h REXW mov edx, [eax+8] REXW mov ecx, [eax+10h] call edx REXW mov esp, ebp pop ebp REXB pop ecx REXB pop eax pop edx pop ecx ret _Wow64InjectStub endp _Win32InjectStub proc push [eax] mov edx, [eax+8] mov ecx, [eax+10h] push ecx call edx ret _Win32InjectStub endp _TEXT ends public _Wow64NativeCall public _Wow64InjectStub end
18.883117
123
0.557428
6104d25fc155093bef7bc9ad1c11a6bcf1409f28
375
asm
Assembly
asm/string.asm
tylerdmace/lc3vm
2a20d6db534b4a04d5598421e74b1ab689c6ab76
[ "MIT" ]
1
2019-04-10T01:35:16.000Z
2019-04-10T01:35:16.000Z
asm/string.asm
tylerdmace/lc3vm
2a20d6db534b4a04d5598421e74b1ab689c6ab76
[ "MIT" ]
null
null
null
asm/string.asm
tylerdmace/lc3vm
2a20d6db534b4a04d5598421e74b1ab689c6ab76
[ "MIT" ]
null
null
null
.ORIG x3000 ; Address where program is loaded LEA R0, TEST_STR ; Load the address of TEST_STR into R0 PUTs ; Ouput the string pointed to by R0 to STDOUT HALT ; Halt execution TEST_STR .STRINGZ "This is a test!" ; Our test string .END ; EOF
62.5
81
0.48
621a107048b959464c06c515680cbe4459743fee
270
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_iy/cm48_sdcciy_trunc_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_iy/cm48_sdcciy_trunc_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_iy/cm48_sdcciy_trunc_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; float trunc(float x) __z88dk_fastcall SECTION code_fp_math48 PUBLIC cm48_sdcciy_trunc_fastcall EXTERN cm48_sdcciyp_dx2m48, am48_trunc, cm48_sdcciyp_m482d cm48_sdcciy_trunc_fastcall: call cm48_sdcciyp_dx2m48 call am48_trunc jp cm48_sdcciyp_m482d
15.882353
58
0.818519
dadc37484658967b25fec4b4e4d91245781c9fe4
2,965
asm
Assembly
programs/oeis/133/A133073.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/133/A133073.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/133/A133073.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A133073: a(n) = n^5 + n^3 + n^2. ; 0,3,44,279,1104,3275,8028,17199,33344,59859,101100,162503,250704,373659,540764,762975,1052928,1425059,1895724,2483319,3208400,4093803,5164764,6449039,7977024,9781875,11899628,14369319,17233104,20536379,24327900,28659903,33588224,39172419,45475884,52565975,60514128,69395979,79291484,90285039,102465600,115926803,130767084,147089799,165003344,184621275,206062428,229451039,254916864,282595299,312627500,345160503,380347344,418347179,459325404,503453775,550910528,601880499,656555244,715133159,777819600,844827003,916375004,992690559,1074008064,1160569475,1252624428,1350430359,1454252624,1564364619,1681047900,1804592303,1935296064,2073465939,2219417324,2373474375,2535970128,2707246619,2887655004,3077555679,3277318400,3487322403,3707956524,3939619319,4182719184,4437674475,4704913628,4984875279,5278008384,5584772339,5905637100,6241083303,6591602384,6957696699,7339879644,7738675775,8154620928,8588262339,9040158764,9510880599,10001010000,10511141003,11041879644,11593844079,12167664704,12763984275,13383458028,14026753799,14694552144,15387546459,16106443100,16851961503,17624834304,18425807459,19255640364,20115105975,21004990928,21926095659,22879234524,23865235919,24884942400,25939210803,27028912364,28154932839,29318172624,30519546875,31759985628,33040433919,34361851904,35725214979,37131513900,38581754903,40076959824,41618166219,43206427484,44842812975,46528408128,48264314579,50051650284,51891549639,53785163600,55733659803,57738222684,59800053599,61920370944,64100410275,66341424428,68644683639,71011475664,73443105899,75940897500,78506191503,81140346944,83844740979,86620769004,89469844775,92393400528,95392887099,98469774044,101625549759,104861721600,108179816003,111581378604,115067974359,118641187664,122302622475,126053902428,129896670959,133832591424,137863347219,141990641900,146216199303,150541763664,154969099739,159499992924,164136249375,168879696128,173732181219,178695573804,183771764279,188962664400,194270207403,199696348124,205243063119,210912350784,216706231475,222626747628,228675963879,234855967184,241168866939,247616795100,254201906303,260926377984,267792410499,274802227244,281958074775,289262222928,296716964939,304324617564,312087521199,320008040000,328088562003,336331499244,344739287879,353314388304,362059285275,370976488028,380068530399,389337970944,398787393059,408419405100,418236640503,428241757904,438437441259,448826399964,459411368975,470195108928,481180406259,492370073324,503766948519,515373896400,527193807803,539229599964,551484216639,563960628224,576661831875,589590851628,602750738519,616144570704,629775453579,643646519900,657760929903,672121871424,686732560019,701596239084,716716179975,732095682128,747738073179,763646709084,779824974239,796276281600,813004072803,830011818284,847303017399,864881198544,882749919275,900912766428,919373356239,938135334464,957202376499 mov $2,$0 pow $2,4 mul $2,$0 mov $4,$0 pow $0,2 add $0,$2 mov $1,$0 mov $3,$4 mul $3,$4 mul $3,$4 add $1,$3
197.666667
2,820
0.890051
6aa91c8b6752eba37dea9270c5043a9b085e9e53
8,293
asm
Assembly
src/shaders/post_processing/gen5_6/Core_Kernels/PA_DNDI_ALG.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
src/shaders/post_processing/gen5_6/Core_Kernels/PA_DNDI_ALG.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
src/shaders/post_processing/gen5_6/Core_Kernels/PA_DNDI_ALG.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
/* * All Video Processing kernels * Copyright © <2010>, Intel Corporation. * * This program is licensed under the terms and conditions of the * Eclipse Public License (EPL), version 1.0. The full text of the EPL is at * http://www.opensource.org/licenses/eclipse-1.0.php. * */ #define DI_ENABLE #include "DNDI.inc" #ifdef DI_ONLY #undef nSMPL_RESP_LEN #define nSMPL_RESP_LEN nSMPL_RESP_LEN_DI // set the number of GRF #else #undef nSMPL_RESP_LEN #define nSMPL_RESP_LEN nSMPL_RESP_LEN_DNDI // set the number of GRF #endif #undef nDPW_BLOCK_SIZE_HIST #define nDPW_BLOCK_SIZE_HIST nBLOCK_WIDTH_4+nBLOCK_HEIGHT_1 // HIST Block Size for Write is 4x2 #undef nDPW_BLOCK_SIZE_DN #define nDPW_BLOCK_SIZE_DN nBLOCK_WIDTH_32+nBLOCK_HEIGHT_4 // DN Block Size for Write is 32x4 ////////////////////////////////////// Run the DN Algorithm /////////////////////////////////////// #include "DNDI_Command.asm" ////////////////////////////////////// Rearrange for Internal Planar ////////////////////////////// //// move the previous frame Y component to internal planar format //$for (0; <nY_NUM_OF_ROWS/2; 1) { // mov (16) uwDEST_Y(%1,0)<1> ubRESP(nDI_PREV_FRAME_LUMA_OFFSET,%1*16) //} //// move the previous frame U,V components to internal planar format //$for (0; <nUV_NUM_OF_ROWS/2; 1) { // mov (8) uwDEST_U(0,%1*8)<1> ubRESP(nDI_PREV_FRAME_CHROMA_OFFSET,%1*16+1)<16;8,2> //U pixels // mov (8) uwDEST_V(0,%1*8)<1> ubRESP(nDI_PREV_FRAME_CHROMA_OFFSET,%1*16)<16;8,2> //V pixels //} //// move the current frame Y component to internal planar format //$for (0; <nY_NUM_OF_ROWS/2; 1) { // mov (16) uwDEST_Y(%1+4,0)<1> ubRESP(nDI_CURR_FRAME_LUMA_OFFSET,%1*16) //} //// move the current frame U,V components to internal planar format //$for (0; <nUV_NUM_OF_ROWS/2; 1) { // mov (8) uwDEST_U(2,%1*8)<1> ubRESP(nDI_CURR_FRAME_CHROMA_OFFSET,%1*16+1)<16;8,2> //U pixels // mov (8) uwDEST_V(2,%1*8)<1> ubRESP(nDI_CURR_FRAME_CHROMA_OFFSET,%1*16)<16;8,2> //V pixels //} ////////////////////////////////////// Save the STMM Data for Next Run ///////////////////////// // Write STMM to memory shr (1) rMSGSRC.0<1>:ud wORIX<0;1,0>:w 1:w NODDCLR // X origin / 2 mov (1) rMSGSRC.1<1>:ud wORIY<0;1,0>:w NODDCLR_NODDCHK // Y origin mov (1) rMSGSRC.2<1>:ud nDPW_BLOCK_SIZE_STMM:ud NODDCHK // block width and height (8x4) mov (8) mudMSGHDR_STMM(0)<1> rMSGSRC.0<8;8,1>:ud // message header mov (8) mudMSGHDR_STMM(1)<1> udRESP(nDI_STMM_OFFSET,0) // Move STMM to MRF send (8) dNULLREG mMSGHDR_STMM udDUMMY_NULL nDATAPORT_WRITE nDPMW_MSGDSC+nDPMW_MSG_LEN_STMM+nBI_STMM_HISTORY_OUTPUT:ud ////////////////////////////////////// Save the History Data for Next Run ///////////////////////// #ifdef DI_ONLY #else #include "DI_Hist_Save.asm" ////////////////////////////////////// Pack and Save the DN Curr Frame for Next Run /////////////// // check top/bottom field first cmp.e.f0.0 (1) null<1>:w ubTFLD_FIRST<0;1,0>:ub 1:w add (4) pCF_Y_OFFSET<1>:uw ubSRC_CF_OFFSET<4;4,1>:ub npDN_YUV:uw //set the save DN position shl (1) rMSGSRC.0<1>:ud wORIX<0;1,0>:w 1:w NODDCLR // X origin * 2 mov (1) rMSGSRC.1<1>:ud wORIY<0;1,0>:w NODDCLR_NODDCHK // Y origin mov (1) rMSGSRC.2<1>:ud nDPW_BLOCK_SIZE_DN:ud NODDCHK // block width and height (8x4) mov (8) mudMSGHDR_DN(0)<1> rMSGSRC.0<8;8,1>:ud (f0.0) jmpi (1) TOP_FIELD_FIRST BOTTOM_FIELD_FIRST: //$for (0,0; <nY_NUM_OF_ROWS/2; 2,1) { // mov (16) r[pCF_Y_OFFSET, %1*32]<2>:ub ubRESP(nDI_CURR_2ND_FIELD_LUMA_OFFSET,%2*16) // 2nd field luma from current frame (line 0,2) // mov (16) r[pCF_Y_OFFSET, %1+1*32]<2>:ub ubRESP(nDI_CURR_FRAME_LUMA_OFFSET+%2,16) // 1st field luma from current frame (line 1,3) // mov (8) r[pCF_U_OFFSET, %1*32]<4>:ub ubRESP(nDI_CURR_2ND_FIELD_CHROMA_OFFSET,%2*16+1)<16;8,2> // 2nd field U from current frame (line 0,2) // mov (8) r[pCF_V_OFFSET, %1*32]<4>:ub ubRESP(nDI_CURR_2ND_FIELD_CHROMA_OFFSET,%2*16)<16;8,2> // 2nd field V from current frame (line 0,2) // mov (8) r[pCF_U_OFFSET, %1+1*32]<4>:ub ubRESP(nDI_CURR_FRAME_CHROMA_OFFSET+%2,16+1)<16;8,2> // 1st field U from current frame (line 1,3) // mov (8) r[pCF_V_OFFSET, %1+1*32]<4>:ub ubRESP(nDI_CURR_FRAME_CHROMA_OFFSET+%2,16)<16;8,2> // 1st field U from current frame (line 1,3) //} $for (0,0; <nY_NUM_OF_ROWS/2; 2,1) { mov (16) r[pCF_Y_OFFSET, %1*32]<2>:ub ubRESP(nDI_CURR_2ND_FIELD_LUMA_OFFSET,%2*16) // 2nd field luma from current frame (line 0,2) mov (16) r[pCF_Y_OFFSET, %1+1*32]<2>:ub ubRESP(nDI_CURR_FRAME_LUMA_OFFSET+%2,16) // 1st field luma from current frame (line 1,3) } $for (0,0; <nY_NUM_OF_ROWS/2; 2,1) { mov (8) r[pCF_U_OFFSET, %1*32]<4>:ub ubRESP(nDI_CURR_2ND_FIELD_CHROMA_OFFSET,%2*16+1)<16;8,2> // 2nd field U from current frame (line 0,2) mov (8) r[pCF_U_OFFSET, %1+1*32]<4>:ub ubRESP(nDI_CURR_FRAME_CHROMA_OFFSET+%2,16+1)<16;8,2> // 1st field U from current frame (line 1,3) } $for (0,0; <nY_NUM_OF_ROWS/2; 2,1) { mov (8) r[pCF_V_OFFSET, %1*32]<4>:ub ubRESP(nDI_CURR_2ND_FIELD_CHROMA_OFFSET,%2*16)<16;8,2> // 2nd field V from current frame (line 0,2) mov (8) r[pCF_V_OFFSET, %1+1*32]<4>:ub ubRESP(nDI_CURR_FRAME_CHROMA_OFFSET+%2,16)<16;8,2> // 1st field U from current frame (line 1,3) } jmpi (1) SAVE_DN_CURR TOP_FIELD_FIRST: //$for (0,0; <nY_NUM_OF_ROWS/2; 2,1) { // mov (16) r[pCF_Y_OFFSET, %1*32]<2>:ub ubRESP(nDI_CURR_FRAME_LUMA_OFFSET+%2,0) // 1st field luma from current frame (line 0,2) // mov (16) r[pCF_Y_OFFSET, %1+1*32]<2>:ub ubRESP(nDI_CURR_2ND_FIELD_LUMA_OFFSET,%2*16) // 2nd field luma from current frame (line 1,3) // mov (8) r[pCF_U_OFFSET, %1*32]<4>:ub ubRESP(nDI_CURR_FRAME_CHROMA_OFFSET+%2,1)<16;8,2> // 1st field U from current frame (line 0,2) // mov (8) r[pCF_V_OFFSET, %1*32]<4>:ub ubRESP(nDI_CURR_FRAME_CHROMA_OFFSET+%2,0)<16;8,2> // 1st field V from current frame (line 0,2) // mov (8) r[pCF_U_OFFSET, %1+1*32]<4>:ub ubRESP(nDI_CURR_2ND_FIELD_CHROMA_OFFSET,%2*16+1)<16;8,2> // 2nd field U from current frame (line 1,3) // mov (8) r[pCF_V_OFFSET, %1+1*32]<4>:ub ubRESP(nDI_CURR_2ND_FIELD_CHROMA_OFFSET,%2*16)<16;8,2> // 2nd field V from current frame (line 1,3) //} $for (0,0; <nY_NUM_OF_ROWS/2; 2,1) { mov (16) r[pCF_Y_OFFSET, %1*32]<2>:ub ubRESP(nDI_CURR_FRAME_LUMA_OFFSET+%2,0) // 1st field luma from current frame (line 0,2) mov (16) r[pCF_Y_OFFSET, %1+1*32]<2>:ub ubRESP(nDI_CURR_2ND_FIELD_LUMA_OFFSET,%2*16) // 2nd field luma from current frame (line 1,3) } $for (0,0; <nY_NUM_OF_ROWS/2; 2,1) { mov (8) r[pCF_U_OFFSET, %1*32]<4>:ub ubRESP(nDI_CURR_FRAME_CHROMA_OFFSET+%2,1)<16;8,2> // 1st field U from current frame (line 0,2) mov (8) r[pCF_U_OFFSET, %1+1*32]<4>:ub ubRESP(nDI_CURR_2ND_FIELD_CHROMA_OFFSET,%2*16+1)<16;8,2> // 2nd field U from current frame (line 1,3) } $for (0,0; <nY_NUM_OF_ROWS/2; 2,1) { mov (8) r[pCF_V_OFFSET, %1*32]<4>:ub ubRESP(nDI_CURR_FRAME_CHROMA_OFFSET+%2,0)<16;8,2> // 1st field V from current frame (line 0,2) mov (8) r[pCF_V_OFFSET, %1+1*32]<4>:ub ubRESP(nDI_CURR_2ND_FIELD_CHROMA_OFFSET,%2*16)<16;8,2> // 2nd field V from current frame (line 1,3) } SAVE_DN_CURR: $for(0; <nY_NUM_OF_ROWS/2; 1) { mov (8) mudMSGHDR_DN(%1+1)<1> udDN_YUV(%1)REGION(8,1) } send (8) dNULLREG mMSGHDR_DN udDUMMY_NULL nDATAPORT_WRITE nDPMW_MSGDSC+nDPMW_MSG_LEN_PA_DN_DI+nBI_DESTINATION_YUV:ud #endif // Save Processed frames #include "DI_Save_PA.asm"
59.235714
165
0.594116
183650f7d8132ffa20483b18f13fa9ecae4379c3
17,809
asm
Assembly
src/integer_io/integer_io.asm
James-P-D/x86ASMDump
60230b8db4705122762245764c773116e6a7d80c
[ "MIT" ]
null
null
null
src/integer_io/integer_io.asm
James-P-D/x86ASMDump
60230b8db4705122762245764c773116e6a7d80c
[ "MIT" ]
null
null
null
src/integer_io/integer_io.asm
James-P-D/x86ASMDump
60230b8db4705122762245764c773116e6a7d80c
[ "MIT" ]
null
null
null
; To compile: ; del integer_io.exe ; c:\masm32\bin\ml.exe /c /coff integer_io.asm ; c:\masm32\bin\polink.exe /SUBSYSTEM:console integer_io.obj ; integer_io.exe .386 ; 386 Processor Instruction Set .model flat, stdcall ; Flat memory model and stdcall method option casemap: none ; Case Sensitive include c:\\masm32\\include\\windows.inc include c:\\masm32\\include\\kernel32.inc include c:\\masm32\\include\\masm32.inc includelib c:\\masm32\\lib\\kernel32.lib includelib c:\\masm32\\m32lib\\masm32.lib .data STD_OUTPUT_HANDLE equ -11 ; https://docs.microsoft.com/en-us/windows/console/getstdhandle STD_INPUT_HANDLE equ -10 ; https://docs.microsoft.com/en-us/windows/console/getstdhandle NUMBER_BUFFER_SIZE equ 10 ; TODO: How big? How many digits? number_buffer db NUMBER_BUFFER_SIZE dup(0) cr_lf db 13, 10 test_message db "Enter a number", 13, 10 ; Example string TEST_MESSAGE_LEN equ $ - offset test_message ; Length of message .data? console_out_handle dd ? ; Our ouput handle (currently undefined) console_in_handle dd ? ; Our input handle (currently undefined) bytes_written dd ? ; Number of bytes written to output (currently undefined) bytes_read dd ? ; Number of bytes written to input (currently undefined) .code start: call get_io_handles ; Get the input/output handles push TEST_MESSAGE_LEN push offset test_message call output_string call input_signed_byte push ax call output_signed_byte push 0 ; Exit code zero for success call ExitProcess ; https://docs.microsoft.com/en-us/windows/desktop/api/processthreadsapi/nf-processthreadsapi-exitprocess ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; input_signed_byte() ; Result byte read in AX ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; input_signed_byte: push -1 ; _In_opt_ LPVOID pInputControl push offset bytes_read ; _Out_ LPDWORD lpNumberOfCharsRead push NUMBER_BUFFER_SIZE ; _In_ DWORD nNumberOfCharsToRead push offset number_buffer ; _Out_ LPVOID lpBuffer push console_in_handle ; _In_ HANDLE hConsoleInput call ReadConsole ; https://docs.microsoft.com/en-us/windows/console/readconsole mov ecx, [bytes_read] ; Save number of characters read into ECX sub ecx, 2 ; Remove CR/LF from character-read-count cmp ecx, 0 ; If two or less characters read.. jle input_signed_byte ; ..read again mov esi, offset number_buffer ; Set ESI to point to number_buffer for reading mov ebx, 0 ; Set EBX to zero mov eax, 0 ; Set EAX to zero cmp byte ptr [esi], '-' ; Is first character read a minus sign? jne input_signed_byte_loop ; If not, then just process as normal inc esi ; Incremement ESI so we are past the '-' character dec ecx ; Decremement ECX since we now have one fewer characters to process input_signed_byte_loop: mov bl, 10 ; BL will be used to multiple AX by 10 for each digit read mul bx ; Multiply existing value in AX by BX (10) and put result in AX (This will be zero on first iteration) mov bl, byte ptr [esi] ; Copy character from 'number_buffer' into BL cmp bl, '0' ; Compare character with '0'.. jl input_signed_byte ; ..and if it's less then that, then read again as it's not a number cmp bl, '9' ; Compare character with '9'.. jg input_signed_byte ; ..and if it's greater then that, then read again as it's not a number sub bl, 30h ; Convert from char to number ('3' to 3) add ax, bx ; Add the number to AX inc esi ; Incremement out pointer to 'number_buffer' loop input_signed_byte_loop ; ...and do it again ECX times mov esi, offset number_buffer ; Set ESI to point to number_buffer for reading cmp byte ptr [esi], '-' ; Check if first character is '-' jne input_signed_byte_return; If no, then just return not al ; Two's complement conversion, step 1 - Negate number inc al ; Two's complement conversion, step 2 - Add 1 to number and eax, 000000FFh ; Check still in byte range input_signed_byte_return: ret ; Return to caller ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; input_unsigned_byte() ; Result byte read in AX ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; input_unsigned_byte: push -1 ; _In_opt_ LPVOID pInputControl push offset bytes_read ; _Out_ LPDWORD lpNumberOfCharsRead push NUMBER_BUFFER_SIZE ; _In_ DWORD nNumberOfCharsToRead push offset number_buffer ; _Out_ LPVOID lpBuffer push console_in_handle ; _In_ HANDLE hConsoleInput call ReadConsole ; https://docs.microsoft.com/en-us/windows/console/readconsole mov ecx, [bytes_read] ; Save number of characters read into ECX sub ecx, 2 ; Remove CR/LF from character-read-count cmp ecx, 0 ; If two or less characters read.. jle input_unsigned_byte ; ..read again mov esi, offset number_buffer ; Set ESI to point to number_buffer for reading mov ebx, 0 ; Set EBX to zero mov eax, 0 ; Set EAX to zero input_unsigned_byte_loop: mov bl, 10 ; BL will be used to multiple AX by 10 for each digit read mul bx ; Multiply existing value in AX by BX (10) and put result in AX (This will be zero on first iteration) mov bl, byte ptr [esi] ; Copy character from 'number_buffer' into BL cmp bl, '0' ; Compare character with '0'.. jl input_unsigned_byte ; ..and if it's less then that, then read again as it's not a number cmp bl, '9' ; Compare character with '9'.. jg input_unsigned_byte ; ..and if it's greater then that, then read again as it's not a number sub bl, 30h ; Convert from char to number ('3' to 3) add ax, bx ; Add the number to AX inc esi ; Incremement out pointer to 'number_buffer' loop input_unsigned_byte_loop ; ...and do it again ECX times ret ; Return to caller ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; output_signed_byte(BYTE: number) ; If most significat bit set then negative. ; otherwise, * Subtract 1 ; negate ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; output_signed_byte: pop ebp ; Pop the return address pop ax ; Pop integer to output into AX push ebp ; Push EBP back onto stack and ax, 00FFh ; Make sure AX is in range 0..255 test al, al ; Check for most significant bit set (signifies negative number in two's-complement) js output_signed_byte_is_negative_number ; Jump if SF flag is set push ax ; Number is postive, so just push it to stack.. call output_unsigned_byte ; ..and call 'output_unsigned_byte' ret ; Return to caller output_signed_byte_is_negative_number: dec al ; Two's complement conversion, step 1 - Subtract 1 from number not al ; Two's complement conversion, step 2 - Negate number and eax, 000000FFh ; Check still in byte range mov ecx, 0 ; Set digits counter to zero output_signed_byte_perform_calculation: mov dx, 0 mov bx, 10 ; Divide by 10 div bx ; Divide AX by BX ; DL contains remainer, AL contains quotient and edx, 000000FFh ; Make sure EDX (remainer) is in range 0..255 add dl, 030h ; Add 30h (the letter '0' (zero)) so we map numbers to letters push dx ; Push our letter to the stack inc ecx ; Increment digit counter cmp al, 0 ; Check if quotient is zero jne output_signed_byte_perform_calculation ; If quotient is not zero, then we need to perform the operation again mov dx, '-' ; Set DX to character '-' push dx ; Push minus sign to top of stack so that it is first character displayed inc ecx ; Increment ECX since we now have another character to pop and display mov edi, 0 ; Set EDI to zero. This will point to 'number_buffer' starting at index 0 output_signed_byte_finished_calculation: pop dx ; Read the last remainder from the stack mov byte ptr [number_buffer + edi], dl ; Copy the letter to 'number_buffer' inc edi ; Incrememnt out pointer to 'number_buffer' loop output_signed_byte_finished_calculation ; Continue looping until ECX is zero push edi ; At the end of the process, EDI will conveniently hold the number of characters written to 'number_buffer'. Pass it as a parameter to 'output_string' push offset number_buffer call output_string ret ; Return to caller ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; output_unsigned_byte(BYTE: number) ; Destroys: EBP, ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; output_unsigned_byte: pop ebp ; Pop the return address pop ax ; Pop integer to output into AX push ebp ; Push EBP back onto stack and ax, 00FFh ; Make sure AX is in range 0..255 mov ecx, 0 ; Set digits counter to zero output_unsigned_byte_perform_calculation: mov dx, 0 mov bx, 10 ; Divide by 10 div bx ; Divide AX by BX ; DL contains remainer, AL contains quotient and edx, 000000FFh ; Make sure EDX (remainer) is in range 0..255 add dl, 030h ; Add 30h (the letter '0' (zero)) so we map numbers to letters push dx ; Push our letter to the stack inc ecx ; Increment digit counter cmp al, 0 ; Check if quotient is zero jne output_unsigned_byte_perform_calculation ; If quotient is not zero, then we need to perform the operation again mov edi, 0 ; Set EDI to zero. This will point to 'number_buffer' starting at index 0 output_unsigned_byte_finished_calculation: pop dx ; Read the last remainder from the stack mov byte ptr [number_buffer + edi], dl ; Copy the letter to 'number_buffer' inc edi ; Incrememnt out pointer to 'number_buffer' loop output_unsigned_byte_finished_calculation ; Continue looping until ECX is zero push edi ; At the end of the process, EDI will conveniently hold the number of characters written to 'number_buffer'. Pass it as a parameter to 'output_string' push offset number_buffer call output_string ret ; Return to caller ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; output_string(DWORD: offset-of-string, DWORD: length-of-string) ; Destroys EBP, ESI, EDI ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; output_string: pop ebp ; Pop the return address pop esi ; Pop length-of-string into edi pop edi ; Pop offset-of-string into esi push ebp ; Push EBP back to stack push 0 ; _Reserved_ LPVOID lpReserved push offset bytes_written ; _Out_ LPDWORD lpNumberOfCharsWritten push edi ; _In_ DWORD nNumberOfCharsToWrite push esi ; _In_ const VOID * lpBuffer push console_out_handle ; _In_ HANDLE hConsoleOutput call WriteConsole ; https://docs.microsoft.com/en-us/windows/console/writeconsole ret ; Return to caller ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; output_new_line() ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; output_new_line: push 2 push offset cr_lf call output_string ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; get_io_handles() ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; get_io_handles: push STD_OUTPUT_HANDLE ; _In_ DWORD nStdHandle call GetStdHandle ; https://docs.microsoft.com/en-us/windows/console/getstdhandle mov [console_out_handle], eax; Save the output handle push STD_INPUT_HANDLE ; _In_ DWORD nStdHandle call GetStdHandle ; https://docs.microsoft.com/en-us/windows/console/getstdhandle mov [console_in_handle], eax ; Save the input handle ret end start
61.410345
199
0.432534
a7a32b4fd8703c984db74e149dfc29597b86e4de
455
asm
Assembly
oeis/131/A131710.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/131/A131710.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/131/A131710.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A131710: Overlay of Pell numbers: a(n)=A000129(n)+A000129(n-6). ; Submitted by Christian Krause ; 0,1,2,5,12,29,70,170,410,990,2390,5770,13930,33630,81190,196010,473210,1142430,2758070,6658570,16075210,38808990,93693190,226195370,546083930,1318363230,3182810390,7683984010,18550778410,44785540830,108121860070 mov $2,1 mov $4,1 lpb $0 sub $0,1 add $2,$1 cmp $3,24 mul $4,2 add $1,$4 mov $4,$2 add $2,$3 mov $3,$1 lpe mov $0,$1 div $0,2
23.947368
213
0.705495
5b47cd603227da71b1af031e2997511a5c49c1e8
308
asm
Assembly
programs/oeis/219/A219977.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/219/A219977.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/219/A219977.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A219977: Expansion of 1/(1+x+x^2+x^3). ; 1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0,1,-1,0,0 mov $1,-3 bin $1,$0 mod $1,2 mov $0,$1
38.5
226
0.470779
5624711d8dfc9a53b5b02127c05c89f01d297ca2
2,195
asm
Assembly
src/test/ref/liverange-10.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/test/ref/liverange-10.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/test/ref/liverange-10.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
// Test effective live range and register allocation // Here outsw::sw and outw::w should have the same allocation // Commodore 64 PRG executable file .file [name="liverange-10.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) .label SCREEN = $400 .segment Code main: { .label sw = 4 .label w = 2 ldx #0 lda #<-$14 sta.z sw lda #>-$14 sta.z sw+1 __b1: // outsw(sw) lda.z sw sta.z outsw.sw lda.z sw+1 sta.z outsw.sw+1 jsr outsw // for(signed int sw: -20..19 ) inc.z sw bne !+ inc.z sw+1 !: lda.z sw+1 cmp #>$14 bne __b1 lda.z sw cmp #<$14 bne __b1 lda #<0 sta.z w sta.z w+1 __b2: // outw(w) jsr outw // for(unsigned int w: 0..39 ) inc.z w bne !+ inc.z w+1 !: lda.z w+1 bne __b2 lda.z w cmp #$28 bne __b2 // } rts } // void outsw(__zp(2) int sw) outsw: { .label sw = 2 // if(sw<0) lda.z sw+1 bpl __b1 // out('-') lda #'-' jsr out // sw = -sw lda #0 sec sbc.z sw sta.z sw lda #0 sbc.z sw+1 sta.z sw+1 __b1: // outw((unsigned int)sw) jsr outw // } rts } // void outw(__zp(2) unsigned int w) outw: { .label w = 2 // BYTE1(w) lda.z w+1 // BYTE1(w)<<4 asl asl asl asl // out(HEXTAB[BYTE1(w)<<4]) tay lda HEXTAB,y jsr out // BYTE1(w) lda.z w+1 // BYTE1(w)&0x0f and #$f // out(HEXTAB[BYTE1(w)&0x0f]) tay lda HEXTAB,y jsr out // BYTE0(w) lda.z w // BYTE0(w)<<4 asl asl asl asl // out(HEXTAB[BYTE0(w)<<4]) tay lda HEXTAB,y jsr out // BYTE0(w) lda.z w // BYTE0(w)&0x0f and #$f // out(HEXTAB[BYTE0(w)&0x0f]) tay lda HEXTAB,y jsr out // } rts } // void out(__register(A) char c) out: { // idx++; inx // SCREEN[idx] = c sta SCREEN,x // } rts } .segment Data HEXTAB: .text "0123456789abcdef" .byte 0
16.021898
63
0.511617
30127006787990e415530752b9386c469c13e6be
4,850
asm
Assembly
save/flash.asm
jsmolka/gba-suite
a6447c5404c8fc2898ddc51f438271f832083b7e
[ "MIT" ]
31
2020-01-18T21:48:54.000Z
2021-01-08T11:17:56.000Z
save/flash.asm
jsmolka/gba-suite
a6447c5404c8fc2898ddc51f438271f832083b7e
[ "MIT" ]
8
2020-01-19T07:37:23.000Z
2020-11-10T17:09:24.000Z
save/flash.asm
jsmolka/gba-tests
a6447c5404c8fc2898ddc51f438271f832083b7e
[ "MIT" ]
6
2021-05-28T09:35:20.000Z
2021-12-22T18:09:32.000Z
flash_common: t001: ; Uninitialized memory ldrb r0, [r11] cmp r0, 0xFF bne f001 add r11, 32 b t002 f001: m_exit 1 t002: ; Mirror 1 mov r0, 1 mov r1, r11 m_flash 0xA0 strb r0, [r1] add r1, 0x10000 ldrb r0, [r1] cmp r0, 1 bne f002 add r11, 32 b t003 f002: m_exit 2 t003: ; Mirror 2 mov r0, 1 mov r1, r11 m_flash 0xA0 strb r0, [r1] add r1, 0x01000000 ldrb r0, [r1] cmp r0, 1 bne f003 add r11, 32 b t004 f003: m_exit 3 t004: ; Load half mov r0, 1 m_flash 0xA0 strb r0, [r11] ldrh r0, [r11] m_half r1, 0x0101 cmp r1, r0 bne f004 add r11, 32 b t005 f004: m_exit 4 t005: ; Load word mov r0, 1 m_flash 0xA0 strb r0, [r11] ldr r0, [r11] m_word r1, 0x01010101 cmp r1, r0 bne f005 add r11, 32 b t006 f005: m_exit 5 t006: ; Store half position m_half r0, 0xAABB m_flash 0xA0 strh r0, [r11] ldrb r1, [r11] cmp r1, 0xBB bne f006 m_flash 0xA0 strh r0, [r11, 1] ldrb r1, [r11, 1] cmp r1, 0xAA bne f006 add r11, 32 b t007 f006: m_exit 6 t007: ; Store half just byte m_half r0, 0xAABB m_flash 0xA0 strh r0, [r11] ldrb r1, [r11] cmp r1, 0xBB bne f007 ldrb r1, [r11, 1] cmp r1, 0xFF bne f007 add r11, 32 b t008 f007: m_exit 7 t008: ; Store word position m_word r0, 0xAABBCCDD m_flash 0xA0 str r0, [r11] ldrb r1, [r11] cmp r1, 0xDD bne f008 m_flash 0xA0 str r0, [r11, 1] ldrb r1, [r11, 1] cmp r1, 0xCC bne f008 m_flash 0xA0 str r0, [r11, 2] ldrb r1, [r11, 2] cmp r1, 0xBB bne f008 m_flash 0xA0 str r0, [r11, 3] ldrb r1, [r11, 3] cmp r1, 0xAA bne f008 add r11, 32 b t009 f008: m_exit 8 t009: ; Store word just byte m_word r0, 0xAABBCCDD m_flash 0xA0 str r0, [r11] ldrb r1, [r11] cmp r1, 0xDD bne f009 ldrb r1, [r11, 1] cmp r1, 0xFF bne f009 ldrb r1, [r11, 2] cmp r1, 0xFF bne f009 ldrb r1, [r11, 3] cmp r1, 0xFF bne f009 b t010 f009: m_exit 9 t010: ; Erase chip ; Fill chip with zeros mov r0, MEM_SRAM add r1, r0, 0x10000 mov r2, 0 .fill: m_flash 0xA0 strb r2, [r0], 1 cmp r0, r1 bne .fill ; Erase chip m_flash 0x80 m_flash 0x10 ; Wait for chip erase mov r0, MEM_SRAM mov r1, 1 .wait: add r1, 1 cmp r1, 0x100000 beq f010 ldrb r2, [r0] cmp r2, 0xFF bne .wait ; Verify erased chip mov r0, MEM_SRAM add r1, r0, 0x10000 .verify: ldrb r2, [r0], 1 cmp r2, 0xFF bne f010 cmp r0, r1 bne .verify b t011 f010: m_exit 10 t011: ; Erase sector ; Fill sector with zeros mov r0, MEM_SRAM add r1, r0, 0x1000 mov r2, 0 .fill: m_flash 0xA0 strb r2, [r0], 1 cmp r0, r1 bne .fill ; Erase sector m_flash 0x80 m_flash_prep mov r0, MEM_SRAM mov r1, 0x30 strb r1, [r0] ; Wait for sector erase mov r0, MEM_SRAM mov r1, 1 .wait: add r1, 1 cmp r1, 0x100000 beq f011 ldrb r2, [r0] cmp r2, 0xFF bne .wait ; Verify erased sector mov r0, MEM_SRAM add r1, r0, 0x1000 .verify: ldrb r2, [r0], 1 cmp r2, 0xFF bne f011 cmp r0, r1 bne .verify b flash_common_end f011: m_exit 11 flash_common_end:
17.830882
32
0.395052
7a9a19cbc86341dafe5ad278a931041b36ed6a61
153
asm
Assembly
programs/oeis/191/A191682.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/191/A191682.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/191/A191682.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A191682: Twice A113473. ; 2,4,4,6,6,6,6,8,8,8,8,8,8,8,8,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10 add $0,1 log $0,2 mov $1,$0 mul $1,2 add $1,2
17
79
0.594771
b2d136485a41df0fa6bf02507da5494877ee04ea
198
asm
Assembly
core/src/vm/vm.asm
w1jtoo/myvm
5136a43763c42b60cbd78be03e4baba1abd12e8c
[ "MIT" ]
null
null
null
core/src/vm/vm.asm
w1jtoo/myvm
5136a43763c42b60cbd78be03e4baba1abd12e8c
[ "MIT" ]
null
null
null
core/src/vm/vm.asm
w1jtoo/myvm
5136a43763c42b60cbd78be03e4baba1abd12e8c
[ "MIT" ]
null
null
null
global _compile section .text ; edi -- pointer to array of machine codes ; esi -- length of array of machine codes _compile: mov eax, 4 mov ebx, 1 mov ecx, edi mov edx, esi int 80h ret
11
42
0.681818
76d2379d4a31663cd0f70e90f331b844f40eb10c
5,161
asm
Assembly
source/personalities/personality_6502.asm
paulscottrobson/4510-unit-test
ffe14d6a0786f0b2c2a427a7df9e0942d9d6fb92
[ "MIT" ]
null
null
null
source/personalities/personality_6502.asm
paulscottrobson/4510-unit-test
ffe14d6a0786f0b2c2a427a7df9e0942d9d6fb92
[ "MIT" ]
null
null
null
source/personalities/personality_6502.asm
paulscottrobson/4510-unit-test
ffe14d6a0786f0b2c2a427a7df9e0942d9d6fb92
[ "MIT" ]
1
2021-10-21T22:53:41.000Z
2021-10-21T22:53:41.000Z
; ****************************************************************************** ; ****************************************************************************** ; ; Name: personality_6502.asm ; Purpose: Personality Code for Development Platform. ; Date: 26th July 2019 ; Author: Paul Robson ; ; ****************************************************************************** ; ****************************************************************************** * = $0000 ; 16k ROM from $0000-$FFFF .byte 0 * = $A000 ; ****************************************************************************** ; ; Constants ; ; ****************************************************************************** EXTWidth = 80 ; screen width EXTHeight = 25 ; screen height ; ****************************************************************************** ; ; Memory Allocation ; ; ****************************************************************************** EXTLowMemory = $0800 ; Workspace RAM starts here EXTHighMemory = $6000 ; Workspace RAM ends here PScreen = $B000 ; 2k screen RAM here PKeyboard = $B800 ; Keyboard port. PBreak = $B801 ; Break key. ; ****************************************************************************** ; ; Macro which resets the 65x02 stack to its default value. ; ; ****************************************************************************** EXTResetStack: .macro ldx #$FF ; reset 6502 stack. txs .endm ; ****************************************************************************** ; ; Set up code. Initialise everything except the video code (done ; by ExtReset. Puts in Dummy NMI,IRQ and Reset vectors is required ; Code will start assembly after this point via "jmp Start" ; ; ****************************************************************************** EXTStartPersonalise: #EXTResetStack ; reset stack jsr EXTReset ; reset video jsr EXTClearScreen ; clear screen jmp Start ; start main application ; ****************************************************************************** ; ; Read the key in the queue, remove the key pressed. ; ; ****************************************************************************** EXTReadKeyPort: lda PKeyboard ; read key ora #0 rts EXTRemoveKeyPressed: pha ; key pressed clear queue byte. lda #0 sta PKeyboard pla rts ; ****************************************************************************** ; ; Break Test ; ; ****************************************************************************** EXTCheckBreak: lda PBreak rts ; ****************************************************************************** ; ; Read a byte from the screen (C64 codes, e.g. @ = 0) at XY -> A ; ; ****************************************************************************** EXTReadScreen: phy ; save Y stx EXTZPWork ; into EXTZPWork tya ora #PScreen>>8 ; move into screen area sta EXTZPWork+1 ; read character there ldy #0 lda (EXTZPWork),y ply ; restore Y and exit. rts ; ****************************************************************************** ; ; Write a byte A to the screen (C64 codes, e.g. @ = 0) at XY ; ; ****************************************************************************** EXTWriteScreen: phy pha jsr EXTReadScreen ; set up the address into EXTZPWork ldy #0 pla ; restore and write. sta (EXTZPWork),y ply rts ; ****************************************************************************** ; ; Clear the screen ; ; ****************************************************************************** EXTClearScreen: pha ; save registers phx ldx #0 _EXTCSLoop: lda #32 sta PScreen+0,x sta PScreen+$100,x sta PScreen+$200,x sta PScreen+$300,x sta PScreen+$400,x sta PScreen+$500,x sta PScreen+$600,x sta PScreen+$700,x inx bne _EXTCSLoop plx ; restore pla rts ; ****************************************************************************** ; ; Scroll the whole display up one line. ; ; ****************************************************************************** EXTScrollDisplay: pha ; save registers phy lda #PScreen & $FF ; set pointer to screen sta EXTZPWork+0 lda #PScreen >> 8 sta EXTZPWork+1 _EXTScroll: ldy #EXTWidth lda (EXTZPWork),y ldy #0 sta (EXTZPWork),y inc EXTZPWork ; bump address bne _EXTNoCarry inc EXTZPWork+1 _EXTNoCarry: lda EXTZPWork ; done ? cmp #(PScreen+EXTWidth*(EXTHeight-1)) & $FF bne _EXTScroll lda EXTZPWork+1 cmp #(PScreen+EXTWidth*(EXTHeight-1)) >> 8 bne _EXTScroll ; ldy #0 ; clear bottom line. _EXTLastLine: lda #32 sta (EXTZPWork),y iny cpy #EXTWidth bne _EXTLastLine ply ; restore and exit. pla rts ; ****************************************************************************** ; ; Reset the Display System ; ; ****************************************************************************** EXTReset: rts
26.065657
80
0.369696
4699d072a3eda35c53643a0bc280bd0cebbf1387
108
asm
Assembly
Week_7/19 - Week7_cmp_2.asm
iamruveyda/KBU-Mikro
f343d1054fcdbc5de48ea9d0da467b5ecaa420b3
[ "MIT" ]
1
2021-08-10T13:39:26.000Z
2021-08-10T13:39:26.000Z
Week_7/19 - Week7_cmp_2.asm
iamruveyda/KBU-Mikro
f343d1054fcdbc5de48ea9d0da467b5ecaa420b3
[ "MIT" ]
null
null
null
Week_7/19 - Week7_cmp_2.asm
iamruveyda/KBU-Mikro
f343d1054fcdbc5de48ea9d0da467b5ecaa420b3
[ "MIT" ]
null
null
null
.model small .data .code main proc mov ax,1000H mov bx,2000H cmp ax,bx endp end main
8.307692
16
0.592593
6cedd7f395b258cfd683ef1e6ec061c6b3a7cbe0
262
asm
Assembly
programs/oeis/198/A198686.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/198/A198686.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/198/A198686.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A198686: 4*7^n-1. ; 3,27,195,1371,9603,67227,470595,3294171,23059203,161414427,1129900995,7909306971,55365148803,387556041627,2712892291395,18990246039771,132931722278403,930522055948827,6513654391641795,45595580741492571 mov $1,7 pow $1,$0 mul $1,4 sub $1,1
32.75
203
0.812977
d3899260fef16d8474ed755fe9df987d3ac4fa7f
745
asm
Assembly
programs/oeis/257/A257199.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/257/A257199.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/257/A257199.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A257199: a(n) = n*(n+1)*(n+2)*(n^2+2*n+17)/120. ; 1,5,16,41,91,182,336,582,957,1507,2288,3367,4823,6748,9248,12444,16473,21489,27664,35189,44275,55154,68080,83330,101205,122031,146160,173971,205871,242296,283712,330616,383537,443037,509712,584193,667147,759278,861328,974078 mov $14,$0 mov $16,$0 add $16,1 lpb $16 clr $0,14 mov $0,$14 sub $16,1 sub $0,$16 mov $11,$0 mov $13,$0 add $13,1 lpb $13 clr $0,11 mov $0,$11 sub $13,1 sub $0,$13 mov $8,$0 mov $10,$0 add $10,1 lpb $10 mov $0,$8 sub $10,1 sub $0,$10 mov $1,$0 pow $0,2 add $1,$0 mul $1,2 div $1,4 add $1,1 add $9,$1 lpe add $12,$9 lpe add $15,$12 lpe mov $1,$15
18.625
226
0.542282
e2dbfe02faeb9ef7503b914cdf1ce9074286bcb4
5,744
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_13687_1178.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_13687_1178.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_13687_1178.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 %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0xb98f, %rsi lea addresses_UC_ht+0xb69, %rdi nop nop nop nop add $3684, %rax mov $8, %rcx rep movsw nop nop nop nop cmp $61784, %rdx lea addresses_normal_ht+0x1d1f9, %rcx sub $2940, %r11 mov (%rcx), %dx nop nop add %rdx, %rdx lea addresses_D_ht+0x1a119, %r11 nop and %r10, %r10 mov (%r11), %edx cmp $36406, %r10 lea addresses_WT_ht+0x1c6d9, %rsi lea addresses_UC_ht+0x15519, %rdi nop nop cmp %r9, %r9 mov $56, %rcx rep movsw nop nop nop sub %rdx, %rdx lea addresses_normal_ht+0x18419, %rsi nop nop nop nop xor $36003, %rdx mov $0x6162636465666768, %r10 movq %r10, %xmm3 movups %xmm3, (%rsi) nop nop nop nop xor $58420, %r10 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r14 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi // REPMOV lea addresses_UC+0x1b7f9, %rsi lea addresses_UC+0x2899, %rdi nop cmp $19029, %r14 mov $56, %rcx rep movsb nop sub %rbp, %rbp // Store lea addresses_WC+0x14119, %r9 sub $14264, %r14 mov $0x5152535455565758, %rcx movq %rcx, %xmm3 vmovups %ymm3, (%r9) nop nop cmp %rcx, %rcx // Faulty Load lea addresses_normal+0xd19, %rcx nop nop add $60127, %rdi mov (%rcx), %bp lea oracles, %rdi and $0xff, %rbp shlq $12, %rbp mov (%rdi,%rbp,1), %rbp pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC', 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 3, 'size': 2, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 8, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 8, 'size': 16, 'same': False, 'NT': False}} {'34': 13687} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
41.927007
2,999
0.659993
aa3704bc46b8d5073b4328b95fb2c921d58440a5
725
asm
Assembly
oeis/036/A036257.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/036/A036257.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/036/A036257.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A036257: Number of inequivalent strings of 2n digits, when 2 strings are equivalent if turning 1 upside down gives the other. ; Submitted by Jamie Morken(s4) ; 1,90,9700,992250,99805000,9995118750,999877937500,99996948281250,9999923706250000,999998092652343750,99999952316289062500,9999998807907128906250,999999970197677734375000,99999999254941940917968750,9999999981373548510742187500,999999999534338712707519531250,99999999988358467817382812500000,9999999999708961695433044433593750,999999999992724042385818481445312500,99999999999818101059645423889160156250,9999999999995452526491135406494140625000,999999999999886313162278384208679199218750 mov $1,5 pow $1,$0 mul $0,2 bin $1,2 mov $2,10 pow $2,$0 sub $2,$1 mov $0,$2
55.769231
486
0.868966
a224986c22e3c603eb2fd18afc1801a79a46a85a
6,289
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_sm_/i9-9900K_12_0xca_notsx.log_1_1374.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_sm_/i9-9900K_12_0xca_notsx.log_1_1374.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_sm_/i9-9900K_12_0xca_notsx.log_1_1374.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %r15 push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x119ee, %r15 nop xor $39317, %rcx mov $0x6162636465666768, %rdi movq %rdi, %xmm0 movups %xmm0, (%r15) nop nop nop nop cmp $37329, %rcx lea addresses_UC_ht+0x1e9ee, %rsi lea addresses_UC_ht+0xfa6e, %rdi add $43075, %rbp mov $16, %rcx rep movsq nop nop nop add %rbp, %rbp lea addresses_D_ht+0x89ee, %r12 clflush (%r12) nop inc %r15 movl $0x61626364, (%r12) nop nop inc %rsi lea addresses_WC_ht+0x109ee, %rsi lea addresses_UC_ht+0x1eaa6, %rdi nop nop nop inc %r11 mov $89, %rcx rep movsl nop nop nop nop and %r11, %r11 lea addresses_UC_ht+0x150d8, %r11 nop nop nop nop nop dec %r15 mov $0x6162636465666768, %rcx movq %rcx, %xmm6 movups %xmm6, (%r11) nop nop nop xor $19712, %rdi lea addresses_normal_ht+0x1cb6e, %rdi inc %r12 mov $0x6162636465666768, %r15 movq %r15, (%rdi) sub %rbp, %rbp lea addresses_WC_ht+0x95ce, %r12 nop nop nop nop nop cmp $24313, %rsi movb $0x61, (%r12) nop nop nop nop nop and $38478, %r15 lea addresses_A_ht+0x9dee, %r11 nop nop nop sub $50099, %rcx mov (%r11), %di nop xor %rbp, %rbp lea addresses_A_ht+0xc2ee, %rsi lea addresses_WC_ht+0x199ee, %rdi nop and %r14, %r14 mov $114, %rcx rep movsl nop sub %r11, %r11 lea addresses_D_ht+0x160ee, %r11 nop nop xor %rsi, %rsi and $0xffffffffffffffc0, %r11 movaps (%r11), %xmm1 vpextrq $1, %xmm1, %rbp nop nop xor $2395, %r14 lea addresses_UC_ht+0x115c6, %rsi lea addresses_D_ht+0xe9ee, %rdi cmp %r15, %r15 mov $12, %rcx rep movsl nop nop nop nop add %r11, %r11 lea addresses_D_ht+0x18ed0, %r14 nop nop nop nop nop cmp $47865, %r11 and $0xffffffffffffffc0, %r14 vmovntdqa (%r14), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $1, %xmm6, %rdi nop nop nop add %rdi, %rdi lea addresses_WT_ht+0xfc0a, %rcx nop and $19415, %rdi movb (%rcx), %r15b nop add $14336, %r15 lea addresses_A_ht+0x1800e, %r14 clflush (%r14) nop nop nop add $49297, %rcx mov $0x6162636465666768, %rsi movq %rsi, %xmm3 movups %xmm3, (%r14) nop nop and %r12, %r12 lea addresses_WC_ht+0xa5ae, %rbp nop sub %r12, %r12 movups (%rbp), %xmm1 vpextrq $1, %xmm1, %r11 nop nop nop nop nop and %rsi, %rsi pop %rsi pop %rdi pop %rcx pop %rbp pop %r15 pop %r14 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r8 push %rax push %rcx push %rdi push %rdx // Store lea addresses_normal+0x199ee, %rcx nop nop nop sub %r14, %r14 mov $0x5152535455565758, %rdi movq %rdi, %xmm0 movups %xmm0, (%rcx) nop nop cmp $53671, %r14 // Store lea addresses_WT+0x71ee, %rcx nop sub %rdi, %rdi mov $0x5152535455565758, %rax movq %rax, %xmm4 movups %xmm4, (%rcx) nop nop nop nop xor $15281, %rcx // Store lea addresses_WT+0x71ee, %rdx nop nop nop dec %r8 mov $0x5152535455565758, %rdi movq %rdi, (%rdx) // Exception!!! nop nop mov (0), %rdi nop add %rax, %rax // Store lea addresses_RW+0x1dfbe, %rcx nop nop nop and %rax, %rax mov $0x5152535455565758, %r12 movq %r12, %xmm6 movups %xmm6, (%rcx) add $53859, %r14 // Store lea addresses_UC+0x1e4ee, %r12 nop nop nop and %rdx, %rdx mov $0x5152535455565758, %r8 movq %r8, %xmm5 vmovups %ymm5, (%r12) nop and $27464, %rax // Faulty Load lea addresses_WT+0x71ee, %rdx nop cmp $17222, %r14 mov (%rdx), %r8w lea oracles, %r14 and $0xff, %r8 shlq $12, %r8 mov (%r14,%r8,1), %r8 pop %rdx pop %rdi pop %rcx pop %rax pop %r8 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 8}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 3}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 8}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WT', 'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 11}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 11}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 7}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 3}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 10}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_WC_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 8}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_D_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 2}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5}} {'58': 1} 58 */
21.104027
149
0.649865
29b1a9fc16195909cbcbe057336993b45abd85d6
5,238
asm
Assembly
spec/render_results_spec.asm
andrzejsliwa/64spec
fb5e1325fb873b4c5052998377b6ec42e22580ba
[ "MIT" ]
53
2015-10-28T07:17:01.000Z
2022-01-26T15:46:02.000Z
spec/render_results_spec.asm
c64lib/64spec
bbf79e7b76a407725b0ba827e52e8372cf3aea69
[ "MIT" ]
4
2017-02-03T14:27:15.000Z
2021-05-13T12:01:08.000Z
spec/render_results_spec.asm
c64lib/64spec
bbf79e7b76a407725b0ba827e52e8372cf3aea69
[ "MIT" ]
11
2015-12-18T20:32:18.000Z
2022-03-26T19:31:34.000Z
.import source "64spec.asm" .import source "64core/kernal.asm" .import source "64core/memory.asm" .const COLOR_RAM = $d800 .eval config_64spec("change_character_set", false) // TODO: try printing on a different screen to not screw up test results. sfspec: :init_spec() with_default_settings: // TODO: capture and restore default settings render_result_prints_success_message_in_green_when_all_tests_passed: :store_assertions_count :store_column_and_row :set_assertions_count #5: #5 :set_column_and_row #0: #0 :render_results() :restore_column_and_row :restore_assertions_count .var expected_default_success_text_length = expected_default_success_text_end - expected_default_success_text :assert_bytes_equal #expected_default_success_text_length: expected_default_success_text: $0400 + 40*1 + 0 :copy(expected_default_success_text_length, COLOR_RAM + 40*1 + 0, colors) ldy #GREEN ldx #expected_default_success_text_length !loop: lda colors - 1, X and #%00001111 sta colors - 1, X tya sta expected_colors - 1, X dex bne !loop- :assert_bytes_equal #expected_default_success_text_length: colors: expected_colors render_result_changes_border_color_to_green_when_all_tests_passed: :store_assertions_count :store_column_and_row :set_assertions_count #5: #5 :set_column_and_row #0: #0 :render_results() lda $d020 and #%00001111 sta border_color :restore_column_and_row :restore_assertions_count :assert_equal #GREEN: border_color render_result_prints_partial_success_message_in_red_when_some_tests_passed: :store_assertions_count :store_column_and_row :set_assertions_count #2304: #2313 :set_column_and_row #0: #0 :render_results() :restore_column_and_row :restore_assertions_count .var expected_default_partial_success_text_length = expected_default_partial_success_text_end - expected_default_partial_success_text :assert_bytes_equal #expected_default_partial_success_text_length: expected_default_partial_success_text: #$0400 + 40*1 + 0 :copy(expected_default_partial_success_text_length, COLOR_RAM + 40*1 + 0, colors) ldy #RED ldx #expected_default_partial_success_text_length !loop: lda colors - 1, X and #%00001111 sta colors - 1, X tya sta expected_colors - 1, X dex bne !loop- :assert_bytes_equal #expected_default_partial_success_text_length: colors: expected_colors render_result_changes_border_color_to_red_when_some_tests_passed: :store_assertions_count :store_column_and_row :set_assertions_count #5: #10 :set_column_and_row #0: #0 :render_results() lda $d020 and #%00001111 sta border_color :restore_column_and_row :restore_assertions_count :assert_equal #RED: border_color render_result_prints_failure_message_in_red_when_no_tests_passed: :store_assertions_count :store_column_and_row :set_assertions_count #0: #65280 :set_column_and_row #0: #0 :render_results() :restore_column_and_row :restore_assertions_count .var expected_default_failure_text_length = expected_default_failure_text_end - expected_default_failure_text :assert_bytes_equal #expected_default_failure_text_length: expected_default_failure_text: #$0400 + 40*1 + 0 :copy(expected_default_failure_text_length, COLOR_RAM + 40*1 + 0, colors) ldy #RED ldx #expected_default_failure_text_length !loop: lda colors - 1, X and #%00001111 sta colors - 1, X tya sta expected_colors - 1, X dex bne !loop- :assert_bytes_equal #expected_default_failure_text_length: colors: expected_colors render_result_changes_border_color_to_red_when_no_tests_passed: :store_assertions_count :store_column_and_row :set_assertions_count #0: #$00ff :set_column_and_row #0: #0 :render_results() lda $d020 and #%00001111 sta border_color :restore_column_and_row :restore_assertions_count :assert_equal #RED: border_color :finish_spec() .pc = * "Data" column: .byte 0 row: .byte 0 passed_assertions_count: .word 0 total_assertions_count: .word 0 border_color: .byte 0 background_color: .byte 0 expected_default_success_text: .text "all tests passed: (5/5)" expected_default_success_text_end: expected_default_partial_success_text: .text "some tests passed: (2304/2313)" expected_default_partial_success_text_end: expected_default_failure_text: .text "all tests failed: (0/65280)" expected_default_failure_text_end: colors: .fill 50, 0 expected_colors: .fill 50, 0 .pseudocommand store_column_and_row { :kernal_plot_get column: row } .pseudocommand set_column_and_row column: row { :kernal_plot_set column: row } .pseudocommand restore_column_and_row { :kernal_plot_set column: row } .pseudocommand store_assertions_count { :poke16 passed_assertions_count: sfspec._passed_assertions_count :poke16 total_assertions_count: sfspec._total_assertions_count } .pseudocommand set_assertions_count passed: total { :poke16 sfspec._passed_assertions_count: passed :poke16 sfspec._total_assertions_count: total } .pseudocommand restore_assertions_count { :poke16 sfspec._passed_assertions_count: passed_assertions_count :poke16 sfspec._total_assertions_count: total_assertions_count }
29.426966
133
0.793242
260173f826a6ac687a0a6e34abebab61fea919a3
1,163
asm
Assembly
lib/strcat.asm
argymouz/alan-compiler
a226f3f0f4428fc77d2daacc39c0668bbe7dc5d9
[ "MIT" ]
null
null
null
lib/strcat.asm
argymouz/alan-compiler
a226f3f0f4428fc77d2daacc39c0668bbe7dc5d9
[ "MIT" ]
null
null
null
lib/strcat.asm
argymouz/alan-compiler
a226f3f0f4428fc77d2daacc39c0668bbe7dc5d9
[ "MIT" ]
null
null
null
; void strcat (char * trg, char * src); ; ------------------------------------- ; This function concatenates the null terminated strings ; trg and src. The result is stored in trg. Pointers to ; both strings are passed. String src is left untouched. ; It is assumed that trg has enough space to hold the ; result of the concatenation. section .code global _strcat _strcat push rbp mov rbp, rsp push rdi push rsi loop1: mov dl, byte [rdi] ; Find the end of trg or dl, dl jz loop2 inc rdi jmp short loop1 loop2: mov dl, byte [rsi] ; Until the end of src or dl, dl jz ok mov byte [rdi], dl ; Append characters inc rsi inc rdi jmp short loop2 ok: xor dl, dl ; Append final 0 mov byte [rdi], dl pop rsi pop rdi pop rbp ret
30.605263
65
0.427343
9a49ea0f29879865f511dcfcb88e6c1f996369ce
1,029
asm
Assembly
kernel/src/isrs.asm
filp/jsos
86d8082684b2afb9f058be89b12d0b77a928368c
[ "NCSA", "BSD-2-Clause", "Unlicense" ]
1
2015-04-27T05:05:28.000Z
2015-04-27T05:05:28.000Z
kernel/src/isrs.asm
filp/jsos
86d8082684b2afb9f058be89b12d0b77a928368c
[ "NCSA", "BSD-2-Clause", "Unlicense" ]
null
null
null
kernel/src/isrs.asm
filp/jsos
86d8082684b2afb9f058be89b12d0b77a928368c
[ "NCSA", "BSD-2-Clause", "Unlicense" ]
null
null
null
global asm_isr_init extern isr_dispatch extern idt_register_handler extern kprintf lol: db "interrupt %d", 10, 0 %define WITH_ERROR push eax %macro isr 1-2 push dword 0 jmp isr_%1.fin isr_%1: cli pusha %2 push dword %1 call isr_dispatch add esp, 8 mov al, 0x20 out 0xa0, al out 0x20, al popa sti iret .fin: push dword isr_%1 push dword %1 call idt_register_handler add esp, 8 %endmacro asm_isr_init: isr 0 isr 1 isr 2 isr 3 isr 4 isr 5 isr 6 isr 7 isr 8, WITH_ERROR isr 9 isr 10, WITH_ERROR isr 11, WITH_ERROR isr 12, WITH_ERROR isr 13, WITH_ERROR isr 14, WITH_ERROR isr 15 isr 16 isr 17, WITH_ERROR isr 18 isr 19 isr 20 isr 21 isr 22 isr 23 isr 24 isr 25 isr 26 isr 27 isr 28 isr 29 isr 30 isr 31 isr 32 isr 33 isr 34 isr 35 isr 36 isr 37 isr 38 isr 39 isr 40 isr 41 isr 42 isr 43 isr 44 isr 45 isr 46 isr 47 isr 48 isr 49 isr 0x80 ret
11.064516
29
0.612245
d65034e3ab9ecd8936d41f857ed5235e13915307
8,893
asm
Assembly
base/crts/crtw32/misc/i386/exsup2.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
base/crts/crtw32/misc/i386/exsup2.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
base/crts/crtw32/misc/i386/exsup2.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
;*** ;exsup2.asm ; ; Copyright (c) 1994-2001, Microsoft Corporation. All rights reserved. ; ;Purpose: ; Exception handling for i386. This is just the C8.0 version of ; the language-specific exception handler. The C9.0 version is ; found in exsup3.asm, and the routines common to both C8 and C9 ; are found in exsup.asm. ; ;Notes: ; ;Revision History: ; 01-10-94 PML Created with __except_handler2 from exsup.asm ; 01-11-95 SKS Remove MASM 5.X support ; ;******************************************************************************* ;hnt = -D_WIN32 -Dsmall32 -Dflat32 -Mx $this; ;Define small32 and flat32 since these are not defined in the NT build process small32 equ 1 flat32 equ 1 .xlist include pversion.inc ?DFDATA = 1 ?NODATA = 1 include cmacros.inc include exsup.inc .list ;REVIEW: can we get rid of _global_unwind2, and just use ; the C runtimes version, _global_unwind? extrn __global_unwind2:near extrn __local_unwind2:near ;typedef struct _EXCEPTION_REGISTRATION PEXCEPTION_REGISTRATION; ;struct _EXCEPTION_REGISTRATION{ ; struct _EXCEPTION_REGISTRATION *prev; ; void (*handler)(PEXCEPTION_RECORD, PEXCEPTION_REGISTRATION, PCONTEXT, PEXCEPTION_RECORD); ; struct scopetable_entry *scopetable; ; int trylevel; ; int _ebp; ; PEXCEPTION_POINTERS xpointers; ;}; _C8_EXCEPTION_REGISTRATION struc ; C8.0 version dd ? ; prev (common) dd ? ; handler (common) ;private: scopetable dd ? trylevel dd ? _ebp dd ? xpointers dd ? _C8_EXCEPTION_REGISTRATION ends ;#define EXCEPTION_MAXIMUM_PARAMETERS 4 ;typedef struct _EXCEPTION_RECORD EXCEPTION_RECORD; ;typedef EXCEPTION_RECORD *PEXCEPTION_RECORD; ;struct _EXCEPTION_RECORD{ ; NTSTATUS ExceptionCode; ; ULONG ExceptionFlags; ; struct _EXCEPTION_RECORD *ExceptionRecord; ; PVOID ExceptionAddress; ; ULONG NumberParameters; ; ULONG ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS]; ;}; _EXCEPTION_RECORD struc exception_number dd ? exception_flags dd ? exception_record dd ? exception_address dd ? number_parameters dd ? exception_information dd 4 dup(?) _EXCEPTION_RECORD ends SIZEOF_EXCEPTION_RECORD equ 36 ;/* following is the structure returned by the _exception_info() intrinsic. */ ;typedef struct _EXCEPTION_POINTERS EXCEPTION_POINTERS; ;typedef struct EXCEPTION_POINTERS *PEXCEPTION_POINTERS; ;struct _EXCEPTION_POINTERS{ ; PEXCEPTION_RECORD ExceptionRecord; ; PCONTEXT Context; ;}; _EXCEPTION_POINTERS struc ep_xrecord dd ? ep_context dd ? _EXCEPTION_POINTERS ends SIZEOF_EXCEPTION_POINTERS equ 8 assumes DS,DATA assumes FS,DATA __except_list equ 0 ;struct _SCOPETABLE_ENTRY{ ; int enclosing_level; /* lexical level of enclosing scope */ ; int (*filter)(PEXCEPTION_RECORD); /* NULL for a termination handler */ ; void (*specific_handler)(void); /* xcpt or termination handler */ ;}; ;struct _SCOPETABLE_ENTRY Scopetable[NUMTRYS]; _SCOPETABLE_ENTRY struc enclosing_level dd ? filter dd ? specific_handler dd ? _SCOPETABLE_ENTRY ends BeginCODE ;/* _EXCEPT_HANDLER2 - Try to find an exception handler listed in the scope ; * table associated with the given registration record, that wants to accept ; * the current exception. If we find one, run it (and never return). ; * RETURNS: (*if* it returns) ; * DISPOSITION_DISMISS - dismiss the exception. ; * DISPOSITION_CONTINUE_SEARCH - pass the exception up to enclosing handlers ; */ ;int _except_handler2( ; PEXCEPTION_RECORD exception_record, ; PEXCEPTION_REGISTRATION registration, ; PCONTEXT context, ; PEXCEPTION_REGISTRATION dispatcher) ;{ ; int ix, filter_result; ; ; for(ix=registration->trylevel; ix!=-1; ix=registration->xscope[ix].enclosing_level){ ; /* if filter==NULL, then this is an entry for a termination handler */ ; if(registration->xscope[ix].filter){ ; /* NB: call to the filter may trash the callee save ; registers. (this is *not* a standard cdecl function) */ ; filter_result=(*registration->xscope[ix].filter)(xinfo); ; if(filter_result==FILTER_DISMISS) ; return(-1); /* dismiss */ ; if(filter_result==FILTER_ACCEPT){ ; _global_unwind2(registration); ; _local_unwind2(registration, ix); ; (*registration->xscope[ix].specific_handler)(void); ; assert(UNREACHED); /*should never return from handler*/ ; } ; assert(filter_result==FILTER_CONTINUE_SEARCH); ; } ; } ; return(0); /* didnt find one */ ;} db 'VC10' ;; VC/C++ 1.0/32-bit (C8.0) version db 'XC00' ;; so debugger can recognize this proc (cuda:3936) cProc _except_handler2,<C,PUBLIC>,<IBX,ISI,IDI,IBP> parmDP xrecord parmDP registration parmDP context parmDP dispatcher localV xp,SIZEOF_EXCEPTION_POINTERS cBegin ;4*4b for callee saves + 4b return address + 4b param = 24 ;DF in indeterminate state at time of exception, so clear it cld mov ebx, registration ;ebx= PEXCEPTION_REGISTRATION mov eax, xrecord test [eax.exception_flags], EXCEPTION_UNWIND_CONTEXT jnz short _lh_unwinding ;build the EXCEPTION_POINTERS locally store its address in the ; registration record. this is the pointer that is returned by ; the _eception_info intrinsic. mov xp.ep_xrecord, eax mov eax, context mov xp.ep_context, eax lea eax, xp mov [ebx.xpointers], eax mov esi, [ebx.trylevel] ;esi= try level mov edi, [ebx.scopetable] ;edi= scope table base _lh_top: cmp esi, -1 je short _lh_bagit lea ecx, [esi+esi*2] ;ecx= trylevel*3 cmp dword ptr [(edi+ecx*4).filter], 0 je short _lh_continue ;term handler, so keep looking ;filter may trash *all* registers, so save ebp and scopetable offset push esi push ebp mov ebp, [ebx._ebp] call [(edi+ecx*4).filter] ;call the filter pop ebp pop esi ;ebx may have been trashed by the filter, so we must reload mov ebx, registration ; Accept <0, 0, >0 instead of just -1, 0, +1 or eax, eax jz short _lh_continue js short _lh_dismiss ;assert(eax==FILTER_ACCEPT) ;reload xscope base, cuz it was trashed by the filter call mov edi, [ebx.scopetable] ;load handler address before we loose components of address mode push ebx ;registration* call __global_unwind2 ;run term handlers add esp, 4 ;setup ebp for the local unwinder and the specific handler mov ebp, [ebx._ebp] ;the stop try level == accepting except level push esi ;stop try level push ebx ;registration* call __local_unwind2 add esp, 8 lea ecx, [esi+esi*2] ;ecx=trylevel*3 ; set the current trylevel to our enclosing level immediately ; before giving control to the handler. it is the enclosing ; level, if any, that guards the handler. mov eax, [(edi+ecx*4).enclosing_level] mov [ebx.trylevel], eax call [(edi+ecx*4).specific_handler] ;call the except handler ;assert(0) ;(NB! should not return) _lh_continue: ;reload the scope table base, possibly trashed by call to filter mov edi, [ebx.scopetable] lea ecx, [esi+esi*2] mov esi, [edi+ecx*4+0] ;load the enclosing trylevel jmp short _lh_top _lh_dismiss: mov eax, DISPOSITION_DISMISS ;dismiss the exception jmp short _lh_return _lh_bagit: mov eax, DISPOSITION_CONTINUE_SEARCH jmp short _lh_return _lh_unwinding: push ebp mov ebp, [ebx._ebp] push -1 push ebx call __local_unwind2 add esp, 8 pop ebp ;the return value is not really relevent in an unwind context mov eax, DISPOSITION_CONTINUE_SEARCH _lh_return: cEnd EndCODE END
34.468992
96
0.607332
2265c54503d78ece35dc949465287aa55e9bbf93
3,948
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_866.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_866.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_866.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r8 push %rax push %rbp push %rdi // Load lea addresses_US+0x10731, %rax nop nop nop nop sub %r10, %r10 movb (%rax), %r12b nop inc %rbp // Faulty Load lea addresses_D+0x1f1, %r11 xor %rdi, %rdi movups (%r11), %xmm3 vpextrq $1, %xmm3, %rax lea oracles, %r8 and $0xff, %rax shlq $12, %rax mov (%r8,%rax,1), %rax pop %rdi pop %rbp pop %rax pop %r8 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_US', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
71.781818
2,999
0.660334
35fb792e92f1e61f7714016de034a318e37a9dbd
362
asm
Assembly
oeis/072/A072042.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/072/A072042.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/072/A072042.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A072042: a(n+2) = a(n+1)*a(n)*(1+1/n), a(1)=a(2)=1. ; Submitted by Jamie Morken(s1) ; 1,1,2,3,8,30,288,10080,3317760,37623398400,138694895861760000,5739990655358858585702400000,868480806755424464755519466250436608000000000 sub $0,1 mov $1,1 mov $2,1 mov $3,1 mov $4,1 lpb $0 sub $0,1 mul $4,$1 mov $1,$3 add $2,1 mul $1,$2 mov $3,$4 lpe mov $0,$1
19.052632
138
0.657459
5921dbeceb0118cf677805eb80e4b2f9951bddc0
114
asm
Assembly
tests/include_path_test.asm
no111u3/avra-rs
45f09edace6263636d7fd3d80d339fa92891f776
[ "Apache-2.0" ]
27
2020-02-29T00:03:10.000Z
2022-01-02T18:23:18.000Z
tests/include_path_test.asm
no111u3/avra-rs
45f09edace6263636d7fd3d80d339fa92891f776
[ "Apache-2.0" ]
null
null
null
tests/include_path_test.asm
no111u3/avra-rs
45f09edace6263636d7fd3d80d339fa92891f776
[ "Apache-2.0" ]
null
null
null
.includepath "includes" .include "include_test_2.inc" .cseg in r0, SREG ; Read status from status register into r0
28.5
54
0.780702
5db57665d2e19ddae1264375e70a34fffaa35979
4,963
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_949.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_949.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_949.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 %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x52d1, %r10 nop nop sub %r14, %r14 movups (%r10), %xmm4 vpextrq $0, %xmm4, %r12 xor %rbx, %rbx lea addresses_WC_ht+0x14c9, %r14 nop nop inc %rdx mov (%r14), %si nop nop nop nop cmp $42245, %r12 lea addresses_WC_ht+0x14331, %rsi lea addresses_D_ht+0xeef1, %rdi xor $28634, %rbx mov $11, %rcx rep movsl cmp $61116, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r15 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi // REPMOV lea addresses_WC+0xd750, %rsi lea addresses_D+0x9a31, %rdi clflush (%rsi) nop nop cmp $10283, %rax mov $123, %rcx rep movsb nop nop nop sub $28314, %rdi // Faulty Load lea addresses_PSE+0xa4d1, %rsi nop nop nop dec %rdx vmovups (%rsi), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $1, %xmm0, %r15 lea oracles, %rdi and $0xff, %r15 shlq $12, %r15 mov (%rdi,%r15,1), %r15 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r15 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': 0, 'same': False}, 'dst': {'type': 'addresses_D', 'congruent': 4, 'same': False}, 'OP': 'REPM'} [Faulty Load] {'src': {'type': 'addresses_PSE', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 16, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 2, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'} {'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 */
47.721154
2,999
0.660488
49af7fabb7891d42f0ec1c916bc0a4b3186e728c
4,824
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_1_270.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_1_270.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_1_270.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r15 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x1e779, %rsi lea addresses_normal_ht+0x13499, %rdi nop nop nop nop nop cmp $20799, %r8 mov $50, %rcx rep movsw nop nop nop cmp %rdx, %rdx lea addresses_UC_ht+0xd09, %r11 nop nop dec %r13 mov $0x6162636465666768, %rcx movq %rcx, %xmm4 and $0xffffffffffffffc0, %r11 movaps %xmm4, (%r11) nop cmp %rdx, %rdx lea addresses_WC_ht+0x1cc89, %r11 clflush (%r11) nop nop nop nop cmp $50047, %rdi mov $0x6162636465666768, %r8 movq %r8, %xmm2 vmovups %ymm2, (%r11) nop nop nop nop nop add %rcx, %rcx lea addresses_WC_ht+0x155b9, %r11 clflush (%r11) xor $35795, %rdx movb (%r11), %cl nop nop nop nop cmp $34439, %r8 lea addresses_UC_ht+0x1d79, %rsi lea addresses_normal_ht+0x33c7, %rdi nop nop cmp %r15, %r15 mov $64, %rcx rep movsb nop cmp $48467, %rdx lea addresses_normal_ht+0x41f5, %rsi lea addresses_normal_ht+0x9a79, %rdi nop nop nop nop inc %r11 mov $29, %rcx rep movsw nop nop nop and $14083, %r11 lea addresses_D_ht+0x1eca5, %r13 nop nop add $18360, %rdi movl $0x61626364, (%r13) nop lfence lea addresses_WC_ht+0xcf79, %r8 xor $20459, %r11 mov (%r8), %edx nop nop nop nop nop xor %rdi, %rdi lea addresses_A_ht+0x14b79, %rdi nop nop nop sub $27290, %rdx movw $0x6162, (%rdi) nop nop sub %rdi, %rdi lea addresses_UC_ht+0x1de41, %rsi lea addresses_D_ht+0x1dd5d, %rdi nop nop nop nop dec %r8 mov $48, %rcx rep movsb nop nop nop nop nop and %rdx, %rdx lea addresses_normal_ht+0xf0b9, %rsi nop and $59739, %r8 movw $0x6162, (%rsi) add %r11, %r11 lea addresses_UC_ht+0x5779, %rsi lea addresses_WC_ht+0x14279, %rdi nop nop nop cmp $6716, %r13 mov $111, %rcx rep movsl nop nop nop nop nop add %rdx, %rdx lea addresses_UC_ht+0x1b7b0, %rdi sub %rdx, %rdx movb $0x61, (%rdi) nop nop nop nop nop add %r15, %r15 lea addresses_D_ht+0x1e481, %r8 nop nop inc %rsi mov (%r8), %r13w nop cmp $7985, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %r8 pop %r15 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %rbx push %rcx push %rdi push %rsi // REPMOV lea addresses_A+0x1b899, %rsi lea addresses_A+0xb379, %rdi nop nop nop xor %rbx, %rbx mov $119, %rcx rep movsw nop nop add $2181, %rbx // Faulty Load lea addresses_A+0xb379, %rdi nop nop nop nop nop and $12361, %rcx mov (%rdi), %si lea oracles, %rcx and $0xff, %rsi shlq $12, %rsi mov (%rcx,%rsi,1), %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_A', 'congruent': 0, 'same': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': True, 'congruent': 1, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 4, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 4, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 1, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 8, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 6, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 6, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 2, 'size': 2, 'same': False, 'NT': False}} {'00': 1} 00 */
20.52766
156
0.654022
e80fba75e2d50940734f9968e7d4657057552ca9
1,570
asm
Assembly
home/vblank.asm
AmateurPanda92/pokemon-rby-dx
f7ba1cc50b22d93ed176571e074a52d73360da93
[ "MIT" ]
9
2020-07-12T19:44:21.000Z
2022-03-03T23:32:40.000Z
home/vblank.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
home/vblank.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2021-03-28T18:33:43.000Z
2021-05-06T13:12:09.000Z
VBlank:: push af push bc push de push hl ld a, [H_LOADEDROMBANK] ld [wVBlankSavedROMBank], a ld a, [hSCX] ld [rSCX], a ld a, [hSCY] ld [rSCY], a ld a, [wDisableVBlankWYUpdate] and a jr nz, .ok ld a, [hWY] ld [rWY], a .ok call AutoBgMapTransfer call VBlankCopyBgMap call RedrawRowOrColumn call VBlankCopy call VBlankCopyDouble call UpdateMovingBgTiles call $ff80 ; hOAMDMA ld a, BANK(PrepareOAMData) ld [H_LOADEDROMBANK], a ld [MBC1RomBank], a call PrepareOAMData ; VBlank-sensitive operations end. call Random ld a, [H_VBLANKOCCURRED] and a jr z, .skipZeroing xor a ld [H_VBLANKOCCURRED], a .skipZeroing ld a, [H_FRAMECOUNTER] and a jr z, .skipDec dec a ld [H_FRAMECOUNTER], a .skipDec call FadeOutAudio ld a, [wAudioROMBank] ; music ROM bank ld [H_LOADEDROMBANK], a ld [MBC1RomBank], a cp BANK(Audio1_UpdateMusic) jr nz, .checkForAudio2 .audio1 call Audio1_UpdateMusic jr .afterMusic .checkForAudio2 cp BANK(Audio2_UpdateMusic) jr nz, .audio3 .audio2 call Music_DoLowHealthAlarm call Audio2_UpdateMusic jr .afterMusic .audio3 call Audio3_UpdateMusic .afterMusic callba TrackPlayTime ; keep track of time played ld a, [hDisableJoypadPolling] and a call z, ReadJoypad ld a, [wVBlankSavedROMBank] ld [H_LOADEDROMBANK], a ld [MBC1RomBank], a pop hl pop de pop bc pop af reti DelayFrame:: ; Wait for the next vblank interrupt. ; As a bonus, this saves battery. NOT_VBLANKED EQU 1 ld a, NOT_VBLANKED ld [H_VBLANKOCCURRED], a .halt halt ld a, [H_VBLANKOCCURRED] and a jr nz, .halt ret
14.811321
49
0.729299
e486c09c2fc678f421468b3f1b87c7918bdd0157
389
asm
Assembly
src/firmware-tests/Platform/Lcd/PollAfterLcdMock.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
1
2019-12-12T09:07:08.000Z
2019-12-12T09:07:08.000Z
src/firmware-tests/Platform/Lcd/PollAfterLcdMock.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
null
null
null
src/firmware-tests/Platform/Lcd/PollAfterLcdMock.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
null
null
null
#include "Platform.inc" #include "PollChain.inc" #include "TestDoubles.inc" radix decimal udata global calledPollAfterLcd calledPollAfterLcd res 1 PollAfterLcdMock code global initialisePollAfterLcdMock global POLL_AFTER_LCD initialisePollAfterLcdMock: banksel calledPollAfterLcd clrf calledPollAfterLcd return POLL_AFTER_LCD: mockCalled calledPollAfterLcd return end
14.961538
34
0.830334
0ec4050cccb3583cfff99aef748429746eea84bc
257
asm
Assembly
examples/reverse2.asm
Rkern91/util.asm
c8dfac102a2e3c6bc2d2ca5802c783bebc0f2f37
[ "MIT" ]
1
2021-11-09T02:40:41.000Z
2021-11-09T02:40:41.000Z
examples/reverse2.asm
Rkern91/util.asm
c8dfac102a2e3c6bc2d2ca5802c783bebc0f2f37
[ "MIT" ]
null
null
null
examples/reverse2.asm
Rkern91/util.asm
c8dfac102a2e3c6bc2d2ca5802c783bebc0f2f37
[ "MIT" ]
null
null
null
%include '../util.asm' section .text global _start _start: mov rbx, 8 .laco1: call readint push rax dec rbx jnz .laco1 call endl mov rbx, 8 .laco2: pop rdi call printint call endl dec rbx jnz .laco2 call exit0
10.28
22
0.607004
9172affce1f3d4669abd466712b566c6731b0423
1,582
asm
Assembly
HW4/ChristianWebber-HW4-2.asm
vonderborch/CS260
ff435317be557c10f131f99184e944ef2ada7cdf
[ "MIT" ]
null
null
null
HW4/ChristianWebber-HW4-2.asm
vonderborch/CS260
ff435317be557c10f131f99184e944ef2ada7cdf
[ "MIT" ]
null
null
null
HW4/ChristianWebber-HW4-2.asm
vonderborch/CS260
ff435317be557c10f131f99184e944ef2ada7cdf
[ "MIT" ]
null
null
null
# test data .data cstr: .asciiz "eve" .text .globl palMAIN, isPalindrome # a test main palMAIN: la $a0, cstr jal isPalindrome li $v0, 10 syscall # main function to call for this task isPalindrome: # save the return address to the stack after opening space for it addi $sp,$sp,-4 sw $ra,0($sp) add $a1, $a0, $zero #setting $a1 to the first character in passed string jal STRLEN # get the length of the inputted string addi $t3, $v0, -1 # subtract 1 from the length of the inputted string (to account for 0 being register "base" not 1) add $t0, $a1, $zero # set $t0 to the first character in the inputted string add $t1, $a1, $t3 # set $t1 to the last character in the inputted string addi $t4, $zero, 1 #set isPalindrome "boolean" to true (1 = true, 0 = false) palLOOP: bge $t0, $t1, palEXIT # if the $t0 and $t1 point to the same character location (or $t0 is # pointing to a higher one than $t1), we have a palindrome! # point $t2 and $t3 to the next characters for their respective parts of the string lb $t2($t0) lb $t3($t1) # if the characters being looked at do not match, this is no palindrome bne $t2, $t3, palBAD # increment character iterators addi $t0, $t0, 1 addi $t1, $t1, -1 # repeat loop j palLOOP palBAD: # set isPalindrome "boolean" to false add $t4, $zero, $zero palEXIT: add $v0, $zero, $t4 # set the return variable to the isPalindrome "boolean" lw $ra,0($sp) # load the return address... addi $sp,$sp,4 # ... and then remove the stack space jr $ra # and jump back to the function that called isPalindrome!
28.25
117
0.689001
a49cccb6727ad05feaad5aa6579c3692813a9674
409
asm
Assembly
constants/mart_constants.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
constants/mart_constants.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
constants/mart_constants.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
2
2021-08-11T19:47:07.000Z
2022-01-01T07:07:56.000Z
; mart types (see engine/items/mart.asm) const_def const MARTTYPE_STANDARD const MARTTYPE_BITTER const MARTTYPE_BARGAIN const MARTTYPE_PHARMACY const MARTTYPE_ROOFTOP const MARTTYPE_TM ; Marts indexes (see data/items/marts.asm) const_def const MART_0_BADGE const MART_1_BADGE const MART_3_BADGE const MART_5_BADGE const MART_7_BADGE const MART_8_BADGE const MART_JUBILIFE const MART_OREBURGH
20.45
42
0.831296
d0b2cab7d5241854d27843e65156e5fc589a0011
974
asm
Assembly
oeis/194/A194149.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/194/A194149.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/194/A194149.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A194149: Sum{floor(j*(5-sqrt(3))/2) : 1<=j<=n}; n-th partial sum of Beatty sequence for (5-sqrt(3))/2. ; Submitted by Jon Maiga ; 1,4,8,14,22,31,42,55,69,85,102,121,142,164,188,214,241,270,301,333,367,402,439,478,518,560,604,649,696,745,795,847,900,955,1012,1070,1130,1192,1255,1320,1386,1454,1524,1595,1668,1743,1819,1897,1977 mov $2,$0 add $2,1 mov $11,$0 lpb $2 mov $0,$11 sub $2,1 sub $0,$2 mov $8,$0 mov $9,0 mov $10,$0 add $10,1 lpb $10 mov $0,$8 mov $5,0 sub $10,1 sub $0,$10 mov $4,$0 mov $6,2 lpb $6 mov $0,$4 sub $6,1 add $0,$6 trn $0,1 seq $0,74065 ; Numerators a(n) of fractions slowly converging to sqrt(3): let a(1) = 0, b(n) = n - a(n); if (a(n) + 1) / b(n) < sqrt(3), then a(n+1) = a(n) + 1, else a(n+1)= a(n). mov $7,$6 mul $7,$0 add $5,$7 lpe min $4,1 mul $4,$0 mov $0,$5 sub $0,$4 add $0,1 add $9,$0 lpe add $3,$9 lpe mov $0,$3
22.651163
199
0.526694
b71905a1e968486223e339eb099a05914d13282e
6,976
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1436.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1436.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1436.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x15409, %rsi lea addresses_A_ht+0x1d58f, %rdi nop nop nop nop dec %rdx mov $33, %rcx rep movsw nop nop nop nop inc %rax lea addresses_WT_ht+0x257a, %rsi lea addresses_UC_ht+0x1e679, %rdi nop nop nop xor %r9, %r9 mov $117, %rcx rep movsq sub $2770, %rdi lea addresses_A_ht+0x2e09, %rdx nop nop nop nop nop xor %r15, %r15 movb $0x61, (%rdx) nop nop and %rdx, %rdx lea addresses_D_ht+0x1bc09, %rcx nop sub %rdi, %rdi mov $0x6162636465666768, %r9 movq %r9, %xmm7 movups %xmm7, (%rcx) nop nop nop add $48954, %rax lea addresses_normal_ht+0x13c39, %rcx nop nop nop add %rdi, %rdi mov (%rcx), %r9 nop nop nop sub $11256, %rsi lea addresses_D_ht+0x190e1, %rsi lea addresses_WC_ht+0x19409, %rdi sub $35546, %r13 mov $101, %rcx rep movsq nop nop nop nop sub %r13, %r13 lea addresses_D_ht+0x9544, %rdx nop nop nop nop nop sub %r15, %r15 mov (%rdx), %rsi cmp $7421, %rdx lea addresses_WT_ht+0x7769, %rdi cmp %r13, %r13 mov $0x6162636465666768, %rsi movq %rsi, %xmm0 vmovups %ymm0, (%rdi) nop inc %rdi lea addresses_normal_ht+0x1ae09, %rsi nop add $42745, %rax vmovups (%rsi), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $1, %xmm3, %r13 nop nop nop nop nop add $36132, %rdi lea addresses_A_ht+0xe5dc, %rsi lea addresses_WT_ht+0x1a8e1, %rdi nop nop nop nop nop inc %rdx mov $87, %rcx rep movsl nop nop nop nop add %rdx, %rdx lea addresses_UC_ht+0xf919, %rax nop add $36864, %rcx movw $0x6162, (%rax) nop nop add $22534, %rdi lea addresses_UC_ht+0x1c409, %rcx xor %rax, %rax mov $0x6162636465666768, %r13 movq %r13, (%rcx) nop nop nop nop sub %rcx, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r9 push %rbp push %rcx push %rdi push %rdx // Faulty Load lea addresses_D+0x6e09, %rbp nop and %rdx, %rdx mov (%rbp), %rdi lea oracles, %rcx and $0xff, %rdi shlq $12, %rdi mov (%rcx,%rdi,1), %rdi pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 ret /* <gen_faulty_load> [REF] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False}} {'src': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}} {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False}} {'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False}} {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
36.715789
2,999
0.6584
1eb91f9bc186621dba809d81c872c2bce82209ab
6,724
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1586.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1586.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1586.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r14 push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0xf9a7, %rsi lea addresses_UC_ht+0x1331a, %rdi nop nop nop add %r14, %r14 mov $39, %rcx rep movsl nop nop and %rdx, %rdx lea addresses_UC_ht+0x70ba, %rsi and $25156, %r10 movb (%rsi), %r14b nop add %rcx, %rcx lea addresses_normal_ht+0xae3a, %rcx nop nop nop nop sub $43070, %rdi movw $0x6162, (%rcx) nop nop nop nop and %rsi, %rsi lea addresses_A_ht+0x1e0aa, %rcx nop nop nop nop nop xor $3514, %r13 mov $0x6162636465666768, %r14 movq %r14, %xmm3 vmovups %ymm3, (%rcx) sub $43835, %rdx lea addresses_D_ht+0x1a4b0, %rcx nop nop nop nop cmp %rdx, %rdx movb (%rcx), %r13b nop nop nop cmp %r14, %r14 lea addresses_WC_ht+0x13c40, %rsi lea addresses_UC_ht+0x14e2, %rdi nop cmp $39445, %r14 mov $126, %rcx rep movsb nop xor $53847, %r14 lea addresses_WT_ht+0xaaba, %rsi lea addresses_WT_ht+0x149c2, %rdi clflush (%rdi) nop nop nop nop sub $17239, %r14 mov $127, %rcx rep movsb nop nop nop dec %rsi lea addresses_WC_ht+0x1b41e, %r10 nop inc %rdx mov $0x6162636465666768, %r13 movq %r13, %xmm0 and $0xffffffffffffffc0, %r10 movaps %xmm0, (%r10) nop nop add %r14, %r14 lea addresses_normal_ht+0x1a0ba, %rdx nop nop add %rdi, %rdi movw $0x6162, (%rdx) nop nop nop and %r14, %r14 lea addresses_WC_ht+0xdeca, %rsi lea addresses_WT_ht+0xecba, %rdi nop nop add $14660, %r11 mov $113, %rcx rep movsb nop nop nop nop dec %rdx lea addresses_WT_ht+0xddba, %rdx nop dec %r11 mov (%rdx), %rsi nop nop add %r10, %r10 pop %rsi pop %rdx pop %rdi pop %rcx pop %r14 pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r15 push %r8 push %r9 push %rax // Faulty Load lea addresses_PSE+0xe0ba, %r11 add $55648, %r8 movb (%r11), %r9b lea oracles, %rax and $0xff, %r9 shlq $12, %r9 mov (%rax,%r9,1), %r9 pop %rax pop %r9 pop %r8 pop %r15 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 11, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 6, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 4, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 1, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': True, 'congruent': 1, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 8, 'size': 8, 'same': False, 'NT': False}} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
37.988701
2,999
0.659726
59b4f6d3df0996b09274e7f1b2665d070f024f4f
599
asm
Assembly
oeis/234/A234249.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/234/A234249.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/234/A234249.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A234249: Number of ways to choose 4 points in an n X n X n triangular grid. ; 15,210,1365,5985,20475,58905,148995,341055,720720,1426425,2672670,4780230,8214570,13633830,21947850,34389810,52602165,78738660,115584315,166695375,236561325,330791175,456326325,621682425,837222750,1115465715,1471429260,1923014940,2491434660,3201683100,4083058980,5169738420,6501403755,8123931270,10090141425,12460615245,15304580655,18700872645,22738971255,27520121475,33158539260,39782707965,47536769610,56582015490,67098480750,79286647650,93369262350,109593270150,128231874225,149586723000 add $0,4 bin $0,2 bin $0,4
85.571429
492
0.856427
b75d30d99edb34065ce5d69075b0f480f1db26cb
526
asm
Assembly
oeis/062/A062097.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/062/A062097.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/062/A062097.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A062097: a(1) = 1; a(n) = sum of the sum and the product of all previous terms. ; Submitted by Christian Krause ; 1,2,5,18,206,37312,1383566504,1914204327753559888,3664178205741957271429583378492509856,13426201923434349344563612023870972836592501276745812341399323779519061312,180262898088832221939656174054567594117877411642593750197730878564343941545760331513193711463127947122480359977040292416615595671563181372156361344 mov $2,1 mov $3,1 lpb $0 sub $0,1 add $1,$2 mul $3,$2 max $2,$3 add $2,$1 lpe mov $0,$2
35.066667
312
0.811787
2007325f58129e57726735652ca3e075e893d472
2,005
asm
Assembly
programs/oeis/035/A035597.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/035/A035597.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/035/A035597.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A035597: Number of points of L1 norm 3 in cubic lattice Z^n. ; 0,2,12,38,88,170,292,462,688,978,1340,1782,2312,2938,3668,4510,5472,6562,7788,9158,10680,12362,14212,16238,18448,20850,23452,26262,29288,32538,36020,39742,43712,47938,52428,57190,62232,67562,73188,79118,85360,91922,98812,106038,113608,121530,129812,138462,147488,156898,166700,176902,187512,198538,209988,221870,234192,246962,260188,273878,288040,302682,317812,333438,349568,366210,383372,401062,419288,438058,457380,477262,497712,518738,540348,562550,585352,608762,632788,657438,682720,708642,735212,762438,790328,818890,848132,878062,908688,940018,972060,1004822,1038312,1072538,1107508,1143230,1179712,1216962,1254988,1293798,1333400,1373802,1415012,1457038,1499888,1543570,1588092,1633462,1679688,1726778,1774740,1823582,1873312,1923938,1975468,2027910,2081272,2135562,2190788,2246958,2304080,2362162,2421212,2481238,2542248,2604250,2667252,2731262,2796288,2862338,2929420,2997542,3066712,3136938,3208228,3280590,3354032,3428562,3504188,3580918,3658760,3737722,3817812,3899038,3981408,4064930,4149612,4235462,4322488,4410698,4500100,4590702,4682512,4775538,4869788,4965270,5061992,5159962,5259188,5359678,5461440,5564482,5668812,5774438,5881368,5989610,6099172,6210062,6322288,6435858,6550780,6667062,6784712,6903738,7024148,7145950,7269152,7393762,7519788,7647238,7776120,7906442,8038212,8171438,8306128,8442290,8579932,8719062,8859688,9001818,9145460,9290622,9437312,9585538,9735308,9886630,10039512,10193962,10349988,10507598,10666800,10827602,10990012,11154038,11319688,11486970,11655892,11826462,11998688,12172578,12348140,12525382,12704312,12884938,13067268,13251310,13437072,13624562,13813788,14004758,14197480,14391962,14588212,14786238,14986048,15187650,15391052,15596262,15803288,16012138,16222820,16435342,16649712,16865938,17084028,17303990,17525832,17749562,17975188,18202718,18432160,18663522,18896812,19132038,19369208,19608330,19849412,20092462,20337488,20584498 mov $1,$0 pow $0,3 mul $0,2 add $1,$0 div $1,3 mul $1,2
200.5
1,884
0.852369
26d3b36d2e3256eb1b533b6567ff563fd0d28e53
6,414
asm
Assembly
OS/ASM/OS_ISR_a.asm
anton-qiu/QuickRTOS
7257d19def28793f0d9a39b7b2edd4add0494772
[ "MIT" ]
null
null
null
OS/ASM/OS_ISR_a.asm
anton-qiu/QuickRTOS
7257d19def28793f0d9a39b7b2edd4add0494772
[ "MIT" ]
null
null
null
OS/ASM/OS_ISR_a.asm
anton-qiu/QuickRTOS
7257d19def28793f0d9a39b7b2edd4add0494772
[ "MIT" ]
null
null
null
$INCLUDE (.\Common\ASM\include.asm) AREA OS_ISR_ASM, CODE // READONLY, ALIGN=4 ENTRY EXTERN DATA (psCurrentTCB) EXTERN CODE32 (OS_SWI_Schedule?A) EXTERN CODE32 (OS_VTimer_Handler?A) ;;/******************************************************************************* ;;* Function Name : void SAVECONTEXT_INT(void) ;;* Description : Saves current processor state to (Task)Stack ;;* and update psCurrentTCB->pTopOfStack with the current SP. ;;* Should only be called from EXCEPTION MODE (IRQ/FIQ/SWI). ;;*--------------------------------------------------------------------- ;;* Global Variable : psCurrentTCB ;;* ;;* Input Parameter : - ;;* Output Parameter : - ;;* Subroutine Called : - ;;* DD/MM/YY(Author) Changes Notes ;;*--------------------------------------------------------------------- ;;* 11/01/07(ABQ) : Initial Version ;;*******************************************************************************/ SAVECONTEXT_INT MACRO /* Currently no parameters */ //LOCAL local-labels /* Currently no LOCAL */ /* First Save the R1 before using it */ STMDB SP!, {R1} MRS R1, SPSR TST R1, #0x00000020 ;; Check ARM/Thumb SUBEQ LR, LR, #4 ;; Set ARM return SUBNE LR, LR, #2 ;; Set Thumb return /* Now Get the SP of System/User Mode to R1 */ STMDB SP,{SP}^ SUB SP, SP, #4 LDMIA SP!,{R1} /* Saves the Return address (PC of the User/System mode) to System/User Stack */ STMDB R1!, {LR} /* Use LR as User/System mode Stack and restore back the original R1 */ MOV LR, R1 LDMIA SP!, {R1} /* Push all User/System mode registers and update the stack address */ STMDB LR,{R0-R12, LR}^ SUB LR, LR, #56 /* 60 bytes = 15 word registers */ /* Push the SPSR onto the task stack. */ MRS R1, SPSR STMDB LR!, {R1} ;; Saves Top of Stack to psCurrentTCB->pTopOfStack /* Saves the task stack (System/User) into (psCurrentTCB->pTopOfStack) */ LDR R1, =psCurrentTCB ;; R1 = &psCurrentTCB LDR R2, [R1] ;; R2 = psCurrentTCB STR LR, [R2] ;; psCurrentTCB->pTopOfStack = SP ENDM SAVECONTEXT_INT_SWI MACRO /* Currently no parameters */ //LOCAL local-labels /* Currently no LOCAL */ /* First Save the R1 before using it */ STMDB SP!, {R1} /* Now Get the SP of System/User Mode to R1 */ STMDB SP,{SP}^ SUB SP, SP, #4 LDMIA SP!,{R1} /* Saves the Return address (PC of the User/System mode) to System/User Stack */ STMDB R1!, {LR} /* Use LR as User/System mode Stack and restore back the original R1 */ MOV LR, R1 LDMIA SP!, {R1} /* Push all User/System mode registers and update the stack address */ STMDB LR,{R0-R12, LR}^ SUB LR, LR, #56 /* 60 bytes = 15 word registers */ /* Push the SPSR onto the task stack. */ MRS R1, SPSR STMDB LR!, {R1} ;; Saves Top of Stack to psCurrentTCB->pTopOfStack /* Saves the task stack (System/User) into (psCurrentTCB->pTopOfStack) */ LDR R1, =psCurrentTCB ;; R1 = &psCurrentTCB LDR R2, [R1] ;; R2 = psCurrentTCB STR LR, [R2] ;; psCurrentTCB->pTopOfStack = SP ENDM RESTORECONTEXT_INT MACRO /* Currently no parameters */ LDR R1, =psCurrentTCB ;;R1 = &(psCurrentTCB) LDR R2, [R1] ;;R0 = psCurrentTCB LDR LR, [R2] ;;SP = (psCurrentTCB->pTopOfStack) LDMFD LR!, {R2} ;; Pop CPSR MSR SPSR_cxsf, R2 LDMFD LR, {R0-R12}^ ;; Pop system registers NOP ;; Make sure no access to Banked registers ;; And then update the stack address ADD LR, LR, #52 ;; 52 bytes = 13 registers ;; Get the R12 and SP into exception's Stack? STMDB SP!, {R12} ;; PUSH R12 ADD R12, LR, #8 ;; with value of LR and PC STMDB SP!, {R12} ;; PUSH SP LDMFD SP!, {R13}^ ;; Pop Task SP from Exception's stack LDMFD SP!, {R12} ;; Pop back R12 ;; LDMFD LR, {LR, PC}^ ;; POP LR and PC (Return) LDMFD LR, {LR}^ ;; POP LR and PC (Return) NOP ;; Make sure no access to Banked registers ADD LR, LR, #4 LDMFD LR, {PC}^ ;; POP PC (Return) ENDM ;;/******************************************************************************* ;;* Function Name : void SWI_Handler(TS_TCB * psDest) ;;* Description : Handler of SWI Interrupt for Interrupt driven context switch. ;;*--------------------------------------------------------------------- ;;* Global Variable : psCurrentTCB ;;* ;;* Input Parameter : R0 contain the destination TCB pointer (psDest) ;;* Output Parameter : - ;;* Subroutine Called : - ;;* DD/MM/YY(Author) Changes Notes ;;*--------------------------------------------------------------------- ;;* 11/01/07(ABQ) : Initial Version ;;*******************************************************************************/ IF (ENV_RVDS == 1) CODE32 GLOBAL SWI_Handler SWI_Handler PROC ENDIF IF (ENV_KEIL == 1) PUBLIC SWI_Handler?A SWI_Handler?A PROC CODE32 ENDIF /* Save Context to the current context */ SAVECONTEXT_INT_SWI MOV R0, #0 BL OS_SWI_Schedule?A ;; OS_Schedule(); RESTORECONTEXT_INT ENDP /******************************************************************************* * Function : OS_VTimer_ISR() * Description : Handle for VTIMER Interrupt. * NOTE: *--------------------------------------------------------------------- * Global : - * Input : - * Output : - * Subroutine : - * DD/MM/YY(Author) Changes Notes *--------------------------------------------------------------------- * 01/04/07(ABQ) : Initial Version *******************************************************************************/ IF (ENV_RVDS == 1) CODE32 GLOBAL OS_VTimer_ISR OS_VTimer_ISR PROC ENDIF IF (ENV_KEIL == 1) PUBLIC OS_VTimer_ISR?A OS_VTimer_ISR?A PROC CODE32 ENDIF SAVECONTEXT_INT BL OS_VTimer_Handler?A RESTORECONTEXT_INT ENDP END
34.117021
86
0.486124
f28760f54947c55e36f3b01b765050071810d1a0
1,669
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_17_1615.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_17_1615.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_17_1615.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r15 push %r9 push %rbp push %rbx push %rdi lea addresses_UC_ht+0xe052, %r9 nop nop nop nop inc %r10 movb $0x61, (%r9) nop nop nop mfence lea addresses_D_ht+0x14e32, %r10 nop nop nop nop sub %r15, %r15 mov (%r10), %bx nop nop nop nop nop sub $61460, %r10 pop %rdi pop %rbx pop %rbp pop %r9 pop %r15 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %rbp push %rbx push %rdi push %rdx // Store lea addresses_WT+0xd9b2, %rbx nop nop and $4236, %r13 mov $0x5152535455565758, %r10 movq %r10, %xmm4 vmovups %ymm4, (%rbx) nop xor %r11, %r11 // Faulty Load lea addresses_RW+0x14232, %rbp nop nop nop and %rdx, %rdx vmovups (%rbp), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $0, %xmm3, %rbx lea oracles, %rdi and $0xff, %rbx shlq $12, %rbx mov (%rdi,%rbx,1), %rbx pop %rdx pop %rdi pop %rbx pop %rbp pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 6, 'size': 32, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 1, 'size': 1, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': True, 'NT': False}} {'32': 17} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
17.206186
123
0.649491
70b7982f0f6cb0d3937c8db0c736c5947d16a469
232
asm
Assembly
test/bubbleSortWithAddress.asm
bogas04/asm8085
d2fdb8ea6384992ed4cb719169b1cc00fad3bf0c
[ "MIT" ]
1
2015-10-11T09:35:41.000Z
2015-10-11T09:35:41.000Z
test/bubbleSortWithAddress.asm
bogas04/asm8085
d2fdb8ea6384992ed4cb719169b1cc00fad3bf0c
[ "MIT" ]
null
null
null
test/bubbleSortWithAddress.asm
bogas04/asm8085
d2fdb8ea6384992ed4cb719169b1cc00fad3bf0c
[ "MIT" ]
null
null
null
0000 21 0001 00 0002 50 0003 4E 0004 0D 0005 51 0006 21 0007 01 0008 50 0009 7E 000A 23 000B BE 000C DA 000D 14 000E 00 000F 46 0010 77 0011 2B 0012 70 0013 23 0014 15 0015 C2 0016 09 0017 00 0018 0D 0019 C2 001A 05 001B 00 001C 76
7.733333
7
0.75
4f60d50bee09891f92b4c011e8a6f528e9289427
1,010
asm
Assembly
programs/oeis/100/A100186.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/100/A100186.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/100/A100186.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A100186: Structured heptagonal anti-diamond numbers (vertex structure 7). ; 1,16,67,176,365,656,1071,1632,2361,3280,4411,5776,7397,9296,11495,14016,16881,20112,23731,27760,32221,37136,42527,48416,54825,61776,69291,77392,86101,95440,105431,116096,127457,139536,152355,165936,180301,195472,211471,228320,246041,264656,284187,304656,326085,348496,371911,396352,421841,448400,476051,504816,534717,565776,598015,631456,666121,702032,739211,777680,817461,858576,901047,944896,990145,1036816,1084931,1134512,1185581,1238160,1292271,1347936,1405177,1464016,1524475,1586576,1650341,1715792,1782951,1851840,1922481,1994896,2069107,2145136,2223005,2302736,2384351,2467872,2553321,2640720,2730091,2821456,2914837,3010256,3107735,3207296,3308961,3412752,3518691,3626800 mov $5,$0 mul $0,2 mov $1,$0 mov $6,$0 lpb $1 add $0,3 trn $2,5 add $3,$1 sub $1,2 add $4,$3 add $4,$6 add $0,$4 add $2,$4 add $0,$2 mov $2,4 mov $3,0 add $4,3 add $6,1 lpe add $0,5 lpb $5 add $0,2 sub $5,1 lpe sub $0,4
34.827586
682
0.753465
029d8c0190e35da2b9a43109ceea31f504a5e8ee
2,269
asm
Assembly
engine/menu/start_menu.asm
etdv-thevoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
1
2022-01-09T05:28:52.000Z
2022-01-09T05:28:52.000Z
engine/menu/start_menu.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
engine/menu/start_menu.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
DisplayStartMenu:: ld a,BANK(StartMenu_Pokedex) ld [H_LOADEDROMBANK],a ld [MBC1RomBank],a ld a,[wWalkBikeSurfState] ; walking/biking/surfing ld [wWalkBikeSurfStateCopy],a ld a, SFX_START_MENU call PlaySound RedisplayStartMenu:: callba DrawStartMenu callba PrintSafariZoneSteps ; print Safari Zone info, if in Safari Zone call UpdateSprites .loop call HandleMenuInput ld b,a .checkIfUpPressed bit 6,a ; was Up pressed? jr z,.checkIfDownPressed ld a,[wCurrentMenuItem] ; menu selection and a jr nz,.loop ld a,[wLastMenuItem] and a jr nz,.loop ; if the player pressed tried to go past the top item, wrap around to the bottom CheckEvent EVENT_GOT_POKEDEX ld a,6 ; there are 7 menu items with the pokedex, so the max index is 6 jr nz,.wrapMenuItemId dec a ; there are only 6 menu items without the pokedex .wrapMenuItemId ld [wCurrentMenuItem],a call EraseMenuCursor jr .loop .checkIfDownPressed bit 7,a jr z,.buttonPressed ; if the player pressed tried to go past the bottom item, wrap around to the top CheckEvent EVENT_GOT_POKEDEX ld a,[wCurrentMenuItem] ld c,7 ; there are 7 menu items with the pokedex jr nz,.checkIfPastBottom dec c ; there are only 6 menu items without the pokedex .checkIfPastBottom cp c jr nz,.loop ; the player went past the bottom, so wrap to the top xor a ld [wCurrentMenuItem],a call EraseMenuCursor jr .loop .buttonPressed ; A, B, or Start button pressed call PlaceUnfilledArrowMenuCursor ld a,[wCurrentMenuItem] ld [wBattleAndStartSavedMenuItem],a ; save current menu selection ld a,b and a,%00001010 ; was the Start button or B button pressed? jp nz,CloseStartMenu call SaveScreenTilesToBuffer2 ; copy background from wTileMap to wTileMapBackup2 CheckEvent EVENT_GOT_POKEDEX ld a,[wCurrentMenuItem] jr nz,.displayMenuItem inc a ; adjust position to account for missing pokedex menu item .displayMenuItem cp a,0 jp z,StartMenu_Pokedex cp a,1 jp z,StartMenu_Pokemon cp a,2 jp z,StartMenu_Item cp a,3 jp z,StartMenu_TrainerInfo cp a,4 jp z,StartMenu_SaveReset cp a,5 jp z,StartMenu_Option ; EXIT falls through to here CloseStartMenu:: call Joypad ld a,[hJoyPressed] bit 0,a ; was A button newly pressed? jr nz,CloseStartMenu call LoadTextBoxTilePatterns jp CloseTextDisplay
26.383721
81
0.777435
78e90932e6046fa8300495ca0194d356d3ee68ab
4,125
asm
Assembly
8088/tandy/tandy_test.asm
reenigne/reenigne
c3eb8b31d7964e78bbe44908987d4be052a74488
[ "Unlicense" ]
92
2015-04-10T17:45:11.000Z
2022-03-30T17:58:51.000Z
8088/tandy/tandy_test.asm
reenigne/reenigne
c3eb8b31d7964e78bbe44908987d4be052a74488
[ "Unlicense" ]
2
2017-11-05T07:21:35.000Z
2018-11-04T23:36:13.000Z
8088/tandy/tandy_test.asm
reenigne/reenigne
c3eb8b31d7964e78bbe44908987d4be052a74488
[ "Unlicense" ]
18
2015-04-11T20:32:44.000Z
2021-11-06T05:19:57.000Z
org 0x100 %include "..\defaults_common.asm" mov ax,6 ; mov ax,0xa int 0x10 mov dx,0x3d8 mov al,0x1a out dx,al mov ax,0xb800 mov es,ax mov di,0 mov cx,100 yLoop: mov al,0 push cx mov cx,16 cLoop: mov [es:di],al mov [es:di+1],al mov [es:di+2],al mov [es:di+3],al mov [es:di+4],al mov [es:di+0x2000],al mov [es:di+0x2001],al mov [es:di+0x2002],al mov [es:di+0x2003],al mov [es:di+0x2004],al add al,0x11 add di,5 loop cLoop pop cx loop yLoop waitLoop: mov ah,1 int 0x16 jz doFrame jmp gotKeypress doFrame: mov dx,0x3da waitForVerticalSync %macro doScanline 2 waitForDisplayEnable waitForDisplayDisable mov al,0x10 + %1 out dx,al mov dl,0xde mov al,%2 out dx,al mov dl,0xda %endmacro doScanline 0x0,0x0 doScanline 0xf,0x0 doScanline 0xf,0x1 doScanline 0xf,0x2 doScanline 0xf,0x3 doScanline 0xf,0x4 doScanline 0xf,0x5 doScanline 0xf,0x6 doScanline 0xf,0x7 doScanline 0xf,0x8 doScanline 0xf,0x9 doScanline 0xf,0xa doScanline 0xf,0xb doScanline 0xf,0xc doScanline 0xf,0xd doScanline 0xf,0xe doScanline 0xf,0xf doScanline 0x0,0x1 doScanline 0xf,0x1 doScanline 0xf,0x2 doScanline 0xf,0x3 doScanline 0xf,0x4 doScanline 0xf,0x5 doScanline 0xf,0x6 doScanline 0xf,0x7 doScanline 0xf,0x8 doScanline 0xf,0x9 doScanline 0xf,0xa doScanline 0xf,0xb doScanline 0xf,0xc doScanline 0xf,0xd doScanline 0xf,0xe doScanline 0xf,0xf doScanline 0x0,0x2 doScanline 0xf,0x2 doScanline 0xf,0x3 doScanline 0xf,0x4 doScanline 0xf,0x5 doScanline 0xf,0x6 doScanline 0xf,0x7 doScanline 0xf,0x8 doScanline 0xf,0x9 doScanline 0xf,0xa doScanline 0xf,0xb doScanline 0xf,0xc doScanline 0xf,0xd doScanline 0xf,0xe doScanline 0xf,0xf doScanline 0x0,0x3 doScanline 0xf,0x3 doScanline 0xf,0x4 doScanline 0xf,0x5 doScanline 0xf,0x6 doScanline 0xf,0x7 doScanline 0xf,0x8 doScanline 0xf,0x9 doScanline 0xf,0xa doScanline 0xf,0xb doScanline 0xf,0xc doScanline 0xf,0xd doScanline 0xf,0xe doScanline 0xf,0xf doScanline 0x0,0x4 doScanline 0xf,0x4 doScanline 0xf,0x5 doScanline 0xf,0x6 doScanline 0xf,0x7 doScanline 0xf,0x8 doScanline 0xf,0x9 doScanline 0xf,0xa doScanline 0xf,0xb doScanline 0xf,0xc doScanline 0xf,0xd doScanline 0xf,0xe doScanline 0xf,0xf doScanline 0x0,0x5 doScanline 0xf,0x5 doScanline 0xf,0x6 doScanline 0xf,0x7 doScanline 0xf,0x8 doScanline 0xf,0x9 doScanline 0xf,0xa doScanline 0xf,0xb doScanline 0xf,0xc doScanline 0xf,0xd doScanline 0xf,0xe doScanline 0xf,0xf doScanline 0x0,0x6 doScanline 0xf,0x6 doScanline 0xf,0x7 doScanline 0xf,0x8 doScanline 0xf,0x9 doScanline 0xf,0xa doScanline 0xf,0xb doScanline 0xf,0xc doScanline 0xf,0xd doScanline 0xf,0xe doScanline 0xf,0xf doScanline 0x0,0x7 doScanline 0xf,0x7 doScanline 0xf,0x8 doScanline 0xf,0x9 doScanline 0xf,0xa doScanline 0xf,0xb doScanline 0xf,0xc doScanline 0xf,0xd doScanline 0xf,0xe doScanline 0xf,0xf doScanline 0x0,0x8 doScanline 0xf,0x8 doScanline 0xf,0x9 doScanline 0xf,0xa doScanline 0xf,0xb doScanline 0xf,0xc doScanline 0xf,0xd doScanline 0xf,0xe doScanline 0xf,0xf doScanline 0x0,0x9 doScanline 0xf,0x9 doScanline 0xf,0xa doScanline 0xf,0xb doScanline 0xf,0xc doScanline 0xf,0xd doScanline 0xf,0xe doScanline 0xf,0xf doScanline 0x0,0xa doScanline 0xf,0xa doScanline 0xf,0xb doScanline 0xf,0xc doScanline 0xf,0xd doScanline 0xf,0xe doScanline 0xf,0xf doScanline 0x0,0xb doScanline 0xf,0xb doScanline 0xf,0xc doScanline 0xf,0xd doScanline 0xf,0xe doScanline 0xf,0xf doScanline 0x0,0xc doScanline 0xf,0xc doScanline 0xf,0xd doScanline 0xf,0xe doScanline 0xf,0xf doScanline 0x0,0xd doScanline 0xf,0xd doScanline 0xf,0xe doScanline 0xf,0xf doScanline 0x0,0xe doScanline 0xf,0xe doScanline 0xf,0xf doScanline 0x0,0xf doScanline 0xf,0xf jmp waitLoop gotKeypress: mov ah,0x00 int 0x16 cmp al,27 je finished jmp waitLoop finished: mov ax,3 int 0x10 int 0x20
16.633065
33
0.732606
0160654f91dbcf61c3c269b54a85f241e0623d77
9,242
asm
Assembly
src/shaders/h264/ildb/AVC_ILDB_Filter_Mbaff_UV_h.asm
me176c-dev/android_hardware_intel-vaapi-driver
0f2dca8d604220405e4678c0b6c4faa578d994ec
[ "MIT" ]
192
2018-01-26T11:51:55.000Z
2022-03-25T20:04:19.000Z
src/shaders/h264/ildb/AVC_ILDB_Filter_Mbaff_UV_h.asm
me176c-dev/android_hardware_intel-vaapi-driver
0f2dca8d604220405e4678c0b6c4faa578d994ec
[ "MIT" ]
256
2017-01-23T02:10:27.000Z
2018-01-23T10:00:05.000Z
src/shaders/h264/ildb/AVC_ILDB_Filter_Mbaff_UV_h.asm
me176c-dev/android_hardware_intel-vaapi-driver
0f2dca8d604220405e4678c0b6c4faa578d994ec
[ "MIT" ]
64
2018-01-30T19:51:53.000Z
2021-11-24T01:26:14.000Z
/* * Copyright © <2010>, Intel Corporation. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sub license, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice (including the * next paragraph) shall be included in all copies or substantial portions * of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * This file was originally licensed under the following license * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ ////////// AVC ILDB filter horizontal Mbaff UV /////////////////////////////////////////////////////// // // This filter code prepares the src data and control data for ILDB filtering on all horizontal edges of UV. // // It sssumes the data for horizontal de-blocking is already transposed. // // Chroma: // // +-------+-------+ H0 Edge // | | | // | | | // | | | // +-------+-------+ H1 Edge // | | | // | | | // | | | // +-------+-------+ // ///////////////////////////////////////////////////////////////////////////// #if defined(_DEBUG) mov (1) EntrySignatureC:w 0xBBBC:w #endif //=============== Chroma deblocking ================ //---------- Deblock UV external top edge ---------- and.z.f0.0 (1) null:w r[ECM_AddrReg, BitFlags]:ub FilterTopMbEdgeFlag:w // Check for FilterTopMbEdgeFlag mov (1) f0.1:w DualFieldMode:w // Check for dual field mode // Get Luma maskA and maskB shr (16) TempRow0(0)<1> r[ECM_AddrReg, wEdgeCntlMapA_ExtTopHorz0]<0;1,0>:uw RRampW(0) shr (16) TempRow1(0)<1> r[ECM_AddrReg, wEdgeCntlMapB_ExtTopHorz0]<0;1,0>:uw RRampW(0) (f0.0) jmpi H0_UV_DONE // Skip H0 UV edge (f0.1) jmpi DUAL_FIELD_UV // Non dual field mode // Extract UV MaskA and MaskB from every other bit of Y masks and.nz.f0.0 (8) null:w TempRow0(0)<16;8,2> 1:w and.nz.f0.1 (8) null:w TempRow1(0)<16;8,2> 1:w // Ext U // p1 = Prev MB U row 0 // p0 = Prev MB U row 1 // q0 = Cur MB U row 0 // q1 = Cur MB U row 1 mov (1) P_AddrReg:w PREV_MB_U_BASE:w { NoDDClr } mov (1) Q_AddrReg:w SRC_MB_U_BASE:w { NoDDChk } mov (8) Mbaff_ALPHA(0,0)<1> r[ECM_AddrReg, bAlphaTop0_Cb]<0;1,0>:ub mov (8) Mbaff_BETA(0,0)<1> r[ECM_AddrReg, bBetaTop0_Cb]<0;1,0>:ub mov (8) Mbaff_TC0(0,0)<1> r[ECM_AddrReg, bTc0_h00_0_Cb]<1;2,0>:ub // Store UV MaskA and MaskB mov (2) MaskA<1>:uw f0.0<2;2,1>:uw CALL(FILTER_UV_MBAFF, 1) // Ext V mov (1) P_AddrReg:w PREV_MB_V_BASE:w { NoDDClr } mov (1) Q_AddrReg:w SRC_MB_V_BASE:w { NoDDChk } mov (8) Mbaff_ALPHA(0,0)<1> r[ECM_AddrReg, bAlphaTop0_Cr]<0;1,0>:ub mov (8) Mbaff_BETA(0,0)<1> r[ECM_AddrReg, bBetaTop0_Cr]<0;1,0>:ub mov (8) Mbaff_TC0(0,0)<1> r[ECM_AddrReg, bTc0_h00_0_Cr]<1;2,0>:ub // Set UV MaskA and MaskB mov (2) f0.0<1>:uw MaskA<2;2,1>:uw CALL(FILTER_UV_MBAFF, 1) jmpi H0_UV_DONE DUAL_FIELD_UV: // Dual field mode, FieldModeCurrentMbFlag=0 && FieldModeAboveMbFlag=1 //===== Ext U, Top field // Extract UV MaskA and MaskB from every other bit of Y masks and.nz.f0.0 (8) null:w TempRow0(0)<16;8,2> 1:w and.nz.f0.1 (8) null:w TempRow1(0)<16;8,2> 1:w mov (1) P_AddrReg:w ABOVE_CUR_MB_BASE:w { NoDDClr } mov (1) Q_AddrReg:w ABOVE_CUR_MB_BASE+32:w { NoDDChk } mov (16) ABOVE_CUR_MB_UW(0)<1> PREV_MB_UW(0, 0)<16;8,1> // Copy p1, p0 mov (16) ABOVE_CUR_MB_UW(1)<1> SRC_UW(0, 0)<16;8,1> // Copy q1, q0 //===== Ext U, top field mov (8) Mbaff_ALPHA(0,0)<1> r[ECM_AddrReg, bAlphaTop0_Cb]<0;1,0>:ub mov (8) Mbaff_BETA(0,0)<1> r[ECM_AddrReg, bBetaTop0_Cb]<0;1,0>:ub mov (8) Mbaff_TC0(0,0)<1> r[ECM_AddrReg, bTc0_h00_0_Cb]<1;2,0>:ub // Store UV MaskA and MaskB mov (2) MaskA<1>:uw f0.0<2;2,1>:uw CALL(FILTER_UV_MBAFF, 1) // Ext U, top field //===== Ext V, top field mov (1) P_AddrReg:w ABOVE_CUR_MB_BASE+1:w { NoDDClr } mov (1) Q_AddrReg:w ABOVE_CUR_MB_BASE+33:w { NoDDChk } mov (8) Mbaff_ALPHA(0,0)<1> r[ECM_AddrReg, bAlphaTop0_Cr]<0;1,0>:ub mov (8) Mbaff_BETA(0,0)<1> r[ECM_AddrReg, bBetaTop0_Cr]<0;1,0>:ub mov (8) Mbaff_TC0(0,0)<1> r[ECM_AddrReg, bTc0_h00_0_Cr]<1;2,0>:ub // Set UV MaskA and MaskB mov (2) f0.0<1>:uw MaskA<2;2,1>:uw CALL(FILTER_UV_MBAFF, 1) // Ext U, top field // Prefetch for bottom field // Get bot field Luma maskA and maskB shr (16) TempRow0(0)<1> r[ECM_AddrReg, wEdgeCntlMapA_ExtTopHorz1]<0;1,0>:uw RRampW(0) shr (16) TempRow1(0)<1> r[ECM_AddrReg, wEdgeCntlMapB_ExtTopHorz1]<0;1,0>:uw RRampW(0) // Save deblocked top field rows mov (8) PREV_MB_UW(1, 0)<1> ABOVE_CUR_MB_UW(0, 8) // Copy p0 mov (8) SRC_UW(0, 0)<1> ABOVE_CUR_MB_UW(1, 0) // Copy q0 //========================================================================== //===== Ext U, Bot field // Extract UV MaskA and MaskB from every other bit of Y masks and.nz.f0.0 (8) null:w TempRow0(0)<16;8,2> 1:w and.nz.f0.1 (8) null:w TempRow1(0)<16;8,2> 1:w mov (1) P_AddrReg:w ABOVE_CUR_MB_BASE:w { NoDDClr } mov (1) Q_AddrReg:w ABOVE_CUR_MB_BASE+32:w { NoDDChk } mov (16) ABOVE_CUR_MB_UW(0)<1> PREV_MB_UW(0, 8)<16;8,1> // Copy p1, p0 mov (16) ABOVE_CUR_MB_UW(1)<1> SRC_UW(0, 8)<16;8,1> // Copy q1, q0 //===== Ext U, bottom field mov (8) Mbaff_ALPHA(0,0)<1> r[ECM_AddrReg, bAlphaTop1_Cb]<0;1,0>:ub mov (8) Mbaff_BETA(0,0)<1> r[ECM_AddrReg, bBetaTop1_Cb]<0;1,0>:ub mov (8) Mbaff_TC0(0,0)<1> r[ECM_AddrReg, bTc0_h00_1_Cb]<1;2,0>:ub // Store UV MaskA and MaskB mov (2) MaskA<1>:uw f0.0<2;2,1>:uw CALL(FILTER_UV_MBAFF, 1) // Ext U, bottom field //===== Ext V, bot field mov (1) P_AddrReg:w ABOVE_CUR_MB_BASE+1:w { NoDDClr } mov (1) Q_AddrReg:w ABOVE_CUR_MB_BASE+33:w { NoDDChk } mov (8) Mbaff_ALPHA(0,0)<1> r[ECM_AddrReg, bAlphaTop1_Cr]<0;1,0>:ub mov (8) Mbaff_BETA(0,0)<1> r[ECM_AddrReg, bBetaTop1_Cr]<0;1,0>:ub mov (8) Mbaff_TC0(0,0)<1> r[ECM_AddrReg, bTc0_h00_1_Cr]<1;2,0>:ub // Set UV MaskA and MaskB mov (2) f0.0<1>:uw MaskA<2;2,1>:uw CALL(FILTER_UV_MBAFF, 1) // Ext V, bottom field // Save deblocked bot field rows mov (8) PREV_MB_UW(1, 8)<1> ABOVE_CUR_MB_UW(0, 8) // Copy p0 mov (8) SRC_UW(0, 8)<1> ABOVE_CUR_MB_UW(1, 0) // Copy q0 //======================================== H0_UV_DONE: //---------- Deblock U internal horz middle edge ---------- //***** Need to take every other bit to form U maskA in core shr (16) TempRow0(0)<1> r[ECM_AddrReg, wEdgeCntlMap_IntMidHorz]<0;1,0>:uw RRampW(0) // p1 = Cur MB U row 2 // p0 = Cur MB U row 3 // q0 = Cur MB U row 4 // q1 = Cur MB U row 5 mov (1) P_AddrReg:w 4*UV_ROW_WIDTH+SRC_MB_U_BASE:w { NoDDClr } mov (1) Q_AddrReg:w 8*UV_ROW_WIDTH+SRC_MB_U_BASE:w { NoDDChk } mov (8) Mbaff_ALPHA(0,0)<1> r[ECM_AddrReg, bAlphaInternal_Cb]<0;1,0>:ub mov (8) Mbaff_BETA(0,0)<1> r[ECM_AddrReg, bBetaInternal_Cb]<0;1,0>:ub mov (8) Mbaff_TC0(0,0)<1> r[ECM_AddrReg, bTc0_h20_Cb]<1;2,0>:ub and.nz.f0.0 (8) null:w TempRow0(0)<16;8,2> 1:w // Store UV MaskA and MaskB mov (1) f0.1:uw 0:w mov (1) MaskB:uw 0:w { NoDDClr } mov (1) MaskA:uw f0.0:uw { NoDDChk } CALL(FILTER_UV_MBAFF, 1) //----------------------------------------------- //---------- Deblock V internal horz middle edge ---------- // p1 = Cur MB V row 2 // p0 = Cur MB V row 3 // q0 = Cur MB V row 4 // q1 = Cur MB V row 5 mov (1) P_AddrReg:w 4*UV_ROW_WIDTH+SRC_MB_V_BASE:w { NoDDClr } mov (1) Q_AddrReg:w 8*UV_ROW_WIDTH+SRC_MB_V_BASE:w { NoDDChk } mov (8) Mbaff_ALPHA(0,0)<1> r[ECM_AddrReg, bAlphaInternal_Cr]<0;1,0>:ub mov (8) Mbaff_BETA(0,0)<1> r[ECM_AddrReg, bBetaInternal_Cr]<0;1,0>:ub mov (8) Mbaff_TC0(0,0)<1> r[ECM_AddrReg, bTc0_h20_Cr]<1;2,0>:ub // Set UV MaskA and MaskB mov (2) f0.0<1>:uw MaskA<2;2,1>:uw CALL(FILTER_UV_MBAFF, 1) //-----------------------------------------------
36.385827
111
0.617291
474a5982b800bb8ed777d36c6fea4e7b45adc017
272
asm
Assembly
oeis/347/A347671.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/347/A347671.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/347/A347671.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A347671: a(n) = n^n mod 100. ; Submitted by Jon Maiga ; 1,1,4,27,56,25,56,43,16,89,0,11,56,53,16,75,16,77,24,79,0,21,84,67,76,25,76,3,36,69,0,31,76,13,36,75,36,17,4,59,0,41,64,7,96,25,96,63,56,49,0,51,96,73,56,75,56,57,84,39,0,61,44,47,16,25,16,23 pow $0,$0 mod $0,100
38.857143
193
0.632353
c1c13c92ca3017cca1558c3f370b88c254f38bdb
10,095
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_20113_44.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_20113_44.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_20113_44.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r15 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x5b13, %rsi lea addresses_D_ht+0x9ec5, %rdi clflush (%rdi) nop nop nop and %r12, %r12 mov $40, %rcx rep movsq nop nop nop dec %rax lea addresses_normal_ht+0x911f, %rax nop nop nop nop nop sub $12936, %rbx mov $0x6162636465666768, %r12 movq %r12, %xmm1 vmovups %ymm1, (%rax) nop inc %r12 lea addresses_WC_ht+0x194cd, %rsi lea addresses_normal_ht+0x10913, %rdi nop nop nop nop cmp $22234, %r15 mov $55, %rcx rep movsl nop and %r12, %r12 lea addresses_D_ht+0x5613, %rdi nop nop nop add $28704, %rbx movb (%rdi), %cl xor $45286, %r12 lea addresses_D_ht+0x1e313, %rcx nop nop nop nop dec %r12 mov (%rcx), %ax nop nop nop and $47361, %r15 lea addresses_UC_ht+0xc913, %rbx nop and $23150, %r12 movl $0x61626364, (%rbx) nop sub $1945, %r12 lea addresses_D_ht+0x9513, %rbx nop nop nop nop sub $61320, %r15 mov $0x6162636465666768, %rsi movq %rsi, %xmm2 vmovups %ymm2, (%rbx) nop nop nop nop xor %rsi, %rsi lea addresses_D_ht+0x17513, %rsi lea addresses_normal_ht+0x15913, %rdi clflush (%rdi) nop nop nop and $47326, %r15 mov $125, %rcx rep movsb nop nop nop nop nop xor %rbx, %rbx lea addresses_WC_ht+0x1c113, %rcx nop add $34336, %r15 mov (%rcx), %esi nop nop and $35519, %rsi lea addresses_WT_ht+0x5f13, %r12 nop nop nop nop add %rbx, %rbx and $0xffffffffffffffc0, %r12 movaps (%r12), %xmm5 vpextrq $1, %xmm5, %rcx nop nop nop cmp %rcx, %rcx lea addresses_normal_ht+0x15113, %rsi lea addresses_D_ht+0x1cb13, %rdi nop nop nop sub $65375, %r10 mov $79, %rcx rep movsl nop nop nop dec %rax lea addresses_WC_ht+0x17593, %rax mfence movb (%rax), %r10b sub %rcx, %rcx pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r15 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r8 push %r9 push %rcx push %rdi push %rdx push %rsi // Store lea addresses_A+0x5953, %rcx and $17723, %rdi movb $0x51, (%rcx) nop nop nop nop nop xor %rsi, %rsi // Store lea addresses_WC+0x17913, %rsi nop nop nop add $16344, %r8 mov $0x5152535455565758, %r12 movq %r12, (%rsi) nop nop nop nop nop sub $51437, %r9 // Load lea addresses_A+0x12483, %rdx nop nop add %r12, %r12 mov (%rdx), %edi nop nop dec %rsi // REPMOV lea addresses_WC+0x16213, %rsi lea addresses_A+0x1bd53, %rdi inc %r13 mov $103, %rcx rep movsw // Exception!!! nop nop nop nop mov (0), %r13 xor $37765, %rdx // Store lea addresses_UC+0x18d7b, %r13 nop xor $51798, %r8 mov $0x5152535455565758, %r12 movq %r12, %xmm7 vmovups %ymm7, (%r13) nop nop nop add $14628, %rdx // Store mov $0x6e05cb000000082d, %rdx clflush (%rdx) dec %r8 movw $0x5152, (%rdx) nop nop add %r8, %r8 // Store lea addresses_PSE+0x19653, %r9 nop nop nop nop nop cmp %rdx, %rdx mov $0x5152535455565758, %rcx movq %rcx, %xmm7 vmovaps %ymm7, (%r9) nop nop nop nop nop cmp $17443, %rcx // Store mov $0x432f0000000d53, %rdi clflush (%rdi) nop xor %rdx, %rdx movb $0x51, (%rdi) sub $58933, %rdi // Store lea addresses_PSE+0x195e3, %r13 clflush (%r13) nop nop nop cmp $18955, %rdx mov $0x5152535455565758, %rdi movq %rdi, (%r13) nop nop nop nop nop inc %rdi // Load lea addresses_A+0x13b13, %rdx add %rcx, %rcx mov (%rdx), %r13d nop nop nop nop cmp %r9, %r9 // Store lea addresses_D+0x10913, %rcx nop nop nop nop dec %r8 movb $0x51, (%rcx) nop nop nop nop nop xor %r9, %r9 // Store lea addresses_A+0x1c113, %r8 nop nop nop nop nop and %r12, %r12 movb $0x51, (%r8) dec %rcx // Faulty Load lea addresses_A+0x1c113, %r9 xor $10480, %rdi movb (%r9), %r12b lea oracles, %r13 and $0xff, %r12 shlq $12, %r12 mov (%r13,%r12,1), %r12 pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r8 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_A', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A', 'congruent': 6}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC', 'congruent': 10}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A', 'congruent': 4}} {'dst': {'same': False, 'congruent': 6, 'type': 'addresses_A'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_WC'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_UC', 'congruent': 3}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_NC', 'congruent': 1}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': True, 'AVXalign': True, 'size': 32, 'type': 'addresses_PSE', 'congruent': 4}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 1, 'type': 'addresses_NC', 'congruent': 3}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_PSE', 'congruent': 3}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A', 'congruent': 4}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_D', 'congruent': 9}, 'OP': 'STOR'} {'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A', 'congruent': 0}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'congruent': 1, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_A_ht'}} {'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_normal_ht', 'congruent': 2}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 11, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 1, 'type': 'addresses_WC_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_D_ht', 'congruent': 8}} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_D_ht', 'congruent': 6}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC_ht', 'congruent': 9}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_D_ht', 'congruent': 10}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 10, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 9, 'type': 'addresses_D_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WC_ht', 'congruent': 11}} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': True, 'size': 16, 'type': 'addresses_WT_ht', 'congruent': 8}} {'dst': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_normal_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC_ht', 'congruent': 6}} {'51': 20113} 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 */
28.119777
2,999
0.650223
bb1dbe8695ca6e4c875bc9c8bcaf66ca32880b20
561
asm
Assembly
libsrc/target/cpc/cpcrslib/cpc_SetInkGphStrM1_callee.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/target/cpc/cpcrslib/cpc_SetInkGphStrM1_callee.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/target/cpc/cpcrslib/cpc_SetInkGphStrM1_callee.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; ; Amstrad CPC library ; ; void __LIB__ __CALLEE__ cpc_SetInkGphStr(char *color, char *valor); ; ; $Id: cpc_SetInkGphStrM1_callee.asm $ ; SECTION code_clib PUBLIC cpc_SetInkGphStrM1_callee PUBLIC _cpc_SetInkGphStrM1_callee PUBLIC asm_cpc_SetInkGphStrM1 EXTERN colores_cambM1 .cpc_SetInkGphStrM1_callee ._cpc_SetInkGphStrM1_callee pop hl pop bc ;valor ex (sp),hl ; valor ld a,c ld c,l .asm_cpc_SetInkGphStrM1 ld hl,colores_cambM1 ld b,0 add hl,bc ld (hl),a ret
16.028571
75
0.664884
e086875c56b755a1630b06accc24ea3b6a2c54ec
7,788
asm
Assembly
EM4100_Cloner_multimap.asm
kbembedded/EM4100_Cloner
4fe53131fbddc142846dbb44c400b4d025f5ebdb
[ "MIT" ]
66
2015-08-07T20:50:39.000Z
2022-01-07T23:17:50.000Z
EM4100_Cloner_multimap.asm
kbembedded/EM4100_Cloner
4fe53131fbddc142846dbb44c400b4d025f5ebdb
[ "MIT" ]
null
null
null
EM4100_Cloner_multimap.asm
kbembedded/EM4100_Cloner
4fe53131fbddc142846dbb44c400b4d025f5ebdb
[ "MIT" ]
9
2015-12-07T00:59:49.000Z
2021-11-18T17:28:26.000Z
;The MIT License (MIT) ; ;Copyright (c) 2014 KBEmbedded ; ;This project is based on the OPEN RFID tag with resources pulled from t4f.org ;and kukata86.com. ; ;Permission is hereby granted, free of charge, to any person obtaining a copy of ;this software and associated documentation files (the "Software"), to deal in ;the Software without restriction, including without limitation the rights to ;use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of ;the Software, and to permit persons to whom the Software is furnished to do so, ;subject to the following conditions: ; ;The above copyright notice and this permission notice shall be included in all ;copies or substantial portions of the Software. ; ;THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ;IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS ;FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR ;COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER ;IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN ;CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "EM4100_Cloner_multimap.inc" #include "../Common/EM4100_Cloner_io.inc" #include "../Common/EM4100_Cloner_misc.inc" #include "../Common/EM4100_Cloner_rf.inc" EXTERN EE_MEMORY_SIZE, EE_CLOCKS_PER_BIT, EE_TAG_MODE, EE_RFID_MEMORY EXTERN _initIO EXTERN _writeEEPROM, _readEEPROM , _pauseWx10us, _pauseWx1ms EXTERN _initRF, _txManchester1, _txManchester0, _txBiphase1, _txBiphase0 EXTERN PARAM1 EXTERN FLAGS, DIP_NIBBLE, RFID_MEMORY GLOBAL _start_PLAY #DEFINE CAPTURE 7 ; Flag: If set, we are not using clone function ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; ;; VARIABLES ;; ;;; ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; UDATA ;RFID_MEMORY RES .16 ; Memory map ; TAG configuration CONFIG_TAG_MODE RES 1 ; Tag mode CONFIG_MEMORY_SIZE RES 1 ; Memory size CONFIG_CLOCKS_PER_BIT RES 1 ; Clocks per bit TMP_COUNTER RES 1 ; Tmp counters BYTE_COUNTER RES 1 BIT_COUNTER RES 1 ; Context vars. W_TEMP RES 1 STATUS_TEMP RES 1 TX_BYTE RES 1 ; Byte transmited TMP RES 1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; ;; CODE ;; ;;; ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; CODE _start_PLAY CALL _loadConfig ; Load TAG config MOVFW CONFIG_CLOCKS_PER_BIT CALL _initRF ; Init RF _main CLRF TMR0 CALL _play_em4100 GOTO _main _play_em4100 MOVLW RFID_MEMORY ; INDF points to the beginning of the RFID memory MOVWF FSR ; XXX: This can be removed ;MOVFW CONFIG_MEMORY_SIZE ; Load the number of bytes to transmit MOVLW .11 ; Load the number of bytes to transmit MOVWF BYTE_COUNTER ;Cabecera CALL _tx1 CALL _tx1 CALL _tx1 CALL _tx1 CALL _tx1 CALL _tx1 CALL _tx1 CALL _tx1 CALL _tx1 _byteloop MOVF INDF, W ; Get the first byte to transmit MOVWF TX_BYTE RLF TX_BYTE, F ; Rotate left thrice-wise RLF TX_BYTE, F RLF TX_BYTE, F MOVLW .5 MOVWF BIT_COUNTER _bitloop RLF TX_BYTE,F ; Shift next bit to transmit in to C BTFSC STATUS, C ; Check if the bit is 1 or 0 CALL _tx1 BTFSS STATUS, C CALL _tx0 DECFSZ BIT_COUNTER, F ; Check if more bits are waiting to be transmited GOTO _bitloop INCF FSR, F ; Next byte DECFSZ BYTE_COUNTER, F ; Are there more bytes? GOTO _byteloop RETURN _tx1 ; Check the modulation ;BTFSC CONFIG_TAG_MODE, TAG_MODE_CODING_BIT ;CALL _txBiphase1 ;BTFSS CONFIG_TAG_MODE, TAG_MODE_CODING_BIT CALL _txManchester1 RETURN _tx0 ; Check the modulation ;BTFSC CONFIG_TAG_MODE, TAG_MODE_CODING_BIT ;GOTO _txBiphase0 ;BTFSS CONFIG_TAG_MODE, TAG_MODE_CODING_BIT GOTO _txManchester0 RETURN ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; ;; ;; ; Function: _loadConfig ; ; Desc.: Load the tag configuration ; ; Vars: CONFIG_TAG_MODE, CONFIG_TAG_REPETITION, CONFIG_MEMORY_SIZE, ; ; CONFIG_S_COUNTER ; ; ; ; Notes: ; ;; ;; ;;; ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; _loadConfig MOVLW EE_TAG_MODE ; Read the tag mode CALL _readEEPROM MOVWF CONFIG_TAG_MODE MOVLW EE_MEMORY_SIZE ; Read the memory size CALL _readEEPROM MOVWF CONFIG_MEMORY_SIZE MOVLW EE_CLOCKS_PER_BIT ; Read the clocks per bit CALL _readEEPROM MOVWF CONFIG_CLOCKS_PER_BIT INCF DIP_NIBBLE MOVLW EE_RFID_MEMORY _adr_loop DECF DIP_NIBBLE, F BTFSC STATUS, Z GOTO _adr_set ADDLW .11 GOTO _adr_loop _adr_set CALL _loadMemoryMap RETURN ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; ;; ;; ; Function: _loadMemoryMap ; ; Desc.: Load the Memory Map from the EEPROM to the RAM ; ; Params.: W -> EEPROM ADDRESS ; ; Vars: TMP ; ; ; ;; ;; ;;; ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; _loadMemoryMap MOVWF BYTE_COUNTER ; Save the EEPROM ADDRESS (W) ADDWF CONFIG_MEMORY_SIZE, W ; Save in TMP the end of the memory map MOVWF TMP MOVLW RFID_MEMORY ; INDF points at the beginning of the memory map MOVWF FSR _loadMemoryMap_loop MOVFW BYTE_COUNTER ; Read the EEPROM byte CALL _readEEPROM MOVWF INDF ; Store it in the RAM INCF FSR, F ; Point to the next memory map byte INCF BYTE_COUNTER, F ; Check if we have copied all the bytes MOVFW TMP SUBWF BYTE_COUNTER, W BTFSS STATUS, Z GOTO _loadMemoryMap_loop return ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; END
27.715302
82
0.476246
c74842b4f02454355d1d4aba6a4fca0467f77d04
2,810
asm
Assembly
private/windows/shell/accesory/cardfile/indos.asm
King0987654/windows2000
01f9c2e62c4289194e33244aade34b7d19e7c9b8
[ "MIT" ]
11
2017-09-02T11:27:08.000Z
2022-01-02T15:25:24.000Z
private/windows/shell/accesory/cardfile/indos.asm
King0987654/windows2000
01f9c2e62c4289194e33244aade34b7d19e7c9b8
[ "MIT" ]
null
null
null
private/windows/shell/accesory/cardfile/indos.asm
King0987654/windows2000
01f9c2e62c4289194e33244aade34b7d19e7c9b8
[ "MIT" ]
14
2019-01-16T01:01:23.000Z
2022-02-20T15:54:27.000Z
title indos.asm ;************************************************************************/ ;* */ ;* Windows Cardfile - Written by Mark Cliggett */ ;* (c) Copyright Microsoft Corp. 1985, 1991 - All Rights Reserved */ ;* */ ;************************************************************************/ .xlist include cmacros.inc .list EXTRN DOS3Call:FAR ; Replacement function for INT 21H createSeg _FILE,nrfile,byte,public,CODE sBegin DATA sEnd DATA sBegin NRFILE assumes CS,NRFILE assumes DS,DATA cProc Frename,<PUBLIC,FAR>,<di> parmW src parmW dst cBegin mov dx,src push ds pop es mov di,dst mov ah,56h ; int 21h ; Original INT 21H call DOS3Call ; Supports Windows 3.0 and WLO jc renexit xor ax,ax renexit: cEnd ; ; Fdelete (pch) - delete a file ; returns 0 or -1 ; cProc Fdelete,<PUBLIC,FAR> parmW src cBegin mov dx,src mov ah,41h ; int 21h ; Original INT 21H call DOS3Call ; Supports Windows 3.0 and WLO jc rmexit xor ax,ax rmexit: cEnd cProc mylread,<PUBLIC,FAR> parmW fh parmD buf parmW count cBegin push ds mov bx,fh lds dx,buf mov ah,3fh mov cx,count ; int 21h ; Original INT 21H call DOS3Call ; Supports Windows 3.0 and WLO jnc lreaddone xor ax,ax lreaddone: pop ds cEnd cProc myread,<PUBLIC,FAR> parmW fh parmW buf parmW count cBegin mov bx,fh mov dx,buf mov ah,3fh mov cx,count ; int 21h ; Original INT 21H call DOS3Call ; Supports Windows 3.0 and WLO jnc readdone xor ax,ax readdone: cEnd cProc mylwrite,<PUBLIC,FAR> parmW fh parmD buf parmW count cBegin push ds mov bx,fh lds dx,buf mov ah,40h mov cx,count ; int 21h ; Original INT 21H call DOS3Call ; Supports Windows 3.0 and WLO jnc lwritedone xor ax,ax lwritedone: pop ds cEnd cProc mywrite,<PUBLIC,FAR> parmW fh parmW buf parmW count cBegin mov bx,fh mov dx,buf mov ah,40h mov cx,count ; int 21h ; Original INT 21H call DOS3Call ; Supports Windows 3.0 and WLO jnc writedone xor ax,ax writedone: cEnd cProc mylmul,<PUBLIC,FAR> parmW int1 parmW int2 cBegin mov ax,int1 mov dx,int2 mul dx cEnd sEnd NRFILE end
20.215827
75
0.490391
6114ccecee5cd83f52a7c89c6935e8d31f493747
805
asm
Assembly
oeis/133/A133533.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/133/A133533.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/133/A133533.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A133533: Sum of sixth powers of three consecutive primes. ; Submitted by Jon Maiga ; 16418,134003,1904835,6716019,30735939,76010259,219219339,789905091,1630362891,4048053411,8203334331,13637193699,21850682619,39264939507,75124110099,115865269131,184159290171,270079040451,369892892379,522521965731,721362055179,1067009119851,1656893669259,2391473446491,3088544452059,3756302798979,4371882759219,5259782215299,7954924778139,11331737811579,15861642309579,18878318808051,24766932250371,30008987588163,37772510006451,45585352997859,55423403005827,67256084506467,81394828373379 mov $3,3 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 add $0,$3 max $0,0 seq $0,153481 ; a(n) = prime(n)^3 - 2. mov $2,$3 cmp $2,$3 mov $4,$0 add $4,2 pow $4,2 mul $4,8 mul $2,$4 add $1,$2 lpe mov $0,$1 div $0,8
33.541667
489
0.772671
d4cd65d92e885fb16bbd08b00363b8f082b96faa
902
asm
Assembly
ASS4/avg_of_float_arr (q4).asm
rahulkumawat1/NASM
09b69e1338e59e43b6ff7403337d13810070d59f
[ "MIT" ]
null
null
null
ASS4/avg_of_float_arr (q4).asm
rahulkumawat1/NASM
09b69e1338e59e43b6ff7403337d13810070d59f
[ "MIT" ]
null
null
null
ASS4/avg_of_float_arr (q4).asm
rahulkumawat1/NASM
09b69e1338e59e43b6ff7403337d13810070d59f
[ "MIT" ]
null
null
null
section .text global main extern scanf extern printf print: push ebp mov ebp, esp sub esp, 8 fst qword[ebp-8] push format2 call printf mov esp, ebp pop ebp ret read: push ebp mov ebp, esp sub esp, 8 lea eax, [esp] push eax push format1 call scanf fld qword[ebp-8] mov esp, ebp pop ebp ret readnat:push ebp mov ebp, esp sub esp , 2 lea eax , [ebp-2] push eax push format3 call scanf mov ax, word[ebp-2] mov word[num], ax mov esp, ebp pop ebp ret main: mov eax, 4 mov ebx, 1 mov ecx, msg1 mov edx, len1 int 80h call readnat mov ax, word[num] mov word[num2], ax fldz reading: call read fadd ST1 dec word[num] cmp word[num], 0 jne reading fidiv word[num2] call print exit: mov eax, 1 mov ebx, 0 int 80h section .data format1: db "%lf",0 format2: db "The average is : %lf",10 format3: db "%d", 0 msg1: db "Enter the number of floating numbers : " len1: equ $-msg1 section .bss num: resw 1 num2: resw 1
12.026667
50
0.71286
ca2e525de5793d781a24f8080ffd593078d9e148
4,534
asm
Assembly
audio/music/crystalopening.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
audio/music/crystalopening.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
audio/music/crystalopening.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
Music_CrystalOpening: musicheader 4, 1, Music_CrystalOpening_Ch1 musicheader 1, 2, Music_CrystalOpening_Ch2 musicheader 1, 3, Music_CrystalOpening_Ch3 musicheader 1, 4, Music_CrystalOpening_Ch4 Music_CrystalOpening_Ch1: tempo 136 volume $77 tone $0002 vibrato $10, $34 dutycycle $3 stereopanning $f0 notetype $c, $92 octave 2 note F#, 2 note F#, 4 note F#, 2 note F#, 2 note F#, 4 note F#, 2 note F#, 2 note F#, 4 note F#, 2 note F#, 2 note F#, 6 notetype $c, $b4 octave 2 note B_, 2 note F#, 2 note E_, 2 note B_, 2 octave 3 note C#, 2 octave 2 note G#, 2 note F#, 2 octave 3 note C#, 2 octave 2 note F#, 2 note C#, 2 octave 1 note B_, 2 octave 2 note F#, 2 octave 3 note F#, 2 octave 2 note F#, 2 note B_, 2 octave 3 note E_, 2 note F#, 2 note E_, 2 octave 2 note B_, 2 note F#, 2 note B_, 2 octave 3 note E_, 2 note F#, 2 note E_, 2 octave 2 note B_, 2 note F#, 2 note B_, 2 octave 3 note E_, 2 octave 2 note D_, 8 octave 3 note D_, 2 octave 2 note A_, 2 note G_, 2 octave 3 note D_, 2 note E_, 2 octave 2 note B_, 2 note A_, 2 octave 3 note E_, 2 octave 2 note A_, 2 note E_, 2 note D_, 2 note A_, 2 octave 3 note A_, 2 octave 2 note A_, 2 octave 3 note D_, 2 note E_, 2 note A_, 2 note E_, 2 note D_, 2 octave 2 note A_, 2 octave 3 note D_, 2 note E_, 2 note A_, 2 note E_, 2 octave 4 note C_, 2 octave 3 note G_, 2 note F#, 2 octave 4 note C_, 2 notetype $c, $a0 note D_, 8 note D_, 8 notetype $c, $a7 note D_, 8 notetype $c, $b2 octave 2 note D_, 16 endchannel Music_CrystalOpening_Ch2: notetype $c, $a2 dutycycle $3 vibrato $8, $44 octave 2 note B_, 2 note B_, 4 note B_, 2 note B_, 2 note B_, 4 note B_, 2 note B_, 2 note B_, 4 note B_, 2 note B_, 2 note B_, 2 notetype $c, $a2 octave 2 note E_, 1 note B_, 1 octave 3 note E_, 1 note F#, 1 notetype $c, $c7 note E_, 8 note F#, 8 octave 2 note B_, 8 notetype $c, $b0 octave 3 note B_, 8 notetype $c, $c7 note B_, 16 note __, 16 note G_, 8 note A_, 8 note D_, 8 notetype $c, $c7 octave 4 note D_, 8 notetype $c, $7c note D_, 8 notetype $c, $c7 note D_, 8 note G_, 8 notetype $c, $b0 note F#, 8 note F#, 8 notetype $c, $c7 note F#, 8 notetype $c, $c2 octave 3 note D_, 16 endchannel Music_CrystalOpening_Ch3: notetype $c, $16 octave 1 note B_, 4 notetype $6, $16 note B_, 1 note A#, 1 note A_, 1 note G#, 1 note G_, 1 note F#, 1 note F_, 1 note E_, 1 notetype $c, $16 note B_, 4 note B_, 4 note B_, 4 notetype $6, $16 note B_, 1 note A#, 1 note A_, 1 note G#, 1 note G_, 1 note F#, 1 note F_, 1 note E_, 1 notetype $c, $16 note B_, 4 note B_, 4 octave 2 note B_, 8 note F#, 8 note D#, 8 note B_, 4 note F#, 4 note B_, 4 octave 3 note E_, 4 note F#, 4 note E_, 4 note D_, 4 note C#, 4 octave 2 note A_, 8 octave 3 note D_, 8 octave 2 note A_, 8 note F#, 8 octave 3 note D_, 4 note E_, 4 note F#, 4 note E_, 4 note D_, 4 note C#, 4 note C_, 8 note D_, 8 note D_, 16 octave 2 note D_, 1 note __, 15 endchannel Music_CrystalOpening_Ch4: stereopanning $f togglenoise $3 notetype $c note __, 16 note __, 12 octave 2 note C#, 1 note C#, 1 note C#, 1 note C#, 1 note D_, 4 notetype $8 note C#, 1 note C#, 1 note C#, 1 note C#, 1 note C#, 1 note C#, 1 note D_, 6 note C#, 1 note C#, 1 note C#, 1 note C#, 1 note C#, 1 note C#, 1 note D_, 3 notetype $c note C#, 1 note C#, 1 note G_, 1 note G_, 1 note C#, 1 note C#, 1 note C#, 2 note C#, 1 note C#, 1 note G_, 2 note D_, 1 note C#, 1 note A_, 1 note G_, 1 note D_, 1 note D_, 1 note G_, 1 note __, 1 note C#, 1 note C#, 1 note A_, 1 note G_, 1 note C#, 1 note D_, 1 note G_, 1 note G_, 1 note D_, 1 note D_, 1 note A_, 2 note C#, 2 note C#, 2 note C#, 2 note A_, 2 note D_, 2 note C#, 1 note C#, 1 note C#, 1 note C#, 1 note D_, 4 note C#, 1 note C#, 1 note C#, 1 note C#, 1 note D_, 4 note C#, 1 note C#, 1 note C#, 1 note C#, 1 note A_, 1 note G_, 1 note D_, 1 note C#, 1 note G_, 1 note G_, 1 note C#, 1 note C#, 1 note A_, 1 note G_, 1 note D_, 1 note C#, 1 note G_, 1 note G_, 1 note D_, 1 note C#, 1 note A_, 1 note G_, 1 note C#, 1 note C#, 1 note D_, 1 note C#, 1 note C#, 1 note D_, 1 note A_, 1 note G_, 1 note D_, 1 note C#, 1 note C#, 1 note G_, 1 note D_, 1 note C#, 1 note C#, 2 note D_, 2 note __, 2 note D_, 2 note D_, 2 note __, 6 note __, 16 note __, 16 endchannel
12.594444
43
0.603
f31bb435d979b4f9aeb3ce40b4a708e2d1c7d373
345
asm
Assembly
kernel/Arch/x86/Boot.asm
AymenSekhri/CyanOS
1e42772911299a40aab0e7aac50181b180941800
[ "MIT" ]
63
2020-06-18T11:04:07.000Z
2022-02-24T09:01:44.000Z
kernel/Arch/x86/Boot.asm
AymenSekhri/CyanOS
1e42772911299a40aab0e7aac50181b180941800
[ "MIT" ]
4
2020-08-31T23:07:37.000Z
2021-06-08T21:54:02.000Z
kernel/Arch/x86/Boot.asm
AymenSekhri/CyanOS
1e42772911299a40aab0e7aac50181b180941800
[ "MIT" ]
9
2020-08-03T13:48:50.000Z
2022-03-31T11:50:59.000Z
extern kernel_boot_stage2 KERNEL_BASE equ 0xC0000000 ; Stack section .bss align 16 resb 16384 ; 16 KiB __stack_top: ;stack_top equ (__stack_top - KERNEL_BASE) ; bootstrap stage 1 section .bootstrap global _kernel_boot_stage1 _kernel_boot_stage1: mov ecx, __stack_top sub ecx, KERNEL_BASE mov esp, ecx push ebx push eax call kernel_boot_stage2
16.428571
42
0.82029
dc0422e01698a64b983a831f1a22f5ada50770ea
681
asm
Assembly
test/floatb.asm
ystk/debian-nasm
aeb5ae6e38f73788ef70a2b41c384dd7503bce66
[ "BSD-2-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
test/floatb.asm
ystk/debian-nasm
aeb5ae6e38f73788ef70a2b41c384dd7503bce66
[ "BSD-2-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
test/floatb.asm
ystk/debian-nasm
aeb5ae6e38f73788ef70a2b41c384dd7503bce66
[ "BSD-2-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
;Testname=unoptimized; Arguments=-O0 -fbin -ofloatb.bin; Files=stdout stderr floatb.bin ;Testname=optimized; Arguments=-Ox -fbin -ofloatb.bin; Files=stdout stderr floatb.bin ;; Known problematic floating-point numbers and their proper ;; encoding... bits 64 dd 1.1e10 dd 0x5023e9ac ; Should be... dd 50.40e9 dd 0x513bc130 ; Should be... dq 1.4e23 dq 0x44bda56a4b0835c0 dq 50.48e21 dq 0x44a5610d7502feae dt 1.2e28 dq 0x9b18ab5df7180b6c dw 0x405c dt 50.46e25 dq 0xd0b29a67e95dcb60 dw 0x4057 ;; Way too big numbers, should overflow to +Inf dd 1.0E646456955 dd 1.0E646456956 dd 1.0E2147483646 dd 1.0E2147483647 dd 1.0E2147483648 dd 1.0E2147483649
18.916667
87
0.745962
27264057b79be521fc525f6e7e5b95e5bbfc3ed4
38,425
asm
Assembly
Source/Cinema.asm
AbePralle/FGB
52f004b8d9d4091a2a242a012dc8c1f90d4c160d
[ "MIT" ]
null
null
null
Source/Cinema.asm
AbePralle/FGB
52f004b8d9d4091a2a242a012dc8c1f90d4c160d
[ "MIT" ]
null
null
null
Source/Cinema.asm
AbePralle/FGB
52f004b8d9d4091a2a242a012dc8c1f90d4c160d
[ "MIT" ]
null
null
null
;------------------------------------------------------------------------ ; Cinema.asm ; 1-5-2000 by Martin Casado ; 4.27.2000 by Abe Pralle ; ; Description: Routines to handle drawing and minipulating cinema ; tiles and sprites ; ; Contents: ; LoadCinemaBG ; LoadCinemaSprite ; LoadCinemaTextBox ;------------------------------------------------------------------------ INCLUDE "Source/Defs.inc" FIRST_TEXTBOX_TILE EQU 136 SECTION "Cinema",ROM0 ;--------------------------------------------------------------------- ; Routine: LoadCinemaBG ; Arguments: a - bank containing data ; hl - addr of .bg data to load ; Alters: af ; Description: Uses DMA to load in new tile patterns, then loads ; in tile layout data into tileShadowBuffer and ; attributeShadowBuffer ;--------------------------------------------------------------------- LoadCinemaBG:: push bc push de push hl ld de,$9000 call LoadTileDefs ld a,[hl+] ld [mapWidth],a ld b,a ld a,1 .findPitch rlca cp b jr c,.findPitch ld [mapPitch],a ld a,[hl+] ld [mapHeight],a call SetupMapVarsFromWidthPitchAndHeight push hl ld hl,mapMaxLeft inc [hl] ld hl,mapMaxTop inc [hl] pop hl ;load tile indices ld a,TILESHADOWBANK ld [$ff70],a call CinemaCommonClearBank ld de,tileShadowBuffer ld a,[mapHeight] ld b,a .tileIndexOuter ld a,[mapWidth] ld c,a .tileIndexInner ld a,[hl+] ld [de],a inc de dec c jr nz,.tileIndexInner ;skip remaining pitch call CinemaCommonSkipPitch dec b jr nz,.tileIndexOuter ;load tile attributes (packed 2:1 per byte) ld a,ATTRSHADOWBANK ld [$ff70],a call CinemaCommonClearBank ld de,attributeShadowBuffer ld a,[mapHeight] ld b,a .tileAttrOuter ld a,[mapWidth] srl a ld c,a .tileAttrInner ld a,[hl+] push af swap a and %00001111 ld [de],a inc de pop af and %00001111 ld [de],a inc de dec c jr nz,.tileAttrInner ;skip remaining pitch call CinemaCommonSkipPitch dec b jr nz,.tileAttrOuter ld a,0 call LoadCinemaPalette .done ld a,OBJROM call SetActiveROM call PrepareForInitialMapDraw ;call VWait ld a,1 ;necessary though I'm not sure why!! call Delay pop hl pop de pop bc ret CinemaCommonClearBank: push hl ld hl,map .clearBankLoop xor a ld [hl+],a ld a,h cp $e0 jr c,.clearBankLoop pop hl ret CinemaCommonSkipPitch: push hl ld a,[mapSkip] ld l,a ld h,0 add hl,de ld d,h ld e,l pop hl ret ;--------------------------------------------------------------------- ; Routine: LoadCinemaSprite ; Arguments: a - bank containing data ; hl - addr of .sp data to load ; Alters: af ; Description: Uses DMA to load in new sprite patterns, then loads ; in metasprite layout data into spriteOAMBuffer ;--------------------------------------------------------------------- LoadCinemaSprite:: push bc push de push hl ld de,$8000 call LoadTileDefs ;switch to 8x16 sprites ld a,[$ff40] or %00000100 ld [$ff40],a ;load oam definitions inc hl ;discard width, pitch, and height inc hl inc hl ld a,[hl+] ;num sprites ld c,a .loadSprite call AllocateSprite cp $ff jr z,.noSpritesLeft ld d,((spriteOAMBuffer>>8) & $ff) ld e,a ld a,[hl+] ;y position ld [de],a inc de ld a,[hl+] ;x position ld [de],a inc de ld a,[hl+] ;tile index ld [de],a inc de ld a,[hl+] ;attributes ld [de],a dec c jr nz,.loadSprite jr .loadPalette .noSpritesLeft inc hl inc hl inc hl inc hl dec c jr nz,.noSpritesLeft .loadPalette ld a,64 call LoadCinemaPalette .done ld a,OBJROM call SetActiveROM ;necessary (for loadbg) though I'm not sure why!! call VWait ;ld a,1 ;call Delay pop hl pop de pop bc ret ;--------------------------------------------------------------------- ; Routine: LoadTileDefs ; Arguments: a - bank containing data ; de - starting location to load tile patterns into, ; e.g. $9000 for backgrounds or $8000 for sprites. ; hl - addr of .bg or .sp data to load ; Alters: af, hl ; Description: Does some setup work for either Cinema backgrounds OR ; Cinema sprites then uses DMA to load in new tile or ; sprite patterns ;--------------------------------------------------------------------- LoadTileDefs: push bc push de call SetActiveROM ld a,1 ld [displayType],a ;replace HBlank handler if default one ld a,[hblankVector+1] cp (OnHBlank & $ff) jr nz,.afterInstallHandler ld a,[hblankVector+2] cp ((OnHBlank>>8) & $ff) jr nz,.afterInstallHandler .replaceHandler push hl ld hl,CinemaOnHBlank call InstallHBlankHandler pop hl .afterInstallHandler ;xor a ;ld [levelCheckSkip],a ;ld [levelCheckSkip+1],a ;ensure VBlank interrupt is enabled and interrupts are enabled ldio a,[$ffff] or %11 ldio [$ffff],a ei ;turn LCD on ld a,[$ff40] or a,%11000011 ld [$ff40], a ;lcdc control ;indicate we've settled in xor a ld [amChangingMap],a ld a,[hl+] ;bank zero tiles exist? or a jr z,.checkBank1Tiles ld a,[hl+] ;number of bank zero tiles ld b,a call .copyTilesToMapRAM ;copy to buffer to ensure alignment xor a call .loadTiles .checkBank1Tiles ld a,[hl+] ;bank one tiles exist? or a jr z,.loadLayout ld a,[hl+] ;number of bank one tiles ld b,a call .copyTilesToMapRAM ;copy to buffer to ensure alignment ld a,1 call .loadTiles .loadLayout ;switch back to VRAM bank 0 xor a ld [$ff4f],a pop de pop bc ret .copyTilesToMapRAM push de push bc ld a,MAPBANK ld [$ff70],a ld de,map .copyTilesOuter ld c,16 .copyTilesInner ld a,[hl+] ld [de],a inc de dec c jr nz,.copyTilesInner dec b jr nz,.copyTilesOuter pop bc pop de ret .loadTiles ;load sets of 64 tiles and then leftover push bc push de push hl push af ;save bank ld hl,map .continueLoadTiles ld a,b or a ;zero equivalent to 256 in this case jr z,.gt_64_bank cp 65 ;<=64 tiles left? jr nc,.gt_64_bank ld c,b ;# of tiles IS # of sets of 16 jr .got_loadsize .gt_64_bank ld c,64 ;load 64 tiles .got_loadsize pop af ;retrieve bank push af ;save bank again call DMALoad ;push bc ;push de ;push hl ;call GetInput ;pop hl ;pop de ;pop bc ;subtract from count tiles we took care of ld a,b sub c jr z,.loadTilesDone ld b,a ;advance source push de ld de,1024 add hl,de pop de ;advance destination push hl ld hl,1024 add hl,de ld d,h ld e,l pop hl ;if >= $9800 then wrap to $8800 ld a,d cp $98 jr c,.continueLoadTiles sub $10 ld d,a jr .continueLoadTiles .loadTilesDone pop af pop hl pop de pop bc ret ;--------------------------------------------------------------------- ; Routine: LoadCinemaPalette ; Arguments: a - byte offset to load into (e.g. 0 for tile ; palette, 64 for sprite palette, 56 for text box ; palette) ; (32-63) ; hl - addr of palette data to load (expecting ; spec, lobyte, hibyte triplets) ; Alters: af, hl ; Description: Loads the specified palette into GamePalette using ; the spec byte to calculate where to store ;--------------------------------------------------------------------- LoadCinemaPalette: push bc push de ld b,a ;b is offset for bg or sprite palette ld a,FADEBANK ld [$ff70],a ;load palette into [gamePalette] ld a,[hl+] ;num colors ld c,a .loadPalette ld d,((gamePalette>>8) & $ff) ld a,[hl+] ;read spec & determine correct pos and 63 add b add (gamePalette & $ff) ld e,a ld a,[hl+] ;low byte of color ld [de],a inc de ld a,[hl+] ;high byte of color ld [de],a inc de dec c jr nz,.loadPalette pop de pop hl ret ;--------------------------------------------------------------------- ; Routine: LoadCinemaTextBox ; Arguments: a - bank containing data ; hl - addr of .bg data to load ; Alters: af ; Description: Loads in normal BG file with the following ; alterations: ; - tile map size should be 20x6 ; - loads tile defs to $8880 e.g. 136-255 (overwriting ; font) ; - adds 136 to each tile index ; - loads the tile map to $9c00 ; - palette is loaded to gamePalette colors 28-31 ; regardless ; - of original index values ;--------------------------------------------------------------------- LoadCinemaTextBox:: push bc push de push hl ld de,$8880 call LoadTileDefs ld a,[hl+] ;discard tile width (should be 20) ld a,[hl+] ;discard tile height (should be 6) ;load tile indices ld de,backBuffer ld b,6 ;height loop .tileIndexOuter ld c,20 ;width loop .tileIndexInner ld a,[hl+] add a,FIRST_TEXTBOX_TILE ld [de],a inc de dec c jr nz,.tileIndexInner ;skip remaining pitch (32-20 = 12) push hl ld hl,12 add hl,de ld d,h ld e,l pop hl dec b jr nz,.tileIndexOuter ;load tile attributes (packed 2:1 per byte) ld de,attributeBuffer ld b,6 ;height loop .tileAttrOuter ld c,10 ;width loop (20 tiles / 2 attr per tile) .tileAttrInner ld a,[hl+] push af swap a and %00001111 or %00000111 ;make palette 7 ld [de],a inc de pop af and %00001111 or %00000111 ;make palette 7 ld [de],a inc de dec c jr nz,.tileAttrInner ;skip remaining pitch (32-20 = 12) push hl ld hl,12 add hl,de ld d,h ld e,l pop hl dec b jr nz,.tileAttrOuter ld a,56 ;load palette 0 as palette 7 (colors 0-3 to 28-31) call LoadCinemaPalette .done ld a,OBJROM call SetActiveROM call GfxBlitBackBufferToWindow ;necessary (for loadbg) though I'm not sure why!! call VWait ;ld a,1 ;necessary (for loadbg) though I'm not sure why!! ;call Delay pop hl pop de pop bc ret ;--------------------------------------------------------------------- ; Routine: CinemaBlitRect ; Arguments: bc - tile width, height to copy ; de - dest tile (i,j) to blit to ; hl - source tile (i,j) to blit from ; Alters: af ; Description: Copies tiles from the tileShadowBuffer and the ; attributeShadowBuffer from one place to another ;--------------------------------------------------------------------- CinemaBlitRect:: push bc push de push hl ;get destination address (tileShadowBuffer + j*pitch + i) push hl ld h,d ld l,e call ConvertXYToLocHL ld d,h ld e,l pop hl ;get start address call ConvertXYToLocHL ;blit the tile indices ld a,TILESHADOWBANK ld [$ff70],a call .blitSubroutine ;switch to attributes and copy those too ld a,ATTRSHADOWBANK ld [$ff70],a call .blitSubroutine pop hl pop de pop bc ret .blitSubroutine ;hl source, de dest, bc width & height push bc push de push hl .outer ;copy a row push bc ;save width & height push hl ;save source start push de ;save dest start .inner ;copy a byte ld a,[hl+] ld [de],a inc de dec b jr nz,.inner pop de ;retrieve dest start & add pitch to it ld h,0 ld a,[mapPitch] ld l,a add hl,de ld d,h ld e,l pop hl ;retrieve source start & add pitch to it push de ld d,0 ld e,a ;a set above add hl,de pop de pop bc ;retrieve width & height dec c ;one more row taken care of jr nz,.outer pop hl pop de pop bc ret ;--------------------------------------------------------------------- ; Routine: CinemaSpotAnimationRandomHorizontalFrames ; Arguments: a - number of possible frames ; bc - metatile width, height to copy ; de - dest metatile (i,j) to blit to ; hl - corner of first source metatile (i,j) blit from ; Alters: af ; Description: Picks a new random frame and blits it to the image. ;--------------------------------------------------------------------- CinemaSpotAnimationRandomHorizontalFrames:: push bc push hl ;pick a random frame dec a call GetRandomNumZeroToN ;scoot source over by (numframe * width of one frame) push bc ld c,a xor a .timesWidth add b dec c jr nz,.timesWidth add h ld h,a pop bc call CinemaBlitRect pop hl pop bc ret ;--------------------------------------------------------------------- ; Routine: CinemaSpotAnimationRandomVerticalFrames ; Arguments: a - number of possible frames ; bc - metatile width, height to copy ; de - dest metatile (i,j) to blit to ; hl - corner of first source metatile (i,j) blit from ; Alters: af ; Description: Picks a new random frame and blits it to the image. ;--------------------------------------------------------------------- CinemaSpotAnimationRandomVerticalFrames:: push bc push hl ;pick a random frame dec a call GetRandomNumZeroToN ;scoot source down by (numframe * height of one frame) push bc ld b,a xor a .timesWidth add c dec b jr nz,.timesWidth add l ld l,a pop bc call CinemaBlitRect pop hl pop bc ret ;--------------------------------------------------------------------- ; Routines: StdWaitDialog ; StdWaitDialogNoClear ; Arguments: a - desired next state after dialog ; Alters: af,hl ;--------------------------------------------------------------------- StdWaitDialogNoClear:: push hl ld hl,dialogSettings set DLG_NOCLEAR_BIT,[hl] pop hl StdWaitDialog:: ld a,h ldio [mapState+1],a ld a,l ldio [mapState],a call SaveIdle ret ;--------------------------------------------------------------------- SECTION "CharacterAnimationCode",ROMX ;--------------------------------------------------------------------- ;--------------------------------------------------------------------- ; Routines: AnimateSkippy ; AnimateFlour ; AnimateFlourDriving ; AnimateBA ; AnimateBS ; AnimateHaiku ; AnimateBRAINIAC ; Arguments: d - duration (roughly d*100 60ths or d*1.6 sec) ;--------------------------------------------------------------------- AnimateSkippy:: ld b,d .skippyEyes ld c,10 .skippyTalk push bc ld a,5 call Delay ld a,b cp 3 ld a,3 jr nc,.animateSkippyMouth ld a,1 .animateSkippyMouth ;animate mouth ld bc,$0402 ld de,$0609 ld hl,$1400 call CinemaSpotAnimationRandomHorizontalFrames pop bc dec c jr nz,.skippyTalk ;animate eyes push bc ld a,5 ld bc,$0403 ld de,$0606 ld hl,$1402 call CinemaSpotAnimationRandomVerticalFrames pop bc dec b jr nz,.skippyEyes ;open eyes at end ld a,1 ld bc,$0403 ld de,$0606 ld hl,$1402 call CinemaSpotAnimationRandomVerticalFrames ld a,10 call Delay ret AnimateFlour:: ld b,d .flourEyes ld c,10 .flourTalk push bc ld a,5 call Delay ld a,b cp 1 ld a,4 jr nz,.animateFlourMouth ld a,1 .animateFlourMouth ;animate mouth ld bc,$0502 ld de,$0906 ld hl,$1400 call CinemaSpotAnimationRandomVerticalFrames pop bc dec c jr nz,.flourTalk ;animate eyes push bc ld a,3 ld bc,$0603 ld de,$0903 ld hl,$1900 call CinemaSpotAnimationRandomVerticalFrames pop bc dec b jr nz,.flourEyes ;open eyes at end ld a,1 ld bc,$0603 ld de,$0903 ld hl,$1900 call CinemaSpotAnimationRandomVerticalFrames ld a,10 call Delay ret AnimateFlourDriving:: ld b,1 .flourEyes ld a,d ;c=d*10 rlca rlca rlca add d add d ld c,a .flourTalk push bc ld a,5 call Delay ld a,c cp 1 ld a,6 jr nz,.animateFlourMouth ld a,1 .animateFlourMouth ;animate mouth ld bc,$0604 ld de,$0703 ld hl,$1400 call CinemaSpotAnimationRandomHorizontalFrames pop bc dec c jr nz,.flourTalk dec b jr nz,.flourEyes ;open eyes at end ld a,1 ld bc,$0604 ld de,$0703 ld hl,$1400 call CinemaSpotAnimationRandomHorizontalFrames ld a,10 call Delay ret AnimateBA:: ld b,1 ld a,d ;c=d*10 rlca rlca rlca add d add d ld c,a .baEyes push bc ld a,5 call Delay ld a,c cp 1 ld a,3 jr nz,.animateFrames ld a,1 .animateFrames ;animate mouth ld bc,$0702 ld de,$0604 ld hl,$1400 call CinemaSpotAnimationRandomVerticalFrames pop bc dec c jr nz,.baEyes ;open eyes at end ld a,1 ld bc,$0702 ld de,$0604 ld hl,$1400 call CinemaSpotAnimationRandomVerticalFrames ld a,10 call Delay ret AnimateBS:: ld b,1 ld a,d ;c=d*10 rlca rlca rlca add d add d ld c,a .bsEyes push bc ld a,5 call Delay ld a,c cp 1 ld a,3 jr nz,.animateFrames ld a,1 .animateFrames ;animate mouth ld bc,$0401 ld de,$0604 ld hl,$1400 call CinemaSpotAnimationRandomVerticalFrames pop bc dec c jr nz,.bsEyes ;open eyes at end ld a,1 ld bc,$0401 ld de,$0604 ld hl,$1400 call CinemaSpotAnimationRandomVerticalFrames ld a,10 call Delay ret AnimateHaiku:: ld b,21 .haikuHand ld c,2 .haikuTalk push bc ld a,5 call Delay ld a,b cp 1 ld a,4 jr nz,.animateHaikuMouth ld a,1 .animateHaikuMouth ;animate mouth ld bc,$0404 ld de,$0605 ld hl,$1408 call CinemaSpotAnimationRandomHorizontalFrames pop bc dec c jr nz,.haikuTalk ;animate hand push bc ld a,21 sub b ;frame of hand (1-21) cp 6 jr c,.handFrameSet ;1st line 0-5 sub 6 cp 6 jr c,.handFrameSet ;2nd line 0-5 sub 5 cp 3 jr c,.handFrameSet ;2nd line 1-2 sub 3 cp 6 jr c,.handFrameSet ;3rd line 0-5 xor a ;final, done .handFrameSet ;times six rlca ;times 2 ld b,a ;b = a*2 rlca ;times 2 again (a0 * 4) add b ;a*6 = a*2 + a*4 add 20 ld h,a ld l,0 ld bc,$0608 ld de,$0e04 call CinemaBlitRect pop bc dec b jr nz,.haikuHand ld a,40 call Delay ret AnimateBRAINIAC:: ld b,d .brainiacEyes ld c,10 .brainiacTalk push bc ld a,5 call Delay ld a,b cp 1 ld a,2 jr nz,.animate ld a,1 .animate ;animate mouth ld bc,$0402 ld de,$0908 ld hl,$1400 call CinemaSpotAnimationRandomHorizontalFrames pop bc dec c jr nz,.brainiacTalk ;animate eyes push bc ld a,4 ld bc,$0702 ld de,$0604 ld hl,$1402 call CinemaSpotAnimationRandomVerticalFrames pop bc dec b jr nz,.brainiacEyes ret AnimateLadyFlower:: ld b,d .eyes ld c,10 .talk push bc ld a,5 .animateBeeLoop call .animateBee dec a jr nz,.animateBeeLoop ld a,b cp 1 ld a,2 jr nz,.animate ld a,1 .animate ;animate mouth ld bc,$0101 ld de,$0a06 ld hl,$1400 call CinemaSpotAnimationRandomVerticalFrames pop bc dec c jr nz,.talk ;animate eyes push bc ld a,3 ld bc,$0302 ld de,$0904 ld hl,$1500 call CinemaSpotAnimationRandomVerticalFrames ;animate bg flowers ld a,2 ld bc,$0302 ld de,$0008 ld hl,$1406 call CinemaSpotAnimationRandomVerticalFrames ld a,2 ld bc,$0202 ld de,$0508 ld hl,$140a call CinemaSpotAnimationRandomHorizontalFrames ld a,2 ld bc,$0201 ld de,$020a ld hl,$140c call CinemaSpotAnimationRandomHorizontalFrames ld a,2 ld bc,$0202 ld de,$0f0a ld hl,$140d call CinemaSpotAnimationRandomHorizontalFrames ld a,2 ld bc,$0202 ld de,$1208 ld hl,$140f call CinemaSpotAnimationRandomHorizontalFrames pop bc dec b jr nz,.eyes ret VAR_BEEPOS EQU 0 .animateBee push af push bc push hl ld a,1 call Delay ;bee y position ld a,[levelVars + VAR_BEEPOS] add 2 ld [levelVars + VAR_BEEPOS],a cp 128 jr c,.beeDirectionChosen ld b,a ;a = 255 - a ld a,255 sub b .beeDirectionChosen sub 64 rlca ;get sign bit in bit 7 sra a sra a sra a sra a ;adjust y coord ld hl,spriteOAMBuffer add 40 ld [hl],a ld hl,spriteOAMBuffer+4 ld [hl],a ;adjust animation frame ldio a,[updateTimer] rlca rlca and %100 ld hl,spriteOAMBuffer + 2 ld [hl],a inc a inc a ld hl,spriteOAMBuffer + 6 ld [hl],a pop hl pop bc pop af ret AnimateLadyFlowerDistress:: ld a,d and %10000000 ld b,a ld a,d ;c=d*8 and %01111111 rlca rlca rlca ld c,a .ladyFace push bc bit 7,b jr z,.afterJiggle ld a,%111 call GetRandomNumMask or a jr nz,.afterJiggle ld a,15 ldio [jiggleDuration],a .afterJiggle ld a,8 call Delay ld a,c cp 1 ld a,4 jr nz,.animateFrames ld a,1 .animateFrames ;animate mouth ld bc,$0506 ld de,$0702 ld hl,$1500 call CinemaSpotAnimationRandomVerticalFrames pop bc dec c jr nz,.ladyFace ;open eyes at end ld a,1 ld bc,$0506 ld de,$0702 ld hl,$1500 call CinemaSpotAnimationRandomVerticalFrames ld a,10 call Delay ret AnimateLadyFlowerRamp:: ld b,d .ladyEyes ld c,10 .ladyTalk push bc ld a,5 call Delay ld a,b cp 2 ld a,2 jr nc,.animateLadyMouth ld a,1 .animateLadyMouth ;animate mouth ld bc,$0202 ld de,$0806 ld hl,$250c call CinemaSpotAnimationRandomVerticalFrames pop bc dec c jr nz,.ladyTalk ;animate eyes push bc ld a,4 ld bc,$0403 ld de,$0703 ld hl,$2500 call CinemaSpotAnimationRandomVerticalFrames pop bc dec b jr nz,.ladyEyes ;open eyes at end ld a,1 ld bc,$0403 ld de,$0703 ld hl,$2500 call CinemaSpotAnimationRandomVerticalFrames ld a,10 call Delay ret AnimateCaptainRamp:: ld b,d .flourEyes ld c,10 .flourTalk push bc ld a,5 call Delay ld a,b cp 2 ld a,4 jr nc,.animateFlour ld a,1 .animateFlour ;animate mouth ld bc,$0402 ld de,$1312 ld hl,$2009 call CinemaSpotAnimationRandomVerticalFrames pop bc dec c jr nz,.flourTalk ;animate eyes push bc ld a,3 ld bc,$0503 ld de,$130f ld hl,$2000 call CinemaSpotAnimationRandomVerticalFrames pop bc dec b jr nz,.flourEyes ;open eyes at end ld a,1 ld bc,$0503 ld de,$130f ld hl,$2000 call CinemaSpotAnimationRandomVerticalFrames ld a,10 call Delay ret AnimateCaptainGunpoint:: ld a,d rlca ;frames *8 rlca ld b,a .flourEyes ld c,3 .flourTalk push bc ld a,5 call Delay ld a,b cp 8 ld a,2 jr nc,.animateFlour ld a,1 .animateFlour ;animate mouth ld bc,$0402 ld de,$0c06 ld hl,$1402 call CinemaSpotAnimationRandomHorizontalFrames pop bc dec c jr nz,.flourTalk ;animate eyes push bc ld a,2 ld bc,$0602 ld de,$0b04 ld hl,$1400 call CinemaSpotAnimationRandomHorizontalFrames pop bc dec b jr nz,.flourEyes ;open eyes at end ld a,1 ld bc,$0602 ld de,$0b04 ld hl,$1400 call CinemaSpotAnimationRandomHorizontalFrames ld a,10 call Delay ret AnimatePreacher:: ld b,1 ld a,d ;c=d*10 rlca rlca rlca add d add d ld c,a .preacherEyes push bc ld a,5 call Delay ld a,c cp 1 ld a,2 jr nz,.animateFrames ld a,1 .animateFrames ;animate mouth ld bc,$0302 ld de,$0906 ld hl,$1400 call CinemaSpotAnimationRandomVerticalFrames pop bc dec c jr nz,.preacherEyes ;open eyes at end ld a,1 ld bc,$0302 ld de,$0906 ld hl,$1400 call CinemaSpotAnimationRandomVerticalFrames ld a,10 call Delay ret AnimateCaptainAtWedding:: ld b,1 ld a,d ;c=d*10 rlca rlca rlca add d add d ld c,a .captainEyes push bc ld a,5 call Delay ld a,c cp 1 ld a,4 jr nz,.animateFrames ld a,1 .animateFrames ;animate mouth ld bc,$0404 ld de,$0505 ld hl,$1400 call CinemaSpotAnimationRandomVerticalFrames pop bc dec c jr nz,.captainEyes ;open eyes at end ld a,1 ld bc,$0404 ld de,$0505 ld hl,$1400 call CinemaSpotAnimationRandomVerticalFrames ld a,10 call Delay ret AnimateLadyAtWedding:: ld b,d .ladyEyes ld c,10 .ladyTalk push bc ld a,5 call Delay ld a,b cp 2 ld a,2 jr nc,.animateLadyMouth ld a,1 .animateLadyMouth ;animate mouth ld bc,$0202 ld de,$0b05 ld hl,$1400 call CinemaSpotAnimationRandomVerticalFrames pop bc dec c jr nz,.ladyTalk ;animate eyes push bc ld a,2 ld bc,$0402 ld de,$0a03 ld hl,$1404 call CinemaSpotAnimationRandomVerticalFrames pop bc dec b jr nz,.ladyEyes ;open eyes at end ld a,1 ld bc,$0402 ld de,$0a03 ld hl,$1404 call CinemaSpotAnimationRandomVerticalFrames ld a,10 call Delay ret AnimateGyroAtWedding:: ld b,d sla b ;b*=4 sla b .gyroEyes ld c,4 .gyroTalk push bc ld a,3 call Delay ld a,b cp 8 ld a,2 jr nc,.animateGyroMouth ld a,1 .animateGyroMouth ;animate mouth ld bc,$0a05 ld de,$0606 ld hl,$1800 call CinemaSpotAnimationRandomVerticalFrames pop bc dec c jr nz,.gyroTalk ;animate eyes push bc ld a,4 ld bc,$0402 ld de,$0604 ld hl,$1400 call CinemaSpotAnimationRandomVerticalFrames pop bc dec b jr nz,.gyroEyes ;open eyes at end ld a,1 ld bc,$0402 ld de,$0604 ld hl,$1400 call CinemaSpotAnimationRandomVerticalFrames ld a,10 call Delay ret AnimateGyroOnScreen:: ld b,d sla b ;b*=4 sla b .gyroEyes ld c,4 .gyroTalk push bc ld a,3 call Delay ld a,b cp 8 ld a,2 jr nc,.animateGyroMouth ld a,1 .animateGyroMouth ;animate mouth ld bc,$0903 ld de,$0607 ld hl,$1400 call CinemaSpotAnimationRandomVerticalFrames pop bc dec c jr nz,.gyroTalk ;animate eyes push bc ld a,3 ld bc,$0301 ld de,$0705 ld hl,$1406 call CinemaSpotAnimationRandomVerticalFrames pop bc dec b jr nz,.gyroEyes ;open eyes at end ld a,1 ld bc,$0301 ld de,$0705 ld hl,$1406 call CinemaSpotAnimationRandomVerticalFrames ld a,10 call Delay ret AnimateBSDriving:: ld b,1 ld a,d ;c=d*10 rlca rlca rlca add d add d ld c,a .bsEyes push bc ld a,5 call Delay ld a,c cp 1 ld a,3 jr nz,.animateFrames ld a,1 .animateFrames ;animate mouth ld bc,$0402 ld de,$0803 ld hl,$1400 call CinemaSpotAnimationRandomVerticalFrames pop bc dec c jr nz,.bsEyes ;open eyes at end ld a,1 ld bc,$0402 ld de,$0803 ld hl,$1400 call CinemaSpotAnimationRandomVerticalFrames ld a,10 call Delay ret ;***WARNING*** Not HOME Section
22.682999
74
0.415667
da70ea27ba0e6db9d175c6b0aaecde4ea7bc783c
62
asm
Assembly
src/main/fragment/mos6502-common/vwsm1=vwsm2_band_vdsc1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/vwum1=vwum2_band_vwuc1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/vwum1=vwum2_band_vwuc1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
lda {m2} and #<{c1} sta {m1} lda {m2}+1 and #>{c1} sta {m1}+1
8.857143
10
0.516129
0a063fa066d5851339f2d131e56970b1a3e31787
86
asm
Assembly
sisprog/programas_assembly/prova1.asm
bmnascimento/von-neumann-simulator
a36879939f2ccf58a8079b7730bac00e0ba29ce0
[ "MIT" ]
null
null
null
sisprog/programas_assembly/prova1.asm
bmnascimento/von-neumann-simulator
a36879939f2ccf58a8079b7730bac00e0ba29ce0
[ "MIT" ]
null
null
null
sisprog/programas_assembly/prova1.asm
bmnascimento/von-neumann-simulator
a36879939f2ccf58a8079b7730bac00e0ba29ce0
[ "MIT" ]
1
2020-09-04T01:12:08.000Z
2020-09-04T01:12:08.000Z
@ 107 K 42 K 45 K 52 K 4E K 41 K 52 K 44 K 4F K 4D K 41 K 52 K 43 K 45 K 4C K 49 K 4E
4.777778
5
0.593023
123c36638963bfaabafc6f250f3af2b3a82484c9
581
asm
Assembly
programs/oeis/226/A226292.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/226/A226292.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/226/A226292.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A226292: (10*n^2+4*n+(1-(-1)^n))/8. ; 2,6,13,22,34,48,65,84,106,130,157,186,218,252,289,328,370,414,461,510,562,616,673,732,794,858,925,994,1066,1140,1217,1296,1378,1462,1549,1638,1730,1824,1921,2020,2122,2226,2333,2442,2554,2668,2785,2904,3026,3150,3277,3406,3538,3672,3809,3948,4090,4234,4381,4530,4682,4836,4993,5152,5314,5478,5645,5814,5986,6160,6337,6516,6698,6882,7069,7258,7450,7644,7841,8040,8242,8446,8653,8862,9074,9288,9505,9724,9946,10170,10397,10626,10858,11092,11329,11568,11810,12054,12301,12550 mov $1,5 mul $1,$0 add $1,12 mul $1,$0 div $1,4 add $1,2 mov $0,$1
52.818182
474
0.733219
e31f7e10de8a40b65559856acaabf987bc9d4ccf
744
asm
Assembly
source/modules/basic/common/vectors.asm
paulscottrobson/mega-basic
f71750889136e2fdc4e6053c5696593318162bcf
[ "MIT" ]
3
2019-12-03T06:05:24.000Z
2021-03-24T01:51:07.000Z
source/modules/basic/common/vectors.asm
paulscottrobson/mega-basic
f71750889136e2fdc4e6053c5696593318162bcf
[ "MIT" ]
null
null
null
source/modules/basic/common/vectors.asm
paulscottrobson/mega-basic
f71750889136e2fdc4e6053c5696593318162bcf
[ "MIT" ]
null
null
null
; ******************************************************************************************* ; ******************************************************************************************* ; ; Name : vectors.asm ; Purpose : Vectored I/O ; Date : 29th August 2019 ; Author : Paul Robson (paul@robsons.org.uk) ; ; ******************************************************************************************* ; ******************************************************************************************* VIOCharPrint: jmp IFT_PrintCharacter VIOCharGet: jsr IF_GetKey cmp #0 beq _VCG0 sec rts _VCG0: clc rts VIOCheckBreak: jmp IF_CheckBreak VIOCharGetPosition: lda IFT_XCursor rts VIOReadLine: jmp IFT_ReadLine
23.25
93
0.342742
3edd170fd83a090a3f3293b16d08056e018b3b56
883
asm
Assembly
oeis/255/A255381.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/255/A255381.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/255/A255381.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A255381: Number of strings of k+n decimal digits that contain one string of exactly k consecutive "0" digits, where k >= n. ; Submitted by Jamie Morken(s1) ; 1,18,261,3420,42300,504000,5850000,66600000,747000000,8280000000,90900000000,990000000000,10710000000000,115200000000000,1233000000000000,13140000000000000,139500000000000000,1476000000000000000,15570000000000000000,163800000000000000000,1719000000000000000000,18000000000000000000000,188100000000000000000000,1962000000000000000000000,20430000000000000000000000,212400000000000000000000000,2205000000000000000000000000,22860000000000000000000000000,236700000000000000000000000000 mov $3,2 mov $5,$0 lpb $3 sub $3,1 add $0,$3 sub $0,1 mov $2,$3 mov $4,$0 max $4,0 seq $4,81045 ; 10th binomial transform of (1,9,0,0,0,0,0,.....). mul $2,$4 add $1,$2 mov $6,$4 lpe min $5,1 mul $5,$6 sub $1,$5 mov $0,$1
38.391304
482
0.782559
a002c0639234c42c2a9909bf48efe13eefc28e5f
652
asm
Assembly
libsrc/target/z9001/stdio/ansi/f_ansi_cls.asm
dikdom/z88dk
40c55771062b0ea9bb2f0d5b73e2f754fc12b6b0
[ "ClArtistic" ]
1
2022-03-08T11:55:58.000Z
2022-03-08T11:55:58.000Z
libsrc/target/z9001/stdio/ansi/f_ansi_cls.asm
dikdom/z88dk
40c55771062b0ea9bb2f0d5b73e2f754fc12b6b0
[ "ClArtistic" ]
2
2022-03-20T22:17:35.000Z
2022-03-24T16:10:00.000Z
libsrc/target/z9001/stdio/ansi/f_ansi_cls.asm
jorgegv/z88dk
127130cf11f9ff268ba53e308138b12d2b9be90a
[ "ClArtistic" ]
null
null
null
; ; ANSI Video handling for the Robotron Z9001 ; ; Stefano Bodrato - Sept. 2016 ; ; ; CLS - Clear the screen ; ; ; ; $Id: f_ansi_cls.asm,v 1.1 2016-09-23 06:21:35 stefano Exp $ ; SECTION code_clib PUBLIC ansi_cls EXTERN KRT_DISABLE EXTERN KRT_PORT EXTERN __z9001_attr .ansi_cls ld a,KRT_DISABLE out (KRT_PORT),a ld hl,$EC00 ld (hl),32 ;' ' ld d,h ld e,l inc de ld bc,40*24 - 1 ldir ld hl,$EC00 - 1024 ld a,(__z9001_attr) ld (hl),a ld d,h ld e,l inc de ld bc,40 * 24 - 1 ldir ret
16.3
61
0.507669
c60bba4a36fc20742f68b28c428d27e549811afd
7,820
asm
Assembly
reference_asm/battle_menu_layout.asm
tashiww/maten_tools
efaf43958639edfdcd342615f4c23ccba35d80ce
[ "MIT" ]
1
2021-05-14T19:14:38.000Z
2021-05-14T19:14:38.000Z
reference_asm/battle_menu_layout.asm
tashiww/maten_tools
efaf43958639edfdcd342615f4c23ccba35d80ce
[ "MIT" ]
null
null
null
reference_asm/battle_menu_layout.asm
tashiww/maten_tools
efaf43958639edfdcd342615f4c23ccba35d80ce
[ "MIT" ]
null
null
null
; ######################################################################################## ; # Generated by the active disassembly feature of the Exodus emulation platform ; # ; # Battle menu adjustments! ; # ; # Creation Date: 2021-1-3 14:24:36 ; # Analysis Region: 0x0000D894 - 0x0000DAFE ; ######################################################################################## window_tile_width equr d2 ; for window drawing routines window_tile_height equr d3 ; org $0000D894 MOVEM.l D4/D3/D2/D1/D0, -(A7) MOVEQ #2, D4 BRA.b recolor_window_border MOVEM.l D4/D3/D2/D1/D0, -(A7) MOVEQ #1, D4 BRA.b recolor_window_border MOVEM.l D4/D3/D2/D1/D0, -(A7) CLR.w D4 recolor_window_border: LSL.w #2, D2 MOVE.w loc_0000D928(PC,D2.w), D0 MOVE.w loc_0000D92A(PC,D2.w), D1 MOVEQ #8, D2 MOVEQ #5, D3 JSR $00003252 ; recolors window border somehow ... register values 1, 3, 8, 5 == red? but also white ?? MOVEM.l (A7)+, D0/D1/D2/D3/D4 RTS loc_0000D8C4: dc.b $FF, $FF, $E2, $00, $E2, $01, $E2, $02, $E5, $2F ;0x0 (0x0000D8C4-0x0000D8CE, Entry count: 0xA) [Unknown data] dc.w $0002 dc.b $E2, $07, $E2, $00, $E5, $2F, $E5, $2F ;0x0 (0x0000D8D0-0x0000D8D8, Entry count: 0x8) [Unknown data] dc.w $0001 dc.b $E2, $05, $E2, $06, $E5, $2F, $E5, $2F ;0x0 (0x0000D8DA-0x0000D8E2, Entry count: 0x8) [Unknown data] dc.w $000C dc.b $E2, $13, $E2, $14, $E2, $15, $E2, $03 ;0x0 (0x0000D8E4-0x0000D8EC, Entry count: 0x8) [Unknown data] dc.w $000D dc.b $E2, $13, $E2, $14, $E2, $15, $E2, $03 ;0x0 (0x0000D8EE-0x0000D8F6, Entry count: 0x8) [Unknown data] dc.w $0005 dc.b $E2, $0F, $E2, $10, $E2, $11, $E5, $2F ;0x0 (0x0000D8F8-0x0000D900, Entry count: 0x8) [Unknown data] dc.w $0004 dc.b $E2, $0A, $E2, $0B, $E2, $0C, $E2, $0B ;0x0 (0x0000D902-0x0000D90A, Entry count: 0x8) [Unknown data] dc.w $0006 dc.b $E2, $08, $E2, $0D, $E2, $02, $E2, $0E ;0x0 (0x0000D90C-0x0000D914, Entry count: 0x8) [Unknown data] dc.w $0003 dc.b $E2, $12, $E2, $02, $E2, $12, $E2, $04 ;0x0 (0x0000D916-0x0000D91E, Entry count: 0x8) [Unknown data] dc.w $0000 dc.b $E2, $03, $E2, $04, $E5, $2F, $E5, $2F ;0x0 (0x0000D920-0x0000D928, Entry count: 0x8) [Unknown data] loc_0000D928: dc.w $0001 loc_0000D92A: dc.w $0003 dc.b $00, $1F, $00, $03, $00, $01, $00, $09, $00, $1F, $00, $09, $00, $01, $00, $0F, $00, $1F, $00, $0F ;0x0 (0x0000D92C-0x0000D940, Entry count: 0x14) [Unknown data] loc_0000D940: dc.b $3F, $3F, $3F, $3F, $3F, $3F, $3F, $00 ;0x0 (0x0000D940-0x0000D948, Entry count: 0x8) [Unknown data] loc_0000D948: dc.b $28, $30, $00, $00 ;0x0 (0x0000D948-0x0000D94C, Entry count: 0x4) [Unknown data] loc_0000D94C: dc.b $2D, $30, $00, $00 ;0x0 (0x0000D94C-0x0000D950, Entry count: 0x4) [Unknown data] org $d950 MOVEM.l A6/A1/A0/D7/D6/D5/D4/D3/D2/D1/D0, -(A7) MOVE.w D2, D7 MULU.w #$0030, D7 MOVEA.l $00FFDAB8, A6 ; stores pointers to ram offsets for enemy/players? ADDA.l D7, A6 TST.b (A6) BEQ.w loc_0000DA38 MOVE.w D2, D7 LSL.w #2, D7 MOVE.w loc_0000D928(PC,D7.w), D6 MOVE.w loc_0000D92A(PC,D7.w), D7 MOVE.w D6, D0 MOVE.w D7, D1 BTST.l #0, D2 BEQ.b loc_0000D980 ADDQ.w #1, D0 ;Predicted (Code-scan) loc_0000D980: LEA loc_0000D940(PC), A0 ; loads blank spaces to clear npc name JSR write_label_8x8 ; write_label_8x8 MOVE.w D6, x_tile_offset MOVE.w D7, y_tile_offset MOVEQ #8, window_tile_width MOVEQ #5, window_tile_height MOVEQ #3, D4 JSR draw_small_window ADDQ.w #1, D6 MOVEA.l $20(A6), A0 ; party member name string location JSR $0000352A ; nothing seemed to happen? MOVEQ #6, y_tile_offset SUB.w D0, y_tile_offset LSR.w #1, y_tile_offset MOVE.w D6, x_tile_offset ADD.w D1, x_tile_offset MOVE.w D7, y_tile_offset ; all of this fiddling is probably to set up having multiple party members JSR write_label_8x8 MOVE.w D6, x_tile_offset MOVE.w D7, y_tile_offset LEA loc_0000D948(PC), A0 ; HP ADDQ.w #2, y_tile_offset JSR draw_label_8x8 LEA loc_0000D94C(PC), A0 ; MP ADDQ.w #1, y_tile_offset JSR draw_label_8x8 MOVE.w D6, x_tile_offset ADDQ.w #1, x_tile_offset MOVE.w D7, y_tile_offset ADDQ.w #1, y_tile_offset LEA loc_0000D8C4(PC), A1 TST.w $2(A6) ; check for 0hp lol BEQ.b special_status_printer MOVE.w $16(A6), D3 ; load status effects? $34c8+$16 = $34de MOVEQ #8, D4 check_for_status_effects: ADDQ.l #8, A1 ; skip past シボウ ADDQ.l #2, A1 ; and there was an initial FF for some reason.. maybe the bit to check MOVE.w (A1), D5 ; bit to check for status BTST.l D5, D3 ; maaybe checking status effects? BNE.b special_status_printer DBF D4, check_for_status_effects ; there are 8 of them?! BRA.b print_hp_mp_vals special_status_printer: ADDQ.l #2, A1 MOVEQ #3, D3 ; only write 4 letters (works for シボウ and dead... MOVEA.w #$C000, A0 draw_status_effect: ; i probably want to bypass this special routine entirely and just use the normal write_label_8x8 routine MOVE.w (A1)+, D2 ; $e200 for シ dead? $e201 for ボ how did they get the dakuten attached? wow at vram $4000, block $100 it has an extra alphabet for status effects JSR write_to_vdp ADDQ.w #1, x_tile_offset DBF D3, draw_status_effect ; draw 4 letters ; if no status effects, perhaps? print_hp_mp_vals: MOVE.w D6, x_tile_offset ADDQ.w #2, x_tile_offset MOVE.w D7, y_tile_offset ADDQ.w #2, y_tile_offset CLR.l D2 MOVE.w $2(A6), D2 ; current hp MOVEQ #4, D3 ; digit padding? mysterious JSR draw_value_8x8 ADDQ.w #1, y_tile_offset CLR.l D2 MOVE.w $6(A6), D2 ; max hp MOVEQ #4, D3 JSR draw_value_8x8 loc_0000DA38: MOVEM.l (A7)+, D0/D1/D2/D3/D4/D5/D6/D7/A0/A1/A6 RTS ; returned way back to $14b0c? that's some deep code... MOVEM.l A6/A5/A0/D7/D6/D5/D4/D3/D2/D1/D0, -(A7) MOVEA.l $00FFDAB4, A6 MOVEA.l A6, A5 ADDA.w #$01B0, A5 CLR.l (A5) CLR.l $4(A5) CLR.l $8(A5) MOVEQ #8, D7 loc_0000DA5A: MOVE.w (A6), D0 BEQ.b loc_0000DA80 TST.w $2(A6) BEQ.b loc_0000DA80 MOVEQ #2, D6 CLR.w D5 loc_0000DA68: MOVE.w (A5,D5.w), D1 BEQ.b loc_0000DA78 CMP.w D1, D0 BEQ.b loc_0000DA78 ADDQ.w #4, D5 ;Predicted (Code-scan) DBF D6, loc_0000DA68 ;Predicted (Code-scan) loc_0000DA78: MOVE.w D0, (A5,D5.w) ADDQ.w #1, $2(A5,D5.w) loc_0000DA80: ADDA.w #$0030, A6 DBF D7, loc_0000DA5A MOVEQ #2, D6 MOVEQ #2, D7 CLR.w D5 ; $da8e originally draw_enemy_window: TST.w (A5,D5.w) ; check if enemy id is set BEQ.b erase_dead_window ; if no more enemies... MOVE.w D7, x_tile_offset MOVEQ #$00000014, y_tile_offset MOVEQ #$0000000C, window_tile_width MOVEQ #4, D3 MOVEQ #3, D4 JSR draw_small_window ; i think we're getting enemy name here? MOVE.w (A5,D5.w), D2 ; enemy id CMPI.w #7, D2 ; check for enemy arnas! when you have to fight him :> BNE.b regular_enemy_branch MOVEQ #1, D2 ;Predicted (Code-scan) JSR $0000A1DC ;Predicted (Code-scan) ; must get npc name string from npc id BRA.b draw_enemy_label ;Predicted (Code-scan) regular_enemy_branch: BSR.w $db5c ; get enemy name draw_enemy_label: ADDQ.w #1, x_tile_offset ADDQ.w #2, y_tile_offset ; two rows, in case of dakutens JSR write_label_8x8 ; writes enemy name CLR.l D2 MOVE.w $2(A5,D5.w), D2 ; quantity of current enemy ADDI.w #9, x_tile_offset ; scoot over 9 (right edge of window) MOVEQ #1, D3 ; digits? offsets the number further to the right... JSR draw_value_8x8 ; draw # of current enemy BRA.b increment_window_position erase_dead_window: MOVE.w D7, D0 MOVEQ #$00000014, y_tile_offset MOVEQ #$0000000C, window_tile_width MOVEQ #4, D3 CLR.w D4 JSR $00001CFE ; probably draws something to vram ? seems to blank the next window spot, in case the monster died increment_window_position: ADDI.w #$000C, D7 ; becomes x offset on later loops ADDQ.w #4, D5 ; enemy ids are 4 bytes apart, hence $4 DBF D6, draw_enemy_window ; loop until all enemy windows are displayed, starts at 3 somewhere MOVEM.l (A7)+, D0/D1/D2/D3/D4/D5/D6/D7/A0/A5/A6 RTS ; returns to drawing the command selection menu
33.135593
167
0.67954
6842a368a002ebe54adc5002af8f6965fb097909
676
asm
Assembly
programs/oeis/050/A050493.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/050/A050493.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/050/A050493.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A050493: a(n) = sum of binary digits of n-th triangular number. ; 0,1,2,2,2,4,3,3,2,4,5,2,4,5,4,4,2,4,5,6,4,6,7,3,4,4,7,6,5,6,5,5,2,4,5,6,5,8,6,4,5,7,6,6,8,4,5,4,4,5,8,6,5,7,7,3,6,7,8,7,6,7,6,6,2,4,5,6,5,8,7,8,4,6,8,5,8,9,4,5,5,8,7,8,8,7,8,8,7,8,12,5,6,5,6,5,4,5,8,7,8,7,5,7,6,9,7,6,10,9,9,4,6,6,8,6,5,10,9,8,7,8,9,8,7,8,7,7,2,4,5,6,5,8,7,8,5,8,9,4,7,8,8,5,5,7,9,9,6,9,8,7,8,6,10,9,10,7,5,6,5,8,8,7,8,11,7,8,9,7,8,8,8,9,10,6,8,8,10,11,9,6,5,5,7,7,10,6,7,6,7,6,4,5,8,7,8,8,9,9,6,9,6,6,8,9,7,5,7,9,8,10,6,7,10,8,8,8,11,8,11,11,6,5,6,7,7,7,10,11,9,7,7,10,10,7,10,9,9,4,8,9,10,10,7,11,10,9,8,9 mov $2,$0 pow $2,2 add $2,$0 mov $0,$2 lpb $2 div $2,2 sub $0,$2 lpe mov $1,$0
52
525
0.536982
0e7202bb731814eb1b4424a450a7ecd8dbb8d126
771
asm
Assembly
src/jstd/udiv128.asm
shines77/ArrayRotate
93c99ae530997c0c3aec0b6f3585ddc3ac261fb2
[ "MIT" ]
null
null
null
src/jstd/udiv128.asm
shines77/ArrayRotate
93c99ae530997c0c3aec0b6f3585ddc3ac261fb2
[ "MIT" ]
null
null
null
src/jstd/udiv128.asm
shines77/ArrayRotate
93c99ae530997c0c3aec0b6f3585ddc3ac261fb2
[ "MIT" ]
null
null
null
; ; From: https://stackoverflow.com/questions/8453146/128-bit-division-intrinsic-in-visual-c ; ; extern "C" uint64_t __udiv128(uint64_t low, uint64_t high, uint64_t divisor, uint64_t * remainder); ; ; Arguments ; RCX Low Digit ; RDX High Digit ; R8 Divisor ; R9 *Remainder ; RAX Quotient upon return .code __udiv128 proc mov rax, rcx ; Put the low digit in place (hi is already there) div r8 ; 128 bit divide rdx-rax/r8 = rdx remainder, rax quotient mov [r9], rdx ; Save the reminder ret ; Return the quotient __udiv128 endp end ; ; NASM: C:\usr\bin\NASM\nasm.exe -f win32 -o $(OutputPath)__udiv128.obj $(SolutionDir)src\jstd\udiv128.asm ; ; https://www.cs.uaf.edu/2009/fall/cs301/nasm_vcpp/ ;
27.535714
106
0.664073
ab0e6be39b1f31c3905964ca2eb7c9da101c410c
4,561
asm
Assembly
kernel/arch/x86/asm/interrupt_stubs.asm
DevilGladiator/XeonOS
cfd928a75fca527156c19e95b9cca1503eba41bb
[ "MIT" ]
2
2021-09-13T14:10:40.000Z
2021-09-24T11:41:59.000Z
kernel/arch/x86/asm/interrupt_stubs.asm
ManuelAngel99/XeonOS
cfd928a75fca527156c19e95b9cca1503eba41bb
[ "MIT" ]
null
null
null
kernel/arch/x86/asm/interrupt_stubs.asm
ManuelAngel99/XeonOS
cfd928a75fca527156c19e95b9cca1503eba41bb
[ "MIT" ]
null
null
null
; ; Author: Manuel Ángel Suárez Álvarez ; E-mail Manuel_Angel99@outlook.com ; Created: 2016-08-13 20:54:25 ; ; File: interrupt_stubs.asm ; Description: Defines the interrupt stubs ; section .text extern exception_handler ; interrupt_handler is defined elsewhere extern irq_handler ; irq handler is defined elsewhere global common_interrupt_handler common_interrupt_handler: ; All the interrupt handlers will have this in common pusha ; Pushes EDI, ESI, EBP, ESP, EBX, EDX, ECX and EAX mov ax, ds ; Set AX to the current data segment descriptor push eax ; Save the data segment descriptor on the stack mov ax, 0x10 ; Give the CPU the kernel’s clean data segment descriptor mov ds, ax mov es, ax mov fs, ax mov gs, ax call exception_handler hlt pop eax ; Get the orginal data segment descriptor back mov ds, ax mov es, ax mov fs, ax mov gs, ax popa ; Pops EDI, ESI, EBP, ESP, EBX, EDX, ECX, EAX add esp, 8 ; Get rid of the pushed error code and interrupt vector sti ; Re-enable interrupts iret ; Tidy up the stack, ready for the next interrupt global common_irq_handler common_irq_handler: pusha ; Pushes EDI, ESI, EBP, ESP, EBX, EDX, ECX, EAX mov ax, ds ; Set AX to the current data segment descriptor push eax ; Save the data segment descriptor on the stack mov ax, 0x10 ; Give the CPU the kernel’s clean data segment descriptor mov ds, ax mov es, ax mov fs, ax mov gs, ax call irq_handler pop eax ; Get the original data segment descriptor back mov ds, ax mov es, ax mov fs, ax mov gs, ax popa ; Pops EDI, ESI, EBP, ESP, EBX, EDX, ECX, EAX add esp, 8 ; Get rid of the pushed error code and interrupt vector sti ; Re-enable interrupts iret ; Tidy up the stack, ready for the next interrupt ; --------------------------------> INTERRUPT AND IRQ MACROS <--------------------------------------------- %macro error_code_interrupt_handler 1 global interrupt_handler_%1 interrupt_handler_%1: cli ; Clear interrupts push %1 ; Push the interrupt number jmp common_interrupt_handler ; Jump to the generic handler %endmacro %macro no_error_code_interrupt_handler 1 global interrupt_handler_%1 interrupt_handler_%1: push dword 0 ; push 0 as error code push %1 ; push the interrupt number jmp common_interrupt_handler ; jump to the common handler %endmacro %macro irq 1 global irq_handler_%1: irq_handler_%1: cli ; clears interrupts push dword 0 ; push %1 ; jmp common_irq_handler %endmacro ; ---------------------------------> MACRO CALLS <------------------------------------------- ; Some CPU exceptions have error codes, some don't %assign intnum 0 %rep 8 - intnum no_error_code_interrupt_handler intnum %assign intnum intnum + 1 %endrep error_code_interrupt_handler 8 no_error_code_interrupt_handler 9 %assign intnum 10 %rep 16 - intnum error_code_interrupt_handler intnum %assign intnum intnum + 1 %endrep no_error_code_interrupt_handler 16 error_code_interrupt_handler 17 no_error_code_interrupt_handler 18 no_error_code_interrupt_handler 19 no_error_code_interrupt_handler 20 %assign intnum 21 ; first (currently) unassigned CPU exception %rep 32 - intnum no_error_code_interrupt_handler intnum %assign intnum intnum + 1 %endrep %assign intnum 32 ; irq interrupts %rep 255 - intnum irq intnum %assign intnum intnum + 1 %endrep ; ; -------------> Define a table of interrupt handlers for C code to use <--------------- ; global interrupt_handler_table interrupt_handler_table: %assign intnum 0 %rep 32 dd interrupt_handler_ %+ intnum ; Write the interrupt_handler_X address to the binary %assign intnum intnum + 1 %endrep %rep 255 - intnum dd irq_handler_%+ intnum ; Write the irq_handler_X address to the binart %assign intnum intnum + 1 %endrep
29.616883
107
0.597457
767ea783d7323ba75f58618d2ecc600bedc4e947
1,987
asm
Assembly
libraries/kernel/stack.asm
paulscottrobson/cerberus-2080
c6731eab1b77d818bd22480554dd231cb28e2cf0
[ "MIT" ]
1
2022-01-09T15:19:28.000Z
2022-01-09T15:19:28.000Z
m8cc/libraries/kernel/stack.asm
paulscottrobson/cerberus-2080
c6731eab1b77d818bd22480554dd231cb28e2cf0
[ "MIT" ]
1
2021-12-11T07:08:54.000Z
2021-12-11T19:07:19.000Z
m8cc/libraries/kernel/stack.asm
paulscottrobson/cerberus-2080
c6731eab1b77d818bd22480554dd231cb28e2cf0
[ "MIT" ]
1
2021-12-12T14:20:32.000Z
2021-12-12T14:20:32.000Z
; *************************************************************************************** ; *************************************************************************************** ; ; Name : stack.asm ; Author : Paul Robson (paul@robsons.org.uk) ; Date : 31st October 2021 ; Purpose : Stack words ; ; *************************************************************************************** ; *************************************************************************************** ;; [MACRO] push push hl ;; [END] ;; [MACRO] pop ex de,hl pop hl ;; [END] ; *************************************************************************************** ;; [MACRO] a>r push hl ;; [END] ;; [MACRO] r>a pop hl ;; [END] ; *************************************************************************************** ;; [MACRO] b>r push de ;; [END] ;; [MACRO] r>b pop de ;; [END] ; *************************************************************************************** ;; [MACRO] c>r push bc ;; [END] ;; [MACRO] r>c pop bc ;; [END] ; *************************************************************************************** ;; [MACRO] ab>r push de push hl ;; [END] ;; [MACRO] r>ab pop hl pop de ;; [END] ; *************************************************************************************** ;; [MACRO] abc>r push bc push de push hl ;; [END] ;; [MACRO] r>abc pop hl pop de pop bc ;; [END] ; *************************************************************************************** ;; [MACRO] bc>r push bc push de ;; [END] ;; [MACRO] r>bc pop de pop bc ;; [END] ; *************************************************************************************** ;; [MACRO] x>r push ix ;; [END] ;; [MACRO] r>x pop ix ;; [END] ; *************************************************************************************** ;; [MACRO] y>r push iy ;; [END] ;; [MACRO] r>y pop iy ;; [END]
18.063636
89
0.211374
f82aeec49ac9e5317f8ffb3163adfb4061def76d
426
asm
Assembly
WEEK-12/1.asm
ShruKin/Microprocessor-and-Microcontroller-Lab
279c1432f0dee01fae37dc8fcb1dcb798e5725d8
[ "MIT" ]
null
null
null
WEEK-12/1.asm
ShruKin/Microprocessor-and-Microcontroller-Lab
279c1432f0dee01fae37dc8fcb1dcb798e5725d8
[ "MIT" ]
null
null
null
WEEK-12/1.asm
ShruKin/Microprocessor-and-Microcontroller-Lab
279c1432f0dee01fae37dc8fcb1dcb798e5725d8
[ "MIT" ]
null
null
null
MOV R0, #20H;set source address 20H to R0 MOV R1, #30H;set destination address 30H to R1 MOV A, @R0;take the first operand from source to register A INC R0; Point to the next location MOV B, @R0; take the second operand from source to register B DIV AB ; Divide A by B MOV @R1, A; Store Quotient to 30H INC R1; Increase R1 to point to the next location MOV @R1, B; Store Remainder to 31H HALT: SJMP HALT ;Stop the program
32.769231
61
0.741784
9a470ebe93d17f85d077cc8c4a1fe1b3b0da230f
7,343
asm
Assembly
src/fx/logoanim.asm
bitshifters/teletextr
1bbf9ae4ca8a9c9601be3fe3fff2ed151814e615
[ "MIT" ]
8
2016-12-26T19:33:13.000Z
2021-02-19T21:01:07.000Z
src/fx/logoanim.asm
bitshifters/teletextr
1bbf9ae4ca8a9c9601be3fe3fff2ed151814e615
[ "MIT" ]
9
2016-11-25T00:58:44.000Z
2017-06-26T15:22:10.000Z
src/fx/logoanim.asm
bitshifters/teletextr
1bbf9ae4ca8a9c9601be3fe3fff2ed151814e615
[ "MIT" ]
null
null
null
; animated logo ; using b&w bitshifters frame by @horsenburger for Bad Apple \\ Letter positions (columns) \\ b [2-4] \\ i [5-6] \\ t [7-10] \\ s [11-13] \\ h [14-17] \\ i [18-19] \\ f [20-22] \\ t [23-26] \\ e [27-30] \\ r [31-33] \\ s [34-36] \\ Ascender/descender positions (columns) \\ b [2-3] up - 0x20, 0x6a \\ t [8-9] up - 0x20, 0x6a \\ h [14-15] up - 0x35, 0x20 \\ t [24-25] up - 0x35, 0x20 \\ i [5-6] down - 0x35, 0x20 \\ h [17] down - 0x6a, 0x00 \\ i [18-19] down - 0x20, 0x6a \\ f [20-21] down - 0x35, 0x20 \\ r [31-32] down - 0x20, 0x6a \\ Main logo is 5x rows, so centred at (0,10) with 10 rows above & below \\ Ideally want to be able to set each ascender/descender to 0-30 sixels independently \\ So can animate over time. Could also animate the logo .start_fx_logoanim LOGOANIM_shadow_addr = MODE7_VRAM_SHADOW LOGOANIM_draw_addr = LOGOANIM_shadow_addr + 10 * MODE7_char_width LOGOANIM_logo_rows = 5 LOGOANIM_logo_size = LOGOANIM_logo_rows * MODE7_char_width LOGOANIM_draw_end = LOGOANIM_draw_addr + LOGOANIM_logo_size LOGOANIM_num_columns = 9 LOGOANIM_num_sixel_rows = 30 LOGOANIM_num_char_rows = 10 MODE7_solid_block = &7F \ ****************************************************************** \ * Runtime vars \ ****************************************************************** .fx_logoanim_ypos EQUB 30, 25, 20, 15, 10, 15, 20, 25, 30 .fx_logoanim_dir EQUB -1, -1, -1, -1, -1, -1, -1, -1, -1 .fx_logoanim_first_byte EQUB 0 .fx_logoanim_second_byte EQUB 0 .fx_logoanim_num_rows EQUB 0 .fx_logoanim_sixel_mask EQUB 0 .fx_logoanim_row_step EQUW 0 \ ****************************************************************** \ * Code \ ****************************************************************** .fx_logoanim_init { \\ Clear screen to solid blocks LDA #&7F JSR mode7_clear_shadow_fast \\ Set graphics white lda #144+7 JSR mode7_set_graphics_shadow_fast \\ Copy logo in place LDX #LOGOANIM_logo_size-1 .loop LDA fx_logoanim_data, X STA LOGOANIM_draw_addr, X DEX BNE loop LDA fx_logoanim_data, X STA LOGOANIM_draw_addr, X \\ Annoyingly blank right edge for symmetry LDA #32 LDX #39 JSR mode7_set_column_shadow_fast .return RTS } .fx_logoanim_update { \\ Update our y positions (could be more interesting than this) LDX #0 .loop CLC LDA fx_logoanim_ypos, X ADC fx_logoanim_dir, X BMI clip_low ; clip hi CMP #LOGOANIM_num_sixel_rows ; max BCC ok CLC LDA fx_logoanim_dir, X EOR #&FF ADC #1 STA fx_logoanim_dir, X LDA #LOGOANIM_num_sixel_rows BNE ok .clip_low CLC LDA fx_logoanim_dir, X EOR #&FF ADC #1 STA fx_logoanim_dir, X LDA #0 .ok STA fx_logoanim_ypos, X INX CPX #LOGOANIM_num_columns BNE loop \\ Update our screen JSR fx_logoanim_draw .return RTS } .fx_logoanim_draw { \\ Top columns drawn top down LDA #LO(MODE7_char_width) STA fx_logoanim_row_step LDA #HI(MODE7_char_width) STA fx_logoanim_row_step+1 \\ First 4 are top LDX #0 .top_loop LDA fx_logoanim_addr_LO, X STA writeptr LDA fx_logoanim_addr_HI, X STA writeptr+1 LDA fx_logoanim_first_bytes, X STA fx_logoanim_first_byte LDA fx_logoanim_second_bytes, X STA fx_logoanim_second_byte LDY fx_logoanim_ypos, X LDA mode7_sprites_div3_table, Y STA fx_logoanim_num_rows LDA mode7_sprites_mod3_table, Y LSR A:TAY ; this table is shifted LDA fx_logoanim_sixel_mask_top, Y ; need to switch this STA fx_logoanim_sixel_mask STX top_loop_index+1 JSR fx_logoanim_draw_col .top_loop_index LDX #0 INX CPX #4 BCC top_loop \\ Bottom columns drawn bottom up LDA #LO(0-MODE7_char_width) STA fx_logoanim_row_step LDA #HI(0-MODE7_char_width) STA fx_logoanim_row_step+1 \\ Last 5 are bottom .bottom_loop LDA fx_logoanim_addr_LO, X STA writeptr LDA fx_logoanim_addr_HI, X STA writeptr+1 LDA fx_logoanim_first_bytes, X STA fx_logoanim_first_byte LDA fx_logoanim_second_bytes, X STA fx_logoanim_second_byte LDY fx_logoanim_ypos, X LDA mode7_sprites_div3_table, Y STA fx_logoanim_num_rows LDA mode7_sprites_mod3_table, Y LSR A:TAY ; this table is shifted LDA fx_logoanim_sixel_mask_bot, Y ; need to switch this STA fx_logoanim_sixel_mask STX bot_loop_index+1 JSR fx_logoanim_draw_col .bot_loop_index LDX #0 INX CPX #LOGOANIM_num_columns BCC bottom_loop .return RTS } .fx_logoanim_draw_col { LDX #0 LDY #0 \\ Draw N solid blocks .solid_loop CPX fx_logoanim_num_rows BCS done_solid_loop LDA #MODE7_solid_block STA (writeptr), Y LDA fx_logoanim_second_byte BEQ skip_solid ORA #MODE7_solid_block INY STA (writeptr), Y DEY .skip_solid INX \\ Next character row CLC LDA writeptr ADC fx_logoanim_row_step STA writeptr LDA writeptr+1 ADC fx_logoanim_row_step+1 STA writeptr+1 BNE solid_loop .done_solid_loop \\ Middle bit! CPX #LOGOANIM_num_char_rows BCS done_middle_bit LDA fx_logoanim_sixel_mask BEQ done_middle_bit ; no sixel mask needed \\ Mask draw byte against sixel mask for row ORA fx_logoanim_first_byte STA (writeptr), Y \\ Is there a second byte? LDA fx_logoanim_second_byte BEQ skip_middle \\ Mask this as well ORA fx_logoanim_sixel_mask INY STA (writeptr), Y DEY .skip_middle INX \\ Next character row CLC LDA writeptr ADC fx_logoanim_row_step STA writeptr LDA writeptr+1 ADC fx_logoanim_row_step+1 STA writeptr+1 .done_middle_bit \\ Draw 10-N bytes .byte_loop CPX #LOGOANIM_num_char_rows BCS done_byte_loop LDA fx_logoanim_first_byte STA (writeptr), Y LDA fx_logoanim_second_byte BEQ skip_write INY STA (writeptr), Y DEY .skip_write INX \\ Next character row CLC LDA writeptr ADC fx_logoanim_row_step STA writeptr LDA writeptr+1 ADC fx_logoanim_row_step+1 STA writeptr+1 BNE byte_loop .done_byte_loop .return RTS } \ ****************************************************************** \ * Look up tables \ ****************************************************************** .fx_logoanim_sixel_mask_top EQUB &0, 1+2, 1+2+4+8 .fx_logoanim_sixel_mask_bot EQUB &0, 16+64, 16+64+4+8 .fx_logoanim_addr_LO EQUB LO(LOGOANIM_shadow_addr + 2) EQUB LO(LOGOANIM_shadow_addr + 8) EQUB LO(LOGOANIM_shadow_addr + 14) EQUB LO(LOGOANIM_shadow_addr + 24) EQUB LO(LOGOANIM_shadow_addr + 5 + 24 * MODE7_char_width) EQUB LO(LOGOANIM_shadow_addr + 17 + 24 * MODE7_char_width) EQUB LO(LOGOANIM_shadow_addr + 18 + 24 * MODE7_char_width) EQUB LO(LOGOANIM_shadow_addr + 20 + 24 * MODE7_char_width) EQUB LO(LOGOANIM_shadow_addr + 31 + 24 * MODE7_char_width) .fx_logoanim_addr_HI EQUB HI(LOGOANIM_shadow_addr + 2) EQUB HI(LOGOANIM_shadow_addr + 8) EQUB HI(LOGOANIM_shadow_addr + 14) EQUB HI(LOGOANIM_shadow_addr + 24) EQUB HI(LOGOANIM_shadow_addr + 5 + 24 * MODE7_char_width) EQUB HI(LOGOANIM_shadow_addr + 17 + 24 * MODE7_char_width) EQUB HI(LOGOANIM_shadow_addr + 18 + 24 * MODE7_char_width) EQUB HI(LOGOANIM_shadow_addr + 20 + 24 * MODE7_char_width) EQUB HI(LOGOANIM_shadow_addr + 31 + 24 * MODE7_char_width) .fx_logoanim_first_bytes EQUB &20, &20, &35, &35, &35, &6A, &20, &35, &20 .fx_logoanim_second_bytes EQUB &6A, &6A, &20, &20, &20, &00, &6A, &20, &6A \ ****************************************************************** \ * Sprite data \ ****************************************************************** .fx_logoanim_data INCBIN "data/pages/bslogo/bslogo.txt.bin" ; actually just 5x rows .end_fx_logoanim
19.686327
86
0.691271
aa49e74d59727b6fca857face40354ae164b87f5
1,700
asm
Assembly
programs/oeis/000/A000801.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/000/A000801.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/000/A000801.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A000801: Sum_{k = 1..n} floor(2^k / k). ; 2,4,6,10,16,26,44,76,132,234,420,761,1391,2561,4745,8841,16551,31114,58708,111136,211000,401650,766372,1465422,2807599,5388709,10359735,19946715,38459505,74250899,143524565,277742293,538043341,1043333611,2025040421,3933914774,7648481084,14882110214,28978413134,56466203828,110100917378,214816310499,419376613341,819199023441,1601073958748,3130829266958,6125243912816,11989305927621,23478080487239,45996078624091,90149016147331,176756701289071,346703857038901,680303829436715,1335372866145150,2622115616822434,5150452249732186,10119941493727216,19890462719208970,39105821129323086,76906526198400036,151288558753680486,297691289497407086,585921665649118830,1153513790994028110,2271498280309758510,4474094587618361688,8814504957902962068,17369516702232029484,34235111283909333818,67491213275949088844,133079636649138605700,262459540289402858130,517722593417491788600,1021441684923587278060,2015624102369828375680,3978166017328641970982,7852928259683222659142,15504357497750495916776,30615930242933360600603,60465950480331611827915,119437941681045230106265,235960912246310692728547,466232496934811487910675,921357511377966000741235,1821023237602806316801645,3599672719334674527863605,7116547830940868490645207,14071267152768847563112197,27826156478161961728658021,55033629869049440297869542,108857109837979017467396682,215346575582957965845815970,426059773759192906254177540,843050102781636788325461489,1668343462305223638258210971,3301913823424075959774581081,6535716375026701984000864768,12937992133755133304691284997,25614498136037427319658317050 mov $3,$0 add $3,1 lpb $3 add $2,1 sub $3,1 mov $4,2 pow $4,$2 div $4,$2 add $1,$4 lpe mov $0,$1
113.333333
1,547
0.894118
9b583cce673e3982233d28a951d509cff345535e
733
asm
Assembly
main.asm
Sagiri/mvitem
362dc6278818b7a5d2c17ec362d90fed9eddae44
[ "0BSD" ]
5
2019-09-06T07:32:24.000Z
2020-09-24T08:40:33.000Z
main.asm
Sagiri/mvitem
362dc6278818b7a5d2c17ec362d90fed9eddae44
[ "0BSD" ]
1
2020-09-18T22:47:38.000Z
2020-09-26T02:41:35.000Z
main.asm
Sagiri/mvitem
362dc6278818b7a5d2c17ec362d90fed9eddae44
[ "0BSD" ]
1
2019-09-21T15:18:30.000Z
2019-09-21T15:18:30.000Z
.gba .thumb .include "macros.s" .include "constants.s" .open "rom.gba", "test.gba", 0x08000000 .org allocation .area allocation_size .importobj "build/linked.o" .endarea // expanded ITEM menu window template .org sItemGiveTakeWindowTemplate window_template 0x02, 0x16, 0x0B, 0x07, 0x08, 0x0E, 0x373 .org sPartyMenuActionCounts + ACTIONS_ITEM * SIZEOF_U8 .byte 4 .org sPartyMenuActions + ACTIONS_ITEM * SIZEOF_PTR .word sPartyMenuAction_GiveTakeItemCancel .org sCursorOptions + MENU_MOVE_ITEM * SIZEOF_CURSOR_OPTION .word gMenuText_Move, CursorCb_MoveItem |1 .org sActionStringTable + PARTY_MSG_MOVE_ITEM_WHERE * 4 .word gText_MoveItemWhere .close .definelabel sCursorOptions, readu32("rom.gba", 0x08120F74 & 0x1FFFFFF)
22.212121
71
0.792633
2cf5e3eb146b13858fafd80d92a44b136f13843f
1,177
asm
Assembly
source/extension/extension.asm
paulscottrobson/6502-basic
d4c360041bfa49427a506465e58bb0ef94beaa44
[ "MIT" ]
3
2021-09-30T19:34:11.000Z
2021-10-31T06:55:50.000Z
source/extension/extension.asm
paulscottrobson/6502-Basic
d4c360041bfa49427a506465e58bb0ef94beaa44
[ "MIT" ]
null
null
null
source/extension/extension.asm
paulscottrobson/6502-Basic
d4c360041bfa49427a506465e58bb0ef94beaa44
[ "MIT" ]
1
2021-12-07T21:58:44.000Z
2021-12-07T21:58:44.000Z
; ; Automatically generated ; .include "extensionhandler.asm" .include "graphics/general.asm" .include "graphics/line.asm" .include "graphics/plot.asm" .include "graphics/rectframe.asm" .include "graphics/renderer.asm" .include "graphics/utils.asm" .include "option_x16/driver/coords.asm" .include "option_x16/driver/driver.asm" .include "option_x16/miscellany/clock.asm" .include "option_x16/miscellany/joystick.asm" .include "option_x16/sound/sndqueue.asm" .include "option_x16/sound/sndunary.asm" .include "option_x16/sound/sndutils.asm" .include "option_x16/sound/sound.asm" .include "option_x16/sound/soundsync.asm" .include "option_x16/sprites/collide.asm" .include "option_x16/sprites/sprite.asm" .include "option_x16/sprites/spritedraw.asm" .include "option_x16/sprites/spritemove.asm" .include "option_x16/sprites/spriteutils.asm" .include "option_x16/video/imagedef.asm" .include "option_x16/video/mode.asm" .include "option_x16/video/palette.asm" .include "option_x16/video/textdraw.asm" .include "option_x16/video/vload.asm" .include "option_x16/video/vpeekpoke.asm" .include "option_x16/video/vramprocess.asm" .section code .send code
33.628571
46
0.779949
59bd3b4a001ca77a500950d169de7f63f856b5c9
2,282
asm
Assembly
kernel/data.asm
paulscottrobson/flat
976644db7f52f04dae50dce43504ede9e97f695e
[ "MIT" ]
null
null
null
kernel/data.asm
paulscottrobson/flat
976644db7f52f04dae50dce43504ede9e97f695e
[ "MIT" ]
null
null
null
kernel/data.asm
paulscottrobson/flat
976644db7f52f04dae50dce43504ede9e97f695e
[ "MIT" ]
null
null
null
; *************************************************************************************** ; *************************************************************************************** ; ; Name : data.asm ; Author : Paul Robson (paul@robsons.org.uk) ; Date : 12th March 2019 ; Purpose : Data area ; ; *************************************************************************************** ; *************************************************************************************** __CLIWelcome: db "flat.code 190320",$00 ; *************************************************************************************** ; ; System Information ; ; *************************************************************************************** SystemInformation: Here: ; +0 Here dw FreeMemory HerePage: ; +2 Here.Page db FirstCodePage,0 NextFreePage: ; +4 Next available code page (2 8k pages/page) db FirstCodePage+2,0,0,0 DisplayInfo: ; +8 Display information dw DisplayInformation,0 BootAddress: ; +12 Boot Address dw BootDefault BootPage: ; +14 Boot Page db FirstCodePage,0 Parameter: ; +16 3rd Parameter dw 0,0 ; *************************************************************************************** ; ; Display system information ; ; *************************************************************************************** DisplayInformation: SIScreenWidth: ; +0 screen width db 0,0,0,0 SIScreenHeight: ; +4 screen height db 0,0,0,0 SIScreenSize: ; +8 char size of screen dw 0,0 SIScreenMode: ; +12 current mode db 0,0,0,0 SIFontBase: ; font in use dw AlternateFont SIScreenDriver: ; Screen Driver dw 0 ; *************************************************************************************** ; ; Other data and buffers ; ; *************************************************************************************** __PAGEStackPointer: ; stack used for switching pages dw 0 __PAGEStackBase: ds 16 __ARegister: ; register temp for command line dw 0 __BRegister: dw 0 dw 0 __CLIBuffer: ds 32 __CLICurrentKey: db 0
28.525
89
0.357143
6a45bee056c678034850cdcac3fbc884e55c7584
660
asm
Assembly
programs/oeis/081/A081631.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/081/A081631.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/081/A081631.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A081631: 2*2^n-(-2)^n. ; 1,6,4,24,16,96,64,384,256,1536,1024,6144,4096,24576,16384,98304,65536,393216,262144,1572864,1048576,6291456,4194304,25165824,16777216,100663296,67108864,402653184,268435456,1610612736,1073741824,6442450944,4294967296,25769803776,17179869184,103079215104,68719476736,412316860416,274877906944,1649267441664,1099511627776,6597069766656,4398046511104,26388279066624,17592186044416,105553116266496,70368744177664,422212465065984,281474976710656,1688849860263936,1125899906842624,6755399441055744,4503599627370496 mov $4,1 mov $5,3 lpb $0,1 sub $0,1 mov $2,$5 mul $2,2 mov $3,$4 mov $5,$4 mov $4,$2 add $5,$3 lpe add $1,$4
41.25
510
0.79697
08dd8bdf6562e13ce47f5615ee782f14c0c0ca4f
122
asm
Assembly
test/decoder/sete.asm
fotcorn/x86emu
3e7a24a275ffc81b6eb89ea5e5e7174458b912a2
[ "MIT" ]
18
2017-01-19T20:15:54.000Z
2021-10-04T04:26:03.000Z
test/decoder/sete.asm
fotcorn/x86emu
3e7a24a275ffc81b6eb89ea5e5e7174458b912a2
[ "MIT" ]
4
2017-04-09T23:36:30.000Z
2017-07-18T15:41:34.000Z
test/decoder/sete.asm
fotcorn/x86emu
3e7a24a275ffc81b6eb89ea5e5e7174458b912a2
[ "MIT" ]
3
2020-03-16T00:30:57.000Z
2020-09-28T03:36:04.000Z
.text .global _start _start: sete %dil sete %al sete %r8b sete -0x39(%rax) sete -0x39(%rsp) int $0x80
10.166667
18
0.581967
753711657b4be053981eb4457ef7c7dd02026764
1,208
asm
Assembly
programs/oeis/246/A246425.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/246/A246425.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/246/A246425.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A246425: In the Collatz 3x+1 problem: start at an odd number 2n+1 and find the next odd number 2m+1 in the trajectory; then a(n) = m-n. ; 0,1,-2,2,-1,3,-4,4,-2,5,-10,6,-3,7,-9,8,-4,9,-15,10,-5,11,-14,12,-6,13,-24,14,-7,15,-19,16,-8,17,-28,18,-9,19,-24,20,-10,21,-42,22,-11,23,-29,24,-12,25,-41,26,-13,27,-34,28,-14,29,-53,30,-15,31,-39,32,-16,33,-54,34,-17,35,-44,36,-18,37,-71,38,-19,39,-49,40,-20,41,-67,42,-21,43,-54,44,-22,45,-82,46,-23,47,-59,48,-24,49,-80,50,-25,51,-64,52,-26,53,-104,54,-27,55,-69,56,-28,57,-93,58,-29,59,-74,60,-30,61,-111,62,-31,63,-79,64,-32,65,-106,66,-33,67,-84,68,-34,69,-132,70,-35,71,-89,72,-36,73,-119,74,-37,75,-94,76,-38,77,-140,78,-39,79,-99,80,-40,81,-132,82,-41,83,-104,84,-42,85,-170,86,-43,87,-109,88,-44,89,-145,90,-45,91,-114,92,-46,93,-169,94,-47,95,-119,96,-48,97,-158,98,-49,99,-124,100,-50,101,-193,102,-51,103,-129,104,-52,105,-171,106,-53,107,-134,108,-54,109,-198,110,-55,111,-139,112,-56,113,-184,114,-57,115,-144,116,-58,117,-229,118,-59,119,-149,120,-60,121,-197,122,-61,123,-154,124,-62,125 mov $2,$0 cal $0,173732 ; a(n) = (A016957(n)/2^A007814(A016957(n)) - 1)/2, with A016957(n) = 6*n+4 and A007814(n) the 2-adic valuation of n. sub $0,$2 mov $1,$0
151
907
0.604305
4abb9e6e1cf804e7a92674e6640b24a52d77d808
21,176
asm
Assembly
v2_18g3.asm
dmtucker/battleshit
0d05840f1f95f26086993e55133028d045f75907
[ "BSD-3-Clause" ]
null
null
null
v2_18g3.asm
dmtucker/battleshit
0d05840f1f95f26086993e55133028d045f75907
[ "BSD-3-Clause" ]
null
null
null
v2_18g3.asm
dmtucker/battleshit
0d05840f1f95f26086993e55133028d045f75907
[ "BSD-3-Clause" ]
1
2021-04-25T17:02:37.000Z
2021-04-25T17:02:37.000Z
//version 2.18g3 revised 10-21-08 by Alexandra Holloway <fire@soe> // saving X in OUTSTRING //version 2.18g3 revised 05-20-02 by Stuart Norton <stuart@cse> // saving a,b,x,y registers in (non-simulator version of) OUTCHAR // saving y register in (non-simulator version of) GETCHAR // included CONSOLEINT and DUMPREGS (see below) // DUMPREGS updated to output CCR //version 2.17g2 revised on 5-9-1 by Robert Stone <talby@cats.ucsc.edu> // gasp was bad, cpp is a better preprocessor. It looks a little // strange, but gets errors reported in the right files on the right // lines. //version 2.17g revised on 4-25-01 by Robert Stone <talby@cats.ucsc.edu> // to GNU assembler syntax (mostly). Simulator support abandoned, // ifdefs remain for documentation purposes. //version 2.17 revised on 7-11-00 by alexandra carey <fire@cse.ucsc.edu> // to include LCDINT, a procedure that displays an int to LCD. //version 2.17 revised on 5-14-00 by CWM to avoid LCD_CMD data clobbering //version 2.17 revised on 5-12-00 by Cliff McIntire to remove CR at end of // OutString //version 2.17 revised on 2-29-00 by Corey Baker to avoid clobbering of data // // Startup Runtime Code for 12c 68hc11 Microcontroller Kit laboratory projects. // This code is needed when using either the simulator only, or when // producing files for download to the 12c trainer board. Sections are // conditionally assembled depending on whether the target is the simulator // or trainer board. // HISTORY: // //version 1.0 25 Feb 99 // First version to get students up and running with the development system // employing the simulator. It was not tested with the Trainer Board. // //version 2.0 8 Feb 99/scp // Modified to include the i/o UART procedures in the assembled user code. // Procedure Description // ------------- ---------------------------------------------------------- // GETCHAR Reads a single character from the SCI port. // OUTCRLF Write a carriage-return and line-feed out the SCI port. // OUTCHAR Write a character out the SCI port. // OUTSTRING Writes a null-terminated string out the SCI port // SETUPSCI Setup HC11 UART for 9600bps. // WAIT Software delay loop with 4.096ms resolution. // // //version 2.16 1 May 99/scp // Included device drivers to manage output to the LCD: // LCDLINE Writes a null-terminated string to the LCD // call with A = 1 --> line1 // A = 2 --> line2 // x = pointer to first character of string // LCD_CMD Writes to the LCD Command Register // LCD_CHAR Writes to the LCD Character Array (for display) // // //version 2.17 20 May 99/scp (search for "build 17:" to see changes) // Added support for user interrupts. Note that ver2.16 does not support // user hooks into the sram image table. Everything else is otherwise identical. // Several minor changes were made involving the simulator that were not flagged. // 2.17.1 4 June 99/scp // added cli to LCD_CMD and LCD_CHAR since interrupts are used in both. //************************************************************************** // The following should be the first line in your code when you want to run your // program from within the simulator: // $SET simulate // // When you are ready to download it to the 12c trainer board, the line should // read: // $SETNOT simulate // // Basic memory map: #undef SIMULATE // sorry, I can't test the simulator, so I'm dropping // support for now. -talby #define REGBASE 0x8000 // start of 68HC11's 64-byte register block. #define ROMBASE 0x8040 // start of ROM. #define RAMBASE 0x1000 // start of user RAM area. #define RAMTOP 0x7bc0 // top of user RAM area. //************************************************************************* // These equates define i/o devices (as hardware ports) implemented on the 12c // HC11 Trainer Board #define SWITCHES 0x7c00 // switches. #define LCD_CMD_REG 0x7c80 // lcd command. #define LCD_CHAR_REG 0x7c81 // lcd character. #define LEDS 0x7d00 // leds. #define DAC 0x7d80 // D/A. #define IOCS4 0x7e00 // io expansion port. #define IOCS5 0x7e80 // " #define IOCS6 0x7f00 // " #define IOCS7 0x7f80 // " #define NULL 0x00 // end of text/table. //build 17: #define CR '\r' // carriage return. #define LF '\n' // line feed. #define ESC 0x1b // escape character #define USER_ISR 0x7bc1 // base of user interrupt jump table. #define _GOCODE 0x8040 // beginning of user monitor code. // build 17: // Ram isr image table jump addresses. Note the table is ordinal and that some vectors // are not available to the user. These are used or reserved for the system and have not // been mapped from the corresponding ROM table. See Motorola documentation for discussion // of these vectors. // 1 unavailable to user SCI #define ISR_JUMP2 0x7bc5 // SPI #define ISR_JUMP3 0x7bc8 // Pulse Accumulator Input #define ISR_JUMP4 0x7bcb // Pulse Accumulator Overflow // 5 unavailable to user Timer Overflow // 6 unavailable to user Output Compare 5 #define ISR_JUMP7 0x7bd4 // Output Compare 4 #define ISR_JUMP8 0x7bd7 // Output Compare 3 #define ISR_JUMP9 0x7bda // Output Compare 2 #define ISR_JUMP10 0x7bde // Output Compare 1 #define ISR_JUMP11 0x7be3 // Input Capture 3 #define ISR_JUMP12 0x7be6 // Input Capture 2 #define ISR_JUMP13 0x7be9 // Input Capture 1 // 14 unavailable to user Real Time Interrupt #define ISR_JUMP15 0x7bec // IRQ // 16 unavailable to user XIRQ // 17 unavailable to user SWI // 18 unavailable to user Illegal Opcode #define ISR_JUMP19 0x7bf8 // Cop fail #define ISR_JUMP20 0x7bfb // Cop clock fail // 21 unavailable to user Reset (found at 0x8040) //************************************************************************* // Some of the internal 64 registers are defined here. Their definitions // should be self-evident from the Motorola manuals. #define BAUD REGBASE+0x2b // sci baud register #define SCCR1 REGBASE+0x2c // sci control1 register #define SCCR2 REGBASE+0x2d // sci control2 register #define SCSR REGBASE+0x2e // sci status register #define SCDR REGBASE+0x2f // sci data register //************************************************************************* // Useful system variables // These may change if the monitor software is changed. // O.k. ver2.17// // Addresses can be found in the linker map file. #define _GETCHR 0x8a0a // char getchr(void) #define IRQCOUNT 0x02d5 // 16-bit integer that increments each time IRQ is called #define _PUTCHR 0x89e5 // char putchar(char c) #define TICSEC 0x02e3 // 16-bit integer that increments once each second. #define _WAIT 0x8a37 // software timer 4.096 ms per tick, argument in x-reg. //build 17: #define USERTICK 0x02d7 // unsigned int incremented every 4.096ms by system clock #define IRQDEBOUNCE 0x02d3 // #ifdef SIMULATE //************************************************************************* // 68hc11 interrupt ROM interrupt vector table. This ordinal table begins // at 0xffd6 and ends at 0xffff. Each vector entry is 16 bits and points // into a user-editable area of RAM. Although all are shown mapped in the // simulator, not all are actually mapped in the Microkit. See RAM isr jump // table notations above. // // ORG $FFD6 .sect .text .globl _start _start: dw USER_ISR ; sci dw USER_ISR+3t ; spi dw USER_ISR+6t ; pulse acc input dw USER_ISR+9t ; pulse acc overf dw USER_ISR+12t ; timer overf dw USER_ISR+15t ; output compare 5 dw USER_ISR+18t ; output compare 4 dw USER_ISR+21t ; output compare 3 dw USER_ISR+24t ; output compare 2 dw USER_ISR+27t ; output compare 1 dw USER_ISR+30t ; input capture 3 dw USER_ISR+33t ; input capture 2 dw USER_ISR+36t ; input capture 1 dw USER_ISR+39t ; real time dw USER_ISR+42t ; irq dw USER_ISR+45t ; xirq dw USER_ISR+48t ; swi dw USER_ISR+51t ; illegal dw USER_ISR+54t ; cop fail dw USER_ISR+57t ; cop clock fail dw _GOCODE ; reset //********************************************************** // Procedure ISRSTUB // ORG $7bff .sect .text .globl _start _start: ISRSTUB: rti //********************************************************** // User ISR vector area. // // ORG user_isr .sect .text .globl _start _start: jmp ISRSTUB ; sci jmp ISRSTUB ; spi jmp ISRSTUB ; pulse acc input jmp ISRSTUB ; pulse acc overf jmp ISRSTUB ; timer overf jmp ISRSTUB ; output compare 5 jmp ISRSTUB ; output compare 4 jmp ISRSTUB ; output compare 3 jmp ISRSTUB ; output compare 2 jmp ISRSTUB ; output compare 1 jmp ISRSTUB ; input capture 3 jmp ISRSTUB ; input capture 2 jmp ISRSTUB ; input capture 1 jmp ISRSTUB ; real time jmp ISRSTUB ; irq jmp ISRSTUB ; xirq jmp ISRSTUB ; swi jmp ISRSTUB ; illegal opcode jmp ISRSTUB ; cop fail jmp ISRSTUB ; cop clock fail jmp ISRSTUB ; reset // reset vector starts here: // ORG ROMBASE .sect .text .globl _start _start: // move the internal 64 byte register block to 8000h ldaa #0x08 ; content of init register staa 0x103d ; load init at 0x103d // These initializations keep the simulator happy. Loading from an // uninitialized register (cpu or memeory) will flag an error. So, // event though Switches, for example, is really only an input port on // the Microkit, reading it requires that we initialize it with something. // This is true of the other input ports as well. ldd #0x0000 ; default ldy #0x0000 ; default ldab #0x00 ; default ldaa #0x00 ; default staa switches ; i: default switch settings staa leds ; o: default all-on leds staa lcd_cmd ; i/o: default staa lcd_char ; i/o: default staa dac ; o: default ldx #ramtop ; set default stack txs ; jsr setupsci ; intialize serial port to mimic the microkit. jmp main //********************************************************** // Procedure to setup HC11 UART for 9600bps when used with the simulator // This is called automatically when the simulator is targeted. // xtal = 8MHz SETUPSCI: psha ldaa #0x30 staa baud ldaa #0x00 staa sccr1 ldaa #0x2c staa sccr2 pula rts #else // ORG RAMBASE .sect .text .globl _start _start: jmp main #endif //************************************************************************* // Writes a carriage-return and line-feed out the SCI port OUTCRLF: psha ldaa #'\r' // cr jsr OUTCHAR // write it out ldaa #'\n' // lf jsr OUTCHAR // write it out pula rts //************************************************************************** //* Writes a NULL terminated string out the SCI port //* Index register x points to first byte of null-terminated string OUTSTRING: psha pshx _OUTSTRING0: ldaa 0,x cmpa #NULL beq _OUTSTRING1 jsr OUTCHAR inx bra _OUTSTRING0 _OUTSTRING1: pula pulx //by CWM 5-12-00 // jsr OUTCRLF rts //************************************************************************* // Writes a null-terminated line of text to the Optrex Liquid Crystal Display // Input: A = 1 --> line1 // A = 2 --> line2 // x = pointer to first character of string (null-termineated) LCDLINE: psha cmpa #0x01 // which line test beq _LCDLINE1 ldaa #0xa8 // line 1 command jmp _LCDLINE2 _LCDLINE1: ldaa #0x80 // line 2 command _LCDLINE2: jsr LCD_CMD // write to command register _LCDLINE3: ldaa 0,x cmpa #NULL beq _LCDLINE4 jsr LCD_CHAR inx bra _LCDLINE3 _LCDLINE4: pula rts //************************************************************************* // Writes to the LCD Character Register // Input: a LCD_CHAR: pshx pshy #ifndef SIMULATE psha pshb ldd #0x0001 // 8.1 ms wait cli jsr WAIT pulb //lcd_char0: LDAA LCD_CMD // ROLA // BCS _lcd_char0 pula #endif staa LCD_CHAR_REG puly pulx rts //************************************************************************** //* Writes to the LCD Command Register //* Input: a LCD_CMD: pshx pshy #ifndef SIMULATE psha pshb // cwm 5-14-00 ldd #0x000f // big wait cli jsr WAIT pulb // cwm 5-14-00 pula #endif staa LCD_CMD_REG puly pulx rts //************************************************************************** //* Reads a single character from the SCI port. //* Returns result in accumulator A GETCHAR: #ifdef SIMULATE ldaa scsr // status register anda #0x20 // rdrf bit mask beq GETCHAR // loop if rdrf = 0 ldaa SCDR // read data _getchar1: rts #else pshy pshb jsr _GETCHR // calls getchr() in system tba pulb puly rts #endif //************************************************************************** //* Write a character out the SCI port //* Character is in the A accumulator OUTCHAR: #ifdef SIMULATE pshb ldab SCSR // load sci status register bitb #0x80 // tdre bit beq OUTCHAR // loop until tdre = 1 staa SCDR // write character to port pulb rts #else psha pshb pshx pshy tab abx jsr _PUTCHR ;calls putchr() in system tba puly pulx pulb pula rts #endif //************************************************************************** //* LCDINT //* By Cliff <mcintire@acm.org> and Alex <fire@cats.ucsc.edu> //* Displays an unsigned integer to LCD from ACCD //* Clobbers no registers! //* Input: D _DIVISOR: .short 0x00 _REMAINDER: .short 0x00 LCDINT: //Expects: 16-bit unsigned integer in ACCD //Returns: nothing //Notes: prints ACCD to LCD. If input is negative, prints 0. pshx pshy psha pshb std _REMAINDER ldd #0 cpd _REMAINDER blt _NOTZERO ldaa #'0' jsr LCD_CHAR bra _PRINTLOOPEND _NOTZERO: //find the greatest divisor ldd #10000 ldx #10 _FINDDIV: cpd _REMAINDER ble _ENDFINDDIV idiv xgdx // d->quo x->rem ldx #10 bra _FINDDIV _ENDFINDDIV: std _DIVISOR ldd _REMAINDER ldx _DIVISOR _PRINTLOOP: //decrement divisor, get next remainder & quotient //print each quotient in turn idiv xgdx tba adda #'0' jsr LCD_CHAR stx _REMAINDER ldd _DIVISOR ldx #10 idiv cpx #0 // exit if quo=0 beq _PRINTLOOPEND stx _DIVISOR ldd _REMAINDER bra _PRINTLOOP _PRINTLOOPEND: pulb pula puly pulx rts //************************************************************************** //* Software time-wasting loop. _WAIT maps to the actual wait() procedure in //* the monitor, which uses the master system timer to count down an argument //* variable in the D-Register. Each decrement occurs at 4.096ms intervals. //* Input: D -> total delay = D * (4.096E-3) seconds WAIT: #ifndef SIMULATE pshy jsr _WAIT puly #endif rts #ifdef SIMULATE //* The simulator is too dumb to know that the 64-byte embedded register block that //* defaults to 0x1000 when the HC11 boots is re-mapped to 0x8000 //* when the code is run, so it flags an error at load time. Oddly enough, //* after running the code once, the simulator will then accept code organized //* at 0x1000. //* Hack: locate it just past the 64 byte boundry. // ORG $1040 .sect .text .globl _start _start: #endif /********************************************************************* * CONSOLEINT * * Displays an unsigned integer to the terminal from ACCD * Based on LCDINT * By Cliff <mcintire@acm.org> and Alex <fire@cats.ucsc.edu> * Modified by David van der Bokke * Clobbers no registers! * Input: D **********************************************************************/ DIVISOR1: .short 0x00 REMAINDER1: .short 0x00 CONSOLEINT: //Expects: 16-bit unsigned integer in ACCD //Returns: nothing //Notes: prints ACCD to LCD. If input is negative, prints 0. pshx pshy psha pshb std REMAINDER1 ldd #0 cpd REMAINDER1 blt notzero1 ldaa #0x30 jsr OUTCHAR bra printloopend1 notzero1: ;find the greatest divisor ldd #0x2710 // 10000 ldx #0xa // 10 finddiv1: cpd REMAINDER1 ble endfinddiv1 idiv xgdx //d->quo x->rem ldx #10 bra finddiv1 endfinddiv1: std DIVISOR1 ldd REMAINDER1 ldx DIVISOR1 printloop1: //decrement divisor, get next remainder & quotient //print each quotient in turn idiv xgdx tba adda #0x30 jsr OUTCHAR stx REMAINDER1 ldd DIVISOR1 ldx #0xa idiv cpx #0 //exit if quo=0 beq printloopend1 stx DIVISOR1 ldd REMAINDER1 bra printloop1 printloopend1: pulb pula puly pulx rts //;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; //; //; DUMPREGS (by voltron@cats - Devin Landes) //; Dumps all registers - D, X, Y, SP, CCR //; All registers are preserved //; SP is not correct for the line where DUMPREGS is called, //; but relatively speaking it is. //; // put the low nybble of B to the SCI in hex OUTBLO: psha tba anda #0x0f cmpa #0xa blt DIGIT suba #0xa adda #'a' suba #'0' DIGIT: adda #'0' jsr OUTCHAR pula rts // put B to the SCI OUTB: pshb lsrb lsrb lsrb lsrb jsr OUTBLO pulb jsr OUTBLO rts // put D to the SCI OUTD: pshb tab jsr OUTB pulb jsr OUTB rts // just a helper function, puts ' D=', ' X=', etc. OUTLABEL: psha ldaa #' ' jsr OUTCHAR pula jsr OUTCHAR psha ldaa #'=' jsr OUTCHAR pula rts DUMPREGS: pshb psha pshx pshy tpa psha // register contents will be loaded from stack // based on offsets: // 0(SP): CCR // 1(SP): Y (hi) // 2(SP): Y (lo) // 3(SP): X (hi) // 4(SP): X (lo) // 5(SP): A // 6(SP): B tsx jsr OUTCRLF ldaa #'D' jsr OUTLABEL tsx ldaa 5,X ldab 6,X jsr OUTD ldaa #'X' jsr OUTLABEL ldd 3,X jsr OUTD ldaa #'Y' jsr OUTLABEL ldd 1,X jsr OUTD ldaa #'S' jsr OUTLABEL xgdx addd #0x8 jsr OUTD ldaa #'C' jsr OUTLABEL pulb // B contains CCR now jsr OUTB // restore old CCR tba tap // restore other registers puly pulx pula pulb rts
30.512968
91
0.533717
d203e94bca0c715077b34c8bbc5e9e57d3b986d8
5,697
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1207.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1207.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1207.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x14366, %rax nop nop nop add $30615, %rbx movl $0x61626364, (%rax) nop nop nop sub $35834, %rsi lea addresses_UC_ht+0x49e2, %rsi nop nop nop add %rdx, %rdx vmovups (%rsi), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $1, %xmm3, %r15 inc %rbx lea addresses_WT_ht+0x377c, %rax nop nop and $37162, %r13 movb (%rax), %bl nop nop nop nop nop cmp $39256, %rdx lea addresses_WT_ht+0x16c0e, %rsi lea addresses_WC_ht+0xdb4e, %rdi dec %rdx mov $16, %rcx rep movsl cmp $7109, %r15 lea addresses_D_ht+0x588e, %rax clflush (%rax) xor %r15, %r15 mov $0x6162636465666768, %rcx movq %rcx, %xmm0 vmovups %ymm0, (%rax) nop nop nop nop nop and $45334, %r13 lea addresses_UC_ht+0xdae, %rcx nop nop nop nop nop xor %r13, %r13 mov (%rcx), %bx nop nop cmp %rsi, %rsi lea addresses_WC_ht+0x1128e, %rsi lea addresses_UC_ht+0x1d98e, %rdi nop nop nop nop nop add %rbx, %rbx mov $59, %rcx rep movsw nop nop nop nop nop sub $5464, %rax pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rax pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r13 push %r8 push %rcx push %rdi push %rdx // Faulty Load lea addresses_WC+0xea8e, %rdi nop sub $65505, %r13 movups (%rdi), %xmm3 vpextrq $0, %xmm3, %rcx lea oracles, %rdx and $0xff, %rcx shlq $12, %rcx mov (%rdx,%rcx,1), %rcx pop %rdx pop %rdi pop %rcx pop %r8 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_WC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_WC', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 3}} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 2}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 1, 'NT': True, 'same': False, 'congruent': 1}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 9}} {'src': {'type': 'addresses_UC_ht', 'AVXalign': True, 'size': 2, 'NT': False, 'same': False, 'congruent': 5}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}} {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
41.282609
2,999
0.65947
cba86ef7297f339b6e5fe9c72a3824fcd7f32d73
61
asm
Assembly
src/main/fragment/mos6502-common/vwsm1=_neg_pwsc1_derefidx_vbuyy.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/vwsm1=_neg_pwsc1_derefidx_vbuyy.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/vwsm1=_neg_pwsc1_derefidx_vbuyy.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
sec lda #0 sbc {c1},y sta {m1} lda #0 sbc {c1}+1,y sta {m1}+1
8.714286
12
0.57377