The Museum of HP Calculators

HP Forum Archive 18

[ Return to Index | Top of Index ]

HP71b - Forth Modul
Message #1 Posted by Roland Storz on 9 Mar 2008, 2:49 p.m.

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
Message #2 Posted by Egan Ford on 9 Mar 2008, 5:42 p.m.,
in response to message #1 by Roland Storz

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
Message #3 Posted by Roland Storz on 10 Mar 2008, 4:21 a.m.,
in response to message #2 by Egan Ford

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


[ Return to Index | Top of Index ]

Go back to the main exhibit hall