This alphabetical index is comprised of at least four entries to any word; its name, its vocabulary, the parameters diagram and a description of the function. While efforts have been made for accuracy, some errors may be present. In the interest of clarity, all words of only symbols have been placed at the top of the list, while any word having a letter has been sorted alphabetically.
GOTO: A B C D E F G H I J K L M N O P Q R S T U V W X Contents
Word: !
Vocabulary: FORTH
Parameters: n adr --
Description: Stores the 16 bit n into the location of adr.
Word: #
Vocabulary: FORTH
Parameters: d -- d
Description: Extract one digit in the current number base from the number d, place in hold buffer for later printing.
Word: #>
Vocabulary: FORTH
Parameters: d -- adr n
Description: Drop double number, return location and count of characters in the hold buffer.
Word: $=
Vocabulary: FORTH
Parameters: adr1 adr2 n -- -1 | 0 | 1
Description: Compare two counted or uncounted strings for their equivalence. Strings are at adr1 and adr2 with the number of characters specified in N+1. Returns -1 if s1<s2, 0 if s1=s2 or 1 if s1>s2.
Word: '
Vocabulary: FORTH
Parameters: -- (word)
Description: Parse next word from the input stream, return the PFA address of the word in the dictionary. Generates error if word not found.
Word: (
Vocabulary: FORTH
Parameters: -- characters )
Description: Parse input to closing parenthesis or end of input buffer and discard.
Word: (,")
Vocabulary: HIDDEN
Parameters: -- adr
Description: Return address of saved string in definition area.
Word: (.")
Vocabulary: HIDDEN
Parameters: --
Description: Print saved string in definition area.
Word: *
Vocabulary: FORTH
Parameters: n1 n2 -- n3
Description: Multiply n1 by n2 to produce n3.
Word: */
Vocabulary: FORTH
Parameters: n1 n2 n3 -- n4
Description: Multiply n1 by n2 then divide result by n3, maintain 32 bit interim value.
Word: +
Vocabulary: FORTH
Parameters: n1 n2 -- n3
Description: add n2 to n1.
Word: +-
Vocabulary: FORTH
Parameters: n1 n2 -- n3
Description: apply sign of n2 to n1.
Word: +!
Vocabulary: FORTH
Parameters: n adr --
Description: Add N to 16 bit contents specified at address.
Word: ,
Vocabulary: FORTH
Parameters: n --
Description: Store N into dictionary space at current dictionary tail location.
Word: ,"
Vocabulary: FORTH
Parameters: -- (string")
Description: Compile (,") and save string into the dictionary space.
Word: -
Vocabulary: FORTH
Parameters: n1 n2 -- n3
Description: Subtract n2 from n1.
Word: -!
Vocabulary: FORTH
Parameters: n adr --
Description: Subtract N from 16 bit memory contents specified at address.
Word: ->
Vocabulary: FORTH
Parameters: adr -- (word)
Description: Compile @! and addresses for variable 1 adr and variable 2 word, move 16 bit word from variable 1 to variable 2 at run time.
Word: -->
Vocabulary: FORTH
Parameters: --
Description: Move file input pointer to next higher numbered block and begin input.
Word: .
Vocabulary: FORTH
Parameters: n --
Description: Print 16 bit number n.
Word: ."
Vocabulary: FORTH
Parameters: -- (string")
Description: Compile (.") and save string to definition space.
Word: /
Vocabulary: FORTH
Parameters: n1 n2 -- n3
Description: Divide n1 by n2 to return n3.
Word: :
Vocabulary: FORTH
Parameters: -- (word)
Description: Start compiler for next word from input stream, build new dictionary entry.
Word: ;
Vocabulary: FORTH
Parameters: --
Description: End new dictionary entry, test for compiler errors and return to run mode.
Word: <
Vocabulary: FORTH
Parameters: n1 n2 -- f
Description: Return true is n1<n2.
Word: <#
Vocabulary: FORTH
Parameters: d -- d
Description: Begin number formatting, empty hold buffer for characters to follow.
Word: <=
Vocabulary: FORTH
Parameters: n1 n2 -- f
Description: Return true is n1<=n2.
Word: <>
Vocabulary: FORTH
Parameters: n1 n2 -- f
Description: Return true is n1<>n2.
Word: =
Vocabulary: FORTH
Parameters: n1 n2 -- f
Description: Return true is n1=n2.
Word: =<
Vocabulary: FORTH
Parameters: n1 n2 --
Description: Return true is n1<=n2.
Word: =>
Vocabulary: FORTH
Parameters: n1 n2 --
Description: Return true is n1=>n2.
Word: >
Vocabulary: FORTH
Parameters: n1 n2 --
Description: Return true is n1>n2.
Word: >=
Vocabulary: FORTH
Parameters: n1 n2 -- f
Description: Return true is n1=>n2.
Word: ?
Vocabulary: FORTH
Parameters: adr --
Description: Print 16 bit contents of address given.
Word: @
Vocabulary: FORTH
Parameters: adr -- n
Description: Fetch 16 bit contents of address.
Word: @!
Vocabulary: FORTH
Parameters: adr2 adr1 --
Description: Fetch 16 bit number from address 1, save into address 2.
Word: [
Vocabulary: FORTH
Parameters: --
Description: Turn compiler off, run words that follow.
Word: ]
Vocabulary: FORTH
Parameters: --
Description: Turn compiler on, compile tokens for words that follow.
Word: 0
Vocabulary: FORTH
Parameters: -- 0
Description: Return zero.
Word: 0<
Vocabulary: FORTH
Parameters: n -- f
Description: Return true if N is negative.
Word: 0=
Vocabulary: FORTH
Parameters: n -- f
Description: Return true if N is zero.
Word: 1
Vocabulary: FORTH
Parameters: -- 1
Description: Returns 1.
Word: 1+
Vocabulary: FORTH
Parameters: n -- n+1
Description: Increment N.
Word: 1-
Vocabulary: FORTH
Parameters: n -- n-1
Description: Decrement N.
Word: 2
Vocabulary: FORTH
Parameters: -- 2
Description: returns 2.
Word: 2!
Vocabulary: FORTH
Parameters: d adr --
Description: Store double number at address.
Word: 2*
Vocabulary: FORTH
Parameters: n -- n b
Description: shift n left one place, return shifted bit in word b, remaining bits in n.
Word: 2+
Vocabulary: FORTH
Parameters: n -- n+2
Description: add to 2 to N.
Word: 2+!
Vocabulary: FORTH
Parameters: d adr --
Description: Add double d to contents of address.
Word: 2-
Vocabulary: FORTH
Parameters: n -- n-2
Description: subtract 2 from N.
Word: 2-!
Vocabulary: FORTH
Parameters: d adr --
Description: Subtract double d from contents at address.
Word: 2/
Vocabulary: FORTH
Parameters: n -- n b
Description: Right shift N and return shifted out bit in b, remaining bits in n.
Word: 2@
Vocabulary: FORTH
Parameters: adr -- d
Description: Fetch double word value from address.
Word: 2@!
Vocabulary: FORTH
Parameters: adr1 adr2 --
Description: Move double word value from adr2 to adr1.
Word: 3
Vocabulary: FORTH
Parameters: -- 3
Description: Returns a three.
Word: 4+
Vocabulary: FORTH
Parameters: n -- n+4
Description: Add four to N.
Word: 4+!
Vocabulary: FORTH
Parameters: q adr --
Description: Add quad to contents at address.
Word: 4-
Vocabulary: FORTH
Parameters: n -- n-4
Description: Subtract 4 from n.
Word: 4-!
Vocabulary: FORTH
Parameters: q adr --
Description: Subtract quad from contents at address.
Word: ABORT
Vocabulary: FORTH
Parameters: --
Description: Vectors to (ABORT) below.
Word: (ABORT)
Vocabulary: FORTH
Parameters: --
Description: Empty stacks, return to input interpreter and keyboard device.
Word: ABS
Vocabulary: FORTH
Parameters: n -- n'
Description: Take Absolute Value of N.
Word: AGAIN
Vocabulary: FORTH
Parameters: -- | lbl f --
Description: Close loop marked by BEGIN, loops forever unless ERROR or QUIT is executed.
Word: ALLOT
Vocabulary: FORTH
Parameters: n --
Description: Reserve N dictionary bytes.
Word: ALSO
Vocabulary: ROOT
Parameters: --
Description: Duplicate top search order item. See Chapter 6.
Word: AND
Vocabulary: FORTH
Parameters: n2 n1 -- n3
Description: Bit-wise logical AND of n1 and to n2 to form n3.
Word: ARRAY
Vocabulary: FORTH
Parameters: n -- (word)
Description: Build byte array of N size with (word) name.
Word: ASM
Vocabulary: FORTH
Parameters: --
Description: Vector to Assembler if loaded.
Word: ATTR
Vocabulary: FORTH
Parameters: -- adr
Description: Returns address of the screen Attributes; ink color in Graphics mode or ink and paper color in Text mode. ATTR-1 in Text mode controls the ASCII printing wheel.
Word: ATTRB
Vocabulary: FORTH
Parameters: -- adr
Description: Returns address of screen Background variable.
Word: BACK
Vocabulary: HIDDEN
Parameters: lbl --
Description: Compute relative jump backward and save address into dictionary space.
Word: BASE
Vocabulary: FORTH
Parameters: -- adr
Description: Return variable address of the current number base.
Word: BEGIN
Vocabulary: FORTH
Parameters: --
Description: Mark the start of a condition loop.
Word: BLANKS
Vocabulary: FORTH
Parameters: adr n --
Description: Fill memory space at address with n ASCII spaces.
Word: BLK
Vocabulary: FORTH
Parameters: -- adr
Description: returns variable address of file loading block number.
Word: BLOCK
Vocabulary: FORTH
Parameters: n -- adr
Description: retrieve block n from current open file list and return address of disk buffer that contains it.
Word: (BLOCK)
Vocabulary: HIDDEN
Parameters: d -- adr
Description: Machine primitive to retrieve file data located at offset d, assign buffer space and return address of contents.
Word: BOX
Vocabulary: VIDEO
Parameters: x y w h c --
Description: draw box of width, height at x, y in color c.
Word: ?BOX
Vocabulary: VIDEO
Parameters: x y w h c -- f
Description: pixel detect for color c in box at x, y for width and height.
Word: BRANCH
Vocabulary: HIDDEN
Parameters: --
Description: Make relative jump, offset follows token.
Word: 0BRANCH
Vocabulary: HIDDEN
Parameters: n --
Description: Make relative jump if N is zero, offset follows token.
Word: #BUFF
Vocabulary: FORTH
Parameters: -- 4
Description: Return the number of disk buffers present in the system.
Word: <BUILDS
Vocabulary: FORTH
Parameters: --
Description: Define compiler action of the defined word.
Word: BYE
Vocabulary: ROOT
Parameters: --
Description: Exit Forth, return to Operating System.
Word: BYTES-MOVED
Vocabulary: FORTH
Parameters: -- adr
Description: Return address of system variable containing the number of bytes transferred in last disk operation.
Word: C!
Vocabulary: FORTH
Parameters: c adr --
Description: Store character (lower 8 bits) c into address give.
Word: C,
Vocabulary: FORTH
Parameters: c --
Description: Add character to dictionary tail.
Word: C/L
Vocabulary: FORTH
Parameters: -- n
Description: Returns the current line length in characters. (Default 70.)
Word: C@
Vocabulary: FORTH
Parameters: adr -- c
Description: Retrieve character from address.
Word: CASE:
Vocabulary: FORTH
Parameters: n1 n2 -- n1
Description: Compare n2 to n1 and perform words following CASE: if equal, jump to words following :END if not.
Word: CASELOCK
Vocabulary: FORTH
Parameters: -- adr
Description: Returns system variable address for upper/lower case management. If contents is zero, (default) all symbols are translated to uppercase equivalents before processing.
Word: CFA
Vocabulary: FORTH
Parameters: adr -- adr'
Description: Change Parameter Field Address (PFA) to Code Field address (CFA).
Word: CIRCLE
Vocabulary: VIDEO
Parameters: x y ro c ri --
Description: Draw circle with center at x, y for outer radius ro of color c with inner radius ri.
Word: ?CIRCLE
Vocabulary: VIDEO
Parameters: x y ro c ri -- f
Description: does pixel detect for color c in a circle of outer radius of ro, inner radius of ri, with center at x and y.
Word: CLOSE
Vocabulary: FORTH
Parameters: n --
Description: Close file number n.
Word: CLOSE-FILES
Vocabulary: FORTH
Parameters: --
Description: Close all open files.
Word: CLS
Vocabulary: FORTH
Parameters: --
Description: Clear the current display window.
Word: CMD"
Vocabulary: FORTH
Parameters: -- (string")
Description: Shell to DOS and send string command line.
Word: CMOVE
Vocabulary: FORTH
Parameters: adr1 adr2 n --
Description: Move n bytes from adr1 to adr2.
Word: -CMOVE
Vocabulary: FORTH
Parameters: adr1 adr2 n --
Description: Move n bytes from address1 to address2 from the ends.
Word: CODE
Vocabulary: FORTH
Parameters: -- (word)
Description: Define machine code routine.
Word: ;CODE
Vocabulary: FORTH
Parameters: --
Description: End current definition and move into run mode for machine code instructions to follow.
Word: (;CODE)
Vocabulary: HIDDEN
Parameters: --
Description: Jump to machine code which follows token in the definition area.
Word: COLD
Vocabulary: FORTH
Parameters: --
Description: Empty stacks and reset Forth.
Word: COLOR
Vocabulary: VIDEO
Parameters: --
Description: Set up color text screen handler.
Word: ?COMP
Vocabulary: HIDDEN
Parameters: --
Description: Generate error if compiling.
Word: COMPILE
Vocabulary: FORTH
Parameters: -- (word)
Description: Add the token address of word to the dictionary at run time.
Word: [COMPILE]
Vocabulary: FORTH
Parameters: -- (word)
Description: Compile token address of next immediate word.
Word: CONSTANT
Vocabulary: FORTH
Parameters: n -- (word)
Description: Define a constant which returns value when run.
Word: 2CONSTANT
Vocabulary: FORTH
Parameters: d -- (word)
Description: Define double constant which returns value when run.
Word: +CONSTANT
Vocabulary: FORTH
Parameters: n -- (word)
Description: Define a constant which adds its value to the top stack item when run.
Word: CONTEXT
Vocabulary: HIDDEN
Parameters: -- adr
Description: Return top search order buffer pointer.
Word: COS
Vocabulary: FORTH
Parameters: n -- n'
Description: Return Cosine of angle n multiplied by 10,000.
Word: COUNT
Vocabulary: FORTH
Parameters: adr -- adr+1 n
Description: Return count of characters in string at address, advance address to string data.
Word: .CPU
Vocabulary: FORTH
Parameters: --
Description: Print current CPU detected.
Word: CR
Vocabulary: FORTH
Parameters: --
Description: vector to the (CR) word.
Word: (CR)
Vocabulary: FORTH
Parameters: --
Description: Machine primitive to print carriage return and line feed on text screen.
Word: CRC
Vocabulary: MOUSE
Parameters: -- adr
Description: Return address of Cyclic Redundancy Check variable.
Word: CREATE
Vocabulary: FORTH
Parameters: -- (word)
Description: Build new symbol of word.
Word: CRTC
Vocabulary: VIDEO
Parameters: -- adr
Description: Return address of the video controller chip.
Word: CS@
Vocabulary: FORTH
Parameters: -- seg
Description: Return segment of virtual machine.
Word: CSP
Vocabulary: HIDDEN
Parameters: -- adr
Description: return address of system variable used to hold stack pointer offset.
Word: !CSP
Vocabulary: HIDDEN
Parameters: --
Description: Saves the current parameter stack pointer in the system variable CSP.
Word: ?CSP
Vocabulary: HIDDEN
Parameters: --
Description: Generate error if SP does not match CSP value.
Word: CUR
Vocabulary: FORTH
Parameters: -- adr
Description: return address of the screen cursor value(s).
Word: CURRENT
Vocabulary: HIDDEN
Parameters: -- adr
Description: return address of system variable that holds compilation vocabulary location.
Word: D+
Vocabulary: FORTH
Parameters: d1 d2 -- d3
Description: Add d2 to d1 to form d3.
Word: D-
Vocabulary: FORTH
Parameters: d1 d2 -- d3
Description: subtract d2 from d1 to form d3.
Word: D+-
Vocabulary: FORTH
Parameters: d n -- d'
Description: apply sign of n to d.
Word: D->Q
Vocabulary: FORTH
Parameters: d -- q
Description: Sign extent double d into quad number q.
Word: D.
Vocabulary: FORTH
Parameters: d --
Description: print double number.
Word: D.R
Vocabulary: FORTH
Parameters: d n --
Description: print double number right justified to n columns.
Word: D<
Vocabulary: FORTH
Parameters: d1 d2 -- f
Description: return true flag if d1 is less than d2.
Word: D=
Vocabulary: FORTH
Parameters: d1 d2 -- f
Description: return true flag if d1 equals d2.
Word: D>
Vocabulary: FORTH
Parameters: d1 d2 -- f
Description: return true flag is d1 is greater than d2.
Word: D0=
Vocabulary: FORTH
Parameters: d -- f
Description: return true flag if d is zero.
Word: D2*
Vocabulary: FORTH
Parameters: d -- d b
Description: shift double number left 1 bit, return bit shifted out bit on top of double result.
Word: D2/
Vocabulary: FORTH
Parameters: d -- d b
Description: shift double number right 1 bit, return bit shifted out bit on top of double result.
Word: DABS
Vocabulary: FORTH
Parameters: d -- d'
Description: Return absolute value of d.
Word: DEBUG
Vocabulary: HIDDEN
Parameters: -- (word)
Description: Set break point in word if debugger loaded, no effect if not.
Word: DECIMAL
Vocabulary: FORTH
Parameters: --
Description: Set current number base to 10.
Word: DEFINITIONS
Vocabulary: ROOT
Parameters: --
Description: Make current top search order word list the compilation target.
Word: DEPTH
Vocabulary: FORTH
Parameters: (n) -- (n) n
Description: Return the current number of items on the Parameter Stack.
Word: DIGIT
Vocabulary: FORTH
Parameters: c n -- n 1 | 0
Description: Convert character c to numeric value in base n, return result and true if successful, else return zero and discard character.
Word: DISK-ERROR
Vocabulary: FORTH
Parameters: -- adr
Description: return system variable containing last disk error.
Word: DLITERAL
Vocabulary: FORTH
Parameters: (d) --
Description: Compile the double of d as a constant into the current definition from the presently active stack.
Word: DMAX
Vocabulary: FORTH
Parameters: d2 d1 -- d
Description: Keep the larger value.
Word: DMIN
Vocabulary: FORTH
Parameters: d2 d1 -- d
Description: Keep the smaller value.
Word: DMINUS
Vocabulary: FORTH
Parameters: d -- d'
Description: Invert the sign of double d.
Word: DNIP
Vocabulary: FORTH
Parameters: d1 d2 -- d2
Description: Discard double d1.
Word: DO
Vocabulary: FORTH
Parameters: -- | n1 n2 --
Description: Compile counted loop starting at index n2 and ending at limit n1.
Word: ?DO
Vocabulary: FORTH
Parameters: -- | n1 n2 --
Description: Compile counted loop starting at index n2 and ending at limit n1. If n1=n2 at the time of execution, control passes directly to those words following LOOP or +LOOP. n1 and n2 are discarded.
Word: (DO)
Vocabulary: HIDDEN
Parameters: limit index --
Description: Machine primitive to initiate a DO LOOP combination, move index and limit to control stack and process words that follow.
Word: (?DO)
Vocabulary: HIDDEN
Parameters: limit index --
Description: Machine primitive to initiate a ?DO LOOP combination, test index and limit, move to control stack and process words or jump that follows.
Word: DOES>
Vocabulary: FORTH
Parameters: --
Description: define run time component of constructed symbols.
Word: DOS
Vocabulary: FORTH
Parameters: dx cx bx ax -- ax cy
Description: Call DOS interrupt 21 Hex with registers defined, return error code and carry flag.
Word: DP
Vocabulary: FORTH
Parameters: -- adr
Description: Return variable address of dictionary tail. (Contains HERE value.)
Word: DPL
Vocabulary: FORTH
Parameters: -- adr
Description: return variable address of detected decimal point location.
Word: DROP
Vocabulary: FORTH
Parameters: n --
Description: discard top stack value n.
Word: 2DROP
Vocabulary: FORTH
Parameters: n1 n2 -- | d --
Description: Discard two stack items or one double word from stack.
Word: 3DROP
Vocabulary: FORTH
Parameters: n1 n2 n3 -- | d n --
Description: discard three stack items.
Word: 4DROP
Vocabulary: FORTH
Parameters: n1 n2 n3 n4 --
Description: discard four stack items.
Word: DS@
Vocabulary: FORTH
Parameters: -- seg
Description: return segment of user dictionary space.
Word: DU*
Vocabulary: FORTH
Parameters: d1 d2 -- q
Description: Unsigned multiply of d1 and d2 to form quad number q.
Word: DU/
Vocabulary: FORTH
Parameters: q d -- dr du
Description: Unsigned divide of quad q to form unsigned quotient du with unsigned dr remainder.
Word: DUMP
Vocabulary: FORTH
Parameters: n -- (word)
Description: Create compiler overlay starting at block n from current dictionary tail to word.
Word: DUP
Vocabulary: FORTH
Parameters: n -- n n
Description: Duplicate top stack item.
Word: -DUP
Vocabulary: FORTH
Parameters: n -- n | n n
Description: Duplicate n if non-zero.
Word: 2DUP
Vocabulary: FORTH
Parameters: n1 n2 -- n1 n2 n1 n2 | d - d d
Description: Duplicate two stack items or double word.
Word: -2DUP
Vocabulary: FORTH
Parameters: d -- d | d d
Description: Duplicate double number if non-zero.
Word: EFL
Vocabulary: VIDEO
Parameters: -- adr
Description: return address of Extra Font Leading value for font printer.
Word: EFS
Vocabulary: VIDEO
Parameters: -- adr
Description: return address of Extra Font Spacing value for font printer.
Word: ELSE
Vocabulary: FORTH
Parameters: lbl f -- lbl f
Description: Define the conditional failure operations of an IF statement.
Word: EMIT
Vocabulary: FORTH
Parameters: c --
Description: Vector to (EMIT) or (FONT) for output of character c, update OUT value for count.
Word: >EMIT
Vocabulary: VIDEO
Parameters: --
Description: Return output to the internal text mode driver, set screen to BIOS mode 3.
Word: (EMIT)
Vocabulary: FORTH
Parameters: c --
Description: Machine primitive to print character C on the text screen, interprets CR, LF, Backspace and Bell codes.
Word: EMPTY-BUFFERS
Vocabulary: FORTH
Parameters: --
Description: Fill all disk buffers with zeros, do not check update flags.
Word: ENCLOSE
Vocabulary: FORTH
Parameters: adr c -- adr n n | adr n
Description: Parse input string at address ignoring any leading characters c until word terminated by c or null is found, return count location of characters to skip over and count location of terminating character.
Word: :END
Vocabulary: FORTH
Parameters: --
Description: Mark end of words performed during CASE: process words that follow.
Word: END-CODE
Vocabulary: FORTH
Parameters: --
Description: Compile long return to virtual engine from user defined code segment.
Word: ERASE
Vocabulary: FORTH
Parameters: adr n --
Description: fill memory at address with n bytes of zero.
Word: ERROR
Vocabulary: FORTH
Parameters: n --
Description: Generate error number n.
Word: ?ERROR
Vocabulary: HIDDEN
Parameters: n f --
Description: Generate error n if flag f is true.
Word: ?EXEC
Vocabulary: HIDDEN
Parameters: --
Description: Generate error if executing.
Word: EXECUTE
Vocabulary: FORTH
Parameters: adr --
Description: Execute code at address.
Word: EXIT
Vocabulary: FORTH
Parameters: --
Description: Un-nest one token list entry.
Word: ?EXIT
Vocabulary: FORTH
Parameters: f --
Description: Un-nest one token list entry if f is true.
Word: EXPECT
Vocabulary: FORTH
Parameters: adr n --
Description: Get keyboard input of n characters to memory area at address, allows basic editing. Count of characters processed is stored in the system variable HLD.
Word: FENCE
Vocabulary: FORTH
Parameters: -- adr
Description: return system variable holding minimal dictionary address value.
Word: #FILES
Vocabulary: FORTH
Parameters: -- adr
Description: System variable containing the number of open files.
Word: .FILES
Vocabulary: FORTH
Parameters: --
Description: List open files by number, name if available, block number offset and size.
Word: FILES
Vocabulary: FORTH
Parameters: -- adr
Description: return address of system file control array.
Word: >FILE
Vocabulary: FORTH
Parameters: n -- adr
Description: Return address of file control space for file N. (Zero based.)
Word: FILL
Vocabulary: FORTH
Parameters: adr n b --
Description: Fill address with n bytes of b value.
Word: FIND$
Vocabulary: FORTH
Parameters: adr1 adr2 n -- adr1 adr2 n/f
Description: Searches the buffer at adr1 for string at adr2 for n bytes of buffer, return addresses of where search succeeded or end of buffer with n/f count of zero.
Word: -FIND
Vocabulary: HIDDEN
Parameters: -- "string" -- 0 | adr f 1
Description: Parse input stream and attempt to locate string in current search order, return PFA address & compiler bits and flag if found. Zero if not.
Word: (FIND)
Vocabulary: HIDDEN
Parameters: adr link -- 0 | adr f 1
Description: Search vocabulary of link for the counted string at adr, return zero if not found or PFA adr, compiler bit data and 1 if successful.
Word: FIRST
Vocabulary: FORTH
Parameters: -- adr
Description: Return address of first disk buffer.
Word: FLUSH
Vocabulary: FORTH
Parameters: --
Description: Write all updated buffers to disk.
Word: FONT
Vocabulary: VIDEO
Parameters: n --
Description: Select font to be used by font printer, negative values are internal values, positive ones are block fonts.
Word: >FONT
Vocabulary: VIDEO
Parameters: --
Description: Set the font printer as the current video text mode device, will force screen to HGR mode on first character if not already in it.
Word: (FONT)
Vocabulary: HIDDEN
Parameters: c --
Description: Primitive to display character specified in the current graphical font. Changes screen mode to HGR if in text mode, negative values are un-write characters.
Word: FORGET
Vocabulary: ROOT
Parameters: -- (word)
Description: Discard all definitions after and including word.
Word: FORTH
Vocabulary: ROOT
Parameters: --
Description: Set Forth word-set as top search order item.
Word: FX*
Vocabulary: VIDEO
Parameters: -- adr
Description: Contains the graphical font multiplier in the X direction, valid values 1-n.
Word: FY*
Vocabulary: VIDEO
Parameters: -- adr
Description: Contains the graphical font multiplier in the Y direction, valid values 1-n.
Word: GETINT#
Vocabulary: FORTH
Parameters: n -- adr seg
Description: Get address and segment of current interrupt handler for interrupt n.
Word: GETPALETTE
Vocabulary: VIDEO
Parameters: adr n2 n1 --
Description: Get n2 color indexes (RGB triplets) starting with index n1 and save in buffer at adr.
Word: GETPIC
Vocabulary: VIDEO
Parameters: adr x y w h --
Description: Capture image at x, y for width, height into buffer at address.
Word: GO
Vocabulary: ROOT
Parameters: n -- (word)
Description: Open file (word) at block n, begin loading or linking upon open.
Word: HERE
Vocabulary: FORTH
Parameters: -- adr
Description: Return current dictionary tail address.
Word: HEX
Vocabulary: FORTH
Parameters: --
Description: Set current number base to 16. (Hexadecimal.)
Word: HGR
Vocabulary: VIDEO
Parameters: --
Description: Change video mode to 640 by 480 pixels with 256 colors from palette.
Word: HGR1
Vocabulary: VIDEO
Parameters: -- f
Description: Change video mode to 800 by 600 pixels with 256 colors from palette. Flag is false if successful.
Word: HGR2
Vocabulary: VIDEO
Parameters: -- f
Description: Change video mode to 1024 by 768 pixels with 256 colors from palette. Flag is false if successful.
Word: HGR3
Vocabulary: VIDEO
Parameters: -- f
Description: Change video mode to 1280 by 1024 pixels with 256 colors from palette. Flag is false if successful.
Word: HGR13
Vocabulary: VIDEO
Parameters: --
Description: Change video mode to 320 by 200 pixels with 256 colors from palette. (Standard color mode.)
Word: HGR13?
Vocabulary: VIDEO
Parameters: n --
Description: Change video mode to n variety of unchained planar access, with 256 colors from palette. (See Working with the Graphics Display.)
Word: HGR13X
Vocabulary: VIDEO
Parameters: --
Description: Change video mode to 360 by 480 planar mode number 11, with 256 colors from palette.
Word: HIDDEN
Vocabulary: ROOT
Parameters: --
Description: Set hidden word-list as top search order item.
Word: HLD
Vocabulary: FORTH
Parameters: -- adr
Description: Return the address of the hold buffer location variable for count of characters from the last EXPECT or Number Formatting commands.
Word: HOLD
Vocabulary: FORTH
Parameters: c --
Description: Add character c to hold buffer, decrement HLD.
Word: HOME
Vocabulary: FORTH
Parameters: --
Description: Force cursor to top of current display window.
Word: HSYNC
Vocabulary: VIDEO
Parameters: --
Description: Waits for the next horizontal video blanking period.
Word: I
Vocabulary: FORTH
Parameters: -- n
Description: return current index of a DO-LOOP.
Word: ID.
Vocabulary: FORTH
Parameters: adr --
Description: print name of symbol with CFA of adr.
Word: IF
Vocabulary: FORTH
Parameters: -- lbl f | f --
Description: Compile conditional jump for branching if f is true at run time.
Word: IMMEDIATE
Vocabulary: ROOT
Parameters: --
Description: define last word as run only.
Word: IN
Vocabulary: FORTH
Parameters: -- adr
Description: return address of variable holding current input offset pointer.
Word: INDEX
Vocabulary: ROOT
Parameters: n1 n2 --
Description: Display comment lines of blocks n1 to n2 inclusively.
Word: INT#
Vocabulary: FORTH
Parameters: dx cx bx ax n -- dx cx bx ax cy
Description: Execute machine interrupt of n with register data defined. Returns registers listed with carry flag value.
Word: INTERPRET
Vocabulary: FORTH
Parameters: --
Description: Read Text Input Buffer or File Block as compiler run time command string.
Word: J
Vocabulary: FORTH
Parameters: -- n
Description: Return index of outer nested do-loop. (or third return stack item.)
Word: KEY
Vocabulary: FORTH
Parameters: -- n
Description: Vector to (KEY) to wait for character input from the console.
Word: (KEY)
Vocabulary: FORTH
Parameters: -- c
Description: Primitive to read one character from the system console, waits for input if none is present.
Word: (KEY?)
Vocabulary: FORTH
Parameters: -- f
Description: Return true if keyboard buffer has a waiting character.
Word: 1KU/MOD
Vocabulary: FORTH
Parameters: d -- n1 n2
Description: Shift double d by 11 binary places (divide by 1024) return quotient as n2 and remainder as n1.
Word: L!
Vocabulary: FORTH
Parameters: n ofs seg --
Description: Store n into memory at offset of segment.
Word: 2L!
Vocabulary: FORTH
Parameters: d ofs seg --
Description: Store double d into memory offset of segment seg. (Warning: Double Numbers in Fig-Forth do not match Intel vector format, swap double word halves before storing.)
Word: L@
Vocabulary: FORTH
Parameters: ofs seg -- n
Description: Fetch word at offset in segment seg.
Word: 2L@
Vocabulary: FORTH
Parameters: ofs seg -- d
Description: Fetch double word at offset in segment. (Warning: Double Numbers in Fig-Forth do not match Intel vector format, swap double word halves before use.)
Word: LAST-USED
Vocabulary: FORTH
Parameters: -- adr
Description: Return variable containing the last used disk buffer address.
Word: LATEST
Vocabulary: FORTH
Parameters: -- adr
Description: return address of last symbol in current vocabulary.
Word: LC!
Vocabulary: FORTH
Parameters: c ofs seg --
Description: Store byte into memory at offset in segment.
Word: LC@
Vocabulary: FORTH
Parameters: ofs seg -- c
Description: Fetch byte at offset in segment.
Word: LEAVE
Vocabulary: FORTH
Parameters: --
Description: prepare do-loop for exit by setting index equal to limit.
Word: LFA
Vocabulary: FORTH
Parameters: adr -- adr'
Description: adjust code field address given to link field address.
Word: LIBRARY
Vocabulary: FORTH
Parameters: -- (file name)
Description: Set the compiler's reference file to the name and path following LIBRARY. File remains closed until requests are made through NEEDS.
Word: .LINE
Vocabulary: HIDDEN
Parameters: n1 n2 --
Description: Print line n1 from file at block n2.
Word: LINE
Vocabulary: VIDEO
Parameters: x1 y1 x2 y2 c --
Description: Draw a line of color c from x1, y1 to x2, y2.
Word: ?LINE
Vocabulary: VIDEO
Parameters: x1 y1 x2 y2 c -- f
Description: Pixel detect for color c along line x1, y2 to x2, y2.
Word: LINES
Vocabulary: FORTH
Parameters: -- adr
Description: System variable containing two bytes worth of data; lower half is number of (CR) words called, upper byte is page length. See also ?PAGE. Example;
: TEST-PAGES &0A00 LINES ! -- set page size to 10, current line 0
200 0 DO I . CR -- print loop index and a CR
VIDEO ?PAGE FORTH -- ask message, get key from user
13 <> IF LEAVE THEN -- if not Enter, stop the loop
LOOP ; -- then continue
Word: LINK
Vocabulary: ROOT
Parameters: n --
Description: Load compiler overlay starting at file block n.
Word: LIST
Vocabulary: FORTH
Parameters: n --
Description: Display contents of file block n.
Word: LIT
Vocabulary: HIDDEN
Parameters: -- n
Description: Return stored constant n at run time.
Word: 2LIT
Vocabulary: HIDDEN
Parameters: -- d
Description: Return stored double constant d at run time.
Word: LITERAL
Vocabulary: FORTH
Parameters: (n) --
Description: Compile the value of n as a constant into the current definition from the presently active stack.
Word: LMOVE
Vocabulary: FORTH
Parameters: ofs1 seg1 ofs2 seg2 n --
Description: Move n bytes from offset 1, segment 1 to offset 2 segment 2.
Word: -LMOVE
Vocabulary: FORTH
Parameters: adr1 seg1 adr2 seg2 n --
Description: Move N bytes from location address 1, segment 1 to address 2 segment 2, from ends.
Word: LOAD
Vocabulary: ROOT
Parameters: n --
Description: Load text blocks starting at file block n.
Word: ?LOADING
Vocabulary: HIDDEN
Parameters: --
Description: Generate error if loading.
Word: LOOP
Vocabulary: FORTH
Parameters: --
Description: Complete compilation of counted loop.
Word: (LOOP)
Vocabulary: HIDDEN
Parameters: --
Description: Machine language primitive for LOOP function, increment index and jump if index<limit.
Word: +LOOP
Vocabulary: FORTH
Parameters: n --
Description: Compile (+LOOP), on execution, add N to loop index and jump if index<limit.
Word: (+LOOP)
Vocabulary: HIDDEN
Parameters: n --
Description: Machine language primitive for +LOOP function, add N to current loop index and jump if index<limit.
Word: M*
Vocabulary: FORTH
Parameters: n1 n2 -- d
Description: Perform multiply of n1 and n2 to return double d.
Word: M/
Vocabulary: FORTH
Parameters: d n -- d
Description: divide double by n, return result d.
Word: (MKEY)
Vocabulary: MOUSE
Parameters: -- n
Description: Read modem input pointer and return any waiting character. Returns zero if no character is present.
Word: (MKEY?)
Vocabulary: MOUSE
Parameters: -- f
Description: Return true if modem buffer has characters waiting for input.
Word: /MOD
Vocabulary: FORTH
Parameters: n1 n2 -- n3 n4
Description: Divide n1 by n2 to return n4 quotient and n3 remainder.
Word: */MOD
Vocabulary: FORTH
Parameters: n1 n2 n3 -- n4 r4
Description: Multiply n1 by n2 then divide result by n3, maintain 32 bit interim value and return remainder after final division.
Word: M/MOD
Vocabulary: FORTH
Parameters: d n -- r d
Description: divide double by n, return double result and 16 bit remainder.
Word: MARROW
Vocabulary: MOUSE
Parameters: -- adr
Description: Return address of mouse arrow graphic structure.
Word: MAX
Vocabulary: FORTH
Parameters: n1 n2 -- n
Description: Keep larger value of n1 and n2. (Discard smaller.)
Word: MAXFILES
Vocabulary: FORTH
Parameters: -- 20
Description: Return maximum number of allowed files.
Word: MAXX
Vocabulary: VIDEO
Parameters: -- x
Description: Return maximum x pixel coordinate.
Word: MAXY
Vocabulary: VIDEO
Parameters: -- y
Description: Return maximum y line coordinate.
Word: MBUFFER
Vocabulary: MOUSE
Parameters: -- adr
Description: return address of mouse graphic buffer area.
Word: MBUTTON
Vocabulary: MOUSE
Parameters: -- n
Description: return mouse button status, bit 0 equal one if left button is down, bit 1 is one if right button is down, bit 2 is 1 if middle button is down.
Word: MCLR
Vocabulary: MOUSE
Parameters: --
Description: reset OEM mouse driver to remove Fig-Forth extension.
Word: MCURSOR
Vocabulary: MOUSE
Parameters: adr --
Description: Set mouse graphic using structure address given.
Word: MESSAGE
Vocabulary: FORTH
Parameters: n --
Description: Print system message n.
Word: MGR
Vocabulary: VIDEO
Parameters: --
Description: Set video mode to 640 by 480 pixels with 16 colors.
Word: MHIDE
Vocabulary: MOUSE
Parameters: --
Description: Hide mouse pointer.
Word: MHOUR
Vocabulary: MOUSE
Parameters: -- adr
Description: Return address of mouse hour glass graphic structure.
Word: MIN
Vocabulary: FORTH
Parameters: n1 n2 --
Description: Keep smaller value of n1 and n2. (discard greater.)
Word: MINUS
Vocabulary: FORTH
Parameters: n -- -n
Description: Invert number n.
Word: MOD
Vocabulary: FORTH
Parameters: n1 n2 -- r
Description: divide n1 by n2 and return remainder.
Word: MODEM-REC
Vocabulary: MOUSE
Parameters: -- adr
Description: return address of modem device control block.
Word: MOK?
Vocabulary: MOUSE
Parameters: -- f
Description: test for mouse and OEM driver, install Fig-Forth v2 extension and return flag.
Word: MONO
Vocabulary: VIDEO
Parameters: --
Description: Set screen and video controller to monographic support values.
Word: MOUSE
Vocabulary: ROOT
Parameters: --
Description: Set top search order item to mouse word-list.
Word: MSETX
Vocabulary: MOUSE
Parameters: n1 n2 --
Description: Set mouse movement x limits of n2 minimum to n1 maximum. (Note: Multiplied by acceleration values.)
Word: MSETY
Vocabulary: MOUSE
Parameters: n1 n2 --
Description: Set mouse movement y limits of n2 minimum to n1 maximum. (Note: Multiplied by acceleration values.)
Word: MSHOW
Vocabulary: MOUSE
Parameters: --
Description: Show the mouse cursor on the screen.
Word: MSPEED
Vocabulary: MOUSE
Parameters: -- adr
Description: return variable address of mouse acceleration values, x multiplier followed by y multiplier.
Word: MX
Vocabulary: MOUSE
Parameters: -- n
Description: return current mouse horizontal position in pixels. (Adjusted by graphic hot-spot)
Word: MY
Vocabulary: MOUSE
Parameters: -- n
Description: return current mouse vertical position in lines. (Adjusted by graphic hot-spot)
Word: MZERO
Vocabulary: MOUSE
Parameters: --
Description: reset current mouse position to upper left corner of screen. (0, 0).
Word: NAE
Vocabulary: FORTH
Parameters: -- adr
Description: returns the address of the system variable for array offset construction.
Word: NEEDS
Vocabulary: FORTH
Parameters: -- (word)
Description: Scan the current search order for the word specified, then scan the library file for the string. If the word sought is not in memory and exists in the library file, load the library file from the block in which the word was located.
Word: NEXT
Vocabulary: FORTH
Parameters: -- n
Description: Constant of round-robin task switch routine or zero for single-mode versions.
Word: NFA
Vocabulary: FORTH
Parameters: adr -- adr'
Description: adjust code field address to name field address.
Word: NIP
Vocabulary: FORTH
Parameters: n1 n2 -- n2
Description: Discard second stack item.
Word: 2NIP
Vocabulary: FORTH
Parameters: n1 n2 n3 -- n3
Description: discard 2nd and 3rd stack items.
Word: 3NIP
Vocabulary: FORTH
Parameters: n1 n2 n3 n4 -- n4
Description: discard 2nd to 4th stack items.
Word: 4NIP
Vocabulary: FORTH
Parameters: n1 n2 n3 n4 n5 -- n5
Description: discard 2nd to 5th stack items.
Word: NOOP
Vocabulary: FORTH
Parameters: --
Description: no operation.
Word: NUMBER
Vocabulary: FORTH
Parameters: adr -- d
Description: read string at address and convert to valid number if possible.
Word: (NUMBER)
Vocabulary: HIDDEN
Parameters: d adr -- d adr
Description: Read string at address and check for valid digit. Add digit to number d and increment string address pointer. Generates error if string character not a valid digit.
Word: +OFF
Vocabulary: FORTH
Parameters: n -- (word)
Description: Define an arithmetic constant of N plus the NAE variable contents, update the NAE variable. On execution, the word defined adds its value to the top stack item.
Word: OFFSET
Vocabulary: FORTH
Parameters: -- adr
Description: return variable of file block number offset.
Word: ONLY
Vocabulary: ROOT
Parameters: --
Description: Set the minimal word-list as the only search order, including the current compilation vocabulary.
Word: OPEN
Vocabulary: ROOT
Parameters: n -- (word)
Description: Attempt to open file (word) starting at access block n.
Word: (OPEN)
Vocabulary: HIDDEN
Parameters: n adr --
Description: Attempt to open file with name specified in string at adr, with a base block location of n. (Outdated.)
Word: OPEN-FILES
Vocabulary: FORTH
Parameters: --
Description: Open currently active files after save.
Word: OR
Vocabulary: FORTH
Parameters: n1 n2 -- n2
Description: bit-wise logical OR of n1 and n2 to form m3.
Word: ORDER
Vocabulary: ROOT
Parameters: --
Description: display current search order list and compilation vocabulary.
Word: OUT
Vocabulary: FORTH
Parameters: -- adr
Description: return address of variable containing count of characters sent to the output device.
Word: OV
Vocabulary: FORTH
Parameters: -- f
Description: Return overflow bit of last divide.
Word: OVER
Vocabulary: FORTH
Parameters: n1 n2 -- n1 n2 n1
Description: Duplicate 2nd stack item over top of stack.
Word: 2OVER
Vocabulary: FORTH
Parameters: d1 d2 -- d1 d2 d1 | n1 n2 n3 n4 -- n1 n2 n3 n4 n1 n2
Description: Duplicate 3rd and 4th stack items over top of stack.
Word: P!
Vocabulary: FORTH
Parameters: n1 n2 --
Description: send lower 8 bits of n1 to system port n2, upper 8 bits to port n2+1.
Word: P@
Vocabulary: FORTH
Parameters: n1 -- n
Description: get word of 8 bit contents in system port n1 and n1+1.
Word: PAD
Vocabulary: FORTH
Parameters: -- adr
Description: return address of pad space, typically here plus 88 bytes.
Word: ?PAGE
Vocabulary: VIDEO
Parameters: -- c
Description: Tests lines printed and generates "press any key.." message, waiting for a keystroke if at the screen bottom. Character returned is 0 if no message was printed, else it was the key the user entered to by-pass the message. See also LINES. Example;
: TEST-PAGES &0A00 LINES ! -- set page size to 10, current line 0
200 0 DO I . CR -- print loop index and a CR
VIDEO ?PAGE FORTH -- ask message, get key from user
13 <> IF LEAVE THEN -- if not Enter, stop the loop
LOOP ; -- then continue
Word: ?PAIRS
Vocabulary: HIDDEN
Parameters: n1 n2 --
Description: Generate error if N1 does not equal N2.
Word: PC!
Vocabulary: FORTH
Parameters: c n --
Description: send byte c to port n.
Word: PC@
Vocabulary: FORTH
Parameters: n -- c
Description: get byte contents of port n.
Word: PFA
Vocabulary: FORTH
Parameters: adr -- adr'
Description: adjust code field address to parameter field address.
Word: PICK
Vocabulary: FORTH
Parameters: nX n -- nX nXn
Description: Duplicate Nth stack item to top of stack.
Word: PLAY"
Vocabulary: SOUND
Parameters: -- (string")
Description: start playing digital sound file of string.
Word: <PLAY>
Vocabulary: SOUND
Parameters: adr --
Description: Play sound file of filename located at address.
Word: -PLAY
Vocabulary: SOUND
Parameters: --
Description: Stop current midi song playing.
Word: PLEAT
Vocabulary: FORTH
Parameters: n1 n2 -- n1 n1 n2
Description: Duplicate 2nd stack item under top item.
Word: 2PLEAT
Vocabulary: FORTH
Parameters: d1 d2 -- d1 d1 d2 | n1 n2 n3 n4 -- n1 n2 n1 n2 n3 n4
Description: Duplicate 3rd and 4th stack item under 1st and 2nd item.
Word: PLOT
Vocabulary: VIDEO
Parameters: x y c --
Description: paint pixel of color at x, y.
Word: ?PLOT
Vocabulary: VIDEO
Parameters: x y -- c
Description: Return color of pixel located at X, Y.
Word: PREVIOUS
Vocabulary: ROOT
Parameters: --
Description: Discard top search order buffer item.
Word: (PRINT)
Vocabulary: FORTH
Parameters: c --
Description: Send character c to the system printer handle.
Word: PRINTER
Vocabulary: FORTH
Parameters: -- adr
Description: return address of printer control variable, if contents are non-zero characters sent to (EMIT) are echoed to the system printer.
Word: PUT
Vocabulary: FORTH
Parameters: nX n1 n2 -- nX
Description: Store value n1 into stack item n2.
Word: PUTPIC
Vocabulary: VIDEO
Parameters: adr x y w h --
Description: paint image saved at address on screen in location x, y for width and height.
Word: Q+
Vocabulary: FORTH
Parameters: q1 q2 -- q3
Description: add quads 1 & 2 to form quad 3.
Word: Q-
Vocabulary: FORTH
Parameters: q1 q2 -- q3
Description: Subtract quad 2 from quad 1 to form quad 3.
Word: Q+-
Vocabulary: FORTH
Parameters: q n -- q'
Description: apply sign of n to q.
Word: Q.
Vocabulary: FORTH
Parameters: q --
Description: Print quad number.
Word: QABS
Vocabulary: FORTH
Parameters: q -- q'
Description: get absolute value of quad number.
Word: QMINUS
Vocabulary: FORTH
Parameters: q -- -q
Description: invert quad number value.
Word: QUERY
Vocabulary: FORTH
Parameters: --
Description: get line from keyboard and store in TIB area.
Word: QUIET
Vocabulary: SOUND
Parameters: --
Description: Stop all sound card activity, disable interrupts.
Word: QUIT
Vocabulary: FORTH
Parameters: --
Description: Stop current program and return to command input processor, does not empty stack.
Word: R
Vocabulary: FORTH
Parameters: -- n
Description: copy top return stack item to parameter stack.
Word: 2R
Vocabulary: FORTH
Parameters: -- n1 n2 | -- d
Description: copy top two return stack items to parameter stack.
Word: R>
Vocabulary: FORTH
Parameters: -- n
Description: move top return stack item to parameter stack.
Word: >R
Vocabulary: FORTH
Parameters: n --
Description: Move top parameter stack item to the return stack.
Word: .R
Vocabulary: FORTH
Parameters: n1 n2 --
Description: Print n1 right-justified to n2 columns.
Word: R0
Vocabulary: FORTH
Parameters: -- adr
Description: return variable address containing the cold start value offset of the return stack.
Word: RANDOMIZE
Vocabulary: FORTH
Parameters: adr --
Description: moves 500 bytes from address to Random Number Generator Seed Buffer, should be called before RND0.
Word: RDROP
Vocabulary: FORTH
Parameters: --
Description: discard top return stack item.
Word: REDO
Vocabulary: FORTH
Parameters: --
Description: set index of current to do loop to zero.
Word: REPEAT
Vocabulary: FORTH
Parameters: --
Description: Close begin-while loop.
Word: RESET-FILES
Vocabulary: FORTH
Parameters: --
Description: flush buffers, close all files and reset file system.
Word: RND0
Vocabulary: FORTH
Parameters: -- n
Description: Generate 16 bit random number. Set generator seed with RANDOMIZE before using.
Word: ROLL
Vocabulary: FORTH
Parameters: nX n -- nX nXn
Description: Bring Nth stack item to the top of the stack.
Word: -ROLL
Vocabulary: FORTH
Parameters: nX n1 n2 -- nX
Description: Insert n1 into stack at item location n2.
Word: ROOT
Vocabulary: (all)
Parameters: --
Description: set minimal word-list as top search order item.
Word: ROT
Vocabulary: FORTH
Parameters: n1 n2 n3 -- n2 n3 n1
Description: bring 3rd stack to the top.
Word: -ROT
Vocabulary: FORTH
Parameters: n1 n2 n3 -- n3 n1 n2
Description: Reverse roll 3 stack items.
Word: 2ROT
Vocabulary: FORTH
Parameters: d1 d2 d3 -- d2 d3 d1 | n1 n2 n3 n4 n5 n6 -- n3 n4 n5 n6 n1 n2
Description: Bring 3rd double number to the top. (5th and 6th item.)
Word: -2ROT
Vocabulary: FORTH
Parameters: d1 d2 d3 -- d3 d1 d2
Description: Reverse rotate of 3 double stack values.
Word: RP!
Vocabulary: FORTH
Parameters: --
Description: Empty the Return Stack.
Word: RP@
Vocabulary: FORTH
Parameters: -- n
Description: return offset of return stack pointer.
Word: RPICK
Vocabulary: FORTH
Parameters: n -- n'
Description: return Nth return stack item.
Word: RUN$
Vocabulary: FORTH
Parameters: adr --
Description: Suspends current input process and interprets the counted string given at address, then returns to the current input. String should be enclosed with ,". (See OVERLAYS.)
Word: #S
Vocabulary: FORTH
Parameters: d -- d0
Description: Extract all remaining digits of the double number in the current base, place into hold buffer.
Word: ;S
Vocabulary: HIDDEN
Parameters: --
Description: Move down one level in the subroutine stack, return to caller.
Word: S0
Vocabulary: FORTH
Parameters: -- adr
Description: return variable address containing cold start offset of parameter stack.
Word: S->D
Vocabulary: FORTH
Parameters: n -- d
Description: sign extend word value n to double number.
Word: S->Q
Vocabulary: FORTH
Parameters: n -- q
Description: sign extend word value to quad number.
Word: SQR
Vocabulary: FORTH
Parameters: n -- n
Description: Find square root of n.
Word: 2SQR
Vocabulary: FORTH
Parameters: d -- n
Description: Find square root of double, return integer.
Word: 4SQR
Vocabulary: FORTH
Parameters: q -- d
Description: Find square root of quad, return double.
Word: SAVE
Vocabulary: FORTH
Parameters: -- (word)
Description: Save executable image of current system contents into file (word).
Word: SCR
Vocabulary: FORTH
Parameters: -- adr
Description: return address of variable containing last listed or edited screen block.
Word: SETINT#
Vocabulary: FORTH
Parameters: ofs seg n --
Description: Set interrupt service handler for interrupt number n to point to segment and offset.
Word: SETPALETTE
Vocabulary: VIDEO
Parameters: adr n1 n2 --
Description: set palette colors starting at index n1 for count of n2 to the values saved at address.
Word: SIGN
Vocabulary: FORTH
Parameters: n d -- d
Description: Extract sign bit from n and include minus sign in hold buffer if negative. For number format printing only. (N is assumed to be copy of upper word from double number d.)
Word: SIN
Vocabulary: FORTH
Parameters: n -- n'
Description: return Sine of angle n1 multiplied by 10,000.
Word: SIZE$
Vocabulary: VIDEO
Parameters: adr -- x y
Description: return x and y size of counted string contained at address as it would be painted by the Font Printer. Last character of string ignored for use with ,"
Word: SMUDGE
Vocabulary: FORTH
Parameters: --
Description: Set/Reset compilation bit of last word symbol in active vocabulary.
Word: SONG"
Vocabulary: SOUND
Parameters: -- (string")
Description: start playing midi file of string.
Word: <SONG>
Vocabulary: SOUND
Parameters: adr --
Description: Play midi song file of filename located at address.
Word: -SONG
Vocabulary: SOUND
Parameters: --
Description: Stop current wave file playing.
Word: SOUND
Vocabulary: ROOT
Parameters: --
Description: set the sound word-list as the top search order item.
Word: SOUND?
Vocabulary: SOUND
Parameters: -- n
Description: test for sound card and return bit 0 true if found, bit 1 true if sound file is playing and bit 2 true if midi file is playing.
Word: SP!
Vocabulary: FORTH
Parameters: --
Description: Empty parameter stack.
Word: SP@
Vocabulary: FORTH
Parameters: -- n
Description: return offset of current parameter stack.
Word: SPACE
Vocabulary: FORTH
Parameters: --
Description: send an ASCII blank to the output device.
Word: SPACES
Vocabulary: FORTH
Parameters: n --
Description: send N ASCII blanks to the output device.
Word: SPLIT
Vocabulary: FORTH
Parameters: n -- cu cl
Description: separate upper and lower bytes of n into two values.
Word: SQUARE
Vocabulary: VIDEO
Parameters: x y w h c --
Description: Draw a square of color c at x, y for width w and height h.
Word: ?SQUARE
Vocabulary: VIDEO
Parameters: x y h w c -- f
Description: does pixel detect for a square of color c, height h, width w, with upper left corner at x and y.
Word: STR>
Vocabulary: FORTH
Parameters: s d --
Description: Move counted string stored at address S to address D, including count byte.
Word: ?STACK
Vocabulary: HIDDEN
Parameters: --
Description: Generate error if stack out of bounds.
Word: START
Vocabulary: FORTH
Parameters: --
Description: Vector to program start word if set, else NOOP.
Word: STATE
Vocabulary: HIDDEN
Parameters: -- adr
Description: return address of compiler control flag.
Word: SWAP
Vocabulary: FORTH
Parameters: n1 n2 -- n2 n1
Description: exchange top two stack items.
Word: 2SWAP
Vocabulary: FORTH
Parameters: d1 d -- d2 d1 | n1 n2 n3 n4 -- n3 n4 n1 n2
Description: exchange top two double numbers or items 1 and 2 with 3 and 4.
Word: SWITCH
Vocabulary: FORTH
Parameters: -- (word) n1 <word1> n2 <word2> ... -1 | x -- x
Description: Build switch array structure, associate n1 to word1, n2 to word2, etc. until -1 found. On execution compare x to n values listed, then execute matching word token list if equal. X is sent as parameter to word list, and returns if no match was found.
Word: (SYS)
Vocabulary: HIDDEN
Parameters: -- string"
Description: Primitive to shell to DOS and execute string saved in definition area.
Word: TASK
Vocabulary: FORTH
Parameters: --
Description: Top of default vocabulary word-lists.
Word: ?TERMINAL
Vocabulary: FORTH
Parameters: -- f
Description: Return true if keyboard has waiting input.
Word: TEXT
Vocabulary: VIDEO
Parameters: --
Description: set video mode to BIOS 3, 80 characters by 25 line text mode. Homes and clears screen buffer.
Word: THEN
Vocabulary: FORTH
Parameters: lbl f --
Description: Compile completed conditional branch routine.
Word: TIB
Vocabulary: FORTH
Parameters: -- adr
Description: return variable address containing the offset of the text input buffer.
Word: TO
Vocabulary: FORTH
Parameters: adr -- (word)
Description: compile 2@! to move the double word contents of variable at address to variable (word).
Word: TOGGLE
Vocabulary: FORTH
Parameters: adr b --
Description: perform logical XOR of memory contents at address with byte b.
Word: -TRAILING
Vocabulary: FORTH
Parameters: adr c -- adr c'
Description: Scan counted string at address and remove from count c any trailing spaces contained.
Word: TRAVERSE
Vocabulary: HIDDEN
Parameters: adr n -- adr'
Description: Scan string at address in direction of n until character greater than 127 is found. n=1 forward, -1 backward.
Word: TUCK
Vocabulary: FORTH
Parameters: n1 n2 -- n2 n1 n2
Description: copies top item to third item.
Word: TYPE
Vocabulary: FORTH
Parameters: adr c --
Description: type string at address for c characters.
Word: U*
Vocabulary: FORTH
Parameters: n1 n2 -- n3
Description: perform unsigned multiplication of n1 times n2. returns 16 bit n3.
Word: U.
Vocabulary: FORTH
Parameters: n --
Description: print unsigned value of n.
Word: U/
Vocabulary: FORTH
Parameters: n1 n2 -- n3
Description: perform unsigned division of n1 by n2 to form n3.
Word: U<
Vocabulary: FORTH
Parameters: n1 n2 -- f
Description: unsigned compare of n1 and n2, true if n1 is less than n2.
Word: U>
Vocabulary: FORTH
Parameters: n1 n2 -- f
Description: unsigned compare of n1 and n2, true if n1 is greater than n2.
Word: +UNDER
Vocabulary: FORTH
Parameters: n1 n2 n3 -- n1 n2
Description: Add n3 to n1.
Word: +2UNDER
Vocabulary: FORTH
Parameters: d1 d2 d3 -- d1 d2
Description: Add double number d3 to d1.
Word: UNLOOP
Vocabulary: FORTH
Parameters: --
Description: Drop two Return Stack words. (Index & Limit or DO-LOOP.)
Word: UNTIL
Vocabulary: FORTH
Parameters: f --
Description: branch to start of BEGN loop if flag given in zero.
Word: UP_CRC
Vocabulary: MOUSE
Parameters: b --
Description: update current CRC value with byte b.
Word: UPDATE
Vocabulary: FORTH
Parameters: --
Description: mark last used disk buffer as having new or changed data.
Word: >UPPER
Vocabulary: FORTH
Parameters: adr -- adr
Description: Raise characters 'a' to 'z' in counted string at address to uppercase.
Word: USE
Vocabulary: HIDDEN
Parameters: -- adr
Description: return variable of next disk buffer to be used.
Word: V2!
Vocabulary: FORTH
Parameters: n d --
Description: store n into file at pointer d.
Word: V2@
Vocabulary: FORTH
Parameters: d -- n
Description: fetch n from file at location d.
Word: V2>
Vocabulary: FORTH
Parameters: adr -- n
Description: fetch number from file at location in double variable at address, advance location.
Word: >V2
Vocabulary: FORTH
Parameters: n adr --
Description: Move 16 bit number to disk file pointed at by the double number contents of adr, update buffer as changed, advance location.
Word: V4!
Vocabulary: FORTH
Parameters: d d --
Description: store double number d into file at location d.
Word: V4@
Vocabulary: FORTH
Parameters: d -- d'
Description: fetch double number from file at location d.
Word: V4>
Vocabulary: FORTH
Parameters: adr -- d
Description: fetch double number from file at location in variable address, advance location.
Word: >V4
Vocabulary: FORTH
Parameters: d adr --
Description: Move double number to disk file pointed at by the double number contents of adr, update buffer as changed, advance location.
Word: VADDR
Vocabulary: FORTH
Parameters: d -- adr
Description: convert double number d into block values and read the file at location and return address that points to data.
Word: VARIABLE
Vocabulary: FORTH
Parameters: n -- (word)
Description: Compile a variable of (word) with the initial contents of n.
Word: 2VARIABLE
Vocabulary: FORTH
Parameters: d -- (word)
Description: Compile a double variable of (word) with the initial contents of d.
Word: 4VARIABLE
Vocabulary: FORTH
Parameters: -- (word)
Description: Compile quad variable space, value initialized to zero.
Word: VBELL
Vocabulary: VIDEO
Parameters: -- adr
Description: return address of console beep control value.
Word: VBLOCK
Vocabulary: FORTH
Parameters: d -- adr
Description: convert double number to block values and read 1024 bytes from file at location given. Return disk buffer address that holds data.
Word: VC!
Vocabulary: FORTH
Parameters: c d --
Description: Stores character c in file at offset d.
Word: VC>
Vocabulary: FORTH
Parameters: adr -- c
Description: fetch character c from file at offset stored in variable at address, advance location.
Word: VC@
Vocabulary: FORTH
Parameters: d -- c
Description: fetch character from file at offset d.
Word: VID
Vocabulary: VIDEO
Parameters: -- adr
Description: return segment of active video page.
Word: VIDEO
Vocabulary: ROOT
Parameters: --
Description: set video word-list as top search order item.
Word: VLEFT
Vocabulary: VIDEO
Parameters: -- adr
Description: return address of variable containing left most column (in characters or pixels) of the current display window.
Word: VLENGTH
Vocabulary: VIDEO
Parameters: -- adr
Description: return address of variable containing length in lines of the current display window.
Word: VLIST
Vocabulary: ROOT
Parameters: --
Description: list words in the current search path.
Word: VMODE
Vocabulary: VIDEO
Parameters: -- adr
Description: return address of video interface mode control byte.
Word: VOCABULARY
Vocabulary: ROOT
Parameters: -- (word)
Description: define a new word list of (word).
Word: VOFFSET
Vocabulary: VIDEO
Parameters: -- adr
Description: return address of relative plotting offset variable; first value is Y, next is X.
Word: VPAN
Vocabulary: VIDEO
Parameters: n --
Description: Pan the video planar screen by n pixels, n ranges 0-3.
Word: VPAN?
Vocabulary: VIDEO
Parameters: --
Description: enable pixel pan compatibility mode.
Word: VPTR1
Vocabulary: FORTH
Parameters: -- adr
Description: return address of double variable 1 for virtual file access.
Word: VPTR2
Vocabulary: FORTH
Parameters: -- adr
Description: return address of double variable 2 for virtual file access.
Word: VREC>
Vocabulary: FORTH
Parameters: d adr n -- d
Description: read n bytes from file starting at offset d, into memory buffer at address, advance location.
Word: >VREC
Vocabulary: FORTH
Parameters: d adr n -- d
Description: Move n bytes at address to disk file at offset of double d. Update buffers, advance location.
Word: VSIZE
Vocabulary: VIDEO
Parameters: -- adr
Description: return address of variable containing number of columns in characters or pixels of the current display window.
Word: VSPLIT
Vocabulary: VIDEO
Parameters: n --
Description: define video display line compare value to set up display page and status screen.
Word: VSTART
Vocabulary: VIDEO
Parameters: n -- | y x --
Description: In standard resolution modes this word defines the offset in bytes from the top of the video ram to the current display page. In VESA resolution modes this word defines the pixel and line offset of the display area.
Word: VSYNC
Vocabulary: VIDEO
Parameters: --
Description: Waits for the next vertical video retrace period.
Word: VTBL
Vocabulary: VIDEO
Parameters: -- adr
Description: return address of video graphics control block. See text.
Word: VTOP
Vocabulary: VIDEO
Parameters: -- adr
Description: return address of variable containing top most line of the current display window.
Word: VWIDTH
Vocabulary: VIDEO
Parameters: -- adr
Description: return address of variable containing number of columns (in characters or pixels) of the current display window.
Word: WARM
Vocabulary: FORTH
Parameters: --
Description: perform a warm start of the Forth engine, clear screen, print copyright notice.
Word: WARNING
Vocabulary: FORTH
Parameters: -- adr
Description: return variable of error handling and messaging functions.
Word: WHILE
Vocabulary: FORTH
Parameters: f --
Description: define condition loop to execute when flag is true.
Word: WIDTH
Vocabulary: HIDDEN
Parameters: -- adr
Description: return variable address containing the size of symbols as saved in the vocabulary.
Word: WITHIN
Vocabulary: FORTH
Parameters: n1 n2 n3 -- f
Description: return true if n1 is greater or equal than n2 and less than n3.
Word: WORD
Vocabulary: FORTH
Parameters: c --
Description: Parse input stream for next word delimited by character c, ignore leading terminators, and place parsed word at the location of HERE.
Word: WR1
Vocabulary: VIDEO
Parameters: n1 n2 n3 --
Description: moves n3 bytes from address n1 to location n2 in the video screen graphics segment, (0A000 Hex by default) using the "fast paste" write mode of option 1. Data from the CPU is ignored while all read and write operations take place on 4 pixel slices (4 planes) of data for each occurrence. If the current video mode is not that of 2, (planar mode) this word has no effect.
Word: XOR
Vocabulary: FORTH
Parameters: n1 n2 -- n3
Description: perform bit-wise logical XOR of n1 and n2 to form n3.
Return to Contents. Next Chapter. Previous Chapter.