Jump to content

Z80

From FVue

Assembler

Caveats

  • when pushing `1' by using SCF and RRA, the carry-flag will be reset by RRA
  • don't forget the brackets, i.e (HL) instead of HL, and LD DE,(NN) instead of LD 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 A the result will *always* be zero. Test for zero with CP 0 or AND A