aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/hold.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/words/hold.asm')
-rw-r--r--amforth-6.5/common/words/hold.asm29
1 files changed, 29 insertions, 0 deletions
diff --git a/amforth-6.5/common/words/hold.asm b/amforth-6.5/common/words/hold.asm
new file mode 100644
index 0000000..dda538a
--- /dev/null
+++ b/amforth-6.5/common/words/hold.asm
@@ -0,0 +1,29 @@
+; ( c -- )
+; Numeric IO
+; prepend character to pictured numeric output buffer
+
+.if cpu_msp430==1
+ HEADER(XT_HOLD,4,"hold",DOCOLON)
+.endif
+
+.if cpu_avr8==1
+VE_HOLD:
+ .dw $ff04
+ .db "hold"
+ .dw VE_HEAD
+ .set VE_HEAD = VE_HOLD
+XT_HOLD:
+ .dw DO_COLON
+PFA_HOLD:
+.endif
+ .dw XT_HLD
+ .dw XT_DUP
+ .dw XT_FETCH
+ .dw XT_1MINUS
+ .dw XT_DUP
+ .dw XT_TO_R
+ .dw XT_SWAP
+ .dw XT_STORE
+ .dw XT_R_FROM
+ .dw XT_CSTORE
+ .dw XT_EXIT