extensions
Steven Massey 3 years ago
parent 33b501fe26
commit 61c478272d

@ -76,7 +76,7 @@ _ (m3ReallocArray (& func->codePageRefs, IM3CodePage, func->numCod
func->codePageRefs [index] = page;
}
}
# endif
# endif
}
else _throw (m3Err_mallocFailedCodePage);
@ -2132,7 +2132,8 @@ const M3OpInfo c_operations [] =
# define d_m3DebugOp(OP) M3OP (#OP, 0, none, { op_##OP })
# define d_m3DebugTypedOp(OP) M3OP (#OP, 0, none, { op_##OP##_i32, op_##OP##_i64, op_##OP##_f32, op_##OP##_f64, })
d_m3DebugOp (Entry), d_m3DebugOp (Compile), d_m3DebugOp (End),
d_m3DebugOp (Entry), // 0xc5
d_m3DebugOp (Compile), d_m3DebugOp (End),
d_m3DebugOp (Unsupported),
d_m3DebugOp (CallRawFunction),

@ -162,7 +162,7 @@ OpInfo find_operation_info (IM3Operation i_operation)
// TODO: find also extended opcodes
for (u32 i = 0; i <= 0xff; ++i)
{
IM3OpInfo oi = GetOpInfo(i);
IM3OpInfo oi = GetOpInfo (i);
if (oi->type != c_m3Type_unknown)
{
@ -267,17 +267,12 @@ void DecodeOperation (char * o_string, u8 i_opcode, IM3Operation i_operation,
switch (i_opcode)
{
// d_m3Decode (0xc0, Const)
// d_m3Decode (0xc1, Entry)
d_m3Decode (0xc5, Entry)
d_m3Decode (c_waOp_call, Call)
d_m3Decode (c_waOp_branch, Branch)
d_m3Decode (c_waOp_branchTable, BranchTable)
d_m3Decode (0x39, f64_Store)
}
#undef d_m3Decode
#define d_m3Decode(FUNC) if (i_operation == op_##FUNC) Decode_##FUNC (o_string, i_opcode, i_operation, i_opInfo, o_pc);
d_m3Decode (Entry)
}

Loading…
Cancel
Save