aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/literal.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/words/literal.asm')
-rw-r--r--amforth-6.5/common/words/literal.asm22
1 files changed, 22 insertions, 0 deletions
diff --git a/amforth-6.5/common/words/literal.asm b/amforth-6.5/common/words/literal.asm
new file mode 100644
index 0000000..7d69652
--- /dev/null
+++ b/amforth-6.5/common/words/literal.asm
@@ -0,0 +1,22 @@
+; ( -- n ) (C: n -- )
+; Compiler
+; compile a literal in colon defintions
+
+.if cpu_msp430==1
+ IMMED(XT_LITERAL,7,"literal",DOCOLON)
+.endif
+
+.if cpu_avr8==1
+VE_LITERAL:
+ .dw $0007
+ .db "literal",0
+ .dw VE_HEAD
+ .set VE_HEAD = VE_LITERAL
+XT_LITERAL:
+ .dw DO_COLON
+PFA_LITERAL:
+.endif
+ .DW XT_COMPILE
+ .DW XT_DOLITERAL
+ .DW XT_COMMA
+ .DW XT_EXIT