aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/emitq.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/words/emitq.asm')
-rw-r--r--amforth-6.5/common/words/emitq.asm21
1 files changed, 21 insertions, 0 deletions
diff --git a/amforth-6.5/common/words/emitq.asm b/amforth-6.5/common/words/emitq.asm
new file mode 100644
index 0000000..b1c04f2
--- /dev/null
+++ b/amforth-6.5/common/words/emitq.asm
@@ -0,0 +1,21 @@
+; ( -- f )
+; Character IO
+; fetch emit? vector and execute it. should return the ready-to-send condition
+
+.if cpu_msp430==1
+ DEFER(XT_EMITQ,5,"emit?")
+.endif
+
+.if cpu_avr8==1
+VE_EMITQ:
+ .dw $ff05
+ .db "emit?",0
+ .dw VE_HEAD
+ .set VE_HEAD = VE_EMITQ
+XT_EMITQ:
+ .dw PFA_DODEFER1
+PFA_EMITQ:
+.endif
+ .dw USER_EMITQ
+ .dw XT_UDEFERFETCH
+ .dw XT_UDEFERSTORE