Register Editor - Chysn/VIC20-wAx2 GitHub Wiki

The value of registers, processor status, stack pointer, and program counter after the last Go or SYS may be viewed with with Register Editor:

.R

Registers for the next SYS may be set with

.;ac [xr] [yr] [pr]

where:

ac is the Accumulator as a valid hexadecimal byte

xr is the X Register as a valid hexadecimal byte

yr is the Y Register as a valid hexadecimal byte

pr is the Processor Status Register as a valid hexadecimal byte

Note that you can set the registers for the next SYS or Subroutine Execution by cursoring up to the BRK display:

 A__X__Y__P__S__PC__
;12 34 56 78 71 1808

The A,X,Y, and P save locations will be set. The stack pointer and program counter will be ignored.

When the register editor is displayed, you're seeing the actual contents of the registers at the time of the last BRK.

However, when you edit these values, you're editing the "saved register" locations that BASIC reads and uses to set registers during the execution of the SYS command. The wAx G tool (Go) uses the BASIC SYS command, so it will use these values, as well.

Note: ; is an alias for R, so they can be used interchangeably.