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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7d6694b1ca61eabe599b2ef76dc93da1a2ec571f | 941 | asm | Assembly | programs/oeis/027/A027807.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/027/A027807.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/027/A027807.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A027807: a(n) = 165*(n+1)*C(n+4,11)/4.
; 330,4455,32175,165165,675675,2342340,7147140,19691100,49884120,117781950,261891630,552882330,1115464350,2162284740,4045090500,7330194300,12907516050,22145248125,37105593525,60841155375,97796523825,154345534200,239501691000,365847510600,550738188000,817846209180,1199126493180,1737296553300,2488943225340,3528386947800,4952456634840,6886353113640,9490807175850,12970769806995,17585907414075,23663214193905,31612097514855,41942340683100,55285401110940,72419561098500,94299513600600,122091036917850,157211490686250,201376951325550,256656898748250,325537468155900,410994391707900,516576875314500,646503786378450,805773669611625,1000290260731905,1237005332575155,1524080885636925,1871072886014640,2289138958906800,2791272666021840,3392567231264640,4110511831740600,4965323841312120,5980320702556200,7182335410930680,8602179923216880
mov $1,$0
add $1,11
bin $1,$0
add $0,8
mul $1,$0
div $1,4
mul $1,165
| 85.545455 | 829 | 0.875664 |
8b2810b352ed5aa5db45dff3d4b28a148b8892ad | 367 | asm | Assembly | oeis/342/A342107.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/342/A342107.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/342/A342107.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A342107: a(n) = Sum_{k=0..n} (4*k)!/k!^4.
; Submitted by Christian Krause
; 1,25,2545,372145,63435145,11796180169,2320539673225,474838887231625,100035931337622625,21552788197602942625,4726913659271173170145,1051798742538350304851425,236861100204680963085573025
lpb $0
mov $2,$0
sub $0,1
seq $2,8977 ; a(n) = (4*n)!/(n!)^4.
add $1,$2
lpe
add $1,1
mov $0,$1
| 28.230769 | 186 | 0.719346 |
8c8ba78321c9564ee3cf2922ce58805b29087b20 | 2,559 | asm | Assembly | 1571/64tass/rel1.asm | silverdr/assembly | c2851f7033223e089285dce22443b7e219ed4f61 | [
"Unlicense"
] | 23 | 2015-03-23T15:16:57.000Z | 2022-03-18T12:43:42.000Z | 1571/64tass/rel1.asm | silverdr/assembly | c2851f7033223e089285dce22443b7e219ed4f61 | [
"Unlicense"
] | null | null | null | 1571/64tass/rel1.asm | silverdr/assembly | c2851f7033223e089285dce22443b7e219ed4f61 | [
"Unlicense"
] | 8 | 2016-04-13T11:19:35.000Z | 2021-12-22T07:39:00.000Z | ;***********************************
;*
;* routine: nxtrec
;*
;*
;*
;*
;*
;***********************************
nxtrec
lda #ovrflo
jsr clrflg
lda #lrf
jsr tstflg
bne nxtr40
ldx lindx
inc recl,x ; goto next record #
bne nxtr15
inc rech,x
nxtr15
ldx lindx
lda nr,x
beq nxtr45 ; there is a nr
jsr getpnt ; get pointer
ldx lindx ; test if same buffer
cmp nr,x
bcc nxtr20 ; yes, bt<nr
jsr nrbuf ; no,next buffer
nxtr20 ldx lindx
lda nr,x
jsr setpnt ; advance to next rec
lda (buftab,x) ; read 1st dat byte
sta data ; save for read channel
lda #ovrflo
jsr clrflg ; clear
; the overflow flag
jsr addnr ; advance nr
nxout
pha
bcc nxtr30 ; no block boundary
lda #0
jsr drdbyt ; check track link
bne nxtr30 ; not last block
pla
cmp #2
beq nxtr50
nxtr45
lda #lrf
jsr setflg
nxtr40
jsr getpre
lda buftab,x
sta lstchr,y
lda #cr
sta data
rts
nxtr50
jsr nxtr35
ldx lindx
lda #0
sta nr,x
rts
nxtr30
pla
nxtr35
ldx lindx
;*
sta nr,x
jmp setlst
;*
;*
;**********************************
;*
;*
;* nrbuf
;*
;*
;********************************
;*
;*
nrbuf ; read trk,sec link
jsr setdrn
jsr rdlnk
jsr gaflgs ; test if dirty
bvc nrbu50 ; clean, dont write out
jsr wrtout ; dirty, write out
jsr dblbuf ; toggle active buffer
lda #2
jsr setpnt
jsr tstwrt ; test if lstjob is wrt
bne nrbu20 ; not a write,buffer ok
jsr rdab ; read in needed buffer
jmp watjob ; wait around till done
nrbu50 jsr dblbuf ; toggle act buf
jsr tstwrt ; was lstjob a wrt?
bne nrbu70 ; not a write
jsr rdab ; read in needed buffer
jsr watjob ; wait till done
nrbu70 ; read trk,sec link
jsr rdlnk ; to do a read ahead
lda track ; test if last buffer
beq nrbu20 ; yes,no dbl buff todo
jsr dblbuf ; start read job on the
jsr rdab ; inactive buffer
jsr dblbuf
nrbu20 rts
| 20.149606 | 47 | 0.44705 |
2b87614fb6deb7d0d8706c25b4697526b231a075 | 1,924 | asm | Assembly | Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_68_2157.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_68_2157.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_68_2157.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x10231, %rsi
lea addresses_WC_ht+0x12c31, %rdi
nop
nop
cmp $16841, %rbx
mov $92, %rcx
rep movsw
nop
nop
nop
nop
nop
inc %rdi
lea addresses_WC_ht+0x49d9, %rsi
lea addresses_normal_ht+0x94b1, %rdi
clflush (%rsi)
nop
nop
nop
and %r10, %r10
mov $26, %rcx
rep movsw
nop
nop
nop
nop
xor %rcx, %rcx
lea addresses_D_ht+0x1e0d1, %rdi
nop
nop
nop
nop
nop
and %r9, %r9
mov $0x6162636465666768, %rbx
movq %rbx, %xmm1
and $0xffffffffffffffc0, %rdi
movntdq %xmm1, (%rdi)
nop
nop
nop
nop
xor %rcx, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r9
push %rbp
push %rdx
push %rsi
// Faulty Load
lea addresses_US+0x18e31, %rbp
nop
nop
nop
nop
sub %r9, %r9
mov (%rbp), %r11w
lea oracles, %r9
and $0xff, %r11
shlq $12, %r11
mov (%r9,%r11,1), %r11
pop %rsi
pop %rdx
pop %rbp
pop %r9
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_US', 'same': False, 'size': 32, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_US', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 16, 'congruent': 5, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'00': 68}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 19.24 | 203 | 0.662162 |
7597f612531ad900d571c5b66095f10684ada37c | 1,353 | asm | Assembly | programs/oeis/126/A126116.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/126/A126116.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/126/A126116.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A126116: a(n) = a(n-1) + a(n-3) + a(n-4), with a(0)=a(1)=a(2)=a(3)=1.
; 1,1,1,1,3,5,7,11,19,31,49,79,129,209,337,545,883,1429,2311,3739,6051,9791,15841,25631,41473,67105,108577,175681,284259,459941,744199,1204139,1948339,3152479,5100817,8253295,13354113,21607409,34961521,56568929,91530451,148099381,239629831,387729211,627359043,1015088255,1642447297,2657535551,4299982849,6957518401,11257501249,18215019649,29472520899,47687540549,77160061447,124847601995,202007663443,326855265439,528862928881,855718194319,1384581123201,2240299317521,3624880440721,5865179758241,9490060198963,15355239957205,24845300156167,40200540113371,65045840269539,105246380382911,170292220652449,275538601035359,445830821687809,721369422723169,1167200244410977,1888569667134145,3055769911545123,4944339578679269,8000109490224391,12944449068903659,20944558559128051,33889007628031711,54833566187159761,88722573815191471,143556140002351233,232278713817542705,375834853819893937,608113567637436641,983948421457330579,1592061989094767221,2576010410552097799,4168072399646865019,6744082810198962819,10912155209845827839,17656238020044790657,28568393229890618495,46224631249935409153,74793024479826027649,121017655729761436801,195810680209587464449
trn $0,1
seq $0,204 ; Lucas numbers (beginning with 1): L(n) = L(n-1) + L(n-2) with L(1) = 1, L(2) = 3.
div $0,5
mul $0,2
add $0,1
| 150.333333 | 1,148 | 0.849224 |
bd954d05f7f84d1f8642fd6cfd90d763722d2026 | 1,113 | asm | Assembly | programs/oeis/219/A219029.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/219/A219029.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/219/A219029.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A219029: n - 1 - phi(phi(n)).
; -1,0,1,2,2,4,4,5,6,7,6,9,8,11,10,11,8,15,12,15,16,17,12,19,16,21,20,23,16,25,22,23,24,25,26,31,24,31,30,31,24,37,30,35,36,35,24,39,36,41,34,43,28,47,38,47,44,45,30,51,44,53,50,47,48,57,46,51,48,61,46,63,48,61,58,63,60,69,54,63,62,65,42,75,52,73,62,71,48,81,66,71,76,71,70,79,64,85,82,83,60,85,70,87,88,81,54,95,72,93,86,95,64,101,74,91,92,89,86,103,80,105,90,107,84,113,90,95,104,113,82,115,96,113,110,103,72,117,94,123,96,117,110,127,96,121,122,123,76,133,110,127,120,137,122,139,108,133,110,127,120,143,108,131,132,125,84,151,120,137,134,147,88,149,142,143,120,137,90,163,132,157,150,143,136,169,122,143,152,165,118,159,128,161,162,171,112,181,138,167,160,161,154,171,140,173,166,175,160,193,162,163,164,161,166,191,168,181,170,187,156,197,150,191,192,177,114,203,156,189,198,183,120,209,146,179,188,205,142,207,176,201,188,211,196,213,174,215,168,209
mov $1,$0
sub $1,1
mov $4,$0
lpb $0
add $0,$4
mov $4,$0
div $4,2
cal $4,10554 ; a(n) = phi(phi(n)), where phi is the Euler totient function.
add $1,$4
sub $0,$1
sub $0,1
mov $3,$0
mov $0,$2
mov $1,$3
lpe
| 58.578947 | 855 | 0.662174 |
d0a52fbf891239b9d99679379d13a6f09f225338 | 575 | asm | Assembly | programs/oeis/156/A156734.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/156/A156734.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/156/A156734.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A156734: Square array read by antidiagonals up. T(n,k) = if k divides n then +1 else -1.
; 1,1,-1,1,1,-1,1,-1,-1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,-1,1,1,-1,1,-1,-1,-1,1,-1,1,-1,-1,-1,-1,-1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,1,-1,1,-1,-1,-1,-1,-1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
trn $0,1
seq $0,14132 ; Complement of triangular numbers (A000217); also array T(n,k) = ((n+k)^2 + n-k)/2, n, k > 0, read by antidiagonals.
seq $0,51731 ; Triangle read by rows: T(n,k) = 1 if k divides n, T(n,k) = 0 otherwise (for n >= 1 and 1 <= k <= n).
mul $0,2
sub $0,1
| 63.888889 | 208 | 0.532174 |
19120f8c03ed574736b5283615235803421a32ba | 433 | asm | Assembly | libsrc/_DEVELOPMENT/string/c/sccz80/strtok_callee.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/string/c/sccz80/strtok_callee.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/string/c/sccz80/strtok_callee.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; char *strtok(char * restrict s1, const char * restrict s2)
SECTION code_clib
SECTION code_string
PUBLIC strtok_callee
EXTERN asm_strtok
strtok_callee:
IF __CPU_GBZ80__
pop bc
pop de
pop hl
push bc
call asm_strtok
ld d,h
ld e,l
ret
ELSE
pop hl
pop de
ex (sp),hl
jp asm_strtok
ENDIF
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _strtok_callee
defc _strtok_callee = strtok_callee
ENDIF
| 12.371429 | 60 | 0.715935 |
2aa87f9e8a62762e6c666ba0b06148527b5374e3 | 401 | asm | Assembly | samples/test5.asm | 0x00-0x00/shellcoding | a975d4d0f2e4d6de80feb99e760db2c4a7d8a43d | [
"MIT"
] | null | null | null | samples/test5.asm | 0x00-0x00/shellcoding | a975d4d0f2e4d6de80feb99e760db2c4a7d8a43d | [
"MIT"
] | null | null | null | samples/test5.asm | 0x00-0x00/shellcoding | a975d4d0f2e4d6de80feb99e760db2c4a7d8a43d | [
"MIT"
] | 1 | 2019-10-27T12:58:16.000Z | 2019-10-27T12:58:16.000Z | global _start
_start:
xor rdi, rdi ;zera rdi
push rdi ;puxa 0 pra stack
push rdi ;puxa 0 pra stack
pop rsi ;pega 0 da stack
pop rdx ;pega 0 da stack
mov rdi, 0x68732f6e69622f2f ;insere hs/nib// no rdi
shr rdi, 0x08 ; insere null byte no ultimo byte da string
push rdi ;puxa endereco da string na stack
push rsp ;puxa stack pointer pra stack
pop rdi; pega ponteiro do rdi
push 0x3b
pop rax
syscall
| 20.05 | 57 | 0.755611 |
a747cd67bb90e04394163443e570a262cc54e67b | 9,848 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_21829_1301.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_1301.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_1301.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x1345f, %rbp
xor $8177, %r14
movw $0x6162, (%rbp)
nop
nop
nop
nop
nop
inc %r12
lea addresses_D_ht+0x1caaf, %rcx
nop
nop
nop
nop
nop
cmp $18543, %r13
movl $0x61626364, (%rcx)
nop
inc %rbp
lea addresses_A_ht+0x1cd2f, %rsi
lea addresses_A_ht+0x1bbeb, %rdi
nop
nop
nop
nop
and $51847, %r13
mov $91, %rcx
rep movsl
nop
nop
nop
nop
cmp %rsi, %rsi
lea addresses_UC_ht+0xbb0b, %rax
nop
nop
nop
sub $20877, %rdi
vmovups (%rax), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $1, %xmm0, %rcx
nop
nop
nop
nop
nop
cmp $47342, %r12
lea addresses_D_ht+0x1b92f, %rsi
lea addresses_A_ht+0x282f, %rdi
nop
and %rdx, %rdx
mov $7, %rcx
rep movsq
nop
nop
add %r13, %r13
lea addresses_D_ht+0x552f, %rsi
lea addresses_D_ht+0x1aaf9, %rdi
nop
nop
nop
nop
sub $44182, %rdx
mov $40, %rcx
rep movsl
nop
nop
nop
and %rdx, %rdx
lea addresses_WC_ht+0x1016f, %rbp
nop
nop
inc %r13
vmovups (%rbp), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %rdi
nop
nop
nop
nop
nop
inc %rbp
lea addresses_WC_ht+0x1554f, %rbp
sub $60745, %rsi
movw $0x6162, (%rbp)
nop
nop
nop
nop
inc %rax
lea addresses_D_ht+0x1672f, %rsi
lea addresses_D_ht+0x1779b, %rdi
nop
nop
nop
dec %rbp
mov $91, %rcx
rep movsl
nop
nop
nop
nop
xor $59249, %rax
lea addresses_WC_ht+0xfde4, %rsi
lea addresses_normal_ht+0x15d2f, %rdi
nop
nop
nop
nop
nop
dec %rax
mov $72, %rcx
rep movsl
nop
dec %rcx
lea addresses_WT_ht+0x1e0af, %rsi
lea addresses_D_ht+0x50ff, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
sub $63605, %rax
mov $122, %rcx
rep movsw
nop
nop
cmp $58811, %rdx
lea addresses_WC_ht+0x4f2f, %rbp
clflush (%rbp)
nop
nop
nop
xor $38057, %rdx
mov $0x6162636465666768, %rcx
movq %rcx, (%rbp)
nop
nop
sub $43957, %r12
lea addresses_D_ht+0x1512f, %rdi
and $4885, %rdx
mov $0x6162636465666768, %r12
movq %r12, %xmm7
vmovups %ymm7, (%rdi)
nop
add %rbp, %rbp
lea addresses_WT_ht+0x1e0f5, %rdi
nop
xor $23263, %r14
movups (%rdi), %xmm0
vpextrq $1, %xmm0, %r13
nop
mfence
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r14
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r14
push %r15
push %r9
push %rcx
push %rdx
// Store
lea addresses_PSE+0x1792f, %rdx
nop
nop
add $23411, %r14
movl $0x51525354, (%rdx)
nop
nop
add $61047, %rcx
// Store
lea addresses_A+0x12c8b, %r15
clflush (%r15)
inc %rdx
movl $0x51525354, (%r15)
nop
cmp $36590, %r10
// Store
lea addresses_RW+0x94af, %r11
nop
nop
nop
nop
nop
xor $7923, %r9
movb $0x51, (%r11)
nop
nop
nop
nop
xor $14809, %rcx
// Load
lea addresses_UC+0x4673, %r9
nop
sub %r11, %r11
mov (%r9), %r10w
nop
nop
nop
sub $8610, %rcx
// Store
lea addresses_A+0x1c32f, %r11
nop
nop
dec %r14
movb $0x51, (%r11)
nop
nop
nop
nop
nop
inc %r11
// Store
lea addresses_US+0x1d12f, %r10
nop
nop
nop
nop
xor $65278, %r9
mov $0x5152535455565758, %r11
movq %r11, %xmm5
vmovups %ymm5, (%r10)
nop
nop
cmp %r14, %r14
// Load
lea addresses_WT+0x1dfdf, %r11
sub $24720, %rdx
mov (%r11), %r9w
nop
nop
nop
nop
sub %rcx, %rcx
// Store
mov $0x12f, %r14
nop
nop
nop
nop
sub $5109, %r9
movl $0x51525354, (%r14)
nop
nop
nop
and %r10, %r10
// Load
mov $0x92f, %r11
nop
sub $25332, %r14
movb (%r11), %dl
nop
nop
nop
nop
dec %r9
// Faulty Load
lea addresses_PSE+0x1792f, %r11
clflush (%r11)
nop
nop
nop
nop
nop
cmp $60720, %r9
mov (%r11), %r14d
lea oracles, %rcx
and $0xff, %r14
shlq $12, %r14
mov (%rcx,%r14,1), %r14
pop %rdx
pop %rcx
pop %r9
pop %r15
pop %r14
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_PSE', 'congruent': 0}}
{'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_PSE', 'congruent': 0}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A', 'congruent': 0}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_RW', 'congruent': 7}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_UC', 'congruent': 2}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A', 'congruent': 9}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_US', 'congruent': 11}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WT', 'congruent': 4}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_P', 'congruent': 10}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_P', 'congruent': 10}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_PSE', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 2, 'type': 'addresses_UC_ht', 'congruent': 0}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_D_ht', 'congruent': 3}, 'OP': 'STOR'}
{'dst': {'same': True, 'congruent': 2, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_A_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_UC_ht', 'congruent': 2}}
{'dst': {'same': False, 'congruent': 4, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}}
{'dst': {'same': False, 'congruent': 0, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WC_ht', 'congruent': 6}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WC_ht', 'congruent': 3}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}}
{'dst': {'same': False, 'congruent': 10, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_WC_ht'}}
{'dst': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_WT_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC_ht', 'congruent': 7}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_D_ht', 'congruent': 11}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WT_ht', 'congruent': 0}}
{'54': 21829}
54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54
*/
| 28.380403 | 2,999 | 0.651909 |
d5fec081837525dddb4769e3d0b774884f44fd0d | 6,842 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1435.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1435.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1435.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x190e3, %r9
nop
nop
nop
nop
and $32119, %rdx
movl $0x61626364, (%r9)
nop
nop
nop
nop
cmp %r13, %r13
lea addresses_WT_ht+0x11815, %rdx
add %r14, %r14
and $0xffffffffffffffc0, %rdx
vmovntdqa (%rdx), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %r9
nop
nop
nop
xor %rdx, %rdx
lea addresses_UC_ht+0x1a495, %r13
nop
sub $1531, %r11
mov (%r13), %r9
nop
nop
xor %r13, %r13
lea addresses_normal_ht+0xebb9, %rsi
lea addresses_WT_ht+0x1ac95, %rdi
clflush (%rdi)
nop
inc %rdx
mov $98, %rcx
rep movsl
nop
sub $61678, %rcx
lea addresses_A_ht+0x9395, %rsi
lea addresses_A_ht+0x7715, %rdi
clflush (%rdi)
sub %rbx, %rbx
mov $95, %rcx
rep movsw
nop
nop
cmp $35237, %rdi
lea addresses_A_ht+0x8881, %rdi
clflush (%rdi)
xor $25419, %r13
mov $0x6162636465666768, %rcx
movq %rcx, (%rdi)
nop
nop
nop
nop
dec %rdi
lea addresses_UC_ht+0x7315, %r14
nop
inc %rcx
mov (%r14), %rdi
nop
nop
nop
nop
nop
sub $61966, %r14
lea addresses_normal_ht+0x14a35, %rsi
lea addresses_WT_ht+0x1ef15, %rdi
nop
nop
dec %r13
mov $30, %rcx
rep movsb
nop
add %rsi, %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r14
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %rax
push %rbp
push %rcx
push %rdx
push %rsi
// Load
lea addresses_D+0x18f15, %rbp
nop
nop
nop
nop
nop
xor %rax, %rax
mov (%rbp), %r12
nop
nop
nop
sub %rsi, %rsi
// Store
lea addresses_US+0x1841d, %rsi
nop
nop
nop
nop
nop
cmp %rax, %rax
mov $0x5152535455565758, %r12
movq %r12, %xmm7
vmovups %ymm7, (%rsi)
nop
dec %r12
// Load
lea addresses_UC+0xd239, %rax
nop
nop
cmp $51723, %r14
vmovntdqa (%rax), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $0, %xmm1, %rsi
nop
nop
nop
nop
and $47814, %r12
// Faulty Load
lea addresses_PSE+0x6715, %r14
nop
nop
nop
nop
xor $15362, %rdx
mov (%r14), %rax
lea oracles, %rsi
and $0xff, %rax
shlq $12, %rax
mov (%rsi,%rax,1), %rax
pop %rsi
pop %rdx
pop %rcx
pop %rbp
pop %rax
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': True, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 2}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_PSE', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': True, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 1}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 5}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 6}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 10}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 4}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 10}}
{'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
*/
| 35.450777 | 2,999 | 0.657849 |
e7dc2918ef50ee9eaa8b49122f9264d4b878fb6b | 1,712 | asm | Assembly | programs/oeis/140/A140659.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/140/A140659.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/140/A140659.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A140659: a(n) = floor(A140657(n+2)/10).
; 0,0,1,2,6,12,25,50,102,204,409,818,1638,3276,6553,13106,26214,52428,104857,209714,419430,838860,1677721,3355442,6710886,13421772,26843545,53687090,107374182,214748364,429496729,858993458,1717986918,3435973836,6871947673,13743895346,27487790694,54975581388,109951162777,219902325554,439804651110,879609302220,1759218604441,3518437208882,7036874417766,14073748835532,28147497671065,56294995342130,112589990684262,225179981368524,450359962737049,900719925474098,1801439850948198,3602879701896396,7205759403792793,14411518807585586,28823037615171174,57646075230342348,115292150460684697,230584300921369394,461168601842738790,922337203685477580,1844674407370955161,3689348814741910322,7378697629483820646,14757395258967641292,29514790517935282585,59029581035870565170,118059162071741130342,236118324143482260684,472236648286964521369,944473296573929042738,1888946593147858085478,3777893186295716170956,7555786372591432341913,15111572745182864683826,30223145490365729367654,60446290980731458735308,120892581961462917470617,241785163922925834941234,483570327845851669882470,967140655691703339764940,1934281311383406679529881,3868562622766813359059762,7737125245533626718119526,15474250491067253436239052,30948500982134506872478105,61897001964269013744956210,123794003928538027489912422,247588007857076054979824844,495176015714152109959649689,990352031428304219919299378,1980704062856608439838598758,3961408125713216879677197516,7922816251426433759354395033,15845632502852867518708790066,31691265005705735037417580134,63382530011411470074835160268,126765060022822940149670320537,253530120045645880299340641074
mov $1,2
pow $1,$0
add $1,4
mul $1,2
div $1,5
sub $1,2
mov $0,$1
| 155.636364 | 1,603 | 0.912383 |
cb2726bab127af4ce7e75ad71012eb0ce8598551 | 502 | asm | Assembly | programs/oeis/135/A135680.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/135/A135680.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/135/A135680.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A135680: a(n) = n if n = 1 or if n is prime. Otherwise, n = 4 if n is even and n = 5 if n is odd.
; 1,2,3,4,5,4,7,4,5,4,11,4,13,4,5,4,17,4,19,4,5,4,23,4,5,4,5,4,29,4,31,4,5,4,5,4,37,4,5,4,41,4,43,4,5,4,47,4,5,4,5,4,53,4,5,4,5,4,59,4,61,4,5,4,5,4,67,4,5,4,71,4,73,4,5,4,5,4,79,4,5,4,83,4,5,4,5,4,89,4,5,4,5,4,5,4,97,4,5,4
mov $1,1
lpb $0
mov $2,$0
seq $2,135679 ; a(n) = n if n = 1 or if n is prime. Otherwise, a(n) = 2 if n is even and a(n) = 3 if n is odd.
add $1,$2
mov $0,$1
lpe
add $0,1
| 41.833333 | 222 | 0.549801 |
4eb9b85396a944a93cc802ed604bd8cf0bcb564b | 655 | asm | Assembly | oeis/000/A000932.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/000/A000932.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/000/A000932.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A000932: a(n) = a(n-1) + n*a(n-2); a(0) = a(1) = 1.
; Submitted by Jon Maiga
; 1,1,3,6,18,48,156,492,1740,6168,23568,91416,374232,1562640,6801888,30241488,139071696,653176992,3156467520,15566830368,78696180768,405599618496,2136915595392,11465706820800,62751681110208,349394351630208,1980938060495616,11414585554511232,66880851248388480,397903832329214208,2404329369780868608,14739348171986509056,91677888004974304512,578076377680529103360,3695124569849655456768,23927797788668174074368,156952282303255770518016,1042280800483978211269632,7006467528007697490954240
mov $3,1
lpb $0
mov $2,$3
add $3,$1
mov $1,$0
sub $0,1
mul $1,$2
lpe
mov $0,$3
| 46.785714 | 485 | 0.80458 |
7e8644d9177aff9a68686730eca4be09c4a9a725 | 565 | asm | Assembly | oeis/102/A102754.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/102/A102754.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/102/A102754.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A102754: Decimal expansion of (Pi^2)/2 -4.
; Submitted by Simon Strandgaard
; 9,3,4,8,0,2,2,0,0,5,4,4,6,7,9,3,0,9,4,1,7,2,4,5,4,9,9,9,3,8,0,7,5,5,6,7,6,5,6,8,4,9,7,0,3,6,2,0,3,9,5,3,1,3,2,0,6,6,7,4,6,8,8,1,1,0,0,2,2,4,1,1,2,0,9,6,0,2,6,2,1,5,0,0,8,8,6,7,0,1,8,5,9,2,7,6,1,1,5,9
add $0,1
mov $1,1
mov $2,1
mov $3,$0
mul $3,5
lpb $3
mul $1,$3
mov $5,$3
mul $5,2
add $5,1
mul $2,$5
add $1,$2
cmp $4,0
mov $5,$0
add $5,$4
div $1,$5
div $2,$5
sub $3,1
lpe
pow $1,2
mul $1,2
pow $2,2
mov $6,10
pow $6,$0
div $2,$6
div $1,$2
mov $0,$1
mod $0,10
| 17.121212 | 201 | 0.523894 |
67a76fc3bfa7e038503a838e77fdc069a624722a | 1,269 | asm | Assembly | programs/oeis/257/A257272.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/257/A257272.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/257/A257272.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A257272: a(n) = 2^(n-1)*(2^n+7).
; 4,9,22,60,184,624,2272,8640,33664,132864,527872,2104320,8402944,33583104,134275072,536985600,2147713024,8590393344,34360655872,137440788480,549759483904,2199030595584,8796107702272,35184401448960,140737547075584,562950070861824,2251800048566272,9007199724503040,36028797958488064,144115189954904064,576460756061519872,2305843016729886720,9223372051887161344,36893488177483874304,147573952649805955072,590295810478964736000,2361183241675340775424,9444732966220326764544,37778931863919234383872,151115727453752792186880,604462909811162878050304,2417851639236954930806784,9671406556932426560438272,38685626227698919916175360,154742504910734107013545984,618970019642813282751873024,2475880078571006840402870272,9903520314283534780402237440,39614081257133153959190462464,158456325028530645511924875264,633825300114118641398025551872,2535301200456466684292754309120,10141204801825850974572321439744,40564819207303372373091894165504,162259276829213426441972793475072,649037107316853579667101607526400,2596148429267414066466827297357824,10384593717069655761464150923935744,41538374868278622037050287164751872,166153499473114486130588515597025280,664613997892457940487128796264136704
mov $1,2
pow $1,$0
add $1,4
bin $1,2
sub $1,6
mov $0,$1
| 126.9 | 1,176 | 0.913318 |
22f9b478bebb9baf5e18a054ea5ca5baa0e114da | 1,382 | asm | Assembly | programs/oeis/069/A069981.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/069/A069981.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/069/A069981.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A069981: Hermite's problem: number of positive integral solutions to x + y + z = n subject to x <= y + z, y <= z + x and z <= x + y.
; 0,0,0,1,3,3,7,6,12,10,18,15,25,21,33,28,42,36,52,45,63,55,75,66,88,78,102,91,117,105,133,120,150,136,168,153,187,171,207,190,228,210,250,231,273,253,297,276,322,300,348,325,375,351,403,378,432,406,462,435,493,465,525,496,558,528,592,561,627,595,663,630,700,666,738,703,777,741,817,780,858,820,900,861,943,903,987,946,1032,990,1078,1035,1125,1081,1173,1128,1222,1176,1272,1225,1323,1275,1375,1326,1428,1378,1482,1431,1537,1485,1593,1540,1650,1596,1708,1653,1767,1711,1827,1770,1888,1830,1950,1891,2013,1953,2077,2016,2142,2080,2208,2145,2275,2211,2343,2278,2412,2346,2482,2415,2553,2485,2625,2556,2698,2628,2772,2701,2847,2775,2923,2850,3000,2926,3078,3003,3157,3081,3237,3160,3318,3240,3400,3321,3483,3403,3567,3486,3652,3570,3738,3655,3825,3741,3913,3828,4002,3916,4092,4005,4183,4095,4275,4186,4368,4278,4462,4371,4557,4465,4653,4560,4750,4656,4848,4753,4947,4851,5047,4950,5148,5050,5250,5151,5353,5253,5457,5356,5562,5460,5668,5565,5775,5671,5883,5778,5992,5886,6102,5995,6213,6105,6325,6216,6438,6328,6552,6441,6667,6555,6783,6670,6900,6786,7018,6903,7137,7021,7257,7140,7378,7260,7500,7381,7623,7503,7747,7626,7872,7750
mul $0,2
mov $2,1
lpb $0
trn $0,4
add $2,3
sub $2,$3
sub $2,1
mov $1,$2
add $2,$0
add $3,3
lpe
trn $1,3
| 86.375 | 1,127 | 0.734443 |
b77af1eabb113e96884d3dbfdc1e5013685cafd0 | 825 | asm | Assembly | programs/oeis/202/A202305.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/202/A202305.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/202/A202305.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A202305: Floor(sqrt(5*n)).
; 0,2,3,3,4,5,5,5,6,6,7,7,7,8,8,8,8,9,9,9,10,10,10,10,10,11,11,11,11,12,12,12,12,12,13,13,13,13,13,13,14,14,14,14,14,15,15,15,15,15,15,15,16,16,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,32,32,32,32,32,32,32,32,32,32,32,32,32,33,33,33,33,33,33,33,33,33,33,33,33,33,33,34,34,34,34,34,34,34,34,34,34,34,34,34,35,35,35,35,35
mul $0,5
lpb $0
sub $0,1
add $1,2
trn $0,$1
lpe
div $1,2
| 75 | 731 | 0.642424 |
e212090db619c23da413d31daba46360eb5625d9 | 838 | asm | Assembly | programs/oeis/014/A014824.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/014/A014824.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/014/A014824.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A014824: a(0) = 0; for n>0, a(n) = 10*a(n-1) + n.
; 0,1,12,123,1234,12345,123456,1234567,12345678,123456789,1234567900,12345679011,123456790122,1234567901233,12345679012344,123456790123455,1234567901234566,12345679012345677,123456790123456788,1234567901234567899,12345679012345679010,123456790123456790121,1234567901234567901232,12345679012345679012343,123456790123456790123454,1234567901234567901234565,12345679012345679012345676,123456790123456790123456787,1234567901234567901234567898,12345679012345679012345679009,123456790123456790123456790120,1234567901234567901234567901231,12345679012345679012345679012342,123456790123456790123456790123453,1234567901234567901234567901234564,12345679012345679012345679012345675,123456790123456790123456790123456786
lpb $0
sub $0,1
add $2,1
add $3,$2
mov $1,$3
mul $3,10
lpe
mov $0,$1
| 69.833333 | 705 | 0.868735 |
22d11d13b9dc0df7018eeea32357d7113d2d0d4d | 280 | asm | Assembly | code/1.asm | shan3275/asm | bdbb0ec184ebd1b8dcce74682c4627a9b7371710 | [
"Apache-2.0"
] | null | null | null | code/1.asm | shan3275/asm | bdbb0ec184ebd1b8dcce74682c4627a9b7371710 | [
"Apache-2.0"
] | null | null | null | code/1.asm | shan3275/asm | bdbb0ec184ebd1b8dcce74682c4627a9b7371710 | [
"Apache-2.0"
] | null | null | null | SECTION .data
msg: db "hello world!", 0x0a
len: equ $-msg
SECTION .text
global _main
kernel:
syscall
ret
_main:
mov rax,0x2000004
mov rdi,1
mov rsi,msg
mov rdx,len
call kernel
mov rax,0x2000001
mov rdi,0
call kernel | 12.727273 | 28 | 0.585714 |
955263efcf23432e4e5cc3f1100c129009f9ca06 | 9 | asm | Assembly | src/main/fragment/mos6502-common/vwum1=vwum1_setbyte0_vbuyy.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | 2 | 2022-03-01T02:21:14.000Z | 2022-03-01T04:33:35.000Z | src/main/fragment/mos6502-common/vwum1=vwum1_setbyte0_vbuyy.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | src/main/fragment/mos6502-common/vwum1=vwum1_setbyte0_vbuyy.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | sty {m1}
| 4.5 | 8 | 0.555556 |
dc8c3885bdef2f103f2156b0a30d584efeb55d43 | 557 | asm | Assembly | oeis/017/A017042.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/017/A017042.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/017/A017042.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A017042: a(n) = (7*n + 5)^2.
; 25,144,361,676,1089,1600,2209,2916,3721,4624,5625,6724,7921,9216,10609,12100,13689,15376,17161,19044,21025,23104,25281,27556,29929,32400,34969,37636,40401,43264,46225,49284,52441,55696,59049,62500,66049,69696,73441,77284,81225,85264,89401,93636,97969,102400,106929,111556,116281,121104,126025,131044,136161,141376,146689,152100,157609,163216,168921,174724,180625,186624,192721,198916,205209,211600,218089,224676,231361,238144,245025,252004,259081,266256,273529,280900,288369,295936,303601,311364
mul $0,7
add $0,5
pow $0,2
| 79.571429 | 497 | 0.797127 |
420f93dfdd77a63bf0558ba64e2912a90dcf4c6c | 2,173 | asm | Assembly | programs/oeis/158/A158685.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/158/A158685.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/158/A158685.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A158685: 32*(32*n^2+1).
; 32,1056,4128,9248,16416,25632,36896,50208,65568,82976,102432,123936,147488,173088,200736,230432,262176,295968,331808,369696,409632,451616,495648,541728,589856,640032,692256,746528,802848,861216,921632,984096,1048608,1115168,1183776,1254432,1327136,1401888,1478688,1557536,1638432,1721376,1806368,1893408,1982496,2073632,2166816,2262048,2359328,2458656,2560032,2663456,2768928,2876448,2986016,3097632,3211296,3327008,3444768,3564576,3686432,3810336,3936288,4064288,4194336,4326432,4460576,4596768,4735008,4875296,5017632,5162016,5308448,5456928,5607456,5760032,5914656,6071328,6230048,6390816,6553632,6718496,6885408,7054368,7225376,7398432,7573536,7750688,7929888,8111136,8294432,8479776,8667168,8856608,9048096,9241632,9437216,9634848,9834528,10036256,10240032,10445856,10653728,10863648,11075616,11289632,11505696,11723808,11943968,12166176,12390432,12616736,12845088,13075488,13307936,13542432,13778976,14017568,14258208,14500896,14745632,14992416,15241248,15492128,15745056,16000032,16257056,16516128,16777248,17040416,17305632,17572896,17842208,18113568,18386976,18662432,18939936,19219488,19501088,19784736,20070432,20358176,20647968,20939808,21233696,21529632,21827616,22127648,22429728,22733856,23040032,23348256,23658528,23970848,24285216,24601632,24920096,25240608,25563168,25887776,26214432,26543136,26873888,27206688,27541536,27878432,28217376,28558368,28901408,29246496,29593632,29942816,30294048,30647328,31002656,31360032,31719456,32080928,32444448,32810016,33177632,33547296,33919008,34292768,34668576,35046432,35426336,35808288,36192288,36578336,36966432,37356576,37748768,38143008,38539296,38937632,39338016,39740448,40144928,40551456,40960032,41370656,41783328,42198048,42614816,43033632,43454496,43877408,44302368,44729376,45158432,45589536,46022688,46457888,46895136,47334432,47775776,48219168,48664608,49112096,49561632,50013216,50466848,50922528,51380256,51840032,52301856,52765728,53231648,53699616,54169632,54641696,55115808,55591968,56070176,56550432,57032736,57517088,58003488,58491936,58982432,59474976,59969568,60466208,60964896,61465632,61968416,62473248,62980128,63489056
mov $1,$0
pow $1,2
mul $1,1024
add $1,32
| 271.625 | 2,104 | 0.870225 |
a0b1bd1571138f4d01c53644f28289773e524d32 | 514 | asm | Assembly | oeis/185/A185780.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/185/A185780.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/185/A185780.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A185780: Array T(n,k) = k*(n*k-n+1), by antidiagonals.
; Submitted by Christian Krause
; 1,4,1,9,6,1,16,15,8,1,25,28,21,10,1,36,45,40,27,12,1,49,66,65,52,33,14,1,64,91,96,85,64,39,16,1,81,120,133,126,105,76,45,18,1,100,153,176,175,156,125,88,51,20,1,121,190,225,232,217,186,145,100,57,22,1,144,231,280,297,288,259,216,165,112,63,24,1,169,276,341,370,369,344,301,246,185,124,69,26,1,196,325,408,451,460,441,400,343,276
lpb $0
add $1,1
sub $0,$1
lpe
sub $1,$0
mul $0,$1
add $0,1
add $0,$1
mul $1,$0
add $0,$1
| 34.266667 | 330 | 0.655642 |
4ae3bc6fca99ab3d78956ab185b0e1463777dcad | 720 | asm | Assembly | oeis/334/A334578.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/334/A334578.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/334/A334578.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A334578: Double subfactorials: a(n) = (-1)^floor(n/2) * n!! * Sum_{i=0..floor(n/2)} (-1)^i/(n-2*i)!!.
; Submitted by Jamie Morken(s1)
; 1,1,1,2,5,11,29,76,233,685,2329,7534,27949,97943,391285,1469144,6260561,24975449,112690097,474533530,2253801941,9965204131,49583642701,229199695012,1190007424825,5729992375301,30940193045449,154709794133126,866325405272573,4486584029860655,25989762158177189,139084104925680304,831672389061670049,4589775462547450033,28276861228096781665,160642141189160751154,1017967004211484139941,5943759223998947792699,38682746160036397317757,231806609735958963915260,1547309846401455892710281
mov $3,1
lpb $0
sub $0,2
mov $2,$3
add $2,$1
mul $3,$0
mov $1,$3
add $3,$2
lpe
mov $0,$3
| 48 | 481 | 0.784722 |
05602a39e3889adc04980b68ea7a83de7157b8b5 | 82,489 | asm | Assembly | src/dat/bcalls.asm | Iambian/VANISH | aa7076d8765828ced3293a16f8846cd32f30ea8e | [
"MIT"
] | 1 | 2018-02-03T04:46:12.000Z | 2018-02-03T04:46:12.000Z | src/dat/bcalls.asm | Iambian/VANISH | aa7076d8765828ced3293a16f8846cd32f30ea8e | [
"MIT"
] | null | null | null | src/dat/bcalls.asm | Iambian/VANISH | aa7076d8765828ced3293a16f8846cd32f30ea8e | [
"MIT"
] | null | null | null | .ASSUME ADL=0
;===============================================================================
;OS 2.43 basecall table is 4917 bytes long (1639 entries) starting at $4000
#DEFINE OS_NUMCALLS 1639
bcall_sbase_os:
;.ds (bcall_sbase_os+(3*OS_NUMCALLS))-$
.dl errnosupport ;$4000 _JErrorNo
.dl errnosupport ;$4003 _FontHook
.dl errnosupport ;$4006 _call_character_hook
.dl LdHLind ;$4009 _ldHLind
.dl CpHLDE ;$400C _CpHLDE
.dl errnosupport ;$400F _DivHLBy10
.dl errnosupport ;$4012 _DivHLByA
.dl KbdScan ;$4015 _kdbScan
.dl GetCSC ;$4018 _GetCSC
.dl errnosupport ;$401B _coorMon
.dl errnosupport ;$401E _Mon
.dl errnosupport ;$4021 _monForceKey
.dl errnosupport ;$4024 _sendKPress
.dl errnosupport ;$4027 _JForceCmdNoChar
.dl errnosupport ;$402A _JForceCmd
.dl errnosupport ;$402D _sysErrHandler
.dl errnosupport ;$4030 _newContext
.dl errnosupport ;$4033 _newContext0
.dl errnosupport ;$4036 _cxPutAway
.dl errnosupport ;$4039 _cxPutAway2
.dl errnosupport ;$403C _cxPPutAway
.dl errnosupport ;$403F _cxSizeWind
.dl errnosupport ;$4042 _cxErrEP
.dl errnosupport ;$4045 _cxMain
.dl errnosupport ;$4048 _monErrHand
.dl errnosupport ;$404B _AppInit
.dl errnosupport ;$404E _resetRam
.dl errnosupport ;$4051 _lcd_busy
.dl errnosupport ;$4054 _Min
.dl errnosupport ;$4057 _Max
.dl errnosupport ;$405A
.dl errnosupport ;$405D
.dl errnosupport ;$4060 _Trunc
.dl errnosupport ;$4063 _InvSub
.dl errnosupport ;$4066 _Times2
.dl errnosupport ;$4069 _Plus1
.dl errnosupport ;$406C _Minus1
.dl errnosupport ;$406F _FPSub
.dl errnosupport ;$4072 _FPAdd
.dl errnosupport ;$4075 _DToR
.dl errnosupport ;$4078 _RToD
.dl errnosupport ;$407B _Cube
.dl errnosupport ;$407E _TimesPt5
.dl errnosupport ;$4081 _FPSquare
.dl errnosupport ;$4084 _FPMult
.dl errnosupport ;$4087 _LJRND
.dl errnosupport ;$408A _InvOP1SC
.dl errnosupport ;$408D _InvOP1S
.dl errnosupport ;$4090 _InvOP2S
.dl errnosupport ;$4093 _frac
.dl errnosupport ;$4096 _fprecip
.dl errnosupport ;$4099 _fpdiv
.dl errnosupport ;$409C _SqRoot
.dl errnosupport ;$409F _RndGuard
.dl errnosupport ;$40A2 _RnFx
.dl errnosupport ;$40A5 _int
.dl errnosupport ;$40A8 _Round
.dl errnosupport ;$40AB _LnX
.dl errnosupport ;$40AE _LogX
.dl errnosupport ;$40B1 _LJNORND
.dl errnosupport ;$40B4 _EToX
.dl errnosupport ;$40B7 _TenX
.dl errnosupport ;$40BA _SinCosRad
.dl errnosupport ;$40BD _Sin
.dl errnosupport ;$40C0 _cos
.dl errnosupport ;$40C3 _Tan
.dl errnosupport ;$40C6 _SinHCosH
.dl errnosupport ;$40C9 _TanH
.dl errnosupport ;$40CC _cosh
.dl errnosupport ;$40CF _SinH
.dl errnosupport ;$40D2 _ACosRad
.dl errnosupport ;$40D5 _ATanRad
.dl errnosupport ;$40D8 _ATan2Rad
.dl errnosupport ;$40DB _ASinRad
.dl errnosupport ;$40DE _ACos
.dl errnosupport ;$40E1 _ATan
.dl errnosupport ;$40E4 _ASin
.dl errnosupport ;$40E7 _ATan2
.dl errnosupport ;$40EA _ATanH
.dl errnosupport ;$40ED _ASinH
.dl errnosupport ;$40F0 _ACosH
.dl errnosupport ;$40F3 _PtoR
.dl errnosupport ;$40F6 _RToP
.dl HLTimes9 ;$40F9 _HLTimes9
.dl errnosupport ;$40FC _CkOP1Cplx
.dl errnosupport ;$40FF _CkOP1Real
.dl errnosupport ;$4102 _Angle
.dl errnosupport ;$4105 _COP1Set0
.dl errnosupport ;$4108 _CpOP4OP3
.dl errnosupport ;$410B _Mov9OP2Cp
.dl errnosupport ;$410E _AbsO1O2Cp
.dl errnosupport ;$4111 _cpop1op2
.dl OP3ToOP4 ;$4114 _OP3ToOP4
.dl OP1ToOP4 ;$4117 _OP1ToOP4
.dl OP2ToOP4 ;$411A _OP2ToOP4
.dl OP4ToOP2 ;$411D _OP4ToOP2
.dl OP3ToOP2 ;$4120 _OP3ToOP2
.dl OP1ToOP3 ;$4123 _OP1ToOP3
.dl OP5ToOP2 ;$4126 _OP5ToOP2
.dl OP5ToOP6 ;$4129 _OP5ToOP6
.dl OP5ToOP4 ;$412C _OP5ToOP4
.dl OP1ToOP2 ;$412F _OP1ToOP2
.dl OP6ToOP2 ;$4132 _OP6ToOP2
.dl OP6ToOP1 ;$4135 _OP6ToOP1
.dl OP4ToOP1 ;$4138 _OP4ToOP1
.dl OP5ToOP1 ;$413B _OP5ToOP1
.dl OP3ToOP1 ;$413E _OP3ToOP1
.dl OP6ToOP5 ;$4141 _OP6ToOP5
.dl OP4ToOP5 ;$4144 _OP4ToOP5
.dl OP3ToOP5 ;$4147 _OP3ToOP5
.dl OP2ToOP5 ;$414A _OP2ToOP5
.dl OP2ToOP6 ;$414D _OP2ToOP6
.dl OP1ToOP6 ;$4150 _OP1ToOP6
.dl OP1ToOP5 ;$4153 _OP1ToOP5
.dl OP2ToOP1 ;$4156 _OP2ToOP1
.dl Mov11B ;$4159 _Mov11B
.dl Mov10B ;$415C _Mov10B
.dl Mov9B ;$415F _Mov9B
.dl errnosupport ;$4162 _mov9B2
.dl Mov8B ;$4165 _Mov8B
.dl Mov7B ;$4168 _Mov7B
.dl errnosupport ;$416B _Mov7B2
.dl OP2ToOP3 ;$416E _OP2ToOP3
.dl OP4ToOP3 ;$4171 _OP4ToOP3
.dl OP5ToOP3 ;$4174 _OP5ToOP3
.dl OP4ToOP6 ;$4177 _OP4ToOP6
.dl Mov9ToOp1 ;$417A _Mov9ToOP1
.dl Mov9Op1Op2 ;$417D _Mov9OP1OP2
.dl Mov9ToOp2 ;$4180 _Mov9ToOP2
.dl MovFrOp1 ;$4183 _MovFrOP1
.dl OP4Set1 ;$4186 _OP4Set1
.dl OP3Set1 ;$4189 _OP3Set1
.dl OP2Set8 ;$418C _OP2Set8
.dl OP2Set5 ;$418F _OP2Set5
.dl OP2SetA ;$4192 _OP2SetA
.dl OP2Set4 ;$4195 _OP2Set4
.dl OP2Set3 ;$4198 _OP2Set3
.dl OP1Set1 ;$419B _OP1Set1
.dl OP1Set4 ;$419E _OP1Set4
.dl OP1Set3 ;$41A1 _OP1Set3
.dl OP3Set2 ;$41A4 _OP3Set2
.dl OP1Set2 ;$41A7 _OP1Set2
.dl OP2Set2 ;$41AA _OP2Set2
.dl OP2Set1 ;$41AD _OP2Set1
.dl Zero16D ;$41B0 _Zero16D
.dl OP5Set0 ;$41B3 _OP5Set0
.dl OP4Set0 ;$41B6 _OP4Set0
.dl OP3Set0 ;$41B9 _OP3Set0
.dl OP2Set0 ;$41BC _OP2Set0
.dl OP1Set0 ;$41BF _OP1Set0
.dl errnosupport ;$41C2 _OPSet0
.dl ZeroOp1 ;$41C5 _ZeroOP1
.dl ZeroOp2 ;$41C8 _ZeroOP2
.dl ZeroOp3 ;$41CB _ZeroOP3
.dl ZeroOp ;$41CE _ZeroOP
.dl ClrLp ;$41D1 _ClrLp
.dl errnosupport ;$41D4 _ShRAcc
.dl errnosupport ;$41D7 _ShLAcc
.dl errnosupport ;$41DA _ShR18
.dl errnosupport ;$41DD _SHR18A
.dl errnosupport ;$41E0 _SHR16
.dl errnosupport ;$41E3 _SHR14
.dl errnosupport ;$41E6 _SHL16
.dl errnosupport ;$41E9 _SHL14
.dl errnosupport ;$41EC _SRDO1
.dl errnosupport ;$41EF _SHRDRND
.dl errnosupport ;$41F2 _MANTPA
.dl errnosupport ;$41F5 _ADDPROP
.dl errnosupport ;$41F8 _ADDPROPLP
.dl errnosupport ;$41FB _ADD16D
.dl errnosupport ;$41FE _ADD14D
.dl errnosupport ;$4201 _SUB16D
.dl errnosupport ;$4204 _SUB14D
.dl OP2ExOP6 ;$4207 _OP2ExOP6
.dl OP5ExOP6 ;$420A _OP5ExOP6
.dl OP1ExOP5 ;$420D _OP1ExOP5
.dl OP1ExOP6 ;$4210 _OP1ExOP6
.dl OP2ExOP4 ;$4213 _OP2ExOP4
.dl OP2ExOP5 ;$4216 _OP2ExOP5
.dl OP1ExOP3 ;$4219 _OP1ExOP3
.dl OP1ExOP4 ;$421C _OP1ExOP4
.dl OP1ExOP2 ;$421F _OP1ExOP2
.dl ExLp ;$4222 _ExLp
.dl errnosupport ;$4225 _CkOP1C0
.dl errnosupport ;$4228 _CkOP1FP0
.dl errnosupport ;$422B _CkOP2FP0
.dl errnosupport ;$422E _PosNo0Int
.dl errnosupport ;$4231 _CKPosInt
.dl errnosupport ;$4234 _CKInt
.dl errnosupport ;$4237 _CKOdd
.dl errnosupport ;$423A _CKOP1M
.dl errnosupport ;$423D _GETCONOP1
.dl errnosupport ;$4240 _GETCONOP2
.dl errnosupport ;$4243 _PIDIV2
.dl errnosupport ;$4246 _PIDIV4
.dl errnosupport ;$4249 _PItimes2
.dl errnosupport ;$424C _PI
.dl errnosupport ;$424F _ExpToHex
.dl errnosupport ;$4252 _OP1ExpToDec
.dl errnosupport ;$4255 _ckop2pos
.dl errnosupport ;$4258 _CkOP1Pos
.dl ClrOp2S ;$425B _ClrOP2S
.dl ClrOp1S ;$425E _ClrOP1S
.dl errnosupport ;$4261 _FDIV100
.dl errnosupport ;$4264 _FDIV10
.dl errnosupport ;$4267 _DecO1Exp
.dl errnosupport ;$426A _INCO1EXP
.dl errnosupport ;$426D _INCEXP
.dl errnosupport ;$4270 _CkValidNum
.dl errnosupport ;$4273 _GETEXP
.dl HtimesL ;$4276 _HTimesL
.dl errnosupport ;$4279 _EOP1NotReal
.dl errnosupport ;$427C _ThetaName
.dl errnosupport ;$427F _RName
.dl errnosupport ;$4282 _REGEQNAME
.dl errnosupport ;$4285 _RECURNNAME
.dl errnosupport ;$4288 _XName
.dl errnosupport ;$428B _YName
.dl errnosupport ;$428E _TName
.dl errnosupport ;$4291 _REALNAME
.dl errnosupport ;$4294 _SETesTOfps
.dl errnosupport ;$4297 _markTableDirty
.dl errnosupport ;$429A _OP1MOP2EXP
.dl errnosupport ;$429D _OP1EXPMinusE
.dl errnosupport ;$42A0 _CHKERRBREAK
.dl errnosupport ;$42A3 _isA2ByteTok
.dl errnosupport ;$42A6 _GETLASTENTRY
.dl errnosupport ;$42A9 _GETLASTENTRYPTR
.dl errnosupport ;$42AC _REGCLRCHNG
.dl errnosupport ;$42AF _RESETWINTOP
.dl errnosupport ;$42B2 _SetYUp
.dl errnosupport ;$42B5 _SetXUp
.dl errnosupport ;$42B8 _ISO1NONTLSTorPROG
.dl errnosupport ;$42BB _ISO1NONTEMPLST
.dl IS_A_LSTorCLST ;$42BE _IS_A_LSTorCLST
.dl errnosupport ;$42C1 _CHK_HL_999
.dl errnosupport ;$42C4 _equ_or_newequ
.dl errnosupport ;$42C7 _errd_op1notpos
.dl errnosupport ;$42CA _ErrD_OP1Not_R
.dl errnosupport ;$42CD _ErrD_OP1NotPosInt
.dl errnosupport ;$42D0 _ErrD_OP1_LE_0
.dl errnosupport ;$42D3 _ErrD_OP1_0
.dl errnosupport ;$42D6 _FINDSYM_GET_SIZE
.dl errnosupport ;$42D9 _STO_STATVAR
.dl errnosupport ;$42DC _Rcl_StatVar
.dl errnosupport ;$42DF _CkOP2Real
.dl errnosupport ;$42E2 _GET_X_INDIRECT
.dl MemChk ;$42E5 _MemChk
.dl errnosupport ;$42E8 _CMPPRGNAMLEN1
.dl errnosupport ;$42EB _CMPPRGNAMLEN
.dl errnosupport ;$42EE _FINDPROGSYM
.dl errnosupport ;$42F1 _ChkFindSym
.dl errnosupport ;$42F4 _FindSym
.dl InsertMem ;$42F7 _InsertMem
.dl INSERTMEMA ;$42FA _INSERTMEMA
.dl EnoughMem ;$42FD _EnoughMem
.dl errnosupport ;$4300 _CMPMEMNEED
.dl errnosupport ;$4303 _CREATEPVAR4
.dl errnosupport ;$4306 _CREATEPVAR3
.dl errnosupport ;$4309 _CREATEVAR3
.dl errnosupport ;$430C _CreateCplx
.dl errnosupport ;$430F _CreateReal
.dl errnosupport ;$4312 _CreateTempRList
.dl errnosupport ;$4315 _CreateRList
.dl errnosupport ;$4318 _CREATETCLIST
.dl errnosupport ;$431B _CreateCList
.dl errnosupport ;$431E _CreateTempRMat
.dl errnosupport ;$4321 _CreateRMat
.dl errnosupport ;$4324 _CreateTempString
.dl errnosupport ;$4327 _CreateStrng
.dl errnosupport ;$432A _Create0Equ
.dl errnosupport ;$432D _CreateTempEqu
.dl errnosupport ;$4330 _CreateEqu
.dl errnosupport ;$4333 _CreatePict
.dl errnosupport ;$4336 _CreateGDB
.dl errnosupport ;$4339 _CreateProg
.dl errnosupport ;$433C _CHKDEL
.dl errnosupport ;$433F _CHKDELA
.dl ADJPARSER ;$4342 _ADJPARSER
.dl AdjMath ;$4345 _ADJMATH
.dl ADJM7 ;$4348 _ADJM7
.dl DELMEMA ;$434B _DELMEMA
.dl errnosupport ;$434E _GET_FORM_NUM
.dl errnosupport ;$4351 _DelVar
.dl errnosupport ;$4354 _DELVARIO
.dl DelMem ;$4357 _DelMem
.dl DELVAR3D ;$435A _DELVAR3D
.dl DELVAR3C ;$435D _DELVAR3C
.dl DelVar3DC ;$4360 _DELVAR3DC
.dl IsFixedName ;$4363 _IsFixedName
.dl errnosupport ;$4366 _DelVarEntry
.dl DataSizeA ;$4369 _DataSizeA
.dl DataSize ;$436C _DataSize
.dl errnosupport ;$436F _POPMCPLXO1
.dl errnosupport ;$4372 _POPMCPLX
.dl errnosupport ;$4375 _MOVCPLX
.dl errnosupport ;$4378 _popOP5
.dl errnosupport ;$437B _popOP3
.dl errnosupport ;$437E _popOP1
.dl errnosupport ;$4381 _PopRealO6
.dl errnosupport ;$4384 _PopRealO5
.dl errnosupport ;$4387 _PopRealO4
.dl errnosupport ;$438A _PopRealO3
.dl errnosupport ;$438D _PopRealO2
.dl errnosupport ;$4390 _PopRealO1
.dl errnosupport ;$4393 _PopReal
.dl errnosupport ;$4396 _FPOPCPLX
.dl errnosupport ;$4399 _FPOPREAL
.dl errnosupport ;$439C _FPOPFPS
.dl errnosupport ;$439F _DeallocFPS
.dl errnosupport ;$43A2 _DeallocFPS1
.dl errnosupport ;$43A5 _AllocFPS
.dl errnosupport ;$43A8 _AllocFPS1
.dl errnosupport ;$43AB _PushRealO6
.dl errnosupport ;$43AE _PushRealO5
.dl errnosupport ;$43B1 _PushRealO4
.dl errnosupport ;$43B4 _PushRealO3
.dl errnosupport ;$43B7 _PushRealO2
.dl errnosupport ;$43BA _PushRealO1
.dl errnosupport ;$43BD _PushReal
.dl errnosupport ;$43C0 _PushOP5
.dl errnosupport ;$43C3 _PushOP3
.dl errnosupport ;$43C6 _PUSHMCPLXO3
.dl errnosupport ;$43C9 _PushOP1
.dl errnosupport ;$43CC _PUSHMCPLXO1
.dl errnosupport ;$43CF _PUSHMCPLX
.dl errnosupport ;$43D2 _ExMCplxO1
.dl Exch9 ;$43D5 _Exch9
.dl errnosupport ;$43D8 _CpyTo1FPS11
.dl errnosupport ;$43DB _CpyTo2FPS5
.dl errnosupport ;$43DE _CpyTo1FPS5
.dl errnosupport ;$43E1 _CpyTo2FPS6
.dl errnosupport ;$43E4 _CpyTo1FPS6
.dl errnosupport ;$43E7 _CpyTo2FPS7
.dl errnosupport ;$43EA _CpyTo1FPS7
.dl errnosupport ;$43ED _CpyTo1FPS8
.dl errnosupport ;$43F0 _CpyTo2FPS8
.dl errnosupport ;$43F3 _CpyTo1FPS10
.dl errnosupport ;$43F6 _CpyTo1FPS9
.dl errnosupport ;$43F9 _CpyTo2FPS4
.dl errnosupport ;$43FC _CpyTo6FPS3
.dl errnosupport ;$43FF _CpyTo6FPS2
.dl errnosupport ;$4402 _CpyTo2FPS3
.dl errnosupport ;$4405 _CPYCTO1FPS3
.dl errnosupport ;$4408 _CpyTo1FPS3
.dl errnosupport ;$440B _CPYFPS3
.dl errnosupport ;$440E _CpyTo1FPS4
.dl errnosupport ;$4411 _CpyTo3FPS2
.dl errnosupport ;$4414 _CpyTo5FPST
.dl errnosupport ;$4417 _CpyTo6FPST
.dl errnosupport ;$441A _CpyTo4FPST
.dl errnosupport ;$441D _CpyTo3FPST
.dl errnosupport ;$4420 _CpyTo2FPST
.dl errnosupport ;$4423 _CpyTo1FPST
.dl errnosupport ;$4426 _CPYFPST
.dl errnosupport ;$4429 _CpyStack
.dl errnosupport ;$442C _CpyTo3FPS1
.dl errnosupport ;$442F _CpyTo2FPS1
.dl errnosupport ;$4432 _CpyTo1FPS1
.dl errnosupport ;$4435 _CPYFPS1
.dl errnosupport ;$4438 _CpyTo2FPS2
.dl errnosupport ;$443B _CpyTo1FPS2
.dl errnosupport ;$443E _CPYFPS2
.dl errnosupport ;$4441 _CpyO3ToFPST
.dl errnosupport ;$4444 _CpyO2ToFPST
.dl errnosupport ;$4447 _CpyO6ToFPST
.dl errnosupport ;$444A _CpyO1ToFPST
.dl errnosupport ;$444D _CpyToFPST
.dl errnosupport ;$4450 _CpyToStack
.dl errnosupport ;$4453 _CpyO3ToFPS1
.dl errnosupport ;$4456 _CpyO5ToFPS1
.dl errnosupport ;$4459 _CpyO2ToFPS1
.dl errnosupport ;$445C _CpyO1ToFPS1
.dl errnosupport ;$445F _CpyToFPS1
.dl errnosupport ;$4462 _CpyO2ToFPS2
.dl errnosupport ;$4465 _CpyO3ToFPS2
.dl errnosupport ;$4468 _CpyO6ToFPS2
.dl errnosupport ;$446B _CpyO1ToFPS2
.dl errnosupport ;$446E _CpyToFPS2
.dl errnosupport ;$4471 _CpyO5ToFPS3
.dl errnosupport ;$4474 _CpyO2ToFPS3
.dl errnosupport ;$4477 _CpyO1ToFPS3
.dl errnosupport ;$447A _CpyToFPS3
.dl errnosupport ;$447D _CpyO1ToFPS6
.dl errnosupport ;$4480 _CpyO1ToFPS7
.dl errnosupport ;$4483 _CpyO1ToFPS5
.dl errnosupport ;$4486 _CpyO2ToFPS4
.dl errnosupport ;$4489 _CpyO1ToFPS4
.dl ErrNotEnoughMem ;$448C _ErrNotEnoughMem
.dl errnosupport ;$448F _FPSMINUS9
.dl errnosupport ;$4492 _HLMINUS9
.dl errnosupport ;$4495 _ErrOverflow
.dl errnosupport ;$4498 _ErrDivBy0
.dl errnosupport ;$449B _ErrSingularMat
.dl errnosupport ;$449E _ErrDomain
.dl errnosupport ;$44A1 _ErrIncrement
.dl errnosupport ;$44A4 _ErrNon_Real
.dl errnosupport ;$44A7 _ErrSyntax
.dl errnosupport ;$44AA _ErrDataType
.dl errnosupport ;$44AD _ErrArgument
.dl errnosupport ;$44B0 _ErrDimMismatch
.dl errnosupport ;$44B3 _ErrDimension
.dl errnosupport ;$44B6 _ErrUndefined
.dl errnosupport ;$44B9 _ErrMemory
.dl errnosupport ;$44BC _ErrInvalid
.dl errnosupport ;$44BF _ErrBreak
.dl errnosupport ;$44C2 _ErrStat
.dl errnosupport ;$44C5 _ErrSignChange
.dl errnosupport ;$44C8 _ErrIterations
.dl errnosupport ;$44CB _ErrBadGuess
.dl errnosupport ;$44CE _ErrTolTooSmall
.dl errnosupport ;$44D1 _ErrStatPlot
.dl errnosupport ;$44D4 _ErrLinkXmit
.dl errnosupport ;$44D7 _JError
.dl errnosupport ;$44DA _noErrorEntry
.dl errnosupport ;$44DD _pushErrorHandleR
.dl errnosupport ;$44E0 _popErrorHandleR
.dl errnosupport ;$44E3 _strcopy
.dl errnosupport ;$44E6 _strCat
.dl errnosupport ;$44E9 _isInSet
.dl errnosupport ;$44EC _sDone
.dl errnosupport ;$44EF _serrort
.dl errnosupport ;$44F2 _sNameEq
.dl errnosupport ;$44F5 _sUnderScr
.dl errnosupport ;$44F8 _sFAIL
.dl errnosupport ;$44FB _sName
.dl errnosupport ;$44FE _sOK
.dl PutMap ;$4501 _PutMap
.dl PutC ;$4504 _PutC
.dl DispHL ;$4507 _DispHL
.dl PutS ;$450A _PutS
.dl errnosupport ;$450D _putpsb
.dl PutPS ;$4510 _PutPS
.dl errnosupport ;$4513 _wputps
.dl errnosupport ;$4516 _putbuf
.dl errnosupport ;$4519 _putbuf1
.dl errnosupport ;$451C _wputc
.dl errnosupport ;$451F _wputs
.dl errnosupport ;$4522 _wputsEOL
.dl errnosupport ;$4525 _wdispEOL
.dl errnosupport ;$4528 _whomeup
.dl errnosupport ;$452B _setNumWindow
.dl NewLine ;$452E _newline
.dl errnosupport ;$4531 _moveDown
.dl errnosupport ;$4534 _scrollUp
.dl errnosupport ;$4537 _shrinkWindow
.dl errnosupport ;$453A _moveUp
.dl errnosupport ;$453D _scrollDown
.dl ClrLCDFull ;$4540 _ClrLCDFull
.dl errnosupport ;$4543 _ClrLCD
.dl ClrScrnFull ;$4546 _ClrScrnFull
.dl errnosupport ;$4549 _ClrScrn
.dl ClrTxtShd ;$454C _ClrTxtShd
.dl errnosupport ;$454F _ClrWindow
.dl errnosupport ;$4552 _EraseEOL
.dl errnosupport ;$4555 _EraseEOW
.dl HomeUp ;$4558 _HomeUp
.dl errnosupport ;$455B _getcurloc
.dl VPutMap ;$455E _VPutMap
.dl VPutS ;$4561 _VPutS
.dl VPutSN ;$4564 _VPutSN
.dl errnosupport ;$4567 _vputsnG
.dl errnosupport ;$456A _vputsnT
.dl errnosupport ;$456D _RunIndicOn
.dl errnosupport ;$4570 _RunIndicOff
.dl errnosupport ;$4573 _saveCmdShadow
.dl errnosupport ;$4576 _saveShadow
.dl errnosupport ;$4579 _rstrShadow
.dl errnosupport ;$457C _rstrpartial
.dl errnosupport ;$457F _rstrCurRow
.dl errnosupport ;$4582 _rstrUnderMenu
.dl errnosupport ;$4585 _rstrbotrow
.dl errnosupport ;$4588 _saveTR
.dl errnosupport ;$458B _restoreTR
.dl errnosupport ;$458E _GetKeyPress
.dl errnosupport ;$4591 _GetTokLen
.dl errnosupport ;$4594 _GET_TOK_STRNG
.dl errnosupport ;$4597 _GETTOKSTRING
.dl errnosupport ;$459A _PUTBPATBUF2
.dl errnosupport ;$459D _PUTBPATBUF
.dl errnosupport ;$45A0 _putbPAT
.dl errnosupport ;$45A3 _putcCheckScrolL
.dl errnosupport ;$45A6 _DispEOL
.dl errnosupport ;$45A9 _fdispEOL
.dl errnosupport ;$45AC _MAKEROWCMD
.dl errnosupport ;$45AF _TOTOSTRP
.dl errnosupport ;$45B2 _SETVARNAME
.dl errnosupport ;$45B5 _DispDone
.dl errnosupport ;$45B8 _finishoutput
.dl errnosupport ;$45BB _curBlink
.dl errnosupport ;$45BE _CursorOff
.dl errnosupport ;$45C1 _hideCursor
.dl errnosupport ;$45C4 _CursorOn
.dl errnosupport ;$45C7 _showCursor
.dl errnosupport ;$45CA _KeyToString
.dl errnosupport ;$45CD _PULLDOWNCHK
.dl errnosupport ;$45D0 _MenuCatCommon
.dl errnosupport ;$45D3 _ZIfCatalog
.dl errnosupport ;$45D6 _ZIfMatrixMenu
.dl errnosupport ;$45D9 _LoadMenuNum
.dl errnosupport ;$45DC _LoadMenuNumL
.dl errnosupport ;$45DF _MenCatRet
.dl errnosupport ;$45E2 _MenuSwitchContext
.dl errnosupport ;$45E5 _MenuEdKey
.dl errnosupport ;$45E8 _BackUpGraphSettings
.dl errnosupport ;$45EB _notalphnum
.dl errnosupport ;$45EE _SaveSavedFlags
.dl errnosupport ;$45F1 _SetMenuFlags
.dl errnosupport ;$45F4 _RstrSomeFlags
.dl errnosupport ;$45F7 _RstrOScreen
.dl errnosupport ;$45FA _SaveOScreen
.dl errnosupport ;$45FD _dispListName
.dl errnosupport ;$4600 _PrevContext
.dl errnosupport ;$4603 _CompareContext
.dl errnosupport ;$4606 _AdrMRow
.dl errnosupport ;$4609 _AdrMEle
.dl errnosupport ;$460C _GETMATOP1A
.dl errnosupport ;$460F _GETM1TOOP1
.dl errnosupport ;$4612 _GETM1TOP1A
.dl errnosupport ;$4615 _GetMToOP1
.dl errnosupport ;$4618 _PUTTOM1A
.dl errnosupport ;$461B _PUTTOMA1
.dl errnosupport ;$461E _PutToMat
.dl errnosupport ;$4621 _MAT_EL_DIV
.dl errnosupport ;$4624 _CMATFUN
.dl errnosupport ;$4627 _ROWECH_POLY
.dl errnosupport ;$462A _ROWECHELON
.dl errnosupport ;$462D _AdrLEle
.dl errnosupport ;$4630 _GETL1TOOP1
.dl errnosupport ;$4633 _GETL1TOP1A
.dl errnosupport ;$4636 _GetLToOP1
.dl errnosupport ;$4639 _GETL1TOOP2
.dl errnosupport ;$463C _GETL1TOP2A
.dl errnosupport ;$463F _GETL2TOP1A
.dl errnosupport ;$4642 _PUTTOLA1
.dl errnosupport ;$4645 _PutToL
.dl errnosupport ;$4648 _MAXMINLST
.dl errnosupport ;$464B _LLOW
.dl errnosupport ;$464E _LHIGH
.dl errnosupport ;$4651 _LSUM
.dl errnosupport ;$4654 CUMSUM
.dl errnosupport ;$4657 _ToFrac
.dl errnosupport ;$465A _SEQSET
.dl errnosupport ;$465D _SEQSOLVE
.dl errnosupport ;$4660 _CMP_NUM_INIT
.dl errnosupport ;$4663 _BinOPExec
.dl errnosupport ;$4666 _EXMEAN1
.dl errnosupport ;$4669 _SET2MVLPTRS
.dl errnosupport ;$466C _SETMAT1
.dl errnosupport ;$466F _CREATETLIST
.dl errnosupport ;$4672 _UnOPExec
.dl errnosupport ;$4675 _ThreeExec
.dl errnosupport ;$4678 _RESTOREERRNO
.dl errnosupport ;$467B _FourExec
.dl errnosupport ;$467E _FiveExec
.dl errnosupport ;$4681 _CPYTO2ES1
.dl errnosupport ;$4684 _CPYTO6ES1
.dl errnosupport ;$4687 _CPYTO1ES1
.dl errnosupport ;$468A _CPYTO3ES1
.dl errnosupport ;$468D _CPYTO3ES2
.dl errnosupport ;$4690 _CPYTO2ES2
.dl errnosupport ;$4693 _CPYTO1ES2
.dl errnosupport ;$4696 _CPYTO2ES3
.dl errnosupport ;$4699 _CPYTO1ES3
.dl errnosupport ;$469C _CPYTO3ES4
.dl errnosupport ;$469F _CPYTO6ES3
.dl errnosupport ;$46A2 _CPYTO2ES4
.dl errnosupport ;$46A5 _CPYTO1ES4
.dl errnosupport ;$46A8 _CPYTO2ES5
.dl errnosupport ;$46AB _CPYTO1ES5
.dl errnosupport ;$46AE _CPYTO4EST
.dl errnosupport ;$46B1 _CPYTO2EST
.dl errnosupport ;$46B4 _CPYTO1EST
.dl errnosupport ;$46B7 _CPYTO2ES6
.dl errnosupport ;$46BA _CPYTO1ES6
.dl errnosupport ;$46BD _CPYTO2ES7
.dl errnosupport ;$46C0 _CPYTO1ES7
.dl errnosupport ;$46C3 _CPYTO2ES8
.dl errnosupport ;$46C6 _CPYTO1ES8
.dl errnosupport ;$46C9 _CPYTO1ES9
.dl errnosupport ;$46CC _CPYTO2ES9
.dl errnosupport ;$46CF _CPYTO2ES10
.dl errnosupport ;$46D2 _CPYTO1ES10
.dl errnosupport ;$46D5 _CPYTO2ES11
.dl errnosupport ;$46D8 _CPYTO1ES11
.dl errnosupport ;$46DB _CPYTO2ES12
.dl errnosupport ;$46DE _CPYTO1ES12
.dl errnosupport ;$46E1 _CPYTO2ES13
.dl errnosupport ;$46E4 _CPYTO1ES13
.dl errnosupport ;$46E7 _CPYTO1ES14
.dl errnosupport ;$46EA _CPYTO1ES16
.dl errnosupport ;$46ED _CPYTO1ES17
.dl errnosupport ;$46F0 _CPYTO1ES18
.dl errnosupport ;$46F3 _CPYTO1ES15
.dl errnosupport ;$46F6 _CPYTO2ES15
.dl errnosupport ;$46F9 _CPYO1TOEST
.dl errnosupport ;$46FC _CPYO1TOES1
.dl errnosupport ;$46FF _CPYO6TOES1
.dl errnosupport ;$4702 _CPYO6TOES3
.dl errnosupport ;$4705 _CPYO1TOES2
.dl errnosupport ;$4708 _CPYO2TOES2
.dl errnosupport ;$470B _CPYO1TOES3
.dl errnosupport ;$470E _CPYO1TOES4
.dl errnosupport ;$4711 _CPYO1TOES5
.dl errnosupport ;$4714 _CPYO1TOES6
.dl errnosupport ;$4717 _CPYO1TOES7
.dl errnosupport ;$471A _CPYO2TOES4
.dl errnosupport ;$471D _CPYO2TOES5
.dl errnosupport ;$4720 _CPYO2TOES6
.dl errnosupport ;$4723 _CPYO2TOES7
.dl errnosupport ;$4726 _CPYO2TOES8
.dl errnosupport ;$4729 _CPYO2TOES9
.dl errnosupport ;$472C _CPYO1TOES8
.dl errnosupport ;$472F _CPYO1TOES9
.dl errnosupport ;$4732 _CPYO1TOES10
.dl errnosupport ;$4735 _CPYO1TOES11
.dl errnosupport ;$4738 _CPYO1TOES12
.dl errnosupport ;$473B _CPYO1TOES13
.dl errnosupport ;$473E _CPYO1TOES14
.dl errnosupport ;$4741 _CPYO1TOES15
.dl errnosupport ;$4744 _EVALF3A
.dl errnosupport ;$4747 _GetK
.dl errnosupport ;$474A _setTitle
.dl errnosupport ;$474D _dispVarVal
.dl errnosupport ;$4750 _RecallEd
.dl errnosupport ;$4753 _createNumEditBuf
.dl errnosupport ;$4756 _ProcessBufKeys
.dl errnosupport ;$4759 _CallCommon
.dl errnosupport ;$475C _CommonKeys
.dl errnosupport ;$475F _Leftmore
.dl errnosupport ;$4762 _fDel
.dl errnosupport ;$4765 _fClear
.dl errnosupport ;$4768 _finsDisp
.dl errnosupport ;$476B _FinsDisp02
.dl errnosupport ;$476E _closeeditbufnor
.dl errnosupport ;$4771 _releaseBuffer
.dl errnosupport ;$4774 _varnameToOP1hl
.dl errnosupport ;$4777 _nameToOP1
.dl errnosupport ;$477A _numPPutAway
.dl errnosupport ;$477D _numRedisp
.dl errnosupport ;$4780 _numError02
.dl Load_SFont ;$4783 _Load_SFont
.dl SFont_Len ;$4786 _SFont_Len
.dl errnosupport ;$4789 _InitNumVec
.dl SetXXOp1 ;$478C _SetXXOP1
.dl SetXXOp2 ;$478F _SetXXOP2
.dl SetXXXXOP2 ;$4792 _SetXXXXOP2
.dl errnosupport ;$4795 _UCLineS
.dl errnosupport ;$4798 _CLine
.dl errnosupport ;$479B _CLineS
.dl errnosupport ;$479E _XRootY
.dl errnosupport ;$47A1 _YToX
.dl errnosupport ;$47A4 _ZmStats
.dl errnosupport ;$47A7 _POINT_STAT_HLP
.dl errnosupport ;$47AA _DRAWSPLOT
.dl errnosupport ;$47AD _INITNEWTRACEP
.dl errnosupport ;$47B0 _SPLOTCOORD
.dl errnosupport ;$47B3 _SPLOTRIGHT
.dl errnosupport ;$47B6 _SPLOTLEFT
.dl errnosupport ;$47B9 _CMPBOXINFO
.dl errnosupport ;$47BC _NEXTPLOT
.dl errnosupport ;$47BF _PREVPLOT
.dl errnosupport ;$47C2 _CLRPREVPLOT
.dl errnosupport ;$47C5 _PUT_INDEX_LST
.dl errnosupport ;$47C8 _GET_INDEX_LST
.dl errnosupport ;$47CB _HEAP_SORT
.dl errnosupport ;$47CE _StoGDB2
.dl errnosupport ;$47D1 _RclGDB2
.dl errnosupport ;$47D4 _CircCmd
.dl errnosupport ;$47D7 _GrphCirc
.dl Mov18B ;$47DA _Mov18B
.dl errnosupport ;$47DD _DarkLine
.dl errnosupport ;$47E0 _ILine
.dl errnosupport ;$47E3 _IPoint
.dl errnosupport ;$47E6 _XYRNDBOTH
.dl errnosupport ;$47E9 _XYRND
.dl errnosupport ;$47EC _CheckTOP
.dl errnosupport ;$47EF _CheckXY
.dl errnosupport ;$47F2 _DarkPnt
.dl errnosupport ;$47F5 _CPointS
.dl errnosupport ;$47F8 _WTOV
.dl errnosupport ;$47FB _VtoWHLDE
.dl errnosupport ;$47FE _Xitof
.dl errnosupport ;$4801 _YftoI
.dl errnosupport ;$4804 _XftoI
.dl errnosupport ;$4807 _TraceOff
.dl errnosupport ;$480A _GrRedisp
.dl errnosupport ;$480D _GDISPTOKEN
.dl errnosupport ;$4810 _GRDECODA
.dl errnosupport ;$4813 _LABCOOR
.dl errnosupport ;$4816 _COORDISP
.dl errnosupport ;$4819 _TMPEQUNOSRC
.dl errnosupport ;$481C _GRLABELS
.dl errnosupport ;$481F _YPIXSET
.dl errnosupport ;$4822 _XPIXSET
.dl errnosupport ;$4825 _COPYRNG
.dl errnosupport ;$4828 _VALCUR
.dl errnosupport ;$482B _GRPUTAWAY
.dl errnosupport ;$482E _RSTGFLAGS
.dl errnosupport ;$4831 _GRReset
.dl errnosupport ;$4834 _XYCENT
.dl errnosupport ;$4837 _ZOOMXYCMD
.dl errnosupport ;$483A _CPTDELY
.dl errnosupport ;$483D _CPTDELX
.dl errnosupport ;$4840 _SetFuncM
.dl errnosupport ;$4843 _SetSeqM
.dl errnosupport ;$4846 _SetPolM
.dl errnosupport ;$4849 _SetParM
.dl errnosupport ;$484C _ZmInt
.dl errnosupport ;$484F _ZmDecml
.dl errnosupport ;$4852 _ZmPrev
.dl errnosupport ;$4855 _ZmUsr
.dl errnosupport ;$4858 _SETUZM
.dl errnosupport ;$485B _ZmFit
.dl errnosupport ;$485E _ZmSquare
.dl errnosupport ;$4861 _ZmTrig
.dl errnosupport ;$4864 _SetXMinMax
.dl errnosupport ;$4867 _ZooDefault
.dl GrBufCpy ;$486A _GrBufCpy
.dl errnosupport ;$486D _DRAWSPLITLINE
.dl errnosupport ;$4870 _RestoreDisp
.dl errnosupport ;$4873 _FNDDB
.dl errnosupport ;$4876 _AllEq
.dl errnosupport ;$4879 _fndallseleq
.dl errnosupport ;$487C _NEXTEQ
.dl errnosupport ;$487F _PREVEQ
.dl errnosupport ;$4882 _BLINKGCUR
.dl errnosupport ;$4885 _NBCURSOR
.dl errnosupport ;$4888 _STATMARK
.dl errnosupport ;$488B _CHKTEXTCURS
.dl errnosupport ;$488E _Regraph
.dl errnosupport ;$4891 _DOREFFLAGS02
.dl errnosupport ;$4894 INITNSEQ
.dl errnosupport ;$4897 _YRES
.dl errnosupport ;$489A _Ceiling
.dl errnosupport ;$489D _PutXY
.dl errnosupport ;$48A0 _PUTEQUNO
.dl errnosupport ;$48A3 _PDspGrph
.dl errnosupport ;$48A6 _HorizCmd
.dl errnosupport ;$48A9 _VertCmd
.dl errnosupport ;$48AC _LineCmd
.dl errnosupport ;$48AF _UnLineCmd
.dl errnosupport ;$48B2 _PointCmd
.dl errnosupport ;$48B5 _PixelTest
.dl errnosupport ;$48B8 _PixelCmd
.dl errnosupport ;$48BB _TanLnF
.dl errnosupport ;$48BE _DRAWCMD_INIT
.dl errnosupport ;$48C1 _DrawCmd
.dl errnosupport ;$48C4 _SHADECMD
.dl errnosupport ;$48C7 _InvCmd
.dl errnosupport ;$48CA _STATSHADE
.dl errnosupport ;$48CD _dspmattable
.dl errnosupport ;$48D0 _dsplsts
.dl errnosupport ;$48D3 _closeEditBuf
.dl errnosupport ;$48D6 _parseEditBuf
.dl errnosupport ;$48D9 _putsm
.dl errnosupport ;$48DC _DspCurTbl
.dl errnosupport ;$48DF _DSPGRTBL
.dl errnosupport ;$48E2 _zeroTemplate
.dl errnosupport ;$48E5 _settblrefs
.dl errnosupport ;$48E8 _dispTblBot
.dl errnosupport ;$48EB _DispTblTop
.dl errnosupport ;$48EE _dispTblbody
.dl errnosupport ;$48F1 _VPUTBLANK
.dl errnosupport ;$48F4 _TBLTRACE
.dl errnosupport ;$48F7 _dispListNameY
.dl errnosupport ;$48FA _CurNameLength
.dl errnosupport ;$48FD _NameToBuf
.dl errnosupport ;$4900 _jpromptcursor
.dl errnosupport ;$4903 _BufLeft
.dl errnosupport ;$4906 _BufRight
.dl errnosupport ;$4909 _bufInsert
.dl errnosupport ;$490C _bufQueueChar
.dl errnosupport ;$490F _BufReplace
.dl errnosupport ;$4912 _BufDelete
.dl errnosupport ;$4915 _BUFPEEK
.dl errnosupport ;$4918 _BUFPEEK1
.dl errnosupport ;$491B _BUFPEEK2
.dl errnosupport ;$491E _BUFPEEK3
.dl errnosupport ;$4921 _BufToBtm
.dl errnosupport ;$4924 _setupEditEqu
.dl errnosupport ;$4927 _BufToTop
.dl errnosupport ;$492A _isEditFull
.dl errnosupport ;$492D _IsEditEmpty
.dl errnosupport ;$4930 _IsAtTop
.dl errnosupport ;$4933 _IsAtBtm
.dl errnosupport ;$4936 _BufClear
.dl errnosupport ;$4939 _JcursorFirst
.dl errnosupport ;$493C _JcursorLast
.dl errnosupport ;$493F _CursorLeft
.dl errnosupport ;$4942 _cursorRight
.dl errnosupport ;$4945 _cursorUp
.dl errnosupport ;$4948 _CursorDown
.dl errnosupport ;$494B _cursorToOffset
.dl errnosupport ;$494E _InsDisp
.dl errnosupport ;$4951 _FDISPBOL1
.dl errnosupport ;$4954 _FDISPBOL
.dl errnosupport ;$4957 _DispEOW
.dl errnosupport ;$495A _DispHead
.dl errnosupport ;$495D _DispTail
.dl errnosupport ;$4960 _PutTokString
.dl errnosupport ;$4963 _setupEditCmd
.dl errnosupport ;$4966 _setEmptyEditEqu
.dl errnosupport ;$4969 _SetEmptyEditPtr
.dl errnosupport ;$496C _CloseEditEqu
.dl errnosupport ;$496F _GetPrevTok
.dl errnosupport ;$4972 _getkey
.dl errnosupport ;$4975 _canIndic
.dl errnosupport ;$4978 _LCD_DRIVERON
.dl errnosupport ;$497B _DFMIN2
.dl errnosupport ;$497E _formDisp
.dl errnosupport ;$4981 _formMatrix
.dl errnosupport ;$4984 _wscrollLeft
.dl errnosupport ;$4987 _wscrollUp
.dl errnosupport ;$498A _wscrollDown
.dl errnosupport ;$498D _wscrollRight
.dl errnosupport ;$4990 _FormEReal
.dl errnosupport ;$4993 _formERealTOK
.dl errnosupport ;$4996 _FormDCplx
.dl errnosupport ;$4999 _FormReal
.dl errnosupport ;$499C _formScrollUp
.dl errnosupport ;$499F _setwinabove
.dl errnosupport ;$49A2 _disarmScroll
.dl errnosupport ;$49A5 _OP1toEdit
.dl errnosupport ;$49A8 _MinToEdit
.dl errnosupport ;$49AB _rclVarToEdit
.dl errnosupport ;$49AE _rclVarToEditPtR
.dl errnosupport ;$49B1 _RCLENTRYTOEDIT
.dl errnosupport ;$49B4 _rclToQueue
.dl errnosupport ;$49B7 _FORMTOTOK
.dl errnosupport ;$49BA _DISP_INTERVAL
.dl errnosupport ;$49BD _DisplstName
.dl errnosupport ;$49C0 _dispSLstNameHL
.dl errnosupport ;$49C3 _EditEqu
.dl errnosupport ;$49C6 _closeEquField
.dl errnosupport ;$49C9 _AutoSelect
.dl errnosupport ;$49CC _DISPYEOS
.dl errnosupport ;$49CF _dispNumEOS
.dl errnosupport ;$49D2 _setupdispeq
.dl errnosupport ;$49D5 _DispForward
.dl errnosupport ;$49D8 _DispYPrompt2
.dl errnosupport ;$49DB _stringwidth
.dl errnosupport ;$49DE _dispErrorScreen
.dl errnosupport ;$49E1 _POPCX
.dl errnosupport ;$49E4 _loadnoeentry
.dl errnosupport ;$49E7 _SaveScreen
.dl errnosupport ;$49EA _RETSCREEN
.dl errnosupport ;$49ED _RetScreenErr
.dl errnosupport ;$49F0 _CheckSplitFlag
.dl errnosupport ;$49F3 _SolveRedisp
.dl errnosupport ;$49F6 _SolveDisp
.dl errnosupport ;$49F9 _itemName
.dl errnosupport ;$49FC _SetNorm_Vals
.dl errnosupport ;$49FF _SetYOffset
.dl errnosupport ;$4A02 _ConvKeyToTok
.dl errnosupport ;$4A05 _ConvFCKeyToTok
.dl errnosupport ;$4A08 _ConvFEKeyToTok
.dl errnosupport ;$4A0B _TokToKey
.dl errnosupport ;$4A0E _SendSkipExitPacket
.dl errnosupport ;$4A11 _GETVARCMD
.dl errnosupport ;$4A14 _SendVarCmd
.dl errnosupport ;$4A17 _SendScreenshot
.dl errnosupport ;$4A1A keyscnlnk
.dl errnosupport ;$4A1D _DeselectAllVars
.dl errnosupport ;$4A20 _DelRes
.dl errnosupport ;$4A23 _ConvLcToLr
.dl errnosupport ;$4A26 _RedimMat
.dl errnosupport ;$4A29 _IncLstSize
.dl errnosupport ;$4A2C _InsertList
.dl errnosupport ;$4A2F _dellistel
.dl errnosupport ;$4A32 _EditProg
.dl errnosupport ;$4A35 _CloseProg
.dl errnosupport ;$4A38 _ClrGraphRef
.dl errnosupport ;$4A3B _FixTempCnt
.dl errnosupport ;$4A3E _SAVEDATA
.dl errnosupport ;$4A41 _RESTOREDATA
.dl errnosupport ;$4A44 _FindAlphaUp
.dl errnosupport ;$4A47 _FindAlphaDn
.dl errnosupport ;$4A4A _CmpSyms
.dl errnosupport ;$4A4D _CREATETEMP
.dl errnosupport ;$4A50 _CleanAll
.dl errnosupport ;$4A53 _MoveToNextSym
.dl errnosupport ;$4A56 _ConvLrToLc
.dl errnosupport ;$4A59 _TblScreenDn
.dl errnosupport ;$4A5C _TblScreenUp
.dl errnosupport ;$4A5F _SCREENUP
.dl errnosupport ;$4A62 _ScreenUpDown
.dl errnosupport ;$4A65 _ZifRclHandler
.dl errnosupport ;$4A68 _zifrclkapp
.dl errnosupport ;$4A6B _RCLKEY
.dl errnosupport ;$4A6E _RCLREGEQ_CALL
.dl errnosupport ;$4A71 _RCLREGEQ
.dl errnosupport ;$4A74 _initNamePrompt
.dl errnosupport ;$4A77 _NamePrompt2
.dl errnosupport ;$4A7A _CATALOGCHK
.dl errnosupport ;$4A7D _clrTR
.dl errnosupport ;$4A80 _QUAD
.dl errnosupport ;$4A83 _GRAPHQUAD
.dl errnosupport ;$4A86 _BC2NOREAL
.dl errnosupport ;$4A89 _ErrNonReal_FPST_FPS1
.dl errnosupport ;$4A8C _ErrNonReal
.dl errnosupport ;$4A8F _WRITE_TEXT
.dl errnosupport ;$4A92 _FORSEQINIT
.dl errnosupport ;$4A95 _GRPHPARS
.dl errnosupport ;$4A98 _PLOTPARS
.dl errnosupport ;$4A9B _ParseInp
.dl errnosupport ;$4A9E _PARSEOFF
.dl errnosupport ;$4AA1 _PARSESCAN
.dl errnosupport ;$4AA4 _GETPARSE
.dl errnosupport ;$4AA7 _SAVEPARSE
.dl errnosupport ;$4AAA _InitPFlgs
.dl errnosupport ;$4AAD _CKENDLINERR
.dl OP2Set60 ;$4AB0 _OP2Set60
.dl errnosupport ;$4AB3 _GETSTATPTR
.dl errnosupport ;$4AB6 _CMP_STATPTR
.dl errnosupport ;$4AB9 _VARSYSADR
.dl errnosupport ;$4ABC _StoSysTok
.dl errnosupport ;$4ABF _StoAns
.dl errnosupport ;$4AC2 _StoTheta
.dl errnosupport ;$4AC5 _StoR
.dl errnosupport ;$4AC8 _StoY
.dl errnosupport ;$4ACB _StoN
.dl errnosupport ;$4ACE _StoT
.dl errnosupport ;$4AD1 _StoX
.dl errnosupport ;$4AD4 _StoOther
.dl errnosupport ;$4AD7 _RclAns
.dl errnosupport ;$4ADA _RclY
.dl errnosupport ;$4ADD _RclN
.dl errnosupport ;$4AE0 _RclX
.dl errnosupport ;$4AE3 _RclVarSym
.dl errnosupport ;$4AE6 _RclSysTok
.dl errnosupport ;$4AE9 _StMatEl
.dl errnosupport ;$4AEC _STLSTVECEL
.dl errnosupport ;$4AEF _ConvOP1
.dl errnosupport ;$4AF2 _Find_Parse_Formula
.dl errnosupport ;$4AF5 _PARSE_FORMULA
.dl errnosupport ;$4AF8 _FetchQuotedString
.dl errnosupport ;$4AFB _FetchNumLine
.dl errnosupport ;$4AFE _ParseNameTokens
.dl errnosupport ;$4B01 _ParseInpGraph
.dl errnosupport ;$4B04 _ParseInpGraphReset
.dl errnosupport ;$4B07 _ParseInpLastEnt
.dl errnosupport ;$4B0A _ErrOnCertainTypes
.dl errnosupport ;$4B0D _CreatePair
.dl errnosupport ;$4B10 _PUSHNUM
.dl errnosupport ;$4B13 _INCCURPCERREND
.dl errnosupport ;$4B16 _ERREND
.dl errnosupport ;$4B19 _COMMAERRF
.dl errnosupport ;$4B1C _COMMAERR
.dl errnosupport ;$4B1F _STEQARG2
.dl errnosupport ;$4B22 _STEQARG
.dl errnosupport ;$4B25 _INPARG
.dl errnosupport ;$4B28 _STEQARG3
.dl errnosupport ;$4B2B _NXTFETCH
.dl errnosupport ;$4B2E _CKFETCHVAR
.dl errnosupport ;$4B31 _FETCHVARA
.dl errnosupport ;$4B34 _FETCHVAR
.dl errnosupport ;$4B37 _CKENDLIN
.dl errnosupport ;$4B3A _CKENDEXP
.dl errnosupport ;$4B3D _CKPARSEND
.dl errnosupport ;$4B40 _STOTYPEARG
.dl errnosupport ;$4B43 _ConvDim
.dl errnosupport ;$4B46 _ConvDim00
.dl errnosupport ;$4B49 _AHEADEQUAL
.dl errnosupport ;$4B4C _PARSAHEADS
.dl errnosupport ;$4B4F _PARSAHEAD
.dl errnosupport ;$4B52 _AnsName
.dl errnosupport ;$4B55 _STOCMPREALS
.dl errnosupport ;$4B58 _GETDEPTR
.dl errnosupport ;$4B5B _PUSH2BOPER
.dl errnosupport ;$4B5E _POP2BOPER
.dl errnosupport ;$4B61 _PUSHOPER
.dl errnosupport ;$4B64 _POPOPER
.dl errnosupport ;$4B67 _FIND_E_UNDEF
.dl errnosupport ;$4B6A _STTMPEQ
.dl errnosupport ;$4B6D _FINDEOL
.dl errnosupport ;$4B70 _BRKINC
.dl errnosupport ;$4B73 _INCFETCH
.dl errnosupport ;$4B76 _CURFETCH
.dl errnosupport ;$4B79 _Random
.dl errnosupport ;$4B7C _StoRand
.dl errnosupport ;$4B7F _RandInit
.dl errnosupport ;$4B82 _resetStacks
.dl errnosupport ;$4B85 _Factorial
.dl errnosupport ;$4B88 _YONOFF
.dl errnosupport ;$4B8B _EQSELUNSEL
.dl errnosupport ;$4B8E _ITSOLVER
.dl errnosupport ;$4B91 _GRITSOLVER
.dl errnosupport ;$4B94 _ITSOLVERB
.dl errnosupport ;$4B97 _ITSOLVERNB
.dl errnosupport ;$4B9A _ExTest_INT
.dl errnosupport ;$4B9D
.dl errnosupport ;$4BA0 _LogGamma
.dl errnosupport ;$4BA3 _OneVar
.dl errnosupport ;$4BA6 _ONEVARS_0
.dl errnosupport ;$4BA9 _ORDSTAT
.dl errnosupport ;$4BAC _INITSTATANS2
.dl errnosupport ;$4BAF _ANOVA_SPEC
.dl errnosupport ;$4BB2 _OutputExpr
.dl errnosupport ;$4BB5 _CentCursor
.dl errnosupport ;$4BB8 _TEXT
.dl errnosupport ;$4BBB _FINISHSPEC
.dl errnosupport ;$4BBE _TRCYFUNC
.dl errnosupport ;$4BC1 _RCL_SEQ_X
.dl errnosupport ;$4BC4 _RCLSEQ2
.dl errnosupport ;$4BC7 _GRPPutAway
.dl errnosupport ;$4BCA _CKVALDELX
.dl errnosupport ;$4BCD _CKVALDELTA
.dl GrBufClr ;$4BD0 _GrBufClr
.dl errnosupport ;$4BD3 _GRBUFCPY_V
.dl errnosupport ;$4BD6 _FNDSELEQ
.dl errnosupport ;$4BD9 _CLRGRAPHXY
.dl errnosupport ;$4BDC _NEDXT_Y_STYLE
.dl errnosupport ;$4BDF _PLOTPT
.dl errnosupport ;$4BE2 _NEWINDEP
.dl errnosupport ;$4BE5 _Axes
.dl errnosupport ;$4BE8 _setPenX
.dl errnosupport ;$4BEB _setPenY
.dl errnosupport ;$4BEE _setPenT
.dl errnosupport ;$4BF1 _TAN_EQU_DISP
.dl errnosupport ;$4BF4 _PutAns
.dl errnosupport ;$4BF7 _DispOP1A
.dl errnosupport ;$4BFA _MATHTANLN
.dl errnosupport ;$4BFD _ENDDRAW
.dl errnosupport ;$4C00 _SetTblGraphDraw
.dl errnosupport ;$4C03 _StartDialog
.dl errnosupport ;$4C06 _DialogInit
.dl errnosupport ;$4C09 _GetDialogNumOP1
.dl errnosupport ;$4C0C _SetDialogNumOP1
.dl errnosupport ;$4C0F _GetDialogNumHL
.dl errnosupport ;$4C12 _ErrArgumentO123
.dl errnosupport ;$4C15 _SetDialogKeyOverride
.dl errnosupport ;$4C18 _ResDialogKeyOverride
.dl errnosupport ;$4C1B _ForceDialogKeypress
.dl errnosupport ;$4C1E _DialogStartGetKey
.dl errnosupport ;$4C21 _StartDialog_Override
.dl errnosupport ;$4C24 _CallDialogCallback
.dl errnosupport ;$4C27 _SetDialogCallback
.dl errnosupport ;$4C2A _ResDialogCallback
.dl errnosupport ;$4C2D _CopyDialogNum
.dl MemClear ;$4C30 _MemClear
.dl MemSet ;$4C33 _MemSet
.dl errnosupport ;$4C36 _ReloadAppEntryVecs
.dl errnosupport ;$4C39 _PointOn
.dl errnosupport ;$4C3C _ExecuteNewPrgm
.dl errnosupport ;$4C3F _StrLength
.dl errnosupport ;$4C42 _VPutMapRec
.dl errnosupport ;$4C45 _getRomPage
.dl errnosupport ;$4C48 _FindAppUp
.dl errnosupport ;$4C4B _FindAppDn
.dl errnosupport ;$4C4E _FindApp
.dl errnosupport ;$4C51 _ExecuteApp
.dl errnosupport ;$4C54 _MonReset
.dl errnosupport ;$4C57 _ClearParseVar
.dl errnosupport ;$4C5A _SetParseVarProg
.dl errnosupport ;$4C5D _isContextKey
.dl errnosupport ;$4C60 _IBounds
.dl errnosupport ;$4C63 _IOffset
.dl errnosupport ;$4C66 _DrawCirc2
.dl errnosupport ;$4C69 _CanAlphIns
.dl errnosupport ;$4C6C cxRedisp
.dl errnosupport ;$4C6F _GetBaseVer
.dl errnosupport ;$4C72 _OPSet0DE
.dl errnosupport ;$4C75 _AppGetCbl
.dl errnosupport ;$4C78 _AppGetCalc
.dl errnosupport ;$4C7B _SaveDisp
.dl errnosupport ;$4C7E _SetIgnoreKey
.dl errnosupport ;$4C81 _SetSendThisKeyBack
.dl errnosupport ;$4C84 _DisableApd
.dl errnosupport ;$4C87 _EnableApd
.dl errnosupport ;$4C8A _JForceCmdNoChar2
.dl errnosupport ;$4C8D _set2IY34
.dl errnosupport ;$4C90 _forcecmd
.dl errnosupport ;$4C93 _ApdSetup
.dl errnosupport ;$4C96 _Get_NumKey
.dl errnosupport ;$4C99 _AppSetup
.dl errnosupport ;$4C9C _HandleLinkKeyActivity
.dl errnosupport ;$4C9F _JForceCmdNoChar3
.dl errnosupport ;$4CA2 _ReleaseSedit
.dl errnosupport ;$4CA5 _initsmalleditline
.dl errnosupport ;$4CA8 _startsmalledit
.dl errnosupport ;$4CAB
.dl errnosupport ;$4CAE _SGetTokString
.dl LoadPattern ;$4CB1 _LoadPattern
.dl SStringLength ;$4CB4 _SStringLength
.dl errnosupport ;$4CB7 _RestorePenCol
.dl errnosupport ;$4CBA
.dl errnosupport ;$4CBD _DoNothing
.dl errnosupport ;$4CC0 _ForceSmallEditReturn
.dl errnosupport ;$4CC3
.dl errnosupport ;$4CC6
.dl errnosupport ;$4CC9
.dl errnosupport ;$4CCC
.dl errnosupport ;$4CCF _VEraseEOL
.dl errnosupport ;$4CD2
.dl errnosupport ;$4CD5
.dl errnosupport ;$4CD8 _GoToErr
.dl errnosupport ;$4CDB _initsmalleditBox
.dl errnosupport ;$4CDE
.dl errnosupport ;$4CE1 _EmptyHook
.dl errnosupport ;$4CE4 _ForceSmallEditReturn2
.dl errnosupport ;$4CE7
.dl errnosupport ;$4CEA
.dl errnosupport ;$4CED _ClearRow
.dl errnosupport ;$4CF0
.dl errnosupport ;$4CF3
.dl errnosupport ;$4CF6
.dl errnosupport ;$4CF9
.dl errnosupport ;$4CFC
.dl errnosupport ;$4CFF
.dl errnosupport ;$4D02
.dl errnosupport ;$4D05
.dl errnosupport ;$4D08
.dl errnosupport ;$4D0B
.dl errnosupport ;$4D0E
.dl errnosupport ;$4D11
.dl errnosupport ;$4D14
.dl errnosupport ;$4D17
.dl errnosupport ;$4D1A
.dl errnosupport ;$4D1D
.dl errnosupport ;$4D20
.dl errnosupport ;$4D23
.dl errnosupport ;$4D26 _AppScreenUpDown
.dl errnosupport ;$4D29 _AppScreenUpDown1
.dl errnosupport ;$4D2C
.dl errnosupport ;$4D2F _initsmalleditlinevar
.dl errnosupport ;$4D32 _initsmalleditlineop1
.dl errnosupport ;$4D35 _initsmalleditboxvar
.dl errnosupport ;$4D38 _initsmalleditboxop1
.dl errnosupport ;$4D3B
.dl errnosupport ;$4D3E _RestartDialog
.dl errnosupport ;$4D41 _ErrCustom1
.dl errnosupport ;$4D44 _ErrCustom2
.dl errnosupport ;$4D47 _AppStartMouse
.dl errnosupport ;$4D4A _AppStartMouseNoSetup
.dl errnosupport ;$4D4D _AppMouseGetKey
.dl errnosupport ;$4D50 _AppDispMouse
.dl errnosupport ;$4D53 _AppEraseMouse
.dl errnosupport ;$4D56 _AppSetupMouseMem
.dl errnosupport ;$4D59 _GetDispRowOffset
.dl errnosupport ;$4D5C _ClearRect
.dl errnosupport ;$4D5F _InvertRect
.dl errnosupport ;$4D62 _FillRect
.dl errnosupport ;$4D65 _AppUpdateMouse
.dl errnosupport ;$4D68 _AppDispPrevMouse
.dl errnosupport ;$4D6B
.dl errnosupport ;$4D6E _initcellbox
.dl errnosupport ;$4D71 _drawcell
.dl errnosupport ;$4D74
.dl errnosupport ;$4D77 _invertcell
.dl errnosupport ;$4D7A _setcelloverride
.dl errnosupport ;$4D7D _DrawRectBorder
.dl errnosupport ;$4D80 _ClearCell
.dl errnosupport ;$4D83 _covercell
.dl errnosupport ;$4D86 _EraseRectBorder
.dl errnosupport ;$4D89 _FillRectPattern
.dl errnosupport ;$4D8C _DrawRectBorderClear
.dl errnosupport ;$4D8F
.dl errnosupport ;$4D92
.dl errnosupport ;$4D95 _VerticalLine
.dl errnosupport ;$4D98 _IBoundsFull
.dl errnosupport ;$4D9B _DisplayImage
.dl errnosupport ;$4D9E
.dl errnosupport ;$4DA1
.dl errnosupport ;$4DA4 _AppUpdateMouseCoords
.dl errnosupport ;$4DA7 _ShiftBitsLeft
.dl errnosupport ;$4DAA
.dl errnosupport ;$4DAD
.dl errnosupport ;$4DB0
.dl errnosupport ;$4DB3
.dl errnosupport ;$4DB6
.dl errnosupport ;$4DB9
.dl errnosupport ;$4DBC
.dl errnosupport ;$4DBF _AppUpdateMouseRow
.dl errnosupport ;$4DC2 _AppDrawMouse
.dl errnosupport ;$4DC5 _AppDrawMouseDirect
.dl errnosupport ;$4DC8 _CPoint
.dl errnosupport ;$4DCB _DeleteApp
.dl errnosupport ;$4DCE _AppUpdateMouseXY
.dl errnosupport ;$4DD1 _setmodecellflag
.dl errnosupport ;$4DD4 _resetmodecellflag
.dl errnosupport ;$4DD7 _ismodecellset
.dl errnosupport ;$4DDA _getmodecellflag
.dl errnosupport ;$4DDD
.dl errnosupport ;$4DE0 _CellBoxManager
.dl errnosupport ;$4DE3 _startnewcell
.dl errnosupport ;$4DE6
.dl errnosupport ;$4DE9 _CellCursorHandle
.dl errnosupport ;$4DEC
.dl errnosupport ;$4DEF
.dl errnosupport ;$4DF2 _ClearCurCell
.dl errnosupport ;$4DF5 _drawcurcell
.dl errnosupport ;$4DF8 _invertcurcell
.dl errnosupport ;$4DFB _covercurcell
.dl errnosupport ;$4DFE _BlinkCell
.dl errnosupport ;$4E01 _BlinkCellNoLookUp
.dl errnosupport ;$4E04 _BlinkCurCell
.dl errnosupport ;$4E07 _BlinkCellToOn
.dl errnosupport ;$4E0A _BlinkCellToOnNoLookUp
.dl errnosupport ;$4E0D _BlinkCurCellToOn
.dl errnosupport ;$4E10 _BlinkCellToOff
.dl errnosupport ;$4E13 _BlinkCellToOffNoLookUp
.dl errnosupport ;$4E16 _BlinkCurCellToOff
.dl errnosupport ;$4E19 _getcurmodecellflag
.dl errnosupport ;$4E1C
.dl errnosupport ;$4E1F _startsmalleditreturn
.dl errnosupport ;$4E22
.dl errnosupport ;$4E25
.dl errnosupport ;$4E28 _CellkHandle
.dl errnosupport ;$4E2B _errchkalphabox
.dl errnosupport ;$4E2E
.dl errnosupport ;$4E31
.dl errnosupport ;$4E34
.dl errnosupport ;$4E37
.dl errnosupport ;$4E3A _eraseallcells
.dl errnosupport ;$4E3D _iscurmodecellset
.dl errnosupport ;$4E40
.dl errnosupport ;$4E43 _initalphabox
.dl errnosupport ;$4E46
.dl errnosupport ;$4E49
.dl errnosupport ;$4E4C _drawblnkcell
.dl errnosupport ;$4E4F _ClearBlnkCell
.dl errnosupport ;$4E52 _invertblnkcell
.dl errnosupport ;$4E55 _AppMouseForceKey
.dl errnosupport ;$4E58 _AppSetupMouseMemCoords
.dl errnosupport ;$4E5B _AppMoveMouse
.dl errnosupport ;$4E5E _GetStringInput
.dl errnosupport ;$4E61 _GetStringInput2
.dl errnosupport ;$4E64 _WaitEnterKeyValue
.dl errnosupport ;$4E67 _HorizontalLine
.dl errnosupport ;$4E6A _CreateAppVar
.dl errnosupport ;$4E6D _CreateProtProg
.dl errnosupport ;$4E70 _CreateVar
.dl errnosupport ;$4E73 _AsmComp
.dl errnosupport ;$4E76 _GetAsmSize
.dl errnosupport ;$4E79 _SquishPrgm
.dl errnosupport ;$4E7C _ExecutePrgm
.dl errnosupport ;$4E7F _ChkFindSymAsm
.dl errnosupport ;$4E82 _ParsePrgmName
.dl errnosupport ;$4E85 _CSub
.dl errnosupport ;$4E88 _CAdd
.dl errnosupport ;$4E8B _CSqaure
.dl errnosupport ;$4E8E _CMult
.dl errnosupport ;$4E91 _CRecip
.dl errnosupport ;$4E94 _CDiv
.dl errnosupport ;$4E97 _CAbs
.dl errnosupport ;$4E9A _AddSquares
.dl errnosupport ;$4E9D _CSqRoot
.dl errnosupport ;$4EA0 _CLN
.dl errnosupport ;$4EA3 _CLog
.dl errnosupport ;$4EA6 _CTenX
.dl errnosupport ;$4EA9 _CEtoX
.dl errnosupport ;$4EAC _CXrootY
.dl errnosupport ;$4EAF
.dl errnosupport ;$4EB2 _CYtoX
.dl errnosupport ;$4EB5 _InvertNonReal
.dl errnosupport ;$4EB8 _CplxMult
.dl errnosupport ;$4EBB _CplxDiv
.dl errnosupport ;$4EBE _CplxTrunc
.dl errnosupport ;$4EC1 _CplxFrac
.dl errnosupport ;$4EC4 _CplxFloor
.dl errnosupport ;$4EC7 _SendHeaderPacket
.dl errnosupport ;$4ECA _CancelTransmission
.dl errnosupport ;$4ECD _SendScreenContents
.dl errnosupport ;$4ED0 _SendRAMVarData
.dl errnosupport ;$4ED3 _SendRAMCmd
.dl errnosupport ;$4ED6 _SendPacket
.dl errnosupport ;$4ED9 _ReceiveAck
.dl errnosupport ;$4EDC _Send4BytePacket
.dl errnosupport ;$4EDF _SendDataByte
.dl errnosupport ;$4EE2 _Send4Bytes
.dl errnosupport ;$4EE5 _SendAByte
.dl errnosupport ;$4EE8 _SendCByte
.dl errnosupport ;$4EEB _GetSmallPacket
.dl errnosupport ;$4EEE _GetDataPacket
.dl errnosupport ;$4EF1 _SendAck
.dl errnosupport ;$4EF4 _Get4Bytes
.dl errnosupport ;$4EF7 _Get3Bytes
.dl errnosupport ;$4EFA _Rec1stByte
.dl errnosupport ;$4EFD _Rec1stByteNC
.dl errnosupport ;$4F00 _ContinueGetByte
.dl errnosupport ;$4F03 _RecAByteIO
.dl errnosupport ;$4F06 _ReceiveVar
.dl errnosupport ;$4F09 _ReceiveVarDataExists
.dl errnosupport ;$4F0C _ReceiveVarData
.dl errnosupport ;$4F0F _SrchVLstUp
.dl errnosupport ;$4F12 _SrchVLstDn
.dl errnosupport ;$4F15 _SendVariable
.dl errnosupport ;$4F18 _Get4BytesCursor
.dl errnosupport ;$4F1B _Get4BytesNC
.dl errnosupport ;$4F1E _Convert85List
.dl errnosupport ;$4F21 _SendDirectoryContents
.dl errnosupport ;$4F24 _SendReadyPacket
.dl errnosupport ;$4F27 _Convert85Real
.dl errnosupport ;$4F2A _ret_6
.dl errnosupport ;$4F2D _SendCertificate
.dl errnosupport ;$4F30 _SendApplication
.dl errnosupport ;$4F33 _SendOSHeader
.dl errnosupport ;$4F36 _SendOSPage
.dl errnosupport ;$4F39 _SendOS
.dl errnosupport ;$4F3C _FlashWriteDisable
.dl errnosupport ;$4F3F _SendCmd
.dl errnosupport ;$4F42 _SendOSValidationData
.dl errnosupport ;$4F45 _Disp
.dl errnosupport ;$4F48 _SendGetkeyPress
.dl errnosupport ;$4F4B _RejectCommand
.dl errnosupport ;$4F4E _CheckLinkLines
.dl errnosupport ;$4F51 _GetHookByte
.dl errnosupport ;$4F54 _GetBytePaged
.dl errnosupport ;$4F57 _cursorhook
.dl errnosupport ;$4F5A _call_library_hook
.dl errnosupport ;$4F5D _call_rawkey_hook
.dl errnosupport ;$4F60 _setCursorHook
.dl errnosupport ;$4F63 _EnableLibraryHook
.dl errnosupport ;$4F66 _SetGetKeyHook
.dl errnosupport ;$4F69 _ClrCursorHook
.dl errnosupport ;$4F6C _DisableLibraryHook
.dl errnosupport ;$4F6F _ClrRawKeyHook
.dl errnosupport ;$4F72 _ResetHookBytes
.dl errnosupport ;$4F75 _AdjustAllHooks
.dl errnosupport ;$4F78 _getkeyhook
.dl errnosupport ;$4F7B _SetGetcscHook
.dl errnosupport ;$4F7E _ClrGetKeyHook
.dl errnosupport ;$4F81 _call_linkactivity_hook
.dl errnosupport ;$4F84 _EnableLinkActivityHook
.dl errnosupport ;$4F87 _DisableLinkHook
.dl errnosupport ;$4F8A _GetSmallPacket2
.dl errnosupport ;$4F8D _EnableCatalog2Hook
.dl errnosupport ;$4F90 _DisableCatalog2Hook
.dl errnosupport ;$4F93 _EnableLocalizeHook
.dl errnosupport ;$4F96 _DisableLocalizeHook
.dl errnosupport ;$4F99 _SetTokenHook
.dl errnosupport ;$4F9C _ClearTokenHook
.dl errnosupport ;$4F9F
.dl errnosupport ;$4FA2
.dl errnosupport ;$4FA5 _DispListElementOffLA
.dl errnosupport ;$4FA8 _Bit_VertSplit
.dl errnosupport ;$4FAB _SetHomescreenHook
.dl errnosupport ;$4FAE _ClrHomeScreenHook
.dl errnosupport ;$4FB1 _SetWindowHook
.dl errnosupport ;$4FB4 _DisableWindowHook
.dl errnosupport ;$4FB7 _SetGraphModeHook
.dl errnosupport ;$4FBA _DisableGraphHook
.dl errnosupport ;$4FBD _ParseAndStoreSysVar
.dl errnosupport ;$4FC0 _DisplayEditSysVar
.dl errnosupport ;$4FC3 _JForceWindowSettings
.dl errnosupport ;$4FC6 _DelVarArc
.dl errnosupport ;$4FC9 _DelVarNoArc
.dl errnosupport ;$4FCC _SetAllPlots
.dl errnosupport ;$4FCF _SetYeditHook
.dl errnosupport ;$4FD2 _DisableYEquHook
.dl errnosupport ;$4FD5 _JForceYEqu
.dl errnosupport ;$4FD8 _Arc_Unarc
.dl errnosupport ;$4FDB _ArchiveVar
.dl errnosupport ;$4FDE _UnarchiveVar
.dl errnosupport ;$4FE1 _DialogKeyHook
.dl errnosupport ;$4FE4 _SetFontHook
.dl errnosupport ;$4FE7 _ClrFontHook
.dl errnosupport ;$4FEA _SetRegraphHook
.dl errnosupport ;$4FED _DisableRegraphHook
.dl errnosupport ;$4FF0 _RunGraphingHook
.dl errnosupport ;$4FF3 _SetTraceHook
.dl errnosupport ;$4FF6 _DisableTraceHook
.dl errnosupport ;$4FF9 _RunTraceHook
.dl errnosupport ;$4FFC _NDeriv
.dl errnosupport ;$4FFF _PolarDerivative
.dl errnosupport ;$5002 _JForceGraphNoKey
.dl errnosupport ;$5005 _JForceGraphKey
.dl errnosupport ;$5008 _PowerOff
.dl errnosupport ;$500B _GetKeyRetOff
.dl errnosupport ;$500E _FindGroupSym
.dl errnosupport ;$5011 _FillBasePageTable
.dl errnosupport ;$5014 _ArcChk
.dl errnosupport ;$5017 _FlashToRam
.dl errnosupport ;$501A _LoadDEIndPaged
.dl errnosupport ;$501D _LoadCIndPaged
.dl errnosupport ;$5020 _SetupPagedPtr
.dl errnosupport ;$5023 _PagedGet
.dl errnosupport ;$5026 _SetParserHook
.dl errnosupport ;$5029 _ClearParserHook
.dl errnosupport ;$502C _SetAppChangeHook
.dl errnosupport ;$502F _ClearAppChangeHook
.dl errnosupport ;$5032 _EnableGraphicsHook
.dl errnosupport ;$5035 _DisableGraphicsHook
.dl errnosupport ;$5038 _IPointNoGraphicsHook
.dl errnosupport ;$503B _ILineNoHook
.dl errnosupport ;$503E
.dl errnosupport ;$5041 _DeleteTempPrograms
.dl errnosupport ;$5044 _EnableCatalog1Hook
.dl errnosupport ;$5047 _DisableCatalog1Hook
.dl errnosupport ;$504A _EnableHelpHook
.dl errnosupport ;$504D _DisableHelpHook
.dl errnosupport ;$5050 _DispCatalogEnd
.dl errnosupport ;$5053 _GetMenuKeypress
.dl errnosupport ;$5056 _GetCatalogItem
.dl errnosupport ;$5059 _RunCatalog2Hook
.dl errnosupport ;$505C _RunCatalog1Hook
.dl errnosupport ;$505F
.dl errnosupport ;$5062
.dl errnosupport ;$5065 _dispMenuTitle
.dl errnosupport ;$5068
.dl errnosupport ;$506B _EnablecxRedispHook
.dl errnosupport ;$506E _DisablecxRedispHook
.dl errnosupport ;$5071 _BufCpy
.dl errnosupport ;$5074 _BufClr
.dl errnosupport ;$5077 _UnOPExec2
.dl errnosupport ;$507A _BinOPExec2
.dl errnosupport ;$507D _LoadMenuB
.dl errnosupport ;$5080 _DisplayVarInfo
.dl errnosupport ;$5083 _SetMenuHook
.dl errnosupport ;$5086 _ClearMenuHook
.dl errnosupport ;$5089 _getBCOffsetIX
.dl errnosupport ;$508C _GetBCOffsetIX2
.dl errnosupport ;$508F _ForceFullScreen
.dl errnosupport ;$5092 _GetVariableData
.dl errnosupport ;$5095 _FindSwapSector
.dl errnosupport ;$5098 _CopyFlashPage
.dl errnosupport ;$509B _FindAppNumPages
.dl HLMinus5 ;$509E _HLMinus5
.dl errnosupport ;$50A1 _SendArcPacket
.dl errnosupport ;$50A4 _ForceGraphKeypress
.dl errnosupport ;$50A7 _DoNothing3
.dl errnosupport ;$50AA _FormBase
.dl errnosupport ;$50AD
.dl errnosupport ;$50B0 _IsFragmented
.dl errnosupport ;$50B3 _Chk_Batt_Low
.dl errnosupport ;$50B6 _Chk_Batt_Low_2
.dl errnosupport ;$50B9 _Arc_Unarc2
.dl errnosupport ;$50BC _GetAppBasePage
.dl errnosupport ;$50BF _SetExSpeed
.dl errnosupport ;$50C2 _RclExit
.dl errnosupport ;$50C5 _GroupAllVars
.dl errnosupport ;$50C8 _UngroupVar
.dl errnosupport ;$50CB _WriteToFlash
.dl errnosupport ;$50CE _SetSilentLinkHook
.dl errnosupport ;$50D1 _DisableSilentLinkHook
.dl errnosupport ;$50D4 _TwoVarSet
.dl errnosupport ;$50D7 _ExecClassCToken
.dl errnosupport ;$50DA _ExecClass3Token
.dl errnosupport ;$50DD _GetSysInfo
.dl errnosupport ;$50E0 _NZIf83Plus
.dl errnosupport ;$50E3 _LinkStatus
.dl errnosupport ;$50E6 _DoNothing2
.dl errnosupport ;$50E9 _KeyboardGetKey
.dl errnosupport ;$50EC _RunAppLib
.dl errnosupport ;$50EF _FindSpecialAppHeader
.dl errnosupport ;$50F2 _SendUSBData
.dl errnosupport ;$50F5 _AppGetCBLUSB
.dl errnosupport ;$50F8 _AppGetCalcUSB
.dl errnosupport ;$50FB _GetVarCmdUSB
.dl errnosupport ;$50FE
.dl errnosupport ;$5101 _TenX2
.dl errnosupport ;$5104
.dl errnosupport ;$5107
.dl errnosupport ;$510A _GetVarVersion
.dl errnosupport ;$510D
.dl errnosupport ;$5110
.dl errnosupport ;$5113 _DeleteTempEditEqu
.dl errnosupport ;$5116 _JcursorFirst2
.dl errnosupport ;$5119
.dl errnosupport ;$511C _PromptMoveBackLeft
.dl errnosupport ;$511F _wputsEOL2
.dl errnosupport ;$5122 _InvertTextInsMode
.dl errnosupport ;$5125
.dl errnosupport ;$5128 _ResetDefaults
.dl errnosupport ;$512B _ZeroFinanceVars
.dl errnosupport ;$512E _DispHeader
.dl errnosupport ;$5131 _JForceGroup
.dl errnosupport ;$5134
.dl errnosupport ;$5137
.dl errnosupport ;$513A _DispCoords
.dl errnosupport ;$513D
.dl errnosupport ;$5140
.dl errnosupport ;$5143 _chkTmr
.dl errnosupport ;$5146
.dl errnosupport ;$5149
.dl errnosupport ;$514C
.dl errnosupport ;$514F _getDate
.dl errnosupport ;$5152 _GetDateString
.dl errnosupport ;$5155 _getDtFmt
.dl errnosupport ;$5158 _getDtStr
.dl errnosupport ;$515B _getTime
.dl errnosupport ;$515E _GetTimeString
.dl errnosupport ;$5161 _getTmFmt
.dl errnosupport ;$5164 _getTmStr
.dl errnosupport ;$5167 _SetZeroOne
.dl errnosupport ;$516A _setDate
.dl errnosupport ;$516D _IsOneTwoThree
.dl errnosupport ;$5170 _setTime
.dl errnosupport ;$5173 _IsOP112or24
.dl errnosupport ;$5176 _chkTimer0
.dl errnosupport ;$5179 _timeCnv
.dl errnosupport ;$517C _GetLToOP1Extra
.dl errnosupport ;$517F _ClrWindowAndFlags
.dl errnosupport ;$5182 _SetMachineID
.dl errnosupport ;$5185 _ResetLists
.dl errnosupport ;$5188 _DispValue
.dl errnosupport ;$518B
.dl errnosupport ;$518E
.dl errnosupport ;$5191 _ExecLib
.dl errnosupport ;$5194
.dl errnosupport ;$5197 _CPOP1OP2Rounded
.dl errnosupport ;$519A _CPOP1OP2Rounded2
.dl errnosupport ;$519D _OpenLib
.dl errnosupport ;$51A0
.dl errnosupport ;$51A3
.dl errnosupport ;$51A6 _ResetIOPrompt
.dl errnosupport ;$51A9 _StrCpyVarData
.dl errnosupport ;$51AC _SetUpEditor
.dl errnosupport ;$51AF _SortA
.dl errnosupport ;$51B2 _SortD
.dl errnosupport ;$51B5
.dl errnosupport ;$51B8 _IsOP1ResID
.dl errnosupport ;$51BB _ListEdNameCxMain
.dl errnosupport ;$51BE _ListEdEnterNewName
.dl errnosupport ;$51C1
.dl errnosupport ;$51C4 _ForceModeKeypress
.dl errnosupport ;$51C7 _DispAboutScreen
.dl errnosupport ;$51CA _ChkHelpHookVer
.dl errnosupport ;$51CD _Disp32
.dl errnosupport ;$51D0
.dl errnosupport ;$51D3
.dl errnosupport ;$51D6
.dl errnosupport ;$51D9
.dl errnosupport ;$51DC _DrawTableEditor
.dl errnosupport ;$51DF _DisplayListNameEquals
.dl errnosupport ;$51E2 _DisplayListHeader
.dl errnosupport ;$51E5 _DispMatrixDimensions
.dl errnosupport ;$51E8 _HighlightListEdItem
.dl errnosupport ;$51EB
.dl errnosupport ;$51EE
.dl errnosupport ;$51F1 _MatrixName
.dl errnosupport ;$51F4
.dl errnosupport ;$51F7
.dl errnosupport ;$51FA
.dl errnosupport ;$51FD
.dl errnosupport ;$5200
.dl errnosupport ;$5203
.dl errnosupport ;$5206
.dl errnosupport ;$5209
.dl errnosupport ;$520C
.dl errnosupport ;$520F
.dl errnosupport ;$5212 _SetupEmptyEditTempEqu
.dl errnosupport ;$5215 _ExecClass1Token
.dl errnosupport ;$5218 _HandleMathTokenParse
.dl errnosupport ;$521B _MaybePushMultiplyOp
.dl errnosupport ;$521E _RestartParseOP1Result
.dl errnosupport ;$5221 _Chk_Batt_Level
.dl errnosupport ;$5224
.dl errnosupport ;$5227
.dl errnosupport ;$522A
.dl errnosupport ;$522D _DisplayListEquals
.dl errnosupport ;$5230 _GetCurPlotListOffset
.dl errnosupport ;$5233 _GoToLastRow
.dl errnosupport ;$5236 _RectBorder
.dl errnosupport ;$5239
.dl errnosupport ;$523C
.dl errnosupport ;$523F
.dl errnosupport ;$5242 _LoadA5
.dl errnosupport ;$5245
.dl errnosupport ;$5248 _NamedListToOP1
.dl errnosupport ;$524B
.dl errnosupport ;$524E
.dl errnosupport ;$5251
.dl errnosupport ;$5254 _InitUSBDeviceCallback
.dl errnosupport ;$5257 _KillUSBDevice
.dl errnosupport ;$525A _SetUSBConfiguration
.dl errnosupport ;$525D _RequestUSBData
.dl errnosupport ;$5260 _StopReceivingUSBData
.dl errnosupport ;$5263 _FindAppHeaderByPage
.dl errnosupport ;$5266 _FindNextHeaderByPage
.dl errnosupport ;$5269 _IsMatchingLaunchApp
.dl errnosupport ;$526C _InitTimer
.dl errnosupport ;$526F _KillTimer
.dl errnosupport ;$5272 _StartTimer
.dl errnosupport ;$5275 _RestartTimer
.dl errnosupport ;$5278 _StopTimer
.dl errnosupport ;$527B _WaitTimer
.dl errnosupport ;$527E _CheckTimer
.dl errnosupport ;$5281 _CheckTimerRestart
.dl errnosupport ;$5284 _SetVertGraphActive
.dl errnosupport ;$5287 _ClearVertGraphActive
.dl errnosupport ;$528A _EnableUSBHook
.dl errnosupport ;$528D _DisableUSBHook
.dl errnosupport ;$5290 _InitUSBDevice
.dl errnosupport ;$5293 _KillUSBPeripheral
.dl errnosupport ;$5296 _GetCurPlotListOffset2
.dl errnosupport ;$5299
.dl errnosupport ;$529C _GraphLine
.dl errnosupport ;$529F
.dl errnosupport ;$52A2
.dl errnosupport ;$52A5
.dl errnosupport ;$52A8
.dl errnosupport ;$52AB
.dl errnosupport ;$52AE
.dl errnosupport ;$52B1 _ZifTableEditor
.dl errnosupport ;$52B4
.dl errnosupport ;$52B7 _GetCurPlotOffset
.dl errnosupport ;$52BA
.dl errnosupport ;$52BD _FindAppName
.dl errnosupport ;$52C0
.dl errnosupport ;$52C3
.dl errnosupport ;$52C6 _UpdateStatPlotLists
.dl errnosupport ;$52C9 _GrBufCpyCustom
.dl errnosupport ;$52CC
.dl errnosupport ;$52CF
.dl errnosupport ;$52D2
.dl errnosupport ;$52D5 _VDispRealOP1
.dl errnosupport ;$52D8 _DispXEqualsNum
.dl errnosupport ;$52DB _ResetGraphSettings
.dl errnosupport ;$52DE _InitializeVariables
.dl errnosupport ;$52E1
.dl errnosupport ;$52E4 _DelVarSym
.dl errnosupport ;$52E7 _FindAppUpNoCase
.dl errnosupport ;$52EA _FindAppDnNoCase
.dl errnosupport ;$52ED _DeleteInvalidApps
.dl errnosupport ;$52F0 _DeleteApp_Link
.dl errnosupport ;$52F3 _CmpSymsNoCase
.dl errnosupport ;$52F6 _SetAppRestrictions
.dl errnosupport ;$52F9 _RemoveAppRestrictions
.dl errnosupport ;$52FC _QueryAppRestrictions
.dl errnosupport ;$52FF _DispAppRestrictions
.dl errnosupport ;$5302 _SetupHome
.dl errnosupport ;$5305 _GRPUTAWAYFull
.dl errnosupport ;$5308 _SendSmartPadKeypress
.dl errnosupport ;$530B _ToggleUSBSmartPadInput
.dl errnosupport ;$530E _IsUSBDeviceConnected
.dl errnosupport ;$5311 _RecycleUSB
.dl errnosupport ;$5314 _PolarEquToOP1
.dl errnosupport ;$5317 _ParamXEquToOP1
.dl errnosupport ;$531A _ParamYEquToOP1
.dl errnosupport ;$531D _GetRestrictionsOptions
.dl errnosupport ;$5320 _DispResetComplete
.dl errnosupport ;$5323 _PTTReset
.dl errnosupport ;$5326 _FindAppCustom
.dl errnosupport ;$5329 _ClearGraphStyles
.dl errnosupport ;$532C
.dl errnosupport ;$532F
.dl errnosupport ;$5332
;===============================================================================
;84+SE boot 1.00 basecall table is 276 bytes long (92 entries) starting at #8018
#DEFINE BOOT_NUMCALLS 92
.dl getDirectInput ;$8015 - VANISH exclusive: getDirectInput
bcall_sbase_boot:
;.ds (bcall_sbase_boot+(3*BOOT_NUMCALLS))-$
.dl errnosupport ;$8018 * MD5Final
.dl errnosupport ;$801B * RSAValidate
.dl errnosupport ;$801E * BigNumCompare
.dl errnosupport ;$8021 * WriteAByte
.dl errnosupport ;$8024 * EraseFlash
.dl errnosupport ;$8027 * FindFirstCertificateField
.dl errnosupport ;$802A * ZeroToCertificate
.dl errnosupport ;$802D * GetCertificateField
.dl errnosupport ;$8030 * FindGroupedField
.dl donothing ;$8033 * RET
.dl donothing ;$8036 * RET
.dl donothing ;$8039 * RET
.dl donothing ;$803C * RET
.dl donothing ;$803F * RET
.dl errnosupport ;$8042 * Mult8By8
.dl errnosupport ;$8045 * Mult16By8
.dl errnosupport ;$8048 * Div16By8
.dl errnosupport ;$804B * Divide16By16
.dl errnosupport ;$804E
.dl errnosupport ;$8051 * LoadAIndPaged
.dl errnosupport ;$8054 * FlashToRAM2
.dl errnosupport ;$8057 * GetCertificateStart
.dl errnosupport ;$805A * GetFieldSize
.dl errnosupport ;$805D * FindSubField
.dl errnosupport ;$8060 * EraseCertificateSector
.dl errnosupport ;$8063 * CheckHeaderKey
.dl errnosupport ;$8066
.dl errnosupport ;$8069
.dl errnosupport ;$806C * Load_LFontV2
.dl errnosupport ;$806F * Load_LFontV
.dl errnosupport ;$8072 * ReceiveOS
.dl errnosupport ;$8075 * FindOSHeaderSubField
.dl errnosupport ;$8078 * FindNextCertificateField
.dl errnosupport ;$807B * GetByteOrBoot
.dl errnosupport ;$807E * GetCalcSerial
.dl errnosupport ;$8081
.dl errnosupport ;$8084 * EraseFlashPage
.dl errnosupport ;$8087 * WriteFlashUnsafe
.dl errnosupport ;$808A * DispBootVer
.dl errnosupport ;$808D * MD5Init
.dl errnosupport ;$8090 * MD5Update
.dl errnosupport ;$8093 * MarkOSInvalid
.dl errnosupport ;$8096
.dl errnosupport ;$8099 * MarkOSValid
.dl errnosupport ;$809C * CheckOSValidated
.dl errnosupport ;$809F * SetupAppPubKey
.dl errnosupport ;$80A2 * SigModR
.dl errnosupport ;$80A5 * TransformHash
.dl errnosupport ;$80A8 * IsAppFreeware
.dl errnosupport ;$80AB * FindAppheaderSubField
.dl errnosupport ;$80AE
.dl errnosupport ;$80B1 * Div32By16
.dl errnosupport ;$80B4
.dl errnosupport ;$80B7 * GetBootVer
.dl errnosupport ;$80BA * GetHWVer
.dl r0_bootxora ;$80BD * XorA
.dl errnosupport ;$80C0 * bignumpowermod17
.dl errnosupport ;$80C3 * ProdNrPart1
.dl errnosupport ;$80C6 * WriteAByteSafe
.dl errnosupport ;$80C9 * WriteFlash
.dl errnosupport ;$80CC * SetupDateStampPubKey
.dl errnosupport ;$80CF * SetFlashLowerBound
.dl errnosupport ;$80D2 * LowBatteryBoot
.dl errnosupport ;$80D5
.dl errnosupport ;$80D8
.dl errnosupport ;$80DB
.dl errnosupport ;$80DE
.dl errnosupport ;$80E1
.dl errnosupport ;$80E4
.dl errnosupport ;$80E7 ** DisplayBootMessage
.dl errnosupport ;$80EA ** NewLineWrap
.dl errnosupport ;$80ED
.dl errnosupport ;$80F0
.dl errnosupport ;$80F3
.dl errnosupport ;$80F6
.dl errnosupport ;$80F9 ** DispOSPercentage
.dl errnosupport ;$80FC ** ResetCalc
.dl errnosupport ;$80FF ** SetupOSPubKey
.dl errnosupport ;$8102
.dl errnosupport ;$8105
.dl errnosupport ;$8108
.dl errnosupport ;$810B
.dl errnosupport ;$810E
.dl errnosupport ;$8111 #* Validate2048
.dl errnosupport ;$8114
.dl errnosupport ;$8117
.dl errnosupport ;$811A
.dl errnosupport ;$811D
.dl errnosupport ;$8120
.dl errnosupport ;$8123
.dl errnosupport ;$8126
.dl errnosupport ;$8129
;** - These calls are present only on the TI-84+(SE), minimum HW ver 2
;#* - These calls are present only on the TI-84+(SE), minimum HW ver 3
| 47.029076 | 80 | 0.589169 |
f8d59a12ea6cd85515d16ebf86f9bd0f2bd601ad | 429 | asm | Assembly | iod/con2/sprite/cf3.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | iod/con2/sprite/cf3.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | iod/con2/sprite/cf3.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | * Sprite cf3
*
* Mode 4
* +|----------+
* | gg ggg gg |
* |g g g g|
* |g g g|
* |g gg gg |
* |g g g|
* |g g g g|
* | gg g gg |
* +|----------+
*
section sprite
xdef sp_cf3
xref sp_zero
sp_cf3
dc.w $0100,$0000
dc.w 11,7,0,0
dc.l sc4_cf3-*
dc.l sp_zero-*
dc.l 0
sc4_cf3
dc.w $6e00,$c000
dc.w $8900,$2000
dc.w $8800,$2000
dc.w $8c00,$c000
dc.w $8800,$2000
dc.w $8900,$2000
dc.w $6800,$c000
*
end
| 13 | 17 | 0.501166 |
c8ff4951a03aeda07b59dcd03cf9d8f62d360e3d | 1,298 | asm | Assembly | programs/oeis/256/A256967.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/256/A256967.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/256/A256967.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A256967: a(n) = A256966(n) + 1.
; 1,2,4,7,10,14,18,22,27,32,37,42,47,53,59,65,71,77,83,89,95,102,109,116,123,130,137,144,151,158,165,172,179,186,194,202,210,218,226,234,242,250,258,266,274,282,290,298,306,314,322,330,338,346,354,363,372,381,390,399,408,417,426,435,444,453,462,471,480,489,498,507,516,525,534,543,552,561,570,579,588,597,606,615,624,633,642,651,660,670,680,690,700,710,720,730,740,750,760,770,780,790,800,810,820,830,840,850,860,870,880,890,900,910,920,930,940,950,960,970,980,990,1000,1010,1020,1030,1040,1050,1060,1070,1080,1090,1100,1110,1120,1130,1140,1150,1160,1170,1180,1190,1200,1210,1221,1232,1243,1254,1265,1276,1287,1298,1309,1320,1331,1342,1353,1364,1375,1386,1397,1408,1419,1430,1441,1452,1463,1474,1485,1496,1507,1518,1529,1540,1551,1562,1573,1584,1595,1606,1617,1628,1639,1650,1661,1672,1683,1694,1705,1716,1727,1738,1749,1760,1771,1782,1793,1804,1815,1826,1837,1848,1859,1870,1881,1892,1903,1914,1925,1936,1947,1958,1969,1980,1991,2002,2013,2024,2035,2046,2057,2068,2079,2090,2101,2112,2123,2134,2145,2156,2167,2178,2189,2201,2213,2225,2237,2249,2261,2273,2285,2297,2309,2321,2333,2345,2357,2369,2381,2393
mov $2,$0
add $2,1
mov $3,$0
lpb $2
mov $0,$3
sub $2,1
sub $0,$2
trn $0,1
cal $0,72649 ; n occurs Fibonacci(n) times (cf. A000045).
add $1,$0
lpe
| 86.533333 | 1,104 | 0.738059 |
eeca7467f4dde97996f96d15c9be3392726f9c37 | 158 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/am9511/lam32/c/sdcc/___fs2slong_callee.asm | ahjelm/z88dk | c4de367f39a76b41f6390ceeab77737e148178fa | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/math/float/am9511/lam32/c/sdcc/___fs2slong_callee.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/math/float/am9511/lam32/c/sdcc/___fs2slong_callee.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_fp_am9511
PUBLIC ___fs2slong_callee
EXTERN cam32_sdcc___fs2slong_callee
defc ___fs2slong_callee = cam32_sdcc___fs2slong_callee
| 22.571429 | 58 | 0.816456 |
e41cbe7167cc8b214373ea09b1529efc5c6b6127 | 1,672 | asm | Assembly | _incObj/4A Special Stage Entry (Unused).asm | kodishmediacenter/msu-md-sonic | 3aa7c5e8add9660df2cd0eceaa214e7d59f2415c | [
"CC0-1.0"
] | 9 | 2021-01-15T13:47:53.000Z | 2022-01-17T15:33:55.000Z | _incObj/4A Special Stage Entry (Unused).asm | kodishmediacenter/msu-md-sonic | 3aa7c5e8add9660df2cd0eceaa214e7d59f2415c | [
"CC0-1.0"
] | 7 | 2021-01-14T02:18:48.000Z | 2021-03-24T15:44:30.000Z | _incObj/4A Special Stage Entry (Unused).asm | kodishmediacenter/msu-md-sonic | 3aa7c5e8add9660df2cd0eceaa214e7d59f2415c | [
"CC0-1.0"
] | 2 | 2021-01-14T13:14:26.000Z | 2021-01-29T17:46:04.000Z | ; ---------------------------------------------------------------------------
; Object 4A - special stage entry from beta
; ---------------------------------------------------------------------------
VanishSonic:
moveq #0,d0
move.b obRoutine(a0),d0
move.w Van_Index(pc,d0.w),d1
jmp Van_Index(pc,d1.w)
; ===========================================================================
Van_Index: dc.w Van_Main-Van_Index
dc.w Van_RmvSonic-Van_Index
dc.w Van_LoadSonic-Van_Index
van_time: equ $30 ; time for Sonic to disappear
; ===========================================================================
Van_Main: ; Routine 0
tst.l (v_plc_buffer).w ; are pattern load cues empty?
beq.s @isempty ; if yes, branch
rts
@isempty:
addq.b #2,obRoutine(a0)
move.l #Map_Vanish,obMap(a0)
move.b #4,obRender(a0)
move.b #1,obPriority(a0)
move.b #$38,obActWid(a0)
move.w #$541,obGfx(a0)
move.w #120,van_time(a0) ; set time for Sonic's disappearance to 2 seconds
Van_RmvSonic: ; Routine 2
move.w (v_player+obX).w,obX(a0)
move.w (v_player+obY).w,obY(a0)
move.b (v_player+obStatus).w,obStatus(a0)
lea (Ani_Vanish).l,a1
jsr (AnimateSprite).l
cmpi.b #2,obFrame(a0)
bne.s @display
tst.b (v_player).w
beq.s @display
move.b #0,(v_player).w ; remove Sonic
sfx sfx_SSGoal,0,0,0 ; play Special Stage "GOAL" sound
@display:
jmp (DisplaySprite).l
; ===========================================================================
Van_LoadSonic: ; Routine 4
subq.w #1,van_time(a0) ; subtract 1 from time
bne.s @wait ; if time remains, branch
move.b #id_SonicPlayer,(v_player).w ; load Sonic object
jmp (DeleteObject).l
@wait:
rts | 29.857143 | 77 | 0.531699 |
5df770cfeb6ece92661f44039c9cbc705cd45b9c | 871 | asm | Assembly | programs/oeis/141/A141325.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/141/A141325.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/141/A141325.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A141325: a(n) = A000045(n) + A131531(n+3).
; 1,1,1,1,3,5,9,13,21,33,55,89,145,233,377,609,987,1597,2585,4181,6765,10945,17711,28657,46369,75025,121393,196417,317811,514229,832041,1346269,2178309,3524577,5702887,9227465,14930353,24157817,39088169,63245985,102334155,165580141,267914297,433494437,701408733,1134903169,1836311903,2971215073,4807526977,7778742049,12586269025,20365011073,32951280099,53316291173,86267571273,139583862445,225851433717,365435296161,591286729879,956722026041,1548008755921,2504730781961,4052739537881,6557470319841,10610209857723,17167680177565,27777890035289,44945570212853,72723460248141,117669030460993,190392490709135,308061521170129,498454011879265,806515533049393,1304969544928657,2111485077978049,3416454622906707,5527939700884757,8944394323791465
sub $0,1
cal $0,173434 ; a(n) = (A000045(n)-A173432(n))/2.
mov $1,$0
mul $1,2
add $1,1
| 96.777778 | 737 | 0.840413 |
0bc2b2dd74661c75d872f1e8c9af1a71779ef3d5 | 360 | asm | Assembly | programs/oeis/089/A089644.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/089/A089644.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/089/A089644.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A089644: Numbers n such that 7 divides the numerator of B(2n) where B(2n) = the 2n-th Bernoulli number.
; 7,14,28,35,49,56,70,77,91,98,112,119,133,140,154,161,175,182,196,203,217,224,238,245,259,266,280,287,301,308,322,329,343,350,364,371,385,392,406,413,427,434,448,455,469,476,490,497,511,518,532,539,553,560
mul $0,6
mov $1,$0
div $1,4
mul $1,7
add $1,7
| 40 | 206 | 0.705556 |
ca7284e198287b70e1c7ad23c5f8bd2f691ac209 | 3,232 | asm | Assembly | software/minol/source/commands/if.asm | paulscottrobson/retrochallenge-jan-2016 | 8bd340efc85969fa6f2fecc788aa21b27123a4db | [
"MIT"
] | null | null | null | software/minol/source/commands/if.asm | paulscottrobson/retrochallenge-jan-2016 | 8bd340efc85969fa6f2fecc788aa21b27123a4db | [
"MIT"
] | null | null | null | software/minol/source/commands/if.asm | paulscottrobson/retrochallenge-jan-2016 | 8bd340efc85969fa6f2fecc788aa21b27123a4db | [
"MIT"
] | null | null | null | ; ****************************************************************************************************************
; ****************************************************************************************************************
;
; IF command
;
; ****************************************************************************************************************
; ****************************************************************************************************************
jmp CIF_Over
CMD_If:
xppc p3 ; calculate LHS of expr.
jp CIF_Over ; exit on error.
ld (p1) ; get the relative operator.
xri '=' ; check it is =, < or #
jz CIF_Continue
xri '='!'#'
jz CIF_Continue
xri '#'!'<'
jz CIF_Continue
;
; Syntax error - bad relative operation.
;
CIF_Syntax:
ldi ERRC_Syntax ; report syntax error
xae
ccl
jmp CIF_Over
;
; Continue IF - have LHS in E.
;
CIF_Continue:
ld @1(p1) ; reget operator, and save on stack
st @-1(p2)
lde ; save LHS on stack.
st @-1(p2)
xppc p3 ; evaluate the RHS of the expression
ld @2(p2) ; drop operator and LHS but the values still there.
csa ; check for RHS error
jp CIF_Over ; and exit on error
ld -1(p2) ; get operator
xri '<'
jnz CIF_Equality ; if not less than it's an equality test e.g. # or =
; ****************************************************************************************************************
; Less than test.
; ****************************************************************************************************************
ld -2(p2) ; get LHS
scl
cae ; subtract RHS.
csa ; get CY/L flag
ani 0x80 ; now it is AC = 0 if < true.
jmp CIF_TestIfZero
; ****************************************************************************************************************
; Equal/Not Equal Test.
; ****************************************************************************************************************
CIF_Equality:
ld -2(p2) ; get LHS
xre ; compare to RHS. AC = 0 if *equal*
jz CIF_Equality2
ldi 2 ; AC = 0 if *equal* 2 if *different*
CIF_Equality2:
xae ; save in E
ld -1(p2) ; get operator.
ani 2 ; is now 0 if '=' ($3D) 2 if '#' ($23)
xre ; XOR with the result. Now 0 if passes test.
; ****************************************************************************************************************
; Pass Test (e.g. execute statement following ;) if AC = 0
; ****************************************************************************************************************
CIF_TestIfZero:
scl ; set CY/L = No Error.
jnz CIF_Over ; if non-zero then do next command as normal.
ld (p1) ; get next character
xri ';' ; should be a semicolon
jnz CIF_Syntax ; if not error
ld @1(p1) ; step over it.
jmp ExecuteFromAddressDirect ; and run from here.
CIF_Over:
| 37.149425 | 114 | 0.329517 |
ba61adc5801047bcede833f83fdbcc8a642daf6a | 5,195 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_854.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_854.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_854.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 %rax
push %rcx
lea addresses_WT_ht+0x17b98, %rcx
nop
nop
add $35696, %r9
mov (%rcx), %r11
nop
nop
nop
nop
nop
sub $8685, %r11
lea addresses_WC_ht+0x15492, %r15
nop
cmp $40570, %rax
mov (%r15), %cx
nop
nop
nop
add $47392, %r15
pop %rcx
pop %rax
pop %r9
pop %r15
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r15
push %r8
push %r9
push %rbp
push %rbx
push %rdx
// Store
lea addresses_A+0xfaf2, %r8
nop
nop
nop
nop
nop
and $42460, %r11
movb $0x51, (%r8)
nop
nop
add %r11, %r11
// Store
lea addresses_A+0x1e312, %r15
nop
nop
nop
xor %rbp, %rbp
movl $0x51525354, (%r15)
cmp $57546, %r9
// Load
mov $0xcf2, %rdx
nop
nop
nop
sub %r11, %r11
movups (%rdx), %xmm0
vpextrq $1, %xmm0, %r8
nop
add %rdx, %rdx
// Load
lea addresses_US+0xf752, %rdx
nop
nop
nop
nop
cmp $2869, %r11
mov (%rdx), %rbx
nop
and %rdx, %rdx
// Faulty Load
lea addresses_PSE+0x170f2, %r9
nop
nop
cmp $56883, %r8
mov (%r9), %r15
lea oracles, %r8
and $0xff, %r15
shlq $12, %r15
mov (%r8,%r15,1), %r15
pop %rdx
pop %rbx
pop %rbp
pop %r9
pop %r8
pop %r15
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 3}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_PSE', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': True, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'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
*/
| 42.235772 | 2,999 | 0.651396 |
ed50165dc61c9ff5ac56cf475cbe30ec257284d3 | 2,799 | asm | Assembly | src/arch/i386/kernel/boot.asm | SydOS/Star | dc5a233daf916bde482c6fc3bc175331793063e5 | [
"MIT"
] | 13 | 2018-10-22T20:51:40.000Z | 2021-09-16T21:58:13.000Z | src/arch/i386/kernel/boot.asm | Dylan-P-Green/SydOS | 52acae993d1cb5ec8d3a93339d53b404ddabffb9 | [
"MIT"
] | 52 | 2018-02-09T22:44:44.000Z | 2018-07-13T05:08:01.000Z | src/arch/i386/kernel/boot.asm | Dylan-P-Green/SydOS | 52acae993d1cb5ec8d3a93339d53b404ddabffb9 | [
"MIT"
] | 3 | 2018-02-09T22:25:20.000Z | 2018-07-27T05:08:34.000Z | ;
; File: boot.asm
;
; Copyright (c) 2017-2018 Sydney Erickson, John Davis
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Software without restriction, including without limitation the rights
; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
; copies of the Software, and to permit persons to whom the Software is
; furnished to do so, subject to the following conditions:
;
; The above copyright notice and this permission notice shall be included in all
; copies or substantial portions of the Software.
;
; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
; SOFTWARE.
;
; 32-bit code.
[bits 32]
; Multiboot constants.
MULTIBOOT_PAGE_ALIGN equ 0x00000001
MULTIBOOT_MEMORY_INFO equ 0x00000002
MULTIBOOT_HEADER_MAGIC equ 0x1BADB002
MULTIBOOT_HEADER_FLAGS equ MULTIBOOT_PAGE_ALIGN | MULTIBOOT_MEMORY_INFO
MULTIBOOT_CHECKSUM equ -(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS)
; Multiboot section.
section .multiboot
align 4
dd MULTIBOOT_HEADER_MAGIC
dd MULTIBOOT_HEADER_FLAGS
dd MULTIBOOT_CHECKSUM
; Allocate stack
section .bss
align 16
stack_bottom:
resb 16384
stack_top:
section .inittables
global MULTIBOOT_MAGIC
MULTIBOOT_MAGIC: dd 0
global MULTIBOOT_INFO
MULTIBOOT_INFO: dd 0
; Start function.
section .init
global _start
_start:
; Disable interrupts.
cli
; Print `SYDOS` to screen corner.
mov dword [0xb8000], 0x2f592f53
mov dword [0xb8004], 0x2f4f2f44
mov word [0xb8008], 0x2f53
; Save Multiboot info for later use.
mov [MULTIBOOT_MAGIC], eax
mov [MULTIBOOT_INFO], ebx
; Push Multiboot info structure and magic number.
push ebx
push eax
; Call the early kernel main function.
; This sets up early boot paging, etc.
extern kernel_main_early
call kernel_main_early
; Pop Multiboot info off.
pop eax
pop ebx
; Jump to higher half.
lea edx, [_start_higherhalf]
jmp edx
; Higher-half of our start function.
section .text
_start_higherhalf:
; Point stack pointer to top.
mov esp, stack_top
mov ebp, stack_top
; Ensure stack is 16-bit aligned.
and esp, -16
; Push Multiboot info structure and magic number.
push ebx
; Call the kernel main function!
extern kernel_main
call kernel_main
; Disable interrupts and loop forever.
cli
.hang: hlt
jmp .hang
| 25.678899 | 80 | 0.769203 |
cd19e4cd30c12521f7397ebb276e3e8dbda3af71 | 6,666 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1027.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_1027.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_1027.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x93db, %rsi
lea addresses_WC_ht+0x10d2f, %rdi
nop
nop
nop
nop
nop
dec %r15
mov $110, %rcx
rep movsb
nop
nop
nop
nop
nop
cmp $10669, %rdx
lea addresses_A_ht+0x19fc7, %rsi
lea addresses_WT_ht+0x1706f, %rdi
xor %r15, %r15
mov $70, %rcx
rep movsl
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_UC_ht+0xecdf, %r8
nop
nop
nop
nop
nop
inc %r12
vmovups (%r8), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $0, %xmm7, %rcx
nop
nop
nop
xor %r8, %r8
lea addresses_WC_ht+0xb06f, %r12
sub $2940, %r8
mov $0x6162636465666768, %rdi
movq %rdi, (%r12)
inc %rdi
lea addresses_D_ht+0x1c077, %rsi
lea addresses_UC_ht+0x154f, %rdi
nop
nop
nop
nop
nop
add $19535, %r13
mov $116, %rcx
rep movsb
nop
nop
nop
nop
nop
add $64132, %rsi
lea addresses_WT_ht+0xbacf, %rsi
clflush (%rsi)
nop
nop
nop
sub $60762, %r13
movw $0x6162, (%rsi)
sub %rdi, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r8
pop %r15
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %r15
push %r8
push %rbp
push %rdx
// Load
lea addresses_UC+0x3eaf, %r13
nop
nop
nop
nop
nop
sub %rdx, %rdx
mov (%r13), %r14d
nop
nop
nop
nop
add $52706, %r13
// Store
mov $0x9ff, %r8
sub %r11, %r11
mov $0x5152535455565758, %rdx
movq %rdx, %xmm3
vmovntdq %ymm3, (%r8)
nop
nop
nop
nop
nop
add %rbp, %rbp
// Store
lea addresses_A+0x1e083, %r11
clflush (%r11)
nop
nop
nop
nop
and $998, %r15
mov $0x5152535455565758, %rdx
movq %rdx, %xmm6
vmovups %ymm6, (%r11)
nop
nop
nop
sub $19937, %r11
// Store
lea addresses_US+0x1986f, %r11
clflush (%r11)
nop
and %r8, %r8
mov $0x5152535455565758, %r13
movq %r13, %xmm7
movups %xmm7, (%r11)
xor %r13, %r13
// Faulty Load
lea addresses_normal+0x1a06f, %r14
nop
nop
nop
nop
sub %r15, %r15
movups (%r14), %xmm2
vpextrq $1, %xmm2, %rdx
lea oracles, %r11
and $0xff, %rdx
shlq $12, %rdx
mov (%r11,%rdx,1), %rdx
pop %rdx
pop %rbp
pop %r8
pop %r15
pop %r14
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_P', 'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 10}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_WC_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WT_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': True, 'congruent': 1, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_UC_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 5}}
{'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
*/
| 34.010204 | 2,999 | 0.657666 |
cdc6539c29d70595b9dd7bf6ee20f1a1b815a00d | 1,472 | asm | Assembly | programs/oeis/228/A228219.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/228/A228219.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/228/A228219.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A228219: Number of second differences of arrays of length 4 of numbers in 0..n.
; 15,49,103,177,271,385,519,673,847,1041,1255,1489,1743,2017,2311,2625,2959,3313,3687,4081,4495,4929,5383,5857,6351,6865,7399,7953,8527,9121,9735,10369,11023,11697,12391,13105,13839,14593,15367,16161,16975,17809,18663,19537,20431,21345,22279,23233,24207,25201,26215,27249,28303,29377,30471,31585,32719,33873,35047,36241,37455,38689,39943,41217,42511,43825,45159,46513,47887,49281,50695,52129,53583,55057,56551,58065,59599,61153,62727,64321,65935,67569,69223,70897,72591,74305,76039,77793,79567,81361,83175,85009,86863,88737,90631,92545,94479,96433,98407,100401,102415,104449,106503,108577,110671,112785,114919,117073,119247,121441,123655,125889,128143,130417,132711,135025,137359,139713,142087,144481,146895,149329,151783,154257,156751,159265,161799,164353,166927,169521,172135,174769,177423,180097,182791,185505,188239,190993,193767,196561,199375,202209,205063,207937,210831,213745,216679,219633,222607,225601,228615,231649,234703,237777,240871,243985,247119,250273,253447,256641,259855,263089,266343,269617,272911,276225,279559,282913,286287,289681,293095,296529,299983,303457,306951,310465,313999,317553,321127,324721,328335,331969,335623,339297,342991,346705,350439,354193,357967,361761,365575,369409,373263,377137,381031,384945,388879,392833,396807,400801,404815,408849,412903,416977,421071,425185,429319,433473,437647,441841
mov $1,5
mul $1,$0
add $1,12
mul $1,$0
mul $1,2
add $1,15
| 147.2 | 1,330 | 0.824049 |
cb93f8277bca6c95ffbacc1a7e85a26d6b223426 | 276 | asm | Assembly | programs/oeis/004/A004183.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/004/A004183.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/004/A004183.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A004183: Omit 8's from n.
; 0,1,2,3,4,5,6,7,0,9,10,11,12,13,14,15,16,17,1,19,20,21,22,23,24,25,26,27,2,29,30,31,32,33,34,35,36,37,3,39,40,41,42,43,44,45,46,47,4,49,50,51,52,53,54,55,56,57,5,59,60,61,62,63,64,65,66,67,6,69,70,71
lpb $0
add $0,2
dif $0,10
sub $0,1
lpe
| 30.666667 | 201 | 0.612319 |
ade80f0f27fde0f9f635a81ee9864d29df11864b | 797 | asm | Assembly | libsrc/_DEVELOPMENT/alloc/obstack/z80/asm_obstack_room.asm | Toysoft/z88dk | f930bef9ac4feeec91a07303b79ddd9071131a24 | [
"ClArtistic"
] | 8 | 2017-01-18T12:02:17.000Z | 2021-06-12T09:40:28.000Z | libsrc/_DEVELOPMENT/alloc/obstack/z80/asm_obstack_room.asm | Toysoft/z88dk | f930bef9ac4feeec91a07303b79ddd9071131a24 | [
"ClArtistic"
] | 1 | 2017-03-06T07:41:56.000Z | 2017-03-06T07:41:56.000Z | libsrc/_DEVELOPMENT/alloc/obstack/z80/asm_obstack_room.asm | Toysoft/z88dk | f930bef9ac4feeec91a07303b79ddd9071131a24 | [
"ClArtistic"
] | 3 | 2017-03-07T03:19:40.000Z | 2021-09-15T17:59:19.000Z |
; ===============================================================
; Dec 2013
; ===============================================================
;
; size_t obstack_room(struct obstack *ob)
;
; Number of free bytes available in the obstack.
;
; ===============================================================
SECTION code_clib
SECTION code_alloc_obstack
PUBLIC asm_obstack_room
asm_obstack_room:
; enter : hl = struct obstack *ob
;
; exit : hl = number of bytes available in obstack
; de = ob->fence
; carry reset
;
; uses : af, de, hl
ld e,(hl)
inc hl
ld d,(hl) ; de = ob->fence
inc hl
inc hl
inc hl
ld a,(hl)
inc hl
ld h,(hl)
ld l,a ; hl = ob->end
or a
sbc hl,de
ret
| 19.439024 | 65 | 0.40527 |
7001b7e0c9767d1b66d3624826ce874ddf796ed2 | 1,682 | asm | Assembly | programs/oeis/152/A152734.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/152/A152734.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/152/A152734.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A152734: 5 times pentagonal numbers: 5*n*(3*n-1)/2.
; 0,5,25,60,110,175,255,350,460,585,725,880,1050,1235,1435,1650,1880,2125,2385,2660,2950,3255,3575,3910,4260,4625,5005,5400,5810,6235,6675,7130,7600,8085,8585,9100,9630,10175,10735,11310,11900,12505,13125,13760,14410,15075,15755,16450,17160,17885,18625,19380,20150,20935,21735,22550,23380,24225,25085,25960,26850,27755,28675,29610,30560,31525,32505,33500,34510,35535,36575,37630,38700,39785,40885,42000,43130,44275,45435,46610,47800,49005,50225,51460,52710,53975,55255,56550,57860,59185,60525,61880,63250,64635,66035,67450,68880,70325,71785,73260,74750,76255,77775,79310,80860,82425,84005,85600,87210,88835,90475,92130,93800,95485,97185,98900,100630,102375,104135,105910,107700,109505,111325,113160,115010,116875,118755,120650,122560,124485,126425,128380,130350,132335,134335,136350,138380,140425,142485,144560,146650,148755,150875,153010,155160,157325,159505,161700,163910,166135,168375,170630,172900,175185,177485,179800,182130,184475,186835,189210,191600,194005,196425,198860,201310,203775,206255,208750,211260,213785,216325,218880,221450,224035,226635,229250,231880,234525,237185,239860,242550,245255,247975,250710,253460,256225,259005,261800,264610,267435,270275,273130,276000,278885,281785,284700,287630,290575,293535,296510,299500,302505,305525,308560,311610,314675,317755,320850,323960,327085,330225,333380,336550,339735,342935,346150,349380,352625,355885,359160,362450,365755,369075,372410,375760,379125,382505,385900,389310,392735,396175,399630,403100,406585,410085,413600,417130,420675,424235,427810,431400,435005,438625,442260,445910,449575,453255,456950,460660,464385
mul $0,3
bin $0,2
mov $1,$0
div $1,3
mul $1,5
| 186.888889 | 1,580 | 0.826397 |
88447f970a32577668bc2b6132a5fb9a366910de | 2,741 | asm | Assembly | third_party/fasmarm/ARMDOC/InstructionFormatsXSCALE.asm | matanlurey/armv4t.dart | 06235938d16cb1f2b09d26f564b985854e4155c0 | [
"MIT"
] | 8 | 2020-06-21T22:05:00.000Z | 2021-10-06T19:59:20.000Z | third_party/fasmarm/ARMDOC/InstructionFormatsXSCALE.asm | matanlurey/armv4t.dart | 06235938d16cb1f2b09d26f564b985854e4155c0 | [
"MIT"
] | 82 | 2020-06-21T22:02:00.000Z | 2020-08-04T01:48:42.000Z | third_party/fasmarm/ARMDOC/InstructionFormatsXSCALE.asm | matanlurey/armv4t.dart | 06235938d16cb1f2b09d26f564b985854e4155c0 | [
"MIT"
] | 1 | 2020-06-22T15:16:02.000Z | 2020-06-22T15:16:02.000Z | ;This document is intended to show the basic formats for
;all of the instructions supported by fasmarm.
;These formats are divided into sections showing the CPU
;processor directive needed to enable the instruction.
;Opcodes are listed in alphabetical order within each
;section. A blank line separates each opcode from the
;next.
;Instructions can appear in many places. Different
;versions of the instruction set can allow for different
;sets of available parameters so be sure to check for
;instructions listed in more than one place. If you are
;having trouble working out what format fasmarm is
;expecting then you can search through here for all
;instances to find the situation that matches your code.
;Coprocessor formats are divided firstly by the
;coprocessor type and secondly by the implementation
;version. Coprocessor instructions are available in both
;ARM and THUMB modes and use the same format for both.
;There is no change needed for THUMB mode except to
;specify that the processor supports version 7M
;architecture instructions.
;The example codes given here are merely indicative of
;which parameters go where. They are not intended as an
;enumeration of all possible allowed values of the
;parameters. Usually only one register or one immediate
;value for each parameter is given so as to show what
;type of parameter is expected at each position. If you
;try to assemble a value that is undefined,
;unpredictable or not encodable fasmarm will give a
;short error message complaining that the parameter is
;invalid.
;These instructions do not show any condition syntax.
;All instructions can be conditional. The condition code
;should be added at the end of the main opcode and
;before any size/type specifiers. For example: "addhi"
;and "vaddhi.i16". The syntax also supports the pre-UAL
;style of putting the condition before any modifiers
;like "s" or "fd". For example: "ldmhifd", "ldmfdhi".
;This file can be assembled by fasmarm.
virtual at r1
expression.dword rd 1
expression.word rw 1
expression.hword rh 1
expression.byte rb 1
end virtual
;***********************************************
;xScale, ARM mode, all instructions are 32-bit
;***********************************************
code32
coprocessor COPRO_XSCALE
mia acc0,r1,r2
miaph acc0,r1,r2
miabb acc0,r1,r2
miabt acc0,r1,r2
miatb acc0,r1,r2
miatt acc0,r1,r2
mar acc0,r1,r2
mra r0,r1,acc0
;***********************************************
;xScale, THUMB mode, all instructions are 32-bit
;***********************************************
processor CPU32_7M
thumb
mia acc0,r1,r2
miaph acc0,r1,r2
miabb acc0,r1,r2
miabt acc0,r1,r2
miatb acc0,r1,r2
miatt acc0,r1,r2
mar acc0,r1,r2
mra r0,r1,acc0
| 26.872549 | 56 | 0.723094 |
ce592fb6a63d21c4172733dc573c379067288016 | 1,747 | asm | Assembly | assets/assembly/IA32/linux_nasm_progs/nasm_linux_ORG_CH10/procfib1.asm | edassis/SB-Tradutor | 9e5a5836e6cf978face35023620257fce684c257 | [
"MIT"
] | 1 | 2021-02-09T22:24:34.000Z | 2021-02-09T22:24:34.000Z | assets/assembly/IA32/linux_nasm_progs/nasm_linux_ORG_CH10/procfib1.asm | edassis/SB-Tradutor | 9e5a5836e6cf978face35023620257fce684c257 | [
"MIT"
] | null | null | null | assets/assembly/IA32/linux_nasm_progs/nasm_linux_ORG_CH10/procfib1.asm | edassis/SB-Tradutor | 9e5a5836e6cf978face35023620257fce684c257 | [
"MIT"
] | null | null | null | ;Fibonacci numbers (register version) PROCFIB1.ASM
;
; Objective: To compute Fibinacci number using registers
; for local variables.
; Input: Requests a positive integer from the user.
; Output: Outputs the largest Fibonacci number that
; is less than or equal to the input number.
%include "io.mac"
.DATA
prompt_msg db "Please input a positive number (>1): ",0
output_msg1 db "The largest Fibonacci number less than "
db "or equal to ",0
output_msg2 db " is ",0
.CODE
.STARTUP
PutStr prompt_msg ; request input number
GetInt DX ; DX = input number
call fibonacci
PutStr output_msg1 ; display Fibonacci number
PutInt DX
PutStr output_msg2
PutInt AX
nwln
done:
.EXIT
;-----------------------------------------------------------
;Procedure fibonacci receives an integer in DX and computes
; the largest Fibonacci number that is less than or equal to
; the input number. The Fibonacci number is returned in AX.
;-----------------------------------------------------------
.CODE
fibonacci:
push BX
; AX maintains the smaller of the last two Fibonacci
; numbers computed; BX maintains the larger one.
mov AX,1 ; initialize AX and BX to
mov BX,AX ; first two Fibonacci numbers
fib_loop:
add AX,BX ; compute next Fibonacci number
xchg AX,BX ; maintain the required order
cmp BX,DX ; compare with input number in DX
jle fib_loop ; if not greater, find next number
; AX contains the required Fibonacci number
pop BX
ret
| 34.94 | 63 | 0.57241 |
a97a01ae60ccd892b131457a582ff1d54db81cae | 232 | asm | Assembly | libsrc/input/spectrum/in_MouseSimInit.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/input/spectrum/in_MouseSimInit.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/input/spectrum/in_MouseSimInit.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | ; void in_MouseSimInit(struct in_UDM *u)
; CALLER linkage for function pointers
PUBLIC in_MouseSimInit
EXTERN in_MouseSimInit_fastcall
.in_MouseSimInit
pop de
pop hl
push hl
push de
jp in_MouseSimInit_fastcall
| 15.466667 | 40 | 0.767241 |
cab75591b475dcaa61a5a31eb79be4a6e36b9039 | 444 | asm | Assembly | programs/oeis/047/A047519.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/047/A047519.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/047/A047519.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A047519: Numbers that are congruent to {1, 2, 3, 4, 6, 7} mod 8.
; 1,2,3,4,6,7,9,10,11,12,14,15,17,18,19,20,22,23,25,26,27,28,30,31,33,34,35,36,38,39,41,42,43,44,46,47,49,50,51,52,54,55,57,58,59,60,62,63,65,66,67,68,70,71,73,74,75,76,78,79,81,82,83,84,86,87,89,90,91,92,94,95,97,98,99,100,102,103,105,106,107,108,110,111,113,114,115,116,118,119,121,122,123,124,126,127,129,130,131,132
mov $1,$0
div $1,2
mul $1,2
div $1,3
add $0,$1
add $0,1
| 44.4 | 319 | 0.653153 |
24266c3927ed613e6c713c507411f8e8c715a3d7 | 184 | asm | Assembly | test/asm/stack.asm | CQU-AI/MIPS-Assembler | 5955a24a60146e840c6fff1f7335b726d0dcd422 | [
"MIT"
] | 6 | 2019-10-19T01:46:37.000Z | 2022-03-06T12:43:14.000Z | test/asm/stack.asm | CQU-AI/MIPS-Assembler | 5955a24a60146e840c6fff1f7335b726d0dcd422 | [
"MIT"
] | 4 | 2019-10-19T14:42:40.000Z | 2019-10-22T04:52:00.000Z | test/asm/stack.asm | CQU-AI/MIPS-Assembler | 5955a24a60146e840c6fff1f7335b726d0dcd422 | [
"MIT"
] | 3 | 2019-10-19T14:00:39.000Z | 2020-06-27T00:52:20.000Z | addi $t1, $zero, 1
addi $t2, $zero, 2
addi $t3, $zero, 3
addi $sp, $sp, -12
sw $t1, 8($sp)
sw $t2, 4($sp)
sw $t3, 0($sp)
lw $t4, 0($sp)
lw $t5, 4($sp)
lw $t6, 8($sp)
addi $sp, $sp, 12
| 15.333333 | 18 | 0.516304 |
2323d856a3cc6c456601ce7cea05409d0ee2a2a4 | 613 | asm | Assembly | libsrc/_DEVELOPMENT/arch/zx/esxdos/z80/asm_esxdos_f_close.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/arch/zx/esxdos/z80/asm_esxdos_f_close.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/arch/zx/esxdos/z80/asm_esxdos_f_close.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ; int esxdos_f_close(uchar handle)
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_esxdos
PUBLIC asm_esxdos_f_close
EXTERN error_znc
EXTERN __esxdos_error_mc
asm_esxdos_f_close:
; F_CLOSE:
; Close a file or dir handle. A=handle.
;
; enter : l = file or dir handle
;
; exit : success
;
; hl = 0
; carry reset
;
; error
;
; hl = -1
; carry set, errno set
;
; uses : unknown
ld a,l
rst __ESXDOS_SYSCALL
defb __ESXDOS_SYS_F_CLOSE
jp nc, error_znc
jp __esxdos_error_mc
| 15.717949 | 42 | 0.587276 |
6c8bec301636cda6b7afd3a9665aced3a465e0bc | 506 | asm | Assembly | wof/lcs/base/310.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | 6 | 2020-10-14T15:29:10.000Z | 2022-02-12T18:58:54.000Z | wof/lcs/base/310.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | null | null | null | wof/lcs/base/310.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | 1 | 2020-12-17T08:59:10.000Z | 2020-12-17T08:59:10.000Z | copyright zengfr site:http://github.com/zengfr/romhack
0015DE addq.w #1, ($310,A5) [base+316]
0015E2 rts [base+310]
00161E addq.w #1, ($310,A5) [base+316]
001622 rts [base+310]
018B32 clr.w ($310,A5) [base+30E]
018B36 rts [base+310]
01A652 move.w D0, ($310,A5) [base+316]
01A656 lea ($7c0,A5), A0
05E002 beq $5e07e [base+310]
05E07E rts [base+310]
05E176 addq.w #1, ($310,A5) [base+316]
05E17A tst.b ($1c,A0) [base+310]
copyright zengfr site:http://github.com/zengfr/romhack
| 29.764706 | 54 | 0.65415 |
326b1a7e9e85beff88f48644773dce591c3e93a4 | 392 | asm | Assembly | programs/oeis/257/A257145.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/257/A257145.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/257/A257145.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A257145: a(n) = 5 * floor( (n+2) / 5) - n with a(0) = 1.
; 1,-1,-2,2,1,0,-1,-2,2,1,0,-1,-2,2,1,0,-1,-2,2,1,0,-1,-2,2,1,0,-1,-2,2,1,0,-1,-2,2,1,0,-1,-2,2,1,0,-1,-2,2,1,0,-1,-2,2,1,0,-1,-2,2,1,0,-1,-2,2,1,0,-1,-2,2,1,0,-1,-2,2,1,0,-1,-2,2,1,0,-1,-2,2,1,0,-1,-2,2,1,0,-1,-2,2,1,0,-1,-2,2,1,0,-1,-2,2,1
mul $0,4
mov $2,$0
cmp $2,0
add $0,$2
seq $0,117444 ; Period 5: Repeat [0, 1, 2, -2, -1].
| 43.555556 | 241 | 0.443878 |
bc0c0f1e7e2b60bd1121705d6357bc99b95fb5e5 | 371 | asm | Assembly | oeis/250/A250108.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/250/A250108.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/250/A250108.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A250108: n*(n-1)/2 mod 2 + n*(n-1)/2 - n*( (n-1) mod 2 ).
; Submitted by Jamie Morken(s3)
; 0,0,4,2,10,10,22,20,36,36,56,54,78,78,106,104,136,136,172,170,210,210,254,252,300,300,352,350,406,406,466,464,528,528,596,594,666,666,742,740,820,820,904,902,990,990,1082,1080,1176,1176,1276,1274,1378
mov $1,$0
gcd $1,2
div $1,2
add $0,$1
bin $0,2
add $0,$1
div $0,2
mul $0,2
| 28.538462 | 202 | 0.641509 |
06f6860e1d268b2b8143203b7840a147e0f1aa45 | 37,997 | asm | Assembly | Library/GrObj/GrObj/grobjAccessBody.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Library/GrObj/GrObj/grobjAccessBody.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Library/GrObj/GrObj/grobjAccessBody.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Admin
FILE: objectAccessBody.asm
AUTHOR: Steve Scholl, Nov 15, 1991
ROUTINES:
Name
----
INT GrObjGetDWordFromBody
INT GrObjMessageToBody
INT GrObjMessageToHead
INT GrObjMessageToRuler
INT GrObjMessageToEdit
INT GrObjMessageToMouseGrab
INT GrObjMessageToGroup
INT GrObjMessageToGOAM
INT GrObjMessageToGOAMText
INT GrObjCreateGState
INT GrObjGetBodyGStateStart
INT GrObjGetParentGStateStart
INT GrObjGetGStateEnd
INT GrObjGetHeadOD
INT GrObjGetGOAMOD
INT GrObjGetMouseOD
INT GrObjGetRulerOD
INT GrObjGetEditOD
INT GrObjGetCurrentHandleSize
INT GrObjGetDesiredHandleSize
GrObjSendActionNotificationViaBody
GrObjGetCurrentNudgeUnits
GrObjActionNotificationSuspendedInBody?
GrObjCreateBodyGState
REVISION HISTORY:
Name Date Description
---- ---- -----------
Steve 11/15/91 Initial revision
DESCRIPTION:
$Id: grobjAccessBody.asm,v 1.1 97/04/04 18:07:31 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjDrawCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetDWordFromBody
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Return two consecutive words from the bodies instance
data. Treats data as if it is stored low word, high
word. Conveniently returns vm file handle for
callers who are getting a vm block handle
CALLED BY: INTERNAL (UTILITY)
PASS:
ds - segment of grobject block
bx - offset to instance words to get
RETURN:
carry clear - body existed
ax - high word (word after word at offset)
si - low word (word at offset)
bx - vm file handle of body and friends
carry set - no body
ax,si,bx - DESTORYED
DESTROYED:
see RETURN
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 10/23/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetDWordFromBody proc far
class GrObjBodyClass
uses cx,ds
.enter
mov cx,bx ;offset to words
movdw bxsi, ds:[OLMBH_output]
tst bx
jz noBody
EC < call ECGrObjBodyCheckLMemOD >
; Lock the body and snag the words, then unlock the body
;
call ObjLockObjBlock
mov ds,ax ;body segment
mov si,ds:[si] ;deref body
add si,ds:[si].GrObjBody_offset
add si,cx ;offset to words
mov ax,ds:[si+2]
mov si,ds:[si]
call MemUnlock
; Get vm file handle of body
;
mov_tr cx, ax ;high word from body
mov ax, MGIT_OWNER_OR_VM_FILE_HANDLE
call MemGetInfo
mov_tr bx, ax ;vm file handle
mov_tr ax, cx ;high word from body
clc
done:
.leave
ret
noBody:
stc
jmp done
GrObjGetDWordFromBody endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjMessageToGOAM
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Sends a message via ObjMessage or ObjCallInstanceNoLock
if this object is the AttributeManager to the
GrObjAttributeManager
CALLED BY: INTERNAL
PASS:
*ds:si - object
ax - message
di - MessageFlags
cx,dx,bp - other data for message
RETURN:
if this object is not the GrObjAttributeManager
if MF_CALL
ax,cx,dx,bp - from message handler
if this object is the GrObjManaager
ax,cx,dx,bp - returned from message handler
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/14/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjMessageToGOAM proc far
class GrObjClass
uses bx,si,di
.enter
EC < call ECGrObjCheckLMemObject >
GrObjDeref bx,ds,si
test ds:[bx].GOI_optFlags, mask GOOF_ATTRIBUTE_MANAGER
jnz manager
call GrObjGetGOAMOD
ornf di, mask MF_FIXUP_DS
call ObjMessage
done:
.leave
ret
manager:
call ObjCallInstanceNoLock
jmp done
GrObjMessageToGOAM endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetGOAMOD
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the OD of the oam from the body
CALLED BY: INTERNAL
PASS:
ds - segment of object block
RETURN:
^lbx:si - oam od
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/21/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetGOAMOD proc far
uses ax
.enter
mov bx,offset GBI_goam
call GrObjGetDWordFromBody
mov_tr bx,ax ;oam handle
.leave
ret
GrObjGetGOAMOD endp
GrObjDrawCode ends
GrObjAlmostRequiredCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetDrawFlagsFromBody
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Returns the draw flags from the GrObjBody object.
CALLED BY: INTERNAL UTILITTY
PASS: ds = segment of block with grobjects in it
RETURN: ax = GrObjDrawFlags
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
JimG 7/13/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetDrawFlagsFromBody proc far
class GrObjBodyClass
uses bx,si
.enter
mov bx, offset GBI_drawFlags
call GrObjGetDWordFromBody
mov_tr ax, si
.leave
ret
GrObjGetDrawFlagsFromBody endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetSuspendCountFromBody
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Return the suspend count from the body
CALLED BY: INTERNAL UTILITTY
PASS: ds- segment of block with grobjects in it
RETURN:
cx - suspend count of body
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 3/ 6/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetSuspendCountFromBody proc far
class GrObjBodyClass
uses ax,bx,si
.enter
mov bx,offset GBI_suspendCount
call GrObjGetDWordFromBody
mov cx,si ;suspend count
.leave
ret
GrObjGetSuspendCountFromBody endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjMessageToBody
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Sends a message to the body from a grobject
(won't work if object is the body)
CALLED BY: INTERNAL
PASS: ds - block with graphic objects in it
ax - message
di - MessageFlags
cx,dx,bp - other data for message
RETURN:
if no body return
zero flag set
else
zero flag cleared
if MF_CALL
ax,cx,dx,bp
no flags except carry
otherwise
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/14/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjMessageToBody proc far
uses bx,si,di
.enter
mov bx, ds:[OLMBH_output].handle
tst bx
jz done
mov si, ds:[OLMBH_output].chunk
EC < call ECGrObjBodyCheckLMemOD >
ornf di, mask MF_FIXUP_DS
call ObjMessage
ClearZeroFlagPreserveCarry si
done:
.leave
ret
GrObjMessageToBody endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjMessageToHead
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Sends a message to the graphic head
CALLED BY: INTERNAL
PASS: ds - block with graphic objects in it
ax - message
di - MessageFlags
cx,dx,bp - other data for message
RETURN:
if MF_CALL
ax,cx,dx,bp - from message handler
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/14/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjMessageToHead proc far
uses bx,si,di
.enter
call GrObjGetHeadOD
ornf di, mask MF_FIXUP_DS
call ObjMessage
.leave
ret
GrObjMessageToHead endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjMessageToGOAMText
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Sends a message to the text object associated with
the attribute manager
CALLED BY: INTERNAL UTILITY
PASS:
*ds:si - object
ax - message
di - MessageFlags
cx,dx,bp - other data for message
RETURN:
if MF_CALL
ax,cx,dx,bp - from message handler
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 5/11/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjMessageToGOAMText proc far
uses bx,si,di
.enter
EC < call ECGrObjCheckLMemObject >
; Get OD of text object from attribute manager
;
push ax,cx,dx,di ;message, params
mov ax,MSG_GOAM_GET_TEXT_OD
mov di,mask MF_FIXUP_DS or mask MF_CALL
call GrObjMessageToGOAM
mov bx,cx
mov si,dx
pop ax,cx,dx,di ;message, params
; Send original message to text object
;
ornf di,mask MF_FIXUP_DS
call ObjMessage
.leave
ret
GrObjMessageToGOAMText endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjMessageToRuler
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Sends a message to the ruler
CALLED BY: INTERNAL
PASS: ds - block with graphic objects in it
ax - message
di - MessageFlags
cx,dx,bp - other data for message
RETURN:
if no ruler return
zero flag set
else
zero flag cleared
if MF_CALL
ax,cx,dx,bp
no flags except carry
else
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/14/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjMessageToRuler proc far
uses bx,si,di
.enter
EC < call ECGrObjCheckLMemObject >
call GrObjGetRulerOD
tst bx
jz done
ornf di, mask MF_FIXUP_DS
call ObjMessage
done:
.leave
ret
GrObjMessageToRuler endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjMessageToEdit
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Sends a message to object being edited
CALLED BY: INTERNAL
PASS: ds - block with graphic objects in it
ax - message
di - MessageFlags
cx,dx,bp - other data for message
RETURN:
if no edit return
zero flag set
else
zero flag cleared
if MF_CALL
ax,cx,dx,bp
no flags except carry
otherwise
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/14/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjMessageToEdit proc far
uses bx,si,di
.enter
EC < call ECGrObjCheckLMemObject >
call GrObjGetEditOD
tst bx
jz done
ornf di, mask MF_FIXUP_DS
call ObjMessage
; Clear zero flag to signify message being sent
;
ClearZeroFlagPreserveCarry si
done:
.leave
ret
GrObjMessageToEdit endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjMessageToMouseGrab
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Sends a message to object with mouse grab
CALLED BY: INTERNAL
PASS: ds - block with graphic objects in it
ax - message
di - MessageFlags
cx,dx,bp - other data for message
RETURN:
if no mouse grab return
zero flag set
else
zero flag cleared
if MF_CALL
ax,cx,dx,bp
no flags except carry
otherwise
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/14/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjMessageToMouseGrab proc far
uses bx,si,di
.enter
EC < call ECGrObjCheckLMemObject >
call GrObjGetMouseGrabOD
tst bx
jz done
ornf di, mask MF_FIXUP_DS
call ObjMessage
; Clear zero flag to signify message being sent
;
ClearZeroFlagPreserveCarry si
done:
.leave
ret
GrObjMessageToMouseGrab endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjMessageToGroup
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Sends a message to the group
CALLED BY: INTERNAL
PASS: ds:si - object
ax - message
di - MessageFlags
cx,dx,bp - other data for message
RETURN:
if MF_CALL
ax,cx,dx,bp - from message handler
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
GrObjs within a group store the OD of the group
in their reverseLink
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/14/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjMessageToGroup proc far
class GrObjClass
uses bx,si,di
.enter
EC < call ECGrObjCheckLMemObject >
GrObjDeref bx,ds,si
EC < test ds:[bx].GOI_optFlags, mask GOOF_IN_GROUP >
EC < ERROR_Z OBJECT_NOT_IN_A_GROUP >
mov si,ds:[bx].GOI_reverseLink.LP_next.chunk
mov bx,ds:[bx].GOI_reverseLink.LP_next.handle
ornf di, mask MF_FIXUP_DS
call ObjMessage
.leave
ret
GrObjMessageToGroup endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetHeadOD
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the OD of the graphic head from the body
CALLED BY: INTERNAL
PASS:
ds - segment of object block
RETURN:
^lbx:si - head od
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/21/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetHeadOD proc near
uses ax
.enter
mov bx,offset GBI_head
call GrObjGetDWordFromBody
mov_tr bx,ax ;head handle
.leave
ret
GrObjGetHeadOD endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetMouseGrabOD
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the OD of the object with the mouse grab from the body
CALLED BY: INTERNAL
PASS:
ds - segment of object block
RETURN:
^lbx:si - mouse grab
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/21/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetMouseGrabOD proc near
uses ax
.enter
mov bx,offset GBI_mouseGrab
call GrObjGetDWordFromBody
jc noBody
mov bx,ax ;edit handle
done:
.leave
ret
noBody:
clr bx
jmp done
GrObjGetMouseGrabOD endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetRulerOD
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the OD of the ruler from the body
CALLED BY: INTERNAL
PASS:
ds - segment of object block
RETURN:
^lbx:si - ruler od
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/21/91 Initial version
jon 8 jan 92 copied from GrObjGetHeadOD
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetRulerOD proc near
uses ax
.enter
mov bx,offset GBI_ruler
call GrObjGetDWordFromBody
mov_tr bx,ax ;head handle
.leave
ret
GrObjGetRulerOD endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetEditOD
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the OD of the editable object from the body
CALLED BY: INTERNAL
PASS:
ds - segment of object block
RETURN:
^lbx:si - edit od or bx = 0 and si destroyed
DESTROYED:
see RETURN
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/21/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetEditOD proc far
uses ax
.enter
; If the body does not have both targets then
; we really don't have an edit grab
;
mov bx,offset GBI_targetExcl.HG_flags
call GrObjGetDWordFromBody
test si,mask HGF_SYS_EXCL or mask HGF_APP_EXCL
jz noEdit
jpo noEdit
mov bx,offset GBI_targetExcl.HG_OD
call GrObjGetDWordFromBody
jc noEdit ;jmp if no body
mov bx,ax ;edit handle
done:
.leave
ret
noEdit:
clr bx
jmp done
GrObjGetEditOD endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetParentGStateStart
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: GrObj needs a gstate with the PARENT transformation in it.
This means the body translation plus the transformations from
all the groups above it.
The object has been passed a value that must either be
zero or a gstate. If the value is zero, create a PARENT_GSTATE.
If the value is non-zero, assume it is a gstate and push
its transform.
This routine manipulates the stack and places two values
above the return address. At the offset of the return
segment + 2 is either 0 or the pushed gstate handle. At the
offset of the return segment +4 is either 0 or the
created gstate handle.
The routine GrObjGetGStateEnd reads in both these values
and either pops the transform or destroys the created
gstate.
CALLED BY: INTERNAL
PASS:
*ds:si - object
di - gstate or 0
RETURN:
di - gstate
DESTROYED:
none
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
WARNING: This routine must be used in conjunction with
GrObjGetGStateEnd because it dorks with the stack.
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 11/11/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ModifiedStackData struct
MSD_bp word
MSD_bx word
MSD_offset word
MSD_segment word
MSD_pushedGState hptr
MSD_createdGState hptr
ModifiedStackData ends
ExtraSpaceOnStack = size ModifiedStackData - (offset MSD_segment + size MSD_segment)
GrObjGetParentGStateStart proc far call
.enter
EC < call ECGrObjCheckLMemObject >
; Make room above the return address in the stack to store
; the soon to be created gstate
;
sub sp,ExtraSpaceOnStack
push ax,bp ;into MSD
mov bp,sp ;base of MSD
mov ax,ss:[bp].[MSD_offset + ExtraSpaceOnStack] ;return offset
mov ss:[bp].MSD_offset,ax ;return offset
mov ax,ss:[bp].[MSD_segment + ExtraSpaceOnStack] ;return segment
mov ss:[bp].MSD_segment,ax ;return segment
tst di ;passed gstate
je create
EC < call ECCheckGStateHandle >
call GrSaveTransform
clr ax ;no created gstate
store:
; Put pushed gstate or 0 and created gstate or 0 on stack
;
mov ss:[bp].MSD_pushedGState,di
mov ss:[bp].MSD_createdGState,ax
; Make sure that the one, true gstate ends up in di
;
tst ax
jz done
mov_tr di,ax
done:
pop ax,bp
.leave
retf
create:
; Create a parent gstate for object
;
mov di, PARENT_GSTATE
call GrObjCreateGState
mov_tr ax,di ;created gstate
clr di ;no pushed gstate
jmp store
GrObjGetParentGStateStart endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetBodyGStateStart
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: GrObj needs a BODY_GSTATE gstate.
This means the body translation but not any of the
transformations from all the groups above it.
The object has been passed a value that must either be
zero or a gstate. If the value is zero, create a BODY_GSTATE.
If the value is non-zero, assume it is a gstate and push
its transform.
This routine manipulates the stack and places two values
above the return address. At the offset of the return
segment + 2 is either 0 or the pushed gstate handle. At the
offset of the return segment +4 is either 0 or the
created gstate handle.
The routine GrObjGetGStateEnd reads in both these values
and either pops the transform or destroys the created
gstate.
CALLED BY: INTERNAL
PASS:
*ds:si - object
di - gstate or 0
RETURN:
di - gstate
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
WARNING: This routine must be used in conjunction with
GrObjGetGStateEnd because it dorks with the stack.
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 11/11/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetBodyGStateStart proc far call
.enter
EC < call ECGrObjCheckLMemObject >
; Make room above the return address in the stack to store
; the soon to be created gstate
;
sub sp,ExtraSpaceOnStack
push ax,bp ;into MSD
mov bp,sp ;base of MSD
mov ax,ss:[bp].[MSD_offset + ExtraSpaceOnStack] ;return offset
mov ss:[bp].MSD_offset,ax ;return offset
mov ax,ss:[bp].[MSD_segment + ExtraSpaceOnStack] ;return segment
mov ss:[bp].MSD_segment,ax ;return segment
tst di ;passed gstate
jz create
EC < call ECCheckGStateHandle >
call GrSaveTransform
clr ax ;no created gstate
store:
; Put pushed gstate or 0 and created gstate or 0 on stack
;
mov ss:[bp].MSD_pushedGState,di
mov ss:[bp].MSD_createdGState,ax
; Make sure that the one, true gstate ends up in di
;
tst ax
jz done
mov_tr di,ax
done:
pop ax,bp
.leave
retf
create:
; Create a body gstate for object
;
mov di, BODY_GSTATE
call GrObjCreateGState
mov_tr ax,di ;created gstate
clr di ;no pushed gstate
jmp store
GrObjGetBodyGStateStart endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetGStateEnd
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Clean up the gstate info that has been placed on the
stack by either GrObjGetBodyGStateStart or
GrObjGetParentGStateStart.
Two values have been placed on the stack, only one
of them is actually a gstate, the other is zero.
Depending on which is gstate either pop transform or
destroy gstate.
CALLED BY: INTERNAL
PASS:
gstate arguments
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
WARNING: This routine must be used in conjunction with
GrObjGetBodyGStateStart or GrObjGetParentGStateStart
because it dorks with the stack.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 11/11/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetGStateEnd proc far call \
pushedGState:hptr,
createdGState:hptr
uses di
.enter
mov di,pushedGState
tst di
jz destroy
EC < tst createdGState >
EC < ERROR_NZ STACK_HAS_BEEN_HOSED_BY_OBJECT_GET_GSTATE >
call GrRestoreTransform
done:
.leave
ret @ArgSize
destroy:
mov di,createdGState
call GrDestroyState
jmp short done
GrObjGetGStateEnd endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetCurrentHandleSize
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the current width and height of handle size
CALLED BY: INTERNAL
PASS:
ds - segment of object block
RETURN:
ax - max line width
bl - current handle width
bh - current handle height
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/21/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetCurrentHandleSize proc far
uses si
.enter
mov bx,offset GBI_curHandleWidth
call GrObjGetDWordFromBody
mov bx,si ;handle size
.leave
ret
GrObjGetCurrentHandleSize endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetDesiredHandleSize
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the desired width and height of handle size
CALLED BY: INTERNAL
PASS:
ds - segment of object block
RETURN:
bl - desired handle size
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/21/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetDesiredHandleSize proc far
uses si
.enter
mov bx,offset GBI_desiredHandleSize
call GrObjGetDWordFromBody
mov bx,si ;handle size
.leave
ret
GrObjGetDesiredHandleSize endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetCurrentNudgeUnits
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the current nudge values. These represent the
number of points that currently equal one screen pixel
in x and y
CALLED BY: INTERNAL (UTILITY)
PASS:
ds - segment of object block
RETURN:
ax - curNudgeX in BBFixed
bx - curNudgeY in BBFixed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/21/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetCurrentNudgeUnits proc far
uses si
.enter
CheckHack < (offset GBI_curNudgeY - offset GBI_curNudgeX) eq 2>
mov bx,offset GBI_curNudgeX
call GrObjGetDWordFromBody
mov bx,si ;handle size
.leave
ret
GrObjGetCurrentNudgeUnits endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetCurrentNudgeUnitsWWFixed
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the current nudge values. These represent the
number of points that currently equal one screen pixel
in x and y
CALLED BY: INTERNAL (UTILITY)
PASS:
ds - segment of object block
RETURN:
dx:cx - curNudgeX in WWFixed
bx:ax - curNudgeY in WWFixed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/21/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetCurrentNudgeUnitsWWFixed proc far
.enter
call GrObjGetCurrentNudgeUnits
clr cl ;x frac low byte
mov ch,al ;x frac high byte
mov al,ah ;x int low byte
cbw ;sign extend x int low
mov dx,ax ;x int
mov al,bh ;y int low byte
cbw ;sign extend y int low
xchg bx,ax ;y int, y frac high byte
mov ah,al ;y frac high byte
clr al ;y frac low byte
.leave
ret
GrObjGetCurrentNudgeUnitsWWFixed endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjSendActionNotificationViaBody
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Attempt to send the action notification using the
GrObjActionNoticificationStruct in the body's vardata.
If no such vardata exists then do nothing
CALLED BY: INTERNAL
GrObjSendActionNotification
PASS:
*ds:si - GrObject
bp - GrObjActionNotificationType
RETURN:
bp - based on GrObjActionNotificationType
GOANT_PRE_DELETE - zero to abort the deletion
ds - Fixed up so that it is pointing at the same block
as was passed in.
You should not save segment registers around calls to
this routine unless you are certain that the block
containing the object won't move as part of the
notification (not always a safe assumption).
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/20/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjSendActionNotificationViaBody proc far
class GrObjClass
uses ax,bx,cx,dx,si
.enter
EC < call ECGrObjCheckLMemObject >
; The attribute manager is not permitted to send
; notifications via the body, because it is not
; guaranteed to be in a block with a BodyKeeper.
;
test ds:[di].GOI_optFlags, mask GOOF_ATTRIBUTE_MANAGER
jnz done
; OD of object sending notification
;
mov cx,ds:[LMBH_handle]
mov dx,si
; Get body od
;
GrObjGetBodyOD
; Lock the body and look for the var data
;
push cx ;object block
push bx ;body block
call ObjLockObjBlock
mov ds,ax ;body segment
.warn -private
mov di,ds:[si]
add di,ds:[di].GrObjBody_offset
test ds:[di].GBI_flags,mask GBF_HAS_ACTION_NOTIFICATION
.warn +private
jz unlock
mov ax,ATTR_GB_ACTION_NOTIFICATION
call ObjVarFindData
EC < ERROR_NC GROBJ_BODY_HAS_NO_ACTION_NOTIFICATION_BUT_BIT_IS_SET >
tst ds:[bx].GOANS_suspendCount
jnz unlock
; Send the notification
;
mov ax,MSG_GROBJ_ACTION_NOTIFICATION
mov si,ds:[bx].GOANS_optr.chunk
mov bx,ds:[bx].GOANS_optr.handle
mov di,mask MF_FIXUP_DS or mask MF_CALL ;so we can get BP
call ObjMessage
unlock:
pop bx ;body block
call MemUnlock ;body
pop bx ;object block
call MemDerefDS ;fixup object segment
done:
.leave
ret
GrObjSendActionNotificationViaBody endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjActionNotificationSuspendedInBody?
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Determine if the action notification has been
suspended in the body
CALLED BY: INTERNAL
GrObjSendActionNotification
PASS:
*ds:si - GrObject
RETURN:
stc - suspended
clc - not suspend
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 3/27/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjActionNotificationSuspendedInBody? proc far
class GrObjClass
uses ax,bx,cx,dx,ds,si,di
.enter
EC < call ECGrObjCheckLMemObject >
; The attribute manager is not permitted to send
; notifications via the body, because it is not
; guaranteed to be in a block with a BodyKeeper.
;
test ds:[di].GOI_optFlags, mask GOOF_ATTRIBUTE_MANAGER
jnz suspended
; OD of object sending notification
;
mov cx,ds:[LMBH_handle]
mov dx,si
; Get body od
;
GrObjGetBodyOD
; Lock the body and look for the var data
;
push bx ;body block
call ObjLockObjBlock
mov ds,ax ;body segment
.warn -private
mov di,ds:[si]
add di,ds:[di].GrObjBody_offset
test ds:[di].GBI_flags,mask GBF_HAS_ACTION_NOTIFICATION
.warn +private
jz notSuspended
mov ax,ATTR_GB_ACTION_NOTIFICATION
call ObjVarFindData
EC < ERROR_NC GROBJ_BODY_HAS_NO_ACTION_NOTIFICATION_BUT_BIT_IS_SET >
tst ds:[bx].GOANS_suspendCount
jnz suspended
notSuspended:
clc
unlock:
pop bx ;body block
call MemUnlock ;body
.leave
ret
suspended:
stc
jmp unlock
GrObjActionNotificationSuspendedInBody? endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjCreateGState
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Create a gstate with all the appropriate body and group
transformations in it.
CALLED BY: INTERNAL
PASS:
*ds:si - object that wants gstate
di - GrObjCreateGStateType
RETURN:
di - gstate
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 10/24/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjCreateGState proc far
class GrObjClass
uses ax,bp, cx
.enter
EC < call ECGrObjCheckLMemObject >
mov cx, di ;cx <- GrObjCreateGStateTypes
; If caller just wants body translation, the skip to
; calling body
;
CheckHack< BODY_GSTATE eq 0>
jcxz body
; Check for object in group, if so jump to gup for gstate
;
GrObjDeref di,ds,si
test ds:[di].GOI_optFlags,mask GOOF_IN_GROUP
jnz gupForGState
body:
call GrObjCreateBodyGState
checkGrObj:
mov di,bp ;gstate
cmp cx, OBJECT_GSTATE
jne done
; If the NORMAL transform doesn't exist (it should, but hey...)
; then return the "best" GState we can.
;
GrObjDeref bp,ds,si
mov bp, ds:[bp].GOI_normalTransform
tst bp
jz done
call GrObjApplyNormalTransform
done:
.leave
ret
gupForGState:
mov ax,MSG_GROUP_CREATE_GSTATE
mov di,mask MF_FIXUP_DS or mask MF_CALL
call GrObjMessageToGroup
jmp checkGrObj
GrObjCreateGState endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjCreateBodyGState
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Lock the body and call its gstate create routine.
Yes, this is hack for speed purposes
CALLED BY: INTERNAL
GrObjCreateGState
PASS: ds - grobject block
RETURN:
bp - gstate
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/26/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjCreateBodyGState proc near
uses ax,bx,si,ds
.enter
GrObjGetBodyOD
push bx ;body block
call ObjLockObjBlock
mov ds,ax
call GrObjBodyCreateGState
pop bx ;body block
call MemUnlock
.leave
ret
GrObjCreateBodyGState endp
COMMENT @----------------------------------------------------------------------
FUNCTION: GrObjFreeObjectAppropriately
DESCRIPTION: I believe that the floater can still have messages in the
queue at this point, but no other grobjects can.
CALLED BY: INTERNAL
PASS:
*ds:si - object
RETURN:
none
DESTROYED:
none
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 10/21/92 Initial version
------------------------------------------------------------------------------@
GrObjFreeObjectAppropriately proc far
uses ax,cx,dx,bp,di
class GrObjClass
.enter
mov ax,MSG_META_OBJ_FREE ;assume
GrObjDeref di,ds,si
test ds:[di].GOI_optFlags, mask GOOF_FLOATER
jnz common
mov ax, MSG_GO_OBJ_FREE
common:
call ObjCallInstanceNoLock
.leave
ret
GrObjFreeObjectAppropriately endp
GrObjAlmostRequiredCode ends
| 20.854555 | 85 | 0.56894 |
f588577e9f41f3a3680c297507bc9445eee8234e | 678 | asm | Assembly | programs/oeis/014/A014306.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/014/A014306.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/014/A014306.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A014306: a(n) = 0 if n of form m(m+1)(m+2)/6, otherwise 1.
; 0,0,1,1,0,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
lpb $0
add $4,1
add $2,$4
trn $2,3
trn $0,$2
add $1,1
mov $3,$0
trn $0,1
trn $1,$3
add $2,3
lpe
| 45.2 | 501 | 0.49705 |
ca550bc1329855cfd4b3a89abc8e1b3bff33ee8b | 280 | asm | Assembly | programs/oeis/051/A051942.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/051/A051942.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/051/A051942.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A051942: a(n) = n*(n+1)/2 - 45.
; 0,10,21,33,46,60,75,91,108,126,145,165,186,208,231,255,280,306,333,361,390,420,451,483,516,550,585,621,658,696,735,775,816,858,901,945,990,1036,1083,1131,1180,1230,1281,1333,1386,1440,1495,1551,1608,1666
mov $1,$0
add $1,19
mul $1,$0
div $1,2
| 35 | 205 | 0.678571 |
367e5889098a5f80b7df0407dd31621cadd74610 | 2,787 | asm | Assembly | libsrc/stdio/ansi/z88/f_ansi_attr.asm | dex4er/deb-z88dk | 9ee4f23444fa6f6043462332a1bff7ae20a8504b | [
"ClArtistic"
] | 1 | 2018-09-04T23:07:24.000Z | 2018-09-04T23:07:24.000Z | libsrc/stdio/ansi/z88/f_ansi_attr.asm | dex4er/deb-z88dk | 9ee4f23444fa6f6043462332a1bff7ae20a8504b | [
"ClArtistic"
] | null | null | null | libsrc/stdio/ansi/z88/f_ansi_attr.asm | dex4er/deb-z88dk | 9ee4f23444fa6f6043462332a1bff7ae20a8504b | [
"ClArtistic"
] | null | null | null | ;
; Spectrum C Library
;
; ANSI Video handling for z88
;
; Text Attributes
; m - Set Graphic Rendition
;
; The most difficult thing to port:
; Be careful here...
;
; djm 6/6/2000
;
;
; $Id: f_ansi_attr.asm,v 1.3 2001/05/02 09:21:51 dom Exp $
;
XLIB ansi_attr
XREF invrs
INCLUDE "#stdio.def"
.ansi_attr
and a
jr nz,noreset
ld a,1
call_oz(os_out)
ld a,127
call_oz(os_out)
ret
.noreset
cp 1
jr nz,nobold
ld hl,boldtxt
call_oz(gn_sop)
ret
.boldtxt
defb 1,'2','+','B',0
.nobold
cp 2
jr z,dim
cp 8
jr nz,nodim
.dim
ld hl,dimtxt
call_oz(gn_sop)
ret
.dimtxt
defb 1,'2','-','B',0
.nodim
cp 4
jr nz,nounderline
ld hl,undertxt
call_oz(gn_sop)
ret
.undertxt
defb 1,'2','+','U',0
.nounderline
cp 24
jr nz,noCunderline
ld hl,noundertxt
call_oz(gn_sop)
ret
.noundertxt
defb 1,'2','-','U',0
.noCunderline
cp 5
jr nz,noblink
ld hl,blinktxt
call_oz(gn_sop)
ret
.blinktxt
defb 1,'2','+','F',0
.noblink
cp 25
jr nz,nocblink
ld hl,noblinktxt
call_oz(gn_sop)
ret
.noblinktxt
defb 1,'2','-','F',0
.nocblink
cp 7
jr nz,noreverse
ld hl,invstxt
call_oz(gn_sop)
ret
; ld (INVRS),a ; inverse 1
.invstxt
defb 1,'2','+','R',0
.noreverse
cp 27
jr nz,noCreverse
ld hl,noinvstxt
call_oz(gn_sop)
ret
.noinvstxt
defb 1,'2','-','R',0
.noCreverse
cp 8
jr nz,noinvis
; Pass, make the text invisible..(tiny)
ld hl,tinytext
call_oz(gn_sop)
ret
.tinytext
defb 1,'3','+','G','T',0
.noinvis
cp 28
jr nz,nocinvis
; Pass, make text visible again
ld hl,notinytxt
call_oz(gn_sop)
ret
.notinytxt
defb 1,'3','-','G','T',0
.nocinvis
ret
IF colours
cp 30
jp m,nofore
cp 37+1
jp p,nofore
sub 30
;'' Palette Handling ''
rla
bit 3,a
jr z,ZFR
set 0,a
and 7
.ZFR
;''''''''''''''''''''''
ld e,a
ld a,(23693)
and @11111000
or e
ld (23693),a
ret
.nofore
cp 40
jp m,noback
cp 47+1
jp p,noback
sub 40
;'' Palette Handling ''
rla
bit 3,a
jr z,ZBK
set 0,a
and 7
.ZBK
;''''''''''''''''''''''
rla
rla
rla
ld e,a
ld a,(23693)
and @11000111
or e
ld (23693),a
.noback
ret
ENDIF
| 16.890909 | 58 | 0.463581 |
367060c5f4af281d22799f2dc9bb202c91c6b98c | 61 | asm | Assembly | pwnlib/shellcraft/templates/i386/infloop.asm | DrKeineLust/pwntools | 415f11bba7096b7d68fe144f5b3432b9c12a4f0a | [
"MIT"
] | 8,966 | 2015-01-02T11:58:14.000Z | 2022-03-31T21:19:56.000Z | pwnlib/shellcraft/templates/i386/infloop.asm | DrKeineLust/pwntools | 415f11bba7096b7d68fe144f5b3432b9c12a4f0a | [
"MIT"
] | 1,401 | 2015-01-01T00:56:22.000Z | 2022-03-31T16:19:53.000Z | pwnlib/shellcraft/templates/i386/infloop.asm | DrKeineLust/pwntools | 415f11bba7096b7d68fe144f5b3432b9c12a4f0a | [
"MIT"
] | 1,844 | 2015-01-07T04:38:06.000Z | 2022-03-30T03:54:46.000Z | <%docstring>A two-byte infinite loop.</%docstring>
jmp $
| 20.333333 | 50 | 0.672131 |
99fce6c83fc8014b31fd8290af5f02e384ed955e | 7,601 | asm | Assembly | calc_project.asm | Toufiqa/Calculator | 662924798de2affe6fee397923538b8d717df805 | [
"MIT"
] | null | null | null | calc_project.asm | Toufiqa/Calculator | 662924798de2affe6fee397923538b8d717df805 | [
"MIT"
] | null | null | null | calc_project.asm | Toufiqa/Calculator | 662924798de2affe6fee397923538b8d717df805 | [
"MIT"
] | null | null | null | .model small
.stack 100h
precision = 30 ; max digits after the dot.
.data
text0 db 'Table of operations:$'
msg0 db 'Sum (+): 0$'
msg1 db 'Subtract (-): 1$'
msg2 db 'Mul (*): 2$'
msg3 db 'Div (/): 3$'
msg4 db 'X^Y (^): 4$'
msg5 db 'AND (&): 5$'
msg6 db 'OR (|): 6$'
msg7 db 'XOR (~): 7$'
msg8 db 'NOT (-x): 8$'
msg9 db 'Sin(x): 9$'
msg10 db 'Cos (x): 10$'
msg11 db 'Tan (x): 11$'
msg12 db 'Factorial (!): 12$'
msg13 db 'Inverse (1/x): 13$'
msg14 db 'Roor square root (vx): 14$'
msg15 db 'Power of 10 (10^x): 15$'
msg16 db 'Exponential (e^x): 16$'
msg17 db 'Logarithmic(logx): 17$'
msg18 db 'Equation solving(px^2+qx+w=0): 18$'
msg19 db 'XNOR(A.B+(-A-B)): 19$'
msg20 db 'NOR(-(|)): 20$'
msg21 db 'NAND(-&): 21$'
text1 db 0ah,0dh,'Enter operation number [0-21]:$'
text2 db 0ah,0dh,'Enter digits [0-999]:$'
text3 db 0ah,0dh,'If you want to continue press '0'else, press any key to exit.... $'
ans: db "The quotient is: $"
BASE DB ?
POW DB ?
NL1 DB 0AH,0DH,'ENTER BASE:','$'
NL2 DB 0AH,0DH,'ENTER POWER:','$'
NUM DB ?
FACT DB 1H
RES DB 10 DUP ('$')
MSG22 DB "ENTER NUMBER : $"
MSG23 DB 10,13,"RESULT : $"
pi equ 3.14159
.code
main proc
include 'emu8086.inc'
;for user input
define_print_string
define_scan_num
define_print_num
define_print_num_uns
mov ax,@data
mov ds,ax
lea dx,text0
mov ah,9
int 21h
printn ''
lea dx,msg0
mov ah,9
int 21h
printn ''
lea dx,msg1
mov ah,9
int 21h
printn ''
lea dx,msg2
mov ah,9
int 21h
printn ''
lea dx,msg3
mov ah,9
int 21h
printn ''
lea dx,msg4
mov ah,9
int 21h
printn ''
lea dx,msg5
mov ah,9
int 21h
printn ''
lea dx,msg6
mov ah,9
int 21h
printn ''
lea dx,msg7
mov ah,9
int 21h
printn ''
lea dx,msg8
mov ah,9
int 21h
printn ''
lea dx,msg9
mov ah,9
int 21h
printn ''
lea dx,msg10
mov ah,9
int 21h
printn ''
lea dx,msg11
mov ah,9
int 21h
printn ''
lea dx,msg12
mov ah,9
int 21h
printn ''
lea dx,msg13
mov ah,9
int 21h
printn ''
lea dx,msg14
mov ah,9
int 21h
printn ''
lea dx,msg15
mov ah,9
int 21h
printn ''
lea dx,msg16
mov ah,9
int 21h
printn ''
lea dx,msg17
mov ah,9
int 21h
printn ''
lea dx,msg18
mov ah,9
int 21h
printn ''
lea dx,msg19
mov ah,9
int 21h
printn ''
lea dx,msg20
mov ah,9
int 21h
printn ''
lea dx,msg21
mov ah,9
int 21h
printn ''
Repeat:
call clear
lea dx,text1
mov ah,9
int 21h
call scan_num ; it stores the value in cx
mov ax,cx
cmp ax,0
jnge null
je sum
cmp ax,1
je subtract
cmp ax,2
je multiplication
cmp ax,3
je divide
cmp ax,4
je powerofx
cmp ax,5
je andgate
cmp ax,6
je orgate
cmp ax,7
je xorgate
cmp ax,8
je notgate
cmp ax,9
je sinx
cmp ax,10
je cosx
cmp ax,11
je tanx
cmp ax,12
je factorial
cmp ax,13
je inverse
cmp ax,14
je rootsquareroot
cmp ax,15
je poweroften
cmp ax,16
je exponential
cmp ax,17
je logarithmic
cmp ax,18
je equation
cmp ax,19
je xnor
cmp ax,20
je nor
cmp ax,21
je nand
sum:
call clear
lea dx,text2
mov ah,9
int 21h
call scan_num
mov ax,cx
printn ''
call scan_num
add ax,cx
printn ''
call print_num ;result have to be in ax
printn ''
lea dx,text3
mov ah,9
int 21h
call scan_num
cmp cx,0
je repeat
jne null
subtract:
call clear
lea dx,text2
mov ah,9
int 21h
call scan_num
mov ax,cx
printn ''
call scan_num
sub ax,cx
printn ''
call print_num
printn ''
lea dx,text3
mov ah,9
int 21h
call scan_num
cmp cx,0
je repeat
jne null
multiplication:
call clear
lea dx,text2
mov ah,9
int 21h
call scan_num
mov ax,cx
printn ''
call scan_num
mul cx
printn ''
mov dx,cx
call print_num
lea dx,text3
mov ah,9
int 21h
call scan_num
cmp cx,0
je repeat
jne null
divide:
lea dx,text2
mov ah,9
int 21h
printn ''
call scan_num
mov ax,cx
printn ''
call scan_num
mov bx,cx
printn ''
printn ''
call divi
lea dx,text3
mov ah,9
int 21h
call scan_num
cmp cx,0
je repeat
jne null
divi proc near
mov dx,0h
divloop:
mov cx,ax
sub ax,bx
jl ende
inc dx
jmp divloop
ende:
mov ax,dx
call print_num
printn ''
mov ax,cx
call print_num
ret
divi endp
powerofx:
LEA DX,NL1
MOV AH,09H
INT 21H
MOV AH,01H
INT 21H
SUB AL,30H
MOV BL,AL
MOV BASE,AL
ENTER_POWER:
LEA DX,NL2
MOV AH,09H
INT 21H
MOV AH,01H
INT 21H
SUB AL,30H
printn ''
MOV CL,AL
DEC CL
MOV AX,00
MOV AL,BASE
LBL1:
MUL BL
LOOP LBL1
MOV CL,10
DIV CL
ADD AX,3030H
MOV DX,AX
MOV AH,02H
INT 21H
MOV DL,DH
INT 21H
printn ''
lea dx,text3
mov ah,9
int 21h
call scan_num
cmp cx,0
je repeat
jne null
andgate:
orgate:
xorgate:
notgate:
sinx:
cosx:
tanx:
factorial:
call clear
printn ''
LEA DX,MSG22
MOV AH,9
INT 21H
MOV AH,1
INT 21H
SUB AL,30H
MOV NUM,AL
MOV AH,0
MOV AL,FACT
MOV CH,0
MOV CL,NUM
LABEL1: MUL CL
LOOP LABEL1
LEA SI,RES
;CALL HEX2DEC ;hexa to decimal conversion
;display 2 decimal digit
LEA DX,MSG23
MOV AH,9
INT 21H
LEA DX,RES
MOV AH,9
INT 21H
printn ''
lea dx,text3
mov ah,9
int 21h
call scan_num
cmp cx,0
je repeat
jne null
inverse:
rootsquareroot:
poweroften:
exponential:
logarithmic:
equation:
xnor:
nor:
nand:
clear proc
mov ah,0
mov al,0
aaa
mov bh,0
mov bl,0
mov bx,0
mov dl,0
mov dh,0
mov dx,0
ret
clear endp
null:
jmp exit
exit:
mov ah,4ch
int 21h
end main | 14.023985 | 87 | 0.45323 |
13def99099726597a479ed344424f6bd69be963c | 27,203 | asm | Assembly | nine/prg_rom/audio.asm | sgadrat/super-tilt-bro | f918731c63a32dc3d0c80f10e7b053d6fa218c50 | [
"WTFPL"
] | 91 | 2017-08-06T18:30:13.000Z | 2022-02-17T00:26:45.000Z | nine/prg_rom/audio.asm | sgadrat/super-tilt-bro | f918731c63a32dc3d0c80f10e7b053d6fa218c50 | [
"WTFPL"
] | 2 | 2018-10-12T04:34:13.000Z | 2021-12-25T17:01:18.000Z | nine/prg_rom/audio.asm | sgadrat/super-tilt-bro | f918731c63a32dc3d0c80f10e7b053d6fa218c50 | [
"WTFPL"
] | 9 | 2016-10-08T21:24:37.000Z | 2022-02-05T00:13:31.000Z | audio_init:
.(
jsr audio_mute_music
lda #%00001111 ; ---DNT21
STA APU_STATUS
; Fallthrough to audio_cut_sfx
.)
audio_cut_sfx:
.(
lda #$ff
sta audio_fx_noise_current_opcode_bank
rts
.)
; Play a sound effect
; register Y - first opcode address lsb
; register X - first opcode address msb
; register A - effect bank
;
; Overwrites register A
audio_play_sfx:
.(
sty audio_fx_noise_current_opcode
stx audio_fx_noise_current_opcode_msb
sta audio_fx_noise_current_opcode_bank
lda #0
sta audio_fx_noise_wait_cnt
sta audio_fx_noise_pitch_slide
lda #%01000000
sta audio_fx_noise_apu_period_byte
lda #%00111111
sta audio_fx_noise_apu_envelope_byte
rts
.)
; Play a track
; register Y - track info address lsb
; register X - track info address msb
; register A - track bank
;
; Overwrites all registers, tmpfield1 to tmpfield4
audio_play_music:
.(
; Set current track
sty audio_current_track_lsb
stx audio_current_track_msb
sta audio_current_track_bank
jsr switch_bank
; Store native tempo in zeropage
ldy #MUSIC_HEADER_TEMPO
lda (audio_current_track_lsb), y
sta audio_50hz
; Init pulse channels
ldx #0
jsr init_channel
ldx #1
jsr init_channel
; Init triangle channel
lda #5 ; default note duration ;TODO get it from music header
sta audio_triangle_default_note_duration
lda #0
sta audio_triangle_apu_timer_low_byte
sta audio_triangle_apu_timer_high_byte
sta audio_triangle_pitch_slide_lsb
sta audio_triangle_pitch_slide_msb
;lda #%10000000 ; CRRR RRRR ; useless, channel is soft-silenced by init_channel, so next tick will mute it (even if first opcode is a WAIT)
;sta APU_TRIANGLE_LINEAR_CNT ;
ldx #2
jsr init_channel
; Init noise channel
lda #%01000000
sta audio_noise_apu_period_byte
lda #%00111111
sta audio_noise_apu_envelope_byte
lda #%00001000
sta APU_NOISE_LENGTH_CNT
ldx #3
jsr init_channel
rts
init_channel:
.(
; Set current sample
lda #0
sta audio_square1_sample_num, x
; Remove any wait
;lda #0 ; useless, done above
sta audio_square1_wait_cnt, x
; Set default pulse parameters
cpx #2
bcs end_pulse_specifics
lda #5 ; default note duration ;TODO get it from music header
sta audio_square1_default_note_duration, x
lda #%00111111 ; DDLC VVVV - APU mirror
sta audio_square1_apu_envelope_byte, x
lda #%00001000 ; EPPP NSSS - direct write to APU
.(
cpx #0
bne pulse_2
sta APU_SQUARE1_SWEEP
jmp ok
pulse_2:
sta APU_SQUARE2_SWEEP
ok:
.)
; Remove any slide
lda #0
sta audio_square1_pitch_slide_lsb, x
sta audio_square1_pitch_slide_msb, x
; Soft-silence channel
;lda #0 ; useless, done above
sta audio_square1_apu_timer_low_byte, x
sta audio_square1_apu_timer_high_byte, x
end_pulse_specifics:
; Set current opcode
;TODO factorize with SAMPLE_END handling
#if \
(MUSIC_HEADER_PULSE2_TRACK_OFFSET <> (MUSIC_HEADER_PULSE1_TRACK_OFFSET + 2)) || \
(MUSIC_HEADER_TRIANGLE_TRACK_OFFSET <> (MUSIC_HEADER_PULSE2_TRACK_OFFSET + 2)) || \
(MUSIC_HEADER_NOISE_TRACK_OFFSET <> (MUSIC_HEADER_TRIANGLE_TRACK_OFFSET + 2))
#error code below expects channels track offset in a specific order
#endif
tmp_addr = tmpfield1
tmp_addr_msb = tmpfield2
txa ; Y = pulse1_track_offset + 2 * X = channel's samples list address' offset in music header
asl
clc
adc #MUSIC_HEADER_PULSE1_TRACK_OFFSET
tay
lda (audio_current_track_lsb), y ; tmp_addr = channel's samples list address
sta tmp_addr
iny
lda (audio_current_track_lsb), y
sta tmp_addr_msb
ldy #0 ; current opcode address = first sample's value
lda (tmp_addr), y
sta audio_square1_current_opcode, x
iny
lda (tmp_addr), y
sta audio_square1_current_opcode_msb, x
rts
.)
.)
; Silence any music being played
;
; Overwrites register A
audio_mute_music:
.(
; Avoid any futher music tick
lda #0
sta audio_music_enabled
; Silence square channels
;lda #0 ; useless, set above
sta APU_SQUARE1_TIMER_LOW
sta APU_SQUARE1_LENGTH_CNT
sta APU_SQUARE2_TIMER_LOW
sta APU_SQUARE2_LENGTH_CNT
; Silence triangle channel
lda #%10000000
sta APU_TRIANGLE_LINEAR_CNT
; Silence noise channel
lda #%00110000
sta APU_NOISE_ENVELOPE
rts
.)
; Restore playing music
;
; Overwrites register A
audio_unmute_music:
.(
; Reactivate ticks
lda #1
sta audio_music_enabled
; Rewrite pulse registers as conditionals at tick's end may only partially update them
ldx #1
ldy #4
square_reinit_loop:
lda audio_square1_apu_envelope_byte, x
sta APU_SQUARE1_ENVELOPE, y
lda audio_square1_apu_timer_low_byte, x
sta APU_SQUARE1_TIMER_LOW, y
lda audio_square1_apu_timer_high_byte, x
sta APU_SQUARE1_LENGTH_CNT, y
dey
dey
dey
dey
dex
bpl square_reinit_loop
rts
.)
; Play a tick when two ticks are needed in one frame to play at normal speed
;
; Overwrites all registers, and tmpfield1 to tmpfield4
audio_music_extra_tick:
.(
lda system_index
bne ok ; skip if playing on NTSC system
lda audio_50hz
bne ok ; skip if music is PAL native
dec audio_vframe_cnt
bpl ok ; skip if it is not time to do an extra tick
lda #4
sta audio_vframe_cnt
jmp audio_music_tick
ok:
rts
.)
; Play one tick of the audio engine
;
; Overwrites all registers, and tmpfield1 to tmpfield4
audio_music_tick:
.(
apu_timer_high_byte = extra_tmpfield1
apu_timer_low_byte = extra_tmpfield2
current_opcode = extra_tmpfield3
current_opcode_msb = extra_tmpfield4
channel_number = extra_tmpfield5
.(
SWITCH_BANK(audio_current_track_bank)
; Play music
lda audio_music_enabled
beq music_ok
ldx #0
jsr pulse_tick
ldx #1
jsr pulse_tick
ldx #2
jsr pulse_tick ; Triangle opcodes are compatible with pulse opcodes, just use pulse_tick
jsr noise_tick
music_ok:
; Play sfx
lda audio_fx_noise_current_opcode_bank
bmi apply_music
play_sfx:
; SFX is active, play it to overwrite music
jsr switch_bank
jsr noise_fx_tick
rts
apply_music:
; SFX is not active, apply register modifications made by the music
lda audio_music_enabled
beq sfx_ok
jmp noise_apply_mirrored_apu
; no return, jump to subroutine
sfx_ok:
; NOTE some branches don't reach the end
rts
.)
noise_fx_tick:
.(
; Save music state
lda audio_noise_pitch_slide : pha
lda audio_noise_wait_cnt : pha
lda audio_noise_current_opcode : pha
lda audio_noise_current_opcode_msb : pha
lda audio_noise_apu_envelope_byte : pha
lda audio_noise_apu_period_byte : pha
; Place sound effect state
lda audio_fx_noise_pitch_slide : sta audio_noise_pitch_slide
lda audio_fx_noise_wait_cnt : sta audio_noise_wait_cnt
lda audio_fx_noise_current_opcode : sta audio_noise_current_opcode
lda audio_fx_noise_current_opcode_msb : sta audio_noise_current_opcode_msb
lda audio_fx_noise_apu_envelope_byte : sta audio_noise_apu_envelope_byte
lda audio_fx_noise_apu_period_byte : sta audio_noise_apu_period_byte
; Tick channel
jsr noise_tick
jsr noise_apply_mirrored_apu
; Save new sound effect state
lda audio_noise_pitch_slide : sta audio_fx_noise_pitch_slide
lda audio_noise_wait_cnt : sta audio_fx_noise_wait_cnt
lda audio_noise_current_opcode : sta audio_fx_noise_current_opcode
lda audio_noise_current_opcode_msb : sta audio_fx_noise_current_opcode_msb
lda audio_noise_apu_envelope_byte : sta audio_fx_noise_apu_envelope_byte
lda audio_noise_apu_period_byte : sta audio_fx_noise_apu_period_byte
; Restore music state
pla : sta audio_noise_apu_period_byte
pla : sta audio_noise_apu_envelope_byte
pla : sta audio_noise_current_opcode_msb
pla : sta audio_noise_current_opcode
pla : sta audio_noise_wait_cnt
pla : sta audio_noise_pitch_slide
rts
.)
noise_tick:
.(
tmp_addr = tmpfield1
tmp_addr_msb = tmpfield2
; Pitch slide (add pitch slide value to frequency)
lda audio_noise_apu_period_byte
and #%00001111
clc
adc audio_noise_pitch_slide
cmp #%00010000
bcs overflow
; No overflow, just store result (keeping original periodic and engine flags)
.(
sta tmpfield1
lda audio_noise_apu_period_byte
and #%11110000
ora tmpfield1
sta audio_noise_apu_period_byte
.)
jmp end_effects
overflow:
; Overflow, cap value to zero if slide is negative or $f is slide is positive
.(
lda audio_noise_pitch_slide
bmi negative
lda #%00001111
ora audio_noise_apu_period_byte
jmp store_result
negative:
lda #%11110000
and audio_noise_apu_period_byte
store_result:
sta audio_noise_apu_period_byte
.)
end_effects:
; Execute opcodes only if not in wait mode
lda audio_noise_wait_cnt
bne end_opcodes_execution
; Execute opcodes until one activates wait mode
execute_current_opcode:
; Mirror opcode address in zero-page, to be usable in indirect addressing
lda audio_noise_current_opcode
sta current_opcode
lda audio_noise_current_opcode_msb
sta current_opcode_msb
; Decode opcode
ldy #0
lda (current_opcode), y
lsr
lsr
lsr
lsr
; Call opcode's routine
; Note - subroutines are ensured to be called with Y=0, and A containing the opcode byte
tax
lda noise_opcode_routines_lsb, x
sta tmp_addr
lda noise_opcode_routines_msb, x
sta tmp_addr_msb
lda (current_opcode), y
jsr call_pointed_subroutine
; Point to next opcode
clc
adc audio_noise_current_opcode
sta audio_noise_current_opcode
lda #0
adc audio_noise_current_opcode_msb
sta audio_noise_current_opcode_msb
; Loop until we are in wait mode
lda audio_noise_wait_cnt
beq execute_current_opcode
end_opcodes_execution:
; Tick wait counter
dec audio_noise_wait_cnt
rts
.)
noise_apply_mirrored_apu:
.(
; Write mirrored APU registers, or silence the channel if silence flag is set
bit audio_noise_apu_period_byte
bvc regular_write
lda #%00110000
sta APU_NOISE_ENVELOPE
jmp end_write_apu
regular_write:
lda audio_noise_apu_envelope_byte
sta APU_NOISE_ENVELOPE
lda audio_noise_apu_period_byte
sta APU_NOISE_PERIOD
lda #%00001000
sta APU_NOISE_LENGTH_CNT
end_write_apu:
rts
.)
pulse_tick:
.(
tmp_addr = tmpfield1
tmp_addr_msb = tmpfield2
; Execute effects if not silenced (because silence is timer=0 while pitch-slide affects timer, thus unsilencing)
lda audio_square1_apu_timer_low_byte, x
bne do_effects
lda audio_square1_apu_timer_high_byte, x
and #%00000111
beq end_effects
do_effects:
; Pitch slide (add pitch slide value to frequency)
lda audio_square1_apu_timer_low_byte, x ; Add low bytes (straightforward)
clc
adc audio_square1_pitch_slide_lsb, x
sta audio_square1_apu_timer_low_byte, x
lda audio_square1_apu_timer_high_byte, x ; Add High bytes (need to byte extend current frequency sign bit)
tay
and #%00000100
bne negative
positive:
tya
and #%00000111
jmp end_byte_extend
negative:
tya
ora #%11111000
end_byte_extend:
adc audio_square1_pitch_slide_msb, x
ora #%11111000 ; TODO long value for "length counter load" (see other similar comments)
sta audio_square1_apu_timer_high_byte, x
end_effects:
; Save X to a reserved memory location
txa
sta channel_number
; Execute opcodes only if not in wait mode
lda audio_square1_wait_cnt, x
bne end_opcodes_execution
; Execute opcodes until one activates wait mode
execute_current_opcode:
; Mirror opcode address in zero-page, to be usable in indirect addressing
lda audio_square1_current_opcode, x
sta current_opcode
lda audio_square1_current_opcode_msb, x
sta current_opcode_msb
; Decode opcode
ldy #0
lda (current_opcode), y
lsr
lsr
lsr
; Call opcode's routine
; Note - subroutines are ensured to be called wit Y=0, A containing the opcode byte, and X=channel_number
tax
lda pulse1_opcode_routines_lsb, x
sta tmp_addr
lda pulse1_opcode_routines_msb, x
sta tmp_addr_msb
ldx channel_number
lda (current_opcode), y
jsr call_pointed_subroutine
ldx channel_number
; Point to next opcode
cmp #0
beq skip_opcode_update ; Condition technically unecessary, but optimizing the worst case (SAMPLE_END returns zero and tends to be called for all channels at the same time)
clc
adc audio_square1_current_opcode, x
sta audio_square1_current_opcode, x
lda #0
adc audio_square1_current_opcode_msb, x
sta audio_square1_current_opcode_msb, x
skip_opcode_update:
; Loop until we are in wait mode
lda audio_square1_wait_cnt, x
beq execute_current_opcode
end_opcodes_execution:
; Tick wait counter
dec audio_square1_wait_cnt, x
; Write mirrored APU registers
txa
asl
asl
tay
lda channel_number
cmp #2 ; triangle
beq triangle
; Pulse channel
; copy mirrored envelope as is (a zero frequency cleanly mute the channel)
; avoid rewriting timer high bits if not modified (it resets phase, producing an audible "pop")
lda audio_square1_apu_envelope_byte, x
sta APU_SQUARE1_ENVELOPE, y
lda audio_square1_apu_timer_low_byte, x
sta APU_SQUARE1_TIMER_LOW, y
lda audio_square1_apu_timer_high_byte, x
cmp audio_square1_apu_timer_high_byte_old, x
beq end_write_apu
sta APU_SQUARE1_LENGTH_CNT, y
sta audio_square1_apu_timer_high_byte_old, x
jmp end_write_apu
triangle:
; Triangle channel
; silence channel on frequency 0 (avoiding a "pop" noise by violent change in frequency)
; simply copy timer, no phase problem when wrriting high bits
lda audio_triangle_apu_timer_low_byte
bne unmute
lda audio_triangle_apu_timer_high_byte
bne unmute
lda #%10000000
jmp write_linear_cnt
unmute:
lda audio_triangle_apu_timer_low_byte
sta APU_TRIANGLE_TIMER_LOW
lda audio_triangle_apu_timer_high_byte
sta APU_TRIANGLE_LENGTH_CNT
lda #%11111111
write_linear_cnt:
sta APU_TRIANGLE_LINEAR_CNT
end_write_apu:
rts
.)
opcode_noise_sample_end:
.(
ldx #3
; Fallthrough
.)
opcode_sample_end:
.(
tmp_addr = tmpfield1
tmp_addr_msb = tmpfield2
sample_addr = tmpfield3
sample_addr_msb = tmpfield4
; Get next sample's address
#if \
(MUSIC_HEADER_PULSE2_TRACK_OFFSET <> (MUSIC_HEADER_PULSE1_TRACK_OFFSET + 2)) || \
(MUSIC_HEADER_TRIANGLE_TRACK_OFFSET <> (MUSIC_HEADER_PULSE2_TRACK_OFFSET + 2)) || \
(MUSIC_HEADER_NOISE_TRACK_OFFSET <> (MUSIC_HEADER_TRIANGLE_TRACK_OFFSET + 2))
#error code below expects channels track offset in a specific order
#endif
txa ; Y = pulse1_track_offset + 2 * X = channel's samples list address' offset in music header
asl
;clc ; useless, asl should not overflow
adc #MUSIC_HEADER_PULSE1_TRACK_OFFSET
tay
lda (audio_current_track_lsb), y ; tmp_addr = channel's samples list address
sta tmp_addr
iny
lda (audio_current_track_lsb), y
sta tmp_addr_msb
lda audio_square1_sample_num, x ; A = (++sample_num) * 2
;clc ; useless, adc should not overflow, no other carry-setting opcode since
adc #1
sta audio_square1_sample_num, x
asl
;clc; useless, still no overflow ; sample_addr = current sample's address
adc tmp_addr
sta sample_addr
lda #0
adc tmp_addr_msb
sta sample_addr_msb
; If next sample is actually MUSIC_END, loop the channel
; Check only msb of MUSIC_END vector ($00 $00) as a sample in zero page is improbable
ldy #1
lda (sample_addr), y
bne no_track_loop
; Set current opcode to first sample's first opcode
lda (tmp_addr), y
sta audio_square1_current_opcode_msb, x
dey ; note, sets Y to zero, equivalent to ldy #0 with oine less byte
lda (tmp_addr), y
sta audio_square1_current_opcode, x
; Reset sample counter
sty audio_square1_sample_num, x
jmp end
no_track_loop:
; Set current opcode to new sample's first opcode
lda (sample_addr), y
sta audio_square1_current_opcode_msb, x
dey ; note, sets Y to zero, equivalent to ldy #0 with oine less byte
lda (sample_addr), y
sta audio_square1_current_opcode, x
end:
lda #0
rts
.)
opcode_chan_params:
.(
; OOOO Oddd DDLC VVVV EPPP NSSS
; ddd - default note duration minus one
;ldy #0 ; useless, ensured by caller
lda (current_opcode), y
and #%00000111
sta audio_square1_default_note_duration, x
inc audio_square1_default_note_duration, x
; DDLC VVVV - direct write to APU (mirrored)
iny
lda (current_opcode), y
sta audio_square1_apu_envelope_byte, x
; EPPP NSSS - direct write to APU
txa
asl
asl
tax
iny
lda (current_opcode), y
sta APU_SQUARE1_SWEEP, x
lda #3
rts
.)
; Generic volume setter
; X envelope byte offset
; Y volume to be set
set_volume:
.(
; Reset volume bits in channel's envelope mirror
lda audio_square1_apu_envelope_byte, x
and #%11110000
sta audio_square1_apu_envelope_byte, x
; Place new volume bits
tya
ora audio_square1_apu_envelope_byte, x
sta audio_square1_apu_envelope_byte, x
lda #1
rts
.)
opcode_chan_volume_low:
.(
; OOOO Ovvv
; Extract volume value
lda (current_opcode), y
and #%00000111
tay
; Set channel's volume
jmp set_volume
;rts ; useless, jump to a routine
.)
opcode_chan_volume_high:
.(
; OOOO Ovvv
; Extract volume value
lda (current_opcode), y
and #%00000111
ora #%00001000
tay
; Set channel's volume
jmp set_volume
;rts ; useless, jump to a routine
.)
opcode_noise_set_volume:
.(
; OOOO vvvv
; Extract volume value
and #%00001111
tay
; Set channel's volume
ldx #audio_noise_apu_envelope_byte-audio_square1_apu_envelope_byte
jmp set_volume
;rts useless, jump to a routine
.)
opcode_set_duty:
.(
; OOOO ODDz
and #%00000110
asl
asl
asl
asl
asl
sta tmpfield1
lda audio_square1_apu_envelope_byte, x
and #%00111111
ora tmpfield1
sta audio_square1_apu_envelope_byte, x
lda #1
rts
.)
opcode_play_timed_freq:
.(
; OOOO OTTT TTTT TTTT DDDD DDDD
; TTT TTTT TTTT - direct write to APU (mirrored)
lda (current_opcode), y
and #%00000111
ora #%11111000 ;TODO this actually hardocode a long value for "length counter load", which should be adequat most times. If we want to play with it, actually use register mirroring, and add opcodes to handle this value
sta audio_square1_apu_timer_high_byte, x
iny
lda (current_opcode), y
sta audio_square1_apu_timer_low_byte, x
; DDDD DDDD
iny
lda (current_opcode), y
sta audio_square1_wait_cnt, x
lda #3
rts
.)
; Extract frequency from note lookup table
; register A - note index
;
; Output
; apu_timer_low_byte - frequency lsb
; apu_timer_high_byte - frequency msb
;
; Overwrites register A, register X, extra_tmpfield1, and extra_tmpfield2
note_table_lookup:
.(
tax
lda audio_notes_table_pal_high, x
ora #%11111000 ;TODO this actually hardcode a long value for "length counter load", which should be adequat most times. If we want to play with it, actually use register mirroring, and add opcodes to handle this value
sta apu_timer_high_byte
lda audio_notes_table_pal_low, x
sta apu_timer_low_byte
rts
.)
opcode_play_note:
.(
; OOOO ODdd zNNN NNNN
default_note_duration = tmpfield1
; Mirror state impacted while X is used in fixed memory location
lda audio_square1_default_note_duration, x
sta default_note_duration
; D dd - set wait counter
lda (current_opcode), y
pha
and #%00000011
tax
pla
and #%00000100
beq right_shift
left_shift:
lda default_note_duration
one_left_shift:
dex
bmi end_wait_compute
asl
jmp one_left_shift
right_shift:
lda default_note_duration
one_right_shift:
dex
bmi end_wait_compute
lsr
jmp one_right_shift
end_wait_compute:
ldx channel_number
sta audio_square1_wait_cnt, x
; NNN NNNN - set note frequency as read in the reference table
iny
lda (current_opcode), y
jsr note_table_lookup
; Copy state mirror to actual state
ldx channel_number
lda default_note_duration
sta audio_square1_default_note_duration, x
lda apu_timer_high_byte
sta audio_square1_apu_timer_high_byte, x
lda apu_timer_low_byte
sta audio_square1_apu_timer_low_byte, x
lda #2
rts
.)
opcode_play_timed_note:
.(
; OOOO Oddd dNNN NNNN
; NNN NNNN - set note frequency as read in the reference table
iny
lda (current_opcode), y
and #%01111111
jsr note_table_lookup
; ddd d - set wait counter
lda (current_opcode), y
rol
dey
lda (current_opcode), y
rol
and #%00001111
clc
adc #1
ldx channel_number
sta audio_square1_wait_cnt, x
; Copy state mirror to actual state
lda apu_timer_high_byte
sta audio_square1_apu_timer_high_byte, x
lda apu_timer_low_byte
sta audio_square1_apu_timer_low_byte, x
lda #2
rts
.)
opcode_wait:
.(
; OOOO Oddd
lda (current_opcode), y
and #%00000111
sta audio_square1_wait_cnt, x
inc audio_square1_wait_cnt, x
lda #1
rts
.)
opcode_noise_wait:
.(
; OOOO dddd
and #%00001111
sta audio_noise_wait_cnt
inc audio_noise_wait_cnt
lda #1
rts
.)
opcode_noise_long_wait:
.(
; OOOO .... DDDD DDDD
ldx #audio_noise_wait_cnt-audio_square1_wait_cnt
; Fallthrough
.)
opcode_long_wait:
.(
; OOOO O... DDDD DDDD
iny
lda (current_opcode), y
sta audio_square1_wait_cnt, x
lda #2
rts
.)
opcode_halt:
.(
; OOOO Oddd
; ddd - set wait counter
lda (current_opcode), y
and #%00000111
sta audio_square1_wait_cnt, x
inc audio_square1_wait_cnt, x
; Silence the channel
lda #0
sta audio_square1_apu_timer_low_byte, x
sta audio_square1_apu_timer_high_byte, x
lda #1
rts
.)
opcode_noise_halt:
.(
; OOOO dddd
; dddd - set wait counter
lda (current_opcode), y
and #%00001111
sta audio_noise_wait_cnt
inc audio_noise_wait_cnt
; Silence the channel
lda audio_noise_apu_period_byte
ora #%01000000
sta audio_noise_apu_period_byte
lda #1
rts
.)
opcode_pitch_slide:
.(
; OOOO Oszz TTTT TTTT
; s - sign, set frequency high to byte extend of it
lda (current_opcode), y
and #%00000100
beq set_value
lda #$ff
set_value:
sta audio_square1_pitch_slide_msb, x
; TTTT TTTT
iny
lda (current_opcode), y
sta audio_square1_pitch_slide_lsb, x
lda #2
rts
.)
opcode_pulse_meta_uslide:
.(
opcode_byte = tmpfield1
sta opcode_byte
lda #$ff
jmp opcode_pulse_meta_common
.)
opcode_pulse_meta_dslide:
.(
opcode_byte = tmpfield1
sta opcode_byte
lda #0
; Fallthrough
.)
opcode_pulse_meta_common:
.(
; OOOO Ovsd [zNNN NNNN] DDDD DDDD [ddzz vvvv] [SSSS SSSS]
opcode_byte = tmpfield1
slide_msb = tmpfield2
envelope_mask = tmpfield3
has_note = tmpfield4
; Store slide msb in temporary location
sta slide_msb
; Note
.(
; [zNNN NNNN] DDDD DDDD
; zNNN NNNN
lda opcode_byte
and #%11111000
cmp #(AUDIO_OP_META_WAIT_SLIDE_UP << 3)
beq end_note
cmp #(AUDIO_OP_META_WAIT_SLIDE_DOWN << 3)
beq end_note
iny
lda (current_opcode), y
jsr note_table_lookup
ldx channel_number
lda apu_timer_high_byte
sta audio_square1_apu_timer_high_byte, x
lda apu_timer_low_byte
sta audio_square1_apu_timer_low_byte, x
end_note:
; DDDD DDDD
iny
lda (current_opcode), y
sta audio_square1_wait_cnt, x
.)
; Volume and duty
.(
lda opcode_byte
and #%00000101
beq end_volume_duty
; ddzz vvvv
iny
; Compute mask for old value (with bits set for bits we want to keep)
lda #%00000100 ; volume present flag
bit opcode_byte
beq keep_volume
lda #%00110000
jmp set_volume_mask
keep_volume:
lda #%00111111
set_volume_mask:
sta envelope_mask
lda #%00000001 ; duty present flag
bit opcode_byte
bne replace_duty
lda #%11000000
ora envelope_mask
sta envelope_mask
; no jump, replace_duty is empty
replace_duty:
; Nothing to do, existing mask is already correct
; Apply mask to old value (bits to be changed are set to zero)
lda audio_square1_apu_envelope_byte, x
and envelope_mask
; Set bits from new value
ora (current_opcode), y
sta audio_square1_apu_envelope_byte, x
end_volume_duty:
.)
; Pitch slide
.(
lda opcode_byte
and #%00000010
beq end_pitch_slide
; SSSS SSSS
lda slide_msb
sta audio_square1_pitch_slide_msb, x
iny
lda (current_opcode), y
sta audio_square1_pitch_slide_lsb, x
end_pitch_slide:
.)
; Return pre-computed opcode size
iny
tya
rts
.)
opcode_noise_set_periodic:
.(
; OOOO zzzL
and #%00000001
beq unset
lda audio_noise_apu_period_byte
ora #%10000000
jmp end
unset:
lda audio_noise_apu_period_byte
and #%01111111
end:
sta audio_noise_apu_period_byte
lda #1
rts
.)
opcode_noise_play_timed_freq:
.(
; OOOO NNNN dddd dddd
; NNNN - update APU mirror (and reset silence flag)
and #%00001111
sta tmpfield1
lda audio_noise_apu_period_byte
and #%10110000
ora tmpfield1
sta audio_noise_apu_period_byte
; dddd dddd
iny
lda (current_opcode), y
sta audio_noise_wait_cnt
lda #2
rts
.)
opcode_noise_pitch_slide_up:
.(
; OOOO TTTT
and #%00001111
eor #%11111111
clc
adc #1
sta audio_noise_pitch_slide
lda #1
rts
.)
opcode_noise_pitch_slide_down:
.(
; OOOO TTTT
and #%00001111
sta audio_noise_pitch_slide
lda #1
rts
.)
opcode_noise_end_sfx:
.(
; Don't tick this effect anymore
jsr audio_cut_sfx
; Silence the channel
lda audio_noise_apu_period_byte
ora #%01000000
sta audio_noise_apu_period_byte
; Set wait cnt to non-zero to exit the opcode loop
lda #1
sta audio_noise_wait_cnt
; Return opcode size
;lda #1 ; useless, done above
rts
.)
pulse1_opcode_routines_lsb:
.byt <opcode_sample_end, <opcode_chan_params, <opcode_chan_volume_low, <opcode_chan_volume_high, <opcode_play_timed_freq
.byt <opcode_play_note, <opcode_wait, <opcode_long_wait, <opcode_halt, <opcode_pitch_slide
.byt <opcode_set_duty, <opcode_play_timed_note, <opcode_pulse_meta_uslide, <opcode_pulse_meta_dslide, <opcode_pulse_meta_uslide
.byt <opcode_pulse_meta_dslide
pulse1_opcode_routines_msb:
.byt >opcode_sample_end, >opcode_chan_params, >opcode_chan_volume_low, >opcode_chan_volume_high, >opcode_play_timed_freq
.byt >opcode_play_note, >opcode_wait, >opcode_long_wait, >opcode_halt, >opcode_pitch_slide
.byt >opcode_set_duty, >opcode_play_timed_note, >opcode_pulse_meta_uslide, >opcode_pulse_meta_dslide, >opcode_pulse_meta_uslide
.byt >opcode_pulse_meta_dslide
noise_opcode_routines_lsb:
.byt <opcode_noise_sample_end, <opcode_noise_set_volume, <opcode_noise_set_periodic, <opcode_noise_play_timed_freq, <opcode_noise_wait
.byt <opcode_noise_long_wait, <opcode_noise_halt, <opcode_noise_pitch_slide_up, <opcode_noise_pitch_slide_down, <opcode_noise_end_sfx
noise_opcode_routines_msb:
.byt >opcode_noise_sample_end, >opcode_noise_set_volume, >opcode_noise_set_periodic, >opcode_noise_play_timed_freq, >opcode_noise_wait
.byt >opcode_noise_long_wait, >opcode_noise_halt, >opcode_noise_pitch_slide_up, >opcode_noise_pitch_slide_down, >opcode_noise_end_sfx
.)
| 21.624006 | 220 | 0.743778 |
2aaa58fe46195fc136b3debb79c51b10b63df0b5 | 584 | asm | Assembly | docs/antora/modules/ROOT/pages/nand2tetris/projects/08/ProgramFlow/BasicLoop/BasicLoop.asm | peacetrue/learn-nand2tetris | c0560f2a89c2ec7379f4cdc219013c04370adee3 | [
"Apache-2.0"
] | null | null | null | docs/antora/modules/ROOT/pages/nand2tetris/projects/08/ProgramFlow/BasicLoop/BasicLoop.asm | peacetrue/learn-nand2tetris | c0560f2a89c2ec7379f4cdc219013c04370adee3 | [
"Apache-2.0"
] | null | null | null | docs/antora/modules/ROOT/pages/nand2tetris/projects/08/ProgramFlow/BasicLoop/BasicLoop.asm | peacetrue/learn-nand2tetris | c0560f2a89c2ec7379f4cdc219013c04370adee3 | [
"Apache-2.0"
] | null | null | null | @0
D=A
@0
A=M
M=D
@0
M=M+1
@0
M=M-1
@1
D=M
@0
D=D+A
@13
M=D
@0
A=M
D=M
@13
A=M
M=D
(LOOP_START)
@2
D=M
@0
A=D+A
D=M
@0
A=M
M=D
@0
M=M+1
@1
D=M
@0
A=D+A
D=M
@0
A=M
M=D
@0
M=M+1
@0
M=M-1
A=M
D=M
@0
M=M-1
A=M
D=D+M
M=D
@0
M=M+1
@0
M=M-1
@1
D=M
@0
D=D+A
@13
M=D
@0
A=M
D=M
@13
A=M
M=D
@2
D=M
@0
A=D+A
D=M
@0
A=M
M=D
@0
M=M+1
@1
D=A
@0
A=M
M=D
@0
M=M+1
@0
M=M-1
A=M
D=M
@0
M=M-1
A=M
D=M-D
M=D
@0
M=M+1
@0
M=M-1
@2
D=M
@0
D=D+A
@13
M=D
@0
A=M
D=M
@13
A=M
M=D
@2
D=M
@0
A=D+A
D=M
@0
A=M
M=D
@0
M=M+1
@0
M=M-1
A=M
D=M
@LOOP_START
D;JGT
@1
D=M
@0
A=D+A
D=M
@0
A=M
M=D
@0
M=M+1
(END)
@END
0;JMP | 4.231884 | 12 | 0.479452 |
42d22cf96f1484e085f786311b1b59ad8b725243 | 8,610 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1506.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_1506.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_1506.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x15c69, %rsi
lea addresses_normal_ht+0x1869, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
add %r13, %r13
mov $94, %rcx
rep movsb
nop
nop
nop
and $55104, %r14
lea addresses_normal_ht+0x85aa, %rsi
lea addresses_normal_ht+0x16969, %rdi
nop
nop
nop
nop
nop
sub %rdx, %rdx
mov $7, %rcx
rep movsb
nop
nop
nop
nop
nop
cmp %rdi, %rdi
lea addresses_normal_ht+0x51e9, %rcx
nop
nop
nop
sub $41759, %rbp
movups (%rcx), %xmm4
vpextrq $0, %xmm4, %r14
nop
nop
nop
and $30692, %r13
lea addresses_WC_ht+0x19a85, %r13
nop
nop
sub %rdi, %rdi
movb $0x61, (%r13)
nop
and %r14, %r14
lea addresses_UC_ht+0x6c39, %r13
nop
nop
nop
nop
xor $8218, %rsi
movb (%r13), %cl
cmp $2995, %rbp
lea addresses_WC_ht+0x2969, %rsi
lea addresses_WC_ht+0x19689, %rdi
nop
nop
nop
and %r15, %r15
mov $63, %rcx
rep movsl
nop
nop
and %rcx, %rcx
lea addresses_WC_ht+0x1ff1, %r14
clflush (%r14)
nop
nop
nop
nop
dec %rdi
mov $0x6162636465666768, %rdx
movq %rdx, (%r14)
nop
nop
nop
and %rdi, %rdi
lea addresses_A_ht+0x1bdf1, %r14
sub %rdx, %rdx
mov $0x6162636465666768, %rsi
movq %rsi, %xmm5
vmovups %ymm5, (%r14)
cmp $43262, %rbp
lea addresses_D_ht+0x3569, %rsi
lea addresses_A_ht+0x1969, %rdi
nop
nop
nop
xor %rbp, %rbp
mov $104, %rcx
rep movsq
nop
dec %rsi
lea addresses_WT_ht+0xcfd9, %rbp
nop
nop
nop
add $63465, %rcx
and $0xffffffffffffffc0, %rbp
vmovaps (%rbp), %ymm4
vextracti128 $1, %ymm4, %xmm4
vpextrq $1, %xmm4, %r13
nop
nop
nop
nop
cmp %r14, %r14
lea addresses_A_ht+0xa69, %rsi
nop
add $19031, %rdx
mov (%rsi), %edi
nop
nop
nop
dec %rsi
lea addresses_UC_ht+0x6841, %rsi
lea addresses_UC_ht+0x138a9, %rdi
clflush (%rdi)
nop
inc %r14
mov $60, %rcx
rep movsq
nop
nop
nop
nop
xor %rbp, %rbp
lea addresses_WT_ht+0x1561, %rbp
clflush (%rbp)
dec %rdx
movl $0x61626364, (%rbp)
nop
nop
cmp $64740, %rsi
lea addresses_A_ht+0x152fd, %rsi
lea addresses_WC_ht+0xf211, %rdi
nop
nop
nop
nop
nop
and %r14, %r14
mov $48, %rcx
rep movsq
nop
nop
nop
nop
nop
xor $11314, %rbp
lea addresses_normal_ht+0x18959, %r15
cmp $46486, %rcx
mov $0x6162636465666768, %r13
movq %r13, %xmm7
and $0xffffffffffffffc0, %r15
movntdq %xmm7, (%r15)
nop
nop
add $46345, %r13
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r14
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r9
push %rax
push %rbp
push %rdx
push %rsi
// Store
lea addresses_WT+0xdda9, %rsi
nop
nop
nop
sub %rbp, %rbp
mov $0x5152535455565758, %rax
movq %rax, (%rsi)
nop
xor %r9, %r9
// Store
lea addresses_WC+0x1e969, %r11
clflush (%r11)
nop
xor %rdx, %rdx
mov $0x5152535455565758, %r9
movq %r9, %xmm3
movups %xmm3, (%r11)
// Exception!!!
nop
nop
nop
nop
nop
mov (0), %rax
xor %r11, %r11
// Faulty Load
lea addresses_PSE+0x1e969, %r11
nop
nop
nop
nop
xor %r14, %r14
mov (%r11), %rbp
lea oracles, %rax
and $0xff, %rbp
shlq $12, %rbp
mov (%rax,%rbp,1), %rbp
pop %rsi
pop %rdx
pop %rbp
pop %rax
pop %r9
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 10}}
[Faulty Load]
{'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 8, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 2}}
{'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 3}}
{'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}}
{'src': {'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 32, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4, 'NT': True, 'same': False, 'congruent': 3}}
{'src': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': True, 'same': False, 'congruent': 3}}
{'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
*/
| 31.771218 | 2,999 | 0.659233 |
36178c84567afe41da2b7094a63aff1f2909ba8b | 190 | asm | Assembly | Sys.asm | GZYangKui/assembly | 0af4d180f48094e9e6e568b4d09717a7e70579ae | [
"Apache-2.0"
] | null | null | null | Sys.asm | GZYangKui/assembly | 0af4d180f48094e9e6e568b4d09717a7e70579ae | [
"Apache-2.0"
] | null | null | null | Sys.asm | GZYangKui/assembly | 0af4d180f48094e9e6e568b4d09717a7e70579ae | [
"Apache-2.0"
] | null | null | null | section .data
SYS_exit equ 60
exit_success equ 0
section .text
;退出当前程序
global exit_app
exit_app:
mov rax,SYS_exit
mov rdi,exit_success
syscall | 15.833333 | 40 | 0.621053 |
ae8ff859b12a630d5818a474ffa5b4ca9dd83194 | 1,030 | asm | Assembly | src/shaders/post_processing/gen5_6/Core_Kernels/DI_Hist_Save.asm | tizenorg/platform.upstream.libva-intel-driver | 9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90 | [
"MIT"
] | null | null | null | src/shaders/post_processing/gen5_6/Core_Kernels/DI_Hist_Save.asm | tizenorg/platform.upstream.libva-intel-driver | 9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90 | [
"MIT"
] | null | null | null | src/shaders/post_processing/gen5_6/Core_Kernels/DI_Hist_Save.asm | tizenorg/platform.upstream.libva-intel-driver | 9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90 | [
"MIT"
] | null | null | null | /*
* All Video Processing kernels
* Copyright © <2010>, Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Eclipse Public License (EPL), version 1.0. The full text of the EPL is at
* http://www.opensource.org/licenses/eclipse-1.0.php.
*
*/
// Write denoise history to memory
shr (2) rMSGSRC.0<1>:ud wORIX<2;2,1>:w 2:w NODDCLR // X,Y origin / 4
add (1) rMSGSRC.0<1>:ud rMSGSRC.0<0;1,0>:ud uwSPITCH_DIV2<0;1,0>:uw NODDCLR_NODDCHK // Add pitch to X origin
mov (1) rMSGSRC.2<1>:ud nDPW_BLOCK_SIZE_HIST:ud NODDCHK // block width and height (4x2)
mov (8) mMSGHDR_HIST<1>:ud rMSGSRC.0<8;8,1>:ud // message header
mov (1) mudMSGHDR_HIST(1)<1> udRESP(nDI_HIST_OFFSET,0)<0;1,0> // Move denoise history to MRF
send (8) dNULLREG mMSGHDR_HIST udDUMMY_NULL nDATAPORT_WRITE nDPMW_MSGDSC+nDPMW_MSG_LEN_HIST+nBI_STMM_HISTORY_OUTPUT:ud
| 41.2 | 132 | 0.615534 |
ca7c2edfb25cbecbf1e96a9a8627f69dc280dc81 | 644 | asm | Assembly | oeis/240/A240846.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/240/A240846.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/240/A240846.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A240846: a(0)=0, a(1)=1, a(n) = a(n-1)*12 + 13.
; 0,1,25,313,3769,45241,542905,6514873,78178489,938141881,11257702585,135092431033,1621109172409,19453310068921,233439720827065,2801276649924793,33615319799097529,403383837589170361,4840606051070044345,58087272612840532153,697047271354086385849,8364567256249036630201,100374807074988439562425,1204497684899861274749113,14453972218798335296989369,173447666625580023563872441,2081371999506960282766469305,24976463994083523393197631673,299717567929002280718371580089,3596610815148027368620458961081
add $0,1
lpb $0
sub $0,1
cmp $1,$2
add $1,$2
mul $2,12
add $2,2
lpe
sub $1,1
mov $0,$1
| 46 | 495 | 0.829193 |
805f6bdcc9420170ea93c4735f348205c8338233 | 402 | nasm | Assembly | Exams/4-Finals/Assembler/src/test/resources/testComp.nasm | FelixLuciano/Elements-of-Computing-Systems | bf36e4f4bbaa75aebefd1b864514a146b371495d | [
"MIT"
] | 1 | 2018-04-20T10:41:30.000Z | 2018-04-20T10:41:30.000Z | Exams/4-Finals/Assembler/src/test/resources/testComp.nasm | FelixLuciano/Elements-of-Computing-Systems | bf36e4f4bbaa75aebefd1b864514a146b371495d | [
"MIT"
] | 76 | 2018-03-09T12:22:41.000Z | 2018-05-18T11:47:17.000Z | Projetos/H-Assembler/Assembler/bin/src/test/resources/testComp.nasm | LiuSeeker/Z01-Coldzera | 097f0af689c0511598163bcf4c89afe987292f24 | [
"Unlicense"
] | 1 | 2022-02-20T21:45:28.000Z | 2022-02-20T21:45:28.000Z | ; Arquivo: testComp.nasm
; Curso: Elementos de Sistemas
; Criado por: Luciano Soares
; Data: 16/04/2017
movw %A,%D
addw %A,%D,%D
movw %D,%A
movw %D,(%A)
incw %D
nop
; Teste comentario
movw (%A),%D
addw (%A),%D,%D ; comentario
subw %D,(%A),%A
rsubw %D,(%A),%A
decw %A
decw %D
notw %A
notw %D
negw %A
negw %D
; Teste comentario 2
; comentario
andw (%A),%D,%D
andw %D,%A,%A
orw (%A),%D,%D
orw %D,%A,%A | 13.4 | 30 | 0.609453 |
7ef0b7fbc156e786cba16ff06be6aa38b5c1a241 | 354 | asm | Assembly | books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/9_1.asm | gxw1/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 640 | 2019-03-30T11:32:43.000Z | 2022-03-31T14:05:18.000Z | books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/9_1.asm | yyzVegst/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 6 | 2019-07-22T01:57:24.000Z | 2022-01-20T15:03:16.000Z | books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/9_1.asm | yyzVegst/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 212 | 2019-04-10T02:31:50.000Z | 2022-03-30T02:32:47.000Z | DATA SEGMENT
BUFFER DB 80,?,80 DUP(?)
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START: MOV AX,DATA
MOV DS,AX
MOV DX,OFFSET BUFFER
MOV AH,0AH
INT 21H
MOV AH,4CH
INT 21H
CODE ENDS
END START
| 23.6 | 39 | 0.409605 |
ae7820cbc9b1f33ec51112f2058e8be960ca7c21 | 3,610 | asm | Assembly | resources/asm/na/actor_accessor_sir0.asm | SkyTemple/ppmdu | 9731ea103affd66f2e8c1202c9acb2ebfd4c9924 | [
"CC0-1.0"
] | 37 | 2015-10-30T21:56:26.000Z | 2021-11-30T15:33:26.000Z | resources/asm/na/actor_accessor_sir0.asm | SkyTemple/ppmdu | 9731ea103affd66f2e8c1202c9acb2ebfd4c9924 | [
"CC0-1.0"
] | 27 | 2015-01-06T05:45:55.000Z | 2020-01-29T21:40:22.000Z | resources/asm/na/actor_accessor_sir0.asm | SkyTemple/ppmdu | 9731ea103affd66f2e8c1202c9acb2ebfd4c9924 | [
"CC0-1.0"
] | 8 | 2016-02-07T23:31:03.000Z | 2020-07-12T08:51:41.000Z | ; For use with ARMIPS v0.7d
; By: psycommando@gmail.com
; 2016/09/17
; For Explorers of Sky North American ONLY!
; ------------------------------------------------------------------------------
; Copyright © 2016 Guillaume Lavoie-Drapeau <psycommando@gmail.com>
; This work is free. You can redistribute it and/or modify it under the
; terms of the Do What The Fuck You Want To Public License, Version 2,
; as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
; ------------------------------------------------------------------------------
; This loads the actor_list.bin file completely in memory once.
;
.nds
.arm
;Loads the Actor list file!
ActorListLoader:
push r0,r1,r2,r14
;First reserve 8 bytes on the stack
;sub r13,r13,8h
;Prepare our parameters and call the file loading function
;add r0,r13,0h ;Return struct for the loaded file data
ldr r0,=ActorRetSzAndFBuff ;
ldr r1,=ActorListFilePath ;Load our custom file path ptr
ldr r2,=0h ;Not sure what this does. Its usually 1, 6,or sometimes 0x30F Maybe byte align??
bl LoadFileFromRom ;This will return the loaded file size in bytes!!
;Check if filesize non-zero
; cmp r0, 0h
; bne @@Continue ;Branch ahead if there's no problem
;mov r0,1h
;ldr r1,=LevellistError
;bl DebugPrint
@@Continue:
;Copy the 2 dwords returned on the stack earlier to our dedicated variables
ldr r0,=ActorListFileBufferPtr
;ldr r1,[r13]
ldr r1,=ActorRetSzAndFBuff
ldr r1,[r1]
str r1,[r0],4h
;ldr r1,[r13,4h]
ldr r1,=ActorRetSzAndFBuff
ldr r1,[r1,4h]
str r1,[r0],4h
;Prepare the SIR0
ldr r0,=ActorListTablePtr ;This is where the pointer to the data from the SIR0 will be placed!
;ldr r1,[r13] ;This is the pointer to the filebuffer we just put on the stack
ldr r1,=ActorRetSzAndFBuff
ldr r1,[r1]
bl HandleSIR0 ;This converts the offset to be memory relative, when needed
;Finally, dealloc the 8 bytes on the stack
;add r13,r13,8h
pop r0,r1,r2,r15
;Pool constants here
.pool
;END ActorListLoader
;Run a check to see if the pointer to the buffer is null.
ShouldLoadActorList:
push r1,r2,r3,r14
ldr r0,=ActorListFileBufferPtr
ldr r1,=ActorListTablePtr
ldr r0,[r0]
ldr r1,[r1]
cmp r0,0h
moveq r0,1h
popeq r1,r2,r3,r15
;cmpne r1,0h
;moveq r0,1h
;popeq r1-r3,r15
@@ReturnFalse:
mov r0,0h
pop r1,r2,r3,r15
;Pool constants here
.pool
;END ShouldLoadLevelList
;TryLoadActorList: Load the actor list if needed!
TryLoadActorList:
push r0,r14
bl ShouldLoadActorList
cmp r0, 0h
beq @@end ;If the file is already loaded, just jump out
bl ActorListLoader
@@end:
pop r0,r15
;END
;For directly getting the Actor list address with no fuss involved
GetActorListAddress:
ldr r0,=ActorListTablePtr
ldr r0,[r0]
ldr r0,[r0] ;; There's a pointer in the subheader!
bx r14
;END
;For directly getting the Actor list address with no fuss involved
GetNbActors:
ldr r0,=ActorListTablePtr
ldr r0,[r0]
ldr r0,[r0,4] ;; Nb actors is in subheader
bx r14
;END
ActorListFileBufferPtr:
dcd 0
dcd 0
ActorListTablePtr:
dcd 0
ActorRetSzAndFBuff: ; return value for the file loading function on the heap since we messed up the stack otherwise
dcd 0
dcd 0
.align 4 ;align the string on 4bytes
| 30.336134 | 115 | 0.625485 |
446efbba3a1aaeeb5ca49afef639230c5467b1ac | 894 | asm | Assembly | src/harvesters_autoharvest.asm | mvdhout1992/ts-patches | a426970abeb6993eea6703d1a756fd74489ffed2 | [
"MIT"
] | 33 | 2016-07-30T14:17:28.000Z | 2021-12-19T15:45:19.000Z | src/harvesters_autoharvest.asm | A-Productions/ts-patches | 326db731f7226d9e803feab475777c730688634e | [
"MIT"
] | 73 | 2018-08-17T00:25:19.000Z | 2021-05-10T08:31:15.000Z | src/harvesters_autoharvest.asm | A-Productions/ts-patches | 326db731f7226d9e803feab475777c730688634e | [
"MIT"
] | 18 | 2017-05-16T11:28:06.000Z | 2022-03-20T20:41:03.000Z | ; Harvesters and Weeders Automatically Start to Harvest When Built
; After leaving the factory, Harvesters and Weeders will now start to harvest
; instead of waiting there until the player commanded them to do so.
;
; Patch based on information by CCHyper
; http://www.ppmforums.com/viewtopic.php?p=552284#552284
;
; Author: AlexB
; Date: 2016-11-22
%include "macros/patch.inc"
%include "macros/hack.inc"
@LJMP 0x006517BE, _UnitClass_UpdatePosition_Harvester
section .text
_UnitClass_UpdatePosition_Harvester:
mov ecx, [ebp+360h]; UnitClass::Type
mov ax, [ecx+48Eh]; UnitClass::Harvester and UnitClass::Weeder
test ax, ax
jz .Return
mov eax, [ebp]; UnitClass::vtbl
push 9; Mission::Harvest
mov ecx, ebp
call [eax+158h]; UnitClass::QueueMission
jmp 0x0065194E
.Return:
push 0
push 0x006F2EE8; BuildingClassTypeDescriptor
jmp 0x006517C5
| 24.162162 | 77 | 0.736018 |
c7c17da56094f3db6ab0d652b8364056de1dba3e | 875 | asm | Assembly | cards/bn5/ItemCards/136-E016 Raika's Mission.asm | RockmanEXEZone/MMBN-Mod-Card-Kit | d591ddca5566dbb323dc19c11e69410fa4073d1b | [
"Unlicense"
] | 10 | 2017-12-05T14:25:38.000Z | 2022-02-21T04:28:00.000Z | cards/bn5/ItemCards/136-E016 Raika's Mission.asm | RockmanEXEZone/MMBN-Mod-Card-Kit | d591ddca5566dbb323dc19c11e69410fa4073d1b | [
"Unlicense"
] | null | null | null | cards/bn5/ItemCards/136-E016 Raika's Mission.asm | RockmanEXEZone/MMBN-Mod-Card-Kit | d591ddca5566dbb323dc19c11e69410fa4073d1b | [
"Unlicense"
] | null | null | null | .include "defaults_item.asm"
table_file_jp equ "exe5-utf8.tbl"
table_file_en equ "bn5-utf8.tbl"
game_code_len equ 3
game_code equ 0x4252424A // BRBJ
game_code_2 equ 0x42524245 // BRBE
game_code_3 equ 0x42524250 // BRBP
card_type equ 0
card_id equ 16
card_no equ "016"
card_sub equ "Item Card 016"
card_sub_x equ 62
card_desc_len equ 1
card_desc_1 equ "Raika's Mission"
card_desc_2 equ ""
card_desc_3 equ ""
card_name_jp_full equ "ライカのミッション"
card_name_jp_game equ "ライカのミッション"
card_name_en_full equ "Raika's Mission"
card_name_en_game equ "Raika's Mission"
card_game_desc_jp_len equ 3
card_game_desc_jp_1 equ "ライカのミッション!"
card_game_desc_jp_2 equ "サーチマンのナビチップ"
card_game_desc_jp_3 equ "3しゅるいを手に入れた!"
card_game_desc_en_len equ 3
card_game_desc_en_1 equ "Raika's mission!"
card_game_desc_en_2 equ "Got 3 types of"
card_game_desc_en_3 equ "SearchMan NaviChips!" | 29.166667 | 46 | 0.801143 |
07e985f94f06e4349fa84ec4db36372df789db91 | 12,643 | asm | Assembly | src/vm/amd64/JitHelpers_FastWriteBarriers.asm | elinor-fung/coreclr | c1801e85024add717f518feb6a9caed60d54500f | [
"MIT"
] | 159 | 2020-06-17T01:01:55.000Z | 2022-03-28T10:33:37.000Z | src/vm/amd64/JitHelpers_FastWriteBarriers.asm | elinor-fung/coreclr | c1801e85024add717f518feb6a9caed60d54500f | [
"MIT"
] | 19 | 2020-06-27T01:16:35.000Z | 2022-02-06T20:33:24.000Z | src/vm/amd64/JitHelpers_FastWriteBarriers.asm | elinor-fung/coreclr | c1801e85024add717f518feb6a9caed60d54500f | [
"MIT"
] | 19 | 2020-05-21T08:18:20.000Z | 2021-06-29T01:13:13.000Z | ; Licensed to the .NET Foundation under one or more agreements.
; The .NET Foundation licenses this file to you under the MIT license.
; See the LICENSE file in the project root for more information.
; ==++==
;
;
; ==--==
; ***********************************************************************
; File: JitHelpers_FastWriteBarriers.asm, see jithelp.asm for history
;
; Notes: these are the fast write barriers which are copied in to the
; JIT_WriteBarrier buffer (found in JitHelpers_Fast.asm).
; This code should never be executed at runtime and should end
; up effectively being treated as data.
; ***********************************************************************
include AsmMacros.inc
include asmconstants.inc
; Two super fast helpers that together do the work of JIT_WriteBarrier. These
; use inlined ephemeral region bounds and an inlined pointer to the card table.
;
; Until the GC does some major reshuffling, the ephemeral region will always be
; at the top of the heap, so given that we know the reference is inside the
; heap, we don't have to check against the upper bound of the ephemeral region
; (PreGrow version). Once the GC moves the ephemeral region, this will no longer
; be valid, so we use the PostGrow version to check both the upper and lower
; bounds. The inlined bounds and card table pointers have to be patched
; whenever they change.
;
; At anyone time, the memory pointed to by JIT_WriteBarrier will contain one
; of these functions. See StompWriteBarrierResize and StompWriteBarrierEphemeral
; in VM\AMD64\JITInterfaceAMD64.cpp and InitJITHelpers1 in VM\JITInterfaceGen.cpp
; for more info.
;
; READ THIS!!!!!!
; it is imperative that the addresses of of the values that we overwrite
; (card table, ephemeral region ranges, etc) are naturally aligned since
; there are codepaths that will overwrite these values while the EE is running.
;
LEAF_ENTRY JIT_WriteBarrier_PreGrow64, _TEXT
align 8
; Do the move into the GC . It is correct to take an AV here, the EH code
; figures out that this came from a WriteBarrier and correctly maps it back
; to the managed method which called the WriteBarrier (see setup in
; InitializeExceptionHandling, vm\exceptionhandling.cpp).
mov [rcx], rdx
NOP_3_BYTE ; padding for alignment of constant
; Can't compare a 64 bit immediate, so we have to move it into a
; register. Value of this immediate will be patched at runtime.
PATCH_LABEL JIT_WriteBarrier_PreGrow64_Patch_Label_Lower
mov rax, 0F0F0F0F0F0F0F0F0h
; Check the lower ephemeral region bound.
cmp rdx, rax
jb Exit
nop ; padding for alignment of constant
PATCH_LABEL JIT_WriteBarrier_PreGrow64_Patch_Label_CardTable
mov rax, 0F0F0F0F0F0F0F0F0h
; Touch the card table entry, if not already dirty.
shr rcx, 0Bh
cmp byte ptr [rcx + rax], 0FFh
jne UpdateCardTable
REPRET
UpdateCardTable:
mov byte ptr [rcx + rax], 0FFh
ret
align 16
Exit:
REPRET
LEAF_END_MARKED JIT_WriteBarrier_PreGrow64, _TEXT
; See comments for JIT_WriteBarrier_PreGrow (above).
LEAF_ENTRY JIT_WriteBarrier_PostGrow64, _TEXT
align 8
; Do the move into the GC . It is correct to take an AV here, the EH code
; figures out that this came from a WriteBarrier and correctly maps it back
; to the managed method which called the WriteBarrier (see setup in
; InitializeExceptionHandling, vm\exceptionhandling.cpp).
mov [rcx], rdx
NOP_3_BYTE ; padding for alignment of constant
; Can't compare a 64 bit immediate, so we have to move them into a
; register. Values of these immediates will be patched at runtime.
; By using two registers we can pipeline better. Should we decide to use
; a special non-volatile calling convention, this should be changed to
; just one.
PATCH_LABEL JIT_WriteBarrier_PostGrow64_Patch_Label_Lower
mov rax, 0F0F0F0F0F0F0F0F0h
; Check the lower and upper ephemeral region bounds
cmp rdx, rax
jb Exit
nop ; padding for alignment of constant
PATCH_LABEL JIT_WriteBarrier_PostGrow64_Patch_Label_Upper
mov r8, 0F0F0F0F0F0F0F0F0h
cmp rdx, r8
jae Exit
nop ; padding for alignment of constant
PATCH_LABEL JIT_WriteBarrier_PostGrow64_Patch_Label_CardTable
mov rax, 0F0F0F0F0F0F0F0F0h
; Touch the card table entry, if not already dirty.
shr rcx, 0Bh
cmp byte ptr [rcx + rax], 0FFh
jne UpdateCardTable
REPRET
UpdateCardTable:
mov byte ptr [rcx + rax], 0FFh
ret
align 16
Exit:
REPRET
LEAF_END_MARKED JIT_WriteBarrier_PostGrow64, _TEXT
ifdef FEATURE_SVR_GC
LEAF_ENTRY JIT_WriteBarrier_SVR64, _TEXT
align 8
;
; SVR GC has multiple heaps, so it cannot provide one single
; ephemeral region to bounds check against, so we just skip the
; bounds checking all together and do our card table update
; unconditionally.
;
; Do the move into the GC . It is correct to take an AV here, the EH code
; figures out that this came from a WriteBarrier and correctly maps it back
; to the managed method which called the WriteBarrier (see setup in
; InitializeExceptionHandling, vm\exceptionhandling.cpp).
mov [rcx], rdx
NOP_3_BYTE ; padding for alignment of constant
PATCH_LABEL JIT_WriteBarrier_SVR64_PatchLabel_CardTable
mov rax, 0F0F0F0F0F0F0F0F0h
shr rcx, 0Bh
cmp byte ptr [rcx + rax], 0FFh
jne UpdateCardTable
REPRET
UpdateCardTable:
mov byte ptr [rcx + rax], 0FFh
ret
LEAF_END_MARKED JIT_WriteBarrier_SVR64, _TEXT
endif
ifdef FEATURE_USE_SOFTWARE_WRITE_WATCH_FOR_GC_HEAP
LEAF_ENTRY JIT_WriteBarrier_WriteWatch_PreGrow64, _TEXT
align 8
; Regarding patchable constants:
; - 64-bit constants have to be loaded into a register
; - The constants have to be aligned to 8 bytes so that they can be patched easily
; - The constant loads have been located to minimize NOP padding required to align the constants
; - Using different registers for successive constant loads helps pipeline better. Should we decide to use a special
; non-volatile calling convention, this should be changed to use just one register.
; Do the move into the GC . It is correct to take an AV here, the EH code
; figures out that this came from a WriteBarrier and correctly maps it back
; to the managed method which called the WriteBarrier (see setup in
; InitializeExceptionHandling, vm\exceptionhandling.cpp).
mov [rcx], rdx
; Update the write watch table if necessary
mov rax, rcx
PATCH_LABEL JIT_WriteBarrier_WriteWatch_PreGrow64_Patch_Label_WriteWatchTable
mov r8, 0F0F0F0F0F0F0F0F0h
shr rax, 0Ch ; SoftwareWriteWatch::AddressToTableByteIndexShift
NOP_2_BYTE ; padding for alignment of constant
PATCH_LABEL JIT_WriteBarrier_WriteWatch_PreGrow64_Patch_Label_Lower
mov r9, 0F0F0F0F0F0F0F0F0h
add rax, r8
cmp byte ptr [rax], 0h
jne CheckCardTable
mov byte ptr [rax], 0FFh
; Check the lower ephemeral region bound.
CheckCardTable:
cmp rdx, r9
jb Exit
; Touch the card table entry, if not already dirty.
shr rcx, 0Bh
NOP_2_BYTE ; padding for alignment of constant
PATCH_LABEL JIT_WriteBarrier_WriteWatch_PreGrow64_Patch_Label_CardTable
mov rax, 0F0F0F0F0F0F0F0F0h
cmp byte ptr [rcx + rax], 0FFh
jne UpdateCardTable
REPRET
UpdateCardTable:
mov byte ptr [rcx + rax], 0FFh
ret
align 16
Exit:
REPRET
LEAF_END_MARKED JIT_WriteBarrier_WriteWatch_PreGrow64, _TEXT
LEAF_ENTRY JIT_WriteBarrier_WriteWatch_PostGrow64, _TEXT
align 8
; Regarding patchable constants:
; - 64-bit constants have to be loaded into a register
; - The constants have to be aligned to 8 bytes so that they can be patched easily
; - The constant loads have been located to minimize NOP padding required to align the constants
; - Using different registers for successive constant loads helps pipeline better. Should we decide to use a special
; non-volatile calling convention, this should be changed to use just one register.
; Do the move into the GC . It is correct to take an AV here, the EH code
; figures out that this came from a WriteBarrier and correctly maps it back
; to the managed method which called the WriteBarrier (see setup in
; InitializeExceptionHandling, vm\exceptionhandling.cpp).
mov [rcx], rdx
; Update the write watch table if necessary
mov rax, rcx
PATCH_LABEL JIT_WriteBarrier_WriteWatch_PostGrow64_Patch_Label_WriteWatchTable
mov r8, 0F0F0F0F0F0F0F0F0h
shr rax, 0Ch ; SoftwareWriteWatch::AddressToTableByteIndexShift
NOP_2_BYTE ; padding for alignment of constant
PATCH_LABEL JIT_WriteBarrier_WriteWatch_PostGrow64_Patch_Label_Lower
mov r9, 0F0F0F0F0F0F0F0F0h
add rax, r8
cmp byte ptr [rax], 0h
jne CheckCardTable
mov byte ptr [rax], 0FFh
NOP_3_BYTE ; padding for alignment of constant
; Check the lower and upper ephemeral region bounds
CheckCardTable:
cmp rdx, r9
jb Exit
NOP_3_BYTE ; padding for alignment of constant
PATCH_LABEL JIT_WriteBarrier_WriteWatch_PostGrow64_Patch_Label_Upper
mov r8, 0F0F0F0F0F0F0F0F0h
cmp rdx, r8
jae Exit
nop ; padding for alignment of constant
PATCH_LABEL JIT_WriteBarrier_WriteWatch_PostGrow64_Patch_Label_CardTable
mov rax, 0F0F0F0F0F0F0F0F0h
; Touch the card table entry, if not already dirty.
shr rcx, 0Bh
cmp byte ptr [rcx + rax], 0FFh
jne UpdateCardTable
REPRET
UpdateCardTable:
mov byte ptr [rcx + rax], 0FFh
ret
align 16
Exit:
REPRET
LEAF_END_MARKED JIT_WriteBarrier_WriteWatch_PostGrow64, _TEXT
ifdef FEATURE_SVR_GC
LEAF_ENTRY JIT_WriteBarrier_WriteWatch_SVR64, _TEXT
align 8
; Regarding patchable constants:
; - 64-bit constants have to be loaded into a register
; - The constants have to be aligned to 8 bytes so that they can be patched easily
; - The constant loads have been located to minimize NOP padding required to align the constants
; - Using different registers for successive constant loads helps pipeline better. Should we decide to use a special
; non-volatile calling convention, this should be changed to use just one register.
;
; SVR GC has multiple heaps, so it cannot provide one single
; ephemeral region to bounds check against, so we just skip the
; bounds checking all together and do our card table update
; unconditionally.
;
; Do the move into the GC . It is correct to take an AV here, the EH code
; figures out that this came from a WriteBarrier and correctly maps it back
; to the managed method which called the WriteBarrier (see setup in
; InitializeExceptionHandling, vm\exceptionhandling.cpp).
mov [rcx], rdx
; Update the write watch table if necessary
mov rax, rcx
PATCH_LABEL JIT_WriteBarrier_WriteWatch_SVR64_PatchLabel_WriteWatchTable
mov r8, 0F0F0F0F0F0F0F0F0h
shr rax, 0Ch ; SoftwareWriteWatch::AddressToTableByteIndexShift
NOP_2_BYTE ; padding for alignment of constant
PATCH_LABEL JIT_WriteBarrier_WriteWatch_SVR64_PatchLabel_CardTable
mov r9, 0F0F0F0F0F0F0F0F0h
add rax, r8
cmp byte ptr [rax], 0h
jne CheckCardTable
mov byte ptr [rax], 0FFh
CheckCardTable:
shr rcx, 0Bh
cmp byte ptr [rcx + r9], 0FFh
jne UpdateCardTable
REPRET
UpdateCardTable:
mov byte ptr [rcx + r9], 0FFh
ret
LEAF_END_MARKED JIT_WriteBarrier_WriteWatch_SVR64, _TEXT
endif
endif
end
| 36.540462 | 124 | 0.674049 |
f5c97adfef8bcecc695f2a4fbd9c02b104e95975 | 2,060 | asm | Assembly | programs/oeis/006/A006501.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/006/A006501.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/006/A006501.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A006501: Expansion of (1+x^2) / ( (1-x)^2 * (1-x^3)^2 ).
; 1,2,4,8,12,18,27,36,48,64,80,100,125,150,180,216,252,294,343,392,448,512,576,648,729,810,900,1000,1100,1210,1331,1452,1584,1728,1872,2028,2197,2366,2548,2744,2940,3150,3375,3600,3840,4096,4352,4624,4913,5202,5508,5832,6156,6498,6859,7220,7600,8000,8400,8820,9261,9702,10164,10648,11132,11638,12167,12696,13248,13824,14400,15000,15625,16250,16900,17576,18252,18954,19683,20412,21168,21952,22736,23548,24389,25230,26100,27000,27900,28830,29791,30752,31744,32768,33792,34848,35937,37026,38148,39304,40460,41650,42875,44100,45360,46656,47952,49284,50653,52022,53428,54872,56316,57798,59319,60840,62400,64000,65600,67240,68921,70602,72324,74088,75852,77658,79507,81356,83248,85184,87120,89100,91125,93150,95220,97336,99452,101614,103823,106032,108288,110592,112896,115248,117649,120050,122500,125000,127500,130050,132651,135252,137904,140608,143312,146068,148877,151686,154548,157464,160380,163350,166375,169400,172480,175616,178752,181944,185193,188442,191748,195112,198476,201898,205379,208860,212400,216000,219600,223260,226981,230702,234484,238328,242172,246078,250047,254016,258048,262144,266240,270400,274625,278850,283140,287496,291852,296274,300763,305252,309808,314432,319056,323748,328509,333270,338100,343000,347900,352870,357911,362952,368064,373248,378432,383688,389017,394346,399748,405224,410700,416250,421875,427500,433200,438976,444752,450604,456533,462462,468468,474552,480636,486798,493039,499280,505600,512000,518400,524880,531441,538002,544644,551368,558092,564898,571787,578676,585648,592704
mov $12,$0
mov $14,$0
add $14,1
lpb $14
clr $0,12
mov $0,$12
sub $14,1
sub $0,$14
mov $9,$0
mov $11,$0
add $11,1
lpb $11
clr $0,9
mov $0,$9
sub $11,1
sub $0,$11
mov $2,$0
mul $0,2
mod $0,3
mul $0,4
mov $1,4
add $2,3
lpb $0
mod $0,2
cal $0,142
pow $1,$4
add $0,$1
pow $0,2
cmp $2,0
lpe
add $4,3
div $2,$4
add $1,$2
trn $1,4
add $10,$1
lpe
add $13,$10
lpe
mov $1,$13
| 47.906977 | 1,510 | 0.724272 |
5c6240be5e4092b14521829951e3175490993d54 | 349 | asm | Assembly | spectranet/libspectranet/long2ipstring.asm | speccytools/spectranet-gdbserver | c76acd970e5e8bbf793d8514bf64c32a180c26a4 | [
"MIT"
] | 40 | 2021-07-23T21:33:59.000Z | 2022-02-07T19:07:46.000Z | spectranet/libspectranet/long2ipstring.asm | speccytools/spectranet-gdbserver | c76acd970e5e8bbf793d8514bf64c32a180c26a4 | [
"MIT"
] | null | null | null | spectranet/libspectranet/long2ipstring.asm | speccytools/spectranet-gdbserver | c76acd970e5e8bbf793d8514bf64c32a180c26a4 | [
"MIT"
] | 2 | 2021-08-02T17:49:03.000Z | 2021-10-09T21:53:41.000Z | ; CALLER linkage for long2ipstring()
PUBLIC long2ipstring
EXTERN long2ipstring_callee
EXTERN ASMDISP_LONG2IPSTRING_CALLEE
; void long2ipstring(inet_addr_t *addr, char *str);
.long2ipstring
pop bc ; return address
pop de ; char *str
pop hl ; inet_addr_t *addr
push hl
push de
push bc
jp long2ipstring_callee + ASMDISP_LONG2IPSTRING_CALLEE
| 23.266667 | 55 | 0.796562 |
f6011c02a1d0ce5a1b7a42b33bbff5760eba589f | 500 | asm | Assembly | classes/3/LearningFlags.asm | UFSCar-CS/computer-architecture-and-organization-2012-2 | b7f1862b92ecfeb464c57cc2234d9813aeebe068 | [
"MIT"
] | null | null | null | classes/3/LearningFlags.asm | UFSCar-CS/computer-architecture-and-organization-2012-2 | b7f1862b92ecfeb464c57cc2234d9813aeebe068 | [
"MIT"
] | null | null | null | classes/3/LearningFlags.asm | UFSCar-CS/computer-architecture-and-organization-2012-2 | b7f1862b92ecfeb464c57cc2234d9813aeebe068 | [
"MIT"
] | null | null | null | TITLE Learning Flags
;Author: @CamiloMoreira
;
;Revision:
INCLUDE Irvine32.inc
.data
val1 BYTE 10h
val2 WORD 8000h
val3 DWORD 0FFFFh
val4 WORD 7FFFh
.code
main PROC
inc val2 ; CF=0 ZF=0 SF=1 OF=0
mov eax, 0h
mov ebx, 0h
mov edx, 0h
sub eax, val3 ; CF=1 ZF=0 SF=1 OF=0
mov bx, val2
sub val4, bx ; CF=1 ZF=0 SF=1 OF=1
mov dx, val2
neg dx ; CF=1 ZF=0 SF=0 OF=0
add dx, bx ; CF=1 ZF=1 SF=0 OF=0
sub dx, val4 ; CF=1 ZF=0 SF=0 OF=0
mov ax, dx
exit
main ENDP
END main | 13.157895 | 37 | 0.636 |
584079026d5c6ef676a42682f58d88f37a552457 | 8,393 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_369.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_369.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_369.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1cdf7, %rsi
nop
nop
nop
nop
nop
add %rdx, %rdx
mov $0x6162636465666768, %rcx
movq %rcx, (%rsi)
nop
nop
nop
and $61246, %rcx
lea addresses_WC_ht+0x42f7, %r11
nop
lfence
movb (%r11), %dl
nop
nop
nop
nop
mfence
lea addresses_D_ht+0x14b37, %rsi
lea addresses_D_ht+0x9577, %rdi
nop
nop
sub %r11, %r11
mov $120, %rcx
rep movsb
nop
nop
add %rdx, %rdx
lea addresses_WC_ht+0x4437, %rsi
lea addresses_WT_ht+0x18ff7, %rdi
clflush (%rsi)
nop
sub %r11, %r11
mov $24, %rcx
rep movsl
nop
nop
nop
xor $33840, %r9
lea addresses_WT_ht+0x8697, %rsi
lea addresses_normal_ht+0x12bf, %rdi
clflush (%rsi)
nop
nop
nop
add $16598, %r12
mov $116, %rcx
rep movsb
nop
nop
nop
nop
sub $41405, %rsi
lea addresses_UC_ht+0x75f7, %r9
nop
nop
cmp $57800, %r12
mov $0x6162636465666768, %rdi
movq %rdi, (%r9)
nop
xor $2500, %r9
lea addresses_normal_ht+0x9c47, %rdi
nop
xor %r9, %r9
movb $0x61, (%rdi)
nop
nop
nop
nop
nop
add %rsi, %rsi
lea addresses_WT_ht+0x18e77, %rdx
nop
nop
nop
inc %r11
vmovups (%rdx), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %r9
nop
nop
nop
cmp $44331, %rsi
lea addresses_normal_ht+0xd377, %r12
cmp $19685, %rdx
mov (%r12), %ecx
nop
nop
inc %rdi
lea addresses_UC_ht+0xecd7, %rdx
nop
nop
add %rcx, %rcx
movb $0x61, (%rdx)
and %r12, %r12
lea addresses_A_ht+0xf4c7, %rsi
lea addresses_UC_ht+0x98b7, %rdi
nop
nop
nop
nop
inc %r10
mov $76, %rcx
rep movsq
nop
nop
nop
nop
nop
xor $61632, %rdx
lea addresses_WC_ht+0xf8a7, %r10
clflush (%r10)
nop
nop
nop
lfence
mov $0x6162636465666768, %rdi
movq %rdi, %xmm7
movups %xmm7, (%r10)
nop
nop
nop
nop
cmp $36958, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r15
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
// Load
lea addresses_D+0x61f7, %rdx
nop
cmp %r10, %r10
mov (%rdx), %rbx
nop
nop
nop
and %r11, %r11
// Store
lea addresses_WT+0x9879, %r15
nop
cmp %rbp, %rbp
mov $0x5152535455565758, %r11
movq %r11, (%r15)
nop
nop
nop
nop
nop
cmp %rax, %rax
// Load
lea addresses_D+0x1f7, %r11
nop
nop
nop
nop
nop
and $16102, %rdx
mov (%r11), %ax
nop
nop
nop
xor %rdx, %rdx
// REPMOV
lea addresses_A+0x1eab7, %rsi
lea addresses_D+0xf1f7, %rdi
nop
nop
nop
sub $11456, %r15
mov $27, %rcx
rep movsw
nop
nop
nop
sub $25263, %r11
// Store
lea addresses_A+0x1077, %rdi
nop
nop
and %rbp, %rbp
movw $0x5152, (%rdi)
nop
nop
nop
nop
nop
dec %rbx
// Faulty Load
lea addresses_WC+0x99f7, %rdx
clflush (%rdx)
nop
dec %r10
movups (%rdx), %xmm2
vpextrq $1, %xmm2, %rdi
lea oracles, %rdx
and $0xff, %rdi
shlq $12, %rdi
mov (%rdx,%rdi,1), %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r15
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_WC', 'same': False, 'size': 2, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D', 'same': False, 'size': 8, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WT', 'same': False, 'size': 8, 'congruent': 1, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_D', 'same': False, 'size': 2, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_D', 'congruent': 11, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_A', 'same': False, 'size': 2, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_WC', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 8, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': True}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 8, 'congruent': 7, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 1, 'congruent': 4, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'38': 21829}
38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38
*/
| 30.40942 | 2,999 | 0.655427 |
8328d4c44ab3436d7f5f81d942b86daa3bd2a2f4 | 268 | asm | Assembly | programs/oeis/131/A131711.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/131/A131711.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/131/A131711.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A131711: Period 12: repeat 0, 1, 2, 5, 2, 9, 0, 9, 8, 5, 8, 1.
; 0,1,2,5,2,9,0,9,8,5,8,1,0,1,2,5,2,9,0,9,8,5,8,1,0,1,2,5,2,9,0,9,8,5,8,1,0,1,2,5,2,9,0,9,8,5,8,1
cal $0,129 ; Pell numbers: a(0) = 0, a(1) = 1; for n > 1, a(n) = 2*a(n-1) + a(n-2).
mod $0,10
mov $1,$0
| 38.285714 | 97 | 0.485075 |
c30d12eedda545ac79c932dc4e85da833df5cfcc | 60 | asm | Assembly | gfx/pokemon/clefable/anim_idle.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 28 | 2019-11-08T07:19:00.000Z | 2021-12-20T10:17:54.000Z | gfx/pokemon/clefable/anim_idle.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 13 | 2020-01-11T17:00:40.000Z | 2021-09-14T01:27:38.000Z | gfx/pokemon/clefable/anim_idle.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 22 | 2020-05-28T17:31:38.000Z | 2022-03-07T20:49:35.000Z | setrepeat 3
frame 0, 07
frame 3, 07
dorepeat 1
endanim
| 10 | 12 | 0.7 |
4f2f942f67036186a7da138b316d729ab2bf54fc | 2,238 | asm | Assembly | programs/oeis/017/A017264.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/017/A017264.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/017/A017264.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A017264: a(n) = (9*n + 8)^8.
; 16777216,6975757441,208827064576,2251875390625,14048223625216,62259690411361,218340105584896,645753531245761,1677721600000000,3936588805702081,8507630225817856,17181861798319201,32784148919812096,59604644775390625,103953325454500096,174859124550883201,284936905588473856,451447246258894081,697575744100000000,1053960288888713761,1560496482665168896,2268453123948987361,3242931408352297216,4565703233437890625,6338465731314712576,8686550888106661441,11763130845074473216,15753961211814252001,20882706457600000000,27416893182581291041,35674538806191022336,46031504945761969921,58929626493994663936,74885669139562890625,94501169810786918656,118473216257948338081,147606223725464190976,182824768400781863521,225187539062500000000,275902470085864489921,336343120699432370176,408066367122340274881,492831475947257856256,592620628869750390625,709660970600418574336,846448253531827305121,1005772154467879035136,1190743340458931072641,1404822362521600000000,1651850457757840166401,1936082342123527004416,2262221077832419710241,2635455101117021618176,3061497497803500390625,3546627615893473935616,4097735106081111754561,4722366482869645213696,5428774300687024023361,6225969041136100000000,7123773809250362976481,8132881938361897517056,9264917604923872884001,10532499556365522493696,11949308056793212890625,13530155157086846058496,15291058397676482678401,17249318054019717734656,19423598036535983659681,21834010558489600000000,24502204687049032376161,27451458894485467300096,30706777728209453204161,34294992720080001826816,38244867657156187890625,42587208337796928798976,47354976938750269868641,52583411120609144406016,58310148000746221725601,64575353124576100000000,71421854567728744621441,78895282303453716545536,87044212971310378878721,95920320184934913761536,105578530518410625390625,116077185312503648813056,127478208443761827917281,139847280201210169835776,153254017417111926765121,167772160000000000000000,183479764019919004768321,200459401497553978245376,218798367050657356915681,238588891552921493241856,259928362962179625390625,282919554476553857556736,307670860178904352216321,334296538331669579431936,362916962485923112122241,393658880570208100000000,426655682126446198672801
mul $0,9
add $0,8
pow $0,8
| 319.714286 | 2,178 | 0.940572 |
9f89e449acedda421618ad24bc83f062d74f9e96 | 90 | asm | Assembly | audio/sfx/battle_1b.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 16 | 2018-08-28T21:47:01.000Z | 2022-02-20T20:29:59.000Z | audio/sfx/battle_1b.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 5 | 2019-04-03T19:53:11.000Z | 2022-03-11T22:49:34.000Z | audio/sfx/battle_1b.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 2 | 2019-12-09T19:46:02.000Z | 2020-12-05T21:36:30.000Z | SFX_Battle_1B_Ch1:
unknownnoise0x20 2, 241, 34
unknownnoise0x20 15, 242, 18
endchannel
| 18 | 29 | 0.8 |
111672d6b29b778d08622db7da300ece173f1713 | 5,847 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_632.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_632.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_632.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xbb06, %r13
clflush (%r13)
nop
nop
cmp $59573, %r11
movw $0x6162, (%r13)
add $61715, %rax
lea addresses_WT_ht+0x346, %r13
nop
nop
nop
nop
nop
sub %r11, %r11
mov $0x6162636465666768, %rbx
movq %rbx, %xmm5
movups %xmm5, (%r13)
nop
nop
nop
nop
inc %rax
lea addresses_D_ht+0x1c95e, %rsi
lea addresses_WT_ht+0x14306, %rdi
nop
mfence
mov $5, %rcx
rep movsq
nop
nop
nop
nop
sub $11205, %rbx
lea addresses_UC_ht+0x1aada, %rcx
nop
nop
nop
nop
nop
and %rax, %rax
mov (%rcx), %r11d
cmp %rcx, %rcx
lea addresses_UC_ht+0xa81a, %rdi
nop
nop
cmp %r13, %r13
mov (%rdi), %ecx
and %rdi, %rdi
lea addresses_A_ht+0xb06, %r13
nop
nop
and %r11, %r11
mov (%r13), %esi
nop
nop
xor $59076, %r13
lea addresses_D_ht+0xd92c, %rsi
lea addresses_A_ht+0x8f06, %rdi
clflush (%rsi)
clflush (%rdi)
nop
nop
nop
and $11218, %rax
mov $21, %rcx
rep movsw
nop
nop
nop
and %r13, %r13
lea addresses_WC_ht+0x2706, %r11
nop
and $36958, %rdi
movw $0x6162, (%r11)
nop
nop
nop
nop
nop
dec %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r15
push %r9
push %rax
push %rdx
// Faulty Load
lea addresses_A+0x6b06, %r9
dec %r11
movups (%r9), %xmm5
vpextrq $0, %xmm5, %r15
lea oracles, %rax
and $0xff, %r15
shlq $12, %r15
mov (%rax,%r15,1), %r15
pop %rdx
pop %rax
pop %r9
pop %r15
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': False, 'type': 'addresses_A'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_A'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 10, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 6, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 2, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 2, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 10, 'same': True, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'}
{'35': 21829}
35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35
*/
| 40.888112 | 2,999 | 0.657431 |
a17134cfba779481a69b0a2b95ac65885cfbc042 | 1,044 | asm | Assembly | programs/oeis/029/A029715.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/029/A029715.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/029/A029715.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A029715: a(n) = Sum_{k divides 2^n} S(k), where S is the Kempner function A002034.
; 1,3,7,11,17,25,33,41,51,63,75,89,105,121,137,153,171,191,211,233,257,281,305,331,359,387,417,449,481,513,545,577,611,647,683,721,761,801,841,883,927,971,1017,1065,1113,1161,1209,1259,1311,1363,1417,1473,1529
mov $34,$0
mov $36,$0
add $36,1
lpb $36,1
clr $0,34
mov $0,$34
sub $36,1
sub $0,$36
mov $31,$0
mov $33,$0
add $33,1
lpb $33,1
mov $0,$31
sub $33,1
sub $0,$33
mov $27,$0
mov $29,2
lpb $29,1
mov $0,$27
sub $29,1
add $0,$29
sub $0,1
cal $0,80578 ; a(1)=1; for n > 1, a(n) = a(n-1) + 1 if n is already in the sequence, a(n) = a(n-1) + 3 otherwise.
mov $3,$0
sub $3,1
mov $26,$3
cmp $26,0
add $3,$26
add $3,1
mov $1,$3
mov $30,$29
lpb $30,1
mov $28,$1
sub $30,1
lpe
lpe
lpb $27,1
mov $27,0
sub $28,$1
lpe
mov $1,$28
sub $1,1
add $32,$1
lpe
add $35,$32
lpe
mov $1,$35
| 20.470588 | 209 | 0.510536 |
ae47f297258a76c1e0d8f1957a478c324225afe9 | 4,038 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1863.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_1863.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_1863.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 %r12
push %r13
push %rdi
lea addresses_normal_ht+0x9a79, %r13
nop
nop
nop
sub $39873, %r12
vmovups (%r13), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $1, %xmm1, %r11
nop
nop
cmp %rdi, %rdi
pop %rdi
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r15
push %rcx
push %rdi
push %rdx
// Faulty Load
lea addresses_PSE+0x18079, %r15
nop
nop
lfence
mov (%r15), %di
lea oracles, %r15
and $0xff, %rdi
shlq $12, %rdi
mov (%r15,%rdi,1), %rdi
pop %rdx
pop %rdi
pop %rcx
pop %r15
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 9}, 'OP': 'LOAD'}
{'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
*/
| 67.3 | 2,999 | 0.663943 |
7d700894d7a6ce167b70e849974bd2f4f8eb2fde | 3,259 | asm | Assembly | Student/examples/Correct/CPRL0/Correct_113.asm | SoftMoore/CPRL-Kt | c2dfdbd5b30ed6175f419398071e2f98e582d23a | [
"Unlicense"
] | 6 | 2021-02-02T10:08:02.000Z | 2022-03-24T08:10:44.000Z | Student/examples/Correct/CPRL0/Correct_113.asm | SoftMoore/CPRL-Kt | c2dfdbd5b30ed6175f419398071e2f98e582d23a | [
"Unlicense"
] | 1 | 2021-02-27T21:55:26.000Z | 2021-02-28T12:39:29.000Z | Student/examples/Correct/CPRL0/Correct_113.asm | SoftMoore/CPRL-Kt | c2dfdbd5b30ed6175f419398071e2f98e582d23a | [
"Unlicense"
] | 6 | 2020-02-24T13:51:32.000Z | 2021-06-05T19:02:05.000Z | PROGRAM 14
LDGADDR 0
LDCINT 5
NEG
STOREW
LDGADDR 4
LDCINT 2
STOREW
LDGADDR 8
LDCINT 7
STOREW
LDGADDR 12
LDCB 0
STOREB
LDGADDR 13
LDCB 1
STOREB
LDGADDR 0
LOADW
LDGADDR 4
LOADW
CMP
BL L4
LDCB 0
BR L5
L4:
LDGADDR 4
LOADW
LDGADDR 8
LOADW
CMP
BGE L2
LDCB 1
BR L3
L2:
LDCB 0
L3:
L5:
BZ L6
LDCSTR "valid"
PUTSTR
PUTEOL
BR L7
L6:
LDCSTR "not valid"
PUTSTR
PUTEOL
L7:
LDGADDR 0
LOADW
LDGADDR 4
LOADW
CMP
BL L12
LDCB 0
BR L13
L12:
LDGADDR 0
LOADW
LDGADDR 8
LOADW
CMP
BL L10
LDCB 1
BR L11
L10:
LDCB 0
L11:
L13:
BZ L14
LDCSTR "not valid"
PUTSTR
PUTEOL
BR L15
L14:
LDCSTR "valid"
PUTSTR
PUTEOL
L15:
LDGADDR 4
LOADW
LDGADDR 0
LOADW
CMP
BLE L20
LDCB 0
BR L21
L20:
LDGADDR 4
LOADW
LDGADDR 8
LOADW
CMP
BGE L18
LDCB 1
BR L19
L18:
LDCB 0
L19:
L21:
BZ L22
LDCSTR "not valid"
PUTSTR
PUTEOL
BR L23
L22:
LDCSTR "valid"
PUTSTR
PUTEOL
L23:
LDGADDR 4
LOADW
LDGADDR 0
LOADW
CMP
BL L28
LDCB 0
BR L29
L28:
LDGADDR 8
LOADW
LDGADDR 0
LOADW
NEG
CMP
BG L26
LDCB 1
BR L27
L26:
LDCB 0
L27:
L29:
BZ L30
LDCSTR "not valid"
PUTSTR
PUTEOL
BR L31
L30:
LDCSTR "valid"
PUTSTR
PUTEOL
L31:
LDGADDR 0
LOADW
LDGADDR 4
LOADW
CMP
BGE L36
LDCB 1
BR L37
L36:
LDGADDR 4
LOADW
LDGADDR 8
LOADW
CMP
BGE L34
LDCB 1
BR L35
L34:
LDCB 0
L35:
L37:
BZ L38
LDCSTR "valid"
PUTSTR
PUTEOL
BR L39
L38:
LDCSTR "not valid"
PUTSTR
PUTEOL
L39:
LDGADDR 0
LOADW
LDGADDR 4
LOADW
CMP
BGE L44
LDCB 1
BR L45
L44:
LDGADDR 4
LOADW
NEG
LDGADDR 8
LOADW
CMP
BLE L42
LDCB 1
BR L43
L42:
LDCB 0
L43:
L45:
BZ L46
LDCSTR "valid"
PUTSTR
PUTEOL
BR L47
L46:
LDCSTR "not valid"
PUTSTR
PUTEOL
L47:
LDGADDR 4
LOADW
LDGADDR 0
LOADW
CMP
BG L52
LDCB 1
BR L53
L52:
LDGADDR 4
LOADW
LDGADDR 8
LOADW
CMP
BGE L50
LDCB 1
BR L51
L50:
LDCB 0
L51:
L53:
BZ L54
LDCSTR "valid"
PUTSTR
PUTEOL
BR L55
L54:
LDCSTR "not valid"
PUTSTR
PUTEOL
L55:
LDGADDR 0
LOADW
NEG
LDGADDR 4
LOADW
CMP
BGE L60
LDCB 1
BR L61
L60:
LDGADDR 8
LOADW
LDGADDR 4
LOADW
CMP
BG L58
LDCB 1
BR L59
L58:
LDCB 0
L59:
L61:
BZ L62
LDCSTR "not valid"
PUTSTR
PUTEOL
BR L63
L62:
LDCSTR "valid"
PUTSTR
PUTEOL
L63:
LDGADDR 8
LDCINT 0
STOREW
LDGADDR 12
LOADB
BNZ L66
LDCB 0
BR L67
L66:
LDGADDR 4
LOADW
LDGADDR 8
LOADW
DIV
LDCINT 2
CMP
BL L64
LDCB 1
BR L65
L64:
LDCB 0
L65:
L67:
BZ L68
LDCSTR "not valid"
PUTSTR
PUTEOL
BR L69
L68:
LDCSTR "valid"
PUTSTR
PUTEOL
L69:
LDGADDR 13
LOADB
BZ L72
LDCB 1
BR L73
L72:
LDGADDR 4
LOADW
LDGADDR 8
LOADW
DIV
LDCINT 0
CMP
BGE L70
LDCB 1
BR L71
L70:
LDCB 0
L71:
L73:
BZ L74
LDCSTR "valid"
PUTSTR
PUTEOL
BR L75
L74:
LDCSTR "not valid"
PUTSTR
PUTEOL
L75:
HALT
| 9.786787 | 21 | 0.563977 |
7754eace5c76a3c21e7c79292965cdc806d3c191 | 6,463 | asm | Assembly | libraries/xsprites/spritemanager.asm | paulscottrobson/cerberus-2080 | c6731eab1b77d818bd22480554dd231cb28e2cf0 | [
"MIT"
] | 1 | 2022-01-09T15:19:28.000Z | 2022-01-09T15:19:28.000Z | libraries/xsprites/spritemanager.asm | paulscottrobson/cerberus-2080 | c6731eab1b77d818bd22480554dd231cb28e2cf0 | [
"MIT"
] | 1 | 2021-12-11T07:08:54.000Z | 2021-12-11T19:07:19.000Z | libraries/xsprites/spritemanager.asm | paulscottrobson/cerberus-2080 | c6731eab1b77d818bd22480554dd231cb28e2cf0 | [
"MIT"
] | 1 | 2021-12-12T14:20:32.000Z | 2021-12-12T14:20:32.000Z | ; *********************************************************************************************
; *********************************************************************************************
;
; Name: spritemanager.asm
; Purpose: Sprite Manager
; Created: 1st November 2021
; Author: Paul Robson (paul@robsons.org.uk)
;
; *********************************************************************************************
; *********************************************************************************************
;
; Sprite Record:
;
; Current Data: (as per xsprite.asm)
; 0..6 X:2 Y:2 Graphics:2 Control:1
; 7 Status byte
; To Copy data:
; 8..14 X:2 Y:2 Graphics:2 Control:1
; 15 Change flag
;
; When being updated, if the change flag is set, then the sprite is removed, then data
; (8-14) is copied to (0-6), then the sprite redrawn
;
; The option also exists to erase all sprites ; the point of such being that one can update
; the background. This sets all the change flags so the sprites are redrawn on the next sync.
;
; *********************************************************************************************
;
;
; Reset Sprite Manager. HL points to data block, DE is number of sprites
;
;
; *********************************************************************************************
;; [CALL] SPR.RESET
SPMReset:
push af
push bc
push de
push hl
ld (SPMData),hl ; save count and address
ld a,e
ld (SPMCount),a
add a,a ; double, as we clear it twice (2 x 8 byte blocks)
ld b,a
_SPMClear:
ld c,6 ; write out 6 $FFs to position and graphic
_SPMClear2:
ld (hl),$FF
inc hl
dec c
jr nz,_SPMClear2
ld (hl),c ; followed by 2 zeros (control and status/change byte)
inc hl
ld (hl),c
inc hl
djnz _SPMClear
ld hl,SPMUnused ; no current selection
ld (SPMCurrent),hl
call SPRInitialise ; erase the sprite control records.
pop hl
pop de
pop bc
pop af
ret
;; [END]
; *********************************************************************************************
;
; Sprite functions/words. A sprite is selected via SPMSelect and then moved, graphics
; set etc. by other functions. SPMUpdate updates all sprites. Parameters at L/HL then DE.
;
; *********************************************************************************************
;; [CALL] SPR.SELECT
SPMSelect:
push af
push bc
push hl
ld a,(SPMCount)
cp l ; compare max vs selected.
jr z,_SPMSFail ; must be >
jp m,_SPMSFail
add hl,hl ; x 16
add hl,hl
add hl,hl
add hl,hl
ld de,(SPMData) ; add base address
add hl,de
jr _SPMSExit ; write and exit
_SPMSFail:
ld hl,SPMUnused
_SPMSExit:
ld (SPMCurrent),hl
pop hl
pop de
pop af
ret
;; [END]
; *********************************************************************************************
;
; X Y SPR.MOVE
;
; *********************************************************************************************
;; [CALL] SPR.MOVE
SPMMove:
push ix
ld ix,(SPMCurrent)
ld (ix+8),e ; write X
ld (ix+9),d
ld (ix+10),l ; write Y
ld (ix+11),h
_SPMGeneralExit:
set 7,(ix+15)
pop ix
ret
;;[END]
; *********************************************************************************************
;
; GDATA SPR.IMAGE
;
; *********************************************************************************************
;; [CALL] SPR.IMAGE
SPRImage:
push ix
ld ix,(SPMCurrent)
ld (ix+12),l
ld (ix+13),h
jr _SPMGeneralExit
;; [END]
; *********************************************************************************************
;
; CBYTE SPR.CONTROL
;
; *********************************************************************************************
;; [CALL] SPR.CONTROL
SPMControl:
push ix
ld ix,(SPMCurrent)
ld (ix+14),l
jr _SPMGeneralExit
;; [END]
; *********************************************************************************************
;
; <bool> SPR.VFLIP / HFLIP
;
; *********************************************************************************************
;; [CALL] SPR.HFLIP
SPMHFlip:
push af
push ix
ld ix,(SPMCurrent)
res 5,(ix+14)
ld a,l
or h
jr z,_SPCTExit
set 5,(ix+14)
jr _SPCTExit
;; [END]
;; [CALL] SPR.VFLIP
SPMVFlip:
push af
push ix
ld ix,(SPMCurrent)
res 6,(ix+14)
ld a,l
or h
jr z,_SPCTExit
set 7,(ix+14)
_SPCTExit:
set 7,(ix+15)
pop ix
pop af
ret
;; [END]
; *********************************************************************************************
;
; Update all sprites
;
; *********************************************************************************************
;; [CALL] SPR.UPDATE
SPMUpdate:
push af
push bc
push de
push hl
push ix
ld a,(SPMCount)
ld b,a
ld ix,(SPMData)
_SPMUpdateLoop:
ld a,(ix+15) ; check redraw flag
or a
call nz,_SPMUpdateOne ; if non zero update this one
ld de,16
add ix,de
djnz _SPMUpdateLoop
pop ix
pop hl
pop bc
pop de
pop af
ret
;
; Updates one sprite from new data if redraw flag found set.
;
_SPMUpdateOne:
push bc
ld (ix+15),0 ; clear the redraw flag.
call SpriteXErase ; erase sprite
push ix ; copy target address in DE
pop de
ld hl,8
add hl,de ; target DE, source HL
ld bc,7 ; copy 7 bytes over
ldir
call SpriteXDraw ; redraw sprite
pop bc
ret
;; [END]
; *********************************************************************************************
;
; Hide all sprites (to change background)
;
; *********************************************************************************************
;; [CALL] SPR.HIDE.ALL
SPMHideAll:
push af
push bc
push de
push ix
ld a,(SPMCount)
ld b,a
ld ix,(SPMData)
ld de,16
_SPMHideLoop:
call SpriteXErase ; remove sprite
set 7,(ix+15) ; force redraw next update
add ix,de
djnz _SPMHideLoop
pop hl
pop bc
pop de
pop af
ret
;; [END]
SPMData: ; address of sprite
.dw 0
SPMCount: ; number of sprites
.dw 0
SPMCurrent: ; currently selected sprite (may point to unused junk space)
.dw 0
SPMUnused: ; space for junk writes.
.ds 16,0
| 23.248201 | 95 | 0.414513 |
0bb50e71062fa618e420f83d1cdd60837f232e52 | 5,630 | asm | Assembly | src/spread/main/window.asm | olifink/qspread | d6403d210bdad9966af5d2a0358d4eed3f1e1c02 | [
"MIT"
] | null | null | null | src/spread/main/window.asm | olifink/qspread | d6403d210bdad9966af5d2a0358d4eed3f1e1c02 | [
"MIT"
] | null | null | null | src/spread/main/window.asm | olifink/qspread | d6403d210bdad9966af5d2a0358d4eed3f1e1c02 | [
"MIT"
] | null | null | null | * Spreadsheet 29/11-91
* - general window handeling
section prog
xdef do_window,close_flash,open_flash
xref.s wst_main
include win1_keys_wman
include win1_keys_wstatus
include win1_keys_wwork
include win1_keys_qdos_pt
include win1_keys_qdos_io
include win1_keys_qlv
include win1_keys_err
include win1_mac_oli
include win1_spread_keys
include win1_mac_assert
include win1_keys_colour
do_window
moveq #0,d6
move.b cffui(a6),d6
swap d6 ; flash delay
moveq #0,d7
move.b v_expldel(a6),d7
ext.w d7
swap d7 ; help delay
rdptr
move.l wsp_xpos(a1),d4 ; save pointer origin
moveq #0,d2 ; no event to return on
moveq #5,d3 ; short timeout
jsr wm.rptrt(a2)
bgt.s edit ; something to edit
cmp.l #err.nc,d0
bne.s help_not_required
tst.l d7 ; help disabled?
bmi.s help_not_required
cmp.l wsp_xpos(a1),d4 ; same position?
bne.s help_reset_count
cmp.l wsp_chid(a1),a0 ; pointer inside our window?
bne.s help_reset_count
tst.l wsp_swnr(a1) ; within sub-window?
bge.s help_reset_count
addq.w #5,d7
move.l d7,d0
swap d0
cmp.w d7,d0
bgt.s help_not_required
move.b v_explcol(a6),d7 ; colours for explanatory window
xlea tab_explanation,a3
xbsr ut_explanation
clr.w d7
bra.s do_window
help_reset_count
clr.w d7
help_not_required
tst.l d6 ; flash change item?
beq.s dont_flash ; no, skip
addq.w #5,d6
move.l d6,d0
swap d0
cmp.w d6,d0 ; delay reached?
bgt.s dont_flash
bsr flash_icon ; flash change icon
clr.w d6
dont_flash
btst #pt..can,wsp_weve(a1) ; please sleep (w_esc)
bne.s w_zz_esc
btst #pt..wmov,wsp_weve(a1) ; test for move event
bne.s w_move
btst #pt..wsiz,wsp_weve(a1) ; test for resize event
bne.s w_size
btst #pt..zzzz,wsp_weve(a1) ; test for sleep event
bne.s w_zzzz
bra rdptr
do_kill
xjmp kill
edit
xjmp do_edit ; was xjsr before
* window move event
w_move
bsr close_flash
xjsr xwm_move
bsr open_flash
bra rdptr
* window resize event
w_size
bsr close_flash
xjsr xwm_rsiz
move.l ww_wdef(a4),a3 ; get window definition
xjsr qwm_wsiz
move.l d1,da_winsz(a6)
xjsr set_nset
bsr open_flash
bra rdptr
assert mod.slct,0
* window sleep (by pressing ESC)
w_zz_esc
tst.w da_amode(a6) ; any special mode selected?
beq.s w_zzzz
xbsr mod_norm
bra rdptr
* window sleep event
slepreg reg d4-d7/a2
w_zzzz
movem.l slepreg,-(sp)
bsr close_flash ; close channel of flash-icon
move.l da_chan(a6),d0
beq.s do_kill
move.l d0,a0
xjsr gu_fclos ; close window
clr.l da_chan(a6)
moveq #1,d0
xjsr gu_spjob ; change priority to 1
moveq #-1,d1
xjsr ut_gtjn ; get jobname
move.l a1,a3
moveq #-1,d1 ; position
move.b colb(a6),d2 ; config button-colourway
moveq #0,d3 ; no edit sprite
moveq #1,d4 ; default allow ESC
tst.w da_saved(a6) ; did we need confirmation request
bne.s no_conf ; no
moveq #1,d3 ; we need edit sprite
moveq #0,d4 ; ... and no ESC
no_conf
xjsr mu_xbtn
bne.s s_error ; we got problems
cmp.b #2,d1 ; HIT ??
beq.s end_hit
cmp.b #3,d1 ; DO ??
beq.s end_do
cmp.b #0,d1 ; ESC
beq.s try_kill
bra.s end_hit
s_error
movem.l (sp)+,slepreg
xjmp kill ; show error and die
try_kill
tst.w da_saved(a6) ; did we ne confirmation request
beq.s end_do ; yes
movem.l (sp)+,slepreg
moveq #err.nc,d0 ; return with error
xjmp gu_die ; ESC
end_hit
end_do
end_wake
moveq #32,d0
xjsr gu_spjob ; change priority back to 32
move.l #'1.60',d0 ; minimum Pointer Interface version
move.l #'1.55',a0 ; minimum Window Manager version
xjsr wu_gwman ; get wman vector & open con_
bne.s s_error
move.l a0,da_chan(a6) ; channel id wegzetten
move.l da_wwork(a6),a4
move.l a0,ww_chid(a4)
jsr set_nset ; do another window setup
bsr.s open_flash
movem.l (sp)+,slepreg
bra rdptr
*-------------------
w_esc
xjsr mod_norm
bra rdptr
mainreg reg d1-d7/a0-a5
;----------------------------------------------------------------------------
flash_icon
movem.l mainreg,-(sp)
move.l up_chid(a6),d0 ; any channel-id
beq.s flash_rts ; no
tst.w da_saved(a6) ; need a flashing sprite
bne.s flash_test_on ; no
tst.b sprt_on(a6) ; sprite on ??
bne.s try_flash_clear ; yes, so clear it
try_flash
move.l d0,a0
moveq #0,d1 ; at 0,0
moveq #1,d3 ; timeout
xlea mes_edited,a1
moveq #iop.wspt,d0
trap #3
not.b sprt_on(a6)
bra.s flash_rts
try_flash_clear
move.b cffui(a6),d1 ; need a flashing sprite
beq.s flash_rts ; no
flash_test_on
tst.b sprt_on(a6) ; sprite on ??
beq.s flash_rts ; no
flash_clear
move.l d0,a0
xjsr gu_clra
clr.b sprt_on(a6) ; clear sprite
flash_rts
movem.l (sp)+,mainreg
rts
;----------------------------------------------------------------------
close_flash
movem.l d0/a0,-(sp)
move.l up_chid(a6),d0
beq.s flash_closed
move.l d0,a0
xjsr gu_fclos
clr.l up_chid(a6)
flash_closed
movem.l (sp)+,d0/a0
rts
;------------------------------------------------------------------------
open_flash
movem.l d0-d7/a0-a5,-(sp)
bsr.s close_flash
move.l da_wwork(a6),a4
move.w ww_xsize(a4),d1
sub.w #44,d1
add.w ww_xorg(a4),d1
swap d1
move.w ww_yorg(a4),d1
add.w #2,d1
open_flashc
lea place,a5
move.l d1,(a5)
lea updt_con(pc),a1
move.l da_wmvec(a6),a2
move.w #opw.con,d0
jsr wm.opw(a2)
bne.s op_err
move.l a0,up_chid(a6)
clr.b sprt_on(a6)
op_err
movem.l (sp)+,d0-d7/a0-a5
rts
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
updt_con
dc.w c.ibord ; border colour
dc.w 0 ; border with
dc.w c.iback ; backround
dc.w c.iink ; ink
dc.w 14 ; pixels wide
dc.w 9 ; pixels high
place
dc.w 0 ; at 0,0
dc.w 0
end
| 18.766667 | 77 | 0.662167 |
cb08e75d0fbbf464d4e2e8babd849f02d1562756 | 966 | asm | Assembly | micro_kernel/timer.asm | bursaiskender/BaseLevelComputerKernel | fa76bafe48ea8780f5dec6165d0454ef13892d50 | [
"MIT"
] | 1 | 2020-07-17T12:37:54.000Z | 2020-07-17T12:37:54.000Z | micro_kernel/timer.asm | bursaiskender/BaseLevelComputerKernel | fa76bafe48ea8780f5dec6165d0454ef13892d50 | [
"MIT"
] | null | null | null | micro_kernel/timer.asm | bursaiskender/BaseLevelComputerKernel | fa76bafe48ea8780f5dec6165d0454ef13892d50 | [
"MIT"
] | 1 | 2019-02-13T10:39:32.000Z | 2019-02-13T10:39:32.000Z | install_timer:
mov r8, 1193180 / 1000
mov al, 0x36
out 0x43, al
mov rax, r8
out 0x40, al
mov rax, r8
shr rax, 8
out 0x40, al
mov r8, 0
mov r9, irq_timer_handler
call register_irq_handler
ret
irq_timer_handler:
push rax
push rbx
push rcx
push rdx
mov rax, [timer_ticks]
inc rax
mov [timer_ticks], rax
xor rdx, rdx
mov rcx, 1000
div rcx
test rdx, rdx
jnz .end
mov rax, [timer_seconds]
inc rax
mov [timer_seconds], rax
.end:
pop rdx
pop rcx
pop rbx
pop rax
ret
wait_ms:
push r9
push r10
mov r9, [timer_ticks]
add r9, r8
.start:
cli
mov r10, [timer_ticks]
cmp r10, r9
je .done
sti
nop
nop
nop
nop
nop
nop
jmp .start
.done:
pop r10
pop r9
ret
timer_ticks dq 0
timer_seconds dq 0
| 12.227848 | 30 | 0.519669 |
81fb937d2ddac6b41f3394dd031a3b0d99f697dc | 6,220 | asm | Assembly | ScrollModus/_code/GlobalCode/enemyLogikLevelGlobal.asm | kosmonautdnb/TheLandsOfZador | 66c9e8ab92f617838afe793a6c9ddaaf7273aadc | [
"MIT"
] | null | null | null | ScrollModus/_code/GlobalCode/enemyLogikLevelGlobal.asm | kosmonautdnb/TheLandsOfZador | 66c9e8ab92f617838afe793a6c9ddaaf7273aadc | [
"MIT"
] | null | null | null | ScrollModus/_code/GlobalCode/enemyLogikLevelGlobal.asm | kosmonautdnb/TheLandsOfZador | 66c9e8ab92f617838afe793a6c9ddaaf7273aadc | [
"MIT"
] | null | null | null | COLLECTABLE_DISAPPEAR_VELOCITY = $24
COLLECTABLE_TYPE_HEART = $00
COLLECTABLE_TYPE_DIAMOND = $01
COLLECTABLE_TYPE_STONE = $02
COLLECTABLE_TYPE_ITEM = $03
spritePointersForCollectables
dc.b SPRITEFRAMES_HEART
dc.b SPRITEFRAMES_DIAMOND
dc.b SPRITEFRAMES_SPARKLES
dc.b SPRITEFRAMES_ITEM
PLAYERSHOOT1_JUMP_VELOCITY = $0260
PLAYERSHOOT1_GRAVITY = $0020
PLAYERSHOOT1_FRAMES_DONE = $c0
;---------------------------------------------------------
;--- objects that can be collected ---
;---------------------------------------------------------
InitCollectable SUBROUTINE
ldy enemyAddPropertyIntern
lda spritePointersForCollectables,y
sta GameObjectSpriteImage,x
sta GameObjectSpriteValue,x
jsr enemyFlippedX
lda GameObjectFlags1,x
eor #$01
sta GameObjectSpriteFlippedX,x
tya
sta GameObjectVar1,x
lda #$00
sta GameObjectVar2,x ; off animation on/off
lda #$ff
sta GameObjectVar3,x ; off animation y move
sta GameObjectVar4,x ; off animation y move
lda #$1c
sta GameObjectVar5,x ; off animation duration
rts
HandleCollectable SUBROUTINE
lda GameObjectActiveCounter,x
clc
adc GameObjectXPosLo,x
lsr
lsr
lsr
and #$03
tay
lda threeFrameAnimation4,y
clc
adc GameObjectSpriteValue,x
sta GameObjectSpriteImage,x
lda GameObjectVar2,x
beq .notoffanimation
lda GameObjectYPosLoLo,x
clc
adc GameObjectVar3,x
sta GameObjectYPosLoLo,x
lda GameObjectYPosLo,x
adc GameObjectVar4,x
sta GameObjectYPosLo,x
lda GameObjectYPosHi,x
adc #$ff
sta GameObjectYPosHi,x
lda GameObjectVar3,x
sec
sbc #<COLLECTABLE_DISAPPEAR_VELOCITY
sta GameObjectVar3,x
lda GameObjectVar4,x
sbc #>COLLECTABLE_DISAPPEAR_VELOCITY
sta GameObjectVar4,x
lda GameObjectActiveCounter,x
lsr
lsr
lsr
lsr
and #$01
asl
sec
sbc #$01
jsr enemyMoveXNoCollision
dec GameObjectVar5,x
bne .notdone
txa
jsr removeEnemyFromLevel
.notdone
rts
.notoffanimation
lda GameObjectActiveCounter,x
and #31
clc
adc GameObjectXPosLo,x
clc
adc GameObjectXPosLo,x
and #31
lsr
lsr
lsr
lsr
and #$01
asl
sec
sbc #$01
jmp enemyMoveYNoCollision
;---------------------------------------------------------
;--- the shoot of the player ---
;---------------------------------------------------------
InitPlayerShot SUBROUTINE
lda #SPRITEFRAMES_PLAYERSHOT
sta GameObjectSpriteValue,x
sta GameObjectSpriteImage,x
lda GameObjectSpriteFlippedX + PLAYERGAMEOBJECT
and #$01
sta GameObjectFlags1,x
lda #GAMEOBJECT_COLLISIONTYPE_PLAYER_SHOT
sta GameObjectCollisionType,x
lda #<[-PLAYERSHOOT1_JUMP_VELOCITY]
sta GameObjectVar1,x
lda #>[-PLAYERSHOOT1_JUMP_VELOCITY]
sta GameObjectVar2,x
lda #$ff
sta GameObjectVar3,x
rts
;---------------------------------------------------------
;--- the player shot ---
;---------------------------------------------------------
HandlePlayerShot SUBROUTINE
lda #$01
sta playerShotActive
lda GameObjectActiveCounter,x
lsr
lsr
lsr
and #$01
clc
adc #SPRITEFRAMES_PLAYERSHOT
sta GameObjectSpriteImage,x
lda GameObjectActiveCounter,x
cmp #PLAYERSHOOT1_FRAMES_DONE
bne .dontdelete
lda enemyNr
jmp removeEnemyFromScreen
.dontdelete
; handle y movement
lda GameObjectYPosLoLo,x
clc
adc GameObjectVar1,x
sta GameObjectYPosLoLo,x
lda GameObjectYPosLo,x
adc GameObjectVar2,x
sta GameObjectYPosLo,x
lda GameObjectYPosHi,x
adc GameObjectVar3,x
sta GameObjectYPosHi,x
lda GameObjectVar1,x
clc
adc #<PLAYERSHOOT1_GRAVITY
sta GameObjectVar1,x
lda GameObjectVar2,x
adc #>PLAYERSHOOT1_GRAVITY
sta GameObjectVar2,x
lda GameObjectVar3,x
adc #$00
sta GameObjectVar3,x
jsr collisionEnemyDown
cmp #$00
beq .notcollidedDown
lda #SOUND_LITTLEJUMP
jsr triggerSound
lda #<[-PLAYERSHOOT1_JUMP_VELOCITY]
sta GameObjectVar1,x
lda #>[-PLAYERSHOOT1_JUMP_VELOCITY]
sta GameObjectVar2,x
lda #$ff
sta GameObjectVar3,x
.notcollidedDown
jsr collisionEnemyUp
cmp #$00
beq .notcollidedUp
lda #$00
sta GameObjectVar1,x
sta GameObjectVar2,x
sta GameObjectVar3,x
.notcollidedUp
lda GameObjectFlags1,x
bne .flipped
lda #$00
sta GameObjectSpriteFlippedX,x
lda #$01
jsr moveEnemyRightByAccu
jmp .checkFlip
.flipped
lda #$01
sta GameObjectSpriteFlippedX,x
lda #$01
jsr moveEnemyLeftByAccu
.checkFlip
cmp #$00
beq .notFlipped
lda #SOUND_LITTLEJUMP
jsr triggerSound
ldx enemyNr
lda GameObjectFlags1,x
eor #$01
sta GameObjectFlags1,x
.notFlipped
txa
tay
jmp eAddLazerParticlesY
;---------------------------------------------------------
;--- the explosion ---
;---------------------------------------------------------
HandleExplosion SUBROUTINE
lda #$03
jsr moveEnemyUpByAccu
ldx enemyNr
lda GameObjectVar1,x
;lsr
lsr
cmp #$04
bne .display
lda enemyNr
jmp removeEnemyFromLevel
.display
clc
adc #SPRITEFRAMES_EXPLOSION
sta GameObjectSpriteImage,x
inc GameObjectVar1,x
InitExplosion ; never called
rts
;---------------------------------------------------------
;--- the sparkles (for explosions) ---
;---------------------------------------------------------
InitSparkles SUBROUTINE
lda #SPRITEFRAMES_SPARKLES
sta GameObjectSpriteImage,x
sta GameObjectSpriteValue,x
lda enemyAddPropertyIntern
sta GameObjectVar1,x
rts
HandleSparkles SUBROUTINE
lda GameObjectActiveCounter,x
cmp #12
bne .notdeleted
lda #GAMEOBJECT_COLLISIONTYPE_FREE_ENEMY_SLOT
sta GameObjectCollisionType,x ; free enemy
rts
.notdeleted
lsr
lsr
and #$03
tay
lda threeFrameAnimation4,y
clc
adc GameObjectSpriteValue,x
sta GameObjectSpriteImage,x
lda GameObjectVar1,x
beq .normalfree
sta GameObjectSpriteImage,x
lda #$fe
jsr enemyMoveYNoCollision
.normalfree
lda #$fd
jmp enemyMoveYNoCollision
;---------------------------------------------------------
;--- initializes a schalter ---
;---------------------------------------------------------
InitSchalter SUBROUTINE
lda enemyAddPropertyIntern
sta GameObjectSpriteImage,x
sta GameObjectSpriteValue,x
lda enemyAddSpecialValue
sta GameObjectVar1,x
rts
HandleSchalter SUBROUTINE
lda GameObjectVar1,x
sec
sbc #SCHALTERENEMYTYPESTART
asl
tay
lda layers + 0,y
sta .read + 1
lda layers + 1,y
sta .read + 2
.read
lda $4444
and #$01
clc
adc GameObjectSpriteValue,x
sta GameObjectSpriteImage,x
rts
| 20.12945 | 58 | 0.69582 |
bc0cb3802c362729b6d505094bbc40adc5c957b5 | 732 | asm | Assembly | oeis/060/A060735.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/060/A060735.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/060/A060735.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A060735: Numbers k at which k / (phi(k) + 1) increases.
; Submitted by Christian Krause
; 1,2,4,6,12,18,24,30,60,90,120,150,180,210,420,630,840,1050,1260,1470,1680,1890,2100,2310,4620,6930,9240,11550,13860,16170,18480,20790,23100,25410,27720,30030,60060,90090,120120,150150,180180,210210,240240,270270,300300,330330,360360,390390,420420,450450,480480,510510,1021020,1531530,2042040,2552550,3063060,3573570,4084080,4594590,5105100,5615610,6126120,6636630,7147140,7657650,8168160,8678670,9189180,9699690,19399380,29099070,38798760,48498450,58198140,67897830,77597520,87297210,96996900
lpb $0
sub $0,1
mov $2,$1
seq $2,292586 ; a(n) = A002110(A001221(n)) = product of first omega(n) primes.
add $1,$2
lpe
mov $0,$1
add $0,1
| 56.307692 | 494 | 0.76776 |
6b3cb72c06c4aa294b40b360f8f8d5d881f88a97 | 259 | asm | Assembly | 37-Dangerous-Spreadsheeting.size.asm | blueset/7bh-solutions | 988afddf87411bec06ec9e90179b55fb55345a5d | [
"MIT"
] | null | null | null | 37-Dangerous-Spreadsheeting.size.asm | blueset/7bh-solutions | 988afddf87411bec06ec9e90179b55fb55345a5d | [
"MIT"
] | null | null | null | 37-Dangerous-Spreadsheeting.size.asm | blueset/7bh-solutions | 988afddf87411bec06ec9e90179b55fb55345a5d | [
"MIT"
] | null | null | null | -- 7 Billion Humans --
-- 37: Dangerous Spraedsheeting --
-- Size: 13/14 --
-- Speed: 38/32 --
a:
if e != hole:
step e
else:
step se
if ne == hole:
step e
endif
step ne
endif
mem1 = calc c + mem1
if e != wall:
jump a
endif
pickup c
write mem1
drop
| 10.36 | 34 | 0.610039 |
24f2ac81dd7ac0b6efc111b964951ec31131ac0a | 2,091 | asm | Assembly | programs/oeis/158/A158601.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/158/A158601.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/158/A158601.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A158601: a(n) = 400*n^2 + 20.
; 20,420,1620,3620,6420,10020,14420,19620,25620,32420,40020,48420,57620,67620,78420,90020,102420,115620,129620,144420,160020,176420,193620,211620,230420,250020,270420,291620,313620,336420,360020,384420,409620,435620,462420,490020,518420,547620,577620,608420,640020,672420,705620,739620,774420,810020,846420,883620,921620,960420,1000020,1040420,1081620,1123620,1166420,1210020,1254420,1299620,1345620,1392420,1440020,1488420,1537620,1587620,1638420,1690020,1742420,1795620,1849620,1904420,1960020,2016420,2073620,2131620,2190420,2250020,2310420,2371620,2433620,2496420,2560020,2624420,2689620,2755620,2822420,2890020,2958420,3027620,3097620,3168420,3240020,3312420,3385620,3459620,3534420,3610020,3686420,3763620,3841620,3920420,4000020,4080420,4161620,4243620,4326420,4410020,4494420,4579620,4665620,4752420,4840020,4928420,5017620,5107620,5198420,5290020,5382420,5475620,5569620,5664420,5760020,5856420,5953620,6051620,6150420,6250020,6350420,6451620,6553620,6656420,6760020,6864420,6969620,7075620,7182420,7290020,7398420,7507620,7617620,7728420,7840020,7952420,8065620,8179620,8294420,8410020,8526420,8643620,8761620,8880420,9000020,9120420,9241620,9363620,9486420,9610020,9734420,9859620,9985620,10112420,10240020,10368420,10497620,10627620,10758420,10890020,11022420,11155620,11289620,11424420,11560020,11696420,11833620,11971620,12110420,12250020,12390420,12531620,12673620,12816420,12960020,13104420,13249620,13395620,13542420,13690020,13838420,13987620,14137620,14288420,14440020,14592420,14745620,14899620,15054420,15210020,15366420,15523620,15681620,15840420,16000020,16160420,16321620,16483620,16646420,16810020,16974420,17139620,17305620,17472420,17640020,17808420,17977620,18147620,18318420,18490020,18662420,18835620,19009620,19184420,19360020,19536420,19713620,19891620,20070420,20250020,20430420,20611620,20793620,20976420,21160020,21344420,21529620,21715620,21902420,22090020,22278420,22467620,22657620,22848420,23040020,23232420,23425620,23619620,23814420,24010020,24206420,24403620,24601620,24800420
mov $1,$0
mul $1,20
pow $1,2
add $1,20
| 261.375 | 2,018 | 0.863223 |
cf9eddb2bc5f781784b605566bd869f7135847d4 | 674 | asm | Assembly | src/examples/setBorderColor.asm | digitsensitive/c64 | 47b0aa02910c26f49bae967f573466b94143ec74 | [
"Unlicense"
] | 2 | 2020-12-04T23:25:20.000Z | 2021-11-04T21:56:37.000Z | src/examples/setBorderColor.asm | digitsensitive/c64 | 47b0aa02910c26f49bae967f573466b94143ec74 | [
"Unlicense"
] | null | null | null | src/examples/setBorderColor.asm | digitsensitive/c64 | 47b0aa02910c26f49bae967f573466b94143ec74 | [
"Unlicense"
] | 1 | 2022-02-02T12:14:56.000Z | 2022-02-02T12:14:56.000Z | ; ==========================================================
; COMMODORE 64 - Examples in 6502 Assembly language
; © Digitsensitive; digit.sensitivee@gmail.com
; How to set the border color
; ==========================================================
; ----------------------------------------------------------
; Labels
; ----------------------------------------------------------
border = $d020
; ----------------------------------------------------------
; Main Loop
; ----------------------------------------------------------
*=$02a7 ; sys 679
loop lda #$04 ; set border color to purple
sta border
jmp loop | 32.095238 | 60 | 0.268546 |
810c88caed33471ce734018e923eb42da12f56e3 | 6,094 | asm | Assembly | bcd32.asm | magore/picfloat | 7e3e4d1aa5c5258032da6a3b16ff37772844dfb0 | [
"Unlicense"
] | 1 | 2021-07-06T10:41:31.000Z | 2021-07-06T10:41:31.000Z | bcd32.asm | magore/picfloat | 7e3e4d1aa5c5258032da6a3b16ff37772844dfb0 | [
"Unlicense"
] | null | null | null | bcd32.asm | magore/picfloat | 7e3e4d1aa5c5258032da6a3b16ff37772844dfb0 | [
"Unlicense"
] | null | null | null | ;File: bcd32.asm
; ========================================================================
; PIC Floating point library
; ========================================================================
; Copyright (C) 1991,1997,1998,1999,2000,2001,2002,2003 Mike Gore
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
;
; * Redistributions of source code must retain the above copyright notice,
; this list of conditions and the following disclaimer.
; * Redistributions in binary form must reproduce the above copyright notice,
; this list of conditions and the following disclaimer in the documentation
; and/or other materials provided with the distribution.
; * Neither the name of the <ORGANIZATION> nor the names of its contributors
; may be used to endorse or promote products derived from this software
; without specific prior written permission.
;
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
; ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
; LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
; SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
; CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
; ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
; POSSIBILITY OF SUCH DAMAGE
;
; Contact Information
; Mike Gore
; Infowrite Consulting
; 405 Midwood Cres.
; Waterloo Ont
; N2L 5N4
; Phone: 519-884-4943 home
; Fax: 519-885-0548 fax
; Email: magore@sympatico.ca - or - magore@uwaterloo.ca
; ========================================================================
; ========================================================================
; ***** Please Use TABS = 4 when viewing this file ****
; ========================================================================
#ifndef BCD32_ASM
#define BCD32_ASM
; BCD32
; Convert AC32 to a packed 10 digit BCD RESULT
;
; USES FPac and FPtmp
;
; BCD32
; Overlay AC32 and TMP32
; 4+5+1+1+1 = 12 bytes
; Memory Layout:
; AC32
; BCD_BUF[0] FPac_EXP
; BCD_BUF[1] FPac_SIGN
; BCD_BUF[2] FPtmp+0
; BCD_BUF[3] FPtmp+1
; BCD_BUF[4] FPtmp+2
; BCD_CNT FPtmp+3
; BCD_CNT2 FPtmp_EXP
; BCD_DIG FPtmp_SIGN
BCD_BUF equ AC32+4 ; All 6 bytes = 12 BCD digits
BCD_CNT equ BCD_BUF+5 ; Loop counter
BCD_CNT2 equ BCD_CNT+1 ; Loop Counter2
BCD_DIG equ BCD_CNT2+1
; BCD_CONTROL flags
BCD_SIGN equ 7 ; 1 = Negative
BCD_LZEROS equ 6 ; 1 = supress leading ZEROS
BCD_PLUS equ 5 ; 1 = Display + when positive
; Notes:
; Convert binary to packed bcd 1 bit at a time
;
; The method calculates the decimal adjusted result 1 bit at
; a time by shifting the binary value into the LSB of the bcd
; result and the decimal adjusting the remaining bcd digits.
;
;
; We move the bcd adjustment to the top of the loop to
; just avoid an extra loop test.
; You may move the entire bcd adjust routine to the end of the loop
; and test for loop completion prior to the bcd adjust function
; with no other changes.
_BCD32: ; Convert Signed AC32 into packed ACSII stored in BCD_BUF - signed
CLR8 BCD_STATUS
JMP_BCLR AC32_MSB,7,_BCD32_MAIN
BSET BCD_STATUS,BCD_SIGN
AC32_NEG
JMP _BCD32_MAIN
; BCD32U() Convert AC32 into packed ACSII stored in BCD_BUF - unsigned
_BCD32U: ; Convert Unsigned AC32 into packed ACSII stored in BCD_BUF - signed
CLR8 BCD_STATUS
_BCD32_MAIN
LOAD8I BCD_CNT,32 ; 32 bits
IN_CLR BCD_BUF,5 ; BCD buffer is 5 bytes, 10 digits
; Outer binary shift Loop is 32 times, 32 bits
_BCD32_LOOP
; Inner BCD adjust loop
; 10 digits
;
LOAD8I FSR,BCD_BUF
LOAD8I BCD_CNT2,5
_BCD32_ADJ
ADD8I INDF,0x03 ; [FSR] += 0x03
JMP_BSET INDF,3,_BCD32_ADJ_LOW
SUB8I INDF,0x03 ; Restore
_BCD32_ADJ_LOW
ADD8I INDF,0x30 ; [FSR] += 0x30
JMP_BSET INDF,7,_BCD32_ADJ_HI
SUB8I INDF,0x30 ; Restore
_BCD32_ADJ_HI
INC8 FSR
DJNZ8 BCD_CNT2,_BCD32_ADJ
; SHIFT AC32 into BCD_BUF 4 + 5 bytes
;
LOAD8I FSR,AC32
LOAD8I BCD_CNT2,9
CLRC ; Clear Carry
_BCD32_SHIFT
RL8_MSB INDF
INC8 FSR
DJNZ8 BCD_CNT2,_BCD32_SHIFT
DJNZ8 BCD_CNT, _BCD32_LOOP
_BCD32_EXIT
CLR8 BCD_CNT2 ; Used as offset for decimal PT
ENDSUB
; ===================================================================
_BCD32_PUTS: ; Display BCD result from packed ACSII BCD_BUF
LOAD8I BCD_CNT,9 ; 9 .. 0, 10 digits
; Entry for less then 10 digits
_BCD32_PUTS_CNT ; Output less then 10 digits
JMP_BCLR BCD_STATUS,BCD_SIGN,_BCD32_PUTS_P
; Minus
PUTCI '-'
JMP _BCD32_PUTS_LOOP
_BCD32_PUTS_P
; Plus ?
JMP_BCLR BCD_STATUS,BCD_PLUS,_BCD32_PUTS_LOOP
PUTCI '+'
; Main
_BCD32_PUTS_LOOP
; Display BCD Digit
; BCD32_DIG: Get a nibble from the BCD BUFFER
_BCD32_DIGIT: ; Display one BCD digit from packed ACSII BCD_BUF
MOV8 BCD_DIG,BCD_CNT ; Compute index into BCD_BUF
SH8_LSB BCD_DIG ; BCD_BUF + (BCD_CNT >> 1)
ADD8I BCD_DIG,BCD_BUF
MOV8 FSR,BCD_DIG
movf INDF,w ; [FSR] Lower nibble into lower W
JMP_BCLR BCD_CNT,0,_BCD32_DIGIT_LOW ; Test for HIGH/LOW BYTE
_BCD32_DIGIT_HI ; Upper Nibble
swapf INDF,w ; Upper nibble into lower W
_BCD32_DIGIT_LOW
andlw 0x0f
movwf BCD_DIG
; Dsiplay leading ZEROs ?
JMP_BCLR BCD_STATUS,BCD_LZEROS,_BCD_PUTC_C
; Skip Leading Zeros!
JMP_Z _BCD_PUTC_DEC
BCLR BCD_STATUS,BCD_LZEROS ; NON XERO, Turn off skipping
; Display digit
_BCD_PUTC_C
ADD8I BCD_DIG,0x30
PUTC BCD_DIG
_BCD_PUTC_DEC
DEC8 BCD_CNT
JMP_BCLR BCD_CNT,7,_BCD32_PUTS_LOOP ; < 0 ?
; If the whole number was zero then display one zero!
;
;
; If we saw NO ZEROS while skiping leading zeros, then display one '0'
JMP_BCLR BCD_STATUS, BCD_LZEROS, _BCD32_PUTS_X
PUTCI '0'
_BCD32_PUTS_X
ENDSUB
; =========================================================================
; ENDIF BCD32_ASM
#endif
| 29.019048 | 78 | 0.69593 |
b8ce1b3b547bab41184b6227224233434a769940 | 24,679 | asm | Assembly | lib/builtin_lib.asm | spectrometerHBH/Daedalus | d0580748f8d25ddf4cfbf95dda57b55f2dac22b7 | [
"Apache-2.0"
] | 10 | 2019-05-13T13:11:01.000Z | 2021-03-06T23:38:19.000Z | lib/builtin_lib.asm | spectrometerHBH/Daedalus | d0580748f8d25ddf4cfbf95dda57b55f2dac22b7 | [
"Apache-2.0"
] | null | null | null | lib/builtin_lib.asm | spectrometerHBH/Daedalus | d0580748f8d25ddf4cfbf95dda57b55f2dac22b7 | [
"Apache-2.0"
] | 4 | 2020-01-30T11:40:37.000Z | 2021-11-22T11:33:25.000Z | __builtin_string_add:
push r15
push r14
push r13
push r12
push rbp
push rbx
mov rbp, rsi
sub rsp, 24
mov rbx, qword [rdi]
mov r15, qword [rsi]
mov qword [rsp+8H], rdi
lea edi, [rbx+r15+9H]
movsxd rdi, edi
call malloc
mov r14, rax
lea eax, [r15+rbx]
test ebx, ebx
lea r12, [r14+8H]
mov rcx, qword [rsp+8H]
cdqe
mov qword [r14], rax
jle L_003
lea r13d, [rbx-1H]
lea rsi, [rcx+8H]
mov rdi, r12
lea rdx, [r13+1H]
mov rbx, r13
call memcpy
L_001: test r15d, r15d
jle L_002
lea r13d, [r15-1H]
movsxd rbx, ebx
lea rsi, [rbp+8H]
lea rdi, [r14+rbx+9H]
add r13, 1
mov rdx, r13
add r13, rbx
call memcpy
L_002: mov byte [r12+r13+1H], 0
add rsp, 24
mov rax, r14
pop rbx
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
ALIGN 8
L_003: mov r13, -1
mov ebx, r13d
jmp L_001
ALIGN 16
__builtin_string_equal:
sub rsp, 8
add rsi, 8
add rdi, 8
call strcmp
test eax, eax
sete al
add rsp, 8
movzx eax, al
ret
ALIGN 8
__builtin_string_inequal:
sub rsp, 8
add rsi, 8
add rdi, 8
call strcmp
test eax, eax
setne al
add rsp, 8
movzx eax, al
ret
ALIGN 8
__builtin_string_less:
sub rsp, 8
add rsi, 8
add rdi, 8
call strcmp
add rsp, 8
shr eax, 31
ret
ALIGN 8
__builtin_string_less_equal:
sub rsp, 8
add rsi, 8
add rdi, 8
call strcmp
test eax, eax
setle al
add rsp, 8
movzx eax, al
ret
ALIGN 8
__builtin_string_great:
sub rsp, 8
add rsi, 8
add rdi, 8
call strcmp
test eax, eax
setg al
add rsp, 8
movzx eax, al
ret
ALIGN 8
__builtin_string_great_equal:
sub rsp, 8
add rsi, 8
add rdi, 8
call strcmp
not eax
add rsp, 8
shr eax, 31
ret
ALIGN 8
__builtin_print:
lea rdx, [rdi+8H]
lea rsi, [rel LC0]
mov edi, 1
xor eax, eax
jmp __printf_chk
ALIGN 16
__builtin_println:
add rdi, 8
jmp puts
ALIGN 8
__builtin_printInt:
push rbp
push rbx
sub rsp, 56
mov rax, qword [fs:abs 28H]
mov qword [rsp+28H], rax
xor eax, eax
test edi, edi
je L_008
mov ebx, edi
js L_007
L_004: mov eax, ebx
mov esi, 3435973837
mov edi, ebx
mul esi
mov ecx, edx
shr ecx, 3
lea eax, [rcx+rcx*4]
add eax, eax
sub edi, eax
test ecx, ecx
mov dword [rsp], edi
je L_010
mov eax, ecx
mul esi
shr edx, 3
lea eax, [rdx+rdx*4]
add eax, eax
sub ecx, eax
mov eax, ebx
mov dword [rsp+4H], ecx
mov ecx, 1374389535
mul ecx
mov ecx, edx
shr ecx, 5
test ecx, ecx
je L_011
mov eax, ecx
mul esi
shr edx, 3
lea eax, [rdx+rdx*4]
mov edx, 274877907
add eax, eax
sub ecx, eax
mov eax, ebx
mul edx
mov dword [rsp+8H], ecx
shr edx, 6
test edx, edx
mov ecx, edx
je L_012
mov eax, edx
mul esi
shr edx, 3
lea eax, [rdx+rdx*4]
mov edx, 3518437209
add eax, eax
sub ecx, eax
mov eax, ebx
mul edx
mov dword [rsp+0CH], ecx
mov ecx, edx
shr ecx, 13
test ecx, ecx
je L_009
mov eax, ecx
mul esi
shr edx, 3
lea eax, [rdx+rdx*4]
mov edx, ebx
shr edx, 5
add eax, eax
sub ecx, eax
mov eax, edx
mov dword [rsp+10H], ecx
mov ecx, 175921861
mul ecx
mov ecx, edx
shr ecx, 7
test ecx, ecx
je L_013
mov eax, ecx
mul esi
shr edx, 3
lea eax, [rdx+rdx*4]
mov edx, 1125899907
add eax, eax
sub ecx, eax
mov eax, ebx
mul edx
mov dword [rsp+14H], ecx
shr edx, 18
test edx, edx
mov ecx, edx
je L_014
mov eax, edx
mul esi
shr edx, 3
lea eax, [rdx+rdx*4]
mov edx, 1801439851
add eax, eax
sub ecx, eax
mov eax, ebx
mul edx
mov dword [rsp+18H], ecx
mov ecx, edx
shr ecx, 22
test ecx, ecx
je L_016
mov eax, ecx
mul esi
shr edx, 3
lea eax, [rdx+rdx*4]
mov edx, 1441151881
add eax, eax
sub ecx, eax
mov eax, ebx
mul edx
mov dword [rsp+1CH], ecx
shr edx, 25
test edx, edx
mov ecx, edx
je L_017
mov eax, edx
shr ebx, 9
mul esi
shr edx, 3
lea eax, [rdx+rdx*4]
mov edx, 281475
add eax, eax
sub ecx, eax
mov eax, ebx
mul edx
mov dword [rsp+20H], ecx
shr edx, 7
test edx, edx
je L_015
mov dword [rsp+24H], edx
mov eax, 10
L_005: sub eax, 1
lea rbp, [rsp-4H]
cdqe
shl rax, 2
lea rbx, [rsp+rax]
ALIGN 8
L_006: mov eax, dword [rbx]
mov rsi, qword [rel stdout]
sub rbx, 4
lea edi, [rax+30H]
call _IO_putc
cmp rbx, rbp
jnz L_006
mov rax, qword [rsp+28H]
xor rax, qword [fs:abs 28H]
jne L_018
add rsp, 56
pop rbx
pop rbp
ret
ALIGN 8
L_007: mov rsi, qword [rel stdout]
mov edi, 45
neg ebx
call _IO_putc
jmp L_004
L_008: mov rax, qword [rsp+28H]
xor rax, qword [fs:abs 28H]
jne L_018
mov rsi, qword [rel stdout]
add rsp, 56
mov edi, 48
pop rbx
pop rbp
jmp _IO_putc
ALIGN 8
L_009: mov eax, 4
jmp L_005
ALIGN 8
L_010: mov eax, 1
jmp L_005
ALIGN 8
L_011: mov eax, 2
jmp L_005
ALIGN 8
L_012: mov eax, 3
jmp L_005
ALIGN 8
L_013: mov eax, 5
jmp L_005
ALIGN 8
L_014: mov eax, 6
jmp L_005
L_015: mov eax, 9
jmp L_005
L_016: mov eax, 7
jmp L_005
L_017: mov eax, 8
jmp L_005
L_018:
call __stack_chk_fail
ALIGN 8
__builtin_printlnInt:
push rbp
push rbx
sub rsp, 56
mov rsi, qword [rel stdout]
mov rax, qword [fs:abs 28H]
mov qword [rsp+28H], rax
xor eax, eax
test edi, edi
je L_023
mov ebx, edi
js L_022
L_019: mov eax, ebx
mov edi, 3435973837
mul edi
mov ecx, edx
mov edx, ebx
shr ecx, 3
lea eax, [rcx+rcx*4]
add eax, eax
sub edx, eax
test ecx, ecx
mov dword [rsp], edx
je L_026
mov eax, ecx
mul edi
shr edx, 3
lea eax, [rdx+rdx*4]
add eax, eax
sub ecx, eax
mov eax, ebx
mov dword [rsp+4H], ecx
mov ecx, 1374389535
mul ecx
mov ecx, edx
shr ecx, 5
test ecx, ecx
je L_027
mov eax, ecx
mul edi
shr edx, 3
lea eax, [rdx+rdx*4]
mov edx, 274877907
add eax, eax
sub ecx, eax
mov eax, ebx
mul edx
mov dword [rsp+8H], ecx
mov ecx, edx
shr ecx, 6
test ecx, ecx
je L_028
mov eax, ecx
mul edi
shr edx, 3
lea eax, [rdx+rdx*4]
mov edx, 3518437209
add eax, eax
sub ecx, eax
mov eax, ebx
mul edx
mov dword [rsp+0CH], ecx
mov ecx, edx
shr ecx, 13
test ecx, ecx
je L_025
mov eax, ecx
mul edi
shr edx, 3
lea eax, [rdx+rdx*4]
mov edx, ebx
shr edx, 5
add eax, eax
sub ecx, eax
mov eax, edx
mov dword [rsp+10H], ecx
mov ecx, 175921861
mul ecx
shr edx, 7
test edx, edx
mov ecx, edx
je L_029
mov eax, edx
mul edi
shr edx, 3
lea eax, [rdx+rdx*4]
mov edx, 1125899907
add eax, eax
sub ecx, eax
mov eax, ebx
mul edx
mov dword [rsp+14H], ecx
mov ecx, edx
shr ecx, 18
test ecx, ecx
je L_030
mov eax, ecx
mul edi
shr edx, 3
lea eax, [rdx+rdx*4]
mov edx, 1801439851
add eax, eax
sub ecx, eax
mov eax, ebx
mul edx
mov dword [rsp+18H], ecx
mov ecx, edx
shr ecx, 22
test ecx, ecx
je L_032
mov eax, ecx
mul edi
shr edx, 3
lea eax, [rdx+rdx*4]
mov edx, 1441151881
add eax, eax
sub ecx, eax
mov eax, ebx
mul edx
mov dword [rsp+1CH], ecx
shr edx, 25
test edx, edx
mov ecx, edx
je L_033
mov eax, edx
shr ebx, 9
mul edi
shr edx, 3
lea eax, [rdx+rdx*4]
mov edx, 281475
add eax, eax
sub ecx, eax
mov eax, ebx
mul edx
mov dword [rsp+20H], ecx
shr edx, 7
test edx, edx
je L_031
mov dword [rsp+24H], edx
mov eax, 10
L_020: sub eax, 1
lea rbp, [rsp-4H]
cdqe
shl rax, 2
lea rbx, [rsp+rax]
L_021: mov eax, dword [rbx]
sub rbx, 4
lea edi, [rax+30H]
call _IO_putc
cmp rbx, rbp
mov rsi, qword [rel stdout]
jnz L_021
jmp L_024
ALIGN 8
L_022: mov edi, 45
neg ebx
call _IO_putc
mov rsi, qword [rel stdout]
jmp L_019
ALIGN 16
L_023: mov edi, 48
call _IO_putc
mov rsi, qword [rel stdout]
L_024: mov rax, qword [rsp+28H]
xor rax, qword [fs:abs 28H]
jne L_034
add rsp, 56
mov edi, 10
pop rbx
pop rbp
jmp _IO_putc
ALIGN 8
L_025: mov eax, 4
jmp L_020
ALIGN 8
L_026: mov eax, 1
jmp L_020
ALIGN 8
L_027: mov eax, 2
jmp L_020
ALIGN 8
L_028: mov eax, 3
jmp L_020
ALIGN 8
L_029: mov eax, 5
jmp L_020
ALIGN 8
L_030: mov eax, 6
jmp L_020
L_031: mov eax, 9
jmp L_020
L_032: mov eax, 7
jmp L_020
L_033: mov eax, 8
jmp L_020
L_034:
call __stack_chk_fail
nop
ALIGN 16
__builtin_getString:
push rbp
push rbx
mov edi, 266
sub rsp, 8
call malloc
lea rbx, [rax+8H]
lea rdi, [rel LC0]
mov rbp, rax
xor eax, eax
mov rsi, rbx
call scanf
mov rdx, rbx
L_035: mov ecx, dword [rdx]
add rdx, 4
lea eax, [rcx-1010101H]
not ecx
and eax, ecx
and eax, 80808080H
jz L_035
mov ecx, eax
shr ecx, 16
test eax, 8080H
cmove eax, ecx
lea rcx, [rdx+2H]
mov esi, eax
cmove rdx, rcx
add sil, al
mov rax, rbp
sbb rdx, 3
sub rdx, rbx
mov qword [rbp], rdx
add rsp, 8
pop rbx
pop rbp
ret
ALIGN 16
__builtin_getInt:
mov rdi, qword [rel stdin]
push r12
push rbp
push rbx
call _IO_getc
lea edx, [rax-30H]
cmp dl, 9
jbe L_040
mov ebx, eax
xor ebp, ebp
mov r12d, 1
ALIGN 8
L_036: mov rdi, qword [rel stdin]
cmp bl, 45
cmove ebp, r12d
call _IO_getc
movsx ebx, al
sub eax, 48
cmp al, 9
ja L_036
sub ebx, 48
movsxd rbx, ebx
jmp L_038
ALIGN 8
L_037: lea rax, [rbx+rbx*4]
lea rbx, [rdx+rax*2-30H]
L_038: mov rdi, qword [rel stdin]
call _IO_getc
movsx rdx, al
sub eax, 48
cmp al, 9
jbe L_037
mov rax, rbx
neg rax
test bpl, bpl
cmovne rbx, rax
L_039: mov rax, rbx
pop rbx
pop rbp
pop r12
ret
ALIGN 8
L_040: mov rdi, qword [rel stdin]
movsx ebx, al
sub ebx, 48
movsxd rbx, ebx
call _IO_getc
movsx rdx, al
sub eax, 48
cmp al, 9
ja L_039
xor ebp, ebp
jmp L_037
ALIGN 8
__builtin_toString:
push r12
push rbp
push rbx
sub rsp, 64
mov rax, qword [fs:abs 28H]
mov qword [rsp+38H], rax
xor eax, eax
test edi, edi
js L_042
jne L_046
mov edi, 10
mov dword [rsp+4H], 0
call malloc
movzx edi, byte [rsp+4H]
mov qword [rax], 1
mov byte [rax+9H], 0
lea edx, [rdi+30H]
mov byte [rax+8H], dl
L_041: mov rdi, qword [rsp+38H]
xor rdi, qword [fs:abs 28H]
jne L_056
add rsp, 64
pop rbx
pop rbp
pop r12
ret
ALIGN 16
L_042: neg edi
mov ebp, 1
L_043: mov eax, edi
mov edx, 3435973837
mov ebx, edi
mul edx
shr edx, 3
lea eax, [rdx+rdx*4]
mov ecx, edx
add eax, eax
sub ebx, eax
test edx, edx
mov dword [rsp+4H], ebx
je L_047
mov eax, edx
mov esi, 1717986919
imul esi
shr edx, 2
lea eax, [rdx+rdx*4]
mov edx, 1374389535
add eax, eax
sub ecx, eax
mov eax, edi
mul edx
mov dword [rsp+8H], ecx
shr edx, 5
test edx, edx
mov ecx, edx
je L_048
mov eax, edx
imul esi
shr edx, 2
lea eax, [rdx+rdx*4]
mov edx, 274877907
add eax, eax
sub ecx, eax
mov eax, edi
mul edx
mov dword [rsp+0CH], ecx
shr edx, 6
test edx, edx
mov ecx, edx
je L_049
mov eax, edx
imul esi
shr edx, 2
lea eax, [rdx+rdx*4]
mov edx, 3518437209
add eax, eax
sub ecx, eax
mov eax, edi
mul edx
mov dword [rsp+10H], ecx
shr edx, 13
test edx, edx
mov ecx, edx
je L_051
mov eax, edx
imul esi
shr edx, 2
lea eax, [rdx+rdx*4]
mov edx, edi
shr edx, 5
add eax, eax
sub ecx, eax
mov eax, edx
mov dword [rsp+14H], ecx
mov ecx, 175921861
mul ecx
shr edx, 7
test edx, edx
mov ecx, edx
je L_050
mov eax, edx
imul esi
shr edx, 2
lea eax, [rdx+rdx*4]
mov edx, 1125899907
add eax, eax
sub ecx, eax
mov eax, edi
mul edx
mov dword [rsp+18H], ecx
shr edx, 18
test edx, edx
mov ecx, edx
je L_052
mov eax, edx
imul esi
shr edx, 2
lea eax, [rdx+rdx*4]
mov edx, 1801439851
add eax, eax
sub ecx, eax
mov eax, edi
mul edx
mov dword [rsp+1CH], ecx
shr edx, 22
test edx, edx
mov ecx, edx
je L_053
mov eax, edx
imul esi
shr edx, 2
lea eax, [rdx+rdx*4]
mov edx, 1441151881
add eax, eax
sub ecx, eax
mov eax, edi
mul edx
mov dword [rsp+20H], ecx
shr edx, 25
test edx, edx
mov ecx, edx
je L_054
mov eax, edx
shr edi, 9
imul esi
mov esi, edx
mov edx, 281475
shr esi, 2
lea eax, [rsi+rsi*4]
add eax, eax
sub ecx, eax
mov eax, edi
mul edx
mov dword [rsp+24H], ecx
shr edx, 7
test edx, edx
je L_055
mov dword [rsp+28H], edx
mov ebx, 10
L_044: lea r12d, [rbx+rbp]
lea edi, [r12+9H]
movsxd r12, r12d
movsxd rdi, edi
call malloc
test ebp, ebp
mov qword [rax], r12
lea rdx, [rax+8H]
mov byte [rax+r12+8H], 0
jz L_045
mov byte [rax+8H], 45
L_045: movsxd rcx, ebx
movsxd rsi, ebp
mov ecx, dword [rsp+rcx*4]
add ecx, 48
cmp ebx, 1
mov byte [rdx+rsi], cl
je L_041
lea esi, [rbx-1H]
lea ecx, [rbp+1H]
movsxd rsi, esi
movsxd rcx, ecx
mov esi, dword [rsp+rsi*4]
add esi, 48
cmp ebx, 2
mov byte [rdx+rcx], sil
je L_041
lea esi, [rbx-2H]
lea ecx, [rbp+2H]
movsxd rsi, esi
movsxd rcx, ecx
mov esi, dword [rsp+rsi*4]
add esi, 48
cmp ebx, 3
mov byte [rdx+rcx], sil
je L_041
lea esi, [rbx-3H]
lea ecx, [rbp+3H]
movsxd rsi, esi
movsxd rcx, ecx
mov esi, dword [rsp+rsi*4]
add esi, 48
cmp ebx, 4
mov byte [rdx+rcx], sil
je L_041
lea esi, [rbx-4H]
lea ecx, [rbp+4H]
movsxd rsi, esi
movsxd rcx, ecx
mov esi, dword [rsp+rsi*4]
add esi, 48
cmp ebx, 5
mov byte [rdx+rcx], sil
je L_041
lea esi, [rbx-5H]
lea ecx, [rbp+5H]
movsxd rsi, esi
movsxd rcx, ecx
mov esi, dword [rsp+rsi*4]
add esi, 48
cmp ebx, 6
mov byte [rdx+rcx], sil
je L_041
lea esi, [rbx-6H]
lea ecx, [rbp+6H]
movsxd rsi, esi
movsxd rcx, ecx
mov esi, dword [rsp+rsi*4]
add esi, 48
cmp ebx, 7
mov byte [rdx+rcx], sil
je L_041
lea esi, [rbx-7H]
lea ecx, [rbp+7H]
movsxd rsi, esi
movsxd rcx, ecx
mov esi, dword [rsp+rsi*4]
add esi, 48
cmp ebx, 8
mov byte [rdx+rcx], sil
je L_041
lea esi, [rbx-8H]
lea ecx, [rbp+8H]
movsxd rsi, esi
movsxd rcx, ecx
mov esi, dword [rsp+rsi*4]
add esi, 48
cmp ebx, 9
mov byte [rdx+rcx], sil
je L_041
movzx ebx, byte [rsp+4H]
add ebp, 9
movsxd rbp, ebp
lea ecx, [rbx+30H]
mov byte [rdx+rbp], cl
jmp L_041
ALIGN 8
L_046: xor ebp, ebp
jmp L_043
ALIGN 16
L_047: mov ebx, 1
jmp L_044
ALIGN 8
L_048: mov ebx, 2
jmp L_044
ALIGN 8
L_049: mov ebx, 3
jmp L_044
ALIGN 8
L_050: mov ebx, 5
jmp L_044
ALIGN 8
L_051: mov ebx, 4
jmp L_044
ALIGN 8
L_052: mov ebx, 6
jmp L_044
ALIGN 8
L_053: mov ebx, 7
jmp L_044
ALIGN 8
L_054: mov ebx, 8
jmp L_044
ALIGN 8
L_055: mov ebx, 9
jmp L_044
L_056:
call __stack_chk_fail
nop
ALIGN 16
__builtin_string_substring:
push r15
push r14
push r13
movsxd r13, esi
push r12
push rbp
push rbx
mov ebx, edx
sub ebx, r13d
mov r12, rdi
lea edi, [rbx+0AH]
lea r15d, [rbx+1H]
sub rsp, 8
movsxd rdi, edi
movsxd r14, r15d
call malloc
test r15d, r15d
mov rbp, rax
mov qword [rax], r14
jle L_057
mov edx, ebx
lea rdi, [rax+8H]
lea rsi, [r12+r13+8H]
add rdx, 1
call memcpy
L_057: mov byte [rbp+r14+8H], 0
add rsp, 8
mov rax, rbp
pop rbx
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
ALIGN 16
__builtin_string_parseInt:
mov edx, 1
xor esi, esi
mov r9d, 1
jmp L_059
ALIGN 8
L_058: cmp al, 45
cmove esi, r9d
add rdx, 1
L_059: movsx eax, byte [rdi+rdx+7H]
movsxd r8, edx
lea ecx, [rax-30H]
cmp cl, 9
ja L_058
movsx edx, byte [rdi+r8+8H]
sub eax, 48
lea ecx, [rdx-30H]
cmp cl, 9
ja L_061
lea rcx, [rdi+r8+9H]
L_060: lea eax, [rax+rax*4]
add rcx, 1
lea eax, [rdx+rax*2-30H]
movsx edx, byte [rcx-1H]
lea edi, [rdx-30H]
cmp dil, 9
jbe L_060
L_061: mov edx, eax
neg edx
test sil, sil
cmovne eax, edx
ret
ALIGN 16
__builtin_string_ord:
add esi, 8
movsxd rsi, esi
movsx eax, byte [rdi+rsi]
ret
SECTION .data
SECTION .bss
SECTION .rodata.str1.1
LC0:
db 25H, 73H, 00H | 19.131008 | 39 | 0.399206 |
7fb4aa72ea92d0193ba89c535e934dede9a8401d | 5,161 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1776.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_notsx.log_21829_1776.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_notsx.log_21829_1776.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %rax
push %rcx
push %rdx
push %rsi
lea addresses_A_ht+0x177ac, %r15
nop
and %rsi, %rsi
vmovups (%r15), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $0, %xmm5, %rcx
nop
nop
nop
nop
sub %r15, %r15
lea addresses_WC_ht+0x612c, %rdx
nop
cmp $27734, %rax
and $0xffffffffffffffc0, %rdx
vmovntdqa (%rdx), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $0, %xmm5, %r14
nop
nop
nop
nop
nop
inc %rdx
lea addresses_WC_ht+0xbd7c, %r14
nop
add $1398, %r13
mov (%r14), %eax
nop
nop
add $18246, %rcx
lea addresses_normal_ht+0x1ef2c, %rdx
nop
nop
nop
nop
sub %rcx, %rcx
mov $0x6162636465666768, %rsi
movq %rsi, (%rdx)
nop
nop
nop
nop
add %rdx, %rdx
pop %rsi
pop %rdx
pop %rcx
pop %rax
pop %r15
pop %r14
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %rbx
push %rcx
push %rsi
// Store
lea addresses_RW+0xda84, %r11
nop
nop
nop
nop
sub $63937, %rcx
movw $0x5152, (%r11)
nop
cmp $63956, %rcx
// Faulty Load
lea addresses_WT+0xe12c, %r11
nop
nop
sub $37959, %rbx
mov (%r11), %ecx
lea oracles, %r14
and $0xff, %rcx
shlq $12, %rcx
mov (%r14,%rcx,1), %rcx
pop %rsi
pop %rcx
pop %rbx
pop %r14
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT', 'congruent': 0}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_RW', 'congruent': 1}, 'OP': 'STOR'}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WT', 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_A_ht', 'congruent': 1}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 32, 'type': 'addresses_WC_ht', 'congruent': 7}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WC_ht', 'congruent': 4}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal_ht', 'congruent': 9}, 'OP': 'STOR'}
{'39': 21829}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
| 44.491379 | 2,999 | 0.659756 |
23dcd26969116b96856c73c3f552d281c132b202 | 704 | asm | Assembly | programs/oeis/019/A019444.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/019/A019444.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/019/A019444.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A019444: a_1, a_2, ..., is a permutation of the positive integers such that the average of each initial segment is an integer, using the greedy algorithm to define a_n.
; 1,3,2,6,8,4,11,5,14,16,7,19,21,9,24,10,27,29,12,32,13,35,37,15,40,42,17,45,18,48,50,20,53,55,22,58,23,61,63,25,66,26,69,71,28,74,76,30,79,31,82,84,33,87,34,90,92,36,95,97,38,100,39,103,105,41,108,110,43,113,44,116,118,46,121,47,124,126,49,129,131,51,134,52,137,139,54,142,144,56,147,57,150,152,59,155,60,158,160,62
mov $3,2
mov $5,$0
lpb $3
mov $0,$5
sub $3,1
add $0,$3
trn $0,1
seq $0,293688 ; Partial sums of A002251.
mov $2,$3
mul $2,$0
add $1,$2
mov $4,$0
lpe
min $5,1
mul $5,$4
sub $1,$5
add $1,1
mov $0,$1
| 32 | 316 | 0.650568 |
f3786a3df019ec3410d5e0eafd2dd03a87c30ceb | 766 | asm | Assembly | oeis/208/A208402.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/208/A208402.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/208/A208402.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A208402: Number of n X 2 0..3 arrays with new values 0..3 introduced in row major order and no element equal to more than two of its immediate leftward or upward or right-upward antidiagonal neighbors.
; 2,15,187,2795,43947,700075,11188907,178973355,2863377067,45813246635,733008800427,11728128223915,187650001250987,3002399818689195,48038396293720747,768614337478306475,12297829386768001707,196765270136748419755,3148244321981816285867,50371909150884426853035,805950546410852294765227,12895208742560442576710315,206323339880914304669231787,3301173438094417768475175595,52818775009509839870672677547,845100400152154060231042312875,13521606402434451452897794894507,216345702438951169203169189866155
mov $1,4
pow $1,$0
mul $1,2
add $1,2
bin $1,2
div $1,3
mov $0,$1
| 69.636364 | 495 | 0.862924 |
7f703b80d570e3606b2cbbbddf6085e18370aff4 | 6,762 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_sm_/i3-7100_9_0x84_notsx.log_21829_205.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_sm_/i3-7100_9_0x84_notsx.log_21829_205.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_sm_/i3-7100_9_0x84_notsx.log_21829_205.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 %r14
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x92, %rdx
clflush (%rdx)
nop
nop
sub $38406, %r10
movb $0x61, (%rdx)
nop
nop
nop
sub %r15, %r15
lea addresses_A_ht+0x7eba, %r14
nop
sub %r13, %r13
mov $0x6162636465666768, %r12
movq %r12, %xmm5
vmovups %ymm5, (%r14)
nop
nop
xor $3922, %r14
lea addresses_WC_ht+0x11fa7, %rsi
lea addresses_A_ht+0xf06e, %rdi
nop
nop
nop
nop
and $49398, %r14
mov $72, %rcx
rep movsq
nop
nop
nop
xor $4513, %rsi
lea addresses_D_ht+0xd808, %r12
nop
nop
nop
and $37651, %r10
mov (%r12), %rcx
cmp $45006, %rdx
lea addresses_A_ht+0x12592, %rsi
lea addresses_A_ht+0x1ed92, %rdi
clflush (%rsi)
nop
add $41006, %rdx
mov $127, %rcx
rep movsq
nop
and %rdx, %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r15
pop %r14
pop %r13
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r9
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_WT+0x1bc92, %rbp
nop
nop
nop
nop
inc %rax
mov $0x5152535455565758, %rdx
movq %rdx, (%rbp)
sub $31115, %rcx
// Store
lea addresses_normal+0xd112, %rcx
nop
nop
xor $4514, %r10
mov $0x5152535455565758, %rbx
movq %rbx, (%rcx)
nop
nop
inc %r10
// Load
lea addresses_WT+0x6512, %rax
nop
nop
nop
sub $22096, %r10
mov (%rax), %rbp
nop
nop
nop
nop
nop
xor $41138, %rdx
// REPMOV
lea addresses_normal+0xd112, %rsi
lea addresses_UC+0x12212, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
cmp $34945, %rbp
mov $56, %rcx
rep movsw
nop
nop
nop
xor %rdi, %rdi
// Store
lea addresses_D+0x2c12, %rcx
cmp %r10, %r10
movl $0x51525354, (%rcx)
nop
sub $52252, %r9
// Store
mov $0x9e2, %r9
nop
dec %r10
movb $0x51, (%r9)
nop
nop
nop
add %rdi, %rdi
// Faulty Load
lea addresses_normal+0xd112, %rbx
nop
nop
nop
nop
nop
sub $36750, %rdi
mov (%rbx), %r9w
lea oracles, %rdx
and $0xff, %r9
shlq $12, %r9
mov (%rdx,%r9,1), %r9
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r9
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_normal', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WT', 'same': False, 'size': 8, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_normal', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WT', 'same': False, 'size': 8, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal', 'congruent': 0, 'same': True}, 'dst': {'type': 'addresses_UC', 'congruent': 8, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_D', 'same': False, 'size': 4, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_P', 'same': False, 'size': 1, 'congruent': 4, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_normal', 'same': True, 'size': 2, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 1, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 32, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': True}, 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'}
{'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
*/
| 34.151515 | 2,999 | 0.654392 |
b4b98300ae02ca3c491a59753200b3be60a01ae9 | 449 | asm | Assembly | oeis/099/A099176.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/099/A099176.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/099/A099176.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A099176: a(n)=2a(n-1)+4a(n-2)-4a(n-3)-4a(n-4).
; Submitted by Christian Krause
; 1,1,4,8,24,60,168,448,1232,3344,9152,24960,68224,186304,509056,1390592,3799296,10379520,28357632,77473792,211662848,578272256,1579870208,4316282880,11792306176,32217174016,88018960384,240472260608
mov $1,1
mov $2,1
lpb $0
sub $0,1
mul $2,2
add $2,$3
mov $5,$1
add $1,$3
mov $3,$4
mov $4,$2
mov $2,$3
mul $2,2
add $5,$4
mov $3,$5
lpe
mov $0,$1
| 21.380952 | 198 | 0.66147 |
5466c06a9ca2ba9a4f3c0fb2c0938722252e1199 | 501 | asm | Assembly | programs/oeis/156/A156688.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/156/A156688.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/156/A156688.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A156688: The total number of distinct Pythagorean triples with an area numerically equal to n times their perimeters
; 2,3,6,4,6,9,6,5,10,9,6,12,6,9,18,6,6,15,6,12,18,9,6,15,10,9,14,12,6,27,6,7,18,9,18,20,6,9,18,15,6,27,6,12,30,9,6,18,10,15,18,12,6,21,18,15,18,9,6,36,6,9,30,8,18,27,6,12,18,27,6,25,6,9,30,12,18,27,6,18,18,9,6,36,18,9,18,15,6,45,18,12,18,9,18,21,6,15,30,20
seq $0,157914 ; a(n) = 8*n^2 - 1.
seq $0,5 ; d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n.
div $0,2
| 71.571429 | 256 | 0.652695 |
fd234e4fd27072ad9c7ba556a0f28153f5b7cfa0 | 11,586 | asm | Assembly | base/Kernel/Native/arm/interlocked_v5.asm | sphinxlogic/Singularity-RDK-2.0 | 2968c3b920a5383f7360e3e489aa772f964a7c42 | [
"MIT"
] | null | null | null | base/Kernel/Native/arm/interlocked_v5.asm | sphinxlogic/Singularity-RDK-2.0 | 2968c3b920a5383f7360e3e489aa772f964a7c42 | [
"MIT"
] | null | null | null | base/Kernel/Native/arm/interlocked_v5.asm | sphinxlogic/Singularity-RDK-2.0 | 2968c3b920a5383f7360e3e489aa772f964a7c42 | [
"MIT"
] | null | null | null | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; Microsoft Research Singularity
;;;
;;; Copyright (c) Microsoft Corporation. All rights reserved.
;;;
;;; This file contains ARM-specific assembly code.
;;;
|defining ?g_CompareExchange@Class_System_Threading_Interlocked@@SA?AUStruct_System_Threading_ThreadState@@PAU2@U2@1@Z| EQU 1
|defining ?g_CompareExchange@Class_System_Threading_Interlocked@@SAHPAHHH@Z| EQU 1
|defining ?g_CompareExchange@Class_System_Threading_Interlocked@@SAIPAIII@Z| EQU 1
|defining ?g_CompareExchange@Class_System_Threading_Interlocked@@SAMPAMMM@Z| EQU 1
|defining ?g_CompareExchange@Class_System_Threading_Interlocked@@SAPAUClass_System_Object@@PAPAU2@PAU2@1@Z| EQU 1
|defining ?g_CompareExchange@Class_System_Threading_Interlocked@@SAPAUStruct_Microsoft_Singularity_Memory_HandleTable_HandleEntry@@PAPAU2@PAU2@1@Z| EQU 1
|defining ?g_CompareExchange@Class_System_Threading_Interlocked@@SAPAUStruct_Microsoft_Singularity_Memory_HandleTable_HandlePage@@PAPAU2@PAU2@1@Z| EQU 1
|defining ?g_CompareExchange@Class_System_Threading_Interlocked@@SAPAUuintPtr@@PAPAU2@PAU2@1@Z| EQU 1
|defining ?g_CompareExchange@Class_System_Threading_Interlocked@@SAPAUvoid@@PAPAU2@PAU2@1@Z| EQU 1
|defining ?g_CompareExchange@Class_System_Threading_Interlocked@@SA_JPA_J_J1@Z| EQU 1
|defining ?g_CompareExchange@Class_System_Threading_Interlocked@@SA_KPA_K_K1@Z| EQU 1
|defining ?g_Decrement@Class_System_Threading_Interlocked@@SAHPAH@Z| EQU 1
|defining ?g_Exchange@Class_System_Threading_Interlocked@@SAHPAHH@Z| EQU 1
|defining ?g_Exchange@Class_System_Threading_Interlocked@@SAIPAII@Z| EQU 1
|defining ?g_Exchange@Class_System_Threading_Interlocked@@SAMPAMM@Z| EQU 1
|defining ?g_Exchange@Class_System_Threading_Interlocked@@SAPAUClass_System_Object@@PAPAU2@PAU2@@Z| EQU 1
|defining ?g_Exchange@Class_System_Threading_Interlocked@@SAPAUuintPtr@@PAPAU2@PAU2@@Z| EQU 1
|defining ?g_Increment@Class_System_Threading_Interlocked@@SAHPAH@Z| EQU 1
include hal.inc
MACRO
BREAKPOINT
bkpt 0xffff
swi 0xffff03
MEND
MACRO
DISABLE_INTERRUPTS $savereg, $tempreg
mrs $savereg, cpsr
orr $tempreg, $savereg, #Struct_Microsoft_Singularity_Isal_Arm_Psr_DisableIrq
msr cpsr_c, $tempreg
MEND
MACRO
RESTORE_INTERRUPTS $savereg
msr cpsr_c, $savereg
MEND
TEXTAREA
;;; uint32 InterlockedCompareExchange(uint32 * dst, uint32 exc, uint32 cmp)
LEAF_ENTRY InterlockedCompareExchange
DISABLE_INTERRUPTS r3, r12
ldr r12, [r0]
cmp r12, r2
bne %F1
str r1, [r0]
1 mov r0, r12
RESTORE_INTERRUPTS r3
bx lr
LEAF_END
;;; uint32 InterlockedExchange(uint32 * dst, uint32 exc, uint32 cmp)
LEAF_ENTRY InterlockedExchange
DISABLE_INTERRUPTS r3, r12
ldr r12, [r0]
str r1, [r0]
mov r0, r12
RESTORE_INTERRUPTS r3
bx lr
LEAF_END
;;; uint32 InterlockedExchangeAdd(uint32 * dst, uint32 val)
LEAF_ENTRY InterlockedExchangeAdd
DISABLE_INTERRUPTS r3, r12
ldr r12, [r0]
add r1, r12, r1
str r1, [r0]
mov r0, r12
RESTORE_INTERRUPTS r3
bx lr
LEAF_END
;;; uint32 InterlockedIncrement(uint32 * dst)
LEAF_ENTRY InterlockedIncrement
DISABLE_INTERRUPTS r3, r12
ldr r1, [r0]
add r1, r1, #1
str r1, [r0]
mov r0, r1
RESTORE_INTERRUPTS r3
bx lr
LEAF_END
;;; uint32 InterlockedDecrement(uint32 * dst)
LEAF_ENTRY InterlockedDecrement
DISABLE_INTERRUPTS r3, r12
ldr r1, [r0]
sub r1, r1, #1
str r1, [r0]
mov r0, r1
RESTORE_INTERRUPTS r3
bx lr
LEAF_END
;;;
;;; uint64 InterlockedCompareExchange64(
;;; r0 = uint64 *dst,
;;; r1/r2 = uint64 exc,
;;; r3/[sp] = uint64 cmp)
;;;
NESTED_ENTRY InterlockedCompareExchange64
stmdb sp!, {r4-r7, lr}
PROLOG_END
DISABLE_INTERRUPTS r5, r12 ; save cpsr to r5
ldr r4, [sp, #0x14] ; load r4 with Comperand.HighPart
ldr r6, [r0, #0] ; load r6 with *dst.LowPart
ldr r7, [r0, #4] ; load r7 with *dst.HighPart
cmp r6, r3 ; compare orginal with cmp
bne %F1
cmp r7, r4
bne %F1
str r1, [r0, #0] ; store exc.LowPart
str r2, [r0, #4] ; store exc.HighPart
1 mov r0, r6 ; prepare to return original
mov r1, r7 ;
RESTORE_INTERRUPTS r5
ldmia sp!, {r4-r7, pc}
NESTED_END
;;;
;;; int Class_System_Threading_Interlocked::g_CompareExchange(
;;; int * dst,
;;; int exc,
;;; int cmp)
;;;
LEAF_ENTRY ?g_CompareExchange@Class_System_Threading_Interlocked@@SAHPAHHH@Z
b InterlockedCompareExchange
nop
LEAF_END
;;;
;;; unsigned int Class_System_Threading_Interlocked::g_CompareExchange(
;;; unsigned int *dst,
;;; unsigned int exc,
;;; unsigned int cmp)
;;;
LEAF_ENTRY ?g_CompareExchange@Class_System_Threading_Interlocked@@SAIPAIII@Z
b InterlockedCompareExchange
nop
LEAF_END
;;;
;;; float Class_System_Threading_Interlocked::g_CompareExchange(
;;; float *dst,
;;; float exc,
;;; float cmp)
;;;
LEAF_ENTRY ?g_CompareExchange@Class_System_Threading_Interlocked@@SAMPAMMM@Z
b InterlockedCompareExchange
nop
LEAF_END
;;;
;;; struct Class_System_Object * Class_System_Threading_Interlocked::g_CompareExchange(
;;; struct Class_System_Object ** dst,
;;; struct Class_System_Object * exc,
;;; struct Class_System_Object * cmp)
;;;
LEAF_ENTRY ?g_CompareExchange@Class_System_Threading_Interlocked@@SAPAUClass_System_Object@@PAPAU2@PAU2@1@Z
b InterlockedCompareExchange
nop
LEAF_END
;;;
;;; struct Class_System_Threading_ThreadState Class_System_Threading_Interlocked::g_CompareExchange(
;;; struct Class_System_Threading_ThreadState *dst,
;;; struct Class_System_Threading_ThreadState exc,
;;; struct Class_System_Threading_ThreadState cmp)
;;;
LEAF_ENTRY ?g_CompareExchange@Class_System_Threading_Interlocked@@SA?AUStruct_System_Threading_ThreadState@@PAU2@U2@1@Z
b InterlockedCompareExchange
nop
LEAF_END
;;;
;;; struct Struct_Microsoft_Singularity_Memory_HandleTable_HandleEntry * Class_System_Threading_Interlocked::g_CompareExchange(
;;; struct Struct_Microsoft_Singularity_Memory_HandleTable_HandleEntry ** dst,
;;; struct Struct_Microsoft_Singularity_Memory_HandleTable_HandleEntry * exc,
;;; struct Struct_Microsoft_Singularity_Memory_HandleTable_HandleEntry * cmp)
;;;
LEAF_ENTRY ?g_CompareExchange@Class_System_Threading_Interlocked@@SAPAUStruct_Microsoft_Singularity_Memory_HandleTable_HandleEntry@@PAPAU2@PAU2@1@Z
b InterlockedCompareExchange
nop
LEAF_END
;;;
;;; struct Struct_Microsoft_Singularity_Memory_HandleTable_HandlePage * Class_System_Threading_Interlocked::g_CompareExchange(
;;; struct Struct_Microsoft_Singularity_Memory_HandleTable_HandlePage ** dst,
;;; struct Struct_Microsoft_Singularity_Memory_HandleTable_HandlePage * exc,
;;; struct Struct_Microsoft_Singularity_Memory_HandleTable_HandlePage * cmp)
;;;
LEAF_ENTRY ?g_CompareExchange@Class_System_Threading_Interlocked@@SAPAUStruct_Microsoft_Singularity_Memory_HandleTable_HandlePage@@PAPAU2@PAU2@1@Z
b InterlockedCompareExchange
nop
LEAF_END
;;;
;;; struct uintPtr * Class_System_Threading_Interlocked::g_CompareExchange(
;;; struct uintPtr ** dst,
;;; struct uintPtr * exc,
;;; struct uintPtr * cmp)
;;;
LEAF_ENTRY ?g_CompareExchange@Class_System_Threading_Interlocked@@SAPAUuintPtr@@PAPAU2@PAU2@1@Z
b InterlockedCompareExchange
nop
LEAF_END
;;;
;;; struct void * Class_System_Threading_Interlocked::g_CompareExchange(
;;; struct void ** dst,
;;; struct void * exc,
;;; struct void * cmp)
;;;
LEAF_ENTRY ?g_CompareExchange@Class_System_Threading_Interlocked@@SAPAUvoid@@PAPAU2@PAU2@1@Z
b InterlockedCompareExchange
nop
LEAF_END
;;;
;;; __int64 Class_System_Threading_Interlocked::g_CompareExchange(
;;; __int64 *dst,
;;; __int64 exc,
;;; __int64 cmp)
;;;
LEAF_ENTRY ?g_CompareExchange@Class_System_Threading_Interlocked@@SA_JPA_J_J1@Z
b InterlockedCompareExchange64
nop
LEAF_END
;;;
;;; unsigned __int64 Class_System_Threading_Interlocked::g_CompareExchange(
;;; unsigned __int64 *dst,
;;; unsigned __int64 exc,
;;; unsigned __int64 cmp)
;;;
LEAF_ENTRY ?g_CompareExchange@Class_System_Threading_Interlocked@@SA_KPA_K_K1@Z
b InterlockedCompareExchange64
nop
LEAF_END
;;;
;;; int Class_System_Threading_Interlocked::g_Decrement(int * dst)
;;;
LEAF_ENTRY ?g_Decrement@Class_System_Threading_Interlocked@@SAHPAH@Z
b InterlockedDecrement
nop
LEAF_END
;;;
;;;- int Class_System_Threading_Interlocked::g_Exchange(int * dst,
;;; int exc)
;;;
LEAF_ENTRY ?g_Exchange@Class_System_Threading_Interlocked@@SAHPAHH@Z
b InterlockedExchange
nop
LEAF_END
;;;
;;;- unsigned int Class_System_Threading_Interlocked::g_Exchange(unsigned int * dst,
;;; unsigned int exc)
;;;
LEAF_ENTRY ?g_Exchange@Class_System_Threading_Interlocked@@SAIPAII@Z
b InterlockedExchange
nop
LEAF_END
;;;
;;; float Class_System_Threading_Interlocked::g_Exchange(float * dst,
;;; float exc)
;;;
LEAF_ENTRY ?g_Exchange@Class_System_Threading_Interlocked@@SAMPAMM@Z
b InterlockedExchange
nop
LEAF_END
;;;
;;;- struct Class_System_Object * Class_System_Threading_Interlocked::g_Exchange(
;;; struct Class_System_Object ** dst,
;;; struct Class_System_Object * exc)
;;;
LEAF_ENTRY ?g_Exchange@Class_System_Threading_Interlocked@@SAPAUClass_System_Object@@PAPAU2@PAU2@@Z
b InterlockedExchange
nop
LEAF_END
;;;
;;; struct uintPtr * Class_System_Threading_Interlocked::g_Exchange(struct uintPtr ** dst,
;;; struct uintPtr * exc)
;;;
LEAF_ENTRY ?g_Exchange@Class_System_Threading_Interlocked@@SAPAUuintPtr@@PAPAU2@PAU2@@Z
b InterlockedExchange
nop
LEAF_END
;;;
;;; int Class_System_Threading_Interlocked::g_Increment(int * dst)
;;;
LEAF_ENTRY ?g_Increment@Class_System_Threading_Interlocked@@SAHPAH@Z
b InterlockedIncrement
nop
LEAF_END
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
END
| 35.981366 | 156 | 0.644485 |
fdcfc3a3c54f5c570eca5fea7320fea9c0442da5 | 146 | asm | Assembly | other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_PAL/Fra_asm1/zel_gsub1.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_PAL/Fra_asm1/zel_gsub1.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_PAL/Fra_asm1/zel_gsub1.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | Name: zel_gsub1.asm
Type: file
Size: 3376
Last-Modified: '2016-05-13T04:20:48Z'
SHA-1: 1A2BE9471F01252C3463F8CA67E3D429B9A75D08
Description: null
| 20.857143 | 47 | 0.815068 |
df80ab786280476e5214a147b8bc63bc0c48c647 | 106 | asm | Assembly | projects/07/StackArithmetic/SimpleAdd/SimpleAdd.asm | agrim334/nand2tetris | 9a318d692038831b0bba3dda7f8038149ad9a6d3 | [
"MIT"
] | null | null | null | projects/07/StackArithmetic/SimpleAdd/SimpleAdd.asm | agrim334/nand2tetris | 9a318d692038831b0bba3dda7f8038149ad9a6d3 | [
"MIT"
] | null | null | null | projects/07/StackArithmetic/SimpleAdd/SimpleAdd.asm | agrim334/nand2tetris | 9a318d692038831b0bba3dda7f8038149ad9a6d3 | [
"MIT"
] | null | null | null | @7
D=A
@R0
A=M
M=D
@R0
M=M+1
@8
D=A
@R0
A=M
M=D
@R0
M=M+1
@R0
M=M-1
A=M
D=M
@R0
M=M-1
A=M
M=D+M
@R0
M=M+1
| 4.24 | 5 | 0.490566 |
56822ee9e4e01c31693cbf85b9638c5eb61ed224 | 538 | asm | Assembly | dino/lcs/base/6BEF.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | 6 | 2020-10-14T15:29:10.000Z | 2022-02-12T18:58:54.000Z | dino/lcs/base/6C4F.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | null | null | null | dino/lcs/base/6C4F.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | 1 | 2020-12-17T08:59:10.000Z | 2020-12-17T08:59:10.000Z | copyright zengfr site:http://github.com/zengfr/romhack
016B62 move.b ($3,A6), (A4)+ [base+6BDE, base+6BEE, base+6BFE, base+6C0E, base+6C1E, base+6C2E, base+6C3E, base+6C4E, base+6C5E, base+6C6E, base+6C7E, base+6C8E, base+6C9E, base+6CAE, base+6CBE, base+6CCE]
016B66 move.w ($6a,A6), (A4)+ [123p+ 3, base+6BDF, base+6BEF, base+6BFF, base+6C0F, base+6C1F, base+6C2F, base+6C4F, base+6C5F, base+6C6F, base+6C7F, base+6C8F, base+6C9F, base+6CAF, base+6CBF, base+6CCF, enemy+ 3]
copyright zengfr site:http://github.com/zengfr/romhack
| 76.857143 | 217 | 0.710037 |
d4b6b71638d7fdbe5d134ddbe7e74da3129a8468 | 4,265 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_12_2202.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_12_2202.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_12_2202.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 %r12
push %r13
push %r15
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x19856, %rbp
nop
nop
sub $9497, %r13
movl $0x61626364, (%rbp)
nop
nop
cmp $16146, %r15
lea addresses_WC_ht+0xeb56, %rsi
lea addresses_WT_ht+0x12cb2, %rdi
nop
nop
nop
cmp $981, %r11
mov $92, %rcx
rep movsb
nop
nop
and %rcx, %rcx
lea addresses_normal_ht+0x149d6, %r15
nop
and %r13, %r13
mov (%r15), %edi
nop
nop
xor %r12, %r12
lea addresses_A_ht+0xebd6, %r15
nop
nop
nop
inc %r11
movups (%r15), %xmm0
vpextrq $0, %xmm0, %r12
nop
nop
and $2595, %rsi
lea addresses_A_ht+0x1d856, %rbp
nop
nop
inc %r11
movl $0x61626364, (%rbp)
nop
nop
nop
sub $18619, %r15
lea addresses_WC_ht+0x1c456, %r12
nop
cmp %rdi, %rdi
mov $0x6162636465666768, %rcx
movq %rcx, %xmm3
movups %xmm3, (%r12)
nop
nop
nop
and $60903, %r11
lea addresses_A_ht+0x4536, %r11
nop
and %r13, %r13
mov (%r11), %cx
nop
sub %r11, %r11
lea addresses_A_ht+0x18182, %rsi
lea addresses_WC_ht+0x11b2, %rdi
nop
cmp $8855, %r12
mov $21, %rcx
rep movsl
nop
nop
nop
nop
nop
sub %rsi, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r14
push %r15
push %rbp
push %rcx
// Load
lea addresses_A+0x17c56, %r11
nop
nop
nop
nop
and $4070, %r14
movups (%r11), %xmm0
vpextrq $1, %xmm0, %r10
nop
cmp $32425, %rbp
// Store
lea addresses_US+0x1484e, %r10
add $50527, %r13
mov $0x5152535455565758, %r14
movq %r14, %xmm0
movups %xmm0, (%r10)
nop
cmp $12456, %r15
// Store
lea addresses_RW+0x1e787, %r11
clflush (%r11)
nop
nop
nop
and %r10, %r10
movw $0x5152, (%r11)
nop
nop
nop
nop
dec %r13
// Load
lea addresses_WT+0x15456, %r15
nop
nop
nop
nop
add $41202, %r10
vmovups (%r15), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %rbp
nop
add $22049, %rcx
// Store
lea addresses_D+0x15956, %r10
nop
nop
sub $22136, %r13
movl $0x51525354, (%r10)
// Exception!!!
nop
mov (0), %r15
nop
nop
nop
nop
xor $40846, %rcx
// Faulty Load
lea addresses_A+0x17c56, %r10
nop
nop
nop
nop
nop
add %r14, %r14
movb (%r10), %cl
lea oracles, %r11
and $0xff, %rcx
shlq $12, %rcx
mov (%r11,%rcx,1), %rcx
pop %rcx
pop %rbp
pop %r15
pop %r14
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 3, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 6, 'size': 4, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': True, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 8, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': False, 'NT': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 7, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 10, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 5, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 2, 'same': True}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}}
{'00': 12}
00 00 00 00 00 00 00 00 00 00 00 00
*/
| 20.023474 | 147 | 0.643376 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.