aboutsummaryrefslogtreecommitdiff
path: root/ops/pusha.c
diff options
context:
space:
mode:
Diffstat (limited to 'ops/pusha.c')
-rw-r--r--ops/pusha.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ops/pusha.c b/ops/pusha.c
new file mode 100644
index 0000000..8898a77
--- /dev/null
+++ b/ops/pusha.c
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
+
+#include "common.h"
+
+DEFINE_OP(pusha)
+{
+ *sp = a;
+ NEXT_OP(sp + 1, a, x, y, o);
+}