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