aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/reveal.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/words/reveal.asm')
-rw-r--r--amforth-6.5/common/words/reveal.asm25
1 files changed, 25 insertions, 0 deletions
diff --git a/amforth-6.5/common/words/reveal.asm b/amforth-6.5/common/words/reveal.asm
new file mode 100644
index 0000000..b0b4931
--- /dev/null
+++ b/amforth-6.5/common/words/reveal.asm
@@ -0,0 +1,25 @@
+; ( -- )
+; Dictionary
+; makes an entry in a wordlist visible, if not already done.
+
+.if cpu_msp430==1
+ HEADER(XT_REVEAL,6,"reveal",DOCOLON)
+.endif
+
+.if cpu_avr8==1
+VE_REVEAL:
+ .dw $ff06
+ .db "reveal"
+ .dw VE_HEAD
+ .set VE_HEAD = VE_REVEAL
+XT_REVEAL:
+ .dw DO_COLON
+PFA_REVEAL:
+.endif
+ .DW XT_NEWEST,XT_CELLPLUS,XT_FETCH ; only if wordlist is in use
+ .DW XT_QDUP,XT_DOCONDBRANCH
+ DEST(REVEAL1)
+ .DW XT_NEWEST,XT_FETCH,XT_SWAP,XT_STOREE
+; .DW XT_ZERO,XT_NEWEST,XT_CELLPLUS,XT_STORE ; clean wordlist entry
+REVEAL1:
+ .DW XT_EXIT