Article View: net.micro.pc
Article #5229DEBUG Cheat Sheet - Revised
From: Henry Schaffer
Date: Wed, 01 Jan 1986 02:34
Date: Wed, 01 Jan 1986 02:34
119 lines
3633 bytes
3633 bytes
(Corrections, suggestions and comments are requested. --henry schaffer)
For compact reference format, print at 132 char/line, 8 lines/inch, and attach
side by side, lining up using the dotted lines.
--------------------------------------------------------------------------------
DEBUG SUMMARY ver 0.4 HES 12/85
NCSU
INVOCATION: DEBUG [filespec] [parm1] [parm2]
COMMAND SUMMARY
Name Format Comments - (default register(s))
Assemble A[address] Default: starts at 100. (CS)
Compare C range address Second address in range uses offset only. (DS)
Dump D[{address|range}] Default: starts at 100 or after last D. (DS)
Enter E address [list] With no list enter 1-2 hex chars after prompt;
space bar to advance, - to back up.
Enter key to end command. (DS)
Fill F range list Reuses list if list shorter than range. (DS)
Go G[=address] [address[address...]] Up to 10 breakpoints. (CS:IP)
Hexarithmetic H value value
Input I portaddress Displays byte read.
Load L[address[drive sector sector]] (CS)
Move M range address (DS)
Name N filespec [filespec]
Output O portaddress byte
Quit Q
Register R [registername] Default: shows all registers and flags.
Search S range list (DS)
Trace T[=address][value] Default: one instruction. (CS:IP)
Unassemble U[{address|range}] Default: starts at 100 or after last U.
Will complete last instruction. (CS)
Write W[address[drive sector sector]] BX, CX have no. of bytes. (CS)
^low order
Notes
Commands are case insensitive, given after the DEBUG "-" prompt.
Ctrl-Break to end a command.
Ctrl-Num Lock for No-Scroll (any other char to restart).
--------------------------------------------------------------------------------
PARAMETER DEFINITIONS
address [{seg reg|seg addr}:] offset
byte 1-2 hex chars
drive single digit 0 for drive A, 1 for B, etc. see Load, Write
filespec [drive:][path]filename[.ext] see Name
hex char 0 through 9, A through F (case insensitive)
list {byte|string} ...
offset value
portaddress value see Input, Output
range address{address | L value}
^offset ^for 10000 use 0
only
registername {AX|BX|CX|DX|SP|BP|SI|DI| (case see Register
DS|ES|SS|CS|IP|PC|F} insensitive)
sector sector really sector sectors(involved) see Load, Write
^value ^value (values 1-3 hex chars)
seg addr value
seg reg {CS|DS|ES|SS}
string char(s) in single or double quotes
can use opposite type within the other;
to use same type within - double it
value 1-4 hex chars
Notes
Commands and parameters may be adjacent, or separated by a blank or
comma. Consecutive hex values must be separated by a blank or comma.
[ ] item(s) enclosed are optional
{ | } choose one of the items
... repetition of the previous item allowed
Technical Details
Message-ID:
<1001@ecsvax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!linus!decvax!mcnc!ecsvax!hesShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ecsvax.UUCP Path: arc1-ca.pugleaf.net!utzoo!linus!decvax!mcnc!ecsvax!hes From: hes@ecsvax.UUCP (Henry Schaffer) Newsgroups: net.micro.pc Subject: DEBUG Cheat Sheet - Revised Message-ID: <1001@ecsvax.UUCP> Date: Tue, 31-Dec-85 21:34:56 EST Article-I.D.: ecsvax.1001 Posted: Tue Dec 31 21:34:56 1985 Date-Received: Wed, 1-Jan-86 05:11:00 EST Distribution: net Organization: NC State Univ. Lines: 119