Fix debugger trap documentation (fixes #156 from #164)

This commit is contained in:
Stephen Anthony 2017-07-06 19:45:12 -02:30
parent e1bc5c92e4
commit f177aed814
2 changed files with 27 additions and 28 deletions

View File

@ -622,33 +622,34 @@ can also get rid of all traps at once with the "cleartraps" command.</p>
<p>Type "help" to see this list in the debugger.</p> <p>Type "help" to see this list in the debugger.</p>
<pre> <pre>
a - Set Accumulator to value xx a - Set Accumulator to <value>
base - Set default base (hex, dec, or bin) base - Set default base to <base>
break - Set/clear breakpoint at address xx (default=PC) break - Set/clear breakpoint at <address>
breakif - Set breakpoint on condition xx breakif - Set breakpoint on <condition>
c - Carry Flag: set (0 or 1), or toggle (no arg) c - Carry Flag: set (0 or 1), or toggle (no arg)
cheat - Use a cheat code (see manual for cheat types) cheat - Use a cheat code (see manual for cheat types)
clearbreaks - Clear all breakpoints clearbreaks - Clear all breakpoints
clearconfig - Clear Distella config directives [bank xx] clearconfig - Clear Distella config directives [bank xx]
cleartraps - Clear all traps cleartraps - Clear all traps
clearwatches - Clear all watches clearwatches - Clear all watches
cls - Clear prompt area of text and erase history cls - Clear prompt area of text
code - Mark 'CODE' range in disassembly code - Mark 'CODE' range in disassembly
colortest - Show value xx as TIA color colortest - Show value xx as TIA color
d - Decimal Flag: set (0 or 1), or toggle (no arg) d - Carry Flag: set (0 or 1), or toggle (no arg)
data - Mark 'DATA' range in disassembly data - Mark 'DATA' range in disassembly
debugcolors - Show Fixed Debug Colors information
define - Define label xx for address yy define - Define label xx for address yy
delbreakif - Delete conditional breakif xx delbreakif - Delete conditional breakif <xx>
delfunction - Delete function with label xx delfunction - Delete function with label xx
delwatch - Delete watch xx delwatch - Delete watch <xx>
disasm - Disassemble address xx [yy lines] (default=PC) disasm - Disassemble address xx [yy lines] (default=PC)
dump - Dump 128 bytes of memory at address xx dump - Dump 128 bytes of memory at address <xx>
exec - Execute script file xx exec - Execute script file <xx>
exitrom - Exit emulator, return to ROM launcher exitrom - Exit emulator, return to ROM launcher
frame - Advance emulation by xx frames (default=1) frame - Advance emulation by <xx> frames (default=1)
function - Define function name xx for expression yy function - Define function name xx for expression yy
gfx - Mark 'CFX' range in disassembly gfx - Mark 'GFX' range in disassembly
help - This cruft help - help <command>
jump - Scroll disassembly to address xx jump - Scroll disassembly to address xx
listbreaks - List breakpoints listbreaks - List breakpoints
listconfig - List Distella config directives [bank xx] listconfig - List Distella config directives [bank xx]
@ -657,6 +658,7 @@ listfunctions - List user-defined functions
loadconfig - Load Distella config file loadconfig - Load Distella config file
loadstate - Load emulator state xx (0-9) loadstate - Load emulator state xx (0-9)
n - Negative Flag: set (0 or 1), or toggle (no arg) n - Negative Flag: set (0 or 1), or toggle (no arg)
palette - Show current TIA palette
pc - Set Program Counter to address xx pc - Set Program Counter to address xx
pgfx - Mark 'PGFX' range in disassembly pgfx - Mark 'PGFX' range in disassembly
print - Evaluate/print expression xx in hex/dec/binary print - Evaluate/print expression xx in hex/dec/binary
@ -677,17 +679,14 @@ listfunctions - List user-defined functions
saveses - Save console session to file xx saveses - Save console session to file xx
savesnap - Save current TIA image to PNG file savesnap - Save current TIA image to PNG file
savestate - Save emulator state xx (valid args 0-9) savestate - Save emulator state xx (valid args 0-9)
scanline - Advance emulation by xx scanlines (default=1) scanline - Advance emulation by <xx> scanlines (default=1)
step - Single step CPU [with count xx] step - Single step CPU [with count xx]
tia - Show TIA state (NOT FINISHED YET) tia - Show TIA state
trace - Single step CPU over subroutines [with count xx] trace - Single step CPU over subroutines [with count xx]
trap - Trap read/write access to address(es) xx [to yy] trap - Trap read/write access to address(es) xx [yy]
trapread - Trap read access to address(es) xx [to yy] trapread - Trap read access to address(es) xx [yy]
trapwrite - Trap write access to address(es) xx [to yy] trapwrite - Trap write access to address(es) xx [yy]
trapm - Trap read/write access to address xx (+mirrors) type - Show disassembly type for address xx [yy]
trapreadm - Trap read access to address xx (+mirrors)
trapwritem - Trap write access to address xx (+mirrors)
type - Show disassembly type for address xx [to yy]
uhex - Toggle upper/lowercase HEX display uhex - Toggle upper/lowercase HEX display
undef - Undefine label xx (if defined) undef - Undefine label xx (if defined)
v - Overflow Flag: set (0 or 1), or toggle (no arg) v - Overflow Flag: set (0 or 1), or toggle (no arg)

View File

@ -2279,7 +2279,7 @@ DebuggerParser::Command DebuggerParser::commands[kNumCommands] = {
{ {
"trap", "trap",
"Trap read/write access to address(es) xx [to yy]", "Trap read/write access to address(es) xx [yy]",
"Set a R/W trap on the given address(es) and all mirrors\n" "Set a R/W trap on the given address(es) and all mirrors\n"
"Example: trap f000, trap f000 f100", "Example: trap f000, trap f000 f100",
true, true,
@ -2290,7 +2290,7 @@ DebuggerParser::Command DebuggerParser::commands[kNumCommands] = {
{ {
"trapread", "trapread",
"Trap read access to address(es) xx [to yy]", "Trap read access to address(es) xx [yy]",
"Set a read trap on the given address(es) and all mirrors\n" "Set a read trap on the given address(es) and all mirrors\n"
"Example: trapread f000, trapread f000 f100", "Example: trapread f000, trapread f000 f100",
true, true,
@ -2301,7 +2301,7 @@ DebuggerParser::Command DebuggerParser::commands[kNumCommands] = {
{ {
"trapwrite", "trapwrite",
"Trap write access to address(es) xx [to yy]", "Trap write access to address(es) xx [yy]",
"Set a write trap on the given address(es) and all mirrors\n" "Set a write trap on the given address(es) and all mirrors\n"
"Example: trapwrite f000, trapwrite f000 f100", "Example: trapwrite f000, trapwrite f000 f100",
true, true,
@ -2312,7 +2312,7 @@ DebuggerParser::Command DebuggerParser::commands[kNumCommands] = {
{ {
"type", "type",
"Show disassembly type for address xx [to yy]", "Show disassembly type for address xx [yy]",
"Example: type f000, type f000 f010", "Example: type f000, type f000 f010",
true, true,
false, false,