Hi all... Im attempting to do some debugging that is pretty complex. I have my normal trace command of
trace mytrace.txt,0,logerror,{tracelog "A=%02X X=%02X Y=%02X ",a,x,y}
(PS: Im targeting the 6502).
There are several RAM variables that I would love to be able to capture in the trace too... , I thought maybe I could just add in the hex address in the parameters... something like this...
trace mytrace.txt,0,logerror,{tracelog "A=%02X X=%02X Y=%02X OBJYL=%02X ",a,x,y,0630}
but it just echo's the value of 630 into the trace string.
Does anyone have any ideas on the syntax of the action parameter beyond the basic CPU registers.. is this even possible? Are there better ways for me to dump memory locations into the trace file that Im just blindly missing?
I looked in source, but it seems that trace goes all the way back to the CPU driver perhaps and Im not a C guru, but each CPU must inherit from a base class for tracing right?
sorry for all the questions.. thank you!!
Jess