Debug.exe merupakan tool bawaan ms dos untuk debugger, disasembler dan
eksekusi bahasa rakitan.
Ok langsung aja kita mulai menggunakan debug.exe, caranya buka ms dos
prompt lalu
ketikkan: debug.exe
(sintaks lengkap penggunaan debug:debug [[Drive:][Path] FileName
[parameters]])
contoh:
[code]
Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\mywisdom>debug.exe
-
[/code]
Untuk melihat perintah2 yang bisa kita lakukan dari debug.exe ketikkan : ?
di console debug.exe lalu enter
misal:
[code]
-?
assemble A [address]
compare C range address
dump D [range]
enter E address [list]
fill F range list
go G [=address] [addresses]
hex H value1 value2
input I port
load L [address] [drive] [firstsector] [number]
move M range address
name N [pathname] [arglist]
output O port byte
proceed P [=address] [number]
quit Q
register R [register]
search S range list
trace T [=address] [value]
unassemble U [range]
write W [address] [drive] [firstsector] [number]
allocate expanded memory XA [#pages]
deallocate expanded memory XD [handle]
map expanded memory pages XM [Lpage] [Ppage] [handle]
display expanded memory status XS
-
[/code]
langsung aja kita praktek assemble.Ok mari kita rakit sedikit mulai dari
offset 100
ketikkan ini di konsole debug:
[code]
-a 100 <enter>
mov ah,9 <enter>
mov dx,0000 <enter>
int 21 <enter>
ret <enter>
db "mywisdom$",13,10 <enter>
17CB:0113 <enter>
-a 0102 <enter>
17CB:0102 mov dx,0108 <enter>
17CB:0105 <enter>
-g <enter>
[/code]
contoh di pc penulis:
[code]
Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\mywisdom>debug
-a 100
17CB:0100 mov ah,9
17CB:0102 mov dx,0000
17CB:0105 int 21
17CB:0107 ret
17CB:0108 db "mywisdom$",13,10
17CB:0113
-a 0102
17CB:0102 mov dx,0108
17CB:0105
-g
mywisdom
Program terminated normally
-
[/code]
1 comments:
Coding itu untuk apa Om.. kok gk da penjelasanya...?
#maklum orang awam
Post a Comment