Re: Question about using the EMU71 Message #6 Posted by Valentin Albillo on 14 Jan 2006, 10:51 p.m., in response to message #1 by Namir
Hi,
To load a PC text file into Emu71, proceed as follows:
- Copy your text file, renaming it to "emu_in.dat", to Emu71's home directory.
- Enter this small program in Emu71 (where MYTEXT is any legal name you want
to give your PC text file when stored in the emulated 71B file system) exactly as written and RUN it:
10 DIM A$[100]
20 CREATE TEXT "MYTEXT"
30 ASSIGN #1 TO "MYTEXT"
40 ENTER :DOSLINK;A$
50 DISP A$ ! just to follow the process, you can omit it
60 PRINT #1;A$
70 GOTO 40
The program will stop (at ENTER statement) when there are no more lines
to ENTER from the PC text file.
- Now manually close the file by executing from the keyboard:
ASSIGN#1 to *
and there you are, your text file is now in the emulated HP-71B file system,
as a proper 71B TEXT file, and named "MYTEXT", say.
- If your text file is actually a well formatted, legal HP-71B program written
in syntactically correct HP-71B BASIC, with proper line numbers and all, you can now transform it from its text form
to a proper BASIC program by executing from the keyboard:
TRANSFORM MYTEXT INTO BASIC
which will convert it to a real, runnable HP-71B BASIC program.
- To do the reverse process, that is to list a program in Emu71 into a PC text
file, do the following from the keyboard:
ENDLINE CHR$(13)&CHR$(10)
PRINTER IS :DOSLINK
PLIST "MYPROGRM"
PRINTER IS * (or PRINTER IS :DISPLAY)
and you'll find a PC text file named "emu_out.dat" in Emu71's home directory,
which you can process with any Windows or MSDOS program or utility, such as
some editor or converter, or rename it and store it in some repository.
That's all. I think you'll find this approach both easy and quite fast. Notice it works for arbitrary text files, not just programs,
so you can also enter data files as well.
Best regards from V.
|