aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/d-dot-r.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/words/d-dot-r.asm')
-rw-r--r--amforth-6.5/common/words/d-dot-r.asm35
1 files changed, 35 insertions, 0 deletions
diff --git a/amforth-6.5/common/words/d-dot-r.asm b/amforth-6.5/common/words/d-dot-r.asm
new file mode 100644
index 0000000..cc556d7
--- /dev/null
+++ b/amforth-6.5/common/words/d-dot-r.asm
@@ -0,0 +1,35 @@
+; ( d w -- )
+; Numeric IO
+; singed PNO with double cell numbers, right aligned in width w
+
+.if cpu_msp430==1
+ HEADER(XT_DDOTR,3,"d.r",DOCOLON)
+.endif
+
+.if cpu_avr8==1
+VE_DDOTR:
+ .dw $ff03
+ .db "d.r",0
+ .dw VE_HEAD
+ .set VE_HEAD = VE_DDOTR
+XT_DDOTR:
+ .dw DO_COLON
+PFA_DDOTR:
+
+.endif
+ .dw XT_TO_R
+ .dw XT_TUCK
+ .dw XT_DABS
+ .dw XT_L_SHARP
+ .dw XT_SHARP_S
+ .dw XT_ROT
+ .dw XT_SIGN
+ .dw XT_SHARP_G
+ .dw XT_R_FROM
+ .dw XT_OVER
+ .dw XT_MINUS
+ .dw XT_SPACES
+ .dw XT_TYPE
+ .dw XT_EXIT
+; : d.r ( d n -- )
+; >r swap over dabs <# #s rot sign #> r> over - spaces type ;