aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/words/rpfetch.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/avr8/words/rpfetch.asm')
-rw-r--r--amforth-6.5/avr8/words/rpfetch.asm15
1 files changed, 15 insertions, 0 deletions
diff --git a/amforth-6.5/avr8/words/rpfetch.asm b/amforth-6.5/avr8/words/rpfetch.asm
new file mode 100644
index 0000000..8d1cdb6
--- /dev/null
+++ b/amforth-6.5/avr8/words/rpfetch.asm
@@ -0,0 +1,15 @@
+; ( -- n)
+; Stack
+; current return stack pointer address
+VE_RP_FETCH:
+ .dw $ff03
+ .db "rp@",0
+ .dw VE_HEAD
+ .set VE_HEAD = VE_RP_FETCH
+XT_RP_FETCH:
+ .dw PFA_RP_FETCH
+PFA_RP_FETCH:
+ savetos
+ in tosl, SPL
+ in tosh, SPH
+ jmp_ DO_NEXT