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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a4a5f62c43dc396043997f53ff8629c5faf6c9df
| 312
|
asm
|
Assembly
|
src/sm/config.asm
|
PJBoy/alttp_sm_combo_randomizer_rom
|
4f14c87227b512a864d1f298e4a6efe7cbc373b3
|
[
"MIT"
] | 31
|
2018-05-03T06:43:23.000Z
|
2021-07-16T13:17:01.000Z
|
src/sm/config.asm
|
PJBoy/alttp_sm_combo_randomizer_rom
|
4f14c87227b512a864d1f298e4a6efe7cbc373b3
|
[
"MIT"
] | 13
|
2018-05-08T20:15:54.000Z
|
2022-01-20T21:28:53.000Z
|
src/sm/config.asm
|
PJBoy/alttp_sm_combo_randomizer_rom
|
4f14c87227b512a864d1f298e4a6efe7cbc373b3
|
[
"MIT"
] | 26
|
2018-05-04T12:25:41.000Z
|
2022-03-23T20:27:57.000Z
|
; General Super Metroid randomizer configuration flags
org $F47200
; Number of SM bosses to defeat
config_sm_bosses:
dw #$0004
; starting events
; 0001 is zebes awake (default)
; 0400 is Tourian open (AKA Fast MB)
; 03C0 is G4 statues already grey (no animation)
config_events: ; F47202
dw #$0001
| 24
| 54
| 0.727564
|
171a3c451577283dea852c6179c38b0dccebcfa5
| 27
|
asm
|
Assembly
|
tests/data_simple/33.asm
|
NullMember/customasm
|
6e34d6432583a41278e6b3596f1817ae82149531
|
[
"Apache-2.0"
] | 414
|
2016-10-14T22:39:20.000Z
|
2022-03-30T07:52:44.000Z
|
tests/data_simple/33.asm
|
NullMember/customasm
|
6e34d6432583a41278e6b3596f1817ae82149531
|
[
"Apache-2.0"
] | 100
|
2018-03-22T16:12:24.000Z
|
2022-03-26T09:19:23.000Z
|
tests/data_simple/33.asm
|
NullMember/customasm
|
6e34d6432583a41278e6b3596f1817ae82149531
|
[
"Apache-2.0"
] | 47
|
2017-06-29T15:12:13.000Z
|
2022-03-10T04:50:51.000Z
|
#d8 0x00`16 ; error: larger
| 27
| 27
| 0.703704
|
5a7849222f6e89d8e5138af990cc0dd261d919a1
| 3,869
|
asm
|
Assembly
|
dv3/fd/pollmc.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
dv3/fd/pollmc.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
dv3/fd/pollmc.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
; DV3 Standard Floppy Polling Routine (with motor control) 1998 Tony Tebby
section dv3
xdef fd_pollmc
xref fd_pflush
xref fd_start
xref fd_deselect
include 'dev8_keys_sys'
include 'dev8_dv3_keys'
include 'dev8_dv3_fd_keys'
include 'dev8_mac_assert'
;+++
; Floppy Polling Interrupt Routine
;
; This provides the basic timing services for the Floppy disk system.
; In particular, it counts the disk runup time preventing write operations
; before the disk is runup, and it counts a delay before flushing the slave
; blocks and map.
;
; Explicit motor control version.
;
; If there is something to be flushed, and the motor is stopped, the motor
; is re-started. This is the only routine that de-selects the floppy disk
; drives. The run-up counter is reset when the drive is (re-)started. This
; is done whenever the drives status is stopped and an action is required.
;
; When there are no pending operations, the timer is used to stop the motor.
;
; In the following table, if the action count reaches its termination, then
; the action for "No count" (ACTM) will follow immediately rather than
; waiting for the next poll.
;
; DRVS MOTOR ACTM FREQ Operation
;
; Stopped Stopped No count None None
; Stopped Stopped No count Required Start drive
; Stopped Stopped Counting None None
; Stopped Stopped Counting Required Start drive
; Stopped Stopped End count None None
; Stopped Stopped End count Required Start drive
; Stopped Stopped Held None None
; Stopped Stopped Held Required None
;
; Run-up On No count None set ACTM (should not happen)
; Run-up On No count Required set ACTM (should not happen)
; Run-up On Counting None Count ACTM slowly (to stop)
; Run-up On Counting Required Count ACTM quickly (to flush)
; Run-up On End count None Stop drive
; Run-up On End count Required Flush / clear FREQ / set ACTM
; Run-up On Held None None
; Run-up On Held Required None
;
; Counting On No count None Count run-up
; Counting On No count Required Count run-up
; Counting On Counting None Count run-up and ACTM
; Counting On Counting Required Count run-up and ACTM quickly
; Counting On End count None Stop drive
; Counting On End count Required Set count to 1 (action pending)
; Counting On Held None Count run-up
; Counting On Held Required Count run-up
;
;---
fd_pollmc
tst.b fdl_drvs(a3) ; stopped?
bge.s fdp_rnup ; ... no
tst.b fdl_freq(a3) ; flush required?
beq.s fdp_rts ; ... no
tst.b fdl_actm(a3) ; suppressed?
bge.l fd_start ; ... no, startup
rts
fdp_rnup
beq.s fdp_actn ; run-up
subq.b #1,fdl_drvs(a3) ; running up
beq.s fdp_actn ; ... run up now
move.b fdl_actm(a3),d0 ; action counter to be decremented?
ble.s fdp_rts ; ... no, held
tst.b fdl_freq(a3) ; flush required?
beq.s fdp_stop ; ... no, count down to stop
subq.b #fdl.actf,d0 ; flush, decrement a bit quicker
bgt.s fdp_acts ; still counting
moveq #1,d0 ; count stays at 1
fdp_acts
move.b d0,fdl_actm(a3) ; decremented timer
fdp_rts
rts
fdp_actn
tst.b fdl_actm(a3) ; suppressed?
blt.s fdp_rts ; ... yes
beq.s fdp_actc ; ... no count at all, set it again
tst.b fdl_freq(a3) ; flush required?
beq.s fdp_stop ; ... no
subq.b #fdl.actf,fdl_actm(a3) ; countdown to flush
bgt.s fdp_rts ; keep it running
jsr fd_pflush ; flush everything
clr.b fdl_freq(a3) ; get ready to stop
fdp_actc
move.b fdl_apnd(a3),fdl_actm(a3) ; and count
rts
fdp_stop
assert fdl.acts,1
subq.b #fdl.acts,fdl_actm(a3) ; ... countdown to stop
bgt.s fdp_rts
st fdl_drvs(a3) ; yes, really
sf fdl_stpb(a3) ; force check
jmp fd_deselect
end
| 31.455285
| 77
| 0.67511
|
51ecd8639f4148d498874093451644adcf12ede5
| 257
|
asm
|
Assembly
|
LAB 2/Lab2Task_1.asm
|
smellycattt/Microprocessor-Programming
|
9046490ba7f8e97963995a32589de4ea1bdb0ef5
|
[
"MIT"
] | 1
|
2019-02-15T21:21:24.000Z
|
2019-02-15T21:21:24.000Z
|
LAB 2/Lab2Task_1.asm
|
jyotishmaan/Microprocessor-Programming
|
7139e9ba0c9fd6f452003ecf07f76b02cb6c1773
|
[
"MIT"
] | null | null | null |
LAB 2/Lab2Task_1.asm
|
jyotishmaan/Microprocessor-Programming
|
7139e9ba0c9fd6f452003ecf07f76b02cb6c1773
|
[
"MIT"
] | 4
|
2017-06-24T11:37:10.000Z
|
2019-02-05T08:12:56.000Z
|
.model tiny
.486
.data
dat1 dd 45678902h,78076788h,9008123ah,345678abh,12345678h
max1 dd ?
.code
.startup
lea si,dat1
mov cx,5
lodsd
x1: cmp eax,[si]
jae x2
mov eax,[si]
x2: add si,4
loop x1
mov max1,eax
.exit
end
| 14.277778
| 59
| 0.614786
|
3995528508dfdc8ee9cc741159aa6928a4f4ba12
| 672
|
asm
|
Assembly
|
Tests/test.asm
|
JustoSenka/8086-16-Bit-Disassembler
|
40fee13f8099b9795f95a33df71b50ae6d08d413
|
[
"MIT"
] | null | null | null |
Tests/test.asm
|
JustoSenka/8086-16-Bit-Disassembler
|
40fee13f8099b9795f95a33df71b50ae6d08d413
|
[
"MIT"
] | null | null | null |
Tests/test.asm
|
JustoSenka/8086-16-Bit-Disassembler
|
40fee13f8099b9795f95a33df71b50ae6d08d413
|
[
"MIT"
] | null | null | null |
.MODEL small
.STACK 100h
.data
.code
; proc _memcpy
push bp ; Set up the call frame
mov bp,sp
push es ; Save ES
mov cx,[bp+6] ; Set CX = len
jcxz done ; If len = 0, return
mov si,[bp+4] ; Set SI = src
mov di,[bp+2] ; Set DI = dst
push ds ; Set ES = DS
pop es
loop_here:
mov al,[si] ; Load AL from [src]
mov [di],al ; Store AL to [dst]
inc si ; Increment src
inc di ; Increment dst
dec cx ; Decrement len
jnz loop_here ; Repeat the loop
done:
pop es ; Restore ES
pop bp ; Restore previous call frame
sub ax,ax ; Set AX = 0
ret ; Return
end
| 20.363636
| 46
| 0.53869
|
7a18e4cb9216b7071c6b6e97ac04903a0e8182b1
| 143
|
asm
|
Assembly
|
other.7z/SFC.7z/SFC/ソースデータ/MarioKart/runed.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/SFC.7z/SFC/ソースデータ/MarioKart/runed.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/SFC.7z/SFC/ソースデータ/MarioKart/runed.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
Name: runed.asm
Type: file
Size: 55260
Last-Modified: '1992-06-02T15:00:00Z'
SHA-1: 44C015A65D2721A7BE597383F86B72436E1AE169
Description: null
| 20.428571
| 47
| 0.811189
|
9a12b3d3211a61f24de5ee5b3f30666ad6ef0f95
| 839
|
asm
|
Assembly
|
programs/oeis/146/A146983.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/146/A146983.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/146/A146983.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A146983: a(n) = A002531(n)*A002531(n+1).
; 1,2,10,35,133,494,1846,6887,25705,95930,358018,1336139,4986541,18610022,69453550,259204175,967363153,3610248434,13473630586,50284273907,187663465045,700369586270,2613814880038,9754889933879,36405744855481,135868089488042,507066613096690,1892398362898715,7062526838498173
mov $14,1
lpb $14
add $11,1
sub $14,1
lpb $11
mov $5,$0
mov $7,2
sub $11,1
lpb $7
clr $0,5
mov $0,$5
sub $7,1
add $0,$7
sub $0,1
mov $1,1
lpb $0
sub $0,1
add $3,2
add $1,$3
add $3,$1
add $1,$3
add $1,2
lpe
div $3,2
add $3,1
mov $1,$3
mov $8,$7
lpb $8
mov $6,$1
sub $8,1
lpe
lpe
lpb $5
mov $5,0
sub $6,$1
lpe
lpe
lpe
mov $1,$6
| 19.511628
| 272
| 0.537545
|
1fae25c8a9fbe77af99fbff01bd45acc799be459
| 581
|
asm
|
Assembly
|
oeis/117/A117794.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/117/A117794.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/117/A117794.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A117794: Hexagonal numbers divisible by 6.
; 0,6,66,120,276,378,630,780,1128,1326,1770,2016,2556,2850,3486,3828,4560,4950,5778,6216,7140,7626,8646,9180,10296,10878,12090,12720,14028,14706,16110,16836,18336,19110,20706,21528,23220,24090,25878,26796,28680,29646,31626,32640,34716,35778,37950,39060,41328,42486,44850,46056,48516,49770,52326,53628,56280,57630,60378,61776,64620,66066,69006,70500,73536,75078,78210,79800,83028,84666,87990,89676,93096,94830,98346,100128,103740,105570,109278,111156,114960,116886,120786,122760,126756,128778,132870
mul $0,3
div $0,2
mul $0,4
bin $0,2
| 72.625
| 498
| 0.800344
|
89fea6a37feb27a40b7692e579338d55186e2471
| 1,776
|
asm
|
Assembly
|
programs/oeis/024/A024015.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/024/A024015.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/024/A024015.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A024015: 2^n-n^5.
; 1,1,-28,-235,-1008,-3093,-7712,-16679,-32512,-58537,-98976,-159003,-244736,-363101,-521440,-726607,-983040,-1288785,-1627424,-1951811,-2151424,-1986949,-959328,1952265,8814592,23788807,55227488,119868821,251225088,516359763,1049441824,2118854497,4261412864,8550799199,17134433760,34307216493,68659010560,137369609515,274798671776,549665589689,1099409227776,2198907399351,4397915819872,8795946013765,17592021128192,35184187560707,70368538214688,140737259010321,281474721906688,562949670946063,1125899594342624,2251799468659997,4503599247166464,9007198836545499,18014398050316960,36028796515679593,72057593487196160,144115187474163815,288230375495354976,576460751588499189,1152921503829246976,2305843008369097651,4611686017511255072,9223372035862339265,18446744072635809792,36893488146258812607,73786976293585873888,147573952588326287821,295147905177898892288,590295810357141620363,1180591620715730603424,2361183241433018377497,4722366482867710296064,9444732965737217355799,18889465931476361848160,37778931862954788662693,75557863725911787893760,151115727451825940054115,302231454903654406502176,604462909807311510296689,1208925819614625897906176,2417851639229254862627951,4835703278458512991426272,9671406556917029458608765,19342813113834062613179392,38685626227668129153544507,77371252455336262476925088,154742504910672529378181321,309485009821345063447461888,618970019642690131865502663,1237940039285380268994224224,2475880078570760543557926997,4951760157141521093005681664,9903520314283042192236110099,19807040628566084391046947360,39614081257132168789034165793,79228162514264337585390223360,158456325028528675178500560415,316912650057057350365136593376,633825300114114700738841702189
mov $1,2
pow $1,$0
pow $0,5
add $0,1
sub $1,$0
add $1,1
mov $0,$1
| 161.454545
| 1,688
| 0.907658
|
1816e25ec8c22557e6c13adb9fc14b746df80ba3
| 5,016
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2_notsx.log_1931_1229.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2_notsx.log_1931_1229.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2_notsx.log_1931_1229.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x64b1, %rsi
lea addresses_normal_ht+0xc131, %rdi
clflush (%rsi)
nop
nop
nop
nop
add %r12, %r12
mov $3, %rcx
rep movsw
nop
sub $32480, %rdi
lea addresses_WT_ht+0x3bb1, %rsi
lea addresses_D_ht+0xf931, %rdi
nop
nop
nop
nop
nop
and %r15, %r15
mov $83, %rcx
rep movsb
nop
nop
xor %r12, %r12
lea addresses_UC_ht+0x1361, %rax
sub $14901, %r10
vmovups (%rax), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %r15
nop
nop
add $7504, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r15
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r9
push %rax
push %rbp
push %rbx
push %rdi
// Store
lea addresses_WC+0x1bc31, %r12
nop
nop
nop
xor $1535, %r9
mov $0x5152535455565758, %rax
movq %rax, %xmm5
movups %xmm5, (%r12)
nop
nop
nop
sub $22582, %rax
// Faulty Load
lea addresses_D+0xb831, %r12
nop
nop
cmp $22372, %rdi
mov (%r12), %ax
lea oracles, %rbx
and $0xff, %rax
shlq $12, %rax
mov (%rbx,%rax,1), %rax
pop %rdi
pop %rbx
pop %rbp
pop %rax
pop %r9
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 4, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 2, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'36': 1931}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 46.018349
| 2,999
| 0.662281
|
2216af08bb5293d73b4545bf0fb69d1a69f99cab
| 648
|
asm
|
Assembly
|
oeis/054/A054851.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/054/A054851.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/054/A054851.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A054851: a(n) = 2^(n-7)*binomial(n,7). Number of 7D hypercubes in an n-dimensional hypercube.
; 1,16,144,960,5280,25344,109824,439296,1647360,5857280,19914752,65175552,206389248,635043840,1905131520,5588385792,16066609152,45364543488,126012620800,344876646400,931166945280,2483111854080,6546385797120,17077528166400,44116947763200,112939386273792,286692288233472,722039837032448,1805099592581120,4481626574684160,11054678884220928,27101793393573888,66060621396836352,160146960962027520,386236788202536960,926968291686088704,2214424252361211904,5266738762372612096,12473854963514081280
mov $1,-2
pow $1,$0
mov $2,-8
bin $2,$0
mul $1,$2
mov $0,$1
| 64.8
| 490
| 0.844136
|
05eef23f8ddaf73c424407b6b6850a857f5d9f76
| 13
|
asm
|
Assembly
|
src/test/resources/data/searchtests/test3-expected.asm
|
cpcitor/mdlz80optimizer
|
75070d984e1f08474e6d397c7e0eb66d8be0c432
|
[
"Apache-2.0"
] | 36
|
2020-06-29T06:52:26.000Z
|
2022-02-10T19:41:58.000Z
|
src/test/resources/data/searchtests/test3-expected.asm
|
cpcitor/mdlz80optimizer
|
75070d984e1f08474e6d397c7e0eb66d8be0c432
|
[
"Apache-2.0"
] | 39
|
2020-07-02T18:19:34.000Z
|
2022-03-27T18:08:54.000Z
|
src/test/resources/data/searchtests/test3-expected.asm
|
cpcitor/mdlz80optimizer
|
75070d984e1f08474e6d397c7e0eb66d8be0c432
|
[
"Apache-2.0"
] | 7
|
2020-07-02T06:00:05.000Z
|
2021-11-28T17:31:13.000Z
|
add a, a
| 6.5
| 12
| 0.384615
|
410e69f7a600bc956fcdce56b877db5fe8ad6f13
| 507
|
asm
|
Assembly
|
projects/07/MemoryAccess/StaticTest/StaticTest.asm
|
WuShaoa/Nand2Tetris
|
1e650b3442aa5c9302837596651cbc66edc629ec
|
[
"MIT"
] | null | null | null |
projects/07/MemoryAccess/StaticTest/StaticTest.asm
|
WuShaoa/Nand2Tetris
|
1e650b3442aa5c9302837596651cbc66edc629ec
|
[
"MIT"
] | null | null | null |
projects/07/MemoryAccess/StaticTest/StaticTest.asm
|
WuShaoa/Nand2Tetris
|
1e650b3442aa5c9302837596651cbc66edc629ec
|
[
"MIT"
] | null | null | null |
@111
D=A
@SP
A=M
M=D
@SP
M=M+1
@333
D=A
@SP
A=M
M=D
@SP
M=M+1
@888
D=A
@SP
A=M
M=D
@SP
M=M+1
@StaticTest.8
D=A
@R15
M=D
@SP
M=M-1
A=M
D=M
@R15
A=M
M=D
@StaticTest.3
D=A
@R15
M=D
@SP
M=M-1
A=M
D=M
@R15
A=M
M=D
@StaticTest.1
D=A
@R15
M=D
@SP
M=M-1
A=M
D=M
@R15
A=M
M=D
@StaticTest.3
D=M
@SP
A=M
M=D
@SP
M=M+1
@StaticTest.1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
M=M-1
A=M
D=M
@SP
M=M-1
A=M
D=M-D
@SP
A=M
M=D
@SP
M=M+1
@StaticTest.8
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
M=M-1
A=M
D=M
@SP
M=M-1
A=M
D=D+M
@SP
A=M
M=D
@SP
M=M+1
| 4.970588
| 13
| 0.556213
|
ab1f0005374866c76007d78d35cd90aa1e3793e2
| 472
|
asm
|
Assembly
|
oeis/130/A130547.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/130/A130547.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/130/A130547.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A130547: Numerators of 6*((Sum_{k=1..n} 1/binomial(2*k,k)) - 1/3), n >= 1.
; Submitted by Christian Krause
; 1,2,23,167,253,5581,13201,48413,823063,15638407,1117033,89921239,256917887,60848977,134111147453,4157445588203,1385815197541,9700706385439,358926136286437,358926136292897,474708760905697
mov $1,3
lpb $0
add $0,1
mov $2,$0
mul $2,2
add $3,$1
mul $3,$0
sub $0,2
mul $1,2
sub $2,1
mul $1,$2
lpe
mul $3,$2
add $1,$3
gcd $3,$1
div $1,$3
mov $0,$1
| 21.454545
| 188
| 0.67161
|
72f58a7b2e6b6070a812f01bc373a20187804184
| 2,997
|
asm
|
Assembly
|
45/runtime/herc/fvars.asm
|
minblock/msdos
|
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
|
[
"Apache-2.0"
] | null | null | null |
45/runtime/herc/fvars.asm
|
minblock/msdos
|
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
|
[
"Apache-2.0"
] | null | null | null |
45/runtime/herc/fvars.asm
|
minblock/msdos
|
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
|
[
"Apache-2.0"
] | null | null | null |
; TITLE FVARS - Global data for MSHERC.
;***
;FVARS
;
; Copyright <C> 1987, 1988, Microsoft Corporation
;
;Purpose:
; Global data for MSHERC.
;
;******************************************************************************
include hgcdefs.inc
code segment para public 'code'
assume cs:code,ds:code
Extrn GetVideoState:near
Extrn SetGraphicsMode:near
Extrn Null_Function:near
Extrn SetCursor:near
Extrn ReadCursor:near
Extrn SetActivePage:near
Extrn WriteDot:near
Extrn ReadDot:near
Extrn WriteTTY:near
Extrn GSetCursorType:near,GScrollUp:near,GScrollDown:near
Extrn GReadAttrChar:near,WriteGrChar:near,GWriteChar:near
Public Old_Int10h_Routine
Public GrFuncTable
Public DMC_Save,HardGraphVals
Public DeltaCols,DeltaRows
Public YTable,UnHookFlag
Public Bit0
Public LEdge,REdge,BitPos,DstEdgeMasks
Public ZERO
Public CharHeight
Public CharBuff
Public ScrollLines
Public ConfigMode ;[1]
;---------INT 10H - Functions Dispatch Table----------
GrFuncTable dw offset SetGraphicsMode
dw offset GSetCursorType
dw offset SetCursor
dw offset ReadCursor
dw offset Null_Function
dw offset SetActivePage
dw offset GScrollUp
dw offset GScrollDown
dw offset GReadAttrChar
dw offset WriteGrChar
dw offset GWriteChar
dw offset Null_Function
dw offset WriteDot
dw offset ReadDot
dw offset WriteTTY
dw offset GetVideoState
Old_Int10h_Routine dd ? ;Segment:Offset of previous INT 10H
UnHookFlag db 1 ;Set to disable HGC Video Routines
;Clear to enable HGC Video Routines
ConfigMode db FULL ;[1] default to FULL mode (3)
ZERO dw 0
DMC_Save db ? ;temp variable for the DMC_Port value
;-------6845 register values for HGC graphics mode-----
HardGraphVals db 35H,2DH,2EH,7,5BH,2,57H,57H,2,3,0,0,0,0
;-------Temporary variables for the Scrolling Procedures------
DeltaCols dw ? ;Number of columns in scroll window
DeltaRows dw ? ;Number of rows in scroll window
ScrollLines dw ? ;number of scan lines to scroll
;------Table of bit position masks------
Bit0 db 00000001b
Bit1 db 00000010b
Bit2 db 00000100b
Bit3 db 00001000b
Bit4 db 00010000b
Bit5 db 00100000b
Bit6 db 01000000b
Bit7 db 10000000b
;------Table of Left Edge Masks--------
LEdge db 11111110b
db 11111100b
db 11111000b
db 11110000b
db 11100000b
db 11000000b
db 10000000b
db 00000000b
;------Table of Right Edge Masks
REdge db 00000000b
db 00000001b
db 00000011b
db 00000111b
db 00001111b
db 00011111b
db 00111111b
db 01111111b
;------Table y coordinate offsets for use in graphics mode calculations-----
YTable label word
?ROW = 0 ;row number
REPT 350 ;loop for each row (scan line)
;compute regen buffer offset for this row
DW 2000H * (?ROW MOD 4) + (?ROW / 4) * 90
?ROW = ?ROW + 1 ;next row
ENDM
;------- Graphics Mode Variables ----------
DstEdgeMasks dw ? ;Dest Left(LSB) and Right(MSB) Edge Masks
BitPos db ? ;Bit Position in Graphics Byte
CharHeight db 14
CharBuff db 14 dup (?) ;hold buffer for reading graphics character
code ends
end
| 24.169355
| 79
| 0.727394
|
62e5a7c0907a70124cbfdc317501552473f10cf2
| 216
|
asm
|
Assembly
|
programs/oeis/010/A010864.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/010/A010864.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/010/A010864.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A010864: Constant sequence: a(n) = 25.
; 25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25
mov $0,25
| 43.2
| 163
| 0.652778
|
2f7917a1c9159a1e08a92bac20dc23a1b9f4603e
| 47,961
|
asm
|
Assembly
|
test_3.asm
|
Anson-Doan/-CS537-Spring2021-P3b-xv6KernelThreads
|
1f48674b6c30c9b5bdc66f85708823fa4a261f1a
|
[
"MIT-0"
] | null | null | null |
test_3.asm
|
Anson-Doan/-CS537-Spring2021-P3b-xv6KernelThreads
|
1f48674b6c30c9b5bdc66f85708823fa4a261f1a
|
[
"MIT-0"
] | null | null | null |
test_3.asm
|
Anson-Doan/-CS537-Spring2021-P3b-xv6KernelThreads
|
1f48674b6c30c9b5bdc66f85708823fa4a261f1a
|
[
"MIT-0"
] | null | null | null |
_test_3: file format elf32-i386
Disassembly of section .text:
00000000 <worker>:
free(p);
exit();
}
void
worker(void *arg1, void *arg2) {
0: f3 0f 1e fb endbr32
4: 55 push %ebp
5: 89 e5 mov %esp,%ebp
7: 83 ec 0c sub $0xc,%esp
assert(write(3, "hello\n", 6) == 6);
a: 6a 06 push $0x6
c: 68 f4 09 00 00 push $0x9f4
11: 6a 03 push $0x3
13: e8 fc 05 00 00 call 614 <write>
18: 83 c4 10 add $0x10,%esp
1b: 83 f8 06 cmp $0x6,%eax
1e: 74 49 je 69 <worker+0x69>
20: 6a 35 push $0x35
22: 68 fb 09 00 00 push $0x9fb
27: 68 04 0a 00 00 push $0xa04
2c: 6a 01 push $0x1
2e: e8 02 07 00 00 call 735 <printf>
33: 83 c4 0c add $0xc,%esp
36: 68 0c 0a 00 00 push $0xa0c
3b: 68 28 0a 00 00 push $0xa28
40: 6a 01 push $0x1
42: e8 ee 06 00 00 call 735 <printf>
47: 83 c4 08 add $0x8,%esp
4a: 68 3c 0a 00 00 push $0xa3c
4f: 6a 01 push $0x1
51: e8 df 06 00 00 call 735 <printf>
56: 83 c4 04 add $0x4,%esp
59: ff 35 70 0e 00 00 pushl 0xe70
5f: e8 c0 05 00 00 call 624 <kill>
64: e8 83 05 00 00 call 5ec <exit>
xchg(&newfd, open("tmp2", O_WRONLY|O_CREATE));
69: 83 ec 08 sub $0x8,%esp
6c: 68 01 02 00 00 push $0x201
71: 68 49 0a 00 00 push $0xa49
76: e8 b9 05 00 00 call 634 <open>
xchg(volatile uint *addr, uint newval)
{
uint result;
// The + in "+m" denotes a read-modify-write operand.
asm volatile("lock; xchgl %0, %1" :
7b: f0 87 05 60 0e 00 00 lock xchg %eax,0xe60
exit();
82: e8 65 05 00 00 call 5ec <exit>
00000087 <main>:
{
87: f3 0f 1e fb endbr32
8b: 8d 4c 24 04 lea 0x4(%esp),%ecx
8f: 83 e4 f0 and $0xfffffff0,%esp
92: ff 71 fc pushl -0x4(%ecx)
95: 55 push %ebp
96: 89 e5 mov %esp,%ebp
98: 56 push %esi
99: 53 push %ebx
9a: 51 push %ecx
9b: 83 ec 1c sub $0x1c,%esp
ppid = getpid();
9e: e8 d1 05 00 00 call 674 <getpid>
a3: a3 70 0e 00 00 mov %eax,0xe70
void *stack, *p = malloc(PGSIZE * 2);
a8: 83 ec 0c sub $0xc,%esp
ab: 68 00 20 00 00 push $0x2000
b0: e8 b1 08 00 00 call 966 <malloc>
assert(p != NULL);
b5: 83 c4 10 add $0x10,%esp
b8: 85 c0 test %eax,%eax
ba: 74 7d je 139 <main+0xb2>
bc: 89 c3 mov %eax,%ebx
if((uint)p % PGSIZE)
be: 25 ff 0f 00 00 and $0xfff,%eax
c3: 0f 84 b9 00 00 00 je 182 <main+0xfb>
stack = p + (PGSIZE - (uint)p % PGSIZE);
c9: be 00 10 00 00 mov $0x1000,%esi
ce: 29 c6 sub %eax,%esi
d0: 01 de add %ebx,%esi
int fd = open("tmp", O_WRONLY|O_CREATE);
d2: 83 ec 08 sub $0x8,%esp
d5: 68 01 02 00 00 push $0x201
da: 68 58 0a 00 00 push $0xa58
df: e8 50 05 00 00 call 634 <open>
assert(fd == 3);
e4: 83 c4 10 add $0x10,%esp
e7: 83 f8 03 cmp $0x3,%eax
ea: 0f 84 99 00 00 00 je 189 <main+0x102>
f0: 6a 25 push $0x25
f2: 68 fb 09 00 00 push $0x9fb
f7: 68 04 0a 00 00 push $0xa04
fc: 6a 01 push $0x1
fe: e8 32 06 00 00 call 735 <printf>
103: 83 c4 0c add $0xc,%esp
106: 68 5c 0a 00 00 push $0xa5c
10b: 68 28 0a 00 00 push $0xa28
110: 6a 01 push $0x1
112: e8 1e 06 00 00 call 735 <printf>
117: 83 c4 08 add $0x8,%esp
11a: 68 3c 0a 00 00 push $0xa3c
11f: 6a 01 push $0x1
121: e8 0f 06 00 00 call 735 <printf>
126: 83 c4 04 add $0x4,%esp
129: ff 35 70 0e 00 00 pushl 0xe70
12f: e8 f0 04 00 00 call 624 <kill>
134: e8 b3 04 00 00 call 5ec <exit>
assert(p != NULL);
139: 6a 1e push $0x1e
13b: 68 fb 09 00 00 push $0x9fb
140: 68 04 0a 00 00 push $0xa04
145: 6a 01 push $0x1
147: e8 e9 05 00 00 call 735 <printf>
14c: 83 c4 0c add $0xc,%esp
14f: 68 4e 0a 00 00 push $0xa4e
154: 68 28 0a 00 00 push $0xa28
159: 6a 01 push $0x1
15b: e8 d5 05 00 00 call 735 <printf>
160: 83 c4 08 add $0x8,%esp
163: 68 3c 0a 00 00 push $0xa3c
168: 6a 01 push $0x1
16a: e8 c6 05 00 00 call 735 <printf>
16f: 83 c4 04 add $0x4,%esp
172: ff 35 70 0e 00 00 pushl 0xe70
178: e8 a7 04 00 00 call 624 <kill>
17d: e8 6a 04 00 00 call 5ec <exit>
stack = p;
182: 89 de mov %ebx,%esi
184: e9 49 ff ff ff jmp d2 <main+0x4b>
int clone_pid = clone(worker, 0, 0, stack);
189: 56 push %esi
18a: 6a 00 push $0x0
18c: 6a 00 push $0x0
18e: 68 00 00 00 00 push $0x0
193: e8 4c 04 00 00 call 5e4 <clone>
198: 89 c6 mov %eax,%esi
assert(clone_pid > 0);
19a: 83 c4 10 add $0x10,%esp
19d: 85 c0 test %eax,%eax
19f: 7e 73 jle 214 <main+0x18d>
while(!newfd);
1a1: a1 60 0e 00 00 mov 0xe60,%eax
1a6: 85 c0 test %eax,%eax
1a8: 74 f7 je 1a1 <main+0x11a>
assert(write(newfd, "goodbye\n", 8) == -1);
1aa: a1 60 0e 00 00 mov 0xe60,%eax
1af: 83 ec 04 sub $0x4,%esp
1b2: 6a 08 push $0x8
1b4: 68 72 0a 00 00 push $0xa72
1b9: 50 push %eax
1ba: e8 55 04 00 00 call 614 <write>
1bf: 83 c4 10 add $0x10,%esp
1c2: 83 f8 ff cmp $0xffffffff,%eax
1c5: 0f 84 92 00 00 00 je 25d <main+0x1d6>
1cb: 6a 29 push $0x29
1cd: 68 fb 09 00 00 push $0x9fb
1d2: 68 04 0a 00 00 push $0xa04
1d7: 6a 01 push $0x1
1d9: e8 57 05 00 00 call 735 <printf>
1de: 83 c4 0c add $0xc,%esp
1e1: 68 a0 0a 00 00 push $0xaa0
1e6: 68 28 0a 00 00 push $0xa28
1eb: 6a 01 push $0x1
1ed: e8 43 05 00 00 call 735 <printf>
1f2: 83 c4 08 add $0x8,%esp
1f5: 68 3c 0a 00 00 push $0xa3c
1fa: 6a 01 push $0x1
1fc: e8 34 05 00 00 call 735 <printf>
201: 83 c4 04 add $0x4,%esp
204: ff 35 70 0e 00 00 pushl 0xe70
20a: e8 15 04 00 00 call 624 <kill>
20f: e8 d8 03 00 00 call 5ec <exit>
assert(clone_pid > 0);
214: 6a 27 push $0x27
216: 68 fb 09 00 00 push $0x9fb
21b: 68 04 0a 00 00 push $0xa04
220: 6a 01 push $0x1
222: e8 0e 05 00 00 call 735 <printf>
227: 83 c4 0c add $0xc,%esp
22a: 68 64 0a 00 00 push $0xa64
22f: 68 28 0a 00 00 push $0xa28
234: 6a 01 push $0x1
236: e8 fa 04 00 00 call 735 <printf>
23b: 83 c4 08 add $0x8,%esp
23e: 68 3c 0a 00 00 push $0xa3c
243: 6a 01 push $0x1
245: e8 eb 04 00 00 call 735 <printf>
24a: 83 c4 04 add $0x4,%esp
24d: ff 35 70 0e 00 00 pushl 0xe70
253: e8 cc 03 00 00 call 624 <kill>
258: e8 8f 03 00 00 call 5ec <exit>
printf(1, "TEST PASSED\n");
25d: 83 ec 08 sub $0x8,%esp
260: 68 7b 0a 00 00 push $0xa7b
265: 6a 01 push $0x1
267: e8 c9 04 00 00 call 735 <printf>
int join_pid = join(&join_stack);
26c: 8d 45 e4 lea -0x1c(%ebp),%eax
26f: 89 04 24 mov %eax,(%esp)
272: e8 85 03 00 00 call 5fc <join>
assert(join_pid == clone_pid);
277: 83 c4 10 add $0x10,%esp
27a: 39 c6 cmp %eax,%esi
27c: 74 49 je 2c7 <main+0x240>
27e: 6a 2e push $0x2e
280: 68 fb 09 00 00 push $0x9fb
285: 68 04 0a 00 00 push $0xa04
28a: 6a 01 push $0x1
28c: e8 a4 04 00 00 call 735 <printf>
291: 83 c4 0c add $0xc,%esp
294: 68 88 0a 00 00 push $0xa88
299: 68 28 0a 00 00 push $0xa28
29e: 6a 01 push $0x1
2a0: e8 90 04 00 00 call 735 <printf>
2a5: 83 c4 08 add $0x8,%esp
2a8: 68 3c 0a 00 00 push $0xa3c
2ad: 6a 01 push $0x1
2af: e8 81 04 00 00 call 735 <printf>
2b4: 83 c4 04 add $0x4,%esp
2b7: ff 35 70 0e 00 00 pushl 0xe70
2bd: e8 62 03 00 00 call 624 <kill>
2c2: e8 25 03 00 00 call 5ec <exit>
free(p);
2c7: 83 ec 0c sub $0xc,%esp
2ca: 53 push %ebx
2cb: e8 d2 05 00 00 call 8a2 <free>
exit();
2d0: e8 17 03 00 00 call 5ec <exit>
000002d5 <strcpy>:
ptr_storage ptr_pairs[NPROC];
int cell_full[NPROC];
char*
strcpy(char *s, const char *t)
{
2d5: f3 0f 1e fb endbr32
2d9: 55 push %ebp
2da: 89 e5 mov %esp,%ebp
2dc: 56 push %esi
2dd: 53 push %ebx
2de: 8b 75 08 mov 0x8(%ebp),%esi
2e1: 8b 55 0c mov 0xc(%ebp),%edx
char *os;
os = s;
while((*s++ = *t++) != 0)
2e4: 89 f0 mov %esi,%eax
2e6: 89 d1 mov %edx,%ecx
2e8: 83 c2 01 add $0x1,%edx
2eb: 89 c3 mov %eax,%ebx
2ed: 83 c0 01 add $0x1,%eax
2f0: 0f b6 09 movzbl (%ecx),%ecx
2f3: 88 0b mov %cl,(%ebx)
2f5: 84 c9 test %cl,%cl
2f7: 75 ed jne 2e6 <strcpy+0x11>
;
return os;
}
2f9: 89 f0 mov %esi,%eax
2fb: 5b pop %ebx
2fc: 5e pop %esi
2fd: 5d pop %ebp
2fe: c3 ret
000002ff <strcmp>:
int
strcmp(const char *p, const char *q)
{
2ff: f3 0f 1e fb endbr32
303: 55 push %ebp
304: 89 e5 mov %esp,%ebp
306: 8b 4d 08 mov 0x8(%ebp),%ecx
309: 8b 55 0c mov 0xc(%ebp),%edx
while(*p && *p == *q)
30c: 0f b6 01 movzbl (%ecx),%eax
30f: 84 c0 test %al,%al
311: 74 0c je 31f <strcmp+0x20>
313: 3a 02 cmp (%edx),%al
315: 75 08 jne 31f <strcmp+0x20>
p++, q++;
317: 83 c1 01 add $0x1,%ecx
31a: 83 c2 01 add $0x1,%edx
31d: eb ed jmp 30c <strcmp+0xd>
return (uchar)*p - (uchar)*q;
31f: 0f b6 c0 movzbl %al,%eax
322: 0f b6 12 movzbl (%edx),%edx
325: 29 d0 sub %edx,%eax
}
327: 5d pop %ebp
328: c3 ret
00000329 <strlen>:
uint
strlen(const char *s)
{
329: f3 0f 1e fb endbr32
32d: 55 push %ebp
32e: 89 e5 mov %esp,%ebp
330: 8b 4d 08 mov 0x8(%ebp),%ecx
int n;
for(n = 0; s[n]; n++)
333: b8 00 00 00 00 mov $0x0,%eax
338: 80 3c 01 00 cmpb $0x0,(%ecx,%eax,1)
33c: 74 05 je 343 <strlen+0x1a>
33e: 83 c0 01 add $0x1,%eax
341: eb f5 jmp 338 <strlen+0xf>
;
return n;
}
343: 5d pop %ebp
344: c3 ret
00000345 <memset>:
void*
memset(void *dst, int c, uint n)
{
345: f3 0f 1e fb endbr32
349: 55 push %ebp
34a: 89 e5 mov %esp,%ebp
34c: 57 push %edi
34d: 8b 55 08 mov 0x8(%ebp),%edx
asm volatile("cld; rep stosb" :
350: 89 d7 mov %edx,%edi
352: 8b 4d 10 mov 0x10(%ebp),%ecx
355: 8b 45 0c mov 0xc(%ebp),%eax
358: fc cld
359: f3 aa rep stos %al,%es:(%edi)
stosb(dst, c, n);
return dst;
}
35b: 89 d0 mov %edx,%eax
35d: 5f pop %edi
35e: 5d pop %ebp
35f: c3 ret
00000360 <strchr>:
char*
strchr(const char *s, char c)
{
360: f3 0f 1e fb endbr32
364: 55 push %ebp
365: 89 e5 mov %esp,%ebp
367: 8b 45 08 mov 0x8(%ebp),%eax
36a: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx
for(; *s; s++)
36e: 0f b6 10 movzbl (%eax),%edx
371: 84 d2 test %dl,%dl
373: 74 09 je 37e <strchr+0x1e>
if(*s == c)
375: 38 ca cmp %cl,%dl
377: 74 0a je 383 <strchr+0x23>
for(; *s; s++)
379: 83 c0 01 add $0x1,%eax
37c: eb f0 jmp 36e <strchr+0xe>
return (char*)s;
return 0;
37e: b8 00 00 00 00 mov $0x0,%eax
}
383: 5d pop %ebp
384: c3 ret
00000385 <gets>:
char*
gets(char *buf, int max)
{
385: f3 0f 1e fb endbr32
389: 55 push %ebp
38a: 89 e5 mov %esp,%ebp
38c: 57 push %edi
38d: 56 push %esi
38e: 53 push %ebx
38f: 83 ec 1c sub $0x1c,%esp
392: 8b 7d 08 mov 0x8(%ebp),%edi
int i, cc;
char c;
for(i=0; i+1 < max; ){
395: bb 00 00 00 00 mov $0x0,%ebx
39a: 89 de mov %ebx,%esi
39c: 83 c3 01 add $0x1,%ebx
39f: 3b 5d 0c cmp 0xc(%ebp),%ebx
3a2: 7d 2e jge 3d2 <gets+0x4d>
cc = read(0, &c, 1);
3a4: 83 ec 04 sub $0x4,%esp
3a7: 6a 01 push $0x1
3a9: 8d 45 e7 lea -0x19(%ebp),%eax
3ac: 50 push %eax
3ad: 6a 00 push $0x0
3af: e8 58 02 00 00 call 60c <read>
if(cc < 1)
3b4: 83 c4 10 add $0x10,%esp
3b7: 85 c0 test %eax,%eax
3b9: 7e 17 jle 3d2 <gets+0x4d>
break;
buf[i++] = c;
3bb: 0f b6 45 e7 movzbl -0x19(%ebp),%eax
3bf: 88 04 37 mov %al,(%edi,%esi,1)
if(c == '\n' || c == '\r')
3c2: 3c 0a cmp $0xa,%al
3c4: 0f 94 c2 sete %dl
3c7: 3c 0d cmp $0xd,%al
3c9: 0f 94 c0 sete %al
3cc: 08 c2 or %al,%dl
3ce: 74 ca je 39a <gets+0x15>
buf[i++] = c;
3d0: 89 de mov %ebx,%esi
break;
}
buf[i] = '\0';
3d2: c6 04 37 00 movb $0x0,(%edi,%esi,1)
return buf;
}
3d6: 89 f8 mov %edi,%eax
3d8: 8d 65 f4 lea -0xc(%ebp),%esp
3db: 5b pop %ebx
3dc: 5e pop %esi
3dd: 5f pop %edi
3de: 5d pop %ebp
3df: c3 ret
000003e0 <stat>:
int
stat(const char *n, struct stat *st)
{
3e0: f3 0f 1e fb endbr32
3e4: 55 push %ebp
3e5: 89 e5 mov %esp,%ebp
3e7: 56 push %esi
3e8: 53 push %ebx
int fd;
int r;
fd = open(n, O_RDONLY);
3e9: 83 ec 08 sub $0x8,%esp
3ec: 6a 00 push $0x0
3ee: ff 75 08 pushl 0x8(%ebp)
3f1: e8 3e 02 00 00 call 634 <open>
if(fd < 0)
3f6: 83 c4 10 add $0x10,%esp
3f9: 85 c0 test %eax,%eax
3fb: 78 24 js 421 <stat+0x41>
3fd: 89 c3 mov %eax,%ebx
return -1;
r = fstat(fd, st);
3ff: 83 ec 08 sub $0x8,%esp
402: ff 75 0c pushl 0xc(%ebp)
405: 50 push %eax
406: e8 41 02 00 00 call 64c <fstat>
40b: 89 c6 mov %eax,%esi
close(fd);
40d: 89 1c 24 mov %ebx,(%esp)
410: e8 07 02 00 00 call 61c <close>
return r;
415: 83 c4 10 add $0x10,%esp
}
418: 89 f0 mov %esi,%eax
41a: 8d 65 f8 lea -0x8(%ebp),%esp
41d: 5b pop %ebx
41e: 5e pop %esi
41f: 5d pop %ebp
420: c3 ret
return -1;
421: be ff ff ff ff mov $0xffffffff,%esi
426: eb f0 jmp 418 <stat+0x38>
00000428 <atoi>:
int
atoi(const char *s)
{
428: f3 0f 1e fb endbr32
42c: 55 push %ebp
42d: 89 e5 mov %esp,%ebp
42f: 53 push %ebx
430: 8b 4d 08 mov 0x8(%ebp),%ecx
int n;
n = 0;
433: ba 00 00 00 00 mov $0x0,%edx
while('0' <= *s && *s <= '9')
438: 0f b6 01 movzbl (%ecx),%eax
43b: 8d 58 d0 lea -0x30(%eax),%ebx
43e: 80 fb 09 cmp $0x9,%bl
441: 77 12 ja 455 <atoi+0x2d>
n = n*10 + *s++ - '0';
443: 8d 1c 92 lea (%edx,%edx,4),%ebx
446: 8d 14 1b lea (%ebx,%ebx,1),%edx
449: 83 c1 01 add $0x1,%ecx
44c: 0f be c0 movsbl %al,%eax
44f: 8d 54 10 d0 lea -0x30(%eax,%edx,1),%edx
453: eb e3 jmp 438 <atoi+0x10>
return n;
}
455: 89 d0 mov %edx,%eax
457: 5b pop %ebx
458: 5d pop %ebp
459: c3 ret
0000045a <memmove>:
void*
memmove(void *vdst, const void *vsrc, int n)
{
45a: f3 0f 1e fb endbr32
45e: 55 push %ebp
45f: 89 e5 mov %esp,%ebp
461: 56 push %esi
462: 53 push %ebx
463: 8b 75 08 mov 0x8(%ebp),%esi
466: 8b 4d 0c mov 0xc(%ebp),%ecx
469: 8b 45 10 mov 0x10(%ebp),%eax
char *dst;
const char *src;
dst = vdst;
46c: 89 f2 mov %esi,%edx
src = vsrc;
while(n-- > 0)
46e: 8d 58 ff lea -0x1(%eax),%ebx
471: 85 c0 test %eax,%eax
473: 7e 0f jle 484 <memmove+0x2a>
*dst++ = *src++;
475: 0f b6 01 movzbl (%ecx),%eax
478: 88 02 mov %al,(%edx)
47a: 8d 49 01 lea 0x1(%ecx),%ecx
47d: 8d 52 01 lea 0x1(%edx),%edx
while(n-- > 0)
480: 89 d8 mov %ebx,%eax
482: eb ea jmp 46e <memmove+0x14>
return vdst;
}
484: 89 f0 mov %esi,%eax
486: 5b pop %ebx
487: 5e pop %esi
488: 5d pop %ebp
489: c3 ret
0000048a <thread_create>:
int thread_create(void (*start_routine)(void *, void *), void *arg1, void *arg2) {
48a: f3 0f 1e fb endbr32
48e: 55 push %ebp
48f: 89 e5 mov %esp,%ebp
491: 53 push %ebx
492: 83 ec 10 sub $0x10,%esp
void *curr_ptr = malloc(PGSIZE*2);
495: 68 00 20 00 00 push $0x2000
49a: e8 c7 04 00 00 call 966 <malloc>
void *user_stack = curr_ptr;
if ((uint)user_stack % PGSIZE != 0) {
49f: 83 c4 10 add $0x10,%esp
4a2: 89 c2 mov %eax,%edx
4a4: 81 e2 ff 0f 00 00 and $0xfff,%edx
4aa: 74 22 je 4ce <thread_create+0x44>
user_stack += (PGSIZE - ((uint)user_stack % PGSIZE));
4ac: b9 00 10 00 00 mov $0x1000,%ecx
4b1: 29 d1 sub %edx,%ecx
4b3: 01 c1 add %eax,%ecx
}
int i;
for (i = 0; i < NPROC; i++) {
4b5: ba 00 00 00 00 mov $0x0,%edx
4ba: 83 fa 3f cmp $0x3f,%edx
4bd: 7f 13 jg 4d2 <thread_create+0x48>
if (cell_full[i] != 1) { break; }
4bf: 83 3c 95 80 11 00 00 cmpl $0x1,0x1180(,%edx,4)
4c6: 01
4c7: 75 09 jne 4d2 <thread_create+0x48>
for (i = 0; i < NPROC; i++) {
4c9: 83 c2 01 add $0x1,%edx
4cc: eb ec jmp 4ba <thread_create+0x30>
void *user_stack = curr_ptr;
4ce: 89 c1 mov %eax,%ecx
4d0: eb e3 jmp 4b5 <thread_create+0x2b>
}
if (cell_full[i] == 1) {
4d2: 83 3c 95 80 11 00 00 cmpl $0x1,0x1180(,%edx,4)
4d9: 01
4da: 74 34 je 510 <thread_create+0x86>
return -1;
}
ptr_pairs[i].orig_ptr = curr_ptr;
4dc: 8d 1c 52 lea (%edx,%edx,2),%ebx
4df: c1 e3 02 shl $0x2,%ebx
4e2: 89 83 80 0e 00 00 mov %eax,0xe80(%ebx)
ptr_pairs[i].offset_ptr = user_stack;
4e8: 89 8b 84 0e 00 00 mov %ecx,0xe84(%ebx)
cell_full[i] = 1;
4ee: c7 04 95 80 11 00 00 movl $0x1,0x1180(,%edx,4)
4f5: 01 00 00 00
// curr_ptrs->next->orig_ptr = curr_ptr;
// curr_ptrs->next->offset_ptr = user_stack;
// curr_ptrs->next->next = NULL;
// }
return clone(user_stack, start_routine, arg1, arg2);
4f9: ff 75 10 pushl 0x10(%ebp)
4fc: ff 75 0c pushl 0xc(%ebp)
4ff: ff 75 08 pushl 0x8(%ebp)
502: 51 push %ecx
503: e8 dc 00 00 00 call 5e4 <clone>
508: 83 c4 10 add $0x10,%esp
}
50b: 8b 5d fc mov -0x4(%ebp),%ebx
50e: c9 leave
50f: c3 ret
return -1;
510: b8 ff ff ff ff mov $0xffffffff,%eax
515: eb f4 jmp 50b <thread_create+0x81>
00000517 <thread_join>:
int thread_join(){
517: f3 0f 1e fb endbr32
51b: 55 push %ebp
51c: 89 e5 mov %esp,%ebp
51e: 56 push %esi
51f: 53 push %ebx
520: 83 ec 1c sub $0x1c,%esp
void* diov;
int out = join(&diov);
523: 8d 45 f4 lea -0xc(%ebp),%eax
526: 50 push %eax
527: e8 d0 00 00 00 call 5fc <join>
52c: 89 c6 mov %eax,%esi
// free(curr_ptrs->orig_ptr);
// prev_ptrs->next = curr_ptrs->next;
// free(curr_ptrs);
int i;
for (i = 0; i < NPROC; i++) {
52e: 83 c4 10 add $0x10,%esp
531: bb 00 00 00 00 mov $0x0,%ebx
536: 83 fb 3f cmp $0x3f,%ebx
539: 7f 14 jg 54f <thread_join+0x38>
if (ptr_pairs[i].offset_ptr == diov) { break; }
53b: 8d 04 5b lea (%ebx,%ebx,2),%eax
53e: 8b 55 f4 mov -0xc(%ebp),%edx
541: 39 14 85 84 0e 00 00 cmp %edx,0xe84(,%eax,4)
548: 74 05 je 54f <thread_join+0x38>
for (i = 0; i < NPROC; i++) {
54a: 83 c3 01 add $0x1,%ebx
54d: eb e7 jmp 536 <thread_join+0x1f>
}
if (ptr_pairs[i].offset_ptr != diov) { return -1; }
54f: 8d 04 5b lea (%ebx,%ebx,2),%eax
552: 8b 4d f4 mov -0xc(%ebp),%ecx
555: 39 0c 85 84 0e 00 00 cmp %ecx,0xe84(,%eax,4)
55c: 75 26 jne 584 <thread_join+0x6d>
free(ptr_pairs[i].orig_ptr);
55e: 83 ec 0c sub $0xc,%esp
561: ff 34 85 80 0e 00 00 pushl 0xe80(,%eax,4)
568: e8 35 03 00 00 call 8a2 <free>
cell_full[i] = 0;
56d: c7 04 9d 80 11 00 00 movl $0x0,0x1180(,%ebx,4)
574: 00 00 00 00
return out;
578: 83 c4 10 add $0x10,%esp
}
57b: 89 f0 mov %esi,%eax
57d: 8d 65 f8 lea -0x8(%ebp),%esp
580: 5b pop %ebx
581: 5e pop %esi
582: 5d pop %ebp
583: c3 ret
if (ptr_pairs[i].offset_ptr != diov) { return -1; }
584: be ff ff ff ff mov $0xffffffff,%esi
589: eb f0 jmp 57b <thread_join+0x64>
0000058b <lock_init>:
: "memory"
);
return value;
}
void lock_init(lock_t *lock) {
58b: f3 0f 1e fb endbr32
58f: 55 push %ebp
590: 89 e5 mov %esp,%ebp
592: 8b 45 08 mov 0x8(%ebp),%eax
lock->ticket = 0;
595: c7 00 00 00 00 00 movl $0x0,(%eax)
lock->turn = 0;
59b: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax)
}
5a2: 5d pop %ebp
5a3: c3 ret
000005a4 <lock_acquire>:
void lock_acquire(lock_t *lock) {
5a4: f3 0f 1e fb endbr32
5a8: 55 push %ebp
5a9: 89 e5 mov %esp,%ebp
5ab: 8b 55 08 mov 0x8(%ebp),%edx
__asm__ volatile("lock; xaddl %0, %1"
5ae: b9 01 00 00 00 mov $0x1,%ecx
5b3: f0 0f c1 0a lock xadd %ecx,(%edx)
5b7: b8 00 00 00 00 mov $0x0,%eax
5bc: f0 0f c1 42 04 lock xadd %eax,0x4(%edx)
int myturn = fetch_and_add(&lock->ticket, 1);
while( fetch_and_add(&lock->turn, 0) != myturn ) { //changed
5c1: 39 c1 cmp %eax,%ecx
5c3: 75 f2 jne 5b7 <lock_acquire+0x13>
; // spin
}
}
5c5: 5d pop %ebp
5c6: c3 ret
000005c7 <lock_release>:
void lock_release(lock_t *lock) {
5c7: f3 0f 1e fb endbr32
5cb: 55 push %ebp
5cc: 89 e5 mov %esp,%ebp
5ce: 8b 55 08 mov 0x8(%ebp),%edx
lock->turn = lock->turn + 1;
5d1: 8b 42 04 mov 0x4(%edx),%eax
5d4: 83 c0 01 add $0x1,%eax
5d7: 89 42 04 mov %eax,0x4(%edx)
}
5da: 5d pop %ebp
5db: c3 ret
000005dc <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
5dc: b8 01 00 00 00 mov $0x1,%eax
5e1: cd 40 int $0x40
5e3: c3 ret
000005e4 <clone>:
SYSCALL(clone)
5e4: b8 16 00 00 00 mov $0x16,%eax
5e9: cd 40 int $0x40
5eb: c3 ret
000005ec <exit>:
SYSCALL(exit)
5ec: b8 02 00 00 00 mov $0x2,%eax
5f1: cd 40 int $0x40
5f3: c3 ret
000005f4 <wait>:
SYSCALL(wait)
5f4: b8 03 00 00 00 mov $0x3,%eax
5f9: cd 40 int $0x40
5fb: c3 ret
000005fc <join>:
SYSCALL(join)
5fc: b8 17 00 00 00 mov $0x17,%eax
601: cd 40 int $0x40
603: c3 ret
00000604 <pipe>:
SYSCALL(pipe)
604: b8 04 00 00 00 mov $0x4,%eax
609: cd 40 int $0x40
60b: c3 ret
0000060c <read>:
SYSCALL(read)
60c: b8 05 00 00 00 mov $0x5,%eax
611: cd 40 int $0x40
613: c3 ret
00000614 <write>:
SYSCALL(write)
614: b8 10 00 00 00 mov $0x10,%eax
619: cd 40 int $0x40
61b: c3 ret
0000061c <close>:
SYSCALL(close)
61c: b8 15 00 00 00 mov $0x15,%eax
621: cd 40 int $0x40
623: c3 ret
00000624 <kill>:
SYSCALL(kill)
624: b8 06 00 00 00 mov $0x6,%eax
629: cd 40 int $0x40
62b: c3 ret
0000062c <exec>:
SYSCALL(exec)
62c: b8 07 00 00 00 mov $0x7,%eax
631: cd 40 int $0x40
633: c3 ret
00000634 <open>:
SYSCALL(open)
634: b8 0f 00 00 00 mov $0xf,%eax
639: cd 40 int $0x40
63b: c3 ret
0000063c <mknod>:
SYSCALL(mknod)
63c: b8 11 00 00 00 mov $0x11,%eax
641: cd 40 int $0x40
643: c3 ret
00000644 <unlink>:
SYSCALL(unlink)
644: b8 12 00 00 00 mov $0x12,%eax
649: cd 40 int $0x40
64b: c3 ret
0000064c <fstat>:
SYSCALL(fstat)
64c: b8 08 00 00 00 mov $0x8,%eax
651: cd 40 int $0x40
653: c3 ret
00000654 <link>:
SYSCALL(link)
654: b8 13 00 00 00 mov $0x13,%eax
659: cd 40 int $0x40
65b: c3 ret
0000065c <mkdir>:
SYSCALL(mkdir)
65c: b8 14 00 00 00 mov $0x14,%eax
661: cd 40 int $0x40
663: c3 ret
00000664 <chdir>:
SYSCALL(chdir)
664: b8 09 00 00 00 mov $0x9,%eax
669: cd 40 int $0x40
66b: c3 ret
0000066c <dup>:
SYSCALL(dup)
66c: b8 0a 00 00 00 mov $0xa,%eax
671: cd 40 int $0x40
673: c3 ret
00000674 <getpid>:
SYSCALL(getpid)
674: b8 0b 00 00 00 mov $0xb,%eax
679: cd 40 int $0x40
67b: c3 ret
0000067c <sbrk>:
SYSCALL(sbrk)
67c: b8 0c 00 00 00 mov $0xc,%eax
681: cd 40 int $0x40
683: c3 ret
00000684 <sleep>:
SYSCALL(sleep)
684: b8 0d 00 00 00 mov $0xd,%eax
689: cd 40 int $0x40
68b: c3 ret
0000068c <uptime>:
SYSCALL(uptime)
68c: b8 0e 00 00 00 mov $0xe,%eax
691: cd 40 int $0x40
693: c3 ret
00000694 <putc>:
#include "stat.h"
#include "user.h"
static void
putc(int fd, char c)
{
694: 55 push %ebp
695: 89 e5 mov %esp,%ebp
697: 83 ec 1c sub $0x1c,%esp
69a: 88 55 f4 mov %dl,-0xc(%ebp)
write(fd, &c, 1);
69d: 6a 01 push $0x1
69f: 8d 55 f4 lea -0xc(%ebp),%edx
6a2: 52 push %edx
6a3: 50 push %eax
6a4: e8 6b ff ff ff call 614 <write>
}
6a9: 83 c4 10 add $0x10,%esp
6ac: c9 leave
6ad: c3 ret
000006ae <printint>:
static void
printint(int fd, int xx, int base, int sgn)
{
6ae: 55 push %ebp
6af: 89 e5 mov %esp,%ebp
6b1: 57 push %edi
6b2: 56 push %esi
6b3: 53 push %ebx
6b4: 83 ec 2c sub $0x2c,%esp
6b7: 89 45 d0 mov %eax,-0x30(%ebp)
6ba: 89 d6 mov %edx,%esi
char buf[16];
int i, neg;
uint x;
neg = 0;
if(sgn && xx < 0){
6bc: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
6c0: 0f 95 c2 setne %dl
6c3: 89 f0 mov %esi,%eax
6c5: c1 e8 1f shr $0x1f,%eax
6c8: 84 c2 test %al,%dl
6ca: 74 42 je 70e <printint+0x60>
neg = 1;
x = -xx;
6cc: f7 de neg %esi
neg = 1;
6ce: c7 45 d4 01 00 00 00 movl $0x1,-0x2c(%ebp)
} else {
x = xx;
}
i = 0;
6d5: bb 00 00 00 00 mov $0x0,%ebx
do{
buf[i++] = digits[x % base];
6da: 89 f0 mov %esi,%eax
6dc: ba 00 00 00 00 mov $0x0,%edx
6e1: f7 f1 div %ecx
6e3: 89 df mov %ebx,%edi
6e5: 83 c3 01 add $0x1,%ebx
6e8: 0f b6 92 cc 0a 00 00 movzbl 0xacc(%edx),%edx
6ef: 88 54 3d d8 mov %dl,-0x28(%ebp,%edi,1)
}while((x /= base) != 0);
6f3: 89 f2 mov %esi,%edx
6f5: 89 c6 mov %eax,%esi
6f7: 39 d1 cmp %edx,%ecx
6f9: 76 df jbe 6da <printint+0x2c>
if(neg)
6fb: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp)
6ff: 74 2f je 730 <printint+0x82>
buf[i++] = '-';
701: c6 44 1d d8 2d movb $0x2d,-0x28(%ebp,%ebx,1)
706: 8d 5f 02 lea 0x2(%edi),%ebx
709: 8b 75 d0 mov -0x30(%ebp),%esi
70c: eb 15 jmp 723 <printint+0x75>
neg = 0;
70e: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp)
715: eb be jmp 6d5 <printint+0x27>
while(--i >= 0)
putc(fd, buf[i]);
717: 0f be 54 1d d8 movsbl -0x28(%ebp,%ebx,1),%edx
71c: 89 f0 mov %esi,%eax
71e: e8 71 ff ff ff call 694 <putc>
while(--i >= 0)
723: 83 eb 01 sub $0x1,%ebx
726: 79 ef jns 717 <printint+0x69>
}
728: 83 c4 2c add $0x2c,%esp
72b: 5b pop %ebx
72c: 5e pop %esi
72d: 5f pop %edi
72e: 5d pop %ebp
72f: c3 ret
730: 8b 75 d0 mov -0x30(%ebp),%esi
733: eb ee jmp 723 <printint+0x75>
00000735 <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, const char *fmt, ...)
{
735: f3 0f 1e fb endbr32
739: 55 push %ebp
73a: 89 e5 mov %esp,%ebp
73c: 57 push %edi
73d: 56 push %esi
73e: 53 push %ebx
73f: 83 ec 1c sub $0x1c,%esp
char *s;
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
742: 8d 45 10 lea 0x10(%ebp),%eax
745: 89 45 e4 mov %eax,-0x1c(%ebp)
state = 0;
748: be 00 00 00 00 mov $0x0,%esi
for(i = 0; fmt[i]; i++){
74d: bb 00 00 00 00 mov $0x0,%ebx
752: eb 14 jmp 768 <printf+0x33>
c = fmt[i] & 0xff;
if(state == 0){
if(c == '%'){
state = '%';
} else {
putc(fd, c);
754: 89 fa mov %edi,%edx
756: 8b 45 08 mov 0x8(%ebp),%eax
759: e8 36 ff ff ff call 694 <putc>
75e: eb 05 jmp 765 <printf+0x30>
}
} else if(state == '%'){
760: 83 fe 25 cmp $0x25,%esi
763: 74 25 je 78a <printf+0x55>
for(i = 0; fmt[i]; i++){
765: 83 c3 01 add $0x1,%ebx
768: 8b 45 0c mov 0xc(%ebp),%eax
76b: 0f b6 04 18 movzbl (%eax,%ebx,1),%eax
76f: 84 c0 test %al,%al
771: 0f 84 23 01 00 00 je 89a <printf+0x165>
c = fmt[i] & 0xff;
777: 0f be f8 movsbl %al,%edi
77a: 0f b6 c0 movzbl %al,%eax
if(state == 0){
77d: 85 f6 test %esi,%esi
77f: 75 df jne 760 <printf+0x2b>
if(c == '%'){
781: 83 f8 25 cmp $0x25,%eax
784: 75 ce jne 754 <printf+0x1f>
state = '%';
786: 89 c6 mov %eax,%esi
788: eb db jmp 765 <printf+0x30>
if(c == 'd'){
78a: 83 f8 64 cmp $0x64,%eax
78d: 74 49 je 7d8 <printf+0xa3>
printint(fd, *ap, 10, 1);
ap++;
} else if(c == 'x' || c == 'p'){
78f: 83 f8 78 cmp $0x78,%eax
792: 0f 94 c1 sete %cl
795: 83 f8 70 cmp $0x70,%eax
798: 0f 94 c2 sete %dl
79b: 08 d1 or %dl,%cl
79d: 75 63 jne 802 <printf+0xcd>
printint(fd, *ap, 16, 0);
ap++;
} else if(c == 's'){
79f: 83 f8 73 cmp $0x73,%eax
7a2: 0f 84 84 00 00 00 je 82c <printf+0xf7>
s = "(null)";
while(*s != 0){
putc(fd, *s);
s++;
}
} else if(c == 'c'){
7a8: 83 f8 63 cmp $0x63,%eax
7ab: 0f 84 b7 00 00 00 je 868 <printf+0x133>
putc(fd, *ap);
ap++;
} else if(c == '%'){
7b1: 83 f8 25 cmp $0x25,%eax
7b4: 0f 84 cc 00 00 00 je 886 <printf+0x151>
putc(fd, c);
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
7ba: ba 25 00 00 00 mov $0x25,%edx
7bf: 8b 45 08 mov 0x8(%ebp),%eax
7c2: e8 cd fe ff ff call 694 <putc>
putc(fd, c);
7c7: 89 fa mov %edi,%edx
7c9: 8b 45 08 mov 0x8(%ebp),%eax
7cc: e8 c3 fe ff ff call 694 <putc>
}
state = 0;
7d1: be 00 00 00 00 mov $0x0,%esi
7d6: eb 8d jmp 765 <printf+0x30>
printint(fd, *ap, 10, 1);
7d8: 8b 7d e4 mov -0x1c(%ebp),%edi
7db: 8b 17 mov (%edi),%edx
7dd: 83 ec 0c sub $0xc,%esp
7e0: 6a 01 push $0x1
7e2: b9 0a 00 00 00 mov $0xa,%ecx
7e7: 8b 45 08 mov 0x8(%ebp),%eax
7ea: e8 bf fe ff ff call 6ae <printint>
ap++;
7ef: 83 c7 04 add $0x4,%edi
7f2: 89 7d e4 mov %edi,-0x1c(%ebp)
7f5: 83 c4 10 add $0x10,%esp
state = 0;
7f8: be 00 00 00 00 mov $0x0,%esi
7fd: e9 63 ff ff ff jmp 765 <printf+0x30>
printint(fd, *ap, 16, 0);
802: 8b 7d e4 mov -0x1c(%ebp),%edi
805: 8b 17 mov (%edi),%edx
807: 83 ec 0c sub $0xc,%esp
80a: 6a 00 push $0x0
80c: b9 10 00 00 00 mov $0x10,%ecx
811: 8b 45 08 mov 0x8(%ebp),%eax
814: e8 95 fe ff ff call 6ae <printint>
ap++;
819: 83 c7 04 add $0x4,%edi
81c: 89 7d e4 mov %edi,-0x1c(%ebp)
81f: 83 c4 10 add $0x10,%esp
state = 0;
822: be 00 00 00 00 mov $0x0,%esi
827: e9 39 ff ff ff jmp 765 <printf+0x30>
s = (char*)*ap;
82c: 8b 45 e4 mov -0x1c(%ebp),%eax
82f: 8b 30 mov (%eax),%esi
ap++;
831: 83 c0 04 add $0x4,%eax
834: 89 45 e4 mov %eax,-0x1c(%ebp)
if(s == 0)
837: 85 f6 test %esi,%esi
839: 75 28 jne 863 <printf+0x12e>
s = "(null)";
83b: be c3 0a 00 00 mov $0xac3,%esi
840: 8b 7d 08 mov 0x8(%ebp),%edi
843: eb 0d jmp 852 <printf+0x11d>
putc(fd, *s);
845: 0f be d2 movsbl %dl,%edx
848: 89 f8 mov %edi,%eax
84a: e8 45 fe ff ff call 694 <putc>
s++;
84f: 83 c6 01 add $0x1,%esi
while(*s != 0){
852: 0f b6 16 movzbl (%esi),%edx
855: 84 d2 test %dl,%dl
857: 75 ec jne 845 <printf+0x110>
state = 0;
859: be 00 00 00 00 mov $0x0,%esi
85e: e9 02 ff ff ff jmp 765 <printf+0x30>
863: 8b 7d 08 mov 0x8(%ebp),%edi
866: eb ea jmp 852 <printf+0x11d>
putc(fd, *ap);
868: 8b 7d e4 mov -0x1c(%ebp),%edi
86b: 0f be 17 movsbl (%edi),%edx
86e: 8b 45 08 mov 0x8(%ebp),%eax
871: e8 1e fe ff ff call 694 <putc>
ap++;
876: 83 c7 04 add $0x4,%edi
879: 89 7d e4 mov %edi,-0x1c(%ebp)
state = 0;
87c: be 00 00 00 00 mov $0x0,%esi
881: e9 df fe ff ff jmp 765 <printf+0x30>
putc(fd, c);
886: 89 fa mov %edi,%edx
888: 8b 45 08 mov 0x8(%ebp),%eax
88b: e8 04 fe ff ff call 694 <putc>
state = 0;
890: be 00 00 00 00 mov $0x0,%esi
895: e9 cb fe ff ff jmp 765 <printf+0x30>
}
}
}
89a: 8d 65 f4 lea -0xc(%ebp),%esp
89d: 5b pop %ebx
89e: 5e pop %esi
89f: 5f pop %edi
8a0: 5d pop %ebp
8a1: c3 ret
000008a2 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
8a2: f3 0f 1e fb endbr32
8a6: 55 push %ebp
8a7: 89 e5 mov %esp,%ebp
8a9: 57 push %edi
8aa: 56 push %esi
8ab: 53 push %ebx
8ac: 8b 5d 08 mov 0x8(%ebp),%ebx
Header *bp, *p;
bp = (Header*)ap - 1;
8af: 8d 4b f8 lea -0x8(%ebx),%ecx
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
8b2: a1 64 0e 00 00 mov 0xe64,%eax
8b7: eb 02 jmp 8bb <free+0x19>
8b9: 89 d0 mov %edx,%eax
8bb: 39 c8 cmp %ecx,%eax
8bd: 73 04 jae 8c3 <free+0x21>
8bf: 39 08 cmp %ecx,(%eax)
8c1: 77 12 ja 8d5 <free+0x33>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
8c3: 8b 10 mov (%eax),%edx
8c5: 39 c2 cmp %eax,%edx
8c7: 77 f0 ja 8b9 <free+0x17>
8c9: 39 c8 cmp %ecx,%eax
8cb: 72 08 jb 8d5 <free+0x33>
8cd: 39 ca cmp %ecx,%edx
8cf: 77 04 ja 8d5 <free+0x33>
8d1: 89 d0 mov %edx,%eax
8d3: eb e6 jmp 8bb <free+0x19>
break;
if(bp + bp->s.size == p->s.ptr){
8d5: 8b 73 fc mov -0x4(%ebx),%esi
8d8: 8d 3c f1 lea (%ecx,%esi,8),%edi
8db: 8b 10 mov (%eax),%edx
8dd: 39 d7 cmp %edx,%edi
8df: 74 19 je 8fa <free+0x58>
bp->s.size += p->s.ptr->s.size;
bp->s.ptr = p->s.ptr->s.ptr;
} else
bp->s.ptr = p->s.ptr;
8e1: 89 53 f8 mov %edx,-0x8(%ebx)
if(p + p->s.size == bp){
8e4: 8b 50 04 mov 0x4(%eax),%edx
8e7: 8d 34 d0 lea (%eax,%edx,8),%esi
8ea: 39 ce cmp %ecx,%esi
8ec: 74 1b je 909 <free+0x67>
p->s.size += bp->s.size;
p->s.ptr = bp->s.ptr;
} else
p->s.ptr = bp;
8ee: 89 08 mov %ecx,(%eax)
freep = p;
8f0: a3 64 0e 00 00 mov %eax,0xe64
}
8f5: 5b pop %ebx
8f6: 5e pop %esi
8f7: 5f pop %edi
8f8: 5d pop %ebp
8f9: c3 ret
bp->s.size += p->s.ptr->s.size;
8fa: 03 72 04 add 0x4(%edx),%esi
8fd: 89 73 fc mov %esi,-0x4(%ebx)
bp->s.ptr = p->s.ptr->s.ptr;
900: 8b 10 mov (%eax),%edx
902: 8b 12 mov (%edx),%edx
904: 89 53 f8 mov %edx,-0x8(%ebx)
907: eb db jmp 8e4 <free+0x42>
p->s.size += bp->s.size;
909: 03 53 fc add -0x4(%ebx),%edx
90c: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
90f: 8b 53 f8 mov -0x8(%ebx),%edx
912: 89 10 mov %edx,(%eax)
914: eb da jmp 8f0 <free+0x4e>
00000916 <morecore>:
static Header*
morecore(uint nu)
{
916: 55 push %ebp
917: 89 e5 mov %esp,%ebp
919: 53 push %ebx
91a: 83 ec 04 sub $0x4,%esp
91d: 89 c3 mov %eax,%ebx
char *p;
Header *hp;
if(nu < 4096)
91f: 3d ff 0f 00 00 cmp $0xfff,%eax
924: 77 05 ja 92b <morecore+0x15>
nu = 4096;
926: bb 00 10 00 00 mov $0x1000,%ebx
p = sbrk(nu * sizeof(Header));
92b: 8d 04 dd 00 00 00 00 lea 0x0(,%ebx,8),%eax
932: 83 ec 0c sub $0xc,%esp
935: 50 push %eax
936: e8 41 fd ff ff call 67c <sbrk>
if(p == (char*)-1)
93b: 83 c4 10 add $0x10,%esp
93e: 83 f8 ff cmp $0xffffffff,%eax
941: 74 1c je 95f <morecore+0x49>
return 0;
hp = (Header*)p;
hp->s.size = nu;
943: 89 58 04 mov %ebx,0x4(%eax)
free((void*)(hp + 1));
946: 83 c0 08 add $0x8,%eax
949: 83 ec 0c sub $0xc,%esp
94c: 50 push %eax
94d: e8 50 ff ff ff call 8a2 <free>
return freep;
952: a1 64 0e 00 00 mov 0xe64,%eax
957: 83 c4 10 add $0x10,%esp
}
95a: 8b 5d fc mov -0x4(%ebp),%ebx
95d: c9 leave
95e: c3 ret
return 0;
95f: b8 00 00 00 00 mov $0x0,%eax
964: eb f4 jmp 95a <morecore+0x44>
00000966 <malloc>:
void*
malloc(uint nbytes)
{
966: f3 0f 1e fb endbr32
96a: 55 push %ebp
96b: 89 e5 mov %esp,%ebp
96d: 53 push %ebx
96e: 83 ec 04 sub $0x4,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
971: 8b 45 08 mov 0x8(%ebp),%eax
974: 8d 58 07 lea 0x7(%eax),%ebx
977: c1 eb 03 shr $0x3,%ebx
97a: 83 c3 01 add $0x1,%ebx
if((prevp = freep) == 0){
97d: 8b 0d 64 0e 00 00 mov 0xe64,%ecx
983: 85 c9 test %ecx,%ecx
985: 74 04 je 98b <malloc+0x25>
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
987: 8b 01 mov (%ecx),%eax
989: eb 4b jmp 9d6 <malloc+0x70>
base.s.ptr = freep = prevp = &base;
98b: c7 05 64 0e 00 00 68 movl $0xe68,0xe64
992: 0e 00 00
995: c7 05 68 0e 00 00 68 movl $0xe68,0xe68
99c: 0e 00 00
base.s.size = 0;
99f: c7 05 6c 0e 00 00 00 movl $0x0,0xe6c
9a6: 00 00 00
base.s.ptr = freep = prevp = &base;
9a9: b9 68 0e 00 00 mov $0xe68,%ecx
9ae: eb d7 jmp 987 <malloc+0x21>
if(p->s.size >= nunits){
if(p->s.size == nunits)
9b0: 74 1a je 9cc <malloc+0x66>
prevp->s.ptr = p->s.ptr;
else {
p->s.size -= nunits;
9b2: 29 da sub %ebx,%edx
9b4: 89 50 04 mov %edx,0x4(%eax)
p += p->s.size;
9b7: 8d 04 d0 lea (%eax,%edx,8),%eax
p->s.size = nunits;
9ba: 89 58 04 mov %ebx,0x4(%eax)
}
freep = prevp;
9bd: 89 0d 64 0e 00 00 mov %ecx,0xe64
return (void*)(p + 1);
9c3: 83 c0 08 add $0x8,%eax
}
if(p == freep)
if((p = morecore(nunits)) == 0)
return 0;
}
}
9c6: 83 c4 04 add $0x4,%esp
9c9: 5b pop %ebx
9ca: 5d pop %ebp
9cb: c3 ret
prevp->s.ptr = p->s.ptr;
9cc: 8b 10 mov (%eax),%edx
9ce: 89 11 mov %edx,(%ecx)
9d0: eb eb jmp 9bd <malloc+0x57>
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
9d2: 89 c1 mov %eax,%ecx
9d4: 8b 00 mov (%eax),%eax
if(p->s.size >= nunits){
9d6: 8b 50 04 mov 0x4(%eax),%edx
9d9: 39 da cmp %ebx,%edx
9db: 73 d3 jae 9b0 <malloc+0x4a>
if(p == freep)
9dd: 39 05 64 0e 00 00 cmp %eax,0xe64
9e3: 75 ed jne 9d2 <malloc+0x6c>
if((p = morecore(nunits)) == 0)
9e5: 89 d8 mov %ebx,%eax
9e7: e8 2a ff ff ff call 916 <morecore>
9ec: 85 c0 test %eax,%eax
9ee: 75 e2 jne 9d2 <malloc+0x6c>
9f0: eb d4 jmp 9c6 <malloc+0x60>
| 34.257857
| 82
| 0.43306
|
575f57c27899c342f3e1cd42b040b652f269067c
| 6,217
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2820.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_2820.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_2820.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1e4ee, %rsi
lea addresses_WC_ht+0x1bc66, %rdi
xor $58726, %r10
mov $65, %rcx
rep movsb
nop
nop
nop
nop
nop
and %r12, %r12
lea addresses_D_ht+0xc8ee, %r15
clflush (%r15)
nop
xor $58082, %r8
movb (%r15), %r12b
nop
nop
sub %r8, %r8
lea addresses_WC_ht+0x18c8a, %rcx
nop
nop
xor %r8, %r8
mov $0x6162636465666768, %r10
movq %r10, (%rcx)
and %r12, %r12
lea addresses_D_ht+0x160ee, %rsi
nop
nop
xor $9470, %r8
vmovups (%rsi), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $0, %xmm1, %r15
nop
nop
nop
nop
nop
sub $64046, %rsi
lea addresses_D_ht+0xccae, %r10
nop
nop
sub $25327, %rcx
and $0xffffffffffffffc0, %r10
vmovntdqa (%r10), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %r12
add %rdi, %rdi
lea addresses_normal_ht+0xbeee, %rcx
nop
nop
cmp %r12, %r12
movl $0x61626364, (%rcx)
nop
nop
nop
nop
xor %r10, %r10
lea addresses_WC_ht+0x7dd0, %r15
nop
nop
nop
and %rcx, %rcx
mov (%r15), %r10d
nop
nop
nop
sub %r12, %r12
lea addresses_normal_ht+0x14394, %r15
nop
nop
nop
dec %r10
vmovups (%r15), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %rcx
xor %r12, %r12
lea addresses_UC_ht+0xb14e, %r12
nop
nop
nop
nop
nop
sub $10122, %r10
and $0xffffffffffffffc0, %r12
movntdqa (%r12), %xmm0
vpextrq $1, %xmm0, %rdi
nop
nop
nop
nop
cmp $3277, %r8
pop %rsi
pop %rdi
pop %rcx
pop %r8
pop %r15
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r8
push %rsi
// Faulty Load
lea addresses_D+0x120ee, %r11
nop
nop
nop
dec %r8
mov (%r11), %si
lea oracles, %r12
and $0xff, %rsi
shlq $12, %rsi
mov (%r12,%rsi,1), %rsi
pop %rsi
pop %r8
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 11, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 6, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 4, 'size': 32, 'same': False, 'NT': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': True, 'congruent': 9, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': True, 'congruent': 1, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 1, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 5, 'size': 16, 'same': True, 'NT': True}}
{'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
*/
| 39.852564
| 2,999
| 0.657874
|
7bed8683dac504fbcafab1c6c2209b6194bb55b2
| 312
|
asm
|
Assembly
|
programs/oeis/178/A178675.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/178/A178675.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/178/A178675.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A178675: a(n) = 4^n + 4.
; 5,8,20,68,260,1028,4100,16388,65540,262148,1048580,4194308,16777220,67108868,268435460,1073741828,4294967300,17179869188,68719476740,274877906948,1099511627780,4398046511108,17592186044420,70368744177668,281474976710660,1125899906842628,4503599627370500
mov $1,4
pow $1,$0
add $1,4
| 44.571429
| 255
| 0.814103
|
192916136caa84aaceda883df03d997fe89ae544
| 3,069
|
asm
|
Assembly
|
programs/oeis/027/A027850.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/027/A027850.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/027/A027850.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A027850: (n+1)*(14*n^3+13*n^2+6*n+1).
; 1,68,531,2056,5645,12636,24703,43856,72441,113140,168971,243288,339781,462476,615735,804256,1033073,1307556,1633411,2016680,2463741,2981308,3576431,4256496,5029225,5902676,6885243,7985656,9212981,10576620,12086311,13752128,15584481,17594116,19792115,22189896,24799213,27632156,30701151,34018960,37598681,41453748,45597931,50045336,54810405,59907916,65352983,71161056,77347921,83929700,90922851,98344168,106210781,114540156,123350095,132658736,142484553,152846356,163763291,175254840,187340821,200041388,213377031,227368576,242037185,257404356,273491923,290322056,307917261,326300380,345494591,365523408,386410681,408180596,430857675,454466776,479033093,504582156,531139831,558732320,587386161,617128228,647985731,679986216,713157565,747527996,783126063,819980656,858121001,897576660,938377531,980553848,1024136181,1069155436,1115642855,1163630016,1213148833,1264231556,1316910771,1371219400,1427190701,1484858268,1544256031,1605418256,1668379545,1733174836,1799839403,1868408856,1938919141,2011406540,2085907671,2162459488,2241099281,2321864676,2404793635,2489924456,2577295773,2666946556,2758916111,2853244080,2949970441,3049135508,3150779931,3254944696,3361671125,3471000876,3582975943,3697638656,3815031681,3935198020,4058181011,4184024328,4312771981,4444468316,4579158015,4716886096,4857697913,5001639156,5148755851,5299094360,5452701381,5609623948,5769909431,5933605536,6100760305,6271422116,6445639683,6623462056,6804938621,6990119100,7179053551,7371792368,7568386281,7768886356,7973343995,8181810936,8394339253,8610981356,8831789991,9056818240,9286119521,9519747588,9757756531,10000200776,10247135085,10498614556,10754694623,11015431056,11280879961,11551097780,11826141291,12106067608,12390934181,12680798796,12975719575,13275754976,13580963793,13891405156,14207138531,14528223720,14854720861,15186690428,15524193231,15867290416,16216043465,16570514196,16930764763,17296857656,17668855701,18046822060,18430820231,18820914048,19217167681,19619645636,20028412755,20443534216,20865075533,21293102556,21727681471,22168878800,22616761401,23071396468,23532851531,24001194456,24476493445,24958817036,25448234103,25944813856,26448625841,26959739940,27478226371,28004155688,28537598781,29078626876,29627311535,30183724656,30747938473,31320025556,31900058811,32488111480,33084257141,33688569708,34301123431,34921992896,35551253025,36188979076,36835246643,37490131656,38153710381,38826059420,39507255711,40197376528,40896499481,41604702516,42322063915,43048662296,43784576613,44529886156,45284670551,46049009760,46822984081,47606674148,48400160931,49203525736,50016850205,50840216316,51673706383,52517403056,53371389321,54235748500
mov $1,1
mov $2,7
mov $5,$0
mov $6,$0
lpb $2,1
add $1,$5
sub $2,1
lpe
mov $3,$6
lpb $3,1
sub $3,1
add $4,$5
lpe
mov $2,19
mov $5,$4
lpb $2,1
add $1,$5
sub $2,1
lpe
mov $3,$6
mov $4,0
lpb $3,1
sub $3,1
add $4,$5
lpe
mov $2,27
mov $5,$4
lpb $2,1
add $1,$5
sub $2,1
lpe
mov $3,$6
mov $4,0
lpb $3,1
sub $3,1
add $4,$5
lpe
mov $2,14
mov $5,$4
lpb $2,1
add $1,$5
sub $2,1
lpe
| 65.297872
| 2,629
| 0.847833
|
68d85a3f9c54e126939a3cc0f8fc587317ef5065
| 8,261
|
asm
|
Assembly
|
MIPS_Course/lab2/simplify.asm
|
akellermann97/college-dump
|
5c82d93767038709ad71b8f212fdb6243eeb0aec
|
[
"MIT"
] | null | null | null |
MIPS_Course/lab2/simplify.asm
|
akellermann97/college-dump
|
5c82d93767038709ad71b8f212fdb6243eeb0aec
|
[
"MIT"
] | null | null | null |
MIPS_Course/lab2/simplify.asm
|
akellermann97/college-dump
|
5c82d93767038709ad71b8f212fdb6243eeb0aec
|
[
"MIT"
] | null | null | null |
# FILE: $File$
# AUTHOR: P. White
# CONTRIBUTORS: M. Reek, W. Carithers
# Alexander Kellermann Nieves
#
# DESCRIPTION:
# In this experiment, you will write some code in a pair of
# functions that are used to simplify a fraction.
#
# ARGUMENTS:
# None
#
# INPUT:
# The numerator and denominator of a fraction
#
# OUTPUT:
# The fraction in simplified form (ie 210/50 would be simplified
# to "4 and 1/5")
#
# REVISION HISTORY:
# Dec 13, 04 - P. White, created program
#
#
# CONSTANT DECLARATIONS
#
PRINT_INT = 1 # code for syscall to print integer
PRINT_STRING = 4 # code for syscall to print a string
READ_INT = 5 # code for syscall to read an int
#
# DATA DECLARATIONS
#
.data
into_msg:
.ascii "\n*************************\n"
.ascii "** Fraction Simplifier **\n"
.asciiz "*************************\n\n"
newline:
.asciiz "\n"
input_error:
.asciiz "\nError with previous input, try again.\n"
num_string:
.asciiz "\nEnter the Numerator of the fraction: "
den_string:
.asciiz "\nEnter the Denominator of the fraction: "
res_string:
.asciiz "\nThe simplified fraction is: "
and_string:
.asciiz " and "
div_string:
.asciiz "/"
#
# MAIN PROGRAM
#
.text
.align 2
.globl main
main:
addi $sp, $sp, -16 # space for return address/doubleword aligned
sw $ra, 12($sp) # store the ra on the stack
sw $s2, 8($sp)
sw $s1, 4($sp)
sw $s0, 0($sp)
la $a0, into_msg
jal print_string
ask_for_num:
la $a0, num_string
jal print_string
la $v0, READ_INT
syscall
move $s0, $v0 # s0 will be the numerator
slti $t0, $v0, 0
beq $t0, $zero, ask_for_den
la $a0, input_error
jal print_string
j ask_for_num
ask_for_den:
la $a0, den_string
jal print_string
la $v0, READ_INT
syscall
move $a1, $v0 # a1 will be the denominator
slti $t0, $v0, 1
beq $t0, $zero, den_good
la $a0, input_error
jal print_string
j ask_for_den
den_good:
move $a0, $s0 # copy the numerator into a0
jal simplify
move $s0, $v0 # save the numerator
move $s1, $v1 # save the denominator
move $s2, $t9 # save the integer part
la $a0, res_string
jal print_string
move $a0, $s2
li $v0, PRINT_INT
syscall
la $a0, and_string
jal print_string
move $a0, $s0
li $v0, PRINT_INT
syscall
la $a0, div_string
jal print_string
move $a0, $s1
li $v0, PRINT_INT
syscall
la $a0, newline
jal print_string
#
# Now exit the program.
#
lw $ra, 12($sp) # clean up stack
lw $s2, 8($sp)
lw $s1, 4($sp)
lw $s0, 0($sp)
addi $sp, $sp, 16
jr $ra
#
# Name: simplify
#
# Description: Simplify a fraction.
#
# Arguments: a0: the original numerator
# a1: the original denominator
# Returns: v0: the simplified numerator
# v1: the simplified denominator
# t9: the simplified integer part
#
#######################################################################
# NOTE: this function uses a non-standard return register
# t9 will contain the integer part of the
# simplified fraction
#######################################################################
#
#
simplify:
addi $sp, $sp, -40 # allocate stack frame (on doubleword boundary)
sw $ra, 32($sp) # store the ra & s reg's on the stack
sw $s7, 28($sp)
sw $s6, 24($sp)
sw $s5, 20($sp)
sw $s4, 16($sp)
sw $s3, 12($sp)
sw $s2, 8($sp)
sw $s1, 4($sp)
sw $s0, 0($sp)
# ######################################
# ##### BEGIN STUDENT CODE BLOCK 1 #####
li $t9, 0 # Start the integer value at 0
add $s0, $a0, $zero # numerator stored in s0
add $s1, $a1, $zero # denominator store in s1
denominatorGreaterThanNumBegin:
slt $s7, $s1, $s0 # s7 is 1 when the denominator is less than the
# numerator
beq $s7, $zero, finishSimplifing
# This should break out of the loop when the
# denominator is no longer bigger than the
# numerator
sub $s0, $s0, $s1
addi $t9, 1
j denominatorGreaterThanNumBegin
finishSimplifing:
add $v0, $s0, $zero
add $v1, $s1, $zero
jal find_gcd # jump to our find_gcd function
beq $v0, $v1, oneOverOne
div $v1, $v0 # use our GCD to calculate a simplified answer
mflo $v1 # denominator
div $v0, $v0
mflo $v0 # numerator
j done
oneOverOne:
addi $t9, 1 # We know that we need to increment
li $v0, 0 # the counter by 1 since it's 1/1
li $v1, 1
j done # finish execution
done:
# ###### END STUDENT CODE BLOCK 1 ######
# ######################################
simplify_done:
lw $ra, 32($sp) # restore the ra & s reg's from the stack
lw $s7, 28($sp)
lw $s6, 24($sp)
lw $s5, 20($sp)
lw $s4, 16($sp)
lw $s3, 12($sp)
lw $s2, 8($sp)
lw $s1, 4($sp)
lw $s0, 0($sp)
addi $sp, $sp, 40 # clean up stack
jr $ra
#
# Name: find_gcd
#
# Description: computes the GCD of the two inputed numbers
# Arguments: a0 The first number
# a1 The second number
# Returns: v0 The GCD of a0 and a1.
#
find_gcd:
addi $sp, $sp, -40 # allocate stackframe (doubleword aligned)
sw $ra, 32($sp) # store the ra & s reg's on the stack
sw $s7, 28($sp)
sw $s6, 24($sp)
sw $s5, 20($sp)
sw $s4, 16($sp)
sw $s3, 12($sp)
sw $s2, 8($sp)
sw $s1, 4($sp)
sw $s0, 0($sp)
# ######################################
# ##### BEGIN STUDENT CODE BLOCK 2 #####
put_in_safety:
move $s1, $a1 # s1 contains denominator
move $s0, $a0 # s0 contains numerator
li $s3, -1 # store -1 for multiplication
find_gcdstart:
beq $s0, $s1, gcdloopfinish # finish if two nums are the same
sub $t5, $s1, $s0 # t5 = s0 - s1
slt $t6, $t5, $zero # t6 is 0 when t5 is negative
bne $t6, $zero, gcd_make_po # t5 will now be positive
gcd_middle:
slt $t7, $s1, $s0 # is num 2 < num 1
bne $t7, $zero, gcd_set_s0 #
move $s1, $t5 # num 2 = D
j find_gcdstart
gcd_set_s0:
move $s0, $t5 # num 1 = D
j find_gcdstart
gcd_make_po:
mul $t5, $s3 # turn number positive ($s3 = -1)
j gcd_middle # jump back to middle of loop
gcdloopfinish:
move $v0, $s0 # exits
# ###### END STUDENT CODE BLOCK 2 ######
# ######################################
find_gcd_done:
lw $ra, 32($sp) # restore the ra & s reg's from the stack
lw $s7, 28($sp)
lw $s6, 24($sp)
lw $s5, 20($sp)
lw $s4, 16($sp)
lw $s3, 12($sp)
lw $s2, 8($sp)
lw $s1, 4($sp)
lw $s0, 0($sp)
addi $sp, $sp, 40 # clean up the stack
jr $ra
#
# Name; print_number
#
# Description: This routine reads a number then a newline to stdout
# Arguments: a0: the number to print
# Returns: nothing
#
print_number:
li $v0, PRINT_INT
syscall #print a0
la $a0, newline
li $v0, PRINT_STRING
syscall #print a newline
jr $ra
#
# Name; print_string
#
# Description: This routine prints out a string pointed to by a0
# Arguments: a0: a pointer to the string to print
# Returns: nothing
#
print_string:
li $v0, PRINT_STRING
syscall #print a0
jr $ra
| 25.033333
| 79
| 0.496913
|
d91a4b052bc5cb1344c40dbbbf6d042b6c6eb1ab
| 484
|
asm
|
Assembly
|
programs/oeis/140/A140751.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/140/A140751.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/140/A140751.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A140751: Triangle read by rows, X^n * [1,0,0,0,...] where X = an infinite tridiagonal matrix with (1,0,1,0,1,...) in the main and subdiagonals and (1,1,1,...) in the subsubdiagonal.
; 1,1,1,1,1,1,2,2,1,1,1,3,3,3,3,1,1,1,4,4,6,6,4,4,1,1,1,5,5,10,10,10,10,5,5,1,1,1,6,6,15,15,20,20,15,15,6,6,1,1,1,7,7,21,21,35,35,35,35,21,21,7,7,1
seq $0,28392 ; a(n) = n + floor(sqrt(n)).
div $0,2
seq $0,7318 ; Pascal's triangle read by rows: C(n,k) = binomial(n,k) = n!/(k!*(n-k)!), 0 <= k <= n.
| 69.142857
| 183
| 0.586777
|
a6336ed688f981b5b3382e65ac3cc6f9bfa66793
| 4,205
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_21829_668.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_21829_668.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_21829_668.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 %r11
push %r14
push %r9
push %rbx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_A+0x14736, %r11
nop
nop
nop
and %rdx, %rdx
mov $0x5152535455565758, %rsi
movq %rsi, (%r11)
nop
nop
nop
add $63909, %rdx
// Store
lea addresses_UC+0x1727c, %r9
sub $28364, %rsi
movw $0x5152, (%r9)
nop
nop
add $22219, %r11
// Faulty Load
mov $0x1faf5d0000000576, %r14
nop
nop
nop
nop
nop
and %rbx, %rbx
mov (%r14), %di
lea oracles, %rsi
and $0xff, %rdi
shlq $12, %rdi
mov (%rsi,%rdi,1), %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rbx
pop %r9
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 0}}
<gen_prepare_buffer>
{'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
*/
| 60.071429
| 2,999
| 0.659215
|
30b5f5d2430913a6358539ec29f82639f3debd4b
| 844
|
asm
|
Assembly
|
oeis/245/A245864.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/245/A245864.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/245/A245864.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A245864: Number of length n+2 0..2 arrays with some pair in every consecutive three terms totalling exactly 2.
; Submitted by Christian Krause
; 19,45,103,239,553,1281,2967,6873,15921,36881,85435,197911,458463,1062035,2460217,5699123,13202089,30582803,70845443,164114349,380172929,880675315,2040095313,4725906149,10947620333,25360298571,58747446847,136089190803,315252301971,730285875841,1691716308235,3918881854661,9078138524783,21029620726415,48715377793537,112849778150593,261417913715279,605577846329953,1402828607855233,3249669906096289,7527900728181939,17438475602414935,40396445478826623,93578868046116659,216776610936781713
add $0,2
lpb $0
sub $0,1
add $2,1
add $5,$1
mov $1,$3
add $1,2
sub $3,$4
add $3,$5
add $3,2
mov $4,$2
mov $2,$3
add $5,$4
mov $3,$5
add $3,2
lpe
mov $0,$5
sub $0,6
mul $0,2
add $0,19
| 33.76
| 488
| 0.774882
|
b62b831eaa99b1d10708357dfa927f4870051ecd
| 552
|
asm
|
Assembly
|
helloWorld.asm
|
jungal01/odds-and-ends
|
050c4fef9e73748d484a4c8551e48564edf68c86
|
[
"Unlicense"
] | null | null | null |
helloWorld.asm
|
jungal01/odds-and-ends
|
050c4fef9e73748d484a4c8551e48564edf68c86
|
[
"Unlicense"
] | null | null | null |
helloWorld.asm
|
jungal01/odds-and-ends
|
050c4fef9e73748d484a4c8551e48564edf68c86
|
[
"Unlicense"
] | null | null | null |
; I have a great interest in assembly language for multiple reasons, one of which is Dr. Knuth's MIX and MMIX computers, and
; another for simply the nerd factor. This is my attempt to display 'hello world' in asm in Linux. It compiles, but I have no
; idea if it's even functional, because it doesn't output to the terminal.
.text
.global _start
_start:
movl $len, %edx
movl $msg, %ecx
movl $1, %ebx
movl $4, %eax
int $0x80
movl $0, %ebx
movl $1, %eax
int $0x80
.data
msg:
.ascii "Hello World\n"
len = . - msg
| 23
| 126
| 0.663043
|
f1d0aeb8ff1c9a01d1f50f75b717f8e7afc561ae
| 422
|
asm
|
Assembly
|
oeis/205/A205456.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/205/A205456.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/205/A205456.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A205456: Symmetric matrix by antidiagonals: C(max(i,j),min(i,j)), i>=1, j>=1.
; Submitted by Jon Maiga
; 1,2,2,3,1,3,4,3,3,4,5,6,1,6,5,6,10,4,4,10,6,7,15,10,1,10,15,7,8,21,20,5,5,20,21,8,9,28,35,15,1,15,35,28,9,10,36,56,35,6,6,35,56,36,10,11,45,84,70,21,1,21,70,84,45,11,12,55,120,126,56,7,7,56,126,120
lpb $0
add $1,1
sub $0,$1
mov $2,$1
sub $2,$0
lpe
min $0,$2
add $0,1
add $1,2
sub $1,$0
bin $1,$0
mov $0,$1
| 24.823529
| 199
| 0.592417
|
c8f62c3bb10f86efc8cb0bad9441c61e111168d6
| 149
|
asm
|
Assembly
|
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_ending.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_ending.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_ending.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
Name: zel_ending.asm
Type: file
Size: 100818
Last-Modified: '2016-05-13T04:25:37Z'
SHA-1: 9AD2EB9B5B6257EAF509946CEB308A52655A6B9C
Description: null
| 21.285714
| 47
| 0.818792
|
beb0fa1b345804428b6a3b7c8c23f167412b517b
| 264
|
asm
|
Assembly
|
scripts/CeruleanMart.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | 1
|
2022-02-15T00:19:44.000Z
|
2022-02-15T00:19:44.000Z
|
scripts/CeruleanMart.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
scripts/CeruleanMart.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
CeruleanMart_Script:
jp EnableAutoTextBoxDrawing
CeruleanMart_TextPointers:
dw CeruleanCashierText
dw CeruleanMartText2
dw CeruleanMartText3
CeruleanMartText2:
text_far _CeruleanMartText2
text_end
CeruleanMartText3:
text_far _CeruleanMartText3
text_end
| 16.5
| 28
| 0.875
|
3c606e01805105508898374125759c6512485689
| 336
|
asm
|
Assembly
|
programs/oeis/043/A043641.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/043/A043641.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/043/A043641.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A043641: Numbers whose base-10 representation has exactly 5 runs.
; 10101,10102,10103,10104,10105,10106,10107,10108,10109,10120,10121,10123,10124,10125,10126,10127,10128,10129,10130,10131,10132,10134,10135,10136,10137,10138,10139,10140,10141,10142
seq $0,43639 ; Numbers whose base-10 representation has exactly 3 runs.
add $0,10000
| 56
| 181
| 0.800595
|
d4b62f907fc4641d34c894de2d4708a6efa7b1d9
| 463
|
asm
|
Assembly
|
programs/oeis/282/A282023.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/282/A282023.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/282/A282023.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A282023: Start with 1; multiply alternately by 4 and 3.
; 1,4,12,48,144,576,1728,6912,20736,82944,248832,995328,2985984,11943936,35831808,143327232,429981696,1719926784,5159780352,20639121408,61917364224,247669456896,743008370688,2972033482752,8916100448256,35664401793024,106993205379072,427972821516288,1283918464548864,5135673858195456
mov $1,4
lpb $0
sub $0,1
gcd $2,2
add $2,2
mul $1,$2
sub $2,3
lpe
add $1,4
div $1,2
sub $1,4
div $1,2
add $1,1
| 27.235294
| 282
| 0.768898
|
0b72627728432f20b3e61b01449cebd673d040cc
| 4,512
|
asm
|
Assembly
|
backend/fr_pack/fr_depacker_x86.asm
|
mudlord/mupack2
|
e88afe042bafa86024fe8be64f8b5fa22f43b5c8
|
[
"Unlicense"
] | 1
|
2019-04-19T05:13:57.000Z
|
2019-04-19T05:13:57.000Z
|
backend/fr_pack/fr_depacker_x86.asm
|
mudlord/mupack2
|
e88afe042bafa86024fe8be64f8b5fa22f43b5c8
|
[
"Unlicense"
] | null | null | null |
backend/fr_pack/fr_depacker_x86.asm
|
mudlord/mupack2
|
e88afe042bafa86024fe8be64f8b5fa22f43b5c8
|
[
"Unlicense"
] | 5
|
2020-10-09T09:17:47.000Z
|
2022-01-30T02:19:55.000Z
|
.686p
.model flat, stdcall
option casemap:none
.code
option prologue:none
option epilogue:none
get_frdepackersize proc export
mov eax, unpacker_end - KKrunchyDepacker
ret
get_frdepackersize endp
get_frdepackerptr proc export
mov eax, KKrunchyDepacker
ret
get_frdepackerptr endp
unpacker_start:
KKrunchyDepacker:
PUSH EBP ; CCADepackerA
PUSH ESI
PUSH EDI
PUSH EBX
MOV ESI,DWORD PTR SS:[ESP+018h]
SUB ESP,0CA0h
MOV EBP,ESP
LODS DWORD PTR DS:[ESI]
MOV DWORD PTR SS:[EBP],ESI
BSWAP EAX
MOV DWORD PTR SS:[EBP+4],EAX
OR DWORD PTR SS:[EBP+8],0FFFFFFFFh
MOV DWORD PTR SS:[EBP+0Ch],5
MOV DWORD PTR SS:[EBP+010h],0
LEA EDI,DWORD PTR SS:[EBP+014h]
MOV ECX,0323h
XOR EAX,EAX
MOV AH,4
REP STOS DWORD PTR ES:[EDI]
MOV EDI,DWORD PTR SS:[ESP+0CB4h]
@mudff_00401040:
XOR ECX,ECX
INC ECX
DEC DWORD PTR SS:[EBP+0Ch]
@mudff_00401046:
LEA EBX,DWORD PTR SS:[EBP+ECX*4+0A0h]
CALL @mudff_004010F2
ADC CL,CL
JNB @mudff_00401046
INC DWORD PTR SS:[EBP+0Ch]
XCHG EAX,ECX
STOS BYTE PTR ES:[EDI]
OR ECX,0FFFFFFFFh
@mudff_0040105E:
LEA EBX,DWORD PTR SS:[EBP+ECX*4+018h]
CALL @mudff_004010F2
JE @mudff_00401040
JECXZ @mudff_00401085
LEA EBX,DWORD PTR SS:[EBP+01Ch]
CALL @mudff_004010F2
JE @mudff_00401085
LEA EBX,DWORD PTR SS:[EBP+08A0h]
CALL @mudff_00401143
MOV EAX,DWORD PTR SS:[EBP+010h]
JMP @mudff_004010CF
@mudff_00401085:
LEA EBX,DWORD PTR SS:[EBP+04A0h]
CALL @mudff_00401143
DEC ECX
DEC ECX
JS @mudff_004010DC
LEA EBX,DWORD PTR SS:[EBP+020h]
JE @mudff_0040109C
ADD EBX,040h
@mudff_0040109C:
XOR EDX,EDX
INC EDX
@mudff_0040109F:
PUSH EBX
LEA EBX,DWORD PTR DS:[EBX+EDX*4]
CALL @mudff_004010F2
POP EBX
ADC EDX,EDX
LEA ECX,DWORD PTR DS:[EAX+ECX*2]
TEST DL,010h
JE @mudff_0040109F
LEA EAX,DWORD PTR DS:[ECX+1]
LEA EBX,DWORD PTR SS:[EBP+08A0h]
CALL @mudff_00401143
CMP EAX,0800h
SBB ECX,-1
CMP EAX,060h
SBB ECX,-1
@mudff_004010CF:
MOV DWORD PTR SS:[EBP+010h],EAX
PUSH ESI
MOV ESI,EDI
SUB ESI,EAX
REP MOVS BYTE PTR ES:[EDI],BYTE PTR DS:[ESI]
POP ESI
JMP @mudff_0040105E
@mudff_004010DC:
MOV EAX,EDI
SUB EAX,DWORD PTR SS:[ESP+0CB4h]
ADD ESP,0CA0h
POP EBX
POP EDI
POP ESI
POP EBP
RETN 8 ;<= Procedure End
@mudff_004010F2: ;<= Procedure Start
PUSH ECX
MOV EAX,DWORD PTR SS:[EBP+8]
SHR EAX,0Bh
IMUL EAX,DWORD PTR DS:[EBX]
CMP EAX,DWORD PTR SS:[EBP+4]
MOV ECX,DWORD PTR SS:[EBP+0Ch]
JBE @mudff_00401116
MOV DWORD PTR SS:[EBP+8],EAX
MOV EAX,0800h
SUB EAX,DWORD PTR DS:[EBX]
SHR EAX,CL
ADD DWORD PTR DS:[EBX],EAX
XOR EAX,EAX
JMP @mudff_00401125
@mudff_00401116:
SUB DWORD PTR SS:[EBP+4],EAX
SUB DWORD PTR SS:[EBP+8],EAX
MOV EAX,DWORD PTR DS:[EBX]
SHR EAX,CL
SUB DWORD PTR DS:[EBX],EAX
OR EAX,0FFFFFFFFh
@mudff_00401125:
TEST BYTE PTR SS:[EBP+0Bh],0FFh
JNZ @mudff_0040113E
MOV ECX,DWORD PTR SS:[EBP]
INC DWORD PTR SS:[EBP]
MOV CL,BYTE PTR DS:[ECX]
SHL DWORD PTR SS:[EBP+8],8
SHL DWORD PTR SS:[EBP+4],8
MOV BYTE PTR SS:[EBP+4],CL
@mudff_0040113E:
SHR EAX,01Fh
POP ECX
RETN ;<= Procedure End
@mudff_00401143: ;<= Procedure Start
PUSH EAX
XOR ECX,ECX
INC ECX
MOV EDX,ECX
@mudff_00401149:
PUSH EBX
LEA EBX,DWORD PTR DS:[EBX+EDX*4]
CALL @mudff_004010F2
POP EBX
ADC DL,DL
PUSH EBX
LEA EBX,DWORD PTR DS:[EBX+EDX*4]
CALL @mudff_004010F2
POP EBX
ADC DL,DL
LEA ECX,DWORD PTR DS:[EAX+ECX*2]
TEST DL,2
JNZ @mudff_00401149
POP EAX
RETN ;<= Procedure End
unpacker_end:
end
| 22.226601
| 64
| 0.541667
|
77a5b627d39293ba0608699e63852395613307b4
| 733
|
asm
|
Assembly
|
oeis/154/A154999.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/154/A154999.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/154/A154999.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A154999: a(n) = 7*a(n-1) + 42*a(n-2), n>2; a(0)=1, a(1)=1, a(2)=13.
; Submitted by Stefano Spezia
; 1,1,13,133,1477,15925,173509,1883413,20471269,222402229,2416608901,26257155925,285297665317,3099884206069,33681691385797,365966976355477,3976399872691813,43205412115772725,469446679463465221,5100754065106710997,55422038993212516261,602185943686969475701,6543027243523712012869,71093000339518702069525,772458146604626819027173,8393113040492173220110261,91195033440839538939913093,990875981786548047824022613,10766323277021096970244508197,116981054174182696800320507125,1271052956854164950352512894149
lpb $0
sub $0,1
mul $3,6
add $3,1
mov $2,$3
mul $2,8
add $3,$1
add $1,$2
lpe
mov $0,$3
div $0,14
mul $0,12
add $0,1
| 40.722222
| 501
| 0.800819
|
d29f3d3df4c13be02cd9ece051a22a7d7f3204db
| 1,131
|
asm
|
Assembly
|
src/test/ref/struct-ptr-7.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | 2
|
2022-03-01T02:21:14.000Z
|
2022-03-01T04:33:35.000Z
|
src/test/ref/struct-ptr-7.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
src/test/ref/struct-ptr-7.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
// Minimal struct - direct (constant) array access
// Commodore 64 PRG executable file
.file [name="struct-ptr-7.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
.const SIZEOF_STRUCT_POINT = 2
.const OFFSET_STRUCT_POINT_Y = 1
.segment Code
main: {
.label SCREEN = $400
// points[0].x = 2
lda #2
sta points
// points[0].y = 3
lda #3
sta points+OFFSET_STRUCT_POINT_Y
// points[1].x = 5
lda #5
sta points+1*SIZEOF_STRUCT_POINT
// points[1].y = 6
lda #6
sta points+1*SIZEOF_STRUCT_POINT+OFFSET_STRUCT_POINT_Y
// SCREEN[0] = points[0].x
lda points
sta SCREEN
// SCREEN[1] = points[0].y
lda points+OFFSET_STRUCT_POINT_Y
sta SCREEN+1
// SCREEN[3] = points[1].x
lda points+1*SIZEOF_STRUCT_POINT
sta SCREEN+3
// SCREEN[4] = points[1].y
lda points+1*SIZEOF_STRUCT_POINT+OFFSET_STRUCT_POINT_Y
sta SCREEN+4
// }
rts
}
.segment Data
points: .fill 2*2, 0
| 25.704545
| 63
| 0.657825
|
a40998ec68ae512e7048992dc09631400d3dc074
| 549
|
asm
|
Assembly
|
oeis/139/A139191.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/139/A139191.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/139/A139191.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A139191: Natural numbers of the form (prime(n)!-3)/3.
; 1,39,1679,13305599,2075673599,118562476031999,40548366802943999,8617338912961658879999,2947253997913233984847871999999,2740946218059307605908520959999999,4587917697075448348771993193860300799999999,11150842204387935702723354017813583888383999999999,20138421021124611879118377356171332502421503999999999,86207747170389393547654785051203993323065877463039999999999,1424961094686675188099337917796466549896781262788937908223999999999999
add $0,1
seq $0,131491 ; 2*prime(n)!.
sub $0,6
div $0,6
| 68.625
| 435
| 0.89071
|
0ee4adeca5a776b6912f4357150a18d7b2debd87
| 281
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sdcc_ix/sp1_GetUpdateStruct_callee.asm
|
teknoplop/z88dk
|
bb03fbfd6b2ab0f397a1358559089f9cd3706485
|
[
"ClArtistic"
] | 8
|
2017-01-18T12:02:17.000Z
|
2021-06-12T09:40:28.000Z
|
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sdcc_ix/sp1_GetUpdateStruct_callee.asm
|
teknoplop/z88dk
|
bb03fbfd6b2ab0f397a1358559089f9cd3706485
|
[
"ClArtistic"
] | 1
|
2017-03-06T07:41:56.000Z
|
2017-03-06T07:41:56.000Z
|
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sdcc_ix/sp1_GetUpdateStruct_callee.asm
|
teknoplop/z88dk
|
bb03fbfd6b2ab0f397a1358559089f9cd3706485
|
[
"ClArtistic"
] | 3
|
2017-03-07T03:19:40.000Z
|
2021-09-15T17:59:19.000Z
|
; struct sp1_update *sp1_GetUpdateStruct(uchar row, uchar col)
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _sp1_GetUpdateStruct_callee
EXTERN asm_sp1_GetUpdateStruct
_sp1_GetUpdateStruct:
pop af
pop hl
pop de
push af
ld d,l
jp asm_sp1_GetUpdateStruct
| 14.789474
| 62
| 0.779359
|
01a8bcda4de016964b8ef2845071f19e50ac77fd
| 356
|
asm
|
Assembly
|
programs/oeis/057/A057355.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/057/A057355.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/057/A057355.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A057355: a(n) = floor(3*n/5).
; 0,0,1,1,2,3,3,4,4,5,6,6,7,7,8,9,9,10,10,11,12,12,13,13,14,15,15,16,16,17,18,18,19,19,20,21,21,22,22,23,24,24,25,25,26,27,27,28,28,29,30,30,31,31,32,33,33,34,34,35,36,36,37,37,38,39,39,40,40,41,42,42,43,43,44,45,45,46,46,47,48,48,49,49,50,51,51,52,52,53,54,54,55,55,56,57,57,58,58,59
mov $1,3
mul $1,$0
div $1,5
mov $0,$1
| 44.5
| 284
| 0.617978
|
d16faca35f1c72e71bc5ead5b03ad8599b05c378
| 4,061
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_3121.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_3121.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_3121.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 %r14
push %r9
push %rax
push %rbp
push %rdi
push %rdx
// Load
lea addresses_PSE+0x14a01, %rdi
nop
nop
nop
nop
and %rdx, %rdx
vmovups (%rdi), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %r10
nop
nop
cmp %rax, %rax
// Faulty Load
lea addresses_PSE+0x1c601, %r9
sub $46463, %r14
vmovups (%r9), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $0, %xmm4, %r10
lea oracles, %r14
and $0xff, %r10
shlq $12, %r10
mov (%r14,%r10,1), %r10
pop %rdx
pop %rdi
pop %rbp
pop %rax
pop %r9
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_PSE', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_PSE', 'same': False, 'size': 32, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_PSE', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
| 68.830508
| 2,999
| 0.662152
|
40731b098e9bcc0ff25833d2a84962c9e82c04b5
| 9,430
|
asm
|
Assembly
|
asm/block.asm
|
GSoftwareDevelopment/Mole
|
419c61a60dc01aa278cc10b9cf40f13524328220
|
[
"MIT",
"Unlicense"
] | 2
|
2021-05-18T19:51:08.000Z
|
2021-07-23T20:06:14.000Z
|
asm/block.asm
|
GSoftwareDevelopment/Mole
|
419c61a60dc01aa278cc10b9cf40f13524328220
|
[
"MIT",
"Unlicense"
] | null | null | null |
asm/block.asm
|
GSoftwareDevelopment/Mole
|
419c61a60dc01aa278cc10b9cf40f13524328220
|
[
"MIT",
"Unlicense"
] | null | null | null |
fr0L = $70;
fr0H = $71;
moleX = $72;
moleY = $73;
XW = $74; // block X postion+Width
YH = $75; // block Y postion+Height
bm = $76; // number of landslide blocks. 0 means that no blocks have fallen
tb = $77; // total blocks on screen
Xpos = $78;
Ypos = $79;
Block = $7a;
Color = $7b;
BlockW = $7c;
BlockH = $7d;
CMask = $7e;
scrvec = $60; // 2 bytes
defvec = $62; // 2 bytes
lstvec = $64; // 2 bytes
tmpadr = $66; // 2 bytes
_RAND = $d20a;
;
;
;
dta a(drawBlock)
dta a(testBlock)
dta a(clearBlock)
dta a(dropBlocks)
dta a(pointTest)
dta a(shuffleBlock)
dta a(randomBottomBlock)
;
;
;
drawBlock ; rusuj blok
jsr _calc_adr
; ustal maske koloru
ldy Color
lda mask,y
sta CMask
; rysowanie
ldx BlockH
DrawStrt ldy #0
DrawNxt lda (tmpadr),y
beq DrawSkip ; jezeli 0,pomin
ora CMask
sta (scrvec),y
DrawSkip iny
cpy BlockW
bne DrawNxt
jsr _incadr
; zmniejsz i sprawdz, czy BlockH=0
dex
cpx #0
bne DrawStrt ; jezeli nie, rysuj
rts
;
;
;
testBlock ; Kolizja bloku
jsr _calc_adr
lda #0
sta fr0H
; Sprawdzanie kolizji
ldx BlockH
txa
clc
adc YPos
cmp #13
bcs colision
TestStrt ldy #0
TestNxt lda (tmpadr),y
beq TestSkip ; jezeli 0,pomin
lda (scrvec),y
beq TestSkip
; wystepuje kolizja! zakoncz
colision lda #1
jmp TestEnd
TestSkip iny
cpy BlockW
bne TestNxt
jsr _incadr
; zmniejsz licznik wysokości bloku i sprawdz, czy =0
dex
cpx #0
bne TestStrt ; jezeli nie, sprawdzaj dalej
; nie ma kolizji
cld
lda #0
TestEnd sta fr0L
rts
clearBlock ; kasuj blok
jsr _calc_adr
ldx BlockH
ClrStrt ldy #0
ClrNxt lda (tmpadr),y
beq ClrSkip ; jezeli 0,pomin
lda #0
sta (scrvec),y
ClrSkip iny
cpy BlockW
bne ClrNxt
jsr _incadr
; zmniejsz i sprawdz, czy BlockH=0
dex
cpx #0
bne ClrStrt ; jezeli nie, rysuj
rts
; opusc bloki o jeden wiersz jezeli moga spasc
dropBlocks
lda #0
sta BM
; pobierz ilosc blokow
lda TB
beq EndDrop
asl @ ;razy 4, aby uzyskać offset na liście bloków
asl @
sec
sbc #4 ;zmniejsz o 4, aby offset wskazywał na ostatni blok na liście
DropLoop sta TB ;zapisz TB
tay
; pobierz dane bloku
; (x,y,Block,Color)
lda (lstvec),y
sta Xpos
iny
lda (lstvec),y
sta Ypos
iny
lda (lstvec),y
sta Block
iny
lda (lstvec),y
sta Color
jsr clearBlock
inc Ypos
jsr testBlock
dec Ypos
cmp #1
beq NoDrop
inc BM
clc
lda Ypos ; TODO: zamienić na ldy Ypos, iny, sty Ypos
adc #1 ; pamiętaj o korekcie adresów skoków w pliku block.pas
sta Ypos ;
ldy TB
iny
sta (lstvec),y
NoDrop jsr drawBlock
sec
lda TB
sbc #4
bcs DropLoop
EndDrop lda #0
sta fr0H
lda BM
sta fr0L
rts
pointTest ; testowanie pozycji na liscie blokow
lda #0
sta fr0H
lda #$ff
sta fr0L
; pobierz ilosc blokow
lda TB
beq EndPtTst ; jeżeli równa 0 (zero) zakończ test
_TB asl @ ;razy 4
asl @
sec
sbc #4 ;zmniejsz o 4
PtTstLoop
sta TB ; zapisz TB
tay
; pobierz dane bloku
; (x,y,Block,Color)
lda (lstvec),y
sta Xpos
iny
lda (lstvec),y
sta Ypos
iny
lda (lstvec),y
sta Block
iny
lda (lstvec),y
sta Color
; oblicz adres definicji bloku
lda defvec+1
sta tmpadr+1
jsr _calc_dadr
; oblicz XW i YH bloku
lda Xpos
adc BlockW
sta XW ; Xpos+BlockW
lda Ypos
adc BlockH
sta YH ; Ypos+BlockH
; sprawdz, czy:
; Xpos>=moleX>=XW oraz
; Ypos>=moleY>=YH
; moleX>=Xpos? (MX>=X)
lda moleX
cmp Xpos
bmi NxtPtTst ; moleX<Xpos?
; moleX<XW (MX<=XW-1)
cmp XW
bpl NxtPtTst ; moleX<XW?
; moleY>=Ypos? (MY>=Y)
lda moleY
cmp Ypos
bmi NxtPtTst ; moleY<Ypos?
; moleY<YH (MY<=YH-1)
cmp YH
bpl NxtPtTst ; moleY<YH?
; punkt znajduje sie w obszarze bloku
; wyliczenie adresu wew. bloku
sec
lda moleY
sbc Ypos
tay
clc
beq _nomul ; moleY-Ypos=0?
; tmpadr=tmpadr+BlockW;(moleY-Ypos)
lda tmpadr
_mul adc BlockW
dey
bne _mul
sta tmpadr
_nomul lda moleX
sec
sbc Xpos
clc
adc tmpadr
sta tmpadr
; sprawdź, czy wartość spod adresu tmpadr jest równa 0
lda (tmpadr),y
beq NxtPtTst
lda TB
lsr @
lsr @
sta fr0L
jmp clearBlock
NxtPtTst sec
lda TB
sbc #4
bcs PtTstLoop
EndPtTst rts
shuffleBlock ; losuj linie blokow
; pobierz index TB
lda TB
asl @
asl @
sta TB
; pobierz nr linii ekranu
; lda _Ypos
; sta Ypos
lda #0
sta BM
lda #1
sta Xpos
; losuj blok...
shufLoop cmp #18
beq EndShuffle
sec
lda _rand
and #31
cmp #18
bmi _nosbc
sbc #18
; ...i kolor
_nosbc sta Block
lda _rand
and #%00000011
sta Color
jsr testBlock
bne nxtShuf
jsr drawBlock
; zapisz na liscie blokow
ldy TB
lda Xpos
sta (lstvec),y
iny
lda Ypos
sta (lstvec),y
iny
lda Block
sta (lstvec),y
iny
lda Color
sta (lstvec),y
iny
sty TB
inc BM
nxtShuf inc Xpos
lda Xpos
jmp shufLoop
endShuffle lda #0
sta fr0H
lda BM
sta fr0L
rts
;
;
;
randomBottomBlock ; losuje jeden blok znajdujacy sie na samym dole
lda #0
sta fr0H
lda TB
beq endRndBttmBlk_noBlocksFound
; oblicz offset
asl @
asl @
sta TB
ldx #0 ; usaw ilość znalezionych bloków na 0 (zero)
; wyszukaj bloki przylegające do dolnej krawędzi pola gry
findNext sec
lda TB
sbc #4
bcc endFind
sta TB
tay
; pobierz dane bloku
lda (lstvec),y
sta Xpos
iny
lda (lstvec),y
sta Ypos
iny
lda (lstvec),y
; .print "break at ",*
cmp #17 ; wybieraj TYLKO bloki, nie "coinsy"!
beq findNext
sta Block
asl @
asl @
asl @
tay
iny
clc
lda (defvec),y
adc Ypos
; sprawdz, czy blok przylega do dolnej krawedzi
cmp #11
bne findNext
; zapisz offset bloku w tablicy bttmBlks
lda TB
sta bttmBlks,x
inx
jmp findNext
; koniec wyszukiwania
; sprwdzenie, czy został znaleziony jakikolwiek block
endFind stx BM
cpx #0
bne randOne
; jeżeli nie, zwróć $FF
endRndBttmBlk_noBlocksFound
ldx #$ff
stx fr0L
rts
; losowanie z listy jednego bloku
randOne lda _rand
and #15
tooBig cmp BM
bmi inRange
sec
sbc BM
jmp tooBig
inRange tax
; pobranie offsetu wylosowanego bloku
lda bttmBlks,x
; koniec procedury, zwrócenie offsetu bloku
endDelOne
sta fr0L
lda #0
sta fr0H
rts
;
; PROCEDURY POMOCNICZE
;
_calc_adr ; oblicz adres ekranu
lda 88
sta scrvec
lda 89
sta scrvec+1
; offset dla Ypos z tablicy vadr
clc
ldx Ypos
lda vadr,x
adc scrvec
sta scrvec
; dodaj Xpos do scrvec
clc
lda Xpos
adc scrvec
sta scrvec
lda defvec+1
sta tmpadr+1
_calc_dadr ; Wylicz adres definicji klocka
lda Block
asl @
asl @
asl @
clc
adc defvec
sta tmpadr
; pobierz wymiary bloku
ldy #0
lda (tmpadr),y
sta BlockW
iny
lda (tmpadr),y
sta BlockH
; zwieksz adres tymczasowy o 2 bajty
clc
lda tmpadr
adc #2
sta tmpadr
end_calc rts
_incadr ; zwieksz adres bloku o jego szer.
clc
lda tmpadr
adc BlockW
sta tmpadr
; zwieksz adres ekranu o jego szer.
clc
lda scrvec
adc #20 ; szer. ekr.
sta scrvec
end_upadr rts
vadr dta $00,$14,$28,$3c,$50,$64,$78,$8c,$a0,$b4,$c8,$dc
mask dta %00000000, %01000000, %10000000, %11000000
; tablica dla znalezionych bloków
bttmBlks dta $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
dta $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
| 16.749556
| 81
| 0.507105
|
f67d40914cd0a14acfb5371000f7139f34c2b837
| 404
|
asm
|
Assembly
|
oeis/063/A063214.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/063/A063214.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/063/A063214.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A063214: Dimension of the space of weight 2n cuspidal newforms for Gamma_0( 46 ).
; Submitted by Jamie Morken(s2)
; 1,6,10,12,16,22,22,28,32,34,38,44,44,50,54,56,60,66,66,72,76,78,82,88,88,94,98,100,104,110,110,116,120,122,126,132,132,138,142,144,148,154,154,160,164,166,170,176,176,182
mov $1,$0
mul $0,13
mul $1,7
div $1,3
mul $1,4
mov $2,$0
trn $0,3
mod $0,2
add $0,$1
sub $2,$0
mov $0,$2
add $0,1
| 23.764706
| 172
| 0.668317
|
c7ca13f753844d0acc96bba20c3b7c874c30cf6f
| 7,761
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_890.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_890.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_890.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x19b5b, %r14
sub %rbx, %rbx
mov (%r14), %edi
nop
nop
xor $43834, %r10
lea addresses_D_ht+0xc06b, %rsi
clflush (%rsi)
nop
nop
nop
cmp $47888, %r13
movups (%rsi), %xmm1
vpextrq $1, %xmm1, %r10
nop
nop
nop
nop
nop
inc %rbx
lea addresses_A_ht+0x186db, %rsi
nop
nop
nop
nop
nop
cmp %r8, %r8
and $0xffffffffffffffc0, %rsi
vmovaps (%rsi), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $0, %xmm6, %rbx
nop
nop
add $43228, %r10
lea addresses_D_ht+0x8f5b, %rsi
lea addresses_WC_ht+0x2bf2, %rdi
nop
nop
nop
inc %r13
mov $112, %rcx
rep movsq
nop
and $56687, %r13
lea addresses_WT_ht+0xd03, %rdi
nop
nop
nop
mfence
mov $0x6162636465666768, %r14
movq %r14, %xmm3
and $0xffffffffffffffc0, %rdi
vmovaps %ymm3, (%rdi)
nop
nop
nop
cmp $27285, %r14
lea addresses_normal_ht+0x12f2b, %rdi
nop
nop
xor $44506, %r14
mov $0x6162636465666768, %rsi
movq %rsi, %xmm6
and $0xffffffffffffffc0, %rdi
vmovntdq %ymm6, (%rdi)
nop
nop
cmp %r8, %r8
lea addresses_D_ht+0x172ab, %r10
nop
dec %r13
and $0xffffffffffffffc0, %r10
vmovaps (%r10), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $0, %xmm7, %r14
xor %r10, %r10
lea addresses_D_ht+0x1075b, %r14
and %r8, %r8
movw $0x6162, (%r14)
nop
cmp $10236, %rdi
lea addresses_WT_ht+0xf49b, %r14
xor %rbx, %rbx
movl $0x61626364, (%r14)
nop
nop
nop
nop
nop
dec %rsi
lea addresses_D_ht+0xbd5b, %r8
nop
nop
nop
nop
add $10036, %rsi
mov $0x6162636465666768, %r14
movq %r14, %xmm7
and $0xffffffffffffffc0, %r8
movntdq %xmm7, (%r8)
nop
nop
xor %rsi, %rsi
lea addresses_normal_ht+0x15cf3, %rsi
lea addresses_D_ht+0x1aadb, %rdi
nop
xor $48813, %r13
mov $56, %rcx
rep movsl
nop
nop
nop
nop
nop
cmp $43277, %r14
lea addresses_D_ht+0x3f5b, %r8
nop
nop
nop
nop
cmp $189, %rdi
and $0xffffffffffffffc0, %r8
movaps (%r8), %xmm6
vpextrq $0, %xmm6, %rcx
nop
add $20839, %r8
lea addresses_D_ht+0x1d75b, %r14
inc %rcx
mov $0x6162636465666768, %rdi
movq %rdi, (%r14)
nop
nop
nop
nop
nop
and %r14, %r14
lea addresses_WT_ht+0xdb5b, %rsi
lea addresses_UC_ht+0xb45b, %rdi
clflush (%rsi)
nop
nop
nop
cmp $42407, %rbx
mov $104, %rcx
rep movsl
nop
nop
nop
nop
nop
and %rbx, %rbx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r14
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r9
push %rax
push %rbp
push %rbx
// Faulty Load
lea addresses_PSE+0x1ff5b, %r10
nop
nop
nop
nop
nop
cmp $41250, %r9
mov (%r10), %ebx
lea oracles, %r10
and $0xff, %rbx
shlq $12, %rbx
mov (%r10,%rbx,1), %rbx
pop %rbx
pop %rbp
pop %rax
pop %r9
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_PSE', 'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 6}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': True, 'AVXalign': True, 'size': 32, 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 3}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': True, 'AVXalign': True, 'size': 32, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 9}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 6}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_UC_ht'}}
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
| 34.340708
| 2,999
| 0.660997
|
71c24618739b8ac66a1b80a4f036c801e2d1f179
| 1,401
|
asm
|
Assembly
|
Documentation/Tutorial/cs50-atoi-1.asm
|
geoffthorpe/ant-architecture
|
d85952e3050c352d5d715d9749171a335e6768f7
|
[
"BSD-3-Clause"
] | null | null | null |
Documentation/Tutorial/cs50-atoi-1.asm
|
geoffthorpe/ant-architecture
|
d85952e3050c352d5d715d9749171a335e6768f7
|
[
"BSD-3-Clause"
] | null | null | null |
Documentation/Tutorial/cs50-atoi-1.asm
|
geoffthorpe/ant-architecture
|
d85952e3050c352d5d715d9749171a335e6768f7
|
[
"BSD-3-Clause"
] | 1
|
2020-07-15T04:09:05.000Z
|
2020-07-15T04:09:05.000Z
|
# Register usage:
# r3 - used as scratch space to load each byte into.
# r4 - used to hold the sum.
# r5 - the address of the next byte to load.
# r6 - the location of the end of the main loop.
# r7 - used to hold the constant 10.
# r8 - used to hold the constant '0'.
# r9 - used to hold the constant '\n'.
lc r4, 0 # Initialize sum to 0.
lc r5, $string_start # Start at beginning of string.
lc r6, $end_sum_loop # Location of end of the loop.
lc r7, 10 # Initialize r7 to 10.
lc r8, '0' # Initialize r8 to '0'.
sum_loop:
ld1 r3, r5, 0 # load the byte *str into r3,
beq r6, r3, r0 # if r3 == 0, branch out of loop.
mul r4, r4, r7 # r4 *= 10.
sub r3, r3, r8 # r3 -= '0'.
add r4, r4, r3 # sum += r3.
inc r5, 1 # increment str to the next char,
jmp $sum_loop # and repeat the loop.
end_sum_loop:
sys r4, SysPutInt # print out the number
lc r9, '\n' # put newline into r9
sys r9, SysPutChar # print out a newline
sys r0, SysHalt # halt
_data_:
string_start:
.byte '1', '0', '5', 0
| 37.864865
| 73
| 0.461813
|
c0d8b756498bd32e17eb9832bb418bd427d2ce79
| 5,229
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_2903.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_2903.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_2903.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 %r14
push %r15
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x5830, %rsi
lea addresses_D_ht+0x1e270, %rdi
clflush (%rsi)
nop
nop
sub %r15, %r15
mov $90, %rcx
rep movsq
nop
and %rbp, %rbp
lea addresses_UC_ht+0x169d0, %rsi
lea addresses_UC_ht+0x2550, %rdi
nop
nop
nop
nop
inc %rbp
mov $117, %rcx
rep movsl
nop
nop
nop
cmp %rsi, %rsi
lea addresses_normal_ht+0x17230, %rsi
lea addresses_normal_ht+0x18d10, %rdi
cmp %r12, %r12
mov $124, %rcx
rep movsw
nop
nop
nop
nop
dec %r12
lea addresses_D_ht+0x2728, %rsi
nop
nop
cmp $9407, %r14
movups (%rsi), %xmm1
vpextrq $1, %xmm1, %rbp
sub %rcx, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r14
push %r15
push %rax
push %rbp
// Store
mov $0x53c73d0000000bd4, %r10
clflush (%r10)
nop
nop
nop
sub $36724, %r13
mov $0x5152535455565758, %r15
movq %r15, (%r10)
nop
nop
nop
sub %r10, %r10
// Faulty Load
lea addresses_A+0x5cd0, %r15
nop
nop
nop
and $13673, %r14
mov (%r15), %r13
lea oracles, %r14
and $0xff, %r13
shlq $12, %r13
mov (%r14,%r13,1), %r13
pop %rbp
pop %rax
pop %r15
pop %r14
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': True, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 45.077586
| 2,999
| 0.661886
|
d228cd2a1353fc6e095de6274aaf9ac356fca8c8
| 452
|
asm
|
Assembly
|
oeis/160/A160016.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/160/A160016.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/160/A160016.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A160016: Lodumo_2 transform of A159833.
; Submitted by Jon Maiga
; 0,2,1,4,6,8,3,10,12,14,5,16,18,20,7,22,24,26,9,28,30,32,11,34,36,38,13,40,42,44,15,46,48,50,17,52,54,56,19,58,60,62,21,64,66,68,23,70,72,74,25,76,78,80,27,82,84,86,29,88,90,92,31,94,96,98,33,100,102,104,35,106,108,110,37,112,114,116,39,118,120,122,41,124,126,128,43,130,132,134,45,136,138,140,47,142,144,146,49,148
mov $1,$0
mul $0,3
add $1,25
mod $1,4
add $0,$1
dif $0,$1
div $0,2
| 37.666667
| 316
| 0.670354
|
cc98eb34229f7a54f6f47f197d8dc4d80fe1a657
| 445
|
asm
|
Assembly
|
Working Disassembly/General/2P Zone/Map - Position Icons (Unused).asm
|
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
|
7e8a2c5df02271615ff4cae529521e6b1560d6b1
|
[
"Apache-2.0"
] | 5
|
2021-07-09T08:17:56.000Z
|
2022-02-27T19:57:47.000Z
|
Working Disassembly/General/2P Zone/Map - Position Icons (Unused).asm
|
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
|
7e8a2c5df02271615ff4cae529521e6b1560d6b1
|
[
"Apache-2.0"
] | null | null | null |
Working Disassembly/General/2P Zone/Map - Position Icons (Unused).asm
|
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
|
7e8a2c5df02271615ff4cae529521e6b1560d6b1
|
[
"Apache-2.0"
] | null | null | null |
Map_380C6: dc.w word_380D0-Map_380C6
dc.w word_380D8-Map_380C6
dc.w word_380E0-Map_380C6
dc.w word_380E8-Map_380C6
dc.w word_380F0-Map_380C6
word_380D0: dc.w 1
dc.b $FC, 0, 0, 0, $FF, $FC
word_380D8: dc.w 1
dc.b $FC, 0, 0, 1, $FF, $FC
word_380E0: dc.w 1
dc.b $FC, 0, 0, 2, $FF, $FC
word_380E8: dc.w 1
dc.b $FC, 0, 0, 3, $FF, $FC
word_380F0: dc.w 1
dc.b $FC, 0, 0, 4, $FF, $FC
| 27.8125
| 37
| 0.559551
|
fafcc4cf479d00e57373e08df036974e04db07d0
| 358
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/adt/wa_priority_queue/c/sccz80/wa_priority_queue_pop.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/adt/wa_priority_queue/c/sccz80/wa_priority_queue_pop.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/adt/wa_priority_queue/c/sccz80/wa_priority_queue_pop.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; void *wa_priority_queue_pop(wa_priority_queue_t *q)
SECTION code_clib
SECTION code_adt_wa_priority_queue
PUBLIC wa_priority_queue_pop
EXTERN asm_wa_priority_queue_pop
defc wa_priority_queue_pop = asm_wa_priority_queue_pop
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _wa_priority_queue_pop
defc _wa_priority_queue_pop = wa_priority_queue_pop
ENDIF
| 18.842105
| 54
| 0.874302
|
2785994881f75d0ce419aa6e1494ede305ec8a77
| 561
|
asm
|
Assembly
|
oeis/017/A017517.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/017/A017517.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/017/A017517.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A017517: a(n) = (11*n + 10)^9.
; 1000000000,794280046581,35184372088832,502592611936843,3904305912313344,20711912837890625,84590643846578176,285544154243029527,833747762130149888,2171893279442309389,5159780352000000000,11361656654439817571,23474432367845903872,45943373101939347033,85821209809770512384,153936794281005859375,266450474490105494016,446885265417950510117,728735647959800086528,1158769441178837331579,1801152661463000000000,2742542606093287451761,4098310578334288576512,6020072706412286871623,8704725199652968436224
mul $0,11
add $0,10
pow $0,9
| 80.142857
| 497
| 0.896613
|
0c629ee8c9b80aa7f569ce19826f0938350ed848
| 474
|
asm
|
Assembly
|
programs/oeis/180/A180491.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/180/A180491.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/180/A180491.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A180491: Product of remainders of n mod k, for k = 2,3,4,...,n-1.
; 1,1,1,0,2,0,6,0,0,0,720,0,2160,0,0,0,2419200,0,65318400,0,0,0,754427520000,0,0,0,0,0,32953394073600000,0,311409573995520000,0,0,0,0,0,37269497815783833600000,0,0,0,7890485108998805913600000000,0
add $0,1
mov $1,1
mov $2,2
mov $3,$0
mov $4,$0
lpb $3
mov $5,$4
lpb $5
mov $6,$0
mod $6,$2
mul $1,$6
mov $5,$2
lpe
add $2,1
mov $6,$0
cmp $6,1
cmp $6,0
sub $3,$6
lpe
mov $0,$1
| 19.75
| 196
| 0.609705
|
dbf1f4416bed99326adf7e5534b18cf08f206dc1
| 550
|
asm
|
Assembly
|
oeis/061/A061167.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/061/A061167.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/061/A061167.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A061167: a(n) = n^5 - n.
; 0,0,30,240,1020,3120,7770,16800,32760,59040,99990,161040,248820,371280,537810,759360,1048560,1419840,1889550,2476080,3199980,4084080,5153610,6436320,7962600,9765600,11881350,14348880,17210340,20511120,24299970,28629120,33554400,39135360,45435390,52521840,60466140,69343920,79235130,90224160,102399960,115856160,130691190,147008400,164916180,184528080,205962930,229344960,254803920,282475200,312499950,345025200,380203980,418195440,459164970,503284320,550731720,601692000,656356710,714924240
mov $1,$0
pow $0,5
sub $0,$1
| 78.571429
| 492
| 0.832727
|
4ca1a5bba29acb26eedfdd30c90b52882514b1d6
| 619
|
asm
|
Assembly
|
oeis/030/A030237.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/030/A030237.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/030/A030237.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A030237: Catalan's triangle with right border removed (n > 0, 0 <= k < n).
; Submitted by Jon Maiga
; 1,1,2,1,3,5,1,4,9,14,1,5,14,28,42,1,6,20,48,90,132,1,7,27,75,165,297,429,1,8,35,110,275,572,1001,1430,1,9,44,154,429,1001,2002,3432,4862,1,10,54,208,637,1638,3640,7072,11934,16796,1,11,65,273,910,2548,6188,13260,25194,41990,58786,1,12,77,350,1260,3808,9996,23256,48450,90440,149226,208012,1,13,90,440,1700,5508,15504,38760,87210,177650,326876,534888,742900,1,14,104,544,2244,7752,23256,62016,149226
lpb $0
add $2,1
sub $0,$2
mov $1,$2
lpe
add $1,$0
bin $1,$0
add $2,$0
sub $0,2
bin $2,$0
sub $1,$2
mov $0,$1
| 36.411765
| 400
| 0.686591
|
2acc5f05ca13bb98f30bb33bdd50b84ac0f99c81
| 644
|
asm
|
Assembly
|
base/mvdm/wow16/kernel31/kdataend.asm
|
npocmaka/Windows-Server-2003
|
5c6fe3db626b63a384230a1aa6b92ac416b0765f
|
[
"Unlicense"
] | 17
|
2020-11-13T13:42:52.000Z
|
2021-09-16T09:13:13.000Z
|
base/mvdm/wow16/kernel31/kdataend.asm
|
sancho1952007/Windows-Server-2003
|
5c6fe3db626b63a384230a1aa6b92ac416b0765f
|
[
"Unlicense"
] | 2
|
2020-10-19T08:02:06.000Z
|
2020-10-19T08:23:18.000Z
|
base/mvdm/wow16/kernel31/kdataend.asm
|
sancho1952007/Windows-Server-2003
|
5c6fe3db626b63a384230a1aa6b92ac416b0765f
|
[
"Unlicense"
] | 14
|
2020-11-14T09:43:20.000Z
|
2021-08-28T08:59:57.000Z
|
TITLE KDATAEND - Kernel ending data area
; This file contains the kernel data items that must be at the end of
; their respective segments. This file is last in the link order.
include kernel.inc
; The PADDATA segment performs two functions: it provides ginit with
; space to create the ending global heap sentinel, and it forces the
; linker to fully expand DGROUP in the .EXE file. Kernel uses DGROUP
; before it's actually loaded by LoadSegment, so it needs to be fully
; expanded when loaded by the DOS EXEC call of kernel.
sBegin PADDATA
DB 32 DUP (0FFh) ; Room for final arena entry
sEnd PADDATA
end
| 28
| 70
| 0.734472
|
32ce07629787002edec85d5ed2cd123c666c7332
| 404
|
asm
|
Assembly
|
programs/oeis/052/A052938.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/052/A052938.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/052/A052938.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A052938: Expansion of (1 + 2*x - 2*x^2)/( (1+x)*(1-x)^2 ).
; 1,3,2,4,3,5,4,6,5,7,6,8,7,9,8,10,9,11,10,12,11,13,12,14,13,15,14,16,15,17,16,18,17,19,18,20,19,21,20,22,21,23,22,24,23,25,24,26,25,27,26,28,27,29,28,30,29,31,30,32,31,33,32,34,33,35,34,36,35,37,36,38,37,39,38,40,39,41,40,42,41,43,42,44,43,45,44,46,45,47,46,48,47,49,48,50,49,51,50,52
mov $1,$0
mod $1,2
mul $1,3
add $0,$1
div $0,2
add $0,1
| 40.4
| 285
| 0.601485
|
f327282053778a926d070ce23cc37f7f4430eacb
| 532
|
asm
|
Assembly
|
oeis/138/A138368.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/138/A138368.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/138/A138368.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A138368: Primes of the form k^2 + 12.
; Submitted by Jon Maiga
; 13,37,61,181,373,541,853,1237,1381,1693,1861,2221,3037,3733,7237,7933,8293,9421,12781,14173,14653,16141,19333,25933,27901,28573,30637,34981,36493,38821,41221,44533,46237,49741,52453,60037,70237,73453,87037
mov $2,332203
mov $5,12
mov $6,1
lpb $2
mov $3,$6
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,8
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
sub $2,18
add $5,$1
mov $6,$5
lpe
mov $0,$5
add $0,1
| 23.130435
| 207
| 0.669173
|
8457346e1ed63dc79a9021af25eaa6a64a6859f7
| 6,277
|
asm
|
Assembly
|
45/beef/cw/kernel/ldreloc.asm
|
minblock/msdos
|
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
|
[
"Apache-2.0"
] | null | null | null |
45/beef/cw/kernel/ldreloc.asm
|
minblock/msdos
|
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
|
[
"Apache-2.0"
] | null | null | null |
45/beef/cw/kernel/ldreloc.asm
|
minblock/msdos
|
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
|
[
"Apache-2.0"
] | null | null | null |
;*
;* COW : Character Oriented Windows
;*
;* ldreloc.asm : loader relocation
;* * NOTE : non-conforming procedures (DS == psLom)
;* * NOTE : this code cloned from loader/loadrelo.asm
TITLE LOADRELOC - RelocSegment procedure
.xlist
include kernel.inc
include rlb.inc ;* relocation info
.list
sBegin BSS
assumes DS,DGROUP
externW psLom
sEnd BSS
;*****************************************************************************
sBegin KERNEL
assumes CS,KERNEL
assumes SS,DGROUP
assumes DS,NOTHING ;* NOTE : DS == psLom !
;*****************************************************************************
;* * Jump table for relocations
mprt2pfn EQU THIS WORD
Assert <rtFixed EQ 0>
DW RelocBase ;* rtFixed acts like base
Assert <rtOffset EQ 1>
DW RelocOffset
Assert <rtBase EQ 2>
DW RelocBase
Assert <rtPtr EQ 3>
DW RelocPtr
;* * if additive (Base only allowed for fixed)
DW RelocBaseAdditive
;*****************************************************************************
;********** FRelocSegment **********
;* entry :
;* DS == psLom.
;* pnewseg1 = pointer to a NEW_SEG1
;* psLoad = physical segment where loaded
;* segLoaded = 1 based segment # just loaded
;* * check checksum of segment
;* * Relocate an already loaded segment
;* * kernel work buffer contains proper RLB info (lprlb = psLom:offRlbLom)
;* exit : AX != 0 => ok, AX == 0 => error (checksum error)
cProc FRelocSegment,<PUBLIC,NEAR>,<SI, DI, DS>
parmW pnewseg1
parmW psLoad
parmW segLoaded
cBegin FRelocSegment
;{{
; (lprlb in ds:bx)
; Assert(lprlb->magic == magicNe);
; if (segLoaded == lprlb->segSpecial)
; lprls = &lprlb->rgrls[0]; // rlsSpecial
; else
; lprls = &lprlb->rgrls[segLoaded - lprlb->segFirst + 1];
;}}
mov bx,ds:[offRlbLom]
AssertEQ ds:[bx].magicRlb,magicNe
mov si,segLoaded
mov ax,si
sub si,ds:[bx].segFirstRlb ;* si = segLoaded - lprlb->segFirst
cmp ax,ds:[bx].segSpecialRlb
lea bx,[bx].rgrlsRlb ;* first RLS (rlsSpecial)
je use_special_rls
Assert <SIZE RLS EQ 4>
shl si,1
shl si,1
lea bx,[bx+si+SIZE RLS] ;* address of sequential one
use_special_rls: ;* ds:bx => RLS
;* * Check checksum
;{{
; wSum = lprls->csum; /* start with total */
; cw = pnsg->ne_cbseg / 2;
; lpw = psLoad:0;
; while (cw--)
; wSum += *lpw++;
; if (wSum != 0)
; return 0;
;}}
mov dx,ds:[bx].csumRls ;* wSum
mov si,pnewseg1 ;* ds:si => NSG info
;* * Check checksum of code segment
mov cx,ds:[si].ns_cbseg ;* in file size
shr cx,1
jcxz got_checksum
push ds
push si
mov ds,psLoad
xor si,si ;* ds:si => code to sum
csum_loop:
lodsw
add dx,ax
loop csum_loop
pop si
pop ds
got_checksum: ;* dx = final sum (should be 0)
or dx,dx
jz checksum_ok
xor ax,ax
jmp reloc_end ;* return FALSE if error
checksum_ok:
;{{
; if (!(pnewseg1->ns_flags & NSRELOC))
; return; // no relocation for this one
;}}
test ds:[si].ns_flags,NSRELOC
jnz reloc_seg
jmp reloc_complete ;* no relocations (easy)
reloc_seg:
;{{
; lpw (ds:si) = lprlb (ds:offRlbLom) + lprls->preloc;
; crlc = *lpw; // 1st word is count
; Assert(crlc != 0);
; lprlc (ds:si) = lpw; // followed by relocations
; while (crlc--)
; { /*RelocLoop*/
; Reloc(lprlc);
; lprlc++;
; }
;}}
;* * ds:bx = lprls (reload DS for each relocation)
mov ax,ds:[bx].rltRls ;* ax = rlt
and ax,MASK prelocRlt ;* just pointer part
mov si,ax
add si,ds:[offRlbLom] ;* ds:si = lpw
lods word ptr ds:[si]
mov cx,ax ;* crlc
AssertNE cx,0
mov es,psLoad ;* es = segment where loaded
RelocLoop: ;* CX = crlc
push cx
;{{
; /* Reloc(lprlc (DS:SI)) - part 1 */
; rli (cx) = lprlc->rli;
; offSrc (di) = lprlc->offSrc;
; Assert(!rli.fImport);
; /* Determine target value */
; if (rli.rt == rtFixed)
; {
; Assert(rli.seg != 0 && rli.seg <= nexe.ne_cseg);
; pnewseg1 (BX) = neLom.ne_segtab[rli.seg];
; lpDest (DX:AX) = MAKELONG(0, pnewseg1->ns_handle);
; Assert(!(pnewseg1->ns_flags & NSMOVE));
; }
; else
; {
; /* moveable */
; lpDest (DX:AX) = MAKELONG(neLom.ne_enttab[rli.ithunk], neLom);
; }
;}}
mov cx,ds:[si].rliRlc
mov di,ds:[si].offSrcRlc
IFDEF DEBUG
test cx,MASK fImportRli
jz ok_so_far
bad_reloc:
cCall CowAssertFailed
DB "rlc$"
ok_so_far:
ENDIF ;DEBUG
Assert <rtFixed EQ 0>
test cx,MASK rtRli
jnz entry_moveable
;* * LOBYTE of RLI is segTarg !
mov bl,cl
xor bh,bh
IFDEF DEBUG
or bx,bx
jz bad_reloc
cmp bx,ds:[neLom.ne_cseg]
ja bad_reloc ;* Error if invalid segno
ENDIF
Assert <SIZE NEW_SEG1 EQ 10>
dec bx ;* 1 based => zero based
shl bx,1
mov ax,bx
shl bx,1
shl bx,1
add bx,ax
add bx,ds:[neLom.ne_segtab]
mov dx,ds:[bx].ns_handle ;* ps of fixed segment
IFDEF DEBUG
;* * Segment MUST be FIXED !
test byte ptr [bx].ns_flags,NSMOVE
jnz bad_reloc
ENDIF ;DEBUG
Assert <LOW(MASK rtRli) EQ 0>
jmp short do_reloc
entry_moveable:
mov ax,cx
and ax,MASK ithunkRli
Assert <SIZE ENTMOVE EQ 6>
shl ax,1
mov dx,ax
shl ax,1
add ax,dx ;* times 6
add ax,ds:[neLom.ne_rgentmove] ;* point to opcode
mov dx,ds ;* dx = ps of entries
do_reloc:
;* * do relocation : ES:DI => first fixup destination
;* DX:AX = fixup value
;* CX = rli
Assert <MASK rtRli EQ 3000H>
Assert <MASK fAddRli EQ 4000H>
mov bl,ch
shr bx,1 ;* *16
shr bx,1
shr bx,1 ;* *2
and bx,01110B ;* 1 or 8 vectors
IFDEF DEBUG
;* * we only have 5 entries
cmp bx,01010B
jae bad_reloc
ENDIF ;DEBUG
call mprt2pfn[bx] ;* do it
;* * Next relocation please
add si,SIZE RLC
pop cx ;* crlcRead
loop RelocLoop
reloc_complete:
mov ax,sp ;* return TRUE
reloc_end: ;* ax = return code
cEnd FRelocSegment
;*****************************************************************************
;* * Fixup Routines :
; Offset fixup chain
cProc RelocOffset,<NEAR, ATOMIC>
cBegin
srsoff1:
mov bx,ax
xchg es:[di],bx
mov di,bx
inc bx
jnz srsoff1
cEnd
; Segment fixup chain
cProc RelocBase,<NEAR, ATOMIC>
cBegin
srsseg1:
mov bx,dx
xchg es:[di],bx
mov di,bx
inc bx
jnz srsseg1
cEnd
; Segment chain fixup Additive
cProc RelocBaseAdditive,<NEAR, ATOMIC>
cBegin
add es:[di],dx
cEnd
; Segment:Offset fixup chain
cProc RelocPtr,<NEAR, ATOMIC>
cBegin
srsptr1:
mov bx,ax
xchg es:[di],bx
mov es:[di+2],dx
mov di,bx
inc bx
jnz srsptr1
cEnd
;*****************************************************************************
sEnd KERNEL
END
| 20.313916
| 78
| 0.619723
|
c18d39c96a537755d628531db8a18fbe3d55818a
| 1,018
|
asm
|
Assembly
|
programs/oeis/188/A188435.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/188/A188435.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/188/A188435.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A188435: Positions of 1 in A188433; complement of A188434.
; 1,3,4,6,7,8,9,11,12,14,15,16,17,19,20,21,22,24,25,27,28,29,30,32,33,35,36,37,38,40,41,42,43,45,46,48,49,50,51,53,54,55,56,58,59,61,62,63,64,66,67,69,70,71,72,74,75,76,77,79,80,82,83,84,85,87,88,90,91,92,93,95,96,97,98,100,101,103,104,105,106,108,109,110,111,113,114,116,117,118,119
mov $16,$0
mov $18,$0
add $18,1
lpb $18,1
mov $0,$16
sub $18,1
sub $0,$18
mov $12,$0
mov $14,2
lpb $14,1
mov $0,$12
sub $0,1
mov $8,$0
mov $10,2
sub $14,1
lpb $10,1
clr $0,8
mov $0,$8
sub $10,1
add $0,$10
sub $0,1
add $2,2
mov $5,$0
div $0,$2
mov $4,$0
add $0,1
div $0,7
sub $0,1
mul $4,$2
sub $4,$0
mov $2,$4
div $2,3
mov $1,$2
add $1,2
add $1,$5
mov $11,$10
lpb $11,1
mov $9,$1
sub $11,1
lpe
lpe
lpb $8,1
mov $8,0
sub $9,$1
lpe
lpe
add $17,$9
lpe
mov $1,$17
| 19.207547
| 283
| 0.486248
|
a01d29bde55ed424619dfe2fdf6c8bf94ca2b1e5
| 2,183
|
asm
|
Assembly
|
programs/oeis/008/A008412.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/008/A008412.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/008/A008412.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A008412: Coordination sequence for 4-dimensional cubic lattice (points on surface of 4-dimensional cross-polytope).
; 1,8,32,88,192,360,608,952,1408,1992,2720,3608,4672,5928,7392,9080,11008,13192,15648,18392,21440,24808,28512,32568,36992,41800,47008,52632,58688,65192,72160,79608,87552,96008,104992,114520,124608,135272,146528,158392,170880,184008,197792,212248,227392,243240,259808,277112,295168,313992,333600,354008,375232,397288,420192,443960,468608,494152,520608,547992,576320,605608,635872,667128,699392,732680,767008,802392,838848,876392,915040,954808,995712,1037768,1080992,1125400,1171008,1217832,1265888,1315192,1365760,1417608,1470752,1525208,1580992,1638120,1696608,1756472,1817728,1880392,1944480,2010008,2076992,2145448,2215392,2286840,2359808,2434312,2510368,2587992,2667200,2748008,2830432,2914488,3000192,3087560,3176608,3267352,3359808,3453992,3549920,3647608,3747072,3848328,3951392,4056280,4163008,4271592,4382048,4494392,4608640,4724808,4842912,4962968,5084992,5209000,5335008,5463032,5593088,5725192,5859360,5995608,6133952,6274408,6416992,6561720,6708608,6857672,7008928,7162392,7318080,7476008,7636192,7798648,7963392,8130440,8299808,8471512,8645568,8821992,9000800,9182008,9365632,9551688,9740192,9931160,10124608,10320552,10519008,10719992,10923520,11129608,11338272,11549528,11763392,11979880,12199008,12420792,12645248,12872392,13102240,13334808,13570112,13808168,14048992,14292600,14539008,14788232,15040288,15295192,15552960,15813608,16077152,16343608,16612992,16885320,17160608,17438872,17720128,18004392,18291680,18582008,18875392,19171848,19471392,19774040,20079808,20388712,20700768,21015992,21334400,21656008,21980832,22308888,22640192,22974760,23312608,23653752,23998208,24345992,24697120,25051608,25409472,25770728,26135392,26503480,26875008,27249992,27628448,28010392,28395840,28784808,29177312,29573368,29972992,30376200,30783008,31193432,31607488,32025192,32446560,32871608,33300352,33732808,34168992,34608920,35052608,35500072,35951328,36406392,36865280,37328008,37794592,38265048,38739392,39217640,39699808,40185912,40675968,41169992
mul $0,2
mov $3,3
lpb $0,1
sub $0,1
mov $1,1
add $3,$0
add $2,$3
lpe
trn $2,2
add $1,$2
add $1,1
| 145.533333
| 1,958
| 0.850206
|
0cd1e9b9383f7732010096f4139e7e4e0a15431c
| 275
|
asm
|
Assembly
|
8088/rip_rom/rip_rom.asm
|
reenigne/reenigne
|
c3eb8b31d7964e78bbe44908987d4be052a74488
|
[
"Unlicense"
] | 92
|
2015-04-10T17:45:11.000Z
|
2022-03-30T17:58:51.000Z
|
8088/rip_rom/rip_rom.asm
|
MS-DOS-stuff/reenigne
|
0a113990aef398550c6f14d1c7a33af1cb091887
|
[
"Unlicense"
] | 2
|
2017-11-05T07:21:35.000Z
|
2018-11-04T23:36:13.000Z
|
8088/rip_rom/rip_rom.asm
|
MS-DOS-stuff/reenigne
|
0a113990aef398550c6f14d1c7a33af1cb091887
|
[
"Unlicense"
] | 18
|
2015-04-11T20:32:44.000Z
|
2021-11-06T05:19:57.000Z
|
%include "../defaults_bin.asm"
mov ax,0xe000
mov ds,ax
mov cx,0
cld
loopTop:
lodsb
cmp al,0
jne notZero
printCharacter
mov al,0
jmp notEOF
notZero:
cmp al,26
jne notEOF
printCharacter 0
mov al,1
notEOF:
printCharacter
loop loopTop
retf
| 11
| 32
| 0.672727
|
d72a61585fbe2c1c9e7c411a2e2e4aeb7481fd4a
| 485
|
asm
|
Assembly
|
programs/oeis/000/A000015.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/000/A000015.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/000/A000015.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A000015: Smallest prime power >= n.
; 1,2,3,4,5,7,7,8,9,11,11,13,13,16,16,16,17,19,19,23,23,23,23,25,25,27,27,29,29,31,31,32,37,37,37,37,37,41,41,41,41,43,43,47,47,47,47,49,49,53,53,53,53,59,59,59,59,59,59,61,61,64,64,64,67,67,67,71,71,71,71,73,73,79,79,79,79,79,79,81,81,83,83,89,89,89,89,89,89,97,97,97,97,97,97,97,97,101,101,101
mov $1,$0
lpb $1
mov $2,$0
add $0,1
seq $2,69513 ; Characteristic function of the prime powers p^k, k >= 1.
add $1,$2
sub $1,1
lpe
add $0,1
| 37.307692
| 295
| 0.635052
|
a093f6e895066ec39ecac81cb2f41c9945f77d97
| 850
|
asm
|
Assembly
|
libsrc/gfx/wide/w_fillb_callee.asm
|
ahjelm/z88dk
|
c4de367f39a76b41f6390ceeab77737e148178fa
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/gfx/wide/w_fillb_callee.asm
|
C-Chads/z88dk
|
a4141a8e51205c6414b4ae3263b633c4265778e6
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/gfx/wide/w_fillb_callee.asm
|
C-Chads/z88dk
|
a4141a8e51205c6414b4ae3263b633c4265778e6
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; void fillb(int tlx, int tly, int width, int height)
IF !__CPU_INTEL__ && !__CPU_GBZ80__
SECTION code_graphics
PUBLIC fillb_callee
PUBLIC _fillb_callee
PUBLIC asm_fillb
EXTERN w_plotpixel
EXTERN w_area
EXTERN swapgfxbk
EXTERN __graphics_end
INCLUDE "graphics/grafix.inc"
.fillb_callee
._fillb_callee
pop af
pop de
pop hl
exx ; w_plotpixel and swapgfxbk must not use the alternate registers, no problem with w_line_r
pop de
pop hl
push af ; ret addr
exx
.asm_fillb
push ix
IF NEED_swapgfxbk = 1
call swapgfxbk
ENDIF
ld ix,w_plotpixel
call w_area
IF NEED_swapgfxbk
jp __graphics_end
ELSE
IF !__CPU_INTEL__ & !__CPU_GBZ80__
pop ix
ENDIF
ret
ENDIF
ENDIF
| 18.085106
| 105
| 0.625882
|
943c8e55d578d67a7454936ff96af573e1259478
| 445
|
asm
|
Assembly
|
programs/oeis/020/A020544.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/020/A020544.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/020/A020544.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A020544: Second Bernoulli polynomial evaluated at x=n! (multiplied by 6).
; 1,1,13,181,3313,85681,3106081,152379361,9753972481,790089189121,79009114867201,9560105293939201,1376655193941350401,232654728224433715201,45600326738788914892801,10260073516337350497792001,2626578820184244778524672001
seq $0,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of permutations of n letters).
bin $0,2
mul $0,12
add $0,1
| 55.625
| 219
| 0.804494
|
b88d4aa717b4b95f29808f726fcece749518e4e9
| 196
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/stdio/c/sdcc_iy/feof_unlocked.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/stdio/c/sdcc_iy/feof_unlocked.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/stdio/c/sdcc_iy/feof_unlocked.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
; int feof_unlocked(FILE *stream)
SECTION code_stdio
PUBLIC _feof_unlocked
EXTERN asm_feof_unlocked
_feof_unlocked:
pop af
pop ix
push hl
push af
jp asm_feof_unlocked
| 10.315789
| 33
| 0.719388
|
ae821afb26228efb6e26ab19efa8709f08426e6e
| 7,166
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_21829_1920.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_21829_1920.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_21829_1920.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 %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x2a3a, %rbx
nop
nop
nop
xor $21030, %rbp
mov (%rbx), %dx
nop
nop
add $10130, %rcx
lea addresses_D_ht+0x2a22, %rsi
lea addresses_normal_ht+0x4ca9, %rdi
cmp $42467, %r12
mov $104, %rcx
rep movsb
nop
and $55576, %rcx
lea addresses_normal_ht+0x18bfe, %rbx
nop
nop
sub $9430, %r12
movl $0x61626364, (%rbx)
nop
nop
nop
add %r12, %r12
lea addresses_normal_ht+0x174c2, %rsi
nop
nop
nop
nop
nop
xor %rcx, %rcx
mov (%rsi), %di
nop
nop
nop
nop
sub $23758, %r12
lea addresses_D_ht+0x18422, %rcx
xor $31818, %rdx
movups (%rcx), %xmm5
vpextrq $1, %xmm5, %rbp
nop
nop
nop
nop
nop
inc %rsi
lea addresses_normal_ht+0x137fa, %rsi
lea addresses_WT_ht+0x173e2, %rdi
nop
nop
nop
nop
and %r8, %r8
mov $28, %rcx
rep movsb
nop
nop
nop
nop
xor %rcx, %rcx
lea addresses_A_ht+0x1a102, %r8
nop
nop
nop
dec %rbp
movl $0x61626364, (%r8)
nop
inc %rcx
lea addresses_UC_ht+0x10790, %rsi
lea addresses_normal_ht+0x19d22, %rdi
xor $5784, %r12
mov $112, %rcx
rep movsl
nop
nop
nop
nop
nop
sub $6503, %r12
lea addresses_normal_ht+0x3d77, %rsi
add $33776, %rbp
mov $0x6162636465666768, %rcx
movq %rcx, (%rsi)
nop
nop
nop
nop
nop
xor $34161, %rsi
lea addresses_WC_ht+0x10e22, %rsi
nop
nop
cmp $19857, %rbx
movb $0x61, (%rsi)
nop
nop
sub %rcx, %rcx
lea addresses_UC_ht+0x9b45, %rcx
nop
nop
nop
nop
cmp %rsi, %rsi
movb $0x61, (%rcx)
nop
and $31678, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r8
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %r15
push %r8
push %rdi
push %rsi
// Store
lea addresses_normal+0x17422, %r8
nop
sub %r11, %r11
mov $0x5152535455565758, %r12
movq %r12, (%r8)
nop
nop
nop
nop
nop
inc %rdi
// Store
lea addresses_normal+0x1462, %r15
nop
nop
nop
inc %r14
movb $0x51, (%r15)
nop
xor %r11, %r11
// Faulty Load
lea addresses_normal+0x17422, %rsi
nop
nop
xor %rdi, %rdi
movb (%rsi), %r15b
lea oracles, %rdi
and $0xff, %r15
shlq $12, %r15
mov (%rdi,%r15,1), %r15
pop %rsi
pop %rdi
pop %r8
pop %r15
pop %r14
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal', 'congruent': 0}}
{'dst': {'same': True, 'NT': False, 'AVXalign': True, 'size': 8, 'type': 'addresses_normal', 'congruent': 0}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal', 'congruent': 1}, 'OP': 'STOR'}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal', 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_D_ht', 'congruent': 2}}
{'dst': {'same': False, 'congruent': 0, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_normal_ht', 'congruent': 2}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_normal_ht', 'congruent': 5}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_D_ht', 'congruent': 11}}
{'dst': {'same': False, 'congruent': 5, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}}
{'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 4, 'type': 'addresses_A_ht', 'congruent': 5}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 5, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal_ht', 'congruent': 0}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC_ht', 'congruent': 7}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 0}, 'OP': 'STOR'}
{'58': 21829}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 35.127451
| 2,999
| 0.658526
|
427e5eb3aca576118227623b4fb2977f5e2b6f5c
| 84
|
asm
|
Assembly
|
test/asm/if-macro.asm
|
orbea/rgbds
|
91889fc14abbf705271bb484e89e349e08f76477
|
[
"MIT"
] | 522
|
2017-02-25T21:10:13.000Z
|
2020-09-13T14:26:18.000Z
|
test/asm/if-macro.asm
|
orbea/rgbds
|
91889fc14abbf705271bb484e89e349e08f76477
|
[
"MIT"
] | 405
|
2017-02-25T21:32:37.000Z
|
2020-09-13T16:43:29.000Z
|
test/asm/if-macro.asm
|
orbea/rgbds
|
91889fc14abbf705271bb484e89e349e08f76477
|
[
"MIT"
] | 84
|
2017-02-25T21:10:26.000Z
|
2020-09-13T14:28:25.000Z
|
m: macro
if 0
WARN "3"
else
WARN "5"
endc
endm
if 1
m
else
WARN "12"
endc
| 6
| 10
| 0.583333
|
654f9c2e3f44037d035dbf4c3d18ef3fdd98672e
| 190
|
asm
|
Assembly
|
sw/552tests/inst_tests/jal_2.asm
|
JPShen-UWM/ThreadKraken
|
849c510531f28e36d3469535737b2120bd774935
|
[
"MIT"
] | 1
|
2022-02-15T16:03:25.000Z
|
2022-02-15T16:03:25.000Z
|
sw/552tests/inst_tests/jal_2.asm
|
JPShen-UWM/ThreadKraken
|
849c510531f28e36d3469535737b2120bd774935
|
[
"MIT"
] | null | null | null |
sw/552tests/inst_tests/jal_2.asm
|
JPShen-UWM/ThreadKraken
|
849c510531f28e36d3469535737b2120bd774935
|
[
"MIT"
] | null | null | null |
// Original test: ./bolanows/hw4/problem6/jal_2.asm
// Author: bolanows
// Test source code follows
//Basically does no jump at all
JAL 0 // Should just increment to the next PC
Nop
Halt
| 17.272727
| 51
| 0.731579
|
e7fe088f54d2741c5b4d513b076e6f28c94ae7ad
| 575
|
asm
|
Assembly
|
oeis/126/A126264.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/126/A126264.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/126/A126264.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A126264: a(n) = 5*n^2 + 3*n.
; 8,26,54,92,140,198,266,344,432,530,638,756,884,1022,1170,1328,1496,1674,1862,2060,2268,2486,2714,2952,3200,3458,3726,4004,4292,4590,4898,5216,5544,5882,6230,6588,6956,7334,7722,8120,8528,8946,9374,9812,10260,10718,11186,11664,12152,12650,13158,13676,14204,14742,15290,15848,16416,16994,17582,18180,18788,19406,20034,20672,21320,21978,22646,23324,24012,24710,25418,26136,26864,27602,28350,29108,29876,30654,31442,32240,33048,33866,34694,35532,36380,37238,38106,38984,39872,40770,41678,42596,43524
mul $0,5
add $0,7
bin $0,2
div $0,5
mul $0,2
| 63.888889
| 497
| 0.768696
|
f3cb04a2b1c646b916a5a973e96fc6fa25d01537
| 565
|
asm
|
Assembly
|
oeis/350/A350389.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/350/A350389.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/350/A350389.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A350389: a(n) is the largest unitary divisor of n that is an exponentially odd number (A268335).
; Submitted by Simon Strandgaard
; 1,2,3,1,5,6,7,8,1,10,11,3,13,14,15,1,17,2,19,5,21,22,23,24,1,26,27,7,29,30,31,32,33,34,35,1,37,38,39,40,41,42,43,11,5,46,47,3,1,2,51,13,53,54,55,56,57,58,59,15,61,62,7,1,65,66,67,17,69,70,71,8,73,74,3,19,77,78,79,5,1,82,83,21,85,86,87,88,89,10,91,23,93,94,95,96,97,2,11,1
lpb $0
mov $2,$0
seq $2,336643 ; Squarefree kernel of n divided by the squarefree part of n: a(n) = rad(n) / core(n).
pow $2,2
div $0,$2
lpe
add $0,1
| 47.083333
| 273
| 0.654867
|
0d4d1817f9c41e25484b3a61347bb48c22a73b83
| 332
|
asm
|
Assembly
|
libsrc/oz/ozmisc/ozinitsound.asm
|
andydansby/z88dk-mk2
|
51c15f1387293809c496f5eaf7b196f8a0e9b66b
|
[
"ClArtistic"
] | 1
|
2020-09-15T08:35:49.000Z
|
2020-09-15T08:35:49.000Z
|
libsrc/oz/ozmisc/ozinitsound.asm
|
andydansby/z88dk-MK2
|
51c15f1387293809c496f5eaf7b196f8a0e9b66b
|
[
"ClArtistic"
] | null | null | null |
libsrc/oz/ozmisc/ozinitsound.asm
|
andydansby/z88dk-MK2
|
51c15f1387293809c496f5eaf7b196f8a0e9b66b
|
[
"ClArtistic"
] | null | null | null |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
;
; void ozinitsound(void)
;
; ------
; $Id: ozinitsound.asm,v 1.1 2003/10/27 17:03:40 stefano Exp $
;
XLIB ozinitsound
ozinitsound:
ld a,1
out (19h),a ; turn tone mode on
ret
| 15.809524
| 62
| 0.605422
|
6305f21b8104ca2252fad46dfdf00d129a78c1e1
| 8,152
|
asm
|
Assembly
|
x86/Pawn.asm
|
lantonov/asm
|
b9ddd4ed9a8c73cbd3600608847769f4690c293c
|
[
"BSD-3-Clause"
] | 150
|
2016-11-26T05:41:31.000Z
|
2022-02-09T20:54:53.000Z
|
x86/Pawn.asm
|
lantonov/asm
|
b9ddd4ed9a8c73cbd3600608847769f4690c293c
|
[
"BSD-3-Clause"
] | 199
|
2016-12-07T22:13:00.000Z
|
2022-03-22T15:42:18.000Z
|
x86/Pawn.asm
|
lantonov/asm
|
b9ddd4ed9a8c73cbd3600608847769f4690c293c
|
[
"BSD-3-Clause"
] | 95
|
2016-11-24T22:57:13.000Z
|
2022-01-24T19:42:10.000Z
|
macro EvalPawns Us
; in rbp address of Pos struct
; rdi address of pawn table entry
; out esi score
local Them, Up, Right, Left
local Isolated, Backward, Doubled
local NextPiece, AllDone, Done, WritePawnSpan
local Neighbours_True, Neighbours_True__Lever_False
local Neighbours_True__Lever_False__RelRank_small, Neighbours_False
local Neighbours_True__Lever_True, Neighbours_True__Lever_False__RelRank_big
local Continue, NoPassed, PopLoop
if Us = White
Them = Black
Up = DELTA_N
Right = DELTA_NE
Left = DELTA_NW
else
Them = White
Up = DELTA_S
Right = DELTA_SW
Left = DELTA_SE
end if
Isolated = (5 shl 16) + (15)
Backward = (9 shl 16) + (24)
Doubled = (11 shl 16) + (56)
xor eax, eax
mov qword[rdi+PawnEntry.passedPawns+8*Us], rax
mov qword[rdi+PawnEntry.pawnAttacksSpan+8*Us], rax
mov byte[rdi+PawnEntry.kingSquares+Us], 64
mov byte[rdi+PawnEntry.semiopenFiles+Us], 0xFF
mov r15, qword[rbp+Pos.typeBB+8*Pawn]
mov r14, r15
and r14, qword[rbp+Pos.typeBB+8*Them]
and r15, qword[rbp+Pos.typeBB+8*Us]
mov r13, r15
; r14 = their pawns
; r13 = our pawns = r15
mov rax, r15
ShiftBB Right, rax, rcx
mov rdx, r15
ShiftBB Left, rdx, rcx
or rax, rdx
mov qword[rdi+PawnEntry.pawnAttacks+8*Us], rax
mov rax, LightSquares
and rax, r15
_popcnt rax, rax, rcx
mov rdx, DarkSquares
and rdx, r15
_popcnt rdx, rdx, rcx
mov byte[rdi+PawnEntry.pawnsOnSquares+2*Us+White], al
mov byte[rdi+PawnEntry.pawnsOnSquares+2*Us+Black], dl
xor esi, esi
; esi = score
test r15, r15
jz AllDone
lea r15, [rbp+Pos.pieceList+16*(8*Us+Pawn)]
movzx ecx, byte[rbp+Pos.pieceList+16*(8*Us+Pawn)]
NextPiece:
add r15, 1
mov edx, ecx
and edx, 7
mov r12d, ecx
shr r12d, 3
mov rbx, qword[RankBB+8*r12]
if Us eq Black
xor r12d, 7
end if
; ecx = s, edx = f, r12d = relative_rank(Us, s)
movzx eax, byte[rdi+PawnEntry.semiopenFiles+Us]
btr eax, edx
mov byte[rdi+PawnEntry.semiopenFiles+Us], al
mov rax, [PawnAttackSpan+8*(64*Us+rcx)]
or qword[rdi+PawnEntry.pawnAttacksSpan+8*Us], rax
mov r11, r14
and r11, qword[ForwardBB+8*(64*Us+rcx)]
neg r11
sbb r11d, r11d
; r11d = opposed
mov rdx, qword[AdjacentFilesBB+8*rdx]
; rdx = adjacent_files_bb(f)
mov r10, qword[PassedPawnMask+8*(64*Us+rcx)]
and r10, r14
push r10
; r10 = stoppers
mov r8d, ecx
shr r8d, 3
mov r8, qword[RankBB+8*r8-Up]
mov r9, r13
and r9, rdx
; r9 = neighbours
and r8, r9
; r8 = supported
and rbx, r9
; rbx = phalanx
lea eax, [rcx-Up]
bt r13, rax
mov rax, r8 ; dirty trick relies on fact
sbb rax, 0 ; that r8>0 as signed qword
lea eax, [rsi-Doubled]
cmovs esi, eax
; doubled is taken care of
mov rax, qword[PawnAttacks+8*(64*Us+rcx)]
test r9, r9
jz Neighbours_False
Neighbours_True__Lever_False__RelRank_small:
mov rdx, [PawnAttackSpan+8*(64*Them+rcx+Up)]
and rdx, r13 ; & ourPawns
; logical NOT (!)
; (rdx == 0)? 1 : 0
; logical NOT (!) ; [Latency, Reciprocal Throughput]
xor r9, r9 ; [1, .25]
mov rax, 1 ; [0, .25]
test rdx, rdx ; [1, .25]
cmovz rdx, rax ; [2, .50]
cmovnz rdx, r9 ; [1, .50]
; --------
; rdx = !A ; Total: [5, 1.75 clock-cycles/instruction]
; Alternate form of logical NOT (!)
; (rdx == 0)? 1 : 0
; - Slightly less efficient, but has less dependencies
; - Use this when available registers are scarce
; neg rdx ; [6, 1]
; sbb rdx, rdx ; [2, 1]
; add rdx, 1 ; [1, .25]
; --------
; rdx = !A ; Total: [9, 2.25 clock-cycles/instruction]
; Prepare for logical AND (&&)
mov eax, ecx
lea rax, [rcx+Up]
shr rax, 3
mov r9, qword[RankBB+8*rax]
lea rax, [rcx+Up]
and rax, 7
mov rax, qword[FileBB+8*rax]
and rax, r9
mov r9, qword[PawnAttacks+8*(64*Us+rcx+Up)]
and r9, r14
or r9, rax
and r9, r10
; logical AND (&&)
xor rax, rax
; r9 is already here
test rdx, rdx
setne al
xor rdx, rdx
test r9, r9
setne dl
and edx, eax
; edx = !A && B
mov eax, -Backward
cmovnz edx, eax
; edx = backwards ? Backward[opposed] : 0
lea eax, [r11 + 1]
cmovnz r10d, eax
jmp Continue
Neighbours_False:
mov edx, -Isolated
lea r10d, [r11 + 1]
Continue:
_popcnt rax, r8, r9
_popcnt r9, rbx, rbx
neg r11d
neg rbx
adc r11d, r11d
lea r11d, [3*r11]
add r11d, eax
lea r11d, [8*r11+r12]
; r11 = [opposed][!!phalanx][popcount(supported)][relative_rank(Us, s)]
or rbx, r8
cmovnz edx, dword[Connected+4*r11]
jnz @1f
if Us = Black
shl r10d, 4*Us
end if
add byte[rdi+PawnEntry.weakUnopposed], r10l
@1:
add esi, edx
; r8 = supported
; r9 = popcnt(phalanx)
; rax = popcnt(supported)
pop r10
; r10 = stoppers
mov r11, qword[PawnAttacks+8*(64*Us+rcx)]
and r11, r14
; r11 = lever
mov rdx, qword[PawnAttacks+8*(64*Us+rcx+Up)]
and rdx, r14
; rdx = leverPush
mov r12, r10
xor r10, r11
xor r10, rdx
jnz NoPassed
_popcnt r11, r11, r10
_popcnt rdx, rdx, r10
add rax, 1
sub rax, r11
sub r9, rdx
or rax, r9
js NoPassed ; branch if the upper-most bit of rax is set
; (i.e. did we produce a negative number from either "sub"?)
mov eax, 1
shl rax, cl
or qword[rdi+PawnEntry.passedPawns+8*Us], rax
; edx is either 0, or 1 and will be added to byte[rdi + PawnEntry.asymmetry]
mov edx, 1
jmp Done
NoPassed:
lea eax, [rcx+Up]
xor edx, edx
btc r12, rax
if Us eq White
shl r8, 8
cmp ecx, SQ_A5
jb Done
else
shr r8, 8
cmp ecx, SQ_A5
jae Done
end if
test r12, r12
jnz Done
_andn r8, r14, r8
jz Done
PopLoop:
_tzcnt r9, r8
xor eax, eax
mov r9, qword[PawnAttacks+8*(64*Us+r9)]
and r9, r14
_blsr r11, r9
setz al
or edx, eax
shl rax, cl
or qword[rdi+PawnEntry.passedPawns+8*Us], rax
_blsr r8, r8, rax
jnz PopLoop
Done:
add byte[rdi + PawnEntry.asymmetry], dl
movzx ecx, byte[r15]
cmp ecx, 64
jb NextPiece
AllDone:
end macro
| 31.474903
| 89
| 0.467983
|
2744491a1983085bd0e8c4d83f50fa9d2e972086
| 1,812
|
asm
|
Assembly
|
source/function/pointer.asm
|
mega65dev/rom-assembler
|
1670a56a8246dcdcc18e83b345d577eba686cf32
|
[
"MIT"
] | null | null | null |
source/function/pointer.asm
|
mega65dev/rom-assembler
|
1670a56a8246dcdcc18e83b345d577eba686cf32
|
[
"MIT"
] | null | null | null |
source/function/pointer.asm
|
mega65dev/rom-assembler
|
1670a56a8246dcdcc18e83b345d577eba686cf32
|
[
"MIT"
] | null | null | null |
; ********************************************************************************************
; ********************************************************************************************
;
; Name : pointer.asm
; Purpose : ..
; Created : 15th Nov 1991
; Updated : 4th Jan 2021
; Authors : Fred Bowen
;
; ********************************************************************************************
; ********************************************************************************************
;******************************************************************
;
; POINTER(var_name) - Return address of descriptor for var_name
;
;******************************************************************
pointer jsr chrget ; skip over escape token
jsr chkopn ; test for open paren
jsr isletc ; test if character follows parens
+lbcc snerr ; ...syntax error if not.
jsr ptrget ; look for this varname in table
pointer_ret =*-1
tax
phy
jsr chkcls ; look for closing paren
txa
tay
pla
cmp #>zero ; is this a dummy pointer?
bne l147_1
lda #0 ; if so, return 0
tay
l147_1 +lbra nosflt
;.end
; ********************************************************************************************
;
; Date Changes
; ==== =======
;
; ********************************************************************************************
| 37.75
| 94
| 0.230132
|
f06a5bf993e882a452f76b8555fa790e26df2dcd
| 696
|
asm
|
Assembly
|
oeis/099/A099237.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/099/A099237.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/099/A099237.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A099237: a(n) = Sum_{k=0..n} binomial(n*(n-k), k).
; Submitted by Jamie Morken(w2)
; 1,1,3,10,45,251,1624,11908,97545,880660,8664546,92096731,1050304775,12778138842,165033693175,2253204163256,32401745953105,489207829112931,7733130368443057,127664099576228184,2196149923000824756,39288005888532450302,729576586543010269779,14040236931043392405374,279584209162195848057725,5752835793083386437868126,122159398556530893415442274,2673832647954024093705186907,60259921622984613612016787280,1396909162869930745253414932745,33276795218401392415544545399352,813887162571861498381272575607600
mov $2,$0
lpb $0
sub $0,1
mov $3,$2
mul $3,$0
add $4,1
bin $3,$4
add $1,$3
lpe
mov $0,$1
add $0,1
| 43.5
| 499
| 0.818966
|
98c30a957ca94f3241a04b857cd3bf1ed36938e8
| 646
|
asm
|
Assembly
|
tests/_g_01/_g_01.asm
|
RL-Bin/RLBin
|
621305a1c8149728e8b5d6ded75dbd81e00d7037
|
[
"BSD-3-Clause"
] | null | null | null |
tests/_g_01/_g_01.asm
|
RL-Bin/RLBin
|
621305a1c8149728e8b5d6ded75dbd81e00d7037
|
[
"BSD-3-Clause"
] | null | null | null |
tests/_g_01/_g_01.asm
|
RL-Bin/RLBin
|
621305a1c8149728e8b5d6ded75dbd81e00d7037
|
[
"BSD-3-Clause"
] | null | null | null |
global _main
extern _printf ; Uncomment under Windows
section .data
fmtStr: db 'hello, world',0xA,0
section .text
_main:
push 5
loop1:
sub esp, 4 ; Allocate space on the stack for one 4 byte parameter
lea eax, [fmtStr]
mov [esp], eax ; Arg1: pointer to format string
call _printf ; Call printf(3):
; int printf(const char *format, ...);
add esp, 4 ; Pop stack once
pop ecx
dec ecx
push ecx
jne loop1
pop ecx
ret
| 20.83871
| 86
| 0.465944
|
375e3a241a5311e24e24b43ee09eb0425b9e6671
| 777
|
asm
|
Assembly
|
oeis/119/A119786.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/119/A119786.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/119/A119786.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A119786: Numerator of the product of the n-th triangular number and the n-th harmonic number.
; Submitted by Jon Maiga
; 1,9,11,125,137,1029,363,6849,7129,81191,83711,1118273,1145993,1171733,1195757,41421503,42142223,813635157,275295799,279175675,56574159,439143531,1332950097,33695573875,34052522467,309561680403,312536252003,9146733078187,9227046511387,288445167734557,290774257297357,586061125622639,590436990861839,54062195834749,54437269998109,2027671241084233,2040798836801833,2053580969474233,2066035355155033,85205313628946333,85691034670497533,3705103209789840719,5853599356775405587,5884182435213075787
add $0,1
mov $2,1
mov $3,$0
lpb $3
mul $1,$3
add $4,1
mul $2,$4
add $1,$2
sub $3,1
add $0,$3
mov $4,$3
lpe
mul $1,$0
gcd $2,$1
div $1,$2
mov $0,$1
| 37
| 493
| 0.796654
|
8bebe3933795a242fed0dfc632609ba8b1dc4bce
| 17,422
|
asm
|
Assembly
|
Project_Metronome/Code/16F648A_MetroKnomeV17.asm
|
Brian1273/ECE_411
|
788233d1740659cce4746cd2b96feb9af299b34e
|
[
"MIT"
] | 1
|
2016-11-23T23:54:00.000Z
|
2016-11-23T23:54:00.000Z
|
Project_Metronome/Code/16F648A_MetroKnomeV17.asm
|
Brian1273/ECE_411
|
788233d1740659cce4746cd2b96feb9af299b34e
|
[
"MIT"
] | null | null | null |
Project_Metronome/Code/16F648A_MetroKnomeV17.asm
|
Brian1273/ECE_411
|
788233d1740659cce4746cd2b96feb9af299b34e
|
[
"MIT"
] | null | null | null |
;********************************************************************************
; DOES IT WORK? WORKS, BUT, ... SEE VERSION 15 FOR WORKING CODE
; FILENAME: METROKNOME
; VERSION: 17
; DATE: 01DEC2016
; FILE SAVED AS: 16F648A_MetroKnomeV17.asm
; MICROCONTROLLER: PIC16F648A
; CLOCK FREQUENCY: 32.768kHz using an off-board oscillator for battery life
;********************************************************************************
; FILES REQUIRED: p16f648a.inc
;********************************************************************************
; PROGRAM FUNCTION:
; It's a minimalist metronome, two lights, a buzzer, control knob, and on/off button
; adjustable alterating led illumination and piezo sound to accompany each flash
; rate adjustable from about 30-256 bpm in rock time. STARTS AT 60 BPM
;********************************************************************************
; NOTES: TRYING TO GET RID OF THE DELAY LOOP IN FAVOR OF TIMER2 PWM PIEZO
; WORKS THE FREQUENCY AND DUTY CYCLE OF TIMER2 NEEDS TO BE DETERMINED.
; RA0 SOURCE GREEN LED OUTPUT
; RA1 SOURCE RED LED OUTPUT
; RA2 SOURCE BJT RELAY CONTROLLING POWER TO THE OPAMP AND PIEZO OUTPUT
; RB0 BUTTON INPUT
; RB3 PIEZO BUZZER SOUND WAVE OUTPUT
; RB4 ROTARY ENCODER INPUT
; RB5 ROTARY ENCODER INPUT
;
;
;SOMEHOW THE ORDER OF SETUP INSTRUCTIONS INTCON FIRST THEN OPTION_REG MATTERS
;IT WORKS AS THIS IS WRITTEN
;I WANT TO KNOW WHY WHY WHY!!!!!!!!!!!!!!!
;
; ? RA4 can only sink power (no led sourcing?)
;
;********************************************************************************
; AUTHOR: KAM ROBERTSON
; COMPANY: ACORN ENERGY LLC
;********************************************************************************
;********************************************************************************
;********************************************************************************
; HOUSEKEEPING
list p = 16f648a ; list directive to define processor
include C:\Program Files (x86)\Microchip\MPASM Suite\p16f648a.inc
__CONFIG _CP_OFF & _CPD_OFF & _LVP_OFF & _BOREN_OFF & _MCLRE_ON & _PWRTE_ON & _WDT_OFF & _LP_OSC
; PIC15F648A internal 4mhz oscillator
; '__CONFIG' directive is used to embed configuration word within .asm file
;================================================================================
; DECLARATIONS cpu equates (memory map)
porta EQU 0x05 ; assigns the memory location of register PORTA to porta for use in code
; literals assigned with EQU cannot be changed elswhere in code
; creates an un-changable pointer and allows use of lower case porta
portb EQU 0x06 ; allows use of lower case PORTB
;
; DECLARATIONS bit equates
num0 EQU 0x20 ; "num0" is a pointer to register 32
num1 EQU 0x21 ; "num1" is a pointer to register 33
num2 EQU 0x22 ; "num2" is a pointer to register 34
work EQU 0x23 ; interrupt service temporarilly stores working register here
stat EQU 0x24 ; interrupt service temporarilly stores status register here
speed EQU 0x25 ; use for timer inc/dec that is used to run the led's and piezo buzzer
d1 equ 0x26 ; determines time spent in the delay loop
duty1 equ 0x27 ; used for pwm prescaler
duty2 equ 0x28 ; used for pwm prescaler
ledstate equ 0x29 ; led ledstate green-set or red-clear
mute equ 0x2A ; allows sound to be muted or not every other on/off cycle
roten equ 0x2B ; quadrature
tone1 equ 0x2C ; quadrature
past equ 0x2D ; quadrature
present equ 0x2E ; quadrature
time equ 0x2F ; used to set the beat tone sent to the piezo. increments every light cycle
beatstate equ 0x30 ; use logic shift and bit test to set the beat time beatstate: mute, 4/4, 2/4, 2/3, 3/4. 6/4
d2 equ 0x31 ; determine time spent in the delay loop
;================================================================================
; PROGRAM STARTS BELOW
ORG 0x000
GOTO start ; go to the start
ORG 0x004 ; interrupt service vector at memory location 0x004 it goes here automatically when intcon bit-1 is set
GOTO intserv ; go to the interrupt service function
start
CALL initializer ; CALL the function "initializer"
goto main
;
;
main
; goto fourfour
;
btfsc beatstate, 0
goto zerofour
;
btfsc beatstate, 1
goto mutefour
;
btfsc beatstate, 2
goto fourfour
;
btfsc beatstate, 3
goto twofour
;
btfsc beatstate, 4
goto threefour
;
btfsc beatstate, 5
goto twothree
;
btfsc beatstate, 6
goto sixfour
;
zerofour
BCF PORTA, 2
SLEEP
goto main
;
;
mutefour
redmute
BTFSS ledstate, 7
GOTO redmute
call redledmute
greenmute
BTFSC ledstate, 7
GOTO greenmute
call greenledmute
goto main
;
;
fourfour
fourred
BTFSS ledstate, 7
GOTO fourred
CALL redled
fourgreen
BTFSC ledstate, 7
GOTO fourgreen
CALL greenled
GOTO main
;
;
twofour
twored
BTFSS ledstate, 7
GOTO twored
call redled
twogreen
BTFSC ledstate, 7
GOTO twogreen
call greenledbeat
goto main
;
;
;
;
;
;
;
;
;
;
;
twothree
two3red
BTFSS ledstate, 7
GOTO two3red
call redledbeat
two3green
BTFSC ledstate, 7
GOTO two3green
call greenledbeat
goto main
;
;
threefour
threered
BTFSS ledstate, 7
GOTO threered
call redled
threegreen
BTFSC ledstate, 7
GOTO threegreen
call greenled
goto main
;
;
sixfour
sixred
BTFSS ledstate, 7
GOTO sixred
call redled
sixgreen
BTFSC ledstate, 7
GOTO sixgreen
call greenled
goto main
;
;
GOTO main ; loops back to main (it's a catcher)
;
;
;================================================================================
; SUBROUTINES AND FUNCTIONS
initializer ; first set numbers into the equate register declarations
MOVLW 0x05
MOVWF d1
;
MOVLW 0x07
MOVWF d2
;
MOVLW 0x02
MOVWF duty1
;
MOVLW 0x02
MOVWF duty2
;
; MOVLW 0x20 ; does not appear to work on PR2 in bank1
; MOVWF tone1 ; does not appear to work on PR2 in bank1
;
MOVLW 0xC0
MOVWF speed
;
MOVLW 0x00
MOVWF ledstate
MOVWF work
MOVWF stat
MOVWF roten
MOVWF mute
MOVWF past
MOVWF present
;
MOVLW 0x01
MOVWF beatstate
BCF STATUS, 0 ; CLEAR THE CARRY FLAG
;
; setting PORTA as an output. P.16,22 16F648A datasheet. WORKS!
; SET-UP THE INTERRUPT
CLRF PORTA ; set all of porta to ground before making it an output with the trisa register
MOVLW 0x07 ; Turn comparators off and
MOVWF CMCON ; enable pins for I/O functions
;
CLRF PORTB ; clear portb... safe it off
;
BCF STATUS, 7 ; 3 PART BANK CHANGE BANK_1
BCF STATUS, 6 ; set a one at bit-5 position in the status register... select bank1 PAGE24
BSF STATUS, 5 ; set a one at bit-5 position in the status register... select bank1 PAGE24
;
BSF STATUS, 4 ; SET UP THE SLEEP FUNCTION PAGE24
BCF STATUS, 3 ; SET UP THE SLEEP FUNCTION PAGE24
;
MOVLW 0x000 ; set bits/literal that will make RA pins an output into working registeroutputs
MOVWF TRISA ; change default input status of RA pins to output using TRISA register in bank1
;
MOVLW 0x31 ; move literal to working register. use to make portb an input for the interrupt
MOVWF TRISB ; make some of portb (RB0/INT) an input. hook it up to a button and debounce the button
;
BCF OPTION_REG, 7 ; enable weak pull ups in option register. (open button=5volts, depressed button is to ground) don't need this
BSF OPTION_REG, 6 ; interrupt triggers on the FALLING EDGE CLEAR THE BIT (option register PAGE 25)
BCF OPTION_REG, 5 ; TIMER-ZERO MODE (PAGE 25)
BSF OPTION_REG, 4 ; HMMMMM DUNNO
BCF OPTION_REG, 3 ; TIMER-ZERO PRESCALER ASSIGNED TO TIMER PAGE25
BSF OPTION_REG, 2 ; TIMER-ZERO PRESCALE DIVISOR PAGE25
BCF OPTION_REG, 1 ; TIMER-ZERO PRESCALE DIVISOR PAGE25
BSF OPTION_REG, 0 ; TIMER-ZERO PRESCALE DIVISOR PAGE25
;
; bcf PIE1, 1 ; DISABLE TIMER TWO INTERRUPT
; movf tone1, 0 ; SET THE TONE OF THE PWM TO THE PIEZO. this won't work tone1 is in bank0 PR2 is in bank1
; BSF STATUS, 5 ; set a one at bit-5 position in the status register... select bank1 PAGE24
movlw 0x03
movwf PR2 ; SET THE TONE OF THE PWM TO THE PIEZO
; BCF STATUS, 5 ; set a one at bit-5 position in the status register... select bank1 PAGE24
;
BCF STATUS, 7 ; set status to bank0
BCF STATUS, 6 ; set a one at bit-5 position in the status register... select bank1 PAGE24
BCF STATUS, 5 ; 3 PART BANK CHANGE RETURN TO BANK ZERO
;
BSF PORTA, 2 ; SOURCE op-amp-relay at pin RA2, turn on power to speaker amplifier
MOVF speed, 0
MOVWF TMR0 ; write a number to the timer zero register for scaling the led metronome blink timing
;
MOVF duty1, 0 ; SET THE DUTY CYCLE OF THE PWM TO THE PIEZO
MOVWF CCPR1L ; SET THE DUTY CYCLE OF THE PWM TO THE PIEZO msb of timer two
BCF CCP1CON, 5 ; lsb of timer two
BCF CCP1CON, 4 ; lsb of timer two
BSF CCP1CON, 3
BSF CCP1CON, 2
BSF CCP1CON, 1
BSF CCP1CON, 0
BSF T2CON, 2 ; set means timer two is on
BCF T2CON, 1 ; timer two prescaler
BCF T2CON, 0 ; timer two prescaler page55
bcf PIR1, 1 ; clear unused timer two flag
;
BSF INTCON, 7 ; enable global interrupt in the interrupt control register
BCF INTCON, 6 ; enable PERIPHERAL interrupt in the interrupt control register
BSF INTCON, 5 ; TOIE TIMER-ZERO INTERRUPT ENABLE PAGE26
BSF INTCON, 4 ; enable external interrupt in the interrupt control register
BSF INTCON, 3 ; enable RBx interrupt-on-change in the interrupt control register
BCF INTCON, 2 ; TOIF TIMER-ZERO INTERRUPT FLAG PAGE26
BCF INTCON, 1 ; clear interrupt holder bit in the interrupt control register interrupt pin RB0
BCF INTCON, 0 ; clear interrupt holder bit in the interrupt control register interrupt-on-change RBx pins
;
RETURN ; midline chips. back from whence you came.
;
;
;
;
redledmute
MOVF d1, 0 ; moves literal number into working register passing this literal to the function delay
BCF PORTA, 2 ; SOURCE op-amp-relay at pin RA2, turn on power to speaker amplifier
BSF PORTA, 1 ; SOURCE RED LED at pin RA1, use bit-number for bit-position(3,2,1,0)
CALL delay ; CALL the function "delay"
BCF PORTA, 1 ; SINK RED LED at pin RA1, use bit-number for bit-position(3,2,1,0)
return
greenledmute
MOVF d1, 0 ; moves literal number into working register passing this literal to the function delay
BCF PORTA, 2 ; SOURCE op-amp-relay at pin RA2, turn on power to speaker amplifier
BSF PORTA, 0 ; SOURCE GREEN LED at pin RA0, use bit-number for bit-position(3,2,1,0)
CALL delay ; CALL the function "delay"
BCF PORTA, 0 ; SINK GREEN LED at pin RA0 (3,2,1,0 bit position)
return
;
;
redled
MOVF d1, 0 ; moves literal number into working register passing this literal to the function delay
BSF PORTA, 2 ; SOURCE op-amp-relay at pin RA2, turn on power to speaker amplifier
BSF PORTA, 1 ; SOURCE RED LED at pin RA1, use bit-number for bit-position(3,2,1,0)
CALL delay ; CALL the function "delay"
BCF PORTA, 1 ; SINK RED LED at pin RA1, use bit-number for bit-position(3,2,1,0)
BCF PORTA, 2 ; SOURCE op-amp-relay at pin RA2, turn on power to speaker amplifier
return
greenled
MOVF d1, 0 ; moves literal number into working register passing this literal to the function delay
BSF PORTA, 2 ; SOURCE op-amp-relay at pin RA2, turn on power to speaker amplifier
BSF PORTA, 0 ; SOURCE GREEN LED at pin RA0, use bit-number for bit-position(3,2,1,0)
CALL delay ; CALL the function "delay"
BCF PORTA, 0 ; SINK GREEN LED at pin RA0 (3,2,1,0 bit position)
BCF PORTA, 2 ; SOURCE op-amp-relay at pin RA2, turn on power to speaker amplifier
return
;
;
redledbeat
MOVF d1, 0 ; moves literal number into working register passing this literal to the function delay
BSF PORTA, 2 ; SOURCE op-amp-relay at pin RA2, turn on power to speaker amplifier
BSF PORTA, 1 ; SOURCE RED LED at pin RA1, use bit-number for bit-position(3,2,1,0)
CALL delay ; CALL the function "delay"
BCF PORTA, 1 ; SINK RED LED at pin RA1, use bit-number for bit-position(3,2,1,0)
BCF PORTA, 2 ; SOURCE op-amp-relay at pin RA2, turn on power to speaker amplifier
return
greenledbeat
BCF STATUS, 5 ; set a one at bit-5 position in the status register... select bank1 PAGE24
MOVF d1, 0 ; moves literal number into working register passing this literal to the function delay
BSF PORTA, 2 ; SOURCE op-amp-relay at pin RA2, turn on power to speaker amplifier
BSF PORTA, 0 ; SOURCE GREEN LED at pin RA0, use bit-number for bit-position(3,2,1,0)
CALL delay ; CALL the function "delay"
BCF PORTA, 0 ; SINK GREEN LED at pin RA0 (3,2,1,0 bit position)
BCF PORTA, 2 ; SOURCE op-amp-relay at pin RA2, turn on power to speaker amplifier
BCF CCP1CON, 5 ; lsb of timer two
BCF CCP1CON, 4 ; lsb of timer two
return
;
;
delay ; 8-bit system so... setting counters to zero gives 256 bits/decrements
; uses literal number in working register to determine how many passes through the d_loop
MOVWF num2 ; pass value from working register into delay counter at R34
MOVWF num1 ; pass value from working register into delay counter at R33
; MOVWF num0 ; pass value from working register into delay counter at R32
d_loop
DECFSZ num2, f ; decrements delay counter by one then skips next step if count1_register-nine ontains zero
GOTO d_loop ; returns to d_loop if R9 contains any ones
MOVWF num2 ; prepares for next use by setting R9 back to zero
;
DECFSZ num1, f ; decrements delay counter by one then skips next step if count2_register-eight contains a zero
GOTO d_loop ; returns to d_loop if R8 contains any ones
MOVWF num1 ; prepares for next use by setting R8 back to zero
;
; DECFSZ num0, f ; decrements delay counter by one then skips next step if count0_register-seven contains a zero
; GOTO d_loop ; returns to d_loop if R7 contains any ones
RETURN ; the larger command set on midline chips supports the "return" command. It is more appropriate here
;
;
intserv ; hey service this interrupt. save those registers, do stuff, bring those registers back. YAY!!!
MOVWF work ; save current working register in memory
SWAPF STATUS, 0 ; d=destination working register. get current status without changing flags
MOVWF stat ; store current status register in memory
;
BTFSC INTCON, 0 ; TEST TO SEE IF INTERRUPT CAME FROM THE BUTTON AT RB0/INT
goto rotencoder
;
BTFSC INTCON, 1 ; TEST TO SEE IF INTERRUPT CAME FROM THE BUTTON AT RB0/INT
goto button
;
BTFSC INTCON, 2 ; CHECK THE TIMER ZERO FLAG
GOTO led
;
GOTO intexit ; who knows where the interrupt came from. let's get outa dodge.
;
;
; ROTARY ENCODER is designed/built/set NORMALLY HIGH with momentary-debounced-out-of-phase LOW SWITCHING.
rotencoder
MOVF PORTB, 0
MOVWF roten
MOVLW 0x030 ; mask that allows only the portb pins four and five to show
ANDWF roten, 1 ; mask that allows only the portb pins four and five to show
RLF past, 1
MOVF roten, 0
XORWF past, 1
BTFSS past, 5
GOTO decrement
GOTO increment
increment
MOVWF past
MOVLW 0x01
ADDWF speed, 1
BCF INTCON, 0 ; clear interrupt holder bit in the interrupt control register INTERRUPT-ON-CHANGE
GOTO intexit
decrement
MOVWF past
MOVLW 0x01
SUBWF speed, 1
BCF INTCON, 0 ; clear interrupt holder bit in the interrupt control register INTERRUPT-ON-CHANGE
GOTO intexit
;
;
button ; puts ucon to sleep and controls mute function
RLF beatstate
BTFSC beatstate, 3
goto buttondeax
BCF INTCON, 1 ; clear interrupt holder bit in the interrupt control register
GOTO intexit
buttondeax
movlw 0x01
movwf beatstate
bcf INTCON, 1
goto intexit
;
;
led ; timer zero overflow interrupt changes the led ledstate.... makes them flash then alternate with timer
INCF time, 1 ; increment 'time' register every light cycle and use to set the beat tone sent ot the piezo buzzer
COMF ledstate, 1
MOVF speed, 0
MOVWF TMR0 ; write a number to the timer zero register for scaling
BCF INTCON, 2 ; TOIF TIMER-ZERO INTERRUPT FLAG PAGE26
GOTO intexit
;
;
intexit
SWAPF stat, 0 ; d=destination working register
MOVWF STATUS ; puts working register into status register... back to what it was
SWAPF work, 1 ; d=destination file register... twist, no holder change.
SWAPF work, 0 ; d=destination working register... untwist and back to what it was. no holder change
RETFIE ; back from whence you came and as you were.
;
;
;================================================================================
END
;================================================================================
| 37.147122
| 135
| 0.645333
|
3ee9539bcdaa02ec151b9b501e550ca6a61a035e
| 814
|
asm
|
Assembly
|
AssemblyLanguage/CS/exp2-2.asm
|
luocr7/NCEPU-CS-COURSES
|
355698601f247a2031c8b8afeb661c4cb951a135
|
[
"Apache-2.0"
] | 30
|
2019-06-22T01:25:14.000Z
|
2021-12-16T07:24:50.000Z
|
AssemblyLanguage/CS/exp2-2.asm
|
luocr7/NCEPU-CS-COURSES
|
355698601f247a2031c8b8afeb661c4cb951a135
|
[
"Apache-2.0"
] | 4
|
2020-09-18T04:39:03.000Z
|
2022-03-25T02:14:33.000Z
|
AssemblyLanguage/CS/exp2-2.asm
|
luocr7/NCEPU-CS-COURSES
|
355698601f247a2031c8b8afeb661c4cb951a135
|
[
"Apache-2.0"
] | 14
|
2019-06-29T07:06:59.000Z
|
2020-12-21T14:41:03.000Z
|
;x,y,z,v是数据段定义的16位有符号数,试写出计算下面表达式的指令序列。
;(v-(x*y+z-540))/x
DATAS SEGMENT
V DW 0001H
X DW 0002H
Y DW 0003H
Z DW 0004H
DATAS ENDS
STACKS SEGMENT
STACKS ENDS
CODES SEGMENT
ASSUME CS:CODES, DS:DATAS, SS:STACKS
START:
MOV AX, DATAS
MOV DS, AX
;HERE WRITE YOUR OWN CODES
MOV AX, X
IMUL Y ;有符号数乘法,y是source code,AX中的数是destination code
MOV CX, AX ;store product in BX CX
MOV BX, DX ; DX是默认扩展位,进位就在dx当中
MOV AX, Z
CWD ; 将ax扩展为32位dx.ax
ADD CX, AX
ADC BX, DX ;两个高位相加,先加进位cf再加dx
SUB CX, 540H
SBB BX, 0H ;SBB 和 ADC 分别看借位和进位
;目前x*y+z-540 存储在BX.CX中
MOV AX, V
CWD ;扩展
SUB AX, CX ;地位相减
SBB DX, BX ;高位相减以及处理借位
IDIV X ;商在ax中,余数在dx中
;ABOVE WRITE YOUR OWN CODES
MOV AH, 4CH
INT 21H
CODES ENDS
END START
| 17.695652
| 56
| 0.620393
|
6fc604e6eec1a678d3a6ba8466c73472d48d937f
| 74
|
asm
|
Assembly
|
tests/integrations/cmake_asm_and_cpp/random.asm
|
zielinskit/kolejka-judge
|
571df05b12c5a4748d7a2ca4c217b0042acf6b48
|
[
"MIT"
] | 2
|
2020-10-29T11:00:03.000Z
|
2021-03-08T19:27:58.000Z
|
tests/integrations/cmake_asm_and_cpp/random.asm
|
zielinskit/kolejka-judge
|
571df05b12c5a4748d7a2ca4c217b0042acf6b48
|
[
"MIT"
] | 1
|
2021-09-01T08:10:35.000Z
|
2021-09-01T10:09:57.000Z
|
tests/integrations/cmake_asm_and_cpp/random.asm
|
Raalsky/kolejka-judge
|
4fa42d9b9a52a94cd8dc57a99218b32d0e8fc18f
|
[
"MIT"
] | 1
|
2021-10-08T19:32:09.000Z
|
2021-10-08T19:32:09.000Z
|
global _Z15getRandomNumberv
_Z15getRandomNumberv:
mov eax, 4
ret
| 12.333333
| 27
| 0.756757
|
98420bf2533cf7d8e8e8e9228298a7736ff0ff9b
| 7,639
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_st_sm_/i9-9900K_12_0xca_notsx.log_21829_853.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_st_sm_/i9-9900K_12_0xca_notsx.log_21829_853.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_st_sm_/i9-9900K_12_0xca_notsx.log_21829_853.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 %r15
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x13edd, %r11
nop
cmp $52916, %rcx
movb (%r11), %r9b
nop
nop
cmp %r15, %r15
lea addresses_D_ht+0x1e4d, %rbx
nop
nop
nop
nop
nop
xor %rcx, %rcx
movb $0x61, (%rbx)
nop
nop
nop
and $60773, %rcx
lea addresses_WT_ht+0xc10d, %rsi
lea addresses_WC_ht+0xbd0d, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
and $11733, %rbx
mov $75, %rcx
rep movsb
nop
nop
nop
nop
inc %r9
lea addresses_UC_ht+0x14e61, %r11
dec %rcx
movb $0x61, (%r11)
nop
nop
nop
nop
add %rcx, %rcx
lea addresses_D_ht+0xb6cd, %rdi
clflush (%rdi)
nop
add $23519, %rbp
movw $0x6162, (%rdi)
nop
nop
nop
dec %rbx
lea addresses_WT_ht+0xa10d, %rbx
nop
add $51768, %rdi
movl $0x61626364, (%rbx)
sub $41488, %rdi
lea addresses_WC_ht+0x111cd, %rcx
nop
nop
nop
nop
cmp %r15, %r15
and $0xffffffffffffffc0, %rcx
movntdqa (%rcx), %xmm5
vpextrq $0, %xmm5, %r11
nop
nop
xor %rsi, %rsi
lea addresses_normal_ht+0x1ed0d, %rbp
nop
nop
nop
nop
cmp $27886, %rdi
movb $0x61, (%rbp)
add %r15, %r15
lea addresses_UC_ht+0x179ed, %rcx
xor $65473, %rdi
movb (%rcx), %bl
nop
nop
nop
nop
and $18130, %rcx
lea addresses_A_ht+0xa3ad, %r11
nop
nop
dec %rbx
movw $0x6162, (%r11)
sub $62630, %r11
lea addresses_UC_ht+0x1e0a5, %rdi
nop
nop
nop
nop
and %r9, %r9
movw $0x6162, (%rdi)
dec %rbp
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r15
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %r15
push %r9
push %rbp
push %rdi
// Store
lea addresses_A+0xe10d, %rbp
nop
nop
nop
nop
nop
sub %r14, %r14
movb $0x51, (%rbp)
inc %rdi
// Store
lea addresses_UC+0x91ad, %r14
clflush (%r14)
nop
nop
xor $31395, %r9
movl $0x51525354, (%r14)
nop
nop
nop
nop
nop
xor $42236, %rbp
// Store
lea addresses_D+0x1f10d, %r14
sub %r15, %r15
movl $0x51525354, (%r14)
nop
nop
and $50000, %r9
// Store
lea addresses_normal+0x850d, %r13
nop
nop
nop
nop
nop
inc %r11
movl $0x51525354, (%r13)
nop
nop
nop
and $41955, %r14
// Load
mov $0x25d, %r11
dec %r15
mov (%r11), %r13
nop
nop
nop
nop
nop
inc %r14
// Faulty Load
lea addresses_A+0xe10d, %rdi
nop
nop
nop
nop
inc %rbp
mov (%rdi), %r9
lea oracles, %rbp
and $0xff, %r9
shlq $12, %r9
mov (%rbp,%r9,1), %r9
pop %rdi
pop %rbp
pop %r9
pop %r15
pop %r14
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 10}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_P', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 2}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_A', 'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT_ht', 'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6}}
{'OP': 'REPM', 'src': {'same': True, 'congruent': 11, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 10}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': True, 'AVXalign': True, 'size': 1, 'congruent': 9}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 2}}
{'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
*/
| 32.506383
| 2,999
| 0.649561
|
9b5471117ee38ac6be482057801f27ee74ded90d
| 912
|
asm
|
Assembly
|
src/kernel/io.asm
|
JohanLi233/JAHA-OS
|
4b4bae0b4fc1e494441da28337a31d3c46ff5934
|
[
"MIT"
] | 2
|
2022-02-15T23:40:48.000Z
|
2022-02-16T11:58:23.000Z
|
src/kernel/io.asm
|
JohanLi233/JAHA-OS
|
4b4bae0b4fc1e494441da28337a31d3c46ff5934
|
[
"MIT"
] | null | null | null |
src/kernel/io.asm
|
JohanLi233/JAHA-OS
|
4b4bae0b4fc1e494441da28337a31d3c46ff5934
|
[
"MIT"
] | 1
|
2022-02-17T10:03:30.000Z
|
2022-02-17T10:03:30.000Z
|
[bits 32]
section .text
global inb
inb:
push ebp
mov ebp, esp ;保存帧
xor eax, eax
mov edx, [ebp + 8] ;port
in al, dx ;将端口号dx的8bit输入到ax
jmp $+2
jmp $+2
leave
ret
global outb
outb:
push ebp
mov ebp, esp ;保存帧
mov edx, [ebp + 8] ;port
mov eax, [ebp + 12] ;value
out dx, al ;将al中的8bit输出到端口号dx
jmp $+2
jmp $+2
leave
ret
global inw
inw:
push ebp
mov ebp, esp ;保存帧
xor eax, eax
mov edx, [ebp + 8] ;port
in ax, dx ;将端口号dx的16bit输入到ax
jmp $+2
jmp $+2
leave
ret
global outw
outw:
push ebp
mov ebp, esp ;保存帧
mov edx, [ebp + 8] ;port
mov eax, [ebp + 12] ;value
out dx, ax ;将al中的16bit输出到端口号dx
jmp $+2
jmp $+2
leave
ret
| 14.030769
| 51
| 0.448465
|
a388a04e570c7ec1e1b70c2587d6cdff5ce3ef8c
| 3,994
|
asm
|
Assembly
|
DEF CON CTF Qualifier 2018/ELF Crumble/7.asm
|
p-g-krish/CTF-Writeups
|
05ad6a9ecbc19ceb8890f4581dfee36f16d164aa
|
[
"MIT"
] | 51
|
2018-06-26T09:49:42.000Z
|
2019-09-14T00:06:35.000Z
|
DEF CON CTF Qualifier 2018/ELF Crumble/7.asm
|
p-g-krish/CTF-Writeups
|
05ad6a9ecbc19ceb8890f4581dfee36f16d164aa
|
[
"MIT"
] | 1
|
2018-06-29T18:40:59.000Z
|
2018-07-09T20:29:41.000Z
|
DEF CON CTF Qualifier 2018/ELF Crumble/7.asm
|
p-g-krish/CTF-Writeups
|
05ad6a9ecbc19ceb8890f4581dfee36f16d164aa
|
[
"MIT"
] | 22
|
2019-10-03T14:52:43.000Z
|
2022-01-17T08:55:10.000Z
|
00000000 0FB612 movzx edx,byte [edx]
00000003 8855FB mov [ebp-0x5],dl
00000006 8B9038000000 mov edx,[eax+0x38]
0000000C 89D1 mov ecx,edx
0000000E 8B5508 mov edx,[ebp+0x8]
00000011 01CA add edx,ecx
00000013 0FB612 movzx edx,byte [edx]
00000016 8D4A02 lea ecx,[edx+0x2]
00000019 8B9038000000 mov edx,[eax+0x38]
0000001F 89D3 mov ebx,edx
00000021 8B5508 mov edx,[ebp+0x8]
00000024 01DA add edx,ebx
00000026 880A mov [edx],cl
00000028 8B9038000000 mov edx,[eax+0x38]
0000002E 8D4A02 lea ecx,[edx+0x2]
00000031 8B5508 mov edx,[ebp+0x8]
00000034 01D1 add ecx,edx
00000036 0FB655FB movzx edx,byte [ebp-0x5]
0000003A 8811 mov [ecx],dl
0000003C 8B903C000000 mov edx,[eax+0x3c]
00000042 89D1 mov ecx,edx
00000044 8B5508 mov edx,[ebp+0x8]
00000047 01CA add edx,ecx
00000049 0FB612 movzx edx,byte [edx]
0000004C 8855FB mov [ebp-0x5],dl
0000004F 8B903C000000 mov edx,[eax+0x3c]
00000055 89D1 mov ecx,edx
00000057 8B5508 mov edx,[ebp+0x8]
0000005A 01CA add edx,ecx
0000005C 0FB612 movzx edx,byte [edx]
0000005F 8D4A03 lea ecx,[edx+0x3]
00000062 8B903C000000 mov edx,[eax+0x3c]
00000068 89D3 mov ebx,edx
0000006A 8B5508 mov edx,[ebp+0x8]
0000006D 01DA add edx,ebx
0000006F 880A mov [edx],cl
00000071 8B903C000000 mov edx,[eax+0x3c]
00000077 8D4A03 lea ecx,[edx+0x3]
0000007A 8B5508 mov edx,[ebp+0x8]
0000007D 01D1 add ecx,edx
0000007F 0FB655FB movzx edx,byte [ebp-0x5]
00000083 8811 mov [ecx],dl
00000085 8B9040000000 mov edx,[eax+0x40]
0000008B 89D1 mov ecx,edx
0000008D 8B5508 mov edx,[ebp+0x8]
00000090 01CA add edx,ecx
00000092 0FB612 movzx edx,byte [edx]
00000095 8855FB mov [ebp-0x5],dl
00000098 8B9040000000 mov edx,[eax+0x40]
0000009E 89D1 mov ecx,edx
000000A0 8B5508 mov edx,[ebp+0x8]
000000A3 01CA add edx,ecx
000000A5 0FB612 movzx edx,byte [edx]
000000A8 8D4A04 lea ecx,[edx+0x4]
000000AB 8B9040000000 mov edx,[eax+0x40]
000000B1 89D3 mov ebx,edx
000000B3 8B5508 mov edx,[ebp+0x8]
000000B6 01DA add edx,ebx
000000B8 880A mov [edx],cl
000000BA 8B9040000000 mov edx,[eax+0x40]
000000C0 8D4A04 lea ecx,[edx+0x4]
000000C3 8B5508 mov edx,[ebp+0x8]
000000C6 01D1 add ecx,edx
000000C8 0FB655FB movzx edx,byte [ebp-0x5]
000000CC 8811 mov [ecx],dl
000000CE 8B9044000000 mov edx,[eax+0x44]
000000D4 89D1 mov ecx,edx
000000D6 8B5508 mov edx,[ebp+0x8]
000000D9 01CA add edx,ecx
000000DB 0FB612 movzx edx,byte [edx]
000000DE 8855FB mov [ebp-0x5],dl
000000E1 8B9044000000 mov edx,[eax+0x44]
000000E7 89D1 mov ecx,edx
000000E9 8B5508 mov edx,[ebp+0x8]
000000EC 01CA add edx,ecx
000000EE 0FB612 movzx edx,byte [edx]
000000F1 8D4A05 lea ecx,[edx+0x5]
000000F4 8B9044000000 mov edx,[eax+0x44]
000000FA 89D3 mov ebx,edx
000000FC 8B5508 mov edx,[ebp+0x8]
000000FF 01DA add edx,ebx
00000101 880A mov [edx],cl
00000103 8B8044000000 mov eax,[eax+0x44]
00000109 8D5005 lea edx,[eax+0x5]
0000010C 8B4508 mov eax,[ebp+0x8]
0000010F 01C2 add edx,eax
00000111 0FB645FB movzx eax,byte [ebp-0x5]
00000115 8802 mov [edx],al
00000117 90 nop
00000118 83C410 add esp,byte +0x10
| 43.89011
| 52
| 0.577867
|
78f9744985b63c6ddcf0d26d90f756e40b8834d3
| 355
|
asm
|
Assembly
|
programs/oeis/100/A100037.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/100/A100037.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/100/A100037.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A100037: Positions of occurrences of the natural numbers as a second subsequence in A100035.
; 4,9,18,31,48,69,94,123,156,193,234,279,328,381,438,499,564,633,706,783,864,949,1038,1131,1228,1329,1434,1543,1656,1773,1894,2019,2148,2281,2418,2559,2704,2853,3006,3163,3324,3489,3658,3831,4008,4189,4374,4563
mul $0,2
mov $1,-3
bin $1,$0
add $1,3
mov $0,$1
| 39.444444
| 210
| 0.740845
|
6d645b8c5b15f66ce42bf0e0b853cd1e15f67e21
| 1,417
|
asm
|
Assembly
|
programs/oeis/001/A001318.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/001/A001318.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/001/A001318.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A001318: Generalized pentagonal numbers: m*(3*m - 1)/2, m = 0, +-1, +-2, +-3, ....
; 0,1,2,5,7,12,15,22,26,35,40,51,57,70,77,92,100,117,126,145,155,176,187,210,222,247,260,287,301,330,345,376,392,425,442,477,495,532,551,590,610,651,672,715,737,782,805,852,876,925,950,1001,1027,1080,1107,1162,1190,1247,1276,1335,1365,1426,1457,1520,1552,1617,1650,1717,1751,1820,1855,1926,1962,2035,2072,2147,2185,2262,2301,2380,2420,2501,2542,2625,2667,2752,2795,2882,2926,3015,3060,3151,3197,3290,3337,3432,3480,3577,3626,3725,3775,3876,3927,4030,4082,4187,4240,4347,4401,4510,4565,4676,4732,4845,4902,5017,5075,5192,5251,5370,5430,5551,5612,5735,5797,5922,5985,6112,6176,6305,6370,6501,6567,6700,6767,6902,6970,7107,7176,7315,7385,7526,7597,7740,7812,7957,8030,8177,8251,8400,8475,8626,8702,8855,8932,9087,9165,9322,9401,9560,9640,9801,9882,10045,10127,10292,10375,10542,10626,10795,10880,11051,11137,11310,11397,11572,11660,11837,11926,12105,12195,12376,12467,12650,12742,12927,13020,13207,13301,13490,13585,13776,13872,14065,14162,14357,14455,14652,14751,14950,15050,15251,15352,15555,15657,15862,15965,16172,16276,16485,16590,16801,16907,17120,17227,17442,17550,17767,17876,18095,18205,18426,18537,18760,18872,19097,19210,19437,19551,19780,19895,20126,20242,20475,20592,20827,20945,21182,21301,21540,21660,21901,22022,22265,22387,22632,22755,23002,23126,23375
add $0,1
mul $0,2
mov $1,$0
mul $1,3
div $1,4
bin $1,2
div $1,3
| 128.818182
| 1,266
| 0.772759
|
66ab66791a36c68d6820d8e522b060eb5c859d2f
| 380
|
asm
|
Assembly
|
oeis/160/A160381.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/160/A160381.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/160/A160381.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A160381: Number of 1's in base-4 representation of n.
; Submitted by Christian Krause
; 0,1,0,0,1,2,1,1,0,1,0,0,0,1,0,0,1,2,1,1,2,3,2,2,1,2,1,1,1,2,1,1,0,1,0,0,1,2,1,1,0,1,0,0,0,1,0,0,0,1,0,0,1,2,1,1,0,1,0,0,0,1,0,0,1,2,1,1,2,3,2,2,1,2,1,1,1,2,1,1,2,3,2,2,3,4,3,3,2,3,2,2,2,3,2,2,1,2,1,1
lpb $0
mul $0,2
mov $2,$0
div $0,8
mod $2,8
cmp $2,2
add $1,$2
lpe
mov $0,$1
| 27.142857
| 201
| 0.55
|
7f975e482e76cd7560c34baea527c0c1f22bb2ed
| 696
|
asm
|
Assembly
|
oeis/059/A059258.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/059/A059258.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/059/A059258.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A059258: Primes p such that x^53 = 2 has no solution mod p.
; Submitted by Christian Krause
; 107,743,1061,1697,2333,2969,3181,3499,3923,4241,4877,5407,6043,6361,6679,6997,7103,7951,8269,8693,9011,9859,10177,10601,11131,12721,13463,13781,14629,14947,15053,15583,15901,16007,17491,17597,18127,18233,18869,19081,19717,20353,21943,22367,23003,23321,23957,24169,24593,25229,25759,26183,26501,26713,27031,27773,28409,28621,29363,30211,30529,31271,31907,32119,33073,33179,33391,34981,35617,36571,36677,37313,38903,39857,40387,40493,41023,41341,41659,42083,42719,43037,43991,44203,44839,45263,46747
mov $2,$0
mov $3,2
lpb $3
mov $0,$2
seq $0,212377 ; Primes congruent to 1 mod 53.
sub $3,1
lpe
| 58
| 499
| 0.775862
|
42e586a7d8612d0b2007f6db8aa204e8c4f687c3
| 390
|
asm
|
Assembly
|
programs/oeis/275/A275015.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/275/A275015.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/275/A275015.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A275015: Number of neighbors of each new term in an isosceles triangle read by rows.
; 0,1,2,1,3,2,1,3,3,2,1,3,3,3,2,1,3,3,3,3,2,1,3,3,3,3,3,2,1,3,3,3,3,3,3,2,1,3,3,3,3,3,3,3,2,1,3,3,3,3,3,3,3,3,2,1,3,3,3,3,3,3,3,3,3,2,1,3,3,3,3,3,3,3,3,3,3,2,1,3,3,3,3,3,3,3,3,3,3,3,2,1,3,3,3,3,3,3,3,3,3,3,3,3,2
lpb $0
add $0,4
mov $1,3
trn $2,2
add $2,3
trn $0,$2
sub $1,$0
trn $0,2
lpe
| 30
| 211
| 0.551282
|
1294590393088c0aaa068cfc9a484fea8abc812e
| 580
|
asm
|
Assembly
|
oeis/000/A000304.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/000/A000304.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/000/A000304.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A000304: a(n) = a(n-1)*a(n-2).
; 2,3,6,18,108,1944,209952,408146688,85691213438976,34974584955819144511488,2997014624388697307377363936018956288,104819342594514896999066634490728502944926883876041385836544,314145102674570244719609791046481277268067088275579791889150033077979390594877693287020648988672,32928483141634836543621814149250270714687927900353903378740064921245741854972904508723886257658853119333518601278436384639091393415072186108469978299629568
mov $1,8
mov $2,6
lpb $0
sub $0,1
mod $0,15
mov $3,$2
mov $2,$1
mul $1,$3
div $1,4
lpe
mov $0,$1
div $0,4
| 36.25
| 427
| 0.836207
|
321c877f44e010c0393bc03c68c5657f6c8eac9d
| 7,859
|
asm
|
Assembly
|
Driver/Font/Nimbus/nimbusRegions.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 504
|
2018-11-18T03:35:53.000Z
|
2022-03-29T01:02:51.000Z
|
Driver/Font/Nimbus/nimbusRegions.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 96
|
2018-11-19T21:06:50.000Z
|
2022-03-06T10:26:48.000Z
|
Driver/Font/Nimbus/nimbusRegions.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 73
|
2018-11-19T20:46:53.000Z
|
2022-03-29T00:59:26.000Z
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Nimbus/CharMod
FILE: nimbusRegions.asm
AUTHOR: Gene Anderson, Feb 28, 1990
ROUTINES:
Name Description
---- -----------
RegionAlloc Allocate and initialize a region.
EXT SetPointInRegion Set an on/off point in a region.
EXT CopyRegionResize Clean region, resize font and add the char.
REVISION HISTORY:
Name Date Description
---- ---- -----------
Gene 2/28/90 Initial revision
DESCRIPTION:
Contains routines for generating characters defined as regions.
$Id: nimbusRegions.asm,v 1.1 97/04/18 11:45:28 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Region Characters, The Documentation.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
The Nimbus routines create bitmaps through clever use of the
Postcript winding rule. Points on the outside of characters run counter-
clockwise, and points on the inside of characters run clockwise. This
allows the code to correctly set points in the bitmap by setting the
starting point and inverting all points to the end of the line. This works
because the points on a line always come in pairs. Points lying outside
the character body get inverted an even number of times. Points lying
inside get inverted an odd number of times, ending with them turned on,
the correct state.
This is perfect for generating PC/GEOS regions, because they
have a similar on/off logic. The routine SetRegionPoint is designed
to be the region equivalent of bmap_bits(), the Nimbus routine that
does the above setting of points in bitmaps. As such, it is C-callable
so that makechar() can call either routine interchangeably depending
on whether the character being generated is a bitmap or region.
After some simple research, the average number of on/off points
in a character was determined to be ~3.4. As a result of this research,
I decided on 4 as a good number.
The unused points will be replaced with points as they
are set on each line. If we get to the unpleasant state of no more
unused points on a line, resizing the region block may become
necessary. We check for any remaining bytes at the end of the
block, and use them first. Only if the block is full do we do the
actual (potentially unpleasant) resizing.
After the character is entirely generated, the region will be
scanned for adjacent duplicate lines and any remaining unused points,
as the concept of unused points is nonstandard (ie. the rest of the
graphics system will barf or do weird things with these values in)
Also, it should be noted that there is no equivalent for
the set_bit() routine. It is assumed that regions are used for large
characters, such that continuity checking doesn't need to be done,
so the set_bit() routine should never be called. In addition, setting
a single point is much more painful in a region than a bitmap.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
RegionAlloc
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Allocate a region for larger (ie. > 127 lines) characters.
CALLED BY: AllocBMap()
PASS: ds - seg addr of NimbusVars
ax, dx - height of bitmap (in lines)
es - seg addr of udata
RETURN: es:bitmapHandle - handle of region
ds:guano.NB_segment
DESTROYED: ax, bx, cx, dx, di, es
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
eca 5/30/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
RegionAlloc proc near
uses es, bp
.enter
mov di, es:bitmapHandle ;di <- handle of block to use
mov cx, RFR_ODD_EVEN or (UNUSED_PER_LINE shl 8)
clr bp ;bp <- minimum y
call GrRegionPathInit ;create the RegionPath
mov ds:guano.NB_segment, es ;store seg addr of region
.leave
mov es:bitmapSize, cx ;store size of block
ret
RegionAlloc endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetPointInRegion
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set an on/off point in a region character.
CALLED BY: YPixelate()
PASS: ds:guano - NimbusBitmap (segment = RegionPath)
(cx,bp) - (x,y) point to invert from
RETURN: none
DESTROYED: ax, bx, cx, dx
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
eca 2/28/90 Initial version
don 8/23/91 Changed to use CallBuildRegion (faster I hope)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetPointInRegion proc near
sub cx, ds:guano.NB_lox ;x' = x - left(x);
mov dx, ds:guano.NB_hiy
sub dx, bp ;y' = top(y) - y;
mov ax, REGION_ADD_ON_OFF_POINT
call CallBuildRegion ;add the on/off point
SetBitInRegion label near
ret
SetPointInRegion endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CopyRegionResize
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Clean the region & check for duplicates, calc final size
and add it to the font, resizing as necessary.
CALLED BY: CopyCharResize
PASS: ds - seg addr of NimbusVars
ds:guano - region
ds:fontSegment - seg addr of font
dl - character (Chars)
di - offset CharGenData
RETURN: es - seg addr of font (may have changed)
DESTROYED: ax, cx, dx, si, di, ds
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
eca 3/ 1/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CopyRegionResize proc near
EC < call ECCheckFontSegment ;>
mov es, ds:fontSegment ;es <- seg addr of font
SBCS < sub dl, es:FB_firstChar ;dl <- char index >
DBCS < sub dl, {byte}es:FB_firstChar ;dl <- char index >
clr dh
mov si, dx ;si <- char index
if DBCS_PCGEOS
.assert (size CharTableEntry eq 6)
shl si, 1 ;*2
shl si, 1 ;*4
add si, dx ;*5
add si, dx ;*6
else
.assert (size CharTableEntry eq 8)
shl si, 1 ;*8 for each CTE
shl si, 1
shl si, 1 ;si <- offset of CharTableEntry
endif
EC < cmp es:FB_charTable[si].CTE_dataOffset, CHAR_NOT_BUILT >
EC < ERROR_NZ FONT_BAD_CHAR_FLAG >
push ds:guano.NB_lox ;save left edge
push ds:guano.NB_hiy ;save baseline offset
mov ax, REGION_CLEAN ;ax <- routine #
call CallBuildRegion ;clean the region
mov ax, cx ;ax <- size of character
push ax ;save size of character
add ax, SIZE_REGION_HEADER ;add space for header
push ax
call ResizeFont ;resize me jesus
pop es:[si].RCD_size ;<- size of char + header
pop cx ;cx <- size of character
pop bx ;bx <- baseline offset
mov ax, es:[di].CGD_heightY ;ax <- scaled baseline for font
add ax, es:[di].CGD_scriptY ;add any offset for super/sub
sub ax, bx ;ax <- offset to top of bitmap
mov es:[si].RCD_yoff, ax
pop ax ;ax <- offset to left edge
mov bx, es:[di].CGD_heightX
add bx, es:[di].CGD_scriptX
add ax, bx
mov es:[si].RCD_xoff, ax
mov ds, ds:guano.NB_segment ;ds <- seg addr of region
mov di, si
add di, RCD_bounds ;es:di <- ptr to char data
mov si, offset RP_bounds ;ds:si <- ptr to region
shr cx, 1 ;cx <- # of words to copy
rep movsw
EC < cmp di, es:FB_dataSize ;>
EC < ERROR_NE OVERDOSE ;>
ret
CopyRegionResize endp
| 34.928889
| 79
| 0.610383
|
f3773c2d625ea2f46aad00eb61d6c20dff184cd4
| 644
|
asm
|
Assembly
|
oeis/078/A078019.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/078/A078019.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/078/A078019.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A078019: Expansion of (1-x)/(1-x+2*x^2-x^3).
; 1,0,-2,-1,3,3,-4,-7,4,14,-1,-25,-9,40,33,-56,-82,63,171,-37,-316,-71,524,350,-769,-945,943,2064,-767,-3952,-354,6783,3539,-10381,-10676,13625,24596,-13330,-48897,2359,86823,33208,-138079,-117672,191694,288959,-212101,-598325,114836,1099385,271388,-1812546,-1255937,2640543,3339871,-3197152,-7236351,2497824,13773374,1541375,-23507549,-12816925,35739548,37865849,-46430172,-86422322,44303871,170718343,-4311721,-301444536,-122102751,476474600,419235566,-655816385,-1017812917,713055419,2092864868
add $0,1
mov $2,$0
lpb $0
mov $3,$2
sub $2,3
bin $3,$0
sub $0,1
add $4,$3
lpe
mov $0,$4
| 46
| 497
| 0.706522
|
34f105ae2bc7e287d44122e8b565738bd875b804
| 1,156
|
asm
|
Assembly
|
programs/oeis/164/A164535.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/164/A164535.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/164/A164535.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A164535: a(n) = 8*a(n-1) - 14*a(n-2) for n > 1; a(0) = 3, a(1) = 20.
; 3,20,118,664,3660,19984,108632,589280,3193392,17297216,93670240,507200896,2746223808,14868977920,80504690048,435871829504,2359908975360,12777066189824,69177803863552,374543504250880,2027858779917312,10979261179826176,59444066519767040,321842875640569856,1742526073847820288,9434408331814584320,51079901620647190528,276557496319773343744,1497341347869126082560,8106925834476181848064,43892627805641689628672,237644060762466971156480,1286655696820752114450432,6966228723891479319412736,37716650035641304952995840,204205998150649729152188416,1105614884706219563875565568,5986035103540660302873886720,32409672442438208528733175808,175472888089936423989630992384,950047690525356472514783477760,5143761090943741844263433928704,27849421060194944138900502740992,150782713208347167291515946926080,816369810824048120387520537034752,4420000501675524621018941039312896,23930826661867523282726240796016640,129566606271482841567544751817752576,701501276905717406582190643397787648
add $0,1
mov $1,4
mov $2,1
lpb $0
sub $0,1
sub $1,$2
mul $1,7
add $2,$1
mul $1,2
lpe
div $1,14
mov $0,$1
| 72.25
| 968
| 0.870242
|
d129b8ff04d175ca5350ee3be99ac0aa310b5738
| 5,572
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_313.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_313.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_313.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r15
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1379a, %rsi
lea addresses_normal_ht+0x1811a, %rdi
nop
nop
lfence
mov $26, %rcx
rep movsq
cmp $43910, %r12
lea addresses_D_ht+0x163da, %r15
xor %r12, %r12
mov $0x6162636465666768, %r10
movq %r10, (%r15)
nop
nop
nop
cmp $38193, %rcx
lea addresses_UC_ht+0x4972, %r12
nop
nop
nop
nop
and $34727, %r13
movb (%r12), %r15b
nop
nop
nop
nop
xor %rcx, %rcx
lea addresses_UC_ht+0x2e9a, %rdi
sub %r15, %r15
movb $0x61, (%rdi)
nop
nop
nop
nop
cmp %rcx, %rcx
lea addresses_A_ht+0x1ce82, %rdi
sub $2229, %rcx
mov (%rdi), %r15d
nop
nop
nop
xor $56023, %r10
pop %rsi
pop %rdi
pop %rcx
pop %r15
pop %r13
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r15
push %r9
push %rbx
push %rdi
push %rdx
// Store
lea addresses_WT+0x1682a, %r9
nop
add $37408, %rbx
mov $0x5152535455565758, %rdx
movq %rdx, %xmm5
vmovups %ymm5, (%r9)
nop
nop
nop
add %r9, %r9
// Store
lea addresses_PSE+0xac9a, %r13
nop
nop
nop
nop
sub $27682, %r15
movw $0x5152, (%r13)
nop
nop
nop
nop
sub %r15, %r15
// Faulty Load
lea addresses_UC+0x69a, %r14
nop
add %rdx, %rdx
mov (%r14), %r9d
lea oracles, %r14
and $0xff, %r9
shlq $12, %r9
mov (%r14,%r9,1), %r9
pop %rdx
pop %rdi
pop %rbx
pop %r9
pop %r15
pop %r14
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_UC', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 3}}
[Faulty Load]
{'src': {'type': 'addresses_UC', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 3}}
{'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 2}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 11}}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 2}, 'OP': 'LOAD'}
{'37': 21829}
37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37
*/
| 41.894737
| 2,999
| 0.657035
|
f0c5e43c2cbb82d6645479761f6afd97cb26d253
| 1,171
|
asm
|
Assembly
|
programs/oeis/298/A298028.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/298/A298028.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/298/A298028.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A298028: Coordination sequence of Dual(3.6.3.6) tiling with respect to a trivalent node.
; 1,3,12,9,24,15,36,21,48,27,60,33,72,39,84,45,96,51,108,57,120,63,132,69,144,75,156,81,168,87,180,93,192,99,204,105,216,111,228,117,240,123,252,129,264,135,276,141,288,147,300,153,312,159,324,165,336,171,348,177,360,183,372,189,384,195,396,201,408,207,420,213,432,219,444,225,456,231,468,237,480,243,492,249,504,255,516,261,528,267,540,273,552,279,564,285,576,291,588,297,600,303,612,309,624,315,636,321,648,327,660,333,672,339,684,345,696,351,708,357,720,363,732,369,744,375,756,381,768,387,780,393,792,399,804,405,816,411,828,417,840,423,852,429,864,435,876,441,888,447,900,453,912,459,924,465,936,471,948,477,960,483,972,489,984,495,996,501,1008,507,1020,513,1032,519,1044,525,1056,531,1068,537,1080,543,1092,549,1104,555,1116,561,1128,567,1140,573,1152,579,1164,585,1176,591,1188,597,1200,603,1212,609,1224,615,1236,621,1248,627,1260,633,1272,639,1284,645,1296,651,1308,657,1320,663,1332,669,1344,675,1356,681,1368,687,1380,693,1392,699,1404,705,1416,711,1428,717,1440,723,1452,729,1464,735,1476,741,1488,747
mov $1,$0
gcd $0,2
mul $1,6
mul $1,$0
trn $1,2
div $1,2
add $1,1
| 106.454545
| 1,013
| 0.740393
|
58160c2fb8e7d7d84720d212efa74cc0e46d0908
| 11,235
|
asm
|
Assembly
|
macros/legacy.asm
|
chaos-lord/CryEd
|
d67380ad026ac324290a6c31e20f79c06b8f82a6
|
[
"MIT"
] | 1
|
2021-03-29T14:15:38.000Z
|
2021-03-29T14:15:38.000Z
|
macros/legacy.asm
|
chaos-lord/CryEd
|
d67380ad026ac324290a6c31e20f79c06b8f82a6
|
[
"MIT"
] | 4
|
2021-03-28T17:20:09.000Z
|
2021-04-27T22:20:31.000Z
|
macros/legacy.asm
|
chaos-lord/CryEd
|
d67380ad026ac324290a6c31e20f79c06b8f82a6
|
[
"MIT"
] | 4
|
2021-03-30T21:58:20.000Z
|
2022-03-07T06:08:29.000Z
|
; Legacy support for old pokecrystal.
; Allows porting scripts with as few edits as possible.
; Legacy support not in this file can be found by looking for the keyword: "LEGACY"
; Define ROM title.
romTitle: MACRO
.str\@
db \1
.str\@_end
rept 15-(.str\@_end-.str\@)
db 0
endr
endm
; macros/rst.asm
callba EQUS "farcall"
callab EQUS "callfar"
; macros/gfx.asm
dsprite: MACRO
dbsprite \2, \4, \1, \3, \5, \6
ENDM
; macros/scripts/audio.asm
__ EQU 0
CC EQU 13
musicheader: MACRO
channel_count \1
channel \2, \3
ENDM
sound: MACRO
note \1, \2
db \3
dw \4
ENDM
noise: MACRO
note \1, \2
db \3
db \4
ENDM
notetype: MACRO
if _NARG >= 2
note_type \1, \2 >> 4, \2 & $0f
else
note_type \1
endc
ENDM
pitchoffset: MACRO
transpose \1, \2 - 1
ENDM
dutycycle EQUS "duty_cycle"
intensity: MACRO
volume_envelope \1 >> 4, \1 & $0f
ENDM
soundinput: MACRO
pitch_sweep \1 >> 4, \1 & $0f
ENDM
unknownmusic0xde EQUS "sound_duty"
sound_duty: MACRO
db duty_cycle_pattern_cmd
if _NARG == 4
db \1 | (\2 << 2) | (\3 << 4) | (\4 << 6)
else
db \1
endc
ENDM
togglesfx EQUS "toggle_sfx"
slidepitchto: MACRO
pitch_slide \1, (8 - \2), \3
ENDM
togglenoise EQUS "toggle_noise"
panning: MACRO
force_stereo_panning ((\1 >> 4) & 1), (\1 & 1)
ENDM
tone EQUS "pitch_offset"
restartchannel EQUS "restart_channel"
newsong EQUS "new_song"
sfxpriorityon EQUS "sfx_priority_on"
sfxpriorityoff EQUS "sfx_priority_off"
stereopanning: MACRO
stereo_panning ((\1 >> 4) & 1), (\1 & 1)
ENDM
sfxtogglenoise EQUS "sfx_toggle_noise"
setcondition EQUS "set_condition"
jumpif EQUS "sound_jump_if"
jumpchannel EQUS "sound_jump"
loopchannel EQUS "sound_loop"
callchannel EQUS "sound_call"
endchannel EQUS "sound_ret"
; macros/scripts/events.asm
checkmorn EQUS "checktime MORN"
checkday EQUS "checktime DAY"
checknite EQUS "checktime NITE"
jump EQUS "sjump"
farjump EQUS "farsjump"
priorityjump EQUS "prioritysjump"
ptcall EQUS "memcall"
ptjump EQUS "memjump"
ptpriorityjump EQUS "stopandsjump"
ptcallasm EQUS "memcallasm"
if_equal EQUS "ifequal"
if_not_equal EQUS "ifnotequal"
if_greater_than EQUS "ifgreater"
if_less_than EQUS "ifless"
end_all EQUS "endall"
return EQUS "endcallback"
reloadandreturn EQUS "reloadend"
checkmaptriggers EQUS "checkmapscene"
domaptrigger EQUS "setmapscene"
checktriggers EQUS "checkscene"
dotrigger EQUS "setscene"
faceperson EQUS "faceobject"
moveperson EQUS "moveobject"
writepersonxy EQUS "writeobjectxy"
spriteface EQUS "turnobject"
objectface EQUS "turnobject"
applymovement2 EQUS "applymovementlasttalked"
writebyte EQUS "setval"
addvar EQUS "addval"
copybytetovar EQUS "readmem"
copyvartobyte EQUS "writemem"
checkcode EQUS "readvar"
writevarcode EQUS "writevar"
writecode EQUS "loadvar"
MEM_BUFFER_0 EQUS "STRING_BUFFER_3"
MEM_BUFFER_1 EQUS "STRING_BUFFER_4"
MEM_BUFFER_2 EQUS "STRING_BUFFER_5"
vartomem EQUS "getnum"
mapnametotext EQUS "getcurlandmarkname"
readcoins EQUS "getcoins"
pokenamemem: MACRO
getmonname \2, \1
ENDM
itemtotext: MACRO
getitemname \2, \1
ENDM
landmarktotext: MACRO
getlandmarkname \2, \1
ENDM
trainertotext: MACRO
gettrainername \3, \1, \2
ENDM
trainerclassname: MACRO
gettrainerclassname \2, \1
ENDM
name: MACRO
getname \3, \1, \2
ENDM
stringtotext: MACRO
getstring \2, \1
ENDM
readmoney: MACRO
getmoney \2, \1
ENDM
RAM2MEM EQUS "getnum"
loadfont EQUS "opentext"
loadmenudata EQUS "loadmenu"
loadmenuheader EQUS "loadmenu"
writebackup EQUS "closewindow"
interpretmenu EQUS "_2dmenu"
interpretmenu2 EQUS "verticalmenu"
buttonsound EQUS "promptbutton"
battlecheck EQUS "randomwildmon"
loadtrainerdata EQUS "loadtemptrainer"
loadpokedata EQUS "loadwildmon"
returnafterbattle EQUS "reloadmapafterbattle"
trainerstatus EQUS "trainerflagaction"
talkaftercancel EQUS "endifjustbattled"
talkaftercheck EQUS "checkjustbattled"
playrammusic EQUS "encountermusic"
reloadmapmusic EQUS "dontrestartmapmusic"
resetfuncs EQUS "endall"
storetext EQUS "battletowertext"
displaylocation EQUS "landmarktotext"
givepokeitem EQUS "givepokemail"
checkpokeitem EQUS "checkpokemail"
passtoengine EQUS "autoinput"
verbosegiveitem2 EQUS "verbosegiveitemvar"
loadbytec2cf EQUS "writeunusedbyte"
writeunusedbytebuffer EQUS "writeunusedbyte"
; macros/scripts/maps.asm
mapconst: MACRO
map_const \1, \3, \2
ENDM
maptrigger EQUS "scene_script"
warp_def: MACRO
warp_event \2, \1, \4, \3
ENDM
xy_trigger: MACRO
coord_event \3, \2, \1, \5
ENDM
signpost: MACRO
bg_event \2, \1, \3, \4
ENDM
person_event: MACRO
_s = \1
_y = \2
_x = \3
_m = \4
shift 4
object_event _x, _y, _s, _m, \1, \2, \3, \4, \5, \6, \7, \8, \9
ENDM
PERSONTYPE_SCRIPT EQUS "OBJECTTYPE_SCRIPT"
PERSONTYPE_ITEMBALL EQUS "OBJECTTYPE_ITEMBALL"
PERSONTYPE_TRAINER EQUS "OBJECTTYPE_TRAINER"
; macros/scripts/movement.asm
show_person EQUS "show_object"
hide_person EQUS "hide_object"
remove_person EQUS "remove_object"
turn_head_down EQUS "turn_head DOWN"
turn_head_up EQUS "turn_head UP"
turn_head_left EQUS "turn_head LEFT"
turn_head_right EQUS "turn_head RIGHT"
turn_step_down EQUS "turn_step DOWN"
turn_step_up EQUS "turn_step UP"
turn_step_left EQUS "turn_step LEFT"
turn_step_right EQUS "turn_step RIGHT"
slow_step_down EQUS "slow_step DOWN"
slow_step_up EQUS "slow_step UP"
slow_step_left EQUS "slow_step LEFT"
slow_step_right EQUS "slow_step RIGHT"
step_down EQUS "step DOWN"
step_up EQUS "step UP"
step_left EQUS "step LEFT"
step_right EQUS "step RIGHT"
big_step_down EQUS "big_step DOWN"
big_step_up EQUS "big_step UP"
big_step_left EQUS "big_step LEFT"
big_step_right EQUS "big_step RIGHT"
slow_slide_step_down EQUS "slow_slide_step DOWN"
slow_slide_step_up EQUS "slow_slide_step UP"
slow_slide_step_left EQUS "slow_slide_step LEFT"
slow_slide_step_right EQUS "slow_slide_step RIGHT"
slide_step_down EQUS "slide_step DOWN"
slide_step_up EQUS "slide_step UP"
slide_step_left EQUS "slide_step LEFT"
slide_step_right EQUS "slide_step RIGHT"
fast_slide_step_down EQUS "fast_slide_step DOWN"
fast_slide_step_up EQUS "fast_slide_step UP"
fast_slide_step_left EQUS "fast_slide_step LEFT"
fast_slide_step_right EQUS "fast_slide_step RIGHT"
turn_away_down EQUS "turn_away DOWN"
turn_away_up EQUS "turn_away UP"
turn_away_left EQUS "turn_away LEFT"
turn_away_right EQUS "turn_away RIGHT"
turn_in_down EQUS "turn_in DOWN"
turn_in_up EQUS "turn_in UP"
turn_in_left EQUS "turn_in LEFT"
turn_in_right EQUS "turn_in RIGHT"
turn_waterfall_down EQUS "turn_waterfall DOWN"
turn_waterfall_up EQUS "turn_waterfall UP"
turn_waterfall_left EQUS "turn_waterfall LEFT"
turn_waterfall_right EQUS "turn_waterfall RIGHT"
slow_jump_step_down EQUS "slow_jump_step DOWN"
slow_jump_step_up EQUS "slow_jump_step UP"
slow_jump_step_left EQUS "slow_jump_step LEFT"
slow_jump_step_right EQUS "slow_jump_step RIGHT"
jump_step_down EQUS "jump_step DOWN"
jump_step_up EQUS "jump_step UP"
jump_step_left EQUS "jump_step LEFT"
jump_step_right EQUS "jump_step RIGHT"
fast_jump_step_down EQUS "fast_jump_step DOWN"
fast_jump_step_up EQUS "fast_jump_step UP"
fast_jump_step_left EQUS "fast_jump_step LEFT"
fast_jump_step_right EQUS "fast_jump_step RIGHT"
step_sleep_1 EQUS "step_sleep 1"
step_sleep_2 EQUS "step_sleep 2"
step_sleep_3 EQUS "step_sleep 3"
step_sleep_4 EQUS "step_sleep 4"
step_sleep_5 EQUS "step_sleep 5"
step_sleep_6 EQUS "step_sleep 6"
step_sleep_7 EQUS "step_sleep 7"
step_sleep_8 EQUS "step_sleep 8"
; macros/scripts/text.asm
text_from_ram EQUS "text_ram"
start_asm EQUS "text_asm"
deciram EQUS "text_decimal"
interpret_data EQUS "text_pause"
limited_interpret_data EQUS "text_dots"
link_wait_button EQUS "text_waitbutton"
text_linkwaitbutton EQUS "text_waitbutton"
text_linkpromptbutton EQUS "text_waitbutton"
current_day EQUS "text_today"
text_jump EQUS "text_far"
; macros/scripts/battle_anims.asm
anim_enemyfeetobj EQUS "anim_battlergfx_2row"
anim_playerheadobj EQUS "anim_battlergfx_1row"
anim_clearsprites EQUS "anim_keepsprites"
; engine/events/std_scripts.asm
pokecenternurse EQUS "PokecenterNurseScript"
difficultbookshelf EQUS "DifficultBookshelfScript"
picturebookshelf EQUS "PictureBookshelfScript"
magazinebookshelf EQUS "MagazineBookshelfScript"
teamrocketoath EQUS "TeamRocketOathScript"
incenseburner EQUS "IncenseBurnerScript"
merchandiseshelf EQUS "MerchandiseShelfScript"
townmap EQUS "TownMapScript"
window EQUS "WindowScript"
tv EQUS "TVScript"
homepage EQUS "HomepageScript"
radio1 EQUS "Radio1Script"
radio2 EQUS "Radio2Script"
trashcan EQUS "TrashCanScript"
strengthboulder EQUS "StrengthBoulderScript"
smashrock EQUS "SmashRockScript"
pokecentersign EQUS "PokecenterSignScript"
martsign EQUS "MartSignScript"
goldenrodrockets EQUS "GoldenrodRocketsScript"
radiotowerrockets EQUS "RadioTowerRocketsScript"
elevatorbutton EQUS "ElevatorButtonScript"
daytotext EQUS "DayToTextScript"
bugcontestresultswarp EQUS "BugContestResultsWarpScript"
bugcontestresults EQUS "BugContestResultsScript"
initializeevents EQUS "InitializeEventsScript"
asknumber1m EQUS "AskNumber1MScript"
asknumber2m EQUS "AskNumber2MScript"
registerednumberm EQUS "RegisteredNumberMScript"
numberacceptedm EQUS "NumberAcceptedMScript"
numberdeclinedm EQUS "NumberDeclinedMScript"
phonefullm EQUS "PhoneFullMScript"
rematchm EQUS "RematchMScript"
giftm EQUS "GiftMScript"
packfullm EQUS "PackFullMScript"
rematchgiftm EQUS "RematchGiftMScript"
asknumber1f EQUS "AskNumber1FScript"
asknumber2f EQUS "AskNumber2FScript"
registerednumberf EQUS "RegisteredNumberFScript"
numberacceptedf EQUS "NumberAcceptedFScript"
numberdeclinedf EQUS "NumberDeclinedFScript"
phonefullf EQUS "PhoneFullFScript"
rematchf EQUS "RematchFScript"
giftf EQUS "GiftFScript"
packfullf EQUS "PackFullFScript"
rematchgiftf EQUS "RematchGiftFScript"
gymstatue1 EQUS "GymStatue1Script"
gymstatue2 EQUS "GymStatue2Script"
receiveitem EQUS "ReceiveItemScript"
receivetogepiegg EQUS "ReceiveTogepiEggScript"
pcscript EQUS "PCScript"
gamecornercoinvendor EQUS "GameCornerCoinVendorScript"
happinesschecknpc EQUS "HappinessCheckScript"
; constants/sprite_constants.asm
SPRITE_BUENA EQUS "SPRITE_BEAUTY"
| 28.515228
| 83
| 0.719804
|
eb1581f198e44402593ca5e7063d32fd43619f28
| 355
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/l/z80/l_zeroword_hl.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/l/z80/l_zeroword_hl.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/l/z80/l_zeroword_hl.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
SECTION code_clib
SECTION code_l
PUBLIC l_zeroword_hl
inc hl
inc hl
inc hl
inc hl
l_zeroword_hl:
; Common operation to zero word at offset from hl
;
; enter : hl = void *address
;
; exit : hl = void *address
; *address = 0
;
; uses : none
ld (hl),0
inc hl
ld (hl),0
dec hl
ret
| 11.833333
| 52
| 0.546479
|
2431ff50b3bf33fbd007b2415d2f173b4a187b0c
| 3,824
|
asm
|
Assembly
|
library_dir_dir/system_library_unbundled/source/pc_mowse_.s.archive/rs232out.asm
|
dancrossnyc/multics
|
dc291689edf955c660e57236da694630e2217151
|
[
"RSA-MD"
] | 65
|
2021-07-27T16:54:21.000Z
|
2022-03-30T17:50:19.000Z
|
library_dir_dir/system_library_unbundled/source/pc_mowse_.s.archive/rs232out.asm
|
dancrossnyc/multics
|
dc291689edf955c660e57236da694630e2217151
|
[
"RSA-MD"
] | 1
|
2021-07-29T13:24:12.000Z
|
2021-07-29T13:28:22.000Z
|
library_dir_dir/system_library_unbundled/source/pc_mowse_.s.archive/rs232out.asm
|
dancrossnyc/multics
|
dc291689edf955c660e57236da694630e2217151
|
[
"RSA-MD"
] | 4
|
2021-07-27T16:05:31.000Z
|
2021-12-30T08:38:51.000Z
|
; ***********************************************************
; * *
; * Copyright, (C) Honeywell Bull Inc., 1987 *
; * *
; * Copyright, (C) Honeywell Information Systems Inc., 1986 *
; * *
; ***********************************************************
PAGE 55,132
; HISTORY COMMENTS:
; 1) change(85-12-15,Flegel), approve(87-07-13,MCR7580),
; audit(87-07-13,Leskiw), install(87-08-07,MR12.1-1072):
; Created.
; END HISTORY COMMENTS
;/* : PROCEDURE FUNCTION (RS232_out):
;
;Send the byte in al to the RS232 port only when it is safe to do so.
;*/
;/* : ARGUMENTS
;
; al - byte to be outputted to RS232 port
;*/
include dos.mac ;Lattice include file
include mowsdefs.mac ;Constant values
include rs232err.mac ; Hardware interrupt errors
include ws_buf.mac ; circular buffer macros
;*******************************************************************
; DATA
;*******************************************************************
dseg
;-------- External declarations
extrn COM_PORT:word
;-------- Public Declarations
public RS232_out
endds
page
;*******************************************************************
; MAIN
;*******************************************************************
pseg
;--------- External Procedures
extrn put_inbuff:near
RS232_out proc near
push ax
push bx
push cx
push dx
;/* : Set up RS232 */
mov bl,al ;Save char to bl temporarily
mov dx,MCR ;Modem control Register
add dx,COM_PORT
mov al,MCRREAD ;Out2, DTR, RTS
out dx,al
sub cx,cx ;Initialize timeout count
mov dx,MSR ;Modem status Register
add dx,COM_PORT
;/* : Wait for CTS (Clear to send) */
RS150:
sub cx,cx ;Another timeout count
TIME_LOOP:
in al,dx
test al,MSRCTS ;Clear to send?
jnz SEND_CLEAR ;yes
loop TIME_LOOP ;No, loop til timeout
;/* : Too long, exit */
mov ah,INTERRUPT_STATUS
mov al, ISCTSTO ; record CTS timeout
call put_inbuff
jmp short RSXIT ;And QUIT
;/* : Wait for THRE (Transmit Holding Register Empty) */
SEND_CLEAR:
mov dx,LSR ;Line Status register
add dx,COM_PORT
sub cx,cx ;Another time out
STATUS_TIMING:
in al,dx ;LSR status
test al,LSRTHRE ;Transmit holding reg empty
jnz SEND_CHAR ;Yes
loop STATUS_TIMING ;No, loop til timeout
;/* : Too long, exit */
mov ah,INTERRUPT_STATUS
mov al,ISTHRETO
call put_inbuff ;record error
jmp short RSXIT ;And QUIT
;/* : Get line status , send char */
SEND_CHAR:
mov ah,al ;Get line status for return
and ah,MASK7 ;mask bit 7
mov al,bl ;restore char to al
mov dx,THR ;transmit holding register
add dx,COM_PORT
out dx,al ;Output it to RS232
RSXIT:
pop dx ;Restore Registers
pop cx
pop bx
pop ax
ret
RS232_out endp
endps
end
| 28.969697
| 75
| 0.412918
|
fa1f6e38dab7c041f2bafb9c79619e1ddeb95165
| 350
|
asm
|
Assembly
|
programs/oeis/208/A208140.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/208/A208140.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/208/A208140.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A208140: Number of n X 6 0..1 arrays avoiding 0 0 1 and 0 1 1 horizontally and 0 0 1 and 1 0 1 vertically.
; 16,256,1600,6400,19600,50176,112896,230400,435600,774400,1308736,2119936,3312400,5017600,7398400,10653696,15023376,20793600,28302400,37945600,50183056,65545216,84640000,108160000,136890000,171714816
mov $1,-4
bin $1,$0
pow $1,2
mul $1,16
| 43.75
| 200
| 0.774286
|
37bd6bb9435e5a1521b51d1798fe8d9ba451d299
| 52,880
|
asm
|
Assembly
|
target/cos_117/disasm/iop_overlay1/UFILE.asm
|
jrrk2/cray-sim
|
52c9639808d6890517092637b188282c00cce4f7
|
[
"BSL-1.0"
] | 49
|
2020-10-09T12:29:16.000Z
|
2022-03-12T02:33:35.000Z
|
target/cos_117/disasm/iop_overlay1/UFILE.asm
|
jrrk2/cray-sim
|
52c9639808d6890517092637b188282c00cce4f7
|
[
"BSL-1.0"
] | 1
|
2021-12-29T15:59:25.000Z
|
2021-12-29T15:59:25.000Z
|
target/cos_117/disasm/iop_overlay1/UFILE.asm
|
jrrk2/cray-sim
|
52c9639808d6890517092637b188282c00cce4f7
|
[
"BSL-1.0"
] | 6
|
2021-04-12T06:10:32.000Z
|
2022-02-08T23:11:19.000Z
|
0x0000 (0x000000) 0x7466- f:00072 d: 102 | R = P + 102 (0x0066)
0x0001 (0x000002) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0002 (0x000004) 0x2919- f:00024 d: 281 | OR[281] = A
0x0003 (0x000006) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0004 (0x000008) 0x291A- f:00024 d: 282 | OR[282] = A
0x0005 (0x00000A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0006 (0x00000C) 0x2920- f:00024 d: 288 | OR[288] = A
0x0007 (0x00000E) 0x1800-0xFFFF f:00014 d: 0 | A = 65535 (0xFFFF)
0x0009 (0x000012) 0x290D- f:00024 d: 269 | OR[269] = A
0x000A (0x000014) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x000B (0x000016) 0x290E- f:00024 d: 270 | OR[270] = A
0x000C (0x000018) 0x2006- f:00020 d: 6 | A = OR[6]
0x000D (0x00001A) 0x2910- f:00024 d: 272 | OR[272] = A
0x000E (0x00001C) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x000F (0x00001E) 0x2923- f:00024 d: 291 | OR[291] = A
0x0010 (0x000020) 0x1800-0x00A9 f:00014 d: 0 | A = 169 (0x00A9)
0x0012 (0x000024) 0x2924- f:00024 d: 292 | OR[292] = A
0x0013 (0x000026) 0x1800-0x444B f:00014 d: 0 | A = 17483 (0x444B)
0x0015 (0x00002A) 0x2925- f:00024 d: 293 | OR[293] = A
0x0016 (0x00002C) 0x210D- f:00020 d: 269 | A = OR[269]
0x0017 (0x00002E) 0x2926- f:00024 d: 294 | OR[294] = A
0x0018 (0x000030) 0x1003- f:00010 d: 3 | A = 3 (0x0003)
0x0019 (0x000032) 0x2927- f:00024 d: 295 | OR[295] = A
0x001A (0x000034) 0x210E- f:00020 d: 270 | A = OR[270]
0x001B (0x000036) 0x2928- f:00024 d: 296 | OR[296] = A
0x001C (0x000038) 0x210F- f:00020 d: 271 | A = OR[271]
0x001D (0x00003A) 0x2929- f:00024 d: 297 | OR[297] = A
0x001E (0x00003C) 0x2110- f:00020 d: 272 | A = OR[272]
0x001F (0x00003E) 0x292A- f:00024 d: 298 | OR[298] = A
0x0020 (0x000040) 0x100D- f:00010 d: 13 | A = 13 (0x000D)
0x0021 (0x000042) 0x292B- f:00024 d: 299 | OR[299] = A
0x0022 (0x000044) 0x1123- f:00010 d: 291 | A = 291 (0x0123)
0x0023 (0x000046) 0x5800- f:00054 d: 0 | B = A
0x0024 (0x000048) 0x1800-0x1718 f:00014 d: 0 | A = 5912 (0x1718)
0x0026 (0x00004C) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0027 (0x00004E) 0x748B- f:00072 d: 139 | R = P + 139 (0x00B2)
0x0028 (0x000050) 0xAE03-0x0297 f:00127 d: 3 | P = OR[3]+663 (0x0297), A # 0
0x002A (0x000054) 0x7475- f:00072 d: 117 | R = P + 117 (0x009F)
0x002B (0x000056) 0x743B- f:00072 d: 59 | R = P + 59 (0x0066)
0x002C (0x000058) 0x211B- f:00020 d: 283 | A = OR[283]
0x002D (0x00005A) 0x1604- f:00013 d: 4 | A = A - 4 (0x0004)
0x002E (0x00005C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0030), A = 0
0x002F (0x00005E) 0x700D- f:00070 d: 13 | P = P + 13 (0x003C)
0x0030 (0x000060) 0x211D- f:00020 d: 285 | A = OR[285]
0x0031 (0x000062) 0x8402- f:00102 d: 2 | P = P + 2 (0x0033), A = 0
0x0032 (0x000064) 0x7005- f:00070 d: 5 | P = P + 5 (0x0037)
0x0033 (0x000066) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0034 (0x000068) 0x2921- f:00024 d: 289 | OR[289] = A
0x0035 (0x00006A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0036 (0x00006C) 0x2922- f:00024 d: 290 | OR[290] = A
0x0037 (0x00006E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0038 (0x000070) 0x291C- f:00024 d: 284 | OR[284] = A
0x0039 (0x000072) 0x7A03-0x0297 f:00075 d: 3 | P = OR[3]+663 (0x0297)
0x003B (0x000076) 0x702A- f:00070 d: 42 | P = P + 42 (0x0065)
0x003C (0x000078) 0x211B- f:00020 d: 283 | A = OR[283]
0x003D (0x00007A) 0x1620- f:00013 d: 32 | A = A - 32 (0x0020)
0x003E (0x00007C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0040), A = 0
0x003F (0x00007E) 0x7006- f:00070 d: 6 | P = P + 6 (0x0045)
0x0040 (0x000080) 0x211A- f:00020 d: 282 | A = OR[282]
0x0041 (0x000082) 0x8402- f:00102 d: 2 | P = P + 2 (0x0043), A = 0
0x0042 (0x000084) 0x7003- f:00070 d: 3 | P = P + 3 (0x0045)
0x0043 (0x000086) 0x74D4- f:00072 d: 212 | R = P + 212 (0x0117)
0x0044 (0x000088) 0x7021- f:00070 d: 33 | P = P + 33 (0x0065)
0x0045 (0x00008A) 0x211A- f:00020 d: 282 | A = OR[282]
0x0046 (0x00008C) 0x8404- f:00102 d: 4 | P = P + 4 (0x004A), A = 0
0x0047 (0x00008E) 0x2120- f:00020 d: 288 | A = OR[288]
0x0048 (0x000090) 0x8602- f:00103 d: 2 | P = P + 2 (0x004A), A # 0
0x0049 (0x000092) 0x7003- f:00070 d: 3 | P = P + 3 (0x004C)
0x004A (0x000094) 0x7019- f:00070 d: 25 | P = P + 25 (0x0063)
0x004B (0x000096) 0x701A- f:00070 d: 26 | P = P + 26 (0x0065)
0x004C (0x000098) 0x211B- f:00020 d: 283 | A = OR[283]
0x004D (0x00009A) 0x1605- f:00013 d: 5 | A = A - 5 (0x0005)
0x004E (0x00009C) 0x8405- f:00102 d: 5 | P = P + 5 (0x0053), A = 0
0x004F (0x00009E) 0x211B- f:00020 d: 283 | A = OR[283]
0x0050 (0x0000A0) 0x1606- f:00013 d: 6 | A = A - 6 (0x0006)
0x0051 (0x0000A2) 0x8402- f:00102 d: 2 | P = P + 2 (0x0053), A = 0
0x0052 (0x0000A4) 0x7005- f:00070 d: 5 | P = P + 5 (0x0057)
0x0053 (0x0000A6) 0x211D- f:00020 d: 285 | A = OR[285]
0x0054 (0x0000A8) 0x860F- f:00103 d: 15 | P = P + 15 (0x0063), A # 0
0x0055 (0x0000AA) 0x7546- f:00072 d: 326 | R = P + 326 (0x019B)
0x0056 (0x0000AC) 0x700F- f:00070 d: 15 | P = P + 15 (0x0065)
0x0057 (0x0000AE) 0x211B- f:00020 d: 283 | A = OR[283]
0x0058 (0x0000B0) 0x1607- f:00013 d: 7 | A = A - 7 (0x0007)
0x0059 (0x0000B2) 0x8405- f:00102 d: 5 | P = P + 5 (0x005E), A = 0
0x005A (0x0000B4) 0x211B- f:00020 d: 283 | A = OR[283]
0x005B (0x0000B6) 0x1608- f:00013 d: 8 | A = A - 8 (0x0008)
0x005C (0x0000B8) 0x8402- f:00102 d: 2 | P = P + 2 (0x005E), A = 0
0x005D (0x0000BA) 0x7006- f:00070 d: 6 | P = P + 6 (0x0063)
0x005E (0x0000BC) 0x211D- f:00020 d: 285 | A = OR[285]
0x005F (0x0000BE) 0x8404- f:00102 d: 4 | P = P + 4 (0x0063), A = 0
0x0060 (0x0000C0) 0x7E03-0x020C f:00077 d: 3 | R = OR[3]+524 (0x020C)
0x0062 (0x0000C4) 0x7003- f:00070 d: 3 | P = P + 3 (0x0065)
0x0063 (0x0000C6) 0x1024- f:00010 d: 36 | A = 36 (0x0024)
0x0064 (0x0000C8) 0x291C- f:00024 d: 284 | OR[284] = A
0x0065 (0x0000CA) 0x723B- f:00071 d: 59 | P = P - 59 (0x002A)
0x0066 (0x0000CC) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0067 (0x0000CE) 0x290D- f:00024 d: 269 | OR[269] = A
0x0068 (0x0000D0) 0x2118- f:00020 d: 280 | A = OR[280]
0x0069 (0x0000D2) 0x1414- f:00012 d: 20 | A = A + 20 (0x0014)
0x006A (0x0000D4) 0x2908- f:00024 d: 264 | OR[264] = A
0x006B (0x0000D6) 0x3108- f:00030 d: 264 | A = (OR[264])
0x006C (0x0000D8) 0x8613- f:00103 d: 19 | P = P + 19 (0x007F), A # 0
0x006D (0x0000DA) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x006E (0x0000DC) 0x2923- f:00024 d: 291 | OR[291] = A
0x006F (0x0000DE) 0x2118- f:00020 d: 280 | A = OR[280]
0x0070 (0x0000E0) 0x1414- f:00012 d: 20 | A = A + 20 (0x0014)
0x0071 (0x0000E2) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0072 (0x0000E4) 0x2924- f:00024 d: 292 | OR[292] = A
0x0073 (0x0000E6) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0074 (0x0000E8) 0x2925- f:00024 d: 293 | OR[293] = A
0x0075 (0x0000EA) 0x1123- f:00010 d: 291 | A = 291 (0x0123)
0x0076 (0x0000EC) 0x5800- f:00054 d: 0 | B = A
0x0077 (0x0000EE) 0x1800-0x1718 f:00014 d: 0 | A = 5912 (0x1718)
0x0079 (0x0000F2) 0x7C09- f:00076 d: 9 | R = OR[9]
0x007A (0x0000F4) 0x2006- f:00020 d: 6 | A = OR[6]
0x007B (0x0000F6) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x007C (0x0000F8) 0x2908- f:00024 d: 264 | OR[264] = A
0x007D (0x0000FA) 0x3108- f:00030 d: 264 | A = (OR[264])
0x007E (0x0000FC) 0x290D- f:00024 d: 269 | OR[269] = A
0x007F (0x0000FE) 0x2118- f:00020 d: 280 | A = OR[280]
0x0080 (0x000100) 0x1414- f:00012 d: 20 | A = A + 20 (0x0014)
0x0081 (0x000102) 0x2908- f:00024 d: 264 | OR[264] = A
0x0082 (0x000104) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0083 (0x000106) 0x291B- f:00024 d: 283 | OR[283] = A
0x0084 (0x000108) 0x2118- f:00020 d: 280 | A = OR[280]
0x0085 (0x00010A) 0x1414- f:00012 d: 20 | A = A + 20 (0x0014)
0x0086 (0x00010C) 0x2908- f:00024 d: 264 | OR[264] = A
0x0087 (0x00010E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0088 (0x000110) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0089 (0x000112) 0x210D- f:00020 d: 269 | A = OR[269]
0x008A (0x000114) 0x2118- f:00020 d: 280 | A = OR[280]
0x008B (0x000116) 0x1417- f:00012 d: 23 | A = A + 23 (0x0017)
0x008C (0x000118) 0x2908- f:00024 d: 264 | OR[264] = A
0x008D (0x00011A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x008E (0x00011C) 0x291E- f:00024 d: 286 | OR[286] = A
0x008F (0x00011E) 0x2118- f:00020 d: 280 | A = OR[280]
0x0090 (0x000120) 0x1417- f:00012 d: 23 | A = A + 23 (0x0017)
0x0091 (0x000122) 0x2908- f:00024 d: 264 | OR[264] = A
0x0092 (0x000124) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0093 (0x000126) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0094 (0x000128) 0x2118- f:00020 d: 280 | A = OR[280]
0x0095 (0x00012A) 0x1418- f:00012 d: 24 | A = A + 24 (0x0018)
0x0096 (0x00012C) 0x2908- f:00024 d: 264 | OR[264] = A
0x0097 (0x00012E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0098 (0x000130) 0x291F- f:00024 d: 287 | OR[287] = A
0x0099 (0x000132) 0x2118- f:00020 d: 280 | A = OR[280]
0x009A (0x000134) 0x1418- f:00012 d: 24 | A = A + 24 (0x0018)
0x009B (0x000136) 0x2908- f:00024 d: 264 | OR[264] = A
0x009C (0x000138) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x009D (0x00013A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x009E (0x00013C) 0x0200- f:00001 d: 0 | EXIT
0x009F (0x00013E) 0x2118- f:00020 d: 280 | A = OR[280]
0x00A0 (0x000140) 0x141C- f:00012 d: 28 | A = A + 28 (0x001C)
0x00A1 (0x000142) 0x290D- f:00024 d: 269 | OR[269] = A
0x00A2 (0x000144) 0x211C- f:00020 d: 284 | A = OR[284]
0x00A3 (0x000146) 0x390D- f:00034 d: 269 | (OR[269]) = A
0x00A4 (0x000148) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x00A5 (0x00014A) 0x310D- f:00030 d: 269 | A = (OR[269])
0x00A6 (0x00014C) 0x840B- f:00102 d: 11 | P = P + 11 (0x00B1), A = 0
0x00A7 (0x00014E) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x00A8 (0x000150) 0x2923- f:00024 d: 291 | OR[291] = A
0x00A9 (0x000152) 0x210D- f:00020 d: 269 | A = OR[269]
0x00AA (0x000154) 0x2924- f:00024 d: 292 | OR[292] = A
0x00AB (0x000156) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00AC (0x000158) 0x2925- f:00024 d: 293 | OR[293] = A
0x00AD (0x00015A) 0x1123- f:00010 d: 291 | A = 291 (0x0123)
0x00AE (0x00015C) 0x5800- f:00054 d: 0 | B = A
0x00AF (0x00015E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00B0 (0x000160) 0x7C09- f:00076 d: 9 | R = OR[9]
0x00B1 (0x000162) 0x0200- f:00001 d: 0 | EXIT
0x00B2 (0x000164) 0x2913- f:00024 d: 275 | OR[275] = A
0x00B3 (0x000166) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00B4 (0x000168) 0x291C- f:00024 d: 284 | OR[284] = A
0x00B5 (0x00016A) 0x2113- f:00020 d: 275 | A = OR[275]
0x00B6 (0x00016C) 0x8402- f:00102 d: 2 | P = P + 2 (0x00B8), A = 0
0x00B7 (0x00016E) 0x7004- f:00070 d: 4 | P = P + 4 (0x00BB)
0x00B8 (0x000170) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00B9 (0x000172) 0x0200- f:00001 d: 0 | EXIT
0x00BA (0x000174) 0x7018- f:00070 d: 24 | P = P + 24 (0x00D2)
0x00BB (0x000176) 0x2113- f:00020 d: 275 | A = OR[275]
0x00BC (0x000178) 0x1E00-0x0401 f:00017 d: 0 | A = A - 1025 (0x0401)
0x00BE (0x00017C) 0x8402- f:00102 d: 2 | P = P + 2 (0x00C0), A = 0
0x00BF (0x00017E) 0x7004- f:00070 d: 4 | P = P + 4 (0x00C3)
0x00C0 (0x000180) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00C1 (0x000182) 0x0200- f:00001 d: 0 | EXIT
0x00C2 (0x000184) 0x7010- f:00070 d: 16 | P = P + 16 (0x00D2)
0x00C3 (0x000186) 0x2113- f:00020 d: 275 | A = OR[275]
0x00C4 (0x000188) 0x1E00-0x0402 f:00017 d: 0 | A = A - 1026 (0x0402)
0x00C6 (0x00018C) 0x8402- f:00102 d: 2 | P = P + 2 (0x00C8), A = 0
0x00C7 (0x00018E) 0x7004- f:00070 d: 4 | P = P + 4 (0x00CB)
0x00C8 (0x000190) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00C9 (0x000192) 0x0200- f:00001 d: 0 | EXIT
0x00CA (0x000194) 0x7008- f:00070 d: 8 | P = P + 8 (0x00D2)
0x00CB (0x000196) 0x2113- f:00020 d: 275 | A = OR[275]
0x00CC (0x000198) 0x1E00-0x0403 f:00017 d: 0 | A = A - 1027 (0x0403)
0x00CE (0x00019C) 0x8402- f:00102 d: 2 | P = P + 2 (0x00D0), A = 0
0x00CF (0x00019E) 0x7003- f:00070 d: 3 | P = P + 3 (0x00D2)
0x00D0 (0x0001A0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00D1 (0x0001A2) 0x0200- f:00001 d: 0 | EXIT
0x00D2 (0x0001A4) 0x2113- f:00020 d: 275 | A = OR[275]
0x00D3 (0x0001A6) 0x1602- f:00013 d: 2 | A = A - 2 (0x0002)
0x00D4 (0x0001A8) 0x8402- f:00102 d: 2 | P = P + 2 (0x00D6), A = 0
0x00D5 (0x0001AA) 0x7004- f:00070 d: 4 | P = P + 4 (0x00D9)
0x00D6 (0x0001AC) 0x1021- f:00010 d: 33 | A = 33 (0x0021)
0x00D7 (0x0001AE) 0x291C- f:00024 d: 284 | OR[284] = A
0x00D8 (0x0001B0) 0x703D- f:00070 d: 61 | P = P + 61 (0x0115)
0x00D9 (0x0001B2) 0x2113- f:00020 d: 275 | A = OR[275]
0x00DA (0x0001B4) 0x1605- f:00013 d: 5 | A = A - 5 (0x0005)
0x00DB (0x0001B6) 0x8402- f:00102 d: 2 | P = P + 2 (0x00DD), A = 0
0x00DC (0x0001B8) 0x7004- f:00070 d: 4 | P = P + 4 (0x00E0)
0x00DD (0x0001BA) 0x1020- f:00010 d: 32 | A = 32 (0x0020)
0x00DE (0x0001BC) 0x291C- f:00024 d: 284 | OR[284] = A
0x00DF (0x0001BE) 0x7036- f:00070 d: 54 | P = P + 54 (0x0115)
0x00E0 (0x0001C0) 0x2113- f:00020 d: 275 | A = OR[275]
0x00E1 (0x0001C2) 0x160A- f:00013 d: 10 | A = A - 10 (0x000A)
0x00E2 (0x0001C4) 0x8402- f:00102 d: 2 | P = P + 2 (0x00E4), A = 0
0x00E3 (0x0001C6) 0x7004- f:00070 d: 4 | P = P + 4 (0x00E7)
0x00E4 (0x0001C8) 0x1023- f:00010 d: 35 | A = 35 (0x0023)
0x00E5 (0x0001CA) 0x291C- f:00024 d: 284 | OR[284] = A
0x00E6 (0x0001CC) 0x702F- f:00070 d: 47 | P = P + 47 (0x0115)
0x00E7 (0x0001CE) 0x2113- f:00020 d: 275 | A = OR[275]
0x00E8 (0x0001D0) 0x1E00-0x0441 f:00017 d: 0 | A = A - 1089 (0x0441)
0x00EA (0x0001D4) 0x8402- f:00102 d: 2 | P = P + 2 (0x00EC), A = 0
0x00EB (0x0001D6) 0x7004- f:00070 d: 4 | P = P + 4 (0x00EF)
0x00EC (0x0001D8) 0x1027- f:00010 d: 39 | A = 39 (0x0027)
0x00ED (0x0001DA) 0x291C- f:00024 d: 284 | OR[284] = A
0x00EE (0x0001DC) 0x7027- f:00070 d: 39 | P = P + 39 (0x0115)
0x00EF (0x0001DE) 0x2113- f:00020 d: 275 | A = OR[275]
0x00F0 (0x0001E0) 0x1E00-0x0443 f:00017 d: 0 | A = A - 1091 (0x0443)
0x00F2 (0x0001E4) 0x8402- f:00102 d: 2 | P = P + 2 (0x00F4), A = 0
0x00F3 (0x0001E6) 0x7004- f:00070 d: 4 | P = P + 4 (0x00F7)
0x00F4 (0x0001E8) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x00F5 (0x0001EA) 0x291C- f:00024 d: 284 | OR[284] = A
0x00F6 (0x0001EC) 0x701F- f:00070 d: 31 | P = P + 31 (0x0115)
0x00F7 (0x0001EE) 0x2113- f:00020 d: 275 | A = OR[275]
0x00F8 (0x0001F0) 0x1E00-0x0444 f:00017 d: 0 | A = A - 1092 (0x0444)
0x00FA (0x0001F4) 0x8402- f:00102 d: 2 | P = P + 2 (0x00FC), A = 0
0x00FB (0x0001F6) 0x7004- f:00070 d: 4 | P = P + 4 (0x00FF)
0x00FC (0x0001F8) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x00FD (0x0001FA) 0x291C- f:00024 d: 284 | OR[284] = A
0x00FE (0x0001FC) 0x7017- f:00070 d: 23 | P = P + 23 (0x0115)
0x00FF (0x0001FE) 0x2113- f:00020 d: 275 | A = OR[275]
0x0100 (0x000200) 0x1E00-0x0445 f:00017 d: 0 | A = A - 1093 (0x0445)
0x0102 (0x000204) 0x8402- f:00102 d: 2 | P = P + 2 (0x0104), A = 0
0x0103 (0x000206) 0x7004- f:00070 d: 4 | P = P + 4 (0x0107)
0x0104 (0x000208) 0x1029- f:00010 d: 41 | A = 41 (0x0029)
0x0105 (0x00020A) 0x291C- f:00024 d: 284 | OR[284] = A
0x0106 (0x00020C) 0x700F- f:00070 d: 15 | P = P + 15 (0x0115)
0x0107 (0x00020E) 0x2113- f:00020 d: 275 | A = OR[275]
0x0108 (0x000210) 0x1E00-0x0446 f:00017 d: 0 | A = A - 1094 (0x0446)
0x010A (0x000214) 0x8406- f:00102 d: 6 | P = P + 6 (0x0110), A = 0
0x010B (0x000216) 0x2113- f:00020 d: 275 | A = OR[275]
0x010C (0x000218) 0x1E00-0x0447 f:00017 d: 0 | A = A - 1095 (0x0447)
0x010E (0x00021C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0110), A = 0
0x010F (0x00021E) 0x7004- f:00070 d: 4 | P = P + 4 (0x0113)
0x0110 (0x000220) 0x1027- f:00010 d: 39 | A = 39 (0x0027)
0x0111 (0x000222) 0x291C- f:00024 d: 284 | OR[284] = A
0x0112 (0x000224) 0x7003- f:00070 d: 3 | P = P + 3 (0x0115)
0x0113 (0x000226) 0x1022- f:00010 d: 34 | A = 34 (0x0022)
0x0114 (0x000228) 0x291C- f:00024 d: 284 | OR[284] = A
0x0115 (0x00022A) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0116 (0x00022C) 0x0200- f:00001 d: 0 | EXIT
0x0117 (0x00022E) 0x2118- f:00020 d: 280 | A = OR[280]
0x0118 (0x000230) 0x1419- f:00012 d: 25 | A = A + 25 (0x0019)
0x0119 (0x000232) 0x2908- f:00024 d: 264 | OR[264] = A
0x011A (0x000234) 0x3108- f:00030 d: 264 | A = (OR[264])
0x011B (0x000236) 0x2913- f:00024 d: 275 | OR[275] = A
0x011C (0x000238) 0x2113- f:00020 d: 275 | A = OR[275]
0x011D (0x00023A) 0x141C- f:00012 d: 28 | A = A + 28 (0x001C)
0x011E (0x00023C) 0x2908- f:00024 d: 264 | OR[264] = A
0x011F (0x00023E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0120 (0x000240) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0121 (0x000242) 0x291D- f:00024 d: 285 | OR[285] = A
0x0122 (0x000244) 0x2113- f:00020 d: 275 | A = OR[275]
0x0123 (0x000246) 0x140C- f:00012 d: 12 | A = A + 12 (0x000C)
0x0124 (0x000248) 0x2914- f:00024 d: 276 | OR[276] = A
0x0125 (0x00024A) 0x2113- f:00020 d: 275 | A = OR[275]
0x0126 (0x00024C) 0x1414- f:00012 d: 20 | A = A + 20 (0x0014)
0x0127 (0x00024E) 0x2915- f:00024 d: 277 | OR[277] = A
0x0128 (0x000250) 0x211D- f:00020 d: 285 | A = OR[285]
0x0129 (0x000252) 0x8402- f:00102 d: 2 | P = P + 2 (0x012B), A = 0
0x012A (0x000254) 0x7018- f:00070 d: 24 | P = P + 24 (0x0142)
0x012B (0x000256) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x012C (0x000258) 0x2923- f:00024 d: 291 | OR[291] = A
0x012D (0x00025A) 0x1800-0x00E7 f:00014 d: 0 | A = 231 (0x00E7)
0x012F (0x00025E) 0x2924- f:00024 d: 292 | OR[292] = A
0x0130 (0x000260) 0x2119- f:00020 d: 281 | A = OR[281]
0x0131 (0x000262) 0x2925- f:00024 d: 293 | OR[293] = A
0x0132 (0x000264) 0x2114- f:00020 d: 276 | A = OR[276]
0x0133 (0x000266) 0x2926- f:00024 d: 294 | OR[294] = A
0x0134 (0x000268) 0x2115- f:00020 d: 277 | A = OR[277]
0x0135 (0x00026A) 0x2927- f:00024 d: 295 | OR[295] = A
0x0136 (0x00026C) 0x100E- f:00010 d: 14 | A = 14 (0x000E)
0x0137 (0x00026E) 0x2928- f:00024 d: 296 | OR[296] = A
0x0138 (0x000270) 0x1015- f:00010 d: 21 | A = 21 (0x0015)
0x0139 (0x000272) 0x2929- f:00024 d: 297 | OR[297] = A
0x013A (0x000274) 0x1016- f:00010 d: 22 | A = 22 (0x0016)
0x013B (0x000276) 0x292A- f:00024 d: 298 | OR[298] = A
0x013C (0x000278) 0x1123- f:00010 d: 291 | A = 291 (0x0123)
0x013D (0x00027A) 0x5800- f:00054 d: 0 | B = A
0x013E (0x00027C) 0x1800-0x1718 f:00014 d: 0 | A = 5912 (0x1718)
0x0140 (0x000280) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0141 (0x000282) 0x7058- f:00070 d: 88 | P = P + 88 (0x0199)
0x0142 (0x000284) 0x2118- f:00020 d: 280 | A = OR[280]
0x0143 (0x000286) 0x1419- f:00012 d: 25 | A = A + 25 (0x0019)
0x0144 (0x000288) 0x2908- f:00024 d: 264 | OR[264] = A
0x0145 (0x00028A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0146 (0x00028C) 0x2913- f:00024 d: 275 | OR[275] = A
0x0147 (0x00028E) 0x2113- f:00020 d: 275 | A = OR[275]
0x0148 (0x000290) 0x141C- f:00012 d: 28 | A = A + 28 (0x001C)
0x0149 (0x000292) 0x2908- f:00024 d: 264 | OR[264] = A
0x014A (0x000294) 0x3108- f:00030 d: 264 | A = (OR[264])
0x014B (0x000296) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x014C (0x000298) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x014D (0x00029A) 0x8402- f:00102 d: 2 | P = P + 2 (0x014F), A = 0
0x014E (0x00029C) 0x702A- f:00070 d: 42 | P = P + 42 (0x0178)
0x014F (0x00029E) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x0150 (0x0002A0) 0x2923- f:00024 d: 291 | OR[291] = A
0x0151 (0x0002A2) 0x1800-0x00E7 f:00014 d: 0 | A = 231 (0x00E7)
0x0153 (0x0002A6) 0x2924- f:00024 d: 292 | OR[292] = A
0x0154 (0x0002A8) 0x2119- f:00020 d: 281 | A = OR[281]
0x0155 (0x0002AA) 0x2925- f:00024 d: 293 | OR[293] = A
0x0156 (0x0002AC) 0x2114- f:00020 d: 276 | A = OR[276]
0x0157 (0x0002AE) 0x2926- f:00024 d: 294 | OR[294] = A
0x0158 (0x0002B0) 0x2115- f:00020 d: 277 | A = OR[277]
0x0159 (0x0002B2) 0x2927- f:00024 d: 295 | OR[295] = A
0x015A (0x0002B4) 0x100E- f:00010 d: 14 | A = 14 (0x000E)
0x015B (0x0002B6) 0x2928- f:00024 d: 296 | OR[296] = A
0x015C (0x0002B8) 0x1015- f:00010 d: 21 | A = 21 (0x0015)
0x015D (0x0002BA) 0x2929- f:00024 d: 297 | OR[297] = A
0x015E (0x0002BC) 0x1016- f:00010 d: 22 | A = 22 (0x0016)
0x015F (0x0002BE) 0x292A- f:00024 d: 298 | OR[298] = A
0x0160 (0x0002C0) 0x1123- f:00010 d: 291 | A = 291 (0x0123)
0x0161 (0x0002C2) 0x5800- f:00054 d: 0 | B = A
0x0162 (0x0002C4) 0x1800-0x1718 f:00014 d: 0 | A = 5912 (0x1718)
0x0164 (0x0002C8) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0165 (0x0002CA) 0x211A- f:00020 d: 282 | A = OR[282]
0x0166 (0x0002CC) 0x8602- f:00103 d: 2 | P = P + 2 (0x0168), A # 0
0x0167 (0x0002CE) 0x7011- f:00070 d: 17 | P = P + 17 (0x0178)
0x0168 (0x0002D0) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x0169 (0x0002D2) 0x2923- f:00024 d: 291 | OR[291] = A
0x016A (0x0002D4) 0x1800-0x00EA f:00014 d: 0 | A = 234 (0x00EA)
0x016C (0x0002D8) 0x2924- f:00024 d: 292 | OR[292] = A
0x016D (0x0002DA) 0x2119- f:00020 d: 281 | A = OR[281]
0x016E (0x0002DC) 0x2925- f:00024 d: 293 | OR[293] = A
0x016F (0x0002DE) 0x211A- f:00020 d: 282 | A = OR[282]
0x0170 (0x0002E0) 0x2926- f:00024 d: 294 | OR[294] = A
0x0171 (0x0002E2) 0x1123- f:00010 d: 291 | A = 291 (0x0123)
0x0172 (0x0002E4) 0x5800- f:00054 d: 0 | B = A
0x0173 (0x0002E6) 0x1800-0x1718 f:00014 d: 0 | A = 5912 (0x1718)
0x0175 (0x0002EA) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0176 (0x0002EC) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0177 (0x0002EE) 0x291A- f:00024 d: 282 | OR[282] = A
0x0178 (0x0002F0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0179 (0x0002F2) 0x2921- f:00024 d: 289 | OR[289] = A
0x017A (0x0002F4) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x017B (0x0002F6) 0x2922- f:00024 d: 290 | OR[290] = A
0x017C (0x0002F8) 0x2118- f:00020 d: 280 | A = OR[280]
0x017D (0x0002FA) 0x1419- f:00012 d: 25 | A = A + 25 (0x0019)
0x017E (0x0002FC) 0x2908- f:00024 d: 264 | OR[264] = A
0x017F (0x0002FE) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0180 (0x000300) 0x2913- f:00024 d: 275 | OR[275] = A
0x0181 (0x000302) 0x2113- f:00020 d: 275 | A = OR[275]
0x0182 (0x000304) 0x140C- f:00012 d: 12 | A = A + 12 (0x000C)
0x0183 (0x000306) 0x2914- f:00024 d: 276 | OR[276] = A
0x0184 (0x000308) 0x2113- f:00020 d: 275 | A = OR[275]
0x0185 (0x00030A) 0x1414- f:00012 d: 20 | A = A + 20 (0x0014)
0x0186 (0x00030C) 0x2915- f:00024 d: 277 | OR[277] = A
0x0187 (0x00030E) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x0188 (0x000310) 0x2923- f:00024 d: 291 | OR[291] = A
0x0189 (0x000312) 0x1800-0x00E9 f:00014 d: 0 | A = 233 (0x00E9)
0x018B (0x000316) 0x2924- f:00024 d: 292 | OR[292] = A
0x018C (0x000318) 0x2119- f:00020 d: 281 | A = OR[281]
0x018D (0x00031A) 0x2925- f:00024 d: 293 | OR[293] = A
0x018E (0x00031C) 0x2114- f:00020 d: 276 | A = OR[276]
0x018F (0x00031E) 0x2926- f:00024 d: 294 | OR[294] = A
0x0190 (0x000320) 0x2115- f:00020 d: 277 | A = OR[277]
0x0191 (0x000322) 0x2927- f:00024 d: 295 | OR[295] = A
0x0192 (0x000324) 0x100E- f:00010 d: 14 | A = 14 (0x000E)
0x0193 (0x000326) 0x2928- f:00024 d: 296 | OR[296] = A
0x0194 (0x000328) 0x1123- f:00010 d: 291 | A = 291 (0x0123)
0x0195 (0x00032A) 0x5800- f:00054 d: 0 | B = A
0x0196 (0x00032C) 0x1800-0x1718 f:00014 d: 0 | A = 5912 (0x1718)
0x0198 (0x000330) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0199 (0x000332) 0x76E7- f:00073 d: 231 | R = P - 231 (0x00B2)
0x019A (0x000334) 0x0200- f:00001 d: 0 | EXIT
0x019B (0x000336) 0x1800-0x0200 f:00014 d: 0 | A = 512 (0x0200)
0x019D (0x00033A) 0x0A03- f:00005 d: 3 | A = A < 3 (0x0003)
0x019E (0x00033C) 0x2908- f:00024 d: 264 | OR[264] = A
0x019F (0x00033E) 0x211F- f:00020 d: 287 | A = OR[287]
0x01A0 (0x000340) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x01A1 (0x000342) 0x8F3E- f:00107 d: 318 | P = P - 318 (0x0063), A # 0
0x01A2 (0x000344) 0x2121- f:00020 d: 289 | A = OR[289]
0x01A3 (0x000346) 0x8402- f:00102 d: 2 | P = P + 2 (0x01A5), A = 0
0x01A4 (0x000348) 0x700A- f:00070 d: 10 | P = P + 10 (0x01AE)
0x01A5 (0x00034A) 0x2122- f:00020 d: 290 | A = OR[290]
0x01A6 (0x00034C) 0x8402- f:00102 d: 2 | P = P + 2 (0x01A8), A = 0
0x01A7 (0x00034E) 0x7007- f:00070 d: 7 | P = P + 7 (0x01AE)
0x01A8 (0x000350) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x01A9 (0x000352) 0x2920- f:00024 d: 288 | OR[288] = A
0x01AA (0x000354) 0x1025- f:00010 d: 37 | A = 37 (0x0025)
0x01AB (0x000356) 0x291C- f:00024 d: 284 | OR[284] = A
0x01AC (0x000358) 0x0200- f:00001 d: 0 | EXIT
0x01AD (0x00035A) 0x700F- f:00070 d: 15 | P = P + 15 (0x01BC)
0x01AE (0x00035C) 0x2121- f:00020 d: 289 | A = OR[289]
0x01AF (0x00035E) 0x8402- f:00102 d: 2 | P = P + 2 (0x01B1), A = 0
0x01B0 (0x000360) 0x7009- f:00070 d: 9 | P = P + 9 (0x01B9)
0x01B1 (0x000362) 0x2122- f:00020 d: 290 | A = OR[290]
0x01B2 (0x000364) 0x1E00-0x0200 f:00017 d: 0 | A = A - 512 (0x0200)
0x01B4 (0x000368) 0x8002- f:00100 d: 2 | P = P + 2 (0x01B6), C = 0
0x01B5 (0x00036A) 0x7004- f:00070 d: 4 | P = P + 4 (0x01B9)
0x01B6 (0x00036C) 0x2122- f:00020 d: 290 | A = OR[290]
0x01B7 (0x00036E) 0x291F- f:00024 d: 287 | OR[287] = A
0x01B8 (0x000370) 0x7004- f:00070 d: 4 | P = P + 4 (0x01BC)
0x01B9 (0x000372) 0x1800-0x0200 f:00014 d: 0 | A = 512 (0x0200)
0x01BB (0x000376) 0x291F- f:00024 d: 287 | OR[287] = A
0x01BC (0x000378) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x01BD (0x00037A) 0x290F- f:00024 d: 271 | OR[271] = A
0x01BE (0x00037C) 0x2122- f:00020 d: 290 | A = OR[290]
0x01BF (0x00037E) 0x271F- f:00023 d: 287 | A = A - OR[287]
0x01C0 (0x000380) 0x2922- f:00024 d: 290 | OR[290] = A
0x01C1 (0x000382) 0x8202- f:00101 d: 2 | P = P + 2 (0x01C3), C = 1
0x01C2 (0x000384) 0x2F21- f:00027 d: 289 | OR[289] = OR[289] - 1
0x01C3 (0x000386) 0x0810- f:00004 d: 16 | A = A > 16 (0x0010)
0x01C4 (0x000388) 0x230F- f:00021 d: 271 | A = A & OR[271]
0x01C5 (0x00038A) 0x211F- f:00020 d: 287 | A = OR[287]
0x01C6 (0x00038C) 0x0A03- f:00005 d: 3 | A = A < 3 (0x0003)
0x01C7 (0x00038E) 0x291F- f:00024 d: 287 | OR[287] = A
0x01C8 (0x000390) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x01C9 (0x000392) 0x2923- f:00024 d: 291 | OR[291] = A
0x01CA (0x000394) 0x1800-0x00F2 f:00014 d: 0 | A = 242 (0x00F2)
0x01CC (0x000398) 0x2924- f:00024 d: 292 | OR[292] = A
0x01CD (0x00039A) 0x2119- f:00020 d: 281 | A = OR[281]
0x01CE (0x00039C) 0x2925- f:00024 d: 293 | OR[293] = A
0x01CF (0x00039E) 0x211A- f:00020 d: 282 | A = OR[282]
0x01D0 (0x0003A0) 0x2926- f:00024 d: 294 | OR[294] = A
0x01D1 (0x0003A2) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x01D2 (0x0003A4) 0x2927- f:00024 d: 295 | OR[295] = A
0x01D3 (0x0003A6) 0x1800-0xFFFF f:00014 d: 0 | A = 65535 (0xFFFF)
0x01D5 (0x0003AA) 0x2928- f:00024 d: 296 | OR[296] = A
0x01D6 (0x0003AC) 0x211E- f:00020 d: 286 | A = OR[286]
0x01D7 (0x0003AE) 0x2929- f:00024 d: 297 | OR[297] = A
0x01D8 (0x0003B0) 0x1123- f:00010 d: 291 | A = 291 (0x0123)
0x01D9 (0x0003B2) 0x5800- f:00054 d: 0 | B = A
0x01DA (0x0003B4) 0x1800-0x1718 f:00014 d: 0 | A = 5912 (0x1718)
0x01DC (0x0003B8) 0x7C09- f:00076 d: 9 | R = OR[9]
0x01DD (0x0003BA) 0x772B- f:00073 d: 299 | R = P - 299 (0x00B2)
0x01DE (0x0003BC) 0x8402- f:00102 d: 2 | P = P + 2 (0x01E0), A = 0
0x01DF (0x0003BE) 0x0200- f:00001 d: 0 | EXIT
0x01E0 (0x0003C0) 0x2118- f:00020 d: 280 | A = OR[280]
0x01E1 (0x0003C2) 0x141F- f:00012 d: 31 | A = A + 31 (0x001F)
0x01E2 (0x0003C4) 0x2908- f:00024 d: 264 | OR[264] = A
0x01E3 (0x0003C6) 0x211E- f:00020 d: 286 | A = OR[286]
0x01E4 (0x0003C8) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01E5 (0x0003CA) 0x2118- f:00020 d: 280 | A = OR[280]
0x01E6 (0x0003CC) 0x1420- f:00012 d: 32 | A = A + 32 (0x0020)
0x01E7 (0x0003CE) 0x2908- f:00024 d: 264 | OR[264] = A
0x01E8 (0x0003D0) 0x211F- f:00020 d: 287 | A = OR[287]
0x01E9 (0x0003D2) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01EA (0x0003D4) 0x211B- f:00020 d: 283 | A = OR[283]
0x01EB (0x0003D6) 0x1606- f:00013 d: 6 | A = A - 6 (0x0006)
0x01EC (0x0003D8) 0x8602- f:00103 d: 2 | P = P + 2 (0x01EE), A # 0
0x01ED (0x0003DA) 0x0200- f:00001 d: 0 | EXIT
0x01EE (0x0003DC) 0x2121- f:00020 d: 289 | A = OR[289]
0x01EF (0x0003DE) 0x8402- f:00102 d: 2 | P = P + 2 (0x01F1), A = 0
0x01F0 (0x0003E0) 0x7005- f:00070 d: 5 | P = P + 5 (0x01F5)
0x01F1 (0x0003E2) 0x2122- f:00020 d: 290 | A = OR[290]
0x01F2 (0x0003E4) 0x8402- f:00102 d: 2 | P = P + 2 (0x01F4), A = 0
0x01F3 (0x0003E6) 0x7002- f:00070 d: 2 | P = P + 2 (0x01F5)
0x01F4 (0x0003E8) 0x0200- f:00001 d: 0 | EXIT
0x01F5 (0x0003EA) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x01F6 (0x0003EC) 0x291C- f:00024 d: 284 | OR[284] = A
0x01F7 (0x0003EE) 0x7758- f:00073 d: 344 | R = P - 344 (0x009F)
0x01F8 (0x0003F0) 0x7792- f:00073 d: 402 | R = P - 402 (0x0066)
0x01F9 (0x0003F2) 0x211B- f:00020 d: 283 | A = OR[283]
0x01FA (0x0003F4) 0x1605- f:00013 d: 5 | A = A - 5 (0x0005)
0x01FB (0x0003F6) 0xAE03-0x0205 f:00127 d: 3 | P = OR[3]+517 (0x0205), A # 0
0x01FD (0x0003FA) 0x7A03-0x020B f:00075 d: 3 | P = OR[3]+523 (0x020B)
0x01FF (0x0003FE) 0x211B- f:00020 d: 283 | A = OR[283]
0x0200 (0x000400) 0x1606- f:00013 d: 6 | A = A - 6 (0x0006)
0x0201 (0x000402) 0x8602- f:00103 d: 2 | P = P + 2 (0x0203), A # 0
0x0202 (0x000404) 0x7003- f:00070 d: 3 | P = P + 3 (0x0205)
0x0203 (0x000406) 0x7C34- f:00076 d: 52 | R = OR[52]
0x0204 (0x000408) 0x0000- f:00000 d: 0 | PASS
0x0205 (0x00040A) 0x726A- f:00071 d: 106 | P = P - 106 (0x019B)
0x0206 (0x00040C) 0x2120- f:00020 d: 288 | A = OR[288]
0x0207 (0x00040E) 0x8FA4- f:00107 d: 420 | P = P - 420 (0x0063), A # 0
0x0208 (0x000410) 0x211F- f:00020 d: 287 | A = OR[287]
0x0209 (0x000412) 0x1407- f:00012 d: 7 | A = A + 7 (0x0007)
0x020A (0x000414) 0x0803- f:00004 d: 3 | A = A > 3 (0x0003)
0x020B (0x000416) 0x2913- f:00024 d: 275 | OR[275] = A
0x020C (0x000418) 0x2122- f:00020 d: 290 | A = OR[290]
0x020D (0x00041A) 0x2513- f:00022 d: 275 | A = A + OR[275]
0x020E (0x00041C) 0x2922- f:00024 d: 290 | OR[290] = A
0x020F (0x00041E) 0x8002- f:00100 d: 2 | P = P + 2 (0x0211), C = 0
0x0210 (0x000420) 0x2D21- f:00026 d: 289 | OR[289] = OR[289] + 1
0x0211 (0x000422) 0x1800-0x0200 f:00014 d: 0 | A = 512 (0x0200)
0x0213 (0x000426) 0x0A03- f:00005 d: 3 | A = A < 3 (0x0003)
0x0214 (0x000428) 0x2908- f:00024 d: 264 | OR[264] = A
0x0215 (0x00042A) 0x211F- f:00020 d: 287 | A = OR[287]
0x0216 (0x00042C) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0217 (0x00042E) 0x8002- f:00100 d: 2 | P = P + 2 (0x0219), C = 0
0x0218 (0x000430) 0x7032- f:00070 d: 50 | P = P + 50 (0x024A)
0x0219 (0x000432) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x021A (0x000434) 0x2920- f:00024 d: 288 | OR[288] = A
0x021B (0x000436) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x021C (0x000438) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x021D (0x00043A) 0x290D- f:00024 d: 269 | OR[269] = A
0x021E (0x00043C) 0x211F- f:00020 d: 287 | A = OR[287]
0x021F (0x00043E) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x0220 (0x000440) 0x251E- f:00022 d: 286 | A = A + OR[286]
0x0221 (0x000442) 0x290E- f:00024 d: 270 | OR[270] = A
0x0222 (0x000444) 0x211F- f:00020 d: 287 | A = OR[287]
0x0223 (0x000446) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0224 (0x000448) 0x2908- f:00024 d: 264 | OR[264] = A
0x0225 (0x00044A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0226 (0x00044C) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0227 (0x00044E) 0x8607- f:00103 d: 7 | P = P + 7 (0x022E), A # 0
0x0228 (0x000450) 0x310E- f:00030 d: 270 | A = (OR[270])
0x0229 (0x000452) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x022A (0x000454) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x022B (0x000456) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x022C (0x000458) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x022D (0x00045A) 0x7006- f:00070 d: 6 | P = P + 6 (0x0233)
0x022E (0x00045C) 0x310E- f:00030 d: 270 | A = (OR[270])
0x022F (0x00045E) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x0231 (0x000462) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x0232 (0x000464) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x0233 (0x000466) 0x211F- f:00020 d: 287 | A = OR[287]
0x0234 (0x000468) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0235 (0x00046A) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x0236 (0x00046C) 0x2913- f:00024 d: 275 | OR[275] = A
0x0237 (0x00046E) 0x1800-0x0200 f:00014 d: 0 | A = 512 (0x0200)
0x0239 (0x000472) 0x0A02- f:00005 d: 2 | A = A < 2 (0x0002)
0x023A (0x000474) 0x2713- f:00023 d: 275 | A = A - OR[275]
0x023B (0x000476) 0x2914- f:00024 d: 276 | OR[276] = A
0x023C (0x000478) 0x211E- f:00020 d: 286 | A = OR[286]
0x023D (0x00047A) 0x2513- f:00022 d: 275 | A = A + OR[275]
0x023E (0x00047C) 0x2913- f:00024 d: 275 | OR[275] = A
0x023F (0x00047E) 0x2113- f:00020 d: 275 | A = OR[275]
0x0240 (0x000480) 0x290E- f:00024 d: 270 | OR[270] = A
0x0241 (0x000482) 0x2114- f:00020 d: 276 | A = OR[276]
0x0242 (0x000484) 0x290D- f:00024 d: 269 | OR[269] = A
0x0243 (0x000486) 0x210D- f:00020 d: 269 | A = OR[269]
0x0244 (0x000488) 0x8406- f:00102 d: 6 | P = P + 6 (0x024A), A = 0
0x0245 (0x00048A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0246 (0x00048C) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x0247 (0x00048E) 0x2F0D- f:00027 d: 269 | OR[269] = OR[269] - 1
0x0248 (0x000490) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x0249 (0x000492) 0x7206- f:00071 d: 6 | P = P - 6 (0x0243)
0x024A (0x000494) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x024B (0x000496) 0x2923- f:00024 d: 291 | OR[291] = A
0x024C (0x000498) 0x1800-0x00F2 f:00014 d: 0 | A = 242 (0x00F2)
0x024E (0x00049C) 0x2924- f:00024 d: 292 | OR[292] = A
0x024F (0x00049E) 0x2119- f:00020 d: 281 | A = OR[281]
0x0250 (0x0004A0) 0x2925- f:00024 d: 293 | OR[293] = A
0x0251 (0x0004A2) 0x211A- f:00020 d: 282 | A = OR[282]
0x0252 (0x0004A4) 0x2926- f:00024 d: 294 | OR[294] = A
0x0253 (0x0004A6) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x0254 (0x0004A8) 0x2927- f:00024 d: 295 | OR[295] = A
0x0255 (0x0004AA) 0x1800-0xFFFF f:00014 d: 0 | A = 65535 (0xFFFF)
0x0257 (0x0004AE) 0x2928- f:00024 d: 296 | OR[296] = A
0x0258 (0x0004B0) 0x211E- f:00020 d: 286 | A = OR[286]
0x0259 (0x0004B2) 0x2929- f:00024 d: 297 | OR[297] = A
0x025A (0x0004B4) 0x1123- f:00010 d: 291 | A = 291 (0x0123)
0x025B (0x0004B6) 0x5800- f:00054 d: 0 | B = A
0x025C (0x0004B8) 0x1800-0x1718 f:00014 d: 0 | A = 5912 (0x1718)
0x025E (0x0004BC) 0x7C09- f:00076 d: 9 | R = OR[9]
0x025F (0x0004BE) 0x77AD- f:00073 d: 429 | R = P - 429 (0x00B2)
0x0260 (0x0004C0) 0x8602- f:00103 d: 2 | P = P + 2 (0x0262), A # 0
0x0261 (0x0004C2) 0x7012- f:00070 d: 18 | P = P + 18 (0x0273)
0x0262 (0x0004C4) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x0263 (0x0004C6) 0x2923- f:00024 d: 291 | OR[291] = A
0x0264 (0x0004C8) 0x1800-0x00EA f:00014 d: 0 | A = 234 (0x00EA)
0x0266 (0x0004CC) 0x2924- f:00024 d: 292 | OR[292] = A
0x0267 (0x0004CE) 0x2119- f:00020 d: 281 | A = OR[281]
0x0268 (0x0004D0) 0x2925- f:00024 d: 293 | OR[293] = A
0x0269 (0x0004D2) 0x211A- f:00020 d: 282 | A = OR[282]
0x026A (0x0004D4) 0x2926- f:00024 d: 294 | OR[294] = A
0x026B (0x0004D6) 0x1123- f:00010 d: 291 | A = 291 (0x0123)
0x026C (0x0004D8) 0x5800- f:00054 d: 0 | B = A
0x026D (0x0004DA) 0x1800-0x1718 f:00014 d: 0 | A = 5912 (0x1718)
0x026F (0x0004DE) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0270 (0x0004E0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0271 (0x0004E2) 0x291A- f:00024 d: 282 | OR[282] = A
0x0272 (0x0004E4) 0x0200- f:00001 d: 0 | EXIT
0x0273 (0x0004E6) 0x2118- f:00020 d: 280 | A = OR[280]
0x0274 (0x0004E8) 0x141F- f:00012 d: 31 | A = A + 31 (0x001F)
0x0275 (0x0004EA) 0x2908- f:00024 d: 264 | OR[264] = A
0x0276 (0x0004EC) 0x211E- f:00020 d: 286 | A = OR[286]
0x0277 (0x0004EE) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0278 (0x0004F0) 0x2118- f:00020 d: 280 | A = OR[280]
0x0279 (0x0004F2) 0x1420- f:00012 d: 32 | A = A + 32 (0x0020)
0x027A (0x0004F4) 0x2908- f:00024 d: 264 | OR[264] = A
0x027B (0x0004F6) 0x211F- f:00020 d: 287 | A = OR[287]
0x027C (0x0004F8) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x027D (0x0004FA) 0x211B- f:00020 d: 283 | A = OR[283]
0x027E (0x0004FC) 0x1608- f:00013 d: 8 | A = A - 8 (0x0008)
0x027F (0x0004FE) 0x8602- f:00103 d: 2 | P = P + 2 (0x0281), A # 0
0x0280 (0x000500) 0x0200- f:00001 d: 0 | EXIT
0x0281 (0x000502) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0282 (0x000504) 0x291C- f:00024 d: 284 | OR[284] = A
0x0283 (0x000506) 0x77E4- f:00073 d: 484 | R = P - 484 (0x009F)
0x0284 (0x000508) 0x7E03-0x006C f:00077 d: 3 | R = OR[3]+108 (0x006C)
0x0286 (0x00050C) 0x211B- f:00020 d: 283 | A = OR[283]
0x0287 (0x00050E) 0x1607- f:00013 d: 7 | A = A - 7 (0x0007)
0x0288 (0x000510) 0x8602- f:00103 d: 2 | P = P + 2 (0x028A), A # 0
0x0289 (0x000512) 0x7007- f:00070 d: 7 | P = P + 7 (0x0290)
0x028A (0x000514) 0x211B- f:00020 d: 283 | A = OR[283]
0x028B (0x000516) 0x1608- f:00013 d: 8 | A = A - 8 (0x0008)
0x028C (0x000518) 0x8602- f:00103 d: 2 | P = P + 2 (0x028E), A # 0
0x028D (0x00051A) 0x7003- f:00070 d: 3 | P = P + 3 (0x0290)
0x028E (0x00051C) 0x7C34- f:00076 d: 52 | R = OR[52]
0x028F (0x00051E) 0x0000- f:00000 d: 0 | PASS
0x0290 (0x000520) 0x728A- f:00071 d: 138 | P = P - 138 (0x0206)
0x0291 (0x000522) 0x211A- f:00020 d: 282 | A = OR[282]
0x0292 (0x000524) 0x8602- f:00103 d: 2 | P = P + 2 (0x0294), A # 0
0x0293 (0x000526) 0x7013- f:00070 d: 19 | P = P + 19 (0x02A6)
0x0294 (0x000528) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x0295 (0x00052A) 0x2923- f:00024 d: 291 | OR[291] = A
0x0296 (0x00052C) 0x1800-0x00E8 f:00014 d: 0 | A = 232 (0x00E8)
0x0298 (0x000530) 0x2924- f:00024 d: 292 | OR[292] = A
0x0299 (0x000532) 0x2119- f:00020 d: 281 | A = OR[281]
0x029A (0x000534) 0x2925- f:00024 d: 293 | OR[293] = A
0x029B (0x000536) 0x211A- f:00020 d: 282 | A = OR[282]
0x029C (0x000538) 0x2926- f:00024 d: 294 | OR[294] = A
0x029D (0x00053A) 0x2121- f:00020 d: 289 | A = OR[289]
0x029E (0x00053C) 0x2927- f:00024 d: 295 | OR[295] = A
0x029F (0x00053E) 0x2122- f:00020 d: 290 | A = OR[290]
0x02A0 (0x000540) 0x2928- f:00024 d: 296 | OR[296] = A
0x02A1 (0x000542) 0x1123- f:00010 d: 291 | A = 291 (0x0123)
0x02A2 (0x000544) 0x5800- f:00054 d: 0 | B = A
0x02A3 (0x000546) 0x1800-0x1718 f:00014 d: 0 | A = 5912 (0x1718)
0x02A5 (0x00054A) 0x7C09- f:00076 d: 9 | R = OR[9]
0x02A6 (0x00054C) 0x2119- f:00020 d: 281 | A = OR[281]
0x02A7 (0x00054E) 0x8602- f:00103 d: 2 | P = P + 2 (0x02A9), A # 0
0x02A8 (0x000550) 0x7011- f:00070 d: 17 | P = P + 17 (0x02B9)
0x02A9 (0x000552) 0x1006- f:00010 d: 6 | A = 6 (0x0006)
0x02AA (0x000554) 0x290D- f:00024 d: 269 | OR[269] = A
0x02AB (0x000556) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x02AC (0x000558) 0x2923- f:00024 d: 291 | OR[291] = A
0x02AD (0x00055A) 0x1800-0x00A5 f:00014 d: 0 | A = 165 (0x00A5)
0x02AF (0x00055E) 0x2924- f:00024 d: 292 | OR[292] = A
0x02B0 (0x000560) 0x2119- f:00020 d: 281 | A = OR[281]
0x02B1 (0x000562) 0x2925- f:00024 d: 293 | OR[293] = A
0x02B2 (0x000564) 0x210D- f:00020 d: 269 | A = OR[269]
0x02B3 (0x000566) 0x2926- f:00024 d: 294 | OR[294] = A
0x02B4 (0x000568) 0x1123- f:00010 d: 291 | A = 291 (0x0123)
0x02B5 (0x00056A) 0x5800- f:00054 d: 0 | B = A
0x02B6 (0x00056C) 0x1800-0x1718 f:00014 d: 0 | A = 5912 (0x1718)
0x02B8 (0x000570) 0x7C09- f:00076 d: 9 | R = OR[9]
0x02B9 (0x000572) 0x7E03-0x00A5 f:00077 d: 3 | R = OR[3]+165 (0x00A5)
0x02BB (0x000576) 0x102A- f:00010 d: 42 | A = 42 (0x002A)
0x02BC (0x000578) 0x2923- f:00024 d: 291 | OR[291] = A
0x02BD (0x00057A) 0x1123- f:00010 d: 291 | A = 291 (0x0123)
0x02BE (0x00057C) 0x5800- f:00054 d: 0 | B = A
0x02BF (0x00057E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x02C0 (0x000580) 0x7C09- f:00076 d: 9 | R = OR[9]
0x02C1 (0x000582) 0x0000- f:00000 d: 0 | PASS
0x02C2 (0x000584) 0x0000- f:00000 d: 0 | PASS
0x02C3 (0x000586) 0x0000- f:00000 d: 0 | PASS
| 79.879154
| 79
| 0.465809
|
ca0ee38c35f2d1b81a600fdc2ca81013795d737a
| 5,353
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_21829_1542.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_21829_1542.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_21829_1542.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x305b, %rsi
lea addresses_WT_ht+0xf1af, %rdi
nop
inc %r8
mov $55, %rcx
rep movsb
nop
nop
nop
nop
nop
add %rdi, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %r8
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %rax
push %rbx
push %rcx
push %rsi
// Store
lea addresses_normal+0x149b, %rax
xor %rsi, %rsi
mov $0x5152535455565758, %r13
movq %r13, %xmm6
vmovups %ymm6, (%rax)
nop
nop
nop
nop
nop
sub %r14, %r14
// Load
lea addresses_normal+0x1db93, %rax
nop
nop
nop
nop
nop
inc %r11
mov (%rax), %r14w
nop
nop
nop
nop
nop
inc %rsi
// Store
lea addresses_normal+0xec9b, %rcx
nop
nop
dec %rax
mov $0x5152535455565758, %r11
movq %r11, (%rcx)
cmp %r11, %r11
// Store
lea addresses_WC+0x289, %rcx
nop
nop
add %r11, %r11
movl $0x51525354, (%rcx)
nop
nop
nop
nop
nop
xor %r14, %r14
// Store
lea addresses_UC+0x3f9b, %r11
nop
nop
nop
cmp %rsi, %rsi
movl $0x51525354, (%r11)
nop
sub $22810, %rax
// Faulty Load
lea addresses_normal+0x149b, %r13
nop
nop
nop
sub $40140, %rbx
mov (%r13), %r11
lea oracles, %r13
and $0xff, %r11
shlq $12, %r11
mov (%r13,%r11,1), %r11
pop %rsi
pop %rcx
pop %rbx
pop %rax
pop %r14
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_normal', 'same': True, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': True, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 8}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_normal', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 5}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 2}}
{'58': 21829}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 40.55303
| 2,999
| 0.658883
|
589e1d918a08bc575e48ebab5581efb9eb2519f7
| 6,702
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_639.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_639.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_639.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 %r14
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x10144, %rsi
lea addresses_WT_ht+0xf44, %rdi
nop
cmp $52837, %r12
mov $11, %rcx
rep movsl
and %rdx, %rdx
lea addresses_normal_ht+0x7de4, %rbx
nop
nop
nop
nop
nop
add %r14, %r14
movl $0x61626364, (%rbx)
cmp $26238, %rdi
lea addresses_WC_ht+0x13634, %rsi
lea addresses_WT_ht+0x2a24, %rdi
nop
nop
nop
dec %r14
mov $100, %rcx
rep movsb
nop
nop
and %rdi, %rdi
lea addresses_UC_ht+0x1bb24, %r12
nop
nop
nop
nop
nop
and $58463, %rbx
mov (%r12), %ecx
nop
nop
nop
nop
nop
cmp $63541, %rcx
lea addresses_A_ht+0x8324, %rsi
nop
nop
nop
nop
nop
xor %rdi, %rdi
movups (%rsi), %xmm2
vpextrq $0, %xmm2, %r12
nop
nop
nop
nop
sub $35120, %rdi
lea addresses_WC_ht+0x12864, %rdx
clflush (%rdx)
cmp %rcx, %rcx
mov $0x6162636465666768, %rsi
movq %rsi, %xmm3
vmovups %ymm3, (%rdx)
nop
nop
dec %rcx
lea addresses_A_ht+0x10924, %r12
nop
cmp $64934, %rdx
mov (%r12), %si
nop
nop
nop
nop
xor $41316, %r14
lea addresses_D_ht+0x1c224, %rsi
nop
and %rdx, %rdx
mov $0x6162636465666768, %r12
movq %r12, (%rsi)
nop
nop
inc %r12
lea addresses_normal_ht+0x14a8c, %rdi
nop
nop
nop
nop
sub $54220, %r12
movb (%rdi), %bl
nop
nop
nop
nop
nop
sub $52016, %rsi
lea addresses_WC_ht+0x14444, %rcx
nop
dec %rbx
mov $0x6162636465666768, %r12
movq %r12, %xmm6
and $0xffffffffffffffc0, %rcx
vmovaps %ymm6, (%rcx)
inc %rdx
lea addresses_UC_ht+0x12fb0, %rsi
lea addresses_A_ht+0x10e64, %rdi
sub %rdx, %rdx
mov $102, %rcx
rep movsq
lfence
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r9
push %rax
push %rbp
push %rbx
push %rsi
// Faulty Load
lea addresses_normal+0x6e24, %rbx
nop
and %rsi, %rsi
movups (%rbx), %xmm1
vpextrq $1, %xmm1, %rbp
lea oracles, %rax
and $0xff, %rbp
shlq $12, %rbp
mov (%rax,%rbp,1), %rbp
pop %rsi
pop %rbx
pop %rbp
pop %rax
pop %r9
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}}
{'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}}
{'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': True}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 38.739884
| 2,999
| 0.660251
|
8cd38acbeae52eb30e39a5971590b03f66b6d0cc
| 3,887
|
asm
|
Assembly
|
asm_main.asm
|
CISVVC/cis208-chapter05-arrays-ZackaryBair
|
5e290c682e7d4d69734cd4d7b2b1c08f208491f5
|
[
"Unlicense"
] | null | null | null |
asm_main.asm
|
CISVVC/cis208-chapter05-arrays-ZackaryBair
|
5e290c682e7d4d69734cd4d7b2b1c08f208491f5
|
[
"Unlicense"
] | null | null | null |
asm_main.asm
|
CISVVC/cis208-chapter05-arrays-ZackaryBair
|
5e290c682e7d4d69734cd4d7b2b1c08f208491f5
|
[
"Unlicense"
] | null | null | null |
;Assignment: Chapter 5 Arrays
;Zackary Bair
;file: asm_main.asm
;
;Write an assembly language function that will do the following:
;1. provide a function that will take 3 parameters:
;The base address of a word (16 bit) array -> array
;The length of the array
;An integer -- a scalar
;The function will iterate over the array and will multiply the scalar by each element in the array.
; Each element of the array will then be changed to the scalar multiple. This is an example
;a1: dw 1,2,3,4,5
;This looks like:
;a1[0] a1[1] a1[2] a1[3] a1[4]
; 1 2 3 4 5
;if the function is called with the above array and a scalar of 5 then the result would be:
;a1[0] a1[1] a1[2] a1[3] a1[4]
; 5 10 15 20 25
;
;Loop through the array and multiply by the scalar
;PLANS
;~~~~~~~~~~~~~~~~~~~
;create array
;loop for each in arrayLength
;start at one, fill next index with incremented value
;print array before multiply
;multiply array
;print array
%include "asm_io.inc"
;%define SPACE " ", 0
; initialized data is put in the .data segment
segment .data
syswrite: equ 4
stdout: equ 1
exit: equ 1
SUCCESS: equ 0
kernelcall: equ 80h
;PARAMETERS (can change)
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arrayLength dd 8 ;the length of an array
;is dd to stop the 1800 value error I was getting with db
scalar db 7 ;the integer scalar
array times 8 dd 0 ;array size arrayLength(8)
;FORMATTING
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
space db " ", 0
preMultiplyOutput db "Before scalar multiply: ", 0
postMultiplyOutput db "After scalar multiply: ", 0
arrayLengthOutput db "Array length: ", 0
scalarOutput db "Scalar: ", 0
; uninitialized data is put in the .bss segment
segment .bss
; code is put in the .text segment
segment .text
global asm_main
asm_main:
enter 0,0 ; setup routine
pusha
; *********** Start Assignment Code *******************
;CLEAR REGISTERS
;~~~~~~~~~~~~~~~~~
mov eax, 0
mov ebx, 0
mov ecx, 0
mov edx, 0
;FILLS ARRAY
;~~~~~~~~~~~~~~~~
mov eax, array ;put array in ebx to modify
mov ebx, 0 ;value to put in array
mov ecx, [arrayLength] ;counter for loop
mov edx, 0 ;index
fillArray:
mov [eax + 4 * edx], dword ebx ;puts a value into a spot in the array
inc edx ;increments the value to put in
inc ebx ;increments the index
loop fillArray
mov eax, arrayLengthOutput ;prints out the array length
call print_string
mov eax, [arrayLength]
call print_int
call print_nl
mov eax, scalarOutput ;prints out the scalar
call print_string
mov eax, [scalar]
call print_int
call print_nl
mov eax, preMultiplyOutput
call print_string
call printArray
call multiplyScalar
mov eax, postMultiplyOutput
call print_string
call printArray
; *********** End Assignment Code **********************
popa
mov eax, SUCCESS ; return back to the C program
leave
ret
;SUBPROGRAMS
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printArray:
;Will print out any array contained within EAX
;Overwrites what is in registers
enter 0,0 ;setup
b3:
mov ebx, array ;put array in EBX
mov ecx, [arrayLength] ;counter for loop
mov edx, 0 ;index
printArrayLoop:
mov eax, [ebx + 4 * edx]
call print_int
mov eax, space ;to print spaces in between the indexs in array
call print_string
inc edx ;increments the index
loop printArrayLoop
call print_nl
leave
ret
multiplyScalar:
;Takes in a scalar
;Takes in an array from EAX
;Multiples every index in array by scalar
enter 0,0 ;setup
mov ebx, array ;array to multiply
mov ecx, [arrayLength] ;counter for loop
mov edx, 0 ;index
b4:
multiplyLoop:
mov eax, [ebx + 4 * edx]
imul eax, [scalar]
mov [ebx + 4 * edx], eax
inc edx ;increments the index
loop multiplyLoop
leave
ret
| 22.468208
| 102
| 0.647543
|
8d651e08757911aa8b72dbb0289c5e6fc169a109
| 2,588
|
asm
|
Assembly
|
loader/bios/bios_call.asm
|
UltraOS/Hyper
|
b751b7aaedcc8924b1c3d26923f635c5487fc7dc
|
[
"Apache-2.0"
] | 3
|
2021-11-05T14:43:56.000Z
|
2022-01-06T17:01:54.000Z
|
loader/bios/bios_call.asm
|
UltraOS/Hyper
|
b751b7aaedcc8924b1c3d26923f635c5487fc7dc
|
[
"Apache-2.0"
] | null | null | null |
loader/bios/bios_call.asm
|
UltraOS/Hyper
|
b751b7aaedcc8924b1c3d26923f635c5487fc7dc
|
[
"Apache-2.0"
] | 3
|
2022-01-16T11:44:04.000Z
|
2022-02-23T14:26:17.000Z
|
extern gdt_ptr
PROTECTED_MODE_CODE_SELECTOR: equ 0x08
PROTECTED_MODE_DATA_SELECTOR: equ 0x10
REAL_MODE_CODE_SELECTOR: equ 0x18
REAL_MODE_DATA_SELECTOR: equ 0x20
PROTECTED_MODE_BIT: equ 1
SIZEOF_REGISTER_STATE: equ 40
section .real_code
; NOTE: this function assumes all pointers are located within the first 64K of memory.
; NOTE(2): this function is not reentrant and uses global state.
; ---------------------------------------------------------------------------------------
; void bios_call(uint32_t number, const RealModeRegisterState* in, RealModeRegisterState* out)
; esp + 12 [out]
; esp + 8 [in]
; esp + 4 [number]
; esp + 0 [ret]
global bios_call
bios_call:
; save arguments so that we don't have to access the stack
mov al, [esp + 4]
mov [.call_number], al
mov eax, [esp + 8]
mov [in_regs_ptr], eax
; out_regs_ptr will point to the end of the structure for convenience
; when we push the state state after call
mov eax, [esp + 12]
add eax, SIZEOF_REGISTER_STATE
mov [out_regs_ptr], eax
; save non-scratch
push ebx
push esi
push edi
push ebp
mov [initial_esp], esp
jmp REAL_MODE_CODE_SELECTOR:.real_mode_transition
.real_mode_transition:
BITS 16
mov ax, REAL_MODE_DATA_SELECTOR
mov ss, ax
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov eax, cr0
and eax, ~PROTECTED_MODE_BIT
mov cr0, eax
jmp 0x0:.real_mode_code
.real_mode_code:
xor ax, ax
mov ss, ax
; pop requested register state pre-call
mov sp, [ss:in_regs_ptr]
pop eax
pop ebx
pop ecx
pop edx
pop esi
pop edi
pop ebp
pop gs
pop fs
pop es
pop ds
popfd
mov sp, [ss:initial_esp]
sti
db 0xCD ; int followed by number
.call_number:
db 0
cli
; push final state post-call
mov sp, [ss:out_regs_ptr]
pushfd
push ds
push es
push fs
push gs
push ebp
push edi
push esi
push edx
push ecx
push ebx
push eax
; switch back to protected mode
lgdt [ss:gdt_ptr]
mov eax, cr0
or eax, PROTECTED_MODE_BIT
mov cr0, eax
jmp PROTECTED_MODE_CODE_SELECTOR:.protected_mode_code
.protected_mode_code:
BITS 32
; restore data segments
mov ax, PROTECTED_MODE_DATA_SELECTOR
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
; restore non-scratch
mov esp, [initial_esp]
pop ebp
pop edi
pop esi
pop ebx
ret
section .real_data
align 4
in_regs_ptr: dd 0
out_regs_ptr: dd 0
initial_esp: dd 0
| 18.225352
| 94
| 0.638331
|
f00f3a2ee7026e8d52e7ddb8e11a34f7ef60f1b2
| 1,711
|
asm
|
Assembly
|
programs/oeis/058/A058809.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/058/A058809.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/058/A058809.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A058809: The sequence lambda(3,n), where lambda is defined in A055203. Number of ways of placing n identifiable positive intervals with a total of exactly three starting and/or finishing points.
; 0,0,6,24,78,240,726,2184,6558,19680,59046,177144,531438,1594320,4782966,14348904,43046718,129140160,387420486,1162261464,3486784398,10460353200,31381059606,94143178824,282429536478,847288609440,2541865828326,7625597484984,22876792454958,68630377364880,205891132094646,617673396283944,1853020188851838,5559060566555520,16677181699666566,50031545098999704,150094635296999118,450283905890997360,1350851717672992086,4052555153018976264,12157665459056928798,36472996377170786400,109418989131512359206,328256967394537077624,984770902183611232878,2954312706550833698640,8862938119652501095926,26588814358957503287784,79766443076872509863358,239299329230617529590080,717897987691852588770246,2153693963075557766310744,6461081889226673298932238,19383245667680019896796720,58149737003040059690390166,174449211009120179071170504,523347633027360537213511518,1570042899082081611640534560,4710128697246244834921603686,14130386091738734504764811064,42391158275216203514294433198,127173474825648610542883299600,381520424476945831628649898806,1144561273430837494885949696424,3433683820292512484657849089278,10301051460877537453973547267840,30903154382632612361920641803526,92709463147897837085761925410584,278128389443693511257285776231758,834385168331080533771857328695280,2503155504993241601315571986085846,7509466514979724803946715958257544,22528399544939174411840147874772638,67585198634817523235520443624317920,202755595904452569706561330872953766,608266787713357709119683992618861304
mov $1,3
pow $1,$0
trn $1,3
mov $0,$1
| 213.875
| 1,474
| 0.920514
|
807f8ab8d2089a5f5436f89955a8541a34d7e514
| 517
|
asm
|
Assembly
|
Test/Exec/Add4.asm
|
CharlesCarley/ToyVM
|
57a7f57a1f2ecc84a5358f5f93d1a0148dbd2119
|
[
"MIT"
] | 1
|
2020-10-04T09:07:03.000Z
|
2020-10-04T09:07:03.000Z
|
Test/Exec/Add4.asm
|
CharlesCarley/ToyVM
|
57a7f57a1f2ecc84a5358f5f93d1a0148dbd2119
|
[
"MIT"
] | null | null | null |
Test/Exec/Add4.asm
|
CharlesCarley/ToyVM
|
57a7f57a1f2ecc84a5358f5f93d1a0148dbd2119
|
[
"MIT"
] | 1
|
2020-07-06T01:03:57.000Z
|
2020-07-06T01:03:57.000Z
|
main:
mov x1, ' '
beg:
cmp x1, '~'
bgt enb
mov x0, x1
bl putchar
add x1, 1
b beg
enb:
mov x1, 224
beg1:
cmp x1, 253
bgt end1
mov x0, x1
bl putchar
add x1, 1
b beg1
end1:
mov x0, '\n'
bl putchar
mov x0, 50
bl putchar
mov x0, 252
bl putchar
mov x0, 50
bl putchar
mov x0, 227
bl putchar
mov x0, 50
bl putchar
mov x0, 248
bl putchar
mov x0, '\n'
bl putchar
mov x0, 0
ret
| 13.25641
| 17
| 0.479691
|
7db5045732232bd91486e3fbd70efbfec29dc993
| 689
|
asm
|
Assembly
|
oeis/160/A160140.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/160/A160140.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/160/A160140.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A160140: Numerator of Hermite(n, 13/27).
; Submitted by Jon Maiga
; 1,26,-782,-96148,920620,584671256,8490132856,-4893960693232,-213893273952368,51521932403096480,4146277783283481376,-643386552071776162624,-83226053442166654536512,9092813725551462723320192,1813879773807164800891373440,-138441639646970172285236049664,-43269033283983918674910474424064,2104571704300938293522314231536128,1127185123288649803907911189094789632,-25925566602168929673593923775969612800,-31899347016998569039370397778479072318464,-73393500322716805741631524933181971032064
mov $1,1
lpb $0
sub $0,1
mul $2,9
add $1,$2
sub $2,$1
mul $1,18
add $1,$2
mul $2,9
sub $1,$2
mul $2,$0
lpe
mov $0,$1
| 38.277778
| 484
| 0.815675
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.