]> git.sur5r.net Git - cc65/blob - libsrc/runtime/and.s
fsetpos.o fgetpos.o rewind.o fseek.o ftell.o: new object files
[cc65] / libsrc / runtime / and.s
1 ;
2 ; Ullrich von Bassewitz, 05.08.1998
3 ;
4 ; CC65 runtime: and on ints
5 ;
6
7         .export         tosanda0, tosandax
8         .import         addysp1
9         .importzp       sp, ptr4
10
11 tosanda0:
12         ldx     #$00
13 tosandax:
14         ldy     #0
15         and     (sp),y
16         sta     ptr4
17         iny
18         txa
19         and     (sp),y
20         tax
21         lda     ptr4
22         jmp     addysp1         ; drop TOS, set condition codes
23