|
- ; Repeatable VICE monitor session for any program built by `c64 build`.
- ;
- ; Load it after starting the program with the monitor enabled:
- ; c64 run projects/<name> -Monitor
- ; c64 mon "pb \"C:/path/to/examples/vice-debug-session.mon\"" -Stay
- ; or, in an interactive monitor window:
- ; playback "examples/vice-debug-session.mon"
- ;
- ; `c64 run -Monitor` already loaded build/<name>.lbl, so labels such as .main work.
-
- radix H
- device c:
- sidefx off
-
- ; Entry of a program with a cc65 BASIC stub (10 SYS 2061). For C programs use .main
- ; or ._main instead.
- break exec $080D
-
- ; Banking changes: show the CPU port each time it is written.
- watch store $0001
- command 2 "m $0000 $0001"
-
- ; IRQ vector changes (custom interrupt handlers, or corruption).
- watch store $0314 $0315
-
- ; Current state.
- r
- m $0000 $0001
-
- ; Useful next commands once a checkpoint hits:
- ; step / next / return step in, step over JSR, run to RTS
- ; bt JSR call chain
- ; bank io then `m d000 d02e` for VIC-II registers, `m dc00 dc0f` for CIA 1
- ; watch store .score find who writes a variable
- ; x resume
|