lei8.asm 270 B

1234567891011
  1. #include once <lti8.asm>
  2. ;
  3. __LEI8: ; Signed <= comparison for 8bit int
  4. ; A <= H (registers)
  5. sec ;- sub h
  6. sbc z80_h
  7. jne __LTI ;- jp nz, __LTI ;- not 0, proceed as A < H
  8. sec ;- dec a ;- Sets A to True
  9. sbc #$01
  10. rts ;- ret