If caz dosen't support the instruction EX AF,AF' directly (I dunno why it wouldn't, but...), try .db 08, or wheatever the equilivant would be. Also, EX AF,AF' only exchanges the A and F regs, to Exchange BC,DE, and HL, use EXX