aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/brackettick.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/words/brackettick.asm')
-rw-r--r--amforth-6.5/common/words/brackettick.asm21
1 files changed, 21 insertions, 0 deletions
diff --git a/amforth-6.5/common/words/brackettick.asm b/amforth-6.5/common/words/brackettick.asm
new file mode 100644
index 0000000..4905ae3
--- /dev/null
+++ b/amforth-6.5/common/words/brackettick.asm
@@ -0,0 +1,21 @@
+; ( -- xt ) (C: "<space>name" -- )
+; Compiler
+; what ' does in the interpreter mode, do in colon definitions
+
+.if cpu_msp430==1
+ IMMED(XT_BRACKETTICK,3,"[']",DOCOLON)
+.endif
+
+.if cpu_avr8==1
+VE_BRACKETTICK:
+ .dw $0003
+ .db "[']",0
+ .dw VE_HEAD
+ .set VE_HEAD = VE_BRACKETTICK
+XT_BRACKETTICK:
+ .dw DO_COLON
+PFA_BRACKETTICK:
+.endif
+ .dw XT_TICK
+ .dw XT_LITERAL
+ .dw XT_EXIT