Sharp 80: Z-80 Disassembler
Sharp 80 can convert the plain bytes in its memory to disassembled Z-80 code. Hit Alt+E to show the disassembly screen:
You may want to disassemble only a part of memory; if so, choose the start address by typing the hex address with the keyboard. Also, the disassembler will automatically strip trailing NOP instructions (zeros) to keep the file size down.
The two disassembly options are:
- Reassemblable: This removes the address and opcode byte information so that the file can be fed back into an assembler.
- Lower case: Everyone has a preference when it comes to casing in assembly code. (I like upper case, personally.)
After choosing your options, hit the S key to disassemble. You'll get a text file that looks like this (abbreviated here):
; Disassembly from memory 0000H to 3800H 0000 F3 DI 0001 AF XOR A 0002 C3 15 30 JP 3015 0005 C3 00 40 JP 4000 0008 C3 00 40 JP 4000 000B E1 POP HL 000C E9 JP (HL) 000D C3 12 30 JP 3012 0010 C3 03 40 JP 4003 0013 C5 PUSH BC 0014 06 01 LD B, 01 0016 18 2E JR 0046 0018 C3 06 40 JP 4006 001B C5 PUSH BC 001C 06 02 LD B, 02 001E 18 26 JR 0046 > 8,600 lines total.