Skip to content

Commit 1b9886a

Browse files
authored
Updated lbForth description in README.md
1 parent fa99243 commit 1b9886a

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,36 @@ lbForth is a minimal Forth implementation but still contains a fair amount of
591591
built in words. It is currently not included on the disks for the C64, VIC20
592592
or BBC Micro due to lack of disk space.
593593
594-
The original source code is available [here](https://gist.github.com/lbruder/10007431)
594+
The original source code is available [here](https://gist.github.com/lbruder/10007431).
595+
596+
It has been extended with the possibility to load a script from file at
597+
startup if the filename is given as a command line argument, and a small
598+
example file (`TRIANGLE.FRT`) is included:
599+
```
600+
: STAR 42 EMIT ;
601+
: STARS 0 DO STAR LOOP ;
602+
: TRIANGLE 1 + 1 DO I STARS CR LOOP ;
603+
CR 10 TRIANGLE CR
604+
```
605+
When run from the command line it produces the following output:
606+
```
607+
A> LBFORTH TRIANGLE.FRT
608+
lbForth for CP/M-65. Use BYE to exit.
609+
610+
*
611+
**
612+
***
613+
****
614+
*****
615+
******
616+
*******
617+
********
618+
*********
619+
**********
620+
621+
END OF FILE
622+
OK
623+
```
595624
596625
### Utilities
597626

0 commit comments

Comments
 (0)