]> git.sur5r.net Git - cc65/blob - libsrc/runtime/ltest.s
lseek: Return EINVAL if new position is less than 0 or greater than 2^24 - 1.
[cc65] / libsrc / runtime / ltest.s
1 ;
2 ; Ullrich von Bassewitz, 07.08.1998
3 ;
4 ; CC65 runtime: test long in eax
5 ;
6
7         .export         utsteax, tsteax
8         .importzp       sreg, tmp1
9
10 tsteax:
11 utsteax:
12         tay                     ; Save value
13         stx     tmp1
14         ora     tmp1
15         ora     sreg
16         ora     sreg+1
17         beq     L9
18         tya
19         ldy     #1              ; Force NE
20 L9:     rts                               
21
22