and8.asm 301 B

12345678910111213141516
  1. ; FASTCALL boolean and 8 version.
  2. ; result in Accumulator (0 False, not 0 True)
  3. ; __FASTCALL__ version (operands: A, H)
  4. ; Performs 8bit and 8bit and returns the boolean
  5. ;
  6. __AND8:
  7. lda z80_a ;- or a
  8. ora z80_a
  9. sta z80_a
  10. bne *+3 ;- ret z
  11. rts
  12. lda z80_h ;- ld a, h
  13. sta z80_a
  14. rts ;- ret