summaryrefslogtreecommitdiff
path: root/vm/mterp/x86/OP_GOTO_16.S
diff options
context:
space:
mode:
Diffstat (limited to 'vm/mterp/x86/OP_GOTO_16.S')
-rw-r--r--vm/mterp/x86/OP_GOTO_16.S14
1 files changed, 14 insertions, 0 deletions
diff --git a/vm/mterp/x86/OP_GOTO_16.S b/vm/mterp/x86/OP_GOTO_16.S
new file mode 100644
index 0000000..de0903c
--- /dev/null
+++ b/vm/mterp/x86/OP_GOTO_16.S
@@ -0,0 +1,14 @@
+%verify "executed"
+%verify "forward and backward"
+ /*
+ * Unconditional branch, 16-bit offset.
+ *
+ * The branch distance is a signed code-unit offset
+ */
+ /* goto/16 +AAAA */
+ movl rSELF,%ecx
+ movswl 2(rPC),%eax # eax<- ssssAAAA
+ movl offThread_curHandlerTable(%ecx),rIBASE
+ FETCH_INST_INDEXED %eax
+ ADVANCE_PC_INDEXED %eax
+ GOTO_NEXT