It's a rough and ready simulator and debugger for Visual Studio Code that works with the cc65 compiler suite. The simulator, which runs within the debugger itself, acts like the sim65 simulator that comes with cc65 and supports its "paravirtualization" APIs. All you need to do is install the extension, compile for the sim6502 target, add a "bug65" configuration to launch.json, and run. You can interact with the program through the "bug65" terminal window.
Very brief demo: https://drive.google.com/file/d/1rMMdu- ... sp=sharing
My objective was to debug unit tests. My project code is in assembly language, but I write unit tests in C and run them in sim65. Until now, whenever I've had some problem I've added BRK statements to the code and print the registers and various ZP variables in the BRK handler. This replaces that process.
What works:
- Breakpoints
Step over/in/out
Registers and flags display
Watch variables (but only numbers)
C local variables (sometimes)
sim65 paravirtualization APIs
- C local variables (sometimes)
Watch expressions, non-numeric watches, or really anything that requires knowledge of C types
Conditional breakpoints and logpoints
sim65 counter and control peripherals
If you try it and it works, or doesn't work, let me know. Feel free to fork or file bugs in the GitHub project.