]> git.sur5r.net Git - cc65/blobdiff - libsrc/runtime/bneg.s
no TGI_ERR_NO_MEM or TGI_ERR_NO_IOCB anymore: replaced by TGI_ERR_NO_RES
[cc65] / libsrc / runtime / bneg.s
index 034d716c96558f12c48d372f4a87f6457ee2a8e2..8f488f9c1972bbc0df14a698e6c17192030e3af7 100644 (file)
@@ -9,10 +9,9 @@
 
 bnegax:        cpx     #0
        bne     L0
-bnega: cmp     #0
+bnega:         tax
        bne     L0
-L1:    ldx     #0
-       lda     #1
+L1:    lda     #1              ; Zero already in X
        rts
 
 L0:    ldx     #0