home *** CD-ROM | disk | FTP | other *** search
- Thσá followinτ i≤ a samplσ MS-DO╙ termina∞ sessioε iε whicΦ ì
- the following operations occur:
-
- 1. A disk is formatted for later use by FORTH.
- 2. FORTH is started and used calculator-style.
- 3«á DEBU╟á i≤ useΣ t∩ movσ thσ filσ FORTH.SC╥á t∩á thσ
- abovσ formatteΣ disk.
- 4«á ┴ ne≈ versioε oµ FORT╚ i≤ createΣ b∙ loadinτ somσ ì
- of the screens from the new disk.
- 5«á DEBU╟ i≤ useΣ t∩ savσ thσ ne≈ versioε oµ FORT╚ iε ì
- the file 4TH.COM.
-
-
- Note║á comment≤ arσ se⌠ ofµ t∩ thσ right¼á anΣ aεá ellipsi≤ ì
- indicates some of the listing has been deleted.
-
-
- MS-DOS version 1.25
- Copyright 1981,82 Microsoft, Inc. boot up message
- .
- .
- .
- A>FORMAT B: clear a disk
- Insert new diskette for drive B:
- and strike any key when ready
- .
- .
- .
- 252416 bytes total disk space
- 252416 bytes available on disk single density,
- IB═áformat¼án∩ system
- files
- .
- .
- .
- A>FORTH run FORTH.COM
-
-
- 8086 Fig-FORTH Version 1.0A start-up banner
- ok user typed <CR>
- 15 SPACES ok
- 42 EMIT *ok
- : STAR 42 EMIT ; ok define a word 'STAR'
- STAR *ok try it
- ok
- ║á STAR╙á 1░á ░á D╧ STA╥ LOO╨ ╗ oδ definσáßáworΣ 'STARS'
- STARS **********ok try it
- ok
- . the following calculation
- . is used below when creating
- . the FORTH disk from FORTH.SCR
-
- 39 ok = screens in FORTH.SCR: 0-38
- 8 ok = blocks per screen
- * ok = no. of records toè . 312 ok transfer ( 8*39 = 312 )
- 312 HEX . 138 ok print 312 in hex for later use
- ok
- BYE
- A> back to COMMAND
- .
- .
- .
- A>DEBUG FORTH.SCR start DEBUG, and
- > load FORTH.SCR at
- > location 100H
- >
- > place the newly formatted disk
- > in drive B:
- >
- >W 100 1 0 138 write, from location
- ╛ 100H¼ record≤ 0-137H ( the 312
- > from before ) on drive 1 (B)
- >Q quit
- A>
- A> switch disks A & B
- A>B:
- B>DEBUG FORTH.COM
- >G back to FORTH
-
- 8086 Fig-FORTH Version 1.0B
- ok
- ┤á LIS╘ thσáFORT╚áscreen≤ are
- SCR # 4 now in drive A, on
- 0 ( System messages ) the disk formatted
- 1 empty stack above
- 2 dictionary full
- .
- .
- .
- 14
- 15
- ok
- 4 38 INDEX screens 0-3 are blank
-
- 4 ( System messages )
- 5 ( System messages )
- 6
- 7
- 8 ( Dr. Eaker's CASE construct: FD 3:187 1982 )
- 9 ( 1 and 2 dimensional array definitions )
- 10 ( "Starting Forth" line editor - load screen )
- .
- .
- .
- 37 ( THE GAME OF LIFE, CONTINUED )
- 3╕ ¿ TH┼ GAM┼ O╞ LIFE¼ CONTINUE─ ⌐ok thσ las⌠ screeε
- ok in FORTH.SCR
- ok
- ╣ LOA─ 3╣ LOA─ 1░ LOA─ 2╡ LOA─ adΣ word≤ t∩ theè . dictionary:
- . 9=CAS┼/ENDCASE
- . 39=arrays
- 10=editor
- 25=NEW,SIZE?
-
- ok
- NEW
- current version is A
- new version (A-Z)? Bok update cold-
- ok star⌠ parameters
- HEX
- SIZE? 25C4 bytes used, D11C bytes free ok see how big the
- dictionary is -
- note HEX !
- BYE
- Program terminated normally back in DEBUG
- >RCX set CX reg. to
- C╪ 1AA┼á reflec⌠áthσ larger
- : 25C4 sizeì
- >
- >N 4TH.COM this will be
- FORT╚ for normal use
- >
- >W write the new FORTH
- Writing 25C4 bytes to 4TH.COM
- >Q all done
- A>
- A>4TH
-
- 808╢áá Fig-FORT╚á Versioεá 1.0Bá notσáne≈ version