Posts: 23
Threads: 11
Joined: Mar 2008
Hi,
can anybody help out,
I'm starting to use the Forth Modul together with the HP71b.
I did start to write some Forth programs as Text files using the Texteditor (which is embedded in the Forth Modul as well).
However, I do not know what exactly to do with the Text files in the Forth environment.
How to load them, how to compile them in order to run programs within the Forth environment?
Many thanks for any help in advance,
Roland
Posts: 1,619
Threads: 147
Joined: May 2006
Session:
From 71B I created F1 text file:
>LIST F1
: F1
CLOCK FTOI
0. 1.
13001 3 DO
FENTER
Z RCL
I 2 - ITOF
F/
F+
LOOP
13000 ITOF Y RCL F/ F.
." IN "
CLOCK FTOI
SWAP - . ." SEC"
;
Then I typed to run it:
>FORTH
HP-71 FORTH 2A
" F1" LOADF
OK { 0 }
F1
2.71828183554 IN 1 SEC OK { 0 }
BYE
>
Posts: 23
Threads: 11
Joined: Mar 2008
Egan, many thanks, this helps, that's exactly what I was looking for. Many Greetings from Germany, Roland