1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 19:29:37 +00:00

Handle more opcodes in OptPrecalc

git-svn-id: svn://svn.cc65.org/cc65/trunk@2481 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2003-10-08 21:23:01 +00:00
parent 5cc79eaf15
commit 4cbf8b352d

View File

@ -1318,10 +1318,13 @@ unsigned OptPrecalc (CodeSeg* S)
/* Handle the different instructions */
switch (E->OPC) {
case OP65_ADC:
case OP65_AND:
case OP65_ASL:
case OP65_EOR:
case OP65_LSR:
case OP65_ORA:
case OP65_SBC:
if (RegValIsKnown (Out->RegA)) {
/* Accu AND zp with known contents */
const char* Arg = MakeHexArg (Out->RegA);