aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/2literal.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/words/2literal.asm')
-rw-r--r--amforth-6.5/common/words/2literal.asm21
1 files changed, 21 insertions, 0 deletions
diff --git a/amforth-6.5/common/words/2literal.asm b/amforth-6.5/common/words/2literal.asm
new file mode 100644
index 0000000..31b03cf
--- /dev/null
+++ b/amforth-6.5/common/words/2literal.asm
@@ -0,0 +1,21 @@
+; ( -- x1 x2 ) (C: x1 x2 -- )
+; Compiler
+; compile a cell pair literal in colon definitions
+.if cpu_msp430==1
+ IMMED(XT_2LITERAL,8,"2literal",DOCOLON)
+.endif
+
+.if cpu_avr8==1
+VE_2LITERAL:
+ .dw $0008
+ .db "2literal"
+ .dw VE_HEAD
+ .set VE_HEAD = VE_2LITERAL
+XT_2LITERAL:
+ .dw DO_COLON
+PFA_2LITERAL:
+.endif
+ .dw XT_SWAP
+ .dw XT_LITERAL
+ .dw XT_LITERAL
+ .dw XT_EXIT