mirror of
https://github.com/cc65/cc65.git
synced 2025-01-09 11:30:29 +00:00
Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@1375 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
2a8e2d422c
commit
195feebc00
@ -1574,7 +1574,7 @@ void g_addeqstatic (unsigned flags, unsigned long label, long offs,
|
|||||||
if (val < 0x100) {
|
if (val < 0x100) {
|
||||||
AddCodeLine ("ldy #<(%s)", lbuf);
|
AddCodeLine ("ldy #<(%s)", lbuf);
|
||||||
AddCodeLine ("sty ptr1");
|
AddCodeLine ("sty ptr1");
|
||||||
AddCodeLine ("ldy #>(%s+1)", lbuf);
|
AddCodeLine ("ldy #>(%s)", lbuf);
|
||||||
if (val == 1) {
|
if (val == 1) {
|
||||||
AddCodeLine ("jsr laddeq1");
|
AddCodeLine ("jsr laddeq1");
|
||||||
} else {
|
} else {
|
||||||
@ -1589,7 +1589,7 @@ void g_addeqstatic (unsigned flags, unsigned long label, long offs,
|
|||||||
} else {
|
} else {
|
||||||
AddCodeLine ("ldy #<(%s)", lbuf);
|
AddCodeLine ("ldy #<(%s)", lbuf);
|
||||||
AddCodeLine ("sty ptr1");
|
AddCodeLine ("sty ptr1");
|
||||||
AddCodeLine ("ldy #>(%s+1)", lbuf);
|
AddCodeLine ("ldy #>(%s)", lbuf);
|
||||||
AddCodeLine ("jsr laddeq");
|
AddCodeLine ("jsr laddeq");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -1809,7 +1809,7 @@ void g_subeqstatic (unsigned flags, unsigned long label, long offs,
|
|||||||
if (val < 0x100) {
|
if (val < 0x100) {
|
||||||
AddCodeLine ("ldy #<(%s)", lbuf);
|
AddCodeLine ("ldy #<(%s)", lbuf);
|
||||||
AddCodeLine ("sty ptr1");
|
AddCodeLine ("sty ptr1");
|
||||||
AddCodeLine ("ldy #>(%s+1)", lbuf);
|
AddCodeLine ("ldy #>(%s)", lbuf);
|
||||||
AddCodeLine ("lda #$%02X", (unsigned char)val);
|
AddCodeLine ("lda #$%02X", (unsigned char)val);
|
||||||
AddCodeLine ("jsr lsubeqa");
|
AddCodeLine ("jsr lsubeqa");
|
||||||
} else {
|
} else {
|
||||||
@ -1820,7 +1820,7 @@ void g_subeqstatic (unsigned flags, unsigned long label, long offs,
|
|||||||
} else {
|
} else {
|
||||||
AddCodeLine ("ldy #<(%s)", lbuf);
|
AddCodeLine ("ldy #<(%s)", lbuf);
|
||||||
AddCodeLine ("sty ptr1");
|
AddCodeLine ("sty ptr1");
|
||||||
AddCodeLine ("ldy #>(%s+1)", lbuf);
|
AddCodeLine ("ldy #>(%s)", lbuf);
|
||||||
AddCodeLine ("jsr lsubeq");
|
AddCodeLine ("jsr lsubeq");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user