zmacv14@doc.ic.ac.uk (C P Brown) (03/09/90)
Apologies that this isn't directly CP/M based but its the closest I could get. I'm writing a Z80 cross assembler/disassembler and emulator on a 68000-based machine, and I've run into a spot of bother. The Z80 is such a strange beast that I can't work out a decent assembler algorithm, and although I've done a disassembler, I'm not whether its optimal or not. Please can anyone suggest a reference for good Z80 assembler/disassembler algorithms, or even better, source? Ideally it would cover the undocumented instructions too. Because I'm going to include an emulator I'd like a pretty efficient version of the disassembler (or instruction decoder). Advice for a good Z80 reference would be appreciated, as I'm going to have to learn the exact functionality of every Z80 instruction - I'm familiar with most, but some (eg IM 0/1/2) I'm a little unsure of. Please e-mail as I don't (can't) subscribe to this newsgroup. Thanks in advance for any help, Phil Brown