figForth Word - QUERY
Some parts of this page/site are currently incomplete & will be updated asap
Other parts will change continually so use “Refresh” in your browser !!
There is extensive use of “Tooltips” text to support learning which do
not seem to render on a Smartphone
QUERY
Input 80 characters of text (or until a "return") from the operators terminal
Text is placed at the address contained in TIB with IN set to zero
So QUERY is Forth’s way of getting text input (normally from the keyboard) into the Forth System
NFA: 006D5E 85 DB 85H
006D5F 51554552 DB "QUER"
006D63 D9 DB 'Y'+80H
LFA: 006D64 D96C DW EXPEC-9
CFA: 006D66 3C28 QUERY: DW DOCOL ; :
PFA: 006D68 4868 DW TIB ; TIB
006D6A 8F27 DW AT ; @
006D6C 0621 5000 DW LIT,50H ; 80
006D70 E26C DW EXPEC ; EXPECT
006D72 BF67 DW ZERO ; 0
006D74 6368 DW INN ; IN
006D76 F027 DW STORE ; !
006D78 1725 DW SEMIS ; ;