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>
<pre>
a - Set Accumulator to value xx
base - Set default base (hex, dec, or bin)
break - Set/clear breakpoint at address xx (default=PC)
breakif - Set breakpoint on condition xx
a - Set Accumulator to <value>
base - Set default base to <base>
break - Set/clear breakpoint at <address>
breakif - Set breakpoint on <condition>
c - Carry Flag: set (0 or 1), or toggle (no arg)
cheat - Use a cheat code (see manual for cheat types)
clearbreaks - Clear all breakpoints
clearconfig - Clear Distella config directives [bank xx]
cleartraps - Clear all traps
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
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
debugcolors - Show Fixed Debug Colors information
define - Define label xx for address yy
delbreakif - Delete conditional breakif xx
delbreakif - Delete conditional breakif <xx>
delfunction - Delete function with label xx
delwatch - Delete watch xx
delwatch - Delete watch <xx>
disasm - Disassemble address xx [yy lines] (default=PC)
dump - Dump 128 bytes of memory at address xx
exec - Execute script file xx
dump - Dump 128 bytes of memory at address <xx>
exec - Execute script file <xx>
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
gfx - Mark 'CFX' range in disassembly
help - This cruft
gfx - Mark 'GFX' range in disassembly
help - help <command>
jump - Scroll disassembly to address xx
listbreaks - List breakpoints
listconfig - List Distella config directives [bank xx]
@ -657,6 +658,7 @@ listfunctions - List user-defined functions
loadconfig - Load Distella config file
loadstate - Load emulator state xx (0-9)
n - Negative Flag: set (0 or 1), or toggle (no arg)
palette - Show current TIA palette
pc - Set Program Counter to address xx
pgfx - Mark 'PGFX' range in disassembly
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
savesnap - Save current TIA image to PNG file
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]
tia - Show TIA state (NOT FINISHED YET)
tia - Show TIA state
trace - Single step CPU over subroutines [with count xx]
trap - Trap read/write access to address(es) xx [to yy]
trapread - Trap read access to address(es) xx [to yy]
trapwrite - Trap write access to address(es) xx [to yy]
trapm - Trap read/write access to address xx (+mirrors)
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]
trap - Trap read/write access to address(es) xx [yy]
trapread - Trap read access to address(es) xx [yy]
trapwrite - Trap write access to address(es) xx [yy]
type - Show disassembly type for address xx [yy]
uhex - Toggle upper/lowercase HEX display
undef - Undefine label xx (if defined)
v - Overflow Flag: set (0 or 1), or toggle (no arg)

View File

@ -2279,7 +2279,7 @@ DebuggerParser::Command DebuggerParser::commands[kNumCommands] = {
{
"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"
"Example: trap f000, trap f000 f100",
true,
@ -2290,7 +2290,7 @@ DebuggerParser::Command DebuggerParser::commands[kNumCommands] = {
{
"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"
"Example: trapread f000, trapread f000 f100",
true,
@ -2301,7 +2301,7 @@ DebuggerParser::Command DebuggerParser::commands[kNumCommands] = {
{
"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"
"Example: trapwrite f000, trapwrite f000 f100",
true,
@ -2312,7 +2312,7 @@ DebuggerParser::Command DebuggerParser::commands[kNumCommands] = {
{
"type",
"Show disassembly type for address xx [to yy]",
"Show disassembly type for address xx [yy]",
"Example: type f000, type f000 f010",
true,
false,