WillisBlackburn wrote:
I'm using cc65 and the included ca65 assembler. I'm having a hard time debugging code I've written and am surprised by the lack of tools; I feel like I must be missing something obvious. I'm wondering how other people deal with this.
My "solution" may not be helpful, however with a lot of 6502 experience behind me, but not having done much for about 35 years I started from scratch with some trivial programs in assembler very bare-bones (which is what I did "back then" in 1980 or so). Write a loop, check with a 'scope, then get an LED blinking and take it from there. I was bringing up new hardware at the same time, so doubly challenging.
Once I knew I could light an LED I could implement print character, then string, then numbers and so on. Today, printf is my debugger but while my RubyOS can dump memory (and disassemble). It's not a "monitor" as such though.
Not helpful if starting the debugger is your normal way of working though - it's a very different world.
I did use the symon emulator very briefly though but it's memory map wasn't what I was after in my target.
but once I could run some simple asm programs (I used ca65 to assemble them) I moved on to writing my own monitor, then OS, then I created a cc65 target for my system. That was relatively easy, but that was also after I had a good enough operating system to run EhBASIC and BBC Basic.
Good luck with the route you take, but I'd strongly suggest starting with blinking an LED.
Gordon
_________________
--
Gordon Henderson.
See my
Ruby 6502 and 65816 SBC projects here:
https://projects.drogon.net/ruby/