floobydust wrote:
Happy to post the source should anyone care to check it out. Could probably use a tad of cleanup however.
I'm very interested in seeing any compact disassembler implementations.
Slight topic drift, but....
I had fun squeezing 6502/Z80/6809 disassemblers into a DIY Multi-Platform In-Circuit Emulator I was working on last year.
The environment is bit different from yours, as it's all implemented in a small FPGA (on a
GODIL):
Attachment:
GODIL48-250-byy-4C_t1.jpg [ 62.59 KiB | Viewed 1631 times ]
The FPGA contains the target processor, plus a second supervisory
AVR8 soft core. This simply replaces the target processor, and you talk to it over a serial link.
The code for the ICE was all written in C, rather than assembler, and runs on the AVR soft core in the FPGA, using FPGA block RAM as program memory. The total available program memory was 9Kx16.
The various disassemblers (all from existing open source projects) are here:
https://github.com/hoglet67/AtomBusMon/ ... /dis6502.chttps://github.com/hoglet67/AtomBusMon/ ... /dis6809.chttps://github.com/hoglet67/AtomBusMon/ ... e/disz80.cand the supervisor core is here:
https://github.com/hoglet67/AtomBusMon/ ... omBusMon.cThe name (AtomBusMon) is largely historic - it's morphed from the humble originals of being a 6502 single-stepper for the Acorn Atom, to being a full-featured multiple-platform ICE.
I have promised Ed that I'll do some more documentation on this project, in the form of a github wiki.
Dave