HP Forums
HP71b - Forth Modul - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: HP71b - Forth Modul (/thread-134195.html)



HP71b - Forth Modul - Roland Storz - 03-09-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


Re: HP71b - Forth Modul - Egan Ford - 03-09-2008

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
>



Re: HP71b - Forth Modul - Roland Storz - 03-10-2008

Egan, many thanks, this helps, that's exactly what I was looking for. Many Greetings from Germany, Roland