sjasmplus
sjasmplus copied to clipboard
Add to listing file disassembly of final machine code (new option)
Similar to 64tass assembler for 6502 CPU, which has listing like this:
.080d a9 00 lda #$00 start lda #$00
.080f 8d 20 d0 sta $d020 sta $D020
.0812 60 rts rts
(address, machine code, disassembled opcode, source line)
Especially considering how much of machine code can be in sjasmplus produced by various macros, fake instructions and scripts, it would be nice to have the disassembled view of final code in the listing.
tasks:
- [ ] research feasibility, especially how well it is possible to detect if the emitted machine code are instructions or data, to not disassemble blocks of data bytes - figure out precise rules of the decision process wrt current implementation.
- [ ] research Z80 disassemblers, what is available (source, license), and what's the API, if it's feasible to call it as binary, or link as library, or copy the sources into sjasmplus project
- [ ] add option + do it. :rofl: