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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
760c53a430d97819ca2875d1bfa46b31aa7ce750 | 885 | asm | Assembly | programs/oeis/154/A154358.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/154/A154358.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/154/A154358.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A154358: a(n) = 1250*n^2 - 1800*n + 649.
; 649,99,2049,6499,13449,22899,34849,49299,66249,85699,107649,132099,159049,188499,220449,254899,291849,331299,373249,417699,464649,514099,566049,620499,677449,736899,798849,863299,930249,999699,1071649,1146099,1223049,1302499,1384449,1468899,1555849,1645299,1737249,1831699,1928649,2028099,2130049,2234499,2341449,2450899,2562849,2677299,2794249,2913699,3035649,3160099,3287049,3416499,3548449,3682899,3819849,3959299,4101249,4245699,4392649,4542099,4694049,4848499,5005449,5164899,5326849,5491299,5658249,5827699,5999649,6174099,6351049,6530499,6712449,6896899,7083849,7273299,7465249,7659699,7856649,8056099,8258049,8462499,8669449,8878899,9090849,9305299,9522249,9741699,9963649,10188099,10415049,10644499,10876449,11110899,11347849,11587299,11829249,12073699
seq $0,154360 ; a(n) = 250*n - 180.
pow $0,2
sub $0,4900
div $0,50
add $0,99
| 98.333333 | 763 | 0.823729 |
38eadcc5ce52800fc352c00990ee18aa7a14ab56 | 2,378 | asm | Assembly | laturi/header32.asm | temisu/BR4096 | 0e2cac8b468c853eb78ba773f082610a75405ff4 | [
"BSD-2-Clause"
] | 8 | 2018-09-15T16:49:53.000Z | 2021-11-17T03:16:19.000Z | laturi/header32.asm | temisu/BR4096 | 0e2cac8b468c853eb78ba773f082610a75405ff4 | [
"BSD-2-Clause"
] | null | null | null | laturi/header32.asm | temisu/BR4096 | 0e2cac8b468c853eb78ba773f082610a75405ff4 | [
"BSD-2-Clause"
] | 1 | 2019-09-22T13:52:19.000Z | 2019-09-22T13:52:19.000Z | ; Copyright (C) Teemu Suutari
; x86
bits 32
section .text
%include "symbols.asm"
; MACH header
MACHHeader:
dd 0xfeedface ; magic
dd SOLVE(CPU_TYPE_X86) ; cpu type
dd 0 ; cpu subtype (wrong, but works)
dd SOLVE(MH_EXECUTE) ; filetype
dd 6 ; number of commands
dd MACHCommandsEnd-MACHCommandsStart ; size of commands
; dd SOLVE(MH_PREBOUND)|SOLVE(MH_TWOLEVEL)|SOLVE(MH_NOFIXPREBINDING)
; dd SOLVE(MH_PREBOUND)|SOLVE(MH_TWOLEVEL)
; dd SOLVE(MH_PREBOUND)|SOLVE(MH_TWOLEVEL)|SOLVE(MH_NOFIXPREBINDING)|SOLVE(MH_NOUNDEFS)
dd 0 ; flags
MACHHeaderEnd:
; by definition commands follow right after the header
MACHCommandsStart:
Command2Start:
dd SOLVE(LC_SEGMENT) ; this is segment
dd Command2End-Command2Start ; size
Seg2NameStart:
times 16-$+Seg2NameStart db 0 ; section name
dd 0 ; vmaddr
global HeapSize
HeapSize:
dd 0 ; vmsize
dd 0 ; fileoff
global CodeSize
CodeSize:
dd 0 ; filesize, will be written
; by the linker
dd 0 ; maxprot
dd SOLVE(VM_PROT_READ)|SOLVE(VM_PROT_WRITE)|SOLVE(VM_PROT_EXECUTE)
dd 0 ; nsects
; dd SOLVE(SG_NORELOC) ; flags
dd 0
Command2End:
;%ifdef OSX_12 OSX_13
Command4Start:
dd SOLVE(LC_SEGMENT) ; this is segment
dd Command4End-Command4Start ; size
Seg4NameStart:
db '__LINKEDIT'
times 16-$+Seg4NameStart db 0 ; section name
dd 0 ; vmaddr
dd 0 ; vmsize
dd 0x1000 ; fileoff (insane)
dd 0 ; filesize
dd 0 ; maxprot
dd 0 ; initport
dd 0 ; nsects
dd 0 ; flags
Command4End:
Command5Start:
dd SOLVE(LC_DYLD_INFO_ONLY)
dd Command5End-Command5Start ; size
dd 0,0,0,0,0
dd 0,0,0,0,0
Command5End:
Command6Start:
dd SOLVE(LC_DYSYMTAB)
dd Command6End-Command6Start ; size
dd 0,0,0,0,0,0,0,0,0
dd 0,0,0,0,0,0,0,0,0
Command6End:
;%endif
Command1Start:
dd SOLVE(LC_MAIN) ; this is main
dd Command1End-Command1Start ; size
Global __LATURI__CodeStart
__LATURI__CodeStart:
dd 0 ; eip
dd 0
dd 0 ; stack
dd 0
Command1End:
%if 0
; default VSYNC
Command7Start:
dd SOLVE(LC_VERSION_MIN_MACOSX) ; min version
dd Command7End-Command7Start ; size
dd 0 ; min version
dd 0x0a0a00 ; sdk
Command7End:
%endif
Command3Start:
dd SOLVE(LC_LOAD_DYLINKER) ; dyld
dd Command3End-Command3Start ; size
dd DyldName-Command3Start ; offset
DyldName:
db '/usr/lib/dyld',0 ; 14 bytes
Command3End:
MACHCommandsEnd:
| 21.232143 | 87 | 0.714045 |
9fa3e2b6ab6a21d2e7eeb1e8f45e578b7740d140 | 856 | asm | Assembly | programs/oeis/147/A147600.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/147/A147600.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/147/A147600.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A147600: Expansion of 1/(1 - 3*x^2 + x^4).
; 1,0,3,0,8,0,21,0,55,0,144,0,377,0,987,0,2584,0,6765,0,17711,0,46368,0,121393,0,317811,0,832040,0,2178309,0,5702887,0,14930352,0,39088169,0,102334155,0,267914296,0,701408733,0,1836311903,0,4807526976,0,12586269025,0,32951280099,0,86267571272,0,225851433717,0,591286729879,0,1548008755920,0,4052739537881,0,10610209857723,0,27777890035288,0,72723460248141,0,190392490709135,0,498454011879264,0,1304969544928657,0,3416454622906707,0,8944394323791464,0,23416728348467685,0,61305790721611591,0,160500643816367088,0,420196140727489673,0,1100087778366101931,0,2880067194370816120,0,7540113804746346429,0,19740274219868223167,0,51680708854858323072,0,135301852344706746049,0,354224848179261915075,0
mov $1,2
mov $2,2
lpb $0
sub $0,2
add $2,$1
add $1,$2
lpe
lpb $0
sub $0,1
mul $1,$0
lpe
div $1,2
mov $0,$1
| 50.352941 | 692 | 0.788551 |
616bf35f340b2c867335bc32775de3c01398d318 | 488 | asm | Assembly | programs/oeis/062/A062302.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/062/A062302.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/062/A062302.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A062302: Number of ways writing n-th prime as a sum of a prime and a nonprime.
; 0,1,0,1,4,3,6,5,8,9,8,11,12,11,14,15,16,15,18,19,18,21,22,23,24,25,24,27,26,29,30,31,32,31,34,33,36,37,38,39,40,39,42,41,44,43,46,47,48,47,50,51,50,53,54,55,56,55,58,59,58,61,62,63,62,65,66,67,68,67,70,71,72,73,74,75,76,77,78,79,80,79,82,81,84,85,86,87,88,87,90,91,92,93,94,95,96,97,96,99
mov $1,$0
trn $1,1
seq $1,100810 ; a(n) = 0 if prime(n) + 2 = prime(n+1), otherwise 1.
mul $1,2
add $0,$1
sub $0,2
| 48.8 | 290 | 0.641393 |
10df5cf37f8b89179cc69646908a434c1e51da49 | 2,959 | asm | Assembly | subprojects/kernel/src/arch/i386/main.asm | SlumberousForests/octOs | c1454ded1c42d83811a7c6bfcbbdfcb88bcae527 | [
"MIT"
] | 9 | 2019-10-25T10:11:43.000Z | 2021-11-09T00:16:20.000Z | subprojects/kernel/src/arch/i386/main.asm | SlumberousForests/octOs | c1454ded1c42d83811a7c6bfcbbdfcb88bcae527 | [
"MIT"
] | 7 | 2019-10-24T16:32:37.000Z | 2021-07-19T13:33:56.000Z | subprojects/kernel/src/arch/i386/main.asm | SlumberousForests/octOs | c1454ded1c42d83811a7c6bfcbbdfcb88bcae527 | [
"MIT"
] | 2 | 2019-10-24T18:32:02.000Z | 2022-02-19T23:22:35.000Z | %include "src/arch/i386/multiboot.asm"
section .bss
global pmm_bitmap
align 16
;; the stack is defined here.
;; defined in .bss to save kernel space, since it'll just say
;; "16384 uninitialised bytes here", rather than actually list
;; that many bytes out in the object file!
stack_bottom:
resb 8192
stack_top:
ring3_stack_bottom:
resb 8192
ring3_stack_top:
pmm_bitmap: ; the beginning of the physical memory manager's bitmap
; each bit will represent a page in memory, of size PMM_BLOCKSIZE
resb 0x100000 ; allocate the maximum possible needed amount of memory (4GB worth of blocks)
section .data
; data here
section .text ; now the actual kernel entry point is in this section
global _start:function (_start.end - _start) ; make the object file store the length of the _start symbol
global _kernel_start
global _kernel_end
_kernel_start:
%include "src/arch/i386/common.asm"
%include "src/arch/i386/gdt.asm"
%include "src/arch/i386/idt.asm"
%include "src/arch/i386/pic.asm"
%include "src/arch/i386/pit.asm"
%include "src/arch/i386/keyboard.asm"
%include "src/arch/i386/syscall.asm"
extern pmm_init
extern vmm_init
extern kio_puts
extern kio_puts_attr
extern kio_init
extern kio_cls
extern kio_print_kernel_banner
extern register_exceptions
extern kmain
_start: ; kernel entry point
;warning: don't touch ebx until after pmm_init
mov esp, stack_top
cli
call kio_cls
call kio_init
call kio_print_kernel_banner
push dword ebx
call pmm_init
add esp, 4
call vmm_init
call fill_tss_descriptor
lgdt [gdt_descriptor]
call load_tss
call refresh_segments
; Set up addresses of various IDT descriptors
call init_pit
call init_keyboard
call init_syscall
lidt [idt_descriptor]
call register_exceptions
call pic_init
call kmain
jmp hltlp
.end:
; now the GDT is set up, as well as a TSS entry, and also the IDT is set up
; ready to go into userspace
; .jump_userland:
; mov ax, 0x23 ; 0x23 is the 4th GDT entry (user data)
; mov ds, ax ; load the user data segment into all of
; mov es, ax ; the data segment registers
; mov fs, ax
; mov gs, ax
; ; set up call stack for iret
; extern userspace_entry
; push 0x23 ; the data segment again
; mov eax, ring3_stack_top
; push eax ; the stack pointer
; pushf ; push the EFLAGS register
; push 0x1b ; user code segment
; push userspace_entry
; iret ; "return" to the userland
hltlp: hlt
jmp hltlp
ptable_base dd 0 ; base address of process table
ptable_pages db 0 ; amount of pages used to store the ptable
ptable_processes dw 0 ; amount of entries in process table
pmm_memlowersize dd 0
pmm_memuppersize dd 0
pmm_mmaplength dd 0
pmm_mmapaddress dd 0
pmm_amountblocks dd 0
pmm_bitmapbytes dd 0 ; amount of bytes needed to represent the bitmap
_kernel_end:
| 25.290598 | 108 | 0.715444 |
d8eecc34fe0314f82b5c4cb63d1dccb9e155adb5 | 94 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_scalbn.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_scalbn.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_scalbn.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
SECTION code_fp_math48
PUBLIC asm_scalbn
EXTERN am48_scalbn
defc asm_scalbn = am48_scalbn
| 10.444444 | 29 | 0.840426 |
01b1ecad110ced6b9ef4836d4299eadce9a6aecc | 1,943 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_1_307.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_1_307.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_1_307.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 %r9
push %rbx
push %rdi
push %rsi
lea addresses_WC_ht+0x1e2c1, %rbx
clflush (%rbx)
nop
nop
nop
nop
nop
cmp $22435, %r9
mov (%rbx), %si
nop
nop
nop
nop
nop
sub $128, %rdi
pop %rsi
pop %rdi
pop %rbx
pop %r9
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r15
push %r8
push %rax
push %rcx
push %rdi
push %rdx
// Store
mov $0x55c0ef0000000f81, %rax
nop
xor %rdi, %rdi
mov $0x5152535455565758, %r8
movq %r8, %xmm2
movups %xmm2, (%rax)
nop
nop
cmp %r12, %r12
// Store
lea addresses_WT+0x1c971, %rax
nop
nop
nop
and %rcx, %rcx
mov $0x5152535455565758, %r8
movq %r8, %xmm6
vmovups %ymm6, (%rax)
nop
nop
nop
inc %rax
// Store
mov $0x3ffe940000000381, %rax
nop
nop
add $44319, %r15
mov $0x5152535455565758, %r8
movq %r8, %xmm4
vmovaps %ymm4, (%rax)
nop
nop
nop
nop
nop
inc %rdx
// Faulty Load
lea addresses_A+0x8f81, %r8
clflush (%r8)
nop
sub $50659, %r12
vmovups (%r8), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $0, %xmm5, %rdi
lea oracles, %rdx
and $0xff, %rdi
shlq $12, %rdi
mov (%rdx,%rdi,1), %rdi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r15
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 8, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 4, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': True, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 5, 'size': 2, 'same': False, 'NT': False}}
{'00': 1}
00
*/
| 17.19469 | 124 | 0.646423 |
170874c39fc6f57b0f9e09f7718492331298010c | 1,030 | asm | Assembly | Opus/asm/movecmds.asm | Computer-history-Museum/MS-Word-for-Windows-v1.1 | 549a2a32e930694df7b91e3273b886d735fa9151 | [
"MIT"
] | 2 | 2018-01-22T14:38:52.000Z | 2019-02-25T02:16:30.000Z | Microsoft DOS/Word 1.1a CHM Distribution/Opus/asm/movecmds.asm | mindcont/Open-Source | 416917cbe3d4469cc036d05e7c858b05b8081ded | [
"CC0-1.0"
] | null | null | null | Microsoft DOS/Word 1.1a CHM Distribution/Opus/asm/movecmds.asm | mindcont/Open-Source | 416917cbe3d4469cc036d05e7c858b05b8081ded | [
"CC0-1.0"
] | 1 | 2021-06-25T17:34:43.000Z | 2021-06-25T17:34:43.000Z | ; movecmd.asm -- move the command table
?PLM = 1
?WIN = 1
include w2.inc
include cmacros.inc
createSeg initwin_PCODE, INIT, BYTE, PUBLIC, CODE
sBegin INIT
assumes CS, INIT
externB vsytInit
externB vkmpInit
externB vmudInit
externB vsttbMenuBase
externB vsttbMenuRgbst
; %%Function:MoveCmds %%Owner:bradch
cProc MoveCmds, <PUBLIC, FAR>, <di, si, ds>
parmD lpsyt
parmD lpkmp
parmD lpmud
parmD lpsttb
parmD lprgbst
cBegin MoveCmds
push cs
pop ds
; do command table
les di,lpsyt
mov si, initOffset vsytInit
lodsw ; ax = *pSource++ (cw)
mov cx,ax
rep movsw
; now do keymap
les di, lpkmp
mov si, initOffset vkmpInit
lodsw
mov cx,ax
rep movsw
; menu delta
les di,lpmud
mov si,initOffset vmudInit
lodsw
mov cx,ax
rep movsw
; menu string table base
les di,lpsttb
mov si,initOffset vsttbMenuBase
lodsw
mov cx,ax
rep movsw
; menu string table rgbst & strings
les di,lprgbst
mov si,initOffset vsttbMenuRgbst
lodsw
mov cx,ax
rep movsw
cEnd MoveCmds
sEnd INIT
end
| 13.376623 | 49 | 0.719417 |
aa5a4583051508e768360365bd1696c31b6d56d9 | 295 | asm | Assembly | programs/oeis/240/A240349.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/240/A240349.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/240/A240349.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A240349: Inverse of 59th cyclotomic polynomial.
; 1,-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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,-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
sub $1,$0
mod $1,59
pow $1,$1
mov $0,$1
| 36.875 | 203 | 0.545763 |
38860ec69a0d0ba3423b53024a88627ffd7fee72 | 372 | asm | Assembly | programs/oeis/133/A133623.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/133/A133623.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/133/A133623.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A133623: Binomial(n+p, n) mod n where p=3.
; 0,0,2,3,1,0,1,5,4,6,1,11,1,8,6,9,1,16,1,11,8,12,1,21,1,14,10,15,1,26,1,17,12,18,1,31,1,20,14,21,1,36,1,23,16,24,1,41,1,26,18,27,1,46,1,29,20,30,1,51,1,32,22,33,1,56,1,35,24,36,1,61,1,38,26,39,1,66,1,41,28,42,1,71,1,44,30,45,1,76,1,47,32,48,1,81,1,50,34,51
mov $1,1
add $1,$0
mov $2,$1
add $1,3
bin $1,$2
mod $1,$2
mov $0,$1
| 33.818182 | 257 | 0.591398 |
efb30e54d04fdac84dba5a2f54589e4210ce796c | 760 | asm | Assembly | oeis/193/A193771.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/193/A193771.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/193/A193771.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A193771: Expansion of 1 / (1 - x - x^3 + x^6) in powers of x.
; Submitted by Jon Maiga
; 1,1,1,2,3,4,5,7,10,13,17,23,31,41,54,72,96,127,168,223,296,392,519,688,912,1208,1600,2120,2809,3721,4929,6530,8651,11460,15181,20111,26642,35293,46753,61935,82047,108689,143982,190736,252672,334719,443408,587391,778128,1030800,1365519,1808928,2396320,3174448,4205248,5570768,7379697,9776017,12950465,17155714,22726483,30106180,39882197,52832663,69988378,92714861,122821041,162703239,215535903,285524281,378239142,501060184,663763424,879299327,1164823608,1543062751,2044122936,2707886360,3587185687
lpb $0
sub $0,1
add $1,1
mov $3,$1
add $4,1
mul $4,2
mov $1,$4
add $1,$2
add $2,$3
sub $1,$2
mov $4,$2
sub $4,$3
div $4,2
lpe
mov $0,$4
add $0,1
| 36.190476 | 499 | 0.725 |
6660ec02ff6ee29c3b7bff44eb28b2bd764145fd | 4,196 | asm | Assembly | src/rng-2048gb.asm | SzieberthAdam/gb-rngdemo | ae678d31b6f16e67beae2e8ed95fbf6d481b7503 | [
"0BSD"
] | 1 | 2021-06-06T16:30:11.000Z | 2021-06-06T16:30:11.000Z | src/rng-2048gb.asm | SzieberthAdam/gb-rng | ae678d31b6f16e67beae2e8ed95fbf6d481b7503 | [
"0BSD"
] | null | null | null | src/rng-2048gb.asm | SzieberthAdam/gb-rng | ae678d31b6f16e67beae2e8ed95fbf6d481b7503 | [
"0BSD"
] | null | null | null | ;* RNG-2048GB
;* Derived from the 2048-gb ([2048-GB]) source code with the following LICENSE
;* which also applies to this file if anyone thinks that a license can be
;* applied to this tiny code:
;* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
;* Copyright (c) 2014 "Sanqui"
;*
;* This software is provided 'as-is', without any express or implied
;* warranty. In no event will the authors be held liable for any damages
;* arising from the use of this software.
;*
;* Permission is granted to anyone to use this software for any purpose,
;* including commercial applications, and to alter it and redistribute it
;* freely, subject to the following restrictions:
;*
;* 1. The origin of this software must not be misrepresented; you must not
;* claim that you wrote the original software. If you use this software
;* in a product, an acknowledgment in the product documentation would be
;* appreciated but is not required.
;*
;* 2. Altered source versions must be plainly marked as such, and must not be
;* misrepresented as being the original software.
;*
;* 3. This notice may not be removed or altered from any source
;* distribution.
;* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
;* GB-RNG adaptation and comments Copyright (c) 2019 Szieberth Ádám
;* =============================================================================
;* ABSTRACT
;* =============================================================================
;* This file contains the random number generator of the game named 2048-gb. It
;* simply XOR's the one byte seed with the Divider Register value. In 2048-gb,
;* the routine is called by the Vblank handler and when new tile is needed,
;* basically after randomly timed user inputs. For games which require only a
;* single byte of randomness at a time, it might be a good choice as a RNG can
;* not get more plain than this.
;* =============================================================================
;* INCLUDES
;* =============================================================================
INCLUDE "HARDWARE.INC"
INCLUDE "RNG.INC"
;* =============================================================================
;* INITIALIZATION
;* =============================================================================
;* The game seeded the RNG with the initial random values of the RAM. It set HL
;* to $C000 then set L to [$C000] (RNG seed was stored in H_RNG1/$FFF1):
;*
;* ld hl, $C000
;* ld l, [hl]
;* ld a, [hl]
;* push af
;* ...
;* pop af
;* ld [H_RNG1], a
SECTION "RNG", ROM0,ALIGN[12]
rand_init::
ret ; 1|4
;* =============================================================================
;* RANDOM NUMBER GENERATOR
;* =============================================================================
;* The RNG simply XOR's the previous random value with the value of the divider
;* register.
rand:: ; 9|15 (11|17 if RNGSEED in WRAM)
ld a, [rDIV] ; 2|3 LDH
ld b, a ; 1|1
ld a, [RNGSEED] ; 2|3 LDH
xor a, b ; 1|1
ld [RNGSEED], a ; 2|3 LDH
ret ; 1|4
;* =============================================================================
;* REMARKS
;* =============================================================================
;* This RNG is obviously a week one. There are visible visual patterns in the
;* generated stream. For instance values at the 2nd, 6th, and 10th positions are
;* always identical.
;* However, this RNG is not designed to produce long streams. Moreover it should
;* be only used to get a single byte or less of randomness after a user input.
;* This might fit for some games. Use the least significant bits if less than a
;* byte is enough.
;* =============================================================================
;* REFERENCES
;* =============================================================================
;* [2048-GB] Sanqui et al.: 2048-gb (GAME)
;* https://gbhh.avivace.com/game/2048gb
| 39.214953 | 80 | 0.480458 |
2e7eeb2a1328be382adb681014840be34d44a35a | 1,252 | asm | Assembly | data/events/bench_guys.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | 1 | 2022-02-15T00:19:44.000Z | 2022-02-15T00:19:44.000Z | data/events/bench_guys.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | data/events/bench_guys.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | bench_guy_text: MACRO
db \1, \2
db_tx_pre \3
ENDM
BenchGuyTextPointers:
; map id, player facing direction, predef text
bench_guy_text VIRIDIAN_POKECENTER, SPRITE_FACING_LEFT, ViridianCityPokecenterBenchGuyText
bench_guy_text PEWTER_POKECENTER, SPRITE_FACING_LEFT, PewterCityPokecenterBenchGuyText
bench_guy_text CERULEAN_POKECENTER, SPRITE_FACING_LEFT, CeruleanCityPokecenterBenchGuyText
bench_guy_text LAVENDER_POKECENTER, SPRITE_FACING_LEFT, LavenderCityPokecenterBenchGuyText
bench_guy_text VERMILION_POKECENTER, SPRITE_FACING_LEFT, VermilionCityPokecenterBenchGuyText
bench_guy_text CELADON_POKECENTER, SPRITE_FACING_LEFT, CeladonCityPokecenterBenchGuyText
bench_guy_text CELADON_HOTEL, SPRITE_FACING_LEFT, CeladonCityHotelText
bench_guy_text FUCHSIA_POKECENTER, SPRITE_FACING_LEFT, FuchsiaCityPokecenterBenchGuyText
bench_guy_text CINNABAR_POKECENTER, SPRITE_FACING_LEFT, CinnabarIslandPokecenterBenchGuyText
bench_guy_text SAFFRON_POKECENTER, SPRITE_FACING_LEFT, SaffronCityPokecenterBenchGuyText
bench_guy_text MT_MOON_POKECENTER, SPRITE_FACING_LEFT, MtMoonPokecenterBenchGuyText
bench_guy_text ROCK_TUNNEL_POKECENTER, SPRITE_FACING_LEFT, RockTunnelPokecenterBenchGuyText
db -1 ; end
| 59.619048 | 96 | 0.868211 |
aea00b6051b2863c362a2962214a84304470410d | 8,044 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0_notsx.log_21829_683.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0_notsx.log_21829_683.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0_notsx.log_21829_683.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x6cc4, %r9
nop
xor $50417, %rdi
mov (%r9), %r14w
nop
nop
nop
nop
xor $17748, %r14
lea addresses_D_ht+0x2744, %r14
xor %rbp, %rbp
vmovups (%r14), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $1, %xmm2, %r10
nop
nop
nop
nop
inc %r14
lea addresses_WC_ht+0xff44, %r14
inc %rsi
movb (%r14), %r10b
nop
nop
nop
nop
nop
lfence
lea addresses_WC_ht+0x3020, %r9
nop
nop
cmp $11745, %r10
movl $0x61626364, (%r9)
nop
nop
cmp $63140, %r10
lea addresses_D_ht+0x1b7d8, %rsi
lea addresses_UC_ht+0x59e4, %rdi
nop
nop
nop
nop
nop
sub $49358, %rax
mov $62, %rcx
rep movsw
nop
nop
xor %r10, %r10
lea addresses_UC_ht+0x6744, %rax
clflush (%rax)
nop
nop
dec %r9
vmovups (%rax), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $0, %xmm1, %rdi
nop
nop
nop
nop
nop
cmp %r9, %r9
lea addresses_normal_ht+0x1e094, %rbp
nop
nop
nop
nop
nop
xor %r9, %r9
and $0xffffffffffffffc0, %rbp
movaps (%rbp), %xmm6
vpextrq $1, %xmm6, %rcx
nop
nop
add %r10, %r10
lea addresses_UC_ht+0x6d04, %r10
nop
nop
nop
nop
xor $62210, %rdi
movw $0x6162, (%r10)
nop
nop
nop
nop
nop
and $59852, %rbp
lea addresses_UC_ht+0x8a9c, %rsi
lea addresses_WT_ht+0xab5c, %rdi
nop
nop
nop
add $10511, %r10
mov $79, %rcx
rep movsq
nop
nop
nop
xor $47455, %rax
lea addresses_D_ht+0x1e04c, %rcx
clflush (%rcx)
nop
nop
inc %r9
movups (%rcx), %xmm2
vpextrq $1, %xmm2, %rax
nop
cmp $12939, %rax
lea addresses_normal_ht+0x172d0, %r10
sub %rcx, %rcx
mov $0x6162636465666768, %r14
movq %r14, %xmm5
movups %xmm5, (%r10)
nop
nop
nop
nop
inc %rcx
lea addresses_WT_ht+0x344, %rdi
nop
nop
nop
nop
nop
xor %rbp, %rbp
mov $0x6162636465666768, %r14
movq %r14, (%rdi)
nop
add $25624, %r14
lea addresses_D_ht+0x191f4, %r10
nop
nop
nop
nop
and %rcx, %rcx
mov (%r10), %r9w
and %rcx, %rcx
lea addresses_D_ht+0x12a44, %rsi
lea addresses_D_ht+0x12f84, %rdi
nop
cmp %rbp, %rbp
mov $70, %rcx
rep movsb
nop
nop
nop
dec %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
// REPMOV
lea addresses_RW+0xad64, %rsi
lea addresses_WT+0x1cb44, %rdi
nop
inc %rbx
mov $100, %rcx
rep movsq
nop
nop
nop
nop
nop
inc %r14
// Load
lea addresses_US+0xc3a4, %r8
nop
nop
nop
nop
xor $65182, %r14
mov (%r8), %edi
nop
nop
nop
nop
xor $25208, %rbx
// Faulty Load
lea addresses_US+0x1cb44, %rdi
nop
xor %r14, %r14
mov (%rdi), %r8d
lea oracles, %r12
and $0xff, %r8
shlq $12, %r8
mov (%r12,%r8,1), %r8
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_US', 'AVXalign': False, 'size': 1, 'NT': True, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_RW', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT', 'congruent': 10, 'same': False}}
{'src': {'type': 'addresses_US', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_US', 'AVXalign': True, 'size': 4, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2, 'NT': True, 'same': False, 'congruent': 7}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 1}}
{'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}}
{'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'AVXalign': True, 'size': 16, 'NT': False, 'same': False, 'congruent': 3}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 6}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}}
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 3}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 10}}
{'src': {'type': 'addresses_D_ht', 'AVXalign': True, 'size': 2, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 6, '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
*/
| 31.920635 | 2,999 | 0.655271 |
354a63febe3ab247f03f096e29cdd4ea5df0aae6 | 5,454 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1706.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1706.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1706.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 %r8
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x24c6, %r8
nop
nop
sub $28962, %rax
mov $0x6162636465666768, %rbp
movq %rbp, %xmm3
vmovups %ymm3, (%r8)
nop
cmp %rsi, %rsi
lea addresses_WT_ht+0x565e, %rsi
lea addresses_normal_ht+0x166ee, %rdi
nop
nop
nop
nop
and $32728, %rbx
mov $9, %rcx
rep movsb
nop
nop
nop
nop
xor $58297, %rbp
lea addresses_WC_ht+0x1bd02, %rsi
lea addresses_UC_ht+0x1eefe, %rdi
clflush (%rsi)
nop
nop
nop
nop
dec %rbp
mov $33, %rcx
rep movsw
inc %rax
lea addresses_D_ht+0x77bc, %rcx
nop
nop
cmp %rsi, %rsi
mov $0x6162636465666768, %rax
movq %rax, %xmm2
movups %xmm2, (%rcx)
nop
xor %rsi, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r8
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r8
push %r9
push %rbx
push %rcx
push %rdx
// Store
lea addresses_normal+0x1cd9e, %rcx
nop
and %r8, %r8
movl $0x51525354, (%rcx)
nop
nop
sub %r8, %r8
// Store
mov $0x1038fa000000055e, %rbx
nop
nop
nop
nop
nop
sub %r9, %r9
movw $0x5152, (%rbx)
nop
nop
nop
nop
and $26671, %rcx
// Faulty Load
lea addresses_D+0xb65e, %rbx
nop
sub $19358, %rcx
mov (%rbx), %r11d
lea oracles, %r9
and $0xff, %r11
shlq $12, %r11
mov (%r9,%r11,1), %r11
pop %rdx
pop %rcx
pop %rbx
pop %r9
pop %r8
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 2, 'NT': True, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 7}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_D', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 4}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 1}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 4}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 41.953846 | 2,999 | 0.660066 |
8f56920d943a9ee1df84ba80fca0c1a6e4496698 | 6,436 | asm | Assembly | kernel/kernel.asm | Twometer/nekosys | cbcdaddaf8087cde1c375dbc19c576475965f5b4 | [
"Apache-2.0"
] | 1 | 2021-08-28T19:50:32.000Z | 2021-08-28T19:50:32.000Z | kernel/kernel.asm | Twometer/nekosys | cbcdaddaf8087cde1c375dbc19c576475965f5b4 | [
"Apache-2.0"
] | null | null | null | kernel/kernel.asm | Twometer/nekosys | cbcdaddaf8087cde1c375dbc19c576475965f5b4 | [
"Apache-2.0"
] | null | null | null | section .boot
bits 16
global boot
; Kernel Handover header struct definition (short krnlh)
krnlh_mmap_state: equ 0x0500
krnlh_mmap_length: equ 0x0504
krnlh_mmap_ptr: equ 0x0508
krnlh_vesa_length: equ 0x050C
krnlh_vesa_state: equ 0x0510
krnlh_vesa_info_ptr: equ 0x0514
krnlh_vesa_mode_ptr: equ 0x0518
krnlh_vesa_current_mode: equ 0x51C
; Array contents
mmap_content_base: equ 0x1000
vesa_info_block: equ 0x2000
vesa_mode_array: equ 0x3000
; Video mode config
; This is currently hardcoded, as
; I don't want to implement VM86
; to change it dynamically. Maybe
; at some point in the future...
%define requested_x_resolution 1024
%define requested_y_resolution 768
%define force_text_mode_vga 0
; Other definitions
%define mode_info_struct_size 50
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ENTRY POINT FROM BOOTLOADER ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
boot:
; INIT HANDOVER STRUCT
mov dword [krnlh_mmap_state], 0
mov dword [krnlh_mmap_length], 0
mov dword [krnlh_vesa_state], 0
mov dword [krnlh_vesa_length], 0
mov dword [krnlh_vesa_info_ptr], vesa_info_block
mov dword [krnlh_vesa_mode_ptr], vesa_mode_array
mov dword [krnlh_mmap_ptr], mmap_content_base
; MMAP LOADER
; Set ES:DI target location for memory map
mov ax, 0 ; segment zero
mov es, ax
mov di, mmap_content_base
; Call BIOS
xor ebx, ebx ; clear ebx
mov edx, 0x0534D4150 ; magic number (SMAP)
mmap_next_entry:
mov eax, 0xe820 ; set command E820
mov ecx, 24 ; length maybe?
int 0x15
jc mmap_err_carry ; if carry is set, then it failed
mov edx, 0x0534D4150
cmp eax, edx
jne mmap_err_bad_sig ; if eax is not the magic num then error
cmp ebx, 0 ; if ebx == 0, it ended
je mmap_err_list_end
; if it didn't fail, goto next entry
inc dword [krnlh_mmap_length]
add di, 24 ; increment di by 24
jmp mmap_next_entry
; ** MMAP ERROR HANDLERS **
mmap_err_list_end:
mov dword [krnlh_mmap_state], 0x01
jmp mmap_done
mmap_err_bad_sig:
mov dword [krnlh_mmap_state], 0x02
jmp mmap_done
mmap_err_carry:
mov dword [krnlh_mmap_state], 0x03
jmp mmap_done
mmap_done:
; VESA LOADER
xor ax, ax ; Zero ES
mov es, ax
mov di, vesa_info_block ; Read info block
mov ax, 0x4F00
int 0x10
cmp ax, 0x004F
jne vesa_err_readinfo
; Segment: vesa_info_block[0x10]
; Offset: vesa_info_block[0x0E]
mov bx, [vesa_info_block + 0x0E]
mov di, vesa_mode_array
vesa_next_entry:
mov ds, [vesa_info_block + 0x10] ; Load video mode entry
mov cx, [bx]
xor ax, ax ; Reset data segment
mov ds, ax
cmp cx, 0xFFFF ; Reached the end?
je vesa_list_finished
; Save the current mode id in the mode struct
mov [di], cx
add di, 2
; Load more info about that mode from VESA bios
mov ax, 0x4F01
int 0x10
cmp ax, 0x004F
jne vesa_err_readmode
; Go to next entry
inc dword [krnlh_vesa_length]
add di, mode_info_struct_size
add bx, 2
jmp vesa_next_entry
; VIDEO MODE SELECTOR
vesa_list_finished:
; Scan the list for a resolution and bpp we want
mov di, 0
mov si, vesa_mode_array
mov cx, 0 ; CX stores the currently highest bit depth
mov bx, 0 ; BX stores the currently selected vid mode
vesa_next_res:
mov ax, [si + 0x02] ; Has linear framebuffer?
test ax, 128
jz vesa_loop_continue ; If no linear FB, we don't want the mode
mov ax, [si + 0x14] ; Check current X resolution
cmp ax, requested_x_resolution
jne vesa_loop_continue
mov ax, [si + 0x16] ; Check current Y resolution
cmp ax, requested_y_resolution
jne vesa_loop_continue
cmp cx, [si + 0x1b] ; Check current bpp
jg vesa_loop_continue ; If it's more than current max - continue
mov bx, [si] ; Else, save
mov cx, [si + 25]
vesa_loop_continue:
inc di ; If we reach the end, we stop
cmp di, [krnlh_vesa_length]
jge vesa_loop_ended
; If we didn't reach the end, goto next mode info block
add si, 52
jmp vesa_next_res
vesa_loop_ended:
cmp bx, 0 ; If BX is still zero, didn't find our resolution :(
jne vesa_found_resolution
mov bx, 0x112 ; Set a default mode (640x480x24)
vesa_found_resolution:
; Call BIOS to change into selected video mode
mov ax, 0x4F02
mov [krnlh_vesa_current_mode], bx
int 0x10
cmp ax, 0x004F ; Check for errors
jne vesa_err_chmode
jmp vesa_done
vesa_err_readinfo:
mov dword [krnlh_vesa_state], 0x01
jmp vesa_done
vesa_err_readmode:
mov dword [krnlh_vesa_state], 0x02
jmp vesa_done
vesa_err_chmode:
mov dword [krnlh_vesa_state], 0x03
jmp vesa_done
vesa_done:
%if force_text_mode_vga
mov dword [krnlh_vesa_current_mode], 0x00
mov ax, 0x2
int 0x10
%endif
; Remove 1MB limit
mov ax, 0x2401
int 0x15 ; enable A20 bit
; Load temporary Global Descriptor Table to get into kernel and enter protected mode
cli
lgdt [gdt_pointer] ; Load GDT
mov eax, cr0
or eax, 0x1 ; Enable the Protected Mode Bit
mov cr0, eax
jmp CODE_SEG:boot32 ; long jump to the code segment
; Define the Global Descriptor Table
gdt_start:
dq 0x0
gdt_code:
dw 0xFFFF
dw 0x0
db 0x0
db 10011010b
db 11001111b
db 0x0
gdt_data:
dw 0xFFFF
dw 0x0
db 0x0
db 10010010b
db 11001111b
db 0x0
gdt_end:
gdt_pointer:
dw gdt_end - gdt_start
dd gdt_start
CODE_SEG equ gdt_code - gdt_start
DATA_SEG equ gdt_data - gdt_start
bits 32
boot32:
; Make all segments point at the DATA segment we just defined
mov ax, DATA_SEG
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
; Setup stack and enter kernel
mov esp, kernel_stack_top
extern nkmain
call nkmain
; When we return from kernel, halt
halt_system:
cli
hlt
jmp halt_system
; Our C stack
section .bss
align 4
kernel_stack_bottom: equ $
resb 16384 ; 16 KB
kernel_stack_top:
| 24.471483 | 88 | 0.641237 |
bbca61056a6f541244a98fbf5763bb6043be77b8 | 1,070 | asm | Assembly | programs/oeis/045/A045572.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/045/A045572.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/045/A045572.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A045572: Numbers that are odd but not divisible by 5.
; 1,3,7,9,11,13,17,19,21,23,27,29,31,33,37,39,41,43,47,49,51,53,57,59,61,63,67,69,71,73,77,79,81,83,87,89,91,93,97,99,101,103,107,109,111,113,117,119,121,123,127,129,131,133,137,139,141,143,147,149,151,153,157,159,161,163,167,169,171,173,177,179,181,183,187,189,191,193,197,199,201,203,207,209,211,213,217,219,221,223,227,229,231,233,237,239,241,243,247,249,251,253,257,259,261,263,267,269,271,273,277,279,281,283,287,289,291,293,297,299,301,303,307,309,311,313,317,319,321,323,327,329,331,333,337,339,341,343,347,349,351,353,357,359,361,363,367,369,371,373,377,379,381,383,387,389,391,393,397,399,401,403,407,409,411,413,417,419,421,423,427,429,431,433,437,439,441,443,447,449,451,453,457,459,461,463,467,469,471,473,477,479,481,483,487,489,491,493,497,499,501,503,507,509,511,513,517,519,521,523,527,529,531,533,537,539,541,543,547,549,551,553,557,559,561,563,567,569,571,573,577,579,581,583,587,589,591,593,597,599,601,603,607,609,611,613,617,619,621,623
mul $0,5
add $0,2
div $0,4
mov $1,$0
mul $1,2
add $1,1
| 107 | 957 | 0.727103 |
0bbc4f33ad98ded0fb551973228053d27d4cd180 | 588 | asm | Assembly | oeis/267/A267453.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/267/A267453.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/267/A267453.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A267453: Number of OFF (white) cells in the n-th iteration of the "Rule 131" elementary cellular automaton starting with a single ON (black) cell.
; Submitted by Jon Maiga
; 0,2,3,5,5,8,7,10,11,12,12,16,15,17,18,20,20,23,22,25,26,27,27,31,30,32,33,35,35,38,37,40,41,42,42,46,45,47,48,50,50,53,52,55,56,57,57,61,60,62,63,65,65,68,67,70,71,72,72,76,75,77,78,80,80,83,82,85,86,87,87,91,90,92,93,95,95,98,97,100,101,102,102,106,105,107,108,110,110,113,112,115,116,117,117,121,120,122,123,125
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
| 36.75 | 315 | 0.678571 |
01f63a7224d0e74f62804d7260b441b90e8ef42a | 4,195 | asm | Assembly | Transynther/x86/_processed/NC/_ht_zr_un_/i3-7100_9_0x84_notsx.log_21829_1906.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_ht_zr_un_/i3-7100_9_0x84_notsx.log_21829_1906.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_ht_zr_un_/i3-7100_9_0x84_notsx.log_21829_1906.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 %r9
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x445e, %rsi
lea addresses_UC_ht+0x76a6, %rdi
clflush (%rsi)
clflush (%rdi)
nop
nop
nop
nop
nop
add %r10, %r10
mov $39, %rcx
rep movsb
nop
nop
nop
nop
add $47164, %r9
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r14
push %r9
push %rbp
push %rdi
// Faulty Load
mov $0x45cb8900000003de, %r12
clflush (%r12)
nop
sub $64829, %rdi
movups (%r12), %xmm3
vpextrq $1, %xmm3, %rbp
lea oracles, %r14
and $0xff, %rbp
shlq $12, %rbp
mov (%r14,%rbp,1), %rbp
pop %rdi
pop %rbp
pop %r9
pop %r14
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_NC', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_NC', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'}
{'77': 1, '00': 3, 'ff': 2, '44': 21823}
44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44
*/
| 59.084507 | 2,999 | 0.662694 |
7b6d16ba497e2f5f9102c3fd27922b81fa6e26c3 | 4,520 | asm | Assembly | atari_st/xbtimer.asm | michaelcmartin/bumbershoot | d465d18997c5651bb1d71488705b0d6e1271660c | [
"MIT"
] | 20 | 2016-06-22T10:04:48.000Z | 2022-03-13T23:16:10.000Z | atari_st/xbtimer.asm | michaelcmartin/bumbershoot | d465d18997c5651bb1d71488705b0d6e1271660c | [
"MIT"
] | null | null | null | atari_st/xbtimer.asm | michaelcmartin/bumbershoot | d465d18997c5651bb1d71488705b0d6e1271660c | [
"MIT"
] | 2 | 2016-12-19T02:31:06.000Z | 2020-02-04T02:56:27.000Z | ;;; ----------------------------------------------------------------------
;;; Programmable timer sample program for the Atari ST
;;; Written by Michael Martin, 2021
;;; Based on C sample code by Jwahar R. Bammi, 1986
;;; ----------------------------------------------------------------------
text
move.l #config_tick,-(sp) ; Config timer and ^C handler
move.w #38,-(sp) ; with SupExec()
trap #14 ; in XBIOS
addq.l #6,sp
move.l #intro,a0 ; Print greeting
bsr outstr
lp: move.l #cr,a0 ; Print header
bsr outstr
move.l counter,d0 ; and counter value
bsr outhex ; (updated by timer handler)
bra.s lp ; looping forever
move.l #unreachable_msg,a0 ; Can't happen!
bsr outstr
clr.w -(sp)
trap #1
;;; ----------------------------------------------------------------------
;;; tick: Called by the timer A interrupt handler
;;; ----------------------------------------------------------------------
tick: addq.l #1,counter ; Bump counter
bclr.b #5,$fffa0f ; Acknowledge interrupt
rte
;;; ----------------------------------------------------------------------
;;; config_tick: Sets up the terminate and timer handlers. Must be
;;; called in Supervisor mode.
;;; Trashes a0-a2/d0-d2.
;;; ----------------------------------------------------------------------
config_tick:
move.l #-1,-(sp) ; Read vector
move.w #$102,-(sp) ; for $102 (terminate)
move.w #5,-(sp) ; Setexec()
trap #13 ; BIOS call
addq.l #8,sp
move.l d0,oldterm ; Save original terminate vector
move.l #terminate,-(sp) ; And set the vector to our new one
move.w #$102,-(sp)
move.w #5,-(sp)
trap #13
addq.l #8,sp
move.l #tick,-(sp) ; Configure timer interrupt...
move.w #0,-(sp) ; 256 counts per call
move.w #7,-(sp) ; delay mode, 200 clocks per count
move.w #0,-(sp) ; on Timer A
move.w #31,-(sp) ; Xbtimer()
trap #14 ; XBIOS
add.l #12,sp
rts
;;; ----------------------------------------------------------------------
;;; terminate: Custom terminate handler. Fix vectors, turn off timer,
;;; and proceed with exit.
;;; ----------------------------------------------------------------------
terminate:
move.l #tick,-(sp) ; Configure timer interrupt...
move.w #0,-(sp)
move.w #0,-(sp) ; Disable timer
move.w #0,-(sp) ; on Timer A
move.w #31,-(sp) ; Xbtimer()
trap #14 ; XBIOS
add.l #12,sp
bclr.b #5,$fffa0f ; Ack maybe-pending IRQ
move.l oldterm,-(sp) ; Restore original terminate vector
move.w #$102,-(sp)
move.w #5,-(sp)
trap #13
addq.l #8,sp
;; We could return to the original dispatcher here, but let's
;; print a nice message and quit cleanly so we don't give an
;; error message.
;; We can't use GEMDOS (and thus Cconws()) inside the handler, so we
;; loop with Bconout() instead
move.l #goodbye,a3
subq.l #6,sp
.bye: clr.w 4(sp)
move.b (a3)+,5(sp)
beq.s .done
move.w #2,2(sp)
move.w #3,(sp)
trap #13
bra.s .bye
.done: addq.l #4,sp
clr.w (sp)
trap #1
;;; ----------------------------------------------------------------------
;;; outhex: Print the 32-bit number in d0 to console.
;;; Trashes a0-a2/d0-d2.
;;; ----------------------------------------------------------------------
outhex: move.w #0,-(sp) ; Push 0 terminator on stack
moveq #7,d2 ; Then push 7 hex digits in order
.calc: move.w d0,d1
and.w #15,d1 ; Isolate lowest hex digit
cmp.w #9,d1 ; 0-9?
ble.s .dec
addq.w #7,d1 ; if not, correct for A-F
.dec: add.w #48,d1 ; Then convert to ASCII
move.w d1,-(sp) ; and push it on the stack
lsr.l #4,d0 ; Next hex digit
dbra d2,.calc ; Next iteration
.out: tst.w (sp) ; Loop until we hit the 0 terminator
beq.s .done
move.w #2,-(sp) ; And print the characters with
trap #1 ; Cconout (GEMDOS)
addq.l #4,sp
bra.s .out
.done: addq.l #2,sp ; Pop the 0 terminator
rts ; and return
;;; ----------------------------------------------------------------------
;;; outstr: Print the null-terminated string in a0 to console.
;;; Trashes a0-a2/d0-d2.
;;; ----------------------------------------------------------------------
outstr: move.l a0,-(sp) ; Address of string
move.w #9,-(sp) ; Cconws()
trap #1 ; GEMDOS
addq.l #6,sp
rts
data
counter:
dc.l 0
intro: dc.b "MFP Timer Demonstration",13,10,"Press Ctrl-C to exit",13,10,0
cr: dc.b 13,"Timer: ",0
unreachable_msg:
dc.b 13,10,"Big yikes!",13,10
dc.b "Somehow reached unreachable code!",13,10,0
goodbye:
dc.b 13,10,"Timer interrupted. Shutting down.",13,10,0
bss
oldterm:
ds.l 1
| 31.388889 | 74 | 0.50885 |
113704078a98de32647333c726cd366a7b4b0d80 | 8,449 | asm | Assembly | data/profiles/N64/libs/sm64mlib/fast3dscripts.asm | DavidSM64/SimpleArmipsGui | 2876912e414e0115f4181359ae3700d4794bd4f7 | [
"MIT"
] | 10 | 2017-06-26T16:17:36.000Z | 2020-11-18T01:36:44.000Z | data/profiles/N64/libs/sm64mlib/fast3dscripts.asm | DavidSM64/SimpleArmipsGui | 2876912e414e0115f4181359ae3700d4794bd4f7 | [
"MIT"
] | null | null | null | data/profiles/N64/libs/sm64mlib/fast3dscripts.asm | DavidSM64/SimpleArmipsGui | 2876912e414e0115f4181359ae3700d4794bd4f7 | [
"MIT"
] | 4 | 2017-08-06T18:54:11.000Z | 2021-02-28T11:42:39.000Z | .defineLabel F3D_GEOMODE_ZBUFFER, 0x00000001
.defineLabel F3D_GEOMODE_USE_SHADING, 0x00000004
.defineLabel F3D_GEOMODE_SMOOTH_SHADING, 0x00000200
.defineLabel F3D_GEOMODE_CULLTRI_FRONT, 0x00001000
.defineLabel F3D_GEOMODE_CULLTRI_BACK, 0x00002000
.defineLabel F3D_GEOMODE_FOG, 0x00010000
.defineLabel F3D_GEOMODE_LIGHTING, 0x00020000
.defineLabel F3D_GEOMODE_TEXGEN, 0x00040000
.defineLabel F3D_GEOMODE_TEXGEN_LINEAR, 0x00080000
.defineLabel F3D_TEXFMT_RGBA, 0x00
.defineLabel F3D_TEXFMT_YUV, 0x01
.defineLabel F3D_TEXFMT_CI, 0x02
.defineLabel F3D_TEXFMT_IA, 0x03
.defineLabel F3D_TEXFMT_I, 0x04
.defineLabel F3D_TEXSIZE_4b, 0x00
.defineLabel F3D_TEXSIZE_8b, 0x01
.defineLabel F3D_TEXSIZE_16b, 0x02
.defineLabel F3D_TEXSIZE_32b, 0x03
/*
Vertex Structure (from cpuHacka101's notes)
xxxxyyyyzzzz0000uuuuvvvvrrggbbaa
-xxxx: X Position of vertex
-yyyy: Y Position of vertex
-zzzz: Z Position of vertex
-uuuu: X texture stretch along vertex
-vvvv: Y texture stretch along vertex
-rr: Red channel of vertex, used for vertex colors and/or normals
-gg: Green channel of vertex, used for vertex colors and/or normals
-bb: Blue channel of vertex, used for vertex colors and/or normals
-aa: Alpha channel of vertex, used in vertex colors, ignored in vertex normals
*/
.macro .f3d_vertex, x, y, z, u, v, nx_r, ny_g, nz_b, alpha
.halfword x, y, z, 0x0000, u, v
.byte nx_r, ny_g, nz_b, alpha
.endmacro
// Generic Fast3D macro
.macro .f3d, upperWord, lowerWord
.word upperWord, lowerWord
.endmacro
// Generic Fast3D macro
.macro .f3d_dw, value
.doubleword value
.endmacro
// ******** Cmd 00: No Operation ******** //
.macro .f3d_00
.f3d_dw 0x0000000000000000
.endmacro
.macro .f3d_nop
.f3d_00
.endmacro
// ******** Cmd 01: G_MTX ******** //
.macro .f3d_01, params, segAddr
.byte 0x01, params, 0x00, 0x00
.word segAddr
.endmacro
.macro .f3d_mtx, params, segAddr
.f3d_01 params, segAddr
.endmacro
// ******** Cmd 03: F3D_MOVEMEM ******** //
.macro .f3d_03, size, index, offset, segAddr
.byte 0x03, size, index, offset
.word segAddr
.endmacro
.macro .f3d_movemem, size, index, offset, segAddr
.f3d_03 size, index, offset, segAddr
.endmacro
// ******** Cmd 04: F3D_VTX ******** //
.macro .f3d_04, amount, index, segAddr
.byte 0x04, (((amount - 1) << 4) | index) & 0xFF
.halfword (amount * 0x10)
.word segAddr
.endmacro
.macro .f3d_vtx, amount, index, segAddr
.f3d_04 amount, index, segAddr
.endmacro
// ******** Cmd 06: F3D_DL ******** //
; dontStoreAddress is either 0x00 (false) or 0x01 (true)
; see: http://wiki.cloudmodding.com/oot/F3DZEX/Opcode_Details#0xDE_.E2.80.94_G_DL
.macro .f3d_06, dontStoreAddress, segAddr
.byte 0x06, dontStoreAddress, 0x00, 0x00
.word segAddr
.endmacro
.macro .f3d_dl, segAddr
.f3d_06 0x00, segAddr
.endmacro
// Branch to list and don't store address
.macro .f3d_branch, segAddr
.f3d_06 0x01, segAddr
.endmacro
// ******** Cmd B6: F3D_CLEARGEOMETRYMODE ******** //
.macro .f3d_b6, parameters
.f3d 0xB6000000, parameters
.endmacro
.macro .f3d_clearGeometryMode, parameters
.f3d_b6 parameters
.endmacro
// ******** Cmd B7: F3D_SETGEOMETRYMODE ******** //
.macro .f3d_b7, parameters
.f3d 0xB7000000, parameters
.endmacro
.macro .f3d_setGeometryMode, parameters
.f3d_b7 parameters
.endmacro
// ******** Cmd B8: F3D_ENDDL ******** //
.macro .f3d_b8
.f3d_dw 0xB800000000000000
.endmacro
.macro .f3d_enddl
.f3d_b8
.endmacro
// ******** Cmd BB: G_TEXTURE ******** //
.macro .f3d_bb, enable, scaleS_f, scaleT_f, level, tile
.byte 0xBB, 0x00, (((level & 0x7) << 3) | (tile & 0x7)), enable
.halfword int(float(scaleS_f) * 0xFFFF), int(float(scaleT_f) * 0xFFFF)
.endmacro
.macro .f3d_texture, enable, scaleS_f, scaleT_f, level, tile
.f3d_bb enable, scaleS_f, scaleT_f, level, tile
.endmacro
// ******** Cmd BF: G_TRI1 ******** //
.macro .f3d_bf, v0, v1, v2
.word 0xBF000000
.byte 0x00, v0*0x0A, v1*0x0A, v2*0x0A
.endmacro
.macro .f3d_tri1, v0, v1, v2
.f3d_bf v0, v1, v2
.endmacro
// ******** Cmd E6: G_RDPLOADSYNC ******** //
.macro .f3d_e6
.f3d_dw 0xE600000000000000
.endmacro
.macro .f3d_rdpLoadSync
.f3d_e6
.endmacro
// ******** Cmd E7: G_RDPPIPESYNC ******** //
.macro .f3d_e7
.f3d_dw 0xE700000000000000
.endmacro
.macro .f3d_rdpPipeSync
.f3d_e7
.endmacro
// ******** Cmd E8: G_RDPTILESYNC ******** //
.macro .f3d_e8
.f3d_dw 0xE800000000000000
.endmacro
.macro .f3d_rdpTileSync
.f3d_e8
.endmacro
// ******** Cmd E8: G_RDPFULLSYNC ******** //
.macro .f3d_e9
.f3d_dw 0xE900000000000000
.endmacro
.macro .f3d_rdpFullSync
.f3d_e9
.endmacro
// ******** Cmd F0: G_LOADTLUT ******** //
.macro .f3d_f0, tile, num_colors
.word 0xF0000000
.byte tile
.halfword (((num_colors-1) & 0x3FF) << 6)
.byte 0x00
.endmacro
.macro .f3d_loadTLUT, tile, num_colors
.f3d_f0 tile, num_colors
.endmacro
// ******** Cmd F2: G_SETTILESIZE ******** //
.macro .f3d_f2, width, height
.word 0xF2000000
.word ((width-1) << 14) | ((height-1) << 2)
.endmacro
.macro .f3d_setTileSize, width, height
.f3d_f2 width, height
.endmacro
// ******** Cmd F3: G_LOADBLOCK ******** //
.macro .f3d_f3, tile, uls, ult, texels, dxt
.byte 0xF3, (uls >> 4) & 0xFF, (uls & 0xF) | (ult >> 8), ult & 0xFF
.byte tile, ((texels - 1) >> 4) & 0xFF, (((texels - 1) & 0xF) << 4) | (dxt >> 8), dxt & 0xFF
.endmacro
.macro .f3d_loadBlock, tile, uls, ult, texels, dxt
.f3d_f3 tile, uls, ult, texels, dxt
.endmacro
// ******** Cmd F5: G_SETTILE ******** //
.macro .f3d_f5, fmt, siz, line, tmem, tile, pal, cmT, maskT, shiftT, cmS, maskS, shiftS
.byte 0xF5
.byte ((fmt & 7) << 5) | ((siz & 3) << 3) | (line >> 7)
.byte ((line & 0x7F) << 1) | ((tmem >> 8) & 1)
.byte (tmem & 0xFF)
.byte (tile & 7)
.byte ((pal & 0xF) << 4) | ((cmT & 0x3) << 2) | ((maskT & 0xF) >> 2)
.byte ((maskT & 0x3) << 6) | ((shiftT & 0xF) << 2) | (cmS & 0x3)
.byte ((maskS & 0xF) << 4) | (shiftS & 0xF)
.endmacro
.macro .f3d_setTile, fmt, siz, line, tmem, tile, pal, cmT, maskT, shiftT, cmS, maskS, shiftS
.f3d_f5 fmt, siz, line, tmem, tile, pal, cmT, maskT, shiftT, cmS, maskS, shiftS
.endmacro
// ******** Cmd F6: G_FILLRECT ******** //
.macro .f3d_f6, lrx, lry, ulx, uly
.word (0xF6 << 24) | (lrx << 12) | lry
.word (ulx << 12) | uly
.endmacro
.macro .f3d_fillRect, lrx, lry, ulx, uly
.f3d_f6 lrx, lry, ulx, uly
.endmacro
// ******** Cmd F7: G_SETFILLCOLOR ******** //
.macro .f3d_f7, fillValue
.f3d 0xF7000000, fillValue
.endmacro
.macro .f3d_setFillColor, fillValue
.f3d_f7 fillValue
.endmacro
// ******** Cmd F8: G_SETFOGCOLOR ******** //
.macro .f3d_f8, red, green, blue, alpha
.word 0xF8000000
.byte red, green, blue, alpha
.endmacro
.macro .f3d_setFogColor, red, green, blue, alpha
.f3d_f8 red, green, blue, alpha
.endmacro
// ******** Cmd FB: G_SETENVCOLOR ******** //
.macro .f3d_fb, red, green, blue, alpha
.word 0xFB000000
.byte red, green, blue, alpha
.endmacro
.macro .f3d_setEnvColor, red, green, blue, alpha
.f3d_fb red, green, blue, alpha
.endmacro
// ******** Cmd FC: G_SETCOMBINE ******** //
.macro .f3d_fc, a0, c0, Aa0, Ac0, a1, c1, b0, b1, Aa1, Ac1, d0, Ab0, Ad0, d1, Ab1, Ad1
.byte 0xFC
.byte ((a0 & 0xF) << 4) | ((c0 & 0x1F) >> 1)
.byte ((c0 & 0x1) << 7) | ((Aa0 & 0x7) << 4) | ((Ac0 & 0x7) << 1) | ((a1 & 0xF) >> 3)
.byte ((a1 & 0xF) << 5) | (c1 & 0x1F)
.byte ((b0 & 0xF) << 4) | (b1 & 0xF)
.byte ((Aa1 & 0x7) << 5) | ((Ac1 & 0x7) << 2) | ((d0 & 0x7) >> 1)
.byte ((d0 & 0x07) << 7) | ((Ab0 & 0x7) << 4) | ((Ad0 & 0x7) << 1) | ((d1 & 0x7) >> 2)
.byte ((d1 & 0x7) << 6) | ((Ab1 & 0x7) << 3) | (Ad1 & 0x7)
.endmacro
.macro .f3d_setCombineLERP, a0, c0, Aa0, Ac0, a1, c1, b0, b1, Aa1, Ac1, d0, Ab0, Ad0, d1, Ab1, Ad1
.f3d_fc a0, c0, Aa0, Ac0, a1, c1, b0, b1, Aa1, Ac1, d0, Ab0, Ad0, d1, Ab1, Ad1
.endmacro
.macro .f3d_setCombine_Tex_Solid_NoFog
.f3d_dw 0xFC127E24FFFFF9FC
.endmacro
.macro .f3d_setCombine_Tex_Alpha_NoFog
.f3d_dw 0xFC121824FF33FFFF
.endmacro
.macro .f3d_setCombine_Tex_Solid_Fog
.f3d_dw 0xFC127FFFFFFFF838
.endmacro
.macro .f3d_setCombine_Tex_Alpha_Fog
.f3d_dw 0xFCFFFFFFFFFCF238
.endmacro
.macro .f3d_setCombine_Tex_Trans
.f3d_dw 0xFC122E24FFFFFBFD
.endmacro
.macro .f3d_setCombine_Color_Solid
.f3d_dw 0xFCFFFFFFFFFE7B3D
.endmacro
.macro .f3d_setCombine_Color_Trans
.f3d_dw 0xFCFFFFFFFFFEFBFD
.endmacro
// ******** Cmd FD: G_SETTIMG ******** //
.macro .f3d_fd, fmt, siz, segAddr
.byte 0xFD
.byte ((fmt & 7) << 5) | ((siz & 3) << 3)
.halfword 0x0000
.word segAddr
.endmacro
.macro .f3d_setTImg, fmt, siz, segAddr
.f3d_fd fmt, siz, segAddr
.endmacro
| 27.080128 | 98 | 0.663747 |
07b80bdf71554dd340650a0547b0f9a61832fa6d | 568 | asm | Assembly | MASM/test.asm | MishaVernik/TASM-compiler | 1523bc4f105879ae37cd39a11c5999250b494a78 | [
"MIT"
] | null | null | null | MASM/test.asm | MishaVernik/TASM-compiler | 1523bc4f105879ae37cd39a11c5999250b494a78 | [
"MIT"
] | null | null | null | MASM/test.asm | MishaVernik/TASM-compiler | 1523bc4f105879ae37cd39a11c5999250b494a78 | [
"MIT"
] | null | null | null | 0000 CDATA SEGMENT
0000 M1 DD 111b
0004 M2 DW 0Fh
0006 M3 DD 20
000A SMS DB 'COMPILER 1.0.0'
0018 CDATA ENDS
INCAX MACRO
INC AX
ENDM
INCNUM MACRO NUMBER
INC NUMBER
ENDM
0000 CSEG SEGMENT
0000 START:
MOV AX, CDATA
MOV DS, AX
MOV AX, 10h
BT AX, BX
AAS
INC CX
DEC WORD PTR [DI]
AND AX, WORD PTR [DI]
OR WORD PTR [DI + BX], 0001b
CMP WORD PTR[DI], DX
JL lblJL
lblJL:
MOV AX, [BX][SI]
MOV AL, CS:[BX][DI]
MOV CL, ES:[BX + SI]
INCAX
INCNUM M1
CSEG ENDS
END | 14.2 | 32 | 0.56162 |
3a2c66293b3cc1ab4f347de04b897fe0713620a7 | 358 | asm | Assembly | oeis/104/A104713.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/104/A104713.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/104/A104713.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A104713: Triangle T(n,k) = binomial(n,k), read by rows, 3 <= k <=n .
; Submitted by Jon Maiga
; 1,4,1,10,5,1,20,15,6,1,35,35,21,7,1,56,70,56,28,8,1,84,126,126,84,36,9,1,120,210,252,210,120,45,10,1,165,330,462,462,330,165,55,11,1,220,495,792,924,792,495,220,66,12,1,286,715,1287,1716
lpb $0
add $1,1
sub $0,$1
lpe
add $0,3
add $1,3
bin $1,$0
mov $0,$1
| 27.538462 | 188 | 0.628492 |
6c8b2543e64cc957591fd14d08939a4b7a3a6563 | 363 | asm | Assembly | oeis/342/A342281.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/342/A342281.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/342/A342281.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A342281: A bisection of A001951: a(n) = A001951(2*n+1).
; Submitted by Jon Maiga
; 1,4,7,9,12,15,18,21,24,26,29,32,35,38,41,43,46,49,52,55,57,60,63,66,69,72,74,77,80,83,86,89,91,94,97,100,103,106,108,111,114,117,120,123,125,128,131,134,137,140,142,145,148,151,154,156,159,162,165,168
mul $0,2
add $0,1
seq $0,1951 ; A Beatty sequence: a(n) = floor(n*sqrt(2)).
| 45.375 | 202 | 0.672176 |
88b958b499dd99855ac401566f264e08d03eeed2 | 5,167 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca.log_21829_1818.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca.log_21829_1818.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca.log_21829_1818.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 %r14
push %r15
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xb5d1, %r15
nop
nop
nop
inc %r14
mov $0x6162636465666768, %r10
movq %r10, %xmm3
movups %xmm3, (%r15)
nop
nop
nop
sub %rbx, %rbx
lea addresses_UC_ht+0x93e7, %rsi
lea addresses_D_ht+0x30f1, %rdi
xor %r8, %r8
mov $87, %rcx
rep movsq
nop
nop
nop
nop
nop
xor $45144, %rsi
lea addresses_UC_ht+0xee0f, %rdi
add %rcx, %rcx
movb (%rdi), %r8b
nop
nop
nop
and %r14, %r14
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r15
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r9
push %rax
push %rbp
push %rdi
// Store
lea addresses_UC+0x1f5d1, %rax
nop
nop
nop
inc %r11
movw $0x5152, (%rax)
nop
nop
nop
nop
nop
add $1058, %r12
// Store
lea addresses_D+0x1d5d1, %rdi
nop
and %r9, %r9
mov $0x5152535455565758, %rbp
movq %rbp, %xmm2
vmovups %ymm2, (%rdi)
nop
nop
xor $41147, %r11
// Faulty Load
lea addresses_UC+0x1f5d1, %r11
nop
nop
nop
nop
and %rax, %rax
mov (%r11), %r13
lea oracles, %rax
and $0xff, %r13
shlq $12, %r13
mov (%rax,%r13,1), %r13
pop %rdi
pop %rbp
pop %rax
pop %r9
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': True, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_UC'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 2, 'NT': False, 'type': 'addresses_UC'}}
{'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_D'}}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_UC'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'congruent': 6, 'AVXalign': False, 'same': True, 'size': 16, 'NT': False, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 1, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_D_ht'}}
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'58': 21829}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 42.352459 | 2,999 | 0.659377 |
a2328080e5e4811ca684d6fe9a170f68ab734648 | 2,680 | asm | Assembly | Homework Submission/Homework 5/hw_5_ans2.asm | Tarana-Kabir123/CSE331L_Section_7_Summer_2020_NSU | 40a3e0dc18276f3cafc235d9d7e34bec36eebe55 | [
"MIT"
] | null | null | null | Homework Submission/Homework 5/hw_5_ans2.asm | Tarana-Kabir123/CSE331L_Section_7_Summer_2020_NSU | 40a3e0dc18276f3cafc235d9d7e34bec36eebe55 | [
"MIT"
] | null | null | null | Homework Submission/Homework 5/hw_5_ans2.asm | Tarana-Kabir123/CSE331L_Section_7_Summer_2020_NSU | 40a3e0dc18276f3cafc235d9d7e34bec36eebe55 | [
"MIT"
] | null | null | null | .MODEL SMALL
.STACK
.DATA
MSG1 DB 10,13, 'Enter First Number: $'
MSG2 DB 10,13, 'Enter Second Number: $'
MSG3 DB 10,13, 'SUM: $'
MSG4 DB 10,13, 'DIFFERENCE: $'
MSG5 DB 10,13, 'PRODUCT: $'
MSG6 DB 10,13, 'QUOTIENT: $'
NEGA DB '-$'
NUM1 DB 0
NUM2 DB 0
DIG1 DB 0
DIG2 DB 0
ANS DB 0
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
ENT1:
MOV DX,OFFSET MSG1 ;display prompt for first number
MOV AH,09H
int 21h
MOV AH,01H ;input first number
INT 21H
CMP AL,'0' ;check if it is in range from 0 - 9
JB ENT1
CMP AL,'9'
JA ENT1
SUB AL,30H ;convert to real number entered
MOV DIG1,AL
MOV AH,01H ;input first number
INT 21H
CMP AL,'0' ;check if it is in range from 0 - 9
JB ENT1
CMP AL,'9'
JA ENT1
SUB AL,30H ;convert to real number entered
MOV DIG2,AL
MOV AL,DIG1 ;convert 1st digit to tens place
MOV BL,10
MUL BL
MOV NUM1,AL ;add 1st digit to 2nd digit
MOV AL,DIG2
ADD NUM1,AL
ENT2:
MOV DX,OFFSET MSG2 ;display prompt for second number
MOV AH,09H
int 21h
MOV AH,01H ;input second number
INT 21H
CMP AL,'0' ;check if it is in range from 0 - 9
JB ENT2
CMP AL,'9'
JA ENT2
SUB AL,30H ; convert to real number entered
MOV DIG1,AL
MOV AH,01H ;input second number
INT 21H
CMP AL,'0' ;check if it is in range from 0 - 9
JB ENT2
CMP AL,'9'
JA ENT2
SUB AL,30H ;convert to real number entered
MOV DIG2,AL
MOV AL,DIG1
MOV BL,10
MUL BL
MOV NUM2,AL
MOV AL,DIG2
ADD NUM2,AL
ADDITION:
MOV BL,NUM1
ADD BL,NUM2
CALL CHANGE
MOV DX,OFFSET MSG3
CALL RESULT
SUBTRACTION:
MOV BL, NUM1
CMP BL, NUM2
JL LESS
SUB BL, NUM2
CALL CHANGE
MOV DX,OFFSET MSG4
CALL RESULT
LESS:
MOV BL, NUM2
SUB BL, NUM1
CALL CHANGE
MOV DX, OFFSET MSG4
MOV AH,09H
int 21h
MOV DX, OFFSET NEGA
CALL RESULT
MOV AH,4CH ; exit to DOS
INT 21H
MAIN ENDP
CHANGE PROC
MOV AH,0
MOV AL,BL
MOV BL,10
DIV BL
MOV BL,AL
MOV BH,AH
ADD BH,30H ; convert to ascii code
MOV ANS,BH
MOV AH,0
MOV AL,BL
MOV BL,10
DIV BL
MOV BL,AL
MOV BH,AH
ADD BH,30h ; convert to ascii code
ADD BL, 30h ; covert to ascii code
RET
CHANGE ENDP
RESULT PROC
MOV AH,09H
INT 21H
MOV DL,BL
MOV AH,02H
INT 21H
MOV DL,BH
MOV AH,02H
INT 21H
MOV DL,ANS
MOV AH,02H
INT 21H
RET
RESULT ENDP
END
| 19.851852 | 57 | 0.561567 |
c120160f67ad7b86dee5a333e4b6a26206e4d0d6 | 320 | asm | Assembly | Checkpoints/chk14_2.asm | richardhyy/AssemblyLab | 7e0ba3800f3db1e2f5d616ca89905963d1da0996 | [
"MIT"
] | 3 | 2021-06-26T14:52:16.000Z | 2021-11-23T03:48:48.000Z | Checkpoints/chk14_2.asm | richardhyy/AssemblyLab | 7e0ba3800f3db1e2f5d616ca89905963d1da0996 | [
"MIT"
] | 1 | 2021-06-26T14:12:21.000Z | 2021-06-26T14:18:54.000Z | Checkpoints/chk14_2.asm | richardhyy/AssemblyLab | 7e0ba3800f3db1e2f5d616ca89905963d1da0996 | [
"MIT"
] | 4 | 2021-11-30T06:06:08.000Z | 2022-03-16T03:55:42.000Z | assume cs:code
code segment
start: ; Checkpoint 14.2
; Evaluate: (ax)=(ax)*10
mov ax,42
call t10
mov ax,4c00h
int 21h
t10:push bx
push cx
mov bx,ax ; (bx)=(ax)
shl ax,1 ; (ax)*2
mov cl,3
shl bx,cl ; (ax)*8
add ax,bx ; (ax)=(ax)+(bx)
pop cx
pop bx
ret
code ends
end start | 11.851852 | 28 | 0.55625 |
6fbbd9977fc03d8b27cf7009e7703fcff58b8dbc | 712 | asm | Assembly | books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/10_2.asm | gxw1/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 640 | 2019-03-30T11:32:43.000Z | 2022-03-31T14:05:18.000Z | books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/10_2.asm | yyzVegst/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 6 | 2019-07-22T01:57:24.000Z | 2022-01-20T15:03:16.000Z | books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/10_2.asm | yyzVegst/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 212 | 2019-04-10T02:31:50.000Z | 2022-03-30T02:32:47.000Z | DATA SEGMENT
STRING DB 00,01,02,03,04,05,06,07,08,09
DB 0AH,0BH,0CH,0DH,0EH,0FH
SOUR EQU STRING
DEST EQU STRING+10
LEN EQU 16
DATA ENDS
STACK SEGMENT
DW 50 DUP(?)
STACK ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA,SS:STACK
START PROC FAR
PUSH DS
MOV AX,0
PUSH AX
MOV AX,DATA
MOV DS,AX
MOV ES,AX
MOV CX,LEN
MOV SI,OFFSET SOUR
MOV DI,OFFSET DEST
CLD
PUSH SI
ADD SI,LEN-1
CMP SI,DI
POP SI
JL MVE
STD
ADD SI,LEN-1
ADD DI,LEN-1
MVE: REP MOVSB
RET
START ENDP
CODE ENDS
END START
| 19.243243 | 44 | 0.495787 |
f1fa7155ea543f042b57f459800675cf334a301c | 2,402 | asm | Assembly | programs/oeis/057/A057590.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/057/A057590.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/057/A057590.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A057590: Numbers of the form n*(n^3+-1)/2.
; 0,1,7,9,39,42,126,130,310,315,645,651,1197,1204,2044,2052,3276,3285,4995,5005,7315,7326,10362,10374,14274,14287,19201,19215,25305,25320,32760,32776,41752,41769,52479,52497,65151,65170,79990,80010,97230,97251,117117,117139,139909,139932,165876,165900,195300,195325,228475,228501,265707,265734,307314,307342,353626,353655,404985,405015,461745,461776,524272,524304,592944,592977,668151,668185,750295,750330,839790,839826,937062,937099,1042549,1042587,1156701,1156740,1279980,1280020,1412860,1412901,1555827,1555869,1709379,1709422,1874026,1874070,2050290,2050335,2238705,2238751,2439817,2439864,2654184,2654232,2882376,2882425,3124975,3125025,3382575,3382626,3655782,3655834,3945214,3945267,4251501,4251555,4575285,4575340,4917220,4917276,5277972,5278029,5658219,5658277,6058651,6058710,6479970,6480030,6922890,6922951,7388137,7388199,7876449,7876512,8388576,8388640,8925280,8925345,9487335,9487401,10075527,10075594,10690654,10690722,11333526,11333595,12004965,12005035,12705805,12705876,13436892,13436964,14199084,14199157,14993251,14993325,15820275,15820350,16681050,16681126,17576482,17576559,18507489,18507567,19475001,19475080,20479960,20480040,21523320,21523401,22606047,22606129,23729119,23729202,24893526,24893610,26100270,26100355,27350365,27350451,28644837,28644924,29984724,29984812,31371076,31371165,32804955,32805045,34287435,34287526,35819602,35819694,37402554,37402647,39037401,39037495,40725265,40725360,42467280,42467376,44264592,44264689,46118359,46118457,48029751,48029850,49999950,50000050,52030150,52030251,54121557,54121659,56275389,56275492,58492876,58492980,60775260,60775365,63123795,63123901,65539747,65539854,68024394,68024502,70579026,70579135,73204945,73205055,75903465,75903576,78675912,78676024,81523624,81523737,84447951,84448065,87450255,87450370,90531910,90532026,93694302,93694419,96938829,96938947,100266901,100267020,103679940,103680060,107179380,107179501,110766667,110766789,114443259,114443382,118210626,118210750,122070250,122070375
mov $9,$0
mov $11,$0
lpb $11,1
clr $0,9
mov $0,$9
sub $11,1
sub $0,$11
add $1,$0
add $4,1
log $4,$0
add $0,2
mov $3,$1
sub $4,1
add $5,$1
add $1,$4
mov $6,1
add $7,$3
add $6,$7
mul $6,$0
div $0,2
mul $0,2
add $1,2
sub $0,$1
add $1,2
add $1,$5
mul $7,$6
lpb $0,1
sub $0,1
mov $1,$7
lpe
div $1,4
add $10,$1
lpe
mov $1,$10
| 63.210526 | 1,973 | 0.800167 |
c691336d48f2c9ead769caae91e93f75cbacb39f | 229 | asm | Assembly | programs/oeis/059/A059140.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/059/A059140.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/059/A059140.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A059140: A hierarchical sequence (S(W2{2}*c) - see A059126).
; 4,15,40,93,202,423,868,1761,3550,7131,14296,28629,57298,114639,229324
add $0,1
mov $1,1
lpb $0
sub $0,1
mul $1,2
add $2,3
add $1,$2
lpe
sub $1,1
mov $0,$1
| 16.357143 | 71 | 0.633188 |
e7134cb585be77f34fc7fad0c16f2972a46fb39a | 336 | asm | Assembly | data/mapObjects/PewterSpeechHouse.asm | AmateurPanda92/pokemon-rby-dx | f7ba1cc50b22d93ed176571e074a52d73360da93 | [
"MIT"
] | 9 | 2020-07-12T19:44:21.000Z | 2022-03-03T23:32:40.000Z | data/mapObjects/PewterSpeechHouse.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 7 | 2020-07-16T10:48:52.000Z | 2021-01-28T18:32:02.000Z | data/mapObjects/PewterSpeechHouse.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 2 | 2021-03-28T18:33:43.000Z | 2021-05-06T13:12:09.000Z | PewterSpeechHouse_Object:
db $a ; border block
db 2 ; warps
warp 2, 7, 5, -1
warp 3, 7, 5, -1
db 0 ; signs
db 2 ; objects
object SPRITE_GAMBLER, 2, 3, STAY, RIGHT, 1 ; person
object SPRITE_BUG_CATCHER, 4, 5, STAY, NONE, 2 ; person
; warp-to
warp_to 2, 7, PEWTER_SPEECH_HOUSE_WIDTH
warp_to 3, 7, PEWTER_SPEECH_HOUSE_WIDTH
| 19.764706 | 56 | 0.693452 |
447f0d94af1429ad34f0e0051305c89dc2a159fd | 291 | asm | Assembly | programs/oeis/027/A027792.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/027/A027792.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/027/A027792.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A027792: a(n) = 7*(n+1)*C(n+3,7).
; 35,336,1764,6720,20790,55440,132132,288288,585585,1121120,2042040,3564288,5996172,9767520,15465240,23876160,36038079,53300016,77392700,110510400,155405250,215495280,294987420,399016800,533803725
mov $1,$0
add $0,7
bin $0,$1
add $1,5
mul $0,$1
mul $0,7
| 29.1 | 196 | 0.742268 |
0d243db04deb26db7306d7ce9ff81f61ff93bae6 | 2,279 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_un_/i9-9900K_12_0xa0.log_1_408.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_un_/i9-9900K_12_0xa0.log_1_408.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_un_/i9-9900K_12_0xa0.log_1_408.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 %rbx
push %rcx
lea addresses_WT_ht+0x7b82, %rcx
nop
sub %r11, %r11
mov $0x6162636465666768, %rbx
movq %rbx, (%rcx)
nop
nop
nop
nop
dec %r11
pop %rcx
pop %rbx
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
// REPMOV
lea addresses_RW+0x709a, %rsi
lea addresses_US+0x1129a, %rdi
nop
xor $41821, %r9
mov $118, %rcx
rep movsl
nop
nop
nop
inc %rsi
// Store
lea addresses_WC+0x959a, %r9
nop
nop
nop
nop
add %r12, %r12
movl $0x51525354, (%r9)
nop
nop
nop
nop
cmp $30840, %r9
// Store
lea addresses_D+0x57da, %rdi
nop
nop
nop
dec %r9
movl $0x51525354, (%rdi)
nop
nop
nop
nop
nop
add $42452, %r9
// Store
lea addresses_RW+0x1399a, %rdi
cmp $54661, %r12
mov $0x5152535455565758, %r9
movq %r9, (%rdi)
nop
nop
cmp %rdi, %rdi
// Load
lea addresses_RW+0xf99a, %rcx
nop
nop
nop
add %r10, %r10
mov (%rcx), %esi
nop
nop
nop
nop
xor %rbx, %rbx
// Faulty Load
lea addresses_RW+0xf99a, %r10
dec %rdi
movntdqa (%r10), %xmm2
vpextrq $1, %xmm2, %r9
lea oracles, %rcx
and $0xff, %r9
shlq $12, %r9
mov (%rcx,%r9,1), %r9
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 8, 'type': 'addresses_RW'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_US'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_WC', 'AVXalign': True, 'size': 4}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_D', 'AVXalign': True, 'size': 4}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_RW', 'AVXalign': False, 'size': 8}}
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8}}
{'9e': 1}
9e
*/
| 17.944882 | 142 | 0.639754 |
60e8ce75631a004823463ef5ad9ca46069840827 | 3,224 | asm | Assembly | code/main.asm | abekermsx/skooted | ea0eb5c0c2703c45807477bfdcda0ad1ad9119d8 | [
"MIT"
] | 3 | 2021-10-06T20:52:11.000Z | 2021-11-29T11:31:55.000Z | code/main.asm | abekermsx/skooted | ea0eb5c0c2703c45807477bfdcda0ad1ad9119d8 | [
"MIT"
] | null | null | null | code/main.asm | abekermsx/skooted | ea0eb5c0c2703c45807477bfdcda0ad1ad9119d8 | [
"MIT"
] | null | null | null |
DEVICE NOSLOT64K
OUTPUT "../output/SKOOTED.BIN"
include "system/MSX-DOS.equ.z80"
include "system/MSXBIOS.equ.z80"
include "system/MSXhooks.equ.z80"
include "system/MSXvars.equ.z80"
include "constants.asm"
org $c000 - 7
header: db $fe
dw start, end, entry
start:
page2_start:
PHASE $b000
include "display/border.asm"
include "display/display.asm"
include "display/gui.asm"
include "display/message.asm"
include "display/patterns.asm"
include "display/sheet.asm"
include "display/sprites.asm"
include "display/text.asm"
include "display/vdp.asm"
include "display/vram.asm"
include "editor/input.asm"
include "editor/gui/gui.asm"
include "editor/gui/gui-blocks.asm"
include "editor/gui/gui-file-action.asm"
include "editor/gui/gui-file-error.asm"
include "editor/gui/gui-file-load.asm"
include "editor/gui/gui-file-name.asm"
include "editor/gui/gui-file-save.asm"
include "editor/gui/gui-file-select.asm"
include "editor/gui/gui-player-hearts.asm"
include "editor/gui/gui-sheet-error.asm"
include "editor/gui/gui-sheet-number.asm"
include "editor/gui/gui-text.asm"
include "editor/sheet/edit.asm"
include "editor/sheet/edit-hearts.asm"
include "editor/sheet/edit-player.asm"
include "editor/sheet/edit-sheet.asm"
DEPHASE
page2_end:
entry:
call load_skooter
or a
jr nz,terminate
call init_skooter
ld hl,FNKSTR
ld bc,160
call fill_ram
call init_disk_error_handler
ld hl,page2_start
ld de,$b000
ld bc,page2_end - page2_start
ldir
call initialize_vdp
call jiffy_wait
call DISSCR
call compact_sheet_texts
main_loop:
call display_screen
call gui
call run_skooter
jr main_loop
terminate:
ld c,_STROUT
ld de,skooter_not_found_message
call BDOSBAS
ret
skooter_not_found_message:
db "Please put a copy of SKOOTER.ROM on the same disk as this editor.$"
include "helpers.asm"
include "file/error-handling.asm"
include "file/fcb.asm"
include "file/helpers.asm"
include "file/load-sheets.asm"
include "file/load-skooter.asm"
include "file/save-sheets.asm"
include "file/search-sheets.asm"
include "sheet/enemies.asm"
include "sheet/hearts.asm"
include "sheet/items.asm"
include "sheet/map.asm"
include "sheet/objects.asm"
include "sheet/player.asm"
include "sheet/sheet.asm"
include "sheet/text.asm"
include "skooter/init.asm"
include "skooter/patches.asm"
include "skooter/run.asm"
; Skooter uses RAM in $c000-$cbff (approximately), ensure all code from main_loop onwards isn't overwritten
ASSERT main_loop >= $cc00
; Area $7000-$7bff can be overwritten with the editor code
ASSERT (page2_end - page2_start) <= $1000
end:
| 25.1875 | 107 | 0.611663 |
7ed6d871f450336ccdbf270ae23c01cda9193602 | 5,810 | asm | Assembly | software/pcx86/bdsrc/dos/dosdata.asm | jeffpar/basicdos | 8e66558ab8a95d053a39e09b162ca54d62ac4f31 | [
"MIT"
] | 59 | 2020-12-22T21:02:32.000Z | 2022-02-16T05:53:49.000Z | software/pcx86/bdsrc/dos/dosdata.asm | jeffpar/basicdos | 8e66558ab8a95d053a39e09b162ca54d62ac4f31 | [
"MIT"
] | null | null | null | software/pcx86/bdsrc/dos/dosdata.asm | jeffpar/basicdos | 8e66558ab8a95d053a39e09b162ca54d62ac4f31 | [
"MIT"
] | 5 | 2020-12-24T03:07:40.000Z | 2022-02-03T18:40:55.000Z | ;
; BASIC-DOS Resident Data Definitions
;
; @author Jeff Parsons <Jeff@pcjs.org>
; @copyright (c) 2020-2021 Jeff Parsons
; @license MIT <https://basicdos.com/LICENSE.txt>
;
; This file is part of PCjs, a computer emulation software project at pcjs.org
;
include macros.inc
include devapi.inc
EXTNEAR <sysinit>
DOS segment word public 'CODE'
;
; This must be the first object module; sysinit will overwrite the fake
; INT 20h with buf_head and the JMP SYSINIT with clk_ptr.
;
DEFLBL buf_head,word ; 00h: head of buffer chain
int 20h ; fake DOS terminate call @CS:0000h
DEFLBL clk_ptr,dword ; 02h: pointer to CLOCK$ DDH
jmp sysinit ; boot.asm assumes our entry @CS:0002h
nop
;
; INT 21h function 52h (msc_getvars) returns ES:BX -> mcb_head + 2 (mcb_limit).
;
DEFWORD mcb_head,0 ; 06h: 1st memory paragraph
DEFWORD mcb_limit,0 ; 08h: 1st unavailable paragraph
DEFTBL <bpb_table,sfb_table,scb_table>
DEFWORD scb_active,0 ; offset of active SCB (zero if none)
DEFWORD key_boot,0 ; records key pressed at boot, if any
EXTNEAR scb_return
DEFWORD scb_stoked,<offset scb_return>
;
; scb_locked and int_level are required to be addressable as a single word.
;
DEFBYTE scb_locked,-1 ; -1 if unlocked, >= 0 if locked
DEFBYTE int_level,-1 ; device driver interrupt level
DEFBYTE bpb_total,0 ; total number of BPBs
DEFBYTE sfh_debug,-1 ; system file handle for DEBUG device
DEFBYTE def_switchar,'/'
;
; Constants
;
DEFSTR FILENAME_CHARS,"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!#$%&'()-@^_`{}~"
DEFSTR FILENAME_SEPS,<":;.,=+/[]\<>|",CHR_DQUOTE,CHR_SPACE,CHR_TAB>
DEFSTR STR_CTRLC,<CHR_CTRLC,CHR_RETURN,CHR_LINEFEED>
DEFSTR STR_ESC,<"\",13,10>
DEFBYTE JAN,<"January",0>
DEFBYTE FEB,<"February",0>
DEFBYTE MAR,<"March",0>
DEFBYTE APR,<"April",0>
DEFBYTE MAY,<"May",0>
DEFBYTE JUN,<"June",0>
DEFBYTE JUL,<"July",0>
DEFBYTE AUG,<"August",0>
DEFBYTE SEP,<"September",0>
DEFBYTE OCT,<"October",0>
DEFBYTE NOV,<"November",0>
DEFBYTE DEC,<"December",0>
DEFWORD MONTHS,<JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,NOV,DEC>
DEFBYTE SUN,<"Sunday",0>
DEFBYTE MON,<"Monday",0>
DEFBYTE TUE,<"Tuesday",0>
DEFBYTE WED,<"Wednesday",0>
DEFBYTE THU,<"Thursday",0>
DEFBYTE FRI,<"Friday",0>
DEFBYTE SAT,<"Saturday",0>
DEFWORD DAYS,<SUN,MON,TUE,WED,THU,FRI,SAT>
DEFBYTE MONTH_DAYS,<31,28,31,30,31,30,31,31,30,31,30,31>
EXTNEAR <psp_term>
EXTNEAR <tty_echo,tty_write,aux_read,aux_write,prn_write,tty_io>
EXTNEAR <tty_in,tty_read,tty_print,tty_input,tty_status,tty_flush>
EXTNEAR <dsk_flush,dsk_getdrv,dsk_setdrv,dsk_setdta,dsk_getdta>
EXTNEAR <dsk_getinfo,dsk_ffirst,dsk_fnext>
EXTNEAR <fcb_open,fcb_close,fcb_sread,fcb_rread,fcb_setrel>
EXTNEAR <fcb_rbread,fcb_parse>
EXTNEAR <msc_getdate,msc_setdate,msc_gettime,msc_settime>
EXTNEAR <msc_setvec,msc_getver,msc_setctrlc,msc_getvec,msc_getswc>
EXTNEAR <msc_getvars,psp_exec,psp_return,psp_retcode>
EXTNEAR <psp_copy,psp_set,psp_get,psp_create>
EXTNEAR <hdl_open,hdl_close,hdl_read,hdl_write,hdl_seek,hdl_ioctl>
EXTNEAR <mem_alloc,mem_free,mem_realloc>
EXTNEAR <utl_strlen,utl_strstr,utl_strupr>
EXTNEAR <utl_atoi16,utl_atoi32,utl_atoi32d>
EXTNEAR <utl_atof64,utl_i32f64,utl_opf64>
EXTNEAR <utl_itoa,utl_printf,utl_dprintf,utl_sprintf>
EXTNEAR <utl_tokify,utl_tokid,utl_parsesw>
EXTNEAR <utl_getdev,utl_getcsn,utl_load,utl_start,utl_stop,utl_end>
EXTNEAR <utl_waitend,utl_yield,utl_sleep,utl_wait,utl_endwait>
EXTNEAR <utl_hotkey,utl_lock,utl_unlock,utl_qrymem,utl_term>
EXTNEAR <utl_getdate,utl_gettime,utl_incdate,utl_editln,utl_restart>
EXTNEAR <func_none>
DEFLBL FUNCTBL,word
dw psp_term, tty_echo, tty_write, aux_read ;00-03
dw aux_write, prn_write, tty_io, tty_in ;04-07
dw tty_read, tty_print, tty_input, tty_status ;08-0B
dw tty_flush, dsk_flush, dsk_setdrv, fcb_open ;0C-0F
dw fcb_close, func_none, func_none, func_none ;10-13
dw fcb_sread, func_none, func_none, func_none ;14-17
dw func_none, dsk_getdrv, dsk_setdta, func_none ;18-1B
dw func_none, func_none, func_none, func_none ;1C-1F
dw func_none, fcb_rread, func_none, func_none ;20-23
dw fcb_setrel, msc_setvec, psp_copy, fcb_rbread ;24-27
dw func_none, fcb_parse, msc_getdate, msc_setdate ;28-2B
dw msc_gettime, msc_settime, func_none, dsk_getdta ;2C-2F
dw msc_getver, func_none, func_none, msc_setctrlc ;30-33
dw func_none, msc_getvec, dsk_getinfo, msc_getswc ;34-37
dw func_none, func_none, func_none, func_none ;38-3B
dw func_none, hdl_open, hdl_close, hdl_read ;3C-3F
dw hdl_write, func_none, hdl_seek, func_none ;40-43
dw hdl_ioctl, func_none, func_none, func_none ;44-47
dw mem_alloc, mem_free, mem_realloc, psp_exec ;48-4B
dw psp_return, psp_retcode, dsk_ffirst, dsk_fnext ;4C-4F
dw psp_set, psp_get, msc_getvars, func_none ;50-53
dw func_none, psp_create ;54-55
DEFABS FUNCTBL_SIZE,<($ - FUNCTBL) SHR 1>
DEFLBL UTILTBL,word
dw utl_strlen, utl_strstr, func_none, utl_strupr ;00-03
dw utl_printf, utl_dprintf, utl_sprintf, utl_itoa ;04-07
dw utl_atoi16, utl_atoi32, utl_atoi32d, func_none ;08-0B
dw utl_atof64, utl_i32f64, utl_opf64, func_none ;0C-0F
dw func_none, utl_tokify, utl_tokify, utl_tokid ;10-13
dw utl_parsesw, utl_getdev, utl_getcsn, func_none ;14-17
dw utl_load, utl_start, utl_stop, utl_end ;18-1B
dw utl_waitend, utl_yield, utl_sleep, utl_wait ;1C-1F
dw utl_endwait, utl_hotkey, utl_lock, utl_unlock ;20-23
dw utl_strlen, utl_qrymem, utl_term, utl_getdate ;24-27
dw utl_gettime, utl_incdate, utl_editln, utl_restart ;28-2B
DEFABS UTILTBL_SIZE,<($ - UTILTBL) SHR 1>
DOS ends
end
| 41.205674 | 80 | 0.727711 |
4905c694bc7b811d053b4fad89207452c80ce620 | 231 | asm | Assembly | oeis/295/A295774.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/295/A295774.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/295/A295774.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A295774: a(n) is the minimum size of a restricted planar additive basis for the square [0,2n]^2.
; Submitted by Christian Krause
; 1,4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92
mul $0,12
max $0,4
div $0,3
| 28.875 | 98 | 0.692641 |
e86e4044ffa72d8c8c6067f384bd7b7871a23564 | 303 | asm | Assembly | programs/oeis/133/A133016.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/133/A133016.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/133/A133016.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A133016: Even imperfect numbers, divided by 2.
; 1,2,4,5,6,7,8,9,10,11,12,13,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64
mov $1,$0
sub $1,1
lpb $1
add $0,1
sub $1,1
div $1,10
lpe
add $0,1
| 25.25 | 179 | 0.630363 |
2d8ffbb7f0d02a7f7cce6be5d95e69fcc4b694c5 | 799 | asm | Assembly | oeis/077/A077442.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/077/A077442.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/077/A077442.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A077442: 2*a(n)^2 + 7 is a square.
; Submitted by Jamie Morken(s2)
; 1,3,9,19,53,111,309,647,1801,3771,10497,21979,61181,128103,356589,746639,2078353,4351731,12113529,25363747,70602821,147830751,411503397,861620759,2398417561,5021893803,13979001969,29269742059,81475594253,170596558551,474874563549,994309609247,2767771787041,5795261096931,16131756158697,33777256972339,94022765165141,196868280737103,548004834832149,1147432427450279,3194006243827753,6687726283964571,18616032628134369,38978925276337147,108502189524978461,227185825374058311,632397104521736397
lpb $0
add $1,$0
add $2,1
sub $2,$1
add $2,4
add $3,$1
add $1,$2
sub $1,$0
sub $0,1
sub $1,3
mov $2,$1
trn $1,3
trn $2,2
add $2,3
div $3,2
add $2,$3
mul $2,2
sub $2,4
mov $3,0
lpe
mov $0,$2
add $0,1
| 29.592593 | 493 | 0.747184 |
de3ffdafbe31a5adb1fecd684001387e387f7dd8 | 4,881 | asm | Assembly | Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_2230.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_2230.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_2230.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 %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x6130, %rsi
lea addresses_WT_ht+0x5e2, %rdi
clflush (%rsi)
clflush (%rdi)
nop
nop
nop
nop
nop
inc %rdx
mov $62, %rcx
rep movsq
and $60713, %rdi
lea addresses_UC_ht+0x6dc2, %rax
nop
nop
nop
nop
nop
cmp $8872, %rbx
mov (%rax), %esi
nop
nop
nop
nop
nop
sub $10252, %rax
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rax
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r15
push %r8
push %rax
push %rbp
push %rbx
push %rdi
// Store
lea addresses_WC+0xbc62, %rax
nop
sub $20366, %r15
mov $0x5152535455565758, %rdi
movq %rdi, %xmm0
vmovups %ymm0, (%rax)
inc %rbp
// Store
lea addresses_RW+0x16a62, %rdi
nop
nop
nop
nop
dec %r8
mov $0x5152535455565758, %rbx
movq %rbx, (%rdi)
inc %r15
// Faulty Load
lea addresses_US+0x7262, %r8
xor $52187, %r14
mov (%r8), %bx
lea oracles, %rbp
and $0xff, %rbx
shlq $12, %rbx
mov (%rbp,%rbx,1), %rbx
pop %rdi
pop %rbx
pop %rbp
pop %rax
pop %r8
pop %r15
pop %r14
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 9, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 11, 'size': 8, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 5, 'size': 4, 'same': False, 'NT': False}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 46.485714 | 2,999 | 0.660316 |
f13fb44a2a997b8b80861bf90f57bcad88eec874 | 1,496 | asm | Assembly | ntio/cvpackrn.asm | DigitalMars/optlink | 493de158282046641ef2a3a60a88e25e26d88ec4 | [
"BSL-1.0"
] | 28 | 2015-02-03T01:38:24.000Z | 2022-03-23T05:48:24.000Z | ntio/cvpackrn.asm | DigitalMars/optlink | 493de158282046641ef2a3a60a88e25e26d88ec4 | [
"BSL-1.0"
] | 20 | 2015-01-02T14:51:20.000Z | 2021-01-09T21:37:19.000Z | ntio/cvpackrn.asm | DigitalMars/optlink | 493de158282046641ef2a3a60a88e25e26d88ec4 | [
"BSL-1.0"
] | 9 | 2015-02-11T17:43:56.000Z | 2019-09-05T11:07:02.000Z | TITLE CVPACKRN - Copyright (c) SLR Systems 1992
INCLUDE MACROS
if 0
PUBLIC CVPACK_RUNNER
.DATA
SOFT EXTB FILNAM,TEMP_RECORD,ASCIZ
SOFT EXTW PSP_SAVER,STARTING_SP,HOST_BASE
.CODE ROOT_TEXT
ASSUME DS:NOTHING
SOFT EXTF $$SLR_OVL_TERM
if fgh_dpmi
CMDLINE EQU TEMP_RECORD
CVPACK_RUNNER PROC
;
;EVERYTHING IS FINISHED EXCEPT ME...
;
FIXDS
MOV SP,STARTING_SP ;SO I CAN JUST RETURN TO
LEA SI,FILNAM ;DPMI LOADER
LEA BX,TEMP_RECORD
RETF
CVPACK_RUNNER ENDP
else
CVPACK_RUNNER PROC
;
;THIS NEVER RETURNS...
;
FIXDS
LEA SI,FILNAM
PUSH CS
POP ES
LEA DI,ASCIZ
LODSW
MOV CX,AX
REP MOVSB
XOR AX,AX
STOSW
LEA SI,TEMP_RECORD
LEA DI,CMDLINE
LODSW
STOSB
MOV CX,AX
REP MOVSB
MOV AL,0DH
STOSB
CALL $$SLR_OVL_TERM ;MAKE SURE OVERLAY SYSTEM RELEASED
MOV ES,HOST_BASE
MOV AH,49H
INT21
;
;SHRINK ME
;
MOV DX,PSP_SAVER
LEA BX,MYEND+16
AND BX,0FFF0H
MOV AX,CS
MOV SS,AX ;CHANGE TO NEW STACK
MOV SP,BX
MOV DS,AX
ASSUME SS:@code,DS:@code
SHRI BX,4
ADD BX,AX ;LAST PARAGRAPH I WANT
MOV ES,DX
ASSUME ES:NOTHING
SUB BX,DX
MOV AH,4AH
INT21
MOV AX,SS
MOV ES,AX
ASSUME ES:@code
LEA DX,ASCIZ
LEA BX,PARAM_BLOCK
MOV AX,4B00H
INT 21H
JC 9$
MOV AH,4DH
INT 21H
9$:
MOV AH,4CH
INT 21H
CVPACK_RUNNER ENDP
PARAM_BLOCK DW 0
DD CMDLINE
DD 0
DD 0
ALIGN 16
CMDLINE EQU $
ASCIZ EQU CMDLINE+128
MYSTACK EQU ASCIZ+256
MYEND EQU MYSTACK+512
endif
endif
END
| 12.262295 | 57 | 0.68115 |
8640c65a8f7bf729d383bb29dddc4f27158d8239 | 5,476 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_ht_zr_/i9-9900K_12_0xa0_notsx.log_21829_833.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_ht_zr_/i9-9900K_12_0xa0_notsx.log_21829_833.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_ht_zr_/i9-9900K_12_0xa0_notsx.log_21829_833.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x564b, %r9
cmp %r10, %r10
mov (%r9), %r15d
nop
nop
and $5379, %rdx
lea addresses_A_ht+0x198ab, %r9
nop
nop
xor %rbx, %rbx
mov $0x6162636465666768, %rbp
movq %rbp, %xmm0
vmovups %ymm0, (%r9)
nop
nop
nop
sub $3684, %r9
lea addresses_A_ht+0x2827, %rsi
lea addresses_WT_ht+0x1799f, %rdi
clflush (%rsi)
nop
cmp %rbp, %rbp
mov $114, %rcx
rep movsb
sub $2106, %rdx
lea addresses_D_ht+0x19e8b, %rdx
nop
nop
nop
nop
sub %rdi, %rdi
movb (%rdx), %r15b
nop
nop
cmp $3668, %r9
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r15
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r15
push %r8
push %r9
push %rbx
push %rsi
// Store
mov $0x70b, %r10
nop
nop
nop
nop
nop
sub %rsi, %rsi
mov $0x5152535455565758, %r9
movq %r9, %xmm2
vmovups %ymm2, (%r10)
nop
nop
nop
nop
xor $5887, %rsi
// Load
lea addresses_normal+0x1488b, %r8
clflush (%r8)
nop
nop
dec %rsi
movb (%r8), %r9b
nop
nop
dec %r9
// Faulty Load
lea addresses_WC+0x348b, %rsi
nop
nop
nop
nop
inc %r14
vmovntdqa (%rsi), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $1, %xmm1, %r9
lea oracles, %rbx
and $0xff, %r9
shlq $12, %r9
mov (%rbx,%r9,1), %r9
pop %rsi
pop %rbx
pop %r9
pop %r8
pop %r15
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_WC', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 1}}
{'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_WC', 'AVXalign': False, 'size': 32, 'NT': True, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 5}}
{'src': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': True}}
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'}
{'45': 5755, '00': 16074}
00 45 45 00 00 00 45 00 45 00 00 00 00 00 00 45 00 00 00 00 45 00 00 00 00 00 45 00 00 00 00 00 45 00 45 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 45 45 45 00 00 00 00 45 00 00 00 00 00 00 45 00 00 45 00 00 00 45 45 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 45 00 45 00 00 00 00 45 00 00 00 00 00 45 00 00 00 00 00 45 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 45 00 00 00 00 45 00 00 00 00 00 45 45 00 00 00 00 00 45 45 45 45 45 00 00 00 45 00 00 00 00 45 00 00 00 00 45 45 45 00 00 00 00 45 45 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 45 00 00 00 00 00 00 45 00 00 00 00 00 00 00 45 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 45 00 00 00 00 00 00 45 45 00 00 00 45 45 45 45 00 00 00 00 45 00 00 00 00 00 45 00 00 00 00 00 45 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 45 00 45 00 45 00 00 00 00 00 00 00 00 45 00 00 00 45 45 45 00 00 00 00 00 00 00 45 00 00 00 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 45 45 00 00 00 00 00 00 00 45 45 00 00 00 00 00 00 45 45 00 00 00 00 00 00 45 45 00 00 00 00 00 00 45 45 00 00 00 00 45 45 00 00 00 00 45 00 00 00 00 00 45 00 45 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 45 00 00 00 00 45 45 45 45 45 45 45 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 45 45 00 00 00 00 00 00 45 45 45 00 00 00 00 00 45 45 00 00 00 45 45 00 00 00 45 00 00 00 00 00 00 45 45 00 00 00 00 00 00 45 45 00 00 00 45 45 45 00 00 00 00 45 45 00 00 00 00 00 45 00 00 00 00 00 00 45 00 00 00 00 00 00 00 45 45 00 00 00 00 00 00 00 00 00 00 00 45 45 00 00 00 00 00 00 00 45 45 00 00 00 00 00 00 45 45 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 45 45 45 00 00 00 00 00 45 45 00 00 00 00 00 00 00 45 00 00 00 45 00 00 00 00 00 45 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 45 45 00 00 00 00 45 00 00 00 00 00 45 45 00 00 00 00 00 45 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 45 00 00 00 00 00 45 00 00 00 00 00 45 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 45 00 00 00 00 00 45 00 00 00 00 00 45 45 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 45 00 00 00 00 00 00 45 45 00 00 00 00 00 00 45 45 00 00 00 00 00 45 00 00 00 00 00 00 45 00 00 00 00 00 45 45 45 00 00 00 00 45 45 00 45 00 45 00 00 00 00 00 00 00 45 45 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 45 45 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 45 45 00 00 00 00 00 00 45 45 00 00 00 00 00 00 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 00 00 00 00 45 45 00 00 00 00 00 00 00 45 00 00 45 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 45 00 00 00 00 45 45 00 00 00 00 00 00 00 45 45 00 00 00 00 00 45 00 00 00 45 00 00 00 00 00 00 00 00 00 45 45 00 00 00 00 00 45 00 00 00 00 00 45 00 00 00 00 00 45 00 00 00 00 00 45 00 00 00 00 45 00 00 00 00 00 00 45 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 45 00
*/
| 40.562963 | 2,999 | 0.657049 |
0f2a678af1b9adfce259b0ec1ca61de9569901c8 | 4,553 | asm | Assembly | Injector.asm | m0n0ph1/Injector | 4c123ee46c5448f8d3ffd2007fa180b61ec9f0fd | [
"MIT"
] | 6 | 2019-01-22T06:31:46.000Z | 2022-02-07T11:32:09.000Z | Injector.asm | m0n0ph1/Injector | 4c123ee46c5448f8d3ffd2007fa180b61ec9f0fd | [
"MIT"
] | null | null | null | Injector.asm | m0n0ph1/Injector | 4c123ee46c5448f8d3ffd2007fa180b61ec9f0fd | [
"MIT"
] | 6 | 2019-03-05T13:24:13.000Z | 2021-03-25T22:57:35.000Z | ; Windows DLL Injector v1.2
; Copyright Amezoure, 2017. All rights reserved.
format PE GUI 4.0
entry FindProcess
include 'WIN32A.INC'
; +---------------------------------------------+
; | MACROS SECTION |
; +---------------------------------------------+
macro pushd value {
match pushd, pushd \{
local ..continue
if value eqtype ''
call ..continue
db value, 0
..continue:
else
push value
end if
pushd equ
\}
restore pushd
}
; +---------------------------------------------+
; | CODE SECTION |
; +---------------------------------------------+
proc FindProcess uses ebx
invoke CreateToolhelp32Snapshot, TH32CS_SNAPPROCESS, 0
inc eax
jz @f
dec eax
mov ebx, eax
mov [lppe.dwSize], sizeof.PROCESSENTRY32
invoke Process32First, ebx, lppe
test eax, eax
jz @f
.search:
invoke lstrcmpi, lppe.szExeFile, 'SomeProcess.exe'
test eax, eax
jnz .next
jmp .find
.next:
invoke Process32Next, ebx, lppe
test eax, eax
jnz .search
jmp @f
.find:
invoke OpenProcess, PROCESS_ALL_ACCESS, 0, [lppe.th32ProcessID]
test eax, eax
jz @f
stdcall InjectLibrary, eax
@@:
invoke CloseHandle, ebx
ret
endp
proc InjectLibrary uses ebx esi edi, hProcess:DWORD
invoke GetFullPathName, 'SomeLibrary.dll', MAX_PATH, szLibraryPath, 0
test eax, eax
jz @f
mov ebx, eax
invoke GetModuleHandle, 'KERNEL32.DLL'
test eax, eax
jz @f
invoke GetProcAddress, eax, 'LoadLibraryA'
test eax, eax
jz @f
mov esi, eax
invoke VirtualAllocEx, [hProcess], 0, ebx, MEM_COMMIT or MEM_RESERVE, PAGE_READWRITE
test eax, eax
jz @f
mov edi, eax
invoke WriteProcessMemory, [hProcess], eax, szLibraryPath, ebx, 0
test eax, eax
jz @f
invoke CreateRemoteThread, [hProcess], 0, 0, esi, edi, 0, 0
test eax, eax
jz @f
invoke WaitForSingleObject, eax, INFINITE
test eax, eax
jnz @f
invoke Beep, 2EEh, 12Ch
@@:
invoke CloseHandle, [hProcess]
ret
endp
; +---------------------------------------------+
; | OPTIONS AND EQUATIONS |
; +---------------------------------------------+
TH32CS_SNAPPROCESS = 2h
INFINITE = 0FFFFFFFFh
struct PROCESSENTRY32
dwSize dd ?
cntUsage dd ?
th32ProcessID dd ?
th32DefaultHeapID dd ?
th32ModuleID dd ?
cntThreads dd ?
th32ParentProcessID dd ?
pcPriClassBase dd ?
dwFlags dd ?
szExeFile rb MAX_PATH
ends
lppe PROCESSENTRY32
szLibraryPath rb MAX_PATH
; +---------------------------------------------+
; | DATA SECTION |
; +---------------------------------------------+
data import
dd 0, 0, 0, RVA kernel_name, RVA kernel_table
dd 0, 0, 0, 0, 0
kernel_name db 'KERNEL32.DLL', 0
kernel_table:
Beep dd RVA _Beep
CloseHandle dd RVA _CloseHandle
CreateRemoteThread dd RVA _CreateRemoteThread
CreateToolhelp32Snapshot dd RVA _CreateToolhelp32Snapshot
GetFullPathName dd RVA _GetFullPathName
GetModuleHandle dd RVA _GetModuleHandle
GetProcAddress dd RVA _GetProcAddress
OpenProcess dd RVA _OpenProcess
Process32First dd RVA _Process32First
Process32Next dd RVA _Process32Next
VirtualAllocEx dd RVA _VirtualAllocEx
WaitForSingleObject dd RVA _WaitForSingleObject
WriteProcessMemory dd RVA _WriteProcessMemory
lstrcmpi dd RVA _lstrcmpi
dd 0
_Beep dw 0
db 'Beep', 0
_CloseHandle dw 0
db 'CloseHandle', 0
_CreateRemoteThread dw 0
db 'CreateRemoteThread', 0
_CreateToolhelp32Snapshot dw 0
db 'CreateToolhelp32Snapshot', 0
_GetFullPathName dw 0
db 'GetFullPathNameA', 0
_GetModuleHandle dw 0
db 'GetModuleHandleA', 0
_GetProcAddress dw 0
db 'GetProcAddress', 0
_OpenProcess dw 0
db 'OpenProcess', 0
_Process32First dw 0
db 'Process32First', 0
_Process32Next dw 0
db 'Process32Next', 0
_VirtualAllocEx dw 0
db 'VirtualAllocEx', 0
_WaitForSingleObject dw 0
db 'WaitForSingleObject', 0
_WriteProcessMemory dw 0
db 'WriteProcessMemory', 0
_lstrcmpi dw 0
db 'lstrcmpiA', 0
end data
| 24.218085 | 89 | 0.559631 |
24f310c2916586fd151526e7b63d97594c7362c7 | 50,269 | asm | Assembly | user/test.asm | Hasnain62/xv6-Procject | 93162ef8e9be42a4b506a1f97bcd7e054bc35ffe | [
"MIT-0"
] | null | null | null | user/test.asm | Hasnain62/xv6-Procject | 93162ef8e9be42a4b506a1f97bcd7e054bc35ffe | [
"MIT-0"
] | null | null | null | user/test.asm | Hasnain62/xv6-Procject | 93162ef8e9be42a4b506a1f97bcd7e054bc35ffe | [
"MIT-0"
] | null | null | null |
user/_test: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <main>:
//#include "kernel/stat.h"
//#include "errno.h"
uint turntime = 0 ;
uint running = 0;
int main(int argc, char *argv[]) {
0: 7119 addi sp,sp,-128
2: fc86 sd ra,120(sp)
4: f8a2 sd s0,112(sp)
6: f4a6 sd s1,104(sp)
8: f0ca sd s2,96(sp)
a: ecce sd s3,88(sp)
c: e8d2 sd s4,80(sp)
e: e4d6 sd s5,72(sp)
10: e0da sd s6,64(sp)
12: fc5e sd s7,56(sp)
14: f862 sd s8,48(sp)
16: f466 sd s9,40(sp)
18: f06a sd s10,32(sp)
1a: ec6e sd s11,24(sp)
1c: 0100 addi s0,sp,128
1e: 84ae mv s1,a1
int K = atoi(argv[1]); // Take the arguments from the command Line
20: 6588 ld a0,8(a1)
22: 00000097 auipc ra,0x0
26: 3d2080e7 jalr 978(ra) # 3f4 <atoi>
2a: 8baa mv s7,a0
int L = atoi(argv[2]);
2c: 6888 ld a0,16(s1)
2e: 00000097 auipc ra,0x0
32: 3c6080e7 jalr 966(ra) # 3f4 <atoi>
36: f8a43423 sd a0,-120(s0)
int M = atoi(argv[3]);
3a: 6c88 ld a0,24(s1)
3c: 00000097 auipc ra,0x0
40: 3b8080e7 jalr 952(ra) # 3f4 <atoi>
44: 8daa mv s11,a0
int N = atoi(argv[4]);
46: 7088 ld a0,32(s1)
48: 00000097 auipc ra,0x0
4c: 3ac080e7 jalr 940(ra) # 3f4 <atoi>
50: 8c2a mv s8,a0
printf("%d\n",K);
52: 85de mv a1,s7
54: 00001517 auipc a0,0x1
58: 9dc50513 addi a0,a0,-1572 # a30 <malloc+0xe8>
5c: 00001097 auipc ra,0x1
60: 834080e7 jalr -1996(ra) # 890 <printf>
printf("%d\n",N);
64: 85e2 mv a1,s8
66: 00001517 auipc a0,0x1
6a: 9ca50513 addi a0,a0,-1590 # a30 <malloc+0xe8>
6e: 00001097 auipc ra,0x1
72: 822080e7 jalr -2014(ra) # 890 <printf>
int iter2 = 0;
int Diff = 0;
int pid1 = -1 ;
int pid2 = -1;
int pid3 = -1;
int *ParentID1 = malloc (sizeof (int)* 45) ;
76: 0b400513 li a0,180
7a: 00001097 auipc ra,0x1
7e: 8ce080e7 jalr -1842(ra) # 948 <malloc>
82: 8caa mv s9,a0
84: 892a mv s2,a0
86: 4485 li s1,1
int pid1 = -1 ;
88: 59fd li s3,-1
while (iter1 < 45){
// if (pid1 != 0){
if (iter1 <= 15){
8a: 4abd li s5,15
//printf("(i - j) = %d\n",Diff );
exit(1);
}
}
else if (iter1 > 15 && iter1 <= 30){
8c: 4a39 li s4,14
while (iter1 < 45){
8e: 02c00b13 li s6,44
ParentID1[iter1] = pid1;
}
//}
if(pid3 < 0){
printf("Didnt fork successfully ");
92: 00001d17 auipc s10,0x1
96: 9a6d0d13 addi s10,s10,-1626 # a38 <malloc+0xf0>
9a: a829 j b4 <main+0xb4>
pid1 = fork();
9c: 00000097 auipc ra,0x0
a0: 44a080e7 jalr 1098(ra) # 4e6 <fork>
a4: 89aa mv s3,a0
if(pid1 != 0){
a6: c525 beqz a0,10e <main+0x10e>
ParentID1[iter1] = pid1;
a8: 00a92023 sw a0,0(s2)
if(pid1 < 0){
ac: 04054b63 bltz a0,102 <main+0x102>
b0: 2485 addiw s1,s1,1
b2: 0911 addi s2,s2,4
if (iter1 <= 15){
b4: fff4879b addiw a5,s1,-1
b8: fefad2e3 bge s5,a5,9c <main+0x9c>
else if (iter1 > 15 && iter1 <= 30){
bc: fef4879b addiw a5,s1,-17
c0: 06fa7e63 bgeu s4,a5,13c <main+0x13c>
else if(iter1 > 30 && iter1 <= 45){
c4: fe04879b addiw a5,s1,-32
c8: 0afa7c63 bgeu s4,a5,180 <main+0x180>
while (iter1 < 45){
cc: 0004879b sext.w a5,s1
d0: fefb50e3 bge s6,a5,b0 <main+0xb0>
d4: 02d00b13 li s6,45
int sum1 = 0;
int sum2 = 0;
int sum3 = 0;
int sum4 = 0;
int sum5 = 0;
int sum6 = 0;
d8: f8043023 sd zero,-128(s0)
int sum5 = 0;
dc: 4d81 li s11,0
int sum4 = 0;
de: 4a81 li s5,0
int sum3 = 0;
e0: f8043423 sd zero,-120(s0)
int sum2 = 0;
e4: 4d01 li s10,0
int sum1 = 0;
e6: 4a01 li s4,0
int returnpid = 0;
while(iter2 < 45){
returnpid = waitstat(0,&turntime,&running);
e8: 00001c17 auipc s8,0x1
ec: ad8c0c13 addi s8,s8,-1320 # bc0 <running>
f0: 00001b97 auipc s7,0x1
f4: ad4b8b93 addi s7,s7,-1324 # bc4 <turntime>
// printf ("Outer loop : %d\n", returnpid);
int iter3 = 0;
while (iter3 < 45){
f8: 02c00493 li s1,44
if (returnpid == ParentID1[iter3]) {
if (iter3 <= 15){
fc: 49bd li s3,15
sum1 = sum1 + turntime;
sum4 = sum4 + running;
}
else if (iter3 > 15 && iter3 <= 30){
fe: 4939 li s2,14
100: aa31 j 21c <main+0x21c>
printf("Didnt fork successfully ");
102: 856a mv a0,s10
104: 00000097 auipc ra,0x0
108: 78c080e7 jalr 1932(ra) # 890 <printf>
10c: b755 j b0 <main+0xb0>
while (i<=K){
10e: 03705263 blez s7,132 <main+0x132>
112: 2b85 addiw s7,s7,1
int i = 1;
114: 4685 li a3,1
116: 001c071b addiw a4,s8,1
int j = 1;
11a: 4605 li a2,1
11c: a021 j 124 <main+0x124>
i++;
11e: 2685 addiw a3,a3,1
while (i<=K){
120: 01768963 beq a3,s7,132 <main+0x132>
int j = 1;
124: 87b2 mv a5,a2
while (j<=N)
126: ff805ce3 blez s8,11e <main+0x11e>
j++;
12a: 2785 addiw a5,a5,1
while (j<=N)
12c: fee79fe3 bne a5,a4,12a <main+0x12a>
130: b7fd j 11e <main+0x11e>
exit(1);
132: 4505 li a0,1
134: 00000097 auipc ra,0x0
138: 3ba080e7 jalr 954(ra) # 4ee <exit>
pid2 = fork();
13c: 00000097 auipc ra,0x0
140: 3aa080e7 jalr 938(ra) # 4e6 <fork>
if(pid2 != 0){
144: c919 beqz a0,15a <main+0x15a>
ParentID1[iter1] = pid1;
146: 01392023 sw s3,0(s2)
if(pid2 < 0){
14a: f60553e3 bgez a0,b0 <main+0xb0>
printf("Didnt fork successfully ");
14e: 856a mv a0,s10
150: 00000097 auipc ra,0x0
154: 740080e7 jalr 1856(ra) # 890 <printf>
158: bfa1 j b0 <main+0xb0>
if(pid2 < 0){
15a: fe054ae3 bltz a0,14e <main+0x14e>
else if(pid2==0) // child process
15e: f929 bnez a0,b0 <main+0xb0>
int i = 1;
160: 4785 li a5,1
int j = 1;
162: 4685 li a3,1
164: a029 j 16e <main+0x16e>
j++;
166: 2705 addiw a4,a4,1
while (j<=M)
168: feeddfe3 bge s11,a4,166 <main+0x166>
i++;
16c: 2785 addiw a5,a5,1
while (i<=K){
16e: 00fbd763 bge s7,a5,17c <main+0x17c>
exit(1);
172: 4505 li a0,1
174: 00000097 auipc ra,0x0
178: 37a080e7 jalr 890(ra) # 4ee <exit>
int j = 1;
17c: 8736 mv a4,a3
17e: b7ed j 168 <main+0x168>
pid3 = fork();
180: 00000097 auipc ra,0x0
184: 366080e7 jalr 870(ra) # 4e6 <fork>
if(pid3 != 0){
188: c915 beqz a0,1bc <main+0x1bc>
ParentID1[iter1] = pid1;
18a: 01392023 sw s3,0(s2)
if(pid3 < 0){
18e: f2055fe3 bgez a0,cc <main+0xcc>
printf("Didnt fork successfully ");
192: 856a mv a0,s10
194: 00000097 auipc ra,0x0
198: 6fc080e7 jalr 1788(ra) # 890 <printf>
19c: bf05 j cc <main+0xcc>
j++;
19e: 2705 addiw a4,a4,1
while (j<=L)
1a0: f8843603 ld a2,-120(s0)
1a4: fee65de3 bge a2,a4,19e <main+0x19e>
i++;
1a8: 2785 addiw a5,a5,1
while (i<=K){
1aa: 00fbd763 bge s7,a5,1b8 <main+0x1b8>
exit(1);
1ae: 4505 li a0,1
1b0: 00000097 auipc ra,0x0
1b4: 33e080e7 jalr 830(ra) # 4ee <exit>
int j = 1;
1b8: 8736 mv a4,a3
1ba: b7dd j 1a0 <main+0x1a0>
int i = 1;
1bc: 4785 li a5,1
int j = 1;
1be: 4685 li a3,1
1c0: b7ed j 1aa <main+0x1aa>
else if (iter3 > 15 && iter3 <= 30){
1c2: fef7869b addiw a3,a5,-17
1c6: 02d97863 bgeu s2,a3,1f6 <main+0x1f6>
sum2 = sum2 + turntime;
sum5 = sum5 + running;
}
else if(iter3 > 30 && iter3 <= 45){
1ca: fe07869b addiw a3,a5,-32
1ce: 02d97963 bgeu s2,a3,200 <main+0x200>
while (iter3 < 45){
1d2: 0007869b sext.w a3,a5
1d6: 04d4c063 blt s1,a3,216 <main+0x216>
1da: 0711 addi a4,a4,4
1dc: 2785 addiw a5,a5,1
if (returnpid == ParentID1[iter3]) {
1de: 4314 lw a3,0(a4)
1e0: fea699e3 bne a3,a0,1d2 <main+0x1d2>
if (iter3 <= 15){
1e4: fff7869b addiw a3,a5,-1
1e8: fcd9cde3 blt s3,a3,1c2 <main+0x1c2>
sum1 = sum1 + turntime;
1ec: 00ba0a3b addw s4,s4,a1
sum4 = sum4 + running;
1f0: 00ca8abb addw s5,s5,a2
1f4: b7dd j 1da <main+0x1da>
sum2 = sum2 + turntime;
1f6: 00bd0d3b addw s10,s10,a1
sum5 = sum5 + running;
1fa: 00cd8dbb addw s11,s11,a2
1fe: bff1 j 1da <main+0x1da>
sum3 = sum3 + turntime;
200: f8843683 ld a3,-120(s0)
204: 9ead addw a3,a3,a1
206: f8d43423 sd a3,-120(s0)
sum6 = sum6 + running;
20a: f8043683 ld a3,-128(s0)
20e: 9eb1 addw a3,a3,a2
210: f8d43023 sd a3,-128(s0)
214: bf7d j 1d2 <main+0x1d2>
while(iter2 < 45){
216: 3b7d addiw s6,s6,-1
218: 020b0063 beqz s6,238 <main+0x238>
returnpid = waitstat(0,&turntime,&running);
21c: 8662 mv a2,s8
21e: 85de mv a1,s7
220: 4501 li a0,0
222: 00000097 auipc ra,0x0
226: 36c080e7 jalr 876(ra) # 58e <waitstat>
sum3 = sum3 + turntime;
22a: 000ba583 lw a1,0(s7)
sum6 = sum6 + running;
22e: 000c2603 lw a2,0(s8)
232: 8766 mv a4,s9
234: 4785 li a5,1
236: b765 j 1de <main+0x1de>
}
iter2++;
}
printf("Sum of turnaround time for 1st group : %d and Sum of running time : %d \n", sum1,sum4);
238: 8656 mv a2,s5
23a: 85d2 mv a1,s4
23c: 00001517 auipc a0,0x1
240: 81c50513 addi a0,a0,-2020 # a58 <malloc+0x110>
244: 00000097 auipc ra,0x0
248: 64c080e7 jalr 1612(ra) # 890 <printf>
printf("Sum of turnaround time for 2nd group : %d and Sum of running time : %d \n", sum2,sum5);
24c: 866e mv a2,s11
24e: 85ea mv a1,s10
250: 00001517 auipc a0,0x1
254: 85850513 addi a0,a0,-1960 # aa8 <malloc+0x160>
258: 00000097 auipc ra,0x0
25c: 638080e7 jalr 1592(ra) # 890 <printf>
printf("Sum of turnaround time for 3rd group : %d and Sum of running time : %d \n", sum3,sum6);
260: f8043603 ld a2,-128(s0)
264: f8843583 ld a1,-120(s0)
268: 00001517 auipc a0,0x1
26c: 89050513 addi a0,a0,-1904 # af8 <malloc+0x1b0>
270: 00000097 auipc ra,0x0
274: 620080e7 jalr 1568(ra) # 890 <printf>
exit(0);
278: 4501 li a0,0
27a: 00000097 auipc ra,0x0
27e: 274080e7 jalr 628(ra) # 4ee <exit>
0000000000000282 <strcpy>:
#include "kernel/fcntl.h"
#include "user/user.h"
char*
strcpy(char *s, const char *t)
{
282: 1141 addi sp,sp,-16
284: e422 sd s0,8(sp)
286: 0800 addi s0,sp,16
char *os;
os = s;
while((*s++ = *t++) != 0)
288: 87aa mv a5,a0
28a: 0585 addi a1,a1,1
28c: 0785 addi a5,a5,1
28e: fff5c703 lbu a4,-1(a1)
292: fee78fa3 sb a4,-1(a5)
296: fb75 bnez a4,28a <strcpy+0x8>
;
return os;
}
298: 6422 ld s0,8(sp)
29a: 0141 addi sp,sp,16
29c: 8082 ret
000000000000029e <strcmp>:
int
strcmp(const char *p, const char *q)
{
29e: 1141 addi sp,sp,-16
2a0: e422 sd s0,8(sp)
2a2: 0800 addi s0,sp,16
while(*p && *p == *q)
2a4: 00054783 lbu a5,0(a0)
2a8: cb91 beqz a5,2bc <strcmp+0x1e>
2aa: 0005c703 lbu a4,0(a1)
2ae: 00f71763 bne a4,a5,2bc <strcmp+0x1e>
p++, q++;
2b2: 0505 addi a0,a0,1
2b4: 0585 addi a1,a1,1
while(*p && *p == *q)
2b6: 00054783 lbu a5,0(a0)
2ba: fbe5 bnez a5,2aa <strcmp+0xc>
return (uchar)*p - (uchar)*q;
2bc: 0005c503 lbu a0,0(a1)
}
2c0: 40a7853b subw a0,a5,a0
2c4: 6422 ld s0,8(sp)
2c6: 0141 addi sp,sp,16
2c8: 8082 ret
00000000000002ca <strlen>:
uint
strlen(const char *s)
{
2ca: 1141 addi sp,sp,-16
2cc: e422 sd s0,8(sp)
2ce: 0800 addi s0,sp,16
int n;
for(n = 0; s[n]; n++)
2d0: 00054783 lbu a5,0(a0)
2d4: cf91 beqz a5,2f0 <strlen+0x26>
2d6: 0505 addi a0,a0,1
2d8: 87aa mv a5,a0
2da: 4685 li a3,1
2dc: 9e89 subw a3,a3,a0
2de: 00f6853b addw a0,a3,a5
2e2: 0785 addi a5,a5,1
2e4: fff7c703 lbu a4,-1(a5)
2e8: fb7d bnez a4,2de <strlen+0x14>
;
return n;
}
2ea: 6422 ld s0,8(sp)
2ec: 0141 addi sp,sp,16
2ee: 8082 ret
for(n = 0; s[n]; n++)
2f0: 4501 li a0,0
2f2: bfe5 j 2ea <strlen+0x20>
00000000000002f4 <memset>:
void*
memset(void *dst, int c, uint n)
{
2f4: 1141 addi sp,sp,-16
2f6: e422 sd s0,8(sp)
2f8: 0800 addi s0,sp,16
char *cdst = (char *) dst;
int i;
for(i = 0; i < n; i++){
2fa: ca19 beqz a2,310 <memset+0x1c>
2fc: 87aa mv a5,a0
2fe: 1602 slli a2,a2,0x20
300: 9201 srli a2,a2,0x20
302: 00a60733 add a4,a2,a0
cdst[i] = c;
306: 00b78023 sb a1,0(a5)
for(i = 0; i < n; i++){
30a: 0785 addi a5,a5,1
30c: fee79de3 bne a5,a4,306 <memset+0x12>
}
return dst;
}
310: 6422 ld s0,8(sp)
312: 0141 addi sp,sp,16
314: 8082 ret
0000000000000316 <strchr>:
char*
strchr(const char *s, char c)
{
316: 1141 addi sp,sp,-16
318: e422 sd s0,8(sp)
31a: 0800 addi s0,sp,16
for(; *s; s++)
31c: 00054783 lbu a5,0(a0)
320: cb99 beqz a5,336 <strchr+0x20>
if(*s == c)
322: 00f58763 beq a1,a5,330 <strchr+0x1a>
for(; *s; s++)
326: 0505 addi a0,a0,1
328: 00054783 lbu a5,0(a0)
32c: fbfd bnez a5,322 <strchr+0xc>
return (char*)s;
return 0;
32e: 4501 li a0,0
}
330: 6422 ld s0,8(sp)
332: 0141 addi sp,sp,16
334: 8082 ret
return 0;
336: 4501 li a0,0
338: bfe5 j 330 <strchr+0x1a>
000000000000033a <gets>:
char*
gets(char *buf, int max)
{
33a: 711d addi sp,sp,-96
33c: ec86 sd ra,88(sp)
33e: e8a2 sd s0,80(sp)
340: e4a6 sd s1,72(sp)
342: e0ca sd s2,64(sp)
344: fc4e sd s3,56(sp)
346: f852 sd s4,48(sp)
348: f456 sd s5,40(sp)
34a: f05a sd s6,32(sp)
34c: ec5e sd s7,24(sp)
34e: 1080 addi s0,sp,96
350: 8baa mv s7,a0
352: 8a2e mv s4,a1
int i, cc;
char c;
for(i=0; i+1 < max; ){
354: 892a mv s2,a0
356: 4481 li s1,0
cc = read(0, &c, 1);
if(cc < 1)
break;
buf[i++] = c;
if(c == '\n' || c == '\r')
358: 4aa9 li s5,10
35a: 4b35 li s6,13
for(i=0; i+1 < max; ){
35c: 89a6 mv s3,s1
35e: 2485 addiw s1,s1,1
360: 0344d863 bge s1,s4,390 <gets+0x56>
cc = read(0, &c, 1);
364: 4605 li a2,1
366: faf40593 addi a1,s0,-81
36a: 4501 li a0,0
36c: 00000097 auipc ra,0x0
370: 19a080e7 jalr 410(ra) # 506 <read>
if(cc < 1)
374: 00a05e63 blez a0,390 <gets+0x56>
buf[i++] = c;
378: faf44783 lbu a5,-81(s0)
37c: 00f90023 sb a5,0(s2)
if(c == '\n' || c == '\r')
380: 01578763 beq a5,s5,38e <gets+0x54>
384: 0905 addi s2,s2,1
386: fd679be3 bne a5,s6,35c <gets+0x22>
for(i=0; i+1 < max; ){
38a: 89a6 mv s3,s1
38c: a011 j 390 <gets+0x56>
38e: 89a6 mv s3,s1
break;
}
buf[i] = '\0';
390: 99de add s3,s3,s7
392: 00098023 sb zero,0(s3)
return buf;
}
396: 855e mv a0,s7
398: 60e6 ld ra,88(sp)
39a: 6446 ld s0,80(sp)
39c: 64a6 ld s1,72(sp)
39e: 6906 ld s2,64(sp)
3a0: 79e2 ld s3,56(sp)
3a2: 7a42 ld s4,48(sp)
3a4: 7aa2 ld s5,40(sp)
3a6: 7b02 ld s6,32(sp)
3a8: 6be2 ld s7,24(sp)
3aa: 6125 addi sp,sp,96
3ac: 8082 ret
00000000000003ae <stat>:
int
stat(const char *n, struct stat *st)
{
3ae: 1101 addi sp,sp,-32
3b0: ec06 sd ra,24(sp)
3b2: e822 sd s0,16(sp)
3b4: e426 sd s1,8(sp)
3b6: e04a sd s2,0(sp)
3b8: 1000 addi s0,sp,32
3ba: 892e mv s2,a1
int fd;
int r;
fd = open(n, O_RDONLY);
3bc: 4581 li a1,0
3be: 00000097 auipc ra,0x0
3c2: 170080e7 jalr 368(ra) # 52e <open>
if(fd < 0)
3c6: 02054563 bltz a0,3f0 <stat+0x42>
3ca: 84aa mv s1,a0
return -1;
r = fstat(fd, st);
3cc: 85ca mv a1,s2
3ce: 00000097 auipc ra,0x0
3d2: 178080e7 jalr 376(ra) # 546 <fstat>
3d6: 892a mv s2,a0
close(fd);
3d8: 8526 mv a0,s1
3da: 00000097 auipc ra,0x0
3de: 13c080e7 jalr 316(ra) # 516 <close>
return r;
}
3e2: 854a mv a0,s2
3e4: 60e2 ld ra,24(sp)
3e6: 6442 ld s0,16(sp)
3e8: 64a2 ld s1,8(sp)
3ea: 6902 ld s2,0(sp)
3ec: 6105 addi sp,sp,32
3ee: 8082 ret
return -1;
3f0: 597d li s2,-1
3f2: bfc5 j 3e2 <stat+0x34>
00000000000003f4 <atoi>:
int
atoi(const char *s)
{
3f4: 1141 addi sp,sp,-16
3f6: e422 sd s0,8(sp)
3f8: 0800 addi s0,sp,16
int n;
n = 0;
while('0' <= *s && *s <= '9')
3fa: 00054683 lbu a3,0(a0)
3fe: fd06879b addiw a5,a3,-48
402: 0ff7f793 zext.b a5,a5
406: 4625 li a2,9
408: 02f66863 bltu a2,a5,438 <atoi+0x44>
40c: 872a mv a4,a0
n = 0;
40e: 4501 li a0,0
n = n*10 + *s++ - '0';
410: 0705 addi a4,a4,1
412: 0025179b slliw a5,a0,0x2
416: 9fa9 addw a5,a5,a0
418: 0017979b slliw a5,a5,0x1
41c: 9fb5 addw a5,a5,a3
41e: fd07851b addiw a0,a5,-48
while('0' <= *s && *s <= '9')
422: 00074683 lbu a3,0(a4)
426: fd06879b addiw a5,a3,-48
42a: 0ff7f793 zext.b a5,a5
42e: fef671e3 bgeu a2,a5,410 <atoi+0x1c>
return n;
}
432: 6422 ld s0,8(sp)
434: 0141 addi sp,sp,16
436: 8082 ret
n = 0;
438: 4501 li a0,0
43a: bfe5 j 432 <atoi+0x3e>
000000000000043c <memmove>:
void*
memmove(void *vdst, const void *vsrc, int n)
{
43c: 1141 addi sp,sp,-16
43e: e422 sd s0,8(sp)
440: 0800 addi s0,sp,16
char *dst;
const char *src;
dst = vdst;
src = vsrc;
if (src > dst) {
442: 02b57463 bgeu a0,a1,46a <memmove+0x2e>
while(n-- > 0)
446: 00c05f63 blez a2,464 <memmove+0x28>
44a: 1602 slli a2,a2,0x20
44c: 9201 srli a2,a2,0x20
44e: 00c507b3 add a5,a0,a2
dst = vdst;
452: 872a mv a4,a0
*dst++ = *src++;
454: 0585 addi a1,a1,1
456: 0705 addi a4,a4,1
458: fff5c683 lbu a3,-1(a1)
45c: fed70fa3 sb a3,-1(a4)
while(n-- > 0)
460: fee79ae3 bne a5,a4,454 <memmove+0x18>
src += n;
while(n-- > 0)
*--dst = *--src;
}
return vdst;
}
464: 6422 ld s0,8(sp)
466: 0141 addi sp,sp,16
468: 8082 ret
dst += n;
46a: 00c50733 add a4,a0,a2
src += n;
46e: 95b2 add a1,a1,a2
while(n-- > 0)
470: fec05ae3 blez a2,464 <memmove+0x28>
474: fff6079b addiw a5,a2,-1
478: 1782 slli a5,a5,0x20
47a: 9381 srli a5,a5,0x20
47c: fff7c793 not a5,a5
480: 97ba add a5,a5,a4
*--dst = *--src;
482: 15fd addi a1,a1,-1
484: 177d addi a4,a4,-1
486: 0005c683 lbu a3,0(a1)
48a: 00d70023 sb a3,0(a4)
while(n-- > 0)
48e: fee79ae3 bne a5,a4,482 <memmove+0x46>
492: bfc9 j 464 <memmove+0x28>
0000000000000494 <memcmp>:
int
memcmp(const void *s1, const void *s2, uint n)
{
494: 1141 addi sp,sp,-16
496: e422 sd s0,8(sp)
498: 0800 addi s0,sp,16
const char *p1 = s1, *p2 = s2;
while (n-- > 0) {
49a: ca05 beqz a2,4ca <memcmp+0x36>
49c: fff6069b addiw a3,a2,-1
4a0: 1682 slli a3,a3,0x20
4a2: 9281 srli a3,a3,0x20
4a4: 0685 addi a3,a3,1
4a6: 96aa add a3,a3,a0
if (*p1 != *p2) {
4a8: 00054783 lbu a5,0(a0)
4ac: 0005c703 lbu a4,0(a1)
4b0: 00e79863 bne a5,a4,4c0 <memcmp+0x2c>
return *p1 - *p2;
}
p1++;
4b4: 0505 addi a0,a0,1
p2++;
4b6: 0585 addi a1,a1,1
while (n-- > 0) {
4b8: fed518e3 bne a0,a3,4a8 <memcmp+0x14>
}
return 0;
4bc: 4501 li a0,0
4be: a019 j 4c4 <memcmp+0x30>
return *p1 - *p2;
4c0: 40e7853b subw a0,a5,a4
}
4c4: 6422 ld s0,8(sp)
4c6: 0141 addi sp,sp,16
4c8: 8082 ret
return 0;
4ca: 4501 li a0,0
4cc: bfe5 j 4c4 <memcmp+0x30>
00000000000004ce <memcpy>:
void *
memcpy(void *dst, const void *src, uint n)
{
4ce: 1141 addi sp,sp,-16
4d0: e406 sd ra,8(sp)
4d2: e022 sd s0,0(sp)
4d4: 0800 addi s0,sp,16
return memmove(dst, src, n);
4d6: 00000097 auipc ra,0x0
4da: f66080e7 jalr -154(ra) # 43c <memmove>
}
4de: 60a2 ld ra,8(sp)
4e0: 6402 ld s0,0(sp)
4e2: 0141 addi sp,sp,16
4e4: 8082 ret
00000000000004e6 <fork>:
# generated by usys.pl - do not edit
#include "kernel/syscall.h"
.global fork
fork:
li a7, SYS_fork
4e6: 4885 li a7,1
ecall
4e8: 00000073 ecall
ret
4ec: 8082 ret
00000000000004ee <exit>:
.global exit
exit:
li a7, SYS_exit
4ee: 4889 li a7,2
ecall
4f0: 00000073 ecall
ret
4f4: 8082 ret
00000000000004f6 <wait>:
.global wait
wait:
li a7, SYS_wait
4f6: 488d li a7,3
ecall
4f8: 00000073 ecall
ret
4fc: 8082 ret
00000000000004fe <pipe>:
.global pipe
pipe:
li a7, SYS_pipe
4fe: 4891 li a7,4
ecall
500: 00000073 ecall
ret
504: 8082 ret
0000000000000506 <read>:
.global read
read:
li a7, SYS_read
506: 4895 li a7,5
ecall
508: 00000073 ecall
ret
50c: 8082 ret
000000000000050e <write>:
.global write
write:
li a7, SYS_write
50e: 48c1 li a7,16
ecall
510: 00000073 ecall
ret
514: 8082 ret
0000000000000516 <close>:
.global close
close:
li a7, SYS_close
516: 48d5 li a7,21
ecall
518: 00000073 ecall
ret
51c: 8082 ret
000000000000051e <kill>:
.global kill
kill:
li a7, SYS_kill
51e: 4899 li a7,6
ecall
520: 00000073 ecall
ret
524: 8082 ret
0000000000000526 <exec>:
.global exec
exec:
li a7, SYS_exec
526: 489d li a7,7
ecall
528: 00000073 ecall
ret
52c: 8082 ret
000000000000052e <open>:
.global open
open:
li a7, SYS_open
52e: 48bd li a7,15
ecall
530: 00000073 ecall
ret
534: 8082 ret
0000000000000536 <mknod>:
.global mknod
mknod:
li a7, SYS_mknod
536: 48c5 li a7,17
ecall
538: 00000073 ecall
ret
53c: 8082 ret
000000000000053e <unlink>:
.global unlink
unlink:
li a7, SYS_unlink
53e: 48c9 li a7,18
ecall
540: 00000073 ecall
ret
544: 8082 ret
0000000000000546 <fstat>:
.global fstat
fstat:
li a7, SYS_fstat
546: 48a1 li a7,8
ecall
548: 00000073 ecall
ret
54c: 8082 ret
000000000000054e <link>:
.global link
link:
li a7, SYS_link
54e: 48cd li a7,19
ecall
550: 00000073 ecall
ret
554: 8082 ret
0000000000000556 <mkdir>:
.global mkdir
mkdir:
li a7, SYS_mkdir
556: 48d1 li a7,20
ecall
558: 00000073 ecall
ret
55c: 8082 ret
000000000000055e <chdir>:
.global chdir
chdir:
li a7, SYS_chdir
55e: 48a5 li a7,9
ecall
560: 00000073 ecall
ret
564: 8082 ret
0000000000000566 <dup>:
.global dup
dup:
li a7, SYS_dup
566: 48a9 li a7,10
ecall
568: 00000073 ecall
ret
56c: 8082 ret
000000000000056e <getpid>:
.global getpid
getpid:
li a7, SYS_getpid
56e: 48ad li a7,11
ecall
570: 00000073 ecall
ret
574: 8082 ret
0000000000000576 <sbrk>:
.global sbrk
sbrk:
li a7, SYS_sbrk
576: 48b1 li a7,12
ecall
578: 00000073 ecall
ret
57c: 8082 ret
000000000000057e <sleep>:
.global sleep
sleep:
li a7, SYS_sleep
57e: 48b5 li a7,13
ecall
580: 00000073 ecall
ret
584: 8082 ret
0000000000000586 <uptime>:
.global uptime
uptime:
li a7, SYS_uptime
586: 48b9 li a7,14
ecall
588: 00000073 ecall
ret
58c: 8082 ret
000000000000058e <waitstat>:
.global waitstat
waitstat:
li a7, SYS_waitstat
58e: 48d9 li a7,22
ecall
590: 00000073 ecall
ret
594: 8082 ret
0000000000000596 <btput>:
.global btput
btput:
li a7, SYS_btput
596: 48dd li a7,23
ecall
598: 00000073 ecall
ret
59c: 8082 ret
000000000000059e <tput>:
.global tput
tput:
li a7, SYS_tput
59e: 48e1 li a7,24
ecall
5a0: 00000073 ecall
ret
5a4: 8082 ret
00000000000005a6 <btget>:
.global btget
btget:
li a7, SYS_btget
5a6: 48e5 li a7,25
ecall
5a8: 00000073 ecall
ret
5ac: 8082 ret
00000000000005ae <tget>:
.global tget
tget:
li a7, SYS_tget
5ae: 48e9 li a7,26
ecall
5b0: 00000073 ecall
ret
5b4: 8082 ret
00000000000005b6 <putc>:
static char digits[] = "0123456789ABCDEF";
static void
putc(int fd, char c)
{
5b6: 1101 addi sp,sp,-32
5b8: ec06 sd ra,24(sp)
5ba: e822 sd s0,16(sp)
5bc: 1000 addi s0,sp,32
5be: feb407a3 sb a1,-17(s0)
write(fd, &c, 1);
5c2: 4605 li a2,1
5c4: fef40593 addi a1,s0,-17
5c8: 00000097 auipc ra,0x0
5cc: f46080e7 jalr -186(ra) # 50e <write>
}
5d0: 60e2 ld ra,24(sp)
5d2: 6442 ld s0,16(sp)
5d4: 6105 addi sp,sp,32
5d6: 8082 ret
00000000000005d8 <printint>:
static void
printint(int fd, int xx, int base, int sgn)
{
5d8: 7139 addi sp,sp,-64
5da: fc06 sd ra,56(sp)
5dc: f822 sd s0,48(sp)
5de: f426 sd s1,40(sp)
5e0: f04a sd s2,32(sp)
5e2: ec4e sd s3,24(sp)
5e4: 0080 addi s0,sp,64
5e6: 84aa mv s1,a0
char buf[16];
int i, neg;
uint x;
neg = 0;
if(sgn && xx < 0){
5e8: c299 beqz a3,5ee <printint+0x16>
5ea: 0805c963 bltz a1,67c <printint+0xa4>
neg = 1;
x = -xx;
} else {
x = xx;
5ee: 2581 sext.w a1,a1
neg = 0;
5f0: 4881 li a7,0
5f2: fc040693 addi a3,s0,-64
}
i = 0;
5f6: 4701 li a4,0
do{
buf[i++] = digits[x % base];
5f8: 2601 sext.w a2,a2
5fa: 00000517 auipc a0,0x0
5fe: 5ae50513 addi a0,a0,1454 # ba8 <digits>
602: 883a mv a6,a4
604: 2705 addiw a4,a4,1
606: 02c5f7bb remuw a5,a1,a2
60a: 1782 slli a5,a5,0x20
60c: 9381 srli a5,a5,0x20
60e: 97aa add a5,a5,a0
610: 0007c783 lbu a5,0(a5)
614: 00f68023 sb a5,0(a3)
}while((x /= base) != 0);
618: 0005879b sext.w a5,a1
61c: 02c5d5bb divuw a1,a1,a2
620: 0685 addi a3,a3,1
622: fec7f0e3 bgeu a5,a2,602 <printint+0x2a>
if(neg)
626: 00088c63 beqz a7,63e <printint+0x66>
buf[i++] = '-';
62a: fd070793 addi a5,a4,-48
62e: 00878733 add a4,a5,s0
632: 02d00793 li a5,45
636: fef70823 sb a5,-16(a4)
63a: 0028071b addiw a4,a6,2
while(--i >= 0)
63e: 02e05863 blez a4,66e <printint+0x96>
642: fc040793 addi a5,s0,-64
646: 00e78933 add s2,a5,a4
64a: fff78993 addi s3,a5,-1
64e: 99ba add s3,s3,a4
650: 377d addiw a4,a4,-1
652: 1702 slli a4,a4,0x20
654: 9301 srli a4,a4,0x20
656: 40e989b3 sub s3,s3,a4
putc(fd, buf[i]);
65a: fff94583 lbu a1,-1(s2)
65e: 8526 mv a0,s1
660: 00000097 auipc ra,0x0
664: f56080e7 jalr -170(ra) # 5b6 <putc>
while(--i >= 0)
668: 197d addi s2,s2,-1
66a: ff3918e3 bne s2,s3,65a <printint+0x82>
}
66e: 70e2 ld ra,56(sp)
670: 7442 ld s0,48(sp)
672: 74a2 ld s1,40(sp)
674: 7902 ld s2,32(sp)
676: 69e2 ld s3,24(sp)
678: 6121 addi sp,sp,64
67a: 8082 ret
x = -xx;
67c: 40b005bb negw a1,a1
neg = 1;
680: 4885 li a7,1
x = -xx;
682: bf85 j 5f2 <printint+0x1a>
0000000000000684 <vprintf>:
}
// Print to the given fd. Only understands %d, %x, %p, %s.
void
vprintf(int fd, const char *fmt, va_list ap)
{
684: 7119 addi sp,sp,-128
686: fc86 sd ra,120(sp)
688: f8a2 sd s0,112(sp)
68a: f4a6 sd s1,104(sp)
68c: f0ca sd s2,96(sp)
68e: ecce sd s3,88(sp)
690: e8d2 sd s4,80(sp)
692: e4d6 sd s5,72(sp)
694: e0da sd s6,64(sp)
696: fc5e sd s7,56(sp)
698: f862 sd s8,48(sp)
69a: f466 sd s9,40(sp)
69c: f06a sd s10,32(sp)
69e: ec6e sd s11,24(sp)
6a0: 0100 addi s0,sp,128
char *s;
int c, i, state;
state = 0;
for(i = 0; fmt[i]; i++){
6a2: 0005c903 lbu s2,0(a1)
6a6: 18090f63 beqz s2,844 <vprintf+0x1c0>
6aa: 8aaa mv s5,a0
6ac: 8b32 mv s6,a2
6ae: 00158493 addi s1,a1,1
state = 0;
6b2: 4981 li s3,0
if(c == '%'){
state = '%';
} else {
putc(fd, c);
}
} else if(state == '%'){
6b4: 02500a13 li s4,37
6b8: 4c55 li s8,21
6ba: 00000c97 auipc s9,0x0
6be: 496c8c93 addi s9,s9,1174 # b50 <malloc+0x208>
printptr(fd, va_arg(ap, uint64));
} else if(c == 's'){
s = va_arg(ap, char*);
if(s == 0)
s = "(null)";
while(*s != 0){
6c2: 02800d93 li s11,40
putc(fd, 'x');
6c6: 4d41 li s10,16
putc(fd, digits[x >> (sizeof(uint64) * 8 - 4)]);
6c8: 00000b97 auipc s7,0x0
6cc: 4e0b8b93 addi s7,s7,1248 # ba8 <digits>
6d0: a839 j 6ee <vprintf+0x6a>
putc(fd, c);
6d2: 85ca mv a1,s2
6d4: 8556 mv a0,s5
6d6: 00000097 auipc ra,0x0
6da: ee0080e7 jalr -288(ra) # 5b6 <putc>
6de: a019 j 6e4 <vprintf+0x60>
} else if(state == '%'){
6e0: 01498d63 beq s3,s4,6fa <vprintf+0x76>
for(i = 0; fmt[i]; i++){
6e4: 0485 addi s1,s1,1
6e6: fff4c903 lbu s2,-1(s1)
6ea: 14090d63 beqz s2,844 <vprintf+0x1c0>
if(state == 0){
6ee: fe0999e3 bnez s3,6e0 <vprintf+0x5c>
if(c == '%'){
6f2: ff4910e3 bne s2,s4,6d2 <vprintf+0x4e>
state = '%';
6f6: 89d2 mv s3,s4
6f8: b7f5 j 6e4 <vprintf+0x60>
if(c == 'd'){
6fa: 11490c63 beq s2,s4,812 <vprintf+0x18e>
6fe: f9d9079b addiw a5,s2,-99
702: 0ff7f793 zext.b a5,a5
706: 10fc6e63 bltu s8,a5,822 <vprintf+0x19e>
70a: f9d9079b addiw a5,s2,-99
70e: 0ff7f713 zext.b a4,a5
712: 10ec6863 bltu s8,a4,822 <vprintf+0x19e>
716: 00271793 slli a5,a4,0x2
71a: 97e6 add a5,a5,s9
71c: 439c lw a5,0(a5)
71e: 97e6 add a5,a5,s9
720: 8782 jr a5
printint(fd, va_arg(ap, int), 10, 1);
722: 008b0913 addi s2,s6,8
726: 4685 li a3,1
728: 4629 li a2,10
72a: 000b2583 lw a1,0(s6)
72e: 8556 mv a0,s5
730: 00000097 auipc ra,0x0
734: ea8080e7 jalr -344(ra) # 5d8 <printint>
738: 8b4a mv s6,s2
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
putc(fd, c);
}
state = 0;
73a: 4981 li s3,0
73c: b765 j 6e4 <vprintf+0x60>
printint(fd, va_arg(ap, uint64), 10, 0);
73e: 008b0913 addi s2,s6,8
742: 4681 li a3,0
744: 4629 li a2,10
746: 000b2583 lw a1,0(s6)
74a: 8556 mv a0,s5
74c: 00000097 auipc ra,0x0
750: e8c080e7 jalr -372(ra) # 5d8 <printint>
754: 8b4a mv s6,s2
state = 0;
756: 4981 li s3,0
758: b771 j 6e4 <vprintf+0x60>
printint(fd, va_arg(ap, int), 16, 0);
75a: 008b0913 addi s2,s6,8
75e: 4681 li a3,0
760: 866a mv a2,s10
762: 000b2583 lw a1,0(s6)
766: 8556 mv a0,s5
768: 00000097 auipc ra,0x0
76c: e70080e7 jalr -400(ra) # 5d8 <printint>
770: 8b4a mv s6,s2
state = 0;
772: 4981 li s3,0
774: bf85 j 6e4 <vprintf+0x60>
printptr(fd, va_arg(ap, uint64));
776: 008b0793 addi a5,s6,8
77a: f8f43423 sd a5,-120(s0)
77e: 000b3983 ld s3,0(s6)
putc(fd, '0');
782: 03000593 li a1,48
786: 8556 mv a0,s5
788: 00000097 auipc ra,0x0
78c: e2e080e7 jalr -466(ra) # 5b6 <putc>
putc(fd, 'x');
790: 07800593 li a1,120
794: 8556 mv a0,s5
796: 00000097 auipc ra,0x0
79a: e20080e7 jalr -480(ra) # 5b6 <putc>
79e: 896a mv s2,s10
putc(fd, digits[x >> (sizeof(uint64) * 8 - 4)]);
7a0: 03c9d793 srli a5,s3,0x3c
7a4: 97de add a5,a5,s7
7a6: 0007c583 lbu a1,0(a5)
7aa: 8556 mv a0,s5
7ac: 00000097 auipc ra,0x0
7b0: e0a080e7 jalr -502(ra) # 5b6 <putc>
for (i = 0; i < (sizeof(uint64) * 2); i++, x <<= 4)
7b4: 0992 slli s3,s3,0x4
7b6: 397d addiw s2,s2,-1
7b8: fe0914e3 bnez s2,7a0 <vprintf+0x11c>
printptr(fd, va_arg(ap, uint64));
7bc: f8843b03 ld s6,-120(s0)
state = 0;
7c0: 4981 li s3,0
7c2: b70d j 6e4 <vprintf+0x60>
s = va_arg(ap, char*);
7c4: 008b0913 addi s2,s6,8
7c8: 000b3983 ld s3,0(s6)
if(s == 0)
7cc: 02098163 beqz s3,7ee <vprintf+0x16a>
while(*s != 0){
7d0: 0009c583 lbu a1,0(s3)
7d4: c5ad beqz a1,83e <vprintf+0x1ba>
putc(fd, *s);
7d6: 8556 mv a0,s5
7d8: 00000097 auipc ra,0x0
7dc: dde080e7 jalr -546(ra) # 5b6 <putc>
s++;
7e0: 0985 addi s3,s3,1
while(*s != 0){
7e2: 0009c583 lbu a1,0(s3)
7e6: f9e5 bnez a1,7d6 <vprintf+0x152>
s = va_arg(ap, char*);
7e8: 8b4a mv s6,s2
state = 0;
7ea: 4981 li s3,0
7ec: bde5 j 6e4 <vprintf+0x60>
s = "(null)";
7ee: 00000997 auipc s3,0x0
7f2: 35a98993 addi s3,s3,858 # b48 <malloc+0x200>
while(*s != 0){
7f6: 85ee mv a1,s11
7f8: bff9 j 7d6 <vprintf+0x152>
putc(fd, va_arg(ap, uint));
7fa: 008b0913 addi s2,s6,8
7fe: 000b4583 lbu a1,0(s6)
802: 8556 mv a0,s5
804: 00000097 auipc ra,0x0
808: db2080e7 jalr -590(ra) # 5b6 <putc>
80c: 8b4a mv s6,s2
state = 0;
80e: 4981 li s3,0
810: bdd1 j 6e4 <vprintf+0x60>
putc(fd, c);
812: 85d2 mv a1,s4
814: 8556 mv a0,s5
816: 00000097 auipc ra,0x0
81a: da0080e7 jalr -608(ra) # 5b6 <putc>
state = 0;
81e: 4981 li s3,0
820: b5d1 j 6e4 <vprintf+0x60>
putc(fd, '%');
822: 85d2 mv a1,s4
824: 8556 mv a0,s5
826: 00000097 auipc ra,0x0
82a: d90080e7 jalr -624(ra) # 5b6 <putc>
putc(fd, c);
82e: 85ca mv a1,s2
830: 8556 mv a0,s5
832: 00000097 auipc ra,0x0
836: d84080e7 jalr -636(ra) # 5b6 <putc>
state = 0;
83a: 4981 li s3,0
83c: b565 j 6e4 <vprintf+0x60>
s = va_arg(ap, char*);
83e: 8b4a mv s6,s2
state = 0;
840: 4981 li s3,0
842: b54d j 6e4 <vprintf+0x60>
}
}
}
844: 70e6 ld ra,120(sp)
846: 7446 ld s0,112(sp)
848: 74a6 ld s1,104(sp)
84a: 7906 ld s2,96(sp)
84c: 69e6 ld s3,88(sp)
84e: 6a46 ld s4,80(sp)
850: 6aa6 ld s5,72(sp)
852: 6b06 ld s6,64(sp)
854: 7be2 ld s7,56(sp)
856: 7c42 ld s8,48(sp)
858: 7ca2 ld s9,40(sp)
85a: 7d02 ld s10,32(sp)
85c: 6de2 ld s11,24(sp)
85e: 6109 addi sp,sp,128
860: 8082 ret
0000000000000862 <fprintf>:
void
fprintf(int fd, const char *fmt, ...)
{
862: 715d addi sp,sp,-80
864: ec06 sd ra,24(sp)
866: e822 sd s0,16(sp)
868: 1000 addi s0,sp,32
86a: e010 sd a2,0(s0)
86c: e414 sd a3,8(s0)
86e: e818 sd a4,16(s0)
870: ec1c sd a5,24(s0)
872: 03043023 sd a6,32(s0)
876: 03143423 sd a7,40(s0)
va_list ap;
va_start(ap, fmt);
87a: fe843423 sd s0,-24(s0)
vprintf(fd, fmt, ap);
87e: 8622 mv a2,s0
880: 00000097 auipc ra,0x0
884: e04080e7 jalr -508(ra) # 684 <vprintf>
}
888: 60e2 ld ra,24(sp)
88a: 6442 ld s0,16(sp)
88c: 6161 addi sp,sp,80
88e: 8082 ret
0000000000000890 <printf>:
void
printf(const char *fmt, ...)
{
890: 711d addi sp,sp,-96
892: ec06 sd ra,24(sp)
894: e822 sd s0,16(sp)
896: 1000 addi s0,sp,32
898: e40c sd a1,8(s0)
89a: e810 sd a2,16(s0)
89c: ec14 sd a3,24(s0)
89e: f018 sd a4,32(s0)
8a0: f41c sd a5,40(s0)
8a2: 03043823 sd a6,48(s0)
8a6: 03143c23 sd a7,56(s0)
va_list ap;
va_start(ap, fmt);
8aa: 00840613 addi a2,s0,8
8ae: fec43423 sd a2,-24(s0)
vprintf(1, fmt, ap);
8b2: 85aa mv a1,a0
8b4: 4505 li a0,1
8b6: 00000097 auipc ra,0x0
8ba: dce080e7 jalr -562(ra) # 684 <vprintf>
}
8be: 60e2 ld ra,24(sp)
8c0: 6442 ld s0,16(sp)
8c2: 6125 addi sp,sp,96
8c4: 8082 ret
00000000000008c6 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
8c6: 1141 addi sp,sp,-16
8c8: e422 sd s0,8(sp)
8ca: 0800 addi s0,sp,16
Header *bp, *p;
bp = (Header*)ap - 1;
8cc: ff050693 addi a3,a0,-16
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
8d0: 00000797 auipc a5,0x0
8d4: 2f87b783 ld a5,760(a5) # bc8 <freep>
8d8: a02d j 902 <free+0x3c>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
break;
if(bp + bp->s.size == p->s.ptr){
bp->s.size += p->s.ptr->s.size;
8da: 4618 lw a4,8(a2)
8dc: 9f2d addw a4,a4,a1
8de: fee52c23 sw a4,-8(a0)
bp->s.ptr = p->s.ptr->s.ptr;
8e2: 6398 ld a4,0(a5)
8e4: 6310 ld a2,0(a4)
8e6: a83d j 924 <free+0x5e>
} else
bp->s.ptr = p->s.ptr;
if(p + p->s.size == bp){
p->s.size += bp->s.size;
8e8: ff852703 lw a4,-8(a0)
8ec: 9f31 addw a4,a4,a2
8ee: c798 sw a4,8(a5)
p->s.ptr = bp->s.ptr;
8f0: ff053683 ld a3,-16(a0)
8f4: a091 j 938 <free+0x72>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
8f6: 6398 ld a4,0(a5)
8f8: 00e7e463 bltu a5,a4,900 <free+0x3a>
8fc: 00e6ea63 bltu a3,a4,910 <free+0x4a>
{
900: 87ba mv a5,a4
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
902: fed7fae3 bgeu a5,a3,8f6 <free+0x30>
906: 6398 ld a4,0(a5)
908: 00e6e463 bltu a3,a4,910 <free+0x4a>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
90c: fee7eae3 bltu a5,a4,900 <free+0x3a>
if(bp + bp->s.size == p->s.ptr){
910: ff852583 lw a1,-8(a0)
914: 6390 ld a2,0(a5)
916: 02059813 slli a6,a1,0x20
91a: 01c85713 srli a4,a6,0x1c
91e: 9736 add a4,a4,a3
920: fae60de3 beq a2,a4,8da <free+0x14>
bp->s.ptr = p->s.ptr->s.ptr;
924: fec53823 sd a2,-16(a0)
if(p + p->s.size == bp){
928: 4790 lw a2,8(a5)
92a: 02061593 slli a1,a2,0x20
92e: 01c5d713 srli a4,a1,0x1c
932: 973e add a4,a4,a5
934: fae68ae3 beq a3,a4,8e8 <free+0x22>
p->s.ptr = bp->s.ptr;
938: e394 sd a3,0(a5)
} else
p->s.ptr = bp;
freep = p;
93a: 00000717 auipc a4,0x0
93e: 28f73723 sd a5,654(a4) # bc8 <freep>
}
942: 6422 ld s0,8(sp)
944: 0141 addi sp,sp,16
946: 8082 ret
0000000000000948 <malloc>:
return freep;
}
void*
malloc(uint nbytes)
{
948: 7139 addi sp,sp,-64
94a: fc06 sd ra,56(sp)
94c: f822 sd s0,48(sp)
94e: f426 sd s1,40(sp)
950: f04a sd s2,32(sp)
952: ec4e sd s3,24(sp)
954: e852 sd s4,16(sp)
956: e456 sd s5,8(sp)
958: e05a sd s6,0(sp)
95a: 0080 addi s0,sp,64
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
95c: 02051493 slli s1,a0,0x20
960: 9081 srli s1,s1,0x20
962: 04bd addi s1,s1,15
964: 8091 srli s1,s1,0x4
966: 0014899b addiw s3,s1,1
96a: 0485 addi s1,s1,1
if((prevp = freep) == 0){
96c: 00000517 auipc a0,0x0
970: 25c53503 ld a0,604(a0) # bc8 <freep>
974: c515 beqz a0,9a0 <malloc+0x58>
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
976: 611c ld a5,0(a0)
if(p->s.size >= nunits){
978: 4798 lw a4,8(a5)
97a: 02977f63 bgeu a4,s1,9b8 <malloc+0x70>
97e: 8a4e mv s4,s3
980: 0009871b sext.w a4,s3
984: 6685 lui a3,0x1
986: 00d77363 bgeu a4,a3,98c <malloc+0x44>
98a: 6a05 lui s4,0x1
98c: 000a0b1b sext.w s6,s4
p = sbrk(nu * sizeof(Header));
990: 004a1a1b slliw s4,s4,0x4
p->s.size = nunits;
}
freep = prevp;
return (void*)(p + 1);
}
if(p == freep)
994: 00000917 auipc s2,0x0
998: 23490913 addi s2,s2,564 # bc8 <freep>
if(p == (char*)-1)
99c: 5afd li s5,-1
99e: a895 j a12 <malloc+0xca>
base.s.ptr = freep = prevp = &base;
9a0: 00000797 auipc a5,0x0
9a4: 23078793 addi a5,a5,560 # bd0 <base>
9a8: 00000717 auipc a4,0x0
9ac: 22f73023 sd a5,544(a4) # bc8 <freep>
9b0: e39c sd a5,0(a5)
base.s.size = 0;
9b2: 0007a423 sw zero,8(a5)
if(p->s.size >= nunits){
9b6: b7e1 j 97e <malloc+0x36>
if(p->s.size == nunits)
9b8: 02e48c63 beq s1,a4,9f0 <malloc+0xa8>
p->s.size -= nunits;
9bc: 4137073b subw a4,a4,s3
9c0: c798 sw a4,8(a5)
p += p->s.size;
9c2: 02071693 slli a3,a4,0x20
9c6: 01c6d713 srli a4,a3,0x1c
9ca: 97ba add a5,a5,a4
p->s.size = nunits;
9cc: 0137a423 sw s3,8(a5)
freep = prevp;
9d0: 00000717 auipc a4,0x0
9d4: 1ea73c23 sd a0,504(a4) # bc8 <freep>
return (void*)(p + 1);
9d8: 01078513 addi a0,a5,16
if((p = morecore(nunits)) == 0)
return 0;
}
}
9dc: 70e2 ld ra,56(sp)
9de: 7442 ld s0,48(sp)
9e0: 74a2 ld s1,40(sp)
9e2: 7902 ld s2,32(sp)
9e4: 69e2 ld s3,24(sp)
9e6: 6a42 ld s4,16(sp)
9e8: 6aa2 ld s5,8(sp)
9ea: 6b02 ld s6,0(sp)
9ec: 6121 addi sp,sp,64
9ee: 8082 ret
prevp->s.ptr = p->s.ptr;
9f0: 6398 ld a4,0(a5)
9f2: e118 sd a4,0(a0)
9f4: bff1 j 9d0 <malloc+0x88>
hp->s.size = nu;
9f6: 01652423 sw s6,8(a0)
free((void*)(hp + 1));
9fa: 0541 addi a0,a0,16
9fc: 00000097 auipc ra,0x0
a00: eca080e7 jalr -310(ra) # 8c6 <free>
return freep;
a04: 00093503 ld a0,0(s2)
if((p = morecore(nunits)) == 0)
a08: d971 beqz a0,9dc <malloc+0x94>
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
a0a: 611c ld a5,0(a0)
if(p->s.size >= nunits){
a0c: 4798 lw a4,8(a5)
a0e: fa9775e3 bgeu a4,s1,9b8 <malloc+0x70>
if(p == freep)
a12: 00093703 ld a4,0(s2)
a16: 853e mv a0,a5
a18: fef719e3 bne a4,a5,a0a <malloc+0xc2>
p = sbrk(nu * sizeof(Header));
a1c: 8552 mv a0,s4
a1e: 00000097 auipc ra,0x0
a22: b58080e7 jalr -1192(ra) # 576 <sbrk>
if(p == (char*)-1)
a26: fd5518e3 bne a0,s5,9f6 <malloc+0xae>
return 0;
a2a: 4501 li a0,0
a2c: bf45 j 9dc <malloc+0x94>
| 29.939845 | 100 | 0.467604 |
c7151328dc5118bf489eeff7693a7e4ba3dea8a1 | 535 | asm | Assembly | oeis/316/A316258.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/316/A316258.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/316/A316258.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A316258: Decimal expansion of the least x such that 1/x + 1/(x+3) + 1/(x+4) = 3 (negated).
; Submitted by Jon Maiga
; 3,7,8,0,0,5,1,2,5,2,3,0,2,2,3,2,3,8,4,1,9,3,1,2,4,0,8,5,8,7,3,4,6,4,2,5,3,1,1,3,0,5,2,5,4,7,2,9,5,4,7,4,6,7,6,3,4,5,2,1,1,8,6,1,9,6,4,2,2,2,8,7,3,4,9,9,6,7,0,3,0,7,5,2,9,5
mov $3,$0
mul $3,3
mov $5,$0
lpb $3
add $6,$5
add $1,$6
add $1,$5
add $2,$1
mul $1,2
sub $3,1
mul $5,3
add $5,$1
mov $6,$2
lpe
mov $4,10
pow $4,$0
div $2,$4
cmp $7,0
add $2,$7
div $1,$2
trn $1,3
mov $0,$1
add $0,3
mod $0,10
| 18.448276 | 173 | 0.527103 |
6692fc4e13092a8e664a2fe50ddc71d27b2720bc | 317 | asm | Assembly | GAS/Gas/GASC/GInclude.asm | Gabidal/GAS_Pack | 02f13531849bc5c03721a4319a9e315a60ba7707 | [
"MIT"
] | 1 | 2021-09-21T13:07:37.000Z | 2021-09-21T13:07:37.000Z | GAS/Gas/GASC/GInclude.asm | Gabidal/GAS_Pack | 02f13531849bc5c03721a4319a9e315a60ba7707 | [
"MIT"
] | null | null | null | GAS/Gas/GASC/GInclude.asm | Gabidal/GAS_Pack | 02f13531849bc5c03721a4319a9e315a60ba7707 | [
"MIT"
] | null | null | null | %include "UtilsLib/GasRoot.asm"
tryCatch Include, jmp
%include "Lexer/Lexer.asm"
%include "Parser/Parser.asm"
%include "UtilsLib/Argon.asm"
%include "UtilsLib/GasMath.asm"
%include "UtilsLib/Helium.asm"
%include "UtilsLib/Hydrogen.asm"
%include "DB/DB.asm"
%include "UtilsLib/Errors.asm"
endInclude: | 21.133333 | 33 | 0.728707 |
231e35960fa9738cca439e490af5f6357cb6fb0a | 297 | asm | Assembly | oeis/040/A040380.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/040/A040380.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/040/A040380.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A040380: Continued fraction for sqrt(401).
; Submitted by Christian Krause
; 20,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40
min $0,1
add $0,1
mul $0,20
| 37.125 | 190 | 0.680135 |
3485985c8574bb304e7b8f0424537361b0e344e2 | 1,552 | asm | Assembly | Appl/Art/Decks/GeoDeck/CGASpade4.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Appl/Art/Decks/GeoDeck/CGASpade4.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Appl/Art/Decks/GeoDeck/CGASpade4.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | CGASpade4 label byte
word C_BLACK
Bitmap <67,41,BMC_PACKBITS,BMF_MONO>
db 0xf8, 0x00
db 0xf8, 0x00
db 0x08, 0x03, 0x80, 0x02, 0x00, 0x00, 0x08, 0x00,
0x10, 0x00
db 0x08, 0x07, 0x80, 0x0f, 0x80, 0x00, 0x3e, 0x00,
0x7c, 0x00
db 0x08, 0x0d, 0x80, 0x3f, 0xe0, 0x00, 0xff, 0x80,
0xfe, 0x00
db 0x08, 0x19, 0x80, 0xff, 0xf8, 0x03, 0xff, 0xe1,
0xff, 0x00
db 0x08, 0x3f, 0xe1, 0xff, 0xfc, 0x07, 0xff, 0xf1,
0xff, 0x00
db 0x08, 0x01, 0x81, 0xff, 0xfc, 0x07, 0xff, 0xf0,
0xd6, 0x00
db 0x08, 0x07, 0xe0, 0xf7, 0x78, 0x03, 0xdd, 0xe0,
0x38, 0x00
db 0x05, 0x00, 0x00, 0x0f, 0x80, 0x00, 0x3e, 0xfe,
0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0x05, 0x00, 0x00, 0x0f, 0x80, 0x00, 0x3e, 0xfe,
0x00
db 0x08, 0x03, 0x80, 0xf7, 0x78, 0x03, 0xdd, 0xe0,
0xfc, 0x00
db 0x08, 0x0d, 0x61, 0xff, 0xfc, 0x07, 0xff, 0xf0,
0x30, 0x00
db 0x08, 0x1f, 0xf1, 0xff, 0xfc, 0x07, 0xff, 0xf0,
0xff, 0x80
db 0x08, 0x1f, 0xf0, 0xff, 0xf8, 0x03, 0xff, 0xe0,
0x33, 0x00
db 0x08, 0x0f, 0xe0, 0x3f, 0xe0, 0x00, 0xff, 0x80,
0x36, 0x00
db 0x08, 0x07, 0xc0, 0x0f, 0x80, 0x00, 0x3e, 0x00,
0x3c, 0x00
db 0x08, 0x01, 0x00, 0x02, 0x00, 0x00, 0x08, 0x00,
0x38, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
| 25.442623 | 53 | 0.626933 |
64bbff8f756d50e4634b589be29ca0eb65285ead | 147 | asm | Assembly | programs/oeis/084/A084537.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/084/A084537.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/084/A084537.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A084537: Duplicate of A002061.
; 1,1,3,7,13,21,31,43,57,73,91,111,133,157,183,211,241,273,307,343,381,421
mov $1,$0
sub $1,1
mul $1,$0
add $1,1
| 18.375 | 74 | 0.653061 |
f185976b4a4c25b6e153650e364e7f2f129d6a75 | 667 | asm | Assembly | oeis/336/A336212.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/336/A336212.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/336/A336212.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A336212: a(n) = Sum_{k=0..n} 3^k * binomial(n,k)^n.
; Submitted by Christian Krause
; 1,4,22,352,19426,3862744,2764634356,7403121210496,73087416841865890,2751096296949421766824,387442256655054793494004132,210421903024207931092658380560256,431805731803048897945138363105712865124,3443300668674111298036287560913860498279204224,104477992081136136892170367655417013526628633390688232,12385881573850353473876792662795541670328137574965199067402752,5616590744945716843826942142730090320274646668908262888444738848020290
mov $3,$0
lpb $0
lpb $3
mov $2,$0
bin $2,$3
pow $2,$0
add $1,$2
mul $1,3
sub $3,1
lpe
div $0,59
lpe
mov $0,$1
add $0,1
| 35.105263 | 430 | 0.797601 |
dd3934ba5e4f4133b3b80f08959e5c704adf5822 | 617 | asm | Assembly | programs/oeis/175/A175776.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/175/A175776.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/175/A175776.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A175776: Partial sums of floor(n^2/15).
; 0,0,0,0,1,2,4,7,11,16,22,30,39,50,63,78,95,114,135,159,185,214,246,281,319,360,405,453,505,561,621,685,753,825,902,983,1069,1160,1256,1357,1463,1575,1692,1815,1944,2079,2220,2367,2520,2680,2846,3019,3199,3386,3580,3781,3990,4206,4430,4662,4902,5150,5406,5670,5943,6224,6514,6813,7121,7438,7764,8100,8445,8800,9165,9540,9925,10320,10725,11141,11567,12004,12452,12911,13381,13862,14355,14859,15375,15903,16443,16995,17559,18135,18724,19325,19939,20566,21206,21859
mov $3,$0
add $3,1
lpb $3
mov $0,$2
sub $3,1
sub $0,$3
pow $0,2
div $0,15
add $1,$0
lpe
mov $0,$1
| 41.133333 | 463 | 0.719611 |
80414a622d00355544858a7660532b0dc7d36469 | 310 | asm | Assembly | programs/oeis/021/A021209.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/021/A021209.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/021/A021209.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A021209: Decimal expansion of 1/205.
; 0,0,4,8,7,8,0,4,8,7,8,0,4,8,7,8,0,4,8,7,8,0,4,8,7,8,0,4,8,7,8,0,4,8,7,8,0,4,8,7,8,0,4,8,7,8,0,4,8,7,8,0,4,8,7,8,0,4,8,7,8,0,4,8,7,8,0,4,8,7,8,0,4,8,7,8,0,4,8,7,8,0,4,8,7,8,0,4,8,7,8,0,4,8,7,8,0,4,8
add $0,1
mov $1,10
pow $1,$0
mul $1,8
div $1,1640
mod $1,10
mov $0,$1
| 28.181818 | 199 | 0.541935 |
009df64fd5c76dec50879068328072545b513b34 | 232 | asm | Assembly | programs/oeis/140/A140899.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/140/A140899.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/140/A140899.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A140899: A140724(n+4). Period 10: repeat 7, 9, 5, 1, 3, 3, 1, 5, 9, 7.
; 7,9,5,1,3,3,1,5,9,7,7,9,5,1,3,3,1,5,9,7,7,9,5,1,3,3,1,5,9,7,7,9,5,1,3,3,1,5,9,7
add $0,4
mov $1,$0
gcd $0,38
pow $0,2
sub $1,1
mul $0,$1
add $0,5
mod $0,10
| 19.333333 | 81 | 0.525862 |
982077dd7439993372db5e438130073129dab1dd | 52 | asm | Assembly | tests/incbin/5.asm | NullMember/customasm | 6e34d6432583a41278e6b3596f1817ae82149531 | [
"Apache-2.0"
] | null | null | null | tests/incbin/5.asm | NullMember/customasm | 6e34d6432583a41278e6b3596f1817ae82149531 | [
"Apache-2.0"
] | null | null | null | tests/incbin/5.asm | NullMember/customasm | 6e34d6432583a41278e6b3596f1817ae82149531 | [
"Apache-2.0"
] | null | null | null | #d x
#d incbin(x) ; error: not found
x = "data1.bin" | 17.333333 | 31 | 0.615385 |
2944384dbfa8ff6b86dcbf26568ee6938d9e4320 | 643 | asm | Assembly | oeis/135/A135164.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/135/A135164.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/135/A135164.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A135164: a(n) = 7^n - 5^n + 3^n + 2^n.
; Submitted by Jon Maiga
; 2,7,37,253,1873,13957,102817,747733,5380993,38420677,272769697,1928677813,13597682113,95669909797,672124356577,4717058313493,33080385791233,231867703805317,1624599288327457,11379822861830773,79696902353804353,558069037387531237,3907436894177226337,27356826505277405653,191521627018237337473,1340770597287410111557,9385990224070302477217,65704911790563088014133,459949283664632402726593,3219719491366887545370277,22538408968323534815184097,157770725422590404766232213,1104404391181408283826227713
mov $3,$0
seq $0,74529 ; a(n) = 2^n + 3^n + 7^n.
mov $2,5
pow $2,$3
sub $0,$2
| 64.3 | 497 | 0.833593 |
8e6f915b61e84cee5d8f4e31d8fc6bd29451c688 | 312 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/am9511/c/sccz80/cam32_sccz80_sqr.asm | ahjelm/z88dk | c4de367f39a76b41f6390ceeab77737e148178fa | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/math/float/am9511/c/sccz80/cam32_sccz80_sqr.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/math/float/am9511/c/sccz80/cam32_sccz80_sqr.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_fp_am9511
PUBLIC cam32_sccz80_sqr
EXTERN asm_am9511_sqr_fastcall
; square (^2) sccz80 floats
;
; enter : stack = ret, DEHL = signed IEEE_float
;
; exit : DEHL = sccz80_float(number^2)
;
; uses : af, bc, de, hl, af'
defc cam32_sccz80_sqr = asm_am9511_sqr_fastcall
| 18.352941 | 51 | 0.666667 |
cf67873a5af4c014cd49854a708e2743ab4931ed | 3,887 | asm | Assembly | 配套代码/SQLite_L17/SQLite_17/1.asm | zmrbak/SQLiteReverse | 6eb5f820fa76610e66185fec04d95c6a990a00d8 | [
"MIT"
] | 84 | 2019-12-27T01:07:38.000Z | 2022-02-17T13:13:07.000Z | 配套代码/SQLite_L17/SQLite_17/1.asm | zmrbak/SQLiteReverse | 6eb5f820fa76610e66185fec04d95c6a990a00d8 | [
"MIT"
] | null | null | null | 配套代码/SQLite_L17/SQLite_17/1.asm | zmrbak/SQLiteReverse | 6eb5f820fa76610e66185fec04d95c6a990a00d8 | [
"MIT"
] | 56 | 2019-12-27T15:12:17.000Z | 2022-03-23T04:51:28.000Z | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.24.28117.0
TITLE C:\Users\libit\source\repos\SQLite_17\SQLite_17\SQLite_17.cpp
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
PUBLIC ?f___@@YAHHHHH@Z ; f___
PUBLIC ?f___cdecl@@YAHHHHH@Z ; f___cdecl
PUBLIC ?f__stdcall@@YGHHHHH@Z ; f__stdcall
PUBLIC ?f__fastcall@@YIHHHHH@Z ; f__fastcall
PUBLIC ?f__vectorcall@@YQHHHHH@Z ; f__vectorcall
PUBLIC ?f__naked@@YAHHHHH@Z ; f__naked
PUBLIC _main
; Function compile flags: /Odtp
_TEXT SEGMENT
_main PROC
; File C:\Users\libit\source\repos\SQLite_17\SQLite_17\SQLite_17.cpp
; Line 44
push ebp
mov ebp, esp
; Line 46
push 4
push 3
push 2
push 1
call ?f___@@YAHHHHH@Z ; f___
add esp, 16 ; 00000010H
; Line 47
push 4
push 3
push 2
push 1
call ?f___cdecl@@YAHHHHH@Z ; f___cdecl
add esp, 16 ; 00000010H
; Line 48
push 4
push 3
push 2
push 1
call ?f__stdcall@@YGHHHHH@Z ; f__stdcall
; Line 49
push 4
push 3
mov edx, 2
mov ecx, 1
call ?f__fastcall@@YIHHHHH@Z ; f__fastcall
; Line 50
push 4
push 3
mov edx, 2
mov ecx, 1
call ?f__vectorcall@@YQHHHHH@Z ; f__vectorcall
; Line 51
push 4
push 3
push 2
push 1
call ?f__naked@@YAHHHHH@Z ; f__naked
add esp, 16 ; 00000010H
; Line 52
xor eax, eax
pop ebp
ret 0
_main ENDP
_TEXT ENDS
; Function compile flags: /Odtp
_TEXT SEGMENT
_a$ = 8 ; size = 4
_b$ = 12 ; size = 4
_c$ = 16 ; size = 4
_d$ = 20 ; size = 4
?f__naked@@YAHHHHH@Z PROC ; f__naked
; File C:\Users\libit\source\repos\SQLite_17\SQLite_17\SQLite_17.cpp
; Line 40
mov eax, 0
?f__naked@@YAHHHHH@Z ENDP ; f__naked
_TEXT ENDS
; Function compile flags: /Odtp
_TEXT SEGMENT
_a$ = -8 ; size = 4
_b$ = -4 ; size = 4
_c$ = 8 ; size = 4
_d$ = 12 ; size = 4
?f__vectorcall@@YQHHHHH@Z PROC ; f__vectorcall
; _a$ = ecx
; _b$ = edx
; File C:\Users\libit\source\repos\SQLite_17\SQLite_17\SQLite_17.cpp
; Line 30
push ebp
mov ebp, esp
sub esp, 8
mov DWORD PTR _b$[ebp], edx
mov DWORD PTR _a$[ebp], ecx
; Line 32
xor eax, eax
; Line 33
mov esp, ebp
pop ebp
ret 8
?f__vectorcall@@YQHHHHH@Z ENDP ; f__vectorcall
_TEXT ENDS
; Function compile flags: /Odtp
_TEXT SEGMENT
_a$ = -8 ; size = 4
_b$ = -4 ; size = 4
_c$ = 8 ; size = 4
_d$ = 12 ; size = 4
?f__fastcall@@YIHHHHH@Z PROC ; f__fastcall
; _a$ = ecx
; _b$ = edx
; File C:\Users\libit\source\repos\SQLite_17\SQLite_17\SQLite_17.cpp
; Line 24
push ebp
mov ebp, esp
sub esp, 8
mov DWORD PTR _b$[ebp], edx
mov DWORD PTR _a$[ebp], ecx
; Line 26
xor eax, eax
; Line 27
mov esp, ebp
pop ebp
ret 8
?f__fastcall@@YIHHHHH@Z ENDP ; f__fastcall
_TEXT ENDS
; Function compile flags: /Odtp
_TEXT SEGMENT
_a$ = 8 ; size = 4
_b$ = 12 ; size = 4
_c$ = 16 ; size = 4
_d$ = 20 ; size = 4
?f__stdcall@@YGHHHHH@Z PROC ; f__stdcall
; File C:\Users\libit\source\repos\SQLite_17\SQLite_17\SQLite_17.cpp
; Line 19
push ebp
mov ebp, esp
; Line 21
xor eax, eax
; Line 22
pop ebp
ret 16 ; 00000010H
?f__stdcall@@YGHHHHH@Z ENDP ; f__stdcall
_TEXT ENDS
; Function compile flags: /Odtp
_TEXT SEGMENT
_a$ = 8 ; size = 4
_b$ = 12 ; size = 4
_c$ = 16 ; size = 4
_d$ = 20 ; size = 4
?f___cdecl@@YAHHHHH@Z PROC ; f___cdecl
; File C:\Users\libit\source\repos\SQLite_17\SQLite_17\SQLite_17.cpp
; Line 13
push ebp
mov ebp, esp
; Line 15
xor eax, eax
; Line 16
pop ebp
ret 0
?f___cdecl@@YAHHHHH@Z ENDP ; f___cdecl
_TEXT ENDS
; Function compile flags: /Odtp
_TEXT SEGMENT
_a$ = 8 ; size = 4
_b$ = 12 ; size = 4
_c$ = 16 ; size = 4
_d$ = 20 ; size = 4
?f___@@YAHHHHH@Z PROC ; f___
; File C:\Users\libit\source\repos\SQLite_17\SQLite_17\SQLite_17.cpp
; Line 6
push ebp
mov ebp, esp
; Line 8
xor eax, eax
; Line 9
pop ebp
ret 0
?f___@@YAHHHHH@Z ENDP ; f___
_TEXT ENDS
END
| 20.897849 | 79 | 0.655261 |
2caf0e2382f29481303f08c0bb234f70d1f3b3ac | 262 | asm | Assembly | libsrc/fcntl/spectrum/zxbasdrv/zx_hardcopy.asm | andydansby/z88dk-mk2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | 1 | 2020-09-15T08:35:49.000Z | 2020-09-15T08:35:49.000Z | libsrc/fcntl/spectrum/zxbasdrv/zx_hardcopy.asm | dex4er/deb-z88dk | 9ee4f23444fa6f6043462332a1bff7ae20a8504b | [
"ClArtistic"
] | null | null | null | libsrc/fcntl/spectrum/zxbasdrv/zx_hardcopy.asm | dex4er/deb-z88dk | 9ee4f23444fa6f6043462332a1bff7ae20a8504b | [
"ClArtistic"
] | null | null | null | ;
; Just enter BASIC at the "Hardcopy" line
;
; Stefano - 12/7/2006
;
; void zx_hardcopy()
;
; $Id: zx_hardcopy.asm,v 1.3 2007/06/28 20:16:20 stefano Exp $
XLIB zx_hardcopy
LIB zx_goto
.zx_hardcopy
ld hl,7800 ; BASIC routine for "hardcopy"
jp zx_goto
| 13.789474 | 62 | 0.683206 |
639e16677d161a71e92386ccb147d38edc2c5475 | 345 | asm | Assembly | programs/oeis/040/A040700.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/040/A040700.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/040/A040700.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A040700: Continued fraction for sqrt(727).
; 26,1,25,1,52,1,25,1,52,1,25,1,52,1,25,1,52,1,25,1,52,1,25,1,52,1,25,1,52,1,25,1,52,1,25,1,52,1,25,1,52,1,25,1,52,1,25,1,52,1,25,1,52,1,25,1,52,1,25,1,52,1,25,1,52,1,25,1,52,1,25,1,52,1,25
gcd $0,262156
mul $0,42
mod $0,13
mov $1,$0
div $1,5
mul $1,21
add $0,$1
mul $0,2
sub $0,6
div $0,2
add $0,1
| 23 | 189 | 0.608696 |
c7426ecadc59c3491658716a364e94f959e58183 | 1,246 | asm | Assembly | onekpaq_cfunc64.asm | LaszloAshin/oneKpaq | 93aaebfd7933a385f4f95d173ee7e03232c9a453 | [
"BSD-2-Clause"
] | null | null | null | onekpaq_cfunc64.asm | LaszloAshin/oneKpaq | 93aaebfd7933a385f4f95d173ee7e03232c9a453 | [
"BSD-2-Clause"
] | null | null | null | onekpaq_cfunc64.asm | LaszloAshin/oneKpaq | 93aaebfd7933a385f4f95d173ee7e03232c9a453 | [
"BSD-2-Clause"
] | null | null | null | ; Copyright (c) Teemu Suutari
bits 64
%ifidn __OUTPUT_FORMAT__, elf64
global onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]_shift
onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]_shift: equ onekpaq_decompressor.shift
global onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]
onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]:
%else
global _onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]_shift
_onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]_shift: equ onekpaq_decompressor.shift
global _onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]
_onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]:
%endif
; cfunc(src, dest) -> rdi=src, rsi=dest
; onekpaq_decomp needs: ebx=src edi=dest
push rbp
push rbx
mov rbx, rdi
mov rdi, rsi
;%define DEBUG_BUILD
%include "onekpaq_decompressor64.asm"
pop rbx
pop rbp
ret
%ifidn __OUTPUT_FORMAT__, elf64
global onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]_end
onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]_end:
%else
global _onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]_end
_onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]_end:
%endif
__SECT__
;; ---------------------------------------------------------------------------
| 26.510638 | 92 | 0.801766 |
8081d9bb70b7b4f0ce4168e387c73015f9eb061e | 12,842 | asm | Assembly | Quickdraw/QuickDraw Source/GrafTypes.asm | Computer-history-Museum/MacPaint | f6b5321ab10a4422a811502252d2a2a00cf7764f | [
"MIT"
] | 2 | 2020-10-06T18:30:23.000Z | 2021-03-31T20:01:46.000Z | Quickdraw/QuickDraw Source/GrafTypes.asm | Computer-history-Museum/MacPaint | f6b5321ab10a4422a811502252d2a2a00cf7764f | [
"MIT"
] | null | null | null | Quickdraw/QuickDraw Source/GrafTypes.asm | Computer-history-Museum/MacPaint | f6b5321ab10a4422a811502252d2a2a00cf7764f | [
"MIT"
] | null | null | null | ;-----------------------------------------------------------------
;
; --> GRAFTYPES.TEXT
;
; QUICKDRAW TYPE DECLARATIONS, USED BY ALL GRAPHICS ROUTINES
;
NIL .EQU 0 ;IMPLEMENTATION VALUE OF NIL
;-----------------------------------------------
;
; QuickDraw VERBS:
;
FRAME .EQU 0
PAINT .EQU 1
ERASE .EQU 2
INVERT .EQU 3
FILL .EQU 4
;-----------------------------------------------
;
; QuickDraw transfer MODES:
;
srcCopy .EQU 0
srcOr .EQU 1
srcXor .EQU 2
srcBic .EQU 3
notSrcCopy .EQU 4
notSrcOr .EQU 5
notSrcXor .EQU 6
notSrcBic .EQU 7
patCopy .EQU 8
patOr .EQU 9
patXor .EQU 10
patBic .EQU 11
notPatCopy .EQU 12
notPatOr .EQU 13
notPatXor .EQU 14
notPatBic .EQU 15
;-----------------------------------------------
;
; QuickDraw Color Separation:
;
normalBit .EQU 0 ;normal screen mapping
inverseBit .EQU 1 ;inverse screen mapping
redBit .EQU 4 ;RGB additive mapping
greenBit .EQU 3 ;for photos from screen
blueBit .EQU 2
cyanBit .EQU 8 ;CMYBk subtractive mapping
magentaBit .EQU 7 ;for ink jet printer
yellowBit .EQU 6
blackBit .EQU 5
blackColor .EQU 33
whiteColor .EQU 30
redColor .EQU 205
greenColor .EQU 341
blueColor .EQU 409
cyanColor .EQU 273
magentaColor .EQU 137
yellowColor .EQU 69
;-----------------------------------------------
;
; OFFSETS WITHIN A POINT:
;
V .EQU 0 ;WORD
H .EQU 2 ;WORD
;-----------------------------------------------
;
; OFFSETS WITHIN A RECT:
;
TOPLEFT .EQU 0 ;POINT
BOTRIGHT .EQU 4 ;POINT
TOP .EQU 0 ;INTEGER
LEFT .EQU 2 ;INTEGER
BOTTOM .EQU 4 ;INTEGER
RIGHT .EQU 6 ;INTEGER
;-----------------------------------------------
;
; OFFSETS WITHIN A BITMAP:
;
BASEADDR .EQU 0 ;LONG
ROWBYTES .EQU 4 ;WORD
BOUNDS .EQU 6 ;RECT
;-----------------------------------------------
;
; OFFSETS WITHIN A CURSOR:
;
DATA .EQU 0 ;16 WORDS
MASK .EQU 32 ;16 WORDS
HOTSPOT .EQU 64 ;POINT
;-----------------------------------------------
;
; OFFSETS WITHIN A POLYGON:
;
POLYSIZE .EQU 0 ;WORD, TOTAL BYTES
POLYBBOX .EQU 2 ;RECT
POLYPOINTS .EQU 10 ;ARRAY[0..0] OF Point
;-----------------------------------------------
;
; OFFSETS WITHIN A REGION:
;
RGNSIZE .EQU 0 ;WORD, TOTAL BYTES
RGNBBOX .EQU 2 ;RECT
RGNDATA .EQU 10 ;START OF RGN DATA
;-----------------------------------------------
;
; OFFSETS WITHIN A PICTURE:
;
PICSIZE .EQU 0 ;WORD, TOTAL BYTES
PICFRAME .EQU 2 ;RECT
PICDATA .EQU 10 ;START OF BYTE CODES
;-----------------------------------------------
;
; OFFSETS WITHIN QDProcs RECORD:
;
textProc .EQU 0 ;PROCPTR
lineProc .EQU textProc+4 ;PROCPTR
rectProc .EQU lineProc+4 ;PROCPTR
rRectProc .EQU rectProc+4 ;PROCPTR
ovalProc .EQU rRectProc+4 ;PROCPTR
arcProc .EQU ovalProc+4 ;PROCPTR
polyProc .EQU arcProc+4 ;PROCPTR
rgnProc .EQU polyProc+4 ;PROCPTR
bitsProc .EQU rgnProc+4 ;PROCPTR
commentProc .EQU bitsProc+4 ;PROCPTR
txMeasProc .EQU commentProc+4 ;PROCPTR
getPicProc .EQU txMeasProc+4 ;PROCPTR
putPicProc .EQU getPicProc+4 ;PROCPTR
;-----------------------------------------------
;
; OFFSETS WITHIN A GRAFPORT:
;
device .EQU 0 ;WORD
portBits .EQU device+2 ;BITMAP
portRect .EQU portBits+14 ;RECT
visRgn .EQU portRect+8 ;RGNPTR
clipRgn .EQU visRgn+4 ;RGNPTR
bkPat .EQU clipRgn+4 ;PATTERN
fillPat .EQU bkPat+8 ;PATTERN
pnLoc .EQU fillPat+8 ;POINT
pnSize .EQU pnLoc+4 ;POINT
pnMode .EQU pnSize+4 ;WORD
pnPat .EQU pnMode+2 ;PATTERN
pnVis .EQU pnPat+8 ;WORD
txFont .EQU pnVis+2 ;WORD
txFace .EQU txFont+2 ;WORD
txMode .EQU txFace+2 ;WORD
txSize .EQU txMode+2 ;WORD
spExtra .EQU txSize+2 ;Fixed Point
fgColor .EQU spExtra+4 ;LONG
bkColor .EQU fgColor+4 ;LONG
colrBit .EQU bkColor+4 ;WORD
patStretch .EQU colrBit+2 ;WORD
picSave .EQU patStretch+2 ;handle
rgnSave .EQU picSave+4 ;handle
polySave .EQU rgnSave+4 ;handle
grafProcs .EQU polySave+4 ;Pointer
PORTREC .EQU grafProcs+4 ;SIZE OF A GRAFPORT
PORTBOUNDS .EQU PORTBITS+BOUNDS
;-----------------------------------------------------
;
; OFFSETS IN A REGION STATE RECORD:
;
RGNPTR .EQU 0 ;LONG
DATAPTR .EQU RGNPTR+4 ;LONG
SCANBUF .EQU DATAPTR+4 ;LONG
SCANSIZE .EQU SCANBUF+4 ;WORD
THISV .EQU SCANSIZE+2 ;WORD
NEXTV .EQU THISV+2 ;WORD
MINH .EQU NEXTV+2 ;WORD
MAXH .EQU MINH+2 ;WORD
LEFTH .EQU MAXH+2 ;WORD
RGNREC .EQU LEFTH+2 ;SIZE OF A REGION RECORD
;-----------------------------------------------------
;
; Offsets in a PicSave record:
;
thePic .EQU 0 ;PICHANDLE
picMax .EQU thePic+4 ;LongInt
picIndex .EQU picMax+4 ;LongInt
picClipRgn .EQU picIndex+4 ;RgnHandle
picBkPat .EQU picClipRgn+4 ;Pattern
picTxFont .EQU picBkPat+8 ;WORD
picTxFace .EQU picTxFont+2 ;Style
picTxMode .EQU picTxFace+2 ;WORD
picTxSize .EQU picTxMode+2 ;WORD
picSpExtra .EQU picTxSize+2 ;Fixed Point
picTxNumer .EQU picSpExtra+4 ;Point
picTxDenom .EQU picTxNumer+4 ;Point
picTxLoc .EQU picTxDenom+4 ;Point
picPnLoc .EQU picTxLoc+4 ;Point
picPnSize .EQU picPnLoc+4 ;Point
picPnMode .EQU picPnSize+4 ;WORD
picPnPat .EQU picPnMode+2 ;Pattern
picFillPat .EQU picPnPat+8 ;Pattern
picTheRect .EQU picFillPat+8 ;Rect
picOvSize .EQU picTheRect+8 ;Point
picOrigin .EQU picOvSize+4 ;Point
picFgColor .EQU picOrigin+4 ;Long
picBkColor .EQU picFgColor+4 ;Long
picSaveRec .EQU picBkColor+4 ;total size in bytes
;-----------------------------------------------------
;
; QuickDraw GLOBAL VARIABLES:
;
; 52(A5) CONTAINS A POINTER TO THEPORT.
; ALL OTHER GLOBAL VARIABLES ARE EXPRESSED RELATIVE TO THEPORT.
;
GRAFGLOBALS .EQU 0 ;A5 OFFSET TO GLOBALPTR
;-----------------------------------------------------------
;
; QuickDraw PUBLIC GLOBAL VARIABLES:
;
thePort .EQU 0 ;GrafPtr
white .EQU thePort-8 ;Pattern
black .EQU white-8 ;Pattern
gray .EQU black-8 ;Pattern
ltGray .EQU gray-8 ;Pattern
dkGray .EQU ltGray-8 ;Pattern
arrow .EQU dkGray-68 ;Cursor
screenBits .EQU arrow-14 ;BitMap
randSeed .EQU screenBits-4 ;LONGINT
;------------------------------------------------------------
;
; QuickDraw private global variables:
;
wideOpen .EQU randSeed-4 ;RgnHandle
wideMaster .EQU wideOpen-4 ;RgnPtr
wideData .EQU wideMaster-10 ;Fake Region
rgnBuf .EQU wideData-4 ;PointsHandle
rgnIndex .EQU rgnBuf-2 ;INTEGER
rgnMax .EQU rgnIndex-2 ;INTEGER
playPic .EQU rgnMax-4 ;Long
QDSpare0 .EQU playPic-2 ;unused word
thePoly .EQU QDSpare0-4 ;POLYHANDLE
polyMax .EQU thePoly-2 ;INTEGER
patAlign .EQU polyMax-4 ;Point
fixTxWid .EQU patAlign-4 ;Fixed Point
fontPtr .EQU fixTxWid-4 ;long, ^FMOutput record
playIndex .EQU fontPtr-4 ;long
QDSpare3 .EQU playIndex-2 ;unused word
QDSpare4 .EQU QDSpare3-2 ;unused word
QDSpare5 .EQU QDSpare4-2 ;unused word
QDSpare6 .EQU QDSpare5-2 ;unused word
QDSpare7 .EQU QDSpare6-2 ;unused word
QDSpare8 .EQU QDSpare7-2 ;unused word
QDSpare9 .EQU QDSpare8-2 ;unused word
QDSpareA .EQU QDSpare9-2 ;unused word
QDSpareB .EQU QDSpareA-2 ;unused word
QDSpareC .EQU QDSpareB-2 ;unused word
QDSpareD .EQU QDSpareC-2 ;unused word
lastGrafGlob .EQU QDSpareD
grafSize .EQU 4-lastGrafGlob ;total size in bytes
.MACRO UNLINK
;--------------------------------------------------------------
;
; UNLINK A6, STRIP PARAMETERS, AND RETURN.
;
; FIRST PARAM IS NUMBER OF BYTES OF STACK BIAS.
;
UNLK A6 ;RELEASE LOCAL VARIABLES
.IF %1=0 ;NO PARAMETERS ?
RTS ;THEN JUST RTS
.ELSE
.IF %1=4 ;4 BYTES OF PARAMS ?
MOVE.L (SP)+,(SP) ;YES, STRIP AND ADJUST RET ADDR
RTS
.ELSE ;NOT 0 OR 4 BYTES OF PARAMS
MOVE.L (SP)+,A0 ;POP RETURN ADDR INTO A0
ADD #%1,SP ;STRIP PARAMETERS
JMP (A0) ;JUMP THRU A0 TO RETURN
.ENDC
.ENDC
.ENDM
;----------------------------------------------
;
; Trap Macros used by QuickDraw:
;
.MACRO _LongMul
.WORD $A867
.ENDM
.MACRO _FixMul
.WORD $A868
.ENDM
.MACRO _FixRatio
.WORD $A869
.ENDM
.MACRO _NewHandle
.WORD $A122
.ENDM
.MACRO _DisposHandle
.WORD $A023
.ENDM
.MACRO _SetHandleSize
.WORD $A024
.ENDM
.MACRO _GetHandleSize
.WORD $A025
.ENDM
.MACRO _HLock
.WORD $A029
.ENDM
.MACRO _HUnlock
.WORD $A02A
.ENDM
.MACRO _GetScrnBits
.WORD $A833 ;new trap number
.ENDM
.MACRO _StackAvail
MOVE.L SP,D0 ;copy stack pointer
SUB.L $114,D0 ;subtract HeapEnd for stack avail
.ENDM
.MACRO _SwapFont
MOVE.L $8E0,A0 ;get pointer to FMSwapFont
JSR (A0) ;call font manager
.ENDM
| 34.154255 | 81 | 0.403208 |
ba768508d28af7db87b0ced30e775d9ee3e9b480 | 62,458 | asm | Assembly | tmp1/c55x-sim2/foo/Debug/dma.asm | jwestmoreland/eZdsp-DBG-sim | f6eacd75d4f928dec9c751545e9e919d052e4ade | [
"MIT"
] | 1 | 2020-08-27T11:31:13.000Z | 2020-08-27T11:31:13.000Z | tmp1/c55x-sim2/foo/Debug/dma.asm | jwestmoreland/eZdsp-DBG-sim | f6eacd75d4f928dec9c751545e9e919d052e4ade | [
"MIT"
] | null | null | null | tmp1/c55x-sim2/foo/Debug/dma.asm | jwestmoreland/eZdsp-DBG-sim | f6eacd75d4f928dec9c751545e9e919d052e4ade | [
"MIT"
] | null | null | null | ;*******************************************************************************
;* TMS320C55x C/C++ Codegen PC v4.4.1 *
;* Date/Time created: Sat Oct 06 06:37:14 2018 *
;*******************************************************************************
.compiler_opts --hll_source=on --mem_model:code=flat --mem_model:data=large --object_format=coff --silicon_core_3_3 --symdebug:dwarf
.mmregs
.cpl_on
.arms_on
.c54cm_off
.asg AR6, FP
.asg XAR6, XFP
.asg DPH, MDP
.model call=c55_std
.model mem=large
.noremark 5002 ; code respects overwrite rules
;*******************************************************************************
;* GLOBAL FILE PARAMETERS *
;* *
;* Architecture : TMS320C55x *
;* Optimizing for : Speed *
;* Memory : Large Model (23-Bit Data Pointers) *
;* Calls : Normal Library ASM calls *
;* Debug Info : Standard TI Debug Information *
;*******************************************************************************
$C$DW$CU .dwtag DW_TAG_compile_unit
.dwattr $C$DW$CU, DW_AT_name("../src/dma.c")
.dwattr $C$DW$CU, DW_AT_producer("TMS320C55x C/C++ Codegen PC v4.4.1 Copyright (c) 1996-2012 Texas Instruments Incorporated")
.dwattr $C$DW$CU, DW_AT_TI_version(0x01)
.dwattr $C$DW$CU, DW_AT_comp_dir("F:\eZdsp_DBG\tmp1\c55x-sim2\foo\Debug")
;******************************************************************************
;* CINIT RECORDS *
;******************************************************************************
.sect ".cinit"
.align 1
.field $C$IR_1,16
.field _XmitL_Sine_1K+0,24
.field 0,8
.field 0,16 ; _XmitL_Sine_1K[0] @ 0
.field 2924,16 ; _XmitL_Sine_1K[1] @ 16
.field 5798,16 ; _XmitL_Sine_1K[2] @ 32
.field 8572,16 ; _XmitL_Sine_1K[3] @ 48
.field 11200,16 ; _XmitL_Sine_1K[4] @ 64
.field 13636,16 ; _XmitL_Sine_1K[5] @ 80
.field 15839,16 ; _XmitL_Sine_1K[6] @ 96
.field 17771,16 ; _XmitL_Sine_1K[7] @ 112
.field 19399,16 ; _XmitL_Sine_1K[8] @ 128
.field 20695,16 ; _XmitL_Sine_1K[9] @ 144
.field 21637,16 ; _XmitL_Sine_1K[10] @ 160
.field 22208,16 ; _XmitL_Sine_1K[11] @ 176
.field 22400,16 ; _XmitL_Sine_1K[12] @ 192
.field 22208,16 ; _XmitL_Sine_1K[13] @ 208
.field 21637,16 ; _XmitL_Sine_1K[14] @ 224
.field 20695,16 ; _XmitL_Sine_1K[15] @ 240
.field 19399,16 ; _XmitL_Sine_1K[16] @ 256
.field 17771,16 ; _XmitL_Sine_1K[17] @ 272
.field 15839,16 ; _XmitL_Sine_1K[18] @ 288
.field 13636,16 ; _XmitL_Sine_1K[19] @ 304
.field 11200,16 ; _XmitL_Sine_1K[20] @ 320
.field 8572,16 ; _XmitL_Sine_1K[21] @ 336
.field 5798,16 ; _XmitL_Sine_1K[22] @ 352
.field 2924,16 ; _XmitL_Sine_1K[23] @ 368
.field 0,16 ; _XmitL_Sine_1K[24] @ 384
.field -2924,16 ; _XmitL_Sine_1K[25] @ 400
.field -5798,16 ; _XmitL_Sine_1K[26] @ 416
.field -8572,16 ; _XmitL_Sine_1K[27] @ 432
.field -11200,16 ; _XmitL_Sine_1K[28] @ 448
.field -13636,16 ; _XmitL_Sine_1K[29] @ 464
.field -15839,16 ; _XmitL_Sine_1K[30] @ 480
.field -17771,16 ; _XmitL_Sine_1K[31] @ 496
.field -19399,16 ; _XmitL_Sine_1K[32] @ 512
.field -20695,16 ; _XmitL_Sine_1K[33] @ 528
.field -21637,16 ; _XmitL_Sine_1K[34] @ 544
.field -22208,16 ; _XmitL_Sine_1K[35] @ 560
.field -22400,16 ; _XmitL_Sine_1K[36] @ 576
.field -22208,16 ; _XmitL_Sine_1K[37] @ 592
.field -21637,16 ; _XmitL_Sine_1K[38] @ 608
.field -20695,16 ; _XmitL_Sine_1K[39] @ 624
.field -19399,16 ; _XmitL_Sine_1K[40] @ 640
.field -17771,16 ; _XmitL_Sine_1K[41] @ 656
.field -15839,16 ; _XmitL_Sine_1K[42] @ 672
.field -13636,16 ; _XmitL_Sine_1K[43] @ 688
.field -11200,16 ; _XmitL_Sine_1K[44] @ 704
.field -8572,16 ; _XmitL_Sine_1K[45] @ 720
.field -5798,16 ; _XmitL_Sine_1K[46] @ 736
.field -2924,16 ; _XmitL_Sine_1K[47] @ 752
$C$IR_1: .set 48
.sect ".cinit"
.align 1
.field $C$IR_2,16
.field _XmitL_Sine_2K+0,24
.field 0,8
.field 0,16 ; _XmitL_Sine_2K[0] @ 0
.field 5798,16 ; _XmitL_Sine_2K[1] @ 16
.field 11200,16 ; _XmitL_Sine_2K[2] @ 32
.field 15839,16 ; _XmitL_Sine_2K[3] @ 48
.field 19399,16 ; _XmitL_Sine_2K[4] @ 64
.field 21637,16 ; _XmitL_Sine_2K[5] @ 80
.field 22400,16 ; _XmitL_Sine_2K[6] @ 96
.field 21637,16 ; _XmitL_Sine_2K[7] @ 112
.field 19399,16 ; _XmitL_Sine_2K[8] @ 128
.field 15839,16 ; _XmitL_Sine_2K[9] @ 144
.field 11200,16 ; _XmitL_Sine_2K[10] @ 160
.field 5798,16 ; _XmitL_Sine_2K[11] @ 176
.field 0,16 ; _XmitL_Sine_2K[12] @ 192
.field -5798,16 ; _XmitL_Sine_2K[13] @ 208
.field -11200,16 ; _XmitL_Sine_2K[14] @ 224
.field -15839,16 ; _XmitL_Sine_2K[15] @ 240
.field -19399,16 ; _XmitL_Sine_2K[16] @ 256
.field -21637,16 ; _XmitL_Sine_2K[17] @ 272
.field -22400,16 ; _XmitL_Sine_2K[18] @ 288
.field -21637,16 ; _XmitL_Sine_2K[19] @ 304
.field -19399,16 ; _XmitL_Sine_2K[20] @ 320
.field -15839,16 ; _XmitL_Sine_2K[21] @ 336
.field -11200,16 ; _XmitL_Sine_2K[22] @ 352
.field -5798,16 ; _XmitL_Sine_2K[23] @ 368
.field 0,16 ; _XmitL_Sine_2K[24] @ 384
.field 5798,16 ; _XmitL_Sine_2K[25] @ 400
.field 11200,16 ; _XmitL_Sine_2K[26] @ 416
.field 15839,16 ; _XmitL_Sine_2K[27] @ 432
.field 19399,16 ; _XmitL_Sine_2K[28] @ 448
.field 21637,16 ; _XmitL_Sine_2K[29] @ 464
.field 22400,16 ; _XmitL_Sine_2K[30] @ 480
.field 21637,16 ; _XmitL_Sine_2K[31] @ 496
.field 19399,16 ; _XmitL_Sine_2K[32] @ 512
.field 15839,16 ; _XmitL_Sine_2K[33] @ 528
.field 11200,16 ; _XmitL_Sine_2K[34] @ 544
.field 5798,16 ; _XmitL_Sine_2K[35] @ 560
.field 0,16 ; _XmitL_Sine_2K[36] @ 576
.field -5798,16 ; _XmitL_Sine_2K[37] @ 592
.field -11200,16 ; _XmitL_Sine_2K[38] @ 608
.field -15839,16 ; _XmitL_Sine_2K[39] @ 624
.field -19399,16 ; _XmitL_Sine_2K[40] @ 640
.field -21637,16 ; _XmitL_Sine_2K[41] @ 656
.field -22400,16 ; _XmitL_Sine_2K[42] @ 672
.field -21637,16 ; _XmitL_Sine_2K[43] @ 688
.field -19399,16 ; _XmitL_Sine_2K[44] @ 704
.field -15839,16 ; _XmitL_Sine_2K[45] @ 720
.field -11200,16 ; _XmitL_Sine_2K[46] @ 736
.field -5798,16 ; _XmitL_Sine_2K[47] @ 752
$C$IR_2: .set 48
.sect ".cinit"
.align 1
.field $C$IR_3,16
.field _XmitR_Sine_1K+0,24
.field 0,8
.field 0,16 ; _XmitR_Sine_1K[0] @ 0
.field 2924,16 ; _XmitR_Sine_1K[1] @ 16
.field 5798,16 ; _XmitR_Sine_1K[2] @ 32
.field 8572,16 ; _XmitR_Sine_1K[3] @ 48
.field 11200,16 ; _XmitR_Sine_1K[4] @ 64
.field 13636,16 ; _XmitR_Sine_1K[5] @ 80
.field 15839,16 ; _XmitR_Sine_1K[6] @ 96
.field 17771,16 ; _XmitR_Sine_1K[7] @ 112
.field 19399,16 ; _XmitR_Sine_1K[8] @ 128
.field 20695,16 ; _XmitR_Sine_1K[9] @ 144
.field 21637,16 ; _XmitR_Sine_1K[10] @ 160
.field 22208,16 ; _XmitR_Sine_1K[11] @ 176
.field 22400,16 ; _XmitR_Sine_1K[12] @ 192
.field 22208,16 ; _XmitR_Sine_1K[13] @ 208
.field 21637,16 ; _XmitR_Sine_1K[14] @ 224
.field 20695,16 ; _XmitR_Sine_1K[15] @ 240
.field 19399,16 ; _XmitR_Sine_1K[16] @ 256
.field 17771,16 ; _XmitR_Sine_1K[17] @ 272
.field 15839,16 ; _XmitR_Sine_1K[18] @ 288
.field 13636,16 ; _XmitR_Sine_1K[19] @ 304
.field 11200,16 ; _XmitR_Sine_1K[20] @ 320
.field 8572,16 ; _XmitR_Sine_1K[21] @ 336
.field 5798,16 ; _XmitR_Sine_1K[22] @ 352
.field 2924,16 ; _XmitR_Sine_1K[23] @ 368
.field 0,16 ; _XmitR_Sine_1K[24] @ 384
.field -2924,16 ; _XmitR_Sine_1K[25] @ 400
.field -5798,16 ; _XmitR_Sine_1K[26] @ 416
.field -8572,16 ; _XmitR_Sine_1K[27] @ 432
.field -11200,16 ; _XmitR_Sine_1K[28] @ 448
.field -13636,16 ; _XmitR_Sine_1K[29] @ 464
.field -15839,16 ; _XmitR_Sine_1K[30] @ 480
.field -17771,16 ; _XmitR_Sine_1K[31] @ 496
.field -19399,16 ; _XmitR_Sine_1K[32] @ 512
.field -20695,16 ; _XmitR_Sine_1K[33] @ 528
.field -21637,16 ; _XmitR_Sine_1K[34] @ 544
.field -22208,16 ; _XmitR_Sine_1K[35] @ 560
.field -22400,16 ; _XmitR_Sine_1K[36] @ 576
.field -22208,16 ; _XmitR_Sine_1K[37] @ 592
.field -21637,16 ; _XmitR_Sine_1K[38] @ 608
.field -20695,16 ; _XmitR_Sine_1K[39] @ 624
.field -19399,16 ; _XmitR_Sine_1K[40] @ 640
.field -17771,16 ; _XmitR_Sine_1K[41] @ 656
.field -15839,16 ; _XmitR_Sine_1K[42] @ 672
.field -13636,16 ; _XmitR_Sine_1K[43] @ 688
.field -11200,16 ; _XmitR_Sine_1K[44] @ 704
.field -8572,16 ; _XmitR_Sine_1K[45] @ 720
.field -5798,16 ; _XmitR_Sine_1K[46] @ 736
.field -2924,16 ; _XmitR_Sine_1K[47] @ 752
$C$IR_3: .set 48
.sect ".cinit"
.align 1
.field $C$IR_4,16
.field _XmitR_Sine_2K+0,24
.field 0,8
.field 0,16 ; _XmitR_Sine_2K[0] @ 0
.field 5798,16 ; _XmitR_Sine_2K[1] @ 16
.field 11200,16 ; _XmitR_Sine_2K[2] @ 32
.field 15839,16 ; _XmitR_Sine_2K[3] @ 48
.field 19399,16 ; _XmitR_Sine_2K[4] @ 64
.field 21637,16 ; _XmitR_Sine_2K[5] @ 80
.field 22400,16 ; _XmitR_Sine_2K[6] @ 96
.field 21637,16 ; _XmitR_Sine_2K[7] @ 112
.field 19399,16 ; _XmitR_Sine_2K[8] @ 128
.field 15839,16 ; _XmitR_Sine_2K[9] @ 144
.field 11200,16 ; _XmitR_Sine_2K[10] @ 160
.field 5798,16 ; _XmitR_Sine_2K[11] @ 176
.field 0,16 ; _XmitR_Sine_2K[12] @ 192
.field -5798,16 ; _XmitR_Sine_2K[13] @ 208
.field -11200,16 ; _XmitR_Sine_2K[14] @ 224
.field -15839,16 ; _XmitR_Sine_2K[15] @ 240
.field -19399,16 ; _XmitR_Sine_2K[16] @ 256
.field -21637,16 ; _XmitR_Sine_2K[17] @ 272
.field -22400,16 ; _XmitR_Sine_2K[18] @ 288
.field -21637,16 ; _XmitR_Sine_2K[19] @ 304
.field -19399,16 ; _XmitR_Sine_2K[20] @ 320
.field -15839,16 ; _XmitR_Sine_2K[21] @ 336
.field -11200,16 ; _XmitR_Sine_2K[22] @ 352
.field -5798,16 ; _XmitR_Sine_2K[23] @ 368
.field 0,16 ; _XmitR_Sine_2K[24] @ 384
.field 5798,16 ; _XmitR_Sine_2K[25] @ 400
.field 11200,16 ; _XmitR_Sine_2K[26] @ 416
.field 15839,16 ; _XmitR_Sine_2K[27] @ 432
.field 19399,16 ; _XmitR_Sine_2K[28] @ 448
.field 21637,16 ; _XmitR_Sine_2K[29] @ 464
.field 22400,16 ; _XmitR_Sine_2K[30] @ 480
.field 21637,16 ; _XmitR_Sine_2K[31] @ 496
.field 19399,16 ; _XmitR_Sine_2K[32] @ 512
.field 15839,16 ; _XmitR_Sine_2K[33] @ 528
.field 11200,16 ; _XmitR_Sine_2K[34] @ 544
.field 5798,16 ; _XmitR_Sine_2K[35] @ 560
.field 0,16 ; _XmitR_Sine_2K[36] @ 576
.field -5798,16 ; _XmitR_Sine_2K[37] @ 592
.field -11200,16 ; _XmitR_Sine_2K[38] @ 608
.field -15839,16 ; _XmitR_Sine_2K[39] @ 624
.field -19399,16 ; _XmitR_Sine_2K[40] @ 640
.field -21637,16 ; _XmitR_Sine_2K[41] @ 656
.field -22400,16 ; _XmitR_Sine_2K[42] @ 672
.field -21637,16 ; _XmitR_Sine_2K[43] @ 688
.field -19399,16 ; _XmitR_Sine_2K[44] @ 704
.field -15839,16 ; _XmitR_Sine_2K[45] @ 720
.field -11200,16 ; _XmitR_Sine_2K[46] @ 736
.field -5798,16 ; _XmitR_Sine_2K[47] @ 752
$C$IR_4: .set 48
.sect ".cinit"
.align 1
.field 1,16
.field _DMA_Count+0,24
.field 0,8
.field 0,16 ; _DMA_Count @ 0
.sect ".cinit"
.align 1
.field 1,16
.field _Error_Count_L+0,24
.field 0,8
.field 0,16 ; _Error_Count_L @ 0
.sect ".cinit"
.align 1
.field 1,16
.field _Error_Count_R+0,24
.field 0,8
.field 0,16 ; _Error_Count_R @ 0
.sect ".cinit"
.align 1
.field 1,16
.field _DMA_Done+0,24
.field 0,8
.field 0,16 ; _DMA_Done @ 0
.global _XmitL_Sine_1K
.bss _XmitL_Sine_1K,48,0,0
$C$DW$1 .dwtag DW_TAG_variable, DW_AT_name("XmitL_Sine_1K")
.dwattr $C$DW$1, DW_AT_TI_symbol_name("_XmitL_Sine_1K")
.dwattr $C$DW$1, DW_AT_location[DW_OP_addr _XmitL_Sine_1K]
.dwattr $C$DW$1, DW_AT_type(*$C$DW$T$21)
.dwattr $C$DW$1, DW_AT_external
.global _XmitL_Sine_2K
.bss _XmitL_Sine_2K,48,0,0
$C$DW$2 .dwtag DW_TAG_variable, DW_AT_name("XmitL_Sine_2K")
.dwattr $C$DW$2, DW_AT_TI_symbol_name("_XmitL_Sine_2K")
.dwattr $C$DW$2, DW_AT_location[DW_OP_addr _XmitL_Sine_2K]
.dwattr $C$DW$2, DW_AT_type(*$C$DW$T$21)
.dwattr $C$DW$2, DW_AT_external
.global _XmitR_Sine_1K
.bss _XmitR_Sine_1K,48,0,0
$C$DW$3 .dwtag DW_TAG_variable, DW_AT_name("XmitR_Sine_1K")
.dwattr $C$DW$3, DW_AT_TI_symbol_name("_XmitR_Sine_1K")
.dwattr $C$DW$3, DW_AT_location[DW_OP_addr _XmitR_Sine_1K]
.dwattr $C$DW$3, DW_AT_type(*$C$DW$T$21)
.dwattr $C$DW$3, DW_AT_external
.global _XmitR_Sine_2K
.bss _XmitR_Sine_2K,48,0,0
$C$DW$4 .dwtag DW_TAG_variable, DW_AT_name("XmitR_Sine_2K")
.dwattr $C$DW$4, DW_AT_TI_symbol_name("_XmitR_Sine_2K")
.dwattr $C$DW$4, DW_AT_location[DW_OP_addr _XmitR_Sine_2K]
.dwattr $C$DW$4, DW_AT_type(*$C$DW$T$21)
.dwattr $C$DW$4, DW_AT_external
.global _RcvL_Sine
.bss _RcvL_Sine,48,0,0
$C$DW$5 .dwtag DW_TAG_variable, DW_AT_name("RcvL_Sine")
.dwattr $C$DW$5, DW_AT_TI_symbol_name("_RcvL_Sine")
.dwattr $C$DW$5, DW_AT_location[DW_OP_addr _RcvL_Sine]
.dwattr $C$DW$5, DW_AT_type(*$C$DW$T$21)
.dwattr $C$DW$5, DW_AT_external
.global _RcvR_Sine
.bss _RcvR_Sine,48,0,0
$C$DW$6 .dwtag DW_TAG_variable, DW_AT_name("RcvR_Sine")
.dwattr $C$DW$6, DW_AT_TI_symbol_name("_RcvR_Sine")
.dwattr $C$DW$6, DW_AT_location[DW_OP_addr _RcvR_Sine]
.dwattr $C$DW$6, DW_AT_type(*$C$DW$T$21)
.dwattr $C$DW$6, DW_AT_external
.global _DMA_Count
.bss _DMA_Count,1,0,0
$C$DW$7 .dwtag DW_TAG_variable, DW_AT_name("DMA_Count")
.dwattr $C$DW$7, DW_AT_TI_symbol_name("_DMA_Count")
.dwattr $C$DW$7, DW_AT_location[DW_OP_addr _DMA_Count]
.dwattr $C$DW$7, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$7, DW_AT_external
.global _Error_Count_L
.bss _Error_Count_L,1,0,0
$C$DW$8 .dwtag DW_TAG_variable, DW_AT_name("Error_Count_L")
.dwattr $C$DW$8, DW_AT_TI_symbol_name("_Error_Count_L")
.dwattr $C$DW$8, DW_AT_location[DW_OP_addr _Error_Count_L]
.dwattr $C$DW$8, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$8, DW_AT_external
.global _Error_Count_R
.bss _Error_Count_R,1,0,0
$C$DW$9 .dwtag DW_TAG_variable, DW_AT_name("Error_Count_R")
.dwattr $C$DW$9, DW_AT_TI_symbol_name("_Error_Count_R")
.dwattr $C$DW$9, DW_AT_location[DW_OP_addr _Error_Count_R]
.dwattr $C$DW$9, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$9, DW_AT_external
.global _DMA_Done
.bss _DMA_Done,1,0,0
$C$DW$10 .dwtag DW_TAG_variable, DW_AT_name("DMA_Done")
.dwattr $C$DW$10, DW_AT_TI_symbol_name("_DMA_Done")
.dwattr $C$DW$10, DW_AT_location[DW_OP_addr _DMA_Done]
.dwattr $C$DW$10, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$10, DW_AT_external
$C$DW$11 .dwtag DW_TAG_variable, DW_AT_name("fSineWave")
.dwattr $C$DW$11, DW_AT_TI_symbol_name("_fSineWave")
.dwattr $C$DW$11, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$11, DW_AT_declaration
.dwattr $C$DW$11, DW_AT_external
; F:\t\cc5p5\ccsv5\tools\compiler\c5500_4.4.1\bin\acp55.exe -@f:\\AppData\\Local\\Temp\\0357612
.sect ".text"
.align 4
.global _set_dma1_ch0_stop
$C$DW$12 .dwtag DW_TAG_subprogram, DW_AT_name("set_dma1_ch0_stop")
.dwattr $C$DW$12, DW_AT_low_pc(_set_dma1_ch0_stop)
.dwattr $C$DW$12, DW_AT_high_pc(0x00)
.dwattr $C$DW$12, DW_AT_TI_symbol_name("_set_dma1_ch0_stop")
.dwattr $C$DW$12, DW_AT_external
.dwattr $C$DW$12, DW_AT_TI_begin_file("../src/dma.c")
.dwattr $C$DW$12, DW_AT_TI_begin_line(0x59)
.dwattr $C$DW$12, DW_AT_TI_begin_column(0x06)
.dwattr $C$DW$12, DW_AT_TI_max_frame_size(0x02)
.dwpsn file "../src/dma.c",line 90,column 1,is_stmt,address _set_dma1_ch0_stop
.dwfde $C$DW$CIE, _set_dma1_ch0_stop
;*******************************************************************************
;* FUNCTION NAME: set_dma1_ch0_stop *
;* *
;* Function Uses Regs : AR1,SP,M40,SATA,SATD,RDM,FRCT,SMUL *
;* Stack Frame : Compact (No Frame Pointer, w/ debug) *
;* Total Frame Size : 2 words *
;* (1 return address/alignment) *
;* (1 local values) *
;* Min System Stack : 1 word *
;*******************************************************************************
_set_dma1_ch0_stop:
.dwcfi cfa_offset, 1
.dwcfi save_reg_to_mem, 91, -1
AADD #-1, SP
.dwcfi cfa_offset, 2
$C$DW$13 .dwtag DW_TAG_variable, DW_AT_name("temp")
.dwattr $C$DW$13, DW_AT_TI_symbol_name("_temp")
.dwattr $C$DW$13, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$13, DW_AT_location[DW_OP_bregx 0x24 0]
.dwpsn file "../src/dma.c",line 93,column 5,is_stmt
MOV *port(#3333), AR1 ; |93|
MOV AR1, *SP(#0) ; |93|
.dwpsn file "../src/dma.c",line 94,column 2,is_stmt
AND #0x7fff, *SP(#0) ; |94|
.dwpsn file "../src/dma.c",line 95,column 2,is_stmt
MOV *SP(#0), AR1 ; |95|
MOV AR1, *port(#3333) ; |95|
.dwpsn file "../src/dma.c",line 96,column 1,is_stmt
AADD #1, SP
.dwcfi cfa_offset, 1
$C$DW$14 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$14, DW_AT_low_pc(0x00)
.dwattr $C$DW$14, DW_AT_TI_return
RET
; return occurs
.dwattr $C$DW$12, DW_AT_TI_end_file("../src/dma.c")
.dwattr $C$DW$12, DW_AT_TI_end_line(0x60)
.dwattr $C$DW$12, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$12
.sect ".text"
.align 4
.global _set_dma0_ch0_stop
$C$DW$15 .dwtag DW_TAG_subprogram, DW_AT_name("set_dma0_ch0_stop")
.dwattr $C$DW$15, DW_AT_low_pc(_set_dma0_ch0_stop)
.dwattr $C$DW$15, DW_AT_high_pc(0x00)
.dwattr $C$DW$15, DW_AT_TI_symbol_name("_set_dma0_ch0_stop")
.dwattr $C$DW$15, DW_AT_external
.dwattr $C$DW$15, DW_AT_TI_begin_file("../src/dma.c")
.dwattr $C$DW$15, DW_AT_TI_begin_line(0x62)
.dwattr $C$DW$15, DW_AT_TI_begin_column(0x06)
.dwattr $C$DW$15, DW_AT_TI_max_frame_size(0x02)
.dwpsn file "../src/dma.c",line 99,column 1,is_stmt,address _set_dma0_ch0_stop
.dwfde $C$DW$CIE, _set_dma0_ch0_stop
;*******************************************************************************
;* FUNCTION NAME: set_dma0_ch0_stop *
;* *
;* Function Uses Regs : AR1,SP,M40,SATA,SATD,RDM,FRCT,SMUL *
;* Stack Frame : Compact (No Frame Pointer, w/ debug) *
;* Total Frame Size : 2 words *
;* (1 return address/alignment) *
;* (1 local values) *
;* Min System Stack : 1 word *
;*******************************************************************************
_set_dma0_ch0_stop:
.dwcfi cfa_offset, 1
.dwcfi save_reg_to_mem, 91, -1
AADD #-1, SP
.dwcfi cfa_offset, 2
$C$DW$16 .dwtag DW_TAG_variable, DW_AT_name("temp")
.dwattr $C$DW$16, DW_AT_TI_symbol_name("_temp")
.dwattr $C$DW$16, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$16, DW_AT_location[DW_OP_bregx 0x24 0]
.dwpsn file "../src/dma.c",line 102,column 5,is_stmt
MOV *port(#3077), AR1 ; |102|
MOV AR1, *SP(#0) ; |102|
.dwpsn file "../src/dma.c",line 103,column 2,is_stmt
AND #0x7fff, *SP(#0) ; |103|
.dwpsn file "../src/dma.c",line 104,column 2,is_stmt
MOV *SP(#0), AR1 ; |104|
MOV AR1, *port(#3077) ; |104|
.dwpsn file "../src/dma.c",line 105,column 1,is_stmt
AADD #1, SP
.dwcfi cfa_offset, 1
$C$DW$17 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$17, DW_AT_low_pc(0x00)
.dwattr $C$DW$17, DW_AT_TI_return
RET
; return occurs
.dwattr $C$DW$15, DW_AT_TI_end_file("../src/dma.c")
.dwattr $C$DW$15, DW_AT_TI_end_line(0x69)
.dwattr $C$DW$15, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$15
.sect ".text"
.align 4
.global _set_dma1_ch1_stop
$C$DW$18 .dwtag DW_TAG_subprogram, DW_AT_name("set_dma1_ch1_stop")
.dwattr $C$DW$18, DW_AT_low_pc(_set_dma1_ch1_stop)
.dwattr $C$DW$18, DW_AT_high_pc(0x00)
.dwattr $C$DW$18, DW_AT_TI_symbol_name("_set_dma1_ch1_stop")
.dwattr $C$DW$18, DW_AT_external
.dwattr $C$DW$18, DW_AT_TI_begin_file("../src/dma.c")
.dwattr $C$DW$18, DW_AT_TI_begin_line(0x6c)
.dwattr $C$DW$18, DW_AT_TI_begin_column(0x06)
.dwattr $C$DW$18, DW_AT_TI_max_frame_size(0x02)
.dwpsn file "../src/dma.c",line 109,column 1,is_stmt,address _set_dma1_ch1_stop
.dwfde $C$DW$CIE, _set_dma1_ch1_stop
;*******************************************************************************
;* FUNCTION NAME: set_dma1_ch1_stop *
;* *
;* Function Uses Regs : AR1,SP,M40,SATA,SATD,RDM,FRCT,SMUL *
;* Stack Frame : Compact (No Frame Pointer, w/ debug) *
;* Total Frame Size : 2 words *
;* (1 return address/alignment) *
;* (1 local values) *
;* Min System Stack : 1 word *
;*******************************************************************************
_set_dma1_ch1_stop:
.dwcfi cfa_offset, 1
.dwcfi save_reg_to_mem, 91, -1
AADD #-1, SP
.dwcfi cfa_offset, 2
$C$DW$19 .dwtag DW_TAG_variable, DW_AT_name("temp")
.dwattr $C$DW$19, DW_AT_TI_symbol_name("_temp")
.dwattr $C$DW$19, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$19, DW_AT_location[DW_OP_bregx 0x24 0]
.dwpsn file "../src/dma.c",line 112,column 5,is_stmt
MOV *port(#3365), AR1 ; |112|
MOV AR1, *SP(#0) ; |112|
.dwpsn file "../src/dma.c",line 113,column 2,is_stmt
AND #0x7fff, *SP(#0) ; |113|
.dwpsn file "../src/dma.c",line 114,column 2,is_stmt
MOV *SP(#0), AR1 ; |114|
MOV AR1, *port(#3365) ; |114|
.dwpsn file "../src/dma.c",line 115,column 1,is_stmt
AADD #1, SP
.dwcfi cfa_offset, 1
$C$DW$20 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$20, DW_AT_low_pc(0x00)
.dwattr $C$DW$20, DW_AT_TI_return
RET
; return occurs
.dwattr $C$DW$18, DW_AT_TI_end_file("../src/dma.c")
.dwattr $C$DW$18, DW_AT_TI_end_line(0x73)
.dwattr $C$DW$18, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$18
.sect ".text"
.align 4
.global _set_dma0_ch1_stop
$C$DW$21 .dwtag DW_TAG_subprogram, DW_AT_name("set_dma0_ch1_stop")
.dwattr $C$DW$21, DW_AT_low_pc(_set_dma0_ch1_stop)
.dwattr $C$DW$21, DW_AT_high_pc(0x00)
.dwattr $C$DW$21, DW_AT_TI_symbol_name("_set_dma0_ch1_stop")
.dwattr $C$DW$21, DW_AT_external
.dwattr $C$DW$21, DW_AT_TI_begin_file("../src/dma.c")
.dwattr $C$DW$21, DW_AT_TI_begin_line(0x75)
.dwattr $C$DW$21, DW_AT_TI_begin_column(0x06)
.dwattr $C$DW$21, DW_AT_TI_max_frame_size(0x02)
.dwpsn file "../src/dma.c",line 118,column 1,is_stmt,address _set_dma0_ch1_stop
.dwfde $C$DW$CIE, _set_dma0_ch1_stop
;*******************************************************************************
;* FUNCTION NAME: set_dma0_ch1_stop *
;* *
;* Function Uses Regs : AR1,SP,M40,SATA,SATD,RDM,FRCT,SMUL *
;* Stack Frame : Compact (No Frame Pointer, w/ debug) *
;* Total Frame Size : 2 words *
;* (1 return address/alignment) *
;* (1 local values) *
;* Min System Stack : 1 word *
;*******************************************************************************
_set_dma0_ch1_stop:
.dwcfi cfa_offset, 1
.dwcfi save_reg_to_mem, 91, -1
AADD #-1, SP
.dwcfi cfa_offset, 2
$C$DW$22 .dwtag DW_TAG_variable, DW_AT_name("temp")
.dwattr $C$DW$22, DW_AT_TI_symbol_name("_temp")
.dwattr $C$DW$22, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$22, DW_AT_location[DW_OP_bregx 0x24 0]
.dwpsn file "../src/dma.c",line 121,column 5,is_stmt
MOV *port(#3109), AR1 ; |121|
MOV AR1, *SP(#0) ; |121|
.dwpsn file "../src/dma.c",line 122,column 2,is_stmt
AND #0x7fff, *SP(#0) ; |122|
.dwpsn file "../src/dma.c",line 123,column 2,is_stmt
MOV *SP(#0), AR1 ; |123|
MOV AR1, *port(#3109) ; |123|
.dwpsn file "../src/dma.c",line 124,column 1,is_stmt
AADD #1, SP
.dwcfi cfa_offset, 1
$C$DW$23 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$23, DW_AT_low_pc(0x00)
.dwattr $C$DW$23, DW_AT_TI_return
RET
; return occurs
.dwattr $C$DW$21, DW_AT_TI_end_file("../src/dma.c")
.dwattr $C$DW$21, DW_AT_TI_end_line(0x7c)
.dwattr $C$DW$21, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$21
.sect ".text"
.align 4
.global _set_dma1_ch0_i2s2_Lout
$C$DW$24 .dwtag DW_TAG_subprogram, DW_AT_name("set_dma1_ch0_i2s2_Lout")
.dwattr $C$DW$24, DW_AT_low_pc(_set_dma1_ch0_i2s2_Lout)
.dwattr $C$DW$24, DW_AT_high_pc(0x00)
.dwattr $C$DW$24, DW_AT_TI_symbol_name("_set_dma1_ch0_i2s2_Lout")
.dwattr $C$DW$24, DW_AT_external
.dwattr $C$DW$24, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$24, DW_AT_TI_begin_file("../src/dma.c")
.dwattr $C$DW$24, DW_AT_TI_begin_line(0x7e)
.dwattr $C$DW$24, DW_AT_TI_begin_column(0x08)
.dwattr $C$DW$24, DW_AT_TI_max_frame_size(0x04)
.dwpsn file "../src/dma.c",line 127,column 1,is_stmt,address _set_dma1_ch0_i2s2_Lout
.dwfde $C$DW$CIE, _set_dma1_ch0_i2s2_Lout
;*******************************************************************************
;* FUNCTION NAME: set_dma1_ch0_i2s2_Lout *
;* *
;* Function Uses Regs : AC0,AC0,T0,AR1,AR2,XAR2,AR3,XAR3,SP,CARRY,TC1,M40, *
;* SATA,SATD,RDM,FRCT,SMUL *
;* Stack Frame : Compact (No Frame Pointer, w/ debug) *
;* Total Frame Size : 4 words *
;* (2 return address/alignment) *
;* (2 local values) *
;* Min System Stack : 1 word *
;*******************************************************************************
_set_dma1_ch0_i2s2_Lout:
.dwcfi cfa_offset, 1
.dwcfi save_reg_to_mem, 91, -1
AADD #-3, SP
.dwcfi cfa_offset, 4
$C$DW$25 .dwtag DW_TAG_variable, DW_AT_name("temp")
.dwattr $C$DW$25, DW_AT_TI_symbol_name("_temp")
.dwattr $C$DW$25, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$25, DW_AT_location[DW_OP_bregx 0x24 0]
$C$DW$26 .dwtag DW_TAG_variable, DW_AT_name("add")
.dwattr $C$DW$26, DW_AT_TI_symbol_name("_add")
.dwattr $C$DW$26, DW_AT_type(*$C$DW$T$25)
.dwattr $C$DW$26, DW_AT_location[DW_OP_bregx 0x24 1]
.dwpsn file "../src/dma.c",line 131,column 5,is_stmt
MOV #96, *port(#3332) ; |131|
.dwpsn file "../src/dma.c",line 134,column 5,is_stmt
MOV #12804, *port(#3333) ; |134|
.dwpsn file "../src/dma.c",line 139,column 2,is_stmt
MOV *port(#7196), AR1 ; |139|
MOV AR1, *SP(#0) ; |139|
.dwpsn file "../src/dma.c",line 140,column 5,is_stmt
BSET @#0, AR1 ; |140|
MOV AR1, *port(#7196) ; |140|
.dwpsn file "../src/dma.c",line 142,column 5,is_stmt
CMP *(#_fSineWave) == #1, TC1 ; |142|
BCC $C$L1,!TC1 ; |142|
; branchcc occurs ; |142|
.dwpsn file "../src/dma.c",line 144,column 9,is_stmt
MOV #_XmitL_Sine_1K, *SP(#1) ; |144|
.dwpsn file "../src/dma.c",line 145,column 5,is_stmt
B $C$L2 ; |145|
; branch occurs ; |145|
$C$L1:
.dwpsn file "../src/dma.c",line 148,column 9,is_stmt
MOV #_XmitL_Sine_2K, *SP(#1) ; |148|
$C$L2:
.dwpsn file "../src/dma.c",line 151,column 5,is_stmt
MOV *SP(#1), AR1 ; |151|
SFTL AR1, #1 ; |151|
AND #0xffff, AR1, AC0 ; |151|
MOV AC0, XAR2
AMOV #65536, XAR3 ; |151|
MOV AR3, *SP(#1) ; |151|
|| AADD XAR2, XAR3 ; |151|
.dwpsn file "../src/dma.c",line 152,column 5,is_stmt
MOV AR3, AR1
MOV AR1, *port(#3328) ; |152|
.dwpsn file "../src/dma.c",line 154,column 5,is_stmt
AND #0xffff, AR1, AC0 ; |154|
MOV AC0, *port(#3329) ; |154|
.dwpsn file "../src/dma.c",line 156,column 5,is_stmt
MOV #10248, *port(#3330) ; |156|
.dwpsn file "../src/dma.c",line 159,column 5,is_stmt
MOV *port(#3333), AR1 ; |159|
MOV AR1, *SP(#0) ; |159|
.dwpsn file "../src/dma.c",line 160,column 2,is_stmt
OR #0x8000, *SP(#0) ; |160|
.dwpsn file "../src/dma.c",line 161,column 2,is_stmt
MOV *SP(#0), AR1 ; |161|
MOV AR1, *port(#3333) ; |161|
.dwpsn file "../src/dma.c",line 163,column 5,is_stmt
MOV #0, T0
.dwpsn file "../src/dma.c",line 164,column 1,is_stmt
AADD #3, SP
.dwcfi cfa_offset, 1
$C$DW$27 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$27, DW_AT_low_pc(0x00)
.dwattr $C$DW$27, DW_AT_TI_return
RET
; return occurs
.dwattr $C$DW$24, DW_AT_TI_end_file("../src/dma.c")
.dwattr $C$DW$24, DW_AT_TI_end_line(0xa4)
.dwattr $C$DW$24, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$24
.sect ".text"
.align 4
.global _set_dma0_ch0_i2s0_Lout
$C$DW$28 .dwtag DW_TAG_subprogram, DW_AT_name("set_dma0_ch0_i2s0_Lout")
.dwattr $C$DW$28, DW_AT_low_pc(_set_dma0_ch0_i2s0_Lout)
.dwattr $C$DW$28, DW_AT_high_pc(0x00)
.dwattr $C$DW$28, DW_AT_TI_symbol_name("_set_dma0_ch0_i2s0_Lout")
.dwattr $C$DW$28, DW_AT_external
.dwattr $C$DW$28, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$28, DW_AT_TI_begin_file("../src/dma.c")
.dwattr $C$DW$28, DW_AT_TI_begin_line(0xa6)
.dwattr $C$DW$28, DW_AT_TI_begin_column(0x08)
.dwattr $C$DW$28, DW_AT_TI_max_frame_size(0x04)
.dwpsn file "../src/dma.c",line 167,column 1,is_stmt,address _set_dma0_ch0_i2s0_Lout
.dwfde $C$DW$CIE, _set_dma0_ch0_i2s0_Lout
;*******************************************************************************
;* FUNCTION NAME: set_dma0_ch0_i2s0_Lout *
;* *
;* Function Uses Regs : AC0,AC0,T0,AR1,AR2,XAR2,AR3,XAR3,SP,CARRY,TC1,M40, *
;* SATA,SATD,RDM,FRCT,SMUL *
;* Stack Frame : Compact (No Frame Pointer, w/ debug) *
;* Total Frame Size : 4 words *
;* (2 return address/alignment) *
;* (2 local values) *
;* Min System Stack : 1 word *
;*******************************************************************************
_set_dma0_ch0_i2s0_Lout:
.dwcfi cfa_offset, 1
.dwcfi save_reg_to_mem, 91, -1
AADD #-3, SP
.dwcfi cfa_offset, 4
$C$DW$29 .dwtag DW_TAG_variable, DW_AT_name("temp")
.dwattr $C$DW$29, DW_AT_TI_symbol_name("_temp")
.dwattr $C$DW$29, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$29, DW_AT_location[DW_OP_bregx 0x24 0]
$C$DW$30 .dwtag DW_TAG_variable, DW_AT_name("add")
.dwattr $C$DW$30, DW_AT_TI_symbol_name("_add")
.dwattr $C$DW$30, DW_AT_type(*$C$DW$T$25)
.dwattr $C$DW$30, DW_AT_location[DW_OP_bregx 0x24 1]
.dwpsn file "../src/dma.c",line 171,column 5,is_stmt
MOV #96, *port(#3076) ; |171|
.dwpsn file "../src/dma.c",line 174,column 5,is_stmt
MOV #12804, *port(#3077) ; |174|
.dwpsn file "../src/dma.c",line 179,column 2,is_stmt
MOV *port(#7194), AR1 ; |179|
MOV AR1, *SP(#0) ; |179|
.dwpsn file "../src/dma.c",line 180,column 5,is_stmt
BSET @#0, AR1 ; |180|
MOV AR1, *port(#7194) ; |180|
.dwpsn file "../src/dma.c",line 182,column 5,is_stmt
CMP *(#_fSineWave) == #1, TC1 ; |182|
BCC $C$L3,!TC1 ; |182|
; branchcc occurs ; |182|
.dwpsn file "../src/dma.c",line 184,column 9,is_stmt
MOV #_XmitL_Sine_1K, *SP(#1) ; |184|
.dwpsn file "../src/dma.c",line 185,column 5,is_stmt
B $C$L4 ; |185|
; branch occurs ; |185|
$C$L3:
.dwpsn file "../src/dma.c",line 188,column 9,is_stmt
MOV #_XmitL_Sine_2K, *SP(#1) ; |188|
$C$L4:
.dwpsn file "../src/dma.c",line 191,column 5,is_stmt
MOV *SP(#1), AR1 ; |191|
SFTL AR1, #1 ; |191|
AND #0xffff, AR1, AC0 ; |191|
MOV AC0, XAR2
AMOV #65536, XAR3 ; |191|
MOV AR3, *SP(#1) ; |191|
|| AADD XAR2, XAR3 ; |191|
.dwpsn file "../src/dma.c",line 192,column 5,is_stmt
MOV AR3, AR1
MOV AR1, *port(#3072) ; |192|
.dwpsn file "../src/dma.c",line 194,column 5,is_stmt
AND #0xffff, AR1, AC0 ; |194|
MOV AC0, *port(#3073) ; |194|
.dwpsn file "../src/dma.c",line 196,column 5,is_stmt
MOV #10248, *port(#3074) ; |196|
.dwpsn file "../src/dma.c",line 199,column 5,is_stmt
MOV *port(#3077), AR1 ; |199|
MOV AR1, *SP(#0) ; |199|
.dwpsn file "../src/dma.c",line 200,column 2,is_stmt
OR #0x8000, *SP(#0) ; |200|
.dwpsn file "../src/dma.c",line 201,column 2,is_stmt
MOV *SP(#0), AR1 ; |201|
MOV AR1, *port(#3077) ; |201|
.dwpsn file "../src/dma.c",line 203,column 5,is_stmt
MOV #0, T0
.dwpsn file "../src/dma.c",line 204,column 1,is_stmt
AADD #3, SP
.dwcfi cfa_offset, 1
$C$DW$31 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$31, DW_AT_low_pc(0x00)
.dwattr $C$DW$31, DW_AT_TI_return
RET
; return occurs
.dwattr $C$DW$28, DW_AT_TI_end_file("../src/dma.c")
.dwattr $C$DW$28, DW_AT_TI_end_line(0xcc)
.dwattr $C$DW$28, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$28
.sect ".text"
.align 4
.global _set_dma1_ch1_i2s2_Rout
$C$DW$32 .dwtag DW_TAG_subprogram, DW_AT_name("set_dma1_ch1_i2s2_Rout")
.dwattr $C$DW$32, DW_AT_low_pc(_set_dma1_ch1_i2s2_Rout)
.dwattr $C$DW$32, DW_AT_high_pc(0x00)
.dwattr $C$DW$32, DW_AT_TI_symbol_name("_set_dma1_ch1_i2s2_Rout")
.dwattr $C$DW$32, DW_AT_external
.dwattr $C$DW$32, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$32, DW_AT_TI_begin_file("../src/dma.c")
.dwattr $C$DW$32, DW_AT_TI_begin_line(0xcf)
.dwattr $C$DW$32, DW_AT_TI_begin_column(0x08)
.dwattr $C$DW$32, DW_AT_TI_max_frame_size(0x04)
.dwpsn file "../src/dma.c",line 208,column 1,is_stmt,address _set_dma1_ch1_i2s2_Rout
.dwfde $C$DW$CIE, _set_dma1_ch1_i2s2_Rout
;*******************************************************************************
;* FUNCTION NAME: set_dma1_ch1_i2s2_Rout *
;* *
;* Function Uses Regs : AC0,AC0,T0,AR1,AR2,XAR2,AR3,XAR3,SP,CARRY,TC1,M40, *
;* SATA,SATD,RDM,FRCT,SMUL *
;* Stack Frame : Compact (No Frame Pointer, w/ debug) *
;* Total Frame Size : 4 words *
;* (2 return address/alignment) *
;* (2 local values) *
;* Min System Stack : 1 word *
;*******************************************************************************
_set_dma1_ch1_i2s2_Rout:
.dwcfi cfa_offset, 1
.dwcfi save_reg_to_mem, 91, -1
AADD #-3, SP
.dwcfi cfa_offset, 4
$C$DW$33 .dwtag DW_TAG_variable, DW_AT_name("temp")
.dwattr $C$DW$33, DW_AT_TI_symbol_name("_temp")
.dwattr $C$DW$33, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$33, DW_AT_location[DW_OP_bregx 0x24 0]
$C$DW$34 .dwtag DW_TAG_variable, DW_AT_name("add")
.dwattr $C$DW$34, DW_AT_TI_symbol_name("_add")
.dwattr $C$DW$34, DW_AT_type(*$C$DW$T$25)
.dwattr $C$DW$34, DW_AT_location[DW_OP_bregx 0x24 1]
.dwpsn file "../src/dma.c",line 212,column 5,is_stmt
MOV #96, *port(#3364) ; |212|
.dwpsn file "../src/dma.c",line 216,column 5,is_stmt
MOV #12804, *port(#3365) ; |216|
.dwpsn file "../src/dma.c",line 221,column 2,is_stmt
MOV *port(#7196), AR1 ; |221|
MOV AR1, *SP(#0) ; |221|
.dwpsn file "../src/dma.c",line 222,column 5,is_stmt
BSET @#8, AR1 ; |222|
MOV AR1, *port(#7196) ; |222|
.dwpsn file "../src/dma.c",line 224,column 5,is_stmt
CMP *(#_fSineWave) == #1, TC1 ; |224|
BCC $C$L5,!TC1 ; |224|
; branchcc occurs ; |224|
.dwpsn file "../src/dma.c",line 226,column 9,is_stmt
MOV #_XmitR_Sine_1K, *SP(#1) ; |226|
.dwpsn file "../src/dma.c",line 227,column 5,is_stmt
B $C$L6 ; |227|
; branch occurs ; |227|
$C$L5:
.dwpsn file "../src/dma.c",line 230,column 9,is_stmt
MOV #_XmitR_Sine_2K, *SP(#1) ; |230|
$C$L6:
.dwpsn file "../src/dma.c",line 232,column 5,is_stmt
MOV *SP(#1), AR1 ; |232|
SFTL AR1, #1 ; |232|
AND #0xffff, AR1, AC0 ; |232|
MOV AC0, XAR2
AMOV #65536, XAR3 ; |232|
MOV AR3, *SP(#1) ; |232|
|| AADD XAR2, XAR3 ; |232|
.dwpsn file "../src/dma.c",line 233,column 5,is_stmt
MOV AR3, AR1
MOV AR1, *port(#3360) ; |233|
.dwpsn file "../src/dma.c",line 235,column 5,is_stmt
AND #0xffff, AR1, AC0 ; |235|
MOV AC0, *port(#3361) ; |235|
.dwpsn file "../src/dma.c",line 237,column 5,is_stmt
MOV #10252, *port(#3362) ; |237|
.dwpsn file "../src/dma.c",line 240,column 5,is_stmt
MOV *port(#3365), AR1 ; |240|
MOV AR1, *SP(#0) ; |240|
.dwpsn file "../src/dma.c",line 241,column 2,is_stmt
OR #0x8000, *SP(#0) ; |241|
.dwpsn file "../src/dma.c",line 242,column 2,is_stmt
MOV *SP(#0), AR1 ; |242|
MOV AR1, *port(#3365) ; |242|
.dwpsn file "../src/dma.c",line 245,column 5,is_stmt
MOV #0, T0
.dwpsn file "../src/dma.c",line 246,column 1,is_stmt
AADD #3, SP
.dwcfi cfa_offset, 1
$C$DW$35 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$35, DW_AT_low_pc(0x00)
.dwattr $C$DW$35, DW_AT_TI_return
RET
; return occurs
.dwattr $C$DW$32, DW_AT_TI_end_file("../src/dma.c")
.dwattr $C$DW$32, DW_AT_TI_end_line(0xf6)
.dwattr $C$DW$32, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$32
.sect ".text"
.align 4
.global _set_dma0_ch1_i2s0_Rout
$C$DW$36 .dwtag DW_TAG_subprogram, DW_AT_name("set_dma0_ch1_i2s0_Rout")
.dwattr $C$DW$36, DW_AT_low_pc(_set_dma0_ch1_i2s0_Rout)
.dwattr $C$DW$36, DW_AT_high_pc(0x00)
.dwattr $C$DW$36, DW_AT_TI_symbol_name("_set_dma0_ch1_i2s0_Rout")
.dwattr $C$DW$36, DW_AT_external
.dwattr $C$DW$36, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$36, DW_AT_TI_begin_file("../src/dma.c")
.dwattr $C$DW$36, DW_AT_TI_begin_line(0xf8)
.dwattr $C$DW$36, DW_AT_TI_begin_column(0x08)
.dwattr $C$DW$36, DW_AT_TI_max_frame_size(0x04)
.dwpsn file "../src/dma.c",line 249,column 1,is_stmt,address _set_dma0_ch1_i2s0_Rout
.dwfde $C$DW$CIE, _set_dma0_ch1_i2s0_Rout
;*******************************************************************************
;* FUNCTION NAME: set_dma0_ch1_i2s0_Rout *
;* *
;* Function Uses Regs : AC0,AC0,T0,AR1,AR2,XAR2,AR3,XAR3,SP,CARRY,TC1,M40, *
;* SATA,SATD,RDM,FRCT,SMUL *
;* Stack Frame : Compact (No Frame Pointer, w/ debug) *
;* Total Frame Size : 4 words *
;* (2 return address/alignment) *
;* (2 local values) *
;* Min System Stack : 1 word *
;*******************************************************************************
_set_dma0_ch1_i2s0_Rout:
.dwcfi cfa_offset, 1
.dwcfi save_reg_to_mem, 91, -1
AADD #-3, SP
.dwcfi cfa_offset, 4
$C$DW$37 .dwtag DW_TAG_variable, DW_AT_name("temp")
.dwattr $C$DW$37, DW_AT_TI_symbol_name("_temp")
.dwattr $C$DW$37, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$37, DW_AT_location[DW_OP_bregx 0x24 0]
$C$DW$38 .dwtag DW_TAG_variable, DW_AT_name("add")
.dwattr $C$DW$38, DW_AT_TI_symbol_name("_add")
.dwattr $C$DW$38, DW_AT_type(*$C$DW$T$25)
.dwattr $C$DW$38, DW_AT_location[DW_OP_bregx 0x24 1]
.dwpsn file "../src/dma.c",line 253,column 5,is_stmt
MOV #96, *port(#3108) ; |253|
.dwpsn file "../src/dma.c",line 257,column 5,is_stmt
MOV #12804, *port(#3109) ; |257|
.dwpsn file "../src/dma.c",line 262,column 2,is_stmt
MOV *port(#7196), AR1 ; |262|
MOV AR1, *SP(#0) ; |262|
.dwpsn file "../src/dma.c",line 263,column 5,is_stmt
BSET @#8, AR1 ; |263|
MOV AR1, *port(#7194) ; |263|
.dwpsn file "../src/dma.c",line 265,column 5,is_stmt
CMP *(#_fSineWave) == #1, TC1 ; |265|
BCC $C$L7,!TC1 ; |265|
; branchcc occurs ; |265|
.dwpsn file "../src/dma.c",line 267,column 9,is_stmt
MOV #_XmitR_Sine_1K, *SP(#1) ; |267|
.dwpsn file "../src/dma.c",line 268,column 5,is_stmt
B $C$L8 ; |268|
; branch occurs ; |268|
$C$L7:
.dwpsn file "../src/dma.c",line 271,column 9,is_stmt
MOV #_XmitR_Sine_2K, *SP(#1) ; |271|
$C$L8:
.dwpsn file "../src/dma.c",line 273,column 5,is_stmt
MOV *SP(#1), AR1 ; |273|
SFTL AR1, #1 ; |273|
AND #0xffff, AR1, AC0 ; |273|
MOV AC0, XAR2
AMOV #65536, XAR3 ; |273|
MOV AR3, *SP(#1) ; |273|
|| AADD XAR2, XAR3 ; |273|
.dwpsn file "../src/dma.c",line 274,column 5,is_stmt
MOV AR3, AR1
MOV AR1, *port(#3104) ; |274|
.dwpsn file "../src/dma.c",line 276,column 5,is_stmt
AND #0xffff, AR1, AC0 ; |276|
MOV AC0, *port(#3105) ; |276|
.dwpsn file "../src/dma.c",line 278,column 5,is_stmt
MOV #10252, *port(#3106) ; |278|
.dwpsn file "../src/dma.c",line 281,column 5,is_stmt
MOV *port(#3109), AR1 ; |281|
MOV AR1, *SP(#0) ; |281|
.dwpsn file "../src/dma.c",line 282,column 2,is_stmt
OR #0x8000, *SP(#0) ; |282|
.dwpsn file "../src/dma.c",line 283,column 2,is_stmt
MOV *SP(#0), AR1 ; |283|
MOV AR1, *port(#3109) ; |283|
.dwpsn file "../src/dma.c",line 286,column 5,is_stmt
MOV #0, T0
.dwpsn file "../src/dma.c",line 287,column 1,is_stmt
AADD #3, SP
.dwcfi cfa_offset, 1
$C$DW$39 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$39, DW_AT_low_pc(0x00)
.dwattr $C$DW$39, DW_AT_TI_return
RET
; return occurs
.dwattr $C$DW$36, DW_AT_TI_end_file("../src/dma.c")
.dwattr $C$DW$36, DW_AT_TI_end_line(0x11f)
.dwattr $C$DW$36, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$36
.sect ".text"
.align 4
.global _enable_dma_int
$C$DW$40 .dwtag DW_TAG_subprogram, DW_AT_name("enable_dma_int")
.dwattr $C$DW$40, DW_AT_low_pc(_enable_dma_int)
.dwattr $C$DW$40, DW_AT_high_pc(0x00)
.dwattr $C$DW$40, DW_AT_TI_symbol_name("_enable_dma_int")
.dwattr $C$DW$40, DW_AT_external
.dwattr $C$DW$40, DW_AT_TI_begin_file("../src/dma.c")
.dwattr $C$DW$40, DW_AT_TI_begin_line(0x122)
.dwattr $C$DW$40, DW_AT_TI_begin_column(0x06)
.dwattr $C$DW$40, DW_AT_TI_max_frame_size(0x01)
.dwpsn file "../src/dma.c",line 291,column 1,is_stmt,address _enable_dma_int
.dwfde $C$DW$CIE, _enable_dma_int
;*******************************************************************************
;* FUNCTION NAME: enable_dma_int *
;* *
;* Function Uses Regs : SP,M40,SATA,SATD,RDM,FRCT,SMUL *
;* Stack Frame : Compact (No Frame Pointer, w/ debug) *
;* Total Frame Size : 1 word *
;* (1 return address/alignment) *
;* Min System Stack : 1 word *
;*******************************************************************************
_enable_dma_int:
.dwcfi cfa_offset, 1
.dwcfi save_reg_to_mem, 91, -1
.dwpsn file "../src/dma.c",line 292,column 5,is_stmt
MOV #65535, *port(#7217) ; |292|
.dwpsn file "../src/dma.c",line 293,column 5,is_stmt
MOV #65535, *port(#7216) ; |293|
.dwpsn file "../src/dma.c",line 294,column 1,is_stmt
$C$DW$41 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$41, DW_AT_low_pc(0x00)
.dwattr $C$DW$41, DW_AT_TI_return
RET
; return occurs
.dwattr $C$DW$40, DW_AT_TI_end_file("../src/dma.c")
.dwattr $C$DW$40, DW_AT_TI_end_line(0x126)
.dwattr $C$DW$40, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$40
;******************************************************************************
;* UNDEFINED EXTERNAL REFERENCES *
;******************************************************************************
.global _fSineWave
;*******************************************************************************
;* TYPE INFORMATION *
;*******************************************************************************
$C$DW$T$4 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$4, DW_AT_encoding(DW_ATE_boolean)
.dwattr $C$DW$T$4, DW_AT_name("bool")
.dwattr $C$DW$T$4, DW_AT_byte_size(0x01)
$C$DW$T$5 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$5, DW_AT_encoding(DW_ATE_signed_char)
.dwattr $C$DW$T$5, DW_AT_name("signed char")
.dwattr $C$DW$T$5, DW_AT_byte_size(0x01)
$C$DW$T$6 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$6, DW_AT_encoding(DW_ATE_unsigned_char)
.dwattr $C$DW$T$6, DW_AT_name("unsigned char")
.dwattr $C$DW$T$6, DW_AT_byte_size(0x01)
$C$DW$T$7 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$7, DW_AT_encoding(DW_ATE_signed_char)
.dwattr $C$DW$T$7, DW_AT_name("wchar_t")
.dwattr $C$DW$T$7, DW_AT_byte_size(0x01)
$C$DW$T$8 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$8, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$8, DW_AT_name("short")
.dwattr $C$DW$T$8, DW_AT_byte_size(0x01)
$C$DW$T$20 .dwtag DW_TAG_typedef, DW_AT_name("Int16")
.dwattr $C$DW$T$20, DW_AT_type(*$C$DW$T$8)
.dwattr $C$DW$T$20, DW_AT_language(DW_LANG_C)
$C$DW$T$21 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$21, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$T$21, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$21, DW_AT_byte_size(0x30)
$C$DW$42 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$42, DW_AT_upper_bound(0x2f)
.dwendtag $C$DW$T$21
$C$DW$T$9 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$9, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$9, DW_AT_name("unsigned short")
.dwattr $C$DW$T$9, DW_AT_byte_size(0x01)
$C$DW$T$23 .dwtag DW_TAG_typedef, DW_AT_name("Uint16")
.dwattr $C$DW$T$23, DW_AT_type(*$C$DW$T$9)
.dwattr $C$DW$T$23, DW_AT_language(DW_LANG_C)
$C$DW$T$10 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$10, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$10, DW_AT_name("int")
.dwattr $C$DW$T$10, DW_AT_byte_size(0x01)
$C$DW$T$11 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$11, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$11, DW_AT_name("unsigned int")
.dwattr $C$DW$T$11, DW_AT_byte_size(0x01)
$C$DW$T$25 .dwtag DW_TAG_typedef, DW_AT_name("Uint32")
.dwattr $C$DW$T$25, DW_AT_type(*$C$DW$T$11)
.dwattr $C$DW$T$25, DW_AT_language(DW_LANG_C)
$C$DW$T$12 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$12, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$12, DW_AT_name("long")
.dwattr $C$DW$T$12, DW_AT_byte_size(0x02)
$C$DW$T$13 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$13, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$13, DW_AT_name("unsigned long")
.dwattr $C$DW$T$13, DW_AT_byte_size(0x02)
$C$DW$T$14 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$14, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$14, DW_AT_name("long long")
.dwattr $C$DW$T$14, DW_AT_byte_size(0x04)
.dwattr $C$DW$T$14, DW_AT_bit_size(0x28)
.dwattr $C$DW$T$14, DW_AT_bit_offset(0x18)
$C$DW$T$15 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$15, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$15, DW_AT_name("unsigned long long")
.dwattr $C$DW$T$15, DW_AT_byte_size(0x04)
.dwattr $C$DW$T$15, DW_AT_bit_size(0x28)
.dwattr $C$DW$T$15, DW_AT_bit_offset(0x18)
$C$DW$T$16 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$16, DW_AT_encoding(DW_ATE_float)
.dwattr $C$DW$T$16, DW_AT_name("float")
.dwattr $C$DW$T$16, DW_AT_byte_size(0x02)
$C$DW$T$17 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$17, DW_AT_encoding(DW_ATE_float)
.dwattr $C$DW$T$17, DW_AT_name("double")
.dwattr $C$DW$T$17, DW_AT_byte_size(0x02)
$C$DW$T$18 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$18, DW_AT_encoding(DW_ATE_float)
.dwattr $C$DW$T$18, DW_AT_name("long double")
.dwattr $C$DW$T$18, DW_AT_byte_size(0x02)
.dwattr $C$DW$CU, DW_AT_language(DW_LANG_C)
;***************************************************************
;* DWARF CIE ENTRIES *
;***************************************************************
$C$DW$CIE .dwcie 91
.dwcfi cfa_register, 36
.dwcfi cfa_offset, 0
.dwcfi undefined, 0
.dwcfi undefined, 1
.dwcfi undefined, 2
.dwcfi undefined, 3
.dwcfi undefined, 4
.dwcfi undefined, 5
.dwcfi undefined, 6
.dwcfi undefined, 7
.dwcfi undefined, 8
.dwcfi undefined, 9
.dwcfi undefined, 10
.dwcfi undefined, 11
.dwcfi undefined, 12
.dwcfi undefined, 13
.dwcfi same_value, 14
.dwcfi same_value, 15
.dwcfi undefined, 16
.dwcfi undefined, 17
.dwcfi undefined, 18
.dwcfi undefined, 19
.dwcfi undefined, 20
.dwcfi undefined, 21
.dwcfi undefined, 22
.dwcfi undefined, 23
.dwcfi undefined, 24
.dwcfi undefined, 25
.dwcfi same_value, 26
.dwcfi same_value, 27
.dwcfi same_value, 28
.dwcfi same_value, 29
.dwcfi same_value, 30
.dwcfi same_value, 31
.dwcfi undefined, 32
.dwcfi undefined, 33
.dwcfi undefined, 34
.dwcfi undefined, 35
.dwcfi undefined, 36
.dwcfi undefined, 37
.dwcfi undefined, 38
.dwcfi undefined, 39
.dwcfi undefined, 40
.dwcfi undefined, 41
.dwcfi undefined, 42
.dwcfi undefined, 43
.dwcfi undefined, 44
.dwcfi undefined, 45
.dwcfi undefined, 46
.dwcfi undefined, 47
.dwcfi undefined, 48
.dwcfi undefined, 49
.dwcfi undefined, 50
.dwcfi undefined, 51
.dwcfi undefined, 52
.dwcfi undefined, 53
.dwcfi undefined, 54
.dwcfi undefined, 55
.dwcfi undefined, 56
.dwcfi undefined, 57
.dwcfi undefined, 58
.dwcfi undefined, 59
.dwcfi undefined, 60
.dwcfi undefined, 61
.dwcfi undefined, 62
.dwcfi undefined, 63
.dwcfi undefined, 64
.dwcfi undefined, 65
.dwcfi undefined, 66
.dwcfi undefined, 67
.dwcfi undefined, 68
.dwcfi undefined, 69
.dwcfi undefined, 70
.dwcfi undefined, 71
.dwcfi undefined, 72
.dwcfi undefined, 73
.dwcfi undefined, 74
.dwcfi undefined, 75
.dwcfi undefined, 76
.dwcfi undefined, 77
.dwcfi undefined, 78
.dwcfi undefined, 79
.dwcfi undefined, 80
.dwcfi undefined, 81
.dwcfi undefined, 82
.dwcfi undefined, 83
.dwcfi undefined, 84
.dwcfi undefined, 85
.dwcfi undefined, 86
.dwcfi undefined, 87
.dwcfi undefined, 88
.dwcfi undefined, 89
.dwcfi undefined, 90
.dwcfi undefined, 91
.dwendentry
;***************************************************************
;* DWARF REGISTER MAP *
;***************************************************************
$C$DW$43 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0")
.dwattr $C$DW$43, DW_AT_location[DW_OP_reg0]
$C$DW$44 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0")
.dwattr $C$DW$44, DW_AT_location[DW_OP_reg1]
$C$DW$45 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0_G")
.dwattr $C$DW$45, DW_AT_location[DW_OP_reg2]
$C$DW$46 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1")
.dwattr $C$DW$46, DW_AT_location[DW_OP_reg3]
$C$DW$47 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1")
.dwattr $C$DW$47, DW_AT_location[DW_OP_reg4]
$C$DW$48 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1_G")
.dwattr $C$DW$48, DW_AT_location[DW_OP_reg5]
$C$DW$49 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2")
.dwattr $C$DW$49, DW_AT_location[DW_OP_reg6]
$C$DW$50 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2")
.dwattr $C$DW$50, DW_AT_location[DW_OP_reg7]
$C$DW$51 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2_G")
.dwattr $C$DW$51, DW_AT_location[DW_OP_reg8]
$C$DW$52 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3")
.dwattr $C$DW$52, DW_AT_location[DW_OP_reg9]
$C$DW$53 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3")
.dwattr $C$DW$53, DW_AT_location[DW_OP_reg10]
$C$DW$54 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3_G")
.dwattr $C$DW$54, DW_AT_location[DW_OP_reg11]
$C$DW$55 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T0")
.dwattr $C$DW$55, DW_AT_location[DW_OP_reg12]
$C$DW$56 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T1")
.dwattr $C$DW$56, DW_AT_location[DW_OP_reg13]
$C$DW$57 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T2")
.dwattr $C$DW$57, DW_AT_location[DW_OP_reg14]
$C$DW$58 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T3")
.dwattr $C$DW$58, DW_AT_location[DW_OP_reg15]
$C$DW$59 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR0")
.dwattr $C$DW$59, DW_AT_location[DW_OP_reg16]
$C$DW$60 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR0")
.dwattr $C$DW$60, DW_AT_location[DW_OP_reg17]
$C$DW$61 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR1")
.dwattr $C$DW$61, DW_AT_location[DW_OP_reg18]
$C$DW$62 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR1")
.dwattr $C$DW$62, DW_AT_location[DW_OP_reg19]
$C$DW$63 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR2")
.dwattr $C$DW$63, DW_AT_location[DW_OP_reg20]
$C$DW$64 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR2")
.dwattr $C$DW$64, DW_AT_location[DW_OP_reg21]
$C$DW$65 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR3")
.dwattr $C$DW$65, DW_AT_location[DW_OP_reg22]
$C$DW$66 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR3")
.dwattr $C$DW$66, DW_AT_location[DW_OP_reg23]
$C$DW$67 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR4")
.dwattr $C$DW$67, DW_AT_location[DW_OP_reg24]
$C$DW$68 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR4")
.dwattr $C$DW$68, DW_AT_location[DW_OP_reg25]
$C$DW$69 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR5")
.dwattr $C$DW$69, DW_AT_location[DW_OP_reg26]
$C$DW$70 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR5")
.dwattr $C$DW$70, DW_AT_location[DW_OP_reg27]
$C$DW$71 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR6")
.dwattr $C$DW$71, DW_AT_location[DW_OP_reg28]
$C$DW$72 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR6")
.dwattr $C$DW$72, DW_AT_location[DW_OP_reg29]
$C$DW$73 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR7")
.dwattr $C$DW$73, DW_AT_location[DW_OP_reg30]
$C$DW$74 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR7")
.dwattr $C$DW$74, DW_AT_location[DW_OP_reg31]
$C$DW$75 .dwtag DW_TAG_TI_assign_register, DW_AT_name("FP")
.dwattr $C$DW$75, DW_AT_location[DW_OP_regx 0x20]
$C$DW$76 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XFP")
.dwattr $C$DW$76, DW_AT_location[DW_OP_regx 0x21]
$C$DW$77 .dwtag DW_TAG_TI_assign_register, DW_AT_name("PC")
.dwattr $C$DW$77, DW_AT_location[DW_OP_regx 0x22]
$C$DW$78 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SP")
.dwattr $C$DW$78, DW_AT_location[DW_OP_regx 0x23]
$C$DW$79 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XSP")
.dwattr $C$DW$79, DW_AT_location[DW_OP_regx 0x24]
$C$DW$80 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BKC")
.dwattr $C$DW$80, DW_AT_location[DW_OP_regx 0x25]
$C$DW$81 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BK03")
.dwattr $C$DW$81, DW_AT_location[DW_OP_regx 0x26]
$C$DW$82 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BK47")
.dwattr $C$DW$82, DW_AT_location[DW_OP_regx 0x27]
$C$DW$83 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST0")
.dwattr $C$DW$83, DW_AT_location[DW_OP_regx 0x28]
$C$DW$84 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST1")
.dwattr $C$DW$84, DW_AT_location[DW_OP_regx 0x29]
$C$DW$85 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST2")
.dwattr $C$DW$85, DW_AT_location[DW_OP_regx 0x2a]
$C$DW$86 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST3")
.dwattr $C$DW$86, DW_AT_location[DW_OP_regx 0x2b]
$C$DW$87 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP")
.dwattr $C$DW$87, DW_AT_location[DW_OP_regx 0x2c]
$C$DW$88 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP05")
.dwattr $C$DW$88, DW_AT_location[DW_OP_regx 0x2d]
$C$DW$89 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP67")
.dwattr $C$DW$89, DW_AT_location[DW_OP_regx 0x2e]
$C$DW$90 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRC0")
.dwattr $C$DW$90, DW_AT_location[DW_OP_regx 0x2f]
$C$DW$91 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA0")
.dwattr $C$DW$91, DW_AT_location[DW_OP_regx 0x30]
$C$DW$92 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA0_H")
.dwattr $C$DW$92, DW_AT_location[DW_OP_regx 0x31]
$C$DW$93 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA0")
.dwattr $C$DW$93, DW_AT_location[DW_OP_regx 0x32]
$C$DW$94 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA0_H")
.dwattr $C$DW$94, DW_AT_location[DW_OP_regx 0x33]
$C$DW$95 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRS1")
.dwattr $C$DW$95, DW_AT_location[DW_OP_regx 0x34]
$C$DW$96 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRC1")
.dwattr $C$DW$96, DW_AT_location[DW_OP_regx 0x35]
$C$DW$97 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA1")
.dwattr $C$DW$97, DW_AT_location[DW_OP_regx 0x36]
$C$DW$98 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA1_H")
.dwattr $C$DW$98, DW_AT_location[DW_OP_regx 0x37]
$C$DW$99 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA1")
.dwattr $C$DW$99, DW_AT_location[DW_OP_regx 0x38]
$C$DW$100 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA1_H")
.dwattr $C$DW$100, DW_AT_location[DW_OP_regx 0x39]
$C$DW$101 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CSR")
.dwattr $C$DW$101, DW_AT_location[DW_OP_regx 0x3a]
$C$DW$102 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RPTC")
.dwattr $C$DW$102, DW_AT_location[DW_OP_regx 0x3b]
$C$DW$103 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CDP")
.dwattr $C$DW$103, DW_AT_location[DW_OP_regx 0x3c]
$C$DW$104 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XCDP")
.dwattr $C$DW$104, DW_AT_location[DW_OP_regx 0x3d]
$C$DW$105 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TRN0")
.dwattr $C$DW$105, DW_AT_location[DW_OP_regx 0x3e]
$C$DW$106 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TRN1")
.dwattr $C$DW$106, DW_AT_location[DW_OP_regx 0x3f]
$C$DW$107 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA01")
.dwattr $C$DW$107, DW_AT_location[DW_OP_regx 0x40]
$C$DW$108 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA23")
.dwattr $C$DW$108, DW_AT_location[DW_OP_regx 0x41]
$C$DW$109 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA45")
.dwattr $C$DW$109, DW_AT_location[DW_OP_regx 0x42]
$C$DW$110 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA67")
.dwattr $C$DW$110, DW_AT_location[DW_OP_regx 0x43]
$C$DW$111 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSAC")
.dwattr $C$DW$111, DW_AT_location[DW_OP_regx 0x44]
$C$DW$112 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CARRY")
.dwattr $C$DW$112, DW_AT_location[DW_OP_regx 0x45]
$C$DW$113 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TC1")
.dwattr $C$DW$113, DW_AT_location[DW_OP_regx 0x46]
$C$DW$114 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TC2")
.dwattr $C$DW$114, DW_AT_location[DW_OP_regx 0x47]
$C$DW$115 .dwtag DW_TAG_TI_assign_register, DW_AT_name("M40")
.dwattr $C$DW$115, DW_AT_location[DW_OP_regx 0x48]
$C$DW$116 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SXMD")
.dwattr $C$DW$116, DW_AT_location[DW_OP_regx 0x49]
$C$DW$117 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ARMS")
.dwattr $C$DW$117, DW_AT_location[DW_OP_regx 0x4a]
$C$DW$118 .dwtag DW_TAG_TI_assign_register, DW_AT_name("C54CM")
.dwattr $C$DW$118, DW_AT_location[DW_OP_regx 0x4b]
$C$DW$119 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SATA")
.dwattr $C$DW$119, DW_AT_location[DW_OP_regx 0x4c]
$C$DW$120 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SATD")
.dwattr $C$DW$120, DW_AT_location[DW_OP_regx 0x4d]
$C$DW$121 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RDM")
.dwattr $C$DW$121, DW_AT_location[DW_OP_regx 0x4e]
$C$DW$122 .dwtag DW_TAG_TI_assign_register, DW_AT_name("FRCT")
.dwattr $C$DW$122, DW_AT_location[DW_OP_regx 0x4f]
$C$DW$123 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SMUL")
.dwattr $C$DW$123, DW_AT_location[DW_OP_regx 0x50]
$C$DW$124 .dwtag DW_TAG_TI_assign_register, DW_AT_name("INTM")
.dwattr $C$DW$124, DW_AT_location[DW_OP_regx 0x51]
$C$DW$125 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR0LC")
.dwattr $C$DW$125, DW_AT_location[DW_OP_regx 0x52]
$C$DW$126 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR1LC")
.dwattr $C$DW$126, DW_AT_location[DW_OP_regx 0x53]
$C$DW$127 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR2LC")
.dwattr $C$DW$127, DW_AT_location[DW_OP_regx 0x54]
$C$DW$128 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR3LC")
.dwattr $C$DW$128, DW_AT_location[DW_OP_regx 0x55]
$C$DW$129 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR4LC")
.dwattr $C$DW$129, DW_AT_location[DW_OP_regx 0x56]
$C$DW$130 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR5LC")
.dwattr $C$DW$130, DW_AT_location[DW_OP_regx 0x57]
$C$DW$131 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR6LC")
.dwattr $C$DW$131, DW_AT_location[DW_OP_regx 0x58]
$C$DW$132 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR7LC")
.dwattr $C$DW$132, DW_AT_location[DW_OP_regx 0x59]
$C$DW$133 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CDPLC")
.dwattr $C$DW$133, DW_AT_location[DW_OP_regx 0x5a]
$C$DW$134 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CIE_RETA")
.dwattr $C$DW$134, DW_AT_location[DW_OP_regx 0x5b]
.dwendtag $C$DW$CU
| 43.464161 | 134 | 0.60724 |
dd58d000a42a669eb46db4cc2d1da0bb0a093dcf | 1,147 | asm | Assembly | Engine Hacks/Skill System/Teq Skills/FE8-Capture/FE8-Capture/After_Battle_Rescue.asm | sme23/MekkahRestrictedHackComp1 | 1cc9d2fec557424f358b6bfa21f9f3bb6faf2978 | [
"CC0-1.0"
] | null | null | null | Engine Hacks/Skill System/Teq Skills/FE8-Capture/FE8-Capture/After_Battle_Rescue.asm | sme23/MekkahRestrictedHackComp1 | 1cc9d2fec557424f358b6bfa21f9f3bb6faf2978 | [
"CC0-1.0"
] | null | null | null | Engine Hacks/Skill System/Teq Skills/FE8-Capture/FE8-Capture/After_Battle_Rescue.asm | sme23/MekkahRestrictedHackComp1 | 1cc9d2fec557424f358b6bfa21f9f3bb6faf2978 | [
"CC0-1.0"
] | null | null | null | .thumb
.org 0x0
@bl'd to from 328F0
@r4=defender, r6=attacker battle structs
@r7 should contain char data ptr of person dropping item, 0 if capturing; r5 has char data of receiver
push {r14}
ldrb r5,[r6,#0xB] @attacker allegiance
ldrb r7,[r4,#0xB] @defender allegiance
ldrb r0,[r4,#0x13] @defender current hp
cmp r0,#0x0
beq GetCharData
ldrb r0,[r6,#0x13] @attacker current hp
cmp r0,#0x0
beq SwitchCharacters
mov r7,#0x0
b GoBack @if neither party is dead, skip this business
SwitchCharacters:
ldrb r7,[r6,#0xB]
ldrb r5,[r4,#0xB]
GetCharData:
ldr r0,Get_Char_Data
mov r14,r0
mov r0,r5
.short 0xF800
mov r5,r0
ldr r0,Get_Char_Data
mov r14,r0
mov r0,r7
.short 0xF800
mov r7,r0
ldr r0,Is_Capture_Set
mov r14,r0
mov r0,r5
.short 0xF800
cmp r0,#0x0
beq GoBack
ldr r0,[r5,#0xC]
mov r1,#0x80
lsl r1,#0x17
mvn r1,r1
and r0,r1
str r0,[r5,#0xC] @remove the 'is capturing' bit
ldr r0,Write_Rescue_Data
mov r14,r0
mov r0,r5
mov r1,r7
.short 0xF800
mov r7,#0x0 @captured units don't drop anything
GoBack:
pop {r0}
bx r0
.align
Get_Char_Data:
.long 0x08019430
Write_Rescue_Data:
.long 0x0801834C
Is_Capture_Set:
@
| 18.5 | 102 | 0.727114 |
00cdfe5963a345b59ca40de6219b7c7efc09e645 | 6,745 | asm | Assembly | tests/034_MOV_with_address_having_SIB_r8-r14.asm | tpisto/pasm | 5ade5841f3493dd8faab17bda3616a6ad25be238 | [
"MIT"
] | 103 | 2015-01-26T16:50:33.000Z | 2021-12-20T04:20:54.000Z | tests/034_MOV_with_address_having_SIB_r8-r14.asm | tpisto/pasm | 5ade5841f3493dd8faab17bda3616a6ad25be238 | [
"MIT"
] | 4 | 2015-10-21T09:15:35.000Z | 2019-08-02T10:47:13.000Z | tests/034_MOV_with_address_having_SIB_r8-r14.asm | tpisto/pasm | 5ade5841f3493dd8faab17bda3616a6ad25be238 | [
"MIT"
] | 16 | 2015-06-01T12:07:02.000Z | 2021-02-09T15:22:22.000Z | ; name: MOV with address having SIB, r8-r12 (rex)
; code: "4F8B14484F8B5448774F8B9448887700004F8B9448AA9988774F8B14884F8B5488774F8B9488887700004F8B9488AA9988774F8B14C84F8B54C8774F8B94C8887700004F8B94C8AA9988774F8B04434F8B4443774F8B8443887700004F8B8443AA9988774F8B04834F8B4483774F8B8483887700004F8B8483AA9988774F8B04C34F8B44C3774F8B84C3887700004F8B84C3AA9988774F8B5448894F8B94487888FFFF4F8B9448566677884F8B5488894F8B94887888FFFF4F8B9488566677884F8B54C8894F8B94C87888FFFF4F8B94C8566677884F8B4443894F8B84437888FFFF4F8B8443566677884F8B4483894F8B84837888FFFF4F8B8483566677884F8B44C3894F8B84C37888FFFF4F8B84C3566677884F8B246E4F8B646E774F8BA46E887700004F8BA46EAA9988774F8B24AE4F8B64AE774F8BA4AE887700004F8BA4AEAA9988774F8B24EE4F8B64EE774F8BA4EE887700004F8BA4EEAA9988774F8B34774F8B7477774F8BB477887700004F8BB477AA9988774F8B34B74F8B74B7774F8BB4B7887700004F8BB4B7AA9988774F8B34F74F8B74F7774F8BB4F7887700004F8BB4F7AA9988774F8B646E894F8BA46E7888FFFF4F8BA46E566677884F8B64AE894F8BA4AE7888FFFF4F8BA4AE566677884F8B64EE894F8BA4EE7888FFFF4F8BA4EE566677884F8B7477894F8BB4777888FFFF4F8BB477566677884F8B74B7894F8BB4B77888FFFF4F8BB4B7566677884F8B74F7894F8BB4F77888FFFF4F8BB4F7566677884F8914484F895448774F899448887700004F899448AA9988774F8914884F895488774F899488887700004F899488AA9988774F8914C84F8954C8774F8994C8887700004F8994C8AA9988774F8904434F894443774F898443887700004F898443AA9988774F8904834F894483774F898483887700004F898483AA9988774F8904C34F8944C3774F8984C3887700004F8984C3AA9988774F895448894F8994487888FFFF4F899448566677884F895488894F8994887888FFFF4F899488566677884F8954C8894F8994C87888FFFF4F8994C8566677884F894443894F8984437888FFFF4F898443566677884F894483894F8984837888FFFF4F898483566677884F8944C3894F8984C37888FFFF4F8984C3566677884F89246E4F89646E774F89A46E887700004F89A46EAA9988774F8924AE4F8964AE774F89A4AE887700004F89A4AEAA9988774F8924EE4F8964EE774F89A4EE887700004F89A4EEAA9988774F8934774F897477774F89B477887700004F89B477AA9988774F8934B74F8974B7774F89B4B7887700004F89B4B7AA9988774F8934F74F8974F7774F89B4F7887700004F89B4F7AA9988774F89646E894F89A46E7888FFFF4F89A46E566677884F8964AE894F89A4AE7888FFFF4F89A4AE566677884F8964EE894F89A4EE7888FFFF4F89A4EE566677884F897477894F89B4777888FFFF4F89B477566677884F8974B7894F89B4B77888FFFF4F89B4B7566677884F8974F7894F89B4F77888FFFF4F89B4F756667788"
[bits 64]
mov r10, [r9*2+r8]
mov r10, [r9*2+r8+0x77]
mov r10, [r9*2+r8+0x7788]
mov r10, [r9*2+r8+0x778899AA]
mov r10, [r9*4+r8]
mov r10, [r9*4+r8+0x77]
mov r10, [r9*4+r8+0x7788]
mov r10, [r9*4+r8+0x778899AA]
mov r10, [r9*8+r8]
mov r10, [r9*8+r8+0x77]
mov r10, [r9*8+r8+0x7788]
mov r10, [r9*8+r8+0x778899AA]
mov r8, [r8*2+r11]
mov r8, [r8*2+r11+0x77]
mov r8, [r8*2+r11+0x7788]
mov r8, [r8*2+r11+0x778899AA]
mov r8, [r8*4+r11]
mov r8, [r8*4+r11+0x77]
mov r8, [r8*4+r11+0x7788]
mov r8, [r8*4+r11+0x778899AA]
mov r8, [r8*8+r11]
mov r8, [r8*8+r11+0x77]
mov r8, [r8*8+r11+0x7788]
mov r8, [r8*8+r11+0x778899AA]
mov r10, [r9*2+r8-0x77]
mov r10, [r9*2+r8-0x7788]
mov r10, [r9*2+r8-0x778899AA]
mov r10, [r9*4+r8-0x77]
mov r10, [r9*4+r8-0x7788]
mov r10, [r9*4+r8-0x778899AA]
mov r10, [r9*8+r8-0x77]
mov r10, [r9*8+r8-0x7788]
mov r10, [r9*8+r8-0x778899AA]
mov r8, [r8*2+r11-0x77]
mov r8, [r8*2+r11-0x7788]
mov r8, [r8*2+r11-0x778899AA]
mov r8, [r8*4+r11-0x77]
mov r8, [r8*4+r11-0x7788]
mov r8, [r8*4+r11-0x778899AA]
mov r8, [r8*8+r11-0x77]
mov r8, [r8*8+r11-0x7788]
mov r8, [r8*8+r11-0x778899AA]
mov r12, [r13*2+r14]
mov r12, [r13*2+r14+0x77]
mov r12, [r13*2+r14+0x7788]
mov r12, [r13*2+r14+0x778899AA]
mov r12, [r13*4+r14]
mov r12, [r13*4+r14+0x77]
mov r12, [r13*4+r14+0x7788]
mov r12, [r13*4+r14+0x778899AA]
mov r12, [r13*8+r14]
mov r12, [r13*8+r14+0x77]
mov r12, [r13*8+r14+0x7788]
mov r12, [r13*8+r14+0x778899AA]
mov r14, [r14*2+r15]
mov r14, [r14*2+r15+0x77]
mov r14, [r14*2+r15+0x7788]
mov r14, [r14*2+r15+0x778899AA]
mov r14, [r14*4+r15]
mov r14, [r14*4+r15+0x77]
mov r14, [r14*4+r15+0x7788]
mov r14, [r14*4+r15+0x778899AA]
mov r14, [r14*8+r15]
mov r14, [r14*8+r15+0x77]
mov r14, [r14*8+r15+0x7788]
mov r14, [r14*8+r15+0x778899AA]
mov r12, [r13*2+r14-0x77]
mov r12, [r13*2+r14-0x7788]
mov r12, [r13*2+r14-0x778899AA]
mov r12, [r13*4+r14-0x77]
mov r12, [r13*4+r14-0x7788]
mov r12, [r13*4+r14-0x778899AA]
mov r12, [r13*8+r14-0x77]
mov r12, [r13*8+r14-0x7788]
mov r12, [r13*8+r14-0x778899AA]
mov r14, [r14*2+r15-0x77]
mov r14, [r14*2+r15-0x7788]
mov r14, [r14*2+r15-0x778899AA]
mov r14, [r14*4+r15-0x77]
mov r14, [r14*4+r15-0x7788]
mov r14, [r14*4+r15-0x778899AA]
mov r14, [r14*8+r15-0x77]
mov r14, [r14*8+r15-0x7788]
mov r14, [r14*8+r15-0x778899AA]
mov [r9*2+r8], r10
mov [r9*2+r8+0x77], r10
mov [r9*2+r8+0x7788], r10
mov [r9*2+r8+0x778899AA], r10
mov [r9*4+r8], r10
mov [r9*4+r8+0x77], r10
mov [r9*4+r8+0x7788], r10
mov [r9*4+r8+0x778899AA], r10
mov [r9*8+r8], r10
mov [r9*8+r8+0x77], r10
mov [r9*8+r8+0x7788], r10
mov [r9*8+r8+0x778899AA], r10
mov [r8*2+r11], r8
mov [r8*2+r11+0x77], r8
mov [r8*2+r11+0x7788], r8
mov [r8*2+r11+0x778899AA], r8
mov [r8*4+r11], r8
mov [r8*4+r11+0x77], r8
mov [r8*4+r11+0x7788], r8
mov [r8*4+r11+0x778899AA], r8
mov [r8*8+r11], r8
mov [r8*8+r11+0x77], r8
mov [r8*8+r11+0x7788], r8
mov [r8*8+r11+0x778899AA], r8
mov [r9*2+r8-0x77], r10
mov [r9*2+r8-0x7788], r10
mov [r9*2+r8-0x778899AA], r10
mov [r9*4+r8-0x77], r10
mov [r9*4+r8-0x7788], r10
mov [r9*4+r8-0x778899AA], r10
mov [r9*8+r8-0x77], r10
mov [r9*8+r8-0x7788], r10
mov [r9*8+r8-0x778899AA], r10
mov [r8*2+r11-0x77], r8
mov [r8*2+r11-0x7788], r8
mov [r8*2+r11-0x778899AA], r8
mov [r8*4+r11-0x77], r8
mov [r8*4+r11-0x7788], r8
mov [r8*4+r11-0x778899AA], r8
mov [r8*8+r11-0x77], r8
mov [r8*8+r11-0x7788], r8
mov [r8*8+r11-0x778899AA], r8
mov [r13*2+r14], r12
mov [r13*2+r14+0x77], r12
mov [r13*2+r14+0x7788], r12
mov [r13*2+r14+0x778899AA], r12
mov [r13*4+r14], r12
mov [r13*4+r14+0x77], r12
mov [r13*4+r14+0x7788], r12
mov [r13*4+r14+0x778899AA], r12
mov [r13*8+r14], r12
mov [r13*8+r14+0x77], r12
mov [r13*8+r14+0x7788], r12
mov [r13*8+r14+0x778899AA], r12
mov [r14*2+r15], r14
mov [r14*2+r15+0x77], r14
mov [r14*2+r15+0x7788], r14
mov [r14*2+r15+0x778899AA], r14
mov [r14*4+r15], r14
mov [r14*4+r15+0x77], r14
mov [r14*4+r15+0x7788], r14
mov [r14*4+r15+0x778899AA], r14
mov [r14*8+r15], r14
mov [r14*8+r15+0x77], r14
mov [r14*8+r15+0x7788], r14
mov [r14*8+r15+0x778899AA], r14
mov [r13*2+r14-0x77], r12
mov [r13*2+r14-0x7788], r12
mov [r13*2+r14-0x778899AA], r12
mov [r13*4+r14-0x77], r12
mov [r13*4+r14-0x7788], r12
mov [r13*4+r14-0x778899AA], r12
mov [r13*8+r14-0x77], r12
mov [r13*8+r14-0x7788], r12
mov [r13*8+r14-0x778899AA], r12
mov [r14*2+r15-0x77], r14
mov [r14*2+r15-0x7788], r14
mov [r14*2+r15-0x778899AA], r14
mov [r14*4+r15-0x77], r14
mov [r14*4+r15-0x7788], r14
mov [r14*4+r15-0x778899AA], r14
mov [r14*8+r15-0x77], r14
mov [r14*8+r15-0x7788], r14
mov [r14*8+r15-0x778899AA], r14 | 38.764368 | 2,218 | 0.775241 |
2330ef45cdba888c61e000e4939538e66e6d0d48 | 2,445 | asm | Assembly | chap18/ex12/ternary_avx512.asm | JamesType/optimization-manual | 61cdcebb16e0768a6ab7e85ed535e64e9d8cc31a | [
"0BSD"
] | 374 | 2021-06-08T10:42:01.000Z | 2022-03-29T14:21:45.000Z | chap18/ex12/ternary_avx512.asm | JamesType/optimization-manual | 61cdcebb16e0768a6ab7e85ed535e64e9d8cc31a | [
"0BSD"
] | 1 | 2021-06-11T20:24:02.000Z | 2021-06-11T20:24:02.000Z | chap18/ex12/ternary_avx512.asm | JamesType/optimization-manual | 61cdcebb16e0768a6ab7e85ed535e64e9d8cc31a | [
"0BSD"
] | 39 | 2021-06-08T11:25:29.000Z | 2022-03-05T05:14:17.000Z | ;
; Copyright (C) 2021 by Intel Corporation
;
; Permission to use, copy, modify, and/or distribute this software for any
; purpose with or without fee is hereby granted.
;
; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
; AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
; OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
; PERFORMANCE OF THIS SOFTWARE.
;
; .globl ternary_avx512
; void ternary_avx512(uint32_t *dest, const uint32_t *src1, const uint32_t *src2, const uint32_t *src3, uint64_t len)
; On entry:
; rcx = dest
; rdx = src1
; r8 = src2
; r9 = src3
; [rsp+40] = len ( must be divisible by 32 )
.code
ternary_avx512 PROC public
mov rax,[rsp+40]
sub rsp, 168
vmovaps xmmword ptr[rsp], xmm6
vmovaps xmmword ptr[rsp+16], xmm7
vmovaps xmmword ptr[rsp+32], xmm8
vmovaps xmmword ptr[rsp+48], xmm9
vmovaps xmmword ptr[rsp+64], xmm10
vmovaps xmmword ptr[rsp+80], xmm11
vmovaps xmmword ptr[rsp+96], xmm12
vmovaps xmmword ptr[rsp+112], xmm13
vmovaps xmmword ptr[rsp+128], xmm14
vmovaps xmmword ptr[rsp+144], xmm15
xor r10, r10
mainloop:
vmovups zmm2, zmmword ptr [rdx+r10*4]
vmovups zmm4, zmmword ptr [rdx+r10*4+40h]
vmovups zmm6, zmmword ptr [r8+r10*4]
vmovups zmm8, zmmword ptr [r8+r10*4+40h]
vmovups zmm3, zmmword ptr [r9+r10*4]
vmovups zmm5, zmmword ptr [r9+r10*4+40h]
vpandd zmm0, zmm2, zmm6
vpandd zmm1, zmm4, zmm8
vpxord zmm7, zmm2, zmm3
vpxord zmm9, zmm4, zmm5
vpandd zmm10, zmm0, zmm3
vpandd zmm12, zmm1, zmm5
vpandnd zmm11, zmm6, zmm7
vpandnd zmm13, zmm8, zmm9
vpord zmm14, zmm10, zmm11
vpord zmm15, zmm12, zmm13
vmovups zmmword ptr [rcx+r10*4], zmm14
vmovups zmmword ptr [rcx+r10*4+40h], zmm15
add r10, 20h
cmp r10, rax
jb mainloop
vzeroupper
vmovaps xmm6, xmmword ptr[rsp]
vmovaps xmm7, xmmword ptr[rsp+16]
vmovaps xmm8, xmmword ptr[rsp+32]
vmovaps xmm9, xmmword ptr[rsp+48]
vmovaps xmm10, xmmword ptr[rsp+64]
vmovaps xmm11, xmmword ptr[rsp+80]
vmovaps xmm12, xmmword ptr[rsp+96]
vmovaps xmm13, xmmword ptr[rsp+112]
vmovaps xmm14, xmmword ptr[rsp+128]
vmovaps xmm15, xmmword ptr[rsp+144]
add rsp, 168
ret
ternary_avx512 ENDP
end | 28.430233 | 118 | 0.732106 |
a819651e11f69820011d3cc7c46c29af63997843 | 209 | asm | Assembly | asm/boot_sect_segmentation.asm | soragui/makeOS | c721b8c91d5458dc745c70eb7d8fc6cf11088b93 | [
"MIT"
] | null | null | null | asm/boot_sect_segmentation.asm | soragui/makeOS | c721b8c91d5458dc745c70eb7d8fc6cf11088b93 | [
"MIT"
] | null | null | null | asm/boot_sect_segmentation.asm | soragui/makeOS | c721b8c91d5458dc745c70eb7d8fc6cf11088b93 | [
"MIT"
] | null | null | null |
mov ah, 0x0E
mov al, [the_secret]
int 0x10 ; we already saw this doesn't work, right?
mov bx, 0x7C0
mov ds, bx
mov al, [the_secret]
int 0x10
jmp $
the_secret:
db ')'
times 510-($-$$) db 0
dw 0xAA55
| 10.45 | 51 | 0.645933 |
06396230623fb35079733b9654fd240215aa6898 | 6,665 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2341.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2341.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2341.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 %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x51bf, %rsi
lea addresses_normal_ht+0xd1b, %rdi
nop
nop
inc %rax
mov $99, %rcx
rep movsw
nop
nop
and %rcx, %rcx
lea addresses_D_ht+0x2b9b, %r14
cmp %r15, %r15
mov $0x6162636465666768, %rsi
movq %rsi, %xmm6
vmovups %ymm6, (%r14)
cmp %rcx, %rcx
lea addresses_D_ht+0x18f1b, %rcx
clflush (%rcx)
nop
nop
nop
xor %r15, %r15
movb (%rcx), %al
nop
nop
cmp $37030, %r15
lea addresses_A_ht+0x9aca, %rsi
lea addresses_UC_ht+0x11d1b, %rdi
sub %r8, %r8
mov $40, %rcx
rep movsl
inc %rcx
lea addresses_D_ht+0x611b, %r8
nop
nop
nop
nop
sub $31545, %r14
mov (%r8), %rsi
nop
nop
nop
nop
xor $3275, %r15
lea addresses_WT_ht+0x787b, %r15
nop
nop
nop
nop
and $48468, %r14
movb (%r15), %cl
nop
nop
nop
inc %r15
lea addresses_normal_ht+0x4e9f, %r15
nop
nop
and %r14, %r14
mov $0x6162636465666768, %r8
movq %r8, (%r15)
nop
nop
nop
sub $8472, %r14
lea addresses_UC_ht+0xd91b, %r14
nop
nop
nop
nop
nop
and $27504, %r15
vmovups (%r14), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $1, %xmm7, %rcx
sub %r8, %r8
lea addresses_UC_ht+0xceb3, %rax
clflush (%rax)
add %r14, %r14
movw $0x6162, (%rax)
and $40551, %rcx
lea addresses_UC_ht+0x851b, %rsi
nop
nop
dec %rcx
vmovups (%rsi), %ymm4
vextracti128 $1, %ymm4, %xmm4
vpextrq $0, %xmm4, %r15
inc %rax
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r15
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r14
push %r8
push %rbp
push %rcx
// Store
lea addresses_WC+0xf263, %r11
clflush (%r11)
nop
nop
nop
nop
nop
cmp $35743, %r8
movb $0x51, (%r11)
dec %r14
// Faulty Load
lea addresses_UC+0x2d1b, %r11
nop
nop
nop
nop
dec %r10
vmovups (%r11), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %rbp
lea oracles, %r11
and $0xff, %rbp
shlq $12, %rbp
mov (%r11,%rbp,1), %rbp
pop %rcx
pop %rbp
pop %r8
pop %r14
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_UC', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WC', 'same': False, 'size': 1, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_UC', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 32, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 1, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 1, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 8, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'37': 21829}
37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37
*/
| 38.75 | 2,999 | 0.655664 |
2c19a14e63cadb27896bbc50f5ab1d612efe2308 | 254 | asm | Assembly | oeis/059/A059142.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/059/A059142.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/059/A059142.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A059142: A hierarchical sequence (S(W2{3}*) - see A059126).
; Submitted by Jon Maiga
; 11,40,105,242,523,1092,2237,4534,9135,18344,36769,73626,147347,294796,589701
mov $1,2
pow $1,$0
mul $1,9
sub $1,$0
sub $0,$1
mul $0,3
sub $1,$0
mov $0,$1
sub $0,25
| 18.142857 | 78 | 0.665354 |
77ae0825de0644de33d0ef5ed1b3de1bc742ec4a | 2,365 | asm | Assembly | Borland/CBuilder5/Source/RTL/source/math/frexpl.asm | TrevorDArcyEvans/DivingMagpieSoftware | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | 1 | 2021-05-27T10:27:25.000Z | 2021-05-27T10:27:25.000Z | Borland/CBuilder5/Source/RTL/source/math/frexpl.asm | TrevorDArcyEvans/Diving-Magpie-Software | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | null | null | null | Borland/CBuilder5/Source/RTL/source/math/frexpl.asm | TrevorDArcyEvans/Diving-Magpie-Software | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | null | null | null | ;[]-----------------------------------------------------------------[]
;| FREXPL.ASM -- split a long double number |
;[]-----------------------------------------------------------------[]
;
; C/C++ Run Time Library - Version 10.0
;
; Copyright (c) 1991, 2000 by Inprise Corporation
; All Rights Reserved.
;
; $Revision: 9.0 $
;----------------------------------------------------------------------
; function(s)
; frexpl - splits a long double number into mantissa and exponent
;----------------------------------------------------------------------
include RULES.ASI
include _MATH.INC
; Segments Definitions
Header@
;--------------------------------------------------------------------------
;
;Name frexpl - splits a long double number into mantissa and exponent
;
;Usage long double frexpl(long double value, int *expP);
;
;Prototype in math.h
;
;Description Split a floating point number into its exponent and
; fractional parts, with the exponent placed into *expP, and
; the fraction is the function return value.
;
;Return value frexpl returns value - (*expP = chop (value));
;
;-------------------------------------------------------------------------
Code_Seg@
Func@ frexpl, _EXPFUNC, _RTLENTRY, <longdouble value>, <pointer expP>
Locals@ <int statword> ; volatile unsigned statword;
Link@
FLD value.longdouble
mov ecx, expP
mov dword ptr [ecx], 0
; if value was +-0, return it
FTST
FSTSW statword.w0
FWAIT
mov ah, statword.by1
sahf
jz done
FXTRACT ; ST(1) = exponent, (pushed) ST = fraction
FXCH
; The FXTRACT instruction normalizes the fraction 1 bit higher than
; wanted for the definition of frexpl() so we need to tweak the result
; by scaling the fraction down and incrementing the exponent.
FISTP dword ptr [ecx]
FLD1
FCHS
FXCH
FSCALE ; fraction scaled as C expects
inc dword ptr [ecx] ; exponent biased to match
fstp_st1 ; discard -1, leave fraction as TOS
done:
Unlink@
Return@
EndFunc@ frexpl
Code_EndS@
end
| 27.5 | 80 | 0.471459 |
ae3d8762ab41ac88921cb108ce4cfb450c515383 | 2,307 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_12_1874.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_12_1874.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_12_1874.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 %r8
lea addresses_WC_ht+0x109b9, %r10
nop
nop
nop
nop
and $48778, %r13
movups (%r10), %xmm4
vpextrq $0, %xmm4, %r8
nop
nop
nop
nop
add $3317, %r11
pop %r8
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r8
push %r9
push %rbp
push %rcx
push %rdx
// Store
mov $0x1a9, %rbp
nop
nop
nop
dec %r8
movl $0x51525354, (%rbp)
sub $50086, %r13
// Store
lea addresses_WC+0x19439, %r9
nop
nop
nop
nop
nop
and $61491, %r12
movw $0x5152, (%r9)
nop
nop
nop
nop
nop
add $39919, %r8
// Load
lea addresses_WT+0x2c65, %r12
nop
nop
nop
nop
nop
inc %r9
vmovups (%r12), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %rcx
and %r9, %r9
// Store
mov $0x719, %rdx
nop
nop
inc %r12
movb $0x51, (%rdx)
nop
nop
nop
nop
nop
and $43764, %rbp
// Store
lea addresses_WC+0x1150b, %r8
add %rbp, %rbp
mov $0x5152535455565758, %r12
movq %r12, %xmm0
movups %xmm0, (%r8)
nop
nop
nop
and %r8, %r8
// Faulty Load
lea addresses_RW+0x13899, %rdx
and %r13, %r13
mov (%rdx), %r12
lea oracles, %r9
and $0xff, %r12
shlq $12, %r12
mov (%r9,%r12,1), %r12
pop %rdx
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 4, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 4, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 1, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': True, 'congruent': 7, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 1, 'size': 16, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 5, 'size': 16, 'same': False, 'NT': False}}
{'32': 12}
32 32 32 32 32 32 32 32 32 32 32 32
*/
| 17.610687 | 125 | 0.632857 |
fd549eb372efec7ca53ef373ad0b358bcb666471 | 6,705 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2.log_2324_1735.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2.log_2324_1735.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2.log_2324_1735.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 %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x4915, %rsi
lea addresses_D_ht+0xd95, %rdi
nop
nop
sub %rbp, %rbp
mov $43, %rcx
rep movsq
nop
xor %r11, %r11
lea addresses_normal_ht+0x16b15, %rsi
lea addresses_WT_ht+0x1612b, %rdi
nop
and $337, %r10
mov $50, %rcx
rep movsw
nop
nop
nop
dec %rbp
lea addresses_UC_ht+0x1dd15, %r10
nop
xor %rax, %rax
mov $0x6162636465666768, %rbp
movq %rbp, %xmm3
vmovups %ymm3, (%r10)
nop
nop
nop
nop
cmp $63492, %r11
lea addresses_UC_ht+0x19210, %r10
sub $22730, %rdi
movw $0x6162, (%r10)
nop
nop
nop
xor $9563, %rax
lea addresses_WT_ht+0x1db15, %rax
nop
nop
nop
and $11680, %rbp
movl $0x61626364, (%rax)
nop
nop
nop
nop
xor $32750, %rdi
lea addresses_WC_ht+0x12cad, %rax
nop
nop
sub $32494, %rbp
movb $0x61, (%rax)
nop
nop
nop
nop
nop
cmp %r11, %r11
lea addresses_D_ht+0xe515, %rsi
lea addresses_D_ht+0xa855, %rdi
add $36500, %r8
mov $85, %rcx
rep movsl
nop
nop
nop
nop
cmp %rcx, %rcx
lea addresses_normal_ht+0x1a125, %rcx
nop
nop
nop
cmp $22157, %r11
movb $0x61, (%rcx)
nop
nop
nop
nop
add %r11, %r11
lea addresses_WT_ht+0x14915, %rsi
lea addresses_normal_ht+0x8315, %rdi
nop
add $18233, %r11
mov $101, %rcx
rep movsw
nop
nop
nop
nop
nop
add $539, %r11
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r8
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r14
push %rbp
push %rcx
push %rdx
// Store
mov $0xb87, %r10
clflush (%r10)
nop
nop
add $43846, %rdx
movl $0x51525354, (%r10)
nop
nop
nop
nop
nop
xor $14835, %rcx
// Store
lea addresses_D+0xb315, %r10
nop
nop
xor %r14, %r14
movb $0x51, (%r10)
nop
nop
nop
nop
nop
xor %rbp, %rbp
// Faulty Load
lea addresses_D+0xb315, %r13
and %rdx, %rdx
movb (%r13), %cl
lea oracles, %r10
and $0xff, %rcx
shlq $12, %rcx
mov (%r10,%rcx,1), %rcx
pop %rdx
pop %rcx
pop %rbp
pop %r14
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}}
{'51': 2324}
51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51
*/
| 36.048387 | 2,999 | 0.65742 |
43175982a93ddcdcab743fbbf3e26a619e2fe288 | 362 | asm | Assembly | oeis/214/A214260.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/214/A214260.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/214/A214260.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A214260: First differences of A052980.
; Submitted by Christian Krause
; 0,1,3,6,13,29,64,141,311,686,1513,3337,7360,16233,35803,78966,174165,384133,847232,1868629,4121391,9090014,20048657,44218705,97527424,215103505,474425715,1046378854,2307861213
mov $1,1
mov $3,1
lpb $0
sub $0,1
add $2,$1
add $1,$4
mov $4,$2
add $2,$3
mov $3,$1
lpe
mov $0,$4
| 22.625 | 177 | 0.709945 |
43f8276c55f68ac30d9498ee363060d132808de2 | 2,465 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_166_1678.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_166_1678.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_166_1678.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xb3a1, %rsi
lea addresses_normal_ht+0x12ba1, %rdi
nop
nop
nop
cmp $12568, %r12
mov $18, %rcx
rep movsb
nop
nop
nop
cmp $40910, %r9
lea addresses_WC_ht+0x15da1, %r13
nop
nop
nop
nop
nop
add %rdi, %rdi
movl $0x61626364, (%r13)
dec %r9
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
// Store
lea addresses_D+0x10661, %rbx
clflush (%rbx)
nop
nop
nop
sub $14004, %rbp
movw $0x5152, (%rbx)
nop
nop
nop
nop
nop
sub %r10, %r10
// REPMOV
mov $0xda1, %rsi
mov $0x61, %rdi
nop
nop
nop
dec %rbx
mov $86, %rcx
rep movsw
nop
nop
xor $21891, %rcx
// Faulty Load
lea addresses_D+0x193a1, %rsi
nop
nop
nop
and %r12, %r12
vmovaps (%rsi), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $0, %xmm4, %r11
lea oracles, %rdi
and $0xff, %r11
shlq $12, %r11
mov (%rdi,%r11,1), %r11
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_D', 'congruent': 0}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_D', 'congruent': 5}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 6, 'type': 'addresses_P'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_P'}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': True, 'size': 32, 'type': 'addresses_D', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'congruent': 11, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_A_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WC_ht', 'congruent': 9}, 'OP': 'STOR'}
{'00': 166}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 21.25 | 497 | 0.651927 |
9892c63592ab14673edf8770be6621efde7e7450 | 4,990 | asm | Assembly | programs/libraries/I2C.asm | TheLogicMaster/lm8 | 8f75c0c0b269f699fc3ba574b20ceb1ff86a1b61 | [
"MIT"
] | 10 | 2021-08-29T10:31:45.000Z | 2022-02-26T14:20:54.000Z | programs/libraries/I2C.asm | TheLogicMaster/lm8 | 8f75c0c0b269f699fc3ba574b20ceb1ff86a1b61 | [
"MIT"
] | null | null | null | programs/libraries/I2C.asm | TheLogicMaster/lm8 | 8f75c0c0b269f699fc3ba574b20ceb1ff86a1b61 | [
"MIT"
] | null | null | null | ; I2C utility library
def scl=#6
def sda=#5
; Starts an I2C write mode transmission to address A
; Sets Zero flag if not ACKnowldged and clears it otherwise
i2c_start_write:
push B
ldr $0,B
jsr i2c_start
pop B
ret
; Starts an I2C read mode transmission to address A
; Sets Zero flag if not ACKnowldged and clears it otherwise
i2c_start_read:
push B
ldr $1,B
jsr i2c_start
pop B
ret
; Begin I2C transmission to address A with mode B
; Set B to a 0 for write mode and 1 for read, anything else is undefined behavior
; Sets Zero flag if not ACKnowldged and clears it otherwise
i2c_start:
push A
push B
; Start
push B
ldr {sda},B
out {arduino_output},B
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ldr {scl},B
out {arduino_input},B
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ldr {scl},B
out {arduino_output},B
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop B
; Address byte
lsl
or B
push A
pop B
jsr i2c_send_byte
pop B
pop A
ret
; Stops I2C transmission
i2c_stop:
push H
ldr {sda},H
out {arduino_output},H
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ldr {scl},H
out {arduino_input},H
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ldr {sda},H
out {arduino_input},H
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop H
ret
; Sends a byte from B in current I2C transmission
; Sets Zero flag if not ACKnowldged and clears it otherwise
i2c_send_byte:
push A
push B
push B
pop A
ldr $8,B
i2c_send_byte_loop_:
lsl
push A
jr i2c_send_bit_1_,C
ldr $0,A
jr i2c_send_byte_bit_
i2c_send_bit_1_:
ldr $1,A
i2c_send_byte_bit_:
jsr i2c_send_bit
pop A
dec B
jr i2c_send_byte_loop_,nZ
; Data ACK
ldr $1,B
jsr i2c_send_bit
jr i2c_send_byte_ack_,nZ
ldr $0,B
i2c_send_byte_ack_:
pop B
pop A
ret
; Receive a byte into A in the current I2C transmission
; Set B to 0 if this is the final byte to be received
i2c_receive_byte:
push H
push L
ldr $0,A
ldr #8,H
i2c_receive_byte_loop_:
lsl
ldr $1,L
jsr i2c_send_bit
jr i2c_receive_byte_0_,nZ
or $1
i2c_receive_byte_0_:
dec H
jr i2c_receive_byte_loop_,nZ
; ACK
push A
ldr $0,A
cmp B
pop A
jr i2c_receive_byte_final_,Z
ldr $0,H
jr i2c_receive_byte_ack_
i2c_receive_byte_final_:
ldr $1,H
i2c_receive_byte_ack_:
jsr i2c_send_bit
pop L
pop H
ret
; Sends a single bit based on the Zero Flag.
; Sets Zero Flag based on read value on SCL rise
i2c_send_bit:
push A
; Set SDA pin
jr send_set_sda_0_,Z
ldr {sda},A
out {arduino_input},A
jr send_set_sda_done_
send_set_sda_0_:
ldr {sda},A
out {arduino_output},A
send_set_sda_done_:
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
; Read SDA and invert value
in {arduino_5},A
xor $1
push A
; Set SCL high
ldr {scl},A
out {arduino_input},A
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
; Set SCL low
ldr {scl},A
out {arduino_output},A
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
; Set Zero flag based on read value
pop A
cmp $0
pop A
ret
| 11.188341 | 81 | 0.530461 |
9fa619d0abc0db43a2f40370ef452a9dfa2c940e | 547 | asm | Assembly | oeis/017/A017082.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/017/A017082.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/017/A017082.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A017082: a(n) = (8*n + 1)^6.
; 1,531441,24137569,244140625,1291467969,4750104241,13841287201,34296447249,75418890625,151334226289,282429536481,496981290961,832972004929,1340095640625,2081951752609,3138428376721,4608273662721,6611856250609,9294114390625,12827693806929,17416274304961,23298085122481,30749609024289,40089475140625,51682540549249,65944160601201,83344647990241,104413920565969,129746337890625,160005726539569,195930594145441,238339532186001,288136807515649,346318142640625,413976684737889,492309163417681
mul $0,8
add $0,1
pow $0,6
| 78.142857 | 487 | 0.873857 |
cdf76a9d42d29a6cd2343c1517d5f493458fcef5 | 82 | asm | Assembly | src/main/fragment/mos6502-common/(_deref_qwuc1)_derefidx_vbuyy=vwuc2.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | 2 | 2022-03-01T02:21:14.000Z | 2022-03-01T04:33:35.000Z | src/main/fragment/mos6502-common/(_deref_qwuc1)_derefidx_vbuyy=vwuc2.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | src/main/fragment/mos6502-common/(_deref_qwuc1)_derefidx_vbuyy=vwuc2.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | lda {c1}
sta $fe
lda {c1}+1
sta $ff
lda #<c2
sta ($fe),y
iny
lda #>c2
sta ($fe),y
| 8.2 | 11 | 0.560976 |
ad8d714f41964571dfe89a8f9d5083753243b37b | 733 | asm | Assembly | oeis/308/A308689.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/308/A308689.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/308/A308689.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A308689: a(n) = Sum_{d|n} d^(3*n/d - 2).
; Submitted by Christian Krause
; 1,3,4,21,6,216,8,1289,2197,8828,12,142278,14,526704,1672464,5246993,18,76887669,20,345319966,1163085032,2147498312,24,52918480178,1220703151,137438982060,847293392440,1374672048414,30,31838544112466,32,87962004029473,617673415771152,562949953504868,19170375338568,22309505866508367,38,36028797019094328,450283905953745920,362672715736629234,42,14464151061046810878,44,23058430118074598422,328554993160450718502,147573952589676692816,48,10338809548790270334506,11398895185373193
add $0,1
mov $2,$0
lpb $0
mov $3,$2
dif $3,$0
mov $4,$3
cmp $3,$2
cmp $3,0
mul $3,$0
sub $0,1
mul $4,3
sub $4,2
pow $3,$4
add $1,$3
lpe
add $1,1
mov $0,$1
| 33.318182 | 479 | 0.759891 |
003eba5f60d511ed5f6a26b5f6ae270b9507808a | 21,952 | asm | Assembly | Library/Parse/parseVariables.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Library/Parse/parseVariables.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Library/Parse/parseVariables.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: parseVariables.asm
AUTHOR: John Wedgwood, Jan 16, 1991
METHODS:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
John 1/16/91 Initial revision
witt 10/20/93 DBCS-ized token strings.
DESCRIPTION:
Variables and tables for the parser library.
$Id: parseVariables.asm,v 1.1 97/04/05 01:27:36 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
idata segment
;------------------------------------------------------------------------------
;
; Tables describing the operators and their identifiers. Note that the entries
; in the tables match up. eg: The 2nd entry of the operator2IDTable is
; OP_GREATER_THAN_OR_EQUAL. The 2nd entry in the operator2Table is the 2
; character string corresponding to greater-than-or-equal.
;
; The entries ending with _GRAPHIC represent the graphic characters available
; in PC/GEOS. For example, OP_NOT_EQUAL_GRAPHIC is the same operator as
; OP_NOT_EQUAL, but it shows up on screen as an equals sign with a line through
; it.
;
operator2IDTable OperatorType \
OP_NOT_EQUAL,
OP_GREATER_THAN_OR_EQUAL,
OP_LESS_THAN_OR_EQUAL
; All operator2Table chars here MUST be strict ASCII (even under DBCS)!
operator2Table char '<', '>', ; <> : Not equal
'>', '=', ; >= : Greater than or equal
'<', '=' ; <= : Less than or equal
operatorIDTable OperatorType \
OP_PERCENT_MODULO,
OP_EXPONENTIATION,
OP_MULTIPLICATION,
OP_DIVISION,
OP_ADDITION,
OP_SUBTRACTION_NEGATION,
OP_LESS_THAN,
OP_GREATER_THAN,
OP_EQUAL,
OP_STRING_CONCAT,
OP_DIVISION_GRAPHIC,
OP_NOT_EQUAL_GRAPHIC,
OP_LESS_THAN_OR_EQUAL_GRAPHIC,
OP_GREATER_THAN_OR_EQUAL_GRAPHIC
if DBCS_PCGEOS
if PZ_PCGEOS
; Pizza operatorTable
operatorTable wchar '%', ; Percent/Modulo
'^', ; Exponentiation
'*', ; Multiplication
'/', ; Division
'+', ; Addition
'-', ; Subtraction
'<', ; Less than
'>', ; Greater than
'=', ; Equal
'&', ; String concat
C_DIVISION_SIGN, ; Division graphic char
C_NOT_EQUAL_TO, ; Not equal graphic char
C_LESS_THAN_OVER_EQUAL_TO, ; Less than or equal graphic character
C_GREATER_THAN_OVER_EQUAL_TO ; Greater than or equal graphic char
else
; DBCS operationTable
operatorTable wchar '%', ; Percent/Modulo
'^', ; Exponentiation
'*', ; Multiplication
'/', ; Division
'+', ; Addition
'-', ; Subtraction
'<', ; Less than
'>', ; Greater than
'=', ; Equal
'&', ; String concat
C_DIVISION_SIGN, ; Division graphic char
C_NOT_EQUAL_TO, ; Not equal graphic char
C_LESS_THAN_OR_EQUAL_TO, ; Less than or equal graphic character
C_GREATER_THAN_OR_EQUAL_TO ; Greater than or equal graphic char
endif
else
; SBCS operatorTable
operatorTable char '%', ; Percent/Modulo
'^', ; Exponentiation
'*', ; Multiplication
'/', ; Division
'+', ; Addition
'-', ; Subtraction
'<', ; Less than
'>', ; Greater than
'=', ; Equal
'&', ; String concat
C_DIVISION, ; Division graphic char
C_NOTEQUAL, ; Not equal graphic char
C_LESSEQUAL, ; Less than or equal graphic character
C_GREATEREQUAL ; Greater than or equal graphic char
endif
;------------------------------------------------------------------------------
;
; Tables of function names and identifiers. These tables should match up.
; That is to say, if the n'th entry of the funcIDTable contains FUNCTION_ID_FOO
; then the n'th entry of the funcTable should contain the offset of the text
; of the function named "foo".
;
if PZ_PCGEOS
funcIDTable FunctionID \
FUNCTION_ID_ABS,
FUNCTION_ID_ACOS,
FUNCTION_ID_ACOSH,
FUNCTION_ID_AND,
FUNCTION_ID_ASIN,
FUNCTION_ID_ASINH,
FUNCTION_ID_ATAN,
FUNCTION_ID_ATAN2,
FUNCTION_ID_ATANH,
FUNCTION_ID_AVG,
FUNCTION_ID_CHAR,
FUNCTION_ID_CHOOSE,
FUNCTION_ID_CLEAN,
FUNCTION_ID_CODE,
FUNCTION_ID_COLS,
FUNCTION_ID_COS,
FUNCTION_ID_COSH,
FUNCTION_ID_COUNT,
FUNCTION_ID_CTERM,
FUNCTION_ID_DATE,
FUNCTION_ID_DATEVALUE,
FUNCTION_ID_DAY,
FUNCTION_ID_DDB,
FUNCTION_ID_ERR,
FUNCTION_ID_EXACT,
FUNCTION_ID_EXP,
FUNCTION_ID_FACT,
FUNCTION_ID_FALSE,
FUNCTION_ID_FIND,
FUNCTION_ID_FV,
FUNCTION_ID_HLOOKUP,
FUNCTION_ID_HOUR,
FUNCTION_ID_IF,
FUNCTION_ID_INDEX,
FUNCTION_ID_INT,
FUNCTION_ID_IRR,
FUNCTION_ID_ISERR,
FUNCTION_ID_ISNUMBER,
FUNCTION_ID_ISSTRING,
FUNCTION_ID_LEFT,
FUNCTION_ID_LENGTH,
FUNCTION_ID_LN,
FUNCTION_ID_LOG,
FUNCTION_ID_LOWER,
FUNCTION_ID_MAX,
FUNCTION_ID_MID,
FUNCTION_ID_MIN,
FUNCTION_ID_MINUTE,
FUNCTION_ID_MOD,
FUNCTION_ID_MONTH,
FUNCTION_ID_N,
FUNCTION_ID_NA,
FUNCTION_ID_NOW,
FUNCTION_ID_NPV,
FUNCTION_ID_OR,
FUNCTION_ID_PI,
FUNCTION_ID_PMT,
FUNCTION_ID_PRODUCT,
FUNCTION_ID_PROPER,
FUNCTION_ID_PV,
FUNCTION_ID_RANDOM_N,
FUNCTION_ID_RANDOM,
FUNCTION_ID_RATE,
FUNCTION_ID_REPEAT,
FUNCTION_ID_REPLACE,
FUNCTION_ID_RIGHT,
FUNCTION_ID_ROUND,
FUNCTION_ID_ROWS,
FUNCTION_ID_SECOND,
FUNCTION_ID_SIN,
FUNCTION_ID_SINH,
FUNCTION_ID_SLN,
FUNCTION_ID_SQRT,
FUNCTION_ID_STD,
FUNCTION_ID_STDP,
FUNCTION_ID_STRING,
FUNCTION_ID_SUM,
FUNCTION_ID_SYD,
FUNCTION_ID_TAN,
FUNCTION_ID_TANH,
FUNCTION_ID_TERM,
FUNCTION_ID_TIME,
FUNCTION_ID_TIMEVALUE,
FUNCTION_ID_TODAY,
FUNCTION_ID_TRIM,
FUNCTION_ID_TRUE,
FUNCTION_ID_TRUNC,
FUNCTION_ID_UPPER,
FUNCTION_ID_VALUE,
FUNCTION_ID_VAR,
FUNCTION_ID_VARP,
FUNCTION_ID_VLOOKUP,
FUNCTION_ID_WEEKDAY,
FUNCTION_ID_YEAR,
FUNCTION_ID_FILENAME,
FUNCTION_ID_PAGE,
FUNCTION_ID_PAGES,
FUNCTION_ID_DEGREES,
FUNCTION_ID_RADIANS,
FUNCTION_ID_DB ; PIZZA
else
funcIDTable FunctionID \
FUNCTION_ID_ABS, ; Standard
FUNCTION_ID_ACOS,
FUNCTION_ID_ACOSH,
FUNCTION_ID_AND,
FUNCTION_ID_ASIN,
FUNCTION_ID_ASINH,
FUNCTION_ID_ATAN,
FUNCTION_ID_ATAN2,
FUNCTION_ID_ATANH,
FUNCTION_ID_AVG,
FUNCTION_ID_CHAR,
FUNCTION_ID_CHOOSE,
FUNCTION_ID_CLEAN,
FUNCTION_ID_CODE,
FUNCTION_ID_COLS,
FUNCTION_ID_COS,
FUNCTION_ID_COSH,
FUNCTION_ID_COUNT,
FUNCTION_ID_CTERM,
FUNCTION_ID_DATE,
FUNCTION_ID_DATEVALUE,
FUNCTION_ID_DAY,
FUNCTION_ID_DDB,
FUNCTION_ID_DEGREES,
FUNCTION_ID_ERR,
FUNCTION_ID_EXACT,
FUNCTION_ID_EXP,
FUNCTION_ID_FACT,
FUNCTION_ID_FALSE,
FUNCTION_ID_FILENAME,
FUNCTION_ID_FIND,
FUNCTION_ID_FV,
FUNCTION_ID_HLOOKUP,
FUNCTION_ID_HOUR,
FUNCTION_ID_IF,
FUNCTION_ID_INDEX,
FUNCTION_ID_INT,
FUNCTION_ID_IRR,
FUNCTION_ID_ISERR,
FUNCTION_ID_ISNUMBER,
FUNCTION_ID_ISSTRING,
FUNCTION_ID_LEFT,
FUNCTION_ID_LENGTH,
FUNCTION_ID_LN,
FUNCTION_ID_LOG,
FUNCTION_ID_LOWER,
FUNCTION_ID_MAX,
FUNCTION_ID_MID,
FUNCTION_ID_MIN,
FUNCTION_ID_MINUTE,
FUNCTION_ID_MOD,
FUNCTION_ID_MONTH,
FUNCTION_ID_N,
FUNCTION_ID_NA,
FUNCTION_ID_NOW,
FUNCTION_ID_NPV,
FUNCTION_ID_OR,
FUNCTION_ID_PAGE,
FUNCTION_ID_PAGES,
FUNCTION_ID_PI,
FUNCTION_ID_PMT,
FUNCTION_ID_PRODUCT,
FUNCTION_ID_PROPER,
FUNCTION_ID_PV,
FUNCTION_ID_RADIANS,
FUNCTION_ID_RANDOM_N,
FUNCTION_ID_RANDOM,
FUNCTION_ID_RATE,
FUNCTION_ID_REPEAT,
FUNCTION_ID_REPLACE,
FUNCTION_ID_RIGHT,
FUNCTION_ID_ROUND,
FUNCTION_ID_ROWS,
FUNCTION_ID_SECOND,
FUNCTION_ID_SIN,
FUNCTION_ID_SINH,
FUNCTION_ID_SLN,
FUNCTION_ID_SQRT,
FUNCTION_ID_STD,
FUNCTION_ID_STDP,
FUNCTION_ID_STRING,
FUNCTION_ID_SUM,
FUNCTION_ID_SYD,
FUNCTION_ID_TAN,
FUNCTION_ID_TANH,
FUNCTION_ID_TERM,
FUNCTION_ID_TIME,
FUNCTION_ID_TIMEVALUE,
FUNCTION_ID_TODAY,
FUNCTION_ID_TRIM,
FUNCTION_ID_TRUE,
FUNCTION_ID_TRUNC,
FUNCTION_ID_UPPER,
FUNCTION_ID_VALUE,
FUNCTION_ID_VAR,
FUNCTION_ID_VARP,
FUNCTION_ID_VLOOKUP,
FUNCTION_ID_WEEKDAY,
FUNCTION_ID_YEAR
endif
;
; The following is a list of functions which should not be evaluated unless
; they are being displayed.
;
displayOnlyTable FunctionID \
FUNCTION_ID_FILENAME,
FUNCTION_ID_PAGE,
FUNCTION_ID_PAGES
if PZ_PCGEOS
funcTable nptr offset dgroup:absName,
offset dgroup:acosName,
offset dgroup:acoshName,
offset dgroup:andName,
offset dgroup:asinName,
offset dgroup:asinhName,
offset dgroup:atanName,
offset dgroup:atan2Name,
offset dgroup:atanhName,
offset dgroup:avgName,
offset dgroup:charName,
offset dgroup:chooseName,
offset dgroup:cleanName,
offset dgroup:codeName,
offset dgroup:colsName,
offset dgroup:cosName,
offset dgroup:coshName,
offset dgroup:countName,
offset dgroup:ctermName,
offset dgroup:dateName,
offset dgroup:datevalueName,
offset dgroup:dayName,
offset dgroup:ddbName,
offset dgroup:errName,
offset dgroup:exactName,
offset dgroup:expName,
offset dgroup:factName,
offset dgroup:falseName,
offset dgroup:findName,
offset dgroup:fvName,
offset dgroup:hlookupName,
offset dgroup:hourName,
offset dgroup:ifName,
offset dgroup:indexName,
offset dgroup:intName,
offset dgroup:irrName,
offset dgroup:iserrName,
offset dgroup:isnumberName,
offset dgroup:isstringName,
offset dgroup:leftName,
offset dgroup:lengthName,
offset dgroup:lnName,
offset dgroup:logName,
offset dgroup:lowerName,
offset dgroup:maxName,
offset dgroup:midName,
offset dgroup:minName,
offset dgroup:minuteName,
offset dgroup:modName,
offset dgroup:monthName,
offset dgroup:nName,
offset dgroup:naName,
offset dgroup:nowName,
offset dgroup:npvName,
offset dgroup:orName,
offset dgroup:piName,
offset dgroup:pmtName,
offset dgroup:productName,
offset dgroup:properName,
offset dgroup:pvName,
offset dgroup:randomnName,
offset dgroup:randomName,
offset dgroup:rateName,
offset dgroup:repeatName,
offset dgroup:replaceName,
offset dgroup:rightName,
offset dgroup:roundName,
offset dgroup:rowsName,
offset dgroup:secondName,
offset dgroup:sinName,
offset dgroup:sinhName,
offset dgroup:slnName,
offset dgroup:sqrtName,
offset dgroup:stdName,
offset dgroup:stdpName,
offset dgroup:stringName,
offset dgroup:sumName,
offset dgroup:sydName,
offset dgroup:tanName,
offset dgroup:tanhName,
offset dgroup:termName,
offset dgroup:timeName,
offset dgroup:timevalueName,
offset dgroup:todayName,
offset dgroup:trimName,
offset dgroup:trueName,
offset dgroup:truncName,
offset dgroup:upperName,
offset dgroup:valueName,
offset dgroup:varName,
offset dgroup:varpName,
offset dgroup:vlookupName,
offset dgroup:weekdayName,
offset dgroup:yearName,
offset dgroup:fileNameName,
offset dgroup:pageName,
offset dgroup:pagesName,
offset dgroup:degreesName,
offset dgroup:radiansName,
offset dgroup:declinebalanceName ; Pizza
else
funcTable nptr offset dgroup:absName, ; Standard
offset dgroup:acosName,
offset dgroup:acoshName,
offset dgroup:andName,
offset dgroup:asinName,
offset dgroup:asinhName,
offset dgroup:atanName,
offset dgroup:atan2Name,
offset dgroup:atanhName,
offset dgroup:avgName,
offset dgroup:charName,
offset dgroup:chooseName,
offset dgroup:cleanName,
offset dgroup:codeName,
offset dgroup:colsName,
offset dgroup:cosName,
offset dgroup:coshName,
offset dgroup:countName,
offset dgroup:ctermName,
offset dgroup:dateName,
offset dgroup:datevalueName,
offset dgroup:dayName,
offset dgroup:ddbName,
offset dgroup:degreesName,
offset dgroup:errName,
offset dgroup:exactName,
offset dgroup:expName,
offset dgroup:factName,
offset dgroup:falseName,
offset dgroup:fileNameName,
offset dgroup:findName,
offset dgroup:fvName,
offset dgroup:hlookupName,
offset dgroup:hourName,
offset dgroup:ifName,
offset dgroup:indexName,
offset dgroup:intName,
offset dgroup:irrName,
offset dgroup:iserrName,
offset dgroup:isnumberName,
offset dgroup:isstringName,
offset dgroup:leftName,
offset dgroup:lengthName,
offset dgroup:lnName,
offset dgroup:logName,
offset dgroup:lowerName,
offset dgroup:maxName,
offset dgroup:midName,
offset dgroup:minName,
offset dgroup:minuteName,
offset dgroup:modName,
offset dgroup:monthName,
offset dgroup:nName,
offset dgroup:naName,
offset dgroup:nowName,
offset dgroup:npvName,
offset dgroup:orName,
offset dgroup:pageName,
offset dgroup:pagesName,
offset dgroup:piName,
offset dgroup:pmtName,
offset dgroup:productName,
offset dgroup:properName,
offset dgroup:pvName,
offset dgroup:radiansName,
offset dgroup:randomnName,
offset dgroup:randomName,
offset dgroup:rateName,
offset dgroup:repeatName,
offset dgroup:replaceName,
offset dgroup:rightName,
offset dgroup:roundName,
offset dgroup:rowsName,
offset dgroup:secondName,
offset dgroup:sinName,
offset dgroup:sinhName,
offset dgroup:slnName,
offset dgroup:sqrtName,
offset dgroup:stdName,
offset dgroup:stdpName,
offset dgroup:stringName,
offset dgroup:sumName,
offset dgroup:sydName,
offset dgroup:tanName,
offset dgroup:tanhName,
offset dgroup:termName,
offset dgroup:timeName,
offset dgroup:timevalueName,
offset dgroup:todayName,
offset dgroup:trimName,
offset dgroup:trueName,
offset dgroup:truncName,
offset dgroup:upperName,
offset dgroup:valueName,
offset dgroup:varName,
offset dgroup:varpName,
offset dgroup:vlookupName,
offset dgroup:weekdayName,
offset dgroup:yearName
endif
CheckHack <(length funcIDTable) eq (length funcTable)>
;
; One entry for each name referenced in the funcTable. The length of the
; function name should be stored immediately before the text of the function
; name.
;
absName byte 3, "ABS"
acosName byte 4, "ACOS"
acoshName byte 5, "ACOSH"
andName byte 3, "AND"
asinName byte 4, "ASIN"
asinhName byte 5, "ASINH"
atanName byte 4, "ATAN"
atan2Name byte 5, "ATAN2"
atanhName byte 5, "ATANH"
avgName byte 3, "AVG"
charName byte 4, "CHAR"
chooseName byte 6, "CHOOSE"
cleanName byte 5, "CLEAN"
codeName byte 4, "CODE"
colsName byte 4, "COLS"
cosName byte 3, "COS"
coshName byte 4, "COSH"
countName byte 5, "COUNT"
ctermName byte 5, "CTERM"
dateName byte 4, "DATE"
datevalueName byte 9, "DATEVALUE"
dayName byte 3, "DAY"
ddbName byte 3, "DDB"
errName byte 3, "ERR"
exactName byte 5, "EXACT"
expName byte 3, "EXP"
factName byte 4, "FACT"
falseName byte 5, "FALSE"
findName byte 4, "FIND"
fvName byte 2, "FV"
hlookupName byte 7, "HLOOKUP"
hourName byte 4, "HOUR"
ifName byte 2, "IF"
indexName byte 5, "INDEX"
intName byte 3, "INT"
irrName byte 3, "IRR"
iserrName byte 5, "ISERR"
isnumberName byte 8, "ISNUMBER"
isstringName byte 8, "ISSTRING"
leftName byte 4, "LEFT"
lengthName byte 6, "LENGTH"
lnName byte 2, "LN"
logName byte 3, "LOG"
lowerName byte 5, "LOWER"
maxName byte 3, "MAX"
midName byte 3, "MID"
minName byte 3, "MIN"
minuteName byte 6, "MINUTE"
modName byte 3, "MOD"
monthName byte 5, "MONTH"
nName byte 1, "N"
naName byte 2, "NA"
nowName byte 3, "NOW"
npvName byte 3, "NPV"
orName byte 2, "OR"
piName byte 2, "PI"
pmtName byte 3, "PMT"
productName byte 7, "PRODUCT"
properName byte 6, "PROPER"
pvName byte 2, "PV"
randomnName byte 7, "RANDOMN"
randomName byte 6, "RANDOM"
rateName byte 4, "RATE"
repeatName byte 6, "REPEAT"
replaceName byte 7, "REPLACE"
rightName byte 5, "RIGHT"
roundName byte 5, "ROUND"
rowsName byte 4, "ROWS"
secondName byte 6, "SECOND"
sinName byte 3, "SIN"
sinhName byte 4, "SINH"
slnName byte 3, "SLN"
sqrtName byte 4, "SQRT"
stdName byte 3, "STD"
stdpName byte 4, "STDP"
stringName byte 6, "STRING"
sumName byte 3, "SUM"
sydName byte 3, "SYD"
tanName byte 3, "TAN"
tanhName byte 4, "TANH"
termName byte 4, "TERM"
timeName byte 4, "TIME"
timevalueName byte 9, "TIMEVALUE"
todayName byte 5, "TODAY"
trimName byte 4, "TRIM"
trueName byte 4, "TRUE"
truncName byte 5, "TRUNC"
upperName byte 5, "UPPER"
valueName byte 5, "VALUE"
varName byte 3, "VAR"
varpName byte 4, "VARP"
vlookupName byte 7, "VLOOKUP"
weekdayName byte 7, "WEEKDAY"
yearName byte 4, "YEAR"
fileNameName byte 8, "FILENAME"
pageName byte 4, "PAGE"
pagesName byte 5, "PAGES"
degreesName byte 7, "DEGREES"
radiansName byte 7, "RADIANS"
PZ < declinebalanceName byte 2,"DB" >
;------------------------------------------------------------------------------
;
; A table giving the size of the data associated with each parser token.
;
parserTokenSizeTable byte size ParserTokenNumberData,
size ParserTokenStringData,
size ParserTokenCellData,
0, ; END_OF_EXPRESSION
0, ; OPEN_PAREN
0, ; CLOSE_PAREN
size ParserTokenNameData,
size ParserTokenFunctionData,
0, ; CLOSE_FUNCTION
0, ; ARG_END
size ParserTokenOperatorData
;------------------------------------------------------------------------------
;
; A list of pointers to strings for each operator. Used by the formatting code
; to generate strings for the operators.
;
; This table depends on the order of the operators being defined in the same
; order that these strings are defined.
;
opFormatTable word \
offset dgroup:RangeSepString, ;RANGE_SEPARATOR
offset dgroup:NegString, ;NEGATION
offset dgroup:PercString, ;PERCENT
offset dgroup:ExpString, ;EXPONENTIATION
offset dgroup:MultString, ;MULTIPLICATION
offset dgroup:DivString, ;DIVISION
offset dgroup:ModString, ;MODULO
offset dgroup:AddString, ;ADDITION
offset dgroup:SubString, ;SUBTRACTION
offset dgroup:EQString, ;EQUAL
offset dgroup:NEString, ;NOT_EQUAL
offset dgroup:LTString, ;LESS_THAN
offset dgroup:GTString, ;GREATER_THAN
offset dgroup:LEString, ;LESS_THAN_OR_EQUAL
offset dgroup:GEString, ;GREATER_THAN_OR_EQUAL
offset dgroup:ConcatString, ;STRING_CONCAT
offset dgroup:RangeIntString, ;RANGE_INTERSECTION
offset dgroup:NEGraphString, ;NOT_EQUAL_GRAPHIC
offset dgroup:DivGraphString, ;DIVISION_GRAPHIC
offset dgroup:LEGraphString, ;LESS_THAN_OR_EQUAL_GRAPHIC
offset dgroup:GEGraphString ;GREATER_THAN_OR_EQUAL_GRAPHIC
if DBCS_PCGEOS
NEString wchar 4," <> ";
GEString wchar 4," >= ";
LEString wchar 4," <= ";
ExpString wchar 1,"^";
MultString wchar 1,"*";
DivString wchar 1,"/";
AddString wchar 3," + ";
LTString wchar 3," < ";
GTString wchar 3," > ";
EQString wchar 3," = ";
PercString wchar 1,"%";
ModString wchar 3," % ";
SubString wchar 3," - ";
NegString wchar 1,"-";
RangeSepString wchar 1,":";
ConcatString wchar 3," & ";
RangeIntString wchar 3," # ";
NEGraphString wchar 3," ",C_NOT_EQUAL_TO," ";
DivGraphString wchar 3," ",C_DIVISION_SIGN," ";
if PZ_PCGEOS
LEGraphString wchar 3," ",C_LESS_THAN_OVER_EQUAL_TO," ";
GEGraphString wchar 3," ",C_GREATER_THAN_OVER_EQUAL_TO," ";
else
LEGraphString wchar 3," ",C_LESS_THAN_OR_EQUAL_TO," ";
GEGraphString wchar 3," ",C_GREATER_THAN_OR_EQUAL_TO," ";
endif
else
NEString byte 4," <> ";
GEString byte 4," >= ";
LEString byte 4," <= ";
ExpString byte 1,"^";
MultString byte 1,"*";
DivString byte 1,"/";
AddString byte 3," + ";
LTString byte 3," < ";
GTString byte 3," > ";
EQString byte 3," = ";
PercString byte 1,"%";
ModString byte 3," % ";
SubString byte 3," - ";
NegString byte 1,"-";
RangeSepString byte 1,":";
ConcatString byte 3," & ";
RangeIntString byte 3," # ";
NEGraphString byte 3," \255 "; /* C_NOTEQUAL = 0xad */
DivGraphString byte 3," \326 "; /* C_DIVISION = 0xd6 */
LEGraphString byte 3," \262 "; /* C_LESSEQUAL = 0xb2 */
GEGraphString byte 3," \263 "; /* C_GREATEREQUAL = 0xb3 */
endif
;------------------------------------------------------------------------------
;
; A table defining the precedence of each operator.
; The higher the number, the higher the precedence.
; The reason that there is such a large gap between the precedences is so that
; it will be easier to add new operators later. These new operators can have
; precedences between the existing operators and you won't need to adjust
; the values of the existing operators.
;
opPrecedenceTable byte 200, ; ":" Range separator
170, ; "-" Unary negation
170, ; "%" Unary percent
140, ; "^" Exponentiatio
110, ; "*" Multiplication
110, ; "/" Division
80, ; "%" Modulo
50, ; "+" Addition
50, ; "-" Subtraction
20, ; "=" Equal
20, ; "<>" Not equal
20, ; "<" Less than
20, ; ">" Greater than
20, ; "<=" Less than or equal
20, ; ">=" Greater than or equal
50, ; "&" String concatenation
190, ; "#" Range intersection
20, ; C_NOTEQUAL Not equal
110, ; C_DIVISION Division
20, ; C_LESSEQUAL Less than or equal
20 ; C_GREATEREQUAL > or equal
if DBCS_PCGEOS
decimalSep wchar "."
listSep wchar ","
argEndString wchar ", "
else
decimalSep char "."
listSep char ","
argEndString char ", "
endif
idata ends
;*****************************************************************************
udata segment
udata ends
| 27.337484 | 80 | 0.681077 |
9fbe6c1f3658e24042c4156293d3860277d3434e | 301 | asm | Assembly | programs/oeis/021/A021260.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/021/A021260.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/021/A021260.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A021260: Decimal expansion of 1/256.
; 0,0,3,9,0,6,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
add $0,1
mov $1,10
pow $1,$0
mul $1,3
div $1,768
mod $1,10
mov $0,$1
| 27.363636 | 191 | 0.541528 |
0b141f1dab225366b8756d91e5f231d0ef244de8 | 721 | asm | Assembly | asm/boot_code.asm | marmolak/GordonFlashTool | 233a258712870dd0e35c0fca711849ebe455cb4a | [
"BSD-3-Clause"
] | null | null | null | asm/boot_code.asm | marmolak/GordonFlashTool | 233a258712870dd0e35c0fca711849ebe455cb4a | [
"BSD-3-Clause"
] | null | null | null | asm/boot_code.asm | marmolak/GordonFlashTool | 233a258712870dd0e35c0fca711849ebe455cb4a | [
"BSD-3-Clause"
] | null | null | null | bits 16
org 0x7c00 ; boot code
start:
jmp do
nop
times 32-($-$$) db 0
do:
nop
xor ax, ax
mov ss, ax
sti
; ax is still zero ^^^
mov al, 0x03
int 0x10
; make background red
mov ax, 0xb800
mov es, ax
mov ax, 0x4020
mov cx, 80 * 25
xor di, di
rep stosw
; write message
mov di, 2000 - 24
mov ah, 0xe0
jmp text_addr
r1:
pop bx
mov cx, 27
l1:
cs mov al, byte [bx]
inc bx
stosw
loop l1
h: cli
hlt ; waits for interrupts so we just ban them
jmp h
text_addr:
call r1
text:
db ' Made by Gordon Flash Tool '
;times 510-($-$$) db 0
; This is our boot sector signature, without it,
; the BIOS will not load our bootloader into memory.
;dw 0xAA55
| 13.603774 | 53 | 0.608877 |
535c1c9a0e4917fa98c8291f1ca2ccbaf5671f32 | 2,217 | asm | Assembly | deprecated/s2-s11/print_utils32.asm | ToraNova/TingOS | 35a5af97b76c2ca0b90c2eb02c5d3bbdbb2278d2 | [
"MIT"
] | null | null | null | deprecated/s2-s11/print_utils32.asm | ToraNova/TingOS | 35a5af97b76c2ca0b90c2eb02c5d3bbdbb2278d2 | [
"MIT"
] | null | null | null | deprecated/s2-s11/print_utils32.asm | ToraNova/TingOS | 35a5af97b76c2ca0b90c2eb02c5d3bbdbb2278d2 | [
"MIT"
] | null | null | null | ; -----------------------------------------
; Boot sector
; TingOS Hobbyist Kernel
; 32Bit Print functions
;
; chia_jason96@live.com
; -----------------------------------------
PRINT_STRING32:
mov ah, BIOS_OUT_TTYPUT ; int 10/ah = 0eh -> scrolling teletype BIOS routine
.10 mov al,[ebx]
inc ebx ; increment al
or al,al
jz .20
int BIOS_INT_DISP ;display the current char in AL
jmp .10
.20 ret
DEBUG_BRK32:
push eax
mov ah, BIOS_OUT_TTYPUT ; int 10/ah = 0eh -> scrolling teletype BIOS routine
mov al, '#'
int 0x10
pop eax
ret
PRINT_NLCR32:
push eax
mov ah, BIOS_OUT_TTYPUT ; int 10/ah = 0eh -> scrolling teletype BIOS routine
mov al, 13
int BIOS_INT_DISP
mov al, 10
int BIOS_INT_DISP
pop eax
ret
PRINT_HEX32:
push edx
push ecx
push ebx
push eax
lea ebx, [HEX2CHAR_LOOKUP32]
mov dx,ax
;AL operation
mov ah, al ; make al and ah equal so we can isolate each half of the byte
shr ah, 4 ; ah now has the high nibble
and al, 0x0F ; al now has the low nibble
xlat ; lookup al's contents in our table
xchg ah, al ; flip around the bytes so now we can get the higher nibble
xlat ; look up what we just flipped
mov cx,ax ; 2 chars on cx now for LOWER BYTE
;AH operation
mov ax,dx
mov al, ah ; make al and ah equal so we can isolate each half of the byte
shr ah, 4 ; ah now has the high nibble
and al, 0x0F ; al now has the low nibble
xlat ; lookup al's contents in our table
xchg ah, al ; flip around the bytes so now we can get the higher nibble
xlat ; look up what we just flipped
mov dx,ax ; 2 chars on dx now for HIGHER BYTE
mov ah, BIOS_OUT_TTYPUT ; int 10/ah = 0eh -> scrolling teletype BIOS routine
mov al,dl
int BIOS_INT_DISP
mov al,dh
int BIOS_INT_DISP
mov al,cl
int BIOS_INT_DISP
mov al,ch
int BIOS_INT_DISP
mov al,' '
int BIOS_INT_DISP
pop eax
pop ebx
pop ecx
pop edx
ret
; -------------------------
; Lookups
; -------------------------
HEX2CHAR_LOOKUP32:
db "0123456789ABCDEF",0
| 23.09375 | 91 | 0.588633 |
5d68676cb625fcf7eca04bf2d459bf04d481e4f4 | 146 | asm | Assembly | other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/NES_Ver2/us_asm/zel_sut0.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/NES_Ver2/us_asm/zel_sut0.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/NES_Ver2/us_asm/zel_sut0.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | Name: zel_sut0.asm
Type: file
Size: 67045
Last-Modified: '2016-05-13T04:27:09Z'
SHA-1: 5995D5FD1CE7D40C4D0ADB539E606BB273222C07
Description: null
| 20.857143 | 47 | 0.815068 |
7c7cb3be5c7ad4ff54152c2cda7aef22f84b9677 | 729 | asm | Assembly | oeis/042/A042768.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/042/A042768.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/042/A042768.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A042768: Numerators of continued fraction convergents to sqrt(915).
; Submitted by Jon Maiga
; 30,121,7290,29281,1764150,7085881,426917010,1714753921,103312152270,414963363001,25001113932330,100419419092321,6050166259471590,24301084456978681,1464115233678192450,5880762019169748481,354309836383863101310,1423120107554622153721,85741516289661192324570,344389185266199391452001,20749092632261624679444630,83340759714312698109230521,5021194675491023511233275890,20168119461678406743042334081,1215108362376195428093773320750,4880601568966460119118135617081,294051202500363802575181910345610
add $0,1
mov $3,1
lpb $0
sub $0,1
add $2,$3
mov $3,$1
mov $1,$2
dif $2,15
mul $2,60
lpe
add $2,$3
add $3,$2
mov $0,$3
div $0,2
| 38.368421 | 493 | 0.835391 |
4363a41b52f6d979d70357c0eaf36d070c69c1de | 575 | asm | Assembly | oeis/263/A263498.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/263/A263498.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/263/A263498.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A263498: Decimal expansion of the Gaussian Hypergeometric Function 2F1(1, 3; 5/2; x) at x=1/4.
; Submitted by Jon Maiga
; 1,4,1,8,3,9,9,1,5,2,3,1,2,2,9,0,4,6,7,4,5,8,7,7,1,0,1,0,1,8,9,5,4,0,9,7,6,3,7,8,7,5,4,9,9,7,4,5,6,9,8,7,4,3,4,0,9,3,1,7,9,9,1,3,8,5,0,8,3,0,9,0,8,1,6,8,4,7,1,8,4,4,9,1,2,1,6,6,6,5,0,9,4,9,4,1
mov $2,1
mov $3,$0
mul $3,5
lpb $3
div $1,2
mul $1,$3
mov $5,$3
mul $5,2
add $5,1
mul $2,$5
add $1,$2
bin $5,$1
add $5,$0
div $1,$5
div $2,$5
sub $3,1
lpe
mul $1,2
mov $4,10
pow $4,$0
div $2,$4
div $1,$2
add $1,$4
mov $0,$1
mod $0,10
| 19.166667 | 193 | 0.53913 |
545149635fa8a3352bd2f6d2519cb70af7caf0d9 | 6,297 | asm | Assembly | C5515_Support_Files/C5515_Lib/dsplib_2.40.00/55x_src/convol1.asm | HeroSizy/Sizy | 89bc29940dc7666591259730b5112efd0a626043 | [
"Unlicense"
] | null | null | null | C5515_Support_Files/C5515_Lib/dsplib_2.40.00/55x_src/convol1.asm | HeroSizy/Sizy | 89bc29940dc7666591259730b5112efd0a626043 | [
"Unlicense"
] | null | null | null | C5515_Support_Files/C5515_Lib/dsplib_2.40.00/55x_src/convol1.asm | HeroSizy/Sizy | 89bc29940dc7666591259730b5112efd0a626043 | [
"Unlicense"
] | null | null | null | ;***********************************************************
; Version 2.40.00
;***********************************************************
; Function: convol1
; Processor: C55xx
; Description: Implements real convolution algorithm using
; dual-MAC approach. C-callable.
;
; Useage: ushort oflag = firs(DATA *x,
; DATA *h,
; DATA *r,
; ushort nr,
; ushort nh)
;
; Copyright Texas instruments Inc, 2000
;****************************************************************
.ARMS_off ;enable assembler for ARMS=0
.CPL_on ;enable assembler for CPL=1
.mmregs ;enable mem mapped register names
; Stack frame
; -----------
RET_ADDR_SZ .set 1 ;return address
REG_SAVE_SZ .set 0 ;save-on-entry registers saved
FRAME_SZ .set 0 ;local variables
ARG_BLK_SZ .set 0 ;argument block
PARAM_OFFSET .set ARG_BLK_SZ + FRAME_SZ + REG_SAVE_SZ + RET_ADDR_SZ
; Register usage
; --------------
.asg AR0, x_ptr ;linear pointer
.asg AR2, r_ptr ;linear pointer
.asg CDP, h_ptr ;circular pointer
.asg BSAC, h_base ;base addr for h_ptr
.asg BKC, h_sz ;circ buffer size for h_sz
.asg XCDP, xh_base ;extended base address for h_ptr
.asg CSR, inner_cnt ;inner loop count
.asg BRC0, outer_cnt ;outer loop count
.asg T0, oflag ;returned value
ST2mask .set 0000000100000000b ;circular/linear pointers
.global _convol1
.text
_convol1:
;
; Allocate the local frame and argument block
;----------------------------------------------------------------
; SP = SP - #(ARG_BLK_SZ + FRAME_SZ + REG_SAVE_SZ)
; - not necessary for this function (the above is zero)
;
; Save any save-on-entry registers that are used
;----------------------------------------------------------------
; - nothing to save for this function
;
; Configure the status registers as needed.
;----------------------------------------------------------------
AND #001FFh, mmap(ST0_55) ;clear all ACOVx,TC1, TC2, C
OR #04140h, mmap(ST1_55) ;set CPL, SXMD, FRCT
AND #0F9DFh, mmap(ST1_55) ;clear M40, SATD, 54CM
AND #07A00h, mmap(ST2_55) ;clear ARMS, RDM, CDPLC, AR[0-7]LC
AND #0FFDDh, mmap(ST3_55) ;clear SATA, SMUL
;
; Setup passed parameters in their destination registers
; Setup circular/linear CDP/ARx behavior
;----------------------------------------------------------------
; x pointer - passed in its destination register, need do nothing
; h pointer - setup
MOV XAR1, xh_base ;extended base address for h_ptr
SUB #1, T1, AC0 ;AC0 = nh-1
MOV mmap(AC0L), h_ptr ;h_ptr = nh-1 (end of h[])
MOV mmap(AR1), h_base ;base address of coefficients
MOV mmap(T1), h_sz ;coefficient array size
; r pointer - passed in its destination register, need do nothing
; Set circular/linear ARx behavior
MOV #ST2mask, mmap(ST2_55) ;configure circular/linear pointers
;
; Setup loop counts
;----------------------------------------------------------------
SFTS T0, #-1 ;T0 = nr/2
SUB #1, T0 ;T0 = (nr/2 - 1)
MOV T0, outer_cnt ;outer loop executes nr/2 times
SUB #3, T1, T0 ;T0 = nh-3
MOV T0, inner_cnt ;inner loop executes nh-2 times
||MOV #1, T0 ;x_ptr offset for parallel computation
;
; Compute last iteration input pointer offsets
;----------------------------------------------------------------
SUB #3, T1 ;DR1 = nh-3, adjustment for x_ptr
;
; Start of outer loop
;----------------------------------------------------------------
||RPTBLOCAL loop1-1 ;start the outer loop
;1st iteration
MPY *x_ptr+, *h_ptr-, AC0 ;part 1 of dual-MPY
::MPY *x_ptr(T0), *h_ptr-, AC1 ;part 2 of dual-MPY
;inner loop
||RPT inner_cnt
MAC *x_ptr+, *h_ptr-, AC0 ;part 1 of dual-MAC
::MAC *x_ptr(T0), *h_ptr-, AC1 ;part 2 of dual-MAC
;last iteration has different pointer adjustment and rounding
MACR *(x_ptr-T1), *h_ptr-, AC0 ;part 1 of dual-MAC
::MACR *x_ptr(T0), *h_ptr-, AC1 ;part 2 of dual-MAC
;store result to memory
MOV HI(AC0), *r_ptr+ ;store 1st Q15 result to memory
MOV HI(AC1), *r_ptr+ ;store 2nd Q15 result to memory
loop1:
;
; Check if overflow occurred, and setup return value
;----------------------------------------------------------------
MOV #0, oflag ;clear oflag
XCCPART check1, overflow(AC0) ;clears ACOV0
||MOV #1, oflag ;overflow occurred
check1:
;
; Restore status regs to expected C-convention values as needed
;----------------------------------------------------------------
BCLR FRCT ;clear FRCT
AND #0FE00h, mmap(ST2_55) ;clear CDPLC and AR[7-0]LC
BSET ARMS ;set ARMS
;
; Restore any save-on-entry registers that are used
;----------------------------------------------------------------
; - nothing to restore for this function
;
; Deallocate the local frame and argument block
;----------------------------------------------------------------
; SP = SP + #(ARG_BLK_SZ + FRAME_SZ + REG_SAVE_SZ)
; - not necessary for this function (the above is zero)
;
; Return to calling function
;----------------------------------------------------------------
||RET ;return to calling function
;----------------------------------------------------------------
;End of file
| 35.178771 | 80 | 0.445291 |
23b6035e0ac7890fe200889c434c1f46e2241303 | 147 | asm | Assembly | other.7z/SFC.7z/SFC/ソースデータ/FZERO/FZERO/Game/calculate.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | 46 | 2020-08-02T08:00:14.000Z | 2022-03-07T02:25:47.000Z | other.7z/SFC.7z/SFC/ソースデータ/FZERO/FZERO/Game/calculate.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/FZERO/FZERO/Game/calculate.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | 12 | 2020-07-29T05:00:28.000Z | 2021-12-11T20:30:28.000Z | Name: calculate.asm
Type: file
Size: 31108
Last-Modified: '2000-11-08T02:03:12Z'
SHA-1: FF4842C6FC8E8BD7BA5A5A7A61947DEE32B539BB
Description: null
| 21 | 47 | 0.816327 |
f0a09f3fb62d6528a16b78bf1b666cc1d429076b | 510 | asm | Assembly | programs/oeis/122/A122414.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/122/A122414.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/122/A122414.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A122414: Triangle T(n,k) for 1 <= k <= n read by rows, where T(n,k) = 1 if gcd(n,k) is prime, 0 otherwise.
; 0,0,1,0,0,1,0,1,0,0,0,0,0,0,1,0,1,1,1,0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1,1,1,0
seq $0,50873 ; Triangular array T read by rows: T(n,k) = gcd(n,k).
seq $0,32741 ; a(0) = 0; for n > 0, a(n) = number of proper divisors of n (divisors of n which are less than n).
mod $0,3
mod $0,2
| 63.75 | 201 | 0.572549 |
2ecae937f701fb1b52a09091f490c6535793b1dd | 12,569 | asm | Assembly | P6/data_P6_2/ALUTest7.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | 1 | 2022-01-23T09:24:47.000Z | 2022-01-23T09:24:47.000Z | P6/data_P6_2/ALUTest7.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | null | null | null | P6/data_P6_2/ALUTest7.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | null | null | null | addu $1,$6,$3
subu $6,$0,$3
sllv $1,$3,$3
sb $3,12($0)
lbu $1,2($0)
addiu $0,$1,2476
sb $3,3($0)
sll $4,$5,20
srlv $1,$4,$3
sltiu $3,$3,4115
ori $6,$1,32471
slti $4,$6,12073
lbu $1,5($0)
nor $4,$4,$3
srlv $5,$5,$3
srlv $5,$3,$3
and $3,$3,$3
addiu $6,$0,-604
srav $3,$3,$3
sllv $3,$6,$3
sll $4,$1,3
sll $0,$0,1
lhu $5,4($0)
addiu $4,$0,-30322
sh $3,10($0)
srl $4,$3,13
addu $4,$4,$3
sra $3,$3,3
slti $1,$1,-28591
slti $4,$5,-23719
sllv $3,$5,$3
addu $0,$3,$3
lhu $1,16($0)
lhu $4,8($0)
sh $4,4($0)
sltiu $4,$5,10332
lbu $0,2($0)
xor $5,$0,$3
ori $6,$6,15221
lh $6,10($0)
sw $4,12($0)
slti $5,$3,-9206
srl $1,$3,10
xor $5,$5,$3
subu $4,$1,$3
lw $5,8($0)
addiu $0,$5,26712
lh $3,14($0)
addu $5,$5,$3
andi $6,$3,40717
srl $3,$3,10
sltu $3,$3,$3
nor $4,$5,$3
sw $3,0($0)
sll $6,$6,16
sltu $5,$4,$3
lbu $5,13($0)
or $1,$1,$3
andi $3,$6,45647
sllv $4,$1,$3
lhu $3,2($0)
srl $1,$5,18
sw $4,12($0)
andi $3,$1,25882
or $1,$6,$3
subu $6,$4,$3
nor $3,$3,$3
srl $5,$3,12
sh $1,8($0)
and $4,$3,$3
sra $5,$6,4
ori $3,$3,60982
subu $3,$3,$3
addu $1,$1,$3
subu $4,$3,$3
sh $3,2($0)
andi $3,$2,31854
lb $3,13($0)
subu $6,$3,$3
or $3,$3,$3
lhu $3,8($0)
addiu $4,$0,22862
sw $4,12($0)
srav $1,$1,$3
sllv $1,$3,$3
lhu $4,4($0)
sltu $4,$4,$3
sb $4,13($0)
and $6,$5,$3
srlv $4,$4,$3
or $6,$3,$3
lw $1,12($0)
sh $1,6($0)
nor $1,$4,$3
xori $3,$3,26409
addiu $1,$3,3864
lb $1,10($0)
and $5,$5,$3
addiu $1,$1,-6490
srlv $4,$3,$3
ori $1,$4,32922
lh $6,8($0)
addu $1,$6,$3
nor $4,$5,$3
lb $5,4($0)
subu $6,$0,$3
lh $5,16($0)
sll $3,$3,10
addu $3,$3,$3
lw $1,4($0)
sllv $4,$3,$3
subu $3,$3,$3
or $4,$5,$3
subu $5,$3,$3
srlv $5,$4,$3
slti $1,$1,-8965
or $4,$5,$3
xor $5,$0,$3
srlv $1,$1,$3
slt $3,$3,$3
and $3,$3,$3
slti $1,$1,5073
sh $5,8($0)
ori $4,$4,9028
nor $5,$5,$3
srl $1,$3,16
sh $4,6($0)
lb $1,13($0)
sra $4,$4,3
addiu $4,$1,-473
sltu $4,$4,$3
sb $3,14($0)
sh $3,10($0)
and $4,$3,$3
srlv $3,$1,$3
ori $5,$3,59468
sw $4,4($0)
sltiu $3,$1,12333
sllv $6,$4,$3
sll $4,$4,29
nor $5,$1,$3
lhu $0,2($0)
subu $5,$4,$3
addiu $3,$1,-30067
addiu $0,$0,28093
andi $0,$1,58121
sltiu $2,$2,-24577
andi $4,$4,2430
slti $3,$3,-30603
subu $3,$3,$3
lh $4,12($0)
sllv $6,$4,$3
and $3,$4,$3
slti $4,$4,17618
addu $3,$6,$3
sltiu $3,$5,-7018
sb $4,4($0)
addu $3,$0,$3
sltiu $5,$6,-6081
subu $3,$3,$3
subu $5,$6,$3
addu $3,$3,$3
subu $4,$6,$3
lb $5,4($0)
lh $4,12($0)
lh $1,6($0)
srav $3,$3,$3
subu $4,$5,$3
srlv $3,$4,$3
addiu $1,$6,21639
sllv $5,$4,$3
andi $4,$0,26262
xor $1,$4,$3
and $6,$3,$3
nor $5,$4,$3
sb $5,0($0)
addu $1,$3,$3
lb $4,12($0)
addiu $4,$5,-23964
slt $5,$4,$3
lh $5,10($0)
andi $4,$5,55158
sll $1,$5,28
addiu $1,$3,-23155
lw $1,16($0)
andi $4,$3,37649
xor $1,$1,$3
lh $5,14($0)
or $3,$5,$3
subu $0,$3,$3
andi $3,$6,5183
sh $4,16($0)
subu $4,$3,$3
subu $3,$3,$3
xori $3,$5,37215
lh $3,16($0)
sll $3,$3,0
sllv $4,$6,$3
subu $1,$0,$3
addu $4,$4,$3
sltu $3,$2,$3
andi $3,$6,42542
addiu $6,$3,-28276
lh $1,2($0)
lhu $1,4($0)
lbu $5,10($0)
sll $6,$3,15
sllv $0,$4,$3
ori $4,$2,12393
addiu $3,$4,-11097
addu $4,$4,$3
subu $4,$4,$3
lhu $4,8($0)
or $1,$1,$3
sltiu $3,$3,-23264
sra $4,$1,21
or $3,$5,$3
srav $0,$0,$3
subu $4,$2,$3
srav $0,$5,$3
lb $1,9($0)
or $4,$4,$3
sw $5,4($0)
sb $3,2($0)
sra $3,$3,3
lbu $5,14($0)
or $1,$4,$3
xori $1,$1,5333
and $5,$1,$3
andi $4,$3,38720
or $3,$0,$3
lb $4,14($0)
slti $4,$3,-14333
srl $1,$5,13
srl $3,$2,29
addiu $0,$5,-26781
lbu $1,8($0)
slt $1,$1,$3
xori $1,$5,56196
or $6,$6,$3
srav $4,$4,$3
sh $1,8($0)
or $3,$4,$3
xori $6,$3,31973
subu $3,$1,$3
nor $4,$4,$3
lhu $4,14($0)
addu $0,$3,$3
subu $3,$1,$3
andi $4,$3,29300
srl $1,$1,26
sltiu $4,$4,-30293
sltiu $5,$4,6280
andi $6,$5,32463
sra $3,$3,12
lbu $4,9($0)
srl $4,$4,15
sb $4,13($0)
sw $5,8($0)
subu $1,$6,$3
sltu $4,$4,$3
ori $2,$2,54224
ori $4,$5,23982
lw $4,12($0)
sra $1,$6,19
xori $5,$5,4323
lh $3,4($0)
nor $0,$5,$3
slt $5,$5,$3
ori $4,$3,12862
sltiu $3,$3,11136
sllv $3,$0,$3
srav $5,$5,$3
lh $5,2($0)
srl $3,$5,26
lb $3,4($0)
srl $3,$3,20
sh $3,0($0)
addu $1,$4,$3
sw $3,16($0)
addu $6,$6,$3
srl $3,$3,19
slt $3,$6,$3
xori $4,$4,40588
sltu $4,$3,$3
addiu $0,$5,-29002
andi $5,$5,29487
ori $5,$3,13657
and $3,$3,$3
sw $3,16($0)
andi $3,$4,28964
lb $4,3($0)
sw $0,0($0)
and $4,$3,$3
xor $4,$5,$3
sra $4,$3,29
sra $5,$3,19
sh $3,12($0)
srlv $1,$1,$3
lh $5,10($0)
sra $5,$5,17
sllv $4,$6,$3
sllv $5,$1,$3
sra $4,$4,1
lbu $4,16($0)
andi $4,$6,9713
sra $4,$4,18
sllv $3,$3,$3
sh $3,8($0)
sll $6,$6,11
sltiu $5,$6,-6488
sltu $4,$4,$3
or $3,$4,$3
subu $6,$3,$3
sb $4,9($0)
nor $1,$3,$3
srav $1,$1,$3
srav $3,$6,$3
ori $0,$0,64382
lw $1,12($0)
sllv $5,$5,$3
sll $0,$0,28
xor $4,$2,$3
srav $1,$1,$3
subu $3,$3,$3
lbu $6,7($0)
slt $4,$4,$3
sra $1,$1,10
sltu $6,$4,$3
srl $4,$6,26
sllv $6,$5,$3
slti $0,$3,-18976
and $4,$1,$3
sra $6,$4,17
srl $5,$4,0
subu $0,$2,$3
addu $5,$3,$3
sltiu $4,$1,21997
addu $3,$2,$3
sw $3,4($0)
slt $1,$1,$3
sltu $4,$3,$3
sltiu $6,$6,513
lw $3,8($0)
xor $5,$3,$3
slt $3,$1,$3
sb $5,3($0)
srl $5,$4,23
lh $0,6($0)
addiu $4,$4,-20071
ori $1,$3,16728
and $2,$2,$3
sltu $4,$4,$3
lhu $3,0($0)
xor $6,$6,$3
slti $1,$5,-2399
sltu $1,$5,$3
lhu $4,4($0)
xor $1,$3,$3
andi $1,$3,53401
lhu $1,10($0)
lb $5,15($0)
subu $1,$1,$3
srav $6,$6,$3
addiu $3,$3,-25493
nor $3,$6,$3
addiu $3,$3,-10544
addiu $4,$3,-2466
sra $4,$3,22
lh $6,12($0)
srlv $4,$1,$3
ori $4,$3,55764
sra $6,$0,16
sw $1,4($0)
xor $6,$4,$3
and $3,$1,$3
lh $3,0($0)
srl $3,$3,20
addu $4,$6,$3
lbu $3,13($0)
addiu $3,$3,20167
subu $5,$4,$3
sltu $1,$6,$3
and $1,$5,$3
addiu $4,$4,10626
addiu $3,$3,10357
sra $0,$4,16
xor $6,$1,$3
addu $4,$3,$3
sltiu $3,$0,-7229
nor $4,$3,$3
ori $3,$4,3407
addiu $4,$4,-16191
and $5,$4,$3
or $0,$4,$3
lw $4,8($0)
subu $3,$1,$3
slt $1,$1,$3
slt $5,$3,$3
ori $4,$1,26092
sll $3,$4,16
slti $0,$4,-12489
srl $6,$4,24
srav $4,$3,$3
slti $3,$3,3997
sltu $0,$3,$3
srlv $3,$5,$3
sltiu $5,$6,-12998
srl $5,$3,7
subu $5,$4,$3
srav $5,$6,$3
sltu $6,$4,$3
subu $6,$4,$3
subu $3,$4,$3
sw $4,12($0)
xori $6,$1,46403
sh $4,0($0)
lbu $4,13($0)
lbu $1,11($0)
lw $4,12($0)
sb $3,14($0)
srlv $4,$1,$3
xor $1,$5,$3
sra $1,$1,23
sltu $4,$4,$3
addu $1,$6,$3
slti $1,$6,7271
sllv $4,$4,$3
lhu $5,0($0)
sh $1,10($0)
xori $6,$3,29462
nor $4,$1,$3
sb $3,13($0)
srav $3,$3,$3
lw $3,0($0)
sb $3,0($0)
and $6,$3,$3
xori $3,$4,48838
sltiu $3,$3,19997
slti $0,$0,-29463
sllv $4,$5,$3
nor $4,$4,$3
subu $3,$0,$3
or $3,$3,$3
addiu $3,$3,-15352
andi $3,$3,35626
srlv $5,$5,$3
srlv $6,$4,$3
srav $1,$1,$3
addu $3,$3,$3
lh $3,8($0)
sltiu $4,$3,-31748
slti $3,$3,14636
addiu $3,$0,7242
lh $3,16($0)
srl $5,$3,12
lw $4,4($0)
sw $0,12($0)
lw $4,0($0)
addiu $0,$4,9398
sw $3,8($0)
srav $3,$0,$3
ori $0,$5,13785
nor $5,$3,$3
sltu $4,$3,$3
lbu $4,6($0)
addiu $3,$5,25831
lb $6,14($0)
addu $1,$5,$3
xor $5,$3,$3
lhu $1,2($0)
lw $3,8($0)
slt $0,$4,$3
slt $4,$2,$3
sra $1,$6,2
lbu $1,12($0)
srl $6,$6,28
xori $3,$3,46174
sltiu $5,$1,-26943
nor $5,$0,$3
xori $3,$2,41998
or $0,$1,$3
xor $3,$3,$3
sltiu $4,$5,9163
slti $4,$1,11320
and $3,$3,$3
slti $4,$3,11086
sllv $4,$5,$3
lhu $3,2($0)
sllv $3,$3,$3
srlv $4,$5,$3
sltiu $1,$3,-32357
slti $3,$0,-15959
sltu $3,$1,$3
xori $3,$3,21000
sb $1,0($0)
lbu $4,8($0)
sltu $1,$3,$3
subu $3,$3,$3
nor $0,$6,$3
or $5,$3,$3
xori $1,$1,61992
and $4,$4,$3
andi $0,$3,47288
nor $5,$5,$3
addiu $3,$6,8207
sltiu $1,$5,-4026
lbu $1,4($0)
lw $0,8($0)
lw $3,0($0)
ori $4,$1,12843
lbu $3,6($0)
lw $5,0($0)
sra $3,$3,22
srlv $5,$3,$3
sltu $5,$3,$3
ori $5,$3,38189
subu $0,$6,$3
addu $4,$3,$3
srav $1,$3,$3
lhu $1,0($0)
xori $3,$3,36637
sllv $0,$4,$3
addiu $1,$4,14937
addu $4,$2,$3
nor $3,$4,$3
lw $3,12($0)
andi $1,$0,8739
sb $5,0($0)
lw $4,8($0)
lhu $4,12($0)
lbu $4,1($0)
or $4,$3,$3
subu $3,$4,$3
lw $3,0($0)
addu $3,$2,$3
lbu $1,8($0)
sh $0,10($0)
andi $3,$3,59217
lb $1,7($0)
nor $5,$3,$3
srl $3,$1,11
sra $3,$1,31
sra $5,$1,8
sltiu $4,$2,28054
andi $4,$4,59764
subu $6,$4,$3
lw $5,0($0)
slti $5,$3,28215
sltiu $5,$5,-17765
lbu $3,13($0)
lhu $1,0($0)
sltu $3,$1,$3
sllv $3,$1,$3
sra $4,$3,4
sb $6,2($0)
sltiu $1,$2,1858
slti $3,$3,-27398
sllv $5,$3,$3
nor $4,$3,$3
lh $1,8($0)
lbu $1,8($0)
xori $4,$1,295
lhu $3,14($0)
addiu $3,$5,-14167
addiu $3,$6,-12161
slt $3,$3,$3
sltu $4,$1,$3
lb $6,15($0)
sll $3,$1,22
or $5,$5,$3
addu $3,$4,$3
nor $6,$0,$3
nor $4,$5,$3
sra $4,$6,15
slti $1,$1,19943
lhu $1,10($0)
lw $0,0($0)
andi $1,$6,49837
sb $4,6($0)
sb $6,3($0)
lb $4,2($0)
lbu $3,5($0)
sllv $5,$3,$3
sb $3,12($0)
xor $5,$3,$3
sllv $4,$4,$3
ori $5,$4,53264
srlv $5,$4,$3
addiu $3,$3,-12908
sllv $4,$3,$3
addu $5,$5,$3
addu $3,$3,$3
ori $0,$4,4681
nor $4,$4,$3
addiu $3,$4,-18192
sllv $3,$5,$3
addiu $1,$0,4588
addu $3,$6,$3
subu $6,$6,$3
xor $5,$3,$3
sra $5,$6,6
addu $3,$3,$3
sll $4,$4,1
lw $5,16($0)
ori $3,$4,21328
sb $1,16($0)
slti $3,$5,-1040
nor $3,$1,$3
subu $3,$5,$3
addiu $3,$1,-23043
sltu $4,$3,$3
lb $6,3($0)
addu $6,$3,$3
sllv $3,$4,$3
subu $3,$3,$3
ori $1,$1,43941
sltu $4,$3,$3
addiu $3,$1,-8609
nor $1,$5,$3
addu $4,$5,$3
subu $5,$1,$3
sltu $6,$5,$3
addu $1,$6,$3
lh $1,14($0)
slti $4,$3,-12410
sw $1,16($0)
sb $3,15($0)
sllv $4,$3,$3
nor $3,$3,$3
srav $3,$4,$3
nor $3,$2,$3
sltu $6,$3,$3
sra $0,$1,29
addu $4,$5,$3
and $3,$3,$3
slti $5,$5,12343
ori $0,$3,61973
lhu $4,14($0)
lbu $3,1($0)
addiu $4,$4,-13205
and $3,$3,$3
sh $5,8($0)
lb $5,10($0)
sb $3,6($0)
lw $1,0($0)
sb $0,1($0)
subu $3,$3,$3
nor $1,$6,$3
andi $3,$2,24073
srlv $0,$4,$3
ori $5,$4,45875
sh $0,2($0)
sh $1,2($0)
addu $3,$3,$3
sll $1,$0,16
and $3,$5,$3
addu $6,$0,$3
and $3,$3,$3
lbu $4,8($0)
sb $5,0($0)
addiu $3,$1,-28461
subu $3,$4,$3
lw $0,8($0)
addiu $1,$3,-20288
srlv $6,$6,$3
nor $4,$4,$3
sll $4,$1,27
ori $1,$1,61606
sllv $3,$1,$3
sll $4,$6,30
sltu $3,$5,$3
lb $3,12($0)
lhu $0,14($0)
lhu $3,2($0)
slti $3,$3,3359
subu $0,$3,$3
addiu $5,$5,-17685
addu $4,$4,$3
addu $5,$4,$3
addu $0,$0,$3
slti $4,$3,-7537
subu $1,$4,$3
sw $3,8($0)
addiu $5,$5,-383
addiu $4,$3,-16307
sw $5,8($0)
and $4,$0,$3
sw $6,16($0)
subu $5,$3,$3
and $4,$4,$3
and $3,$4,$3
lb $5,13($0)
lhu $0,6($0)
srl $5,$0,10
andi $5,$5,37578
lw $4,0($0)
subu $6,$6,$3
sb $4,4($0)
lw $3,0($0)
nor $1,$1,$3
addiu $3,$3,20075
andi $4,$3,30422
xori $4,$4,46526
lh $3,8($0)
srl $0,$0,28
sh $4,6($0)
srl $3,$2,13
sltiu $3,$3,-31822
sb $4,10($0)
addiu $3,$3,8291
ori $3,$4,44102
addiu $6,$6,-20611
srlv $3,$3,$3
sltu $4,$3,$3
addu $0,$5,$3
sll $5,$3,19
ori $1,$3,17131
addu $1,$2,$3
sw $5,4($0)
sltu $3,$4,$3
sllv $1,$1,$3
srl $5,$6,2
sra $6,$4,12
lb $4,9($0)
srlv $3,$6,$3
lbu $3,7($0)
slti $4,$4,13503
sll $3,$3,7
srlv $4,$3,$3
lbu $4,3($0)
lh $5,12($0)
lbu $3,2($0)
srlv $5,$3,$3
sltu $6,$0,$3
sllv $3,$3,$3
srav $5,$1,$3
addiu $3,$4,2283
srav $4,$0,$3
lw $3,12($0)
or $4,$5,$3
addu $3,$3,$3
srl $0,$3,11
srlv $1,$1,$3
lbu $1,15($0)
slti $4,$3,16675
andi $3,$5,11358
lhu $6,10($0)
nor $4,$1,$3
sllv $3,$5,$3
sll $4,$4,11
subu $0,$4,$3
addu $3,$3,$3
slt $3,$3,$3
sw $3,12($0)
nor $5,$3,$3
lh $1,4($0)
subu $6,$4,$3
subu $5,$4,$3
xori $6,$6,10445
srlv $5,$6,$3
ori $1,$4,48317
sltiu $3,$3,24591
srlv $1,$1,$3
sllv $6,$6,$3
nor $4,$4,$3
sb $1,14($0)
lb $4,15($0)
subu $4,$4,$3
subu $1,$2,$3
sltiu $5,$3,28756
lbu $1,1($0)
xor $3,$1,$3
sra $6,$6,24
sllv $1,$1,$3
ori $0,$0,16700
sllv $6,$3,$3
sll $1,$5,13
addu $4,$4,$3
subu $1,$4,$3
lw $4,16($0)
sra $4,$3,21
slti $6,$6,-6549
addu $3,$3,$3
sltiu $3,$3,-20924
sh $4,6($0)
addiu $5,$5,-3954
sltu $1,$5,$3
sll $3,$1,13
slti $1,$1,20002
slt $3,$6,$3
srl $3,$3,10
sltiu $3,$5,-1244
xori $5,$5,46711
addu $4,$6,$3
sltiu $4,$4,-22840
sra $1,$2,1
or $3,$5,$3
and $0,$6,$3
subu $4,$6,$3
lhu $4,6($0)
lbu $5,5($0)
subu $5,$5,$3
subu $3,$3,$3
addiu $1,$5,19270
addu $3,$2,$3
subu $3,$4,$3
sra $6,$3,19
lhu $6,2($0)
sb $4,11($0)
sltiu $3,$0,-20808
srav $3,$6,$3
lb $4,15($0)
slti $3,$6,-15408
or $4,$4,$3
ori $3,$3,41409
sltu $5,$4,$3
sra $5,$6,28
and $3,$3,$3
and $5,$6,$3
sw $5,12($0)
srlv $3,$3,$3
addiu $5,$5,20383
andi $4,$3,47768
lhu $3,4($0)
sb $4,1($0)
subu $3,$3,$3
lb $1,10($0)
ori $6,$6,30311
sb $4,15($0)
sra $4,$4,25
and $3,$6,$3
or $4,$3,$3
xori $6,$3,8055
subu $3,$1,$3
andi $5,$1,10778
slti $5,$5,15624
srlv $4,$5,$3
sltiu $5,$3,-31708
addiu $1,$5,-4964
sra $3,$3,6
subu $1,$5,$3
nor $6,$3,$3
nor $6,$3,$3
nor $4,$5,$3
srlv $1,$1,$3
lh $3,12($0)
lhu $3,8($0)
sra $4,$0,31
sra $4,$1,21
srav $5,$4,$3
lb $5,5($0)
srl $3,$3,31
addiu $3,$3,12617
sb $3,9($0)
slt $1,$3,$3
subu $1,$1,$3
lbu $3,6($0)
ori $4,$3,6734
lw $4,0($0)
sb $5,5($0)
addiu $3,$4,-4402
subu $6,$4,$3
srlv $5,$3,$3
addu $1,$3,$3
addiu $3,$2,12159
subu $3,$0,$3
lb $4,12($0)
addiu $3,$5,-20882
subu $3,$3,$3
sw $5,8($0)
sll $1,$3,13
or $4,$4,$3
sltu $1,$5,$3
andi $4,$3,57505
lw $3,16($0)
lh $4,10($0)
sllv $5,$3,$3
sb $5,4($0)
lb $3,0($0)
slti $1,$4,9686
lhu $4,10($0)
ori $4,$1,4443
slti $1,$0,-1958
sltu $3,$3,$3
or $4,$4,$3
lh $0,8($0)
ori $4,$4,23401
| 14.138358 | 18 | 0.523431 |
6b9f6b708d2fdd1b7e38bee5d2c1d8551d168ce1 | 361 | asm | Assembly | oeis/129/A129685.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/129/A129685.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/129/A129685.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A129685: Exponential Riordan array [1-x^2/2, x].
; Submitted by Jamie Morken(w1)
; 1,0,1,-1,0,1,0,-3,0,1,0,0,-6,0,1,0,0,0,-10,0,1,0,0,0,0,-15,0,1,0,0,0,0,0,-21,0,1,0,0,0,0,0,0,-28,0,1,0,0,0,0,0,0,0,-36,0,1,0,0,0,0,0,0,0,0,-45,0,1
lpb $0
add $1,1
sub $0,$1
mov $2,$1
sub $2,$0
lpe
bin $1,$0
mov $0,-1
pow $0,$2
sub $0,$2
pow $0,$0
mul $1,$0
mov $0,$1
| 20.055556 | 148 | 0.534626 |
40792231508fcc1dcf32916bad49e6a5d5601726 | 3,022 | asm | Assembly | src/print.asm | jardafis/CastleEscape | 3deb573938109a8ea84277d83dd7a163588747a4 | [
"BSD-3-Clause"
] | 1 | 2022-01-07T07:10:55.000Z | 2022-01-07T07:10:55.000Z | src/print.asm | jardafis/CastleEscape | 3deb573938109a8ea84277d83dd7a163588747a4 | [
"BSD-3-Clause"
] | null | null | null | src/print.asm | jardafis/CastleEscape | 3deb573938109a8ea84277d83dd7a163588747a4 | [
"BSD-3-Clause"
] | null | null | null | extern setAttr
public _printChar
public print
public printAttr
public printChar
public font
section CODE_4
#include "defs.inc"
;
; Display a char at the specified location.
; Callable from 'C', parameters are passed on
; the stack.
;
defvars 0 ; Define the stack variables used
{
yPos ds.b 2
xPos ds.b 2
char ds.b 2
}
_printChar:
entry
ld b, (ix+yPos)
ld c, (ix+xPos)
ld a, (ix+char)
call printChar
exit
ret
;
; Display a string with attributes.
;
; Entry:
; hl - Pointer to string
; b - Y screen start position
; c - X screen start position
; a - Screen attributes
;
; Exit:
; hl - Points to the memory location following the strings
; null terminator.
; c - Screen X position following the string
;
printAttr:
push af
push de
ld e, a
L1b:
ld a, (hl)
inc hl
or a
jr z, L1f
call printChar
ld a, e
call setAttr
inc c
jr L1b
L1f:
pop de
pop af
ret
;
; Display a string.
;
; Entry:
; hl - Pointer to string
; b - Y screen start position
; c - X screen start position
;
; Exit:
; hl - Points to the memory location following the strings
; null terminator.
; c - Screen X position following the string
;
print:
push af
L2b:
ld a, (hl)
inc hl
or a
jr z, L2f
call printChar
inc c
jr L2b
L2f:
pop af
ret
;
; Display a character at the specified position.
;
; Input:
; b - Y character position
; c - X character position
; a - Character to display
;
printChar:
push af
push bc
push hl
IF _ZXN
extern displayTile
; Clear the tile over the character
ld l, a
ld a, ID_BLANK
call displayTile
ld a, l
ENDIF
sub ' ' ; Font data starts at <SPACE>
ld l, a ; Get char to display
ld h, 0
hlx 8
outChar font
pop hl
pop bc
pop af
ret
section RODATA_4
font:
binary "Torment.ch8"
; Sad face ASCII 0x80 (128)
defb 60
defb 66
defb 165
defb 129
defb 153
defb 165
defb 66
defb 60
| 20.418919 | 73 | 0.416281 |
8b506531b8a6f8a7b0d19bcfad0bba6c554a9c98 | 305 | asm | Assembly | oeis/176/A176260.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/176/A176260.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/176/A176260.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A176260: Periodic sequence: Repeat 5, 1.
; Submitted by Christian Krause
; 5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1
gcd $0,2
mul $0,4
sub $0,3
| 38.125 | 201 | 0.563934 |
3d4a6434d21de64648c3f49edf54012c818433a3 | 191 | asm | Assembly | tools/DOSBox-0.74Win/FSysFAT/avt/p1_asm/X1_Begin/p1.asm | cyberitsec/antivirus | 812be691c2a24cc4488ec848b64b57558c0311ab | [
"MIT"
] | 1 | 2021-09-28T23:47:40.000Z | 2021-09-28T23:47:40.000Z | tools/DOSBox-0.74Win/FSysFAT/avt/p1_asm/X1_Begin/p1.asm | cyberitsec/antivirus | 812be691c2a24cc4488ec848b64b57558c0311ab | [
"MIT"
] | null | null | null | tools/DOSBox-0.74Win/FSysFAT/avt/p1_asm/X1_Begin/p1.asm | cyberitsec/antivirus | 812be691c2a24cc4488ec848b64b57558c0311ab | [
"MIT"
] | null | null | null | .model small
.stack 16
.data
a db 7
b db 9
c dw ?
.code
start:
mov AX, @data
mov DS, AX
xor AX, AX
mov AL,a
add AL,b
mov c,AX
mov AX, 4C00h
int 21h
end start | 8.681818 | 15 | 0.554974 |
803203d07032dee0179970321f1427a457f4fe23 | 366 | asm | Assembly | programs/oeis/126/A126235.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/126/A126235.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/126/A126235.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A126235: Minimum length of a codeword in Huffman encoding of n symbols, where the k-th symbol has frequency k.
; 1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6
div $0,3
add $0,1
log $0,2
mov $1,$0
add $1,1
| 40.666667 | 205 | 0.587432 |
4fca3bc885ae74529701db7794c3a79d53c39006 | 1,346 | asm | Assembly | hw_5/homework.asm | yuhanchengo/assembly | e1d1a44488763c8dab1cd8eafe3454c4f9b67800 | [
"MIT"
] | null | null | null | hw_5/homework.asm | yuhanchengo/assembly | e1d1a44488763c8dab1cd8eafe3454c4f9b67800 | [
"MIT"
] | null | null | null | hw_5/homework.asm | yuhanchengo/assembly | e1d1a44488763c8dab1cd8eafe3454c4f9b67800 | [
"MIT"
] | null | null | null | TITLE ASM_practice_003 (p03.asm)
INCLUDE Irvine32.inc
main EQU start@0
.data
myID BYTE 1,0,2,4,0,1,0,5,3
sizeID = ($-myID); $ is the current address of assembler, so when using the current address to minus the address of variable myID, we get the length of myID
myID_odd DWORD ?
myID_even DWORD ?
myID_result DWORD ?
.code
main PROC
mov ecx, sizeID; set the iterations
xor edx, edx; edx = 0 the number of odd numbers
xor ebx, ebx; ebx = 0 the sum of even numbers
xor esi, esi; esi = 0
L1:
movzx eax, myID[esi]
test eax, 1; check if last bit of eax is 1
jnz L2; if not 0,which means its a odd number, then jump to L2
add ebx, eax
jmp L3; go to L3
L2:
add edx, 1
L3:
inc esi; move to next element
loop L1
mov myID_odd, edx; put the number of odd numbers into myID_odd
mov myID_even, ebx; put the sum of even numbers into myID_even
; multiplication of myID_odd and myID_even using addition and loop
mov edx, myID_odd; move myID_odd to edx register
mov ebx, myID_even; move myID_even to ebx register
dec edx; because there is already an intial value in myID_even, so I do the decrement of edx once in advance
L:
add ebx, myID_even; add myID_even to ebx
dec edx
jnz L
mov myID_result, ebx; store the multiplication result to myID_result
exit
main ENDP
END main | 28.638298 | 158 | 0.70951 |
6e76290456c547748a99edb478c6598c399accdf | 227 | asm | Assembly | src/third_party/nasm/test/warnstack.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/warnstack.asm | Mr-Sheep/naiveproxy | 9f6e9768295f6d1d41517a15a621d4756bd7d6be | [
"BSD-3-Clause"
] | 250 | 2018-02-02T23:16:57.000Z | 2022-03-21T06:09:53.000Z | src/third_party/nasm/test/warnstack.asm | Mr-Sheep/naiveproxy | 9f6e9768295f6d1d41517a15a621d4756bd7d6be | [
"BSD-3-Clause"
] | 473 | 2019-03-24T16:34:23.000Z | 2022-03-31T02:01:05.000Z | %warning "Good warning"
[warning push]
[warning -user]
%warning "Bad warning"
[warning pop]
%warning "Good warning"
[warning -user]
%warning "Bad warning"
[warning pop] ; should warn but reset all
%warning "Good warning"
| 20.636364 | 43 | 0.713656 |
ca304b5f4113b88d67728b92a1760fb906542d92 | 347 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/am9511/c/sdcc/cam32_sdcc_sqrt.asm | ahjelm/z88dk | c4de367f39a76b41f6390ceeab77737e148178fa | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/math/float/am9511/c/sdcc/cam32_sdcc_sqrt.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/math/float/am9511/c/sdcc/cam32_sdcc_sqrt.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; float __sqrt (float number)
SECTION code_clib
SECTION code_fp_am9511
PUBLIC cam32_sdcc_sqrt
EXTERN asm_am9511_sqrt
; square root sdcc float
;
; enter : stack = sdcc_float number, ret
;
; exit : DEHL = sdcc_float(number^0.5)
;
; uses : af, bc, de, hl, af', bc', de', hl'
defc cam32_sdcc_sqrt = asm_am9511_sqrt
| 17.35 | 48 | 0.659942 |
74339d9ff1afaed7de0c161d9f56eeea809f7e59 | 5,921 | asm | Assembly | tools/asmx2/test/68hcs08.asm | retro16/blastsdk | 572bd8489e6a2c1cc638120aa62241c99badc2e5 | [
"MIT"
] | 10 | 2017-01-14T16:22:58.000Z | 2021-02-16T21:41:48.000Z | tools/asmx2/test/68hcs08.asm | retro16/blastsdk | 572bd8489e6a2c1cc638120aa62241c99badc2e5 | [
"MIT"
] | 3 | 2016-09-15T21:45:34.000Z | 2016-09-17T08:06:06.000Z | tools/asmx2/test/68hcs08.asm | retro16/blastsdk | 572bd8489e6a2c1cc638120aa62241c99badc2e5 | [
"MIT"
] | 2 | 2016-09-15T22:09:38.000Z | 2018-05-21T15:26:30.000Z | ; 6805.asm
dir EQU 'D'
imm EQU 'I'
imm16 EQU 'IM'
ix1 EQU 'X'
ix2 EQU 'X2'
ext EQU 'EX'
sp1 EQU 'S'
sp2 EQU 'S2'
BRSET 0 dir . ; 00 44 FE
BRCLR 0 dir . ; 01 44 FE
BRSET 1 dir . ; 02 44 FE
BRCLR 1 dir . ; 03 44 FE
BRSET 2 dir . ; 04 44 FE
BRCLR 2 dir . ; 05 44 FE
BRSET 3 dir . ; 06 44 FE
BRCLR 3 dir . ; 07 44 FE
BRSET 4 dir . ; 08 44 FE
BRCLR 4 dir . ; 09 44 FE
BRSET 5 dir . ; 0A 44 FE
BRCLR 5 dir . ; 0B 44 FE
BRSET 6 dir . ; 0C 44 FE
BRCLR 6 dir . ; 0D 44 FE
BRSET 7 dir . ; 0E 44 FE
BRCLR 7 dir . ; 0F 44 FE
BSET 0 dir ; 10 44
BCLR 0 dir ; 11 44
BSET 1 dir ; 12 44
BCLR 1 dir ; 13 44
BSET 2 dir ; 14 44
BCLR 2 dir ; 15 44
BSET 3 dir ; 16 44
BCLR 3 dir ; 17 44
BSET 4 dir ; 18 44
BCLR 4 dir ; 19 44
BSET 5 dir ; 1A 44
BCLR 5 dir ; 1B 44
BSET 6 dir ; 1C 44
BCLR 6 dir ; 1D 44
BSET 7 dir ; 1E 44
BCLR 7 dir ; 1F 44
BRA . ; 20 FE
BRN . ; 21 FE
BHI . ; 22 FE
BLS . ; 23 FE
BCC . ; 24 FE
BCS . ; 25 FE
BHS . ; 24 FE
BLO . ; 25 FE
BNE . ; 26 FE
BEQ . ; 27 FE
BHCC . ; 28 FE
BHCS . ; 29 FE
BPL . ; 2A FE
BMI . ; 2B FE
BMC . ; 2C FE
BMS . ; 2D FE
BIL . ; 2E FE
BIH . ; 2F FE
NEG dir ; 30 44
CBEQ dir,. ; 31 44 FD
LDHX ext ; 32 4558
COM dir ; 33 44
LSR dir ; 34 44
STHX dir ; 35 44
ROR dir ; 36 44
ASR dir ; 37 44
ASL dir ; 38 44
LSL dir ; 38 44
ROL dir ; 39 44
DEC dir ; 3A 44
DBNZ dir,. ; 3B 44 FD
INC dir ; 3C 44
TST dir ; 3D 44
CPHX ext ; 3E 4558
CLR dir ; 3F 44
NEGA ; 40
CBEQA #imm,. ; 41 49 FD
MUL ; 42
COMA ; 43
LSRA ; 44
LDHX #imm16 ; 45 494D
RORA ; 46
ASRA ; 47
ASLA ; 48
LSLA ; 48
ROLA ; 49
DECA ; 4A
DBNZA . ; 4B FE
INCA ; 4C
TSTA ; 4D
MOV dir,dir+1 ; 4E 44 45
CLRA ; 4F
NEGX ; 50
CBEQX #imm,. ; 51 49 FD
DIV ; 52
COMX ; 53
LSRX ; 54
LDHX dir ; 55 44
RORX ; 56
ASRX ; 57
ASLX ; 58
LSLX ; 58
ROLX ; 59
DECX ; 5A
DBNZX . ; 5B FE
INCX ; 5C
TSTX ; 5D
MOV dir,X+ ; 5E 44
CLRX ; 5F
NEG ix1,X ; 60 58
CBEQ ix1,X+,. ; 61 58 FD
NSA ; 62
COM ix1,X ; 63 58
LSR ix1,X ; 64 58
CPHX #imm16 ; 65 494D
ROR ix1,X ; 66 58
ASR ix1,X ; 67 58
ASL ix1,X ; 68 58
LSL ix1,X ; 68 58
ROL ix1,X ; 69 58
DEC ix1,X ; 6A 58
DBNZ ix1,X,. ; 6B 58 FD
INC ix1,X ; 6C 58
TST ix1,X ; 6D 58
MOV #imm,dir ; 6E 49 44
CLR ix1,X ; 6F 58
NEG ,X ; 70
CBEQ ,X+,. ; 71 FE
DAA ; 72
COM ,X ; 73
LSR ,X ; 74
CPHX dir ; 75 44
ROR ,X ; 76
ASR ,X ; 77
ASL ,X ; 78
LSL ,X ; 78
ROL ,X ; 79
DEC ,X ; 7A
DBNZ ,X,. ; 7B FE
INC ,X ; 7C
TST ,X ; 7D
MOV ,X+,dir ; 7E 44
CLR ,X ; 7F
RTI ; 80
RTS ; 81
BGND ; 82
SWI ; 83
TAP ; 84
TPA ; 85
PULA ; 86
PSHA ; 87
PULX ; 88
PSHX ; 89
PULH ; 8A
PSHH ; 8B
CLRH ; 8C
FCB $8D ; 8D
STOP ; 8E
WAIT ; 8F
BGE . ; 90 FE
BLT . ; 91 FE
BGT . ; 92 FE
BLE . ; 93 FE
TXS ; 94
TSX ; 95
STHX ext ; 96 4558
TAX ; 97
CLC ; 98
SEC ; 99
CLI ; 9A
SEI ; 9B
RSP ; 9C (reset stack pointer)
NOP ; 9D
FCB $9E ; 9E (PAGE 2)
TXA ; 9F
SUB #imm ; A0 49
CMP #imm ; A1 49
SBC #imm ; A2 49
CPX #imm ; A3 49
AND #imm ; A4 49
BIT #imm ; A5 49
LDA #imm ; A6 49
AIS #imm ; A7 49
EOR #imm ; A8 49
ADC #imm ; A9 49
ORA #imm ; AA 49
ADD #imm ; AB 49
FCB $AC ; AC (JMP #imm)
BSR . ; AD FE
LDX #imm ; AE 49
AIX #imm ; AF 49
SUB dir ; B0 44
CMP dir ; B1 44
SBC dir ; B2 44
CPX dir ; B3 44
AND dir ; B4 44
BIT dir ; B5 44
LDA dir ; B6 44
STA dir ; B7 44
EOR dir ; B8 44
ADC dir ; B9 44
ORA dir ; BA 44
ADD dir ; BB 44
JMP dir ; BC 44
JSR dir ; BD 44
LDX dir ; BE 44
STX dir ; BF 44
SUB ext ; C0 4558
CMP ext ; C1 4558
SBC ext ; C2 4558
CPX ext ; C3 4558
AND ext ; C4 4558
BIT ext ; C5 4558
LDA ext ; C6 4558
STA ext ; C7 4558
EOR ext ; C8 4558
ADC ext ; C9 4558
ORA ext ; CA 4558
ADD ext ; CB 4558
JMP ext ; CC 4558
JSR ext ; CD 4558
LDX ext ; CE 4558
STX ext ; CF 4558
SUB ix2,X ; D0 5832
CMP ix2,X ; D1 5832
SBC ix2,X ; D2 5832
CPX ix2,X ; D3 5832
AND ix2,X ; D4 5832
BIT ix2,X ; D5 5832
LDA ix2,X ; D6 5832
STA ix2,X ; D7 5832
EOR ix2,X ; D8 5832
ADC ix2,X ; D9 5832
ORA ix2,X ; DA 5832
ADD ix2,X ; DB 5832
JMP ix2,X ; DC 5832
JSR ix2,X ; DD 5832
LDX ix2,X ; DE 5832
STX ix2,X ; DF 5832
SUB ix1,X ; E0 58
CMP ix1,X ; E1 58
SBC ix1,X ; E2 58
CPX ix1,X ; E3 58
AND ix1,X ; E4 58
BIT ix1,X ; E5 58
LDA ix1,X ; E6 58
STA ix1,X ; E7 58
EOR ix1,X ; E8 58
ADC ix1,X ; E9 58
ORA ix1,X ; EA 58
ADD ix1,X ; EB 58
JMP ix1,X ; EC 58
JSR ix1,X ; ED 58
LDX ix1,X ; EE 58
STX ix1,X ; EF 58
SUB ,X ; F0
CMP ,X ; F1
SBC ,X ; F2
CPX ,X ; F3
AND ,X ; F4
BIT ,X ; F5
LDA ,X ; F6
STA ,X ; F7
EOR ,X ; F8
ADC ,X ; F9
ORA ,X ; FA
ADD ,X ; FB
JMP ,X ; FC
JSR ,X ; FD
LDX ,X ; FE
STX ,X ; FF
NEG sp1,SP ; 9E60 53
CBEQ sp1,SP,. ; 9E61 53 FC
; 9E62
COM sp1,SP ; 9E63 53
LSR sp1,SP ; 9E64 53
; 9E65
ROR sp1,SP ; 9E66 53
ASR sp1,SP ; 9E67 53
ASL sp1,SP ; 9E68 53
LSL sp1,SP ; 9E68 53
ROL sp1,SP ; 9E69 53
DEC sp1,SP ; 9E6A 53
DBNZ sp1,SP,. ; 9E6B 53 FC
INC sp1,SP ; 9E6C 53
TST sp1,SP ; 9E6D 53
; 9E6E
CLR sp1,SP ; 9E6F 53
LDHX ,X ; 9EAE
LDHX ix2,X ; 9EBE 5832
LDHX ix1,X ; 9ECE 58
SUB sp2,SP ; 9ED0 5332
CMP sp2,SP ; 9ED1 5332
SBC sp2,SP ; 9ED2 5332
CPX sp2,SP ; 9ED3 5332
AND sp2,SP ; 9ED4 5332
BIT sp2,SP ; 9ED5 5332
LDA sp2,SP ; 9ED6 5332
STA sp2,SP ; 9ED7 5332
EOR sp2,SP ; 9ED8 5332
ADC sp2,SP ; 9ED9 5332
ORA sp2,SP ; 9EDA 5332
ADD sp2,SP ; 9EDB 5332
; 9EDC
; 9EDD
LDX sp2,SP ; 9EDE 5332
STX sp2,SP ; 9EDF 5332
SUB sp1,SP ; 9EE0 53
CMP sp1,SP ; 9EE1 53
SBC sp1,SP ; 9EE2 53
CPX sp1,SP ; 9EE3 53
AND sp1,SP ; 9EE4 53
BIT sp1,SP ; 9EE5 53
LDA sp1,SP ; 9EE6 53
STA sp1,SP ; 9EE7 53
EOR sp1,SP ; 9EE8 53
ADC sp1,SP ; 9EE9 53
ORA sp1,SP ; 9EEA 53
ADD sp1,SP ; 9EEB 53
; 9EEC
; 9EED
LDX sp1,SP ; 9EEE 53
STX sp1,SP ; 9EEF 53
CPHX sp1,SP ; 9EF3 53
LDHX sp1,SP ; 9EFE 53
STHX sp1,SP ; 9EFF 53
; invalid combinations:
STHX ,X
STHX ix1,X
CPHX ,X
CPHX ix1,X
JMP sp1,SP
JSR sp1,SP
END
| 16.401662 | 32 | 0.570681 |
fd89860a77f1267c334435d8096b4790b635b72e | 781 | asm | Assembly | oeis/141/A141196.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/141/A141196.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/141/A141196.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A141196: Primes of the form 16k+13.
; Submitted by Jon Maiga
; 13,29,61,109,157,173,269,317,349,397,461,509,541,557,653,701,733,797,829,877,941,1021,1069,1117,1181,1213,1229,1277,1373,1453,1549,1597,1613,1693,1709,1741,1789,1901,1933,1949,1997,2029,2141,2221,2237,2269,2333,2381,2477,2557,2621,2749,2797,2861,2909,2957,3037,3181,3229,3373,3389,3469,3517,3533,3581,3613,3677,3709,3821,3853,3917,4013,4093,4157,4253,4349,4397,4493,4621,4637,4733,4813,4861,4877,4909,4957,4973,5021,5101,5197,5261,5309,5437,5501,5581,5693,5741,5821,5869,5981
mov $1,-4
mov $2,$0
add $2,3
pow $2,2
lpb $2
add $1,16
sub $2,2
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
mov $0,$1
add $0,1
| 35.5 | 477 | 0.710627 |
4c3aa614bd6ae37a18ce6696e0c83c30246152ac | 188 | asm | Assembly | programs/oeis/052/A052453.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/052/A052453.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/052/A052453.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A052453: Number of nonisomorphic (3,n) cage graphs.
; 1,1,1,1,1,1,18,3,1,1
add $0,1
lpb $0
add $1,2
mul $0,$1
mod $0,9
lpe
bin $1,2
pow $1,$0
trn $1,2
div $1,2
add $1,1
mov $0,$1
| 11.75 | 53 | 0.574468 |
8bb9c3f4b6fccb641db9fae8920edfd4bfa6f238 | 384 | asm | Assembly | select.asm | dsprenkels/curve13318-haswell | 8f281e2dd5938bf8b7f0e246c99491739cbd8090 | [
"CC0-1.0"
] | 1 | 2019-10-12T17:52:30.000Z | 2019-10-12T17:52:30.000Z | select.asm | dsprenkels/curve13318-haswell | 8f281e2dd5938bf8b7f0e246c99491739cbd8090 | [
"CC0-1.0"
] | null | null | null | select.asm | dsprenkels/curve13318-haswell | 8f281e2dd5938bf8b7f0e246c99491739cbd8090 | [
"CC0-1.0"
] | null | null | null | ; Test function for lookup table scanning
%include "select.mac.asm"
global crypto_scalarmult_curve13318_avx2_select
section .text
crypto_scalarmult_curve13318_avx2_select:
select rsi, rdx
vmovdqa yword [rdi + 32*0], ymm0
vmovdqa yword [rdi + 32*1], ymm1
vmovdqa yword [rdi + 32*2], ymm2
vmovdqa yword [rdi + 32*3], ymm3
ret
section .rodata
select_consts
| 19.2 | 47 | 0.726563 |
e2bc4103222ed0e9c91b29d6c47511f97836a08b | 507 | asm | Assembly | programs/oeis/265/A265723.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/265/A265723.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/265/A265723.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A265723: Number of OFF (white) cells in the n-th iteration of the "Rule 1" elementary cellular automaton starting with a single ON (black) cell.
; 0,3,4,3,8,3,12,3,16,3,20,3,24,3,28,3,32,3,36,3,40,3,44,3,48,3,52,3,56,3,60,3,64,3,68,3,72,3,76,3,80,3,84,3,88,3,92,3,96,3,100,3,104,3,108,3,112,3,116,3,120,3,124,3,128,3,132,3,136,3,140,3,144,3,148,3,152,3,156,3,160,3,164,3,168,3,172,3,176,3,180,3,184,3,188,3,192,3,196,3
mov $1,$0
mul $0,2
sub $0,1
add $1,5
gcd $1,2
mov $2,1
div $2,$1
pow $0,$2
add $0,$1
| 39 | 273 | 0.648915 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.