aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/defer-fetch.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/words/defer-fetch.asm')
-rw-r--r--amforth-6.5/common/words/defer-fetch.asm24
1 files changed, 24 insertions, 0 deletions
diff --git a/amforth-6.5/common/words/defer-fetch.asm b/amforth-6.5/common/words/defer-fetch.asm
new file mode 100644
index 0000000..6044afc
--- /dev/null
+++ b/amforth-6.5/common/words/defer-fetch.asm
@@ -0,0 +1,24 @@
+; ( xt1 -- xt2 )
+; System
+; returns the XT associated with the given XT
+
+.if cpu_msp430==1
+ HEADER(XT_DEFERFETCH,6,"defer@",DOCOLON)
+.endif
+
+.if cpu_avr8==1
+VE_DEFERFETCH:
+ .dw $ff06
+ .db "defer@"
+ .dw VE_HEAD
+ .set VE_HEAD = VE_DEFERFETCH
+XT_DEFERFETCH:
+ .dw DO_COLON
+PFA_DEFERFETCH:
+.endif
+ .dw XT_TO_BODY
+ .dw XT_DUP
+ .dw XT_ICELLPLUS
+ .dw XT_FETCHI
+ .dw XT_EXECUTE
+ .dw XT_EXIT