aboutsummaryrefslogtreecommitdiff
path: root/ops/pushx.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-09-07 21:25:36 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2023-09-07 21:25:36 +0300
commit23db5514bf626801c8e752f12171eb45d2598946 (patch)
tree8a5fbd619ddb4d5c22b6c6fb1c1027c1fd2e7af4 /ops/pushx.c
parent4d8fdd4288cc3ca5e0a2bd6ac80b725c2ee52118 (diff)
downloadcopyjit-23db5514bf626801c8e752f12171eb45d2598946.tar.gz
copyjit-23db5514bf626801c8e752f12171eb45d2598946.zip
allow fibonacci in jit-comparison
Diffstat (limited to 'ops/pushx.c')
-rw-r--r--ops/pushx.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ops/pushx.c b/ops/pushx.c
new file mode 100644
index 0000000..7c70578
--- /dev/null
+++ b/ops/pushx.c
@@ -0,0 +1,7 @@
+#include "common.h"
+
+DEFINE_OP(pushx)
+{
+ *sp = x;
+ NEXT_OP(sp + 1, a, x, y, o);
+}