aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/words/to_r.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/avr8/words/to_r.asm')
-rw-r--r--amforth-6.5/avr8/words/to_r.asm15
1 files changed, 15 insertions, 0 deletions
diff --git a/amforth-6.5/avr8/words/to_r.asm b/amforth-6.5/avr8/words/to_r.asm
new file mode 100644
index 0000000..3e038de
--- /dev/null
+++ b/amforth-6.5/avr8/words/to_r.asm
@@ -0,0 +1,15 @@
+; ( n -- ) (R: -- n)
+; Stack
+; move TOS to TOR
+VE_TO_R:
+ .dw $ff02
+ .db ">r"
+ .dw VE_HEAD
+ .set VE_HEAD = VE_TO_R
+XT_TO_R:
+ .dw PFA_TO_R
+PFA_TO_R:
+ push tosh
+ push tosl
+ loadtos
+ jmp_ DO_NEXT