The manual "Programming the 65816 Including the 6502, 65C02 and 65802" available from The Western Design Center has a chapter describing and giving the source code for a program called DEBUG16 that can perform disassembly and instruction tracing of 65816 machine code. I ported the code to the CC65 assembler and got the disassembler running on my Replica 1 computer which has been modified to support a 65816 CPU. I haven't yet got the trace code ported and debugged.
Details and a link to the source code can be found here on my blog: http://jefftranter.blogspot.ca/2012/07/ ... trace.html
65816 Disassembler and Trace utility
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: 65816 Disassembler and Trace utility
tranter wrote:
The manual "Programming the 65816 Including the 6502, 65C02 and 65802" available from The Western Design Center has a chapter describing and giving the source code for a program called DEBUG16 that can perform disassembly and instruction tracing of 65816 machine code. I ported the code to the CC65 assembler and got the disassembler running on my Replica 1 computer which has been modified to support a 65816 CPU. I haven't yet got the trace code ported and debugged.
Details and a link to the source code can be found here on my blog: http://jefftranter.blogspot.ca/2012/07/ ... trace.html
Details and a link to the source code can be found here on my blog: http://jefftranter.blogspot.ca/2012/07/ ... trace.html
I'll bet that port kept you up at nights for a while.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: 65816 Disassembler and Trace utility
Nice one, thanks Jeff. It was tantalising seeing that code from WDC and then discovering it was unusable.