選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

36 行
1.1KB

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

Powered by TurnKey Linux.