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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6372b21e438faee6ca3fc8c94098d29faad5f2d9
| 1,400
|
asm
|
Assembly
|
programs/oeis/263/A263086.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/263/A263086.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/263/A263086.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A263086: Partial sums of A099777, where A099777(n) gives the number of divisors of n-th even number.
; 2,5,9,13,17,23,27,32,38,44,48,56,60,66,74,80,84,93,97,105,113,119,123,133,139,145,153,161,165,177,181,188,196,202,210,222,226,232,240,250,254,266,270,278,290,296,300,312,318,327,335,343,347,359,367,377,385,391,395,411,415,421,433,441,449,461,465,473,481,493,497,512,516,522,534,542,550,562,566,578,588,594,598,614,622,628,636,646,650,668,676,684,692,698,706,720,724,733,745,757,761,773,777,787,803,809,813,829,833,845,853,865,869,881,889,897,909,915,923,943,949,955,963,971,979,997,1001,1010,1018,1030,1034,1050,1058,1064,1080,1090,1094,1106,1110,1126,1134,1140,1148,1166,1174,1180,1192,1200,1204,1222,1226,1236,1248,1260,1268,1284,1288,1294,1302,1316,1324,1339,1343,1351,1367,1373,1377,1397,1403,1415,1427,1435,1439,1451,1463,1475,1483,1489,1493,1517,1521,1533,1541,1551,1559,1571,1579,1587,1603,1615,1619,1635,1639,1645,1661,1673,1677,1695,1699,1714,1722,1728,1736,1752,1760,1766,1778,1790,1798,1822,1826,1834,1842,1848,1856,1876,1884,1890,1898,1914,1922,1934,1938,1952,1970,1976,1980,1996,2000,2012,2028,2038,2042,2060,2068,2076,2084,2096,2100,2124,2128,2137,2149,2157,2169,2181,2189,2199,2207,2219
mov $2,$0
add $2,1
mov $3,$0
lpb $2
mov $0,$3
sub $2,1
sub $0,$2
mul $0,2
add $0,1
cal $0,5 ; d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n.
add $1,$0
lpe
| 87.5
| 1,103
| 0.74
|
e33ba49ae2038b19cfbc7ccca798eca423a0b575
| 24
|
asm
|
Assembly
|
tests/fn_le/5.asm
|
NullMember/customasm
|
6e34d6432583a41278e6b3596f1817ae82149531
|
[
"Apache-2.0"
] | 414
|
2016-10-14T22:39:20.000Z
|
2022-03-30T07:52:44.000Z
|
tests/fn_le/5.asm
|
NullMember/customasm
|
6e34d6432583a41278e6b3596f1817ae82149531
|
[
"Apache-2.0"
] | 100
|
2018-03-22T16:12:24.000Z
|
2022-03-26T09:19:23.000Z
|
tests/fn_le/5.asm
|
NullMember/customasm
|
6e34d6432583a41278e6b3596f1817ae82149531
|
[
"Apache-2.0"
] | 47
|
2017-06-29T15:12:13.000Z
|
2022-03-10T04:50:51.000Z
|
#d le(0x00ff) ; = 0xff00
| 24
| 24
| 0.625
|
23679a43da67eb87083a5e03620ba6eebb234a4f
| 8,809
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48_notsx.log_21829_923.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_notsx.log_21829_923.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_notsx.log_21829_923.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 %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1a04c, %rdx
nop
nop
nop
nop
nop
inc %r13
movw $0x6162, (%rdx)
nop
dec %rcx
lea addresses_UC_ht+0x1804c, %rsi
lea addresses_UC_ht+0x5d04, %rdi
nop
nop
sub %r9, %r9
mov $37, %rcx
rep movsq
nop
nop
nop
nop
nop
inc %rdi
lea addresses_A_ht+0x1064c, %rcx
nop
nop
nop
inc %rdx
mov $0x6162636465666768, %rsi
movq %rsi, %xmm4
and $0xffffffffffffffc0, %rcx
movaps %xmm4, (%rcx)
nop
and %rcx, %rcx
lea addresses_WC_ht+0x1a04c, %r9
dec %rcx
vmovups (%r9), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %rdi
sub $4386, %rcx
lea addresses_A_ht+0x9b9c, %r13
nop
nop
nop
add %rdi, %rdi
movw $0x6162, (%r13)
nop
nop
nop
nop
sub $49627, %r13
lea addresses_D_ht+0xf44c, %rsi
nop
cmp %rdi, %rdi
mov (%rsi), %edx
nop
nop
nop
nop
nop
cmp %r13, %r13
lea addresses_WT_ht+0xb24c, %rdi
nop
cmp $24714, %r9
movb (%rdi), %al
nop
nop
nop
add $17892, %rdx
lea addresses_A_ht+0xdd4c, %rdx
nop
nop
and %r9, %r9
mov (%rdx), %rdi
nop
cmp %rcx, %rcx
lea addresses_D_ht+0x4dcc, %rsi
lea addresses_WT_ht+0xd38, %rdi
nop
nop
cmp %r11, %r11
mov $121, %rcx
rep movsq
nop
dec %r9
lea addresses_UC_ht+0x62bc, %rax
nop
nop
nop
nop
nop
inc %rdi
movb $0x61, (%rax)
nop
xor $6724, %r13
lea addresses_A_ht+0x1a65a, %rcx
nop
nop
nop
nop
add $28990, %rax
mov $0x6162636465666768, %rdi
movq %rdi, %xmm2
movups %xmm2, (%rcx)
nop
nop
sub %r9, %r9
lea addresses_A_ht+0x1684c, %rax
nop
nop
nop
and $30115, %rcx
mov (%rax), %r13
nop
nop
dec %rsi
lea addresses_WC_ht+0x69cc, %rdi
nop
nop
nop
nop
dec %r11
mov (%rdi), %rcx
nop
nop
cmp $62767, %r11
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r14
push %r9
push %rbx
push %rcx
push %rdx
// Load
lea addresses_D+0x304c, %rbx
nop
nop
inc %r13
mov (%rbx), %r14
nop
nop
nop
cmp $48901, %rcx
// Load
lea addresses_WC+0x178aa, %rbx
nop
nop
nop
add %r9, %r9
mov (%rbx), %r13
nop
nop
sub $16511, %r13
// Store
lea addresses_UC+0x18bcc, %r10
nop
add $36253, %rbx
movl $0x51525354, (%r10)
nop
nop
nop
nop
inc %r14
// Store
lea addresses_A+0xc04c, %r14
nop
add $17516, %r9
movl $0x51525354, (%r14)
and $32480, %r9
// Store
lea addresses_WT+0xe04c, %r14
nop
dec %r10
mov $0x5152535455565758, %r13
movq %r13, (%r14)
nop
xor %rcx, %rcx
// Store
lea addresses_WC+0x1a54c, %r10
nop
nop
nop
nop
sub $39289, %r9
mov $0x5152535455565758, %r14
movq %r14, %xmm5
movups %xmm5, (%r10)
inc %r13
// Store
lea addresses_US+0x5554, %r9
nop
nop
nop
nop
nop
sub %rdx, %rdx
mov $0x5152535455565758, %r14
movq %r14, %xmm4
vmovntdq %ymm4, (%r9)
nop
sub %r14, %r14
// Faulty Load
lea addresses_A+0x184c, %r13
nop
nop
and %rdx, %rdx
vmovups (%r13), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $1, %xmm3, %r14
lea oracles, %r9
and $0xff, %r14
shlq $12, %r14
mov (%r9,%r14,1), %r14
pop %rdx
pop %rcx
pop %rbx
pop %r9
pop %r14
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_A', 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_D', 'congruent': 8}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC', 'congruent': 1}}
{'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 4, 'type': 'addresses_UC', 'congruent': 6}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A', 'congruent': 11}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WT', 'congruent': 11}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC', 'congruent': 7}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 32, 'type': 'addresses_US', 'congruent': 1}, 'OP': 'STOR'}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_A', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WT_ht', 'congruent': 9}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_UC_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 16, 'type': 'addresses_A_ht', 'congruent': 8}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WC_ht', 'congruent': 6}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_A_ht', 'congruent': 0}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_D_ht', 'congruent': 6}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WT_ht', 'congruent': 9}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_A_ht', 'congruent': 4}}
{'dst': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 6, 'type': 'addresses_D_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 4}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_A_ht', 'congruent': 1}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_A_ht', 'congruent': 9}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC_ht', 'congruent': 7}}
{'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
*/
| 31.127208
| 2,999
| 0.649563
|
0b71be0ec6f8ea76415be8c8cca0edddd4e59a97
| 12,960
|
asm
|
Assembly
|
src/main/native/compression/isa-l-master/igzip/igzip_update_histogram.asm
|
arun-sub/GKL
|
c071276633f01d8198198fb40df468a0dffb0d41
|
[
"MIT"
] | 1
|
2018-11-23T13:41:33.000Z
|
2018-11-23T13:41:33.000Z
|
src/main/native/compression/isa-l-master/igzip/igzip_update_histogram.asm
|
arun-sub/GKL
|
c071276633f01d8198198fb40df468a0dffb0d41
|
[
"MIT"
] | null | null | null |
src/main/native/compression/isa-l-master/igzip/igzip_update_histogram.asm
|
arun-sub/GKL
|
c071276633f01d8198198fb40df468a0dffb0d41
|
[
"MIT"
] | 2
|
2020-11-26T16:56:28.000Z
|
2020-12-21T10:39:00.000Z
|
%include "options.asm"
%include "lz0a_const.asm"
%include "data_struct2.asm"
%include "bitbuf2.asm"
%include "huffman.asm"
%include "igzip_compare_types.asm"
%include "reg_sizes.asm"
%include "stdmac.asm"
extern rfc1951_lookup_table
_len_to_code_offset equ 0
%define LAST_BYTES_COUNT 3 ; Bytes to prevent reading out of array bounds
%define LA_STATELESS 280 ; Max number of bytes read in loop2 rounded up to 8 byte boundary
%define LIT_LEN 286
%define DIST_LEN 30
%define HIST_ELEM_SIZE 8
%ifdef DEBUG
%macro MARK 1
global %1
%1:
%endm
%else
%macro MARK 1
%endm
%endif
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
%define file_start rdi
%define file_length rsi
%define histogram rdx
%define rfc_lookup r9
%define f_i r10
%define curr_data rax
%define tmp2 rcx
%define dist rbx
%define dist_code2 rbx
%define dist2 r12
%define dist_code r12
%define len rbp
%define len_code rbp
%define hash3 rbp
%define curr_data2 r8
%define len2 r8
%define tmp4 r8
%define tmp1 r11
%define tmp3 r13
%define hash r14
%define hash2 r15
%define xtmp0 xmm0
%define xtmp1 xmm1
%define xdata xmm2
%define ytmp0 ymm0
%define ytmp1 ymm1
%if(ARCH == 01)
%define vtmp0 xtmp0
%define vtmp1 xtmp1
%define V_LENGTH 16
%else
%define vtmp0 ytmp0
%define vtmp1 ytmp1
%define V_LENGTH 32
%endif
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
_eob_count_offset equ 0 ; local variable (8 bytes)
f_end_i_mem_offset equ 8
gpr_save_mem_offset equ 16 ; gpr save area (8*8 bytes)
xmm_save_mem_offset equ 16 + 8*8 ; xmm save area (4*16 bytes) (16 byte aligned)
stack_size equ 2*8 + 8*8 + 4*16 + 8
;;; 8 because stack address is odd multiple of 8 after a function call and
;;; we want it aligned to 16 bytes
%ifidn __OUTPUT_FORMAT__, elf64
%define arg0 rdi
%define arg1 rsi
%define arg2 rdx
%macro FUNC_SAVE 0
%ifdef ALIGN_STACK
push rbp
mov rbp, rsp
sub rsp, stack_size
and rsp, ~15
%else
sub rsp, stack_size
%endif
mov [rsp + gpr_save_mem_offset + 0*8], rbx
mov [rsp + gpr_save_mem_offset + 1*8], rbp
mov [rsp + gpr_save_mem_offset + 2*8], r12
mov [rsp + gpr_save_mem_offset + 3*8], r13
mov [rsp + gpr_save_mem_offset + 4*8], r14
mov [rsp + gpr_save_mem_offset + 5*8], r15
%endm
%macro FUNC_RESTORE 0
mov rbx, [rsp + gpr_save_mem_offset + 0*8]
mov rbp, [rsp + gpr_save_mem_offset + 1*8]
mov r12, [rsp + gpr_save_mem_offset + 2*8]
mov r13, [rsp + gpr_save_mem_offset + 3*8]
mov r14, [rsp + gpr_save_mem_offset + 4*8]
mov r15, [rsp + gpr_save_mem_offset + 5*8]
%ifndef ALIGN_STACK
add rsp, stack_size
%else
mov rsp, rbp
pop rbp
%endif
%endm
%endif
%ifidn __OUTPUT_FORMAT__, win64
%define arg0 rcx
%define arg1 rdx
%define arg2 r8
%macro FUNC_SAVE 0
%ifdef ALIGN_STACK
push rbp
mov rbp, rsp
sub rsp, stack_size
and rsp, ~15
%else
sub rsp, stack_size
%endif
mov [rsp + gpr_save_mem_offset + 0*8], rbx
mov [rsp + gpr_save_mem_offset + 1*8], rsi
mov [rsp + gpr_save_mem_offset + 2*8], rdi
mov [rsp + gpr_save_mem_offset + 3*8], rbp
mov [rsp + gpr_save_mem_offset + 4*8], r12
mov [rsp + gpr_save_mem_offset + 5*8], r13
mov [rsp + gpr_save_mem_offset + 6*8], r14
mov [rsp + gpr_save_mem_offset + 7*8], r15
%endm
%macro FUNC_RESTORE 0
mov rbx, [rsp + gpr_save_mem_offset + 0*8]
mov rsi, [rsp + gpr_save_mem_offset + 1*8]
mov rdi, [rsp + gpr_save_mem_offset + 2*8]
mov rbp, [rsp + gpr_save_mem_offset + 3*8]
mov r12, [rsp + gpr_save_mem_offset + 4*8]
mov r13, [rsp + gpr_save_mem_offset + 5*8]
mov r14, [rsp + gpr_save_mem_offset + 6*8]
mov r15, [rsp + gpr_save_mem_offset + 7*8]
%ifndef ALIGN_STACK
add rsp, stack_size
%else
mov rsp, rbp
pop rbp
%endif
%endm
%endif
_lit_len_offset equ 0
_dist_offset equ (8 * LIT_LEN)
_hash_offset equ (_dist_offset + 8 * DIST_LEN)
%macro len_to_len_code 3
%define %%len_code %1 ; Output
%define %%len %2 ; Input
%define %%rfc_lookup %3
movzx %%len_code, byte [%%rfc_lookup + _len_to_code_offset + %%len]
or %%len_code, 0x100
%endm
;;; Clobbers rcx and dist
%macro dist_to_dist_code 2
%define %%dist_code %1 ; Output code associated with dist
%define %%dist_coded %1d
%define %%dist %2d ; Input dist
dec %%dist
mov %%dist_coded, %%dist
bsr ecx, %%dist_coded
dec ecx
SHRX %%dist_code, %%dist_code, rcx
lea %%dist_coded, [%%dist_coded + 2*ecx]
cmp %%dist, 1
cmovle %%dist_coded, %%dist
%endm
;;; Clobbers rcx and dist
%macro dist_to_dist_code2 2
%define %%dist_code %1 ; Output code associated with dist
%define %%dist_coded %1d
%define %%dist %2d ; Input -(dist - 1)
neg %%dist
mov %%dist_coded, %%dist
bsr ecx, %%dist_coded
dec ecx
SHRX %%dist_code, %%dist_code, rcx
lea %%dist_coded, [%%dist_coded + 2*ecx]
cmp %%dist, 1
cmovle %%dist_coded, %%dist
%endm
; void isal_update_histogram
global isal_update_histogram_ %+ ARCH
isal_update_histogram_ %+ ARCH %+ :
FUNC_SAVE
%ifnidn file_start, arg0
mov file_start, arg0
%endif
%ifnidn file_length, arg1
mov file_length, arg1
%endif
%ifnidn histogram, arg2
mov histogram, arg2
%endif
mov f_i, 0
cmp file_length, 0
je exit_ret ; If nothing to do then exit
mov tmp1, qword [histogram + _lit_len_offset + 8*256]
inc tmp1
mov [rsp + _eob_count_offset], tmp1
lea rfc_lookup, [rfc1951_lookup_table]
;; Init hash_table
PXOR vtmp0, vtmp0, vtmp0
mov rcx, (IGZIP_LVL0_HASH_SIZE - V_LENGTH)
init_hash_table:
MOVDQU [histogram + _hash_offset + 2 * rcx], vtmp0
MOVDQU [histogram + _hash_offset + 2 * (rcx + V_LENGTH / 2)], vtmp0
sub rcx, V_LENGTH
jge init_hash_table
sub file_length, LA_STATELESS
cmp file_length, 0
jle end_loop_2
;; Load first literal into histogram
mov curr_data, [file_start + f_i]
compute_hash hash, curr_data
and hash %+ d, LVL0_HASH_MASK
mov [histogram + _hash_offset + 2 * hash], f_i %+ w
and curr_data, 0xff
inc qword [histogram + _lit_len_offset + HIST_ELEM_SIZE * curr_data]
inc f_i
;; Setup to begin loop 2
MOVDQU xdata, [file_start + f_i]
mov curr_data, [file_start + f_i]
mov curr_data2, curr_data
compute_hash hash, curr_data
shr curr_data2, 8
compute_hash hash2, curr_data2
and hash2 %+ d, LVL0_HASH_MASK
and hash, LVL0_HASH_MASK
loop2:
xor dist, dist
xor dist2, dist2
xor tmp3, tmp3
lea tmp1, [file_start + f_i]
MOVQ curr_data, xdata
PSRLDQ xdata, 1
;; Load possible look back distances and update hash data
mov dist %+ w, f_i %+ w
sub dist, 1
sub dist %+ w, word [histogram + _hash_offset + 2 * hash]
mov [histogram + _hash_offset + 2 * hash], f_i %+ w
add f_i, 1
mov dist2 %+ w, f_i %+ w
sub dist2, 1
sub dist2 %+ w, word [histogram + _hash_offset + 2 * hash2]
mov [histogram + _hash_offset + 2 * hash2], f_i %+ w
;; Start computing hashes to be used in either the next loop or
;; for updating the hash if a match is found
MOVQ curr_data2, xdata
MOVQ tmp2, xdata
shr curr_data2, 8
compute_hash hash, curr_data2
;; Check if look back distances are valid. Load a junk distance of 1
;; if the look back distance is too long for speculative lookups.
and dist %+ d, (D-1)
neg dist
and dist2 %+ d, (D-1)
neg dist2
shr tmp2, 16
compute_hash hash2, tmp2
;; Check for long len/dist matches (>7)
mov len, curr_data
xor len, [tmp1 + dist - 1]
jz compare_loop
and hash %+ d, LVL0_HASH_MASK
and hash2 %+ d, LVL0_HASH_MASK
MOVQ len2, xdata
xor len2, [tmp1 + dist2]
jz compare_loop2
;; Specutively load the code for the first literal
movzx tmp1, curr_data %+ b
shr curr_data, 8
lea tmp3, [f_i + 1]
;; Check for len/dist match for first literal
test len %+ d, 0xFFFFFFFF
jz len_dist_huffman_pre
;; Store first literal
inc qword [histogram + _lit_len_offset + HIST_ELEM_SIZE * tmp1]
;; Check for len/dist match for second literal
test len2 %+ d, 0xFFFFFFFF
jnz lit_lit_huffman
len_dist_lit_huffman_pre:
;; Calculate repeat length
tzcnt len2, len2
shr len2, 3
len_dist_lit_huffman:
MOVQ curr_data, xdata
shr curr_data, 24
compute_hash hash3, curr_data
;; Store updated hashes
mov [histogram + _hash_offset + 2 * hash], tmp3 %+ w
add tmp3,1
mov [histogram + _hash_offset + 2 * hash2], tmp3 %+ w
add tmp3, 1
add f_i, len2
MOVDQU xdata, [file_start + f_i]
mov curr_data, [file_start + f_i]
mov tmp1, curr_data
compute_hash hash, curr_data
and hash3, LVL0_HASH_MASK
mov [histogram + _hash_offset + 2 * hash3], tmp3 %+ w
dist_to_dist_code2 dist_code2, dist2
len_to_len_code len_code, len2, rfc_lookup
shr tmp1, 8
compute_hash hash2, tmp1
inc qword [histogram + _lit_len_offset + HIST_ELEM_SIZE * len_code]
inc qword [histogram + _dist_offset + HIST_ELEM_SIZE * dist_code2]
and hash2 %+ d, LVL0_HASH_MASK
and hash, LVL0_HASH_MASK
cmp f_i, file_length
jl loop2
jmp end_loop_2
;; encode as dist/len
len_dist_huffman_pre:
tzcnt len, len
shr len, 3
len_dist_huffman:
mov [histogram + _hash_offset + 2 * hash], tmp3 %+ w
add tmp3,1
mov [histogram + _hash_offset + 2 * hash2], tmp3 %+ w
dec f_i
add f_i, len
MOVDQU xdata, [file_start + f_i]
mov curr_data, [file_start + f_i]
mov tmp1, curr_data
compute_hash hash, curr_data
dist_to_dist_code2 dist_code, dist
len_to_len_code len_code, len, rfc_lookup
shr tmp1, 8
compute_hash hash2, tmp1
inc qword [histogram + _lit_len_offset + HIST_ELEM_SIZE * len_code]
inc qword [histogram + _dist_offset + HIST_ELEM_SIZE * dist_code]
and hash2 %+ d, LVL0_HASH_MASK
and hash, LVL0_HASH_MASK
cmp f_i, file_length
jl loop2
jmp end_loop_2
lit_lit_huffman:
MOVDQU xdata, [file_start + f_i + 1]
and curr_data, 0xff
add f_i, 1
inc qword [histogram + _lit_len_offset + HIST_ELEM_SIZE * curr_data]
cmp f_i, file_length
jl loop2
end_loop_2:
add file_length, LA_STATELESS - LAST_BYTES_COUNT
cmp f_i, file_length
jge final_bytes
loop2_finish:
mov curr_data %+ d, dword [file_start + f_i]
compute_hash hash, curr_data
and hash %+ d, LVL0_HASH_MASK
;; Calculate possible distance for length/dist pair.
xor dist, dist
mov dist %+ w, f_i %+ w
sub dist %+ w, word [histogram + _hash_offset + 2 * hash]
mov [histogram + _hash_offset + 2 * hash], f_i %+ w
;; Check if look back distance is valid (the dec is to handle when dist = 0)
dec dist
cmp dist %+ d, (D-1)
jae encode_literal_finish
inc dist
;; Check if look back distance is a match
lea tmp4, [file_length + LAST_BYTES_COUNT]
sub tmp4, f_i
lea tmp1, [file_start + f_i]
mov tmp2, tmp1
sub tmp2, dist
compare tmp4, tmp1, tmp2, len, tmp3
;; Limit len to maximum value of 258
mov tmp2, 258
cmp len, 258
cmova len, tmp2
cmp len, SHORTEST_MATCH
jb encode_literal_finish
add f_i, len
len_to_len_code len_code, len, rfc_lookup
dist_to_dist_code dist_code, dist
inc qword [histogram + _lit_len_offset + HIST_ELEM_SIZE * len_code]
inc qword [histogram + _dist_offset + HIST_ELEM_SIZE * dist_code]
cmp f_i, file_length
jl loop2_finish
jmp final_bytes
encode_literal_finish:
;; Encode literal
and curr_data %+ d, 0xFF
inc qword [histogram + _lit_len_offset + HIST_ELEM_SIZE * curr_data]
;; Setup for next loop
add f_i, 1
cmp f_i, file_length
jl loop2_finish
final_bytes:
add file_length, LAST_BYTES_COUNT
final_bytes_loop:
cmp f_i, file_length
jge end
movzx curr_data, byte [file_start + f_i]
inc qword [histogram + _lit_len_offset + HIST_ELEM_SIZE * curr_data]
inc f_i
jmp final_bytes_loop
end:
;; Handle eob at end of stream
mov tmp1, [rsp + _eob_count_offset]
mov qword [histogram + _lit_len_offset + HIST_ELEM_SIZE * 256], tmp1
exit_ret:
FUNC_RESTORE
ret
compare_loop:
and hash %+ d, LVL0_HASH_MASK
and hash2 %+ d, LVL0_HASH_MASK
lea tmp2, [tmp1 + dist - 1]
%if (COMPARE_TYPE == 1)
compare250 tmp1, tmp2, len, tmp3
%elif (COMPARE_TYPE == 2)
compare250_x tmp1, tmp2, len, tmp3, xtmp0, xtmp1
%elif (COMPARE_TYPE == 3)
compare250_y tmp1, tmp2, len, tmp3, ytmp0, ytmp1
%else
%error Unknown Compare type COMPARE_TYPE
% error
%endif
lea tmp3, [f_i + 1]
jmp len_dist_huffman
compare_loop2:
add tmp1, 1
lea tmp2, [tmp1 + dist2 - 1]
%if (COMPARE_TYPE == 1)
compare250 tmp1, tmp2, len2, tmp3
%elif (COMPARE_TYPE == 2)
compare250_x tmp1, tmp2, len2, tmp3, xtmp0, xtmp1
%elif (COMPARE_TYPE == 3)
compare250_y tmp1, tmp2, len2, tmp3, ytmp0, ytmp1
%else
%error Unknown Compare type COMPARE_TYPE
% error
%endif
and curr_data, 0xff
inc qword [histogram + _lit_len_offset + 8 * curr_data]
lea tmp3, [f_i + 1]
jmp len_dist_lit_huffman
section .data
align 32
D_vector:
dw -(D + 1) & 0xFFFF, -(D + 1) & 0xFFFF, -(D + 1) & 0xFFFF, -(D + 1) & 0xFFFF
dw -(D + 1) & 0xFFFF, -(D + 1) & 0xFFFF, -(D + 1) & 0xFFFF, -(D + 1) & 0xFFFF
dw -(D + 1) & 0xFFFF, -(D + 1) & 0xFFFF, -(D + 1) & 0xFFFF, -(D + 1) & 0xFFFF
dw -(D + 1) & 0xFFFF, -(D + 1) & 0xFFFF, -(D + 1) & 0xFFFF, -(D + 1) & 0xFFFF
| 23.225806
| 92
| 0.690895
|
782fa4e8e02f17f5e6515222062257bfeaf4771a
| 5,161
|
asm
|
Assembly
|
ver0/4_osInOrder/1_progress/kernel/asm/kernel.asm
|
RongbinZhuang/simpleOS
|
81a817eb5f2c7891ab3f107a5cd5e0f0c31af143
|
[
"MIT"
] | null | null | null |
ver0/4_osInOrder/1_progress/kernel/asm/kernel.asm
|
RongbinZhuang/simpleOS
|
81a817eb5f2c7891ab3f107a5cd5e0f0c31af143
|
[
"MIT"
] | null | null | null |
ver0/4_osInOrder/1_progress/kernel/asm/kernel.asm
|
RongbinZhuang/simpleOS
|
81a817eb5f2c7891ab3f107a5cd5e0f0c31af143
|
[
"MIT"
] | null | null | null |
;extern function
extern cstart
extern exception_handler
extern spurious_irq
extern mainC
extern disp_str
extern delay
extern clock_handler
;extern variable
extern dwDispPos
extern gdt_ptr
extern idt_ptr
extern p_proc_ready
extern tss
extern k_reenter
extern irq_table
extern sys_call_table
extern ticks
;include inc
%include "sconst.inc"
[section .data]
clock_int_msg db "%" ,0
[section .bss]
StackSpace resb 2*1024
StackTop:
[section .text]
;declare
;entry declare
global _start
global restart
;int function declare
global divide_error
global single_step_exception
global nmi
global breakpoint_exception
global overflow
global bounds_check
global inval_opcode
global copr_not_available
global double_fault
global copr_seg_overrun
global inval_tss
global segment_not_present
global stack_exception
global general_protection
global page_fault
global copr_error
global hwint00
global hwint01
global hwint02
global hwint03
global hwint04
global hwint05
global hwint06
global hwint07
global hwint08
global hwint09
global hwint10
global hwint11
global hwint12
global hwint13
global hwint14
global hwint15
global sys_call
_start:
mov esp ,StackTop
sgdt [gdt_ptr]
call cstart
lgdt [gdt_ptr]
lidt [idt_ptr]
jmp SELECTOR_KERNEL_CS:csinit
csinit:
xor eax ,eax
mov ax ,SELECTOR_TSS
ltr ax
jmp mainC
;function define
PRINTCHECK:
mov ah ,07h
mov al ,'Z'
mov [gs:(80*5+40)*2] ,ax
ret
;interrupt total
exception:
call exception_handler
add esp, 4*2
hlt
%macro hwint_master 1
call save
in al, INT_M_CTLMASK ; `.
or al, (1<<%1) ; | 不允许再发生时钟中断
out INT_M_CTLMASK, al ; /
inc BYTE[gs:0]
mov al ,EOI
out INT_M_CTL ,al
sti
push %1
call [irq_table+4*%1]
pop ecx
cli
in al, INT_M_CTLMASK ; `.
and al, ~(1<<%1) ; | 又允许时钟中断发生
out INT_M_CTLMASK, al ; /
ret
%endmacro
%macro hwint_slave 1
push %1
call spurious_irq
add esp, 4
hlt
%endmacro
;interrupt function
;internal int
divide_error:
push 0xFFFFFFFF ; no err code
push 0 ; vector_no = 0
jmp exception
single_step_exception:
push 0xFFFFFFFF ; no err code
push 1 ; vector_no = 1
jmp exception
nmi:
push 0xFFFFFFFF ; no err code
push 2 ; vector_no = 2
jmp exception
breakpoint_exception:
push 0xFFFFFFFF ; no err code
push 3 ; vector_no = 3
jmp exception
overflow:
push 0xFFFFFFFF ; no err code
push 4 ; vector_no = 4
jmp exception
bounds_check:
push 0xFFFFFFFF ; no err code
push 5 ; vector_no = 5
jmp exception
inval_opcode:
call PRINTCHECK
push 0xFFFFFFFF ; no err code
push 6 ; vector_no = 6
jmp exception
copr_not_available:
push 0xFFFFFFFF ; no err code
push 7 ; vector_no = 7
jmp exception
double_fault:
push 8 ; vector_no = 8
jmp exception
copr_seg_overrun:
push 0xFFFFFFFF ; no err code
push 9 ; vector_no = 9
jmp exception
inval_tss:
push 10 ; vector_no = A
jmp exception
segment_not_present:
push 11 ; vector_no = B
jmp exception
stack_exception:
push 12 ; vector_no = C
jmp exception
general_protection:
push 13 ; vector_no = D
jmp exception
page_fault:
push 14 ; vector_no = E
jmp exception
copr_error:
push 0xFFFFFFFF ; no err code
push 16 ; vector_no = 10h
jmp exception
;external int
ALIGN 16
hwint00:
hwint_master 0
ALIGN 16
hwint01:
hwint_master 1
ALIGN 16
hwint02:
hwint_master 2
ALIGN 16
hwint03:
hwint_master 3
ALIGN 16
hwint04:
hwint_master 4
ALIGN 16
hwint05:
hwint_master 5
ALIGN 16
hwint06:
hwint_master 6
ALIGN 16
hwint07:
hwint_master 7
ALIGN 16
hwint08:
hwint_slave 8
ALIGN 16
hwint09:
hwint_slave 9
ALIGN 16
hwint10:
hwint_slave 10
ALIGN 16
hwint11:
hwint_slave 11
ALIGN 16
hwint12:
hwint_slave 12
ALIGN 16
hwint13:
hwint_slave 13
ALIGN 16
hwint14:
hwint_slave 14
ALIGN 16
hwint15:
hwint_slave 15
;sys_call
sys_call:
call save
sti
call [sys_call_table+4*eax]
mov [esi+EAXREG-P_STACKBASE] ,eax
cli
ret
save:
.pushReg:
pushad
push ds
push es
push fs
push gs
mov dx ,ss
mov ds ,dx
mov es ,dx
mov esi ,esp
inc DWORD[k_reenter]
cmp DWORD[k_reenter] ,0
jne .1
;jne .re_enter
mov esp ,StackTop
push restart
;jmp .2
jmp [esi+RETADR-P_STACKBASE]
.1:
push restart.reenter
jmp [esi+RETADR-P_STACKBASE]
restart:
mov esp ,[p_proc_ready]
lldt [esp+P_LDT_SEL]
lea eax ,[esp+P_STACKTOP]
mov DWORD[tss+TSS3_S_SP0] ,eax
.reenter:
dec DWORD[k_reenter]
.popReg:
pop gs
pop fs
pop es
pop ds
popad
add esp ,4
iretd
| 18.172535
| 38
| 0.635342
|
539cf62ca1460916d7f9e61581206194048cef2f
| 2,617
|
asm
|
Assembly
|
PRG/levels/Fortress/BowserA.asm
|
narfman0/smb3_pp1
|
38a58adafff67a403591e38875e9fae943a5fe76
|
[
"Unlicense"
] | null | null | null |
PRG/levels/Fortress/BowserA.asm
|
narfman0/smb3_pp1
|
38a58adafff67a403591e38875e9fae943a5fe76
|
[
"Unlicense"
] | null | null | null |
PRG/levels/Fortress/BowserA.asm
|
narfman0/smb3_pp1
|
38a58adafff67a403591e38875e9fae943a5fe76
|
[
"Unlicense"
] | null | null | null |
; Original address was $BE47
; Bowser's castle "wrong way" and alternate routes
.word W8BCL ; Alternate level layout
.word W8BCO ; Alternate object layout
.byte LEVEL1_SIZE_15 | LEVEL1_YSTART_170
.byte LEVEL2_BGPAL_04 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18
.byte LEVEL3_TILESET_02 | LEVEL3_VSCROLL_LOCKED | LEVEL3_PIPENOTEXIT
.byte LEVEL4_BGBANK_INDEX(2) | LEVEL4_INITACT_NOTHING
.byte LEVEL5_BGM_FORTRESS | LEVEL5_TIME_300
.byte $4E, $00, $AA, $24, $6E, $2D, $3A, $C2, $79, $60, $31, $1F, $79, $C0, $31, $2F
.byte $6E, $00, $D6, $10, $75, $00, $D3, $01, $79, $00, $D1, $2C, $17, $03, $00, $E0
.byte $68, $20, $6E, $11, $D0, $02, $6E, $14, $D1, $CF, $70, $1E, $D0, $20, $71, $1F
.byte $D0, $1D, $72, $14, $D6, $05, $73, $1A, $D5, $00, $74, $1B, $D4, $00, $75, $1C
.byte $D3, $00, $76, $1D, $D2, $00, $77, $1E, $D1, $00, $78, $1F, $D0, $00, $72, $20
.byte $D0, $1B, $73, $21, $D0, $19, $74, $22, $D0, $18, $75, $25, $D3, $0F, $17, $40
.byte $E1, $00, $18, $45, $E0, $00, $16, $4C, $E2, $00, $15, $40, $05, $16, $45, $05
.byte $14, $4C, $05, $11, $42, $63, $70, $51, $D0, $0E, $71, $53, $D0, $0A, $72, $54
.byte $D0, $08, $73, $55, $D1, $06, $78, $5E, $D0, $00, $77, $5F, $D3, $01, $17, $52
.byte $E1, $00, $15, $52, $05, $16, $56, $61, $7A, $61, $40, $1A, $11, $64, $65, $11
.byte $6C, $71, $77, $65, $E1, $78, $6C, $E1, $70, $7D, $D3, $07, $73, $7C, $D0, $00
.byte $79, $7B, $D1, $04, $11, $7C, $05, $74, $72, $E1, $77, $77, $E0, $6F, $85, $DB
.byte $07, $6F, $8D, $D9, $07, $77, $81, $D3, $03, $78, $80, $D2, $00, $15, $83, $00
.byte $E8, $58, $1C, $6F, $95, $D6, $09, $70, $9F, $D0, $05, $71, $9F, $D0, $02, $72
.byte $9F, $D0, $01, $73, $9F, $D0, $00, $70, $AD, $D0, $08, $71, $AF, $D0, $05, $75
.byte $A9, $D0, $00, $76, $A8, $D0, $02, $77, $A7, $D0, $04, $78, $A3, $D0, $09, $11
.byte $A7, $61, $13, $A9, $05, $16, $A3, $05, $34, $AC, $01, $72, $B1, $D0, $01, $73
.byte $B1, $D1, $00, $75, $B0, $D0, $01, $77, $B4, $D1, $00, $74, $BD, $D0, $06, $75
.byte $BC, $D0, $07, $76, $BB, $D0, $08, $77, $BA, $D0, $09, $78, $B9, $D0, $0A, $79
.byte $B9, $D1, $0E, $11, $BA, $62, $13, $B0, $05, $13, $BC, $05, $15, $B4, $05, $70
.byte $C5, $D0, $02, $71, $C6, $D5, $00, $11, $CA, $71, $78, $CC, $D0, $00, $7A, $C8
.byte $40, $1C, $75, $DC, $D0, $00, $77, $D2, $D0, $01, $78, $D9, $D0, $00, $12, $D2
.byte $61, $11, $DA, $71, $6F, $E4, $D1, $0B, $71, $E6, $D1, $09, $73, $E6, $D0, $01
.byte $74, $E5, $D0, $01, $73, $EF, $D2, $00, $76, $EC, $D0, $03, $77, $EB, $D0, $04
.byte $78, $EA, $D0, $05, $79, $E4, $D1, $0B, $78, $E0, $D0, $00, $12, $E5, $05, $14
.byte $ED, $00, $EE, $58, $1E, $FF
| 70.72973
| 85
| 0.48376
|
5cf37a821d63d9971f53219bd23dbfb5d67237bb
| 2,056
|
asm
|
Assembly
|
programs/oeis/268/A268598.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/268/A268598.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/268/A268598.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A268598: Expansion of x^5*(4 - 5*x)/(1 - 2*x)^4.
; 0,0,0,0,0,4,27,120,440,1440,4368,12544,34560,92160,239360,608256,1517568,3727360,9031680,21626880,51249152,120324096,280166400,647495680,1486356480,3391094784,7693402112,17364418560,39007027200,87241523200,194330492928,431241560064,953616957440,2101849620480,4618432020480,10118942949376,22110491639808,48189533061120,104775727185920,227289669304320,491997093691392,1062815427198976,2291450951761920,4931309650575360,10593794533621760,22720308276363264,48650090994204672,104013799987609600,222057368345640960,473405726455234560,1007909115042725888,2143150472674934784,4551450373411307520,9654591701175500800,20456193932446924800,43295355017726263296,91537914226119016448,193339532003015393280,407958572245356380160,860007384842669916160,1811311741331394527232,3811558494230236102656,8013885320928155402240,16835536271021482967040,35339926419961376931840,74125935217192619474944,155364243196304877944832,325400565460236490506240,681053791201356645662720,1424457577371851575787520,2977359833728942759477248,6219209083986733070024704,12982818479076782427340800,27085723258309208828805120,56475075916543266463416320,117686095119594428370518016,245104987560383195526463488,510204474809236468887715840,1061469926187024502908518400,2207234094093272172881510400,4587457917187025189231132672,9529811120294669955561947136,19787471141861072588620431360,41067210092308953064768798720,85193002508242917941544222720,176653076465368073524765261824,366143736209223894255735406592,758576773291787514544631316480,1570974924072818319947181588480,3252107168828921650293589934080,6729616138873351680952796971008,13920326256754279846171927117824,28783653338434198116748262113280,59495398288055376011651910205440,122932088176185581473513907159040,253918833217981489705658966081536,524294841318222824785826889596928,1082207182343279436316814396620800,2233070519265326062679534222704640,4606325368579328587688645272535040
sub $0,2
mov $2,$0
max $0,0
seq $0,268586 ; Expansion of (x^3*(3*x - 2))/(2*x - 1)^3.
sub $2,1
mul $0,$2
| 205.6
| 1,898
| 0.913911
|
2bfaf8c63bc3ec665f8b656320878394bd791ae6
| 578
|
asm
|
Assembly
|
oeis/060/A060300.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/060/A060300.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/060/A060300.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A060300: a(n) = (2n(n+1))^2.
; 0,16,144,576,1600,3600,7056,12544,20736,32400,48400,69696,97344,132496,176400,230400,295936,374544,467856,577600,705600,853776,1024144,1218816,1440000,1690000,1971216,2286144,2637376,3027600,3459600,3936256,4460544,5035536,5664400,6350400,7096896,7907344,8785296,9734400,10758400,11861136,13046544,14318656,15681600,17139600,18696976,20358144,22127616,24010000,26010000,28132416,30382144,32764176,35283600,37945600,40755456,43718544,46840336,50126400,53582400,57214096,61027344,65028096,69222400
sub $1,$0
bin $1,2
pow $1,2
mul $1,16
mov $0,$1
| 64.222222
| 497
| 0.814879
|
536fadf021dafcaa7d484722acef5a7b5463d763
| 952
|
asm
|
Assembly
|
programs/oeis/256/A256882.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/256/A256882.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/256/A256882.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A256882: Numbers divisible by prime(d+1) for each digit d of their base-2 representation.
; 0,3,6,12,15,18,24,30,36,42,48,54,60,63,66,72,78,84,90,96,102,108,114,120,126,132,138,144,150,156,162,168,174,180,186,192,198,204,210,216,222,228,234,240,246,252,255,258,264,270,276,282,288,294,300,306,312,318,324,330,336,342,348,354,360,366,372,378,384,390,396,402
mov $6,$0
mov $7,$0
lpb $7,1
mov $0,$6
sub $7,1
sub $0,$7
mov $9,$0
mov $11,2
lpb $11,1
mov $0,$9
sub $11,1
add $0,$11
sub $0,1
mul $0,2
trn $4,$2
lpb $0,1
add $0,5
cmp $5,$0
sub $0,3
add $5,$4
trn $4,216
mul $5,4
sub $0,$5
add $0,3
trn $0,8
add $4,1
add $4,$5
add $0,$4
lpe
mov $3,$0
add $5,10
mov $2,$5
mov $8,$11
lpb $8,1
sub $8,1
mov $10,$3
lpe
lpe
lpb $9,1
mov $9,0
sub $10,$3
lpe
mov $3,$10
mul $3,3
add $1,$3
lpe
| 19.04
| 266
| 0.519958
|
661a8e7028009fd127eb23dcb126f05f2899e41f
| 1,540
|
asm
|
Assembly
|
OvmfPkg/XenResetVector/Ia32/Flat32ToFlat64.asm
|
nicklela/edk2
|
dfafa8e45382939fb5dc78e9d37b97b500a43613
|
[
"Python-2.0",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-2-Clause-Patent",
"BSD-3-Clause"
] | 3,012
|
2015-01-01T19:58:18.000Z
|
2022-03-31T22:07:14.000Z
|
OvmfPkg/XenResetVector/Ia32/Flat32ToFlat64.asm
|
nicklela/edk2
|
dfafa8e45382939fb5dc78e9d37b97b500a43613
|
[
"Python-2.0",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-2-Clause-Patent",
"BSD-3-Clause"
] | 1,199
|
2015-01-12T08:00:01.000Z
|
2022-03-29T18:14:42.000Z
|
OvmfPkg/XenResetVector/Ia32/Flat32ToFlat64.asm
|
nicklela/edk2
|
dfafa8e45382939fb5dc78e9d37b97b500a43613
|
[
"Python-2.0",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-2-Clause-Patent",
"BSD-3-Clause"
] | 1,850
|
2015-01-01T11:28:12.000Z
|
2022-03-31T18:10:59.000Z
|
;------------------------------------------------------------------------------
; @file
; Transition from 32 bit flat protected mode into 64 bit flat protected mode
;
; Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>
; Copyright (c) 2019, Citrix Systems, Inc.
;
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;------------------------------------------------------------------------------
BITS 32
;
; Modified: EAX, EBX, ECX, EDX, ESP
;
Transition32FlatTo64Flat:
OneTimeCall SetCr3ForPageTables64
mov eax, cr4
bts eax, 5 ; enable PAE
mov cr4, eax
mov ecx, 0xc0000080
rdmsr
bts eax, 8 ; set LME
wrmsr
mov eax, cr0
bts eax, 31 ; set PG
mov cr0, eax ; enable paging
;
; backup ESP
;
mov ebx, esp
;
; recalculate delta
;
mov esp, PVH_SPACE(16)
call .delta
.delta:
pop edx
sub edx, ADDR_OF(.delta)
;
; push return addr and seg to the stack, then return far
;
push dword LINEAR_CODE64_SEL
mov eax, ADDR_OF(jumpTo64BitAndLandHere)
add eax, edx ; add delta
push eax
retf
BITS 64
jumpTo64BitAndLandHere:
;
; restore ESP
;
mov esp, ebx
debugShowPostCode POSTCODE_64BIT_MODE
OneTimeCallRet Transition32FlatTo64Flat
| 22.318841
| 80
| 0.473377
|
81e03caeee89ed7e075f9d14ae2b62d04b0e9b45
| 1,091
|
asm
|
Assembly
|
programs/oeis/143/A143095.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/143/A143095.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/143/A143095.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A143095: (1, 2, 4, 8,...) interleaved with (4, 8, 16, 32,...).
; 1,4,2,8,4,16,8,32,16,64,32,128,64,256,128,512,256,1024,512,2048,1024,4096,2048,8192,4096,16384,8192,32768,16384,65536,32768,131072,65536,262144,131072,524288,262144,1048576,524288,2097152,1048576,4194304,2097152,8388608,4194304,16777216,8388608,33554432,16777216,67108864,33554432,134217728,67108864,268435456,134217728,536870912,268435456,1073741824,536870912,2147483648,1073741824,4294967296,2147483648,8589934592,4294967296,17179869184,8589934592,34359738368,17179869184,68719476736,34359738368,137438953472,68719476736,274877906944,137438953472,549755813888,274877906944,1099511627776,549755813888,2199023255552,1099511627776,4398046511104,2199023255552,8796093022208,4398046511104,17592186044416,8796093022208,35184372088832,17592186044416,70368744177664,35184372088832,140737488355328,70368744177664,281474976710656,140737488355328,562949953421312,281474976710656,1125899906842624,562949953421312,2251799813685248
add $0,1
mov $2,$0
seq $2,135530 ; a(n) = a(n-1) + 2*a(n-2) - 2*a(n-3), with a(0)=2, a(1)=1.
mov $0,$2
| 136.375
| 921
| 0.824931
|
12f5abe72591b6331713c81ad7db9b94dcebb797
| 599
|
asm
|
Assembly
|
oeis/162/A162641.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/162/A162641.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/162/A162641.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A162641: Number of even exponents in canonical prime factorization of n.
; Submitted by Jamie Morken(w2)
; 0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,1,0,1,0,1,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,1,1,0,0,1,1,1,0,1,0,0,0,0,0,0,0,1,0,0,1,1,0,0,0,1,0,0,0,1,0,0,1,1,0,0,0,1,1,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,1,2
seq $0,336643 ; Squarefree kernel of n divided by the squarefree part of n: a(n) = rad(n) / core(n).
sub $0,1
seq $0,5 ; d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n.
mul $0,3
bin $0,2
div $0,3
mov $1,1
mov $2,1
lpb $0
div $0,4
add $2,$1
lpe
mov $0,$2
sub $0,2
| 31.526316
| 201
| 0.60601
|
eb29c681bbe87a281df79f1585503d96a3d434c2
| 515
|
asm
|
Assembly
|
programs/oeis/062/A062402.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/062/A062402.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/062/A062402.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A062402: a(n) = sigma(phi(n)).
; 1,1,3,3,7,3,12,7,12,7,18,7,28,12,15,15,31,12,39,15,28,18,36,15,42,28,39,28,56,15,72,31,42,31,60,28,91,39,60,31,90,28,96,42,60,36,72,31,96,42,63,60,98,39,90,60,91,56,90,31,168,72,91,63,124,42,144,63,84,60,144,60,195,91,90,91,168,60,168,63,120,90,126,60,127,96,120,90,180,60,195,84,168,72,195,63,252,96,168,90
seq $0,10 ; Euler totient function phi(n): count numbers <= n and prime to n.
sub $0,1
seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n).
| 73.571429
| 309
| 0.660194
|
b8ea6dc7cda878cd7f400a7eddbdf4d5020635c7
| 1,024
|
asm
|
Assembly
|
win64_examples/messagebox_1.asm
|
rgimad/fasm_programs
|
f6739ea19d5a3cdc759d902971a889eda5e98e9a
|
[
"MIT"
] | 8
|
2021-03-23T05:24:56.000Z
|
2021-11-29T08:56:33.000Z
|
win64_examples/messagebox_1.asm
|
rgimad/fasm_programs
|
f6739ea19d5a3cdc759d902971a889eda5e98e9a
|
[
"MIT"
] | null | null | null |
win64_examples/messagebox_1.asm
|
rgimad/fasm_programs
|
f6739ea19d5a3cdc759d902971a889eda5e98e9a
|
[
"MIT"
] | 1
|
2021-09-18T07:26:29.000Z
|
2021-09-18T07:26:29.000Z
|
format PE64 GUI 5.0 ; executable file format
entry start ; specify the entry point
include 'win64a.inc' ; include this for library, import macroses
section '.data' data readable writeable
text db 'Hello world!',0
section '.code' code readable executable
start: ; now rsp is 8 byte aligned, because when calling start return address (8bytes) pushed to stack (i.e rsp decreases by 8)
; if you don't align the stack by 16 bytes boundary this program won't work
sub rsp, 0x28 ; 0x28 = 0x20 + 0x8; so we reserve 32 bytes (0x28) for 'shadow space'. And subtract 8 bytes to make the rsp 16-byte aligned
mov rcx, 0
mov rdx, text
mov r8, text
mov r9, 0
call [MessageBoxA]
xor rcx, rcx
call [ExitProcess]
section '.idata' import data readable writeable
library kernel32,'KERNEL32.DLL',\
user32,'USER32.DLL'
import kernel32,\
ExitProcess, 'ExitProcess'
import user32,\
MessageBoxA,'MessageBoxA'
| 35.310345
| 150
| 0.657227
|
4c73bcc2b51074da20ba48f21287d3a124384057
| 323
|
asm
|
Assembly
|
libsrc/input/x1/in_WaitForNoKey.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/input/x1/in_WaitForNoKey.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/input/x1/in_WaitForNoKey.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
;
; Sharp X1 - Keyboard Input
;
; void in_WaitForNoKey(void)
; 2013, Karl Von Dyson (X1s.org)
;
PUBLIC in_WaitForNoKey
EXTERN _x1_keyboard_io
; uses : AF, HL
.in_WaitForNoKey
ld hl, _x1_keyboard_io+1
ld a, (hl)
and $40
jp z, in_WaitForNoKey
ret
| 17
| 38
| 0.560372
|
b267708a24c81fcacfe103f5b26d1cc26077751d
| 898
|
asm
|
Assembly
|
programs/oeis/212/A212702.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/212/A212702.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/212/A212702.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A212702: Main transitions in systems of n particles with spin 7/2.
; 7,112,1344,14336,143360,1376256,12845056,117440512,1056964608,9395240960,82678120448,721554505728,6253472382976,53876069761024,461794883665920,3940649673949184,33495522228568064,283726776524341248,2395915001761103872,20176126330619822080,169479461177206505472,1420399293675635474432,11879703183468951240704,99169696140262549487616,826414134502187912396800,6875765599058203431141376,57121744976791228504866816,473898921288934636484820992,3926591062108315559445659648,32495926031241232216102010880,268632988524927519653109956608,2218388550399401452619230609408,18301705540795061984108652527616,150850421427159298778107681439744,1242297588223664813466769141268480,10222334440240441893669414648152064,84050305397532522236837409329250304,690575482185132074594556011786272768
add $0,1
mov $2,8
pow $2,$0
mul $0,$2
div $0,8
mul $0,7
| 89.8
| 771
| 0.907572
|
93969b0308c271a8e452887b858ff9a1e624858a
| 1,091
|
asm
|
Assembly
|
lib/target/abc80/classic/abc80_crt0.asm
|
ahjelm/z88dk
|
c4de367f39a76b41f6390ceeab77737e148178fa
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
lib/target/abc80/classic/abc80_crt0.asm
|
C-Chads/z88dk
|
a4141a8e51205c6414b4ae3263b633c4265778e6
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
lib/target/abc80/classic/abc80_crt0.asm
|
C-Chads/z88dk
|
a4141a8e51205c6414b4ae3263b633c4265778e6
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; CRT0 for the ABC80 Family
;
; Stefano Bodrato May 2000
;
; $Id: abc80_crt0.asm,v 1.20 2016-07-15 21:03:25 dom Exp $
;
MODULE abc80_crt0
defc crt0 = 1
INCLUDE "zcc_opt.def"
EXTERN _main
PUBLIC cleanup
PUBLIC l_dcal
defc CONSOLE_ROWS = 24
defc CONSOLE_COLUMNS = 40
IF !DEFINED_CRT_ORG_CODE
defc CRT_ORG_CODE = 50000
ENDIF
defc TAR__no_ansifont = 1
defc TAR__clib_exit_stack_size = 32
defc TAR__register_sp = -1
defc __CPU_CLOCK = 3000000
INCLUDE "crt/classic/crt_rules.inc"
org CRT_ORG_CODE
start:
ld (start1+1),sp
INCLUDE "crt/classic/crt_init_sp.asm"
INCLUDE "crt/classic/crt_init_atexit.asm"
call crt0_init_bss
ld (exitsp),sp
IF DEFINED_USING_amalloc
INCLUDE "crt/classic/crt_init_amalloc.asm"
ENDIF
call _main
cleanup:
push hl
call crt0_exit
pop bc
start1:
ld sp,0
ret
l_dcal:
jp (hl)
INCLUDE "crt/classic/crt_runtime_selection.asm"
INCLUDE "crt/classic/crt_section.asm"
| 17.046875
| 64
| 0.636114
|
3a9be1aa4c17a703afedbeceadb318759a965f85
| 582
|
asm
|
Assembly
|
fluidcore/samples/kick-v4.asm
|
bushy555/ZX-Spectrum-1-Bit-Routines
|
4d336dec9d7abc979a97af76d515104a9263f127
|
[
"BSD-3-Clause"
] | 59
|
2015-02-28T14:15:56.000Z
|
2022-03-26T12:06:01.000Z
|
fluidcore/samples/kick-v4.asm
|
bushy555/ZX-Spectrum-1-Bit-Routines
|
4d336dec9d7abc979a97af76d515104a9263f127
|
[
"BSD-3-Clause"
] | 1
|
2016-08-22T05:32:43.000Z
|
2016-08-22T09:33:28.000Z
|
fluidcore/samples/kick-v4.asm
|
bushy555/ZX-Spectrum-1-Bit-Routines
|
4d336dec9d7abc979a97af76d515104a9263f127
|
[
"BSD-3-Clause"
] | 9
|
2015-02-28T14:16:31.000Z
|
2022-01-18T17:52:48.000Z
|
db 4,0,4,4,0,0,4,4,4,0,0,0,4,4,4,4
db 0,0,0,0,4,4,4,4,4,0,0,0,0,0,4,4
db 4,4,4,4,0,0,0,0,0,0,4,4,4,4,4,4
db 4,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4
db 0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4
db 4,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4
db 4,4,4,4,0,0,0,0,0,0,0,0,0,0,4,4
db 4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0
db 0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,0
db 0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4
db 4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0
db 0,0,4,4,4,4,4,4,4,4,4,4,4,4,0,0
db 0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4
db 4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0
db 0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
| 29.1
| 35
| 0.494845
|
de9d9376ad388b8d0076619f73c50f2571ad74aa
| 291
|
asm
|
Assembly
|
programs/oeis/146/A146507.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/146/A146507.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/146/A146507.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A146507: Numbers congruent to {1, 13} mod 42.
; 1,13,43,55,85,97,127,139,169,181,211,223,253,265,295,307,337,349,379,391,421,433,463,475,505,517,547,559,589,601,631,643,673,685,715,727,757,769,799,811,841,853,883,895,925,937,967,979
mul $0,3
div $0,2
mul $0,14
div $0,6
mul $0,6
add $0,1
| 29.1
| 186
| 0.690722
|
169cde024ff2129f865187fa3f40ecbceab2e87e
| 12,780
|
asm
|
Assembly
|
sbsext/tk2/da.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
sbsext/tk2/da.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
sbsext/tk2/da.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
* Direct access file handling V0.9 1984/1985 Tony Tebby QJUMP
*
* GET #n [\pointer] {,variable} get value(s) from file
* BGET #n [\pointer] {,variable} get unsigned byte(s) from file
* WGET #n [\pointer] {,variable} get unsigned word(s) from file
* LGET #n [\pointer] {,variable} get signed long word(s) from file
* HGET #n {,variable} get values from header
* PUT #n [\pointer] {,value} put values(s) to file
* BPUT #n [\pointer] {,value} put unsigned byte(s) to file
* UPUT #n [\pointer] {,value} as BPUT but untranslated
* WPUT #n [\pointer] {,value} put unsigned word(s) to file
* LPUT #n [\pointer] {,value} put signed long word(s) to file
* HPUT #n {,value} put values to header
* TRUNCATE #n [\pointer] truncate file
* FLUSH #n flush file
* FPOS (#n) function to find current file pointer
*
section exten
*
xdef get
xdef bget
xdef wget
xdef lget
xdef hget
xdef put
xdef bput
xdef uput
xdef wput
xdef lput
xdef hput
xdef truncate
xdef flush
xdef fpos
*
xref ut_chkri check RI stack
xref ut_ckri6 ... for 6 bytes
xref ut_chan get #channel
xref ut_gtli1 get one long integer
xref ut_gtlin get long integers
xref ut_lfloat float d1 onto RI stack
xref ut_retfp return floating point
xref ut_trp3r trap #3 relative
xref ut_fhead get file header
*
include 'dev8_keys_qlv'
include 'dev8_keys_err'
include 'dev8_keys_sbasic'
include 'dev8_keys_qdos_io'
* The HGET and HPUT procedures are not really part of the DA routines but are
* here for convenience
*
hget
bsr.s hda_chan get channel
bne.s hda_rts
jsr ut_fhead get header
bne.s hda_rts ... oops
moveq #20,d1
jsr ut_chkri get space on stack
move.l sb_buffb(a6),a0
lea 14(a6,a0.l),a0 pointer to end of set header values
add.l a6,a1
move.l -(a0),-(a1) extra
move.l -(a0),-(a1) data
bsr.s hg_moveb type
bsr.s hg_moveb access
move.l -(a0),-(a1) length
sub.l a6,a1
move.l a1,sb_arthp(a6) set arithmetic stack pointer
hg_loop
cmp.l a3,a5 another parameter?
ble.s hg_ok
move.w #$0f0f,d0
and.w (a6,a3.l),d0 type?
beq.s hg_skip
moveq #qa.fltli,d0 float it
move.w qa.op,a2
jsr (a2)
move.l a1,sb_arthp(a6)
move.w sb.putp,a2
jsr (a2) assign value
bra.s hg_eloop
hg_skip
addq.l #4,a1
hg_eloop
addq.l #8,a3
bra.s hg_loop
hg_ok
moveq #0,d0
hda_rts
rts
hg_moveb
move.b -(a0),d0
ext.w d0
ext.l d0
move.l d0,-(a1)
rts
hda_chan
moveq #3,d6 default channel 3
jmp ut_chan get channel id
hput
bsr.s hda_chan get channel
bne.s hda_rts
jsr ut_gtlin get long integers
bne.s hda_rts
cmp.w #5,d3 more than 5?
bhi.s hda_bp
move.l sb_buffb(a6),a2
lea 20(a6,a2.l),a4 preset 5
clr.l -(a4)
clr.l -(a4)
clr.l -(a4)
clr.l -(a4)
clr.l -(a4) clear the header
add.l a6,a1
bra.s hp_eloop
hp_loop
move.l (a1)+,(a4)+
hp_eloop
dbra d3,hp_loop
lea 4(a6,a2.l),a1
lea (a1),a4
move.l (a1)+,d0 two of the items are bytes
move.b d0,(a4)+
move.l (a1)+,d0
move.b d0,(a4)+
move.l (a1)+,(a4)+
move.l (a1)+,(a4)+
move.l a2,a1
moveq #iof.shdr,d0
jmp ut_trp3r ... set header
hda_bp
moveq #err.ipar,d0
rts
*
vv_ptr equ $08 position of pointer to vv area on stack
parm_top equ $04 position of stored a5 on stack
chan_id equ $00 position of channel id on stack
*
* get items from a file
*
get
bsr.l chan_set
get_loop
bsr.l ut_ckri6 check for a little bit of room on the ri stack
bsr.l type_set get type of next
bgt.s get_int ... integer
beq.s get_fp ... floating point
tst.b 1(a6,a3.l) is it substring?
beq.l file_bp ... yes
*
moveq #2,d2 get length of string
move.l sb_arthp(a6),a1
bsr.l fstrg_push
bne.l exit_12 oops
move.w (a6,a1.l),d4 save it
blt.s get_lchk ... oops
moveq #0,d1
move.w d4,d1 round up to nearest even word
addq.w #3,d1 (+2)
bclr #0,d1
move.l d1,d5 save rounded value
bsr.l ut_chkri check for room for string
suba.w d5,a1 move stack pointer down
move.w d4,(a6,a1.l) and put length in
move.w d4,d2 fetch characters of string
beq.s get_let ... none
addq.l #2,a1
bsr.l fstrg
subq.l #2,a1 and include string length in return value
bra.s get_lchk
*
get_fp
moveq #6,d2 get six bytes
bsr.l fstrg_push
bne.s get_lchk
and.b #$f,(a6,a1.l) mask out top end rubbish
bra.s get_let
*
get_int
moveq #2,d2 get two bytes
bsr.l fstrg_push push bytes onto a1
*
get_lchk
bne.l exit_12 was there a read error?
get_let
move.l a1,sb_arthp(a6) set stack pointer
move.w sb.putp,a2
jsr (a2) and assign value
addq.l #8,a3 move to next parameter
bra.s get_loop carry on
*
* get a byte (or bytes into a string) and convert to fp if necessary
*
bget
bsr.l chan_set set up channel id etc.
bget_loop
bsr.l ut_ckri6 check for room for 1 fp
bsr.l type_set find type
bge.s bget_type
addq.b #2,d1 was it substring array?
bne.l file_bp ... won't do string
move.w 6(a6,a1.l),d2 length to fetch
move.l (a6,a1.l),a1 and where to put it
add.l sb_datab(a6),a1
bsr.l fstrg fetch it
addq.l #8,a3 move to next parameter
bra.s bget_loop
bget_type
move.b d1,d6 save type flag
moveq #1,d2 get one byte
bsr.l fstrg_push
bne.l exit_12 oops
subq.l #1,a1 and put a zero byte on the stack
clr.b (a6,a1.l)
tst.b d6 was fp required?
bgt.s bget_let ... no
moveq #qa.float,d0 ... yes, float it
move.w qa.op,a2
jsr (a2)
bget_let
move.l a1,sb_arthp(a6) set arithmetic stack pointer
move.w sb.putp,a2
jsr (a2) assign value
addq.l #8,a3 move to next parameter
bra.s bget_loop
*
* get a word and convert to fp if necessary
*
wget
bsr.l chan_set set up channel id etc.
wget_loop
bsr.l ut_ckri6 check for room for 1 fp
bsr.l type_set find type
blt.l file_bp ... string
move.b d1,d6 save type flag
moveq #2,d2 get two bytes
bsr.l fstrg_push
bne.l exit_12 oops
tst.b d6 was fp required?
bgt.s wget_let ... no
subq.l #2,a1
clr.w (a6,a1.l) ... yes, make long
moveq #qa.fltli,d0 and float it
move.w qa.op,a2
jsr (a2)
wget_let
move.l a1,sb_arthp(a6) set arithmetic stack pointer
move.w sb.putp,a2
jsr (a2) assign value
addq.l #8,a3 move to next parameter
bra.s wget_loop
*
* get a long and convert to fp
*
lget
bsr.l chan_set set up channel id etc.
lget_loop
bsr.l ut_ckri6 check for room for 1 fp
bsr.l type_set find type
bne.l file_bp ... not float
moveq #4,d2 get four bytes
bsr.l fstrg_push
bne.l exit_12 oops
bgt.s wget_let ... no
moveq #qa.fltli,d0 ... yes, float it
move.w qa.op,a2
jsr (a2)
move.l a1,sb_arthp(a6) set arithmetic stack pointer
move.w sb.putp,a2
jsr (a2) assign value
addq.l #8,a3 move to next parameter
bra.s lget_loop
*
* put data onto file
*
put
bsr.l chan_set set up the channel id etc.
put_loop
bsr.l type_set find the type
beq.s put_fp floating point
bgt.s put_int integer
*
move.w sb.gtstr,a2 get a string
bsr.l put_on_a1 just one
move.l #'ST ',d2 flag as string
move.w (a6,a1.l),d2 find length
addq.w #2,d2 and put length and string on file
bra.s put_file
put_fp
move.w sb.gtfp,a2 get a floating point
bsr.l put_on_a1 just one
moveq #6,d2 and put 6 bytes on file
bra.s put_file
put_int
move.w sb.gtint,a2 get an integer
bsr.l put_on_a1 just one
moveq #2,d2 and put 2 bytes on file
put_file
bsr.l sstrg put bytes on file
bra.s put_loop carry on
*
* put bytes to file untranslated
*
uput
bsr.l chan_set set up the channel id etc.
lea sustrg,a4
bra.s bput_loop
*
* put bytes to the file
*
bput
bsr.l chan_set set up channel id etc.
lea sstrg,a4
bput_loop
cmpa.l parm_top(sp),a3 end of list?
beq.l exit_pos yes (d0 already set)
moveq #$0f,d1
and.w (a6,a3.l),d1 type
subq.w #1,d1 string?
bne.s bput_byte ... no
move.w sb.gtstr,a2 get a string
bsr.l put_on_a1
move.w (a6,a1.l),d2 ... number to send
addq.l #2,a1
bra.s bput_do
bput_byte
move.w sb.gtint,a2 get an integer
bsr.l put_on_a1 just one
tst.b (a6,a1.l) msbyte must be zero
beq.s bput_file good
moveq #err.ovfl,d0 no, call it overflow
bra.l exit_12
bput_file
addq.l #1,a1 just the lsbyte
moveq #1,d2
bput_do
jsr (a4) onto the file
bra.s bput_loop
*
* put words to the file
*
wput
bsr.l chan_set set up channel id etc.
jsr ut_gtlin get long integers
bne.l exit_12
bra.s wput_le
wput_loop
moveq #2,d2
addq.w #2,a1 lsword only
bsr.l sstrg
addq.l #2,a1 ... next long word
wput_le
dbra d3,wput_loop
bra.s exit_pos
*
* put long words to the file
*
lput
bsr.l chan_set set up channel id etc.
jsr ut_gtlin get long integers
bne.s exit_12
moveq #0,d2
move.w d3,d2
lsl.l #2,d2 number of bytes in longs
bsr.l sstrg onto the file
bra.s exit_pos
*
* truncate
*
truncate
moveq #iof.trnc,d5 truncate
bra.s da_action
*
* flush
*
flush
moveq #iof.flsh,d5 flush
da_action
bsr.l chan_set set up channel id etc
cmp.l parm_top(sp),a3 there should be no other parameters
bne.s file_bp
move.l d5,d0 do action
bsr.s trap4_3 do trap
bra.s exit_12
*
* get file pointer
*
fpos
bsr.s chan_set set up channel id etc
cmp.l parm_top(sp),a3 there should be no other parameters
bne.s file_bp
bsr.l ut_ckri6 make room on stack for return value (fp)
move.l a1,d7 save ri stack pointer
bsr.s get_pos
bsr.l ut_retfp return a floating point
bra.s exit_12
*
get_pos
moveq #iof.posr,d0 position file relative
moveq #0,d1 by no bytes
moveq #0,d3 and return immediately
move.l 4+chan_id(sp),a0 set channel id
trap #3
move.l d7,a1 restore ri stack pointer
tst.l d0 ok?
beq.s pos_ok yes
moveq #err.nc,d2 not complete is quite normal
cmp.l d2,d0
beq.s pos_ok
moveq #err.eof,d2 end of file is still ok
cmp.l d2,d0
bne.s exit_16 no, it is not end of file
pos_ok
bsr.l ut_lfloat float d1 onto stack
moveq #0,d0 set no error
rts
*
exit_pos
move.l vv_ptr(sp),d7 get the pointer to the pointer variable
blt.s exit_12 ... not there
add.l sb_datab(a6),d7 add base of vv area
addq.l #6,d7 pretend this is the ri stack!!
bsr.s get_pos get the position
bra.s exit_12 and exit
*
file_bp
moveq #err.ipar,d0 bad parameter
exit_12
add.w #12,sp remove channel id and top of parameter list
rts
exit_16
addq.l #4,sp
bra.s exit_12
*
* put next item on the a1 stack (a2 set to ca.gt...)
*
put_on_a1
lea 8(a3),a5 get just one item
jsr (a2) call appropriate type
move.l a5,a3 move onto next item
bne.s exit_16 remove return and channel id and saved a5
rts
*
* fetch bytes
*
fstrg_push
suba.w d2,a1 make room on a1 stack
fstrg
moveq #iob.fmul,d0 fetch a known number of bytes
bra.s trap4_3
*
* send bytes untranslated
*
sustrg
moveq #iob.suml,d0 send a known number of bytes
bra.s trap4_3
*
* send bytes
*
sstrg
moveq #iob.smul,d0 send a known number of bytes
*
trap4_3
move.l 4+chan_id(sp),a0 set channel id
bsr.l ut_trp3r trap #3 relative
suba.w d1,a1 restore a1 to original
bne.s exit_16
rts
*
* set up and save channel id and top of parameter list
*
chan_set
moveq #%0111000,d7 save separator on first parameter
cmp.l a3,a5 if there is one!
beq.s chans_1
and.b 1(a6,a3.l),d7 all other info is masked out
chans_1
moveq #3,d6 default channel 3
bsr.l ut_chan get channel id
bne.s chans_out return directly
move.l (sp),a4 get return address
clr.l (sp) no pointer to return
st (sp) ... pointer in vv
move.l a5,-(sp) save top of parameter list
move.l a0,-(sp) and channel id
*
cmp.b #%00110000,d7 was separator '\'
bne.s chans_rts ... no
move.w #$0f0f,d7 mask odd bits
and.w (a6,a3.l),d7 ... in this parameter type
cmp.w #$0202,d7 is it a floating point variable?
bne.s set_fptr ... no
move.l 4(a6,a3.l),vv_ptr(sp) ... yes, set value pointer
set_fptr
bsr.l ut_gtli1 get one long integer
bne.s exit_12 ... oops
addq.l #8,a3 skip this parameter
move.l #iof.posa,d0 set file position
move.l (a6,a1.l),d1
addq.l #4,sb_arthp(a6) (reset ri stack)
moveq #0,d3
move.l chan_id(sp),a0
trap #3 ignore errors
chans_rts
jmp (a4) and return
*
chans_out
addq.l #4,sp remove one return address
rts and return to basic
*
* set up type of next parameter (string array and substring array are permitted)
*
type_set
cmpa.l 4+parm_top(sp),a3 end of parameter list?
blt.s type_var ... no
moveq #0,d0 ... yes, ok
addq.l #4,sp remove return
bra.l exit_pos and exit (setting position)
type_var
move.w #$0f0f,d1 mask out separators
and.w (a6,a3.l),d1 get name type
beq.s type_bp ... null
cmp.w #$0300,d1 ... is it sub-string array?
blt.s type_test ... no
cmp.w #$0301,d1 ... is it string array?
bgt.s type_test ... no
move.l 4(a6,a3.l),a1 ... yes, get value pointer
add.l sb_datab(a6),a1
cmp.w #1,4(a6,a1.l) just one dimension?
beq.s typs_ok ... yes
bra.s type_bp ... no
*
type_test
ror.w #8,d1 get name usage
move.w #%11000101,d2 set mask of acceptable usage
btst d1,d2
beq.s type_bp not permissable
lsr.w #8,d1 get type
typs_ok
subq.b #2,d1 set -ve for string, 0 for fp, +ve for integer
rts
type_bp
addq.l #4,sp remove return
bra.l file_bp and bad parameter
end
| 22.699822
| 81
| 0.7018
|
b131411b2fbf2d5be693863a94d27e3e39709cd6
| 10,298
|
asm
|
Assembly
|
source/threads.asm
|
stanford-mast/Grazelle-PPoPP18
|
5c95c1d498a3935a6e40202c34d5f32653132c1c
|
[
"BSD-3-Clause"
] | 19
|
2018-02-27T14:00:28.000Z
|
2022-01-14T02:53:50.000Z
|
source/threads.asm
|
stanford-mast/Grazelle-PPoPP18
|
5c95c1d498a3935a6e40202c34d5f32653132c1c
|
[
"BSD-3-Clause"
] | 4
|
2018-03-02T13:59:05.000Z
|
2022-01-19T12:20:50.000Z
|
source/threads.asm
|
stanford-mast/Grazelle-PPoPP18
|
5c95c1d498a3935a6e40202c34d5f32653132c1c
|
[
"BSD-3-Clause"
] | 1
|
2019-04-10T18:20:47.000Z
|
2019-04-10T18:20:47.000Z
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Grazelle
; High performance, hardware-optimized graph processing engine.
; Targets a single machine with one or more x86-based sockets.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Authored by Samuel Grossman
; Department of Electrical Engineering, Stanford University
; (c) 2015-2018
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; threads.asm
; Implementation of some lightweight multithreading operations. The rest
; are implemented in C.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
INCLUDE registers.inc
INCLUDE threadhelpers.inc
DATA SEGMENT ALIGN(64)
; --------- LOCALS ------------------------------------------------------------
; Storage area for the counter of threads that have reached a barrier.
thread_barrier_counter DQ 0000000000000000h
; Storage area for the total number of spawned threads.
thread_spawned_count DQ 0000000000000000h
; Padding to ensure that the next variable is in a different cache line.
DQ 0000000000000000h
DQ 0000000000000000h
DQ 0000000000000000h
DQ 0000000000000000h
DQ 0000000000000000h
DQ 0000000000000000h
; Thread barrier flag, where threads spin until all threads have passed the barrier.
; Reserve a full cache line for this.
thread_barrier_flag DQ 0000000000000000h
DQ 0000000000000000h
DQ 0000000000000000h
DQ 0000000000000000h
DQ 0000000000000000h
DQ 0000000000000000h
DQ 0000000000000000h
DQ 0000000000000000h
DATA ENDS
_TEXT SEGMENT
; --------- INTERNAL FUNCTIONS ------------------------------------------------
; See "threads.c" for documentation.
threads_init PROC PUBLIC
; Record the number of threads that have been spawned and initialize the barrier counter
mov DWORD PTR [thread_spawned_count], ecx
mov DWORD PTR [thread_barrier_counter], ecx
ret
threads_init ENDP
; ---------
threads_save_context_to PROC PUBLIC
mov QWORD PTR [rcx+0], r12
mov QWORD PTR [rcx+8], r13
mov QWORD PTR [rcx+16], r14
mov QWORD PTR [rcx+24], r15
mov QWORD PTR [rcx+32], rdi
mov QWORD PTR [rcx+40], rsi
mov QWORD PTR [rcx+48], rbx
mov QWORD PTR [rcx+56], rbp
ret
threads_save_context_to ENDP
; ---------
threads_submit_common_thread_info PROC PUBLIC
vpinsrd xmm_threadinfo, xmm_threadinfo, ecx, 0 ; local thread ID
vpinsrd xmm_threadinfo, xmm_threadinfo, edx, 1 ; global thread ID
mov rcx, r8
mov rdx, r9
vpinsrd xmm_threadinfo, xmm_threadinfo, ecx, 2 ; thread group number
vpinsrd xmm_threadinfo, xmm_threadinfo, edx, 3 ; threads per group
ret
threads_submit_common_thread_info ENDP
; ---------
threads_submit_other_thread_info PROC PUBLIC
xor rax, rax
vpinsrq xmm0, xmm0, rax, 1 ; per-thread 64-bit variable (initialize to 0)
vpinsrd xmm0, xmm0, ecx, 0 ; total number of threads globally
vpinsrd xmm0, xmm0, edx, 1 ; total number of groups globally
vinsertf128 ymm_threadinfo, ymm_threadinfo, xmm0, 1
ret
threads_submit_other_thread_info ENDP
; ---------
threads_restore_context_from PROC PUBLIC
mov r12, QWORD PTR [rcx+0]
mov r13, QWORD PTR [rcx+8]
mov r14, QWORD PTR [rcx+16]
mov r15, QWORD PTR [rcx+24]
mov rdi, QWORD PTR [rcx+32]
mov rsi, QWORD PTR [rcx+40]
mov rbx, QWORD PTR [rcx+48]
mov rbp, QWORD PTR [rcx+56]
ret
threads_restore_context_from ENDP
; --------- FUNCTIONS ---------------------------------------------------------
; See "threads.h" for documentation.
threads_get_local_thread_id PROC PUBLIC
threads_helper_get_local_thread_id eax
ret
threads_get_local_thread_id ENDP
; ---------
threads_get_global_thread_id PROC PUBLIC
threads_helper_get_global_thread_id eax
ret
threads_get_global_thread_id ENDP
; ---------
threads_get_thread_group_id PROC PUBLIC
threads_helper_get_thread_group_id eax
ret
threads_get_thread_group_id ENDP
; ---------
threads_get_threads_per_group PROC PUBLIC
threads_helper_get_threads_per_group eax
ret
threads_get_threads_per_group ENDP
; ---------
threads_get_total_threads PROC PUBLIC
threads_helper_get_total_threads eax
ret
threads_get_total_threads ENDP
; ---------
threads_get_total_groups PROC PUBLIC
threads_helper_get_total_groups eax
ret
threads_get_total_groups ENDP
; ---------
threads_set_per_thread_variable PROC PUBLIC
threads_helper_set_per_thread_variable rcx
ret
threads_set_per_thread_variable ENDP
; ---------
threads_get_per_thread_variable PROC PUBLIC
threads_helper_get_per_thread_variable rax
ret
threads_get_per_thread_variable ENDP
; ---------
threads_barrier PROC PUBLIC
; read in the current value of the thread barrier flag
mov edx, DWORD PTR [thread_barrier_flag]
; atomically decrement the thread barrier counter and start waiting if needed
mov eax, 0ffffffffh
lock xadd DWORD PTR [thread_barrier_counter], eax
jne barrier_loop
; if all other threads have been here, clean up and signal them to wake up
mov ecx, DWORD PTR [thread_spawned_count]
mov DWORD PTR [thread_barrier_counter], ecx
inc DWORD PTR [thread_barrier_flag]
jmp barrier_done
; wait here for the signal
barrier_loop:
pause
cmp edx, DWORD PTR [thread_barrier_flag]
je barrier_loop
barrier_done:
ret
threads_barrier ENDP
; ---------
threads_merge_barrier PROC PUBLIC
; read in the current value of the thread barrier flag
mov edx, DWORD PTR [thread_barrier_flag]
; atomically decrement the thread barrier counter and start waiting if needed
mov eax, 0ffffffffh
lock xadd DWORD PTR [thread_barrier_counter], eax
jne merge_barrier_loop
; if all other threads have been here, clean up and signal them to wake up
mov ecx, DWORD PTR [thread_spawned_count]
mov DWORD PTR [thread_barrier_counter], ecx
inc DWORD PTR [thread_barrier_flag]
jmp merge_barrier_done
; wait here for the signal
merge_barrier_loop:
pause
cmp edx, DWORD PTR [thread_barrier_flag]
je merge_barrier_loop
merge_barrier_done:
ret
threads_merge_barrier ENDP
; ---------
threads_timed_barrier PROC PUBLIC
; capture the initial timestamp
lfence
rdtsc
shl rdx, 32
or rax, rdx
mov r8, rax
; perform the barrier
call threads_barrier
; capture the final timestamp and calculate the time taken
lfence
rdtsc
shl rdx, 32
or rax, rdx
sub rax, r8
ret
threads_timed_barrier ENDP
_TEXT ENDS
END
| 39.455939
| 158
| 0.43824
|
d9bd309e9cc74cc79159fca787a1b0892f1ea9a5
| 151
|
asm
|
Assembly
|
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/mak.lzh/mak/kart-effect-e.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/mak.lzh/mak/kart-effect-e.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/mak.lzh/mak/kart-effect-e.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
Name: kart-effect-e.asm
Type: file
Size: 27456
Last-Modified: '1992-08-06T07:16:54Z'
SHA-1: 659B7F4252B6835DAA58927F5FF2F75627B3CF14
Description: null
| 21.571429
| 47
| 0.807947
|
b682228b7b31fbc95c10177b42ea2d216350f8e4
| 14,174
|
asm
|
Assembly
|
test_programs/gets.asm
|
mfkiwl/QNICE-FPGA-hyperRAM
|
aabc8291ac1e0c4666c51f84acddf599d7521e53
|
[
"BSD-3-Clause"
] | 53
|
2016-04-12T07:22:49.000Z
|
2022-03-25T09:24:48.000Z
|
test_programs/gets.asm
|
mfkiwl/QNICE-FPGA-hyperRAM
|
aabc8291ac1e0c4666c51f84acddf599d7521e53
|
[
"BSD-3-Clause"
] | 196
|
2020-06-05T04:59:50.000Z
|
2021-03-13T21:27:11.000Z
|
test_programs/gets.asm
|
mfkiwl/QNICE-FPGA-hyperRAM
|
aabc8291ac1e0c4666c51f84acddf599d7521e53
|
[
"BSD-3-Clause"
] | 15
|
2017-07-31T11:26:56.000Z
|
2022-02-22T14:22:46.000Z
|
; New gets library function for the monitor: development testbed
; Works together with c/test_programs/gets_test.c and therefore
; starts at 0xE000. Load this program first, before executing gets_test.c
;
; gets_test.c expects the following 4 words as a "magic" at 0xE000:
; 0xFF90, 0x0016, 0x2309, 0x1976
; It further expects the entry point of GETS to be 0xE004
;
; done by sy2002 in October 2016
; enhanced by sy2002 to support gets_s and gets_slf in December 2016
#include "../dist_kit/sysdef.asm"
#include "../dist_kit/monitor.def"
.ORG 0xE000
SYSCALL(exit, 1) ; 0xE000: 0xFF90 0x0016
.DW 0x2309, 0x1976 ; 0xE002: 0x2309 0x1976
; 0xE004: GETS entry for gets_test.c
;===================== REUSABLE CODE FOR MONITOR STARTS HERE =================
;
;***************************************************************************************
;* IO$GETS reads a zero terminated string from STDIN and echos typing on STDOUT
;*
;* ALWAYS PREFER IO$GETS_S OVER THIS FUNCTION!
;*
;* It accepts CR, LF and CR/LF as input terminator, so it directly works with various
;* terminal settings on UART and also with keyboards on PS/2 ("USB"). Furtheron, it
;* accepts BACKSPACE for editing the string.
;*
;* R8 has to point to a preallocated memory area to store the input line
;***************************************************************************************
;
IO$GETS MOVE R9, @--SP ; save original R9
MOVE R10, @--SP ; save original R10
XOR R9, R9 ; R9 = 0: unlimited chars
XOR R10, R10 ; R10 = 0: no LF at end of str.
RSUB IO$GETS_CORE, 1 ; get the unlimited string
MOVE @SP++, R10 ; restore original R10
MOVE @SP++, R9 ; restore original R9
RET
;
;***************************************************************************************
;* IO$GETS_S reads a zero terminated string from STDIN into a buffer with a
;* specified maximum size and echos typing on STDOUT
;*
;* It accepts CR, LF and CR/LF as input terminator, so it directly works with various
;* terminal settings on UART and also with keyboards on PS/2 ("USB"). Furtheron, it
;* accepts BACKSPACE for editing the string.
;*
;* A maximum amount of (R9 - 1) characters will be read, because the function will
;* add the zero terminator to the string, which then results in R9 words.
;*
;* R8 has to point to a preallocated memory area to store the input line
;* R9 specifies the size of the buffer, so (R9 - 1) characters can be read;
;* if R9 == 0, then an unlimited amount of characters is being read
;***************************************************************************************
;
IO$GETS_S MOVE R10, @--SP ; save original R10
XOR R10, R10 ; R10 = 0: no LF at end of str.
RSUB IO$GETS_CORE, 1 ; get string
MOVE @SP++, R10 ; restore original R10
RET
;
;***************************************************************************************
;* IO$GETS_SLF reads a zero terminated string from STDIN into a buffer with a specified
;* maximum size and echos typing on STDOUT. A line feed character is added
;* to the string in case the function is ended not "prematurely" by
;* reaching the buffer size, but by pressing CR or LF or CR/LF.
;*
;* It accepts CR, LF and CR/LF as input terminator, so it directly works with various
;* terminal settings on UART and also with keyboards on PS/2 ("USB"). Furtheron, it
;* accepts BACKSPACE for editing the string.
;*
;* A maximum amount of (R9 - 1) characters will be read, because the function will
;* add the zero terminator to the string, which then results in R9 words.
;*
;* R8 has to point to a preallocated memory area to store the input line
;* R9 specifies the size of the buffer, so (R9 - 1) characters can be read;
;* if R9 == 0, then an unlimited amount of characters is being read
;***************************************************************************************
;
IO$GETS_SLF MOVE R10, @--SP ; save original R10
MOVE 1, R10 ; R10 = 1: add LF, if the function
; ends regularly, i.e. by a key
; stroke (LF, CR or CR/LF)
RSUB IO$GETS_CORE, 1 ; get string
MOVE @SP++, R10 ; restore original R10
RET
;
;***************************************************************************************
;* IO$GETS_CORE implements the various gets variants.
;*
;* Refer to the comments for IO$GETS, IO$GET_S and IO$GET_SLF
;*
;* R8 has to point to a preallocated memory area to store the input line
;* R9 specifies the size of the buffer, so (R9 - 1) characters can be read;
;* if R9 == 0, then an unlimited amount of characters is being read
;* R10 specifies the LF behaviour: R10 = 0 means never add LF, R10 = 1 means: add a
;* LF when the input is ended by a key stroke (LF, CR or CR/LF) in contrast to
;* automatically ending due to a full buffer
;***************************************************************************************
;
IO$GETS_CORE INCRB
MOVE R10, @--SP ; save original R10
MOVE R11, @--SP ; save original R11
MOVE R12, @--SP ; save original R12
MOVE R10, R12 ; R12 = add LF flag
XOR R11, R11 ; R11 = character counter = 0
MOVE R9, R10 ; R10 = max characters
SUB 1, R10 ; R10 = R9 - 1 characters
MOVE R8, R0 ; save original R8
MOVE R8, R1 ; R1 = working pointer
_IO$GETS_LOOP CMP R9, 0 ; unlimited characters?
RBRA _IO$GETS_GETC, Z ; yes
CMP R11, R10 ; buffer size - 1 reached?
RBRA _IO$GETS_ZT, Z ; yes: add zero terminator
ADD 1, R11 ; no: next character
_IO$GETS_GETC SYSCALL(getc, 1) ; get char from STDIN
CMP R8, 0x000D ; accept CR as line end
RBRA _IO$GETS_CR, Z
CMP R8, 0x000A ; accept LF as line end
RBRA _IO$GETS_LF, Z
CMP R8, 0x0008 ; use BACKSPACE for editing
RBRA _IO$GETS_BS, Z
CMP R8, 0x007F ; treat DEL key as BS, e.g. for ..
RBRA _IO$GETS_DEL, Z ; .. MAC compatibility in EMU
_IO$GETS_ADDBUF MOVE R8, @R1++ ; store char to buffer
_IO$GETS_ECHO SYSCALL(putc, 1) ; echo char on STDOUT
RBRA _IO$GETS_LOOP, 1 ; next character
_IO$GETS_LF CMP R12, 0 ; evaluate LF flag
RBRA _IO$GETS_ZT, Z ; 0 = do not add LF flag
MOVE 0x000A, @R1++ ; add LF
_IO$GETS_ZT MOVE 0, @R1 ; add zero terminator
MOVE R0, R8 ; restore original R8
MOVE @SP++, R12 ; restore original R12
MOVE @SP++, R11 ; restore original R11
MOVE @SP++, R10 ; restore original R10
DECRB
RET
; For also accepting CR/LF, we need to do a non-blocking
; check on STDIN, if there is another character waiting.
; IO$GETCHAR is a blocking call, so we cannot use it here.
; STDIN = UART, if bit #0 of IO$SWITCH_REG = 0, otherwise
; STDIN = PS/2 ("USB") keyboard
;
; At a terminal speed of 115200 baud = 14.400 chars/sec
; (for being save, let us assume only 5.000 chars/sec)
; and a CPU frequency of 50 MHz we need to wait about
; 10.000 CPU cycles until we check, if the terminal program
; did send one other character. The loop at GETS_CR_WAIT
; costs about 7 cycles per iteration, so we loop (rounded up)
; 2.000 times.
; As a simplification, we assume the same waiting time
; for a PS/2 ("USB") keyboard
_IO$GETS_CR MOVE 2000, R3 ; CPU speed vs. transmit speed
_IO$GETS_CRWAIT SUB 1, R3
RBRA _IO$GETS_CRWAIT, !Z
MOVE IO$SWITCH_REG, R2 ; read the switch register
MOVE @R2, R2
AND 0x0001, R2 ; lowest bit set?
RBRA _IO$GETS_CRUART, Z ; no: read from UART
MOVE IO$KBD_STATE, R2 ; read the keyboard status reg.
MOVE @R2, R2
AND 0x0001, R2 ; char waiting/lowest bit set?
RBRA _IO$GETS_LF, Z ; no: then add zero term. and ret.
MOVE IO$KBD_DATA, R2 ; yes: read waiting character
MOVE @R2, R2
RBRA _IO$GETS_CR_LF, 1 ; check for LF
_IO$GETS_CRUART MOVE IO$UART_SRA, R2 ; read UART status register
MOVE @R2, R2
AND 0x0001, R2 ; is there a character waiting?
RBRA _IO$GETS_LF, Z ; no: then add zero term. and ret.
MOVE IO$UART_RHRA, R2 ; yes: read waiting character
MOVE @R2, R2
_IO$GETS_CR_LF CMP R2, 0x000A ; is it a LF (so we have CR/LF)?
RBRA _IO$GETS_LF, Z ; yes: then add zero trm. and ret.
; it is CR/SOMETHING, so add both: CR and "something" to
; the string and go on waiting for input, but only of the
; buffer is large enough. Otherwise only add CR.
MOVE 0x000D, @R1++ ; add CR
CMP R9, 0 ; unlimited characters?
RBRA _IO$GETS_CRSS, Z ; yes: go on and add SOMETHING
CMP R11, R10 ; buffer size - 1 reached?
RBRA _IO$GETS_ZT, Z ; yes: add zero terminator and end
ADD 1, R11 ; increase amount of stored chars
_IO$GETS_CRSS MOVE R2, R8 ; no: prepare to add SOMETHING
RBRA _IO$GETS_ADDBUF, 1 ; add it to buffer and go on
; handle BACKSPACE for editing and accept DEL as alias for BS
;
; For STDOUT = UART it is kind of trivial, because you "just"
; need to rely on the fact, that the terminal settings are
; correct and then the terminal program takes care of the
; nitty gritty details like moving the cursor and scrolling.
;
; For STDOUT = VGA, this needs to be done manually by this
; routine.
_IO$GETS_DEL MOVE 0x0008, R8 ; treat DEL as BS
_IO$GETS_BS SUB 1, R11 ; do not count DEL/BS character
CMP R0, R1 ; beginning of string?
RBRA _IO$GETS_LOOP, Z ; yes: ignore BACKSPACE key
SUB 1, R1 ; delete last char in memory
SUB 1, R11 ; do not count last char in mem.
MOVE IO$SWITCH_REG, R2 ; read the switch register
MOVE @R2, R2
AND 0x0002, R2 ; bit #1 set?
RBRA _IO$GETS_ECHO, Z ; no: STDOUT = UART: just echo
MOVE VGA$CR_X, R2 ; R2: HW X-register
MOVE VGA$CR_Y, R3 ; R3: HW Y-register
MOVE VGA$CHAR, R4 ; R4: HW put/get character reg.
MOVE _VGA$X, R5 ; R5: SW X-register
MOVE _VGA$Y, R6 ; R6: SW Y-register
CMP @R2, 0 ; cursor already at leftmost pos.?
RBRA _IO$GETS_BSLUP, Z ; yes: scroll one line up
SUB 1, @R2 ; cursor one position to the left
SUB 1, @R5
_IO$GETS_BSX MOVE 0x0020, @R4 ; delete char on the screen
RBRA _IO$GETS_LOOP, 1 ; next char/key
_IO$GETS_BSLUP CMP @R3, VGA$MAX_Y ; cursor already bottom line?
RBRA _IO$GETS_BSSUP, Z ; yes: scroll screen up
SUB 1, @R3 ; cursor one line up
SUB 1, @R6
_IO$GETS_BSXLU MOVE VGA$MAX_X, @R2 ; cursor to the rightpost pos.
MOVE VGA$MAX_X, @R5
RBRA _IO$GETS_BSX, 1 ; delete char on screen and go on
_IO$GETS_BSSUP MOVE VGA$OFFS_DISPLAY, R7 ; if RW > DISP then do not
MOVE VGA$OFFS_RW, R8 ; scroll up the screen
CMP @R8, @R7 ; see VGA$SCROLL_UP_1 for
RBRA _IO$GETS_BSUPSP, N ; an explanation
SUB VGA$CHARS_PER_LINE, @R7 ; do the visual scrolling
_IO$GETS_BSUPSP SUB VGA$CHARS_PER_LINE, @R8 ; scroll the RW window
CMP @R7, @R8 ; if after the scrolling
RBRA _IO$GETS_NOCRS, !Z ; RW = DISP then show
MOVE VGA$STATE, R8 ; the cursor
OR VGA$EN_HW_CURSOR, @R8
_IO$GETS_NOCRS MOVE VGA$MAX_Y, @R3 ; cursor to bottom
MOVE VGA$MAX_Y, @R6
RBRA _IO$GETS_BSXLU, 1 ; cursor to rightmost pos.
;===================== REUSABLE CODE FOR MONITOR ENDS HERE ===================
#include "../monitor/variables.asm"
| 51.729927
| 93
| 0.494568
|
fe1830aa24030c42dc665ddc117108947844c43e
| 7,265
|
asm
|
Assembly
|
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca.log_21829_508.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca.log_21829_508.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca.log_21829_508.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 %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x8fc7, %rsi
lea addresses_D_ht+0x1b547, %rdi
clflush (%rdi)
nop
nop
nop
nop
and $49505, %rbp
mov $64, %rcx
rep movsq
nop
nop
nop
nop
xor %r13, %r13
lea addresses_WC_ht+0x12947, %rsi
lea addresses_normal_ht+0x1ae47, %rdi
nop
nop
nop
cmp %rdx, %rdx
mov $81, %rcx
rep movsw
nop
nop
nop
dec %rdx
lea addresses_A_ht+0x1b247, %rsi
lea addresses_WC_ht+0x1dccd, %rdi
nop
nop
nop
nop
sub %r13, %r13
mov $12, %rcx
rep movsw
nop
nop
nop
cmp $32075, %rcx
lea addresses_WT_ht+0xa647, %rdi
nop
nop
xor $9181, %rdx
mov $0x6162636465666768, %rsi
movq %rsi, %xmm5
vmovups %ymm5, (%rdi)
nop
sub %rbp, %rbp
lea addresses_WT_ht+0x1e91b, %rsi
lea addresses_A_ht+0x1702b, %rdi
clflush (%rdi)
nop
nop
nop
add $48233, %r15
mov $88, %rcx
rep movsw
nop
nop
nop
nop
add %r13, %r13
lea addresses_UC_ht+0x8d47, %rsi
nop
cmp %rdi, %rdi
mov $0x6162636465666768, %r15
movq %r15, %xmm1
and $0xffffffffffffffc0, %rsi
movntdq %xmm1, (%rsi)
nop
nop
nop
nop
nop
add $60834, %rcx
lea addresses_UC_ht+0x1c967, %rsi
nop
nop
nop
nop
xor %rdx, %rdx
mov (%rsi), %rdi
inc %rcx
lea addresses_A_ht+0x114eb, %rsi
nop
nop
nop
nop
nop
sub %r13, %r13
movw $0x6162, (%rsi)
nop
nop
nop
nop
nop
and $4731, %rbp
lea addresses_WT_ht+0x1c607, %rsi
lea addresses_normal_ht+0x13d47, %rdi
clflush (%rsi)
nop
nop
xor %r15, %r15
mov $0, %rcx
rep movsl
nop
nop
nop
nop
nop
and $47740, %r13
lea addresses_WC_ht+0x1778f, %rsi
lea addresses_WC_ht+0x1eae9, %rdi
sub %rbp, %rbp
mov $95, %rcx
rep movsq
nop
nop
nop
nop
add %rsi, %rsi
lea addresses_normal_ht+0x15c17, %rsi
lea addresses_UC_ht+0xe047, %rdi
nop
xor %r13, %r13
mov $120, %rcx
rep movsq
nop
nop
inc %rbp
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r15
push %r9
push %rcx
push %rdi
push %rsi
// Store
lea addresses_UC+0x1148f, %rsi
nop
nop
nop
nop
xor %r15, %r15
mov $0x5152535455565758, %r12
movq %r12, (%rsi)
nop
inc %rsi
// Faulty Load
lea addresses_US+0x8d47, %rcx
nop
nop
nop
dec %r9
mov (%rcx), %r12w
lea oracles, %r15
and $0xff, %r12
shlq $12, %r12
mov (%r15,%r12,1), %r12
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r15
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_US'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': True, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_UC'}}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 2, 'NT': False, 'type': 'addresses_US'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_D_ht'}}
{'src': {'congruent': 10, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 7, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WT_ht'}}
{'src': {'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 2, 'same': True, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': True, 'size': 16, 'NT': True, 'type': 'addresses_UC_ht'}}
{'src': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 2, 'NT': True, 'type': 'addresses_A_ht'}}
{'src': {'congruent': 4, 'same': True, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 0, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_UC_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.948598
| 2,999
| 0.663042
|
0ed74f7b8d455d7e69a0fb7ef1f9462df264a125
| 841
|
asm
|
Assembly
|
Code/boot.asm
|
Paulo-player/-Paulo-player-PauloRamsesValeria_FinalProject_OS_RR_2021
|
3cf00ca0a1ab18db79332930f21460ff819b769e
|
[
"MIT"
] | 2
|
2021-09-21T15:45:03.000Z
|
2021-09-21T16:52:27.000Z
|
Code/boot.asm
|
Paulo-player/-Paulo-player-PauloRamsesValeria_FinalProject_OS_RR_2021
|
3cf00ca0a1ab18db79332930f21460ff819b769e
|
[
"MIT"
] | null | null | null |
Code/boot.asm
|
Paulo-player/-Paulo-player-PauloRamsesValeria_FinalProject_OS_RR_2021
|
3cf00ca0a1ab18db79332930f21460ff819b769e
|
[
"MIT"
] | null | null | null |
org 0x7C00 ;Endereço carregado pela BIOS
bits 16 ;Arquitetura de 16 bits
start:
cli ;Desabilita as interrupções
mov si, msg ;ponteiro SI guarda oo endereço de msg
mov ah, 0x0E ;print char
.loop lodsb ;Carrega si no registrador AL e incrementa (contador)
or al, al ;Checa se não há mais caracteres a serem imprimidos
jz halt ;Interrompe o loop
int 0x10 ;caso contrário, interrompe o loop
jmp .loop ;Próxima iteração e repetição do loop
halt: hlt ;hlt interrompe a execução do loop
msg: db "Hello, World!", 0 ;String armazenada no endereço 0,
times 510 - ($ - $$) db 0 ;Magic numbers para oidentificação do código como bootable
dw 0xAA55
| 44.263158
| 88
| 0.581451
|
57060a098f1fbf166ecff89a73a706b95964f779
| 135
|
asm
|
Assembly
|
src/print_string.asm
|
I8087/libm
|
47874572a2bc1356e1ab70f9c29b6fa50875f3c3
|
[
"BSD-2-Clause"
] | 13
|
2015-06-13T00:56:27.000Z
|
2022-01-25T16:55:26.000Z
|
src/print_string.asm
|
I8087/libm
|
47874572a2bc1356e1ab70f9c29b6fa50875f3c3
|
[
"BSD-2-Clause"
] | 10
|
2016-02-02T23:34:27.000Z
|
2019-06-11T22:41:23.000Z
|
src/print_string.asm
|
I8087/libm
|
47874572a2bc1356e1ab70f9c29b6fa50875f3c3
|
[
"BSD-2-Clause"
] | 1
|
2016-06-21T05:19:15.000Z
|
2016-06-21T05:19:15.000Z
|
global _print_string
_print_string:
push bp
mov bp, sp
mov si, word [bp+4]
call os_print_string
pop bp
ret
| 10.384615
| 24
| 0.622222
|
0a6ed6d61a642d085a3159aa52c5781c9f6bb1ea
| 507
|
asm
|
Assembly
|
oeis/344/A344005.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/344/A344005.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/344/A344005.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A344005: a(n) = smallest positive m such that n divides the oblong number m*(m+1).
; Submitted by Jon Maiga
; 1,1,2,3,4,2,6,7,8,4,10,3,12,6,5,15,16,8,18,4,6,10,22,8,24,12,26,7,28,5,30,31,11,16,14,8,36,18,12,15,40,6,42,11,9,22,46,15,48,24,17,12,52,26,10,7,18,28,58,15,60,30,27,63,25,11,66,16,23,14,70,8,72,36,24,19,21,12,78,15,80,40,82,20,34,42,29,32,88,9,13,23,30,46,19,32,96,48,44,24
add $0,1
mov $3,$0
lpb $0
add $2,1
lpb $2
mul $2,$0
mov $0,$3
dif $2,$3
lpe
sub $0,1
lpe
mov $0,$2
| 29.823529
| 276
| 0.607495
|
fed089128542244d7699306acb14293e28e0e579
| 5,147
|
asm
|
Assembly
|
hid_firmware/unityhwdemo.asm
|
dilshan/unityusb
|
c99f16884f4ecdd6848dcde51cbf08518b3c1e81
|
[
"CC-BY-3.0",
"MIT"
] | 7
|
2016-06-06T08:43:12.000Z
|
2021-09-08T12:31:00.000Z
|
hid_firmware/unityhwdemo.asm
|
dilshan/unityusb
|
c99f16884f4ecdd6848dcde51cbf08518b3c1e81
|
[
"CC-BY-3.0",
"MIT"
] | null | null | null |
hid_firmware/unityhwdemo.asm
|
dilshan/unityusb
|
c99f16884f4ecdd6848dcde51cbf08518b3c1e81
|
[
"CC-BY-3.0",
"MIT"
] | 6
|
2015-01-06T02:08:06.000Z
|
2019-09-18T14:43:52.000Z
|
_interrupt:
;unityhwdemo.c,10 :: void interrupt()
;unityhwdemo.c,12 :: USB_Interrupt_Proc();
CALL _USB_Interrupt_Proc+0, 0
;unityhwdemo.c,13 :: }
L_end_interrupt:
L__interrupt13:
RETFIE 1
; end of _interrupt
_clear_write_buffer:
;unityhwdemo.c,15 :: void clear_write_buffer()
;unityhwdemo.c,18 :: for(wpos = 0; wpos < USB_BUFFER_SIZE; wpos++)
CLRF R1
L_clear_write_buffer0:
MOVLW 64
SUBWF R1, 0
BTFSC STATUS+0, 0
GOTO L_clear_write_buffer1
;unityhwdemo.c,19 :: usb_writebuff[wpos] = 0x0;
MOVLW _usb_writebuff+0
MOVWF FSR1L
MOVLW hi_addr(_usb_writebuff+0)
MOVWF FSR1H
MOVF R1, 0
ADDWF FSR1L, 1
BTFSC STATUS+0, 0
INCF FSR1H, 1
CLRF POSTINC1+0
;unityhwdemo.c,18 :: for(wpos = 0; wpos < USB_BUFFER_SIZE; wpos++)
INCF R1, 1
;unityhwdemo.c,19 :: usb_writebuff[wpos] = 0x0;
GOTO L_clear_write_buffer0
L_clear_write_buffer1:
;unityhwdemo.c,20 :: usb_writebuff[0] = USB_LINK_SIGNATURE;
MOVLW 62
MOVWF 1344
;unityhwdemo.c,21 :: }
L_end_clear_write_buffer:
RETURN 0
; end of _clear_write_buffer
_init_system:
;unityhwdemo.c,23 :: void init_system()
;unityhwdemo.c,25 :: clear_write_buffer();
CALL _clear_write_buffer+0, 0
;unityhwdemo.c,26 :: HID_Enable(&usb_readbuff, &usb_writebuff);
MOVLW _usb_readbuff+0
MOVWF FARG_HID_Enable_readbuff+0
MOVLW hi_addr(_usb_readbuff+0)
MOVWF FARG_HID_Enable_readbuff+1
MOVLW _usb_writebuff+0
MOVWF FARG_HID_Enable_writebuff+0
MOVLW hi_addr(_usb_writebuff+0)
MOVWF FARG_HID_Enable_writebuff+1
CALL _HID_Enable+0, 0
;unityhwdemo.c,27 :: ADC_Init();
CALL _ADC_Init+0, 0
;unityhwdemo.c,28 :: INTCON2 = 0x0;
CLRF INTCON2+0
;unityhwdemo.c,29 :: ADCON1 = 0xE;
MOVLW 14
MOVWF ADCON1+0
;unityhwdemo.c,30 :: PORTB = 0;
CLRF PORTB+0
;unityhwdemo.c,31 :: TRISB = 0x0F;
MOVLW 15
MOVWF TRISB+0
;unityhwdemo.c,32 :: PORTA = 0;
CLRF PORTA+0
;unityhwdemo.c,33 :: TRISA = 0x1;
MOVLW 1
MOVWF TRISA+0
;unityhwdemo.c,34 :: Delay_ms(10);
MOVLW 156
MOVWF R12, 0
MOVLW 215
MOVWF R13, 0
L_init_system3:
DECFSZ R13, 1, 1
BRA L_init_system3
DECFSZ R12, 1, 1
BRA L_init_system3
;unityhwdemo.c,35 :: }
L_end_init_system:
RETURN 0
; end of _init_system
_tx_usr_inputs:
;unityhwdemo.c,37 :: void tx_usr_inputs()
;unityhwdemo.c,39 :: usb_writebuff[1] = button_buffer;
MOVF _button_buffer+0, 0
MOVWF 1345
;unityhwdemo.c,40 :: usb_writebuff[2] = (speed_val & 0xFF);
MOVLW 255
ANDWF _speed_val+0, 0
MOVWF 1346
;unityhwdemo.c,41 :: usb_writebuff[3] = (speed_val >> 8);
MOVF _speed_val+1, 0
MOVWF R0
CLRF R1
MOVF R0, 0
MOVWF 1347
;unityhwdemo.c,42 :: while(!HID_Write(&usb_writebuff, 64));
L_tx_usr_inputs4:
MOVLW _usb_writebuff+0
MOVWF FARG_HID_Write_writebuff+0
MOVLW hi_addr(_usb_writebuff+0)
MOVWF FARG_HID_Write_writebuff+1
MOVLW 64
MOVWF FARG_HID_Write_len+0
CALL _HID_Write+0, 0
MOVF R0, 1
BTFSS STATUS+0, 2
GOTO L_tx_usr_inputs5
GOTO L_tx_usr_inputs4
L_tx_usr_inputs5:
;unityhwdemo.c,43 :: asm nop;
NOP
;unityhwdemo.c,44 :: }
L_end_tx_usr_inputs:
RETURN 0
; end of _tx_usr_inputs
_main:
;unityhwdemo.c,46 :: void main()
;unityhwdemo.c,48 :: init_system();
CALL _init_system+0, 0
;unityhwdemo.c,49 :: while(1)
L_main6:
;unityhwdemo.c,51 :: speed_val = ADC_Get_Sample(0);
CLRF FARG_ADC_Get_Sample_channel+0
CALL _ADC_Get_Sample+0, 0
MOVF R0, 0
MOVWF _speed_val+0
MOVF R1, 0
MOVWF _speed_val+1
;unityhwdemo.c,52 :: if((button_buffer != (PORTB & 0xF)) || (abs(speed_val - speed_buffer) > ADC_NOISE_OFFSET))
MOVLW 15
ANDWF PORTB+0, 0
MOVWF R1
MOVF _button_buffer+0, 0
XORWF R1, 0
BTFSS STATUS+0, 2
GOTO L__main11
MOVF _speed_buffer+0, 0
SUBWF _speed_val+0, 0
MOVWF FARG_abs_a+0
MOVF _speed_buffer+1, 0
SUBWFB _speed_val+1, 0
MOVWF FARG_abs_a+1
CALL _abs+0, 0
MOVLW 128
MOVWF R2
MOVLW 128
XORWF R1, 0
SUBWF R2, 0
BTFSS STATUS+0, 2
GOTO L__main18
MOVF R0, 0
SUBLW 5
L__main18:
BTFSS STATUS+0, 0
GOTO L__main11
GOTO L_main10
L__main11:
;unityhwdemo.c,54 :: button_buffer = (PORTB & 0xF);
MOVLW 15
ANDWF PORTB+0, 0
MOVWF _button_buffer+0
;unityhwdemo.c,55 :: speed_buffer = speed_val;
MOVF _speed_val+0, 0
MOVWF _speed_buffer+0
MOVF _speed_val+1, 0
MOVWF _speed_buffer+1
;unityhwdemo.c,56 :: tx_usr_inputs();
CALL _tx_usr_inputs+0, 0
;unityhwdemo.c,57 :: }
L_main10:
;unityhwdemo.c,58 :: }
GOTO L_main6
;unityhwdemo.c,59 :: }
L_end_main:
GOTO $+0
; end of _main
| 26.807292
| 113
| 0.615698
|
0aaef4134ce94c3294e9ab9d8ddcb9f22da920e3
| 1,545
|
asm
|
Assembly
|
Driver/Printer/PrintCom/Color/colorSetFirstCMYK.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 504
|
2018-11-18T03:35:53.000Z
|
2022-03-29T01:02:51.000Z
|
Driver/Printer/PrintCom/Color/colorSetFirstCMYK.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 96
|
2018-11-19T21:06:50.000Z
|
2022-03-06T10:26:48.000Z
|
Driver/Printer/PrintCom/Color/colorSetFirstCMYK.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 73
|
2018-11-19T20:46:53.000Z
|
2022-03-29T00:59:26.000Z
|
COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: common print routines
FILE: colorSetFirstCMYK.asm
AUTHOR: Dave Durran
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 3/90 initial version
DESCRIPTION:
$Id: colorSetFirstCMYK.asm,v 1.1 97/04/18 11:51:40 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%}
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetFirstCMYK
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set next color in PState , and printer.
CALLED BY: LoadBandBuffer
PASS:
es - PState segment
RETURN: ds:si - pointer to next CMYK scan line
DESTROYED: ax
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 3/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetFirstCMYK proc near
uses ax,si
.enter
mov al,es:[PS_swath].[B_type] ;see if its a color bitmap.
and al,mask BM_FORMAT
cmp al,BMF_4CMYK ;CMYK?
clc ;(make sure that there are no
;bogus errors passed out).
jne exit ;if not, then exit
mov si,cs:colorCodeTab ;get offset to first color set
call SendCodeOut
exit:
.leave
ret
SetFirstCMYK endp
| 22.720588
| 79
| 0.493851
|
052274017b35130a79c0bd90fd2e8214a412f3ae
| 590
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/string/c/sccz80/strlcat.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/string/c/sccz80/strlcat.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/string/c/sccz80/strlcat.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; size_t strlcat(char * restrict s1, const char * restrict s2, size_t n)
SECTION code_clib
SECTION code_string
PUBLIC strlcat
EXTERN asm_strlcat
strlcat:
IF __CPU_GBZ80__ | __CPU_INTEL__
ld hl,sp+2
ld c,(hl)
inc hl
ld b,(hl)
inc hl
ld e,(hl)
inc hl
ld d,(hl)
inc hl
ld a,(hl+)
ld h,(hl)
ld l,a
call asm_strlcat
ld d,h
ld e,l
ret
ELSE
pop af
pop bc
pop de
pop hl
push hl
push de
push bc
push af
jp asm_strlcat
ENDIF
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _strlcat
defc _strlcat = strlcat
ENDIF
| 12.040816
| 72
| 0.633898
|
acc7c9adc89127d7cf161f5a2d093b2e2c397d1e
| 3,379
|
nasm
|
Assembly
|
src/stack-ops.nasm
|
Skyb0rg007/Fifth
|
1a2841aa82b8b415df6cec4ac97cb34136f0767b
|
[
"MIT"
] | null | null | null |
src/stack-ops.nasm
|
Skyb0rg007/Fifth
|
1a2841aa82b8b415df6cec4ac97cb34136f0767b
|
[
"MIT"
] | null | null | null |
src/stack-ops.nasm
|
Skyb0rg007/Fifth
|
1a2841aa82b8b415df6cec4ac97cb34136f0767b
|
[
"MIT"
] | null | null | null |
;; vim: ft=nasm
%ifndef FIFTH_STACK_OPS_NASM
%define FIFTH_STACK_OPS_NASM
%include "macros.nasm"
;; Single Stack Operations
; DUP ( x -- x x )
defcode "DUP", FTH_DUP
mov rax, [rsp]
push rax
NEXT
; DROP ( x -- )
defcode "DROP", FTH_DROP
pop rax
NEXT
; SWAP ( x1 x2 -- x2 x1 )
defcode "SWAP", FTH_SWAP
pop rax
pop rbx
push rax
push rbx
NEXT
; OVER ( x1 x2 -- x1 x2 x1 )
defcode "OVER", FTH_OVER
mov rax, [rsp + 8]
push rax
NEXT
; ROT ( x1 x2 x3 -- x2 x3 x1 )
defcode "ROT", FTH_ROT
pop rax
pop rbx
pop rcx
push rbx
push rax
push rcx
NEXT
; -ROT ( x1 x2 x3 -- x3 x1 x2 )
defcode "-ROT", FTH_NROT
pop rax
pop rbx
pop rcx
push rax
push rcx
push rbx
NEXT
; NIP ( x1 x2 -- x2 )
defcode "NIP", FTH_NIP
pop rax
pop rbx
push rax
NEXT
; TUCK ( x1 x2 -- x2 x1 x2 )
defcode "TUCK", FTH_TUCK
pop rax
pop rbx
push rax
push rbx
push rax
NEXT
; ?DUP ( x -- x x | 0 )
defcode "?DUP", FTH_QDUP
mov rax, [rsp]
test rax, rax
jz .1
push rax
.1: NEXT
;; Double stack operations
; 2DUP ( d -- d d )
defcode "2DUP", FTH_2DUP
mov rax, [rsp]
mov rbx, [rsp + 8]
push rbx
push rax
NEXT
; 2DROP ( d -- )
defcode "2DROP", FTH_2DROP
pop rax
pop rax
NEXT
; 2SWAP ( d1 d2 -- d2 d1 )
defcode "2SWAP", FTH_2SWAP
pop rax
pop rbx
pop rcx
pop rdx
push rbx
push rax
push rdx
push rcx
NEXT
; 2OVER ( d1 d2 -- d1 d2 d1 )
defcode "2OVER", FTH_2OVER
mov rax, [rsp + 16]
mov rbx, [rsp + 24]
push rbx
push rax
NEXT
; 2ROT ( d1 d2 d3 -- d2 d3 d1 )
defcode "2ROT", FTH_2ROT
pop rax
pop rbx
pop rcx
pop rdx
pop r8
pop r9
push rdx
push rcx
push r9
push r8
push rbx
push rax
NEXT
; 2NIP ( d1 d2 -- d2 )
defcode "2NIP", FTH_2NIP
pop rax
pop rbx
pop rcx
pop rcx
push rbx
push rax
NEXT
; 2TUCK ( d1 d2 -- d2 d1 d2 )
defcode "2TUCK", FTH_2TUCK
pop rax
pop rbx
pop rcx
pop rdx
push rbx
push rax
push rdx
push rcx
push rbx
push rax
NEXT
;; Return Stack
; >R ( x -- ) R: ( -- x )
defcode ">R", FTH_TOR
pop rax
RSP_PUSH rax
NEXT
; R> ( -- x ) R: ( x -- )
defcode "R>", FTH_FROMR
RSP_POP rax
push rax
NEXT
; R@ ( -- x ) R: ( x -- x )
defcode "R@", FTH_RFETCH
push QWORD [rbp]
NEXT
; RDROP ( -- ) R: ( x -- )
defcode "RDROP", FTH_RDROP
lea rbp, [rbp + 8]
NEXT
; 2>R ( d -- ) R: ( -- d )
defcode "2>R", FTH_2TOR
pop rax
pop rbx
RSP_PUSH rbx
RSP_PUSH rax
NEXT
; 2R> ( -- d ) R: ( d -- )
defcode "2R>", FTH_2FROMR
RSP_POP rax
RSP_POP rbx
push rbx
push rax
NEXT
; 2R@ ( -- d ) R: ( d -- d )
defcode "2R@", FTH_2RFETCH
push QWORD [rbp + 8]
push QWORD [rbp]
NEXT
; 2RDROP ( -- ) R: ( d -- )
defcode "2RDROP", FTH_2RDROP
lea rbp, [rbp + 16]
NEXT
%endif
| 16.482927
| 31
| 0.474993
|
deccbdd73719dc32234ea42142ead052eaa78874
| 1,300
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/stdio/z80/__stdio_file_deallocate.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/stdio/z80/__stdio_file_deallocate.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/stdio/z80/__stdio_file_deallocate.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_stdio
PUBLIC __stdio_file_deallocate
EXTERN __stdio_closed_file_list, asm_p_forward_list_alt_push_front
__stdio_file_deallocate:
; push FILE onto front of closed list
;
; This function undoes __stdio_file_allocate where a
; previously retrieved FILE* must be returned due
; to failed open. The returned FILE* is placed back
; onto the front of the closed list to maintain an
; LRU ordering.
;
; When a FILE is closed, the returned FILE* should
; be appended to the back of the closed list. This
; is done by fclose which is the only place where
; FILEs are closed.
;
; enter : de = FILE *
;
; uses : bc, de
push af
push hl
dec de
dec de ; de = & FILE.link
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $04
EXTERN __stdio_lock_file_list
push de
call __stdio_lock_file_list
pop de
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ld bc,__stdio_closed_file_list
call asm_p_forward_list_alt_push_front
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $04
EXTERN __stdio_unlock_file_list
call __stdio_unlock_file_list
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
pop hl
pop af
ret
| 20
| 66
| 0.628462
|
3b0d6b185de51a1a373ec9469a74bd9a03bbce3c
| 686
|
asm
|
Assembly
|
oeis/078/A078522.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/078/A078522.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/078/A078522.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A078522: Numbers n such that (n+1)*(2*n+1) is a perfect square.
; 0,24,840,28560,970224,32959080,1119638520,38034750624,1292061882720,43892069261880,1491038293021224,50651409893459760,1720656898084610640,58451683124983302024,1985636569351347658200,67453191674820837076800,2291422880374557112953024,77840924741060121003326040,2644300018315669557000132360,89828359697991704817001174224,3051519929713402294221039791280,103661849250557686298698351729320,3521451354589247931861522919005624,119625684206783871996993080894461920,4063751811676062399965903227492699680
seq $0,2315 ; NSW numbers: a(n) = 6*a(n-1) - a(n-2); also a(n)^2 - 2*b(n)^2 = -1 with b(n)=A001653(n+1).
pow $0,2
div $0,2
| 98
| 495
| 0.841108
|
de7f83e014c6169424a0808aea049d215a36e86d
| 655
|
asm
|
Assembly
|
source/ll_release.asm
|
mateuszstompor/Linked-List-x86-64-ASM
|
0652d03458ef65e93a6cad4586dacbd5893c5ed6
|
[
"MIT"
] | 5
|
2019-07-12T11:30:22.000Z
|
2022-03-07T18:39:52.000Z
|
source/ll_release.asm
|
mateuszstompor/Linked-List-x86-64-ASM
|
0652d03458ef65e93a6cad4586dacbd5893c5ed6
|
[
"MIT"
] | 6
|
2019-07-22T21:34:01.000Z
|
2020-02-09T15:09:10.000Z
|
source/ll_release.asm
|
mateuszstompor/Linked-List-x86-64-ASM
|
0652d03458ef65e93a6cad4586dacbd5893c5ed6
|
[
"MIT"
] | null | null | null |
;
; Created by Mateusz Stompór on 20/06/2019.
;
%include "source/list.asm"
%include "source/sizes.asm"
%include "source/offsets.asm"
%include "source/constants.asm"
%include "source/memory_management.asm"
global LL_RELEASE
section .text
LL_RELEASE:
; address sits in rdi register
push rbx
; deallocate list
mov rbx, [rdi]
mov rsi, LL_LIST_SIZE
call ll_mem_release
; deallocate nodes in the list if exist
deallocate_nodes:
cmp rbx, NULL_PTR
je finish
mov rdi, rbx
mov rbx, [rbx + 8]
mov rsi, LL_NODE_SIZE
call ll_mem_release
jmp deallocate_nodes
finish:
pop rbx
ret
| 19.264706
| 43
| 0.671756
|
397c69fc8d4d2903bccc5e614e786ad279ca7caf
| 6,691
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0xca_notsx.log_21829_1043.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0xca_notsx.log_21829_1043.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0xca_notsx.log_21829_1043.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x12a54, %r10
nop
xor $4714, %rsi
mov (%r10), %r12
add %r15, %r15
lea addresses_D_ht+0x5654, %r9
nop
nop
nop
nop
nop
add $63821, %r13
mov (%r9), %r10
nop
inc %r13
lea addresses_WC_ht+0xf154, %rsi
lea addresses_WT_ht+0x1a54, %rdi
nop
nop
nop
nop
cmp %r9, %r9
mov $3, %rcx
rep movsl
nop
nop
nop
nop
nop
sub %r10, %r10
lea addresses_UC_ht+0xc254, %r13
nop
nop
nop
nop
nop
dec %rsi
mov $0x6162636465666768, %r15
movq %r15, (%r13)
nop
nop
nop
nop
nop
cmp $1751, %r13
lea addresses_D_ht+0x2134, %r12
nop
nop
nop
cmp $19046, %r9
mov (%r12), %r13w
nop
nop
nop
nop
nop
inc %rsi
lea addresses_D_ht+0x19c34, %rsi
lea addresses_A_ht+0x1654, %rdi
nop
nop
nop
nop
nop
cmp $52538, %r13
mov $0, %rcx
rep movsb
nop
nop
nop
cmp %r9, %r9
lea addresses_WT_ht+0x12e74, %r9
nop
nop
nop
nop
nop
cmp $49685, %rsi
mov (%r9), %r15
nop
and %r15, %r15
lea addresses_normal_ht+0x1e254, %r13
nop
nop
nop
nop
nop
add %r9, %r9
movups (%r13), %xmm4
vpextrq $1, %xmm4, %r12
nop
nop
nop
nop
nop
inc %r9
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r15
pop %r13
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r14
push %r8
push %rbp
push %rcx
push %rdi
// Store
lea addresses_WC+0x16a54, %rcx
and $34974, %rbp
mov $0x5152535455565758, %r8
movq %r8, %xmm1
movups %xmm1, (%rcx)
nop
nop
nop
add $9519, %r8
// Store
lea addresses_A+0x1f984, %rdi
clflush (%rdi)
nop
nop
dec %r14
movb $0x51, (%rdi)
nop
nop
nop
nop
sub %rdi, %rdi
// Store
lea addresses_PSE+0x254, %rdi
nop
nop
nop
inc %r12
mov $0x5152535455565758, %rcx
movq %rcx, (%rdi)
nop
nop
sub %rdi, %rdi
// Faulty Load
lea addresses_PSE+0x254, %r8
nop
nop
nop
nop
nop
sub %r12, %r12
movb (%r8), %r14b
lea oracles, %r8
and $0xff, %r14
shlq $12, %r14
mov (%r8,%r14,1), %r14
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r14
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_WC', 'size': 16, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_A', 'size': 1, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 8, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}}
{'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'58': 21829}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 32.480583
| 2,999
| 0.655806
|
14f15c329ff1e100708b3cfce0c1c0afa447e7a3
| 266
|
asm
|
Assembly
|
SCS3211/Excercises/ex08.asm
|
UdeshUK/UCSC-CS
|
b7e8776218e709d4e0cabdfd04a5994a91bb4cf2
|
[
"Beerware"
] | 6
|
2018-06-13T16:11:41.000Z
|
2019-04-27T10:30:35.000Z
|
SCS3211/Excercises/ex08.asm
|
Useful-Ad-1249/UCSC-CS
|
b7e8776218e709d4e0cabdfd04a5994a91bb4cf2
|
[
"Beerware"
] | null | null | null |
SCS3211/Excercises/ex08.asm
|
Useful-Ad-1249/UCSC-CS
|
b7e8776218e709d4e0cabdfd04a5994a91bb4cf2
|
[
"Beerware"
] | null | null | null |
.text
li $t0,0
start:
beq $t0,10,exit
la $a0,prompt
li $v0,4
syscall
li $v0,5
syscall
mulu $t1,$t0,4
la $t2,arr
addu $t2,$t2,$t1
sw $v0,($t2)
addiu $t0,$t0,1
j start
exit:
li $v0,10
syscall
.data
prompt: .asciiz "Enter number: "
arr: .word 0:10
| 11.565217
| 32
| 0.605263
|
747b9d60c69b4ec89287bf030dcf1f9812f4866a
| 438
|
asm
|
Assembly
|
programs/oeis/174/A174316.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/174/A174316.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/174/A174316.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A174316: Sequence defined by a(0)=a(1)=a(2)=1, a(3)=2, a(4)=6 and the formula a(n)=2^(n-2)+2 for n>=5.
; 1,1,1,2,6,10,18,34,66,130,258,514,1026,2050,4098,8194,16386,32770,65538,131074,262146,524290,1048578,2097154,4194306,8388610,16777218,33554434,67108866,134217730,268435458,536870914,1073741826,2147483650
sub $0,2
mov $1,1
mov $2,2
mov $3,2
mov $4,2
lpb $0
sub $0,1
mov $1,$2
add $2,$3
add $4,$2
mov $2,$4
sub $4,4
lpe
| 25.764706
| 205
| 0.66895
|
a7f76fcbd72c869f2b490dbb483cef3b1c3ec961
| 1,060
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_st_zr_un_/i7-7700_9_0x48.log_13_2679.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_st_zr_un_/i7-7700_9_0x48.log_13_2679.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_st_zr_un_/i7-7700_9_0x48.log_13_2679.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 %r8
push %rcx
push %rdi
push %rdx
push %rsi
// REPMOV
lea addresses_PSE+0x1ed9e, %rsi
lea addresses_PSE+0x1351e, %rdi
nop
nop
nop
xor %r8, %r8
mov $101, %rcx
rep movsw
nop
nop
nop
xor %r8, %r8
// Faulty Load
lea addresses_A+0x1059e, %rcx
nop
nop
nop
nop
cmp $33385, %r10
mov (%rcx), %r8
lea oracles, %r10
and $0xff, %r8
shlq $12, %r8
mov (%r10,%r8,1), %r8
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r8
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_PSE', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_PSE', 'congruent': 7, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'6d': 3, '33': 7, '00': 3}
33 33 6d 33 33 33 6d 00 6d 33 00 33 00
*/
| 17.377049
| 145
| 0.642453
|
625b6960ee57b9730ed2d0d90cfd6ce7455e1604
| 1,057
|
asm
|
Assembly
|
programs/oeis/047/A047238.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/047/A047238.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/047/A047238.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A047238: Numbers that are congruent to {0, 2} mod 6.
; 0,2,6,8,12,14,18,20,24,26,30,32,36,38,42,44,48,50,54,56,60,62,66,68,72,74,78,80,84,86,90,92,96,98,102,104,108,110,114,116,120,122,126,128,132,134,138,140,144,146,150,152,156,158,162,164,168,170,174,176,180,182,186,188,192,194,198,200,204,206,210,212,216,218,222,224,228,230,234,236,240,242,246,248,252,254,258,260,264,266,270,272,276,278,282,284,288,290,294,296,300,302,306,308,312,314,318,320,324,326,330,332,336,338,342,344,348,350,354,356,360,362,366,368,372,374,378,380,384,386,390,392,396,398,402,404,408,410,414,416,420,422,426,428,432,434,438,440,444,446,450,452,456,458,462,464,468,470,474,476,480,482,486,488,492,494,498,500,504,506,510,512,516,518,522,524,528,530,534,536,540,542,546,548,552,554,558,560,564,566,570,572,576,578,582,584,588,590,594,596,600,602,606,608,612,614,618,620,624,626,630,632,636,638,642,644,648,650,654,656,660,662,666,668,672,674,678,680,684,686,690,692,696,698,702,704,708,710,714,716,720,722,726,728,732,734,738,740,744,746
mul $0,3
div $0,2
mov $1,$0
mul $1,2
| 132.125
| 963
| 0.728477
|
3e8a06684ac31022708791034df247399626972b
| 809
|
asm
|
Assembly
|
static/pages/over15/assets/arrays.asm
|
gorcajo/undermykeys
|
d3472c97ace4a249af3a96b014dd6f53cd1a0991
|
[
"MIT"
] | null | null | null |
static/pages/over15/assets/arrays.asm
|
gorcajo/undermykeys
|
d3472c97ace4a249af3a96b014dd6f53cd1a0991
|
[
"MIT"
] | null | null | null |
static/pages/over15/assets/arrays.asm
|
gorcajo/undermykeys
|
d3472c97ace4a249af3a96b014dd6f53cd1a0991
|
[
"MIT"
] | null | null | null |
// EXAMPLE #2: Arrays
// -----------------------------------------
// This program will add 2 to all the 16
// array elements.
// R0 will act as our array object
// R1 will be the array length
// R2 will act as the current array element pointer
// R3 will act as the current array element
// R4 will act as the 'i' counter
// Initializations:
copy r0 array
copy r1 #000f
// For loop:
copy r4 #0000
:forLoop
// For condition:
cmp r4 r1
copy r9 endForLoop
jge r9
// currentElement = array[i];
add r0 r4
copy r2 ra
copy r3 *r2
inc r3 #2
copy *r2 r3
inc r4 #1
jump forLoop
:endForLoop
// The program will "freeze" here, just
// for demonstration in the debugger tool:
:finish
nop
jump finish
end
// This is the array of 16 elements:
:array
04
0d
06
0e
07
0c
03
09
01
0b
0a
08
05
02
0f
| 14.446429
| 51
| 0.650185
|
c62b28402ff47a06b0b6607079b27ed6d4806aca
| 353
|
asm
|
Assembly
|
programs/oeis/073/A073089.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/073/A073089.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/073/A073089.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A073089: a(n) = (1/2)*(4n - 3 - Sum_{k=1..n} A007400(k)).
; 0,0,1,1,1,0,0,1,1,0,1,1,0,0,0,1,1,0,1,1,1,0,0,1,0,0,1,1,0,0,0,1,1,0,1,1,1,0,0,1,1,0,1,1,0,0,0,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0,0,1,1,0,1,1,1,0,0,1,1,0,1,1,0,0,0,1,1,0,1,1,1,0,0,1,0,0,1,1,0,0,0,1,0,0,1,1
lpb $0
add $1,1
sub $2,$0
trn $0,2
dif $0,$1
mod $2,2
bin $1,$2
lpe
mov $0,$1
| 27.153846
| 201
| 0.484419
|
f700161a95f9a24839ebe185e126e5a9f81eb0e8
| 679
|
asm
|
Assembly
|
programs/oeis/180/A180119.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/180/A180119.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/180/A180119.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A180119: a(n) = (n+2)! * Sum_{k = 1..n} 1/((k+1)*(k+2)).
; 0,1,6,36,240,1800,15120,141120,1451520,16329600,199584000,2634508800,37362124800,566658892800,9153720576000,156920924160000,2845499424768000,54420176498688000,1094805903679488000,23112569077678080000,510909421717094400000,11802007641664880640000,284372184127734743040000,7135156619932253552640000,186134520519971831808000000,5041143264082570444800000000,141555302855438578089984000000,4115992652258137116770304000000,123784667912355827363610624000000,3846166467276770350226472960000000,123342579812668842265883443200000000
mov $1,$0
mov $2,$0
pow $2,2
add $0,$2
mod $0,1024
div $0,2
lpb $1
mul $0,$1
sub $1,1
lpe
| 48.5
| 524
| 0.832106
|
0e8b1b496b5e7bcf50dee1f5a37ea9c1731b35b7
| 440
|
asm
|
Assembly
|
oeis/028/A028181.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/028/A028181.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/028/A028181.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A028181: Expansion of 1/((1-5x)(1-7x)(1-8x)(1-10x)).
; Submitted by Jon Maiga
; 1,30,569,8730,118461,1484910,17624209,201130050,2229604421,24178830390,257814842649,2713159309770,28259514317581,291954572713470,2996779685401889,30602208691495890,311213315402041941
mov $1,1
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
mul $1,5
sub $2,1
sub $0,$2
seq $0,19928 ; Expansion of 1/((1-5x)(1-7x)(1-8x)).
add $0,$1
add $1,$0
lpe
mov $0,$1
| 24.444444
| 184
| 0.690909
|
a5fc45ee6668eec1020d6bb6002fa74c4984cd01
| 718
|
asm
|
Assembly
|
programs/oeis/340/A340228.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/340/A340228.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/340/A340228.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A340228: a(n) is the sum of the lengths of all the segments used to draw a rectangle of height 2^(n-1) and width n divided into 2^(n-1) rectangles of unit height, in turn, divided into rectangles of unit height and lengths corresponding to the parts of the compositions of n.
; 4,11,27,64,149,342,775,1736,3849,8458,18443,39948,86029,184334,393231,835600,1769489,3735570,7864339,16515092,34603029,72351766,150994967,314572824,654311449,1358954522,2818572315,5838471196,12079595549,24964497438,51539607583,106300440608
mov $2,$0
add $0,2
seq $0,170060 ; Number of reduced words of length n in Coxeter group on 3 generators S_i with relations (S_i)^2 = (S_i S_j)^37 = I.
add $0,4
add $2,2
mul $0,$2
div $0,4
sub $0,1
| 59.833333
| 277
| 0.767409
|
bb4bfaec607065530c872b4029c3a320ca00f781
| 468
|
asm
|
Assembly
|
oeis/141/A141136.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/141/A141136.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/141/A141136.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A141136: p(p(A028815(n)-1)-1)-1, where p(n)=n-th prime.
; 1,2,6,28,52,112,172,270,316,420,592,700,910,1060,1150,1290,1510,1782,1830,2212,2376,2472,2740,2998,3256,3630,3930,4078,4270,4390,4546,5350,5590,5866,6100,6658,6802,7186,7602,7828,8218,8520,8712,9310,9438,9732
seq $0,8578 ; Prime numbers at the beginning of the 20th century (today 1 is no longer regarded as a prime).
sub $0,1
seq $0,40 ; The prime numbers.
sub $0,2
seq $0,40 ; The prime numbers.
sub $0,1
| 46.8
| 210
| 0.720085
|
76cf48d4eaa1ac100d6722f091849119ee0400e5
| 495
|
asm
|
Assembly
|
audio/sfx/unknown_80e5a.asm
|
adhi-thirumala/EvoYellow
|
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
|
[
"Unlicense"
] | 16
|
2018-08-28T21:47:01.000Z
|
2022-02-20T20:29:59.000Z
|
audio/sfx/unknown_80e5a.asm
|
adhi-thirumala/EvoYellow
|
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
|
[
"Unlicense"
] | 5
|
2019-04-03T19:53:11.000Z
|
2022-03-11T22:49:34.000Z
|
audio/sfx/unknown_80e5a.asm
|
adhi-thirumala/EvoYellow
|
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
|
[
"Unlicense"
] | 2
|
2019-12-09T19:46:02.000Z
|
2020-12-05T21:36:30.000Z
|
SFX_80e5a_4_Ch4:
executemusic
tempo 256
volume 7, 7
vibrato 6, 2, 6
duty 2
toggleperfectpitch
notetype 4, 11, 1
octave 3
G# 2
G# 2
G# 2
notetype 12, 11, 3
octave 4
E_ 4
endchannel
SFX_80e71_4_Ch5:
executemusic
vibrato 8, 2, 7
duty 2
notetype 4, 12, 1
octave 4
E_ 2
E_ 2
E_ 2
notetype 12, 12, 3
B_ 4
endchannel
SFX_80e81_4_Ch6:
executemusic
notetype 4, 1, 0
octave 4
B_ 1
rest 1
B_ 1
rest 1
B_ 1
rest 1
notetype 12, 1, 0
octave 4
B_ 2
rest 2
endchannel
| 10.531915
| 19
| 0.678788
|
ee535d942fc6312d0eae1f5b83281e86d76e0146
| 585
|
asm
|
Assembly
|
programs/oeis/045/A045326.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/045/A045326.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/045/A045326.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A045326: Primes congruent to {2, 3} mod 4.
; 2,3,7,11,19,23,31,43,47,59,67,71,79,83,103,107,127,131,139,151,163,167,179,191,199,211,223,227,239,251,263,271,283,307,311,331,347,359,367,379,383,419,431,439,443,463,467,479,487,491,499,503,523,547,563,571,587,599,607,619,631,643,647,659,683,691,719,727,739,743,751,787,811,823,827,839,859,863,883,887,907,911,919,947,967,971,983,991,1019,1031,1039,1051,1063,1087,1091,1103,1123,1151,1163,1171
lpb $0
add $2,1
sub $0,$2
mov $1,$0
max $1,0
seq $1,97538 ; Subtract 2 from primes == 3 (mod 4).
add $2,$1
lpe
add $1,2
mov $0,$1
| 41.785714
| 396
| 0.683761
|
a02cdd24f32eb640a997c7f798bf5d369b832422
| 387
|
asm
|
Assembly
|
code/hello_world/win/hello.asm
|
HudsonSchumaker/x86_64-NASM
|
5c899f60dc3b2c99650e75aef09cdff576893ab5
|
[
"MIT"
] | null | null | null |
code/hello_world/win/hello.asm
|
HudsonSchumaker/x86_64-NASM
|
5c899f60dc3b2c99650e75aef09cdff576893ab5
|
[
"MIT"
] | null | null | null |
code/hello_world/win/hello.asm
|
HudsonSchumaker/x86_64-NASM
|
5c899f60dc3b2c99650e75aef09cdff576893ab5
|
[
"MIT"
] | 1
|
2020-10-18T12:56:31.000Z
|
2020-10-18T12:56:31.000Z
|
; hello_world.asm
; prints hello, world! using syscall
; Hudson Schumaker
; SchumakerTeam Lab
extern printf
section .data
msg db 'Hello, Windows World!',0
fmt db "Windows 10 says: %s",10,0
section .text
global main
main:
push rbp
mov rbp, rsp
mov rcx, fmt
mov rdx, msg
sub rsp, 32
call printf
add rsp, 32
leave
ret
| 17.590909
| 39
| 0.604651
|
0cfc42fedb6a413a4225bd7f738fd4bd5b69f39d
| 752
|
asm
|
Assembly
|
5. Copy Data/5. Copy Data/Source.asm
|
ShinoharaYuuyoru/Assembly-Language-Project
|
968d1650f361493677cccbd2925ae8c24858b092
|
[
"MIT"
] | null | null | null |
5. Copy Data/5. Copy Data/Source.asm
|
ShinoharaYuuyoru/Assembly-Language-Project
|
968d1650f361493677cccbd2925ae8c24858b092
|
[
"MIT"
] | null | null | null |
5. Copy Data/5. Copy Data/Source.asm
|
ShinoharaYuuyoru/Assembly-Language-Project
|
968d1650f361493677cccbd2925ae8c24858b092
|
[
"MIT"
] | 1
|
2019-06-20T06:48:59.000Z
|
2019-06-20T06:48:59.000Z
|
.386
.model flat, stdcall
include kernel32.inc
includelib msvcrt.lib
printf PROTO C :dword, :vararg
.data
needSolve dd 262144 dup(69681965)
solvedData dd 262144 dup(0)
dataSize dd 1048576
startTime dd 0
endTime dd 0
useTime dd 0
Output1 db '%s%d', 0
Output2 db '%s', 0ah, 0
Msg1 db 'Used ', 0
Msg2 db 'ms.', 0
.code
start PROC
invoke GetTickCount
mov startTime, EAX
;mov DS, needSolve
mov ESI, OFFSET needSolve
;mov ES, solvedData
mov EDI, OFFSET solvedData
mov ECX, dataSize
rep movsb
invoke GetTickCount
mov endTime, EAX
mov ECX, startTime
mov EDX, endTime
sub EDX, ECX
mov useTime, EDX
invoke printf, offset Output1, offset Msg1, useTime
invoke printf, offset Output2, offset Msg2
ret
start ENDP
END start
| 16
| 52
| 0.726064
|
87e8a369745b28f7a2f0e38a5b31edd03bf561ab
| 1,240
|
asm
|
Assembly
|
programs/oeis/257/A257645.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/257/A257645.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/257/A257645.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A257645: a(n) = 15*n + 14.
; 14,29,44,59,74,89,104,119,134,149,164,179,194,209,224,239,254,269,284,299,314,329,344,359,374,389,404,419,434,449,464,479,494,509,524,539,554,569,584,599,614,629,644,659,674,689,704,719,734,749,764,779,794,809,824,839,854,869,884,899,914,929,944,959,974,989,1004,1019,1034,1049,1064,1079,1094,1109,1124,1139,1154,1169,1184,1199,1214,1229,1244,1259,1274,1289,1304,1319,1334,1349,1364,1379,1394,1409,1424,1439,1454,1469,1484,1499,1514,1529,1544,1559,1574,1589,1604,1619,1634,1649,1664,1679,1694,1709,1724,1739,1754,1769,1784,1799,1814,1829,1844,1859,1874,1889,1904,1919,1934,1949,1964,1979,1994,2009,2024,2039,2054,2069,2084,2099,2114,2129,2144,2159,2174,2189,2204,2219,2234,2249,2264,2279,2294,2309,2324,2339,2354,2369,2384,2399,2414,2429,2444,2459,2474,2489,2504,2519,2534,2549,2564,2579,2594,2609,2624,2639,2654,2669,2684,2699,2714,2729,2744,2759,2774,2789,2804,2819,2834,2849,2864,2879,2894,2909,2924,2939,2954,2969,2984,2999,3014,3029,3044,3059,3074,3089,3104,3119,3134,3149,3164,3179,3194,3209,3224,3239,3254,3269,3284,3299,3314,3329,3344,3359,3374,3389,3404,3419,3434,3449,3464,3479,3494,3509,3524,3539,3554,3569,3584,3599,3614,3629,3644,3659,3674,3689,3704,3719,3734,3749
mov $1,$0
mul $1,15
add $1,14
| 177.142857
| 1,179
| 0.773387
|
f1432391953a16a1d13f01ebe1e43537a6d38938
| 592
|
asm
|
Assembly
|
src/test/ref/pragma-noparenthesis.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | 2
|
2022-03-01T02:21:14.000Z
|
2022-03-01T04:33:35.000Z
|
src/test/ref/pragma-noparenthesis.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
src/test/ref/pragma-noparenthesis.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
// Test #pragma without parenthesis
// Commodore VIC 20 unexpanded executable PRG file
.file [name="pragma-noparenthesis.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$1001]
.segmentdef Code [start=$100d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(__start)
.label SCREEN = $400
.segment Code
__start: {
jsr init
jsr main
rts
}
init: {
// SCREEN[0] = 'a'
lda #'a'
sta SCREEN
// }
rts
}
main: {
// SCREEN[1] = 'b'
lda #'b'
sta SCREEN+1
// }
rts
}
| 19.096774
| 71
| 0.626689
|
9d701443d22f162f2ee94d8b1ed3ae4eb8d63600
| 1,672
|
asm
|
Assembly
|
text/maps/CeruleanBadgeHouse.asm
|
AmateurPanda92/pokemon-rby-dx
|
f7ba1cc50b22d93ed176571e074a52d73360da93
|
[
"MIT"
] | 9
|
2020-07-12T19:44:21.000Z
|
2022-03-03T23:32:40.000Z
|
text/maps/CeruleanBadgeHouse.asm
|
JStar-debug2020/pokemon-rby-dx
|
c2fdd8145d96683addbd8d9075f946a68d1527a1
|
[
"MIT"
] | 7
|
2020-07-16T10:48:52.000Z
|
2021-01-28T18:32:02.000Z
|
text/maps/CeruleanBadgeHouse.asm
|
JStar-debug2020/pokemon-rby-dx
|
c2fdd8145d96683addbd8d9075f946a68d1527a1
|
[
"MIT"
] | 2
|
2021-03-28T18:33:43.000Z
|
2021-05-06T13:12:09.000Z
|
_CeruleanHouse2Text_74e77::
text "#MON BADGEs"
line "are owned only by"
cont "skilled trainers."
para "I see you have"
line "at least one."
para "Those BADGEs have"
line "amazing secrets!"
prompt
_CeruleanHouse2Text_74e7c::
text "Now then..."
para "Which of the 8"
line "BADGEs should I"
cont "describe?"
done
_CeruleanHouse2Text_74e81::
text "Come visit me any"
line "time you wish."
done
_CeruleanHouse2Text_74e96::
text "The ATTACK of all"
line "#MON increases"
cont "a little bit."
para "It also lets you"
line "use FLASH any"
cont "time you desire."
prompt
_CeruleanHouse2Text_74e9b::
text "#MON up to L30"
line "will obey you."
para "Any higher, they"
line "become unruly!"
para "It also lets you"
line "use CUT outside"
cont "of battle."
prompt
_CeruleanHouse2Text_74ea0::
text "The SPEED of all"
line "#MON increases"
cont "a little bit."
para "It also lets you"
line "use FLY outside"
cont "of battle."
prompt
_CeruleanHouse2Text_74ea5::
text "#MON up to L50"
line "will obey you."
para "Any higher, they"
line "become unruly!"
para "It also lets you"
line "use STRENGTH out-"
cont "side of battle."
prompt
_CeruleanHouse2Text_74eaa::
text "The DEFENSE of all"
line "#MON increases"
cont "a little bit."
para "It also lets you"
line "use SURF outside"
cont "of battle."
prompt
_CeruleanHouse2Text_74eaf::
text "#MON up to L70"
line "will obey you."
para "Any higher, they"
line "become unruly!"
prompt
_CeruleanHouse2Text_74eb4::
text "Your #MON's"
line "SPECIAL abilities"
cont "increase a bit."
prompt
_CeruleanHouse2Text_74eb9::
text "All #MON will"
line "obey you!"
prompt
| 17.061224
| 27
| 0.707536
|
30deae39528526eba94be1a43cc5187f6d41bdc8
| 754
|
asm
|
Assembly
|
oeis/256/A256340.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/256/A256340.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/256/A256340.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A256340: Numbers which have only digits 7 and 8 in base 10.
; Submitted by Simon Strandgaard
; 7,8,77,78,87,88,777,778,787,788,877,878,887,888,7777,7778,7787,7788,7877,7878,7887,7888,8777,8778,8787,8788,8877,8878,8887,8888,77777,77778,77787,77788,77877,77878,77887,77888,78777,78778,78787,78788,78877,78878,78887,78888,87777,87778,87787,87788,87877,87878,87887,87888,88777,88778,88787,88788,88877,88878,88887,88888,777777,777778,777787,777788,777877,777878,777887,777888,778777,778778,778787,778788,778877,778878,778887,778888,787777,787778,787787,787788,787877,787878,787887,787888,788777
add $0,1
mov $2,1
lpb $0
mov $3,$0
mul $0,2
sub $0,1
div $0,4
mod $3,2
add $3,1
mul $3,$2
add $1,$3
mul $2,10
lpe
sub $2,$1
mov $0,$2
sub $0,1
| 35.904762
| 496
| 0.741379
|
7292299d219e4774c3e6588c65b646b306259f8a
| 730
|
asm
|
Assembly
|
oeis/321/A321544.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/321/A321544.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/321/A321544.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A321544: a(n) = Sum_{d|n} (-1)^(d-1)*d^5.
; Submitted by Jamie Morken(s1)
; 1,-31,244,-1055,3126,-7564,16808,-33823,59293,-96906,161052,-257420,371294,-521048,762744,-1082399,1419858,-1838083,2476100,-3297930,4101152,-4992612,6436344,-8252812,9768751,-11510114,14408200,-17732440,20511150,-23645064,28629152,-34636831,39296688,-44015598,52541808,-62554115,69343958,-76759100,90595736,-105730698,115856202,-127135712,147008444,-169909860,185349918,-199526664,229345008,-264105356,282492057,-302831281,346445352,-391715170,418195494,-446654200,503448552,-568496984,604168400
add $0,1
mov $2,$0
lpb $0
mul $1,-1
mov $3,$2
dif $3,$0
cmp $3,$2
cmp $3,0
mul $3,$0
sub $0,1
pow $3,5
add $1,$3
lpe
add $1,1
mov $0,$1
| 36.5
| 498
| 0.723288
|
4b2a553abc76ec945d63d7ecc6b19e65e5b3d0dc
| 2,667
|
asm
|
Assembly
|
src/win32/737.asm
|
amindlost/wdosx
|
1e256d22c1547e7b1f1ccd23e400f5b81b8bd013
|
[
"Unlicense"
] | 7
|
2022-01-20T08:27:54.000Z
|
2022-03-17T10:15:31.000Z
|
src/win32/737.asm
|
amindlost/wdosx
|
1e256d22c1547e7b1f1ccd23e400f5b81b8bd013
|
[
"Unlicense"
] | null | null | null |
src/win32/737.asm
|
amindlost/wdosx
|
1e256d22c1547e7b1f1ccd23e400f5b81b8bd013
|
[
"Unlicense"
] | null | null | null |
; ############################################################################
; ## WDOSX DOS Extender Copyright (c) 1996, 1999, Michael Tippach ##
; ## ##
; ## Released under the terms of the WDOSX license agreement. ##
; ############################################################################
;
; $Header: E:/RCS/WDOSX/0.95/SRC/win32/737.ASM 1.1 1999/03/06 16:25:34 MikeT Exp $
;
; ----------------------------------------------------------------------------
;
; $Log: 737.ASM $
; Revision 1.1 1999/03/06 16:25:34 MikeT
; Initial check in.
;
;
; ----------------------------------------------------------------------------
;
; Contents: XLAT table for code page 737 (Greek)
;
; ----------------------------------------------------------------------------
.386
.model flat
.data
PUBLIC CodePage737
CodePage737 LABEL WORD
DW 0
DW 1
DW 2
DW 3
DW 4
DW 5
DW 6
DW 7
DW 8
DW 9
DW 10
DW 11
DW 12
DW 13
DW 14
DW 15
DW 16
DW 17
DW 18
DW 19
DW 20
DW 21
DW 22
DW 23
DW 24
DW 25
DW 26
DW 27
DW 28
DW 29
DW 30
DW 31
DW 32
DW 33
DW 34
DW 35
DW 36
DW 37
DW 38
DW 39
DW 40
DW 41
DW 42
DW 43
DW 44
DW 45
DW 46
DW 47
DW 48
DW 49
DW 50
DW 51
DW 52
DW 53
DW 54
DW 55
DW 56
DW 57
DW 58
DW 59
DW 60
DW 61
DW 62
DW 63
DW 64
DW 65
DW 66
DW 67
DW 68
DW 69
DW 70
DW 71
DW 72
DW 73
DW 74
DW 75
DW 76
DW 77
DW 78
DW 79
DW 80
DW 81
DW 82
DW 83
DW 84
DW 85
DW 86
DW 87
DW 88
DW 89
DW 90
DW 91
DW 92
DW 93
DW 94
DW 95
DW 96
DW 97
DW 98
DW 99
DW 100
DW 101
DW 102
DW 103
DW 104
DW 105
DW 106
DW 107
DW 108
DW 109
DW 110
DW 111
DW 112
DW 113
DW 114
DW 115
DW 116
DW 117
DW 118
DW 119
DW 120
DW 121
DW 122
DW 123
DW 124
DW 125
DW 126
DW 127
DW 913
DW 914
DW 915
DW 916
DW 917
DW 918
DW 919
DW 920
DW 921
DW 922
DW 923
DW 924
DW 925
DW 926
DW 927
DW 928
DW 929
DW 931
DW 932
DW 933
DW 934
DW 935
DW 936
DW 937
DW 945
DW 946
DW 947
DW 948
DW 949
DW 950
DW 951
DW 952
DW 953
DW 954
DW 955
DW 956
DW 957
DW 958
DW 959
DW 960
DW 961
DW 963
DW 962
DW 964
DW 965
DW 966
DW 967
DW 968
DW 9617
DW 9618
DW 9619
DW 9474
DW 9508
DW 9569
DW 9570
DW 9558
DW 9557
DW 9571
DW 9553
DW 9559
DW 9565
DW 9564
DW 9563
DW 9488
DW 9492
DW 9524
DW 9516
DW 9500
DW 9472
DW 9532
DW 9566
DW 9567
DW 9562
DW 9556
DW 9577
DW 9574
DW 9568
DW 9552
DW 9580
DW 9575
DW 9576
DW 9572
DW 9573
DW 9561
DW 9560
DW 9554
DW 9555
DW 9579
DW 9578
DW 9496
DW 9484
DW 9608
DW 9604
DW 9612
DW 9616
DW 9600
DW 969
DW 940
DW 941
DW 942
DW 970
DW 943
DW 972
DW 973
DW 971
DW 974
DW 902
DW 904
DW 905
DW 906
DW 908
DW 910
DW 911
DW 177
DW 8805
DW 8804
DW 938
DW 939
DW 247
DW 8776
DW 176
DW 8729
DW 183
DW 8730
DW 8319
DW 178
DW 9632
DW 160
END
| 9.357895
| 82
| 0.569929
|
67166f891eb25ccd0902a33207744ce3a29d748e
| 7,198
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_761.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_21829_761.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_21829_761.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r8
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x133c1, %r9
xor $4058, %rax
movb $0x61, (%r9)
nop
nop
nop
nop
nop
cmp $59074, %r13
lea addresses_normal_ht+0x4801, %r14
nop
nop
inc %rdi
movw $0x6162, (%r14)
nop
nop
nop
nop
nop
xor %r8, %r8
lea addresses_A_ht+0x981, %rax
nop
nop
nop
nop
nop
inc %rbx
movw $0x6162, (%rax)
nop
dec %r14
lea addresses_WC_ht+0xacc1, %rsi
lea addresses_WT_ht+0x9841, %rdi
add $28067, %rax
mov $82, %rcx
rep movsl
xor $45810, %rbx
lea addresses_UC_ht+0xa0f5, %rsi
lea addresses_D_ht+0xbbc1, %rdi
nop
nop
nop
nop
cmp $64818, %rbx
mov $65, %rcx
rep movsl
nop
nop
nop
and $60103, %r13
lea addresses_A_ht+0x14d41, %rdi
nop
inc %rsi
mov $0x6162636465666768, %rbx
movq %rbx, (%rdi)
nop
nop
nop
nop
add $31977, %rax
lea addresses_normal_ht+0x37c1, %r9
nop
and %rdi, %rdi
movw $0x6162, (%r9)
nop
nop
nop
dec %rbx
lea addresses_normal_ht+0x18c54, %rsi
lea addresses_A_ht+0x4bc1, %rdi
sub %r9, %r9
mov $61, %rcx
rep movsw
xor $6047, %r13
lea addresses_UC_ht+0x72d1, %rsi
lea addresses_WC_ht+0x12fc1, %rdi
clflush (%rsi)
nop
nop
nop
add %r8, %r8
mov $21, %rcx
rep movsb
nop
nop
nop
nop
nop
and %rbx, %rbx
lea addresses_WT_ht+0x13c1, %r14
nop
nop
nop
dec %rax
mov (%r14), %r9
nop
nop
nop
nop
nop
and $21284, %r8
lea addresses_UC_ht+0x53c1, %rax
nop
nop
xor %rdi, %rdi
mov $0x6162636465666768, %r8
movq %r8, (%rax)
nop
nop
nop
nop
sub $42973, %rcx
lea addresses_normal_ht+0x4be1, %rcx
nop
nop
nop
nop
and $31543, %rsi
movl $0x61626364, (%rcx)
nop
nop
nop
nop
nop
xor $57833, %rdi
lea addresses_normal_ht+0x110ec, %r14
clflush (%r14)
nop
nop
nop
nop
add $55842, %rdi
mov $0x6162636465666768, %rax
movq %rax, (%r14)
nop
add %r14, %r14
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r8
pop %r14
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r8
push %r9
push %rbx
push %rdx
push %rsi
// Faulty Load
lea addresses_UC+0x7bc1, %rbx
nop
cmp $12597, %r8
movb (%rbx), %r9b
lea oracles, %rdx
and $0xff, %r9
shlq $12, %r9
mov (%rdx,%r9,1), %r9
pop %rsi
pop %rdx
pop %rbx
pop %r9
pop %r8
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_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': 3, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 6, 'size': 8, '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_normal_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 11, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 5, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': True, 'congruent': 0, 'size': 8, 'same': False, 'NT': True}}
{'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.112195
| 2,999
| 0.65935
|
17ef2b3418053009e21bd8b23147504d56d3d008
| 150
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/isunordered_callee.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/isunordered_callee.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/isunordered_callee.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
SECTION code_fp_math48
PUBLIC _isunordered_callee
EXTERN cm48_sdccix_isunordered_callee
defc _isunordered_callee = cm48_sdccix_isunordered_callee
| 16.666667
| 57
| 0.9
|
64ce220e5e5c0d6c7ae6c9993cd9106a84b4c641
| 768
|
asm
|
Assembly
|
oeis/202/A202065.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/202/A202065.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/202/A202065.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A202065: The number of simple labeled graphs on 2n nodes whose connected components are even length cycles.
; Submitted by Christian Krause
; 1,0,3,60,2835,219240,25519725,4169185020,910363278825,256123949281200,90240816705714675,38923077574032151500,20174526711617730727275,12373285262231460281715000,8863077725980930704895768125,7332455066541096999983523547500,6938701815018073060540196332340625,7447286741188229827626177640377180000,8998512632151873359418858147034352371875,12159615079963392952027885252646949425137500,18267261769341456266800512778240019887033471875,30347173791977217584158692726693282057350791125000
mul $0,2
mov $1,1
lpb $0
sub $0,1
mov $2,$3
add $3,$1
mov $1,$0
sub $0,1
div $2,2
mul $3,$1
mul $1,$2
mul $3,$0
lpe
mov $0,$1
| 40.421053
| 480
| 0.832031
|
8e1ba9bdc000c3732f6c20e64be9be63bf87ba19
| 2,323
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/stdio/z80/asm_vsprintf.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/stdio/z80/asm_vsprintf.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/stdio/z80/asm_vsprintf.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
; ===============================================================
; Jan 2014
; ===============================================================
;
; int vsprintf(char *s, const char *format, void *arg)
;
; As vfprintf but output is directed to a string.
;
; ===============================================================
SECTION code_stdio
PUBLIC asm_vsprintf
EXTERN STDIO_MSG_PUTC
EXTERN asm0_vfprintf_unlocked, asm_memset
asm_vsprintf:
; enter : de = char *format
; bc = void *stack_param = arg
; de' = char *s
;
; exit : de = char *format (next unexamined char)
; hl' = char *s (address of terminating '\0')
;
; success
;
; hl = number of chars output to string not including '\0'
; carry reset
;
; fail
;
; hl = - (chars output + 1) < 0
; carry set, errno set as below
;
; erange = width or precision out of range
; einval = unknown printf conversion
;
; note : High level stdio uses hl' to track number of chars
; written to the stream but modifies no other exx registers
;
; uses : all
; create a fake FILE structure on the stack
ld hl,0
push hl
ld hl,$8000 + (vsprintf_outchar / 256)
push hl
ld hl,195 + ((vsprintf_outchar % 256) * 256)
push hl
ld ix,0
add ix,sp ; ix = vsprintf_file *
; print to string
call asm0_vfprintf_unlocked
; repair stack
pop bc
pop bc
pop bc
; terminate string
exx
ex de,hl
ld (hl),0
exx
ret
vsprintf_outchar:
; vfprintf will generate two messages here
; STDIO_MSG_PUTC and STDIO_MSG_WRIT
cp STDIO_MSG_PUTC
jr z, _putc
_writ:
; de = char *s
; hl = length > 0
; hl' = void *buffer
; bc' = length > 0
push de
exx
pop de
ldir
push de
exx
pop de
or a
ret
_putc:
; de = char *s
; hl = number > 0
; e' = char
; bc' = number > 0
dec hl
ld a,h
or l
inc hl
jr nz, _putc_many
exx
ld a,e
exx
ld (de),a
inc de
ret
_putc_many:
push de
exx
pop hl
call asm_memset
push de
exx
pop de
ret
| 16.244755
| 72
| 0.484288
|
ff7c8b4834d6e76ee4f9e4db12069e50626af912
| 318
|
asm
|
Assembly
|
oeis/052/A052616.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/052/A052616.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/052/A052616.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A052616: E.g.f. (3+2x)/(1-x^2).
; Submitted by Jamie Morken(s1)
; 3,2,6,12,72,240,2160,10080,120960,725760,10886400,79833600,1437004800,12454041600,261534873600,2615348736000,62768369664000,711374856192000,19207121117184000,243290200817664000
mov $2,$0
gcd $2,2
add $2,1
lpb $0
mul $2,$0
sub $0,1
lpe
mov $0,$2
| 24.461538
| 178
| 0.735849
|
3b0fe8da31b37775932596734eb2c9d0c482b8bd
| 887
|
asm
|
Assembly
|
programs/oeis/158/A158775.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/158/A158775.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/158/A158775.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A158775: a(n) = 1600*n^2 + 40.
; 1640,6440,14440,25640,40040,57640,78440,102440,129640,160040,193640,230440,270440,313640,360040,409640,462440,518440,577640,640040,705640,774440,846440,921640,1000040,1081640,1166440,1254440,1345640,1440040,1537640,1638440,1742440,1849640,1960040,2073640,2190440,2310440,2433640,2560040,2689640,2822440,2958440,3097640,3240040,3385640,3534440,3686440,3841640,4000040,4161640,4326440,4494440,4665640,4840040,5017640,5198440,5382440,5569640,5760040,5953640,6150440,6350440,6553640,6760040,6969640,7182440,7398440,7617640,7840040,8065640,8294440,8526440,8761640,9000040,9241640,9486440,9734440,9985640,10240040,10497640,10758440,11022440,11289640,11560040,11833640,12110440,12390440,12673640,12960040,13249640,13542440,13838440,14137640,14440040,14745640,15054440,15366440,15681640,16000040
mov $1,2
add $1,$0
mul $1,$0
mul $1,1600
add $1,1640
mov $0,$1
| 88.7
| 789
| 0.8354
|
d5f589ea9145388f37e64ae5ed74248609950d58
| 2,063
|
asm
|
Assembly
|
programs/oeis/213/A213820.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/213/A213820.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/213/A213820.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A213820: Principal diagonal of the convolution array A213819.
; 2,18,60,140,270,462,728,1080,1530,2090,2772,3588,4550,5670,6960,8432,10098,11970,14060,16380,18942,21758,24840,28200,31850,35802,40068,44660,49590,54870,60512,66528,72930,79730,86940,94572,102638,111150,120120,129560,139482,149898,160820,172260,184230,196742,209808,223440,237650,252450,267852,283868,300510,317790,335720,354312,373578,393530,414180,435540,457622,480438,504000,528320,553410,579282,605948,633420,661710,690830,720792,751608,783290,815850,849300,883652,918918,955110,992240,1030320,1069362,1109378,1150380,1192380,1235390,1279422,1324488,1370600,1417770,1466010,1515332,1565748,1617270,1669910,1723680,1778592,1834658,1891890,1950300,2009900,2070702,2132718,2195960,2260440,2326170,2393162,2461428,2530980,2601830,2673990,2747472,2822288,2898450,2975970,3054860,3135132,3216798,3299870,3384360,3470280,3557642,3646458,3736740,3828500,3921750,4016502,4112768,4210560,4309890,4410770,4513212,4617228,4722830,4830030,4938840,5049272,5161338,5275050,5390420,5507460,5626182,5746598,5868720,5992560,6118130,6245442,6374508,6505340,6637950,6772350,6908552,7046568,7186410,7328090,7471620,7617012,7764278,7913430,8064480,8217440,8372322,8529138,8687900,8848620,9011310,9175982,9342648,9511320,9682010,9854730,10029492,10206308,10385190,10566150,10749200,10934352,11121618,11311010,11502540,11696220,11892062,12090078,12290280,12492680,12697290,12904122,13113188,13324500,13538070,13753910,13972032,14192448,14415170,14640210,14867580,15097292,15329358,15563790,15800600,16039800,16281402,16525418,16771860,17020740,17272070,17525862,17782128,18040880,18302130,18565890,18832172,19100988,19372350,19646270,19922760,20201832,20483498,20767770,21054660,21344180,21636342,21931158,22228640,22528800,22831650,23137202,23445468,23756460,24070190,24386670,24705912,25027928,25352730,25680330,26010740,26343972,26680038,27018950,27360720,27705360,28052882,28403298,28756620,29112860,29472030,29834142,30199208,30567240,30938250,31312250
mov $2,$0
add $0,2
mov $1,$0
add $2,$0
bin $2,2
mul $1,$2
| 206.3
| 1,939
| 0.857974
|
ce25401c24f69afd79892505ea31de10476c02e0
| 7,880
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1691.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_1691.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_1691.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_D_ht+0x23ae, %rsi
lea addresses_UC_ht+0xa54e, %rdi
sub $56467, %rax
mov $21, %rcx
rep movsb
nop
nop
xor %r13, %r13
lea addresses_WC_ht+0x8fae, %rsi
lea addresses_WT_ht+0x176e, %rdi
nop
nop
cmp $14393, %r15
mov $42, %rcx
rep movsw
nop
nop
nop
nop
sub %rcx, %rcx
lea addresses_A_ht+0x83ca, %rcx
nop
nop
nop
inc %rdx
mov (%rcx), %r15d
nop
nop
nop
xor %rax, %rax
lea addresses_WT_ht+0x1a58e, %rdi
nop
nop
sub %rdx, %rdx
movw $0x6162, (%rdi)
nop
and %r15, %r15
lea addresses_normal_ht+0x73ae, %rsi
lea addresses_normal_ht+0x6132, %rdi
nop
nop
nop
inc %r9
mov $117, %rcx
rep movsl
nop
sub %r15, %r15
lea addresses_normal_ht+0x1842e, %rsi
lea addresses_A_ht+0x164, %rdi
add %r13, %r13
mov $12, %rcx
rep movsl
nop
nop
nop
nop
nop
and $51768, %rcx
lea addresses_normal_ht+0x18c32, %r13
nop
nop
add %rdx, %rdx
movb $0x61, (%r13)
nop
nop
nop
nop
add %r15, %r15
lea addresses_A_ht+0x1be1b, %rcx
sub %rsi, %rsi
movw $0x6162, (%rcx)
xor %rsi, %rsi
lea addresses_WC_ht+0xffae, %rsi
lea addresses_D_ht+0x6fae, %rdi
nop
nop
nop
nop
nop
add $35632, %rax
mov $5, %rcx
rep movsq
nop
nop
nop
sub $3285, %r15
lea addresses_WT_ht+0x1efae, %rsi
lea addresses_normal_ht+0x18dae, %rdi
xor $37362, %r9
mov $57, %rcx
rep movsl
sub $4701, %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 %r10
push %r11
push %r13
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_PSE+0x142ae, %rcx
nop
nop
nop
nop
nop
cmp $63791, %r11
movb $0x51, (%rcx)
nop
nop
and %r11, %r11
// REPMOV
lea addresses_US+0xeb4e, %rsi
mov $0x1fc01a0000000b6e, %rdi
nop
nop
sub $41608, %r10
mov $17, %rcx
rep movsb
nop
nop
sub $23345, %r9
// Store
lea addresses_US+0x1a7ae, %rdx
nop
nop
cmp $12844, %r11
mov $0x5152535455565758, %rcx
movq %rcx, (%rdx)
nop
nop
nop
nop
dec %rsi
// Store
lea addresses_normal+0x1fdde, %rsi
nop
dec %r10
mov $0x5152535455565758, %r9
movq %r9, %xmm3
vmovups %ymm3, (%rsi)
nop
nop
nop
nop
nop
sub %rcx, %rcx
// Store
lea addresses_RW+0xcf42, %r13
clflush (%r13)
nop
nop
nop
add $41877, %rsi
mov $0x5152535455565758, %rcx
movq %rcx, (%r13)
nop
nop
nop
nop
sub $27172, %rdi
// Faulty Load
lea addresses_WT+0x16fae, %rsi
and %r10, %r10
mov (%rsi), %rdx
lea oracles, %rcx
and $0xff, %rdx
shlq $12, %rdx
mov (%rcx,%rdx,1), %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 7}}
{'src': {'type': 'addresses_US', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_NC', 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': True, 'size': 8, 'NT': False, 'same': False, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 2}}
[Faulty Load]
{'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 8, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}}
{'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 5}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}}
{'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}}
{'39': 21829}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
| 33.675214
| 2,999
| 0.657995
|
e22e8906230b01c29f315413f57f4ca03a9de3ec
| 664
|
asm
|
Assembly
|
oeis/318/A318446.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/318/A318446.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/318/A318446.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A318446: Inverse Möbius transform of A005187: a(n) = Sum_{d|n} A005187(d).
; 1,4,5,11,9,18,12,26,21,30,20,47,24,40,39,57,33,68,36,75,55,64,43,108,56,76,71,100,55,126,58,120,88,102,87,167,72,112,102,168,80,174,83,156,141,134,90,233,107,174,135,184,103,222,133,224,150,170,114,309,118,180,191,247,160,272,132,243,182,270,139,370,144,220,232,268,181,316,154,357,230,244,163,421,207,254,228,344,175,438,212,321,243,276,228,486,192,328,298,416
add $0,1
mov $2,$0
mov $4,1
lpb $0
mov $3,$2
dif $3,$0
cmp $3,$2
cmp $3,0
lpb $4
mul $3,$0
trn $4,$0
sub $0,1
lpb $3
add $1,$3
div $3,2
lpe
lpe
mov $4,2
lpe
add $1,1
mov $0,$1
| 26.56
| 363
| 0.620482
|
41f658eeffe0f7464c1c7e161f9b354c96f71009
| 6,050
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_10934_990.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_10934_990.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_10934_990.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r8
push %r9
push %rax
push %rbx
push %rcx
lea addresses_WC_ht+0x457, %rbx
nop
nop
nop
nop
nop
xor $10039, %rax
movb (%rbx), %r14b
nop
xor %r8, %r8
lea addresses_WC_ht+0x19897, %rcx
clflush (%rcx)
add %r14, %r14
movb $0x61, (%rcx)
dec %rcx
lea addresses_D_ht+0x17a57, %r8
nop
nop
dec %r11
mov (%r8), %r9d
nop
nop
nop
sub $17562, %rbx
lea addresses_WC_ht+0x197b7, %rcx
clflush (%rcx)
xor %r9, %r9
movups (%rcx), %xmm3
vpextrq $1, %xmm3, %rbx
nop
nop
nop
xor $9988, %rax
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r8
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r15
push %r8
push %rbx
push %rcx
push %rdx
push %rsi
// Store
lea addresses_RW+0x14157, %r8
nop
add %r12, %r12
movw $0x5152, (%r8)
add $30645, %rdx
// Store
lea addresses_US+0x13a13, %rsi
nop
nop
nop
nop
nop
sub $22146, %rcx
mov $0x5152535455565758, %rbx
movq %rbx, %xmm1
vmovups %ymm1, (%rsi)
nop
nop
nop
nop
and $47101, %rcx
// Load
lea addresses_D+0x12a57, %rbx
nop
and %r15, %r15
mov (%rbx), %r12
nop
cmp $39735, %rdx
// Store
lea addresses_normal+0x127df, %r12
nop
nop
nop
nop
nop
add %r15, %r15
mov $0x5152535455565758, %rbx
movq %rbx, %xmm0
vmovups %ymm0, (%r12)
nop
nop
nop
nop
nop
add $39348, %r8
// Store
lea addresses_WC+0x657, %r15
nop
nop
nop
nop
nop
xor $59716, %r8
movl $0x51525354, (%r15)
nop
nop
nop
nop
sub $4517, %rcx
// Faulty Load
lea addresses_D+0x12a57, %r12
nop
inc %rcx
mov (%r12), %rbx
lea oracles, %r8
and $0xff, %rbx
shlq $12, %rbx
mov (%r8,%rbx,1), %rbx
pop %rsi
pop %rdx
pop %rcx
pop %rbx
pop %r8
pop %r15
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': True}}
{'36': 10934}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 36.890244
| 2,999
| 0.652231
|
ce5ea4c5d1179c429e9735967b9990eaa451c2d3
| 97
|
asm
|
Assembly
|
pkgs/tools/yasm/src/modules/parsers/gas/tests/gas-line-err.asm
|
manggoguy/parsec-modified
|
d14edfb62795805c84a4280d67b50cca175b95af
|
[
"BSD-3-Clause"
] | 2,151
|
2020-04-18T07:31:17.000Z
|
2022-03-31T08:39:18.000Z
|
pkgs/tools/yasm/src/modules/parsers/gas/tests/gas-line-err.asm
|
manggoguy/parsec-modified
|
d14edfb62795805c84a4280d67b50cca175b95af
|
[
"BSD-3-Clause"
] | 395
|
2020-04-18T08:22:18.000Z
|
2021-12-08T13:04:49.000Z
|
pkgs/tools/yasm/src/modules/parsers/gas/tests/gas-line-err.asm
|
manggoguy/parsec-modified
|
d14edfb62795805c84a4280d67b50cca175b95af
|
[
"BSD-3-Clause"
] | 338
|
2020-04-18T08:03:10.000Z
|
2022-03-29T12:33:22.000Z
|
movw
.file "bar1.s"
movw
.line 600
movw
.line 200
movw
.file "bar2.s"
movw
.file 5 "bar3.s"
movw
| 8.083333
| 16
| 0.680412
|
ef24dd21a6899be8a08c3397cc69383e55f8c4dd
| 242
|
asm
|
Assembly
|
programs/oeis/016/A016821.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/016/A016821.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/016/A016821.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A016821: a(n) = (4n+1)^9.
; 1,1953125,387420489,10604499373,118587876497,794280046581,3814697265625,14507145975869,46411484401953,129961739795077,327381934393961,756680642578125,1628413597910449,3299763591802133
mul $0,4
add $0,1
pow $0,9
| 34.571429
| 185
| 0.818182
|
f76bbf145c1ac4c5b3c4940397048ae449febd18
| 12,561
|
asm
|
Assembly
|
P6/data_P6_2/ALUTest146.asm
|
alxzzhou/BUAA_CO_2020
|
b54bf367081a5a11701ebc3fc78a23494aecca9e
|
[
"Apache-2.0"
] | 1
|
2022-01-23T09:24:47.000Z
|
2022-01-23T09:24:47.000Z
|
P6/data_P6_2/ALUTest146.asm
|
alxzzhou/BUAA_CO_2020
|
b54bf367081a5a11701ebc3fc78a23494aecca9e
|
[
"Apache-2.0"
] | null | null | null |
P6/data_P6_2/ALUTest146.asm
|
alxzzhou/BUAA_CO_2020
|
b54bf367081a5a11701ebc3fc78a23494aecca9e
|
[
"Apache-2.0"
] | null | null | null |
addiu $1,$4,5611
addu $5,$4,$3
sra $3,$1,19
slti $1,$4,25808
sra $3,$3,23
sh $3,14($0)
lw $4,8($0)
xor $1,$3,$3
sllv $0,$4,$3
sh $1,14($0)
sh $4,16($0)
addiu $5,$3,-29630
slt $3,$3,$3
slti $5,$4,-1435
sw $1,16($0)
or $5,$5,$3
sb $5,6($0)
sltu $5,$4,$3
addiu $4,$3,522
addu $4,$3,$3
nor $3,$1,$3
xori $4,$4,60938
addiu $5,$0,-28253
slti $3,$5,25043
sra $3,$3,24
addiu $5,$0,-7191
sb $3,12($0)
sra $6,$4,3
sltu $3,$3,$3
andi $0,$5,40049
addu $3,$5,$3
addu $5,$4,$3
addu $1,$1,$3
sw $5,0($0)
slt $0,$1,$3
sw $1,16($0)
xor $3,$6,$3
lw $1,8($0)
ori $4,$0,57430
andi $0,$4,20947
lh $4,8($0)
subu $4,$1,$3
lb $1,13($0)
sb $3,10($0)
addu $0,$4,$3
lbu $3,10($0)
lhu $5,6($0)
addiu $4,$4,18753
addu $4,$4,$3
sw $1,16($0)
lb $4,10($0)
sltiu $6,$4,27282
sll $3,$1,12
addu $4,$3,$3
sb $4,4($0)
sltu $0,$5,$3
lb $2,5($0)
sra $1,$3,24
slti $4,$4,7886
subu $3,$2,$3
subu $3,$3,$3
lw $3,16($0)
srav $3,$5,$3
subu $3,$5,$3
sltiu $3,$3,26155
sltiu $1,$1,32741
sra $3,$3,31
srl $3,$3,12
lb $3,16($0)
lbu $5,10($0)
sll $4,$3,19
srl $3,$5,17
sll $4,$4,26
addiu $4,$4,8813
slti $3,$5,-3606
andi $3,$4,61212
lhu $4,8($0)
sll $3,$0,15
xori $4,$4,35366
srlv $3,$3,$3
lh $3,0($0)
andi $5,$4,24915
slti $4,$3,-30792
lbu $3,3($0)
addu $3,$4,$3
andi $1,$6,60309
lh $3,10($0)
lbu $1,11($0)
subu $0,$3,$3
lbu $5,2($0)
srav $1,$0,$3
lhu $4,14($0)
sll $5,$2,17
addu $3,$4,$3
xori $3,$5,5824
addu $4,$1,$3
subu $3,$3,$3
xor $4,$4,$3
sll $3,$3,21
xor $3,$3,$3
srav $0,$0,$3
ori $1,$3,20755
sllv $3,$1,$3
subu $0,$1,$3
slti $1,$1,-2720
sllv $3,$3,$3
sltiu $1,$1,-16627
nor $0,$3,$3
lhu $5,8($0)
xor $5,$4,$3
lh $3,14($0)
sll $3,$3,3
or $3,$4,$3
sllv $0,$3,$3
srav $1,$3,$3
lbu $6,5($0)
andi $3,$3,38382
lw $3,4($0)
subu $5,$3,$3
nor $5,$0,$3
xor $3,$3,$3
srl $5,$3,16
sltu $3,$5,$3
sra $3,$3,17
sb $4,5($0)
subu $1,$5,$3
sra $1,$3,0
sra $5,$4,16
lh $1,10($0)
lbu $3,12($0)
lh $4,14($0)
lb $0,12($0)
lw $5,12($0)
addiu $1,$1,6198
addiu $1,$1,22889
andi $1,$4,63350
addiu $3,$0,-10453
lh $3,6($0)
sltiu $3,$6,-1594
lbu $3,1($0)
slt $1,$4,$3
lbu $1,4($0)
xori $1,$5,11027
lb $4,4($0)
sb $6,9($0)
lbu $4,13($0)
slt $3,$5,$3
sw $1,12($0)
lb $4,15($0)
ori $5,$4,25520
sw $3,12($0)
sltu $6,$6,$3
sllv $3,$4,$3
lb $4,10($0)
sb $3,12($0)
lbu $1,14($0)
lhu $4,12($0)
sltu $1,$1,$3
sltu $5,$5,$3
srav $1,$4,$3
srlv $3,$6,$3
sllv $1,$5,$3
sltiu $4,$5,-17727
lhu $5,0($0)
sra $3,$4,26
slt $1,$1,$3
addiu $1,$0,8373
srl $6,$5,11
sltiu $1,$1,1434
sll $0,$4,29
srav $4,$4,$3
or $0,$0,$3
srlv $3,$3,$3
lw $0,8($0)
xori $3,$4,53516
lh $3,0($0)
lbu $3,6($0)
lb $3,3($0)
lhu $3,12($0)
lbu $3,2($0)
xor $0,$0,$3
slti $1,$3,-15147
sw $4,4($0)
lh $1,0($0)
sb $0,8($0)
andi $1,$0,51912
slti $4,$4,-11552
lw $4,0($0)
slt $3,$1,$3
or $3,$3,$3
lw $4,12($0)
sra $3,$4,5
addu $5,$5,$3
sll $4,$4,19
sllv $1,$2,$3
or $1,$5,$3
xori $1,$6,48933
lb $1,14($0)
lb $3,12($0)
subu $6,$4,$3
lhu $0,12($0)
slti $5,$5,7797
xor $3,$1,$3
subu $1,$3,$3
sltu $5,$3,$3
lbu $3,5($0)
addu $5,$3,$3
ori $3,$3,11337
lb $3,1($0)
sw $5,12($0)
slti $4,$4,1808
lb $4,3($0)
slt $5,$6,$3
addu $4,$3,$3
lh $4,6($0)
addu $1,$3,$3
sllv $3,$5,$3
sra $4,$1,26
sltiu $3,$6,1216
lbu $3,16($0)
sltu $4,$1,$3
slti $5,$5,8218
xori $4,$4,11649
subu $4,$5,$3
xori $3,$1,59173
sw $6,12($0)
lb $1,6($0)
or $4,$5,$3
srl $5,$5,10
andi $3,$3,51647
nor $1,$3,$3
or $1,$1,$3
subu $3,$4,$3
sh $3,16($0)
lhu $3,14($0)
sb $3,13($0)
andi $1,$5,2201
nor $4,$4,$3
slti $3,$3,4215
lh $3,12($0)
srl $5,$0,14
sh $4,4($0)
subu $4,$3,$3
srlv $4,$4,$3
subu $1,$3,$3
lh $4,4($0)
sra $3,$3,30
addu $4,$5,$3
sltu $4,$3,$3
sra $5,$5,6
subu $4,$4,$3
lbu $5,5($0)
slt $3,$3,$3
subu $1,$1,$3
sh $3,10($0)
nor $4,$4,$3
sllv $3,$3,$3
lw $4,12($0)
lbu $4,8($0)
srlv $3,$3,$3
sra $3,$4,30
sra $1,$5,27
or $3,$4,$3
sh $4,0($0)
addu $6,$3,$3
slti $3,$5,1711
srl $4,$1,27
sw $0,8($0)
srl $5,$5,25
addiu $3,$2,3371
srlv $1,$1,$3
sb $3,14($0)
sra $1,$4,30
addiu $3,$3,6216
sllv $3,$3,$3
addiu $3,$3,22441
lhu $5,10($0)
sra $3,$3,13
lbu $5,2($0)
andi $6,$6,28503
sra $6,$6,25
lbu $3,14($0)
sltu $3,$3,$3
sllv $5,$4,$3
lhu $5,8($0)
sra $0,$0,0
srl $6,$6,29
lb $6,2($0)
subu $2,$2,$3
sw $5,0($0)
srl $3,$6,16
sllv $4,$4,$3
andi $4,$4,6282
subu $0,$3,$3
sb $5,5($0)
srl $5,$1,17
andi $5,$6,26754
slti $0,$5,14011
addu $6,$6,$3
subu $5,$3,$3
ori $5,$5,15941
lhu $1,16($0)
sb $3,4($0)
slt $6,$1,$3
sll $3,$0,22
lhu $1,16($0)
nor $1,$4,$3
xori $5,$3,14433
sb $3,4($0)
sra $0,$3,28
xor $5,$3,$3
sll $4,$0,28
addu $4,$4,$3
slti $5,$6,19665
xor $4,$3,$3
ori $1,$3,44606
addiu $1,$4,7746
addiu $0,$6,3364
addiu $5,$5,10987
addu $4,$1,$3
lhu $5,2($0)
lh $6,4($0)
addu $5,$4,$3
sll $4,$3,30
addu $5,$4,$3
lbu $4,5($0)
sltiu $4,$4,-15110
sltiu $5,$3,-27702
xor $1,$5,$3
lhu $3,16($0)
lb $1,3($0)
sll $3,$3,30
addiu $4,$6,-22442
srlv $3,$6,$3
andi $1,$1,11198
sll $4,$4,14
andi $1,$5,31109
sll $1,$3,29
sllv $1,$3,$3
subu $5,$5,$3
addiu $4,$4,15347
srl $3,$5,31
addiu $3,$4,11605
and $5,$3,$3
sw $3,12($0)
or $1,$5,$3
addiu $3,$3,-26166
or $5,$5,$3
sltiu $3,$3,12040
lw $3,0($0)
xori $4,$5,64326
srlv $5,$5,$3
xori $3,$4,49608
sra $4,$4,25
srlv $3,$6,$3
sra $5,$5,1
or $4,$0,$3
slti $4,$4,-3963
sltiu $0,$3,5696
addu $5,$3,$3
slti $3,$0,-13381
subu $4,$0,$3
sw $4,16($0)
sra $4,$4,14
nor $5,$3,$3
and $5,$5,$3
addiu $0,$0,6127
subu $0,$4,$3
srav $3,$6,$3
sw $6,4($0)
sltiu $4,$4,8104
slti $1,$3,-26693
sra $4,$2,2
slti $0,$0,-23204
sltu $5,$5,$3
sh $6,0($0)
and $3,$4,$3
xor $4,$2,$3
sb $1,12($0)
nor $6,$4,$3
lhu $5,14($0)
lbu $4,6($0)
sltu $3,$3,$3
sra $5,$5,2
and $6,$4,$3
slti $3,$5,-14564
srl $3,$3,8
sh $5,2($0)
sra $0,$0,15
subu $5,$5,$3
slti $3,$5,-3238
and $3,$0,$3
sll $3,$3,21
subu $1,$1,$3
or $1,$4,$3
lh $4,14($0)
sltu $3,$3,$3
sltu $3,$3,$3
addiu $4,$4,28986
sltiu $3,$4,-14080
sll $3,$3,15
sltiu $1,$3,-18864
sh $4,2($0)
andi $4,$4,36215
sllv $3,$5,$3
and $4,$3,$3
and $4,$1,$3
sra $3,$3,21
andi $1,$4,34677
addiu $1,$3,12967
slti $4,$6,32473
addu $6,$4,$3
addu $3,$3,$3
lw $5,8($0)
sw $3,12($0)
sltiu $3,$6,-759
slti $0,$0,-12225
nor $3,$3,$3
srlv $3,$2,$3
srl $3,$4,23
subu $3,$4,$3
lw $5,8($0)
addiu $4,$3,-32131
sh $6,0($0)
srlv $3,$6,$3
addiu $0,$0,-13228
and $0,$0,$3
xor $1,$3,$3
slti $0,$3,-2026
sltu $1,$3,$3
lb $5,1($0)
xori $3,$3,34183
addu $1,$1,$3
sh $0,16($0)
sw $3,4($0)
addu $1,$4,$3
sllv $1,$5,$3
xori $3,$5,27809
xori $3,$3,16023
and $5,$5,$3
slt $0,$0,$3
slti $3,$3,-22848
xori $3,$3,11342
andi $1,$1,24358
addiu $5,$2,22815
lbu $1,8($0)
sltu $3,$1,$3
sltiu $0,$1,25475
lw $4,4($0)
sh $5,4($0)
sb $1,7($0)
sw $3,0($0)
addu $3,$3,$3
addu $5,$3,$3
sllv $3,$3,$3
lw $3,8($0)
sb $3,8($0)
addiu $5,$4,2571
slt $4,$3,$3
sw $3,8($0)
andi $5,$6,49958
addu $5,$4,$3
lw $3,4($0)
sb $4,8($0)
subu $3,$3,$3
or $1,$1,$3
subu $0,$4,$3
sh $5,12($0)
srav $0,$3,$3
subu $5,$5,$3
andi $6,$1,40003
sltiu $3,$3,16683
slti $4,$5,-22672
ori $1,$5,61592
lb $4,2($0)
and $4,$4,$3
subu $1,$1,$3
xor $5,$5,$3
sra $4,$4,13
addu $3,$3,$3
sltu $5,$0,$3
srl $3,$3,14
sw $3,8($0)
srav $4,$6,$3
sb $5,4($0)
sb $4,4($0)
sra $3,$4,26
xori $1,$5,50293
and $4,$4,$3
andi $1,$0,2946
subu $3,$5,$3
sh $3,4($0)
sll $5,$4,27
sltu $3,$3,$3
srav $3,$0,$3
lw $1,8($0)
lhu $0,0($0)
slt $4,$4,$3
lb $0,3($0)
addu $0,$5,$3
lh $1,12($0)
lw $5,12($0)
ori $1,$6,35446
slt $1,$3,$3
lh $4,4($0)
lh $6,12($0)
or $4,$0,$3
sltiu $0,$5,13384
lh $3,14($0)
subu $3,$3,$3
lb $5,11($0)
lh $1,0($0)
lw $4,12($0)
sb $0,14($0)
addu $6,$4,$3
addu $3,$1,$3
nor $5,$3,$3
addiu $3,$3,28434
xori $4,$5,1321
or $3,$4,$3
subu $0,$5,$3
lh $3,6($0)
srlv $3,$2,$3
sllv $3,$3,$3
subu $4,$3,$3
srav $2,$2,$3
sllv $3,$3,$3
xor $3,$2,$3
slt $5,$1,$3
sllv $3,$5,$3
lbu $4,6($0)
lhu $4,2($0)
addiu $3,$3,-8010
nor $3,$1,$3
andi $4,$1,53987
addu $3,$4,$3
or $3,$4,$3
sw $1,16($0)
xori $3,$3,9818
srl $5,$1,27
sltiu $5,$5,-24448
sllv $3,$5,$3
sh $6,2($0)
sh $6,6($0)
sra $1,$4,11
srav $6,$5,$3
addu $5,$3,$3
nor $3,$3,$3
lbu $5,7($0)
subu $4,$3,$3
sw $1,8($0)
xor $3,$4,$3
lhu $0,2($0)
lw $6,16($0)
addiu $6,$3,-17818
sw $5,4($0)
lh $3,16($0)
lbu $6,13($0)
addu $4,$2,$3
and $3,$1,$3
and $1,$4,$3
sra $3,$3,24
lb $1,8($0)
lh $4,6($0)
subu $3,$6,$3
srav $5,$4,$3
or $4,$4,$3
addu $1,$5,$3
sb $3,11($0)
xori $6,$6,15797
addu $6,$1,$3
sltiu $4,$4,-31884
sltu $4,$4,$3
ori $3,$3,57190
sh $4,8($0)
sltiu $5,$4,-24041
srav $0,$3,$3
srav $3,$3,$3
subu $4,$6,$3
ori $3,$3,14416
sltiu $5,$4,8995
andi $3,$3,6816
ori $4,$4,1976
addiu $1,$4,-26696
sw $3,8($0)
addiu $3,$4,27733
srav $0,$5,$3
lhu $3,8($0)
andi $4,$6,9227
addiu $3,$3,-14861
sll $6,$4,28
sltiu $6,$6,21400
xor $6,$3,$3
sw $6,4($0)
slt $3,$3,$3
xor $2,$2,$3
ori $4,$6,52488
or $4,$5,$3
xori $4,$4,61733
ori $5,$3,24413
srlv $4,$3,$3
lh $1,14($0)
sllv $0,$3,$3
subu $0,$3,$3
lbu $1,8($0)
nor $1,$1,$3
addu $3,$1,$3
andi $5,$6,53297
addiu $5,$6,11717
sb $6,1($0)
subu $4,$0,$3
lb $4,1($0)
ori $1,$4,13693
srlv $4,$4,$3
srlv $4,$4,$3
sb $4,14($0)
andi $6,$0,36521
lb $3,2($0)
nor $4,$4,$3
xor $3,$3,$3
slt $4,$6,$3
sw $5,16($0)
sb $2,16($0)
andi $5,$4,31502
sltu $1,$1,$3
addu $0,$4,$3
lb $4,16($0)
addiu $0,$0,-28843
slti $0,$0,-21922
addiu $3,$4,-25617
subu $5,$4,$3
sll $4,$1,20
addu $4,$1,$3
sll $1,$1,20
addu $5,$1,$3
srlv $5,$3,$3
xori $1,$0,43043
xori $0,$5,24876
xori $3,$6,20020
sllv $1,$4,$3
addu $1,$1,$3
slt $3,$1,$3
subu $6,$4,$3
sltiu $6,$4,-24363
xor $3,$2,$3
srlv $0,$1,$3
srav $3,$3,$3
subu $1,$1,$3
sh $0,2($0)
xori $1,$1,45907
andi $3,$3,60008
and $5,$5,$3
addiu $3,$4,5051
subu $3,$4,$3
sllv $4,$4,$3
sw $3,0($0)
lh $1,8($0)
lh $0,12($0)
nor $0,$0,$3
addiu $3,$4,15703
addu $1,$1,$3
sltu $4,$0,$3
subu $4,$4,$3
sll $4,$4,21
slt $4,$4,$3
sh $5,10($0)
andi $3,$4,29344
and $1,$3,$3
lhu $3,14($0)
xori $4,$3,37343
nor $3,$5,$3
sltu $4,$1,$3
ori $0,$3,56402
lh $5,12($0)
andi $1,$1,11605
sb $3,12($0)
and $5,$5,$3
xori $5,$5,11309
lhu $6,4($0)
or $6,$3,$3
lhu $1,14($0)
addiu $3,$4,-21371
lbu $3,9($0)
addu $3,$0,$3
sllv $1,$3,$3
sltu $1,$1,$3
slti $3,$3,-24694
sllv $3,$4,$3
lw $4,0($0)
xor $5,$3,$3
ori $0,$4,24093
sllv $3,$3,$3
sw $1,8($0)
ori $6,$3,9382
sltu $0,$0,$3
ori $5,$4,57149
and $4,$2,$3
srav $3,$3,$3
lb $3,12($0)
sltu $3,$1,$3
andi $5,$5,38173
xori $6,$3,65349
sll $4,$3,25
ori $0,$2,8940
ori $4,$0,35255
subu $4,$4,$3
sb $4,1($0)
lh $5,0($0)
addiu $4,$1,-16261
addu $6,$1,$3
nor $3,$3,$3
subu $3,$4,$3
lh $4,0($0)
and $3,$3,$3
subu $5,$4,$3
subu $3,$4,$3
lhu $3,8($0)
addiu $5,$5,-16165
addiu $5,$5,11314
lw $4,12($0)
lw $1,16($0)
subu $1,$5,$3
sltiu $1,$1,-18413
nor $3,$4,$3
sh $1,4($0)
sra $4,$4,21
sllv $0,$4,$3
sltu $3,$3,$3
subu $0,$3,$3
srav $4,$3,$3
lw $3,0($0)
lhu $4,6($0)
srl $0,$1,1
srav $4,$0,$3
addiu $0,$4,-13825
srav $4,$4,$3
subu $6,$5,$3
sltu $6,$3,$3
ori $0,$3,41292
xori $5,$6,43307
xor $6,$5,$3
addiu $3,$3,2765
sra $3,$4,25
sra $4,$4,19
and $4,$4,$3
xori $5,$5,17298
sll $3,$5,26
slti $4,$4,21020
andi $5,$3,58739
ori $3,$3,7530
or $3,$3,$3
and $5,$6,$3
sll $4,$4,3
lw $0,0($0)
andi $1,$4,51412
xor $5,$0,$3
subu $1,$2,$3
subu $4,$1,$3
sltu $1,$4,$3
sh $3,14($0)
srl $5,$3,21
xori $3,$5,41265
and $3,$4,$3
srav $3,$3,$3
or $3,$3,$3
sltu $3,$3,$3
srav $1,$4,$3
andi $1,$4,24108
xor $1,$3,$3
addu $4,$5,$3
sra $5,$3,0
andi $6,$3,36102
subu $1,$3,$3
sra $3,$5,12
and $3,$5,$3
subu $1,$1,$3
sllv $6,$1,$3
sh $6,0($0)
lh $4,0($0)
xor $1,$1,$3
nor $3,$3,$3
lh $4,0($0)
srav $3,$4,$3
slt $1,$0,$3
lb $3,14($0)
addu $1,$3,$3
sltu $3,$6,$3
addiu $6,$3,7157
and $4,$3,$3
andi $1,$1,59929
sra $1,$3,13
and $5,$3,$3
srlv $4,$3,$3
lh $5,4($0)
andi $4,$4,62690
sb $6,5($0)
addiu $4,$4,18993
srlv $3,$3,$3
ori $6,$2,11575
sltu $6,$3,$3
addu $0,$3,$3
nor $3,$1,$3
ori $1,$4,61209
lhu $4,10($0)
srlv $1,$4,$3
sw $4,0($0)
addu $3,$0,$3
addu $4,$2,$3
xori $4,$3,58426
lbu $4,0($0)
xor $3,$3,$3
addiu $3,$1,27821
sb $6,16($0)
or $4,$1,$3
sb $1,2($0)
lhu $3,4($0)
addiu $1,$6,-29804
sh $0,14($0)
slt $3,$0,$3
andi $6,$6,49873
lhu $4,2($0)
lbu $3,12($0)
addu $3,$2,$3
sb $5,5($0)
sltiu $5,$4,13138
addiu $0,$4,-8344
nor $6,$4,$3
sllv $0,$3,$3
sra $1,$3,29
addiu $3,$3,-5617
andi $3,$3,6529
lb $1,13($0)
sra $3,$3,19
slti $4,$4,24803
sll $0,$0,20
sltu $5,$5,$3
addu $6,$5,$3
addiu $1,$3,32110
sra $5,$5,25
sra $4,$6,14
lhu $1,0($0)
addu $6,$0,$3
lh $3,10($0)
srl $6,$2,12
slt $4,$1,$3
lb $5,9($0)
lhu $6,2($0)
ori $1,$3,53347
xor $1,$3,$3
andi $3,$6,61439
lb $0,12($0)
srl $4,$5,6
sllv $1,$3,$3
slti $3,$4,-10330
xor $3,$4,$3
ori $3,$4,53062
and $1,$5,$3
lw $3,0($0)
srav $1,$3,$3
srl $4,$4,21
lbu $6,1($0)
addiu $1,$3,-19731
srl $1,$1,5
subu $5,$4,$3
lw $1,0($0)
srav $5,$6,$3
ori $6,$6,36577
or $3,$4,$3
subu $3,$4,$3
andi $0,$1,54709
subu $6,$3,$3
sra $3,$4,19
addiu $3,$4,28421
and $3,$3,$3
subu $4,$4,$3
addu $3,$0,$3
sb $4,2($0)
sb $3,10($0)
srlv $4,$1,$3
addu $5,$0,$3
or $3,$3,$3
addu $3,$0,$3
srlv $0,$3,$3
sh $4,8($0)
xori $3,$3,1902
srl $3,$3,3
sb $3,7($0)
nor $4,$5,$3
| 14.129359
| 18
| 0.525117
|
5d5aaeb902bd08e0f3b5761d50fa11bfb958d71f
| 1,636
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/arch/sms/SMSlib/z80/asm_SMSlib_UNSAFE_outi.asm
|
RC2014Z80/z88dk
|
e5b9447b970e5fae26544b6d8aa5957c98ba0e6a
|
[
"ClArtistic"
] | 8
|
2017-01-18T12:02:17.000Z
|
2021-06-12T09:40:28.000Z
|
libsrc/_DEVELOPMENT/arch/sms/SMSlib/z80/asm_SMSlib_UNSAFE_outi.asm
|
RC2014Z80/z88dk
|
e5b9447b970e5fae26544b6d8aa5957c98ba0e6a
|
[
"ClArtistic"
] | 1
|
2017-03-06T07:41:56.000Z
|
2017-03-06T07:41:56.000Z
|
libsrc/_DEVELOPMENT/arch/sms/SMSlib/z80/asm_SMSlib_UNSAFE_outi.asm
|
RC2014Z80/z88dk
|
e5b9447b970e5fae26544b6d8aa5957c98ba0e6a
|
[
"ClArtistic"
] | 3
|
2017-03-07T03:19:40.000Z
|
2021-09-15T17:59:19.000Z
|
; **************************************************
; SMSlib - C programming library for the SMS/GG
; ( part of devkitSMS - github.com/sverx/devkitSMS )
; **************************************************
INCLUDE "SMSlib_private.inc"
SECTION code_clib
SECTION code_SMSlib
PUBLIC asm_SMSlib_outi_block
PUBLIC asm_SMSlib_outi32
PUBLIC asm_SMSlib_outi64
PUBLIC asm_SMSlib_outi128
asm_SMSlib_outi128:
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
asm_SMSlib_outi64:
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
asm_SMSlib_outi32:
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
outi
asm_SMSlib_outi_block:
ret
| 5.641379
| 52
| 0.499389
|
aae650a8603b801ae93fee5390da189298c0a9a5
| 307
|
asm
|
Assembly
|
picovm/asm-src/hello-world-linux64.asm
|
seanmcelroy/picovm
|
fd75ad2b9b11e537211f4bfafa16b7fb924f48fe
|
[
"MIT"
] | null | null | null |
picovm/asm-src/hello-world-linux64.asm
|
seanmcelroy/picovm
|
fd75ad2b9b11e537211f4bfafa16b7fb924f48fe
|
[
"MIT"
] | null | null | null |
picovm/asm-src/hello-world-linux64.asm
|
seanmcelroy/picovm
|
fd75ad2b9b11e537211f4bfafa16b7fb924f48fe
|
[
"MIT"
] | null | null | null |
section .data
hello_world db "Hello world!", 10
hello_world_len equ $ - hello_world
section .text
global _start
_start:
mov rax, 1
mov rdi, 1
mov rsi, hello_world
mov rdx, hello_world_len
syscall
mov rax, 60
mov rdi, 0
syscall
| 21.928571
| 40
| 0.570033
|
642e744de961d80723412161aec9bdb52c3718f5
| 323
|
asm
|
Assembly
|
programs/oeis/022/A022108.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/022/A022108.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/022/A022108.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A022108: Fibonacci sequence beginning 1, 18.
; 1,18,19,37,56,93,149,242,391,633,1024,1657,2681,4338,7019,11357,18376,29733,48109,77842,125951,203793,329744,533537,863281,1396818,2260099,3656917,5917016,9573933,15490949
mov $1,1
mov $2,11
lpb $0,1
sub $0,1
mov $3,$1
mov $1,1
add $1,$2
add $1,6
add $2,$3
lpe
| 23.071429
| 173
| 0.69969
|
b97937adac9b2c6a01add21404985c028d324aa9
| 609
|
asm
|
Assembly
|
xorg/server/module/amd64/cpuid_amd64.asm
|
MUzzell/xrdp
|
f6db1ac26962630ebf751fc8f4e8ce99680451be
|
[
"Apache-2.0"
] | 1
|
2017-02-01T22:44:28.000Z
|
2017-02-01T22:44:28.000Z
|
xorg/server/module/amd64/cpuid_amd64.asm
|
MUzzell/xrdp
|
f6db1ac26962630ebf751fc8f4e8ce99680451be
|
[
"Apache-2.0"
] | 2
|
2017-06-05T13:38:08.000Z
|
2019-06-04T14:29:21.000Z
|
xorg/server/module/amd64/cpuid_amd64.asm
|
MUzzell/xrdp
|
f6db1ac26962630ebf751fc8f4e8ce99680451be
|
[
"Apache-2.0"
] | 1
|
2019-05-17T13:43:23.000Z
|
2019-05-17T13:43:23.000Z
|
SECTION .text
%macro PROC 1
align 16
global %1
%1:
%endmacro
;The first six integer or pointer arguments are passed in registers
;RDI, RSI, RDX, RCX, R8, and R9
;int
;cpuid_amd64(int eax_in, int ecx_in, int *eax, int *ebx, int *ecx, int *edx)
PROC cpuid_amd64
; save registers
push rbx
push rdx
push rcx
push r8
push r9
mov rax, rdi
mov rcx, rsi
cpuid
pop rdi
mov [rdi], edx
pop rdi
mov [rdi], ecx
pop rdi
mov [rdi], ebx
pop rdi
mov [rdi], eax
mov eax, 0
; restore registers
pop rbx
ret;
align 16
| 14.5
| 76
| 0.587849
|
33c55bc7423f5b16d5b6518ff62e1cf63f169a02
| 612
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/l/z80/ascii/txt_to_num/l_htoul.asm
|
teknoplop/z88dk
|
bb03fbfd6b2ab0f397a1358559089f9cd3706485
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/l/z80/ascii/txt_to_num/l_htoul.asm
|
teknoplop/z88dk
|
bb03fbfd6b2ab0f397a1358559089f9cd3706485
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/l/z80/ascii/txt_to_num/l_htoul.asm
|
teknoplop/z88dk
|
bb03fbfd6b2ab0f397a1358559089f9cd3706485
|
[
"ClArtistic"
] | 1
|
2019-12-03T23:57:48.000Z
|
2019-12-03T23:57:48.000Z
|
INCLUDE "clib_cfg.asm"
SECTION code_clib
SECTION code_l
PUBLIC l_htoul
; ascii hex string to unsigned long
; whitespace is not skipped, leading 0x not interpretted
; char consumption stops on overflow
;
; enter : de = char *buffer
;
; exit : bc = & next char to interpret in buffer
; dehl = unsigned result (0 on invalid input)
; carry set on unsigned overflow
;
; uses : af, bc, de, hl
IF __CLIB_OPT_TXT2NUM_SELECT & $08
EXTERN l_fast_htoul
defc l_htoul = l_fast_htoul
ELSE
EXTERN l_small_htoul
defc l_htoul = l_small_htoul
ENDIF
| 17.485714
| 59
| 0.665033
|
ab428a88a096ce650c3cb01a97f95d7e6032e4c0
| 3,928
|
asm
|
Assembly
|
libtool/src/gmp-6.1.2/mpn/x86_64/bobcat/mul_1.asm
|
kroggen/aergo
|
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
|
[
"MIT"
] | 278
|
2015-11-03T03:01:20.000Z
|
2022-01-20T18:21:05.000Z
|
libtool/src/gmp-6.1.2/mpn/x86_64/bobcat/mul_1.asm
|
kroggen/aergo
|
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
|
[
"MIT"
] | 374
|
2015-11-03T12:37:22.000Z
|
2021-12-17T14:18:08.000Z
|
libtool/src/gmp-6.1.2/mpn/x86_64/bobcat/mul_1.asm
|
kroggen/aergo
|
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
|
[
"MIT"
] | 96
|
2015-11-22T07:47:26.000Z
|
2022-01-20T19:52:19.000Z
|
dnl AMD64 mpn_mul_1 optimised for AMD bobcat.
dnl Copyright 2003-2005, 2007, 2008, 2011, 2012 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as published by the Free
dnl Software Foundation; either version 3 of the License, or (at your
dnl option) any later version.
dnl
dnl or
dnl
dnl * the GNU General Public License as published by the Free Software
dnl Foundation; either version 2 of the License, or (at your option) any
dnl later version.
dnl
dnl or both in parallel, as here.
dnl
dnl The GNU MP Library is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dnl for more details.
dnl
dnl You should have received copies of the GNU General Public License and the
dnl GNU Lesser General Public License along with the GNU MP Library. If not,
dnl see https://www.gnu.org/licenses/.
include(`../config.m4')
C cycles/limb
C AMD K8,K9 4.5
C AMD K10 4.5
C AMD bd1 4.62
C AMD bobcat 5
C Intel P4 14
C Intel core2 4.5
C Intel NHM 4.23
C Intel SBR 3.0
C Intel atom 21
C VIA nano 4.94
C The loop of this code is the result of running a code generation and
C optimisation tool suite written by David Harvey and Torbjorn Granlund.
ABI_SUPPORT(DOS64)
ABI_SUPPORT(STD64)
C Standard parameters
define(`rp', `%rdi')
define(`up', `%rsi')
define(`n_param', `%rdx')
define(`v0', `%rcx')
define(`cy', `%r8')
C Standard allocations
define(`n', `%rbx')
define(`w0', `%r8')
define(`w1', `%r9')
define(`w2', `%r10')
define(`w3', `%r11')
C DOS64 parameters
IFDOS(` define(`rp', `%rcx') ') dnl
IFDOS(` define(`up', `%rsi') ') dnl
IFDOS(` define(`n_param', `%r8') ') dnl
IFDOS(` define(`v0', `%r9') ') dnl
IFDOS(` define(`cy', `56(%rsp)')') dnl
C DOS64 allocations
IFDOS(` define(`n', `%rbx') ') dnl
IFDOS(` define(`w0', `%r8') ') dnl
IFDOS(` define(`w1', `%rdi') ') dnl
IFDOS(` define(`w2', `%r10') ') dnl
IFDOS(` define(`w3', `%r11') ') dnl
ASM_START()
TEXT
ALIGN(16)
PROLOGUE(mpn_mul_1c)
IFDOS(` push %rsi ')
IFDOS(` push %rdi ')
IFDOS(` mov %rdx, %rsi ')
mov cy, w2
jmp L(com)
EPILOGUE()
PROLOGUE(mpn_mul_1)
IFDOS(` push %rsi ')
IFDOS(` push %rdi ')
IFDOS(` mov %rdx, %rsi ')
xor w2, w2
L(com): push %rbx
mov (up), %rax
lea -16(rp,n_param,8), rp
lea -16(up,n_param,8), up
mov n_param, n
and $3, R32(n_param)
jz L(b0)
cmp $2, R32(n_param)
ja L(b3)
jz L(b2)
L(b1): mul v0
cmp $1, n
jz L(n1)
neg n
add $3, n
add %rax, w2
mov %rdx, w3
jmp L(L1)
L(n1): add %rax, w2
mov %rdx, %rax
mov w2, 8(rp)
adc $0, %rax
pop %rbx
IFDOS(` pop %rdi ')
IFDOS(` pop %rsi ')
ret
L(b3): mul v0
neg n
inc n
add %rax, w2
mov %rdx, w3
jmp L(L3)
L(b0): mul v0
mov %rax, w0
mov %rdx, w1
neg n
add $2, n
add w2, w0
jmp L(L0)
L(b2): mul v0
mov %rax, w0
mov %rdx, w1
neg n
add w2, w0
jmp L(L2)
ALIGN(16)
L(top): mov w0, -16(rp,n,8)
add w1, w2
L(L1): adc $0, w3
mov 0(up,n,8), %rax
mul v0
mov %rax, w0
mov %rdx, w1
mov w2, -8(rp,n,8)
add w3, w0
L(L0): adc $0, w1
mov 8(up,n,8), %rax
mul v0
mov %rax, w2
mov %rdx, w3
mov w0, 0(rp,n,8)
add w1, w2
L(L3): adc $0, w3
mov 16(up,n,8), %rax
mul v0
mov %rax, w0
mov %rdx, w1
mov w2, 8(rp,n,8)
add w3, w0
L(L2): adc $0, w1
mov 24(up,n,8), %rax
mul v0
mov %rax, w2
mov %rdx, w3
add $4, n
js L(top)
L(end): mov w0, (rp)
add w1, w2
adc $0, w3
mov w2, 8(rp)
mov w3, %rax
pop %rbx
IFDOS(` pop %rdi ')
IFDOS(` pop %rsi ')
ret
EPILOGUE()
| 20.893617
| 79
| 0.610489
|
c63646eee4faa11c2647ce186018cceedb5b20e3
| 656
|
asm
|
Assembly
|
oeis/188/A188707.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/188/A188707.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/188/A188707.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A188707: Number of 3 X n binary arrays without the pattern 0 0 diagonally or vertically.
; 5,21,90,387,1665,7164,30825,132633,570690,2455551,10565685,45461772,195611805,841673709,3621533130,15582644523,67048623225,288495182556,1241330043105,5341164667857,22981833209970,98885672046279,425482860601485,1830757286868588,7877337852538485,33894417402086661,145840073452817850,627517115057829267,2700065354930692785,11617775429479976124,49988681082607802265,215090079124599082953,925484352375172007970,3982151524502062790991,17134304565384797931045,73725068253417801282252
mov $1,5
mov $2,2
lpb $0
sub $0,1
add $1,$2
add $2,$1
mul $1,3
lpe
mov $0,$1
| 50.461538
| 478
| 0.844512
|
b5bcb88cd47a31b1f110738b6e96b80490e541b9
| 538
|
asm
|
Assembly
|
oeis/009/A009984.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/009/A009984.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/009/A009984.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A009984: Powers of 40.
; 1,40,1600,64000,2560000,102400000,4096000000,163840000000,6553600000000,262144000000000,10485760000000000,419430400000000000,16777216000000000000,671088640000000000000,26843545600000000000000,1073741824000000000000000,42949672960000000000000000,1717986918400000000000000000,68719476736000000000000000000,2748779069440000000000000000000,109951162777600000000000000000000,4398046511104000000000000000000000,175921860444160000000000000000000000,7036874417766400000000000000000000000
mov $1,40
pow $1,$0
mov $0,$1
| 76.857143
| 481
| 0.908922
|
b283a677b12e3e3cdcf6f6371942102d73d94c27
| 726
|
asm
|
Assembly
|
oeis/347/A347289.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/347/A347289.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/347/A347289.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A347289: Number of independent sets in the binomial tree of order n.
; Submitted by Jamie Morken(w1)
; 2,3,8,60,3456,11612160,132090377011200,17175244766164688547348480000,291347192866832125410134687322211469174161539072000000000,84034354923469245337680441503007090893711465882978424632224243601869256327175152475648504794972160000000000000000,7003411048664727068860584401479348490052871620424722768253159758206487339599910218323961860702763545265166662683309421557207994262904161074869079972029010120589318151646956591035256143486124032000000000000000000000000000000000
mov $1,1
mov $3,1
lpb $0
sub $0,1
add $2,1
mul $1,$2
div $3,$2
pow $2,2
add $2,$1
sub $2,1
mul $3,$2
add $3,$1
lpe
mov $0,$3
add $0,1
| 36.3
| 469
| 0.837466
|
87f4e8274f921d4700341e44774eaa621e338cb0
| 5,897
|
asm
|
Assembly
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0_notsx.log_21829_232.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0_notsx.log_21829_232.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0_notsx.log_21829_232.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0xe648, %rdi
nop
sub %r12, %r12
mov (%rdi), %eax
nop
nop
nop
nop
inc %rdx
lea addresses_D_ht+0x44c8, %rbx
nop
xor $26118, %r12
movw $0x6162, (%rbx)
nop
nop
nop
nop
nop
add %r12, %r12
lea addresses_A_ht+0x1b068, %rax
clflush (%rax)
cmp $15127, %rdi
mov (%rax), %rdx
and $23490, %rax
lea addresses_D_ht+0x32c8, %rsi
lea addresses_D_ht+0x1cba8, %rdi
nop
xor $30009, %r12
mov $45, %rcx
rep movsw
nop
add %rsi, %rsi
lea addresses_WC_ht+0x72c8, %rdx
nop
sub $32405, %rsi
mov $0x6162636465666768, %r12
movq %r12, %xmm2
and $0xffffffffffffffc0, %rdx
movaps %xmm2, (%rdx)
add $30800, %rsi
lea addresses_A_ht+0x12598, %rax
nop
inc %rdi
mov $0x6162636465666768, %r13
movq %r13, %xmm2
movups %xmm2, (%rax)
nop
nop
nop
nop
nop
xor $28360, %rbx
lea addresses_WC_ht+0x164c8, %rsi
nop
nop
nop
add $37825, %rdx
vmovups (%rsi), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $1, %xmm1, %rax
nop
nop
nop
nop
xor %rbx, %rbx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r15
push %r8
push %r9
push %rbx
push %rdx
// Load
lea addresses_D+0x4b54, %rdx
nop
xor %r8, %r8
movups (%rdx), %xmm7
vpextrq $0, %xmm7, %rbx
xor %r11, %r11
// Faulty Load
mov $0x60a72c0000000ec8, %rbx
nop
nop
nop
nop
and %r15, %r15
mov (%rbx), %r11
lea oracles, %r8
and $0xff, %r11
shlq $12, %r11
mov (%r8,%r11,1), %r11
pop %rdx
pop %rbx
pop %r9
pop %r8
pop %r15
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 2}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 8, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4, 'NT': True, 'same': False, 'congruent': 5}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 8}}
{'src': {'type': 'addresses_A_ht', 'AVXalign': True, 'size': 8, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': True, 'size': 16, 'NT': False, 'same': False, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 1}}
{'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 41.822695
| 2,999
| 0.656266
|
b6bfc53ee19661f4420361bbc8277fe8c1d3cd62
| 592
|
asm
|
Assembly
|
finding the largest number among two numbers.asm
|
arfat01850/Assembly_Program
|
000b38c4139fe276eba2941190bfd4b51cfec02f
|
[
"MIT"
] | 1
|
2019-04-18T22:44:47.000Z
|
2019-04-18T22:44:47.000Z
|
finding the largest number among two numbers.asm
|
arfat01850/Assembly_Program
|
000b38c4139fe276eba2941190bfd4b51cfec02f
|
[
"MIT"
] | null | null | null |
finding the largest number among two numbers.asm
|
arfat01850/Assembly_Program
|
000b38c4139fe276eba2941190bfd4b51cfec02f
|
[
"MIT"
] | null | null | null |
.MODEL SMALL
.STACK 100H
.CODE
MAIN PROC
include 'emu8086.inc'
MOV AH,1
INT 21H
MOV BL,AL ;BL will store the value
INT 21H
MOV BH, AL ; BH will sote the value
CMP BL,BH
JG L1
printn ''
L2:
MOV AH,2
MOV DL,BH
INT 21H
JMP EXIT
L1:
MOV AH,2
MOV DL,BL
JMP EXIT
EXIT:
MOV AH,4CH
INT 21H
MAIN ENDP
END MAIN
| 17.411765
| 49
| 0.366554
|
fcbfcc7793130d7f65b4d42fb24bcb839d6c9d18
| 395
|
asm
|
Assembly
|
programs/oeis/260/A260196.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/260/A260196.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/260/A260196.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A260196: 1, -3, followed by -1's.
; 1,-3,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
mul $0,2
sub $0,1
mov $1,-2
div $1,$0
sub $1,1
mov $0,$1
| 39.5
| 300
| 0.382278
|
76994a411a80fe014d123caeb938eec9e5b0d60c
| 450
|
asm
|
Assembly
|
MicroProcessor Lab Programs/file.asm
|
vallabhiaf/4thSemIse
|
55ed3c6fc29e4d2dd2c1fb71e31f5283ad47b9bf
|
[
"Apache-2.0"
] | null | null | null |
MicroProcessor Lab Programs/file.asm
|
vallabhiaf/4thSemIse
|
55ed3c6fc29e4d2dd2c1fb71e31f5283ad47b9bf
|
[
"Apache-2.0"
] | null | null | null |
MicroProcessor Lab Programs/file.asm
|
vallabhiaf/4thSemIse
|
55ed3c6fc29e4d2dd2c1fb71e31f5283ad47b9bf
|
[
"Apache-2.0"
] | null | null | null |
assume cs:code,ds:data
data segment
fname db "test.txt"
n db 100
buf db 100 dup(?)
data ends
code segment
start:
mov ax,data
mov ds,ax
mov ah,3dh
lea dx,fname
mov al, 00
int 21h
jc failed
mov bx,ax
mov ah,3fh
lea dx,buf
mov cx,100d
int 21h
mov ah,3eh
int 21h
lea si,buf
mov cx,100d
next:
mov ah,02
mov dl,[si]
int 21h
inc si
loop next;
failed:
mov ah,4ch
int 21h
code ends
end start
| 10
| 23
| 0.624444
|
d3c70b80f6c7ed292f462e25b5062356f03bf37e
| 3,727
|
asm
|
Assembly
|
src/test/ref/examples/c64/showlogo/showlogo.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | 2
|
2022-03-01T02:21:14.000Z
|
2022-03-01T04:33:35.000Z
|
src/test/ref/examples/c64/showlogo/showlogo.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
src/test/ref/examples/c64/showlogo/showlogo.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
/// @file
/// Commodore 64 Registers and Constants
/// @file
/// The MOS 6526 Complex Interface Adapter (CIA)
///
/// http://archive.6502.org/datasheets/mos_6526_cia_recreated.pdf
// Commodore 64 PRG executable file
.file [name="showlogo.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)
/// $D016 Control register #2 Bit#4: MCM Turn Multicolor Mode on/off
.const VICII_MCM = $10
/// $D016 Control register #2 Bit#3: CSEL Switch betweem 40 or 38 visible columns
/// CSEL| Display window width | First X coo. | Last X coo.
/// ----+--------------------------+--------------+------------
/// 0 | 38 characters/304 pixels | 31 ($1f) | 334 ($14e)
/// 1 | 40 characters/320 pixels | 24 ($18) | 343 ($157)
.const VICII_CSEL = 8
/// The colors of the C64
.const BLACK = 0
.const WHITE = 1
.const DARK_GREY = $b
.const OFFSET_STRUCT_MOS6569_VICII_BORDER_COLOR = $20
.const OFFSET_STRUCT_MOS6569_VICII_BG_COLOR1 = $22
.const OFFSET_STRUCT_MOS6569_VICII_BG_COLOR = $21
.const OFFSET_STRUCT_MOS6569_VICII_BG_COLOR2 = $23
/// $D016 Control register 2
/// @see #VICII_CONTROL2
.label D016 = $d016
/// $D018 VIC-II base addresses
// @see #VICII_MEMORY
.label D018 = $d018
/// The VIC-II MOS 6567/6569
.label VICII = $d000
/// Color Ram
.label COLS = $d800
.label SCREEN = $400
.segment Code
main: {
.const toD0181_return = (>(SCREEN&$3fff)*4)|(>LOGO)/4&$f
// VICII->BORDER_COLOR = WHITE
lda #WHITE
sta VICII+OFFSET_STRUCT_MOS6569_VICII_BORDER_COLOR
// VICII->BG_COLOR1 = DARK_GREY
lda #DARK_GREY
sta VICII+OFFSET_STRUCT_MOS6569_VICII_BG_COLOR1
// VICII->BG_COLOR = VICII->BG_COLOR1 = DARK_GREY
sta VICII+OFFSET_STRUCT_MOS6569_VICII_BG_COLOR
// VICII->BG_COLOR2 = BLACK
lda #BLACK
sta VICII+OFFSET_STRUCT_MOS6569_VICII_BG_COLOR2
// *D018 = toD018(SCREEN, LOGO)
lda #toD0181_return
sta D018
// *D016 = VICII_MCM | VICII_CSEL
lda #VICII_MCM|VICII_CSEL
sta D016
// memset(SCREEN, BLACK, 40*25)
ldx #BLACK
lda #<SCREEN
sta.z memset.str
lda #>SCREEN
sta.z memset.str+1
jsr memset
// memset(COLS, WHITE|8, 40*25)
ldx #WHITE|8
lda #<COLS
sta.z memset.str
lda #>COLS
sta.z memset.str+1
jsr memset
ldx #0
__b1:
// SCREEN[ch] = ch
txa
sta SCREEN,x
// for(char ch: 0..239)
inx
cpx #$f0
bne __b1
__b2:
// (*(SCREEN+999))++;
inc SCREEN+$3e7
// kickasm
inc $d020
jmp __b2
}
// Copies the character c (an unsigned char) to the first num characters of the object pointed to by the argument str.
// void * memset(__zp(2) void *str, __register(X) char c, unsigned int num)
memset: {
.label end = 4
.label dst = 2
.label str = 2
// char* end = (char*)str + num
lda.z str
clc
adc #<$28*$19
sta.z end
lda.z str+1
adc #>$28*$19
sta.z end+1
__b2:
// for(char* dst = str; dst!=end; dst++)
lda.z dst+1
cmp.z end+1
bne __b3
lda.z dst
cmp.z end
bne __b3
// }
rts
__b3:
// *dst = c
txa
ldy #0
sta (dst),y
// for(char* dst = str; dst!=end; dst++)
inc.z dst
bne !+
inc.z dst+1
!:
jmp __b2
}
.segment Data
.pc = $2000 "LOGO"
LOGO:
.var logoPic = LoadPicture("logo.png", List().add($444444, $808080, $000000, $ffffff))
.for (var y=0; y<6 ; y++)
.for (var x=0;x<40; x++)
.for(var cp=0; cp<8; cp++)
.byte logoPic.getMulticolorByte(x,cp+y*8)
| 27.20438
| 118
| 0.602361
|
ec3de50e8e2170d61cade58f2071af66f37d5e05
| 2,483
|
asm
|
Assembly
|
release/src-rt-6.x.4708/router/gmp/mpn/arm/bdiv_dbm1c.asm
|
afeng11/tomato-arm
|
1ca18a88480b34fd495e683d849f46c2d47bb572
|
[
"FSFAP"
] | 5
|
2015-01-12T13:53:14.000Z
|
2020-01-16T02:48:36.000Z
|
release/src-rt-6.x.4708/router/gmp/mpn/arm/bdiv_dbm1c.asm
|
afeng11/tomato-arm
|
1ca18a88480b34fd495e683d849f46c2d47bb572
|
[
"FSFAP"
] | 1
|
2018-08-21T03:43:09.000Z
|
2018-08-21T03:43:09.000Z
|
release/src-rt-6.x.4708/router/gmp/mpn/arm/bdiv_dbm1c.asm
|
afeng11/tomato-arm
|
1ca18a88480b34fd495e683d849f46c2d47bb572
|
[
"FSFAP"
] | 5
|
2017-10-11T08:09:11.000Z
|
2020-10-14T04:10:13.000Z
|
dnl ARM mpn_bdiv_dbm1c.
dnl Copyright 2008, 2011, 2012 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as published by the Free
dnl Software Foundation; either version 3 of the License, or (at your
dnl option) any later version.
dnl
dnl or
dnl
dnl * the GNU General Public License as published by the Free Software
dnl Foundation; either version 2 of the License, or (at your option) any
dnl later version.
dnl
dnl or both in parallel, as here.
dnl
dnl The GNU MP Library is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dnl for more details.
dnl
dnl You should have received copies of the GNU General Public License and the
dnl GNU Lesser General Public License along with the GNU MP Library. If not,
dnl see https://www.gnu.org/licenses/.
include(`../config.m4')
C cycles/limb
C StrongARM ?
C XScale ?
C Cortex-A7 ?
C Cortex-A8 ?
C Cortex-A9 4.25
C Cortex-A15 2.5
C TODO
C * Try using umlal or umaal.
C * Try using ldm/stm.
define(`qp', `r0')
define(`up', `r1')
define(`n', `r2')
define(`bd', `r3')
define(`cy', `sp,#0')
ASM_START()
TEXT
ALIGN(16)
PROLOGUE(mpn_bdiv_dbm1c)
push {r4, r5, r6, r7, r8}
ldr r4, [up], #4
ldr r5, [sp, #20]
ands r12, n, #3
beq L(fi0)
cmp r12, #2
bcc L(fi1)
beq L(fi2)
L(fi3): umull r8, r12, r4, bd
ldr r4, [up], #4
b L(lo3)
L(fi0): umull r6, r7, r4, bd
ldr r4, [up], #4
b L(lo0)
L(fi1): subs n, n, #1
umull r8, r12, r4, bd
bls L(wd1)
ldr r4, [up], #4
b L(lo1)
L(fi2): umull r6, r7, r4, bd
ldr r4, [up], #4
b L(lo2)
L(top): ldr r4, [up], #4
subs r5, r5, r6
str r5, [qp], #4
sbc r5, r5, r7
L(lo1): umull r6, r7, r4, bd
ldr r4, [up], #4
subs r5, r5, r8
str r5, [qp], #4
sbc r5, r5, r12
L(lo0): umull r8, r12, r4, bd
ldr r4, [up], #4
subs r5, r5, r6
str r5, [qp], #4
sbc r5, r5, r7
L(lo3): umull r6, r7, r4, bd
ldr r4, [up], #4
subs r5, r5, r8
str r5, [qp], #4
sbc r5, r5, r12
L(lo2): subs n, n, #4
umull r8, r12, r4, bd
bhi L(top)
L(wd2): subs r5, r5, r6
str r5, [qp], #4
sbc r5, r5, r7
L(wd1): subs r5, r5, r8
str r5, [qp]
sbc r0, r5, r12
pop {r4, r5, r6, r7, r8}
bx lr
EPILOGUE()
| 21.780702
| 79
| 0.645993
|
3e1d45363b2ffb6f9620d28ab4d3437170406757
| 2,783
|
asm
|
Assembly
|
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_14_319.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_14_319.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_14_319.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 %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x11d57, %r9
nop
sub %rdi, %rdi
movb (%r9), %r11b
nop
xor $42851, %r11
lea addresses_WC_ht+0x1ba45, %rax
nop
nop
nop
nop
add %rcx, %rcx
mov (%rax), %r13w
nop
nop
nop
nop
xor %rdi, %rdi
lea addresses_WC_ht+0x15445, %r13
nop
nop
nop
nop
nop
xor $54918, %rsi
movb (%r13), %r9b
nop
nop
sub %r13, %r13
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r15
push %r8
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_normal+0x16f45, %r15
nop
sub %rsi, %rsi
movw $0x5152, (%r15)
nop
cmp $40503, %rdx
// Load
lea addresses_D+0x17045, %rsi
clflush (%rsi)
nop
nop
nop
nop
and %r8, %r8
vmovups (%rsi), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %rdx
and $32793, %r15
// Store
lea addresses_RW+0x11ab3, %r15
xor $54003, %rax
movl $0x51525354, (%r15)
add %r8, %r8
// Load
lea addresses_D+0x1f245, %rdx
nop
nop
nop
nop
nop
inc %rdi
mov (%rdx), %r8d
nop
and $31211, %rdi
// Store
lea addresses_WT+0x7c, %rsi
nop
nop
nop
cmp $40344, %rdi
movl $0x51525354, (%rsi)
nop
nop
nop
nop
xor %rsi, %rsi
// Faulty Load
mov $0x58546c0000000445, %rdi
nop
nop
dec %rax
movb (%rdi), %cl
lea oracles, %r15
and $0xff, %rcx
shlq $12, %rcx
mov (%r15,%rcx,1), %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r15
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': True, 'congruent': 8, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 8, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': True, 'congruent': 1, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 9, 'size': 2, 'same': True, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 11, 'size': 1, 'same': False, 'NT': False}}
{'00': 14}
00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 18.931973
| 125
| 0.635645
|
6faa6f481417417ff38bb431d0a60ae0774f9e16
| 155
|
asm
|
Assembly
|
data/maps/headers/CeladonCity.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | 1
|
2022-02-15T00:19:44.000Z
|
2022-02-15T00:19:44.000Z
|
data/maps/headers/CeladonCity.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
data/maps/headers/CeladonCity.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
map_header CeladonCity, CELADON_CITY, OVERWORLD, WEST | EAST
connection west, Route16, ROUTE_16, 4
connection east, Route7, ROUTE_7, 4
end_map_header
| 25.833333
| 61
| 0.787097
|
522c5436b9117ef6220cf22d26b739913aa6dc68
| 404
|
asm
|
Assembly
|
AVR/palindrome.asm
|
StxGuy/EmbeddedSystems
|
6d9bc8b295724d361ea1d82e701e6530f74e2300
|
[
"MIT"
] | null | null | null |
AVR/palindrome.asm
|
StxGuy/EmbeddedSystems
|
6d9bc8b295724d361ea1d82e701e6530f74e2300
|
[
"MIT"
] | null | null | null |
AVR/palindrome.asm
|
StxGuy/EmbeddedSystems
|
6d9bc8b295724d361ea1d82e701e6530f74e2300
|
[
"MIT"
] | null | null | null |
.device ATmega328
.org 0x00 ; Program starts at 0x00
rjmp INICIO
; Check if palindrome
INICIO: nop
ldi R19,0x08
ldi R16,0xDB
mov R17,R16
LOOP: ror R17
rol R18
dec R19
breq NEXT
rjmp LOOP
NEXT: cpse R16,R18
jmp FIM
rjmp PAL
FIM: jmp FIM
PAL: ldi R20,0x01
rjmp FIM
| 14.962963
| 37
| 0.49505
|
4a3e34939320a94ed9633d4b7c83f43b6d2a9d7b
| 1,471
|
asm
|
Assembly
|
Interfaz/MIPS.asm
|
IlianaPinto/Mini-C
|
63e820700bfa43e45633d1c5381857f1be6ec83c
|
[
"MIT"
] | null | null | null |
Interfaz/MIPS.asm
|
IlianaPinto/Mini-C
|
63e820700bfa43e45633d1c5381857f1be6ec83c
|
[
"MIT"
] | null | null | null |
Interfaz/MIPS.asm
|
IlianaPinto/Mini-C
|
63e820700bfa43e45633d1c5381857f1be6ec83c
|
[
"MIT"
] | null | null | null |
.data
_a: .word 0
_b: .word 0
_c: .word 0
_msg1: .asciiz " "
_msg2: .asciiz "aaaa: "
_msg3: .asciiz "\n"
.text
.globl main
_acceso:
sw $fp, -4($sp)
sw $ra, -8($sp)
sw $s0, -12($sp)
move $fp, $sp
sub $sp, $sp, 20
move $s0, $a0
li $t0, 5
sw $t0, -16($fp)
move $t0, $s0
lw $t1, -16($fp)
add $t2, $t0, $t1
sw $t2, -20($fp)
li $v0, 1
lw $a0, -20($fp)
syscall
li $v0, 4
la $a0, _msg1
syscall
_fin_acceso:
move $sp, $fp
lw $fp, -4($sp)
lw $ra, -8($sp)
lw $s0, -12($sp)
jr $ra
_acceso2:
sw $fp, -4($sp)
sw $ra, -8($sp)
sw $s0, -12($sp)
move $fp, $sp
sub $sp, $sp, 12
move $s0, $a0
li $v0, 1
move $a0, $s0
syscall
li $v0, 4
la $a0, _msg1
syscall
_fin_acceso2:
move $sp, $fp
lw $fp, -4($sp)
lw $ra, -8($sp)
lw $s0, -12($sp)
jr $ra
main:
move $fp, $sp
li $t0, 1
sw $t0, _a
li $t0, 2
li $t1, 2
add $t2, $t0, $t1
sw $t2, _b
li $t0, 5
sw $t0, _c
lw $a0, _a
jal _acceso
li $v0, 4
la $a0, _msg2
syscall
li $v0, 1
lw $a0, _c
syscall
li $v0, 4
la $a0, _msg3
syscall
lw $a0, _b
jal _acceso2
li $v0,10
syscall
| 18.620253
| 27
| 0.386812
|
b9ca6332030ba95dcf49ddbd6a98dc804a23d282
| 557
|
asm
|
Assembly
|
oeis/304/A304610.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/304/A304610.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/304/A304610.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A304610: a(n) = 157*n - 40 (n>=1).
; 117,274,431,588,745,902,1059,1216,1373,1530,1687,1844,2001,2158,2315,2472,2629,2786,2943,3100,3257,3414,3571,3728,3885,4042,4199,4356,4513,4670,4827,4984,5141,5298,5455,5612,5769,5926,6083,6240,6397,6554,6711,6868,7025,7182,7339,7496,7653,7810,7967,8124,8281,8438,8595,8752,8909,9066,9223,9380,9537,9694,9851,10008,10165,10322,10479,10636,10793,10950,11107,11264,11421,11578,11735,11892,12049,12206,12363,12520,12677,12834,12991,13148,13305,13462,13619,13776,13933,14090,14247,14404,14561,14718
mul $0,157
add $0,117
| 92.833333
| 496
| 0.775583
|
91e8b3800f118d9a5995d15f80ba6da3444b4613
| 1,454
|
asm
|
Assembly
|
programs/oeis/016/A016064.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/016/A016064.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/016/A016064.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A016064: Smallest side lengths of almost-equilateral Heronian triangles (sides are consecutive positive integers, area is a nonnegative integer).
; 1,3,13,51,193,723,2701,10083,37633,140451,524173,1956243,7300801,27246963,101687053,379501251,1416317953,5285770563,19726764301,73621286643,274758382273,1025412242451,3826890587533,14282150107683,53301709843201,198924689265123,742397047217293,2770663499604051,10340256951198913,38590364305191603,144021200269567501,537494436773078403,2005956546822746113,7486331750517906051,27939370455248878093,104271150070477606323,389145229826661547201,1452309769236168582483,5420093847118012782733,20228065619235882548451,75492168629825517411073,281740608900066187095843,1051470266970439230972301,3924140458981690736793363,14645091568956323716201153,54656225816843604128011251,203979811698418092795843853,761263020976828767055364163,2841072272208896975425612801,10603026067858759134647087043,39571031999226139563162735373,147681101929045799118003854451,551153375716957056908852682433,2056932400938782428517406875283,7676576228038172657160774818701,28649372511213908200125692399523,106920913816817460143341994779393,399034282756055932373242286718051,1489216217207406269349627152092813,5557830586073569145025266321653203,20742106127086870310751438134520001,77410593922273912097980486216426803,288900269562008778081170506731187213
mov $1,1
lpb $0
sub $0,1
add $2,$1
add $1,$2
add $1,$2
add $2,1
lpe
mov $0,$1
| 111.846154
| 1,216
| 0.905089
|
8a92feca55c3e7953db121c371e1406f92c0dd4a
| 234
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/adt/b_array/c/sdcc_iy/b_array_erase_callee.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/adt/b_array/c/sdcc_iy/b_array_erase_callee.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/adt/b_array/c/sdcc_iy/b_array_erase_callee.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
; size_t b_array_erase_callee(b_array_t *a, size_t idx)
SECTION code_adt_b_array
PUBLIC _b_array_erase_callee
_b_array_erase_callee:
pop af
pop hl
pop bc
push af
INCLUDE "adt/b_array/z80/asm_b_array_erase.asm"
| 14.625
| 55
| 0.75641
|
2992f468ada38facd5fd06636d6c2f26f95a0da0
| 2,328
|
asm
|
Assembly
|
programs/oeis/193/A193391.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/193/A193391.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/193/A193391.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A193391: Wiener index of a benzenoid consisting of a spiral chain of n hexagons (s=1; see the Gutman et al. reference).
; 27,109,271,529,899,1397,2039,2841,3819,4989,6367,7969,9811,11909,14279,16937,19899,23181,26799,30769,35107,39829,44951,50489,56459,62877,69759,77121,84979,93349,102247,111689,121691,132269,143439,155217,167619,180661,194359,208729,223787,239549,256031,273249,291219,309957,329479,349801,370939,392909,415727,439409,463971,489429,515799,543097,571339,600541,630719,661889,694067,727269,761511,796809,833179,870637,909199,948881,989699,1031669,1074807,1119129,1164651,1211389,1259359,1308577,1359059,1410821,1463879,1518249,1573947,1630989,1689391,1749169,1810339,1872917,1936919,2002361,2069259,2137629,2207487,2278849,2351731,2426149,2502119,2579657,2658779,2739501,2821839,2905809,2991427,3078709,3167671,3258329,3350699,3444797,3540639,3638241,3737619,3838789,3941767,4046569,4153211,4261709,4372079,4484337,4598499,4714581,4832599,4952569,5074507,5198429,5324351,5452289,5582259,5714277,5848359,5984521,6122779,6263149,6405647,6550289,6697091,6846069,6997239,7150617,7306219,7464061,7624159,7786529,7951187,8118149,8287431,8459049,8633019,8809357,8988079,9169201,9352739,9538709,9727127,9918009,10111371,10307229,10505599,10706497,10909939,11115941,11324519,11535689,11749467,11965869,12184911,12406609,12630979,12858037,13087799,13320281,13555499,13793469,14034207,14277729,14524051,14773189,15025159,15279977,15537659,15798221,16061679,16328049,16597347,16869589,17144791,17422969,17704139,17988317,18275519,18565761,18859059,19155429,19454887,19757449,20063131,20371949,20683919,20999057,21317379,21638901,21963639,22291609,22622827,22957309,23295071,23636129,23980499,24328197,24679239,25033641,25391419,25752589,26117167,26485169,26856611,27231509,27609879,27991737,28377099,28765981,29158399,29554369,29953907,30357029,30763751,31174089,31588059,32005677,32426959,32851921,33280579,33712949,34149047,34588889,35032491,35479869,35931039,36386017,36844819,37307461,37773959,38244329,38718587,39196749,39678831,40164849,40654819,41148757,41646679,42148601,42654539,43164509
add $0,1
mul $0,2
mov $2,5
mov $3,4
lpb $0
sub $0,1
add $1,3
mov $5,4
add $5,$3
add $5,$1
add $1,$0
add $1,$2
add $1,5
mov $4,$5
sub $4,$2
mov $3,$4
lpe
add $4,3
sub $1,$4
trn $1,$3
add $1,$4
add $1,2
| 89.538462
| 1,981
| 0.828608
|
0807fa793eb746ecce87f6512e7bac0269d6bb91
| 434
|
asm
|
Assembly
|
test.asm
|
Sakrac/BullshitPlayer
|
898297c061988475320480cb25b5ec82cbe4b1e6
|
[
"MIT"
] | 7
|
2020-12-30T05:05:56.000Z
|
2021-01-08T11:49:45.000Z
|
test.asm
|
Sakrac/BullshitPlayer
|
898297c061988475320480cb25b5ec82cbe4b1e6
|
[
"MIT"
] | null | null | null |
test.asm
|
Sakrac/BullshitPlayer
|
898297c061988475320480cb25b5ec82cbe4b1e6
|
[
"MIT"
] | null | null | null |
.import source "music.inc"
* = $801
// 1 SYS 2064
.byte $0b, $08, $01, $00, $9e, $32, $30, $36, $34, $00, $00, $00, $00, $00, $00
RunTest:
lda #$f // set volume
sta $d418
frame:
lda #100
wait:
cmp $d012
bne wait
lda #4
sta $d020
jsr UpdateMusicPlayer
lda #14
sta $d020
jmp frame
// just include music code to keep it simple
.import source "music.asm"
// and the music included right after
.import source "example.asm"
| 15.5
| 79
| 0.638249
|
a519c17d72ef16f7b45712edfca349dc17459d9a
| 11,313
|
asm
|
Assembly
|
src/cutscenes.asm
|
cout/sm_practice_hack
|
248c691848b7fb8293525816a1f883817e0b94de
|
[
"Unlicense"
] | null | null | null |
src/cutscenes.asm
|
cout/sm_practice_hack
|
248c691848b7fb8293525816a1f883817e0b94de
|
[
"Unlicense"
] | null | null | null |
src/cutscenes.asm
|
cout/sm_practice_hack
|
248c691848b7fb8293525816a1f883817e0b94de
|
[
"Unlicense"
] | null | null | null |
org $82EEE0
dw cutscenes_load_intro
if !FEATURE_PAL
org $8BB124
else
org $8BB240
endif
JSR cutscenes_load_ceres_arrival
org $8BF800
print pc, " cutscenes start"
cutscenes_load_intro:
{
LDA !sram_cutscenes : BIT !CUTSCENE_SKIP_INTRO : BEQ .keep_intro
LDA !sram_cutscenes : BIT !CUTSCENE_SKIP_CERES_ARRIVAL : BEQ .keep_ceres_arrival
; Skip intro and ceres arrival
if !FEATURE_PAL
LDA #$C065
else
LDA #$C100
endif
STA $1F51
JMP ($1F51)
.keep_intro
if !FEATURE_PAL
LDA #$A365
else
LDA #$A395
endif
STA $1F51
JMP ($1F51)
.keep_ceres_arrival
if !FEATURE_PAL
JSR $B8C7
LDA #$B3EE
else
JSR $BC08
LDA #$B72F
endif
STA $1F51
JMP ($1F51)
}
cutscenes_load_ceres_arrival:
{
LDA !sram_cutscenes : BIT !CUTSCENE_SKIP_CERES_ARRIVAL : BEQ .keep_ceres_arrival
; Skip ceres arrival
if !FEATURE_PAL
JSR $B934
LDA #$C065
else
JSR $BC75
LDA #$C100
endif
RTS
.keep_ceres_arrival
if !FEATURE_PAL
LDA #$B3EE
else
LDA #$B72F
endif
RTS
}
print pc, " cutscenes end"
if !FEATURE_PAL
org $A9880C
else
org $A987FC
endif
cutscenes_mb_fake_death_check:
{
BEQ .check_fast_mb
CMP #$0001 : BNE $15
.fast_mb
JMP cutscenes_mb_fake_death_fast_init
.check_fast_mb
LDA !sram_cutscenes : BIT !CUTSCENE_FAST_MB : BNE .fast_mb
JMP cutscenes_mb_fake_death_normal_init
}
if !FEATURE_PAL
warnpc $A98824
else
warnpc $A98814
endif
if !FEATURE_PAL
org $A9882E
else
org $A9881E
endif
dw cutscenes_mb_fake_death_pause
if !FEATURE_PAL
org $A98852
else
org $A98842
endif
dw cutscenes_mb_fake_death_lock
if !FEATURE_PAL
org $A98889
else
org $A98879
endif
dw cutscenes_mb_fake_death_unlock
if !FEATURE_PAL
org $A98987
else
org $A98977
endif
dw cutscenes_mb_clear_bottom_left_tube
if !FEATURE_PAL
org $A989B9
else
org $A989A9
endif
dw cutscenes_mb_clear_ceiling_column_9
if !FEATURE_PAL
org $A989EB
else
org $A989DB
endif
dw cutscenes_mb_clear_ceiling_column_6
if !FEATURE_PAL
org $A98A13
else
org $A98A03
endif
dw cutscenes_mb_clear_bottom_right_tube
if !FEATURE_PAL
org $A98A3B
else
org $A98A2B
endif
dw cutscenes_mb_clear_bottom_middle_left_tube
if !FEATURE_PAL
org $A98A6D
else
org $A98A5D
endif
dw cutscenes_mb_clear_ceiling_column_7
if !FEATURE_PAL
org $A98A9F
else
org $A98A8F
endif
dw cutscenes_mb_clear_ceiling_column_8
if !FEATURE_PAL
org $A98D78
else
org $A98D68
endif
; Do not initialize health here, wait until later
dw cutscenes_mb_fake_death_setup_mb_fight_or_escape
BRA $04
if !FEATURE_PAL
org $A98D90
else
org $A98D80
endif
dw cutscenes_mb_fake_death_pause_phase_2
if !FEATURE_PAL
org $A98DCE
else
org $A98DBE
endif
dw cutscenes_mb_fake_death_load_tiles_phase_2
if !FEATURE_PAL
org $A98E57
else
org $A98E47
endif
dw cutscenes_mb_fake_death_raise_mb
if !FEATURE_PAL
org $A98EDC
else
org $A98ECC
endif
JMP cutscenes_mb_choose_phase_2_or_3
if !FEATURE_PAL
org $A98EF9
else
org $A98EE9
endif
dw cutscenes_mb_shaking_head
if !FEATURE_PAL
org $A98F12
else
org $A98F02
endif
dw cutscenes_mb_bring_head_back_up
if !FEATURE_PAL
org $A9AF17
else
org $A9AF07
endif
dw cutscenes_mb_death_move_to_back_of_room
if !FEATURE_PAL
org $A9AF58
else
org $A9AF48
endif
dw cutscenes_mb_death_first_stumble
if !FEATURE_PAL
org $A9B017
else
org $A9B007
endif
dw cutscenes_mb_death_final_explosions
if !FEATURE_PAL
org $A9B137
else
org $A9B127
endif
JMP cutscenes_mb_death_brain_falling
if !FEATURE_PAL
org $A9B177
else
org $A9B167
endif
dw cutscenes_mb_death_load_corpse
if !FEATURE_PAL
org $A9B1BC
else
org $A9B1AC
endif
dw cutscenes_mb_death_corpse_tips_over
if !FEATURE_PAL
org $A9B1FB
else
org $A9B1EB
endif
; Make dead MB invisible and intangible, in case we jump here from a preset
ORA #$0500
org $A9FBC0
print pc, " cutscenes MB start"
cutscenes_mb_fake_death_fast_init:
{
; Set health to non-zero value indicating we want fast logic
; If loading a preset, certain flags may already be set
; which allow MB to take damage, so setting value high,
; but also set below 18000 to avoid confusion with vanilla logic
LDA #$464F : STA $0FCC
; If MB already defeated, reset health to full to simulate baby metroid refill
LDA $7ED82D : BIT #$0002 : BEQ .end_refill
LDA $7E09C4 : STA $7E09C2
.end_refill
; Overwritten logic without the song
STA $7E783A : STA $7E7800
JSL $90A7E2
if !FEATURE_PAL
JMP $8824
else
JMP $8814
endif
}
cutscenes_mb_fake_death_normal_init:
{
; Overwritten logic with the song
LDA #$0001 : STA $7E783A : STA $7E7800
JSL $90A7E2
LDA #$0006
JSL $808FC1
if !FEATURE_PAL
JMP $8824
else
JMP $8814
endif
}
cutscenes_mb_fake_death_pause:
{
LDA $0FCC : BEQ .continue
LDA #$0001 : STA $0FB2
.continue
if !FEATURE_PAL
LDA #$8839
else
LDA #$8829
endif
STA $0FA8
JMP ($0FA8)
}
cutscenes_mb_fake_death_lock:
{
LDA $0FCC : BEQ .continue
LDA #$0001 : STA $0FB2
.continue
LDA #cutscenes_mb_fake_death_music
STA $0FA8
; Fall through to next method
}
cutscenes_mb_fake_death_music:
{
DEC $0FB2 : BPL .return
LDA #$0000 : JSL !MUSIC_ROUTINE
LDA $7ED82D : BIT #$0002 : BEQ .phase2
LDA $7ED821 : BIT #$0040 : BEQ .phase3
LDA #$FF24
BRA .load_music
.phase2
LDA #$FF21
BRA .load_music
.phase3
LDA #$FF48
.load_music
JSL !MUSIC_ROUTINE
if !FEATURE_PAL
LDA #$887C
else
LDA #$886C
endif
STA $0FA8
LDA #$000C : STA $0FB2
LDA $0FCC : BEQ .continue
LDA #$0002 : STA $0FB2
.continue
JMP ($0FA8)
.return
RTS
}
cutscenes_mb_fake_death_unlock:
{
LDA $0FCC : BEQ .continue
LDA #$0001 : STA $0FB2
.continue
if !FEATURE_PAL
LDA #$8894
else
LDA #$8884
endif
STA $0FA8
JMP ($0FA8)
}
cutscenes_mb_clear_bottom_left_tube:
{
LDA $0FCC : BEQ .continue
LDA #$0010 : STA $0FF2
.continue
if !FEATURE_PAL
LDA #$8993
else
LDA #$8983
endif
STA $0FF0
JMP ($0FF0)
}
cutscenes_mb_clear_ceiling_column_9:
{
LDA $0FCC : BEQ .continue
LDA #$0010 : STA $0FF2
.continue
if !FEATURE_PAL
LDA #$89C5
else
LDA #$89B5
endif
STA $0FF0
JMP ($0FF0)
}
cutscenes_mb_clear_ceiling_column_6:
{
LDA $0FCC : BEQ .continue
LDA #$0010 : STA $0FF2
.continue
if !FEATURE_PAL
LDA #$89F7
else
LDA #$89E7
endif
STA $0FF0
JMP ($0FF0)
}
cutscenes_mb_clear_bottom_right_tube:
{
LDA $0FCC : BEQ .continue
LDA #$0010 : STA $0FF2
.continue
if !FEATURE_PAL
LDA #$8A1F
else
LDA #$8A0F
endif
STA $0FF0
JMP ($0FF0)
}
cutscenes_mb_clear_bottom_middle_left_tube:
{
LDA $0FCC : BEQ .continue
LDA #$0010 : STA $0FF2
.continue
if !FEATURE_PAL
LDA #$8A47
else
LDA #$8A37
endif
STA $0FF0
JMP ($0FF0)
}
cutscenes_mb_clear_ceiling_column_7:
{
LDA $0FCC : BEQ .continue
LDA #$0010 : STA $0FF2
.continue
if !FEATURE_PAL
LDA #$8A79
else
LDA #$8A69
endif
STA $0FF0
JMP ($0FF0)
}
cutscenes_mb_clear_ceiling_column_8:
{
LDA $0FCC : BEQ .continue
LDA #$0010 : STA $0FF2
.continue
if !FEATURE_PAL
LDA #$8AAB
else
LDA #$8A9B
endif
STA $0FF0
JMP ($0FF0)
}
cutscenes_mb_fake_death_setup_mb_fight_or_escape:
{
LDA $7ED821 : BIT #$0040 : BEQ .mb
; Disable MB hitboxes
LDA #$0000 : STA $7E7808
; Jump to escape sequence
if !FEATURE_PAL
JMP $B1F8
else
JMP $B1E8
endif
.mb
LDA $0FCC : BEQ .init_health
LDA #$0000 : STA $0FB2 : STA $0FCC
BRA .continue
.init_health
LDA #$4650 : STA $0FCC
.continue
if !FEATURE_PAL
LDA #$8D89
else
LDA #$8D79
endif
STA $0FA8
JMP ($0FA8)
}
cutscenes_mb_fake_death_pause_phase_2:
{
LDA $0FCC : BNE .continue
LDA #$0000 : STA $0FB2
.continue
if !FEATURE_PAL
LDA #$8D9B
else
LDA #$8D8B
endif
STA $0FA8
JMP ($0FA8)
}
cutscenes_mb_fake_death_load_tiles_phase_2:
{
LDA $0FCC : BNE .continue
LDA #$0000 : STA $0FB2
.continue
if !FEATURE_PAL
LDA #$8DD3
else
LDA #$8DC3
endif
STA $0FA8
JMP ($0FA8)
}
cutscenes_mb_fake_death_raise_mb:
{
LDA $0FCC : BNE .continue
LDA !FRAME_COUNTER : AND #$0001 : BNE .done
if !FEATURE_PAL
JMP $8E65
else
JMP $8E55
endif
.continue
if !FEATURE_PAL
LDA #$8E5D
else
LDA #$8E4D
endif
STA $0FA8
JMP ($0FA8)
.done
RTS
}
cutscenes_mb_choose_phase_2_or_3:
{
LDA $7ED82D : BIT #$0002 : BEQ .phase2
; Phase 3
LDA #$0004 : STA $7E7800
; 36000 health
LDA #$8CA0 : STA $0FCC
; Enable health-based palette
TDC : STA $7E7860 : STA $7E7868
INC : STA $7E7862
INC : STA $7E783E
; Allow Samus to stand up and enable hyper beam
if !FEATURE_PAL
LDA #$0017 : JSL $90F081
LDA #$0003 : JSL $91E412
JMP $C242
else
LDA #$0017 : JSL $90F084
LDA #$0003 : JSL $91E4AD
JMP $C1F5
endif
.phase2
LDA #$0002 : STA $7E7800
; 18000 health
LDA #$4650 : STA $0FCC
if !FEATURE_PAL
JMP $8EE1
else
JMP $8ED1
endif
}
cutscenes_mb_shaking_head:
{
LDA !sram_cutscenes : BIT !CUTSCENE_FAST_MB : BEQ .continue
LDA #$000A : STA $0FB2
.continue
if !FEATURE_PAL
LDA #$8F05
else
LDA #$8EF5
endif
STA $0FA8
JMP ($0FA8)
}
cutscenes_mb_bring_head_back_up:
{
LDA !sram_cutscenes : BIT !CUTSCENE_FAST_MB : BEQ .continue
LDA #$0060 : STA $0FB2
.continue
if !FEATURE_PAL
LDA #$8F24
else
LDA #$8F14
endif
STA $0FA8
JMP ($0FA8)
}
cutscenes_mb_death_move_to_back_of_room:
{
LDA !sram_cutscenes : BIT !CUTSCENE_FAST_MB : BEQ .continue
LDA #$000A : STA $0FB2
.continue
if !FEATURE_PAL
LDA #$AF22
else
LDA #$AF12
endif
STA $0FA8
JMP ($0FA8)
}
cutscenes_mb_death_first_stumble:
{
LDA !sram_cutscenes : BIT !CUTSCENE_FAST_MB : BEQ .continue
LDA #$000A : STA $0FB2
.continue
if !FEATURE_PAL
LDA #$AF64
else
LDA #$AF54
endif
STA $0FA8
JMP ($0FA8)
}
cutscenes_mb_death_final_explosions:
{
LDA !sram_cutscenes : BIT !CUTSCENE_FAST_MB : BEQ .continue
LDA #$0000 : STA $0FB2
.continue
if !FEATURE_PAL
LDA #$B023
else
LDA #$B013
endif
STA $0FA8
JMP ($0FA8)
}
cutscenes_mb_death_brain_falling:
{
LDA !sram_cutscenes : BIT !CUTSCENE_FAST_MB : BEQ .continue
LDA #cutscenes_mb_death_brain_falling_fast
STA $0FA8
JMP ($0FA8)
.continue
if !FEATURE_PAL
LDA #$B13D
else
LDA #$B12D
endif
STA $0FA8
JMP ($0FA8)
}
cutscenes_mb_death_brain_falling_fast:
{
; Vanilla logic except add $40 instead of $20
LDA $0FB2 : CLC : ADC #$0040 : STA $0FB2
XBA : AND #$00FF : CLC : ADC $0FBE
CMP #$00C4 : BCC .still_falling
if !FEATURE_PAL
JMP $B154
else
JMP $B144
endif
.still_falling
STA $0FBE
RTS
}
cutscenes_mb_death_load_corpse:
{
LDA !sram_cutscenes : BIT !CUTSCENE_FAST_MB : BEQ .continue
LDA #$0000 : STA $0FB2
.continue
if !FEATURE_PAL
LDA #$B183
else
LDA #$B173
endif
STA $0FA8
JMP ($0FA8)
}
cutscenes_mb_death_corpse_tips_over:
{
LDA !sram_cutscenes : BIT !CUTSCENE_FAST_MB : BEQ .continue
LDA #$0030 : STA $0FB2
.continue
if !FEATURE_PAL
LDA #$B1C8
else
LDA #$B1B8
endif
STA $0FA8
JMP ($0FA8)
}
print pc, " cutscenes MB end"
| 14.944518
| 84
| 0.681605
|
d60919653f4306d0d8f207b576499007d60ad47a
| 163
|
nasm
|
Assembly
|
src/kexec/def.nasm
|
maximsmol/nos
|
386b4166b3fd1701b734bfcd50ace1b9e1ea38ee
|
[
"MIT"
] | 1
|
2019-04-29T05:10:52.000Z
|
2019-04-29T05:10:52.000Z
|
src/kexec/def.nasm
|
maximsmol/nos
|
386b4166b3fd1701b734bfcd50ace1b9e1ea38ee
|
[
"MIT"
] | null | null | null |
src/kexec/def.nasm
|
maximsmol/nos
|
386b4166b3fd1701b734bfcd50ace1b9e1ea38ee
|
[
"MIT"
] | 1
|
2021-12-06T23:49:27.000Z
|
2021-12-06T23:49:27.000Z
|
%ifndef hguard_kexec_def
%define hguard_kexec_def
struc kexec
.maginum: resb 5 ; "kexec"
.entry: resd 1
.code: equ ($-%$strucname) ; hacks
endstruc
%endif
| 14.818182
| 36
| 0.705521
|
d68039acad7c584f0f0292c53b5916a6fc9cba4f
| 361
|
asm
|
Assembly
|
programs/oeis/070/A070884.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/070/A070884.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/070/A070884.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A070884: 7 + x where x is congruent to {0, 4, 6, 10, 12, 16, 22, 24} mod 30.
; 7,11,13,17,19,23,29,31,37,41,43,47,49,53,59,61,67,71,73,77,79,83,89,91,97,101,103,107,109,113,119,121,127,131,133,137,139,143,149,151,157,161,163,167,169,173,179,181,187,191,193,197,199,203,209,211,217,221
add $0,1
cal $0,84968 ; Multiples of 7 coprime to 30.
mov $1,$0
div $1,7
| 45.125
| 207
| 0.66759
|
de7a47e3fdb592619c747fee452d7889d4d8d512
| 360
|
asm
|
Assembly
|
oeis/067/A067770.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/067/A067770.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/067/A067770.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A067770: a(n) = Catalan(n) mod (n+2).
; Submitted by Jon Maiga
; 1,1,2,0,2,0,4,6,0,0,8,0,0,10,8,0,0,0,0,0,0,0,0,0,0,18,0,0,20,0,16,22,0,0,12,0,0,13,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,0,0,56,0,0,58,0,0,30,0,0,31,0,0,32,0,0,0,0,0
mov $2,$0
mul $0,2
bin $0,$2
mov $1,1
add $1,$2
mul $0,$1
add $1,1
mod $0,$1
| 27.692308
| 216
| 0.544444
|
69a8247ccf59125edd6217994647253bdce4c646
| 903
|
asm
|
Assembly
|
programs/oeis/272/A272928.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/272/A272928.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/272/A272928.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A272928: Partial sums of A147562.
; 0,1,6,15,36,61,98,147,232,321,422,535,684,845,1042,1275,1616,1961,2318,2687,3092,3509,3962,4451,5048,5657,6302,6983,7772,8597,9530,10571,11936,13305,14686,16079,17508,18949,20426,21939,23560,25193,26862,28567,30380
mov $34,$0
mov $36,$0
lpb $36,1
clr $0,34
mov $0,$34
sub $36,1
sub $0,$36
mov $31,$0
mov $33,$0
lpb $33,1
mov $0,$31
sub $33,1
sub $0,$33
mov $27,$0
mov $29,2
lpb $29,1
mov $0,$27
sub $29,1
add $0,$29
sub $0,1
cal $0,160410 ; Number of "ON" cells at n-th stage in simple 2-dimensional cellular automaton (see Comments for precise definition).
mov $1,$0
mov $30,$29
lpb $30,1
mov $28,$1
sub $30,1
lpe
lpe
lpb $27,1
mov $27,0
sub $28,$1
lpe
mov $1,$28
div $1,3
add $32,$1
lpe
add $35,$32
lpe
mov $1,$35
| 21
| 216
| 0.566999
|
e5e618cd9a1dab6db3d426264a785e52ebaf6c20
| 5,151
|
asm
|
Assembly
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_1693.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_1693.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_1693.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0xa498, %rsi
lea addresses_A_ht+0x12dd8, %rdi
nop
nop
nop
nop
nop
cmp %r13, %r13
mov $116, %rcx
rep movsl
nop
nop
nop
nop
nop
and $64228, %rbp
lea addresses_WC_ht+0xeb98, %rbp
nop
nop
nop
nop
nop
add $32498, %r8
movb (%rbp), %al
nop
nop
nop
inc %r13
lea addresses_normal_ht+0x5498, %rsi
lea addresses_A_ht+0x169d8, %rdi
nop
nop
nop
nop
and %rdx, %rdx
mov $64, %rcx
rep movsq
nop
nop
nop
xor %r8, %r8
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r8
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %r8
push %rax
push %rcx
push %rsi
// Load
mov $0xc8, %r8
nop
nop
nop
inc %rcx
mov (%r8), %si
nop
nop
nop
nop
nop
add %rcx, %rcx
// Store
lea addresses_D+0x19318, %rax
nop
sub %r11, %r11
movw $0x5152, (%rax)
nop
nop
add $38426, %r12
// Faulty Load
mov $0x7dc51a0000000dd8, %rsi
nop
nop
nop
add $21255, %rcx
movb (%rsi), %r12b
lea oracles, %r8
and $0xff, %r12
shlq $12, %r12
mov (%r8,%r12,1), %r12
pop %rsi
pop %rcx
pop %rax
pop %r8
pop %r14
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': False, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 6}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_NC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 10}}
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 6}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 6}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 10}}
{'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
*/
| 39.623077
| 2,999
| 0.658319
|
8a26c9e993844f5716bf1d2dc5146abb2054a181
| 1,773
|
asm
|
Assembly
|
Test_Cases/branch_code.asm
|
Passant-Abdelgalil/MIPS-Processor-Harvard-Architecture
|
f93a5781f659072261143f389575d5844cf46873
|
[
"MIT"
] | 6
|
2022-01-11T20:18:58.000Z
|
2022-02-09T20:19:33.000Z
|
Test_Cases/branch_code.asm
|
Passant-Abdelgalil/MIPS-Processor-Harvard-Architecture
|
f93a5781f659072261143f389575d5844cf46873
|
[
"MIT"
] | null | null | null |
Test_Cases/branch_code.asm
|
Passant-Abdelgalil/MIPS-Processor-Harvard-Architecture
|
f93a5781f659072261143f389575d5844cf46873
|
[
"MIT"
] | 1
|
2022-02-09T19:41:04.000Z
|
2022-02-09T19:41:04.000Z
|
# all numbers in hex format
# we always start by reset signal
# this is a commented line
.ORG 0 #this means the the following line would be at address 0 , and this is the reset address
10
#you should ignore empty lines
.ORG 2 #this is empty stack exception handler address
400
.ORG 4 #this is invalid addess exception handler address
450
.ORG 6 #this is int 0
200
.ORG 8 #this is int 2
250
.ORG 200 #this is int 0
AND R0,R0,R0 #N=0,Z=1
OUT R6
RTI #POP PC and flags restored
.ORG 250 #this is int 2
SETC
AND R0,R0,R0 #N=0,Z=1
OUT R2
RTI #POP PC and flags restored
.ORG 10
IN R1 #R1=30
IN R2 #R2=50
IN R3 #R3=100
IN R4 #R4=300
Push R4 #sp=FFFFFFFE, M[FFFFFFFF]=300
INT 2 #SP=FFFFFFFC, M[FFFFFFFD]=half next PC,M[FFFFFFFE]=other half next PC
JMP R1
INC R1 # this statement shouldn't be executed
#check flag fowarding
.ORG 30
AND R5,R1,R5 #R5=0 , Z = 1
JZ R2 #Jump taken, Z = 0
SETC # this statement shouldn't be executed, C-->1
#check on flag updated on jump
.ORG 50
JZ R1 #shouldn't be taken
JC R3 #Jump Not taken
#check destination forwarding
NOT R5 #R5=FFFF, Z= 0, C--> not change, N=1
INT 0 #SP=FFFFFFFC, M[FFFFFFFD]=half next PC,M[FFFFFFFE]=other half next PC
IN R6 #R6=700, flag no change
JN R6 #jump taken, N = 0
INC R1 # this statement shouldn't be executed
#check on load use
.ORG 700
SETC #C-->1
POP R6 #R6=300, SP=FFFFFFFF
Call R6 #SP=FFFFFFFD, M[FFFFFFFE]=half next PC,M[FFFFFFFF]=other half next PC
INC R6 #R6=401, this statement shouldn't be executed till call returns, C--> 0, N-->0,Z-->0
NOP
NOP
.ORG 300
ADD R6,R3,R6 #R6=400
ADD R1,R1,R2 #R1=80, C->0,N=0, Z=0
RET
SETC #this shouldnot be executed
.ORG 500
NOP
NOP
| 22.730769
| 98
| 0.65877
|
c6f0aa5609f11d041022d35c9cf397923f33b75d
| 372
|
asm
|
Assembly
|
oeis/095/A095998.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/095/A095998.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/095/A095998.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A095998: n! * (fractional part of n-th harmonic number).
; Submitted by Jon Maiga
; 0,1,5,2,34,324,2988,28944,300816,3371040,793440,49438080,1121696640,21930773760,416139897600,7965912729600,156343306291200,3169866941337600,66629845591142400,1454242012231680000
mov $1,1
mov $2,1
lpb $0
sub $0,1
add $2,1
mul $3,$2
add $3,$1
mul $1,$2
lpe
mod $3,$1
mov $0,$3
| 23.25
| 179
| 0.725806
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.