2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 06.08.1998
|
|
|
|
;
|
|
|
|
; CC65 runtime: boolean negation for longs
|
|
|
|
;
|
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
.export bnegeax
|
|
|
|
.importzp sreg, tmp1
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
bnegeax:
|
2013-05-09 13:56:54 +02:00
|
|
|
stx tmp1
|
|
|
|
ldx #0 ; High byte of result
|
|
|
|
ora tmp1
|
|
|
|
ora sreg
|
|
|
|
ora sreg+1
|
|
|
|
bne @L0
|
|
|
|
lda #1
|
|
|
|
rts
|
2000-06-10 16:05:59 +00:00
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
@L0: txa ; X is zero
|
|
|
|
rts
|
2000-05-28 13:40:48 +00:00
|
|
|
|