aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/words/2to_r.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/avr8/words/2to_r.asm')
-rw-r--r--amforth-6.5/avr8/words/2to_r.asm19
1 files changed, 19 insertions, 0 deletions
diff --git a/amforth-6.5/avr8/words/2to_r.asm b/amforth-6.5/avr8/words/2to_r.asm
new file mode 100644
index 0000000..0e70f18
--- /dev/null
+++ b/amforth-6.5/avr8/words/2to_r.asm
@@ -0,0 +1,19 @@
+; ( x1 x2 -- ) (R: -- x1 x2)
+; Stack
+; move DTOS to TOR
+VE_2TO_R:
+ .dw $ff03
+ .db "2>r",0
+ .dw VE_HEAD
+ .set VE_HEAD = VE_2TO_R
+XT_2TO_R:
+ .dw PFA_2TO_R
+PFA_2TO_R:
+ movw zl, tosl
+ loadtos
+ push tosh
+ push tosl
+ push zh
+ push zl
+ loadtos
+ jmp_ DO_NEXT