Fixed an error in the macro package that prevented the macros to work

correctly. The short forms of the jumps were never choosen. The error was
introduced with release 3176 in 2004(!) and reported by thefox.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5787 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2012-07-17 18:30:05 +00:00
parent b4214634b2
commit 6345c4ee25

View File

@@ -2,7 +2,7 @@
.if .match(Target, 0) .if .match(Target, 0)
bne *+5 bne *+5
jmp Target jmp Target
.elseif .def(Target) .and .const(Target) .and ((*+2)-(Target) <= 127) .elseif .def(Target) .and .const((*-2)-(Target)) .and ((*+2)-(Target) <= 127)
beq Target beq Target
.else .else
bne *+5 bne *+5
@@ -13,7 +13,7 @@
.if .match(Target, 0) .if .match(Target, 0)
beq *+5 beq *+5
jmp Target jmp Target
.elseif .def(Target) .and .const(Target) .and ((*+2)-(Target) <= 127) .elseif .def(Target) .and .const((*-2)-(Target)) .and ((*+2)-(Target) <= 127)
bne Target bne Target
.else .else
beq *+5 beq *+5
@@ -24,7 +24,7 @@
.if .match(Target, 0) .if .match(Target, 0)
bpl *+5 bpl *+5
jmp Target jmp Target
.elseif .def(Target) .and .const(Target) .and ((*+2)-(Target) <= 127) .elseif .def(Target) .and .const((*-2)-(Target)) .and ((*+2)-(Target) <= 127)
bmi Target bmi Target
.else .else
bpl *+5 bpl *+5
@@ -35,7 +35,7 @@
.if .match(Target, 0) .if .match(Target, 0)
bmi *+5 bmi *+5
jmp Target jmp Target
.elseif .def(Target) .and .const(Target) .and ((*+2)-(Target) <= 127) .elseif .def(Target) .and .const((*-2)-(Target)) .and ((*+2)-(Target) <= 127)
bpl Target bpl Target
.else .else
bmi *+5 bmi *+5
@@ -46,7 +46,7 @@
.if .match(Target, 0) .if .match(Target, 0)
bcc *+5 bcc *+5
jmp Target jmp Target
.elseif .def(Target) .and .const(Target) .and ((*+2)-(Target) <= 127) .elseif .def(Target) .and .const((*-2)-(Target)) .and ((*+2)-(Target) <= 127)
bcs Target bcs Target
.else .else
bcc *+5 bcc *+5
@@ -57,7 +57,7 @@
.if .match(Target, 0) .if .match(Target, 0)
bcs *+5 bcs *+5
jmp Target jmp Target
.elseif .def(Target) .and .const(Target) .and ((*+2)-(Target) <= 127) .elseif .def(Target) .and .const((*-2)-(Target)) .and ((*+2)-(Target) <= 127)
bcc Target bcc Target
.else .else
bcs *+5 bcs *+5
@@ -68,7 +68,7 @@
.if .match(Target, 0) .if .match(Target, 0)
bvc *+5 bvc *+5
jmp Target jmp Target
.elseif .def(Target) .and .const(Target) .and ((*+2)-(Target) <= 127) .elseif .def(Target) .and .const((*-2)-(Target)) .and ((*+2)-(Target) <= 127)
bvs Target bvs Target
.else .else
bvc *+5 bvc *+5
@@ -79,7 +79,7 @@
.if .match(Target, 0) .if .match(Target, 0)
bvs *+5 bvs *+5
jmp Target jmp Target
.elseif .def(Target) .and .const(Target) .and ((*+2)-(Target) <= 127) .elseif .def(Target) .and .const((*-2)-(Target)) .and ((*+2)-(Target) <= 127)
bvc Target bvc Target
.else .else
bvs *+5 bvs *+5