From 67d25d837ac55f28a366c0a3b262e439a6e75fc3 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 19 Aug 2017 12:15:28 +0200 Subject: Add AmForth --- amforth-6.5/common/words/d-dot-r.asm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 amforth-6.5/common/words/d-dot-r.asm (limited to 'amforth-6.5/common/words/d-dot-r.asm') 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 ; -- cgit v1.2.3