sgnu32.asm 252 B

123456789101112131415
  1. ; Returns SGN (SIGN) for 32 bits unsigned integer
  2. ;
  3. __SGNU32:
  4. lda z80_h ;- ld a,h
  5. sta z80_a
  6. ora z80_l ;- or l
  7. ora z80_d ;- or d
  8. ora z80_e ;- or e
  9. bne *+3 ;- ret z
  10. rts
  11. lda #1 ;- ld a,1
  12. sta z80_a
  13. rts ;- ret