1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 04:30:10 +00:00

Squeeze two cycles out of the abs() function

git-svn-id: svn://svn.cc65.org/cc65/trunk@2508 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2003-10-10 17:59:00 +00:00
parent 23c35f27f8
commit 3f06947b36

View File

@ -7,8 +7,7 @@
.export _abs
.import negax
_abs: dex
inx ; test hi byte
_abs: cpx #$00 ; test hi byte
bpl L1
jmp negax ; Negate if negative
L1: rts