aboutsummaryrefslogtreecommitdiff
path: root/ops/branchi
diff options
context:
space:
mode:
Diffstat (limited to 'ops/branchi')
-rw-r--r--ops/branchi/call.c6
-rw-r--r--ops/branchi/xlei.c7
2 files changed, 13 insertions, 0 deletions
diff --git a/ops/branchi/call.c b/ops/branchi/call.c
new file mode 100644
index 0000000..23d88d0
--- /dev/null
+++ b/ops/branchi/call.c
@@ -0,0 +1,6 @@
+#include "../common.h"
+
+DEFINE_OP(call) {
+ x = ((op_call)IMM())(sp, a, x, y, o);
+ NEXT_OP(sp, a, x, y, o);
+}
diff --git a/ops/branchi/xlei.c b/ops/branchi/xlei.c
new file mode 100644
index 0000000..f42d9fb
--- /dev/null
+++ b/ops/branchi/xlei.c
@@ -0,0 +1,7 @@
+#include "../common.h"
+
+DEFINE_OP(xlei)
+{
+ UNUSED(a);
+ NEXT_OP(sp, x <= IMM(), x, y, o);
+}