]> git.sur5r.net Git - cc65/blob - libsrc/runtime/xor.s
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / libsrc / runtime / xor.s
1 ;
2 ; Ullrich von Bassewitz, 05.08.1998
3 ;
4 ; CC65 runtime: xor on ints
5 ;
6
7         .export         tosxora0, tosxorax
8         .import         addysp1
9         .importzp       sp, tmp1
10
11 tosxora0:
12         ldx     #$00
13 tosxorax:
14         ldy     #0
15         eor     (sp),y
16         sta     tmp1
17         iny
18         txa
19         eor     (sp),y
20         tax
21         lda     tmp1
22         jmp     addysp1         ; drop TOS, set condition codes
23