mirror of
https://github.com/cc65/cc65.git
synced 2024-12-24 11:31:31 +00:00
Simplify code generation
git-svn-id: svn://svn.cc65.org/cc65/trunk@827 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
1cfec2492e
commit
c51a706830
@ -1111,21 +1111,13 @@ void g_putind (unsigned Flags, unsigned Offs)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case CF_INT:
|
case CF_INT:
|
||||||
if (Offs) {
|
ldyconst (Offs);
|
||||||
ldyconst (Offs);
|
AddCodeLine ("jsr staxspidx");
|
||||||
AddCodeLine ("jsr staxspidx");
|
|
||||||
} else {
|
|
||||||
AddCodeLine ("jsr staxspp");
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CF_LONG:
|
case CF_LONG:
|
||||||
if (Offs) {
|
ldyconst (Offs);
|
||||||
ldyconst (Offs);
|
AddCodeLine ("jsr steaxspidx");
|
||||||
AddCodeLine ("jsr steaxspidx");
|
|
||||||
} else {
|
|
||||||
AddCodeLine ("jsr steaxspp");
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user