Z80
Appearance
Assembler
Caveats
- when pushing `1' by using
SCFandRRA, the carry-flag will be reset byRRA - don't forget the brackets, i.e
(HL)instead ofHL, andLD DE,(NN)instead ofLD DE,NN - when communicating with the MSX Video Display Processor (VDP) like this:
IN L,(C) IN H,(C)
- the addresspointer of the VCP might not be increased when reaching the
IN H,(C). Solution:
IN L,(C) NOP NOP IN H,(C)
- with
CP Athe result will *always* be zero. Test for zero withCP 0orAND A