Do you know a debugger for 6502 code where you can walk through the code like in Visual Studio?
That means you have the text editor with the source code open and there is an arrow on the left side of the text lines that shows you where you are in the moment. With a button, you can execute the current instruction and the arrow jumps to the next line.
And in another window, you can enter any memory location and the program shows you which value is written to it and you can edit it.
The debugger doesn't need to understand any NES-specific stuff, nor does it need to be able to handle commands like .res, .db, .word or anything like that. All I need is a generic 6502 debugger that I can quickly use to test code snippets without having to write a complicated debug output into my actual program.
6502 debugger
Moderator: Moderators
6502 debugger
My game "City Trouble":
Gameplay video: https://youtu.be/Eee0yurkIW4
Download (ROM, manual, artworks): http://www.denny-r-walter.de/city.html
Gameplay video: https://youtu.be/Eee0yurkIW4
Download (ROM, manual, artworks): http://www.denny-r-walter.de/city.html
Re: 6502 debugger
Have you tried the debugger in the FCEUX emulator ? It's awesome. However it won't directly debug in your text editor.
Re: 6502 debugger
I will have a closer look.
However, I'm looking more for a debugger where you can put any little code into. Like when I have an algorithm and I want to check if I didn't do any off-by-one errors or whatever, I want to put only this code into the text editor and then test it. (Best would be if I could add or delete lines at debug time.
For the FCEUX debugger, you need to have a complete NES game and that's a bit too much for just testing a single code snippet.
However, I'm looking more for a debugger where you can put any little code into. Like when I have an algorithm and I want to check if I didn't do any off-by-one errors or whatever, I want to put only this code into the text editor and then test it. (Best would be if I could add or delete lines at debug time.
For the FCEUX debugger, you need to have a complete NES game and that's a bit too much for just testing a single code snippet.
My game "City Trouble":
Gameplay video: https://youtu.be/Eee0yurkIW4
Download (ROM, manual, artworks): http://www.denny-r-walter.de/city.html
Gameplay video: https://youtu.be/Eee0yurkIW4
Download (ROM, manual, artworks): http://www.denny-r-walter.de/city.html
- rainwarrior
- Posts: 8734
- Joined: Sun Jan 22, 2012 12:03 pm
- Location: Canada
- Contact:
Re: 6502 debugger
You put a breakpoint on the code snippet you're interested in and click Run. It will execute normally until the breakpoint, and then you can begin stepping through just the snippet.
Re: 6502 debugger
There are so called 'CPU simulators', like a 6502 simulator, that allow to enter and run a snippet of code. However, they are not tied to any particular hardware like NES. So if you want to debug NES-related code, you just have to use a NES emulator.
- cpow
- NESICIDE developer
- Posts: 1097
- Joined: Mon Oct 13, 2008 7:55 pm
- Location: Minneapolis, MN
- Contact:
Re: 6502 debugger
This?DRW wrote:Do you know a debugger for 6502 code where you can walk through the code like in Visual Studio?
Re: 6502 debugger
I learned 6502 assembly using this. It's great for testing little snippets of code without having to set anything up. It doesn't have a lot of functionality present in more complete assemblers, like .incbin, temporary labels and the like, so don't expect 100% compatibility.
Re: 6502 debugger
For source level debugging (with CA65) check this: http://kkfos.aspekt.fi/projects/nes/too ... dulatordx/
It's just a modified version of Nintendulator though, not a quick test platform.
It's just a modified version of Nintendulator though, not a quick test platform.
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: fo.aspekt.fi