1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2025-01-05 02:30:56 +00:00

Fix over optimization of immediate opcodes

This commit is contained in:
David Schmenk 2018-10-01 16:24:01 -07:00
parent 3f23acf49c
commit 7a5578277f

View File

@ -640,19 +640,23 @@ void interp(code *ip)
case 0x36: // DIVMOD
break;
case 0x38: // ADDI
PUSH(POP + BYTE_PTR(ip));
val = POP + BYTE_PTR(ip);
PUSH(val);
ip++;
break;
case 0x3A: // SUBI
PUSH(POP - BYTE_PTR(ip));
val = POP - BYTE_PTR(ip);
PUSH(val);
ip++;
break;
case 0x3C: // ANDI
PUSH(POP & BYTE_PTR(ip));
val = POP & BYTE_PTR(ip);
PUSH(val);
ip++;
break;
case 0x3E: // ORI
PUSH(POP | BYTE_PTR(ip));
val = POP | BYTE_PTR(ip);
PUSH(val);
ip++;
break;
/*