aboutsummaryrefslogtreecommitdiff
path: root/ops/branchi
diff options
context:
space:
mode:
Diffstat (limited to 'ops/branchi')
-rw-r--r--ops/branchi/bani.c8
-rw-r--r--ops/branchi/source.mk2
2 files changed, 10 insertions, 0 deletions
diff --git a/ops/branchi/bani.c b/ops/branchi/bani.c
new file mode 100644
index 0000000..15708eb
--- /dev/null
+++ b/ops/branchi/bani.c
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
+
+#include "../common.h"
+
+DEFINE_OP(bani)
+{
+ BRANCH(IMM(), a != 0, sp, a, x, y, o);
+}
diff --git a/ops/branchi/source.mk b/ops/branchi/source.mk
new file mode 100644
index 0000000..1c5424e
--- /dev/null
+++ b/ops/branchi/source.mk
@@ -0,0 +1,2 @@
+IMM_SRC != echo ops/branchi/*.c
+IMM_SOURCES += $(IMM_SRC)