summaryrefslogtreecommitdiff
path: root/src/macros/code.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/macros/code.asm')
-rw-r--r--src/macros/code.asm6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/macros/code.asm b/src/macros/code.asm
index 8f2bd0d..3441ec3 100644
--- a/src/macros/code.asm
+++ b/src/macros/code.asm
@@ -47,3 +47,9 @@ ENDM
; the rst $38 handler is a single ret instruction
; probably used for testing purposes during development
debug_ret EQUS "rst $38"
+
+; Returns to the pointer in bc instead of where the stack was.
+retbc: MACRO
+ push bc
+ ret
+ENDM