@parent = page.html @title = Debugger
These are the commands that the debugger CLI supports. Due to the asynchronous nature of the debugger and emulator, commands can be run even while the emulator is actively executing the program. For instance, try running the disco.asm
example and typing set A #$0
into the debugger while it's running with a screen attached, you will be able to modify the program in real time!
step
, s
Step through one CPU instruction
show [$addr]
, print [$addr]
Show the value at $addr
in memory, or, if no address given, show value of all registers.
set $addr #$val
, set reg #$val
Set either $addr
or register reg
to #$val
.
run
Run the emulator.
pause
Stop running the emulator.
quit
, exit
Quit the debugger, emulator, and the screen (if running).