aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/semicolon.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/words/semicolon.asm')
-rw-r--r--amforth-6.5/common/words/semicolon.asm25
1 files changed, 25 insertions, 0 deletions
diff --git a/amforth-6.5/common/words/semicolon.asm b/amforth-6.5/common/words/semicolon.asm
new file mode 100644
index 0000000..35c3a17
--- /dev/null
+++ b/amforth-6.5/common/words/semicolon.asm
@@ -0,0 +1,25 @@
+; ( -- )
+; Compiler
+; finish colon defintion, compiles (exit) and returns to interpret state
+
+.if cpu_msp430==1
+ IMMED(XT_SEMICOLON,1,";",DOCOLON)
+.endif
+
+.if cpu_avr8==1
+
+
+VE_SEMICOLON:
+ .dw $0001
+ .db $3b,0
+ .dw VE_HEAD
+ .set VE_HEAD = VE_SEMICOLON
+XT_SEMICOLON:
+ .dw DO_COLON
+PFA_SEMICOLON:
+.endif
+ .dw XT_COMPILE
+ .dw XT_EXIT
+ .dw XT_LBRACKET
+ .dw XT_REVEAL
+ .dw XT_EXIT