View Page Source

Revision (current)
Last Updated by feos on 9/8/2013 7:00 AM
Back to Page

! memory.setdebug(brkpt_id,brkpt_data)
* brkpt_id is ID of breakpoint (0-7).
* brkpt_data is either nil (remove breakpoint) or an array.
** addr: Address to break on.
** data: Data to break on (-1 => Don't care). Default -1.
** mode: Mode to break on ('e' => Execute, 'r' => Read, 'w' => Write). Default 'e'.
** source: Source of access to break on ('cpubus', 'vram', 'oam', 'cgram', 'apuram'). Default 'cpubus'.
** callback: Function to call when callback fires (not a name!)
! memory.setstep(counter,function)
* counter: Set the step counter to this value. This is decremented each instruction (set to 0 to disable this).
* function: Function to call (not name of function!) when counter decrements to zero.
! memory.settrace(filename)
If filename is non-empty, output trace to that file. If "", stop tracing.

All these functions should be safe to call at all times.