Skip to content

Commit e0d4994

Browse files
Update/Improve the TR-DOS instructions about using the library.
FossilOrigin-Name: 6fb12ca1f7cd30f971d22109c806a31cb1ba20e20b1a72a0ac82f5b98332196d
1 parent 8e8ffbc commit e0d4994

File tree

3 files changed

+47
-27
lines changed

3 files changed

+47
-27
lines changed

README.adoc

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
= Solo Forth
22
:author: Marcos Cruz (programandala.net)
3-
:revdate: 2021-01-04
3+
:revdate: 2021-01-16
44
:toc:
55
:linkattrs:
66

77
// This file is part of Solo Forth
88
// http://programandala.net/en.program.solo_forth.html
99

10-
// Last modified: 202101151948.
10+
// Last modified: 202101162124.
1111

1212
// Description {{{1
1313
== Description
@@ -547,10 +547,10 @@ letters used by the TR-DOS BASIC interface:
547547

548548
1. <<_run_trdos,Run Solo Forth>>.
549549

550-
2. “Insert” the file <disks/trdos/disk_1a_library.trd> into the second
551-
disk drive (called B in TR-DOS and 1 in Solo Forth), and the file
552-
<disks/trdos/disk_1b_library.trd> into the third disk drive (called
553-
C in TR-DOS and 2 in Solo Forth).
550+
2. “Insert” the file <disks/trdos/disk_1a_library.trd> into the first
551+
disk drive (called A in TR-DOS and 0 in Solo Forth), and the file
552+
<disks/trdos/disk_1b_library.trd> into the second disk drive (called
553+
B in TR-DOS and 1 in Solo Forth).
554554
+
555555
--
556556
Notice that the library is split into two disks because the maximun
@@ -560,17 +560,14 @@ Also remember in Solo Forth the <<trdosdiskdrives,TR-DOS disk drive
560560
identifiers>> are numbers 0..3 instead of letters A..D.
561561
--
562562

563-
3. Type `1 set-drive throw` to make drive 1 (i.e. the second one,
564-
called B by TR-DOS) the current one.
563+
3. Type `1 load` to load block 1 from the first library disk. By
564+
convention, block 0 cannot be loaded (it is used for comments), and
565+
block 1 is used as a loader. In Solo Forth, block 1 contains `2
566+
load`, in order to load the `need` tool from block 2.
565567

566-
4. Type `1 load` to load block 1 from the library disk. By convention,
567-
block 0 cannot be loaded (it is used for comments), and block 1 is
568-
used as a loader. In Solo Forth, block 1 contains `2 load`, in
569-
order to load the `need` tool from block 2. Type `need
570-
set-block-drives` to load the word `set-block-drives` from the
571-
library. Then type `2 1 2 set-block-drives` to configure the second
572-
and the third drives (i.e. drives 1 and 2 in Solo Forth, called B
573-
and C in the TR-DOS BASIC interface) as block drives.
568+
4. Type `need 2-block-drives` to load and execute the word
569+
`2-block-drives` from the library, setting the first two drives as
570+
block drives in their normal order.
574571

575572
5. Type `need name`, were “name” is the name of the word or tool you
576573
want to load from the library.

TO-DO.adoc

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
= Solo Forth TO-DO
22
:author: Marcos Cruz (programandala.net)
3-
:revdate: 2020-10-08
3+
:revdate: 2020-10-16
44

55
// This file is part of Solo Forth
66
// http://programandala.net/en.program.solo_forth.html
@@ -1419,6 +1419,26 @@ Study what the unused RAM of the Plus D can be useful for.
14191419
// TR-DOS {{{2
14201420
=== TR-DOS ===
14211421

1422+
==== 2021-01-16
1423+
1424+
There seems to be a problem when the library disks are inserted into
1425+
drives 2nd and 3rd, and `1 set-drive throw 1 load need
1426+
set-block-drives` is used:
1427+
1428+
....
1429+
1 set-drive throw ok
1430+
1 load ok
1431+
need set-block-drives
1432+
?????????????????????????????????????????
1433+
?????????????????????????????????????????
1434+
?????????????????????????????????????????
1435+
?????????????????????????????????????????
1436+
??????????????????? ?
1437+
#-256
1438+
....
1439+
1440+
Then `get-block-drive throw .` displays 0 instead of 1.
1441+
14221442
==== 2018-04-09
14231443

14241444
Fix/rewrite `read-system-track`: When there's no disk in the drive, it

src/doc/manual_skeleton.adoc

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ endif::[]
2727
// This file is part of Solo Forth
2828
// http://programandala.net/en.program.solo_forth.html
2929

30-
// Last modified: 202101160119.
30+
// Last modified: 202101161928.
3131

3232
include::doc.README.linked.adoc[tags=attributes]
3333

@@ -806,17 +806,20 @@ Let's see an example, how to load the game called Tetris for
806806
Terminals, which is in disk 2.
807807

808808
. <<_run,Run Solo Forth>>.
809-
. Insert the first library disk image (disk 1a) into the first drive.
810-
. Insert the second library disk image (disk 1b) into the second drive.
811-
. Insert the programs disk image (disk 2) into the third drive.
812-
. Execute command ``1 load`` in order to `load` the `need` utility from
813-
the first library disk.
809+
. Insert the first library disk image (disk 1a) into the first drive
810+
(called 'A' in TR-DOS, 0 in Solo Forth).
811+
. Insert the second library disk image (disk 1b) into the second drive
812+
(called 'B' in TR-DOS, 1 in Solo Forth).
813+
. Insert the programs disk image (disk 2) into the third drive (called
814+
'C' in TR-DOS, 2 in Solo Forth).
815+
. Execute command ``1 load`` in order to `load` the `need` utility
816+
from the first library disk.
814817
. Execute the command `need 3-block-drives`, which loads
815-
`3-block-drives` from the library disk and then executes it, setting the
816-
first three drives as block drives in their normal order.
818+
`3-block-drives` from the library disk and then executes it, setting
819+
the first three drives as block drives in their normal order.
817820
. Execute the command ``need tt``, which locates the first block of
818-
the game (in disk 2) and loads it, loading its requirements from the
819-
library as needed.
821+
the game (in the third drive) and loads it, loading its requirements
822+
from the library as needed.
820823
. Follow the instructions.
821824

822825
When `3-block-drives` is executed, the blocks of the first three disk

0 commit comments

Comments
 (0)