]> git.sur5r.net Git - cc65/commitdiff
Minor optimization
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 10 Jun 2000 15:48:54 +0000 (15:48 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 10 Jun 2000 15:48:54 +0000 (15:48 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@45 b7a2c559-68d2-44c3-8de9-860c34a00d81

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