aboutsummaryrefslogtreecommitdiff
path: root/ops/pushx.c
diff options
context:
space:
mode:
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);
+}