From 66e7d9cd1b1482ec2bda9637e95e03ec9e7a6662 Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 10 Jun 2000 15:48:54 +0000 Subject: [PATCH] Minor optimization git-svn-id: svn://svn.cc65.org/cc65/trunk@45 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/runtime/bneg.s | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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