mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-31 11:20:03 +00:00
fix set-space ir extension instruction; expand ctrlbits to u16, so that it can encode modern register sized decodes
This commit is contained in:
@@ -67,14 +67,14 @@ e_interpret(String8 bytecode)
|
||||
{
|
||||
// rjf: consume next opcode
|
||||
RDI_EvalOp op = (RDI_EvalOp)*ptr;
|
||||
U8 ctrlbits = 0;
|
||||
U16 ctrlbits = 0;
|
||||
if(op < RDI_EvalOp_COUNT)
|
||||
{
|
||||
ctrlbits = rdi_eval_op_ctrlbits_table[op];
|
||||
}
|
||||
else switch(op)
|
||||
{
|
||||
case E_IRExtKind_SetSpace:{ctrlbits = RDI_EVAL_CTRLBITS(16, 0, 0);}break;
|
||||
case E_IRExtKind_SetSpace:{ctrlbits = RDI_EVAL_CTRLBITS(32, 0, 0);}break;
|
||||
default:
|
||||
{
|
||||
result.code = E_InterpretationCode_BadOp;
|
||||
|
||||
Reference in New Issue
Block a user