aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/source.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/words/source.asm')
-rw-r--r--amforth-6.5/common/words/source.asm23
1 files changed, 23 insertions, 0 deletions
diff --git a/amforth-6.5/common/words/source.asm b/amforth-6.5/common/words/source.asm
new file mode 100644
index 0000000..a1ac867
--- /dev/null
+++ b/amforth-6.5/common/words/source.asm
@@ -0,0 +1,23 @@
+; ( -- addr n )
+; System
+; address and current length of the input buffer
+
+.if cpu_msp430==1
+ DEFER(XT_SOURCE,6,"source")
+.endif
+
+.if cpu_avr8==1
+VE_SOURCE:
+ .dw $FF06
+ .db "source"
+ .dw VE_HEAD
+ .set VE_HEAD = VE_SOURCE
+XT_SOURCE:
+ .dw PFA_DODEFER1
+PFA_SOURCE:
+.endif
+ .dw USER_SOURCE
+ .dw XT_UDEFERFETCH
+ .dw XT_UDEFERSTORE
+
+