and16.asm 332 B

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