libz80
libz80 copied to clipboard
An emulator of the Z80 processor (C library)
The ADC maths can give a result of 0x10000, in which case the carry is correctly set but Z is not. This causes a failure running ROMWBW. The Z test...
Now their signature is `byte (int param, ushort addr)` which prevents it from passing a pointer to the whatever one would want to (classes or structures or another function pointers...
if Z80Debug returns the size variable then Z80Debug can be used to produce a debug display showing more than just one instruction