aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/refill.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/words/refill.asm')
-rw-r--r--amforth-6.5/common/words/refill.asm21
1 files changed, 21 insertions, 0 deletions
diff --git a/amforth-6.5/common/words/refill.asm b/amforth-6.5/common/words/refill.asm
new file mode 100644
index 0000000..a7c918d
--- /dev/null
+++ b/amforth-6.5/common/words/refill.asm
@@ -0,0 +1,21 @@
+; ( -- f )
+; System
+; refills the input buffer
+
+.if cpu_msp430==1
+ DEFER(XT_REFILL,6,"refill")
+.endif
+
+.if cpu_avr8==1
+VE_REFILL:
+ .dw $ff06
+ .db "refill"
+ .dw VE_HEAD
+ .set VE_HEAD = VE_REFILL
+XT_REFILL:
+ .dw PFA_DODEFER1
+PFA_REFILL:
+.endif
+ .dw USER_REFILL
+ .dw XT_UDEFERFETCH
+ .dw XT_UDEFERSTORE