aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/cr.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/words/cr.asm')
-rw-r--r--amforth-6.5/common/words/cr.asm26
1 files changed, 26 insertions, 0 deletions
diff --git a/amforth-6.5/common/words/cr.asm b/amforth-6.5/common/words/cr.asm
new file mode 100644
index 0000000..ba704ba
--- /dev/null
+++ b/amforth-6.5/common/words/cr.asm
@@ -0,0 +1,26 @@
+; ( -- )
+; Character IO
+; cause subsequent output appear at the beginning of the next line
+
+.if cpu_msp430==1
+ HEADER(XT_CR,2,"cr",DOCOLON)
+.endif
+
+.if cpu_avr8==1
+VE_CR:
+ .dw 0xff02
+ .db "cr"
+ .dw VE_HEAD
+ .set VE_HEAD = VE_CR
+XT_CR:
+ .dw DO_COLON
+PFA_CR:
+.endif
+
+ .dw XT_DOLITERAL
+ .dw 13
+ .dw XT_EMIT
+ .dw XT_DOLITERAL
+ .dw 10
+ .dw XT_EMIT
+ .dw XT_EXIT