[Coco] 6809 disassembler

William Astle lost at l-w.net
Thu Jan 22 05:31:43 EST 2004


> Portal-9 will probably use 3 windows to run a disassemble session.  The
> binary, the data/label file, and the generated listing.  So far, the
> listing has a troublesome left column of addresses and opcodes that doesn't
> appear assemblable without major editing.  I wonder what's up with
> this?  The whole point of disassembling is so you can make a real source
> code file, not a listing.

A number of years ago I wrote a disassembler in BASIC that included the
address and code as well. This was intentional because that's what I
needed at the time I wrote it. It was published in CFDM so if anyone has a
copy that they can upload somewhere, go ahead. It should handle the
documented 6809 opcodes correctly. (I used the Levanthal book to make sure
I decoded everything right.)

Obviously it isn't overly useful for Portal9 but it might prove
interesting from a "how do I do it" perspective.

As a side note, I was already impressed by the 6809 instruction set.
However, as I wrote the disassembler, I became even more impressed. It was
actually quite straight forward to decode it.

-- 
William Astle
finger lost at l-w.net for further information

Geek Code V3.12: GCS/M/S d- s+:+ !a C++ UL++++$ P++ L+++ !E W++ !N w--- !O
!M PS PE V-- Y+ PGP t+@ 5++ X !R tv+@ b+++@ !DI D? G e++ h+ y?



More information about the Coco mailing list