spc476 / 6809-DISASM

A Motorola 6809 disassembler written in 6809 assembly.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

               The MC6809 Disassmebler in MC6809 Assembly Code

This implements a thread-safe, position independent, ROMable 2K routine to
disassemble a single MC6809 instruction.  The RAM requirements are minimal,
requiring only 47 bytes of stack, and 55 bytes of non-stack RAM in order to
operate.

Upon entry, the X register needs to point to 55 bytes of RAM, which will be
used to return the disassembly, and the Y register pointing to the
instruction to be decoded.  All registers are saved, except for Y, which
upon return, will point to the next instruction in memory.

The space provided by the X register will contain the following data upon
return:

	offset	contents
	0	pointer to address in hexadecimal format
	2	pointer to opcode bytes in hexadecimal format
	4	pointer to operand bytes in hexadecimal format
	6	pointer to opcode as text
	8	pointer to operand as text
	10+	ASCII text strings

Each string is terminated with a NUL byte.

About

A Motorola 6809 disassembler written in 6809 assembly.

License:GNU Lesser General Public License v3.0


Languages

Language:Assembly 96.3%Language:Makefile 3.7%