From: cuz Date: Sat, 10 Jun 2000 15:48:54 +0000 (+0000) Subject: Minor optimization X-Git-Tag: V2.12.0~3467 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=66e7d9cd1b1482ec2bda9637e95e03ec9e7a6662;p=cc65 Minor optimization git-svn-id: svn://svn.cc65.org/cc65/trunk@45 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/runtime/bneg.s b/libsrc/runtime/bneg.s index 034d716c9..8f488f9c1 100644 --- a/libsrc/runtime/bneg.s +++ b/libsrc/runtime/bneg.s @@ -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