add opcode for swapping top two values on the stack

This commit is contained in:
Nikita Smith
2025-10-02 18:19:42 -07:00
parent 48c7e45535
commit 954633bba2
4 changed files with 14 additions and 4 deletions
+6
View File
@@ -841,6 +841,12 @@ e_interpret(String8 bytecode)
case 8:{nval.u64 = bswap_u64(svals[0].u64);}break;
}
}break;
case RDI_EvalOp_Swap:
{
// TODO: add support for pushing multiple values onto the stack
NotImplemented;
}break;
}
// rjf: push