]> git.sur5r.net Git - cc65/blob - and.s
cf1d10ead8004e3f4aebaabba98a8453380989d8
[cc65] / 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