1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-04 13:29:35 +00:00

Mark RTI as "uses all registers" to avoid problems with the optimizer

removing register loads from an interrupt handler return.


git-svn-id: svn://svn.cc65.org/cc65/trunk@2676 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2003-11-22 13:02:37 +00:00
parent 7e44224dd0
commit efdee34870

View File

@ -449,11 +449,14 @@ const OPCDesc OPCTable[OPCODE_COUNT] = {
REG_NONE, /* use */
REG_NONE, /* chg */
OF_SETF /* flags */
},
},
/* Mark RTI as "uses all registers but doesn't change them", so the
* optimizer won't remove preceeding loads.
*/
{ OP65_RTI, /* opcode */
"rti", /* mnemonic */
1, /* size */
REG_NONE, /* use */
REG_AXY, /* use */
REG_NONE, /* chg */
OF_RET /* flags */
},