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:
parent
3f23acf49c
commit
7a5578277f
@ -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;
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user