Language Guide

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.

Back to Top


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.

Back to Top


Word: #>

Vocabulary: FORTH

Parameters: d -- adr n

Description: Drop double number, return location and count of characters in the hold buffer.

Back to Top


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.

Back to Top


Word: '

Vocabulary: FORTH

Parameters: (word) -- PFA

Description: Parse next word from the input stream, return the PFA address of the word in the dictionary. Generates error if word not found.

Back to Top


Word: (

Vocabulary: FORTH

Parameters: -- characters )

Description: Parse input to closing parenthesis or end of input buffer and discard.

Back to Top


Word: (,")

Vocabulary: HIDDEN

Parameters: -- adr

Description: Return address of saved string in definition area.

Back to Top


Word: (.")

Vocabulary: HIDDEN

Parameters: --

Description: Print saved string in definition area.

Back to Top


Word: *

Vocabulary: FORTH

Parameters: n1 n2 -- n3

Description: Multiply n1 by n2 to produce n3.

Back to Top


Word: */

Vocabulary: FORTH

Parameters: n1 n2 n3 -- n4

Description: Multiply n1 by n2 then divide result by n3, maintain 32 bit interim value.

Back to Top


Word: +

Vocabulary: FORTH

Parameters: n1 n2 -- n3

Description: add n2 to n1.

Back to Top


Word: +-

Vocabulary: FORTH

Parameters: n1 n2 -- n3

Description: apply sign of n2 to n1.

Back to Top


Word: +!

Vocabulary: FORTH

Parameters: n adr --

Description: Add N to 16 bit contents specified at address.

Back to Top


Word: ,

Vocabulary: FORTH

Parameters: n --

Description: Store N into dictionary space at current dictionary tail location.

Back to Top


Word: ,"

Vocabulary: FORTH

Parameters: -- (string")

Description: Compile (,") and save string into the dictionary space.

Back to Top


Word: -

Vocabulary: FORTH

Parameters: n1 n2 -- n3

Description: Subtract n2 from n1.

Back to Top


Word: -!

Vocabulary: FORTH

Parameters: n adr --

Description: Subtract N from 16 bit memory contents specified at address.

Back to Top


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.

Back to Top


Word: -->

Vocabulary: FORTH

Parameters: --

Description: Move file input pointer to next higher numbered block and begin input.

Back to Top


Word: .

Vocabulary: FORTH

Parameters: n --

Description: Print 16 bit number n.

Back to Top


Word: ."

Vocabulary: FORTH

Parameters: -- (string")

Description: Compile (.") and save string to definition space.

Back to Top


Word: /

Vocabulary: FORTH

Parameters: n1 n2 -- n3

Description: Divide n1 by n2 to return n3.

Back to Top


Word: :

Vocabulary: FORTH

Parameters: -- (word)

Description: Start compiler for next word from input stream, build new dictionary entry.

Back to Top


Word: ;

Vocabulary: FORTH

Parameters: --

Description: End new dictionary entry, test for compiler errors and return to run mode.

Back to Top


Word: <

Vocabulary: FORTH

Parameters: n1 n2 -- f

Description: Return true is n1<n2.

Back to Top


Word: <#

Vocabulary: FORTH

Parameters: d -- d

Description: Begin number formatting, empty hold buffer for characters to follow.

Back to Top


Word: <=

Vocabulary: FORTH

Parameters: n1 n2 -- f

Description: Return true is n1<=n2.

Back to Top


Word: <>

Vocabulary: FORTH

Parameters: n1 n2 -- f

Description: Return true is n1<>n2.

Back to Top


Word: =

Vocabulary: FORTH

Parameters: n1 n2 -- f

Description: Return true is n1=n2.

Back to Top


Word: =<

Vocabulary: FORTH

Parameters: n1 n2 --

Description: Return true is n1<=n2.

Back to Top


Word: =>

Vocabulary: FORTH

Parameters: n1 n2 --

Description: Return true is n1=>n2.

Back to Top


Word: >

Vocabulary: FORTH

Parameters: n1 n2 --

Description: Return true is n1>n2.

Back to Top


Word: >=

Vocabulary: FORTH

Parameters: n1 n2 -- f

Description: Return true is n1=>n2.

Back to Top


Word: ?

Vocabulary: FORTH

Parameters: adr --

Description: Print 16 bit contents of address given.

Back to Top


Word: @

Vocabulary: FORTH

Parameters: adr -- n

Description: Fetch 16 bit contents of address.

Back to Top


Word: @!

Vocabulary: FORTH

Parameters: adr2 adr1 --

Description: Fetch 16 bit number from address 1, save into address 2.

Back to Top


Word: [

Vocabulary: FORTH

Parameters: --

Description: Turn compiler off, run words that follow.

Back to Top


Word: ]

Vocabulary: FORTH

Parameters: --

Description: Turn compiler on, compile tokens for words that follow.

Back to Top


Word: 0

Vocabulary: FORTH

Parameters: -- 0

Description: Return zero.

Back to Top


Word: 0<

Vocabulary: FORTH

Parameters: n -- f

Description: Return true if N is negative.

Back to Top


Word: 0=

Vocabulary: FORTH

Parameters: n -- f

Description: Return true if N is zero.

Back to Top


Word: 1

Vocabulary: FORTH

Parameters: -- 1

Description: Returns 1.

Back to Top


Word: 1+

Vocabulary: FORTH

Parameters: n -- n+1

Description: Increment N.

Back to Top


Word: 1-

Vocabulary: FORTH

Parameters: n -- n-1

Description: Decrement N.

Back to Top


Word: 2

Vocabulary: FORTH

Parameters: -- 2

Description: returns 2.

Back to Top


Word: 2!

Vocabulary: FORTH

Parameters: d adr --

Description: Store double number at address.

Back to Top


Word: 2*

Vocabulary: FORTH

Parameters: n -- n b

Description: shift n left one place, return shifted bit in word b, remaining bits in n.

Back to Top


Word: 2+

Vocabulary: FORTH

Parameters: n -- n+2

Description: add to 2 to N.

Back to Top


Word: 2+!

Vocabulary: FORTH

Parameters: d adr --

Description: Add double d to contents of address.

Back to Top


Word: 2-

Vocabulary: FORTH

Parameters: n -- n-2

Description: subtract 2 from N.

Back to Top


Word: 2-!

Vocabulary: FORTH

Parameters: d adr --

Description: Subtract double d from contents at address.

Back to Top


Word: 2/

Vocabulary: FORTH

Parameters: n -- n b

Description: Right shift N and return shifted out bit in b, remaining bits in n.

Back to Top


Word: 2@

Vocabulary: FORTH

Parameters: adr -- d

Description: Fetch double word value from address.

Back to Top


Word: 2@!

Vocabulary: FORTH

Parameters: adr1 adr2 --

Description: Move double word value from adr2 to adr1.

Back to Top


Word: 3

Vocabulary: FORTH

Parameters: -- 3

Description: Returns a three.

Back to Top


Word: 4+

Vocabulary: FORTH

Parameters: n -- n+4

Description: Add four to N.

Back to Top


Word: 4+!

Vocabulary: FORTH

Parameters: q adr --

Description: Add quad to contents at address.

Back to Top


Word: 4-

Vocabulary: FORTH

Parameters: n -- n-4

Description: Subtract 4 from n.

Back to Top


Word: 4-!

Vocabulary: FORTH

Parameters: q adr --

Description: Subtract quad from contents at address.

Back to Top


Word: ABORT

Vocabulary: FORTH

Parameters: --

Description: Vectors to (ABORT) below.

Back to Top


Word: (ABORT)

Vocabulary: FORTH

Parameters: --

Description: Empty stacks, return to input interpreter and keyboard device.

Back to Top


Word: ABS

Vocabulary: FORTH

Parameters: n -- n'

Description: Take Absolute Value of N.

Back to Top


Word: AGAIN

Vocabulary: FORTH

Parameters: -- | lbl f --

Description: Close loop marked by BEGIN, loops forever unless ERROR or QUIT is executed.

Back to Top


Word: ALLOT

Vocabulary: FORTH

Parameters: n --

Description: Reserve N dictionary bytes.

Back to Top


Word: ALSO

Vocabulary: ROOT

Parameters: --

Description: Duplicate top search order item. See Chapter 6.

Back to Top


Word: AND

Vocabulary: FORTH

Parameters: n2 n1 -- n3

Description: Bit-wise logical AND of n1 and to n2 to form n3.

Back to Top


Word: ARRAY

Vocabulary: FORTH

Parameters: n -- (word)

Description: Build byte array of N size with (word) name.

Back to Top


Word: ASM

Vocabulary: FORTH

Parameters: --

Description: Vector to Assembler if loaded.

Back to Top


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.

Back to Top


Word: ATTRB

Vocabulary: FORTH

Parameters: -- adr

Description: Returns address of screen Background variable.

Back to Top


Word: BACK

Vocabulary: HIDDEN

Parameters: lbl --

Description: Compute relative jump backward and save address into dictionary space.

Back to Top


Word: BASE

Vocabulary: FORTH

Parameters: -- adr

Description: Return variable address of the current number base.

Back to Top


Word: BEGIN

Vocabulary: FORTH

Parameters: --

Description: Mark the start of a condition loop.

Back to Top


Word: BLANKS

Vocabulary: FORTH

Parameters: adr n --

Description: Fill memory space at address with n ASCII spaces.

Back to Top


Word: BLK

Vocabulary: FORTH

Parameters: -- adr

Description: returns variable address of file loading block number.

Back to Top


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.

Back to Top


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.

Back to Top


Word: BOX

Vocabulary: VIDEO

Parameters: x y w h c --

Description: draw box of width, height at x, y in color c.

Back to Top


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.

Back to Top


Word: BRANCH

Vocabulary: HIDDEN

Parameters: --

Description: Make relative jump, offset follows token.

Back to Top


Word: 0BRANCH

Vocabulary: HIDDEN

Parameters: n --

Description: Make relative jump if N is zero, offset follows token.

Back to Top


Word: #BUFF

Vocabulary: FORTH

Parameters: -- 4

Description: Return the number of disk buffers present in the system.

Back to Top


Word: <BUILDS

Vocabulary: FORTH

Parameters: --

Description: Define compiler action of the defined word.

Back to Top


Word: BYE

Vocabulary: ROOT

Parameters: --

Description: Exit Forth, return to Operating System.

Back to Top


Word: BYTES-MOVED

Vocabulary: FORTH

Parameters: -- adr

Description: Return address of system variable containing the number of bytes transferred in last disk operation.

Back to Top


Word: C!

Vocabulary: FORTH

Parameters: c adr --

Description: Store character (lower 8 bits) c into address give.

Back to Top


Word: C,

Vocabulary: FORTH

Parameters: c --

Description: Add character to dictionary tail.

Back to Top


Word: C/L

Vocabulary: FORTH

Parameters: -- n

Description: Returns the current line length in characters. (Default 70.)

Back to Top


Word: C@

Vocabulary: FORTH

Parameters: adr -- c

Description: Retrieve character from address.

Back to Top


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.

Back to Top


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.

Back to Top


Word: CFA

Vocabulary: FORTH

Parameters: adr -- adr'

Description: Change Parameter Field Address (PFA) to Code Field address (CFA).

Back to Top


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.

Back to Top


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.

Back to Top


Word: CLOSE

Vocabulary: FORTH

Parameters: n --

Description: Close file number n.

Back to Top


Word: CLOSE-FILES

Vocabulary: FORTH

Parameters: --

Description: Close all open files.

Back to Top


Word: CLS

Vocabulary: FORTH

Parameters: --

Description: Clear the current display window.

Back to Top


Word: CMD"

Vocabulary: FORTH

Parameters: -- (string")

Description: Shell to DOS and send string command line.

Back to Top


Word: CMOVE

Vocabulary: FORTH

Parameters: adr1 adr2 n --

Description: Move n bytes from adr1 to adr2.

Back to Top


Word: -CMOVE

Vocabulary: FORTH

Parameters: adr1 adr2 n --

Description: Move n bytes from address1 to address2 from the ends.

Back to Top


Word: CODE

Vocabulary: FORTH

Parameters: -- (word)

Description: Define machine code routine.

Back to Top


Word: ;CODE

Vocabulary: FORTH

Parameters: --

Description: End current definition and move into run mode for machine code instructions to follow.

Back to Top


Word: (;CODE)

Vocabulary: HIDDEN

Parameters: --

Description: Jump to machine code which follows token in the definition area.

Back to Top


Word: COLD

Vocabulary: FORTH

Parameters: --

Description: Empty stacks and reset Forth.

Back to Top


Word: COLOR

Vocabulary: VIDEO

Parameters: --

Description: Set up color text screen handler.

Back to Top


Word: ?COMP

Vocabulary: HIDDEN

Parameters: --

Description: Generate error if compiling.

Back to Top


Word: COMPILE

Vocabulary: FORTH

Parameters: -- (word)

Description: Add the token address of word to the dictionary at run time.

Back to Top


Word: [COMPILE]

Vocabulary: FORTH

Parameters: -- (word)

Description: Compile token address of next immediate word.

Back to Top


Word: CONSTANT

Vocabulary: FORTH

Parameters: n -- (word)

Description: Define a constant which returns value when run.

Back to Top


Word: 2CONSTANT

Vocabulary: FORTH

Parameters: d -- (word)

Description: Define double constant which returns value when run.

Back to Top


Word: +CONSTANT

Vocabulary: FORTH

Parameters: n -- (word)

Description: Define a constant which adds its value to the top stack item when run.

Back to Top


Word: CONTEXT

Vocabulary: HIDDEN

Parameters: -- adr

Description: Return top search order buffer pointer.

Back to Top


Word: COS

Vocabulary: FORTH

Parameters: n -- n'

Description: Return Cosine of angle n multiplied by 10,000.

Back to Top


Word: COUNT

Vocabulary: FORTH

Parameters: adr -- adr+1 n

Description: Return count of characters in string at address, advance address to string data.

Back to Top


Word: .CPU

Vocabulary: FORTH

Parameters: --

Description: Print current CPU detected.

Back to Top


Word: CR

Vocabulary: FORTH

Parameters: --

Description: vector to the (CR) word.

Back to Top


Word: (CR)

Vocabulary: FORTH

Parameters: --

Description: Machine primitive to print carriage return and line feed on text screen.

Back to Top


Word: CRC

Vocabulary: MOUSE

Parameters: -- adr

Description: Return address of Cyclic Redundancy Check variable.

Back to Top


Word: CREATE

Vocabulary: FORTH

Parameters: -- (word)

Description: Build new symbol of word.

Back to Top


Word: CRTC

Vocabulary: VIDEO

Parameters: -- adr

Description: Return address of the video controller chip.

Back to Top


Word: CS@

Vocabulary: FORTH

Parameters: -- seg

Description: Return segment of virtual machine.

Back to Top


Word: CSP

Vocabulary: HIDDEN

Parameters: -- adr

Description: return address of system variable used to hold stack pointer offset.

Back to Top


Word: !CSP

Vocabulary: HIDDEN

Parameters: --

Description: Saves the current parameter stack pointer in the system variable CSP.

Back to Top


Word: ?CSP

Vocabulary: HIDDEN

Parameters: --

Description: Generate error if SP does not match CSP value.

Back to Top


Word: CUR

Vocabulary: FORTH

Parameters: -- adr

Description: return address of the screen cursor value(s).

Back to Top


Word: CURRENT

Vocabulary: HIDDEN

Parameters: -- adr

Description: return address of system variable that holds compilation vocabulary location.

Back to Top


Word: D+

Vocabulary: FORTH

Parameters: d1 d2 -- d3

Description: Add d2 to d1 to form d3.

Back to Top


Word: D-

Vocabulary: FORTH

Parameters: d1 d2 -- d3

Description: subtract d2 from d1 to form d3.

Back to Top


Word: D+-

Vocabulary: FORTH

Parameters: d n -- d'

Description: apply sign of n to d.

Back to Top


Word: D->Q

Vocabulary: FORTH

Parameters: d -- q

Description: Sign extent double d into quad number q.

Back to Top


Word: D.

Vocabulary: FORTH

Parameters: d --

Description: print double number.

Back to Top


Word: D.R

Vocabulary: FORTH

Parameters: d n --

Description: print double number right justified to n columns.

Back to Top


Word: D<

Vocabulary: FORTH

Parameters: d1 d2 -- f

Description: return true flag if d1 is less than d2.

Back to Top


Word: D=

Vocabulary: FORTH

Parameters: d1 d2 -- f

Description: return true flag if d1 equals d2.

Back to Top


Word: D>

Vocabulary: FORTH

Parameters: d1 d2 -- f

Description: return true flag is d1 is greater than d2.

Back to Top


Word: D0=

Vocabulary: FORTH

Parameters: d -- f

Description: return true flag if d is zero.

Back to Top


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.

Back to Top


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.

Back to Top


Word: DABS

Vocabulary: FORTH

Parameters: d -- d'

Description: Return absolute value of d.

Back to Top


Word: DEBUG

Vocabulary: HIDDEN

Parameters: -- (word)

Description: Set break point in word if debugger loaded, no effect if not.

Back to Top


Word: DECIMAL

Vocabulary: FORTH

Parameters: --

Description: Set current number base to 10.

Back to Top


Word: DEFINITIONS

Vocabulary: ROOT

Parameters: --

Description: Make current top search order word list the compilation target.

Back to Top


Word: DEPTH

Vocabulary: FORTH

Parameters: (n) -- (n) n

Description: Return the current number of items on the Parameter Stack.

Back to Top


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.

Back to Top


Word: DISK-ERROR

Vocabulary: FORTH

Parameters: -- adr

Description: return system variable containing last disk error.

Back to Top


Word: DLITERAL

Vocabulary: FORTH

Parameters: (d) --

Description: Compile the double of d as a constant into the current definition from the presently active stack.

Back to Top


Word: DMAX

Vocabulary: FORTH

Parameters: d2 d1 -- d

Description: Keep the larger value.

Back to Top


Word: DMIN

Vocabulary: FORTH

Parameters: d2 d1 -- d

Description: Keep the smaller value.

Back to Top


Word: DMINUS

Vocabulary: FORTH

Parameters: d -- d'

Description: Invert the sign of double d.

Back to Top


Word: DNIP

Vocabulary: FORTH

Parameters: d1 d2 -- d2

Description: Discard double d1.

Back to Top


Word: DO

Vocabulary: FORTH

Parameters: -- | n1 n2 --

Description: Compile counted loop starting at index n2 and ending at limit n1.

Back to Top


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.

Back to Top


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.

Back to Top


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.

Back to Top


Word: DOES>

Vocabulary: FORTH

Parameters: --

Description: define run time component of constructed symbols.

Back to Top


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.

Back to Top


Word: DP

Vocabulary: FORTH

Parameters: -- adr

Description: Return variable address of dictionary tail. (Contains HERE value.)

Back to Top


Word: DPL

Vocabulary: FORTH

Parameters: -- adr

Description: return variable address of detected decimal point location.

Back to Top


Word: DROP

Vocabulary: FORTH

Parameters: n --

Description: discard top stack value n.

Back to Top


Word: 2DROP

Vocabulary: FORTH

Parameters: n1 n2 -- | d --

Description: Discard two stack items or one double word from stack.

Back to Top


Word: 3DROP

Vocabulary: FORTH

Parameters: n1 n2 n3 -- | d n --

Description: discard three stack items.

Back to Top


Word: 4DROP

Vocabulary: FORTH

Parameters: n1 n2 n3 n4 --

Description: discard four stack items.

Back to Top


Word: DS@

Vocabulary: FORTH

Parameters: -- seg

Description: return segment of user dictionary space.

Back to Top


Word: DU*

Vocabulary: FORTH

Parameters: d1 d2 -- q

Description: Unsigned multiply of d1 and d2 to form quad number q.

Back to Top


Word: DU/

Vocabulary: FORTH

Parameters: q d -- dr du

Description: Unsigned divide of quad q to form unsigned quotient du with unsigned dr remainder.

Back to Top


Word: DUMP

Vocabulary: FORTH

Parameters: n -- (word)

Description: Create compiler overlay starting at block n from current dictionary tail to word.

Back to Top


Word: DUP

Vocabulary: FORTH

Parameters: n -- n n

Description: Duplicate top stack item.

Back to Top


Word: -DUP

Vocabulary: FORTH

Parameters: n -- n | n n

Description: Duplicate n if non-zero.

Back to Top


Word: 2DUP

Vocabulary: FORTH

Parameters: n1 n2 -- n1 n2 n1 n2 | d - d d

Description: Duplicate two stack items or double word.

Back to Top


Word: -2DUP

Vocabulary: FORTH

Parameters: d -- d | d d

Description: Duplicate double number if non-zero.

Back to Top


Word: EFL

Vocabulary: VIDEO

Parameters: -- adr

Description: return address of Extra Font Leading value for font printer.

Back to Top


Word: EFS

Vocabulary: VIDEO

Parameters: -- adr

Description: return address of Extra Font Spacing value for font printer.

Back to Top


Word: ELSE

Vocabulary: FORTH

Parameters: lbl f -- lbl f

Description: Define the conditional failure operations of an IF statement.

Back to Top


Word: EMIT

Vocabulary: FORTH

Parameters: c --

Description: Vector to (EMIT) or (FONT) for output of character c, update OUT value for count.

Back to Top


Word: >EMIT

Vocabulary: VIDEO

Parameters: --

Description: Return output to the internal text mode driver, set screen to BIOS mode 3.

Back to Top


Word: (EMIT)

Vocabulary: FORTH

Parameters: c --

Description: Machine primitive to print character C on the text screen, interprets CR, LF, Backspace and Bell codes.

Back to Top


Word: EMPTY-BUFFERS

Vocabulary: FORTH

Parameters: --

Description: Fill all disk buffers with zeros, do not check update flags.

Back to Top


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.

Back to Top


Word: :END

Vocabulary: FORTH

Parameters: --

Description: Mark end of words performed during CASE: process words that follow.

Back to Top


Word: END-CODE

Vocabulary: FORTH

Parameters: --

Description: Compile long return to virtual engine from user defined code segment.

Back to Top


Word: ERASE

Vocabulary: FORTH

Parameters: adr n --

Description: fill memory at address with n bytes of zero.

Back to Top


Word: ERROR

Vocabulary: FORTH

Parameters: n --

Description: Generate error number n.

Back to Top


Word: ?ERROR

Vocabulary: HIDDEN

Parameters: n f --

Description: Generate error n if flag f is true.

Back to Top


Word: ?EXEC

Vocabulary: HIDDEN

Parameters: --

Description: Generate error if executing.

Back to Top


Word: EXECUTE

Vocabulary: FORTH

Parameters: adr --

Description: Execute code at address.

Back to Top


Word: EXIT

Vocabulary: FORTH

Parameters: --

Description: Un-nest one token list entry.

Back to Top


Word: ?EXIT

Vocabulary: FORTH

Parameters: f --

Description: Un-nest one token list entry if f is true.

Back to Top


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.

Back to Top


Word: FENCE

Vocabulary: FORTH

Parameters: -- adr

Description: return system variable holding minimal dictionary address value.

Back to Top


Word: #FILES

Vocabulary: FORTH

Parameters: -- adr

Description: System variable containing the number of open files.

Back to Top


Word: .FILES

Vocabulary: FORTH

Parameters: --

Description: List open files by number, name if available, block number offset and size.

Back to Top


Word: FILES

Vocabulary: FORTH

Parameters: -- adr

Description: return address of system file control array.

Back to Top


Word: >FILE

Vocabulary: FORTH

Parameters: n -- adr

Description: Return address of file control space for file N. (Zero based.)

Back to Top


Word: FILL

Vocabulary: FORTH

Parameters: adr n b --

Description: Fill address with n bytes of b value.

Back to Top


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.

Back to Top


Word: FIND

Vocabulary: HIDDEN

Parameters: c-adr -- c-adr 0 | cfa 1 | cfa -1

Description: Attempt to locate counted string at c-adr in the current search order, return the address and zero if not found, the CFA address and 1 if the word found is immediate, or the CFA and -1 if the found word not immediate.

Back to Top


Word: FIRST

Vocabulary: FORTH

Parameters: -- adr

Description: Return address of first disk buffer.

Back to Top


Word: FLUSH

Vocabulary: FORTH

Parameters: --

Description: Write all updated buffers to disk.

Back to Top


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.

Back to Top


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.

Back to Top


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.

Back to Top


Word: FORGET

Vocabulary: ROOT

Parameters: -- (word)

Description: Discard all definitions after and including word.

Back to Top


Word: FORTH

Vocabulary: ROOT

Parameters: --

Description: Set Forth word-set as top search order item.

Back to Top


Word: FX*

Vocabulary: VIDEO

Parameters: -- adr

Description: Contains the graphical font multiplier in the X direction, valid values 1-n.

Back to Top


Word: FY*

Vocabulary: VIDEO

Parameters: -- adr

Description: Contains the graphical font multiplier in the Y direction, valid values 1-n.

Back to Top


Word: GETINT#

Vocabulary: FORTH

Parameters: n -- adr seg

Description: Get address and segment of current interrupt handler for interrupt n.

Back to Top


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.

Back to Top


Word: GETPIC

Vocabulary: VIDEO

Parameters: adr x y w h --

Description: Capture image at x, y for width, height into buffer at address.

Back to Top


Word: GO

Vocabulary: ROOT

Parameters: n -- (word)

Description: Open file (word) at block n, begin loading or linking upon open.

Back to Top


Word: HERE

Vocabulary: FORTH

Parameters: -- adr

Description: Return current dictionary tail address.

Back to Top


Word: HEX

Vocabulary: FORTH

Parameters: --

Description: Set current number base to 16. (Hexadecimal.)

Back to Top


Word: HGR

Vocabulary: VIDEO

Parameters: --

Description: Change video mode to 640 by 480 pixels with 256 colors from palette.

Back to Top


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.

Back to Top


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.

Back to Top


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.

Back to Top


Word: HGR13

Vocabulary: VIDEO

Parameters: --

Description: Change video mode to 320 by 200 pixels with 256 colors from palette. (Standard color mode.)

Back to Top


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.)

Back to Top


Word: HGR13X

Vocabulary: VIDEO

Parameters: --

Description: Change video mode to 360 by 480 planar mode number 11, with 256 colors from palette.

Back to Top


Word: HIDDEN

Vocabulary: ROOT

Parameters: --

Description: Set hidden word-list as top search order item.

Back to Top


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.

Back to Top


Word: HOLD

Vocabulary: FORTH

Parameters: c --

Description: Add character c to hold buffer, decrement HLD.

Back to Top


Word: HOME

Vocabulary: FORTH

Parameters: --

Description: Force cursor to top of current display window.

Back to Top


Word: HSYNC

Vocabulary: VIDEO

Parameters: --

Description: Waits for the next horizontal video blanking period.

Back to Top


Word: I

Vocabulary: FORTH

Parameters: -- n

Description: return current index of a DO-LOOP.

Back to Top


Word: ID.

Vocabulary: FORTH

Parameters: adr --

Description: print name of symbol with CFA of adr.

Back to Top


Word: IF

Vocabulary: FORTH

Parameters: -- lbl f | f --

Description: Compile conditional jump for branching if f is true at run time.

Back to Top


Word: IMMEDIATE

Vocabulary: ROOT

Parameters: --

Description: define last word as run only.

Back to Top


Word: IN

Vocabulary: FORTH

Parameters: -- adr

Description: return address of variable holding current input offset pointer.

Back to Top


Word: INDEX

Vocabulary: ROOT

Parameters: n1 n2 --

Description: Display comment lines of blocks n1 to n2 inclusively.

Back to Top


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.

Back to Top


Word: INTERPRET

Vocabulary: FORTH

Parameters: --

Description: Read Text Input Buffer or File Block as compiler run time command string.

Back to Top


Word: J

Vocabulary: FORTH

Parameters: -- n

Description: Return index of outer nested do-loop. (or third return stack item.)

Back to Top


Word: KEY

Vocabulary: FORTH

Parameters: -- n

Description: Vector to (KEY) to wait for character input from the console.

Back to Top


Word: (KEY)

Vocabulary: FORTH

Parameters: -- c

Description: Primitive to read one character from the system console, waits for input if none is present.

Back to Top


Word: (KEY?)

Vocabulary: FORTH

Parameters: -- f

Description: Return true if keyboard buffer has a waiting character.

Back to Top


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.

Back to Top


Word: L!

Vocabulary: FORTH

Parameters: n ofs seg --

Description: Store n into memory at offset of segment.

Back to Top


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.)

Back to Top


Word: L@

Vocabulary: FORTH

Parameters: ofs seg -- n

Description: Fetch word at offset in segment seg.

Back to Top


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.)

Back to Top


Word: LAST-USED

Vocabulary: FORTH

Parameters: -- adr

Description: Return variable containing the last used disk buffer address.

Back to Top


Word: LATEST

Vocabulary: FORTH

Parameters: -- adr

Description: return address of last symbol in current vocabulary.

Back to Top


Word: LC!

Vocabulary: FORTH

Parameters: c ofs seg --

Description: Store byte into memory at offset in segment.

Back to Top


Word: LC@

Vocabulary: FORTH

Parameters: ofs seg -- c

Description: Fetch byte at offset in segment.

Back to Top


Word: LEAVE

Vocabulary: FORTH

Parameters: --

Description: prepare do-loop for exit by setting index equal to limit.

Back to Top


Word: LFA

Vocabulary: FORTH

Parameters: adr -- adr'

Description: adjust code field address given to link field address.

Back to Top


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.

Back to Top


Word: .LINE

Vocabulary: HIDDEN

Parameters: n1 n2 --

Description: Print line n1 from file at block n2.

Back to Top


Word: LINE

Vocabulary: VIDEO

Parameters: x1 y1 x2 y2 c --

Description: Draw a line of color c from x1, y1 to x2, y2.

Back to Top


Word: ?LINE

Vocabulary: VIDEO

Parameters: x1 y1 x2 y2 c -- f

Description: Pixel detect for color c along line x1, y2 to x2, y2.

Back to Top


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

Back to Top


Word: LINK

Vocabulary: ROOT

Parameters: n --

Description: Load compiler overlay starting at file block n.

Back to Top


Word: LIST

Vocabulary: FORTH

Parameters: n --

Description: Display contents of file block n.

Back to Top


Word: LIT

Vocabulary: HIDDEN

Parameters: -- n

Description: Return stored constant n at run time.

Back to Top


Word: 2LIT

Vocabulary: HIDDEN

Parameters: -- d

Description: Return stored double constant d at run time.

Back to Top


Word: LITERAL

Vocabulary: FORTH

Parameters: (n) --

Description: Compile the value of n as a constant into the current definition from the presently active stack.

Back to Top


Word: LMOVE

Vocabulary: FORTH

Parameters: ofs1 seg1 ofs2 seg2 n --

Description: Move n bytes from offset 1, segment 1 to offset 2 segment 2.

Back to Top


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.

Back to Top


Word: LOAD

Vocabulary: ROOT

Parameters: n --

Description: Load text blocks starting at file block n.

Back to Top


Word: ?LOADING

Vocabulary: HIDDEN

Parameters: --

Description: Generate error if loading.

Back to Top


Word: LOOP

Vocabulary: FORTH

Parameters: --

Description: Complete compilation of counted loop.

Back to Top


Word: (LOOP)

Vocabulary: HIDDEN

Parameters: --

Description: Machine language primitive for LOOP function, increment index and jump if index<limit.

Back to Top


Word: +LOOP

Vocabulary: FORTH

Parameters: n --

Description: Compile (+LOOP), on execution, add N to loop index and jump if index<limit.

Back to Top


Word: (+LOOP)

Vocabulary: HIDDEN

Parameters: n --

Description: Machine language primitive for +LOOP function, add N to current loop index and jump if index<limit.

Back to Top


Word: M*

Vocabulary: FORTH

Parameters: n1 n2 -- d

Description: Perform multiply of n1 and n2 to return double d.

Back to Top


Word: M/

Vocabulary: FORTH

Parameters: d n -- d

Description: divide double by n, return result d.

Back to Top


Word: (MKEY)

Vocabulary: MOUSE

Parameters: -- n

Description: Read modem input pointer and return any waiting character. Returns zero if no character is present.

Back to Top


Word: (MKEY?)

Vocabulary: MOUSE

Parameters: -- f

Description: Return true if modem buffer has characters waiting for input.

Back to Top


Word: /MOD

Vocabulary: FORTH

Parameters: n1 n2 -- n3 n4

Description: Divide n1 by n2 to return n4 quotient and n3 remainder.

Back to Top


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.

Back to Top


Word: M/MOD

Vocabulary: FORTH

Parameters: d n -- r d

Description: divide double by n, return double result and 16 bit remainder.

Back to Top


Word: MARROW

Vocabulary: MOUSE

Parameters: -- adr

Description: Return address of mouse arrow graphic structure.

Back to Top


Word: MAX

Vocabulary: FORTH

Parameters: n1 n2 -- n

Description: Keep larger value of n1 and n2. (Discard smaller.)

Back to Top


Word: MAXFILES

Vocabulary: FORTH

Parameters: -- 20

Description: Return maximum number of allowed files.

Back to Top


Word: MAXX

Vocabulary: VIDEO

Parameters: -- x

Description: Return maximum x pixel coordinate.

Back to Top


Word: MAXY

Vocabulary: VIDEO

Parameters: -- y

Description: Return maximum y line coordinate.

Back to Top


Word: MBUFFER

Vocabulary: MOUSE

Parameters: -- adr

Description: return address of mouse graphic buffer area.

Back to Top


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.

Back to Top


Word: MCLR

Vocabulary: MOUSE

Parameters: --

Description: reset OEM mouse driver to remove Fig-Forth extension.

Back to Top


Word: MCURSOR

Vocabulary: MOUSE

Parameters: adr --

Description: Set mouse graphic using structure address given.

Back to Top


Word: MESSAGE

Vocabulary: FORTH

Parameters: n --

Description: Print system message n.

Back to Top


Word: MGR

Vocabulary: VIDEO

Parameters: --

Description: Set video mode to 640 by 480 pixels with 16 colors.

Back to Top


Word: MHIDE

Vocabulary: MOUSE

Parameters: --

Description: Hide mouse pointer.

Back to Top


Word: MHOUR

Vocabulary: MOUSE

Parameters: -- adr

Description: Return address of mouse hour glass graphic structure.

Back to Top


Word: MIN

Vocabulary: FORTH

Parameters: n1 n2 --

Description: Keep smaller value of n1 and n2. (discard greater.)

Back to Top


Word: MINUS

Vocabulary: FORTH

Parameters: n -- -n

Description: Invert number n.

Back to Top


Word: MOD

Vocabulary: FORTH

Parameters: n1 n2 -- r

Description: divide n1 by n2 and return remainder.

Back to Top


Word: MODEM-REC

Vocabulary: MOUSE

Parameters: -- adr

Description: return address of modem device control block.

Back to Top


Word: MOK?

Vocabulary: MOUSE

Parameters: -- f

Description: test for mouse and OEM driver, install Fig-Forth v2 extension and return flag.

Back to Top


Word: MONO

Vocabulary: VIDEO

Parameters: --

Description: Set screen and video controller to monographic support values.

Back to Top


Word: MOUSE

Vocabulary: ROOT

Parameters: --

Description: Set top search order item to mouse word-list.

Back to Top


Word: MSETX

Vocabulary: MOUSE

Parameters: n1 n2 --

Description: Set mouse movement x limits of n2 minimum to n1 maximum. (Note: Multiplied by acceleration values.)

Back to Top


Word: MSETY

Vocabulary: MOUSE

Parameters: n1 n2 --

Description: Set mouse movement y limits of n2 minimum to n1 maximum. (Note: Multiplied by acceleration values.)

Back to Top


Word: MSHOW

Vocabulary: MOUSE

Parameters: --

Description: Show the mouse cursor on the screen.

Back to Top


Word: MSPEED

Vocabulary: MOUSE

Parameters: -- adr

Description: return variable address of mouse acceleration values, x multiplier followed by y multiplier.

Back to Top


Word: MX

Vocabulary: MOUSE

Parameters: -- n

Description: return current mouse horizontal position in pixels. (Adjusted by graphic hot-spot)

Back to Top


Word: MY

Vocabulary: MOUSE

Parameters: -- n

Description: return current mouse vertical position in lines. (Adjusted by graphic hot-spot)

Back to Top


Word: MZERO

Vocabulary: MOUSE

Parameters: --

Description: reset current mouse position to upper left corner of screen. (0, 0).

Back to Top


Word: NAE

Vocabulary: FORTH

Parameters: -- adr

Description: returns the address of the system variable for array offset construction.

Back to Top


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.

Back to Top


Word: NEXT

Vocabulary: FORTH

Parameters: -- n

Description: Constant of round-robin task switch routine or zero for single-mode versions.

Back to Top


Word: NFA

Vocabulary: FORTH

Parameters: adr -- adr'

Description: adjust code field address to name field address.

Back to Top


Word: NIP

Vocabulary: FORTH

Parameters: n1 n2 -- n2

Description: Discard second stack item.

Back to Top


Word: 2NIP

Vocabulary: FORTH

Parameters: n1 n2 n3 -- n3

Description: discard 2nd and 3rd stack items.

Back to Top


Word: 3NIP

Vocabulary: FORTH

Parameters: n1 n2 n3 n4 -- n4

Description: discard 2nd to 4th stack items.

Back to Top


Word: 4NIP

Vocabulary: FORTH

Parameters: n1 n2 n3 n4 n5 -- n5

Description: discard 2nd to 5th stack items.

Back to Top


Word: NOOP

Vocabulary: FORTH

Parameters: --

Description: no operation.

Back to Top


Word: NUMBER

Vocabulary: FORTH

Parameters: adr -- d

Description: read string at address and convert to valid number if possible.

Back to Top


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.

Back to Top


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.

Back to Top


Word: OFFSET

Vocabulary: FORTH

Parameters: -- adr

Description: return variable of file block number offset.

Back to Top


Word: ONLY

Vocabulary: ROOT

Parameters: --

Description: Set the minimal word-list as the only search order, including the current compilation vocabulary.

Back to Top


Word: OPEN

Vocabulary: ROOT

Parameters: n -- (word)

Description: Attempt to open file (word) starting at access block n.

Back to Top


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.)

Back to Top


Word: OPEN-FILES

Vocabulary: FORTH

Parameters: --

Description: Open currently active files after save.

Back to Top


Word: OR

Vocabulary: FORTH

Parameters: n1 n2 -- n2

Description: bit-wise logical OR of n1 and n2 to form m3.

Back to Top


Word: ORDER

Vocabulary: ROOT

Parameters: --

Description: display current search order list and compilation vocabulary.

Back to Top


Word: OUT

Vocabulary: FORTH

Parameters: -- adr

Description: return address of variable containing count of characters sent to the output device.

Back to Top


Word: OV

Vocabulary: FORTH

Parameters: -- f

Description: Return overflow bit of last divide.

Back to Top


Word: OVER

Vocabulary: FORTH

Parameters: n1 n2 -- n1 n2 n1

Description: Duplicate 2nd stack item over top of stack.

Back to Top


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.

Back to Top


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.

Back to Top


Word: P@

Vocabulary: FORTH

Parameters: n1 -- n

Description: get word of 8 bit contents in system port n1 and n1+1.

Back to Top


Word: PAD

Vocabulary: FORTH

Parameters: -- adr

Description: return address of pad space, typically here plus 88 bytes.

Back to Top


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

Back to Top


Word: ?PAIRS

Vocabulary: HIDDEN

Parameters: n1 n2 --

Description: Generate error if N1 does not equal N2.

Back to Top


Word: PC!

Vocabulary: FORTH

Parameters: c n --

Description: send byte c to port n.

Back to Top


Word: PC@

Vocabulary: FORTH

Parameters: n -- c

Description: get byte contents of port n.

Back to Top


Word: PFA

Vocabulary: FORTH

Parameters: adr -- adr'

Description: adjust code field address to parameter field address.

Back to Top


Word: PICK

Vocabulary: FORTH

Parameters: nX n -- nX nXn

Description: Duplicate Nth stack item to top of stack.

Back to Top


Word: PLAY"

Vocabulary: SOUND

Parameters: -- (string")

Description: start playing digital sound file of string.

Back to Top


Word: <PLAY>

Vocabulary: SOUND

Parameters: adr --

Description: Play sound file of filename located at address.

Back to Top


Word: -PLAY

Vocabulary: SOUND

Parameters: --

Description: Stop current midi song playing.

Back to Top


Word: PLEAT

Vocabulary: FORTH

Parameters: n1 n2 -- n1 n1 n2

Description: Duplicate 2nd stack item under top item.

Back to Top


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.

Back to Top


Word: PLOT

Vocabulary: VIDEO

Parameters: x y c --

Description: paint pixel of color at x, y.

Back to Top


Word: ?PLOT

Vocabulary: VIDEO

Parameters: x y -- c

Description: Return color of pixel located at X, Y.

Back to Top


Word: PREVIOUS

Vocabulary: ROOT

Parameters: --

Description: Discard top search order buffer item.

Back to Top


Word: (PRINT)

Vocabulary: FORTH

Parameters: c --

Description: Send character c to the system printer handle.

Back to Top


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.

Back to Top


Word: PUT

Vocabulary: FORTH

Parameters: nX n1 n2 -- nX

Description: Store value n1 into stack item n2.

Back to Top


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.

Back to Top


Word: Q+

Vocabulary: FORTH

Parameters: q1 q2 -- q3

Description: add quads 1 & 2 to form quad 3.

Back to Top


Word: Q-

Vocabulary: FORTH

Parameters: q1 q2 -- q3

Description: Subtract quad 2 from quad 1 to form quad 3.

Back to Top


Word: Q+-

Vocabulary: FORTH

Parameters: q n -- q'

Description: apply sign of n to q.

Back to Top


Word: Q.

Vocabulary: FORTH

Parameters: q --

Description: Print quad number.

Back to Top


Word: QABS

Vocabulary: FORTH

Parameters: q -- q'

Description: get absolute value of quad number.

Back to Top


Word: QMINUS

Vocabulary: FORTH

Parameters: q -- -q

Description: invert quad number value.

Back to Top


Word: QUERY

Vocabulary: FORTH

Parameters: --

Description: get line from keyboard and store in TIB area.

Back to Top


Word: QUIET

Vocabulary: SOUND

Parameters: --

Description: Stop all sound card activity, disable interrupts.

Back to Top


Word: QUIT

Vocabulary: FORTH

Parameters: --

Description: Stop current program and return to command input processor, does not empty stack.

Back to Top


Word: R

Vocabulary: FORTH

Parameters: -- n

Description: copy top return stack item to parameter stack.

Back to Top


Word: 2R

Vocabulary: FORTH

Parameters: -- n1 n2 | -- d

Description: copy top two return stack items to parameter stack.

Back to Top


Word: R>

Vocabulary: FORTH

Parameters: -- n

Description: move top return stack item to parameter stack.

Back to Top


Word: >R

Vocabulary: FORTH

Parameters: n --

Description: Move top parameter stack item to the return stack.

Back to Top


Word: .R

Vocabulary: FORTH

Parameters: n1 n2 --

Description: Print n1 right-justified to n2 columns.

Back to Top


Word: R0

Vocabulary: FORTH

Parameters: -- adr

Description: return variable address containing the cold start value offset of the return stack.

Back to Top


Word: RANDOMIZE

Vocabulary: FORTH

Parameters: adr --

Description: moves 500 bytes from address to Random Number Generator Seed Buffer, should be called before RND0.

Back to Top


Word: RDROP

Vocabulary: FORTH

Parameters: --

Description: discard top return stack item.

Back to Top


Word: REDO

Vocabulary: FORTH

Parameters: --

Description: set index of current to do loop to zero.

Back to Top


Word: REPEAT

Vocabulary: FORTH

Parameters: --

Description: Close begin-while loop.

Back to Top


Word: RESET-FILES

Vocabulary: FORTH

Parameters: --

Description: flush buffers, close all files and reset file system.

Back to Top


Word: RND0

Vocabulary: FORTH

Parameters: -- n

Description: Generate 16 bit random number. Set generator seed with RANDOMIZE before using.

Back to Top


Word: ROLL

Vocabulary: FORTH

Parameters: nX n -- nX nXn

Description: Bring Nth stack item to the top of the stack.

Back to Top


Word: -ROLL

Vocabulary: FORTH

Parameters: nX n1 n2 -- nX

Description: Insert n1 into stack at item location n2.

Back to Top


Word: ROOT

Vocabulary: (all)

Parameters: --

Description: set minimal word-list as top search order item.

Back to Top


Word: ROT

Vocabulary: FORTH

Parameters: n1 n2 n3 -- n2 n3 n1

Description: bring 3rd stack to the top.

Back to Top


Word: -ROT

Vocabulary: FORTH

Parameters: n1 n2 n3 -- n3 n1 n2

Description: Reverse roll 3 stack items.

Back to Top


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.)

Back to Top


Word: -2ROT

Vocabulary: FORTH

Parameters: d1 d2 d3 -- d3 d1 d2

Description: Reverse rotate of 3 double stack values.

Back to Top


Word: RP!

Vocabulary: FORTH

Parameters: --

Description: Empty the Return Stack.

Back to Top


Word: RP@

Vocabulary: FORTH

Parameters: -- n

Description: return offset of return stack pointer.

Back to Top


Word: RPICK

Vocabulary: FORTH

Parameters: n -- n'

Description: return Nth return stack item.

Back to Top


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.)

Back to Top


Word: #S

Vocabulary: FORTH

Parameters: d -- d0

Description: Extract all remaining digits of the double number in the current base, place into hold buffer.

Back to Top


Word: ;S

Vocabulary: HIDDEN

Parameters: --

Description: Move down one level in the subroutine stack, return to caller.

Back to Top


Word: S0

Vocabulary: FORTH

Parameters: -- adr

Description: return variable address containing cold start offset of parameter stack.

Back to Top


Word: S->D

Vocabulary: FORTH

Parameters: n -- d

Description: sign extend word value n to double number.

Back to Top


Word: S->Q

Vocabulary: FORTH

Parameters: n -- q

Description: sign extend word value to quad number.

Back to Top


Word: SQR

Vocabulary: FORTH

Parameters: n -- n

Description: Find square root of n.

Back to Top


Word: 2SQR

Vocabulary: FORTH

Parameters: d -- n

Description: Find square root of double, return integer.

Back to Top


Word: 4SQR

Vocabulary: FORTH

Parameters: q -- d

Description: Find square root of quad, return double.

Back to Top


Word: SAVE

Vocabulary: FORTH

Parameters: -- (word)

Description: Save executable image of current system contents into file (word).

Back to Top


Word: SCR

Vocabulary: FORTH

Parameters: -- adr

Description: return address of variable containing last listed or edited screen block.

Back to Top


Word: SETINT#

Vocabulary: FORTH

Parameters: ofs seg n --

Description: Set interrupt service handler for interrupt number n to point to segment and offset.

Back to Top


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.

Back to Top


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.)

Back to Top


Word: SIN

Vocabulary: FORTH

Parameters: n -- n'

Description: return Sine of angle n1 multiplied by 10,000.

Back to Top


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 ,"

Back to Top


Word: SMUDGE

Vocabulary: FORTH

Parameters: --

Description: Set/Reset compilation bit of last word symbol in active vocabulary.

Back to Top


Word: SONG"

Vocabulary: SOUND

Parameters: -- (string")

Description: start playing midi file of string.

Back to Top


Word: <SONG>

Vocabulary: SOUND

Parameters: adr --

Description: Play midi song file of filename located at address.

Back to Top


Word: -SONG

Vocabulary: SOUND

Parameters: --

Description: Stop current wave file playing.

Back to Top


Word: SOUND

Vocabulary: ROOT

Parameters: --

Description: set the sound word-list as the top search order item.

Back to Top


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.

Back to Top


Word: SP!

Vocabulary: FORTH

Parameters: --

Description: Empty parameter stack.

Back to Top


Word: SP@

Vocabulary: FORTH

Parameters: -- n

Description: return offset of current parameter stack.

Back to Top


Word: SPACE

Vocabulary: FORTH

Parameters: --

Description: send an ASCII blank to the output device.

Back to Top


Word: SPACES

Vocabulary: FORTH

Parameters: n --

Description: send N ASCII blanks to the output device.

Back to Top


Word: SPLIT

Vocabulary: FORTH

Parameters: n -- cu cl

Description: separate upper and lower bytes of n into two values.

Back to Top


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.

Back to Top


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.

Back to Top


Word: STR>

Vocabulary: FORTH

Parameters: s d --

Description: Move counted string stored at address S to address D, including count byte.

Back to Top


Word: ?STACK

Vocabulary: HIDDEN

Parameters: --

Description: Generate error if stack out of bounds.

Back to Top


Word: START

Vocabulary: FORTH

Parameters: --

Description: Vector to program start word if set, else NOOP.

Back to Top


Word: STATE

Vocabulary: HIDDEN

Parameters: -- adr

Description: return address of compiler control flag.

Back to Top


Word: SWAP

Vocabulary: FORTH

Parameters: n1 n2 -- n2 n1

Description: exchange top two stack items.

Back to Top


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.

Back to Top


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.

Back to Top


Word: (SYS)

Vocabulary: HIDDEN

Parameters: -- string"

Description: Primitive to shell to DOS and execute string saved in definition area.

Back to Top


Word: TASK

Vocabulary: FORTH

Parameters: --

Description: Top of default vocabulary word-lists.

Back to Top


Word: ?TERMINAL

Vocabulary: FORTH

Parameters: -- f

Description: Return true if keyboard has waiting input.

Back to Top


Word: TEXT

Vocabulary: VIDEO

Parameters: --

Description: set video mode to BIOS 3, 80 characters by 25 line text mode. Homes and clears screen buffer.

Back to Top


Word: THEN

Vocabulary: FORTH

Parameters: lbl f --

Description: Compile completed conditional branch routine.

Back to Top


Word: TIB

Vocabulary: FORTH

Parameters: -- adr

Description: return variable address containing the offset of the text input buffer.

Back to Top


Word: TO

Vocabulary: FORTH

Parameters: adr -- (word)

Description: compile 2@! to move the double word contents of variable at address to variable (word).

Back to Top


Word: TOGGLE

Vocabulary: FORTH

Parameters: adr b --

Description: perform logical XOR of memory contents at address with byte b.

Back to Top


Word: -TRAILING

Vocabulary: FORTH

Parameters: adr c -- adr c'

Description: Scan counted string at address and remove from count c any trailing spaces contained.

Back to Top


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.

Back to Top


Word: TUCK

Vocabulary: FORTH

Parameters: n1 n2 -- n2 n1 n2

Description: copies top item to third item.

Back to Top


Word: TYPE

Vocabulary: FORTH

Parameters: adr c --

Description: type string at address for c characters.

Back to Top


Word: U*

Vocabulary: FORTH

Parameters: n1 n2 -- n3

Description: perform unsigned multiplication of n1 times n2. returns 16 bit n3.

Back to Top


Word: U.

Vocabulary: FORTH

Parameters: n --

Description: print unsigned value of n.

Back to Top


Word: U/

Vocabulary: FORTH

Parameters: n1 n2 -- n3

Description: perform unsigned division of n1 by n2 to form n3.

Back to Top


Word: U<

Vocabulary: FORTH

Parameters: n1 n2 -- f

Description: unsigned compare of n1 and n2, true if n1 is less than n2.

Back to Top


Word: U>

Vocabulary: FORTH

Parameters: n1 n2 -- f

Description: unsigned compare of n1 and n2, true if n1 is greater than n2.

Back to Top


Word: +UNDER

Vocabulary: FORTH

Parameters: n1 n2 n3 -- n1 n2

Description: Add n3 to n1.

Back to Top


Word: +2UNDER

Vocabulary: FORTH

Parameters: d1 d2 d3 -- d1 d2

Description: Add double number d3 to d1.

Back to Top


Word: UNLOOP

Vocabulary: FORTH

Parameters: --

Description: Drop two Return Stack words. (Index & Limit or DO-LOOP.)

Back to Top


Word: UNTIL

Vocabulary: FORTH

Parameters: f --

Description: branch to start of BEGN loop if flag given in zero.

Back to Top


Word: UP_CRC

Vocabulary: MOUSE

Parameters: b --

Description: update current CRC value with byte b.

Back to Top


Word: UPDATE

Vocabulary: FORTH

Parameters: --

Description: mark last used disk buffer as having new or changed data.

Back to Top


Word: >UPPER

Vocabulary: FORTH

Parameters: adr -- adr

Description: Raise characters 'a' to 'z' in counted string at address to uppercase.

Back to Top


Word: USE

Vocabulary: HIDDEN

Parameters: -- adr

Description: return variable of next disk buffer to be used.

Back to Top


Word: V2!

Vocabulary: FORTH

Parameters: n d --

Description: store n into file at pointer d.

Back to Top


Word: V2@

Vocabulary: FORTH

Parameters: d -- n

Description: fetch n from file at location d.

Back to Top


Word: V2>

Vocabulary: FORTH

Parameters: adr -- n

Description: fetch number from file at location in double variable at address, advance location.

Back to Top


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.

Back to Top


Word: V4!

Vocabulary: FORTH

Parameters: d d --

Description: store double number d into file at location d.

Back to Top


Word: V4@

Vocabulary: FORTH

Parameters: d -- d'

Description: fetch double number from file at location d.

Back to Top


Word: V4>

Vocabulary: FORTH

Parameters: adr -- d

Description: fetch double number from file at location in variable address, advance location.

Back to Top


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.

Back to Top


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.

Back to Top


Word: VARIABLE

Vocabulary: FORTH

Parameters: n -- (word)

Description: Compile a variable of (word) with the initial contents of n.

Back to Top


Word: 2VARIABLE

Vocabulary: FORTH

Parameters: d -- (word)

Description: Compile a double variable of (word) with the initial contents of d.

Back to Top


Word: 4VARIABLE

Vocabulary: FORTH

Parameters: -- (word)

Description: Compile quad variable space, value initialized to zero.

Back to Top


Word: VBELL

Vocabulary: VIDEO

Parameters: -- adr

Description: return address of console beep control value.

Back to Top


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.

Back to Top


Word: VC!

Vocabulary: FORTH

Parameters: c d --

Description: Stores character c in file at offset d.

Back to Top


Word: VC>

Vocabulary: FORTH

Parameters: adr -- c

Description: fetch character c from file at offset stored in variable at address, advance location.

Back to Top


Word: VC@

Vocabulary: FORTH

Parameters: d -- c

Description: fetch character from file at offset d.

Back to Top


Word: VID

Vocabulary: VIDEO

Parameters: -- adr

Description: return segment of active video page.

Back to Top


Word: VIDEO

Vocabulary: ROOT

Parameters: --

Description: set video word-list as top search order item.

Back to Top


Word: VLEFT

Vocabulary: VIDEO

Parameters: -- adr

Description: return address of variable containing left most column (in characters or pixels) of the current display window.

Back to Top


Word: VLENGTH

Vocabulary: VIDEO

Parameters: -- adr

Description: return address of variable containing length in lines of the current display window.

Back to Top


Word: VLIST

Vocabulary: ROOT

Parameters: --

Description: list words in the current search path.

Back to Top


Word: VMODE

Vocabulary: VIDEO

Parameters: -- adr

Description: return address of video interface mode control byte.

Back to Top


Word: VOCABULARY

Vocabulary: ROOT

Parameters: -- (word)

Description: define a new word list of (word).

Back to Top


Word: VOFFSET

Vocabulary: VIDEO

Parameters: -- adr

Description: return address of relative plotting offset variable; first value is Y, next is X.

Back to Top


Word: VPAN

Vocabulary: VIDEO

Parameters: n --

Description: Pan the video planar screen by n pixels, n ranges 0-3.

Back to Top


Word: VPAN?

Vocabulary: VIDEO

Parameters: --

Description: enable pixel pan compatibility mode.

Back to Top


Word: VPTR1

Vocabulary: FORTH

Parameters: -- adr

Description: return address of double variable 1 for virtual file access.

Back to Top


Word: VPTR2

Vocabulary: FORTH

Parameters: -- adr

Description: return address of double variable 2 for virtual file access.

Back to Top


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.

Back to Top


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.

Back to Top


Word: VSIZE

Vocabulary: VIDEO

Parameters: -- adr

Description: return address of variable containing number of columns in characters or pixels of the current display window.

Back to Top


Word: VSPLIT

Vocabulary: VIDEO

Parameters: n --

Description: define video display line compare value to set up display page and status screen.

Back to Top


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.

Back to Top


Word: VSYNC

Vocabulary: VIDEO

Parameters: --

Description: Waits for the next vertical video retrace period.

Back to Top


Word: VTBL

Vocabulary: VIDEO

Parameters: -- adr

Description: return address of video graphics control block. See text.

Back to Top


Word: VTOP

Vocabulary: VIDEO

Parameters: -- adr

Description: return address of variable containing top most line of the current display window.

Back to Top


Word: VWIDTH

Vocabulary: VIDEO

Parameters: -- adr

Description: return address of variable containing number of columns (in characters or pixels) of the current display window.

Back to Top


Word: WARM

Vocabulary: FORTH

Parameters: --

Description: perform a warm start of the Forth engine, clear screen, print copyright notice.

Back to Top


Word: WARNING

Vocabulary: FORTH

Parameters: -- adr

Description: return variable of error handling and messaging functions.

Back to Top


Word: WHILE

Vocabulary: FORTH

Parameters: f --

Description: define condition loop to execute when flag is true.

Back to Top


Word: WIDTH

Vocabulary: HIDDEN

Parameters: -- adr

Description: return variable address containing the size of symbols as saved in the vocabulary.

Back to Top


Word: WITHIN

Vocabulary: FORTH

Parameters: n1 n2 n3 -- f

Description: return true if n1 is greater or equal than n2 and less than n3.

Back to Top


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.

Back to Top


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.

Back to Top


Word: XOR

Vocabulary: FORTH

Parameters: n1 n2 -- n3

Description: perform bit-wise logical XOR of n1 and n2 to form n3.

Back to Top


Return to Contents.   Next Chapter.   Previous Chapter.