figForth Defining Word - CONSTANT
Some parts of this page/site are currently incomplete & will be updated asap
Other parts will change continually so use “Refresh” in your browser !!
There is extensive use of “Tooltips” text to support learning which do
not seem to render on a Smartphone
CONSTANT n --- L0
A defining word used in the form:
n CONSTANT cccc
to create word cccc, with its parameter field containing n
When cccc is later executed, it will push the value of n onto the stack
jkhkjhjkh
NFA: 00286A 88 DB 88H
00286B 434F4E53 54414E DB "CONSTAN"
002872 D4 DB 'T'+80H
LFA: 002873 5E28 DW NOOP-7
CFA: 002875 3C28 CON: DW DOCOL ; :
PFA: 002877 6E6F DW CREAT ; CREATE
002879 466B DW SMUDG ; SMUDGE
00287B 2369 DW COMMA ; ,
00287D 956B DW PSCOD ; ;CODE
The Meaning of the Dictionary Fields:
CONSTANT’s “Run-Time” Code… DOCON
00287F 13 DOCON: INC DE
002880 EB EX DE,HL
002881 5E LD E,(HL)
002882 23 INC HL
002883 56 LD D,(HL)
002884 D5 PUSH DE
002885 C3 E2 20 JP NEXT