All tests pass; lots of stuff is no longer const
This commit is contained in:
parent
b9a33f2c98
commit
d71215d494
24 changed files with 216 additions and 120 deletions
|
|
@ -65,6 +65,7 @@ static bool choice_ctrvm(HRVMProg *prog, void* env) {
|
|||
gotos[i] = h_rvm_insert_insn(prog, RVM_GOTO, 65535);
|
||||
h_rvm_patch_arg(prog, insn, h_rvm_get_ip(prog));
|
||||
}
|
||||
h_rvm_insert_insn(prog, RVM_MATCH, 0x00FF); // fail.
|
||||
uint16_t jump = h_rvm_get_ip(prog);
|
||||
for (size_t i=0; i<s->len; ++i) {
|
||||
h_rvm_patch_arg(prog, gotos[i], jump);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue