1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2024-10-18 22:24:28 +00:00

Remove invalid optimization

This commit is contained in:
Dave Schmenk 2018-01-15 22:33:00 -08:00
parent c67afa6d24
commit 7a42a8e0a0
3 changed files with 3 additions and 30 deletions

Binary file not shown.

View File

@ -273,12 +273,8 @@ def emit_pending_seq#0
else // Constant WORD
codeptr->0 = $2C
codeptr=>1 = op=>opval
codeptr = codeptr + 3
codeptr = codeptr + 3
fin
else // Constant LOAD/STORE/CALL
codeptr->0 = op->opcode
codeptr=>1 = op=>opval
codeptr = codeptr + 3
fin
break
//

View File

@ -74,9 +74,9 @@ def crunch_seq(seq, pass)
break
fin
if nextop->opcode == SUB_CODE
op->opcode = DEC_CODE
op->opcode = DEC_CODE
op->opgroup = STACK_GROUP
freeops = 1
freeops = 1
break
fin
if nextop->opcode == SHL_CODE
@ -232,29 +232,6 @@ def crunch_seq(seq, pass)
fin
next
break
//
// Constant addresses
//
is LB_CODE
op->opcode = LAB_CODE
freeops = 1
break
is LW_CODE
op->opcode = LAW_CODE
freeops = 1
break
is SB_CODE
op->opcode = SAB_CODE
freeops = 1
break
is SW_CODE
op->opcode = SAW_CODE
freeops = 1
break
is ICAL_CODE
op->opcode = CALL_CODE
freeops = 1
break
wend
break // CONST_CODE
is LADDR_CODE