]> git.sur5r.net Git - cc65/blob - libsrc/runtime/bneg.s
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / libsrc / runtime / bneg.s
1 ;
2 ; Ullrich von Bassewitz, 05.08.1998
3 ;
4 ; CC65 runtime: boolean negation
5 ;
6
7         .export         bnega, bnegax
8         .import         return0, return1
9
10 bnegax: cpx     #0
11         bne     L0
12 bnega:  tax
13         bne     L0
14 L1:     lda     #1              ; Zero already in X
15         rts
16
17 L0:     ldx     #0
18         txa
19         rts
20